@duplicati/ngclient 0.0.112 → 0.0.115

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 (121) hide show
  1. package/assets/spk.woff2 +0 -0
  2. package/{chunk-OHQK4UOI.js → chunk-36NW32TN.js} +1 -1
  3. package/chunk-3MWN54TU.js +1 -0
  4. package/{chunk-3W6M5IZL.js → chunk-45NW2WR4.js} +1 -1
  5. package/{chunk-2LP4DYGQ.js → chunk-4E7QE6GD.js} +1 -1
  6. package/chunk-4WQHUN4Y.js +1 -0
  7. package/chunk-7L2WUS2V.js +1 -0
  8. package/chunk-7RELJ5CQ.js +1 -0
  9. package/{chunk-YDR42CNA.js → chunk-7T6RGHZV.js} +1 -1
  10. package/{chunk-N5ASXZEE.js → chunk-B2RFNJKM.js} +1 -1
  11. package/chunk-BEA3HPFS.js +1 -0
  12. package/{chunk-7L42EO7J.js → chunk-BIZAKOYU.js} +1 -1
  13. package/{chunk-F4EEOSGJ.js → chunk-BJGA55H2.js} +1 -1
  14. package/{chunk-WLIE4IB5.js → chunk-BMGMPYWQ.js} +1 -1
  15. package/chunk-C6XTRC7P.js +1 -0
  16. package/{chunk-ULHQZGHN.js → chunk-CK7BEV2X.js} +1 -1
  17. package/chunk-CKS3VATQ.js +1 -0
  18. package/{chunk-DMDYUREZ.js → chunk-CW3Y4RRU.js} +3 -3
  19. package/{chunk-EF7JWRDC.js → chunk-DOP6RFEG.js} +1 -1
  20. package/{chunk-BVTZNGGE.js → chunk-E6YEUK4V.js} +1 -1
  21. package/chunk-EBDDRAQ5.js +1 -0
  22. package/{chunk-T2OUHRUV.js → chunk-ELMONRIG.js} +1 -1
  23. package/{chunk-KSP3JQHY.js → chunk-EQWH3TBL.js} +1 -1
  24. package/{chunk-GJROCOAD.js → chunk-F2GEUOGZ.js} +1 -1
  25. package/{chunk-THDYLLMU.js → chunk-FAB4IY5W.js} +1 -1
  26. package/{chunk-OTLEEXAA.js → chunk-FJVMA6GA.js} +1 -1
  27. package/chunk-FTPARAAG.js +1 -0
  28. package/{chunk-EP7S6KOG.js → chunk-GKYC6XK5.js} +1 -1
  29. package/{chunk-KHC3VCF4.js → chunk-GXRQHMLN.js} +1 -1
  30. package/chunk-HFIC4JNY.js +1 -0
  31. package/chunk-I7KXABQT.js +1 -0
  32. package/chunk-IINSQSHJ.js +1 -0
  33. package/{chunk-NHQOHNI2.js → chunk-IK7CPFZB.js} +1 -1
  34. package/{chunk-TK4BPZWA.js → chunk-JC5OEIB3.js} +1 -1
  35. package/chunk-JFNFY6VY.js +1 -0
  36. package/chunk-JSZOZDJQ.js +1 -0
  37. package/{chunk-KXLXF2JD.js → chunk-JXQXCHPY.js} +1 -1
  38. package/{chunk-RTXTOPSU.js → chunk-K7WOLKTB.js} +1 -1
  39. package/{chunk-CIGZ6WGG.js → chunk-KQCGQDTS.js} +1 -1
  40. package/chunk-KRXMGGJO.js +1 -0
  41. package/chunk-L2M4ZKII.js +1 -0
  42. package/chunk-L72ALLHJ.js +7 -0
  43. package/chunk-LRF5G4S6.js +1 -0
  44. package/chunk-MAVZY7BL.js +1 -0
  45. package/chunk-MQJUTAQD.js +1 -0
  46. package/chunk-NDO7MKXC.js +1 -0
  47. package/chunk-NF45E5CN.js +1 -0
  48. package/{chunk-AX5RFEOL.js → chunk-NMMRBG2U.js} +1 -1
  49. package/chunk-O4S6BJVY.js +1 -0
  50. package/chunk-P4ZFQZCA.js +1 -0
  51. package/{chunk-CD3DB23J.js → chunk-P7IBR2UW.js} +1 -1
  52. package/{chunk-JPF4Y3PP.js → chunk-PHPGQ5OC.js} +1 -1
  53. package/{chunk-6DH6O5YE.js → chunk-PUEJXHBQ.js} +1 -1
  54. package/chunk-PVY4CFCN.js +1 -0
  55. package/{chunk-IPRTKJDE.js → chunk-Q52UOSQY.js} +1 -1
  56. package/chunk-QPMF3OND.js +1 -0
  57. package/{chunk-XJXOUOD5.js → chunk-R3PVYKQS.js} +1 -1
  58. package/chunk-R43XF3RF.js +1 -0
  59. package/chunk-RU2M6EPT.js +1 -0
  60. package/chunk-RUGSDKDK.js +1 -0
  61. package/chunk-RZ6B5C2M.js +1 -0
  62. package/{chunk-JSGFZ2GA.js → chunk-S5EF63OY.js} +1 -1
  63. package/{chunk-H632X43F.js → chunk-S5FFZRTF.js} +1 -1
  64. package/chunk-T5U3AMRL.js +1 -0
  65. package/{chunk-SQQMYNOF.js → chunk-TCJ2X76T.js} +1 -1
  66. package/{chunk-HTNYQE2B.js → chunk-TQHNKGRL.js} +1 -1
  67. package/chunk-TRCPJYNH.js +1 -0
  68. package/{chunk-VN7JM6M3.js → chunk-U467ZTQ4.js} +1 -1
  69. package/{chunk-TSIPKXNX.js → chunk-UBBFB6RT.js} +1 -1
  70. package/chunk-URYEQA3U.js +1 -0
  71. package/chunk-WFR2V6TK.js +1 -0
  72. package/chunk-XER6OR26.js +2 -0
  73. package/chunk-XMYCIQBS.js +1 -0
  74. package/chunk-XP7PWMT2.js +1 -0
  75. package/{chunk-KIUU6RPZ.js → chunk-XYLMZK7X.js} +1 -1
  76. package/{chunk-6HTVIY6O.js → chunk-XYMSYNUD.js} +1 -1
  77. package/{chunk-RRBU7RBN.js → chunk-Y7YR7HTF.js} +1 -1
  78. package/{chunk-PQVEQNEN.js → chunk-YCAQITZE.js} +1 -1
  79. package/{chunk-VZBHJ6AU.js → chunk-Z75HLGYD.js} +1 -1
  80. package/chunk-ZGKHK6QQ.js +2 -0
  81. package/index.html +2 -2
  82. package/main-U4R24N47.js +1 -0
  83. package/package.json +1 -1
  84. package/styles-NHBDA2ZX.css +1 -0
  85. package/chunk-2JKJCHMV.js +0 -1
  86. package/chunk-2N2WJIUS.js +0 -1
  87. package/chunk-3AU26GAL.js +0 -1
  88. package/chunk-6JLZLD5D.js +0 -1
  89. package/chunk-6OAGVTHV.js +0 -1
  90. package/chunk-7JUYF3HW.js +0 -1
  91. package/chunk-7NFVFBIE.js +0 -1
  92. package/chunk-7ROGJAJZ.js +0 -1
  93. package/chunk-7RTXH4CB.js +0 -1
  94. package/chunk-CETM57LL.js +0 -1
  95. package/chunk-CKPICCFH.js +0 -1
  96. package/chunk-DDIVZTRS.js +0 -1
  97. package/chunk-DMZ5CRRQ.js +0 -2
  98. package/chunk-I3C2AEHI.js +0 -1
  99. package/chunk-IDOYGPGZ.js +0 -1
  100. package/chunk-J7PTPA7J.js +0 -1
  101. package/chunk-JP7GZSDH.js +0 -1
  102. package/chunk-JV6DGJII.js +0 -1
  103. package/chunk-MHO7INGX.js +0 -1
  104. package/chunk-NQNRR7VE.js +0 -1
  105. package/chunk-O2YN63YI.js +0 -1
  106. package/chunk-ORDORLQT.js +0 -1
  107. package/chunk-OWDXYX4N.js +0 -1
  108. package/chunk-Q6GENX6C.js +0 -1
  109. package/chunk-QVIZK4WW.js +0 -1
  110. package/chunk-SEA4YEEO.js +0 -1
  111. package/chunk-T5X5KX6A.js +0 -1
  112. package/chunk-TMD3MDHS.js +0 -1
  113. package/chunk-VINJGSIH.js +0 -1
  114. package/chunk-W2F756OF.js +0 -7
  115. package/chunk-WMTA6PZM.js +0 -1
  116. package/chunk-WX7L7V6J.js +0 -1
  117. package/chunk-XL2NKFYE.js +0 -1
  118. package/chunk-ZXWA7BUQ.js +0 -1
  119. package/chunk-ZYGT7OII.js +0 -2
  120. package/main-3OUIM37D.js +0 -1
  121. package/styles-V3SS5M3J.css +0 -1
