@duplicati/ngclient 0.0.21 → 0.0.23

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 (69) hide show
  1. package/assets/spk.woff2 +0 -0
  2. package/chunk-22ZYSOTR.js +1 -0
  3. package/chunk-37USSSCL.js +1 -0
  4. package/{chunk-ICX4A35N.js → chunk-3ZEBM2Q6.js} +1 -1
  5. package/{chunk-6FMOBX4W.js → chunk-4EODC7AQ.js} +1 -1
  6. package/{chunk-DUEP5NWI.js → chunk-5AC7O5ME.js} +1 -1
  7. package/{chunk-QILG6324.js → chunk-6GOAPINI.js} +1 -1
  8. package/chunk-6RIA76HG.js +1 -0
  9. package/chunk-73UOOUBD.js +1 -0
  10. package/{chunk-OLR3NLBF.js → chunk-AIWAOXTQ.js} +1 -1
  11. package/{chunk-HQEL6ET4.js → chunk-BHQV6I5A.js} +1 -1
  12. package/chunk-C6XNKGG2.js +1 -0
  13. package/{chunk-THXSJ5EB.js → chunk-CLHK3WG3.js} +1 -1
  14. package/{chunk-VCWCJ6GK.js → chunk-CLPPNSLN.js} +1 -1
  15. package/{chunk-4UMXA6ZN.js → chunk-EEZT434V.js} +2 -2
  16. package/chunk-EZH4RUS3.js +1 -0
  17. package/chunk-FRD2BVV6.js +6 -0
  18. package/chunk-GQQ7YXKJ.js +1 -0
  19. package/{chunk-24SCDXOT.js → chunk-ICNC6KVB.js} +1 -1
  20. package/chunk-IEVRQDB6.js +1 -0
  21. package/{chunk-EE44D7EI.js → chunk-IXLTPP72.js} +1 -1
  22. package/{chunk-XG5WW7WW.js → chunk-JNQHJPEL.js} +1 -1
  23. package/chunk-LFGIPWCL.js +1 -0
  24. package/chunk-LZSE733H.js +1 -0
  25. package/{chunk-ZHM55NRD.js → chunk-N6REZCKW.js} +1 -1
  26. package/chunk-ORCLDJSO.js +1 -0
  27. package/{chunk-HAGEM2KU.js → chunk-OVWWCW76.js} +1 -1
  28. package/{chunk-ETZPVGXX.js → chunk-PFVXGEM7.js} +1 -1
  29. package/{chunk-I62MTURC.js → chunk-Q76L4VLC.js} +1 -1
  30. package/chunk-QHJTF3V4.js +8 -0
  31. package/chunk-RWFWLGB7.js +1 -0
  32. package/chunk-SFRGISK2.js +1 -0
  33. package/{chunk-EC4YV54D.js → chunk-TKY4PPEK.js} +1 -1
  34. package/chunk-UVFVZQCU.js +1 -0
  35. package/{chunk-ZCCVAPLP.js → chunk-VC4GI7EV.js} +1 -1
  36. package/{chunk-AE4UH7UP.js → chunk-VOS5UL4W.js} +1 -1
  37. package/chunk-VUEDXCG5.js +1 -0
  38. package/{chunk-XWP5J7FY.js → chunk-WSTPDNCJ.js} +1 -1
  39. package/chunk-X53IGCHF.js +1 -0
  40. package/{chunk-XX4XT5RQ.js → chunk-XDYHN4IQ.js} +1 -1
  41. package/{chunk-SCOHUUYQ.js → chunk-XGBLG5PU.js} +1 -1
  42. package/{chunk-D3SNAEYH.js → chunk-Z7GRCDAT.js} +1 -1
  43. package/chunk-ZPJ6YV7Y.js +1 -0
  44. package/chunk-ZSOWH34L.js +1 -0
  45. package/index.html +2 -2
  46. package/main-KQJXLVHZ.js +1 -0
  47. package/package.json +1 -1
  48. package/{styles-EYLEETOZ.css → styles-LL6J7JBI.css} +1 -1
  49. package/chunk-3ZII4VBA.js +0 -1
  50. package/chunk-4I2FZHFA.js +0 -1
  51. package/chunk-5P5MCIGV.js +0 -1
  52. package/chunk-5XTTHY4J.js +0 -1
  53. package/chunk-72GO2ZEM.js +0 -1
  54. package/chunk-APGFOGYB.js +0 -1
  55. package/chunk-AT2YMZPR.js +0 -1
  56. package/chunk-BGMX7SZ6.js +0 -1
  57. package/chunk-CBPKRHET.js +0 -1
  58. package/chunk-HK24NYRP.js +0 -1
  59. package/chunk-KOIUHATU.js +0 -1
  60. package/chunk-M6XAG6QD.js +0 -1
  61. package/chunk-NN4VOZJP.js +0 -1
  62. package/chunk-NUWA7AOR.js +0 -8
  63. package/chunk-PB775LH4.js +0 -1
  64. package/chunk-PJY2UW7Y.js +0 -1
  65. package/chunk-S4TH7BUT.js +0 -1
  66. package/chunk-VLYQWE2X.js +0 -1
  67. package/chunk-WIE3F2D2.js +0 -1
  68. package/chunk-ZMHOWC7A.js +0 -1
  69. package/main-WNZU6MTP.js +0 -1
