@duplicati/ngclient 0.0.75 → 0.0.79

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 (99) hide show
  1. package/assets/spk-bold.woff2 +0 -0
  2. package/assets/spk.css +52 -1
  3. package/chunk-233ZLAAE.js +1 -0
  4. package/chunk-2K3CR66C.js +1 -0
  5. package/{chunk-GUYLCNVM.js → chunk-2U3FDBUK.js} +1 -1
  6. package/{chunk-MYVJZFYR.js → chunk-4OE5GJEY.js} +1 -1
  7. package/chunk-4YLHRMHU.js +1 -0
  8. package/chunk-6SIZVSDW.js +2 -0
  9. package/{chunk-75LRDDG3.js → chunk-76NKH7M2.js} +1 -1
  10. package/chunk-7KWOTSVE.js +1 -0
  11. package/{chunk-VYEOCR5P.js → chunk-7WKWA7QK.js} +1 -1
  12. package/chunk-7ZJVPVCQ.js +1 -0
  13. package/{chunk-VKMKZKNR.js → chunk-BM4SNLLS.js} +1 -1
  14. package/chunk-CD2B55TH.js +1 -0
  15. package/{chunk-FCPUMFVG.js → chunk-CS4VRCLU.js} +1 -1
  16. package/{chunk-VJQDP23H.js → chunk-CZ3SCRNE.js} +1 -1
  17. package/{chunk-CAGBL2MP.js → chunk-EGT5S7A4.js} +1 -1
  18. package/{chunk-GJ6GRAEW.js → chunk-FOHDLUCC.js} +1 -1
  19. package/chunk-FZNTP67Z.js +1 -0
  20. package/chunk-GTXOAJP6.js +1 -0
  21. package/chunk-HSEKUB7W.js +1 -0
  22. package/{chunk-BH76PDAQ.js → chunk-HX66OULG.js} +1 -1
  23. package/{chunk-RBVR4WTJ.js → chunk-IN72UOWN.js} +1 -1
  24. package/chunk-IZCX3KB3.js +1 -0
  25. package/{chunk-C6ELLTE3.js → chunk-JMQCQ5DN.js} +1 -1
  26. package/chunk-JOBMLOGZ.js +1 -0
  27. package/chunk-JZFEEATO.js +1 -0
  28. package/{chunk-BY56DZ7Y.js → chunk-K5WD7D64.js} +1 -1
  29. package/{chunk-MO2Z6B4L.js → chunk-KAGR24YW.js} +1 -1
  30. package/{chunk-ANP5WEOJ.js → chunk-KPP5HW6S.js} +1 -1
  31. package/{chunk-UJWW7PS7.js → chunk-LFQXDL42.js} +1 -1
  32. package/chunk-LPGLGZ3U.js +1 -0
  33. package/{chunk-6CRYB4HA.js → chunk-MHZPUJQF.js} +1 -1
  34. package/{chunk-HSJOAC3M.js → chunk-MWJ2FIZF.js} +1 -1
  35. package/{chunk-2QQJM43S.js → chunk-N4ZZA3JQ.js} +1 -1
  36. package/{chunk-OW3MZ4H6.js → chunk-NHJBFOCX.js} +1 -1
  37. package/{chunk-KYQC46J2.js → chunk-NRGTIGVX.js} +1 -1
  38. package/chunk-NVTD7IP4.js +1 -0
  39. package/{chunk-22GS6UCG.js → chunk-PTG2C2YJ.js} +1 -1
  40. package/chunk-QDAWQNBQ.js +7 -0
  41. package/{chunk-WC5LGG33.js → chunk-QFULFMSU.js} +1 -1
  42. package/chunk-RABUX7PS.js +6 -0
  43. package/chunk-S7IEXZZK.js +1 -0
  44. package/{chunk-4RXB65JX.js → chunk-SRMNNICE.js} +1 -1
  45. package/{chunk-6UCUDY7Y.js → chunk-TFFQHLQK.js} +1 -1
  46. package/chunk-TL325ZMY.js +1 -0
  47. package/{chunk-KJ4O6F3R.js → chunk-TQE7OBBP.js} +1 -1
  48. package/chunk-TQIMA3N7.js +1 -0
  49. package/{chunk-5KGMNBD7.js → chunk-UBEY6W6N.js} +1 -1
  50. package/{chunk-GK7T43YY.js → chunk-US4WRUST.js} +1 -1
  51. package/chunk-WFFJ2OJB.js +1 -0
  52. package/chunk-XAAJBERP.js +1 -0
  53. package/chunk-XCKJXWMS.js +1 -0
  54. package/{chunk-Z5NZYMJN.js → chunk-XFRVNXF6.js} +1 -1
  55. package/chunk-XLU5TCBE.js +1 -0
  56. package/chunk-XMGHFJW7.js +1 -0
  57. package/{chunk-O6RVMQZJ.js → chunk-XS2FYREZ.js} +1 -1
  58. package/{chunk-BEBLA2OU.js → chunk-YB5LG22R.js} +1 -1
  59. package/chunk-YUZINGR7.js +3 -0
  60. package/{chunk-H7TJZPPJ.js → chunk-Z5FVTSXP.js} +1 -1
  61. package/{chunk-RHYWPAMY.js → chunk-ZGTFPEDW.js} +1 -1
  62. package/{chunk-6TZWRTRA.js → chunk-ZOMDTRAX.js} +1 -1
  63. package/chunk-ZRPJ3QZT.js +1 -0
  64. package/{chunk-B2WGFVBU.js → chunk-ZSCSUQR3.js} +1 -1
  65. package/{chunk-L5ZZZJEY.js → chunk-ZVCXBMGJ.js} +1 -1
  66. package/index.html +2 -2
  67. package/main-2MESDK56.js +1 -0
  68. package/package.json +1 -1
  69. package/styles-KC6U2UBP.css +1 -0
  70. package/assets/spk.woff2 +0 -0
  71. package/chunk-27WZKWHA.js +0 -1
  72. package/chunk-3WKDD2IN.js +0 -1
  73. package/chunk-44756Q4J.js +0 -1
  74. package/chunk-47W7PRQ6.js +0 -1
  75. package/chunk-4KMNVH5V.js +0 -1
  76. package/chunk-4U7FEVBB.js +0 -6
  77. package/chunk-56COR7JJ.js +0 -1
  78. package/chunk-6JYRURGN.js +0 -1
  79. package/chunk-6LUM2XU4.js +0 -2
  80. package/chunk-6UENVGZZ.js +0 -1
  81. package/chunk-AVE4TFNY.js +0 -1
  82. package/chunk-BATRQ3TX.js +0 -1
  83. package/chunk-BRC25F45.js +0 -1
  84. package/chunk-BZKHWYFG.js +0 -1
  85. package/chunk-D6FCW3QQ.js +0 -1
  86. package/chunk-EIXQH7S4.js +0 -3
  87. package/chunk-ETEYALHD.js +0 -1
  88. package/chunk-GDAK2UGG.js +0 -1
  89. package/chunk-JRIOZ5MP.js +0 -1
  90. package/chunk-JZCJ723Q.js +0 -1
  91. package/chunk-JZQC7RPU.js +0 -1
  92. package/chunk-MLTG5TKC.js +0 -1
  93. package/chunk-NQVULKI2.js +0 -1
  94. package/chunk-Q3JJWGXW.js +0 -7
  95. package/chunk-R7TYMWSG.js +0 -1
  96. package/chunk-TS4YY2WO.js +0 -1
  97. package/chunk-YBPSOGY5.js +0 -1
  98. package/main-LMBIECYV.js +0 -1
  99. package/styles-CDWBWJYO.css +0 -1
Binary file
package/assets/spk.css CHANGED
@@ -1,4 +1,37 @@
1
1
 
2
+
3
+ @font-face {
4
+ font-family: 'spk-bold';
5
+ src: url('./spk-bold.woff2') format('woff2');
6
+ font-weight: normal;
7
+ font-style: normal;
8
+ font-display: block;
9
+ }
10
+
11
+ @font-face {
12
+ font-family: 'spk-thin';
13
+ src: url('./spk-thin.woff2') format('woff2');
14
+ font-weight: normal;
15
+ font-style: normal;
16
+ font-display: block;
17
+ }
18
+
19
+ @font-face {
20
+ font-family: 'spk-light';
21
+ src: url('./spk-light.woff2') format('woff2');
22
+ font-weight: normal;
23
+ font-style: normal;
24
+ font-display: block;
25
+ }
26
+
27
+ @font-face {
28
+ font-family: 'spk-fill';
29
+ src: url('./spk-fill.woff2') format('woff2');
30
+ font-weight: normal;
31
+ font-style: normal;
32
+ font-display: block;
33
+ }
34
+
2
35
  @font-face {
3
36
  font-family: 'spk';
4
37
  src: url('./spk.woff2') format('woff2');
@@ -7,6 +40,24 @@
7
40
  font-display: block;
8
41
  }
9
42
 
