@duplicati/ngclient 0.0.231 → 0.0.233

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 (120) hide show
  1. package/assets/sh.woff2 +0 -0
  2. package/{chunk-SycSMD-r.js → chunk-8Y8ReLEn.js} +2 -2
  3. package/{chunk-Baizh2Dx.js → chunk-AuCOjHXM.js} +1 -1
  4. package/{chunk-C3KPTLNN.js → chunk-B1c7h-_w.js} +1 -1
  5. package/chunk-B1wZ4poV.js +1 -0
  6. package/{chunk-BAVJD-p4.js → chunk-B5Y6lgE8.js} +1 -1
  7. package/chunk-B6c2NXNy.js +1 -0
  8. package/chunk-BZgAzrl9.js +2 -0
  9. package/chunk-B_cIFQAl.js +1 -0
  10. package/{chunk-BhGD1_v8.js → chunk-BaSm1lsB.js} +1 -1
  11. package/{chunk-RqvNv7T_.js → chunk-Bgw6E0Xu.js} +1 -1
  12. package/{chunk-BRJ93eei.js → chunk-Bj7EyCHb.js} +1 -1
  13. package/{chunk-dCFVYHva.js → chunk-BmmYJhOf.js} +1 -1
  14. package/chunk-BrtdRb9j.js +1 -0
  15. package/{chunk-CTwvkMrj.js → chunk-BsNCg00z.js} +2 -2
  16. package/{chunk-CwKxis_6.js → chunk-BstaUtD_.js} +1 -1
  17. package/{chunk-DPpQ_8VM.js → chunk-BxpXVeOr.js} +1 -1
  18. package/{chunk-BhPCHFyT.js → chunk-ByL8ndec.js} +1 -1
  19. package/chunk-BzJX1fKw.js +1 -0
  20. package/{chunk-CI8lsvKT.js → chunk-C3gUxHQM.js} +1 -1
  21. package/{chunk-Cng2PWKw.js → chunk-C7AeY2HY.js} +2 -2
  22. package/chunk-C7gG_Yh_.js +2 -0
  23. package/{chunk-CDEvMQA2.js → chunk-C9OqpwwE.js} +1 -1
  24. package/{chunk-C1BwGQgo.js → chunk-C9ecLR93.js} +2 -2
  25. package/chunk-CGsQCBkP.js +1 -0
  26. package/{chunk-oTpkLrqH.js → chunk-CIe9Bupz.js} +1 -1
  27. package/chunk-CIw_h8oP.js +1 -0
  28. package/{chunk-C2H72Zk8.js → chunk-CP6xnjgo.js} +2 -2
  29. package/{chunk-CxjTj8X0.js → chunk-CS2J-6VZ.js} +1 -1
  30. package/{chunk-DKwqdnLJ.js → chunk-CWgXi-7W.js} +1 -1
  31. package/{chunk-DKacf9Tj.js → chunk-CX3Axjpk.js} +1 -1
  32. package/chunk-Ca1aaA1h.js +1 -0
  33. package/{chunk-7qu0Yols.js → chunk-CfxBiw7I.js} +1 -1
  34. package/{chunk-DNUCXG8E.js → chunk-CgJAbgNN.js} +1 -1
  35. package/{chunk-PGDvGDW-.js → chunk-ChUm8bnG.js} +1 -1
  36. package/chunk-CkRbgemk.js +2 -0
  37. package/chunk-ClRItSzt.js +1 -0
  38. package/{chunk-EwTTC1EW.js → chunk-CsIAXoYP.js} +1 -1
  39. package/{chunk-BYJ0fSUP.js → chunk-CuJ_uEdr.js} +1 -1
  40. package/{chunk--kVw-BwM.js → chunk-CvSsZZty.js} +1 -1
  41. package/{chunk-DuTbfCdT.js → chunk-CyqqlRjO.js} +2 -2
  42. package/{chunk-D2aWqPl_.js → chunk-D1pDZLJ9.js} +1 -1
  43. package/{chunk-D2MSuPzM.js → chunk-D2G7_0hG.js} +1 -1
  44. package/{chunk-C6beMvkJ.js → chunk-D3PhthfU.js} +1 -1
  45. package/chunk-D55uWC7G.js +1 -0
  46. package/{chunk-PONAC1Ya.js → chunk-DDWDcSq2.js} +1 -1
  47. package/{chunk-U0VOUPLl.js → chunk-DD_wKpGc.js} +1 -1
  48. package/{chunk-D3d-eReU.js → chunk-DGvC49aU.js} +1 -1
  49. package/{chunk-5Ay2I6OJ.js → chunk-DGxk44Me.js} +2 -2
  50. package/{chunk-DA5X-TzJ.js → chunk-DM11Gu0H.js} +1 -1
  51. package/chunk-DV8bRznt.js +2 -0
  52. package/{chunk-Bj1ToKwz.js → chunk-DWiO0A6h.js} +2 -2
  53. package/{chunk-CQv4eyEK.js → chunk-DXEgz1tV.js} +1 -1
  54. package/{chunk-B1FMMTzB.js → chunk-DbbyVAGl.js} +1 -1
  55. package/{chunk-D5031IDL.js → chunk-DcdpG1YG.js} +2 -2
  56. package/{chunk-D3SUPUQT.js → chunk-DhiIZLrA.js} +3 -3
  57. package/{chunk-C5p3bQwH.js → chunk-DidJB9ig.js} +1 -1
  58. package/{chunk-JMkz2RrF.js → chunk-Dk-Wgx3e.js} +1 -1
  59. package/{chunk-DfcHtA-G.js → chunk-DuYKanVS.js} +1 -1
  60. package/{chunk-DH6L3nQP.js → chunk-DwmssGG9.js} +1 -1
  61. package/chunk-DxFBzFom.js +1 -0
  62. package/{chunk-DH6iiZWc.js → chunk-Dz5guW4b.js} +1 -1
  63. package/{chunk-DuHXCtrV.js → chunk-FTZ5atHM.js} +1 -1
  64. package/{chunk-DAM-4k69.js → chunk-I5dxaHZ4.js} +2 -2
  65. package/{chunk-CzJ3-6Pu.js → chunk-K2iai6rC.js} +1 -1
  66. package/{chunk-DlqfMbsZ.js → chunk-L8hQtTzU.js} +1 -1
  67. package/{chunk-Crs56mDy.js → chunk-MDqH8T3Z.js} +2 -2
  68. package/{chunk-B6VmpM-T.js → chunk-Y-xXBGKy.js} +1 -1
  69. package/{chunk-BjSSXg5V.js → chunk-Z81HNfgo.js} +1 -1
  70. package/{chunk-D7AP6g7S.js → chunk-aCJqF9DH.js} +1 -1
  71. package/{chunk-B7vxwDBG.js → chunk-aYCYzU5Q.js} +1 -1
  72. package/{chunk-BFfFD-XE.js → chunk-bt6lhYfG.js} +1 -1
  73. package/{chunk-CqwyTVd3.js → chunk-eiyaQxBt.js} +1 -1
  74. package/{chunk-Bgx4dtaL.js → chunk-h6n5A491.js} +1 -1
  75. package/{chunk-mnaJWx8D.js → chunk-jy8x4GhV.js} +1 -1
  76. package/{chunk-Bfak-Gjv.js → chunk-ksSA-rDF.js} +1 -1
  77. package/{chunk-CP3edE1P.js → chunk-lymL5FDY.js} +1 -1
  78. package/{chunk-gaP3Sx_C.js → chunk-mA4J4_nC.js} +1 -1
  79. package/{chunk-Bcxzhjj8.js → chunk-mflQLMHH.js} +1 -1
  80. package/chunk-nuwlP4Wz.js +14 -0
  81. package/chunk-uGh0bVbu.js +4 -0
  82. package/index.html +1 -1
  83. package/locale/messages.de.json +69 -9
  84. package/locale/messages.de_CH.json +68 -8
  85. package/locale/messages.de_DE.json +68 -8
  86. package/locale/messages.en.json +32 -8
  87. package/locale/messages.fr.json +77 -13
  88. package/locale/messages.fr_CA.json +72 -8
  89. package/locale/messages.fr_FR.json +72 -8
  90. package/locale/messages.it.json +76 -12
  91. package/locale/messages.it_IT.json +72 -8
  92. package/locale/messages.json +32 -8
  93. package/locale/messages.ko.json +8 -15
  94. package/locale/messages.nl_BE.json +72 -8
  95. package/locale/messages.nl_NL.json +72 -8
  96. package/locale/messages.tr.json +7 -9
  97. package/locale/messages.zh-Hans.json +159 -16
  98. package/locale/messages.zh-Hant.json +159 -16
  99. package/locale/messages.zh.json +159 -16
  100. package/locale/messages.zh_CN.json +159 -16
  101. package/locale/messages.zh_HK.json +7 -8
  102. package/locale/messages.zh_TW.json +159 -16
  103. package/{main-QLXVXD6E.js → main-3NL5M6JB.js} +14 -14
  104. package/package.json +1 -1
  105. package/chunk-6bHATzM2.js +0 -1
  106. package/chunk-BC2-YuwH.js +0 -14
  107. package/chunk-BHERv_y8.js +0 -1
  108. package/chunk-BIAFFPb6.js +0 -1
  109. package/chunk-B_iekvt6.js +0 -1
  110. package/chunk-BlfsmSZO.js +0 -4
  111. package/chunk-Bnu5Zyue.js +0 -1
  112. package/chunk-CAgfvBGI.js +0 -2
  113. package/chunk-CmexLvf7.js +0 -2
  114. package/chunk-D9O-afXN.js +0 -1
  115. package/chunk-Da2vs6ff.js +0 -1
  116. package/chunk-DlTsXgG2.js +0 -2
  117. package/chunk-DoYGADYB.js +0 -1
  118. package/chunk-Z5fN6CGR.js +0 -1
  119. package/chunk-d4cdVCUg.js +0 -2
  120. package/chunk-tpJJunhQ.js +0 -1
