@duplicati/ngclient 0.0.229 → 0.0.230

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 (110) hide show
  1. package/{chunk-B9zNFJSv.js → chunk-3RXp81pP.js} +1 -1
  2. package/{chunk-D_JCqKo8.js → chunk-B0RBkC1E.js} +1 -1
  3. package/{chunk-BAZ5npJw.js → chunk-B2TXzbpy.js} +1 -1
  4. package/{chunk-BjkwnDTL.js → chunk-B728v9oc.js} +1 -1
  5. package/{chunk-w_Hs_Uxi.js → chunk-BB1pOOUx.js} +1 -1
  6. package/{chunk-dScOwyAU.js → chunk-BD9-OWSe.js} +1 -1
  7. package/{chunk-CwB_t7g-.js → chunk-BIL3nR4_.js} +1 -1
  8. package/{chunk-DDVdXEVe.js → chunk-BIOMsSHI.js} +1 -1
  9. package/{chunk-cLFxUFjv.js → chunk-BOOAIFTC.js} +1 -1
  10. package/{chunk-DiZeSQXj.js → chunk-BYJA6sbi.js} +1 -1
  11. package/{chunk-B12Syddi.js → chunk-BaGYaLxZ.js} +1 -1
  12. package/{chunk-CByrJpDb.js → chunk-Bceym75m.js} +1 -1
  13. package/{chunk-BtzP4vdU.js → chunk-BfZh4DNq.js} +1 -1
  14. package/{chunk-D4UZC_u0.js → chunk-BjAIXsAS.js} +1 -1
  15. package/{chunk-C1t4wbdG.js → chunk-BlSN71kd.js} +1 -1
  16. package/{chunk-D2XTQURr.js → chunk-Bq7wRTmy.js} +1 -1
  17. package/chunk-ByhuT4BS.js +14 -0
  18. package/{chunk-GVxWY6X-.js → chunk-BzIY4AaX.js} +1 -1
  19. package/{chunk-SycscfJp.js → chunk-C-NgIZiF.js} +1 -1
  20. package/{chunk-Cs0rlpWi.js → chunk-C1kucB1O.js} +1 -1
  21. package/{chunk-DaIpTiYw.js → chunk-C4kBXz3C.js} +1 -1
  22. package/{chunk-BcpsSgKo.js → chunk-C6QX7znk.js} +1 -1
  23. package/{chunk-D28lTX0k.js → chunk-C7pjkqKB.js} +1 -1
  24. package/{chunk-C11i_gv7.js → chunk-CBgNjPex.js} +1 -1
  25. package/{chunk-BDXLL1lt.js → chunk-CEyp0Xmg.js} +1 -1
  26. package/chunk-CFne6FXR.js +1 -0
  27. package/{chunk-DVgkAgur.js → chunk-CGn_EA_5.js} +1 -1
  28. package/{chunk-C_JveZJH.js → chunk-CJ0GoaW1.js} +1 -1
  29. package/{chunk-DQwpGI_E.js → chunk-CJ1mxauG.js} +1 -1
  30. package/chunk-CMJCX33P.js +1 -0
  31. package/{chunk-DQW8lSiz.js → chunk-CRAg6SRo.js} +1 -1
  32. package/{chunk-CBdr-6_u.js → chunk-CT9ziigM.js} +1 -1
  33. package/{chunk-bgWe6t7y.js → chunk-CWAvlP_u.js} +1 -1
  34. package/{chunk-ObToq7vh.js → chunk-CYQJGwsB.js} +1 -1
  35. package/{chunk-DVlpMN2Q.js → chunk-Ca-HIRNP.js} +1 -1
  36. package/{chunk-MvQwR7nW.js → chunk-Ca1C9pJ0.js} +1 -1
  37. package/chunk-CegwkGVu.js +3 -0
  38. package/chunk-Cgbi9MZq.js +2 -0
  39. package/{chunk-BYHopERA.js → chunk-CgcnOoRq.js} +1 -1
  40. package/chunk-Ck9c9Juw.js +1 -0
  41. package/{chunk-DC8QqmzV.js → chunk-CnRCpl-v.js} +1 -1
  42. package/{chunk-BoCnrrB4.js → chunk-CrgyDps4.js} +1 -1
  43. package/{chunk-Bc4gFy5W.js → chunk-D2g44FyO.js} +2 -2
  44. package/{chunk-JA7rUsYF.js → chunk-D2g5mSLr.js} +1 -1
  45. package/{chunk-BZqhgAZ-.js → chunk-D5lj-fQk.js} +1 -1
  46. package/{chunk-0sb5_LpD.js → chunk-D6aNT_wo.js} +1 -1
  47. package/{chunk-M21GJPzH.js → chunk-DDBflo2l.js} +3 -3
  48. package/{chunk-DV2SIgNN.js → chunk-DD_QfWih.js} +1 -1
  49. package/{chunk-CA-ER0DL.js → chunk-DFEb6rgg.js} +1 -1
  50. package/{chunk-D1wHRltX.js → chunk-DN6f5jXR.js} +1 -1
  51. package/{chunk-DJbAxHpK.js → chunk-DPNAj9Vc.js} +1 -1
  52. package/{chunk-DMJycFPC.js → chunk-DWkdK0Ib.js} +1 -1
  53. package/{chunk-Byb051F6.js → chunk-DaGzYsVs.js} +1 -1
  54. package/{chunk-BFH9sFEg.js → chunk-Df7q8ewK.js} +1 -1
  55. package/{chunk-Bf1diO1u.js → chunk-Dgns65Zu.js} +1 -1
  56. package/{chunk-B6vxBiK4.js → chunk-Dh6x3lXP.js} +1 -1
  57. package/{chunk-Drc5kcUX.js → chunk-DipTNkHN.js} +1 -1
  58. package/{chunk-2OH1SKyQ.js → chunk-Dj3xknEh.js} +1 -1
  59. package/{chunk-SKxVK_pD.js → chunk-DkdGEw1e.js} +1 -1
  60. package/{chunk-CfoJuTJX.js → chunk-DmKJmG9z.js} +1 -1
  61. package/{chunk-BZYVgHEz.js → chunk-DtA6Mvdt.js} +1 -1
  62. package/chunk-DtdFhFa9.js +1 -0
  63. package/{chunk-C9EdrQe6.js → chunk-DuIUmwWN.js} +1 -1
  64. package/{chunk-DDo7wKQT.js → chunk-DwKPz2Gn.js} +1 -1
  65. package/chunk-DwMhABnQ.js +2 -0
  66. package/{chunk-B-fklW6A.js → chunk-Fw6nFDZK.js} +2 -2
  67. package/{chunk-B3yuN2OH.js → chunk-HWQc1Hoa.js} +1 -1
  68. package/{chunk-CdKfNiwm.js → chunk-I0R6Ty-p.js} +1 -1
  69. package/{chunk-BIeNnIyg.js → chunk-LL0IHZns.js} +1 -1
  70. package/{chunk-C2bnZ62D.js → chunk-OFYkgZA1.js} +1 -1
  71. package/{chunk-COgNe44h.js → chunk-OLi7f6y7.js} +1 -1
  72. package/{chunk-CMmgPgiU.js → chunk-PVmXLw9b.js} +1 -1
  73. package/{chunk-CRU3lYvk.js → chunk-RQ_MoiOh.js} +1 -1
  74. package/chunk-Zo-grJt3.js +1 -0
  75. package/{chunk-DP9SoPGV.js → chunk-dmyIQdVx.js} +1 -1
  76. package/{chunk-wyer8fjS.js → chunk-glhLCQrb.js} +1 -1
  77. package/{chunk-B2fqvpov.js → chunk-khm9J_G0.js} +1 -1
  78. package/{chunk-D48AStVy.js → chunk-wyNyzSXi.js} +1 -1
  79. package/{chunk-D_A6A07f.js → chunk-yF6CJHRg.js} +1 -1
  80. package/index.html +1 -1
  81. package/locale/dayjs/ko.js +45 -0
  82. package/locale/dayjs/tr.js +39 -0
  83. package/locale/messages.de.json +168 -12
  84. package/locale/messages.de_CH.json +162 -6
  85. package/locale/messages.de_DE.json +162 -6
  86. package/locale/messages.en.json +1 -0
  87. package/locale/messages.fr.json +175 -8
  88. package/locale/messages.fr_CA.json +175 -8
  89. package/locale/messages.fr_FR.json +175 -8
  90. package/locale/messages.it.json +79 -5
  91. package/locale/messages.it_IT.json +79 -5
  92. package/locale/messages.ja.json +198 -15
  93. package/locale/messages.ja_JP.json +198 -15
  94. package/locale/messages.json +1 -0
  95. package/locale/messages.ko.json +776 -0
  96. package/locale/messages.nl_BE.json +174 -7
  97. package/locale/messages.nl_NL.json +174 -7
  98. package/locale/messages.tr.json +943 -0
  99. package/main-KFKZO6SJ.js +16 -0
  100. package/package.json +1 -1
  101. package/chunk-A5DpxPOI.js +0 -1
  102. package/chunk-BJ6LKfIL.js +0 -2
  103. package/chunk-CI78bAye.js +0 -2
  104. package/chunk-CQ8rm_d9.js +0 -3
  105. package/chunk-CUxq_s_t.js +0 -14
  106. package/chunk-CXEImxhE.js +0 -1
  107. package/chunk-CgYrHQGO.js +0 -1
  108. package/chunk-D0u1cyeL.js +0 -1
  109. package/chunk-RKTSBnYB.js +0 -1
  110. package/main-PXGZLKMN.js +0 -16
