@duplicati/ngclient 0.0.233 → 0.0.234

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 (104) hide show
  1. package/{chunk-h6n5A491.js → chunk-0lYdrxte.js} +1 -1
  2. package/{chunk-bt6lhYfG.js → chunk-1-oPQ4n-.js} +1 -1
  3. package/{chunk-Dz5guW4b.js → chunk-5EFCeqK3.js} +1 -1
  4. package/{chunk-CS2J-6VZ.js → chunk-5kQsbzck.js} +1 -1
  5. package/{chunk-D2G7_0hG.js → chunk-AHhgJqe4.js} +1 -1
  6. package/{chunk-mA4J4_nC.js → chunk-B-T54LAJ.js} +1 -1
  7. package/{chunk-C9OqpwwE.js → chunk-B-c3Zv6R.js} +1 -1
  8. package/{chunk-C9ecLR93.js → chunk-B0ETfgeR.js} +1 -1
  9. package/{chunk-B_cIFQAl.js → chunk-B1dNb-QT.js} +1 -1
  10. package/{chunk-mflQLMHH.js → chunk-B8PnvglY.js} +1 -1
  11. package/{chunk-CgJAbgNN.js → chunk-BAmgFjXY.js} +1 -1
  12. package/{chunk-B6c2NXNy.js → chunk-BDhLEYas.js} +1 -1
  13. package/{chunk-L8hQtTzU.js → chunk-BFVhQEGw.js} +1 -1
  14. package/{chunk-BmmYJhOf.js → chunk-BFquKzMb.js} +1 -1
  15. package/{chunk-Dk-Wgx3e.js → chunk-BGcVKmjp.js} +1 -1
  16. package/{chunk-jy8x4GhV.js → chunk-BHrABvoK.js} +1 -1
  17. package/chunk-BNG7N21y.js +1 -0
  18. package/{chunk-CsIAXoYP.js → chunk-BQapkAzp.js} +1 -1
  19. package/chunk-BRqx-u9-.js +2 -0
  20. package/{chunk-lymL5FDY.js → chunk-BaNH2nfC.js} +1 -1
  21. package/{chunk-AuCOjHXM.js → chunk-BaR3Dslz.js} +1 -1
  22. package/{chunk-D1pDZLJ9.js → chunk-BaknLOqq.js} +1 -1
  23. package/{chunk-D3PhthfU.js → chunk-Bg98dUtr.js} +1 -1
  24. package/{chunk-BsNCg00z.js → chunk-BiSIt2zb.js} +1 -1
  25. package/chunk-BkLND74M.js +1 -0
  26. package/{chunk-DDWDcSq2.js → chunk-BnFO-7ok.js} +1 -1
  27. package/{chunk-DcdpG1YG.js → chunk-BqbJuWHd.js} +1 -1
  28. package/chunk-C4zj812G.js +1 -0
  29. package/{chunk-CIw_h8oP.js → chunk-C5G4RPpS.js} +1 -1
  30. package/{chunk-DM11Gu0H.js → chunk-CA-0mTsq.js} +1 -1
  31. package/chunk-CAEYxmzQ.js +1 -0
  32. package/chunk-CGnsbLNG.js +1 -0
  33. package/chunk-CPjYiawK.js +1 -0
  34. package/chunk-CQHKuUqk.js +2 -0
  35. package/{chunk-Bgw6E0Xu.js → chunk-CSYDDxaa.js} +1 -1
  36. package/{chunk-B1c7h-_w.js → chunk-CTH9uShX.js} +1 -1
  37. package/{chunk-DWiO0A6h.js → chunk-CUNe6D-d.js} +1 -1
  38. package/{chunk-CGsQCBkP.js → chunk-CUaDFQyH.js} +1 -1
  39. package/chunk-CnyuuWJ3.js +1 -0
  40. package/{chunk-CuJ_uEdr.js → chunk-CsgB8OpN.js} +1 -1
  41. package/chunk-CspKioFm.js +4 -0
  42. package/{chunk-DidJB9ig.js → chunk-Cv4o9u3S.js} +1 -1
  43. package/chunk-CxOam2tf.js +1 -0
  44. package/{chunk-DD_wKpGc.js → chunk-CxUx2RFx.js} +1 -1
  45. package/{chunk-Bj7EyCHb.js → chunk-D0qGkLVr.js} +1 -1
  46. package/{chunk-Z81HNfgo.js → chunk-D4S_1RMU.js} +1 -1
  47. package/{chunk-C3gUxHQM.js → chunk-D5zSyubd.js} +1 -1
  48. package/{chunk-nuwlP4Wz.js → chunk-D6WUhpxO.js} +5 -5
  49. package/{chunk-CvSsZZty.js → chunk-D7C8xyJI.js} +1 -1
  50. package/{chunk-Ca1aaA1h.js → chunk-D9dEfxn4.js} +1 -1
  51. package/{chunk-ByL8ndec.js → chunk-DB1KeglF.js} +1 -1
  52. package/{chunk-DGvC49aU.js → chunk-DCsYP4vf.js} +1 -1
  53. package/chunk-DGO0_pkA.js +2 -0
  54. package/chunk-DKOaWS_j.js +2 -0
  55. package/{chunk-FTZ5atHM.js → chunk-DP2sLJDC.js} +1 -1
  56. package/chunk-DXh9g32e.js +1 -0
  57. package/{chunk-CfxBiw7I.js → chunk-DYfv4gJW.js} +1 -1
  58. package/chunk-DZMTCfoN.js +1 -0
  59. package/chunk-DcU0yXkQ.js +1 -0
  60. package/chunk-Dg-uYwbp.js +2 -0
  61. package/{chunk-C7AeY2HY.js → chunk-DmwtL4h3.js} +1 -1
  62. package/chunk-DnTA-m4k.js +2 -0
  63. package/{chunk-DhiIZLrA.js → chunk-DqoYKCmi.js} +1 -1
  64. package/{chunk-CIe9Bupz.js → chunk-Du0Hd0t6.js} +1 -1
  65. package/{chunk-DXEgz1tV.js → chunk-Dyq6iPbF.js} +1 -1
  66. package/chunk-DzYR8wiz.js +2 -0
  67. package/{chunk-aCJqF9DH.js → chunk-FZcbbWYC.js} +1 -1
  68. package/{chunk-CyqqlRjO.js → chunk-GKdOPH_4.js} +1 -1
  69. package/{chunk-CX3Axjpk.js → chunk-KNmRQWOM.js} +1 -1
  70. package/{chunk-BxpXVeOr.js → chunk-OIDsf_Aq.js} +1 -1
  71. package/{chunk-aYCYzU5Q.js → chunk-S-sgDIKw.js} +1 -1
  72. package/{chunk-B5Y6lgE8.js → chunk-UCY_7-Of.js} +1 -1
  73. package/{chunk-MDqH8T3Z.js → chunk-UUMQmD5I.js} +1 -1
  74. package/{chunk-DGxk44Me.js → chunk-X3dwwJIr.js} +1 -1
  75. package/chunk-_J1lTnCH.js +1 -0
  76. package/{chunk-K2iai6rC.js → chunk-i6kMmbhY.js} +1 -1
  77. package/chunk-oobMnyEm.js +3 -0
  78. package/{chunk-BstaUtD_.js → chunk-pxcB56N0.js} +1 -1
  79. package/{chunk-CWgXi-7W.js → chunk-sgM_r5NM.js} +1 -1
  80. package/{chunk-eiyaQxBt.js → chunk-umUQn7LQ.js} +1 -1
  81. package/{chunk-8Y8ReLEn.js → chunk-xwdrpTfz.js} +1 -1
  82. package/index.html +1 -1
  83. package/{main-3NL5M6JB.js → main-XKLDSNLY.js} +1 -1
  84. package/package.json +1 -1
  85. package/chunk-B1wZ4poV.js +0 -1
  86. package/chunk-BZgAzrl9.js +0 -2
  87. package/chunk-BaSm1lsB.js +0 -2
  88. package/chunk-BrtdRb9j.js +0 -1
  89. package/chunk-BzJX1fKw.js +0 -1
  90. package/chunk-C7gG_Yh_.js +0 -2
  91. package/chunk-CP6xnjgo.js +0 -3
  92. package/chunk-ChUm8bnG.js +0 -1
  93. package/chunk-CkRbgemk.js +0 -2
  94. package/chunk-ClRItSzt.js +0 -1
  95. package/chunk-D55uWC7G.js +0 -1
  96. package/chunk-DV8bRznt.js +0 -2
  97. package/chunk-DbbyVAGl.js +0 -1
  98. package/chunk-DuYKanVS.js +0 -1
  99. package/chunk-DwmssGG9.js +0 -2
  100. package/chunk-DxFBzFom.js +0 -1
  101. package/chunk-I5dxaHZ4.js +0 -2
  102. package/chunk-Y-xXBGKy.js +0 -1
  103. package/chunk-ksSA-rDF.js +0 -1
  104. package/chunk-uGh0bVbu.js +0 -4