@@ -1,4 +1,4 @@
1
- import {T,ae as eo,b as I1,b9 as ce$1,bu as rE,h as hw,M as aC,X as cC,P as Ul,S as Wl,V as Vg,g as NC,ad as Mr,bv as N,af as E1,ac as v1,N as Nt,aj as l,E as D1,G as Ge,bw as le$1,z as za,an as Hg,R as Ig,f as aT,aC as mg,C as CE,ag as Zg,i as cT,Y as Yg,W as Wg,K as fC,Q as Qi,p as cm,U as UC,$ as $l,j as vg,x as am,A as yg,a3 as KC,l as vT,r as kd,k as iC,O as Od,bx as _C}from'./main-QLXVXD6E.js';var pe=["triggerRef"],se=["popoverRef"],ne=["popoverContentRef"],fe=[[["","trigger",""]],[["button"]],[["","shButton",""]],"*"],ae=["[trigger]","button","[shButton]","*"];function le(s,xe){if(s&1){let i=vT();Ul(0,"div",6,1)(2,"div",7),Hg("click",function(r){kd(i);let n=iC();return Od(n.eventClose(r))}),Wl(),Ul(3,"div",8,2),cC(5,3),Wl()();}if(s&2){let i=iC();mg("id",i.id()+"hello"),CE(3),_C(i.menuStyle()),Zg("position-anchor",i.id());}}var h=4,he=["scroll","auto"],de={width:void 0,height:void 0,closeOnButton:true,closeOnEsc:true},oe=(()=>{class s{constructor(){this.#e=T(Mr),this.#r=T(N),this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.asMultiLayer=I1(false),this.asSheetOnMobile=I1(false),this.disableOpenByClick=I1(false),this.isOpen=E1(false),this.options=I1(),this.closed=v1(),this.defaultOptionMerge=Nt(()=>l(l({},de),this.options())),this.triggerRef=D1.required("triggerRef"),this.popoverRef=D1("popoverRef"),this.popoverContentRef=D1("popoverContentRef"),this.id=Ge("--"+le$1()),this.menuStyle=Ge(null),this.openAbort=null,this.#i=null,this.openEffect=za(()=>{let i=this.isOpen(),e=this.popoverRef()?.nativeElement;queueMicrotask(()=>{if(!e){this.openAbort?.abort(),this.openAbort=null;return}if(i){if(this.openAbort&&this.openAbort.abort(),this.openAbort=new AbortController,this.#e.addEventListener("keydown",o=>{this.#r.matches(o,"popover.close")&&(this.defaultOptionMerge().closeOnEsc?this.isOpen.set(false):o.preventDefault());},{signal:this.openAbort?.signal}),!e.isConnected)return;e.showPopover();let r=this.#r.getShortcut("popover.close");r&&e.setAttribute("aria-keyshortcuts",this.#r.getDisplayShortcut("popover.close")||r);let n=this.asSheetOnMobile()&&window.innerWidth<=768;n&&(this.#i=this.#e.body.style.overflow,this.#e.body.style.overflow="hidden",this.menuStyle.set(null)),!this.SUPPORTS_ANCHOR&&!n&&setTimeout(()=>{this.#u(e).addEventListener("scroll",()=>this.#o(),{signal:this.openAbort?.signal}),window?.addEventListener("resize",()=>this.#o(),{signal:this.openAbort?.signal}),this.#o();});}else this.closed.emit(),e.hidePopover(),this.openAbort?.abort(),this.openAbort=null,this.asSheetOnMobile()&&this.#i!==null&&(this.#e.body.style.overflow=this.#i,this.#i=null);});});}#e;#r;#i;toggleIsOpen(i){this.disableOpenByClick()||(i.preventDefault(),i.stopPropagation(),this.isOpen.set(!this.isOpen()));}eventClose(i){this.isOpen()&&this.isOpen.set(false);}#u(i){let e=i.parentElement;for(;e;){if(he.indexOf(window?.getComputedStyle(e).overflowY)>-1&&e.scrollHeight>e.clientHeight)return e;e=e.parentElement;}return this.#e.documentElement}#t(i,e){return {left:i.left,top:i.bottom+h}}#p(i,e){return {left:i.left,top:i.top-e.height-h}}#s(i,e){return {left:i.right-e.width,top:i.bottom+h}}#n(i,e){return {left:i.right-e.width,top:i.top-e.height-h}}#f(i,e){return {left:i.right+h,top:i.top}}#a(i,e){return {left:i.left-e.width-h,top:i.top}}#l(i,e){return {left:i.right+h,top:i.top+i.height/2-e.height/2}}#h(i,e){return {left:i.left-e.width-h,top:i.top+i.height/2-e.height/2}}#d(i,e){return {left:i.right+h,top:i.bottom-e.height}}#m(i,e){return {left:i.left-e.width-h,top:i.bottom-e.height}}#c(i,e){return i.left>=0&&i.top>=0&&i.left+e.width<=window.innerWidth&&i.top+e.height<=window.innerHeight}#v(i,e){return {left:Math.max(0,Math.min(i.left,window.innerWidth-e.width)),top:Math.max(0,Math.min(i.top,window.innerHeight-e.height))}}#o(){let i=this.triggerRef()?.nativeElement.getBoundingClientRect(),e=this.popoverContentRef()?.nativeElement.getBoundingClientRect();if(!i||!e)return;let r=[this.#t,this.#p,this.#s,this.#n,this.#f,this.#a,this.#l,this.#h,this.#d,this.#m],n=[this.#f,this.#d,this.#a,this.#m,this.#l,this.#h,this.#t,this.#p,this.#s,this.#n],o=this.asMultiLayer()?n:r;for(let p of o){let y=p.call(this,i,e);if(this.#c(y,e)){this.menuStyle.set({left:y.left+"px",top:y.top+"px"});return}}let d=this.#v(o[0].call(this,i,e),e);this.menuStyle.set({left:d.left+"px",top:d.top+"px"});}ngOnDestroy(){this.openAbort?.abort(),this.openAbort=null;}static{this.\u0275fac=function(e){return new(e||s)};}static{this.\u0275cmp=hw({type:s,selectors:[["sh-popover"]],viewQuery:function(e,r){e&1&&Wg(r.triggerRef,pe,5)(r.popoverRef,se,5)(r.popoverContentRef,ne,5),e&2&&fC(3);},hostVars:4,hostBindings:function(e,r){e&2&&Yg("multi-layer",r.asMultiLayer())("as-sheet",r.asSheetOnMobile());},inputs:{asMultiLayer:[1,"asMultiLayer"],asSheetOnMobile:[1,"asSheetOnMobile"],disableOpenByClick:[1,"disableOpenByClick"],isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:ae,decls:8,vars:4,consts:[["triggerRef",""],["popoverRef",""],["popoverContentRef",""],[1,"trigger",3,"click"],[1,"trigger-wrapper"],[1,"trigger-anchor"],["popover","manual",1,"popover"],[1,"overlay",3,"click"],[1,"popover-content"]],template:function(e,r){e&1&&(aC(fe),Ul(0,"div",3,0),Hg("click",function(o){return r.toggleIsOpen(o)}),Ul(2,"div",4),cC(3),cC(4,1),cC(5,2),Wl(),Ig(6,"div",5),Wl(),aT(7,le,6,5,"div",6)),e&2&&(mg("popovertarget",r.id()+"hello"),CE(6),Zg("anchor-name",r.id()),CE(),cT(r.isOpen()?7:-1));},styles:[`sh-popover{--po-d: block;display:var(--po-d)}sh-popover.multi-layer .popover-content{position-area:right span-y-end}sh-popover.multi-layer .trigger .trigger-anchor{right:-.25rem;left:-.25rem;top:0;bottom:0}sh-popover .trigger{cursor:pointer;display:var(--po-d);position:relative}sh-popover .trigger .trigger-wrapper{display:var(--po-d)}sh-popover .trigger .trigger-wrapper:empty+*{display:inherit}sh-popover .trigger .trigger-anchor{position:absolute;inset:0;z-index:-1}sh-popover .popover{position:fixed;inset:0;width:100%;height:100%;border:0;opacity:1;background-color:transparent;z-index:-1}sh-popover .popover .overlay{width:100%;height:100%;position:absolute;top:0;left:0;background-color:transparent}sh-popover [popover]::backdrop{display:none}sh-popover .popover-content{position:fixed;margin:0;min-width:11.25rem;max-width:calc(100vw - .5rem);max-height:calc(100vh - .5rem);overflow:auto;z-index:0;background-color:var(--base-1);border:var(--border-10);border-radius:var(--shape-2);font:var(--paragraph-30);color:var(--base-8);padding:0}@supports (anchor-name: --anchor){sh-popover .popover-content{inset:auto;top:.25rem;position:fixed;position-area:bottom span-right;max-width:unset;max-height:unset;overflow:visible;position-try-fallbacks:--top-span-right,--bottom-span-left,--top-span-left,--right-span-bottom,--left-span-bottom,--right-center,--left-center,--right-span-top,--left-span-top}}@media only screen and (max-width:768px){sh-popover.as-sheet .popover{z-index:9999}sh-popover.as-sheet .popover .overlay{background-color:var(--overlay, rgba(0, 0, 0, .5))}@supports (anchor-name: --anchor){sh-popover.as-sheet .popover-content{position-area:none;position-try-fallbacks:none;inset:auto}}sh-popover.as-sheet .popover-content{position:fixed;top:auto;bottom:0;left:.5rem;right:.5rem;width:calc(100% - 1rem);max-width:unset;height:auto;max-height:calc(100vh - 5rem);border-bottom-left-radius:0;border-bottom-right-radius:0;margin:0;transform:translateY(0);display:flex;align-items:center;padding:1rem;justify-content:center}}.full-popover sh-popover .popover-content,sh-popover.full .popover-content{width:auto}@supports (anchor-name: --anchor){.full-popover sh-popover .popover-content,sh-popover.full .popover-content{left:anchor(left);right:anchor(right)}}@position-try --bottom-span-right{position-area:bottom span-right;inset:auto;top:.25rem}@position-try --bottom-span-left{position-area:bottom span-left;inset:auto;top:.25rem}@position-try --top-span-right{position-area:top span-right;inset:auto;bottom:.25rem}@position-try --top-span-left{position-area:top span-left;inset:auto;bottom:.25rem}@position-try --right-span-top{position-area:right span-top;inset:auto;left:.25rem}@position-try --left-span-top{position-area:left span-top;inset:auto;right:.25rem}@position-try --right-center{position-area:right center;inset:auto;left:.25rem}@position-try --left-center{position-area:left center;inset:auto;right:.25rem}@position-try --right-span-bottom{position-area:right span-bottom;inset:auto;left:.25rem}@position-try --left-span-bottom{position-area:left span-bottom;inset:auto;right:.25rem}
1
+ import {T,ae as eo,E as E1,bb as ce$1,bt as rE,h as hw,S as aC,Y as cC,V as Ul,X as Wl,H as Hg,f as NC,ad as Mr,bu as N,af as D1,ac as I1,N as Nt,aj as l,D as w1,G as Ge,bv as le$1,z as za,an as Bg,W as Eg,d as aT,aC as yg,C as CE,ag as Yg,g as cT,L as Kg,M as qg,R as fC,Q as Qi,p as lm,U as UC,$ as $l,i as Ig,w as cm,y as vg,a3 as KC,l as vT,O as Od,k as iC,P as Pd,bw as _C}from'./main-3NL5M6JB.js';var pe=["triggerRef"],se=["popoverRef"],ne=["popoverContentRef"],fe=[[["","trigger",""]],[["button"]],[["","shButton",""]],"*"],ae=["[trigger]","button","[shButton]","*"];function le(s,xe){if(s&1){let i=vT();Ul(0,"div",6,1)(2,"div",7),Bg("click",function(r){Od(i);let n=iC();return Pd(n.eventClose(r))}),Wl(),Ul(3,"div",8,2),cC(5,3),Wl()();}if(s&2){let i=iC();yg("id",i.id()+"hello"),CE(3),_C(i.menuStyle()),Yg("position-anchor",i.id());}}var h=4,he=["scroll","auto"],de={width:void 0,height:void 0,closeOnButton:true,closeOnEsc:true},oe=(()=>{class s{constructor(){this.#e=T(Mr),this.#r=T(N),this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.asMultiLayer=E1(false),this.asSheetOnMobile=E1(false),this.disableOpenByClick=E1(false),this.isOpen=D1(false),this.options=E1(),this.closed=I1(),this.defaultOptionMerge=Nt(()=>l(l({},de),this.options())),this.triggerRef=w1.required("triggerRef"),this.popoverRef=w1("popoverRef"),this.popoverContentRef=w1("popoverContentRef"),this.id=Ge("--"+le$1()),this.menuStyle=Ge(null),this.openAbort=null,this.#i=null,this.openEffect=za(()=>{let i=this.isOpen(),e=this.popoverRef()?.nativeElement;queueMicrotask(()=>{if(!e){this.openAbort?.abort(),this.openAbort=null;return}if(i){if(this.openAbort&&this.openAbort.abort(),this.openAbort=new AbortController,this.#e.addEventListener("keydown",o=>{this.#r.matches(o,"popover.close")&&(this.defaultOptionMerge().closeOnEsc?this.isOpen.set(false):o.preventDefault());},{signal:this.openAbort?.signal}),!e.isConnected)return;e.showPopover();let r=this.#r.getShortcut("popover.close");r&&e.setAttribute("aria-keyshortcuts",this.#r.getDisplayShortcut("popover.close")||r);let n=this.asSheetOnMobile()&&window.innerWidth<=768;n&&(this.#i=this.#e.body.style.overflow,this.#e.body.style.overflow="hidden",this.menuStyle.set(null)),!this.SUPPORTS_ANCHOR&&!n&&setTimeout(()=>{this.#u(e).addEventListener("scroll",()=>this.#o(),{signal:this.openAbort?.signal}),window?.addEventListener("resize",()=>this.#o(),{signal:this.openAbort?.signal}),this.#o();});}else this.closed.emit(),e.hidePopover(),this.openAbort?.abort(),this.openAbort=null,this.asSheetOnMobile()&&this.#i!==null&&(this.#e.body.style.overflow=this.#i,this.#i=null);});});}#e;#r;#i;toggleIsOpen(i){this.disableOpenByClick()||(i.preventDefault(),i.stopPropagation(),this.isOpen.set(!this.isOpen()));}eventClose(i){this.isOpen()&&this.isOpen.set(false);}#u(i){let e=i.parentElement;for(;e;){if(he.indexOf(window?.getComputedStyle(e).overflowY)>-1&&e.scrollHeight>e.clientHeight)return e;e=e.parentElement;}return this.#e.documentElement}#t(i,e){return {left:i.left,top:i.bottom+h}}#p(i,e){return {left:i.left,top:i.top-e.height-h}}#s(i,e){return {left:i.right-e.width,top:i.bottom+h}}#n(i,e){return {left:i.right-e.width,top:i.top-e.height-h}}#f(i,e){return {left:i.right+h,top:i.top}}#a(i,e){return {left:i.left-e.width-h,top:i.top}}#l(i,e){return {left:i.right+h,top:i.top+i.height/2-e.height/2}}#h(i,e){return {left:i.left-e.width-h,top:i.top+i.height/2-e.height/2}}#d(i,e){return {left:i.right+h,top:i.bottom-e.height}}#m(i,e){return {left:i.left-e.width-h,top:i.bottom-e.height}}#c(i,e){return i.left>=0&&i.top>=0&&i.left+e.width<=window.innerWidth&&i.top+e.height<=window.innerHeight}#v(i,e){return {left:Math.max(0,Math.min(i.left,window.innerWidth-e.width)),top:Math.max(0,Math.min(i.top,window.innerHeight-e.height))}}#o(){let i=this.triggerRef()?.nativeElement.getBoundingClientRect(),e=this.popoverContentRef()?.nativeElement.getBoundingClientRect();if(!i||!e)return;let r=[this.#t,this.#p,this.#s,this.#n,this.#f,this.#a,this.#l,this.#h,this.#d,this.#m],n=[this.#f,this.#d,this.#a,this.#m,this.#l,this.#h,this.#t,this.#p,this.#s,this.#n],o=this.asMultiLayer()?n:r;for(let p of o){let y=p.call(this,i,e);if(this.#c(y,e)){this.menuStyle.set({left:y.left+"px",top:y.top+"px"});return}}let d=this.#v(o[0].call(this,i,e),e);this.menuStyle.set({left:d.left+"px",top:d.top+"px"});}ngOnDestroy(){this.openAbort?.abort(),this.openAbort=null;}static{this.\u0275fac=function(e){return new(e||s)};}static{this.\u0275cmp=hw({type:s,selectors:[["sh-popover"]],viewQuery:function(e,r){e&1&&qg(r.triggerRef,pe,5)(r.popoverRef,se,5)(r.popoverContentRef,ne,5),e&2&&fC(3);},hostVars:4,hostBindings:function(e,r){e&2&&Kg("multi-layer",r.asMultiLayer())("as-sheet",r.asSheetOnMobile());},inputs:{asMultiLayer:[1,"asMultiLayer"],asSheetOnMobile:[1,"asSheetOnMobile"],disableOpenByClick:[1,"disableOpenByClick"],isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:ae,decls:8,vars:4,consts:[["triggerRef",""],["popoverRef",""],["popoverContentRef",""],[1,"trigger",3,"click"],[1,"trigger-wrapper"],[1,"trigger-anchor"],["popover","manual",1,"popover"],[1,"overlay",3,"click"],[1,"popover-content"]],template:function(e,r){e&1&&(aC(fe),Ul(0,"div",3,0),Bg("click",function(o){return r.toggleIsOpen(o)}),Ul(2,"div",4),cC(3),cC(4,1),cC(5,2),Wl(),Eg(6,"div",5),Wl(),aT(7,le,6,5,"div",6)),e&2&&(yg("popovertarget",r.id()+"hello"),CE(6),Yg("anchor-name",r.id()),CE(),cT(r.isOpen()?7:-1));},styles:[`sh-popover{--po-d: block;display:var(--po-d)}sh-popover.multi-layer .popover-content{position-area:right span-y-end}sh-popover.multi-layer .trigger .trigger-anchor{right:-.25rem;left:-.25rem;top:0;bottom:0}sh-popover .trigger{cursor:pointer;display:var(--po-d);position:relative}sh-popover .trigger .trigger-wrapper{display:var(--po-d)}sh-popover .trigger .trigger-wrapper:empty+*{display:inherit}sh-popover .trigger .trigger-anchor{position:absolute;inset:0;z-index:-1}sh-popover .popover{position:fixed;inset:0;width:100%;height:100%;border:0;opacity:1;background-color:transparent;z-index:-1}sh-popover .popover .overlay{width:100%;height:100%;position:absolute;top:0;left:0;background-color:transparent}sh-popover [popover]::backdrop{display:none}sh-popover .popover-content{position:fixed;margin:0;min-width:11.25rem;max-width:calc(100vw - .5rem);max-height:calc(100vh - .5rem);overflow:auto;z-index:0;background-color:var(--base-1);border:var(--border-10);border-radius:var(--shape-2);font:var(--paragraph-30);color:var(--base-8);padding:0}@supports (anchor-name: --anchor){sh-popover .popover-content{inset:auto;top:.25rem;position:fixed;position-area:bottom span-right;max-width:unset;max-height:unset;overflow:visible;position-try-fallbacks:--top-span-right,--bottom-span-left,--top-span-left,--right-span-bottom,--left-span-bottom,--right-center,--left-center,--right-span-top,--left-span-top}}@media only screen and (max-width:768px){sh-popover.as-sheet .popover{z-index:9999}sh-popover.as-sheet .popover .overlay{background-color:var(--overlay, rgba(0, 0, 0, .5))}@supports (anchor-name: --anchor){sh-popover.as-sheet .popover-content{position-area:none;position-try-fallbacks:none;inset:auto}}sh-popover.as-sheet .popover-content{position:fixed;top:auto;bottom:0;left:.5rem;right:.5rem;width:calc(100% - 1rem);max-width:unset;height:auto;max-height:calc(100vh - 5rem);border-bottom-left-radius:0;border-bottom-right-radius:0;margin:0;transform:translateY(0);display:flex;align-items:center;padding:1rem;justify-content:center}}.full-popover sh-popover .popover-content,sh-popover.full .popover-content{width:auto}@supports (anchor-name: --anchor){.full-popover sh-popover .popover-content,sh-popover.full .popover-content{left:anchor(left);right:anchor(right)}}@position-try --bottom-span-right{position-area:bottom span-right;inset:auto;top:.25rem}@position-try --bottom-span-left{position-area:bottom span-left;inset:auto;top:.25rem}@position-try --top-span-right{position-area:top span-right;inset:auto;bottom:.25rem}@position-try --top-span-left{position-area:top span-left;inset:auto;bottom:.25rem}@position-try --right-span-top{position-area:right span-top;inset:auto;left:.25rem}@position-try --left-span-top{position-area:left span-top;inset:auto;right:.25rem}@position-try --right-center{position-area:right center;inset:auto;left:.25rem}@position-try --left-center{position-area:left center;inset:auto;right:.25rem}@position-try --right-span-bottom{position-area:right span-bottom;inset:auto;left:.25rem}@position-try --left-span-bottom{position-area:left span-bottom;inset:auto;right:.25rem}
2
2
  `],encapsulation:2});}}return s})();var me=[[["label"]],[["","boxPrefix",""]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["textarea"]],[["","textSuffix",""]],[["","suffix",""]],[["","boxSuffix",""]],[["","error",""]],[["","hint",""]]],ue=["label","[boxPrefix]","[prefix]","[textPrefix]","input","textarea","[textSuffix]","[suffix]","[boxSuffix]","[error]","[hint]"],ce=[[["label"]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["textarea"]],[["","textSuffix",""]],[["","suffix",""]],[["","popoverContent",""]],[["","error",""]],[["","hint",""]]],ve=["label","[prefix]","[textPrefix]","input","textarea","[textSuffix]","[suffix]","[popoverContent]","[error]","[hint]"],ge=()=>({closeOnButton:false,closeOnEsc:true}),be=`sh-daterange-input.small sh-form-field-popover,sh-daterange-input.small sh-form-field,sh-datepicker-input.small sh-form-field-popover,sh-datepicker-input.small sh-form-field,sh-form-field-popover.small,sh-form-field.small{--ff-space: .4375rem .625rem;--ff-input-space: .375rem .625rem;--ff-f: var(--paragraph-40B);line-height:1rem}sh-daterange-input.small sh-form-field-popover .prefix,sh-daterange-input.small sh-form-field .prefix,sh-datepicker-input.small sh-form-field-popover .prefix,sh-datepicker-input.small sh-form-field .prefix,sh-form-field-popover.small .prefix,sh-form-field.small .prefix,sh-daterange-input.small sh-form-field-popover .suffix,sh-daterange-input.small sh-form-field .suffix,sh-datepicker-input.small sh-form-field-popover .suffix,sh-datepicker-input.small sh-form-field .suffix,sh-form-field-popover.small .suffix,sh-form-field.small .suffix{line-height:1rem}sh-daterange-input.small sh-form-field-popover .prefix>sh-icon,sh-daterange-input.small sh-form-field .prefix>sh-icon,sh-datepicker-input.small sh-form-field-popover .prefix>sh-icon,sh-datepicker-input.small sh-form-field .prefix>sh-icon,sh-form-field-popover.small .prefix>sh-icon,sh-form-field.small .prefix>sh-icon,sh-daterange-input.small sh-form-field-popover .suffix>sh-icon,sh-daterange-input.small sh-form-field .suffix>sh-icon,sh-datepicker-input.small sh-form-field-popover .suffix>sh-icon,sh-datepicker-input.small sh-form-field .suffix>sh-icon,sh-form-field-popover.small .suffix>sh-icon,sh-form-field.small .suffix>sh-icon{font-size:1rem}sh-form-field-popover,sh-form-field{--ff-s: var(--shape-2);--ff-bc: var(--base-4);--ff-boxfix-bg: var(--base-2);--ff-suffix-bg: transparent;--ff-ic: var(--base-11);--ff-bg: var(--base-1);--ff-f: var(--paragraph-30B);--ff-spinner-size: 1.25rem;--ff-spinner-thickness: .125rem;--ff-space: .5625rem .75rem;--ff-input-space: .625rem .75rem;--ff-mw: auto;--ff-bs: var(--ship-form-field-shadow, none);display:flex;flex-direction:column;align-items:flex-start;position:relative;width:100%;transition:transform 125ms linear;transform:scale(1)}sh-form-field-popover:has(input[type=time]),sh-form-field:has(input[type=time]){--ff-input-space: .5625rem .75rem}sh-form-field-popover:active .input-wrap,sh-form-field:active .input-wrap{--ff-bs: 0 0 6px 0 var(--base-4)}sh-form-field-popover[readonly],sh-form-field-popover.readonly,sh-form-field-popover[disabled],sh-form-field-popover.disabled,sh-form-field-popover:has(input[disabled]),sh-form-field-popover:has(textarea[disabled]),sh-form-field[readonly],sh-form-field.readonly,sh-form-field[disabled],sh-form-field.disabled,sh-form-field:has(input[disabled]),sh-form-field:has(textarea[disabled]){pointer-events:none;-webkit-user-select:none;user-select:none;opacity:.5}sh-form-field-popover[readonly]:active,sh-form-field-popover.readonly:active,sh-form-field-popover[disabled]:active,sh-form-field-popover.disabled:active,sh-form-field-popover:has(input[disabled]):active,sh-form-field-popover:has(textarea[disabled]):active,sh-form-field[readonly]:active,sh-form-field.readonly:active,sh-form-field[disabled]:active,sh-form-field.disabled:active,sh-form-field:has(input[disabled]):active,sh-form-field:has(textarea[disabled]):active{transform:scale(1)}sh-form-field-popover.auto-width,sh-form-field.auto-width{width:initial}sh-form-field-popover.auto-width .input-wrap,sh-form-field-popover.auto-width input,sh-form-field.auto-width .input-wrap,sh-form-field.auto-width input{width:initial}sh-form-field-popover.center .input-wrap input[type=number],sh-form-field-popover.center .input-wrap input,sh-form-field.center .input-wrap input[type=number],sh-form-field.center .input-wrap input{text-align:center}sh-form-field-popover label,sh-form-field label{display:flex;align-items:center;padding-bottom:.25rem;gap:.25rem}sh-form-field-popover label sh-icon,sh-form-field label sh-icon{font-size:1rem}sh-form-field-popover .suffix,sh-form-field-popover .prefix,sh-form-field .suffix,sh-form-field .prefix{display:none;align-items:center;gap:.25rem;padding:var(--ff-space);padding-right:0;transition:background-color 125ms linear;background-color:inherit;line-height:1.25rem}sh-form-field-popover .suffix:has([boxPrefix]),sh-form-field-popover .prefix:has([boxPrefix]),sh-form-field .suffix:has([boxPrefix]),sh-form-field .prefix:has([boxPrefix]){padding:var(--ff-space);background-color:var(--ff-boxfix-bg)}sh-form-field-popover .suffix:has([boxSuffix]),sh-form-field-popover .prefix:has([boxSuffix]),sh-form-field .suffix:has([boxSuffix]),sh-form-field .prefix:has([boxSuffix]){padding:var(--ff-space);background-color:var(--ff-boxfix-bg)}sh-form-field-popover .suffix [boxPrefix],sh-form-field-popover .suffix [boxSuffix],sh-form-field-popover .prefix [boxPrefix],sh-form-field-popover .prefix [boxSuffix],sh-form-field .suffix [boxPrefix],sh-form-field .suffix [boxSuffix],sh-form-field .prefix [boxPrefix],sh-form-field .prefix [boxSuffix]{--ff-ic: var(--base-8);display:flex;align-items:center;gap:.25rem}sh-form-field-popover .suffix:not(:empty),sh-form-field-popover .prefix:not(:empty),sh-form-field .suffix:not(:empty),sh-form-field .prefix:not(:empty){display:flex}sh-form-field-popover .suffix,sh-form-field .suffix{padding:var(--ff-space);background-color:var(--ff-suffix-bg)}sh-form-field-popover .suffix:has([textsuffix]),sh-form-field .suffix:has([textsuffix]){padding-left:0}sh-form-field-popover:has(input.ng-touched.ng-invalid),sh-form-field:has(input.ng-touched.ng-invalid){--ff-ic: var(--error-8);--ff-bc: var(--error-8);--ff-boxfix-bg: var(--error-2)}sh-form-field-popover.autosize,sh-form-field.autosize{width:min-content}sh-form-field-popover.autosize .input-wrap,sh-form-field.autosize .input-wrap{height:auto}sh-form-field-popover.autosize .input-wrap textarea,sh-form-field-popover.autosize .input-wrap input,sh-form-field.autosize .input-wrap textarea,sh-form-field.autosize .input-wrap input{field-sizing:content}sh-form-field-popover .input-wrap,sh-form-field .input-wrap{display:flex;align-items:center;border:var(--border-10);border-color:var(--ff-bc);border-radius:var(--ff-s);background:var(--ff-bg);box-shadow:var(--ff-bs);overflow:hidden;transition:border-color 125ms linear,box-shadow 95ms linear;min-width:var(--ff-mw);width:100%}sh-form-field-popover .input-wrap.is-open,sh-form-field-popover .input-wrap:has(textarea:focus-visible),sh-form-field-popover .input-wrap:has(input:focus-visible),sh-form-field .input-wrap.is-open,sh-form-field .input-wrap:has(textarea:focus-visible),sh-form-field .input-wrap:has(input:focus-visible){outline:2px solid var(--primary-8);outline-offset:2px}sh-form-field-popover .input-wrap sh-popover,sh-form-field-popover .input-wrap .input,sh-form-field .input-wrap sh-popover,sh-form-field .input-wrap .input{flex:1 0;margin:var(--ff-space)}sh-form-field-popover .input-wrap textarea,sh-form-field .input-wrap textarea{resize:none;margin:.5rem 0;color:var(--base-8);field-sizing:content}sh-form-field-popover .input-wrap:has(textarea),sh-form-field .input-wrap:has(textarea){height:auto;min-width:100%;max-width:100%}sh-form-field-popover .input-wrap sh-icon,sh-form-field .input-wrap sh-icon{color:var(--ff-ic);transition:color 125ms linear}sh-form-field-popover .input-wrap sh-icon.primary,sh-form-field .input-wrap sh-icon.primary{--ff-ic: var(--primary-8)}sh-form-field-popover .input-wrap sh-icon.accent,sh-form-field .input-wrap sh-icon.accent{--ff-ic: var(--accent-8)}sh-form-field-popover .input-wrap sh-icon.warn,sh-form-field .input-wrap sh-icon.warn{--ff-ic: var(--warn-8)}sh-form-field-popover .input-wrap sh-icon.error,sh-form-field .input-wrap sh-icon.error{--ff-ic: var(--error-8)}sh-form-field-popover .input-wrap sh-icon.success,sh-form-field .input-wrap sh-icon.success{--ff-ic: var(--success-8)}sh-form-field-popover .input-wrap sh-chip sh-icon,sh-form-field .input-wrap sh-chip sh-icon{color:var(--chip-ic)}sh-form-field-popover .input-wrap sh-spinner,sh-form-field .input-wrap sh-spinner{--spinner-size: var(--ff-spinner-size);--spinner-thickness: var(--ff-spinner-thickness)}sh-form-field-popover .input-wrap textarea,sh-form-field-popover .input-wrap input,sh-form-field .input-wrap textarea,sh-form-field .input-wrap input{appearance:none;border:0;padding:0;background:transparent;font:var(--paragraph-30B);flex:1 0;color:var(--base-8);margin:var(--ff-input-space);width:100%}sh-form-field-popover .input-wrap textarea::placeholder,sh-form-field-popover .input-wrap input::placeholder,sh-form-field .input-wrap textarea::placeholder,sh-form-field .input-wrap input::placeholder{color:var(--base-6)}sh-form-field-popover .input-wrap textarea:focus,sh-form-field-popover .input-wrap input:focus,sh-form-field .input-wrap textarea:focus,sh-form-field .input-wrap input:focus{outline:none}sh-form-field-popover .input-wrap textarea[type=number],sh-form-field-popover .input-wrap input[type=number],sh-form-field .input-wrap textarea[type=number],sh-form-field .input-wrap input[type=number]{appearance:textfield;text-align:right}sh-form-field-popover .input-wrap textarea[type=number]::-webkit-outer-spin-button,sh-form-field-popover .input-wrap textarea[type=number]::-webkit-inner-spin-button,sh-form-field-popover .input-wrap input[type=number]::-webkit-outer-spin-button,sh-form-field-popover .input-wrap input[type=number]::-webkit-inner-spin-button,sh-form-field .input-wrap textarea[type=number]::-webkit-outer-spin-button,sh-form-field .input-wrap textarea[type=number]::-webkit-inner-spin-button,sh-form-field .input-wrap input[type=number]::-webkit-outer-spin-button,sh-form-field .input-wrap input[type=number]::-webkit-inner-spin-button{display:none}sh-form-field-popover .input-wrap textarea[type=number]:has(+.suffix:not(:empty)),sh-form-field-popover .input-wrap input[type=number]:has(+.suffix:not(:empty)),sh-form-field .input-wrap textarea[type=number]:has(+.suffix:not(:empty)),sh-form-field .input-wrap input[type=number]:has(+.suffix:not(:empty)){margin-right:0}sh-form-field-popover .input-wrap textarea[type=time],sh-form-field-popover .input-wrap input[type=time],sh-form-field .input-wrap textarea[type=time],sh-form-field .input-wrap input[type=time]{appearance:textfield;text-align:center;line-height:1rem}sh-form-field-popover .input-wrap textarea[type=time]::-webkit-calendar-picker-indicator,sh-form-field-popover .input-wrap input[type=time]::-webkit-calendar-picker-indicator,sh-form-field .input-wrap textarea[type=time]::-webkit-calendar-picker-indicator,sh-form-field .input-wrap input[type=time]::-webkit-calendar-picker-indicator{appearance:none;display:none}sh-form-field-popover .helpers,sh-form-field .helpers{height:1.25rem;display:flex;align-items:center;gap:.25rem;padding-top:.25rem;width:100%}sh-form-field-popover .helpers [hint],sh-form-field .helpers [hint]{color:var(--base-9)}sh-form-field-popover .helpers [hint][suffix],sh-form-field .helpers [hint][suffix]{text-align:right;width:100%}sh-form-field-popover .helpers:has(.error-wrap:not(:empty)) .hint,sh-form-field .helpers:has(.error-wrap:not(:empty)) .hint{display:none}sh-form-field-popover:has(.error-wrap:empty+.hint:empty) .helpers,sh-form-field:has(.error-wrap:empty+.hint:empty) .helpers{height:0;padding-top:0}sh-form-field-popover:has(input.ng-touched.ng-invalid) .helpers .hint,sh-form-field:has(input.ng-touched.ng-invalid) .helpers .hint{opacity:0;visibility:hidden}sh-form-field-popover .error-wrap,sh-form-field .error-wrap{color:var(--error-8);opacity:1;transition:opacity 125ms linear;position:absolute;bottom:0;left:0;right:0;width:100%}sh-form-field-popover .hint,sh-form-field .hint{display:flex;align-items:center;justify-content:space-between;width:100%;color:var(--base-8);opacity:1;transition:visibility 125ms linear,opacity 125ms linear;visibility:visible}sh-form-field-popover .hint:empty,sh-form-field .hint:empty{opacity:0}sh-form-field-popover.error,sh-form-field.error{--ff-ic: var(--error-8)}sh-form-field-popover.warning,sh-form-field.warning{--ff-ic: var(--warn-8)}sh-form-field-popover.success,sh-form-field.success{--ff-ic: var(--success-8)}sh-form-field-popover.horizontal,sh-form-field.horizontal{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:0 1rem}sh-form-field-popover.horizontal label,sh-form-field.horizontal label{padding-bottom:0;margin-bottom:0;grid-column:1}sh-form-field-popover.horizontal .input-wrap,sh-form-field.horizontal .input-wrap{grid-column:2}sh-form-field-popover.horizontal .helpers,sh-form-field.horizontal .helpers{grid-column:2}
3
- `,Fe=(()=>{class s{#e;onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus(),this.#e.nativeElement.querySelector("textarea")&&this.#e.nativeElement.querySelector("textarea").focus();}constructor(){this.#e=T(eo),this.color=I1(null),this.variant=I1(null),this.size=I1(null),this.readonly=I1(false),this.hostClasses=ce$1("formField",{color:this.color,variant:this.variant,size:this.size,readonly:this.readonly}),rE(()=>{let i=this.#e.nativeElement,e=i.querySelector("input")||i.querySelector("textarea"),r=i.querySelector("label"),n=i.querySelector("[error]"),o=i.querySelector("[hint]");if(e){e.id||(e.id=`sh-input-${Math.random().toString(36).substring(2,9)}`),r&&!r.getAttribute("for")&&r.setAttribute("for",e.id);let m=[];n&&(n.id||(n.id=`sh-error-${Math.random().toString(36).substring(2,9)}`),m.push(n.id)),o&&(o.id||(o.id=`sh-hint-${Math.random().toString(36).substring(2,9)}`),m.push(o.id)),m.length>0&&!e.hasAttribute("aria-describedby")&&e.setAttribute("aria-describedby",m.join(" "));}let d=typeof CSS<"u"&&CSS.supports("field-sizing","content"),p=this.#e.nativeElement.querySelector("textarea");if(!d&&p!==null){let m=function(){p.style.height="auto",p.style.height=p.scrollHeight+"px";},g=function(){setTimeout(m,0);};p.addEventListener("change",m),p.addEventListener("cut",g),p.addEventListener("paste",g),p.addEventListener("drop",g),p.addEventListener("keydown",g),p.focus(),p.select(),m();}});}static{this.\u0275fac=function(e){return new(e||s)};}static{this.\u0275cmp=hw({type:s,selectors:[["sh-form-field"]],hostVars:2,hostBindings:function(e,r){e&1&&Vg("click",function(){return r.onClick()}),e&2&&NC(r.hostClasses());},inputs:{color:[1,"color"],variant:[1,"variant"],size:[1,"size"],readonly:[1,"readonly"]},ngContentSelectors:ue,decls:17,vars:0,consts:[[1,"input-wrap"],[1,"prefix"],[1,"suffix"],[1,"helpers"],[1,"error-wrap"],[1,"hint"]],template:function(e,r){e&1&&(aC(me),cC(0),Ul(1,"div",0)(2,"div",1),cC(3,1),cC(4,2),cC(5,3),Wl(),cC(6,4),cC(7,5),Ul(8,"div",2),cC(9,6),cC(10,7),cC(11,8),Wl()(),Ul(12,"div",3)(13,"div",4),cC(14,9),Wl(),Ul(15,"div",5),cC(16,10),Wl()());},styles:[`sh-daterange-input.small sh-form-field-popover,sh-daterange-input.small sh-form-field,sh-datepicker-input.small sh-form-field-popover,sh-datepicker-input.small sh-form-field,sh-form-field-popover.small,sh-form-field.small{--ff-space: .4375rem .625rem;--ff-input-space: .375rem .625rem;--ff-f: var(--paragraph-40B);line-height:1rem}sh-daterange-input.small sh-form-field-popover .prefix,sh-daterange-input.small sh-form-field .prefix,sh-datepicker-input.small sh-form-field-popover .prefix,sh-datepicker-input.small sh-form-field .prefix,sh-form-field-popover.small .prefix,sh-form-field.small .prefix,sh-daterange-input.small sh-form-field-popover .suffix,sh-daterange-input.small sh-form-field .suffix,sh-datepicker-input.small sh-form-field-popover .suffix,sh-datepicker-input.small sh-form-field .suffix,sh-form-field-popover.small .suffix,sh-form-field.small .suffix{line-height:1rem}sh-daterange-input.small sh-form-field-popover .prefix>sh-icon,sh-daterange-input.small sh-form-field .prefix>sh-icon,sh-datepicker-input.small sh-form-field-popover .prefix>sh-icon,sh-datepicker-input.small sh-form-field .prefix>sh-icon,sh-form-field-popover.small .prefix>sh-icon,sh-form-field.small .prefix>sh-icon,sh-daterange-input.small sh-form-field-popover .suffix>sh-icon,sh-daterange-input.small sh-form-field .suffix>sh-icon,sh-datepicker-input.small sh-form-field-popover .suffix>sh-icon,sh-datepicker-input.small sh-form-field .suffix>sh-icon,sh-form-field-popover.small .suffix>sh-icon,sh-form-field.small .suffix>sh-icon{font-size:1rem}sh-form-field-popover,sh-form-field{--ff-s: var(--shape-2);--ff-bc: var(--base-4);--ff-boxfix-bg: var(--base-2);--ff-suffix-bg: transparent;--ff-ic: var(--base-11);--ff-bg: var(--base-1);--ff-f: var(--paragraph-30B);--ff-spinner-size: 1.25rem;--ff-spinner-thickness: .125rem;--ff-space: .5625rem .75rem;--ff-input-space: .625rem .75rem;--ff-mw: auto;--ff-bs: var(--ship-form-field-shadow, none);display:flex;flex-direction:column;align-items:flex-start;position:relative;width:100%;transition:transform 125ms linear;transform:scale(1)}sh-form-field-popover:has(input[type=time]),sh-form-field:has(input[type=time]){--ff-input-space: .5625rem .75rem}sh-form-field-popover:active .input-wrap,sh-form-field:active .input-wrap{--ff-bs: 0 0 6px 0 var(--base-4)}sh-form-field-popover[readonly],sh-form-field-popover.readonly,sh-form-field-popover[disabled],sh-form-field-popover.disabled,sh-form-field-popover:has(input[disabled]),sh-form-field-popover:has(textarea[disabled]),sh-form-field[readonly],sh-form-field.readonly,sh-form-field[disabled],sh-form-field.disabled,sh-form-field:has(input[disabled]),sh-form-field:has(textarea[disabled]){pointer-events:none;-webkit-user-select:none;user-select:none;opacity:.5}sh-form-field-popover[readonly]:active,sh-form-field-popover.readonly:active,sh-form-field-popover[disabled]:active,sh-form-field-popover.disabled:active,sh-form-field-popover:has(input[disabled]):active,sh-form-field-popover:has(textarea[disabled]):active,sh-form-field[readonly]:active,sh-form-field.readonly:active,sh-form-field[disabled]:active,sh-form-field.disabled:active,sh-form-field:has(input[disabled]):active,sh-form-field:has(textarea[disabled]):active{transform:scale(1)}sh-form-field-popover.auto-width,sh-form-field.auto-width{width:initial}sh-form-field-popover.auto-width .input-wrap,sh-form-field-popover.auto-width input,sh-form-field.auto-width .input-wrap,sh-form-field.auto-width input{width:initial}sh-form-field-popover.center .input-wrap input[type=number],sh-form-field-popover.center .input-wrap input,sh-form-field.center .input-wrap input[type=number],sh-form-field.center .input-wrap input{text-align:center}sh-form-field-popover label,sh-form-field label{display:flex;align-items:center;padding-bottom:.25rem;gap:.25rem}sh-form-field-popover label sh-icon,sh-form-field label sh-icon{font-size:1rem}sh-form-field-popover .suffix,sh-form-field-popover .prefix,sh-form-field .suffix,sh-form-field .prefix{display:none;align-items:center;gap:.25rem;padding:var(--ff-space);padding-right:0;transition:background-color 125ms linear;background-color:inherit;line-height:1.25rem}sh-form-field-popover .suffix:has([boxPrefix]),sh-form-field-popover .prefix:has([boxPrefix]),sh-form-field .suffix:has([boxPrefix]),sh-form-field .prefix:has([boxPrefix]){padding:var(--ff-space);background-color:var(--ff-boxfix-bg)}sh-form-field-popover .suffix:has([boxSuffix]),sh-form-field-popover .prefix:has([boxSuffix]),sh-form-field .suffix:has([boxSuffix]),sh-form-field .prefix:has([boxSuffix]){padding:var(--ff-space);background-color:var(--ff-boxfix-bg)}sh-form-field-popover .suffix [boxPrefix],sh-form-field-popover .suffix [boxSuffix],sh-form-field-popover .prefix [boxPrefix],sh-form-field-popover .prefix [boxSuffix],sh-form-field .suffix [boxPrefix],sh-form-field .suffix [boxSuffix],sh-form-field .prefix [boxPrefix],sh-form-field .prefix [boxSuffix]{--ff-ic: var(--base-8);display:flex;align-items:center;gap:.25rem}sh-form-field-popover .suffix:not(:empty),sh-form-field-popover .prefix:not(:empty),sh-form-field .suffix:not(:empty),sh-form-field .prefix:not(:empty){display:flex}sh-form-field-popover .suffix,sh-form-field .suffix{padding:var(--ff-space);background-color:var(--ff-suffix-bg)}sh-form-field-popover .suffix:has([textsuffix]),sh-form-field .suffix:has([textsuffix]){padding-left:0}sh-form-field-popover:has(input.ng-touched.ng-invalid),sh-form-field:has(input.ng-touched.ng-invalid){--ff-ic: var(--error-8);--ff-bc: var(--error-8);--ff-boxfix-bg: var(--error-2)}sh-form-field-popover.autosize,sh-form-field.autosize{width:min-content}sh-form-field-popover.autosize .input-wrap,sh-form-field.autosize .input-wrap{height:auto}sh-form-field-popover.autosize .input-wrap textarea,sh-form-field-popover.autosize .input-wrap input,sh-form-field.autosize .input-wrap textarea,sh-form-field.autosize .input-wrap input{field-sizing:content}sh-form-field-popover .input-wrap,sh-form-field .input-wrap{display:flex;align-items:center;border:var(--border-10);border-color:var(--ff-bc);border-radius:var(--ff-s);background:var(--ff-bg);box-shadow:var(--ff-bs);overflow:hidden;transition:border-color 125ms linear,box-shadow 95ms linear;min-width:var(--ff-mw);width:100%}sh-form-field-popover .input-wrap.is-open,sh-form-field-popover .input-wrap:has(textarea:focus-visible),sh-form-field-popover .input-wrap:has(input:focus-visible),sh-form-field .input-wrap.is-open,sh-form-field .input-wrap:has(textarea:focus-visible),sh-form-field .input-wrap:has(input:focus-visible){outline:2px solid var(--primary-8);outline-offset:2px}sh-form-field-popover .input-wrap sh-popover,sh-form-field-popover .input-wrap .input,sh-form-field .input-wrap sh-popover,sh-form-field .input-wrap .input{flex:1 0;margin:var(--ff-space)}sh-form-field-popover .input-wrap textarea,sh-form-field .input-wrap textarea{resize:none;margin:.5rem 0;color:var(--base-8);field-sizing:content}sh-form-field-popover .input-wrap:has(textarea),sh-form-field .input-wrap:has(textarea){height:auto;min-width:100%;max-width:100%}sh-form-field-popover .input-wrap sh-icon,sh-form-field .input-wrap sh-icon{color:var(--ff-ic);transition:color 125ms linear}sh-form-field-popover .input-wrap sh-icon.primary,sh-form-field .input-wrap sh-icon.primary{--ff-ic: var(--primary-8)}sh-form-field-popover .input-wrap sh-icon.accent,sh-form-field .input-wrap sh-icon.accent{--ff-ic: var(--accent-8)}sh-form-field-popover .input-wrap sh-icon.warn,sh-form-field .input-wrap sh-icon.warn{--ff-ic: var(--warn-8)}sh-form-field-popover .input-wrap sh-icon.error,sh-form-field .input-wrap sh-icon.error{--ff-ic: var(--error-8)}sh-form-field-popover .input-wrap sh-icon.success,sh-form-field .input-wrap sh-icon.success{--ff-ic: var(--success-8)}sh-form-field-popover .input-wrap sh-chip sh-icon,sh-form-field .input-wrap sh-chip sh-icon{color:var(--chip-ic)}sh-form-field-popover .input-wrap sh-spinner,sh-form-field .input-wrap sh-spinner{--spinner-size: var(--ff-spinner-size);--spinner-thickness: var(--ff-spinner-thickness)}sh-form-field-popover .input-wrap textarea,sh-form-field-popover .input-wrap input,sh-form-field .input-wrap textarea,sh-form-field .input-wrap input{appearance:none;border:0;padding:0;background:transparent;font:var(--paragraph-30B);flex:1 0;color:var(--base-8);margin:var(--ff-input-space);width:100%}sh-form-field-popover .input-wrap textarea::placeholder,sh-form-field-popover .input-wrap input::placeholder,sh-form-field .input-wrap textarea::placeholder,sh-form-field .input-wrap input::placeholder{color:var(--base-6)}sh-form-field-popover .input-wrap textarea:focus,sh-form-field-popover .input-wrap input:focus,sh-form-field .input-wrap textarea:focus,sh-form-field .input-wrap input:focus{outline:none}sh-form-field-popover .input-wrap textarea[type=number],sh-form-field-popover .input-wrap input[type=number],sh-form-field .input-wrap textarea[type=number],sh-form-field .input-wrap input[type=number]{appearance:textfield;text-align:right}sh-form-field-popover .input-wrap textarea[type=number]::-webkit-outer-spin-button,sh-form-field-popover .input-wrap textarea[type=number]::-webkit-inner-spin-button,sh-form-field-popover .input-wrap input[type=number]::-webkit-outer-spin-button,sh-form-field-popover .input-wrap input[type=number]::-webkit-inner-spin-button,sh-form-field .input-wrap textarea[type=number]::-webkit-outer-spin-button,sh-form-field .input-wrap textarea[type=number]::-webkit-inner-spin-button,sh-form-field .input-wrap input[type=number]::-webkit-outer-spin-button,sh-form-field .input-wrap input[type=number]::-webkit-inner-spin-button{display:none}sh-form-field-popover .input-wrap textarea[type=number]:has(+.suffix:not(:empty)),sh-form-field-popover .input-wrap input[type=number]:has(+.suffix:not(:empty)),sh-form-field .input-wrap textarea[type=number]:has(+.suffix:not(:empty)),sh-form-field .input-wrap input[type=number]:has(+.suffix:not(:empty)){margin-right:0}sh-form-field-popover .input-wrap textarea[type=time],sh-form-field-popover .input-wrap input[type=time],sh-form-field .input-wrap textarea[type=time],sh-form-field .input-wrap input[type=time]{appearance:textfield;text-align:center;line-height:1rem}sh-form-field-popover .input-wrap textarea[type=time]::-webkit-calendar-picker-indicator,sh-form-field-popover .input-wrap input[type=time]::-webkit-calendar-picker-indicator,sh-form-field .input-wrap textarea[type=time]::-webkit-calendar-picker-indicator,sh-form-field .input-wrap input[type=time]::-webkit-calendar-picker-indicator{appearance:none;display:none}sh-form-field-popover .helpers,sh-form-field .helpers{height:1.25rem;display:flex;align-items:center;gap:.25rem;padding-top:.25rem;width:100%}sh-form-field-popover .helpers [hint],sh-form-field .helpers [hint]{color:var(--base-9)}sh-form-field-popover .helpers [hint][suffix],sh-form-field .helpers [hint][suffix]{text-align:right;width:100%}sh-form-field-popover .helpers:has(.error-wrap:not(:empty)) .hint,sh-form-field .helpers:has(.error-wrap:not(:empty)) .hint{display:none}sh-form-field-popover:has(.error-wrap:empty+.hint:empty) .helpers,sh-form-field:has(.error-wrap:empty+.hint:empty) .helpers{height:0;padding-top:0}sh-form-field-popover:has(input.ng-touched.ng-invalid) .helpers .hint,sh-form-field:has(input.ng-touched.ng-invalid) .helpers .hint{opacity:0;visibility:hidden}sh-form-field-popover .error-wrap,sh-form-field .error-wrap{color:var(--error-8);opacity:1;transition:opacity 125ms linear;position:absolute;bottom:0;left:0;right:0;width:100%}sh-form-field-popover .hint,sh-form-field .hint{display:flex;align-items:center;justify-content:space-between;width:100%;color:var(--base-8);opacity:1;transition:visibility 125ms linear,opacity 125ms linear;visibility:visible}sh-form-field-popover .hint:empty,sh-form-field .hint:empty{opacity:0}sh-form-field-popover.error,sh-form-field.error{--ff-ic: var(--error-8)}sh-form-field-popover.warning,sh-form-field.warning{--ff-ic: var(--warn-8)}sh-form-field-popover.success,sh-form-field.success{--ff-ic: var(--success-8)}sh-form-field-popover.horizontal,sh-form-field.horizontal{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:0 1rem}sh-form-field-popover.horizontal label,sh-form-field.horizontal label{padding-bottom:0;margin-bottom:0;grid-column:1}sh-form-field-popover.horizontal .input-wrap,sh-form-field.horizontal .input-wrap{grid-column:2}sh-form-field-popover.horizontal .helpers,sh-form-field.horizontal .helpers{grid-column:2}
4
- `],encapsulation:2});}}return s})(),Ae=(()=>{class s{constructor(){this.#e=T(eo),this.isOpen=E1(false),this.closed=v1(),this.color=I1(null),this.variant=I1(null),this.size=I1(null),this.readonly=I1(false),this.hostClasses=ce$1("formField",{color:this.color,variant:this.variant,size:this.size,readonly:this.readonly});}#e;onClick(i){i.target.closest(".input-wrap")&&(this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus(),this.#e.nativeElement.querySelector("textarea")&&this.#e.nativeElement.querySelector("textarea").focus());}close(){this.closed.emit();}ngOnInit(){let i=typeof CSS<"u"&&CSS.supports("field-sizing","content"),e=this.#e.nativeElement.querySelector("textarea");if(!i&&e!==null){let d=function(){o.style.height="auto",o.style.height=o.scrollHeight+"px";},p=function(){setTimeout(d,0);};let o=this.#e.nativeElement.querySelector("textarea");o&&(o.addEventListener("change",d),o.addEventListener("cut",p),o.addEventListener("paste",p),o.addEventListener("drop",p),o.addEventListener("keydown",p),o.focus(),o.select(),d());}}static{this.\u0275fac=function(e){return new(e||s)};}static{this.\u0275cmp=hw({type:s,selectors:[["sh-form-field-popover"]],hostVars:2,hostBindings:function(e,r){e&1&&Vg("click",function(o){return r.onClick(o)}),e&2&&NC(r.hostClasses());},inputs:{isOpen:[1,"isOpen"],color:[1,"color"],variant:[1,"variant"],size:[1,"size"],readonly:[1,"readonly"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:ve,decls:18,vars:6,consts:[[3,"isOpenChange","closed","isOpen","asSheetOnMobile","options"],["trigger","",1,"input-wrap"],[1,"prefix"],[1,"prefix-space"],[1,"suffix-space"],[1,"helpers"],[1,"error-wrap"],[1,"hint"]],template:function(e,r){e&1&&(aC(ce),cC(0),Qi(1,"sh-popover",0),cm("isOpenChange",function(o){return UC(r.isOpen,o)||(r.isOpen=o),o}),Vg("closed",function(){return r.close()}),Qi(2,"div",1)(3,"div",2),cC(4,1),cC(5,2),$l(),vg(6,"div",3),cC(7,3),cC(8,4),cC(9,5),vg(10,"div",4),cC(11,6),$l(),cC(12,7),$l(),Qi(13,"div",5)(14,"div",6),cC(15,8),$l(),Qi(16,"div",7),cC(17,9),$l()()),e&2&&(CE(),am("isOpen",r.isOpen),yg("asSheetOnMobile",true)("options",KC(5,ge)),CE(),Yg("is-open",r.isOpen()));},dependencies:[oe],styles:[be],encapsulation:2});}}return s})();export{Ae as A,Fe as F,oe as o};
3
+ `,Fe=(()=>{class s{#e;onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus(),this.#e.nativeElement.querySelector("textarea")&&this.#e.nativeElement.querySelector("textarea").focus();}constructor(){this.#e=T(eo),this.color=E1(null),this.variant=E1(null),this.size=E1(null),this.readonly=E1(false),this.hostClasses=ce$1("formField",{color:this.color,variant:this.variant,size:this.size,readonly:this.readonly}),rE(()=>{let i=this.#e.nativeElement,e=i.querySelector("input")||i.querySelector("textarea"),r=i.querySelector("label"),n=i.querySelector("[error]"),o=i.querySelector("[hint]");if(e){e.id||(e.id=`sh-input-${Math.random().toString(36).substring(2,9)}`),r&&!r.getAttribute("for")&&r.setAttribute("for",e.id);let m=[];n&&(n.id||(n.id=`sh-error-${Math.random().toString(36).substring(2,9)}`),m.push(n.id)),o&&(o.id||(o.id=`sh-hint-${Math.random().toString(36).substring(2,9)}`),m.push(o.id)),m.length>0&&!e.hasAttribute("aria-describedby")&&e.setAttribute("aria-describedby",m.join(" "));}let d=typeof CSS<"u"&&CSS.supports("field-sizing","content"),p=this.#e.nativeElement.querySelector("textarea");if(!d&&p!==null){let m=function(){p.style.height="auto",p.style.height=p.scrollHeight+"px";},g=function(){setTimeout(m,0);};p.addEventListener("change",m),p.addEventListener("cut",g),p.addEventListener("paste",g),p.addEventListener("drop",g),p.addEventListener("keydown",g),p.focus(),p.select(),m();}});}static{this.\u0275fac=function(e){return new(e||s)};}static{this.\u0275cmp=hw({type:s,selectors:[["sh-form-field"]],hostVars:2,hostBindings:function(e,r){e&1&&Hg("click",function(){return r.onClick()}),e&2&&NC(r.hostClasses());},inputs:{color:[1,"color"],variant:[1,"variant"],size:[1,"size"],readonly:[1,"readonly"]},ngContentSelectors:ue,decls:17,vars:0,consts:[[1,"input-wrap"],[1,"prefix"],[1,"suffix"],[1,"helpers"],[1,"error-wrap"],[1,"hint"]],template:function(e,r){e&1&&(aC(me),cC(0),Ul(1,"div",0)(2,"div",1),cC(3,1),cC(4,2),cC(5,3),Wl(),cC(6,4),cC(7,5),Ul(8,"div",2),cC(9,6),cC(10,7),cC(11,8),Wl()(),Ul(12,"div",3)(13,"div",4),cC(14,9),Wl(),Ul(15,"div",5),cC(16,10),Wl()());},styles:[`sh-daterange-input.small sh-form-field-popover,sh-daterange-input.small sh-form-field,sh-datepicker-input.small sh-form-field-popover,sh-datepicker-input.small sh-form-field,sh-form-field-popover.small,sh-form-field.small{--ff-space: .4375rem .625rem;--ff-input-space: .375rem .625rem;--ff-f: var(--paragraph-40B);line-height:1rem}sh-daterange-input.small sh-form-field-popover .prefix,sh-daterange-input.small sh-form-field .prefix,sh-datepicker-input.small sh-form-field-popover .prefix,sh-datepicker-input.small sh-form-field .prefix,sh-form-field-popover.small .prefix,sh-form-field.small .prefix,sh-daterange-input.small sh-form-field-popover .suffix,sh-daterange-input.small sh-form-field .suffix,sh-datepicker-input.small sh-form-field-popover .suffix,sh-datepicker-input.small sh-form-field .suffix,sh-form-field-popover.small .suffix,sh-form-field.small .suffix{line-height:1rem}sh-daterange-input.small sh-form-field-popover .prefix>sh-icon,sh-daterange-input.small sh-form-field .prefix>sh-icon,sh-datepicker-input.small sh-form-field-popover .prefix>sh-icon,sh-datepicker-input.small sh-form-field .prefix>sh-icon,sh-form-field-popover.small .prefix>sh-icon,sh-form-field.small .prefix>sh-icon,sh-daterange-input.small sh-form-field-popover .suffix>sh-icon,sh-daterange-input.small sh-form-field .suffix>sh-icon,sh-datepicker-input.small sh-form-field-popover .suffix>sh-icon,sh-datepicker-input.small sh-form-field .suffix>sh-icon,sh-form-field-popover.small .suffix>sh-icon,sh-form-field.small .suffix>sh-icon{font-size:1rem}sh-form-field-popover,sh-form-field{--ff-s: var(--shape-2);--ff-bc: var(--base-4);--ff-boxfix-bg: var(--base-2);--ff-suffix-bg: transparent;--ff-ic: var(--base-11);--ff-bg: var(--base-1);--ff-f: var(--paragraph-30B);--ff-spinner-size: 1.25rem;--ff-spinner-thickness: .125rem;--ff-space: .5625rem .75rem;--ff-input-space: .625rem .75rem;--ff-mw: auto;--ff-bs: var(--ship-form-field-shadow, none);display:flex;flex-direction:column;align-items:flex-start;position:relative;width:100%;transition:transform 125ms linear;transform:scale(1)}sh-form-field-popover:has(input[type=time]),sh-form-field:has(input[type=time]){--ff-input-space: .5625rem .75rem}sh-form-field-popover:active .input-wrap,sh-form-field:active .input-wrap{--ff-bs: 0 0 6px 0 var(--base-4)}sh-form-field-popover[readonly],sh-form-field-popover.readonly,sh-form-field-popover[disabled],sh-form-field-popover.disabled,sh-form-field-popover:has(input[disabled]),sh-form-field-popover:has(textarea[disabled]),sh-form-field[readonly],sh-form-field.readonly,sh-form-field[disabled],sh-form-field.disabled,sh-form-field:has(input[disabled]),sh-form-field:has(textarea[disabled]){pointer-events:none;-webkit-user-select:none;user-select:none;opacity:.5}sh-form-field-popover[readonly]:active,sh-form-field-popover.readonly:active,sh-form-field-popover[disabled]:active,sh-form-field-popover.disabled:active,sh-form-field-popover:has(input[disabled]):active,sh-form-field-popover:has(textarea[disabled]):active,sh-form-field[readonly]:active,sh-form-field.readonly:active,sh-form-field[disabled]:active,sh-form-field.disabled:active,sh-form-field:has(input[disabled]):active,sh-form-field:has(textarea[disabled]):active{transform:scale(1)}sh-form-field-popover.auto-width,sh-form-field.auto-width{width:initial}sh-form-field-popover.auto-width .input-wrap,sh-form-field-popover.auto-width input,sh-form-field.auto-width .input-wrap,sh-form-field.auto-width input{width:initial}sh-form-field-popover.center .input-wrap input[type=number],sh-form-field-popover.center .input-wrap input,sh-form-field.center .input-wrap input[type=number],sh-form-field.center .input-wrap input{text-align:center}sh-form-field-popover label,sh-form-field label{display:flex;align-items:center;padding-bottom:.25rem;gap:.25rem}sh-form-field-popover label sh-icon,sh-form-field label sh-icon{font-size:1rem}sh-form-field-popover .suffix,sh-form-field-popover .prefix,sh-form-field .suffix,sh-form-field .prefix{display:none;align-items:center;gap:.25rem;padding:var(--ff-space);padding-right:0;transition:background-color 125ms linear;background-color:inherit;line-height:1.25rem}sh-form-field-popover .suffix:has([boxPrefix]),sh-form-field-popover .prefix:has([boxPrefix]),sh-form-field .suffix:has([boxPrefix]),sh-form-field .prefix:has([boxPrefix]){padding:var(--ff-space);background-color:var(--ff-boxfix-bg)}sh-form-field-popover .suffix:has([boxSuffix]),sh-form-field-popover .prefix:has([boxSuffix]),sh-form-field .suffix:has([boxSuffix]),sh-form-field .prefix:has([boxSuffix]){padding:var(--ff-space);background-color:var(--ff-boxfix-bg)}sh-form-field-popover .suffix [boxPrefix],sh-form-field-popover .suffix [boxSuffix],sh-form-field-popover .prefix [boxPrefix],sh-form-field-popover .prefix [boxSuffix],sh-form-field .suffix [boxPrefix],sh-form-field .suffix [boxSuffix],sh-form-field .prefix [boxPrefix],sh-form-field .prefix [boxSuffix]{--ff-ic: var(--base-8);display:flex;align-items:center;gap:.25rem}sh-form-field-popover .suffix:not(:empty),sh-form-field-popover .prefix:not(:empty),sh-form-field .suffix:not(:empty),sh-form-field .prefix:not(:empty){display:flex}sh-form-field-popover .suffix,sh-form-field .suffix{padding:var(--ff-space);background-color:var(--ff-suffix-bg)}sh-form-field-popover .suffix:has([textsuffix]),sh-form-field .suffix:has([textsuffix]){padding-left:0}sh-form-field-popover:has(input.ng-touched.ng-invalid),sh-form-field:has(input.ng-touched.ng-invalid){--ff-ic: var(--error-8);--ff-bc: var(--error-8);--ff-boxfix-bg: var(--error-2)}sh-form-field-popover.autosize,sh-form-field.autosize{width:min-content}sh-form-field-popover.autosize .input-wrap,sh-form-field.autosize .input-wrap{height:auto}sh-form-field-popover.autosize .input-wrap textarea,sh-form-field-popover.autosize .input-wrap input,sh-form-field.autosize .input-wrap textarea,sh-form-field.autosize .input-wrap input{field-sizing:content}sh-form-field-popover .input-wrap,sh-form-field .input-wrap{display:flex;align-items:center;border:var(--border-10);border-color:var(--ff-bc);border-radius:var(--ff-s);background:var(--ff-bg);box-shadow:var(--ff-bs);overflow:hidden;transition:border-color 125ms linear,box-shadow 95ms linear;min-width:var(--ff-mw);width:100%}sh-form-field-popover .input-wrap.is-open,sh-form-field-popover .input-wrap:has(textarea:focus-visible),sh-form-field-popover .input-wrap:has(input:focus-visible),sh-form-field .input-wrap.is-open,sh-form-field .input-wrap:has(textarea:focus-visible),sh-form-field .input-wrap:has(input:focus-visible){outline:2px solid var(--primary-8);outline-offset:2px}sh-form-field-popover .input-wrap sh-popover,sh-form-field-popover .input-wrap .input,sh-form-field .input-wrap sh-popover,sh-form-field .input-wrap .input{flex:1 0;margin:var(--ff-space)}sh-form-field-popover .input-wrap textarea,sh-form-field .input-wrap textarea{resize:none;margin:.5rem 0;color:var(--base-8);field-sizing:content}sh-form-field-popover .input-wrap:has(textarea),sh-form-field .input-wrap:has(textarea){height:auto;min-width:100%;max-width:100%}sh-form-field-popover .input-wrap sh-icon,sh-form-field .input-wrap sh-icon{color:var(--ff-ic);transition:color 125ms linear}sh-form-field-popover .input-wrap sh-icon.primary,sh-form-field .input-wrap sh-icon.primary{--ff-ic: var(--primary-8)}sh-form-field-popover .input-wrap sh-icon.accent,sh-form-field .input-wrap sh-icon.accent{--ff-ic: var(--accent-8)}sh-form-field-popover .input-wrap sh-icon.warn,sh-form-field .input-wrap sh-icon.warn{--ff-ic: var(--warn-8)}sh-form-field-popover .input-wrap sh-icon.error,sh-form-field .input-wrap sh-icon.error{--ff-ic: var(--error-8)}sh-form-field-popover .input-wrap sh-icon.success,sh-form-field .input-wrap sh-icon.success{--ff-ic: var(--success-8)}sh-form-field-popover .input-wrap sh-chip sh-icon,sh-form-field .input-wrap sh-chip sh-icon{color:var(--chip-ic)}sh-form-field-popover .input-wrap sh-spinner,sh-form-field .input-wrap sh-spinner{--spinner-size: var(--ff-spinner-size);--spinner-thickness: var(--ff-spinner-thickness)}sh-form-field-popover .input-wrap textarea,sh-form-field-popover .input-wrap input,sh-form-field .input-wrap textarea,sh-form-field .input-wrap input{appearance:none;border:0;padding:0;background:transparent;font:var(--paragraph-30B);flex:1 0;color:var(--base-8);margin:var(--ff-input-space);width:100%}sh-form-field-popover .input-wrap textarea::placeholder,sh-form-field-popover .input-wrap input::placeholder,sh-form-field .input-wrap textarea::placeholder,sh-form-field .input-wrap input::placeholder{color:var(--base-6)}sh-form-field-popover .input-wrap textarea:focus,sh-form-field-popover .input-wrap input:focus,sh-form-field .input-wrap textarea:focus,sh-form-field .input-wrap input:focus{outline:none}sh-form-field-popover .input-wrap textarea[type=number],sh-form-field-popover .input-wrap input[type=number],sh-form-field .input-wrap textarea[type=number],sh-form-field .input-wrap input[type=number]{appearance:textfield;text-align:right}sh-form-field-popover .input-wrap textarea[type=number]::-webkit-outer-spin-button,sh-form-field-popover .input-wrap textarea[type=number]::-webkit-inner-spin-button,sh-form-field-popover .input-wrap input[type=number]::-webkit-outer-spin-button,sh-form-field-popover .input-wrap input[type=number]::-webkit-inner-spin-button,sh-form-field .input-wrap textarea[type=number]::-webkit-outer-spin-button,sh-form-field .input-wrap textarea[type=number]::-webkit-inner-spin-button,sh-form-field .input-wrap input[type=number]::-webkit-outer-spin-button,sh-form-field .input-wrap input[type=number]::-webkit-inner-spin-button{display:none}sh-form-field-popover .input-wrap textarea[type=number]:has(+.suffix:not(:empty)),sh-form-field-popover .input-wrap input[type=number]:has(+.suffix:not(:empty)),sh-form-field .input-wrap textarea[type=number]:has(+.suffix:not(:empty)),sh-form-field .input-wrap input[type=number]:has(+.suffix:not(:empty)){margin-right:0}sh-form-field-popover .input-wrap textarea[type=time],sh-form-field-popover .input-wrap input[type=time],sh-form-field .input-wrap textarea[type=time],sh-form-field .input-wrap input[type=time]{appearance:textfield;text-align:center;line-height:1rem}sh-form-field-popover .input-wrap textarea[type=time]::-webkit-calendar-picker-indicator,sh-form-field-popover .input-wrap input[type=time]::-webkit-calendar-picker-indicator,sh-form-field .input-wrap textarea[type=time]::-webkit-calendar-picker-indicator,sh-form-field .input-wrap input[type=time]::-webkit-calendar-picker-indicator{appearance:none;display:none}sh-form-field-popover .helpers,sh-form-field .helpers{height:1.25rem;display:flex;align-items:center;gap:.25rem;padding-top:.25rem;width:100%}sh-form-field-popover .helpers [hint],sh-form-field .helpers [hint]{color:var(--base-9)}sh-form-field-popover .helpers [hint][suffix],sh-form-field .helpers [hint][suffix]{text-align:right;width:100%}sh-form-field-popover .helpers:has(.error-wrap:not(:empty)) .hint,sh-form-field .helpers:has(.error-wrap:not(:empty)) .hint{display:none}sh-form-field-popover:has(.error-wrap:empty+.hint:empty) .helpers,sh-form-field:has(.error-wrap:empty+.hint:empty) .helpers{height:0;padding-top:0}sh-form-field-popover:has(input.ng-touched.ng-invalid) .helpers .hint,sh-form-field:has(input.ng-touched.ng-invalid) .helpers .hint{opacity:0;visibility:hidden}sh-form-field-popover .error-wrap,sh-form-field .error-wrap{color:var(--error-8);opacity:1;transition:opacity 125ms linear;position:absolute;bottom:0;left:0;right:0;width:100%}sh-form-field-popover .hint,sh-form-field .hint{display:flex;align-items:center;justify-content:space-between;width:100%;color:var(--base-8);opacity:1;transition:visibility 125ms linear,opacity 125ms linear;visibility:visible}sh-form-field-popover .hint:empty,sh-form-field .hint:empty{opacity:0}sh-form-field-popover.error,sh-form-field.error{--ff-ic: var(--error-8)}sh-form-field-popover.warning,sh-form-field.warning{--ff-ic: var(--warn-8)}sh-form-field-popover.success,sh-form-field.success{--ff-ic: var(--success-8)}sh-form-field-popover.horizontal,sh-form-field.horizontal{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:0 1rem}sh-form-field-popover.horizontal label,sh-form-field.horizontal label{padding-bottom:0;margin-bottom:0;grid-column:1}sh-form-field-popover.horizontal .input-wrap,sh-form-field.horizontal .input-wrap{grid-column:2}sh-form-field-popover.horizontal .helpers,sh-form-field.horizontal .helpers{grid-column:2}
4
+ `],encapsulation:2});}}return s})(),Ae=(()=>{class s{constructor(){this.#e=T(eo),this.isOpen=D1(false),this.closed=I1(),this.color=E1(null),this.variant=E1(null),this.size=E1(null),this.readonly=E1(false),this.hostClasses=ce$1("formField",{color:this.color,variant:this.variant,size:this.size,readonly:this.readonly});}#e;onClick(i){i.target.closest(".input-wrap")&&(this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus(),this.#e.nativeElement.querySelector("textarea")&&this.#e.nativeElement.querySelector("textarea").focus());}close(){this.closed.emit();}ngOnInit(){let i=typeof CSS<"u"&&CSS.supports("field-sizing","content"),e=this.#e.nativeElement.querySelector("textarea");if(!i&&e!==null){let d=function(){o.style.height="auto",o.style.height=o.scrollHeight+"px";},p=function(){setTimeout(d,0);};let o=this.#e.nativeElement.querySelector("textarea");o&&(o.addEventListener("change",d),o.addEventListener("cut",p),o.addEventListener("paste",p),o.addEventListener("drop",p),o.addEventListener("keydown",p),o.focus(),o.select(),d());}}static{this.\u0275fac=function(e){return new(e||s)};}static{this.\u0275cmp=hw({type:s,selectors:[["sh-form-field-popover"]],hostVars:2,hostBindings:function(e,r){e&1&&Hg("click",function(o){return r.onClick(o)}),e&2&&NC(r.hostClasses());},inputs:{isOpen:[1,"isOpen"],color:[1,"color"],variant:[1,"variant"],size:[1,"size"],readonly:[1,"readonly"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:ve,decls:18,vars:6,consts:[[3,"isOpenChange","closed","isOpen","asSheetOnMobile","options"],["trigger","",1,"input-wrap"],[1,"prefix"],[1,"prefix-space"],[1,"suffix-space"],[1,"helpers"],[1,"error-wrap"],[1,"hint"]],template:function(e,r){e&1&&(aC(ce),cC(0),Qi(1,"sh-popover",0),lm("isOpenChange",function(o){return UC(r.isOpen,o)||(r.isOpen=o),o}),Hg("closed",function(){return r.close()}),Qi(2,"div",1)(3,"div",2),cC(4,1),cC(5,2),$l(),Ig(6,"div",3),cC(7,3),cC(8,4),cC(9,5),Ig(10,"div",4),cC(11,6),$l(),cC(12,7),$l(),Qi(13,"div",5)(14,"div",6),cC(15,8),$l(),Qi(16,"div",7),cC(17,9),$l()()),e&2&&(CE(),cm("isOpen",r.isOpen),vg("asSheetOnMobile",true)("options",KC(5,ge)),CE(),Kg("is-open",r.isOpen()));},dependencies:[oe],styles:[be],encapsulation:2});}}return s})();export{Ae as A,Fe as F,oe as o};
@@ -1,2 +1,2 @@
1
- import {b as I1,bN as M1,b9 as ce,h as hw,M as aC,P as Ul,X as cC,S as Wl,g as NC,Y as Yg}from'./main-QLXVXD6E.js';var g=["*"],D=(()=>{class s{constructor(){this.color=I1(null),this.variant=I1(null),this.size=I1(null),this.sharp=I1(void 0),this.dynamic=I1(void 0),this.readonly=I1(false),this.noBg=I1(false,{transform:M1}),this.hostClasses=ce("chip",{color:this.color,variant:this.variant,size:this.size,sharp:this.sharp,dynamic:this.dynamic,readonly:this.readonly});}static{this.\u0275fac=function(i){return new(i||s)};}static{this.\u0275cmp=hw({type:s,selectors:[["sh-chip"]],hostAttrs:[1,"sh-sheet"],hostVars:4,hostBindings:function(i,h){i&2&&(NC(h.hostClasses()),Yg("no-bg",h.noBg()));},inputs:{color:[1,"color"],variant:[1,"variant"],size:[1,"size"],sharp:[1,"sharp"],dynamic:[1,"dynamic"],readonly:[1,"readonly"],noBg:[1,"noBg"]},ngContentSelectors:g,decls:2,vars:0,template:function(i,h){i&1&&(aC(),Ul(0,"div"),cC(1),Wl());},styles:[`sh-chip{--chip-h: 2rem;--chip-s: calc(var(--chip-h) / 2)}sh-chip.sh-sheet{--sheet-c: var(--chip-c);--sheet-s: var(--chip-s)}sh-chip{--chip-bs: var(--ship-chip-shadow, none);display:inline-flex;align-items:center;justify-content:center;padding:0 .75rem;font:var(--paragraph-30B);height:var(--chip-h);box-shadow:var(--chip-bs);white-space:nowrap}sh-chip div{display:flex;align-items:center;gap:.5rem;color:var(--chip-c)}sh-chip.sharp{--chip-s: calc(var(--chip-h) / 4);padding:0 .5rem}sh-chip.sharp.small{padding:0 .375rem}sh-chip.sharp.xsmall{padding:0 .25rem}sh-chip sh-icon{color:var(--chip-ic);font-size:1rem;font-weight:inherit}sh-chip [avatar]{height:calc(var(--chip-h) - .75rem);width:calc(var(--chip-h) - .75rem);border-radius:50%}sh-chip.small{--chip-h: 1.5rem;font:var(--paragraph-40B);padding:0 .5rem}sh-chip.small div{gap:.25rem}sh-chip.small sh-icon{font-size:.75rem}sh-chip.xsmall{--chip-h: 1.25rem;font:var(--paragraph-40B);padding:0 .375rem}sh-chip.xsmall div{gap:.125rem}sh-chip.xsmall sh-icon{font-size:.625rem}sh-chip.no-bg{--sheet-bg: transparent;background:transparent}sh-chip.no-bg.simple,sh-chip.no-bg.simple.primary,sh-chip.no-bg.simple.accent,sh-chip.no-bg.simple.warn,sh-chip.no-bg.simple.error,sh-chip.no-bg.simple.success{--sheet-bc: transparent;border-color:transparent}sh-chip[disabled]{opacity:.5}sh-chip[readonly],sh-chip.readonly{pointer-events:none;-webkit-user-select:none;user-select:none}
1
+ import {E as E1,bN as N1,bb as ce,h as hw,S as aC,V as Ul,Y as cC,X as Wl,f as NC,L as Kg}from'./main-3NL5M6JB.js';var g=["*"],D=(()=>{class s{constructor(){this.color=E1(null),this.variant=E1(null),this.size=E1(null),this.sharp=E1(void 0),this.dynamic=E1(void 0),this.readonly=E1(false),this.noBg=E1(false,{transform:N1}),this.hostClasses=ce("chip",{color:this.color,variant:this.variant,size:this.size,sharp:this.sharp,dynamic:this.dynamic,readonly:this.readonly});}static{this.\u0275fac=function(i){return new(i||s)};}static{this.\u0275cmp=hw({type:s,selectors:[["sh-chip"]],hostAttrs:[1,"sh-sheet"],hostVars:4,hostBindings:function(i,h){i&2&&(NC(h.hostClasses()),Kg("no-bg",h.noBg()));},inputs:{color:[1,"color"],variant:[1,"variant"],size:[1,"size"],sharp:[1,"sharp"],dynamic:[1,"dynamic"],readonly:[1,"readonly"],noBg:[1,"noBg"]},ngContentSelectors:g,decls:2,vars:0,template:function(i,h){i&1&&(aC(),Ul(0,"div"),cC(1),Wl());},styles:[`sh-chip{--chip-h: 2rem;--chip-s: calc(var(--chip-h) / 2)}sh-chip.sh-sheet{--sheet-c: var(--chip-c);--sheet-s: var(--chip-s)}sh-chip{--chip-bs: var(--ship-chip-shadow, none);display:inline-flex;align-items:center;justify-content:center;padding:0 .75rem;font:var(--paragraph-30B);height:var(--chip-h);box-shadow:var(--chip-bs);white-space:nowrap}sh-chip div{display:flex;align-items:center;gap:.5rem;color:var(--chip-c)}sh-chip.sharp{--chip-s: calc(var(--chip-h) / 4);padding:0 .5rem}sh-chip.sharp.small{padding:0 .375rem}sh-chip.sharp.xsmall{padding:0 .25rem}sh-chip sh-icon{color:var(--chip-ic);font-size:1rem;font-weight:inherit}sh-chip [avatar]{height:calc(var(--chip-h) - .75rem);width:calc(var(--chip-h) - .75rem);border-radius:50%}sh-chip.small{--chip-h: 1.5rem;font:var(--paragraph-40B);padding:0 .5rem}sh-chip.small div{gap:.25rem}sh-chip.small sh-icon{font-size:.75rem}sh-chip.xsmall{--chip-h: 1.25rem;font:var(--paragraph-40B);padding:0 .375rem}sh-chip.xsmall div{gap:.125rem}sh-chip.xsmall sh-icon{font-size:.625rem}sh-chip.no-bg{--sheet-bg: transparent;background:transparent}sh-chip.no-bg.simple,sh-chip.no-bg.simple.primary,sh-chip.no-bg.simple.accent,sh-chip.no-bg.simple.warn,sh-chip.no-bg.simple.error,sh-chip.no-bg.simple.success{--sheet-bc: transparent;border-color:transparent}sh-chip[disabled]{opacity:.5}sh-chip[readonly],sh-chip.readonly{pointer-events:none;-webkit-user-select:none;user-select:none}
2
2
  `],encapsulation:2});}}return s})();export{D};
@@ -1 +1 @@
1
- import {w}from'./chunk-CwKxis_6.js';import {e as ee}from'./chunk-CzJ3-6Pu.js';import'./chunk-oTpkLrqH.js';import'./chunk-dCFVYHva.js';import'./chunk--kVw-BwM.js';import {I}from'./chunk-Bgx4dtaL.js';import'./chunk-DuTbfCdT.js';import'./chunk-DKacf9Tj.js';import {c as c$1}from'./chunk-CI8lsvKT.js';import {D}from'./chunk-C5p3bQwH.js';import {T,aw as W,a5 as g,G as Ge,aG as pt$1,N as Nt$1,h as hw,_ as _t$1,d as N,v,aH as m,aI as c,aJ as ci,l as vT,j as vg,Q as Qi,L as Lg,F as Fg,$ as $l,ak as um,f as aT,p as cm,n as nC,C as CE,al as WC,i as cT,x as am,r as kd,U as UC,O as Od,ab as C,b as I1,aK as mb,ay as Gu,H as qu,aL as hi,a1 as dT,a2 as fT,o as oC,w as jC,aM as ob,k as iC,ao as qC,aa as Ql,aN as ab,A as yg,aj as l,ap as lT,V as Vg,J as om,aB as im,Y as Yg,aO as sm,aP as ql,aQ as Gl,aR as sb,au as jg,av as rC,aS as cb,aT as uy}from'./main-QLXVXD6E.js';import {d}from'./chunk-PONAC1Ya.js';import'./chunk-D3SUPUQT.js';import'./chunk-DoYGADYB.js';import'./chunk-Crs56mDy.js';import'./chunk-Bcxzhjj8.js';import'./chunk-BYJ0fSUP.js';import {L,$}from'./chunk-D3d-eReU.js';import'./chunk-D2aWqPl_.js';function Dn(n,t){n&1&&vg(0,"sh-progress-bar",58);}function Pn(n,t){n&1&&vg(0,"div",61);}function Rn(n,t){n&1&&vg(0,"div",61);}function In(n,t){n&1&&vg(0,"div",62);}function $n(n,t){n&1&&vg(0,"div",63);}function Mn(n,t){if(n&1&&(Qi(0,"details",72)(1,"summary"),Lg(2,15),vg(3,"sh-icon"),Qi(4,"div",74),vg(5,"sh-icon",66),$l(),Fg(),$l(),Qi(6,"div",75)(7,"p"),nC(8,16),ob(9,"date"),$l(),Qi(10,"p"),nC(11,17),ob(12,"date"),$l(),Qi(13,"p"),nC(14,18),ob(15,"durationFormat"),$l(),Qi(16,"p"),nC(17,19),$l(),vg(18,"sh-divider"),Qi(19,"p"),nC(20,20),$l(),Qi(21,"p"),nC(22,21),$l()()(),Qi(23,"details",72)(24,"summary"),Lg(25,22),vg(26,"sh-icon"),Qi(27,"div",74),vg(28,"sh-icon",66),$l(),Fg(),$l(),Qi(29,"div",75)(30,"p"),nC(31,23),ob(32,"date"),$l(),Qi(33,"p"),nC(34,24),ob(35,"date"),$l(),Qi(36,"p"),nC(37,25),ob(38,"durationFormat"),$l(),vg(39,"sh-divider"),Qi(40,"p"),nC(41,26),ob(42,"bytes"),$l(),Qi(43,"p"),nC(44,27),ob(45,"bytes"),$l(),Qi(46,"p"),nC(47,28),ob(48,"bytes"),$l(),vg(49,"sh-divider"),Qi(50,"p"),nC(51,29),$l(),Qi(52,"p"),nC(53,30),$l()()()),n&2){let e=iC(2).$implicit;CE(9),jg(ab(9,17,e.data?.TestResults?.BeginTime,"medium")),rC(8),CE(3),jg(ab(12,20,e.data?.TestResults?.EndTime,"medium")),rC(11),CE(3),jg(sb(15,23,e.data?.TestResults?.Duration)),rC(14),CE(2),jg(e.data?.TestResults?.VerificationsActualLength),rC(17),CE(3),jg(e.data?.TestResults?.WarningsActualLength),rC(20),CE(2),jg(e.data?.TestResults?.ErrorsActualLength),rC(22),CE(10),jg(ab(32,25,e.data?.CompactResults?.BeginTime,"medium")),rC(31),CE(3),jg(ab(35,28,e.data?.CompactResults?.EndTime,"medium")),rC(34),CE(3),jg(sb(38,31,e.data?.CompactResults?.Duration)),rC(37),CE(4),jg(e.data?.CompactResults?.DeletedFileCount)(cb(42,33,e.data?.CompactResults?.DeletedFileSize,true,true)),rC(41),CE(3),jg(e.data?.CompactResults?.DownloadedFileCount)(cb(45,37,e.data?.CompactResults?.DownloadedFileSize,true,true)),rC(44),CE(3),jg(e.data?.CompactResults?.UploadedFileCount)(cb(48,41,e.data?.CompactResults?.UploadedFileSize,true,true)),rC(47),CE(3),jg(e.data?.CompactResults?.WarningsActualLength),rC(51),CE(2),jg(e.data?.CompactResults?.ErrorsActualLength),rC(53);}}function fn(n,t){n&1&&(Qi(0,"p"),jC(1,"No messages"),$l());}function hn(n,t){n&1&&(Lg(0,43,1),vg(1,"sh-icon"),Fg());}function yn(n,t){n&1&&(Lg(0,43,2),vg(1,"sh-icon"),Fg());}function vn(n,t){if(n&1){let e=vT();Qi(0,"div",76)(1,"code"),jC(2),$l(),Qi(3,"button",77),Vg("click",function(F){let c=kd(e).$implicit,L=iC(5);return Od(L.copyToClipboard(F,c,c))}),Lg(4,43),aT(5,hn,2,0,"sh-icon")(6,yn,2,0,"sh-icon"),Fg(),$l()();}if(n&2){let e=t.$implicit,o=iC(5);CE(2),om(e),CE(3),cT(o.copied()==e?5:6);}}function Bn(n,t){n&1&&(Qi(0,"p"),jC(1,"No warnings"),$l());}function xn(n,t){n&1&&(Lg(0,44,1),vg(1,"sh-icon"),Fg());}function bn(n,t){n&1&&(Lg(0,44,2),vg(1,"sh-icon"),Fg());}function kn(n,t){if(n&1){let e=vT();Qi(0,"div",76)(1,"code"),jC(2),$l(),Qi(3,"button",77),Vg("click",function(F){let c=kd(e).$implicit,L=iC(5);return Od(L.copyToClipboard(F,c,c))}),Lg(4,44),aT(5,xn,2,0,"sh-icon")(6,bn,2,0,"sh-icon"),Fg(),$l()();}if(n&2){let e=t.$implicit,o=iC(5);CE(2),om(e),CE(3),cT(o.copied()==e?5:6);}}function Kn(n,t){n&1&&(Qi(0,"p"),jC(1,"No errors"),$l());}function Un(n,t){n&1&&(Lg(0,45,1),vg(1,"sh-icon"),Fg());}function wn(n,t){n&1&&(Lg(0,45,2),vg(1,"sh-icon"),Fg());}function Jn(n,t){if(n&1){let e=vT();Qi(0,"div",76)(1,"code"),jC(2),$l(),Qi(3,"button",77),Vg("click",function(F){let c=kd(e).$implicit,L=iC(5);return Od(L.copyToClipboard(F,c,c))}),Lg(4,45),aT(5,Un,2,0,"sh-icon")(6,wn,2,0,"sh-icon"),Fg(),$l()();}if(n&2){let e=t.$implicit,o=iC(5);CE(2),om(e),CE(3),cT(o.copied()==e?5:6);}}function Xn(n,t){if(n&1&&(Qi(0,"details",72)(1,"summary"),Lg(2,31),vg(3,"sh-icon"),Qi(4,"div",74),vg(5,"sh-icon",66),$l(),Fg(),$l(),Qi(6,"div",75)(7,"p"),nC(8,32),ob(9,"date"),$l(),Qi(10,"p"),nC(11,33),ob(12,"date"),$l(),Qi(13,"p"),nC(14,34),ob(15,"durationFormat"),$l(),vg(16,"sh-divider"),Qi(17,"p"),nC(18,35),ob(19,"bytes"),$l(),Qi(20,"p"),nC(21,36),$l(),Qi(22,"p"),nC(23,37),$l(),Qi(24,"p"),nC(25,38),$l(),Qi(26,"p"),nC(27,39),$l(),vg(28,"sh-divider"),Qi(29,"details",78)(30,"summary"),Lg(31,40),vg(32,"sh-icon"),Qi(33,"div",74),vg(34,"sh-icon",66),$l(),Fg(),$l(),Qi(35,"div",75),aT(36,fn,2,0,"p"),dT(37,vn,7,2,"div",76,lT),$l()(),Qi(39,"details",79)(40,"summary"),Lg(41,41),vg(42,"sh-icon"),Qi(43,"div",74),vg(44,"sh-icon",66),$l(),Fg(),$l(),Qi(45,"div",75),aT(46,Bn,2,0,"p"),dT(47,kn,7,2,"div",76,lT),$l()(),Qi(49,"details",80)(50,"summary"),Lg(51,42),vg(52,"sh-icon"),Qi(53,"div",74),vg(54,"sh-icon",66),$l(),Fg(),$l(),Qi(55,"div",75),aT(56,Kn,2,0,"p"),dT(57,Jn,7,2,"div",76,lT),$l()(),vg(59,"sh-divider"),$l()()),n&2){let e=t.$implicit;CE(5),jg(e.Destination),rC(2),CE(4),jg(ab(9,16,e.BeginTime,"medium")),rC(8),CE(3),jg(ab(12,19,e.EndTime,"medium")),rC(11),CE(3),jg(sb(15,22,e.Duration)),rC(14),CE(4),jg(e.CopiedFileCount)(cb(19,24,e.CopiedFileSize,true,true)),rC(18),CE(2),jg(e.DeletedFileCount),rC(21),CE(2),jg(e.RenamedFileCount),rC(23),CE(2),jg(e.VerifiedFileCount),rC(25),CE(2),jg(e.FailedVerificationCount),rC(27),CE(7),jg(e.MessagesActualLength),rC(31),CE(2),cT(e.Messages?.length===0?36:-1),CE(),fT(e.Messages),CE(7),jg(e.WarningsActualLength),rC(41),CE(2),cT(e.Warnings?.length===0?46:-1),CE(),fT(e.Warnings),CE(7),jg(e.ErrorsActualLength),rC(51),CE(2),cT(e.Errors?.length===0?56:-1),CE(),fT(e.Errors);}}function zn(n,t){if(n&1&&dT(0,Xn,60,28,"details",72,lT),n&2){let e=iC(2).$implicit;fT(e.data?.RemoteSynchronizationResults);}}function Vn(n,t){if(n&1&&(Qi(0,"details",72)(1,"summary"),Lg(2,46),vg(3,"sh-icon"),Qi(4,"div",74),vg(5,"sh-icon",66),$l(),Fg(),$l(),Qi(6,"div",75)(7,"p"),nC(8,47),ob(9,"date"),$l(),Qi(10,"p"),nC(11,48),ob(12,"date"),$l(),Qi(13,"p"),nC(14,49),ob(15,"durationFormat"),$l(),vg(16,"sh-divider"),Qi(17,"p"),nC(18,50),$l(),Qi(19,"p"),nC(20,51),$l(),Qi(21,"p"),nC(22,52),$l()()()),n&2){let e=iC(2).$implicit;CE(9),jg(ab(9,6,e.data?.LockResults?.BeginTime,"medium")),rC(8),CE(3),jg(ab(12,9,e.data?.LockResults?.EndTime,"medium")),rC(11),CE(3),jg(sb(15,12,e.data?.LockResults?.Duration)),rC(14),CE(3),jg(e.data?.LockResults?.VolumesRead),rC(18),CE(2),jg(e.data?.LockResults?.VolumesUpdated),rC(20),CE(2),jg(e.data?.LockResults?.ParsedResult),rC(22);}}function Hn(n,t){if(n&1&&(Qi(0,"code"),jC(1),ob(2,"json"),$l()),n&2){let e=t.$implicit;CE(),om(sb(2,1,e));}}function Wn(n,t){if(n&1&&(Qi(0,"details",72)(1,"summary"),Lg(2,53),vg(3,"sh-icon"),Qi(4,"div",74),vg(5,"sh-icon",66),$l(),Fg(),$l(),Qi(6,"div",75),dT(7,Hn,3,3,"code",null,lT),$l()()),n&2){let e=iC(2).$implicit;CE(5),jg(e.data.VerificationsActualLength),rC(2),CE(2),fT(e.data.Verifications);}}function jn(n,t){n&1&&(Qi(0,"sh-icon"),jC(1,"check"),$l());}function qn(n,t){n&1&&(Qi(0,"sh-icon"),jC(1,"copy"),$l());}function Qn(n,t){n&1&&(ql(0),Lg(1,54),vg(2,"sh-icon"),Fg(),Gl());}function Yn(n,t){n&1&&(ql(0),Lg(1,55),vg(2,"sh-icon"),Fg(),Gl());}function Zn(n,t){n&1&&(ql(0),Lg(1,56),vg(2,"sh-icon"),Fg(),Gl());}function et(n,t){if(n&1){let e=vT();Qi(0,"button",82),Vg("click",function(){kd(e),iC();let F=qC(0),c=iC(3);return Od(c.toggleWarningSuppression(F.MessageId))}),aT(1,Qn,3,0,"ng-container")(2,Yn,3,0,"ng-container")(3,Zn,3,0,"ng-container"),$l();}if(n&2){iC();let e=qC(0),o=iC(3),F=o.isWarningSuppressed(e.MessageId);yg("disabled",o.isSuppressingWarning()),CE(),cT(o.isSuppressingWarning()?1:F?2:3);}}function nt(n,t){if(n&1){let e=vT();um(0),Qi(1,"div",76)(2,"code"),jC(3),$l(),Qi(4,"button",77),Vg("click",function(F){let c=kd(e).$implicit,L=iC(3);return Od(L.copyToClipboard(F,c,c))}),jC(5," Copy "),aT(6,jn,2,0,"sh-icon")(7,qn,2,0,"sh-icon"),$l(),aT(8,et,4,2,"button",81),$l();}if(n&2){let e=t.$implicit,o=iC(3),F=WC(o.parseWarning(e));CE(3),om(e),CE(3),cT(o.copied()==e?6:7),CE(2),cT(F?.MessageId?8:-1);}}function tt(n,t){n&1&&(Qi(0,"p"),jC(1,"No errors"),$l());}function it(n,t){n&1&&(Lg(0,57,1),vg(1,"sh-icon"),Fg());}function ot(n,t){n&1&&(Lg(0,57,2),vg(1,"sh-icon"),Fg());}function _t(n,t){if(n&1){let e=vT();Qi(0,"div",76)(1,"code"),jC(2),$l(),Qi(3,"button",77),Vg("click",function(F){let c=kd(e).$implicit,L=iC(3);return Od(L.copyToClipboard(F,c,c))}),Lg(4,57),aT(5,it,2,0,"sh-icon")(6,ot,2,0,"sh-icon"),Fg(),$l()();}if(n&2){let e=t.$implicit,o=iC(3);CE(2),om(e),CE(3),cT(o.copied()==e?5:6);}}function at(n,t){n&1&&(Qi(0,"sh-icon"),jC(1,"check"),$l());}function Ft(n,t){n&1&&(Qi(0,"sh-icon"),jC(1,"copy"),$l());}function rt(n,t){if(n&1){let e=vT();Qi(0,"section",67)(1,"sh-toggle-card",68),ql(2,69),Qi(3,"h3"),nC(4,0),$l(),Gl(),ql(5,70),Qi(6,"p"),nC(7,1),ob(8,"date"),$l(),Qi(9,"p"),nC(10,2),ob(11,"date"),$l(),Qi(12,"p"),nC(13,3),ob(14,"durationFormat"),$l(),Gl(),$l(),Qi(15,"sh-toggle-card",68),ql(16,69),Qi(17,"h3"),nC(18,4),$l(),Gl(),ql(19,70),Qi(20,"p"),nC(21,5),ob(22,"bytes"),$l(),Qi(23,"p"),nC(24,6),ob(25,"bytes"),$l(),Qi(26,"p"),nC(27,7),ob(28,"bytes"),$l(),Qi(29,"p"),nC(30,8),ob(31,"bytes"),$l(),Qi(32,"p"),nC(33,9),$l(),Qi(34,"p"),nC(35,10),$l(),Qi(36,"p"),nC(37,11),$l(),Gl(),$l(),Qi(38,"div",71),vg(39,"sh-divider"),aT(40,Mn,54,45),aT(41,zn,2,0),aT(42,Vn,23,14,"details",72),aT(43,Wn,9,1,"details",72),Qi(44,"details",73)(45,"summary"),Lg(46,12),vg(47,"sh-icon"),Qi(48,"div",74),vg(49,"sh-icon",66),$l(),Fg(),$l(),Qi(50,"div",75),dT(51,nt,9,4,"div",76,lT),$l()(),Qi(53,"details",73)(54,"summary"),Lg(55,13),vg(56,"sh-icon"),Qi(57,"div",74),vg(58,"sh-icon",66),$l(),Fg(),$l(),Qi(59,"div",75),aT(60,tt,2,0,"p"),dT(61,_t,7,2,"div",76,lT),$l()(),vg(63,"sh-divider"),Qi(64,"details")(65,"summary"),Lg(66,14),vg(67,"sh-icon"),Qi(68,"div",74),vg(69,"sh-icon",66),$l(),Fg(),$l(),Qi(70,"code")(71,"button",77),Vg("click",function(F){kd(e);let c=iC().$implicit,L=iC();return Od(L.copyToClipboard(F,L.stringify(c.data),"all"))}),jC(72," Copy "),aT(73,at,2,0,"sh-icon")(74,Ft,2,0,"sh-icon"),$l(),jC(75),ob(76,"json"),$l()()()();}if(n&2){let e=iC().$implicit,o=iC();CE(),yg("disableToggle",true),CE(7),jg(ab(8,27,e.data?.BeginTime,"medium")),rC(7),CE(3),jg(ab(11,30,e.data?.EndTime,"medium")),rC(10),CE(3),jg(sb(14,33,e.data?.Duration)),rC(13),CE(),yg("disableToggle",true),CE(7),jg(e.data?.ExaminedFiles)(cb(22,35,e.data?.SizeOfExaminedFiles,true,true)),rC(21),CE(3),jg(e.data?.OpenedFiles)(cb(25,39,e.data?.SizeOfOpenedFiles,true,true)),rC(24),CE(3),jg(e.data?.AddedFiles)(cb(28,43,e.data?.SizeOfAddedFiles,true,true)),rC(27),CE(3),jg(e.data?.ModifiedFiles)(cb(31,47,e.data?.SizeOfModifiedFiles,true,true)),rC(30),CE(2),jg(e.data?.DeletedFiles),rC(33),CE(2),jg(e.data?.TooLargeFiles),rC(35),CE(2),jg(e.data?.FilesWithError),rC(37),CE(3),cT(e.data?.TestResults?40:-1),CE(),cT(e.data?.RemoteSynchronizationResults?41:-1),CE(),cT(e.data?.LockResults?42:-1),CE(),cT(e.data?.MainOperation==="Test"?43:-1),CE(),yg("open",e.id===o.openEntry()&&o.openSection()==="warnings"),CE(5),jg(e.data?.WarningsActualLength),rC(46),CE(2),fT(e.data?.Warnings),CE(2),yg("open",e.id===o.openEntry()&&o.openSection()==="errors"),CE(5),jg(e.data?.ErrorsActualLength),rC(55),CE(2),cT(e.data?.Errors?.length===0?60:-1),CE(),fT(e.data?.Errors),CE(12),cT(o.copied()=="all"?73:74),CE(2),Ql(" ",sb(76,51,e.data)," ");}}function lt(n,t){if(n&1){let e=vT();Qi(0,"article",59)(1,"header",60),Vg("click",function(){let F=kd(e).$implicit,c=iC();return Od(c.toggleOpenEntry(F))}),aT(2,Pn,1,0,"div",61)(3,Rn,1,0,"div",61)(4,In,1,0,"div",62)(5,$n,1,0,"div",63),Qi(6,"h3"),jC(7),ob(8,"date"),$l(),Qi(9,"p"),jC(10),$l(),vg(11,"div",64),Qi(12,"div",65)(13,"sh-icon",66),jC(14,"caret-down"),$l()()(),aT(15,rt,77,53,"section",67),$l();}if(n&2){let e=t.$implicit,o=iC(),F=e.data?.ParsedResult||"Unknown";CE(2),cT(F=="Fatal"?2:F=="Error"?3:F=="Warning"?4:5),CE(5),om(ab(8,7,e.timestamp,"medium")),CE(3),im(" ",e.data?.MainOperation," ",o.getLocalizedSummary(e)," "),CE(3),Yg("open",e.id===o.openEntry()),CE(2),cT(e.id===o.openEntry()?15:-1);}}var De=class n{#e=T(C);#n=T(g);#t=new m;#i=new c;backupId=I1.required();isSuppressingWarning=Ge(false);copied=Ge(null);backupResource=mb({params:()=>({id:this.backupId()}),loader:({params:t})=>uy(this.#e.getApiV1BackupById({id:t.id}))});suppressedWarningIds=Nt$1(()=>{let t=this.backupResource.value();if(!t?.Backup?.Settings)return new Set;let e=t.Backup.Settings.find(o=>o.Name==="--suppress-warnings");return e?.Value?new Set(e.Value.split(",").map(o=>o.trim()).filter(Boolean)):new Set});openEntry=Ge(null);openSection=Ge(null);pagination=Ge({offset:0,pagesize:100});resource=$({params:()=>l({id:this.backupId()},this.pagination()),stream:({params:t})=>this.#e.getApiV1BackupByIdLog({id:t.id,pagesize:100}).pipe(pt$1(e=>e.map(o=>({id:o.ID,operationId:o.OperationID,timestamp:o.Timestamp*1e3,type:o.Type,data:JSON.parse(o.Message),exception:JSON.stringify(o.Exception)==="{}"?null:o.Exception}))))});getLocalizedSummary(t){let e=t.data?.ErrorsActualLength??0,o=t.data?.WarningsActualLength??0,F=[];if(t.data?.MainOperation=="Backup"){if(t.data?.Duration){let c=this.#i.transform(t.data?.Duration,true);c.startsWith("0h ")&&(c=c.slice(3)),c.startsWith("0m ")&&(c=c.slice(3)),F.push($localize`took ${c}`);}t.data?.BackendStatistics?.BytesUploaded&&F.push($localize`uploaded ${this.#t.transform(t.data?.BackendStatistics?.BytesUploaded)}`),t.data?.BackendStatistics?.KnownFileSize&&F.push($localize`backup size ${this.#t.transform(t.data?.BackendStatistics?.KnownFileSize)}`);}return e!==0&&F.push($localize`:@@errorCount:${e} error${e===1?"":"s"}`),o!==0&&F.push($localize`:@@warningCount:${o} warning${o===1?"":"s"}`),F.length===0?"":`(${F.join(", ")})`}toggleOpenEntry(t){let e=t.id;if(this.openEntry()===e){this.openEntry.set(null),this.openSection.set(null);return}let o=t.data?.ErrorsActualLength??0,F=t.data?.WarningsActualLength??0;o>0?this.openSection.set("errors"):F>0?this.openSection.set("warnings"):this.openSection.set(null),this.openEntry.set(e);}parseWarning(t){let e=t.match(/^(.*?) - \[(.*?)-(.*?)-(.*?)\]: (.*)$/);if(!e)return null;let[,o,F,c,L,G]=e;return {Timestamp:o,LogLevel:F,Source:c,MessageId:L,Message:G}}isWarningSuppressed(t){return this.suppressedWarningIds().has(t)}toggleWarningSuppression(t){let e=this.backupId();!e||!t||(this.isSuppressingWarning.set(true),this.#e.getApiV1BackupById({id:e}).pipe(Gu(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}})}),qu(()=>this.isSuppressingWarning.set(false))).subscribe({next:()=>{this.#n.getBackups(true),this.backupResource.reload();},error:o=>{console.error("Failed to toggle warning suppression:",o);}}));}copyToClipboard(t,e,o){t.stopPropagation(),navigator.clipboard.writeText(e),this.copied.set(o),setTimeout(()=>{this.copied.set(null);},2e3);}stringify(t){return JSON.stringify(t,null,2)}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=hw({type:n,selectors:[["app-general-log"]],inputs:{backupId:[1,"backupId"]},decls:3,vars:1,consts:()=>{let t;t=$localize`Time`;let e;e=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let o;o=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let F;F=$localize`Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let c;c=$localize`Source files`;let L;L=$localize` Evaluated: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let G;G=$localize` Opened: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let k;k=$localize` Added: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let N;N=$localize` Modified: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let v;v=$localize`Deleted: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let U;U=$localize`Too large: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Q;Q=$localize`Files with error: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let A;A=$localize`${"\uFFFD#47\uFFFD"}:START_TAG_SH_ICON:warning-circle${"[\uFFFD/#47\uFFFD|\uFFFD/#49\uFFFD]"}:CLOSE_TAG_SH_ICON: Warnings ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#48\uFFFD"}:START_TAG_DIV:${"\uFFFD#49\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#47\uFFFD|\uFFFD/#49\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#48\uFFFD"}:CLOSE_TAG_DIV:`,A=oC(A);let ne;ne=$localize`${"\uFFFD#56\uFFFD"}:START_TAG_SH_ICON:warning${"[\uFFFD/#56\uFFFD|\uFFFD/#58\uFFFD]"}:CLOSE_TAG_SH_ICON: Errors ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#57\uFFFD"}:START_TAG_DIV:${"\uFFFD#58\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#56\uFFFD|\uFFFD/#58\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#57\uFFFD"}:CLOSE_TAG_DIV:`,ne=oC(ne);let te;te=$localize`${"\uFFFD#67\uFFFD"}:START_TAG_SH_ICON:notepad${"[\uFFFD/#67\uFFFD|\uFFFD/#69\uFFFD]"}:CLOSE_TAG_SH_ICON: Complete log ${"\uFFFD#68\uFFFD"}:START_TAG_DIV:${"\uFFFD#69\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#67\uFFFD|\uFFFD/#69\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#68\uFFFD"}:CLOSE_TAG_DIV:`,te=oC(te);let ie;ie=$localize`${"\uFFFD#3\uFFFD"}:START_TAG_SH_ICON:circle-half-tilt${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SH_ICON: Test phase ${"\uFFFD#4\uFFFD"}:START_TAG_DIV:${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_DIV:`,ie=oC(ie);let Ie;Ie=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let $e;$e=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Me;Me=$localize`Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let fe;fe=$localize`Verifications: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let he;he=$localize`Warnings: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let ye;ye=$localize`Errors: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let oe;oe=$localize`${"\uFFFD#26\uFFFD"}:START_TAG_SH_ICON:file-archive${"[\uFFFD/#26\uFFFD|\uFFFD/#28\uFFFD]"}:CLOSE_TAG_SH_ICON: Compact phase ${"\uFFFD#27\uFFFD"}:START_TAG_DIV:${"\uFFFD#28\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#26\uFFFD|\uFFFD/#28\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#27\uFFFD"}:CLOSE_TAG_DIV:`,oe=oC(oe);let ve;ve=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Be;Be=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let xe;xe=$localize` Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION: `;let be;be=$localize` Deleted files: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let ke;ke=$localize` Downloaded files: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let Ke;Ke=$localize` Uploaded files: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let Ue;Ue=$localize`Warnings: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let we;we=$localize`Errors: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let _e;_e=$localize`${"\uFFFD#3\uFFFD"}:START_TAG_SH_ICON:arrows-clockwise${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SH_ICON: Secondary destination: ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#4\uFFFD"}:START_TAG_DIV:${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_DIV:`,_e=oC(_e);let Je;Je=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Xe;Xe=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let ze;ze=$localize`Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ve;Ve=$localize` Files copied: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let He;He=$localize`Files deleted: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let We;We=$localize`Files renamed: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let je;je=$localize`Files verified: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let qe;qe=$localize`Failed verifications: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let ae;ae=$localize`${"\uFFFD#32\uFFFD"}:START_TAG_SH_ICON:info${"[\uFFFD/#32\uFFFD|\uFFFD/#34\uFFFD]"}:CLOSE_TAG_SH_ICON: Messages ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#33\uFFFD"}:START_TAG_DIV:${"\uFFFD#34\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#32\uFFFD|\uFFFD/#34\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#33\uFFFD"}:CLOSE_TAG_DIV:`,ae=oC(ae);let Fe;Fe=$localize`${"\uFFFD#42\uFFFD"}:START_TAG_SH_ICON:warning-circle${"[\uFFFD/#42\uFFFD|\uFFFD/#44\uFFFD]"}:CLOSE_TAG_SH_ICON: Warnings ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#43\uFFFD"}:START_TAG_DIV:${"\uFFFD#44\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#42\uFFFD|\uFFFD/#44\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#43\uFFFD"}:CLOSE_TAG_DIV:`,Fe=oC(Fe);let re;re=$localize`${"\uFFFD#52\uFFFD"}:START_TAG_SH_ICON:warning${"[\uFFFD/#52\uFFFD|\uFFFD/#54\uFFFD]"}:CLOSE_TAG_SH_ICON: Errors ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#53\uFFFD"}:START_TAG_DIV:${"\uFFFD#54\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#52\uFFFD|\uFFFD/#54\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#53\uFFFD"}:CLOSE_TAG_DIV:`,re=oC(re);let le;le=$localize` Copy ${"\uFFFD*5:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:check${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*5:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*6:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:copy${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*6:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,le=oC(le);let se;se=$localize` Copy ${"\uFFFD*5:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:check${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*5:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*6:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:copy${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*6:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,se=oC(se);let ce;ce=$localize` Copy ${"\uFFFD*5:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:check${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*5:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*6:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:copy${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*6:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,ce=oC(ce);let ue;ue=$localize`${"\uFFFD#3\uFFFD"}:START_TAG_SH_ICON:lock${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SH_ICON: Lock results ${"\uFFFD#4\uFFFD"}:START_TAG_DIV:${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_DIV:`,ue=oC(ue);let Qe;Qe=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ye;Ye=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ze;Ze=$localize`Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let en;en=$localize`Volumes read: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let nn;nn=$localize`Volumes updated: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let tn;tn=$localize`Parsed result: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let de;de=$localize`${"\uFFFD#3\uFFFD"}:START_TAG_SH_ICON:warning-circle${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SH_ICON: Verifications ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#4\uFFFD"}:START_TAG_DIV:${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_DIV:`,de=oC(de);let on;on=$localize` Updating ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:spinner${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let _n;_n=$localize` Un-suppress ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:bell${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let an;an=$localize` Suppress ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:bell-slash${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let Ee;return Ee=$localize` Copy ${"\uFFFD*5:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:check${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*5:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*6:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:copy${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*6:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,Ee=oC(Ee),[t,e,o,F,c,L,G,k,N,v,U,Q,A,ne,te,ie,Ie,$e,Me,fe,he,ye,oe,ve,Be,xe,be,ke,Ke,Ue,we,_e,Je,Xe,ze,Ve,He,We,je,qe,ae,Fe,re,le,se,ce,ue,Qe,Ye,Ze,en,nn,tn,de,on,_n,an,Ee,[1,"indeterminate","primary"],[1,"log-entry"],[3,"click"],[1,"status","error"],[1,"status","warn"],[1,"status"],[1,"spacer"],[1,"action"],[1,"toggle-indicator"],[1,"log-content"],[3,"disableToggle"],["title",""],["content",""],[1,"extra-info"],["name","details"],["name","details",3,"open"],[1,"actions"],[1,"content"],[1,"warning-item"],["shButton","",1,"small",3,"click"],["name","details-messages"],["name","details-warnings"],["name","details-errors"],["shButton","",1,"small",3,"disabled"],["shButton","",1,"small",3,"click","disabled"]]},template:function(e,o){e&1&&(aT(0,Dn,1,0,"sh-progress-bar",58),dT(1,lt,16,10,"article",59,lT)),e&2&&(cT(o.resource.isLoading()?0:-1),CE(),fT(o.resource.value()));},dependencies:[I,c$1,d,v,N,m,ci,c,hi],styles:["[_nghost-%COMP%]{display:block}.log-entry[_ngcontent-%COMP%]{display:flex;flex-direction:column;cursor:pointer}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;padding:1rem;border-bottom:1px solid var(--base-4);background-color:var(--base-1);cursor:pointer}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]:hover{background-color:var(--base-2)}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-30);margin:0}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-8)}.toggle-indicator[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;height:1.25rem;transition:transform 125ms linear}.toggle-indicator.open[_ngcontent-%COMP%]{transform:rotate(180deg)}details[_ngcontent-%COMP%]{display:flex;flex-direction:column}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]{cursor:pointer;display:flex;align-items:center;gap:.5rem;padding:.75rem;border-radius:var(--shape-2);background-color:var(--base-2)}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]:focus{outline:none}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]:hover{background-color:var(--base-3)}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]::marker{font-size:0}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;flex:1 0;gap:.5rem;-webkit-user-select:none;user-select:none}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;height:2rem;transition:transform 125ms linear}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] sh-icon.toggle-indicator[_ngcontent-%COMP%]{transform:rotate(0)}details[open][_ngcontent-%COMP%] > summary[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] sh-icon.toggle-indicator[_ngcontent-%COMP%]{transform:rotate(180deg)}details[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{padding:.75rem 1rem 0;display:flex;flex-direction:column;gap:.75rem}details[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}details[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{margin-top:.75rem;position:relative}details[_ngcontent-%COMP%] code[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{position:absolute;top:.75rem;right:.75rem}.extra-info[_ngcontent-%COMP%]{grid-column:1/-1;display:flex;flex-direction:column;gap:1rem}.extra-info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-bottom:.75rem}.extra-info[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{white-space:pre-wrap;padding:1rem;display:block;border-radius:var(--shape-2);background-color:var(--base-2)}.log-content[_ngcontent-%COMP%]{padding:1rem;display:grid;grid-template-columns:1fr 1fr;gap:1rem}.status[_ngcontent-%COMP%]{display:block;width:1rem;height:1rem;background-color:var(--success-8);border-radius:50%}.status.error[_ngcontent-%COMP%]{background-color:var(--error-8)}.status.warn[_ngcontent-%COMP%]{background-color:var(--warn-8)}.warning-item[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:.5rem;padding:.75rem;border-radius:var(--shape-2);background-color:var(--base-2)}.warning-item[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{margin:0;white-space:pre-wrap;word-break:break-word}.warning-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{align-self:flex-start;white-space:nowrap}"]})};function st(n,t){n&1&&vg(0,"sh-progress-bar",1);}function ct(n,t){n&1&&(Lg(0,0,1),vg(1,"sh-icon"),Fg());}function ut(n,t){n&1&&(Lg(0,0,2),vg(1,"sh-icon"),Fg());}function dt(n,t){if(n&1){let e=vT();Qi(0,"section",6)(1,"button",7),Vg("click",function(){kd(e);let F=iC(),c=F.$implicit,L=F.$index,G=iC();return Od(G.copyToClipboard(c.data,L))}),Lg(2,0),aT(3,ct,2,0)(4,ut,2,0),Fg(),$l(),Qi(5,"code"),jC(6),ob(7,"json"),$l()();}if(n&2){let e=iC(),o=e.$implicit,F=e.$index,c=iC();CE(),Yg("success",c.copiedFromIndex()===F),CE(2),cT(c.copiedFromIndex()===F?3:4),CE(3),om(sb(7,4,o.data));}}function Et(n,t){if(n&1){let e=vT();Qi(0,"article",2)(1,"header",3),Vg("click",function(){let F=kd(e).$implicit,c=iC();return Od(c.toggleOpenEntry(F.id))}),Qi(2,"h3"),jC(3),ob(4,"date"),$l(),Qi(5,"div",4)(6,"sh-icon",5),jC(7,"caret-down"),$l()()(),aT(8,dt,8,6,"section",6),$l();}if(n&2){let e=t.$implicit,o=iC();CE(3),sm("",ab(4,6,e.timestamp,"medium"),": ",e.operation," ",e.path),CE(3),Yg("open",e.id===o.openEntry()),CE(2),cT(e.id===o.openEntry()?8:-1);}}var Pe=class n{#e=T(C);backupId=I1.required();openEntry=Ge(null);pagination=Ge({offset:0,pagesize:100});copiedFromIndex=Ge(null);resource=$({params:()=>l({id:this.backupId()},this.pagination()),stream:({params:t})=>this.#e.getApiV1BackupByIdRemotelog({id:t.id,pagesize:100}).pipe(pt$1(e=>e.map((o,F)=>({id:o.ID,operationId:o.OperationID,timestamp:o.Timestamp*1e3,operation:o.Operation,path:o.Path,data:typeof o.Data=="string"?JSON.parse(o.Data):null}))))});toggleOpenEntry(t){if(this.openEntry()===t){this.openEntry.set(null);return}this.openEntry.set(t);}copyToClipboard(t,e){let o=JSON.stringify(t,null,2);navigator.clipboard.writeText(o),this.copiedFromIndex.set(e),setTimeout(()=>{this.copiedFromIndex.set(null);},3e3);}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=hw({type:n,selectors:[["app-remote-log"]],inputs:{backupId:[1,"backupId"]},decls:3,vars:1,consts:()=>{let t;return t=$localize`${"\uFFFD*3:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:check${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON: Copied ${"\uFFFD/*3:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*4:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:copy${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON: Copy to clipboard ${"\uFFFD/*4:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,t=oC(t),[t,[1,"indeterminate","primary"],[1,"log-entry"],[3,"click"],[1,"actions"],[1,"toggle-indicator"],[1,"log-content"],["shButton","",1,"small",3,"click"]]},template:function(e,o){e&1&&(aT(0,st,1,0,"sh-progress-bar",1),dT(1,Et,9,9,"article",2,lT)),e&2&&(cT(o.resource.isLoading()?0:-1),CE(),fT(o.resource.value()));},dependencies:[d,N,hi,ci],styles:["[_nghost-%COMP%]{display:block}.log-entry[_ngcontent-%COMP%]{display:flex;flex-direction:column}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:1rem;border-bottom:1px solid var(--base-4);background-color:var(--base-1);cursor:pointer}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]:hover{background-color:var(--base-2)}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-30);margin:0;-webkit-user-select:none;user-select:none}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-8)}.toggle-indicator[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;height:1.25rem;transition:transform 125ms linear}.toggle-indicator.open[_ngcontent-%COMP%]{transform:rotate(180deg)}.log-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:1rem;position:relative}.log-content[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{position:absolute;top:2rem;right:2rem;background:transparent}code[_ngcontent-%COMP%]{white-space:pre-wrap;padding:1rem;display:block;border-radius:var(--shape-2);background-color:var(--base-2)}"]})};function Ct(n,t){if(n&1&&(jC(0," - "),ql(1),nC(2,6),Gl(),jC(3),ob(4,"durationFormat")),n&2){iC(2);let e=qC(6);CE(3),Ql(" ",sb(4,1,e.Backup.Metadata?.LastBackupDuration)," ");}}function pt(n,t){n&1&&(ql(0),nC(1,7),Gl());}function Tt(n,t){if(n&1&&(jC(0),ob(1,"bytes")),n&2){iC(2);let e=qC(6);Ql(" ",sb(1,1,e.Backup.Metadata?.SourceFilesSize)," ");}}function gt(n,t){n&1&&(ql(0),nC(1,8),Gl());}function St(n,t){if(n&1&&(jC(0),ob(1,"bytes")),n&2){iC(2);let e=qC(6);Ql(" ",sb(1,1,e.Backup.Metadata?.TargetFilesSize)," ");}}function Ot(n,t){n&1&&(ql(0),nC(1,9),Gl());}function Lt(n,t){if(n&1&&(Qi(0,"sh-chip",20),nC(1,10),$l()),n&2){iC(2);let e=qC(6);CE(),jg(e.Backup.Metadata?.BackupListCount),rC(1);}}function Nt(n,t){n&1&&(Qi(0,"sh-chip",21),nC(1,11),$l());}function mt(n,t){if(n&1&&(Qi(0,"div",14)(1,"div",19)(2,"h3"),jC(3),Qi(4,"sh-icon"),jC(5,"database"),$l()(),Qi(6,"p")(7,"span"),nC(8,3),$l(),jC(9),ob(10,"date"),aT(11,Ct,5,3)(12,pt,2,0,"ng-container"),$l(),Qi(13,"p")(14,"span"),nC(15,4),$l(),aT(16,Tt,2,3)(17,gt,2,0,"ng-container"),$l(),Qi(18,"p")(19,"span"),nC(20,5),$l(),aT(21,St,2,3)(22,Ot,2,0,"ng-container"),$l()(),aT(23,Lt,2,1,"sh-chip",20)(24,Nt,2,0,"sh-chip",21),$l()),n&2){let e=iC(),o=qC(6);CE(3),Ql(" ",o.Backup.Name??e.MISSING_BACKUP_NAME," "),CE(6),Ql(" ",ab(10,6,o.Backup.Metadata?.LastBackupFinished,"short")," "),CE(2),cT(o.Backup.Metadata?.LastBackupDuration?11:12),CE(5),cT(o.Backup.Metadata?.SourceFilesSize?16:17),CE(5),cT(o.Backup.Metadata?.TargetFilesSize?21:22),CE(2),cT(o.Backup.Metadata?.BackupListCount?23:24);}}function Gt(n,t){if(n&1&&vg(0,"app-general-log",18),n&2){let e=iC();yg("backupId",e.backupId());}}function At(n,t){if(n&1&&vg(0,"app-remote-log",18),n&2){let e=iC();yg("backupId",e.backupId());}}var Re=class n{#e=T(W);#n=T(g);MISSING_BACKUP_NAME=$localize`Backup name missing`;activeTab=Ge("general");backupId=L(this.#e.params.pipe(pt$1(t=>t.id)));backup=Nt$1(()=>{let t=this.backupId();return t?this.#n.getBackupById(t):null});static \u0275fac=function(e){return new(e||n)};static \u0275cmp=hw({type:n,selectors:[["app-log"]],decls:15,vars:5,consts:()=>{let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SH_ICON: Back `;let e;e=$localize`General`;let o;o=$localize`Destination`;let F;F=$localize`Last successful backup:`;let c;c=$localize`Source:`;let L;L=$localize`Destination:`;let G;G=$localize`took`;let k;k=$localize`N/A`;let N;N=$localize`N/A`;let v;v=$localize`N/A`;let U;U=$localize`${"\uFFFD0\uFFFD"}:INTERPOLATION: Version`;let Q;return Q=$localize`No version yet`,[t,e,o,F,c,L,G,k,N,v,U,Q,[1,"back"],["type","button","shButton","","routerLink","/",1,"small"],[1,"backup"],[1,"primary",3,"valueChange","value"],["value","general"],["value","destination"],[3,"backupId"],[1,"text"],[1,"simple","success"],[1,"simple"]]},template:function(e,o){if(e&1){let F=vT();vg(0,"app-status-bar"),Qi(1,"section")(2,"div",12)(3,"button",13),Lg(4,0),vg(5,"sh-icon"),Fg(),$l()(),um(6),aT(7,mt,25,9,"div",14),Qi(8,"sh-tabs",15),cm("valueChange",function(L){return kd(F),UC(o.activeTab,L)||(o.activeTab=L),Od(L)}),Qi(9,"button",16),nC(10,1),$l(),Qi(11,"button",17),nC(12,2),$l()(),aT(13,Gt,1,1,"app-general-log",18),aT(14,At,1,1,"app-remote-log",18),$l();}if(e&2){CE(6);let F=WC(o.backup());CE(),cT(F?7:-1),CE(),am("value",o.activeTab),CE(5),cT(o.activeTab()==="general"?13:-1),CE(),cT(o.activeTab()==="destination"?14:-1);}},dependencies:[w,De,Pe,_t$1,ee,N,v,D,m,c,ci],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:1rem 1.5rem;gap:1rem}sh-tabs[_ngcontent-%COMP%]{margin-bottom:1rem}.backup[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem;gap:1rem;border:1px solid var(--base-4);border-radius:var(--shape-3);box-shadow:var(--box-shadow-10)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;width:100%;max-width:40%}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{color:var(--base-8)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-8)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--base-12)}"]})};export{Re as default};
1
+ import {w}from'./chunk-BstaUtD_.js';import {e as ee}from'./chunk-K2iai6rC.js';import'./chunk-CIe9Bupz.js';import'./chunk-BmmYJhOf.js';import'./chunk-CvSsZZty.js';import {I}from'./chunk-h6n5A491.js';import'./chunk-CyqqlRjO.js';import'./chunk-CX3Axjpk.js';import {c as c$1}from'./chunk-C3gUxHQM.js';import {D}from'./chunk-DidJB9ig.js';import {T,aw as W,a5 as g,G as Ge,aG as pt$1,N as Nt$1,h as hw,_ as _t$1,c as N,v,aH as m,aI as c,aJ as ci,l as vT,i as Ig,Q as Qi,F as Fg,j as jg,$ as $l,ak as dm,d as aT,p as lm,n as nC,C as CE,al as WC,g as cT,w as cm,O as Od,U as UC,P as Pd,ab as C,E as E1,aK as mb,ay as Qu,J as zu,aL as hi,a1 as dT,a2 as fT,o as oC,s as jC,aM as ob,k as iC,ao as qC,aa as Ql,aN as ab,y as vg,aj as l,ap as lT,H as Hg,K as im,aB as sm,L as Kg,aO as am,aP as ql,aQ as Gl,aR as sb,au as Vg,av as rC,aS as cb,aT as dy}from'./main-3NL5M6JB.js';import {d}from'./chunk-DDWDcSq2.js';import'./chunk-DhiIZLrA.js';import'./chunk-B6c2NXNy.js';import'./chunk-MDqH8T3Z.js';import'./chunk-mflQLMHH.js';import'./chunk-CuJ_uEdr.js';import {L,$}from'./chunk-DGvC49aU.js';import'./chunk-D1pDZLJ9.js';function Dn(n,t){n&1&&Ig(0,"sh-progress-bar",58);}function Pn(n,t){n&1&&Ig(0,"div",61);}function Rn(n,t){n&1&&Ig(0,"div",61);}function In(n,t){n&1&&Ig(0,"div",62);}function $n(n,t){n&1&&Ig(0,"div",63);}function Mn(n,t){if(n&1&&(Qi(0,"details",72)(1,"summary"),Fg(2,15),Ig(3,"sh-icon"),Qi(4,"div",74),Ig(5,"sh-icon",66),$l(),jg(),$l(),Qi(6,"div",75)(7,"p"),nC(8,16),ob(9,"date"),$l(),Qi(10,"p"),nC(11,17),ob(12,"date"),$l(),Qi(13,"p"),nC(14,18),ob(15,"durationFormat"),$l(),Qi(16,"p"),nC(17,19),$l(),Ig(18,"sh-divider"),Qi(19,"p"),nC(20,20),$l(),Qi(21,"p"),nC(22,21),$l()()(),Qi(23,"details",72)(24,"summary"),Fg(25,22),Ig(26,"sh-icon"),Qi(27,"div",74),Ig(28,"sh-icon",66),$l(),jg(),$l(),Qi(29,"div",75)(30,"p"),nC(31,23),ob(32,"date"),$l(),Qi(33,"p"),nC(34,24),ob(35,"date"),$l(),Qi(36,"p"),nC(37,25),ob(38,"durationFormat"),$l(),Ig(39,"sh-divider"),Qi(40,"p"),nC(41,26),ob(42,"bytes"),$l(),Qi(43,"p"),nC(44,27),ob(45,"bytes"),$l(),Qi(46,"p"),nC(47,28),ob(48,"bytes"),$l(),Ig(49,"sh-divider"),Qi(50,"p"),nC(51,29),$l(),Qi(52,"p"),nC(53,30),$l()()()),n&2){let e=iC(2).$implicit;CE(9),Vg(ab(9,17,e.data?.TestResults?.BeginTime,"medium")),rC(8),CE(3),Vg(ab(12,20,e.data?.TestResults?.EndTime,"medium")),rC(11),CE(3),Vg(sb(15,23,e.data?.TestResults?.Duration)),rC(14),CE(2),Vg(e.data?.TestResults?.VerificationsActualLength),rC(17),CE(3),Vg(e.data?.TestResults?.WarningsActualLength),rC(20),CE(2),Vg(e.data?.TestResults?.ErrorsActualLength),rC(22),CE(10),Vg(ab(32,25,e.data?.CompactResults?.BeginTime,"medium")),rC(31),CE(3),Vg(ab(35,28,e.data?.CompactResults?.EndTime,"medium")),rC(34),CE(3),Vg(sb(38,31,e.data?.CompactResults?.Duration)),rC(37),CE(4),Vg(e.data?.CompactResults?.DeletedFileCount)(cb(42,33,e.data?.CompactResults?.DeletedFileSize,true,true)),rC(41),CE(3),Vg(e.data?.CompactResults?.DownloadedFileCount)(cb(45,37,e.data?.CompactResults?.DownloadedFileSize,true,true)),rC(44),CE(3),Vg(e.data?.CompactResults?.UploadedFileCount)(cb(48,41,e.data?.CompactResults?.UploadedFileSize,true,true)),rC(47),CE(3),Vg(e.data?.CompactResults?.WarningsActualLength),rC(51),CE(2),Vg(e.data?.CompactResults?.ErrorsActualLength),rC(53);}}function fn(n,t){n&1&&(Qi(0,"p"),jC(1,"No messages"),$l());}function hn(n,t){n&1&&(Fg(0,43,1),Ig(1,"sh-icon"),jg());}function yn(n,t){n&1&&(Fg(0,43,2),Ig(1,"sh-icon"),jg());}function vn(n,t){if(n&1){let e=vT();Qi(0,"div",76)(1,"code"),jC(2),$l(),Qi(3,"button",77),Hg("click",function(F){let c=Od(e).$implicit,L=iC(5);return Pd(L.copyToClipboard(F,c,c))}),Fg(4,43),aT(5,hn,2,0,"sh-icon")(6,yn,2,0,"sh-icon"),jg(),$l()();}if(n&2){let e=t.$implicit,o=iC(5);CE(2),im(e),CE(3),cT(o.copied()==e?5:6);}}function Bn(n,t){n&1&&(Qi(0,"p"),jC(1,"No warnings"),$l());}function xn(n,t){n&1&&(Fg(0,44,1),Ig(1,"sh-icon"),jg());}function bn(n,t){n&1&&(Fg(0,44,2),Ig(1,"sh-icon"),jg());}function kn(n,t){if(n&1){let e=vT();Qi(0,"div",76)(1,"code"),jC(2),$l(),Qi(3,"button",77),Hg("click",function(F){let c=Od(e).$implicit,L=iC(5);return Pd(L.copyToClipboard(F,c,c))}),Fg(4,44),aT(5,xn,2,0,"sh-icon")(6,bn,2,0,"sh-icon"),jg(),$l()();}if(n&2){let e=t.$implicit,o=iC(5);CE(2),im(e),CE(3),cT(o.copied()==e?5:6);}}function Kn(n,t){n&1&&(Qi(0,"p"),jC(1,"No errors"),$l());}function Un(n,t){n&1&&(Fg(0,45,1),Ig(1,"sh-icon"),jg());}function wn(n,t){n&1&&(Fg(0,45,2),Ig(1,"sh-icon"),jg());}function Jn(n,t){if(n&1){let e=vT();Qi(0,"div",76)(1,"code"),jC(2),$l(),Qi(3,"button",77),Hg("click",function(F){let c=Od(e).$implicit,L=iC(5);return Pd(L.copyToClipboard(F,c,c))}),Fg(4,45),aT(5,Un,2,0,"sh-icon")(6,wn,2,0,"sh-icon"),jg(),$l()();}if(n&2){let e=t.$implicit,o=iC(5);CE(2),im(e),CE(3),cT(o.copied()==e?5:6);}}function Xn(n,t){if(n&1&&(Qi(0,"details",72)(1,"summary"),Fg(2,31),Ig(3,"sh-icon"),Qi(4,"div",74),Ig(5,"sh-icon",66),$l(),jg(),$l(),Qi(6,"div",75)(7,"p"),nC(8,32),ob(9,"date"),$l(),Qi(10,"p"),nC(11,33),ob(12,"date"),$l(),Qi(13,"p"),nC(14,34),ob(15,"durationFormat"),$l(),Ig(16,"sh-divider"),Qi(17,"p"),nC(18,35),ob(19,"bytes"),$l(),Qi(20,"p"),nC(21,36),$l(),Qi(22,"p"),nC(23,37),$l(),Qi(24,"p"),nC(25,38),$l(),Qi(26,"p"),nC(27,39),$l(),Ig(28,"sh-divider"),Qi(29,"details",78)(30,"summary"),Fg(31,40),Ig(32,"sh-icon"),Qi(33,"div",74),Ig(34,"sh-icon",66),$l(),jg(),$l(),Qi(35,"div",75),aT(36,fn,2,0,"p"),dT(37,vn,7,2,"div",76,lT),$l()(),Qi(39,"details",79)(40,"summary"),Fg(41,41),Ig(42,"sh-icon"),Qi(43,"div",74),Ig(44,"sh-icon",66),$l(),jg(),$l(),Qi(45,"div",75),aT(46,Bn,2,0,"p"),dT(47,kn,7,2,"div",76,lT),$l()(),Qi(49,"details",80)(50,"summary"),Fg(51,42),Ig(52,"sh-icon"),Qi(53,"div",74),Ig(54,"sh-icon",66),$l(),jg(),$l(),Qi(55,"div",75),aT(56,Kn,2,0,"p"),dT(57,Jn,7,2,"div",76,lT),$l()(),Ig(59,"sh-divider"),$l()()),n&2){let e=t.$implicit;CE(5),Vg(e.Destination),rC(2),CE(4),Vg(ab(9,16,e.BeginTime,"medium")),rC(8),CE(3),Vg(ab(12,19,e.EndTime,"medium")),rC(11),CE(3),Vg(sb(15,22,e.Duration)),rC(14),CE(4),Vg(e.CopiedFileCount)(cb(19,24,e.CopiedFileSize,true,true)),rC(18),CE(2),Vg(e.DeletedFileCount),rC(21),CE(2),Vg(e.RenamedFileCount),rC(23),CE(2),Vg(e.VerifiedFileCount),rC(25),CE(2),Vg(e.FailedVerificationCount),rC(27),CE(7),Vg(e.MessagesActualLength),rC(31),CE(2),cT(e.Messages?.length===0?36:-1),CE(),fT(e.Messages),CE(7),Vg(e.WarningsActualLength),rC(41),CE(2),cT(e.Warnings?.length===0?46:-1),CE(),fT(e.Warnings),CE(7),Vg(e.ErrorsActualLength),rC(51),CE(2),cT(e.Errors?.length===0?56:-1),CE(),fT(e.Errors);}}function zn(n,t){if(n&1&&dT(0,Xn,60,28,"details",72,lT),n&2){let e=iC(2).$implicit;fT(e.data?.RemoteSynchronizationResults);}}function Vn(n,t){if(n&1&&(Qi(0,"details",72)(1,"summary"),Fg(2,46),Ig(3,"sh-icon"),Qi(4,"div",74),Ig(5,"sh-icon",66),$l(),jg(),$l(),Qi(6,"div",75)(7,"p"),nC(8,47),ob(9,"date"),$l(),Qi(10,"p"),nC(11,48),ob(12,"date"),$l(),Qi(13,"p"),nC(14,49),ob(15,"durationFormat"),$l(),Ig(16,"sh-divider"),Qi(17,"p"),nC(18,50),$l(),Qi(19,"p"),nC(20,51),$l(),Qi(21,"p"),nC(22,52),$l()()()),n&2){let e=iC(2).$implicit;CE(9),Vg(ab(9,6,e.data?.LockResults?.BeginTime,"medium")),rC(8),CE(3),Vg(ab(12,9,e.data?.LockResults?.EndTime,"medium")),rC(11),CE(3),Vg(sb(15,12,e.data?.LockResults?.Duration)),rC(14),CE(3),Vg(e.data?.LockResults?.VolumesRead),rC(18),CE(2),Vg(e.data?.LockResults?.VolumesUpdated),rC(20),CE(2),Vg(e.data?.LockResults?.ParsedResult),rC(22);}}function Hn(n,t){if(n&1&&(Qi(0,"code"),jC(1),ob(2,"json"),$l()),n&2){let e=t.$implicit;CE(),im(sb(2,1,e));}}function Wn(n,t){if(n&1&&(Qi(0,"details",72)(1,"summary"),Fg(2,53),Ig(3,"sh-icon"),Qi(4,"div",74),Ig(5,"sh-icon",66),$l(),jg(),$l(),Qi(6,"div",75),dT(7,Hn,3,3,"code",null,lT),$l()()),n&2){let e=iC(2).$implicit;CE(5),Vg(e.data.VerificationsActualLength),rC(2),CE(2),fT(e.data.Verifications);}}function jn(n,t){n&1&&(Qi(0,"sh-icon"),jC(1,"check"),$l());}function qn(n,t){n&1&&(Qi(0,"sh-icon"),jC(1,"copy"),$l());}function Qn(n,t){n&1&&(ql(0),Fg(1,54),Ig(2,"sh-icon"),jg(),Gl());}function Yn(n,t){n&1&&(ql(0),Fg(1,55),Ig(2,"sh-icon"),jg(),Gl());}function Zn(n,t){n&1&&(ql(0),Fg(1,56),Ig(2,"sh-icon"),jg(),Gl());}function et(n,t){if(n&1){let e=vT();Qi(0,"button",82),Hg("click",function(){Od(e),iC();let F=qC(0),c=iC(3);return Pd(c.toggleWarningSuppression(F.MessageId))}),aT(1,Qn,3,0,"ng-container")(2,Yn,3,0,"ng-container")(3,Zn,3,0,"ng-container"),$l();}if(n&2){iC();let e=qC(0),o=iC(3),F=o.isWarningSuppressed(e.MessageId);vg("disabled",o.isSuppressingWarning()),CE(),cT(o.isSuppressingWarning()?1:F?2:3);}}function nt(n,t){if(n&1){let e=vT();dm(0),Qi(1,"div",76)(2,"code"),jC(3),$l(),Qi(4,"button",77),Hg("click",function(F){let c=Od(e).$implicit,L=iC(3);return Pd(L.copyToClipboard(F,c,c))}),jC(5," Copy "),aT(6,jn,2,0,"sh-icon")(7,qn,2,0,"sh-icon"),$l(),aT(8,et,4,2,"button",81),$l();}if(n&2){let e=t.$implicit,o=iC(3),F=WC(o.parseWarning(e));CE(3),im(e),CE(3),cT(o.copied()==e?6:7),CE(2),cT(F?.MessageId?8:-1);}}function tt(n,t){n&1&&(Qi(0,"p"),jC(1,"No errors"),$l());}function it(n,t){n&1&&(Fg(0,57,1),Ig(1,"sh-icon"),jg());}function ot(n,t){n&1&&(Fg(0,57,2),Ig(1,"sh-icon"),jg());}function _t(n,t){if(n&1){let e=vT();Qi(0,"div",76)(1,"code"),jC(2),$l(),Qi(3,"button",77),Hg("click",function(F){let c=Od(e).$implicit,L=iC(3);return Pd(L.copyToClipboard(F,c,c))}),Fg(4,57),aT(5,it,2,0,"sh-icon")(6,ot,2,0,"sh-icon"),jg(),$l()();}if(n&2){let e=t.$implicit,o=iC(3);CE(2),im(e),CE(3),cT(o.copied()==e?5:6);}}function at(n,t){n&1&&(Qi(0,"sh-icon"),jC(1,"check"),$l());}function Ft(n,t){n&1&&(Qi(0,"sh-icon"),jC(1,"copy"),$l());}function rt(n,t){if(n&1){let e=vT();Qi(0,"section",67)(1,"sh-toggle-card",68),ql(2,69),Qi(3,"h3"),nC(4,0),$l(),Gl(),ql(5,70),Qi(6,"p"),nC(7,1),ob(8,"date"),$l(),Qi(9,"p"),nC(10,2),ob(11,"date"),$l(),Qi(12,"p"),nC(13,3),ob(14,"durationFormat"),$l(),Gl(),$l(),Qi(15,"sh-toggle-card",68),ql(16,69),Qi(17,"h3"),nC(18,4),$l(),Gl(),ql(19,70),Qi(20,"p"),nC(21,5),ob(22,"bytes"),$l(),Qi(23,"p"),nC(24,6),ob(25,"bytes"),$l(),Qi(26,"p"),nC(27,7),ob(28,"bytes"),$l(),Qi(29,"p"),nC(30,8),ob(31,"bytes"),$l(),Qi(32,"p"),nC(33,9),$l(),Qi(34,"p"),nC(35,10),$l(),Qi(36,"p"),nC(37,11),$l(),Gl(),$l(),Qi(38,"div",71),Ig(39,"sh-divider"),aT(40,Mn,54,45),aT(41,zn,2,0),aT(42,Vn,23,14,"details",72),aT(43,Wn,9,1,"details",72),Qi(44,"details",73)(45,"summary"),Fg(46,12),Ig(47,"sh-icon"),Qi(48,"div",74),Ig(49,"sh-icon",66),$l(),jg(),$l(),Qi(50,"div",75),dT(51,nt,9,4,"div",76,lT),$l()(),Qi(53,"details",73)(54,"summary"),Fg(55,13),Ig(56,"sh-icon"),Qi(57,"div",74),Ig(58,"sh-icon",66),$l(),jg(),$l(),Qi(59,"div",75),aT(60,tt,2,0,"p"),dT(61,_t,7,2,"div",76,lT),$l()(),Ig(63,"sh-divider"),Qi(64,"details")(65,"summary"),Fg(66,14),Ig(67,"sh-icon"),Qi(68,"div",74),Ig(69,"sh-icon",66),$l(),jg(),$l(),Qi(70,"code")(71,"button",77),Hg("click",function(F){Od(e);let c=iC().$implicit,L=iC();return Pd(L.copyToClipboard(F,L.stringify(c.data),"all"))}),jC(72," Copy "),aT(73,at,2,0,"sh-icon")(74,Ft,2,0,"sh-icon"),$l(),jC(75),ob(76,"json"),$l()()()();}if(n&2){let e=iC().$implicit,o=iC();CE(),vg("disableToggle",true),CE(7),Vg(ab(8,27,e.data?.BeginTime,"medium")),rC(7),CE(3),Vg(ab(11,30,e.data?.EndTime,"medium")),rC(10),CE(3),Vg(sb(14,33,e.data?.Duration)),rC(13),CE(),vg("disableToggle",true),CE(7),Vg(e.data?.ExaminedFiles)(cb(22,35,e.data?.SizeOfExaminedFiles,true,true)),rC(21),CE(3),Vg(e.data?.OpenedFiles)(cb(25,39,e.data?.SizeOfOpenedFiles,true,true)),rC(24),CE(3),Vg(e.data?.AddedFiles)(cb(28,43,e.data?.SizeOfAddedFiles,true,true)),rC(27),CE(3),Vg(e.data?.ModifiedFiles)(cb(31,47,e.data?.SizeOfModifiedFiles,true,true)),rC(30),CE(2),Vg(e.data?.DeletedFiles),rC(33),CE(2),Vg(e.data?.TooLargeFiles),rC(35),CE(2),Vg(e.data?.FilesWithError),rC(37),CE(3),cT(e.data?.TestResults?40:-1),CE(),cT(e.data?.RemoteSynchronizationResults?41:-1),CE(),cT(e.data?.LockResults?42:-1),CE(),cT(e.data?.MainOperation==="Test"?43:-1),CE(),vg("open",e.id===o.openEntry()&&o.openSection()==="warnings"),CE(5),Vg(e.data?.WarningsActualLength),rC(46),CE(2),fT(e.data?.Warnings),CE(2),vg("open",e.id===o.openEntry()&&o.openSection()==="errors"),CE(5),Vg(e.data?.ErrorsActualLength),rC(55),CE(2),cT(e.data?.Errors?.length===0?60:-1),CE(),fT(e.data?.Errors),CE(12),cT(o.copied()=="all"?73:74),CE(2),Ql(" ",sb(76,51,e.data)," ");}}function lt(n,t){if(n&1){let e=vT();Qi(0,"article",59)(1,"header",60),Hg("click",function(){let F=Od(e).$implicit,c=iC();return Pd(c.toggleOpenEntry(F))}),aT(2,Pn,1,0,"div",61)(3,Rn,1,0,"div",61)(4,In,1,0,"div",62)(5,$n,1,0,"div",63),Qi(6,"h3"),jC(7),ob(8,"date"),$l(),Qi(9,"p"),jC(10),$l(),Ig(11,"div",64),Qi(12,"div",65)(13,"sh-icon",66),jC(14,"caret-down"),$l()()(),aT(15,rt,77,53,"section",67),$l();}if(n&2){let e=t.$implicit,o=iC(),F=e.data?.ParsedResult||"Unknown";CE(2),cT(F=="Fatal"?2:F=="Error"?3:F=="Warning"?4:5),CE(5),im(ab(8,7,e.timestamp,"medium")),CE(3),sm(" ",e.data?.MainOperation," ",o.getLocalizedSummary(e)," "),CE(3),Kg("open",e.id===o.openEntry()),CE(2),cT(e.id===o.openEntry()?15:-1);}}var De=class n{#e=T(C);#n=T(g);#t=new m;#i=new c;backupId=E1.required();isSuppressingWarning=Ge(false);copied=Ge(null);backupResource=mb({params:()=>({id:this.backupId()}),loader:({params:t})=>dy(this.#e.getApiV1BackupById({id:t.id}))});suppressedWarningIds=Nt$1(()=>{let t=this.backupResource.value();if(!t?.Backup?.Settings)return new Set;let e=t.Backup.Settings.find(o=>o.Name==="--suppress-warnings");return e?.Value?new Set(e.Value.split(",").map(o=>o.trim()).filter(Boolean)):new Set});openEntry=Ge(null);openSection=Ge(null);pagination=Ge({offset:0,pagesize:100});resource=$({params:()=>l({id:this.backupId()},this.pagination()),stream:({params:t})=>this.#e.getApiV1BackupByIdLog({id:t.id,pagesize:100}).pipe(pt$1(e=>e.map(o=>({id:o.ID,operationId:o.OperationID,timestamp:o.Timestamp*1e3,type:o.Type,data:JSON.parse(o.Message),exception:JSON.stringify(o.Exception)==="{}"?null:o.Exception}))))});getLocalizedSummary(t){let e=t.data?.ErrorsActualLength??0,o=t.data?.WarningsActualLength??0,F=[];if(t.data?.MainOperation=="Backup"){if(t.data?.Duration){let c=this.#i.transform(t.data?.Duration,true);c.startsWith("0h ")&&(c=c.slice(3)),c.startsWith("0m ")&&(c=c.slice(3)),F.push($localize`took ${c}`);}t.data?.BackendStatistics?.BytesUploaded&&F.push($localize`uploaded ${this.#t.transform(t.data?.BackendStatistics?.BytesUploaded)}`),t.data?.BackendStatistics?.KnownFileSize&&F.push($localize`backup size ${this.#t.transform(t.data?.BackendStatistics?.KnownFileSize)}`);}return e!==0&&F.push($localize`:@@errorCount:${e} error${e===1?"":"s"}`),o!==0&&F.push($localize`:@@warningCount:${o} warning${o===1?"":"s"}`),F.length===0?"":`(${F.join(", ")})`}toggleOpenEntry(t){let e=t.id;if(this.openEntry()===e){this.openEntry.set(null),this.openSection.set(null);return}let o=t.data?.ErrorsActualLength??0,F=t.data?.WarningsActualLength??0;o>0?this.openSection.set("errors"):F>0?this.openSection.set("warnings"):this.openSection.set(null),this.openEntry.set(e);}parseWarning(t){let e=t.match(/^(.*?) - \[(.*?)-(.*?)-(.*?)\]: (.*)$/);if(!e)return null;let[,o,F,c,L,G]=e;return {Timestamp:o,LogLevel:F,Source:c,MessageId:L,Message:G}}isWarningSuppressed(t){return this.suppressedWarningIds().has(t)}toggleWarningSuppression(t){let e=this.backupId();!e||!t||(this.isSuppressingWarning.set(true),this.#e.getApiV1BackupById({id:e}).pipe(Qu(o=>{let F=o.Backup?.Settings??[],c=F.findIndex(N=>N.Name==="--suppress-warnings"),L=this.isWarningSuppressed(t),G="";if(c>=0){let v=(F[c].Value??"").split(",").map(U=>U.trim()).filter(Boolean);L?v=v.filter(U=>U!==t):v.includes(t)||v.push(t),G=v.join(",");}else L||(G=t);let k=F.map(N=>({Name:N.Name,Value:N.Value,Filter:N.Filter}));return c>=0?G===""?k.splice(c,1):k[c]={Name:"--suppress-warnings",Value:G,Filter:null}:G!==""&&k.push({Name:"--suppress-warnings",Value:G,Filter:null}),this.#e.putApiV1BackupById({id:e,requestBody:{Backup:{Name:o.Backup?.Name,Description:o.Backup?.Description,DBPath:o.Backup?.DBPath,Tags:o.Backup?.Tags??[],TargetURL:o.Backup?.TargetURL,ConnectionStringID:o.Backup?.ConnectionStringID,Sources:o.Backup?.Sources??[],Settings:k,Filters:o.Backup?.Filters?.map(N=>({Expression:N.Expression,Include:N.Include,Order:N.Order})),Metadata:o.Backup?.Metadata??{},AdditionalTargetURLs:o.Backup?.AdditionalTargetURLs?.map(N=>({TargetUrl:N.TargetUrl,UrlKey:N.UrlKey,Mode:N.Mode,Interval:N.Interval,ConnectionStringID:N.ConnectionStringID,Options:N.Options}))},Schedule:o.Schedule?{Repeat:o.Schedule.Repeat,Time:o.Schedule.Time,AllowedDays:o.Schedule.AllowedDays}:void 0}})}),zu(()=>this.isSuppressingWarning.set(false))).subscribe({next:()=>{this.#n.getBackups(true),this.backupResource.reload();},error:o=>{console.error("Failed to toggle warning suppression:",o);}}));}copyToClipboard(t,e,o){t.stopPropagation(),navigator.clipboard.writeText(e),this.copied.set(o),setTimeout(()=>{this.copied.set(null);},2e3);}stringify(t){return JSON.stringify(t,null,2)}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=hw({type:n,selectors:[["app-general-log"]],inputs:{backupId:[1,"backupId"]},decls:3,vars:1,consts:()=>{let t;t=$localize`Time`;let e;e=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let o;o=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let F;F=$localize`Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let c;c=$localize`Source files`;let L;L=$localize` Evaluated: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let G;G=$localize` Opened: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let k;k=$localize` Added: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let N;N=$localize` Modified: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let v;v=$localize`Deleted: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let U;U=$localize`Too large: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Q;Q=$localize`Files with error: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let A;A=$localize`${"\uFFFD#47\uFFFD"}:START_TAG_SH_ICON:warning-circle${"[\uFFFD/#47\uFFFD|\uFFFD/#49\uFFFD]"}:CLOSE_TAG_SH_ICON: Warnings ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#48\uFFFD"}:START_TAG_DIV:${"\uFFFD#49\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#47\uFFFD|\uFFFD/#49\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#48\uFFFD"}:CLOSE_TAG_DIV:`,A=oC(A);let ne;ne=$localize`${"\uFFFD#56\uFFFD"}:START_TAG_SH_ICON:warning${"[\uFFFD/#56\uFFFD|\uFFFD/#58\uFFFD]"}:CLOSE_TAG_SH_ICON: Errors ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#57\uFFFD"}:START_TAG_DIV:${"\uFFFD#58\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#56\uFFFD|\uFFFD/#58\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#57\uFFFD"}:CLOSE_TAG_DIV:`,ne=oC(ne);let te;te=$localize`${"\uFFFD#67\uFFFD"}:START_TAG_SH_ICON:notepad${"[\uFFFD/#67\uFFFD|\uFFFD/#69\uFFFD]"}:CLOSE_TAG_SH_ICON: Complete log ${"\uFFFD#68\uFFFD"}:START_TAG_DIV:${"\uFFFD#69\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#67\uFFFD|\uFFFD/#69\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#68\uFFFD"}:CLOSE_TAG_DIV:`,te=oC(te);let ie;ie=$localize`${"\uFFFD#3\uFFFD"}:START_TAG_SH_ICON:circle-half-tilt${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SH_ICON: Test phase ${"\uFFFD#4\uFFFD"}:START_TAG_DIV:${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_DIV:`,ie=oC(ie);let Ie;Ie=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let $e;$e=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Me;Me=$localize`Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let fe;fe=$localize`Verifications: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let he;he=$localize`Warnings: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let ye;ye=$localize`Errors: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let oe;oe=$localize`${"\uFFFD#26\uFFFD"}:START_TAG_SH_ICON:file-archive${"[\uFFFD/#26\uFFFD|\uFFFD/#28\uFFFD]"}:CLOSE_TAG_SH_ICON: Compact phase ${"\uFFFD#27\uFFFD"}:START_TAG_DIV:${"\uFFFD#28\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#26\uFFFD|\uFFFD/#28\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#27\uFFFD"}:CLOSE_TAG_DIV:`,oe=oC(oe);let ve;ve=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Be;Be=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let xe;xe=$localize` Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION: `;let be;be=$localize` Deleted files: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let ke;ke=$localize` Downloaded files: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let Ke;Ke=$localize` Uploaded files: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let Ue;Ue=$localize`Warnings: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let we;we=$localize`Errors: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let _e;_e=$localize`${"\uFFFD#3\uFFFD"}:START_TAG_SH_ICON:arrows-clockwise${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SH_ICON: Secondary destination: ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#4\uFFFD"}:START_TAG_DIV:${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_DIV:`,_e=oC(_e);let Je;Je=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Xe;Xe=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let ze;ze=$localize`Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ve;Ve=$localize` Files copied: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let He;He=$localize`Files deleted: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let We;We=$localize`Files renamed: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let je;je=$localize`Files verified: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let qe;qe=$localize`Failed verifications: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let ae;ae=$localize`${"\uFFFD#32\uFFFD"}:START_TAG_SH_ICON:info${"[\uFFFD/#32\uFFFD|\uFFFD/#34\uFFFD]"}:CLOSE_TAG_SH_ICON: Messages ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#33\uFFFD"}:START_TAG_DIV:${"\uFFFD#34\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#32\uFFFD|\uFFFD/#34\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#33\uFFFD"}:CLOSE_TAG_DIV:`,ae=oC(ae);let Fe;Fe=$localize`${"\uFFFD#42\uFFFD"}:START_TAG_SH_ICON:warning-circle${"[\uFFFD/#42\uFFFD|\uFFFD/#44\uFFFD]"}:CLOSE_TAG_SH_ICON: Warnings ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#43\uFFFD"}:START_TAG_DIV:${"\uFFFD#44\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#42\uFFFD|\uFFFD/#44\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#43\uFFFD"}:CLOSE_TAG_DIV:`,Fe=oC(Fe);let re;re=$localize`${"\uFFFD#52\uFFFD"}:START_TAG_SH_ICON:warning${"[\uFFFD/#52\uFFFD|\uFFFD/#54\uFFFD]"}:CLOSE_TAG_SH_ICON: Errors ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#53\uFFFD"}:START_TAG_DIV:${"\uFFFD#54\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#52\uFFFD|\uFFFD/#54\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#53\uFFFD"}:CLOSE_TAG_DIV:`,re=oC(re);let le;le=$localize` Copy ${"\uFFFD*5:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:check${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*5:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*6:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:copy${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*6:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,le=oC(le);let se;se=$localize` Copy ${"\uFFFD*5:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:check${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*5:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*6:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:copy${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*6:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,se=oC(se);let ce;ce=$localize` Copy ${"\uFFFD*5:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:check${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*5:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*6:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:copy${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*6:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,ce=oC(ce);let ue;ue=$localize`${"\uFFFD#3\uFFFD"}:START_TAG_SH_ICON:lock${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SH_ICON: Lock results ${"\uFFFD#4\uFFFD"}:START_TAG_DIV:${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_DIV:`,ue=oC(ue);let Qe;Qe=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ye;Ye=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ze;Ze=$localize`Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let en;en=$localize`Volumes read: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let nn;nn=$localize`Volumes updated: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let tn;tn=$localize`Parsed result: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let de;de=$localize`${"\uFFFD#3\uFFFD"}:START_TAG_SH_ICON:warning-circle${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SH_ICON: Verifications ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#4\uFFFD"}:START_TAG_DIV:${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_DIV:`,de=oC(de);let on;on=$localize` Updating ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:spinner${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let _n;_n=$localize` Un-suppress ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:bell${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let an;an=$localize` Suppress ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:bell-slash${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let Ee;return Ee=$localize` Copy ${"\uFFFD*5:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:check${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*5:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*6:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:copy${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*6:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,Ee=oC(Ee),[t,e,o,F,c,L,G,k,N,v,U,Q,A,ne,te,ie,Ie,$e,Me,fe,he,ye,oe,ve,Be,xe,be,ke,Ke,Ue,we,_e,Je,Xe,ze,Ve,He,We,je,qe,ae,Fe,re,le,se,ce,ue,Qe,Ye,Ze,en,nn,tn,de,on,_n,an,Ee,[1,"indeterminate","primary"],[1,"log-entry"],[3,"click"],[1,"status","error"],[1,"status","warn"],[1,"status"],[1,"spacer"],[1,"action"],[1,"toggle-indicator"],[1,"log-content"],[3,"disableToggle"],["title",""],["content",""],[1,"extra-info"],["name","details"],["name","details",3,"open"],[1,"actions"],[1,"content"],[1,"warning-item"],["shButton","",1,"small",3,"click"],["name","details-messages"],["name","details-warnings"],["name","details-errors"],["shButton","",1,"small",3,"disabled"],["shButton","",1,"small",3,"click","disabled"]]},template:function(e,o){e&1&&(aT(0,Dn,1,0,"sh-progress-bar",58),dT(1,lt,16,10,"article",59,lT)),e&2&&(cT(o.resource.isLoading()?0:-1),CE(),fT(o.resource.value()));},dependencies:[I,c$1,d,v,N,m,ci,c,hi],styles:["[_nghost-%COMP%]{display:block}.log-entry[_ngcontent-%COMP%]{display:flex;flex-direction:column;cursor:pointer}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;padding:1rem;border-bottom:1px solid var(--base-4);background-color:var(--base-1);cursor:pointer}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]:hover{background-color:var(--base-2)}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-30);margin:0}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-8)}.toggle-indicator[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;height:1.25rem;transition:transform 125ms linear}.toggle-indicator.open[_ngcontent-%COMP%]{transform:rotate(180deg)}details[_ngcontent-%COMP%]{display:flex;flex-direction:column}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]{cursor:pointer;display:flex;align-items:center;gap:.5rem;padding:.75rem;border-radius:var(--shape-2);background-color:var(--base-2)}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]:focus{outline:none}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]:hover{background-color:var(--base-3)}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]::marker{font-size:0}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;flex:1 0;gap:.5rem;-webkit-user-select:none;user-select:none}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;height:2rem;transition:transform 125ms linear}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] sh-icon.toggle-indicator[_ngcontent-%COMP%]{transform:rotate(0)}details[open][_ngcontent-%COMP%] > summary[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] sh-icon.toggle-indicator[_ngcontent-%COMP%]{transform:rotate(180deg)}details[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{padding:.75rem 1rem 0;display:flex;flex-direction:column;gap:.75rem}details[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}details[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{margin-top:.75rem;position:relative}details[_ngcontent-%COMP%] code[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{position:absolute;top:.75rem;right:.75rem}.extra-info[_ngcontent-%COMP%]{grid-column:1/-1;display:flex;flex-direction:column;gap:1rem}.extra-info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-bottom:.75rem}.extra-info[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{white-space:pre-wrap;padding:1rem;display:block;border-radius:var(--shape-2);background-color:var(--base-2)}.log-content[_ngcontent-%COMP%]{padding:1rem;display:grid;grid-template-columns:1fr 1fr;gap:1rem}.status[_ngcontent-%COMP%]{display:block;width:1rem;height:1rem;background-color:var(--success-8);border-radius:50%}.status.error[_ngcontent-%COMP%]{background-color:var(--error-8)}.status.warn[_ngcontent-%COMP%]{background-color:var(--warn-8)}.warning-item[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:.5rem;padding:.75rem;border-radius:var(--shape-2);background-color:var(--base-2)}.warning-item[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{margin:0;white-space:pre-wrap;word-break:break-word}.warning-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{align-self:flex-start;white-space:nowrap}"]})};function st(n,t){n&1&&Ig(0,"sh-progress-bar",1);}function ct(n,t){n&1&&(Fg(0,0,1),Ig(1,"sh-icon"),jg());}function ut(n,t){n&1&&(Fg(0,0,2),Ig(1,"sh-icon"),jg());}function dt(n,t){if(n&1){let e=vT();Qi(0,"section",6)(1,"button",7),Hg("click",function(){Od(e);let F=iC(),c=F.$implicit,L=F.$index,G=iC();return Pd(G.copyToClipboard(c.data,L))}),Fg(2,0),aT(3,ct,2,0)(4,ut,2,0),jg(),$l(),Qi(5,"code"),jC(6),ob(7,"json"),$l()();}if(n&2){let e=iC(),o=e.$implicit,F=e.$index,c=iC();CE(),Kg("success",c.copiedFromIndex()===F),CE(2),cT(c.copiedFromIndex()===F?3:4),CE(3),im(sb(7,4,o.data));}}function Et(n,t){if(n&1){let e=vT();Qi(0,"article",2)(1,"header",3),Hg("click",function(){let F=Od(e).$implicit,c=iC();return Pd(c.toggleOpenEntry(F.id))}),Qi(2,"h3"),jC(3),ob(4,"date"),$l(),Qi(5,"div",4)(6,"sh-icon",5),jC(7,"caret-down"),$l()()(),aT(8,dt,8,6,"section",6),$l();}if(n&2){let e=t.$implicit,o=iC();CE(3),am("",ab(4,6,e.timestamp,"medium"),": ",e.operation," ",e.path),CE(3),Kg("open",e.id===o.openEntry()),CE(2),cT(e.id===o.openEntry()?8:-1);}}var Pe=class n{#e=T(C);backupId=E1.required();openEntry=Ge(null);pagination=Ge({offset:0,pagesize:100});copiedFromIndex=Ge(null);resource=$({params:()=>l({id:this.backupId()},this.pagination()),stream:({params:t})=>this.#e.getApiV1BackupByIdRemotelog({id:t.id,pagesize:100}).pipe(pt$1(e=>e.map((o,F)=>({id:o.ID,operationId:o.OperationID,timestamp:o.Timestamp*1e3,operation:o.Operation,path:o.Path,data:typeof o.Data=="string"?JSON.parse(o.Data):null}))))});toggleOpenEntry(t){if(this.openEntry()===t){this.openEntry.set(null);return}this.openEntry.set(t);}copyToClipboard(t,e){let o=JSON.stringify(t,null,2);navigator.clipboard.writeText(o),this.copiedFromIndex.set(e),setTimeout(()=>{this.copiedFromIndex.set(null);},3e3);}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=hw({type:n,selectors:[["app-remote-log"]],inputs:{backupId:[1,"backupId"]},decls:3,vars:1,consts:()=>{let t;return t=$localize`${"\uFFFD*3:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:check${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON: Copied ${"\uFFFD/*3:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*4:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:copy${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON: Copy to clipboard ${"\uFFFD/*4:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,t=oC(t),[t,[1,"indeterminate","primary"],[1,"log-entry"],[3,"click"],[1,"actions"],[1,"toggle-indicator"],[1,"log-content"],["shButton","",1,"small",3,"click"]]},template:function(e,o){e&1&&(aT(0,st,1,0,"sh-progress-bar",1),dT(1,Et,9,9,"article",2,lT)),e&2&&(cT(o.resource.isLoading()?0:-1),CE(),fT(o.resource.value()));},dependencies:[d,N,hi,ci],styles:["[_nghost-%COMP%]{display:block}.log-entry[_ngcontent-%COMP%]{display:flex;flex-direction:column}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:1rem;border-bottom:1px solid var(--base-4);background-color:var(--base-1);cursor:pointer}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]:hover{background-color:var(--base-2)}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-30);margin:0;-webkit-user-select:none;user-select:none}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-8)}.toggle-indicator[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;height:1.25rem;transition:transform 125ms linear}.toggle-indicator.open[_ngcontent-%COMP%]{transform:rotate(180deg)}.log-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:1rem;position:relative}.log-content[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{position:absolute;top:2rem;right:2rem;background:transparent}code[_ngcontent-%COMP%]{white-space:pre-wrap;padding:1rem;display:block;border-radius:var(--shape-2);background-color:var(--base-2)}"]})};function Ct(n,t){if(n&1&&(jC(0," - "),ql(1),nC(2,6),Gl(),jC(3),ob(4,"durationFormat")),n&2){iC(2);let e=qC(6);CE(3),Ql(" ",sb(4,1,e.Backup.Metadata?.LastBackupDuration)," ");}}function pt(n,t){n&1&&(ql(0),nC(1,7),Gl());}function Tt(n,t){if(n&1&&(jC(0),ob(1,"bytes")),n&2){iC(2);let e=qC(6);Ql(" ",sb(1,1,e.Backup.Metadata?.SourceFilesSize)," ");}}function gt(n,t){n&1&&(ql(0),nC(1,8),Gl());}function St(n,t){if(n&1&&(jC(0),ob(1,"bytes")),n&2){iC(2);let e=qC(6);Ql(" ",sb(1,1,e.Backup.Metadata?.TargetFilesSize)," ");}}function Ot(n,t){n&1&&(ql(0),nC(1,9),Gl());}function Lt(n,t){if(n&1&&(Qi(0,"sh-chip",20),nC(1,10),$l()),n&2){iC(2);let e=qC(6);CE(),Vg(e.Backup.Metadata?.BackupListCount),rC(1);}}function Nt(n,t){n&1&&(Qi(0,"sh-chip",21),nC(1,11),$l());}function mt(n,t){if(n&1&&(Qi(0,"div",14)(1,"div",19)(2,"h3"),jC(3),Qi(4,"sh-icon"),jC(5,"database"),$l()(),Qi(6,"p")(7,"span"),nC(8,3),$l(),jC(9),ob(10,"date"),aT(11,Ct,5,3)(12,pt,2,0,"ng-container"),$l(),Qi(13,"p")(14,"span"),nC(15,4),$l(),aT(16,Tt,2,3)(17,gt,2,0,"ng-container"),$l(),Qi(18,"p")(19,"span"),nC(20,5),$l(),aT(21,St,2,3)(22,Ot,2,0,"ng-container"),$l()(),aT(23,Lt,2,1,"sh-chip",20)(24,Nt,2,0,"sh-chip",21),$l()),n&2){let e=iC(),o=qC(6);CE(3),Ql(" ",o.Backup.Name??e.MISSING_BACKUP_NAME," "),CE(6),Ql(" ",ab(10,6,o.Backup.Metadata?.LastBackupFinished,"short")," "),CE(2),cT(o.Backup.Metadata?.LastBackupDuration?11:12),CE(5),cT(o.Backup.Metadata?.SourceFilesSize?16:17),CE(5),cT(o.Backup.Metadata?.TargetFilesSize?21:22),CE(2),cT(o.Backup.Metadata?.BackupListCount?23:24);}}function Gt(n,t){if(n&1&&Ig(0,"app-general-log",18),n&2){let e=iC();vg("backupId",e.backupId());}}function At(n,t){if(n&1&&Ig(0,"app-remote-log",18),n&2){let e=iC();vg("backupId",e.backupId());}}var Re=class n{#e=T(W);#n=T(g);MISSING_BACKUP_NAME=$localize`Backup name missing`;activeTab=Ge("general");backupId=L(this.#e.params.pipe(pt$1(t=>t.id)));backup=Nt$1(()=>{let t=this.backupId();return t?this.#n.getBackupById(t):null});static \u0275fac=function(e){return new(e||n)};static \u0275cmp=hw({type:n,selectors:[["app-log"]],decls:15,vars:5,consts:()=>{let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SH_ICON: Back `;let e;e=$localize`General`;let o;o=$localize`Destination`;let F;F=$localize`Last successful backup:`;let c;c=$localize`Source:`;let L;L=$localize`Destination:`;let G;G=$localize`took`;let k;k=$localize`N/A`;let N;N=$localize`N/A`;let v;v=$localize`N/A`;let U;U=$localize`${"\uFFFD0\uFFFD"}:INTERPOLATION: Version`;let Q;return Q=$localize`No version yet`,[t,e,o,F,c,L,G,k,N,v,U,Q,[1,"back"],["type","button","shButton","","routerLink","/",1,"small"],[1,"backup"],[1,"primary",3,"valueChange","value"],["value","general"],["value","destination"],[3,"backupId"],[1,"text"],[1,"simple","success"],[1,"simple"]]},template:function(e,o){if(e&1){let F=vT();Ig(0,"app-status-bar"),Qi(1,"section")(2,"div",12)(3,"button",13),Fg(4,0),Ig(5,"sh-icon"),jg(),$l()(),dm(6),aT(7,mt,25,9,"div",14),Qi(8,"sh-tabs",15),lm("valueChange",function(L){return Od(F),UC(o.activeTab,L)||(o.activeTab=L),Pd(L)}),Qi(9,"button",16),nC(10,1),$l(),Qi(11,"button",17),nC(12,2),$l()(),aT(13,Gt,1,1,"app-general-log",18),aT(14,At,1,1,"app-remote-log",18),$l();}if(e&2){CE(6);let F=WC(o.backup());CE(),cT(F?7:-1),CE(),cm("value",o.activeTab),CE(5),cT(o.activeTab()==="general"?13:-1),CE(),cT(o.activeTab()==="destination"?14:-1);}},dependencies:[w,De,Pe,_t$1,ee,N,v,D,m,c,ci],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:1rem 1.5rem;gap:1rem}sh-tabs[_ngcontent-%COMP%]{margin-bottom:1rem}.backup[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem;gap:1rem;border:1px solid var(--base-4);border-radius:var(--shape-3);box-shadow:var(--box-shadow-10)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;width:100%;max-width:40%}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{color:var(--base-8)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-8)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--base-12)}"]})};export{Re as default};
@@ -1 +1 @@
1
- import {w as w$1}from'./chunk-CDEvMQA2.js';import {e as ee}from'./chunk-CzJ3-6Pu.js';import'./chunk-oTpkLrqH.js';import'./chunk-dCFVYHva.js';import'./chunk--kVw-BwM.js';import {k as ke}from'./chunk-BC2-YuwH.js';import'./chunk-BFfFD-XE.js';import'./chunk-CmexLvf7.js';import'./chunk-Bgx4dtaL.js';import'./chunk-D7AP6g7S.js';import'./chunk-CQv4eyEK.js';import'./chunk-DH6iiZWc.js';import'./chunk-DuTbfCdT.js';import'./chunk-DKacf9Tj.js';import'./chunk-gaP3Sx_C.js';import'./chunk-CI8lsvKT.js';import'./chunk-C5p3bQwH.js';import {T,aw as W,a5 as g,ab as C,z as za,aE as jo,h as hw,Z as lr,_ as _t,a8 as To,j as vg,Q as Qi,f as aT,n as nC,$ as $l,C as CE,i as cT,A as yg,aF as XC,aD as YC,w as jC,k as iC,aa as Ql}from'./main-QLXVXD6E.js';import'./chunk-C3KPTLNN.js';import {d}from'./chunk-PONAC1Ya.js';import'./chunk-D3SUPUQT.js';import'./chunk-DoYGADYB.js';import'./chunk-Crs56mDy.js';import'./chunk-Bcxzhjj8.js';import'./chunk-BYJ0fSUP.js';import {L}from'./chunk-D3d-eReU.js';import'./chunk-D2aWqPl_.js';var G=(i,e)=>[i,e,"general"],$=(i,e)=>[i,e,"destination"],U=(i,e)=>[i,e,"source-data"],K=(i,e)=>[i,e,"schedule"],F=(i,e)=>[i,e,"options"];function w(i,e){if(i&1&&(Qi(0,"p"),jC(1),$l()),i&2){let t=iC();CE(),Ql("Editing: ",t.backupName());}}function J(i,e){i&1&&vg(0,"sh-progress-bar",7);}function X(i,e){i&1&&(Qi(0,"section"),vg(1,"router-outlet"),$l());}var P=class i{#t=T(W);#e=T(ke);#i=T(g);#n=T(C);isDraft=this.#e.isDraft;isNew=this.#e.isNew;backupId=this.#e.backupId;backupName=this.#e.backupName;finishedLoading=this.#e.finishedLoading;#a=L(this.#t.params);#o=L(this.#t.url);paramsChanged=za(()=>{let e=this.#a()?.id,t=!!this.#o()?.find(n=>n.path==="backup-draft");e!=this.#e.backupId()&&(this.#e.backupId.set(e),e!=="new"?this.getBackup(e,t):this.getDefaults());});getDefaults(){this.#n.getApiV1Backupdefaults().pipe(jo(1)).subscribe({next:e=>{let t=e.Backup;t.Settings=[...t.Settings],this.#e.mapGeneralToForm(t),this.#e.mapDestinationToForm(t),this.#e.mapSourceDataToForm(t),this.#e.mapScheduleToForm(e.Schedule),this.#e.mapOptionsToForms(t),this.#e.applicationOptions.set(e.ApplicationOptions),this.#e.backupDefaults.set(e),this.#e.finishedLoading.set(true);}});}getBackup(e,t=false){let n=a=>{this.#e.mapScheduleToForm(a.Schedule??null),a.Backup&&(this.#e.mapGeneralToForm(a.Backup),this.#e.mapDestinationToForm(a.Backup),this.#e.mapSourceDataToForm(a.Backup),this.#e.mapOptionsToForms(a.Backup),this.#e.storeMetadata(a.Backup,t)),this.#e.finishedLoading.set(true);};if(t){this.isDraft.set(t);let a=this.#i.draftBackups().find(d=>d.id===e);if(!a){alert("Backup not found");return}n(a.data);}else this.#n.getApiV1BackupById({id:e}).subscribe({next:n});}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=hw({type:i,selectors:[["app-backup"]],features:[YC([ke])],decls:16,vars:22,consts:()=>{let e;e=$localize` General `;let t;t=$localize` Destination `;let n;n=$localize` Source Data `;let a;a=$localize` Schedule `;let d;return d=$localize` Options `,[e,t,n,a,d,[1,"primary"],["tabindex","-1","routerLinkActive","active",3,"routerLink"],[1,"indeterminate","primary"]]},template:function(t,n){t&1&&(vg(0,"app-status-bar"),Qi(1,"header"),aT(2,w,2,1,"p"),Qi(3,"sh-stepper",5)(4,"div",6),nC(5,0),$l(),Qi(6,"div",6),nC(7,1),$l(),Qi(8,"div",6),nC(9,2),$l(),Qi(10,"div",6),nC(11,3),$l(),Qi(12,"div",6),nC(13,4),$l()()(),aT(14,J,1,0,"sh-progress-bar",7)(15,X,2,0,"section")),t&2&&(CE(2),cT(n.isNew()?-1:2),CE(2),yg("routerLink",XC(7,G,n.isDraft()?"/backup-draft":"/backup",n.backupId())),CE(2),yg("routerLink",XC(10,$,n.isDraft()?"/backup-draft":"/backup",n.backupId())),CE(2),yg("routerLink",XC(13,U,n.isDraft()?"/backup-draft":"/backup",n.backupId())),CE(2),yg("routerLink",XC(16,K,n.isDraft()?"/backup-draft":"/backup",n.backupId())),CE(2),yg("routerLink",XC(19,F,n.isDraft()?"/backup-draft":"/backup",n.backupId())),CE(2),cT(n.finishedLoading()?15:14));},dependencies:[lr,_t,To,ee,w$1,d],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%}header[_ngcontent-%COMP%]{padding:1rem 1.5rem;border-bottom:1px solid var(--base-4)}header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:.5rem}header[_ngcontent-%COMP%] sh-stepper[_ngcontent-%COMP%]{width:100%}section[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;flex:1 0;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:auto}"]})};export{P as default};
1
+ import {w as w$1}from'./chunk-C9OqpwwE.js';import {e as ee}from'./chunk-K2iai6rC.js';import'./chunk-CIe9Bupz.js';import'./chunk-BmmYJhOf.js';import'./chunk-CvSsZZty.js';import {V as Ve}from'./chunk-nuwlP4Wz.js';import'./chunk-bt6lhYfG.js';import'./chunk-BZgAzrl9.js';import'./chunk-h6n5A491.js';import'./chunk-aCJqF9DH.js';import'./chunk-DXEgz1tV.js';import'./chunk-Dz5guW4b.js';import'./chunk-CyqqlRjO.js';import'./chunk-CX3Axjpk.js';import'./chunk-mA4J4_nC.js';import'./chunk-C3gUxHQM.js';import'./chunk-DidJB9ig.js';import {T,aw as W,a5 as g,ab as C,z as za,aE as jo,h as hw,Z as lr,_ as _t,a8 as To,i as Ig,Q as Qi,d as aT,n as nC,$ as $l,C as CE,g as cT,y as vg,aF as XC,aD as YC,s as jC,k as iC,aa as Ql}from'./main-3NL5M6JB.js';import'./chunk-B1c7h-_w.js';import {d}from'./chunk-DDWDcSq2.js';import'./chunk-DhiIZLrA.js';import'./chunk-B6c2NXNy.js';import'./chunk-MDqH8T3Z.js';import'./chunk-mflQLMHH.js';import'./chunk-CuJ_uEdr.js';import {L}from'./chunk-DGvC49aU.js';import'./chunk-D1pDZLJ9.js';var G=(i,e)=>[i,e,"general"],$=(i,e)=>[i,e,"destination"],U=(i,e)=>[i,e,"source-data"],K=(i,e)=>[i,e,"schedule"],F=(i,e)=>[i,e,"options"];function w(i,e){if(i&1&&(Qi(0,"p"),jC(1),$l()),i&2){let t=iC();CE(),Ql("Editing: ",t.backupName());}}function J(i,e){i&1&&Ig(0,"sh-progress-bar",7);}function X(i,e){i&1&&(Qi(0,"section"),Ig(1,"router-outlet"),$l());}var P=class i{#t=T(W);#e=T(Ve);#i=T(g);#n=T(C);isDraft=this.#e.isDraft;isNew=this.#e.isNew;backupId=this.#e.backupId;backupName=this.#e.backupName;finishedLoading=this.#e.finishedLoading;#a=L(this.#t.params);#o=L(this.#t.url);paramsChanged=za(()=>{let e=this.#a()?.id,t=!!this.#o()?.find(n=>n.path==="backup-draft");e!=this.#e.backupId()&&(this.#e.backupId.set(e),e!=="new"?this.getBackup(e,t):this.getDefaults());});getDefaults(){this.#n.getApiV1Backupdefaults().pipe(jo(1)).subscribe({next:e=>{let t=e.Backup;t.Settings=[...t.Settings],this.#e.mapGeneralToForm(t),this.#e.mapDestinationToForm(t),this.#e.mapSourceDataToForm(t),this.#e.mapScheduleToForm(e.Schedule),this.#e.mapOptionsToForms(t),this.#e.applicationOptions.set(e.ApplicationOptions),this.#e.backupDefaults.set(e),this.#e.finishedLoading.set(true);}});}getBackup(e,t=false){let n=a=>{this.#e.mapScheduleToForm(a.Schedule??null),a.Backup&&(this.#e.mapGeneralToForm(a.Backup),this.#e.mapDestinationToForm(a.Backup),this.#e.mapSourceDataToForm(a.Backup),this.#e.mapOptionsToForms(a.Backup),this.#e.storeMetadata(a.Backup,t)),this.#e.finishedLoading.set(true);};if(t){this.isDraft.set(t);let a=this.#i.draftBackups().find(d=>d.id===e);if(!a){alert("Backup not found");return}n(a.data);}else this.#n.getApiV1BackupById({id:e}).subscribe({next:n});}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=hw({type:i,selectors:[["app-backup"]],features:[YC([Ve])],decls:16,vars:22,consts:()=>{let e;e=$localize` General `;let t;t=$localize` Destination `;let n;n=$localize` Source Data `;let a;a=$localize` Schedule `;let d;return d=$localize` Options `,[e,t,n,a,d,[1,"primary"],["tabindex","-1","routerLinkActive","active",3,"routerLink"],[1,"indeterminate","primary"]]},template:function(t,n){t&1&&(Ig(0,"app-status-bar"),Qi(1,"header"),aT(2,w,2,1,"p"),Qi(3,"sh-stepper",5)(4,"div",6),nC(5,0),$l(),Qi(6,"div",6),nC(7,1),$l(),Qi(8,"div",6),nC(9,2),$l(),Qi(10,"div",6),nC(11,3),$l(),Qi(12,"div",6),nC(13,4),$l()()(),aT(14,J,1,0,"sh-progress-bar",7)(15,X,2,0,"section")),t&2&&(CE(2),cT(n.isNew()?-1:2),CE(2),vg("routerLink",XC(7,G,n.isDraft()?"/backup-draft":"/backup",n.backupId())),CE(2),vg("routerLink",XC(10,$,n.isDraft()?"/backup-draft":"/backup",n.backupId())),CE(2),vg("routerLink",XC(13,U,n.isDraft()?"/backup-draft":"/backup",n.backupId())),CE(2),vg("routerLink",XC(16,K,n.isDraft()?"/backup-draft":"/backup",n.backupId())),CE(2),vg("routerLink",XC(19,F,n.isDraft()?"/backup-draft":"/backup",n.backupId())),CE(2),cT(n.finishedLoading()?15:14));},dependencies:[lr,_t,To,ee,w$1,d],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%}header[_ngcontent-%COMP%]{padding:1rem 1.5rem;border-bottom:1px solid var(--base-4)}header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:.5rem}header[_ngcontent-%COMP%] sh-stepper[_ngcontent-%COMP%]{width:100%}section[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;flex:1 0;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:auto}"]})};export{P as default};
@@ -1,2 +1,2 @@
1
- import {e as ee}from'./chunk-CzJ3-6Pu.js';import'./chunk-oTpkLrqH.js';import'./chunk-dCFVYHva.js';import'./chunk--kVw-BwM.js';import {s as st,o as on,l as lt,Q as Qt,t as tn}from'./chunk-BC2-YuwH.js';import'./chunk-BFfFD-XE.js';import'./chunk-CmexLvf7.js';import'./chunk-Bgx4dtaL.js';import'./chunk-D7AP6g7S.js';import'./chunk-CQv4eyEK.js';import {h,G,V}from'./chunk-DH6iiZWc.js';import'./chunk-DuTbfCdT.js';import'./chunk-DKacf9Tj.js';import'./chunk-gaP3Sx_C.js';import {c}from'./chunk-CI8lsvKT.js';import'./chunk-C5p3bQwH.js';import {T,a5 as g,a6 as be$1,E as D1,G as Ge$1,N as Nt,z as za,at as h$1,h as hw,v,d as N,j as vg,Q as Qi,f as aT,$ as $l,C as CE,i as cT,o as oC,W as Wg,K as fC,n as nC,k as iC,l as vT,V as Vg,r as kd,O as Od,w as jC,L as Lg,F as Fg,au as jg,av as rC,Y as Yg,A as yg,a1 as dT,ap as lT,a2 as fT,p as cm,U as UC,s as CD,x as am,y as _D,J as om}from'./main-QLXVXD6E.js';import {f}from'./chunk-C3KPTLNN.js';import {d}from'./chunk-PONAC1Ya.js';import {F as Fe$1}from'./chunk-D3SUPUQT.js';import {B as Bn,Z as Ze,R as Rn,J as Jt}from'./chunk-DoYGADYB.js';import'./chunk-Crs56mDy.js';import'./chunk-Bcxzhjj8.js';import'./chunk-BYJ0fSUP.js';import'./chunk-D2aWqPl_.js';import'./chunk-D3d-eReU.js';function Ee(n,t){n&1&&(Qi(0,"div",13),vg(1,"sh-progress-bar",14),Qi(2,"div",15)(3,"h3"),nC(4,2),$l()()());}function Fe(n,t){n&1&&(Qi(0,"sh-divider"),nC(1,5),$l());}function Ie(n,t){if(n&1&&(Qi(0,"p",20),jC(1),$l()),n&2){let e=iC().$implicit;CE(),om(e.Description);}}function Ne(n,t){if(n&1&&(Qi(0,"p",20),jC(1),$l()),n&2){let e=iC().$implicit,o=iC(3);CE(),om(o.getSimplePath(e.BaseUrl));}}function ye(n,t){if(n&1){let e=vT();Qi(0,"button",25),Vg("click",function(i){kd(e);let r=iC().$implicit,f=iC(3);return Od(f.updateBackupsSync(r,i))}),jC(1," Update backups "),$l();}if(n&2){let e=iC(4);yg("disabled",e.isSaving());}}function he(n,t){if(n&1){let e=vT();Qi(0,"app-destination-list-item",18),Vg("click",function(){let i=kd(e).$implicit,r=iC(3);return Od(r.selectDestination(i))}),Qi(1,"h3",19),jC(2),$l(),aT(3,Ie,2,1,"p",20)(4,Ne,2,1,"p",20),Qi(5,"div",21),aT(6,ye,2,1,"button",22),Qi(7,"button",23),Vg("click",function(i){let r=kd(e).$implicit,f=iC(3);return Od(f.deleteDestination(r.ID,i))}),Qi(8,"sh-icon"),jC(9,"trash"),$l()(),Qi(10,"button",24),Lg(11,6),vg(12,"sh-icon"),Fg(),$l()()();}if(n&2){let e=t.$implicit,o=iC(3);yg("targetUrl",e.BaseUrl),CE(2),om(e.Name||e.BaseUrl),CE(),cT(e.Description?3:4),CE(3),cT(o.isOutOfSync(e)?6:-1);}}function Oe(n,t){if(n&1){let e=vT();Qi(0,"sh-card",16),Vg("click",function(){kd(e);let i=iC(2);return Od(i.selectDestination("new"))})("keydown.enter",function(i){return i.target.click()})("keydown.space",function(i){return i.target.click()}),Qi(1,"sh-icon"),jC(2,"plus-circle"),$l(),Qi(3,"div",15)(4,"h3"),nC(5,3),$l(),Qi(6,"p"),nC(7,4),$l()()(),aT(8,Fe,2,0,"sh-divider"),dT(9,he,13,4,"app-destination-list-item",17,lT);}if(n&2){let e=iC(2);CE(8),cT(e.destinations().length>0?8:-1),CE(),fT(e.destinations());}}function xe(n,t){if(n&1&&(Qi(0,"h2"),nC(1,1),$l(),aT(2,Ee,5,0,"div",13)(3,Oe,11,1)),n&2){let e=iC();CE(2),cT(e.isLoading()?2:3);}}function Be(n,t){n&1&&nC(0,10,1);}function Pe(n,t){n&1&&nC(0,10,2);}function Ae(n,t){n&1&&nC(0,10,3);}function Me(n,t){if(n&1){let e=vT();Qi(0,"button",37),Vg("click",function(){kd(e);let i=iC(2);return Od(i.testDestination())}),Lg(1,10),aT(2,Be,1,0)(3,Pe,1,0)(4,Ae,1,0),Fg(),$l();}if(n&2){let e=iC(2);yg("disabled",e.testSignal()=="testing"),CE(2),cT(e.testSignal()=="testing"?2:e.testResponse()?.action==="success"?3:4);}}function be(n,t){if(n&1){let e=vT();Qi(0,"div",32)(1,"sh-form-field")(2,"label"),nC(3,11),$l(),Qi(4,"input",38),cm("ngModelChange",function(i){kd(e);let r=iC(2);return UC(r.editName,i)||(r.editName=i),Od(i)}),$l(),CD(),$l()();}if(n&2){let e=iC(2);CE(4),am("ngModel",e.editName),_D();}}function $e(n,t){if(n&1){let e=vT();Qi(0,"app-test-url",39,0),cm("targetUrlChange",function(i){kd(e);let r=iC(2);return UC(r.editBaseUrl,i)||(r.editBaseUrl=i),Od(i)})("testSignalChange",function(i){kd(e);let r=iC(2);return UC(r.testSignal,i)||(r.testSignal=i),Od(i)}),$l();}if(n&2){let e=iC(2);am("targetUrl",e.editBaseUrl)("testSignal",e.testSignal),yg("connectionStringId",e.selectedDestinationId())("backupId",null)("sourcePrefix",null)("suppressErrorDialogs",true)("askToCreate",true)("testExpectation","any")("readOnlyTest",false)("moduleType","Backend");}}function ke(n,t){if(n&1){let e=vT();Qi(0,"app-destination-list-item",40)(1,"button",41),Vg("click",function(){kd(e);let i=iC(2);return Od(i.removeDestination())}),nC(2,12),$l()(),Qi(3,"app-single-destination",42),cm("targetUrlChange",function(i){kd(e);let r=iC(2);return UC(r.editBaseUrl,i)||(r.editBaseUrl=i),Od(i)}),$l();}if(n&2){let e=iC(2);yg("targetUrl",e.editBaseUrl()),CE(3),am("targetUrl",e.editBaseUrl);}}function Re(n,t){if(n&1){let e=vT();Qi(0,"app-destination-list",43),Vg("setDestination",function(i){kd(e);let r=iC(2);return Od(r.setDestination(i))}),$l();}}function Le(n,t){n&1&&nC(0,9,1);}function we(n,t){n&1&&nC(0,9,2);}function Ue(n,t){n&1&&nC(0,9,3);}function ve(n,t){n&1&&nC(0,9,4);}function Ge(n,t){if(n&1){let e=vT();Qi(0,"header",26)(1,"button",23),Vg("click",function(){kd(e);let i=iC();return Od(i.cancelEdit())}),Qi(2,"sh-icon"),jC(3,"arrow-left"),$l()()(),Qi(4,"div",27)(5,"sh-card",28)(6,"header",29)(7,"h3"),nC(8,7),$l(),Qi(9,"div",30),aT(10,Me,5,2,"button",31),$l()(),aT(11,be,5,1,"div",32),aT(12,$e,2,10,"app-test-url",33),aT(13,ke,4,2)(14,Re,1,0,"app-destination-list"),$l(),Qi(15,"div",34)(16,"button",35),Vg("click",function(){kd(e);let i=iC();return Od(i.cancelEdit())}),nC(17,8),$l(),Qi(18,"button",36),Vg("click",function(){kd(e);let i=iC();return Od(i.testResponse()?.action==="success"||i.testResponse()?.action==="missing-folder"||!i.isUrlChanged()?i.save():i.testDestination())}),Lg(19,9),aT(20,Le,1,0)(21,we,1,0)(22,Ue,1,0)(23,ve,1,0),Fg(),$l()()();}if(n&2){let e=iC();CE(8),jg(e.selectedDestination()==="new"?"New Destination":"Edit Destination"),rC(8),CE(2),cT(e.editBaseUrl()?10:-1),CE(),cT(e.selectedDestination()!=="new"?11:-1),CE(),cT(e.editBaseUrl()?12:-1),CE(),cT(e.editBaseUrl()?13:14),CE(5),Yg("primary",e.testResponse()?.action==="success"||!e.isUrlChanged())("warn",e.isUrlChanged()&&e.testSignal()===null||e.testSignal()==="testing"||e.testResponse()?.action==="missing-folder")("error",e.testResponse()&&e.testResponse()?.action!=="success"&&e.testResponse()?.action!=="missing-folder"),yg("disabled",!e.editBaseUrl()||e.isSaving()||e.testSignal()==="testing"),CE(2),cT(e.isSaving()?20:e.testSignal()==="testing"?21:e.testResponse()?.action==="success"||e.testResponse()?.action==="missing-folder"||!e.isUrlChanged()?22:23);}}var R=class n{#e=T(st);#t=T(g);#n=T(be$1);getSimplePath=h;backups=this.#t.backups;constructor(){this.#t.getBackups();}isSaving=this.#e.isSaving;destinations=this.#e.destinations;isLoading=this.#e.resourceDestinations.isLoading;testUrl=D1(on);selectedDestination=Ge$1(null);selectedDestinationId=Nt(()=>this.selectedDestination()!=="new"?this.selectedDestination().ID:null);editName=Ge$1(null);editDescription=Ge$1(null);editBaseUrl=Ge$1(null);initialBaseUrl=Ge$1(null);isUrlChanged=Nt(()=>{let t=this.editBaseUrl(),e=this.initialBaseUrl();return this.selectedDestination()==="new"?true:t!==e});testSignal=Ge$1(null);testResponse=Nt(()=>{let t=this.testSignal();return t&&typeof t!="string"?t:null});getOutOfSyncBackupIds(t){if(!t.Backups)return [];let e=new Map(this.backups().map(o=>[o.Backup?.ID,o.Backup]));return t.Backups.filter(o=>{let i=e.get(o.ID);return i&&i.TargetURL!==t.BaseUrl}).map(o=>o.ID).filter(o=>!!o)}isOutOfSync(t){return this.getOutOfSyncBackupIds(t).length>0}#i=za(()=>{this.editBaseUrl(),this.testSignal.set(null);});selectDestination(t){this.selectedDestination.set(t),this.testSignal.set(null),t==="new"?(this.editName.set(null),this.editDescription.set(null),this.editBaseUrl.set(null),this.initialBaseUrl.set(null)):(this.editName.set(t.Name),this.editDescription.set(t.Description),this.editBaseUrl.set(t.BaseUrl),this.initialBaseUrl.set(t.BaseUrl),this.#e.getById(t.ID).subscribe(e=>{e.Data&&(this.editName.set(e.Data.Name),this.editDescription.set(e.Data.Description),this.editBaseUrl.set(e.Data.BaseUrl??null),this.initialBaseUrl.set(e.Data.BaseUrl??null));}));}cancelEdit(){this.selectedDestination.set(null);}setDestination(t){let e=G(t??"");if(e){if(e.mapper.default){let o=e.mapper.default("");this.editBaseUrl.set(o);return}this.editBaseUrl.set(`${t}://`);}}removeDestination(){this.editBaseUrl.set(null);}async testDestination(){(await this.testUrl()?.testDestination(false))?.action==="missing-folder"&&this.promptCreateFolder();}promptCreateFolder(){this.#n.open(h$1,{data:{title:$localize`Folder missing`,message:$localize`The specified folder does not exist. Would you like to create it now?`,confirmText:$localize`Create Folder`,cancelText:$localize`Dismiss`},closed:t=>{t&&this.testUrl()?.createFolder();}});}save(){let t=this.selectedDestination();t&&this.performSave(t);}performSave(t){let e=this.editName(),o=this.editDescription(),i=this.editBaseUrl();if(t==="new"){let I=V(i??"")?.displayName??"Destination",y=this.destinations().filter(F=>F.Name?.startsWith(I)).length;e=`${I} #${y+1}`,o=null;}let r={Name:e,Description:o,BaseUrl:i};this.#e.save(t,r).subscribe(()=>{this.selectedDestination.set(null),this.#e.reload(),this.#t.getBackups(true);});}updateBackupsSync(t,e){e.stopPropagation();let o=this.getOutOfSyncBackupIds(t);this.#n.open(h$1,{data:{title:$localize`Update backups`,message:$localize`Are you sure you want to update ${o.length} backup(s) to use the current connection string?`,confirmText:$localize`Update`,cancelText:$localize`Cancel`},closed:i=>{i&&this.#e.updateBackups(t.ID,o).subscribe(()=>{this.#e.reload(),this.#t.getBackups(true);});}});}deleteDestination(t,e){e.stopPropagation(),this.#n.open(h$1,{data:{title:$localize`Delete destination`,message:$localize`Are you sure you want to delete this destination?`,confirmText:$localize`Delete`,confirmVariant:"error",cancelText:$localize`Cancel`},closed:o=>{o&&this.#e.delete(t).subscribe(()=>{this.#e.reload();});}});}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=hw({type:n,selectors:[["app-destinations"]],viewQuery:function(e,o){e&1&&Wg(o.testUrl,on,5),e&2&&fC();},decls:4,vars:1,consts:()=>{let t;t=$localize`Destinations`;let e;e=$localize`Loading destinations...`;let o;o=$localize`Add new destination`;let i;i=$localize`Configure a new storage location.`;let r;r=$localize`Or manage your saved destinations`;let f;f=$localize` Manage ${"\uFFFD#12\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SH_ICON:`;let I;I=$localize`${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let y;y=$localize`Cancel`;let F;F=$localize`${"\uFFFD*20:1\uFFFD"}:START_BLOCK_IF: Saving... ${"\uFFFD/*20:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*21:2\uFFFD"}:START_BLOCK_ELSE_IF: Testing... ${"[\uFFFD/*21:2\uFFFD|\uFFFD/*22:3\uFFFD]"}:CLOSE_BLOCK_ELSE_IF:${"\uFFFD*22:3\uFFFD"}:START_BLOCK_ELSE_IF_1: Save Destination ${"[\uFFFD/*21:2\uFFFD|\uFFFD/*22:3\uFFFD]"}:CLOSE_BLOCK_ELSE_IF:${"\uFFFD*23:4\uFFFD"}:START_BLOCK_ELSE: Test & Save ${"\uFFFD/*23:4\uFFFD"}:CLOSE_BLOCK_ELSE:`,F=oC(F);let L;L=$localize`${"\uFFFD*2:1\uFFFD"}:START_BLOCK_IF: Testing... ${"\uFFFD/*2:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*3:2\uFFFD"}:START_BLOCK_ELSE_IF: Retry test ${"\uFFFD/*3:2\uFFFD"}:CLOSE_BLOCK_ELSE_IF:${"\uFFFD*4:3\uFFFD"}:START_BLOCK_ELSE: Test destination ${"\uFFFD/*4:3\uFFFD"}:CLOSE_BLOCK_ELSE:`;let w;w=$localize`Name`;let U;U=$localize`Name`;let v;return v=$localize`Change`,[["testUrl",""],t,e,o,i,r,f,I,y,F,L,U,v,[1,"loading-list"],[1,"indeterminate","primary"],[1,"text"],["tabindex","0",1,"type-a","actionable","add-new",3,"click","keydown.enter","keydown.space"],["variant","type-a",1,"actionable",3,"targetUrl"],["variant","type-a",1,"actionable",3,"click","targetUrl"],["displayName",""],["description",""],[1,"manage-actions"],["shButton","","type","button",1,"small","raised","primary",3,"disabled"],["shButton","","iconOnly","","type","button",1,"ghost",3,"click"],["shButton","","type","button",1,"manage-btn"],["shButton","","type","button",1,"small","raised","primary",3,"click","disabled"],[1,"edit-header"],[1,"edit-form"],[1,"config-section","type-c"],[1,"dest-config-header"],[1,"actions"],["shButton","","type","button",1,"small","ghost",3,"disabled"],[1,"form-row"],[3,"targetUrl","testSignal","connectionStringId","backupId","sourcePrefix","suppressErrorDialogs","askToCreate","testExpectation","readOnlyTest","moduleType"],[1,"form-footer"],["shButton","","type","button",3,"click"],["shButton","","type","button",1,"raised",3,"click","disabled"],["shButton","","type","button",1,"small","ghost",3,"click","disabled"],["placeholder",w,3,"ngModelChange","ngModel"],[3,"targetUrlChange","testSignalChange","targetUrl","testSignal","connectionStringId","backupId","sourcePrefix","suppressErrorDialogs","askToCreate","testExpectation","readOnlyTest","moduleType"],[1,"selected-backend",3,"targetUrl"],["shButton","","type","button",1,"ghost",3,"click"],[3,"targetUrlChange","targetUrl"],[3,"setDestination"]]},template:function(e,o){e&1&&(vg(0,"app-status-bar"),Qi(1,"section"),aT(2,xe,4,1)(3,Ge,24,13),$l()),e&2&&(CE(2),cT(o.selectedDestination()===null?2:3));},dependencies:[lt,Qt,tn,ee,d,v,N,f,Fe$1,c,on,Bn,Ze,Rn,Jt],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{max-width:43.75rem;margin:0 auto;padding:2rem 1rem;display:flex;flex-direction:column;gap:1rem}h2[_ngcontent-%COMP%]{font:var(--title-30);text-align:center;padding:2rem}h3[_ngcontent-%COMP%]{font:var(--paragraph-10)}.actionable[_ngcontent-%COMP%]{cursor:pointer}.actionable[_ngcontent-%COMP%]:after{transition:inset .1s linear}.actionable[_ngcontent-%COMP%]:hover{--card-shp: 0}.custom-info[_ngcontent-%COMP%]{flex:1}.custom-info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--body-10);color:var(--base-7);margin:.25rem 0 0}.manage-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem;align-items:center}@media(max-width:600px){.manage-actions[_ngcontent-%COMP%] .manage-btn[_ngcontent-%COMP%]{display:none}}.add-new[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1.5rem;padding:1.5rem;background:var(--base-1);color:var(--primary-8)}.add-new[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{font-size:2.5rem;opacity:.8}.edit-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;margin-bottom:.5rem}.edit-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.edit-form[_ngcontent-%COMP%] .form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr;gap:1rem;margin-bottom:1.5rem}@media(max-width:600px){.edit-form[_ngcontent-%COMP%] .form-row[_ngcontent-%COMP%]{grid-template-columns:1fr}}.edit-form[_ngcontent-%COMP%] .config-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;padding:1.5rem}.edit-form[_ngcontent-%COMP%] .config-section[_ngcontent-%COMP%] .dest-config-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.edit-form[_ngcontent-%COMP%] .form-footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:1rem;margin-top:1rem;padding-top:1.5rem;border-top:1px solid var(--base-3)}.selected-backend[_ngcontent-%COMP%]{margin-bottom:.5rem}.loading-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;align-items:center;padding:4rem}.loading-list[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{text-align:center}"]})};
1
+ import {e as ee}from'./chunk-K2iai6rC.js';import'./chunk-CIe9Bupz.js';import'./chunk-BmmYJhOf.js';import'./chunk-CvSsZZty.js';import {u as ut,_ as _n,p as pt,o as on,s as sn}from'./chunk-nuwlP4Wz.js';import'./chunk-bt6lhYfG.js';import'./chunk-BZgAzrl9.js';import'./chunk-h6n5A491.js';import'./chunk-aCJqF9DH.js';import'./chunk-DXEgz1tV.js';import {h,G,V}from'./chunk-Dz5guW4b.js';import'./chunk-CyqqlRjO.js';import'./chunk-CX3Axjpk.js';import'./chunk-mA4J4_nC.js';import {c}from'./chunk-C3gUxHQM.js';import'./chunk-DidJB9ig.js';import {T,a5 as g,a6 as be$1,D as w1,G as Ge$1,N as Nt,z as za,at as h$1,h as hw,v,c as N,i as Ig,Q as Qi,d as aT,$ as $l,C as CE,g as cT,o as oC,M as qg,R as fC,n as nC,k as iC,l as vT,H as Hg,O as Od,P as Pd,s as jC,F as Fg,j as jg,au as Vg,av as rC,L as Kg,y as vg,a1 as dT,ap as lT,a2 as fT,p as lm,U as UC,r as CD,w as cm,x as _D,K as im}from'./main-3NL5M6JB.js';import {f}from'./chunk-B1c7h-_w.js';import {d}from'./chunk-DDWDcSq2.js';import {F as Fe$1}from'./chunk-DhiIZLrA.js';import {B as Bn,Z as Ze,R as Rn,J as Jt}from'./chunk-B6c2NXNy.js';import'./chunk-MDqH8T3Z.js';import'./chunk-mflQLMHH.js';import'./chunk-CuJ_uEdr.js';import'./chunk-D1pDZLJ9.js';import'./chunk-DGvC49aU.js';function Ee(n,t){n&1&&(Qi(0,"div",13),Ig(1,"sh-progress-bar",14),Qi(2,"div",15)(3,"h3"),nC(4,2),$l()()());}function Fe(n,t){n&1&&(Qi(0,"sh-divider"),nC(1,5),$l());}function Ie(n,t){if(n&1&&(Qi(0,"p",20),jC(1),$l()),n&2){let e=iC().$implicit;CE(),im(e.Description);}}function Ne(n,t){if(n&1&&(Qi(0,"p",20),jC(1),$l()),n&2){let e=iC().$implicit,o=iC(3);CE(),im(o.getSimplePath(e.BaseUrl));}}function ye(n,t){if(n&1){let e=vT();Qi(0,"button",25),Hg("click",function(i){Od(e);let r=iC().$implicit,f=iC(3);return Pd(f.updateBackupsSync(r,i))}),jC(1," Update backups "),$l();}if(n&2){let e=iC(4);vg("disabled",e.isSaving());}}function he(n,t){if(n&1){let e=vT();Qi(0,"app-destination-list-item",18),Hg("click",function(){let i=Od(e).$implicit,r=iC(3);return Pd(r.selectDestination(i))}),Qi(1,"h3",19),jC(2),$l(),aT(3,Ie,2,1,"p",20)(4,Ne,2,1,"p",20),Qi(5,"div",21),aT(6,ye,2,1,"button",22),Qi(7,"button",23),Hg("click",function(i){let r=Od(e).$implicit,f=iC(3);return Pd(f.deleteDestination(r.ID,i))}),Qi(8,"sh-icon"),jC(9,"trash"),$l()(),Qi(10,"button",24),Fg(11,6),Ig(12,"sh-icon"),jg(),$l()()();}if(n&2){let e=t.$implicit,o=iC(3);vg("targetUrl",e.BaseUrl),CE(2),im(e.Name||e.BaseUrl),CE(),cT(e.Description?3:4),CE(3),cT(o.isOutOfSync(e)?6:-1);}}function Oe(n,t){if(n&1){let e=vT();Qi(0,"sh-card",16),Hg("click",function(){Od(e);let i=iC(2);return Pd(i.selectDestination("new"))})("keydown.enter",function(i){return i.target.click()})("keydown.space",function(i){return i.target.click()}),Qi(1,"sh-icon"),jC(2,"plus-circle"),$l(),Qi(3,"div",15)(4,"h3"),nC(5,3),$l(),Qi(6,"p"),nC(7,4),$l()()(),aT(8,Fe,2,0,"sh-divider"),dT(9,he,13,4,"app-destination-list-item",17,lT);}if(n&2){let e=iC(2);CE(8),cT(e.destinations().length>0?8:-1),CE(),fT(e.destinations());}}function xe(n,t){if(n&1&&(Qi(0,"h2"),nC(1,1),$l(),aT(2,Ee,5,0,"div",13)(3,Oe,11,1)),n&2){let e=iC();CE(2),cT(e.isLoading()?2:3);}}function Be(n,t){n&1&&nC(0,10,1);}function Pe(n,t){n&1&&nC(0,10,2);}function Ae(n,t){n&1&&nC(0,10,3);}function Me(n,t){if(n&1){let e=vT();Qi(0,"button",37),Hg("click",function(){Od(e);let i=iC(2);return Pd(i.testDestination())}),Fg(1,10),aT(2,Be,1,0)(3,Pe,1,0)(4,Ae,1,0),jg(),$l();}if(n&2){let e=iC(2);vg("disabled",e.testSignal()=="testing"),CE(2),cT(e.testSignal()=="testing"?2:e.testResponse()?.action==="success"?3:4);}}function be(n,t){if(n&1){let e=vT();Qi(0,"div",32)(1,"sh-form-field")(2,"label"),nC(3,11),$l(),Qi(4,"input",38),lm("ngModelChange",function(i){Od(e);let r=iC(2);return UC(r.editName,i)||(r.editName=i),Pd(i)}),$l(),CD(),$l()();}if(n&2){let e=iC(2);CE(4),cm("ngModel",e.editName),_D();}}function $e(n,t){if(n&1){let e=vT();Qi(0,"app-test-url",39,0),lm("targetUrlChange",function(i){Od(e);let r=iC(2);return UC(r.editBaseUrl,i)||(r.editBaseUrl=i),Pd(i)})("testSignalChange",function(i){Od(e);let r=iC(2);return UC(r.testSignal,i)||(r.testSignal=i),Pd(i)}),$l();}if(n&2){let e=iC(2);cm("targetUrl",e.editBaseUrl)("testSignal",e.testSignal),vg("connectionStringId",e.selectedDestinationId())("backupId",null)("sourcePrefix",null)("suppressErrorDialogs",true)("askToCreate",true)("testExpectation","any")("readOnlyTest",false)("moduleType","Backend");}}function ke(n,t){if(n&1){let e=vT();Qi(0,"app-destination-list-item",40)(1,"button",41),Hg("click",function(){Od(e);let i=iC(2);return Pd(i.removeDestination())}),nC(2,12),$l()(),Qi(3,"app-single-destination",42),lm("targetUrlChange",function(i){Od(e);let r=iC(2);return UC(r.editBaseUrl,i)||(r.editBaseUrl=i),Pd(i)}),$l();}if(n&2){let e=iC(2);vg("targetUrl",e.editBaseUrl()),CE(3),cm("targetUrl",e.editBaseUrl);}}function Re(n,t){if(n&1){let e=vT();Qi(0,"app-destination-list",43),Hg("setDestination",function(i){Od(e);let r=iC(2);return Pd(r.setDestination(i))}),$l();}}function Le(n,t){n&1&&nC(0,9,1);}function we(n,t){n&1&&nC(0,9,2);}function Ue(n,t){n&1&&nC(0,9,3);}function ve(n,t){n&1&&nC(0,9,4);}function Ge(n,t){if(n&1){let e=vT();Qi(0,"header",26)(1,"button",23),Hg("click",function(){Od(e);let i=iC();return Pd(i.cancelEdit())}),Qi(2,"sh-icon"),jC(3,"arrow-left"),$l()()(),Qi(4,"div",27)(5,"sh-card",28)(6,"header",29)(7,"h3"),nC(8,7),$l(),Qi(9,"div",30),aT(10,Me,5,2,"button",31),$l()(),aT(11,be,5,1,"div",32),aT(12,$e,2,10,"app-test-url",33),aT(13,ke,4,2)(14,Re,1,0,"app-destination-list"),$l(),Qi(15,"div",34)(16,"button",35),Hg("click",function(){Od(e);let i=iC();return Pd(i.cancelEdit())}),nC(17,8),$l(),Qi(18,"button",36),Hg("click",function(){Od(e);let i=iC();return Pd(i.testResponse()?.action==="success"||i.testResponse()?.action==="missing-folder"||!i.isUrlChanged()?i.save():i.testDestination())}),Fg(19,9),aT(20,Le,1,0)(21,we,1,0)(22,Ue,1,0)(23,ve,1,0),jg(),$l()()();}if(n&2){let e=iC();CE(8),Vg(e.selectedDestination()==="new"?"New Destination":"Edit Destination"),rC(8),CE(2),cT(e.editBaseUrl()?10:-1),CE(),cT(e.selectedDestination()!=="new"?11:-1),CE(),cT(e.editBaseUrl()?12:-1),CE(),cT(e.editBaseUrl()?13:14),CE(5),Kg("primary",e.testResponse()?.action==="success"||!e.isUrlChanged())("warn",e.isUrlChanged()&&e.testSignal()===null||e.testSignal()==="testing"||e.testResponse()?.action==="missing-folder")("error",e.testResponse()&&e.testResponse()?.action!=="success"&&e.testResponse()?.action!=="missing-folder"),vg("disabled",!e.editBaseUrl()||e.isSaving()||e.testSignal()==="testing"),CE(2),cT(e.isSaving()?20:e.testSignal()==="testing"?21:e.testResponse()?.action==="success"||e.testResponse()?.action==="missing-folder"||!e.isUrlChanged()?22:23);}}var R=class n{#e=T(ut);#t=T(g);#n=T(be$1);getSimplePath=h;backups=this.#t.backups;constructor(){this.#t.getBackups();}isSaving=this.#e.isSaving;destinations=this.#e.destinations;isLoading=this.#e.resourceDestinations.isLoading;testUrl=w1(_n);selectedDestination=Ge$1(null);selectedDestinationId=Nt(()=>this.selectedDestination()!=="new"?this.selectedDestination().ID:null);editName=Ge$1(null);editDescription=Ge$1(null);editBaseUrl=Ge$1(null);initialBaseUrl=Ge$1(null);isUrlChanged=Nt(()=>{let t=this.editBaseUrl(),e=this.initialBaseUrl();return this.selectedDestination()==="new"?true:t!==e});testSignal=Ge$1(null);testResponse=Nt(()=>{let t=this.testSignal();return t&&typeof t!="string"?t:null});getOutOfSyncBackupIds(t){if(!t.Backups)return [];let e=new Map(this.backups().map(o=>[o.Backup?.ID,o.Backup]));return t.Backups.filter(o=>{let i=e.get(o.ID);return i&&i.TargetURL!==t.BaseUrl}).map(o=>o.ID).filter(o=>!!o)}isOutOfSync(t){return this.getOutOfSyncBackupIds(t).length>0}#i=za(()=>{this.editBaseUrl(),this.testSignal.set(null);});selectDestination(t){this.selectedDestination.set(t),this.testSignal.set(null),t==="new"?(this.editName.set(null),this.editDescription.set(null),this.editBaseUrl.set(null),this.initialBaseUrl.set(null)):(this.editName.set(t.Name),this.editDescription.set(t.Description),this.editBaseUrl.set(t.BaseUrl),this.initialBaseUrl.set(t.BaseUrl),this.#e.getById(t.ID).subscribe(e=>{e.Data&&(this.editName.set(e.Data.Name),this.editDescription.set(e.Data.Description),this.editBaseUrl.set(e.Data.BaseUrl??null),this.initialBaseUrl.set(e.Data.BaseUrl??null));}));}cancelEdit(){this.selectedDestination.set(null);}setDestination(t){let e=G(t??"");if(e){if(e.mapper.default){let o=e.mapper.default("");this.editBaseUrl.set(o);return}this.editBaseUrl.set(`${t}://`);}}removeDestination(){this.editBaseUrl.set(null);}async testDestination(){(await this.testUrl()?.testDestination(false))?.action==="missing-folder"&&this.promptCreateFolder();}promptCreateFolder(){this.#n.open(h$1,{data:{title:$localize`Folder missing`,message:$localize`The specified folder does not exist. Would you like to create it now?`,confirmText:$localize`Create Folder`,cancelText:$localize`Dismiss`},closed:t=>{t&&this.testUrl()?.createFolder();}});}save(){let t=this.selectedDestination();t&&this.performSave(t);}performSave(t){let e=this.editName(),o=this.editDescription(),i=this.editBaseUrl();if(t==="new"){let I=V(i??"")?.displayName??"Destination",y=this.destinations().filter(F=>F.Name?.startsWith(I)).length;e=`${I} #${y+1}`,o=null;}let r={Name:e,Description:o,BaseUrl:i};this.#e.save(t,r).subscribe(()=>{this.selectedDestination.set(null),this.#e.reload(),this.#t.getBackups(true);});}updateBackupsSync(t,e){e.stopPropagation();let o=this.getOutOfSyncBackupIds(t);this.#n.open(h$1,{data:{title:$localize`Update backups`,message:$localize`Are you sure you want to update ${o.length} backup(s) to use the current connection string?`,confirmText:$localize`Update`,cancelText:$localize`Cancel`},closed:i=>{i&&this.#e.updateBackups(t.ID,o).subscribe(()=>{this.#e.reload(),this.#t.getBackups(true);});}});}deleteDestination(t,e){e.stopPropagation(),this.#n.open(h$1,{data:{title:$localize`Delete destination`,message:$localize`Are you sure you want to delete this destination?`,confirmText:$localize`Delete`,confirmVariant:"error",cancelText:$localize`Cancel`},closed:o=>{o&&this.#e.delete(t).subscribe(()=>{this.#e.reload();});}});}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=hw({type:n,selectors:[["app-destinations"]],viewQuery:function(e,o){e&1&&qg(o.testUrl,_n,5),e&2&&fC();},decls:4,vars:1,consts:()=>{let t;t=$localize`Destinations`;let e;e=$localize`Loading destinations...`;let o;o=$localize`Add new destination`;let i;i=$localize`Configure a new storage location.`;let r;r=$localize`Or manage your saved destinations`;let f;f=$localize` Manage ${"\uFFFD#12\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SH_ICON:`;let I;I=$localize`${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let y;y=$localize`Cancel`;let F;F=$localize`${"\uFFFD*20:1\uFFFD"}:START_BLOCK_IF: Saving... ${"\uFFFD/*20:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*21:2\uFFFD"}:START_BLOCK_ELSE_IF: Testing... ${"[\uFFFD/*21:2\uFFFD|\uFFFD/*22:3\uFFFD]"}:CLOSE_BLOCK_ELSE_IF:${"\uFFFD*22:3\uFFFD"}:START_BLOCK_ELSE_IF_1: Save Destination ${"[\uFFFD/*21:2\uFFFD|\uFFFD/*22:3\uFFFD]"}:CLOSE_BLOCK_ELSE_IF:${"\uFFFD*23:4\uFFFD"}:START_BLOCK_ELSE: Test & Save ${"\uFFFD/*23:4\uFFFD"}:CLOSE_BLOCK_ELSE:`,F=oC(F);let L;L=$localize`${"\uFFFD*2:1\uFFFD"}:START_BLOCK_IF: Testing... ${"\uFFFD/*2:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*3:2\uFFFD"}:START_BLOCK_ELSE_IF: Retry test ${"\uFFFD/*3:2\uFFFD"}:CLOSE_BLOCK_ELSE_IF:${"\uFFFD*4:3\uFFFD"}:START_BLOCK_ELSE: Test destination ${"\uFFFD/*4:3\uFFFD"}:CLOSE_BLOCK_ELSE:`;let w;w=$localize`Name`;let U;U=$localize`Name`;let v;return v=$localize`Change`,[["testUrl",""],t,e,o,i,r,f,I,y,F,L,U,v,[1,"loading-list"],[1,"indeterminate","primary"],[1,"text"],["tabindex","0",1,"type-a","actionable","add-new",3,"click","keydown.enter","keydown.space"],["variant","type-a",1,"actionable",3,"targetUrl"],["variant","type-a",1,"actionable",3,"click","targetUrl"],["displayName",""],["description",""],[1,"manage-actions"],["shButton","","type","button",1,"small","raised","primary",3,"disabled"],["shButton","","iconOnly","","type","button",1,"ghost",3,"click"],["shButton","","type","button",1,"manage-btn"],["shButton","","type","button",1,"small","raised","primary",3,"click","disabled"],[1,"edit-header"],[1,"edit-form"],[1,"config-section","type-c"],[1,"dest-config-header"],[1,"actions"],["shButton","","type","button",1,"small","ghost",3,"disabled"],[1,"form-row"],[3,"targetUrl","testSignal","connectionStringId","backupId","sourcePrefix","suppressErrorDialogs","askToCreate","testExpectation","readOnlyTest","moduleType"],[1,"form-footer"],["shButton","","type","button",3,"click"],["shButton","","type","button",1,"raised",3,"click","disabled"],["shButton","","type","button",1,"small","ghost",3,"click","disabled"],["placeholder",w,3,"ngModelChange","ngModel"],[3,"targetUrlChange","testSignalChange","targetUrl","testSignal","connectionStringId","backupId","sourcePrefix","suppressErrorDialogs","askToCreate","testExpectation","readOnlyTest","moduleType"],[1,"selected-backend",3,"targetUrl"],["shButton","","type","button",1,"ghost",3,"click"],[3,"targetUrlChange","targetUrl"],[3,"setDestination"]]},template:function(e,o){e&1&&(Ig(0,"app-status-bar"),Qi(1,"section"),aT(2,xe,4,1)(3,Ge,24,13),$l()),e&2&&(CE(2),cT(o.selectedDestination()===null?2:3));},dependencies:[pt,on,sn,ee,d,v,N,f,Fe$1,c,_n,Bn,Ze,Rn,Jt],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{max-width:43.75rem;margin:0 auto;padding:2rem 1rem;display:flex;flex-direction:column;gap:1rem}h2[_ngcontent-%COMP%]{font:var(--title-30);text-align:center;padding:2rem}h3[_ngcontent-%COMP%]{font:var(--paragraph-10)}.actionable[_ngcontent-%COMP%]{cursor:pointer}.actionable[_ngcontent-%COMP%]:after{transition:inset .1s linear}.actionable[_ngcontent-%COMP%]:hover{--card-shp: 0}.custom-info[_ngcontent-%COMP%]{flex:1}.custom-info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--body-10);color:var(--base-7);margin:.25rem 0 0}.manage-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem;align-items:center}@media(max-width:600px){.manage-actions[_ngcontent-%COMP%] .manage-btn[_ngcontent-%COMP%]{display:none}}.add-new[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1.5rem;padding:1.5rem;background:var(--base-1);color:var(--primary-8)}.add-new[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{font-size:2.5rem;opacity:.8}.edit-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;margin-bottom:.5rem}.edit-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.edit-form[_ngcontent-%COMP%] .form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr;gap:1rem;margin-bottom:1.5rem}@media(max-width:600px){.edit-form[_ngcontent-%COMP%] .form-row[_ngcontent-%COMP%]{grid-template-columns:1fr}}.edit-form[_ngcontent-%COMP%] .config-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;padding:1.5rem}.edit-form[_ngcontent-%COMP%] .config-section[_ngcontent-%COMP%] .dest-config-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.edit-form[_ngcontent-%COMP%] .form-footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:1rem;margin-top:1rem;padding-top:1.5rem;border-top:1px solid var(--base-3)}.selected-backend[_ngcontent-%COMP%]{margin-bottom:.5rem}.loading-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;align-items:center;padding:4rem}.loading-list[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{text-align:center}"]})};
2
2
  export{R as default};
@@ -0,0 +1 @@
1
+ var t=[{path:"",redirectTo:"destination",pathMatch:"full"},{path:"destination",loadComponent:()=>import('./chunk-BaSm1lsB.js')},{path:"encryption",loadComponent:()=>import('./chunk-ksSA-rDF.js').then(function(n){return n.c})},{path:"select-config",loadComponent:()=>import('./chunk-ChUm8bnG.js')}],o=t;export{o as default};