@duplicati/ngclient 0.0.57 → 0.0.59

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 (81) hide show
  1. package/{chunk-6H65UZ2P.js → chunk-23D2KKGK.js} +1 -1
  2. package/{chunk-CVMGHPI7.js → chunk-3UJYR3C3.js} +1 -1
  3. package/{chunk-TOLFT34P.js → chunk-3YZ3SEGY.js} +1 -1
  4. package/{chunk-IOBGL3RY.js → chunk-4IQIYT3R.js} +1 -1
  5. package/chunk-4YJMUITD.js +1 -0
  6. package/{chunk-RQA4DOFL.js → chunk-6FMUWDFQ.js} +1 -1
  7. package/chunk-6Z44FGYG.js +6 -0
  8. package/{chunk-SD7AY2JD.js → chunk-7BFB2JZ7.js} +1 -1
  9. package/{chunk-PUIARLRJ.js → chunk-7CHRY23V.js} +1 -1
  10. package/{chunk-S3X5GKHD.js → chunk-7EROSQ6G.js} +1 -1
  11. package/{chunk-ACQPX6N4.js → chunk-7NOLIW3Y.js} +1 -1
  12. package/chunk-AKDOPLUE.js +1 -0
  13. package/{chunk-LEG3VUID.js → chunk-BNW7MJ4U.js} +1 -1
  14. package/chunk-BV5HWLOE.js +1 -0
  15. package/{chunk-UI7YZPLW.js → chunk-CFESGUGK.js} +4 -4
  16. package/{chunk-MJKHWRNQ.js → chunk-CPSIM3A5.js} +1 -1
  17. package/chunk-D352OHOH.js +1 -0
  18. package/{chunk-NXFYBS5S.js → chunk-DGRMASPQ.js} +1 -1
  19. package/chunk-DSHXBMXU.js +1 -0
  20. package/chunk-E2E7PU5Q.js +1 -0
  21. package/{chunk-2SBFQL4K.js → chunk-EB76BK3U.js} +1 -1
  22. package/chunk-EHTLINLH.js +1 -0
  23. package/{chunk-ERIN7FXX.js → chunk-ETMZA3IQ.js} +1 -1
  24. package/{chunk-YGBHA2P6.js → chunk-F76JBXBH.js} +1 -1
  25. package/{chunk-56AHOWAU.js → chunk-FQKYQMUA.js} +1 -1
  26. package/{chunk-YMACEDTD.js → chunk-FW56L7EH.js} +1 -1
  27. package/{chunk-PYT62D3C.js → chunk-GCHBD6DX.js} +1 -1
  28. package/{chunk-K24PCFFN.js → chunk-HQ5RBM4W.js} +1 -1
  29. package/{chunk-ZFV5KH42.js → chunk-HYRUU7RC.js} +1 -1
  30. package/{chunk-TH3GTINR.js → chunk-IQHACOOA.js} +1 -1
  31. package/{chunk-MBLB2X2V.js → chunk-JNHK2HQC.js} +1 -1
  32. package/{chunk-T5UIDW4M.js → chunk-JQUPEFDH.js} +1 -1
  33. package/{chunk-7C6ILTIP.js → chunk-KBOYFSOY.js} +1 -1
  34. package/chunk-NA2TSIGD.js +1 -0
  35. package/chunk-NILIJMJS.js +1 -0
  36. package/{chunk-7JAY2YPN.js → chunk-NROZTSQC.js} +1 -1
  37. package/{chunk-DC7QVFBV.js → chunk-NW7VZHBJ.js} +1 -1
  38. package/chunk-OIJ4GD7L.js +1 -0
  39. package/{chunk-5FDI5MU5.js → chunk-OKMKAFJO.js} +1 -1
  40. package/chunk-PQEMNH5E.js +1 -0
  41. package/{chunk-Z6DKPRZO.js → chunk-QBFOFC2S.js} +1 -1
  42. package/{chunk-EAZGURHW.js → chunk-RMEEJUB4.js} +1 -1
  43. package/{chunk-3FAE4RKT.js → chunk-S4KMY7LU.js} +1 -1
  44. package/chunk-S52BCEO2.js +1 -0
  45. package/{chunk-7M6UFI5Y.js → chunk-SGBX6SKP.js} +1 -1
  46. package/{chunk-F4ZWNDPA.js → chunk-SQBOV6A2.js} +1 -1
  47. package/{chunk-F6O4P5W4.js → chunk-T7HBYYKH.js} +1 -1
  48. package/chunk-V6A4XGAP.js +1 -0
  49. package/{chunk-LE75M3F5.js → chunk-VHPPFUTX.js} +1 -1
  50. package/{chunk-E4ISBSEL.js → chunk-VMEJ2INK.js} +1 -1
  51. package/{chunk-BUB2XBZH.js → chunk-VPWPYB3Z.js} +1 -1
  52. package/{chunk-ZG5RYKT7.js → chunk-W4Z2WCQT.js} +1 -1
  53. package/{chunk-ICXLTN4I.js → chunk-WLAPUWZH.js} +1 -1
  54. package/{chunk-V3IF26PI.js → chunk-WNGVUHIX.js} +1 -1
  55. package/{chunk-MJMYUASP.js → chunk-XCGZAJSF.js} +1 -1
  56. package/{chunk-AX44W3BG.js → chunk-XG3VY7EY.js} +1 -1
  57. package/chunk-XLGJTP25.js +1 -0
  58. package/chunk-XRV2G4UG.js +1 -0
  59. package/chunk-XZ2Z3I76.js +1 -0
  60. package/{chunk-LBTXWNGE.js → chunk-YZWMWYPX.js} +1 -1
  61. package/index.html +1 -1
  62. package/{main-BYCXTMII.js → main-XKSLPMUE.js} +1 -1
  63. package/package.json +1 -1
  64. package/chunk-2GC7SBMS.js +0 -1
  65. package/chunk-C5SNUVEC.js +0 -1
  66. package/chunk-CL6W3OLS.js +0 -1
  67. package/chunk-DKRZJC7X.js +0 -1
  68. package/chunk-ENRVPUCB.js +0 -1
  69. package/chunk-GFJZ5IJI.js +0 -1
  70. package/chunk-HFDDJLAI.js +0 -1
  71. package/chunk-KY2RQ76O.js +0 -1
  72. package/chunk-LVU6VV6K.js +0 -1
  73. package/chunk-NEGT6KCV.js +0 -1
  74. package/chunk-PLUKKU2C.js +0 -1
  75. package/chunk-RHYYHNXZ.js +0 -6
  76. package/chunk-TOM6TEW4.js +0 -1
  77. package/chunk-V3SQQA7U.js +0 -1
  78. package/chunk-VC4Z6LFJ.js +0 -1
  79. package/chunk-VWFTXKNS.js +0 -1
  80. package/chunk-VWTABONU.js +0 -1
  81. package/chunk-WZYTVL3C.js +0 -1