@@ -1,2 +1,2 @@
1
- import {T,a7 as l,E as E1,N as Nt,h as hw,a1 as dT,a2 as fT,e as ee,aw as W,a6 as be,ah as fe$1,ab as C,A as v,G as Ge,at as h$1,az as t,v as v$1,u as ue,ak as dm,Q as Qi,s as jC,$ as $l,d as aT,H as Hg,n as nC,al as WC,C as CE,f as NC,K as im,g as cT,i as Ig,y as vg,k as iC,ao as qC,aa as Ql,F as Fg,j as jg,ar as Zp,l as vT,O as Od,P as Pd,aP as ql,aQ as Gl}from'./main-3NL5M6JB.js';import {d}from'./chunk-DDWDcSq2.js';function ae(i,t){if(i&1&&(Qi(0,"div",11),jC(1),$l()),i&2){iC();let e=qC(0);CE(),Ql(" ",e.Message," ");}}function re(i,t){if(i&1&&(Qi(0,"div"),Fg(1,1),Ig(2,"a",15),jg(),$l()),i&2){let e=iC();CE(2),vg("href",e.downloadLink(),Zp);}}function ce(i,t){if(i&1){let e=vT();Qi(0,"button",14),Hg("click",function(){Od(e);let o=iC(),l=qC(0);return Pd(o.doRepair(l.BackupID))}),nC(1,2),$l();}}function le(i,t){if(i&1){let e=vT();Qi(0,"button",14),Hg("click",function(){Od(e);let o=iC(),l=qC(0);return Pd(o.doDownloadBugreport(l))}),nC(1,3),$l();}}function _e(i,t){if(i&1&&Ig(0,"sh-progress-bar",17),i&2){let e=iC(2);vg("value",e.serverState()?.UpdateDownloadProgress);}}function se(i,t){if(i&1){let e=vT();Qi(0,"div",11),ql(1),nC(2,4),Gl(),Qi(3,"a",16),jC(4),$l(),aT(5,_e,1,1,"sh-progress-bar",17),Qi(6,"button",14),Hg("click",function(){Od(e);let o=iC();return Pd(o.doShowUpdate())}),nC(7,5),$l()();}if(i&2){let e=iC(),n=qC(0);CE(3),vg("href",e.serverState()?.UpdateDownloadLink,Zp),CE(),im(n.Message),CE(),cT(e.serverState()?.UpdaterState==="Downloading"?5:-1);}}function de(i,t){if(i&1){let e=vT();Qi(0,"button",14),Hg("click",function(){Od(e);let o=iC(),l=qC(0);return Pd(o.doShowLog(l.BackupID))}),nC(1,6),$l();}}function Ne(i,t){if(i&1){let e=vT();Qi(0,"button",14),Hg("click",function(){Od(e);let o=iC();return Pd(o.doShowLink("https://docs.duplicati.com/detailed-descriptions/the-server-database"))}),nC(1,7),$l();}}function Te(i,t){if(i&1){let e=vT();Qi(0,"button",14),Hg("click",function(){Od(e);let o=iC();return Pd(o.doShowLink("https://docs.duplicati.com/detailed-descriptions/the-server-database"))}),nC(1,8),$l();}}var Ce={Error:"error",Warning:"warn",Information:"primary"},h=class i{#e=T(ee);#a=T(W);#r=T(be);#t=T(fe$1);#i=T(l);#n=T(C);#c=T(v);#o=Ge(null);serverState=this.#i.serverState;index=E1.required();notification=E1.required();downloadLink=Nt(()=>this.#o()||this.notification().DownloadLink||"");deleteNotificationByIndex(){this.#i.deleteNotification(this.index());}deleteAllNotifications(){this.#i.deleteAllNotifications();}getAlertType(t){return t&&Ce[t]||"primary"}doShowLog(t){this.#n.getApiV1BackupByIdIsactive({id:t}).subscribe({next:e=>{this.#e.navigate(["/backup/"+t+"/log"]);},error:e=>{if(e.status===404){let n={title:$localize`Error`,message:$localize`The backup is missing, has it been deleted?`,confirmText:$localize`OK`,cancelText:null};parseInt(t)+""!=t&&(n={title:$localize`Error`,message:$localize`The backup was temporary and does not exist anymore, so the log data is lost`,confirmText:$localize`OK`,cancelText:null}),this.#r.open(h$1,{maxWidth:"550px",width:"100%",data:n});}else this.#t.error($localize`Failed to find backup: `+e.message);}});}doRepair(t){this.#n.postApiV1BackupByIdRepair({id:t}).subscribe({next:()=>{this.#t.success($localize`Backup repaired`),this.#e.navigate(["./"],{onSameUrlNavigation:"reload",relativeTo:this.#a});},error:e=>{this.#t.error($localize`Failed to repair backup: `+e.message);}});}doShowUpdate(){this.#e.navigate(["/about/changelog"]);}doShowLink(t){window.open(t,"_blank");}doDownloadBugreport(t$1){let e=t$1.Action.slice(19);this.#n.postApiV1AuthIssuetokenByOperation({operation:"bugreport"}).subscribe({next:n=>{if(!n.Token){this.#t.error("Failed to get bug report URL: No token generated");return}let o=t.BASE||"",l=this.#c.xsrfQueryParam(),m=`${location.origin}${o}/api/v1/bugreport/${e}?token=${n.Token}${l?`&${l}`:""}`;t$1.DownloadLink=m,this.#o.set(m),this.triggerDownload(m);},error:n=>{this.#t.error(`Failed to get bug report URL: ${n.message}`);}});}triggerDownload(t){let e=document.createElement("a");e.href=t,e.download="",e.style.display="none",document.body.appendChild(e);try{e.click();}catch{}document.body.removeChild(e);}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=hw({type:i,selectors:[["app-notification"]],inputs:{index:[1,"index"],notification:[1,"notification"]},decls:16,vars:12,consts:()=>{let t;t=$localize`Dismiss`;let e;e=$localize` If the backup file was not downloaded automatically, ${"\uFFFD#2\uFFFD"}:START_LINK:right click and choose "Save as …"${"\uFFFD/#2\uFFFD"}:CLOSE_LINK:`;let n;n=$localize`Repair`;let o;o=$localize`Download`;let l;l=$localize`New update found:`;let m;m=$localize`Show Update`;let b;b=$localize`Show Log`;let L;L=$localize` Show Help `;let $;return $=$localize` Show Help `,[t,e,n,o,l,m,b,L,$,["ship-alert-title",""],["ship-alert-content","",1,"content"],[1,"message"],[1,"sub-actions"],["shButton","",1,"small","outlined"],["shButton","",1,"small","outlined",3,"click"],["target","_blank",3,"href"],[3,"href"],[3,"value"]]},template:function(e,n){if(e&1&&(dm(0),Qi(1,"sh-alert")(2,"div",9),jC(3),$l(),Qi(4,"div",10),aT(5,ae,2,1,"div",11),aT(6,re,3,1,"div"),Qi(7,"div",12),aT(8,ce,2,0,"button",13),aT(9,le,2,0,"button",13),aT(10,se,8,3,"div",11),aT(11,de,2,0,"button",13),aT(12,Ne,2,0,"button",13),aT(13,Te,2,0,"button",13),Qi(14,"button",14),Hg("click",function(){return n.deleteNotificationByIndex()}),nC(15,0),$l()()()()),e&2){let o=WC(n.notification());CE(),NC(n.getAlertType(o.Type)),CE(2),im(o.Title),CE(2),cT(o.Action!=="update:new"&&o.Action!=="update:manual"?5:-1),CE(),cT(n.downloadLink()?6:-1),CE(2),cT(o.Message?.includes("please run repair")?8:-1),CE(),cT(o.Action?.startsWith("bug-report:created:")&&!n.downloadLink()?9:-1),CE(),cT(o.Action==="update:new"?10:-1),CE(),cT(o.Action==="backup:show-log"?11:-1),CE(),cT(o.Action==="config:issue:unencrypted-database"?12:-1),CE(),cT(o.Action==="config:issue:windows-folder-used"?13:-1);}},dependencies:[d,v$1,ue],styles:["[_nghost-%COMP%]{display:block}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-direction:column;gap:.5rem}.message[_ngcontent-%COMP%]{max-height:12.5rem;overflow:auto}.sub-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:.5rem;margin-top:.5rem}"]})};var pe=(i,t)=>t.ID;function Ie(i,t){if(i&1&&Ig(0,"app-notification",1),i&2){let e=t.$implicit,n=t.$index;vg("index",n)("notification",e);}}function fe(i,t){i&1&&(Qi(0,"div",2)(1,"p"),nC(2,0),$l()());}var ie=class i{#e=T(l);notificationFilterPredicate=E1();notifications=Nt(()=>{let t=this.notificationFilterPredicate()?.predicate,e=this.#e.notifications();return typeof t!="function"?e:e.filter(t)});static \u0275fac=function(e){return new(e||i)};static \u0275cmp=hw({type:i,selectors:[["app-notifications"]],inputs:{notificationFilterPredicate:[1,"notificationFilterPredicate"]},decls:3,vars:1,consts:()=>{let t;return t=$localize`No more notifications`,[t,[3,"index","notification"],[1,"notification-list"]]},template:function(e,n){e&1&&dT(0,Ie,1,2,"app-notification",1,pe,false,fe,3,0,"div",2),e&2&&fT(n.notifications());},dependencies:[h],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.actions[_ngcontent-%COMP%]{display:flex;gap:.25rem;justify-content:flex-end}.notification-list[_ngcontent-%COMP%]{padding:1rem;display:flex;flex-direction:column;gap:1rem;text-align:center}"]})};
1
+ import {T,a7 as l,E as E1,N as Nt,h as hw,a1 as dT,a2 as fT,e as ee,aw as W,a6 as be,ah as fe$1,ab as C,A as v,G as Ge,at as h$1,az as t,v as v$1,u as ue,ak as dm,Q as Qi,s as jC,$ as $l,d as aT,H as Hg,n as nC,al as WC,C as CE,f as NC,K as im,g as cT,i as Ig,y as vg,k as iC,ao as qC,aa as Ql,F as Fg,j as jg,ar as Zp,l as vT,O as Od,P as Pd,aP as ql,aQ as Gl}from'./main-XKLDSNLY.js';import {d}from'./chunk-BnFO-7ok.js';function ae(i,t){if(i&1&&(Qi(0,"div",11),jC(1),$l()),i&2){iC();let e=qC(0);CE(),Ql(" ",e.Message," ");}}function re(i,t){if(i&1&&(Qi(0,"div"),Fg(1,1),Ig(2,"a",15),jg(),$l()),i&2){let e=iC();CE(2),vg("href",e.downloadLink(),Zp);}}function ce(i,t){if(i&1){let e=vT();Qi(0,"button",14),Hg("click",function(){Od(e);let o=iC(),l=qC(0);return Pd(o.doRepair(l.BackupID))}),nC(1,2),$l();}}function le(i,t){if(i&1){let e=vT();Qi(0,"button",14),Hg("click",function(){Od(e);let o=iC(),l=qC(0);return Pd(o.doDownloadBugreport(l))}),nC(1,3),$l();}}function _e(i,t){if(i&1&&Ig(0,"sh-progress-bar",17),i&2){let e=iC(2);vg("value",e.serverState()?.UpdateDownloadProgress);}}function se(i,t){if(i&1){let e=vT();Qi(0,"div",11),ql(1),nC(2,4),Gl(),Qi(3,"a",16),jC(4),$l(),aT(5,_e,1,1,"sh-progress-bar",17),Qi(6,"button",14),Hg("click",function(){Od(e);let o=iC();return Pd(o.doShowUpdate())}),nC(7,5),$l()();}if(i&2){let e=iC(),n=qC(0);CE(3),vg("href",e.serverState()?.UpdateDownloadLink,Zp),CE(),im(n.Message),CE(),cT(e.serverState()?.UpdaterState==="Downloading"?5:-1);}}function de(i,t){if(i&1){let e=vT();Qi(0,"button",14),Hg("click",function(){Od(e);let o=iC(),l=qC(0);return Pd(o.doShowLog(l.BackupID))}),nC(1,6),$l();}}function Ne(i,t){if(i&1){let e=vT();Qi(0,"button",14),Hg("click",function(){Od(e);let o=iC();return Pd(o.doShowLink("https://docs.duplicati.com/detailed-descriptions/the-server-database"))}),nC(1,7),$l();}}function Te(i,t){if(i&1){let e=vT();Qi(0,"button",14),Hg("click",function(){Od(e);let o=iC();return Pd(o.doShowLink("https://docs.duplicati.com/detailed-descriptions/the-server-database"))}),nC(1,8),$l();}}var Ce={Error:"error",Warning:"warn",Information:"primary"},h=class i{#e=T(ee);#a=T(W);#r=T(be);#t=T(fe$1);#i=T(l);#n=T(C);#c=T(v);#o=Ge(null);serverState=this.#i.serverState;index=E1.required();notification=E1.required();downloadLink=Nt(()=>this.#o()||this.notification().DownloadLink||"");deleteNotificationByIndex(){this.#i.deleteNotification(this.index());}deleteAllNotifications(){this.#i.deleteAllNotifications();}getAlertType(t){return t&&Ce[t]||"primary"}doShowLog(t){this.#n.getApiV1BackupByIdIsactive({id:t}).subscribe({next:e=>{this.#e.navigate(["/backup/"+t+"/log"]);},error:e=>{if(e.status===404){let n={title:$localize`Error`,message:$localize`The backup is missing, has it been deleted?`,confirmText:$localize`OK`,cancelText:null};parseInt(t)+""!=t&&(n={title:$localize`Error`,message:$localize`The backup was temporary and does not exist anymore, so the log data is lost`,confirmText:$localize`OK`,cancelText:null}),this.#r.open(h$1,{maxWidth:"550px",width:"100%",data:n});}else this.#t.error($localize`Failed to find backup: `+e.message);}});}doRepair(t){this.#n.postApiV1BackupByIdRepair({id:t}).subscribe({next:()=>{this.#t.success($localize`Backup repaired`),this.#e.navigate(["./"],{onSameUrlNavigation:"reload",relativeTo:this.#a});},error:e=>{this.#t.error($localize`Failed to repair backup: `+e.message);}});}doShowUpdate(){this.#e.navigate(["/about/changelog"]);}doShowLink(t){window.open(t,"_blank");}doDownloadBugreport(t$1){let e=t$1.Action.slice(19);this.#n.postApiV1AuthIssuetokenByOperation({operation:"bugreport"}).subscribe({next:n=>{if(!n.Token){this.#t.error("Failed to get bug report URL: No token generated");return}let o=t.BASE||"",l=this.#c.xsrfQueryParam(),m=`${location.origin}${o}/api/v1/bugreport/${e}?token=${n.Token}${l?`&${l}`:""}`;t$1.DownloadLink=m,this.#o.set(m),this.triggerDownload(m);},error:n=>{this.#t.error(`Failed to get bug report URL: ${n.message}`);}});}triggerDownload(t){let e=document.createElement("a");e.href=t,e.download="",e.style.display="none",document.body.appendChild(e);try{e.click();}catch{}document.body.removeChild(e);}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=hw({type:i,selectors:[["app-notification"]],inputs:{index:[1,"index"],notification:[1,"notification"]},decls:16,vars:12,consts:()=>{let t;t=$localize`Dismiss`;let e;e=$localize` If the backup file was not downloaded automatically, ${"\uFFFD#2\uFFFD"}:START_LINK:right click and choose "Save as …"${"\uFFFD/#2\uFFFD"}:CLOSE_LINK:`;let n;n=$localize`Repair`;let o;o=$localize`Download`;let l;l=$localize`New update found:`;let m;m=$localize`Show Update`;let b;b=$localize`Show Log`;let L;L=$localize` Show Help `;let $;return $=$localize` Show Help `,[t,e,n,o,l,m,b,L,$,["ship-alert-title",""],["ship-alert-content","",1,"content"],[1,"message"],[1,"sub-actions"],["shButton","",1,"small","outlined"],["shButton","",1,"small","outlined",3,"click"],["target","_blank",3,"href"],[3,"href"],[3,"value"]]},template:function(e,n){if(e&1&&(dm(0),Qi(1,"sh-alert")(2,"div",9),jC(3),$l(),Qi(4,"div",10),aT(5,ae,2,1,"div",11),aT(6,re,3,1,"div"),Qi(7,"div",12),aT(8,ce,2,0,"button",13),aT(9,le,2,0,"button",13),aT(10,se,8,3,"div",11),aT(11,de,2,0,"button",13),aT(12,Ne,2,0,"button",13),aT(13,Te,2,0,"button",13),Qi(14,"button",14),Hg("click",function(){return n.deleteNotificationByIndex()}),nC(15,0),$l()()()()),e&2){let o=WC(n.notification());CE(),NC(n.getAlertType(o.Type)),CE(2),im(o.Title),CE(2),cT(o.Action!=="update:new"&&o.Action!=="update:manual"?5:-1),CE(),cT(n.downloadLink()?6:-1),CE(2),cT(o.Message?.includes("please run repair")?8:-1),CE(),cT(o.Action?.startsWith("bug-report:created:")&&!n.downloadLink()?9:-1),CE(),cT(o.Action==="update:new"?10:-1),CE(),cT(o.Action==="backup:show-log"?11:-1),CE(),cT(o.Action==="config:issue:unencrypted-database"?12:-1),CE(),cT(o.Action==="config:issue:windows-folder-used"?13:-1);}},dependencies:[d,v$1,ue],styles:["[_nghost-%COMP%]{display:block}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-direction:column;gap:.5rem}.message[_ngcontent-%COMP%]{max-height:12.5rem;overflow:auto}.sub-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:.5rem;margin-top:.5rem}"]})};var pe=(i,t)=>t.ID;function Ie(i,t){if(i&1&&Ig(0,"app-notification",1),i&2){let e=t.$implicit,n=t.$index;vg("index",n)("notification",e);}}function fe(i,t){i&1&&(Qi(0,"div",2)(1,"p"),nC(2,0),$l()());}var ie=class i{#e=T(l);notificationFilterPredicate=E1();notifications=Nt(()=>{let t=this.notificationFilterPredicate()?.predicate,e=this.#e.notifications();return typeof t!="function"?e:e.filter(t)});static \u0275fac=function(e){return new(e||i)};static \u0275cmp=hw({type:i,selectors:[["app-notifications"]],inputs:{notificationFilterPredicate:[1,"notificationFilterPredicate"]},decls:3,vars:1,consts:()=>{let t;return t=$localize`No more notifications`,[t,[3,"index","notification"],[1,"notification-list"]]},template:function(e,n){e&1&&dT(0,Ie,1,2,"app-notification",1,pe,false,fe,3,0,"div",2),e&2&&fT(n.notifications());},dependencies:[h],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.actions[_ngcontent-%COMP%]{display:flex;gap:.25rem;justify-content:flex-end}.notification-list[_ngcontent-%COMP%]{padding:1rem;display:flex;flex-direction:column;gap:1rem;text-align:center}"]})};
2
2
  export{h,ie as i};
@@ -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 {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-XKLDSNLY.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)}}
2
2
  `],encapsulation:2});}}return o})();export{x};
@@ -1,2 +1,2 @@
1
- import {ba as ue,E as E1,bb as ce,T,q as qe,z as za,h as hw,bc as sg,S as aC,Y as cC,f as NC}from'./main-3NL5M6JB.js';var m=["*"],w=(()=>{class i extends ue{constructor(){super("[value], [step], [routerLinkActive], button, a","active",{hostRole:"tablist",itemRole:"tab"}),this.color=E1(null),this.hostClasses=ce("stepper",{color:this.color});let s=T(qe);if(za(()=>{this.items().forEach(e=>{if(!e.querySelector(".sh-radio")){let t=document.createElement("div");t.className="sh-radio";let r=document.createElement("div");r.className="radio sh-sheet",t.append(r),e.prepend(t);}});}),za(()=>{this.items(),this.updateProgress();}),typeof MutationObserver<"u"){let e=new MutationObserver(()=>{this.updateProgress();});e.observe(this.hostElement,{attributes:true,subtree:true,attributeFilter:["class"]}),s.onDestroy(()=>{e.disconnect();});}}updateProgress(){let s=Array.from(this.hostElement.querySelectorAll("[value], [step], [routerLinkActive], button, a")),e=s.findIndex(f=>f.classList.contains(this.activeClass));e===-1&&(e=0);let t=s.length,r=0;t>1&&(r=e/(t-1)*100),this.hostElement.style.setProperty("--stepper-progress",`${r}%`);}static{this.\u0275fac=function(e){return new(e||i)};}static{this.\u0275cmp=hw({type:i,selectors:[["sh-stepper"]],hostVars:2,hostBindings:function(e,t){e&2&&NC(t.hostClasses());},inputs:{color:[1,"color"]},features:[sg],ngContentSelectors:m,decls:1,vars:0,template:function(e,t){e&1&&(aC(),cC(0));},styles:[`.sh-radio,sh-radio{--radiod-c: var(--base-8);--radiod-o: 0;--radio-bc: var(--base-4);display:flex;align-items:center;gap:.5rem;cursor:pointer;-webkit-user-select:none;user-select:none;position:relative}.sh-radio:focus-visible>.radio,.sh-radio:has(input:focus-visible)>.radio,sh-radio:focus-visible>.radio,sh-radio:has(input:focus-visible)>.radio{outline:2px solid var(--primary-8);outline-offset:2px}.sh-radio>input,sh-radio>input{appearance:none;position:absolute;inset:0;cursor:pointer}.sh-radio>input:focus,.sh-radio>input:focus-visible,sh-radio>input:focus,sh-radio>input:focus-visible{outline:none}.sh-radio:has(>input:not(.internal-input))>input.internal-input,sh-radio:has(>input:not(.internal-input))>input.internal-input{display:none}.sh-radio:has(input[disabled]),.sh-radio[disabled]:not([disabled=false]),sh-radio:has(input[disabled]),sh-radio[disabled]:not([disabled=false]){opacity:.5;pointer-events:none;-webkit-user-select:none;user-select:none;cursor:initial}.sh-radio:has(input:checked),.sh-radio.active,sh-radio:has(input:checked),sh-radio.active{--radiod-o: 1}.sh-radio .radio,sh-radio .radio{display:flex;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;cursor:pointer;position:relative;border-radius:50%}.sh-radio .radio:after,sh-radio .radio:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:50%;width:.375rem;height:.375rem;background-color:var(--radiod-c);opacity:var(--radiod-o);transition:opacity 125ms linear}.sh-radio.primary,sh-radio.primary{--radiod-c: var(--primary-8)}.sh-radio.accent,sh-radio.accent{--radiod-c: var(--accent-8)}.sh-radio.warn,sh-radio.warn{--radiod-c: var(--warn-8)}.sh-radio.error,sh-radio.error{--radiod-c: var(--error-8)}.sh-radio.success,sh-radio.success{--radiod-c: var(--success-8)}.sh-radio.flat,.sh-radio.raised,sh-radio.flat,sh-radio.raised{--radiod-c: #fff}.sh-radio.raised:not(:has(input:checked)):not(.active) .radio,.sh-radio.flat:not(:has(input:checked)):not(.active) .radio,sh-radio.raised:not(:has(input:checked)):not(.active) .radio,sh-radio.flat:not(:has(input:checked)):not(.active) .radio{background:transparent;border:var(--border-10);border-color:var(--radio-bc)}sh-stepper{--step-track-bg: var(--base-3);--step-c: var(--base-6);--step-radio-cbg: var(--base-1);--step-radio-c: var(--base-g2);--step-active-c: var(--base-8);display:flex;flex-wrap:nowrap;width:100%;position:relative}sh-stepper.primary{--step-c: var(--primary-6);--step-radio-cbg: var(--primary-1);--step-radio-c: var(--primary-g2);--step-active-c: var(--primary-8)}sh-stepper.accent{--step-c: var(--accent-6);--step-radio-cbg: var(--accent-1);--step-radio-c: var(--accent-g2);--step-active-c: var(--accent-8)}sh-stepper.warn{--step-c: var(--warn-6);--step-radio-cbg: var(--warn-1);--step-radio-c: var(--warn-g2);--step-active-c: var(--warn-8)}sh-stepper.error{--step-c: var(--error-6);--step-radio-cbg: var(--error-1);--step-radio-c: var(--error-g2);--step-active-c: var(--error-8)}sh-stepper.success{--step-c: var(--success-6);--step-radio-cbg: var(--success-1);--step-radio-c: var(--success-g2);--step-active-c: var(--success-8)}sh-stepper button{background:transparent;border:0;padding:0}sh-stepper button,sh-stepper [routerLinkActive],sh-stepper [step],sh-stepper [value]{flex:2 0;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:.5rem;position:relative;color:var(--base-8);cursor:pointer;-webkit-user-select:none;user-select:none;outline:none;z-index:1}sh-stepper button:focus-visible .sh-radio,sh-stepper [routerLinkActive]:focus-visible .sh-radio,sh-stepper [step]:focus-visible .sh-radio,sh-stepper [value]:focus-visible .sh-radio{outline:2px solid var(--primary-8);outline-offset:2px;border-radius:50%}sh-stepper button:first-child,sh-stepper [routerLinkActive]:first-child,sh-stepper [step]:first-child,sh-stepper [value]:first-child{align-items:flex-start;flex:1 0}sh-stepper button:last-child,sh-stepper [routerLinkActive]:last-child,sh-stepper [step]:last-child,sh-stepper [value]:last-child{align-items:flex-end;flex:1 0;text-align:end}sh-stepper button:not(.active) .sh-radio,sh-stepper [routerLinkActive]:not(.active) .sh-radio,sh-stepper [step]:not(.active) .sh-radio,sh-stepper [value]:not(.active) .sh-radio{z-index:10}sh-stepper button:has(~button.active) .sh-radio,sh-stepper button:has(~[step].active) .sh-radio,sh-stepper button:has(~[routerLinkActive].active) .sh-radio,sh-stepper button:has(~[value].active) .sh-radio,sh-stepper [routerLinkActive]:has(~button.active) .sh-radio,sh-stepper [routerLinkActive]:has(~[step].active) .sh-radio,sh-stepper [routerLinkActive]:has(~[routerLinkActive].active) .sh-radio,sh-stepper [routerLinkActive]:has(~[value].active) .sh-radio,sh-stepper [step]:has(~button.active) .sh-radio,sh-stepper [step]:has(~[step].active) .sh-radio,sh-stepper [step]:has(~[routerLinkActive].active) .sh-radio,sh-stepper [step]:has(~[value].active) .sh-radio,sh-stepper [value]:has(~button.active) .sh-radio,sh-stepper [value]:has(~[step].active) .sh-radio,sh-stepper [value]:has(~[routerLinkActive].active) .sh-radio,sh-stepper [value]:has(~[value].active) .sh-radio{--radiod-o: 1}sh-stepper button:has(~button.active) .sh-radio .radio,sh-stepper button:has(~[step].active) .sh-radio .radio,sh-stepper button:has(~[routerLinkActive].active) .sh-radio .radio,sh-stepper button:has(~[value].active) .sh-radio .radio,sh-stepper [routerLinkActive]:has(~button.active) .sh-radio .radio,sh-stepper [routerLinkActive]:has(~[step].active) .sh-radio .radio,sh-stepper [routerLinkActive]:has(~[routerLinkActive].active) .sh-radio .radio,sh-stepper [routerLinkActive]:has(~[value].active) .sh-radio .radio,sh-stepper [step]:has(~button.active) .sh-radio .radio,sh-stepper [step]:has(~[step].active) .sh-radio .radio,sh-stepper [step]:has(~[routerLinkActive].active) .sh-radio .radio,sh-stepper [step]:has(~[value].active) .sh-radio .radio,sh-stepper [value]:has(~button.active) .sh-radio .radio,sh-stepper [value]:has(~[step].active) .sh-radio .radio,sh-stepper [value]:has(~[routerLinkActive].active) .sh-radio .radio,sh-stepper [value]:has(~[value].active) .sh-radio .radio{border-width:0;background:var(--step-radio-c)}sh-stepper button .sh-radio .radio,sh-stepper [routerLinkActive] .sh-radio .radio,sh-stepper [step] .sh-radio .radio,sh-stepper [value] .sh-radio .radio{--radiod-c: var(--step-radio-cbg);width:1rem;height:1rem}sh-stepper button.active,sh-stepper [routerLinkActive].active,sh-stepper [step].active,sh-stepper [value].active{color:var(--step-active-c);outline:none}sh-stepper button.active .sh-radio,sh-stepper [routerLinkActive].active .sh-radio,sh-stepper [step].active .sh-radio,sh-stepper [value].active .sh-radio{z-index:0;--radiod-o: 1}sh-stepper button.active .sh-radio .radio,sh-stepper [routerLinkActive].active .sh-radio .radio,sh-stepper [step].active .sh-radio .radio,sh-stepper [value].active .sh-radio .radio{border-width:0;background:var(--step-radio-c)}sh-stepper:before{content:"";position:absolute;top:.375rem;left:0;z-index:0;right:0;height:.25rem;background-color:var(--step-track-bg)}sh-stepper:after{content:"";position:absolute;top:.375rem;left:0;z-index:0;width:var(--stepper-progress, 0%);height:.25rem;background-color:var(--step-active-c);transition:width .15s ease-out}
1
+ import {ba as ue,E as E1,bb as ce,T,q as qe,z as za,h as hw,bc as sg,S as aC,Y as cC,f as NC}from'./main-XKLDSNLY.js';var m=["*"],w=(()=>{class i extends ue{constructor(){super("[value], [step], [routerLinkActive], button, a","active",{hostRole:"tablist",itemRole:"tab"}),this.color=E1(null),this.hostClasses=ce("stepper",{color:this.color});let s=T(qe);if(za(()=>{this.items().forEach(e=>{if(!e.querySelector(".sh-radio")){let t=document.createElement("div");t.className="sh-radio";let r=document.createElement("div");r.className="radio sh-sheet",t.append(r),e.prepend(t);}});}),za(()=>{this.items(),this.updateProgress();}),typeof MutationObserver<"u"){let e=new MutationObserver(()=>{this.updateProgress();});e.observe(this.hostElement,{attributes:true,subtree:true,attributeFilter:["class"]}),s.onDestroy(()=>{e.disconnect();});}}updateProgress(){let s=Array.from(this.hostElement.querySelectorAll("[value], [step], [routerLinkActive], button, a")),e=s.findIndex(f=>f.classList.contains(this.activeClass));e===-1&&(e=0);let t=s.length,r=0;t>1&&(r=e/(t-1)*100),this.hostElement.style.setProperty("--stepper-progress",`${r}%`);}static{this.\u0275fac=function(e){return new(e||i)};}static{this.\u0275cmp=hw({type:i,selectors:[["sh-stepper"]],hostVars:2,hostBindings:function(e,t){e&2&&NC(t.hostClasses());},inputs:{color:[1,"color"]},features:[sg],ngContentSelectors:m,decls:1,vars:0,template:function(e,t){e&1&&(aC(),cC(0));},styles:[`.sh-radio,sh-radio{--radiod-c: var(--base-8);--radiod-o: 0;--radio-bc: var(--base-4);display:flex;align-items:center;gap:.5rem;cursor:pointer;-webkit-user-select:none;user-select:none;position:relative}.sh-radio:focus-visible>.radio,.sh-radio:has(input:focus-visible)>.radio,sh-radio:focus-visible>.radio,sh-radio:has(input:focus-visible)>.radio{outline:2px solid var(--primary-8);outline-offset:2px}.sh-radio>input,sh-radio>input{appearance:none;position:absolute;inset:0;cursor:pointer}.sh-radio>input:focus,.sh-radio>input:focus-visible,sh-radio>input:focus,sh-radio>input:focus-visible{outline:none}.sh-radio:has(>input:not(.internal-input))>input.internal-input,sh-radio:has(>input:not(.internal-input))>input.internal-input{display:none}.sh-radio:has(input[disabled]),.sh-radio[disabled]:not([disabled=false]),sh-radio:has(input[disabled]),sh-radio[disabled]:not([disabled=false]){opacity:.5;pointer-events:none;-webkit-user-select:none;user-select:none;cursor:initial}.sh-radio:has(input:checked),.sh-radio.active,sh-radio:has(input:checked),sh-radio.active{--radiod-o: 1}.sh-radio .radio,sh-radio .radio{display:flex;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;cursor:pointer;position:relative;border-radius:50%}.sh-radio .radio:after,sh-radio .radio:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:50%;width:.375rem;height:.375rem;background-color:var(--radiod-c);opacity:var(--radiod-o);transition:opacity 125ms linear}.sh-radio.primary,sh-radio.primary{--radiod-c: var(--primary-8)}.sh-radio.accent,sh-radio.accent{--radiod-c: var(--accent-8)}.sh-radio.warn,sh-radio.warn{--radiod-c: var(--warn-8)}.sh-radio.error,sh-radio.error{--radiod-c: var(--error-8)}.sh-radio.success,sh-radio.success{--radiod-c: var(--success-8)}.sh-radio.flat,.sh-radio.raised,sh-radio.flat,sh-radio.raised{--radiod-c: #fff}.sh-radio.raised:not(:has(input:checked)):not(.active) .radio,.sh-radio.flat:not(:has(input:checked)):not(.active) .radio,sh-radio.raised:not(:has(input:checked)):not(.active) .radio,sh-radio.flat:not(:has(input:checked)):not(.active) .radio{background:transparent;border:var(--border-10);border-color:var(--radio-bc)}sh-stepper{--step-track-bg: var(--base-3);--step-c: var(--base-6);--step-radio-cbg: var(--base-1);--step-radio-c: var(--base-g2);--step-active-c: var(--base-8);display:flex;flex-wrap:nowrap;width:100%;position:relative}sh-stepper.primary{--step-c: var(--primary-6);--step-radio-cbg: var(--primary-1);--step-radio-c: var(--primary-g2);--step-active-c: var(--primary-8)}sh-stepper.accent{--step-c: var(--accent-6);--step-radio-cbg: var(--accent-1);--step-radio-c: var(--accent-g2);--step-active-c: var(--accent-8)}sh-stepper.warn{--step-c: var(--warn-6);--step-radio-cbg: var(--warn-1);--step-radio-c: var(--warn-g2);--step-active-c: var(--warn-8)}sh-stepper.error{--step-c: var(--error-6);--step-radio-cbg: var(--error-1);--step-radio-c: var(--error-g2);--step-active-c: var(--error-8)}sh-stepper.success{--step-c: var(--success-6);--step-radio-cbg: var(--success-1);--step-radio-c: var(--success-g2);--step-active-c: var(--success-8)}sh-stepper button{background:transparent;border:0;padding:0}sh-stepper button,sh-stepper [routerLinkActive],sh-stepper [step],sh-stepper [value]{flex:2 0;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:.5rem;position:relative;color:var(--base-8);cursor:pointer;-webkit-user-select:none;user-select:none;outline:none;z-index:1}sh-stepper button:focus-visible .sh-radio,sh-stepper [routerLinkActive]:focus-visible .sh-radio,sh-stepper [step]:focus-visible .sh-radio,sh-stepper [value]:focus-visible .sh-radio{outline:2px solid var(--primary-8);outline-offset:2px;border-radius:50%}sh-stepper button:first-child,sh-stepper [routerLinkActive]:first-child,sh-stepper [step]:first-child,sh-stepper [value]:first-child{align-items:flex-start;flex:1 0}sh-stepper button:last-child,sh-stepper [routerLinkActive]:last-child,sh-stepper [step]:last-child,sh-stepper [value]:last-child{align-items:flex-end;flex:1 0;text-align:end}sh-stepper button:not(.active) .sh-radio,sh-stepper [routerLinkActive]:not(.active) .sh-radio,sh-stepper [step]:not(.active) .sh-radio,sh-stepper [value]:not(.active) .sh-radio{z-index:10}sh-stepper button:has(~button.active) .sh-radio,sh-stepper button:has(~[step].active) .sh-radio,sh-stepper button:has(~[routerLinkActive].active) .sh-radio,sh-stepper button:has(~[value].active) .sh-radio,sh-stepper [routerLinkActive]:has(~button.active) .sh-radio,sh-stepper [routerLinkActive]:has(~[step].active) .sh-radio,sh-stepper [routerLinkActive]:has(~[routerLinkActive].active) .sh-radio,sh-stepper [routerLinkActive]:has(~[value].active) .sh-radio,sh-stepper [step]:has(~button.active) .sh-radio,sh-stepper [step]:has(~[step].active) .sh-radio,sh-stepper [step]:has(~[routerLinkActive].active) .sh-radio,sh-stepper [step]:has(~[value].active) .sh-radio,sh-stepper [value]:has(~button.active) .sh-radio,sh-stepper [value]:has(~[step].active) .sh-radio,sh-stepper [value]:has(~[routerLinkActive].active) .sh-radio,sh-stepper [value]:has(~[value].active) .sh-radio{--radiod-o: 1}sh-stepper button:has(~button.active) .sh-radio .radio,sh-stepper button:has(~[step].active) .sh-radio .radio,sh-stepper button:has(~[routerLinkActive].active) .sh-radio .radio,sh-stepper button:has(~[value].active) .sh-radio .radio,sh-stepper [routerLinkActive]:has(~button.active) .sh-radio .radio,sh-stepper [routerLinkActive]:has(~[step].active) .sh-radio .radio,sh-stepper [routerLinkActive]:has(~[routerLinkActive].active) .sh-radio .radio,sh-stepper [routerLinkActive]:has(~[value].active) .sh-radio .radio,sh-stepper [step]:has(~button.active) .sh-radio .radio,sh-stepper [step]:has(~[step].active) .sh-radio .radio,sh-stepper [step]:has(~[routerLinkActive].active) .sh-radio .radio,sh-stepper [step]:has(~[value].active) .sh-radio .radio,sh-stepper [value]:has(~button.active) .sh-radio .radio,sh-stepper [value]:has(~[step].active) .sh-radio .radio,sh-stepper [value]:has(~[routerLinkActive].active) .sh-radio .radio,sh-stepper [value]:has(~[value].active) .sh-radio .radio{border-width:0;background:var(--step-radio-c)}sh-stepper button .sh-radio .radio,sh-stepper [routerLinkActive] .sh-radio .radio,sh-stepper [step] .sh-radio .radio,sh-stepper [value] .sh-radio .radio{--radiod-c: var(--step-radio-cbg);width:1rem;height:1rem}sh-stepper button.active,sh-stepper [routerLinkActive].active,sh-stepper [step].active,sh-stepper [value].active{color:var(--step-active-c);outline:none}sh-stepper button.active .sh-radio,sh-stepper [routerLinkActive].active .sh-radio,sh-stepper [step].active .sh-radio,sh-stepper [value].active .sh-radio{z-index:0;--radiod-o: 1}sh-stepper button.active .sh-radio .radio,sh-stepper [routerLinkActive].active .sh-radio .radio,sh-stepper [step].active .sh-radio .radio,sh-stepper [value].active .sh-radio .radio{border-width:0;background:var(--step-radio-c)}sh-stepper:before{content:"";position:absolute;top:.375rem;left:0;z-index:0;right:0;height:.25rem;background-color:var(--step-track-bg)}sh-stepper:after{content:"";position:absolute;top:.375rem;left:0;z-index:0;width:var(--stepper-progress, 0%);height:.25rem;background-color:var(--step-active-c);transition:width .15s ease-out}
2
2
  `],encapsulation:2});}}return i})();export{w};
@@ -1,4 +1,4 @@
1
- import {L as L$1}from'./chunk-DGvC49aU.js';import {T,ab as C$1,c6 as je$1,by as x$1,aG as pt$1,h as hw,V as Ul,n as nC,X as Wl,W as Eg,C as CE,aq as Tg,aD as YC,aj as l,ai as m,c7 as zp}from'./main-3NL5M6JB.js';function j(){return {async:false,breaks:false,extensions:null,gfm:true,hooks:null,pedantic:false,renderer:null,silent:false,tokenizer:null,walkTokens:null}}var R=j();function Te(n){R=n;}var P={exec:()=>null};function p(n,e=""){let r=typeof n=="string"?n:n.source,s={replace:(t,l)=>{let i=typeof l=="string"?l:l.source;return i=i.replace(x.caret,"$1"),r=r.replace(t,i),s},getRegex:()=>new RegExp(r,e)};return s}var Ne=(()=>{try{return !!new RegExp("(?<=1)(?<!1)")}catch{return false}})(),x={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:n=>new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}#`),htmlBeginRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}<(?:[a-z].*>|!--)`,"i")},Oe=/^(?:[ \t]*(?:\n|$))+/,Ze=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,De=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,E=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Ge=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Q=/(?:[*+-]|\d{1,9}[.)])/,ze=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Ae=p(ze).replace(/bull/g,Q).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),He=p(ze).replace(/bull/g,Q).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),F=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,je=/^[^\n]+/,U=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Qe=p(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",U).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Fe=p(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Q).getRegex(),q="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",X=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ue=p("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",X).replace("tag",q).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),_e=p(F).replace("hr",E).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",q).getRegex(),Xe=p(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",_e).getRegex(),W={blockquote:Xe,code:Ze,def:Qe,fences:De,heading:Ge,hr:E,html:Ue,lheading:Ae,list:Fe,newline:Oe,paragraph:_e,table:P,text:je},me=p("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",E).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",q).getRegex(),We=m(l({},W),{lheading:He,table:me,paragraph:p(F).replace("hr",E).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",me).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",q).getRegex()}),Ve=m(l({},W),{html:p(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",X).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:P,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:p(F).replace("hr",E).replace("heading",` *#{1,6} *[^
1
+ import {L as L$1}from'./chunk-DCsYP4vf.js';import {T,ab as C$1,c6 as je$1,by as x$1,aG as pt$1,h as hw,V as Ul,n as nC,X as Wl,W as Eg,C as CE,aq as Tg,aD as YC,aj as l,ai as m,c7 as zp}from'./main-XKLDSNLY.js';function j(){return {async:false,breaks:false,extensions:null,gfm:true,hooks:null,pedantic:false,renderer:null,silent:false,tokenizer:null,walkTokens:null}}var R=j();function Te(n){R=n;}var P={exec:()=>null};function p(n,e=""){let r=typeof n=="string"?n:n.source,s={replace:(t,l)=>{let i=typeof l=="string"?l:l.source;return i=i.replace(x.caret,"$1"),r=r.replace(t,i),s},getRegex:()=>new RegExp(r,e)};return s}var Ne=(()=>{try{return !!new RegExp("(?<=1)(?<!1)")}catch{return false}})(),x={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:n=>new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}#`),htmlBeginRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}<(?:[a-z].*>|!--)`,"i")},Oe=/^(?:[ \t]*(?:\n|$))+/,Ze=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,De=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,E=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Ge=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Q=/(?:[*+-]|\d{1,9}[.)])/,ze=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Ae=p(ze).replace(/bull/g,Q).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),He=p(ze).replace(/bull/g,Q).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),F=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,je=/^[^\n]+/,U=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Qe=p(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",U).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Fe=p(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Q).getRegex(),q="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",X=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ue=p("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",X).replace("tag",q).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),_e=p(F).replace("hr",E).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",q).getRegex(),Xe=p(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",_e).getRegex(),W={blockquote:Xe,code:Ze,def:Qe,fences:De,heading:Ge,hr:E,html:Ue,lheading:Ae,list:Fe,newline:Oe,paragraph:_e,table:P,text:je},me=p("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",E).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",q).getRegex(),We=m(l({},W),{lheading:He,table:me,paragraph:p(F).replace("hr",E).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",me).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",q).getRegex()}),Ve=m(l({},W),{html:p(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",X).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:P,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:p(F).replace("hr",E).replace("heading",` *#{1,6} *[^
2
2
  ]`).replace("lheading",Ae).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()}),Je=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Ke=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Ce=/^( {2,}|\\)\n(?!\s*$)/,Ye=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,N=/[\p{P}\p{S}]/u,V=/[\s\p{P}\p{S}]/u,Pe=/[^\s\p{P}\p{S}]/u,et=p(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,V).getRegex(),Ee=/(?!~)[\p{P}\p{S}]/u,tt=/(?!~)[\s\p{P}\p{S}]/u,rt=/(?:[^\s\p{P}\p{S}]|~)/u,nt=p(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Ne?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),ve=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,st=p(ve,"u").replace(/punct/g,N).getRegex(),it=p(ve,"u").replace(/punct/g,Ee).getRegex(),Ie="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",lt=p(Ie,"gu").replace(/notPunctSpace/g,Pe).replace(/punctSpace/g,V).replace(/punct/g,N).getRegex(),at=p(Ie,"gu").replace(/notPunctSpace/g,rt).replace(/punctSpace/g,tt).replace(/punct/g,Ee).getRegex(),ot=p("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Pe).replace(/punctSpace/g,V).replace(/punct/g,N).getRegex(),ct=p(/\\(punct)/,"gu").replace(/punct/g,N).getRegex(),ht=p(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),pt=p(X).replace("(?:-->|$)","-->").getRegex(),ut=p("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",pt).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),L=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,gt=p(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",L).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Le=p(/^!?\[(label)\]\[(ref)\]/).replace("label",L).replace("ref",U).getRegex(),Be=p(/^!?\[(ref)\](?:\[\])?/).replace("ref",U).getRegex(),kt=p("reflink|nolink(?!\\()","g").replace("reflink",Le).replace("nolink",Be).getRegex(),we=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,J={_backpedal:P,anyPunctuation:ct,autolink:ht,blockSkip:nt,br:Ce,code:Ke,del:P,emStrongLDelim:st,emStrongRDelimAst:lt,emStrongRDelimUnd:ot,escape:Je,link:gt,nolink:Be,punctuation:et,reflink:Le,reflinkSearch:kt,tag:ut,text:Ye,url:P},dt=m(l({},J),{link:p(/^!?\[(label)\]\((.*?)\)/).replace("label",L).getRegex(),reflink:p(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",L).getRegex()}),D=m(l({},J),{emStrongRDelimAst:at,emStrongLDelim:it,url:p(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",we).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:p(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",we).getRegex()}),ft=m(l({},D),{br:p(Ce).replace("{2,}","*").getRegex(),text:p(D.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),I={normal:W,gfm:We,pedantic:Ve},A={normal:J,gfm:D,breaks:ft,pedantic:dt},xt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ye=n=>xt[n];function S(n,e){if(e){if(x.escapeTest.test(n))return n.replace(x.escapeReplace,ye)}else if(x.escapeTestNoEncode.test(n))return n.replace(x.escapeReplaceNoEncode,ye);return n}function Se(n){try{n=encodeURI(n).replace(x.percentDecode,"%");}catch{return null}return n}function $e(n,e){let r=n.replace(x.findPipe,(l,i,o)=>{let a=false,h=i;for(;--h>=0&&o[h]==="\\";)a=!a;return a?"|":" |"}),s=r.split(x.splitPipe),t=0;if(s[0].trim()||s.shift(),s.length>0&&!s.at(-1)?.trim()&&s.pop(),e)if(s.length>e)s.splice(e);else for(;s.length<e;)s.push("");for(;t<s.length;t++)s[t]=s[t].trim().replace(x.slashPipe,"|");return s}function _(n,e,r){let s=n.length;if(s===0)return "";let t=0;for(;t<s;){let l=n.charAt(s-t-1);if(l===e&&true)t++;else break}return n.slice(0,s-t)}function bt(n,e){if(n.indexOf(e[1])===-1)return -1;let r=0;for(let s=0;s<n.length;s++)if(n[s]==="\\")s++;else if(n[s]===e[0])r++;else if(n[s]===e[1]&&(r--,r<0))return s;return r>0?-2:-1}function Re(n,e,r,s,t){let l=e.href,i=e.title||null,o=n[1].replace(t.other.outputLinkReplace,"$1");s.state.inLink=true;let a={type:n[0].charAt(0)==="!"?"image":"link",raw:r,href:l,title:i,text:o,tokens:s.inlineTokens(o)};return s.state.inLink=false,a}function mt(n,e,r){let s=n.match(r.other.indentCodeCompensation);if(s===null)return e;let t=s[1];return e.split(`
