@duplicati/ngclient 0.0.228 → 0.0.230

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. package/assets/sh.woff2 +0 -0
  2. package/{chunk-5zEiKCqR.js → chunk-3RXp81pP.js} +1 -1
  3. package/chunk-B0RBkC1E.js +1 -0
  4. package/{chunk-CdZVal1F.js → chunk-B2TXzbpy.js} +1 -1
  5. package/{chunk-N7vpDAsp.js → chunk-B728v9oc.js} +1 -1
  6. package/{chunk-BqjWEFHw.js → chunk-BB1pOOUx.js} +1 -1
  7. package/{chunk-ySdaWJYB.js → chunk-BD9-OWSe.js} +1 -1
  8. package/{chunk-DNSvQk_3.js → chunk-BIL3nR4_.js} +1 -1
  9. package/{chunk-ChwFViRh.js → chunk-BIOMsSHI.js} +1 -1
  10. package/{chunk-XMwSOila.js → chunk-BOOAIFTC.js} +1 -1
  11. package/{chunk-CJRbWZfg.js → chunk-BYJA6sbi.js} +1 -1
  12. package/{chunk-D0t-kgLy.js → chunk-BaGYaLxZ.js} +1 -1
  13. package/{chunk-ClfSJEUJ.js → chunk-Bceym75m.js} +1 -1
  14. package/{chunk-BxxX98wy.js → chunk-BfZh4DNq.js} +1 -1
  15. package/chunk-BjAIXsAS.js +1 -0
  16. package/{chunk-DuO9_dH0.js → chunk-BlSN71kd.js} +1 -1
  17. package/{chunk--rqB0ojD.js → chunk-Bq7wRTmy.js} +1 -1
  18. package/chunk-ByhuT4BS.js +14 -0
  19. package/{chunk-BthLY9tf.js → chunk-BzIY4AaX.js} +1 -1
  20. package/{chunk-C4pJCbq-.js → chunk-C-NgIZiF.js} +1 -1
  21. package/{chunk-wycXedbJ.js → chunk-C1kucB1O.js} +1 -1
  22. package/{chunk-IEVZ0UN6.js → chunk-C4kBXz3C.js} +1 -1
  23. package/{chunk-CeFh90sX.js → chunk-C6QX7znk.js} +1 -1
  24. package/{chunk-M5tldLvJ.js → chunk-C7pjkqKB.js} +1 -1
  25. package/{chunk-C08PrcBX.js → chunk-CBgNjPex.js} +1 -1
  26. package/{chunk-Cz4OqhOZ.js → chunk-CEyp0Xmg.js} +1 -1
  27. package/chunk-CFne6FXR.js +1 -0
  28. package/{chunk-g_QJ3SVt.js → chunk-CGn_EA_5.js} +1 -1
  29. package/chunk-CJ0GoaW1.js +1 -0
  30. package/{chunk-Dt8gZPT-.js → chunk-CJ1mxauG.js} +1 -1
  31. package/chunk-CMJCX33P.js +1 -0
  32. package/{chunk-BjNuU0J_.js → chunk-CRAg6SRo.js} +1 -1
  33. package/{chunk-CxPG-KgI.js → chunk-CT9ziigM.js} +2 -2
  34. package/{chunk-Cw8vFX0e.js → chunk-CWAvlP_u.js} +1 -1
  35. package/{chunk-Cc1_FUvV.js → chunk-CYQJGwsB.js} +1 -1
  36. package/{chunk-BeAI10wv.js → chunk-Ca-HIRNP.js} +1 -1
  37. package/{chunk-CUxvfCTH.js → chunk-Ca1C9pJ0.js} +1 -1
  38. package/chunk-CegwkGVu.js +3 -0
  39. package/chunk-Cgbi9MZq.js +2 -0
  40. package/{chunk-G-I5c1Dk.js → chunk-CgcnOoRq.js} +1 -1
  41. package/chunk-Ck9c9Juw.js +1 -0
  42. package/{chunk-DnD9XTM4.js → chunk-CnRCpl-v.js} +1 -1
  43. package/{chunk-B6nCQM-G.js → chunk-CrgyDps4.js} +1 -1
  44. package/{chunk-DNJQ-AbV.js → chunk-D2g44FyO.js} +2 -2
  45. package/{chunk-DofVJ9gn.js → chunk-D2g5mSLr.js} +1 -1
  46. package/chunk-D5lj-fQk.js +2 -0
  47. package/{chunk-CDRHCSvU.js → chunk-D6aNT_wo.js} +1 -1
  48. package/chunk-DDBflo2l.js +4 -0
  49. package/chunk-DD_QfWih.js +2 -0
  50. package/chunk-DFEb6rgg.js +2 -0
  51. package/chunk-DN6f5jXR.js +2 -0
  52. package/{chunk-DWwNINBJ.js → chunk-DPNAj9Vc.js} +1 -1
  53. package/{chunk-C-G3pKB4.js → chunk-DWkdK0Ib.js} +1 -1
  54. package/{chunk-CnAb3OKU.js → chunk-DaGzYsVs.js} +1 -1
  55. package/chunk-Df7q8ewK.js +1 -0
  56. package/{chunk-BNf0YAwH.js → chunk-Dgns65Zu.js} +1 -1
  57. package/{chunk-BAbAUjHY.js → chunk-Dh6x3lXP.js} +1 -1
  58. package/{chunk-BOII3Fdm.js → chunk-DipTNkHN.js} +1 -1
  59. package/chunk-Dj3xknEh.js +1 -0
  60. package/{chunk-BaWD8G-f.js → chunk-DkdGEw1e.js} +1 -1
  61. package/{chunk-PA5BGFyW.js → chunk-DmKJmG9z.js} +1 -1
  62. package/{chunk-BKLJMYh2.js → chunk-DtA6Mvdt.js} +1 -1
  63. package/chunk-DtdFhFa9.js +1 -0
  64. package/{chunk-Do6_xsGi.js → chunk-DuIUmwWN.js} +3 -3
  65. package/{chunk-r4LfAQnM.js → chunk-DwKPz2Gn.js} +1 -1
  66. package/chunk-DwMhABnQ.js +2 -0
  67. package/{chunk-BffC_BAn.js → chunk-Fw6nFDZK.js} +2 -2
  68. package/{chunk-ZVDEaGd0.js → chunk-HWQc1Hoa.js} +1 -1
  69. package/{chunk-DtQIjLqL.js → chunk-I0R6Ty-p.js} +1 -1
  70. package/{chunk-DddAUzMY.js → chunk-LL0IHZns.js} +1 -1
  71. package/{chunk-Bzp0ULy_.js → chunk-OFYkgZA1.js} +1 -1
  72. package/{chunk-CMs999gl.js → chunk-OLi7f6y7.js} +1 -1
  73. package/chunk-PVmXLw9b.js +2 -0
  74. package/{chunk-B7PRtY7v.js → chunk-RQ_MoiOh.js} +1 -1
  75. package/chunk-Zo-grJt3.js +1 -0
  76. package/chunk-dmyIQdVx.js +1 -0
  77. package/chunk-glhLCQrb.js +1 -0
  78. package/chunk-khm9J_G0.js +2 -0
  79. package/{chunk-bx0aDvCZ.js → chunk-wyNyzSXi.js} +1 -1
  80. package/{chunk-BYoKu9PJ.js → chunk-yF6CJHRg.js} +1 -1
  81. package/index.html +1 -1
  82. package/locale/dayjs/ko.js +45 -0
  83. package/locale/dayjs/tr.js +39 -0
  84. package/locale/messages.de.json +168 -12
  85. package/locale/messages.de_CH.json +162 -6
  86. package/locale/messages.de_DE.json +162 -6
  87. package/locale/messages.en.json +24 -3
  88. package/locale/messages.fr.json +175 -8
  89. package/locale/messages.fr_CA.json +175 -8
  90. package/locale/messages.fr_FR.json +175 -8
  91. package/locale/messages.it.json +79 -5
  92. package/locale/messages.it_IT.json +79 -5
  93. package/locale/messages.ja.json +198 -15
  94. package/locale/messages.ja_JP.json +198 -15
  95. package/locale/messages.json +24 -3
  96. package/locale/messages.ko.json +776 -0
  97. package/locale/messages.nl_BE.json +174 -7
  98. package/locale/messages.nl_NL.json +174 -7
  99. package/locale/messages.tr.json +943 -0
  100. package/main-KFKZO6SJ.js +16 -0
  101. package/package.json +1 -1
  102. package/ship-ui-assets/mcp/components.json +258 -86
  103. package/chunk-B-ryE8KW.js +0 -2
  104. package/chunk-B6ugJDDx.js +0 -1
  105. package/chunk-B88MJ6Up.js +0 -1
  106. package/chunk-BCT9ajP9.js +0 -1
  107. package/chunk-BMGXb3gX.js +0 -1
  108. package/chunk-BPpheyQK.js +0 -2
  109. package/chunk-BS8yAz3P.js +0 -2
  110. package/chunk-BUF3tczf.js +0 -14
  111. package/chunk-BlIcwFlf.js +0 -1
  112. package/chunk-BuyCr2eD.js +0 -1
  113. package/chunk-CM11IMzh.js +0 -1
  114. package/chunk-CU-RYihf.js +0 -2
  115. package/chunk-ClHWI9-i.js +0 -2
  116. package/chunk-CtLFpDTP.js +0 -3
  117. package/chunk-CuU6b3lp.js +0 -2
  118. package/chunk-D-epCTmE.js +0 -1
  119. package/chunk-QlYDF-EM.js +0 -1
  120. package/chunk-SWsliUUy.js +0 -4
  121. package/chunk-SgcWXTYZ.js +0 -2
  122. package/chunk-birClroL.js +0 -2
  123. package/chunk-ya_5JcKA.js +0 -1
  124. package/main-TZVLLK67.js +0 -16