@@ -1 +1 @@
1
- import{a as F}from"./chunk-F4ZWNDPA.js";import"./chunk-ZG5RYKT7.js";import{b as h,c as N,d as S,e as b,h as w,l as y,o as L,p as M,r as P}from"./chunk-NXFYBS5S.js";import"./chunk-3FAE4RKT.js";import{c as C}from"./chunk-ACQPX6N4.js";import"./chunk-S3X5GKHD.js";import{a as v,g as O,l as E}from"./chunk-LEG3VUID.js";import"./chunk-ZFV5KH42.js";import"./chunk-DC7QVFBV.js";import{Bb as t,Cb as i,Db as f,F as p,Qa as m,Tb as _,Xa as d,Z as s,db as c,gc as n,sb as u,ub as g}from"./chunk-UI7YZPLW.js";import"./chunk-C6Q5SG76.js";var G=new M,a=class l{#e=s(C);#t=s(F);isLoading=d(!1);loginForm=G.group({pass:G.control("",N.required)});submit(){let e=this.loginForm.value.pass;e&&(this.isLoading.set(!0),this.#t.login(e).pipe(p(()=>this.isLoading.set(!1))).subscribe({next:()=>this.#e.navigate(["/"])}))}static \u0275fac=function(o){return new(o||l)};static \u0275cmp=c({type:l,selectors:[["app-login"]],decls:13,vars:3,consts:()=>{let e;return e=$localize`Enter your password`,[[3,"submit","formGroup"],[1,"login-row"],["for","password"],["href","https://docs.duplicati.com/detailed-descriptions/duplicati-access-password","target","_blank","rel","noopener noreferrer"],["type","password","name","password","autocomplete","current-password","placeholder",e,"tabindex","1","formControlName","pass"],["spk-button","","type","submit",1,"raised","primary"]]},template:function(o,r){o&1&&(t(0,"form",0),_("submit",function(){return r.submit()}),t(1,"div",1)(2,"spk-form-field")(3,"label",2),n(4," Password "),t(5,"a",3)(6,"spk-icon"),n(7,"question"),i()()(),f(8,"input",4),i(),t(9,"button",5),n(10," Login "),t(11,"spk-icon"),n(12,"arrow-right"),i()()()()),o&2&&(u("formGroup",r.loginForm),m(9),g("loader",r.isLoading()))},dependencies:[P,w,h,S,b,y,L,E,v,O],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{width:100vw;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.5rem}h3[_ngcontent-%COMP%]{font:var(--title-30)}.login-row[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}"],changeDetection:0})};export{a as default};
1
+ import{a as F}from"./chunk-SQBOV6A2.js";import"./chunk-W4Z2WCQT.js";import{b as h,c as N,d as S,e as b,h as w,l as y,o as L,p as M,r as P}from"./chunk-DGRMASPQ.js";import"./chunk-S4KMY7LU.js";import{c as C}from"./chunk-7NOLIW3Y.js";import"./chunk-7EROSQ6G.js";import{a as v,g as O,l as E}from"./chunk-BNW7MJ4U.js";import"./chunk-HYRUU7RC.js";import"./chunk-NW7VZHBJ.js";import{Bb as t,Cb as i,Db as f,F as p,Qa as m,Tb as _,Xa as d,Z as s,db as c,gc as n,sb as u,ub as g}from"./chunk-CFESGUGK.js";import"./chunk-C6Q5SG76.js";var G=new M,a=class l{#e=s(C);#t=s(F);isLoading=d(!1);loginForm=G.group({pass:G.control("",N.required)});submit(){let e=this.loginForm.value.pass;e&&(this.isLoading.set(!0),this.#t.login(e).pipe(p(()=>this.isLoading.set(!1))).subscribe({next:()=>this.#e.navigate(["/"])}))}static \u0275fac=function(o){return new(o||l)};static \u0275cmp=c({type:l,selectors:[["app-login"]],decls:13,vars:3,consts:()=>{let e;return e=$localize`Enter your password`,[[3,"submit","formGroup"],[1,"login-row"],["for","password"],["href","https://docs.duplicati.com/detailed-descriptions/duplicati-access-password","target","_blank","rel","noopener noreferrer"],["type","password","name","password","autocomplete","current-password","placeholder",e,"tabindex","1","formControlName","pass"],["spk-button","","type","submit",1,"raised","primary"]]},template:function(o,r){o&1&&(t(0,"form",0),_("submit",function(){return r.submit()}),t(1,"div",1)(2,"spk-form-field")(3,"label",2),n(4," Password "),t(5,"a",3)(6,"spk-icon"),n(7,"question"),i()()(),f(8,"input",4),i(),t(9,"button",5),n(10," Login "),t(11,"spk-icon"),n(12,"arrow-right"),i()()()()),o&2&&(u("formGroup",r.loginForm),m(9),g("loader",r.isLoading()))},dependencies:[P,w,h,S,b,y,L,E,v,O],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{width:100vw;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.5rem}h3[_ngcontent-%COMP%]{font:var(--title-30)}.login-row[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}"],changeDetection:0})};export{a as default};
@@ -1 +1 @@
1
- import{a as u}from"./chunk-LEG3VUID.js";import{Bb as o,Cb as n,Qa as g,Tb as h,Vb as _,Wb as a,_a as d,db as p,gc as s,jb as m,ra as r,ub as f,xb as C}from"./chunk-UI7YZPLW.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-BNW7MJ4U.js";import{Bb as o,Cb as n,Qa as g,Tb as h,Vb as _,Wb as a,_a as d,db as p,gc as s,jb as m,ra as r,ub as f,xb as C}from"./chunk-CFESGUGK.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{$ as aa,A as B,Aa as Ba,B as C,Ba as Ca,C as D,Ca as Da,D as E,Da as Ea,E as F,Ea as Fa,F as G,Fa as Ga,G as H,Ga as Ha,H as I,Ha as Ia,I as J,Ia as Ja,J as K,Ja as Ka,K as L,Ka as La,L as M,La as Ma,M as N,Ma as Na,N as O,Na as Oa,O as P,Oa as Pa,P as Q,Q as R,R as S,S as T,T as U,U as V,V as W,W as X,X as Y,Y as Z,Z as _,_ as $,a as b,aa as ba,b as c,ba as ca,c as d,ca as da,d as e,da as ea,e as f,ea as fa,f as g,fa as ga,g as h,ga as ha,h as i,ha as ia,i as j,ia as ja,j as k,ja as ka,k as l,ka as la,l as m,la as ma,m as n,ma as na,n as o,na as oa,o as p,oa as pa,p as q,pa as qa,q as r,qa as ra,r as s,ra as sa,s as t,sa as ta,t as u,ta as ua,u as v,ua as va,v as w,va as wa,w as x,wa as xa,x as y,xa as ya,y as z,ya as za,z as A,za as Aa}from"./chunk-DC7QVFBV.js";import{za as a}from"./chunk-UI7YZPLW.js";import"./chunk-C6Q5SG76.js";export{l as APP_BASE_HREF,ka as AsyncPipe,i as BrowserPlatformLocation,za as CommonModule,xa as CurrencyPipe,pa as DATE_PIPE_DEFAULT_OPTIONS,oa as DATE_PIPE_DEFAULT_TIMEZONE,f as DOCUMENT,qa as DatePipe,va as DecimalPipe,r as FormStyle,t as FormatWidth,n as HashLocationStrategy,ra as I18nPluralPipe,sa as I18nSelectPipe,a as IMAGE_CONFIG,Ia as IMAGE_LOADER,ta as JsonPipe,ua as KeyValuePipe,h as LOCATION_INITIALIZED,o as Location,k as LocationStrategy,la as LowerCasePipe,Z as NgClass,_ as NgComponentOutlet,aa as NgFor,aa as NgForOf,$ as NgForOfContext,ba as NgIf,ca as NgIfContext,W as NgLocaleLocalization,V as NgLocalization,Pa as NgOptimizedImage,ga as NgPlural,ha as NgPluralCase,ia as NgStyle,da as NgSwitch,ea as NgSwitchCase,fa as NgSwitchDefault,ja as NgTemplateOutlet,p as NumberFormatStyle,u as NumberSymbol,Oa as PRECONNECT_CHECK_BLOCKLIST,m as PathLocationStrategy,wa as PercentPipe,g as PlatformLocation,q as Plural,ya as SlicePipe,ma as TitleCasePipe,s as TranslationWidth,na as UpperCasePipe,Ea as VERSION,Fa as ViewportScroller,v as WeekDay,Ha as XhrFactory,S as formatCurrency,R as formatDate,U as formatNumber,T as formatPercent,P as getCurrencySymbol,K as getLocaleCurrencyCode,J as getLocaleCurrencyName,I as getLocaleCurrencySymbol,D as getLocaleDateFormat,F as getLocaleDateTimeFormat,y as getLocaleDayNames,x as getLocaleDayPeriods,O as getLocaleDirection,A as getLocaleEraNames,M as getLocaleExtraDayPeriodRules,N as getLocaleExtraDayPeriods,B as getLocaleFirstDayOfWeek,w as getLocaleId,z as getLocaleMonthNames,H as getLocaleNumberFormat,G as getLocaleNumberSymbol,L as getLocalePluralCase,E as getLocaleTimeFormat,C as getLocaleWeekEndRange,Q as getNumberOfCurrencyDigits,Ca as isPlatformBrowser,Da as isPlatformServer,Ja as provideCloudflareLoader,Ka as provideCloudinaryLoader,La as provideImageKitLoader,Ma as provideImgixLoader,Na as provideNetlifyLoader,X as registerLocaleData,d as \u0275DomAdapter,Ga as \u0275NullViewportScroller,Aa as \u0275PLATFORM_BROWSER_ID,Ba as \u0275PLATFORM_SERVER_ID,e as \u0275PlatformNavigation,b as \u0275getDOM,j as \u0275normalizeQueryParams,Y as \u0275parseCookieValue,c as \u0275setRootDomAdapter};
1
+ import{$ as aa,A as B,Aa as Ba,B as C,Ba as Ca,C as D,Ca as Da,D as E,Da as Ea,E as F,Ea as Fa,F as G,Fa as Ga,G as H,Ga as Ha,H as I,Ha as Ia,I as J,Ia as Ja,J as K,Ja as Ka,K as L,Ka as La,L as M,La as Ma,M as N,Ma as Na,N as O,Na as Oa,O as P,Oa as Pa,P as Q,Q as R,R as S,S as T,T as U,U as V,V as W,W as X,X as Y,Y as Z,Z as _,_ as $,a as b,aa as ba,b as c,ba as ca,c as d,ca as da,d as e,da as ea,e as f,ea as fa,f as g,fa as ga,g as h,ga as ha,h as i,ha as ia,i as j,ia as ja,j as k,ja as ka,k as l,ka as la,l as m,la as ma,m as n,ma as na,n as o,na as oa,o as p,oa as pa,p as q,pa as qa,q as r,qa as ra,r as s,ra as sa,s as t,sa as ta,t as u,ta as ua,u as v,ua as va,v as w,va as wa,w as x,wa as xa,x as y,xa as ya,y as z,ya as za,z as A,za as Aa}from"./chunk-NW7VZHBJ.js";import{za as a}from"./chunk-CFESGUGK.js";import"./chunk-C6Q5SG76.js";export{l as APP_BASE_HREF,ka as AsyncPipe,i as BrowserPlatformLocation,za as CommonModule,xa as CurrencyPipe,pa as DATE_PIPE_DEFAULT_OPTIONS,oa as DATE_PIPE_DEFAULT_TIMEZONE,f as DOCUMENT,qa as DatePipe,va as DecimalPipe,r as FormStyle,t as FormatWidth,n as HashLocationStrategy,ra as I18nPluralPipe,sa as I18nSelectPipe,a as IMAGE_CONFIG,Ia as IMAGE_LOADER,ta as JsonPipe,ua as KeyValuePipe,h as LOCATION_INITIALIZED,o as Location,k as LocationStrategy,la as LowerCasePipe,Z as NgClass,_ as NgComponentOutlet,aa as NgFor,aa as NgForOf,$ as NgForOfContext,ba as NgIf,ca as NgIfContext,W as NgLocaleLocalization,V as NgLocalization,Pa as NgOptimizedImage,ga as NgPlural,ha as NgPluralCase,ia as NgStyle,da as NgSwitch,ea as NgSwitchCase,fa as NgSwitchDefault,ja as NgTemplateOutlet,p as NumberFormatStyle,u as NumberSymbol,Oa as PRECONNECT_CHECK_BLOCKLIST,m as PathLocationStrategy,wa as PercentPipe,g as PlatformLocation,q as Plural,ya as SlicePipe,ma as TitleCasePipe,s as TranslationWidth,na as UpperCasePipe,Ea as VERSION,Fa as ViewportScroller,v as WeekDay,Ha as XhrFactory,S as formatCurrency,R as formatDate,U as formatNumber,T as formatPercent,P as getCurrencySymbol,K as getLocaleCurrencyCode,J as getLocaleCurrencyName,I as getLocaleCurrencySymbol,D as getLocaleDateFormat,F as getLocaleDateTimeFormat,y as getLocaleDayNames,x as getLocaleDayPeriods,O as getLocaleDirection,A as getLocaleEraNames,M as getLocaleExtraDayPeriodRules,N as getLocaleExtraDayPeriods,B as getLocaleFirstDayOfWeek,w as getLocaleId,z as getLocaleMonthNames,H as getLocaleNumberFormat,G as getLocaleNumberSymbol,L as getLocalePluralCase,E as getLocaleTimeFormat,C as getLocaleWeekEndRange,Q as getNumberOfCurrencyDigits,Ca as isPlatformBrowser,Da as isPlatformServer,Ja as provideCloudflareLoader,Ka as provideCloudinaryLoader,La as provideImageKitLoader,Ma as provideImgixLoader,Na as provideNetlifyLoader,X as registerLocaleData,d as \u0275DomAdapter,Ga as \u0275NullViewportScroller,Aa as \u0275PLATFORM_BROWSER_ID,Ba as \u0275PLATFORM_SERVER_ID,e as \u0275PlatformNavigation,b as \u0275getDOM,j as \u0275normalizeQueryParams,Y as \u0275parseCookieValue,c as \u0275setRootDomAdapter};
@@ -1,2 +1,2 @@
1
- import{b as K}from"./chunk-Z6DKPRZO.js";import{b as X}from"./chunk-3FAE4RKT.js";import{a as z,d as J,g as q}from"./chunk-LEG3VUID.js";import"./chunk-ZFV5KH42.js";import"./chunk-DC7QVFBV.js";import{Ab as R,Bb as i,Cb as a,Db as g,Hb as u,Lc as W,Na as E,Nb as A,Ob as D,Pb as y,Qa as l,Tb as S,Ub as f,Xa as m,Xb as w,Z as v,db as h,ea as d,fa as _,gc as c,hc as C,ic as I,jb as k,jc as N,lc as $,mc as B,nc as V,oc as U,q as T,qc as G,sb as F,xb as x,yb as M,zb as P}from"./chunk-UI7YZPLW.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-QBFOFC2S.js";import{b as X}from"./chunk-S4KMY7LU.js";import{a as z,d as J,g as q}from"./chunk-BNW7MJ4U.js";import"./chunk-HYRUU7RC.js";import"./chunk-NW7VZHBJ.js";import{Ab as R,Bb as i,Cb as a,Db as g,Hb as u,Lc as W,Na as E,Nb as A,Ob as D,Pb as y,Qa as l,Tb as S,Ub as f,Xa as m,Xb as w,Z as v,db as h,ea as d,fa as _,gc as c,hc as C,ic as I,jb as k,jc as N,lc as $,mc as B,nc as V,oc as U,q as T,qc as G,sb as F,xb as x,yb as M,zb as P}from"./chunk-CFESGUGK.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};
@@ -0,0 +1 @@
1
+ import{o as a,p as b}from"./chunk-7CHRY23V.js";import"./chunk-XZ2Z3I76.js";import"./chunk-3UJYR3C3.js";import"./chunk-DNHLTHLR.js";import"./chunk-QBFOFC2S.js";import"./chunk-IQHACOOA.js";import"./chunk-DGRMASPQ.js";import"./chunk-S4KMY7LU.js";import"./chunk-7NOLIW3Y.js";import"./chunk-7EROSQ6G.js";import"./chunk-BNW7MJ4U.js";import"./chunk-HYRUU7RC.js";import"./chunk-NW7VZHBJ.js";import"./chunk-CFESGUGK.js";import"./chunk-C6Q5SG76.js";export{a as createSourceDataForm,b as default};
@@ -1 +1 @@
1
- import{a as he}from"./chunk-MJKHWRNQ.js";import{b as ce,d as ue,g as de,i as Se,q as $}from"./chunk-NXFYBS5S.js";import{b as C,c as _e}from"./chunk-3FAE4RKT.js";import{a as me,b as Te,e as ge,g as fe,i as L,l as Ce,o as Pe,p as Ee,q as Oe,r as Ae}from"./chunk-LEG3VUID.js";import{a as Re}from"./chunk-7C6ILTIP.js";import{pa as pe}from"./chunk-DC7QVFBV.js";import{a as ke}from"./chunk-BUB2XBZH.js";import{Ab as h,Bb as l,Cb as s,Db as y,F as m,Hb as ie,Jc as N,Lc as W,N as J,Nb as b,Ob as v,Pb as c,Qa as r,Sb as ne,T as Y,Tb as u,Ub as E,Xa as p,Z as _,db as P,ea as Q,fa as ee,gb as te,gc as g,hc as X,ic as oe,jb as w,jc as ae,kc as se,l as q,lc as k,mc as R,nc as D,q as Z,qa as B,sb as T,ub as S,uc as H,vc as le,wc as re,xb as V,yb as O,zb as A}from"./chunk-UI7YZPLW.js";import{a as M,b as I}from"./chunk-C6Q5SG76.js";var G=class n{#e=_(ke);transform(e,...t){return this.#e.locale(),this.#e(e).fromNow()}static \u0275fac=function(t){return new(t||n)};static \u0275pipe=te({name:"appRelativeTime",type:n,pure:!0})};function Be(n,e){if(n&1){let t=ie();l(0,"spk-radio",10),u("click",function(){let o=Q(t).$implicit,a=E();return ee(a.pauseOption.set(o.value))}),g(1),s()}if(n&2){let t=e.$implicit,i=E();S("active",i.pauseOption()===t.value),r(),oe(" ",t.label," ")}}var ye=[{label:$localize`5 minuts`,value:"5m"},{label:$localize`10 minuts`,value:"10m"},{label:$localize`15 minuts`,value:"15m"},{label:$localize`30 minuts`,value:"30m"},{label:$localize`1 hour`,value:"1h"},{label:$localize`4 hours`,value:"4h"},{label:$localize`8 hours`,value:"8h"},{label:$localize`24 hours`,value:"24h"},{label:$localize`Until resumed`,value:void 0}],x=class n{#e=_(C);pauseOptions=p(ye);closed=B();isSubmitting=p(!1);pauseTransfers=p(!1);pauseOption=p(void 0);submit(){this.isSubmitting.set(!0);let e=this.pauseTransfers()||null,t=this.pauseOption();this.#e.postApiV1ServerstatePause({duration:t,pauseTransfers:e}).pipe(m(()=>this.isSubmitting.set(!1))).subscribe({next:i=>{this.closed.emit()}})}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=P({type:n,selectors:[["app-pause-dialog"]],outputs:{closed:"closed"},decls:17,vars:4,consts:()=>{let e;e=$localize`Pause settings`;let t;t=$localize` Also pause transfers `;let i;i=$localize`If you pause transfers they could time out and cause retries or failures.`;let o;o=$localize`Cancel`;let a;return a=$localize` Update settings `,[e,t,i,o,a,["header",""],["content",""],[1,"radios"],[1,"primary","raised",3,"active"],[1,"check-wrap"],[1,"primary","raised",3,"click"],["type","warning"],["footer",""],["spk-button","",3,"click"],["spk-button","",1,"raised","primary",3,"click"]]},template:function(t,i){t&1&&(l(0,"header",5)(1,"h3"),c(2,0),s()(),l(3,"div",6)(4,"div",7),A(5,Be,2,3,"spk-radio",8,O),s(),l(7,"div",9)(8,"spk-checkbox",10),u("click",function(){return i.pauseTransfers.set(!i.pauseTransfers())}),c(9,1),s(),l(10,"spk-alert",11),c(11,2),s()()(),l(12,"footer",12)(13,"button",13),u("click",function(){return i.closed.emit()}),c(14,3),s(),l(15,"button",14),u("click",function(){return i.submit()}),c(16,4),s()()),t&2&&(r(5),h(i.pauseOptions()),r(3),S("active",i.pauseTransfers()),r(7),S("loader",i.isSubmitting()))},dependencies:[$,Ee,L,Te],styles:["[_nghost-%COMP%]{--dialog-p: 1.5rem;display:block}h3[_ngcontent-%COMP%]{font:var(--title-30)}.radios[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.check-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;padding:2rem 0 0}"],changeDetection:0})};var be={Backup_Begin:$localize`Starting backup …`,Backup_PreBackupVerify:$localize`Verifying backend data …`,Backup_PostBackupTest:$localize`Verifying remote data …`,Backup_PreviousBackupFinalize:$localize`Completing previous backup …`,Backup_ProcessingFiles:$localize`Processing files to backup …`,Backup_Finalize:$localize`Completing backup …`,Backup_WaitForUpload:$localize`Waiting for upload to finish …`,Backup_Delete:$localize`Deleting unwanted files …`,Backup_Compact:$localize`Compacting remote data …`,Backup_VerificationUpload:$localize`Uploading verification file …`,Backup_PostBackupVerify:$localize`Verifying backend data …`,Backup_Complete:$localize`Backup complete!`,Restore_Begin:$localize`Starting restore …`,Restore_RecreateDatabase:$localize`Rebuilding local database …`,Restore_PreRestoreVerify:$localize`Verifying remote data …`,Restore_CreateFileList:$localize`Building list of files to restore …`,Restore_CreateTargetFolders:$localize`Creating target folders …`,Restore_ScanForExistingFiles:$localize`Scanning existing files …`,Restore_ScanForLocalBlocks:$localize`Scanning for local blocks …`,Restore_PatchWithLocalBlocks:$localize`Patching files with local blocks …`,Restore_DownloadingRemoteFiles:$localize`Downloading files …`,Restore_PostRestoreVerify:$localize`Verifying restored files …`,Restore_Complete:$localize`Restore complete!`,Recreate_Running:$localize`Recreating database …`,Vacuum_Running:$localize`Vacuuming database …`,Repair_Running:$localize`Repairing database …`,Verify_Running:$localize`Verifying files …`,BugReport_Running:$localize`Creating bug report …`,Delete_Listing:$localize`Listing remote files …`,Delete_Deleting:$localize`Deleting remote files …`,"PurgeFiles_Begin,":$localize`Listing remote files for purge …`,"PurgeFiles_Process,":$localize`Purging files …`,"PurgeFiles_Compact,":$localize`Compacting remote data …`,"PurgeFiles_Complete,":$localize`Purging files complete!`,Error:$localize`Error!`},z=class n{#e=1e3;#t=_(Re);#n=_(_e);#_=_(C);#s=_(he);#i=p(!1);#l=p(!1);#c=p(this.#e);#u=p(null);#r=p(!1);#o=p(!1);#a=p(null);#m=p(!1);statusData=this.#u.asReadonly();serverState=N(()=>{let e=this.#a();return e?(e.ProposedSchedule=e?.ProposedSchedule?.map(t=>{let i=t.Item1?this.#s.getBackupById(t.Item1):null;return I(M({},t),{backup:i})}),e):null});isFetching=this.#l.asReadonly();#p=null;#T=W(()=>{let e=this.#i(),t=this.#c();if(!e||!t||t<this.#e){this.#p&&window.clearInterval(this.#p);return}this.#p=window.setInterval(()=>{this.#S()},t)});start(){this.#r.set(!0),this.#d()}stop(){this.#r.set(!1)}startPollingProgress(){this.#S(),this.#i.set(!0)}stopPollingProgress(){this.#i.set(!1)}setProgressStatePollingInterval(e){if(e<this.#e){console.error(`Polling interval must be at least ${this.#e}ms`);return}this.#c.set(e)}serverStateEffect=W(()=>{if(this.#m()){this.stopPollingProgress();return}!this.#o()&&this.#r()?setTimeout(()=>{this.startPollingProgress(),this.#d()},1e3):this.stopPollingProgress()});calculateProgress(e){let t=-1;if(e.task&&e)if(e.Phase==="Backup_ProcessingFiles"||e.Phase==="Restore_DownloadingRemoteFiles")if(e.StillCounting)t=0;else{let i=e.CurrentFilecomplete?0:e.CurrentFileoffset,o=e.TotalFileCount-e.ProcessedFileCount,a=e.TotalFileSize-e.ProcessedFileSize-i;t=(e.ProcessedFileSize+i)/e.TotalFileSize,e.ProcessedFileCount===0?t=0:t>=.9&&(t=.9)}else e.Phase==="Backup_Finalize"||e.Phase==="Backup_WaitForUpload"?t=.9:e.Phase==="Backup_Delete"||e.Phase==="Backup_Compact"?t=.95:e.Phase==="Backup_VerificationUpload"||e.Phase==="Backup_PostBackupVerify"?t=.98:e.Phase==="Backup_Complete"||e.Phase==="Backup_WaitForUpload"?t=1:e.OverallProgress>0&&(t=e.OverallProgress);return t}constructStatusText(e){let t="Running \u2026";if(e.task&&e&&(t=e.Phase?be[e.Phase]:"Running \u2026",e.Phase==="Backup_ProcessingFiles"||e.Phase==="Restore_DownloadingRemoteFiles"))if(e.StillCounting)t=`Counting (${e.TotalFileCount} files found, ${this.#t.transform(e.TotalFileSize)})`;else{let i=e.CurrentFilecomplete?0:e.CurrentFileoffset,o=e.TotalFileCount-e.ProcessedFileCount,a=e.TotalFileSize-e.ProcessedFileSize-i,d=e.BackendSpeed<0?"":` at ${this.#t.transform(e.BackendSpeed)}/s`;t=`${e.Phase==="Restore_DownloadingRemoteFiles"?"Restoring: ":""}${o} files (${this.#t.transform(a)}) to go ${d}`}return t}#d(){if(this.#o())return;this.#o.set(!0);let e=this.#a()?.LastEventID,t=e==null?{}:{lastEventId:e,longpoll:!0,duration:"299s"};this.#_.getApiV1Serverstate(t).pipe(m(()=>this.#o.set(!1))).subscribe({next:i=>{this.#a()?.LastDataUpdateID!==i.LastDataUpdateID&&this.#s.getBackups(),this.#a.set(i)}})}#S(){this.#l.set(!0),this.#n.getApiV1Progressstate().pipe(J(e=>{let t=e.TaskID??null;return t===null?q(e):this.#_.getApiV1TaskByTaskid({taskid:t}).pipe(Z(i=>I(M({},e),{task:i??null})))}),m(()=>this.#l.set(!1))).subscribe({next:e=>{let t=e.TaskID??null,i=e.BackupID??null;if(t!==null&&i!==null){let o=this.#s.getBackupById(i);e.backup=o}e.task?.Status==="Completed"?this.#i.set(!1):this.#i.set(!0),this.#u.set(I(M({},e),{progress:this.calculateProgress(e),statusText:this.constructStatusText(e),actionText:e.backup?.Backup?.Name??$localize`Running task`}))},error:e=>{e.status===404&&this.#i.set(!1)}})}static \u0275fac=function(t){return new(t||n)};static \u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"})};function ve(n,e){if(n&1&&(l(0,"spk-option",14),g(1),s()),n&2){let t=e.$implicit;T("value",t),r(),X(t)}}function $e(n,e){if(n&1&&(l(0,"spk-option",14),g(1),s()),n&2){let t=e.$implicit;T("value",t),r(),X(t)}}var Le=["Byte/s","KByte/s","MByte/s","GByte/s","TByte/s","PByte/s"],K={Byte:"B",KByte:"KB",MByte:"MB",GByte:"GB",TByte:"TB",PByte:"PB"},Ne=Object.entries(K).reduce((n,[e,t])=>(n[t]=e,n),{}),F=class n{#e=_(C);closed=B();isSubmitting=p(!1);sizeOptions=p(Le);maxUploadActive=p(!1);maxDownloadActive=p(!1);maxUpload=p(0);maxDownload=p(0);maxUploadUnit=p("MByte/s");maxDownloadUnit=p("MByte/s");ngOnInit(){this.init()}init(){this.#e.getApiV1Serversettings().subscribe({next:e=>{let t=e?.["max-upload-speed"]?.split(/(\d+)/),i=e?.["max-download-speed"]?.split(/(\d+)/),o=t[1]??"",a=i[1]??"",d=t[2]??"MB",f=i[2]??"MB",Me=o===""?10:parseInt(o),Ie=a===""?10:parseInt(a);console.log(o),this.maxUploadUnit.set(Ne[d]+"/s"),this.maxDownloadUnit.set(Ne[f]+"/s"),this.maxUploadActive.set(o!==""),this.maxDownloadActive.set(a!==""),this.maxUpload.set(Me),this.maxDownload.set(Ie)}})}submit(){this.isSubmitting.set(!0);let e=this.maxUploadActive()?`${this.maxUpload()}${K[this.maxUploadUnit().replace("/s","")]}`:"",t=this.maxDownloadActive()?`${this.maxDownload()}${K[this.maxDownloadUnit().replace("/s","")]}`:"";console.log(e,t),this.#e.patchApiV1Serversettings({requestBody:{"max-upload-speed":e,"max-download-speed":t}}).pipe(m(()=>this.isSubmitting.set(!1))).subscribe({next:i=>{this.closed.emit(!0)}})}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=P({type:n,selectors:[["app-throttle-settings-dialog"]],outputs:{closed:"closed"},decls:30,vars:14,consts:()=>{let e;e=$localize`Throttle network speed`;let t;t=$localize` Max upload speed `;let i;i=$localize` Max download speed `;let o;o=$localize` Note that speeds are entered in bytes, and line speeds are typically reported in bits. Use a factor of 8 to convert, such that an 8 mbit/s line is equivalent to 1 MByte/s. `;let a;a=$localize`Cancel`;let d;return d=$localize` Update settings `,[e,t,i,o,a,d,["header",""],["content",""],[1,"column"],[1,"field-row"],[1,"primary","raised",3,"click"],["type","number",3,"ngModelChange","ngModel","disabled"],[3,"hideClearButton"],["type","text",3,"ngModelChange","ngModel"],[3,"value"],["footer",""],["spk-button","",3,"click"],["spk-button","",1,"raised","primary",3,"click"]]},template:function(t,i){t&1&&(l(0,"header",6)(1,"h3"),c(2,0),s()(),l(3,"div",7)(4,"div",8)(5,"div",9)(6,"spk-checkbox",10),u("click",function(){return i.maxUploadActive.set(!i.maxUploadActive())}),c(7,1),s(),l(8,"spk-form-field")(9,"input",11),D("ngModelChange",function(a){return R(i.maxUpload,a)||(i.maxUpload=a),a}),s()(),l(10,"spk-select",12)(11,"input",13),D("ngModelChange",function(a){return R(i.maxUploadUnit,a)||(i.maxUploadUnit=a),a}),s(),A(12,ve,2,2,"spk-option",14,O),s()(),l(14,"div",9)(15,"spk-checkbox",10),u("click",function(){return i.maxDownloadActive.set(!i.maxDownloadActive())}),c(16,2),s(),l(17,"spk-form-field")(18,"input",11),D("ngModelChange",function(a){return R(i.maxDownload,a)||(i.maxDownload=a),a}),s()(),l(19,"spk-select",12)(20,"input",13),D("ngModelChange",function(a){return R(i.maxDownloadUnit,a)||(i.maxDownloadUnit=a),a}),s(),A(21,$e,2,2,"spk-option",14,O),s()(),l(23,"p"),c(24,3),s()()(),l(25,"footer",15)(26,"button",16),u("click",function(){return i.closed.emit(!1)}),c(27,4),s(),l(28,"button",17),u("click",function(){return i.submit()}),c(29,5),s()()),t&2&&(r(6),S("active",i.maxUploadActive()),r(3),k("ngModel",i.maxUpload),T("disabled",!i.maxUploadActive()),r(),T("hideClearButton",!0),r(),k("ngModel",i.maxUploadUnit),r(),h(i.sizeOptions()),r(3),S("active",i.maxDownloadActive()),r(3),k("ngModel",i.maxDownload),T("disabled",!i.maxDownloadActive()),r(),T("hideClearButton",!0),r(),k("ngModel",i.maxDownloadUnit),r(),h(i.sizeOptions()),r(7),S("loader",i.isSubmitting()))},dependencies:[$,ce,Se,ue,de,Ae,Oe,Ce,L],styles:["[_nghost-%COMP%]{display:block}h3[_ngcontent-%COMP%]{font:var(--title-30)}.column[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.field-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;width:100%}"],changeDetection:0})};function Ge(n,e){if(n&1&&(l(0,"div"),g(1),s(),y(2,"spk-progress-bar",7)),n&2){let t=E();r(),ae("",t.statusData().actionText," - ",t.statusData().statusText,""),r(),T("value",t.statusData().progress*100)}}function Ue(n,e){if(n&1&&(l(0,"div",4),g(1),H(2,"appRelativeTime"),H(3,"date"),s()),n&2){let t,i=E();r(),se(" ",(t=i.nextBackup().backup)==null||t.Backup==null?null:t.Backup.Name," - ",le(2,3,i.nextBackup().time)," at ",re(3,5,i.nextBackup().time,"shortTime")," ")}}function xe(n,e){n&1&&(l(0,"div",4),c(1,1),s())}function ze(n,e){n&1&&(b(0,0,1),y(1,"spk-icon"),v())}function we(n,e){n&1&&(b(0,0,2),y(1,"spk-icon"),v())}var Fe=new Date,j=class n{#e=_(C);#t=_(z);#n=_(ge);minsAgo=Fe.setMinutes(Fe.getMinutes()-1);statusData=this.#t.statusData;serverState=this.#t.serverState;isRunning=N(()=>this.serverState()?.ProgramState==="Running");isResuming=p(!1);nextBackup=N(()=>({backup:this.serverState()?.ProposedSchedule?.[0]?.backup,time:this.serverState()?.ProposedSchedule?.[0]?.Item2}));openThrottleSettingsDialog(){this.#n.open(F,{maxWidth:"550px",width:"100%"})}openPauseDialog(){this.#n.open(x,{maxWidth:"550px",width:"100%"})}pauseResume(){if(this.isRunning()){this.openPauseDialog();return}this.isResuming.set(!0),this.#e.postApiV1ServerstateResume().pipe(m(()=>this.isResuming.set(!1))).subscribe()}ngOnInit(){this.#t.start()}ngOnDestroy(){this.#t.stop()}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=P({type:n,selectors:[["app-status-bar"]],decls:13,vars:4,consts:()=>{let e;e=$localize`${"\uFFFD*8:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SPK_ICON:pause${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPK_ICON: Pause ${"\uFFFD/*8:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*9:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SPK_ICON:play${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPK_ICON: Start ${"\uFFFD/*9:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,e=ne(e);let t;return t=$localize`Loading...`,[e,t,[1,"current-backup"],[1,"current-backup-progress"],[1,"label"],[1,"current-backup-actions"],["spk-button","",3,"click"],[1,"raised","primary",3,"value"]]},template:function(t,i){if(t&1&&(l(0,"div",2)(1,"div",3),w(2,Ge,3,3)(3,Ue,4,8,"div",4)(4,xe,2,0,"div",4),s(),l(5,"div",5)(6,"button",6),u("click",function(){return i.pauseResume()}),b(7,0),w(8,ze,2,0)(9,we,2,0),v(),s(),l(10,"button",6),u("click",function(){return i.openThrottleSettingsDialog()}),l(11,"spk-icon"),g(12,"speedometer"),s()()()()),t&2){let o;r(2),V(!((o=i.statusData())==null||o.task==null)&&o.task.Status&&((o=i.statusData())==null||o.task==null?null:o.task.Status)!=="Completed"?2:i.nextBackup().backup||i.nextBackup().time?3:4),r(4),S("loader",i.isResuming()),r(2),V(i.isRunning()?8:9)}},dependencies:[Pe,G,pe,me,fe],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:1rem;min-height:3.875rem;border-bottom:1px solid var(--base-level-40)}.current-backup[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%;gap:.5rem}.current-backup-progress[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;min-width:18.75rem}.current-backup-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"],changeDetection:0})};export{j as a};
1
+ import{a as he}from"./chunk-CPSIM3A5.js";import{b as ce,d as ue,g as de,i as Se,q as $}from"./chunk-DGRMASPQ.js";import{b as C,c as _e}from"./chunk-S4KMY7LU.js";import{a as me,b as Te,e as ge,g as fe,i as L,l as Ce,o as Pe,p as Ee,q as Oe,r as Ae}from"./chunk-BNW7MJ4U.js";import{a as Re}from"./chunk-KBOYFSOY.js";import{pa as pe}from"./chunk-NW7VZHBJ.js";import{a as ke}from"./chunk-VPWPYB3Z.js";import{Ab as h,Bb as l,Cb as s,Db as y,F as m,Hb as ie,Jc as N,Lc as W,N as J,Nb as b,Ob as v,Pb as c,Qa as r,Sb as ne,T as Y,Tb as u,Ub as E,Xa as p,Z as _,db as P,ea as Q,fa as ee,gb as te,gc as g,hc as X,ic as oe,jb as w,jc as ae,kc as se,l as q,lc as k,mc as R,nc as D,q as Z,qa as B,sb as T,ub as S,uc as H,vc as le,wc as re,xb as V,yb as O,zb as A}from"./chunk-CFESGUGK.js";import{a as M,b as I}from"./chunk-C6Q5SG76.js";var G=class n{#e=_(ke);transform(e,...t){return this.#e.locale(),this.#e(e).fromNow()}static \u0275fac=function(t){return new(t||n)};static \u0275pipe=te({name:"appRelativeTime",type:n,pure:!0})};function Be(n,e){if(n&1){let t=ie();l(0,"spk-radio",10),u("click",function(){let o=Q(t).$implicit,a=E();return ee(a.pauseOption.set(o.value))}),g(1),s()}if(n&2){let t=e.$implicit,i=E();S("active",i.pauseOption()===t.value),r(),oe(" ",t.label," ")}}var ye=[{label:$localize`5 minuts`,value:"5m"},{label:$localize`10 minuts`,value:"10m"},{label:$localize`15 minuts`,value:"15m"},{label:$localize`30 minuts`,value:"30m"},{label:$localize`1 hour`,value:"1h"},{label:$localize`4 hours`,value:"4h"},{label:$localize`8 hours`,value:"8h"},{label:$localize`24 hours`,value:"24h"},{label:$localize`Until resumed`,value:void 0}],x=class n{#e=_(C);pauseOptions=p(ye);closed=B();isSubmitting=p(!1);pauseTransfers=p(!1);pauseOption=p(void 0);submit(){this.isSubmitting.set(!0);let e=this.pauseTransfers()||null,t=this.pauseOption();this.#e.postApiV1ServerstatePause({duration:t,pauseTransfers:e}).pipe(m(()=>this.isSubmitting.set(!1))).subscribe({next:i=>{this.closed.emit()}})}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=P({type:n,selectors:[["app-pause-dialog"]],outputs:{closed:"closed"},decls:17,vars:4,consts:()=>{let e;e=$localize`Pause settings`;let t;t=$localize` Also pause transfers `;let i;i=$localize`If you pause transfers they could time out and cause retries or failures.`;let o;o=$localize`Cancel`;let a;return a=$localize` Update settings `,[e,t,i,o,a,["header",""],["content",""],[1,"radios"],[1,"primary","raised",3,"active"],[1,"check-wrap"],[1,"primary","raised",3,"click"],["type","warning"],["footer",""],["spk-button","",3,"click"],["spk-button","",1,"raised","primary",3,"click"]]},template:function(t,i){t&1&&(l(0,"header",5)(1,"h3"),c(2,0),s()(),l(3,"div",6)(4,"div",7),A(5,Be,2,3,"spk-radio",8,O),s(),l(7,"div",9)(8,"spk-checkbox",10),u("click",function(){return i.pauseTransfers.set(!i.pauseTransfers())}),c(9,1),s(),l(10,"spk-alert",11),c(11,2),s()()(),l(12,"footer",12)(13,"button",13),u("click",function(){return i.closed.emit()}),c(14,3),s(),l(15,"button",14),u("click",function(){return i.submit()}),c(16,4),s()()),t&2&&(r(5),h(i.pauseOptions()),r(3),S("active",i.pauseTransfers()),r(7),S("loader",i.isSubmitting()))},dependencies:[$,Ee,L,Te],styles:["[_nghost-%COMP%]{--dialog-p: 1.5rem;display:block}h3[_ngcontent-%COMP%]{font:var(--title-30)}.radios[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.check-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;padding:2rem 0 0}"],changeDetection:0})};var be={Backup_Begin:$localize`Starting backup …`,Backup_PreBackupVerify:$localize`Verifying backend data …`,Backup_PostBackupTest:$localize`Verifying remote data …`,Backup_PreviousBackupFinalize:$localize`Completing previous backup …`,Backup_ProcessingFiles:$localize`Processing files to backup …`,Backup_Finalize:$localize`Completing backup …`,Backup_WaitForUpload:$localize`Waiting for upload to finish …`,Backup_Delete:$localize`Deleting unwanted files …`,Backup_Compact:$localize`Compacting remote data …`,Backup_VerificationUpload:$localize`Uploading verification file …`,Backup_PostBackupVerify:$localize`Verifying backend data …`,Backup_Complete:$localize`Backup complete!`,Restore_Begin:$localize`Starting restore …`,Restore_RecreateDatabase:$localize`Rebuilding local database …`,Restore_PreRestoreVerify:$localize`Verifying remote data …`,Restore_CreateFileList:$localize`Building list of files to restore …`,Restore_CreateTargetFolders:$localize`Creating target folders …`,Restore_ScanForExistingFiles:$localize`Scanning existing files …`,Restore_ScanForLocalBlocks:$localize`Scanning for local blocks …`,Restore_PatchWithLocalBlocks:$localize`Patching files with local blocks …`,Restore_DownloadingRemoteFiles:$localize`Downloading files …`,Restore_PostRestoreVerify:$localize`Verifying restored files …`,Restore_Complete:$localize`Restore complete!`,Recreate_Running:$localize`Recreating database …`,Vacuum_Running:$localize`Vacuuming database …`,Repair_Running:$localize`Repairing database …`,Verify_Running:$localize`Verifying files …`,BugReport_Running:$localize`Creating bug report …`,Delete_Listing:$localize`Listing remote files …`,Delete_Deleting:$localize`Deleting remote files …`,"PurgeFiles_Begin,":$localize`Listing remote files for purge …`,"PurgeFiles_Process,":$localize`Purging files …`,"PurgeFiles_Compact,":$localize`Compacting remote data …`,"PurgeFiles_Complete,":$localize`Purging files complete!`,Error:$localize`Error!`},z=class n{#e=1e3;#t=_(Re);#n=_(_e);#_=_(C);#s=_(he);#i=p(!1);#l=p(!1);#c=p(this.#e);#u=p(null);#r=p(!1);#o=p(!1);#a=p(null);#m=p(!1);statusData=this.#u.asReadonly();serverState=N(()=>{let e=this.#a();return e?(e.ProposedSchedule=e?.ProposedSchedule?.map(t=>{let i=t.Item1?this.#s.getBackupById(t.Item1):null;return I(M({},t),{backup:i})}),e):null});isFetching=this.#l.asReadonly();#p=null;#T=W(()=>{let e=this.#i(),t=this.#c();if(!e||!t||t<this.#e){this.#p&&window.clearInterval(this.#p);return}this.#p=window.setInterval(()=>{this.#S()},t)});start(){this.#r.set(!0),this.#d()}stop(){this.#r.set(!1)}startPollingProgress(){this.#S(),this.#i.set(!0)}stopPollingProgress(){this.#i.set(!1)}setProgressStatePollingInterval(e){if(e<this.#e){console.error(`Polling interval must be at least ${this.#e}ms`);return}this.#c.set(e)}serverStateEffect=W(()=>{if(this.#m()){this.stopPollingProgress();return}!this.#o()&&this.#r()?setTimeout(()=>{this.startPollingProgress(),this.#d()},1e3):this.stopPollingProgress()});calculateProgress(e){let t=-1;if(e.task&&e)if(e.Phase==="Backup_ProcessingFiles"||e.Phase==="Restore_DownloadingRemoteFiles")if(e.StillCounting)t=0;else{let i=e.CurrentFilecomplete?0:e.CurrentFileoffset,o=e.TotalFileCount-e.ProcessedFileCount,a=e.TotalFileSize-e.ProcessedFileSize-i;t=(e.ProcessedFileSize+i)/e.TotalFileSize,e.ProcessedFileCount===0?t=0:t>=.9&&(t=.9)}else e.Phase==="Backup_Finalize"||e.Phase==="Backup_WaitForUpload"?t=.9:e.Phase==="Backup_Delete"||e.Phase==="Backup_Compact"?t=.95:e.Phase==="Backup_VerificationUpload"||e.Phase==="Backup_PostBackupVerify"?t=.98:e.Phase==="Backup_Complete"||e.Phase==="Backup_WaitForUpload"?t=1:e.OverallProgress>0&&(t=e.OverallProgress);return t}constructStatusText(e){let t="Running \u2026";if(e.task&&e&&(t=e.Phase?be[e.Phase]:"Running \u2026",e.Phase==="Backup_ProcessingFiles"||e.Phase==="Restore_DownloadingRemoteFiles"))if(e.StillCounting)t=`Counting (${e.TotalFileCount} files found, ${this.#t.transform(e.TotalFileSize)})`;else{let i=e.CurrentFilecomplete?0:e.CurrentFileoffset,o=e.TotalFileCount-e.ProcessedFileCount,a=e.TotalFileSize-e.ProcessedFileSize-i,d=e.BackendSpeed<0?"":` at ${this.#t.transform(e.BackendSpeed)}/s`;t=`${e.Phase==="Restore_DownloadingRemoteFiles"?"Restoring: ":""}${o} files (${this.#t.transform(a)}) to go ${d}`}return t}#d(){if(this.#o())return;this.#o.set(!0);let e=this.#a()?.LastEventID,t=e==null?{}:{lastEventId:e,longpoll:!0,duration:"299s"};this.#_.getApiV1Serverstate(t).pipe(m(()=>this.#o.set(!1))).subscribe({next:i=>{this.#a()?.LastDataUpdateID!==i.LastDataUpdateID&&this.#s.getBackups(),this.#a.set(i)}})}#S(){this.#l.set(!0),this.#n.getApiV1Progressstate().pipe(J(e=>{let t=e.TaskID??null;return t===null?q(e):this.#_.getApiV1TaskByTaskid({taskid:t}).pipe(Z(i=>I(M({},e),{task:i??null})))}),m(()=>this.#l.set(!1))).subscribe({next:e=>{let t=e.TaskID??null,i=e.BackupID??null;if(t!==null&&i!==null){let o=this.#s.getBackupById(i);e.backup=o}e.task?.Status==="Completed"?this.#i.set(!1):this.#i.set(!0),this.#u.set(I(M({},e),{progress:this.calculateProgress(e),statusText:this.constructStatusText(e),actionText:e.backup?.Backup?.Name??$localize`Running task`}))},error:e=>{e.status===404&&this.#i.set(!1)}})}static \u0275fac=function(t){return new(t||n)};static \u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"})};function ve(n,e){if(n&1&&(l(0,"spk-option",14),g(1),s()),n&2){let t=e.$implicit;T("value",t),r(),X(t)}}function $e(n,e){if(n&1&&(l(0,"spk-option",14),g(1),s()),n&2){let t=e.$implicit;T("value",t),r(),X(t)}}var Le=["Byte/s","KByte/s","MByte/s","GByte/s","TByte/s","PByte/s"],K={Byte:"B",KByte:"KB",MByte:"MB",GByte:"GB",TByte:"TB",PByte:"PB"},Ne=Object.entries(K).reduce((n,[e,t])=>(n[t]=e,n),{}),F=class n{#e=_(C);closed=B();isSubmitting=p(!1);sizeOptions=p(Le);maxUploadActive=p(!1);maxDownloadActive=p(!1);maxUpload=p(0);maxDownload=p(0);maxUploadUnit=p("MByte/s");maxDownloadUnit=p("MByte/s");ngOnInit(){this.init()}init(){this.#e.getApiV1Serversettings().subscribe({next:e=>{let t=e?.["max-upload-speed"]?.split(/(\d+)/),i=e?.["max-download-speed"]?.split(/(\d+)/),o=t[1]??"",a=i[1]??"",d=t[2]??"MB",f=i[2]??"MB",Me=o===""?10:parseInt(o),Ie=a===""?10:parseInt(a);console.log(o),this.maxUploadUnit.set(Ne[d]+"/s"),this.maxDownloadUnit.set(Ne[f]+"/s"),this.maxUploadActive.set(o!==""),this.maxDownloadActive.set(a!==""),this.maxUpload.set(Me),this.maxDownload.set(Ie)}})}submit(){this.isSubmitting.set(!0);let e=this.maxUploadActive()?`${this.maxUpload()}${K[this.maxUploadUnit().replace("/s","")]}`:"",t=this.maxDownloadActive()?`${this.maxDownload()}${K[this.maxDownloadUnit().replace("/s","")]}`:"";console.log(e,t),this.#e.patchApiV1Serversettings({requestBody:{"max-upload-speed":e,"max-download-speed":t}}).pipe(m(()=>this.isSubmitting.set(!1))).subscribe({next:i=>{this.closed.emit(!0)}})}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=P({type:n,selectors:[["app-throttle-settings-dialog"]],outputs:{closed:"closed"},decls:30,vars:14,consts:()=>{let e;e=$localize`Throttle network speed`;let t;t=$localize` Max upload speed `;let i;i=$localize` Max download speed `;let o;o=$localize` Note that speeds are entered in bytes, and line speeds are typically reported in bits. Use a factor of 8 to convert, such that an 8 mbit/s line is equivalent to 1 MByte/s. `;let a;a=$localize`Cancel`;let d;return d=$localize` Update settings `,[e,t,i,o,a,d,["header",""],["content",""],[1,"column"],[1,"field-row"],[1,"primary","raised",3,"click"],["type","number",3,"ngModelChange","ngModel","disabled"],[3,"hideClearButton"],["type","text",3,"ngModelChange","ngModel"],[3,"value"],["footer",""],["spk-button","",3,"click"],["spk-button","",1,"raised","primary",3,"click"]]},template:function(t,i){t&1&&(l(0,"header",6)(1,"h3"),c(2,0),s()(),l(3,"div",7)(4,"div",8)(5,"div",9)(6,"spk-checkbox",10),u("click",function(){return i.maxUploadActive.set(!i.maxUploadActive())}),c(7,1),s(),l(8,"spk-form-field")(9,"input",11),D("ngModelChange",function(a){return R(i.maxUpload,a)||(i.maxUpload=a),a}),s()(),l(10,"spk-select",12)(11,"input",13),D("ngModelChange",function(a){return R(i.maxUploadUnit,a)||(i.maxUploadUnit=a),a}),s(),A(12,ve,2,2,"spk-option",14,O),s()(),l(14,"div",9)(15,"spk-checkbox",10),u("click",function(){return i.maxDownloadActive.set(!i.maxDownloadActive())}),c(16,2),s(),l(17,"spk-form-field")(18,"input",11),D("ngModelChange",function(a){return R(i.maxDownload,a)||(i.maxDownload=a),a}),s()(),l(19,"spk-select",12)(20,"input",13),D("ngModelChange",function(a){return R(i.maxDownloadUnit,a)||(i.maxDownloadUnit=a),a}),s(),A(21,$e,2,2,"spk-option",14,O),s()(),l(23,"p"),c(24,3),s()()(),l(25,"footer",15)(26,"button",16),u("click",function(){return i.closed.emit(!1)}),c(27,4),s(),l(28,"button",17),u("click",function(){return i.submit()}),c(29,5),s()()),t&2&&(r(6),S("active",i.maxUploadActive()),r(3),k("ngModel",i.maxUpload),T("disabled",!i.maxUploadActive()),r(),T("hideClearButton",!0),r(),k("ngModel",i.maxUploadUnit),r(),h(i.sizeOptions()),r(3),S("active",i.maxDownloadActive()),r(3),k("ngModel",i.maxDownload),T("disabled",!i.maxDownloadActive()),r(),T("hideClearButton",!0),r(),k("ngModel",i.maxDownloadUnit),r(),h(i.sizeOptions()),r(7),S("loader",i.isSubmitting()))},dependencies:[$,ce,Se,ue,de,Ae,Oe,Ce,L],styles:["[_nghost-%COMP%]{display:block}h3[_ngcontent-%COMP%]{font:var(--title-30)}.column[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.field-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;width:100%}"],changeDetection:0})};function Ge(n,e){if(n&1&&(l(0,"div"),g(1),s(),y(2,"spk-progress-bar",7)),n&2){let t=E();r(),ae("",t.statusData().actionText," - ",t.statusData().statusText,""),r(),T("value",t.statusData().progress*100)}}function Ue(n,e){if(n&1&&(l(0,"div",4),g(1),H(2,"appRelativeTime"),H(3,"date"),s()),n&2){let t,i=E();r(),se(" ",(t=i.nextBackup().backup)==null||t.Backup==null?null:t.Backup.Name," - ",le(2,3,i.nextBackup().time)," at ",re(3,5,i.nextBackup().time,"shortTime")," ")}}function xe(n,e){n&1&&(l(0,"div",4),c(1,1),s())}function ze(n,e){n&1&&(b(0,0,1),y(1,"spk-icon"),v())}function we(n,e){n&1&&(b(0,0,2),y(1,"spk-icon"),v())}var Fe=new Date,j=class n{#e=_(C);#t=_(z);#n=_(ge);minsAgo=Fe.setMinutes(Fe.getMinutes()-1);statusData=this.#t.statusData;serverState=this.#t.serverState;isRunning=N(()=>this.serverState()?.ProgramState==="Running");isResuming=p(!1);nextBackup=N(()=>({backup:this.serverState()?.ProposedSchedule?.[0]?.backup,time:this.serverState()?.ProposedSchedule?.[0]?.Item2}));openThrottleSettingsDialog(){this.#n.open(F,{maxWidth:"550px",width:"100%"})}openPauseDialog(){this.#n.open(x,{maxWidth:"550px",width:"100%"})}pauseResume(){if(this.isRunning()){this.openPauseDialog();return}this.isResuming.set(!0),this.#e.postApiV1ServerstateResume().pipe(m(()=>this.isResuming.set(!1))).subscribe()}ngOnInit(){this.#t.start()}ngOnDestroy(){this.#t.stop()}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=P({type:n,selectors:[["app-status-bar"]],decls:13,vars:4,consts:()=>{let e;e=$localize`${"\uFFFD*8:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SPK_ICON:pause${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPK_ICON: Pause ${"\uFFFD/*8:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*9:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SPK_ICON:play${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPK_ICON: Start ${"\uFFFD/*9:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,e=ne(e);let t;return t=$localize`Loading...`,[e,t,[1,"current-backup"],[1,"current-backup-progress"],[1,"label"],[1,"current-backup-actions"],["spk-button","",3,"click"],[1,"raised","primary",3,"value"]]},template:function(t,i){if(t&1&&(l(0,"div",2)(1,"div",3),w(2,Ge,3,3)(3,Ue,4,8,"div",4)(4,xe,2,0,"div",4),s(),l(5,"div",5)(6,"button",6),u("click",function(){return i.pauseResume()}),b(7,0),w(8,ze,2,0)(9,we,2,0),v(),s(),l(10,"button",6),u("click",function(){return i.openThrottleSettingsDialog()}),l(11,"spk-icon"),g(12,"speedometer"),s()()()()),t&2){let o;r(2),V(!((o=i.statusData())==null||o.task==null)&&o.task.Status&&((o=i.statusData())==null||o.task==null?null:o.task.Status)!=="Completed"?2:i.nextBackup().backup||i.nextBackup().time?3:4),r(4),S("loader",i.isResuming()),r(2),V(i.isRunning()?8:9)}},dependencies:[Pe,G,pe,me,fe],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:1rem;min-height:3.875rem;border-bottom:1px solid var(--base-level-40)}.current-backup[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%;gap:.5rem}.current-backup-progress[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;min-width:18.75rem}.current-backup-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"],changeDetection:0})};export{j as a};
@@ -0,0 +1,6 @@
1
+ import{g as Xt}from"./chunk-BV5HWLOE.js";import{a as U,b as Wt,c as zt,q as Z}from"./chunk-7CHRY23V.js";import{a as Ht}from"./chunk-XZ2Z3I76.js";import{a as Kt}from"./chunk-3UJYR3C3.js";import"./chunk-DNHLTHLR.js";import"./chunk-QBFOFC2S.js";import"./chunk-IQHACOOA.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-DGRMASPQ.js";import{b as Ct}from"./chunk-S4KMY7LU.js";import{a as ut,c as Tt}from"./chunk-7NOLIW3Y.js";import"./chunk-7EROSQ6G.js";import{a as wt,b as vt,d as At,e as Pt,i as Vt,l as Mt,n as bt,q as Gt,r as Bt,w as Lt,x as Ut}from"./chunk-BNW7MJ4U.js";import{c as dt}from"./chunk-HYRUU7RC.js";import{ia as Ft}from"./chunk-NW7VZHBJ.js";import{Ab as E,Bb as r,Cb as a,Db as u,Eb as v,F as tt,Fb as A,Gb as M,Hb as x,Jc as K,Lc as mt,Nb as N,Ob as R,Pb as b,Qa as o,Qb as q,Rb as j,Sb as H,Tb as g,Ub as s,Xa as h,Xb as y,Ya as nt,Z as w,_b as T,db as it,dc as ot,ea as C,ec as at,fa as f,fc as G,gc as p,hc as V,ic as O,ja as et,jb as F,jc as Q,lc as rt,mc as lt,nc as st,pc as pt,qc as _t,rc as B,sb as c,tc as L,ub as X,xb as d,xc as ct,yb as D,zb as S}from"./chunk-CFESGUGK.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
+ If this is a self-signed certificate, you can choose to trust this certificate.
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
+ otherwise you could be the victim of a MAN-IN-THE-MIDDLE attack.
5
+ Do you want to REPLACE your CURRENT host key ${k}
6
+ with the REPORTED host key: ${m}?`,confirmText:$localize`Approve`,cancelText:$localize`Cancel`},closed:I=>{I&&this.#t.addAdvancedFormPairByName("ssh-fingerprint",i,m)}}):this.#e.open(U,{maxWidth:"500px",data:{title:$localize`Approve host key?`,message:$localize`No certificate was specified, please verify that the reported host key is correct: ${m}`,confirmText:"Approve",cancelText:"Cancel"},closed:I=>{I&&this.#t.addAdvancedFormPairByName("ssh-fingerprint",i,m)}})}}})}mapToTargetUrl(i){return Wt(i.value)}removeDestinationFormGroup(i){this.destinationForm.controls.destinations.removeAt(i)}displayFn(i){let t=this.destinationOptions().find(e=>e.Key===i);return t?`${t.DisplayName}`:""}goBack(){this.#n.exit()}next(){this.#l.navigate(["encryption"],{relativeTo:this.#s.parent})}#o=h("https://duplicati-oauth-handler.appspot.com/").asReadonly();#a=h(Math.random().toString(36).substring(2)+Math.random().toString(36).substring(2)).asReadonly();#r=h(!1);#_=h(null);keyCreation(){}oauthStartTokenCreation(i){this.#r.set(!0);let t=450,e=600,l=this.#o()+"?type="+i+"&token="+this.#a(),_=screen.width/2-t/2,m=screen.height/2-e/2,k=window.open(l,"_blank","height="+e+",width="+t+",menubar=0,status=0,titlebar=0,toolbar=0,left="+_+",top="+m);k?.addEventListener("blur",I=>{console.log("event blur",I)}),k?.addEventListener("beforeunload",I=>{console.log("event beforeunload",I),this.#p.get(this.#o()+"fetch?callback=JSON_CALLBACK",{params:{token:this.#a()}}).pipe(tt(()=>this.#r.set(!1))).subscribe({next:P=>{console.log("res",P),P?.authid&&this.#_.set(P.authid)}})})}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=it({type:n,selectors:[["app-restore-destination"]],viewQuery:function(t,e){t&1&&ot(e.formRef,qt,5),t&2&&at()},features:[pt([Z])],decls:24,vars:6,consts:()=>{let i;i=$localize` Backup placement ${"\uFFFD#5\uFFFD"}:START_TAG_DIV:${"\uFFFD*6:1\uFFFD"}:START_BLOCK_IF_1:${"\uFFFD#1:1\uFFFD"}:START_TAG_BUTTON:${"\uFFFD*2:2\uFFFD"}:START_BLOCK_IF: Connected ${"[\uFFFD#1:2\uFFFD|\uFFFD#9\uFFFD|\uFFFD#12\uFFFD]"}:START_TAG_SPK_ICON:check${"[\uFFFD/#1:2\uFFFD|\uFFFD/#9\uFFFD|\uFFFD/#12\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/*2:2\uFFFD|\uFFFD/*6:1\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*3:3\uFFFD"}:START_BLOCK_ELSE: Test destination ${"\uFFFD/*3:3\uFFFD"}:CLOSE_BLOCK_ELSE:${"[\uFFFD/#1:1\uFFFD|\uFFFD/#8\uFFFD|\uFFFD/#11\uFFFD]"}:CLOSE_TAG_BUTTON:${"[\uFFFD/*2:2\uFFFD|\uFFFD/*6:1\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD#7\uFFFD"}:START_TAG_SPK_MENU:${"\uFFFD#8\uFFFD"}:START_TAG_BUTTON_1:${"[\uFFFD#1:2\uFFFD|\uFFFD#9\uFFFD|\uFFFD#12\uFFFD]"}:START_TAG_SPK_ICON:dots-three-vertical${"[\uFFFD/#1:2\uFFFD|\uFFFD/#9\uFFFD|\uFFFD/#12\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/#1:1\uFFFD|\uFFFD/#8\uFFFD|\uFFFD/#11\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#10\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD#11\uFFFD"}:START_TAG_BUTTON_2:${"[\uFFFD#1:2\uFFFD|\uFFFD#9\uFFFD|\uFFFD#12\uFFFD]"}:START_TAG_SPK_ICON:link${"[\uFFFD/#1:2\uFFFD|\uFFFD/#9\uFFFD|\uFFFD/#12\uFFFD]"}:CLOSE_TAG_SPK_ICON: Edit target URL ${"[\uFFFD/#1:1\uFFFD|\uFFFD/#8\uFFFD|\uFFFD/#11\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/#10\uFFFD"}:CLOSE_TAG_NG_CONTAINER:${"\uFFFD/#7\uFFFD"}:CLOSE_TAG_SPK_MENU:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_DIV:`,i=H(i);let t;t=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SPK_ICON: Exit `;let e;e=$localize`${"\uFFFD#22\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SPK_ICON: Continue `;let l;l=$localize` Want to select another destination? ${"\uFFFD#2\uFFFD"}:START_TAG_SPAN:Click here${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPAN:`;let _;_=$localize`Other destinations`;let m;m=$localize` Advanced options ${"\uFFFD#9\uFFFD"}:START_TAG_SPK_MENU:${"\uFFFD#10\uFFFD"}:START_TAG_BUTTON: Add advanced option ${"\uFFFD#11\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#11\uFFFD"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/#10\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#12\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD*14:1\uFFFD"}:START_BLOCK_FOR:${"\uFFFD#1:1\uFFFD"}:START_TAG_BUTTON_1: ${"\uFFFD0:1\uFFFD"}:INTERPOLATION: ${"[\uFFFD/#10\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/*14:1\uFFFD"}:CLOSE_BLOCK_FOR:${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_NG_CONTAINER:${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SPK_MENU:`,m=H(m);let k;k=$localize` Http options ${"\uFFFD#20\uFFFD"}:START_TAG_SPK_MENU:${"\uFFFD#21\uFFFD"}:START_TAG_BUTTON: Add http option ${"\uFFFD#22\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/#21\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#23\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD*25:1\uFFFD"}:START_BLOCK_FOR:${"\uFFFD#1:1\uFFFD"}:START_TAG_BUTTON_1: ${"\uFFFD0:1\uFFFD"}:INTERPOLATION: ${"[\uFFFD/#21\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/*25:1\uFFFD"}:CLOSE_BLOCK_FOR:${"\uFFFD/#23\uFFFD"}:CLOSE_TAG_NG_CONTAINER:${"\uFFFD/#20\uFFFD"}:CLOSE_TAG_SPK_MENU:`,k=H(k);let I;I=$localize`Edit target URL`;let P;P=$localize` Be careful, this will overwrite everything you have in your destination. `;let Y;return Y=$localize` Override target URL ${"\uFFFD#14\uFFFD"}:START_TAG_SPK_ICON:swap${"\uFFFD/#14\uFFFD"}:CLOSE_TAG_SPK_ICON:`,[["formRef",""],["fieldTemplate",""],i,t,e,l,_,m,k,I,P,Y,[3,"submit","formGroup"],[1,"title-30"],[1,"actions"],["spk-button","","type","button",1,"small",3,"success"],["spk-button","","type","button",1,"small"],["menu",""],["spk-button","","type","button",1,"small",3,"click"],["formArrayName","destinations"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"],[3,"isOpen","options"],[3,"click"],[1,"spk-primary"],[1,"most-common-destinations"],[1,"tile"],["spk-button","","type","button",1,"outlined"],["item","","type","button"],[1,"tile",3,"click"],["item","","type","button",3,"click"],["formGroupName","0"],[3,"disallowToggle"],["title",""],["spk-button","","type","button",1,"outlined","small",3,"disabled"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"field-row"],[3,"formGroupName"],[3,"startingPath","accepts","showFiles","hideShortcuts","showHiddenNodes","selectFiles"],[3,"hideShortcuts","startingPath"],[3,"hideClearButton"],[3,"isFreeText"],[1,"form-column",3,"formGroupName"],[1,"primary","raised"],[1,"primary",3,"selectMultiple"],[3,"for"],[1,"primary",3,"message"],["type","text",3,"id","formControlName"],[3,"type","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"],[3,"value"],["type","search",3,"id","formControlName"],[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"],["spk-button","","type","button",1,"outlined",3,"click"],[3,"isOpenChange","isOpen","options"],["header",""],[1,"warning"],["content",""],["id","targetUrl","autocomplete","off",3,"formControl"],["footer",""],["spk-button","","type","submit",1,"raised","primary",3,"click"]]},template:function(t,e){if(t&1){let l=x();r(0,"form",12,0),g("submit",function(){return C(l),f(e.next())}),r(2,"header")(3,"h3",13),N(4,2),r(5,"div",14),F(6,ne,4,3,"button",15),r(7,"spk-menu")(8,"button",16),u(9,"spk-icon"),a(),v(10,17),r(11,"button",18),g("click",function(){return C(l),f(e.openTargetUrlDialog())}),u(12,"spk-icon"),a(),A(),a()(),R(),a(),F(13,ie,3,0,"p"),a(),F(14,re,9,0)(15,rn,30,4,"ng-container",19),r(16,"div",20)(17,"button",21),g("click",function(){return C(l),f(e.goBack())}),N(18,3),u(19,"spk-icon"),R(),a(),r(20,"button",22),N(21,4),u(22,"spk-icon"),R(),a()()(),F(23,ln,15,4,"spk-dialog",23)}if(t&2){let l;c("formGroup",e.destinationForm),o(6),d(e.destinationCount()>0?6:-1),o(7),d(e.destinationCount()>0?13:-1),o(),d(e.destinationCount()===0?14:-1),o(),d(!((l=e.destinationFormSignal())==null||l.destinations==null)&&l.destinations.length?15:-1),o(8),d(e.targetUrlDialogOpen()?23:-1)}},dependencies:[$t,Ot,gt,xt,ft,Dt,St,kt,Nt,yt,Rt,ht,Ft,Mt,Bt,bt,Vt,Gt,wt,Lt,Ut,At,vt,Kt,Ht],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:32.5rem;padding:2.5rem}header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], header[_ngcontent-%COMP%] spk-alert[_ngcontent-%COMP%]{width:100%}header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:.5rem}header[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline}header[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}pre[_ngcontent-%COMP%]{white-space:pre-wrap}.field-row[_ngcontent-%COMP%]{display:grid;align-items:flex-end;grid-template-columns:1fr 2.5rem;gap:.5rem}.field-row.single-field[_ngcontent-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.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}.form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:2fr 1fr;gap:.5rem;align-items:flex-end}.clickable[_ngcontent-%COMP%]{cursor:pointer;color:var(--primary-500)}.most-common-destinations[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;padding:1rem;border:1px solid var(--base-level-40);border-radius:var(--shape-3);box-shadow:var(--shadow-1);background-color:var(--base-level-20);cursor:pointer}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-10);margin:0}[prefix].link[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline;color:var(--primary-500)}textarea[_ngcontent-%COMP%] ~ grammarly-extension[_ngcontent-%COMP%]{display:none}"],changeDetection:0})};export{vn as createDestinationForm,An as createDestinationFormGroup,J as default};
@@ -1 +1 @@
1
- import{b as A}from"./chunk-Z6DKPRZO.js";import{b as S}from"./chunk-3FAE4RKT.js";import{c as M}from"./chunk-S3X5GKHD.js";import{o as P}from"./chunk-LEG3VUID.js";import"./chunk-ZFV5KH42.js";import"./chunk-DC7QVFBV.js";import{Bb as i,Cb as r,Db as _,F as p,Pb as C,Qa as m,Xa as c,Z as o,db as g,gc as u,hc as E,jb as d,q as l,xb as f}from"./chunk-UI7YZPLW.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=c(!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),m(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-QBFOFC2S.js";import{b as S}from"./chunk-S4KMY7LU.js";import{c as M}from"./chunk-7EROSQ6G.js";import{o as P}from"./chunk-BNW7MJ4U.js";import"./chunk-HYRUU7RC.js";import"./chunk-NW7VZHBJ.js";import{Bb as i,Cb as r,Db as _,F as p,Pb as C,Qa as m,Xa as c,Z as o,db as g,gc as u,hc as E,jb as d,q as l,xb as f}from"./chunk-CFESGUGK.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=c(!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),m(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};