@duplicati/ngclient 0.0.78 → 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 (50) hide show
  1. package/assets/spk-bold.woff2 +0 -0
  2. package/assets/spk.css +52 -1
  3. package/{chunk-DVV65XF4.js → chunk-233ZLAAE.js} +1 -1
  4. package/{chunk-IWSFC3I6.js → chunk-2U3FDBUK.js} +1 -1
  5. package/chunk-4YLHRMHU.js +1 -0
  6. package/{chunk-VKHZOVLO.js → chunk-76NKH7M2.js} +1 -1
  7. package/{chunk-BLF5NVEW.js → chunk-7ZJVPVCQ.js} +1 -1
  8. package/{chunk-JZOCG4KQ.js → chunk-BM4SNLLS.js} +1 -1
  9. package/{chunk-UNJ66CNQ.js → chunk-CD2B55TH.js} +1 -1
  10. package/{chunk-G7YGQ54D.js → chunk-CZ3SCRNE.js} +1 -1
  11. package/{chunk-BRTUMDFG.js → chunk-EGT5S7A4.js} +1 -1
  12. package/{chunk-XKSLV5L6.js → chunk-FZNTP67Z.js} +1 -1
  13. package/{chunk-7QPDYG2R.js → chunk-GTXOAJP6.js} +1 -1
  14. package/{chunk-IKTCS2AI.js → chunk-HSEKUB7W.js} +1 -1
  15. package/{chunk-EW42J6OZ.js → chunk-HX66OULG.js} +1 -1
  16. package/chunk-IZCX3KB3.js +1 -0
  17. package/{chunk-KRXCULQR.js → chunk-JMQCQ5DN.js} +1 -1
  18. package/{chunk-5K2CQFVP.js → chunk-JZFEEATO.js} +1 -1
  19. package/{chunk-HZOYOR46.js → chunk-K5WD7D64.js} +1 -1
  20. package/{chunk-7P2RW65H.js → chunk-KAGR24YW.js} +1 -1
  21. package/{chunk-F4G2WAF6.js → chunk-LPGLGZ3U.js} +1 -1
  22. package/{chunk-RBT353UU.js → chunk-MWJ2FIZF.js} +1 -1
  23. package/{chunk-VFTEC7DW.js → chunk-NHJBFOCX.js} +1 -1
  24. package/{chunk-KHIKPOXK.js → chunk-NRGTIGVX.js} +1 -1
  25. package/{chunk-ONPMD5AY.js → chunk-QFULFMSU.js} +1 -1
  26. package/chunk-RABUX7PS.js +6 -0
  27. package/{chunk-ZYUKP5CS.js → chunk-S7IEXZZK.js} +1 -1
  28. package/{chunk-TRNWEHWA.js → chunk-TFFQHLQK.js} +1 -1
  29. package/{chunk-OEWX26UE.js → chunk-TQIMA3N7.js} +1 -1
  30. package/{chunk-O3XPW5NY.js → chunk-UBEY6W6N.js} +1 -1
  31. package/{chunk-ILPTEKIT.js → chunk-WFFJ2OJB.js} +1 -1
  32. package/{chunk-OYXHFCSL.js → chunk-XAAJBERP.js} +1 -1
  33. package/{chunk-Q4JQCY64.js → chunk-XCKJXWMS.js} +1 -1
  34. package/chunk-XMGHFJW7.js +1 -0
  35. package/{chunk-HDBZ3ISU.js → chunk-XS2FYREZ.js} +1 -1
  36. package/{chunk-NDQ5RFC6.js → chunk-YB5LG22R.js} +1 -1
  37. package/{chunk-3LITUWIH.js → chunk-YUZINGR7.js} +1 -1
  38. package/{chunk-HXGHAEWC.js → chunk-ZGTFPEDW.js} +1 -1
  39. package/{chunk-QI7DMSHZ.js → chunk-ZSCSUQR3.js} +1 -1
  40. package/{chunk-F7KC3CMY.js → chunk-ZVCXBMGJ.js} +1 -1
  41. package/index.html +2 -2
  42. package/{main-WZFPMKCC.js → main-2MESDK56.js} +1 -1
  43. package/package.json +1 -1
  44. package/styles-KC6U2UBP.css +1 -0
  45. package/assets/spk.woff2 +0 -0
  46. package/chunk-3CRA7LUM.js +0 -1
  47. package/chunk-AGD6LHBQ.js +0 -1
  48. package/chunk-WF5PRSGZ.js +0 -6
  49. package/chunk-WX6WWOS5.js +0 -1
  50. package/styles-S3CXMNLR.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
+ }
@@ -1 +1 @@
1
- import{o as Ge}from"./chunk-WF5PRSGZ.js";import{a as Wt}from"./chunk-KHIKPOXK.js";import{a as Kt}from"./chunk-BRTUMDFG.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-OEWX26UE.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-3CRA7LUM.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","warn",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};
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};
@@ -1 +1 @@
1
- import{b as $}from"./chunk-MHZPUJQF.js";import{a as R}from"./chunk-OEWX26UE.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-3CRA7LUM.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
+ 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};
@@ -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};
@@ -1,4 +1,4 @@
1
- import{g as Xt}from"./chunk-7QPDYG2R.js";import{a as Wt,b as zt,o as Z}from"./chunk-WF5PRSGZ.js";import{a as Ht}from"./chunk-KHIKPOXK.js";import{a as Kt}from"./chunk-BRTUMDFG.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-3CRA7LUM.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.
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.
@@ -1 +1 @@
1
- import{k as a,l as b}from"./chunk-WF5PRSGZ.js";import"./chunk-KHIKPOXK.js";import"./chunk-BRTUMDFG.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-3CRA7LUM.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
+ 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-MHZPUJQF.js";import{b as S}from"./chunk-TQE7OBBP.js";import{c as M}from"./chunk-NVTD7IP4.js";import{o as P}from"./chunk-3CRA7LUM.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};
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};
@@ -1 +1 @@
1
- import{c as a,d as b}from"./chunk-7QPDYG2R.js";import"./chunk-KHIKPOXK.js";import"./chunk-BRTUMDFG.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-3CRA7LUM.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
+ 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,2 +1,2 @@
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-3CRA7LUM.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(`
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-3CRA7LUM.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
+ 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{i as a,j as b}from"./chunk-WF5PRSGZ.js";import"./chunk-KHIKPOXK.js";import"./chunk-BRTUMDFG.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-3CRA7LUM.js";import"./chunk-6SIZVSDW.js";import"./chunk-JOBMLOGZ.js";import"./chunk-QDAWQNBQ.js";import"./chunk-C6Q5SG76.js";export{a as createOptionsForm,b as default};
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};