3
3
  `).map(l=>{let i=l.match(r.other.beginningSpace);if(i===null)return l;let[o]=i;return o.length>=t.length?l.slice(t.length):l}).join(`
4
4
  `)}var B=class{options;rules;lexer;constructor(n){this.options=n||R;}space(n){let e=this.rules.block.newline.exec(n);if(e&&e[0].length>0)return {type:"space",raw:e[0]}}code(n){let e=this.rules.block.code.exec(n);if(e){let r=e[0].replace(this.rules.other.codeRemoveIndent,"");return {type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?r:_(r,`
@@ -1 +1 @@
1
- import {e as ee,W}from'./chunk-K2iai6rC.js';import {k}from'./chunk-CIe9Bupz.js';import'./chunk-BmmYJhOf.js';import'./chunk-CvSsZZty.js';import {N as Ne,E as Ee}from'./chunk-Dz5guW4b.js';import'./chunk-CyqqlRjO.js';import {v as ve}from'./chunk-CX3Axjpk.js';import {x}from'./chunk-mA4J4_nC.js';import {c}from'./chunk-C3gUxHQM.js';import {D}from'./chunk-DidJB9ig.js';import {T,ab as C,aX as y,a5 as g,bj as Q,a6 as be,m,N as Nt$1,G as Ge,B as A,z as za,J as zu,h as hw,_ as _t$1,v,c as N,i as Ig,Q as Qi,H as Hg,n as nC,$ as $l,F as Fg,j as jg,aP as ql,aQ as Gl,d as aT,b5 as lg,b6 as oT,bi as cg,c5 as lb,C as CE,y as vg,a3 as KC,g as cT,b7 as iT,o as oC,l as vT,p as lm,O as Od,k as iC,U as UC,P as Pd,w as cm,s as jC,au as Vg,av as rC,a1 as dT,ap as lT,a2 as fT,L as Kg,c3 as pC,a$ as JC,b_ as wg,ak as dm,aa as Ql,ar as Zp,al as WC,aM as ob,aN as ab,ao as qC,aR as sb,bZ as ei$1,cq as ce,cr as y$1,be as Fi,cs as tn,ct as en,ad as Mr,aJ as ci,bh as pi,cu as A$1,cv as I,cw as fv,cx as Je,aL as hi,cy as Ne$1,cz as U,bf as Jt$1,cA as Ce,bg as Kn$1,cB as ye,cC as qt$1,cD as Ee$1,cE as Qt$1,cF as Ze,cG as ne,cH as m$1,cI as de,cJ as g$1,cK as nn,cL as j,cM as d$1,cN as Rt$1,cO as Zt$1,cP as Gt$1,cQ as Kt$1,cR as Yt$1,cS as zt$1,cT as q,cU as Q$1,cV as Bt$1,cW as Pt$1,cX as kt$1,cY as Ut$1,cZ as jt$1,c_ as Ot$1,c$ as Nt$2,d0 as Fe,d1 as M,d2 as xt$1,d3 as J,d4 as Vt$1,bs as Rr,d5 as Or,d6 as Tr,d7 as f$1,d8 as wi,d9 as Ai,bL as s,da as L,db as k$1,dc as _,aI as c$1,aH as m$2,b2 as m$3}from'./main-3NL5M6JB.js';import {f}from'./chunk-B1c7h-_w.js';import {d}from'./chunk-DDWDcSq2.js';import'./chunk-DhiIZLrA.js';import'./chunk-B6c2NXNy.js';import {a as at$1}from'./chunk-MDqH8T3Z.js';import {C as C$1}from'./chunk-mflQLMHH.js';import'./chunk-CuJ_uEdr.js';import'./chunk-D1pDZLJ9.js';import'./chunk-DGvC49aU.js';var fn=()=>[_t$1,Promise.resolve().then(function(){return chunkSWVAJ6TW}).then(e=>e.NgTemplateOutlet),v,N,Promise.resolve().then(function(){return chunkJGYPH2BS}).then(e=>e.ShipChip),import('./chunk-8Y8ReLEn.js').then(e=>e.ShipTable),import('./chunk-8Y8ReLEn.js').then(e=>e.ShipSort),at$1,Promise.resolve().then(function(){return chunkAOYFZEXX}).then(e=>e.BackupProgressComponent),Promise.resolve().then(function(){return chunk4HOV3NJV}).then(e=>e.DurationFormatPipe),Promise.resolve().then(function(){return chunkHNLWAJTV}).then(e=>e.BytesPipe),Promise.resolve().then(function(){return chunkDXTOMSER}).then(e=>e.RelativeTimePipe)],hn=()=>["/add-backup"],$n=()=>["/restore"],Dn=e=>({$implicit:e}),yn=()=>["/backup/new"],Rn=e=>["/backup",e,"export"],An=e=>["/backup",e,"delete"],xn=e=>["/backup",e,"database"],Hn=e=>["/backup",e,"commandline"],Ln=e=>["/backup",e,"log"],kn=e=>["/backup",e],Gn=e=>["/restore",e],bn=e=>["/backup",e,"version-labels"],Bn=e=>["/backup",e,"delete-versions"],vn=e=>["/backup",e,"broken-files"];function Jn(e,t){e&1&&nC(0,11,1);}function Xn(e,t){e&1&&nC(0,11,2);}function wn(e,t){if(e&1&&nC(0,11,3),e&2){let n=iC(2);Vg(n.timeType()),rC(0);}}function zn(e,t){if(e&1){let n=vT();Qi(0,"button",71),Hg("click",function(){let c=Od(n).$implicit,d=iC(3);return Pd(d.sortByColumn.set(c.value))}),nC(1,15),$l();}if(e&2){let n=t.$implicit,a=iC(3);Kg("active",a.orderBy()===n.value),CE(),Vg(n.label),rC(1);}}function Vn(e,t){if(e&1&&(Qi(0,"sh-menu",68)(1,"button",69),Fg(2,14),Ig(3,"strong")(4,"sh-icon"),jg(),$l(),ql(5,70),dT(6,zn,2,3,"button",72,lT),Gl(),$l()),e&2){let n=iC(2);CE(4),Vg(n.orderBy()),rC(2),CE(2),fT(n.sortOrderOptions());}}function Un(e,t){if(e&1){let n=vT();Qi(0,"div",64)(1,"sh-button-group",65),lm("valueChange",function(c){Od(n);let d=iC();return UC(d.viewMode,c)||(d.viewMode=c),Pd(c)}),Qi(2,"button",66),Fg(3,9),Ig(4,"sh-icon"),jg(),$l(),Qi(5,"button",67),Fg(6,10),Ig(7,"sh-icon"),jg(),$l()(),Qi(8,"sh-menu",68)(9,"button",69),Fg(10,11),Qi(11,"strong"),aT(12,Jn,1,0)(13,Xn,1,0)(14,wn,1,1),$l(),Ig(15,"sh-icon"),jg(),$l(),ql(16,70),Qi(17,"button",71),Hg("click",function(){Od(n);let c=iC();return Pd(c.setTimeType("relative"))}),nC(18,12),$l(),Qi(19,"button",71),Hg("click",function(){Od(n);let c=iC();return Pd(c.setTimeType("actual"))}),nC(20,13),$l(),Gl(),$l(),aT(21,Vn,8,1,"sh-menu",68),$l();}if(e&2){let n=iC();CE(),cm("value",n.viewMode),CE(11),cT(n.timeType()=="relative"?12:n.timeType()=="actual"?13:14),CE(9),cT(n.viewMode()==="list"?21:-1);}}function Kn(e,t){e&1&&(Qi(0,"sh-chip",79),Fg(1,19),Ig(2,"sh-icon"),jg(),$l()),e&2&&vg("shTooltip","Synchronization job");}function jn(e,t){if(e&1){let n=vT();Qi(0,"div",77)(1,"div",60)(2,"h3"),jC(3),aT(4,Kn,3,1,"sh-chip",79),Qi(5,"sh-chip"),Ig(6,"img",80),jC(7),$l()()(),Qi(8,"div",81)(9,"sh-chip",82),nC(10,16),$l()(),Qi(11,"div",64)(12,"button",83),Hg("click",function(){Od(n);let c=iC().$implicit,d=iC(4);return Pd(d.startBackup(c.Backup.ID))}),Fg(13,17),Ig(14,"sh-icon"),jg(),$l(),Qi(15,"button",84),Hg("click",function(){Od(n);let c=iC().$implicit,d=iC(4);return Pd(d.openInConsole(c))}),Fg(16,18),Ig(17,"sh-icon"),jg(),$l()(),Ig(18,"app-backup-progress",85),$l();}if(e&2){let n=iC().$implicit,a=iC(4);CE(3),Ql(" ",n.Backup.Name??a.MISSING_BACKUP_NAME," "),CE(),cT(n.Backup.OperationType==="Sync"?4:-1),CE(2),vg("src",a.getBackendIcon(n.Backup.TargetURL),Zp),CE(),Ql(" ",a.getBackendType(n.Backup.TargetURL)," "),CE(5),Kg("loading",a.startingBackup()===n.Backup.ID),CE(6),vg("backupId",n.Backup.ID);}}function Wn(e,t){e&1&&(Qi(0,"sh-chip",79),Fg(1,21),Ig(2,"sh-icon"),jg(),$l()),e&2&&vg("shTooltip","Synchronization job");}function qn(e,t){if(e&1&&(Qi(0,"sh-chip"),Ig(1,"img",80),jC(2),$l()),e&2){let n=t.$implicit,a=iC(7);CE(),vg("src",a.getBackendIcon(n.TargetUrl),Zp),CE(),Ql(" ",a.getBackendType(n.TargetUrl)," ");}}function Qn(e,t){if(e&1&&dT(0,qn,3,2,"sh-chip",null,lT),e&2){let n=iC(2).$implicit;fT(n.Backup.AdditionalTargetURLs);}}function Yn(e,t){if(e&1&&(Qi(0,"p")(1,"span"),nC(2,26),$l(),jC(3),ob(4,"relativeTime"),$l()),e&2){iC();let n=qC(5),a=iC(6);CE(3),Ql(" ",ab(4,1,n,a.timeType()==="actual")," ");}}function Zn(e,t){if(e&1&&(jC(0),ob(1,"durationFormat")),e&2){let n=iC(3).$implicit,a=iC(4);Ql(" ",ab(1,1,n.Backup.Metadata?.LastBackupDuration,a.timeType()==="actual")," ");}}function et(e,t){e&1&&(ql(0),jC(1,"-"),Gl());}function nt(e,t){if(e&1&&(jC(0),ob(1,"bytes")),e&2){let n=iC(3).$implicit;Ql(" ",sb(1,1,n.Backup.Metadata?.SourceFilesSize)," ");}}function tt(e,t){e&1&&(ql(0),jC(1,"-"),Gl());}function it(e,t){if(e&1&&(jC(0),ob(1,"bytes")),e&2){let n=iC(3).$implicit;Ql(" ",sb(1,1,n.Backup.Metadata?.TargetFilesSize)," ");}}function ot(e,t){e&1&&(ql(0),jC(1,"-"),Gl());}function _t(e,t){if(e&1&&(Qi(0,"p")(1,"span"),nC(2,22),$l(),jC(3),ob(4,"relativeTime"),$l(),dm(5),aT(6,Yn,5,4,"p"),Qi(7,"p")(8,"span"),nC(9,23),$l(),aT(10,Zn,2,4)(11,et,2,0,"ng-container"),$l(),Qi(12,"p")(13,"span"),nC(14,24),$l(),aT(15,nt,2,3)(16,tt,2,0,"ng-container"),$l(),Qi(17,"p")(18,"span"),nC(19,25),$l(),aT(20,it,2,3)(21,ot,2,0,"ng-container"),$l()),e&2){let n=iC(2).$implicit,a=iC(4);CE(3),Ql(" ",ab(4,5,n.Backup.Metadata?.LastBackupFinished,a.timeType()==="actual")," "),CE(2);let c=WC(a.scheduledTimes()[n.Backup.ID??""]);CE(),cT(c?6:-1),CE(4),cT(n.Backup.Metadata?.LastBackupDuration?10:11),CE(5),cT(n.Backup.Metadata?.SourceFilesSize?15:16),CE(5),cT(n.Backup.Metadata?.TargetFilesSize?20:21);}}function at(e,t){if(e&1&&Ig(0,"app-backup-progress",85),e&2){let n=iC(2).$implicit;vg("backupId",n.Backup.ID);}}function lt(e,t){e&1&&(Qi(0,"sh-chip",82),nC(1,27),$l());}function rt(e,t){e&1&&wg(0);}function ct(e,t){if(e&1&&(Qi(0,"div",78)(1,"div",60)(2,"h3"),jC(3),aT(4,Wn,3,1,"sh-chip",79),Qi(5,"sh-chip"),Ig(6,"img",80),jC(7),$l(),aT(8,Qn,2,0),$l(),aT(9,_t,22,9)(10,at,1,1,"app-backup-progress",85),$l(),Qi(11,"div",81)(12,"sh-chip",86),nC(13,20),$l(),aT(14,lt,2,0,"sh-chip",82),$l(),Qi(15,"div",64),cg(16,rt,1,0,"ng-container",87),$l()()),e&2){let n=iC().$implicit,a=iC(4),c=pC(33);CE(3),Ql(" ",n.Backup.Name??a.MISSING_BACKUP_NAME," "),CE(),cT(n.Backup.OperationType==="Sync"?4:-1),CE(2),vg("src",a.getBackendIcon(n.Backup.TargetURL),Zp),CE(),Ql(" ",a.getBackendType(n.Backup.TargetURL)," "),CE(),cT(n.Backup.AdditionalTargetURLs?.length?8:-1),CE(),cT(a.runningBackupId()!==n.Backup.ID?9:10);let d=a.getBackupVersionCount(n);CE(4),Vg(d)(d),rC(13),CE(),cT(n.Backup.ExternalID?14:-1),CE(2),vg("ngTemplateOutlet",c)("ngTemplateOutletContext",JC(11,Dn,n));}}function st(e,t){if(e&1&&aT(0,jn,19,7,"div",77)(1,ct,17,13,"div",78),e&2){let n=t.$implicit;cT(n.Backup.ExternalID?0:1);}}function ut(e,t){if(e&1&&dT(0,st,2,1,null,null,lT),e&2){let n=iC(3);fT(n.backups());}}function Ft(e,t){e&1&&(Qi(0,"div",76),Fg(1,28),Qi(2,"button",88),Ig(3,"sh-icon"),$l(),jg(),$l()),e&2&&(CE(2),vg("routerLink",KC(1,yn)));}function Ct(e,t){if(e&1&&(Qi(0,"div",75),aT(1,ut,2,0)(2,Ft,4,2,"div",76),$l()),e&2){let n=iC(2);Kg("fallback",n.backups().length===0),CE(),cT(n.backups().length?1:2);}}function Tt(e,t){e&1&&(Fg(0,29,1),wg(1),jg());}function dt(e,t){e&1&&(Fg(0,30,1),wg(1),jg());}function Et(e,t){e&1&&(Fg(0,31,1),wg(1),jg());}function pt(e,t){e&1&&(Fg(0,32,1),wg(1),jg());}function gt(e,t){e&1&&(Fg(0,33,1),wg(1),jg());}function St(e,t){e&1&&(Fg(0,34,1),wg(1),jg());}function mt(e,t){e&1&&(Fg(0,35,1),wg(1),jg());}function Ot(e,t){e&1&&(Qi(0,"sh-chip",99),Fg(1,39),Ig(2,"sh-icon"),jg(),$l()),e&2&&vg("shTooltip","Synchronization job");}function Nt(e,t){if(e&1&&(Qi(0,"sh-chip"),Ig(1,"img",80),jC(2),$l()),e&2){let n=t.$implicit,a=iC(5);CE(),vg("src",a.getBackendIcon(n.TargetUrl),Zp),CE(),Ql(" ",a.getBackendType(n.TargetUrl)," ");}}function Mt(e,t){if(e&1&&dT(0,Nt,3,2,"sh-chip",null,lT),e&2){let n=iC().$implicit;fT(n.Backup.AdditionalTargetURLs);}}function It(e,t){if(e&1&&(jC(0),ob(1,"relativeTime")),e&2){let n=iC().$implicit,a=iC(3);Ql(" ",ab(1,1,n.Backup.Metadata?.LastBackupFinished,a.timeType()==="actual")," ");}}function Pt(e,t){e&1&&(ql(0),jC(1,"-"),Gl());}function Dt(e,t){if(e&1&&(jC(0),ob(1,"relativeTime")),e&2){iC();let n=qC(13),a=iC(3);Ql(" ",ab(1,1,n,a.timeType()==="actual")," ");}}function ft(e,t){e&1&&(ql(0),jC(1,"-"),Gl());}function ht(e,t){if(e&1&&(jC(0),ob(1,"durationFormat")),e&2){let n=iC().$implicit,a=iC(3);Ql(" ",ab(1,1,n.Backup.Metadata?.LastBackupDuration,a.timeType()==="actual")," ");}}function $t(e,t){e&1&&(ql(0),jC(1,"-"),Gl());}function yt(e,t){if(e&1&&(jC(0),ob(1,"bytes")),e&2){let n=iC().$implicit;Ql(" ",sb(1,1,n.Backup.Metadata?.SourceFilesSize)," ");}}function Rt(e,t){e&1&&(ql(0),jC(1,"-"),Gl());}function At(e,t){if(e&1&&(jC(0),ob(1,"bytes")),e&2){let n=iC().$implicit;Ql(" ",sb(1,1,n.Backup.Metadata?.TargetFilesSize)," ");}}function xt(e,t){e&1&&(ql(0),jC(1,"-"),Gl());}function Ht(e,t){e&1&&wg(0);}function Lt(e,t){if(e&1&&(Qi(0,"tr")(1,"td"),jC(2),aT(3,Ot,3,1,"sh-chip",99),$l(),Qi(4,"td")(5,"sh-chip",100),Ig(6,"img",80),jC(7),$l(),aT(8,Mt,2,0),$l(),Qi(9,"td"),aT(10,It,2,4)(11,Pt,2,0,"ng-container"),$l(),Qi(12,"td"),dm(13),aT(14,Dt,2,4)(15,ft,2,0,"ng-container"),$l(),Qi(16,"td"),aT(17,ht,2,4)(18,$t,2,0,"ng-container"),$l(),Qi(19,"td"),aT(20,yt,2,3)(21,Rt,2,0,"ng-container"),$l(),Qi(22,"td"),aT(23,At,2,3)(24,xt,2,0,"ng-container"),$l(),Qi(25,"td")(26,"span"),nC(27,38),$l()(),Qi(28,"td"),cg(29,Ht,1,0,"ng-container",87),$l()()),e&2){let n=t.$implicit,a=iC(3),c=pC(33);CE(2),Ql(" ",n.Backup.Name??a.MISSING_BACKUP_NAME," "),CE(),cT(n.Backup.OperationType==="Sync"?3:-1),CE(3),vg("src",a.getBackendIcon(n.Backup.TargetURL),Zp),CE(),Ql(" ",a.getBackendType(n.Backup.TargetURL)," "),CE(),cT(n.Backup.AdditionalTargetURLs?.length?8:-1),CE(2),cT(n.Backup.Metadata?.LastBackupFinished?10:11),CE(3);let d=WC(a.scheduledTimes()[n.Backup.ID??""]);CE(),cT(d?14:15),CE(3),cT(n.Backup.Metadata?.LastBackupDuration?17:18),CE(3),cT(n.Backup.Metadata?.SourceFilesSize?20:21),CE(3),cT(n.Backup.Metadata?.TargetFilesSize?23:24);let R=a.getBackupVersionCount(n);CE(4),Vg(R)(R),rC(27),CE(2),vg("ngTemplateOutlet",c)("ngTemplateOutletContext",JC(15,Dn,n));}}function kt(e,t){if(e&1){let n=vT();Qi(0,"sh-table",89),lm("sortByColumnChange",function(c){Od(n);let d=iC(2);return UC(d.sortByColumn,c)||(d.sortByColumn=c),Pd(c)}),Qi(1,"tr",90)(2,"th",91),Fg(3,29),cg(4,Tt,2,0,"ng-container",92),jg(),$l(),Qi(5,"th",93),Fg(6,30),cg(7,dt,2,0,"ng-container",92),jg(),$l(),Qi(8,"th",94),Fg(9,31),cg(10,Et,2,0,"ng-container",92),jg(),$l(),Qi(11,"th",95),Fg(12,32),cg(13,pt,2,0,"ng-container",92),jg(),$l(),Qi(14,"th",96),Fg(15,33),cg(16,gt,2,0,"ng-container",92),jg(),$l(),Qi(17,"th",97),Fg(18,34),cg(19,St,2,0,"ng-container",92),jg(),$l(),Qi(20,"th",98),Fg(21,35),cg(22,mt,2,0,"ng-container",92),jg(),$l(),Qi(23,"th"),nC(24,36),$l(),Qi(25,"th"),nC(26,37),$l()(),dT(27,Lt,30,17,"tr",null,lT),$l();}if(e&2){let n=iC(2),a=pC(35);vg("data",n.backups())("loading",n.backupsLoading()),cm("sortByColumn",n.sortByColumn),CE(4),vg("ngTemplateOutlet",a),CE(3),vg("ngTemplateOutlet",a),CE(3),vg("ngTemplateOutlet",a),CE(3),vg("ngTemplateOutlet",a),CE(3),vg("ngTemplateOutlet",a),CE(3),vg("ngTemplateOutlet",a),CE(3),vg("ngTemplateOutlet",a),CE(5),fT(n.backups());}}function Gt(e,t){if(e&1&&aT(0,Ct,3,3,"div",73)(1,kt,29,10,"sh-table",74),e&2){let n=iC();cT(n.viewMode()==="list"?0:n.viewMode()==="details"?1:-1);}}function bt(e,t){e&1&&(Qi(0,"div",101),Ig(1,"sh-progress-bar",102),Qi(2,"div",60)(3,"h3"),nC(4,40),$l()()());}function Bt(e,t){if(e&1){let n=vT();Qi(0,"button",83),Hg("click",function(){Od(n);let c=iC(3);return Pd(c.abort())}),Fg(1,42),Ig(2,"sh-icon"),jg(),$l();}if(e&2){let n=iC(3);Kg("small",n.viewMode()==="details");}}function vt(e,t){if(e&1){let n=vT();Qi(0,"button",83),Hg("click",function(){Od(n);let c=iC(3);return Pd(c.stop())}),Fg(1,43),Ig(2,"sh-icon"),jg(),$l();}if(e&2){let n=iC(3);Kg("small",n.viewMode()==="details");}}function Jt(e,t){e&1&&(Fg(0,41,1),Ig(1,"sh-icon"),jg());}function Xt(e,t){e&1&&(Fg(0,41,2),Ig(1,"sh-icon"),jg());}function wt(e,t){if(e&1){let n=vT();aT(0,Bt,3,2,"button",103)(1,vt,3,2,"button",103),Qi(2,"button",83),Hg("click",function(){Od(n);let c=iC(2);return Pd(c.pauseResume())}),Fg(3,41),aT(4,Jt,2,0)(5,Xt,2,0),jg(),$l();}if(e&2){let n=iC(2);cT(n.isStopping()?0:1),CE(2),Kg("small",n.viewMode()==="details")("loading",n.isResuming()),CE(2),cT(n.clientIsRunning()?4:5);}}function zt(e,t){e&1&&nC(0,44,1);}function Vt(e,t){e&1&&(Qi(0,"button",104)(1,"sh-icon"),jC(2,"pencil-simple"),$l()()),e&2&&vg("shTooltip","Externally managed")("disabled",true);}function Ut(e,t){if(e&1&&(Qi(0,"button",105)(1,"sh-icon"),jC(2,"pencil-simple"),$l()()),e&2){let n=iC(2).$implicit;vg("routerLink",JC(1,kn,n.Backup.ID));}}function Kt(e,t){e&1&&(Qi(0,"button",104)(1,"sh-icon"),jC(2,"dots-three-vertical"),$l()()),e&2&&vg("shTooltip","Externally managed")("disabled",true);}function jt(e,t){e&1&&(Qi(0,"sh-icon"),jC(1,"check"),$l());}function Wt(e,t){e&1&&(Qi(0,"sh-icon"),jC(1,"dots-three-vertical"),$l());}function qt(e,t){if(e&1&&(Qi(0,"button",110),aT(1,jt,2,0,"sh-icon")(2,Wt,2,0,"sh-icon"),$l()),e&2){let n=iC(2).$implicit,a=iC();Kg("loading",a.loadingId()===n.Backup.ID)("success",a.successId()===n.Backup.ID),CE(),cT(a.successId()===n.Backup.ID?1:2);}}function Qt(e,t){if(e&1&&(Qi(0,"button",108),Fg(1,52),Ig(2,"sh-icon"),jg(),$l()),e&2){let n=iC(2).$implicit;vg("routerLink",JC(1,Gn,n.Backup.ID));}}function Yt(e,t){if(e&1){let n=vT();Qi(0,"button",71),Hg("click",function(){Od(n);let c=iC(2).$implicit,d=iC();return Pd(d.verifyFiles(c.Backup.ID))}),Fg(1,53),Ig(2,"sh-icon"),jg(),$l();}}function Zt(e,t){if(e&1&&(Qi(0,"button",108),Fg(1,54),Ig(2,"sh-icon"),jg(),$l()),e&2){let n=iC(3).$implicit;vg("routerLink",JC(1,bn,n.Backup.ID));}}function ei(e,t){if(e&1&&(Qi(0,"button",108),Fg(1,56),Ig(2,"sh-icon"),jg(),$l()),e&2){let n=iC(4).$implicit;vg("routerLink",JC(1,Bn,n.Backup.ID));}}function ni(e,t){if(e&1&&(Qi(0,"button",108),Fg(1,57),Ig(2,"sh-icon"),jg(),$l()),e&2){let n=iC(4).$implicit;vg("routerLink",JC(1,vn,n.Backup.ID));}}function ti(e,t){if(e&1&&(Ig(0,"sh-divider"),Qi(1,"h3",107),nC(2,55),$l(),aT(3,ei,3,3,"button",108),aT(4,ni,3,3,"button",108)),e&2){let n=iC(4);CE(3),cT(n.hasDeleteVersions()?3:-1),CE(),cT(n.hasBrokenFiles()?4:-1);}}function ii(e,t){if(e&1&&(aT(0,Zt,3,3,"button",108),aT(1,ti,5,2)),e&2){let n=iC(3);cT(n.hasSetVersionLabel()?0:-1),CE(),cT(n.hasDeleteVersions()||n.hasBrokenFiles()?1:-1);}}function oi(e,t){if(e&1){let n=vT();Qi(0,"button",83),Hg("click",function(){Od(n);let c=iC().$implicit,d=iC();return Pd(d.startBackup(c.Backup.ID))}),Fg(1,44),Ig(2,"sh-icon"),aT(3,zt,1,0),jg(),$l(),aT(4,Vt,3,2,"button",104)(5,Ut,3,3,"button",105),Qi(6,"sh-menu"),aT(7,Kt,3,2,"button",104)(8,qt,3,5,"button",106),ql(9,70),Qi(10,"h3",107),jC(11,"Operations"),$l(),aT(12,Qt,3,3,"button",108),Qi(13,"button",108),Fg(14,45),Ig(15,"sh-icon"),jg(),$l(),Qi(16,"button",108),Fg(17,46),Ig(18,"sh-icon"),jg(),$l(),Ig(19,"sh-divider"),Qi(20,"h3",107),nC(21,47),$l(),Qi(22,"button",108),Fg(23,48),Ig(24,"sh-icon"),jg(),$l(),aT(25,Yt,3,0,"button",109),Qi(26,"button",108),Fg(27,49),Ig(28,"sh-icon"),jg(),$l(),aT(29,ii,2,2),Ig(30,"sh-divider"),Qi(31,"h3",107),nC(32,50),$l(),Qi(33,"button",108),Fg(34,51),Ig(35,"sh-icon"),jg(),$l(),Gl(),$l();}if(e&2){let n=iC().$implicit,a=iC();Kg("loading",a.startingBackup()===n.Backup.ID),CE(3),cT(a.viewMode()==="list"?3:-1),CE(),cT(n.Backup.ExternalID?4:5),CE(3),cT(n.Backup.ExternalID?7:8),CE(5),cT(n.Backup.OperationType!=="Sync"?12:-1),CE(),vg("routerLink",JC(13,Rn,n.Backup.ID)),CE(3),vg("routerLink",JC(15,An,n.Backup.ID)),CE(6),vg("routerLink",JC(17,xn,n.Backup.ID)),CE(3),cT(n.Backup.OperationType!=="Sync"?25:-1),CE(),vg("routerLink",JC(19,Hn,n.Backup.ID)),CE(3),cT(n.Backup.OperationType!=="Sync"?29:-1),CE(4),vg("routerLink",JC(21,Ln,n.Backup.ID));}}function _i(e,t){if(e&1&&aT(0,wt,6,6)(1,oi,36,23),e&2){let n=t.$implicit,a=iC();cT(a.runningBackupId()===n.Backup.ID?0:1);}}function ai(e,t){e&1&&(Qi(0,"sh-icon",111),jC(1,"funnel-simple"),$l(),Qi(2,"sh-icon",112),jC(3,"sort-ascending"),$l(),Qi(4,"sh-icon",113),jC(5,"sort-descending"),$l());}var le=class e{#t=T(C);#n=T(y);#e=T(g);#_=T(C$1);#a=T(Q);#l=T(be);#i=T(m);hasDeleteVersions=this.#i.hasV2DeleteVersions;hasSetVersionLabel=this.#i.hasV2SetVersionLabel;hasBrokenFiles=this.#i.hasV2BrokenFiles;MISSING_BACKUP_NAME=$localize`Backup name missing`;sortOrderOptions=this.#e.orderByOptions;orderBy=this.#e.orderBy;backups=this.#e.backups;backupsLoading=this.#e.backupsLoading;startingBackup=this.#e.startingBackup;deletingBackup=this.#e.deletingBackup;runningBackupId=this.#n.runningBackupId;getBackendType=Ne;getBackendIcon=Ee;timeType=this.#e.timeType;clientIsRunning=this.#n.clientIsRunning;isResuming=this.#n.isResuming;runningTask=Nt$1(()=>this.#n.serverState()?.ActiveTask?.Item1);isStopping=Nt$1(()=>this.runningTask()==this.#o());scheduledTimes=Nt$1(()=>{let t=this.#a.serverState()?.ProposedSchedule??[],n=this.#e.backups(),a={};return n.forEach(c=>{let d=c.Backup?.ID;if(d){var R=t.find(X=>X.Item1==d);R?.Item2?a[d]=R.Item2:c.Schedule?.Time&&(a[d]=c.Schedule.Time);}}),a});#o=Ge(-1);viewMode=A("viewMode","list");sortByColumn=Ge(this.#e.orderBy());loadingId=Ge(null);successId=Ge(null);sortEffect=za(()=>this.#e.setOrderBy(this.sortByColumn()));ngOnInit(){this.#e.getBackups(true);}openInConsole(t){let n=t.Backup.ExternalID?.split(":")[1];if(!n){console.error("Backup does not have an external ID");return}this.#_.openConsole("/app/machines/configurations/"+n);}setOrderBy(t){this.#e.setOrderBy(t);}setTimeType(t){this.#e.setTimeType(t);}startBackup(t){this.#n.resumeDialogCheck(()=>this.#e.startBackup(t));}openPauseDialog(){this.#l.open(k,{maxWidth:"550px",width:"100%"});}pauseResume(){if(this.clientIsRunning()){this.openPauseDialog();return}this.#n.pauseResume().subscribe();}stop(){let t=this.runningTask();t&&(this.#o.set(t),this.#t.postApiV1TaskByTaskidStop({taskid:t}).subscribe());}abort(){let t=this.runningTask();t&&this.#t.postApiV1TaskByTaskidAbort({taskid:t}).subscribe();}getBackupVersionCount(t){return parseInt(t?.Backup?.Metadata?.BackupListCount??"",10)||0}verifyFiles(t){this.loadingId.set(t),this.#t.postApiV1BackupByIdVerify({id:t}).pipe(zu(()=>this.loadingId.set(null))).subscribe({next:()=>{this.successId.set(t),setTimeout(()=>this.successId.set(null),2e3);}});}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=hw({type:e,selectors:[["app-home"]],decls:36,vars:6,consts:()=>{let t;t=$localize`Backups`;let n;n=$localize`Keep your data safe at your chosen destination.`;let a;a=$localize` Create ${"\uFFFD#12\uFFFD"}:START_TAG_SH_ICON:plus${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SH_ICON:`;let c;c=$localize`Restores`;let d;d=$localize`Recover your files from any backup set.`;let R;R=$localize` Start ${"\uFFFD#22\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SH_ICON:`;let X;X=$localize`My backups`;let re;re=$localize`${"\uFFFD#4\uFFFD"}:START_TAG_SH_ICON:rows${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_SH_ICON: List `;let ce;ce=$localize`${"\uFFFD#7\uFFFD"}:START_TAG_SH_ICON:list${"\uFFFD/#7\uFFFD"}:CLOSE_TAG_SH_ICON: Details `;let se;se=$localize` Time: ${"\uFFFD#11\uFFFD"}:START_TAG_STRONG:${"\uFFFD*12:1\uFFFD"}:START_BLOCK_IF: Relative ${"\uFFFD/*12:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*13:2\uFFFD"}:START_BLOCK_ELSE_IF: Actual ${"\uFFFD/*13:2\uFFFD"}:CLOSE_BLOCK_ELSE_IF:${"\uFFFD*14:3\uFFFD"}:START_BLOCK_ELSE: ${"\uFFFD0:3\uFFFD"}:INTERPOLATION: ${"\uFFFD/*14:3\uFFFD"}:CLOSE_BLOCK_ELSE:${"\uFFFD/#11\uFFFD"}:CLOSE_TAG_STRONG:${"\uFFFD#15\uFFFD"}:START_TAG_SH_ICON:clock${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SH_ICON:`;let ue;ue=$localize`Relative time`;let Fe;Fe=$localize`Actual time`;let Ce;Ce=$localize` Order by: ${"\uFFFD#3\uFFFD"}:START_TAG_STRONG:${"\uFFFD0\uFFFD"}:INTERPOLATION:${"\uFFFD/#3\uFFFD"}:CLOSE_TAG_STRONG:${"\uFFFD#4\uFFFD"}:START_TAG_SH_ICON:arrows-down-up${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_SH_ICON:`;let Te;Te=$localize` ${"\uFFFD0\uFFFD"}:INTERPOLATION: `;let de;de=$localize`Externally managed`;let Ee;Ee=$localize`${"\uFFFD#14\uFFFD"}:START_TAG_SH_ICON:play-circle${"\uFFFD/#14\uFFFD"}:CLOSE_TAG_SH_ICON: Start `;let pe;pe=$localize` Edit in console ${"\uFFFD#17\uFFFD"}:START_TAG_SH_ICON:arrow-up-right${"\uFFFD/#17\uFFFD"}:CLOSE_TAG_SH_ICON:`;let ge;ge=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:arrows-left-right${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let w;w=$localize`{VAR_PLURAL, plural, =0 {No version yet} =1 {1 Version} other {{INTERPOLATION} Versions}}`,w=oC(w,{INTERPOLATION:"\uFFFD1\uFFFD",VAR_PLURAL:"\uFFFD0\uFFFD"});let Se;Se=$localize` ${w}:ICU@@6502601490918455200: `;let me;me=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:arrows-left-right${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let Oe;Oe=$localize`Last successful backup:`;let Ne;Ne=$localize`Duration:`;let Me;Me=$localize`Source:`;let Ie;Ie=$localize`Destination:`;let Pe;Pe=$localize`Next scheduled run:`;let De;De=$localize`Externally managed`;let fe;fe=$localize` No backups found ${"\uFFFD#2\uFFFD"}:START_TAG_BUTTON: Click to create one now ${"\uFFFD#3\uFFFD"}:START_TAG_SH_ICON:plus${"\uFFFD/#3\uFFFD"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_BUTTON:`;let he;he=$localize` Backup ${"\uFFFD*4:1\uFFFD\uFFFD#1:1\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD/#1:1\uFFFD\uFFFD/*4:1\uFFFD"}:CLOSE_TAG_NG_CONTAINER:`;let $e;$e=$localize` Type ${"\uFFFD*7:1\uFFFD\uFFFD#1:1\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD/#1:1\uFFFD\uFFFD/*7:1\uFFFD"}:CLOSE_TAG_NG_CONTAINER:`;let ye;ye=$localize` Last backup ${"\uFFFD*10:1\uFFFD\uFFFD#1:1\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD/#1:1\uFFFD\uFFFD/*10:1\uFFFD"}:CLOSE_TAG_NG_CONTAINER:`;let Re;Re=$localize` Next run ${"\uFFFD*13:1\uFFFD\uFFFD#1:1\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD/#1:1\uFFFD\uFFFD/*13:1\uFFFD"}:CLOSE_TAG_NG_CONTAINER:`;let Ae;Ae=$localize` Duration ${"\uFFFD*16:1\uFFFD\uFFFD#1:1\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD/#1:1\uFFFD\uFFFD/*16:1\uFFFD"}:CLOSE_TAG_NG_CONTAINER:`;let xe;xe=$localize` Source ${"\uFFFD*19:1\uFFFD\uFFFD#1:1\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD/#1:1\uFFFD\uFFFD/*19:1\uFFFD"}:CLOSE_TAG_NG_CONTAINER:`;let He;He=$localize` Destination ${"\uFFFD*22:1\uFFFD\uFFFD#1:1\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD/#1:1\uFFFD\uFFFD/*22:1\uFFFD"}:CLOSE_TAG_NG_CONTAINER:`;let Le;Le=$localize`Version`;let ke;ke=$localize`Actions`;let z;z=$localize`{VAR_PLURAL, plural, =0 {No versions} =1 {1 Version} other {{INTERPOLATION} Versions}}`,z=oC(z,{INTERPOLATION:"\uFFFD1\uFFFD",VAR_PLURAL:"\uFFFD0\uFFFD"});let Ge;Ge=$localize` ${z}:ICU@@3521773141017690117: `;let be;be=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:arrows-left-right${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let Be;Be=$localize`Loading backups...`;let V;V=$localize`${"\uFFFD*4:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:pause${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON: Pause ${"\uFFFD/*4:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*5:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:play${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON: Resume ${"\uFFFD/*5:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,V=oC(V);let ve;ve=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:skull${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Abort `;let Je;Je=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:stop${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Stop `;let Xe;Xe=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:play-circle${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:${"\uFFFD*3:1\uFFFD"}:START_BLOCK_IF: Start ${"\uFFFD/*3:1\uFFFD"}:CLOSE_BLOCK_IF:`;let we;we=$localize`${"\uFFFD#15\uFFFD"}:START_TAG_SH_ICON:export${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SH_ICON: Export `;let ze;ze=$localize`${"\uFFFD#18\uFFFD"}:START_TAG_SH_ICON:x-circle${"\uFFFD/#18\uFFFD"}:CLOSE_TAG_SH_ICON: Delete `;let Ve;Ve=$localize`Advanced`;let Ue;Ue=$localize`${"\uFFFD#24\uFFFD"}:START_TAG_SH_ICON:database${"\uFFFD/#24\uFFFD"}:CLOSE_TAG_SH_ICON: Database `;let Ke;Ke=$localize`${"\uFFFD#28\uFFFD"}:START_TAG_SH_ICON:terminal-window${"\uFFFD/#28\uFFFD"}:CLOSE_TAG_SH_ICON: Commandline `;let je;je=$localize`Reporting`;let We;We=$localize`${"\uFFFD#35\uFFFD"}:START_TAG_SH_ICON:notepad${"\uFFFD/#35\uFFFD"}:CLOSE_TAG_SH_ICON: Log `;let qe;qe=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:clock-counter-clockwise${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Restore `;let Qe;Qe=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:check-square-offset${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Verify files `;let Ye;Ye=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:tag${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Version labels `;let Ze;Ze=$localize`Cleanup`;let en;en=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:trash${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Delete versions `;let nn;return nn=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:file-x${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Purge broken files `,[["actions",""],["sortIcons",""],t,n,a,c,d,R,X,re,ce,se,ue,Fe,Ce,Te,de,Ee,pe,ge,Se,me,Oe,Ne,Me,Ie,Pe,De,fe,he,$e,ye,Re,Ae,xe,He,Le,ke,Ge,be,Be,V,ve,Je,Xe,we,ze,Ve,Ue,Ke,je,We,qe,Qe,Ye,Ze,en,nn,[1,"type-a","actionable",3,"keydown.enter","keydown.space","routerLink"],["src","assets/images/backup.png","alt","","width","48px"],[1,"text"],["type","button","tabindex","-1","shButton",""],["src","assets/images/restore.png","alt","","width","48px"],[1,"content"],[1,"actions"],[1,"small","type-b",3,"valueChange","value"],["value","list"],["value","details"],[1,"table-overview"],["type","button","shButton","",1,"small"],["menu",""],["type","button",3,"click"],["type","button",3,"active"],[1,"backups",3,"fallback"],[1,"type-b",3,"data","loading","sortByColumn"],[1,"backups"],[1,"no-backups"],[1,"backup","externaly-managed"],[1,"backup"],[1,"simple","accent",3,"shTooltip"],["alt","",1,"provider-icon",3,"src"],[1,"tags"],[1,"simple","primary"],["shButton","",3,"click"],["type","button","shButton","",3,"click"],[3,"backupId"],[1,"simple","success"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["shButton","",1,"primary","raised",3,"routerLink"],[1,"type-b",3,"sortByColumnChange","data","loading","sortByColumn"],["thead",""],["shSort","name"],[4,"ngTemplateOutlet"],["shSort","type"],["shSort","lastrun"],["shSort","nextrun"],["shSort","duration"],["shSort","sourcesize"],["shSort","destinationsize"],[1,"small","accent",3,"shTooltip"],[1,"small"],[1,"loading-list"],[1,"indeterminate","primary"],["shButton","",3,"small"],["type","button","shButton","",3,"shTooltip","disabled"],["type","button","shButton","",3,"routerLink"],["type","button","shButton","",3,"loading","success"],["title",""],["type","button",3,"routerLink"],["type","button"],["type","button","shButton",""],[1,"filter"],[1,"asc"],[1,"desc"]]},template:function(n,a){n&1&&(Ig(0,"app-status-bar"),Qi(1,"section")(2,"header")(3,"sh-card",58),Hg("keydown.enter",function(d){return d.target.click()})("keydown.space",function(d){return d.target.click()}),Ig(4,"img",59),Qi(5,"div",60)(6,"h3"),nC(7,2),$l(),Qi(8,"p"),nC(9,3),$l()(),Qi(10,"button",61),Fg(11,4),Ig(12,"sh-icon"),jg(),$l()(),Qi(13,"sh-card",58),Hg("keydown.enter",function(d){return d.target.click()})("keydown.space",function(d){return d.target.click()}),Ig(14,"img",62),Qi(15,"div",60)(16,"h3"),nC(17,5),$l(),Qi(18,"p"),nC(19,6),$l()(),Qi(20,"button",61),Fg(21,7),Ig(22,"sh-icon"),jg(),$l()()(),Qi(23,"div",63)(24,"h2"),ql(25),nC(26,8),Gl(),aT(27,Un,22,3,"div",64),$l(),lg(28,Gt,2,1)(29,bt,5,0),oT(30,28,fn,null,29),$l()(),cg(32,_i,2,1,"ng-template",null,0,lb)(34,ai,6,0,"ng-template",null,1,lb)),n&2&&(CE(3),vg("routerLink",KC(4,hn)),CE(10),vg("routerLink",KC(5,$n)),CE(14),cT(a.backups().length>0?27:-1),CE(3),iT(!a.backupsLoading()));},dependencies:[_t$1,ee,f,v,N,c,ve,d,x,at$1],styles:["[_nghost-%COMP%]{display:block}h2[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:2rem 0}header[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;padding:0 2rem;gap:1rem}@media only screen and (max-width:768px){header[_ngcontent-%COMP%]{grid-template-columns:1fr}}sh-card[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem}sh-card[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;display:flex;flex-direction:column;gap:.25rem}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.content[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{padding:0 2rem}@media only screen and (max-width:768px){.content[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:.5rem}}sh-menu[_ngcontent-%COMP%]{color:red}.backups[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 2rem;gap:.5rem}.backups.fallback[_ngcontent-%COMP%]{justify-content:center;align-items:center;padding:4rem;border:1px solid var(--base-4);background:var(--base-2);border-radius:var(--shape-2);width:calc(100% - 4rem);margin:0 auto}.no-backups[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;align-items:center}.backup[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem;gap:1rem;border:1px solid var(--base-4);border-radius:var(--shape-3);box-shadow:var(--box-shadow-10)}@media only screen and (max-width:768px){.backup[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start}}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;width:100%;max-width:40%}@media only screen and (max-width:768px){.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{max-width:initial}}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{color:var(--base-8)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-8)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--base-12)}.backup[_ngcontent-%COMP%] .tags[_ngcontent-%COMP%]{display:flex;align-items:center;flex-direction:column;gap:.5rem}.provider-icon[_ngcontent-%COMP%]{width:1.25rem;height:1.25rem}.actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.sortable[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none}.sortable[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{margin-left:.5rem;font-size:1rem;justify-self:flex-end;display:none}.sortable[_ngcontent-%COMP%]:not(.sort-asc):not(.sort-desc) sh-icon.filter[_ngcontent-%COMP%]{display:block}.sortable.sort-asc[_ngcontent-%COMP%] sh-icon.asc[_ngcontent-%COMP%]{display:block;color:var(--base-12)}.sortable.sort-desc[_ngcontent-%COMP%] sh-icon.desc[_ngcontent-%COMP%]{display:block;color:var(--base-12)}.actionable[_ngcontent-%COMP%]{cursor:pointer}.actionable[_ngcontent-%COMP%]:after{transition:inset .1s linear}.actionable[_ngcontent-%COMP%]:hover{--card-shp: 0}"]})};var chunkSWVAJ6TW=/*#__PURE__*/Object.freeze({__proto__:null,APP_BASE_HREF:ce,BrowserPlatformLocation:y$1,CommonModule:Fi,DATE_PIPE_DEFAULT_OPTIONS:tn,DATE_PIPE_DEFAULT_TIMEZONE:en,DOCUMENT:Mr,DatePipe:ci,DecimalPipe:pi,FormStyle:A$1,FormatWidth:I,IMAGE_CONFIG:fv,IMAGE_LOADER:Je,JsonPipe:hi,Location:Ne$1,LocationStrategy:U,NgFor:Jt$1,NgForOf:Jt$1,NgForOfContext:Ce,NgIf:Kn$1,NgIfContext:ye,NgLocaleLocalization:qt$1,NgLocalization:Ee$1,NgPlural:Qt$1,NgSwitch:Ze,NgTemplateOutlet:ei$1,NumberFormatStyle:ne,NumberSymbol:m$1,PathLocationStrategy:de,PlatformLocation:g$1,PlatformNavigation:nn,Plural:j,TranslationWidth:d$1,WeekDay:Rt$1,formatCurrency:Zt$1,formatDate:Gt$1,formatNumber:Kt$1,formatPercent:Yt$1,getCurrencySymbol:zt$1,getLocaleDateFormat:q,getLocaleDateTimeFormat:Q$1,getLocaleDayNames:Bt$1,getLocaleDayPeriods:Pt$1,getLocaleEraNames:kt$1,getLocaleExtraDayPeriodRules:Ut$1,getLocaleExtraDayPeriods:jt$1,getLocaleId:Ot$1,getLocaleMonthNames:Nt$2,getLocaleNumberFormat:Fe,getLocaleNumberSymbol:M,getLocalePluralCase:xt$1,getLocaleTimeFormat:J,getNumberOfCurrencyDigits:Vt$1,isPlatformBrowser:Rr,isPlatformServer:Or,registerLocaleData:Tr,ɵDomAdapter:f$1,ɵPLATFORM_BROWSER_ID:wi,ɵPLATFORM_SERVER_ID:Ai,ɵgetDOM:s,ɵnormalizeQueryParams:L,ɵparseCookieValue:k$1,ɵsetRootDomAdapter:_});var chunkJGYPH2BS=/*#__PURE__*/Object.freeze({__proto__:null,ShipChip:D});var chunkAOYFZEXX=/*#__PURE__*/Object.freeze({__proto__:null,BackupProgressComponent:W});var chunk4HOV3NJV=/*#__PURE__*/Object.freeze({__proto__:null,DurationFormatPipe:c$1});var chunkHNLWAJTV=/*#__PURE__*/Object.freeze({__proto__:null,BytesPipe:m$2});var chunkDXTOMSER=/*#__PURE__*/Object.freeze({__proto__:null,RelativeTimePipe:m$3});export{le as default};
1
+ import {e as ee,W}from'./chunk-i6kMmbhY.js';import {k}from'./chunk-Du0Hd0t6.js';import'./chunk-BFquKzMb.js';import'./chunk-D7C8xyJI.js';import {N as Ne,E as Ee}from'./chunk-5EFCeqK3.js';import'./chunk-GKdOPH_4.js';import {v as ve}from'./chunk-KNmRQWOM.js';import {x}from'./chunk-B-T54LAJ.js';import {c}from'./chunk-D5zSyubd.js';import {D}from'./chunk-Cv4o9u3S.js';import {T,ab as C,aX as y,a5 as g,bj as Q,a6 as be,m,N as Nt$1,G as Ge,B as A,z as za,J as zu,h as hw,_ as _t$1,v,c as N,i as Ig,Q as Qi,H as Hg,n as nC,$ as $l,F as Fg,j as jg,aP as ql,aQ as Gl,d as aT,b5 as lg,b6 as oT,bi as cg,c5 as lb,C as CE,y as vg,a3 as KC,g as cT,b7 as iT,o as oC,l as vT,p as lm,O as Od,k as iC,U as UC,P as Pd,w as cm,s as jC,au as Vg,av as rC,a1 as dT,ap as lT,a2 as fT,L as Kg,c3 as pC,a$ as JC,b_ as wg,ak as dm,aa as Ql,ar as Zp,al as WC,aM as ob,aN as ab,ao as qC,aR as sb,bZ as ei$1,cq as ce,cr as y$1,be as Fi,cs as tn,ct as en,ad as Mr,aJ as ci,bh as pi,cu as A$1,cv as I,cw as fv,cx as Je,aL as hi,cy as Ne$1,cz as U,bf as Jt$1,cA as Ce,bg as Kn$1,cB as ye,cC as qt$1,cD as Ee$1,cE as Qt$1,cF as Ze,cG as ne,cH as m$1,cI as de,cJ as g$1,cK as nn,cL as j,cM as d$1,cN as Rt$1,cO as Zt$1,cP as Gt$1,cQ as Kt$1,cR as Yt$1,cS as zt$1,cT as q,cU as Q$1,cV as Bt$1,cW as Pt$1,cX as kt$1,cY as Ut$1,cZ as jt$1,c_ as Ot$1,c$ as Nt$2,d0 as Fe,d1 as M,d2 as xt$1,d3 as J,d4 as Vt$1,bs as Rr,d5 as Or,d6 as Tr,d7 as f$1,d8 as wi,d9 as Ai,bL as s,da as L,db as k$1,dc as _,aI as c$1,aH as m$2,b2 as m$3}from'./main-XKLDSNLY.js';import {f}from'./chunk-CTH9uShX.js';import {d}from'./chunk-BnFO-7ok.js';import'./chunk-DqoYKCmi.js';import'./chunk-BDhLEYas.js';import {a as at$1}from'./chunk-UUMQmD5I.js';import {C as C$1}from'./chunk-B8PnvglY.js';import'./chunk-CsgB8OpN.js';import'./chunk-BaknLOqq.js';import'./chunk-DCsYP4vf.js';var fn=()=>[_t$1,Promise.resolve().then(function(){return chunkSWVAJ6TW}).then(e=>e.NgTemplateOutlet),v,N,Promise.resolve().then(function(){return chunkJGYPH2BS}).then(e=>e.ShipChip),import('./chunk-xwdrpTfz.js').then(e=>e.ShipTable),import('./chunk-xwdrpTfz.js').then(e=>e.ShipSort),at$1,Promise.resolve().then(function(){return chunkAOYFZEXX}).then(e=>e.BackupProgressComponent),Promise.resolve().then(function(){return chunk4HOV3NJV}).then(e=>e.DurationFormatPipe),Promise.resolve().then(function(){return chunkHNLWAJTV}).then(e=>e.BytesPipe),Promise.resolve().then(function(){return chunkDXTOMSER}).then(e=>e.RelativeTimePipe)],hn=()=>["/add-backup"],$n=()=>["/restore"],Dn=e=>({$implicit:e}),yn=()=>["/backup/new"],Rn=e=>["/backup",e,"export"],An=e=>["/backup",e,"delete"],xn=e=>["/backup",e,"database"],Hn=e=>["/backup",e,"commandline"],Ln=e=>["/backup",e,"log"],kn=e=>["/backup",e],Gn=e=>["/restore",e],bn=e=>["/backup",e,"version-labels"],Bn=e=>["/backup",e,"delete-versions"],vn=e=>["/backup",e,"broken-files"];function Jn(e,t){e&1&&nC(0,11,1);}function Xn(e,t){e&1&&nC(0,11,2);}function wn(e,t){if(e&1&&nC(0,11,3),e&2){let n=iC(2);Vg(n.timeType()),rC(0);}}function zn(e,t){if(e&1){let n=vT();Qi(0,"button",71),Hg("click",function(){let c=Od(n).$implicit,d=iC(3);return Pd(d.sortByColumn.set(c.value))}),nC(1,15),$l();}if(e&2){let n=t.$implicit,a=iC(3);Kg("active",a.orderBy()===n.value),CE(),Vg(n.label),rC(1);}}function Vn(e,t){if(e&1&&(Qi(0,"sh-menu",68)(1,"button",69),Fg(2,14),Ig(3,"strong")(4,"sh-icon"),jg(),$l(),ql(5,70),dT(6,zn,2,3,"button",72,lT),Gl(),$l()),e&2){let n=iC(2);CE(4),Vg(n.orderBy()),rC(2),CE(2),fT(n.sortOrderOptions());}}function Un(e,t){if(e&1){let n=vT();Qi(0,"div",64)(1,"sh-button-group",65),lm("valueChange",function(c){Od(n);let d=iC();return UC(d.viewMode,c)||(d.viewMode=c),Pd(c)}),Qi(2,"button",66),Fg(3,9),Ig(4,"sh-icon"),jg(),$l(),Qi(5,"button",67),Fg(6,10),Ig(7,"sh-icon"),jg(),$l()(),Qi(8,"sh-menu",68)(9,"button",69),Fg(10,11),Qi(11,"strong"),aT(12,Jn,1,0)(13,Xn,1,0)(14,wn,1,1),$l(),Ig(15,"sh-icon"),jg(),$l(),ql(16,70),Qi(17,"button",71),Hg("click",function(){Od(n);let c=iC();return Pd(c.setTimeType("relative"))}),nC(18,12),$l(),Qi(19,"button",71),Hg("click",function(){Od(n);let c=iC();return Pd(c.setTimeType("actual"))}),nC(20,13),$l(),Gl(),$l(),aT(21,Vn,8,1,"sh-menu",68),$l();}if(e&2){let n=iC();CE(),cm("value",n.viewMode),CE(11),cT(n.timeType()=="relative"?12:n.timeType()=="actual"?13:14),CE(9),cT(n.viewMode()==="list"?21:-1);}}function Kn(e,t){e&1&&(Qi(0,"sh-chip",79),Fg(1,19),Ig(2,"sh-icon"),jg(),$l()),e&2&&vg("shTooltip","Synchronization job");}function jn(e,t){if(e&1){let n=vT();Qi(0,"div",77)(1,"div",60)(2,"h3"),jC(3),aT(4,Kn,3,1,"sh-chip",79),Qi(5,"sh-chip"),Ig(6,"img",80),jC(7),$l()()(),Qi(8,"div",81)(9,"sh-chip",82),nC(10,16),$l()(),Qi(11,"div",64)(12,"button",83),Hg("click",function(){Od(n);let c=iC().$implicit,d=iC(4);return Pd(d.startBackup(c.Backup.ID))}),Fg(13,17),Ig(14,"sh-icon"),jg(),$l(),Qi(15,"button",84),Hg("click",function(){Od(n);let c=iC().$implicit,d=iC(4);return Pd(d.openInConsole(c))}),Fg(16,18),Ig(17,"sh-icon"),jg(),$l()(),Ig(18,"app-backup-progress",85),$l();}if(e&2){let n=iC().$implicit,a=iC(4);CE(3),Ql(" ",n.Backup.Name??a.MISSING_BACKUP_NAME," "),CE(),cT(n.Backup.OperationType==="Sync"?4:-1),CE(2),vg("src",a.getBackendIcon(n.Backup.TargetURL),Zp),CE(),Ql(" ",a.getBackendType(n.Backup.TargetURL)," "),CE(5),Kg("loading",a.startingBackup()===n.Backup.ID),CE(6),vg("backupId",n.Backup.ID);}}function Wn(e,t){e&1&&(Qi(0,"sh-chip",79),Fg(1,21),Ig(2,"sh-icon"),jg(),$l()),e&2&&vg("shTooltip","Synchronization job");}function qn(e,t){if(e&1&&(Qi(0,"sh-chip"),Ig(1,"img",80),jC(2),$l()),e&2){let n=t.$implicit,a=iC(7);CE(),vg("src",a.getBackendIcon(n.TargetUrl),Zp),CE(),Ql(" ",a.getBackendType(n.TargetUrl)," ");}}function Qn(e,t){if(e&1&&dT(0,qn,3,2,"sh-chip",null,lT),e&2){let n=iC(2).$implicit;fT(n.Backup.AdditionalTargetURLs);}}function Yn(e,t){if(e&1&&(Qi(0,"p")(1,"span"),nC(2,26),$l(),jC(3),ob(4,"relativeTime"),$l()),e&2){iC();let n=qC(5),a=iC(6);CE(3),Ql(" ",ab(4,1,n,a.timeType()==="actual")," ");}}function Zn(e,t){if(e&1&&(jC(0),ob(1,"durationFormat")),e&2){let n=iC(3).$implicit,a=iC(4);Ql(" ",ab(1,1,n.Backup.Metadata?.LastBackupDuration,a.timeType()==="actual")," ");}}function et(e,t){e&1&&(ql(0),jC(1,"-"),Gl());}function nt(e,t){if(e&1&&(jC(0),ob(1,"bytes")),e&2){let n=iC(3).$implicit;Ql(" ",sb(1,1,n.Backup.Metadata?.SourceFilesSize)," ");}}function tt(e,t){e&1&&(ql(0),jC(1,"-"),Gl());}function it(e,t){if(e&1&&(jC(0),ob(1,"bytes")),e&2){let n=iC(3).$implicit;Ql(" ",sb(1,1,n.Backup.Metadata?.TargetFilesSize)," ");}}function ot(e,t){e&1&&(ql(0),jC(1,"-"),Gl());}function _t(e,t){if(e&1&&(Qi(0,"p")(1,"span"),nC(2,22),$l(),jC(3),ob(4,"relativeTime"),$l(),dm(5),aT(6,Yn,5,4,"p"),Qi(7,"p")(8,"span"),nC(9,23),$l(),aT(10,Zn,2,4)(11,et,2,0,"ng-container"),$l(),Qi(12,"p")(13,"span"),nC(14,24),$l(),aT(15,nt,2,3)(16,tt,2,0,"ng-container"),$l(),Qi(17,"p")(18,"span"),nC(19,25),$l(),aT(20,it,2,3)(21,ot,2,0,"ng-container"),$l()),e&2){let n=iC(2).$implicit,a=iC(4);CE(3),Ql(" ",ab(4,5,n.Backup.Metadata?.LastBackupFinished,a.timeType()==="actual")," "),CE(2);let c=WC(a.scheduledTimes()[n.Backup.ID??""]);CE(),cT(c?6:-1),CE(4),cT(n.Backup.Metadata?.LastBackupDuration?10:11),CE(5),cT(n.Backup.Metadata?.SourceFilesSize?15:16),CE(5),cT(n.Backup.Metadata?.TargetFilesSize?20:21);}}function at(e,t){if(e&1&&Ig(0,"app-backup-progress",85),e&2){let n=iC(2).$implicit;vg("backupId",n.Backup.ID);}}function lt(e,t){e&1&&(Qi(0,"sh-chip",82),nC(1,27),$l());}function rt(e,t){e&1&&wg(0);}function ct(e,t){if(e&1&&(Qi(0,"div",78)(1,"div",60)(2,"h3"),jC(3),aT(4,Wn,3,1,"sh-chip",79),Qi(5,"sh-chip"),Ig(6,"img",80),jC(7),$l(),aT(8,Qn,2,0),$l(),aT(9,_t,22,9)(10,at,1,1,"app-backup-progress",85),$l(),Qi(11,"div",81)(12,"sh-chip",86),nC(13,20),$l(),aT(14,lt,2,0,"sh-chip",82),$l(),Qi(15,"div",64),cg(16,rt,1,0,"ng-container",87),$l()()),e&2){let n=iC().$implicit,a=iC(4),c=pC(33);CE(3),Ql(" ",n.Backup.Name??a.MISSING_BACKUP_NAME," "),CE(),cT(n.Backup.OperationType==="Sync"?4:-1),CE(2),vg("src",a.getBackendIcon(n.Backup.TargetURL),Zp),CE(),Ql(" ",a.getBackendType(n.Backup.TargetURL)," "),CE(),cT(n.Backup.AdditionalTargetURLs?.length?8:-1),CE(),cT(a.runningBackupId()!==n.Backup.ID?9:10);let d=a.getBackupVersionCount(n);CE(4),Vg(d)(d),rC(13),CE(),cT(n.Backup.ExternalID?14:-1),CE(2),vg("ngTemplateOutlet",c)("ngTemplateOutletContext",JC(11,Dn,n));}}function st(e,t){if(e&1&&aT(0,jn,19,7,"div",77)(1,ct,17,13,"div",78),e&2){let n=t.$implicit;cT(n.Backup.ExternalID?0:1);}}function ut(e,t){if(e&1&&dT(0,st,2,1,null,null,lT),e&2){let n=iC(3);fT(n.backups());}}function Ft(e,t){e&1&&(Qi(0,"div",76),Fg(1,28),Qi(2,"button",88),Ig(3,"sh-icon"),$l(),jg(),$l()),e&2&&(CE(2),vg("routerLink",KC(1,yn)));}function Ct(e,t){if(e&1&&(Qi(0,"div",75),aT(1,ut,2,0)(2,Ft,4,2,"div",76),$l()),e&2){let n=iC(2);Kg("fallback",n.backups().length===0),CE(),cT(n.backups().length?1:2);}}function Tt(e,t){e&1&&(Fg(0,29,1),wg(1),jg());}function dt(e,t){e&1&&(Fg(0,30,1),wg(1),jg());}function Et(e,t){e&1&&(Fg(0,31,1),wg(1),jg());}function pt(e,t){e&1&&(Fg(0,32,1),wg(1),jg());}function gt(e,t){e&1&&(Fg(0,33,1),wg(1),jg());}function St(e,t){e&1&&(Fg(0,34,1),wg(1),jg());}function mt(e,t){e&1&&(Fg(0,35,1),wg(1),jg());}function Ot(e,t){e&1&&(Qi(0,"sh-chip",99),Fg(1,39),Ig(2,"sh-icon"),jg(),$l()),e&2&&vg("shTooltip","Synchronization job");}function Nt(e,t){if(e&1&&(Qi(0,"sh-chip"),Ig(1,"img",80),jC(2),$l()),e&2){let n=t.$implicit,a=iC(5);CE(),vg("src",a.getBackendIcon(n.TargetUrl),Zp),CE(),Ql(" ",a.getBackendType(n.TargetUrl)," ");}}function Mt(e,t){if(e&1&&dT(0,Nt,3,2,"sh-chip",null,lT),e&2){let n=iC().$implicit;fT(n.Backup.AdditionalTargetURLs);}}function It(e,t){if(e&1&&(jC(0),ob(1,"relativeTime")),e&2){let n=iC().$implicit,a=iC(3);Ql(" ",ab(1,1,n.Backup.Metadata?.LastBackupFinished,a.timeType()==="actual")," ");}}function Pt(e,t){e&1&&(ql(0),jC(1,"-"),Gl());}function Dt(e,t){if(e&1&&(jC(0),ob(1,"relativeTime")),e&2){iC();let n=qC(13),a=iC(3);Ql(" ",ab(1,1,n,a.timeType()==="actual")," ");}}function ft(e,t){e&1&&(ql(0),jC(1,"-"),Gl());}function ht(e,t){if(e&1&&(jC(0),ob(1,"durationFormat")),e&2){let n=iC().$implicit,a=iC(3);Ql(" ",ab(1,1,n.Backup.Metadata?.LastBackupDuration,a.timeType()==="actual")," ");}}function $t(e,t){e&1&&(ql(0),jC(1,"-"),Gl());}function yt(e,t){if(e&1&&(jC(0),ob(1,"bytes")),e&2){let n=iC().$implicit;Ql(" ",sb(1,1,n.Backup.Metadata?.SourceFilesSize)," ");}}function Rt(e,t){e&1&&(ql(0),jC(1,"-"),Gl());}function At(e,t){if(e&1&&(jC(0),ob(1,"bytes")),e&2){let n=iC().$implicit;Ql(" ",sb(1,1,n.Backup.Metadata?.TargetFilesSize)," ");}}function xt(e,t){e&1&&(ql(0),jC(1,"-"),Gl());}function Ht(e,t){e&1&&wg(0);}function Lt(e,t){if(e&1&&(Qi(0,"tr")(1,"td"),jC(2),aT(3,Ot,3,1,"sh-chip",99),$l(),Qi(4,"td")(5,"sh-chip",100),Ig(6,"img",80),jC(7),$l(),aT(8,Mt,2,0),$l(),Qi(9,"td"),aT(10,It,2,4)(11,Pt,2,0,"ng-container"),$l(),Qi(12,"td"),dm(13),aT(14,Dt,2,4)(15,ft,2,0,"ng-container"),$l(),Qi(16,"td"),aT(17,ht,2,4)(18,$t,2,0,"ng-container"),$l(),Qi(19,"td"),aT(20,yt,2,3)(21,Rt,2,0,"ng-container"),$l(),Qi(22,"td"),aT(23,At,2,3)(24,xt,2,0,"ng-container"),$l(),Qi(25,"td")(26,"span"),nC(27,38),$l()(),Qi(28,"td"),cg(29,Ht,1,0,"ng-container",87),$l()()),e&2){let n=t.$implicit,a=iC(3),c=pC(33);CE(2),Ql(" ",n.Backup.Name??a.MISSING_BACKUP_NAME," "),CE(),cT(n.Backup.OperationType==="Sync"?3:-1),CE(3),vg("src",a.getBackendIcon(n.Backup.TargetURL),Zp),CE(),Ql(" ",a.getBackendType(n.Backup.TargetURL)," "),CE(),cT(n.Backup.AdditionalTargetURLs?.length?8:-1),CE(2),cT(n.Backup.Metadata?.LastBackupFinished?10:11),CE(3);let d=WC(a.scheduledTimes()[n.Backup.ID??""]);CE(),cT(d?14:15),CE(3),cT(n.Backup.Metadata?.LastBackupDuration?17:18),CE(3),cT(n.Backup.Metadata?.SourceFilesSize?20:21),CE(3),cT(n.Backup.Metadata?.TargetFilesSize?23:24);let R=a.getBackupVersionCount(n);CE(4),Vg(R)(R),rC(27),CE(2),vg("ngTemplateOutlet",c)("ngTemplateOutletContext",JC(15,Dn,n));}}function kt(e,t){if(e&1){let n=vT();Qi(0,"sh-table",89),lm("sortByColumnChange",function(c){Od(n);let d=iC(2);return UC(d.sortByColumn,c)||(d.sortByColumn=c),Pd(c)}),Qi(1,"tr",90)(2,"th",91),Fg(3,29),cg(4,Tt,2,0,"ng-container",92),jg(),$l(),Qi(5,"th",93),Fg(6,30),cg(7,dt,2,0,"ng-container",92),jg(),$l(),Qi(8,"th",94),Fg(9,31),cg(10,Et,2,0,"ng-container",92),jg(),$l(),Qi(11,"th",95),Fg(12,32),cg(13,pt,2,0,"ng-container",92),jg(),$l(),Qi(14,"th",96),Fg(15,33),cg(16,gt,2,0,"ng-container",92),jg(),$l(),Qi(17,"th",97),Fg(18,34),cg(19,St,2,0,"ng-container",92),jg(),$l(),Qi(20,"th",98),Fg(21,35),cg(22,mt,2,0,"ng-container",92),jg(),$l(),Qi(23,"th"),nC(24,36),$l(),Qi(25,"th"),nC(26,37),$l()(),dT(27,Lt,30,17,"tr",null,lT),$l();}if(e&2){let n=iC(2),a=pC(35);vg("data",n.backups())("loading",n.backupsLoading()),cm("sortByColumn",n.sortByColumn),CE(4),vg("ngTemplateOutlet",a),CE(3),vg("ngTemplateOutlet",a),CE(3),vg("ngTemplateOutlet",a),CE(3),vg("ngTemplateOutlet",a),CE(3),vg("ngTemplateOutlet",a),CE(3),vg("ngTemplateOutlet",a),CE(3),vg("ngTemplateOutlet",a),CE(5),fT(n.backups());}}function Gt(e,t){if(e&1&&aT(0,Ct,3,3,"div",73)(1,kt,29,10,"sh-table",74),e&2){let n=iC();cT(n.viewMode()==="list"?0:n.viewMode()==="details"?1:-1);}}function bt(e,t){e&1&&(Qi(0,"div",101),Ig(1,"sh-progress-bar",102),Qi(2,"div",60)(3,"h3"),nC(4,40),$l()()());}function Bt(e,t){if(e&1){let n=vT();Qi(0,"button",83),Hg("click",function(){Od(n);let c=iC(3);return Pd(c.abort())}),Fg(1,42),Ig(2,"sh-icon"),jg(),$l();}if(e&2){let n=iC(3);Kg("small",n.viewMode()==="details");}}function vt(e,t){if(e&1){let n=vT();Qi(0,"button",83),Hg("click",function(){Od(n);let c=iC(3);return Pd(c.stop())}),Fg(1,43),Ig(2,"sh-icon"),jg(),$l();}if(e&2){let n=iC(3);Kg("small",n.viewMode()==="details");}}function Jt(e,t){e&1&&(Fg(0,41,1),Ig(1,"sh-icon"),jg());}function Xt(e,t){e&1&&(Fg(0,41,2),Ig(1,"sh-icon"),jg());}function wt(e,t){if(e&1){let n=vT();aT(0,Bt,3,2,"button",103)(1,vt,3,2,"button",103),Qi(2,"button",83),Hg("click",function(){Od(n);let c=iC(2);return Pd(c.pauseResume())}),Fg(3,41),aT(4,Jt,2,0)(5,Xt,2,0),jg(),$l();}if(e&2){let n=iC(2);cT(n.isStopping()?0:1),CE(2),Kg("small",n.viewMode()==="details")("loading",n.isResuming()),CE(2),cT(n.clientIsRunning()?4:5);}}function zt(e,t){e&1&&nC(0,44,1);}function Vt(e,t){e&1&&(Qi(0,"button",104)(1,"sh-icon"),jC(2,"pencil-simple"),$l()()),e&2&&vg("shTooltip","Externally managed")("disabled",true);}function Ut(e,t){if(e&1&&(Qi(0,"button",105)(1,"sh-icon"),jC(2,"pencil-simple"),$l()()),e&2){let n=iC(2).$implicit;vg("routerLink",JC(1,kn,n.Backup.ID));}}function Kt(e,t){e&1&&(Qi(0,"button",104)(1,"sh-icon"),jC(2,"dots-three-vertical"),$l()()),e&2&&vg("shTooltip","Externally managed")("disabled",true);}function jt(e,t){e&1&&(Qi(0,"sh-icon"),jC(1,"check"),$l());}function Wt(e,t){e&1&&(Qi(0,"sh-icon"),jC(1,"dots-three-vertical"),$l());}function qt(e,t){if(e&1&&(Qi(0,"button",110),aT(1,jt,2,0,"sh-icon")(2,Wt,2,0,"sh-icon"),$l()),e&2){let n=iC(2).$implicit,a=iC();Kg("loading",a.loadingId()===n.Backup.ID)("success",a.successId()===n.Backup.ID),CE(),cT(a.successId()===n.Backup.ID?1:2);}}function Qt(e,t){if(e&1&&(Qi(0,"button",108),Fg(1,52),Ig(2,"sh-icon"),jg(),$l()),e&2){let n=iC(2).$implicit;vg("routerLink",JC(1,Gn,n.Backup.ID));}}function Yt(e,t){if(e&1){let n=vT();Qi(0,"button",71),Hg("click",function(){Od(n);let c=iC(2).$implicit,d=iC();return Pd(d.verifyFiles(c.Backup.ID))}),Fg(1,53),Ig(2,"sh-icon"),jg(),$l();}}function Zt(e,t){if(e&1&&(Qi(0,"button",108),Fg(1,54),Ig(2,"sh-icon"),jg(),$l()),e&2){let n=iC(3).$implicit;vg("routerLink",JC(1,bn,n.Backup.ID));}}function ei(e,t){if(e&1&&(Qi(0,"button",108),Fg(1,56),Ig(2,"sh-icon"),jg(),$l()),e&2){let n=iC(4).$implicit;vg("routerLink",JC(1,Bn,n.Backup.ID));}}function ni(e,t){if(e&1&&(Qi(0,"button",108),Fg(1,57),Ig(2,"sh-icon"),jg(),$l()),e&2){let n=iC(4).$implicit;vg("routerLink",JC(1,vn,n.Backup.ID));}}function ti(e,t){if(e&1&&(Ig(0,"sh-divider"),Qi(1,"h3",107),nC(2,55),$l(),aT(3,ei,3,3,"button",108),aT(4,ni,3,3,"button",108)),e&2){let n=iC(4);CE(3),cT(n.hasDeleteVersions()?3:-1),CE(),cT(n.hasBrokenFiles()?4:-1);}}function ii(e,t){if(e&1&&(aT(0,Zt,3,3,"button",108),aT(1,ti,5,2)),e&2){let n=iC(3);cT(n.hasSetVersionLabel()?0:-1),CE(),cT(n.hasDeleteVersions()||n.hasBrokenFiles()?1:-1);}}function oi(e,t){if(e&1){let n=vT();Qi(0,"button",83),Hg("click",function(){Od(n);let c=iC().$implicit,d=iC();return Pd(d.startBackup(c.Backup.ID))}),Fg(1,44),Ig(2,"sh-icon"),aT(3,zt,1,0),jg(),$l(),aT(4,Vt,3,2,"button",104)(5,Ut,3,3,"button",105),Qi(6,"sh-menu"),aT(7,Kt,3,2,"button",104)(8,qt,3,5,"button",106),ql(9,70),Qi(10,"h3",107),jC(11,"Operations"),$l(),aT(12,Qt,3,3,"button",108),Qi(13,"button",108),Fg(14,45),Ig(15,"sh-icon"),jg(),$l(),Qi(16,"button",108),Fg(17,46),Ig(18,"sh-icon"),jg(),$l(),Ig(19,"sh-divider"),Qi(20,"h3",107),nC(21,47),$l(),Qi(22,"button",108),Fg(23,48),Ig(24,"sh-icon"),jg(),$l(),aT(25,Yt,3,0,"button",109),Qi(26,"button",108),Fg(27,49),Ig(28,"sh-icon"),jg(),$l(),aT(29,ii,2,2),Ig(30,"sh-divider"),Qi(31,"h3",107),nC(32,50),$l(),Qi(33,"button",108),Fg(34,51),Ig(35,"sh-icon"),jg(),$l(),Gl(),$l();}if(e&2){let n=iC().$implicit,a=iC();Kg("loading",a.startingBackup()===n.Backup.ID),CE(3),cT(a.viewMode()==="list"?3:-1),CE(),cT(n.Backup.ExternalID?4:5),CE(3),cT(n.Backup.ExternalID?7:8),CE(5),cT(n.Backup.OperationType!=="Sync"?12:-1),CE(),vg("routerLink",JC(13,Rn,n.Backup.ID)),CE(3),vg("routerLink",JC(15,An,n.Backup.ID)),CE(6),vg("routerLink",JC(17,xn,n.Backup.ID)),CE(3),cT(n.Backup.OperationType!=="Sync"?25:-1),CE(),vg("routerLink",JC(19,Hn,n.Backup.ID)),CE(3),cT(n.Backup.OperationType!=="Sync"?29:-1),CE(4),vg("routerLink",JC(21,Ln,n.Backup.ID));}}function _i(e,t){if(e&1&&aT(0,wt,6,6)(1,oi,36,23),e&2){let n=t.$implicit,a=iC();cT(a.runningBackupId()===n.Backup.ID?0:1);}}function ai(e,t){e&1&&(Qi(0,"sh-icon",111),jC(1,"funnel-simple"),$l(),Qi(2,"sh-icon",112),jC(3,"sort-ascending"),$l(),Qi(4,"sh-icon",113),jC(5,"sort-descending"),$l());}var le=class e{#t=T(C);#n=T(y);#e=T(g);#_=T(C$1);#a=T(Q);#l=T(be);#i=T(m);hasDeleteVersions=this.#i.hasV2DeleteVersions;hasSetVersionLabel=this.#i.hasV2SetVersionLabel;hasBrokenFiles=this.#i.hasV2BrokenFiles;MISSING_BACKUP_NAME=$localize`Backup name missing`;sortOrderOptions=this.#e.orderByOptions;orderBy=this.#e.orderBy;backups=this.#e.backups;backupsLoading=this.#e.backupsLoading;startingBackup=this.#e.startingBackup;deletingBackup=this.#e.deletingBackup;runningBackupId=this.#n.runningBackupId;getBackendType=Ne;getBackendIcon=Ee;timeType=this.#e.timeType;clientIsRunning=this.#n.clientIsRunning;isResuming=this.#n.isResuming;runningTask=Nt$1(()=>this.#n.serverState()?.ActiveTask?.Item1);isStopping=Nt$1(()=>this.runningTask()==this.#o());scheduledTimes=Nt$1(()=>{let t=this.#a.serverState()?.ProposedSchedule??[],n=this.#e.backups(),a={};return n.forEach(c=>{let d=c.Backup?.ID;if(d){var R=t.find(X=>X.Item1==d);R?.Item2?a[d]=R.Item2:c.Schedule?.Time&&(a[d]=c.Schedule.Time);}}),a});#o=Ge(-1);viewMode=A("viewMode","list");sortByColumn=Ge(this.#e.orderBy());loadingId=Ge(null);successId=Ge(null);sortEffect=za(()=>this.#e.setOrderBy(this.sortByColumn()));ngOnInit(){this.#e.getBackups(true);}openInConsole(t){let n=t.Backup.ExternalID?.split(":")[1];if(!n){console.error("Backup does not have an external ID");return}this.#_.openConsole("/app/machines/configurations/"+n);}setOrderBy(t){this.#e.setOrderBy(t);}setTimeType(t){this.#e.setTimeType(t);}startBackup(t){this.#n.resumeDialogCheck(()=>this.#e.startBackup(t));}openPauseDialog(){this.#l.open(k,{maxWidth:"550px",width:"100%"});}pauseResume(){if(this.clientIsRunning()){this.openPauseDialog();return}this.#n.pauseResume().subscribe();}stop(){let t=this.runningTask();t&&(this.#o.set(t),this.#t.postApiV1TaskByTaskidStop({taskid:t}).subscribe());}abort(){let t=this.runningTask();t&&this.#t.postApiV1TaskByTaskidAbort({taskid:t}).subscribe();}getBackupVersionCount(t){return parseInt(t?.Backup?.Metadata?.BackupListCount??"",10)||0}verifyFiles(t){this.loadingId.set(t),this.#t.postApiV1BackupByIdVerify({id:t}).pipe(zu(()=>this.loadingId.set(null))).subscribe({next:()=>{this.successId.set(t),setTimeout(()=>this.successId.set(null),2e3);}});}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=hw({type:e,selectors:[["app-home"]],decls:36,vars:6,consts:()=>{let t;t=$localize`Backups`;let n;n=$localize`Keep your data safe at your chosen destination.`;let a;a=$localize` Create ${"\uFFFD#12\uFFFD"}:START_TAG_SH_ICON:plus${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SH_ICON:`;let c;c=$localize`Restores`;let d;d=$localize`Recover your files from any backup set.`;let R;R=$localize` Start ${"\uFFFD#22\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SH_ICON:`;let X;X=$localize`My backups`;let re;re=$localize`${"\uFFFD#4\uFFFD"}:START_TAG_SH_ICON:rows${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_SH_ICON: List `;let ce;ce=$localize`${"\uFFFD#7\uFFFD"}:START_TAG_SH_ICON:list${"\uFFFD/#7\uFFFD"}:CLOSE_TAG_SH_ICON: Details `;let se;se=$localize` Time: ${"\uFFFD#11\uFFFD"}:START_TAG_STRONG:${"\uFFFD*12:1\uFFFD"}:START_BLOCK_IF: Relative ${"\uFFFD/*12:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*13:2\uFFFD"}:START_BLOCK_ELSE_IF: Actual ${"\uFFFD/*13:2\uFFFD"}:CLOSE_BLOCK_ELSE_IF:${"\uFFFD*14:3\uFFFD"}:START_BLOCK_ELSE: ${"\uFFFD0:3\uFFFD"}:INTERPOLATION: ${"\uFFFD/*14:3\uFFFD"}:CLOSE_BLOCK_ELSE:${"\uFFFD/#11\uFFFD"}:CLOSE_TAG_STRONG:${"\uFFFD#15\uFFFD"}:START_TAG_SH_ICON:clock${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SH_ICON:`;let ue;ue=$localize`Relative time`;let Fe;Fe=$localize`Actual time`;let Ce;Ce=$localize` Order by: ${"\uFFFD#3\uFFFD"}:START_TAG_STRONG:${"\uFFFD0\uFFFD"}:INTERPOLATION:${"\uFFFD/#3\uFFFD"}:CLOSE_TAG_STRONG:${"\uFFFD#4\uFFFD"}:START_TAG_SH_ICON:arrows-down-up${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_SH_ICON:`;let Te;Te=$localize` ${"\uFFFD0\uFFFD"}:INTERPOLATION: `;let de;de=$localize`Externally managed`;let Ee;Ee=$localize`${"\uFFFD#14\uFFFD"}:START_TAG_SH_ICON:play-circle${"\uFFFD/#14\uFFFD"}:CLOSE_TAG_SH_ICON: Start `;let pe;pe=$localize` Edit in console ${"\uFFFD#17\uFFFD"}:START_TAG_SH_ICON:arrow-up-right${"\uFFFD/#17\uFFFD"}:CLOSE_TAG_SH_ICON:`;let ge;ge=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:arrows-left-right${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let w;w=$localize`{VAR_PLURAL, plural, =0 {No version yet} =1 {1 Version} other {{INTERPOLATION} Versions}}`,w=oC(w,{INTERPOLATION:"\uFFFD1\uFFFD",VAR_PLURAL:"\uFFFD0\uFFFD"});let Se;Se=$localize` ${w}:ICU@@6502601490918455200: `;let me;me=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:arrows-left-right${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let Oe;Oe=$localize`Last successful backup:`;let Ne;Ne=$localize`Duration:`;let Me;Me=$localize`Source:`;let Ie;Ie=$localize`Destination:`;let Pe;Pe=$localize`Next scheduled run:`;let De;De=$localize`Externally managed`;let fe;fe=$localize` No backups found ${"\uFFFD#2\uFFFD"}:START_TAG_BUTTON: Click to create one now ${"\uFFFD#3\uFFFD"}:START_TAG_SH_ICON:plus${"\uFFFD/#3\uFFFD"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_BUTTON:`;let he;he=$localize` Backup ${"\uFFFD*4:1\uFFFD\uFFFD#1:1\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD/#1:1\uFFFD\uFFFD/*4:1\uFFFD"}:CLOSE_TAG_NG_CONTAINER:`;let $e;$e=$localize` Type ${"\uFFFD*7:1\uFFFD\uFFFD#1:1\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD/#1:1\uFFFD\uFFFD/*7:1\uFFFD"}:CLOSE_TAG_NG_CONTAINER:`;let ye;ye=$localize` Last backup ${"\uFFFD*10:1\uFFFD\uFFFD#1:1\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD/#1:1\uFFFD\uFFFD/*10:1\uFFFD"}:CLOSE_TAG_NG_CONTAINER:`;let Re;Re=$localize` Next run ${"\uFFFD*13:1\uFFFD\uFFFD#1:1\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD/#1:1\uFFFD\uFFFD/*13:1\uFFFD"}:CLOSE_TAG_NG_CONTAINER:`;let Ae;Ae=$localize` Duration ${"\uFFFD*16:1\uFFFD\uFFFD#1:1\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD/#1:1\uFFFD\uFFFD/*16:1\uFFFD"}:CLOSE_TAG_NG_CONTAINER:`;let xe;xe=$localize` Source ${"\uFFFD*19:1\uFFFD\uFFFD#1:1\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD/#1:1\uFFFD\uFFFD/*19:1\uFFFD"}:CLOSE_TAG_NG_CONTAINER:`;let He;He=$localize` Destination ${"\uFFFD*22:1\uFFFD\uFFFD#1:1\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD/#1:1\uFFFD\uFFFD/*22:1\uFFFD"}:CLOSE_TAG_NG_CONTAINER:`;let Le;Le=$localize`Version`;let ke;ke=$localize`Actions`;let z;z=$localize`{VAR_PLURAL, plural, =0 {No versions} =1 {1 Version} other {{INTERPOLATION} Versions}}`,z=oC(z,{INTERPOLATION:"\uFFFD1\uFFFD",VAR_PLURAL:"\uFFFD0\uFFFD"});let Ge;Ge=$localize` ${z}:ICU@@3521773141017690117: `;let be;be=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:arrows-left-right${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let Be;Be=$localize`Loading backups...`;let V;V=$localize`${"\uFFFD*4:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:pause${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON: Pause ${"\uFFFD/*4:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*5:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:play${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON: Resume ${"\uFFFD/*5:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,V=oC(V);let ve;ve=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:skull${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Abort `;let Je;Je=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:stop${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Stop `;let Xe;Xe=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:play-circle${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:${"\uFFFD*3:1\uFFFD"}:START_BLOCK_IF: Start ${"\uFFFD/*3:1\uFFFD"}:CLOSE_BLOCK_IF:`;let we;we=$localize`${"\uFFFD#15\uFFFD"}:START_TAG_SH_ICON:export${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SH_ICON: Export `;let ze;ze=$localize`${"\uFFFD#18\uFFFD"}:START_TAG_SH_ICON:x-circle${"\uFFFD/#18\uFFFD"}:CLOSE_TAG_SH_ICON: Delete `;let Ve;Ve=$localize`Advanced`;let Ue;Ue=$localize`${"\uFFFD#24\uFFFD"}:START_TAG_SH_ICON:database${"\uFFFD/#24\uFFFD"}:CLOSE_TAG_SH_ICON: Database `;let Ke;Ke=$localize`${"\uFFFD#28\uFFFD"}:START_TAG_SH_ICON:terminal-window${"\uFFFD/#28\uFFFD"}:CLOSE_TAG_SH_ICON: Commandline `;let je;je=$localize`Reporting`;let We;We=$localize`${"\uFFFD#35\uFFFD"}:START_TAG_SH_ICON:notepad${"\uFFFD/#35\uFFFD"}:CLOSE_TAG_SH_ICON: Log `;let qe;qe=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:clock-counter-clockwise${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Restore `;let Qe;Qe=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:check-square-offset${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Verify files `;let Ye;Ye=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:tag${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Version labels `;let Ze;Ze=$localize`Cleanup`;let en;en=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:trash${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Delete versions `;let nn;return nn=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:file-x${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Purge broken files `,[["actions",""],["sortIcons",""],t,n,a,c,d,R,X,re,ce,se,ue,Fe,Ce,Te,de,Ee,pe,ge,Se,me,Oe,Ne,Me,Ie,Pe,De,fe,he,$e,ye,Re,Ae,xe,He,Le,ke,Ge,be,Be,V,ve,Je,Xe,we,ze,Ve,Ue,Ke,je,We,qe,Qe,Ye,Ze,en,nn,[1,"type-a","actionable",3,"keydown.enter","keydown.space","routerLink"],["src","assets/images/backup.png","alt","","width","48px"],[1,"text"],["type","button","tabindex","-1","shButton",""],["src","assets/images/restore.png","alt","","width","48px"],[1,"content"],[1,"actions"],[1,"small","type-b",3,"valueChange","value"],["value","list"],["value","details"],[1,"table-overview"],["type","button","shButton","",1,"small"],["menu",""],["type","button",3,"click"],["type","button",3,"active"],[1,"backups",3,"fallback"],[1,"type-b",3,"data","loading","sortByColumn"],[1,"backups"],[1,"no-backups"],[1,"backup","externaly-managed"],[1,"backup"],[1,"simple","accent",3,"shTooltip"],["alt","",1,"provider-icon",3,"src"],[1,"tags"],[1,"simple","primary"],["shButton","",3,"click"],["type","button","shButton","",3,"click"],[3,"backupId"],[1,"simple","success"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["shButton","",1,"primary","raised",3,"routerLink"],[1,"type-b",3,"sortByColumnChange","data","loading","sortByColumn"],["thead",""],["shSort","name"],[4,"ngTemplateOutlet"],["shSort","type"],["shSort","lastrun"],["shSort","nextrun"],["shSort","duration"],["shSort","sourcesize"],["shSort","destinationsize"],[1,"small","accent",3,"shTooltip"],[1,"small"],[1,"loading-list"],[1,"indeterminate","primary"],["shButton","",3,"small"],["type","button","shButton","",3,"shTooltip","disabled"],["type","button","shButton","",3,"routerLink"],["type","button","shButton","",3,"loading","success"],["title",""],["type","button",3,"routerLink"],["type","button"],["type","button","shButton",""],[1,"filter"],[1,"asc"],[1,"desc"]]},template:function(n,a){n&1&&(Ig(0,"app-status-bar"),Qi(1,"section")(2,"header")(3,"sh-card",58),Hg("keydown.enter",function(d){return d.target.click()})("keydown.space",function(d){return d.target.click()}),Ig(4,"img",59),Qi(5,"div",60)(6,"h3"),nC(7,2),$l(),Qi(8,"p"),nC(9,3),$l()(),Qi(10,"button",61),Fg(11,4),Ig(12,"sh-icon"),jg(),$l()(),Qi(13,"sh-card",58),Hg("keydown.enter",function(d){return d.target.click()})("keydown.space",function(d){return d.target.click()}),Ig(14,"img",62),Qi(15,"div",60)(16,"h3"),nC(17,5),$l(),Qi(18,"p"),nC(19,6),$l()(),Qi(20,"button",61),Fg(21,7),Ig(22,"sh-icon"),jg(),$l()()(),Qi(23,"div",63)(24,"h2"),ql(25),nC(26,8),Gl(),aT(27,Un,22,3,"div",64),$l(),lg(28,Gt,2,1)(29,bt,5,0),oT(30,28,fn,null,29),$l()(),cg(32,_i,2,1,"ng-template",null,0,lb)(34,ai,6,0,"ng-template",null,1,lb)),n&2&&(CE(3),vg("routerLink",KC(4,hn)),CE(10),vg("routerLink",KC(5,$n)),CE(14),cT(a.backups().length>0?27:-1),CE(3),iT(!a.backupsLoading()));},dependencies:[_t$1,ee,f,v,N,c,ve,d,x,at$1],styles:["[_nghost-%COMP%]{display:block}h2[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:2rem 0}header[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;padding:0 2rem;gap:1rem}@media only screen and (max-width:768px){header[_ngcontent-%COMP%]{grid-template-columns:1fr}}sh-card[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem}sh-card[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;display:flex;flex-direction:column;gap:.25rem}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.content[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{padding:0 2rem}@media only screen and (max-width:768px){.content[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:.5rem}}sh-menu[_ngcontent-%COMP%]{color:red}.backups[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 2rem;gap:.5rem}.backups.fallback[_ngcontent-%COMP%]{justify-content:center;align-items:center;padding:4rem;border:1px solid var(--base-4);background:var(--base-2);border-radius:var(--shape-2);width:calc(100% - 4rem);margin:0 auto}.no-backups[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;align-items:center}.backup[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem;gap:1rem;border:1px solid var(--base-4);border-radius:var(--shape-3);box-shadow:var(--box-shadow-10)}@media only screen and (max-width:768px){.backup[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start}}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;width:100%;max-width:40%}@media only screen and (max-width:768px){.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{max-width:initial}}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{color:var(--base-8)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-8)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--base-12)}.backup[_ngcontent-%COMP%] .tags[_ngcontent-%COMP%]{display:flex;align-items:center;flex-direction:column;gap:.5rem}.provider-icon[_ngcontent-%COMP%]{width:1.25rem;height:1.25rem}.actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.sortable[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none}.sortable[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{margin-left:.5rem;font-size:1rem;justify-self:flex-end;display:none}.sortable[_ngcontent-%COMP%]:not(.sort-asc):not(.sort-desc) sh-icon.filter[_ngcontent-%COMP%]{display:block}.sortable.sort-asc[_ngcontent-%COMP%] sh-icon.asc[_ngcontent-%COMP%]{display:block;color:var(--base-12)}.sortable.sort-desc[_ngcontent-%COMP%] sh-icon.desc[_ngcontent-%COMP%]{display:block;color:var(--base-12)}.actionable[_ngcontent-%COMP%]{cursor:pointer}.actionable[_ngcontent-%COMP%]:after{transition:inset .1s linear}.actionable[_ngcontent-%COMP%]:hover{--card-shp: 0}"]})};var chunkSWVAJ6TW=/*#__PURE__*/Object.freeze({__proto__:null,APP_BASE_HREF:ce,BrowserPlatformLocation:y$1,CommonModule:Fi,DATE_PIPE_DEFAULT_OPTIONS:tn,DATE_PIPE_DEFAULT_TIMEZONE:en,DOCUMENT:Mr,DatePipe:ci,DecimalPipe:pi,FormStyle:A$1,FormatWidth:I,IMAGE_CONFIG:fv,IMAGE_LOADER:Je,JsonPipe:hi,Location:Ne$1,LocationStrategy:U,NgFor:Jt$1,NgForOf:Jt$1,NgForOfContext:Ce,NgIf:Kn$1,NgIfContext:ye,NgLocaleLocalization:qt$1,NgLocalization:Ee$1,NgPlural:Qt$1,NgSwitch:Ze,NgTemplateOutlet:ei$1,NumberFormatStyle:ne,NumberSymbol:m$1,PathLocationStrategy:de,PlatformLocation:g$1,PlatformNavigation:nn,Plural:j,TranslationWidth:d$1,WeekDay:Rt$1,formatCurrency:Zt$1,formatDate:Gt$1,formatNumber:Kt$1,formatPercent:Yt$1,getCurrencySymbol:zt$1,getLocaleDateFormat:q,getLocaleDateTimeFormat:Q$1,getLocaleDayNames:Bt$1,getLocaleDayPeriods:Pt$1,getLocaleEraNames:kt$1,getLocaleExtraDayPeriodRules:Ut$1,getLocaleExtraDayPeriods:jt$1,getLocaleId:Ot$1,getLocaleMonthNames:Nt$2,getLocaleNumberFormat:Fe,getLocaleNumberSymbol:M,getLocalePluralCase:xt$1,getLocaleTimeFormat:J,getNumberOfCurrencyDigits:Vt$1,isPlatformBrowser:Rr,isPlatformServer:Or,registerLocaleData:Tr,ɵDomAdapter:f$1,ɵPLATFORM_BROWSER_ID:wi,ɵPLATFORM_SERVER_ID:Ai,ɵgetDOM:s,ɵnormalizeQueryParams:L,ɵparseCookieValue:k$1,ɵsetRootDomAdapter:_});var chunkJGYPH2BS=/*#__PURE__*/Object.freeze({__proto__:null,ShipChip:D});var chunkAOYFZEXX=/*#__PURE__*/Object.freeze({__proto__:null,BackupProgressComponent:W});var chunk4HOV3NJV=/*#__PURE__*/Object.freeze({__proto__:null,DurationFormatPipe:c$1});var chunkHNLWAJTV=/*#__PURE__*/Object.freeze({__proto__:null,BytesPipe:m$2});var chunkDXTOMSER=/*#__PURE__*/Object.freeze({__proto__:null,RelativeTimePipe:m$3});export{le as default};
@@ -1,2 +1,2 @@
1
- import {O}from'./chunk-CuJ_uEdr.js';import {by as x,T,a6 as be,ab as C$1,m,a as T$1,bj as Q,G as Ge,N as Nt,z as za,at as h,aZ as ee}from'./main-3NL5M6JB.js';var S=new x("WindowToken",{providedIn:"root",factory:()=>typeof window<"u"?window:{}});var C=class l{#c=T(S);#g=T(be);#t=T(C$1);#o=T(m);#l=T(T$1);#n=T(Q);#u=T(O);constructor(){this.#l.subscribe("remotecontrol");}repeatRegisterTimer=null;#s=null;#r=0;#h=5;#m=2e3;pendingRefresh=false;state=Ge("unknown");claimUrl=Ge(null);registerUrl=Ge("");customRegisterUrl=Ge("");statusMessage=Nt(()=>{let e=this.state();return e==="connecting"?$localize`Console connection is enabled but not connected`:e==="connected"?$localize`Connected to console`:e==="registering"?$localize`Registering machine...`:e==="registeringfaulted"?$localize`Registration failed`:e==="registered"?$localize`Registered, waiting for accept`:e==="disabled"?$localize`Console connection is configured but not enabled`:e==="unknown"?$localize`...loading...`:$localize`Console connection is not set up`});sysInfoEffect=za(()=>{let e=this.#o.systemInfo();e&&this.registerUrl.set(e.RemoteControlRegistrationUrl??"");});remoteEffect=za(()=>{let e=this.#l.remoteControlState();e&&this.#e(e);});pendingRefreshEffect=za(()=>{this.#n.isConnectionMethodSet()&&this.pendingRefresh&&(this.pendingRefresh=false,this.refreshRemoteControlStatus());});#a=Nt(()=>{let e=this.#n.getConnectionMethod()==="websocket",i=this.#o.hasWsRemoteControl();return e&&i});#f(e){e.RegistrationUrl&&this.claimUrl.set(e.RegistrationUrl),e.IsConnected?this.state.set("connected"):e.IsEnabled?this.state.set("connecting"):e.CanEnable?this.state.set("disabled"):e.IsRegisteringFaulted?this.state.set("registeringfaulted"):e.IsRegistering?e.RegistrationUrl!=null&&e.RegistrationUrl.trim().length>0?this.state.set("registered"):this.state.set("registering"):this.state.set("inactive");}#e(e){if(this.#r=0,this.#f(e),this.#a())return;let i=this.state();this.repeatRegisterTimer!==null&&(clearTimeout(this.repeatRegisterTimer),this.repeatRegisterTimer=null),i==="registering"&&(this.repeatRegisterTimer=setTimeout(()=>{this.#t.postApiV1RemotecontrolRegisterWait().subscribe({next:t=>this.#e(t),error:t=>this.#i(t)});},5e3)),(i==="connecting"||i==="registered")&&(this.repeatRegisterTimer=setTimeout(()=>{this.#t.getApiV1RemotecontrolStatus().subscribe({next:t=>this.#e(t),error:t=>this.#i(t)});},5e3)),e.IsRegistering&&e.CanEnable&&this.#t.deleteApiV1RemotecontrolRegister().subscribe({next:t=>this.#e(t)});}#i(e){if(this.#s!==null&&(clearTimeout(this.#s),this.#s=null),this.#r>=this.#h){this.state.set("registeringfaulted"),this.#r=0;return}let i=this.#m*Math.pow(2,this.#r);this.#r++,this.#s=setTimeout(()=>{this.#s=null,this.#t.getApiV1RemotecontrolStatus().subscribe({next:t=>this.#e(t),error:t=>this.#i(t)});},i);}refreshRemoteControlStatus(){if(!this.#a()){if(!this.#n.isConnectionMethodSet()){this.pendingRefresh=true;return}this.#t.getApiV1RemotecontrolStatus().subscribe({next:e=>this.#e(e),error:e=>this.#i(e)});}}beginRemoteRegistration(e=false){this.state.set("registering"),this.#t.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:e?this.customRegisterUrl():this.registerUrl()}}).subscribe({next:i=>this.#e(i),error:i=>this.#i(i)});}cancelRemoteRegistration(){this.#t.deleteApiV1RemotecontrolRegister().subscribe({next:e=>this.#e(e),error:e=>this.#i(e)});}enableRemoteControl(){this.#t.postApiV1RemotecontrolEnable().subscribe({next:e=>this.#e(e),error:e=>this.#i(e)});}disableRemoteControl(){this.#t.postApiV1RemotecontrolDisable().subscribe({next:e=>this.#e(e),error:e=>this.#i(e)});}deleteRemoteControl(){let e=this;this.#g.open(h,{data:{title:$localize`Confirm delete`,message:$localize`Are you sure you want to delete the console registration?`,confirmText:$localize`Delete registration`,cancelText:$localize`Cancel`},closed:i=>{i&&e.#t.deleteApiV1RemotecontrolRegistration().subscribe({next:t=>e.#e(t),error:t=>e.#i(t)});}});}openConsole(e="/app/machines",i){let t=this.#u.serverSettings(),y=this.#o.systemInfo(),r="https://app.duplicati.com",c=y?.RemoteControlDashboardUrl??"";if(c.length>0&&(r=c),t&&t["remote-control-dashboard-url"]&&(r=t["remote-control-dashboard-url"]),r=new URL(r).origin+e,i){let v=new URLSearchParams(i);r+=`?${v.toString()}`;}this.#c.open(r,"_blank");}static \u0275fac=function(i){return new(i||l)};static \u0275prov=ee({token:l,factory:l.\u0275fac,providedIn:"root"})};
1
+ import {O}from'./chunk-CsgB8OpN.js';import {by as x,T,a6 as be,ab as C$1,m,a as T$1,bj as Q,G as Ge,N as Nt,z as za,at as h,aZ as ee}from'./main-XKLDSNLY.js';var S=new x("WindowToken",{providedIn:"root",factory:()=>typeof window<"u"?window:{}});var C=class l{#c=T(S);#g=T(be);#t=T(C$1);#o=T(m);#l=T(T$1);#n=T(Q);#u=T(O);constructor(){this.#l.subscribe("remotecontrol");}repeatRegisterTimer=null;#s=null;#r=0;#h=5;#m=2e3;pendingRefresh=false;state=Ge("unknown");claimUrl=Ge(null);registerUrl=Ge("");customRegisterUrl=Ge("");statusMessage=Nt(()=>{let e=this.state();return e==="connecting"?$localize`Console connection is enabled but not connected`:e==="connected"?$localize`Connected to console`:e==="registering"?$localize`Registering machine...`:e==="registeringfaulted"?$localize`Registration failed`:e==="registered"?$localize`Registered, waiting for accept`:e==="disabled"?$localize`Console connection is configured but not enabled`:e==="unknown"?$localize`...loading...`:$localize`Console connection is not set up`});sysInfoEffect=za(()=>{let e=this.#o.systemInfo();e&&this.registerUrl.set(e.RemoteControlRegistrationUrl??"");});remoteEffect=za(()=>{let e=this.#l.remoteControlState();e&&this.#e(e);});pendingRefreshEffect=za(()=>{this.#n.isConnectionMethodSet()&&this.pendingRefresh&&(this.pendingRefresh=false,this.refreshRemoteControlStatus());});#a=Nt(()=>{let e=this.#n.getConnectionMethod()==="websocket",i=this.#o.hasWsRemoteControl();return e&&i});#f(e){e.RegistrationUrl&&this.claimUrl.set(e.RegistrationUrl),e.IsConnected?this.state.set("connected"):e.IsEnabled?this.state.set("connecting"):e.CanEnable?this.state.set("disabled"):e.IsRegisteringFaulted?this.state.set("registeringfaulted"):e.IsRegistering?e.RegistrationUrl!=null&&e.RegistrationUrl.trim().length>0?this.state.set("registered"):this.state.set("registering"):this.state.set("inactive");}#e(e){if(this.#r=0,this.#f(e),this.#a())return;let i=this.state();this.repeatRegisterTimer!==null&&(clearTimeout(this.repeatRegisterTimer),this.repeatRegisterTimer=null),i==="registering"&&(this.repeatRegisterTimer=setTimeout(()=>{this.#t.postApiV1RemotecontrolRegisterWait().subscribe({next:t=>this.#e(t),error:t=>this.#i(t)});},5e3)),(i==="connecting"||i==="registered")&&(this.repeatRegisterTimer=setTimeout(()=>{this.#t.getApiV1RemotecontrolStatus().subscribe({next:t=>this.#e(t),error:t=>this.#i(t)});},5e3)),e.IsRegistering&&e.CanEnable&&this.#t.deleteApiV1RemotecontrolRegister().subscribe({next:t=>this.#e(t)});}#i(e){if(this.#s!==null&&(clearTimeout(this.#s),this.#s=null),this.#r>=this.#h){this.state.set("registeringfaulted"),this.#r=0;return}let i=this.#m*Math.pow(2,this.#r);this.#r++,this.#s=setTimeout(()=>{this.#s=null,this.#t.getApiV1RemotecontrolStatus().subscribe({next:t=>this.#e(t),error:t=>this.#i(t)});},i);}refreshRemoteControlStatus(){if(!this.#a()){if(!this.#n.isConnectionMethodSet()){this.pendingRefresh=true;return}this.#t.getApiV1RemotecontrolStatus().subscribe({next:e=>this.#e(e),error:e=>this.#i(e)});}}beginRemoteRegistration(e=false){this.state.set("registering"),this.#t.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:e?this.customRegisterUrl():this.registerUrl()}}).subscribe({next:i=>this.#e(i),error:i=>this.#i(i)});}cancelRemoteRegistration(){this.#t.deleteApiV1RemotecontrolRegister().subscribe({next:e=>this.#e(e),error:e=>this.#i(e)});}enableRemoteControl(){this.#t.postApiV1RemotecontrolEnable().subscribe({next:e=>this.#e(e),error:e=>this.#i(e)});}disableRemoteControl(){this.#t.postApiV1RemotecontrolDisable().subscribe({next:e=>this.#e(e),error:e=>this.#i(e)});}deleteRemoteControl(){let e=this;this.#g.open(h,{data:{title:$localize`Confirm delete`,message:$localize`Are you sure you want to delete the console registration?`,confirmText:$localize`Delete registration`,cancelText:$localize`Cancel`},closed:i=>{i&&e.#t.deleteApiV1RemotecontrolRegistration().subscribe({next:t=>e.#e(t),error:t=>e.#i(t)});}});}openConsole(e="/app/machines",i){let t=this.#u.serverSettings(),y=this.#o.systemInfo(),r="https://app.duplicati.com",c=y?.RemoteControlDashboardUrl??"";if(c.length>0&&(r=c),t&&t["remote-control-dashboard-url"]&&(r=t["remote-control-dashboard-url"]),r=new URL(r).origin+e,i){let v=new URLSearchParams(i);r+=`?${v.toString()}`;}this.#c.open(r,"_blank");}static \u0275fac=function(i){return new(i||l)};static \u0275prov=ee({token:l,factory:l.\u0275fac,providedIn:"root"})};
2
2
  export{C,S};
@@ -1 +1 @@
1
- import v$1 from'./chunk-C7AeY2HY.js';import'./chunk-Bj7EyCHb.js';import'./chunk-8Y8ReLEn.js';import {k}from'./chunk-CIe9Bupz.js';import'./chunk-BmmYJhOf.js';import {c}from'./chunk-DXEgz1tV.js';import'./chunk-DidJB9ig.js';import {T,aX as y,ab as C,a6 as be$1,G as Ge,N as Nt,bd as h,h as hw,be as Fi,bf as Jt,bg as Kn,v,c as N,bh as pi,aJ as ci,aH as m,b2 as m$1,Q as Qi,d as aT,bi as cg,s as jC,$ as $l,n as nC,i as Ig,H as Hg,L as Kg,C as CE,g as cT,y as vg,K as im,aa as Ql,bj as Q,z as za,aZ as ee,l as vT,aM as ob,a1 as dT,O as Od,k as iC,P as Pd,aN as ab,aB as sm,aR as sb,a2 as fT,as as qd,bk as Gd,aP as ql,aQ as Gl,ap as lT}from'./main-3NL5M6JB.js';import {f}from'./chunk-B1c7h-_w.js';import {d}from'./chunk-DDWDcSq2.js';import'./chunk-B6c2NXNy.js';import'./chunk-D1pDZLJ9.js';var U=class r{#e=T(y);#n=T(Q);#i=Ge([]);recentFiles=this.#i.asReadonly();#r=5;#s=Ge(null);etaData=this.#s.asReadonly();#a=null;#t=null;#o=null;recentFileEffect=za(()=>{let i=this.#e.statusData();i&&i.CurrentFilename&&i.CurrentFilesize!==void 0&&this.#c(i.CurrentFilename,i.CurrentFilesize);});#c(i,e){let s=new Date;this.#i.update(c=>c.length>0&&c[0].filename===i?c:[{filename:i,filesize:e,timestamp:s},...c].slice(0,this.#r));}activateView(){this.#a=new Date;let i=this.#e.statusData();i&&i.ProcessedFileCount!==void 0&&i.ProcessedFileSize!==void 0&&(this.#t={files:i.ProcessedFileCount,bytes:i.ProcessedFileSize}),this.#o=setInterval(()=>{this.#l();},1e3);}deactivateView(){this.#a=null,this.#t=null,this.#o&&(clearInterval(this.#o),this.#o=null);}#l(){if(!this.#a||!this.#t)return;let i=this.#e.statusData();if(!i)return;let e=new Date,s=(e.getTime()-this.#a.getTime())/1e3;if(s<5)return;let c=i.ProcessedFileCount||0,P=i.ProcessedFileSize||0,I=c-this.#t.files,k=P-this.#t.bytes,x=I/s,M=k/s,A=(i.TotalFileCount||0)-c,u=(i.TotalFileSize||0)-P,O=null,T=null;x>0&&(O=A/x),M>0&&(T=u/M);let R=null,w="bytes";if(O!==null&&T!==null){let Se=Math.max(O,T);R=new Date(e.getTime()+Se*1e3),w=O>T?"files":"bytes";}else O!==null?(R=new Date(e.getTime()+O*1e3),w="files"):T!==null&&(R=new Date(e.getTime()+T*1e3),w="bytes");this.#s.set({startTime:this.#a,filesProcessedAtStart:this.#t.files,bytesProcessedAtStart:this.#t.bytes,currentFilesPerSecond:x,currentBytesPerSecond:M,estimatedCompletion:R,metric:w});}static \u0275fac=function(e){return new(e||r)};static \u0275prov=ee({token:r,factory:r.\u0275fac,providedIn:"root"})};function xe(r,i){if(r&1&&(Qi(0,"div",42)(1,"span",20),jC(2,"Processing"),$l(),Qi(3,"sh-list",43)(4,"div",44)(5,"sh-icon"),jC(6,"file"),$l(),Qi(7,"div",45)(8,"span",46),jC(9),$l(),Qi(10,"span",47),jC(11),ob(12,"bytes"),$l()()()()()),r&2){let e=iC(2);CE(8),vg("title",e.statusData()?.CurrentFilename),CE(),Ql(" ",e.statusData()?.CurrentFilename," "),CE(2),im(sb(12,3,e.statusData()?.CurrentFilesize));}}function Me(r,i){if(r&1&&(Qi(0,"div",35)(1,"span",46),jC(2),$l(),Qi(3,"span",47),jC(4),ob(5,"bytes"),$l()()),r&2){let e=i.$implicit;CE(),vg("title",e.filename),CE(),im(e.filename),CE(2),im(sb(5,3,e.filesize));}}function Oe(r,i){r&1&&(Qi(0,"div",36),nC(1,2),$l());}function Te(r,i){if(r&1&&(Qi(0,"sh-list")(1,"div",48)(2,"span",20),jC(3,"ETA"),$l(),Qi(4,"span",21),jC(5),ob(6,"date"),Qi(7,"span",49),jC(8),ob(9,"relativeTime"),$l()()(),Qi(10,"div",50)(11,"span",20),jC(12,"Files/s"),$l(),Qi(13,"span",21),jC(14),ob(15,"number"),$l()(),Qi(16,"div",50)(17,"span",20),jC(18,"Upload Speed"),$l(),Qi(19,"span",21),jC(20),ob(21,"bytes"),$l()()()),r&2){let e=iC(2);CE(5),Ql(" ",ab(6,4,e.etaData()?.estimatedCompletion,"mediumTime")," "),CE(3),Ql(" (",sb(9,7,e.etaData()?.estimatedCompletion),") "),CE(6),Ql(" ",ab(15,9,e.etaData()?.currentFilesPerSecond,"1.1-1")," "),CE(6),Ql("",sb(21,12,e.etaData()?.currentBytesPerSecond),"/s");}}function ve(r,i){if(r&1&&(Qi(0,"div",53)(1,"div",54)(2,"span",55),jC(3),$l(),Qi(4,"span",56),jC(5),ob(6,"bytes"),$l()(),Ig(7,"sh-progress-bar",57),$l()),r&2){let e=i.$implicit;CE(2),vg("title",e.BackendPath),CE(),im(e.BackendPath),CE(2),Ql("",sb(6,4,e.BackendSpeed),"/s"),CE(2),vg("value",(e.BackendFileProgress||0)/(e.BackendFileSize||1)*100);}}function he(r,i){if(r&1&&(Qi(0,"div",51)(1,"sh-list"),cg(2,ve,8,6,"div",52),$l()()),r&2){let e=iC(2);CE(2),vg("ngForOf",e.statusData()?.ActiveTransfers);}}function ye(r,i){if(r&1){let e=vT();Qi(0,"sh-card")(1,"div",13)(2,"div",14)(3,"sh-icon",15),jC(4,"clock"),$l(),Qi(5,"h2"),jC(6),$l()()(),Qi(7,"div",26)(8,"div",27)(9,"span",28),jC(10),ob(11,"number"),$l()(),Ig(12,"sh-progress-bar",29),Qi(13,"sh-list")(14,"div",30)(15,"span",20),jC(16,"Files"),$l(),Qi(17,"span",21),jC(18),$l()(),Qi(19,"div",30)(20,"span",20),jC(21,"Size"),$l(),Qi(22,"span",21),jC(23),ob(24,"bytes"),ob(25,"bytes"),$l()()()()(),Qi(26,"sh-card")(27,"div",13)(28,"div",14)(29,"sh-icon",15),jC(30,"file"),$l(),Qi(31,"h3"),jC(32,"Activity"),$l()()(),Qi(33,"div",31),cg(34,xe,13,5,"div",32),Qi(35,"div",33)(36,"span",20),nC(37,1),$l(),Qi(38,"sh-list",34),dT(39,Me,6,5,"div",35,lT),aT(41,Oe,2,0,"div",36),$l()()()(),Qi(42,"sh-card")(43,"div",13)(44,"div",14)(45,"sh-icon",15),jC(46,"gauge"),$l(),Qi(47,"h3"),jC(48,"Performance"),$l()(),Qi(49,"div",37),jC(50),ob(51,"bytes"),$l()(),Qi(52,"div",38),cg(53,Te,22,14,"sh-list",25),Qi(54,"div",39)(55,"button",40),Hg("click",function(){Od(e);let c=iC();return Pd(c.toggleTransfers())}),jC(56),$l(),cg(57,he,3,1,"div",41),$l()()();}if(r&2){let e=iC();CE(6),im(e.statusText()),CE(4),Ql("",ab(11,13,e.progress(),"1.0-0"),"%"),CE(2),vg("value",e.progress()),CE(6),sm("",e.statusData()?.ProcessedFileCount," / ",e.statusData()?.TotalFileCount),CE(5),sm(" ",sb(24,16,e.statusData()?.ProcessedFileSize)," / ",sb(25,18,e.statusData()?.TotalFileSize)," "),CE(11),vg("ngIf",e.statusData()?.CurrentFilename),CE(5),fT(e.recentFiles()),CE(2),cT(e.recentFiles().length===0?41:-1),CE(9),Ql("",sb(51,20,e.statusData()?.BackendSpeed),"/s"),CE(3),vg("ngIf",e.etaData()),CE(3),Ql(" ",e.transfersExpanded()?"Hide Details":"Show Details"," "),CE(),vg("ngIf",e.transfersExpanded());}}function Ee(r,i){if(r&1&&(Qi(0,"sh-card",75)(1,"div",13)(2,"div",14)(3,"sh-icon",15),jC(4,"calendar"),$l(),Qi(5,"h3"),nC(6,7),$l()()(),Qi(7,"div",76)(8,"div",77)(9,"span",78),jC(10),$l(),Qi(11,"div",79)(12,"span",80),jC(13),ob(14,"date"),$l(),Qi(15,"span",81),jC(16),ob(17,"relativeTime"),$l()()(),Qi(18,"sh-icon",82),jC(19,"caret-right"),$l()()()),r&2){let e=iC(2);CE(10),im(e.nextBackup().backup?.Name),CE(3),im(ab(14,3,e.nextBackup().time,"medium")),CE(3),Ql("(",sb(17,6,e.nextBackup().time),")");}}function be(r,i){r&1&&(Qi(0,"span",74),nC(1,8),$l());}function Ne(r,i){if(r&1){let e=vT();Qi(0,"sh-card",58)(1,"div",59)(2,"div",60)(3,"div",61),qd(),Qi(4,"svg",62),Ig(5,"circle",63),$l(),Gd(),Qi(6,"sh-icon",64),nC(7,3),$l()()(),Qi(8,"div",65)(9,"h2"),nC(10,4),$l(),Qi(11,"p",66),nC(12,5),$l()(),Qi(13,"div",67)(14,"button",68),Hg("click",function(){Od(e);let c=iC();return Pd(c.pauseResume())}),Qi(15,"sh-icon"),jC(16),$l(),jC(17),$l()()()(),cg(18,Ee,20,8,"sh-card",69),Qi(19,"sh-card",70)(20,"div",71)(21,"span",20),nC(22,6),$l(),Qi(23,"div",72)(24,"span",73),jC(25),$l(),aT(26,be,2,0,"span",74),$l()()();}if(r&2){let e=iC();CE(14),vg("color",e.clientIsRunning()?"primary":"accent"),CE(2),im(e.clientIsRunning()?"pause":"play"),CE(),Ql(" ",e.clientIsRunning()?"Pause Execution":"Resume Execution"," "),CE(),vg("ngIf",e.nextBackup()),CE(6),Kg("running",e.clientIsRunning()),CE(),im(e.serverState()?.ProgramState),CE(),cT(e.clientIsRunning()?-1:26);}}function Ie(r,i){if(r&1&&(Qi(0,"div",35)(1,"span",46),jC(2),$l(),Qi(3,"span",47),jC(4),ob(5,"bytes"),$l()()),r&2){let e=i.$implicit;CE(),vg("title",e.filename),CE(),im(e.filename),CE(2),im(sb(5,3,e.filesize));}}function ke(r,i){if(r&1&&(Qi(0,"sh-card",83)(1,"div",13)(2,"div",14)(3,"sh-icon",15),jC(4,"clock-counter-clockwise"),$l(),Qi(5,"h3"),nC(6,9),$l()()(),Qi(7,"sh-list"),cg(8,Ie,6,5,"div",84),$l()()),r&2){let e=iC();CE(8),vg("ngForOf",e.recentFiles());}}function Ae(r,i){if(r&1&&(Qi(0,"div",19)(1,"span",20),jC(2,"Next Task:"),$l(),Qi(3,"div",21)(4,"div"),jC(5),$l(),Qi(6,"div",49),jC(7),ob(8,"date"),ob(9,"relativeTime"),$l()()()),r&2){let e=iC();CE(5),im(e.nextBackup().backup?.Name),CE(2),sm(" ",ab(8,3,e.nextBackup().time,"medium")," (",sb(9,6,e.nextBackup().time),") ");}}function Re(r,i){if(r&1){let e=vT();ql(0),Qi(1,"button",85),Hg("click",function(){Od(e);let c=iC();return Pd(c.stop())}),Qi(2,"sh-icon"),jC(3,"stop"),$l(),jC(4," Stop "),$l(),Qi(5,"button",85),Hg("click",function(){Od(e);let c=iC();return Pd(c.abort())}),Qi(6,"sh-icon"),jC(7,"x-circle"),$l(),jC(8," Abort "),$l(),Gl();}}var J=class r{#e=T(y);#n=T(U);#i=T(C);#r=T(be$1);statusData=this.#e.statusData;serverState=this.#e.serverState;recentFiles=this.#n.recentFiles;etaData=this.#n.etaData;transfersExpanded=Ge(false);clientIsRunning=this.#e.clientIsRunning;statusText=Nt(()=>{let i=this.statusData()?.Phase;return i?h[i]||i:""});progress=Nt(()=>{let i=this.statusData();return i?(i.OverallProgress||0)*100:0});nextBackup=Nt(()=>({backup:this.serverState()?.ProposedSchedule?.[0]?.backup,time:this.serverState()?.ProposedSchedule?.[0]?.Item2}));ngOnInit(){this.#n.activateView();}ngOnDestroy(){this.#n.deactivateView();}toggleTransfers(){this.transfersExpanded.update(i=>!i);}isTaskRunning(){return !!this.statusData()?.TaskID}taskStartTime(){return this.etaData()?.startTime}currentBackupId(){return this.statusData()?.BackupID}pauseResume(){if(this.clientIsRunning()){this.#r.open(k,{maxWidth:"550px",width:"100%"});return}this.#e.pauseResume().subscribe();}stop(){let i=this.statusData()?.TaskID;i&&this.#i.postApiV1TaskByTaskidStop({taskid:i}).subscribe();}abort(){let i=this.statusData()?.TaskID;i&&this.#i.postApiV1TaskByTaskidAbort({taskid:i}).subscribe();}static \u0275fac=function(e){return new(e||r)};static \u0275cmp=hw({type:r,selectors:[["app-status"]],decls:29,vars:12,consts:()=>{let i;i=$localize`Live Logs`;let e;e=$localize`Recently Processed`;let s;s=$localize`No recent files`;let c;c=$localize`check-bold`;let P;P=$localize`System Ready`;let I;I=$localize`Waiting for the next scheduled backup task.`;let k;k=$localize`Server State`;let x;x=$localize`Next Scheduled Task`;let M;M=$localize`Backups are currently paused`;let A;return A=$localize`Recent Activity`,[i,e,s,c,P,I,k,x,M,A,[1,"status-page"],["class","activity-card",4,"ngIf"],[1,"logs-card"],[1,"card-header"],[1,"header-titl-group"],[1,"header-icon"],[1,"logs-content"],[3,"polling","whenFilter","backupIdFilter"],[1,"server-status-section"],[1,"status-row"],[1,"label"],[1,"value"],["class","status-row",4,"ngIf"],[1,"actions"],["shButton","",3,"click"],[4,"ngIf"],[1,"progress-content"],[1,"percentage-display"],[1,"percentage-value"],[3,"value"],["item","",1,"stat-item"],[1,"files-content"],["class","current-file-section",4,"ngIf"],[1,"recent-files-section"],[1,"recent-files-list"],["item","",1,"file-item"],["item","",1,"empty-state"],[1,"aggregate-speed"],[1,"performance-content"],[1,"transfers-section"],["shButton","","size","small",1,"toggle-btn","ghost",3,"click"],["class","transfer-details",4,"ngIf"],[1,"current-file-section"],[1,"current-file-list"],["item","",1,"file-item","current"],[1,"file-details"],[1,"filename",3,"title"],[1,"filesize"],["item","",1,"eta-item"],[1,"sub-text"],["item","",1,"metric-item"],[1,"transfer-details"],["class","transfer-item","item","",4,"ngFor","ngForOf"],["item","",1,"transfer-item"],[1,"transfer-header"],[1,"path",3,"title"],[1,"speed"],[1,"mini-progress",3,"value"],[1,"idle-hero-card"],[1,"idle-content"],[1,"status-visual"],[1,"complete-status"],[1,"border-svg"],["cx","50","cy","50","r","45",1,"border-circle"],[1,"status-icon"],[1,"status-info"],[1,"status-description"],[1,"idle-actions"],["shButton","",3,"click","color"],["class","next-task-hero",4,"ngIf"],[1,"server-state-card"],[1,"state-content"],[1,"state-line"],[1,"status-badge"],[1,"warning-text"],[1,"next-task-hero"],[1,"next-task-content"],[1,"task-main"],[1,"task-name"],[1,"task-time-group"],[1,"task-time"],[1,"task-relative"],[1,"chevron"],[1,"activity-card"],["class","file-item","item","",4,"ngFor","ngForOf"],["shButton","","color","warn",3,"click"]]},template:function(e,s){e&1&&(Qi(0,"div",10),aT(1,ye,58,22)(2,Ne,27,8),cg(3,ke,9,1,"sh-card",11),Qi(4,"sh-card",12)(5,"div",13)(6,"div",14)(7,"sh-icon",15),jC(8,"list"),$l(),Qi(9,"h3"),nC(10,0),$l()()(),Qi(11,"div",16),Ig(12,"app-logs-live",17),$l()(),Qi(13,"sh-card")(14,"div",18)(15,"h3"),jC(16,"Server Status"),$l(),Qi(17,"div",19)(18,"span",20),jC(19,"State:"),$l(),Qi(20,"span",21),jC(21),$l()(),cg(22,Ae,10,8,"div",22),Qi(23,"div",23)(24,"button",24),Hg("click",function(){return s.pauseResume()}),Qi(25,"sh-icon"),jC(26),$l(),jC(27),$l(),cg(28,Re,9,0,"ng-container",25),$l()()()()),e&2&&(Kg("idle",!s.isTaskRunning()),CE(),cT(s.isTaskRunning()?1:2),CE(2),vg("ngIf",!s.isTaskRunning()&&s.recentFiles().length>0),CE(9),vg("polling",s.isTaskRunning())("whenFilter",s.taskStartTime()?.getTime())("backupIdFilter",s.currentBackupId()),CE(9),im(s.serverState()?.ProgramState),CE(),vg("ngIf",s.nextBackup()),CE(4),im(s.clientIsRunning()?"pause":"play_arrow"),CE(),Ql(" ",s.clientIsRunning()?"Pause":"Resume"," "),CE(),vg("ngIf",s.isTaskRunning()));},dependencies:[Fi,Jt,Kn,f,d,v,N,v$1,c,pi,ci,m,m$1],styles:["[_nghost-%COMP%]{display:block;padding:24px;max-width:1400px;margin:0 auto}.status-page[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr;gap:24px}@media(min-width:768px){.status-page[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}}@media(min-width:1200px){.status-page[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}}@media(min-width:1200px){.status-page[_ngcontent-%COMP%] .logs-card[_ngcontent-%COMP%], .status-page.idle[_ngcontent-%COMP%] .idle-hero-card[_ngcontent-%COMP%]{grid-column:span 2}.status-page.idle[_ngcontent-%COMP%] .next-task-hero[_ngcontent-%COMP%], .status-page.idle[_ngcontent-%COMP%] .server-state-card[_ngcontent-%COMP%]{grid-column:3}.status-page.idle[_ngcontent-%COMP%] .activity-card[_ngcontent-%COMP%], .status-page.idle[_ngcontent-%COMP%] .logs-card[_ngcontent-%COMP%]{grid-column:1/-1}}sh-card[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column;--sh-card-padding: 24px}.card-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.card-header[_ngcontent-%COMP%] .header-titl-group[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.card-header[_ngcontent-%COMP%] .header-titl-group[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{color:var(--primary-color);font-size:24px}.card-header[_ngcontent-%COMP%] .header-titl-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .card-header[_ngcontent-%COMP%] .header-titl-group[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;font-size:1.1rem;font-weight:600;color:var(--text-primary)}.progress-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:20px}.progress-content[_ngcontent-%COMP%] .percentage-display[_ngcontent-%COMP%]{text-align:center}.progress-content[_ngcontent-%COMP%] .percentage-display[_ngcontent-%COMP%] .percentage-value[_ngcontent-%COMP%]{font-size:3rem;font-weight:800;color:var(--primary-color);line-height:1}.progress-content[_ngcontent-%COMP%] sh-progress-bar[_ngcontent-%COMP%]{height:8px;border-radius:4px;--sh-progress-bar-track-color: var(--bg-secondary)}.progress-content[_ngcontent-%COMP%] .stat-item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%}.progress-content[_ngcontent-%COMP%] .stat-item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:.9rem}.progress-content[_ngcontent-%COMP%] .stat-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{font-weight:600}.files-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}.files-content[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-size:.75rem;text-transform:uppercase;color:var(--text-secondary);font-weight:600;margin-bottom:4px;display:block;padding-left:12px}.files-content[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%}.files-content[_ngcontent-%COMP%] .file-item.current[_ngcontent-%COMP%]{gap:12px;justify-content:flex-start}.files-content[_ngcontent-%COMP%] .file-item.current[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{color:var(--primary-color)}.files-content[_ngcontent-%COMP%] .file-item.current[_ngcontent-%COMP%] .file-details[_ngcontent-%COMP%]{display:flex;flex-direction:column;overflow:hidden}.files-content[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%] .filename[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:12px;font-size:.9rem;font-weight:500;flex:1}.files-content[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%] .filesize[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:.85rem;font-variant-numeric:tabular-nums;white-space:nowrap}.files-content[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%]{color:var(--text-secondary);font-style:italic;text-align:center;width:100%}.performance-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}.performance-content[_ngcontent-%COMP%] .aggregate-speed[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:700;color:var(--text-primary);font-variant-numeric:tabular-nums}.performance-content[_ngcontent-%COMP%] .eta-item[_ngcontent-%COMP%], .performance-content[_ngcontent-%COMP%] .metric-item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%}.performance-content[_ngcontent-%COMP%] .eta-item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .performance-content[_ngcontent-%COMP%] .metric-item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:.9rem}.performance-content[_ngcontent-%COMP%] .eta-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%], .performance-content[_ngcontent-%COMP%] .metric-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{font-weight:600;font-variant-numeric:tabular-nums}.performance-content[_ngcontent-%COMP%] .eta-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%] .sub-text[_ngcontent-%COMP%], .performance-content[_ngcontent-%COMP%] .metric-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%] .sub-text[_ngcontent-%COMP%]{color:var(--text-secondary);font-weight:400;font-size:.85rem;margin-left:4px}.performance-content[_ngcontent-%COMP%] .transfers-section[_ngcontent-%COMP%] .toggle-btn[_ngcontent-%COMP%]{width:100%;margin-bottom:12px}.performance-content[_ngcontent-%COMP%] .transfers-section[_ngcontent-%COMP%] .transfer-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;gap:4px}.performance-content[_ngcontent-%COMP%] .transfers-section[_ngcontent-%COMP%] .transfer-item[_ngcontent-%COMP%] .transfer-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;font-size:.85rem}.performance-content[_ngcontent-%COMP%] .transfers-section[_ngcontent-%COMP%] .transfer-item[_ngcontent-%COMP%] .transfer-header[_ngcontent-%COMP%] .path[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:12px}.performance-content[_ngcontent-%COMP%] .transfers-section[_ngcontent-%COMP%] .transfer-item[_ngcontent-%COMP%] .transfer-header[_ngcontent-%COMP%] .speed[_ngcontent-%COMP%]{color:var(--text-secondary);font-variant-numeric:tabular-nums}.performance-content[_ngcontent-%COMP%] .transfers-section[_ngcontent-%COMP%] .transfer-item[_ngcontent-%COMP%] .mini-progress[_ngcontent-%COMP%]{height:4px}.logs-content[_ngcontent-%COMP%] app-logs-live[_ngcontent-%COMP%]{height:350px;display:block}.status-badge[_ngcontent-%COMP%]{padding:4px 12px;border-radius:12px;background:var(--bg-secondary);color:var(--text-secondary);font-size:.8rem;font-weight:500;text-transform:uppercase}.status-badge.running[_ngcontent-%COMP%]{background:rgba(var(--primary-rgb),.1);color:var(--primary-color)}.actions-grid[_ngcontent-%COMP%]{margin-top:auto;display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:12px}.actions-grid[_ngcontent-%COMP%] .action-btn[_ngcontent-%COMP%]{width:100%;justify-content:center}.idle-hero-card[_ngcontent-%COMP%] .idle-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:32px 0;gap:32px}@media(min-width:768px){.idle-hero-card[_ngcontent-%COMP%] .idle-content[_ngcontent-%COMP%]{flex-direction:row;text-align:left;justify-content:space-around;padding:48px 0}}.idle-hero-card[_ngcontent-%COMP%] .idle-content[_ngcontent-%COMP%] .status-visual[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.idle-hero-card[_ngcontent-%COMP%] .idle-content[_ngcontent-%COMP%] .status-info[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:2rem;font-weight:700;margin-bottom:8px;color:var(--text-primary)}.idle-hero-card[_ngcontent-%COMP%] .idle-content[_ngcontent-%COMP%] .status-info[_ngcontent-%COMP%] .status-description[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:1.1rem;max-width:300px}.idle-hero-card[_ngcontent-%COMP%] .idle-content[_ngcontent-%COMP%] .idle-actions[_ngcontent-%COMP%]{display:flex;align-items:center}.idle-hero-card[_ngcontent-%COMP%] .idle-content[_ngcontent-%COMP%] .idle-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding-left:32px;padding-right:32px}.complete-status[_ngcontent-%COMP%]{position:relative;width:120px;height:120px;display:flex;justify-content:center;align-items:center;color:var(--primary-color)}.complete-status[_ngcontent-%COMP%] .status-icon[_ngcontent-%COMP%]{font-size:48px;opacity:0;animation:_ngcontent-%COMP%_reveal-icon .2s linear forwards;animation-delay:1s}.border-svg[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%}.border-circle[_ngcontent-%COMP%]{fill:none;stroke:var(--primary-color);stroke-width:5px;stroke-dasharray:282.74;stroke-dashoffset:282.74;animation:_ngcontent-%COMP%_draw-border 1.2s linear forwards}@keyframes _ngcontent-%COMP%_draw-border{to{stroke-dashoffset:0}}@keyframes _ngcontent-%COMP%_reveal-icon{to{opacity:1}}.next-task-hero[_ngcontent-%COMP%] .next-task-content[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:12px 0}.next-task-hero[_ngcontent-%COMP%] .next-task-content[_ngcontent-%COMP%] .task-main[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}.next-task-hero[_ngcontent-%COMP%] .next-task-content[_ngcontent-%COMP%] .task-main[_ngcontent-%COMP%] .task-name[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:700;color:var(--primary-color)}.next-task-hero[_ngcontent-%COMP%] .next-task-content[_ngcontent-%COMP%] .task-main[_ngcontent-%COMP%] .task-time-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;color:var(--text-secondary);font-size:.95rem}.next-task-hero[_ngcontent-%COMP%] .next-task-content[_ngcontent-%COMP%] .chevron[_ngcontent-%COMP%]{color:var(--text-secondary);opacity:.5}.server-state-card[_ngcontent-%COMP%] .state-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}.server-state-card[_ngcontent-%COMP%] .state-content[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-size:.75rem;text-transform:uppercase;color:var(--text-secondary);font-weight:600}.server-state-card[_ngcontent-%COMP%] .state-content[_ngcontent-%COMP%] .state-line[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.server-state-card[_ngcontent-%COMP%] .state-content[_ngcontent-%COMP%] .state-line[_ngcontent-%COMP%] .warning-text[_ngcontent-%COMP%]{font-size:.85rem;color:var(--error-color);font-weight:500}"]})};export{J as default};
1
+ import v$1 from'./chunk-DmwtL4h3.js';import'./chunk-D0qGkLVr.js';import'./chunk-xwdrpTfz.js';import {k}from'./chunk-Du0Hd0t6.js';import'./chunk-BFquKzMb.js';import {c}from'./chunk-Dyq6iPbF.js';import'./chunk-Cv4o9u3S.js';import {T,aX as y,ab as C,a6 as be$1,G as Ge,N as Nt,bd as h,h as hw,be as Fi,bf as Jt,bg as Kn,v,c as N,bh as pi,aJ as ci,aH as m,b2 as m$1,Q as Qi,d as aT,bi as cg,s as jC,$ as $l,n as nC,i as Ig,H as Hg,L as Kg,C as CE,g as cT,y as vg,K as im,aa as Ql,bj as Q,z as za,aZ as ee,l as vT,aM as ob,a1 as dT,O as Od,k as iC,P as Pd,aN as ab,aB as sm,aR as sb,a2 as fT,as as qd,bk as Gd,aP as ql,aQ as Gl,ap as lT}from'./main-XKLDSNLY.js';import {f}from'./chunk-CTH9uShX.js';import {d}from'./chunk-BnFO-7ok.js';import'./chunk-BDhLEYas.js';import'./chunk-BaknLOqq.js';var U=class r{#e=T(y);#n=T(Q);#i=Ge([]);recentFiles=this.#i.asReadonly();#r=5;#s=Ge(null);etaData=this.#s.asReadonly();#a=null;#t=null;#o=null;recentFileEffect=za(()=>{let i=this.#e.statusData();i&&i.CurrentFilename&&i.CurrentFilesize!==void 0&&this.#c(i.CurrentFilename,i.CurrentFilesize);});#c(i,e){let s=new Date;this.#i.update(c=>c.length>0&&c[0].filename===i?c:[{filename:i,filesize:e,timestamp:s},...c].slice(0,this.#r));}activateView(){this.#a=new Date;let i=this.#e.statusData();i&&i.ProcessedFileCount!==void 0&&i.ProcessedFileSize!==void 0&&(this.#t={files:i.ProcessedFileCount,bytes:i.ProcessedFileSize}),this.#o=setInterval(()=>{this.#l();},1e3);}deactivateView(){this.#a=null,this.#t=null,this.#o&&(clearInterval(this.#o),this.#o=null);}#l(){if(!this.#a||!this.#t)return;let i=this.#e.statusData();if(!i)return;let e=new Date,s=(e.getTime()-this.#a.getTime())/1e3;if(s<5)return;let c=i.ProcessedFileCount||0,P=i.ProcessedFileSize||0,I=c-this.#t.files,k=P-this.#t.bytes,x=I/s,M=k/s,A=(i.TotalFileCount||0)-c,u=(i.TotalFileSize||0)-P,O=null,T=null;x>0&&(O=A/x),M>0&&(T=u/M);let R=null,w="bytes";if(O!==null&&T!==null){let Se=Math.max(O,T);R=new Date(e.getTime()+Se*1e3),w=O>T?"files":"bytes";}else O!==null?(R=new Date(e.getTime()+O*1e3),w="files"):T!==null&&(R=new Date(e.getTime()+T*1e3),w="bytes");this.#s.set({startTime:this.#a,filesProcessedAtStart:this.#t.files,bytesProcessedAtStart:this.#t.bytes,currentFilesPerSecond:x,currentBytesPerSecond:M,estimatedCompletion:R,metric:w});}static \u0275fac=function(e){return new(e||r)};static \u0275prov=ee({token:r,factory:r.\u0275fac,providedIn:"root"})};function xe(r,i){if(r&1&&(Qi(0,"div",42)(1,"span",20),jC(2,"Processing"),$l(),Qi(3,"sh-list",43)(4,"div",44)(5,"sh-icon"),jC(6,"file"),$l(),Qi(7,"div",45)(8,"span",46),jC(9),$l(),Qi(10,"span",47),jC(11),ob(12,"bytes"),$l()()()()()),r&2){let e=iC(2);CE(8),vg("title",e.statusData()?.CurrentFilename),CE(),Ql(" ",e.statusData()?.CurrentFilename," "),CE(2),im(sb(12,3,e.statusData()?.CurrentFilesize));}}function Me(r,i){if(r&1&&(Qi(0,"div",35)(1,"span",46),jC(2),$l(),Qi(3,"span",47),jC(4),ob(5,"bytes"),$l()()),r&2){let e=i.$implicit;CE(),vg("title",e.filename),CE(),im(e.filename),CE(2),im(sb(5,3,e.filesize));}}function Oe(r,i){r&1&&(Qi(0,"div",36),nC(1,2),$l());}function Te(r,i){if(r&1&&(Qi(0,"sh-list")(1,"div",48)(2,"span",20),jC(3,"ETA"),$l(),Qi(4,"span",21),jC(5),ob(6,"date"),Qi(7,"span",49),jC(8),ob(9,"relativeTime"),$l()()(),Qi(10,"div",50)(11,"span",20),jC(12,"Files/s"),$l(),Qi(13,"span",21),jC(14),ob(15,"number"),$l()(),Qi(16,"div",50)(17,"span",20),jC(18,"Upload Speed"),$l(),Qi(19,"span",21),jC(20),ob(21,"bytes"),$l()()()),r&2){let e=iC(2);CE(5),Ql(" ",ab(6,4,e.etaData()?.estimatedCompletion,"mediumTime")," "),CE(3),Ql(" (",sb(9,7,e.etaData()?.estimatedCompletion),") "),CE(6),Ql(" ",ab(15,9,e.etaData()?.currentFilesPerSecond,"1.1-1")," "),CE(6),Ql("",sb(21,12,e.etaData()?.currentBytesPerSecond),"/s");}}function ve(r,i){if(r&1&&(Qi(0,"div",53)(1,"div",54)(2,"span",55),jC(3),$l(),Qi(4,"span",56),jC(5),ob(6,"bytes"),$l()(),Ig(7,"sh-progress-bar",57),$l()),r&2){let e=i.$implicit;CE(2),vg("title",e.BackendPath),CE(),im(e.BackendPath),CE(2),Ql("",sb(6,4,e.BackendSpeed),"/s"),CE(2),vg("value",(e.BackendFileProgress||0)/(e.BackendFileSize||1)*100);}}function he(r,i){if(r&1&&(Qi(0,"div",51)(1,"sh-list"),cg(2,ve,8,6,"div",52),$l()()),r&2){let e=iC(2);CE(2),vg("ngForOf",e.statusData()?.ActiveTransfers);}}function ye(r,i){if(r&1){let e=vT();Qi(0,"sh-card")(1,"div",13)(2,"div",14)(3,"sh-icon",15),jC(4,"clock"),$l(),Qi(5,"h2"),jC(6),$l()()(),Qi(7,"div",26)(8,"div",27)(9,"span",28),jC(10),ob(11,"number"),$l()(),Ig(12,"sh-progress-bar",29),Qi(13,"sh-list")(14,"div",30)(15,"span",20),jC(16,"Files"),$l(),Qi(17,"span",21),jC(18),$l()(),Qi(19,"div",30)(20,"span",20),jC(21,"Size"),$l(),Qi(22,"span",21),jC(23),ob(24,"bytes"),ob(25,"bytes"),$l()()()()(),Qi(26,"sh-card")(27,"div",13)(28,"div",14)(29,"sh-icon",15),jC(30,"file"),$l(),Qi(31,"h3"),jC(32,"Activity"),$l()()(),Qi(33,"div",31),cg(34,xe,13,5,"div",32),Qi(35,"div",33)(36,"span",20),nC(37,1),$l(),Qi(38,"sh-list",34),dT(39,Me,6,5,"div",35,lT),aT(41,Oe,2,0,"div",36),$l()()()(),Qi(42,"sh-card")(43,"div",13)(44,"div",14)(45,"sh-icon",15),jC(46,"gauge"),$l(),Qi(47,"h3"),jC(48,"Performance"),$l()(),Qi(49,"div",37),jC(50),ob(51,"bytes"),$l()(),Qi(52,"div",38),cg(53,Te,22,14,"sh-list",25),Qi(54,"div",39)(55,"button",40),Hg("click",function(){Od(e);let c=iC();return Pd(c.toggleTransfers())}),jC(56),$l(),cg(57,he,3,1,"div",41),$l()()();}if(r&2){let e=iC();CE(6),im(e.statusText()),CE(4),Ql("",ab(11,13,e.progress(),"1.0-0"),"%"),CE(2),vg("value",e.progress()),CE(6),sm("",e.statusData()?.ProcessedFileCount," / ",e.statusData()?.TotalFileCount),CE(5),sm(" ",sb(24,16,e.statusData()?.ProcessedFileSize)," / ",sb(25,18,e.statusData()?.TotalFileSize)," "),CE(11),vg("ngIf",e.statusData()?.CurrentFilename),CE(5),fT(e.recentFiles()),CE(2),cT(e.recentFiles().length===0?41:-1),CE(9),Ql("",sb(51,20,e.statusData()?.BackendSpeed),"/s"),CE(3),vg("ngIf",e.etaData()),CE(3),Ql(" ",e.transfersExpanded()?"Hide Details":"Show Details"," "),CE(),vg("ngIf",e.transfersExpanded());}}function Ee(r,i){if(r&1&&(Qi(0,"sh-card",75)(1,"div",13)(2,"div",14)(3,"sh-icon",15),jC(4,"calendar"),$l(),Qi(5,"h3"),nC(6,7),$l()()(),Qi(7,"div",76)(8,"div",77)(9,"span",78),jC(10),$l(),Qi(11,"div",79)(12,"span",80),jC(13),ob(14,"date"),$l(),Qi(15,"span",81),jC(16),ob(17,"relativeTime"),$l()()(),Qi(18,"sh-icon",82),jC(19,"caret-right"),$l()()()),r&2){let e=iC(2);CE(10),im(e.nextBackup().backup?.Name),CE(3),im(ab(14,3,e.nextBackup().time,"medium")),CE(3),Ql("(",sb(17,6,e.nextBackup().time),")");}}function be(r,i){r&1&&(Qi(0,"span",74),nC(1,8),$l());}function Ne(r,i){if(r&1){let e=vT();Qi(0,"sh-card",58)(1,"div",59)(2,"div",60)(3,"div",61),qd(),Qi(4,"svg",62),Ig(5,"circle",63),$l(),Gd(),Qi(6,"sh-icon",64),nC(7,3),$l()()(),Qi(8,"div",65)(9,"h2"),nC(10,4),$l(),Qi(11,"p",66),nC(12,5),$l()(),Qi(13,"div",67)(14,"button",68),Hg("click",function(){Od(e);let c=iC();return Pd(c.pauseResume())}),Qi(15,"sh-icon"),jC(16),$l(),jC(17),$l()()()(),cg(18,Ee,20,8,"sh-card",69),Qi(19,"sh-card",70)(20,"div",71)(21,"span",20),nC(22,6),$l(),Qi(23,"div",72)(24,"span",73),jC(25),$l(),aT(26,be,2,0,"span",74),$l()()();}if(r&2){let e=iC();CE(14),vg("color",e.clientIsRunning()?"primary":"accent"),CE(2),im(e.clientIsRunning()?"pause":"play"),CE(),Ql(" ",e.clientIsRunning()?"Pause Execution":"Resume Execution"," "),CE(),vg("ngIf",e.nextBackup()),CE(6),Kg("running",e.clientIsRunning()),CE(),im(e.serverState()?.ProgramState),CE(),cT(e.clientIsRunning()?-1:26);}}function Ie(r,i){if(r&1&&(Qi(0,"div",35)(1,"span",46),jC(2),$l(),Qi(3,"span",47),jC(4),ob(5,"bytes"),$l()()),r&2){let e=i.$implicit;CE(),vg("title",e.filename),CE(),im(e.filename),CE(2),im(sb(5,3,e.filesize));}}function ke(r,i){if(r&1&&(Qi(0,"sh-card",83)(1,"div",13)(2,"div",14)(3,"sh-icon",15),jC(4,"clock-counter-clockwise"),$l(),Qi(5,"h3"),nC(6,9),$l()()(),Qi(7,"sh-list"),cg(8,Ie,6,5,"div",84),$l()()),r&2){let e=iC();CE(8),vg("ngForOf",e.recentFiles());}}function Ae(r,i){if(r&1&&(Qi(0,"div",19)(1,"span",20),jC(2,"Next Task:"),$l(),Qi(3,"div",21)(4,"div"),jC(5),$l(),Qi(6,"div",49),jC(7),ob(8,"date"),ob(9,"relativeTime"),$l()()()),r&2){let e=iC();CE(5),im(e.nextBackup().backup?.Name),CE(2),sm(" ",ab(8,3,e.nextBackup().time,"medium")," (",sb(9,6,e.nextBackup().time),") ");}}function Re(r,i){if(r&1){let e=vT();ql(0),Qi(1,"button",85),Hg("click",function(){Od(e);let c=iC();return Pd(c.stop())}),Qi(2,"sh-icon"),jC(3,"stop"),$l(),jC(4," Stop "),$l(),Qi(5,"button",85),Hg("click",function(){Od(e);let c=iC();return Pd(c.abort())}),Qi(6,"sh-icon"),jC(7,"x-circle"),$l(),jC(8," Abort "),$l(),Gl();}}var J=class r{#e=T(y);#n=T(U);#i=T(C);#r=T(be$1);statusData=this.#e.statusData;serverState=this.#e.serverState;recentFiles=this.#n.recentFiles;etaData=this.#n.etaData;transfersExpanded=Ge(false);clientIsRunning=this.#e.clientIsRunning;statusText=Nt(()=>{let i=this.statusData()?.Phase;return i?h[i]||i:""});progress=Nt(()=>{let i=this.statusData();return i?(i.OverallProgress||0)*100:0});nextBackup=Nt(()=>({backup:this.serverState()?.ProposedSchedule?.[0]?.backup,time:this.serverState()?.ProposedSchedule?.[0]?.Item2}));ngOnInit(){this.#n.activateView();}ngOnDestroy(){this.#n.deactivateView();}toggleTransfers(){this.transfersExpanded.update(i=>!i);}isTaskRunning(){return !!this.statusData()?.TaskID}taskStartTime(){return this.etaData()?.startTime}currentBackupId(){return this.statusData()?.BackupID}pauseResume(){if(this.clientIsRunning()){this.#r.open(k,{maxWidth:"550px",width:"100%"});return}this.#e.pauseResume().subscribe();}stop(){let i=this.statusData()?.TaskID;i&&this.#i.postApiV1TaskByTaskidStop({taskid:i}).subscribe();}abort(){let i=this.statusData()?.TaskID;i&&this.#i.postApiV1TaskByTaskidAbort({taskid:i}).subscribe();}static \u0275fac=function(e){return new(e||r)};static \u0275cmp=hw({type:r,selectors:[["app-status"]],decls:29,vars:12,consts:()=>{let i;i=$localize`Live Logs`;let e;e=$localize`Recently Processed`;let s;s=$localize`No recent files`;let c;c=$localize`check-bold`;let P;P=$localize`System Ready`;let I;I=$localize`Waiting for the next scheduled backup task.`;let k;k=$localize`Server State`;let x;x=$localize`Next Scheduled Task`;let M;M=$localize`Backups are currently paused`;let A;return A=$localize`Recent Activity`,[i,e,s,c,P,I,k,x,M,A,[1,"status-page"],["class","activity-card",4,"ngIf"],[1,"logs-card"],[1,"card-header"],[1,"header-titl-group"],[1,"header-icon"],[1,"logs-content"],[3,"polling","whenFilter","backupIdFilter"],[1,"server-status-section"],[1,"status-row"],[1,"label"],[1,"value"],["class","status-row",4,"ngIf"],[1,"actions"],["shButton","",3,"click"],[4,"ngIf"],[1,"progress-content"],[1,"percentage-display"],[1,"percentage-value"],[3,"value"],["item","",1,"stat-item"],[1,"files-content"],["class","current-file-section",4,"ngIf"],[1,"recent-files-section"],[1,"recent-files-list"],["item","",1,"file-item"],["item","",1,"empty-state"],[1,"aggregate-speed"],[1,"performance-content"],[1,"transfers-section"],["shButton","","size","small",1,"toggle-btn","ghost",3,"click"],["class","transfer-details",4,"ngIf"],[1,"current-file-section"],[1,"current-file-list"],["item","",1,"file-item","current"],[1,"file-details"],[1,"filename",3,"title"],[1,"filesize"],["item","",1,"eta-item"],[1,"sub-text"],["item","",1,"metric-item"],[1,"transfer-details"],["class","transfer-item","item","",4,"ngFor","ngForOf"],["item","",1,"transfer-item"],[1,"transfer-header"],[1,"path",3,"title"],[1,"speed"],[1,"mini-progress",3,"value"],[1,"idle-hero-card"],[1,"idle-content"],[1,"status-visual"],[1,"complete-status"],[1,"border-svg"],["cx","50","cy","50","r","45",1,"border-circle"],[1,"status-icon"],[1,"status-info"],[1,"status-description"],[1,"idle-actions"],["shButton","",3,"click","color"],["class","next-task-hero",4,"ngIf"],[1,"server-state-card"],[1,"state-content"],[1,"state-line"],[1,"status-badge"],[1,"warning-text"],[1,"next-task-hero"],[1,"next-task-content"],[1,"task-main"],[1,"task-name"],[1,"task-time-group"],[1,"task-time"],[1,"task-relative"],[1,"chevron"],[1,"activity-card"],["class","file-item","item","",4,"ngFor","ngForOf"],["shButton","","color","warn",3,"click"]]},template:function(e,s){e&1&&(Qi(0,"div",10),aT(1,ye,58,22)(2,Ne,27,8),cg(3,ke,9,1,"sh-card",11),Qi(4,"sh-card",12)(5,"div",13)(6,"div",14)(7,"sh-icon",15),jC(8,"list"),$l(),Qi(9,"h3"),nC(10,0),$l()()(),Qi(11,"div",16),Ig(12,"app-logs-live",17),$l()(),Qi(13,"sh-card")(14,"div",18)(15,"h3"),jC(16,"Server Status"),$l(),Qi(17,"div",19)(18,"span",20),jC(19,"State:"),$l(),Qi(20,"span",21),jC(21),$l()(),cg(22,Ae,10,8,"div",22),Qi(23,"div",23)(24,"button",24),Hg("click",function(){return s.pauseResume()}),Qi(25,"sh-icon"),jC(26),$l(),jC(27),$l(),cg(28,Re,9,0,"ng-container",25),$l()()()()),e&2&&(Kg("idle",!s.isTaskRunning()),CE(),cT(s.isTaskRunning()?1:2),CE(2),vg("ngIf",!s.isTaskRunning()&&s.recentFiles().length>0),CE(9),vg("polling",s.isTaskRunning())("whenFilter",s.taskStartTime()?.getTime())("backupIdFilter",s.currentBackupId()),CE(9),im(s.serverState()?.ProgramState),CE(),vg("ngIf",s.nextBackup()),CE(4),im(s.clientIsRunning()?"pause":"play_arrow"),CE(),Ql(" ",s.clientIsRunning()?"Pause":"Resume"," "),CE(),vg("ngIf",s.isTaskRunning()));},dependencies:[Fi,Jt,Kn,f,d,v,N,v$1,c,pi,ci,m,m$1],styles:["[_nghost-%COMP%]{display:block;padding:24px;max-width:1400px;margin:0 auto}.status-page[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr;gap:24px}@media(min-width:768px){.status-page[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}}@media(min-width:1200px){.status-page[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}}@media(min-width:1200px){.status-page[_ngcontent-%COMP%] .logs-card[_ngcontent-%COMP%], .status-page.idle[_ngcontent-%COMP%] .idle-hero-card[_ngcontent-%COMP%]{grid-column:span 2}.status-page.idle[_ngcontent-%COMP%] .next-task-hero[_ngcontent-%COMP%], .status-page.idle[_ngcontent-%COMP%] .server-state-card[_ngcontent-%COMP%]{grid-column:3}.status-page.idle[_ngcontent-%COMP%] .activity-card[_ngcontent-%COMP%], .status-page.idle[_ngcontent-%COMP%] .logs-card[_ngcontent-%COMP%]{grid-column:1/-1}}sh-card[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column;--sh-card-padding: 24px}.card-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.card-header[_ngcontent-%COMP%] .header-titl-group[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.card-header[_ngcontent-%COMP%] .header-titl-group[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{color:var(--primary-color);font-size:24px}.card-header[_ngcontent-%COMP%] .header-titl-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .card-header[_ngcontent-%COMP%] .header-titl-group[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;font-size:1.1rem;font-weight:600;color:var(--text-primary)}.progress-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:20px}.progress-content[_ngcontent-%COMP%] .percentage-display[_ngcontent-%COMP%]{text-align:center}.progress-content[_ngcontent-%COMP%] .percentage-display[_ngcontent-%COMP%] .percentage-value[_ngcontent-%COMP%]{font-size:3rem;font-weight:800;color:var(--primary-color);line-height:1}.progress-content[_ngcontent-%COMP%] sh-progress-bar[_ngcontent-%COMP%]{height:8px;border-radius:4px;--sh-progress-bar-track-color: var(--bg-secondary)}.progress-content[_ngcontent-%COMP%] .stat-item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%}.progress-content[_ngcontent-%COMP%] .stat-item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:.9rem}.progress-content[_ngcontent-%COMP%] .stat-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{font-weight:600}.files-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}.files-content[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-size:.75rem;text-transform:uppercase;color:var(--text-secondary);font-weight:600;margin-bottom:4px;display:block;padding-left:12px}.files-content[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%}.files-content[_ngcontent-%COMP%] .file-item.current[_ngcontent-%COMP%]{gap:12px;justify-content:flex-start}.files-content[_ngcontent-%COMP%] .file-item.current[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{color:var(--primary-color)}.files-content[_ngcontent-%COMP%] .file-item.current[_ngcontent-%COMP%] .file-details[_ngcontent-%COMP%]{display:flex;flex-direction:column;overflow:hidden}.files-content[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%] .filename[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:12px;font-size:.9rem;font-weight:500;flex:1}.files-content[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%] .filesize[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:.85rem;font-variant-numeric:tabular-nums;white-space:nowrap}.files-content[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%]{color:var(--text-secondary);font-style:italic;text-align:center;width:100%}.performance-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}.performance-content[_ngcontent-%COMP%] .aggregate-speed[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:700;color:var(--text-primary);font-variant-numeric:tabular-nums}.performance-content[_ngcontent-%COMP%] .eta-item[_ngcontent-%COMP%], .performance-content[_ngcontent-%COMP%] .metric-item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%}.performance-content[_ngcontent-%COMP%] .eta-item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .performance-content[_ngcontent-%COMP%] .metric-item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:.9rem}.performance-content[_ngcontent-%COMP%] .eta-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%], .performance-content[_ngcontent-%COMP%] .metric-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{font-weight:600;font-variant-numeric:tabular-nums}.performance-content[_ngcontent-%COMP%] .eta-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%] .sub-text[_ngcontent-%COMP%], .performance-content[_ngcontent-%COMP%] .metric-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%] .sub-text[_ngcontent-%COMP%]{color:var(--text-secondary);font-weight:400;font-size:.85rem;margin-left:4px}.performance-content[_ngcontent-%COMP%] .transfers-section[_ngcontent-%COMP%] .toggle-btn[_ngcontent-%COMP%]{width:100%;margin-bottom:12px}.performance-content[_ngcontent-%COMP%] .transfers-section[_ngcontent-%COMP%] .transfer-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;gap:4px}.performance-content[_ngcontent-%COMP%] .transfers-section[_ngcontent-%COMP%] .transfer-item[_ngcontent-%COMP%] .transfer-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;font-size:.85rem}.performance-content[_ngcontent-%COMP%] .transfers-section[_ngcontent-%COMP%] .transfer-item[_ngcontent-%COMP%] .transfer-header[_ngcontent-%COMP%] .path[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:12px}.performance-content[_ngcontent-%COMP%] .transfers-section[_ngcontent-%COMP%] .transfer-item[_ngcontent-%COMP%] .transfer-header[_ngcontent-%COMP%] .speed[_ngcontent-%COMP%]{color:var(--text-secondary);font-variant-numeric:tabular-nums}.performance-content[_ngcontent-%COMP%] .transfers-section[_ngcontent-%COMP%] .transfer-item[_ngcontent-%COMP%] .mini-progress[_ngcontent-%COMP%]{height:4px}.logs-content[_ngcontent-%COMP%] app-logs-live[_ngcontent-%COMP%]{height:350px;display:block}.status-badge[_ngcontent-%COMP%]{padding:4px 12px;border-radius:12px;background:var(--bg-secondary);color:var(--text-secondary);font-size:.8rem;font-weight:500;text-transform:uppercase}.status-badge.running[_ngcontent-%COMP%]{background:rgba(var(--primary-rgb),.1);color:var(--primary-color)}.actions-grid[_ngcontent-%COMP%]{margin-top:auto;display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:12px}.actions-grid[_ngcontent-%COMP%] .action-btn[_ngcontent-%COMP%]{width:100%;justify-content:center}.idle-hero-card[_ngcontent-%COMP%] .idle-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:32px 0;gap:32px}@media(min-width:768px){.idle-hero-card[_ngcontent-%COMP%] .idle-content[_ngcontent-%COMP%]{flex-direction:row;text-align:left;justify-content:space-around;padding:48px 0}}.idle-hero-card[_ngcontent-%COMP%] .idle-content[_ngcontent-%COMP%] .status-visual[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.idle-hero-card[_ngcontent-%COMP%] .idle-content[_ngcontent-%COMP%] .status-info[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:2rem;font-weight:700;margin-bottom:8px;color:var(--text-primary)}.idle-hero-card[_ngcontent-%COMP%] .idle-content[_ngcontent-%COMP%] .status-info[_ngcontent-%COMP%] .status-description[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:1.1rem;max-width:300px}.idle-hero-card[_ngcontent-%COMP%] .idle-content[_ngcontent-%COMP%] .idle-actions[_ngcontent-%COMP%]{display:flex;align-items:center}.idle-hero-card[_ngcontent-%COMP%] .idle-content[_ngcontent-%COMP%] .idle-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding-left:32px;padding-right:32px}.complete-status[_ngcontent-%COMP%]{position:relative;width:120px;height:120px;display:flex;justify-content:center;align-items:center;color:var(--primary-color)}.complete-status[_ngcontent-%COMP%] .status-icon[_ngcontent-%COMP%]{font-size:48px;opacity:0;animation:_ngcontent-%COMP%_reveal-icon .2s linear forwards;animation-delay:1s}.border-svg[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%}.border-circle[_ngcontent-%COMP%]{fill:none;stroke:var(--primary-color);stroke-width:5px;stroke-dasharray:282.74;stroke-dashoffset:282.74;animation:_ngcontent-%COMP%_draw-border 1.2s linear forwards}@keyframes _ngcontent-%COMP%_draw-border{to{stroke-dashoffset:0}}@keyframes _ngcontent-%COMP%_reveal-icon{to{opacity:1}}.next-task-hero[_ngcontent-%COMP%] .next-task-content[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:12px 0}.next-task-hero[_ngcontent-%COMP%] .next-task-content[_ngcontent-%COMP%] .task-main[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}.next-task-hero[_ngcontent-%COMP%] .next-task-content[_ngcontent-%COMP%] .task-main[_ngcontent-%COMP%] .task-name[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:700;color:var(--primary-color)}.next-task-hero[_ngcontent-%COMP%] .next-task-content[_ngcontent-%COMP%] .task-main[_ngcontent-%COMP%] .task-time-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;color:var(--text-secondary);font-size:.95rem}.next-task-hero[_ngcontent-%COMP%] .next-task-content[_ngcontent-%COMP%] .chevron[_ngcontent-%COMP%]{color:var(--text-secondary);opacity:.5}.server-state-card[_ngcontent-%COMP%] .state-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}.server-state-card[_ngcontent-%COMP%] .state-content[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-size:.75rem;text-transform:uppercase;color:var(--text-secondary);font-weight:600}.server-state-card[_ngcontent-%COMP%] .state-content[_ngcontent-%COMP%] .state-line[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.server-state-card[_ngcontent-%COMP%] .state-content[_ngcontent-%COMP%] .state-line[_ngcontent-%COMP%] .warning-text[_ngcontent-%COMP%]{font-size:.85rem;color:var(--error-color);font-weight:500}"]})};export{J as default};