@@ -1 +1 @@
1
- import{a as $}from"./chunk-HTNYQE2B.js";import{a as R}from"./chunk-7JUYF3HW.js";import"./chunk-KIUU6RPZ.js";import"./chunk-NQNRR7VE.js";import"./chunk-OTLEEXAA.js";import"./chunk-RHW5QVAY.js";import"./chunk-O2YN63YI.js";import"./chunk-T2OUHRUV.js";import"./chunk-F4EEOSGJ.js";import"./chunk-I3C2AEHI.js";import{b as A,e as N}from"./chunk-QVIZK4WW.js";import"./chunk-WMTA6PZM.js";import{a as B,g as O}from"./chunk-WX7L7V6J.js";import{h as k}from"./chunk-JSGFZ2GA.js";import"./chunk-JV6DGJII.js";import"./chunk-CKPICCFH.js";import"./chunk-EF7JWRDC.js";import{$b as E,Ac as M,Gb as _,Hb as c,Ib as u,Lb as T,Mb as I,Qa as i,Y as m,ab as C,bc as L,fb as p,sb as s,tb as f,ua as l,ub as S,vb as g,wb as F,xb as a,yb as r}from"./chunk-W2F756OF.js";import"./chunk-7CGTOI24.js";function b(e,t){e&1&&u(0,2,1)}function P(e,t){e&1&&u(0,2,2)}function h(e,t){e&1&&u(0,2,3)}function v(e,t){e&1&&u(0,2,4)}function U(e,t){if(e&1&&(E(0),r(1,"br")),e&2){let n=t.$implicit;L(" ",n," ")}}var D=class e{#t=m(k);#e=m(A);#n=$(this.#e.params);runId=M(()=>this.#n()?.runId);offset=l(0);status=l("starting");messageLog=l([]);interval=setInterval(()=>{this.#t.getApiV1CommandlineByRunid({runid:this.runId(),offset:this.offset(),pagesize:100}).subscribe(t=>{this.offset.set(t.Count),this.evalStatus(t),this.messageLog.update(n=>[...n,...t.Items])})},1e3);evalStatus(t){t.Started===!0&&t.Finished===!0&&(this.status.set("finished"),clearInterval(this.interval)),t.Started===!0&&t.Finished===!1&&this.status.set("started")}abort(){this.#t.postApiV1CommandlineByRunidAbort({runid:this.runId()}).subscribe({next:t=>{this.status.set("aborted"),clearInterval(this.interval)}})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=C({type:e,selectors:[["app-commandline-result"]],decls:18,vars:4,consts:()=>{let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let n;n=$localize` Running commandline task... ${"\uFFFD#8\uFFFD"}:START_TAG_BUTTON:Abort${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_BUTTON:`;let o;return o=$localize`${"\uFFFD*11:1\uFFFD"}:START_BLOCK_IF: Starting... ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*12:2\uFFFD"}:START_BLOCK_IF_1: Started! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*13:3\uFFFD"}:START_BLOCK_IF_2: Finished! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*14:4\uFFFD"}:START_BLOCK_IF_3: Aborted! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:`,o=T(o),[t,n,o,[1,"back"],["type","button","spk-button","","routerLink","../",1,"small"],["type","button","spk-button","",1,"small",3,"click"],[1,"status"]]},template:function(n,o){n&1&&(r(0,"app-status-bar"),F(1,"section")(2,"div",3)(3,"button",4),_(4,0),r(5,"spk-icon"),c(),a()(),F(6,"h3"),_(7,1),F(8,"button",5),I("click",function(){return o.abort()}),a(),c(),a(),F(9,"div",6),_(10,2),p(11,b,1,0)(12,P,1,0)(13,h,1,0)(14,v,1,0),c(),a(),F(15,"code"),S(16,U,2,1,null,null,f),a()()),n&2&&(i(11),s(o.status()==="starting"?11:-1),i(),s(o.status()==="started"?12:-1),i(),s(o.status()==="finished"?13:-1),i(),s(o.status()==="aborted"?14:-1),i(2),g(o.messageLog()))},dependencies:[R,B,O,N],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;padding:2.5rem;gap:1.25rem}code[_ngcontent-%COMP%]{background-color:var(--grey-800);color:var(--grey-100);padding:2.5rem 2.5rem 2.5rem 1.5rem;border-radius:var(--shape-3);overflow:auto;white-space:pre}"],changeDetection:0})};export{D as default};
1
+ import{a as R}from"./chunk-KRXMGGJO.js";import{a as $}from"./chunk-TQHNKGRL.js";import"./chunk-XYLMZK7X.js";import"./chunk-IINSQSHJ.js";import"./chunk-FJVMA6GA.js";import"./chunk-RHW5QVAY.js";import"./chunk-HFIC4JNY.js";import"./chunk-ELMONRIG.js";import"./chunk-BJGA55H2.js";import"./chunk-XP7PWMT2.js";import{b as A,e as N}from"./chunk-C6XTRC7P.js";import"./chunk-MAVZY7BL.js";import{a as B,g as O}from"./chunk-P4ZFQZCA.js";import{h as k}from"./chunk-S5EF63OY.js";import"./chunk-JFNFY6VY.js";import"./chunk-7L2WUS2V.js";import"./chunk-DOP6RFEG.js";import{Ab as f,Bb as S,Cb as g,Db as F,Eb as a,Fb as r,Oc as M,Pb as _,Qb as c,Rb as u,Ua as i,Ub as T,Vb as I,Z as m,gb as C,ic as E,kc as L,lb as p,va as l,zb as s}from"./chunk-L72ALLHJ.js";import"./chunk-7CGTOI24.js";function b(e,t){e&1&&u(0,2,1)}function P(e,t){e&1&&u(0,2,2)}function h(e,t){e&1&&u(0,2,3)}function v(e,t){e&1&&u(0,2,4)}function U(e,t){if(e&1&&(E(0),r(1,"br")),e&2){let n=t.$implicit;L(" ",n," ")}}var D=class e{#t=m(k);#e=m(A);#n=$(this.#e.params);runId=M(()=>this.#n()?.runId);offset=l(0);status=l("starting");messageLog=l([]);interval=setInterval(()=>{this.#t.getApiV1CommandlineByRunid({runid:this.runId(),offset:this.offset(),pagesize:100}).subscribe(t=>{this.offset.set(t.Count),this.evalStatus(t),this.messageLog.update(n=>[...n,...t.Items])})},1e3);evalStatus(t){t.Started===!0&&t.Finished===!0&&(this.status.set("finished"),clearInterval(this.interval)),t.Started===!0&&t.Finished===!1&&this.status.set("started")}abort(){this.#t.postApiV1CommandlineByRunidAbort({runid:this.runId()}).subscribe({next:t=>{this.status.set("aborted"),clearInterval(this.interval)}})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=C({type:e,selectors:[["app-commandline-result"]],decls:18,vars:4,consts:()=>{let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let n;n=$localize` Running commandline task... ${"\uFFFD#8\uFFFD"}:START_TAG_BUTTON:Abort${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_BUTTON:`;let o;return o=$localize`${"\uFFFD*11:1\uFFFD"}:START_BLOCK_IF: Starting... ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*12:2\uFFFD"}:START_BLOCK_IF_1: Started! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*13:3\uFFFD"}:START_BLOCK_IF_2: Finished! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*14:4\uFFFD"}:START_BLOCK_IF_3: Aborted! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:`,o=T(o),[t,n,o,[1,"back"],["type","button","spk-button","","routerLink","../",1,"small"],["type","button","spk-button","",1,"small",3,"click"],[1,"status"]]},template:function(n,o){n&1&&(r(0,"app-status-bar"),F(1,"section")(2,"div",3)(3,"button",4),_(4,0),r(5,"spk-icon"),c(),a()(),F(6,"h3"),_(7,1),F(8,"button",5),I("click",function(){return o.abort()}),a(),c(),a(),F(9,"div",6),_(10,2),p(11,b,1,0)(12,P,1,0)(13,h,1,0)(14,v,1,0),c(),a(),F(15,"code"),S(16,U,2,1,null,null,f),a()()),n&2&&(i(11),s(o.status()==="starting"?11:-1),i(),s(o.status()==="started"?12:-1),i(),s(o.status()==="finished"?13:-1),i(),s(o.status()==="aborted"?14:-1),i(2),g(o.messageLog()))},dependencies:[R,B,O,N],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;padding:2.5rem;gap:1.25rem}code[_ngcontent-%COMP%]{background-color:var(--grey-800);color:var(--grey-100);padding:2.5rem 2.5rem 2.5rem 1.5rem;border-radius:var(--shape-3);overflow:auto;white-space:pre}"],changeDetection:0})};export{D as default};
@@ -0,0 +1 @@
1
+ import{a as D}from"./chunk-F2GEUOGZ.js";import{a as b,n as w}from"./chunk-P4ZFQZCA.js";import"./chunk-S5EF63OY.js";import{ia as A}from"./chunk-7L2WUS2V.js";import{Bb as I,Bc as F,Cb as v,Db as c,Eb as r,Ib as u,Jb as M,Oc as $,Rb as P,Ua as l,Vb as k,Wb as s,Z as y,ea as O,fa as x,gb as T,hc as C,ic as p,jc as E,lb as a,ub as d,va as m,vb as h,vc as _,wb as f,wc as N,zb as g}from"./chunk-L72ALLHJ.js";import"./chunk-7CGTOI24.js";var L=e=>({children:e,level:0}),R=e=>({$implicit:e}),V=(e,t)=>({children:e,level:t}),j=(e,t)=>t.id;function z(e,t){if(e&1&&(c(0,"spk-icon"),p(1,"caret-down"),r()),e&2){let n=s().$implicit;f("open",n.isOpen())}}function B(e,t){e&1&&(c(0,"spk-icon"),p(1,"dot"),r())}function G(e,t){e&1&&u(0)}function U(e,t){if(e&1&&a(0,G,1,0,"ng-container",3),e&2){let n=s().$implicit,o=s().$implicit;s();let i=C(3);d("ngTemplateOutlet",i)("ngTemplateOutletContext",_(5,R,N(2,V,n.children,o.level+1)))}}function X(e,t){if(e&1){let n=M();c(0,"div",4,1),k("click",function(){let i=O(n).$implicit,Y=s(2);return x(i.children.length>0&&Y.toggleNode(i))}),a(2,z,2,2,"spk-icon",5)(3,B,2,0,"spk-icon"),c(4,"div",6),p(5),r()(),a(6,U,1,7,"ng-container")}if(e&2){let n=t.$implicit;f("cannot-toggle",n.children.length===0)("open",n.isOpen()),l(2),g(n.children.length>0?2:3),l(3),E(n.text),l(),g(n.isOpen()?6:-1)}}function q(e,t){if(e&1&&(c(0,"spk-list"),I(1,X,7,7,null,null,j),r()),e&2){let n=t.$implicit;h("padding-left",n.level*.25,"rem"),l(),v(n.children)}}function H(e,t){e&1&&u(0)}var S=class e{#e=y(D);treeStructure=$(()=>{let t=this.#e.systemInfo();return this.processObject(t,0)});toggleNode(t){t.isOpen.update(n=>!n)}processObject(t,n){let o=[];for(let i in t)typeof t[i]=="object"?o.push({id:i,text:i,children:this.processObject(t[i],n+1),level:n,isOpen:m(!1)}):o.push({id:i,text:`${i}: ${t[i]}`,children:[],level:n,isOpen:m(!1)});return o}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=T({type:e,selectors:[["app-server-settings"]],decls:5,vars:6,consts:()=>{let t;return t=$localize`System info`,[["recursiveTree",""],["treeNode",""],t,[4,"ngTemplateOutlet","ngTemplateOutletContext"],["action","",3,"click"],[3,"open"],[1,"text"]]},template:function(n,o){if(n&1&&(c(0,"h3"),P(1,2),r(),a(2,q,3,2,"ng-template",null,0,F)(4,H,1,0,"ng-container",3)),n&2){let i=C(3);l(4),d("ngTemplateOutlet",i)("ngTemplateOutletContext",_(4,R,_(2,L,o.treeStructure())))}},dependencies:[w,b,A],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}spk-icon[_ngcontent-%COMP%]{font-size:1rem}spk-list[_ngcontent-%COMP%]{padding:0}spk-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]{padding:0}spk-list[_ngcontent-%COMP%] [action].cannot-toggle[_ngcontent-%COMP%]{cursor:initial}"],changeDetection:0})};export{S as default};
@@ -0,0 +1 @@
1
+ import{ia as We}from"./chunk-7L2WUS2V.js";import{$a as j,Ab as ge,Bb as ve,Cb as Ce,Db as a,Eb as p,Fb as $,Hc as Be,Ib as ie,Jb as W,Oc as D,Pc as V,Rc as xe,T as le,Ta as Re,Ua as h,Vb as O,W as Ie,Wa as he,Wb as g,Xb as x,Ya as Pe,Yb as f,Z as I,a as Me,ab as Fe,bb as F,ca as Ve,ea as S,ec as Le,fa as k,fc as q,gb as y,gc as Q,hc as je,ib as fe,ic as _,jc as _e,ka as ce,kc as G,la as pe,lb as b,lc as se,nc as Se,oc as ke,pc as ye,qa as de,qb as Ae,qc as oe,ra as X,rc as J,sa as m,sc as z,ta as L,tb as He,ua as ue,ub as K,uc as De,va as v,vb as B,vc as re,wb as M,xb as me,yb as Y,zb as E}from"./chunk-L72ALLHJ.js";import{a as N,b as Z,c as Te}from"./chunk-7CGTOI24.js";var H=["*"],Ge=[[["","icon",""]],[["","title",""]],"*",[["","content",""]]],Ke=["[icon]","[title]","*","[content]"];function Je(n,u){n&1&&(a(0,"spk-icon",3),_(1,"info"),p())}function Ze(n,u){n&1&&(a(0,"spk-icon",3),_(1,"info"),p())}function et(n,u){n&1&&(a(0,"spk-icon",3),_(1,"warning"),p())}function tt(n,u){n&1&&(a(0,"spk-icon",3),_(1,"warning-octagon"),p())}function it(n,u){n&1&&(a(0,"spk-icon",3),_(1,"check-circle"),p())}function nt(n,u){n&1&&(a(0,"spk-icon",3),_(1,"question"),p())}function st(n,u){if(n&1){let t=W();a(0,"spk-icon",7),O("click",function(){S(t);let i=g();return k(i.removeAlert())}),_(1,"plus"),p()}}var ot=["dialogRef"];function rt(n,u){if(n&1){let t=W();a(0,"div",4),O("click",function(){S(t);let i=g();return k(i.isOpen.set(!1))}),p()}}var at=["spk-button",""];var qe=["triggerRef"],lt=["popoverRef"],ct=[[["","trigger",""]],"*"],pt=["[trigger]","*"];var dt=()=>({closeOnButton:!1,closeOnEsc:!0});var ut=[[["label"]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["textarea"]],[["","textSuffix",""]],[["","suffix",""]],[["","error",""]],[["","hint",""]]],ht=["label","[prefix]","[textPrefix]","input","textarea","[textSuffix]","[suffix]","[error]","[hint]"],ze=["input"],ft=[[["label"]]],mt=["label"];function gt(n,u){if(n&1&&(a(0,"div",3),_(1),p()),n&2){let t=g();h(),_e(t.files()[0].name)}}function vt(n,u){if(n&1&&(a(0,"div",3),_(1),p()),n&2){let t=g();h(),G("",t.files().length," files selected")}}function Ct(n,u){if(n&1&&(a(0,"div",4),_(1),p()),n&2){let t=g();h(),_e(t.filesOver()?t.overlayText():t.placeholder())}}var _t=["optionsRef"],St=["*",[["","menu",""]]],kt=["*","[menu]"];function yt(n,u){n&1&&(a(0,"spk-icon",5),_(1,"caret-down"),p())}var Dt=[[["label"]],[["input","type","range"]]],xt=["label","input[type=range]"],wt=["optionsWrap"],bt=[[["label"]],[["input"]],[["textarea"]]],Ot=["label","input","textarea"],Et=()=>({closeOnButton:!1,closeOnEsc:!1}),be=n=>({$implicit:n});function Tt(n,u){if(n&1&&_(0),n&2){let t=g();G(" ",t.inputValue()," ")}}function Mt(n,u){n&1&&ie(0)}function It(n,u){if(n&1&&b(0,Mt,1,0,"ng-container",13),n&2){let t=g(3).$implicit;g(2);let e=z(6);K("ngTemplateOutlet",e)("ngTemplateOutletContext",re(2,be,t))}}function Vt(n,u){if(n&1&&_(0),n&2){let t=g(3).$implicit,e=g(2);G(" ",e.getLabel(t)," ")}}function Rt(n,u){if(n&1){let t=W();a(0,"spk-chip",11),b(1,It,1,4,"ng-container")(2,Vt,1,1),a(3,"spk-icon",12),O("click",function(i){S(t);let s=g(2).$index,o=g(2);return k(o.removeSelectedOptionByIndex(i,s))}),_(4,"x-bold"),p()()}if(n&2){let t=g(4),e=z(6);Y(t.selectClasses()),h(),E(e?1:2)}}function Pt(n,u){n&1&&ie(0)}function Ft(n,u){if(n&1&&b(0,Pt,1,0,"ng-container",13),n&2){let t=g(4).$implicit;g(2);let e=z(6);K("ngTemplateOutlet",e)("ngTemplateOutletContext",re(2,be,t))}}function At(n,u){if(n&1&&_(0),n&2){let t=g(4).$implicit,e=g(2);G(" ",e.getLabel(t)," ")}}function Ht(n,u){if(n&1&&b(0,Ft,1,4,"ng-container")(1,At,1,1),n&2){g(5);let t=z(6);E(t?0:1)}}function Lt(n,u){if(n&1&&b(0,Ht,2,1),n&2){g(4);let t=z(9);E(t?-1:0)}}function jt(n,u){if(n&1&&b(0,Rt,5,3,"spk-chip",10)(1,Lt,1,1),n&2){g(3);let t=z(8);E(t?0:1)}}function Bt(n,u){if(n&1&&b(0,jt,2,1),n&2){let t=u.$implicit;E(t?0:-1)}}function Wt(n,u){if(n&1&&ve(0,Bt,1,1,null,null,ge),n&2){g();let t=z(4);Ce(t)}}function qt(n,u){n&1&&ie(0)}function zt(n,u){if(n&1&&b(0,qt,1,0,"ng-container",14),n&2){g(2);let t=z(0);K("ngTemplateOutlet",t)}}function Ut(n,u){if(n&1&&_(0),n&2){let t,e=g(2);G(" ",(t=e.placeholderText())!==null&&t!==void 0?t:""," ")}}function $t(n,u){if(n&1&&b(0,zt,1,1,"ng-container")(1,Ut,1,1),n&2){g();let t=z(0);E(t?0:1)}}function Qt(n,u){n&1&&(a(0,"spk-icon",6),_(1,"caret-down"),p())}function Nt(n,u){n&1&&$(0,"spk-spinner",7)}function Yt(n,u){n&1&&(a(0,"spk-icon",6),_(1,"list-magnifying-glass"),p())}function Xt(n,u){n&1&&(a(0,"spk-icon",6),_(1,"magnifying-glass"),p())}function Gt(n,u){if(n&1){let t=W();a(0,"spk-icon",15),O("click",function(i){S(t);let s=g();return k(s.clear(i))}),_(1,"x-bold"),p()}}function Kt(n,u){n&1&&(a(0,"spk-icon",6),_(1,"caret-down"),p())}function Jt(n,u){n&1&&(a(0,"spk-icon",6),_(1,"caret-up"),p())}function Zt(n,u){if(n&1&&$(0,"spk-checkbox"),n&2){let t=g().$index,e=g();Y(e.selectClasses()),M("active",e.isSelected(t))}}function ei(n,u){n&1&&ie(0)}function ti(n,u){if(n&1&&b(0,ei,1,0,"ng-container",13),n&2){let t=g().$implicit;g();let e=z(7);K("ngTemplateOutlet",e)("ngTemplateOutletContext",re(2,be,t))}}function ii(n,u){if(n&1&&_(0),n&2){let t=g().$implicit,e=g();G(" ",e.getLabel(t)," ")}}function ni(n,u){if(n&1){let t=W();a(0,"li",16),O("click",function(){let i=S(t).$index,s=g();return k(s.toggleOptionByIndex(i))}),b(1,Zt,1,4,"spk-checkbox",17)(2,ti,1,4,"ng-container")(3,ii,1,1),p()}if(n&2){let t=u.$index,e=g(),i=z(7);M("selected",e.isSelected(t))("focused",t===e.focusedOptionIndex()),h(),E(e.selectMultiple()?1:-1),h(),E(i?2:3)}}var si=["dragImageElement"],oi=[[["","sidenav",""]],[["","sidenav-closed-topbar",""]],"*"],ri=["[sidenav]","[sidenav-closed-topbar]","*"];function ai(n,u){n&1&&$(0,"div",1,0)}function li(n,u){if(n&1){let t=W();a(0,"div",7),O("drop",function(i){S(t);let s=g();return k(s.drop(i))})("dragover",function(i){S(t);let s=g();return k(s.dragOver(i))})("dragenter",function(){S(t);let i=g();return k(i.dragEnter())})("dragleave",function(){S(t);let i=g();return k(i.dragLeave())}),p()}}function ci(n,u){if(n&1){let t=W();a(0,"div",8),O("dragstart",function(i){S(t);let s=g();return k(s.dragStart(i))})("dragend",function(i){S(t);let s=g();return k(s.dragEnd(i))})("drag",function(i){S(t);let s=g();return k(s.drag(i))})("touchstart",function(i){S(t);let s=g();return k(s.touchStart(i))})("touchmove",function(i){S(t);let s=g();return k(s.touchMove(i))})("touchend",function(i){S(t);let s=g();return k(s.touchEnd(i))})("touchcancel",function(i){S(t);let s=g();return k(s.touchCancel(i))}),p()}}var pi=["thead"],di=[[["","table-header",""]],"*",[["","table-no-rows",""]]],ui=["[table-header]","*","[table-no-rows]"];function hi(n,u){n&1&&$(0,"spk-progress-bar",1)}function fi(n,u){n&1&&(a(0,"div",2),f(1,2),p())}var mi=[[["","title",""]],"*"],gi=["[title]","*"];function vi(n,u){n&1&&_(0,"Title")}function Ci(n,u){n&1&&(a(0,"spk-icon",1),_(1,"caret-down"),p())}var _i=["tooltipRef"];var we=["bold","thin","light","fill"],te=(()=>{class n{#e=I(L);get currentClass(){let t=this.#e.nativeElement.innerText;for(let e=0;e<we.length;e++)if(t.endsWith(we[e]))return we[e];return""}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-icon"]],hostVars:2,hostBindings:function(e,i){e&2&&Y(i.currentClass)},ngContentSelectors:H,decls:1,vars:0,template:function(e,i){e&1&&(x(),f(0))},encapsulation:2,changeDetection:0})}}return n})(),Gi=(()=>{class n{constructor(){this._el=I(L),this.alertService=m(null),this.id=m(null),this.alertClasses=D(()=>this._el.nativeElement.classList.toString())}removeAlert(){this.id()&&this.alertService()&&this.alertService()?.removeAlert(this.id())}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-alert"]],inputs:{alertService:[1,"alertService"],id:[1,"id"]},ngContentSelectors:Ke,decls:18,vars:4,consts:[["ref",""],[1,"alert"],[1,"icon"],[1,"state-icon"],[1,"title"],[1,"close-icon"],[1,"content"],[1,"close-icon",3,"click"]],template:function(e,i){if(e&1&&(x(Ge),a(0,"div",1)(1,"div",2,0),f(3),p(),a(4,"div",2),oe(5),b(6,Je,2,0,"spk-icon",3)(7,Ze,2,0,"spk-icon",3)(8,et,2,0,"spk-icon",3)(9,tt,2,0,"spk-icon",3)(10,it,2,0,"spk-icon",3)(11,nt,2,0,"spk-icon",3),p(),a(12,"div",4),f(13,1),f(14,2),p(),b(15,st,2,0,"spk-icon",5),a(16,"div",6),f(17,3),p()()),e&2){let s=je(2);h(),B("display",s.children.length?"block":"none");let o=i.alertClasses();h(5),E(o.includes("primary")?6:o.includes("accent")?7:o.includes("warn")?8:o.includes("error")?9:o.includes("success")?10:11),h(9),E(i.id()?15:-1)}},dependencies:[te],encapsulation:2,changeDetection:0})}}return n})();function Oe(){return Date.now().toString(36)+Math.random().toString(36).substring(2)}var Ki=(()=>{class n{constructor(){this.alertHistory=v([]),this.alertHistoryIsOpen=v(!1),this.alertHistoryIsHidden=v(!0)}error(t){this.addAlert({type:"error",title:t??"An error occured"})}success(t){this.addAlert({type:"success",title:t})}question(t){this.addAlert({type:"question",title:t})}warning(t){this.addAlert({type:"warn",title:t})}info(t){this.addAlert({type:"primary",title:t})}addAlert(t){let e=Oe();this.alertHistory.update(i=>[Z(N({},t),{isOpen:!0,animateIn:!0,animateOut:!1,id:e}),...i]),setTimeout(()=>{this.alertHistory.update(i=>i.map(s=>Z(N({},s),{animateIn:s.id===e?!1:s.animateIn})))},40),setTimeout(()=>{this.hideAlert(e)},2500)}removeAlert(t){this.alertHistory.update(e=>e.map(i=>Z(N({},i),{animateOut:i.id===t?!1:i.animateOut}))),setTimeout(()=>{this.alertHistory.update(e=>e.filter(i=>i.id!==t))},300)}hideAlert(t){this.alertHistory.update(e=>e.map(i=>Z(N({},i),{isOpen:i.id===t?!1:i.isOpen})))}setHidden(t){this.alertHistoryIsHidden.set(t)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275prov=le({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),ae=new Ie("Sparkle UI Config"),Si={class:"default",width:void 0,maxWidth:void 0,height:void 0,maxHeight:void 0,closeOnButton:!0,closeOnEsc:!0,closeOnOutsideClick:!0},ki=(()=>{class n{constructor(){this.#e=I(ae,{optional:!0}),this.dialogRef=j("dialogRef"),this.isOpen=F(!1),this.options=m(),this.closed=X(),this.defaultOptionMerge=D(()=>N(Z(N({},Si),{class:this.#e?.dialogType??"default"}),this.options())),this.abortController=null,this.isOpenEffect=V(()=>{let t=this.dialogRef()?.nativeElement;this.abortController&&this.abortController.abort(),this.abortController=new AbortController,this.isOpen()?(t?.showModal(),t?.addEventListener("close",()=>{this.isOpen.set(!1),this.closed.emit()},{signal:this.abortController?.signal}),document.addEventListener("keydown",e=>{e.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&e.preventDefault(),e.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},{signal:this.abortController?.signal})):(this.closed.emit(),t?.close())})}#e;ngOnDestroy(){this.abortController?.abort()}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-dialog"]],viewQuery:function(e,i){e&1&&q(i.dialogRef,ot,5),e&2&&Q()},inputs:{isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:H,decls:6,vars:11,consts:[["dialogRef",""],["spkDialog",""],[1,"content"],[1,"closeable-overlay"],[1,"closeable-overlay",3,"click"]],template:function(e,i){if(e&1&&(x(),oe(0),a(1,"dialog",1,0)(3,"div",2),f(4),p(),b(5,rt,1,0,"div",3),p()),e&2){let s,o,r,c,l=i.defaultOptionMerge();h(),Y(l.class),B("width",(s=l.width)!==null&&s!==void 0?s:"")("max-width",(o=l.maxWidth)!==null&&o!==void 0?o:"")("max-height",(r=l.maxHeight)!==null&&r!==void 0?r:"")("height",(c=l.height)!==null&&c!==void 0?c:""),h(4),E(i.defaultOptionMerge().closeOnOutsideClick?5:-1)}},encapsulation:2,changeDetection:0})}}return n})(),Ji=(()=>{class n{constructor(){this.#e=document.querySelector("body"),this.#i=I(Ae),this.compRef=null,this.insertedCompRef=null,this.closedFieldSub=null,this.compClosedSub=null}#e;#i;open(t,e){let i=this.#i.injector,s=this.#t(),P=e||{},{data:o,closed:r}=P,c=Te(P,["data","closed"]);this.compRef&&this.#n(),this.insertedCompRef=xe(t,{environmentInjector:i}),this.compRef=xe(ki,{hostElement:s,environmentInjector:i,projectableNodes:[[this.insertedCompRef.location.nativeElement]]});let l=this.insertedCompRef.instance?.data,d=this.insertedCompRef.instance?.closed;if(o){if(ue(l))this.insertedCompRef.setInput("data",o);else if(!ue(l))throw new Error("data is not an input signal on the passed component")}d instanceof de&&(this.closedFieldSub=d.subscribe((...A)=>{r?.(...A),this.#n()})),this.#i.attachView(this.insertedCompRef.hostView),this.#i.attachView(this.compRef.hostView),this.insertedCompRef.changeDetectorRef.detectChanges(),this.compRef.changeDetectorRef.detectChanges(),this.compRef.instance.isOpen.set(!0),this.compRef.setInput("options",c),this.compRef.instance.closed.subscribe(()=>R());let w=this;function R(){d&&d instanceof de?d.emit(!1):r?.(void 0),w.#n()}return{component:this.insertedCompRef.instance,close:R}}#t(){let t=document.createElement("spk-dialog-ref");return t.id="spk-dialog-ref",document.getElementById("spk-dialog-ref")||this.#e.append(t),document.getElementById("spk-dialog-ref")}#n(){this.insertedCompRef&&(this.#i.detachView(this.insertedCompRef.hostView),this.closedFieldSub?.unsubscribe(),this.insertedCompRef.destroy()),this.compRef&&(this.#i.detachView(this.compRef.hostView),this.compClosedSub?.unsubscribe(),this.compRef.destroy())}ngOnDestroy(){this.#n()}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275prov=le({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),Zi=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-button-group"]],ngContentSelectors:H,decls:1,vars:0,template:function(e,i){e&1&&(x(),f(0))},encapsulation:2,changeDetection:0})}}return n})(),yi=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["","spk-button",""]],attrs:at,ngContentSelectors:H,decls:1,vars:0,template:function(e,i){e&1&&(x(),f(0))},encapsulation:2,changeDetection:0})}}return n})(),en=(()=>{class n{constructor(){this.#e=I(ae,{optional:!0}),this.class=v(this.#e?.cardType??"default")}#e;static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-card"]],hostVars:2,hostBindings:function(e,i){e&2&&Y(i.class())},ngContentSelectors:H,decls:1,vars:0,template:function(e,i){e&1&&(x(),f(0))},encapsulation:2,changeDetection:0})}}return n})(),Di=(()=>{class n{#e=I(L);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus()}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-checkbox"]],hostBindings:function(e,i){e&1&&O("click",function(){return i.onClick()})},ngContentSelectors:H,decls:6,vars:0,consts:[[1,"box"],[1,"inherit","default-indicator"],[1,"inherit","indeterminate-indicator"]],template:function(e,i){e&1&&(x(),a(0,"div",0)(1,"spk-icon",1),_(2,"check"),p(),a(3,"spk-icon",2),_(4,"minus"),p()(),f(5))},dependencies:[te],encapsulation:2,changeDetection:0})}}return n})(),xi=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-chip"]],ngContentSelectors:H,decls:1,vars:0,template:function(e,i){e&1&&(x(),f(0))},encapsulation:2,changeDetection:0})}}return n})();var wi=["scroll","auto"],bi={width:void 0,height:void 0,closeOnButton:!0,closeOnEsc:!0},Ue=(()=>{class n{constructor(){this.#e=I(Be),this.#i=4,this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.above=m(!1),this.right=m(!1),this.markForCheck=m(null),this._above=v(this.above()),this._right=v(this.right()),this.disableOpenByClick=m(!1),this.isOpen=F(!1),this.options=m(),this.closed=X(),this.defaultOptionMerge=D(()=>N(N({},bi),this.options())),this.triggerRef=j.required("triggerRef"),this.popoverRef=j.required("popoverRef"),this.id=v("--"+Oe()),this.menuStyle=v(null),this.openAbort=null,this.openEffect=V(()=>{let t=this.popoverRef()?.nativeElement;if(this.isOpen()){this.openAbort&&this.openAbort.abort(),this.openAbort=new AbortController;let i={signal:this.openAbort?.signal};t?.showPopover(),document.addEventListener("keydown",s=>{s.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&s.preventDefault(),s.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},i),setTimeout(()=>{this.#t(this.popoverRef()?.nativeElement).addEventListener("scroll",()=>this.#n(),i),window.addEventListener("resize",()=>this.#n(),i),this.#n()})}else t.hidePopover(),this.openAbort?.abort(),this.closed.emit()}),this.markForCheckEffect=V(()=>{this.markForCheck()&&this.#e.markForCheck()})}#e;#i;toggleIsOpen(t){t.preventDefault(),t.stopPropagation(),this.disableOpenByClick()||this.isOpen.set(!this.isOpen())}eventClose(t){t.stopPropagation(),t.preventDefault(),this.isOpen.set(!1)}#t(t){let e=t.parentElement;for(;e;){if(wi.indexOf(window.getComputedStyle(e).overflowY)>-1&&e.scrollHeight>e.clientHeight)return e;e=e.parentElement}return document.documentElement}#n(){let t=this.triggerRef()?.nativeElement.getBoundingClientRect(),e=this.popoverRef()?.nativeElement.getBoundingClientRect(),i=t.left,s=t.bottom,o=i,r=s+this.#i,c=o+e.width>window.innerWidth,l=r+e.height>window.innerHeight;if(this.SUPPORTS_ANCHOR)this._above.set(l),this._right.set(c);else{if(o=i,r=s+this.#i,l){let w=t.top-e.height-this.#i;w<0||(r=w)}c&&(o=t.right-e.width,o<0&&(o=0));let d={left:o+"px",top:r+"px"};this.menuStyle.set(d)}}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-popover"]],viewQuery:function(e,i){e&1&&(q(i.triggerRef,qe,5),q(i.popoverRef,lt,5)),e&2&&Q(2)},hostVars:4,hostBindings:function(e,i){e&2&&M("above",i._above())("right",i._right())},inputs:{above:[1,"above"],right:[1,"right"],markForCheck:[1,"markForCheck"],disableOpenByClick:[1,"disableOpenByClick"],isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:pt,decls:10,vars:6,consts:[["triggerRef",""],["popoverRef",""],[1,"trigger",3,"click"],[1,"trigger-wrapper"],["spk-button","",1,"outlined"],["popover","",1,"popover"],[1,"overlay",3,"click"]],template:function(e,i){if(e&1){let s=W();x(ct),a(0,"div",2,0),O("click",function(r){return S(s),k(i.toggleIsOpen(r))}),a(2,"div",3),f(3),p(),a(4,"button",4),_(5,"Open popover"),p()(),a(6,"div",5,1)(8,"div",6),O("click",function(r){return S(s),k(i.isOpen()&&i.eventClose(r))}),p(),f(9,1),p()}e&2&&(B("anchor-name",i.id()),h(6),me(i.menuStyle()),B("position-anchor",i.id()))},dependencies:[yi],encapsulation:2,changeDetection:0})}}return n})();var tn=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-divider"]],ngContentSelectors:H,decls:1,vars:0,template:function(e,i){e&1&&(x(),f(0))},encapsulation:2,changeDetection:0})}}return n})(),Ee=(()=>{class n{#e=I(L);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus(),this.#e.nativeElement.querySelector("textarea")&&this.#e.nativeElement.querySelector("textarea").focus()}ngOnInit(){let t=typeof CSS<"u"&&CSS.supports("field-sizing","content"),e=this.#e.nativeElement.querySelector("textarea");if(!t&&e!==null){let o=function(){e.style.height="auto",e.style.height=e.scrollHeight+"px"},r=function(){window.setTimeout(o,0)};var i=o,s=r;e.addEventListener("change",o),e.addEventListener("cut",r),e.addEventListener("paste",r),e.addEventListener("drop",r),e.addEventListener("keydown",r),e.focus(),e.select(),o()}}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-form-field"]],hostBindings:function(e,i){e&1&&O("click",function(){return i.onClick()})},ngContentSelectors:ht,decls:15,vars:0,consts:[[1,"input-wrap"],[1,"prefix"],[1,"suffix"],[1,"helpers"],[1,"error"],[1,"hint"]],template:function(e,i){e&1&&(x(ut),f(0),a(1,"div",0)(2,"div",1),f(3,1),f(4,2),p(),f(5,3),f(6,4),a(7,"div",2),f(8,5),f(9,6),p()(),a(10,"div",3)(11,"div",4),f(12,7),p(),a(13,"div",5),f(14,8),p()())},encapsulation:2,changeDetection:0})}}return n})(),nn=(()=>{class n{constructor(){this._el=I(L),this.inputRef=j.required("input"),this.filesOver=v(!1),this.multiple=m(),this.accept=m(null),this.placeholder=F("Click or drag files here"),this.overlayText=m("Drop files here"),this.files=F([]),this.fileUploadClasses=D(()=>this._el.nativeElement.classList.toString()),this.inputEffect=V(()=>{let t=this.inputRef().nativeElement;t&&(t.placeholder&&this.placeholder.set(t.placeholder),t.addEventListener("dragover",e=>{e.preventDefault(),this.filesOver.set(!0)}),t.addEventListener("dragleave",e=>{e.preventDefault(),this.filesOver.set(!1)}),t.addEventListener("drop",e=>{e.preventDefault(),this.filesOver.set(!1);let i=e.dataTransfer?.files;i&&i.length>0&&(this.handleFileUpload(Array.from(i)),t.files=i)}),t.addEventListener("change",e=>{e.preventDefault(),this.handleFileUpload(Array.from(e.target.files))}))})}handleFileUpload(t){this.multiple()?this.files.update(e=>[...e,...t]):this.files.set(t)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-file-upload"]],viewQuery:function(e,i){e&1&&q(i.inputRef,ze,5),e&2&&Q()},inputs:{multiple:[1,"multiple"],accept:[1,"accept"],placeholder:[1,"placeholder"],overlayText:[1,"overlayText"],files:[1,"files"]},outputs:{placeholder:"placeholderChange",files:"filesChange"},ngContentSelectors:mt,decls:12,vars:7,consts:[["inputWrap",""],["input",""],["ngProjectAs","input",5,["input"],1,"input"],[1,"files-text"],[1,"placeholder"],["type","file"],[1,"bg-overlay"],["suffix",""]],template:function(e,i){e&1&&(x(ft),a(0,"spk-form-field"),f(1,0,["ngProjectAs","label",5,["label"]]),a(2,"div",2,0),b(4,gt,2,1,"div",3)(5,vt,2,1,"div",3)(6,Ct,2,1,"div",4),$(7,"input",5,1)(9,"div",6),p(),a(10,"spk-icon",7),_(11,"upload-simple"),p()()),e&2&&(Y(i.fileUploadClasses()),h(4),E(i.files().length===1?4:i.files().length>1?5:6),h(3),He("multiple",i.multiple())("accept",i.accept()),h(2),M("files-over",i.filesOver()))},dependencies:[Ee,te],encapsulation:2,changeDetection:0})}}return n})(),sn=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-list"]],ngContentSelectors:H,decls:1,vars:0,template:function(e,i){e&1&&(x(),f(0))},encapsulation:2,changeDetection:0})}}return n})();function $e(n,u){let t=u?.injector||(Ve($e),I(ce)),{debounce:e=0,initialValue:i=void 0,transform:s=C=>C,compare:o=(C,T)=>C===T,forceType:r=void 0,returnPreviousValue:c=!0}=u||{},l=v(i),d=t.get(pe),w=D(()=>{let C=n()?.nativeElement;if(C instanceof HTMLInputElement||C instanceof HTMLTextAreaElement)return Ne(C)}),R=!1,P,A=null;return V(()=>{let C=w();if(!C)return l.set(c&&P?s(P):void 0);i!==void 0&&C.value===""?l.set(i):C.value!==""&&ne();let T=U=>{A!==null&&clearTimeout(A),A=setTimeout(()=>{A=null,ne()},e)};C.addEventListener("input",T),C.addEventListener("inputValueChanged",T),d.onDestroy(()=>{C.removeEventListener("input",T),C.removeEventListener("inputValueChanged",T),A!==null&&clearTimeout(A)})},{injector:t}),V(()=>{let C=w();if(!C)return;let T=l()??"",U=T==null?"":String(T);C.value!==U&&(P=U,C.value=U,C.dispatchEvent(new Event("input")))},{injector:t}),l;function ne(){if(!R){R=!0;try{let C=w();if(!C)return;let T=C.value,U=r?Ye(T,r):s(T);P=T,o(l(),U)||l.set(U)}finally{R=!1}}}function Ne(C){return Object.defineProperty(C,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(C),"value").get.call(this)},set(T){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(C),"value").set.call(this,T);let Xe=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:T}});return this.dispatchEvent(Xe),T}}),C}function Ye(C,T){switch(T){case"string":return C.toString();case"number":let U=Number(C);return isNaN(U)?void 0:U;case"boolean":return C.toLowerCase()==="true"?!0:C.toLowerCase()==="false"?!1:void 0;default:return C}}}function Qe(n,u){let t=I(ce),e=t.get(pe),i=v([]),s=null,o=null,r=(l,d)=>{o&&o.disconnect();let w=Array.from(l.nativeElement.querySelectorAll(d.join(",")));i.set(w),o=new MutationObserver(R=>{requestAnimationFrame(()=>{let P=Array.from(l.nativeElement.querySelectorAll(d.join(",")));i.set(P)})}),o.observe(l.nativeElement,{childList:!0,subtree:!0}),e.onDestroy(()=>c())};s=V(()=>{let l=typeof n=="function"&&n[Me]?n():n,d=typeof u=="function"?u():u;l&&d?.length>0?r(l,d):(i.set([]),o&&(o.disconnect(),o=null))},{injector:t});function c(){s&&s.destroy(),o&&o.disconnect()}return{signal:i.asReadonly(),destroy:c}}var on=(()=>{class n{constructor(){this.#e=I(Pe),this.above=m(!1),this.right=m(!1),this.openIndicator=m(!1),this.disabled=m(!1),this.customOptionElementSelectors=m(["button"]),this.keepClickedOptionActive=m(!1),this.closeOnClick=m(!0),this.isOpen=F(!1),this.closed=X(),this.searchable=m(!1),this.activeOptionIndex=v(-1),this.inputRef=j("input"),this.optionsRef=j("optionsRef"),this.options=Qe(this.optionsRef,this.customOptionElementSelectors),this.optionsEl=D(()=>this.options.signal().filter(t=>!t.disabled)),this.inputValue=$e(this.inputRef),this.abortController=null,this.optionsEffect=V(()=>{if(!this.isOpen())return;this.abortController&&(this.abortController.abort(),this.abortController=null),this.abortController=new AbortController;let t=this.inputRef()?.nativeElement;t&&(queueMicrotask(()=>t.focus()),this.closeOnClick()||this.optionsRef()?.nativeElement?.addEventListener("click",i=>{let s=i.target,o=this.activeElements();if(!o.length){let c=this.optionsEl();this.activeElements.set(c),o=c}let r=o.findIndex(c=>c===s);r>-1&&(this.activeOptionIndex.set(r),t.focus())}),t.addEventListener("keydown",e=>{let i=this.activeOptionIndex();e.key==="ArrowDown"?(e.preventDefault(),this.activeOptionIndex.set(this.nextActiveIndex(i))):e.key==="ArrowUp"?(e.preventDefault(),this.activeOptionIndex.set(this.prevActiveIndex(i))):e.key==="Enter"?(e.preventDefault(),i>-1&&(this.activeElements()[i].click(),queueMicrotask(()=>this.close("active")))):e.key==="Tab"&&(e.preventDefault(),this.close("closed"))},{signal:this.abortController.signal}))}),this._lastElementList=[],this.activeElements=v([]),this.lastInputValue="",this.inputValueEffect=V(()=>{if(!this.searchable())return;let e=(this.inputValue()??"").toLowerCase();if(this.#t(),!e||e==="")return;let i=this._lastElementList.length&&e.length>this.lastInputValue.length?this._lastElementList:this.optionsEl();this.lastInputValue=e;for(let s=0;s<i.length;s++){let o=i[s],r=o.textContent?.toLowerCase()||"",c=this.#i(r,e);o.value=c}i=i.filter(s=>s.value>0).sort((s,o)=>o.value-s.value);for(let s=0;s<i.length;s++)this.#e.setStyle(i[s],"order",s);this.activeElements.set(i),this._lastElementList=i}),this.activeOptionIndexEffect=V(()=>{let t=this.activeElements(),e=this.activeOptionIndex();for(let i=0;i<t.length;i++)t[i].classList.remove("active");e>-1&&(t[e].scrollIntoView({block:"center"}),t[e].classList.add("active"))})}#e;#i(t,e){if(!e)return 0;let i=0,s=-1,o=0,r=!0;for(let c=0;c<e.length;c++){let l=e[c];if(t.length>s+1&&t[s+1]===l)i+=c===0?100:150,s++,o++;else{let d=t.indexOf(l,s+1);if(c>0&&(r=!1),d===-1)return 0;i+=100,s=d,o++}}return r&&e.length===o&&(i+=1e3),i+=o*20,i}nextActiveIndex(t){let e=this.activeElements();if(!e.length){let s=this.optionsEl();this.activeElements.set(s),e=s}if(t===-1||t===e.length-1)return 0;let i=t+1;return e[i].disabled?this.nextActiveIndex(i):i}prevActiveIndex(t){let e=this.activeElements();if(!e.length){let s=this.optionsEl();this.activeElements.set(s),e=s}if(t===0||t===-1)return e.length-1;let i=t-1;return e[i].disabled?this.prevActiveIndex(i):i}close(t="closed",e){this.inputValue.set(""),this.closeOnClick()&&((!this.keepClickedOptionActive()||t==="closed")&&this.#t(),this.isOpen.set(!1),this.closed.emit(t==="active"))}#t(){this.activeOptionIndex.set(-1);let t=this.optionsEl();for(let e=0;e<t.length;e++)t[e].classList.remove("active")}ngOnDestroy(){this.abortController&&(this.abortController.abort(),this.abortController=null)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-menu"]],viewQuery:function(e,i){e&1&&(q(i.inputRef,ze,5),q(i.optionsRef,_t,5)),e&2&&Q(2)},hostVars:4,hostBindings:function(e,i){e&2&&M("disabled",i.disabled())("has-search",i.searchable())},inputs:{above:[1,"above"],right:[1,"right"],openIndicator:[1,"openIndicator"],disabled:[1,"disabled"],customOptionElementSelectors:[1,"customOptionElementSelectors"],keepClickedOptionActive:[1,"keepClickedOptionActive"],closeOnClick:[1,"closeOnClick"],isOpen:[1,"isOpen"],searchable:[1,"searchable"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:kt,decls:12,vars:13,consts:[["formFieldWrapper",""],["input",""],["optionsRef",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","above","right","options"],["trigger","",3,"click"],[1,"open-indicator"],[1,"form-field-wrap"],[1,"small","stretch"],["type","text","placeholder","Search"],[1,"options",3,"click"]],template:function(e,i){if(e&1){let s=W();x(St),a(0,"spk-popover",3,0),ye("isOpenChange",function(r){return S(s),ke(i.isOpen,r)||(i.isOpen=r),k(r)}),O("closed",function(){return S(s),k(i.close("fromPopover"))}),a(2,"div",4),O("click",function(){return S(s),k(!i.disabled()&&i.isOpen.set(!0))}),f(3),b(4,yt,2,0,"spk-icon",5),p(),a(5,"div",6)(6,"spk-form-field",7),$(7,"input",8,1),p()(),a(9,"div",9,2),O("click",function(){return S(s),k(i.close("active"))}),f(11,1),p()()}e&2&&(Se("isOpen",i.isOpen),K("disableOpenByClick",!0)("above",i.above())("right",i.right())("options",De(12,dt)),h(2),M("is-open",i.isOpen()),h(2),E(i.openIndicator()?4:-1),h(2),M("hidden",i.searchable()===!1),h(3),M("searching",i.searchable()&&i.inputValue()!==""))},dependencies:[Ue,Ee,te],encapsulation:2,changeDetection:0})}}return n})(),Oi=(()=>{class n{constructor(){this.value=m(void 0)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-progress-bar"]],inputs:{value:[1,"value"]},decls:1,vars:2,consts:[[1,"progress-bar"]],template:function(e,i){e&1&&$(0,"div",0),e&2&&B("width",i.value(),"%")},encapsulation:2,changeDetection:0})}}return n})(),rn=(()=>{class n{#e=I(L);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus()}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-radio"]],hostBindings:function(e,i){e&1&&O("click",function(){return i.onClick()})},ngContentSelectors:H,decls:2,vars:0,consts:[[1,"radio"]],template:function(e,i){e&1&&(x(),$(0,"div",0),f(1))},encapsulation:2,changeDetection:0})}}return n})(),an=(()=>{class n{constructor(){this.#e=I(L),this.#i=null,this.#t=null,this.#n=0,this.alwaysShowThumb=m(!1),this.unit=m(""),this.value=F(this.#n),this.inputState=v({min:0,max:100,step:1}),this.valuePercentage=D(()=>{let{min:t,max:e}=this.inputState(),i=this.value()??t;if(isNaN(i))return 0;let s=e-t;if(s===0)return 0;let o=(i-t)/s*100;return Math.max(0,Math.min(100,o))}),this.trackFilledPercentage=D(()=>this.valuePercentage()),this.thumbPositionPercentage=D(()=>this.valuePercentage()),this.syncModelToInputEffect=V(()=>{let t=this.value();if(this.#t){let e=parseFloat(this.#t.value);(isNaN(e)||String(e)!==String(t))&&(this.#t.value=String(t))}})}#e;#i;#t;#n;get hasInputElement(){return!!this.#t}ngAfterViewInit(){this.#t=this.#e.nativeElement.querySelector('input[type="range"]'),this.#t?(this.#a(this.#t),this.#t.oninput=()=>{this.setNewInputValue(this.#t.value)},this.#t.addEventListener("inputValueChanged",t=>{this.setNewInputValue(t.detail.value)}),queueMicrotask(()=>this.#o(!0)),this.#s()):console.error('SparkleRangeSliderComponent: No <input type="range"> element found projected inside.')}setNewInputValue(t){let e=parseFloat(t??"0");if(!isNaN(e)){let{min:i,max:s}=this.inputState();this.value.set(Math.max(i,Math.min(s,e)))}}trackEvent(t){if(!this.#t||this.#t.readOnly||this.#t.disabled){t.preventDefault(),t.stopPropagation();return}if(t.target===this.#t||t.target?.closest(".thumb, .min-indicator, .max-indicator"))return;let i=t.currentTarget.getBoundingClientRect(),s=t.clientX-i.left,o=i.width,{min:r,max:c,step:l}=this.inputState(),d=c-r;if(o>0&&d!==0&&l>0){let R=(s/o*d+r-r)/l,P=r+Math.round(R)*l,A=this.#r(l);P=parseFloat(P.toFixed(A));let ne=Math.max(r,Math.min(c,P));this.value.set(ne)}}#o(t=!1){if(!this.#t)return;let e=parseFloat(this.#t.min??"0")??0,i=parseFloat(this.#t.max??"100")??100,s=this.#t.step,o=1;if(s&&s.toLowerCase()!=="any"){let c=parseFloat(s);!isNaN(c)&&c>0&&(o=c)}this.inputState.set({min:e,max:i,step:o});let r=parseFloat(this.#t.value??String(e))??e;if(t&&this.value()!==this.#n){let c=this.value(),l=Math.max(e,Math.min(i,c));r!==l&&(this.#t.value=String(l)),c!==l&&this.value.set(l)}else{let c=Math.max(e,Math.min(i,r));this.value()!==c&&this.value.set(c)}}#s(){if(!this.#t||typeof MutationObserver>"u")return;let t=["min","max","step","value","readonly","disabled"];this.#i=new MutationObserver(e=>{let i=!1;for(let s of e)if(s.type==="attributes"&&t.includes(s.attributeName??"")){i=!0;break}i&&this.#o(!1)}),this.#i.observe(this.#t,{attributes:!0})}#r(t){if(isNaN(t)||Math.floor(t)===t)return 0;let i=t.toString().split(".")[1];return i?i.length:0}#a(t){Object.defineProperty(t,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),"value").get.call(this)},set(e){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),"value").set.call(this,e);let s=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:e}});return this.dispatchEvent(s),e}})}ngOnDestroy(){this.#i&&this.#i.disconnect(),this.#t&&(this.#t.oninput=null)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-range-slider"]],hostVars:2,hostBindings:function(e,i){e&2&&M("has-input",i.hasInputElement)},inputs:{alwaysShowThumb:[1,"alwaysShowThumb"],unit:[1,"unit"],value:[1,"value"]},outputs:{value:"valueChange"},ngContentSelectors:xt,decls:15,vars:12,consts:[[1,"label"],[1,"input-wrap"],[1,"min-indicator"],[1,"track-wrap",3,"click"],[1,"track"],[1,"track-filled"],[1,"thumb-wrap"],[1,"thumb"],[1,"value-indicator"],[1,"max-indicator"]],template:function(e,i){e&1&&(x(Dt),a(0,"div",0),f(1),p(),a(2,"div",1)(3,"div",2),_(4),p(),a(5,"div",3),O("click",function(o){return i.trackEvent(o)}),f(6,1),a(7,"div",4),$(8,"div",5),p(),a(9,"div",6)(10,"div",7)(11,"div",8),_(12),p()()()(),a(13,"div",9),_(14),p()()),e&2&&(h(4),se("",i.inputState().min,"",i.unit(),""),h(4),B("width",i.trackFilledPercentage(),"%"),h(),B("left",i.thumbPositionPercentage(),"%"),h(),M("always-show",i.alwaysShowThumb()),h(2),se("",i.value(),"",i.unit(),""),h(2),se("",i.inputState().max,"",i.unit(),""))},encapsulation:2,changeDetection:0})}}return n})(),Ei=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-spinner"]],decls:0,vars:0,template:function(e,i){},encapsulation:2,changeDetection:0})}}return n})(),ln=(()=>{class n{constructor(){this.#e=I(L),this.value=m(),this.label=m(),this.asFreeText=m(!1),this.placeholder=m(),this.readonly=F(!1),this.disabled=F(!1),this.lazySearch=m(!1),this.inlineSearch=m(!1),this.asText=m(!1),this.isClearable=m(!0),this.selectMultiple=m(!1),this.optionTemplate=m(null),this.selectedOptionTemplate=m(null),this.placeholderTemplate=m(null),this.isOpen=F(!1),this.isLoading=F(!1),this.options=F([]),this.selectedOptions=F([]),this.cleared=X(),this.inlineTemplate=Fe(he),this.optionsWrapRef=j.required("optionsWrap"),this.inputRefInput=v(null),this.#i=typeof MutationObserver<"u"&&new MutationObserver(t=>{for(var e of t)e&&(e.target.nodeName==="INPUT"||e.target.nodeName==="TEXTAREA")&&(this.inputRefInput.set(new L(e.target)),this.#i.disconnect())}),this.inputValue=v(""),this.prevInputValue=v(null),this.focusedOptionIndex=v(-1),this._isClearable=D(()=>this.selectMultiple()||this.isClearable()),this.selectClasses=D(()=>this.#e.nativeElement.classList.toString()),this.stretch=D(()=>this.selectClasses().includes("stretch")),this.placeholderText=D(()=>{let t=this.placeholder(),e=this.inputRefEl();return t||e?.placeholder||null}),this.selectedOptionValues=D(()=>{let t=this.selectedOptions(),e=this.value();return e?t.map(i=>this.#s(i,e)):t}),this.filteredOptions=D(()=>{let t=this.options()||[],e=this.label(),i=this.value(),s=this.inlineSearch(),o=this.inputValue().toLowerCase(),r=this.#a(o);if(t.length<=0)return[];if(!s||o==="")return t;let l=t.filter(d=>{let w=e?(this.#s(d,e)??"").toString().toLowerCase():(d??"").toString().toLowerCase(),R=((i?this.#s(d,i):d)??"").toString().toLowerCase(),P=r.test(w),A=r.test(R);return P||A}).map(d=>{let w=e?(this.#s(d,e)??"").toString().toLowerCase():(d??"").toString().toLowerCase(),R=((i?this.#s(d,i):d)??"").toString().toLowerCase(),P=this.#t(w,o),A=this.#t(R,o);return{item:d,score:Math.max(P,A)}});return l.sort((d,w)=>w.score-d.score),l.map(d=>d.item)}),this.inputRefEl=D(()=>{let t=this.inputRefInput();if(t===null)return;let e=t?t.nativeElement:null;return e?(e.autocomplete="off",this.#r(e),e.addEventListener("focus",()=>{this.readonly()||this.open()}),this.hasSearch()&&e.addEventListener("input",i=>{let s=i.target.value,o=this.inputValue();s!==o&&(this.focusedOptionIndex.set(this.asFreeText()?-1:0),this.inputValue.set(s),this.updateInputElValue())}),e.addEventListener("inputValueChanged",i=>{let s=i.detail.value,o=this.inputValue();if(s!==o){if(s===""){this.clear();return}this.setSelectedOptionsFromValue(s),this.setInputValueFromSelectedOptions(),this.#o()}}),e):(console.warn("<spk-select> input element not found are you missing to pass an <input> or <textarea> element to select component?"),null)}),this.openAbortController=null,this.isOpenEffect=V(()=>{if(this.isOpen()){this.openAbortController||(this.openAbortController=new AbortController);let e=this.inputRefEl();if(!e)return;e.addEventListener("keydown",i=>{if((i.key==="Escape"||i.key==="Tab")&&(i.preventDefault(),this.close()),(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),this.toggleOptionByIndex(this.focusedOptionIndex())),i.key==="ArrowDown"){i.preventDefault();let s=this.focusedOptionIndex()+1;this.focusedOptionIndex.set(s>this.filteredOptions().length-1?0:s)}if(i.key==="ArrowUp"){i.preventDefault();let s=this.focusedOptionIndex()-1;this.focusedOptionIndex.set(s<0?this.filteredOptions().length-1:s)}},{signal:this.openAbortController?.signal})}else{if(!this.inputRefEl())return;this.openAbortController&&(this.openAbortController.abort(),this.openAbortController=null)}}),this._inputValue="",this.inputValueEffect=V(()=>{let t=this.inputValue();this._inputValue=t}),this.inputRefElEffect=V(()=>{let t=this.inputRefEl();t&&t.value!==this._inputValue&&(this.disabled.set(t.disabled),this.setSelectedOptionsFromValue(t.value),this.setInputValueFromSelectedOptions())}),this.selectedLabels=D(()=>{let t=this.selectedOptions();return this.label()?t.map(i=>this.getLabel(i)).join(", "):t.join(", ")}),this.inputState=D(()=>(this.selectedOptions().length>0||this.asFreeText()&&this.inputValue().length>0)&&!this.isOpen()?"selected":this.isLoading()?"loading":this.isOpen()&&(this.lazySearch()||this.inlineSearch())?"open-searching":this.isOpen()?"open":this.inlineSearch()||this.lazySearch()?"searching":"closed"),this.hasSearch=D(()=>this.inlineSearch()||this.lazySearch()),this.#n=V(()=>{if(this.selectMultiple()&&this.hasSearch())return;let t=this.selectedOptions(),e=this.value(),i=t.map(s=>e?this.#s(s,e):s).join(",");this.inputValue.set(i)})}#e;#i;#t(t,e){if(!e)return 0;let i=0,s=-1,o=0,r=!0;for(let c=0;c<e.length;c++){let l=e[c];if(t.length>s+1&&t[s+1]===l)i+=c===0?100:150,s++,o++;else{let d=t.indexOf(l,s+1);if(c>0&&(r=!1),d===-1)return 0;i+=100,s=d,o++}}return r&&e.length===o&&(i+=1e3),i+=o*20,i}#n;ngOnInit(){this.setInitInput()}setInitInput(){let t=this.#e.nativeElement.querySelector("input");if(t){this.inputRefInput.set(new L(t));return}let e=this.#e.nativeElement.querySelector("textarea");if(e){this.inputRefInput.set(new L(e));return}typeof MutationObserver<"u"&&this.#i.observe(this.#e.nativeElement,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}setSelectedOptionsFromValue(t){let e=this.options()||[],i=this.value(),s=this.selectMultiple(),o=t.toString().split(",");if(o.length===0){this.selectedOptions.set([]);return}let r=s?o:[o[0]],c=e.filter(l=>{let d=i?this.#s(l,i)?.toString():l?.toString();return d&&r.includes(d)});this.selectedOptions.set(s?c:[c[0]])}setInputValueFromSelectedOptions(){let t=this.selectedOptions(),e=this.value();if(t.length===0){this.inputValue.set(""),this.updateInputElValue();return}let i=t.map(s=>e?this.#s(s,e):s).join(",");this.inputValue.set(i),this.updateInputElValue()}getLabel(t){let e=this.label();return e?this.#s(t,e):t}toggleOptionByIndex(t,e){let i=this.filteredOptions()[t];if(this.asFreeText()&&t===-1||!i){this.close();return}e&&e.stopPropagation();let s=this.selectMultiple(),o=this._isClearable(),r=this.value(),c=this.selectedOptionValues(),l=r?this.#s(i,r):i;this.prevInputValue.set(null),this.selectedOptions.update(d=>{let w=c.indexOf(l);if(w>-1){let R=[...d.slice(0,w),...d.slice(w+1)];return o||R.length>0?R:d}else return this.focusedOptionIndex.set(t),s?[...d,i]:[i]}),s?this.inputRefEl()?.focus():this.isOpen.set(!1),this.setInputValueFromSelectedOptions(),s&&this.hasSearch()&&(this.inputValue.set(""),this.updateInputElValue())}removeSelectedOptionByIndex(t,e){t.stopPropagation(),this.selectedOptions.update(i=>[...i.slice(0,e),...i.slice(e+1)]),this.setInputValueFromSelectedOptions()}isSelected(t){let e=this.value(),i=this.filteredOptions()[t],s=e?this.#s(i,e):i;return this.selectedOptionValues().indexOf(s)>-1}open(){this.isOpen()||(this.isOpen.set(!0),this.hasSearch()&&(this.prevInputValue.set(this.inputValue()??""),this.inputValue.set(""),this.updateInputElValue()),this.selectMultiple()||this.#o())}#o(){let t=this.selectedOptionValues()[0],e=this.value();if(t){let i=this.filteredOptions().findIndex(s=>e?this.#s(s,e)===t:s===t);this.focusedOptionIndex.set(i)}else this.focusedOptionIndex.set(-1)}close(){this.isOpen.set(!1);let t=this.prevInputValue();if(this.asFreeText()){this.updateInputElValue();return}this.hasSearch()&&t&&(this.inputValue.set(t),this.setInputValueFromSelectedOptions()),this.selectMultiple()&&this.setInputValueFromSelectedOptions()}clear(t){t?.stopPropagation(),this.inputValue.set(""),this.selectedOptions.set([]),this.isOpen.set(!1),this.prevInputValue.set(null),this.cleared.emit(),this.updateInputElValue()}updateInputElValue(){let t=this.inputRefEl(),e=this.inputValue();t&&(t.value=e,t.dispatchEvent(new Event("input")))}#s(t,e){return e.split(".").reduce((i,s)=>i?.[s],t)}#r(t){Object.defineProperty(t,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),"value").get.call(this)},set(e){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),"value").set.call(this,e);let s=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:e}});return this.dispatchEvent(s),e}})}#a(t){let e=(t??"").toLowerCase(),i="^";for(let s of e)i+=".*"+this.#l(s);return i+=".*$",new RegExp(i,"i")}#l(t){return t.replace(/[-\/\\^$+?.()|[\]{}]/g,"\\$&")}ngOnDestroy(){this.openAbortController&&(this.openAbortController.abort(),this.openAbortController=null),typeof MutationObserver<"u"&&this.#i.disconnect()}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-select"]],contentQueries:function(e,i,s){e&1&&Le(s,i.inlineTemplate,he,5),e&2&&Q()},viewQuery:function(e,i){e&1&&q(i.optionsWrapRef,wt,5),e&2&&Q()},hostVars:2,hostBindings:function(e,i){e&2&&M("multiple",i.selectMultiple())},inputs:{value:[1,"value"],label:[1,"label"],asFreeText:[1,"asFreeText"],placeholder:[1,"placeholder"],readonly:[1,"readonly"],disabled:[1,"disabled"],lazySearch:[1,"lazySearch"],inlineSearch:[1,"inlineSearch"],asText:[1,"asText"],isClearable:[1,"isClearable"],selectMultiple:[1,"selectMultiple"],optionTemplate:[1,"optionTemplate"],selectedOptionTemplate:[1,"selectedOptionTemplate"],placeholderTemplate:[1,"placeholderTemplate"],isOpen:[1,"isOpen"],isLoading:[1,"isLoading"],options:[1,"options"],selectedOptions:[1,"selectedOptions"]},outputs:{readonly:"readonlyChange",disabled:"disabledChange",isOpen:"isOpenChange",isLoading:"isLoadingChange",options:"optionsChange",selectedOptions:"selectedOptionsChange",cleared:"cleared"},ngContentSelectors:Ot,decls:32,vars:22,consts:[["formFieldWrapper",""],["optionsWrap",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","options"],["trigger","",3,"click"],["ngProjectAs","input",5,["input"],1,"input"],[1,"selected-value"],["suffix",""],["suffix","",1,"primary"],[1,"sparkle-options"],[1,"option",3,"selected","focused"],[1,"small",3,"class"],[1,"small"],[3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],["suffix","",3,"click"],[1,"option",3,"click"],[3,"class","active"]],template:function(e,i){if(e&1){let s=W();x(bt),oe(0)(1)(2)(3)(4)(5)(6)(7)(8)(9),a(10,"spk-popover",2,0),ye("isOpenChange",function(r){return S(s),ke(i.isOpen,r)||(i.isOpen=r),k(r)}),O("closed",function(){return S(s),k(i.close())}),a(12,"spk-form-field",3),O("click",function(){return S(s),k(i.open())}),f(13,0,["ngProjectAs","label",5,["label"]]),a(14,"div",4)(15,"div",5),b(16,Tt,1,1)(17,Wt,2,0)(18,$t,2,1),f(19,1),f(20,2),p()(),b(21,Qt,2,0,"spk-icon",6)(22,Nt,1,0,"spk-spinner",7)(23,Yt,2,0,"spk-icon",6)(24,Xt,2,0,"spk-icon",6)(25,Gt,2,0,"spk-icon",6)(26,Kt,2,0,"spk-icon",6)(27,Jt,2,0,"spk-icon",6),p(),a(28,"div",8,1),ve(30,ni,4,6,"li",9,ge),p()()}if(e&2){J(i.placeholderTemplate());let s=i.optionTemplate(),o=i.selectedOptionTemplate(),r=i.inlineTemplate();h(4);let c=J(i.selectedOptions()),l=i.inputState();h(2),J(o||s||r),h(),J(s||r),h();let d=J(!i.asText()&&i.selectMultiple());h();let w=J(i.isOpen()&&i.hasSearch()&&(d||i.inputValue().length>0));h(),Se("isOpen",i.isOpen),K("disableOpenByClick",!0)("options",De(21,Et)),h(2),M("stretch",i.stretch())("autosize",i.selectMultiple())("readonly",i.readonly()||i.disabled()),h(2),M("show-search-text",w),h(),M("is-selected",l==="selected"),h(),E(i.asFreeText()&&i.inputValue().length>0&&!i.isOpen()?16:c.length>0?17:w?-1:18),h(5),E(l==="closed"?21:l==="loading"?22:l==="open-searching"?23:l==="searching"?24:l==="selected"&&i._isClearable()?25:l==="selected"&&!i._isClearable()?26:27),h(9),Ce(i.filteredOptions())}},dependencies:[We,Ue,Ee,te,Di,Ei,xi],encapsulation:2,changeDetection:0})}}return n})(),cn=(()=>{class n{constructor(){this.#e=I(ae,{optional:!0}),this.#i=v(this.#e?.sidenavType),this.openWidth=280,this.openWidthTreshold=this.openWidth*.9,this.disableDrag=m(!1),this.isOpen=F(!1),this.type=m(void 0),this.class=D(()=>this.#i()?this.#i():this.#e?.sidenavType),this.dragImageElement=j.required("dragImageElement"),this.dragIsEnding=v(!1),this.dragIsOnScreen=v(!0),this.isDragging=v(!1),this.dragPositionX=v(0),this.dragActualPositionX=D(()=>{let t=this.dragPositionX(),e=.32;return t>this.openWidthTreshold?this.openWidthTreshold+(t-this.openWidthTreshold)*e:t}),this.draggingStyle=D(()=>this.type()!=="overlay"?null:this.isDragging()?`translateX(${this.dragActualPositionX()}px)`:this.isOpen()?`translateX(${this.openWidth}px)`:"translateX(0px)"),this.draggingEffect=V(()=>{this.isDragging()&&document.body.classList.add("dragging")})}#e;#i;drop(t){t.stopPropagation(),this.#t(t.clientX)}#t(t){this.isDragging.set(!1),t<=0?this.isOpen.set(!1):t>this.openWidthTreshold?this.isOpen.set(!0):t<this.openWidthTreshold&&(!this.isOpen()&&t<this.openWidthTreshold*.6?this.isOpen.set(!0):this.isOpen.set(!1))}dragEnd(t){(t.clientX<0||!this.dragIsOnScreen())&&this.#t(0)}dragEnter(){this.dragIsOnScreen.set(!0)}dragLeave(){this.dragIsOnScreen.set(!1)}dragOver(t){t.preventDefault(),this.#n(t)}dragStart(t){t.stopPropagation(),this.isDragging.set(!0),this.#n(t)}#n(t){t.dataTransfer?.setDragImage(this.dragImageElement().nativeElement,0,0)}drag(t){t.stopPropagation(),setTimeout(()=>{this.isDragging()&&this.dragIsOnScreen()&&this.dragPositionX.set(t.clientX)}),this.#n(t)}touchStart(t){t.stopPropagation(),this.isDragging.set(!0)}touchMove(t){t.stopPropagation(),setTimeout(()=>{this.isDragging()&&this.dragIsOnScreen()&&this.dragPositionX.set(t.touches[0].clientX)})}touchEnd(t){t.stopPropagation(),this.#t(t.changedTouches[0].clientX)}touchCancel(t){t.stopPropagation(),this.isDragging.set(!1)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-sidenav"]],viewQuery:function(e,i){e&1&&q(i.dragImageElement,si,5),e&2&&Q()},hostVars:8,hostBindings:function(e,i){e&2&&(Y(i.class()),M("open",i.isOpen())("closed",!i.isOpen())("is-dragging",i.isDragging()))},inputs:{disableDrag:[1,"disableDrag"],isOpen:[1,"isOpen"],type:[1,"type"]},outputs:{isOpen:"isOpenChange"},ngContentSelectors:ri,decls:10,vars:5,consts:[["dragImageElement",""],[1,"drag-image"],[1,"dropping-surface"],[1,"sidenav"],[1,"main-wrap"],["draggable","true",1,"dragable"],[1,"closed-topbar"],[1,"dropping-surface",3,"drop","dragover","dragenter","dragleave"],["draggable","true",1,"dragable",3,"dragstart","dragend","drag","touchstart","touchmove","touchend","touchcancel"]],template:function(e,i){e&1&&(x(oi),b(0,ai,2,0,"div",1)(1,li,1,0,"div",2),a(2,"div",3),f(3),p(),a(4,"div",4),b(5,ci,1,0,"div",5),a(6,"div",6),f(7,1),p(),a(8,"main"),f(9,2),p()()),e&2&&(E(i.type()==="overlay"?0:-1),h(),E(i.type()==="overlay"&&i.isDragging()?1:-1),h(3),B("transform",i.draggingStyle()),h(),E(i.type()==="overlay"&&!i.disableDrag()?5:-1))},encapsulation:2,changeDetection:0})}}return n})();var pn=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-stepper"]],ngContentSelectors:H,decls:1,vars:0,template:function(e,i){e&1&&(x(),f(0))},encapsulation:2,changeDetection:0})}}return n})();var dn=(()=>{class n{constructor(){this.#e=I(Ti),this.spkSort=m(),this.sortAsc=D(()=>{let t=this.#e.sortByColumn(),e=this.spkSort();return!t||!e?!1:t===e}),this.sortDesc=D(()=>{let t=this.#e.sortByColumn(),e=this.spkSort();return!t||!e?!1:t===`-${e}`})}#e;toggleSort(){let t=this.spkSort();t&&this.#e.toggleSort(t)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275dir=fe({type:n,selectors:[["","spkSort",""]],hostAttrs:[1,"sortable"],hostVars:4,hostBindings:function(e,i){e&1&&O("mousedown",function(){return i.toggleSort()}),e&2&&M("sort-asc",i.sortAsc())("sort-desc",i.sortDesc())},inputs:{spkSort:[1,"spkSort"]}})}}return n})();var ee=1.5,Ti=(()=>{class n{constructor(){this.#e=I(L),this.#i=I(ae,{optional:!0}),this.loading=m(!1),this.data=m([]),this.dataChange=X(),this.sortByColumn=F(null),this.thead=j("thead"),this.columns=Qe(this.thead,["TH"]),this.class=v(this.#i?.tableType??"default"),this.resizing=v(!1),this.sizeTrigger=v(!0),this.#t=null,this.#n=v(!1),this.scrollXState=v(-1),this.scrollYState=v(-1),this.canScrollX=v(!1),this.canScrollY=v(!1),this.columnSizes=D(()=>{this.sizeTrigger();let t=this.columns.signal();return t.reduce((e,i,s)=>{let o=i,r=s===t.length-1;return o.dataset.size?`${e} ${o.dataset.size}`:o.classList.contains("sticky")||o.classList.contains("sticky-end")?`${e} min-content`:r?`${e} 1fr`:`${e} 1fr`},"")}),this.e=V(()=>{let t=this.sortByColumn();if(t===null)return this.#n()||(this.#t=this.data(),this.#n.set(!0)),this.dataChange.emit(structuredClone(this.#t));let e=t.startsWith("-")?t.slice(1):t,i=t.startsWith("-"),s=this.data().sort((o,r)=>{let c=o[e],l=r[e],d=0;return typeof c=="number"&&typeof l=="number"&&(d=c-l),c instanceof Date&&l instanceof Date&&(d=c.getTime()-l.getTime()),typeof c=="string"&&typeof l=="string"&&(d=c.localeCompare(l,void 0,{sensitivity:"base"})),i?-d:d});this.dataChange.emit(s)})}#e;#i;#t;#n;updateColumnSizes(){this.sizeTrigger.set(!this.sizeTrigger())}onScroll(){this.#o()}onResize(t){this.#o()}ngAfterViewInit(){queueMicrotask(()=>this.#o())}toggleSort(t){let e=this.sortByColumn(),i=e===t?`-${t}`:e===`-${t}`?null:t;this.sortByColumn.set(i)}#o(){let t=this.#e.nativeElement,e=-1,i=-1,s=t.scrollWidth>t.clientWidth+ee;if(s){let r=t.scrollLeft<=ee;t.scrollWidth-(t.scrollLeft+t.clientWidth)<ee?e=1:r||(e=0)}this.scrollXState.set(e),this.canScrollX.set(s);let o=t.scrollHeight>t.clientHeight+ee;if(o){let r=t.scrollTop<=ee;t.scrollHeight-(t.scrollTop+t.clientHeight)<ee?i=1:r||(i=0)}this.scrollYState.set(i),this.canScrollY.set(o)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-table"]],viewQuery:function(e,i){e&1&&q(i.thead,pi,5),e&2&&Q()},hostVars:18,hostBindings:function(e,i){e&1&&O("scroll",function(){return i.onScroll()})("resize",function(o){return i.onResize(o)},!1,Re),e&2&&(Y(i.class()),B("grid-template-columns",i.columnSizes()),M("resizing",i.resizing())("can-scroll-x",i.canScrollX())("can-scroll-y",i.canScrollY())("scrolled-x",i.scrollXState()>=0)("scrolled-x-end",i.scrollXState()===1)("scrolled-y",i.scrollYState()>=0)("scrolled-y-end",i.scrollYState()===1))},inputs:{loading:[1,"loading"],data:[1,"data"],sortByColumn:[1,"sortByColumn"]},outputs:{dataChange:"dataChange",sortByColumn:"sortByColumnChange"},ngContentSelectors:ui,decls:7,vars:2,consts:[["thead",""],[1,"indeterminate","primary"],[1,"no-rows"]],template:function(e,i){e&1&&(x(di),a(0,"thead",null,0),f(2),b(3,hi,1,0,"spk-progress-bar",1),p(),a(4,"tbody"),f(5,1),p(),b(6,fi,2,0,"div",2)),e&2&&(h(3),E(i.loading()?3:-1),h(3),E(i.loading()?-1:6))},dependencies:[Oi],encapsulation:2,changeDetection:0})}}return n})(),un=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-tabs"]],ngContentSelectors:H,decls:1,vars:0,template:function(e,i){e&1&&(x(),f(0))},encapsulation:2,changeDetection:0})}}return n})(),hn=(()=>{class n{constructor(){this.isActive=F(!1),this.disallowToggle=m(!1)}ngOnInit(){this.disallowToggle()&&this.isActive.set(!0)}toggle(){this.isActive.set(!this.isActive())}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-toggle-card"]],hostVars:2,hostBindings:function(e,i){e&2&&M("active",i.isActive())},inputs:{isActive:[1,"isActive"],disallowToggle:[1,"disallowToggle"]},outputs:{isActive:"isActiveChange"},ngContentSelectors:gi,decls:6,vars:1,consts:[[3,"click"],[1,"toggle-icon"],[1,"content"]],template:function(e,i){e&1&&(x(mi),a(0,"h3",0),O("click",function(){return i.disallowToggle()||i.toggle()}),f(1,0,null,vi,1,0),b(3,Ci,2,0,"spk-icon",1),p(),a(4,"div",2),f(5,1),p()),e&2&&(h(3),E(i.disallowToggle()?-1:3))},dependencies:[te],encapsulation:2,changeDetection:0})}}return n})(),fn=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-toggle"]],ngContentSelectors:H,decls:3,vars:0,consts:[[1,"box"],[1,"knob"]],template:function(e,i){e&1&&(x(),a(0,"div",0),$(1,"div",1),p(),f(2))},encapsulation:2,changeDetection:0})}}return n})(),mn=(()=>{class n{constructor(){this.#e=4,this.SUPPORTS_ANCHOR=CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.disabled=m(!1),this.above=m(!1),this.right=m(!1),this._above=v(this.above()),this._right=v(this.right()),this.message=m.required(),this.isOpen=F(!1),this.closed=X(),this.triggerRef=j.required("triggerRef"),this.tooltipRef=j.required("tooltipRef"),this.id=v("--"+Oe()),this.menuStyle=v(null),this.isCalculatingPosition=D(()=>{let t=this.tooltipRef()?.nativeElement;return this.isOpen()?(t?.showPopover(),!0):(t.hidePopover(),this.abortController?.abort(),this.closed.emit(),!1)}),this.abortController=null,this.calcPositionEffect=V(()=>{if(!this.isCalculatingPosition())return;this.abortController&&this.abortController.abort(),this.abortController=new AbortController;let e=this.abortController.signal;this.calculateMenuPosition(),this.#i(this.tooltipRef()?.nativeElement).addEventListener("scroll",()=>this.calculateMenuPosition(),{signal:e}),document.addEventListener("resize",()=>this.calculateMenuPosition(),{signal:e})}),this.scrollableStyles=["scroll","auto"]}#e;#i(t){let e=t.parentElement;for(;e;){if(this.scrollableStyles.indexOf(window.getComputedStyle(e).overflowY)>-1&&e.scrollHeight>e.clientHeight)return e;e=e.parentElement}return document.documentElement}eventClose(t){t.stopPropagation(),t.preventDefault(),this.isOpen.set(!1)}ngOnDestroy(){this.abortController&&this.abortController.abort()}calculateMenuPosition(){let t=this.triggerRef()?.nativeElement.getBoundingClientRect(),e=this.tooltipRef()?.nativeElement.getBoundingClientRect(),i=t.left,s=t.bottom,o=i,r=s+this.#e,c=o+e.width>window.innerWidth,l=r+e.height>window.innerHeight;if(this.SUPPORTS_ANCHOR)this._above.set(l),this._right.set(c);else{if(this.above()){let d=t.top-e.height-this.#e;d>=0&&(r=d)}else l&&(r=t.top-e.height-this.#e);if(this.right()){let d=t.right-e.width;d>=0&&(o=d)}else c&&(r=l?t.top+t.height-e.height:t.top,o=t.left-e.width-this.#e);this.menuStyle.set({left:o+"px",top:r+"px"})}}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-tooltip"]],viewQuery:function(e,i){e&1&&(q(i.triggerRef,qe,5),q(i.tooltipRef,_i,5)),e&2&&Q(2)},hostVars:6,hostBindings:function(e,i){e&2&&M("above",i._above())("right",i._right())("disabled",i.disabled())},inputs:{disabled:[1,"disabled"],above:[1,"above"],right:[1,"right"],message:[1,"message"],isOpen:[1,"isOpen"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:H,decls:6,vars:7,consts:[["triggerRef",""],["tooltipRef",""],[1,"trigger",3,"mouseover","mouseout"],["popover","",1,"tooltip"]],template:function(e,i){if(e&1){let s=W();x(),a(0,"div",2,0),O("mouseover",function(){return S(s),k(i.isOpen.set(!0))})("mouseout",function(){return S(s),k(i.isOpen.set(!1))}),f(2),p(),a(3,"div",3,1),_(5),p()}e&2&&(B("anchor-name",i.id()),h(3),me(i.menuStyle()),B("position-anchor",i.id()),h(2),G(" ",i.message()," "))},encapsulation:2,changeDetection:0})}}return n})();var gn=(()=>{class n{constructor(){this.filesOver=v(!1),this.filesDropped=X()}onDragOver(t){t.preventDefault(),t.stopPropagation(),this.filesOver.set(!0)}onDragLeave(t){t.preventDefault(),t.stopPropagation(),this.filesOver.set(!1)}ondrop(t){t.preventDefault(),t.stopPropagation(),this.filesOver.set(!1);let e=t.dataTransfer?.files;e&&e.length>0&&this.filesDropped.emit(e)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275dir=fe({type:n,selectors:[["","spkDragDrop",""]],hostVars:2,hostBindings:function(e,i){e&1&&O("dragover",function(o){return i.onDragOver(o)})("dragleave",function(o){return i.onDragLeave(o)})("drop",function(o){return i.ondrop(o)}),e&2&&M("filesover",i.filesOver())},outputs:{filesDropped:"filesDropped"}})}}return n})();export{te as a,Gi as b,Ki as c,ki as d,Ji as e,Zi as f,yi as g,en as h,Di as i,xi as j,tn as k,Ee as l,nn as m,sn as n,on as o,Oi as p,rn as q,an as r,Ei as s,ln as t,cn as u,pn as v,dn as w,Ti as x,un as y,hn as z,fn as A,mn as B,gn as C};
@@ -1 +1 @@
1
- import{h as u}from"./chunk-JSGFZ2GA.js";import{Ac as r,Bc as g,F as s,S as n,Y as o,ua as l}from"./chunk-W2F756OF.js";var h=[{value:"Disabled",label:$localize`Disabled`},{value:"Verbose",label:$localize`Verbose`},{value:"ExplicitOnly",label:$localize`Explicit only`},{value:"Profiling",label:$localize`Profiling`},{value:"Retry",label:$localize`Retry`},{value:"Information",label:$localize`Information`},{value:"DryRun",label:$localize`Dry run`},{value:"Warning",label:$localize`Warning`},{value:"Error",label:$localize`Error`}],c=class a{#l=o(u);#e=l([]);LOG_LEVELS=h;logLevel=l("Disabled");logLevelByLabel=r(()=>h.find(e=>e.value===this.logLevel())?.label);whenFilter=l(null);backupIdFilter=l(null);id=l(0);logs=r(()=>this.whenFilter()&&this.backupIdFilter()?this.#e().filter(e=>e.BackupID===this.backupIdFilter()&&new Date(e.When).getTime()>=this.whenFilter()&&e.BackupID===this.backupIdFilter()):this.#e());timerInterval;logsLoading=l(!1);isPolling=l(!1);pagination=l({offset:0,pagesize:100});logLevelEffect=g(()=>{this.logLevel()==="Disabled"?this.timerInterval=void 0:this.isPolling()?(this.#e.set([]),this.id.set(0),queueMicrotask(()=>this.loadLogs()),this.timerInterval&&clearInterval(this.timerInterval),this.timerInterval=setInterval(()=>{this.loadLogs()},3e3)):(this.timerInterval&&clearInterval(this.timerInterval),this.timerInterval=void 0)});setWhenFilter(e){this.whenFilter.set(e)}setBackupIdFilter(e){this.backupIdFilter.set(e)}loadLogs(){this.logsLoading.set(!0),this.#l.getApiV1LogdataPoll({id:this.id(),level:this.logLevel(),pagesize:this.pagination().pagesize}).pipe(s(()=>this.logsLoading.set(!1))).subscribe({next:e=>{let t=e.reverse(),i=this.#t(t);i>0&&this.id.set(i),this.#e.set([...t,...this.#e()])}})}updateLogLevel(e){this.logLevel.set(e)}#t(e){return e.reduce((t,i)=>Math.max(t,i.ID),0)}destroy(){this.logLevel.set("Disabled"),this.timerInterval&&clearInterval(this.timerInterval)}static \u0275fac=function(t){return new(t||a)};static \u0275prov=n({token:a,factory:a.\u0275fac,providedIn:"root"})};export{c as a};
1
+ import{h as u}from"./chunk-S5EF63OY.js";import{F as s,Oc as r,Pc as g,T as n,Z as o,va as l}from"./chunk-L72ALLHJ.js";var h=[{value:"Disabled",label:$localize`Disabled`},{value:"Verbose",label:$localize`Verbose`},{value:"ExplicitOnly",label:$localize`Explicit only`},{value:"Profiling",label:$localize`Profiling`},{value:"Retry",label:$localize`Retry`},{value:"Information",label:$localize`Information`},{value:"DryRun",label:$localize`Dry run`},{value:"Warning",label:$localize`Warning`},{value:"Error",label:$localize`Error`}],c=class a{#l=o(u);#e=l([]);LOG_LEVELS=h;logLevel=l("Disabled");logLevelByLabel=r(()=>h.find(e=>e.value===this.logLevel())?.label);whenFilter=l(null);backupIdFilter=l(null);id=l(0);logs=r(()=>this.whenFilter()&&this.backupIdFilter()?this.#e().filter(e=>e.BackupID===this.backupIdFilter()&&new Date(e.When).getTime()>=this.whenFilter()&&e.BackupID===this.backupIdFilter()):this.#e());timerInterval;logsLoading=l(!1);isPolling=l(!1);pagination=l({offset:0,pagesize:100});logLevelEffect=g(()=>{this.logLevel()==="Disabled"?this.timerInterval=void 0:this.isPolling()?(this.#e.set([]),this.id.set(0),queueMicrotask(()=>this.loadLogs()),this.timerInterval&&clearInterval(this.timerInterval),this.timerInterval=setInterval(()=>{this.loadLogs()},3e3)):(this.timerInterval&&clearInterval(this.timerInterval),this.timerInterval=void 0)});setWhenFilter(e){this.whenFilter.set(e)}setBackupIdFilter(e){this.backupIdFilter.set(e)}loadLogs(){this.logsLoading.set(!0),this.#l.getApiV1LogdataPoll({id:this.id(),level:this.logLevel(),pagesize:this.pagination().pagesize}).pipe(s(()=>this.logsLoading.set(!1))).subscribe({next:e=>{let t=e.reverse(),i=this.#t(t);i>0&&this.id.set(i),this.#e.set([...t,...this.#e()])}})}updateLogLevel(e){this.logLevel.set(e)}#t(e){return e.reduce((t,i)=>Math.max(t,i.ID),0)}destroy(){this.logLevel.set("Disabled"),this.timerInterval&&clearInterval(this.timerInterval)}static \u0275fac=function(t){return new(t||a)};static \u0275prov=n({token:a,factory:a.\u0275fac,providedIn:"root"})};export{c as a};
@@ -1 +1 @@
1
- import{a as ke,c as Re,d as B}from"./chunk-KSP3JQHY.js";import{a as Oe}from"./chunk-HTNYQE2B.js";import{a as ue}from"./chunk-OTLEEXAA.js";import"./chunk-RHW5QVAY.js";import{b as de,c as Pe,d as S,e as Te,f as Ce,i as me,n as Ee,q as Se,r as ge,t as fe}from"./chunk-T2OUHRUV.js";import"./chunk-I3C2AEHI.js";import{b as oe,d as te,e as ne}from"./chunk-QVIZK4WW.js";import"./chunk-WMTA6PZM.js";import{A as Fe,a as re,b as se,f as ae,g as le,l as pe,p as _e,z as ce}from"./chunk-WX7L7V6J.js";import{c as ee,h as ie}from"./chunk-JSGFZ2GA.js";import"./chunk-CKPICCFH.js";import{$b as A,Ac as N,Bc as Z,Cb as M,F as I,Gb as _,Hb as c,Ib as m,Jb as y,Kb as h,Lb as X,Mb as E,N as H,Nb as u,Qa as s,Y as T,ab as Q,ac as J,cc as W,da as x,ea as D,fb as d,lc as Y,nb as P,pb as f,sb as F,ua as C,wb as a,xb as r,yb as p}from"./chunk-W2F756OF.js";import"./chunk-7CGTOI24.js";var we=()=>["/"];function $e(t,o){t&1&&(a(0,"spk-toggle",24),_(1,5),p(2,"input",27),c(),r())}function xe(t,o){t&1&&(a(0,"span",30),m(1,9),r())}function De(t,o){if(t&1&&(a(0,"span",30),m(1,10),r()),t&2){let e=u(2);s(),y(e.exportForm.controls.password.errors==null?null:e.exportForm.controls.password.errors.minlength.requiredLength),h(1)}}function Ae(t,o){if(t&1&&p(0,"spk-progress-bar",37),t&2){let e=u(2);f("error",e.calculatePasswordStrength()===1)("warn",e.calculatePasswordStrength()===2)("primary",e.calculatePasswordStrength()===4)("success",e.calculatePasswordStrength()===5),P("value",e.calculatePasswordStrength()*(100/5))}}function Ne(t,o){t&1&&(a(0,"span",30),m(1,11),r())}function Ie(t,o){t&1&&(a(0,"span",30),m(1,12),r())}function Me(t,o){if(t&1&&(a(0,"span",30),m(1,13),r()),t&2){let e=u(2);s(),y(e.exportForm.controls.repeatPassword.errors==null?null:e.exportForm.controls.repeatPassword.errors.minlength.requiredLength),h(1)}}function ye(t,o){t&1&&(_(0,7,1),p(1,"spk-icon"),c())}function he(t,o){t&1&&(_(0,7,2),p(1,"spk-icon"),c())}function Xe(t,o){t&1&&(_(0,14,1),p(1,"spk-icon",39),c())}function Be(t,o){t&1&&(_(0,14,2),p(1,"spk-icon"),c())}function Le(t,o){if(t&1){let e=M();a(0,"button",38),E("click",function(){x(e);let i=u(2);return D(i.copyPassword())}),_(1,14),d(2,Xe,2,0)(3,Be,2,0),c(),r()}if(t&2){let e=u(2);s(2),F(e.copiedPassword()?2:3)}}function be(t,o){t&1&&(a(0,"spk-alert",36),m(1,15),r())}function ve(t,o){if(t&1){let e=M();a(0,"div",25)(1,"spk-form-field")(2,"label",28),_(3,6),p(4,"sup"),c(),r(),p(5,"input",29),d(6,xe,2,0,"span",30)(7,De,2,1,"span",30),r(),d(8,Ae,1,9,"spk-progress-bar",31),a(9,"spk-form-field"),p(10,"input",32),d(11,Ne,2,0,"span",30)(12,Ie,2,0,"span",30)(13,Me,2,1,"span",30),r(),a(14,"div",33)(15,"button",34),E("click",function(){x(e);let i=u();return D(i.showPassword.set(!i.showPassword()))}),_(16,7),d(17,ye,2,0)(18,he,2,0),c(),r(),a(19,"button",34),E("click",function(){x(e);let i=u();return D(i.generatePassword())}),_(20,8),p(21,"spk-icon"),c(),r(),d(22,Le,4,1,"button",35),r(),d(23,be,2,0,"spk-alert",36),r()}if(t&2){let e=u();s(5),P("type",e.showPassword()?"text":"password"),s(),F(e.exportForm.controls.password.errors!=null&&e.exportForm.controls.password.errors.required?6:e.exportForm.controls.password.errors!=null&&e.exportForm.controls.password.errors.minlength?7:-1),s(2),F(e.exportForm.value.password?8:-1),s(2),P("type",e.showPassword()?"text":"password"),s(),F(e.exportForm.value.repeatPassword&&e.exportForm.value.repeatPassword!==e.exportForm.value.password?11:e.exportForm.controls.repeatPassword.errors!=null&&e.exportForm.controls.repeatPassword.errors.required?12:e.exportForm.controls.repeatPassword.errors!=null&&e.exportForm.controls.repeatPassword.errors.minlength?13:-1),s(6),F(e.showPassword()?17:18),s(5),F(e.showCopyPassword()?22:-1),s(),F(e.exportForm.value.password&&e.exportForm.value.password===e.exportForm.value.repeatPassword?23:-1)}}function Ge(t,o){if(t&1&&(a(0,"div",26)(1,"code"),A(2),r()()),t&2){let e=u();s(2),J(e.exportedCmd())}}var O=new ge,L=class t{#o=T(ke);#t=T(ie);#e=T(oe);#n=T(te);#i=T(ee);#r=T(ue);isExporting=C(!1);exportType=C("file");exportedCmd=C(null);exportForm=O.group({exportPasswords:O.control(!0),encryption:O.control(!1,[S.required,Re()]),password:O.control("",[B("encryption",!0,[S.required,S.minLength(3)])]),repeatPassword:O.control("",[B("encryption",!0,[S.required,S.minLength(3)])])});exportFormSignal=Oe(this.exportForm.valueChanges);encryptionFieldSignal=N(()=>this.exportFormSignal()?.encryption??!1);activeBackup=N(()=>this.#r.backups().find(o=>o.Backup?.ID===this.#e.snapshot.params.id));showPassword=C(!1);copiedPassword=C(!1);showCopyPassword=C(!1);calculatePasswordStrength=N(()=>{let e=this.exportFormSignal()?.password??"";return this.#o.calculatePasswordStrength(e)});showPasswordEffect=Z(()=>{this.showPassword()&&this.exportForm.updateValueAndValidity()});submit(){this.isExporting.set(!0),this.exportType()==="file"?this.#t.postApiV1AuthIssuetokenByOperation({operation:"export"}).pipe(H(o=>{let e=i=>{let g=Object.entries(i);return g?"?"+g.map(([k,R])=>`${k}=${R}`).join("&"):""},n=this.exportFormSignal()?.password?.length?this.exportFormSignal()?.password:void 0;return this.#i.get(`/api/v1/backup/${this.#e.snapshot.params.id}/export${e({"export-passwords":this.exportFormSignal()?.exportPasswords??void 0,passphrase:n,token:o.Token})}`,{responseType:"blob"})}),I(()=>this.isExporting.set(!1))).subscribe({next:o=>{let n=this.activeBackup()?.Backup?.Name??"Backup",i=this.exportFormSignal()?.encryption?"aes":"json";this.downloadFile(o,`${n}-duplicati-config.${i}`),this.#n.navigate(["/"])},error:o=>{}}):this.#t.getApiV1BackupByIdExportCmdline({id:this.#e.snapshot.params.id,exportPasswords:this.exportFormSignal()?.exportPasswords??void 0,passphrase:this.exportFormSignal()?.password??void 0}).pipe(I(()=>this.isExporting.set(!1))).subscribe({next:o=>{this.exportedCmd.set(o.Command??null)},error:o=>{}})}downloadFile(o,e){let n=window.URL.createObjectURL(o),i=document.createElement("a");i.href=n,i.download=e,i.click(),window.URL.revokeObjectURL(n)}async copyPassword(){let o=this.exportForm.controls.password.value;await this.#s(o??""),this.copiedPassword.set(!0)}async#s(o){try{await navigator.clipboard.writeText(o)}catch{try{let n=document.createElement("textarea");n.value=o,document.body.appendChild(n),n.select(),document.execCommand("copy"),document.body.removeChild(n)}catch(n){console.error("Failed to copy text: ",n)}}}generatePassword(){this.copiedPassword.set(!1);let o=this.#o.generate(16);this.exportForm.controls.password.setValue(o),this.exportForm.controls.repeatPassword.setValue(o),this.showCopyPassword.set(!0)}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=Q({type:t,selectors:[["app-export"]],decls:27,vars:16,consts:()=>{let o;o=$localize`${"\uFFFD#6\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#6\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let e;e=$localize`${"\uFFFD#10\uFFFD"}:START_TAG_SPK_ICON:export${"\uFFFD/#10\uFFFD"}:CLOSE_TAG_SPK_ICON: Export `;let n;n=$localize`${"\uFFFD#17\uFFFD"}:START_TAG_SPK_ICON:terminal-window${"\uFFFD/#17\uFFFD"}:CLOSE_TAG_SPK_ICON: As command line `;let i;i=$localize`${"\uFFFD#20\uFFFD"}:START_TAG_SPK_ICON:file${"\uFFFD/#20\uFFFD"}:CLOSE_TAG_SPK_ICON: To file `;let g;g=$localize` Export passwords ${"\uFFFD#23\uFFFD\uFFFD/#23\uFFFD"}:TAG_INPUT:`;let k;k=$localize` Encrypt file ${"\uFFFD#2\uFFFD\uFFFD/#2\uFFFD"}:TAG_INPUT:`;let R;R=$localize`Password`;let b;b=$localize`Repeat password`;let v;v=$localize` Create a password ${"\uFFFD#4\uFFFD"}:START_SUPERSCRIPT:*${"\uFFFD/#4\uFFFD"}:CLOSE_SUPERSCRIPT:`;let w;w=$localize`${"\uFFFD*17:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SPK_ICON:eye-slash${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPK_ICON: hide ${"\uFFFD/*17:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*18:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SPK_ICON:eye${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPK_ICON: show ${"\uFFFD/*18:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,w=X(w);let G;G=$localize`${"\uFFFD#21\uFFFD"}:START_TAG_SPK_ICON:password${"\uFFFD/#21\uFFFD"}:CLOSE_TAG_SPK_ICON: Generate password `;let K;K=$localize`Passwords are required`;let U;U=$localize` Passwords must be at least ${"\uFFFD0\uFFFD"}:INTERPOLATION: characters long `;let z;z=$localize`Passwords do not match`;let V;V=$localize`Passwords are required`;let q;q=$localize` Passwords must be at least ${"\uFFFD0\uFFFD"}:INTERPOLATION: characters long `;let $;$=$localize`${"\uFFFD*2:1\uFFFD"}:START_BLOCK_IF:${"\uFFFD#1:1\uFFFD"}:START_TAG_SPK_ICON:check${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPK_ICON: Copied password ${"\uFFFD/*2:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*3:2\uFFFD"}:START_BLOCK_ELSE:${"\uFFFD#1:2\uFFFD"}:START_TAG_SPK_ICON_1:copy${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPK_ICON: Copy password ${"\uFFFD/*3:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,$=X($);let j;return j=$localize` Tip: Be sure to save your password. If you loose it you will lose access to your backups. `,[o,e,n,i,g,k,v,w,G,K,U,z,V,q,$,j,[1,"actions"],["spk-button","",1,"outlined",3,"routerLink"],["message","Remember to copy the password",1,"primary",3,"disabled"],["spk-button","",1,"raised","primary",3,"click","disabled"],["autocomplete","off",3,"formGroup"],["type","button",3,"click"],[1,"raised","primary"],["type","checkbox","formControlName","exportPasswords"],[1,"primary","raised"],[1,"passwords"],[1,"cmd-output"],["type","checkbox","formControlName","encryption"],["for","password"],["id","password","tabindex","4","autocomplete","off","placeholder",R,"formControlName","password",3,"type"],["error",""],[1,"raised",3,"error","warn","primary","success","value"],["id","repeatPassword","tabindex","5","autocomplete","off","placeholder",b,"formControlName","repeatPassword",3,"type"],[1,"password-actions"],["spk-button","","type","button",1,"small",3,"click"],["spk-button","","type","button",1,"small","copy"],[1,"primary"],[1,"raised",3,"value"],["spk-button","","type","button",1,"small","copy",3,"click"],[1,"spk-success"]]},template:function(e,n){if(e&1&&(a(0,"header")(1,"h3"),A(2," Export backup configuration "),a(3,"div",16)(4,"button",17),_(5,0),p(6,"spk-icon"),c(),r(),a(7,"spk-tooltip",18)(8,"button",19),E("click",function(){return n.submit()}),_(9,1),p(10,"spk-icon"),c(),r()()()(),a(11,"p"),A(12),r()(),a(13,"form",20)(14,"spk-button-group")(15,"button",21),E("click",function(){return n.exportType.set("cmd")}),_(16,2),p(17,"spk-icon"),c(),r(),a(18,"button",21),E("click",function(){return n.exportType.set("file")}),_(19,3),p(20,"spk-icon"),c(),r()(),a(21,"spk-toggle",22),_(22,4),p(23,"input",23),c(),r(),d(24,$e,3,0,"spk-toggle",24)(25,ve,24,8,"div",25)(26,Ge,3,1,"div",26),r()),e&2){let i;s(4),P("routerLink",Y(15,we)),s(3),f("loading",n.isExporting()),P("disabled",!(n.showCopyPassword()&&!n.copiedPassword())),s(),P("disabled",n.exportForm.invalid||n.showCopyPassword()&&!n.copiedPassword()),s(4),W("#",(i=n.activeBackup())==null||i.Backup==null?null:i.Backup.ID,": ",(i=n.activeBackup())==null||i.Backup==null?null:i.Backup.Name,""),s(),P("formGroup",n.exportForm),s(2),f("active",n.exportType()==="cmd"),s(3),f("active",n.exportType()==="file"),s(6),F(n.exportType()==="file"?24:-1),s(),F(n.encryptionFieldSignal()?25:-1),s(),F(n.exportedCmd()?26:-1)}},dependencies:[fe,me,Pe,de,Te,Ce,Ee,Se,ne,ae,ce,re,pe,le,se,_e,Fe],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:3rem}h3[_ngcontent-%COMP%]{font:var(--title-30);display:flex;align-items:center;justify-content:space-between}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;max-width:31.25rem}.passwords[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.password-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem;align-items:center}.copy[_ngcontent-%COMP%] spk-icon.spk-success[_ngcontent-%COMP%]{color:var(--success-500)}.hide[_ngcontent-%COMP%]{display:none}"],changeDetection:0})};export{L as default};
1
+ import{a as ke,c as Re,d as B}from"./chunk-EQWH3TBL.js";import{a as Oe}from"./chunk-TQHNKGRL.js";import{a as ue}from"./chunk-FJVMA6GA.js";import"./chunk-RHW5QVAY.js";import{b as de,c as Pe,d as S,e as Te,f as Ce,i as me,n as Ee,q as Se,r as ge,t as fe}from"./chunk-ELMONRIG.js";import"./chunk-XP7PWMT2.js";import{b as oe,d as te,e as ne}from"./chunk-C6XTRC7P.js";import"./chunk-MAVZY7BL.js";import{A as ce,B as Fe,a as re,b as se,f as ae,g as le,l as pe,p as _e}from"./chunk-P4ZFQZCA.js";import{c as ee,h as ie}from"./chunk-S5EF63OY.js";import"./chunk-7L2WUS2V.js";import{Db as a,Eb as r,F as I,Fb as p,Jb as M,N as H,Oc as N,Pb as _,Pc as Z,Qb as c,Rb as m,Sb as y,Tb as h,Ua as s,Ub as X,Vb as E,Wb as u,Z as T,ea as x,fa as D,gb as Q,ic as A,jc as J,lb as d,lc as W,ub as P,uc as Y,va as C,wb as f,zb as F}from"./chunk-L72ALLHJ.js";import"./chunk-7CGTOI24.js";var we=()=>["/"];function $e(t,o){t&1&&(a(0,"spk-toggle",24),_(1,5),p(2,"input",27),c(),r())}function xe(t,o){t&1&&(a(0,"span",30),m(1,9),r())}function De(t,o){if(t&1&&(a(0,"span",30),m(1,10),r()),t&2){let e=u(2);s(),y(e.exportForm.controls.password.errors==null?null:e.exportForm.controls.password.errors.minlength.requiredLength),h(1)}}function Ae(t,o){if(t&1&&p(0,"spk-progress-bar",37),t&2){let e=u(2);f("error",e.calculatePasswordStrength()===1)("warn",e.calculatePasswordStrength()===2)("primary",e.calculatePasswordStrength()===4)("success",e.calculatePasswordStrength()===5),P("value",e.calculatePasswordStrength()*(100/5))}}function Ne(t,o){t&1&&(a(0,"span",30),m(1,11),r())}function Ie(t,o){t&1&&(a(0,"span",30),m(1,12),r())}function Me(t,o){if(t&1&&(a(0,"span",30),m(1,13),r()),t&2){let e=u(2);s(),y(e.exportForm.controls.repeatPassword.errors==null?null:e.exportForm.controls.repeatPassword.errors.minlength.requiredLength),h(1)}}function ye(t,o){t&1&&(_(0,7,1),p(1,"spk-icon"),c())}function he(t,o){t&1&&(_(0,7,2),p(1,"spk-icon"),c())}function Xe(t,o){t&1&&(_(0,14,1),p(1,"spk-icon",39),c())}function Be(t,o){t&1&&(_(0,14,2),p(1,"spk-icon"),c())}function Le(t,o){if(t&1){let e=M();a(0,"button",38),E("click",function(){x(e);let i=u(2);return D(i.copyPassword())}),_(1,14),d(2,Xe,2,0)(3,Be,2,0),c(),r()}if(t&2){let e=u(2);s(2),F(e.copiedPassword()?2:3)}}function be(t,o){t&1&&(a(0,"spk-alert",36),m(1,15),r())}function ve(t,o){if(t&1){let e=M();a(0,"div",25)(1,"spk-form-field")(2,"label",28),_(3,6),p(4,"sup"),c(),r(),p(5,"input",29),d(6,xe,2,0,"span",30)(7,De,2,1,"span",30),r(),d(8,Ae,1,9,"spk-progress-bar",31),a(9,"spk-form-field"),p(10,"input",32),d(11,Ne,2,0,"span",30)(12,Ie,2,0,"span",30)(13,Me,2,1,"span",30),r(),a(14,"div",33)(15,"button",34),E("click",function(){x(e);let i=u();return D(i.showPassword.set(!i.showPassword()))}),_(16,7),d(17,ye,2,0)(18,he,2,0),c(),r(),a(19,"button",34),E("click",function(){x(e);let i=u();return D(i.generatePassword())}),_(20,8),p(21,"spk-icon"),c(),r(),d(22,Le,4,1,"button",35),r(),d(23,be,2,0,"spk-alert",36),r()}if(t&2){let e=u();s(5),P("type",e.showPassword()?"text":"password"),s(),F(e.exportForm.controls.password.errors!=null&&e.exportForm.controls.password.errors.required?6:e.exportForm.controls.password.errors!=null&&e.exportForm.controls.password.errors.minlength?7:-1),s(2),F(e.exportForm.value.password?8:-1),s(2),P("type",e.showPassword()?"text":"password"),s(),F(e.exportForm.value.repeatPassword&&e.exportForm.value.repeatPassword!==e.exportForm.value.password?11:e.exportForm.controls.repeatPassword.errors!=null&&e.exportForm.controls.repeatPassword.errors.required?12:e.exportForm.controls.repeatPassword.errors!=null&&e.exportForm.controls.repeatPassword.errors.minlength?13:-1),s(6),F(e.showPassword()?17:18),s(5),F(e.showCopyPassword()?22:-1),s(),F(e.exportForm.value.password&&e.exportForm.value.password===e.exportForm.value.repeatPassword?23:-1)}}function Ge(t,o){if(t&1&&(a(0,"div",26)(1,"code"),A(2),r()()),t&2){let e=u();s(2),J(e.exportedCmd())}}var O=new ge,L=class t{#o=T(ke);#t=T(ie);#e=T(oe);#n=T(te);#i=T(ee);#r=T(ue);isExporting=C(!1);exportType=C("file");exportedCmd=C(null);exportForm=O.group({exportPasswords:O.control(!0),encryption:O.control(!1,[S.required,Re()]),password:O.control("",[B("encryption",!0,[S.required,S.minLength(3)])]),repeatPassword:O.control("",[B("encryption",!0,[S.required,S.minLength(3)])])});exportFormSignal=Oe(this.exportForm.valueChanges);encryptionFieldSignal=N(()=>this.exportFormSignal()?.encryption??!1);activeBackup=N(()=>this.#r.backups().find(o=>o.Backup?.ID===this.#e.snapshot.params.id));showPassword=C(!1);copiedPassword=C(!1);showCopyPassword=C(!1);calculatePasswordStrength=N(()=>{let e=this.exportFormSignal()?.password??"";return this.#o.calculatePasswordStrength(e)});showPasswordEffect=Z(()=>{this.showPassword()&&this.exportForm.updateValueAndValidity()});submit(){this.isExporting.set(!0),this.exportType()==="file"?this.#t.postApiV1AuthIssuetokenByOperation({operation:"export"}).pipe(H(o=>{let e=i=>{let g=Object.entries(i);return g?"?"+g.map(([k,R])=>`${k}=${R}`).join("&"):""},n=this.exportFormSignal()?.password?.length?this.exportFormSignal()?.password:void 0;return this.#i.get(`/api/v1/backup/${this.#e.snapshot.params.id}/export${e({"export-passwords":this.exportFormSignal()?.exportPasswords??void 0,passphrase:n,token:o.Token})}`,{responseType:"blob"})}),I(()=>this.isExporting.set(!1))).subscribe({next:o=>{let n=this.activeBackup()?.Backup?.Name??"Backup",i=this.exportFormSignal()?.encryption?"aes":"json";this.downloadFile(o,`${n}-duplicati-config.${i}`),this.#n.navigate(["/"])},error:o=>{}}):this.#t.getApiV1BackupByIdExportCmdline({id:this.#e.snapshot.params.id,exportPasswords:this.exportFormSignal()?.exportPasswords??void 0,passphrase:this.exportFormSignal()?.password??void 0}).pipe(I(()=>this.isExporting.set(!1))).subscribe({next:o=>{this.exportedCmd.set(o.Command??null)},error:o=>{}})}downloadFile(o,e){let n=window.URL.createObjectURL(o),i=document.createElement("a");i.href=n,i.download=e,i.click(),window.URL.revokeObjectURL(n)}async copyPassword(){let o=this.exportForm.controls.password.value;await this.#s(o??""),this.copiedPassword.set(!0)}async#s(o){try{await navigator.clipboard.writeText(o)}catch{try{let n=document.createElement("textarea");n.value=o,document.body.appendChild(n),n.select(),document.execCommand("copy"),document.body.removeChild(n)}catch(n){console.error("Failed to copy text: ",n)}}}generatePassword(){this.copiedPassword.set(!1);let o=this.#o.generate(16);this.exportForm.controls.password.setValue(o),this.exportForm.controls.repeatPassword.setValue(o),this.showCopyPassword.set(!0)}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=Q({type:t,selectors:[["app-export"]],decls:27,vars:16,consts:()=>{let o;o=$localize`${"\uFFFD#6\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#6\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let e;e=$localize`${"\uFFFD#10\uFFFD"}:START_TAG_SPK_ICON:export${"\uFFFD/#10\uFFFD"}:CLOSE_TAG_SPK_ICON: Export `;let n;n=$localize`${"\uFFFD#17\uFFFD"}:START_TAG_SPK_ICON:terminal-window${"\uFFFD/#17\uFFFD"}:CLOSE_TAG_SPK_ICON: As command line `;let i;i=$localize`${"\uFFFD#20\uFFFD"}:START_TAG_SPK_ICON:file${"\uFFFD/#20\uFFFD"}:CLOSE_TAG_SPK_ICON: To file `;let g;g=$localize` Export passwords ${"\uFFFD#23\uFFFD\uFFFD/#23\uFFFD"}:TAG_INPUT:`;let k;k=$localize` Encrypt file ${"\uFFFD#2\uFFFD\uFFFD/#2\uFFFD"}:TAG_INPUT:`;let R;R=$localize`Password`;let b;b=$localize`Repeat password`;let v;v=$localize` Create a password ${"\uFFFD#4\uFFFD"}:START_SUPERSCRIPT:*${"\uFFFD/#4\uFFFD"}:CLOSE_SUPERSCRIPT:`;let w;w=$localize`${"\uFFFD*17:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SPK_ICON:eye-slash${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPK_ICON: hide ${"\uFFFD/*17:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*18:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SPK_ICON:eye${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPK_ICON: show ${"\uFFFD/*18:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,w=X(w);let G;G=$localize`${"\uFFFD#21\uFFFD"}:START_TAG_SPK_ICON:password${"\uFFFD/#21\uFFFD"}:CLOSE_TAG_SPK_ICON: Generate password `;let K;K=$localize`Passwords are required`;let U;U=$localize` Passwords must be at least ${"\uFFFD0\uFFFD"}:INTERPOLATION: characters long `;let z;z=$localize`Passwords do not match`;let V;V=$localize`Passwords are required`;let q;q=$localize` Passwords must be at least ${"\uFFFD0\uFFFD"}:INTERPOLATION: characters long `;let $;$=$localize`${"\uFFFD*2:1\uFFFD"}:START_BLOCK_IF:${"\uFFFD#1:1\uFFFD"}:START_TAG_SPK_ICON:check${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPK_ICON: Copied password ${"\uFFFD/*2:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*3:2\uFFFD"}:START_BLOCK_ELSE:${"\uFFFD#1:2\uFFFD"}:START_TAG_SPK_ICON_1:copy${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPK_ICON: Copy password ${"\uFFFD/*3:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,$=X($);let j;return j=$localize` Tip: Be sure to save your password. If you loose it you will lose access to your backups. `,[o,e,n,i,g,k,v,w,G,K,U,z,V,q,$,j,[1,"actions"],["spk-button","",1,"outlined",3,"routerLink"],["message","Remember to copy the password",1,"primary",3,"disabled"],["spk-button","",1,"raised","primary",3,"click","disabled"],["autocomplete","off",3,"formGroup"],["type","button",3,"click"],[1,"raised","primary"],["type","checkbox","formControlName","exportPasswords"],[1,"primary","raised"],[1,"passwords"],[1,"cmd-output"],["type","checkbox","formControlName","encryption"],["for","password"],["id","password","tabindex","4","autocomplete","off","placeholder",R,"formControlName","password",3,"type"],["error",""],[1,"raised",3,"error","warn","primary","success","value"],["id","repeatPassword","tabindex","5","autocomplete","off","placeholder",b,"formControlName","repeatPassword",3,"type"],[1,"password-actions"],["spk-button","","type","button",1,"small",3,"click"],["spk-button","","type","button",1,"small","copy"],[1,"primary"],[1,"raised",3,"value"],["spk-button","","type","button",1,"small","copy",3,"click"],[1,"spk-success"]]},template:function(e,n){if(e&1&&(a(0,"header")(1,"h3"),A(2," Export backup configuration "),a(3,"div",16)(4,"button",17),_(5,0),p(6,"spk-icon"),c(),r(),a(7,"spk-tooltip",18)(8,"button",19),E("click",function(){return n.submit()}),_(9,1),p(10,"spk-icon"),c(),r()()()(),a(11,"p"),A(12),r()(),a(13,"form",20)(14,"spk-button-group")(15,"button",21),E("click",function(){return n.exportType.set("cmd")}),_(16,2),p(17,"spk-icon"),c(),r(),a(18,"button",21),E("click",function(){return n.exportType.set("file")}),_(19,3),p(20,"spk-icon"),c(),r()(),a(21,"spk-toggle",22),_(22,4),p(23,"input",23),c(),r(),d(24,$e,3,0,"spk-toggle",24)(25,ve,24,8,"div",25)(26,Ge,3,1,"div",26),r()),e&2){let i;s(4),P("routerLink",Y(15,we)),s(3),f("loading",n.isExporting()),P("disabled",!(n.showCopyPassword()&&!n.copiedPassword())),s(),P("disabled",n.exportForm.invalid||n.showCopyPassword()&&!n.copiedPassword()),s(4),W("#",(i=n.activeBackup())==null||i.Backup==null?null:i.Backup.ID,": ",(i=n.activeBackup())==null||i.Backup==null?null:i.Backup.Name,""),s(),P("formGroup",n.exportForm),s(2),f("active",n.exportType()==="cmd"),s(3),f("active",n.exportType()==="file"),s(6),F(n.exportType()==="file"?24:-1),s(),F(n.encryptionFieldSignal()?25:-1),s(),F(n.exportedCmd()?26:-1)}},dependencies:[fe,me,Pe,de,Te,Ce,Ee,Se,ne,ae,ce,re,pe,le,se,_e,Fe],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:3rem}h3[_ngcontent-%COMP%]{font:var(--title-30);display:flex;align-items:center;justify-content:space-between}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;max-width:31.25rem}.passwords[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.password-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem;align-items:center}.copy[_ngcontent-%COMP%] spk-icon.spk-success[_ngcontent-%COMP%]{color:var(--success-500)}.hide[_ngcontent-%COMP%]{display:none}"],changeDetection:0})};export{L as default};
@@ -1 +1 @@
1
- import{a as O,c as P,e as E,h as v,j as N,s as I}from"./chunk-T2OUHRUV.js";import{l as y,o as X,t as Y}from"./chunk-WX7L7V6J.js";import{$b as G,Ab as x,Ac as c,Bc as h,Cb as W,Ib as F,Jb as A,Kb as D,Mb as j,Nb as M,Ob as T,Pb as d,Qa as s,ab as f,cc as U,da as $,ea as k,ec as g,fb as w,fc as _,gc as C,kc as S,mb as b,nb as p,ob as z,ra as m,tb as R,ua as l,ub as V,vb as B,wb as u,xb as a,zb as L}from"./chunk-W2F756OF.js";var Q=[[["label"]],[["","prefix",""]],[["","suffix",""]]],ee=["label","[prefix]","[suffix]"];function te(i,e){if(i&1&&G(0),i&2){let t=e.$implicit,n=M();U("",t.label,"",n.hasPerSecond()?"/s":"","")}}var ne=[{value:"bytes",label:"Bytes"},{value:"KB",label:"KB"},{value:"MB",label:"MB"},{value:"GB",label:"GB"},{value:"TB",label:"TB"},{value:"PB",label:"PB"}],ie=["throttle-upload","throttle-download"],H=class i{customId=m();inputType=m();timespan=l(0);unit=l("MB");sizeOptions=l(ne);readonly=l(!1);hasPerSecond=c(()=>{let e=this.inputType();return e&&ie.includes(e)});onChange=()=>{};onTouched=()=>{};onChangeEffect=h(()=>{this.onChange(this.getValue())});writeValue(e){if(e){let t=e.match(/^(\d+)(bytes|kb|mb|gb|tb|pb|b)$/i);t?(this.timespan.set(parseInt(t[1],10)),this.unit.set(t[2].toUpperCase())):(this.timespan.set(0),this.unit.set("MB"))}else this.timespan.set(0),this.unit.set("MB")}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.readonly.set(e)}getValue(){return`${this.timespan()}${this.unit()}`}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=f({type:i,selectors:[["app-size"]],inputs:{customId:[1,"customId"],inputType:[1,"inputType"]},features:[S([{provide:O,useExisting:i,multi:!0}])],ngContentSelectors:ee,decls:9,vars:10,consts:[[1,"label"],["type","number",3,"ngModelChange","id","ngModel","disabled"],["value","value","label","label",3,"options","readonly","isClearable"],["type","text",3,"ngModelChange","ngModel"]],template:function(t,n){t&1&&(T(Q),u(0,"div",0),d(1,0,["ngProjectAs","label",5,["label"]]),a(),u(2,"spk-form-field")(3,"input",1),C("ngModelChange",function(o){return _(n.timespan,o)||(n.timespan=o),o}),a(),d(4,1),d(5,2),a(),u(6,"spk-select",2)(7,"input",3),C("ngModelChange",function(o){return _(n.unit,o)||(n.unit=o),o}),a(),w(8,te,1,2,"ng-template"),a()),t&2&&(s(2),b("readonly",n.readonly()||void 0),s(),p("id",n.customId()),g("ngModel",n.timespan),p("disabled",n.readonly()),s(3),z("--miw",0),p("options",n.sizeOptions())("readonly",n.readonly())("isClearable",!1),s(),g("ngModel",n.unit))},dependencies:[Y,y,I,P,N,E,v],styles:['[_nghost-%COMP%]{display:grid;grid-template-areas:"label label" "input unit";grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}[_nghost-%COMP%] .label[_ngcontent-%COMP%]{grid-area:label;grid-column:1/-1}[_nghost-%COMP%] spk-form-field[_ngcontent-%COMP%]{grid-area:input}[_nghost-%COMP%] spk-select[_ngcontent-%COMP%]{grid-area:unit}'],changeDetection:0})};var oe=[[["label"]],[["","prefix",""]],[["","suffix",""]]],se=["label","[prefix]","[suffix]"];function ae(i,e){if(i&1){let t=W();u(0,"button",7),j("click",function(){let r=$(t).$implicit,o=M();return k(o.updateUnit(r.value))}),F(1,1),a()}if(i&2){let t=e.$implicit;s(),A(t.label),D(1)}}var le=[{value:"s",label:$localize`Seconds`},{value:"m",label:$localize`Minutes`},{value:"h",label:$localize`Hours`}],re=[{value:"Y",label:$localize`Years`},{value:"M",label:$localize`Months`},{value:"W",label:$localize`Weeks`},{value:"D",label:$localize`Days`}],pe=["retry-delay","web-timeout","read-write-timeout","run-script-timeout","list-timeout","short-timeout"],K=class i{customId=m();inputType=m();timespan=l(0);#e="D";unit=l(this.#e);unitLabel=c(()=>{let e=this.timeOptions(),t=e.findIndex(n=>n.value===this.unit());return e[t]?.label??this.unit()});isShortTime=c(()=>{let e=this.inputType();return e&&pe.includes(e)});timeOptions=c(()=>this.isShortTime()?le:re);readonly=l(!1);onChange=()=>{};onTouched=()=>{};onChangeEffect=h(()=>{this.onChange(this.getValue())});inputTypeEffect=h(()=>{let e=this.timeOptions(),t=this.isShortTime()?"s":"D";this.#e=t,this.unit.set(t)});updateUnit(e){this.unit.set(e)}writeValue(e){let t=this.isShortTime();if(e){let n=t?/(\d+)([smh])/i:/^(\d+)([YMWD])$/i,r=e.match(n);r?(this.timespan.set(parseInt(r[1],10)),this.unit.set(r[2])):(this.timespan.set(0),this.unit.set(this.#e))}else this.timespan.set(0),this.unit.set(this.#e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.readonly.set(e)}getValue(){return`${this.timespan()}${this.unit()}`}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=f({type:i,selectors:[["app-timespan"]],inputs:{customId:[1,"customId"],inputType:[1,"inputType"]},features:[S([{provide:O,useExisting:i,multi:!0}])],ngContentSelectors:se,decls:11,vars:7,consts:()=>{let e;e=$localize`${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let t;return t=$localize`${"\uFFFD0\uFFFD"}:INTERPOLATION:`,[e,t,["type","number",3,"ngModelChange","id","ngModel","disabled"],[3,"openIndicator","searchable"],["spk-button","","type","button",1,"trigger"],["menu",""],["spk-button","","type","button",1,"small"],["spk-button","","type","button",1,"small",3,"click"]]},template:function(t,n){t&1&&(T(oe),d(0,0,["ngProjectAs","label",5,["label"]]),u(1,"spk-form-field")(2,"input",2),C("ngModelChange",function(o){return _(n.timespan,o)||(n.timespan=o),o}),a(),d(3,1),d(4,2),a(),u(5,"spk-menu",3)(6,"button",4),F(7,0),a(),L(8,5),V(9,ae,2,1,"button",6,R),x(),a()),t&2&&(s(),b("readonly",n.readonly()||void 0),s(),p("id",n.customId()),g("ngModel",n.timespan),p("disabled",n.readonly()),s(3),p("openIndicator",!0)("searchable",!0),s(2),A(n.unitLabel()),D(7),s(2),B(n.timeOptions()))},dependencies:[X,y,I,P,N,E,v],styles:['[_nghost-%COMP%]{display:grid;grid-template-areas:"label label" "input unit";grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}[_nghost-%COMP%] .label[_ngcontent-%COMP%]{grid-area:label;grid-column:1/-1}[_nghost-%COMP%] spk-form-field[_ngcontent-%COMP%]{grid-area:input}[_nghost-%COMP%] spk-menu[_ngcontent-%COMP%]{grid-area:unit}[_nghost-%COMP%] spk-menu[_ngcontent-%COMP%] button.trigger[_ngcontent-%COMP%]{width:100%}'],changeDetection:0})};export{H as a,K as b};
1
+ import{a as O,c as P,e as E,h as v,j as N,s as I}from"./chunk-ELMONRIG.js";import{l as y,o as X,t as Y}from"./chunk-P4ZFQZCA.js";import{Ab as R,Bb as V,Cb as B,Db as u,Eb as a,Gb as L,Hb as x,Jb as W,Oc as c,Pc as h,Rb as F,Sb as A,Tb as D,Ua as s,Vb as j,Wb as M,Xb as T,Yb as d,ea as $,fa as k,gb as f,ic as G,lb as w,lc as U,nc as g,oc as _,pc as C,sa as m,tb as b,tc as S,ub as p,va as l,vb as z}from"./chunk-L72ALLHJ.js";var Q=[[["label"]],[["","prefix",""]],[["","suffix",""]]],ee=["label","[prefix]","[suffix]"];function te(i,e){if(i&1&&G(0),i&2){let t=e.$implicit,n=M();U("",t.label,"",n.hasPerSecond()?"/s":"","")}}var ne=[{value:"bytes",label:"Bytes"},{value:"KB",label:"KB"},{value:"MB",label:"MB"},{value:"GB",label:"GB"},{value:"TB",label:"TB"},{value:"PB",label:"PB"}],ie=["throttle-upload","throttle-download"],H=class i{customId=m();inputType=m();timespan=l(0);unit=l("MB");sizeOptions=l(ne);readonly=l(!1);hasPerSecond=c(()=>{let e=this.inputType();return e&&ie.includes(e)});onChange=()=>{};onTouched=()=>{};onChangeEffect=h(()=>{this.onChange(this.getValue())});writeValue(e){if(e){let t=e.match(/^(\d+)(bytes|kb|mb|gb|tb|pb|b)$/i);t?(this.timespan.set(parseInt(t[1],10)),this.unit.set(t[2].toUpperCase())):(this.timespan.set(0),this.unit.set("MB"))}else this.timespan.set(0),this.unit.set("MB")}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.readonly.set(e)}getValue(){return`${this.timespan()}${this.unit()}`}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=f({type:i,selectors:[["app-size"]],inputs:{customId:[1,"customId"],inputType:[1,"inputType"]},features:[S([{provide:O,useExisting:i,multi:!0}])],ngContentSelectors:ee,decls:9,vars:10,consts:[[1,"label"],["type","number",3,"ngModelChange","id","ngModel","disabled"],["value","value","label","label",3,"options","readonly","isClearable"],["type","text",3,"ngModelChange","ngModel"]],template:function(t,n){t&1&&(T(Q),u(0,"div",0),d(1,0,["ngProjectAs","label",5,["label"]]),a(),u(2,"spk-form-field")(3,"input",1),C("ngModelChange",function(o){return _(n.timespan,o)||(n.timespan=o),o}),a(),d(4,1),d(5,2),a(),u(6,"spk-select",2)(7,"input",3),C("ngModelChange",function(o){return _(n.unit,o)||(n.unit=o),o}),a(),w(8,te,1,2,"ng-template"),a()),t&2&&(s(2),b("readonly",n.readonly()||void 0),s(),p("id",n.customId()),g("ngModel",n.timespan),p("disabled",n.readonly()),s(3),z("--miw",0),p("options",n.sizeOptions())("readonly",n.readonly())("isClearable",!1),s(),g("ngModel",n.unit))},dependencies:[Y,y,I,P,N,E,v],styles:['[_nghost-%COMP%]{display:grid;grid-template-areas:"label label" "input unit";grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}[_nghost-%COMP%] .label[_ngcontent-%COMP%]{grid-area:label;grid-column:1/-1}[_nghost-%COMP%] spk-form-field[_ngcontent-%COMP%]{grid-area:input}[_nghost-%COMP%] spk-select[_ngcontent-%COMP%]{grid-area:unit}'],changeDetection:0})};var oe=[[["label"]],[["","prefix",""]],[["","suffix",""]]],se=["label","[prefix]","[suffix]"];function ae(i,e){if(i&1){let t=W();u(0,"button",7),j("click",function(){let r=$(t).$implicit,o=M();return k(o.updateUnit(r.value))}),F(1,1),a()}if(i&2){let t=e.$implicit;s(),A(t.label),D(1)}}var le=[{value:"s",label:$localize`Seconds`},{value:"m",label:$localize`Minutes`},{value:"h",label:$localize`Hours`}],re=[{value:"Y",label:$localize`Years`},{value:"M",label:$localize`Months`},{value:"W",label:$localize`Weeks`},{value:"D",label:$localize`Days`}],pe=["retry-delay","web-timeout","read-write-timeout","run-script-timeout","list-timeout","short-timeout"],K=class i{customId=m();inputType=m();timespan=l(0);#e="D";unit=l(this.#e);unitLabel=c(()=>{let e=this.timeOptions(),t=e.findIndex(n=>n.value===this.unit());return e[t]?.label??this.unit()});isShortTime=c(()=>{let e=this.inputType();return e&&pe.includes(e)});timeOptions=c(()=>this.isShortTime()?le:re);readonly=l(!1);onChange=()=>{};onTouched=()=>{};onChangeEffect=h(()=>{this.onChange(this.getValue())});inputTypeEffect=h(()=>{let e=this.timeOptions(),t=this.isShortTime()?"s":"D";this.#e=t,this.unit.set(t)});updateUnit(e){this.unit.set(e)}writeValue(e){let t=this.isShortTime();if(e){let n=t?/(\d+)([smh])/i:/^(\d+)([YMWD])$/i,r=e.match(n);r?(this.timespan.set(parseInt(r[1],10)),this.unit.set(r[2])):(this.timespan.set(0),this.unit.set(this.#e))}else this.timespan.set(0),this.unit.set(this.#e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.readonly.set(e)}getValue(){return`${this.timespan()}${this.unit()}`}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=f({type:i,selectors:[["app-timespan"]],inputs:{customId:[1,"customId"],inputType:[1,"inputType"]},features:[S([{provide:O,useExisting:i,multi:!0}])],ngContentSelectors:se,decls:11,vars:7,consts:()=>{let e;e=$localize`${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let t;return t=$localize`${"\uFFFD0\uFFFD"}:INTERPOLATION:`,[e,t,["type","number",3,"ngModelChange","id","ngModel","disabled"],[3,"openIndicator","searchable"],["spk-button","","type","button",1,"trigger"],["menu",""],["spk-button","","type","button",1,"small"],["spk-button","","type","button",1,"small",3,"click"]]},template:function(t,n){t&1&&(T(oe),d(0,0,["ngProjectAs","label",5,["label"]]),u(1,"spk-form-field")(2,"input",2),C("ngModelChange",function(o){return _(n.timespan,o)||(n.timespan=o),o}),a(),d(3,1),d(4,2),a(),u(5,"spk-menu",3)(6,"button",4),F(7,0),a(),L(8,5),V(9,ae,2,1,"button",6,R),x(),a()),t&2&&(s(),b("readonly",n.readonly()||void 0),s(),p("id",n.customId()),g("ngModel",n.timespan),p("disabled",n.readonly()),s(3),p("openIndicator",!0)("searchable",!0),s(2),A(n.unitLabel()),D(7),s(2),B(n.timeOptions()))},dependencies:[X,y,I,P,N,E,v],styles:['[_nghost-%COMP%]{display:grid;grid-template-areas:"label label" "input unit";grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}[_nghost-%COMP%] .label[_ngcontent-%COMP%]{grid-area:label;grid-column:1/-1}[_nghost-%COMP%] spk-form-field[_ngcontent-%COMP%]{grid-area:input}[_nghost-%COMP%] spk-menu[_ngcontent-%COMP%]{grid-area:unit}[_nghost-%COMP%] spk-menu[_ngcontent-%COMP%] button.trigger[_ngcontent-%COMP%]{width:100%}'],changeDetection:0})};export{H as a,K as b};
@@ -0,0 +1 @@
1
+ import{e as a,f as b}from"./chunk-WFR2V6TK.js";import"./chunk-NDO7MKXC.js";import"./chunk-U467ZTQ4.js";import"./chunk-TQHNKGRL.js";import"./chunk-F2GEUOGZ.js";import"./chunk-BIZAKOYU.js";import"./chunk-ELMONRIG.js";import"./chunk-C6XTRC7P.js";import"./chunk-MAVZY7BL.js";import"./chunk-P4ZFQZCA.js";import"./chunk-S5EF63OY.js";import"./chunk-7L2WUS2V.js";import"./chunk-L72ALLHJ.js";import"./chunk-7CGTOI24.js";export{a as createRestoreSelectFilesForm,b as default};
@@ -1 +1 @@
1
- import{a as Q}from"./chunk-ULHQZGHN.js";import{c as F,d as G,e as T,f as A,i as R,n as D,q,r as V,t as $}from"./chunk-T2OUHRUV.js";import{c as x}from"./chunk-F4EEOSGJ.js";import"./chunk-I3C2AEHI.js";import{d as N}from"./chunk-QVIZK4WW.js";import"./chunk-WMTA6PZM.js";import{a as I,b as k,g as O,l as P}from"./chunk-WX7L7V6J.js";import"./chunk-JSGFZ2GA.js";import"./chunk-CKPICCFH.js";import{$b as r,Bc as M,Cb as S,F as c,Mb as v,Qa as m,Xa as h,Y as l,Yb as b,Zb as E,ab as _,da as g,ea as f,fb as w,nb as C,pb as y,sb as L,ua as p,wb as o,xb as i,yb as a}from"./chunk-W2F756OF.js";import"./chunk-7CGTOI24.js";var z=["passwordInput"];function B(s,e){s&1&&(o(0,"spk-alert",2),r(1," Remember to enter a password, if you can't remember the password open the duplicati client on the machine in question and make sure you open it through the tray icon then go into settings to change the password. "),i())}var u=new V,d=class s{#e=l(N);#t=l(x);failedLogin=p(!1);isLoading=p(!1);loginForm=u.group({user:u.control(""),pass:u.control("",G.required)});passwordInput=h("passwordInput");passwordEffect=M(()=>{this.failedLogin()&&queueMicrotask(()=>this.passwordInput()?.nativeElement?.focus())});ngOnInit(){queueMicrotask(()=>this.passwordInput()?.nativeElement?.focus())}submit(){let e=this.loginForm.value.pass;this.loginForm.value.user||e&&(this.isLoading.set(!0),this.#t.login(e).pipe(c(()=>{this.isLoading.set(!1),this.failedLogin.set(!0)})).subscribe({next:()=>this.#e.navigate(["/"])}))}static \u0275fac=function(t){return new(t||s)};static \u0275cmp=_({type:s,selectors:[["app-login"]],viewQuery:function(t,n){t&1&&b(n.passwordInput,z,5),t&2&&E()},decls:18,vars:4,consts:()=>{let e;return e=$localize`Enter your password`,[["passwordInput",""],[3,"submit","formGroup"],["type","warning"],[1,"logo-login"],[1,"login-row"],["type","text","hidden","","autocomplete","off","name","username","formControlName","user"],["for","password"],["href","https://docs.duplicati.com/detailed-descriptions/duplicati-access-password","target","_blank","rel","noopener noreferrer"],["type","password","name","password","autocomplete","current-password","placeholder",e,"tabindex","1","formControlName","pass"],["spk-button","","type","submit",1,"raised","primary"]]},template:function(t,n){if(t&1){let j=S();o(0,"form",1),v("submit",function(){return g(j),f(n.submit())}),w(1,B,2,0,"spk-alert",2),o(2,"div",3),a(3,"app-logo"),i(),o(4,"div",4),a(5,"input",5),o(6,"spk-form-field")(7,"label",6),r(8," Password "),o(9,"a",7)(10,"spk-icon"),r(11,"question"),i()()(),a(12,"input",8,0),i(),o(14,"button",9),r(15," Login "),o(16,"spk-icon"),r(17,"arrow-right"),i()()()()}t&2&&(C("formGroup",n.loginForm),m(),L(n.failedLogin()?1:-1),m(13),y("loader",n.isLoading()))},dependencies:[$,R,F,T,A,D,q,Q,P,I,O,k],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{width:100vw;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.5rem}spk-alert[_ngcontent-%COMP%]{max-width:20rem;margin:0 auto}h3[_ngcontent-%COMP%]{font:var(--title-30)}.login-row[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.logo-login[_ngcontent-%COMP%]{top:0;left:0;padding:1.25rem;position:fixed}"],changeDetection:0})};export{d as default};
1
+ import{a as Q}from"./chunk-CK7BEV2X.js";import{c as F,d as G,e as T,f as A,i as R,n as D,q,r as V,t as $}from"./chunk-ELMONRIG.js";import{c as x}from"./chunk-BJGA55H2.js";import"./chunk-XP7PWMT2.js";import{d as N}from"./chunk-C6XTRC7P.js";import"./chunk-MAVZY7BL.js";import{a as I,b as k,g as O,l as P}from"./chunk-P4ZFQZCA.js";import"./chunk-S5EF63OY.js";import"./chunk-7L2WUS2V.js";import{$a as h,Db as o,Eb as i,F as c,Fb as a,Jb as S,Pc as M,Ua as m,Vb as v,Z as l,ea as g,fa as f,fc as b,gb as _,gc as E,ic as r,lb as w,ub as C,va as p,wb as y,zb as L}from"./chunk-L72ALLHJ.js";import"./chunk-7CGTOI24.js";var z=["passwordInput"];function B(s,e){s&1&&(o(0,"spk-alert",2),r(1," Remember to enter a password, if you can't remember the password open the duplicati client on the machine in question and make sure you open it through the tray icon then go into settings to change the password. "),i())}var u=new V,d=class s{#e=l(N);#t=l(x);failedLogin=p(!1);isLoading=p(!1);loginForm=u.group({user:u.control(""),pass:u.control("",G.required)});passwordInput=h("passwordInput");passwordEffect=M(()=>{this.failedLogin()&&queueMicrotask(()=>this.passwordInput()?.nativeElement?.focus())});ngOnInit(){queueMicrotask(()=>this.passwordInput()?.nativeElement?.focus())}submit(){let e=this.loginForm.value.pass;this.loginForm.value.user||e&&(this.isLoading.set(!0),this.#t.login(e).pipe(c(()=>{this.isLoading.set(!1),this.failedLogin.set(!0)})).subscribe({next:()=>this.#e.navigate(["/"])}))}static \u0275fac=function(t){return new(t||s)};static \u0275cmp=_({type:s,selectors:[["app-login"]],viewQuery:function(t,n){t&1&&b(n.passwordInput,z,5),t&2&&E()},decls:18,vars:4,consts:()=>{let e;return e=$localize`Enter your password`,[["passwordInput",""],[3,"submit","formGroup"],["type","warning"],[1,"logo-login"],[1,"login-row"],["type","text","hidden","","autocomplete","off","name","username","formControlName","user"],["for","password"],["href","https://docs.duplicati.com/detailed-descriptions/duplicati-access-password","target","_blank","rel","noopener noreferrer"],["type","password","name","password","autocomplete","current-password","placeholder",e,"tabindex","1","formControlName","pass"],["spk-button","","type","submit",1,"raised","primary"]]},template:function(t,n){if(t&1){let j=S();o(0,"form",1),v("submit",function(){return g(j),f(n.submit())}),w(1,B,2,0,"spk-alert",2),o(2,"div",3),a(3,"app-logo"),i(),o(4,"div",4),a(5,"input",5),o(6,"spk-form-field")(7,"label",6),r(8," Password "),o(9,"a",7)(10,"spk-icon"),r(11,"question"),i()()(),a(12,"input",8,0),i(),o(14,"button",9),r(15," Login "),o(16,"spk-icon"),r(17,"arrow-right"),i()()()()}t&2&&(C("formGroup",n.loginForm),m(),L(n.failedLogin()?1:-1),m(13),y("loader",n.isLoading()))},dependencies:[$,R,F,T,A,D,q,Q,P,I,O,k],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{width:100vw;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.5rem}spk-alert[_ngcontent-%COMP%]{max-width:20rem;margin:0 auto}h3[_ngcontent-%COMP%]{font:var(--title-30)}.login-row[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.logo-login[_ngcontent-%COMP%]{top:0;left:0;padding:1.25rem;position:fixed}"],changeDetection:0})};export{d as default};
@@ -0,0 +1 @@
1
+ import{g as K}from"./chunk-WFR2V6TK.js";import{a as H}from"./chunk-ZGKHK6QQ.js";import"./chunk-P7IBR2UW.js";import"./chunk-NDO7MKXC.js";import"./chunk-U467ZTQ4.js";import"./chunk-TQHNKGRL.js";import"./chunk-F2GEUOGZ.js";import{a as j}from"./chunk-4E7QE6GD.js";import"./chunk-BIZAKOYU.js";import"./chunk-GXRQHMLN.js";import{a as B}from"./chunk-XYLMZK7X.js";import"./chunk-IINSQSHJ.js";import"./chunk-FJVMA6GA.js";import"./chunk-RHW5QVAY.js";import{a as b}from"./chunk-HFIC4JNY.js";import"./chunk-ELMONRIG.js";import"./chunk-BJGA55H2.js";import"./chunk-XP7PWMT2.js";import"./chunk-C6XTRC7P.js";import"./chunk-MAVZY7BL.js";import{a as w,h as W,p as X,s as z}from"./chunk-P4ZFQZCA.js";import"./chunk-S5EF63OY.js";import{ua as v}from"./chunk-7L2WUS2V.js";import{Db as i,Eb as s,Fb as p,Gb as m,Hb as P,Oc as M,Pb as L,Pc as I,Qb as A,Rb as _,Sb as D,Tb as x,Ua as l,Wb as u,Z as T,ga as $,gb as y,ha as G,ic as C,lb as g,lc as f,ub as O,va as h,yc as R,zb as d,zc as E}from"./chunk-L72ALLHJ.js";import"./chunk-7CGTOI24.js";function V(n,e){n&1&&(i(0,"spk-card",8),m(1,14),_(2,2),P(),i(3,"div",15),$(),i(4,"svg",16),p(5,"circle",17),s(),G(),i(6,"spk-icon"),C(7,"check-bold"),s()()())}function Z(n,e){if(n&1&&(C(0),R(1,"number"),R(2,"number")),n&2){let t,o=u(2);f(" ",E(1,2,(t=o.statusData())==null?null:t.ProcessedFileCount)," of ",E(2,4,(t=o.statusData())==null?null:t.TotalFileCount)," ")}}function q(n,e){n&1&&(m(0),_(1,6),P())}function J(n,e){if(n&1&&(C(0),R(1,"bytes"),R(2,"bytes")),n&2){let t,o=u(2);f(" ",E(1,2,(t=o.statusData())==null?null:t.ProcessedFileSize)," of ",E(2,4,(t=o.statusData())==null?null:t.TotalFileSize)," ")}}function Q(n,e){n&1&&(m(0),_(1,7),P())}function U(n,e){if(n&1&&(i(0,"spk-card",8)(1,"h3"),L(2,3),p(3,"spk-spinner",18),A(),s(),i(4,"div",19),p(5,"spk-progress-bar",20),i(6,"p")(7,"span"),_(8,4),s(),g(9,Z,3,6)(10,q,2,0,"ng-container"),s(),i(11,"p")(12,"span"),_(13,5),s(),g(14,J,3,6)(15,Q,2,0,"ng-container"),s()()()),n&2){let t,o,r,a,c=u();l(3),D((t=c.statusData())==null?null:t.statusText),x(2),l(2),O("value",(o=c.statusData())==null?null:o.OverallProgress),l(4),d((r=c.statusData())!=null&&r.ProcessedFileCount?9:10),l(5),d((a=c.statusData())!=null&&a.ProcessedFileSize?14:15)}}var F=class n{#e=T(B);#t=T(K);statusData=this.#e.statusData;backupId=this.#t.backupId;isPolling=h(!0);taskId=M(()=>this.#e.statusData()?.TaskID?.toString()??void 0);lastRestoreStarted=M(()=>{let e=this.#e.statusData()?.backup?.Backup?.Metadata?.LastRestoreStarted??null;return e?this.fixDate(e):null});completedEffect=I(()=>{this.statusData()?.task?.Status==="Completed"&&this.isPolling.set(!1)});notificationFilterPredicate=()=>{let e=this.lastRestoreStarted();return{predicate:t=>(t.BackupID===this.#t.backupId()&&e&&e.getTime()<=new Date(t.Timestamp).getTime())??!1}};ngOnInit(){this.#e.fetchProgressState(),this.#e.startPollingProgress()}fixDate(e){return new Date(`${e.slice(0,4)}-${e.slice(4,6)}-${e.slice(6,8)}T${e.slice(9,11)}:${e.slice(11,13)}:${e.slice(13,15)}Z`)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=y({type:n,selectors:[["app-restore-progress"]],decls:12,vars:6,consts:()=>{let e;e=$localize`Notifications`;let t;t=$localize`Logs`;let o;o=$localize`Restore completed`;let r;r=$localize` Restore progress: ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#3\uFFFD"}:START_TAG_SPK_SPINNER:${"\uFFFD/#3\uFFFD"}:CLOSE_TAG_SPK_SPINNER:`;let a;a=$localize`Files processed:`;let c;c=$localize`Size processed:`;let N;N=$localize`N/A`;let k;return k=$localize`N/A`,[e,t,o,r,a,c,N,k,[1,"progress","type-a"],[1,"notifications","type-a"],[1,"notification-list"],[3,"notificationFilterPredicate"],[1,"logs","type-a"],[3,"asSimpleList","polling","whenFilter","backupIdFilter"],["title",""],[1,"complete-check"],[1,"border-svg"],["cx","50","cy","50","r","45",1,"border-circle"],[1,"primary"],[1,"progress-content"],[3,"value"]]},template:function(t,o){if(t&1&&(i(0,"section"),g(1,V,8,0,"spk-card",8)(2,U,16,4,"spk-card",8),i(3,"spk-card",9)(4,"h3"),_(5,0),s(),i(6,"div",10),p(7,"app-notifications",11),s()(),i(8,"spk-card",12)(9,"h3"),_(10,1),s(),p(11,"app-logs-live",13),s()()),t&2){let r,a;l(),d(((r=o.statusData())==null||r.task==null?null:r.task.Status)==="Completed"?1:2),l(6),O("notificationFilterPredicate",o.notificationFilterPredicate()),l(4),O("asSimpleList",!0)("polling",o.isPolling())("whenFilter",(a=o.lastRestoreStarted())==null?null:a.getTime())("backupIdFilter",o.backupId())}},dependencies:[H,X,z,w,W,j,b,v],styles:['[_nghost-%COMP%]{display:block;padding:0 1.25rem}section[_ngcontent-%COMP%]{display:grid;gap:1.25rem;grid-template-columns:2fr 1fr;grid-template-areas:"progress notifications" "logs logs"}section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-bottom:1rem}section[_ngcontent-%COMP%] .progress[_ngcontent-%COMP%]{grid-area:progress}section[_ngcontent-%COMP%] .progress[_ngcontent-%COMP%]:has(.complete-check){display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.25rem}section[_ngcontent-%COMP%] .progress[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}section[_ngcontent-%COMP%] .progress[_ngcontent-%COMP%] spk-spinner[_ngcontent-%COMP%]{--spinner-size: 1.25rem;--spinner-thickness: .1875rem}section[_ngcontent-%COMP%] .notifications[_ngcontent-%COMP%]{grid-area:notifications}section[_ngcontent-%COMP%] .logs[_ngcontent-%COMP%]{grid-area:logs}section[_ngcontent-%COMP%] .logs[_ngcontent-%COMP%] app-logs-live[_ngcontent-%COMP%]{max-height:50rem;overflow:auto}.notification-list[_ngcontent-%COMP%]{max-height:15rem;overflow:auto}.complete-check[_ngcontent-%COMP%]{position:relative;width:100px;height:100px;display:flex;justify-content:center;align-items:center;color:var(--success-500)}.complete-check[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{font-size:2.5rem;opacity:0;animation:_ngcontent-%COMP%_reveal-icon .2s linear forwards;animation-delay:1s}.border-svg[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%}.border-circle[_ngcontent-%COMP%]{fill:none;stroke:var(--success-500);stroke-width:5px;stroke-dasharray:282.74;stroke-dashoffset:282.74;animation:_ngcontent-%COMP%_draw-border 1.2s linear forwards}@keyframes _ngcontent-%COMP%_draw-border{to{stroke-dashoffset:0}}@keyframes _ngcontent-%COMP%_reveal-icon{to{opacity:1}}.progress-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.progress-content[_ngcontent-%COMP%] spk-progress-bar[_ngcontent-%COMP%]{margin-bottom:.75rem}.progress-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-right:.25rem}'],changeDetection:0})};export{F as default};
@@ -1 +1 @@
1
- import{a}from"./chunk-I3C2AEHI.js";import{Bc as r,S as s,Y as i,ua as e}from"./chunk-W2F756OF.js";var o=class t{#t=i(a);#a=this.#t.getItemParsed("darkTheme",!0);#e=e(!1);#s=e(window?.innerWidth<=768);#i=e(!1);isDarkMode=this.#e.asReadonly();isMobile=this.#s.asReadonly();isNavOpen=this.#i.asReadonly();constructor(){window.matchMedia("(prefers-color-scheme:dark)").matches&&this.#a&&this.setDarkMode(),r(()=>{this.#e()?document.body.classList.add("dark"):document.body.classList.remove("dark")})}ngOnInit(){window.addEventListener("resize",this.#r)}toggleNav(){this.#i.set(!this.isNavOpen())}toggleBodyClass(){this.#t.setItemParsed("darkTheme",!this.isDarkMode(),!0),this.#e.set(!this.isDarkMode())}setDarkMode(){this.#t.setItemParsed("darkTheme",!0,!0),this.#e.set(!0)}setLightMode(){this.#t.setItemParsed("darkTheme",!1,!0),this.#e.set(!1)}#r(){this.#s.set(window.innerWidth<=768)}ngOnDestroy(){window.removeEventListener("resize",this.#r)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=s({token:t,factory:t.\u0275fac,providedIn:"root"})};export{o as a};
1
+ import{a}from"./chunk-XP7PWMT2.js";import{Pc as r,T as s,Z as i,va as e}from"./chunk-L72ALLHJ.js";var o=class t{#t=i(a);#a=this.#t.getItemParsed("darkTheme",!0);#e=e(!1);#s=e(window?.innerWidth<=768);#i=e(!1);isDarkMode=this.#e.asReadonly();isMobile=this.#s.asReadonly();isNavOpen=this.#i.asReadonly();constructor(){window.matchMedia("(prefers-color-scheme:dark)").matches&&this.#a&&this.setDarkMode(),r(()=>{this.#e()?document.body.classList.add("dark"):document.body.classList.remove("dark")})}ngOnInit(){window.addEventListener("resize",this.#r)}toggleNav(){this.#i.set(!this.isNavOpen())}toggleBodyClass(){this.#t.setItemParsed("darkTheme",!this.isDarkMode(),!0),this.#e.set(!this.isDarkMode())}setDarkMode(){this.#t.setItemParsed("darkTheme",!0,!0),this.#e.set(!0)}setLightMode(){this.#t.setItemParsed("darkTheme",!1,!0),this.#e.set(!1)}#r(){this.#s.set(window.innerWidth<=768)}ngOnDestroy(){window.removeEventListener("resize",this.#r)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=s({token:t,factory:t.\u0275fac,providedIn:"root"})};export{o as a};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-E6YEUK4V.js";import"./chunk-PUEJXHBQ.js";import"./chunk-NDO7MKXC.js";import"./chunk-F2GEUOGZ.js";import"./chunk-ELMONRIG.js";import"./chunk-P4ZFQZCA.js";import"./chunk-S5EF63OY.js";import"./chunk-7L2WUS2V.js";import"./chunk-L72ALLHJ.js";import"./chunk-7CGTOI24.js";export{a as OptionsListComponent};
@@ -0,0 +1 @@
1
+ import{a as M}from"./chunk-KRXMGGJO.js";import"./chunk-XYLMZK7X.js";import"./chunk-IINSQSHJ.js";import"./chunk-FJVMA6GA.js";import"./chunk-RHW5QVAY.js";import"./chunk-HFIC4JNY.js";import"./chunk-ELMONRIG.js";import"./chunk-BJGA55H2.js";import"./chunk-XP7PWMT2.js";import{c as O,e as C,f as S}from"./chunk-C6XTRC7P.js";import"./chunk-MAVZY7BL.js";import{y as d}from"./chunk-P4ZFQZCA.js";import"./chunk-S5EF63OY.js";import"./chunk-JFNFY6VY.js";import"./chunk-7L2WUS2V.js";import"./chunk-DOP6RFEG.js";import{Db as e,Eb as t,Fb as l,Rb as n,gb as c}from"./chunk-L72ALLHJ.js";import"./chunk-7CGTOI24.js";var s=class a{static \u0275fac=function(o){return new(o||a)};static \u0275cmp=c({type:a,selectors:[["app-about"]],decls:19,vars:0,consts:()=>{let _;_=$localize`General`;let o;o=$localize`Changelog`;let r;r=$localize`Libraries`;let u;u=$localize`System info`;let T;T=$localize`Server settings`;let g;g=$localize`Logs`;let A;return A=$localize`Crash log`,[_,o,r,u,T,g,A,[1,"content"],[1,"primary"],["tab","","routerLink","/about/general","routerLinkActive","active"],["tab","","routerLink","/about/changelog","routerLinkActive","active"],["tab","","routerLink","/about/libraries","routerLinkActive","active"],["tab","","routerLink","/about/system-info","routerLinkActive","active"],["tab","","routerLink","/about/server-settings","routerLinkActive","active"],["tab","","routerLink","/about/logs","routerLinkActive","active"],["tab","","routerLink","/about/crashlogs","routerLinkActive","active"]]},template:function(o,r){o&1&&(l(0,"app-status-bar"),e(1,"div",7)(2,"spk-tabs",8)(3,"button",9),n(4,0),t(),e(5,"button",10),n(6,1),t(),e(7,"button",11),n(8,2),t(),e(9,"button",12),n(10,3),t(),e(11,"button",13),n(12,4),t(),e(13,"button",14),n(14,5),t(),e(15,"button",15),n(16,6),t()(),e(17,"section"),l(18,"router-outlet"),t()())},dependencies:[M,d,O,C,S],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:0}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:1rem 2rem}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:2rem 0}"],changeDetection:0})};export{s as default};
@@ -0,0 +1 @@
1
+ import{j as a,k as b}from"./chunk-CW3Y4RRU.js";import"./chunk-PUEJXHBQ.js";import"./chunk-NDO7MKXC.js";import"./chunk-U467ZTQ4.js";import"./chunk-EQWH3TBL.js";import"./chunk-TQHNKGRL.js";import"./chunk-F2GEUOGZ.js";import"./chunk-BIZAKOYU.js";import"./chunk-RHW5QVAY.js";import"./chunk-ELMONRIG.js";import"./chunk-C6XTRC7P.js";import"./chunk-MAVZY7BL.js";import"./chunk-P4ZFQZCA.js";import"./chunk-S5EF63OY.js";import"./chunk-7L2WUS2V.js";import"./chunk-L72ALLHJ.js";import"./chunk-7CGTOI24.js";export{a as SCHEDULE_FIELD_DEFAULTS,b as default};
@@ -0,0 +1 @@
1
+ import{a as tn}from"./chunk-KRXMGGJO.js";import{a as nn}from"./chunk-BIZAKOYU.js";import"./chunk-XYLMZK7X.js";import"./chunk-IINSQSHJ.js";import{a as en}from"./chunk-FJVMA6GA.js";import"./chunk-RHW5QVAY.js";import"./chunk-HFIC4JNY.js";import"./chunk-ELMONRIG.js";import"./chunk-BJGA55H2.js";import"./chunk-XP7PWMT2.js";import{e as we}from"./chunk-C6XTRC7P.js";import"./chunk-MAVZY7BL.js";import{a as j,e as Ve,f as Ke,g as We,h as je,j as qe,k as Ue,o as Je,p as Qe,w as Ye,x as Ze}from"./chunk-P4ZFQZCA.js";import{h as ze}from"./chunk-S5EF63OY.js";import"./chunk-JFNFY6VY.js";import"./chunk-7L2WUS2V.js";import"./chunk-DOP6RFEG.js";import{Ab as h,Ac as G,Bb as X,Bc as W,Cb as w,Db as _,Eb as o,F as b,Fb as d,Gb as E,Hb as M,Ib as D,Jb as x,Pb as u,Pc as Xe,Qb as p,Rb as F,Sb as y,Tb as B,Ua as l,Vb as P,Wb as s,Z as v,a as ye,b as V,ea as m,fa as O,gb as Be,hc as z,ic as T,kc as k,lb as g,nc as be,oc as ve,pc as he,rb as Le,sb as Ge,ub as C,uc as K,va as A,vc as f,wb as I,yc as $,zb as S,zc as L}from"./chunk-L72ALLHJ.js";import"./chunk-7CGTOI24.js";function on(...e){let i=A(...e);return Object.defineProperty(i,"value",{get:i.asReadonly(),set:i.set.bind(i)})}function _n(e,i,n){let t=localStorage.getItem(i);t!=null&&(e=JSON.parse(t));let r=on(e),c=r[ye];n?.equal&&(c.equal=n.equal);function R(N){N==null?localStorage.removeItem(i):localStorage.setItem(i,JSON.stringify(N))}return r.set=N=>{R(N),V(c,N)},r.update=N=>{let H=N(r());R(H),V(c,H)},r}var ln=()=>[import("./chunk-L2M4ZKII.js").then(e=>e.NgTemplateOutlet),j,qe,Ze,Ye,import("./chunk-7RELJ5CQ.js").then(e=>e.DurationFormatPipe),import("./chunk-I7KXABQT.js").then(e=>e.BytesPipe),import("./chunk-JSZOZDJQ.js").then(e=>e.RelativeTimePipe)],rn=()=>["/add-backup"],cn=()=>["/restore"],an=e=>({$implicit:e}),sn=e=>["/backup",e],un=e=>["/restore",e],pn=e=>["/backup",e,"export"],Fn=e=>["/backup",e,"database"],gn=e=>["/backup",e,"commandline"],dn=e=>["/backup",e,"log"];function Tn(e,i){if(e&1){let n=x();_(0,"button",57),P("click",function(){let r=m(n).$implicit,c=s(2);return O(c.sortByColumn.set(r.value))}),F(1,15),o()}if(e&2){let n=i.$implicit,t=s(2);I("active",t.orderBy()===n.value),l(),y(n.label),B(1)}}function Cn(e,i){if(e&1&&(_(0,"spk-menu")(1,"button",58),u(2,14),d(3,"strong")(4,"spk-icon"),p(),o(),E(5,59),X(6,Tn,2,3,"button",60,h),M(),o()),e&2){let n=s();l(4),y(n.orderBy()),B(2),l(2),w(n.sortOrderOptions())}}function Sn(e,i){if(e&1&&(T(0),$(1,"durationFormat")),e&2){let n=s().$implicit,t=s(4);k(" ",G(1,1,n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.LastBackupDuration,t.timeType()==="actual")," ")}}function En(e,i){e&1&&(E(0),F(1,20),M())}function Mn(e,i){if(e&1&&(T(0),$(1,"bytes")),e&2){let n=s().$implicit;k(" ",L(1,1,n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.SourceFilesSize)," ")}}function mn(e,i){e&1&&(E(0),F(1,21),M())}function On(e,i){if(e&1&&(T(0),$(1,"bytes")),e&2){let n=s().$implicit;k(" ",L(1,1,n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.TargetFilesSize)," ")}}function kn(e,i){e&1&&(E(0),F(1,22),M())}function Nn(e,i){if(e&1&&(_(0,"spk-chip",64),F(1,23),o()),e&2){let n=s().$implicit;l(),y(n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.BackupListCount),B(1)}}function Pn(e,i){e&1&&(_(0,"spk-chip",65),F(1,24),o())}function fn(e,i){e&1&&D(0)}function $n(e,i){if(e&1&&(_(0,"div",63)(1,"div",51)(2,"h3"),T(3),_(4,"spk-icon"),T(5,"database"),o()(),_(6,"p")(7,"span"),F(8,16),o(),T(9),$(10,"relativeTime"),o(),_(11,"p")(12,"span"),F(13,17),o(),g(14,Sn,2,4)(15,En,2,0,"ng-container"),o(),_(16,"p")(17,"span"),F(18,18),o(),g(19,Mn,2,3)(20,mn,2,0,"ng-container"),o(),_(21,"p")(22,"span"),F(23,19),o(),g(24,On,2,3)(25,kn,2,0,"ng-container"),o()(),g(26,Nn,2,1,"spk-chip",64)(27,Pn,2,0,"spk-chip",65),_(28,"div",55),g(29,fn,1,0,"ng-container",66),o()()),e&2){let n,t=i.$implicit,r=s(4),c=z(51);l(3),k(" ",(n=t.Backup==null?null:t.Backup.Name)!==null&&n!==void 0?n:r.MISSING_BACKUP_NAME," "),l(6),k(" ",G(10,8,t.Backup==null||t.Backup.Metadata==null?null:t.Backup.Metadata.LastBackupDate,r.timeType()==="actual")," "),l(5),S(!(t.Backup==null||t.Backup.Metadata==null)&&t.Backup.Metadata.LastBackupDuration?14:15),l(5),S(!(t.Backup==null||t.Backup.Metadata==null)&&t.Backup.Metadata.SourceFilesSize?19:20),l(5),S(!(t.Backup==null||t.Backup.Metadata==null)&&t.Backup.Metadata.TargetFilesSize?24:25),l(2),S(!(t.Backup==null||t.Backup.Metadata==null)&&t.Backup.Metadata.BackupListCount?26:27),l(3),C("ngTemplateOutlet",c)("ngTemplateOutletContext",f(11,an,t))}}function Dn(e,i){if(e&1&&X(0,$n,30,13,"div",63,h),e&2){let n=s(3);w(n.backups())}}function In(e,i){e&1&&(E(0),F(1,25),M())}function An(e,i){if(e&1&&(_(0,"div",61),g(1,Dn,2,0)(2,In,2,0,"ng-container"),o()),e&2){let n=s(2);l(),S(n.backups().length?1:2)}}function Rn(e,i){e&1&&(u(0,26,1),D(1),p())}function Hn(e,i){e&1&&(u(0,27,1),D(1),p())}function xn(e,i){e&1&&(u(0,28,1),D(1),p())}function yn(e,i){e&1&&(u(0,29,1),D(1),p())}function Bn(e,i){e&1&&(u(0,30,1),D(1),p())}function Ln(e,i){if(e&1&&(T(0),$(1,"relativeTime")),e&2){let n=s().$implicit,t=s(3);k(" ",G(1,1,n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.LastBackupDate,t.timeType()==="actual")," ")}}function Gn(e,i){e&1&&(E(0),F(1,33),M())}function bn(e,i){if(e&1&&(T(0),$(1,"durationFormat")),e&2){let n=s().$implicit,t=s(3);k(" ",G(1,1,n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.LastBackupDuration,t.timeType()==="actual")," ")}}function vn(e,i){e&1&&(E(0),F(1,34),M())}function hn(e,i){if(e&1&&(T(0),$(1,"bytes")),e&2){let n=s().$implicit;k(" ",L(1,1,n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.SourceFilesSize)," ")}}function Xn(e,i){e&1&&(E(0),F(1,35),M())}function wn(e,i){if(e&1&&(T(0),$(1,"bytes")),e&2){let n=s().$implicit;k(" ",L(1,1,n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.TargetFilesSize)," ")}}function zn(e,i){e&1&&(E(0),F(1,36),M())}function Vn(e,i){if(e&1&&T(0),e&2){let n=s().$implicit;k(" ",n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.BackupListCount," Version ")}}function Kn(e,i){e&1&&(E(0),F(1,37),M())}function Wn(e,i){e&1&&D(0)}function jn(e,i){if(e&1&&(_(0,"tr")(1,"td"),T(2),o(),_(3,"td"),g(4,Ln,2,4)(5,Gn,2,0,"ng-container"),o(),_(6,"td"),g(7,bn,2,4)(8,vn,2,0,"ng-container"),o(),_(9,"td"),g(10,hn,2,3)(11,Xn,2,0,"ng-container"),o(),_(12,"td"),g(13,wn,2,3)(14,zn,2,0,"ng-container"),o(),_(15,"td"),g(16,Vn,1,1)(17,Kn,2,0,"ng-container"),o(),_(18,"td"),g(19,Wn,1,0,"ng-container",66),o()()),e&2){let n,t=i.$implicit,r=s(3),c=z(51);l(2),k(" ",(n=t.Backup==null?null:t.Backup.Name)!==null&&n!==void 0?n:r.MISSING_BACKUP_NAME," "),l(2),S(!(t.Backup==null||t.Backup.Metadata==null)&&t.Backup.Metadata.LastBackupDate?4:5),l(3),S(!(t.Backup==null||t.Backup.Metadata==null)&&t.Backup.Metadata.LastBackupDuration?7:8),l(3),S(!(t.Backup==null||t.Backup.Metadata==null)&&t.Backup.Metadata.SourceFilesSize?10:11),l(3),S(!(t.Backup==null||t.Backup.Metadata==null)&&t.Backup.Metadata.TargetFilesSize?13:14),l(3),S(!(t.Backup==null||t.Backup.Metadata==null)&&t.Backup.Metadata.BackupListCount?16:17),l(3),C("ngTemplateOutlet",c)("ngTemplateOutletContext",f(8,an,t))}}function qn(e,i){if(e&1){let n=x();_(0,"spk-table",67),he("sortByColumnChange",function(r){m(n);let c=s(2);return ve(c.sortByColumn,r)||(c.sortByColumn=r),O(r)}),_(1,"tr",68)(2,"th",69),u(3,26),g(4,Rn,2,0,"ng-container",70),p(),o(),_(5,"th",71),u(6,27),g(7,Hn,2,0,"ng-container",70),p(),o(),_(8,"th",72),u(9,28),g(10,xn,2,0,"ng-container",70),p(),o(),_(11,"th",73),u(12,29),g(13,yn,2,0,"ng-container",70),p(),o(),_(14,"th",74),u(15,30),g(16,Bn,2,0,"ng-container",70),p(),o(),_(17,"th"),F(18,31),o(),_(19,"th"),F(20,32),o()(),X(21,jn,20,10,"tr",null,h),o()}if(e&2){let n=s(2),t=z(53);C("data",n.backups())("loading",n.backupsLoading()),be("sortByColumn",n.sortByColumn),l(4),C("ngTemplateOutlet",t),l(3),C("ngTemplateOutlet",t),l(3),C("ngTemplateOutlet",t),l(3),C("ngTemplateOutlet",t),l(3),C("ngTemplateOutlet",t),l(5),w(n.backups())}}function Un(e,i){if(e&1&&g(0,An,3,1,"div",61)(1,qn,23,8,"spk-table",62),e&2){let n=s();S(n.viewMode()==="list"?0:n.viewMode()==="details"?1:-1)}}function Jn(e,i){e&1&&(_(0,"div",75),d(1,"spk-progress-bar",76),_(2,"div",51)(3,"h3"),F(4,38),o()()())}function Qn(e,i){e&1&&(_(0,"spk-icon"),T(1,"check"),o())}function Yn(e,i){e&1&&(_(0,"spk-icon"),T(1,"dots-three-vertical"),o())}function Zn(e,i){if(e&1){let n=x();_(0,"button",77),P("click",function(){let r=m(n).$implicit,c=s();return O(c.startBackup(r.Backup==null?null:r.Backup.ID))}),u(1,39),d(2,"spk-icon"),p(),o(),_(3,"button",78)(4,"spk-icon"),T(5,"pencil-simple"),o()(),_(6,"spk-menu",79)(7,"button",52),g(8,Qn,2,0,"spk-icon")(9,Yn,2,0,"spk-icon"),o(),E(10,59),_(11,"h3",80),T(12,"Operations"),o(),_(13,"button",81),u(14,40),d(15,"spk-icon"),p(),o(),_(16,"button",81),u(17,41),d(18,"spk-icon"),p(),o(),_(19,"button",82),P("click",function(){let r=m(n).$implicit,c=s();return O(c.deleteBackup(r.Backup==null?null:r.Backup.ID))}),u(20,42),d(21,"spk-icon"),p(),o(),d(22,"spk-divider"),_(23,"h3",80),T(24,"Advanced"),o(),_(25,"button",81),u(26,43),d(27,"spk-icon"),p(),o(),_(28,"button",57),P("click",function(){let r=m(n).$implicit,c=s();return O(c.verifyFiles(r.Backup==null?null:r.Backup.ID))}),u(29,44),d(30,"spk-icon"),p(),o(),_(31,"button",57),P("click",function(){let r=m(n).$implicit,c=s();return O(c.compressBackup(r.Backup==null?null:r.Backup.ID))}),u(32,45),d(33,"spk-icon"),p(),o(),_(34,"button",81),u(35,46),d(36,"spk-icon"),p(),o(),d(37,"spk-divider"),_(38,"h3",80),T(39,"Reporting"),o(),_(40,"button",81),u(41,47),d(42,"spk-icon"),p(),o(),_(43,"button",57),P("click",function(){let r=m(n).$implicit,c=s();return O(c.createErrorReport(r.Backup==null?null:r.Backup.ID))}),u(44,48),d(45,"spk-icon"),p(),o(),M(),o()}if(e&2){let n=i.$implicit,t=s();I("loader",t.startingBackup()===(n.Backup==null?null:n.Backup.ID)),l(3),C("routerLink",f(16,sn,n.Backup==null?null:n.Backup.ID)),l(3),C("right",!0),l(),I("loader",t.loadingId()===(n.Backup==null?null:n.Backup.ID))("success",t.successId()===(n.Backup==null?null:n.Backup.ID)),l(),S(t.successId()===(n.Backup==null?null:n.Backup.ID)?8:9),l(5),C("routerLink",f(18,un,n.Backup==null?null:n.Backup.ID)),l(3),C("routerLink",f(20,pn,n.Backup==null?null:n.Backup.ID)),l(3),I("loader",t.deletingBackup()===(n.Backup==null?null:n.Backup.ID)),l(6),C("routerLink",f(22,Fn,n.Backup==null?null:n.Backup.ID)),l(9),C("routerLink",f(24,gn,n.Backup==null?null:n.Backup.ID)),l(6),C("routerLink",f(26,dn,n.Backup==null?null:n.Backup.ID))}}function et(e,i){e&1&&(_(0,"spk-icon",83),T(1,"funnel-simple"),o(),_(2,"spk-icon",84),T(3,"sort-ascending"),o(),_(4,"spk-icon",85),T(5,"sort-descending"),o())}var q=class e{#e=v(en);#t=v(Ve);#n=v(ze);MISSING_BACKUP_NAME=$localize`Backup name missing`;sortOrderOptions=this.#e.orderByOptions;orderBy=this.#e.orderBy;backups=this.#e.backups;backupsLoading=this.#e.backupsLoading;startingBackup=this.#e.startingBackup;deletingBackup=this.#e.deletingBackup;timeType=this.#e.timeType;viewMode=_n("list","viewMode");sortByColumn=A("name");loadingId=A(null);successId=A(null);sortEffect=Xe(()=>this.#e.setOrderBy(this.sortByColumn()));ngOnInit(){this.#e.getBackups(!0)}setOrderBy(i){this.#e.setOrderBy(i)}setTimeType(i){this.#e.setTimeType(i)}startBackup(i){this.#e.startBackup(i)}deleteBackup(i){this.loadingId.set(i),this.#t.open(nn,{data:{title:$localize`Confirm delete`,message:$localize`Are you sure you want to delete this backup?`,confirmText:$localize`Delete backup`,cancelText:$localize`Cancel`},closed:n=>{n&&this.#e.deleteBackup(i)}})}verifyFiles(i){this.loadingId.set(i),this.#n.postApiV1BackupByIdVerify({id:i}).pipe(b(()=>this.loadingId.set(null))).subscribe({next:()=>{this.successId.set(i),setTimeout(()=>this.successId.set(null),2e3)}})}compressBackup(i){this.loadingId.set(i),this.#n.postApiV1BackupByIdCompact({id:i}).pipe(b(()=>this.loadingId.set(null))).subscribe({next:()=>{this.successId.set(i),setTimeout(()=>this.successId.set(null),2e3)}})}createErrorReport(i){this.loadingId.set(i),this.#n.postApiV1BackupByIdCreatereport({id:i}).pipe(b(()=>this.loadingId.set(null))).subscribe({next:()=>{this.successId.set(i),setTimeout(()=>this.successId.set(null),2e3)}})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Be({type:e,selectors:[["app-home"]],decls:54,vars:11,consts:()=>{let i;i=$localize`Backups`;let n;n=$localize`Backups are stored in the cloud and can be restored at any time.`;let t;t=$localize` Add ${"\uFFFD#12\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let r;r=$localize`Restores`;let c;c=$localize`Restores allow you to restore your data from the cloud.`;let R;R=$localize` Start ${"\uFFFD#22\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let N;N=$localize`My backups`;let H;H=$localize`${"\uFFFD#31\uFFFD"}:START_TAG_SPK_ICON:rows${"\uFFFD/#31\uFFFD"}:CLOSE_TAG_SPK_ICON: List `;let U;U=$localize`${"\uFFFD#34\uFFFD"}:START_TAG_SPK_ICON:list${"\uFFFD/#34\uFFFD"}:CLOSE_TAG_SPK_ICON: Details `;let J;J=$localize` Time: ${"\uFFFD#38\uFFFD"}:START_TAG_STRONG:${"\uFFFD0\uFFFD"}:INTERPOLATION:${"\uFFFD/#38\uFFFD"}:CLOSE_TAG_STRONG:${"\uFFFD#39\uFFFD"}:START_TAG_SPK_ICON:clock${"\uFFFD/#39\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let Q;Q=$localize`Relative time`;let Y;Y=$localize`Actual time`;let Z;Z=$localize` Order by: ${"\uFFFD#3\uFFFD"}:START_TAG_STRONG:${"\uFFFD0\uFFFD"}:INTERPOLATION:${"\uFFFD/#3\uFFFD"}:CLOSE_TAG_STRONG:${"\uFFFD#4\uFFFD"}:START_TAG_SPK_ICON:arrows-down-up${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let ee;ee=$localize` ${"\uFFFD0\uFFFD"}:INTERPOLATION: `;let ne;ne=$localize`Last successful backup:`;let te;te=$localize`Duration:`;let ie;ie=$localize`Source:`;let oe;oe=$localize`Destination:`;let _e;_e=$localize`N/A`;let ae;ae=$localize`N/A`;let le;le=$localize`N/A`;let re;re=$localize` ${"\uFFFD0\uFFFD"}:INTERPOLATION: Version `;let ce;ce=$localize`No version yet`;let se;se=$localize`No backups founds`;let ue;ue=$localize` Backup ${"\uFFFD*4:1\uFFFD\uFFFD#1:1\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD/#1:1\uFFFD\uFFFD/*4:1\uFFFD"}:CLOSE_TAG_NG_CONTAINER:`;let pe;pe=$localize` Last successful backup ${"\uFFFD*7:1\uFFFD\uFFFD#1:1\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD/#1:1\uFFFD\uFFFD/*7:1\uFFFD"}:CLOSE_TAG_NG_CONTAINER:`;let Fe;Fe=$localize` Duration ${"\uFFFD*10:1\uFFFD\uFFFD#1:1\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD/#1:1\uFFFD\uFFFD/*10:1\uFFFD"}:CLOSE_TAG_NG_CONTAINER:`;let ge;ge=$localize` Source ${"\uFFFD*13:1\uFFFD\uFFFD#1:1\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD/#1:1\uFFFD\uFFFD/*13:1\uFFFD"}:CLOSE_TAG_NG_CONTAINER:`;let de;de=$localize` Destination ${"\uFFFD*16:1\uFFFD\uFFFD#1:1\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD/#1:1\uFFFD\uFFFD/*16:1\uFFFD"}:CLOSE_TAG_NG_CONTAINER:`;let Te;Te=$localize`Version`;let Ce;Ce=$localize`Actions`;let Se;Se=$localize`N/A`;let Ee;Ee=$localize`N/A`;let Me;Me=$localize`N/A`;let me;me=$localize`N/A`;let Oe;Oe=$localize`No version yet`;let ke;ke=$localize`Loading backups...`;let Ne;Ne=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SPK_ICON:play-circle${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPK_ICON: Start `;let Pe;Pe=$localize`${"\uFFFD#15\uFFFD"}:START_TAG_SPK_ICON:clock-counter-clockwise${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SPK_ICON: Restore `;let fe;fe=$localize`${"\uFFFD#18\uFFFD"}:START_TAG_SPK_ICON:export${"\uFFFD/#18\uFFFD"}:CLOSE_TAG_SPK_ICON: Export `;let $e;$e=$localize`${"\uFFFD#21\uFFFD"}:START_TAG_SPK_ICON:x-circle${"\uFFFD/#21\uFFFD"}:CLOSE_TAG_SPK_ICON: Delete `;let De;De=$localize`${"\uFFFD#27\uFFFD"}:START_TAG_SPK_ICON:database${"\uFFFD/#27\uFFFD"}:CLOSE_TAG_SPK_ICON: Database `;let Ie;Ie=$localize`${"\uFFFD#30\uFFFD"}:START_TAG_SPK_ICON:check-square-offset${"\uFFFD/#30\uFFFD"}:CLOSE_TAG_SPK_ICON: Verify files `;let Ae;Ae=$localize`${"\uFFFD#33\uFFFD"}:START_TAG_SPK_ICON:file-archive${"\uFFFD/#33\uFFFD"}:CLOSE_TAG_SPK_ICON: Compress now `;let Re;Re=$localize`${"\uFFFD#36\uFFFD"}:START_TAG_SPK_ICON:terminal-window${"\uFFFD/#36\uFFFD"}:CLOSE_TAG_SPK_ICON: Commandline `;let He;He=$localize`${"\uFFFD#42\uFFFD"}:START_TAG_SPK_ICON:notepad${"\uFFFD/#42\uFFFD"}:CLOSE_TAG_SPK_ICON: Log `;let xe;return xe=$localize`${"\uFFFD#45\uFFFD"}:START_TAG_SPK_ICON:file-plus${"\uFFFD/#45\uFFFD"}:CLOSE_TAG_SPK_ICON: Create error report `,[["actions",""],["sortIcons",""],i,n,t,r,c,R,N,H,U,J,Q,Y,Z,ee,ne,te,ie,oe,_e,ae,le,re,ce,se,ue,pe,Fe,ge,de,Te,Ce,Se,Ee,Me,me,Oe,ke,Ne,Pe,fe,$e,De,Ie,Ae,Re,He,xe,[1,"type-a",3,"routerLink"],["src","assets/images/backup.png","alt","","width","48px"],[1,"text"],["type","button","spk-button",""],["src","assets/images/restore.png","alt","","width","48px"],[1,"content"],[1,"actions"],[1,"small"],["type","button",3,"click"],["type","button","spk-button","",1,"small"],["menu",""],["type","button",3,"active"],[1,"backups"],[1,"type-b",3,"data","loading","sortByColumn"],[1,"backup"],[1,"simple","success"],[1,"simple"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"type-b",3,"sortByColumnChange","data","loading","sortByColumn"],["table-header",""],["spkSort","name"],[4,"ngTemplateOutlet"],["spkSort","lastrun"],["spkSort","duration"],["spkSort","sourcesize"],["spkSort","destinationsize"],[1,"loading-list"],[1,"indeterminate","primary"],["spk-button","",3,"click"],["type","button","spk-button","",3,"routerLink"],[3,"right"],["title",""],["type","button",3,"routerLink"],[3,"click"],[1,"filter"],[1,"asc"],[1,"desc"]]},template:function(n,t){if(n&1){let r=x();d(0,"app-status-bar"),_(1,"section")(2,"header")(3,"spk-card",49),d(4,"img",50),_(5,"div",51)(6,"h3"),F(7,2),o(),_(8,"p"),F(9,3),o()(),_(10,"button",52),u(11,4),d(12,"spk-icon"),p(),o()(),_(13,"spk-card",49),d(14,"img",53),_(15,"div",51)(16,"h3"),F(17,5),o(),_(18,"p"),F(19,6),o()(),_(20,"button",52),u(21,7),d(22,"spk-icon"),p(),o()()(),_(23,"div",54)(24,"h2"),E(25),F(26,8),M(),_(27,"div",55)(28,"spk-button-group",56)(29,"button",57),P("click",function(){return m(r),O(t.viewMode.set("list"))}),u(30,9),d(31,"spk-icon"),p(),o(),_(32,"button",57),P("click",function(){return m(r),O(t.viewMode.set("details"))}),u(33,10),d(34,"spk-icon"),p(),o()(),_(35,"spk-menu")(36,"button",58),u(37,11),d(38,"strong")(39,"spk-icon"),p(),o(),E(40,59),_(41,"button",57),P("click",function(){return m(r),O(t.setTimeType("relative"))}),F(42,12),o(),_(43,"button",57),P("click",function(){return m(r),O(t.setTimeType("actual"))}),F(44,13),o(),M(),o(),g(45,Cn,8,1,"spk-menu"),o()(),g(46,Un,2,1)(47,Jn,5,0),Le(48,46,ln,null,47),o()(),g(50,Zn,46,28,"ng-template",null,0,W)(52,et,6,0,"ng-template",null,1,W)}n&2&&(l(3),C("routerLink",K(9,rn)),l(10),C("routerLink",K(10,cn)),l(16),I("active",t.viewMode()==="list"),l(3),I("active",t.viewMode()==="details"),l(7),y(t.timeType()),B(37),l(6),S(t.viewMode()==="list"?45:-1),l(3),Ge(!t.backupsLoading()))},dependencies:[we,tn,je,We,j,Ue,Je,Qe,Ke],styles:["[_nghost-%COMP%]{display:block}h2[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:2rem 0}header[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;padding:0 2rem;gap:1rem}spk-card[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem}spk-card[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;display:flex;flex-direction:column;gap:.25rem}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.content[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{padding:0 2rem}.backups[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 2rem;gap:.5rem}.backup[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem;gap:1rem;border:1px solid var(--base-level-40);border-radius:var(--shape-3);box-shadow:var(--shadow-1)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;width:100%;max-width:40%}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{color:var(--base-level-60)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-level-60)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--base-level-70)}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}.sortable[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{margin-left:.5rem;font-size:1rem;justify-self:flex-end;display:none}.sortable[_ngcontent-%COMP%]:not(.sort-asc):not(.sort-desc) spk-icon.filter[_ngcontent-%COMP%]{display:block}.sortable.sort-asc[_ngcontent-%COMP%] spk-icon.asc[_ngcontent-%COMP%]{display:block;color:var(--base-level-70)}.sortable.sort-desc[_ngcontent-%COMP%] spk-icon.desc[_ngcontent-%COMP%]{display:block;color:var(--base-level-70)}"],changeDetection:0})};export{q as default};
@@ -1,2 +1,2 @@
1
- import{d as ke,h as Ee,p as Ie}from"./chunk-CKPICCFH.js";import{$ as Te,B as ee,C as be,F as ge,N as F,Q as w,S as R,V,X as b,Y as T,Z as Re,aa as ve,f as Z,la as Be,m as fe,n as L,na as Ve,o as H,r as B,x as me,ya as Pe,z as Ae}from"./chunk-W2F756OF.js";import{a as D,b as ye}from"./chunk-7CGTOI24.js";var U=class{},q=class{},g=class s{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(e){e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(`
1
+ import{Ga as Ie,X as Ee,e as ke}from"./chunk-7L2WUS2V.js";import{B as ee,C as be,F as ge,N as F,Q as w,T as R,W as V,Y as b,Z as T,_ as Re,aa as Te,ba as ve,f as Z,m as fe,ma as Be,n as L,o as H,oa as Ve,r as B,x as me,z as Ae,za as Pe}from"./chunk-L72ALLHJ.js";import{a as D,b as ye}from"./chunk-7CGTOI24.js";var U=class{},q=class{},g=class s{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(e){e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(`
2
2
  `).forEach(t=>{let r=t.indexOf(":");if(r>0){let o=t.slice(0,r),p=t.slice(r+1).trim();this.addHeaderEntry(o,p)}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((t,r)=>{this.addHeaderEntry(r,t)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([t,r])=>{this.setHeaderEntries(t,r)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof s?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){let t=new s;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof s?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){let t=e.name.toLowerCase();switch(e.op){case"a":case"s":let r=e.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(e.name,t);let o=(e.op==="a"?this.headers.get(t):void 0)||[];o.push(...r),this.headers.set(t,o);break;case"d":let p=e.value;if(!p)this.headers.delete(t),this.normalizedNames.delete(t);else{let i=this.headers.get(t);if(!i)return;i=i.filter(d=>p.indexOf(d)===-1),i.length===0?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,i)}break}}addHeaderEntry(e,t){let r=e.toLowerCase();this.maybeSetNormalizedName(e,r),this.headers.has(r)?this.headers.get(r).push(t):this.headers.set(r,[t])}setHeaderEntries(e,t){let r=(Array.isArray(t)?t:[t]).map(p=>p.toString()),o=e.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(e,o)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}};var re=class{encodeKey(e){return Oe(e)}encodeValue(e){return Oe(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function We(s,e){let t=new Map;return s.length>0&&s.replace(/^\?/,"").split("&").forEach(o=>{let p=o.indexOf("="),[i,d]=p==-1?[e.decodeKey(o),""]:[e.decodeKey(o.slice(0,p)),e.decodeValue(o.slice(p+1))],u=t.get(i)||[];u.push(d),t.set(i,u)}),t}var Xe=/%(\d[a-f0-9])/gi,Ye={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Oe(s){return encodeURIComponent(s).replace(Xe,(e,t)=>Ye[t]??e)}function J(s){return`${s}`}var k=class s{map;encoder;updates=null;cloneFrom=null;constructor(e={}){if(this.encoder=e.encoder||new re,e.fromString){if(e.fromObject)throw new w(2805,!1);this.map=We(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{let r=e.fromObject[t],o=Array.isArray(r)?r.map(J):[J(r)];this.map.set(t,o)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}appendAll(e){let t=[];return Object.keys(e).forEach(r=>{let o=e[r];Array.isArray(o)?o.forEach(p=>{t.push({param:r,value:p,op:"a"})}):t.push({param:r,value:o,op:"a"})}),this.clone(t)}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let t=this.encoder.encodeKey(e);return this.map.get(e).map(r=>t+"="+this.encoder.encodeValue(r)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let t=new s({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(e),t}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let t=(e.op==="a"?this.map.get(e.param):void 0)||[];t.push(J(e.value)),this.map.set(e.param,t);break;case"d":if(e.value!==void 0){let r=this.map.get(e.param)||[],o=r.indexOf(J(e.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(e.param,r):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var ie=class{map=new Map;set(e,t){return this.map.set(e,t),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function Qe(s){switch(s){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function De(s){return typeof ArrayBuffer<"u"&&s instanceof ArrayBuffer}function we(s){return typeof Blob<"u"&&s instanceof Blob}function Se(s){return typeof FormData<"u"&&s instanceof FormData}function Ze(s){return typeof URLSearchParams<"u"&&s instanceof URLSearchParams}var j="Content-Type",W="Accept",ae="X-Request-URL",Me="text/plain",Le="application/json",Fe=`${Le}, ${Me}, */*`,C=class s{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(e,t,r,o){this.url=t,this.method=e.toUpperCase();let p;if(Qe(this.method)||o?(this.body=r!==void 0?r:null,p=o):p=r,p&&(this.reportProgress=!!p.reportProgress,this.withCredentials=!!p.withCredentials,p.responseType&&(this.responseType=p.responseType),p.headers&&(this.headers=p.headers),p.context&&(this.context=p.context),p.params&&(this.params=p.params),this.transferCache=p.transferCache),this.headers??=new g,this.context??=new ie,!this.params)this.params=new k,this.urlWithParams=t;else{let i=this.params.toString();if(i.length===0)this.urlWithParams=t;else{let d=t.indexOf("?"),u=d===-1?"?":d<t.length-1?"&":"";this.urlWithParams=t+u+i}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||De(this.body)||we(this.body)||Se(this.body)||Ze(this.body)?this.body:this.body instanceof k?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||Se(this.body)?null:we(this.body)?this.body.type||null:De(this.body)?null:typeof this.body=="string"?Me:this.body instanceof k?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Le:null}clone(e={}){let t=e.method||this.method,r=e.url||this.url,o=e.responseType||this.responseType,p=e.transferCache??this.transferCache,i=e.body!==void 0?e.body:this.body,d=e.withCredentials??this.withCredentials,u=e.reportProgress??this.reportProgress,h=e.headers||this.headers,m=e.params||this.params,A=e.context??this.context;return e.setHeaders!==void 0&&(h=Object.keys(e.setHeaders).reduce((I,y)=>I.set(y,e.setHeaders[y]),h)),e.setParams&&(m=Object.keys(e.setParams).reduce((I,y)=>I.set(y,e.setParams[y]),m)),new s(t,r,i,{params:m,headers:h,context:A,reportProgress:u,responseType:o,withCredentials:d,transferCache:p})}},E=function(s){return s[s.Sent=0]="Sent",s[s.UploadProgress=1]="UploadProgress",s[s.ResponseHeader=2]="ResponseHeader",s[s.DownloadProgress=3]="DownloadProgress",s[s.Response=4]="Response",s[s.User=5]="User",s}(E||{}),_=class{headers;status;statusText;url;ok;type;constructor(e,t=200,r="OK"){this.headers=e.headers||new g,this.status=e.status!==void 0?e.status:t,this.statusText=e.statusText||r,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},X=class s extends _{constructor(e={}){super(e)}type=E.ResponseHeader;clone(e={}){return new s({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},z=class s extends _{body;constructor(e={}){super(e),this.body=e.body!==void 0?e.body:null}type=E.Response;clone(e={}){return new s({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},P=class extends _{name="HttpErrorResponse";message;error;ok=!1;constructor(e){super(e,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},je=200,He=204;function te(s,e){return{body:e,headers:s.headers,context:s.context,observe:s.observe,params:s.params,reportProgress:s.reportProgress,responseType:s.responseType,withCredentials:s.withCredentials,transferCache:s.transferCache}}var K=(()=>{class s{handler;constructor(t){this.handler=t}request(t,r,o={}){let p;if(t instanceof C)p=t;else{let u;o.headers instanceof g?u=o.headers:u=new g(o.headers);let h;o.params&&(o.params instanceof k?h=o.params:h=new k({fromObject:o.params})),p=new C(t,r,o.body!==void 0?o.body:null,{headers:u,context:o.context,params:h,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let i=L(p).pipe(be(u=>this.handler.handle(u)));if(t instanceof C||o.observe==="events")return i;let d=i.pipe(Ae(u=>u instanceof z));switch(o.observe||"body"){case"body":switch(p.responseType){case"arraybuffer":return d.pipe(B(u=>{if(u.body!==null&&!(u.body instanceof ArrayBuffer))throw new w(2806,!1);return u.body}));case"blob":return d.pipe(B(u=>{if(u.body!==null&&!(u.body instanceof Blob))throw new w(2807,!1);return u.body}));case"text":return d.pipe(B(u=>{if(u.body!==null&&typeof u.body!="string")throw new w(2808,!1);return u.body}));case"json":default:return d.pipe(B(u=>u.body))}case"response":return d;default:throw new w(2809,!1)}}delete(t,r={}){return this.request("DELETE",t,r)}get(t,r={}){return this.request("GET",t,r)}head(t,r={}){return this.request("HEAD",t,r)}jsonp(t,r){return this.request("JSONP",t,{params:new k().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,r={}){return this.request("OPTIONS",t,r)}patch(t,r,o={}){return this.request("PATCH",t,te(o,r))}post(t,r,o={}){return this.request("POST",t,te(o,r))}put(t,r,o={}){return this.request("PUT",t,te(o,r))}static \u0275fac=function(r){return new(r||s)(b(U))};static \u0275prov=R({token:s,factory:s.\u0275fac})}return s})(),et=/^\)\]\}',?\n/;function Ne(s){if(s.url)return s.url;let e=ae.toLocaleLowerCase();return s.headers.get(e)}var Ce=new V(""),se=(()=>{class s{fetchImpl=T(oe,{optional:!0})?.fetch??((...t)=>globalThis.fetch(...t));ngZone=T(Ve);handle(t){return new Z(r=>{let o=new AbortController;return this.doRequest(t,o.signal,r).then(ne,p=>r.error(new P({error:p}))),()=>o.abort()})}async doRequest(t,r,o){let p=this.createRequestInit(t),i;try{let y=this.ngZone.runOutsideAngular(()=>this.fetchImpl(t.urlWithParams,D({signal:r},p)));tt(y),o.next({type:E.Sent}),i=await y}catch(y){o.error(new P({error:y,status:y.status??0,statusText:y.statusText,url:t.urlWithParams,headers:y.headers}));return}let d=new g(i.headers),u=i.statusText,h=Ne(i)??t.urlWithParams,m=i.status,A=null;if(t.reportProgress&&o.next(new X({headers:d,status:m,statusText:u,url:h})),i.body){let y=i.headers.get("content-length"),G=[],c=i.body.getReader(),l=0,v,S,f=typeof Zone<"u"&&Zone.current;await this.ngZone.runOutsideAngular(async()=>{for(;;){let{done:O,value:M}=await c.read();if(O)break;if(G.push(M),l+=M.length,t.reportProgress){S=t.responseType==="text"?(S??"")+(v??=new TextDecoder).decode(M,{stream:!0}):void 0;let he=()=>o.next({type:E.DownloadProgress,total:y?+y:void 0,loaded:l,partialText:S});f?f.run(he):he()}}});let x=this.concatChunks(G,l);try{let O=i.headers.get(j)??"";A=this.parseBody(t,x,O)}catch(O){o.error(new P({error:O,headers:new g(i.headers),status:i.status,statusText:i.statusText,url:Ne(i)??t.urlWithParams}));return}}m===0&&(m=A?je:0),m>=200&&m<300?(o.next(new z({body:A,headers:d,status:m,statusText:u,url:h})),o.complete()):o.error(new P({error:A,headers:d,status:m,statusText:u,url:h}))}parseBody(t,r,o){switch(t.responseType){case"json":let p=new TextDecoder().decode(r).replace(et,"");return p===""?null:JSON.parse(p);case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:o});case"arraybuffer":return r.buffer}}createRequestInit(t){let r={},o=t.withCredentials?"include":void 0;if(t.headers.forEach((p,i)=>r[p]=i.join(",")),t.headers.has(W)||(r[W]=Fe),!t.headers.has(j)){let p=t.detectContentTypeHeader();p!==null&&(r[j]=p)}return{body:t.serializeBody(),method:t.method,headers:r,credentials:o}}concatChunks(t,r){let o=new Uint8Array(r),p=0;for(let i of t)o.set(i,p),p+=i.length;return o}static \u0275fac=function(r){return new(r||s)};static \u0275prov=R({token:s,factory:s.\u0275fac})}return s})(),oe=class{};function ne(){}function tt(s){s.then(ne,ne)}function st(s,e){return e(s)}function rt(s,e,t){return(r,o)=>ve(t,()=>e(r,p=>s(p,o)))}var pe=new V(""),it=new V(""),ot=new V("",{providedIn:"root",factory:()=>!0});var Ge=(()=>{class s extends U{backend;injector;chain=null;pendingTasks=T(Be);contributeToStability=T(ot);constructor(t,r){super(),this.backend=t,this.injector=r}handle(t){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(pe),...this.injector.get(it,[])]));this.chain=r.reduceRight((o,p)=>rt(o,p,this.injector),st)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(t,o=>this.backend.handle(o)).pipe(ge(()=>this.pendingTasks.remove(r)))}else return this.chain(t,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||s)(b(q),b(Te))};static \u0275prov=R({token:s,factory:s.\u0275fac})}return s})();var nt=/^\)\]\}',?\n/,at=RegExp(`^${ae}:`,"m");function pt(s){return"responseURL"in s&&s.responseURL?s.responseURL:at.test(s.getAllResponseHeaders())?s.getResponseHeader(ae):null}var xe=(()=>{class s{xhrFactory;constructor(t){this.xhrFactory=t}handle(t){if(t.method==="JSONP")throw new w(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?fe(r.\u0275loadImpl()):L(null)).pipe(F(()=>new Z(p=>{let i=r.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEach((c,l)=>i.setRequestHeader(c,l.join(","))),t.headers.has(W)||i.setRequestHeader(W,Fe),!t.headers.has(j)){let c=t.detectContentTypeHeader();c!==null&&i.setRequestHeader(j,c)}if(t.responseType){let c=t.responseType.toLowerCase();i.responseType=c!=="json"?c:"text"}let d=t.serializeBody(),u=null,h=()=>{if(u!==null)return u;let c=i.statusText||"OK",l=new g(i.getAllResponseHeaders()),v=pt(i)||t.url;return u=new X({headers:l,status:i.status,statusText:c,url:v}),u},m=()=>{let{headers:c,status:l,statusText:v,url:S}=h(),f=null;l!==He&&(f=typeof i.response>"u"?i.responseText:i.response),l===0&&(l=f?je:0);let x=l>=200&&l<300;if(t.responseType==="json"&&typeof f=="string"){let O=f;f=f.replace(nt,"");try{f=f!==""?JSON.parse(f):null}catch(M){f=O,x&&(x=!1,f={error:M,text:f})}}x?(p.next(new z({body:f,headers:c,status:l,statusText:v,url:S||void 0})),p.complete()):p.error(new P({error:f,headers:c,status:l,statusText:v,url:S||void 0}))},A=c=>{let{url:l}=h(),v=new P({error:c,status:i.status||0,statusText:i.statusText||"Unknown Error",url:l||void 0});p.error(v)},I=!1,y=c=>{I||(p.next(h()),I=!0);let l={type:E.DownloadProgress,loaded:c.loaded};c.lengthComputable&&(l.total=c.total),t.responseType==="text"&&i.responseText&&(l.partialText=i.responseText),p.next(l)},G=c=>{let l={type:E.UploadProgress,loaded:c.loaded};c.lengthComputable&&(l.total=c.total),p.next(l)};return i.addEventListener("load",m),i.addEventListener("error",A),i.addEventListener("timeout",A),i.addEventListener("abort",A),t.reportProgress&&(i.addEventListener("progress",y),d!==null&&i.upload&&i.upload.addEventListener("progress",G)),i.send(d),p.next({type:E.Sent}),()=>{i.removeEventListener("error",A),i.removeEventListener("abort",A),i.removeEventListener("load",m),i.removeEventListener("timeout",A),t.reportProgress&&(i.removeEventListener("progress",y),d!==null&&i.upload&&i.upload.removeEventListener("progress",G)),i.readyState!==i.DONE&&i.abort()}})))}static \u0275fac=function(r){return new(r||s)(b(Ie))};static \u0275prov=R({token:s,factory:s.\u0275fac})}return s})(),Ue=new V(""),ut="XSRF-TOKEN",dt=new V("",{providedIn:"root",factory:()=>ut}),ct="X-XSRF-TOKEN",lt=new V("",{providedIn:"root",factory:()=>ct}),Y=class{},ht=(()=>{class s{doc;platform;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(t,r,o){this.doc=t,this.platform=r,this.cookieName=o}getToken(){if(this.platform==="server")return null;let t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Ee(t,this.cookieName),this.lastCookieString=t),this.lastToken}static \u0275fac=function(r){return new(r||s)(b(ke),b(Pe),b(dt))};static \u0275prov=R({token:s,factory:s.\u0275fac})}return s})();function yt(s,e){let t=s.url.toLowerCase();if(!T(Ue)||s.method==="GET"||s.method==="HEAD"||t.startsWith("http://")||t.startsWith("https://"))return e(s);let r=T(Y).getToken(),o=T(lt);return r!=null&&!s.headers.has(o)&&(s=s.clone({headers:s.headers.set(o,r)})),e(s)}var ue=function(s){return s[s.Interceptors=0]="Interceptors",s[s.LegacyInterceptors=1]="LegacyInterceptors",s[s.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",s[s.NoXsrfProtection=3]="NoXsrfProtection",s[s.JsonpSupport=4]="JsonpSupport",s[s.RequestsMadeViaParent=5]="RequestsMadeViaParent",s[s.Fetch=6]="Fetch",s}(ue||{});function qe(s,e){return{\u0275kind:s,\u0275providers:e}}function es(...s){let e=[K,xe,Ge,{provide:U,useExisting:Ge},{provide:q,useFactory:()=>T(Ce,{optional:!0})??T(xe)},{provide:pe,useValue:yt,multi:!0},{provide:Ue,useValue:!0},{provide:Y,useClass:ht}];for(let t of s)e.push(...t.\u0275providers);return Re(e)}function ts(s){return qe(ue.Interceptors,s.map(e=>({provide:pe,useValue:e,multi:!0})))}function ss(){return qe(ue.Fetch,[se,{provide:Ce,useExisting:se},{provide:q,useExisting:se}])}var de=class{_fns;constructor(){this._fns=[]}eject(e){let t=this._fns.indexOf(e);t!==-1&&(this._fns=[...this._fns.slice(0,t),...this._fns.slice(t+1)])}use(e){this._fns=[...this._fns,e]}},n={BASE:"",CREDENTIALS:"include",ENCODE_PATH:void 0,HEADERS:void 0,PASSWORD:void 0,TOKEN:void 0,USERNAME:void 0,VERSION:"1",WITH_CREDENTIALS:!1,interceptors:{response:new de}};var N=class extends Error{url;status;statusText;body;request;constructor(e,t,r){super(r),this.name="ApiError",this.url=t.url,this.status=t.status,this.statusText=t.statusText,this.body=t.body,this.request=e}};var $=s=>typeof s=="string",ce=s=>$(s)&&s!=="",le=s=>s instanceof Blob,_e=s=>s instanceof FormData,mt=s=>{try{return btoa(s)}catch{return Buffer.from(s).toString("base64")}},At=s=>{let e=[],t=(o,p)=>{e.push(`${encodeURIComponent(o)}=${encodeURIComponent(String(p))}`)},r=(o,p)=>{p!=null&&(p instanceof Date?t(o,p.toISOString()):Array.isArray(p)?p.forEach(i=>r(o,i)):typeof p=="object"?Object.entries(p).forEach(([i,d])=>r(`${o}[${i}]`,d)):t(o,p))};return Object.entries(s).forEach(([o,p])=>r(o,p)),e.length?`?${e.join("&")}`:""},bt=(s,e)=>{let t=s.ENCODE_PATH||encodeURI,r=e.url.replace("{api-version}",s.VERSION).replace(/{(.*?)}/g,(p,i)=>e.path?.hasOwnProperty(i)?t(String(e.path[i])):p),o=s.BASE+r;return e.query?o+At(e.query):o},gt=s=>{if(s.formData){let e=new FormData,t=(r,o)=>{$(o)||le(o)?e.append(r,o):e.append(r,JSON.stringify(o))};return Object.entries(s.formData).filter(([,r])=>r!=null).forEach(([r,o])=>{Array.isArray(o)?o.forEach(p=>t(r,p)):t(r,o)}),e}},Q=async(s,e)=>typeof e=="function"?e(s):e,Rt=(s,e)=>me({token:Q(e,s.TOKEN),username:Q(e,s.USERNAME),password:Q(e,s.PASSWORD),additionalHeaders:Q(e,s.HEADERS)}).pipe(B(({token:t,username:r,password:o,additionalHeaders:p})=>{let i=Object.entries(D(D({Accept:"application/json"},p),e.headers)).filter(([,d])=>d!=null).reduce((d,[u,h])=>ye(D({},d),{[u]:String(h)}),{});if(ce(t)&&(i.Authorization=`Bearer ${t}`),ce(r)&&ce(o)){let d=mt(`${r}:${o}`);i.Authorization=`Basic ${d}`}return e.body!==void 0&&(e.mediaType?i["Content-Type"]=e.mediaType:le(e.body)?i["Content-Type"]=e.body.type||"application/octet-stream":$(e.body)?i["Content-Type"]="text/plain":_e(e.body)||(i["Content-Type"]="application/json")),new g(i)})),Tt=s=>{if(s.body)return s.mediaType?.includes("application/json")||s.mediaType?.includes("+json")?JSON.stringify(s.body):$(s.body)||le(s.body)||_e(s.body)?s.body:JSON.stringify(s.body)},vt=(s,e,t,r,o,p,i)=>t.request(e.method,r,{headers:i,body:o??p,withCredentials:s.WITH_CREDENTIALS,observe:"response"}),Bt=(s,e)=>{if(e){let t=s.headers.get(e);if($(t))return t}},Vt=s=>{if(s.status!==204&&s.body!==null)return s.body},Pt=(s,e)=>{let r=D({400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"Im a teapot",421:"Misdirected Request",422:"Unprocessable Content",423:"Locked",424:"Failed Dependency",425:"Too Early",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",510:"Not Extended",511:"Network Authentication Required"},s.errors)[e.status];if(r)throw new N(s,e,r);if(!e.ok){let o=e.status??"unknown",p=e.statusText??"unknown",i=(()=>{try{return JSON.stringify(e.body,null,2)}catch{return}})();throw new N(s,e,`Generic Error: status: ${o}; status text: ${p}; body: ${i}`)}},a=(s,e,t)=>{let r=bt(s,t),o=gt(t),p=Tt(t);return Rt(s,t).pipe(F(i=>vt(s,t,e,r,p,o,i)),F(async i=>{for(let m of s.interceptors.response._fns)i=await m(i);let d=Vt(i),u=Bt(i,t.responseHeader),h=d;return t.responseTransformer&&i.ok&&(h=await t.responseTransformer(d)),{url:r,ok:i.ok,status:i.status,statusText:i.statusText,body:u??h}}),ee(i=>i.status?L({url:r,ok:i.ok,status:i.status,statusText:i.statusText,body:i.error??i.statusText}):H(()=>i)),B(i=>(Pt(t,i),i.body)),ee(i=>H(()=>i)))};var ze=class s{constructor(e){this.http=e}getApiV1Commandline(){return a(n,this.http,{method:"GET",url:"/api/v1/commandline"})}static \u0275fac=function(t){return new(t||s)(b(K))};static \u0275prov=R({token:s,factory:s.\u0275fac,providedIn:"root"})},Ke=class s{constructor(e){this.http=e}postApiV1Commandline(e){return a(n,this.http,{method:"POST",url:"/api/v1/commandline",body:e.requestBody,mediaType:"application/json"})}getApiV1Acknowledgements(){return a(n,this.http,{method:"GET",url:"/api/v1/acknowledgements"})}postApiV1AuthRefresh(){return a(n,this.http,{method:"POST",url:"/api/v1/auth/refresh"})}postApiV1AuthSignin(e){return a(n,this.http,{method:"POST",url:"/api/v1/auth/signin",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthLogin(e){return a(n,this.http,{method:"POST",url:"/api/v1/auth/login",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthIssuesignintoken(e){return a(n,this.http,{method:"POST",url:"/api/v1/auth/issuesignintoken",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthRefreshLogout(){return a(n,this.http,{method:"POST",url:"/api/v1/auth/refresh/logout"})}postApiV1AuthIssuetokenByOperation(e){return a(n,this.http,{method:"POST",url:"/api/v1/auth/issuetoken/{operation}",path:{operation:e.operation}})}postApiV1AuthIssueForeverToken(){return a(n,this.http,{method:"POST",url:"/api/v1/auth/issue-forever-token"})}getApiV1Backupdefaults(){return a(n,this.http,{method:"GET",url:"/api/v1/backupdefaults"})}getApiV1Backups(e={}){return a(n,this.http,{method:"GET",url:"/api/v1/backups",query:{orderBy:e.orderBy}})}postApiV1Backups(e){return a(n,this.http,{method:"POST",url:"/api/v1/backups",query:{temporary:e.temporary,existingdb:e.existingdb},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupsImport(e){return a(n,this.http,{method:"POST",url:"/api/v1/backups/import",body:e.requestBody,mediaType:"application/json"})}getApiV1BugreportByReportid(e){return a(n,this.http,{method:"GET",url:"/api/v1/bugreport/{reportid}",path:{reportid:e.reportid},query:{token:e.token}})}getApiV1Changelog(e={}){return a(n,this.http,{method:"GET",url:"/api/v1/changelog",query:{"from-update":e.fromUpdate}})}getApiV1CommandlineByRunid(e){return a(n,this.http,{method:"GET",url:"/api/v1/commandline/{runid}",path:{runid:e.runid},query:{offset:e.offset,pagesize:e.pagesize}})}postApiV1CommandlineByRunidAbort(e){return a(n,this.http,{method:"POST",url:"/api/v1/commandline/{runid}/abort",path:{runid:e.runid}})}postApiV1Filesystem(e){return a(n,this.http,{method:"POST",url:"/api/v1/filesystem",query:{onlyFolders:e.onlyFolders,showHidden:e.showHidden},body:e.requestBody,mediaType:"application/json"})}postApiV1FilesystemValidate(e){return a(n,this.http,{method:"POST",url:"/api/v1/filesystem/validate",body:e.requestBody,mediaType:"application/json"})}getApiV1Hyperv(){return a(n,this.http,{method:"GET",url:"/api/v1/hyperv"})}getApiV1HypervByKey(e){return a(n,this.http,{method:"GET",url:"/api/v1/hyperv/{key}",path:{key:e.key}})}getApiV1Licenses(){return a(n,this.http,{method:"GET",url:"/api/v1/licenses"})}getApiV1LogdataPoll(e){return a(n,this.http,{method:"GET",url:"/api/v1/logdata/poll",query:{level:e.level,id:e.id,pagesize:e.pagesize}})}getApiV1LogdataLog(e={}){return a(n,this.http,{method:"GET",url:"/api/v1/logdata/log",query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1LogdataCrashlog(){return a(n,this.http,{method:"GET",url:"/api/v1/logdata/crashlog"})}getApiV1Mssql(){return a(n,this.http,{method:"GET",url:"/api/v1/mssql"})}getApiV1MssqlByKey(e){return a(n,this.http,{method:"GET",url:"/api/v1/mssql/{key}",path:{key:e.key}})}getApiV1NotificationById(e){return a(n,this.http,{method:"GET",url:"/api/v1/notification/{id}",path:{id:e.id}})}deleteApiV1NotificationById(e){return a(n,this.http,{method:"DELETE",url:"/api/v1/notification/{id}",path:{id:e.id}})}getApiV1Notifications(){return a(n,this.http,{method:"GET",url:"/api/v1/notifications"})}getApiV1Progressstate(){return a(n,this.http,{method:"GET",url:"/api/v1/progressstate"})}getApiV1RemotecontrolStatus(){return a(n,this.http,{method:"GET",url:"/api/v1/remotecontrol/status"})}postApiV1RemoteoperationDbpath(e){return a(n,this.http,{method:"POST",url:"/api/v1/remoteoperation/dbpath",body:e.requestBody,mediaType:"application/json"})}postApiV1RemoteoperationTest(e){return a(n,this.http,{method:"POST",url:"/api/v1/remoteoperation/test",query:{autocreate:e.autocreate},body:e.requestBody,mediaType:"application/json"})}postApiV1RemoteoperationCreate(e){return a(n,this.http,{method:"POST",url:"/api/v1/remoteoperation/create",body:e.requestBody,mediaType:"application/json"})}getApiV1Serversettings(){return a(n,this.http,{method:"GET",url:"/api/v1/serversettings"})}patchApiV1Serversettings(e){return a(n,this.http,{method:"PATCH",url:"/api/v1/serversettings",body:e.requestBody,mediaType:"application/json"})}getApiV1ServersettingByKey(e){return a(n,this.http,{method:"GET",url:"/api/v1/serversetting/{key}",path:{key:e.key}})}putApiV1ServersettingByKey(e){return a(n,this.http,{method:"PUT",url:"/api/v1/serversetting/{key}",path:{key:e.key},body:e.requestBody,mediaType:"application/json"})}getApiV1Serverstate(e={}){return a(n,this.http,{method:"GET",url:"/api/v1/serverstate",query:{lastEventId:e.lastEventId,longpoll:e.longpoll,duration:e.duration}})}postApiV1ServerstatePause(e={}){return a(n,this.http,{method:"POST",url:"/api/v1/serverstate/pause",query:{duration:e.duration,pauseTransfers:e.pauseTransfers}})}postApiV1ServerstateResume(){return a(n,this.http,{method:"POST",url:"/api/v1/serverstate/resume"})}getApiV1Systeminfo(){return a(n,this.http,{method:"GET",url:"/api/v1/systeminfo"})}getApiV1SysteminfoFiltergroups(){return a(n,this.http,{method:"GET",url:"/api/v1/systeminfo/filtergroups"})}getApiV1Tasks(){return a(n,this.http,{method:"GET",url:"/api/v1/tasks"})}getApiV1TaskByTaskid(e){return a(n,this.http,{method:"GET",url:"/api/v1/task/{taskid}",path:{taskid:e.taskid}})}postApiV1TaskByTaskidStop(e){return a(n,this.http,{method:"POST",url:"/api/v1/task/{taskid}/stop",path:{taskid:e.taskid}})}postApiV1TaskByTaskidAbort(e){return a(n,this.http,{method:"POST",url:"/api/v1/task/{taskid}/abort",path:{taskid:e.taskid}})}getApiV1Uisettings(){return a(n,this.http,{method:"GET",url:"/api/v1/uisettings"})}postApiV1Uisettings(e){return a(n,this.http,{method:"POST",url:"/api/v1/uisettings",body:e.requestBody,mediaType:"application/json"})}getApiV1UisettingsByScheme(e){return a(n,this.http,{method:"GET",url:"/api/v1/uisettings/{scheme}",path:{scheme:e.scheme}})}patchApiV1UisettingsByScheme(e){return a(n,this.http,{method:"PATCH",url:"/api/v1/uisettings/{scheme}",path:{scheme:e.scheme},body:e.requestBody,mediaType:"application/json"})}postApiV1UpdatesCheck(){return a(n,this.http,{method:"POST",url:"/api/v1/updates/check"})}postApiV1WebmoduleByModulekey(e){return a(n,this.http,{method:"POST",url:"/api/v1/webmodule/{modulekey}",path:{modulekey:e.modulekey},body:e.requestBody,mediaType:"application/json"})}getApiV1BackupById(e){return a(n,this.http,{method:"GET",url:"/api/v1/backup/{id}",path:{id:e.id}})}putApiV1BackupById(e){return a(n,this.http,{method:"PUT",url:"/api/v1/backup/{id}",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}deleteApiV1BackupById(e){return a(n,this.http,{method:"DELETE",url:"/api/v1/backup/{id}",path:{id:e.id},query:{"delete-remote-files":e.deleteRemoteFiles,"delete-local-db":e.deleteLocalDb,force:e.force}})}getApiV1BackupByIdFiles(e){return a(n,this.http,{method:"GET",url:"/api/v1/backup/{id}/files",path:{id:e.id},query:{filter:e.filter,time:e.time,"all-versions":e.allVersions,"prefix-only":e.prefixOnly,"folder-contents":e.folderContents}})}getApiV1BackupByIdLog(e){return a(n,this.http,{method:"GET",url:"/api/v1/backup/{id}/log",path:{id:e.id},query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1BackupByIdRemotelog(e){return a(n,this.http,{method:"GET",url:"/api/v1/backup/{id}/remotelog",path:{id:e.id},query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1BackupByIdFilesets(e){return a(n,this.http,{method:"GET",url:"/api/v1/backup/{id}/filesets",path:{id:e.id},query:{"include-metadata":e.includeMetadata,"from-remote-only":e.fromRemoteOnly}})}getApiV1BackupByIdExportArgsonly(e){return a(n,this.http,{method:"GET",url:"/api/v1/backup/{id}/export-argsonly",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase}})}getApiV1BackupByIdExportCmdline(e){return a(n,this.http,{method:"GET",url:"/api/v1/backup/{id}/export-cmdline",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase}})}getApiV1BackupByIdExport(e){return a(n,this.http,{method:"GET",url:"/api/v1/backup/{id}/export",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase,token:e.token}})}getApiV1BackupByIdIsdbusedelsewhere(e){return a(n,this.http,{method:"GET",url:"/api/v1/backup/{id}/isdbusedelsewhere",path:{id:e.id}})}getApiV1BackupByIdIsactive(e){return a(n,this.http,{method:"GET",url:"/api/v1/backup/{id}/isactive",path:{id:e.id}})}postApiV1BackupByIdDeletedb(e){return a(n,this.http,{method:"POST",url:"/api/v1/backup/{id}/deletedb",path:{id:e.id}})}postApiV1BackupByIdMovedb(e){return a(n,this.http,{method:"POST",url:"/api/v1/backup/{id}/movedb",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdUpdatedb(e){return a(n,this.http,{method:"POST",url:"/api/v1/backup/{id}/updatedb",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdRestore(e){return a(n,this.http,{method:"POST",url:"/api/v1/backup/{id}/restore",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdCreatereport(e){return a(n,this.http,{method:"POST",url:"/api/v1/backup/{id}/createreport",path:{id:e.id}})}postApiV1BackupByIdRepair(e){return a(n,this.http,{method:"POST",url:"/api/v1/backup/{id}/repair",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdRepairupdate(e){return a(n,this.http,{method:"POST",url:"/api/v1/backup/{id}/repairupdate",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdVacuum(e){return a(n,this.http,{method:"POST",url:"/api/v1/backup/{id}/vacuum",path:{id:e.id}})}postApiV1BackupByIdVerify(e){return a(n,this.http,{method:"POST",url:"/api/v1/backup/{id}/verify",path:{id:e.id}})}postApiV1BackupByIdCompact(e){return a(n,this.http,{method:"POST",url:"/api/v1/backup/{id}/compact",path:{id:e.id}})}postApiV1BackupByIdStart(e){return a(n,this.http,{method:"POST",url:"/api/v1/backup/{id}/start",path:{id:e.id},query:{skipQueue:e.skipQueue}})}postApiV1BackupByIdRun(e){return a(n,this.http,{method:"POST",url:"/api/v1/backup/{id}/run",path:{id:e.id},query:{skipQueue:e.skipQueue}})}postApiV1BackupByIdReportRemoteSize(e){return a(n,this.http,{method:"POST",url:"/api/v1/backup/{id}/report-remote-size",path:{id:e.id}})}postApiV1BackupByIdCopytotemp(e){return a(n,this.http,{method:"POST",url:"/api/v1/backup/{id}/copytotemp",path:{id:e.id}})}postApiV1RemotecontrolEnable(){return a(n,this.http,{method:"POST",url:"/api/v1/remotecontrol/enable"})}postApiV1RemotecontrolDisable(){return a(n,this.http,{method:"POST",url:"/api/v1/remotecontrol/disable"})}deleteApiV1RemotecontrolRegistration(){return a(n,this.http,{method:"DELETE",url:"/api/v1/remotecontrol/registration"})}postApiV1RemotecontrolRegister(e){return a(n,this.http,{method:"POST",url:"/api/v1/remotecontrol/register",body:e.requestBody,mediaType:"application/json"})}deleteApiV1RemotecontrolRegister(){return a(n,this.http,{method:"DELETE",url:"/api/v1/remotecontrol/register"})}postApiV2BackupListFilesets(e){return a(n,this.http,{method:"POST",url:"/api/v2/backup/list-filesets",body:e.requestBody,mediaType:"application/json"})}postApiV2BackupListFolder(e){return a(n,this.http,{method:"POST",url:"/api/v2/backup/list-folder",body:e.requestBody,mediaType:"application/json"})}postApiV2BackupListVersions(e){return a(n,this.http,{method:"POST",url:"/api/v2/backup/list-versions",body:e.requestBody,mediaType:"application/json"})}postApiV2BackupSearch(e){return a(n,this.http,{method:"POST",url:"/api/v2/backup/search",body:e.requestBody,mediaType:"application/json"})}postApiV2DestinationTest(e){return a(n,this.http,{method:"POST",url:"/api/v2/destination/test",body:e.requestBody,mediaType:"application/json"})}static \u0275fac=function(t){return new(t||s)(b(K))};static \u0275prov=R({token:s,factory:s.\u0275fac,providedIn:"root"})},$e=class s{constructor(e){this.http=e}getApiV1Webmodules(){return a(n,this.http,{method:"GET",url:"/api/v1/webmodules"})}static \u0275fac=function(t){return new(t||s)(b(K))};static \u0275prov=R({token:s,factory:s.\u0275fac,providedIn:"root"})};export{g as a,z as b,K as c,es as d,ts as e,ss as f,ze as g,Ke as h,$e as i};