@@ -1,3 +1,3 @@
1
- import {i as ie,h}from'./chunk-DVgkAgur.js';import {c}from'./chunk-D48AStVy.js';import {m}from'./chunk-B9zNFJSv.js';import {c as c$1}from'./chunk-COgNe44h.js';import {T,a5 as g,g as g$1,a6 as be,a7 as l,M,m as m$1,e as ee,N as Nt$1,G as Ga,d as dw,Z as lr,_ as _t$1,a8 as To,f as N,v,Q as Qi,s as sm,j as mg,F as Fg,o as oT,H as Hl,O as Og,P as Pg,q as PC,h as bC,w as im,z as gg,D as DE,i as iT,a3 as QC,a9 as UC,aa as Gl,t as tC,l as HC,ab as C$1,ac as h1,U as Ue,C as Bu,u as ue,X as XT,p as DD,y as TD,I as Qg,ad as br,ae as Jr,b as g1,af as m1,B as y1,L as oC,R as Bl,Y as iC,W as $l,ag as zg,$ as $g,K as lC,ah as fe,ai as m$2,aj as l$1,ak as cm,al as BC,k as gT,S as Sd,n as nC,x as xd,r as rt$1,am as ii,V as yg,an as jg,ao as $C,a1 as cT,ap as sT,a2 as lT,E as nm}from'./main-PXGZLKMN.js';import {C}from'./chunk-MvQwR7nW.js';import {O}from'./chunk-SycscfJp.js';import'./chunk-DQW8lSiz.js';import {w}from'./chunk-DMJycFPC.js';import {F as Fe}from'./chunk-C9EdrQe6.js';import {B as Bn,Z as Ze,R as Rn,J as Jt,j as jn,m as me,G as Gn}from'./chunk-Drc5kcUX.js';import {a as at$1}from'./chunk-B-fklW6A.js';import'./chunk-D28lTX0k.js';var nt=["dragImageElement"],it=[[["","sidenav",""]],[["","sidenav-closed-topbar",""]],"*"],ot=["[sidenav]","[sidenav-closed-topbar]","*"];function at(o,i){o&1&&yg(0,"div",1,0);}function st(o,i){if(o&1){let e=gT();Bl(0,"div",7),jg("drop",function(n){Sd(e);let r=nC();return xd(r.drop(n))})("dragenter",function(){Sd(e);let n=nC();return xd(n.dragEnter())})("dragleave",function(){Sd(e);let n=nC();return xd(n.dragLeave())}),$l();}}function rt(o,i){if(o&1){let e=gT();Bl(0,"div",8),jg("dragstart",function(n){Sd(e);let r=nC();return xd(r.dragStart(n))})("dragend",function(n){Sd(e);let r=nC();return xd(r.dragEnd(n))})("drag",function(n){Sd(e);let r=nC();return xd(r.drag(n))})("touchstart",function(n){Sd(e);let r=nC();return xd(r.touchStart(n))})("touchmove",function(n){Sd(e);let r=nC();return xd(r.touchMove(n))})("touchend",function(n){Sd(e);let r=nC();return xd(r.touchEnd(n))})("touchcancel",function(n){Sd(e);let r=nC();return xd(r.touchCancel(n))}),$l();}}function lt(o){let i=T(Jr),e=T(rt$1),t=Ue(false),n=typeof MutationObserver<"u"?new MutationObserver(r=>{r.forEach(N=>{N.type==="attributes"&&N.attributeName==="class"&&t.set(i.nativeElement.classList.contains(o));});}):void 0;return ii(i.nativeElement,()=>{n&&n.observe(i.nativeElement,{attributes:!0}),t.set(i.nativeElement.classList.contains(o));}),e.onDestroy(()=>{n&&n.disconnect();}),t}var Ke=(()=>{class o{constructor(){this.#e=T(br),this.#i=T(Jr),this.openWidth=280,this.openWidthTreshold=this.openWidth*.5,this.disableDrag=g1(false),this.isOpen=m1(false),this.isOverlay=lt("overlay"),this.#n=this.#i.nativeElement.parentElement,this.#t=this.#n.getBoundingClientRect&&this.#n.getBoundingClientRect(),this.dragImageElement=y1.required("dragImageElement"),this.dragIsEnding=Ue(false),this.dragIsOnScreen=Ue(true),this.isDragging=Ue(false),this.dragPositionX=Ue(0),this.dragActualPositionX=Nt$1(()=>{let e=this.dragPositionX(),t=280,n=100,N=t/2,A=N-n/2,O=N+n/2;if(e>O){let D=e-O,f=(t-O)*(1-Math.exp(-8e-3*D));return O+f}else if(e<A){let D=A-e,f=A*(1-Math.exp(-8e-3*D));return A-f}return e}),this.draggingStyle=Nt$1(()=>!this.isOverlay()||this.disableDrag()?null:this.isDragging()?`translateX(${this.dragActualPositionX()}px)`:this.isOpen()?`translateX(${this.openWidth}px)`:"translateX(0px)"),this.draggingEffect=Ga(()=>{this.disableDrag()||(this.isDragging()?this.#e.body.classList.add("dragging"):this.#e.body.classList.remove("dragging"));}),this.scrollLockEffect=Ga(e=>{let t=this.isOverlay(),n=this.isOpen();t&&n&&(this.#e.body.classList.add("sh-sidenav-open"),this.#e.documentElement.classList.add("sh-sidenav-open")),e(()=>{this.#e.body.classList.remove("sh-sidenav-open"),this.#e.documentElement.classList.remove("sh-sidenav-open");});});}#e;#i;#n;#t;drop(e){e.stopPropagation(),this.#o(e.clientX-this.#t.left);}#o(e){this.isDragging.set(false),e>=this.openWidthTreshold?this.isOpen.set(true):this.isOpen.set(false);}dragEnd(e){e.clientX-this.#t.left<0&&this.#o(0),e.clientX-this.#t.left>this.openWidthTreshold&&this.#o(this.openWidthTreshold);}dragEnter(){this.dragIsOnScreen.set(true);}dragLeave(){this.dragIsOnScreen.set(false);}dragStart(e){e.stopPropagation(),this.#t=this.#n.getBoundingClientRect(),this.isDragging.set(true);}drag(e){e.stopPropagation(),this.isDragging()&&(e.clientX!==0||e.clientY!==0)&&this.dragPositionX.set(e.clientX-this.#t.left);}touchStart(e){e.stopPropagation(),this.isDragging.set(true),this.#t=this.#n.getBoundingClientRect(),this.dragPositionX.set(0);}touchMove(e){e.stopPropagation(),this.isDragging()&&this.dragPositionX.set(e.touches[0].clientX-this.#t.left);}touchEnd(e){e.stopPropagation(),this.#o(e.changedTouches[0].clientX-this.#t.left);}touchCancel(e){e.stopPropagation(),this.isDragging.set(false);}static{this.\u0275fac=function(t){return new(t||o)};}static{this.\u0275cmp=dw({type:o,selectors:[["sh-sidenav"]],viewQuery:function(t,n){t&1&&$g(n.dragImageElement,nt,5),t&2&&lC();},hostVars:6,hostBindings:function(t,n){t&2&&Qg("open",n.isOpen())("closed",!n.isOpen())("is-dragging",n.isDragging());},inputs:{disableDrag:[1,"disableDrag"],isOpen:[1,"isOpen"]},outputs:{isOpen:"isOpenChange"},ngContentSelectors:ot,decls:10,vars:5,consts:[["dragImageElement",""],[1,"drag-image"],[1,"dropping-surface"],["role","navigation",1,"sidenav"],[1,"main-wrap"],["draggable","true",1,"dragable"],[1,"closed-topbar"],[1,"dropping-surface",3,"drop","dragenter","dragleave"],["draggable","true",1,"dragable",3,"dragstart","dragend","drag","touchstart","touchmove","touchend","touchcancel"]],template:function(t,n){t&1&&(oC(it),oT(0,at,2,0,"div",1),oT(1,st,1,0,"div",2),Bl(2,"div",3),iC(3),$l(),Bl(4,"div",4),oT(5,rt,1,0,"div",5),Bl(6,"div",6),iC(7,1),$l(),Bl(8,"main"),iC(9,2),$l()()),t&2&&(iT(n.isOverlay()&&!n.disableDrag()?0:-1),DE(),iT(n.isOverlay()&&n.isDragging()?1:-1),DE(3),zg("transform",!n.disableDrag()&&n.draggingStyle()),DE(),iT(n.isOverlay()&&!n.disableDrag()?5:-1));},styles:[`html.sh-sidenav-open,body.sh-sidenav-open{overflow:hidden}sh-sidenav{--sidenav-width: 17.5rem;--sidenav-wrap-w: 100vw;--sidenav-wrap-h: 100vh;display:flex;width:var(--sidenav-wrap-w);height:var(--sidenav-wrap-h)}sh-sidenav .sidenav{width:var(--sidenav-width);transition:width .2s linear;height:100%;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:auto;overscroll-behavior:contain}sh-sidenav .main-wrap{position:relative;z-index:1;flex:1 0;display:block;height:100%;overflow:auto;padding:1rem 1rem 1rem 0;background-color:var(--base-1)}sh-sidenav main{overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:auto;border:var(--border-10);border-radius:var(--shape-3);height:calc(100vh - 2rem);box-shadow:var(--box-shadow-35)}sh-sidenav .closed-topbar{display:none;min-height:3.75rem;background-color:var(--base-1);align-items:center;justify-content:space-between;padding:0 1rem;border-bottom:var(--border-10);z-index:10000;position:relative;touch-action:none;overscroll-behavior:none}sh-sidenav .dragable{display:none}sh-sidenav .drag-image{display:none}sh-sidenav.simple{border-radius:0}sh-sidenav.simple .main-wrap{padding:0}sh-sidenav.simple .main-wrap main{height:100vh;border-radius:0;border-width:0 0 0 1px}sh-sidenav.simple.closed{--sidenav-width: 6.25rem}sh-sidenav.overlay{overflow:hidden}sh-sidenav.overlay .drag-image{display:block;width:.25rem;height:40%;background-color:var(--base-2);border-radius:.125rem;box-shadow:none;position:fixed;top:0;left:-9999px}sh-sidenav.overlay .sidenav{position:fixed;z-index:0}sh-sidenav.overlay .dragable{position:absolute;top:0;left:0;bottom:0;z-index:9999;width:50px;padding-right:30px;display:flex;align-items:center;justify-content:center;cursor:grab}sh-sidenav.overlay .dragable:active{cursor:grabbing}sh-sidenav.overlay .dragable:after{content:"";display:block;width:.25rem;height:40%;background-color:var(--base-2);border-radius:.125rem}sh-sidenav.overlay .dragable:hover:after{background-color:var(--base-4)}sh-sidenav.overlay .dropping-surface{position:fixed;inset:0;z-index:100000}sh-sidenav.overlay .main-wrap{z-index:1;padding:0;display:flex;height:100vh;position:relative;flex-direction:column;transform:translate(0);transition:transform .2s linear;overflow:hidden;overscroll-behavior:none}sh-sidenav.overlay.is-dragging{-webkit-user-select:none;user-select:none;cursor:grabbing}sh-sidenav.overlay.is-dragging .main-wrap{transition:none}sh-sidenav.overlay.is-dragging>*{cursor:grabbing}sh-sidenav.overlay.is-dragging .dragable{cursor:grabbing}sh-sidenav.overlay.open .main-wrap{transform:translate(var(--sidenav-width));box-shadow:var(--box-shadow-10);border-left:var(--border-10)}sh-sidenav.overlay.open main{overflow-y:hidden}sh-sidenav.overlay .closed-topbar{display:flex}sh-sidenav.overlay .closed-topbar:empty{display:none}sh-sidenav.overlay main{border:0;box-shadow:none;flex:1;height:auto;min-height:0;border-radius:0}
1
+ import {i as ie,h}from'./chunk-CGn_EA_5.js';import {m}from'./chunk-3RXp81pP.js';import {c}from'./chunk-wyNyzSXi.js';import {c as c$1}from'./chunk-OLi7f6y7.js';import {T,a5 as g,g as g$1,a6 as be,a7 as l,M,m as m$1,e as ee,N as Nt$1,G as Ga,d as dw,Z as lr,_ as _t$1,a8 as To,f as N,v,Q as Qi,s as sm,j as mg,F as Fg,o as oT,H as Hl,O as Og,P as Pg,q as PC,h as bC,w as im,z as gg,D as DE,i as iT,a3 as QC,a9 as UC,aa as Gl,t as tC,l as HC,ab as C$1,ac as h1,U as Ue,C as Bu,u as ue,X as XT,p as DD,y as TD,I as Qg,ad as br,ae as Jr,b as g1,af as m1,B as y1,L as oC,R as Bl,Y as iC,W as $l,ag as zg,$ as $g,K as lC,ah as fe,ai as m$2,aj as l$1,ak as cm,al as BC,k as gT,S as Sd,n as nC,x as xd,r as rt$1,am as ii,V as yg,an as jg,ao as $C,a1 as cT,ap as sT,a2 as lT,E as nm}from'./main-KFKZO6SJ.js';import'./chunk-CRAg6SRo.js';import {w}from'./chunk-DWkdK0Ib.js';import {F as Fe}from'./chunk-DuIUmwWN.js';import {B as Bn,Z as Ze,R as Rn,J as Jt,j as jn,m as me,G as Gn}from'./chunk-DipTNkHN.js';import {a as at$1}from'./chunk-Fw6nFDZK.js';import {C}from'./chunk-Ca1C9pJ0.js';import {O}from'./chunk-C-NgIZiF.js';import'./chunk-C7pjkqKB.js';var nt=["dragImageElement"],it=[[["","sidenav",""]],[["","sidenav-closed-topbar",""]],"*"],ot=["[sidenav]","[sidenav-closed-topbar]","*"];function at(o,i){o&1&&yg(0,"div",1,0);}function st(o,i){if(o&1){let e=gT();Bl(0,"div",7),jg("drop",function(n){Sd(e);let r=nC();return xd(r.drop(n))})("dragenter",function(){Sd(e);let n=nC();return xd(n.dragEnter())})("dragleave",function(){Sd(e);let n=nC();return xd(n.dragLeave())}),$l();}}function rt(o,i){if(o&1){let e=gT();Bl(0,"div",8),jg("dragstart",function(n){Sd(e);let r=nC();return xd(r.dragStart(n))})("dragend",function(n){Sd(e);let r=nC();return xd(r.dragEnd(n))})("drag",function(n){Sd(e);let r=nC();return xd(r.drag(n))})("touchstart",function(n){Sd(e);let r=nC();return xd(r.touchStart(n))})("touchmove",function(n){Sd(e);let r=nC();return xd(r.touchMove(n))})("touchend",function(n){Sd(e);let r=nC();return xd(r.touchEnd(n))})("touchcancel",function(n){Sd(e);let r=nC();return xd(r.touchCancel(n))}),$l();}}function lt(o){let i=T(Jr),e=T(rt$1),t=Ue(false),n=typeof MutationObserver<"u"?new MutationObserver(r=>{r.forEach(N=>{N.type==="attributes"&&N.attributeName==="class"&&t.set(i.nativeElement.classList.contains(o));});}):void 0;return ii(i.nativeElement,()=>{n&&n.observe(i.nativeElement,{attributes:!0}),t.set(i.nativeElement.classList.contains(o));}),e.onDestroy(()=>{n&&n.disconnect();}),t}var Ke=(()=>{class o{constructor(){this.#e=T(br),this.#i=T(Jr),this.openWidth=280,this.openWidthTreshold=this.openWidth*.5,this.disableDrag=g1(false),this.isOpen=m1(false),this.isOverlay=lt("overlay"),this.#n=this.#i.nativeElement.parentElement,this.#t=this.#n.getBoundingClientRect&&this.#n.getBoundingClientRect(),this.dragImageElement=y1.required("dragImageElement"),this.dragIsEnding=Ue(false),this.dragIsOnScreen=Ue(true),this.isDragging=Ue(false),this.dragPositionX=Ue(0),this.dragActualPositionX=Nt$1(()=>{let e=this.dragPositionX(),t=280,n=100,N=t/2,A=N-n/2,O=N+n/2;if(e>O){let D=e-O,f=(t-O)*(1-Math.exp(-8e-3*D));return O+f}else if(e<A){let D=A-e,f=A*(1-Math.exp(-8e-3*D));return A-f}return e}),this.draggingStyle=Nt$1(()=>!this.isOverlay()||this.disableDrag()?null:this.isDragging()?`translateX(${this.dragActualPositionX()}px)`:this.isOpen()?`translateX(${this.openWidth}px)`:"translateX(0px)"),this.draggingEffect=Ga(()=>{this.disableDrag()||(this.isDragging()?this.#e.body.classList.add("dragging"):this.#e.body.classList.remove("dragging"));}),this.scrollLockEffect=Ga(e=>{let t=this.isOverlay(),n=this.isOpen();t&&n&&(this.#e.body.classList.add("sh-sidenav-open"),this.#e.documentElement.classList.add("sh-sidenav-open")),e(()=>{this.#e.body.classList.remove("sh-sidenav-open"),this.#e.documentElement.classList.remove("sh-sidenav-open");});});}#e;#i;#n;#t;drop(e){e.stopPropagation(),this.#o(e.clientX-this.#t.left);}#o(e){this.isDragging.set(false),e>=this.openWidthTreshold?this.isOpen.set(true):this.isOpen.set(false);}dragEnd(e){e.clientX-this.#t.left<0&&this.#o(0),e.clientX-this.#t.left>this.openWidthTreshold&&this.#o(this.openWidthTreshold);}dragEnter(){this.dragIsOnScreen.set(true);}dragLeave(){this.dragIsOnScreen.set(false);}dragStart(e){e.stopPropagation(),this.#t=this.#n.getBoundingClientRect(),this.isDragging.set(true);}drag(e){e.stopPropagation(),this.isDragging()&&(e.clientX!==0||e.clientY!==0)&&this.dragPositionX.set(e.clientX-this.#t.left);}touchStart(e){e.stopPropagation(),this.isDragging.set(true),this.#t=this.#n.getBoundingClientRect(),this.dragPositionX.set(0);}touchMove(e){e.stopPropagation(),this.isDragging()&&this.dragPositionX.set(e.touches[0].clientX-this.#t.left);}touchEnd(e){e.stopPropagation(),this.#o(e.changedTouches[0].clientX-this.#t.left);}touchCancel(e){e.stopPropagation(),this.isDragging.set(false);}static{this.\u0275fac=function(t){return new(t||o)};}static{this.\u0275cmp=dw({type:o,selectors:[["sh-sidenav"]],viewQuery:function(t,n){t&1&&$g(n.dragImageElement,nt,5),t&2&&lC();},hostVars:6,hostBindings:function(t,n){t&2&&Qg("open",n.isOpen())("closed",!n.isOpen())("is-dragging",n.isDragging());},inputs:{disableDrag:[1,"disableDrag"],isOpen:[1,"isOpen"]},outputs:{isOpen:"isOpenChange"},ngContentSelectors:ot,decls:10,vars:5,consts:[["dragImageElement",""],[1,"drag-image"],[1,"dropping-surface"],["role","navigation",1,"sidenav"],[1,"main-wrap"],["draggable","true",1,"dragable"],[1,"closed-topbar"],[1,"dropping-surface",3,"drop","dragenter","dragleave"],["draggable","true",1,"dragable",3,"dragstart","dragend","drag","touchstart","touchmove","touchend","touchcancel"]],template:function(t,n){t&1&&(oC(it),oT(0,at,2,0,"div",1),oT(1,st,1,0,"div",2),Bl(2,"div",3),iC(3),$l(),Bl(4,"div",4),oT(5,rt,1,0,"div",5),Bl(6,"div",6),iC(7,1),$l(),Bl(8,"main"),iC(9,2),$l()()),t&2&&(iT(n.isOverlay()&&!n.disableDrag()?0:-1),DE(),iT(n.isOverlay()&&n.isDragging()?1:-1),DE(3),zg("transform",!n.disableDrag()&&n.draggingStyle()),DE(),iT(n.isOverlay()&&!n.disableDrag()?5:-1));},styles:[`html.sh-sidenav-open,body.sh-sidenav-open{overflow:hidden}sh-sidenav{--sidenav-width: 17.5rem;--sidenav-wrap-w: 100vw;--sidenav-wrap-h: 100vh;display:flex;width:var(--sidenav-wrap-w);height:var(--sidenav-wrap-h)}sh-sidenav .sidenav{width:var(--sidenav-width);transition:width .2s linear;height:100%;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:auto;overscroll-behavior:contain}sh-sidenav .main-wrap{position:relative;z-index:1;flex:1 0;display:block;height:100%;overflow:auto;padding:1rem 1rem 1rem 0;background-color:var(--base-1)}sh-sidenav main{overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:auto;border:var(--border-10);border-radius:var(--shape-3);height:calc(100vh - 2rem);box-shadow:var(--box-shadow-35)}sh-sidenav .closed-topbar{display:none;min-height:3.75rem;background-color:var(--base-1);align-items:center;justify-content:space-between;padding:0 1rem;border-bottom:var(--border-10);z-index:10000;position:relative;touch-action:none;overscroll-behavior:none}sh-sidenav .dragable{display:none}sh-sidenav .drag-image{display:none}sh-sidenav.simple{border-radius:0}sh-sidenav.simple .main-wrap{padding:0}sh-sidenav.simple .main-wrap main{height:100vh;border-radius:0;border-width:0 0 0 1px}sh-sidenav.simple.closed{--sidenav-width: 6.25rem}sh-sidenav.overlay{overflow:hidden}sh-sidenav.overlay .drag-image{display:block;width:.25rem;height:40%;background-color:var(--base-2);border-radius:.125rem;box-shadow:none;position:fixed;top:0;left:-9999px}sh-sidenav.overlay .sidenav{position:fixed;z-index:0}sh-sidenav.overlay .dragable{position:absolute;top:0;left:0;bottom:0;z-index:9999;width:50px;padding-right:30px;display:flex;align-items:center;justify-content:center;cursor:grab}sh-sidenav.overlay .dragable:active{cursor:grabbing}sh-sidenav.overlay .dragable:after{content:"";display:block;width:.25rem;height:40%;background-color:var(--base-2);border-radius:.125rem}sh-sidenav.overlay .dragable:hover:after{background-color:var(--base-4)}sh-sidenav.overlay .dropping-surface{position:fixed;inset:0;z-index:100000}sh-sidenav.overlay .main-wrap{z-index:1;padding:0;display:flex;height:100vh;position:relative;flex-direction:column;transform:translate(0);transition:transform .2s linear;overflow:hidden;overscroll-behavior:none}sh-sidenav.overlay.is-dragging{-webkit-user-select:none;user-select:none;cursor:grabbing}sh-sidenav.overlay.is-dragging .main-wrap{transition:none}sh-sidenav.overlay.is-dragging>*{cursor:grabbing}sh-sidenav.overlay.is-dragging .dragable{cursor:grabbing}sh-sidenav.overlay.open .main-wrap{transform:translate(var(--sidenav-width));box-shadow:var(--box-shadow-10);border-left:var(--border-10)}sh-sidenav.overlay.open main{overflow-y:hidden}sh-sidenav.overlay .closed-topbar{display:flex}sh-sidenav.overlay .closed-topbar:empty{display:none}sh-sidenav.overlay main{border:0;box-shadow:none;flex:1;height:auto;min-height:0;border-radius:0}
2
2
  `],encapsulation:2});}}return o})();var _t=["scroller"];function ct(o,i){o&1&&(Qi(0,"sh-icon"),PC(1,"bell-ringing"),Hl());}function dt(o,i){o&1&&(Qi(0,"sh-icon"),PC(1,"bell"),Hl());}function ut(o,i){if(o&1&&mg(0,"app-notification",8),o&2){nC(2);let e=$C(6);gg("index",0)("notification",e.content);}}function gt(o,i){if(o&1&&(Qi(0,"div",11),PC(1),Hl()),o&2){nC(3);let e=$C(6);DE(),Gl(" ",e.content.content," ");}}function pt(o,i){if(o&1&&(Qi(0,"sh-alert")(1,"div",10),PC(2),Hl(),oT(3,gt,2,1,"div",11),Hl()),o&2){nC(2);let e=$C(6);bC(e.content.type||"error"),DE(2),nm(e.content.title),DE(),iT(e.content.content?3:-1);}}function ht(o,i){if(o&1&&(Qi(0,"div",6),oT(1,ut,1,2,"app-notification",8)(2,pt,4,4,"sh-alert",9),Hl()),o&2){nC();let e=$C(6);DE(),iT(e.type==="notification"?1:2);}}function mt(o,i){if(o&1){let e=gT();Qi(0,"div",7)(1,"div",12)(2,"h6",13),Og(3,2),Qi(4,"button",5),Fg("click",function(){Sd(e);let n=nC();return xd(n.toggleNotifications())}),mg(5,"sh-icon"),Hl(),Pg(),Hl(),Qi(6,"div",14,0)(8,"div",15),mg(9,"app-notifications"),Hl()()()();}}function St(o,i){if(o&1&&(Qi(0,"div",20),PC(1),Hl()),o&2){let e=nC().$implicit;DE(),Gl(" ",e.content," ");}}function Ct(o,i){if(o&1){let e=gT();Qi(0,"sh-alert",18,1),Fg("click",function(){let n=Sd(e).$implicit,r=nC(2);return xd(r.deleteAlertByIndex(n.id))}),Qi(2,"div",19),PC(3),Hl(),oT(4,St,2,1,"div",20),Hl();}if(o&2){let e=i.$implicit;bC(e.type),gg("id",e.id),DE(3),nm(e.title),DE(),iT(e.content?4:-1);}}function Tt(o,i){o&1&&(Qi(0,"p",17),XT(1,4),Hl());}function Et(o,i){if(o&1){let e=gT();Qi(0,"div",7)(1,"div",12)(2,"h6",13),Og(3,3),Qi(4,"button",5),Fg("click",function(){Sd(e);let n=nC();return xd(n.toggleAlerts())}),mg(5,"sh-icon"),Hl(),Pg(),Hl(),Qi(6,"div",14,0)(8,"div",15),cT(9,Ct,5,5,"sh-alert",16,sT,false,Tt,2,0,"p",17),Hl()()()();}if(o&2){let e=nC();DE(9),lT(e.alertHistory());}}var et=new jn,J=class o{#e=T(fe);#i=T(l);isSubmitting=Ue(false);messageSent=Ue(false);form=et.group({message:et.control("",[me.required])});notifications=this.#i.notifications;shownMessage=Ue(null);shownMessageInterval=null;alertHistory=this.#e.alertHistory;alertHistoryIsOpen=this.#e.alertHistoryIsOpen;alertHistoryIsHidden=this.#e.alertHistoryIsHidden;numberOfOpenAlerts=Nt$1(()=>this.alertHistory().filter(i=>i.isOpen).length);scroller=y1("scroller");isAlertsOpen=m1(false);isNotificationsOpen=m1(false);previousHistoryCount=Ue(null);previousNotificationsCount=Ue(null);constructor(){Ga(()=>{let i=this.alertHistory(),e=this.notifications();if(e.length===0){this.shownMessage.set(null);return}e.length&&this.previousHistoryCount()!==i.length&&!this.isNotificationsOpen()?(this.shownMessage.set({content:e[0],countDown:3,type:"notification"}),this.previousHistoryCount.set(i.length),this.shownMessageInterval=setInterval(()=>{let t=this.shownMessage();if(t?.countDown===0){this.shownMessage.set(null),this.shownMessageInterval=null;return}t!==null&&this.shownMessage.update(n=>m$2(l$1({},n),{countDown:n.countDown-1}));},1e3)):i.length&&this.previousHistoryCount()!==i.length&&!this.isAlertsOpen()&&(this.shownMessage.set({content:i[0],countDown:3,type:"alert"}),this.previousHistoryCount.set(i.length),this.shownMessageInterval=setInterval(()=>{let t=this.shownMessage();if(t?.countDown===0){this.shownMessage.set(null),this.shownMessageInterval=null;return}t!==null&&this.shownMessage.update(n=>m$2(l$1({},n),{countDown:n.countDown-1}));},1e3));}),Ga(()=>{this.alertHistoryIsOpen(),this.scrollToBottom();});}resetPreviewMessage(){this.shownMessage.set(null),this.shownMessageInterval=null;}toggleAlerts(){this.isAlertsOpen()?this.isAlertsOpen.set(false):(this.isAlertsOpen.set(true),this.isNotificationsOpen.set(false),this.resetPreviewMessage());}toggleNotifications(){this.isNotificationsOpen.set(!this.isNotificationsOpen()),this.isAlertsOpen()&&this.isAlertsOpen.set(false);}deleteAlertByIndex(i){this.#e.removeAlert(i);}scrollToBottom(){this.scroller()&&this.scroller()?.nativeElement&&this.scroller().nativeElement.scrollTo(0,this.scroller().nativeElement.scrollHeight);}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=dw({type:o,selectors:[["app-service-hub"]],viewQuery:function(e,t){e&1&&$g(t.scroller,_t,5),e&2&&lC();},inputs:{isAlertsOpen:[1,"isAlertsOpen"],isNotificationsOpen:[1,"isNotificationsOpen"]},outputs:{isAlertsOpen:"isAlertsOpenChange",isNotificationsOpen:"isNotificationsOpenChange"},decls:10,vars:9,consts:()=>{let i;i=$localize` Notifications ${"\uFFFD#4\uFFFD"}:START_TAG_BUTTON:${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON:x-circle${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_BUTTON:`;let e;e=$localize` Alerts ${"\uFFFD#4\uFFFD"}:START_TAG_BUTTON:${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON:x-circle${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_BUTTON:`;let t;return t=$localize`No alerts yet`,[["scroller",""],["alerts",""],i,e,t,["shButton","",3,"click"],[1,"preview-alert-wrap"],[1,"alert-stream-modal"],[3,"index","notification"],[3,"class"],["ship-alert-title",""],["ship-alert-content",""],[1,"alert-stream-modal-content"],[1,"paragraph-20"],[1,"alert-stream-modal-list-scroller"],[1,"alert-stream-modal-list"],[3,"class","id"],[1,"no-alerts"],[3,"click","id"],["title",""],["content",""]]},template:function(e,t){if(e&1&&(Qi(0,"button",5),Fg("click",function(){return t.toggleAlerts()}),Qi(1,"sh-icon"),PC(2,"info"),Hl()(),Qi(3,"button",5),Fg("click",function(){return t.toggleNotifications()}),oT(4,ct,2,0,"sh-icon")(5,dt,2,0,"sh-icon"),Hl(),cm(6),oT(7,ht,3,1,"div",6),oT(8,mt,10,0,"div",7),oT(9,Et,12,1,"div",7)),e&2){bC(t.alertHistory().length?"error":""),DE(3),bC(t.notifications().length?"error":""),DE(),iT(t.notifications().length?4:5),DE(2);let n=BC(t.shownMessage());DE(),iT(n?7:-1),DE(),iT(t.isNotificationsOpen()?8:-1),DE(),iT(t.isAlertsOpen()?9:-1);}},dependencies:[Gn,ue,N,v,ie,h],styles:["[_nghost-%COMP%]{display:flex;position:fixed;gap:.5rem;bottom:1.5rem;right:1.5rem;z-index:5000}@media only screen and (max-width:768px){[_nghost-%COMP%]{bottom:1rem;right:1rem}}[_nghost-%COMP%] h6[_ngcontent-%COMP%]{margin:0}.preview-alert-wrap[_ngcontent-%COMP%]{position:absolute;bottom:2.6875rem;right:0;display:flex;flex-direction:column;min-width:15.625rem}.helpdesk-modal[_ngcontent-%COMP%]{position:absolute;bottom:2.6875rem;right:0;display:flex;flex-direction:column}@media only screen and (max-width:768px){.helpdesk-modal[_ngcontent-%COMP%]{bottom:2.6875rem}}.helpdesk-modal-content[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;gap:1rem;min-width:20rem;border:1px solid var(--base-4);background-color:var(--base-1);border-radius:var(--shape-2)}.helpdesk-modal-content[_ngcontent-%COMP%] .message-sent[_ngcontent-%COMP%]{padding:0 1rem 1rem;text-wrap:pretty}.helpdesk-modal-content[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{padding:1rem;border-bottom:1px solid var(--base-4);display:flex;align-items:center;justify-content:space-between}.helpdesk-modal-content[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{padding:0 1rem 1rem;display:flex;flex-direction:column;align-items:flex-end;gap:1rem}.helpdesk-modal-content[_ngcontent-%COMP%] form[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{width:100%;text-wrap:pretty}.helpdesk-modal-content[_ngcontent-%COMP%] form[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.alert-stream-modal[_ngcontent-%COMP%]{position:absolute;bottom:2.6875rem;right:0;display:flex;flex-direction:column}@media only screen and (max-width:768px){.alert-stream-modal[_ngcontent-%COMP%]{bottom:2.6875rem}}.alert-stream-modal-list-scroller[_ngcontent-%COMP%]{overflow-y:auto;max-height:18.75rem}.alert-stream-modal-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;padding:1rem;border-radius:var(--shape-2)}.alert-stream-modal-content[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;min-width:20rem;border:1px solid var(--base-4);background-color:var(--base-1);border-radius:var(--shape-2)}.alert-stream-modal-content[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{padding:1rem;border-bottom:1px solid var(--base-4);display:flex;align-items:center;justify-content:space-between}.no-alerts[_ngcontent-%COMP%]{padding:1rem;display:flex;flex-direction:column;gap:1rem;text-align:center}"]})};function ft(o,i){o&1&&(Qi(0,"sh-icon",14),PC(1,"check"),Hl());}function Ft(o,i){o&1&&(Qi(0,"sh-icon",15),PC(1,"prohibit"),Hl());}function At(o,i){if(o&1){let e=gT();Qi(0,"button",20),Fg("click",function(){Sd(e);let n=nC();return xd(n.updatePassphrase())}),XT(1,5),Hl();}if(o&2){let e=nC();Qg("loading",e.isUpdating());}}function Ot(o,i){if(o&1){let e=gT();Qi(0,"button",21),Fg("click",function(){Sd(e);let n=nC();return xd(n.updatePassphrase())}),XT(1,6),Hl();}if(o&2){let e=nC();Qg("loading",e.isUpdating()),gg("disabled",true);}}var K=class o{#e=T(C$1);closed=h1();isUpdating=Ue(false);passphrase=Ue("");repeatPassphrase=Ue("");updatePassphrase(){this.passphrase()===this.repeatPassphrase()&&(this.isUpdating.set(true),this.#e.patchApiV1Serversettings({requestBody:{"server-passphrase":this.passphrase()}}).pipe(Bu(()=>this.isUpdating.set(false))).subscribe({next:()=>this.closed.emit()}));}cancel(){this.isUpdating.set(true),this.#e.patchApiV1Serversettings({requestBody:{"has-asked-for-password-change":"True"}}).pipe(Bu(()=>this.isUpdating.set(false))).subscribe({next:()=>this.closed.emit()});}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=dw({type:o,selectors:[["app-change-passphrase-alert-dialog"]],outputs:{closed:"closed"},decls:23,vars:7,consts:()=>{let i;i=$localize`Enter new password`;let e;e=$localize`Repeat password`;let t;t=$localize`Password have to be filled and have to match`;let n;n=$localize`Change passphrase`;let r;r=$localize` Duplicati needs to be secured with a passphrase and a random passphrase has been generated for you. ${"[\uFFFD#6\uFFFD\uFFFD/#6\uFFFD|\uFFFD#7\uFFFD\uFFFD/#7\uFFFD]"}:LINE_BREAK:${"[\uFFFD#6\uFFFD\uFFFD/#6\uFFFD|\uFFFD#7\uFFFD\uFFFD/#7\uFFFD]"}:LINE_BREAK: If you open Duplicati from the tray icon, you do not need a passphrase, but if you plan to open it from another location you need to set a passphrase you know. Do you want to set a passphrase now? `,r=tC(r);let N;N=$localize`Passphrase`;let A;A=$localize`Repeat passphrase`;let O;O=$localize`Not now thanks`;let D;D=$localize` Yes, update passphrase now `;let E;return E=$localize` Yes, update passphrase now `,[n,r,N,A,O,D,E,["header",""],["content",""],["type","warning"],["for","password"],["type","password","name","password","autocomplete","disabled","placeholder",i,"tabindex","1",3,"ngModelChange","ngModel"],["for","repeatPassword"],["type","password","name","repeatPassword","autocomplete","disabled","placeholder",e,"tabindex","2",3,"ngModelChange","disabled","ngModel"],["suffix","",1,"sh-success"],["suffix",""],["footer",""],["shButton","",3,"click"],["shButton","",1,"raised","primary",3,"loading"],["shButton","","shTooltip",t,1,"raised","primary",3,"loading","disabled"],["shButton","",1,"raised","primary",3,"click"],["shButton","","shTooltip",t,1,"raised","primary",3,"click","disabled"]]},template:function(e,t){e&1&&(Qi(0,"header",7)(1,"h3"),XT(2,0),Hl()(),Qi(3,"div",8)(4,"sh-alert",9),Og(5,1),mg(6,"br")(7,"br"),Pg(),Hl(),Qi(8,"sh-form-field")(9,"label",10),XT(10,2),Hl(),Qi(11,"input",11),sm("ngModelChange",function(r){return HC(t.passphrase,r)||(t.passphrase=r),r}),Hl(),DD(),Hl(),Qi(12,"sh-form-field")(13,"label",12),XT(14,3),Hl(),Qi(15,"input",13),sm("ngModelChange",function(r){return HC(t.repeatPassphrase,r)||(t.repeatPassphrase=r),r}),Hl(),DD(),oT(16,ft,2,0,"sh-icon",14)(17,Ft,2,0,"sh-icon",15),Hl()(),Qi(18,"footer",16)(19,"button",17),Fg("click",function(){return t.cancel()}),XT(20,4),Hl(),oT(21,At,2,2,"button",18)(22,Ot,2,3,"button",19),Hl()),e&2&&(DE(11),im("ngModel",t.passphrase),TD(),DE(4),gg("disabled",t.passphrase().length===0),im("ngModel",t.repeatPassphrase),TD(),DE(),iT(t.passphrase().length!==0&&t.passphrase()===t.repeatPassphrase()?16:17),DE(3),Qg("loading",t.isUpdating()),DE(2),iT(t.passphrase().length!==0&&t.passphrase()===t.repeatPassphrase()?21:22));},dependencies:[Bn,Ze,Rn,Jt,ue,Fe,N,at$1,v],styles:["[_nghost-%COMP%]{display:block;--dialog-p: 1.5rem}[content][_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}"]})};var vt=()=>({exact:true});function Nt(o,i){o&1&&(Qi(0,"sh-icon"),PC(1,"sun"),Hl());}function Pt(o,i){o&1&&(Qi(0,"sh-icon"),PC(1,"moon"),Hl());}function Dt(o,i){if(o&1){let e=gT();Qi(0,"button",26),Fg("click",function(){Sd(e);let n=nC();return xd(n.logout())}),Og(1,8),mg(2,"sh-icon"),Pg(),Hl();}}var _e=class o{#e=T(m);#i=T(g);#n=T(g$1);#t=T(be);#o=T(l);#r=T(M);#a=T(O);#s=T(m$1);#l=T(ee);#_=T(C);relayIsEnabled=this.#n.relayIsEnabled;isDarkMode=this.#e.isDarkMode;isNavOpen=this.#e.isNavOpen;sidenavType=this.#e.sidenavType;hasShownPasswordDialog=false;machineName=Nt$1(()=>{let i=this.#a.serverSettings();if(i&&i["--machine-name"])return i["--machine-name"];if(i&&i["machine-name"])return i["machine-name"];let e=this.#s.allOptions().find(t=>t.name==="machine-name");return e&&e.defaultValue?e.defaultValue:this.#s.systemInfo()?.MachineName??"Unknown"});ngOnInit(){this.#o.init(),this.#i.getBackups(true);}serverSettingsEffect=Ga(()=>{if(!this.hasShownPasswordDialog&&(this.#a.askForInitialPasswordConfig()&&(this.hasShownPasswordDialog=true,this.#t.open(K,{maxWidth:"500px"})),this.#a.showWelcomePage())){let i=this.#_.state();i=="inactive"?this.#l.navigate(["/welcome"]):i!="unknown"&&this.#a.setShownWelcomePage();}});toggleBodyClass(){this.#e.toggleBodyClass();}changeDefaultClientTo(i){this.#c(i),window.location.replace(`/${i}`);}logout(){this.#r.logout();}#c(i){var e=new Date;e.setTime(e.getTime()+2160*60*60*1e3),document.cookie="default-client="+i+"; expires="+e.toUTCString()+"; path=/";}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=dw({type:o,selectors:[["app-layout"]],decls:44,vars:11,consts:()=>{let i;i=$localize`${"\uFFFD#10\uFFFD"}:START_TAG_SH_ICON:house${"\uFFFD/#10\uFFFD"}:CLOSE_TAG_SH_ICON: Home `;let e;e=$localize`${"\uFFFD#13\uFFFD"}:START_TAG_SH_ICON:database${"\uFFFD/#13\uFFFD"}:CLOSE_TAG_SH_ICON: Add backup `;let t;t=$localize`${"\uFFFD#16\uFFFD"}:START_TAG_SH_ICON:clock-counter-clockwise${"\uFFFD/#16\uFFFD"}:CLOSE_TAG_SH_ICON: Restore `;let n;n=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SH_ICON:link-simple${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SH_ICON: Destinations `;let r;r=$localize`${"\uFFFD#22\uFFFD"}:START_TAG_SH_ICON:gear${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SH_ICON: Settings `;let N;N=$localize`${"\uFFFD#32\uFFFD"}:START_TAG_SH_ICON:info${"\uFFFD/#32\uFFFD"}:CLOSE_TAG_SH_ICON: About Duplicati `;let A;A=$localize`${"\uFFFD#35\uFFFD"}:START_TAG_SH_ICON:files${"[\uFFFD/#35\uFFFD|\uFFFD/#36\uFFFD]"}:CLOSE_TAG_SH_ICON: Documentation ${"\uFFFD#36\uFFFD"}:START_TAG_SH_ICON_1:arrow-square-out${"[\uFFFD/#35\uFFFD|\uFFFD/#36\uFFFD]"}:CLOSE_TAG_SH_ICON:`,A=tC(A);let O;O=$localize`${"\uFFFD#39\uFFFD"}:START_TAG_SH_ICON:chats-circle${"[\uFFFD/#39\uFFFD|\uFFFD/#40\uFFFD]"}:CLOSE_TAG_SH_ICON: Visit forum ${"\uFFFD#40\uFFFD"}:START_TAG_SH_ICON_1:arrow-square-out${"[\uFFFD/#39\uFFFD|\uFFFD/#40\uFFFD]"}:CLOSE_TAG_SH_ICON:`,O=tC(O);let D;return D=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:sign-out${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Log out `,[i,e,t,n,r,N,A,O,D,[3,"isOpenChange","isOpen","disableDrag"],["sidenav",""],["shButton","",1,"icon","small",3,"click"],[1,"base-1","primary"],["action","","routerLink","/","routerLinkActive","active",3,"routerLinkActiveOptions"],["action","","routerLink","/add-backup","routerLinkActive","active"],["action","","routerLink","/restore","routerLinkActive","active"],["action","","routerLink","/destinations","routerLinkActive","active"],["action","","routerLink","/settings","routerLinkActive","active"],[1,"spacer"],[1,"base-1l","primary"],["action","",1,"machine-name",3,"title"],["action","","routerLink","/about","routerLinkActive","active"],["href","https://docs.duplicati.com","target","_blank","action",""],["suffix",""],["href","https://forum.duplicati.com","target","_blank","action",""],["action",""],["action","",3,"click"]]},template:function(e,t){e&1&&(Qi(0,"sh-sidenav",9),sm("isOpenChange",function(r){return HC(t.isNavOpen,r)||(t.isNavOpen=r),r}),Qi(1,"div",10)(2,"header"),mg(3,"app-logo"),Qi(4,"button",11),Fg("click",function(){return t.toggleBodyClass()}),oT(5,Nt,2,0,"sh-icon")(6,Pt,2,0,"sh-icon"),Hl()(),Qi(7,"sh-list",12)(8,"button",13),Og(9,0),mg(10,"sh-icon"),Pg(),Hl(),Qi(11,"button",14),Og(12,1),mg(13,"sh-icon"),Pg(),Hl(),Qi(14,"button",15),Og(15,2),mg(16,"sh-icon"),Pg(),Hl(),Qi(17,"button",16),Og(18,3),mg(19,"sh-icon"),Pg(),Hl(),Qi(20,"button",17),Og(21,4),mg(22,"sh-icon"),Pg(),Hl()(),mg(23,"div",18),Qi(24,"sh-list",19)(25,"div",20)(26,"sh-icon"),PC(27,"desktop"),Hl(),PC(28),Hl(),mg(29,"sh-divider"),Qi(30,"button",21),Og(31,5),mg(32,"sh-icon"),Pg(),Hl(),Qi(33,"a",22),Og(34,6),mg(35,"sh-icon")(36,"sh-icon",23),Pg(),Hl(),Qi(37,"a",24),Og(38,7),mg(39,"sh-icon")(40,"sh-icon",23),Pg(),Hl(),oT(41,Dt,3,0,"button",25),Hl()(),mg(42,"router-outlet")(43,"app-service-hub"),Hl()),e&2&&(bC(t.sidenavType()),im("isOpen",t.isNavOpen),gg("disableDrag",true),DE(5),iT(t.isDarkMode()?5:6),DE(3),gg("routerLinkActiveOptions",QC(10,vt)),DE(17),gg("title",UC(t.machineName())),DE(3),Gl(" ",t.machineName()," "),DE(13),iT(t.relayIsEnabled()?-1:41));},dependencies:[lr,_t$1,To,Ke,N,c,v,c$1,J,w],styles:["[_nghost-%COMP%]{height:100vh;width:100%;overflow:hidden}header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:1.25rem;gap:.75rem}h3[title][_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}div[sidenav][_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100vh}.machine-name[_ngcontent-%COMP%]{margin:0;cursor:default}"]})};
3
3
  export{_e as default};
@@ -0,0 +1,2 @@
1
+ import {OptionsListComponent as Oe$1}from'./chunk-Dgns65Zu.js';import {O}from'./chunk-DN6f5jXR.js';import {C as Ct$1,Z as Ze$1}from'./chunk-ByhuT4BS.js';import'./chunk-C4kBXz3C.js';import {S as Se}from'./chunk-Dh6x3lXP.js';import {I}from'./chunk-DD_QfWih.js';import {J}from'./chunk-khm9J_G0.js';import'./chunk-wyNyzSXi.js';import'./chunk-CegwkGVu.js';import {N as Nt$2}from'./chunk-CT9ziigM.js';import'./chunk-D5lj-fQk.js';import'./chunk-D6aNT_wo.js';import'./chunk-OLi7f6y7.js';import'./chunk-B2TXzbpy.js';import {T,ab as C,e as ee,aw as W,U as Ue,N as Nt$1,C as Bu,d as dw,f as N,v,Q as Qi,F as Fg,o as oT,aP as Ul,X as XT,aQ as Wl,s as sm,H as Hl,O as Og,j as mg,P as Pg,z as gg,D as DE,i as iT,w as im,bg as Q,m,aJ as ci,G as Ga,cj as Uu,aE as Fo,bI as fe$1,aH as m$1,au as Lg,av as eC,aD as zC,a6 as be,at as h,I as Qg,a$ as Vs,ck as iy,c3 as Bs,ay as $u,bJ as vy,cl as _y,aZ as ee$1,l as HC,p as DD,y as TD,k as gT,S as Sd,n as nC,x as xd,bf as ig,a3 as QC,q as PC,aM as tb,aB as rm,aN as ob,aa as Gl,aR as rb}from'./main-KFKZO6SJ.js';import'./chunk-DPNAj9Vc.js';import {d}from'./chunk-CRAg6SRo.js';import {F as Fe$1}from'./chunk-DuIUmwWN.js';import {j as jn,G as Gn,T as Tn,Z as Ze,R as Rn,P as Pn,g as gn,h as hn,B as Bn,J as Jt,y as yt$1,r as rn}from'./chunk-DipTNkHN.js';import'./chunk-Fw6nFDZK.js';import'./chunk-Ca1C9pJ0.js';import'./chunk-C-NgIZiF.js';import'./chunk-PVmXLw9b.js';import {L}from'./chunk-C7pjkqKB.js';function ut(i,t){i&1&&(Qi(0,"p"),XT(1,3),Hl());}function dt(i,t){i&1&&(Qi(0,"sh-form-field")(1,"label",11),XT(2,4),Hl(),mg(3,"input",12),DD(),Hl()),i&2&&(DE(3),TD());}var it=new jn,at=()=>it.group({passphrase:it.control("")}),Fe=class i{#e=T(C);#t=T(G);#i=T(ee);#n=T(W);encryptionForm=this.#t.encryptionForm;creatingTemporaryBackup=Ue(false);settings=Ue([]);hasEncryptedBackup=Nt$1(()=>{let t=this.#t.destinationTestSignal();return t==="testing"||typeof t=="string"?true:t?.containsEncryptedBackupFiles??true});showEncryptionField=Ue(false);next(){let t=this.#t.destinationTargetUrl();if(!t)throw new Error("No target URL");this.creatingTemporaryBackup.set(true);let e=this.encryptionForm.value?.passphrase??null,o=[];e?o.push({Name:"--passphrase",Value:e}):o.push({Name:"--no-encryption",Value:"true"}),this.settings().forEach(n=>{let r=n.Name?.trim();r&&r!=="--"&&(r.startsWith("--")||(r=`--${r}`),o.push({Name:r,Value:n.Value??""}));}),this.#e.postApiV1Backups({requestBody:{Backup:{TargetURL:t,Settings:o}},temporary:true}).pipe(Bu(()=>this.creatingTemporaryBackup.set(false))).subscribe({next:n=>{let r=n.ID;this.#i.navigate([`/restore-draft/${r}`]);},error:n=>{console.error(n);}});}back(){this.#t.isFileRestore()?this.#i.navigate(["destination"],{relativeTo:this.#n.parent}):this.#t.exit();}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=dw({type:i,selectors:[["app-restore-encryption"]],decls:14,vars:5,consts:()=>{let t;t=$localize`Advanced options`;let e;e=$localize`${"\uFFFD#10\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#10\uFFFD"}:CLOSE_TAG_SH_ICON: Back `;let o;o=$localize`${"\uFFFD#13\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#13\uFFFD"}:CLOSE_TAG_SH_ICON: Continue `;let n;n=$localize`The backup does not contain encrypted files.`;let r;r=$localize`Enter backup passphrase if defined.`;let _;return _=$localize`Password`,[t,e,o,n,_,[3,"submit","formGroup"],["title",""],[3,"optionsChange","options","hasFreeTextSettings"],[1,"form-actions"],["shButton","","type","button",3,"click"],["shButton","","type","submit",1,"raised","primary"],["for","password"],["type","password","id","password","autocomplete","disabled","placeholder",r,"formControlName","passphrase"]]},template:function(e,o){e&1&&(Qi(0,"form",5),Fg("submit",function(){return o.next()}),oT(1,ut,2,0,"p"),oT(2,dt,4,0,"sh-form-field"),Qi(3,"sh-toggle-card"),Ul(4,6),XT(5,0),Wl(),Qi(6,"app-options-list",7),sm("optionsChange",function(r){return HC(o.settings,r)||(o.settings=r),r}),Hl()(),Qi(7,"div",8)(8,"button",9),Fg("click",function(){return o.back()}),Og(9,1),mg(10,"sh-icon"),Pg(),Hl(),Qi(11,"button",10),Og(12,2),mg(13,"sh-icon"),Pg(),Hl()()()),e&2&&(gg("formGroup",o.encryptionForm),DE(),iT(o.hasEncryptedBackup()?-1:1),DE(),iT(o.hasEncryptedBackup()||o.showEncryptionField()?2:-1),DE(4),im("options",o.settings),gg("hasFreeTextSettings",true));},dependencies:[Gn,Tn,Ze,Rn,Pn,gn,hn,Fe$1,N,v,I,Oe$1],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"]})};var lt=()=>({standalone:true});function pt(i,t){i&1&&mg(0,"sh-progress-bar",13);}function mt(i,t){if(i&1&&(PC(0),tb(1,"bytes")),i&2){let e=nC().$implicit;Gl(" (",rb(1,1,e.FileSizes),") ");}}function St(i,t){i&1&&(Qi(0,"span",20),XT(1,4),Hl());}function Et(i,t){if(i&1&&(Qi(0,"div",19),PC(1),tb(2,"date"),oT(3,mt,2,3),oT(4,St,2,0,"span",20),Hl()),i&2){let e=t.$implicit;DE(),rm(" ",e.Version,": ",ob(2,4,e.Time,"medium")," "),DE(2),iT(e.FileSizes?3:-1),DE(),iT(e.IsFullBackup===false?4:-1);}}function Tt(i,t){i&1&&mg(0,"sh-progress-bar",13);}function gt(i,t){i&1&&(Qi(0,"sh-icon",28),PC(1,"spinner"),Hl());}function Ft(i,t){i&1&&(Qi(0,"sh-icon"),PC(1,"magnifying-glass"),Hl());}function Ct(i,t){if(i&1){let e=gT();Qi(0,"button",31),Fg("click",function(){Sd(e);let n=nC(4);return xd(n.clearSearch())}),Qi(1,"sh-icon"),PC(2,"x-circle"),Hl(),Qi(3,"span"),XT(4,8),Hl()();}}function Ot(i,t){i&1&&(Qi(0,"span"),XT(1,9),Hl());}function Nt(i,t){if(i&1&&(Qi(0,"span"),XT(1,10),Hl()),i&2){let e=nC(5);DE(),Lg(e.searchResults().length),eC(1);}}function ft(i,t){if(i&1&&(Qi(0,"div",30),oT(1,Ot,2,0,"span")(2,Nt,2,1,"span"),Hl()),i&2){let e=nC(4);DE(),iT(e.searchResults().length===0?1:2);}}function ht(i,t){if(i&1){let e=gT();Qi(0,"div",24)(1,"sh-form-field")(2,"label",25),XT(3,6),Hl(),Qi(4,"input",26),sm("ngModelChange",function(n){Sd(e);let r=nC(3);return HC(r.searchQuery,n)||(r.searchQuery=n),xd(n)}),Fg("keydown.enter",function(n){Sd(e);let r=nC(3);return n.preventDefault(),xd(r.performSearch())}),Hl(),DD(),Hl(),Qi(5,"button",27),Fg("click",function(){Sd(e);let n=nC(3);return xd(n.performSearch())}),oT(6,gt,2,0,"sh-icon",28)(7,Ft,2,0,"sh-icon"),Qi(8,"span"),XT(9,7),Hl()(),oT(10,Ct,5,0,"button",29),Hl(),oT(11,ft,3,1,"div",30);}if(i&2){let e=nC(3);DE(4),im("ngModel",e.searchQuery),gg("ngModelOptions",QC(6,lt)),TD(),DE(),gg("disabled",e.isSearching()||!e.searchQuery().trim()),DE(),iT(e.isSearching()?6:7),DE(4),iT(e.isSearchMode()?10:-1),DE(),iT(e.isSearchMode()&&!e.isSearching()?11:-1);}}function Rt(i,t){if(i&1){let e=gT();oT(0,ht,12,7),Qi(1,"app-file-tree",21),Fg("hasExtendedData",function(n){Sd(e);let r=nC(2);return xd(r.extendedDataType.set(n))}),Qi(2,"label",22),XT(3,5),Hl(),mg(4,"input",23),DD(),Hl();}if(i&2){let e=nC(2);iT(e.canSearch()?0:-1),DE(),gg("rootPaths",e.rootPaths())("initialNodes",e.initialNodes())("backupSettings",e.backupSettings())("multiSelect",true)("showFiles",true)("loadExtendedData",true)("searchMode",e.isSearchMode())("searchResults",e.searchResults()),DE(3),TD();}}function Pt(i,t){if(i&1){let e=gT();Qi(0,"sh-select",17),Fg("cleared",function(){Sd(e);let n=nC();return xd(n.abortLoading())}),Qi(1,"input",18),sm("ngModelChange",function(n){Sd(e);let r=nC();return HC(r.selectOption,n)||(r.selectOption=n),xd(n)}),Hl(),DD(),ig(2,Et,5,7,"ng-template"),Hl(),oT(3,Tt,1,0,"sh-progress-bar",13),oT(4,Rt,5,9);}if(i&2){let e=nC();gg("options",e.versionOptions())("isClearable",false),DE(),im("ngModel",e.selectOption),gg("ngModelOptions",QC(6,lt)),TD(),DE(2),iT(e.isRepairing()||e.versionOptionsLoading()||e.loadingRootPath()?3:-1),DE(),iT(e.showFileTree()?4:-1);}}var Oe=new jn,_t=()=>Oe.group({filesToRestore:Oe.control(""),passphrase:Oe.control(null)}),Ne=class i{#e=T(C);#t=T(G);#i=T(Q);#n=T(m);#o=T(ee);#r=T(W);#a=T(ci);#l=null;#_=null;#s=Ue([]);selectFilesForm=this.#t.selectFilesForm;selectFilesFormSignal=this.#t.selectFilesFormSignal;selectOption=this.#t.selectOption;backupId=this.#t.backupId;versionOptionsLoading=this.#t.versionOptionsLoading;versionOptions=this.#t.versionOptions;isFileRestore=this.#t.isFileRestore;extendedDataType=this.#t.extendedDataType;needsDatabaseRepair=Nt$1(()=>this.#t.backup()?.Backup?.IsTemporary??true);showFileTree=Ue(false);backupSettings=Ue(null);rootPaths=Ue([]);initialNodes=Ue([]);loadingRootPath=Ue(false);isRepairing=Nt$1(()=>this.#s().length>0);loadedVersions=Ue({});canSearch=Nt$1(()=>this.#n.hasV2ListOperations());searchQuery=Ue("");isSearching=Ue(false);searchResults=Ue([]);hasSearched=Ue(false);isSearchMode=Nt$1(()=>this.searchQuery().length>0&&this.hasSearched());loadingEffect=Ga(()=>{if(this.versionOptionsLoading())return;let e=this.versionOptions();if(e&&e?.length>0){let o=e[0].Version;this.selectOption.set(o.toString());}});backupSettingsEffect=Ga(()=>{let t=this.backupId(),e=this.selectOption(),o=this.isRepairing(),n=this.loadedVersions();if(!e||!t)return;let _=this.versionOptions()?.find(k=>k.Version===parseInt(e))?.Time??null;if(!_)return;let u=`${t}+${_}`,I=n[u];if(this.needsDatabaseRepair()&&(!I||o))return;let D={id:t+"",time:_};this.backupSettings.set(D),this.getRootPath(D);});repairEffect=Ga(()=>{if(!this.needsDatabaseRepair())return;let t=this.selectOption(),e=this.versionOptions();if(t){let o=e.find(_=>_.Version===parseInt(t));if(o===void 0)return;let n=this.backupId(),r=`${n}+${o.Time}`;if(this.#_===r||(this.#_=r,this.#s().includes(r)))return;this.#s.update(_=>[..._,r]),this.#e.postApiV1BackupByIdRepairupdate({id:n,requestBody:{only_paths:true,time:o.Time}}).pipe(Uu(this.abortLoading$),Bu(()=>{this.#_=null;})).subscribe(_=>{let u=_.ID;this.#i.waitForTaskToComplete(u).pipe(Fo(1)).subscribe(()=>{this.#s.update(I=>I.filter(D=>D!==r)),this.loadedVersions.update(I=>(I[r]=true,I));});});}});getRootPath(t){let e={id:t.id+"",time:t.time,prefixOnly:true,folderContents:false},o=t.id+"";this.isRepairing()||this.#l===o||(this.#l=o,this.loadingRootPath.set(true),this.showFileTree.set(false),this.#n.hasV2ListOperations()?this.#e.postApiV2BackupListFolder({requestBody:{BackupId:t.id,Time:t.time,Paths:null,PageSize:0,Page:0,ReturnExtended:true}}).pipe(Uu(this.abortLoading$),Bu(()=>{this.showFileTree.set(true),this.loadingRootPath.set(false),this.#l=null;})).subscribe({next:n=>{let r=(n.Data??[]).find(u=>u.Metadata&&u.Metadata.ExtType&&u.Metadata.ExtType.length>0);r&&this.extendedDataType.set(r.Metadata.ExtType);let _=(n.Data??[]).map(u=>u.Path??"");_.length>0?(this.initialNodes.set([]),this.rootPaths.set(_)):(this.initialNodes.set([]),this.rootPaths.set(["/"]));}}):this.#e.getApiV1BackupByIdFiles(e).pipe(Uu(this.abortLoading$),Bu(()=>{this.showFileTree.set(true),this.loadingRootPath.set(false);})).subscribe({next:n=>{let r=n.Files.map(_=>_.Path??"");r.length>0?(this.initialNodes.set([]),this.rootPaths.set(r)):(this.initialNodes.set([]),this.rootPaths.set(["/"]));}}));}abortLoading$=new fe$1;abortLoading(){this.showFileTree.set(false),this.loadingRootPath.set(false),this.abortLoading$.next(true);}displayFn(){let t=this.versionOptions();return e=>{if(!e)return "";let o=t?.find(n=>typeof n.Version=="number"&&n.Version.toString()===e);return o?`${o.Version}: ${this.#a.transform(o.Time,"medium")}`:""}}next(){this.#o.navigate(["options"],{relativeTo:this.#r.parent});}back(){this.#t.isFileRestore()?this.#o.navigate(["encryption"],{relativeTo:this.#r.parent}):this.#t.exit();}performSearch(){let t=this.searchQuery().trim(),e=this.backupSettings(),o=(this.#t.extendedDataType()??"").length>0;if(!t||!e)return;let r=this.versionOptions()?.find(_=>_.Version===parseInt(this.selectOption()??""))?.Version;r!=null&&(this.isSearching.set(true),this.searchResults.set([]),this.hasSearched.set(true),this.#e.postApiV2BackupSearch({requestBody:{BackupId:e.id,Time:null,Version:[r],Filters:[t],Paths:null,PageSize:1e3,Page:0,ReturnExtended:o,SearchMetadata:o}}).pipe(Uu(this.abortLoading$),Bu(()=>this.isSearching.set(false))).subscribe({next:_=>{this.searchResults.set(_.Data??[]);},error:()=>{this.searchResults.set([]);}}));}clearSearch(){this.searchQuery.set(""),this.searchResults.set([]),this.hasSearched.set(false);}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=dw({type:i,selectors:[["app-select-files"]],features:[zC([ci])],decls:13,vars:3,consts:()=>{let t;t=$localize`Select files`;let e;e=$localize`${"\uFFFD#9\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SH_ICON: ${"\uFFFD0\uFFFD"}:INTERPOLATION: `;let o;o=$localize`${"\uFFFD#12\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SH_ICON: Continue `;let n;n=$localize`Select an option...`;let r;r=$localize`(partial)`;let _;_=$localize`Path`;let u;u=$localize`Enter search term...`;let I;I=$localize`Search files`;let D;D=$localize`Search`;let k;k=$localize`Clear`;let oe;oe=$localize`0 results found`;let ne;return ne=$localize`Found ${"\uFFFD0\uFFFD"}:INTERPOLATION: result(s)`,[["formRef",""],t,e,o,r,_,I,D,k,oe,ne,[3,"submit","formGroup"],[1,"title-30"],[1,"indeterminate","primary"],[1,"form-actions"],["shButton","","type","button",3,"click"],["shButton","","type","submit",1,"raised","primary"],["value","Version",3,"cleared","options","isClearable"],["type","text","placeholder",n,3,"ngModelChange","ngModel","ngModelOptions"],[1,"custom-option"],[1,"partial"],[3,"hasExtendedData","rootPaths","initialNodes","backupSettings","multiSelect","showFiles","loadExtendedData","searchMode","searchResults"],["for","path"],["type","text","id","path","formControlName","filesToRestore"],[1,"search-container"],["for","search"],["type","text","id","search","placeholder",u,3,"ngModelChange","keydown.enter","ngModel","ngModelOptions"],["shButton","","type","button",1,"small",3,"click","disabled"],[1,"spinner"],["shButton","","type","button",1,"small","secondary"],[1,"search-results-info"],["shButton","","type","button",1,"small","secondary",3,"click"]]},template:function(e,o){e&1&&(Qi(0,"form",11,0),Fg("submit",function(){return o.next()}),Qi(2,"h3",12),XT(3,1),Hl(),oT(4,pt,1,0,"sh-progress-bar",13)(5,Pt,5,7),Qi(6,"div",14)(7,"button",15),Fg("click",function(){return o.back()}),Og(8,2),mg(9,"sh-icon"),Pg(),Hl(),Qi(10,"button",16),Og(11,3),mg(12,"sh-icon"),Pg(),Hl()()()),e&2&&(gg("formGroup",o.selectFilesForm),DE(4),iT(o.versionOptionsLoading()?4:5),DE(5),Lg(o.isFileRestore()?"Back":"Exit"),eC(8));},dependencies:[Bn,Tn,Ze,Rn,Pn,Jt,Gn,gn,hn,Se,v,Fe$1,N,Nt$2,d,ci,m$1],styles:["[_nghost-%COMP%]{display:block;margin-top:2.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.partial[_ngcontent-%COMP%]{color:var(--base-9);font-style:italic}.search-container[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.search-container[_ngcontent-%COMP%] sh-form-field[_ngcontent-%COMP%]{flex:1}.search-results-info[_ngcontent-%COMP%]{color:var(--base-8);font-size:var(--small)}"]})};var G=class i{#e=T(ee);#t=T(W);#i=T(m);#n=T(be);#o=T(C);backupId=Ue(null);backup=Ue(null);destinationTargetUrl=Ue(null);destinationTestSignal=Ue(null);selectFilesForm=_t();optionsForm=ct();encryptionForm=at();optionsFormSignal=L(this.optionsForm.valueChanges);selectFilesFormSignal=L(this.selectFilesForm.valueChanges);selectOption=Ue(null);versionOptionsLoading=Ue(false);versionOptions=Ue([]);isSubmitting=Ue(false);isFileRestore=Ue(false);isFullWidthPage=Ue(false);extendedDataType=Ue(null);alternateRestorePath=Ue(null);alternateRestorePathSourcePrefix=Ue(null);init(t,e=false){this.backupId.set(t),this.isFileRestore.set(e),this.alternateRestorePath.set(null),this.extendedDataType.set(null),e&&this.#e.navigate(["/restore-from-files/destination"]),e||this.getBackup();}updateTargetUrl(t){this.destinationTargetUrl.set(t);}setAlternateRestorePath(t,e){this.alternateRestorePath.set(t),this.alternateRestorePathSourcePrefix.set(e);}submit(){this.isSubmitting.set(true);let t=this.backupId();this.backup()?.Backup?.IsTemporary??false?this.#o.postApiV1BackupByIdCopytotemp({id:this.backupId()??""}).subscribe({next:o=>{this.#r(o.ID??"");},error:o=>this.showErrorDialog($localize`An error occurred while copying the backup to a temporary location: ${o.message}`)}):this.#r(t??"");}showErrorDialog(t){this.#n.open(h,{data:{title:$localize`Error occured`,message:t,confirmText:$localize`OK`,cancelText:void 0},closed:e=>{}});}#r(t){let e=this.optionsForm.value,o=this.selectFilesForm.value,n=this.selectOption(),r=this.versionOptions()?.find(_=>_.Version===(n&&parseInt(n)));this.#o.postApiV1BackupByIdRestore({id:t??"",requestBody:{paths:o.filesToRestore?.split("\0").map(_=>_.endsWith("/")||_.endsWith("\\")?`${_}*`:_)??[],passphrase:o.passphrase??null,time:r?.Time,restore_path:this.alternateRestorePath()??e.restoreFromPath,overwrite:e.handleExisting==="overwrite",permissions:e.permissions,skip_metadata:!e.includeMetadata,source_prefix:this.alternateRestorePathSourcePrefix(),connection_string_id:null}}).pipe(Bu(()=>this.isSubmitting.set(false))).subscribe({next:_=>{this.#e.navigate([`./${_.ID}`,"progress"],{relativeTo:this.#t});},error:_=>{console.error("restore error",_);}});}exit(){this.#n.open(h,{data:{title:$localize`Confirm exit?`,message:$localize`Are you sure you want to exit?`,confirmText:$localize`Yes`,cancelText:$localize`Cancel`},closed:t=>{t&&(this.#a(),this.#e.navigate(["/"]));}});}getVersionOptions(){this.versionOptions();}loadFilesetsWithRetryv2(t,e=2){return this.#o.postApiV2BackupListFilesets({requestBody:{BackupId:t}}).pipe(Vs(o=>{let n=o?.error?.body?.StatusCode??o?.error?.requestBody?.StatusCode;return n==="EncryptedStorageNoPassphrase"||n==="FolderMissing"||n==="EmptyRemoteFolder"||e===0?iy(()=>o):Bs(1e3).pipe($u(()=>this.loadFilesetsWithRetryv2(t,e-1)))}))}getBackup(){let t=this.backupId();this.versionOptionsLoading.set(true),this.#i.hasV2ListOperations()?vy([this.#o.getApiV1BackupById({id:t}),this.loadFilesetsWithRetryv2(t)]).pipe(Fo(1),Bu(()=>this.versionOptionsLoading.set(false))).subscribe({next:([e,o])=>{if(o.Error)throw new Error(o.Error);if(!(e.Backup?.IsTemporary??true)&&e?.Backup?.DBPathExists===false){this.#n.open(h,{data:{title:$localize`Missing Local Database`,message:$localize`The local database for this backup is missing. Please repair or recreate the local database before restoring.`,confirmText:$localize`OK`,cancelText:void 0},closed:r=>{this.#e.navigate(["/backup",t,"database"]);}});return}this.versionOptions.set((o.Data??[]).map(r=>({Version:r.Version??-1,IsFullBackup:r.IsFullBackup??void 0,Time:r.Time??"<missing>",FileCount:r.FileCount??void 0,FileSizes:r.FileSizes??void 0}))),this.backup.set(e);},error:e=>{let o=e?.error?.body?.StatusCode??e?.error?.requestBody?.StatusCode,n=o==="EncryptedStorageNoPassphrase",r=o==="FolderMissing",_=o==="EmptyRemoteFolder",u=$localize`An error occurred while loading the backup filesets: ${e.message}`;n&&(u=$localize`The remote storage is encrypted. Please enter the passphrase to access the backup.`),r&&(u=$localize`The backup storage folder was not found.`),_&&(u=$localize`The backup storage folder does not contain any filesets.`),this.#n.open(h,{data:{title:$localize`Failed to load backup filesets`,message:u,confirmText:$localize`OK`,cancelText:void 0},closed:I=>{this.#e.navigate([n?"/restore-from-files/encryption":"/restore-from-files/destination"]);}});}}):vy([this.#o.getApiV1BackupById({id:t}),this.#o.getApiV1BackupByIdFilesets({id:t}).pipe(_y(3))]).pipe(Fo(1),Bu(()=>this.versionOptionsLoading.set(false))).subscribe({next:([e,o])=>{this.versionOptions.set(o.map(n=>({Version:n.Version??-1,IsFullBackup:(n.IsFullBackup??1)==1,Time:n.Time??"<missing>",FileCount:n.FileCount??void 0,FileSizes:n.FileSizes??void 0}))),this.backup.set(e);}});}#a(){this.selectFilesForm.reset(),this.optionsForm.reset();}static \u0275fac=function(e){return new(e||i)};static \u0275prov=ee$1({token:i,factory:i.\u0275fac,providedIn:"root"})};function It(i,t){if(i&1){let e=gT();Qi(0,"sh-radio",27),Og(1,6),mg(2,"input",31),DD(),Pg(),Hl(),Qi(3,"sh-radio",27),Og(4,7),Qi(5,"input",32),Fg("click",function(){Sd(e);let n=nC(2);return xd(n.chooseCustomRemoteDestination())}),Hl(),DD(),Pg(),Hl();}i&2&&(DE(2),TD(),DE(3),TD());}function Mt(i,t){if(i&1){let e=gT();Qi(0,"sh-radio",27),Og(1,8),mg(2,"input",31),DD(),Pg(),Hl(),Qi(3,"sh-radio",27),Og(4,9),Qi(5,"input",32),Fg("click",function(){Sd(e);let n=nC(2);return xd(n.chooseCustomRemoteDestination())}),Hl(),DD(),Pg(),Hl();}i&2&&(DE(2),TD(),DE(3),TD());}function Lt(i,t){if(i&1&&(Qi(0,"app-file-tree",29)(1,"label",33),PC(2,"Path"),Hl(),mg(3,"input",34),DD(),Hl()),i&2){let e=nC(2);gg("disabled",e.optionsFormSignal()?.restoreFrom!=="pickLocation")("enableCreateFolder",true)("resolvePaths",true),DE(3),TD();}}function yt(i,t){if(i&1&&(Qi(0,"app-file-tree",30)(1,"label",33),PC(2,"Path"),Hl(),mg(3,"input",34),DD(),Hl()),i&2){let e=nC(2);gg("customRemoteMode",e.extendedDataType())("backupId",e.backupId())("sourcePrefix",e.remoteCustomSourcePrefix())("destinationUrl",e.customDestinationUrl()),DE(3),TD();}}function Dt(i,t){if(i&1&&(oT(0,It,6,0)(1,Mt,6,0),Qi(2,"sh-radio",27),Og(3,5),mg(4,"input",28),DD(),Pg(),Hl(),oT(5,Lt,4,3,"app-file-tree",29),oT(6,yt,4,4,"app-file-tree",30)),i&2){let e=nC();iT(e.extendedDataType()==="o365"?0:e.extendedDataType()==="gsuite"?1:-1),DE(4),TD(),DE(),iT(e.optionsFormSignal()?.restoreFrom==="pickLocation"?5:-1),DE(),iT(e.showCustomRemoteRestoreTree()?6:-1);}}function bt(i,t){if(i&1&&(Qi(0,"sh-radio",27),Og(1,10),mg(2,"input",35),DD(),Pg(),Hl(),Qi(3,"sh-radio",27),Og(4,11),mg(5,"input",28),DD(),Pg(),Hl(),Qi(6,"app-file-tree",29)(7,"label",33),PC(8,"Path"),Hl(),mg(9,"input",34),DD(),Hl()),i&2){let e=nC();DE(2),TD(),DE(3),TD(),DE(),gg("disabled",e.optionsFormSignal()?.restoreFrom!=="pickLocation")("enableCreateFolder",true)("resolvePaths",true),DE(3),TD();}}function $t(i,t){i&1&&(Qi(0,"app-toggle-card",22),Ul(1,23),XT(2,12),Wl(),Qi(3,"sh-toggle",27),Og(4,13),mg(5,"input",36),DD(),Pg(),Hl()()),i&2&&(gg("disableToggle",true),DE(5),TD());}function vt(i,t){i&1&&(Qi(0,"app-toggle-card",22),Ul(1,23),XT(2,14),Wl(),Qi(3,"sh-radio",27),Og(4,15),mg(5,"input",37),DD(),Pg(),Hl(),Qi(6,"sh-radio",27),Og(7,16),mg(8,"input",38),DD(),Pg(),Hl()(),Qi(9,"app-toggle-card"),Ul(10,23),XT(11,17),Wl(),Qi(12,"sh-toggle",39),Og(13,18),mg(14,"input",40),DD(),Pg(),Hl(),Qi(15,"sh-toggle",39),Og(16,19),mg(17,"input",41),DD(),Pg(),Hl()()),i&2&&(gg("disableToggle",true),DE(5),TD(),DE(3),TD(),DE(6),TD(),DE(3),TD());}var B=new jn,ct=()=>B.group({restoreFrom:B.control("original"),restoreFromPath:B.control(""),handleExisting:B.control("saveTimestamp"),permissions:B.control(false),includeMetadata:B.control(true),customRemoteIgnoreExisting:B.control(false)}),fe=class i{#e=T(G);#t=T(ee);#i=T(W);#n=T(m);#o=T(be);optionsForm=this.#e.optionsForm;optionsFormSignal=this.#e.optionsFormSignal;isSubmitting=this.#e.isSubmitting;extendedData=this.#e.extendedDataType;remoteCustomTargetUrl=Ue(null);backupId=Nt$1(()=>this.#e.backup()?.Backup?.ID??null);extendedDataType=Nt$1(()=>{let t=this.#e.extendedDataType();return t==="o365"?"o365":t==="gsuite"?"gsuite":null});remoteCustomSourceEntry=Nt$1(()=>this.#e.backup()?.Backup?.Sources?.filter(t=>t.startsWith("@")&&(t.includes("|office365://")||t.includes("|googleworkspace://")))[0]??null);remoteCustomSourceUrl=Nt$1(()=>this.remoteCustomSourceEntry()?.split("|")[1]??null);remoteCustomSourcePrefix=Nt$1(()=>this.remoteCustomSourceEntry()?.split("|")[0]??null);customDestinationUrl=Nt$1(()=>{let t=this.optionsFormSignal()?.restoreFrom,e=this.extendedDataType()!==null;return t==="same-custom"&&e?this.remoteCustomSourceUrl():t==="other-custom"&&e?this.remoteCustomTargetUrl():null});showCustomRemoteRestoreTree=Nt$1(()=>!!(this.optionsFormSignal()?.restoreFrom==="same-custom"&&this.customDestinationUrl()&&this.backupId()||this.optionsFormSignal()?.restoreFrom==="other-custom"&&this.customDestinationUrl()));isCustomRemoteRestore=Nt$1(()=>{let t=this.optionsFormSignal()?.restoreFrom;return t==="same-custom"||t==="other-custom"});chooseCustomRemoteDestination(){let t=this.extendedDataType()==="o365"?"office365://":"googleworkspace://";return this.#o.open(Ct$1,{maxWidth:"700px",maxHeight:"80vh",width:"100%",closeOnOutsideClick:false,data:{targetUrlModel:this.remoteCustomTargetUrl()||this.remoteCustomSourceUrl()||t,moduleType:"RestoreDestinationProvider",askToCreate:true,expectedResult:"any",suppressErrorDialogs:true,backupId:this.backupId(),sourcePrefix:this.remoteCustomSourcePrefix()}}).closed.subscribe(o=>{o&&(this.remoteCustomTargetUrl.set(o),this.optionsForm.controls.restoreFrom.setValue("other-custom"));}),false}#r=Ga(()=>{let t=this.optionsFormSignal()?.restoreFrom;this.extendedDataType()!=null&&(t==="original"||t===void 0)&&(this.optionsForm.controls.restoreFrom.setValue("pickLocation"),this.optionsForm.controls.handleExisting.setValue("overwrite")),this.extendedDataType()==null&&(t==="same-custom"||t==="other-custom")&&(this.optionsForm.controls.restoreFrom.setValue("original"),this.optionsForm.controls.handleExisting.setValue("saveTimestamp"));});goBack(){this.#t.navigate(["select-files"],{relativeTo:this.#i.parent});}submit(){let t=this.#e.selectFilesFormSignal()?.filesToRestore??[];if(t.length>0&&this.optionsFormSignal()?.restoreFrom=="original"&&(t[0].includes("/")?"/":"\\")!==this.#n.systemInfo()?.DirectorySeparator){this.#o.open(h,{data:{title:$localize`Confirm target folder`,message:$localize`This backup was created on another operating system. Restoring files without specifying a destination folder can cause files to be restored in unexpected places. Are you sure you want to continue without choosing a destination folder?`,confirmText:$localize`Yes`,cancelText:$localize`Cancel`},closed:n=>{n&&this.#e.submit();}});return}if(this.optionsFormSignal()?.restoreFrom==="same-custom"||this.optionsFormSignal()?.restoreFrom==="other-custom"){let o=this.optionsFormSignal()?.restoreFromPath;if(o&&o.startsWith("/")&&(o=o.substring(1)),!o||o.trim()===""){this.#o.open(h,{data:{title:$localize`No path specified`,message:this.extendedDataType()==="gsuite"?$localize`Please choose a path to restore to in the Google Workspace account.`:$localize`Please choose a path to restore to in the Microsoft 365 tenant.`,confirmText:$localize`OK`,cancelText:void 0}});return}let n=this.optionsFormSignal()?.customRemoteIgnoreExisting,r=this.customDestinationUrl()?.substring(this.customDestinationUrl().indexOf("?")),_=this.extendedDataType()==="gsuite"?`@googleworkspace://${encodeURIComponent(o)}${r}&google-ignore-existing=${n?"true":"false"}`:`@office365://${encodeURIComponent(o)}${r}&office365-ignore-existing=${n?"true":"false"}`;this.#e.setAlternateRestorePath(_,this.remoteCustomSourcePrefix()),this.optionsForm.controls.includeMetadata.setValue(true),this.optionsForm.controls.permissions.setValue(true);}else this.#e.setAlternateRestorePath(null,null);this.#e.submit();}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=dw({type:i,selectors:[["app-advanced-options-settings"]],decls:18,vars:6,consts:()=>{let t;t=$localize`Restore options`;let e;e=$localize`Where do you want to restore files to?`;let o;o=$localize`${"\uFFFD#14\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#14\uFFFD"}:CLOSE_TAG_SH_ICON: Go back `;let n;n=$localize`${"\uFFFD#17\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#17\uFFFD"}:CLOSE_TAG_SH_ICON: Submit `;let r;r=$localize` Local file system ${"\uFFFD#4\uFFFD\uFFFD/#4\uFFFD"}:TAG_INPUT:`;let _;_=$localize` Same Microsoft 365 Tenant ${"\uFFFD#2\uFFFD\uFFFD/#2\uFFFD"}:TAG_INPUT:`;let u;u=$localize` Different Microsoft 365 Tenant ${"\uFFFD#5\uFFFD\uFFFD/#5\uFFFD"}:TAG_INPUT:`;let I;I=$localize` Same Google Workspace Account ${"\uFFFD#2\uFFFD\uFFFD/#2\uFFFD"}:TAG_INPUT:`;let D;D=$localize` Different Google Workspace Account ${"\uFFFD#5\uFFFD\uFFFD/#5\uFFFD"}:TAG_INPUT:`;let k;k=$localize` Original location ${"\uFFFD#2\uFFFD\uFFFD/#2\uFFFD"}:TAG_INPUT:`;let oe;oe=$localize` Pick location ${"\uFFFD#5\uFFFD\uFFFD/#5\uFFFD"}:TAG_INPUT:`;let ne;ne=$localize`Restore settings`;let P;P=$localize` Ignore existing resources in the destination ${"\uFFFD#5\uFFFD\uFFFD/#5\uFFFD"}:TAG_INPUT:`;let he;he=$localize`How do you want to handle existing files?`;let Re;Re=$localize` Overwrite ${"\uFFFD#5\uFFFD\uFFFD/#5\uFFFD"}:TAG_INPUT:`;let Pe;Pe=$localize` Save different versions with timestamp in file name ${"\uFFFD#8\uFFFD\uFFFD/#8\uFFFD"}:TAG_INPUT:`;let Ie;Ie=$localize`Metadata settings`;let Me;Me=$localize` Restore file metadata ${"\uFFFD#14\uFFFD\uFFFD/#14\uFFFD"}:TAG_INPUT:`;let Le;return Le=$localize` Restore read/write permissions ${"\uFFFD#17\uFFFD\uFFFD/#17\uFFFD"}:TAG_INPUT:`,[["formRef",""],t,e,o,n,r,_,u,I,D,k,oe,ne,P,he,Re,Pe,Ie,Me,Le,[3,"submit","formGroup"],[1,"title-30"],[3,"disableToggle"],["title",""],[1,"form-actions"],["shButton","","type","button",3,"click"],["shButton","","type","submit",1,"raised","primary"],[1,"raised","primary"],["type","radio","name","restoreFrom","value","pickLocation","formControlName","restoreFrom"],[3,"disabled","enableCreateFolder","resolvePaths"],[3,"customRemoteMode","backupId","sourcePrefix","destinationUrl"],["type","radio","name","restoreFrom","value","same-custom","formControlName","restoreFrom"],["type","radio","name","restoreFrom","value","other-custom","formControlName","restoreFrom",3,"click"],["for","path"],["type","text","id","path","formControlName","restoreFromPath"],["type","radio","name","restoreFrom","value","original","formControlName","restoreFrom"],["type","checkbox","formControlName","customRemoteIgnoreExisting"],["type","radio","name","handleExisting","value","overwrite","formControlName","handleExisting"],["type","radio","name","handleExisting","value","saveTimestamp","formControlName","handleExisting"],[1,"primary","raised"],["type","checkbox","formControlName","includeMetadata"],["type","checkbox","formControlName","permissions"]]},template:function(e,o){e&1&&(Qi(0,"form",20,0),Fg("submit",function(){return o.submit()}),Qi(2,"h3",21),XT(3,1),Hl(),Qi(4,"app-toggle-card",22),Ul(5,23),XT(6,2),Wl(),oT(7,Dt,7,3)(8,bt,10,3),Hl(),oT(9,$t,6,1,"app-toggle-card",22)(10,vt,18,1),Qi(11,"div",24)(12,"button",25),Fg("click",function(){return o.goBack()}),Og(13,3),mg(14,"sh-icon"),Pg(),Hl(),Qi(15,"button",26),Og(16,4),mg(17,"sh-icon"),Pg(),Hl()()()),e&2&&(gg("formGroup",o.optionsForm),DE(4),gg("disableToggle",true),DE(3),iT(o.extendedDataType()!==null?7:8),DE(2),iT(o.isCustomRemoteRestore()?9:10),DE(6),Qg("loading",o.isSubmitting()));},dependencies:[Gn,Tn,Ze,yt$1,rn,Rn,Pn,gn,hn,Ze$1,Se,J,O,v,N],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"]})};
2
+ var chunkWGOXACAK=/*#__PURE__*/Object.freeze({__proto__:null,createEncryptionForm:at,default:Fe});var chunk3VX6DNZL=/*#__PURE__*/Object.freeze({__proto__:null,createRestoreSelectFilesForm:_t,default:Ne});var chunkVCUP6QAX=/*#__PURE__*/Object.freeze({__proto__:null,createRestoreOptionsForm:ct,default:fe});export{G,chunk3VX6DNZL as a,chunkVCUP6QAX as b,chunkWGOXACAK as c};
@@ -1,2 +1,2 @@
1
- import {b as g1,G as Ga,c as me,T,ae as Jr,bW as us,bX as pe,bv as le,U as Ue,b5 as mw,F as Fg,ag as zg,I as Qg,N as Nt,bY as $r,ad as br,bB as yD,d as dw,bZ as ei,Q as Qi,o as oT,H as Hl,D as DE,i as iT,aC as hg,bf as ig,n as nC,z as gg,a_ as ZC,q as PC,aa as Gl,b_ as Ig}from'./main-PXGZLKMN.js';var z=r=>({$implicit:r});function U(r,w){r&1&&Ig(0);}function F(r,w){if(r&1&&ig(0,U,1,0,"ng-container",1),r&2){let t=nC();gg("ngTemplateOutlet",t.content())("ngTemplateOutletContext",ZC(2,z,t.tooltipContext));}}function $(r,w){if(r&1&&PC(0),r&2){let t=nC();Gl(" ",t.content()," ");}}var X=(()=>{class r{constructor(){this.positionAnchorName=g1.required(),this.anchorEl=g1.required(),this.isOpen=g1(false),this.content=g1(),this.close=g1(()=>{}),this.tooltipContext={close:()=>this.close()()},this.isTemplate=Nt(()=>this.content()instanceof $r),this.#p=T(br),this.#n=T(Jr),this.#e=T(yD),this.#t=null,this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.isBelow=Ue(false),this.openEffect=Ga(()=>{if(this.isOpen())queueMicrotask(()=>{let t=this.#n.nativeElement;!t||!t.isConnected||(this.#t&&this.#t.abort(),this.#t=new AbortController,t.showPopover(),this.SUPPORTS_ANCHOR||setTimeout(()=>{this.#i(t).addEventListener("scroll",()=>this.#o(),{signal:this.#t?.signal,passive:true}),window?.addEventListener("resize",()=>this.#o(),{signal:this.#t?.signal,passive:true}),this.#o();}));});else {let t=this.#n.nativeElement;if(t)try{t.matches(":popover-open")&&t.hidePopover();}catch{}this.#t?.abort(),this.#t=null;}}),this.#o=()=>{if(!this.anchorEl())return;let t=this.anchorEl().nativeElement.getBoundingClientRect(),e=this.#n.nativeElement,n=e.getBoundingClientRect();if(n.width===0&&n.height===0)return;let p=8,h=(i,s)=>({left:i.left+i.width/2-s.width/2,top:i.top-s.height-p}),j=[h,(i,s)=>({left:i.right-s.width,top:i.top-s.height-p}),(i,s)=>({left:i.left,top:i.top-s.height-p}),(i,s)=>({left:i.left+i.width/2-s.width/2,top:i.bottom+p}),(i,s)=>({left:i.right-s.width,top:i.bottom+p}),(i,s)=>({left:i.left,top:i.bottom+p})];for(let i of j){let s=i(t,n);if(this.#r(s,n)){this.#s(s,e),this.isBelow.set(s.top>t.top);return}}let v=this.#l(h(t,n),n);this.#s(v,e),this.isBelow.set(v.top>t.top);};}#p;#n;#e;#t;ngOnDestroy(){this.#t?.abort(),this.#t=null;}#i(t){let e=["scroll","auto"],n=t.parentElement;for(;n;){if(e.indexOf(window?.getComputedStyle(n).overflowY)>-1&&n.scrollHeight>n.clientHeight)return n;n=n.parentElement;}return this.#p.documentElement}#o;#s(t,e){this.#e.setStyle(e,"left",`${t.left}px`),this.#e.setStyle(e,"top",`${t.top}px`),this.#e.setStyle(e,"position","fixed"),this.#e.setStyle(e,"margin","0");}#r(t,e){return t.left>=0&&t.top>=0&&t.left+e.width<=window.innerWidth&&t.top+e.height<=window.innerHeight}#l(t,e){return {left:Math.max(0,Math.min(t.left,window.innerWidth-e.width)),top:Math.max(0,Math.min(t.top,window.innerHeight-e.height))}}static{this.\u0275fac=function(e){return new(e||r)};}static{this.\u0275cmp=dw({type:r,selectors:[["ship-tooltip-wrapper"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(e,n){e&2&&(hg("popover","manual"),zg("position-anchor",n.positionAnchorName()),Qg("below",n.isBelow()));},inputs:{positionAnchorName:[1,"positionAnchorName"],anchorEl:[1,"anchorEl"],isOpen:[1,"isOpen"],content:[1,"content"],close:[1,"close"]},decls:3,vars:1,consts:[[1,"tooltip-content"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,n){e&1&&(Qi(0,"div",0),oT(1,F,1,4,"ng-container")(2,$,1,1),Hl()),e&2&&(DE(),iT(n.isTemplate()?1:2));},dependencies:[ei],styles:[`.tooltip{position:relative;display:flex;pointer-events:initial!important}.tooltip:after{content:"";position:absolute;inset:-.5rem;z-index:1}.tooltip.primary+ship-tooltip-wrapper{--tt-bg: var(--primary-2);--tt-c: var(--primary-8)}.tooltip.accent+ship-tooltip-wrapper{--tt-bg: var(--accent-2);--tt-c: var(--accent-8)}.tooltip.warn+ship-tooltip-wrapper{--tt-bg: var(--warn-2);--tt-c: var(--warn-8)}.tooltip.error+ship-tooltip-wrapper{--tt-bg: var(--error-2);--tt-c: var(--error-8)}.tooltip.success+ship-tooltip-wrapper{--tt-bg: var(--success-2);--tt-c: var(--success-8)}.tooltip.active{z-index:1}.tooltip.active+ship-tooltip-wrapper{z-index:1}@supports (anchor-name: --anchor){.tooltip.active+ship-tooltip-wrapper .tooltip-content{transform:translateY(0) scaleY(1) scaleX(1)}}ship-tooltip-wrapper{--tt-bg: var(--base-3);--tt-c: var(--base-12);--tt-mh: 8.5rem;--tt-mw: 17.5rem;--tt-translate-y: 50%;position:fixed;font:var(--paragraph-30);width:max-content;overflow:visible;box-shadow:none;background:transparent;border:0;padding:0;margin:0;margin-block-end:.75rem}@supports (anchor-name: --anchor){ship-tooltip-wrapper{inset:unset;justify-self:anchor-center;bottom:anchor(top);position:fixed;position-try-order:normal;position-try-fallbacks:flip-block,flip-inline,flip-block flip-inline}}ship-tooltip-wrapper:before{content:"";position:absolute;bottom:-.75rem;top:auto;left:50%;z-index:1;transform:translate(-50%);border-width:.375rem;border-style:solid;border-color:transparent;border-top-color:var(--tt-bg);width:0;height:0;opacity:1}ship-tooltip-wrapper.below{--tt-translate-y: -50%}ship-tooltip-wrapper.below:before{border-top-color:transparent;border-bottom-color:var(--tt-bg);top:-.75rem;bottom:auto}@supports not (anchor-name: --anchor){ship-tooltip-wrapper.below{margin-block-start:.75rem;margin-block-end:0}}ship-tooltip-wrapper .tooltip-content{padding:.5rem .75rem;position:relative;hyphens:auto;text-wrap:pretty;color:var(--tt-c);max-height:var(--tt-mh);max-width:var(--tt-mw);overflow:auto;background:var(--tt-bg);border-radius:var(--shape-2);box-shadow:var(--box-shadow-20)}@supports (anchor-name: --anchor){ship-tooltip-wrapper .tooltip-content{transform:translateY(var(--tt-translate-y)) scaleY(0) scaleX(.8);transition:transform 125ms linear}}
2
- `],encapsulation:2});}}return r})(),o=null,at=(()=>{class r{constructor(){this.shTooltip=g1.required(),this.#p=Ga(()=>{let t=this.shTooltip();me(()=>{this.isOpen()&&o?.component===this&&o?.wrapperComponentRef&&(o.wrapperComponentRef.setInput("content",t),o.wrapperComponentRef.changeDetectorRef.detectChanges());});}),this.#n=T(Jr),this.#e=T(us),this.#t=T(pe),this.#i=null,this.#o=50,this.anchorName=`--${le()}`,this.isOpen=Ue(false),this.destroyTimeout=null;}#p;#n;#e;#t;#i;#o;onMouseEnter(t){t.stopPropagation(),o&&o.component.anchorName!==this.anchorName?o.component.#a(true):this.#r(),this.#l();}onMouseLeave(t){t.stopPropagation(),this.#s();}ngOnDestroy(){this.#r(),o?.component===this&&this.#a(true);}#s(){this.#r(),this.#i=setTimeout(()=>{this.#a();},this.#o);}#r(){this.#i&&(clearTimeout(this.#i),this.#i=null),this.destroyTimeout&&(clearTimeout(this.destroyTimeout),this.destroyTimeout=null);}#l(){if(o?.wrapperComponentRef||!this.shTooltip()){o?.component===this&&o?.wrapperComponentRef&&o.wrapperComponentRef.setInput("content",this.shTooltip());return}o={wrapperComponentRef:this.#e.createComponent(X,{environmentInjector:this.#t}),component:this},o.wrapperComponentRef.setInput("positionAnchorName",this.anchorName),o.wrapperComponentRef.setInput("anchorEl",this.#n),o.wrapperComponentRef.setInput("isOpen",this.isOpen),o.wrapperComponentRef.setInput("content",this.shTooltip()),o.wrapperComponentRef.setInput("close",()=>this.#a(true)),o.wrapperComponentRef.changeDetectorRef.detectChanges(),o.wrapperComponentRef.location.nativeElement.addEventListener("mouseenter",t=>{t.stopPropagation(),this.#r();}),o.wrapperComponentRef.location.nativeElement.addEventListener("mouseleave",t=>{t.stopPropagation(),this.#s();}),setTimeout(()=>{this.isOpen.set(true);});}#a(t=false){if(o?.wrapperComponentRef){if(o.component!==this&&!t)return;let e=o.wrapperComponentRef,n=o.component;n.#r(),n.isOpen.set(false);try{e.location.nativeElement.hidePopover();}catch{}t?(e.destroy(),o?.wrapperComponentRef===e&&(o=null)):n.destroyTimeout=setTimeout(()=>{queueMicrotask(()=>{e.destroy(),o?.wrapperComponentRef===e&&(o=null);});},this.#o);}}static{this.\u0275fac=function(e){return new(e||r)};}static{this.\u0275dir=mw({type:r,selectors:[["","shTooltip",""]],hostAttrs:[1,"tooltip"],hostVars:4,hostBindings:function(e,n){e&1&&Fg("mouseenter",function(h){return n.onMouseEnter(h)})("mouseleave",function(h){return n.onMouseLeave(h)}),e&2&&(zg("anchor-name",n.anchorName),Qg("active",n.isOpen()));},inputs:{shTooltip:[1,"shTooltip"]}});}}return r})();export{X,at as a};
1
+ import {b as g1,G as Ga,c as me,T,ae as Jr,bW as us,bX as pe,bv as le,U as Ue,b5 as mw,F as Fg,ag as zg,I as Qg,N as Nt,bY as $r,ad as br,bB as yD,d as dw,bZ as ei,Q as Qi,o as oT,H as Hl,D as DE,i as iT,aC as hg,bf as ig,n as nC,z as gg,a_ as ZC,q as PC,aa as Gl,b_ as Ig}from'./main-KFKZO6SJ.js';var z=r=>({$implicit:r});function U(r,w){r&1&&Ig(0);}function F(r,w){if(r&1&&ig(0,U,1,0,"ng-container",1),r&2){let t=nC();gg("ngTemplateOutlet",t.content())("ngTemplateOutletContext",ZC(2,z,t.tooltipContext));}}function $(r,w){if(r&1&&PC(0),r&2){let t=nC();Gl(" ",t.content()," ");}}var X=(()=>{class r{constructor(){this.positionAnchorName=g1.required(),this.anchorEl=g1.required(),this.isOpen=g1(false),this.content=g1(),this.close=g1(()=>{}),this.tooltipContext={close:()=>this.close()()},this.isTemplate=Nt(()=>this.content()instanceof $r),this.#p=T(br),this.#n=T(Jr),this.#e=T(yD),this.#t=null,this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.isBelow=Ue(false),this.openEffect=Ga(()=>{if(this.isOpen())queueMicrotask(()=>{let t=this.#n.nativeElement;!t||!t.isConnected||(this.#t&&this.#t.abort(),this.#t=new AbortController,t.showPopover(),this.SUPPORTS_ANCHOR||setTimeout(()=>{this.#i(t).addEventListener("scroll",()=>this.#o(),{signal:this.#t?.signal,passive:true}),window?.addEventListener("resize",()=>this.#o(),{signal:this.#t?.signal,passive:true}),this.#o();}));});else {let t=this.#n.nativeElement;if(t)try{t.matches(":popover-open")&&t.hidePopover();}catch{}this.#t?.abort(),this.#t=null;}}),this.#o=()=>{if(!this.anchorEl())return;let t=this.anchorEl().nativeElement.getBoundingClientRect(),e=this.#n.nativeElement,n=e.getBoundingClientRect();if(n.width===0&&n.height===0)return;let p=8,h=(i,s)=>({left:i.left+i.width/2-s.width/2,top:i.top-s.height-p}),j=[h,(i,s)=>({left:i.right-s.width,top:i.top-s.height-p}),(i,s)=>({left:i.left,top:i.top-s.height-p}),(i,s)=>({left:i.left+i.width/2-s.width/2,top:i.bottom+p}),(i,s)=>({left:i.right-s.width,top:i.bottom+p}),(i,s)=>({left:i.left,top:i.bottom+p})];for(let i of j){let s=i(t,n);if(this.#r(s,n)){this.#s(s,e),this.isBelow.set(s.top>t.top);return}}let v=this.#l(h(t,n),n);this.#s(v,e),this.isBelow.set(v.top>t.top);};}#p;#n;#e;#t;ngOnDestroy(){this.#t?.abort(),this.#t=null;}#i(t){let e=["scroll","auto"],n=t.parentElement;for(;n;){if(e.indexOf(window?.getComputedStyle(n).overflowY)>-1&&n.scrollHeight>n.clientHeight)return n;n=n.parentElement;}return this.#p.documentElement}#o;#s(t,e){this.#e.setStyle(e,"left",`${t.left}px`),this.#e.setStyle(e,"top",`${t.top}px`),this.#e.setStyle(e,"position","fixed"),this.#e.setStyle(e,"margin","0");}#r(t,e){return t.left>=0&&t.top>=0&&t.left+e.width<=window.innerWidth&&t.top+e.height<=window.innerHeight}#l(t,e){return {left:Math.max(0,Math.min(t.left,window.innerWidth-e.width)),top:Math.max(0,Math.min(t.top,window.innerHeight-e.height))}}static{this.\u0275fac=function(e){return new(e||r)};}static{this.\u0275cmp=dw({type:r,selectors:[["ship-tooltip-wrapper"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(e,n){e&2&&(hg("popover","manual"),zg("position-anchor",n.positionAnchorName()),Qg("below",n.isBelow()));},inputs:{positionAnchorName:[1,"positionAnchorName"],anchorEl:[1,"anchorEl"],isOpen:[1,"isOpen"],content:[1,"content"],close:[1,"close"]},decls:3,vars:1,consts:[[1,"tooltip-content"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,n){e&1&&(Qi(0,"div",0),oT(1,F,1,4,"ng-container")(2,$,1,1),Hl()),e&2&&(DE(),iT(n.isTemplate()?1:2));},dependencies:[ei],styles:[`.tooltip{position:relative;display:flex;pointer-events:initial!important}.tooltip:after{content:"";position:absolute;inset:-.5rem;z-index:1}.tooltip.primary+ship-tooltip-wrapper{--tt-bg: var(--primary-2);--tt-c: var(--primary-8)}.tooltip.accent+ship-tooltip-wrapper{--tt-bg: var(--accent-2);--tt-c: var(--accent-8)}.tooltip.warn+ship-tooltip-wrapper{--tt-bg: var(--warn-2);--tt-c: var(--warn-8)}.tooltip.error+ship-tooltip-wrapper{--tt-bg: var(--error-2);--tt-c: var(--error-8)}.tooltip.success+ship-tooltip-wrapper{--tt-bg: var(--success-2);--tt-c: var(--success-8)}.tooltip.active{z-index:1}.tooltip.active+ship-tooltip-wrapper{z-index:1}@supports (anchor-name: --anchor){.tooltip.active+ship-tooltip-wrapper .tooltip-content{transform:translateY(0) scaleY(1) scaleX(1)}}ship-tooltip-wrapper{--tt-bg: var(--base-3);--tt-c: var(--base-12);--tt-mh: 8.5rem;--tt-mw: 17.5rem;--tt-translate-y: 50%;position:fixed;font:var(--paragraph-30);width:max-content;overflow:visible;box-shadow:none;background:transparent;border:0;padding:0;margin:0;margin-block-end:.75rem}@supports (anchor-name: --anchor){ship-tooltip-wrapper{inset:unset;justify-self:anchor-center;bottom:anchor(top);position:fixed;position-try-order:normal;position-try-fallbacks:flip-block,flip-inline,flip-block flip-inline}}ship-tooltip-wrapper:before{content:"";position:absolute;bottom:-.75rem;top:auto;left:50%;z-index:1;transform:translate(-50%);border-width:.375rem;border-style:solid;border-color:transparent;border-top-color:var(--tt-bg);width:0;height:0;opacity:1}ship-tooltip-wrapper.below{--tt-translate-y: -50%}ship-tooltip-wrapper.below:before{border-top-color:transparent;border-bottom-color:var(--tt-bg);top:-.75rem;bottom:auto}@supports not (anchor-name: --anchor){ship-tooltip-wrapper.below{margin-block-start:.75rem;margin-block-end:0}}ship-tooltip-wrapper .tooltip-content{padding:.5rem .75rem;position:relative;hyphens:auto;text-wrap:pretty;color:var(--tt-c);max-height:var(--tt-mh);max-width:var(--tt-mw);overflow:auto;background:var(--tt-bg);border-radius:var(--shape-2);box-shadow:var(--box-shadow-20)}@supports (anchor-name: --anchor){ship-tooltip-wrapper .tooltip-content{transform:translateY(var(--tt-translate-y)) scaleY(0) scaleX(.8);transition:transform 125ms linear}}
2
+ `],encapsulation:2});}}return r})(),o=null,at=(()=>{class r{constructor(){this.shTooltip=g1.required(),this.#p=Ga(()=>{let t=this.shTooltip();me(()=>{this.isOpen()&&o?.component===this&&o?.wrapperComponentRef&&(o.wrapperComponentRef.setInput("content",t),o.wrapperComponentRef.changeDetectorRef.detectChanges());});}),this.#n=T(Jr),this.#e=T(us),this.#t=T(pe),this.#i=null,this.#o=50,this.anchorName=`--${le()}`,this.isOpen=Ue(false),this.destroyTimeout=null;}#p;#n;#e;#t;#i;#o;onMouseEnter(t){t.stopPropagation(),o&&o.component.anchorName!==this.anchorName?o.component.#a(true):this.#r(),this.#l();}onMouseLeave(t){t.stopPropagation(),this.#s();}ngOnDestroy(){this.#r(),o?.component===this&&this.#a(true);}#s(){this.#r(),this.#i=setTimeout(()=>{this.#a();},this.#o);}#r(){this.#i&&(clearTimeout(this.#i),this.#i=null),this.destroyTimeout&&(clearTimeout(this.destroyTimeout),this.destroyTimeout=null);}#l(){if(o?.wrapperComponentRef||!this.shTooltip()){o?.component===this&&o?.wrapperComponentRef&&o.wrapperComponentRef.setInput("content",this.shTooltip());return}o={wrapperComponentRef:this.#e.createComponent(X,{environmentInjector:this.#t}),component:this},o.wrapperComponentRef.setInput("positionAnchorName",this.anchorName),o.wrapperComponentRef.setInput("anchorEl",this.#n),o.wrapperComponentRef.setInput("isOpen",this.isOpen),o.wrapperComponentRef.setInput("content",this.shTooltip()),o.wrapperComponentRef.setInput("close",()=>this.#a(true)),o.wrapperComponentRef.changeDetectorRef.detectChanges(),o.wrapperComponentRef.location.nativeElement.addEventListener("mouseenter",t=>{t.stopPropagation(),this.#r();}),o.wrapperComponentRef.location.nativeElement.addEventListener("mouseleave",t=>{t.stopPropagation(),this.#s();}),setTimeout(()=>{this.isOpen.set(true);});}#a(t=false){if(o?.wrapperComponentRef){if(o.component!==this&&!t)return;let e=o.wrapperComponentRef,n=o.component;n.#r(),n.isOpen.set(false);try{e.location.nativeElement.hidePopover();}catch{}t?(e.destroy(),o?.wrapperComponentRef===e&&(o=null)):n.destroyTimeout=setTimeout(()=>{queueMicrotask(()=>{e.destroy(),o?.wrapperComponentRef===e&&(o=null);});},this.#o);}}static{this.\u0275fac=function(e){return new(e||r)};}static{this.\u0275dir=mw({type:r,selectors:[["","shTooltip",""]],hostAttrs:[1,"tooltip"],hostVars:4,hostBindings:function(e,n){e&1&&Fg("mouseenter",function(h){return n.onMouseEnter(h)})("mouseleave",function(h){return n.onMouseLeave(h)}),e&2&&(zg("anchor-name",n.anchorName),Qg("active",n.isOpen()));},inputs:{shTooltip:[1,"shTooltip"]}});}}return r})();export{at as a};
@@ -1 +1 @@
1
- import {c}from'./chunk-D48AStVy.js';import {T,m,N as Nt,U as Ue,d as dw,f as N,bZ as ei,Q as Qi,X as XT,H as Hl,bf as ig,c2 as uC,D as DE,z as gg,a_ as ZC,b_ as Ig,a1 as cT,ag as zg,a2 as lT,k as gT,F as Fg,S as Sd,n as nC,x as xd,o as oT,q as PC,I as Qg,i as iT,E as nm,aF as YC,c4 as sb}from'./main-PXGZLKMN.js';var Y=e=>({children:e,level:0}),L=e=>({$implicit:e}),j=(e,n)=>({children:e,level:n}),V=(e,n)=>n.id;function z(e,n){if(e&1&&(Qi(0,"sh-icon"),PC(1,"caret-down"),Hl()),e&2){let t=nC().$implicit;Qg("open",t.isOpen());}}function B(e,n){e&1&&(Qi(0,"sh-icon"),PC(1,"dot"),Hl());}function J(e,n){e&1&&Ig(0);}function U(e,n){if(e&1&&ig(0,J,1,0,"ng-container",3),e&2){let t=nC().$implicit,o=nC().$implicit;nC();let i=uC(3);gg("ngTemplateOutlet",i)("ngTemplateOutletContext",ZC(5,L,YC(2,j,t.children,o.level+1)));}}function X(e,n){if(e&1){let t=gT();Qi(0,"div",4,1),Fg("click",function(){let i=Sd(t).$implicit,G=nC(2);return xd(i.children.length>0&&G.toggleNode(i))}),oT(2,z,2,2,"sh-icon",5)(3,B,2,0,"sh-icon"),Qi(4,"div",6),PC(5),Hl()(),oT(6,U,1,7,"ng-container");}if(e&2){let t=n.$implicit;Qg("cannot-toggle",t.children.length===0)("open",t.isOpen()),DE(2),iT(t.children.length>0?2:3),DE(3),nm(t.text),DE(),iT(t.isOpen()?6:-1);}}function q(e,n){if(e&1&&(Qi(0,"sh-list"),cT(1,X,7,7,null,null,V),Hl()),e&2){let t=n.$implicit;zg("padding-left",t.level*.25,"rem"),DE(),lT(t.children);}}function H(e,n){e&1&&Ig(0);}var S=class e{#e=T(m);treeStructure=Nt(()=>{let n=this.#e.systemInfo();return this.processObject(n,0)});toggleNode(n){n.isOpen.update(t=>!t);}processObject(n,t){let o=[];for(let i in n)typeof n[i]=="object"?o.push({id:i,text:i,children:this.processObject(n[i],t+1),level:t,isOpen:Ue(false)}):o.push({id:i,text:`${i}: ${n[i]}`,children:[],level:t,isOpen:Ue(false)});return o}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=dw({type:e,selectors:[["app-server-settings"]],decls:5,vars:6,consts:()=>{let n;return n=$localize`System info`,[["recursiveTree",""],["treeNode",""],n,[4,"ngTemplateOutlet","ngTemplateOutletContext"],["action","",3,"click"],[3,"open"],[1,"text"]]},template:function(t,o){if(t&1&&(Qi(0,"h3"),XT(1,2),Hl(),ig(2,q,3,2,"ng-template",null,0,sb)(4,H,1,0,"ng-container",3)),t&2){let i=uC(3);DE(4),gg("ngTemplateOutlet",i)("ngTemplateOutletContext",ZC(4,L,ZC(2,Y,o.treeStructure())));}},dependencies:[c,N,ei],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;padding:0 2.5rem}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}sh-icon[_ngcontent-%COMP%]{font-size:1rem}sh-list[_ngcontent-%COMP%]{padding:0}sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]{padding:0}sh-list[_ngcontent-%COMP%] [action].cannot-toggle[_ngcontent-%COMP%]{cursor:initial}"]})};export{S as default};
1
+ import {c}from'./chunk-wyNyzSXi.js';import {T,m,N as Nt,U as Ue,d as dw,f as N,bZ as ei,Q as Qi,X as XT,H as Hl,bf as ig,c2 as uC,D as DE,z as gg,a_ as ZC,b_ as Ig,a1 as cT,ag as zg,a2 as lT,k as gT,F as Fg,S as Sd,n as nC,x as xd,o as oT,q as PC,I as Qg,i as iT,E as nm,aF as YC,c4 as sb}from'./main-KFKZO6SJ.js';var Y=e=>({children:e,level:0}),L=e=>({$implicit:e}),j=(e,n)=>({children:e,level:n}),V=(e,n)=>n.id;function z(e,n){if(e&1&&(Qi(0,"sh-icon"),PC(1,"caret-down"),Hl()),e&2){let t=nC().$implicit;Qg("open",t.isOpen());}}function B(e,n){e&1&&(Qi(0,"sh-icon"),PC(1,"dot"),Hl());}function J(e,n){e&1&&Ig(0);}function U(e,n){if(e&1&&ig(0,J,1,0,"ng-container",3),e&2){let t=nC().$implicit,o=nC().$implicit;nC();let i=uC(3);gg("ngTemplateOutlet",i)("ngTemplateOutletContext",ZC(5,L,YC(2,j,t.children,o.level+1)));}}function X(e,n){if(e&1){let t=gT();Qi(0,"div",4,1),Fg("click",function(){let i=Sd(t).$implicit,G=nC(2);return xd(i.children.length>0&&G.toggleNode(i))}),oT(2,z,2,2,"sh-icon",5)(3,B,2,0,"sh-icon"),Qi(4,"div",6),PC(5),Hl()(),oT(6,U,1,7,"ng-container");}if(e&2){let t=n.$implicit;Qg("cannot-toggle",t.children.length===0)("open",t.isOpen()),DE(2),iT(t.children.length>0?2:3),DE(3),nm(t.text),DE(),iT(t.isOpen()?6:-1);}}function q(e,n){if(e&1&&(Qi(0,"sh-list"),cT(1,X,7,7,null,null,V),Hl()),e&2){let t=n.$implicit;zg("padding-left",t.level*.25,"rem"),DE(),lT(t.children);}}function H(e,n){e&1&&Ig(0);}var S=class e{#e=T(m);treeStructure=Nt(()=>{let n=this.#e.systemInfo();return this.processObject(n,0)});toggleNode(n){n.isOpen.update(t=>!t);}processObject(n,t){let o=[];for(let i in n)typeof n[i]=="object"?o.push({id:i,text:i,children:this.processObject(n[i],t+1),level:t,isOpen:Ue(false)}):o.push({id:i,text:`${i}: ${n[i]}`,children:[],level:t,isOpen:Ue(false)});return o}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=dw({type:e,selectors:[["app-server-settings"]],decls:5,vars:6,consts:()=>{let n;return n=$localize`System info`,[["recursiveTree",""],["treeNode",""],n,[4,"ngTemplateOutlet","ngTemplateOutletContext"],["action","",3,"click"],[3,"open"],[1,"text"]]},template:function(t,o){if(t&1&&(Qi(0,"h3"),XT(1,2),Hl(),ig(2,q,3,2,"ng-template",null,0,sb)(4,H,1,0,"ng-container",3)),t&2){let i=uC(3);DE(4),gg("ngTemplateOutlet",i)("ngTemplateOutletContext",ZC(4,L,ZC(2,Y,o.treeStructure())));}},dependencies:[c,N,ei],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;padding:0 2.5rem}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}sh-icon[_ngcontent-%COMP%]{font-size:1rem}sh-list[_ngcontent-%COMP%]{padding:0}sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]{padding:0}sh-list[_ngcontent-%COMP%] [action].cannot-toggle[_ngcontent-%COMP%]{cursor:initial}"]})};export{S as default};
@@ -1 +1 @@
1
- import {w}from'./chunk-DiZeSQXj.js';import {I}from'./chunk-DV2SIgNN.js';import {e as ee}from'./chunk-D_JCqKo8.js';import'./chunk-w_Hs_Uxi.js';import'./chunk-D1wHRltX.js';import'./chunk-CBdr-6_u.js';import'./chunk-BZqhgAZ-.js';import'./chunk-B9zNFJSv.js';import {c as c$1}from'./chunk-COgNe44h.js';import {D}from'./chunk-BAZ5npJw.js';import {T,aw as W,a5 as g,U as Ue,aG as pt$1,N as Nt$1,d as dw,_ as _t$1,f as N,v,aH as m,aI as c,aJ as ci,k as gT,j as mg,Q as Qi,O as Og,P as Pg,H as Hl,ak as cm,o as oT,s as sm,X as XT,D as DE,al as BC,i as iT,w as im,S as Sd,l as HC,x as xd,ab as C,b as g1,aK as pb,ay as $u,C as Bu,aL as hi,a1 as cT,a2 as lT,t as tC,q as PC,aM as tb,n as nC,ao as $C,aa as Gl,aN as ob,z as gg,aj as l,ap as sT,F as Fg,E as nm,aB as rm,I as Qg,aO as om,aP as Ul,aQ as Wl,aR as rb,au as Lg,av as eC,aS as ib,aT as ay}from'./main-PXGZLKMN.js';import'./chunk-MvQwR7nW.js';import'./chunk-SycscfJp.js';import {L,$}from'./chunk-D28lTX0k.js';import {d}from'./chunk-DQW8lSiz.js';import'./chunk-CMmgPgiU.js';import'./chunk-C9EdrQe6.js';import'./chunk-Drc5kcUX.js';import'./chunk-B-fklW6A.js';function Dn(n,t){n&1&&mg(0,"sh-progress-bar",58);}function Pn(n,t){n&1&&mg(0,"div",61);}function Rn(n,t){n&1&&mg(0,"div",61);}function In(n,t){n&1&&mg(0,"div",62);}function $n(n,t){n&1&&mg(0,"div",63);}function Mn(n,t){if(n&1&&(Qi(0,"details",72)(1,"summary"),Og(2,15),mg(3,"sh-icon"),Qi(4,"div",74),mg(5,"sh-icon",66),Hl(),Pg(),Hl(),Qi(6,"div",75)(7,"p"),XT(8,16),tb(9,"date"),Hl(),Qi(10,"p"),XT(11,17),tb(12,"date"),Hl(),Qi(13,"p"),XT(14,18),tb(15,"durationFormat"),Hl(),Qi(16,"p"),XT(17,19),Hl(),mg(18,"sh-divider"),Qi(19,"p"),XT(20,20),Hl(),Qi(21,"p"),XT(22,21),Hl()()(),Qi(23,"details",72)(24,"summary"),Og(25,22),mg(26,"sh-icon"),Qi(27,"div",74),mg(28,"sh-icon",66),Hl(),Pg(),Hl(),Qi(29,"div",75)(30,"p"),XT(31,23),tb(32,"date"),Hl(),Qi(33,"p"),XT(34,24),tb(35,"date"),Hl(),Qi(36,"p"),XT(37,25),tb(38,"durationFormat"),Hl(),mg(39,"sh-divider"),Qi(40,"p"),XT(41,26),tb(42,"bytes"),Hl(),Qi(43,"p"),XT(44,27),tb(45,"bytes"),Hl(),Qi(46,"p"),XT(47,28),tb(48,"bytes"),Hl(),mg(49,"sh-divider"),Qi(50,"p"),XT(51,29),Hl(),Qi(52,"p"),XT(53,30),Hl()()()),n&2){let e=nC(2).$implicit;DE(9),Lg(ob(9,17,e.data?.TestResults?.BeginTime,"medium")),eC(8),DE(3),Lg(ob(12,20,e.data?.TestResults?.EndTime,"medium")),eC(11),DE(3),Lg(rb(15,23,e.data?.TestResults?.Duration)),eC(14),DE(2),Lg(e.data?.TestResults?.VerificationsActualLength),eC(17),DE(3),Lg(e.data?.TestResults?.WarningsActualLength),eC(20),DE(2),Lg(e.data?.TestResults?.ErrorsActualLength),eC(22),DE(10),Lg(ob(32,25,e.data?.CompactResults?.BeginTime,"medium")),eC(31),DE(3),Lg(ob(35,28,e.data?.CompactResults?.EndTime,"medium")),eC(34),DE(3),Lg(rb(38,31,e.data?.CompactResults?.Duration)),eC(37),DE(4),Lg(e.data?.CompactResults?.DeletedFileCount)(ib(42,33,e.data?.CompactResults?.DeletedFileSize,true,true)),eC(41),DE(3),Lg(e.data?.CompactResults?.DownloadedFileCount)(ib(45,37,e.data?.CompactResults?.DownloadedFileSize,true,true)),eC(44),DE(3),Lg(e.data?.CompactResults?.UploadedFileCount)(ib(48,41,e.data?.CompactResults?.UploadedFileSize,true,true)),eC(47),DE(3),Lg(e.data?.CompactResults?.WarningsActualLength),eC(51),DE(2),Lg(e.data?.CompactResults?.ErrorsActualLength),eC(53);}}function fn(n,t){n&1&&(Qi(0,"p"),PC(1,"No messages"),Hl());}function hn(n,t){n&1&&(Og(0,43,1),mg(1,"sh-icon"),Pg());}function yn(n,t){n&1&&(Og(0,43,2),mg(1,"sh-icon"),Pg());}function vn(n,t){if(n&1){let e=gT();Qi(0,"div",76)(1,"code"),PC(2),Hl(),Qi(3,"button",77),Fg("click",function(F){let c=Sd(e).$implicit,L=nC(5);return xd(L.copyToClipboard(F,c,c))}),Og(4,43),oT(5,hn,2,0,"sh-icon")(6,yn,2,0,"sh-icon"),Pg(),Hl()();}if(n&2){let e=t.$implicit,o=nC(5);DE(2),nm(e),DE(3),iT(o.copied()==e?5:6);}}function Bn(n,t){n&1&&(Qi(0,"p"),PC(1,"No warnings"),Hl());}function xn(n,t){n&1&&(Og(0,44,1),mg(1,"sh-icon"),Pg());}function bn(n,t){n&1&&(Og(0,44,2),mg(1,"sh-icon"),Pg());}function kn(n,t){if(n&1){let e=gT();Qi(0,"div",76)(1,"code"),PC(2),Hl(),Qi(3,"button",77),Fg("click",function(F){let c=Sd(e).$implicit,L=nC(5);return xd(L.copyToClipboard(F,c,c))}),Og(4,44),oT(5,xn,2,0,"sh-icon")(6,bn,2,0,"sh-icon"),Pg(),Hl()();}if(n&2){let e=t.$implicit,o=nC(5);DE(2),nm(e),DE(3),iT(o.copied()==e?5:6);}}function Kn(n,t){n&1&&(Qi(0,"p"),PC(1,"No errors"),Hl());}function Un(n,t){n&1&&(Og(0,45,1),mg(1,"sh-icon"),Pg());}function wn(n,t){n&1&&(Og(0,45,2),mg(1,"sh-icon"),Pg());}function Jn(n,t){if(n&1){let e=gT();Qi(0,"div",76)(1,"code"),PC(2),Hl(),Qi(3,"button",77),Fg("click",function(F){let c=Sd(e).$implicit,L=nC(5);return xd(L.copyToClipboard(F,c,c))}),Og(4,45),oT(5,Un,2,0,"sh-icon")(6,wn,2,0,"sh-icon"),Pg(),Hl()();}if(n&2){let e=t.$implicit,o=nC(5);DE(2),nm(e),DE(3),iT(o.copied()==e?5:6);}}function Xn(n,t){if(n&1&&(Qi(0,"details",72)(1,"summary"),Og(2,31),mg(3,"sh-icon"),Qi(4,"div",74),mg(5,"sh-icon",66),Hl(),Pg(),Hl(),Qi(6,"div",75)(7,"p"),XT(8,32),tb(9,"date"),Hl(),Qi(10,"p"),XT(11,33),tb(12,"date"),Hl(),Qi(13,"p"),XT(14,34),tb(15,"durationFormat"),Hl(),mg(16,"sh-divider"),Qi(17,"p"),XT(18,35),tb(19,"bytes"),Hl(),Qi(20,"p"),XT(21,36),Hl(),Qi(22,"p"),XT(23,37),Hl(),Qi(24,"p"),XT(25,38),Hl(),Qi(26,"p"),XT(27,39),Hl(),mg(28,"sh-divider"),Qi(29,"details",78)(30,"summary"),Og(31,40),mg(32,"sh-icon"),Qi(33,"div",74),mg(34,"sh-icon",66),Hl(),Pg(),Hl(),Qi(35,"div",75),oT(36,fn,2,0,"p"),cT(37,vn,7,2,"div",76,sT),Hl()(),Qi(39,"details",79)(40,"summary"),Og(41,41),mg(42,"sh-icon"),Qi(43,"div",74),mg(44,"sh-icon",66),Hl(),Pg(),Hl(),Qi(45,"div",75),oT(46,Bn,2,0,"p"),cT(47,kn,7,2,"div",76,sT),Hl()(),Qi(49,"details",80)(50,"summary"),Og(51,42),mg(52,"sh-icon"),Qi(53,"div",74),mg(54,"sh-icon",66),Hl(),Pg(),Hl(),Qi(55,"div",75),oT(56,Kn,2,0,"p"),cT(57,Jn,7,2,"div",76,sT),Hl()(),mg(59,"sh-divider"),Hl()()),n&2){let e=t.$implicit;DE(5),Lg(e.Destination),eC(2),DE(4),Lg(ob(9,16,e.BeginTime,"medium")),eC(8),DE(3),Lg(ob(12,19,e.EndTime,"medium")),eC(11),DE(3),Lg(rb(15,22,e.Duration)),eC(14),DE(4),Lg(e.CopiedFileCount)(ib(19,24,e.CopiedFileSize,true,true)),eC(18),DE(2),Lg(e.DeletedFileCount),eC(21),DE(2),Lg(e.RenamedFileCount),eC(23),DE(2),Lg(e.VerifiedFileCount),eC(25),DE(2),Lg(e.FailedVerificationCount),eC(27),DE(7),Lg(e.MessagesActualLength),eC(31),DE(2),iT(e.Messages?.length===0?36:-1),DE(),lT(e.Messages),DE(7),Lg(e.WarningsActualLength),eC(41),DE(2),iT(e.Warnings?.length===0?46:-1),DE(),lT(e.Warnings),DE(7),Lg(e.ErrorsActualLength),eC(51),DE(2),iT(e.Errors?.length===0?56:-1),DE(),lT(e.Errors);}}function zn(n,t){if(n&1&&cT(0,Xn,60,28,"details",72,sT),n&2){let e=nC(2).$implicit;lT(e.data?.RemoteSynchronizationResults);}}function Vn(n,t){if(n&1&&(Qi(0,"details",72)(1,"summary"),Og(2,46),mg(3,"sh-icon"),Qi(4,"div",74),mg(5,"sh-icon",66),Hl(),Pg(),Hl(),Qi(6,"div",75)(7,"p"),XT(8,47),tb(9,"date"),Hl(),Qi(10,"p"),XT(11,48),tb(12,"date"),Hl(),Qi(13,"p"),XT(14,49),tb(15,"durationFormat"),Hl(),mg(16,"sh-divider"),Qi(17,"p"),XT(18,50),Hl(),Qi(19,"p"),XT(20,51),Hl(),Qi(21,"p"),XT(22,52),Hl()()()),n&2){let e=nC(2).$implicit;DE(9),Lg(ob(9,6,e.data?.LockResults?.BeginTime,"medium")),eC(8),DE(3),Lg(ob(12,9,e.data?.LockResults?.EndTime,"medium")),eC(11),DE(3),Lg(rb(15,12,e.data?.LockResults?.Duration)),eC(14),DE(3),Lg(e.data?.LockResults?.VolumesRead),eC(18),DE(2),Lg(e.data?.LockResults?.VolumesUpdated),eC(20),DE(2),Lg(e.data?.LockResults?.ParsedResult),eC(22);}}function Hn(n,t){if(n&1&&(Qi(0,"code"),PC(1),tb(2,"json"),Hl()),n&2){let e=t.$implicit;DE(),nm(rb(2,1,e));}}function Wn(n,t){if(n&1&&(Qi(0,"details",72)(1,"summary"),Og(2,53),mg(3,"sh-icon"),Qi(4,"div",74),mg(5,"sh-icon",66),Hl(),Pg(),Hl(),Qi(6,"div",75),cT(7,Hn,3,3,"code",null,sT),Hl()()),n&2){let e=nC(2).$implicit;DE(5),Lg(e.data.VerificationsActualLength),eC(2),DE(2),lT(e.data.Verifications);}}function jn(n,t){n&1&&(Qi(0,"sh-icon"),PC(1,"check"),Hl());}function qn(n,t){n&1&&(Qi(0,"sh-icon"),PC(1,"copy"),Hl());}function Qn(n,t){n&1&&(Ul(0),Og(1,54),mg(2,"sh-icon"),Pg(),Wl());}function Yn(n,t){n&1&&(Ul(0),Og(1,55),mg(2,"sh-icon"),Pg(),Wl());}function Zn(n,t){n&1&&(Ul(0),Og(1,56),mg(2,"sh-icon"),Pg(),Wl());}function et(n,t){if(n&1){let e=gT();Qi(0,"button",82),Fg("click",function(){Sd(e),nC();let F=$C(0),c=nC(3);return xd(c.toggleWarningSuppression(F.MessageId))}),oT(1,Qn,3,0,"ng-container")(2,Yn,3,0,"ng-container")(3,Zn,3,0,"ng-container"),Hl();}if(n&2){nC();let e=$C(0),o=nC(3),F=o.isWarningSuppressed(e.MessageId);gg("disabled",o.isSuppressingWarning()),DE(),iT(o.isSuppressingWarning()?1:F?2:3);}}function nt(n,t){if(n&1){let e=gT();cm(0),Qi(1,"div",76)(2,"code"),PC(3),Hl(),Qi(4,"button",77),Fg("click",function(F){let c=Sd(e).$implicit,L=nC(3);return xd(L.copyToClipboard(F,c,c))}),PC(5," Copy "),oT(6,jn,2,0,"sh-icon")(7,qn,2,0,"sh-icon"),Hl(),oT(8,et,4,2,"button",81),Hl();}if(n&2){let e=t.$implicit,o=nC(3),F=BC(o.parseWarning(e));DE(3),nm(e),DE(3),iT(o.copied()==e?6:7),DE(2),iT(F?.MessageId?8:-1);}}function tt(n,t){n&1&&(Qi(0,"p"),PC(1,"No errors"),Hl());}function it(n,t){n&1&&(Og(0,57,1),mg(1,"sh-icon"),Pg());}function ot(n,t){n&1&&(Og(0,57,2),mg(1,"sh-icon"),Pg());}function _t(n,t){if(n&1){let e=gT();Qi(0,"div",76)(1,"code"),PC(2),Hl(),Qi(3,"button",77),Fg("click",function(F){let c=Sd(e).$implicit,L=nC(3);return xd(L.copyToClipboard(F,c,c))}),Og(4,57),oT(5,it,2,0,"sh-icon")(6,ot,2,0,"sh-icon"),Pg(),Hl()();}if(n&2){let e=t.$implicit,o=nC(3);DE(2),nm(e),DE(3),iT(o.copied()==e?5:6);}}function at(n,t){n&1&&(Qi(0,"sh-icon"),PC(1,"check"),Hl());}function Ft(n,t){n&1&&(Qi(0,"sh-icon"),PC(1,"copy"),Hl());}function rt(n,t){if(n&1){let e=gT();Qi(0,"section",67)(1,"sh-toggle-card",68),Ul(2,69),Qi(3,"h3"),XT(4,0),Hl(),Wl(),Ul(5,70),Qi(6,"p"),XT(7,1),tb(8,"date"),Hl(),Qi(9,"p"),XT(10,2),tb(11,"date"),Hl(),Qi(12,"p"),XT(13,3),tb(14,"durationFormat"),Hl(),Wl(),Hl(),Qi(15,"sh-toggle-card",68),Ul(16,69),Qi(17,"h3"),XT(18,4),Hl(),Wl(),Ul(19,70),Qi(20,"p"),XT(21,5),tb(22,"bytes"),Hl(),Qi(23,"p"),XT(24,6),tb(25,"bytes"),Hl(),Qi(26,"p"),XT(27,7),tb(28,"bytes"),Hl(),Qi(29,"p"),XT(30,8),tb(31,"bytes"),Hl(),Qi(32,"p"),XT(33,9),Hl(),Qi(34,"p"),XT(35,10),Hl(),Qi(36,"p"),XT(37,11),Hl(),Wl(),Hl(),Qi(38,"div",71),mg(39,"sh-divider"),oT(40,Mn,54,45),oT(41,zn,2,0),oT(42,Vn,23,14,"details",72),oT(43,Wn,9,1,"details",72),Qi(44,"details",73)(45,"summary"),Og(46,12),mg(47,"sh-icon"),Qi(48,"div",74),mg(49,"sh-icon",66),Hl(),Pg(),Hl(),Qi(50,"div",75),cT(51,nt,9,4,"div",76,sT),Hl()(),Qi(53,"details",73)(54,"summary"),Og(55,13),mg(56,"sh-icon"),Qi(57,"div",74),mg(58,"sh-icon",66),Hl(),Pg(),Hl(),Qi(59,"div",75),oT(60,tt,2,0,"p"),cT(61,_t,7,2,"div",76,sT),Hl()(),mg(63,"sh-divider"),Qi(64,"details")(65,"summary"),Og(66,14),mg(67,"sh-icon"),Qi(68,"div",74),mg(69,"sh-icon",66),Hl(),Pg(),Hl(),Qi(70,"code")(71,"button",77),Fg("click",function(F){Sd(e);let c=nC().$implicit,L=nC();return xd(L.copyToClipboard(F,L.stringify(c.data),"all"))}),PC(72," Copy "),oT(73,at,2,0,"sh-icon")(74,Ft,2,0,"sh-icon"),Hl(),PC(75),tb(76,"json"),Hl()()()();}if(n&2){let e=nC().$implicit,o=nC();DE(),gg("disableToggle",true),DE(7),Lg(ob(8,27,e.data?.BeginTime,"medium")),eC(7),DE(3),Lg(ob(11,30,e.data?.EndTime,"medium")),eC(10),DE(3),Lg(rb(14,33,e.data?.Duration)),eC(13),DE(),gg("disableToggle",true),DE(7),Lg(e.data?.ExaminedFiles)(ib(22,35,e.data?.SizeOfExaminedFiles,true,true)),eC(21),DE(3),Lg(e.data?.OpenedFiles)(ib(25,39,e.data?.SizeOfOpenedFiles,true,true)),eC(24),DE(3),Lg(e.data?.AddedFiles)(ib(28,43,e.data?.SizeOfAddedFiles,true,true)),eC(27),DE(3),Lg(e.data?.ModifiedFiles)(ib(31,47,e.data?.SizeOfModifiedFiles,true,true)),eC(30),DE(2),Lg(e.data?.DeletedFiles),eC(33),DE(2),Lg(e.data?.TooLargeFiles),eC(35),DE(2),Lg(e.data?.FilesWithError),eC(37),DE(3),iT(e.data?.TestResults?40:-1),DE(),iT(e.data?.RemoteSynchronizationResults?41:-1),DE(),iT(e.data?.LockResults?42:-1),DE(),iT(e.data?.MainOperation==="Test"?43:-1),DE(),gg("open",e.id===o.openEntry()&&o.openSection()==="warnings"),DE(5),Lg(e.data?.WarningsActualLength),eC(46),DE(2),lT(e.data?.Warnings),DE(2),gg("open",e.id===o.openEntry()&&o.openSection()==="errors"),DE(5),Lg(e.data?.ErrorsActualLength),eC(55),DE(2),iT(e.data?.Errors?.length===0?60:-1),DE(),lT(e.data?.Errors),DE(12),iT(o.copied()=="all"?73:74),DE(2),Gl(" ",rb(76,51,e.data)," ");}}function lt(n,t){if(n&1){let e=gT();Qi(0,"article",59)(1,"header",60),Fg("click",function(){let F=Sd(e).$implicit,c=nC();return xd(c.toggleOpenEntry(F))}),oT(2,Pn,1,0,"div",61)(3,Rn,1,0,"div",61)(4,In,1,0,"div",62)(5,$n,1,0,"div",63),Qi(6,"h3"),PC(7),tb(8,"date"),Hl(),Qi(9,"p"),PC(10),Hl(),mg(11,"div",64),Qi(12,"div",65)(13,"sh-icon",66),PC(14,"caret-down"),Hl()()(),oT(15,rt,77,53,"section",67),Hl();}if(n&2){let e=t.$implicit,o=nC(),F=e.data?.ParsedResult||"Unknown";DE(2),iT(F=="Fatal"?2:F=="Error"?3:F=="Warning"?4:5),DE(5),nm(ob(8,7,e.timestamp,"medium")),DE(3),rm(" ",e.data?.MainOperation," ",o.getLocalizedSummary(e)," "),DE(3),Qg("open",e.id===o.openEntry()),DE(2),iT(e.id===o.openEntry()?15:-1);}}var De=class n{#e=T(C);#n=T(g);#t=new m;#i=new c;backupId=g1.required();isSuppressingWarning=Ue(false);copied=Ue(null);backupResource=pb({params:()=>({id:this.backupId()}),loader:({params:t})=>ay(this.#e.getApiV1BackupById({id:t.id}))});suppressedWarningIds=Nt$1(()=>{let t=this.backupResource.value();if(!t?.Backup?.Settings)return new Set;let e=t.Backup.Settings.find(o=>o.Name==="--suppress-warnings");return e?.Value?new Set(e.Value.split(",").map(o=>o.trim()).filter(Boolean)):new Set});openEntry=Ue(null);openSection=Ue(null);pagination=Ue({offset:0,pagesize:100});resource=$({params:()=>l({id:this.backupId()},this.pagination()),stream:({params:t})=>this.#e.getApiV1BackupByIdLog({id:t.id,pagesize:100}).pipe(pt$1(e=>e.map(o=>({id:o.ID,operationId:o.OperationID,timestamp:o.Timestamp*1e3,type:o.Type,data:JSON.parse(o.Message),exception:JSON.stringify(o.Exception)==="{}"?null:o.Exception}))))});getLocalizedSummary(t){let e=t.data?.ErrorsActualLength??0,o=t.data?.WarningsActualLength??0,F=[];if(t.data?.MainOperation=="Backup"){if(t.data?.Duration){let c=this.#i.transform(t.data?.Duration,true);c.startsWith("0h ")&&(c=c.slice(3)),c.startsWith("0m ")&&(c=c.slice(3)),F.push($localize`took ${c}`);}t.data?.BackendStatistics?.BytesUploaded&&F.push($localize`uploaded ${this.#t.transform(t.data?.BackendStatistics?.BytesUploaded)}`),t.data?.BackendStatistics?.KnownFileSize&&F.push($localize`backup size ${this.#t.transform(t.data?.BackendStatistics?.KnownFileSize)}`);}return e!==0&&F.push($localize`:@@errorCount:${e} error${e===1?"":"s"}`),o!==0&&F.push($localize`:@@warningCount:${o} warning${o===1?"":"s"}`),F.length===0?"":`(${F.join(", ")})`}toggleOpenEntry(t){let e=t.id;if(this.openEntry()===e){this.openEntry.set(null),this.openSection.set(null);return}let o=t.data?.ErrorsActualLength??0,F=t.data?.WarningsActualLength??0;o>0?this.openSection.set("errors"):F>0?this.openSection.set("warnings"):this.openSection.set(null),this.openEntry.set(e);}parseWarning(t){let e=t.match(/^(.*?) - \[(.*?)-(.*?)-(.*?)\]: (.*)$/);if(!e)return null;let[,o,F,c,L,G]=e;return {Timestamp:o,LogLevel:F,Source:c,MessageId:L,Message:G}}isWarningSuppressed(t){return this.suppressedWarningIds().has(t)}toggleWarningSuppression(t){let e=this.backupId();!e||!t||(this.isSuppressingWarning.set(true),this.#e.getApiV1BackupById({id:e}).pipe($u(o=>{let F=o.Backup?.Settings??[],c=F.findIndex(N=>N.Name==="--suppress-warnings"),L=this.isWarningSuppressed(t),G="";if(c>=0){let v=(F[c].Value??"").split(",").map(U=>U.trim()).filter(Boolean);L?v=v.filter(U=>U!==t):v.includes(t)||v.push(t),G=v.join(",");}else L||(G=t);let k=F.map(N=>({Name:N.Name,Value:N.Value,Filter:N.Filter}));return c>=0?G===""?k.splice(c,1):k[c]={Name:"--suppress-warnings",Value:G,Filter:null}:G!==""&&k.push({Name:"--suppress-warnings",Value:G,Filter:null}),this.#e.putApiV1BackupById({id:e,requestBody:{Backup:{Name:o.Backup?.Name,Description:o.Backup?.Description,DBPath:o.Backup?.DBPath,Tags:o.Backup?.Tags??[],TargetURL:o.Backup?.TargetURL,ConnectionStringID:o.Backup?.ConnectionStringID,Sources:o.Backup?.Sources??[],Settings:k,Filters:o.Backup?.Filters?.map(N=>({Expression:N.Expression,Include:N.Include,Order:N.Order})),Metadata:o.Backup?.Metadata??{},AdditionalTargetURLs:o.Backup?.AdditionalTargetURLs?.map(N=>({TargetUrl:N.TargetUrl,UrlKey:N.UrlKey,Mode:N.Mode,Interval:N.Interval,ConnectionStringID:N.ConnectionStringID,Options:N.Options}))},Schedule:o.Schedule?{Repeat:o.Schedule.Repeat,Time:o.Schedule.Time,AllowedDays:o.Schedule.AllowedDays}:void 0}})}),Bu(()=>this.isSuppressingWarning.set(false))).subscribe({next:()=>{this.#n.getBackups(true),this.backupResource.reload();},error:o=>{console.error("Failed to toggle warning suppression:",o);}}));}copyToClipboard(t,e,o){t.stopPropagation(),navigator.clipboard.writeText(e),this.copied.set(o),setTimeout(()=>{this.copied.set(null);},2e3);}stringify(t){return JSON.stringify(t,null,2)}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=dw({type:n,selectors:[["app-general-log"]],inputs:{backupId:[1,"backupId"]},decls:3,vars:1,consts:()=>{let t;t=$localize`Time`;let e;e=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let o;o=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let F;F=$localize`Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let c;c=$localize`Source files`;let L;L=$localize` Evaluated: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let G;G=$localize` Opened: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let k;k=$localize` Added: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let N;N=$localize` Modified: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let v;v=$localize`Deleted: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let U;U=$localize`Too large: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Q;Q=$localize`Files with error: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let A;A=$localize`${"\uFFFD#47\uFFFD"}:START_TAG_SH_ICON:warning-circle${"[\uFFFD/#47\uFFFD|\uFFFD/#49\uFFFD]"}:CLOSE_TAG_SH_ICON: Warnings ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#48\uFFFD"}:START_TAG_DIV:${"\uFFFD#49\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#47\uFFFD|\uFFFD/#49\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#48\uFFFD"}:CLOSE_TAG_DIV:`,A=tC(A);let ne;ne=$localize`${"\uFFFD#56\uFFFD"}:START_TAG_SH_ICON:warning${"[\uFFFD/#56\uFFFD|\uFFFD/#58\uFFFD]"}:CLOSE_TAG_SH_ICON: Errors ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#57\uFFFD"}:START_TAG_DIV:${"\uFFFD#58\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#56\uFFFD|\uFFFD/#58\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#57\uFFFD"}:CLOSE_TAG_DIV:`,ne=tC(ne);let te;te=$localize`${"\uFFFD#67\uFFFD"}:START_TAG_SH_ICON:notepad${"[\uFFFD/#67\uFFFD|\uFFFD/#69\uFFFD]"}:CLOSE_TAG_SH_ICON: Complete log ${"\uFFFD#68\uFFFD"}:START_TAG_DIV:${"\uFFFD#69\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#67\uFFFD|\uFFFD/#69\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#68\uFFFD"}:CLOSE_TAG_DIV:`,te=tC(te);let ie;ie=$localize`${"\uFFFD#3\uFFFD"}:START_TAG_SH_ICON:circle-half-tilt${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SH_ICON: Test phase ${"\uFFFD#4\uFFFD"}:START_TAG_DIV:${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_DIV:`,ie=tC(ie);let Ie;Ie=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let $e;$e=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Me;Me=$localize`Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let fe;fe=$localize`Verifications: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let he;he=$localize`Warnings: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let ye;ye=$localize`Errors: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let oe;oe=$localize`${"\uFFFD#26\uFFFD"}:START_TAG_SH_ICON:file-archive${"[\uFFFD/#26\uFFFD|\uFFFD/#28\uFFFD]"}:CLOSE_TAG_SH_ICON: Compact phase ${"\uFFFD#27\uFFFD"}:START_TAG_DIV:${"\uFFFD#28\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#26\uFFFD|\uFFFD/#28\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#27\uFFFD"}:CLOSE_TAG_DIV:`,oe=tC(oe);let ve;ve=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Be;Be=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let xe;xe=$localize` Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION: `;let be;be=$localize` Deleted files: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let ke;ke=$localize` Downloaded files: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let Ke;Ke=$localize` Uploaded files: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let Ue;Ue=$localize`Warnings: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let we;we=$localize`Errors: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let _e;_e=$localize`${"\uFFFD#3\uFFFD"}:START_TAG_SH_ICON:arrows-clockwise${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SH_ICON: Secondary destination: ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#4\uFFFD"}:START_TAG_DIV:${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_DIV:`,_e=tC(_e);let Je;Je=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Xe;Xe=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let ze;ze=$localize`Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ve;Ve=$localize` Files copied: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let He;He=$localize`Files deleted: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let We;We=$localize`Files renamed: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let je;je=$localize`Files verified: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let qe;qe=$localize`Failed verifications: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let ae;ae=$localize`${"\uFFFD#32\uFFFD"}:START_TAG_SH_ICON:info${"[\uFFFD/#32\uFFFD|\uFFFD/#34\uFFFD]"}:CLOSE_TAG_SH_ICON: Messages ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#33\uFFFD"}:START_TAG_DIV:${"\uFFFD#34\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#32\uFFFD|\uFFFD/#34\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#33\uFFFD"}:CLOSE_TAG_DIV:`,ae=tC(ae);let Fe;Fe=$localize`${"\uFFFD#42\uFFFD"}:START_TAG_SH_ICON:warning-circle${"[\uFFFD/#42\uFFFD|\uFFFD/#44\uFFFD]"}:CLOSE_TAG_SH_ICON: Warnings ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#43\uFFFD"}:START_TAG_DIV:${"\uFFFD#44\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#42\uFFFD|\uFFFD/#44\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#43\uFFFD"}:CLOSE_TAG_DIV:`,Fe=tC(Fe);let re;re=$localize`${"\uFFFD#52\uFFFD"}:START_TAG_SH_ICON:warning${"[\uFFFD/#52\uFFFD|\uFFFD/#54\uFFFD]"}:CLOSE_TAG_SH_ICON: Errors ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#53\uFFFD"}:START_TAG_DIV:${"\uFFFD#54\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#52\uFFFD|\uFFFD/#54\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#53\uFFFD"}:CLOSE_TAG_DIV:`,re=tC(re);let le;le=$localize` Copy ${"\uFFFD*5:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:check${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*5:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*6:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:copy${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*6:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,le=tC(le);let se;se=$localize` Copy ${"\uFFFD*5:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:check${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*5:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*6:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:copy${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*6:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,se=tC(se);let ce;ce=$localize` Copy ${"\uFFFD*5:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:check${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*5:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*6:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:copy${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*6:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,ce=tC(ce);let ue;ue=$localize`${"\uFFFD#3\uFFFD"}:START_TAG_SH_ICON:lock${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SH_ICON: Lock results ${"\uFFFD#4\uFFFD"}:START_TAG_DIV:${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_DIV:`,ue=tC(ue);let Qe;Qe=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ye;Ye=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ze;Ze=$localize`Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let en;en=$localize`Volumes read: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let nn;nn=$localize`Volumes updated: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let tn;tn=$localize`Parsed result: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let de;de=$localize`${"\uFFFD#3\uFFFD"}:START_TAG_SH_ICON:warning-circle${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SH_ICON: Verifications ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#4\uFFFD"}:START_TAG_DIV:${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_DIV:`,de=tC(de);let on;on=$localize` Updating ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:spinner${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let _n;_n=$localize` Un-suppress ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:bell${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let an;an=$localize` Suppress ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:bell-slash${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let Ee;return Ee=$localize` Copy ${"\uFFFD*5:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:check${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*5:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*6:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:copy${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*6:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,Ee=tC(Ee),[t,e,o,F,c,L,G,k,N,v,U,Q,A,ne,te,ie,Ie,$e,Me,fe,he,ye,oe,ve,Be,xe,be,ke,Ke,Ue,we,_e,Je,Xe,ze,Ve,He,We,je,qe,ae,Fe,re,le,se,ce,ue,Qe,Ye,Ze,en,nn,tn,de,on,_n,an,Ee,[1,"indeterminate","primary"],[1,"log-entry"],[3,"click"],[1,"status","error"],[1,"status","warn"],[1,"status"],[1,"spacer"],[1,"action"],[1,"toggle-indicator"],[1,"log-content"],[3,"disableToggle"],["title",""],["content",""],[1,"extra-info"],["name","details"],["name","details",3,"open"],[1,"actions"],[1,"content"],[1,"warning-item"],["shButton","",1,"small",3,"click"],["name","details-messages"],["name","details-warnings"],["name","details-errors"],["shButton","",1,"small",3,"disabled"],["shButton","",1,"small",3,"click","disabled"]]},template:function(e,o){e&1&&(oT(0,Dn,1,0,"sh-progress-bar",58),cT(1,lt,16,10,"article",59,sT)),e&2&&(iT(o.resource.isLoading()?0:-1),DE(),lT(o.resource.value()));},dependencies:[I,c$1,d,v,N,m,ci,c,hi],styles:["[_nghost-%COMP%]{display:block}.log-entry[_ngcontent-%COMP%]{display:flex;flex-direction:column;cursor:pointer}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;padding:1rem;border-bottom:1px solid var(--base-4);background-color:var(--base-1);cursor:pointer}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]:hover{background-color:var(--base-2)}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-30);margin:0}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-8)}.toggle-indicator[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;height:1.25rem;transition:transform 125ms linear}.toggle-indicator.open[_ngcontent-%COMP%]{transform:rotate(180deg)}details[_ngcontent-%COMP%]{display:flex;flex-direction:column}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]{cursor:pointer;display:flex;align-items:center;gap:.5rem;padding:.75rem;border-radius:var(--shape-2);background-color:var(--base-2)}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]:focus{outline:none}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]:hover{background-color:var(--base-3)}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]::marker{font-size:0}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;flex:1 0;gap:.5rem;-webkit-user-select:none;user-select:none}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;height:2rem;transition:transform 125ms linear}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] sh-icon.toggle-indicator[_ngcontent-%COMP%]{transform:rotate(0)}details[open][_ngcontent-%COMP%] > summary[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] sh-icon.toggle-indicator[_ngcontent-%COMP%]{transform:rotate(180deg)}details[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{padding:.75rem 1rem 0;display:flex;flex-direction:column;gap:.75rem}details[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}details[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{margin-top:.75rem;position:relative}details[_ngcontent-%COMP%] code[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{position:absolute;top:.75rem;right:.75rem}.extra-info[_ngcontent-%COMP%]{grid-column:1/-1;display:flex;flex-direction:column;gap:1rem}.extra-info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-bottom:.75rem}.extra-info[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{white-space:pre-wrap;padding:1rem;display:block;border-radius:var(--shape-2);background-color:var(--base-2)}.log-content[_ngcontent-%COMP%]{padding:1rem;display:grid;grid-template-columns:1fr 1fr;gap:1rem}.status[_ngcontent-%COMP%]{display:block;width:1rem;height:1rem;background-color:var(--success-8);border-radius:50%}.status.error[_ngcontent-%COMP%]{background-color:var(--error-8)}.status.warn[_ngcontent-%COMP%]{background-color:var(--warn-8)}.warning-item[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:.5rem;padding:.75rem;border-radius:var(--shape-2);background-color:var(--base-2)}.warning-item[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{margin:0;white-space:pre-wrap;word-break:break-word}.warning-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{align-self:flex-start;white-space:nowrap}"]})};function st(n,t){n&1&&mg(0,"sh-progress-bar",1);}function ct(n,t){n&1&&(Og(0,0,1),mg(1,"sh-icon"),Pg());}function ut(n,t){n&1&&(Og(0,0,2),mg(1,"sh-icon"),Pg());}function dt(n,t){if(n&1){let e=gT();Qi(0,"section",6)(1,"button",7),Fg("click",function(){Sd(e);let F=nC(),c=F.$implicit,L=F.$index,G=nC();return xd(G.copyToClipboard(c.data,L))}),Og(2,0),oT(3,ct,2,0)(4,ut,2,0),Pg(),Hl(),Qi(5,"code"),PC(6),tb(7,"json"),Hl()();}if(n&2){let e=nC(),o=e.$implicit,F=e.$index,c=nC();DE(),Qg("success",c.copiedFromIndex()===F),DE(2),iT(c.copiedFromIndex()===F?3:4),DE(3),nm(rb(7,4,o.data));}}function Et(n,t){if(n&1){let e=gT();Qi(0,"article",2)(1,"header",3),Fg("click",function(){let F=Sd(e).$implicit,c=nC();return xd(c.toggleOpenEntry(F.id))}),Qi(2,"h3"),PC(3),tb(4,"date"),Hl(),Qi(5,"div",4)(6,"sh-icon",5),PC(7,"caret-down"),Hl()()(),oT(8,dt,8,6,"section",6),Hl();}if(n&2){let e=t.$implicit,o=nC();DE(3),om("",ob(4,6,e.timestamp,"medium"),": ",e.operation," ",e.path),DE(3),Qg("open",e.id===o.openEntry()),DE(2),iT(e.id===o.openEntry()?8:-1);}}var Pe=class n{#e=T(C);backupId=g1.required();openEntry=Ue(null);pagination=Ue({offset:0,pagesize:100});copiedFromIndex=Ue(null);resource=$({params:()=>l({id:this.backupId()},this.pagination()),stream:({params:t})=>this.#e.getApiV1BackupByIdRemotelog({id:t.id,pagesize:100}).pipe(pt$1(e=>e.map((o,F)=>({id:o.ID,operationId:o.OperationID,timestamp:o.Timestamp*1e3,operation:o.Operation,path:o.Path,data:typeof o.Data=="string"?JSON.parse(o.Data):null}))))});toggleOpenEntry(t){if(this.openEntry()===t){this.openEntry.set(null);return}this.openEntry.set(t);}copyToClipboard(t,e){let o=JSON.stringify(t,null,2);navigator.clipboard.writeText(o),this.copiedFromIndex.set(e),setTimeout(()=>{this.copiedFromIndex.set(null);},3e3);}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=dw({type:n,selectors:[["app-remote-log"]],inputs:{backupId:[1,"backupId"]},decls:3,vars:1,consts:()=>{let t;return t=$localize`${"\uFFFD*3:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:check${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON: Copied ${"\uFFFD/*3:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*4:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:copy${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON: Copy to clipboard ${"\uFFFD/*4:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,t=tC(t),[t,[1,"indeterminate","primary"],[1,"log-entry"],[3,"click"],[1,"actions"],[1,"toggle-indicator"],[1,"log-content"],["shButton","",1,"small",3,"click"]]},template:function(e,o){e&1&&(oT(0,st,1,0,"sh-progress-bar",1),cT(1,Et,9,9,"article",2,sT)),e&2&&(iT(o.resource.isLoading()?0:-1),DE(),lT(o.resource.value()));},dependencies:[d,N,hi,ci],styles:["[_nghost-%COMP%]{display:block}.log-entry[_ngcontent-%COMP%]{display:flex;flex-direction:column}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:1rem;border-bottom:1px solid var(--base-4);background-color:var(--base-1);cursor:pointer}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]:hover{background-color:var(--base-2)}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-30);margin:0;-webkit-user-select:none;user-select:none}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-8)}.toggle-indicator[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;height:1.25rem;transition:transform 125ms linear}.toggle-indicator.open[_ngcontent-%COMP%]{transform:rotate(180deg)}.log-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:1rem;position:relative}.log-content[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{position:absolute;top:2rem;right:2rem;background:transparent}code[_ngcontent-%COMP%]{white-space:pre-wrap;padding:1rem;display:block;border-radius:var(--shape-2);background-color:var(--base-2)}"]})};function Ct(n,t){if(n&1&&(PC(0," - "),Ul(1),XT(2,6),Wl(),PC(3),tb(4,"durationFormat")),n&2){nC(2);let e=$C(6);DE(3),Gl(" ",rb(4,1,e.Backup.Metadata?.LastBackupDuration)," ");}}function pt(n,t){n&1&&(Ul(0),XT(1,7),Wl());}function Tt(n,t){if(n&1&&(PC(0),tb(1,"bytes")),n&2){nC(2);let e=$C(6);Gl(" ",rb(1,1,e.Backup.Metadata?.SourceFilesSize)," ");}}function gt(n,t){n&1&&(Ul(0),XT(1,8),Wl());}function St(n,t){if(n&1&&(PC(0),tb(1,"bytes")),n&2){nC(2);let e=$C(6);Gl(" ",rb(1,1,e.Backup.Metadata?.TargetFilesSize)," ");}}function Ot(n,t){n&1&&(Ul(0),XT(1,9),Wl());}function Lt(n,t){if(n&1&&(Qi(0,"sh-chip",20),XT(1,10),Hl()),n&2){nC(2);let e=$C(6);DE(),Lg(e.Backup.Metadata?.BackupListCount),eC(1);}}function Nt(n,t){n&1&&(Qi(0,"sh-chip",21),XT(1,11),Hl());}function mt(n,t){if(n&1&&(Qi(0,"div",14)(1,"div",19)(2,"h3"),PC(3),Qi(4,"sh-icon"),PC(5,"database"),Hl()(),Qi(6,"p")(7,"span"),XT(8,3),Hl(),PC(9),tb(10,"date"),oT(11,Ct,5,3)(12,pt,2,0,"ng-container"),Hl(),Qi(13,"p")(14,"span"),XT(15,4),Hl(),oT(16,Tt,2,3)(17,gt,2,0,"ng-container"),Hl(),Qi(18,"p")(19,"span"),XT(20,5),Hl(),oT(21,St,2,3)(22,Ot,2,0,"ng-container"),Hl()(),oT(23,Lt,2,1,"sh-chip",20)(24,Nt,2,0,"sh-chip",21),Hl()),n&2){let e=nC(),o=$C(6);DE(3),Gl(" ",o.Backup.Name??e.MISSING_BACKUP_NAME," "),DE(6),Gl(" ",ob(10,6,o.Backup.Metadata?.LastBackupFinished,"short")," "),DE(2),iT(o.Backup.Metadata?.LastBackupDuration?11:12),DE(5),iT(o.Backup.Metadata?.SourceFilesSize?16:17),DE(5),iT(o.Backup.Metadata?.TargetFilesSize?21:22),DE(2),iT(o.Backup.Metadata?.BackupListCount?23:24);}}function Gt(n,t){if(n&1&&mg(0,"app-general-log",18),n&2){let e=nC();gg("backupId",e.backupId());}}function At(n,t){if(n&1&&mg(0,"app-remote-log",18),n&2){let e=nC();gg("backupId",e.backupId());}}var Re=class n{#e=T(W);#n=T(g);MISSING_BACKUP_NAME=$localize`Backup name missing`;activeTab=Ue("general");backupId=L(this.#e.params.pipe(pt$1(t=>t.id)));backup=Nt$1(()=>{let t=this.backupId();return t?this.#n.getBackupById(t):null});static \u0275fac=function(e){return new(e||n)};static \u0275cmp=dw({type:n,selectors:[["app-log"]],decls:15,vars:5,consts:()=>{let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SH_ICON: Back `;let e;e=$localize`General`;let o;o=$localize`Destination`;let F;F=$localize`Last successful backup:`;let c;c=$localize`Source:`;let L;L=$localize`Destination:`;let G;G=$localize`took`;let k;k=$localize`N/A`;let N;N=$localize`N/A`;let v;v=$localize`N/A`;let U;U=$localize`${"\uFFFD0\uFFFD"}:INTERPOLATION: Version`;let Q;return Q=$localize`No version yet`,[t,e,o,F,c,L,G,k,N,v,U,Q,[1,"back"],["type","button","shButton","","routerLink","/",1,"small"],[1,"backup"],[1,"primary",3,"valueChange","value"],["value","general"],["value","destination"],[3,"backupId"],[1,"text"],[1,"simple","success"],[1,"simple"]]},template:function(e,o){if(e&1){let F=gT();mg(0,"app-status-bar"),Qi(1,"section")(2,"div",12)(3,"button",13),Og(4,0),mg(5,"sh-icon"),Pg(),Hl()(),cm(6),oT(7,mt,25,9,"div",14),Qi(8,"sh-tabs",15),sm("valueChange",function(L){return Sd(F),HC(o.activeTab,L)||(o.activeTab=L),xd(L)}),Qi(9,"button",16),XT(10,1),Hl(),Qi(11,"button",17),XT(12,2),Hl()(),oT(13,Gt,1,1,"app-general-log",18),oT(14,At,1,1,"app-remote-log",18),Hl();}if(e&2){DE(6);let F=BC(o.backup());DE(),iT(F?7:-1),DE(),im("value",o.activeTab),DE(5),iT(o.activeTab()==="general"?13:-1),DE(),iT(o.activeTab()==="destination"?14:-1);}},dependencies:[w,De,Pe,_t$1,ee,N,v,D,m,c,ci],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:1rem 1.5rem;gap:1rem}sh-tabs[_ngcontent-%COMP%]{margin-bottom:1rem}.backup[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem;gap:1rem;border:1px solid var(--base-4);border-radius:var(--shape-3);box-shadow:var(--box-shadow-10)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;width:100%;max-width:40%}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{color:var(--base-8)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-8)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--base-12)}"]})};export{Re as default};
1
+ import {w}from'./chunk-BYJA6sbi.js';import {e as ee}from'./chunk-B0RBkC1E.js';import'./chunk-BB1pOOUx.js';import'./chunk-DN6f5jXR.js';import'./chunk-3RXp81pP.js';import {I}from'./chunk-DD_QfWih.js';import'./chunk-CT9ziigM.js';import'./chunk-D5lj-fQk.js';import {c as c$1}from'./chunk-OLi7f6y7.js';import {D}from'./chunk-B2TXzbpy.js';import {T,aw as W,a5 as g,U as Ue,aG as pt$1,N as Nt$1,d as dw,_ as _t$1,f as N,v,aH as m,aI as c,aJ as ci,k as gT,j as mg,Q as Qi,O as Og,P as Pg,H as Hl,ak as cm,o as oT,s as sm,X as XT,D as DE,al as BC,i as iT,w as im,S as Sd,l as HC,x as xd,ab as C,b as g1,aK as pb,ay as $u,C as Bu,aL as hi,a1 as cT,a2 as lT,t as tC,q as PC,aM as tb,n as nC,ao as $C,aa as Gl,aN as ob,z as gg,aj as l,ap as sT,F as Fg,E as nm,aB as rm,I as Qg,aO as om,aP as Ul,aQ as Wl,aR as rb,au as Lg,av as eC,aS as ib,aT as ay}from'./main-KFKZO6SJ.js';import {d}from'./chunk-CRAg6SRo.js';import'./chunk-DuIUmwWN.js';import'./chunk-DipTNkHN.js';import'./chunk-Fw6nFDZK.js';import'./chunk-Ca1C9pJ0.js';import'./chunk-C-NgIZiF.js';import {L,$}from'./chunk-C7pjkqKB.js';import'./chunk-PVmXLw9b.js';function Dn(n,t){n&1&&mg(0,"sh-progress-bar",58);}function Pn(n,t){n&1&&mg(0,"div",61);}function Rn(n,t){n&1&&mg(0,"div",61);}function In(n,t){n&1&&mg(0,"div",62);}function $n(n,t){n&1&&mg(0,"div",63);}function Mn(n,t){if(n&1&&(Qi(0,"details",72)(1,"summary"),Og(2,15),mg(3,"sh-icon"),Qi(4,"div",74),mg(5,"sh-icon",66),Hl(),Pg(),Hl(),Qi(6,"div",75)(7,"p"),XT(8,16),tb(9,"date"),Hl(),Qi(10,"p"),XT(11,17),tb(12,"date"),Hl(),Qi(13,"p"),XT(14,18),tb(15,"durationFormat"),Hl(),Qi(16,"p"),XT(17,19),Hl(),mg(18,"sh-divider"),Qi(19,"p"),XT(20,20),Hl(),Qi(21,"p"),XT(22,21),Hl()()(),Qi(23,"details",72)(24,"summary"),Og(25,22),mg(26,"sh-icon"),Qi(27,"div",74),mg(28,"sh-icon",66),Hl(),Pg(),Hl(),Qi(29,"div",75)(30,"p"),XT(31,23),tb(32,"date"),Hl(),Qi(33,"p"),XT(34,24),tb(35,"date"),Hl(),Qi(36,"p"),XT(37,25),tb(38,"durationFormat"),Hl(),mg(39,"sh-divider"),Qi(40,"p"),XT(41,26),tb(42,"bytes"),Hl(),Qi(43,"p"),XT(44,27),tb(45,"bytes"),Hl(),Qi(46,"p"),XT(47,28),tb(48,"bytes"),Hl(),mg(49,"sh-divider"),Qi(50,"p"),XT(51,29),Hl(),Qi(52,"p"),XT(53,30),Hl()()()),n&2){let e=nC(2).$implicit;DE(9),Lg(ob(9,17,e.data?.TestResults?.BeginTime,"medium")),eC(8),DE(3),Lg(ob(12,20,e.data?.TestResults?.EndTime,"medium")),eC(11),DE(3),Lg(rb(15,23,e.data?.TestResults?.Duration)),eC(14),DE(2),Lg(e.data?.TestResults?.VerificationsActualLength),eC(17),DE(3),Lg(e.data?.TestResults?.WarningsActualLength),eC(20),DE(2),Lg(e.data?.TestResults?.ErrorsActualLength),eC(22),DE(10),Lg(ob(32,25,e.data?.CompactResults?.BeginTime,"medium")),eC(31),DE(3),Lg(ob(35,28,e.data?.CompactResults?.EndTime,"medium")),eC(34),DE(3),Lg(rb(38,31,e.data?.CompactResults?.Duration)),eC(37),DE(4),Lg(e.data?.CompactResults?.DeletedFileCount)(ib(42,33,e.data?.CompactResults?.DeletedFileSize,true,true)),eC(41),DE(3),Lg(e.data?.CompactResults?.DownloadedFileCount)(ib(45,37,e.data?.CompactResults?.DownloadedFileSize,true,true)),eC(44),DE(3),Lg(e.data?.CompactResults?.UploadedFileCount)(ib(48,41,e.data?.CompactResults?.UploadedFileSize,true,true)),eC(47),DE(3),Lg(e.data?.CompactResults?.WarningsActualLength),eC(51),DE(2),Lg(e.data?.CompactResults?.ErrorsActualLength),eC(53);}}function fn(n,t){n&1&&(Qi(0,"p"),PC(1,"No messages"),Hl());}function hn(n,t){n&1&&(Og(0,43,1),mg(1,"sh-icon"),Pg());}function yn(n,t){n&1&&(Og(0,43,2),mg(1,"sh-icon"),Pg());}function vn(n,t){if(n&1){let e=gT();Qi(0,"div",76)(1,"code"),PC(2),Hl(),Qi(3,"button",77),Fg("click",function(F){let c=Sd(e).$implicit,L=nC(5);return xd(L.copyToClipboard(F,c,c))}),Og(4,43),oT(5,hn,2,0,"sh-icon")(6,yn,2,0,"sh-icon"),Pg(),Hl()();}if(n&2){let e=t.$implicit,o=nC(5);DE(2),nm(e),DE(3),iT(o.copied()==e?5:6);}}function Bn(n,t){n&1&&(Qi(0,"p"),PC(1,"No warnings"),Hl());}function xn(n,t){n&1&&(Og(0,44,1),mg(1,"sh-icon"),Pg());}function bn(n,t){n&1&&(Og(0,44,2),mg(1,"sh-icon"),Pg());}function kn(n,t){if(n&1){let e=gT();Qi(0,"div",76)(1,"code"),PC(2),Hl(),Qi(3,"button",77),Fg("click",function(F){let c=Sd(e).$implicit,L=nC(5);return xd(L.copyToClipboard(F,c,c))}),Og(4,44),oT(5,xn,2,0,"sh-icon")(6,bn,2,0,"sh-icon"),Pg(),Hl()();}if(n&2){let e=t.$implicit,o=nC(5);DE(2),nm(e),DE(3),iT(o.copied()==e?5:6);}}function Kn(n,t){n&1&&(Qi(0,"p"),PC(1,"No errors"),Hl());}function Un(n,t){n&1&&(Og(0,45,1),mg(1,"sh-icon"),Pg());}function wn(n,t){n&1&&(Og(0,45,2),mg(1,"sh-icon"),Pg());}function Jn(n,t){if(n&1){let e=gT();Qi(0,"div",76)(1,"code"),PC(2),Hl(),Qi(3,"button",77),Fg("click",function(F){let c=Sd(e).$implicit,L=nC(5);return xd(L.copyToClipboard(F,c,c))}),Og(4,45),oT(5,Un,2,0,"sh-icon")(6,wn,2,0,"sh-icon"),Pg(),Hl()();}if(n&2){let e=t.$implicit,o=nC(5);DE(2),nm(e),DE(3),iT(o.copied()==e?5:6);}}function Xn(n,t){if(n&1&&(Qi(0,"details",72)(1,"summary"),Og(2,31),mg(3,"sh-icon"),Qi(4,"div",74),mg(5,"sh-icon",66),Hl(),Pg(),Hl(),Qi(6,"div",75)(7,"p"),XT(8,32),tb(9,"date"),Hl(),Qi(10,"p"),XT(11,33),tb(12,"date"),Hl(),Qi(13,"p"),XT(14,34),tb(15,"durationFormat"),Hl(),mg(16,"sh-divider"),Qi(17,"p"),XT(18,35),tb(19,"bytes"),Hl(),Qi(20,"p"),XT(21,36),Hl(),Qi(22,"p"),XT(23,37),Hl(),Qi(24,"p"),XT(25,38),Hl(),Qi(26,"p"),XT(27,39),Hl(),mg(28,"sh-divider"),Qi(29,"details",78)(30,"summary"),Og(31,40),mg(32,"sh-icon"),Qi(33,"div",74),mg(34,"sh-icon",66),Hl(),Pg(),Hl(),Qi(35,"div",75),oT(36,fn,2,0,"p"),cT(37,vn,7,2,"div",76,sT),Hl()(),Qi(39,"details",79)(40,"summary"),Og(41,41),mg(42,"sh-icon"),Qi(43,"div",74),mg(44,"sh-icon",66),Hl(),Pg(),Hl(),Qi(45,"div",75),oT(46,Bn,2,0,"p"),cT(47,kn,7,2,"div",76,sT),Hl()(),Qi(49,"details",80)(50,"summary"),Og(51,42),mg(52,"sh-icon"),Qi(53,"div",74),mg(54,"sh-icon",66),Hl(),Pg(),Hl(),Qi(55,"div",75),oT(56,Kn,2,0,"p"),cT(57,Jn,7,2,"div",76,sT),Hl()(),mg(59,"sh-divider"),Hl()()),n&2){let e=t.$implicit;DE(5),Lg(e.Destination),eC(2),DE(4),Lg(ob(9,16,e.BeginTime,"medium")),eC(8),DE(3),Lg(ob(12,19,e.EndTime,"medium")),eC(11),DE(3),Lg(rb(15,22,e.Duration)),eC(14),DE(4),Lg(e.CopiedFileCount)(ib(19,24,e.CopiedFileSize,true,true)),eC(18),DE(2),Lg(e.DeletedFileCount),eC(21),DE(2),Lg(e.RenamedFileCount),eC(23),DE(2),Lg(e.VerifiedFileCount),eC(25),DE(2),Lg(e.FailedVerificationCount),eC(27),DE(7),Lg(e.MessagesActualLength),eC(31),DE(2),iT(e.Messages?.length===0?36:-1),DE(),lT(e.Messages),DE(7),Lg(e.WarningsActualLength),eC(41),DE(2),iT(e.Warnings?.length===0?46:-1),DE(),lT(e.Warnings),DE(7),Lg(e.ErrorsActualLength),eC(51),DE(2),iT(e.Errors?.length===0?56:-1),DE(),lT(e.Errors);}}function zn(n,t){if(n&1&&cT(0,Xn,60,28,"details",72,sT),n&2){let e=nC(2).$implicit;lT(e.data?.RemoteSynchronizationResults);}}function Vn(n,t){if(n&1&&(Qi(0,"details",72)(1,"summary"),Og(2,46),mg(3,"sh-icon"),Qi(4,"div",74),mg(5,"sh-icon",66),Hl(),Pg(),Hl(),Qi(6,"div",75)(7,"p"),XT(8,47),tb(9,"date"),Hl(),Qi(10,"p"),XT(11,48),tb(12,"date"),Hl(),Qi(13,"p"),XT(14,49),tb(15,"durationFormat"),Hl(),mg(16,"sh-divider"),Qi(17,"p"),XT(18,50),Hl(),Qi(19,"p"),XT(20,51),Hl(),Qi(21,"p"),XT(22,52),Hl()()()),n&2){let e=nC(2).$implicit;DE(9),Lg(ob(9,6,e.data?.LockResults?.BeginTime,"medium")),eC(8),DE(3),Lg(ob(12,9,e.data?.LockResults?.EndTime,"medium")),eC(11),DE(3),Lg(rb(15,12,e.data?.LockResults?.Duration)),eC(14),DE(3),Lg(e.data?.LockResults?.VolumesRead),eC(18),DE(2),Lg(e.data?.LockResults?.VolumesUpdated),eC(20),DE(2),Lg(e.data?.LockResults?.ParsedResult),eC(22);}}function Hn(n,t){if(n&1&&(Qi(0,"code"),PC(1),tb(2,"json"),Hl()),n&2){let e=t.$implicit;DE(),nm(rb(2,1,e));}}function Wn(n,t){if(n&1&&(Qi(0,"details",72)(1,"summary"),Og(2,53),mg(3,"sh-icon"),Qi(4,"div",74),mg(5,"sh-icon",66),Hl(),Pg(),Hl(),Qi(6,"div",75),cT(7,Hn,3,3,"code",null,sT),Hl()()),n&2){let e=nC(2).$implicit;DE(5),Lg(e.data.VerificationsActualLength),eC(2),DE(2),lT(e.data.Verifications);}}function jn(n,t){n&1&&(Qi(0,"sh-icon"),PC(1,"check"),Hl());}function qn(n,t){n&1&&(Qi(0,"sh-icon"),PC(1,"copy"),Hl());}function Qn(n,t){n&1&&(Ul(0),Og(1,54),mg(2,"sh-icon"),Pg(),Wl());}function Yn(n,t){n&1&&(Ul(0),Og(1,55),mg(2,"sh-icon"),Pg(),Wl());}function Zn(n,t){n&1&&(Ul(0),Og(1,56),mg(2,"sh-icon"),Pg(),Wl());}function et(n,t){if(n&1){let e=gT();Qi(0,"button",82),Fg("click",function(){Sd(e),nC();let F=$C(0),c=nC(3);return xd(c.toggleWarningSuppression(F.MessageId))}),oT(1,Qn,3,0,"ng-container")(2,Yn,3,0,"ng-container")(3,Zn,3,0,"ng-container"),Hl();}if(n&2){nC();let e=$C(0),o=nC(3),F=o.isWarningSuppressed(e.MessageId);gg("disabled",o.isSuppressingWarning()),DE(),iT(o.isSuppressingWarning()?1:F?2:3);}}function nt(n,t){if(n&1){let e=gT();cm(0),Qi(1,"div",76)(2,"code"),PC(3),Hl(),Qi(4,"button",77),Fg("click",function(F){let c=Sd(e).$implicit,L=nC(3);return xd(L.copyToClipboard(F,c,c))}),PC(5," Copy "),oT(6,jn,2,0,"sh-icon")(7,qn,2,0,"sh-icon"),Hl(),oT(8,et,4,2,"button",81),Hl();}if(n&2){let e=t.$implicit,o=nC(3),F=BC(o.parseWarning(e));DE(3),nm(e),DE(3),iT(o.copied()==e?6:7),DE(2),iT(F?.MessageId?8:-1);}}function tt(n,t){n&1&&(Qi(0,"p"),PC(1,"No errors"),Hl());}function it(n,t){n&1&&(Og(0,57,1),mg(1,"sh-icon"),Pg());}function ot(n,t){n&1&&(Og(0,57,2),mg(1,"sh-icon"),Pg());}function _t(n,t){if(n&1){let e=gT();Qi(0,"div",76)(1,"code"),PC(2),Hl(),Qi(3,"button",77),Fg("click",function(F){let c=Sd(e).$implicit,L=nC(3);return xd(L.copyToClipboard(F,c,c))}),Og(4,57),oT(5,it,2,0,"sh-icon")(6,ot,2,0,"sh-icon"),Pg(),Hl()();}if(n&2){let e=t.$implicit,o=nC(3);DE(2),nm(e),DE(3),iT(o.copied()==e?5:6);}}function at(n,t){n&1&&(Qi(0,"sh-icon"),PC(1,"check"),Hl());}function Ft(n,t){n&1&&(Qi(0,"sh-icon"),PC(1,"copy"),Hl());}function rt(n,t){if(n&1){let e=gT();Qi(0,"section",67)(1,"sh-toggle-card",68),Ul(2,69),Qi(3,"h3"),XT(4,0),Hl(),Wl(),Ul(5,70),Qi(6,"p"),XT(7,1),tb(8,"date"),Hl(),Qi(9,"p"),XT(10,2),tb(11,"date"),Hl(),Qi(12,"p"),XT(13,3),tb(14,"durationFormat"),Hl(),Wl(),Hl(),Qi(15,"sh-toggle-card",68),Ul(16,69),Qi(17,"h3"),XT(18,4),Hl(),Wl(),Ul(19,70),Qi(20,"p"),XT(21,5),tb(22,"bytes"),Hl(),Qi(23,"p"),XT(24,6),tb(25,"bytes"),Hl(),Qi(26,"p"),XT(27,7),tb(28,"bytes"),Hl(),Qi(29,"p"),XT(30,8),tb(31,"bytes"),Hl(),Qi(32,"p"),XT(33,9),Hl(),Qi(34,"p"),XT(35,10),Hl(),Qi(36,"p"),XT(37,11),Hl(),Wl(),Hl(),Qi(38,"div",71),mg(39,"sh-divider"),oT(40,Mn,54,45),oT(41,zn,2,0),oT(42,Vn,23,14,"details",72),oT(43,Wn,9,1,"details",72),Qi(44,"details",73)(45,"summary"),Og(46,12),mg(47,"sh-icon"),Qi(48,"div",74),mg(49,"sh-icon",66),Hl(),Pg(),Hl(),Qi(50,"div",75),cT(51,nt,9,4,"div",76,sT),Hl()(),Qi(53,"details",73)(54,"summary"),Og(55,13),mg(56,"sh-icon"),Qi(57,"div",74),mg(58,"sh-icon",66),Hl(),Pg(),Hl(),Qi(59,"div",75),oT(60,tt,2,0,"p"),cT(61,_t,7,2,"div",76,sT),Hl()(),mg(63,"sh-divider"),Qi(64,"details")(65,"summary"),Og(66,14),mg(67,"sh-icon"),Qi(68,"div",74),mg(69,"sh-icon",66),Hl(),Pg(),Hl(),Qi(70,"code")(71,"button",77),Fg("click",function(F){Sd(e);let c=nC().$implicit,L=nC();return xd(L.copyToClipboard(F,L.stringify(c.data),"all"))}),PC(72," Copy "),oT(73,at,2,0,"sh-icon")(74,Ft,2,0,"sh-icon"),Hl(),PC(75),tb(76,"json"),Hl()()()();}if(n&2){let e=nC().$implicit,o=nC();DE(),gg("disableToggle",true),DE(7),Lg(ob(8,27,e.data?.BeginTime,"medium")),eC(7),DE(3),Lg(ob(11,30,e.data?.EndTime,"medium")),eC(10),DE(3),Lg(rb(14,33,e.data?.Duration)),eC(13),DE(),gg("disableToggle",true),DE(7),Lg(e.data?.ExaminedFiles)(ib(22,35,e.data?.SizeOfExaminedFiles,true,true)),eC(21),DE(3),Lg(e.data?.OpenedFiles)(ib(25,39,e.data?.SizeOfOpenedFiles,true,true)),eC(24),DE(3),Lg(e.data?.AddedFiles)(ib(28,43,e.data?.SizeOfAddedFiles,true,true)),eC(27),DE(3),Lg(e.data?.ModifiedFiles)(ib(31,47,e.data?.SizeOfModifiedFiles,true,true)),eC(30),DE(2),Lg(e.data?.DeletedFiles),eC(33),DE(2),Lg(e.data?.TooLargeFiles),eC(35),DE(2),Lg(e.data?.FilesWithError),eC(37),DE(3),iT(e.data?.TestResults?40:-1),DE(),iT(e.data?.RemoteSynchronizationResults?41:-1),DE(),iT(e.data?.LockResults?42:-1),DE(),iT(e.data?.MainOperation==="Test"?43:-1),DE(),gg("open",e.id===o.openEntry()&&o.openSection()==="warnings"),DE(5),Lg(e.data?.WarningsActualLength),eC(46),DE(2),lT(e.data?.Warnings),DE(2),gg("open",e.id===o.openEntry()&&o.openSection()==="errors"),DE(5),Lg(e.data?.ErrorsActualLength),eC(55),DE(2),iT(e.data?.Errors?.length===0?60:-1),DE(),lT(e.data?.Errors),DE(12),iT(o.copied()=="all"?73:74),DE(2),Gl(" ",rb(76,51,e.data)," ");}}function lt(n,t){if(n&1){let e=gT();Qi(0,"article",59)(1,"header",60),Fg("click",function(){let F=Sd(e).$implicit,c=nC();return xd(c.toggleOpenEntry(F))}),oT(2,Pn,1,0,"div",61)(3,Rn,1,0,"div",61)(4,In,1,0,"div",62)(5,$n,1,0,"div",63),Qi(6,"h3"),PC(7),tb(8,"date"),Hl(),Qi(9,"p"),PC(10),Hl(),mg(11,"div",64),Qi(12,"div",65)(13,"sh-icon",66),PC(14,"caret-down"),Hl()()(),oT(15,rt,77,53,"section",67),Hl();}if(n&2){let e=t.$implicit,o=nC(),F=e.data?.ParsedResult||"Unknown";DE(2),iT(F=="Fatal"?2:F=="Error"?3:F=="Warning"?4:5),DE(5),nm(ob(8,7,e.timestamp,"medium")),DE(3),rm(" ",e.data?.MainOperation," ",o.getLocalizedSummary(e)," "),DE(3),Qg("open",e.id===o.openEntry()),DE(2),iT(e.id===o.openEntry()?15:-1);}}var De=class n{#e=T(C);#n=T(g);#t=new m;#i=new c;backupId=g1.required();isSuppressingWarning=Ue(false);copied=Ue(null);backupResource=pb({params:()=>({id:this.backupId()}),loader:({params:t})=>ay(this.#e.getApiV1BackupById({id:t.id}))});suppressedWarningIds=Nt$1(()=>{let t=this.backupResource.value();if(!t?.Backup?.Settings)return new Set;let e=t.Backup.Settings.find(o=>o.Name==="--suppress-warnings");return e?.Value?new Set(e.Value.split(",").map(o=>o.trim()).filter(Boolean)):new Set});openEntry=Ue(null);openSection=Ue(null);pagination=Ue({offset:0,pagesize:100});resource=$({params:()=>l({id:this.backupId()},this.pagination()),stream:({params:t})=>this.#e.getApiV1BackupByIdLog({id:t.id,pagesize:100}).pipe(pt$1(e=>e.map(o=>({id:o.ID,operationId:o.OperationID,timestamp:o.Timestamp*1e3,type:o.Type,data:JSON.parse(o.Message),exception:JSON.stringify(o.Exception)==="{}"?null:o.Exception}))))});getLocalizedSummary(t){let e=t.data?.ErrorsActualLength??0,o=t.data?.WarningsActualLength??0,F=[];if(t.data?.MainOperation=="Backup"){if(t.data?.Duration){let c=this.#i.transform(t.data?.Duration,true);c.startsWith("0h ")&&(c=c.slice(3)),c.startsWith("0m ")&&(c=c.slice(3)),F.push($localize`took ${c}`);}t.data?.BackendStatistics?.BytesUploaded&&F.push($localize`uploaded ${this.#t.transform(t.data?.BackendStatistics?.BytesUploaded)}`),t.data?.BackendStatistics?.KnownFileSize&&F.push($localize`backup size ${this.#t.transform(t.data?.BackendStatistics?.KnownFileSize)}`);}return e!==0&&F.push($localize`:@@errorCount:${e} error${e===1?"":"s"}`),o!==0&&F.push($localize`:@@warningCount:${o} warning${o===1?"":"s"}`),F.length===0?"":`(${F.join(", ")})`}toggleOpenEntry(t){let e=t.id;if(this.openEntry()===e){this.openEntry.set(null),this.openSection.set(null);return}let o=t.data?.ErrorsActualLength??0,F=t.data?.WarningsActualLength??0;o>0?this.openSection.set("errors"):F>0?this.openSection.set("warnings"):this.openSection.set(null),this.openEntry.set(e);}parseWarning(t){let e=t.match(/^(.*?) - \[(.*?)-(.*?)-(.*?)\]: (.*)$/);if(!e)return null;let[,o,F,c,L,G]=e;return {Timestamp:o,LogLevel:F,Source:c,MessageId:L,Message:G}}isWarningSuppressed(t){return this.suppressedWarningIds().has(t)}toggleWarningSuppression(t){let e=this.backupId();!e||!t||(this.isSuppressingWarning.set(true),this.#e.getApiV1BackupById({id:e}).pipe($u(o=>{let F=o.Backup?.Settings??[],c=F.findIndex(N=>N.Name==="--suppress-warnings"),L=this.isWarningSuppressed(t),G="";if(c>=0){let v=(F[c].Value??"").split(",").map(U=>U.trim()).filter(Boolean);L?v=v.filter(U=>U!==t):v.includes(t)||v.push(t),G=v.join(",");}else L||(G=t);let k=F.map(N=>({Name:N.Name,Value:N.Value,Filter:N.Filter}));return c>=0?G===""?k.splice(c,1):k[c]={Name:"--suppress-warnings",Value:G,Filter:null}:G!==""&&k.push({Name:"--suppress-warnings",Value:G,Filter:null}),this.#e.putApiV1BackupById({id:e,requestBody:{Backup:{Name:o.Backup?.Name,Description:o.Backup?.Description,DBPath:o.Backup?.DBPath,Tags:o.Backup?.Tags??[],TargetURL:o.Backup?.TargetURL,ConnectionStringID:o.Backup?.ConnectionStringID,Sources:o.Backup?.Sources??[],Settings:k,Filters:o.Backup?.Filters?.map(N=>({Expression:N.Expression,Include:N.Include,Order:N.Order})),Metadata:o.Backup?.Metadata??{},AdditionalTargetURLs:o.Backup?.AdditionalTargetURLs?.map(N=>({TargetUrl:N.TargetUrl,UrlKey:N.UrlKey,Mode:N.Mode,Interval:N.Interval,ConnectionStringID:N.ConnectionStringID,Options:N.Options}))},Schedule:o.Schedule?{Repeat:o.Schedule.Repeat,Time:o.Schedule.Time,AllowedDays:o.Schedule.AllowedDays}:void 0}})}),Bu(()=>this.isSuppressingWarning.set(false))).subscribe({next:()=>{this.#n.getBackups(true),this.backupResource.reload();},error:o=>{console.error("Failed to toggle warning suppression:",o);}}));}copyToClipboard(t,e,o){t.stopPropagation(),navigator.clipboard.writeText(e),this.copied.set(o),setTimeout(()=>{this.copied.set(null);},2e3);}stringify(t){return JSON.stringify(t,null,2)}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=dw({type:n,selectors:[["app-general-log"]],inputs:{backupId:[1,"backupId"]},decls:3,vars:1,consts:()=>{let t;t=$localize`Time`;let e;e=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let o;o=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let F;F=$localize`Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let c;c=$localize`Source files`;let L;L=$localize` Evaluated: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let G;G=$localize` Opened: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let k;k=$localize` Added: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let N;N=$localize` Modified: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let v;v=$localize`Deleted: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let U;U=$localize`Too large: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Q;Q=$localize`Files with error: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let A;A=$localize`${"\uFFFD#47\uFFFD"}:START_TAG_SH_ICON:warning-circle${"[\uFFFD/#47\uFFFD|\uFFFD/#49\uFFFD]"}:CLOSE_TAG_SH_ICON: Warnings ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#48\uFFFD"}:START_TAG_DIV:${"\uFFFD#49\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#47\uFFFD|\uFFFD/#49\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#48\uFFFD"}:CLOSE_TAG_DIV:`,A=tC(A);let ne;ne=$localize`${"\uFFFD#56\uFFFD"}:START_TAG_SH_ICON:warning${"[\uFFFD/#56\uFFFD|\uFFFD/#58\uFFFD]"}:CLOSE_TAG_SH_ICON: Errors ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#57\uFFFD"}:START_TAG_DIV:${"\uFFFD#58\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#56\uFFFD|\uFFFD/#58\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#57\uFFFD"}:CLOSE_TAG_DIV:`,ne=tC(ne);let te;te=$localize`${"\uFFFD#67\uFFFD"}:START_TAG_SH_ICON:notepad${"[\uFFFD/#67\uFFFD|\uFFFD/#69\uFFFD]"}:CLOSE_TAG_SH_ICON: Complete log ${"\uFFFD#68\uFFFD"}:START_TAG_DIV:${"\uFFFD#69\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#67\uFFFD|\uFFFD/#69\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#68\uFFFD"}:CLOSE_TAG_DIV:`,te=tC(te);let ie;ie=$localize`${"\uFFFD#3\uFFFD"}:START_TAG_SH_ICON:circle-half-tilt${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SH_ICON: Test phase ${"\uFFFD#4\uFFFD"}:START_TAG_DIV:${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_DIV:`,ie=tC(ie);let Ie;Ie=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let $e;$e=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Me;Me=$localize`Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let fe;fe=$localize`Verifications: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let he;he=$localize`Warnings: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let ye;ye=$localize`Errors: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let oe;oe=$localize`${"\uFFFD#26\uFFFD"}:START_TAG_SH_ICON:file-archive${"[\uFFFD/#26\uFFFD|\uFFFD/#28\uFFFD]"}:CLOSE_TAG_SH_ICON: Compact phase ${"\uFFFD#27\uFFFD"}:START_TAG_DIV:${"\uFFFD#28\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#26\uFFFD|\uFFFD/#28\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#27\uFFFD"}:CLOSE_TAG_DIV:`,oe=tC(oe);let ve;ve=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Be;Be=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let xe;xe=$localize` Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION: `;let be;be=$localize` Deleted files: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let ke;ke=$localize` Downloaded files: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let Ke;Ke=$localize` Uploaded files: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let Ue;Ue=$localize`Warnings: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let we;we=$localize`Errors: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let _e;_e=$localize`${"\uFFFD#3\uFFFD"}:START_TAG_SH_ICON:arrows-clockwise${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SH_ICON: Secondary destination: ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#4\uFFFD"}:START_TAG_DIV:${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_DIV:`,_e=tC(_e);let Je;Je=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Xe;Xe=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let ze;ze=$localize`Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ve;Ve=$localize` Files copied: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let He;He=$localize`Files deleted: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let We;We=$localize`Files renamed: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let je;je=$localize`Files verified: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let qe;qe=$localize`Failed verifications: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let ae;ae=$localize`${"\uFFFD#32\uFFFD"}:START_TAG_SH_ICON:info${"[\uFFFD/#32\uFFFD|\uFFFD/#34\uFFFD]"}:CLOSE_TAG_SH_ICON: Messages ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#33\uFFFD"}:START_TAG_DIV:${"\uFFFD#34\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#32\uFFFD|\uFFFD/#34\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#33\uFFFD"}:CLOSE_TAG_DIV:`,ae=tC(ae);let Fe;Fe=$localize`${"\uFFFD#42\uFFFD"}:START_TAG_SH_ICON:warning-circle${"[\uFFFD/#42\uFFFD|\uFFFD/#44\uFFFD]"}:CLOSE_TAG_SH_ICON: Warnings ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#43\uFFFD"}:START_TAG_DIV:${"\uFFFD#44\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#42\uFFFD|\uFFFD/#44\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#43\uFFFD"}:CLOSE_TAG_DIV:`,Fe=tC(Fe);let re;re=$localize`${"\uFFFD#52\uFFFD"}:START_TAG_SH_ICON:warning${"[\uFFFD/#52\uFFFD|\uFFFD/#54\uFFFD]"}:CLOSE_TAG_SH_ICON: Errors ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#53\uFFFD"}:START_TAG_DIV:${"\uFFFD#54\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#52\uFFFD|\uFFFD/#54\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#53\uFFFD"}:CLOSE_TAG_DIV:`,re=tC(re);let le;le=$localize` Copy ${"\uFFFD*5:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:check${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*5:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*6:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:copy${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*6:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,le=tC(le);let se;se=$localize` Copy ${"\uFFFD*5:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:check${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*5:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*6:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:copy${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*6:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,se=tC(se);let ce;ce=$localize` Copy ${"\uFFFD*5:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:check${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*5:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*6:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:copy${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*6:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,ce=tC(ce);let ue;ue=$localize`${"\uFFFD#3\uFFFD"}:START_TAG_SH_ICON:lock${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SH_ICON: Lock results ${"\uFFFD#4\uFFFD"}:START_TAG_DIV:${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_DIV:`,ue=tC(ue);let Qe;Qe=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ye;Ye=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ze;Ze=$localize`Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let en;en=$localize`Volumes read: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let nn;nn=$localize`Volumes updated: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let tn;tn=$localize`Parsed result: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let de;de=$localize`${"\uFFFD#3\uFFFD"}:START_TAG_SH_ICON:warning-circle${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SH_ICON: Verifications ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#4\uFFFD"}:START_TAG_DIV:${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_DIV:`,de=tC(de);let on;on=$localize` Updating ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:spinner${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let _n;_n=$localize` Un-suppress ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:bell${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let an;an=$localize` Suppress ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:bell-slash${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let Ee;return Ee=$localize` Copy ${"\uFFFD*5:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:check${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*5:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*6:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:copy${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*6:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,Ee=tC(Ee),[t,e,o,F,c,L,G,k,N,v,U,Q,A,ne,te,ie,Ie,$e,Me,fe,he,ye,oe,ve,Be,xe,be,ke,Ke,Ue,we,_e,Je,Xe,ze,Ve,He,We,je,qe,ae,Fe,re,le,se,ce,ue,Qe,Ye,Ze,en,nn,tn,de,on,_n,an,Ee,[1,"indeterminate","primary"],[1,"log-entry"],[3,"click"],[1,"status","error"],[1,"status","warn"],[1,"status"],[1,"spacer"],[1,"action"],[1,"toggle-indicator"],[1,"log-content"],[3,"disableToggle"],["title",""],["content",""],[1,"extra-info"],["name","details"],["name","details",3,"open"],[1,"actions"],[1,"content"],[1,"warning-item"],["shButton","",1,"small",3,"click"],["name","details-messages"],["name","details-warnings"],["name","details-errors"],["shButton","",1,"small",3,"disabled"],["shButton","",1,"small",3,"click","disabled"]]},template:function(e,o){e&1&&(oT(0,Dn,1,0,"sh-progress-bar",58),cT(1,lt,16,10,"article",59,sT)),e&2&&(iT(o.resource.isLoading()?0:-1),DE(),lT(o.resource.value()));},dependencies:[I,c$1,d,v,N,m,ci,c,hi],styles:["[_nghost-%COMP%]{display:block}.log-entry[_ngcontent-%COMP%]{display:flex;flex-direction:column;cursor:pointer}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;padding:1rem;border-bottom:1px solid var(--base-4);background-color:var(--base-1);cursor:pointer}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]:hover{background-color:var(--base-2)}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-30);margin:0}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-8)}.toggle-indicator[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;height:1.25rem;transition:transform 125ms linear}.toggle-indicator.open[_ngcontent-%COMP%]{transform:rotate(180deg)}details[_ngcontent-%COMP%]{display:flex;flex-direction:column}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]{cursor:pointer;display:flex;align-items:center;gap:.5rem;padding:.75rem;border-radius:var(--shape-2);background-color:var(--base-2)}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]:focus{outline:none}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]:hover{background-color:var(--base-3)}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]::marker{font-size:0}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;flex:1 0;gap:.5rem;-webkit-user-select:none;user-select:none}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;height:2rem;transition:transform 125ms linear}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] sh-icon.toggle-indicator[_ngcontent-%COMP%]{transform:rotate(0)}details[open][_ngcontent-%COMP%] > summary[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] sh-icon.toggle-indicator[_ngcontent-%COMP%]{transform:rotate(180deg)}details[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{padding:.75rem 1rem 0;display:flex;flex-direction:column;gap:.75rem}details[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}details[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{margin-top:.75rem;position:relative}details[_ngcontent-%COMP%] code[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{position:absolute;top:.75rem;right:.75rem}.extra-info[_ngcontent-%COMP%]{grid-column:1/-1;display:flex;flex-direction:column;gap:1rem}.extra-info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-bottom:.75rem}.extra-info[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{white-space:pre-wrap;padding:1rem;display:block;border-radius:var(--shape-2);background-color:var(--base-2)}.log-content[_ngcontent-%COMP%]{padding:1rem;display:grid;grid-template-columns:1fr 1fr;gap:1rem}.status[_ngcontent-%COMP%]{display:block;width:1rem;height:1rem;background-color:var(--success-8);border-radius:50%}.status.error[_ngcontent-%COMP%]{background-color:var(--error-8)}.status.warn[_ngcontent-%COMP%]{background-color:var(--warn-8)}.warning-item[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:.5rem;padding:.75rem;border-radius:var(--shape-2);background-color:var(--base-2)}.warning-item[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{margin:0;white-space:pre-wrap;word-break:break-word}.warning-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{align-self:flex-start;white-space:nowrap}"]})};function st(n,t){n&1&&mg(0,"sh-progress-bar",1);}function ct(n,t){n&1&&(Og(0,0,1),mg(1,"sh-icon"),Pg());}function ut(n,t){n&1&&(Og(0,0,2),mg(1,"sh-icon"),Pg());}function dt(n,t){if(n&1){let e=gT();Qi(0,"section",6)(1,"button",7),Fg("click",function(){Sd(e);let F=nC(),c=F.$implicit,L=F.$index,G=nC();return xd(G.copyToClipboard(c.data,L))}),Og(2,0),oT(3,ct,2,0)(4,ut,2,0),Pg(),Hl(),Qi(5,"code"),PC(6),tb(7,"json"),Hl()();}if(n&2){let e=nC(),o=e.$implicit,F=e.$index,c=nC();DE(),Qg("success",c.copiedFromIndex()===F),DE(2),iT(c.copiedFromIndex()===F?3:4),DE(3),nm(rb(7,4,o.data));}}function Et(n,t){if(n&1){let e=gT();Qi(0,"article",2)(1,"header",3),Fg("click",function(){let F=Sd(e).$implicit,c=nC();return xd(c.toggleOpenEntry(F.id))}),Qi(2,"h3"),PC(3),tb(4,"date"),Hl(),Qi(5,"div",4)(6,"sh-icon",5),PC(7,"caret-down"),Hl()()(),oT(8,dt,8,6,"section",6),Hl();}if(n&2){let e=t.$implicit,o=nC();DE(3),om("",ob(4,6,e.timestamp,"medium"),": ",e.operation," ",e.path),DE(3),Qg("open",e.id===o.openEntry()),DE(2),iT(e.id===o.openEntry()?8:-1);}}var Pe=class n{#e=T(C);backupId=g1.required();openEntry=Ue(null);pagination=Ue({offset:0,pagesize:100});copiedFromIndex=Ue(null);resource=$({params:()=>l({id:this.backupId()},this.pagination()),stream:({params:t})=>this.#e.getApiV1BackupByIdRemotelog({id:t.id,pagesize:100}).pipe(pt$1(e=>e.map((o,F)=>({id:o.ID,operationId:o.OperationID,timestamp:o.Timestamp*1e3,operation:o.Operation,path:o.Path,data:typeof o.Data=="string"?JSON.parse(o.Data):null}))))});toggleOpenEntry(t){if(this.openEntry()===t){this.openEntry.set(null);return}this.openEntry.set(t);}copyToClipboard(t,e){let o=JSON.stringify(t,null,2);navigator.clipboard.writeText(o),this.copiedFromIndex.set(e),setTimeout(()=>{this.copiedFromIndex.set(null);},3e3);}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=dw({type:n,selectors:[["app-remote-log"]],inputs:{backupId:[1,"backupId"]},decls:3,vars:1,consts:()=>{let t;return t=$localize`${"\uFFFD*3:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:check${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON: Copied ${"\uFFFD/*3:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*4:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:copy${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON: Copy to clipboard ${"\uFFFD/*4:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,t=tC(t),[t,[1,"indeterminate","primary"],[1,"log-entry"],[3,"click"],[1,"actions"],[1,"toggle-indicator"],[1,"log-content"],["shButton","",1,"small",3,"click"]]},template:function(e,o){e&1&&(oT(0,st,1,0,"sh-progress-bar",1),cT(1,Et,9,9,"article",2,sT)),e&2&&(iT(o.resource.isLoading()?0:-1),DE(),lT(o.resource.value()));},dependencies:[d,N,hi,ci],styles:["[_nghost-%COMP%]{display:block}.log-entry[_ngcontent-%COMP%]{display:flex;flex-direction:column}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:1rem;border-bottom:1px solid var(--base-4);background-color:var(--base-1);cursor:pointer}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]:hover{background-color:var(--base-2)}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-30);margin:0;-webkit-user-select:none;user-select:none}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-8)}.toggle-indicator[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;height:1.25rem;transition:transform 125ms linear}.toggle-indicator.open[_ngcontent-%COMP%]{transform:rotate(180deg)}.log-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:1rem;position:relative}.log-content[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{position:absolute;top:2rem;right:2rem;background:transparent}code[_ngcontent-%COMP%]{white-space:pre-wrap;padding:1rem;display:block;border-radius:var(--shape-2);background-color:var(--base-2)}"]})};function Ct(n,t){if(n&1&&(PC(0," - "),Ul(1),XT(2,6),Wl(),PC(3),tb(4,"durationFormat")),n&2){nC(2);let e=$C(6);DE(3),Gl(" ",rb(4,1,e.Backup.Metadata?.LastBackupDuration)," ");}}function pt(n,t){n&1&&(Ul(0),XT(1,7),Wl());}function Tt(n,t){if(n&1&&(PC(0),tb(1,"bytes")),n&2){nC(2);let e=$C(6);Gl(" ",rb(1,1,e.Backup.Metadata?.SourceFilesSize)," ");}}function gt(n,t){n&1&&(Ul(0),XT(1,8),Wl());}function St(n,t){if(n&1&&(PC(0),tb(1,"bytes")),n&2){nC(2);let e=$C(6);Gl(" ",rb(1,1,e.Backup.Metadata?.TargetFilesSize)," ");}}function Ot(n,t){n&1&&(Ul(0),XT(1,9),Wl());}function Lt(n,t){if(n&1&&(Qi(0,"sh-chip",20),XT(1,10),Hl()),n&2){nC(2);let e=$C(6);DE(),Lg(e.Backup.Metadata?.BackupListCount),eC(1);}}function Nt(n,t){n&1&&(Qi(0,"sh-chip",21),XT(1,11),Hl());}function mt(n,t){if(n&1&&(Qi(0,"div",14)(1,"div",19)(2,"h3"),PC(3),Qi(4,"sh-icon"),PC(5,"database"),Hl()(),Qi(6,"p")(7,"span"),XT(8,3),Hl(),PC(9),tb(10,"date"),oT(11,Ct,5,3)(12,pt,2,0,"ng-container"),Hl(),Qi(13,"p")(14,"span"),XT(15,4),Hl(),oT(16,Tt,2,3)(17,gt,2,0,"ng-container"),Hl(),Qi(18,"p")(19,"span"),XT(20,5),Hl(),oT(21,St,2,3)(22,Ot,2,0,"ng-container"),Hl()(),oT(23,Lt,2,1,"sh-chip",20)(24,Nt,2,0,"sh-chip",21),Hl()),n&2){let e=nC(),o=$C(6);DE(3),Gl(" ",o.Backup.Name??e.MISSING_BACKUP_NAME," "),DE(6),Gl(" ",ob(10,6,o.Backup.Metadata?.LastBackupFinished,"short")," "),DE(2),iT(o.Backup.Metadata?.LastBackupDuration?11:12),DE(5),iT(o.Backup.Metadata?.SourceFilesSize?16:17),DE(5),iT(o.Backup.Metadata?.TargetFilesSize?21:22),DE(2),iT(o.Backup.Metadata?.BackupListCount?23:24);}}function Gt(n,t){if(n&1&&mg(0,"app-general-log",18),n&2){let e=nC();gg("backupId",e.backupId());}}function At(n,t){if(n&1&&mg(0,"app-remote-log",18),n&2){let e=nC();gg("backupId",e.backupId());}}var Re=class n{#e=T(W);#n=T(g);MISSING_BACKUP_NAME=$localize`Backup name missing`;activeTab=Ue("general");backupId=L(this.#e.params.pipe(pt$1(t=>t.id)));backup=Nt$1(()=>{let t=this.backupId();return t?this.#n.getBackupById(t):null});static \u0275fac=function(e){return new(e||n)};static \u0275cmp=dw({type:n,selectors:[["app-log"]],decls:15,vars:5,consts:()=>{let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SH_ICON: Back `;let e;e=$localize`General`;let o;o=$localize`Destination`;let F;F=$localize`Last successful backup:`;let c;c=$localize`Source:`;let L;L=$localize`Destination:`;let G;G=$localize`took`;let k;k=$localize`N/A`;let N;N=$localize`N/A`;let v;v=$localize`N/A`;let U;U=$localize`${"\uFFFD0\uFFFD"}:INTERPOLATION: Version`;let Q;return Q=$localize`No version yet`,[t,e,o,F,c,L,G,k,N,v,U,Q,[1,"back"],["type","button","shButton","","routerLink","/",1,"small"],[1,"backup"],[1,"primary",3,"valueChange","value"],["value","general"],["value","destination"],[3,"backupId"],[1,"text"],[1,"simple","success"],[1,"simple"]]},template:function(e,o){if(e&1){let F=gT();mg(0,"app-status-bar"),Qi(1,"section")(2,"div",12)(3,"button",13),Og(4,0),mg(5,"sh-icon"),Pg(),Hl()(),cm(6),oT(7,mt,25,9,"div",14),Qi(8,"sh-tabs",15),sm("valueChange",function(L){return Sd(F),HC(o.activeTab,L)||(o.activeTab=L),xd(L)}),Qi(9,"button",16),XT(10,1),Hl(),Qi(11,"button",17),XT(12,2),Hl()(),oT(13,Gt,1,1,"app-general-log",18),oT(14,At,1,1,"app-remote-log",18),Hl();}if(e&2){DE(6);let F=BC(o.backup());DE(),iT(F?7:-1),DE(),im("value",o.activeTab),DE(5),iT(o.activeTab()==="general"?13:-1),DE(),iT(o.activeTab()==="destination"?14:-1);}},dependencies:[w,De,Pe,_t$1,ee,N,v,D,m,c,ci],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:1rem 1.5rem;gap:1rem}sh-tabs[_ngcontent-%COMP%]{margin-bottom:1rem}.backup[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem;gap:1rem;border:1px solid var(--base-4);border-radius:var(--shape-3);box-shadow:var(--box-shadow-10)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;width:100%;max-width:40%}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{color:var(--base-8)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-8)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--base-12)}"]})};export{Re as default};
@@ -1 +1 @@
1
- import {e as ee}from'./chunk-D_JCqKo8.js';import'./chunk-w_Hs_Uxi.js';import'./chunk-D1wHRltX.js';import'./chunk-CBdr-6_u.js';import'./chunk-BZqhgAZ-.js';import'./chunk-B9zNFJSv.js';import'./chunk-COgNe44h.js';import'./chunk-BAZ5npJw.js';import {T,ab as C,aw as W,N as Nt,U as Ue,d as dw,f as N,v as v$1,_ as _t,j as mg,Q as Qi,O as Og,P as Pg,H as Hl,F as Fg,o as oT,a1 as cT,D as DE,z as gg,a_ as ZC,i as iT,a2 as lT,t as tC,X as XT,q as PC,aa as Gl,ap as sT}from'./main-PXGZLKMN.js';import'./chunk-MvQwR7nW.js';import'./chunk-SycscfJp.js';import {L}from'./chunk-D28lTX0k.js';import'./chunk-DQW8lSiz.js';import'./chunk-CMmgPgiU.js';import'./chunk-C9EdrQe6.js';import'./chunk-Drc5kcUX.js';import'./chunk-B-fklW6A.js';var k=e=>({state:e});function y(e,t){e&1&&XT(0,2,1);}function v(e,t){e&1&&XT(0,2,2);}function U(e,t){e&1&&XT(0,2,3);}function G(e,t){e&1&&XT(0,2,4);}function K(e,t){if(e&1&&(PC(0),mg(1,"br")),e&2){let o=t.$implicit;Gl(" ",o," ");}}var S=class e{#t=T(C);#e=T(W);#n=L(this.#e.params);#o=L(this.#e.queryParams);runId=Nt(()=>this.#n()?.runId);stateId=Nt(()=>this.#o()?.state);offset=Ue(0);status=Ue("starting");messageLog=Ue([]);interval=setInterval(()=>{this.#t.getApiV1CommandlineByRunid({runid:this.runId(),offset:this.offset(),pagesize:100}).subscribe(t=>{this.offset.set(t.Count),this.evalStatus(t),this.messageLog.update(o=>[...o,...t.Items]);});},1e3);evalStatus(t){t.Started===true&&t.Finished===true&&(this.status.set("finished"),clearInterval(this.interval)),t.Started===true&&t.Finished===false&&this.status.set("started");}abort(){this.#t.postApiV1CommandlineByRunidAbort({runid:this.runId()}).subscribe({next:t=>{this.status.set("aborted"),clearInterval(this.interval);}});}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=dw({type:e,selectors:[["app-commandline-result"]],decls:18,vars:7,consts:()=>{let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SH_ICON: Back `;let o;o=$localize` Running commandline task... ${"\uFFFD#8\uFFFD"}:START_TAG_BUTTON:Abort${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_BUTTON:`;let n;return n=$localize`${"\uFFFD*11:1\uFFFD"}:START_BLOCK_IF: Starting... ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*12:2\uFFFD"}:START_BLOCK_IF_1: Started! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*13:3\uFFFD"}:START_BLOCK_IF_2: Finished! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*14:4\uFFFD"}:START_BLOCK_IF_3: Aborted! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:`,n=tC(n),[t,o,n,[1,"back"],["type","button","shButton","","routerLink","../",1,"small",3,"queryParams"],["type","button","shButton","",1,"small",3,"click"],[1,"status"]]},template:function(o,n){o&1&&(mg(0,"app-status-bar"),Qi(1,"section")(2,"div",3)(3,"button",4),Og(4,0),mg(5,"sh-icon"),Pg(),Hl()(),Qi(6,"h3"),Og(7,1),Qi(8,"button",5),Fg("click",function(){return n.abort()}),Hl(),Pg(),Hl(),Qi(9,"div",6),Og(10,2),oT(11,y,1,0),oT(12,v,1,0),oT(13,U,1,0),oT(14,G,1,0),Pg(),Hl(),Qi(15,"code"),cT(16,K,2,1,null,null,sT),Hl()()),o&2&&(DE(3),gg("queryParams",ZC(5,k,n.stateId())),DE(8),iT(n.status()==="starting"?11:-1),DE(),iT(n.status()==="started"?12:-1),DE(),iT(n.status()==="finished"?13:-1),DE(),iT(n.status()==="aborted"?14:-1),DE(2),lT(n.messageLog()));},dependencies:[ee,N,v$1,_t],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;padding:2.5rem;gap:1.25rem}code[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--base-8),#000 70%);color:#fff;padding:2.5rem 2.5rem 2.5rem 1.5rem;border-radius:var(--shape-3);overflow:auto;white-space:pre}"]})};export{S as default};
1
+ import {e as ee}from'./chunk-B0RBkC1E.js';import'./chunk-BB1pOOUx.js';import'./chunk-DN6f5jXR.js';import'./chunk-3RXp81pP.js';import'./chunk-CT9ziigM.js';import'./chunk-D5lj-fQk.js';import'./chunk-OLi7f6y7.js';import'./chunk-B2TXzbpy.js';import {T,ab as C,aw as W,N as Nt,U as Ue,d as dw,f as N,v as v$1,_ as _t,j as mg,Q as Qi,O as Og,P as Pg,H as Hl,F as Fg,o as oT,a1 as cT,D as DE,z as gg,a_ as ZC,i as iT,a2 as lT,t as tC,X as XT,q as PC,aa as Gl,ap as sT}from'./main-KFKZO6SJ.js';import'./chunk-CRAg6SRo.js';import'./chunk-DuIUmwWN.js';import'./chunk-DipTNkHN.js';import'./chunk-Fw6nFDZK.js';import'./chunk-Ca1C9pJ0.js';import'./chunk-C-NgIZiF.js';import {L}from'./chunk-C7pjkqKB.js';import'./chunk-PVmXLw9b.js';var k=e=>({state:e});function y(e,t){e&1&&XT(0,2,1);}function v(e,t){e&1&&XT(0,2,2);}function U(e,t){e&1&&XT(0,2,3);}function G(e,t){e&1&&XT(0,2,4);}function K(e,t){if(e&1&&(PC(0),mg(1,"br")),e&2){let o=t.$implicit;Gl(" ",o," ");}}var S=class e{#t=T(C);#e=T(W);#n=L(this.#e.params);#o=L(this.#e.queryParams);runId=Nt(()=>this.#n()?.runId);stateId=Nt(()=>this.#o()?.state);offset=Ue(0);status=Ue("starting");messageLog=Ue([]);interval=setInterval(()=>{this.#t.getApiV1CommandlineByRunid({runid:this.runId(),offset:this.offset(),pagesize:100}).subscribe(t=>{this.offset.set(t.Count),this.evalStatus(t),this.messageLog.update(o=>[...o,...t.Items]);});},1e3);evalStatus(t){t.Started===true&&t.Finished===true&&(this.status.set("finished"),clearInterval(this.interval)),t.Started===true&&t.Finished===false&&this.status.set("started");}abort(){this.#t.postApiV1CommandlineByRunidAbort({runid:this.runId()}).subscribe({next:t=>{this.status.set("aborted"),clearInterval(this.interval);}});}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=dw({type:e,selectors:[["app-commandline-result"]],decls:18,vars:7,consts:()=>{let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SH_ICON: Back `;let o;o=$localize` Running commandline task... ${"\uFFFD#8\uFFFD"}:START_TAG_BUTTON:Abort${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_BUTTON:`;let n;return n=$localize`${"\uFFFD*11:1\uFFFD"}:START_BLOCK_IF: Starting... ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*12:2\uFFFD"}:START_BLOCK_IF_1: Started! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*13:3\uFFFD"}:START_BLOCK_IF_2: Finished! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*14:4\uFFFD"}:START_BLOCK_IF_3: Aborted! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:`,n=tC(n),[t,o,n,[1,"back"],["type","button","shButton","","routerLink","../",1,"small",3,"queryParams"],["type","button","shButton","",1,"small",3,"click"],[1,"status"]]},template:function(o,n){o&1&&(mg(0,"app-status-bar"),Qi(1,"section")(2,"div",3)(3,"button",4),Og(4,0),mg(5,"sh-icon"),Pg(),Hl()(),Qi(6,"h3"),Og(7,1),Qi(8,"button",5),Fg("click",function(){return n.abort()}),Hl(),Pg(),Hl(),Qi(9,"div",6),Og(10,2),oT(11,y,1,0),oT(12,v,1,0),oT(13,U,1,0),oT(14,G,1,0),Pg(),Hl(),Qi(15,"code"),cT(16,K,2,1,null,null,sT),Hl()()),o&2&&(DE(3),gg("queryParams",ZC(5,k,n.stateId())),DE(8),iT(n.status()==="starting"?11:-1),DE(),iT(n.status()==="started"?12:-1),DE(),iT(n.status()==="finished"?13:-1),DE(),iT(n.status()==="aborted"?14:-1),DE(2),lT(n.messageLog()));},dependencies:[ee,N,v$1,_t],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;padding:2.5rem;gap:1.25rem}code[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--base-8),#000 70%);color:#fff;padding:2.5rem 2.5rem 2.5rem 1.5rem;border-radius:var(--shape-3);overflow:auto;white-space:pre}"]})};export{S as default};
@@ -1,4 +1,4 @@
1
- import {L as L$1}from'./chunk-D28lTX0k.js';import {T,ab as C$1,bq as je$1,br as x$1,aG as pt$1,d as dw,R as Bl,X as XT,W as $l,V as yg,D as DE,aq as Eg,aD as zC,aj as l,ai as m,bs as $p}from'./main-PXGZLKMN.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-C7pjkqKB.js';import {T,ab as C$1,bq as je$1,br as x$1,aG as pt$1,d as dw,R as Bl,X as XT,W as $l,V as yg,D as DE,aq as Eg,aD as zC,aj as l,ai as m,bs as $p}from'./main-KFKZO6SJ.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,2 +1,2 @@
1
- import {d as dw,L as oC,Y as iC}from'./main-PXGZLKMN.js';var d=["*"],c=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)};}static{this.\u0275cmp=dw({type:e,selectors:[["sh-divider"]],hostAttrs:["role","separator"],ngContentSelectors:d,decls:1,vars:0,template:function(i,a){i&1&&(oC(),iC(0));},styles:[`sh-divider{--divider-c: var(--base-4);--divider-h: .0625rem;display:flex;gap:.5rem;align-items:center;text-align:center}sh-divider:empty{gap:0}sh-divider:before,sh-divider:after{content:"";background:var(--divider-c);height:var(--divider-h);flex:1 0}
1
+ import {d as dw,L as oC,Y as iC}from'./main-KFKZO6SJ.js';var d=["*"],c=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)};}static{this.\u0275cmp=dw({type:e,selectors:[["sh-divider"]],hostAttrs:["role","separator"],ngContentSelectors:d,decls:1,vars:0,template:function(i,a){i&1&&(oC(),iC(0));},styles:[`sh-divider{--divider-c: var(--base-4);--divider-h: .0625rem;display:flex;gap:.5rem;align-items:center;text-align:center}sh-divider:empty{gap:0}sh-divider:before,sh-divider:after{content:"";background:var(--divider-c);height:var(--divider-h);flex:1 0}
2
2
  `],encapsulation:2});}}return e})();export{c};