@@ -1 +1 @@
1
- import{a as N}from"./chunk-QILG6324.js";import{a as M}from"./chunk-ICX4A35N.js";import{l as L}from"./chunk-3ZII4VBA.js";import{a as V,b as O}from"./chunk-5P5MCIGV.js";import{D as S,Eb as p,Hb as k,K as D,Ma as u,Nb as A,P as I,Sa as i,Sb as E,Tb as R,V as r,X as y,_ as C,_a as _,ab as x,dc as c,fb as T,fc as v,jb as l,kb as o,l as b,lb as w,p as B,rb as h}from"./chunk-NUWA7AOR.js";import{a as f,b as g}from"./chunk-7CGTOI24.js";var m=class a{#t=r(N);transform(e,...t){return this.#t(e).fromNow()}static \u0275fac=function(t){return new(t||a)};static \u0275pipe=C({name:"appRelativeTime",type:a,pure:!0,standalone:!0})};var d=class a{#t=1e3;#d=r(O);#o=r(V);#n=r(M);#e=i(!1);#i=i(!1);#u=i(this.#t);#p=i(null);#r=i(!1);#s=i(!1);#a=i(null);#f=i(!1);statusData=this.#p.asReadonly();serverState=c(()=>{let e=this.#a();return e?(e.ProposedSchedule=e?.ProposedSchedule?.map(t=>{let s=t.Item1?this.#n.getBackupById(t.Item1):null;return g(f({},t),{backup:s})}),e):null});isFetching=this.#i.asReadonly();#l=null;#g=v(()=>{let e=this.#e(),t=this.#u();if(!e||!t||t<this.#t){this.#l&&window.clearInterval(this.#l);return}this.#l=window.setInterval(()=>{this.#m()},t)});start(){this.#r.set(!0),this.#c()}stop(){this.#r.set(!1)}startPollingProgress(){this.#m(),this.#e.set(!0)}stopPollingProgress(){this.#e.set(!1)}setProgressStatePollingInterval(e){if(e<this.#t){console.error(`Polling interval must be at least ${this.#t}ms`);return}this.#u.set(e)}serverStateEffect=v(()=>{if(this.#f()){this.stopPollingProgress();return}!this.#s()&&this.#r()?setTimeout(()=>{this.startPollingProgress(),this.#c()},1e3):this.stopPollingProgress()},{allowSignalWrites:!0});#c(){if(this.#s())return;this.#s.set(!0);let e=this.#a()?.LastEventID,t=e==null?{}:{lastEventId:e,longpoll:!0,duration:"299s"};this.#o.getApiV1Serverstate(t).pipe(S(()=>this.#s.set(!1))).subscribe({next:s=>{this.#a()?.LastDataUpdateID!==s.LastDataUpdateID&&this.#n.getBackups(),this.#a.set(s)}})}#m(){this.#i.set(!0),this.#d.getApiV1Progressstate().pipe(D(e=>{let t=e.TaskID??null;return t===null?b(e):this.#o.getApiV1TaskByTaskid({taskid:t}).pipe(B(s=>g(f({},e),{task:s??null})))}),S(()=>this.#i.set(!1))).subscribe({next:e=>{let t=e.TaskID??null,s=e.BackupID??null;if(t!==null&&s!==null){let n=this.#n.getBackupById(s);e.backup=n}e.task?.Status==="Completed"?this.#e.set(!1):this.#e.set(!0),this.#p.set(e)},error:e=>{e.status===404&&this.#e.set(!1)}})}static \u0275fac=function(t){return new(t||a)};static \u0275prov=I({token:a,factory:a.\u0275fac,providedIn:"root"})};function G(a,e){if(a&1&&(l(0,"div",2),p(1),o(),w(2,"spk-progress-bar",3)),a&2){let t,s,n=h();u(),k("",(t=n.statusData())==null||t.task==null?null:t.task.Status," - ",(t=n.statusData())==null||t.backup==null||t.backup.Backup==null?null:t.backup.Backup.Name,""),u(),x("value",(s=n.statusData())!=null&&s.OverallProgress?((s=n.statusData())==null?null:s.OverallProgress)*100:3)}}function F(a,e){if(a&1&&(l(0,"div",2),p(1),E(2,"appRelativeTime"),o()),a&2){let t,s=h();u(),k("",(t=s.nextBackup().backup)==null||t.Backup==null?null:t.Backup.Name," - ",R(2,2,s.nextBackup().time),"")}}function J(a,e){a&1&&(l(0,"div",2),p(1,"No scheduled tasks"),o())}function U(a,e){a&1&&(l(0,"div",2),p(1,"Loading..."),o())}var P=class a{#t=r(d);statusData=this.#t.statusData;serverState=this.#t.serverState;nextBackup=c(()=>({backup:this.serverState()?.ProposedSchedule?.[0]?.backup,time:this.serverState()?.ProposedSchedule?.[0]?.Item2}));ngOnInit(){this.#t.start()}ngOnDestroy(){this.#t.stop()}static \u0275fac=function(t){return new(t||a)};static \u0275cmp=y({type:a,selectors:[["app-status-bar"]],standalone:!0,features:[A],decls:6,vars:1,consts:[[1,"current-backup"],[1,"current-backup-progress"],[1,"label"],[1,"raised","primary",3,"value"]],template:function(t,s){if(t&1&&(l(0,"div",0)(1,"div",1),_(2,G,3,3)(3,F,3,4,"div",2)(4,J,2,0,"div",2)(5,U,2,0,"div",2),o()()),t&2){let n;u(2),T(!((n=s.statusData())==null||n.task==null)&&n.task.Status&&((n=s.statusData())==null||n.task==null?null:n.task.Status)!=="Completed"?2:s.nextBackup()?3:!s.statusData()||((n=s.statusData())==null||n.task==null?null:n.task.Status)==="Completed"?4:5)}},dependencies:[L,m],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;align-items:center;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{P as a};
1
+ import{a as N}from"./chunk-6GOAPINI.js";import{a as M}from"./chunk-3ZEBM2Q6.js";import{n as L}from"./chunk-IEVRQDB6.js";import{a as V,b as O}from"./chunk-LZSE733H.js";import{$ as C,E as S,Gb as p,Jb as k,L as D,Oa as u,Ob as A,Q as I,Tb as E,Ua as i,Ub as R,W as r,Y as y,ab as _,cb as x,ec as c,gc as v,hb as T,l as b,lb as l,mb as o,nb as w,p as B,tb as h}from"./chunk-QHJTF3V4.js";import{a as f,b as g}from"./chunk-7CGTOI24.js";var m=class a{#t=r(N);transform(e,...t){return this.#t(e).fromNow()}static \u0275fac=function(t){return new(t||a)};static \u0275pipe=C({name:"appRelativeTime",type:a,pure:!0,standalone:!0})};var d=class a{#t=1e3;#d=r(O);#o=r(V);#n=r(M);#e=i(!1);#i=i(!1);#u=i(this.#t);#p=i(null);#r=i(!1);#s=i(!1);#a=i(null);#f=i(!1);statusData=this.#p.asReadonly();serverState=c(()=>{let e=this.#a();return e?(e.ProposedSchedule=e?.ProposedSchedule?.map(t=>{let s=t.Item1?this.#n.getBackupById(t.Item1):null;return g(f({},t),{backup:s})}),e):null});isFetching=this.#i.asReadonly();#l=null;#g=v(()=>{let e=this.#e(),t=this.#u();if(!e||!t||t<this.#t){this.#l&&window.clearInterval(this.#l);return}this.#l=window.setInterval(()=>{this.#m()},t)});start(){this.#r.set(!0),this.#c()}stop(){this.#r.set(!1)}startPollingProgress(){this.#m(),this.#e.set(!0)}stopPollingProgress(){this.#e.set(!1)}setProgressStatePollingInterval(e){if(e<this.#t){console.error(`Polling interval must be at least ${this.#t}ms`);return}this.#u.set(e)}serverStateEffect=v(()=>{if(this.#f()){this.stopPollingProgress();return}!this.#s()&&this.#r()?setTimeout(()=>{this.startPollingProgress(),this.#c()},1e3):this.stopPollingProgress()},{allowSignalWrites:!0});#c(){if(this.#s())return;this.#s.set(!0);let e=this.#a()?.LastEventID,t=e==null?{}:{lastEventId:e,longpoll:!0,duration:"299s"};this.#o.getApiV1Serverstate(t).pipe(S(()=>this.#s.set(!1))).subscribe({next:s=>{this.#a()?.LastDataUpdateID!==s.LastDataUpdateID&&this.#n.getBackups(),this.#a.set(s)}})}#m(){this.#i.set(!0),this.#d.getApiV1Progressstate().pipe(D(e=>{let t=e.TaskID??null;return t===null?b(e):this.#o.getApiV1TaskByTaskid({taskid:t}).pipe(B(s=>g(f({},e),{task:s??null})))}),S(()=>this.#i.set(!1))).subscribe({next:e=>{let t=e.TaskID??null,s=e.BackupID??null;if(t!==null&&s!==null){let n=this.#n.getBackupById(s);e.backup=n}e.task?.Status==="Completed"?this.#e.set(!1):this.#e.set(!0),this.#p.set(e)},error:e=>{e.status===404&&this.#e.set(!1)}})}static \u0275fac=function(t){return new(t||a)};static \u0275prov=I({token:a,factory:a.\u0275fac,providedIn:"root"})};function G(a,e){if(a&1&&(l(0,"div",2),p(1),o(),w(2,"spk-progress-bar",3)),a&2){let t,s,n=h();u(),k("",(t=n.statusData())==null||t.task==null?null:t.task.Status," - ",(t=n.statusData())==null||t.backup==null||t.backup.Backup==null?null:t.backup.Backup.Name,""),u(),x("value",(s=n.statusData())!=null&&s.OverallProgress?((s=n.statusData())==null?null:s.OverallProgress)*100:3)}}function F(a,e){if(a&1&&(l(0,"div",2),p(1),E(2,"appRelativeTime"),o()),a&2){let t,s=h();u(),k("",(t=s.nextBackup().backup)==null||t.Backup==null?null:t.Backup.Name," - ",R(2,2,s.nextBackup().time),"")}}function J(a,e){a&1&&(l(0,"div",2),p(1,"No scheduled tasks"),o())}function U(a,e){a&1&&(l(0,"div",2),p(1,"Loading..."),o())}var P=class a{#t=r(d);statusData=this.#t.statusData;serverState=this.#t.serverState;nextBackup=c(()=>({backup:this.serverState()?.ProposedSchedule?.[0]?.backup,time:this.serverState()?.ProposedSchedule?.[0]?.Item2}));ngOnInit(){this.#t.start()}ngOnDestroy(){this.#t.stop()}static \u0275fac=function(t){return new(t||a)};static \u0275cmp=y({type:a,selectors:[["app-status-bar"]],standalone:!0,features:[A],decls:6,vars:1,consts:[[1,"current-backup"],[1,"current-backup-progress"],[1,"label"],[1,"raised","primary",3,"value"]],template:function(t,s){if(t&1&&(l(0,"div",0)(1,"div",1),_(2,G,3,3)(3,F,3,4,"div",2)(4,J,2,0,"div",2)(5,U,2,0,"div",2),o()()),t&2){let n;u(2),T(!((n=s.statusData())==null||n.task==null)&&n.task.Status&&((n=s.statusData())==null||n.task==null?null:n.task.Status)!=="Completed"?2:s.nextBackup()?3:!s.statusData()||((n=s.statusData())==null||n.task==null?null:n.task.Status)==="Completed"?4:5)}},dependencies:[L,m],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;align-items:center;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{P as a};
@@ -1 +1 @@
1
- import{S as it}from"./chunk-NUWA7AOR.js";var at=60,ot=at*60,ut=ot*24,yt=ut*7,_=1e3,Y=at*_,x=ot*_,H=ut*_,z=yt*_,b="millisecond",g="second",E="minute",N="hour",y="day",k="week",S="month",V="quarter",p="year",w="date",ct="YYYY-MM-DDTHH:mm:ssZ",tt="Invalid Date",ft=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Z=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g;var ht={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var r=["th","st","nd","rd"],e=t%100;return"["+t+(r[(e-20)%10]||r[e]||r[0])+"]"}};var et=function(t,r,e){var s=String(t);return!s||s.length>=r?t:""+Array(r+1-s.length).join(e)+t},pt=function(t){var r=-t.utcOffset(),e=Math.abs(r),s=Math.floor(e/60),n=e%60;return(r<=0?"+":"-")+et(s,2,"0")+":"+et(n,2,"0")},_t=function u(t,r){if(t.date()<r.date())return-u(r,t);var e=(r.year()-t.year())*12+(r.month()-t.month()),s=t.clone().add(e,S),n=r-s<0,i=t.clone().add(e+(n?-1:1),S);return+(-(e+(r-s)/(n?s-i:i-s))||0)},Ot=function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},It=function(t){var r={M:S,y:p,w:k,d:y,D:w,h:N,m:E,s:g,ms:b,Q:V};return r[t]||String(t||"").toLowerCase().replace(/s$/,"")},gt=function(t){return t===void 0},dt={s:et,z:pt,m:_t,a:Ot,p:It,u:gt};var P="en",U={};U[P]=ht;var lt="$isDayjsObject",st=function(t){return t instanceof B||!!(t&&t[lt])},X=function u(t,r,e){var s;if(!t)return P;if(typeof t=="string"){var n=t.toLowerCase();U[n]&&(s=n),r&&(U[n]=r,s=n);var i=t.split("-");if(!s&&i.length>1)return u(i[0])}else{var a=t.name;U[a]=t,s=a}return!e&&s&&(P=s),s||!e&&P},v=function(t,r){if(st(t))return t.clone();var e=typeof r=="object"?r:{};return e.date=t,e.args=arguments,new B(e)},Et=function(t,r){return v(t,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})},h=dt;h.l=X;h.i=st;h.w=Et;var Nt=function(t){var r=t.date,e=t.utc;if(r===null)return new Date(NaN);if(h.u(r))return new Date;if(r instanceof Date)return new Date(r);if(typeof r=="string"&&!/Z$/i.test(r)){var s=r.match(ft);if(s){var n=s[2]-1||0,i=(s[7]||"0").substring(0,3);return e?new Date(Date.UTC(s[1],n,s[3]||1,s[4]||0,s[5]||0,s[6]||0,i)):new Date(s[1],n,s[3]||1,s[4]||0,s[5]||0,s[6]||0,i)}}return new Date(r)},B=function(){function u(r){this.$L=X(r.locale,null,!0),this.parse(r),this.$x=this.$x||r.x||{},this[lt]=!0}var t=u.prototype;return t.parse=function(e){this.$d=Nt(e),this.init()},t.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},t.$utils=function(){return h},t.isValid=function(){return this.$d.toString()!==tt},t.isSame=function(e,s){var n=v(e);return this.startOf(s)<=n&&n<=this.endOf(s)},t.isAfter=function(e,s){return v(e)<this.startOf(s)},t.isBefore=function(e,s){return this.endOf(s)<v(e)},t.$g=function(e,s,n){return h.u(e)?this[s]:this.set(n,e)},t.unix=function(){return Math.floor(this.valueOf()/1e3)},t.valueOf=function(){return this.$d.getTime()},t.startOf=function(e,s){var n=this,i=h.u(s)?!0:s,a=h.p(e),o=function(I,m){var l=h.w(n.$u?Date.UTC(n.$y,m,I):new Date(n.$y,m,I),n);return i?l:l.endOf(y)},c=function(I,m){var l=[0,0,0,0],D=[23,59,59,999];return h.w(n.toDate()[I].apply(n.toDate("s"),(i?l:D).slice(m)),n)},f=this.$W,$=this.$M,d=this.$D,M="set"+(this.$u?"UTC":"");switch(a){case p:return i?o(1,0):o(31,11);case S:return i?o(1,$):o(0,$+1);case k:{var C=this.$locale().weekStart||0,L=(f<C?f+7:f)-C;return o(i?d-L:d+(6-L),$)}case y:case w:return c(M+"Hours",0);case N:return c(M+"Minutes",1);case E:return c(M+"Seconds",2);case g:return c(M+"Milliseconds",3);default:return this.clone()}},t.endOf=function(e){return this.startOf(e,!1)},t.$set=function(e,s){var n,i=h.p(e),a="set"+(this.$u?"UTC":""),o=(n={},n[y]=a+"Date",n[w]=a+"Date",n[S]=a+"Month",n[p]=a+"FullYear",n[N]=a+"Hours",n[E]=a+"Minutes",n[g]=a+"Seconds",n[b]=a+"Milliseconds",n)[i],c=i===y?this.$D+(s-this.$W):s;if(i===S||i===p){var f=this.clone().set(w,1);f.$d[o](c),f.init(),this.$d=f.set(w,Math.min(this.$D,f.daysInMonth())).$d}else o&&this.$d[o](c);return this.init(),this},t.set=function(e,s){return this.clone().$set(e,s)},t.get=function(e){return this[h.p(e)]()},t.add=function(e,s){var n=this,i;e=Number(e);var a=h.p(s),o=function(d){var M=v(n);return h.w(M.date(M.date()+Math.round(d*e)),n)};if(a===S)return this.set(S,this.$M+e);if(a===p)return this.set(p,this.$y+e);if(a===y)return o(1);if(a===k)return o(7);var c=(i={},i[E]=Y,i[N]=x,i[g]=_,i)[a]||1,f=this.$d.getTime()+e*c;return h.w(f,this)},t.subtract=function(e,s){return this.add(e*-1,s)},t.format=function(e){var s=this,n=this.$locale();if(!this.isValid())return n.invalidDate||tt;var i=e||ct,a=h.z(this),o=this.$H,c=this.$m,f=this.$M,$=n.weekdays,d=n.months,M=n.meridiem,C=function(l,D,T,W){return l&&(l[D]||l(s,i))||T[D].slice(0,W)},L=function(l){return h.s(o%12||12,l,"0")},O=M||function(m,l,D){var T=m<12?"AM":"PM";return D?T.toLowerCase():T},I=function(l){switch(l){case"YY":return String(s.$y).slice(-2);case"YYYY":return h.s(s.$y,4,"0");case"M":return f+1;case"MM":return h.s(f+1,2,"0");case"MMM":return C(n.monthsShort,f,d,3);case"MMMM":return C(d,f);case"D":return s.$D;case"DD":return h.s(s.$D,2,"0");case"d":return String(s.$W);case"dd":return C(n.weekdaysMin,s.$W,$,2);case"ddd":return C(n.weekdaysShort,s.$W,$,3);case"dddd":return $[s.$W];case"H":return String(o);case"HH":return h.s(o,2,"0");case"h":return L(1);case"hh":return L(2);case"a":return O(o,c,!0);case"A":return O(o,c,!1);case"m":return String(c);case"mm":return h.s(c,2,"0");case"s":return String(s.$s);case"ss":return h.s(s.$s,2,"0");case"SSS":return h.s(s.$ms,3,"0");case"Z":return a;default:break}return null};return i.replace(Z,function(m,l){return l||I(m)||a.replace(":","")})},t.utcOffset=function(){return-Math.round(this.$d.getTimezoneOffset()/15)*15},t.diff=function(e,s,n){var i=this,a=h.p(s),o=v(e),c=(o.utcOffset()-this.utcOffset())*Y,f=this-o,$=function(){return h.m(i,o)},d;switch(a){case p:d=$()/12;break;case S:d=$();break;case V:d=$()/3;break;case k:d=(f-c)/z;break;case y:d=(f-c)/H;break;case N:d=f/x;break;case E:d=f/Y;break;case g:d=f/_;break;default:d=f;break}return n?d:h.a(d)},t.daysInMonth=function(){return this.endOf(S).$D},t.$locale=function(){return U[this.$L]},t.locale=function(e,s){if(!e)return this.$L;var n=this.clone(),i=X(e,s,!0);return i&&(n.$L=i),n},t.clone=function(){return h.w(this.$d,this)},t.toDate=function(){return new Date(this.valueOf())},t.toJSON=function(){return this.isValid()?this.toISOString():null},t.toISOString=function(){return this.$d.toISOString()},t.toString=function(){return this.$d.toUTCString()},u}(),vt=B.prototype;v.prototype=vt;[["$ms",b],["$s",g],["$m",E],["$H",N],["$W",y],["$M",S],["$y",p],["$D",w]].forEach(function(u){vt[u[1]]=function(t){return this.$g(t,u[0],u[1])}});v.extend=function(u,t){return u.$i||(u(t,B,v),u.$i=!0),v};v.locale=X;v.isDayjs=st;v.unix=function(u){return v(u*1e3)};v.en=U[P];v.Ls=U;v.p={};var K=v;var q=H*365,nt=q/12,At=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,j={years:q,months:nt,days:H,hours:x,minutes:Y,seconds:_,milliseconds:1,weeks:z},Q=function(t){return t instanceof St},mt,A,G=function(t,r,e){return new St(t,e,r.$l)},J=function(t){return A.p(t)+"s"},Mt=function(t){return t<0},F=function(t){return Mt(t)?Math.ceil(t):Math.floor(t)},Lt=function(t){return Math.abs(t)},R=function(t,r){return t?Mt(t)?{negative:!0,format:""+Lt(t)+r}:{negative:!1,format:""+t+r}:{negative:!1,format:""}},St=function(){function u(r,e,s){var n=this;if(this.$d={},this.$l=s,r===void 0&&(this.$ms=0,this.parseFromMilliseconds()),e)return G(r*j[J(e)],this);if(typeof r=="number")return this.$ms=r,this.parseFromMilliseconds(),this;if(typeof r=="object")return Object.keys(r).forEach(function(c){n.$d[J(c)]=r[c]}),this.calMilliseconds(),this;if(typeof r=="string"){var i=r.match(At);if(i){var a=i.slice(2),o=a.map(function(c){return c!=null?Number(c):0});return this.$d.years=o[0],this.$d.months=o[1],this.$d.weeks=o[2],this.$d.days=o[3],this.$d.hours=o[4],this.$d.minutes=o[5],this.$d.seconds=o[6],this.calMilliseconds(),this}}return this}var t=u.prototype;return t.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce(function(s,n){return s+(e.$d[n]||0)*j[n]},0)},t.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=F(e/q),e%=q,this.$d.months=F(e/nt),e%=nt,this.$d.days=F(e/H),e%=H,this.$d.hours=F(e/x),e%=x,this.$d.minutes=F(e/Y),e%=Y,this.$d.seconds=F(e/_),e%=_,this.$d.milliseconds=e},t.toISOString=function(){var e=R(this.$d.years,"Y"),s=R(this.$d.months,"M"),n=+this.$d.days||0;this.$d.weeks&&(n+=this.$d.weeks*7);var i=R(n,"D"),a=R(this.$d.hours,"H"),o=R(this.$d.minutes,"M"),c=this.$d.seconds||0;this.$d.milliseconds&&(c+=this.$d.milliseconds/1e3,c=Math.round(c*1e3)/1e3);var f=R(c,"S"),$=e.negative||s.negative||i.negative||a.negative||o.negative||f.negative,d=a.format||o.format||f.format?"T":"",M=$?"-":"",C=M+"P"+e.format+s.format+i.format+d+a.format+o.format+f.format;return C==="P"||C==="-P"?"P0D":C},t.toJSON=function(){return this.toISOString()},t.format=function(e){var s=e||"YYYY-MM-DDTHH:mm:ss",n={Y:this.$d.years,YY:A.s(this.$d.years,2,"0"),YYYY:A.s(this.$d.years,4,"0"),M:this.$d.months,MM:A.s(this.$d.months,2,"0"),D:this.$d.days,DD:A.s(this.$d.days,2,"0"),H:this.$d.hours,HH:A.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:A.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:A.s(this.$d.seconds,2,"0"),SSS:A.s(this.$d.milliseconds,3,"0")};return s.replace(Z,function(i,a){return a||String(n[i])})},t.as=function(e){return this.$ms/j[J(e)]},t.get=function(e){var s=this.$ms,n=J(e);return n==="milliseconds"?s%=1e3:n==="weeks"?s=F(s/j[n]):s=this.$d[n],s||0},t.add=function(e,s,n){var i;return s?i=e*j[J(s)]:Q(e)?i=e.$ms:i=G(e,this).$ms,G(this.$ms+i*(n?-1:1),this)},t.subtract=function(e,s){return this.add(e,s,!0)},t.locale=function(e){var s=this.clone();return s.$l=e,s},t.clone=function(){return G(this.$ms,this)},t.humanize=function(e){return mt().add(this.$ms,"ms").locale(this.$l).fromNow(!e)},t.valueOf=function(){return this.asMilliseconds()},t.milliseconds=function(){return this.get("milliseconds")},t.asMilliseconds=function(){return this.as("milliseconds")},t.seconds=function(){return this.get("seconds")},t.asSeconds=function(){return this.as("seconds")},t.minutes=function(){return this.get("minutes")},t.asMinutes=function(){return this.as("minutes")},t.hours=function(){return this.get("hours")},t.asHours=function(){return this.as("hours")},t.days=function(){return this.get("days")},t.asDays=function(){return this.as("days")},t.weeks=function(){return this.get("weeks")},t.asWeeks=function(){return this.as("weeks")},t.months=function(){return this.get("months")},t.asMonths=function(){return this.as("months")},t.years=function(){return this.get("years")},t.asYears=function(){return this.as("years")},u}(),$t=function(t,r,e){return t.add(r.years()*e,"y").add(r.months()*e,"M").add(r.days()*e,"d").add(r.hours()*e,"h").add(r.minutes()*e,"m").add(r.seconds()*e,"s").add(r.milliseconds()*e,"ms")},Ct=function(u,t,r){mt=r,A=r().$utils(),r.duration=function(n,i){var a=r.locale();return G(n,{$l:a},i)},r.isDuration=Q;var e=t.prototype.add,s=t.prototype.subtract;t.prototype.add=function(n,i){return Q(n)?$t(this,n,1):e.bind(this)(n,i)},t.prototype.subtract=function(n,i){return Q(n)?$t(this,n,-1):s.bind(this)(n,i)}};var Dt=function(u,t,r){u=u||{};var e=t.prototype,s={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};r.en.relativeTime=s,e.fromToBase=function(a,o,c,f,$){for(var d=c.$locale().relativeTime||s,M=u.thresholds||[{l:"s",r:44,d:g},{l:"m",r:89},{l:"mm",r:44,d:E},{l:"h",r:89},{l:"hh",r:21,d:N},{l:"d",r:35},{l:"dd",r:25,d:y},{l:"M",r:45},{l:"MM",r:10,d:S},{l:"y",r:17},{l:"yy",d:p}],C=M.length,L,O,I,m=0;m<C;m+=1){var l=M[m];l.d&&(L=f?r(a).diff(c,l.d,!0):c.diff(a,l.d,!0));var D=(u.rounding||Math.round)(Math.abs(L));if(I=L>0,D<=l.r||!l.r){D<=1&&m>0&&(l=M[m-1]);var T=d[l.l];$&&(D=$(""+D)),typeof T=="string"?O=T.replace("%d",D):O=T(D,o,l.l,I);break}}if(o)return O;var W=I?d.future:d.past;return typeof W=="function"?W(O):W.replace("%s",O)};function n(a,o,c,f){return e.fromToBase(a,o,c,f)}e.to=function(a,o){return n(a,o,this,!0)},e.from=function(a,o){return n(a,o,this)};var i=function(o){return o.$u?r.utc():r()};e.toNow=function(a){return this.to(i(this),a)},e.fromNow=function(a){return this.from(i(this),a)}};var Tt=new it("Dayjs"),Gt={provide:Tt,useFactory:()=>(K.extend(Dt),K.extend(Ct),K)};export{Tt as a,Gt as b};
1
+ import{T as it}from"./chunk-QHJTF3V4.js";var at=60,ot=at*60,ut=ot*24,yt=ut*7,_=1e3,Y=at*_,x=ot*_,H=ut*_,z=yt*_,b="millisecond",g="second",E="minute",N="hour",y="day",k="week",S="month",V="quarter",p="year",w="date",ct="YYYY-MM-DDTHH:mm:ssZ",tt="Invalid Date",ft=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Z=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g;var ht={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var r=["th","st","nd","rd"],e=t%100;return"["+t+(r[(e-20)%10]||r[e]||r[0])+"]"}};var et=function(t,r,e){var s=String(t);return!s||s.length>=r?t:""+Array(r+1-s.length).join(e)+t},pt=function(t){var r=-t.utcOffset(),e=Math.abs(r),s=Math.floor(e/60),n=e%60;return(r<=0?"+":"-")+et(s,2,"0")+":"+et(n,2,"0")},_t=function u(t,r){if(t.date()<r.date())return-u(r,t);var e=(r.year()-t.year())*12+(r.month()-t.month()),s=t.clone().add(e,S),n=r-s<0,i=t.clone().add(e+(n?-1:1),S);return+(-(e+(r-s)/(n?s-i:i-s))||0)},Ot=function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},It=function(t){var r={M:S,y:p,w:k,d:y,D:w,h:N,m:E,s:g,ms:b,Q:V};return r[t]||String(t||"").toLowerCase().replace(/s$/,"")},gt=function(t){return t===void 0},dt={s:et,z:pt,m:_t,a:Ot,p:It,u:gt};var P="en",U={};U[P]=ht;var lt="$isDayjsObject",st=function(t){return t instanceof B||!!(t&&t[lt])},X=function u(t,r,e){var s;if(!t)return P;if(typeof t=="string"){var n=t.toLowerCase();U[n]&&(s=n),r&&(U[n]=r,s=n);var i=t.split("-");if(!s&&i.length>1)return u(i[0])}else{var a=t.name;U[a]=t,s=a}return!e&&s&&(P=s),s||!e&&P},v=function(t,r){if(st(t))return t.clone();var e=typeof r=="object"?r:{};return e.date=t,e.args=arguments,new B(e)},Et=function(t,r){return v(t,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})},h=dt;h.l=X;h.i=st;h.w=Et;var Nt=function(t){var r=t.date,e=t.utc;if(r===null)return new Date(NaN);if(h.u(r))return new Date;if(r instanceof Date)return new Date(r);if(typeof r=="string"&&!/Z$/i.test(r)){var s=r.match(ft);if(s){var n=s[2]-1||0,i=(s[7]||"0").substring(0,3);return e?new Date(Date.UTC(s[1],n,s[3]||1,s[4]||0,s[5]||0,s[6]||0,i)):new Date(s[1],n,s[3]||1,s[4]||0,s[5]||0,s[6]||0,i)}}return new Date(r)},B=function(){function u(r){this.$L=X(r.locale,null,!0),this.parse(r),this.$x=this.$x||r.x||{},this[lt]=!0}var t=u.prototype;return t.parse=function(e){this.$d=Nt(e),this.init()},t.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},t.$utils=function(){return h},t.isValid=function(){return this.$d.toString()!==tt},t.isSame=function(e,s){var n=v(e);return this.startOf(s)<=n&&n<=this.endOf(s)},t.isAfter=function(e,s){return v(e)<this.startOf(s)},t.isBefore=function(e,s){return this.endOf(s)<v(e)},t.$g=function(e,s,n){return h.u(e)?this[s]:this.set(n,e)},t.unix=function(){return Math.floor(this.valueOf()/1e3)},t.valueOf=function(){return this.$d.getTime()},t.startOf=function(e,s){var n=this,i=h.u(s)?!0:s,a=h.p(e),o=function(I,m){var l=h.w(n.$u?Date.UTC(n.$y,m,I):new Date(n.$y,m,I),n);return i?l:l.endOf(y)},c=function(I,m){var l=[0,0,0,0],D=[23,59,59,999];return h.w(n.toDate()[I].apply(n.toDate("s"),(i?l:D).slice(m)),n)},f=this.$W,$=this.$M,d=this.$D,M="set"+(this.$u?"UTC":"");switch(a){case p:return i?o(1,0):o(31,11);case S:return i?o(1,$):o(0,$+1);case k:{var C=this.$locale().weekStart||0,L=(f<C?f+7:f)-C;return o(i?d-L:d+(6-L),$)}case y:case w:return c(M+"Hours",0);case N:return c(M+"Minutes",1);case E:return c(M+"Seconds",2);case g:return c(M+"Milliseconds",3);default:return this.clone()}},t.endOf=function(e){return this.startOf(e,!1)},t.$set=function(e,s){var n,i=h.p(e),a="set"+(this.$u?"UTC":""),o=(n={},n[y]=a+"Date",n[w]=a+"Date",n[S]=a+"Month",n[p]=a+"FullYear",n[N]=a+"Hours",n[E]=a+"Minutes",n[g]=a+"Seconds",n[b]=a+"Milliseconds",n)[i],c=i===y?this.$D+(s-this.$W):s;if(i===S||i===p){var f=this.clone().set(w,1);f.$d[o](c),f.init(),this.$d=f.set(w,Math.min(this.$D,f.daysInMonth())).$d}else o&&this.$d[o](c);return this.init(),this},t.set=function(e,s){return this.clone().$set(e,s)},t.get=function(e){return this[h.p(e)]()},t.add=function(e,s){var n=this,i;e=Number(e);var a=h.p(s),o=function(d){var M=v(n);return h.w(M.date(M.date()+Math.round(d*e)),n)};if(a===S)return this.set(S,this.$M+e);if(a===p)return this.set(p,this.$y+e);if(a===y)return o(1);if(a===k)return o(7);var c=(i={},i[E]=Y,i[N]=x,i[g]=_,i)[a]||1,f=this.$d.getTime()+e*c;return h.w(f,this)},t.subtract=function(e,s){return this.add(e*-1,s)},t.format=function(e){var s=this,n=this.$locale();if(!this.isValid())return n.invalidDate||tt;var i=e||ct,a=h.z(this),o=this.$H,c=this.$m,f=this.$M,$=n.weekdays,d=n.months,M=n.meridiem,C=function(l,D,T,W){return l&&(l[D]||l(s,i))||T[D].slice(0,W)},L=function(l){return h.s(o%12||12,l,"0")},O=M||function(m,l,D){var T=m<12?"AM":"PM";return D?T.toLowerCase():T},I=function(l){switch(l){case"YY":return String(s.$y).slice(-2);case"YYYY":return h.s(s.$y,4,"0");case"M":return f+1;case"MM":return h.s(f+1,2,"0");case"MMM":return C(n.monthsShort,f,d,3);case"MMMM":return C(d,f);case"D":return s.$D;case"DD":return h.s(s.$D,2,"0");case"d":return String(s.$W);case"dd":return C(n.weekdaysMin,s.$W,$,2);case"ddd":return C(n.weekdaysShort,s.$W,$,3);case"dddd":return $[s.$W];case"H":return String(o);case"HH":return h.s(o,2,"0");case"h":return L(1);case"hh":return L(2);case"a":return O(o,c,!0);case"A":return O(o,c,!1);case"m":return String(c);case"mm":return h.s(c,2,"0");case"s":return String(s.$s);case"ss":return h.s(s.$s,2,"0");case"SSS":return h.s(s.$ms,3,"0");case"Z":return a;default:break}return null};return i.replace(Z,function(m,l){return l||I(m)||a.replace(":","")})},t.utcOffset=function(){return-Math.round(this.$d.getTimezoneOffset()/15)*15},t.diff=function(e,s,n){var i=this,a=h.p(s),o=v(e),c=(o.utcOffset()-this.utcOffset())*Y,f=this-o,$=function(){return h.m(i,o)},d;switch(a){case p:d=$()/12;break;case S:d=$();break;case V:d=$()/3;break;case k:d=(f-c)/z;break;case y:d=(f-c)/H;break;case N:d=f/x;break;case E:d=f/Y;break;case g:d=f/_;break;default:d=f;break}return n?d:h.a(d)},t.daysInMonth=function(){return this.endOf(S).$D},t.$locale=function(){return U[this.$L]},t.locale=function(e,s){if(!e)return this.$L;var n=this.clone(),i=X(e,s,!0);return i&&(n.$L=i),n},t.clone=function(){return h.w(this.$d,this)},t.toDate=function(){return new Date(this.valueOf())},t.toJSON=function(){return this.isValid()?this.toISOString():null},t.toISOString=function(){return this.$d.toISOString()},t.toString=function(){return this.$d.toUTCString()},u}(),vt=B.prototype;v.prototype=vt;[["$ms",b],["$s",g],["$m",E],["$H",N],["$W",y],["$M",S],["$y",p],["$D",w]].forEach(function(u){vt[u[1]]=function(t){return this.$g(t,u[0],u[1])}});v.extend=function(u,t){return u.$i||(u(t,B,v),u.$i=!0),v};v.locale=X;v.isDayjs=st;v.unix=function(u){return v(u*1e3)};v.en=U[P];v.Ls=U;v.p={};var K=v;var q=H*365,nt=q/12,At=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,j={years:q,months:nt,days:H,hours:x,minutes:Y,seconds:_,milliseconds:1,weeks:z},Q=function(t){return t instanceof St},mt,A,G=function(t,r,e){return new St(t,e,r.$l)},J=function(t){return A.p(t)+"s"},Mt=function(t){return t<0},F=function(t){return Mt(t)?Math.ceil(t):Math.floor(t)},Lt=function(t){return Math.abs(t)},R=function(t,r){return t?Mt(t)?{negative:!0,format:""+Lt(t)+r}:{negative:!1,format:""+t+r}:{negative:!1,format:""}},St=function(){function u(r,e,s){var n=this;if(this.$d={},this.$l=s,r===void 0&&(this.$ms=0,this.parseFromMilliseconds()),e)return G(r*j[J(e)],this);if(typeof r=="number")return this.$ms=r,this.parseFromMilliseconds(),this;if(typeof r=="object")return Object.keys(r).forEach(function(c){n.$d[J(c)]=r[c]}),this.calMilliseconds(),this;if(typeof r=="string"){var i=r.match(At);if(i){var a=i.slice(2),o=a.map(function(c){return c!=null?Number(c):0});return this.$d.years=o[0],this.$d.months=o[1],this.$d.weeks=o[2],this.$d.days=o[3],this.$d.hours=o[4],this.$d.minutes=o[5],this.$d.seconds=o[6],this.calMilliseconds(),this}}return this}var t=u.prototype;return t.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce(function(s,n){return s+(e.$d[n]||0)*j[n]},0)},t.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=F(e/q),e%=q,this.$d.months=F(e/nt),e%=nt,this.$d.days=F(e/H),e%=H,this.$d.hours=F(e/x),e%=x,this.$d.minutes=F(e/Y),e%=Y,this.$d.seconds=F(e/_),e%=_,this.$d.milliseconds=e},t.toISOString=function(){var e=R(this.$d.years,"Y"),s=R(this.$d.months,"M"),n=+this.$d.days||0;this.$d.weeks&&(n+=this.$d.weeks*7);var i=R(n,"D"),a=R(this.$d.hours,"H"),o=R(this.$d.minutes,"M"),c=this.$d.seconds||0;this.$d.milliseconds&&(c+=this.$d.milliseconds/1e3,c=Math.round(c*1e3)/1e3);var f=R(c,"S"),$=e.negative||s.negative||i.negative||a.negative||o.negative||f.negative,d=a.format||o.format||f.format?"T":"",M=$?"-":"",C=M+"P"+e.format+s.format+i.format+d+a.format+o.format+f.format;return C==="P"||C==="-P"?"P0D":C},t.toJSON=function(){return this.toISOString()},t.format=function(e){var s=e||"YYYY-MM-DDTHH:mm:ss",n={Y:this.$d.years,YY:A.s(this.$d.years,2,"0"),YYYY:A.s(this.$d.years,4,"0"),M:this.$d.months,MM:A.s(this.$d.months,2,"0"),D:this.$d.days,DD:A.s(this.$d.days,2,"0"),H:this.$d.hours,HH:A.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:A.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:A.s(this.$d.seconds,2,"0"),SSS:A.s(this.$d.milliseconds,3,"0")};return s.replace(Z,function(i,a){return a||String(n[i])})},t.as=function(e){return this.$ms/j[J(e)]},t.get=function(e){var s=this.$ms,n=J(e);return n==="milliseconds"?s%=1e3:n==="weeks"?s=F(s/j[n]):s=this.$d[n],s||0},t.add=function(e,s,n){var i;return s?i=e*j[J(s)]:Q(e)?i=e.$ms:i=G(e,this).$ms,G(this.$ms+i*(n?-1:1),this)},t.subtract=function(e,s){return this.add(e,s,!0)},t.locale=function(e){var s=this.clone();return s.$l=e,s},t.clone=function(){return G(this.$ms,this)},t.humanize=function(e){return mt().add(this.$ms,"ms").locale(this.$l).fromNow(!e)},t.valueOf=function(){return this.asMilliseconds()},t.milliseconds=function(){return this.get("milliseconds")},t.asMilliseconds=function(){return this.as("milliseconds")},t.seconds=function(){return this.get("seconds")},t.asSeconds=function(){return this.as("seconds")},t.minutes=function(){return this.get("minutes")},t.asMinutes=function(){return this.as("minutes")},t.hours=function(){return this.get("hours")},t.asHours=function(){return this.as("hours")},t.days=function(){return this.get("days")},t.asDays=function(){return this.as("days")},t.weeks=function(){return this.get("weeks")},t.asWeeks=function(){return this.as("weeks")},t.months=function(){return this.get("months")},t.asMonths=function(){return this.as("months")},t.years=function(){return this.get("years")},t.asYears=function(){return this.as("years")},u}(),$t=function(t,r,e){return t.add(r.years()*e,"y").add(r.months()*e,"M").add(r.days()*e,"d").add(r.hours()*e,"h").add(r.minutes()*e,"m").add(r.seconds()*e,"s").add(r.milliseconds()*e,"ms")},Ct=function(u,t,r){mt=r,A=r().$utils(),r.duration=function(n,i){var a=r.locale();return G(n,{$l:a},i)},r.isDuration=Q;var e=t.prototype.add,s=t.prototype.subtract;t.prototype.add=function(n,i){return Q(n)?$t(this,n,1):e.bind(this)(n,i)},t.prototype.subtract=function(n,i){return Q(n)?$t(this,n,-1):s.bind(this)(n,i)}};var Dt=function(u,t,r){u=u||{};var e=t.prototype,s={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};r.en.relativeTime=s,e.fromToBase=function(a,o,c,f,$){for(var d=c.$locale().relativeTime||s,M=u.thresholds||[{l:"s",r:44,d:g},{l:"m",r:89},{l:"mm",r:44,d:E},{l:"h",r:89},{l:"hh",r:21,d:N},{l:"d",r:35},{l:"dd",r:25,d:y},{l:"M",r:45},{l:"MM",r:10,d:S},{l:"y",r:17},{l:"yy",d:p}],C=M.length,L,O,I,m=0;m<C;m+=1){var l=M[m];l.d&&(L=f?r(a).diff(c,l.d,!0):c.diff(a,l.d,!0));var D=(u.rounding||Math.round)(Math.abs(L));if(I=L>0,D<=l.r||!l.r){D<=1&&m>0&&(l=M[m-1]);var T=d[l.l];$&&(D=$(""+D)),typeof T=="string"?O=T.replace("%d",D):O=T(D,o,l.l,I);break}}if(o)return O;var W=I?d.future:d.past;return typeof W=="function"?W(O):W.replace("%s",O)};function n(a,o,c,f){return e.fromToBase(a,o,c,f)}e.to=function(a,o){return n(a,o,this,!0)},e.from=function(a,o){return n(a,o,this)};var i=function(o){return o.$u?r.utc():r()};e.toNow=function(a){return this.to(i(this),a)},e.fromNow=function(a){return this.from(i(this),a)}};var Tt=new it("Dayjs"),Gt={provide:Tt,useFactory:()=>(K.extend(Dt),K.extend(Ct),K)};export{Tt as a,Gt as b};
@@ -0,0 +1 @@
1
+ import"./chunk-7CGTOI24.js";var o=[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",loadComponent:()=>import("./chunk-X53IGCHF.js")},{path:"destination",loadComponent:()=>import("./chunk-EZH4RUS3.js")},{path:"source-data",loadComponent:()=>import("./chunk-LFGIPWCL.js")},{path:"schedule",loadComponent:()=>import("./chunk-GQQ7YXKJ.js")},{path:"options",loadComponent:()=>import("./chunk-UVFVZQCU.js")}];export{o as default};
@@ -0,0 +1 @@
1
+ import{Nb as h,O as H,P as d,Pa as o,Q as re,R as L,Ra as E,T as D,Ua as N,W as De,Ya as u,Yb as Ae,Z as $,_ as l,eb as se,ec as O,fa as W,fc as m,g as ve,ja as b,jc as oe,k as ye,la as be,oa as A,p as Ce,sb as g,ua as M,v as Ve}from"./chunk-QHJTF3V4.js";import{a as c,b as p}from"./chunk-7CGTOI24.js";var xe=(()=>{class i{constructor(e,n){this._renderer=e,this._elementRef=n,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static{this.\u0275fac=function(n){return new(n||i)(o(E),o(M))}}static{this.\u0275dir=l({type:i})}}return i})(),S=(()=>{class i extends xe{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=b(i)))(r||i)}})()}static{this.\u0275dir=l({type:i,features:[u]})}}return i})(),C=new D(""),at={provide:C,useExisting:d(()=>lt),multi:!0},lt=(()=>{class i extends S{writeValue(e){this.setProperty("checked",e)}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=b(i)))(r||i)}})()}static{this.\u0275dir=l({type:i,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(n,r){n&1&&g("change",function(a){return r.onChange(a.target.checked)})("blur",function(){return r.onTouched()})},features:[h([at]),u]})}}return i})(),ut={provide:C,useExisting:d(()=>Pe),multi:!0};function ct(){let i=oe()?oe().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}var dt=new D(""),Pe=(()=>{class i extends xe{constructor(e,n,r){super(e,n),this._compositionMode=r,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!ct())}writeValue(e){let n=e??"";this.setProperty("value",n)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static{this.\u0275fac=function(n){return new(n||i)(o(E),o(M),o(dt,8))}}static{this.\u0275dir=l({type:i,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,r){n&1&&g("input",function(a){return r._handleInput(a.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(a){return r._compositionEnd(a.target.value)})},features:[h([ut]),u]})}}return i})();function _(i){return i==null||(typeof i=="string"||Array.isArray(i))&&i.length===0}function ke(i){return i!=null&&typeof i.length=="number"}var R=new D(""),T=new D(""),ht=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Me=class{static min(t){return ft(t)}static max(t){return pt(t)}static required(t){return gt(t)}static requiredTrue(t){return mt(t)}static email(t){return _t(t)}static minLength(t){return vt(t)}static maxLength(t){return yt(t)}static pattern(t){return Ct(t)}static nullValidator(t){return Ge(t)}static compose(t){return He(t)}static composeAsync(t){return $e(t)}};function ft(i){return t=>{if(_(t.value)||_(i))return null;let e=parseFloat(t.value);return!isNaN(e)&&e<i?{min:{min:i,actual:t.value}}:null}}function pt(i){return t=>{if(_(t.value)||_(i))return null;let e=parseFloat(t.value);return!isNaN(e)&&e>i?{max:{max:i,actual:t.value}}:null}}function gt(i){return _(i.value)?{required:!0}:null}function mt(i){return i.value===!0?null:{required:!0}}function _t(i){return _(i.value)||ht.test(i.value)?null:{email:!0}}function vt(i){return t=>_(t.value)||!ke(t.value)?null:t.value.length<i?{minlength:{requiredLength:i,actualLength:t.value.length}}:null}function yt(i){return t=>ke(t.value)&&t.value.length>i?{maxlength:{requiredLength:i,actualLength:t.value.length}}:null}function Ct(i){if(!i)return Ge;let t,e;return typeof i=="string"?(e="",i.charAt(0)!=="^"&&(e+="^"),e+=i,i.charAt(i.length-1)!=="$"&&(e+="$"),t=new RegExp(e)):(e=i.toString(),t=i),n=>{if(_(n.value))return null;let r=n.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function Ge(i){return null}function Re(i){return i!=null}function Te(i){return Ae(i)?ye(i):i}function je(i){let t={};return i.forEach(e=>{t=e!=null?c(c({},t),e):t}),Object.keys(t).length===0?null:t}function Be(i,t){return t.map(e=>e(i))}function Vt(i){return!i.validate}function Ue(i){return i.map(t=>Vt(t)?t:e=>t.validate(e))}function He(i){if(!i)return null;let t=i.filter(Re);return t.length==0?null:function(e){return je(Be(e,t))}}function Le(i){return i!=null?He(Ue(i)):null}function $e(i){if(!i)return null;let t=i.filter(Re);return t.length==0?null:function(e){let n=Be(e,t).map(Te);return Ve(n).pipe(Ce(je))}}function We(i){return i!=null?$e(Ue(i)):null}function Ee(i,t){return i===null?[t]:Array.isArray(i)?[...i,t]:[i,t]}function qe(i){return i._rawValidators}function ze(i){return i._rawAsyncValidators}function ae(i){return i?Array.isArray(i)?i:[i]:[]}function Z(i,t){return Array.isArray(i)?i.includes(t):i===t}function Fe(i,t){let e=ae(t);return ae(i).forEach(r=>{Z(e,r)||e.push(r)}),e}function we(i,t){return ae(t).filter(e=>!Z(i,e))}var X=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=Le(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=We(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,e){return this.control?this.control.hasError(t,e):!1}getError(t,e){return this.control?this.control.getError(t,e):null}},f=class extends X{get formDirective(){return null}get path(){return null}},v=class extends X{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Y=class{constructor(t){this._cd=t}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},Dt={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},vi=p(c({},Dt),{"[class.ng-submitted]":"isSubmitted"}),yi=(()=>{class i extends Y{constructor(e){super(e)}static{this.\u0275fac=function(n){return new(n||i)(o(v,2))}}static{this.\u0275dir=l({type:i,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){n&2&&se("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[u]})}}return i})(),Ci=(()=>{class i extends Y{constructor(e){super(e)}static{this.\u0275fac=function(n){return new(n||i)(o(f,10))}}static{this.\u0275dir=l({type:i,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,r){n&2&&se("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},features:[u]})}}return i})();var x="VALID",q="INVALID",F="PENDING",P="DISABLED",y=class{},K=class extends y{constructor(t,e){super(),this.value=t,this.source=e}},k=class extends y{constructor(t,e){super(),this.pristine=t,this.source=e}},G=class extends y{constructor(t,e){super(),this.touched=t,this.source=e}},w=class extends y{constructor(t,e){super(),this.status=t,this.source=e}},le=class extends y{constructor(t){super(),this.source=t}},ue=class extends y{constructor(t){super(),this.source=t}};function fe(i){return(ie(i)?i.validators:i)||null}function bt(i){return Array.isArray(i)?Le(i):i||null}function pe(i,t){return(ie(t)?t.asyncValidators:i)||null}function At(i){return Array.isArray(i)?We(i):i||null}function ie(i){return i!=null&&!Array.isArray(i)&&typeof i=="object"}function Ze(i,t,e){let n=i.controls;if(!(t?Object.keys(n):n).length)throw new H(1e3,"");if(!n[e])throw new H(1001,"")}function Xe(i,t,e){i._forEachChild((n,r)=>{if(e[r]===void 0)throw new H(1002,"")})}var I=class{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=O(()=>this.statusReactive()),this.statusReactive=N(void 0),this._pristine=O(()=>this.pristineReactive()),this.pristineReactive=N(!0),this._touched=O(()=>this.touchedReactive()),this.touchedReactive=N(!1),this._events=new ve,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return m(this.statusReactive)}set status(t){m(()=>this.statusReactive.set(t))}get valid(){return this.status===x}get invalid(){return this.status===q}get pending(){return this.status==F}get disabled(){return this.status===P}get enabled(){return this.status!==P}get pristine(){return m(this.pristineReactive)}set pristine(t){m(()=>this.pristineReactive.set(t))}get dirty(){return!this.pristine}get touched(){return m(this.touchedReactive)}set touched(t){m(()=>this.touchedReactive.set(t))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(Fe(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Fe(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(we(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(we(t,this._rawAsyncValidators))}hasValidator(t){return Z(this._rawValidators,t)}hasAsyncValidator(t){return Z(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let e=this.touched===!1;this.touched=!0;let n=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(p(c({},t),{sourceControl:n})),e&&t.emitEvent!==!1&&this._events.next(new G(!0,n))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(t))}markAsUntouched(t={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=t.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:n})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,n),e&&t.emitEvent!==!1&&this._events.next(new G(!1,n))}markAsDirty(t={}){let e=this.pristine===!0;this.pristine=!1;let n=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(p(c({},t),{sourceControl:n})),e&&t.emitEvent!==!1&&this._events.next(new k(!1,n))}markAsPristine(t={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=t.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,n),e&&t.emitEvent!==!1&&this._events.next(new k(!0,n))}markAsPending(t={}){this.status=F;let e=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new w(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(p(c({},t),{sourceControl:e}))}disable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=P,this.errors=null,this._forEachChild(r=>{r.disable(p(c({},t),{onlySelf:!0}))}),this._updateValue();let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new K(this.value,n)),this._events.next(new w(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(p(c({},t),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=x,this._forEachChild(n=>{n.enable(p(c({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(p(c({},t),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(t,e){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===x||this.status===F)&&this._runAsyncValidator(n,t.emitEvent)}let e=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new K(this.value,e)),this._events.next(new w(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(p(c({},t),{sourceControl:e}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?P:x}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,e){if(this.asyncValidator){this.status=F,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1};let n=Te(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:e,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(t){let e=t;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((n,r)=>n&&n._find(r),this)}getError(t,e){let n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,e,n){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||n)&&this._events.next(new w(this.status,e)),this._parent&&this._parent._updateControlsErrors(t,e,n)}_initObservables(){this.valueChanges=new A,this.statusChanges=new A}_calculateStatus(){return this._allControlsDisabled()?P:this.errors?q:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(F)?F:this._anyControlsHaveStatus(q)?q:x}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,e){let n=!this._anyControlsDirty(),r=this.pristine!==n;this.pristine=n,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,e),r&&this._events.next(new k(this.pristine,e))}_updateTouched(t={},e){this.touched=this._anyControlsTouched(),this._events.next(new G(this.touched,e)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,e)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){ie(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let e=this._parent&&this._parent.dirty;return!t&&!!e&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=bt(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=At(this._rawAsyncValidators)}},J=class extends I{constructor(t,e,n){super(fe(e),pe(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,n={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){Xe(this,!0,t),Object.keys(t).forEach(n=>{Ze(this,!0,n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t!=null&&(Object.keys(t).forEach(n=>{let r=this.controls[n];r&&r.patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((n,r)=>{n.reset(t?t[r]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,n)=>n._syncPendingControls()?!0:e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{let n=this.controls[e];n&&t(n,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(let[e,n]of Object.entries(this.controls))if(this.contains(e)&&t(n))return!0;return!1}_reduceValue(){let t={};return this._reduceChildren(t,(e,n,r)=>((n.enabled||this.disabled)&&(e[r]=n.value),e))}_reduceChildren(t,e){let n=t;return this._forEachChild((r,s)=>{n=e(n,r,s)}),n}_allControlsDisabled(){for(let t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}};var ce=class extends J{};var j=new D("CallSetDisabledState",{providedIn:"root",factory:()=>B}),B="always";function ge(i,t){return[...t.path,i]}function de(i,t,e=B){me(i,t),t.valueAccessor.writeValue(i.value),(i.disabled||e==="always")&&t.valueAccessor.setDisabledState?.(i.disabled),Et(i,t),wt(i,t),Ft(i,t),Mt(i,t)}function Q(i,t,e=!0){let n=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n)),te(i,t),i&&(t._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(()=>{}))}function ee(i,t){i.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function Mt(i,t){if(t.valueAccessor.setDisabledState){let e=n=>{t.valueAccessor.setDisabledState(n)};i.registerOnDisabledChange(e),t._registerOnDestroy(()=>{i._unregisterOnDisabledChange(e)})}}function me(i,t){let e=qe(i);t.validator!==null?i.setValidators(Ee(e,t.validator)):typeof e=="function"&&i.setValidators([e]);let n=ze(i);t.asyncValidator!==null?i.setAsyncValidators(Ee(n,t.asyncValidator)):typeof n=="function"&&i.setAsyncValidators([n]);let r=()=>i.updateValueAndValidity();ee(t._rawValidators,r),ee(t._rawAsyncValidators,r)}function te(i,t){let e=!1;if(i!==null){if(t.validator!==null){let r=qe(i);if(Array.isArray(r)&&r.length>0){let s=r.filter(a=>a!==t.validator);s.length!==r.length&&(e=!0,i.setValidators(s))}}if(t.asyncValidator!==null){let r=ze(i);if(Array.isArray(r)&&r.length>0){let s=r.filter(a=>a!==t.asyncValidator);s.length!==r.length&&(e=!0,i.setAsyncValidators(s))}}}let n=()=>{};return ee(t._rawValidators,n),ee(t._rawAsyncValidators,n),e}function Et(i,t){t.valueAccessor.registerOnChange(e=>{i._pendingValue=e,i._pendingChange=!0,i._pendingDirty=!0,i.updateOn==="change"&&Ye(i,t)})}function Ft(i,t){t.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,i.updateOn==="blur"&&i._pendingChange&&Ye(i,t),i.updateOn!=="submit"&&i.markAsTouched()})}function Ye(i,t){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function wt(i,t){let e=(n,r)=>{t.valueAccessor.writeValue(n),r&&t.viewToModelUpdate(n)};i.registerOnChange(e),t._registerOnDestroy(()=>{i._unregisterOnChange(e)})}function It(i,t){i==null,me(i,t)}function St(i,t){return te(i,t)}function Ke(i,t){if(!i.hasOwnProperty("model"))return!1;let e=i.model;return e.isFirstChange()?!0:!Object.is(t,e.currentValue)}function Nt(i){return Object.getPrototypeOf(i.constructor)===S}function Ot(i,t){i._syncPendingControls(),t.forEach(e=>{let n=e.control;n.updateOn==="submit"&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function Je(i,t){if(!t)return null;Array.isArray(t);let e,n,r;return t.forEach(s=>{s.constructor===Pe?e=s:Nt(s)?n=s:r=s}),r||n||e||null}function xt(i,t){let e=i.indexOf(t);e>-1&&i.splice(e,1)}function Ie(i,t){let e=i.indexOf(t);e>-1&&i.splice(e,1)}function Se(i){return typeof i=="object"&&i!==null&&Object.keys(i).length===2&&"value"in i&&"disabled"in i}var z=class extends I{constructor(t=null,e,n){super(fe(e),pe(n,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ie(e)&&(e.nonNullable||e.initialValueIsDefault)&&(Se(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Ie(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Ie(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){Se(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var Pt=i=>i instanceof z,kt=(()=>{class i extends f{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return ge(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=b(i)))(r||i)}})()}static{this.\u0275dir=l({type:i,features:[u]})}}return i})();var Di=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275dir=l({type:i,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}}return i})(),Gt={provide:C,useExisting:d(()=>Rt),multi:!0},Rt=(()=>{class i extends S{writeValue(e){let n=e??"";this.setProperty("value",n)}registerOnChange(e){this.onChange=n=>{e(n==""?null:parseFloat(n))}}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=b(i)))(r||i)}})()}static{this.\u0275dir=l({type:i,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,r){n&1&&g("input",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()})},features:[h([Gt]),u]})}}return i})(),Tt={provide:C,useExisting:d(()=>Bt),multi:!0};var jt=(()=>{class i{constructor(){this._accessors=[]}add(e,n){this._accessors.push([e,n])}remove(e){for(let n=this._accessors.length-1;n>=0;--n)if(this._accessors[n][1]===e){this._accessors.splice(n,1);return}}select(e){this._accessors.forEach(n=>{this._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)})}_isSameGroup(e,n){return e[0].control?e[0]._parent===n._control._parent&&e[1].name===n.name:!1}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=re({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),Bt=(()=>{class i extends S{constructor(e,n,r,s){super(e,n),this._registry=r,this._injector=s,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=De(j,{optional:!0})??B}ngOnInit(){this._control=this._injector.get(v),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this.setProperty("checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}setDisabledState(e){(this.setDisabledStateFired||e||this.callSetDisabledState==="whenDisabledForLegacyCode")&&this.setProperty("disabled",e),this.setDisabledStateFired=!0}fireUncheck(e){this.writeValue(e)}_checkName(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName)}static{this.\u0275fac=function(n){return new(n||i)(o(E),o(M),o(jt),o(be))}}static{this.\u0275dir=l({type:i,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(n,r){n&1&&g("change",function(){return r.onChange()})("blur",function(){return r.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[h([Tt]),u]})}}return i})();var _e=new D(""),Ut={provide:v,useExisting:d(()=>Ht)},Ht=(()=>{class i extends v{set isDisabled(e){}static{this._ngModelWarningSentOnce=!1}constructor(e,n,r,s,a){super(),this._ngModelWarningConfig=s,this.callSetDisabledState=a,this.update=new A,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=Je(this,r)}ngOnChanges(e){if(this._isControlChanged(e)){let n=e.form.previousValue;n&&Q(n,this,!1),de(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Ke(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Q(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static{this.\u0275fac=function(n){return new(n||i)(o(R,10),o(T,10),o(C,10),o(_e,8),o(j,8))}}static{this.\u0275dir=l({type:i,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[h([Ut]),u,W]})}}return i})(),Lt={provide:f,useExisting:d(()=>Qe)},Qe=(()=>{class i extends f{get submitted(){return m(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}constructor(e,n,r){super(),this.callSetDisabledState=r,this._submitted=O(()=>this._submittedReactive()),this._submittedReactive=N(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new A,this._setValidators(e),this._setAsyncValidators(n)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(te(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){let n=this.form.get(e.path);return de(n,e,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),n}getControl(e){return this.form.get(e.path)}removeControl(e){Q(e.control||null,e,!1),xt(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,n){this.form.get(e.path).setValue(n)}onSubmit(e){return this._submittedReactive.set(!0),Ot(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new le(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this._submittedReactive.set(!1),this.form._events.next(new ue(this.form))}_updateDomValue(){this.directives.forEach(e=>{let n=e.control,r=this.form.get(e.path);n!==r&&(Q(n||null,e),Pt(r)&&(de(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let n=this.form.get(e.path);It(n,e),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let n=this.form.get(e.path);n&&St(n,e)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){me(this.form,this),this._oldForm&&te(this._oldForm,this)}_checkFormPresent(){this.form}static{this.\u0275fac=function(n){return new(n||i)(o(R,10),o(T,10),o(j,8))}}static{this.\u0275dir=l({type:i,selectors:[["","formGroup",""]],hostBindings:function(n,r){n&1&&g("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[h([Lt]),u,W]})}}return i})(),$t={provide:f,useExisting:d(()=>et)},et=(()=>{class i extends kt{constructor(e,n,r){super(),this.name=null,this._parent=e,this._setValidators(n),this._setAsyncValidators(r)}_checkParentType(){it(this._parent)}static{this.\u0275fac=function(n){return new(n||i)(o(f,13),o(R,10),o(T,10))}}static{this.\u0275dir=l({type:i,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},features:[h([$t]),u]})}}return i})(),Wt={provide:f,useExisting:d(()=>tt)},tt=(()=>{class i extends f{constructor(e,n,r){super(),this.name=null,this._parent=e,this._setValidators(n),this._setAsyncValidators(r)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return ge(this.name==null?this.name:this.name.toString(),this._parent)}_checkParentType(){it(this._parent)}static{this.\u0275fac=function(n){return new(n||i)(o(f,13),o(R,10),o(T,10))}}static{this.\u0275dir=l({type:i,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},features:[h([Wt]),u]})}}return i})();function it(i){return!(i instanceof et)&&!(i instanceof Qe)&&!(i instanceof tt)}var qt={provide:v,useExisting:d(()=>zt)},zt=(()=>{class i extends v{set isDisabled(e){}static{this._ngModelWarningSentOnce=!1}constructor(e,n,r,s,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new A,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=Je(this,s)}ngOnChanges(e){this._added||this._setUpControl(),Ke(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return ge(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static{this.\u0275fac=function(n){return new(n||i)(o(f,13),o(R,10),o(T,10),o(C,10),o(_e,8))}}static{this.\u0275dir=l({type:i,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[h([qt]),u,W]})}}return i})(),Zt={provide:C,useExisting:d(()=>rt),multi:!0};function nt(i,t){return i==null?`${t}`:(t&&typeof t=="object"&&(t="Object"),`${i}: ${t}`.slice(0,50))}function Xt(i){return i.split(":")[0]}var rt=(()=>{class i extends S{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;let n=this._getOptionId(e),r=nt(n,e);this.setProperty("value",r)}registerOnChange(e){this.onChange=n=>{this.value=this._getOptionValue(n),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(let n of this._optionMap.keys())if(this._compareWith(this._optionMap.get(n),e))return n;return null}_getOptionValue(e){let n=Xt(e);return this._optionMap.has(n)?this._optionMap.get(n):e}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=b(i)))(r||i)}})()}static{this.\u0275dir=l({type:i,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(n,r){n&1&&g("change",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[h([Zt]),u]})}}return i})(),bi=(()=>{class i{constructor(e,n,r){this._element=e,this._renderer=n,this._select=r,this._select&&(this.id=this._select._registerOption())}set ngValue(e){this._select!=null&&(this._select._optionMap.set(this.id,e),this._setElementValue(nt(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static{this.\u0275fac=function(n){return new(n||i)(o(M),o(E),o(rt,9))}}static{this.\u0275dir=l({type:i,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}}return i})(),Yt={provide:C,useExisting:d(()=>st),multi:!0};function Ne(i,t){return i==null?`${t}`:(typeof t=="string"&&(t=`'${t}'`),t&&typeof t=="object"&&(t="Object"),`${i}: ${t}`.slice(0,50))}function Kt(i){return i.split(":")[0]}var st=(()=>{class i extends S{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;let n;if(Array.isArray(e)){let r=e.map(s=>this._getOptionId(s));n=(s,a)=>{s._setSelected(r.indexOf(a.toString())>-1)}}else n=(r,s)=>{r._setSelected(!1)};this._optionMap.forEach(n)}registerOnChange(e){this.onChange=n=>{let r=[],s=n.selectedOptions;if(s!==void 0){let a=s;for(let V=0;V<a.length;V++){let U=a[V],ne=this._getOptionValue(U.value);r.push(ne)}}else{let a=n.options;for(let V=0;V<a.length;V++){let U=a[V];if(U.selected){let ne=this._getOptionValue(U.value);r.push(ne)}}}this.value=r,e(r)}}_registerOption(e){let n=(this._idCounter++).toString();return this._optionMap.set(n,e),n}_getOptionId(e){for(let n of this._optionMap.keys())if(this._compareWith(this._optionMap.get(n)._value,e))return n;return null}_getOptionValue(e){let n=Kt(e);return this._optionMap.has(n)?this._optionMap.get(n)._value:e}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=b(i)))(r||i)}})()}static{this.\u0275dir=l({type:i,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(n,r){n&1&&g("change",function(a){return r.onChange(a.target)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[h([Yt]),u]})}}return i})(),Ai=(()=>{class i{constructor(e,n,r){this._element=e,this._renderer=n,this._select=r,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){this._select!=null&&(this._value=e,this._setElementValue(Ne(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(Ne(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static{this.\u0275fac=function(n){return new(n||i)(o(M),o(E),o(st,9))}}static{this.\u0275dir=l({type:i,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}}return i})();var ot=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=$({type:i})}static{this.\u0275inj=L({})}}return i})(),he=class extends I{constructor(t,e,n){super(fe(e),pe(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[this._adjustIndex(t)]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,n={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(t,e={}){let n=this._adjustIndex(t);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,n={}){let r=this._adjustIndex(t);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){Xe(this,!1,t),t.forEach((n,r)=>{Ze(this,!1,r),this.at(r).setValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t!=null&&(t.forEach((n,r)=>{this.at(r)&&this.at(r).patchValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((n,r)=>{n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_adjustIndex(t){return t<0?t+this.length:t}_syncPendingControls(){let t=this.controls.reduce((e,n)=>n._syncPendingControls()?!0:e,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(let t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}_find(t){return this.at(t)??null}};function Oe(i){return!!i&&(i.asyncValidators!==void 0||i.validators!==void 0||i.updateOn!==void 0)}var Mi=(()=>{class i{constructor(){this.useNonNullable=!1}get nonNullable(){let e=new i;return e.useNonNullable=!0,e}group(e,n=null){let r=this._reduceControls(e),s={};return Oe(n)?s=n:n!==null&&(s.validators=n.validator,s.asyncValidators=n.asyncValidator),new J(r,s)}record(e,n=null){let r=this._reduceControls(e);return new ce(r,n)}control(e,n,r){let s={};return this.useNonNullable?(Oe(n)?s=n:(s.validators=n,s.asyncValidators=r),new z(e,p(c({},s),{nonNullable:!0}))):new z(e,n,r)}array(e,n,r){let s=e.map(a=>this._createControl(a));return new he(s,n,r)}_reduceControls(e){let n={};return Object.keys(e).forEach(r=>{n[r]=this._createControl(e[r])}),n}_createControl(e){if(e instanceof z)return e;if(e instanceof I)return e;if(Array.isArray(e)){let n=e[0],r=e.length>1?e[1]:null,s=e.length>2?e[2]:null;return this.control(n,r,s)}else return this.control(e)}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=re({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var Ei=(()=>{class i{static withConfig(e){return{ngModule:i,providers:[{provide:j,useValue:e.callSetDisabledState??B}]}}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=$({type:i})}static{this.\u0275inj=L({imports:[ot]})}}return i})(),Fi=(()=>{class i{static withConfig(e){return{ngModule:i,providers:[{provide:_e,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:j,useValue:e.callSetDisabledState??B}]}}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=$({type:i})}static{this.\u0275inj=L({imports:[ot]})}}return i})();export{lt as a,Pe as b,Me as c,yi as d,Ci as e,z as f,Di as g,Rt as h,Bt as i,Ht as j,Qe as k,et as l,tt as m,zt as n,bi as o,Ai as p,Mi as q,Ei as r,Fi as s};
@@ -1 +1 @@
1
- import{a as be}from"./chunk-6FMOBX4W.js";import{a as L,b as Ce}from"./chunk-KOIUHATU.js";import{b as q}from"./chunk-ZHM55NRD.js";import{a as me,b as V,d as E,e as T,f as P,g as ce,h as ue,i as R,l as N,m as de,n as fe,o as I,q as B}from"./chunk-4I2FZHFA.js";import{a as D,e as M,l as ge,m as he,o as Fe,r as Se}from"./chunk-3ZII4VBA.js";import{a as w,c as C}from"./chunk-APGFOGYB.js";import{a as O}from"./chunk-5P5MCIGV.js";import{A as Y,D as j,Eb as r,Hb as re,J as Z,K as ee,Ma as u,Mb as se,Nb as x,P as te,Sa as d,Sb as le,Ub as ae,V as p,X as k,_a as $,ab as c,c as K,dc as pe,fa as f,fb as J,ga as g,gb as ie,hb as oe,ib as ne,jb as i,kb as n,l as Q,lb as m,mb as h,nb as F,p as U,pb as y,pc as _,qb as S,rb as W,v as X}from"./chunk-NUWA7AOR.js";function we(l,t){l&1&&m(0,"spk-progress-bar",3)}function Oe(l,t){if(l&1&&(i(0,"option",10),r(1),le(2,"date"),n()),l&2){let e=t.$implicit;c("value",e.Version),u(),re("",e.Version,": ",ae(2,3,e.Time,"d MMM y, h:mm"),"")}}function Ve(l,t){if(l&1&&(i(0,"app-file-tree",11)(1,"label",12),r(2,"Path"),n(),m(3,"input",13),n()),l&2){let e=W(2);c("rootPath",e.rootPath())("backupSettings",e.backupSettings())("multiSelect",!0)("showFiles",!0)}}function Ee(l,t){if(l&1&&(i(0,"spk-select",7),m(1,"input",8),h(2,9),oe(3,Oe,3,6,"option",10,ie),F(),n(),$(5,Ve,4,4,"app-file-tree",11)),l&2){let e=W();c("displayFn",e.displayFn()),u(3),ne(e.versionOptions()),u(2),J(e.rootPathLoaded()?5:-1)}}var A=new I,ke=()=>A.group({filesToRestore:A.control(""),selectedOption:A.control(null),passphrase:A.control(null)}),z=class l{#t=p(O);#e=p(b);#i=p(C);#o=p(w);#n=p(_);selectFilesForm=this.#e.selectFilesForm;selectFilesFormSignal=this.#e.selectFilesFormSignal;backupId=this.#e.backupId;versionOptionsLoading=this.#e.versionOptionsLoading;versionOptions=this.#e.versionOptions;backupSettings=pe(()=>{let t=this.backupId(),e=this.selectFilesFormSignal()?.selectedOption;if(typeof e!="number"||!t)return null;let s=this.versionOptions()?.find(a=>a.Version===e)?.Time??null;return s?{id:t,time:s}:null});rootPathLoaded=d(!1);rootPath=be([this.selectFilesFormSignal,this.backupId],K(Z([null,null]),ee(([t,e])=>{let o=t?.selectedOption,s=e;if(typeof o!="number"||!s)return Q("/");let a=this.versionOptions()?.find(G=>G.Version===o);return this.#t.getApiV1BackupByIdFiles({id:s,time:a?.Time??"",prefixOnly:!1,folderContents:!0}).pipe(U(G=>(this.rootPathLoaded.set(!0),G.Files[0].Path)))})));displayFn(){let t=this.versionOptions();return e=>{if(!e)return"";let o=t?.find(s=>s.Version?.toString()===e);return o?`${o.Version}: ${this.#n.transform(o.Time,"d MMM y, h:mm")}`:""}}next(){this.#i.navigate(["options"],{relativeTo:this.#o.parent})}exit(){this.#e.exit()}static \u0275fac=function(e){return new(e||l)};static \u0275cmp=k({type:l,selectors:[["app-select-files"]],standalone:!0,features:[se([_]),x],decls:15,vars:2,consts:[["formRef",""],[3,"submit","formGroup"],[1,"title-30"],[1,"indeterminate","primary"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"],[3,"displayFn"],["type","number","placeholder","Select an option...","formControlName","selectedOption"],["options",""],[3,"value"],[3,"rootPath","backupSettings","multiSelect","showFiles"],["for","path"],["type","text","id","path","formControlName","filesToRestore"]],template:function(e,o){if(e&1){let s=y();i(0,"form",1,0),S("submit",function(){return f(s),g(o.next())}),i(2,"h3",2),r(3,"Select files"),n(),$(4,we,1,0,"spk-progress-bar",3)(5,Ee,6,2),i(6,"div",4)(7,"button",5),S("click",function(){return f(s),g(o.exit())}),i(8,"spk-icon"),r(9,"arrow-left"),n(),r(10," Exit "),n(),i(11,"button",6)(12,"spk-icon"),r(13,"arrow-right"),n(),r(14," Continue "),n()()()}e&2&&(c("formGroup",o.selectFilesForm),u(4),J(o.versionOptionsLoading()?4:5))},dependencies:[B,P,de,fe,V,ce,E,T,R,N,_,L,M,D,Fe,ge],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};var b=class l{#t=p(C);#e=p(O);backupId=d(null);backup=d(null);selectFilesForm=ke();optionsForm=ye();optionsFormSignal=q(this.optionsForm.valueChanges);selectFilesFormSignal=q(this.selectFilesForm.valueChanges);versionOptionsLoading=d(!1);versionOptions=d([]);isSubmitting=d(!1);init(t){this.backupId.set(t),this.#i(t,!0)}submit(){this.isSubmitting.set(!0);let t=this.backupId(),e=this.optionsForm.value,o=this.selectFilesForm.value,s=this.versionOptions()?.find(a=>a.Version===o.selectedOption);this.#e.postApiV1BackupByIdRestore({id:t??"",requestBody:{paths:o.filesToRestore?.split("\0").map(a=>`${a}*`)??[],passphrase:o.passphrase??null,time:s?.Time,restore_path:e.restoreFromPath,overwrite:e.handleExisting==="overwrite",permissions:e.permissions,skip_metadata:!0}}).pipe(j(()=>this.isSubmitting.set(!1))).subscribe({next:()=>{this.exit()},error:a=>{console.error("restore error",a)}})}exit(){this.#o(),this.#t.navigate(["/"])}getVersionOptions(){this.versionOptions()}#i(t,e=!1){this.versionOptionsLoading.set(!0),X([this.#e.getApiV1BackupById({id:t}),this.#e.getApiV1BackupByIdFilesets({id:t})]).pipe(Y(1),j(()=>this.versionOptionsLoading.set(!1))).subscribe({next:([o,s])=>{this.versionOptions.set(s),this.backup.set(o),e&&this.selectFilesForm.controls.selectedOption.setValue(s[0].Version)}})}#o(){this.selectFilesForm.reset(),this.optionsForm.reset()}static \u0275fac=function(e){return new(e||l)};static \u0275prov=te({token:l,factory:l.\u0275fac,providedIn:"root"})};var v=new I,ye=()=>v.group({restoreFrom:v.control("orignal"),restoreFromPath:v.control(""),handleExisting:v.control("overwrite"),permissions:v.control(!1)}),H=class l{#t=p(b);#e=p(C);#i=p(w);optionsForm=this.#t.optionsForm;optionsFormSignal=this.#t.optionsFormSignal;goBack(){this.#e.navigate(["select-files"],{relativeTo:this.#i.parent})}submit(){this.#t.submit()}static \u0275fac=function(e){return new(e||l)};static \u0275cmp=k({type:l,selectors:[["app-options"]],standalone:!0,features:[x],decls:41,vars:4,consts:[["formRef",""],[3,"submit","formGroup"],[1,"title-30"],[3,"disallowToggle"],["title",""],[1,"raised","primary"],["type","radio","name","restoreFrom","value","orignal","formControlName","restoreFrom"],["type","radio","name","restoreFrom","value","pickLocation","formControlName","restoreFrom"],[3,"disabled"],["for","path"],["type","text","id","path","formControlName","restoreFromPath"],["type","radio","name","handleExisting","value","overwrite","formControlName","handleExisting"],["type","radio","name","handleExisting","value","saveTimestamp","formControlName","handleExisting"],[1,"primary","raised"],["type","checkbox","formControlName","permissions"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"]],template:function(e,o){if(e&1){let s=y();i(0,"form",1,0),S("submit",function(){return f(s),g(o.submit())}),i(2,"h3",2),r(3,"Restore options"),n(),i(4,"app-toggle-card",3),h(5,4),r(6,"Where do you want to restore files from?"),F(),i(7,"spk-radio",5),r(8," Original location "),m(9,"input",6),n(),i(10,"spk-radio",5),r(11," Pick location "),m(12,"input",7),n(),i(13,"app-file-tree",8)(14,"label",9),r(15,"Path"),n(),m(16,"input",10),n()(),i(17,"app-toggle-card",3),h(18,4),r(19,"How do you want to handle existing files?"),F(),i(20,"spk-radio",5),r(21," Overwrite "),m(22,"input",11),n(),i(23,"spk-radio",5),r(24," Save different versions with timestamp in file name "),m(25,"input",12),n()(),i(26,"app-toggle-card"),h(27,4),r(28,"Permissions"),F(),i(29,"spk-toggle",13),r(30," Restore read/write permissions "),m(31,"input",14),n()(),i(32,"div",15)(33,"button",16),S("click",function(){return f(s),g(o.goBack())}),i(34,"spk-icon"),r(35,"arrow-left"),n(),r(36," Go back "),n(),i(37,"button",17)(38,"spk-icon"),r(39,"arrow-right"),n(),r(40," Submit "),n()()()}if(e&2){let s;c("formGroup",o.optionsForm),u(4),c("disallowToggle",!0),u(9),c("disabled",((s=o.optionsFormSignal())==null?null:s.restoreFrom)!=="pickLocation"),u(4),c("disallowToggle",!0)}},dependencies:[B,P,V,me,ue,E,T,R,N,Ce,L,Se,he,M,D],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};export{ye as a,H as b,ke as c,z as d,b as e};
1
+ import{a as be}from"./chunk-4EODC7AQ.js";import{a as L,b as Ce}from"./chunk-ZSOWH34L.js";import{b as q}from"./chunk-N6REZCKW.js";import{a as me,b as V,d as E,e as T,g as P,h as ce,i as ue,k as R,n as N,o as de,p as fe,q as I,s as B}from"./chunk-73UOOUBD.js";import{a as D,g as M,n as ge,o as he,q as Fe,t as Se}from"./chunk-IEVRQDB6.js";import{a as w,c as C}from"./chunk-22ZYSOTR.js";import{a as O}from"./chunk-LZSE733H.js";import{B as Y,E as j,Gb as r,Jb as re,K as Z,L as ee,Nb as se,Oa as u,Ob as x,Q as te,Tb as le,Ua as d,Vb as ae,W as p,Y as k,ab as $,c as K,cb as c,ec as pe,ga as f,ha as g,hb as J,ib as ie,jb as oe,kb as ne,l as Q,lb as i,mb as n,nb as m,ob as h,p as U,pb as F,rb as y,rc as _,sb as S,tb as W,v as X}from"./chunk-QHJTF3V4.js";function we(l,t){l&1&&m(0,"spk-progress-bar",3)}function Oe(l,t){if(l&1&&(i(0,"option",10),r(1),le(2,"date"),n()),l&2){let e=t.$implicit;c("value",e.Version),u(),re("",e.Version,": ",ae(2,3,e.Time,"d MMM y, h:mm"),"")}}function Ve(l,t){if(l&1&&(i(0,"app-file-tree",11)(1,"label",12),r(2,"Path"),n(),m(3,"input",13),n()),l&2){let e=W(2);c("rootPath",e.rootPath())("backupSettings",e.backupSettings())("multiSelect",!0)("showFiles",!0)}}function Ee(l,t){if(l&1&&(i(0,"spk-select",7),m(1,"input",8),h(2,9),oe(3,Oe,3,6,"option",10,ie),F(),n(),$(5,Ve,4,4,"app-file-tree",11)),l&2){let e=W();c("displayFn",e.displayFn()),u(3),ne(e.versionOptions()),u(2),J(e.rootPathLoaded()?5:-1)}}var A=new I,ke=()=>A.group({filesToRestore:A.control(""),selectedOption:A.control(null),passphrase:A.control(null)}),z=class l{#t=p(O);#e=p(b);#i=p(C);#o=p(w);#n=p(_);selectFilesForm=this.#e.selectFilesForm;selectFilesFormSignal=this.#e.selectFilesFormSignal;backupId=this.#e.backupId;versionOptionsLoading=this.#e.versionOptionsLoading;versionOptions=this.#e.versionOptions;backupSettings=pe(()=>{let t=this.backupId(),e=this.selectFilesFormSignal()?.selectedOption;if(typeof e!="number"||!t)return null;let s=this.versionOptions()?.find(a=>a.Version===e)?.Time??null;return s?{id:t,time:s}:null});rootPathLoaded=d(!1);rootPath=be([this.selectFilesFormSignal,this.backupId],K(Z([null,null]),ee(([t,e])=>{let o=t?.selectedOption,s=e;if(typeof o!="number"||!s)return Q("/");let a=this.versionOptions()?.find(G=>G.Version===o);return this.#t.getApiV1BackupByIdFiles({id:s,time:a?.Time??"",prefixOnly:!1,folderContents:!0}).pipe(U(G=>(this.rootPathLoaded.set(!0),G.Files[0].Path)))})));displayFn(){let t=this.versionOptions();return e=>{if(!e)return"";let o=t?.find(s=>s.Version?.toString()===e);return o?`${o.Version}: ${this.#n.transform(o.Time,"d MMM y, h:mm")}`:""}}next(){this.#i.navigate(["options"],{relativeTo:this.#o.parent})}exit(){this.#e.exit()}static \u0275fac=function(e){return new(e||l)};static \u0275cmp=k({type:l,selectors:[["app-select-files"]],standalone:!0,features:[se([_]),x],decls:15,vars:2,consts:[["formRef",""],[3,"submit","formGroup"],[1,"title-30"],[1,"indeterminate","primary"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"],[3,"displayFn"],["type","number","placeholder","Select an option...","formControlName","selectedOption"],["options",""],[3,"value"],[3,"rootPath","backupSettings","multiSelect","showFiles"],["for","path"],["type","text","id","path","formControlName","filesToRestore"]],template:function(e,o){if(e&1){let s=y();i(0,"form",1,0),S("submit",function(){return f(s),g(o.next())}),i(2,"h3",2),r(3,"Select files"),n(),$(4,we,1,0,"spk-progress-bar",3)(5,Ee,6,2),i(6,"div",4)(7,"button",5),S("click",function(){return f(s),g(o.exit())}),i(8,"spk-icon"),r(9,"arrow-left"),n(),r(10," Exit "),n(),i(11,"button",6)(12,"spk-icon"),r(13,"arrow-right"),n(),r(14," Continue "),n()()()}e&2&&(c("formGroup",o.selectFilesForm),u(4),J(o.versionOptionsLoading()?4:5))},dependencies:[B,P,de,fe,V,ce,E,T,R,N,_,L,M,D,Fe,ge],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};var b=class l{#t=p(C);#e=p(O);backupId=d(null);backup=d(null);selectFilesForm=ke();optionsForm=ye();optionsFormSignal=q(this.optionsForm.valueChanges);selectFilesFormSignal=q(this.selectFilesForm.valueChanges);versionOptionsLoading=d(!1);versionOptions=d([]);isSubmitting=d(!1);init(t){this.backupId.set(t),this.#i(t,!0)}submit(){this.isSubmitting.set(!0);let t=this.backupId(),e=this.optionsForm.value,o=this.selectFilesForm.value,s=this.versionOptions()?.find(a=>a.Version===o.selectedOption);this.#e.postApiV1BackupByIdRestore({id:t??"",requestBody:{paths:o.filesToRestore?.split("\0").map(a=>`${a}*`)??[],passphrase:o.passphrase??null,time:s?.Time,restore_path:e.restoreFromPath,overwrite:e.handleExisting==="overwrite",permissions:e.permissions,skip_metadata:!0}}).pipe(j(()=>this.isSubmitting.set(!1))).subscribe({next:()=>{this.exit()},error:a=>{console.error("restore error",a)}})}exit(){this.#o(),this.#t.navigate(["/"])}getVersionOptions(){this.versionOptions()}#i(t,e=!1){this.versionOptionsLoading.set(!0),X([this.#e.getApiV1BackupById({id:t}),this.#e.getApiV1BackupByIdFilesets({id:t})]).pipe(Y(1),j(()=>this.versionOptionsLoading.set(!1))).subscribe({next:([o,s])=>{this.versionOptions.set(s),this.backup.set(o),e&&this.selectFilesForm.controls.selectedOption.setValue(s[0].Version)}})}#o(){this.selectFilesForm.reset(),this.optionsForm.reset()}static \u0275fac=function(e){return new(e||l)};static \u0275prov=te({token:l,factory:l.\u0275fac,providedIn:"root"})};var v=new I,ye=()=>v.group({restoreFrom:v.control("orignal"),restoreFromPath:v.control(""),handleExisting:v.control("overwrite"),permissions:v.control(!1)}),H=class l{#t=p(b);#e=p(C);#i=p(w);optionsForm=this.#t.optionsForm;optionsFormSignal=this.#t.optionsFormSignal;goBack(){this.#e.navigate(["select-files"],{relativeTo:this.#i.parent})}submit(){this.#t.submit()}static \u0275fac=function(e){return new(e||l)};static \u0275cmp=k({type:l,selectors:[["app-options"]],standalone:!0,features:[x],decls:41,vars:4,consts:[["formRef",""],[3,"submit","formGroup"],[1,"title-30"],[3,"disallowToggle"],["title",""],[1,"raised","primary"],["type","radio","name","restoreFrom","value","orignal","formControlName","restoreFrom"],["type","radio","name","restoreFrom","value","pickLocation","formControlName","restoreFrom"],[3,"disabled"],["for","path"],["type","text","id","path","formControlName","restoreFromPath"],["type","radio","name","handleExisting","value","overwrite","formControlName","handleExisting"],["type","radio","name","handleExisting","value","saveTimestamp","formControlName","handleExisting"],[1,"primary","raised"],["type","checkbox","formControlName","permissions"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"]],template:function(e,o){if(e&1){let s=y();i(0,"form",1,0),S("submit",function(){return f(s),g(o.submit())}),i(2,"h3",2),r(3,"Restore options"),n(),i(4,"app-toggle-card",3),h(5,4),r(6,"Where do you want to restore files from?"),F(),i(7,"spk-radio",5),r(8," Original location "),m(9,"input",6),n(),i(10,"spk-radio",5),r(11," Pick location "),m(12,"input",7),n(),i(13,"app-file-tree",8)(14,"label",9),r(15,"Path"),n(),m(16,"input",10),n()(),i(17,"app-toggle-card",3),h(18,4),r(19,"How do you want to handle existing files?"),F(),i(20,"spk-radio",5),r(21," Overwrite "),m(22,"input",11),n(),i(23,"spk-radio",5),r(24," Save different versions with timestamp in file name "),m(25,"input",12),n()(),i(26,"app-toggle-card"),h(27,4),r(28,"Permissions"),F(),i(29,"spk-toggle",13),r(30," Restore read/write permissions "),m(31,"input",14),n()(),i(32,"div",15)(33,"button",16),S("click",function(){return f(s),g(o.goBack())}),i(34,"spk-icon"),r(35,"arrow-left"),n(),r(36," Go back "),n(),i(37,"button",17)(38,"spk-icon"),r(39,"arrow-right"),n(),r(40," Submit "),n()()()}if(e&2){let s;c("formGroup",o.optionsForm),u(4),c("disallowToggle",!0),u(9),c("disabled",((s=o.optionsFormSignal())==null?null:s.restoreFrom)!=="pickLocation"),u(4),c("disallowToggle",!0)}},dependencies:[B,P,V,me,ue,E,T,R,N,Ce,L,Se,he,M,D],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};export{ye as a,H as b,ke as c,z as d,b as e};
@@ -1 +1 @@
1
- import{a as y}from"./chunk-I62MTURC.js";import"./chunk-ZCCVAPLP.js";import{b as v,c as S,d as w,e as F,f as L,i as _,l as N,o as k,q as x}from"./chunk-4I2FZHFA.js";import{a as D,e as M,i as P}from"./chunk-3ZII4VBA.js";import{c as b}from"./chunk-APGFOGYB.js";import"./chunk-XG5WW7WW.js";import"./chunk-5P5MCIGV.js";import{D as m,Eb as s,Ma as u,Nb as h,Sa as c,V as i,X as p,ab as g,cb as d,jb as e,kb as r,lb as f,qb as C}from"./chunk-NUWA7AOR.js";import"./chunk-7CGTOI24.js";var G=new k,a=class l{#e=i(b);#t=i(y);isLoading=c(!1);loginForm=G.group({pass:G.control("",S.required)});submit(){let t=this.loginForm.value.pass;t&&(this.isLoading.set(!0),this.#t.login(t).pipe(m(()=>this.isLoading.set(!1))).subscribe({next:()=>this.#e.navigate(["/"])}))}static \u0275fac=function(o){return new(o||l)};static \u0275cmp=p({type:l,selectors:[["app-login"]],standalone:!0,features:[h],decls:8,vars:3,consts:[[3,"submit","formGroup"],[1,"login-row"],["type","password","autocomplete","current-password","placeholder","Enter your password","tabindex","1","formControlName","pass"],["spk-button","","type","submit",1,"raised","primary"]],template:function(o,n){o&1&&(e(0,"form",0),C("submit",function(){return n.submit()}),e(1,"div",1)(2,"spk-form-field"),f(3,"input",2),r(),e(4,"button",3),s(5," Login "),e(6,"spk-icon"),s(7,"arrow-right"),r()()()()),o&2&&(g("formGroup",n.loginForm),u(4),d("loader",n.isLoading()))},dependencies:[x,L,v,w,F,_,N,P,D,M],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 y}from"./chunk-Q76L4VLC.js";import"./chunk-VC4GI7EV.js";import{b as v,c as S,d as w,e as F,g as L,k as _,n as N,q as k,s as x}from"./chunk-73UOOUBD.js";import{a as D,g as M,k as P}from"./chunk-IEVRQDB6.js";import{c as b}from"./chunk-22ZYSOTR.js";import"./chunk-JNQHJPEL.js";import"./chunk-LZSE733H.js";import{E as m,Gb as s,Oa as u,Ob as h,Ua as c,W as i,Y as p,cb as g,eb as d,lb as e,mb as r,nb as f,sb as C}from"./chunk-QHJTF3V4.js";import"./chunk-7CGTOI24.js";var G=new k,a=class l{#e=i(b);#t=i(y);isLoading=c(!1);loginForm=G.group({pass:G.control("",S.required)});submit(){let t=this.loginForm.value.pass;t&&(this.isLoading.set(!0),this.#t.login(t).pipe(m(()=>this.isLoading.set(!1))).subscribe({next:()=>this.#e.navigate(["/"])}))}static \u0275fac=function(o){return new(o||l)};static \u0275cmp=p({type:l,selectors:[["app-login"]],standalone:!0,features:[h],decls:8,vars:3,consts:[[3,"submit","formGroup"],[1,"login-row"],["type","password","autocomplete","current-password","placeholder","Enter your password","tabindex","1","formControlName","pass"],["spk-button","","type","submit",1,"raised","primary"]],template:function(o,n){o&1&&(e(0,"form",0),C("submit",function(){return n.submit()}),e(1,"div",1)(2,"spk-form-field"),f(3,"input",2),r(),e(4,"button",3),s(5," Login "),e(6,"spk-icon"),s(7,"arrow-right"),r()()()()),o&2&&(g("formGroup",n.loginForm),u(4),d("loader",n.isLoading()))},dependencies:[x,L,v,w,F,_,N,P,D,M],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};
@@ -0,0 +1 @@
1
+ import{a,b}from"./chunk-AIWAOXTQ.js";import"./chunk-4EODC7AQ.js";import"./chunk-ZSOWH34L.js";import"./chunk-N6REZCKW.js";import"./chunk-73UOOUBD.js";import"./chunk-IEVRQDB6.js";import"./chunk-22ZYSOTR.js";import"./chunk-JNQHJPEL.js";import"./chunk-LZSE733H.js";import"./chunk-QHJTF3V4.js";import"./chunk-7CGTOI24.js";export{a as createRestoreOptionsForm,b as default};
@@ -1 +1 @@
1
- import{a as me}from"./chunk-6FMOBX4W.js";import{a as ae}from"./chunk-ETZPVGXX.js";import{a as W}from"./chunk-NN4VOZJP.js";import"./chunk-ZCCVAPLP.js";import{a as se}from"./chunk-DUEP5NWI.js";import"./chunk-QILG6324.js";import{b as $}from"./chunk-ZHM55NRD.js";import{b as q,d as z,e as j,f as H,h as J,i as K,j as Q,l as X,m as Y,n as Z,o as ee,p as te,q as ne}from"./chunk-4I2FZHFA.js";import"./chunk-ICX4A35N.js";import{e as ie,i as oe,m as re,o as le}from"./chunk-3ZII4VBA.js";import{a as L}from"./chunk-5P5MCIGV.js";import{Eb as r,Fb as E,Gb as b,J as v,Ja as D,Ma as s,Nb as A,Sa as h,V as y,X as I,_a as O,ab as S,c as F,cb as M,dc as G,fa as u,fb as C,fc as B,ga as d,gb as x,hb as T,ib as k,jb as n,kb as o,lb as p,mb as R,nb as w,p as U,pb as _,qb as m,rb as c,ub as N}from"./chunk-NUWA7AOR.js";import"./chunk-7CGTOI24.js";function ue(a,e){if(a&1){let t=_();n(0,"spk-form-field",28),p(1,"input",29),o(),n(2,"button",30),m("click",function(){u(t);let l=c(2);return d(l.beginRemoteRegistration())}),r(3," Register for remote control "),o()}}function de(a,e){if(a&1&&(n(0,"div",26)(1,"label"),r(2,"Machine is now registered, open this link to add it to your account:"),o(),n(3,"a",31),r(4),o()()),a&2){let t=c(2);s(3),N("href",t.remoteControlClaimUrl(),D),s(),E(t.remoteControlClaimUrl())}}function ge(a,e){a&1&&(n(0,"div",26)(1,"label"),r(2,"Registering, please wait..."),o()())}function Ce(a,e){if(a&1){let t=_();n(0,"button",30),m("click",function(){u(t);let l=c(2);return d(l.cancelRemoteRegistration())}),r(1," Cancel registration "),o()}}function _e(a,e){if(a&1){let t=_();n(0,"button",30),m("click",function(){u(t);let l=c(2);return d(l.disableRemoteControl())}),r(1," Disable remote control "),o()}}function fe(a,e){if(a&1){let t=_();n(0,"button",30),m("click",function(){u(t);let l=c(2);return d(l.enableRemoteControl())}),r(1," Enable remote control "),o(),n(2,"button",32),m("click",function(){u(t);let l=c(2);return d(l.deleteRemoteControl())}),r(3," Delete remote control setup "),o()}}function Se(a,e){if(a&1&&(n(0,"div",5),O(1,ue,4,0)(2,de,5,2,"div",26)(3,ge,3,0,"div",26)(4,Ce,2,0,"button",27)(5,_e,2,0,"button",27)(6,fe,4,0),o()),a&2){let t=c();s(),C(t.remoteControlState()==="inactive"?1:-1),s(),C(t.remoteControlState()==="registered"?2:-1),s(),C(t.remoteControlState()==="registering"?3:-1),s(),C(t.remoteControlState()==="registering"||t.remoteControlState()==="registeringfaulted"||t.remoteControlState()==="registered"?4:-1),s(),C(t.remoteControlState()==="connected"||t.remoteControlState()==="enabled"?5:-1),s(),C(t.remoteControlState()==="disabled"?6:-1)}}function he(a,e){if(a&1){let t=_();n(0,"option",33),m("click",function(){let l=u(t).$implicit,g=c();return d(g.pauseSettings.controls.timeType.setValue(l.value))}),r(1),o()}if(a&2){let t=e.$implicit;S("value",t.value),s(),b(" ",t.label," ")}}function be(a,e){if(a&1){let t=_();n(0,"option",33),m("click",function(){let l=u(t).$implicit,g=c();return d(g.pauseSettings.controls.time.setValue(l))}),r(1),o()}if(a&2){let t=e.$implicit;S("value",t),s(),E(t)}}function ve(a,e){if(a&1){let t=_();n(0,"option",33),m("click",function(){let l=u(t).$implicit,g=c();return d(g.settingsForm.controls.usageStatistics.setValue(l.value))}),r(1),o()}if(a&2){let t=e.$implicit;S("value",t.value),s(),b(" ",t.label," ")}}var f=new ee,pe=[{value:"s",label:"Seconds"},{value:"m",label:"Minutes"},{value:"h",label:"Hours"}],V=[{value:"en",label:"English"},{value:"fr",label:"French"},{value:"de",label:"German"},{value:"es",label:"Spanish"},{value:"it",label:"Italian"}],ce=[{value:"",label:"System default (information)"},{value:"information",label:"Usage statistics, warnings, errors, and crashes"},{value:"warning",label:"Warnings, errors and crashes"},{value:"error",label:"Errors and crashes"},{value:"crash",label:"Crashes only"},{value:"none",label:"None / disabled"}],P=class a{#i=y(ae);#o=y(W);#e=y(L);sysinfo=this.#o.systemInfo;isDarkMode=this.#i.isDarkMode;editAs=h("list");settingsForm=f.group({pauseSettings:f.group({time:f.control(0),timeType:f.control("s")}),language:f.control("en"),usageStatistics:f.control(""),updateChannel:f.control(""),remoteControlRegisterUrl:f.control("")});remoteControlState=h("unknown");remoteControlClaimUrl=h(null);sysInfoEffect=B(()=>{this.settingsForm.controls.remoteControlRegisterUrl.patchValue(this.sysinfo()?.RemoteControlRegistrationUrl??"")},{allowSignalWrites:!0});get pauseSettings(){return this.settingsForm.controls.pauseSettings}langSignal=$(this.settingsForm.controls.language.valueChanges);timeTypeOptions=h(pe);timeOptions=me([this.pauseSettings.controls.timeType.valueChanges.pipe(v("s")),this.pauseSettings.controls.time.valueChanges.pipe(v(null))],F(U(([e,t])=>{let i=this.#r(e);return t!==null?i.filter(l=>l.toString().includes(t.toString())):i}),v([])));languageOptions=G(()=>this.langSignal()?V.filter(e=>e.value===this.langSignal()):V);usageStatisticsOptions=h(ce);ngOnInit(){this.refreshRemoteControlStatus(),this.getServerSettings()}submit(){let e=`${this.pauseSettings.controls.time.value}${this.pauseSettings.controls.timeType.value}`;this.#e.patchApiV1Serversettings({requestBody:{"usage-reporter-level":this.settingsForm.controls.usageStatistics.value,"startup-delay":e==="0s"?"":e,"update-channel":this.settingsForm.controls.updateChannel.value}}).subscribe({next:t=>{console.log("res",t)},error:t=>{console.error("err",t)}})}getServerSettings(){return this.#e.getApiV1Serversettings().subscribe({next:e=>{let t=e["startup-delay"];this.settingsForm.patchValue({pauseSettings:{time:parseInt(t.substring(0,t.length-1)==""?"0":t.substring(0,t.length-1)),timeType:t.substring(-1)===""?"s":t.substring(-1)},usageStatistics:e["usage-reporter-level"],updateChannel:e["update-channel"]})}})}languageDisplay(e){return e?V.find(t=>t.value===e)?.label??null:null}typeDisplay(e){return e==null?null:pe.find(t=>t.value===e)?.label??null}usageDisplay(e){return typeof e!="string"?null:ce.find(t=>t.value===e)?.label??null}setDarkMode(){this.#i.setDarkMode()}setLightMode(){this.#i.setLightMode()}#r(e){let t=e==="h"?25:61;return new Array(t).fill(0).map((i,l)=>l)}repeatRegisterTimer=null;#t(e){e.RegistrationUrl&&this.remoteControlClaimUrl.set(e.RegistrationUrl),console.log(e),e.IsConnected?this.remoteControlState.set("connected"):e.IsEnabled?this.remoteControlState.set("enabled"):e.CanEnable?this.remoteControlState.set("disabled"):e.IsRegisteringFaulted?this.remoteControlState.set("registeringfaulted"):e.IsRegistering?e.RegistrationUrl!=null&&e.RegistrationUrl.trim().length>0?this.remoteControlState.set("registered"):this.remoteControlState.set("registering"):this.remoteControlState.set("inactive");let t=this.remoteControlState();console.log(t),this.repeatRegisterTimer!==null&&(clearTimeout(this.repeatRegisterTimer),this.repeatRegisterTimer=null),t==="registering"&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:""}}).subscribe({next:i=>{this.#t(i)},error:i=>{this.#n(i)}})},5e3)),(t==="enabled"||t==="registered")&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.getApiV1RemotecontrolStatus().subscribe({next:i=>{this.#t(i)},error:i=>{this.#n(i)}})},5e3)),e.IsRegistering&&e.CanEnable&&this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:i=>{this.#t(i)}})}#n(e){this.#e.getApiV1RemotecontrolStatus().subscribe({next:t=>{this.#t(t)}})}refreshRemoteControlStatus(){this.#e.getApiV1RemotecontrolStatus().subscribe({next:e=>{this.#t(e)},error:e=>{this.#n(e)}})}beginRemoteRegistration(){this.remoteControlState.set("registering");let e=this.settingsForm.controls.remoteControlRegisterUrl.value;this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:e}}).subscribe({next:t=>{this.#t(t)},error:t=>{this.#n(t)}})}cancelRemoteRegistration(){this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:e=>{this.#t(e)},error:e=>{this.#n(e)}})}enableRemoteControl(){this.#e.postApiV1RemotecontrolEnable().subscribe({next:e=>{this.#t(e)},error:e=>{this.#n(e)}})}disableRemoteControl(){this.#e.postApiV1RemotecontrolDisable().subscribe({next:e=>{this.#t(e)},error:e=>{this.#n(e)}})}deleteRemoteControl(){let e=this;confirm("Are you sure you want to delete the remote control registration?")&&e.#e.deleteApiV1RemotecontrolRegistration().subscribe({next:t=>{e.#t(t)},error:t=>{e.#n(t)}})}getRemoteControlStatusText(){let e=this.remoteControlState();return e==="enabled"?"Remote control is enabled but not connected":e==="connected"?"Remote control is connected":e==="registering"?"Registering machine...":e==="registeringfaulted"?"Registration failed":e==="registered"?"Registered, waiting for accept":e==="disabled"?"Remote control is configured but not enabled":e==="unknown"?"...loading...":"Remote control is not set up"}static \u0275fac=function(t){return new(t||a)};static \u0275cmp=I({type:a,selectors:[["app-settings"]],standalone:!0,features:[A],decls:100,vars:11,consts:[[1,"content",3,"submit","formGroup"],[1,"title"],["type","submit","spk-button","",1,"raised","primary"],[1,"left"],[1,"right","remote-control"],[1,"field-row"],[1,"right"],["formGroupName","pauseSettings",1,"field-row"],[3,"displayValue"],["type","text","formControlName","timeType"],["options",""],[3,"value"],["type","search","formControlName","time"],[1,"themes"],["src","assets/images/light-theme.png","alt","light theme",3,"click"],["src","assets/images/dark-theme.png","alt","dark theme",3,"click"],[1,"right","radios"],[1,"radio-option",3,"click"],[1,"outlined","primary"],["type","radio","name","updateChannel","value","","formControlName","updateChannel"],["type","radio","name","updateChannel","value","stable","formControlName","updateChannel"],["type","radio","name","updateChannel","value","beta","formControlName","updateChannel"],["type","radio","name","updateChannel","value","experimental","formControlName","updateChannel"],["type","radio","name","updateChannel","value","canary","formControlName","updateChannel"],["href","#"],["type","text","formControlName","usageStatistics"],[1,"field-col"],["type","button","spk-button","",1,"raised"],["label","Registration URL","for","remoteControlRegisterUrl"],["type","text","spk-input","","id","remoteControlRegisterUrl","name","remoteControlRegisterUrl","formControlName","remoteControlRegisterUrl"],["type","button","spk-button","",1,"raised",3,"click"],["target","_blank",3,"href"],["type","button","spk-button","",1,"raised","warn",3,"click"],[3,"click","value"]],template:function(t,i){if(t&1&&(p(0,"app-status-bar"),n(1,"form",0),m("submit",function(){return i.submit()}),n(2,"header")(3,"div",1)(4,"h2"),r(5,"Settings"),o(),n(6,"p"),r(7,"Configure your backup settings."),o()(),n(8,"button",2),r(9,"Save changes"),o()(),n(10,"section")(11,"div",3)(12,"h3"),r(13,"Remote access control"),o(),n(14,"p"),r(15),o()(),n(16,"div",4),O(17,Se,7,6,"div",5),o()(),n(18,"section")(19,"div",3)(20,"h3"),r(21,"Pause after startup or hibernation"),o(),n(22,"p"),r(23," Duplicati will run when started, but will remain in paused state for the duration. Duplicati will occupy minimal system resources and no backups will be run. "),o()(),n(24,"div",6)(25,"div",7)(26,"spk-select",8),p(27,"input",9),R(28,10),T(29,he,2,2,"option",11,x),w(),o(),n(31,"spk-select"),p(32,"input",12),R(33,10),T(34,be,2,2,"option",11,x),w(),o()()()(),n(36,"section")(37,"div",3)(38,"h3"),r(39,"Color theme"),o(),n(40,"p"),r(41,"Customize your application theme"),o()(),n(42,"div",6)(43,"div",13)(44,"img",14),m("click",function(){return i.setLightMode()}),o(),n(45,"img",15),m("click",function(){return i.setDarkMode()}),o()()()(),n(46,"section")(47,"div",3)(48,"h3"),r(49,"Update channel"),o(),n(50,"p"),r(51,"Lorem ipsum dolor sit amet, consectetur adipiscing elit."),o()(),n(52,"div",16)(53,"div",17),m("click",function(){return i.settingsForm.controls.updateChannel.setValue("")}),n(54,"spk-radio",18),r(55),p(56,"input",19),o(),n(57,"p"),r(58),o()(),n(59,"div",17),m("click",function(){return i.settingsForm.controls.updateChannel.setValue("stable")}),n(60,"spk-radio",18),r(61," Stable "),p(62,"input",20),o(),n(63,"p"),r(64,"Official releases"),o()(),n(65,"div",17),m("click",function(){return i.settingsForm.controls.updateChannel.setValue("beta")}),n(66,"spk-radio",18),r(67," Beta "),p(68,"input",21),o(),n(69,"p"),r(70," Try out the new features that we are working on. Currently the most stable version available. Test Restore data before using this in production environments. "),o()(),n(71,"div",17),m("click",function(){return i.settingsForm.controls.updateChannel.setValue("experimental")}),n(72,"spk-radio",18),r(73," Experimental "),p(74,"input",22),o(),n(75,"p"),r(76,"Specific builds for developers only. Not for use with important data."),o()(),n(77,"div",17),m("click",function(){return i.settingsForm.controls.updateChannel.setValue("canary")}),n(78,"spk-radio",18),r(79," Canary "),p(80,"input",23),o(),n(81,"p"),r(82,"Individual builds for developers only. Not for use with important data."),o()()()(),n(83,"section")(84,"div",3)(85,"h3"),r(86,"Usage statistics"),o(),n(87,"p"),r(88," Usage reports help us improve the user experience and evaluate impact of new features. We use them to generate "),n(89,"a",24),r(90,"public usage statistics."),o(),p(91,"br")(92,"br"),r(93," All usage reports are sent anonymously and do not contain any personal information. They contain information about hardware and operating system, the type of backend, backup duration, overall size of source data and similar data. They do not contain paths, filenames, usernames, passwords or similar sensitive information. "),o()(),n(94,"div",6)(95,"spk-select",8),p(96,"input",25),R(97,10),T(98,ve,2,2,"option",11,x),w(),o()()()()),t&2){let l,g;s(),S("formGroup",i.settingsForm),s(14),E(i.getRemoteControlStatusText()),s(2),C(i.remoteControlState()!=="unknown"?17:-1),s(9),S("displayValue",i.typeDisplay(i.settingsForm.value.pauseSettings==null?null:i.settingsForm.value.pauseSettings.timeType)),s(3),k(i.timeTypeOptions()),s(5),k(i.timeOptions()),s(10),M("active",!i.isDarkMode()),s(),M("active",i.isDarkMode()),s(10),b(" Default (",(l=i.sysinfo())==null?null:l.DefaultUpdateChannel,") "),s(3),b("Same as the base install version: ",(g=i.sysinfo())==null?null:g.ServerVersionType,""),s(37),S("displayValue",i.usageDisplay(i.settingsForm.controls.usageStatistics.value)),s(3),k(i.usageStatisticsOptions())}},dependencies:[te,H,Y,Z,q,J,z,j,ne,K,X,Q,se,ie,re,oe,le],styles:["[_nghost-%COMP%]{display:block}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 2rem 2rem}header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem 0}header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}section[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem;padding:2rem 0;border-top:1px solid var(--base-level-40)}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;align-items:flex-start}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] spk-button-group[_ngcontent-%COMP%]{margin-top:.25rem}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;width:50%}.themes[_ngcontent-%COMP%]{display:flex;gap:.5rem}.themes[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:240px;border-radius:var(--shape-3);cursor:pointer}.themes[_ngcontent-%COMP%] img.active[_ngcontent-%COMP%]{border:2px solid var(--primary-500)}.radios[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.radio-option[_ngcontent-%COMP%]{cursor:pointer}.radio-option[_ngcontent-%COMP%] spk-radio[_ngcontent-%COMP%]{color:var(--base-level-60);margin-bottom:.25rem}.radio-option[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;color:var(--base-level-60R)}.field-col[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.field-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] spk-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] spk-select[_ngcontent-%COMP%]{flex:1 0}.remote-control[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}"],changeDetection:0})};export{P as default};
1
+ import{a as me}from"./chunk-4EODC7AQ.js";import{a as $}from"./chunk-SFRGISK2.js";import{a as le}from"./chunk-PFVXGEM7.js";import"./chunk-VC4GI7EV.js";import{a as ae}from"./chunk-5AC7O5ME.js";import"./chunk-6GOAPINI.js";import{b as se}from"./chunk-N6REZCKW.js";import{b as W,d as q,e as z,g as j,i as H,k as J,l as K,n as Q,o as X,p as Y,q as Z,r as ee,s as te}from"./chunk-73UOOUBD.js";import"./chunk-3ZEBM2Q6.js";import{g as ne,k as ie,o as oe,q as re}from"./chunk-IEVRQDB6.js";import{a as L}from"./chunk-LZSE733H.js";import{Gb as r,Hb as E,Ib as b,K as v,La as D,Oa as s,Ob as A,Ua as h,W as y,Y as I,ab as O,c as F,cb as S,eb as M,ec as G,ga as u,gc as B,ha as d,hb as C,ib as x,jb as T,kb as k,lb as n,mb as o,nb as p,ob as R,p as U,pb as w,rb as _,sb as m,tb as c,wb as N}from"./chunk-QHJTF3V4.js";import"./chunk-7CGTOI24.js";function ue(a,e){if(a&1){let t=_();n(0,"spk-form-field",28),p(1,"input",29),o(),n(2,"button",30),m("click",function(){u(t);let l=c(2);return d(l.beginRemoteRegistration())}),r(3," Register for remote control "),o()}}function de(a,e){if(a&1&&(n(0,"div",26)(1,"label"),r(2,"Machine is now registered, open this link to add it to your account:"),o(),n(3,"a",31),r(4),o()()),a&2){let t=c(2);s(3),N("href",t.remoteControlClaimUrl(),D),s(),E(t.remoteControlClaimUrl())}}function ge(a,e){a&1&&(n(0,"div",26)(1,"label"),r(2,"Registering, please wait..."),o()())}function Ce(a,e){if(a&1){let t=_();n(0,"button",30),m("click",function(){u(t);let l=c(2);return d(l.cancelRemoteRegistration())}),r(1," Cancel registration "),o()}}function _e(a,e){if(a&1){let t=_();n(0,"button",30),m("click",function(){u(t);let l=c(2);return d(l.disableRemoteControl())}),r(1," Disable remote control "),o()}}function fe(a,e){if(a&1){let t=_();n(0,"button",30),m("click",function(){u(t);let l=c(2);return d(l.enableRemoteControl())}),r(1," Enable remote control "),o(),n(2,"button",32),m("click",function(){u(t);let l=c(2);return d(l.deleteRemoteControl())}),r(3," Delete remote control setup "),o()}}function Se(a,e){if(a&1&&(n(0,"div",5),O(1,ue,4,0)(2,de,5,2,"div",26)(3,ge,3,0,"div",26)(4,Ce,2,0,"button",27)(5,_e,2,0,"button",27)(6,fe,4,0),o()),a&2){let t=c();s(),C(t.remoteControlState()==="inactive"?1:-1),s(),C(t.remoteControlState()==="registered"?2:-1),s(),C(t.remoteControlState()==="registering"?3:-1),s(),C(t.remoteControlState()==="registering"||t.remoteControlState()==="registeringfaulted"||t.remoteControlState()==="registered"?4:-1),s(),C(t.remoteControlState()==="connected"||t.remoteControlState()==="enabled"?5:-1),s(),C(t.remoteControlState()==="disabled"?6:-1)}}function he(a,e){if(a&1){let t=_();n(0,"option",33),m("click",function(){let l=u(t).$implicit,g=c();return d(g.pauseSettings.controls.timeType.setValue(l.value))}),r(1),o()}if(a&2){let t=e.$implicit;S("value",t.value),s(),b(" ",t.label," ")}}function be(a,e){if(a&1){let t=_();n(0,"option",33),m("click",function(){let l=u(t).$implicit,g=c();return d(g.pauseSettings.controls.time.setValue(l))}),r(1),o()}if(a&2){let t=e.$implicit;S("value",t),s(),E(t)}}function ve(a,e){if(a&1){let t=_();n(0,"option",33),m("click",function(){let l=u(t).$implicit,g=c();return d(g.settingsForm.controls.usageStatistics.setValue(l.value))}),r(1),o()}if(a&2){let t=e.$implicit;S("value",t.value),s(),b(" ",t.label," ")}}var f=new Z,pe=[{value:"s",label:"Seconds"},{value:"m",label:"Minutes"},{value:"h",label:"Hours"}],V=[{value:"en",label:"English"},{value:"fr",label:"French"},{value:"de",label:"German"},{value:"es",label:"Spanish"},{value:"it",label:"Italian"}],ce=[{value:"",label:"System default (information)"},{value:"information",label:"Usage statistics, warnings, errors, and crashes"},{value:"warning",label:"Warnings, errors and crashes"},{value:"error",label:"Errors and crashes"},{value:"crash",label:"Crashes only"},{value:"none",label:"None / disabled"}],P=class a{#i=y(le);#o=y($);#e=y(L);sysinfo=this.#o.systemInfo;isDarkMode=this.#i.isDarkMode;editAs=h("list");settingsForm=f.group({pauseSettings:f.group({time:f.control(0),timeType:f.control("s")}),language:f.control("en"),usageStatistics:f.control(""),updateChannel:f.control(""),remoteControlRegisterUrl:f.control("")});remoteControlState=h("unknown");remoteControlClaimUrl=h(null);sysInfoEffect=B(()=>{this.settingsForm.controls.remoteControlRegisterUrl.patchValue(this.sysinfo()?.RemoteControlRegistrationUrl??"")},{allowSignalWrites:!0});get pauseSettings(){return this.settingsForm.controls.pauseSettings}langSignal=se(this.settingsForm.controls.language.valueChanges);timeTypeOptions=h(pe);timeOptions=me([this.pauseSettings.controls.timeType.valueChanges.pipe(v("s")),this.pauseSettings.controls.time.valueChanges.pipe(v(null))],F(U(([e,t])=>{let i=this.#r(e);return t!==null?i.filter(l=>l.toString().includes(t.toString())):i}),v([])));languageOptions=G(()=>this.langSignal()?V.filter(e=>e.value===this.langSignal()):V);usageStatisticsOptions=h(ce);ngOnInit(){this.refreshRemoteControlStatus(),this.getServerSettings()}submit(){let e=`${this.pauseSettings.controls.time.value}${this.pauseSettings.controls.timeType.value}`;this.#e.patchApiV1Serversettings({requestBody:{"usage-reporter-level":this.settingsForm.controls.usageStatistics.value,"startup-delay":e==="0s"?"":e,"update-channel":this.settingsForm.controls.updateChannel.value}}).subscribe({next:t=>{console.log("res",t)},error:t=>{console.error("err",t)}})}getServerSettings(){return this.#e.getApiV1Serversettings().subscribe({next:e=>{let t=e["startup-delay"];this.settingsForm.patchValue({pauseSettings:{time:parseInt(t.substring(0,t.length-1)==""?"0":t.substring(0,t.length-1)),timeType:t.substring(-1)===""?"s":t.substring(-1)},usageStatistics:e["usage-reporter-level"],updateChannel:e["update-channel"]})}})}languageDisplay(e){return e?V.find(t=>t.value===e)?.label??null:null}typeDisplay(e){return e==null?null:pe.find(t=>t.value===e)?.label??null}usageDisplay(e){return typeof e!="string"?null:ce.find(t=>t.value===e)?.label??null}setDarkMode(){this.#i.setDarkMode()}setLightMode(){this.#i.setLightMode()}#r(e){let t=e==="h"?25:61;return new Array(t).fill(0).map((i,l)=>l)}repeatRegisterTimer=null;#t(e){e.RegistrationUrl&&this.remoteControlClaimUrl.set(e.RegistrationUrl),console.log(e),e.IsConnected?this.remoteControlState.set("connected"):e.IsEnabled?this.remoteControlState.set("enabled"):e.CanEnable?this.remoteControlState.set("disabled"):e.IsRegisteringFaulted?this.remoteControlState.set("registeringfaulted"):e.IsRegistering?e.RegistrationUrl!=null&&e.RegistrationUrl.trim().length>0?this.remoteControlState.set("registered"):this.remoteControlState.set("registering"):this.remoteControlState.set("inactive");let t=this.remoteControlState();console.log(t),this.repeatRegisterTimer!==null&&(clearTimeout(this.repeatRegisterTimer),this.repeatRegisterTimer=null),t==="registering"&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:""}}).subscribe({next:i=>{this.#t(i)},error:i=>{this.#n(i)}})},5e3)),(t==="enabled"||t==="registered")&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.getApiV1RemotecontrolStatus().subscribe({next:i=>{this.#t(i)},error:i=>{this.#n(i)}})},5e3)),e.IsRegistering&&e.CanEnable&&this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:i=>{this.#t(i)}})}#n(e){this.#e.getApiV1RemotecontrolStatus().subscribe({next:t=>{this.#t(t)}})}refreshRemoteControlStatus(){this.#e.getApiV1RemotecontrolStatus().subscribe({next:e=>{this.#t(e)},error:e=>{this.#n(e)}})}beginRemoteRegistration(){this.remoteControlState.set("registering");let e=this.settingsForm.controls.remoteControlRegisterUrl.value;this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:e}}).subscribe({next:t=>{this.#t(t)},error:t=>{this.#n(t)}})}cancelRemoteRegistration(){this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:e=>{this.#t(e)},error:e=>{this.#n(e)}})}enableRemoteControl(){this.#e.postApiV1RemotecontrolEnable().subscribe({next:e=>{this.#t(e)},error:e=>{this.#n(e)}})}disableRemoteControl(){this.#e.postApiV1RemotecontrolDisable().subscribe({next:e=>{this.#t(e)},error:e=>{this.#n(e)}})}deleteRemoteControl(){let e=this;confirm("Are you sure you want to delete the remote control registration?")&&e.#e.deleteApiV1RemotecontrolRegistration().subscribe({next:t=>{e.#t(t)},error:t=>{e.#n(t)}})}getRemoteControlStatusText(){let e=this.remoteControlState();return e==="enabled"?"Remote control is enabled but not connected":e==="connected"?"Remote control is connected":e==="registering"?"Registering machine...":e==="registeringfaulted"?"Registration failed":e==="registered"?"Registered, waiting for accept":e==="disabled"?"Remote control is configured but not enabled":e==="unknown"?"...loading...":"Remote control is not set up"}static \u0275fac=function(t){return new(t||a)};static \u0275cmp=I({type:a,selectors:[["app-settings"]],standalone:!0,features:[A],decls:100,vars:11,consts:[[1,"content",3,"submit","formGroup"],[1,"title"],["type","submit","spk-button","",1,"raised","primary"],[1,"left"],[1,"right","remote-control"],[1,"field-row"],[1,"right"],["formGroupName","pauseSettings",1,"field-row"],[3,"displayValue"],["type","text","formControlName","timeType"],["options",""],[3,"value"],["type","search","formControlName","time"],[1,"themes"],["src","assets/images/light-theme.png","alt","light theme",3,"click"],["src","assets/images/dark-theme.png","alt","dark theme",3,"click"],[1,"right","radios"],[1,"radio-option",3,"click"],[1,"outlined","primary"],["type","radio","name","updateChannel","value","","formControlName","updateChannel"],["type","radio","name","updateChannel","value","stable","formControlName","updateChannel"],["type","radio","name","updateChannel","value","beta","formControlName","updateChannel"],["type","radio","name","updateChannel","value","experimental","formControlName","updateChannel"],["type","radio","name","updateChannel","value","canary","formControlName","updateChannel"],["href","#"],["type","text","formControlName","usageStatistics"],[1,"field-col"],["type","button","spk-button","",1,"raised"],["label","Registration URL","for","remoteControlRegisterUrl"],["type","text","spk-input","","id","remoteControlRegisterUrl","name","remoteControlRegisterUrl","formControlName","remoteControlRegisterUrl"],["type","button","spk-button","",1,"raised",3,"click"],["target","_blank",3,"href"],["type","button","spk-button","",1,"raised","warn",3,"click"],[3,"click","value"]],template:function(t,i){if(t&1&&(p(0,"app-status-bar"),n(1,"form",0),m("submit",function(){return i.submit()}),n(2,"header")(3,"div",1)(4,"h2"),r(5,"Settings"),o(),n(6,"p"),r(7,"Configure your backup settings."),o()(),n(8,"button",2),r(9,"Save changes"),o()(),n(10,"section")(11,"div",3)(12,"h3"),r(13,"Remote access control"),o(),n(14,"p"),r(15),o()(),n(16,"div",4),O(17,Se,7,6,"div",5),o()(),n(18,"section")(19,"div",3)(20,"h3"),r(21,"Pause after startup or hibernation"),o(),n(22,"p"),r(23," Duplicati will run when started, but will remain in paused state for the duration. Duplicati will occupy minimal system resources and no backups will be run. "),o()(),n(24,"div",6)(25,"div",7)(26,"spk-select",8),p(27,"input",9),R(28,10),T(29,he,2,2,"option",11,x),w(),o(),n(31,"spk-select"),p(32,"input",12),R(33,10),T(34,be,2,2,"option",11,x),w(),o()()()(),n(36,"section")(37,"div",3)(38,"h3"),r(39,"Color theme"),o(),n(40,"p"),r(41,"Customize your application theme"),o()(),n(42,"div",6)(43,"div",13)(44,"img",14),m("click",function(){return i.setLightMode()}),o(),n(45,"img",15),m("click",function(){return i.setDarkMode()}),o()()()(),n(46,"section")(47,"div",3)(48,"h3"),r(49,"Update channel"),o(),n(50,"p"),r(51,"Update channel selection is not implemented yet."),o()(),n(52,"div",16)(53,"div",17),m("click",function(){return i.settingsForm.controls.updateChannel.setValue("")}),n(54,"spk-radio",18),r(55),p(56,"input",19),o(),n(57,"p"),r(58),o()(),n(59,"div",17),m("click",function(){return i.settingsForm.controls.updateChannel.setValue("stable")}),n(60,"spk-radio",18),r(61," Stable "),p(62,"input",20),o(),n(63,"p"),r(64,"Official releases"),o()(),n(65,"div",17),m("click",function(){return i.settingsForm.controls.updateChannel.setValue("beta")}),n(66,"spk-radio",18),r(67," Beta "),p(68,"input",21),o(),n(69,"p"),r(70," Try out the new features that we are working on. Currently the most stable version available. Test Restore data before using this in production environments. "),o()(),n(71,"div",17),m("click",function(){return i.settingsForm.controls.updateChannel.setValue("experimental")}),n(72,"spk-radio",18),r(73," Experimental "),p(74,"input",22),o(),n(75,"p"),r(76,"Specific builds for developers only. Not for use with important data."),o()(),n(77,"div",17),m("click",function(){return i.settingsForm.controls.updateChannel.setValue("canary")}),n(78,"spk-radio",18),r(79," Canary "),p(80,"input",23),o(),n(81,"p"),r(82,"Individual builds for developers only. Not for use with important data."),o()()()(),n(83,"section")(84,"div",3)(85,"h3"),r(86,"Usage statistics"),o(),n(87,"p"),r(88," Usage reports help us improve the user experience and evaluate impact of new features. We use them to generate "),n(89,"a",24),r(90,"public usage statistics."),o(),p(91,"br")(92,"br"),r(93," All usage reports are sent anonymously and do not contain any personal information. They contain information about hardware and operating system, the type of backend, backup duration, overall size of source data and similar data. They do not contain paths, filenames, usernames, passwords or similar sensitive information. "),o()(),n(94,"div",6)(95,"spk-select",8),p(96,"input",25),R(97,10),T(98,ve,2,2,"option",11,x),w(),o()()()()),t&2){let l,g;s(),S("formGroup",i.settingsForm),s(14),E(i.getRemoteControlStatusText()),s(2),C(i.remoteControlState()!=="unknown"?17:-1),s(9),S("displayValue",i.typeDisplay(i.settingsForm.value.pauseSettings==null?null:i.settingsForm.value.pauseSettings.timeType)),s(3),k(i.timeTypeOptions()),s(5),k(i.timeOptions()),s(10),M("active",!i.isDarkMode()),s(),M("active",i.isDarkMode()),s(10),b(" Default (",(l=i.sysinfo())==null?null:l.DefaultUpdateChannel,") "),s(3),b("Same as the base install version: ",(g=i.sysinfo())==null?null:g.ServerVersionType,""),s(37),S("displayValue",i.usageDisplay(i.settingsForm.controls.usageStatistics.value)),s(3),k(i.usageStatisticsOptions())}},dependencies:[ee,j,X,Y,W,H,q,z,te,J,Q,K,ae,ne,oe,ie,re],styles:["[_nghost-%COMP%]{display:block}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 2rem 2rem}header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem 0}header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}section[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem;padding:2rem 0;border-top:1px solid var(--base-level-40)}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;align-items:flex-start}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] spk-button-group[_ngcontent-%COMP%]{margin-top:.25rem}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;width:50%}.themes[_ngcontent-%COMP%]{display:flex;gap:.5rem}.themes[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:240px;border-radius:var(--shape-3);cursor:pointer}.themes[_ngcontent-%COMP%] img.active[_ngcontent-%COMP%]{border:2px solid var(--primary-500)}.radios[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.radio-option[_ngcontent-%COMP%]{cursor:pointer}.radio-option[_ngcontent-%COMP%] spk-radio[_ngcontent-%COMP%]{color:var(--base-level-60);margin-bottom:.25rem}.radio-option[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;color:var(--base-level-60R)}.field-col[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.field-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] spk-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] spk-select[_ngcontent-%COMP%]{flex:1 0}.remote-control[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}"],changeDetection:0})};export{P as default};
@@ -1 +1 @@
1
- import{e as c}from"./chunk-3ZII4VBA.js";import{b as l,d as m,e as p}from"./chunk-APGFOGYB.js";import"./chunk-XG5WW7WW.js";import{Eb as n,Nb as s,X as a,jb as e,kb as t,lb as u}from"./chunk-NUWA7AOR.js";import"./chunk-7CGTOI24.js";var i=class r{static \u0275fac=function(o){return new(o||r)};static \u0275cmp=a({type:r,selectors:[["app-about"]],standalone:!0,features:[s],decls:13,vars:0,consts:[[1,"nav"],["spk-button","","routerLink","/about/general","routerLinkActive","primary",1,"raised"],["spk-button","","routerLink","/about/changelog","routerLinkActive","primary",1,"raised"],["spk-button","","routerLink","/about/libraries","routerLinkActive","primary",1,"raised"],["spk-button","","routerLink","/about/system-info","routerLinkActive","primary",1,"raised"],["spk-button","","routerLink","/about/logs","routerLinkActive","primary",1,"raised"]],template:function(o,b){o&1&&(e(0,"div",0)(1,"button",1),n(2,"General"),t(),e(3,"button",2),n(4,"Changelog"),t(),e(5,"button",3),n(6,"Libraries"),t(),e(7,"button",4),n(8,"System info"),t(),e(9,"button",5),n(10,"Logs"),t()(),e(11,"section"),u(12,"router-outlet"),t())},dependencies:[c,l,m,p],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:0;padding:2.5rem}.nav[_ngcontent-%COMP%]{display:flex;gap:.5rem}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:2rem 0}"],changeDetection:0})};export{i as default};
1
+ import{g as c}from"./chunk-IEVRQDB6.js";import{b as l,d as m,e as p}from"./chunk-22ZYSOTR.js";import"./chunk-JNQHJPEL.js";import{Gb as n,Ob as s,Y as a,lb as e,mb as t,nb as u}from"./chunk-QHJTF3V4.js";import"./chunk-7CGTOI24.js";var i=class r{static \u0275fac=function(o){return new(o||r)};static \u0275cmp=a({type:r,selectors:[["app-about"]],standalone:!0,features:[s],decls:13,vars:0,consts:[[1,"nav"],["spk-button","","routerLink","/about/general","routerLinkActive","primary",1,"raised"],["spk-button","","routerLink","/about/changelog","routerLinkActive","primary",1,"raised"],["spk-button","","routerLink","/about/libraries","routerLinkActive","primary",1,"raised"],["spk-button","","routerLink","/about/system-info","routerLinkActive","primary",1,"raised"],["spk-button","","routerLink","/about/logs","routerLinkActive","primary",1,"raised"]],template:function(o,b){o&1&&(e(0,"div",0)(1,"button",1),n(2,"General"),t(),e(3,"button",2),n(4,"Changelog"),t(),e(5,"button",3),n(6,"Libraries"),t(),e(7,"button",4),n(8,"System info"),t(),e(9,"button",5),n(10,"Logs"),t()(),e(11,"section"),u(12,"router-outlet"),t())},dependencies:[c,l,m,p],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:0;padding:2.5rem}.nav[_ngcontent-%COMP%]{display:flex;gap:.5rem}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:2rem 0}"],changeDetection:0})};export{i as default};
@@ -1,2 +1,2 @@
1
- import{b as k}from"./chunk-ZHM55NRD.js";import{l as M}from"./chunk-3ZII4VBA.js";import{c as S}from"./chunk-XG5WW7WW.js";import{a as b}from"./chunk-5P5MCIGV.js";import{D as p,Eb as h,Ia as c,Ma as g,Nb as v,Sa as f,V as i,X as m,_a as d,ab as u,fb as C,jb as y,kb as o,lb as r,p as l}from"./chunk-NUWA7AOR.js";import"./chunk-7CGTOI24.js";function D(n,e){n&1&&r(0,"spk-progress-bar",0)}var a=class n{#e=i(S);#n=i(b);isLoading=f(!0);generalInfo=k(this.#n.getApiV1Acknowledgements().pipe(l(e=>e.Acknowledgements?this.#e.bypassSecurityTrustHtml(e.Acknowledgements.replace(/\r/g,`
2
- `)):""),p(()=>this.isLoading.set(!1))));static \u0275fac=function(t){return new(t||n)};static \u0275cmp=m({type:n,selectors:[["app-general"]],standalone:!0,features:[v],decls:5,vars:2,consts:[[1,"indeterminate","primary"],[3,"innerHTML"]],template:function(t,s){t&1&&(d(0,D,1,0,"spk-progress-bar",0),y(1,"section")(2,"h3"),h(3,"General"),o(),r(4,"div",1),o()),t&2&&(C(s.isLoading()?0:-1),g(4),u("innerHTML",s.generalInfo(),c))},dependencies:[M],styles:["[_nghost-%COMP%]{display:block;position:relative}h3[_ngcontent-%COMP%]{font:var(--title-30)}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}spk-progress-bar[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0}"],changeDetection:0})};export{a as default};
1
+ import{b as M}from"./chunk-N6REZCKW.js";import{n as k}from"./chunk-IEVRQDB6.js";import{c as S}from"./chunk-JNQHJPEL.js";import{a as b}from"./chunk-LZSE733H.js";import{E as p,Gb as h,Ka as c,Oa as g,Ob as v,Ua as f,W as i,Y as m,ab as d,cb as u,hb as C,lb as y,mb as o,nb as r,p as l}from"./chunk-QHJTF3V4.js";import"./chunk-7CGTOI24.js";function D(n,e){n&1&&r(0,"spk-progress-bar",0)}var a=class n{#e=i(S);#n=i(b);isLoading=f(!0);generalInfo=M(this.#n.getApiV1Acknowledgements().pipe(l(e=>e.Acknowledgements?this.#e.bypassSecurityTrustHtml(e.Acknowledgements.replace(/\r/g,`
2
+ `)):""),p(()=>this.isLoading.set(!1))));static \u0275fac=function(t){return new(t||n)};static \u0275cmp=m({type:n,selectors:[["app-general"]],standalone:!0,features:[v],decls:5,vars:2,consts:[[1,"indeterminate","primary"],[3,"innerHTML"]],template:function(t,s){t&1&&(d(0,D,1,0,"spk-progress-bar",0),y(1,"section")(2,"h3"),h(3,"General"),o(),r(4,"div",1),o()),t&2&&(C(s.isLoading()?0:-1),g(4),u("innerHTML",s.generalInfo(),c))},dependencies:[k],styles:["[_nghost-%COMP%]{display:block;position:relative}h3[_ngcontent-%COMP%]{font:var(--title-30)}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}spk-progress-bar[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0}"],changeDetection:0})};export{a as default};
@@ -0,0 +1 @@
1
+ import{a,b,c}from"./chunk-FRD2BVV6.js";import"./chunk-ZSOWH34L.js";import"./chunk-SFRGISK2.js";import"./chunk-DNHLTHLR.js";import"./chunk-N6REZCKW.js";import"./chunk-73UOOUBD.js";import"./chunk-IEVRQDB6.js";import"./chunk-22ZYSOTR.js";import"./chunk-JNQHJPEL.js";import"./chunk-LZSE733H.js";import"./chunk-QHJTF3V4.js";import"./chunk-7CGTOI24.js";export{a as createDestinationForm,b as createDestinationFormGroup,c as default};