43
+
44
+ spk-icon.bold {
45
+ font-family: 'spk-bold' !important;
46
+ }
47
+
48
+ spk-icon.thin {
49
+ font-family: 'spk-thin' !important;
50
+ }
51
+
52
+ spk-icon.light {
53
+ font-family: 'spk-light' !important;
54
+ }
55
+
56
+ spk-icon.fill {
57
+ font-family: 'spk-fill' !important;
58
+ }
59
+
60
+
10
61
  spk-icon {
11
62
  /* use !important to prevent issues with browser extensions that change fonts */
12
63
  font-family: "spk" !important;
@@ -30,4 +81,4 @@ spk-icon {
30
81
  /* Better Font Rendering =========== */
31
82
  -webkit-font-smoothing: antialiased;
32
83
  -moz-osx-font-smoothing: grayscale;
33
- }
84
+ }
@@ -0,0 +1 @@
1
+ import{o as Ge}from"./chunk-RABUX7PS.js";import{a as Wt}from"./chunk-NRGTIGVX.js";import{a as Kt}from"./chunk-EGT5S7A4.js";import"./chunk-DNHLTHLR.js";import{a as Ae,b as te}from"./chunk-MHZPUJQF.js";import{a as ye}from"./chunk-KPP5HW6S.js";import{a as ce}from"./chunk-PTG2C2YJ.js";import{a as jt}from"./chunk-CS4VRCLU.js";import"./chunk-XFRVNXF6.js";import{a as bt}from"./chunk-SRMNNICE.js";import{a as Ht}from"./chunk-TQIMA3N7.js";import"./chunk-Z5FVTSXP.js";import"./chunk-FOHDLUCC.js";import"./chunk-7KWOTSVE.js";import"./chunk-ZOMDTRAX.js";import{a as Dt,b as j,d as H,e as de,g as me,h as ue,i as Vt,l as Se,m as ge,o as Te,p as fe,q as Ce,r as Ee}from"./chunk-LFQXDL42.js";import"./chunk-2K3CR66C.js";import{b}from"./chunk-TQE7OBBP.js";import"./chunk-ZRPJ3QZT.js";import"./chunk-NVTD7IP4.js";import{a as Ne,b as Lt,g as he,i as Xt,k as zt,l as W,n as Bt,o as Ut,p as qt,r as Oe,s as Me,x as Pe,y as Ie}from"./chunk-IZCX3KB3.js";import"./chunk-6SIZVSDW.js";import"./chunk-JOBMLOGZ.js";import"./chunk-US4WRUST.js";import{Ab as A,Ac as $t,Bb as G,Cb as r,D as we,Db as o,E as x,Eb as f,Fb as le,Gb as _e,Hb as yt,Ib as O,L as D,Mc as k,Nc as kt,Ob as B,Oc as q,Pa as Ot,Pb as U,Qb as _,Ra as s,Rb as Y,S as ae,Sb as ee,Tb as pe,Ub as u,Vb as l,Y as N,Ya as Mt,Yb as v,_b as h,aa as Ct,b as St,ba as Et,c as se,da as C,ea as E,eb as z,ec as Rt,fc as Ft,gc as vt,hc as c,ia as Nt,ic as $,jc as P,k as gt,kb as T,l as Z,mc as V,n as Tt,nc as L,oc as X,p as ft,q as ve,qb as Pt,rb as It,sc as wt,ta as ht,tb as m,tc as At,ua as g,uc as Gt,vb as I,vc as xt,y as J,yb as S,zb as w}from"./chunk-QDAWQNBQ.js";import"./chunk-C6Q5SG76.js";function Qt(i,n,e){!n&&Et(i);let t=n??N(Nt);return e?Ct(t,e):t}function xe(...i){let{normalizedSources:n,hasInitValue:e,operator:t,options:a}=tn(i),p=Qt(xe,a?.injector);return e?te(ve(n).pipe(t),{initialValue:a.initialValue,injector:p}):te(ve(n).pipe(t),{injector:p,requireSync:!0})}function tn(i){if(!i||!i.length||typeof i[0]!="object")throw new TypeError("derivedFrom needs sources");let n=typeof i[1]=="function";if(i.length==3&&!n)throw new TypeError("derivedFrom needs pipeable operator as a second argument");n||i.splice(1,0,St);let[e,t,a]=i,p=!!a&&"initialValue"in a;return{normalizedSources:Object.entries(e).reduce((y,[M,R])=>{if(ht(R))y[M]=Ae(R,{injector:a?.injector}).pipe(D(kt(R)));else if(Tt(R))y[M]=R.pipe(we());else if(typeof R=="function"){let oe=k(R);y[M]=Ae(oe,{injector:a?.injector}).pipe(D(R()))}else y[M]=gt(R).pipe(we());return y},Array.isArray(e)?[]:{}),operator:t,hasInitValue:p,options:a}}var K=class i{#e=N(b);#i=te(this.#e.getApiV1Serversettings());#t=g(void 0);serverSettings=k(()=>this.#t()||this.#i());refreshServerSettings(){this.#e.getApiV1Serversettings().subscribe({next:n=>{this.#t.set(n)}})}withRefresh(){return se(x(()=>this.refreshServerSettings()))}static \u0275fac=function(e){return new(e||i)};static \u0275prov=ae({token:i,factory:i.\u0275fac,providedIn:"root"})};var nn=["formRef"],on=()=>[import("./chunk-4OE5GJEY.js").then(i=>i.NgTemplateOutlet)],rn=(i,n)=>({index:i,formView:n,formGroupName:"advancedOptions",destinationType:null,oauthField:null}),sn=i=>({$implicit:i});function an(i,n){if(i&1){let e=O();B(0,3,1),r(1,"button",13,2),u("click",function(){let a=C(e).$implicit,p=l();return E(p.addNewOption(a))}),o(),U()}if(i&2){let e=n.$implicit;s(),Y(e.name),ee(0)}}function ln(i,n){i&1&&yt(0)}function _n(i,n){if(i&1&&T(0,ln,1,0,"ng-container",14),i&2){let e=n.$implicit,t=n.$index;l(2);let a=vt(15);m("ngTemplateOutlet",a)("ngTemplateOutletContext",Gt(5,sn,xt(2,rn,t,e)))}}function pn(i,n){if(i&1&&A(0,_n,1,7,"ng-container",null,w),i&2){let e=l();G(e.selectedOptions())}}function cn(i,n){if(i&1&&(r(0,"spk-tooltip",24)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;m("message",e.formView.longDescription)}}function dn(i,n){if(i&1&&(r(0,"app-file-tree",17)(1,"label",23),c(2),T(3,cn,3,1,"spk-tooltip",24),o(),f(4,"input",25),o()),i&2){let e,t=l().$implicit,a=l();m("startingPath",a.getFormFieldValue(0,t.formGroupName,t.formView.name))("accepts",t.formView.accepts)("showFiles",!0)("showHiddenNodes",!0)("selectFiles",!0),s(),h("for","destination-",t.formGroupName,"-",t.index,""),s(),P(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),s(),S(t.formView.longDescription?3:-1),s(),h("id","destination-",t.formGroupName,"-",t.index,""),v("formControlName",t.formView.name)}}function mn(i,n){if(i&1&&(r(0,"spk-tooltip",24)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;m("message",e.formView.longDescription)}}function un(i,n){if(i&1&&(r(0,"app-file-tree",18)(1,"label",23),c(2),T(3,mn,3,1,"spk-tooltip",24),o(),f(4,"input",25),o()),i&2){let e,t=l().$implicit,a=l();m("startingPath",a.getFormFieldValue(0,t.formGroupName,t.formView.name)),s(),h("for","destination-",t.formGroupName,"-",t.index,""),s(),P(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),s(),S(t.formView.longDescription?3:-1),s(),h("id","destination-",t.formGroupName,"-",t.index,""),v("formControlName",t.formView.name)}}function Sn(i,n){if(i&1&&(r(0,"spk-tooltip",24)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;m("message",e.formView.longDescription)}}function gn(i,n){i&1&&(r(0,"spk-icon",26),c(1,"link"),o())}function Tn(i,n){i&1&&(r(0,"spk-icon",26),c(1,"textbox"),o())}function fn(i,n){if(i&1&&(r(0,"spk-form-field")(1,"label",23),c(2),T(3,Sn,3,1,"spk-tooltip",24),o(),f(4,"input",25),T(5,gn,2,0,"spk-icon",26)(6,Tn,2,0,"spk-icon",26),o()),i&2){let e,t=l().$implicit;s(),h("for","destination-",t.formGroupName,"-",t.index,""),s(),P(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),s(),S(t.formView.longDescription?3:-1),s(),h("id","destination-",t.formGroupName,"-",t.index,""),v("formControlName",t.formView.name),s(),S(t.formView.type==="Path"?5:6)}}function Cn(i,n){if(i&1){let e=O();r(0,"span",30),u("click",function(){C(e);let a=l(2).$implicit,p=l();return E(p.oauthStartTokenCreation(a.formViewType))}),c(1,"AuthID"),o()}}function En(i,n){i&1&&(r(0,"spk-icon",26),c(1,"password"),o())}function Nn(i,n){if(i&1){let e=O();r(0,"spk-icon",31),u("click",function(){C(e);let a=l(2).$implicit;return E(a.formView.showPassword=!a.formView.showPassword)}),c(1," eye "),o()}}function hn(i,n){if(i&1){let e=O();r(0,"spk-icon",31),u("click",function(){C(e);let a=l(2).$implicit;return E(a.formView.showPassword=!a.formView.showPassword)}),c(1," eye-slash "),o()}}function On(i,n){if(i&1&&(r(0,"spk-form-field")(1,"label",23),c(2),o(),f(3,"input",27),T(4,Cn,2,0,"span",28)(5,En,2,0,"spk-icon",26)(6,Nn,2,0,"spk-icon",29)(7,hn,2,0,"spk-icon",29),o()),i&2){let e,t=l().$implicit;s(),h("for","destination-",t.formGroupName,"-",t.index,""),s(),P(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),s(),h("id","destination-",t.formGroupName,"-",t.index,""),v("formControlName",t.formView.name),m("type",t.formView.showPassword?"text":"password"),s(),S(t.oauthField===t.formView.name?4:5),s(2),S(t.formView.showPassword?6:7)}}function Mn(i,n){if(i&1&&(r(0,"spk-tooltip",24)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;m("message",e.formView.longDescription)}}function Pn(i,n){if(i&1&&(r(0,"spk-option",33),c(1),o()),i&2){let e=n.$implicit;m("value",e),s(),$(e)}}function In(i,n){if(i&1&&(r(0,"spk-select")(1,"label",23),c(2),T(3,Mn,3,1,"spk-tooltip",24),o(),f(4,"input",32),A(5,Pn,2,2,"spk-option",33,w),o()),i&2){let e,t=l().$implicit;s(),h("for","destination-",t.formGroupName,"-",t.index,""),s(),P(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),s(),S(t.formView.longDescription?3:-1),s(),h("id","destination-",t.formGroupName,"-",t.index,""),v("formControlName",t.formView.name),s(),G(t.formView.options)}}function yn(i,n){if(i&1&&(r(0,"spk-tooltip",24)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;m("message",e.formView.longDescription)}}function Rn(i,n){if(i&1&&(r(0,"spk-option",33),c(1),o()),i&2){let e=n.$implicit;m("value",e),s(),$(e)}}function Fn(i,n){if(i&1&&(r(0,"div",19)(1,"label",23),c(2),T(3,yn,3,1,"spk-tooltip",24),o(),r(4,"div",34)(5,"spk-form-field"),f(6,"input",35),r(7,"spk-icon",26),c(8,"resize"),o()(),r(9,"spk-select"),f(10,"label")(11,"input",36),A(12,Rn,2,2,"spk-option",33,w),o()()()),i&2){let e,t=l().$implicit,a=l();m("formGroupName",t.formView.name),s(),h("for","destination-",t.formGroupName,"-",t.index,""),s(),P(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),s(),S(t.formView.longDescription?3:-1),s(3),h("id","destination-",t.formGroupName,"-",t.index,""),s(6),G(a.sizeOptions())}}function vn(i,n){if(i&1&&(r(0,"spk-tooltip",24)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;m("message",e.formView.longDescription)}}function wn(i,n){if(i&1&&(r(0,"spk-form-field")(1,"label",23),c(2),T(3,vn,3,1,"spk-tooltip",24),o(),f(4,"input",37),r(5,"spk-icon",26),c(6,"numpad"),o()()),i&2){let e,t=l().$implicit;s(),h("for","destination-",t.formGroupName,"-",t.index,""),s(),P(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),s(),S(t.formView.longDescription?3:-1),s(),h("id","destination-",t.formGroupName,"-",t.index,""),v("formControlName",t.formView.name)}}function An(i,n){if(i&1&&(r(0,"spk-tooltip",24)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;m("message",e.formView.longDescription)}}function Gn(i,n){if(i&1&&(r(0,"spk-toggle",20)(1,"label",23),c(2),T(3,An,3,1,"spk-tooltip",24),o(),f(4,"input",38),o()),i&2){let e,t=l().$implicit;s(),h("for","destination-",t.formGroupName,"-",t.index,""),s(),P(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),s(),S(t.formView.longDescription?3:-1),s(),h("id","destination-",t.formGroupName,"-",t.index,""),v("formControlName",t.formView.name)}}function xn(i,n){if(i&1&&(r(0,"spk-tooltip",24)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;m("message",e.formView.longDescription)}}function $n(i,n){i&1&&(r(0,"spk-option",40),c(1,"None"),o()),i&2&&m("value","None")}function kn(i,n){if(i&1&&(r(0,"spk-option",33),c(1),f(2,"spk-checkbox",41),o()),i&2){let e=l().$implicit;m("value",e),s(),P(" ",e," ")}}function bn(i,n){if(i&1&&T(0,$n,2,1,"spk-option",40)(1,kn,3,2,"spk-option",33),i&2){let e=n.$implicit;S(e==="None"?0:1)}}function Dn(i,n){if(i&1&&(r(0,"spk-select",21)(1,"label",23),c(2),T(3,xn,3,1,"spk-tooltip",24),o(),f(4,"input",39),A(5,bn,2,1,null,null,w),o()),i&2){let e,t=l().$implicit;m("selectMultiple",!0),s(),h("for","destination-",t.formGroupName,"-",t.index,""),s(),P(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),s(),S(t.formView.longDescription?3:-1),s(),v("formControlName",t.formView.name),s(),G(t.formView.options)}}function Vn(i,n){if(i&1&&(r(0,"spk-tooltip",24)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;m("message",e.formView.longDescription)}}function Ln(i,n){if(i&1&&(r(0,"spk-form-field")(1,"label",23),c(2),T(3,Vn,3,1,"spk-tooltip",24),o(),f(4,"input",25),o()),i&2){let e,t=l().$implicit;s(),h("for","destination-",t.formGroupName,"-",t.index,""),s(),P(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),s(),S(t.formView.longDescription?3:-1),s(),h("id","destination-",t.formGroupName,"-",t.index,""),v("formControlName",t.formView.name)}}function Xn(i,n){if(i&1){let e=O();r(0,"div",15),le(1,16),T(2,dn,5,14,"app-file-tree",17)(3,un,5,10,"app-file-tree",18)(4,fn,7,10,"spk-form-field")(5,On,8,11,"spk-form-field")(6,In,7,9,"spk-select")(7,Fn,14,9,"div",19)(8,wn,7,9,"spk-form-field")(9,Gn,5,9,"spk-toggle",20)(10,Dn,7,7,"spk-select",21)(11,Ln,5,9,"spk-form-field"),_e(),r(12,"button",22),u("click",function(){let a=C(e).$implicit,p=l();return E(p.removeFormView(a.formView))}),r(13,"spk-icon"),c(14,"x-circle"),o()()()}if(i&2){let e=n.$implicit;s(),m("formGroupName",e.formGroupName),s(),S(e.formView.type==="FileTree"?2:e.formView.type==="FolderTree"?3:e.formView.type==="String"||e.formView.type==="Path"?4:e.formView.type==="Password"?5:e.formView.type==="Enumeration"?6:e.formView.type==="Size"?7:e.formView.type==="Integer"?8:e.formView.type==="Boolean"?9:e.formView.type==="Flags"?10:e.formView.type==="Timespan"?11:-1)}}var bi=new fe,zn=["Bytes","KB","MB","GB","TB","PB"],Di=[{value:"",name:$localize`Keep all backups`},{value:"time",name:$localize`Delete backups that are older than`},{value:"versions",name:$localize`Keep a specific number of backups`},{value:"smart",name:$localize`Smart backup retention`},{value:"custom",name:$localize`Custom backup retention`}],Vi=1024*1024*1024*2,Li=1024*1024*5;var ne=class i{#e=N(Ge);#i=N(K);#t=N(b);formRef=Mt.required("formRef");optionsForm=this.#e.optionsForm;selectedOptions=this.#e.selectedOptions;nonSelectedOptions=this.#e.nonSelectedOptions;isSubmitting=g(!1);isLoadingOptions=g(!0);sizeOptions=g(zn);serverSettingsEffect=q(()=>{let n=this.#i.serverSettings();if(n===void 0)return;this.isLoadingOptions.set(!0);let e=this.#e.nonSelectedOptions(),t=Object.entries(n);t.forEach(([a,p],F)=>{if(a.startsWith("--")){let y=a.replace("--",""),M=e.find(R=>R.name===y);M!==void 0?this.addNewOption(M,p):this.addFreeTextOption(y,p)}F===t.length-1&&this.isLoadingOptions.set(!1)})});oauthStartTokenCreation(n){}getFormFieldValue(n,e,t){return this.optionsForm.controls.advancedOptions.controls[t].value}removeFormView(n){let e="--"+n.name;this.#t.patchApiV1Serversettings({requestBody:{[e]:null}}).subscribe({next:t=>{window.location.reload()}})}addNewOption(n,e){this.#e.addOptionToFormGroup(n,e)}addFreeTextOption(n,e){this.#e.addFreeTextOption(n,e,{})}submit(){this.isSubmitting.set(!0);let n=this.optionsForm.value.advancedOptions;if(!n)return;let e=this.#n(n);this.#t.patchApiV1Serversettings({requestBody:e}).pipe(x(()=>this.isSubmitting.set(!1))).subscribe()}#n(n){let e={};for(let t in n)e[`--${t}`]=n[t];return e}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=z({type:i,selectors:[["app-advanced-options-settings"]],viewQuery:function(e,t){e&1&&Rt(t.formRef,nn,5),e&2&&Ft()},features:[wt([Ge])],decls:20,vars:5,consts:()=>{let n;n=$localize` Advanced options ${"\uFFFD#5\uFFFD"}:START_TAG_SPK_MENU:${"\uFFFD#6\uFFFD"}:START_TAG_BUTTON: Add advanced option ${"\uFFFD#7\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#7\uFFFD"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/#6\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#8\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD*10:1\uFFFD"}:START_BLOCK_FOR:${"\uFFFD#1:1\uFFFD"}:START_TAG_BUTTON_1:${"\uFFFD0:1\uFFFD"}:INTERPOLATION:${"[\uFFFD/#6\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/*10:1\uFFFD"}:CLOSE_BLOCK_FOR:${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_NG_CONTAINER:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_MENU:`,n=pe(n);let e;return e=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SPK_ICON:floppy-disk${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SPK_ICON: Save `,[["formRef",""],["fieldTemplate",""],["option",""],n,e,[3,"submit","formGroup"],[3,"disallowToggle"],["title",""],["spk-button","","type","button",1,"outlined","small"],["menu",""],["type","button"],[1,"form-actions"],["spk-button","","type","submit",1,"raised","primary"],["type","button",3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"field-row"],[3,"formGroupName"],[3,"startingPath","accepts","showFiles","showHiddenNodes","selectFiles"],[3,"startingPath"],[1,"form-column",3,"formGroupName"],[1,"primary","raised"],[1,"primary",3,"selectMultiple"],["spk-button","","type","button",1,"outlined",3,"click"],[3,"for"],[1,"primary",3,"message"],["type","text",3,"id","formControlName"],["prefix",""],["autocomplete","off",3,"type","id","formControlName"],["prefix","",1,"link"],["suffix","",1,"clickable"],["prefix","",1,"link",3,"click"],["suffix","",1,"clickable",3,"click"],["type","search",3,"id","formControlName"],[3,"value"],[1,"form-row"],["type","number","formControlName","size",3,"id"],["type","search","formControlName","unit"],["type","number",3,"id","formControlName"],["type","checkbox",3,"id","formControlName"],["type","text","id","text",3,"formControlName"],["deselect","",3,"value"],[1,"raised","primary"]]},template:function(e,t){if(e&1){let a=O();r(0,"form",5,0),u("submit",function(){return C(a),E(t.submit())}),r(2,"app-toggle-card",6),le(3,7),B(4,3),r(5,"spk-menu")(6,"button",8),f(7,"spk-icon"),o(),le(8,9),A(9,an,3,1,"button",10,w),_e(),o(),U(),_e(),T(11,pn,2,0),Pt(12,11,on),o(),T(14,Xn,15,2,"ng-template",null,1,$t),r(16,"div",11)(17,"button",12),B(18,4),f(19,"spk-icon"),U(),o()()()}e&2&&(m("formGroup",t.optionsForm),s(2),m("disallowToggle",!0),s(7),G(t.nonSelectedOptions()),s(3),It(!t.isLoadingOptions()),s(5),I("loader",t.isSubmitting()))},dependencies:[Ee,ue,j,Vt,Dt,H,de,Se,Te,ge,Bt,Me,he,Ne,W,Pe,Xt,Oe,Ie,Wt,Kt],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:32.5rem;padding:2.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.form-column[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}.form-column[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{font-size:1rem}.field-row[_ngcontent-%COMP%]{display:grid;align-items:flex-end;grid-template-columns:1fr 2.5rem;gap:.5rem}.form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}.form-wrap[_ngcontent-%COMP%]{display:grid;grid-template-columns:2fr 2.5rem;gap:.5rem;align-items:flex-end}.remote-volume-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.remote-volume-wrap[_ngcontent-%COMP%] p.warning[_ngcontent-%COMP%]{color:#7d7d00}.row-inputs[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.row-inputs[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 0}.advanced-option[_ngcontent-%COMP%]{display:grid;gap:.5rem;grid-template-columns:1fr 1fr 40px;align-items:flex-end}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};var Q=class i{#e=N(b);#i=N(ce);repeatRegisterTimer=null;state=g("unknown");claimUrl=g(null);registerUrl=g("");status=k(()=>{let n=this.state();return n==="enabled"?"Remote control is enabled but not connected":n==="connected"?"Remote control is connected":n==="registering"?"Registering machine...":n==="registeringfaulted"?"Registration failed":n==="registered"?"Registered, waiting for accept":n==="disabled"?"Remote control is configured but not enabled":n==="unknown"?"...loading...":"Remote control is not set up"});sysInfoEffect=q(()=>{let n=this.#i.systemInfo();n&&this.registerUrl.set(n.RemoteControlRegistrationUrl??"")});#t(n){n.RegistrationUrl&&this.claimUrl.set(n.RegistrationUrl),n.IsConnected?this.state.set("connected"):n.IsEnabled?this.state.set("enabled"):n.CanEnable?this.state.set("disabled"):n.IsRegisteringFaulted?this.state.set("registeringfaulted"):n.IsRegistering?n.RegistrationUrl!=null&&n.RegistrationUrl.trim().length>0?this.state.set("registered"):this.state.set("registering"):this.state.set("inactive");let e=this.state();console.log("currentState: ",e),this.repeatRegisterTimer!==null&&(clearTimeout(this.repeatRegisterTimer),this.repeatRegisterTimer=null),e==="registering"&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:""}}).subscribe({next:t=>this.#t(t),error:t=>this.#n(t)})},5e3)),(e==="enabled"||e==="registered")&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.getApiV1RemotecontrolStatus().subscribe({next:t=>this.#t(t),error:t=>this.#n(t)})},5e3)),n.IsRegistering&&n.CanEnable&&this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:t=>this.#t(t)})}#n(n){this.#e.getApiV1RemotecontrolStatus().subscribe({next:e=>this.#t(e)})}refreshRemoteControlStatus(){this.#e.getApiV1RemotecontrolStatus().subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})}beginRemoteRegistration(){this.state.set("registering"),this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:this.registerUrl()}}).subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})}cancelRemoteRegistration(){this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})}enableRemoteControl(){this.#e.postApiV1RemotecontrolEnable().subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})}disableRemoteControl(){this.#e.postApiV1RemotecontrolDisable().subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})}deleteRemoteControl(){let n=this;confirm("Are you sure you want to delete the remote control registration?")&&n.#e.deleteApiV1RemotecontrolRegistration().subscribe({next:e=>n.#t(e),error:e=>n.#n(e)})}static \u0275fac=function(e){return new(e||i)};static \u0275prov=ae({token:i,factory:i.\u0275fac,providedIn:"root"})};function Bn(i,n){if(i&1){let e=O();r(0,"spk-form-field",10)(1,"input",11),X("ngModelChange",function(a){C(e);let p=l(2);return L(p.registerUrl,a)||(p.registerUrl=a),E(a)}),o()(),r(2,"button",12),u("click",function(){C(e);let a=l(2);return E(a.register())}),_(3,0),o()}if(i&2){let e=l(2);s(),V("ngModel",e.registerUrl)}}function Un(i,n){if(i&1&&(r(0,"div",8)(1,"label"),_(2,1),o(),r(3,"a",13),c(4),o()()),i&2){let e=l(2);s(3),v("href",e.claimUrl(),Ot),s(),$(e.claimUrl())}}function qn(i,n){i&1&&(r(0,"div",8)(1,"label"),_(2,2),o()())}function jn(i,n){if(i&1){let e=O();r(0,"button",12),u("click",function(){C(e);let a=l(2);return E(a.cancel())}),_(1,3),o()}}function Hn(i,n){if(i&1){let e=O();r(0,"button",12),u("click",function(){C(e);let a=l(2);return E(a.disable())}),_(1,4),o()}}function Wn(i,n){if(i&1){let e=O();r(0,"button",12),u("click",function(){C(e);let a=l(2);return E(a.enable())}),_(1,5),o(),r(2,"button",14),u("click",function(){C(e);let a=l(2);return E(a.delete())}),_(3,6),o()}}function Kn(i,n){if(i&1&&(r(0,"div",7),T(1,Bn,4,1)(2,Un,5,2,"div",8)(3,qn,3,0,"div",8)(4,jn,2,0,"button",9)(5,Hn,2,0,"button",9)(6,Wn,4,0),o()),i&2){let e=l();s(),S(e.state()==="inactive"?1:-1),s(),S(e.state()==="registered"?2:-1),s(),S(e.state()==="registering"?3:-1),s(),S(e.state()==="registering"||e.state()==="registeringfaulted"||e.state()==="registered"?4:-1),s(),S(e.state()==="connected"||e.state()==="enabled"?5:-1),s(),S(e.state()==="disabled"?6:-1)}}var Fe=class i{#e=N(Q);state=this.#e.state;claimUrl=this.#e.claimUrl;registerUrl=this.#e.registerUrl;ngOnInit(){this.#e.refreshRemoteControlStatus()}cancel(){this.#e.cancelRemoteRegistration()}register(){this.#e.beginRemoteRegistration()}disable(){this.#e.disableRemoteControl()}enable(){this.#e.enableRemoteControl()}delete(){this.#e.deleteRemoteControl()}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=z({type:i,selectors:[["app-remote-control"]],decls:1,vars:1,consts:()=>{let n;n=$localize`Register for remote control`;let e;e=$localize`Machine is now registered, open this link to add it to your account:`;let t;t=$localize`Registering, please wait...`;let a;a=$localize`Cancel registration`;let p;p=$localize`Disable remote control`;let F;F=$localize`Enable remote control`;let y;return y=$localize`Delete remote control setup`,[n,e,t,a,p,F,y,[1,"field-row"],[1,"field-col"],["type","button","spk-button","",1,"raised"],["label","Registration URL","for","remoteControlRegisterUrl"],["type","text","spk-input","","id","remoteControlRegisterUrl","name","remoteControlRegisterUrl",3,"ngModelChange","ngModel"],["type","button","spk-button","",1,"raised",3,"click"],["target","_blank",3,"href"],["type","button","spk-button","",1,"raised","error",3,"click"]]},template:function(e,t){e&1&&T(0,Kn,7,6,"div",7),e&2&&S(t.state()!=="unknown"?0:-1)},dependencies:[Ce,j,H,me,W],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}.field-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] spk-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] spk-select[_ngcontent-%COMP%]{flex:1 0}"],changeDetection:0})};var Qn=()=>({standalone:!0});function Zn(i,n){i&1&&(r(0,"spk-icon",73),c(1,"check"),o())}function Jn(i,n){i&1&&(r(0,"spk-icon",74),c(1,"prohibit"),o())}function Yn(i,n){if(i&1){let e=O();r(0,"button",78),u("click",function(){C(e);let a=l(2);return E(a.updatePassphrase())}),_(1,35),o()}if(i&2){let e=l(2);I("loader",e.isUpdating())}}function ei(i,n){if(i&1){let e=O();r(0,"spk-tooltip",77)(1,"button",79),u("click",function(){C(e);let a=l(2);return E(a.updatePassphrase())}),_(2,36),o()()}if(i&2){let e=l(2);s(),I("loader",e.isUpdating()),m("disabled",!0)}}function ti(i,n){if(i&1){let e=O();r(0,"spk-form-field")(1,"label",69),_(2,32),o(),r(3,"input",70),X("ngModelChange",function(a){C(e);let p=l();return L(p.passphrase,a)||(p.passphrase=a),E(a)}),o()(),r(4,"spk-form-field")(5,"label",71),_(6,33),o(),r(7,"input",72),X("ngModelChange",function(a){C(e);let p=l();return L(p.repeatPassphrase,a)||(p.repeatPassphrase=a),E(a)}),o(),T(8,Zn,2,0,"spk-icon",73)(9,Jn,2,0,"spk-icon",74),o(),r(10,"div",50)(11,"button",75),u("click",function(){C(e);let a=l();return E(a.cancelPasswordChange())}),_(12,34),o(),T(13,Yn,2,2,"button",76)(14,ei,3,3,"spk-tooltip",77),o()}if(i&2){let e=l();s(3),V("ngModel",e.passphrase),s(4),m("disabled",e.passphrase().length===0),V("ngModel",e.repeatPassphrase),s(),S(e.passphrase().length!==0&&e.passphrase()===e.repeatPassphrase()?8:9),s(3),I("loader",e.isUpdating()),s(2),S(e.passphrase().length!==0&&e.passphrase()===e.repeatPassphrase()?13:14)}}function ni(i,n){i&1&&(r(0,"spk-icon",80),c(1,"check"),o())}function ii(i,n){if(i&1){let e=O();r(0,"div",50)(1,"button",75),u("click",function(){C(e);let a=l();return E(a.openPassphraseForm())}),_(2,37),o(),T(3,ni,2,0,"spk-icon",80),o()}if(i&2){let e=l();s(3),S(e.passwordUpdated()?3:-1)}}function oi(i,n){if(i&1&&(r(0,"spk-option",53),c(1),o()),i&2){let e=n.$implicit;m("value",e.value),s(),P(" ",e.label," ")}}function ri(i,n){if(i&1){let e=O();r(0,"spk-form-field")(1,"label",81),_(2,38),o(),r(3,"textarea",82),X("ngModelChange",function(a){C(e);let p=l();return L(p.allowedHostnames,a)||(p.allowedHostnames=a),E(a)}),o()(),r(4,"spk-alert",83),_(5,39),o(),r(6,"button",78),u("click",function(){C(e);let a=l();return E(a.updateAllowedHostnames())}),_(7,40),o()}if(i&2){let e=l();s(3),V("ngModel",e.allowedHostnames),s(3),I("loader",e.updatingAllowedHosts())}}function si(i,n){if(i&1&&c(0),i&2){let e,t=l();P(" ",(e=t.sysinfo())==null?null:e.ServerVersion," ")}}function ai(i,n){i&1&&f(0,"spk-progress-bar",56)}function li(i,n){if(i&1&&(r(0,"spk-option",53),c(1),o()),i&2){let e=n.$implicit;m("value",e),s(),$(e)}}function _i(i,n){if(i&1){let e=O();r(0,"spk-option",84),u("click",function(){let a=C(e).$implicit,p=l();return E(p.pauseSettings.controls.timeType.setValue(a.value))}),c(1),o()}if(i&2){let e=n.$implicit;m("value",e.value),s(),P(" ",e.label," ")}}function pi(i,n){if(i&1&&(r(0,"spk-option",53),c(1),o()),i&2){let e=n.$implicit;m("value",e.value),s(),P(" ",e.label," ")}}var ie=new fe,Yt=[{value:"s",label:$localize`Seconds`},{value:"m",label:$localize`Minutes`},{value:"h",label:$localize`Hours`}],en=[{value:"",label:$localize`System default (information)`},{value:"information",label:$localize`Usage statistics, warnings, errors, and crashes`},{value:"warning",label:$localize`Warnings, errors and crashes`},{value:"error",label:$localize`Errors and crashes`},{value:"crash",label:$localize`Crashes only`},{value:"none",label:$localize`None / disabled`}],$e=class i{#e=N(jt);#i=N(ce);#t=N(b);#n=N(K);#r=N(Q);#o=N(bt);#s=this.#o.getItem("locale")??"en-US";sysinfo=this.#i.systemInfo;isDarkMode=this.#e.isDarkMode;editAs=g("list");langCtrl=g(this.#s);remoteControlStatus=this.#r.status;settingsForm=ie.group({pauseSettings:ie.group({time:ie.control(0),timeType:ie.control("s")}),usageStatistics:ie.control("")});updatingChannel=g(!1);updateChannel=g("");setNewChannel(n){let e=this.updateChannel();this.updateChannel.set(n),this.#t.patchApiV1Serversettings({requestBody:{"update-channel":n}}).pipe(this.#n.withRefresh(),x(()=>this.updatingChannel.set(!1)),J(()=>(this.updateChannel.set(e),Z(null)))).subscribe()}allowRemoteAccess=g(!1);allowedHostnames=g("");loadedAllowedHostnames=g("");updatingRemoteAccess=g(!1);updatingAllowedHosts=g(!1);updateRemoteAccess(){let n=this.allowRemoteAccess(),e=!n;this.allowRemoteAccess.set(e),e||this.#t.patchApiV1Serversettings({requestBody:{"server-listen-interface":e?"any":"loopback"}}).pipe(this.#n.withRefresh(),x(()=>this.updatingRemoteAccess.set(!1)),J(()=>(this.allowRemoteAccess.set(n),Z(null)))).subscribe()}updateAllowedHostnames(){let n=this.loadedAllowedHostnames(),e=this.allowedHostnames();this.updatingAllowedHosts.set(!0),this.#t.patchApiV1Serversettings({requestBody:{"server-listen-interface":"any","allowed-hostnames":e}}).pipe(this.#n.withRefresh(),x(()=>this.updatingAllowedHosts.set(!1)),J(()=>(this.allowedHostnames.set(n),Z(null)))).subscribe()}updatingDisableTrayIconLogin=g(!1);disableTrayIconLogin=g(!1);saveDisableTrayIconLogin(){let n=this.disableTrayIconLogin(),e=!n;this.updatingDisableTrayIconLogin.set(!0),this.disableTrayIconLogin.set(e),this.#t.patchApiV1Serversettings({requestBody:{"disable-tray-icon-login":e?"True":"False"}}).pipe(this.#n.withRefresh(),x(()=>this.updatingDisableTrayIconLogin.set(!1)),J(()=>(this.disableTrayIconLogin.set(n),Z(null)))).subscribe()}showPassphraseForm=g(!1);isUpdating=g(!1);passphrase=g("");repeatPassphrase=g("");passwordUpdated=g(!1);updatePassphrase(){this.passphrase()===this.repeatPassphrase()&&(this.isUpdating.set(!0),this.#t.patchApiV1Serversettings({requestBody:{"server-passphrase":this.passphrase()}}).pipe(this.#n.withRefresh(),x(()=>this.isUpdating.set(!1))).subscribe({next:()=>{this.showPassphraseForm.set(!1),this.passwordUpdated.set(!0),setTimeout(()=>{this.passwordUpdated.set(!1)},3e3)}}))}openPassphraseForm(){this.showPassphraseForm.set(!0)}cancelPasswordChange(){this.showPassphraseForm.set(!1)}get pauseSettings(){return this.settingsForm.controls.pauseSettings}languageOptions=k(()=>{let n=this.langCtrl();return n?ye.filter(e=>e.label.toLowerCase().includes(n.toLowerCase())):ye});usageStatisticsOptions=g(en);timeTypeOptions=g(Yt);timeOptions=xe([this.pauseSettings.controls.timeType.valueChanges.pipe(D("s")),this.pauseSettings.controls.time.valueChanges.pipe(D(null))],se(ft(([n,e])=>{let t=this.#a(n);return e!==null?t.filter(a=>a.toString().includes(e.toString())):t}),D([])));#a(n){let e=n==="h"?25:61;return new Array(e).fill(0).map((t,a)=>a)}saveLocale(n){this.#o.setItem("locale",n),window.location.reload()}submit(){let n=`${this.pauseSettings.controls.time.value}${this.pauseSettings.controls.timeType.value}`;this.#t.patchApiV1Serversettings({requestBody:{"usage-reporter-level":this.settingsForm.controls.usageStatistics.value,"startup-delay":n==="0s"?"":n}}).pipe(this.#n.withRefresh()).subscribe()}serverSettingsEffect=q(()=>{let n=this.#n.serverSettings();if(n===void 0)return;let e=n["startup-delay"],t=e.slice(-1),a=e.slice(0,-1),p=["s","m","h"];this.settingsForm.patchValue({pauseSettings:{time:parseInt(a==""?"0":a),timeType:p.includes(t)?t:"s"},usageStatistics:n["usage-reporter-level"]}),this.disableTrayIconLogin.set(n["disable-tray-icon-login"]!=="False"),this.updateChannel.set(n["update-channel"]),this.allowRemoteAccess.set(n["server-listen-interface"]==="any"),this.allowedHostnames.set(n["allowed-hostnames"]),this.loadedAllowedHostnames.set(n["allowed-hostnames"])});languageDisplay(){let n=this;return()=>{let e=n.langCtrl();return e?ye.find(t=>t.value===e)?.label??null:null}}typeDisplay(){let n=this;return()=>{let e=n.settingsForm.value.pauseSettings?.timeType;return e==null?null:Yt.find(t=>t.value===e)?.label??null}}usageDisplay(){let n=this;return()=>{let e=n.settingsForm.value.usageStatistics;return e==null?null:en.find(t=>t.value===e)?.label??null}}setDarkMode(){this.#e.setDarkMode()}setLightMode(){this.#e.setLightMode()}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=z({type:i,selectors:[["app-settings"]],decls:140,vars:36,consts:()=>{let n;n=$localize`Settings`;let e;e=$localize`Configure your backup settings.`;let t;t=$localize` Save changes `;let a;a=$localize`Remote access control`;let p;p=$localize`Color theme`;let F;F=$localize`Customize your application theme`;let y;y=$localize`Passwords`;let M;M=$localize`Change server passphrase`;let R;R=$localize`Language`;let oe;oe=$localize`Select a language for the platform`;let ke;ke=$localize`Allow remote access (requires restart)`;let be;be=$localize` By allowing remote access, the server listens to requests from any machine on your network. If you enable this option, make sure you are always using the computer on a secure firewall protected network. `;let De;De=$localize`Allow remote access`;let Ve;Ve=$localize`Prevent tray icon automatic log-in`;let Le;Le=$localize` By default, the tray icon will open the user interface with a token that unlocks the user interface. This ensures that you can access the user interface from the tray icon, while requiring others to enter a password. If you prefer having to type in the password, even when accessing the user interface from the tray icon, enable this option. `;let Xe;Xe=$localize`Prevent tray icon automatic log-in`;let ze;ze=$localize`Update channel`;let Be;Be=$localize` Default (${"\uFFFD0\uFFFD"}:INTERPOLATION:) `;let Ue;Ue=$localize`Same as the base install version: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let qe;qe=$localize`Stable`;let je;je=$localize`Official releases`;let He;He=$localize`Beta`;let We;We=$localize` Try out the new features that we are working on. Currently the most stable version available. Test Restore data before using this in production environments. `;let Ke;Ke=$localize` Experimental `;let Qe;Qe=$localize`Specific builds for developers only. Not for use with important data.`;let Ze;Ze=$localize`Canary`;let Je;Je=$localize`Individual builds for developers only. Not for use with important data.`;let Ye;Ye=$localize`Pause after startup or hibernation`;let et;et=$localize` Duplicati will run when started, but will remain in paused state for the duration. Duplicati will occupy minimal system resources and no backups will be run. `;let tt;tt=$localize`Usage statistics`;let re;re=$localize` Usage reports help us improve the user experience and evaluate impact of new features. We use them to generate ${"\uFFFD#126\uFFFD"}:START_LINK:public usage statistics.${"\uFFFD/#126\uFFFD"}:CLOSE_LINK:${"[\uFFFD#127\uFFFD\uFFFD/#127\uFFFD|\uFFFD#128\uFFFD\uFFFD/#128\uFFFD]"}:LINE_BREAK:${"[\uFFFD#127\uFFFD\uFFFD/#127\uFFFD|\uFFFD#128\uFFFD\uFFFD/#128\uFFFD]"}:LINE_BREAK: All usage reports are sent anonymously and do not contain any personal information. They contain information about hardware and operating system, the type of backend, backup duration, overall size of source data and similar data. They do not contain paths, filenames, usernames, passwords or similar sensitive information. `,re=pe(re);let nt;nt=$localize`Advanced options`;let it;it=$localize`Enter new password`;let ot;ot=$localize`Repeat password`;let rt;rt=$localize`Password have to be filled and have to match`;let st;st=$localize`Passphrase`;let at;at=$localize`Repeat passphrase`;let lt;lt=$localize`Cancel`;let _t;_t=$localize` Update passphrase `;let pt;pt=$localize` Update passphrase `;let ct;ct=$localize`Change password`;let dt;dt=$localize`Allowed hostnames`;let mt;mt=$localize` To prevent various DNS based attacks, Duplicati limits the allowed hostnames to the ones listed here. Direct IP access and localhost is always allowed. Multiple hostnames can be supplied with a semicolon separator. If any of the allowed hostnames is an asterisk (*), all hostnames are allowed and this feature is disabled. If the field is empty, only IP address and localhost access is allowed. `;let ut;return ut=$localize` Update allowed hostnames `,[n,e,t,a,p,F,y,M,R,oe,ke,be,De,Ve,Le,Xe,ze,Be,Ue,qe,je,He,We,Ke,Qe,Ze,Je,Ye,et,tt,re,nt,st,at,lt,_t,pt,ct,dt,mt,ut,[1,"content"],[1,"title"],["type","submit","spk-button","",1,"raised","primary",3,"click","disabled"],[1,"left"],[1,"right"],[1,"themes"],["src","assets/images/light-theme.png","alt","light theme",3,"click"],["src","assets/images/dark-theme.png","alt","dark theme",3,"click"],[1,"right","passphrase-form"],[1,"actions"],[3,"change","displayFn","hideClearButton"],["type","search",3,"ngModelChange","ngModel","ngModelOptions"],[3,"value"],[1,"right","remote-access-form"],[1,"primary","raised",3,"click"],[1,"indeterminate","primary"],[1,"right","radios"],[1,"radio-option",3,"click"],[1,"primary","raised"],[1,"content",3,"submit","formGroup"],["formGroupName","pauseSettings",1,"field-row"],[3,"hideClearButton"],["type","search","formControlName","time"],[3,"displayFn","hideClearButton"],["type","text","formControlName","timeType"],["href","#"],[3,"displayFn"],["type","text","formControlName","usageStatistics"],["for","password"],["type","password","name","password","autocomplete","disabled","placeholder",it,"tabindex","1",3,"ngModelChange","ngModel"],["for","repeatPassword"],["type","password","name","repeatPassword","autocomplete","disabled","placeholder",ot,"tabindex","2",3,"ngModelChange","disabled","ngModel"],["suffix","",1,"spk-success"],["suffix",""],["spk-button","",3,"click"],["spk-button","",1,"raised","primary",3,"loader"],["message",rt,1,"primary"],["spk-button","",1,"raised","primary",3,"click"],["spk-button","",1,"raised","primary",3,"click","disabled"],[1,"spk-success"],["for","allowedHostnames"],["type","text","id","allowedHostnames",3,"ngModelChange","ngModel"],["type","primary"],[3,"click","value"]]},template:function(e,t){if(e&1&&(f(0,"app-status-bar"),r(1,"div",41)(2,"header")(3,"div",42)(4,"h2"),_(5,0),o(),r(6,"p"),_(7,1),o()(),r(8,"button",43),u("click",function(){return t.submit()}),_(9,2),o()(),r(10,"section")(11,"div",44)(12,"h3"),_(13,3),o(),r(14,"p"),c(15),o()(),r(16,"div",45),f(17,"app-remote-control"),o()(),r(18,"section")(19,"div",44)(20,"h3"),_(21,4),o(),r(22,"p"),_(23,5),o()(),r(24,"div",45)(25,"div",46)(26,"img",47),u("click",function(){return t.setLightMode()}),o(),r(27,"img",48),u("click",function(){return t.setDarkMode()}),o()()()(),r(28,"section")(29,"div",44)(30,"h3"),_(31,6),o(),r(32,"p"),_(33,7),o()(),r(34,"div",49),T(35,ti,15,7)(36,ii,4,1,"div",50),o()(),r(37,"section")(38,"div",44)(39,"h3"),_(40,8),o(),r(41,"p"),_(42,9),o()(),r(43,"div",45)(44,"spk-select",51),u("change",function(p){return t.saveLocale(p)}),r(45,"input",52),X("ngModelChange",function(p){return L(t.langCtrl,p)||(t.langCtrl=p),p}),o(),A(46,oi,2,2,"spk-option",53,w),o()()(),r(48,"section")(49,"div",44)(50,"h3"),_(51,10),o(),r(52,"p"),_(53,11),o()(),r(54,"div",54)(55,"spk-toggle",55),u("click",function(){return t.updateRemoteAccess()}),r(56,"label"),_(57,12),o()(),T(58,ri,8,3),o()(),r(59,"section")(60,"div",44)(61,"h3"),_(62,13),o(),r(63,"p"),_(64,14),o()(),r(65,"div",45)(66,"spk-toggle",55),u("click",function(){return t.saveDisableTrayIconLogin()}),r(67,"label"),_(68,15),o()()()(),r(69,"section")(70,"div",44)(71,"h3"),_(72,16),o(),r(73,"p"),T(74,si,1,1),o(),T(75,ai,1,0,"spk-progress-bar",56),o(),r(76,"div",57)(77,"div",58),u("click",function(){return t.setNewChannel("")}),r(78,"spk-radio",59),_(79,17),o(),r(80,"p"),_(81,18),o()(),r(82,"div",58),u("click",function(){return t.setNewChannel("stable")}),r(83,"spk-radio",59),_(84,19),o(),r(85,"p"),_(86,20),o()(),r(87,"div",58),u("click",function(){return t.setNewChannel("beta")}),r(88,"spk-radio",59),_(89,21),o(),r(90,"p"),_(91,22),o()(),r(92,"div",58),u("click",function(){return t.setNewChannel("experimental")}),r(93,"spk-radio",59),_(94,23),o(),r(95,"p"),_(96,24),o()(),r(97,"div",58),u("click",function(){return t.setNewChannel("canary")}),r(98,"spk-radio",59),_(99,25),o(),r(100,"p"),_(101,26),o()()()()(),f(102,"spk-divider"),r(103,"form",60),u("submit",function(){return t.submit()}),r(104,"section")(105,"div",44)(106,"h3"),_(107,27),o(),r(108,"p"),_(109,28),o()(),r(110,"div",45)(111,"div",61)(112,"spk-select",62),f(113,"input",63),A(114,li,2,2,"spk-option",53,w),o(),r(116,"spk-select",64),f(117,"input",65),A(118,_i,2,2,"spk-option",53,w),o()()()(),r(120,"section")(121,"div",44)(122,"h3"),_(123,29),o(),r(124,"p"),B(125,30),f(126,"a",66)(127,"br")(128,"br"),U(),o()(),r(129,"div",45)(130,"spk-select",67),f(131,"input",68),A(132,pi,2,2,"spk-option",53,w),o()()(),r(134,"section")(135,"div",44)(136,"h3"),_(137,31),o()(),r(138,"div",45),f(139,"app-advanced-options-settings"),o()()()),e&2){let a,p,F;s(8),m("disabled",t.settingsForm.untouched),s(7),$(t.remoteControlStatus()),s(11),I("active",!t.isDarkMode()),s(),I("active",t.isDarkMode()),s(8),S(t.showPassphraseForm()?35:36),s(9),m("displayFn",t.languageDisplay())("hideClearButton",!0),s(),V("ngModel",t.langCtrl),m("ngModelOptions",At(35,Qn)),s(),G(t.languageOptions()),s(9),I("active",t.allowRemoteAccess()),s(3),S(t.allowRemoteAccess()?58:-1),s(8),I("active",t.disableTrayIconLogin()),s(8),S(t.updateChannel()!==""&&((a=t.sysinfo())!=null&&a.ServerVersion)?74:-1),s(),S(t.updatingChannel()?75:-1),s(3),I("active",t.updateChannel()===""),s(),Y((p=t.sysinfo())==null?null:p.DefaultUpdateChannel),ee(79),s(2),Y((F=t.sysinfo())==null?null:F.ServerVersionType),ee(81),s(2),I("active",t.updateChannel()==="stable"),s(5),I("active",t.updateChannel()==="beta"),s(5),I("active",t.updateChannel()==="experimental"),s(5),I("active",t.updateChannel()==="canary"),s(5),m("formGroup",t.settingsForm),s(9),m("hideClearButton",!0),s(2),G(t.timeOptions()),s(2),m("displayFn",t.typeDisplay())("hideClearButton",!0),s(2),G(t.timeTypeOptions()),s(12),m("displayFn",t.usageDisplay()),s(2),G(t.usageStatisticsOptions())}},dependencies:[Ce,ue,j,H,de,me,Ee,Se,Te,ge,Ht,Fe,ne,Oe,he,qt,Me,Ut,Pe,Ie,W,Ne,zt,Lt],styles:["[_nghost-%COMP%]{display:block}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 2rem 2rem}header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem 0;position:sticky;top:0;background:var(--base-level-10);z-index:1000;border-bottom:1px solid var(--base-level-40)}header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}section[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem;padding:2rem 0;border-top:1px solid var(--base-level-40)}section[_ngcontent-%COMP%]:first-of-type{border-top:0}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;align-items:flex-start}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] spk-button-group[_ngcontent-%COMP%]{margin-top:.25rem}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;width:50%}.passphrase-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:1rem}.passphrase-form[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.remote-access-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.themes[_ngcontent-%COMP%]{display:flex;gap:.5rem}.themes[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:240px;border-radius:var(--shape-3);cursor:pointer}.themes[_ngcontent-%COMP%] img.active[_ngcontent-%COMP%]{border:2px solid var(--primary-500)}.radios[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.radio-option[_ngcontent-%COMP%]{cursor:pointer}.radio-option[_ngcontent-%COMP%] spk-radio[_ngcontent-%COMP%]{color:var(--base-level-60);margin-bottom:.25rem}.radio-option[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;color:var(--base-level-60R)}.field-col[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.field-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] spk-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] spk-select[_ngcontent-%COMP%]{flex:1 0}"],changeDetection:0})};export{$e as default};
@@ -0,0 +1 @@
1
+ import{b}from"./chunk-TQE7OBBP.js";import{c as I}from"./chunk-ZRPJ3QZT.js";import{a as y,c as k}from"./chunk-6SIZVSDW.js";import{C as o,E as m,O as c,S as a,Y as r,d as p,i as h,l as u,p as g,ua as i,y as d}from"./chunk-QDAWQNBQ.js";var l=class t{#i=i(null);#n=window.self!==window.top;#e=i(this.#n);relayIsEnabled=this.#e.asReadonly();config=this.#i.asReadonly();configLoaded=this.#n?new h:null;isLoading=i(this.#n);parentIframeListner=null;parentOrigin="*";fetchConfig(){this.#t(),this.#n&&(this.#e.set(!0),this.parentIframeListner=new AbortController,this.#s("connected"),window.addEventListener("message",e=>{if(e.data.startsWith("access:")){let s=e.data.replace("access:",""),n=JSON.parse(s);if(!n?.accessToken||!n?.clientId){this.#s("error:invalid-config"),this.#e.set(!1);return}if(typeof n.clientId!="string"){this.#s("error:invalid-config"),this.#e.set(!1);return}if(typeof n.accessToken!="string"){this.#s("error:invalid-config"),this.#e.set(!1);return}console.info("postMessage config set"),this.#i.set(n),this.configLoaded?.next(!0),this.isLoading.set(!1),this.#s("handshake-complete")}},{signal:this.parentIframeListner.signal}))}#s(e){window.parent.postMessage(e,"*")}#t(){this.parentIframeListner&&(this.parentIframeListner.abort(),this.parentIframeListner=null)}setConfig(e){this.#i.set(e)}clearConfig(){this.#i.set(null)}static \u0275fac=function(s){return new(s||t)};static \u0275prov=a({token:t,factory:t.\u0275fac,providedIn:"root"})};var f="PROXY_AUTHED_FAKE_TOKEN",w=class t{#i=r(I);#n=r(k);#e=r(b);#s=r(l);#t=i(null);#r=i(!1);token=this.#t.asReadonly();isLoggingOut=this.#r.asReadonly();login(e){return this.#e.postApiV1AuthLogin({requestBody:{Password:e,RememberMe:!0}}).pipe(o(1),c(s=>this.#t.set(s.AccessToken??null)))}refreshToken(){return this.#s.relayIsEnabled()?(this.#t.set(f),new p(e=>{e.next({AccessToken:f}),e.complete()})):this.#e.postApiV1AuthRefresh().pipe(o(1),c(e=>this.#t.set(e.AccessToken??null)))}checkProxyAuthed(){let e=new y({"custom-proxy-check":"true"});return this.#n.get("/api/v1/systeminfo",{headers:e}).pipe(g(()=>(this.#t.set(f),!0)),d(()=>u(!1)))}logout(){this.#r.set(!0),this.#e.postApiV1AuthRefreshLogout().pipe(o(1),m(()=>{this.#r.set(!1),this.#t.set(null),this.#i.navigate(["/login"])})).subscribe()}static \u0275fac=function(s){return new(s||t)};static \u0275prov=a({token:t,factory:t.\u0275fac,providedIn:"root"})};export{l as a,f as b,w as c};
@@ -1 +1 @@
1
- import{b as $}from"./chunk-6CRYB4HA.js";import{a as R}from"./chunk-47W7PRQ6.js";import"./chunk-H7TJZPPJ.js";import"./chunk-GJ6GRAEW.js";import"./chunk-YBPSOGY5.js";import"./chunk-6TZWRTRA.js";import"./chunk-UJWW7PS7.js";import"./chunk-BATRQ3TX.js";import{b as k}from"./chunk-KJ4O6F3R.js";import{a as A,d as N}from"./chunk-ETEYALHD.js";import"./chunk-TS4YY2WO.js";import{a as B,g as O}from"./chunk-NQVULKI2.js";import"./chunk-6LUM2XU4.js";import"./chunk-3WKDD2IN.js";import"./chunk-GK7T43YY.js";import{Ab as S,Bb as g,Cb as F,Db as a,Eb as r,Mc as M,Ob as _,Pb as c,Qb as u,Sa as i,Tb as T,Ub as I,Z as m,eb as C,hc as E,jc as L,kb as p,va as l,yb as s,zb as f}from"./chunk-Q3JJWGXW.js";import"./chunk-C6Q5SG76.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{b as $}from"./chunk-MHZPUJQF.js";import{a as R}from"./chunk-TQIMA3N7.js";import"./chunk-Z5FVTSXP.js";import"./chunk-FOHDLUCC.js";import"./chunk-7KWOTSVE.js";import"./chunk-ZOMDTRAX.js";import"./chunk-LFQXDL42.js";import"./chunk-2K3CR66C.js";import{b as k}from"./chunk-TQE7OBBP.js";import{a as A,d as N}from"./chunk-ZRPJ3QZT.js";import"./chunk-NVTD7IP4.js";import{a as B,g as O}from"./chunk-IZCX3KB3.js";import"./chunk-6SIZVSDW.js";import"./chunk-JOBMLOGZ.js";import"./chunk-US4WRUST.js";import{Ab as S,Bb as g,Cb as F,Db as a,Eb as r,Mc as M,Ob as _,Pb as c,Qb as u,Ra as i,Tb as T,Ub as I,Y as m,eb as C,hc as E,jc as L,kb as p,ua as l,yb as s,zb as f}from"./chunk-QDAWQNBQ.js";import"./chunk-C6Q5SG76.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 +1 @@
1
- import{$ as aa,A as B,Aa as Ba,B as C,Ba as Ca,C as D,Ca as Da,D as E,Da as Ea,E as F,Ea as Fa,F as G,Fa as Ga,G as H,Ga as Ha,H as I,Ha as Ia,I as J,Ia as Ja,J as K,Ja as Ka,K as L,Ka as La,L as M,La as Ma,M as N,Ma as Na,N as O,Na as Oa,O as P,Oa as Pa,P as Q,Q as R,R as S,S as T,T as U,U as V,V as W,W as X,X as Y,Y as Z,Z as _,_ as $,a as b,aa as ba,b as c,ba as ca,c as d,ca as da,d as e,da as ea,e as f,ea as fa,f as g,fa as ga,g as h,ga as ha,h as i,ha as ia,i as j,ia as ja,j as k,ja as ka,k as l,ka as la,l as m,la as ma,m as n,ma as na,n as o,na as oa,o as p,oa as pa,p as q,pa as qa,q as r,qa as ra,r as s,ra as sa,s as t,sa as ta,t as u,ta as ua,u as v,ua as va,v as w,va as wa,w as x,wa as xa,x as y,xa as ya,y as z,ya as za,z as A,za as Aa}from"./chunk-3WKDD2IN.js";import{Ca as a}from"./chunk-Q3JJWGXW.js";import"./chunk-C6Q5SG76.js";export{l as APP_BASE_HREF,ka as AsyncPipe,i as BrowserPlatformLocation,za as CommonModule,xa as CurrencyPipe,pa as DATE_PIPE_DEFAULT_OPTIONS,oa as DATE_PIPE_DEFAULT_TIMEZONE,f as DOCUMENT,qa as DatePipe,va as DecimalPipe,r as FormStyle,t as FormatWidth,n as HashLocationStrategy,ra as I18nPluralPipe,sa as I18nSelectPipe,a as IMAGE_CONFIG,Ia as IMAGE_LOADER,ta as JsonPipe,ua as KeyValuePipe,h as LOCATION_INITIALIZED,o as Location,k as LocationStrategy,la as LowerCasePipe,Z as NgClass,_ as NgComponentOutlet,aa as NgFor,aa as NgForOf,$ as NgForOfContext,ba as NgIf,ca as NgIfContext,W as NgLocaleLocalization,V as NgLocalization,Pa as NgOptimizedImage,ga as NgPlural,ha as NgPluralCase,ia as NgStyle,da as NgSwitch,ea as NgSwitchCase,fa as NgSwitchDefault,ja as NgTemplateOutlet,p as NumberFormatStyle,u as NumberSymbol,Oa as PRECONNECT_CHECK_BLOCKLIST,m as PathLocationStrategy,wa as PercentPipe,g as PlatformLocation,q as Plural,ya as SlicePipe,ma as TitleCasePipe,s as TranslationWidth,na as UpperCasePipe,Ea as VERSION,Fa as ViewportScroller,v as WeekDay,Ha as XhrFactory,S as formatCurrency,R as formatDate,U as formatNumber,T as formatPercent,P as getCurrencySymbol,K as getLocaleCurrencyCode,J as getLocaleCurrencyName,I as getLocaleCurrencySymbol,D as getLocaleDateFormat,F as getLocaleDateTimeFormat,y as getLocaleDayNames,x as getLocaleDayPeriods,O as getLocaleDirection,A as getLocaleEraNames,M as getLocaleExtraDayPeriodRules,N as getLocaleExtraDayPeriods,B as getLocaleFirstDayOfWeek,w as getLocaleId,z as getLocaleMonthNames,H as getLocaleNumberFormat,G as getLocaleNumberSymbol,L as getLocalePluralCase,E as getLocaleTimeFormat,C as getLocaleWeekEndRange,Q as getNumberOfCurrencyDigits,Ca as isPlatformBrowser,Da as isPlatformServer,Ja as provideCloudflareLoader,Ka as provideCloudinaryLoader,La as provideImageKitLoader,Ma as provideImgixLoader,Na as provideNetlifyLoader,X as registerLocaleData,d as \u0275DomAdapter,Ga as \u0275NullViewportScroller,Aa as \u0275PLATFORM_BROWSER_ID,Ba as \u0275PLATFORM_SERVER_ID,e as \u0275PlatformNavigation,b as \u0275getDOM,j as \u0275normalizeQueryParams,Y as \u0275parseCookieValue,c as \u0275setRootDomAdapter};
1
+ import{$ as aa,A as B,Aa as Ba,B as C,Ba as Ca,C as D,Ca as Da,D as E,Da as Ea,E as F,Ea as Fa,F as G,Fa as Ga,G as H,Ga as Ha,H as I,Ha as Ia,I as J,Ia as Ja,J as K,Ja as Ka,K as L,Ka as La,L as M,La as Ma,M as N,Ma as Na,N as O,Na as Oa,O as P,Oa as Pa,P as Q,Q as R,R as S,S as T,T as U,U as V,V as W,W as X,X as Y,Y as Z,Z as _,_ as $,a as b,aa as ba,b as c,ba as ca,c as d,ca as da,d as e,da as ea,e as f,ea as fa,f as g,fa as ga,g as h,ga as ha,h as i,ha as ia,i as j,ia as ja,j as k,ja as ka,k as l,ka as la,l as m,la as ma,m as n,ma as na,n as o,na as oa,o as p,oa as pa,p as q,pa as qa,q as r,qa as ra,r as s,ra as sa,s as t,sa as ta,t as u,ta as ua,u as v,ua as va,v as w,va as wa,w as x,wa as xa,x as y,xa as ya,y as z,ya as za,z as A,za as Aa}from"./chunk-JOBMLOGZ.js";import{Ba as a}from"./chunk-QDAWQNBQ.js";import"./chunk-C6Q5SG76.js";export{l as APP_BASE_HREF,ka as AsyncPipe,i as BrowserPlatformLocation,za as CommonModule,xa as CurrencyPipe,pa as DATE_PIPE_DEFAULT_OPTIONS,oa as DATE_PIPE_DEFAULT_TIMEZONE,f as DOCUMENT,qa as DatePipe,va as DecimalPipe,r as FormStyle,t as FormatWidth,n as HashLocationStrategy,ra as I18nPluralPipe,sa as I18nSelectPipe,a as IMAGE_CONFIG,Ia as IMAGE_LOADER,ta as JsonPipe,ua as KeyValuePipe,h as LOCATION_INITIALIZED,o as Location,k as LocationStrategy,la as LowerCasePipe,Z as NgClass,_ as NgComponentOutlet,aa as NgFor,aa as NgForOf,$ as NgForOfContext,ba as NgIf,ca as NgIfContext,W as NgLocaleLocalization,V as NgLocalization,Pa as NgOptimizedImage,ga as NgPlural,ha as NgPluralCase,ia as NgStyle,da as NgSwitch,ea as NgSwitchCase,fa as NgSwitchDefault,ja as NgTemplateOutlet,p as NumberFormatStyle,u as NumberSymbol,Oa as PRECONNECT_CHECK_BLOCKLIST,m as PathLocationStrategy,wa as PercentPipe,g as PlatformLocation,q as Plural,ya as SlicePipe,ma as TitleCasePipe,s as TranslationWidth,na as UpperCasePipe,Ea as VERSION,Fa as ViewportScroller,v as WeekDay,Ha as XhrFactory,S as formatCurrency,R as formatDate,U as formatNumber,T as formatPercent,P as getCurrencySymbol,K as getLocaleCurrencyCode,J as getLocaleCurrencyName,I as getLocaleCurrencySymbol,D as getLocaleDateFormat,F as getLocaleDateTimeFormat,y as getLocaleDayNames,x as getLocaleDayPeriods,O as getLocaleDirection,A as getLocaleEraNames,M as getLocaleExtraDayPeriodRules,N as getLocaleExtraDayPeriods,B as getLocaleFirstDayOfWeek,w as getLocaleId,z as getLocaleMonthNames,H as getLocaleNumberFormat,G as getLocaleNumberSymbol,L as getLocalePluralCase,E as getLocaleTimeFormat,C as getLocaleWeekEndRange,Q as getNumberOfCurrencyDigits,Ca as isPlatformBrowser,Da as isPlatformServer,Ja as provideCloudflareLoader,Ka as provideCloudinaryLoader,La as provideImageKitLoader,Ma as provideImgixLoader,Na as provideNetlifyLoader,X as registerLocaleData,d as \u0275DomAdapter,Ga as \u0275NullViewportScroller,Aa as \u0275PLATFORM_BROWSER_ID,Ba as \u0275PLATFORM_SERVER_ID,e as \u0275PlatformNavigation,b as \u0275getDOM,j as \u0275normalizeQueryParams,Y as \u0275parseCookieValue,c as \u0275setRootDomAdapter};
@@ -0,0 +1 @@
1
+ import"./chunk-C6Q5SG76.js";var o=[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",loadComponent:()=>import("./chunk-WFFJ2OJB.js")},{path:"destination",loadComponent:()=>import("./chunk-XCKJXWMS.js")},{path:"source-data",loadComponent:()=>import("./chunk-JZFEEATO.js")},{path:"schedule",loadComponent:()=>import("./chunk-7ZJVPVCQ.js")},{path:"options",loadComponent:()=>import("./chunk-FZNTP67Z.js")}];export{o as default};
@@ -0,0 +1,2 @@
1
+ import{Ga as ye,X as pe,e as fe}from"./chunk-JOBMLOGZ.js";import{$ as ce,E as oe,M as ie,P as A,S as O,V as E,X as v,Y as m,Z as ae,aa as le,d as J,k as re,ka as de,l as V,ma as he,p as x,w as te,ya as ue,z as se}from"./chunk-QDAWQNBQ.js";import{a as ne}from"./chunk-C6Q5SG76.js";var L=class{},U=class{},g=class r{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(e){e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(`
2
+ `).forEach(n=>{let t=n.indexOf(":");if(t>0){let s=n.slice(0,t),i=n.slice(t+1).trim();this.addHeaderEntry(s,i)}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((n,t)=>{this.addHeaderEntry(t,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([n,t])=>{this.setHeaderEntries(n,t)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let n=this.headers.get(e.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,n){return this.clone({name:e,value:n,op:"a"})}set(e,n){return this.clone({name:e,value:n,op:"s"})}delete(e,n){return this.clone({name:e,value:n,op:"d"})}maybeSetNormalizedName(e,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,e)}init(){this.lazyInit&&(this.lazyInit instanceof r?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(n=>{this.headers.set(n,e.headers.get(n)),this.normalizedNames.set(n,e.normalizedNames.get(n))})}clone(e){let n=new r;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof r?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n}applyUpdate(e){let n=e.name.toLowerCase();switch(e.op){case"a":case"s":let t=e.value;if(typeof t=="string"&&(t=[t]),t.length===0)return;this.maybeSetNormalizedName(e.name,n);let s=(e.op==="a"?this.headers.get(n):void 0)||[];s.push(...t),this.headers.set(n,s);break;case"d":let i=e.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else{let o=this.headers.get(n);if(!o)return;o=o.filter(d=>i.indexOf(d)===-1),o.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,o)}break}}addHeaderEntry(e,n){let t=e.toLowerCase();this.maybeSetNormalizedName(e,t),this.headers.has(t)?this.headers.get(t).push(n):this.headers.set(t,[n])}setHeaderEntries(e,n){let t=(Array.isArray(n)?n:[n]).map(i=>i.toString()),s=e.toLowerCase();this.headers.set(s,t),this.maybeSetNormalizedName(e,s)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>e(this.normalizedNames.get(n),this.headers.get(n)))}};var W=class{encodeKey(e){return me(e)}encodeValue(e){return me(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function De(r,e){let n=new Map;return r.length>0&&r.replace(/^\?/,"").split("&").forEach(s=>{let i=s.indexOf("="),[o,d]=i==-1?[e.decodeKey(s),""]:[e.decodeKey(s.slice(0,i)),e.decodeValue(s.slice(i+1))],a=n.get(o)||[];a.push(d),n.set(o,a)}),n}var ke=/%(\d[a-f0-9])/gi,xe={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function me(r){return encodeURIComponent(r).replace(ke,(e,n)=>xe[n]??e)}function S(r){return`${r}`}var R=class r{map;encoder;updates=null;cloneFrom=null;constructor(e={}){if(this.encoder=e.encoder||new W,e.fromString){if(e.fromObject)throw new A(2805,!1);this.map=De(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(n=>{let t=e.fromObject[n],s=Array.isArray(t)?t.map(S):[S(t)];this.map.set(n,s)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let n=this.map.get(e);return n?n[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,n){return this.clone({param:e,value:n,op:"a"})}appendAll(e){let n=[];return Object.keys(e).forEach(t=>{let s=e[t];Array.isArray(s)?s.forEach(i=>{n.push({param:t,value:i,op:"a"})}):n.push({param:t,value:s,op:"a"})}),this.clone(n)}set(e,n){return this.clone({param:e,value:n,op:"s"})}delete(e,n){return this.clone({param:e,value:n,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let n=this.encoder.encodeKey(e);return this.map.get(e).map(t=>n+"="+this.encoder.encodeValue(t)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let n=new r({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(e),n}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 n=(e.op==="a"?this.map.get(e.param):void 0)||[];n.push(S(e.value)),this.map.set(e.param,n);break;case"d":if(e.value!==void 0){let t=this.map.get(e.param)||[],s=t.indexOf(S(e.value));s!==-1&&t.splice(s,1),t.length>0?this.map.set(e.param,t):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var q=class{map=new Map;set(e,n){return this.map.set(e,n),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 _e(r){switch(r){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function ge(r){return typeof ArrayBuffer<"u"&&r instanceof ArrayBuffer}function Te(r){return typeof Blob<"u"&&r instanceof Blob}function Ee(r){return typeof FormData<"u"&&r instanceof FormData}function Fe(r){return typeof URLSearchParams<"u"&&r instanceof URLSearchParams}var _="Content-Type",z="Accept",Q="X-Request-URL",be="text/plain",Pe="application/json",Ne=`${Pe}, ${be}, */*`,F=class r{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(e,n,t,s){this.url=n,this.method=e.toUpperCase();let i;if(_e(this.method)||s?(this.body=t!==void 0?t:null,i=s):i=t,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),this.transferCache=i.transferCache),this.headers??=new g,this.context??=new q,!this.params)this.params=new R,this.urlWithParams=n;else{let o=this.params.toString();if(o.length===0)this.urlWithParams=n;else{let d=n.indexOf("?"),a=d===-1?"?":d<n.length-1?"&":"";this.urlWithParams=n+a+o}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||ge(this.body)||Te(this.body)||Ee(this.body)||Fe(this.body)?this.body:this.body instanceof R?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||Ee(this.body)?null:Te(this.body)?this.body.type||null:ge(this.body)?null:typeof this.body=="string"?be:this.body instanceof R?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Pe:null}clone(e={}){let n=e.method||this.method,t=e.url||this.url,s=e.responseType||this.responseType,i=e.transferCache??this.transferCache,o=e.body!==void 0?e.body:this.body,d=e.withCredentials??this.withCredentials,a=e.reportProgress??this.reportProgress,f=e.headers||this.headers,p=e.params||this.params,y=e.context??this.context;return e.setHeaders!==void 0&&(f=Object.keys(e.setHeaders).reduce((P,h)=>P.set(h,e.setHeaders[h]),f)),e.setParams&&(p=Object.keys(e.setParams).reduce((P,h)=>P.set(h,e.setParams[h]),p)),new r(n,t,o,{params:p,headers:f,context:y,reportProgress:a,responseType:s,withCredentials:d,transferCache:i})}},b=function(r){return r[r.Sent=0]="Sent",r[r.UploadProgress=1]="UploadProgress",r[r.ResponseHeader=2]="ResponseHeader",r[r.DownloadProgress=3]="DownloadProgress",r[r.Response=4]="Response",r[r.User=5]="User",r}(b||{}),j=class{headers;status;statusText;url;ok;type;constructor(e,n=200,t="OK"){this.headers=e.headers||new g,this.status=e.status!==void 0?e.status:n,this.statusText=e.statusText||t,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},C=class r extends j{constructor(e={}){super(e)}type=b.ResponseHeader;clone(e={}){return new r({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})}},B=class r extends j{body;constructor(e={}){super(e),this.body=e.body!==void 0?e.body:null}type=b.Response;clone(e={}){return new r({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})}},w=class extends j{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}},Ae=200,Le=204;function $(r,e){return{body:e,headers:r.headers,context:r.context,observe:r.observe,params:r.params,reportProgress:r.reportProgress,responseType:r.responseType,withCredentials:r.withCredentials,transferCache:r.transferCache}}var Ue=(()=>{class r{handler;constructor(n){this.handler=n}request(n,t,s={}){let i;if(n instanceof F)i=n;else{let a;s.headers instanceof g?a=s.headers:a=new g(s.headers);let f;s.params&&(s.params instanceof R?f=s.params:f=new R({fromObject:s.params})),i=new F(n,t,s.body!==void 0?s.body:null,{headers:a,context:s.context,params:f,reportProgress:s.reportProgress,responseType:s.responseType||"json",withCredentials:s.withCredentials,transferCache:s.transferCache})}let o=V(i).pipe(se(a=>this.handler.handle(a)));if(n instanceof F||s.observe==="events")return o;let d=o.pipe(te(a=>a instanceof B));switch(s.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return d.pipe(x(a=>{if(a.body!==null&&!(a.body instanceof ArrayBuffer))throw new A(2806,!1);return a.body}));case"blob":return d.pipe(x(a=>{if(a.body!==null&&!(a.body instanceof Blob))throw new A(2807,!1);return a.body}));case"text":return d.pipe(x(a=>{if(a.body!==null&&typeof a.body!="string")throw new A(2808,!1);return a.body}));case"json":default:return d.pipe(x(a=>a.body))}case"response":return d;default:throw new A(2809,!1)}}delete(n,t={}){return this.request("DELETE",n,t)}get(n,t={}){return this.request("GET",n,t)}head(n,t={}){return this.request("HEAD",n,t)}jsonp(n,t){return this.request("JSONP",n,{params:new R().append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,t={}){return this.request("OPTIONS",n,t)}patch(n,t,s={}){return this.request("PATCH",n,$(s,t))}post(n,t,s={}){return this.request("POST",n,$(s,t))}put(n,t,s={}){return this.request("PUT",n,$(s,t))}static \u0275fac=function(t){return new(t||r)(v(L))};static \u0275prov=O({token:r,factory:r.\u0275fac})}return r})(),je=/^\)\]\}',?\n/;function ve(r){if(r.url)return r.url;let e=Q.toLocaleLowerCase();return r.headers.get(e)}var Me=new E(""),G=(()=>{class r{fetchImpl=m(K,{optional:!0})?.fetch??((...n)=>globalThis.fetch(...n));ngZone=m(he);handle(n){return new J(t=>{let s=new AbortController;return this.doRequest(n,s.signal,t).then(Y,i=>t.error(new w({error:i}))),()=>s.abort()})}async doRequest(n,t,s){let i=this.createRequestInit(n),o;try{let h=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,ne({signal:t},i)));Be(h),s.next({type:b.Sent}),o=await h}catch(h){s.error(new w({error:h,status:h.status??0,statusText:h.statusText,url:n.urlWithParams,headers:h.headers}));return}let d=new g(o.headers),a=o.statusText,f=ve(o)??n.urlWithParams,p=o.status,y=null;if(n.reportProgress&&s.next(new C({headers:d,status:p,statusText:a,url:f})),o.body){let h=o.headers.get("content-length"),I=[],c=o.body.getReader(),l=0,T,M,u=typeof Zone<"u"&&Zone.current;await this.ngZone.runOutsideAngular(async()=>{for(;;){let{done:N,value:k}=await c.read();if(N)break;if(I.push(k),l+=k.length,n.reportProgress){M=n.responseType==="text"?(M??"")+(T??=new TextDecoder).decode(k,{stream:!0}):void 0;let ee=()=>s.next({type:b.DownloadProgress,total:h?+h:void 0,loaded:l,partialText:M});u?u.run(ee):ee()}}});let D=this.concatChunks(I,l);try{let N=o.headers.get(_)??"";y=this.parseBody(n,D,N)}catch(N){s.error(new w({error:N,headers:new g(o.headers),status:o.status,statusText:o.statusText,url:ve(o)??n.urlWithParams}));return}}p===0&&(p=y?Ae:0),p>=200&&p<300?(s.next(new B({body:y,headers:d,status:p,statusText:a,url:f})),s.complete()):s.error(new w({error:y,headers:d,status:p,statusText:a,url:f}))}parseBody(n,t,s){switch(n.responseType){case"json":let i=new TextDecoder().decode(t).replace(je,"");return i===""?null:JSON.parse(i);case"text":return new TextDecoder().decode(t);case"blob":return new Blob([t],{type:s});case"arraybuffer":return t.buffer}}createRequestInit(n){let t={},s=n.withCredentials?"include":void 0;if(n.headers.forEach((i,o)=>t[i]=o.join(",")),n.headers.has(z)||(t[z]=Ne),!n.headers.has(_)){let i=n.detectContentTypeHeader();i!==null&&(t[_]=i)}return{body:n.serializeBody(),method:n.method,headers:t,credentials:s}}concatChunks(n,t){let s=new Uint8Array(t),i=0;for(let o of n)s.set(o,i),i+=o.length;return s}static \u0275fac=function(t){return new(t||r)};static \u0275prov=O({token:r,factory:r.\u0275fac})}return r})(),K=class{};function Y(){}function Be(r){r.then(Y,Y)}function Se(r,e){return e(r)}function ze(r,e,n){return(t,s)=>le(n,()=>e(t,i=>r(i,s)))}var Z=new E(""),Ce=new E(""),Xe=new E("",{providedIn:"root",factory:()=>!0});var we=(()=>{class r extends L{backend;injector;chain=null;pendingTasks=m(de);contributeToStability=m(Xe);constructor(n,t){super(),this.backend=n,this.injector=t}handle(n){if(this.chain===null){let t=Array.from(new Set([...this.injector.get(Z),...this.injector.get(Ce,[])]));this.chain=t.reduceRight((s,i)=>ze(s,i,this.injector),Se)}if(this.contributeToStability){let t=this.pendingTasks.add();return this.chain(n,s=>this.backend.handle(s)).pipe(oe(()=>this.pendingTasks.remove(t)))}else return this.chain(n,t=>this.backend.handle(t))}static \u0275fac=function(t){return new(t||r)(v(U),v(ce))};static \u0275prov=O({token:r,factory:r.\u0275fac})}return r})();var Je=/^\)\]\}',?\n/,Ve=RegExp(`^${Q}:`,"m");function $e(r){return"responseURL"in r&&r.responseURL?r.responseURL:Ve.test(r.getAllResponseHeaders())?r.getResponseHeader(Q):null}var Re=(()=>{class r{xhrFactory;constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new A(-2800,!1);let t=this.xhrFactory;return(t.\u0275loadImpl?re(t.\u0275loadImpl()):V(null)).pipe(ie(()=>new J(i=>{let o=t.build();if(o.open(n.method,n.urlWithParams),n.withCredentials&&(o.withCredentials=!0),n.headers.forEach((c,l)=>o.setRequestHeader(c,l.join(","))),n.headers.has(z)||o.setRequestHeader(z,Ne),!n.headers.has(_)){let c=n.detectContentTypeHeader();c!==null&&o.setRequestHeader(_,c)}if(n.responseType){let c=n.responseType.toLowerCase();o.responseType=c!=="json"?c:"text"}let d=n.serializeBody(),a=null,f=()=>{if(a!==null)return a;let c=o.statusText||"OK",l=new g(o.getAllResponseHeaders()),T=$e(o)||n.url;return a=new C({headers:l,status:o.status,statusText:c,url:T}),a},p=()=>{let{headers:c,status:l,statusText:T,url:M}=f(),u=null;l!==Le&&(u=typeof o.response>"u"?o.responseText:o.response),l===0&&(l=u?Ae:0);let D=l>=200&&l<300;if(n.responseType==="json"&&typeof u=="string"){let N=u;u=u.replace(Je,"");try{u=u!==""?JSON.parse(u):null}catch(k){u=N,D&&(D=!1,u={error:k,text:u})}}D?(i.next(new B({body:u,headers:c,status:l,statusText:T,url:M||void 0})),i.complete()):i.error(new w({error:u,headers:c,status:l,statusText:T,url:M||void 0}))},y=c=>{let{url:l}=f(),T=new w({error:c,status:o.status||0,statusText:o.statusText||"Unknown Error",url:l||void 0});i.error(T)},P=!1,h=c=>{P||(i.next(f()),P=!0);let l={type:b.DownloadProgress,loaded:c.loaded};c.lengthComputable&&(l.total=c.total),n.responseType==="text"&&o.responseText&&(l.partialText=o.responseText),i.next(l)},I=c=>{let l={type:b.UploadProgress,loaded:c.loaded};c.lengthComputable&&(l.total=c.total),i.next(l)};return o.addEventListener("load",p),o.addEventListener("error",y),o.addEventListener("timeout",y),o.addEventListener("abort",y),n.reportProgress&&(o.addEventListener("progress",h),d!==null&&o.upload&&o.upload.addEventListener("progress",I)),o.send(d),i.next({type:b.Sent}),()=>{o.removeEventListener("error",y),o.removeEventListener("abort",y),o.removeEventListener("load",p),o.removeEventListener("timeout",y),n.reportProgress&&(o.removeEventListener("progress",h),d!==null&&o.upload&&o.upload.removeEventListener("progress",I)),o.readyState!==o.DONE&&o.abort()}})))}static \u0275fac=function(t){return new(t||r)(v(ye))};static \u0275prov=O({token:r,factory:r.\u0275fac})}return r})(),Oe=new E(""),Ge="XSRF-TOKEN",We=new E("",{providedIn:"root",factory:()=>Ge}),qe="X-XSRF-TOKEN",Ke=new E("",{providedIn:"root",factory:()=>qe}),X=class{},Ye=(()=>{class r{doc;platform;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(n,t,s){this.doc=n,this.platform=t,this.cookieName=s}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=pe(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(t){return new(t||r)(v(fe),v(ue),v(We))};static \u0275prov=O({token:r,factory:r.\u0275fac})}return r})();function Qe(r,e){let n=r.url.toLowerCase();if(!m(Oe)||r.method==="GET"||r.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return e(r);let t=m(X).getToken(),s=m(Ke);return t!=null&&!r.headers.has(s)&&(r=r.clone({headers:r.headers.set(s,t)})),e(r)}var H=function(r){return r[r.Interceptors=0]="Interceptors",r[r.LegacyInterceptors=1]="LegacyInterceptors",r[r.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",r[r.NoXsrfProtection=3]="NoXsrfProtection",r[r.JsonpSupport=4]="JsonpSupport",r[r.RequestsMadeViaParent=5]="RequestsMadeViaParent",r[r.Fetch=6]="Fetch",r}(H||{});function Ie(r,e){return{\u0275kind:r,\u0275providers:e}}function wn(...r){let e=[Ue,Re,we,{provide:L,useExisting:we},{provide:U,useFactory:()=>m(Me,{optional:!0})??m(Re)},{provide:Z,useValue:Qe,multi:!0},{provide:Oe,useValue:!0},{provide:X,useClass:Ye}];for(let n of r)e.push(...n.\u0275providers);return ae(e)}function Rn(r){return Ie(H.Interceptors,r.map(e=>({provide:Z,useValue:e,multi:!0})))}function bn(){return Ie(H.Fetch,[G,{provide:Me,useExisting:G},{provide:U,useExisting:G}])}export{g as a,B as b,Ue as c,wn as d,Rn as e,bn as f};
@@ -1,4 +1,4 @@
1
- import{g as Xt}from"./chunk-D6FCW3QQ.js";import{a as Wt,b as zt,o as Z}from"./chunk-4U7FEVBB.js";import{a as Ht}from"./chunk-KYQC46J2.js";import{a as Kt}from"./chunk-CAGBL2MP.js";import"./chunk-DNHLTHLR.js";import"./chunk-6CRYB4HA.js";import"./chunk-22GS6UCG.js";import{a as U}from"./chunk-Z5NZYMJN.js";import{a as ft,b as gt,d as Dt,e as St,f as Et,h as Ot,i as xt,k as kt,l as Nt,m as Rt,n as ht,o as yt,p as It,r as $t}from"./chunk-UJWW7PS7.js";import{b as Ct}from"./chunk-KJ4O6F3R.js";import{a as ut,c as Tt}from"./chunk-ETEYALHD.js";import"./chunk-TS4YY2WO.js";import{a as wt,b as vt,d as At,e as Pt,i as Vt,l as Mt,n as bt,q as Gt,r as Bt,w as Lt,x as Ut}from"./chunk-NQVULKI2.js";import{c as dt}from"./chunk-6LUM2XU4.js";import{ia as Ft}from"./chunk-3WKDD2IN.js";import{$b as T,Ab as S,Ac as ct,Bb as E,Cb as r,Db as a,Eb as u,F as tt,Fb as v,Gb as A,Hb as M,Ib as x,Mc as K,Ob as N,Oc as mt,Pb as R,Qb as b,Rb as q,Sa as o,Sb as j,Tb as H,Ub as g,Vb as s,Yb as y,Z as w,Za as nt,ea as C,eb as it,ec as ot,fa as f,fc as at,gc as G,hc as p,ic as V,ja as et,jc as O,kb as F,kc as Q,mc as rt,nc as lt,oc as st,sc as pt,tb as c,tc as _t,uc as B,va as h,vb as X,wc as L,yb as d,zb as D}from"./chunk-Q3JJWGXW.js";import"./chunk-C6Q5SG76.js";var qt=["formRef"],jt=(n,i,t,e)=>({index:n,formView:i,formGroupName:"custom",destinationType:t,oauthField:e}),z=n=>({$implicit:n}),Qt=(n,i,t,e)=>({index:n,formView:i,formGroupName:"dynamic",destinationType:t,oauthField:e}),Zt=(n,i,t,e)=>({index:n,formView:i,formGroupName:"advanced",destinationType:t,oauthField:e}),Jt=(n,i,t,e)=>({index:n,formView:i,formGroupName:"advanced",asHttpOptions:!0,destinationType:t,oauthField:e}),Yt=()=>({maxWidth:"700px",width:"100%"});function te(n,i){n&1&&(N(0,2,2),u(1,"spk-icon"),R())}function ee(n,i){n&1&&b(0,2,3)}function ne(n,i){if(n&1){let t=x();N(0,2,1),r(1,"button",18),g("click",function(){C(t);let l=s();return f(l.testDestination())}),F(2,te,2,0)(3,ee,1,0),a(),R()}if(n&2){let t=s();o(),X("success",t.successfulTest()),o(),d(t.successfulTest()?2:3)}}function ie(n,i){if(n&1){let t=x();r(0,"p",24),g("click",function(){C(t);let l=s();return f(l.removeDestinationFormGroup(l.destinationCount()-1))}),N(1,5),u(2,"span",25),R(),a()}}function oe(n,i){if(n&1){let t=x();r(0,"div",30),g("click",function(){let l=C(t).$implicit,_=s(2);return f(_.addDestinationFormGroup(l.key))}),r(1,"h3"),p(2),a(),r(3,"p"),p(4),a()()}if(n&2){let t=i.$implicit;o(2),V(t.displayName),o(2),V(t.description)}}function ae(n,i){if(n&1){let t=x();r(0,"button",31),g("click",function(){let l=C(t).$implicit,_=s(2);return f(_.addDestinationFormGroup(l.key))}),p(1),a()}if(n&2){let t=i.$implicit;o(),O(" ",t.displayName," ")}}function re(n,i){if(n&1&&(r(0,"div",26),S(1,oe,5,2,"div",27,D),a(),r(3,"spk-menu")(4,"button",28),b(5,6),a(),v(6,17),S(7,ae,2,1,"button",29,D),A(),a()),n&2){let t=s();o(),E(t.destinationTypeOptionsFocused()),o(6),E(t.destinationTypeOptionsNotFocused())}}function le(n,i){n&1&&M(0)}function se(n,i){if(n&1&&F(0,le,1,0,"ng-container",36),n&2){let t,e=i.$implicit,l=i.$index;s();let _=G(29),m=s();c("ngTemplateOutlet",_)("ngTemplateOutletContext",B(7,z,L(2,jt,l,e,(t=m.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,m.destinationFormPair().oauthField)))}}function pe(n,i){n&1&&M(0)}function _e(n,i){if(n&1&&F(0,pe,1,0,"ng-container",36),n&2){let t,e=i.$implicit,l=i.$index;s();let _=G(29),m=s();c("ngTemplateOutlet",_)("ngTemplateOutletContext",B(7,z,L(2,Qt,l,e,(t=m.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,m.destinationFormPair().oauthField)))}}function ce(n,i){if(n&1){let t=x();N(0,7,1),r(1,"button",31),g("click",function(){let l=C(t).$implicit,_=s(2);return f(_.addAdvancedFormPair(l,0))}),a(),R()}if(n&2){let t=i.$implicit;o(),q(t.name),j(0)}}function me(n,i){n&1&&M(0)}function Fe(n,i){if(n&1&&F(0,me,1,0,"ng-container",36),n&2){let t,e=i.$implicit,l=i.$index;s();let _=G(29),m=s();c("ngTemplateOutlet",_)("ngTemplateOutletContext",B(7,z,L(2,Zt,l,e,(t=m.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,m.destinationFormPair().oauthField)))}}function de(n,i){if(n&1){let t=x();N(0,8,1),r(1,"button",31),g("click",function(){let l=C(t).$implicit,_=s(2);return f(_.addHttpOption(l,0))}),a(),R()}if(n&2){let t=i.$implicit;o(),q(t.name),j(0)}}function ue(n,i){n&1&&M(0)}function Te(n,i){if(n&1&&F(0,ue,1,0,"ng-container",36),n&2){let t,e=i.$implicit,l=i.$index;s();let _=G(29),m=s();c("ngTemplateOutlet",_)("ngTemplateOutletContext",B(7,z,L(2,Jt,l,e,(t=m.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,m.destinationFormPair().oauthField)))}}function Ce(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function fe(n,i){if(n&1&&(r(0,"app-file-tree",39)(1,"label",46),p(2),F(3,Ce,3,1,"spk-tooltip",47),a(),u(4,"input",48),a()),n&2){let t,e=s().$implicit,l=s(2);c("startingPath",l.getFormFieldValue(0,e.formGroupName,e.formView.name))("accepts",e.formView.accepts)("showFiles",!0)("hideShortcuts",!0)("showHiddenNodes",!0)("selectFiles",!0),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name)}}function ge(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function De(n,i){if(n&1&&(r(0,"app-file-tree",40)(1,"label",46),p(2),F(3,ge,3,1,"spk-tooltip",47),a(),u(4,"input",48),a()),n&2){let t,e=s().$implicit,l=s(2);c("hideShortcuts",!0)("startingPath",l.getFormFieldValue(0,e.formGroupName,e.formView.name)),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name)}}function Se(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function Ee(n,i){n&1&&(r(0,"spk-icon",50),p(1,"link"),a())}function Oe(n,i){n&1&&(r(0,"spk-icon",50),p(1,"envelope"),a())}function xe(n,i){n&1&&(r(0,"spk-icon",50),p(1,"textbox"),a())}function ke(n,i){if(n&1&&(r(0,"spk-form-field")(1,"label",46),p(2),F(3,Se,3,1,"spk-tooltip",47),a(),u(4,"input",49),F(5,Ee,2,0,"spk-icon",50)(6,Oe,2,0,"spk-icon",50)(7,xe,2,0,"spk-icon",50),a()),n&2){let t,e=s().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name),c("type",e.formView.type==="Email"?"email":"text"),o(),d(e.formView.type==="Path"?5:e.formView.type==="Email"?6:7)}}function Ne(n,i){if(n&1){let t=x();r(0,"span",54),g("click",function(){C(t);let l=s(2).$implicit,_=s(2);return f(_.oauthStartTokenCreation(l.destinationType))}),p(1,"AuthID"),a()}}function Re(n,i){n&1&&(r(0,"spk-icon",50),p(1,"password"),a())}function he(n,i){if(n&1){let t=x();r(0,"spk-icon",55),g("click",function(){C(t);let l=s(2).$implicit;return f(l.formView.showPassword=!l.formView.showPassword)}),p(1," eye "),a()}}function ye(n,i){if(n&1){let t=x();r(0,"spk-icon",55),g("click",function(){C(t);let l=s(2).$implicit;return f(l.formView.showPassword=!l.formView.showPassword)}),p(1," eye-slash "),a()}}function Ie(n,i){if(n&1&&(r(0,"spk-form-field")(1,"label",46),p(2),a(),u(3,"input",51),F(4,Ne,2,0,"span",52)(5,Re,2,0,"spk-icon",50)(6,he,2,0,"spk-icon",53)(7,ye,2,0,"spk-icon",53),a()),n&2){let t,e=s().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name),c("type",e.formView.showPassword?"text":"password"),o(),d(e.oauthField===e.formView.name?4:5),o(2),d(e.formView.showPassword?6:7)}}function $e(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function we(n,i){if(n&1&&(r(0,"spk-option",56),p(1),a()),n&2){let t=i.$implicit;c("value",t.value),o(),Q(" ",t.key," ",t.value?"("+t.value+")":""," ")}}function ve(n,i){if(n&1&&S(0,we,2,3,"spk-option",56,D),n&2){let t=s(2).$implicit,e=s(2);E(t.formView.loadOptions(e.injector)())}}function Ae(n,i){if(n&1&&(r(0,"spk-option",56),p(1),a()),n&2){let t=i.$implicit;c("value",t),o(),V(t)}}function Pe(n,i){if(n&1&&S(0,Ae,2,2,"spk-option",56,D),n&2){let t=s(2).$implicit;E(t.formView.options)}}function Ve(n,i){if(n&1&&(r(0,"spk-select",41)(1,"label",46),p(2),F(3,$e,3,1,"spk-tooltip",47),a(),u(4,"input",48),F(5,ve,2,0)(6,Pe,2,0),a()),n&2){let t,e=s().$implicit;c("hideClearButton",!0),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name),o(),d(e.formView.loadOptions?5:-1),o(),d(e.formView.options?6:-1)}}function Me(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function be(n,i){if(n&1&&(r(0,"spk-option",56),p(1),a()),n&2){let t=i.$implicit;c("value",t.value),o(),Q(" ",t.key," ",t.value?"("+t.value+")":""," ")}}function Ge(n,i){if(n&1&&S(0,be,2,3,"spk-option",56,D),n&2){let t=s(2).$implicit,e=s(2);E(t.formView.loadOptions(e.injector)())}}function Be(n,i){if(n&1&&(r(0,"spk-option",56),p(1),a()),n&2){let t=i.$implicit;c("value",t),o(),V(t)}}function Le(n,i){if(n&1&&S(0,Be,2,2,"spk-option",56,D),n&2){let t=s(2).$implicit;E(t.formView.options)}}function Ue(n,i){if(n&1&&(r(0,"spk-select",42)(1,"label",46),p(2),F(3,Me,3,1,"spk-tooltip",47),a(),u(4,"input",57),F(5,Ge,2,0)(6,Le,2,0),a()),n&2){let t,e=s().$implicit;c("isFreeText",!0),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name),o(),d(e.formView.loadOptions?5:-1),o(),d(e.formView.options?6:-1)}}function He(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function Ke(n,i){if(n&1&&(r(0,"spk-option",56),p(1),a()),n&2){let t=i.$implicit;c("value",t),o(),V(t)}}function We(n,i){if(n&1&&(r(0,"div",43)(1,"label",46),p(2),F(3,He,3,1,"spk-tooltip",47),a(),r(4,"div",58)(5,"spk-form-field"),u(6,"input",59),r(7,"spk-icon",50),p(8,"resize"),a()(),r(9,"spk-select"),u(10,"label")(11,"input",60),S(12,Ke,2,2,"spk-option",56,D),a()()()),n&2){let t,e=s().$implicit,l=s(2);c("formGroupName",e.formView.name),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(3),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(6),E(l.sizeOptions())}}function ze(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function Xe(n,i){if(n&1&&(r(0,"spk-form-field")(1,"label",46),p(2),F(3,ze,3,1,"spk-tooltip",47),a(),u(4,"input",61),r(5,"spk-icon",50),p(6,"numpad"),a()()),n&2){let t,e=s().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name)}}function qe(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function je(n,i){if(n&1&&(r(0,"spk-toggle",44)(1,"label",46),p(2),F(3,qe,3,1,"spk-tooltip",47),a(),u(4,"input",62),a()),n&2){let t,e=s().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name)}}function Qe(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function Ze(n,i){n&1&&(r(0,"spk-option",64),p(1,"None"),a()),n&2&&c("value","None")}function Je(n,i){if(n&1&&(r(0,"spk-option",56),p(1),u(2,"spk-checkbox",65),a()),n&2){let t=s().$implicit;c("value",t),o(),O(" ",t," ")}}function Ye(n,i){if(n&1&&F(0,Ze,2,1,"spk-option",64)(1,Je,3,2,"spk-option",56),n&2){let t=i.$implicit;d(t==="None"?0:1)}}function tn(n,i){if(n&1&&(r(0,"spk-select",45)(1,"label",46),p(2),F(3,Qe,3,1,"spk-tooltip",47),a(),u(4,"input",63),S(5,Ye,2,1,null,null,D),a()),n&2){let t,e=s().$implicit;c("selectMultiple",!0),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),y("formControlName",e.formView.name),o(),E(e.formView.options)}}function en(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function nn(n,i){if(n&1&&(r(0,"spk-form-field")(1,"label",46),p(2),F(3,en,3,1,"spk-tooltip",47),a(),u(4,"input",48),a()),n&2){let t,e=s().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name)}}function on(n,i){if(n&1){let t=x();r(0,"button",66),g("click",function(){C(t);let l=s().$implicit,_=s(2);return f(_.removeFormView(l.formView,0))}),r(1,"spk-icon"),p(2,"x-circle"),a()()}}function an(n,i){if(n&1&&(r(0,"div",37),v(1,38),F(2,fe,5,17,"app-file-tree",39)(3,De,5,13,"app-file-tree",40)(4,ke,8,13,"spk-form-field")(5,Ie,8,13,"spk-form-field")(6,Ve,7,14,"spk-select",41)(7,Ue,7,14,"spk-select",42)(8,We,14,11,"div",43)(9,Xe,7,11,"spk-form-field")(10,je,5,11,"spk-toggle",44)(11,tn,7,8,"spk-select",45)(12,nn,5,11,"spk-form-field"),A(),F(13,on,3,0,"button",28),a()),n&2){let t=i.$implicit;X("single-field",t.formGroupName!=="advanced"),o(),c("formGroupName",t.formGroupName),o(),d(t.formView.type==="FileTree"?2:t.formView.type==="FolderTree"?3:t.formView.type==="String"||t.formView.type==="Path"||t.formView.type==="Email"?4:t.formView.type==="Password"?5:t.formView.type==="Enumeration"?6:t.formView.type==="NonValidatedSelectableString"?7:t.formView.type==="Size"?8:t.formView.type==="Integer"?9:t.formView.type==="Boolean"?10:t.formView.type==="Flags"?11:t.formView.type==="Timespan"?12:-1),o(11),d(t.formGroupName==="advanced"?13:-1)}}function rn(n,i){if(n&1&&(v(0,19)(1,32),S(2,se,1,9,"ng-container",null,D),S(4,_e,1,9,"ng-container",null,D),r(6,"app-toggle-card",33),v(7,34),N(8,7),r(9,"spk-menu")(10,"button",35),u(11,"spk-icon"),a(),v(12,17),S(13,ce,2,1,"button",29,D),A(),a(),R(),A(),S(15,Fe,1,9,"ng-container",null,D),a(),r(17,"app-toggle-card",33),v(18,34),N(19,8),r(20,"spk-menu")(21,"button",35),u(22,"spk-icon"),a(),v(23,17),S(24,de,2,1,"button",29,D),A(),a(),R(),A(),S(26,Te,1,9,"ng-container",null,D),a(),F(28,an,14,5,"ng-template",null,1,ct),A()()),n&2){let t=s();o(2),E(t.destinationFormPair().custom),o(2),E(t.destinationFormPair().dynamic),o(2),c("disallowToggle",!0),o(4),c("disabled",t.notSelectedAdvancedFormPair().length===0),o(3),E(t.notSelectedAdvancedFormPair()),o(2),E(t.selectedAdvancedFormPair()),o(2),c("disallowToggle",!0),o(4),c("disabled",t.notSelectedHttpOptions().length===0),o(3),E(t.notSelectedHttpOptions()),o(2),E(t.selectedHttpOptions())}}function ln(n,i){if(n&1){let t=x();r(0,"spk-dialog",67),st("isOpenChange",function(l){C(t);let _=s();return lt(_.targetUrlDialogOpen,l)||(_.targetUrlDialogOpen=l),f(l)}),r(1,"header",68)(2,"h2"),b(3,9),a(),r(4,"spk-alert",69),b(5,10),a()(),r(6,"div",70)(7,"spk-form-field"),u(8,"textarea",71),a()(),r(9,"footer",72)(10,"button",21),g("click",function(){C(t);let l=s();return f(l.closeTargetUrlDialog(!1))}),p(11,"Cancel"),a(),r(12,"button",73),g("click",function(){C(t);let l=s();return f(l.closeTargetUrlDialog(!0))}),N(13,11),u(14,"spk-icon"),R(),a()()()}if(n&2){let t=s();rt("isOpen",t.targetUrlDialogOpen),c("options",_t(3,Yt)),o(8),c("formControl",t.targetUrlCtrl)}}var sn=["Bytes","KB","MB","GB","TB","PB"],W=new It,vn=(n={destinations:[]})=>W.group({destinations:W.array(n.destinations)}),An=({key:n,customGroup:i,dynamicGroup:t,advancedGroup:e})=>W.group({destinationType:W.control(n),custom:i,dynamic:t,advanced:e}),J=class n{#l=w(Tt);#s=w(ut);#p=w(dt);#t=w(Z);#i=w(Ct);#e=w(Pt);#n=w(Xt);injector=w(et);formRef=nt.required("formRef");destinationForm=this.#t.destinationForm;destinationFormPair=this.#t.destinationFormPair;selectedAdvancedFormPair=this.#t.selectedAdvancedFormPair;notSelectedAdvancedFormPair=this.#t.notSelectedAdvancedFormPair;selectedHttpOptions=this.#t.selectedHttpOptions;notSelectedHttpOptions=this.#t.notSelectedHttpOptions;destinationOptions=this.#t.destinationOptions;destinationFormSignal=this.#t.destinationFormSignal;destinationCount=K(()=>this.destinationFormSignal()?.destinations?.length??0);sizeOptions=h(sn);successfulTest=h(!1);destinationTypeOptionsInFocus=h(["file","ssh","s3","gcs","googledrive","azure"]);destinationTypeOptions=h(zt.map(i=>({key:i.customKey??i.key,customKey:i.customKey??null,displayName:i.displayName,description:i.description})));destinationTypeOptionsFocused=K(()=>{let i=this.destinationTypeOptionsInFocus(),t=this.destinationTypeOptions();return i.map(e=>t.find(l=>l.key===e))});destinationTypeOptionsNotFocused=K(()=>{let i=this.destinationTypeOptionsInFocus();return this.destinationTypeOptions().filter(e=>!i.includes(e.key))});targetUrlEffect=mt(()=>{if(this.destinationFormSignal(),this.destinationForm.valid){let i=this.#t.getCurrentTargetUrl();this.#n.updateTargetUrl(i[0])}else this.#n.updateTargetUrl(null)});ngOnInit(){let i=this.#n.destinationTargetUrl();i&&this.#t.updateFieldsFromTargetUrl(i)}getFormFieldValue(i,t,e){return((this.destinationForm.controls.destinations.controls?.[i]).controls?.[t]).controls[e].value}addDestinationFormGroup(i){this.#t.addDestinationFormGroup(i)}addAdvancedFormPair(i,t){this.#t.addAdvancedFormPair(i,t)}removeFormView(i,t){this.#t.removeAdvancedFormPair(i,t)}addHttpOption(i,t){this.#t.addHttpOption(i,t)}targetUrlCtrl=new Et;targetUrlInitial=h(null);targetUrlDialogOpen=h(!1);openTargetUrlDialog(){let t=this.#t.getCurrentTargetUrl()[0];this.targetUrlCtrl.setValue(t),this.targetUrlInitial.set(t),this.targetUrlDialogOpen.set(!0)}closeTargetUrlDialog(i=!1){this.targetUrlDialogOpen.set(!1);let t=this.targetUrlCtrl.value,e=this.targetUrlInitial();!i||t===e||this.#t.updateFieldsFromTargetUrl(this.targetUrlCtrl.value)}testDestination(i=0){let e=this.#t.getCurrentTargetUrl()[i];e&&this.#i.postApiV1RemoteoperationTest({requestBody:{path:e}}).subscribe({next:()=>{this.successfulTest.set(!0),setTimeout(()=>{this.successfulTest.set(!1)},3e3)},error:l=>{let _=l.error.error.Error;if(_==="missing-folder"&&this.#e.open(U,{data:{title:$localize`Create folder`,message:$localize`The remote destination folder does not exist, do you want to create it?`},closed:m=>{m&&this.#i.postApiV1RemoteoperationCreate({requestBody:{path:e}}).subscribe()}}),_.startsWith("incorrect-cert:")){let m=_.split("incorrect-cert:")[1];this.#e.open(U,{maxWidth:"500px",data:{title:$localize`Trust the certificate`,message:$localize`The server is using a certificate that is not trusted.
1
+ import{g as Xt}from"./chunk-GTXOAJP6.js";import{a as Wt,b as zt,o as Z}from"./chunk-RABUX7PS.js";import{a as Ht}from"./chunk-NRGTIGVX.js";import{a as Kt}from"./chunk-EGT5S7A4.js";import"./chunk-DNHLTHLR.js";import"./chunk-MHZPUJQF.js";import"./chunk-PTG2C2YJ.js";import{a as U}from"./chunk-XFRVNXF6.js";import{a as ft,b as gt,d as Dt,e as St,f as Et,h as Ot,i as xt,k as kt,l as Nt,m as Rt,n as ht,o as yt,p as It,r as $t}from"./chunk-LFQXDL42.js";import{b as Ct}from"./chunk-TQE7OBBP.js";import{a as ut,c as Tt}from"./chunk-ZRPJ3QZT.js";import"./chunk-NVTD7IP4.js";import{a as wt,b as vt,d as At,e as Pt,i as Vt,l as Mt,n as bt,r as Gt,s as Bt,x as Lt,y as Ut}from"./chunk-IZCX3KB3.js";import{c as dt}from"./chunk-6SIZVSDW.js";import{ia as Ft}from"./chunk-JOBMLOGZ.js";import{$b as T,Ab as S,Ac as ct,Bb as E,Cb as r,Db as a,E as tt,Eb as u,Fb as v,Gb as A,Hb as M,Ib as x,Mc as K,Ob as N,Oc as mt,Pb as R,Qb as b,Ra as o,Rb as q,Sb as j,Tb as H,Ub as g,Vb as s,Y as w,Ya as nt,Yb as y,da as C,ea as f,eb as it,ec as ot,fc as at,gc as G,hc as p,ia as et,ic as V,jc as O,kb as F,kc as Q,mc as rt,nc as lt,oc as st,sc as pt,tb as c,tc as _t,ua as h,uc as B,vb as X,wc as L,yb as d,zb as D}from"./chunk-QDAWQNBQ.js";import"./chunk-C6Q5SG76.js";var qt=["formRef"],jt=(n,i,t,e)=>({index:n,formView:i,formGroupName:"custom",destinationType:t,oauthField:e}),z=n=>({$implicit:n}),Qt=(n,i,t,e)=>({index:n,formView:i,formGroupName:"dynamic",destinationType:t,oauthField:e}),Zt=(n,i,t,e)=>({index:n,formView:i,formGroupName:"advanced",destinationType:t,oauthField:e}),Jt=(n,i,t,e)=>({index:n,formView:i,formGroupName:"advanced",asHttpOptions:!0,destinationType:t,oauthField:e}),Yt=()=>({maxWidth:"700px",width:"100%"});function te(n,i){n&1&&(N(0,2,2),u(1,"spk-icon"),R())}function ee(n,i){n&1&&b(0,2,3)}function ne(n,i){if(n&1){let t=x();N(0,2,1),r(1,"button",18),g("click",function(){C(t);let l=s();return f(l.testDestination())}),F(2,te,2,0)(3,ee,1,0),a(),R()}if(n&2){let t=s();o(),X("success",t.successfulTest()),o(),d(t.successfulTest()?2:3)}}function ie(n,i){if(n&1){let t=x();r(0,"p",24),g("click",function(){C(t);let l=s();return f(l.removeDestinationFormGroup(l.destinationCount()-1))}),N(1,5),u(2,"span",25),R(),a()}}function oe(n,i){if(n&1){let t=x();r(0,"div",30),g("click",function(){let l=C(t).$implicit,_=s(2);return f(_.addDestinationFormGroup(l.key))}),r(1,"h3"),p(2),a(),r(3,"p"),p(4),a()()}if(n&2){let t=i.$implicit;o(2),V(t.displayName),o(2),V(t.description)}}function ae(n,i){if(n&1){let t=x();r(0,"button",31),g("click",function(){let l=C(t).$implicit,_=s(2);return f(_.addDestinationFormGroup(l.key))}),p(1),a()}if(n&2){let t=i.$implicit;o(),O(" ",t.displayName," ")}}function re(n,i){if(n&1&&(r(0,"div",26),S(1,oe,5,2,"div",27,D),a(),r(3,"spk-menu")(4,"button",28),b(5,6),a(),v(6,17),S(7,ae,2,1,"button",29,D),A(),a()),n&2){let t=s();o(),E(t.destinationTypeOptionsFocused()),o(6),E(t.destinationTypeOptionsNotFocused())}}function le(n,i){n&1&&M(0)}function se(n,i){if(n&1&&F(0,le,1,0,"ng-container",36),n&2){let t,e=i.$implicit,l=i.$index;s();let _=G(29),m=s();c("ngTemplateOutlet",_)("ngTemplateOutletContext",B(7,z,L(2,jt,l,e,(t=m.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,m.destinationFormPair().oauthField)))}}function pe(n,i){n&1&&M(0)}function _e(n,i){if(n&1&&F(0,pe,1,0,"ng-container",36),n&2){let t,e=i.$implicit,l=i.$index;s();let _=G(29),m=s();c("ngTemplateOutlet",_)("ngTemplateOutletContext",B(7,z,L(2,Qt,l,e,(t=m.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,m.destinationFormPair().oauthField)))}}function ce(n,i){if(n&1){let t=x();N(0,7,1),r(1,"button",31),g("click",function(){let l=C(t).$implicit,_=s(2);return f(_.addAdvancedFormPair(l,0))}),a(),R()}if(n&2){let t=i.$implicit;o(),q(t.name),j(0)}}function me(n,i){n&1&&M(0)}function Fe(n,i){if(n&1&&F(0,me,1,0,"ng-container",36),n&2){let t,e=i.$implicit,l=i.$index;s();let _=G(29),m=s();c("ngTemplateOutlet",_)("ngTemplateOutletContext",B(7,z,L(2,Zt,l,e,(t=m.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,m.destinationFormPair().oauthField)))}}function de(n,i){if(n&1){let t=x();N(0,8,1),r(1,"button",31),g("click",function(){let l=C(t).$implicit,_=s(2);return f(_.addHttpOption(l,0))}),a(),R()}if(n&2){let t=i.$implicit;o(),q(t.name),j(0)}}function ue(n,i){n&1&&M(0)}function Te(n,i){if(n&1&&F(0,ue,1,0,"ng-container",36),n&2){let t,e=i.$implicit,l=i.$index;s();let _=G(29),m=s();c("ngTemplateOutlet",_)("ngTemplateOutletContext",B(7,z,L(2,Jt,l,e,(t=m.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,m.destinationFormPair().oauthField)))}}function Ce(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function fe(n,i){if(n&1&&(r(0,"app-file-tree",39)(1,"label",46),p(2),F(3,Ce,3,1,"spk-tooltip",47),a(),u(4,"input",48),a()),n&2){let t,e=s().$implicit,l=s(2);c("startingPath",l.getFormFieldValue(0,e.formGroupName,e.formView.name))("accepts",e.formView.accepts)("showFiles",!0)("hideShortcuts",!0)("showHiddenNodes",!0)("selectFiles",!0),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name)}}function ge(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function De(n,i){if(n&1&&(r(0,"app-file-tree",40)(1,"label",46),p(2),F(3,ge,3,1,"spk-tooltip",47),a(),u(4,"input",48),a()),n&2){let t,e=s().$implicit,l=s(2);c("hideShortcuts",!0)("startingPath",l.getFormFieldValue(0,e.formGroupName,e.formView.name)),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name)}}function Se(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function Ee(n,i){n&1&&(r(0,"spk-icon",50),p(1,"link"),a())}function Oe(n,i){n&1&&(r(0,"spk-icon",50),p(1,"envelope"),a())}function xe(n,i){n&1&&(r(0,"spk-icon",50),p(1,"textbox"),a())}function ke(n,i){if(n&1&&(r(0,"spk-form-field")(1,"label",46),p(2),F(3,Se,3,1,"spk-tooltip",47),a(),u(4,"input",49),F(5,Ee,2,0,"spk-icon",50)(6,Oe,2,0,"spk-icon",50)(7,xe,2,0,"spk-icon",50),a()),n&2){let t,e=s().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name),c("type",e.formView.type==="Email"?"email":"text"),o(),d(e.formView.type==="Path"?5:e.formView.type==="Email"?6:7)}}function Ne(n,i){if(n&1){let t=x();r(0,"span",54),g("click",function(){C(t);let l=s(2).$implicit,_=s(2);return f(_.oauthStartTokenCreation(l.destinationType))}),p(1,"AuthID"),a()}}function Re(n,i){n&1&&(r(0,"spk-icon",50),p(1,"password"),a())}function he(n,i){if(n&1){let t=x();r(0,"spk-icon",55),g("click",function(){C(t);let l=s(2).$implicit;return f(l.formView.showPassword=!l.formView.showPassword)}),p(1," eye "),a()}}function ye(n,i){if(n&1){let t=x();r(0,"spk-icon",55),g("click",function(){C(t);let l=s(2).$implicit;return f(l.formView.showPassword=!l.formView.showPassword)}),p(1," eye-slash "),a()}}function Ie(n,i){if(n&1&&(r(0,"spk-form-field")(1,"label",46),p(2),a(),u(3,"input",51),F(4,Ne,2,0,"span",52)(5,Re,2,0,"spk-icon",50)(6,he,2,0,"spk-icon",53)(7,ye,2,0,"spk-icon",53),a()),n&2){let t,e=s().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name),c("type",e.formView.showPassword?"text":"password"),o(),d(e.oauthField===e.formView.name?4:5),o(2),d(e.formView.showPassword?6:7)}}function $e(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function we(n,i){if(n&1&&(r(0,"spk-option",56),p(1),a()),n&2){let t=i.$implicit;c("value",t.value),o(),Q(" ",t.key," ",t.value?"("+t.value+")":""," ")}}function ve(n,i){if(n&1&&S(0,we,2,3,"spk-option",56,D),n&2){let t=s(2).$implicit,e=s(2);E(t.formView.loadOptions(e.injector)())}}function Ae(n,i){if(n&1&&(r(0,"spk-option",56),p(1),a()),n&2){let t=i.$implicit;c("value",t),o(),V(t)}}function Pe(n,i){if(n&1&&S(0,Ae,2,2,"spk-option",56,D),n&2){let t=s(2).$implicit;E(t.formView.options)}}function Ve(n,i){if(n&1&&(r(0,"spk-select",41)(1,"label",46),p(2),F(3,$e,3,1,"spk-tooltip",47),a(),u(4,"input",48),F(5,ve,2,0)(6,Pe,2,0),a()),n&2){let t,e=s().$implicit;c("hideClearButton",!0),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name),o(),d(e.formView.loadOptions?5:-1),o(),d(e.formView.options?6:-1)}}function Me(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function be(n,i){if(n&1&&(r(0,"spk-option",56),p(1),a()),n&2){let t=i.$implicit;c("value",t.value),o(),Q(" ",t.key," ",t.value?"("+t.value+")":""," ")}}function Ge(n,i){if(n&1&&S(0,be,2,3,"spk-option",56,D),n&2){let t=s(2).$implicit,e=s(2);E(t.formView.loadOptions(e.injector)())}}function Be(n,i){if(n&1&&(r(0,"spk-option",56),p(1),a()),n&2){let t=i.$implicit;c("value",t),o(),V(t)}}function Le(n,i){if(n&1&&S(0,Be,2,2,"spk-option",56,D),n&2){let t=s(2).$implicit;E(t.formView.options)}}function Ue(n,i){if(n&1&&(r(0,"spk-select",42)(1,"label",46),p(2),F(3,Me,3,1,"spk-tooltip",47),a(),u(4,"input",57),F(5,Ge,2,0)(6,Le,2,0),a()),n&2){let t,e=s().$implicit;c("isFreeText",!0),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name),o(),d(e.formView.loadOptions?5:-1),o(),d(e.formView.options?6:-1)}}function He(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function Ke(n,i){if(n&1&&(r(0,"spk-option",56),p(1),a()),n&2){let t=i.$implicit;c("value",t),o(),V(t)}}function We(n,i){if(n&1&&(r(0,"div",43)(1,"label",46),p(2),F(3,He,3,1,"spk-tooltip",47),a(),r(4,"div",58)(5,"spk-form-field"),u(6,"input",59),r(7,"spk-icon",50),p(8,"resize"),a()(),r(9,"spk-select"),u(10,"label")(11,"input",60),S(12,Ke,2,2,"spk-option",56,D),a()()()),n&2){let t,e=s().$implicit,l=s(2);c("formGroupName",e.formView.name),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(3),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(6),E(l.sizeOptions())}}function ze(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function Xe(n,i){if(n&1&&(r(0,"spk-form-field")(1,"label",46),p(2),F(3,ze,3,1,"spk-tooltip",47),a(),u(4,"input",61),r(5,"spk-icon",50),p(6,"numpad"),a()()),n&2){let t,e=s().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name)}}function qe(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function je(n,i){if(n&1&&(r(0,"spk-toggle",44)(1,"label",46),p(2),F(3,qe,3,1,"spk-tooltip",47),a(),u(4,"input",62),a()),n&2){let t,e=s().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name)}}function Qe(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function Ze(n,i){n&1&&(r(0,"spk-option",64),p(1,"None"),a()),n&2&&c("value","None")}function Je(n,i){if(n&1&&(r(0,"spk-option",56),p(1),u(2,"spk-checkbox",65),a()),n&2){let t=s().$implicit;c("value",t),o(),O(" ",t," ")}}function Ye(n,i){if(n&1&&F(0,Ze,2,1,"spk-option",64)(1,Je,3,2,"spk-option",56),n&2){let t=i.$implicit;d(t==="None"?0:1)}}function tn(n,i){if(n&1&&(r(0,"spk-select",45)(1,"label",46),p(2),F(3,Qe,3,1,"spk-tooltip",47),a(),u(4,"input",63),S(5,Ye,2,1,null,null,D),a()),n&2){let t,e=s().$implicit;c("selectMultiple",!0),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),y("formControlName",e.formView.name),o(),E(e.formView.options)}}function en(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function nn(n,i){if(n&1&&(r(0,"spk-form-field")(1,"label",46),p(2),F(3,en,3,1,"spk-tooltip",47),a(),u(4,"input",48),a()),n&2){let t,e=s().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name)}}function on(n,i){if(n&1){let t=x();r(0,"button",66),g("click",function(){C(t);let l=s().$implicit,_=s(2);return f(_.removeFormView(l.formView,0))}),r(1,"spk-icon"),p(2,"x-circle"),a()()}}function an(n,i){if(n&1&&(r(0,"div",37),v(1,38),F(2,fe,5,17,"app-file-tree",39)(3,De,5,13,"app-file-tree",40)(4,ke,8,13,"spk-form-field")(5,Ie,8,13,"spk-form-field")(6,Ve,7,14,"spk-select",41)(7,Ue,7,14,"spk-select",42)(8,We,14,11,"div",43)(9,Xe,7,11,"spk-form-field")(10,je,5,11,"spk-toggle",44)(11,tn,7,8,"spk-select",45)(12,nn,5,11,"spk-form-field"),A(),F(13,on,3,0,"button",28),a()),n&2){let t=i.$implicit;X("single-field",t.formGroupName!=="advanced"),o(),c("formGroupName",t.formGroupName),o(),d(t.formView.type==="FileTree"?2:t.formView.type==="FolderTree"?3:t.formView.type==="String"||t.formView.type==="Path"||t.formView.type==="Email"?4:t.formView.type==="Password"?5:t.formView.type==="Enumeration"?6:t.formView.type==="NonValidatedSelectableString"?7:t.formView.type==="Size"?8:t.formView.type==="Integer"?9:t.formView.type==="Boolean"?10:t.formView.type==="Flags"?11:t.formView.type==="Timespan"?12:-1),o(11),d(t.formGroupName==="advanced"?13:-1)}}function rn(n,i){if(n&1&&(v(0,19)(1,32),S(2,se,1,9,"ng-container",null,D),S(4,_e,1,9,"ng-container",null,D),r(6,"app-toggle-card",33),v(7,34),N(8,7),r(9,"spk-menu")(10,"button",35),u(11,"spk-icon"),a(),v(12,17),S(13,ce,2,1,"button",29,D),A(),a(),R(),A(),S(15,Fe,1,9,"ng-container",null,D),a(),r(17,"app-toggle-card",33),v(18,34),N(19,8),r(20,"spk-menu")(21,"button",35),u(22,"spk-icon"),a(),v(23,17),S(24,de,2,1,"button",29,D),A(),a(),R(),A(),S(26,Te,1,9,"ng-container",null,D),a(),F(28,an,14,5,"ng-template",null,1,ct),A()()),n&2){let t=s();o(2),E(t.destinationFormPair().custom),o(2),E(t.destinationFormPair().dynamic),o(2),c("disallowToggle",!0),o(4),c("disabled",t.notSelectedAdvancedFormPair().length===0),o(3),E(t.notSelectedAdvancedFormPair()),o(2),E(t.selectedAdvancedFormPair()),o(2),c("disallowToggle",!0),o(4),c("disabled",t.notSelectedHttpOptions().length===0),o(3),E(t.notSelectedHttpOptions()),o(2),E(t.selectedHttpOptions())}}function ln(n,i){if(n&1){let t=x();r(0,"spk-dialog",67),st("isOpenChange",function(l){C(t);let _=s();return lt(_.targetUrlDialogOpen,l)||(_.targetUrlDialogOpen=l),f(l)}),r(1,"header",68)(2,"h2"),b(3,9),a(),r(4,"spk-alert",69),b(5,10),a()(),r(6,"div",70)(7,"spk-form-field"),u(8,"textarea",71),a()(),r(9,"footer",72)(10,"button",21),g("click",function(){C(t);let l=s();return f(l.closeTargetUrlDialog(!1))}),p(11,"Cancel"),a(),r(12,"button",73),g("click",function(){C(t);let l=s();return f(l.closeTargetUrlDialog(!0))}),N(13,11),u(14,"spk-icon"),R(),a()()()}if(n&2){let t=s();rt("isOpen",t.targetUrlDialogOpen),c("options",_t(3,Yt)),o(8),c("formControl",t.targetUrlCtrl)}}var sn=["Bytes","KB","MB","GB","TB","PB"],W=new It,vn=(n={destinations:[]})=>W.group({destinations:W.array(n.destinations)}),An=({key:n,customGroup:i,dynamicGroup:t,advancedGroup:e})=>W.group({destinationType:W.control(n),custom:i,dynamic:t,advanced:e}),J=class n{#l=w(Tt);#s=w(ut);#p=w(dt);#t=w(Z);#i=w(Ct);#e=w(Pt);#n=w(Xt);injector=w(et);formRef=nt.required("formRef");destinationForm=this.#t.destinationForm;destinationFormPair=this.#t.destinationFormPair;selectedAdvancedFormPair=this.#t.selectedAdvancedFormPair;notSelectedAdvancedFormPair=this.#t.notSelectedAdvancedFormPair;selectedHttpOptions=this.#t.selectedHttpOptions;notSelectedHttpOptions=this.#t.notSelectedHttpOptions;destinationOptions=this.#t.destinationOptions;destinationFormSignal=this.#t.destinationFormSignal;destinationCount=K(()=>this.destinationFormSignal()?.destinations?.length??0);sizeOptions=h(sn);successfulTest=h(!1);destinationTypeOptionsInFocus=h(["file","ssh","s3","gcs","googledrive","azure"]);destinationTypeOptions=h(zt.map(i=>({key:i.customKey??i.key,customKey:i.customKey??null,displayName:i.displayName,description:i.description})));destinationTypeOptionsFocused=K(()=>{let i=this.destinationTypeOptionsInFocus(),t=this.destinationTypeOptions();return i.map(e=>t.find(l=>l.key===e))});destinationTypeOptionsNotFocused=K(()=>{let i=this.destinationTypeOptionsInFocus();return this.destinationTypeOptions().filter(e=>!i.includes(e.key))});targetUrlEffect=mt(()=>{if(this.destinationFormSignal(),this.destinationForm.valid){let i=this.#t.getCurrentTargetUrl();this.#n.updateTargetUrl(i[0])}else this.#n.updateTargetUrl(null)});ngOnInit(){let i=this.#n.destinationTargetUrl();i&&this.#t.updateFieldsFromTargetUrl(i)}getFormFieldValue(i,t,e){return((this.destinationForm.controls.destinations.controls?.[i]).controls?.[t]).controls[e].value}addDestinationFormGroup(i){this.#t.addDestinationFormGroup(i)}addAdvancedFormPair(i,t){this.#t.addAdvancedFormPair(i,t)}removeFormView(i,t){this.#t.removeAdvancedFormPair(i,t)}addHttpOption(i,t){this.#t.addHttpOption(i,t)}targetUrlCtrl=new Et;targetUrlInitial=h(null);targetUrlDialogOpen=h(!1);openTargetUrlDialog(){let t=this.#t.getCurrentTargetUrl()[0];this.targetUrlCtrl.setValue(t),this.targetUrlInitial.set(t),this.targetUrlDialogOpen.set(!0)}closeTargetUrlDialog(i=!1){this.targetUrlDialogOpen.set(!1);let t=this.targetUrlCtrl.value,e=this.targetUrlInitial();!i||t===e||this.#t.updateFieldsFromTargetUrl(this.targetUrlCtrl.value)}testDestination(i=0){let e=this.#t.getCurrentTargetUrl()[i];e&&this.#i.postApiV1RemoteoperationTest({requestBody:{path:e}}).subscribe({next:()=>{this.successfulTest.set(!0),setTimeout(()=>{this.successfulTest.set(!1)},3e3)},error:l=>{let _=l.error.error.Error;if(_==="missing-folder"&&this.#e.open(U,{data:{title:$localize`Create folder`,message:$localize`The remote destination folder does not exist, do you want to create it?`},closed:m=>{m&&this.#i.postApiV1RemoteoperationCreate({requestBody:{path:e}}).subscribe()}}),_.startsWith("incorrect-cert:")){let m=_.split("incorrect-cert:")[1];this.#e.open(U,{maxWidth:"500px",data:{title:$localize`Trust the certificate`,message:$localize`The server is using a certificate that is not trusted.
2
2
  If this is a self-signed certificate, you can choose to trust this certificate.
3
3
  The server reported the certificate hash: ${m}`,confirmText:"Trust the certificate",cancelText:"Cancel"},closed:k=>{k&&this.#t.addHttpOptionByName("accept-specified-ssl-hash",m)}})}if(_.startsWith("incorrect-host-key:")){let m=_.split('incorrect-host-key:"')[1].split('",')[0],k=_.split('accepted-host-key:"')[1].split('",')[0];k?this.#e.open(U,{maxWidth:"500px",data:{title:$localize`The host key has changed`,message:$localize`The host key has changed, please check with the server administrator if this is correct,
4
4
  otherwise you could be the victim of a MAN-IN-THE-MIDDLE attack.
@@ -0,0 +1 @@
1
+ import{a as w,c as g}from"./chunk-2K3CR66C.js";import{b}from"./chunk-TQE7OBBP.js";import{E as f,Mc as d,N as m,S as i,V as v,Y as s,g as h,l as p,ua as e,y as S}from"./chunk-QDAWQNBQ.js";var k=new v("ENVIRONMENT");var r=class o{#n=s(b);#e=e("disconnected");#t=e(null);#o=e(-1);#i=e(0);#s=e(!1);#c=new h;connectionStatus=this.#e.asReadonly();serverState=this.#t.asReadonly();duration=s(w).relayIsEnabled()?"94s":"299s";start(){this.#s.set(!0),this.#c=new h,this.#r()}stop(){this.#c.next(),this.#c.complete(),this.#s.set(!1)}reconnect(){this.stop(),this.start()}reconnectIfNeeded(){console.log("reconnectIfNeeded"),!this.#s()&&this.reconnect()}#r(){this.#e.set("connecting"),this.#n.getApiV1Serverstate({lastEventId:this.#o(),longpoll:this.#o()>0,duration:this.duration}).pipe(m(this.#c),S(t=>(this.#l(t),p(null))),f(()=>{this.#h()})).subscribe(t=>{t&&this.#a(t)})}#a(t){this.#e.set("connected"),this.#t.set(t),this.#o.set(t.LastEventID||-1),this.#i.set(0)}#l(t){let n=this.#i()+1;this.#i.set(n),n>3&&this.#e.set("disconnected")}#h(){this.#s()&&this.#r()}static \u0275fac=function(n){return new(n||o)};static \u0275prov=i({token:o,factory:o.\u0275fac,providedIn:"root"})};var a=class o{#n=s(g);#e=s(k);#t=null;#o=e("disconnected");#i=e(null);shouldConnect=e(!0);connectionStatus=this.#o.asReadonly();serverState=this.#i.asReadonly();start(){this.#s(),this.shouldConnect.set(!0)}#s(){let t=this.#n.token();if(!t){console.error("No access token available");return}let n=window.location.protocol==="https:"?"wss:":"ws:",u=window.location.port?`:${window.location.port}`:"";window.location.port==="4200"&&(u=":8200");let N=window.location.hostname,C=`${n}//${N}${u}/notifications?token=${t}`;this.#o.set("connecting"),this.#t=new WebSocket(C),this.#t.onopen=()=>{console.log("WebSocket connection established"),this.#o.set("connected")},this.#t.onmessage=c=>{try{let l=JSON.parse(c.data);this.#i.set(l)}catch(l){console.error("Error parsing WebSocket message",l)}},this.#t.onclose=c=>{console.log("WebSocket connection closed",c),this.#o.set("disconnected"),this.shouldConnect()&&setTimeout(()=>this.#s(),5e3)},this.#t.onerror=c=>{console.error("WebSocket error",c),this.#o.set("disconnected")}}stop(){this.shouldConnect.set(!1),this.#t?.close()}reconnect(){this.#t?.close(),this.start()}reconnectIfNeeded(){this.#t?.readyState!==WebSocket.OPEN&&this.reconnect()}static \u0275fac=function(n){return new(n||o)};static \u0275prov=i({token:o,factory:o.\u0275fac,providedIn:"root"})};var y=class o{#n=s(a);#e=s(r);#t=e("longpoll");connectionStatus=d(()=>this.#t()==="websocket"?this.#n.connectionStatus():this.#e.connectionStatus());serverState=d(()=>this.#t()==="websocket"?this.#n.serverState():this.#e.serverState());setConnectionMethod(t){t==="websocket"?(this.#n.reconnectIfNeeded(),this.#e.stop()):(this.#e.reconnectIfNeeded(),this.#n.stop()),this.#t.set(t)}getConnectionMethod(){return this.#t()}static \u0275fac=function(n){return new(n||o)};static \u0275prov=i({token:o,factory:o.\u0275fac,providedIn:"root"})};export{k as a,y as b};
@@ -1 +1 @@
1
- import{b as m}from"./chunk-YBPSOGY5.js";import{b as N}from"./chunk-KJ4O6F3R.js";import{D as o,F as h,Mc as u,P as d,T as l,Z as r,l as c,va as s,w as f,z as p}from"./chunk-Q3JJWGXW.js";var v=class n{#e=r(N);#n=r(m);serverState=u(()=>{let t=this.#n.serverState();return t?.LastNotificationUpdateID&&this.updateLastNotificationEventId(t?.LastNotificationUpdateID),t});#o=s(-1);#s=s(!1);#t=s([]);#i=s([]);notifications=this.#t.asReadonly();init(){this.notifications().length===0&&this.getNotifications()}updateLastNotificationEventId(t){this.#o()!==t&&(this.#o.set(t),this.getNotifications())}getNotifications(){this.#s.set(!0),this.#e.getApiV1Notifications().pipe(o(1),d(t=>this.#t.set(t)),h(()=>this.#s.set(!1))).subscribe()}getNofication(t){this.#e.getApiV1NotificationById({id:t}).pipe(o(1)).subscribe()}deleteNotification(t){let i=this.#t(),e=i[t];this.#i.set(i),i.splice(t,1),console.log("notifications",i),this.#t.set(i),this.#e.deleteApiV1NotificationById({id:e.ID}).pipe(o(1)).subscribe({error:()=>{this.#t.set(this.#i()),this.#i.set([])}})}deleteAllNotifications(){let t=this.#t();this.#i.set(t),this.#t.set([]);let i=t.map(e=>this.#e.deleteApiV1NotificationById({id:e.ID}).pipe(p(()=>c(e))));f(i).pipe(o(1)).subscribe({next:e=>{let b=e.filter(a=>a!=null&&"ID"in a);this.#t.set(b),this.#i.set([])},error:()=>{this.#t.set(this.#i()),this.#i.set([])}})}static \u0275fac=function(i){return new(i||n)};static \u0275prov=l({token:n,factory:n.\u0275fac,providedIn:"root"})};export{v as a};
1
+ import{b as m}from"./chunk-7KWOTSVE.js";import{b as N}from"./chunk-TQE7OBBP.js";import{C as o,E as h,Mc as u,O as d,S as l,Y as r,l as c,ua as s,v as f,y as p}from"./chunk-QDAWQNBQ.js";var v=class n{#e=r(N);#n=r(m);serverState=u(()=>{let t=this.#n.serverState();return t?.LastNotificationUpdateID&&this.updateLastNotificationEventId(t?.LastNotificationUpdateID),t});#o=s(-1);#s=s(!1);#t=s([]);#i=s([]);notifications=this.#t.asReadonly();init(){this.notifications().length===0&&this.getNotifications()}updateLastNotificationEventId(t){this.#o()!==t&&(this.#o.set(t),this.getNotifications())}getNotifications(){this.#s.set(!0),this.#e.getApiV1Notifications().pipe(o(1),d(t=>this.#t.set(t)),h(()=>this.#s.set(!1))).subscribe()}getNofication(t){this.#e.getApiV1NotificationById({id:t}).pipe(o(1)).subscribe()}deleteNotification(t){let i=this.#t(),e=i[t];this.#i.set(i),i.splice(t,1),console.log("notifications",i),this.#t.set(i),this.#e.deleteApiV1NotificationById({id:e.ID}).pipe(o(1)).subscribe({error:()=>{this.#t.set(this.#i()),this.#i.set([])}})}deleteAllNotifications(){let t=this.#t();this.#i.set(t),this.#t.set([]);let i=t.map(e=>this.#e.deleteApiV1NotificationById({id:e.ID}).pipe(p(()=>c(e))));f(i).pipe(o(1)).subscribe({next:e=>{let b=e.filter(a=>a!=null&&"ID"in a);this.#t.set(b),this.#i.set([])},error:()=>{this.#t.set(this.#i()),this.#i.set([])}})}static \u0275fac=function(i){return new(i||n)};static \u0275prov=l({token:n,factory:n.\u0275fac,providedIn:"root"})};export{v as a};
@@ -0,0 +1 @@
1
+ import{k as a,l as b}from"./chunk-RABUX7PS.js";import"./chunk-NRGTIGVX.js";import"./chunk-EGT5S7A4.js";import"./chunk-DNHLTHLR.js";import"./chunk-MHZPUJQF.js";import"./chunk-PTG2C2YJ.js";import"./chunk-XFRVNXF6.js";import"./chunk-LFQXDL42.js";import"./chunk-TQE7OBBP.js";import"./chunk-ZRPJ3QZT.js";import"./chunk-NVTD7IP4.js";import"./chunk-IZCX3KB3.js";import"./chunk-6SIZVSDW.js";import"./chunk-JOBMLOGZ.js";import"./chunk-QDAWQNBQ.js";import"./chunk-C6Q5SG76.js";export{a as createScheduleForm,b as default};
@@ -1 +1 @@
1
- import{b as A}from"./chunk-6CRYB4HA.js";import{b as S}from"./chunk-KJ4O6F3R.js";import{c as M}from"./chunk-TS4YY2WO.js";import{o as P}from"./chunk-NQVULKI2.js";import"./chunk-6LUM2XU4.js";import"./chunk-3WKDD2IN.js";import{Cb as i,Db as r,Eb as _,F as p,Qb as C,Sa as c,Z as o,eb as g,hc as u,ic as E,kb as d,q as l,va as m,yb as f}from"./chunk-Q3JJWGXW.js";import"./chunk-C6Q5SG76.js";function G(t,e){t&1&&_(0,"spk-progress-bar",1)}var a=class t{#n=o(M);#e=o(S);isLoading=m(!0);generalInfo=A(this.#e.getApiV1Acknowledgements().pipe(l(e=>e.Acknowledgements),p(()=>this.isLoading.set(!1))));static \u0275fac=function(n){return new(n||t)};static \u0275cmp=g({type:t,selectors:[["app-general"]],decls:6,vars:2,consts:()=>{let e;return e=$localize`General`,[e,[1,"indeterminate","primary"]]},template:function(n,s){n&1&&(d(0,G,1,0,"spk-progress-bar",1),i(1,"section")(2,"h3"),C(3,0),r(),i(4,"div"),u(5),r()()),n&2&&(f(s.isLoading()?0:-1),c(5),E(s.generalInfo()))},dependencies:[P],styles:["[_nghost-%COMP%]{display:block;position:relative}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}section[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{white-space:pre-wrap}spk-progress-bar[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0}"],changeDetection:0})};export{a as default};
1
+ import{b as A}from"./chunk-MHZPUJQF.js";import{b as S}from"./chunk-TQE7OBBP.js";import{c as M}from"./chunk-NVTD7IP4.js";import{o as P}from"./chunk-IZCX3KB3.js";import"./chunk-6SIZVSDW.js";import"./chunk-JOBMLOGZ.js";import{Cb as i,Db as r,E as p,Eb as _,Qb as C,Ra as c,Y as o,eb as g,hc as u,ic as E,kb as d,p as l,ua as m,yb as f}from"./chunk-QDAWQNBQ.js";import"./chunk-C6Q5SG76.js";function G(t,e){t&1&&_(0,"spk-progress-bar",1)}var a=class t{#n=o(M);#e=o(S);isLoading=m(!0);generalInfo=A(this.#e.getApiV1Acknowledgements().pipe(l(e=>e.Acknowledgements),p(()=>this.isLoading.set(!1))));static \u0275fac=function(n){return new(n||t)};static \u0275cmp=g({type:t,selectors:[["app-general"]],decls:6,vars:2,consts:()=>{let e;return e=$localize`General`,[e,[1,"indeterminate","primary"]]},template:function(n,s){n&1&&(d(0,G,1,0,"spk-progress-bar",1),i(1,"section")(2,"h3"),C(3,0),r(),i(4,"div"),u(5),r()()),n&2&&(f(s.isLoading()?0:-1),c(5),E(s.generalInfo()))},dependencies:[P],styles:["[_nghost-%COMP%]{display:block;position:relative}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}section[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{white-space:pre-wrap}spk-progress-bar[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0}"],changeDetection:0})};export{a as default};
@@ -0,0 +1 @@
1
+ import{c as a,d as b}from"./chunk-GTXOAJP6.js";import"./chunk-NRGTIGVX.js";import"./chunk-EGT5S7A4.js";import"./chunk-MHZPUJQF.js";import"./chunk-PTG2C2YJ.js";import"./chunk-LFQXDL42.js";import"./chunk-TQE7OBBP.js";import"./chunk-ZRPJ3QZT.js";import"./chunk-NVTD7IP4.js";import"./chunk-IZCX3KB3.js";import"./chunk-6SIZVSDW.js";import"./chunk-JOBMLOGZ.js";import"./chunk-QDAWQNBQ.js";import"./chunk-C6Q5SG76.js";export{a as createEncryptionForm,b as default};
@@ -1 +1 @@
1
- import{a}from"./chunk-4RXB65JX.js";import{Oc as r,T as s,Z as i,va as e}from"./chunk-Q3JJWGXW.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-SRMNNICE.js";import{Oc as r,S as s,Y as i,ua as e}from"./chunk-QDAWQNBQ.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,2 +1,2 @@
1
- import{b as K}from"./chunk-6CRYB4HA.js";import{b as X}from"./chunk-KJ4O6F3R.js";import{a as z,d as J,g as q}from"./chunk-NQVULKI2.js";import"./chunk-6LUM2XU4.js";import"./chunk-3WKDD2IN.js";import{Ab as P,Bb as R,Cb as i,Db as a,Eb as g,Ib as u,Ob as A,Oc as W,Pb as D,Qa as E,Qb as y,Sa as l,Ub as S,Vb as f,Yb as w,Z as v,ea as d,eb as h,fa as _,hc as c,ic as C,jc as I,kb as k,kc as N,mc as $,nc as B,oc as V,pc as U,q as T,tb as F,tc as G,va as m,yb as x,zb as M}from"./chunk-Q3JJWGXW.js";import{a as b,b as O}from"./chunk-C6Q5SG76.js";var j=()=>({maxWidth:"700px",width:"100%"});function H(s,t){if(s&1&&(i(0,"a",9)(1,"spk-icon"),c(2,"link"),a()()),s&2){let e=f().$implicit;w("href",e.Url,E)}}function Q(s,t){if(s&1){let e=u();i(0,"div",2)(1,"h4"),c(2),k(3,H,3,1,"a",9),a(),i(4,"p"),c(5),g(6,"br"),i(7,"i"),c(8),a()(),i(9,"div",10)(10,"button",11),S("click",function(){let o=d(e).$implicit,r=f();return _(r.openLicense(o))}),A(11,1),g(12,"spk-icon"),D(),a()()()}if(s&2){let e=t.$implicit;l(2),N(" ",e.Title," - ",e.data==null?null:e.data.license," "),l(),x(e.Url?3:-1),l(2),I(" ",e.data==null?null:e.data.description," "),l(3),C(e.data==null?null:e.data.notes)}}var L=class s{#e=v(X);licenses=K(this.#e.getApiV1Licenses().pipe(T(t=>t.map(e=>O(b({},e),{data:e.Jsondata?JSON.parse(e.Jsondata):null})))));dialogIsOpen=m(!1);dialogLicense=m(null);#t=W(()=>{this.dialogLicense()&&this.dialogIsOpen.set(!0)});openLicense(t){this.dialogLicense.set(t)}closeLicense(){this.dialogIsOpen.set(!1),this.dialogLicense.set(null)}breakIntoLines(t){let e=t.split(`
1
+ import{b as K}from"./chunk-MHZPUJQF.js";import{b as X}from"./chunk-TQE7OBBP.js";import{a as z,d as J,g as q}from"./chunk-IZCX3KB3.js";import"./chunk-6SIZVSDW.js";import"./chunk-JOBMLOGZ.js";import{Ab as P,Bb as R,Cb as i,Db as a,Eb as g,Ib as u,Ob as A,Oc as W,Pa as E,Pb as D,Qb as y,Ra as l,Ub as S,Vb as f,Y as v,Yb as w,da as d,ea as _,eb as h,hc as c,ic as C,jc as I,kb as k,kc as N,mc as $,nc as B,oc as V,p as T,pc as U,tb as F,tc as G,ua as m,yb as x,zb as M}from"./chunk-QDAWQNBQ.js";import{a as b,b as O}from"./chunk-C6Q5SG76.js";var j=()=>({maxWidth:"700px",width:"100%"});function H(s,t){if(s&1&&(i(0,"a",9)(1,"spk-icon"),c(2,"link"),a()()),s&2){let e=f().$implicit;w("href",e.Url,E)}}function Q(s,t){if(s&1){let e=u();i(0,"div",2)(1,"h4"),c(2),k(3,H,3,1,"a",9),a(),i(4,"p"),c(5),g(6,"br"),i(7,"i"),c(8),a()(),i(9,"div",10)(10,"button",11),S("click",function(){let o=d(e).$implicit,r=f();return _(r.openLicense(o))}),A(11,1),g(12,"spk-icon"),D(),a()()()}if(s&2){let e=t.$implicit;l(2),N(" ",e.Title," - ",e.data==null?null:e.data.license," "),l(),x(e.Url?3:-1),l(2),I(" ",e.data==null?null:e.data.description," "),l(3),C(e.data==null?null:e.data.notes)}}var L=class s{#e=v(X);licenses=K(this.#e.getApiV1Licenses().pipe(T(t=>t.map(e=>O(b({},e),{data:e.Jsondata?JSON.parse(e.Jsondata):null})))));dialogIsOpen=m(!1);dialogLicense=m(null);#t=W(()=>{this.dialogLicense()&&this.dialogIsOpen.set(!0)});openLicense(t){this.dialogLicense.set(t)}closeLicense(){this.dialogIsOpen.set(!1),this.dialogLicense.set(null)}breakIntoLines(t){let e=t.split(`
2
2
  `),n="";for(let o=0;o<e.length;o++)n+=`<li>${e[o]}</li>`;return n}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=h({type:s,selectors:[["app-libraries"]],decls:15,vars:5,consts:()=>{let t;t=$localize`Libraries`;let e;return e=$localize` Details ${"\uFFFD#12\uFFFD"}:START_TAG_SPK_ICON:arrow-square-in${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SPK_ICON:`,[t,e,[1,"license"],[3,"isOpenChange","isOpen","options"],["header",""],["content",""],[1,"license-dialog"],["footer",""],["spk-button","","type","button",3,"click"],[3,"href"],[1,"actions"],["spk-button","",3,"click"]]},template:function(e,n){if(e&1){let o=u();i(0,"h3"),y(1,0),a(),P(2,Q,13,5,"div",2,M),i(4,"spk-dialog",3),V("isOpenChange",function(p){return d(o),B(n.dialogIsOpen,p)||(n.dialogIsOpen=p),_(p)}),i(5,"header",4)(6,"h3"),c(7),a()(),i(8,"div",5),U(9),i(10,"div",6),c(11),a()(),i(12,"footer",7)(13,"button",8),S("click",function(){return d(o),_(n.dialogLicense.set(null))}),c(14,"Close"),a()()()}if(e&2){let o,r;l(2),R(n.licenses()),l(2),$("isOpen",n.dialogIsOpen),F("options",G(4,j)),l(3),C((o=n.dialogLicense())==null?null:o.Title);let p=(r=(r=n.dialogLicense())==null?null:r.License)!==null&&r!==void 0?r:"";l(4),I(" ",p," ")}},dependencies:[z,q,J],styles:["[_nghost-%COMP%]{display:block}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}h4[_ngcontent-%COMP%]{font:var(--paragraph-10)}a[_ngcontent-%COMP%]{text-decoration:none}.license[_ngcontent-%COMP%]{padding:1rem;border-bottom:1px solid var(--base-level-40);display:flex;flex-direction:column;align-items:flex-start;gap:.5rem}.license[_ngcontent-%COMP%]:first-of-type{border-top:1px solid var(--base-level-40)}.license[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;gap:.25rem;align-items:center}.license-dialog[_ngcontent-%COMP%]{background-color:var(--base-level-10);color:var(--base-level-70);padding:2.5rem 2.5rem 2.5rem 1.5rem;border-radius:var(--shape-3);overflow:auto;max-height:31.25rem;white-space:pre;border:1px solid var(--base-level-40)}"],changeDetection:0})};export{L as default};
@@ -1 +1 @@
1
- import{a as u}from"./chunk-NQVULKI2.js";import{$a as d,Cb as o,Db as n,Sa as g,Ub as h,Wb as _,Xb as a,eb as p,hc as s,kb as m,ra as r,vb as f,yb as C}from"./chunk-Q3JJWGXW.js";var v=[[["","title",""]],[["","description",""]],[["","action",""]],"*"],P=["[title]","[description]","[action]","*"];function M(e,l){e&1&&s(0,"Title")}function T(e,l){e&1&&(o(0,"spk-icon"),s(1,"caret-down"),n())}var c=class e{isActive=d(!1);disallowToggle=r(!1);ngOnInit(){this.disallowToggle()&&this.isActive.set(!0)}toggle(){this.isActive.set(!this.isActive())}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=p({type:e,selectors:[["app-toggle-card"]],hostVars:2,hostBindings:function(t,i){t&2&&f("active",i.isActive())},inputs:{isActive:[1,"isActive"],disallowToggle:[1,"disallowToggle"]},outputs:{isActive:"isActiveChange"},ngContentSelectors:P,decls:11,vars:1,consts:[[1,"title"],[3,"click"],[1,"actions"],[1,"content"]],template:function(t,i){t&1&&(_(v),o(0,"header")(1,"div",0)(2,"h3",1),h("click",function(){return i.disallowToggle()||i.toggle()}),a(3,0,null,M,1,0),m(5,T,2,0,"spk-icon"),n(),a(6,1),n(),o(7,"div",2),a(8,2),n()(),o(9,"div",3),a(10,3),n()),t&2&&(g(5),C(i.disallowToggle()?-1:5))},dependencies:[u],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;border-radius:var(--shape-3);background-color:var(--base-level-20)}.active[_nghost-%COMP%] .content[_ngcontent-%COMP%]{max-height:1000px;transition:max-height 1s linear;padding:0 1rem 1rem}.active[_nghost-%COMP%] spk-icon[_ngcontent-%COMP%]{transform:rotate(180deg)}[_nghost-%COMP%] h3[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;font:var(--paragraph-10);cursor:pointer;-webkit-user-select:none;user-select:none}[_nghost-%COMP%] spk-icon[_ngcontent-%COMP%]{transform:rotate(0);transform-origin:center;transition:transform .2s ease}header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem}header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;flex:1 0}header[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]:empty{display:none}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;padding:0 1rem;overflow:hidden;max-height:0;transition:max-height .25s linear,padding .25s linear}.content[_ngcontent-%COMP%]:empty{display:none}"],changeDetection:0})};export{c as a};
1
+ import{a as u}from"./chunk-IZCX3KB3.js";import{$a as d,Cb as o,Db as n,Ra as g,Ub as h,Wb as _,Xb as a,eb as p,hc as s,kb as m,qa as r,vb as f,yb as C}from"./chunk-QDAWQNBQ.js";var v=[[["","title",""]],[["","description",""]],[["","action",""]],"*"],P=["[title]","[description]","[action]","*"];function M(e,l){e&1&&s(0,"Title")}function T(e,l){e&1&&(o(0,"spk-icon"),s(1,"caret-down"),n())}var c=class e{isActive=d(!1);disallowToggle=r(!1);ngOnInit(){this.disallowToggle()&&this.isActive.set(!0)}toggle(){this.isActive.set(!this.isActive())}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=p({type:e,selectors:[["app-toggle-card"]],hostVars:2,hostBindings:function(t,i){t&2&&f("active",i.isActive())},inputs:{isActive:[1,"isActive"],disallowToggle:[1,"disallowToggle"]},outputs:{isActive:"isActiveChange"},ngContentSelectors:P,decls:11,vars:1,consts:[[1,"title"],[3,"click"],[1,"actions"],[1,"content"]],template:function(t,i){t&1&&(_(v),o(0,"header")(1,"div",0)(2,"h3",1),h("click",function(){return i.disallowToggle()||i.toggle()}),a(3,0,null,M,1,0),m(5,T,2,0,"spk-icon"),n(),a(6,1),n(),o(7,"div",2),a(8,2),n()(),o(9,"div",3),a(10,3),n()),t&2&&(g(5),C(i.disallowToggle()?-1:5))},dependencies:[u],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;border-radius:var(--shape-3);background-color:var(--base-level-20)}.active[_nghost-%COMP%] .content[_ngcontent-%COMP%]{max-height:1000px;transition:max-height 1s linear;padding:0 1rem 1rem}.active[_nghost-%COMP%] spk-icon[_ngcontent-%COMP%]{transform:rotate(180deg)}[_nghost-%COMP%] h3[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;font:var(--paragraph-10);cursor:pointer;-webkit-user-select:none;user-select:none}[_nghost-%COMP%] spk-icon[_ngcontent-%COMP%]{transform:rotate(0);transform-origin:center;transition:transform .2s ease}header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem}header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;flex:1 0}header[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]:empty{display:none}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;padding:0 1rem;overflow:hidden;max-height:0;transition:max-height .25s linear,padding .25s linear}.content[_ngcontent-%COMP%]:empty{display:none}"],changeDetection:0})};export{c as a};
@@ -1 +1 @@
1
- import{ua as m}from"./chunk-3WKDD2IN.js";import{Z as s,hb as p}from"./chunk-Q3JJWGXW.js";var f=class a{decimalPipe=s(m);transform(t,e=!1){if(!t||t===0||(typeof t=="string"&&(t=parseInt(t)),isNaN(t)))return"";let r=this.#t(),n=r?["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"]:["Bytes","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],i=Math.floor(Math.log(t)/Math.log(r?1e3:1024));i=Math.min(i,n.length-1);let l=t/Math.pow(r?1e3:1024,i),o=this.decimalPipe.transform(l,"1.0-2");return o?`${o} ${e?n[i]:n[i].replace("Bytes","B")}`:""}#t(){if(navigator.userAgentData?.platform.toLowerCase().includes("mac"))return!0;let t=["mac","macintosh","os x","apple"],e=((navigator.userAgent||navigator.platform||navigator.vendor)??"").toLowerCase();return e?t.some(r=>e.includes(r)):!1}static \u0275fac=function(e){return new(e||a)};static \u0275pipe=p({name:"bytes",type:a,pure:!0})};export{f as a};
1
+ import{ua as m}from"./chunk-JOBMLOGZ.js";import{Y as s,hb as p}from"./chunk-QDAWQNBQ.js";var f=class a{decimalPipe=s(m);transform(t,e=!1){if(!t||t===0||(typeof t=="string"&&(t=parseInt(t)),isNaN(t)))return"";let r=this.#t(),n=r?["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"]:["Bytes","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],i=Math.floor(Math.log(t)/Math.log(r?1e3:1024));i=Math.min(i,n.length-1);let l=t/Math.pow(r?1e3:1024,i),o=this.decimalPipe.transform(l,"1.0-2");return o?`${o} ${e?n[i]:n[i].replace("Bytes","B")}`:""}#t(){if(navigator.userAgentData?.platform.toLowerCase().includes("mac"))return!0;let t=["mac","macintosh","os x","apple"],e=((navigator.userAgent||navigator.platform||navigator.vendor)??"").toLowerCase();return e?t.some(r=>e.includes(r)):!1}static \u0275fac=function(e){return new(e||a)};static \u0275pipe=p({name:"bytes",type:a,pure:!0})};export{f as a};
@@ -0,0 +1 @@
1
+ import{i as a,j as b}from"./chunk-RABUX7PS.js";import"./chunk-NRGTIGVX.js";import"./chunk-EGT5S7A4.js";import"./chunk-DNHLTHLR.js";import"./chunk-MHZPUJQF.js";import"./chunk-PTG2C2YJ.js";import"./chunk-XFRVNXF6.js";import"./chunk-LFQXDL42.js";import"./chunk-TQE7OBBP.js";import"./chunk-ZRPJ3QZT.js";import"./chunk-NVTD7IP4.js";import"./chunk-IZCX3KB3.js";import"./chunk-6SIZVSDW.js";import"./chunk-JOBMLOGZ.js";import"./chunk-QDAWQNBQ.js";import"./chunk-C6Q5SG76.js";export{a as createOptionsForm,b as default};
@@ -0,0 +1 @@
1
+ import{a as j}from"./chunk-NRGTIGVX.js";import{a as he}from"./chunk-EGT5S7A4.js";import{b as U}from"./chunk-MHZPUJQF.js";import{a as Oe,b as h,d as M,e as k,h as L,j as de,l as $,o as y,p as D,r as A}from"./chunk-LFQXDL42.js";import{b as I}from"./chunk-TQE7OBBP.js";import{a as P,c as d}from"./chunk-ZRPJ3QZT.js";import{a as b,g as v,l as fe,o as Ce,p as Re,r as Ne,s as Pe,x as Ie}from"./chunk-IZCX3KB3.js";import{pa as K}from"./chunk-JOBMLOGZ.js";import{Ab as ce,Bb as ue,C as se,Cb as r,Db as a,E as O,Eb as l,Fb as X,Gb as z,I as ae,Ib as x,Ob as c,Oc as H,Pb as u,Qb as m,Ra as S,Rb as Se,S as le,Sb as Fe,Ub as T,Vb as B,Y as _,da as C,ea as R,eb as N,hc as Y,kb as V,kc as me,sc as Ee,tb as F,ua as p,v as re,vb as _e,xc as Te,yb as G,zb as pe,zc as ge}from"./chunk-QDAWQNBQ.js";var Me=new D,$e=()=>Me.group({passphrase:Me.control("")}),J=class n{#t=_(I);#e=_(f);#o=_(d);#i=_(P);encryptionForm=this.#e.encryptionForm;creatingTemporaryBackup=p(!1);next(){let t=this.#e.destinationTargetUrl();if(!t)throw new Error("No target URL");this.creatingTemporaryBackup.set(!0);let e=this.encryptionForm.value?.passphrase??null,o=[{Name:"--no-encryption",Value:"true"}];e&&(o=[{Name:"--passphrase",Value:e}]),this.#t.postApiV1Backups({requestBody:{Backup:{TargetURL:t,Settings:o}},temporary:!0}).pipe(O(()=>this.creatingTemporaryBackup.set(!1))).subscribe({next:i=>{let s=i.ID;this.#e.getBackup(s),this.#o.navigate([`/restore-draft/${s}`])},error:i=>{console.error(i)}})}back(){this.#e.isFileRestore()?this.#o.navigate(["encryption"],{relativeTo:this.#i.parent}):this.#e.exit()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=N({type:n,selectors:[["app-restore-encryption"]],decls:12,vars:1,consts:()=>{let t;t=$localize`Enter backup passphrase if defined.`;let e;e=$localize`Password`;let o;o=$localize`${"\uFFFD#8\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let i;return i=$localize`${"\uFFFD#11\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#11\uFFFD"}:CLOSE_TAG_SPK_ICON: Continue `,[e,o,i,[3,"submit","formGroup"],["for","password"],["type","password","id","password","placeholder",t,"formControlName","passphrase"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"]]},template:function(e,o){e&1&&(r(0,"form",3),T("submit",function(){return o.next()}),r(1,"spk-form-field")(2,"label",4),m(3,0),a(),l(4,"input",5),a(),r(5,"div",6)(6,"button",7),T("click",function(){return o.back()}),c(7,1),l(8,"spk-icon"),u(),a(),r(9,"button",8),c(10,2),l(11,"spk-icon"),u(),a()()()),e&2&&F("formGroup",o.encryptionForm)},dependencies:[A,L,h,M,k,$,y,fe,b,v],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};function Ae(n,t){n&1&&l(0,"spk-progress-bar",8)}function be(n,t){if(n&1&&(r(0,"spk-option",14),Y(1),Te(2,"date"),a()),n&2){let e=t.$implicit;F("value",e.Version),S(),me("",e.Version,": ",ge(2,3,e.Time,"medium"),"")}}function ve(n,t){if(n&1){let e=x();l(0,"spk-progress-bar",8),r(1,"button",10),T("click",function(){C(e);let i=B(2);return R(i.abortLoading())}),m(2,4),a()}}function we(n,t){if(n&1&&(r(0,"app-file-tree",15)(1,"label",16),m(2,5),a(),l(3,"input",17),a()),n&2){let e=B(3);F("rootPath",e.rootPath())("backupSettings",e.backupSettings())("multiSelect",!0)("showFiles",!0)}}function Ge(n,t){if(n&1&&V(0,we,4,4,"app-file-tree",15),n&2){let e=B(2);G((e.isDraft()&&!e.isRepairing()||!e.isDraft())&&e.backupSettings()?0:-1)}}function xe(n,t){if(n&1&&(r(0,"spk-select",12),l(1,"input",13),ce(2,be,3,6,"spk-option",14,pe),a(),V(4,ve,3,0)(5,Ge,1,1)),n&2){let e=B();F("displayFn",e.displayFn())("hideClearButton",!0),S(2),ue(e.versionOptions()),S(2),G(e.isDraft()&&e.isRepairing()||e.versionOptionsLoading()||e.loadingRootPath()?4:-1),S(),G(e.showFileTree()?5:-1)}}var q=new D,ye=()=>q.group({filesToRestore:q.control(""),selectedOption:q.control(null),passphrase:q.control(null)}),Z=class n{#t=_(I);#e=_(f);#o=_(d);#i=_(P);#n=_(K);selectFilesForm=this.#e.selectFilesForm;selectFilesFormSignal=this.#e.selectFilesFormSignal;selectOptionSignal=this.#e.selectOptionSignal;backupId=this.#e.backupId;versionOptionsLoading=this.#e.versionOptionsLoading;versionOptions=this.#e.versionOptions;isDraft=this.#e.isDraft;isFileRestore=this.#e.isFileRestore;showFileTree=p(!1);backupSettings=p(null);backupSettingsEffect=H(()=>{let t=this.backupId(),e=typeof this.selectOptionSignal()=="string"?parseInt(this.selectOptionSignal()):this.selectOptionSignal();if(typeof e!="number"||!t)return;let i=this.versionOptions()?.find(s=>s.Version===e)?.Time??null;i&&(this.showFileTree.set(!1),setTimeout(()=>{let s={id:t+"",time:i};this.backupSettings.set(s),this.getRootPath(s)}))});rootPath=p(void 0);loadingRootPath=p(!1);getRootPath(t){let e={id:t.id+"",time:t.time,prefixOnly:!0,folderContents:!1};this.loadingRootPath.set(!0),this.#t.getApiV1BackupByIdFiles(e).pipe(O(()=>{this.showFileTree.set(!0),this.loadingRootPath.set(!1)})).subscribe({next:o=>{let i=o.Files[0].Path;this.rootPath.set(i)}})}isRepairing=p(!1);repairEffect=H(()=>{let t=this.#e.isDraft(),e=this.selectOptionSignal();if(t&&e){let o=this.backupId();this.isRepairing.set(!0),this.#t.postApiV1BackupByIdRepairupdate({id:o,requestBody:{only_paths:!0,time:new Date().toISOString()}}).pipe(O(()=>this.isRepairing.set(!1))).subscribe()}});abortLoading(){this.selectFilesForm.controls.selectedOption.setValue(null)}displayFn(){let t=this.versionOptions();return e=>{if(!e)return"";let o=t?.find(i=>typeof i.Version=="number"&&i.Version.toString()===e);return o?`${o.Version}: ${this.#n.transform(o.Time,"medium")}`:""}}next(){this.#o.navigate(["options"],{relativeTo:this.#i.parent})}back(){this.#e.isFileRestore()?this.#o.navigate(["encryption"],{relativeTo:this.#i.parent}):this.#e.exit()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=N({type:n,selectors:[["app-select-files"]],features:[Ee([K])],decls:13,vars:3,consts:()=>{let t;t=$localize`Select files`;let e;e=$localize`${"\uFFFD#9\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SPK_ICON: ${"\uFFFD0\uFFFD"}:INTERPOLATION: `;let o;o=$localize`${"\uFFFD#12\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SPK_ICON: Continue `;let i;i=$localize`Select an option...`;let s;s=$localize`Cancel`;let w;return w=$localize`Path`,[["formRef",""],t,e,o,s,w,[3,"submit","formGroup"],[1,"title-30"],[1,"indeterminate","primary"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"],[3,"displayFn","hideClearButton"],["type","text","placeholder",i,"formControlName","selectedOption"],[3,"value"],[3,"rootPath","backupSettings","multiSelect","showFiles"],["for","path"],["type","text","id","path","formControlName","filesToRestore"]]},template:function(e,o){if(e&1){let i=x();r(0,"form",6,0),T("submit",function(){return C(i),R(o.next())}),r(2,"h3",7),m(3,1),a(),V(4,Ae,1,0,"spk-progress-bar",8)(5,xe,6,4),r(6,"div",9)(7,"button",10),T("click",function(){return C(i),R(o.back())}),c(8,2),l(9,"spk-icon"),u(),a(),r(10,"button",11),c(11,3),l(12,"spk-icon"),u(),a()()()}e&2&&(F("formGroup",o.selectFilesForm),S(4),G(o.versionOptionsLoading()?4:5),S(5),Se(o.isFileRestore()?"Back":"Exit"),Fe(8))},dependencies:[A,L,h,M,k,$,y,K,j,v,Ne,b,Pe,Ce],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};var f=class n{#t=_(d);#e=_(I);backupId=p(null);backup=p(null);destinationTargetUrl=p(null);selectFilesForm=ye();optionsForm=De();encryptionForm=$e();optionsFormSignal=U(this.optionsForm.valueChanges);selectFilesFormSignal=U(this.selectFilesForm.valueChanges);selectOptionSignal=U(this.selectFilesForm.controls.selectedOption.valueChanges);versionOptionsLoading=p(!1);versionOptions=p([]);isSubmitting=p(!1);isDraft=p(!1);isFileRestore=p(!1);init(t,e=!1,o=!1){this.backupId.set(t),this.isFileRestore.set(e),this.isDraft.set(o),e&&this.#t.navigate(["/restore-from-files/destination"]),e||this.getBackup(t,!0)}updateTargetUrl(t){this.destinationTargetUrl.set(t)}submit(){this.isSubmitting.set(!0);let t=this.backupId(),e=this.optionsForm.value,o=this.selectFilesForm.value,i=this.versionOptions()?.find(s=>s.Version===o.selectedOption);this.#e.postApiV1BackupByIdRestore({id:t??"",requestBody:{paths:o.filesToRestore?.split("\0").map(s=>`${s}*`)??[],passphrase:o.passphrase??null,time:i?.Time,restore_path:e.restoreFromPath,overwrite:e.handleExisting==="overwrite",permissions:e.permissions,skip_metadata:!0}}).pipe(O(()=>this.isSubmitting.set(!1))).subscribe({next:()=>this.exit(),error:s=>{console.error("restore error",s)}})}exit(){this.#o(),this.#t.navigate(["/"])}getVersionOptions(){this.versionOptions()}getBackup(t,e=!1){this.versionOptionsLoading.set(!0),re([this.#e.getApiV1BackupById({id:t}),this.#e.getApiV1BackupByIdFilesets({id:t}).pipe(ae(3))]).pipe(se(1),O(()=>this.versionOptionsLoading.set(!1))).subscribe({next:([o,i])=>{this.versionOptions.set(i),this.backup.set(o)}})}#o(){this.selectFilesForm.reset(),this.optionsForm.reset()}static \u0275fac=function(e){return new(e||n)};static \u0275prov=le({token:n,factory:n.\u0275fac,providedIn:"root"})};var W=new D,De=()=>W.group({restoreFrom:W.control("orignal"),restoreFromPath:W.control(""),handleExisting:W.control("overwrite"),permissions:W.control(!1)}),ee=class n{#t=_(f);#e=_(d);#o=_(P);optionsForm=this.#t.optionsForm;optionsFormSignal=this.#t.optionsFormSignal;isSubmitting=this.#t.isSubmitting;goBack(){this.#e.navigate(["select-files"],{relativeTo:this.#o.parent})}submit(){this.#t.submit()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=N({type:n,selectors:[["app-advanced-options-settings"]],decls:39,vars:6,consts:()=>{let t;t=$localize`Restore options`;let e;e=$localize`Where do you want to restore files from?`;let o;o=$localize` Original location ${"\uFFFD#9\uFFFD\uFFFD/#9\uFFFD"}:TAG_INPUT:`;let i;i=$localize` Pick location ${"\uFFFD#12\uFFFD\uFFFD/#12\uFFFD"}:TAG_INPUT:`;let s;s=$localize`How do you want to handle existing files?`;let w;w=$localize` Overwrite ${"\uFFFD#22\uFFFD\uFFFD/#22\uFFFD"}:TAG_INPUT:`;let g;g=$localize` Save different versions with timestamp in file name ${"\uFFFD#25\uFFFD\uFFFD/#25\uFFFD"}:TAG_INPUT:`;let te;te=$localize`Permissions`;let oe;oe=$localize` Restore read/write permissions ${"\uFFFD#31\uFFFD\uFFFD/#31\uFFFD"}:TAG_INPUT:`;let ie;ie=$localize`${"\uFFFD#35\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#35\uFFFD"}:CLOSE_TAG_SPK_ICON: Go back `;let ne;return ne=$localize`${"\uFFFD#38\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#38\uFFFD"}:CLOSE_TAG_SPK_ICON: Submit `,[["formRef",""],t,e,o,i,s,w,g,te,oe,ie,ne,[3,"submit","formGroup"],[1,"title-30"],[3,"disallowToggle"],["title",""],[1,"raised","primary"],["type","radio","name","restoreFrom","value","orignal","formControlName","restoreFrom"],["type","radio","name","restoreFrom","value","pickLocation","formControlName","restoreFrom"],[3,"disabled"],["for","path"],["type","text","id","path","formControlName","restoreFromPath"],["type","radio","name","handleExisting","value","overwrite","formControlName","handleExisting"],["type","radio","name","handleExisting","value","saveTimestamp","formControlName","handleExisting"],[1,"primary","raised"],["type","checkbox","formControlName","permissions"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"]]},template:function(e,o){if(e&1){let i=x();r(0,"form",12,0),T("submit",function(){return C(i),R(o.submit())}),r(2,"h3",13),m(3,1),a(),r(4,"app-toggle-card",14),X(5,15),m(6,2),z(),r(7,"spk-radio",16),c(8,3),l(9,"input",17),u(),a(),r(10,"spk-radio",16),c(11,4),l(12,"input",18),u(),a(),r(13,"app-file-tree",19)(14,"label",20),Y(15,"Path"),a(),l(16,"input",21),a()(),r(17,"app-toggle-card",14),X(18,15),m(19,5),z(),r(20,"spk-radio",16),c(21,6),l(22,"input",22),u(),a(),r(23,"spk-radio",16),c(24,7),l(25,"input",23),u(),a()(),r(26,"app-toggle-card"),X(27,15),m(28,8),z(),r(29,"spk-toggle",24),c(30,9),l(31,"input",25),u(),a()(),r(32,"div",26)(33,"button",27),T("click",function(){return C(i),R(o.goBack())}),c(34,10),l(35,"spk-icon"),u(),a(),r(36,"button",28),c(37,11),l(38,"spk-icon"),u(),a()()()}if(e&2){let i;F("formGroup",o.optionsForm),S(4),F("disallowToggle",!0),S(9),F("disabled",((i=o.optionsFormSignal())==null?null:i.restoreFrom)!=="pickLocation"),S(4),F("disallowToggle",!0),S(19),_e("loader",o.isSubmitting())}},dependencies:[A,L,h,Oe,de,M,k,$,y,he,j,Ie,Re,v,b],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};export{De as a,ee as b,$e as c,J as d,ye as e,Z as f,f as g};
@@ -0,0 +1 @@
1
+ import{e as a,f as b}from"./chunk-GTXOAJP6.js";import"./chunk-NRGTIGVX.js";import"./chunk-EGT5S7A4.js";import"./chunk-MHZPUJQF.js";import"./chunk-PTG2C2YJ.js";import"./chunk-LFQXDL42.js";import"./chunk-TQE7OBBP.js";import"./chunk-ZRPJ3QZT.js";import"./chunk-NVTD7IP4.js";import"./chunk-IZCX3KB3.js";import"./chunk-6SIZVSDW.js";import"./chunk-JOBMLOGZ.js";import"./chunk-QDAWQNBQ.js";import"./chunk-C6Q5SG76.js";export{a as createRestoreSelectFilesForm,b as default};