@@ -1,4 +1,4 @@
1
- import {T,ae as Jr,b as g1,b7 as le$1,bw as eE,d as dw,L as oC,Y as iC,R as Bl,W as $l,F as Fg,h as bC,ad as br,bx as N,af as m1,ac as h1,N as Nt,aj as l,B as y1,U as Ue,by as ae$1,G as Ga,an as jg,V as yg,o as oT,aC as hg,D as DE,ag as zg,i as iT,I as Qg,$ as $g,K as lC,Q as Qi,s as sm,l as HC,H as Hl,j as mg,w as im,z as gg,a3 as QC,k as gT,S as Sd,n as nC,x as xd,bz as TC}from'./main-TZVLLK67.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=gT();Bl(0,"div",6,1)(2,"div",7),jg("click",function(r){Sd(i);let n=nC();return xd(n.eventClose(r))}),$l(),Bl(3,"div",8,2),iC(5,3),$l()();}if(s&2){let i=nC();hg("id",i.id()+"hello"),DE(3),TC(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(br),this.#r=T(N),this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.asMultiLayer=g1(false),this.asSheetOnMobile=g1(false),this.disableOpenByClick=g1(false),this.isOpen=m1(false),this.options=g1(),this.closed=h1(),this.defaultOptionMerge=Nt(()=>l(l({},de),this.options())),this.triggerRef=y1.required("triggerRef"),this.popoverRef=y1("popoverRef"),this.popoverContentRef=y1("popoverContentRef"),this.id=Ue("--"+ae$1()),this.menuStyle=Ue(null),this.openAbort=null,this.#i=null,this.openEffect=Ga(()=>{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=dw({type:s,selectors:[["sh-popover"]],viewQuery:function(e,r){e&1&&$g(r.triggerRef,pe,5)(r.popoverRef,se,5)(r.popoverContentRef,ne,5),e&2&&lC(3);},hostVars:4,hostBindings:function(e,r){e&2&&Qg("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&&(oC(fe),Bl(0,"div",3,0),jg("click",function(o){return r.toggleIsOpen(o)}),Bl(2,"div",4),iC(3),iC(4,1),iC(5,2),$l(),yg(6,"div",5),$l(),oT(7,le,6,5,"div",6)),e&2&&(hg("popovertarget",r.id()+"hello"),DE(6),zg("anchor-name",r.id()),DE(),iT(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 Jr,b as g1,b8 as ce$1,bt as eE,d as dw,L as oC,Y as iC,R as Bl,W as $l,F as Fg,h as bC,ad as br,bu as N,af as m1,ac as h1,N as Nt,aj as l,B as y1,U as Ue,bv as le$1,G as Ga,an as jg,V as yg,o as oT,aC as hg,D as DE,ag as zg,i as iT,I as Qg,$ as $g,K as lC,Q as Qi,s as sm,l as HC,H as Hl,j as mg,w as im,z as gg,a3 as QC,k as gT,S as Sd,n as nC,x as xd,bw as TC}from'./main-KFKZO6SJ.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=gT();Bl(0,"div",6,1)(2,"div",7),jg("click",function(r){Sd(i);let n=nC();return xd(n.eventClose(r))}),$l(),Bl(3,"div",8,2),iC(5,3),$l()();}if(s&2){let i=nC();hg("id",i.id()+"hello"),DE(3),TC(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(br),this.#r=T(N),this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.asMultiLayer=g1(false),this.asSheetOnMobile=g1(false),this.disableOpenByClick=g1(false),this.isOpen=m1(false),this.options=g1(),this.closed=h1(),this.defaultOptionMerge=Nt(()=>l(l({},de),this.options())),this.triggerRef=y1.required("triggerRef"),this.popoverRef=y1("popoverRef"),this.popoverContentRef=y1("popoverContentRef"),this.id=Ue("--"+le$1()),this.menuStyle=Ue(null),this.openAbort=null,this.#i=null,this.openEffect=Ga(()=>{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=dw({type:s,selectors:[["sh-popover"]],viewQuery:function(e,r){e&1&&$g(r.triggerRef,pe,5)(r.popoverRef,se,5)(r.popoverContentRef,ne,5),e&2&&lC(3);},hostVars:4,hostBindings:function(e,r){e&2&&Qg("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&&(oC(fe),Bl(0,"div",3,0),jg("click",function(o){return r.toggleIsOpen(o)}),Bl(2,"div",4),iC(3),iC(4,1),iC(5,2),$l(),yg(6,"div",5),$l(),oT(7,le,6,5,"div",6)),e&2&&(hg("popovertarget",r.id()+"hello"),DE(6),zg("anchor-name",r.id()),DE(),iT(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(Jr),this.color=g1(null),this.variant=g1(null),this.size=g1(null),this.readonly=g1(false),this.hostClasses=le$1("formField",{color:this.color,variant:this.variant,size:this.size,readonly:this.readonly}),eE(()=>{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=dw({type:s,selectors:[["sh-form-field"]],hostVars:2,hostBindings:function(e,r){e&1&&Fg("click",function(){return r.onClick()}),e&2&&bC(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&&(oC(me),iC(0),Bl(1,"div",0)(2,"div",1),iC(3,1),iC(4,2),iC(5,3),$l(),iC(6,4),iC(7,5),Bl(8,"div",2),iC(9,6),iC(10,7),iC(11,8),$l()(),Bl(12,"div",3)(13,"div",4),iC(14,9),$l(),Bl(15,"div",5),iC(16,10),$l()());},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(Jr),this.isOpen=m1(false),this.closed=h1(),this.color=g1(null),this.variant=g1(null),this.size=g1(null),this.readonly=g1(false),this.hostClasses=le$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=dw({type:s,selectors:[["sh-form-field-popover"]],hostVars:2,hostBindings:function(e,r){e&1&&Fg("click",function(o){return r.onClick(o)}),e&2&&bC(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&&(oC(ce),iC(0),Qi(1,"sh-popover",0),sm("isOpenChange",function(o){return HC(r.isOpen,o)||(r.isOpen=o),o}),Fg("closed",function(){return r.close()}),Qi(2,"div",1)(3,"div",2),iC(4,1),iC(5,2),Hl(),mg(6,"div",3),iC(7,3),iC(8,4),iC(9,5),mg(10,"div",4),iC(11,6),Hl(),iC(12,7),Hl(),Qi(13,"div",5)(14,"div",6),iC(15,8),Hl(),Qi(16,"div",7),iC(17,9),Hl()()),e&2&&(DE(),im("isOpen",r.isOpen),gg("asSheetOnMobile",true)("options",QC(5,ge)),DE(),Qg("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(Jr),this.color=g1(null),this.variant=g1(null),this.size=g1(null),this.readonly=g1(false),this.hostClasses=ce$1("formField",{color:this.color,variant:this.variant,size:this.size,readonly:this.readonly}),eE(()=>{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=dw({type:s,selectors:[["sh-form-field"]],hostVars:2,hostBindings:function(e,r){e&1&&Fg("click",function(){return r.onClick()}),e&2&&bC(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&&(oC(me),iC(0),Bl(1,"div",0)(2,"div",1),iC(3,1),iC(4,2),iC(5,3),$l(),iC(6,4),iC(7,5),Bl(8,"div",2),iC(9,6),iC(10,7),iC(11,8),$l()(),Bl(12,"div",3)(13,"div",4),iC(14,9),$l(),Bl(15,"div",5),iC(16,10),$l()());},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(Jr),this.isOpen=m1(false),this.closed=h1(),this.color=g1(null),this.variant=g1(null),this.size=g1(null),this.readonly=g1(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=dw({type:s,selectors:[["sh-form-field-popover"]],hostVars:2,hostBindings:function(e,r){e&1&&Fg("click",function(o){return r.onClick(o)}),e&2&&bC(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&&(oC(ce),iC(0),Qi(1,"sh-popover",0),sm("isOpenChange",function(o){return HC(r.isOpen,o)||(r.isOpen=o),o}),Fg("closed",function(){return r.close()}),Qi(2,"div",1)(3,"div",2),iC(4,1),iC(5,2),Hl(),mg(6,"div",3),iC(7,3),iC(8,4),iC(9,5),mg(10,"div",4),iC(11,6),Hl(),iC(12,7),Hl(),Qi(13,"div",5)(14,"div",6),iC(15,8),Hl(),Qi(16,"div",7),iC(17,9),Hl()()),e&2&&(DE(),im("isOpen",r.isOpen),gg("asSheetOnMobile",true)("options",QC(5,ge)),DE(),Qg("is-open",r.isOpen()));},dependencies:[oe],styles:[be],encapsulation:2});}}return s})();export{Ae as A,Fe as F,oe as o};
@@ -1,3 +1,3 @@
1
- import {i as ie,h}from'./chunk-g_QJ3SVt.js';import {c}from'./chunk-bx0aDvCZ.js';import {m}from'./chunk-5zEiKCqR.js';import {c as c$1}from'./chunk-CMs999gl.js';import {T,a5 as g,g as g$1,a6 as be,a7 as l,M,m as m$1,e as ee,N as Nt$1,G as Ga,d as dw,Z as lr,_ as _t$1,a8 as To,f as N,v,Q as Qi,s as sm,j as mg,F as Fg,o as oT,H as Hl,O as Og,P as Pg,q as PC,h as bC,w as im,z as gg,D as DE,i as iT,a3 as QC,a9 as UC,aa as Gl,t as tC,l as HC,ab as C$1,ac as h1,U as Ue,C as Bu,u as ue,X as XT,p as DD,y as TD,I as Qg,ad as br,ae as Jr,b as g1,af as m1,B as y1,L as oC,R as Bl,Y as iC,W as $l,ag as zg,$ as $g,K as lC,ah as fe,ai as m$2,aj as l$1,ak as cm,al as BC,k as gT,S as Sd,n as nC,x as xd,r as rt$1,am as ii,V as yg,an as jg,ao as $C,a1 as cT,ap as sT,a2 as lT,E as nm}from'./main-TZVLLK67.js';import {C}from'./chunk-CUxvfCTH.js';import {O}from'./chunk-C4pJCbq-.js';import'./chunk-BjNuU0J_.js';import {w}from'./chunk-C-G3pKB4.js';import {F as Fe}from'./chunk-Do6_xsGi.js';import {B as Bn,Z as Ze,R as Rn,J as Jt,j as jn,m as me,G as Gn}from'./chunk-BOII3Fdm.js';import {a as at$1}from'./chunk-BffC_BAn.js';import'./chunk-M5tldLvJ.js';var nt=["dragImageElement"],it=[[["","sidenav",""]],[["","sidenav-closed-topbar",""]],"*"],ot=["[sidenav]","[sidenav-closed-topbar]","*"];function at(o,i){o&1&&yg(0,"div",1,0);}function st(o,i){if(o&1){let e=gT();Bl(0,"div",7),jg("drop",function(n){Sd(e);let r=nC();return xd(r.drop(n))})("dragenter",function(){Sd(e);let n=nC();return xd(n.dragEnter())})("dragleave",function(){Sd(e);let n=nC();return xd(n.dragLeave())}),$l();}}function rt(o,i){if(o&1){let e=gT();Bl(0,"div",8),jg("dragstart",function(n){Sd(e);let r=nC();return xd(r.dragStart(n))})("dragend",function(n){Sd(e);let r=nC();return xd(r.dragEnd(n))})("drag",function(n){Sd(e);let r=nC();return xd(r.drag(n))})("touchstart",function(n){Sd(e);let r=nC();return xd(r.touchStart(n))})("touchmove",function(n){Sd(e);let r=nC();return xd(r.touchMove(n))})("touchend",function(n){Sd(e);let r=nC();return xd(r.touchEnd(n))})("touchcancel",function(n){Sd(e);let r=nC();return xd(r.touchCancel(n))}),$l();}}function lt(o){let i=T(Jr),e=T(rt$1),t=Ue(false),n=typeof MutationObserver<"u"?new MutationObserver(r=>{r.forEach(N=>{N.type==="attributes"&&N.attributeName==="class"&&t.set(i.nativeElement.classList.contains(o));});}):void 0;return ii(i.nativeElement,()=>{n&&n.observe(i.nativeElement,{attributes:!0}),t.set(i.nativeElement.classList.contains(o));}),e.onDestroy(()=>{n&&n.disconnect();}),t}var Ke=(()=>{class o{constructor(){this.#e=T(br),this.#i=T(Jr),this.openWidth=280,this.openWidthTreshold=this.openWidth*.5,this.disableDrag=g1(false),this.isOpen=m1(false),this.isOverlay=lt("overlay"),this.#n=this.#i.nativeElement.parentElement,this.#t=this.#n.getBoundingClientRect&&this.#n.getBoundingClientRect(),this.dragImageElement=y1.required("dragImageElement"),this.dragIsEnding=Ue(false),this.dragIsOnScreen=Ue(true),this.isDragging=Ue(false),this.dragPositionX=Ue(0),this.dragActualPositionX=Nt$1(()=>{let e=this.dragPositionX(),t=280,n=100,N=t/2,A=N-n/2,O=N+n/2;if(e>O){let D=e-O,f=(t-O)*(1-Math.exp(-8e-3*D));return O+f}else if(e<A){let D=A-e,f=A*(1-Math.exp(-8e-3*D));return A-f}return e}),this.draggingStyle=Nt$1(()=>!this.isOverlay()||this.disableDrag()?null:this.isDragging()?`translateX(${this.dragActualPositionX()}px)`:this.isOpen()?`translateX(${this.openWidth}px)`:"translateX(0px)"),this.draggingEffect=Ga(()=>{this.disableDrag()||(this.isDragging()?this.#e.body.classList.add("dragging"):this.#e.body.classList.remove("dragging"));}),this.scrollLockEffect=Ga(e=>{let t=this.isOverlay(),n=this.isOpen();t&&n&&(this.#e.body.classList.add("sh-sidenav-open"),this.#e.documentElement.classList.add("sh-sidenav-open")),e(()=>{this.#e.body.classList.remove("sh-sidenav-open"),this.#e.documentElement.classList.remove("sh-sidenav-open");});});}#e;#i;#n;#t;drop(e){e.stopPropagation(),this.#o(e.clientX-this.#t.left);}#o(e){this.isDragging.set(false),e>=this.openWidthTreshold?this.isOpen.set(true):this.isOpen.set(false);}dragEnd(e){e.clientX-this.#t.left<0&&this.#o(0),e.clientX-this.#t.left>this.openWidthTreshold&&this.#o(this.openWidthTreshold);}dragEnter(){this.dragIsOnScreen.set(true);}dragLeave(){this.dragIsOnScreen.set(false);}dragStart(e){e.stopPropagation(),this.#t=this.#n.getBoundingClientRect(),this.isDragging.set(true);}drag(e){e.stopPropagation(),this.isDragging()&&(e.clientX!==0||e.clientY!==0)&&this.dragPositionX.set(e.clientX-this.#t.left);}touchStart(e){e.stopPropagation(),this.isDragging.set(true),this.#t=this.#n.getBoundingClientRect(),this.dragPositionX.set(0);}touchMove(e){e.stopPropagation(),this.isDragging()&&this.dragPositionX.set(e.touches[0].clientX-this.#t.left);}touchEnd(e){e.stopPropagation(),this.#o(e.changedTouches[0].clientX-this.#t.left);}touchCancel(e){e.stopPropagation(),this.isDragging.set(false);}static{this.\u0275fac=function(t){return new(t||o)};}static{this.\u0275cmp=dw({type:o,selectors:[["sh-sidenav"]],viewQuery:function(t,n){t&1&&$g(n.dragImageElement,nt,5),t&2&&lC();},hostVars:6,hostBindings:function(t,n){t&2&&Qg("open",n.isOpen())("closed",!n.isOpen())("is-dragging",n.isDragging());},inputs:{disableDrag:[1,"disableDrag"],isOpen:[1,"isOpen"]},outputs:{isOpen:"isOpenChange"},ngContentSelectors:ot,decls:10,vars:5,consts:[["dragImageElement",""],[1,"drag-image"],[1,"dropping-surface"],["role","navigation",1,"sidenav"],[1,"main-wrap"],["draggable","true",1,"dragable"],[1,"closed-topbar"],[1,"dropping-surface",3,"drop","dragenter","dragleave"],["draggable","true",1,"dragable",3,"dragstart","dragend","drag","touchstart","touchmove","touchend","touchcancel"]],template:function(t,n){t&1&&(oC(it),oT(0,at,2,0,"div",1),oT(1,st,1,0,"div",2),Bl(2,"div",3),iC(3),$l(),Bl(4,"div",4),oT(5,rt,1,0,"div",5),Bl(6,"div",6),iC(7,1),$l(),Bl(8,"main"),iC(9,2),$l()()),t&2&&(iT(n.isOverlay()&&!n.disableDrag()?0:-1),DE(),iT(n.isOverlay()&&n.isDragging()?1:-1),DE(3),zg("transform",!n.disableDrag()&&n.draggingStyle()),DE(),iT(n.isOverlay()&&!n.disableDrag()?5:-1));},styles:[`html.sh-sidenav-open,body.sh-sidenav-open{overflow:hidden}sh-sidenav{--sidenav-width: 17.5rem;--sidenav-wrap-w: 100vw;--sidenav-wrap-h: 100vh;display:flex;width:var(--sidenav-wrap-w);height:var(--sidenav-wrap-h)}sh-sidenav .sidenav{width:var(--sidenav-width);transition:width .2s linear;height:100%;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:auto;overscroll-behavior:contain}sh-sidenav .main-wrap{position:relative;z-index:1;flex:1 0;display:block;height:100%;overflow:auto;padding:1rem 1rem 1rem 0;background-color:var(--base-1)}sh-sidenav main{overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:auto;border:var(--border-10);border-radius:var(--shape-3);height:calc(100vh - 2rem);box-shadow:var(--box-shadow-35)}sh-sidenav .closed-topbar{display:none;min-height:3.75rem;background-color:var(--base-1);align-items:center;justify-content:space-between;padding:0 1rem;border-bottom:var(--border-10);z-index:10000;position:relative;touch-action:none;overscroll-behavior:none}sh-sidenav .dragable{display:none}sh-sidenav .drag-image{display:none}sh-sidenav.simple{border-radius:0}sh-sidenav.simple .main-wrap{padding:0}sh-sidenav.simple .main-wrap main{height:100vh;border-radius:0;border-width:0 0 0 1px}sh-sidenav.simple.closed{--sidenav-width: 6.25rem}sh-sidenav.overlay{overflow:hidden}sh-sidenav.overlay .drag-image{display:block;width:.25rem;height:40%;background-color:var(--base-2);border-radius:.125rem;box-shadow:none;position:fixed;top:0;left:-9999px}sh-sidenav.overlay .sidenav{position:fixed;z-index:0}sh-sidenav.overlay .dragable{position:absolute;top:0;left:0;bottom:0;z-index:9999;width:50px;padding-right:30px;display:flex;align-items:center;justify-content:center;cursor:grab}sh-sidenav.overlay .dragable:active{cursor:grabbing}sh-sidenav.overlay .dragable:after{content:"";display:block;width:.25rem;height:40%;background-color:var(--base-2);border-radius:.125rem}sh-sidenav.overlay .dragable:hover:after{background-color:var(--base-4)}sh-sidenav.overlay .dropping-surface{position:fixed;inset:0;z-index:100000}sh-sidenav.overlay .main-wrap{z-index:1;padding:0;display:flex;height:100vh;position:relative;flex-direction:column;transform:translate(0);transition:transform .2s linear;overflow:hidden;overscroll-behavior:none}sh-sidenav.overlay.is-dragging{-webkit-user-select:none;user-select:none;cursor:grabbing}sh-sidenav.overlay.is-dragging .main-wrap{transition:none}sh-sidenav.overlay.is-dragging>*{cursor:grabbing}sh-sidenav.overlay.is-dragging .dragable{cursor:grabbing}sh-sidenav.overlay.open .main-wrap{transform:translate(var(--sidenav-width));box-shadow:var(--box-shadow-10);border-left:var(--border-10)}sh-sidenav.overlay.open main{overflow-y:hidden}sh-sidenav.overlay .closed-topbar{display:flex}sh-sidenav.overlay .closed-topbar:empty{display:none}sh-sidenav.overlay main{border:0;box-shadow:none;flex:1;height:auto;min-height:0;border-radius:0}
1
+ import {i as ie,h}from'./chunk-CGn_EA_5.js';import {m}from'./chunk-3RXp81pP.js';import {c}from'./chunk-wyNyzSXi.js';import {c as c$1}from'./chunk-OLi7f6y7.js';import {T,a5 as g,g as g$1,a6 as be,a7 as l,M,m as m$1,e as ee,N as Nt$1,G as Ga,d as dw,Z as lr,_ as _t$1,a8 as To,f as N,v,Q as Qi,s as sm,j as mg,F as Fg,o as oT,H as Hl,O as Og,P as Pg,q as PC,h as bC,w as im,z as gg,D as DE,i as iT,a3 as QC,a9 as UC,aa as Gl,t as tC,l as HC,ab as C$1,ac as h1,U as Ue,C as Bu,u as ue,X as XT,p as DD,y as TD,I as Qg,ad as br,ae as Jr,b as g1,af as m1,B as y1,L as oC,R as Bl,Y as iC,W as $l,ag as zg,$ as $g,K as lC,ah as fe,ai as m$2,aj as l$1,ak as cm,al as BC,k as gT,S as Sd,n as nC,x as xd,r as rt$1,am as ii,V as yg,an as jg,ao as $C,a1 as cT,ap as sT,a2 as lT,E as nm}from'./main-KFKZO6SJ.js';import'./chunk-CRAg6SRo.js';import {w}from'./chunk-DWkdK0Ib.js';import {F as Fe}from'./chunk-DuIUmwWN.js';import {B as Bn,Z as Ze,R as Rn,J as Jt,j as jn,m as me,G as Gn}from'./chunk-DipTNkHN.js';import {a as at$1}from'./chunk-Fw6nFDZK.js';import {C}from'./chunk-Ca1C9pJ0.js';import {O}from'./chunk-C-NgIZiF.js';import'./chunk-C7pjkqKB.js';var nt=["dragImageElement"],it=[[["","sidenav",""]],[["","sidenav-closed-topbar",""]],"*"],ot=["[sidenav]","[sidenav-closed-topbar]","*"];function at(o,i){o&1&&yg(0,"div",1,0);}function st(o,i){if(o&1){let e=gT();Bl(0,"div",7),jg("drop",function(n){Sd(e);let r=nC();return xd(r.drop(n))})("dragenter",function(){Sd(e);let n=nC();return xd(n.dragEnter())})("dragleave",function(){Sd(e);let n=nC();return xd(n.dragLeave())}),$l();}}function rt(o,i){if(o&1){let e=gT();Bl(0,"div",8),jg("dragstart",function(n){Sd(e);let r=nC();return xd(r.dragStart(n))})("dragend",function(n){Sd(e);let r=nC();return xd(r.dragEnd(n))})("drag",function(n){Sd(e);let r=nC();return xd(r.drag(n))})("touchstart",function(n){Sd(e);let r=nC();return xd(r.touchStart(n))})("touchmove",function(n){Sd(e);let r=nC();return xd(r.touchMove(n))})("touchend",function(n){Sd(e);let r=nC();return xd(r.touchEnd(n))})("touchcancel",function(n){Sd(e);let r=nC();return xd(r.touchCancel(n))}),$l();}}function lt(o){let i=T(Jr),e=T(rt$1),t=Ue(false),n=typeof MutationObserver<"u"?new MutationObserver(r=>{r.forEach(N=>{N.type==="attributes"&&N.attributeName==="class"&&t.set(i.nativeElement.classList.contains(o));});}):void 0;return ii(i.nativeElement,()=>{n&&n.observe(i.nativeElement,{attributes:!0}),t.set(i.nativeElement.classList.contains(o));}),e.onDestroy(()=>{n&&n.disconnect();}),t}var Ke=(()=>{class o{constructor(){this.#e=T(br),this.#i=T(Jr),this.openWidth=280,this.openWidthTreshold=this.openWidth*.5,this.disableDrag=g1(false),this.isOpen=m1(false),this.isOverlay=lt("overlay"),this.#n=this.#i.nativeElement.parentElement,this.#t=this.#n.getBoundingClientRect&&this.#n.getBoundingClientRect(),this.dragImageElement=y1.required("dragImageElement"),this.dragIsEnding=Ue(false),this.dragIsOnScreen=Ue(true),this.isDragging=Ue(false),this.dragPositionX=Ue(0),this.dragActualPositionX=Nt$1(()=>{let e=this.dragPositionX(),t=280,n=100,N=t/2,A=N-n/2,O=N+n/2;if(e>O){let D=e-O,f=(t-O)*(1-Math.exp(-8e-3*D));return O+f}else if(e<A){let D=A-e,f=A*(1-Math.exp(-8e-3*D));return A-f}return e}),this.draggingStyle=Nt$1(()=>!this.isOverlay()||this.disableDrag()?null:this.isDragging()?`translateX(${this.dragActualPositionX()}px)`:this.isOpen()?`translateX(${this.openWidth}px)`:"translateX(0px)"),this.draggingEffect=Ga(()=>{this.disableDrag()||(this.isDragging()?this.#e.body.classList.add("dragging"):this.#e.body.classList.remove("dragging"));}),this.scrollLockEffect=Ga(e=>{let t=this.isOverlay(),n=this.isOpen();t&&n&&(this.#e.body.classList.add("sh-sidenav-open"),this.#e.documentElement.classList.add("sh-sidenav-open")),e(()=>{this.#e.body.classList.remove("sh-sidenav-open"),this.#e.documentElement.classList.remove("sh-sidenav-open");});});}#e;#i;#n;#t;drop(e){e.stopPropagation(),this.#o(e.clientX-this.#t.left);}#o(e){this.isDragging.set(false),e>=this.openWidthTreshold?this.isOpen.set(true):this.isOpen.set(false);}dragEnd(e){e.clientX-this.#t.left<0&&this.#o(0),e.clientX-this.#t.left>this.openWidthTreshold&&this.#o(this.openWidthTreshold);}dragEnter(){this.dragIsOnScreen.set(true);}dragLeave(){this.dragIsOnScreen.set(false);}dragStart(e){e.stopPropagation(),this.#t=this.#n.getBoundingClientRect(),this.isDragging.set(true);}drag(e){e.stopPropagation(),this.isDragging()&&(e.clientX!==0||e.clientY!==0)&&this.dragPositionX.set(e.clientX-this.#t.left);}touchStart(e){e.stopPropagation(),this.isDragging.set(true),this.#t=this.#n.getBoundingClientRect(),this.dragPositionX.set(0);}touchMove(e){e.stopPropagation(),this.isDragging()&&this.dragPositionX.set(e.touches[0].clientX-this.#t.left);}touchEnd(e){e.stopPropagation(),this.#o(e.changedTouches[0].clientX-this.#t.left);}touchCancel(e){e.stopPropagation(),this.isDragging.set(false);}static{this.\u0275fac=function(t){return new(t||o)};}static{this.\u0275cmp=dw({type:o,selectors:[["sh-sidenav"]],viewQuery:function(t,n){t&1&&$g(n.dragImageElement,nt,5),t&2&&lC();},hostVars:6,hostBindings:function(t,n){t&2&&Qg("open",n.isOpen())("closed",!n.isOpen())("is-dragging",n.isDragging());},inputs:{disableDrag:[1,"disableDrag"],isOpen:[1,"isOpen"]},outputs:{isOpen:"isOpenChange"},ngContentSelectors:ot,decls:10,vars:5,consts:[["dragImageElement",""],[1,"drag-image"],[1,"dropping-surface"],["role","navigation",1,"sidenav"],[1,"main-wrap"],["draggable","true",1,"dragable"],[1,"closed-topbar"],[1,"dropping-surface",3,"drop","dragenter","dragleave"],["draggable","true",1,"dragable",3,"dragstart","dragend","drag","touchstart","touchmove","touchend","touchcancel"]],template:function(t,n){t&1&&(oC(it),oT(0,at,2,0,"div",1),oT(1,st,1,0,"div",2),Bl(2,"div",3),iC(3),$l(),Bl(4,"div",4),oT(5,rt,1,0,"div",5),Bl(6,"div",6),iC(7,1),$l(),Bl(8,"main"),iC(9,2),$l()()),t&2&&(iT(n.isOverlay()&&!n.disableDrag()?0:-1),DE(),iT(n.isOverlay()&&n.isDragging()?1:-1),DE(3),zg("transform",!n.disableDrag()&&n.draggingStyle()),DE(),iT(n.isOverlay()&&!n.disableDrag()?5:-1));},styles:[`html.sh-sidenav-open,body.sh-sidenav-open{overflow:hidden}sh-sidenav{--sidenav-width: 17.5rem;--sidenav-wrap-w: 100vw;--sidenav-wrap-h: 100vh;display:flex;width:var(--sidenav-wrap-w);height:var(--sidenav-wrap-h)}sh-sidenav .sidenav{width:var(--sidenav-width);transition:width .2s linear;height:100%;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:auto;overscroll-behavior:contain}sh-sidenav .main-wrap{position:relative;z-index:1;flex:1 0;display:block;height:100%;overflow:auto;padding:1rem 1rem 1rem 0;background-color:var(--base-1)}sh-sidenav main{overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:auto;border:var(--border-10);border-radius:var(--shape-3);height:calc(100vh - 2rem);box-shadow:var(--box-shadow-35)}sh-sidenav .closed-topbar{display:none;min-height:3.75rem;background-color:var(--base-1);align-items:center;justify-content:space-between;padding:0 1rem;border-bottom:var(--border-10);z-index:10000;position:relative;touch-action:none;overscroll-behavior:none}sh-sidenav .dragable{display:none}sh-sidenav .drag-image{display:none}sh-sidenav.simple{border-radius:0}sh-sidenav.simple .main-wrap{padding:0}sh-sidenav.simple .main-wrap main{height:100vh;border-radius:0;border-width:0 0 0 1px}sh-sidenav.simple.closed{--sidenav-width: 6.25rem}sh-sidenav.overlay{overflow:hidden}sh-sidenav.overlay .drag-image{display:block;width:.25rem;height:40%;background-color:var(--base-2);border-radius:.125rem;box-shadow:none;position:fixed;top:0;left:-9999px}sh-sidenav.overlay .sidenav{position:fixed;z-index:0}sh-sidenav.overlay .dragable{position:absolute;top:0;left:0;bottom:0;z-index:9999;width:50px;padding-right:30px;display:flex;align-items:center;justify-content:center;cursor:grab}sh-sidenav.overlay .dragable:active{cursor:grabbing}sh-sidenav.overlay .dragable:after{content:"";display:block;width:.25rem;height:40%;background-color:var(--base-2);border-radius:.125rem}sh-sidenav.overlay .dragable:hover:after{background-color:var(--base-4)}sh-sidenav.overlay .dropping-surface{position:fixed;inset:0;z-index:100000}sh-sidenav.overlay .main-wrap{z-index:1;padding:0;display:flex;height:100vh;position:relative;flex-direction:column;transform:translate(0);transition:transform .2s linear;overflow:hidden;overscroll-behavior:none}sh-sidenav.overlay.is-dragging{-webkit-user-select:none;user-select:none;cursor:grabbing}sh-sidenav.overlay.is-dragging .main-wrap{transition:none}sh-sidenav.overlay.is-dragging>*{cursor:grabbing}sh-sidenav.overlay.is-dragging .dragable{cursor:grabbing}sh-sidenav.overlay.open .main-wrap{transform:translate(var(--sidenav-width));box-shadow:var(--box-shadow-10);border-left:var(--border-10)}sh-sidenav.overlay.open main{overflow-y:hidden}sh-sidenav.overlay .closed-topbar{display:flex}sh-sidenav.overlay .closed-topbar:empty{display:none}sh-sidenav.overlay main{border:0;box-shadow:none;flex:1;height:auto;min-height:0;border-radius:0}
2
2
  `],encapsulation:2});}}return o})();var _t=["scroller"];function ct(o,i){o&1&&(Qi(0,"sh-icon"),PC(1,"bell-ringing"),Hl());}function dt(o,i){o&1&&(Qi(0,"sh-icon"),PC(1,"bell"),Hl());}function ut(o,i){if(o&1&&mg(0,"app-notification",8),o&2){nC(2);let e=$C(6);gg("index",0)("notification",e.content);}}function gt(o,i){if(o&1&&(Qi(0,"div",11),PC(1),Hl()),o&2){nC(3);let e=$C(6);DE(),Gl(" ",e.content.content," ");}}function pt(o,i){if(o&1&&(Qi(0,"sh-alert")(1,"div",10),PC(2),Hl(),oT(3,gt,2,1,"div",11),Hl()),o&2){nC(2);let e=$C(6);bC(e.content.type||"error"),DE(2),nm(e.content.title),DE(),iT(e.content.content?3:-1);}}function ht(o,i){if(o&1&&(Qi(0,"div",6),oT(1,ut,1,2,"app-notification",8)(2,pt,4,4,"sh-alert",9),Hl()),o&2){nC();let e=$C(6);DE(),iT(e.type==="notification"?1:2);}}function mt(o,i){if(o&1){let e=gT();Qi(0,"div",7)(1,"div",12)(2,"h6",13),Og(3,2),Qi(4,"button",5),Fg("click",function(){Sd(e);let n=nC();return xd(n.toggleNotifications())}),mg(5,"sh-icon"),Hl(),Pg(),Hl(),Qi(6,"div",14,0)(8,"div",15),mg(9,"app-notifications"),Hl()()()();}}function St(o,i){if(o&1&&(Qi(0,"div",20),PC(1),Hl()),o&2){let e=nC().$implicit;DE(),Gl(" ",e.content," ");}}function Ct(o,i){if(o&1){let e=gT();Qi(0,"sh-alert",18,1),Fg("click",function(){let n=Sd(e).$implicit,r=nC(2);return xd(r.deleteAlertByIndex(n.id))}),Qi(2,"div",19),PC(3),Hl(),oT(4,St,2,1,"div",20),Hl();}if(o&2){let e=i.$implicit;bC(e.type),gg("id",e.id),DE(3),nm(e.title),DE(),iT(e.content?4:-1);}}function Tt(o,i){o&1&&(Qi(0,"p",17),XT(1,4),Hl());}function Et(o,i){if(o&1){let e=gT();Qi(0,"div",7)(1,"div",12)(2,"h6",13),Og(3,3),Qi(4,"button",5),Fg("click",function(){Sd(e);let n=nC();return xd(n.toggleAlerts())}),mg(5,"sh-icon"),Hl(),Pg(),Hl(),Qi(6,"div",14,0)(8,"div",15),cT(9,Ct,5,5,"sh-alert",16,sT,false,Tt,2,0,"p",17),Hl()()()();}if(o&2){let e=nC();DE(9),lT(e.alertHistory());}}var et=new jn,J=class o{#e=T(fe);#i=T(l);isSubmitting=Ue(false);messageSent=Ue(false);form=et.group({message:et.control("",[me.required])});notifications=this.#i.notifications;shownMessage=Ue(null);shownMessageInterval=null;alertHistory=this.#e.alertHistory;alertHistoryIsOpen=this.#e.alertHistoryIsOpen;alertHistoryIsHidden=this.#e.alertHistoryIsHidden;numberOfOpenAlerts=Nt$1(()=>this.alertHistory().filter(i=>i.isOpen).length);scroller=y1("scroller");isAlertsOpen=m1(false);isNotificationsOpen=m1(false);previousHistoryCount=Ue(null);previousNotificationsCount=Ue(null);constructor(){Ga(()=>{let i=this.alertHistory(),e=this.notifications();if(e.length===0){this.shownMessage.set(null);return}e.length&&this.previousHistoryCount()!==i.length&&!this.isNotificationsOpen()?(this.shownMessage.set({content:e[0],countDown:3,type:"notification"}),this.previousHistoryCount.set(i.length),this.shownMessageInterval=setInterval(()=>{let t=this.shownMessage();if(t?.countDown===0){this.shownMessage.set(null),this.shownMessageInterval=null;return}t!==null&&this.shownMessage.update(n=>m$2(l$1({},n),{countDown:n.countDown-1}));},1e3)):i.length&&this.previousHistoryCount()!==i.length&&!this.isAlertsOpen()&&(this.shownMessage.set({content:i[0],countDown:3,type:"alert"}),this.previousHistoryCount.set(i.length),this.shownMessageInterval=setInterval(()=>{let t=this.shownMessage();if(t?.countDown===0){this.shownMessage.set(null),this.shownMessageInterval=null;return}t!==null&&this.shownMessage.update(n=>m$2(l$1({},n),{countDown:n.countDown-1}));},1e3));}),Ga(()=>{this.alertHistoryIsOpen(),this.scrollToBottom();});}resetPreviewMessage(){this.shownMessage.set(null),this.shownMessageInterval=null;}toggleAlerts(){this.isAlertsOpen()?this.isAlertsOpen.set(false):(this.isAlertsOpen.set(true),this.isNotificationsOpen.set(false),this.resetPreviewMessage());}toggleNotifications(){this.isNotificationsOpen.set(!this.isNotificationsOpen()),this.isAlertsOpen()&&this.isAlertsOpen.set(false);}deleteAlertByIndex(i){this.#e.removeAlert(i);}scrollToBottom(){this.scroller()&&this.scroller()?.nativeElement&&this.scroller().nativeElement.scrollTo(0,this.scroller().nativeElement.scrollHeight);}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=dw({type:o,selectors:[["app-service-hub"]],viewQuery:function(e,t){e&1&&$g(t.scroller,_t,5),e&2&&lC();},inputs:{isAlertsOpen:[1,"isAlertsOpen"],isNotificationsOpen:[1,"isNotificationsOpen"]},outputs:{isAlertsOpen:"isAlertsOpenChange",isNotificationsOpen:"isNotificationsOpenChange"},decls:10,vars:9,consts:()=>{let i;i=$localize` Notifications ${"\uFFFD#4\uFFFD"}:START_TAG_BUTTON:${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON:x-circle${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_BUTTON:`;let e;e=$localize` Alerts ${"\uFFFD#4\uFFFD"}:START_TAG_BUTTON:${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON:x-circle${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_BUTTON:`;let t;return t=$localize`No alerts yet`,[["scroller",""],["alerts",""],i,e,t,["shButton","",3,"click"],[1,"preview-alert-wrap"],[1,"alert-stream-modal"],[3,"index","notification"],[3,"class"],["ship-alert-title",""],["ship-alert-content",""],[1,"alert-stream-modal-content"],[1,"paragraph-20"],[1,"alert-stream-modal-list-scroller"],[1,"alert-stream-modal-list"],[3,"class","id"],[1,"no-alerts"],[3,"click","id"],["title",""],["content",""]]},template:function(e,t){if(e&1&&(Qi(0,"button",5),Fg("click",function(){return t.toggleAlerts()}),Qi(1,"sh-icon"),PC(2,"info"),Hl()(),Qi(3,"button",5),Fg("click",function(){return t.toggleNotifications()}),oT(4,ct,2,0,"sh-icon")(5,dt,2,0,"sh-icon"),Hl(),cm(6),oT(7,ht,3,1,"div",6),oT(8,mt,10,0,"div",7),oT(9,Et,12,1,"div",7)),e&2){bC(t.alertHistory().length?"error":""),DE(3),bC(t.notifications().length?"error":""),DE(),iT(t.notifications().length?4:5),DE(2);let n=BC(t.shownMessage());DE(),iT(n?7:-1),DE(),iT(t.isNotificationsOpen()?8:-1),DE(),iT(t.isAlertsOpen()?9:-1);}},dependencies:[Gn,ue,N,v,ie,h],styles:["[_nghost-%COMP%]{display:flex;position:fixed;gap:.5rem;bottom:1.5rem;right:1.5rem;z-index:5000}@media only screen and (max-width:768px){[_nghost-%COMP%]{bottom:1rem;right:1rem}}[_nghost-%COMP%] h6[_ngcontent-%COMP%]{margin:0}.preview-alert-wrap[_ngcontent-%COMP%]{position:absolute;bottom:2.6875rem;right:0;display:flex;flex-direction:column;min-width:15.625rem}.helpdesk-modal[_ngcontent-%COMP%]{position:absolute;bottom:2.6875rem;right:0;display:flex;flex-direction:column}@media only screen and (max-width:768px){.helpdesk-modal[_ngcontent-%COMP%]{bottom:2.6875rem}}.helpdesk-modal-content[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;gap:1rem;min-width:20rem;border:1px solid var(--base-4);background-color:var(--base-1);border-radius:var(--shape-2)}.helpdesk-modal-content[_ngcontent-%COMP%] .message-sent[_ngcontent-%COMP%]{padding:0 1rem 1rem;text-wrap:pretty}.helpdesk-modal-content[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{padding:1rem;border-bottom:1px solid var(--base-4);display:flex;align-items:center;justify-content:space-between}.helpdesk-modal-content[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{padding:0 1rem 1rem;display:flex;flex-direction:column;align-items:flex-end;gap:1rem}.helpdesk-modal-content[_ngcontent-%COMP%] form[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{width:100%;text-wrap:pretty}.helpdesk-modal-content[_ngcontent-%COMP%] form[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.alert-stream-modal[_ngcontent-%COMP%]{position:absolute;bottom:2.6875rem;right:0;display:flex;flex-direction:column}@media only screen and (max-width:768px){.alert-stream-modal[_ngcontent-%COMP%]{bottom:2.6875rem}}.alert-stream-modal-list-scroller[_ngcontent-%COMP%]{overflow-y:auto;max-height:18.75rem}.alert-stream-modal-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;padding:1rem;border-radius:var(--shape-2)}.alert-stream-modal-content[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;min-width:20rem;border:1px solid var(--base-4);background-color:var(--base-1);border-radius:var(--shape-2)}.alert-stream-modal-content[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{padding:1rem;border-bottom:1px solid var(--base-4);display:flex;align-items:center;justify-content:space-between}.no-alerts[_ngcontent-%COMP%]{padding:1rem;display:flex;flex-direction:column;gap:1rem;text-align:center}"]})};function ft(o,i){o&1&&(Qi(0,"sh-icon",14),PC(1,"check"),Hl());}function Ft(o,i){o&1&&(Qi(0,"sh-icon",15),PC(1,"prohibit"),Hl());}function At(o,i){if(o&1){let e=gT();Qi(0,"button",20),Fg("click",function(){Sd(e);let n=nC();return xd(n.updatePassphrase())}),XT(1,5),Hl();}if(o&2){let e=nC();Qg("loading",e.isUpdating());}}function Ot(o,i){if(o&1){let e=gT();Qi(0,"button",21),Fg("click",function(){Sd(e);let n=nC();return xd(n.updatePassphrase())}),XT(1,6),Hl();}if(o&2){let e=nC();Qg("loading",e.isUpdating()),gg("disabled",true);}}var K=class o{#e=T(C$1);closed=h1();isUpdating=Ue(false);passphrase=Ue("");repeatPassphrase=Ue("");updatePassphrase(){this.passphrase()===this.repeatPassphrase()&&(this.isUpdating.set(true),this.#e.patchApiV1Serversettings({requestBody:{"server-passphrase":this.passphrase()}}).pipe(Bu(()=>this.isUpdating.set(false))).subscribe({next:()=>this.closed.emit()}));}cancel(){this.isUpdating.set(true),this.#e.patchApiV1Serversettings({requestBody:{"has-asked-for-password-change":"True"}}).pipe(Bu(()=>this.isUpdating.set(false))).subscribe({next:()=>this.closed.emit()});}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=dw({type:o,selectors:[["app-change-passphrase-alert-dialog"]],outputs:{closed:"closed"},decls:23,vars:7,consts:()=>{let i;i=$localize`Enter new password`;let e;e=$localize`Repeat password`;let t;t=$localize`Password have to be filled and have to match`;let n;n=$localize`Change passphrase`;let r;r=$localize` Duplicati needs to be secured with a passphrase and a random passphrase has been generated for you. ${"[\uFFFD#6\uFFFD\uFFFD/#6\uFFFD|\uFFFD#7\uFFFD\uFFFD/#7\uFFFD]"}:LINE_BREAK:${"[\uFFFD#6\uFFFD\uFFFD/#6\uFFFD|\uFFFD#7\uFFFD\uFFFD/#7\uFFFD]"}:LINE_BREAK: If you open Duplicati from the tray icon, you do not need a passphrase, but if you plan to open it from another location you need to set a passphrase you know. Do you want to set a passphrase now? `,r=tC(r);let N;N=$localize`Passphrase`;let A;A=$localize`Repeat passphrase`;let O;O=$localize`Not now thanks`;let D;D=$localize` Yes, update passphrase now `;let E;return E=$localize` Yes, update passphrase now `,[n,r,N,A,O,D,E,["header",""],["content",""],["type","warning"],["for","password"],["type","password","name","password","autocomplete","disabled","placeholder",i,"tabindex","1",3,"ngModelChange","ngModel"],["for","repeatPassword"],["type","password","name","repeatPassword","autocomplete","disabled","placeholder",e,"tabindex","2",3,"ngModelChange","disabled","ngModel"],["suffix","",1,"sh-success"],["suffix",""],["footer",""],["shButton","",3,"click"],["shButton","",1,"raised","primary",3,"loading"],["shButton","","shTooltip",t,1,"raised","primary",3,"loading","disabled"],["shButton","",1,"raised","primary",3,"click"],["shButton","","shTooltip",t,1,"raised","primary",3,"click","disabled"]]},template:function(e,t){e&1&&(Qi(0,"header",7)(1,"h3"),XT(2,0),Hl()(),Qi(3,"div",8)(4,"sh-alert",9),Og(5,1),mg(6,"br")(7,"br"),Pg(),Hl(),Qi(8,"sh-form-field")(9,"label",10),XT(10,2),Hl(),Qi(11,"input",11),sm("ngModelChange",function(r){return HC(t.passphrase,r)||(t.passphrase=r),r}),Hl(),DD(),Hl(),Qi(12,"sh-form-field")(13,"label",12),XT(14,3),Hl(),Qi(15,"input",13),sm("ngModelChange",function(r){return HC(t.repeatPassphrase,r)||(t.repeatPassphrase=r),r}),Hl(),DD(),oT(16,ft,2,0,"sh-icon",14)(17,Ft,2,0,"sh-icon",15),Hl()(),Qi(18,"footer",16)(19,"button",17),Fg("click",function(){return t.cancel()}),XT(20,4),Hl(),oT(21,At,2,2,"button",18)(22,Ot,2,3,"button",19),Hl()),e&2&&(DE(11),im("ngModel",t.passphrase),TD(),DE(4),gg("disabled",t.passphrase().length===0),im("ngModel",t.repeatPassphrase),TD(),DE(),iT(t.passphrase().length!==0&&t.passphrase()===t.repeatPassphrase()?16:17),DE(3),Qg("loading",t.isUpdating()),DE(2),iT(t.passphrase().length!==0&&t.passphrase()===t.repeatPassphrase()?21:22));},dependencies:[Bn,Ze,Rn,Jt,ue,Fe,N,at$1,v],styles:["[_nghost-%COMP%]{display:block;--dialog-p: 1.5rem}[content][_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}"]})};var vt=()=>({exact:true});function Nt(o,i){o&1&&(Qi(0,"sh-icon"),PC(1,"sun"),Hl());}function Pt(o,i){o&1&&(Qi(0,"sh-icon"),PC(1,"moon"),Hl());}function Dt(o,i){if(o&1){let e=gT();Qi(0,"button",26),Fg("click",function(){Sd(e);let n=nC();return xd(n.logout())}),Og(1,8),mg(2,"sh-icon"),Pg(),Hl();}}var _e=class o{#e=T(m);#i=T(g);#n=T(g$1);#t=T(be);#o=T(l);#r=T(M);#a=T(O);#s=T(m$1);#l=T(ee);#_=T(C);relayIsEnabled=this.#n.relayIsEnabled;isDarkMode=this.#e.isDarkMode;isNavOpen=this.#e.isNavOpen;sidenavType=this.#e.sidenavType;hasShownPasswordDialog=false;machineName=Nt$1(()=>{let i=this.#a.serverSettings();if(i&&i["--machine-name"])return i["--machine-name"];if(i&&i["machine-name"])return i["machine-name"];let e=this.#s.allOptions().find(t=>t.name==="machine-name");return e&&e.defaultValue?e.defaultValue:this.#s.systemInfo()?.MachineName??"Unknown"});ngOnInit(){this.#o.init(),this.#i.getBackups(true);}serverSettingsEffect=Ga(()=>{if(!this.hasShownPasswordDialog&&(this.#a.askForInitialPasswordConfig()&&(this.hasShownPasswordDialog=true,this.#t.open(K,{maxWidth:"500px"})),this.#a.showWelcomePage())){let i=this.#_.state();i=="inactive"?this.#l.navigate(["/welcome"]):i!="unknown"&&this.#a.setShownWelcomePage();}});toggleBodyClass(){this.#e.toggleBodyClass();}changeDefaultClientTo(i){this.#c(i),window.location.replace(`/${i}`);}logout(){this.#r.logout();}#c(i){var e=new Date;e.setTime(e.getTime()+2160*60*60*1e3),document.cookie="default-client="+i+"; expires="+e.toUTCString()+"; path=/";}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=dw({type:o,selectors:[["app-layout"]],decls:44,vars:11,consts:()=>{let i;i=$localize`${"\uFFFD#10\uFFFD"}:START_TAG_SH_ICON:house${"\uFFFD/#10\uFFFD"}:CLOSE_TAG_SH_ICON: Home `;let e;e=$localize`${"\uFFFD#13\uFFFD"}:START_TAG_SH_ICON:database${"\uFFFD/#13\uFFFD"}:CLOSE_TAG_SH_ICON: Add backup `;let t;t=$localize`${"\uFFFD#16\uFFFD"}:START_TAG_SH_ICON:clock-counter-clockwise${"\uFFFD/#16\uFFFD"}:CLOSE_TAG_SH_ICON: Restore `;let n;n=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SH_ICON:link-simple${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SH_ICON: Destinations `;let r;r=$localize`${"\uFFFD#22\uFFFD"}:START_TAG_SH_ICON:gear${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SH_ICON: Settings `;let N;N=$localize`${"\uFFFD#32\uFFFD"}:START_TAG_SH_ICON:info${"\uFFFD/#32\uFFFD"}:CLOSE_TAG_SH_ICON: About Duplicati `;let A;A=$localize`${"\uFFFD#35\uFFFD"}:START_TAG_SH_ICON:files${"[\uFFFD/#35\uFFFD|\uFFFD/#36\uFFFD]"}:CLOSE_TAG_SH_ICON: Documentation ${"\uFFFD#36\uFFFD"}:START_TAG_SH_ICON_1:arrow-square-out${"[\uFFFD/#35\uFFFD|\uFFFD/#36\uFFFD]"}:CLOSE_TAG_SH_ICON:`,A=tC(A);let O;O=$localize`${"\uFFFD#39\uFFFD"}:START_TAG_SH_ICON:chats-circle${"[\uFFFD/#39\uFFFD|\uFFFD/#40\uFFFD]"}:CLOSE_TAG_SH_ICON: Visit forum ${"\uFFFD#40\uFFFD"}:START_TAG_SH_ICON_1:arrow-square-out${"[\uFFFD/#39\uFFFD|\uFFFD/#40\uFFFD]"}:CLOSE_TAG_SH_ICON:`,O=tC(O);let D;return D=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:sign-out${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Log out `,[i,e,t,n,r,N,A,O,D,[3,"isOpenChange","isOpen","disableDrag"],["sidenav",""],["shButton","",1,"icon","small",3,"click"],[1,"base-1","primary"],["action","","routerLink","/","routerLinkActive","active",3,"routerLinkActiveOptions"],["action","","routerLink","/add-backup","routerLinkActive","active"],["action","","routerLink","/restore","routerLinkActive","active"],["action","","routerLink","/destinations","routerLinkActive","active"],["action","","routerLink","/settings","routerLinkActive","active"],[1,"spacer"],[1,"base-1l","primary"],["action","",1,"machine-name",3,"title"],["action","","routerLink","/about","routerLinkActive","active"],["href","https://docs.duplicati.com","target","_blank","action",""],["suffix",""],["href","https://forum.duplicati.com","target","_blank","action",""],["action",""],["action","",3,"click"]]},template:function(e,t){e&1&&(Qi(0,"sh-sidenav",9),sm("isOpenChange",function(r){return HC(t.isNavOpen,r)||(t.isNavOpen=r),r}),Qi(1,"div",10)(2,"header"),mg(3,"app-logo"),Qi(4,"button",11),Fg("click",function(){return t.toggleBodyClass()}),oT(5,Nt,2,0,"sh-icon")(6,Pt,2,0,"sh-icon"),Hl()(),Qi(7,"sh-list",12)(8,"button",13),Og(9,0),mg(10,"sh-icon"),Pg(),Hl(),Qi(11,"button",14),Og(12,1),mg(13,"sh-icon"),Pg(),Hl(),Qi(14,"button",15),Og(15,2),mg(16,"sh-icon"),Pg(),Hl(),Qi(17,"button",16),Og(18,3),mg(19,"sh-icon"),Pg(),Hl(),Qi(20,"button",17),Og(21,4),mg(22,"sh-icon"),Pg(),Hl()(),mg(23,"div",18),Qi(24,"sh-list",19)(25,"div",20)(26,"sh-icon"),PC(27,"desktop"),Hl(),PC(28),Hl(),mg(29,"sh-divider"),Qi(30,"button",21),Og(31,5),mg(32,"sh-icon"),Pg(),Hl(),Qi(33,"a",22),Og(34,6),mg(35,"sh-icon")(36,"sh-icon",23),Pg(),Hl(),Qi(37,"a",24),Og(38,7),mg(39,"sh-icon")(40,"sh-icon",23),Pg(),Hl(),oT(41,Dt,3,0,"button",25),Hl()(),mg(42,"router-outlet")(43,"app-service-hub"),Hl()),e&2&&(bC(t.sidenavType()),im("isOpen",t.isNavOpen),gg("disableDrag",true),DE(5),iT(t.isDarkMode()?5:6),DE(3),gg("routerLinkActiveOptions",QC(10,vt)),DE(17),gg("title",UC(t.machineName())),DE(3),Gl(" ",t.machineName()," "),DE(13),iT(t.relayIsEnabled()?-1:41));},dependencies:[lr,_t$1,To,Ke,N,c,v,c$1,J,w],styles:["[_nghost-%COMP%]{height:100vh;width:100%;overflow:hidden}header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:1.25rem;gap:.75rem}h3[title][_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}div[sidenav][_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100vh}.machine-name[_ngcontent-%COMP%]{margin:0;cursor:default}"]})};
3
3
  export{_e as default};
@@ -0,0 +1,2 @@
1
+ import {OptionsListComponent as Oe$1}from'./chunk-Dgns65Zu.js';import {O}from'./chunk-DN6f5jXR.js';import {C as Ct$1,Z as Ze$1}from'./chunk-ByhuT4BS.js';import'./chunk-C4kBXz3C.js';import {S as Se}from'./chunk-Dh6x3lXP.js';import {I}from'./chunk-DD_QfWih.js';import {J}from'./chunk-khm9J_G0.js';import'./chunk-wyNyzSXi.js';import'./chunk-CegwkGVu.js';import {N as Nt$2}from'./chunk-CT9ziigM.js';import'./chunk-D5lj-fQk.js';import'./chunk-D6aNT_wo.js';import'./chunk-OLi7f6y7.js';import'./chunk-B2TXzbpy.js';import {T,ab as C,e as ee,aw as W,U as Ue,N as Nt$1,C as Bu,d as dw,f as N,v,Q as Qi,F as Fg,o as oT,aP as Ul,X as XT,aQ as Wl,s as sm,H as Hl,O as Og,j as mg,P as Pg,z as gg,D as DE,i as iT,w as im,bg as Q,m,aJ as ci,G as Ga,cj as Uu,aE as Fo,bI as fe$1,aH as m$1,au as Lg,av as eC,aD as zC,a6 as be,at as h,I as Qg,a$ as Vs,ck as iy,c3 as Bs,ay as $u,bJ as vy,cl as _y,aZ as ee$1,l as HC,p as DD,y as TD,k as gT,S as Sd,n as nC,x as xd,bf as ig,a3 as QC,q as PC,aM as tb,aB as rm,aN as ob,aa as Gl,aR as rb}from'./main-KFKZO6SJ.js';import'./chunk-DPNAj9Vc.js';import {d}from'./chunk-CRAg6SRo.js';import {F as Fe$1}from'./chunk-DuIUmwWN.js';import {j as jn,G as Gn,T as Tn,Z as Ze,R as Rn,P as Pn,g as gn,h as hn,B as Bn,J as Jt,y as yt$1,r as rn}from'./chunk-DipTNkHN.js';import'./chunk-Fw6nFDZK.js';import'./chunk-Ca1C9pJ0.js';import'./chunk-C-NgIZiF.js';import'./chunk-PVmXLw9b.js';import {L}from'./chunk-C7pjkqKB.js';function ut(i,t){i&1&&(Qi(0,"p"),XT(1,3),Hl());}function dt(i,t){i&1&&(Qi(0,"sh-form-field")(1,"label",11),XT(2,4),Hl(),mg(3,"input",12),DD(),Hl()),i&2&&(DE(3),TD());}var it=new jn,at=()=>it.group({passphrase:it.control("")}),Fe=class i{#e=T(C);#t=T(G);#i=T(ee);#n=T(W);encryptionForm=this.#t.encryptionForm;creatingTemporaryBackup=Ue(false);settings=Ue([]);hasEncryptedBackup=Nt$1(()=>{let t=this.#t.destinationTestSignal();return t==="testing"||typeof t=="string"?true:t?.containsEncryptedBackupFiles??true});showEncryptionField=Ue(false);next(){let t=this.#t.destinationTargetUrl();if(!t)throw new Error("No target URL");this.creatingTemporaryBackup.set(true);let e=this.encryptionForm.value?.passphrase??null,o=[];e?o.push({Name:"--passphrase",Value:e}):o.push({Name:"--no-encryption",Value:"true"}),this.settings().forEach(n=>{let r=n.Name?.trim();r&&r!=="--"&&(r.startsWith("--")||(r=`--${r}`),o.push({Name:r,Value:n.Value??""}));}),this.#e.postApiV1Backups({requestBody:{Backup:{TargetURL:t,Settings:o}},temporary:true}).pipe(Bu(()=>this.creatingTemporaryBackup.set(false))).subscribe({next:n=>{let r=n.ID;this.#i.navigate([`/restore-draft/${r}`]);},error:n=>{console.error(n);}});}back(){this.#t.isFileRestore()?this.#i.navigate(["destination"],{relativeTo:this.#n.parent}):this.#t.exit();}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=dw({type:i,selectors:[["app-restore-encryption"]],decls:14,vars:5,consts:()=>{let t;t=$localize`Advanced options`;let e;e=$localize`${"\uFFFD#10\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#10\uFFFD"}:CLOSE_TAG_SH_ICON: Back `;let o;o=$localize`${"\uFFFD#13\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#13\uFFFD"}:CLOSE_TAG_SH_ICON: Continue `;let n;n=$localize`The backup does not contain encrypted files.`;let r;r=$localize`Enter backup passphrase if defined.`;let _;return _=$localize`Password`,[t,e,o,n,_,[3,"submit","formGroup"],["title",""],[3,"optionsChange","options","hasFreeTextSettings"],[1,"form-actions"],["shButton","","type","button",3,"click"],["shButton","","type","submit",1,"raised","primary"],["for","password"],["type","password","id","password","autocomplete","disabled","placeholder",r,"formControlName","passphrase"]]},template:function(e,o){e&1&&(Qi(0,"form",5),Fg("submit",function(){return o.next()}),oT(1,ut,2,0,"p"),oT(2,dt,4,0,"sh-form-field"),Qi(3,"sh-toggle-card"),Ul(4,6),XT(5,0),Wl(),Qi(6,"app-options-list",7),sm("optionsChange",function(r){return HC(o.settings,r)||(o.settings=r),r}),Hl()(),Qi(7,"div",8)(8,"button",9),Fg("click",function(){return o.back()}),Og(9,1),mg(10,"sh-icon"),Pg(),Hl(),Qi(11,"button",10),Og(12,2),mg(13,"sh-icon"),Pg(),Hl()()()),e&2&&(gg("formGroup",o.encryptionForm),DE(),iT(o.hasEncryptedBackup()?-1:1),DE(),iT(o.hasEncryptedBackup()||o.showEncryptionField()?2:-1),DE(4),im("options",o.settings),gg("hasFreeTextSettings",true));},dependencies:[Gn,Tn,Ze,Rn,Pn,gn,hn,Fe$1,N,v,I,Oe$1],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"]})};var lt=()=>({standalone:true});function pt(i,t){i&1&&mg(0,"sh-progress-bar",13);}function mt(i,t){if(i&1&&(PC(0),tb(1,"bytes")),i&2){let e=nC().$implicit;Gl(" (",rb(1,1,e.FileSizes),") ");}}function St(i,t){i&1&&(Qi(0,"span",20),XT(1,4),Hl());}function Et(i,t){if(i&1&&(Qi(0,"div",19),PC(1),tb(2,"date"),oT(3,mt,2,3),oT(4,St,2,0,"span",20),Hl()),i&2){let e=t.$implicit;DE(),rm(" ",e.Version,": ",ob(2,4,e.Time,"medium")," "),DE(2),iT(e.FileSizes?3:-1),DE(),iT(e.IsFullBackup===false?4:-1);}}function Tt(i,t){i&1&&mg(0,"sh-progress-bar",13);}function gt(i,t){i&1&&(Qi(0,"sh-icon",28),PC(1,"spinner"),Hl());}function Ft(i,t){i&1&&(Qi(0,"sh-icon"),PC(1,"magnifying-glass"),Hl());}function Ct(i,t){if(i&1){let e=gT();Qi(0,"button",31),Fg("click",function(){Sd(e);let n=nC(4);return xd(n.clearSearch())}),Qi(1,"sh-icon"),PC(2,"x-circle"),Hl(),Qi(3,"span"),XT(4,8),Hl()();}}function Ot(i,t){i&1&&(Qi(0,"span"),XT(1,9),Hl());}function Nt(i,t){if(i&1&&(Qi(0,"span"),XT(1,10),Hl()),i&2){let e=nC(5);DE(),Lg(e.searchResults().length),eC(1);}}function ft(i,t){if(i&1&&(Qi(0,"div",30),oT(1,Ot,2,0,"span")(2,Nt,2,1,"span"),Hl()),i&2){let e=nC(4);DE(),iT(e.searchResults().length===0?1:2);}}function ht(i,t){if(i&1){let e=gT();Qi(0,"div",24)(1,"sh-form-field")(2,"label",25),XT(3,6),Hl(),Qi(4,"input",26),sm("ngModelChange",function(n){Sd(e);let r=nC(3);return HC(r.searchQuery,n)||(r.searchQuery=n),xd(n)}),Fg("keydown.enter",function(n){Sd(e);let r=nC(3);return n.preventDefault(),xd(r.performSearch())}),Hl(),DD(),Hl(),Qi(5,"button",27),Fg("click",function(){Sd(e);let n=nC(3);return xd(n.performSearch())}),oT(6,gt,2,0,"sh-icon",28)(7,Ft,2,0,"sh-icon"),Qi(8,"span"),XT(9,7),Hl()(),oT(10,Ct,5,0,"button",29),Hl(),oT(11,ft,3,1,"div",30);}if(i&2){let e=nC(3);DE(4),im("ngModel",e.searchQuery),gg("ngModelOptions",QC(6,lt)),TD(),DE(),gg("disabled",e.isSearching()||!e.searchQuery().trim()),DE(),iT(e.isSearching()?6:7),DE(4),iT(e.isSearchMode()?10:-1),DE(),iT(e.isSearchMode()&&!e.isSearching()?11:-1);}}function Rt(i,t){if(i&1){let e=gT();oT(0,ht,12,7),Qi(1,"app-file-tree",21),Fg("hasExtendedData",function(n){Sd(e);let r=nC(2);return xd(r.extendedDataType.set(n))}),Qi(2,"label",22),XT(3,5),Hl(),mg(4,"input",23),DD(),Hl();}if(i&2){let e=nC(2);iT(e.canSearch()?0:-1),DE(),gg("rootPaths",e.rootPaths())("initialNodes",e.initialNodes())("backupSettings",e.backupSettings())("multiSelect",true)("showFiles",true)("loadExtendedData",true)("searchMode",e.isSearchMode())("searchResults",e.searchResults()),DE(3),TD();}}function Pt(i,t){if(i&1){let e=gT();Qi(0,"sh-select",17),Fg("cleared",function(){Sd(e);let n=nC();return xd(n.abortLoading())}),Qi(1,"input",18),sm("ngModelChange",function(n){Sd(e);let r=nC();return HC(r.selectOption,n)||(r.selectOption=n),xd(n)}),Hl(),DD(),ig(2,Et,5,7,"ng-template"),Hl(),oT(3,Tt,1,0,"sh-progress-bar",13),oT(4,Rt,5,9);}if(i&2){let e=nC();gg("options",e.versionOptions())("isClearable",false),DE(),im("ngModel",e.selectOption),gg("ngModelOptions",QC(6,lt)),TD(),DE(2),iT(e.isRepairing()||e.versionOptionsLoading()||e.loadingRootPath()?3:-1),DE(),iT(e.showFileTree()?4:-1);}}var Oe=new jn,_t=()=>Oe.group({filesToRestore:Oe.control(""),passphrase:Oe.control(null)}),Ne=class i{#e=T(C);#t=T(G);#i=T(Q);#n=T(m);#o=T(ee);#r=T(W);#a=T(ci);#l=null;#_=null;#s=Ue([]);selectFilesForm=this.#t.selectFilesForm;selectFilesFormSignal=this.#t.selectFilesFormSignal;selectOption=this.#t.selectOption;backupId=this.#t.backupId;versionOptionsLoading=this.#t.versionOptionsLoading;versionOptions=this.#t.versionOptions;isFileRestore=this.#t.isFileRestore;extendedDataType=this.#t.extendedDataType;needsDatabaseRepair=Nt$1(()=>this.#t.backup()?.Backup?.IsTemporary??true);showFileTree=Ue(false);backupSettings=Ue(null);rootPaths=Ue([]);initialNodes=Ue([]);loadingRootPath=Ue(false);isRepairing=Nt$1(()=>this.#s().length>0);loadedVersions=Ue({});canSearch=Nt$1(()=>this.#n.hasV2ListOperations());searchQuery=Ue("");isSearching=Ue(false);searchResults=Ue([]);hasSearched=Ue(false);isSearchMode=Nt$1(()=>this.searchQuery().length>0&&this.hasSearched());loadingEffect=Ga(()=>{if(this.versionOptionsLoading())return;let e=this.versionOptions();if(e&&e?.length>0){let o=e[0].Version;this.selectOption.set(o.toString());}});backupSettingsEffect=Ga(()=>{let t=this.backupId(),e=this.selectOption(),o=this.isRepairing(),n=this.loadedVersions();if(!e||!t)return;let _=this.versionOptions()?.find(k=>k.Version===parseInt(e))?.Time??null;if(!_)return;let u=`${t}+${_}`,I=n[u];if(this.needsDatabaseRepair()&&(!I||o))return;let D={id:t+"",time:_};this.backupSettings.set(D),this.getRootPath(D);});repairEffect=Ga(()=>{if(!this.needsDatabaseRepair())return;let t=this.selectOption(),e=this.versionOptions();if(t){let o=e.find(_=>_.Version===parseInt(t));if(o===void 0)return;let n=this.backupId(),r=`${n}+${o.Time}`;if(this.#_===r||(this.#_=r,this.#s().includes(r)))return;this.#s.update(_=>[..._,r]),this.#e.postApiV1BackupByIdRepairupdate({id:n,requestBody:{only_paths:true,time:o.Time}}).pipe(Uu(this.abortLoading$),Bu(()=>{this.#_=null;})).subscribe(_=>{let u=_.ID;this.#i.waitForTaskToComplete(u).pipe(Fo(1)).subscribe(()=>{this.#s.update(I=>I.filter(D=>D!==r)),this.loadedVersions.update(I=>(I[r]=true,I));});});}});getRootPath(t){let e={id:t.id+"",time:t.time,prefixOnly:true,folderContents:false},o=t.id+"";this.isRepairing()||this.#l===o||(this.#l=o,this.loadingRootPath.set(true),this.showFileTree.set(false),this.#n.hasV2ListOperations()?this.#e.postApiV2BackupListFolder({requestBody:{BackupId:t.id,Time:t.time,Paths:null,PageSize:0,Page:0,ReturnExtended:true}}).pipe(Uu(this.abortLoading$),Bu(()=>{this.showFileTree.set(true),this.loadingRootPath.set(false),this.#l=null;})).subscribe({next:n=>{let r=(n.Data??[]).find(u=>u.Metadata&&u.Metadata.ExtType&&u.Metadata.ExtType.length>0);r&&this.extendedDataType.set(r.Metadata.ExtType);let _=(n.Data??[]).map(u=>u.Path??"");_.length>0?(this.initialNodes.set([]),this.rootPaths.set(_)):(this.initialNodes.set([]),this.rootPaths.set(["/"]));}}):this.#e.getApiV1BackupByIdFiles(e).pipe(Uu(this.abortLoading$),Bu(()=>{this.showFileTree.set(true),this.loadingRootPath.set(false);})).subscribe({next:n=>{let r=n.Files.map(_=>_.Path??"");r.length>0?(this.initialNodes.set([]),this.rootPaths.set(r)):(this.initialNodes.set([]),this.rootPaths.set(["/"]));}}));}abortLoading$=new fe$1;abortLoading(){this.showFileTree.set(false),this.loadingRootPath.set(false),this.abortLoading$.next(true);}displayFn(){let t=this.versionOptions();return e=>{if(!e)return "";let o=t?.find(n=>typeof n.Version=="number"&&n.Version.toString()===e);return o?`${o.Version}: ${this.#a.transform(o.Time,"medium")}`:""}}next(){this.#o.navigate(["options"],{relativeTo:this.#r.parent});}back(){this.#t.isFileRestore()?this.#o.navigate(["encryption"],{relativeTo:this.#r.parent}):this.#t.exit();}performSearch(){let t=this.searchQuery().trim(),e=this.backupSettings(),o=(this.#t.extendedDataType()??"").length>0;if(!t||!e)return;let r=this.versionOptions()?.find(_=>_.Version===parseInt(this.selectOption()??""))?.Version;r!=null&&(this.isSearching.set(true),this.searchResults.set([]),this.hasSearched.set(true),this.#e.postApiV2BackupSearch({requestBody:{BackupId:e.id,Time:null,Version:[r],Filters:[t],Paths:null,PageSize:1e3,Page:0,ReturnExtended:o,SearchMetadata:o}}).pipe(Uu(this.abortLoading$),Bu(()=>this.isSearching.set(false))).subscribe({next:_=>{this.searchResults.set(_.Data??[]);},error:()=>{this.searchResults.set([]);}}));}clearSearch(){this.searchQuery.set(""),this.searchResults.set([]),this.hasSearched.set(false);}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=dw({type:i,selectors:[["app-select-files"]],features:[zC([ci])],decls:13,vars:3,consts:()=>{let t;t=$localize`Select files`;let e;e=$localize`${"\uFFFD#9\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SH_ICON: ${"\uFFFD0\uFFFD"}:INTERPOLATION: `;let o;o=$localize`${"\uFFFD#12\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SH_ICON: Continue `;let n;n=$localize`Select an option...`;let r;r=$localize`(partial)`;let _;_=$localize`Path`;let u;u=$localize`Enter search term...`;let I;I=$localize`Search files`;let D;D=$localize`Search`;let k;k=$localize`Clear`;let oe;oe=$localize`0 results found`;let ne;return ne=$localize`Found ${"\uFFFD0\uFFFD"}:INTERPOLATION: result(s)`,[["formRef",""],t,e,o,r,_,I,D,k,oe,ne,[3,"submit","formGroup"],[1,"title-30"],[1,"indeterminate","primary"],[1,"form-actions"],["shButton","","type","button",3,"click"],["shButton","","type","submit",1,"raised","primary"],["value","Version",3,"cleared","options","isClearable"],["type","text","placeholder",n,3,"ngModelChange","ngModel","ngModelOptions"],[1,"custom-option"],[1,"partial"],[3,"hasExtendedData","rootPaths","initialNodes","backupSettings","multiSelect","showFiles","loadExtendedData","searchMode","searchResults"],["for","path"],["type","text","id","path","formControlName","filesToRestore"],[1,"search-container"],["for","search"],["type","text","id","search","placeholder",u,3,"ngModelChange","keydown.enter","ngModel","ngModelOptions"],["shButton","","type","button",1,"small",3,"click","disabled"],[1,"spinner"],["shButton","","type","button",1,"small","secondary"],[1,"search-results-info"],["shButton","","type","button",1,"small","secondary",3,"click"]]},template:function(e,o){e&1&&(Qi(0,"form",11,0),Fg("submit",function(){return o.next()}),Qi(2,"h3",12),XT(3,1),Hl(),oT(4,pt,1,0,"sh-progress-bar",13)(5,Pt,5,7),Qi(6,"div",14)(7,"button",15),Fg("click",function(){return o.back()}),Og(8,2),mg(9,"sh-icon"),Pg(),Hl(),Qi(10,"button",16),Og(11,3),mg(12,"sh-icon"),Pg(),Hl()()()),e&2&&(gg("formGroup",o.selectFilesForm),DE(4),iT(o.versionOptionsLoading()?4:5),DE(5),Lg(o.isFileRestore()?"Back":"Exit"),eC(8));},dependencies:[Bn,Tn,Ze,Rn,Pn,Jt,Gn,gn,hn,Se,v,Fe$1,N,Nt$2,d,ci,m$1],styles:["[_nghost-%COMP%]{display:block;margin-top:2.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.partial[_ngcontent-%COMP%]{color:var(--base-9);font-style:italic}.search-container[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.search-container[_ngcontent-%COMP%] sh-form-field[_ngcontent-%COMP%]{flex:1}.search-results-info[_ngcontent-%COMP%]{color:var(--base-8);font-size:var(--small)}"]})};var G=class i{#e=T(ee);#t=T(W);#i=T(m);#n=T(be);#o=T(C);backupId=Ue(null);backup=Ue(null);destinationTargetUrl=Ue(null);destinationTestSignal=Ue(null);selectFilesForm=_t();optionsForm=ct();encryptionForm=at();optionsFormSignal=L(this.optionsForm.valueChanges);selectFilesFormSignal=L(this.selectFilesForm.valueChanges);selectOption=Ue(null);versionOptionsLoading=Ue(false);versionOptions=Ue([]);isSubmitting=Ue(false);isFileRestore=Ue(false);isFullWidthPage=Ue(false);extendedDataType=Ue(null);alternateRestorePath=Ue(null);alternateRestorePathSourcePrefix=Ue(null);init(t,e=false){this.backupId.set(t),this.isFileRestore.set(e),this.alternateRestorePath.set(null),this.extendedDataType.set(null),e&&this.#e.navigate(["/restore-from-files/destination"]),e||this.getBackup();}updateTargetUrl(t){this.destinationTargetUrl.set(t);}setAlternateRestorePath(t,e){this.alternateRestorePath.set(t),this.alternateRestorePathSourcePrefix.set(e);}submit(){this.isSubmitting.set(true);let t=this.backupId();this.backup()?.Backup?.IsTemporary??false?this.#o.postApiV1BackupByIdCopytotemp({id:this.backupId()??""}).subscribe({next:o=>{this.#r(o.ID??"");},error:o=>this.showErrorDialog($localize`An error occurred while copying the backup to a temporary location: ${o.message}`)}):this.#r(t??"");}showErrorDialog(t){this.#n.open(h,{data:{title:$localize`Error occured`,message:t,confirmText:$localize`OK`,cancelText:void 0},closed:e=>{}});}#r(t){let e=this.optionsForm.value,o=this.selectFilesForm.value,n=this.selectOption(),r=this.versionOptions()?.find(_=>_.Version===(n&&parseInt(n)));this.#o.postApiV1BackupByIdRestore({id:t??"",requestBody:{paths:o.filesToRestore?.split("\0").map(_=>_.endsWith("/")||_.endsWith("\\")?`${_}*`:_)??[],passphrase:o.passphrase??null,time:r?.Time,restore_path:this.alternateRestorePath()??e.restoreFromPath,overwrite:e.handleExisting==="overwrite",permissions:e.permissions,skip_metadata:!e.includeMetadata,source_prefix:this.alternateRestorePathSourcePrefix(),connection_string_id:null}}).pipe(Bu(()=>this.isSubmitting.set(false))).subscribe({next:_=>{this.#e.navigate([`./${_.ID}`,"progress"],{relativeTo:this.#t});},error:_=>{console.error("restore error",_);}});}exit(){this.#n.open(h,{data:{title:$localize`Confirm exit?`,message:$localize`Are you sure you want to exit?`,confirmText:$localize`Yes`,cancelText:$localize`Cancel`},closed:t=>{t&&(this.#a(),this.#e.navigate(["/"]));}});}getVersionOptions(){this.versionOptions();}loadFilesetsWithRetryv2(t,e=2){return this.#o.postApiV2BackupListFilesets({requestBody:{BackupId:t}}).pipe(Vs(o=>{let n=o?.error?.body?.StatusCode??o?.error?.requestBody?.StatusCode;return n==="EncryptedStorageNoPassphrase"||n==="FolderMissing"||n==="EmptyRemoteFolder"||e===0?iy(()=>o):Bs(1e3).pipe($u(()=>this.loadFilesetsWithRetryv2(t,e-1)))}))}getBackup(){let t=this.backupId();this.versionOptionsLoading.set(true),this.#i.hasV2ListOperations()?vy([this.#o.getApiV1BackupById({id:t}),this.loadFilesetsWithRetryv2(t)]).pipe(Fo(1),Bu(()=>this.versionOptionsLoading.set(false))).subscribe({next:([e,o])=>{if(o.Error)throw new Error(o.Error);if(!(e.Backup?.IsTemporary??true)&&e?.Backup?.DBPathExists===false){this.#n.open(h,{data:{title:$localize`Missing Local Database`,message:$localize`The local database for this backup is missing. Please repair or recreate the local database before restoring.`,confirmText:$localize`OK`,cancelText:void 0},closed:r=>{this.#e.navigate(["/backup",t,"database"]);}});return}this.versionOptions.set((o.Data??[]).map(r=>({Version:r.Version??-1,IsFullBackup:r.IsFullBackup??void 0,Time:r.Time??"<missing>",FileCount:r.FileCount??void 0,FileSizes:r.FileSizes??void 0}))),this.backup.set(e);},error:e=>{let o=e?.error?.body?.StatusCode??e?.error?.requestBody?.StatusCode,n=o==="EncryptedStorageNoPassphrase",r=o==="FolderMissing",_=o==="EmptyRemoteFolder",u=$localize`An error occurred while loading the backup filesets: ${e.message}`;n&&(u=$localize`The remote storage is encrypted. Please enter the passphrase to access the backup.`),r&&(u=$localize`The backup storage folder was not found.`),_&&(u=$localize`The backup storage folder does not contain any filesets.`),this.#n.open(h,{data:{title:$localize`Failed to load backup filesets`,message:u,confirmText:$localize`OK`,cancelText:void 0},closed:I=>{this.#e.navigate([n?"/restore-from-files/encryption":"/restore-from-files/destination"]);}});}}):vy([this.#o.getApiV1BackupById({id:t}),this.#o.getApiV1BackupByIdFilesets({id:t}).pipe(_y(3))]).pipe(Fo(1),Bu(()=>this.versionOptionsLoading.set(false))).subscribe({next:([e,o])=>{this.versionOptions.set(o.map(n=>({Version:n.Version??-1,IsFullBackup:(n.IsFullBackup??1)==1,Time:n.Time??"<missing>",FileCount:n.FileCount??void 0,FileSizes:n.FileSizes??void 0}))),this.backup.set(e);}});}#a(){this.selectFilesForm.reset(),this.optionsForm.reset();}static \u0275fac=function(e){return new(e||i)};static \u0275prov=ee$1({token:i,factory:i.\u0275fac,providedIn:"root"})};function It(i,t){if(i&1){let e=gT();Qi(0,"sh-radio",27),Og(1,6),mg(2,"input",31),DD(),Pg(),Hl(),Qi(3,"sh-radio",27),Og(4,7),Qi(5,"input",32),Fg("click",function(){Sd(e);let n=nC(2);return xd(n.chooseCustomRemoteDestination())}),Hl(),DD(),Pg(),Hl();}i&2&&(DE(2),TD(),DE(3),TD());}function Mt(i,t){if(i&1){let e=gT();Qi(0,"sh-radio",27),Og(1,8),mg(2,"input",31),DD(),Pg(),Hl(),Qi(3,"sh-radio",27),Og(4,9),Qi(5,"input",32),Fg("click",function(){Sd(e);let n=nC(2);return xd(n.chooseCustomRemoteDestination())}),Hl(),DD(),Pg(),Hl();}i&2&&(DE(2),TD(),DE(3),TD());}function Lt(i,t){if(i&1&&(Qi(0,"app-file-tree",29)(1,"label",33),PC(2,"Path"),Hl(),mg(3,"input",34),DD(),Hl()),i&2){let e=nC(2);gg("disabled",e.optionsFormSignal()?.restoreFrom!=="pickLocation")("enableCreateFolder",true)("resolvePaths",true),DE(3),TD();}}function yt(i,t){if(i&1&&(Qi(0,"app-file-tree",30)(1,"label",33),PC(2,"Path"),Hl(),mg(3,"input",34),DD(),Hl()),i&2){let e=nC(2);gg("customRemoteMode",e.extendedDataType())("backupId",e.backupId())("sourcePrefix",e.remoteCustomSourcePrefix())("destinationUrl",e.customDestinationUrl()),DE(3),TD();}}function Dt(i,t){if(i&1&&(oT(0,It,6,0)(1,Mt,6,0),Qi(2,"sh-radio",27),Og(3,5),mg(4,"input",28),DD(),Pg(),Hl(),oT(5,Lt,4,3,"app-file-tree",29),oT(6,yt,4,4,"app-file-tree",30)),i&2){let e=nC();iT(e.extendedDataType()==="o365"?0:e.extendedDataType()==="gsuite"?1:-1),DE(4),TD(),DE(),iT(e.optionsFormSignal()?.restoreFrom==="pickLocation"?5:-1),DE(),iT(e.showCustomRemoteRestoreTree()?6:-1);}}function bt(i,t){if(i&1&&(Qi(0,"sh-radio",27),Og(1,10),mg(2,"input",35),DD(),Pg(),Hl(),Qi(3,"sh-radio",27),Og(4,11),mg(5,"input",28),DD(),Pg(),Hl(),Qi(6,"app-file-tree",29)(7,"label",33),PC(8,"Path"),Hl(),mg(9,"input",34),DD(),Hl()),i&2){let e=nC();DE(2),TD(),DE(3),TD(),DE(),gg("disabled",e.optionsFormSignal()?.restoreFrom!=="pickLocation")("enableCreateFolder",true)("resolvePaths",true),DE(3),TD();}}function $t(i,t){i&1&&(Qi(0,"app-toggle-card",22),Ul(1,23),XT(2,12),Wl(),Qi(3,"sh-toggle",27),Og(4,13),mg(5,"input",36),DD(),Pg(),Hl()()),i&2&&(gg("disableToggle",true),DE(5),TD());}function vt(i,t){i&1&&(Qi(0,"app-toggle-card",22),Ul(1,23),XT(2,14),Wl(),Qi(3,"sh-radio",27),Og(4,15),mg(5,"input",37),DD(),Pg(),Hl(),Qi(6,"sh-radio",27),Og(7,16),mg(8,"input",38),DD(),Pg(),Hl()(),Qi(9,"app-toggle-card"),Ul(10,23),XT(11,17),Wl(),Qi(12,"sh-toggle",39),Og(13,18),mg(14,"input",40),DD(),Pg(),Hl(),Qi(15,"sh-toggle",39),Og(16,19),mg(17,"input",41),DD(),Pg(),Hl()()),i&2&&(gg("disableToggle",true),DE(5),TD(),DE(3),TD(),DE(6),TD(),DE(3),TD());}var B=new jn,ct=()=>B.group({restoreFrom:B.control("original"),restoreFromPath:B.control(""),handleExisting:B.control("saveTimestamp"),permissions:B.control(false),includeMetadata:B.control(true),customRemoteIgnoreExisting:B.control(false)}),fe=class i{#e=T(G);#t=T(ee);#i=T(W);#n=T(m);#o=T(be);optionsForm=this.#e.optionsForm;optionsFormSignal=this.#e.optionsFormSignal;isSubmitting=this.#e.isSubmitting;extendedData=this.#e.extendedDataType;remoteCustomTargetUrl=Ue(null);backupId=Nt$1(()=>this.#e.backup()?.Backup?.ID??null);extendedDataType=Nt$1(()=>{let t=this.#e.extendedDataType();return t==="o365"?"o365":t==="gsuite"?"gsuite":null});remoteCustomSourceEntry=Nt$1(()=>this.#e.backup()?.Backup?.Sources?.filter(t=>t.startsWith("@")&&(t.includes("|office365://")||t.includes("|googleworkspace://")))[0]??null);remoteCustomSourceUrl=Nt$1(()=>this.remoteCustomSourceEntry()?.split("|")[1]??null);remoteCustomSourcePrefix=Nt$1(()=>this.remoteCustomSourceEntry()?.split("|")[0]??null);customDestinationUrl=Nt$1(()=>{let t=this.optionsFormSignal()?.restoreFrom,e=this.extendedDataType()!==null;return t==="same-custom"&&e?this.remoteCustomSourceUrl():t==="other-custom"&&e?this.remoteCustomTargetUrl():null});showCustomRemoteRestoreTree=Nt$1(()=>!!(this.optionsFormSignal()?.restoreFrom==="same-custom"&&this.customDestinationUrl()&&this.backupId()||this.optionsFormSignal()?.restoreFrom==="other-custom"&&this.customDestinationUrl()));isCustomRemoteRestore=Nt$1(()=>{let t=this.optionsFormSignal()?.restoreFrom;return t==="same-custom"||t==="other-custom"});chooseCustomRemoteDestination(){let t=this.extendedDataType()==="o365"?"office365://":"googleworkspace://";return this.#o.open(Ct$1,{maxWidth:"700px",maxHeight:"80vh",width:"100%",closeOnOutsideClick:false,data:{targetUrlModel:this.remoteCustomTargetUrl()||this.remoteCustomSourceUrl()||t,moduleType:"RestoreDestinationProvider",askToCreate:true,expectedResult:"any",suppressErrorDialogs:true,backupId:this.backupId(),sourcePrefix:this.remoteCustomSourcePrefix()}}).closed.subscribe(o=>{o&&(this.remoteCustomTargetUrl.set(o),this.optionsForm.controls.restoreFrom.setValue("other-custom"));}),false}#r=Ga(()=>{let t=this.optionsFormSignal()?.restoreFrom;this.extendedDataType()!=null&&(t==="original"||t===void 0)&&(this.optionsForm.controls.restoreFrom.setValue("pickLocation"),this.optionsForm.controls.handleExisting.setValue("overwrite")),this.extendedDataType()==null&&(t==="same-custom"||t==="other-custom")&&(this.optionsForm.controls.restoreFrom.setValue("original"),this.optionsForm.controls.handleExisting.setValue("saveTimestamp"));});goBack(){this.#t.navigate(["select-files"],{relativeTo:this.#i.parent});}submit(){let t=this.#e.selectFilesFormSignal()?.filesToRestore??[];if(t.length>0&&this.optionsFormSignal()?.restoreFrom=="original"&&(t[0].includes("/")?"/":"\\")!==this.#n.systemInfo()?.DirectorySeparator){this.#o.open(h,{data:{title:$localize`Confirm target folder`,message:$localize`This backup was created on another operating system. Restoring files without specifying a destination folder can cause files to be restored in unexpected places. Are you sure you want to continue without choosing a destination folder?`,confirmText:$localize`Yes`,cancelText:$localize`Cancel`},closed:n=>{n&&this.#e.submit();}});return}if(this.optionsFormSignal()?.restoreFrom==="same-custom"||this.optionsFormSignal()?.restoreFrom==="other-custom"){let o=this.optionsFormSignal()?.restoreFromPath;if(o&&o.startsWith("/")&&(o=o.substring(1)),!o||o.trim()===""){this.#o.open(h,{data:{title:$localize`No path specified`,message:this.extendedDataType()==="gsuite"?$localize`Please choose a path to restore to in the Google Workspace account.`:$localize`Please choose a path to restore to in the Microsoft 365 tenant.`,confirmText:$localize`OK`,cancelText:void 0}});return}let n=this.optionsFormSignal()?.customRemoteIgnoreExisting,r=this.customDestinationUrl()?.substring(this.customDestinationUrl().indexOf("?")),_=this.extendedDataType()==="gsuite"?`@googleworkspace://${encodeURIComponent(o)}${r}&google-ignore-existing=${n?"true":"false"}`:`@office365://${encodeURIComponent(o)}${r}&office365-ignore-existing=${n?"true":"false"}`;this.#e.setAlternateRestorePath(_,this.remoteCustomSourcePrefix()),this.optionsForm.controls.includeMetadata.setValue(true),this.optionsForm.controls.permissions.setValue(true);}else this.#e.setAlternateRestorePath(null,null);this.#e.submit();}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=dw({type:i,selectors:[["app-advanced-options-settings"]],decls:18,vars:6,consts:()=>{let t;t=$localize`Restore options`;let e;e=$localize`Where do you want to restore files to?`;let o;o=$localize`${"\uFFFD#14\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#14\uFFFD"}:CLOSE_TAG_SH_ICON: Go back `;let n;n=$localize`${"\uFFFD#17\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#17\uFFFD"}:CLOSE_TAG_SH_ICON: Submit `;let r;r=$localize` Local file system ${"\uFFFD#4\uFFFD\uFFFD/#4\uFFFD"}:TAG_INPUT:`;let _;_=$localize` Same Microsoft 365 Tenant ${"\uFFFD#2\uFFFD\uFFFD/#2\uFFFD"}:TAG_INPUT:`;let u;u=$localize` Different Microsoft 365 Tenant ${"\uFFFD#5\uFFFD\uFFFD/#5\uFFFD"}:TAG_INPUT:`;let I;I=$localize` Same Google Workspace Account ${"\uFFFD#2\uFFFD\uFFFD/#2\uFFFD"}:TAG_INPUT:`;let D;D=$localize` Different Google Workspace Account ${"\uFFFD#5\uFFFD\uFFFD/#5\uFFFD"}:TAG_INPUT:`;let k;k=$localize` Original location ${"\uFFFD#2\uFFFD\uFFFD/#2\uFFFD"}:TAG_INPUT:`;let oe;oe=$localize` Pick location ${"\uFFFD#5\uFFFD\uFFFD/#5\uFFFD"}:TAG_INPUT:`;let ne;ne=$localize`Restore settings`;let P;P=$localize` Ignore existing resources in the destination ${"\uFFFD#5\uFFFD\uFFFD/#5\uFFFD"}:TAG_INPUT:`;let he;he=$localize`How do you want to handle existing files?`;let Re;Re=$localize` Overwrite ${"\uFFFD#5\uFFFD\uFFFD/#5\uFFFD"}:TAG_INPUT:`;let Pe;Pe=$localize` Save different versions with timestamp in file name ${"\uFFFD#8\uFFFD\uFFFD/#8\uFFFD"}:TAG_INPUT:`;let Ie;Ie=$localize`Metadata settings`;let Me;Me=$localize` Restore file metadata ${"\uFFFD#14\uFFFD\uFFFD/#14\uFFFD"}:TAG_INPUT:`;let Le;return Le=$localize` Restore read/write permissions ${"\uFFFD#17\uFFFD\uFFFD/#17\uFFFD"}:TAG_INPUT:`,[["formRef",""],t,e,o,n,r,_,u,I,D,k,oe,ne,P,he,Re,Pe,Ie,Me,Le,[3,"submit","formGroup"],[1,"title-30"],[3,"disableToggle"],["title",""],[1,"form-actions"],["shButton","","type","button",3,"click"],["shButton","","type","submit",1,"raised","primary"],[1,"raised","primary"],["type","radio","name","restoreFrom","value","pickLocation","formControlName","restoreFrom"],[3,"disabled","enableCreateFolder","resolvePaths"],[3,"customRemoteMode","backupId","sourcePrefix","destinationUrl"],["type","radio","name","restoreFrom","value","same-custom","formControlName","restoreFrom"],["type","radio","name","restoreFrom","value","other-custom","formControlName","restoreFrom",3,"click"],["for","path"],["type","text","id","path","formControlName","restoreFromPath"],["type","radio","name","restoreFrom","value","original","formControlName","restoreFrom"],["type","checkbox","formControlName","customRemoteIgnoreExisting"],["type","radio","name","handleExisting","value","overwrite","formControlName","handleExisting"],["type","radio","name","handleExisting","value","saveTimestamp","formControlName","handleExisting"],[1,"primary","raised"],["type","checkbox","formControlName","includeMetadata"],["type","checkbox","formControlName","permissions"]]},template:function(e,o){e&1&&(Qi(0,"form",20,0),Fg("submit",function(){return o.submit()}),Qi(2,"h3",21),XT(3,1),Hl(),Qi(4,"app-toggle-card",22),Ul(5,23),XT(6,2),Wl(),oT(7,Dt,7,3)(8,bt,10,3),Hl(),oT(9,$t,6,1,"app-toggle-card",22)(10,vt,18,1),Qi(11,"div",24)(12,"button",25),Fg("click",function(){return o.goBack()}),Og(13,3),mg(14,"sh-icon"),Pg(),Hl(),Qi(15,"button",26),Og(16,4),mg(17,"sh-icon"),Pg(),Hl()()()),e&2&&(gg("formGroup",o.optionsForm),DE(4),gg("disableToggle",true),DE(3),iT(o.extendedDataType()!==null?7:8),DE(2),iT(o.isCustomRemoteRestore()?9:10),DE(6),Qg("loading",o.isSubmitting()));},dependencies:[Gn,Tn,Ze,yt$1,rn,Rn,Pn,gn,hn,Ze$1,Se,J,O,v,N],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"]})};
2
+ var chunkWGOXACAK=/*#__PURE__*/Object.freeze({__proto__:null,createEncryptionForm:at,default:Fe});var chunk3VX6DNZL=/*#__PURE__*/Object.freeze({__proto__:null,createRestoreSelectFilesForm:_t,default:Ne});var chunkVCUP6QAX=/*#__PURE__*/Object.freeze({__proto__:null,createRestoreOptionsForm:ct,default:fe});export{G,chunk3VX6DNZL as a,chunkVCUP6QAX as b,chunkWGOXACAK as c};
@@ -1,2 +1,2 @@
1
- import {b as g1,G as Ga,c as me,T,ae as Jr,bZ as us,b_ as pe,by as ae,U as Ue,b4 as mw,F as Fg,ag as zg,I as Qg,N as Nt,b$ as $r,ad as br,bE as yD,d as dw,bs as ei,Q as Qi,o as oT,H as Hl,D as DE,i as iT,aC as hg,bf as ig,n as nC,z as gg,a_ as ZC,q as PC,aa as Gl,bu as Ig}from'./main-TZVLLK67.js';var z=r=>({$implicit:r});function U(r,w){r&1&&Ig(0);}function F(r,w){if(r&1&&ig(0,U,1,0,"ng-container",1),r&2){let t=nC();gg("ngTemplateOutlet",t.content())("ngTemplateOutletContext",ZC(2,z,t.tooltipContext));}}function $(r,w){if(r&1&&PC(0),r&2){let t=nC();Gl(" ",t.content()," ");}}var X=(()=>{class r{constructor(){this.positionAnchorName=g1.required(),this.anchorEl=g1.required(),this.isOpen=g1(false),this.content=g1(),this.close=g1(()=>{}),this.tooltipContext={close:()=>this.close()()},this.isTemplate=Nt(()=>this.content()instanceof $r),this.#p=T(br),this.#n=T(Jr),this.#e=T(yD),this.#t=null,this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.isBelow=Ue(false),this.openEffect=Ga(()=>{if(this.isOpen())queueMicrotask(()=>{let t=this.#n.nativeElement;!t||!t.isConnected||(this.#t&&this.#t.abort(),this.#t=new AbortController,t.showPopover(),this.SUPPORTS_ANCHOR||setTimeout(()=>{this.#i(t).addEventListener("scroll",()=>this.#o(),{signal:this.#t?.signal,passive:true}),window?.addEventListener("resize",()=>this.#o(),{signal:this.#t?.signal,passive:true}),this.#o();}));});else {let t=this.#n.nativeElement;if(t)try{t.matches(":popover-open")&&t.hidePopover();}catch{}this.#t?.abort(),this.#t=null;}}),this.#o=()=>{if(!this.anchorEl())return;let t=this.anchorEl().nativeElement.getBoundingClientRect(),e=this.#n.nativeElement,n=e.getBoundingClientRect();if(n.width===0&&n.height===0)return;let p=8,h=(i,s)=>({left:i.left+i.width/2-s.width/2,top:i.top-s.height-p}),j=[h,(i,s)=>({left:i.right-s.width,top:i.top-s.height-p}),(i,s)=>({left:i.left,top:i.top-s.height-p}),(i,s)=>({left:i.left+i.width/2-s.width/2,top:i.bottom+p}),(i,s)=>({left:i.right-s.width,top:i.bottom+p}),(i,s)=>({left:i.left,top:i.bottom+p})];for(let i of j){let s=i(t,n);if(this.#r(s,n)){this.#s(s,e),this.isBelow.set(s.top>t.top);return}}let v=this.#l(h(t,n),n);this.#s(v,e),this.isBelow.set(v.top>t.top);};}#p;#n;#e;#t;ngOnDestroy(){this.#t?.abort(),this.#t=null;}#i(t){let e=["scroll","auto"],n=t.parentElement;for(;n;){if(e.indexOf(window?.getComputedStyle(n).overflowY)>-1&&n.scrollHeight>n.clientHeight)return n;n=n.parentElement;}return this.#p.documentElement}#o;#s(t,e){this.#e.setStyle(e,"left",`${t.left}px`),this.#e.setStyle(e,"top",`${t.top}px`),this.#e.setStyle(e,"position","fixed"),this.#e.setStyle(e,"margin","0");}#r(t,e){return t.left>=0&&t.top>=0&&t.left+e.width<=window.innerWidth&&t.top+e.height<=window.innerHeight}#l(t,e){return {left:Math.max(0,Math.min(t.left,window.innerWidth-e.width)),top:Math.max(0,Math.min(t.top,window.innerHeight-e.height))}}static{this.\u0275fac=function(e){return new(e||r)};}static{this.\u0275cmp=dw({type:r,selectors:[["ship-tooltip-wrapper"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(e,n){e&2&&(hg("popover","manual"),zg("position-anchor",n.positionAnchorName()),Qg("below",n.isBelow()));},inputs:{positionAnchorName:[1,"positionAnchorName"],anchorEl:[1,"anchorEl"],isOpen:[1,"isOpen"],content:[1,"content"],close:[1,"close"]},decls:3,vars:1,consts:[[1,"tooltip-content"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,n){e&1&&(Qi(0,"div",0),oT(1,F,1,4,"ng-container")(2,$,1,1),Hl()),e&2&&(DE(),iT(n.isTemplate()?1:2));},dependencies:[ei],styles:[`.tooltip{position:relative;display:flex;pointer-events:initial!important}.tooltip:after{content:"";position:absolute;inset:-.5rem;z-index:1}.tooltip.primary+ship-tooltip-wrapper{--tt-bg: var(--primary-2);--tt-c: var(--primary-8)}.tooltip.accent+ship-tooltip-wrapper{--tt-bg: var(--accent-2);--tt-c: var(--accent-8)}.tooltip.warn+ship-tooltip-wrapper{--tt-bg: var(--warn-2);--tt-c: var(--warn-8)}.tooltip.error+ship-tooltip-wrapper{--tt-bg: var(--error-2);--tt-c: var(--error-8)}.tooltip.success+ship-tooltip-wrapper{--tt-bg: var(--success-2);--tt-c: var(--success-8)}.tooltip.active{z-index:1}.tooltip.active+ship-tooltip-wrapper{z-index:1}@supports (anchor-name: --anchor){.tooltip.active+ship-tooltip-wrapper .tooltip-content{transform:translateY(0) scaleY(1) scaleX(1)}}ship-tooltip-wrapper{--tt-bg: var(--base-3);--tt-c: var(--base-12);--tt-mh: 8.5rem;--tt-mw: 17.5rem;--tt-translate-y: 50%;position:fixed;font:var(--paragraph-30);width:max-content;overflow:visible;box-shadow:none;background:transparent;border:0;padding:0;margin:0;margin-block-end:.75rem}@supports (anchor-name: --anchor){ship-tooltip-wrapper{inset:unset;justify-self:anchor-center;bottom:anchor(top);position:fixed;position-try-order:normal;position-try-fallbacks:flip-block,flip-inline,flip-block flip-inline}}ship-tooltip-wrapper:before{content:"";position:absolute;bottom:-.75rem;top:auto;left:50%;z-index:1;transform:translate(-50%);border-width:.375rem;border-style:solid;border-color:transparent;border-top-color:var(--tt-bg);width:0;height:0;opacity:1}ship-tooltip-wrapper.below{--tt-translate-y: -50%}ship-tooltip-wrapper.below:before{border-top-color:transparent;border-bottom-color:var(--tt-bg);top:-.75rem;bottom:auto}@supports not (anchor-name: --anchor){ship-tooltip-wrapper.below{margin-block-start:.75rem;margin-block-end:0}}ship-tooltip-wrapper .tooltip-content{padding:.5rem .75rem;position:relative;hyphens:auto;text-wrap:pretty;color:var(--tt-c);max-height:var(--tt-mh);max-width:var(--tt-mw);overflow:auto;background:var(--tt-bg);border-radius:var(--shape-2);box-shadow:var(--box-shadow-20)}@supports (anchor-name: --anchor){ship-tooltip-wrapper .tooltip-content{transform:translateY(var(--tt-translate-y)) scaleY(0) scaleX(.8);transition:transform 125ms linear}}
2
- `],encapsulation:2});}}return r})(),o=null,at=(()=>{class r{constructor(){this.shTooltip=g1.required(),this.#p=Ga(()=>{let t=this.shTooltip();me(()=>{this.isOpen()&&o?.component===this&&o?.wrapperComponentRef&&(o.wrapperComponentRef.setInput("content",t),o.wrapperComponentRef.changeDetectorRef.detectChanges());});}),this.#n=T(Jr),this.#e=T(us),this.#t=T(pe),this.#i=null,this.#o=50,this.anchorName=`--${ae()}`,this.isOpen=Ue(false),this.destroyTimeout=null;}#p;#n;#e;#t;#i;#o;onMouseEnter(t){t.stopPropagation(),o&&o.component.anchorName!==this.anchorName?o.component.#a(true):this.#r(),this.#l();}onMouseLeave(t){t.stopPropagation(),this.#s();}ngOnDestroy(){this.#r(),o?.component===this&&this.#a(true);}#s(){this.#r(),this.#i=setTimeout(()=>{this.#a();},this.#o);}#r(){this.#i&&(clearTimeout(this.#i),this.#i=null),this.destroyTimeout&&(clearTimeout(this.destroyTimeout),this.destroyTimeout=null);}#l(){if(o?.wrapperComponentRef||!this.shTooltip()){o?.component===this&&o?.wrapperComponentRef&&o.wrapperComponentRef.setInput("content",this.shTooltip());return}o={wrapperComponentRef:this.#e.createComponent(X,{environmentInjector:this.#t}),component:this},o.wrapperComponentRef.setInput("positionAnchorName",this.anchorName),o.wrapperComponentRef.setInput("anchorEl",this.#n),o.wrapperComponentRef.setInput("isOpen",this.isOpen),o.wrapperComponentRef.setInput("content",this.shTooltip()),o.wrapperComponentRef.setInput("close",()=>this.#a(true)),o.wrapperComponentRef.changeDetectorRef.detectChanges(),o.wrapperComponentRef.location.nativeElement.addEventListener("mouseenter",t=>{t.stopPropagation(),this.#r();}),o.wrapperComponentRef.location.nativeElement.addEventListener("mouseleave",t=>{t.stopPropagation(),this.#s();}),setTimeout(()=>{this.isOpen.set(true);});}#a(t=false){if(o?.wrapperComponentRef){if(o.component!==this&&!t)return;let e=o.wrapperComponentRef,n=o.component;n.#r(),n.isOpen.set(false);try{e.location.nativeElement.hidePopover();}catch{}t?(e.destroy(),o?.wrapperComponentRef===e&&(o=null)):n.destroyTimeout=setTimeout(()=>{queueMicrotask(()=>{e.destroy(),o?.wrapperComponentRef===e&&(o=null);});},this.#o);}}static{this.\u0275fac=function(e){return new(e||r)};}static{this.\u0275dir=mw({type:r,selectors:[["","shTooltip",""]],hostAttrs:[1,"tooltip"],hostVars:4,hostBindings:function(e,n){e&1&&Fg("mouseenter",function(h){return n.onMouseEnter(h)})("mouseleave",function(h){return n.onMouseLeave(h)}),e&2&&(zg("anchor-name",n.anchorName),Qg("active",n.isOpen()));},inputs:{shTooltip:[1,"shTooltip"]}});}}return r})();export{X,at as a};
1
+ import {b as g1,G as Ga,c as me,T,ae as Jr,bW as us,bX as pe,bv as le,U as Ue,b5 as mw,F as Fg,ag as zg,I as Qg,N as Nt,bY as $r,ad as br,bB as yD,d as dw,bZ as ei,Q as Qi,o as oT,H as Hl,D as DE,i as iT,aC as hg,bf as ig,n as nC,z as gg,a_ as ZC,q as PC,aa as Gl,b_ as Ig}from'./main-KFKZO6SJ.js';var z=r=>({$implicit:r});function U(r,w){r&1&&Ig(0);}function F(r,w){if(r&1&&ig(0,U,1,0,"ng-container",1),r&2){let t=nC();gg("ngTemplateOutlet",t.content())("ngTemplateOutletContext",ZC(2,z,t.tooltipContext));}}function $(r,w){if(r&1&&PC(0),r&2){let t=nC();Gl(" ",t.content()," ");}}var X=(()=>{class r{constructor(){this.positionAnchorName=g1.required(),this.anchorEl=g1.required(),this.isOpen=g1(false),this.content=g1(),this.close=g1(()=>{}),this.tooltipContext={close:()=>this.close()()},this.isTemplate=Nt(()=>this.content()instanceof $r),this.#p=T(br),this.#n=T(Jr),this.#e=T(yD),this.#t=null,this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.isBelow=Ue(false),this.openEffect=Ga(()=>{if(this.isOpen())queueMicrotask(()=>{let t=this.#n.nativeElement;!t||!t.isConnected||(this.#t&&this.#t.abort(),this.#t=new AbortController,t.showPopover(),this.SUPPORTS_ANCHOR||setTimeout(()=>{this.#i(t).addEventListener("scroll",()=>this.#o(),{signal:this.#t?.signal,passive:true}),window?.addEventListener("resize",()=>this.#o(),{signal:this.#t?.signal,passive:true}),this.#o();}));});else {let t=this.#n.nativeElement;if(t)try{t.matches(":popover-open")&&t.hidePopover();}catch{}this.#t?.abort(),this.#t=null;}}),this.#o=()=>{if(!this.anchorEl())return;let t=this.anchorEl().nativeElement.getBoundingClientRect(),e=this.#n.nativeElement,n=e.getBoundingClientRect();if(n.width===0&&n.height===0)return;let p=8,h=(i,s)=>({left:i.left+i.width/2-s.width/2,top:i.top-s.height-p}),j=[h,(i,s)=>({left:i.right-s.width,top:i.top-s.height-p}),(i,s)=>({left:i.left,top:i.top-s.height-p}),(i,s)=>({left:i.left+i.width/2-s.width/2,top:i.bottom+p}),(i,s)=>({left:i.right-s.width,top:i.bottom+p}),(i,s)=>({left:i.left,top:i.bottom+p})];for(let i of j){let s=i(t,n);if(this.#r(s,n)){this.#s(s,e),this.isBelow.set(s.top>t.top);return}}let v=this.#l(h(t,n),n);this.#s(v,e),this.isBelow.set(v.top>t.top);};}#p;#n;#e;#t;ngOnDestroy(){this.#t?.abort(),this.#t=null;}#i(t){let e=["scroll","auto"],n=t.parentElement;for(;n;){if(e.indexOf(window?.getComputedStyle(n).overflowY)>-1&&n.scrollHeight>n.clientHeight)return n;n=n.parentElement;}return this.#p.documentElement}#o;#s(t,e){this.#e.setStyle(e,"left",`${t.left}px`),this.#e.setStyle(e,"top",`${t.top}px`),this.#e.setStyle(e,"position","fixed"),this.#e.setStyle(e,"margin","0");}#r(t,e){return t.left>=0&&t.top>=0&&t.left+e.width<=window.innerWidth&&t.top+e.height<=window.innerHeight}#l(t,e){return {left:Math.max(0,Math.min(t.left,window.innerWidth-e.width)),top:Math.max(0,Math.min(t.top,window.innerHeight-e.height))}}static{this.\u0275fac=function(e){return new(e||r)};}static{this.\u0275cmp=dw({type:r,selectors:[["ship-tooltip-wrapper"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(e,n){e&2&&(hg("popover","manual"),zg("position-anchor",n.positionAnchorName()),Qg("below",n.isBelow()));},inputs:{positionAnchorName:[1,"positionAnchorName"],anchorEl:[1,"anchorEl"],isOpen:[1,"isOpen"],content:[1,"content"],close:[1,"close"]},decls:3,vars:1,consts:[[1,"tooltip-content"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,n){e&1&&(Qi(0,"div",0),oT(1,F,1,4,"ng-container")(2,$,1,1),Hl()),e&2&&(DE(),iT(n.isTemplate()?1:2));},dependencies:[ei],styles:[`.tooltip{position:relative;display:flex;pointer-events:initial!important}.tooltip:after{content:"";position:absolute;inset:-.5rem;z-index:1}.tooltip.primary+ship-tooltip-wrapper{--tt-bg: var(--primary-2);--tt-c: var(--primary-8)}.tooltip.accent+ship-tooltip-wrapper{--tt-bg: var(--accent-2);--tt-c: var(--accent-8)}.tooltip.warn+ship-tooltip-wrapper{--tt-bg: var(--warn-2);--tt-c: var(--warn-8)}.tooltip.error+ship-tooltip-wrapper{--tt-bg: var(--error-2);--tt-c: var(--error-8)}.tooltip.success+ship-tooltip-wrapper{--tt-bg: var(--success-2);--tt-c: var(--success-8)}.tooltip.active{z-index:1}.tooltip.active+ship-tooltip-wrapper{z-index:1}@supports (anchor-name: --anchor){.tooltip.active+ship-tooltip-wrapper .tooltip-content{transform:translateY(0) scaleY(1) scaleX(1)}}ship-tooltip-wrapper{--tt-bg: var(--base-3);--tt-c: var(--base-12);--tt-mh: 8.5rem;--tt-mw: 17.5rem;--tt-translate-y: 50%;position:fixed;font:var(--paragraph-30);width:max-content;overflow:visible;box-shadow:none;background:transparent;border:0;padding:0;margin:0;margin-block-end:.75rem}@supports (anchor-name: --anchor){ship-tooltip-wrapper{inset:unset;justify-self:anchor-center;bottom:anchor(top);position:fixed;position-try-order:normal;position-try-fallbacks:flip-block,flip-inline,flip-block flip-inline}}ship-tooltip-wrapper:before{content:"";position:absolute;bottom:-.75rem;top:auto;left:50%;z-index:1;transform:translate(-50%);border-width:.375rem;border-style:solid;border-color:transparent;border-top-color:var(--tt-bg);width:0;height:0;opacity:1}ship-tooltip-wrapper.below{--tt-translate-y: -50%}ship-tooltip-wrapper.below:before{border-top-color:transparent;border-bottom-color:var(--tt-bg);top:-.75rem;bottom:auto}@supports not (anchor-name: --anchor){ship-tooltip-wrapper.below{margin-block-start:.75rem;margin-block-end:0}}ship-tooltip-wrapper .tooltip-content{padding:.5rem .75rem;position:relative;hyphens:auto;text-wrap:pretty;color:var(--tt-c);max-height:var(--tt-mh);max-width:var(--tt-mw);overflow:auto;background:var(--tt-bg);border-radius:var(--shape-2);box-shadow:var(--box-shadow-20)}@supports (anchor-name: --anchor){ship-tooltip-wrapper .tooltip-content{transform:translateY(var(--tt-translate-y)) scaleY(0) scaleX(.8);transition:transform 125ms linear}}
2
+ `],encapsulation:2});}}return r})(),o=null,at=(()=>{class r{constructor(){this.shTooltip=g1.required(),this.#p=Ga(()=>{let t=this.shTooltip();me(()=>{this.isOpen()&&o?.component===this&&o?.wrapperComponentRef&&(o.wrapperComponentRef.setInput("content",t),o.wrapperComponentRef.changeDetectorRef.detectChanges());});}),this.#n=T(Jr),this.#e=T(us),this.#t=T(pe),this.#i=null,this.#o=50,this.anchorName=`--${le()}`,this.isOpen=Ue(false),this.destroyTimeout=null;}#p;#n;#e;#t;#i;#o;onMouseEnter(t){t.stopPropagation(),o&&o.component.anchorName!==this.anchorName?o.component.#a(true):this.#r(),this.#l();}onMouseLeave(t){t.stopPropagation(),this.#s();}ngOnDestroy(){this.#r(),o?.component===this&&this.#a(true);}#s(){this.#r(),this.#i=setTimeout(()=>{this.#a();},this.#o);}#r(){this.#i&&(clearTimeout(this.#i),this.#i=null),this.destroyTimeout&&(clearTimeout(this.destroyTimeout),this.destroyTimeout=null);}#l(){if(o?.wrapperComponentRef||!this.shTooltip()){o?.component===this&&o?.wrapperComponentRef&&o.wrapperComponentRef.setInput("content",this.shTooltip());return}o={wrapperComponentRef:this.#e.createComponent(X,{environmentInjector:this.#t}),component:this},o.wrapperComponentRef.setInput("positionAnchorName",this.anchorName),o.wrapperComponentRef.setInput("anchorEl",this.#n),o.wrapperComponentRef.setInput("isOpen",this.isOpen),o.wrapperComponentRef.setInput("content",this.shTooltip()),o.wrapperComponentRef.setInput("close",()=>this.#a(true)),o.wrapperComponentRef.changeDetectorRef.detectChanges(),o.wrapperComponentRef.location.nativeElement.addEventListener("mouseenter",t=>{t.stopPropagation(),this.#r();}),o.wrapperComponentRef.location.nativeElement.addEventListener("mouseleave",t=>{t.stopPropagation(),this.#s();}),setTimeout(()=>{this.isOpen.set(true);});}#a(t=false){if(o?.wrapperComponentRef){if(o.component!==this&&!t)return;let e=o.wrapperComponentRef,n=o.component;n.#r(),n.isOpen.set(false);try{e.location.nativeElement.hidePopover();}catch{}t?(e.destroy(),o?.wrapperComponentRef===e&&(o=null)):n.destroyTimeout=setTimeout(()=>{queueMicrotask(()=>{e.destroy(),o?.wrapperComponentRef===e&&(o=null);});},this.#o);}}static{this.\u0275fac=function(e){return new(e||r)};}static{this.\u0275dir=mw({type:r,selectors:[["","shTooltip",""]],hostAttrs:[1,"tooltip"],hostVars:4,hostBindings:function(e,n){e&1&&Fg("mouseenter",function(h){return n.onMouseEnter(h)})("mouseleave",function(h){return n.onMouseLeave(h)}),e&2&&(zg("anchor-name",n.anchorName),Qg("active",n.isOpen()));},inputs:{shTooltip:[1,"shTooltip"]}});}}return r})();export{at as a};
@@ -1 +1 @@
1
- import {c}from'./chunk-bx0aDvCZ.js';import {T,m,N as Nt,U as Ue,d as dw,f as N,bs as ei,Q as Qi,X as XT,H as Hl,bf as ig,bt as uC,D as DE,z as gg,a_ as ZC,bu as Ig,a1 as cT,ag as zg,a2 as lT,k as gT,F as Fg,S as Sd,n as nC,x as xd,o as oT,q as PC,I as Qg,i as iT,E as nm,aF as YC,bv as sb}from'./main-TZVLLK67.js';var Y=e=>({children:e,level:0}),L=e=>({$implicit:e}),j=(e,n)=>({children:e,level:n}),V=(e,n)=>n.id;function z(e,n){if(e&1&&(Qi(0,"sh-icon"),PC(1,"caret-down"),Hl()),e&2){let t=nC().$implicit;Qg("open",t.isOpen());}}function B(e,n){e&1&&(Qi(0,"sh-icon"),PC(1,"dot"),Hl());}function J(e,n){e&1&&Ig(0);}function U(e,n){if(e&1&&ig(0,J,1,0,"ng-container",3),e&2){let t=nC().$implicit,o=nC().$implicit;nC();let i=uC(3);gg("ngTemplateOutlet",i)("ngTemplateOutletContext",ZC(5,L,YC(2,j,t.children,o.level+1)));}}function X(e,n){if(e&1){let t=gT();Qi(0,"div",4,1),Fg("click",function(){let i=Sd(t).$implicit,G=nC(2);return xd(i.children.length>0&&G.toggleNode(i))}),oT(2,z,2,2,"sh-icon",5)(3,B,2,0,"sh-icon"),Qi(4,"div",6),PC(5),Hl()(),oT(6,U,1,7,"ng-container");}if(e&2){let t=n.$implicit;Qg("cannot-toggle",t.children.length===0)("open",t.isOpen()),DE(2),iT(t.children.length>0?2:3),DE(3),nm(t.text),DE(),iT(t.isOpen()?6:-1);}}function q(e,n){if(e&1&&(Qi(0,"sh-list"),cT(1,X,7,7,null,null,V),Hl()),e&2){let t=n.$implicit;zg("padding-left",t.level*.25,"rem"),DE(),lT(t.children);}}function H(e,n){e&1&&Ig(0);}var S=class e{#e=T(m);treeStructure=Nt(()=>{let n=this.#e.systemInfo();return this.processObject(n,0)});toggleNode(n){n.isOpen.update(t=>!t);}processObject(n,t){let o=[];for(let i in n)typeof n[i]=="object"?o.push({id:i,text:i,children:this.processObject(n[i],t+1),level:t,isOpen:Ue(false)}):o.push({id:i,text:`${i}: ${n[i]}`,children:[],level:t,isOpen:Ue(false)});return o}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=dw({type:e,selectors:[["app-server-settings"]],decls:5,vars:6,consts:()=>{let n;return n=$localize`System info`,[["recursiveTree",""],["treeNode",""],n,[4,"ngTemplateOutlet","ngTemplateOutletContext"],["action","",3,"click"],[3,"open"],[1,"text"]]},template:function(t,o){if(t&1&&(Qi(0,"h3"),XT(1,2),Hl(),ig(2,q,3,2,"ng-template",null,0,sb)(4,H,1,0,"ng-container",3)),t&2){let i=uC(3);DE(4),gg("ngTemplateOutlet",i)("ngTemplateOutletContext",ZC(4,L,ZC(2,Y,o.treeStructure())));}},dependencies:[c,N,ei],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;padding:0 2.5rem}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}sh-icon[_ngcontent-%COMP%]{font-size:1rem}sh-list[_ngcontent-%COMP%]{padding:0}sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]{padding:0}sh-list[_ngcontent-%COMP%] [action].cannot-toggle[_ngcontent-%COMP%]{cursor:initial}"]})};export{S as default};
1
+ import {c}from'./chunk-wyNyzSXi.js';import {T,m,N as Nt,U as Ue,d as dw,f as N,bZ as ei,Q as Qi,X as XT,H as Hl,bf as ig,c2 as uC,D as DE,z as gg,a_ as ZC,b_ as Ig,a1 as cT,ag as zg,a2 as lT,k as gT,F as Fg,S as Sd,n as nC,x as xd,o as oT,q as PC,I as Qg,i as iT,E as nm,aF as YC,c4 as sb}from'./main-KFKZO6SJ.js';var Y=e=>({children:e,level:0}),L=e=>({$implicit:e}),j=(e,n)=>({children:e,level:n}),V=(e,n)=>n.id;function z(e,n){if(e&1&&(Qi(0,"sh-icon"),PC(1,"caret-down"),Hl()),e&2){let t=nC().$implicit;Qg("open",t.isOpen());}}function B(e,n){e&1&&(Qi(0,"sh-icon"),PC(1,"dot"),Hl());}function J(e,n){e&1&&Ig(0);}function U(e,n){if(e&1&&ig(0,J,1,0,"ng-container",3),e&2){let t=nC().$implicit,o=nC().$implicit;nC();let i=uC(3);gg("ngTemplateOutlet",i)("ngTemplateOutletContext",ZC(5,L,YC(2,j,t.children,o.level+1)));}}function X(e,n){if(e&1){let t=gT();Qi(0,"div",4,1),Fg("click",function(){let i=Sd(t).$implicit,G=nC(2);return xd(i.children.length>0&&G.toggleNode(i))}),oT(2,z,2,2,"sh-icon",5)(3,B,2,0,"sh-icon"),Qi(4,"div",6),PC(5),Hl()(),oT(6,U,1,7,"ng-container");}if(e&2){let t=n.$implicit;Qg("cannot-toggle",t.children.length===0)("open",t.isOpen()),DE(2),iT(t.children.length>0?2:3),DE(3),nm(t.text),DE(),iT(t.isOpen()?6:-1);}}function q(e,n){if(e&1&&(Qi(0,"sh-list"),cT(1,X,7,7,null,null,V),Hl()),e&2){let t=n.$implicit;zg("padding-left",t.level*.25,"rem"),DE(),lT(t.children);}}function H(e,n){e&1&&Ig(0);}var S=class e{#e=T(m);treeStructure=Nt(()=>{let n=this.#e.systemInfo();return this.processObject(n,0)});toggleNode(n){n.isOpen.update(t=>!t);}processObject(n,t){let o=[];for(let i in n)typeof n[i]=="object"?o.push({id:i,text:i,children:this.processObject(n[i],t+1),level:t,isOpen:Ue(false)}):o.push({id:i,text:`${i}: ${n[i]}`,children:[],level:t,isOpen:Ue(false)});return o}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=dw({type:e,selectors:[["app-server-settings"]],decls:5,vars:6,consts:()=>{let n;return n=$localize`System info`,[["recursiveTree",""],["treeNode",""],n,[4,"ngTemplateOutlet","ngTemplateOutletContext"],["action","",3,"click"],[3,"open"],[1,"text"]]},template:function(t,o){if(t&1&&(Qi(0,"h3"),XT(1,2),Hl(),ig(2,q,3,2,"ng-template",null,0,sb)(4,H,1,0,"ng-container",3)),t&2){let i=uC(3);DE(4),gg("ngTemplateOutlet",i)("ngTemplateOutletContext",ZC(4,L,ZC(2,Y,o.treeStructure())));}},dependencies:[c,N,ei],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;padding:0 2.5rem}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}sh-icon[_ngcontent-%COMP%]{font-size:1rem}sh-list[_ngcontent-%COMP%]{padding:0}sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]{padding:0}sh-list[_ngcontent-%COMP%] [action].cannot-toggle[_ngcontent-%COMP%]{cursor:initial}"]})};export{S as default};