@duplicati/ngclient 0.0.95 → 0.0.97

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 (94) hide show
  1. package/chunk-2SYN2ATG.js +1 -0
  2. package/{chunk-2HS3CYRN.js → chunk-3GK4TNUH.js} +1 -1
  3. package/chunk-3WEATDBM.js +1 -0
  4. package/chunk-3WKC2CFC.js +1 -0
  5. package/{chunk-3HJFVNAL.js → chunk-3YOT5OAB.js} +1 -1
  6. package/chunk-4ERW7ITN.js +1 -0
  7. package/{chunk-5RLVPRCW.js → chunk-4SOUVJR6.js} +1 -1
  8. package/{chunk-V5GVLIPJ.js → chunk-4XPN5ZGE.js} +1 -1
  9. package/{chunk-M5YHW43W.js → chunk-5COOM7FC.js} +1 -1
  10. package/{chunk-ORA656R6.js → chunk-5UL3RRQI.js} +1 -1
  11. package/{chunk-ZHWVTLKA.js → chunk-6LVGSIUU.js} +1 -1
  12. package/chunk-7CGTOI24.js +1 -0
  13. package/chunk-7EPQLKGD.js +1 -0
  14. package/chunk-7JZ5LA6R.js +1 -0
  15. package/{chunk-UDBZI5KJ.js → chunk-7NEOVOUN.js} +1 -1
  16. package/{chunk-WYXI4BXE.js → chunk-7XGYQRKR.js} +1 -1
  17. package/chunk-BYMCE7VW.js +1 -0
  18. package/chunk-C2PMOZWR.js +1 -0
  19. package/chunk-CHZ7TMI7.js +1 -0
  20. package/{chunk-LFPZBC5Y.js → chunk-CMXSHXAU.js} +1 -1
  21. package/{chunk-TBPNAHEA.js → chunk-CPOAOTIS.js} +1 -1
  22. package/{chunk-RCP6EKCC.js → chunk-CR2UB7UZ.js} +1 -1
  23. package/{chunk-SNZ7FE6B.js → chunk-FWWMGA32.js} +1 -1
  24. package/{chunk-THUAAYGA.js → chunk-G3YJXHRY.js} +1 -1
  25. package/{chunk-IR7OYLKR.js → chunk-GI6WORKU.js} +1 -1
  26. package/chunk-HE6PHO5B.js +1 -0
  27. package/{chunk-GEEPH37P.js → chunk-HGERKLOF.js} +1 -1
  28. package/{chunk-DUPZCVLU.js → chunk-HLLAB5VQ.js} +1 -1
  29. package/chunk-HYBV36HG.js +1 -0
  30. package/{chunk-VS2WUXLN.js → chunk-IAVOZTCR.js} +1 -1
  31. package/{chunk-OB2RR7QV.js → chunk-IHYIT4I3.js} +1 -1
  32. package/{chunk-TLNQL27Q.js → chunk-ILQK4A72.js} +1 -1
  33. package/{chunk-AVNZ3OXK.js → chunk-INK3KQF2.js} +1 -1
  34. package/{chunk-KLIPTMVG.js → chunk-L3T52MCL.js} +1 -1
  35. package/{chunk-4IJQ7AAQ.js → chunk-LHSJLKCF.js} +1 -1
  36. package/{chunk-2FWU7B4D.js → chunk-LO4MUZS2.js} +1 -1
  37. package/chunk-MJI6X5KH.js +1 -0
  38. package/{chunk-YKB6KLXM.js → chunk-MJUYFS7O.js} +1 -1
  39. package/chunk-N7UCCMLS.js +1 -0
  40. package/{chunk-DTR7JZFL.js → chunk-NL7QPU6R.js} +1 -1
  41. package/{chunk-N5K6ODRA.js → chunk-NV2YMSSM.js} +1 -1
  42. package/{chunk-ICOF6OY2.js → chunk-OL4IJVKD.js} +1 -1
  43. package/{chunk-CK5N2PPF.js → chunk-OS4AAJLB.js} +1 -1
  44. package/{chunk-DTPZU6NP.js → chunk-PTC4N7TU.js} +1 -1
  45. package/chunk-PUSUA4U7.js +1 -0
  46. package/chunk-Q3FF4WG3.js +1 -0
  47. package/{chunk-R6R4GFBX.js → chunk-Q6U2NFPI.js} +1 -1
  48. package/{chunk-S5JZJBJS.js → chunk-QPO2N2OR.js} +1 -1
  49. package/{chunk-WZG34QS3.js → chunk-QX5XWUM2.js} +1 -1
  50. package/{chunk-VFLEQIHL.js → chunk-RIGBDLYY.js} +1 -1
  51. package/{chunk-QXYKZKGV.js → chunk-S5VSZG5H.js} +1 -1
  52. package/{chunk-RHPHTHFC.js → chunk-UMUPSIIL.js} +1 -1
  53. package/chunk-USGQSK2Z.js +1 -0
  54. package/{chunk-WNQBKJ3M.js → chunk-V6OHLKTK.js} +1 -1
  55. package/chunk-VYKAGJXY.js +1 -0
  56. package/{chunk-RBRHRXAU.js → chunk-W5YK2JJZ.js} +1 -1
  57. package/{chunk-AIOUSVMR.js → chunk-WBNOGAKJ.js} +1 -1
  58. package/{chunk-KJ3CPTGU.js → chunk-WNWGY2FM.js} +1 -1
  59. package/{chunk-RDRLCN5M.js → chunk-XBZX6CUW.js} +1 -1
  60. package/{chunk-Q67EYU7V.js → chunk-XC6KYSRC.js} +1 -1
  61. package/{chunk-SSKK33BY.js → chunk-YIWL3QAP.js} +1 -1
  62. package/{chunk-FAZH6E7O.js → chunk-ZFE5M6M3.js} +1 -1
  63. package/{chunk-XL5J65PI.js → chunk-ZOUY24KQ.js} +1 -1
  64. package/{chunk-L4B5RE7R.js → chunk-ZRXUUC26.js} +1 -1
  65. package/chunk-ZTJALQGT.js +1 -0
  66. package/index.html +18 -2
  67. package/locale/dayjs/da.js +40 -1
  68. package/locale/dayjs/de.js +64 -1
  69. package/locale/dayjs/en-gb.js +42 -1
  70. package/locale/dayjs/en.js +12 -1
  71. package/locale/dayjs/fr.js +41 -1
  72. package/main-GMFQCDBZ.js +1 -0
  73. package/package.json +1 -1
  74. package/chunk-25IC7WV6.js +0 -1
  75. package/chunk-3TZIEZUP.js +0 -1
  76. package/chunk-3ZLHMSKS.js +0 -1
  77. package/chunk-APEDZMBI.js +0 -1
  78. package/chunk-C6Q5SG76.js +0 -1
  79. package/chunk-ECH6I3YN.js +0 -1
  80. package/chunk-ETPUKEDV.js +0 -1
  81. package/chunk-F4AVB6VB.js +0 -1
  82. package/chunk-HWVDZXYD.js +0 -1
  83. package/chunk-IYKSYF2U.js +0 -1
  84. package/chunk-LVHYWUFN.js +0 -1
  85. package/chunk-MLJFOQOI.js +0 -1
  86. package/chunk-NU46HB6T.js +0 -1
  87. package/chunk-P5GYPUJD.js +0 -1
  88. package/chunk-QUDKB5S3.js +0 -1
  89. package/chunk-SSXZ4GVY.js +0 -1
  90. package/chunk-TX5R4CFB.js +0 -1
  91. package/chunk-TYO44G6M.js +0 -1
  92. package/chunk-UQH5ZQG7.js +0 -1
  93. package/chunk-XQXYPXR7.js +0 -1
  94. package/main-ZZ5NOUMD.js +0 -1
@@ -1,4 +1,4 @@
1
- import{a as ee,b as te}from"./chunk-C6Q5SG76.js";function w(e){return typeof e=="function"}function Nt(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var rr=Nt(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:
1
+ import{a as ee,b as te}from"./chunk-7CGTOI24.js";function w(e){return typeof e=="function"}function Nt(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var rr=Nt(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:
2
2
  ${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
3
3
  `)}`:"",this.name="UnsubscriptionError",this.errors=n});function et(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var j=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(w(r))try{r()}catch(i){t=i instanceof rr?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{pc(i)}catch(s){t=t??[],s instanceof rr?t=[...t,...s.errors]:t.push(s)}}if(t)throw new rr(t)}}add(t){var n;if(t&&t!==this)if(this.closed)pc(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&et(n,t)}remove(t){let{_finalizers:n}=this;n&&et(n,t),t instanceof e&&t._removeParent(this)}};j.EMPTY=(()=>{let e=new j;return e.closed=!0,e})();var si=j.EMPTY;function or(e){return e instanceof j||e&&"closed"in e&&w(e.remove)&&w(e.add)&&w(e.unsubscribe)}function pc(e){w(e)?e():e.unsubscribe()}var fe={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var St={setTimeout(e,t,...n){let{delegate:r}=St;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=St;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function ir(e){St.setTimeout(()=>{let{onUnhandledError:t}=fe;if(t)t(e);else throw e})}function fn(){}var hc=ai("C",void 0,void 0);function gc(e){return ai("E",void 0,e)}function mc(e){return ai("N",e,void 0)}function ai(e,t,n){return{kind:e,value:t,error:n}}var tt=null;function kt(e){if(fe.useDeprecatedSynchronousErrorHandling){let t=!tt;if(t&&(tt={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=tt;if(tt=null,n)throw r}}else e()}function yc(e){fe.useDeprecatedSynchronousErrorHandling&&tt&&(tt.errorThrown=!0,tt.error=e)}var nt=class extends j{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,or(t)&&t.add(this)):this.destination=Wp}static create(t,n,r){return new xe(t,n,r)}next(t){this.isStopped?li(mc(t),this):this._next(t)}error(t){this.isStopped?li(gc(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?li(hc,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},Up=Function.prototype.bind;function ci(e,t){return Up.call(e,t)}var ui=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){sr(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){sr(r)}else sr(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){sr(n)}}},xe=class extends nt{constructor(t,n,r){super();let o;if(w(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&fe.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&ci(t.next,i),error:t.error&&ci(t.error,i),complete:t.complete&&ci(t.complete,i)}):o=t}this.destination=new ui(o)}};function sr(e){fe.useDeprecatedSynchronousErrorHandling?yc(e):ir(e)}function qp(e){throw e}function li(e,t){let{onStoppedNotification:n}=fe;n&&St.setTimeout(()=>n(e,t))}var Wp={closed:!0,next:fn,error:qp,complete:fn};var Rt=typeof Symbol=="function"&&Symbol.observable||"@@observable";function J(e){return e}function zp(...e){return di(e)}function di(e){return e.length===0?J:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var N=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=Qp(n)?n:new xe(n,r,o);return kt(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=vc(r),new r((o,i)=>{let s=new xe({next:a=>{try{n(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[Rt](){return this}pipe(...n){return di(n)(this)}toPromise(n){return n=vc(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function vc(e){var t;return(t=e??fe.Promise)!==null&&t!==void 0?t:Promise}function Gp(e){return e&&w(e.next)&&w(e.error)&&w(e.complete)}function Qp(e){return e&&e instanceof nt||Gp(e)&&or(e)}var Ic=Nt(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ce=(()=>{class e extends N{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new ar(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Ic}next(n){kt(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){kt(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){kt(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?si:(this.currentObservers=null,i.push(n),new j(()=>{this.currentObservers=null,et(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new N;return n.source=this,n}}return e.create=(t,n)=>new ar(t,n),e})(),ar=class extends ce{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:si}};function cr(e){return e&&w(e.schedule)}function Ec(e){return e[e.length-1]}function Ot(e){return w(Ec(e))?e.pop():void 0}function Fe(e){return cr(Ec(e))?e.pop():void 0}function Dc(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(u){try{l(r.next(u))}catch(d){s(d)}}function c(u){try{l(r.throw(u))}catch(d){s(d)}}function l(u){u.done?i(u.value):o(u.value).then(a,c)}l((r=r.apply(e,t||[])).next())})}function wc(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function rt(e){return this instanceof rt?(this.v=e,this):new rt(e)}function bc(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(h){return Promise.resolve(h).then(f,d)}}function a(f,h){r[f]&&(o[f]=function(g){return new Promise(function(I,m){i.push([f,g,I,m])>1||c(f,g)})},h&&(o[f]=h(o[f])))}function c(f,h){try{l(r[f](h))}catch(g){p(i[0][3],g)}}function l(f){f.value instanceof rt?Promise.resolve(f.value.v).then(u,d):p(i[0][2],f)}function u(f){c("next",f)}function d(f){c("throw",f)}function p(f,h){f(h),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Mc(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof wc=="function"?wc(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(l){i({value:l,done:a})},s)}}var lr=e=>e&&typeof e.length=="number"&&typeof e!="function";function ur(e){return w(e?.then)}function dr(e){return w(e[Rt])}function fr(e){return Symbol.asyncIterator&&w(e?.[Symbol.asyncIterator])}function pr(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Zp(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var hr=Zp();function gr(e){return w(e?.[hr])}function mr(e){return bc(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield rt(n.read());if(o)return yield rt(void 0);yield yield rt(r)}}finally{n.releaseLock()}})}function yr(e){return w(e?.getReader)}function P(e){if(e instanceof N)return e;if(e!=null){if(dr(e))return Yp(e);if(lr(e))return Jp(e);if(ur(e))return Kp(e);if(fr(e))return Cc(e);if(gr(e))return Xp(e);if(yr(e))return eh(e)}throw pr(e)}function Yp(e){return new N(t=>{let n=e[Rt]();if(w(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Jp(e){return new N(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function Kp(e){return new N(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,ir)})}function Xp(e){return new N(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Cc(e){return new N(t=>{th(e,t).catch(n=>t.error(n))})}function eh(e){return Cc(mr(e))}function th(e,t){var n,r,o,i;return Dc(this,void 0,void 0,function*(){try{for(n=Mc(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function ne(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function fi(e){return w(e?.lift)}function x(e){return t=>{if(fi(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function D(e,t,n,r,o){return new pi(e,t,n,r,o)}var pi=class extends nt{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function vr(e,t=0){return x((n,r)=>{n.subscribe(D(r,o=>ne(r,e,()=>r.next(o),t),()=>ne(r,e,()=>r.complete(),t),o=>ne(r,e,()=>r.error(o),t)))})}function Ir(e,t=0){return x((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function xc(e,t){return P(e).pipe(Ir(t),vr(t))}function _c(e,t){return P(e).pipe(Ir(t),vr(t))}function Tc(e,t){return new N(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Nc(e,t){return new N(n=>{let r;return ne(n,t,()=>{r=e[hr](),ne(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>w(r?.return)&&r.return()})}function Er(e,t){if(!e)throw new Error("Iterable cannot be null");return new N(n=>{ne(n,t,()=>{let r=e[Symbol.asyncIterator]();ne(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Sc(e,t){return Er(mr(e),t)}function kc(e,t){if(e!=null){if(dr(e))return xc(e,t);if(lr(e))return Tc(e,t);if(ur(e))return _c(e,t);if(fr(e))return Er(e,t);if(gr(e))return Nc(e,t);if(yr(e))return Sc(e,t)}throw pr(e)}function Ve(e,t){return t?kc(e,t):P(e)}function nh(...e){let t=Fe(e);return Ve(e,t)}function je(e,t){return x((n,r)=>{let o=0;n.subscribe(D(r,i=>{r.next(e.call(t,i,o++))}))})}function hi(e){return x((t,n)=>{let r=null,o=!1,i;r=t.subscribe(D(n,void 0,void 0,s=>{i=P(e(s,hi(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}var wr=class extends j{constructor(t,n){super()}schedule(t,n=0){return this}};var pn={setInterval(e,t,...n){let{delegate:r}=pn;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=pn;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var Dr=class extends wr{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=!1}schedule(t,n=0){var r;if(this.closed)return this;this.state=t;let o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=!0,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(i,this.id,n),this}requestAsyncId(t,n,r=0){return pn.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(r!=null&&this.delay===r&&this.pending===!1)return n;n!=null&&pn.clearInterval(n)}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let r=this._execute(t,n);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,n){let r=!1,o;try{this.work(t)}catch(i){r=!0,o=i||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,et(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var hn={now(){return(hn.delegate||Date).now()},delegate:void 0};var At=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};At.now=hn.now;var br=class extends At{constructor(t,n=At.now){super(t,n),this.actions=[],this._active=!1}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=!0;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var gi=new br(Dr),Rc=gi;function rh(e,t=gi){return x((n,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let l=i;i=null,r.next(l)}};function c(){let l=s+e,u=t.now();if(u<l){o=this.schedule(void 0,l-u),r.add(o);return}a()}n.subscribe(D(r,l=>{i=l,s=t.now(),o||(o=t.schedule(c,e),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}var ot=new N(e=>e.complete());function Mr(e){return e<=0?()=>ot:x((t,n)=>{let r=0;t.subscribe(D(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function Oc(e){return x((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Ac(e,t){return x((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(D(r,c=>{o?.unsubscribe();let l=0,u=i++;P(e(c,u)).subscribe(o=D(r,d=>r.next(t?t(c,d,u,l++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Pc(e){return x((t,n)=>{P(e).subscribe(D(n,()=>n.complete(),fn)),!n.closed&&t.subscribe(n)})}function mi(){return x((e,t)=>{let n=null;e._refCount++;let r=D(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var yi=class extends N{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,fi(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new j;let n=this.getSubject();t.add(this.source.subscribe(D(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=j.EMPTY)}return t}refCount(){return mi()(this)}};var gn=class extends ce{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var mn=class extends ce{constructor(t=1/0,n=1/0,r=hn){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!t.closed;s+=r?1:2)t.next(i[s]);return this._checkFinalizedStatuses(t),n}_trimBuffer(){let{_bufferSize:t,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*t;if(t<1/0&&i<r.length&&r.splice(0,r.length-i),!o){let s=n.now(),a=0;for(let c=1;c<r.length&&r[c]<=s;c+=2)a=c;a&&r.splice(0,a+1)}}};function oh(e,t){let n=w(e)?e:()=>e,r=o=>o.error(n());return new N(t?o=>t.schedule(r,0,o):r)}function ih(e){return!!e&&(e instanceof N||w(e.lift)&&w(e.subscribe))}var it=Nt(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Lc(e){return e instanceof Date&&!isNaN(e)}var{isArray:sh}=Array;function ah(e,t){return sh(t)?e(...t):e(t)}function Cr(e){return je(t=>ah(e,t))}var{isArray:ch}=Array,{getPrototypeOf:lh,prototype:uh,keys:dh}=Object;function xr(e){if(e.length===1){let t=e[0];if(ch(t))return{args:t,keys:null};if(fh(t)){let n=dh(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function fh(e){return e&&typeof e=="object"&&lh(e)===uh}function _r(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function ph(...e){let t=Fe(e),n=Ot(e),{args:r,keys:o}=xr(e);if(r.length===0)return Ve([],t);let i=new N(hh(r,t,o?s=>_r(o,s):J));return n?i.pipe(Cr(n)):i}function hh(e,t,n=J){return r=>{Fc(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)Fc(t,()=>{let l=Ve(e[c],t),u=!1;l.subscribe(D(r,d=>{i[c]=d,u||(u=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function Fc(e,t,n){e?ne(n,e,t):t()}function Vc(e,t,n,r,o,i,s,a){let c=[],l=0,u=0,d=!1,p=()=>{d&&!c.length&&!l&&t.complete()},f=g=>l<r?h(g):c.push(g),h=g=>{i&&t.next(g),l++;let I=!1;P(n(g,u++)).subscribe(D(t,m=>{o?.(m),i?f(m):t.next(m)},()=>{I=!0},void 0,()=>{if(I)try{for(l--;c.length&&l<r;){let m=c.shift();s?ne(t,s,()=>h(m)):h(m)}p()}catch(m){t.error(m)}}))};return e.subscribe(D(t,f,()=>{d=!0,p()})),()=>{a?.()}}function st(e,t,n=1/0){return w(t)?st((r,o)=>je((i,s)=>t(r,i,o,s))(P(e(r,o))),n):(typeof t=="number"&&(n=t),x((r,o)=>Vc(r,o,e,n)))}function vi(e=1/0){return st(J,e)}function jc(){return vi(1)}function Tr(...e){return jc()(Ve(e,Fe(e)))}function gh(e){return new N(t=>{P(e()).subscribe(t)})}function mh(...e){let t=Ot(e),{args:n,keys:r}=xr(e),o=new N(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,l=s;for(let u=0;u<s;u++){let d=!1;P(n[u]).subscribe(D(i,p=>{d||(d=!0,l--),a[u]=p},()=>c--,void 0,()=>{(!c||!d)&&(l||i.next(r?_r(r,a):a),i.complete())}))}});return t?o.pipe(Cr(t)):o}function Hc(e=0,t,n=Rc){let r=-1;return t!=null&&(cr(t)?n=t:r=t),new N(o=>{let i=Lc(e)?+e-n.now():e;i<0&&(i=0);let s=0;return n.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete())},i)})}var{isArray:yh}=Array;function $c(e){return e.length===1&&yh(e[0])?e[0]:e}function yn(e,t){return x((n,r)=>{let o=0;n.subscribe(D(r,i=>e.call(t,i,o++)&&r.next(i)))})}function vh(...e){let t=Ot(e),n=$c(e);return n.length?new N(r=>{let o=n.map(()=>[]),i=n.map(()=>!1);r.add(()=>{o=i=null});for(let s=0;!r.closed&&s<n.length;s++)P(n[s]).subscribe(D(r,a=>{if(o[s].push(a),o.every(c=>c.length)){let c=o.map(l=>l.shift());r.next(t?t(...c):c),o.some((l,u)=>!l.length&&i[u])&&r.complete()}},()=>{i[s]=!0,!o[s].length&&r.complete()}));return()=>{o=i=null}}):ot}function Bc(e,t,n,r,o){return(i,s)=>{let a=n,c=t,l=0;i.subscribe(D(s,u=>{let d=l++;c=a?e(c,u,d):(a=!0,u),r&&s.next(c)},o&&(()=>{a&&s.next(c),s.complete()})))}}function Ih(e,t){return w(t)?st(e,t,1):st(e,1)}function vn(e){return x((t,n)=>{let r=!1;t.subscribe(D(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function Nr(e=Eh){return x((t,n)=>{let r=!1;t.subscribe(D(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function Eh(){return new it}function wh(e,t){let n=arguments.length>=2;return r=>r.pipe(e?yn((o,i)=>e(o,i,r)):J,Mr(1),n?vn(t):Nr(()=>new it))}function Ii(e){return e<=0?()=>ot:x((t,n)=>{let r=[];t.subscribe(D(n,o=>{r.push(o),e<r.length&&r.shift()},()=>{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function Dh(e,t){let n=arguments.length>=2;return r=>r.pipe(e?yn((o,i)=>e(o,i,r)):J,Ii(1),n?vn(t):Nr(()=>new it))}function bh(e=1/0){let t;e&&typeof e=="object"?t=e:t={count:e};let{count:n=1/0,delay:r,resetOnSuccess:o=!1}=t;return n<=0?J:x((i,s)=>{let a=0,c,l=()=>{let u=!1;c=i.subscribe(D(s,d=>{o&&(a=0),s.next(d)},void 0,d=>{if(a++<n){let p=()=>{c?(c.unsubscribe(),c=null,l()):u=!0};if(r!=null){let f=typeof r=="number"?Hc(r):P(r(d,a)),h=D(s,()=>{h.unsubscribe(),p()},()=>{s.complete()});f.subscribe(h)}else p()}else s.error(d)})),u&&(c.unsubscribe(),c=null,l())};l()})}function Mh(e,t){return x(Bc(e,t,arguments.length>=2,!0))}function Uc(e={}){let{connector:t=()=>new ce,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,c,l=0,u=!1,d=!1,p=()=>{a?.unsubscribe(),a=void 0},f=()=>{p(),s=c=void 0,u=d=!1},h=()=>{let g=s;f(),g?.unsubscribe()};return x((g,I)=>{l++,!d&&!u&&p();let m=c=c??t();I.add(()=>{l--,l===0&&!d&&!u&&(a=Ei(h,o))}),m.subscribe(I),!s&&l>0&&(s=new xe({next:S=>m.next(S),error:S=>{d=!0,p(),a=Ei(f,n,S),m.error(S)},complete:()=>{u=!0,p(),a=Ei(f,r),m.complete()}}),P(g).subscribe(s))})(i)}}function Ei(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new xe({next:()=>{r.unsubscribe(),e()}});return P(t(...n)).subscribe(r)}function Ch(e,t,n){let r,o=!1;return e&&typeof e=="object"?{bufferSize:r=1/0,windowTime:t=1/0,refCount:o=!1,scheduler:n}=e:r=e??1/0,Uc({connector:()=>new mn(r,t,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function xh(...e){let t=Fe(e);return x((n,r)=>{(t?Tr(e,n,t):Tr(e,n)).subscribe(r)})}function qc(e,t,n){let r=w(e)||t||n?{next:e,error:t,complete:n}:e;return r?x((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(D(i,c=>{var l;(l=r.next)===null||l===void 0||l.call(r,c),i.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete()},c=>{var l;a=!1,(l=r.error)===null||l===void 0||l.call(r,c),i.error(c)},()=>{var c,l;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(l=r.finalize)===null||l===void 0||l.call(r)}))}):J}function Di(e,t){return Object.is(e,t)}var $=null,In=!1,bi=1,B=Symbol("SIGNAL");function b(e){let t=$;return $=e,t}function Wc(){return $}function _h(){return In}var $e={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Lt(e){if(In)throw new Error("");if($===null)return;$.consumerOnSignalRead(e);let t=$.nextProducerIndex++;if(Rr($),t<$.producerNode.length&&$.producerNode[t]!==e&&En($)){let n=$.producerNode[t];kr(n,$.producerIndexOfThis[t])}$.producerNode[t]!==e&&($.producerNode[t]=e,$.producerIndexOfThis[t]=En($)?Zc(e,$,t):0),$.producerLastReadVersion[t]=e.version}function Th(){bi++}function wn(e){if(!(En(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===bi)){if(!e.producerMustRecompute(e)&&!Dn(e)){Sr(e);return}e.producerRecomputeValue(e),Sr(e)}}function zc(e){if(e.liveConsumerNode===void 0)return;let t=In;In=!0;try{for(let n of e.liveConsumerNode)n.dirty||Qc(n)}finally{In=t}}function Gc(){return $?.consumerAllowSignalWrites!==!1}function Qc(e){e.dirty=!0,zc(e),e.consumerMarkedDirty?.(e)}function Sr(e){e.dirty=!1,e.lastCleanEpoch=bi}function ct(e){return e&&(e.nextProducerIndex=0),b(e)}function Ft(e,t){if(b(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(En(e))for(let n=e.nextProducerIndex;n<e.producerNode.length;n++)kr(e.producerNode[n],e.producerIndexOfThis[n]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Dn(e){Rr(e);for(let t=0;t<e.producerNode.length;t++){let n=e.producerNode[t],r=e.producerLastReadVersion[t];if(r!==n.version||(wn(n),r!==n.version))return!0}return!1}function Vt(e){if(Rr(e),En(e))for(let t=0;t<e.producerNode.length;t++)kr(e.producerNode[t],e.producerIndexOfThis[t]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function Zc(e,t,n){if(Yc(e),e.liveConsumerNode.length===0&&Jc(e))for(let r=0;r<e.producerNode.length;r++)e.producerIndexOfThis[r]=Zc(e.producerNode[r],e,r);return e.liveConsumerIndexOfThis.push(n),e.liveConsumerNode.push(t)-1}function kr(e,t){if(Yc(e),e.liveConsumerNode.length===1&&Jc(e))for(let r=0;r<e.producerNode.length;r++)kr(e.producerNode[r],e.producerIndexOfThis[r]);let n=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[n],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[n],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){let r=e.liveConsumerIndexOfThis[t],o=e.liveConsumerNode[t];Rr(o),o.producerIndexOfThis[r]=t}}function En(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function Rr(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Yc(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Jc(e){return e.producerNode!==void 0}function Mi(e){let t=Object.create(Nh);t.computation=e;let n=()=>{if(wn(t),Lt(t),t.value===He)throw t.error;return t.value};return n[B]=t,n}var at=Symbol("UNSET"),Pt=Symbol("COMPUTING"),He=Symbol("ERRORED"),Nh=te(ee({},$e),{value:at,dirty:!0,error:null,equal:Di,kind:"computed",producerMustRecompute(e){return e.value===at||e.value===Pt},producerRecomputeValue(e){if(e.value===Pt)throw new Error("Detected cycle in computations.");let t=e.value;e.value=Pt;let n=ct(e),r,o=!1;try{r=e.computation(),b(null),o=t!==at&&t!==He&&r!==He&&e.equal(t,r)}catch(i){r=He,e.error=i}finally{Ft(e,n)}if(o){e.value=t;return}e.value=r,e.version++}});function Sh(){throw new Error}var Kc=Sh;function Xc(e){Kc(e)}function el(e){Kc=e}var kh=null;function tl(e){let t=Object.create(xi);t.value=e;let n=()=>(Lt(t),t.value);return n[B]=t,n}function jt(e,t){Gc()||Xc(e),e.equal(e.value,t)||(e.value=t,Rh(e))}function Ci(e,t){Gc()||Xc(e),jt(e,t(e.value))}var xi=te(ee({},$e),{equal:Di,value:void 0,kind:"signal"});function Rh(e){e.version++,Th(),zc(e),kh?.()}function _i(e,t,n){let r=Object.create(Oh);r.source=e,r.computation=t,n!=null&&(r.equal=n);let i=()=>{if(wn(r),Lt(r),r.value===He)throw r.error;return r.value};return i[B]=r,i}function nl(e,t){wn(e),jt(e,t),Sr(e)}function rl(e,t){wn(e),Ci(e,t),Sr(e)}var Oh=te(ee({},$e),{value:at,dirty:!0,error:null,equal:Di,producerMustRecompute(e){return e.value===at||e.value===Pt},producerRecomputeValue(e){if(e.value===Pt)throw new Error("Detected cycle in computations.");let t=e.value;e.value=Pt;let n=ct(e),r;try{let o=e.source(),i=t===at||t===He?void 0:{source:e.sourceValue,value:t};r=e.computation(o,i),e.sourceValue=o}catch(o){r=He,e.error=o}finally{Ft(e,n)}if(t!==at&&r!==He&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++}});function ol(e,t,n){let r=Object.create(Ah);n&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=t;let o=c=>{r.cleanupFn=c};function i(c){return c.fn===null&&c.schedule===null}function s(c){i(c)||(Vt(c),c.cleanupFn(),c.fn=null,c.schedule=null,c.cleanupFn=wi)}let a=()=>{if(r.fn===null)return;if(_h())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(r.dirty=!1,r.hasRun&&!Dn(r))return;r.hasRun=!0;let c=ct(r);try{r.cleanupFn(),r.cleanupFn=wi,r.fn(o)}finally{Ft(r,c)}};return r.ref={notify:()=>Qc(r),run:a,cleanup:()=>r.cleanupFn(),destroy:()=>s(r),[B]:r},r.ref}var wi=()=>{},Ah=te(ee({},$e),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule!==null&&e.schedule(e.ref)},hasRun:!1,cleanupFn:wi});var Ti;function il(){return Ti}function sl(e){let t=Ti;return Ti=e,t}var hu="https://g.co/ng/security#xss",M=class extends Error{code;constructor(t,n){super(Lh(t,n)),this.code=t}};function Lh(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}var So=Symbol("InputSignalNode#UNSET"),gu=te(ee({},xi),{transformFn:void 0,applyValueToInputSignal(e,t){jt(e,t)}});function mu(e,t){let n=Object.create(gu);n.value=e,n.transformFn=t?.transform;function r(){if(Lt(n),n.value===So)throw new M(-950,!1);return n.value}return r[B]=n,r}function Gn(e){return{toString:e}.toString()}var Or="__parameters__";function Fh(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function yu(e,t,n){return Gn(()=>{let r=Fh(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(c,l,u){let d=c.hasOwnProperty(Or)?c[Or]:Object.defineProperty(c,Or,{value:[]})[Or];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),c}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}var Ue=globalThis;function L(e){for(let t in e)if(e[t]===L)return t;throw Error("Could not find renamed property on target object.")}function Vh(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function ie(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(ie).join(", ")}]`;if(e==null)return""+e;let t=e.overriddenName||e.name;if(t)return`${t}`;let n=e.toString();if(n==null)return""+n;let r=n.indexOf(`
4
4
  `);return r>=0?n.slice(0,r):n}function zi(e,t){return e?t?`${e} ${t}`:e:t||""}var jh=L({__forward_ref__:L});function vu(e){return e.__forward_ref__=vu,e.toString=function(){return ie(this())},e}function K(e){return Iu(e)?e():e}function Iu(e){return typeof e=="function"&&e.hasOwnProperty(jh)&&e.__forward_ref__===vu}function Hh(e,t,n){e!=t&&$h(n,e,t,"==")}function $h(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(r==null?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}function W(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function vN(e){return{providers:e.providers||[],imports:e.imports||[]}}function ko(e){return al(e,Eu)||al(e,wu)}function IN(e){return ko(e)!==null}function al(e,t){return e.hasOwnProperty(t)?e[t]:null}function Bh(e){let t=e&&(e[Eu]||e[wu]);return t||null}function cl(e){return e&&(e.hasOwnProperty(ll)||e.hasOwnProperty(Uh))?e[ll]:null}var Eu=L({\u0275prov:L}),ll=L({\u0275inj:L}),wu=L({ngInjectableDef:L}),Uh=L({ngInjectorDef:L}),R=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=W({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Du(e){return e&&!!e.\u0275providers}var qh=L({\u0275cmp:L}),Wh=L({\u0275dir:L}),zh=L({\u0275pipe:L}),Gh=L({\u0275mod:L}),Yr=L({\u0275fac:L}),xn=L({__NG_ELEMENT_ID__:L}),ul=L({__NG_ENV_ID__:L});function he(e){return typeof e=="string"?e:e==null?"":String(e)}function Qh(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():he(e)}function bu(e,t){throw new M(-200,e)}function fa(e,t){throw new M(-201,!1)}var T=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(T||{}),Gi;function Mu(){return Gi}function re(e){let t=Gi;return Gi=e,t}function Cu(e,t,n){let r=ko(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&T.Optional)return null;if(t!==void 0)return t;fa(e,"Injector")}var Zh={},kn=Zh;function Vr(){return il()}function Be(e){return sl(e)}var Qi="__NG_DI_FLAG__",Jr="ngTempTokenPath",Yh="ngTokenPath",Jh=/\n/gm,Kh="\u0275",dl="__source";function Xh(e,t=T.Default){if(Vr()===void 0)throw new M(-203,!1);return Vr()===null?Cu(e,void 0,t):Vr().get(e,t&T.Optional?null:void 0,t)}function Ge(e,t=T.Default){return(Mu()||Xh)(K(e),t)}function _(e,t=T.Default){return Ge(e,Ro(t))}function Ro(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Zi(e){let t=[];for(let n=0;n<e.length;n++){let r=K(e[n]);if(Array.isArray(r)){if(r.length===0)throw new M(900,!1);let o,i=T.Default;for(let s=0;s<r.length;s++){let a=r[s],c=eg(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}t.push(Ge(o,i))}else t.push(Ge(r))}return t}function xu(e,t){return e[Qi]=t,e.prototype[Qi]=t,e}function eg(e){return e[Qi]}function tg(e,t,n,r){let o=e[Jr];throw t[dl]&&o.unshift(t[dl]),e.message=ng(`
@@ -0,0 +1 @@
1
+ import{ia as Fe}from"./chunk-3GK4TNUH.js";import{Ab as l,Bb as c,Cb as j,Ec as Ve,Fb as ee,Gb as B,Lc as I,Mc as R,Oc as Se,Qa as g,R as se,Sa as pe,Sb as b,Tb as f,Ub as w,Vb as h,X as H,Xa as z,Ya as Ee,Za as Te,_a as F,a as Oe,aa as be,bc as fe,ca as k,cc as $,da as y,db as x,dc as Q,ec as Re,fb as Me,fc as S,ha as re,hc as G,ia as ae,ib as O,ic as ie,kc as me,lc as ge,mc as ve,na as le,nb as Ie,nc as _e,oa as Y,oc as K,pa as m,pc as W,qa as A,ra as ce,rb as X,rc as Ce,sa as C,sb as U,sc as ne,tb as V,ub as J,vb as te,wb as T,xb as de,yb as ue,zb as he}from"./chunk-PTC4N7TU.js";import{a as N,b as Z,c as we}from"./chunk-7CGTOI24.js";var L=["*"],qe=[[["","icon",""]],[["","title",""]],"*",[["","content",""]]],ze=["[icon]","[title]","*","[content]"];function Ue(n,d){n&1&&(l(0,"spk-icon",3),S(1,"info"),c())}function $e(n,d){n&1&&(l(0,"spk-icon",3),S(1,"info"),c())}function Qe(n,d){n&1&&(l(0,"spk-icon",3),S(1,"warning"),c())}function Ne(n,d){n&1&&(l(0,"spk-icon",3),S(1,"warning-octagon"),c())}function Ye(n,d){n&1&&(l(0,"spk-icon",3),S(1,"check-circle"),c())}function Xe(n,d){n&1&&(l(0,"spk-icon",3),S(1,"question"),c())}function Ge(n,d){if(n&1){let t=B();l(0,"spk-icon",7),b("click",function(){k(t);let i=f();return y(i.removeAlert())}),S(1,"plus"),c()}}var Ke=["dialogRef"];function Je(n,d){if(n&1){let t=B();l(0,"div",4),b("click",function(){k(t);let i=f();return y(i.isOpen.set(!1))}),c()}}var Ze=["spk-button",""];var Pe=["triggerRef"],et=["popoverRef"],tt=[[["","trigger",""]],"*"],it=["[trigger]","*"];var nt=()=>({closeOnButton:!1,closeOnEsc:!0});var ot=[[["label"]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["textarea"]],[["","textSuffix",""]],[["","suffix",""]],[["","error",""]],[["","hint",""]]],st=["label","[prefix]","[textPrefix]","input","textarea","[textSuffix]","[suffix]","[error]","[hint]"];var rt=["option"],at=["input"],lt=["*",[["","menu",""]]],ct=["*","[menu]"],pt=[[["label"]],"*"],dt=["label","*"],ut=["optionsWrap"],ht=[[["label"]],[["input"]],[["textarea"]]],ft=["label","input","textarea"],mt=()=>({closeOnButton:!1,closeOnEsc:!1}),ye=n=>({$implicit:n});function gt(n,d){if(n&1&&S(0),n&2){let t=f();G(" ",t.inputValue()," ")}}function vt(n,d){n&1&&ee(0)}function _t(n,d){if(n&1&&O(0,vt,1,0,"ng-container",13),n&2){let t=f(3).$implicit;f(2);let e=W(6);X("ngTemplateOutlet",e)("ngTemplateOutletContext",ne(2,ye,t))}}function Ct(n,d){if(n&1&&S(0),n&2){let t=f(3).$implicit,e=f(2);G(" ",e.getLabel(t)," ")}}function St(n,d){if(n&1){let t=B();l(0,"spk-chip",11),O(1,_t,1,4,"ng-container")(2,Ct,1,1),l(3,"spk-icon",12),b("click",function(i){k(t);let o=f(2).$index,s=f(2);return y(s.removeSelectedOptionByIndex(i,o))}),S(4,"x-bold"),c()()}if(n&2){let t=f(4),e=W(6);te(t.selectClasses()),g(),T(e?1:2)}}function kt(n,d){n&1&&ee(0)}function yt(n,d){if(n&1&&O(0,kt,1,0,"ng-container",13),n&2){let t=f(4).$implicit;f(2);let e=W(6);X("ngTemplateOutlet",e)("ngTemplateOutletContext",ne(2,ye,t))}}function Dt(n,d){if(n&1&&S(0),n&2){let t=f(4).$implicit,e=f(2);G(" ",e.getLabel(t)," ")}}function xt(n,d){if(n&1&&O(0,yt,1,4,"ng-container")(1,Dt,1,1),n&2){f(5);let t=W(6);T(t?0:1)}}function wt(n,d){if(n&1&&O(0,xt,2,1),n&2){f(4);let t=W(9);T(t?-1:0)}}function Ot(n,d){if(n&1&&O(0,St,5,3,"spk-chip",10)(1,wt,1,1),n&2){f(3);let t=W(8);T(t?0:1)}}function bt(n,d){if(n&1&&O(0,Ot,2,1),n&2){let t=d.$implicit;T(t?0:-1)}}function Et(n,d){if(n&1&&ue(0,bt,1,1,null,null,de),n&2){f();let t=W(4);he(t)}}function Tt(n,d){n&1&&ee(0)}function Mt(n,d){if(n&1&&O(0,Tt,1,0,"ng-container",14),n&2){f(2);let t=W(0);X("ngTemplateOutlet",t)}}function It(n,d){if(n&1&&S(0),n&2){let t,e=f(2);G(" ",(t=e.placeholderText())!==null&&t!==void 0?t:""," ")}}function Rt(n,d){if(n&1&&O(0,Mt,1,1,"ng-container")(1,It,1,1),n&2){f();let t=W(0);T(t?0:1)}}function Vt(n,d){n&1&&(l(0,"spk-icon",6),S(1,"caret-down"),c())}function Ft(n,d){n&1&&j(0,"spk-spinner",7)}function Pt(n,d){n&1&&(l(0,"spk-icon",6),S(1,"list-magnifying-glass"),c())}function At(n,d){n&1&&(l(0,"spk-icon",6),S(1,"magnifying-glass"),c())}function Lt(n,d){if(n&1){let t=B();l(0,"spk-icon",15),b("click",function(i){k(t);let o=f();return y(o.clear(i))}),S(1,"x-bold"),c()}}function Ht(n,d){n&1&&(l(0,"spk-icon",6),S(1,"caret-down"),c())}function jt(n,d){n&1&&(l(0,"spk-icon",6),S(1,"caret-up"),c())}function Bt(n,d){if(n&1&&j(0,"spk-checkbox"),n&2){let t=f().$index,e=f();te(e.selectClasses()),V("active",e.isSelected(t))}}function Wt(n,d){n&1&&ee(0)}function qt(n,d){if(n&1&&O(0,Wt,1,0,"ng-container",13),n&2){let t=f().$implicit;f();let e=W(7);X("ngTemplateOutlet",e)("ngTemplateOutletContext",ne(2,ye,t))}}function zt(n,d){if(n&1&&S(0),n&2){let t=f().$implicit,e=f();G(" ",e.getLabel(t)," ")}}function Ut(n,d){if(n&1){let t=B();l(0,"li",16),b("click",function(){let i=k(t).$index,o=f();return y(o.toggleOptionByIndex(i))}),O(1,Bt,1,4,"spk-checkbox",17)(2,qt,1,4,"ng-container")(3,zt,1,1),c()}if(n&2){let t=d.$index,e=f(),i=W(7);V("selected",e.isSelected(t))("focused",t===e.focusedOptionIndex()),g(),T(e.selectMultiple()?1:-1),g(),T(i?2:3)}}var $t=["dragImageElement"],Qt=[[["","sidenav",""]],[["","sidenav-closed-topbar",""]],"*"],Nt=["[sidenav]","[sidenav-closed-topbar]","*"];function Yt(n,d){n&1&&j(0,"div",1,0)}function Xt(n,d){if(n&1){let t=B();l(0,"div",7),b("drop",function(i){k(t);let o=f();return y(o.drop(i))})("dragover",function(i){k(t);let o=f();return y(o.dragOver(i))})("dragenter",function(){k(t);let i=f();return y(i.dragEnter())})("dragleave",function(){k(t);let i=f();return y(i.dragLeave())}),c()}}function Gt(n,d){if(n&1){let t=B();l(0,"div",8),b("dragstart",function(i){k(t);let o=f();return y(o.dragStart(i))})("dragend",function(i){k(t);let o=f();return y(o.dragEnd(i))})("drag",function(i){k(t);let o=f();return y(o.drag(i))})("touchstart",function(i){k(t);let o=f();return y(o.touchStart(i))})("touchmove",function(i){k(t);let o=f();return y(o.touchMove(i))})("touchend",function(i){k(t);let o=f();return y(o.touchEnd(i))})("touchcancel",function(i){k(t);let o=f();return y(o.touchCancel(i))}),c()}}var Kt=["thead"],Jt=[[["","table-header",""]],"*",[["","table-no-rows",""]]],Zt=["[table-header]","*","[table-no-rows]"];function ei(n,d){n&1&&j(0,"spk-progress-bar",1)}function ti(n,d){n&1&&(l(0,"div",2),h(1,2),c())}var ii=[[["","title",""]],"*"],ni=["[title]","*"];function oi(n,d){n&1&&S(0,"Title")}function si(n,d){n&1&&(l(0,"spk-icon",1),S(1,"caret-down"),c())}var ri=["tooltipRef"];var ke=["bold","thin","light","fill"],oe=(()=>{class n{#e=H(A);get currentClass(){let t=this.#e.nativeElement.innerText;for(let e=0;e<ke.length;e++)if(t.endsWith(ke[e]))return ke[e];return""}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=x({type:n,selectors:[["spk-icon"]],hostVars:2,hostBindings:function(e,i){e&2&&te(i.currentClass)},ngContentSelectors:L,decls:1,vars:0,template:function(e,i){e&1&&(w(),h(0))},encapsulation:2,changeDetection:0})}}return n})(),ji=(()=>{class n{constructor(){this._el=H(A),this.alertService=m(null),this.id=m(null),this.alertClasses=I(()=>this._el.nativeElement.classList.toString())}removeAlert(){this.id()&&this.alertService()&&this.alertService()?.removeAlert(this.id())}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=x({type:n,selectors:[["spk-alert"]],inputs:{alertService:[1,"alertService"],id:[1,"id"]},ngContentSelectors:ze,decls:18,vars:4,consts:[["ref",""],[1,"alert"],[1,"icon"],[1,"state-icon"],[1,"title"],[1,"close-icon"],[1,"content"],[1,"close-icon",3,"click"]],template:function(e,i){if(e&1&&(w(qe),l(0,"div",1)(1,"div",2,0),h(3),c(),l(4,"div",2),_e(5),O(6,Ue,2,0,"spk-icon",3)(7,$e,2,0,"spk-icon",3)(8,Qe,2,0,"spk-icon",3)(9,Ne,2,0,"spk-icon",3)(10,Ye,2,0,"spk-icon",3)(11,Xe,2,0,"spk-icon",3),c(),l(12,"div",4),h(13,1),h(14,2),c(),O(15,Ge,2,0,"spk-icon",5),l(16,"div",6),h(17,3),c()()),e&2){let o=Re(2);g(),U("display",o.children.length?"block":"none");let s=i.alertClasses();g(5),T(s.includes("primary")?6:s.includes("accent")?7:s.includes("warn")?8:s.includes("error")?9:s.includes("success")?10:11),g(9),T(i.id()?15:-1)}},dependencies:[oe],encapsulation:2,changeDetection:0})}}return n})();function De(){return Date.now().toString(36)+Math.random().toString(36).substring(2)}var Bi=(()=>{class n{constructor(){this.alertHistory=C([]),this.alertHistoryIsOpen=C(!1),this.alertHistoryIsHidden=C(!0)}error(t){this.addAlert({type:"error",title:t??"An error occured"})}success(t){this.addAlert({type:"success",title:t})}question(t){this.addAlert({type:"question",title:t})}warning(t){this.addAlert({type:"warn",title:t})}info(t){this.addAlert({type:"primary",title:t})}addAlert(t){let e=De();this.alertHistory.update(i=>[Z(N({},t),{isOpen:!0,animateIn:!0,animateOut:!1,id:e}),...i]),setTimeout(()=>{this.alertHistory.update(i=>i.map(o=>Z(N({},o),{animateIn:o.id===e?!1:o.animateIn})))},40),setTimeout(()=>{this.hideAlert(e)},2500)}removeAlert(t){this.alertHistory.update(e=>e.map(i=>Z(N({},i),{animateOut:i.id===t?!1:i.animateOut}))),setTimeout(()=>{this.alertHistory.update(e=>e.filter(i=>i.id!==t))},300)}hideAlert(t){this.alertHistory.update(e=>e.map(i=>Z(N({},i),{isOpen:i.id===t?!1:i.isOpen})))}setHidden(t){this.alertHistoryIsHidden.set(t)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275prov=se({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),ai={width:void 0,maxWidth:void 0,height:void 0,maxHeight:void 0,closeOnButton:!0,closeOnEsc:!0,closeOnOutsideClick:!0},li=(()=>{class n{constructor(){this.dialogRef=z("dialogRef"),this.isOpen=F(!1),this.options=m(),this.closed=Y(),this.defaultOptionMerge=I(()=>N(N({},ai),this.options())),this.abortController=null,this.isOpenEffect=R(()=>{let t=this.dialogRef()?.nativeElement;this.abortController&&this.abortController.abort(),this.abortController=new AbortController,this.isOpen()?(t?.showModal(),t?.addEventListener("close",()=>{this.isOpen.set(!1),this.closed.emit()},{signal:this.abortController?.signal}),document.addEventListener("keydown",e=>{e.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&e.preventDefault(),e.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},{signal:this.abortController?.signal})):(this.closed.emit(),t?.close())})}ngOnDestroy(){this.abortController?.abort()}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=x({type:n,selectors:[["spk-dialog"]],viewQuery:function(e,i){e&1&&$(i.dialogRef,Ke,5),e&2&&Q()},inputs:{isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:L,decls:5,vars:9,consts:[["dialogRef",""],["spkDialog",""],[1,"content"],[1,"closeable-overlay"],[1,"closeable-overlay",3,"click"]],template:function(e,i){if(e&1&&(w(),l(0,"dialog",1,0)(2,"div",2),h(3),c(),O(4,Je,1,0,"div",3),c()),e&2){let o,s,r,p;U("width",(o=i.defaultOptionMerge().width)!==null&&o!==void 0?o:"")("max-width",(s=i.defaultOptionMerge().maxWidth)!==null&&s!==void 0?s:"")("max-height",(r=i.defaultOptionMerge().maxHeight)!==null&&r!==void 0?r:"")("height",(p=i.defaultOptionMerge().height)!==null&&p!==void 0?p:""),g(4),T(i.defaultOptionMerge().closeOnOutsideClick?4:-1)}},encapsulation:2,changeDetection:0})}}return n})(),Wi=(()=>{class n{constructor(){this.#e=document.querySelector("body"),this.#t=H(Ie),this.compRef=null,this.insertedCompRef=null,this.closedFieldSub=null,this.compClosedSub=null}#e;#t;open(t,e){let i=this.#t.injector,o=this.#o(),M=e||{},{data:s,closed:r}=M,p=we(M,["data","closed"]);this.compRef&&this.#n(),this.insertedCompRef=Se(t,{environmentInjector:i}),this.compRef=Se(li,{hostElement:o,environmentInjector:i,projectableNodes:[[this.insertedCompRef.location.nativeElement]]});let u=this.insertedCompRef.instance?.data,a=this.insertedCompRef.instance?.closed;if(s){if(ce(u))this.insertedCompRef.setInput("data",s);else if(!ce(u))throw new Error("data is not an input signal on the passed component")}a instanceof le&&(this.closedFieldSub=a.subscribe((...P)=>{r?.(...P),this.#n()})),this.#t.attachView(this.insertedCompRef.hostView),this.#t.attachView(this.compRef.hostView),this.insertedCompRef.changeDetectorRef.detectChanges(),this.compRef.changeDetectorRef.detectChanges(),this.compRef.instance.isOpen.set(!0),this.compRef.setInput("options",p),this.compRef.instance.closed.subscribe(()=>D());let _=this;function D(){a&&a instanceof le?a.emit(!1):r?.(void 0),_.#n()}return{component:this.insertedCompRef.instance,close:D}}#o(){let t=document.createElement("spk-dialog-ref");return t.id="spk-dialog-ref",document.getElementById("spk-dialog-ref")||this.#e.append(t),document.getElementById("spk-dialog-ref")}#n(){this.insertedCompRef&&(this.#t.detachView(this.insertedCompRef.hostView),this.closedFieldSub?.unsubscribe(),this.insertedCompRef.destroy()),this.compRef&&(this.#t.detachView(this.compRef.hostView),this.compClosedSub?.unsubscribe(),this.compRef.destroy())}ngOnDestroy(){this.#n()}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275prov=se({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),qi=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=x({type:n,selectors:[["spk-button-group"]],ngContentSelectors:L,decls:1,vars:0,template:function(e,i){e&1&&(w(),h(0))},encapsulation:2,changeDetection:0})}}return n})(),ci=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=x({type:n,selectors:[["","spk-button",""]],attrs:Ze,ngContentSelectors:L,decls:1,vars:0,template:function(e,i){e&1&&(w(),h(0))},encapsulation:2,changeDetection:0})}}return n})(),zi=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=x({type:n,selectors:[["spk-card"]],ngContentSelectors:L,decls:1,vars:0,template:function(e,i){e&1&&(w(),h(0))},encapsulation:2,changeDetection:0})}}return n})(),pi=(()=>{class n{#e=H(A);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus()}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=x({type:n,selectors:[["spk-checkbox"]],hostBindings:function(e,i){e&1&&b("click",function(){return i.onClick()})},ngContentSelectors:L,decls:6,vars:0,consts:[[1,"box"],[1,"inherit","default-indicator"],[1,"inherit","indeterminate-indicator"]],template:function(e,i){e&1&&(w(),l(0,"div",0)(1,"spk-icon",1),S(2,"check"),c(),l(3,"spk-icon",2),S(4,"minus"),c()(),h(5))},dependencies:[oe],encapsulation:2,changeDetection:0})}}return n})(),di=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=x({type:n,selectors:[["spk-chip"]],ngContentSelectors:L,decls:1,vars:0,template:function(e,i){e&1&&(w(),h(0))},encapsulation:2,changeDetection:0})}}return n})();var ui=["scroll","auto"],hi={width:void 0,height:void 0,closeOnButton:!0,closeOnEsc:!0},Ae=(()=>{class n{constructor(){this.#e=H(Ve),this.#t=4,this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.above=m(!1),this.right=m(!1),this.markForCheck=m(null),this._above=C(this.above()),this._right=C(this.right()),this.disableOpenByClick=m(!1),this.isOpen=F(!1),this.options=m(),this.closed=Y(),this.defaultOptionMerge=I(()=>N(N({},hi),this.options())),this.triggerRef=z.required("triggerRef"),this.popoverRef=z.required("popoverRef"),this.id=C("--"+De()),this.menuStyle=C(null),this.openAbort=null,this.openEffect=R(()=>{let t=this.popoverRef()?.nativeElement;if(this.isOpen()){this.openAbort&&this.openAbort.abort(),this.openAbort=new AbortController;let i={signal:this.openAbort?.signal};t?.showPopover(),document.addEventListener("keydown",o=>{o.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&o.preventDefault(),o.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},i),setTimeout(()=>{this.#o(this.popoverRef()?.nativeElement).addEventListener("scroll",()=>this.#n(),i),window.addEventListener("resize",()=>this.#n(),i),this.#n()})}else t.hidePopover(),this.openAbort?.abort(),this.closed.emit()}),this.markForCheckEffect=R(()=>{this.markForCheck()&&this.#e.markForCheck()})}#e;#t;toggleIsOpen(t){t.preventDefault(),t.stopPropagation(),this.disableOpenByClick()||this.isOpen.set(!this.isOpen())}eventClose(t){t.stopPropagation(),t.preventDefault(),this.isOpen.set(!1)}#o(t){let e=t.parentElement;for(;e;){if(ui.indexOf(window.getComputedStyle(e).overflowY)>-1&&e.scrollHeight>e.clientHeight)return e;e=e.parentElement}return document.documentElement}#n(){let t=this.triggerRef()?.nativeElement.getBoundingClientRect(),e=this.popoverRef()?.nativeElement.getBoundingClientRect(),i=t.left,o=t.bottom,s=i,r=o+this.#t,p=s+e.width>window.innerWidth,u=r+e.height>window.innerHeight;if(this.SUPPORTS_ANCHOR)this._above.set(u),this._right.set(p);else{if(s=i,r=o+this.#t,u){let _=t.top-e.height-this.#t;_<0||(r=_)}p&&(s=t.right-e.width,s<0&&(s=0));let a={left:s+"px",top:r+"px"};this.menuStyle.set(a)}}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=x({type:n,selectors:[["spk-popover"]],viewQuery:function(e,i){e&1&&($(i.triggerRef,Pe,5),$(i.popoverRef,et,5)),e&2&&Q(2)},hostVars:4,hostBindings:function(e,i){e&2&&V("above",i._above())("right",i._right())},inputs:{above:[1,"above"],right:[1,"right"],markForCheck:[1,"markForCheck"],disableOpenByClick:[1,"disableOpenByClick"],isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:it,decls:10,vars:6,consts:[["triggerRef",""],["popoverRef",""],[1,"trigger",3,"click"],[1,"trigger-wrapper"],["spk-button","",1,"outlined"],["popover","",1,"popover"],[1,"overlay",3,"click"]],template:function(e,i){if(e&1){let o=B();w(tt),l(0,"div",2,0),b("click",function(r){return k(o),y(i.toggleIsOpen(r))}),l(2,"div",3),h(3),c(),l(4,"button",4),S(5,"Open popover"),c()(),l(6,"div",5,1)(8,"div",6),b("click",function(r){return k(o),y(i.isOpen()&&i.eventClose(r))}),c(),h(9,1),c()}e&2&&(U("anchor-name",i.id()),g(6),J(i.menuStyle()),U("position-anchor",i.id()))},dependencies:[ci],encapsulation:2,changeDetection:0})}}return n})();var Ui=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=x({type:n,selectors:[["spk-divider"]],ngContentSelectors:L,decls:1,vars:0,template:function(e,i){e&1&&(w(),h(0))},encapsulation:2,changeDetection:0})}}return n})(),Le=(()=>{class n{#e=H(A);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus(),this.#e.nativeElement.querySelector("textarea")&&this.#e.nativeElement.querySelector("textarea").focus()}ngOnInit(){let t=typeof CSS<"u"&&CSS.supports("field-sizing","content"),e=this.#e.nativeElement.querySelector("textarea");if(!t&&e!==null){let s=function(){e.style.height="auto",e.style.height=e.scrollHeight+"px"},r=function(){window.setTimeout(s,0)};var i=s,o=r;e.addEventListener("change",s),e.addEventListener("cut",r),e.addEventListener("paste",r),e.addEventListener("drop",r),e.addEventListener("keydown",r),e.focus(),e.select(),s()}}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=x({type:n,selectors:[["spk-form-field"]],hostBindings:function(e,i){e&1&&b("click",function(){return i.onClick()})},ngContentSelectors:st,decls:16,vars:0,consts:[[1,"input-wrap"],[1,"prefix"],[1,"prefix-space"],[1,"suffix-space"],[1,"helpers"],[1,"error"],[1,"hint"]],template:function(e,i){e&1&&(w(ot),h(0),l(1,"div",0)(2,"div",1),h(3,1),h(4,2),c(),j(5,"div",2),h(6,3),h(7,4),h(8,5),j(9,"div",3),h(10,6),c(),l(11,"div",4)(12,"div",5),h(13,7),c(),l(14,"div",6),h(15,8),c()())},encapsulation:2,changeDetection:0})}}return n})();var $i=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=x({type:n,selectors:[["spk-list"]],ngContentSelectors:L,decls:1,vars:0,template:function(e,i){e&1&&(w(),h(0))},encapsulation:2,changeDetection:0})}}return n})();function He(n,d){let t=d?.injector||(be(He),H(re)),{debounce:e=0,initialValue:i=void 0,transform:o=v=>v,compare:s=(v,E)=>v===E,forceType:r=void 0,returnPreviousValue:p=!0}=d||{},u=C(i),a=t.get(ae),_=I(()=>{let v=n()?.nativeElement;if(v instanceof HTMLInputElement||v instanceof HTMLTextAreaElement)return je(v)}),D=!1,M,P=null;return R(()=>{let v=_();if(!v)return u.set(p&&M?o(M):void 0);i!==void 0&&v.value===""?u.set(i):v.value!==""&&xe();let E=q=>{P!==null&&clearTimeout(P),P=setTimeout(()=>{P=null,xe()},e)};v.addEventListener("input",E),v.addEventListener("inputValueChanged",E),a.onDestroy(()=>{v.removeEventListener("input",E),v.removeEventListener("inputValueChanged",E),P!==null&&clearTimeout(P)})},{injector:t}),R(()=>{let v=_();if(!v)return;let E=u()??"",q=E==null?"":String(E);v.value!==q&&(M=q,v.value=q,v.dispatchEvent(new Event("input")))},{injector:t}),u;function xe(){if(!D){D=!0;try{let v=_();if(!v)return;let E=v.value,q=r?Be(E,r):o(E);M=E,s(u(),q)||u.set(q)}finally{D=!1}}}function je(v){return Object.defineProperty(v,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(v),"value").get.call(this)},set(E){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(v),"value").set.call(this,E);let We=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:E}});return this.dispatchEvent(We),E}}),v}function Be(v,E){switch(E){case"string":return v.toString();case"number":let q=Number(v);return isNaN(q)?void 0:q;case"boolean":return v.toLowerCase()==="true"?!0:v.toLowerCase()==="false"?!1:void 0;default:return v}}}var Qi=(()=>{class n{constructor(){this.above=m(!1),this.right=m(!1),this.keepClickedOptionActive=m(!1),this.closeOnClick=m(!0),this.isOpen=F(!1),this.closed=Y(),this.searchable=m(!1),this.activeOptionIndex=C(-1),this.inputRef=z("input"),this.options=Te("option",{descendants:!0}),this.optionsEl=I(()=>Array.from(this.options()).map(t=>t.nativeElement).filter(t=>!t.disabled)),this.inputValue=He(this.inputRef),this.abortController=null,this.optionsEffect=R(()=>{if(!this.isOpen())return;this.abortController&&(this.abortController.abort(),this.abortController=null),this.abortController=new AbortController;let t=this.inputRef()?.nativeElement,e=this.optionsEl();this.activeElements.set(e),t&&(queueMicrotask(()=>t.focus()),t.addEventListener("keydown",i=>{let o=this.activeOptionIndex();i.key==="ArrowDown"?(i.preventDefault(),this.activeOptionIndex.set(this.nextActiveIndex(o))):i.key==="ArrowUp"?(i.preventDefault(),this.activeOptionIndex.set(this.prevActiveIndex(o))):i.key==="Enter"?(i.preventDefault(),o>-1&&(this.activeElements()[o].click(),queueMicrotask(()=>this.close("active")))):i.key==="Tab"&&(i.preventDefault(),this.close("closed"))},{signal:this.abortController.signal}))}),this.activeElements=C([]),this.inputValueEffect=R(()=>{if(!this.searchable())return;let e=this.optionsEl(),i=(this.inputValue()??"").toLowerCase();if(this.#t(),!i||i===""){for(let r=0;r<e.length;r++){let p=e[r];p.classList.remove("hide-option"),p.dataset.score=void 0,p.style.order=""}return}let o=[],s=[];for(let r=0;r<e.length;r++){let p=e[r],u=p.textContent?.toLowerCase()||"",a=this.#e(u,i);if(a===0||p.disabled){p.classList.add("hide-option"),p.style.order="";continue}p.classList.remove("hide-option");let _=!1;for(let D=0;D<s.length;D++)if(a>s[D]){o.splice(D,0,p),s.splice(D,0,a),_=!0;break}_||(o.push(p),s.push(a))}for(let r=0;r<o.length;r++)o[r].style.order=r.toString();this.activeElements.set(o)}),this.activeOptionIndexEffect=R(()=>{let t=this.activeElements(),e=this.activeOptionIndex();for(let i=0;i<t.length;i++)t[i].classList.remove("active");e>-1&&(t[e].scrollIntoView({block:"center"}),t[e].classList.add("active"))})}#e(t,e){if(!e)return 0;let i=0,o=-1,s=0,r=!0;for(let p=0;p<e.length;p++){let u=e[p];if(t.length>o+1&&t[o+1]===u)i+=p===0?100:150,o++,s++;else{let a=t.indexOf(u,o+1);if(p>0&&(r=!1),a===-1)return 0;i+=100,o=a,s++}}return r&&e.length===s&&(i+=1e3),i+=s*20,i}nextActiveIndex(t){let e=this.activeElements();if(t===-1||t===e.length-1)return 0;let i=t+1;return e[i].disabled?this.nextActiveIndex(i):i}prevActiveIndex(t){let e=this.activeElements();if(t===0||t===-1)return e.length-1;let i=t-1;return e[i].disabled?this.prevActiveIndex(i):i}close(t="closed",e){this.inputValue.set(""),this.closeOnClick()&&((!this.keepClickedOptionActive()||t==="closed")&&this.#t(),this.isOpen.set(!1),this.closed.emit(t==="active"))}#t(){this.activeOptionIndex.set(-1);let t=this.optionsEl();for(let e=0;e<t.length;e++)t[e].classList.remove("active")}ngOnDestroy(){this.abortController&&(this.abortController.abort(),this.abortController=null)}createWildcardRegex(t){let e=(t??"").toLowerCase(),i="^";for(let o of e)i+=".*"+this.escapeRegexChar(o);return i+=".*$",new RegExp(i,"i")}escapeRegexChar(t){return t.replace(/[-\/\\^$+?.()|[\]{}]/g,"\\$&")}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=x({type:n,selectors:[["spk-menu"]],contentQueries:function(e,i,o){e&1&&fe(o,i.options,rt,5),e&2&&Q()},viewQuery:function(e,i){e&1&&$(i.inputRef,at,5),e&2&&Q()},inputs:{above:[1,"above"],right:[1,"right"],keepClickedOptionActive:[1,"keepClickedOptionActive"],closeOnClick:[1,"closeOnClick"],isOpen:[1,"isOpen"],searchable:[1,"searchable"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:ct,decls:9,vars:10,consts:[["formFieldWrapper",""],["input",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","above","right","options"],["trigger","",3,"click"],[1,"small"],["type","text","placeholder","Search"],[1,"options",3,"click"]],template:function(e,i){if(e&1){let o=B();w(lt),l(0,"spk-popover",2,0),ve("isOpenChange",function(r){return k(o),ge(i.isOpen,r)||(i.isOpen=r),y(r)}),b("closed",function(){return k(o),y(i.close("fromPopover"))}),l(2,"div",3),b("click",function(){return k(o),y(i.isOpen.set(!0))}),h(3),c(),l(4,"spk-form-field",4),j(5,"input",5,1),c(),l(7,"div",6),b("click",function(){return k(o),y(i.close("active"))}),h(8,1),c()()}e&2&&(me("isOpen",i.isOpen),X("disableOpenByClick",!0)("above",i.above())("right",i.right())("options",Ce(9,nt)),g(4),V("hidden",i.searchable()===!1),g(3),V("searching",i.searchable()&&i.inputValue()!==""))},dependencies:[Ae,Le],encapsulation:2,changeDetection:0})}}return n})(),fi=(()=>{class n{constructor(){this.value=m(void 0)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=x({type:n,selectors:[["spk-progress-bar"]],inputs:{value:[1,"value"]},decls:1,vars:2,consts:[[1,"progress-bar"]],template:function(e,i){e&1&&j(0,"div",0),e&2&&U("width",i.value(),"%")},encapsulation:2,changeDetection:0})}}return n})(),Ni=(()=>{class n{#e=H(A);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus()}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=x({type:n,selectors:[["spk-radio"]],hostBindings:function(e,i){e&1&&b("click",function(){return i.onClick()})},ngContentSelectors:L,decls:2,vars:0,consts:[[1,"radio"]],template:function(e,i){e&1&&(w(),j(0,"div",0),h(1))},encapsulation:2,changeDetection:0})}}return n})(),Yi=(()=>{class n{constructor(){this.#e=H(A),this.#t=null,this.unit=m(""),this.value=F(0),this.inputState=C({min:0,max:100}),this.inputEffect=R(()=>{let t=this.value();this.inputField&&t!==parseInt(this.inputField.value)&&(this.inputField.value=t+"")})}#e;#t;get inputField(){return this.#e.nativeElement.querySelector('input[type="range"]')??null}trackEvent(t){this.inputField?.readOnly&&(t.preventDefault(),t.stopPropagation())}ngOnInit(){if(this.inputField){this.inputState.set({max:parseInt(this.inputField.max??"")??100,min:parseInt(this.inputField.min??"")??0}),this.value.set(parseInt(this.inputField.value??"")??0),this.inputField.oninput=e=>{this.value.set(parseInt(this.inputField.value??"")??0)};let t=["min","max","value"];typeof MutationObserver<"u"&&(this.#t=new MutationObserver((e,i)=>{for(let o of e)o.type==="attributes"&&t.includes(o.attributeName??"")&&(this.inputState.set({max:parseInt(this.inputField.max??"")??100,min:parseInt(this.inputField.min??"")??0}),this.value.set(parseInt(this.inputField.value??"")??0))}),this.#t.observe(this.inputField,{attributes:!0,childList:!1,subtree:!1}))}else console.error("No input field found")}thumbWrapStyle(){return{left:`${this.value()/this.inputState().max*100}%`}}thumbStyle(){return{transform:`translateX(-${this.value()/this.inputState().max*100}%)`}}trackFilledStyle(){return{width:`${this.value()/this.inputState().max*100}%`}}ngOnDestroy(){this.#t&&this.#t.disconnect()}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=x({type:n,selectors:[["spk-range-slider"]],hostVars:2,hostBindings:function(e,i){e&2&&V("has-input",i.inputField)},inputs:{unit:[1,"unit"],value:[1,"value"]},outputs:{value:"valueChange"},ngContentSelectors:dt,decls:15,vars:12,consts:[[1,"label"],[1,"input-wrap"],[1,"min-indicator"],[1,"track-wrap",3,"click"],[1,"track"],[1,"track-filled"],[1,"thumb-wrap"],[1,"thumb"],[1,"value-indicator"],[1,"max-indicator"]],template:function(e,i){e&1&&(w(pt),l(0,"div",0),h(1),c(),l(2,"div",1)(3,"div",2),S(4),c(),l(5,"div",3),b("click",function(s){return i.trackEvent(s)}),h(6,1),l(7,"div",4),j(8,"div",5),c(),l(9,"div",6)(10,"div",7)(11,"div",8),S(12),c()()()(),l(13,"div",9),S(14),c()()),e&2&&(g(4),ie("",i.inputState().min,"",i.unit(),""),g(4),J(i.trackFilledStyle()),g(),J(i.thumbWrapStyle()),g(),J(i.thumbStyle()),g(2),ie("",i.value(),"",i.unit(),""),g(2),ie("",i.inputState().max,"",i.unit(),""))},encapsulation:2,changeDetection:0})}}return n})(),mi=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=x({type:n,selectors:[["spk-spinner"]],decls:0,vars:0,template:function(e,i){},encapsulation:2,changeDetection:0})}}return n})(),Xi=(()=>{class n{constructor(){this.#e=H(A),this.value=m(),this.label=m(),this.asFreeText=m(!1),this.placeholder=m(),this.readonly=F(!1),this.disabled=F(!1),this.lazySearch=m(!1),this.inlineSearch=m(!1),this.asText=m(!1),this.isClearable=m(!0),this.selectMultiple=m(!1),this.optionTemplate=m(null),this.selectedOptionTemplate=m(null),this.placeholderTemplate=m(null),this.isOpen=F(!1),this.isLoading=F(!1),this.options=F([]),this.selectedOptions=F([]),this.cleared=Y(),this.inlineTemplate=Ee(pe),this.optionsWrapRef=z.required("optionsWrap"),this.inputRefInput=C(null),this.#t=typeof MutationObserver<"u"&&new MutationObserver(t=>{for(var e of t)e&&(e.target.nodeName==="INPUT"||e.target.nodeName==="TEXTAREA")&&(this.inputRefInput.set(new A(e.target)),this.#t.disconnect())}),this.inputValue=C(""),this.prevInputValue=C(null),this.focusedOptionIndex=C(-1),this._isClearable=I(()=>this.selectMultiple()||this.isClearable()),this.selectClasses=I(()=>this.#e.nativeElement.classList.toString()),this.placeholderText=I(()=>{let t=this.placeholder(),e=this.inputRefEl();return t||e?.placeholder||null}),this.selectedOptionValues=I(()=>{let t=this.selectedOptions(),e=this.value();return e?t.map(i=>this.#i(i,e)):t}),this.filteredOptions=I(()=>{let t=this.options()||[],e=this.label(),i=this.value(),o=this.inlineSearch(),s=this.inputValue().toLowerCase(),r=this.#a(s);if(t.length<=0)return[];if(!o||s==="")return t;let u=t.filter(a=>{let _=e?(this.#i(a,e)??"").toString().toLowerCase():(a??"").toString().toLowerCase(),D=((i?this.#i(a,i):a)??"").toString().toLowerCase(),M=r.test(_),P=r.test(D);return M||P}).map(a=>{let _=e?(this.#i(a,e)??"").toString().toLowerCase():(a??"").toString().toLowerCase(),D=((i?this.#i(a,i):a)??"").toString().toLowerCase(),M=this.#o(_,s),P=this.#o(D,s);return{item:a,score:Math.max(M,P)}});return u.sort((a,_)=>_.score-a.score),u.map(a=>a.item)}),this.inputRefEl=I(()=>{let t=this.inputRefInput();if(t===null)return;let e=t?t.nativeElement:null;return e?(e.autocomplete="off",this.#r(e),e.addEventListener("focus",()=>{this.readonly()||this.open()}),this.hasSearch()&&e.addEventListener("input",i=>{let o=i.target.value,s=this.inputValue();o!==s&&(this.focusedOptionIndex.set(this.asFreeText()?-1:0),this.inputValue.set(o),this.updateInputElValue())}),e.addEventListener("inputValueChanged",i=>{let o=i.detail.value,s=this.inputValue();if(o!==s){if(o===""){this.clear();return}this.setSelectedOptionsFromValue(o),this.setInputValueFromSelectedOptions(),this.#s()}}),e):(console.warn("<spk-select> input element not found are you missing to pass an <input> or <textarea> element to select component?"),null)}),this.openAbortController=null,this.isOpenEffect=R(()=>{if(this.isOpen()){this.openAbortController||(this.openAbortController=new AbortController);let e=this.inputRefEl();if(!e)return;e.addEventListener("keydown",i=>{if((i.key==="Escape"||i.key==="Tab")&&(i.preventDefault(),this.close()),(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),this.toggleOptionByIndex(this.focusedOptionIndex())),i.key==="ArrowDown"){i.preventDefault();let o=this.focusedOptionIndex()+1;this.focusedOptionIndex.set(o>this.filteredOptions().length-1?0:o)}if(i.key==="ArrowUp"){i.preventDefault();let o=this.focusedOptionIndex()-1;this.focusedOptionIndex.set(o<0?this.filteredOptions().length-1:o)}},{signal:this.openAbortController?.signal})}else{if(!this.inputRefEl())return;this.openAbortController&&(this.openAbortController.abort(),this.openAbortController=null)}}),this._inputValue="",this.inputValueEffect=R(()=>{let t=this.inputValue();this._inputValue=t}),this.inputRefElEffect=R(()=>{let t=this.inputRefEl();t&&t.value!==this._inputValue&&(this.disabled.set(t.disabled),this.setSelectedOptionsFromValue(t.value),this.setInputValueFromSelectedOptions())}),this.selectedLabels=I(()=>{let t=this.selectedOptions();return this.label()?t.map(i=>this.getLabel(i)).join(", "):t.join(", ")}),this.inputState=I(()=>(this.selectedOptions().length>0||this.asFreeText()&&this.inputValue().length>0)&&!this.isOpen()?"selected":this.isLoading()?"loading":this.isOpen()&&(this.lazySearch()||this.inlineSearch())?"open-searching":this.isOpen()?"open":this.inlineSearch()||this.lazySearch()?"searching":"closed"),this.hasSearch=I(()=>this.inlineSearch()||this.lazySearch()),this.#n=R(()=>{if(this.selectMultiple()&&this.hasSearch())return;let t=this.selectedOptions(),e=this.value(),i=t.map(o=>e?this.#i(o,e):o).join(",");this.inputValue.set(i)})}#e;#t;#o(t,e){if(!e)return 0;let i=0,o=-1,s=0;t.includes(e)&&(i+=1e3);for(let r=0;r<e.length;r++){let p=e[r],u=t.indexOf(p,o+1);if(u===-1)return 0;i+=100,o+1===u&&o!==-1&&(i+=50),o=u,s++}return i+=s*20,i}#n;ngOnInit(){this.setInitInput()}setInitInput(){let t=this.#e.nativeElement.querySelector("input");if(t){this.inputRefInput.set(new A(t));return}let e=this.#e.nativeElement.querySelector("textarea");if(e){this.inputRefInput.set(new A(e));return}typeof MutationObserver<"u"&&this.#t.observe(this.#e.nativeElement,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}setSelectedOptionsFromValue(t){let e=this.options()||[],i=this.value(),o=this.selectMultiple(),s=t.toString().split(",");if(s.length===0){this.selectedOptions.set([]);return}let r=o?s:[s[0]],p=e.filter(u=>{let a=i?this.#i(u,i)?.toString():u?.toString();return a&&r.includes(a)});this.selectedOptions.set(o?p:[p[0]])}setInputValueFromSelectedOptions(){let t=this.selectedOptions(),e=this.value();if(t.length===0){this.inputValue.set(""),this.updateInputElValue();return}let i=t.map(o=>e?this.#i(o,e):o).join(",");this.inputValue.set(i),this.updateInputElValue()}getLabel(t){let e=this.label();return e?this.#i(t,e):t}toggleOptionByIndex(t,e){let i=this.filteredOptions()[t];if(this.asFreeText()&&t===-1||!i){this.close();return}e&&e.stopPropagation();let o=this.selectMultiple(),s=this._isClearable(),r=this.value(),p=this.selectedOptionValues(),u=r?this.#i(i,r):i;this.prevInputValue.set(null),this.selectedOptions.update(a=>{let _=p.indexOf(u);if(_>-1){let D=[...a.slice(0,_),...a.slice(_+1)];return s||D.length>0?D:a}else return this.focusedOptionIndex.set(t),o?[...a,i]:[i]}),o?this.inputRefEl()?.focus():this.isOpen.set(!1),this.setInputValueFromSelectedOptions(),o&&this.hasSearch()&&(this.inputValue.set(""),this.updateInputElValue())}removeSelectedOptionByIndex(t,e){t.stopPropagation(),this.selectedOptions.update(i=>[...i.slice(0,e),...i.slice(e+1)]),this.setInputValueFromSelectedOptions()}isSelected(t){let e=this.value(),i=this.filteredOptions()[t],o=e?this.#i(i,e):i;return this.selectedOptionValues().indexOf(o)>-1}open(){this.isOpen()||(this.isOpen.set(!0),this.hasSearch()&&(this.prevInputValue.set(this.inputValue()??""),this.inputValue.set(""),this.updateInputElValue()),this.selectMultiple()||this.#s())}#s(){let t=this.selectedOptionValues()[0],e=this.value();if(t){let i=this.filteredOptions().findIndex(o=>e?this.#i(o,e)===t:o===t);this.focusedOptionIndex.set(i)}else this.focusedOptionIndex.set(-1)}close(){this.isOpen.set(!1);let t=this.prevInputValue();if(this.asFreeText()){this.updateInputElValue();return}this.hasSearch()&&t&&(this.inputValue.set(t),this.setInputValueFromSelectedOptions()),this.selectMultiple()&&this.setInputValueFromSelectedOptions()}clear(t){t?.stopPropagation(),this.inputValue.set(""),this.selectedOptions.set([]),this.isOpen.set(!1),this.prevInputValue.set(null),this.cleared.emit(),this.updateInputElValue()}updateInputElValue(){let t=this.inputRefEl(),e=this.inputValue();t&&(t.value=e,t.dispatchEvent(new Event("input")))}#i(t,e){return e.split(".").reduce((i,o)=>i?.[o],t)}#r(t){Object.defineProperty(t,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),"value").get.call(this)},set(e){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),"value").set.call(this,e);let o=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:e}});return this.dispatchEvent(o),e}})}#a(t){let e=(t??"").toLowerCase(),i="^";for(let o of e)i+=".*"+this.#l(o);return i+=".*$",new RegExp(i,"i")}#l(t){return t.replace(/[-\/\\^$+?.()|[\]{}]/g,"\\$&")}ngOnDestroy(){this.openAbortController&&(this.openAbortController.abort(),this.openAbortController=null),typeof MutationObserver<"u"&&this.#t.disconnect()}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=x({type:n,selectors:[["spk-select"]],contentQueries:function(e,i,o){e&1&&fe(o,i.inlineTemplate,pe,5),e&2&&Q()},viewQuery:function(e,i){e&1&&$(i.optionsWrapRef,ut,5),e&2&&Q()},hostVars:2,hostBindings:function(e,i){e&2&&V("multiple",i.selectMultiple())},inputs:{value:[1,"value"],label:[1,"label"],asFreeText:[1,"asFreeText"],placeholder:[1,"placeholder"],readonly:[1,"readonly"],disabled:[1,"disabled"],lazySearch:[1,"lazySearch"],inlineSearch:[1,"inlineSearch"],asText:[1,"asText"],isClearable:[1,"isClearable"],selectMultiple:[1,"selectMultiple"],optionTemplate:[1,"optionTemplate"],selectedOptionTemplate:[1,"selectedOptionTemplate"],placeholderTemplate:[1,"placeholderTemplate"],isOpen:[1,"isOpen"],isLoading:[1,"isLoading"],options:[1,"options"],selectedOptions:[1,"selectedOptions"]},outputs:{readonly:"readonlyChange",disabled:"disabledChange",isOpen:"isOpenChange",isLoading:"isLoadingChange",options:"optionsChange",selectedOptions:"selectedOptionsChange",cleared:"cleared"},ngContentSelectors:ft,decls:32,vars:20,consts:[["formFieldWrapper",""],["optionsWrap",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","options"],["trigger","",3,"click"],["ngProjectAs","input",5,["input"],1,"input"],[1,"selected-value"],["suffix",""],["suffix","",1,"primary"],[1,"sparkle-options"],[1,"option",3,"selected","focused"],[1,"small",3,"class"],[1,"small"],[3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],["suffix","",3,"click"],[1,"option",3,"click"],[3,"class","active"]],template:function(e,i){if(e&1){let o=B();w(ht),_e(0)(1)(2)(3)(4)(5)(6)(7)(8)(9),l(10,"spk-popover",2,0),ve("isOpenChange",function(r){return k(o),ge(i.isOpen,r)||(i.isOpen=r),y(r)}),b("closed",function(){return k(o),y(i.close())}),l(12,"spk-form-field",3),b("click",function(){return k(o),y(i.open())}),h(13,0,["ngProjectAs","label",5,["label"]]),l(14,"div",4)(15,"div",5),O(16,gt,1,1)(17,Et,2,0)(18,Rt,2,1),h(19,1),h(20,2),c()(),O(21,Vt,2,0,"spk-icon",6)(22,Ft,1,0,"spk-spinner",7)(23,Pt,2,0,"spk-icon",6)(24,At,2,0,"spk-icon",6)(25,Lt,2,0,"spk-icon",6)(26,Ht,2,0,"spk-icon",6)(27,jt,2,0,"spk-icon",6),c(),l(28,"div",8,1),ue(30,Ut,4,6,"li",9,de),c()()}if(e&2){K(i.placeholderTemplate());let o=i.optionTemplate(),s=i.selectedOptionTemplate(),r=i.inlineTemplate();g(4);let p=K(i.selectedOptions()),u=i.inputState();g(2),K(s||o||r),g(),K(o||r),g();let a=K(!i.asText()&&i.selectMultiple());g();let _=K(i.isOpen()&&i.hasSearch()&&(a||i.inputValue().length>0));g(),me("isOpen",i.isOpen),X("disableOpenByClick",!0)("options",Ce(19,mt)),g(2),V("autosize",i.selectMultiple())("readonly",i.readonly()||i.disabled()),g(2),V("show-search-text",_),g(),V("is-selected",u==="selected"),g(),T(i.asFreeText()&&i.inputValue().length>0&&!i.isOpen()?16:p.length>0?17:_?-1:18),g(5),T(u==="closed"?21:u==="loading"?22:u==="open-searching"?23:u==="searching"?24:u==="selected"&&i._isClearable()?25:u==="selected"&&!i._isClearable()?26:27),g(9),he(i.filteredOptions())}},dependencies:[Fe,Ae,Le,oe,pi,mi,di],encapsulation:2,changeDetection:0})}}return n})(),Gi=(()=>{class n{constructor(){this.openWidth=280,this.openWidthTreshold=this.openWidth*.9,this.disableDrag=m(!1),this.isOpen=F(!1),this.type=m(""),this.dragImageElement=z.required("dragImageElement"),this.dragIsEnding=C(!1),this.dragIsOnScreen=C(!0),this.isDragging=C(!1),this.dragPositionX=C(0),this.dragActualPositionX=I(()=>{let t=this.dragPositionX(),e=.32;return t>this.openWidthTreshold?this.openWidthTreshold+(t-this.openWidthTreshold)*e:t}),this.draggingStyle=I(()=>this.type()!=="overlay"?null:this.isDragging()?`translateX(${this.dragActualPositionX()}px)`:this.isOpen()?`translateX(${this.openWidth}px)`:"translateX(0px)"),this.draggingEffect=R(()=>{this.isDragging()&&document.body.classList.add("dragging")})}drop(t){t.stopPropagation(),this.#e(t.clientX)}#e(t){this.isDragging.set(!1),t<=0?this.isOpen.set(!1):t>this.openWidthTreshold?this.isOpen.set(!0):t<this.openWidthTreshold&&(!this.isOpen()&&t<this.openWidthTreshold*.6?this.isOpen.set(!0):this.isOpen.set(!1))}dragEnd(t){(t.clientX<0||!this.dragIsOnScreen())&&this.#e(0)}dragEnter(){this.dragIsOnScreen.set(!0)}dragLeave(){this.dragIsOnScreen.set(!1)}dragOver(t){t.preventDefault(),this.#t(t)}dragStart(t){t.stopPropagation(),this.isDragging.set(!0),this.#t(t)}#t(t){t.dataTransfer?.setDragImage(this.dragImageElement().nativeElement,0,0)}drag(t){t.stopPropagation(),setTimeout(()=>{this.isDragging()&&this.dragIsOnScreen()&&this.dragPositionX.set(t.clientX)}),this.#t(t)}touchStart(t){t.stopPropagation(),this.isDragging.set(!0)}touchMove(t){t.stopPropagation(),setTimeout(()=>{this.isDragging()&&this.dragIsOnScreen()&&this.dragPositionX.set(t.touches[0].clientX)})}touchEnd(t){t.stopPropagation(),this.#e(t.changedTouches[0].clientX)}touchCancel(t){t.stopPropagation(),this.isDragging.set(!1)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=x({type:n,selectors:[["spk-sidenav"]],viewQuery:function(e,i){e&1&&$(i.dragImageElement,$t,5),e&2&&Q()},hostVars:10,hostBindings:function(e,i){e&2&&V("open",i.isOpen())("closed",!i.isOpen())("overlay",i.type()==="overlay")("simple",i.type()==="simple")("is-dragging",i.isDragging())},inputs:{disableDrag:[1,"disableDrag"],isOpen:[1,"isOpen"],type:[1,"type"]},outputs:{isOpen:"isOpenChange"},ngContentSelectors:Nt,decls:10,vars:5,consts:[["dragImageElement",""],[1,"drag-image"],[1,"dropping-surface"],[1,"sidenav"],[1,"main-wrap"],["draggable","true",1,"dragable"],[1,"closed-topbar"],[1,"dropping-surface",3,"drop","dragover","dragenter","dragleave"],["draggable","true",1,"dragable",3,"dragstart","dragend","drag","touchstart","touchmove","touchend","touchcancel"]],template:function(e,i){e&1&&(w(Qt),O(0,Yt,2,0,"div",1)(1,Xt,1,0,"div",2),l(2,"div",3),h(3),c(),l(4,"div",4),O(5,Gt,1,0,"div",5),l(6,"div",6),h(7,1),c(),l(8,"main"),h(9,2),c()()),e&2&&(T(i.type()==="overlay"?0:-1),g(),T(i.type()==="overlay"&&i.isDragging()?1:-1),g(3),U("transform",i.draggingStyle()),g(),T(i.type()==="overlay"&&!i.disableDrag()?5:-1))},encapsulation:2,changeDetection:0})}}return n})();var Ki=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=x({type:n,selectors:[["spk-stepper"]],ngContentSelectors:L,decls:1,vars:0,template:function(e,i){e&1&&(w(),h(0))},encapsulation:2,changeDetection:0})}}return n})();function gi(n,d){let t=H(re),e=t.get(ae),i=C([]),o=d.map(p=>p.toUpperCase()),s=null,r=p=>{s&&s.disconnect();let u=Array.from(p.nativeElement.querySelectorAll("*")).filter(a=>a.nodeType===Node.ELEMENT_NODE&&o.includes(a.nodeName)).map(a=>new A(a));i.set(u),s=new MutationObserver(a=>{let _=i();for(let D of a)D.addedNodes&&D.addedNodes.forEach(M=>{M.nodeType===Node.ELEMENT_NODE&&o.includes(M.nodeName)&&(_=[..._,new A(M)])}),D.removedNodes&&D.removedNodes.forEach(M=>{M.nodeType===Node.ELEMENT_NODE&&o.includes(M.nodeName)&&(_=_.filter(P=>P.nativeElement!==M))});i.set(_)}),s.observe(p.nativeElement,{childList:!0,subtree:!0}),e.onDestroy(()=>{s&&s.disconnect()})};return typeof n=="function"&&n[Oe]?R(()=>{let p=n();p?r(p):(i.set([]),s&&(s.disconnect(),s=null))},{injector:t}):n instanceof A&&r(n),i.asReadonly()}var Ji=(()=>{class n{constructor(){this.loading=m(!1),this.data=m([]),this.dataChange=Y(),this.sortByColumn=F(null),this.thead=z("thead"),this.columns=gi(this.thead,["TH"]),this.resizing=C(!1),this.sizeTrigger=C(!0),this.#e=null,this.#t=C(!1),this.columnSizes=I(()=>(this.sizeTrigger(),this.columns().reduce((t,e,i)=>{let o=e.nativeElement,s=i===this.columns().length-1;return o.dataset.size?`${t} ${o.dataset.size}`:s?`${t} max-content`:`${t} 1fr`},""))),this.e=R(()=>{let t=this.sortByColumn();if(t===null)return this.#t()||(this.#e=this.data(),this.#t.set(!0)),this.dataChange.emit(JSON.parse(JSON.stringify(this.#e)));let e=t.startsWith("-")?t.slice(1):t,i=t.startsWith("-"),o=this.data().sort((s,r)=>{let p=s[e],u=r[e],a=0;return typeof p=="number"&&typeof u=="number"&&(a=p-u),p instanceof Date&&u instanceof Date&&(a=p.getTime()-u.getTime()),typeof p=="string"&&typeof u=="string"&&(a=p.localeCompare(u,void 0,{sensitivity:"base"})),i?-a:a});this.dataChange.emit(o)})}#e;#t;updateColumnSizes(){this.sizeTrigger.set(!this.sizeTrigger())}toggleSort(t){let e=this.sortByColumn(),i=e===t?`-${t}`:e===`-${t}`?null:t;this.sortByColumn.set(i)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=x({type:n,selectors:[["spk-table"]],viewQuery:function(e,i){e&1&&$(i.thead,Kt,5),e&2&&Q()},hostVars:4,hostBindings:function(e,i){e&2&&(U("grid-template-columns",i.columnSizes()),V("resizing",i.resizing()))},inputs:{loading:[1,"loading"],data:[1,"data"],sortByColumn:[1,"sortByColumn"]},outputs:{dataChange:"dataChange",sortByColumn:"sortByColumnChange"},ngContentSelectors:Zt,decls:7,vars:2,consts:[["thead",""],[1,"indeterminate","primary"],[1,"no-rows"]],template:function(e,i){e&1&&(w(Jt),l(0,"thead",null,0),h(2),O(3,ei,1,0,"spk-progress-bar",1),c(),l(4,"tbody"),h(5,1),c(),O(6,ti,2,0,"div",2)),e&2&&(g(3),T(i.loading()?3:-1),g(3),T(i.loading()?-1:6))},dependencies:[fi],encapsulation:2,changeDetection:0})}}return n})(),Zi=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=x({type:n,selectors:[["spk-tabs"]],ngContentSelectors:L,decls:1,vars:0,template:function(e,i){e&1&&(w(),h(0))},encapsulation:2,changeDetection:0})}}return n})(),en=(()=>{class n{constructor(){this.isActive=F(!1),this.disallowToggle=m(!1)}ngOnInit(){this.disallowToggle()&&this.isActive.set(!0)}toggle(){this.isActive.set(!this.isActive())}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=x({type:n,selectors:[["spk-toggle-card"]],hostVars:2,hostBindings:function(e,i){e&2&&V("active",i.isActive())},inputs:{isActive:[1,"isActive"],disallowToggle:[1,"disallowToggle"]},outputs:{isActive:"isActiveChange"},ngContentSelectors:ni,decls:6,vars:1,consts:[[3,"click"],[1,"toggle-icon"],[1,"content"]],template:function(e,i){e&1&&(w(ii),l(0,"h3",0),b("click",function(){return i.disallowToggle()||i.toggle()}),h(1,0,null,oi,1,0),O(3,si,2,0,"spk-icon",1),c(),l(4,"div",2),h(5,1),c()),e&2&&(g(3),T(i.disallowToggle()?-1:3))},dependencies:[oe],encapsulation:2,changeDetection:0})}}return n})(),tn=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=x({type:n,selectors:[["spk-toggle"]],ngContentSelectors:L,decls:3,vars:0,consts:[[1,"box"],[1,"knob"]],template:function(e,i){e&1&&(w(),l(0,"div",0),j(1,"div",1),c(),h(2))},encapsulation:2,changeDetection:0})}}return n})(),nn=(()=>{class n{constructor(){this.#e=4,this.SUPPORTS_ANCHOR=CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.disabled=m(!1),this.above=m(!1),this.right=m(!1),this._above=C(this.above()),this._right=C(this.right()),this.message=m.required(),this.isOpen=F(!1),this.closed=Y(),this.triggerRef=z.required("triggerRef"),this.tooltipRef=z.required("tooltipRef"),this.id=C("--"+De()),this.menuStyle=C(null),this.isCalculatingPosition=I(()=>{let t=this.tooltipRef()?.nativeElement;return this.isOpen()?(t?.showPopover(),!0):(t.hidePopover(),this.abortController?.abort(),this.closed.emit(),!1)}),this.abortController=null,this.calcPositionEffect=R(()=>{if(!this.isCalculatingPosition())return;this.abortController&&this.abortController.abort(),this.abortController=new AbortController;let e=this.abortController.signal;this.calculateMenuPosition(),this.#t(this.tooltipRef()?.nativeElement).addEventListener("scroll",()=>this.calculateMenuPosition(),{signal:e}),document.addEventListener("resize",()=>this.calculateMenuPosition(),{signal:e})}),this.scrollableStyles=["scroll","auto"]}#e;#t(t){let e=t.parentElement;for(;e;){if(this.scrollableStyles.indexOf(window.getComputedStyle(e).overflowY)>-1&&e.scrollHeight>e.clientHeight)return e;e=e.parentElement}return document.documentElement}eventClose(t){t.stopPropagation(),t.preventDefault(),this.isOpen.set(!1)}ngOnDestroy(){this.abortController&&this.abortController.abort()}calculateMenuPosition(){let t=this.triggerRef()?.nativeElement.getBoundingClientRect(),e=this.tooltipRef()?.nativeElement.getBoundingClientRect(),i=t.left,o=t.bottom,s=i,r=o+this.#e,p=s+e.width>window.innerWidth,u=r+e.height>window.innerHeight;if(this.SUPPORTS_ANCHOR)this._above.set(u),this._right.set(p);else{if(this.above()){let a=t.top-e.height-this.#e;a>=0&&(r=a)}else u&&(r=t.top-e.height-this.#e);if(this.right()){let a=t.right-e.width;a>=0&&(s=a)}else p&&(r=u?t.top+t.height-e.height:t.top,s=t.left-e.width-this.#e);this.menuStyle.set({left:s+"px",top:r+"px"})}}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=x({type:n,selectors:[["spk-tooltip"]],viewQuery:function(e,i){e&1&&($(i.triggerRef,Pe,5),$(i.tooltipRef,ri,5)),e&2&&Q(2)},hostVars:6,hostBindings:function(e,i){e&2&&V("above",i._above())("right",i._right())("disabled",i.disabled())},inputs:{disabled:[1,"disabled"],above:[1,"above"],right:[1,"right"],message:[1,"message"],isOpen:[1,"isOpen"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:L,decls:6,vars:7,consts:[["triggerRef",""],["tooltipRef",""],[1,"trigger",3,"mouseover","mouseout"],["popover","",1,"tooltip"]],template:function(e,i){if(e&1){let o=B();w(),l(0,"div",2,0),b("mouseover",function(){return k(o),y(i.isOpen.set(!0))})("mouseout",function(){return k(o),y(i.isOpen.set(!1))}),h(2),c(),l(3,"div",3,1),S(5),c()}e&2&&(U("anchor-name",i.id()),g(3),J(i.menuStyle()),U("position-anchor",i.id()),g(2),G(" ",i.message()," "))},encapsulation:2,changeDetection:0})}}return n})();var on=(()=>{class n{constructor(){this.filesOver=C(!1),this.filesDropped=Y()}onDragOver(t){t.preventDefault(),t.stopPropagation(),this.filesOver.set(!0)}onDragLeave(t){t.preventDefault(),t.stopPropagation(),this.filesOver.set(!1)}ondrop(t){t.preventDefault(),t.stopPropagation(),this.filesOver.set(!1);let e=t.dataTransfer?.files;e&&e.length>0&&this.filesDropped.emit(e)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275dir=Me({type:n,selectors:[["","spkDragDrop",""]],hostVars:2,hostBindings:function(e,i){e&1&&b("dragover",function(s){return i.onDragOver(s)})("dragleave",function(s){return i.onDragLeave(s)})("drop",function(s){return i.ondrop(s)}),e&2&&V("filesover",i.filesOver())},outputs:{filesDropped:"filesDropped"}})}}return n})();export{oe as a,ji as b,Bi as c,li as d,Wi as e,qi as f,ci as g,zi as h,pi as i,di as j,Ui as k,Le as l,$i as m,Qi as n,fi as o,Ni as p,Yi as q,Xi as r,Gi as s,Ki as t,Ji as u,Zi as v,en as w,tn as x,nn as y,on as z};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-CR2UB7UZ.js";import"./chunk-3YOT5OAB.js";import"./chunk-CMXSHXAU.js";import"./chunk-LHSJLKCF.js";import"./chunk-PUSUA4U7.js";import"./chunk-L3T52MCL.js";import"./chunk-4XPN5ZGE.js";import"./chunk-3GK4TNUH.js";import"./chunk-PTC4N7TU.js";import"./chunk-7CGTOI24.js";export{a as OptionsListComponent};
@@ -1 +1 @@
1
- import{a as m}from"./chunk-XL5J65PI.js";import{b as N}from"./chunk-KLIPTMVG.js";import{C as o,D as h,Lc as u,N as d,R as l,X as r,l as c,sa as s,v as f,y as p}from"./chunk-DTPZU6NP.js";var v=class n{#e=r(N);#n=r(m);serverState=u(()=>{let t=this.#n.serverState();return t?.LastNotificationUpdateID&&this.updateLastNotificationEventId(t?.LastNotificationUpdateID),t});#o=s(-1);#s=s(!1);#t=s([]);#i=s([]);notifications=this.#t.asReadonly();init(){this.notifications().length===0&&this.getNotifications()}updateLastNotificationEventId(t){this.#o()!==t&&(this.#o.set(t),this.getNotifications())}getNotifications(){this.#s.set(!0),this.#e.getApiV1Notifications().pipe(o(1),d(t=>this.#t.set(t)),h(()=>this.#s.set(!1))).subscribe()}getNofication(t){this.#e.getApiV1NotificationById({id:t}).pipe(o(1)).subscribe()}deleteNotification(t){let i=this.#t(),e=i[t];this.#i.set(i),i.splice(t,1),this.#t.set(i),this.#e.deleteApiV1NotificationById({id:e.ID}).pipe(o(1)).subscribe({error:()=>{this.#t.set(this.#i()),this.#i.set([])}})}deleteAllNotifications(){let t=this.#t();this.#i.set(t),this.#t.set([]);let i=t.map(e=>this.#e.deleteApiV1NotificationById({id:e.ID}).pipe(p(()=>c(e))));f(i).pipe(o(1)).subscribe({next:e=>{let b=e.filter(a=>a!=null&&"ID"in a);this.#t.set(b),this.#i.set([])},error:()=>{this.#t.set(this.#i()),this.#i.set([])}})}static \u0275fac=function(i){return new(i||n)};static \u0275prov=l({token:n,factory:n.\u0275fac,providedIn:"root"})};export{v as a};
1
+ import{a as m}from"./chunk-ZOUY24KQ.js";import{b as N}from"./chunk-L3T52MCL.js";import{C as o,D as h,Lc as u,N as d,R as l,X as r,l as c,sa as s,v as f,y as p}from"./chunk-PTC4N7TU.js";var v=class n{#e=r(N);#n=r(m);serverState=u(()=>{let t=this.#n.serverState();return t?.LastNotificationUpdateID&&this.updateLastNotificationEventId(t?.LastNotificationUpdateID),t});#o=s(-1);#s=s(!1);#t=s([]);#i=s([]);notifications=this.#t.asReadonly();init(){this.notifications().length===0&&this.getNotifications()}updateLastNotificationEventId(t){this.#o()!==t&&(this.#o.set(t),this.getNotifications())}getNotifications(){this.#s.set(!0),this.#e.getApiV1Notifications().pipe(o(1),d(t=>this.#t.set(t)),h(()=>this.#s.set(!1))).subscribe()}getNofication(t){this.#e.getApiV1NotificationById({id:t}).pipe(o(1)).subscribe()}deleteNotification(t){let i=this.#t(),e=i[t];this.#i.set(i),i.splice(t,1),this.#t.set(i),this.#e.deleteApiV1NotificationById({id:e.ID}).pipe(o(1)).subscribe({error:()=>{this.#t.set(this.#i()),this.#i.set([])}})}deleteAllNotifications(){let t=this.#t();this.#i.set(t),this.#t.set([]);let i=t.map(e=>this.#e.deleteApiV1NotificationById({id:e.ID}).pipe(p(()=>c(e))));f(i).pipe(o(1)).subscribe({next:e=>{let b=e.filter(a=>a!=null&&"ID"in a);this.#t.set(b),this.#i.set([])},error:()=>{this.#t.set(this.#i()),this.#i.set([])}})}static \u0275fac=function(i){return new(i||n)};static \u0275prov=l({token:n,factory:n.\u0275fac,providedIn:"root"})};export{v as a};
@@ -1,2 +1,2 @@
1
- import{a as K}from"./chunk-N5K6ODRA.js";import{a as z,d as J,g as q}from"./chunk-ECH6I3YN.js";import{b as X}from"./chunk-KLIPTMVG.js";import"./chunk-V5GVLIPJ.js";import"./chunk-2HS3CYRN.js";import{Ab as i,Bb as a,Cb as g,Gb as u,Mb as A,Mc as W,Nb as D,Oa as E,Ob as y,Qa as l,Sb as S,Tb as f,Wb as w,X as v,ca as d,da as _,db as h,fc as c,gc as C,hc as I,ib as k,ic as N,kc as $,lc as B,mc as V,nc as U,p as T,rb as F,rc as G,sa as m,wb as x,xb as M,yb as P,zb as R}from"./chunk-DTPZU6NP.js";import{a as b,b as O}from"./chunk-C6Q5SG76.js";var j=()=>({maxWidth:"700px",width:"100%"});function H(s,t){if(s&1&&(i(0,"a",9)(1,"spk-icon"),c(2,"link"),a()()),s&2){let e=f().$implicit;w("href",e.Url,E)}}function Q(s,t){if(s&1){let e=u();i(0,"div",2)(1,"h4"),c(2),k(3,H,3,1,"a",9),a(),i(4,"p"),c(5),g(6,"br"),i(7,"i"),c(8),a()(),i(9,"div",10)(10,"button",11),S("click",function(){let o=d(e).$implicit,r=f();return _(r.openLicense(o))}),A(11,1),g(12,"spk-icon"),D(),a()()()}if(s&2){let e=t.$implicit;l(2),N(" ",e.Title," - ",e.data==null?null:e.data.license," "),l(),x(e.Url?3:-1),l(2),I(" ",e.data==null?null:e.data.description," "),l(3),C(e.data==null?null:e.data.notes)}}var L=class s{#e=v(X);licenses=K(this.#e.getApiV1Licenses().pipe(T(t=>t.map(e=>O(b({},e),{data:e.Jsondata?JSON.parse(e.Jsondata):null})))));dialogIsOpen=m(!1);dialogLicense=m(null);#t=W(()=>{this.dialogLicense()&&this.dialogIsOpen.set(!0)});openLicense(t){this.dialogLicense.set(t)}closeLicense(){this.dialogIsOpen.set(!1),this.dialogLicense.set(null)}breakIntoLines(t){let e=t.split(`
1
+ import{a as K}from"./chunk-NV2YMSSM.js";import{a as z,d as J,g as q}from"./chunk-PUSUA4U7.js";import{b as X}from"./chunk-L3T52MCL.js";import"./chunk-4XPN5ZGE.js";import"./chunk-3GK4TNUH.js";import{Ab as i,Bb as a,Cb as g,Gb as u,Mb as A,Mc as W,Nb as D,Oa as E,Ob as y,Qa as l,Sb as S,Tb as f,Wb as w,X as v,ca as d,da as _,db as h,fc as c,gc as C,hc as I,ib as k,ic as N,kc as $,lc as B,mc as V,nc as U,p as T,rb as F,rc as G,sa as m,wb as x,xb as M,yb as P,zb as R}from"./chunk-PTC4N7TU.js";import{a as b,b as O}from"./chunk-7CGTOI24.js";var j=()=>({maxWidth:"700px",width:"100%"});function H(s,t){if(s&1&&(i(0,"a",9)(1,"spk-icon"),c(2,"link"),a()()),s&2){let e=f().$implicit;w("href",e.Url,E)}}function Q(s,t){if(s&1){let e=u();i(0,"div",2)(1,"h4"),c(2),k(3,H,3,1,"a",9),a(),i(4,"p"),c(5),g(6,"br"),i(7,"i"),c(8),a()(),i(9,"div",10)(10,"button",11),S("click",function(){let o=d(e).$implicit,r=f();return _(r.openLicense(o))}),A(11,1),g(12,"spk-icon"),D(),a()()()}if(s&2){let e=t.$implicit;l(2),N(" ",e.Title," - ",e.data==null?null:e.data.license," "),l(),x(e.Url?3:-1),l(2),I(" ",e.data==null?null:e.data.description," "),l(3),C(e.data==null?null:e.data.notes)}}var L=class s{#e=v(X);licenses=K(this.#e.getApiV1Licenses().pipe(T(t=>t.map(e=>O(b({},e),{data:e.Jsondata?JSON.parse(e.Jsondata):null})))));dialogIsOpen=m(!1);dialogLicense=m(null);#t=W(()=>{this.dialogLicense()&&this.dialogIsOpen.set(!0)});openLicense(t){this.dialogLicense.set(t)}closeLicense(){this.dialogIsOpen.set(!1),this.dialogLicense.set(null)}breakIntoLines(t){let e=t.split(`
2
2
  `),n="";for(let o=0;o<e.length;o++)n+=`<li>${e[o]}</li>`;return n}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=h({type:s,selectors:[["app-libraries"]],decls:15,vars:5,consts:()=>{let t;t=$localize`Libraries`;let e;return e=$localize` Details ${"\uFFFD#12\uFFFD"}:START_TAG_SPK_ICON:arrow-square-in${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SPK_ICON:`,[t,e,[1,"license"],[3,"isOpenChange","isOpen","options"],["header",""],["content",""],[1,"license-dialog"],["footer",""],["spk-button","","type","button",3,"click"],[3,"href"],[1,"actions"],["spk-button","",3,"click"]]},template:function(e,n){if(e&1){let o=u();i(0,"h3"),y(1,0),a(),P(2,Q,13,5,"div",2,M),i(4,"spk-dialog",3),V("isOpenChange",function(p){return d(o),B(n.dialogIsOpen,p)||(n.dialogIsOpen=p),_(p)}),i(5,"header",4)(6,"h3"),c(7),a()(),i(8,"div",5),U(9),i(10,"div",6),c(11),a()(),i(12,"footer",7)(13,"button",8),S("click",function(){return d(o),_(n.dialogLicense.set(null))}),c(14,"Close"),a()()()}if(e&2){let o,r;l(2),R(n.licenses()),l(2),$("isOpen",n.dialogIsOpen),F("options",G(4,j)),l(3),C((o=n.dialogLicense())==null?null:o.Title);let p=(r=(r=n.dialogLicense())==null?null:r.License)!==null&&r!==void 0?r:"";l(4),I(" ",p," ")}},dependencies:[z,q,J],styles:["[_nghost-%COMP%]{display:block}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}h4[_ngcontent-%COMP%]{font:var(--paragraph-10)}a[_ngcontent-%COMP%]{text-decoration:none}.license[_ngcontent-%COMP%]{padding:1rem;border-bottom:1px solid var(--base-level-40);display:flex;flex-direction:column;align-items:flex-start;gap:.5rem}.license[_ngcontent-%COMP%]:first-of-type{border-top:1px solid var(--base-level-40)}.license[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;gap:.25rem;align-items:center}.license-dialog[_ngcontent-%COMP%]{background-color:var(--base-level-10);color:var(--base-level-70);padding:2.5rem 2.5rem 2.5rem 1.5rem;border-radius:var(--shape-3);overflow:auto;max-height:31.25rem;white-space:pre;border:1px solid var(--base-level-40)}"],changeDetection:0})};export{L as default};
@@ -1 +1 @@
1
- import{b as o}from"./chunk-KLIPTMVG.js";import{C as a,D as i,N as r,R as u,X as n,sa as s}from"./chunk-DTPZU6NP.js";var l=class p{#s=n(o);#p=null;#t=s([]);#e=s([]);#a=s(!1);#i=s(!1);#r=s(null);backups=this.#e.asReadonly();backupsLoading=this.#a.asReadonly();startingBackup=this.#i.asReadonly();deletingBackup=this.#r.asReadonly();draftBackups=this.#t.asReadonly();addDraftBackup(t){let e=crypto.randomUUID();return this.#t.set([...this.#t(),{id:e,data:t}]),e}removeDraftBackupById(t){this.#t.set(this.#t().filter(e=>e.id!==t))}getBackupById(t){return this.#e().find(e=>e.Backup?.ID===t)??null}getBackups(t=!1){let e=this.#p,c=Date.now(),k=e&&c-e<15*60*1e3;!1||!t&&k&&this.#e().length||(this.#p=c,this.#a.set(!0),this.#s.getApiV1Backups().pipe(a(1),r(B=>this.#e.set(B)),i(()=>this.#a.set(!1))).subscribe())}startBackup(t){this.#i.set(!0),this.#s.postApiV1BackupByIdStart({id:t}).pipe(a(1),r(()=>this.getBackups()),i(()=>this.#i.set(!1))).subscribe()}deleteBackup(t){this.#r.set(t),this.#s.deleteApiV1BackupById({id:t}).pipe(a(1),r(()=>this.getBackups()),i(()=>this.#r.set(null))).subscribe()}static \u0275fac=function(e){return new(e||p)};static \u0275prov=u({token:p,factory:p.\u0275fac,providedIn:"root"})};export{l as a};
1
+ import{b as o}from"./chunk-L3T52MCL.js";import{C as a,D as i,N as r,R as u,X as n,sa as s}from"./chunk-PTC4N7TU.js";var l=class p{#s=n(o);#p=null;#t=s([]);#e=s([]);#a=s(!1);#i=s(!1);#r=s(null);backups=this.#e.asReadonly();backupsLoading=this.#a.asReadonly();startingBackup=this.#i.asReadonly();deletingBackup=this.#r.asReadonly();draftBackups=this.#t.asReadonly();addDraftBackup(t){let e=crypto.randomUUID();return this.#t.set([...this.#t(),{id:e,data:t}]),e}removeDraftBackupById(t){this.#t.set(this.#t().filter(e=>e.id!==t))}getBackupById(t){return this.#e().find(e=>e.Backup?.ID===t)??null}getBackups(t=!1){let e=this.#p,c=Date.now(),k=e&&c-e<15*60*1e3;!1||!t&&k&&this.#e().length||(this.#p=c,this.#a.set(!0),this.#s.getApiV1Backups().pipe(a(1),r(B=>this.#e.set(B)),i(()=>this.#a.set(!1))).subscribe())}startBackup(t){this.#i.set(!0),this.#s.postApiV1BackupByIdStart({id:t}).pipe(a(1),r(()=>this.getBackups()),i(()=>this.#i.set(!1))).subscribe()}deleteBackup(t){this.#r.set(t),this.#s.deleteApiV1BackupById({id:t}).pipe(a(1),r(()=>this.getBackups()),i(()=>this.#r.set(null))).subscribe()}static \u0275fac=function(e){return new(e||p)};static \u0275prov=u({token:p,factory:p.\u0275fac,providedIn:"root"})};export{l as a};
@@ -1 +1 @@
1
- import{a as pe}from"./chunk-RDRLCN5M.js";import{b as ue,d as ce,g as Se,i as de,r as F}from"./chunk-4IJQ7AAQ.js";import{a as te}from"./chunk-TYO44G6M.js";import{a as ne,b as ie,e as oe,g as ae,i as h,l as se,o as le,p as _e,r as re}from"./chunk-ECH6I3YN.js";import{b as A}from"./chunk-KLIPTMVG.js";import{pa as ee}from"./chunk-2HS3CYRN.js";import{a as Te}from"./chunk-UQH5ZQG7.js";import{Ab as s,Bb as l,Cb as R,D as g,Gb as V,Lc as G,Mb as I,Nb as k,Ob as p,Qa as _,Rb as j,Sb as u,Tb as C,X as c,ca as x,da as z,db as E,fc as O,gb as X,hc as q,ib as L,ic as Z,jc as J,kc as f,lc as P,mc as N,oa as D,rb as m,sa as r,tb as S,vc as B,wb as v,wc as Y,xb as H,xc as Q,yb as K,zb as W}from"./chunk-DTPZU6NP.js";var y=class a{#e=c(Te);transform(n,...t){return this.#e.locale(),this.#e(n).fromNow()}static \u0275fac=function(t){return new(t||a)};static \u0275pipe=X({name:"appRelativeTime",type:a,pure:!0})};function Ae(a,n){if(a&1){let t=V();s(0,"spk-radio",10),u("click",function(){let i=x(t).$implicit,o=C();return z(o.pauseOption.set(i.value))}),O(1),l()}if(a&2){let t=n.$implicit,e=C();S("active",e.pauseOption()===t.value),_(),q(" ",t.label," ")}}var fe=[{label:$localize`5 minuts`,value:"5m"},{label:$localize`10 minuts`,value:"10m"},{label:$localize`15 minuts`,value:"15m"},{label:$localize`30 minuts`,value:"30m"},{label:$localize`1 hour`,value:"1h"},{label:$localize`4 hours`,value:"4h"},{label:$localize`8 hours`,value:"8h"},{label:$localize`24 hours`,value:"24h"},{label:$localize`Until resumed`,value:void 0}],b=class a{#e=c(A);pauseOptions=r(fe);closed=D();isSubmitting=r(!1);pauseTransfers=r(!1);pauseOption=r(void 0);submit(){this.isSubmitting.set(!0);let n=this.pauseTransfers()||null,t=this.pauseOption();this.#e.postApiV1ServerstatePause({duration:t,pauseTransfers:n}).pipe(g(()=>this.isSubmitting.set(!1))).subscribe({next:e=>{this.closed.emit()}})}static \u0275fac=function(t){return new(t||a)};static \u0275cmp=E({type:a,selectors:[["app-pause-dialog"]],outputs:{closed:"closed"},decls:17,vars:4,consts:()=>{let n;n=$localize`Pause settings`;let t;t=$localize` Also pause transfers `;let e;e=$localize`If you pause transfers they could time out and cause retries or failures.`;let i;i=$localize`Cancel`;let o;return o=$localize` Update settings `,[n,t,e,i,o,["header",""],["content",""],[1,"radios"],[1,"primary","raised",3,"active"],[1,"check-wrap"],[1,"primary","raised",3,"click"],["type","warning"],["footer",""],["spk-button","",3,"click"],["spk-button","",1,"raised","primary",3,"click"]]},template:function(t,e){t&1&&(s(0,"header",5)(1,"h3"),p(2,0),l()(),s(3,"div",6)(4,"div",7),K(5,Ae,2,3,"spk-radio",8,H),l(),s(7,"div",9)(8,"spk-checkbox",10),u("click",function(){return e.pauseTransfers.set(!e.pauseTransfers())}),p(9,1),l(),s(10,"spk-alert",11),p(11,2),l()()(),s(12,"footer",12)(13,"button",13),u("click",function(){return e.closed.emit()}),p(14,3),l(),s(15,"button",14),u("click",function(){return e.submit()}),p(16,4),l()()),t&2&&(_(5),W(e.pauseOptions()),_(3),S("active",e.pauseTransfers()),_(7),S("loader",e.isSubmitting()))},dependencies:[F,_e,h,ie],styles:["[_nghost-%COMP%]{--dialog-p: 1.5rem;display:block}h3[_ngcontent-%COMP%]{font:var(--title-30)}.radios[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.check-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;padding:2rem 0 0}"],changeDetection:0})};var Pe=["Byte/s","KByte/s","MByte/s","GByte/s","TByte/s","PByte/s"],$={Byte:"B",KByte:"KB",MByte:"MB",GByte:"GB",TByte:"TB",PByte:"PB"},ge=Object.entries($).reduce((a,[n,t])=>(a[t]=n,a),{}),M=class a{#e=c(A);closed=D();isSubmitting=r(!1);sizeOptions=r(Pe);maxUploadActive=r(!1);maxDownloadActive=r(!1);maxUpload=r(0);maxDownload=r(0);maxUploadUnit=r("MByte/s");maxDownloadUnit=r("MByte/s");ngOnInit(){this.init()}init(){this.#e.getApiV1Serversettings().subscribe({next:n=>{let t=n?.["max-upload-speed"]?.split(/(\d+)/),e=n?.["max-download-speed"]?.split(/(\d+)/),i=t[1]??"",o=e[1]??"",d=t[2]??"MB",T=e[2]??"MB",Ce=i===""?10:parseInt(i),Oe=o===""?10:parseInt(o);this.maxUploadUnit.set(ge[d]+"/s"),this.maxDownloadUnit.set(ge[T]+"/s"),this.maxUploadActive.set(i!==""),this.maxDownloadActive.set(o!==""),this.maxUpload.set(Ce),this.maxDownload.set(Oe)}})}blockDecimalKeys(n){if([".",","].includes(n.key))return n.preventDefault()}cleanupInputAfterPasting(n){n.preventDefault();let t=n.clipboardData?.getData("text/plain");if(!t)return;let e=t.replaceAll(/[\.,]/g,"");n.target.value=e}submit(){this.isSubmitting.set(!0);let n=this.maxUploadActive()?`${this.maxUpload()}${$[this.maxUploadUnit().replace("/s","")]}`:"",t=this.maxDownloadActive()?`${this.maxDownload()}${$[this.maxDownloadUnit().replace("/s","")]}`:"";this.#e.patchApiV1Serversettings({requestBody:{"max-upload-speed":n,"max-download-speed":t}}).pipe(g(()=>this.isSubmitting.set(!1))).subscribe({next:e=>{this.closed.emit(!0)}})}static \u0275fac=function(t){return new(t||a)};static \u0275cmp=E({type:a,selectors:[["app-throttle-settings-dialog"]],outputs:{closed:"closed"},decls:26,vars:16,consts:()=>{let n;n=$localize`Throttle network speed`;let t;t=$localize` Max upload speed `;let e;e=$localize` Max download speed `;let i;i=$localize` Note that speeds are entered in bytes, and line speeds are typically reported in bits. Use a factor of 8 to convert, such that an 8 mbit/s line is equivalent to 1 MByte/s. `;let o;o=$localize`Cancel`;let d;return d=$localize` Update settings `,[n,t,e,i,o,d,["header",""],["content",""],[1,"column"],[1,"field-row"],[1,"primary","raised",3,"click"],["type","number",3,"paste","keydown","ngModelChange","ngModel","disabled"],[3,"isClearable","options"],["type","text",3,"ngModelChange","ngModel"],["footer",""],["spk-button","",3,"click"],["spk-button","",1,"raised","primary",3,"click"]]},template:function(t,e){t&1&&(s(0,"header",6)(1,"h3"),p(2,0),l()(),s(3,"div",7)(4,"div",8)(5,"div",9)(6,"spk-checkbox",10),u("click",function(){return e.maxUploadActive.set(!e.maxUploadActive())}),p(7,1),l(),s(8,"spk-form-field")(9,"input",11),u("paste",function(o){return e.cleanupInputAfterPasting(o)})("keydown",function(o){return e.blockDecimalKeys(o)}),N("ngModelChange",function(o){return P(e.maxUpload,o)||(e.maxUpload=o),o}),l()(),s(10,"spk-select",12)(11,"input",13),N("ngModelChange",function(o){return P(e.maxUploadUnit,o)||(e.maxUploadUnit=o),o}),l()()(),s(12,"div",9)(13,"spk-checkbox",10),u("click",function(){return e.maxDownloadActive.set(!e.maxDownloadActive())}),p(14,2),l(),s(15,"spk-form-field")(16,"input",11),u("paste",function(o){return e.cleanupInputAfterPasting(o)})("keydown",function(o){return e.blockDecimalKeys(o)}),N("ngModelChange",function(o){return P(e.maxDownload,o)||(e.maxDownload=o),o}),l()(),s(17,"spk-select",12)(18,"input",13),N("ngModelChange",function(o){return P(e.maxDownloadUnit,o)||(e.maxDownloadUnit=o),o}),l()()(),s(19,"p"),p(20,3),l()()(),s(21,"footer",14)(22,"button",15),u("click",function(){return e.closed.emit(!1)}),p(23,4),l(),s(24,"button",16),u("click",function(){return e.submit()}),p(25,5),l()()),t&2&&(_(6),S("active",e.maxUploadActive()),_(3),f("ngModel",e.maxUpload),m("disabled",!e.maxUploadActive()),_(),m("isClearable",!1)("options",e.sizeOptions()),_(),f("ngModel",e.maxUploadUnit),_(2),S("active",e.maxDownloadActive()),_(3),f("ngModel",e.maxDownload),m("disabled",!e.maxDownloadActive()),_(),m("isClearable",!1)("options",e.sizeOptions()),_(),f("ngModel",e.maxDownloadUnit),_(6),S("loader",e.isSubmitting()))},dependencies:[F,ue,de,ce,Se,se,h,re],styles:["[_nghost-%COMP%]{display:block}h3[_ngcontent-%COMP%]{font:var(--title-30)}.column[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.field-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;width:100%}"],changeDetection:0})};function Ne(a,n){if(a&1&&(s(0,"div"),O(1),l(),R(2,"spk-progress-bar",8)),a&2){let t=C();_(),Z("",t.statusData().actionText," - ",t.statusData().statusText,""),_(),m("value",t.statusData().progress*100)}}function Me(a,n){if(a&1&&(s(0,"div",5),O(1),B(2,"appRelativeTime"),B(3,"date"),l()),a&2){let t,e=C();_(),J(" ",(t=e.nextBackup().backup)==null||t.Backup==null?null:t.Backup.Name," - ",Y(2,3,e.nextBackup().time)," at ",Q(3,5,e.nextBackup().time,"shortTime")," ")}}function De(a,n){a&1&&(s(0,"div",5),p(1,1),l())}function Re(a,n){a&1&&(s(0,"div",5),p(1,2),l())}function Ie(a,n){a&1&&(I(0,0,1),R(1,"spk-icon"),k())}function ke(a,n){a&1&&(I(0,0,2),R(1,"spk-icon"),k())}var Ee=new Date,w=class a{#e=c(A);#t=c(pe);#n=c(oe);#i=c(te);minsAgo=Ee.setMinutes(Ee.getMinutes()-1);statusData=this.#t.statusData;serverState=this.#t.serverState;isRunning=G(()=>this.serverState()?.ProgramState==="Running");isResuming=r(!1);nextBackup=G(()=>({backup:this.serverState()?.ProposedSchedule?.[0]?.backup,time:this.serverState()?.ProposedSchedule?.[0]?.Item2}));openThrottleSettingsDialog(){this.#n.open(M,{maxWidth:"550px",width:"100%"})}openPauseDialog(){this.#n.open(b,{maxWidth:"550px",width:"100%"})}pauseResume(){if(this.isRunning()){this.openPauseDialog();return}this.isResuming.set(!0),this.#e.postApiV1ServerstateResume().pipe(g(()=>this.isResuming.set(!1))).subscribe()}ngAfterViewInit(){let n=this.#i.relayIsEnabled()?"longpoll":"websocket";this.#t.setConnectionMethod(n)}static \u0275fac=function(t){return new(t||a)};static \u0275cmp=E({type:a,selectors:[["app-status-bar"]],decls:14,vars:4,consts:()=>{let n;n=$localize`${"\uFFFD*9:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SPK_ICON:pause${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPK_ICON: Pause ${"\uFFFD/*9:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*10:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SPK_ICON:play${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPK_ICON: Start ${"\uFFFD/*10:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,n=j(n);let t;t=$localize`No scheduled tasks`;let e;return e=$localize`Loading...`,[n,t,e,[1,"current-backup"],[1,"current-backup-progress"],[1,"label"],[1,"current-backup-actions"],["spk-button","",3,"click"],[1,"raised","primary",3,"value"]]},template:function(t,e){if(t&1&&(s(0,"div",3)(1,"div",4),L(2,Ne,3,3)(3,Me,4,8,"div",5)(4,De,2,0,"div",5)(5,Re,2,0,"div",5),l(),s(6,"div",6)(7,"button",7),u("click",function(){return e.pauseResume()}),I(8,0),L(9,Ie,2,0)(10,ke,2,0),k(),l(),s(11,"button",7),u("click",function(){return e.openThrottleSettingsDialog()}),s(12,"spk-icon"),O(13,"speedometer"),l()()()()),t&2){let i;_(2),v((i=e.serverState())!=null&&i.ActiveTask&&(!((i=e.statusData())==null||i.task==null)&&i.task.Status)&&((i=e.statusData())==null||i.task==null?null:i.task.Status)!=="Completed"?2:e.nextBackup().backup||e.nextBackup().time?3:(i=e.serverState())!=null&&i.ActiveTask?5:4),_(5),S("loader",e.isResuming()),_(2),v(e.isRunning()?9:10)}},dependencies:[le,y,ee,ne,ae],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:1rem;min-height:3.875rem;border-bottom:1px solid var(--base-level-40)}.current-backup[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%;gap:.5rem}.current-backup-progress[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;min-width:18.75rem}.current-backup-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"],changeDetection:0})};export{w as a};
1
+ import{a as pe}from"./chunk-XBZX6CUW.js";import{b as ue,d as ce,g as Se,i as de,r as F}from"./chunk-LHSJLKCF.js";import{b as te}from"./chunk-N7UCCMLS.js";import{a as ne,b as ie,e as oe,g as ae,i as h,l as se,o as le,p as _e,r as re}from"./chunk-PUSUA4U7.js";import{b as A}from"./chunk-L3T52MCL.js";import{pa as ee}from"./chunk-3GK4TNUH.js";import{a as Te}from"./chunk-CHZ7TMI7.js";import{Ab as s,Bb as l,Cb as R,D as g,Gb as V,Lc as G,Mb as I,Nb as k,Ob as p,Qa as _,Rb as j,Sb as u,Tb as C,X as c,ca as x,da as z,db as E,fc as O,gb as X,hc as q,ib as L,ic as Z,jc as J,kc as f,lc as P,mc as N,oa as D,rb as m,sa as r,tb as S,vc as B,wb as v,wc as Y,xb as H,xc as Q,yb as K,zb as W}from"./chunk-PTC4N7TU.js";var y=class a{#e=c(Te);transform(n,...t){return this.#e.locale(),this.#e(n).fromNow()}static \u0275fac=function(t){return new(t||a)};static \u0275pipe=X({name:"appRelativeTime",type:a,pure:!0})};function Ae(a,n){if(a&1){let t=V();s(0,"spk-radio",10),u("click",function(){let i=x(t).$implicit,o=C();return z(o.pauseOption.set(i.value))}),O(1),l()}if(a&2){let t=n.$implicit,e=C();S("active",e.pauseOption()===t.value),_(),q(" ",t.label," ")}}var fe=[{label:$localize`5 minuts`,value:"5m"},{label:$localize`10 minuts`,value:"10m"},{label:$localize`15 minuts`,value:"15m"},{label:$localize`30 minuts`,value:"30m"},{label:$localize`1 hour`,value:"1h"},{label:$localize`4 hours`,value:"4h"},{label:$localize`8 hours`,value:"8h"},{label:$localize`24 hours`,value:"24h"},{label:$localize`Until resumed`,value:void 0}],b=class a{#e=c(A);pauseOptions=r(fe);closed=D();isSubmitting=r(!1);pauseTransfers=r(!1);pauseOption=r(void 0);submit(){this.isSubmitting.set(!0);let n=this.pauseTransfers()||null,t=this.pauseOption();this.#e.postApiV1ServerstatePause({duration:t,pauseTransfers:n}).pipe(g(()=>this.isSubmitting.set(!1))).subscribe({next:e=>{this.closed.emit()}})}static \u0275fac=function(t){return new(t||a)};static \u0275cmp=E({type:a,selectors:[["app-pause-dialog"]],outputs:{closed:"closed"},decls:17,vars:4,consts:()=>{let n;n=$localize`Pause settings`;let t;t=$localize` Also pause transfers `;let e;e=$localize`If you pause transfers they could time out and cause retries or failures.`;let i;i=$localize`Cancel`;let o;return o=$localize` Update settings `,[n,t,e,i,o,["header",""],["content",""],[1,"radios"],[1,"primary","raised",3,"active"],[1,"check-wrap"],[1,"primary","raised",3,"click"],["type","warning"],["footer",""],["spk-button","",3,"click"],["spk-button","",1,"raised","primary",3,"click"]]},template:function(t,e){t&1&&(s(0,"header",5)(1,"h3"),p(2,0),l()(),s(3,"div",6)(4,"div",7),K(5,Ae,2,3,"spk-radio",8,H),l(),s(7,"div",9)(8,"spk-checkbox",10),u("click",function(){return e.pauseTransfers.set(!e.pauseTransfers())}),p(9,1),l(),s(10,"spk-alert",11),p(11,2),l()()(),s(12,"footer",12)(13,"button",13),u("click",function(){return e.closed.emit()}),p(14,3),l(),s(15,"button",14),u("click",function(){return e.submit()}),p(16,4),l()()),t&2&&(_(5),W(e.pauseOptions()),_(3),S("active",e.pauseTransfers()),_(7),S("loader",e.isSubmitting()))},dependencies:[F,_e,h,ie],styles:["[_nghost-%COMP%]{--dialog-p: 1.5rem;display:block}h3[_ngcontent-%COMP%]{font:var(--title-30)}.radios[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.check-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;padding:2rem 0 0}"],changeDetection:0})};var Pe=["Byte/s","KByte/s","MByte/s","GByte/s","TByte/s","PByte/s"],$={Byte:"B",KByte:"KB",MByte:"MB",GByte:"GB",TByte:"TB",PByte:"PB"},ge=Object.entries($).reduce((a,[n,t])=>(a[t]=n,a),{}),M=class a{#e=c(A);closed=D();isSubmitting=r(!1);sizeOptions=r(Pe);maxUploadActive=r(!1);maxDownloadActive=r(!1);maxUpload=r(0);maxDownload=r(0);maxUploadUnit=r("MByte/s");maxDownloadUnit=r("MByte/s");ngOnInit(){this.init()}init(){this.#e.getApiV1Serversettings().subscribe({next:n=>{let t=n?.["max-upload-speed"]?.split(/(\d+)/),e=n?.["max-download-speed"]?.split(/(\d+)/),i=t[1]??"",o=e[1]??"",d=t[2]??"MB",T=e[2]??"MB",Ce=i===""?10:parseInt(i),Oe=o===""?10:parseInt(o);this.maxUploadUnit.set(ge[d]+"/s"),this.maxDownloadUnit.set(ge[T]+"/s"),this.maxUploadActive.set(i!==""),this.maxDownloadActive.set(o!==""),this.maxUpload.set(Ce),this.maxDownload.set(Oe)}})}blockDecimalKeys(n){if([".",","].includes(n.key))return n.preventDefault()}cleanupInputAfterPasting(n){n.preventDefault();let t=n.clipboardData?.getData("text/plain");if(!t)return;let e=t.replaceAll(/[\.,]/g,"");n.target.value=e}submit(){this.isSubmitting.set(!0);let n=this.maxUploadActive()?`${this.maxUpload()}${$[this.maxUploadUnit().replace("/s","")]}`:"",t=this.maxDownloadActive()?`${this.maxDownload()}${$[this.maxDownloadUnit().replace("/s","")]}`:"";this.#e.patchApiV1Serversettings({requestBody:{"max-upload-speed":n,"max-download-speed":t}}).pipe(g(()=>this.isSubmitting.set(!1))).subscribe({next:e=>{this.closed.emit(!0)}})}static \u0275fac=function(t){return new(t||a)};static \u0275cmp=E({type:a,selectors:[["app-throttle-settings-dialog"]],outputs:{closed:"closed"},decls:26,vars:16,consts:()=>{let n;n=$localize`Throttle network speed`;let t;t=$localize` Max upload speed `;let e;e=$localize` Max download speed `;let i;i=$localize` Note that speeds are entered in bytes, and line speeds are typically reported in bits. Use a factor of 8 to convert, such that an 8 mbit/s line is equivalent to 1 MByte/s. `;let o;o=$localize`Cancel`;let d;return d=$localize` Update settings `,[n,t,e,i,o,d,["header",""],["content",""],[1,"column"],[1,"field-row"],[1,"primary","raised",3,"click"],["type","number",3,"paste","keydown","ngModelChange","ngModel","disabled"],[3,"isClearable","options"],["type","text",3,"ngModelChange","ngModel"],["footer",""],["spk-button","",3,"click"],["spk-button","",1,"raised","primary",3,"click"]]},template:function(t,e){t&1&&(s(0,"header",6)(1,"h3"),p(2,0),l()(),s(3,"div",7)(4,"div",8)(5,"div",9)(6,"spk-checkbox",10),u("click",function(){return e.maxUploadActive.set(!e.maxUploadActive())}),p(7,1),l(),s(8,"spk-form-field")(9,"input",11),u("paste",function(o){return e.cleanupInputAfterPasting(o)})("keydown",function(o){return e.blockDecimalKeys(o)}),N("ngModelChange",function(o){return P(e.maxUpload,o)||(e.maxUpload=o),o}),l()(),s(10,"spk-select",12)(11,"input",13),N("ngModelChange",function(o){return P(e.maxUploadUnit,o)||(e.maxUploadUnit=o),o}),l()()(),s(12,"div",9)(13,"spk-checkbox",10),u("click",function(){return e.maxDownloadActive.set(!e.maxDownloadActive())}),p(14,2),l(),s(15,"spk-form-field")(16,"input",11),u("paste",function(o){return e.cleanupInputAfterPasting(o)})("keydown",function(o){return e.blockDecimalKeys(o)}),N("ngModelChange",function(o){return P(e.maxDownload,o)||(e.maxDownload=o),o}),l()(),s(17,"spk-select",12)(18,"input",13),N("ngModelChange",function(o){return P(e.maxDownloadUnit,o)||(e.maxDownloadUnit=o),o}),l()()(),s(19,"p"),p(20,3),l()()(),s(21,"footer",14)(22,"button",15),u("click",function(){return e.closed.emit(!1)}),p(23,4),l(),s(24,"button",16),u("click",function(){return e.submit()}),p(25,5),l()()),t&2&&(_(6),S("active",e.maxUploadActive()),_(3),f("ngModel",e.maxUpload),m("disabled",!e.maxUploadActive()),_(),m("isClearable",!1)("options",e.sizeOptions()),_(),f("ngModel",e.maxUploadUnit),_(2),S("active",e.maxDownloadActive()),_(3),f("ngModel",e.maxDownload),m("disabled",!e.maxDownloadActive()),_(),m("isClearable",!1)("options",e.sizeOptions()),_(),f("ngModel",e.maxDownloadUnit),_(6),S("loader",e.isSubmitting()))},dependencies:[F,ue,de,ce,Se,se,h,re],styles:["[_nghost-%COMP%]{display:block}h3[_ngcontent-%COMP%]{font:var(--title-30)}.column[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.field-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;width:100%}"],changeDetection:0})};function Ne(a,n){if(a&1&&(s(0,"div"),O(1),l(),R(2,"spk-progress-bar",8)),a&2){let t=C();_(),Z("",t.statusData().actionText," - ",t.statusData().statusText,""),_(),m("value",t.statusData().progress*100)}}function Me(a,n){if(a&1&&(s(0,"div",5),O(1),B(2,"appRelativeTime"),B(3,"date"),l()),a&2){let t,e=C();_(),J(" ",(t=e.nextBackup().backup)==null||t.Backup==null?null:t.Backup.Name," - ",Y(2,3,e.nextBackup().time)," at ",Q(3,5,e.nextBackup().time,"shortTime")," ")}}function De(a,n){a&1&&(s(0,"div",5),p(1,1),l())}function Re(a,n){a&1&&(s(0,"div",5),p(1,2),l())}function Ie(a,n){a&1&&(I(0,0,1),R(1,"spk-icon"),k())}function ke(a,n){a&1&&(I(0,0,2),R(1,"spk-icon"),k())}var Ee=new Date,w=class a{#e=c(A);#t=c(pe);#n=c(oe);#i=c(te);minsAgo=Ee.setMinutes(Ee.getMinutes()-1);statusData=this.#t.statusData;serverState=this.#t.serverState;isRunning=G(()=>this.serverState()?.ProgramState==="Running");isResuming=r(!1);nextBackup=G(()=>({backup:this.serverState()?.ProposedSchedule?.[0]?.backup,time:this.serverState()?.ProposedSchedule?.[0]?.Item2}));openThrottleSettingsDialog(){this.#n.open(M,{maxWidth:"550px",width:"100%"})}openPauseDialog(){this.#n.open(b,{maxWidth:"550px",width:"100%"})}pauseResume(){if(this.isRunning()){this.openPauseDialog();return}this.isResuming.set(!0),this.#e.postApiV1ServerstateResume().pipe(g(()=>this.isResuming.set(!1))).subscribe()}ngAfterViewInit(){let n=this.#i.relayIsEnabled()?"longpoll":"websocket";this.#t.setConnectionMethod(n)}static \u0275fac=function(t){return new(t||a)};static \u0275cmp=E({type:a,selectors:[["app-status-bar"]],decls:14,vars:4,consts:()=>{let n;n=$localize`${"\uFFFD*9:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SPK_ICON:pause${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPK_ICON: Pause ${"\uFFFD/*9:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*10:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SPK_ICON:play${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPK_ICON: Start ${"\uFFFD/*10:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,n=j(n);let t;t=$localize`No scheduled tasks`;let e;return e=$localize`Loading...`,[n,t,e,[1,"current-backup"],[1,"current-backup-progress"],[1,"label"],[1,"current-backup-actions"],["spk-button","",3,"click"],[1,"raised","primary",3,"value"]]},template:function(t,e){if(t&1&&(s(0,"div",3)(1,"div",4),L(2,Ne,3,3)(3,Me,4,8,"div",5)(4,De,2,0,"div",5)(5,Re,2,0,"div",5),l(),s(6,"div",6)(7,"button",7),u("click",function(){return e.pauseResume()}),I(8,0),L(9,Ie,2,0)(10,ke,2,0),k(),l(),s(11,"button",7),u("click",function(){return e.openThrottleSettingsDialog()}),s(12,"spk-icon"),O(13,"speedometer"),l()()()()),t&2){let i;_(2),v((i=e.serverState())!=null&&i.ActiveTask&&(!((i=e.statusData())==null||i.task==null)&&i.task.Status)&&((i=e.statusData())==null||i.task==null?null:i.task.Status)!=="Completed"?2:e.nextBackup().backup||e.nextBackup().time?3:(i=e.serverState())!=null&&i.ActiveTask?5:4),_(5),S("loader",e.isResuming()),_(2),v(e.isRunning()?9:10)}},dependencies:[le,y,ee,ne,ae],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:1rem;min-height:3.875rem;border-bottom:1px solid var(--base-level-40)}.current-backup[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%;gap:.5rem}.current-backup-progress[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;min-width:18.75rem}.current-backup-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"],changeDetection:0})};export{w as a};
@@ -1 +1 @@
1
- import{c as M}from"./chunk-TYO44G6M.js";import"./chunk-AIOUSVMR.js";import"./chunk-THUAAYGA.js";import{g as h}from"./chunk-ECH6I3YN.js";import"./chunk-KLIPTMVG.js";import"./chunk-V5GVLIPJ.js";import"./chunk-2HS3CYRN.js";import{Ab as t,Bb as i,Cb as g,Ob as l,Qa as u,Ub as C,Vb as c,X as m,db as s,fc as O,ib as _,wb as f}from"./chunk-DTPZU6NP.js";import"./chunk-C6Q5SG76.js";var v=["*",[["","footer",""]]],T=["*","[footer]"],r=class n{static \u0275fac=function(e){return new(e||n)};static \u0275cmp=s({type:n,selectors:[["app-custom-card"]],ngContentSelectors:T,decls:11,vars:0,consts:[[1,"card"],["src","/assets/noise/auth-noise.svg",1,"noise"],[1,"header-title"],["src","/assets/duplicati/duplicati.svg","alt",""],[1,"bg"]],template:function(e,a){e&1&&(C(v),t(0,"div",0),g(1,"img",1),t(2,"header")(3,"div",2),g(4,"img",3),O(5," Duplicati "),i()(),t(6,"main"),c(7),t(8,"footer"),c(9,1),i()()(),g(10,"div",4))},styles:['[_nghost-%COMP%]{height:100vh;width:100vw;display:flex;align-items:center;justify-content:center;background-color:var(--base-level-20)}body.dark [_nghost-%COMP%] .card[_ngcontent-%COMP%]:before{background:radial-gradient(rgba(var(--primary-rgb-900),1),#0000 60%)}.card[_ngcontent-%COMP%]{max-width:480px;width:100%;position:relative;z-index:100;background-color:var(--base-level-10);border-radius:var(--shape-5);box-shadow:var(--box-shadow-40);border:1px solid var(--base-level-30);overflow:hidden}.card[_ngcontent-%COMP%]:before{content:"";position:absolute;height:480px;transform:translateY(-285px);left:0;right:0;z-index:-2;background:radial-gradient(rgba(var(--primary-rgb-100),1),#0000 60%)}.card[_ngcontent-%COMP%] img.noise[_ngcontent-%COMP%]{position:absolute;height:480px;width:100%;transform:translateY(-285px);left:0;right:0;z-index:-1;mask-image:radial-gradient(#000,#0000 60%)}header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:2rem 2rem 0;gap:12px;position:relative;z-index:10}.header-title[_ngcontent-%COMP%]{font:var(--title-30);display:flex;align-items:center;gap:10px}.header-title[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:28px;filter:drop-shadow(0 2px 3px rgba(0,0,0,.3))}main[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;padding:2rem;gap:2.5rem;position:relative;z-index:10}main[_ngcontent-%COMP%] footer[_ngcontent-%COMP%]{font:var(--paragraph-40);color:var(--base-level-60R);text-align:center;text-wrap:balance}.bg[_ngcontent-%COMP%]{position:fixed;inset:0;width:100vw;height:100vh;background-image:url(/assets/backgrounds/base-bg.svg);background-size:cover;background-position:center;background-repeat:no-repeat}body.dark[_ngcontent-%COMP%] .bg[_ngcontent-%COMP%]{opacity:1}footer[_ngcontent-%COMP%]:empty{display:none}'],changeDetection:0})};function x(n,o){n&1&&(t(0,"h3"),l(1,0),i())}function y(n,o){n&1&&(t(0,"h3"),l(1,1),i(),t(2,"button",3),l(3,2),i())}var d=class n{#e=m(M);isLoggingOut=this.#e.isLoggingOut;ngOnInit(){this.#e.logout()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=s({type:n,selectors:[["app-logout"]],decls:3,vars:1,consts:()=>{let o;o=$localize`Logging out...`;let e;e=$localize`You have successfully logged out your being redirected to login page.`;let a;return a=$localize`Go to login page`,[o,e,a,["spk-button","","routerLink","/",1,"raised","primary"]]},template:function(e,a){e&1&&(t(0,"app-custom-card"),_(1,x,2,0,"h3")(2,y,4,0),i()),e&2&&(u(),f(a.isLoggingOut()?1:2))},dependencies:[r,h],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})};export{d as default};
1
+ import{d as M}from"./chunk-N7UCCMLS.js";import"./chunk-WBNOGAKJ.js";import"./chunk-G3YJXHRY.js";import{g as h}from"./chunk-PUSUA4U7.js";import"./chunk-L3T52MCL.js";import"./chunk-4XPN5ZGE.js";import"./chunk-3GK4TNUH.js";import{Ab as t,Bb as i,Cb as g,Ob as l,Qa as u,Ub as C,Vb as c,X as m,db as s,fc as O,ib as _,wb as f}from"./chunk-PTC4N7TU.js";import"./chunk-7CGTOI24.js";var v=["*",[["","footer",""]]],T=["*","[footer]"],r=class n{static \u0275fac=function(e){return new(e||n)};static \u0275cmp=s({type:n,selectors:[["app-custom-card"]],ngContentSelectors:T,decls:11,vars:0,consts:[[1,"card"],["src","/assets/noise/auth-noise.svg",1,"noise"],[1,"header-title"],["src","/assets/duplicati/duplicati.svg","alt",""],[1,"bg"]],template:function(e,a){e&1&&(C(v),t(0,"div",0),g(1,"img",1),t(2,"header")(3,"div",2),g(4,"img",3),O(5," Duplicati "),i()(),t(6,"main"),c(7),t(8,"footer"),c(9,1),i()()(),g(10,"div",4))},styles:['[_nghost-%COMP%]{height:100vh;width:100vw;display:flex;align-items:center;justify-content:center;background-color:var(--base-level-20)}body.dark [_nghost-%COMP%] .card[_ngcontent-%COMP%]:before{background:radial-gradient(rgba(var(--primary-rgb-900),1),#0000 60%)}.card[_ngcontent-%COMP%]{max-width:480px;width:100%;position:relative;z-index:100;background-color:var(--base-level-10);border-radius:var(--shape-5);box-shadow:var(--box-shadow-40);border:1px solid var(--base-level-30);overflow:hidden}.card[_ngcontent-%COMP%]:before{content:"";position:absolute;height:480px;transform:translateY(-285px);left:0;right:0;z-index:-2;background:radial-gradient(rgba(var(--primary-rgb-100),1),#0000 60%)}.card[_ngcontent-%COMP%] img.noise[_ngcontent-%COMP%]{position:absolute;height:480px;width:100%;transform:translateY(-285px);left:0;right:0;z-index:-1;mask-image:radial-gradient(#000,#0000 60%)}header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:2rem 2rem 0;gap:12px;position:relative;z-index:10}.header-title[_ngcontent-%COMP%]{font:var(--title-30);display:flex;align-items:center;gap:10px}.header-title[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:28px;filter:drop-shadow(0 2px 3px rgba(0,0,0,.3))}main[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;padding:2rem;gap:2.5rem;position:relative;z-index:10}main[_ngcontent-%COMP%] footer[_ngcontent-%COMP%]{font:var(--paragraph-40);color:var(--base-level-60R);text-align:center;text-wrap:balance}.bg[_ngcontent-%COMP%]{position:fixed;inset:0;width:100vw;height:100vh;background-image:url(/assets/backgrounds/base-bg.svg);background-size:cover;background-position:center;background-repeat:no-repeat}body.dark[_ngcontent-%COMP%] .bg[_ngcontent-%COMP%]{opacity:1}footer[_ngcontent-%COMP%]:empty{display:none}'],changeDetection:0})};function x(n,o){n&1&&(t(0,"h3"),l(1,0),i())}function y(n,o){n&1&&(t(0,"h3"),l(1,1),i(),t(2,"button",3),l(3,2),i())}var d=class n{#e=m(M);isLoggingOut=this.#e.isLoggingOut;ngOnInit(){this.#e.logout()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=s({type:n,selectors:[["app-logout"]],decls:3,vars:1,consts:()=>{let o;o=$localize`Logging out...`;let e;e=$localize`You have successfully logged out your being redirected to login page.`;let a;return a=$localize`Go to login page`,[o,e,a,["spk-button","","routerLink","/",1,"raised","primary"]]},template:function(e,a){e&1&&(t(0,"app-custom-card"),_(1,x,2,0,"h3")(2,y,4,0),i()),e&2&&(u(),f(a.isLoggingOut()?1:2))},dependencies:[r,h],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})};export{d as default};
@@ -1 +1 @@
1
- import{a as Ke}from"./chunk-Q67EYU7V.js";import{a as he,b as se}from"./chunk-N5K6ODRA.js";import{a as pe}from"./chunk-OB2RR7QV.js";import{a as be}from"./chunk-VFLEQIHL.js";import"./chunk-RDRLCN5M.js";import{a as le}from"./chunk-GEEPH37P.js";import"./chunk-XL5J65PI.js";import{a as Be}from"./chunk-WZG34QS3.js";import"./chunk-4IJQ7AAQ.js";import"./chunk-TYO44G6M.js";import{a as Ie,d as ke}from"./chunk-AIOUSVMR.js";import"./chunk-THUAAYGA.js";import{a as z,g as _e,j as ve,k as ye,o as re,v as xe}from"./chunk-ECH6I3YN.js";import{b as ae}from"./chunk-KLIPTMVG.js";import"./chunk-V5GVLIPJ.js";import{pa as w,sa as oe}from"./chunk-2HS3CYRN.js";import"./chunk-UQH5ZQG7.js";import{Ab as i,Bb as t,Cb as c,Db as A,Eb as P,Gb as K,Lc as fe,Mb as N,Nb as M,Ob as _,Pb as s,Qa as o,Qb as d,Rb as U,Sb as y,Tb as m,X as R,ca as D,da as $,db as b,fc as F,gc as x,hc as S,ib as C,jc as Re,nc as De,oc as $e,p as B,pa as ie,pc as X,rb as h,sa as G,tb as f,vc as u,wb as E,wc as g,xb as I,xc as T,yb as k,zb as v}from"./chunk-DTPZU6NP.js";import{a as te}from"./chunk-C6Q5SG76.js";function we(n,a){n&1&&c(0,"spk-progress-bar",31)}function ze(n,a){n&1&&c(0,"div",34)}function Ve(n,a){n&1&&c(0,"div",35)}function We(n,a){n&1&&c(0,"div",36)}function je(n,a){if(n&1&&F(0),n&2){let e=m().$implicit;S(" (",e.data==null?null:e.data.WarningsActualLength," warnings) ")}}function qe(n,a){if(n&1&&(i(0,"details",45)(1,"summary"),N(2,15),c(3,"spk-icon"),i(4,"div",46),c(5,"spk-icon",39),t(),M(),t(),i(6,"div",47)(7,"p"),_(8,16),u(9,"date"),t(),i(10,"p"),_(11,17),u(12,"date"),t(),i(13,"p"),_(14,18),u(15,"durationFormat"),t(),i(16,"p"),_(17,19),t(),c(18,"spk-divider"),i(19,"p"),_(20,20),t(),i(21,"p"),_(22,21),t()()(),i(23,"details",45)(24,"summary")(25,"spk-icon"),F(26,"file-archive"),t(),F(27," Compression phase "),i(28,"div",46)(29,"spk-icon",39),F(30,"caret-down"),t()()(),i(31,"div",47)(32,"p"),_(33,22),u(34,"date"),t(),i(35,"p"),_(36,23),u(37,"date"),t(),i(38,"p"),_(39,24),u(40,"durationFormat"),t(),c(41,"spk-divider"),i(42,"p"),_(43,25),u(44,"bytes"),t(),i(45,"p"),_(46,26),u(47,"bytes"),t(),i(48,"p"),_(49,27),u(50,"bytes"),t(),c(51,"spk-divider"),i(52,"p"),_(53,28),t(),i(54,"p"),_(55,29),t()()()),n&2){let e=m(2).$implicit;o(9),s(T(9,17,e.data==null||e.data.TestResults==null?null:e.data.TestResults.BeginTime,"medium")),d(8),o(3),s(T(12,20,e.data==null||e.data.TestResults==null?null:e.data.TestResults.EndTime,"medium")),d(11),o(3),s(g(15,23,e.data==null||e.data.TestResults==null?null:e.data.TestResults.Duration)),d(14),o(2),s(e.data==null||e.data.TestResults==null?null:e.data.TestResults.VerificationsActualLength),d(17),o(3),s(e.data==null||e.data.TestResults==null?null:e.data.TestResults.WarningsActualLength),d(20),o(2),s(e.data==null||e.data.TestResults==null?null:e.data.TestResults.ErrorsActualLength),d(22),o(12),s(T(34,25,e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.BeginTime,"medium")),d(33),o(3),s(T(37,28,e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.EndTime,"medium")),d(36),o(3),s(g(40,31,e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.Duration)),d(39),o(4),s(e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.DeletedFileCount)(g(44,33,e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.DeletedFileSize)),d(43),o(3),s(e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.DownloadedFileCount)(g(47,35,e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.DownloadedFileSize)),d(46),o(3),s(e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.UploadedFileCount)(g(50,37,e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.UploadedFileSize)),d(49),o(3),s(e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.WarningsActualLength),d(53),o(2),s(e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.ErrorsActualLength),d(55)}}function Je(n,a){if(n&1&&(i(0,"code"),F(1),u(2,"json"),t()),n&2){let e=a.$implicit;o(),x(g(2,1,e))}}function He(n,a){if(n&1&&(i(0,"details",45)(1,"summary"),N(2,30),c(3,"spk-icon"),i(4,"div",46),c(5,"spk-icon",39),t(),M(),t(),i(6,"div",47),k(7,Je,3,3,"code",null,I),t()()),n&2){let e=m(2).$implicit;o(5),s(e.data.VerificationsActualLength),d(2),o(2),v(e.data.Verifications)}}function Qe(n,a){if(n&1&&(i(0,"code"),F(1),u(2,"json"),t()),n&2){let e=a.$implicit;o(),x(g(2,1,e))}}function Ye(n,a){n&1&&(i(0,"p"),F(1,"No errors"),t())}function Ze(n,a){if(n&1&&(i(0,"code"),F(1),u(2,"json"),t()),n&2){let e=a.$implicit;o(),x(g(2,1,e))}}function en(n,a){if(n&1&&(i(0,"section",40)(1,"app-toggle-card",41),A(2,42),i(3,"h3"),_(4,0),t(),P(),A(5,43),i(6,"p"),_(7,1),u(8,"date"),t(),i(9,"p"),_(10,2),u(11,"date"),t(),i(12,"p"),_(13,3),u(14,"durationFormat"),t(),P(),t(),i(15,"app-toggle-card",41),A(16,42),i(17,"h3"),_(18,4),t(),P(),A(19,43),i(20,"p"),_(21,5),u(22,"bytes"),t(),i(23,"p"),_(24,6),u(25,"bytes"),t(),i(26,"p"),_(27,7),u(28,"bytes"),t(),i(29,"p"),_(30,8),u(31,"bytes"),t(),i(32,"p"),_(33,9),t(),i(34,"p"),_(35,10),t(),i(36,"p"),_(37,11),t(),P(),t(),i(38,"div",44),c(39,"spk-divider"),C(40,qe,56,39)(41,He,9,1,"details",45),i(42,"details",45)(43,"summary"),N(44,12),c(45,"spk-icon"),i(46,"div",46),c(47,"spk-icon",39),t(),M(),t(),i(48,"div",47),k(49,Qe,3,3,"code",null,I),t()(),i(51,"details",45)(52,"summary"),N(53,13),c(54,"spk-icon"),i(55,"div",46),c(56,"spk-icon",39),t(),M(),t(),i(57,"div",47),C(58,Ye,2,0,"p"),k(59,Ze,3,3,"code",null,I),t()(),c(61,"spk-divider"),i(62,"details")(63,"summary"),N(64,14),c(65,"spk-icon"),i(66,"div",46),c(67,"spk-icon",39),t(),M(),t(),i(68,"code")(69,"button",48),F(70,"Copy"),t(),F(71),u(72,"json"),t()()()()),n&2){let e=m().$implicit;o(),h("disallowToggle",!0),o(7),s(T(8,22,e.data==null?null:e.data.BeginTime,"medium")),d(7),o(3),s(T(11,25,e.data==null?null:e.data.EndTime,"medium")),d(10),o(3),s(g(14,28,e.data==null?null:e.data.Duration)),d(13),o(),h("disallowToggle",!0),o(7),s(e.data==null?null:e.data.ExaminedFiles)(g(22,30,e.data==null?null:e.data.SizeOfExaminedFiles)),d(21),o(3),s(e.data==null?null:e.data.OpenedFiles)(g(25,32,e.data==null?null:e.data.SizeOfOpenedFiles)),d(24),o(3),s(e.data==null?null:e.data.AddedFiles)(g(28,34,e.data==null?null:e.data.SizeOfAddedFiles)),d(27),o(3),s(e.data==null?null:e.data.ModifiedFiles)(g(31,36,e.data==null?null:e.data.SizeOfModifiedFiles)),d(30),o(2),s(e.data==null?null:e.data.DeletedFiles),d(33),o(2),s(e.data==null?null:e.data.TooLargeFiles),d(35),o(2),s(e.data==null?null:e.data.FilesWithError),d(37),o(3),E((e.data==null?null:e.data.MainOperation)==="Backup"?40:-1),o(),E((e.data==null?null:e.data.MainOperation)==="Test"?41:-1),o(6),s(e.data==null?null:e.data.WarningsActualLength),d(44),o(2),v(e.data==null?null:e.data.Warnings),o(7),s(e.data==null?null:e.data.ErrorsActualLength),d(53),o(2),E((e.data==null||e.data.Errors==null?null:e.data.Errors.length)===0?58:-1),o(),v(e.data==null?null:e.data.Errors),o(12),S(" ",g(72,38,e.data)," ")}}function nn(n,a){if(n&1){let e=K();i(0,"article",32)(1,"header",33),y("click",function(){let r=D(e).$implicit,L=m();return $(L.toggleOpenEntry(r.id))}),C(2,ze,1,0,"div",34)(3,Ve,1,0,"div",35)(4,We,1,0,"div",36),i(5,"h3"),F(6),u(7,"date"),t(),i(8,"p"),F(9),C(10,je,1,1),t(),c(11,"div",37),i(12,"div",38)(13,"spk-icon",39),F(14,"caret-down"),t()()(),C(15,en,73,40,"section",40),t()}if(n&2){let e=a.$implicit,l=m();o(2),E(e.data!=null&&e.data.ErrorsActualLength&&(e.data==null?null:e.data.ErrorsActualLength)>0?2:e.data!=null&&e.data.WarningsActualLength&&(e.data==null?null:e.data.WarningsActualLength)>0?3:4),o(4),x(T(7,7,e.timestamp,"medium")),o(3),S(" ",e.data==null?null:e.data.MainOperation," "),o(),E(e.data!=null&&e.data.WarningsActualLength&&(e.data==null?null:e.data.WarningsActualLength)>0?10:-1),o(3),f("open",e.id===l.openEntry()),o(2),E(e.id===l.openEntry()?15:-1)}}var de=class n{#e=R(ae);backupId=ie.required();openEntry=G(null);pagination=G({offset:0,pagesize:100});resource=se({request:()=>te({id:this.backupId()},this.pagination()),loader:({request:a})=>this.#e.getApiV1BackupByIdLog({id:a.id,pagesize:100}).pipe(B(e=>e.map(l=>({id:l.ID,operationId:l.OperationID,timestamp:l.Timestamp*1e3,type:l.Type,data:JSON.parse(l.Message),exception:JSON.stringify(l.Exception)==="{}"?null:l.Exception}))))});toggleOpenEntry(a){if(this.openEntry()===a){this.openEntry.set(null);return}this.openEntry.set(a)}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=b({type:n,selectors:[["app-general-log"]],inputs:{backupId:[1,"backupId"]},decls:3,vars:1,consts:()=>{let a;a=$localize`Time`;let e;e=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let l;l=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let r;r=$localize`Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let L;L=$localize`Source files`;let V;V=$localize`Evaluated: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:)`;let W;W=$localize`Opened: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:)`;let j;j=$localize`Added: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:)`;let q;q=$localize`Modified: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:)`;let J;J=$localize`Deleted: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let H;H=$localize`Too large: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Q;Q=$localize`Files with error: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let O;O=$localize`${"\uFFFD#45\uFFFD"}:START_TAG_SPK_ICON:warning-circle${"[\uFFFD/#45\uFFFD|\uFFFD/#47\uFFFD]"}:CLOSE_TAG_SPK_ICON: Warnings ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#46\uFFFD"}:START_TAG_DIV:${"\uFFFD#47\uFFFD"}:START_TAG_SPK_ICON_1:caret-down${"[\uFFFD/#45\uFFFD|\uFFFD/#47\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"\uFFFD/#46\uFFFD"}:CLOSE_TAG_DIV:`,O=U(O);let Y;Y=$localize`${"\uFFFD#54\uFFFD"}:START_TAG_SPK_ICON:warning${"[\uFFFD/#54\uFFFD|\uFFFD/#56\uFFFD]"}:CLOSE_TAG_SPK_ICON: Errors ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#55\uFFFD"}:START_TAG_DIV:${"\uFFFD#56\uFFFD"}:START_TAG_SPK_ICON_1:caret-down${"[\uFFFD/#54\uFFFD|\uFFFD/#56\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"\uFFFD/#55\uFFFD"}:CLOSE_TAG_DIV:`,Y=U(Y);let Z;Z=$localize`${"\uFFFD#65\uFFFD"}:START_TAG_SPK_ICON:notepad${"[\uFFFD/#65\uFFFD|\uFFFD/#67\uFFFD]"}:CLOSE_TAG_SPK_ICON: Complete log ${"\uFFFD#66\uFFFD"}:START_TAG_DIV:${"\uFFFD#67\uFFFD"}:START_TAG_SPK_ICON_1:caret-down${"[\uFFFD/#65\uFFFD|\uFFFD/#67\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"\uFFFD/#66\uFFFD"}:CLOSE_TAG_DIV:`,Z=U(Z);let ee;ee=$localize`${"\uFFFD#3\uFFFD"}:START_TAG_SPK_ICON:circle-half-tilt${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SPK_ICON: Test phase ${"\uFFFD#4\uFFFD"}:START_TAG_DIV:${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON_1:caret-down${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_DIV:`,ee=U(ee);let Fe;Fe=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let ge;ge=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ee;Ee=$localize`Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let me;me=$localize`Verifications: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ce;Ce=$localize`Warnings: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Oe;Oe=$localize`Errors: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Le;Le=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Te;Te=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ae;Ae=$localize`Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Pe;Pe=$localize` Deleted files: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let Se;Se=$localize` Downloaded files: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let Ge;Ge=$localize` Uploaded files: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let Ne;Ne=$localize`Warnings: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Me;Me=$localize`Errors: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let ne;return ne=$localize`${"\uFFFD#3\uFFFD"}:START_TAG_SPK_ICON:warning-circle${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SPK_ICON: Verifications ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#4\uFFFD"}:START_TAG_DIV:${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON_1:caret-down${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_DIV:`,ne=U(ne),[a,e,l,r,L,V,W,j,q,J,H,Q,O,Y,Z,ee,Fe,ge,Ee,me,Ce,Oe,Le,Te,Ae,Pe,Se,Ge,Ne,Me,ne,[1,"indeterminate","primary"],[1,"log-entry"],[3,"click"],[1,"status","error"],[1,"status","warn"],[1,"status"],[1,"spacer"],[1,"action"],[1,"toggle-indicator"],[1,"log-content"],[3,"disallowToggle"],["title",""],["content",""],[1,"extra-info"],["name","details"],[1,"actions"],[1,"content"],["spk-button","",1,"small"]]},template:function(e,l){e&1&&(C(0,we,1,0,"spk-progress-bar",31),k(1,nn,16,10,"article",32,I)),e&2&&(E(l.resource.isLoading()?0:-1),o(),v(l.resource.value()))},dependencies:[Ke,ye,re,_e,z,le,w,pe,oe],styles:["[_nghost-%COMP%]{display:block}.log-entry[_ngcontent-%COMP%]{display:flex;flex-direction:column;cursor:pointer}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;padding:1rem;border-bottom:1px solid var(--base-level-40);background-color:var(--base-level-10);cursor:pointer}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]:hover{background-color:var(--base-level-20)}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-30);margin:0}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-level-60)}.toggle-indicator[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;height:1.25rem;transition:transform 125ms linear}.toggle-indicator.open[_ngcontent-%COMP%]{transform:rotate(180deg)}details[_ngcontent-%COMP%]{display:flex;flex-direction:column}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]{cursor:pointer;display:flex;align-items:center;gap:.5rem;padding:.75rem;border-radius:var(--shape-2);background-color:var(--base-level-20)}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]:focus{outline:none}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]:hover{background-color:var(--base-level-30)}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]::marker{font-size:0}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;flex:1 0;gap:.5rem;-webkit-user-select:none;user-select:none}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;height:2rem;transition:transform 125ms linear}details[open][_ngcontent-%COMP%] summary[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{transform:rotate(180deg)}details[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{padding:.75rem 1rem 0;display:flex;flex-direction:column;gap:.75rem}details[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}details[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{margin-top:.75rem;position:relative}details[_ngcontent-%COMP%] code[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{position:absolute;top:.75rem;right:.75rem}.extra-info[_ngcontent-%COMP%]{grid-column:1/-1;display:flex;flex-direction:column;gap:1rem}.extra-info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-bottom:.75rem}.extra-info[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{white-space:pre-wrap;padding:1rem;display:block;border-radius:var(--shape-2);background-color:var(--base-level-20)}.log-content[_ngcontent-%COMP%]{padding:1rem;display:grid;grid-template-columns:1fr 1fr;gap:1rem}.status[_ngcontent-%COMP%]{display:block;width:1rem;height:1rem;background-color:var(--success-500);border-radius:50%}.status.error[_ngcontent-%COMP%]{background-color:var(--error-500)}.status.warn[_ngcontent-%COMP%]{background-color:var(--warn-500)}"],changeDetection:0})};function tn(n,a){n&1&&c(0,"spk-progress-bar",0)}function on(n,a){if(n&1&&(i(0,"section",5)(1,"code"),F(2),u(3,"json"),t()()),n&2){let e=m().$implicit;o(2),x(g(3,1,e.data))}}function an(n,a){if(n&1){let e=K();i(0,"article",1)(1,"header",2),y("click",function(){let r=D(e).$implicit,L=m();return $(L.toggleOpenEntry(r.id))}),i(2,"h3"),F(3),u(4,"date"),t(),i(5,"div",3)(6,"spk-icon",4),F(7,"caret-down"),t()()(),C(8,on,4,3,"section",5),t()}if(n&2){let e=a.$implicit,l=m();o(3),Re("",T(4,6,e.timestamp,"medium"),": ",e.operation," ",e.path,""),o(3),f("open",e.id===l.openEntry()),o(2),E(e.id===l.openEntry()?8:-1)}}var ue=class n{#e=R(ae);backupId=ie.required();openEntry=G(null);pagination=G({offset:0,pagesize:100});resource=se({request:()=>te({id:this.backupId()},this.pagination()),loader:({request:a})=>this.#e.getApiV1BackupByIdRemotelog({id:a.id,pagesize:100}).pipe(B(e=>e.map((l,r)=>({id:l.ID,operationId:l.OperationID,timestamp:l.Timestamp*1e3,operation:l.Operation,path:l.Path,data:typeof l.Data=="string"?JSON.parse(l.Data):null}))))});toggleOpenEntry(a){if(this.openEntry()===a){this.openEntry.set(null);return}this.openEntry.set(a)}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=b({type:n,selectors:[["app-remote-log"]],inputs:{backupId:[1,"backupId"]},decls:3,vars:1,consts:[[1,"indeterminate","primary"],[1,"log-entry"],[3,"click"],[1,"actions"],[1,"toggle-indicator"],[1,"log-content"]],template:function(e,l){e&1&&(C(0,tn,1,0,"spk-progress-bar",0),k(1,an,9,9,"article",1,I)),e&2&&(E(l.resource.isLoading()?0:-1),o(),v(l.resource.value()))},dependencies:[oe,re,z,w],styles:["[_nghost-%COMP%]{display:block}.log-entry[_ngcontent-%COMP%]{display:flex;flex-direction:column}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:1rem;border-bottom:1px solid var(--base-level-40);background-color:var(--base-level-10);cursor:pointer}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]:hover{background-color:var(--base-level-20)}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-30);margin:0;-webkit-user-select:none;user-select:none}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-level-60)}.toggle-indicator[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;height:1.25rem;transition:transform 125ms linear}.toggle-indicator.open[_ngcontent-%COMP%]{transform:rotate(180deg)}.log-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:1rem}code[_ngcontent-%COMP%]{white-space:pre-wrap;padding:1rem;display:block;border-radius:var(--shape-2);background-color:var(--base-level-20)}"],changeDetection:0})};function ln(n,a){if(n&1&&(F(0," - "),A(1),_(2,6),P(),F(3),u(4,"durationFormat")),n&2){m(2);let e=X(6);o(3),S(" ",g(4,1,e.Backup==null||e.Backup.Metadata==null?null:e.Backup.Metadata.LastBackupDuration)," ")}}function _n(n,a){n&1&&(A(0),_(1,7),P())}function rn(n,a){if(n&1&&(F(0),u(1,"bytes")),n&2){m(2);let e=X(6);S(" ",g(1,1,e.Backup==null||e.Backup.Metadata==null?null:e.Backup.Metadata.SourceFilesSize)," ")}}function pn(n,a){n&1&&(A(0),_(1,8),P())}function sn(n,a){if(n&1&&(F(0),u(1,"bytes")),n&2){m(2);let e=X(6);S(" ",g(1,1,e.Backup==null||e.Backup.Metadata==null?null:e.Backup.Metadata.TargetFilesSize)," ")}}function dn(n,a){n&1&&(A(0),_(1,9),P())}function un(n,a){if(n&1&&(i(0,"spk-chip",19),_(1,10),t()),n&2){m(2);let e=X(6);o(),s(e.Backup==null||e.Backup.Metadata==null?null:e.Backup.Metadata.BackupListCount),d(1)}}function cn(n,a){n&1&&(i(0,"spk-chip",20),_(1,11),t())}function Fn(n,a){if(n&1&&(i(0,"div",14)(1,"div",18)(2,"h3"),F(3),i(4,"spk-icon"),F(5,"database"),t()(),i(6,"p")(7,"span"),_(8,3),t(),F(9),u(10,"date"),C(11,ln,5,3)(12,_n,2,0,"ng-container"),t(),i(13,"p")(14,"span"),_(15,4),t(),C(16,rn,2,3)(17,pn,2,0,"ng-container"),t(),i(18,"p")(19,"span"),_(20,5),t(),C(21,sn,2,3)(22,dn,2,0,"ng-container"),t()(),C(23,un,2,1,"spk-chip",19)(24,cn,2,0,"spk-chip",20),t()),n&2){let e,l=m(),r=X(6);o(3),S(" ",(e=r.Backup==null?null:r.Backup.Name)!==null&&e!==void 0?e:l.MISSING_BACKUP_NAME," "),o(6),S(" ",T(10,6,r.Backup==null||r.Backup.Metadata==null?null:r.Backup.Metadata.LastBackupDate,"short")," "),o(2),E(!(r.Backup==null||r.Backup.Metadata==null)&&r.Backup.Metadata.LastBackupDuration?11:12),o(5),E(!(r.Backup==null||r.Backup.Metadata==null)&&r.Backup.Metadata.SourceFilesSize?16:17),o(5),E(!(r.Backup==null||r.Backup.Metadata==null)&&r.Backup.Metadata.TargetFilesSize?21:22),o(2),E(!(r.Backup==null||r.Backup.Metadata==null)&&r.Backup.Metadata.BackupListCount?23:24)}}function gn(n,a){if(n&1&&c(0,"app-general-log",17),n&2){let e=m();h("backupId",e.backupId())}}function En(n,a){if(n&1&&c(0,"app-remote-log",17),n&2){let e=m();h("backupId",e.backupId())}}var ce=class n{#e=R(Ie);#n=R(Be);MISSING_BACKUP_NAME=$localize`Backup name missing`;activeTab=G("general");backupId=he(this.#e.params.pipe(B(a=>a.id)));backup=fe(()=>{let a=this.backupId();return a?this.#n.getBackupById(a):null});static \u0275fac=function(e){return new(e||n)};static \u0275cmp=b({type:n,selectors:[["app-log"]],decls:15,vars:8,consts:()=>{let a;a=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let e;e=$localize`General`;let l;l=$localize` Destination `;let r;r=$localize`Last successful backup:`;let L;L=$localize`Source:`;let V;V=$localize`Destination:`;let W;W=$localize`took`;let j;j=$localize`N/A`;let q;q=$localize`N/A`;let J;J=$localize`N/A`;let H;H=$localize`${"\uFFFD0\uFFFD"}:INTERPOLATION: Version`;let Q;return Q=$localize`No version yet`,[a,e,l,r,L,V,W,j,q,J,H,Q,[1,"back"],["type","button","spk-button","","routerLink","/",1,"small"],[1,"backup"],[1,"primary"],["tab","",3,"click"],[3,"backupId"],[1,"text"],[1,"simple","success"],[1,"simple"]]},template:function(e,l){if(e&1){let r=K();c(0,"app-status-bar"),i(1,"section")(2,"div",12)(3,"button",13),N(4,0),c(5,"spk-icon"),M(),t()(),De(6),C(7,Fn,25,9,"div",14),i(8,"spk-tabs",15)(9,"button",16),y("click",function(){return D(r),$(l.activeTab.set("general"))}),_(10,1),t(),i(11,"button",16),y("click",function(){return D(r),$(l.activeTab.set("destination"))}),_(12,2),t()(),C(13,gn,1,1,"app-general-log",17)(14,En,1,1,"app-remote-log",17),t()}if(e&2){o(6);let r=$e(l.backup());o(),E(r?7:-1),o(2),f("active",l.activeTab()==="general"),o(2),f("active",l.activeTab()==="destination"),o(2),E(l.activeTab()==="general"?13:-1),o(),E(l.activeTab()==="destination"?14:-1)}},dependencies:[xe,de,ue,ke,le,pe,w,be,z,_e,ve],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:1rem 1.5rem;gap:1rem}spk-tabs[_ngcontent-%COMP%]{margin-bottom:1rem}.backup[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem;gap:1rem;border:1px solid var(--base-level-40);border-radius:var(--shape-3);box-shadow:var(--shadow-1)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;width:100%;max-width:40%}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{color:var(--base-level-60)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-level-60)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--base-level-70)}"],changeDetection:0})};export{ce as default};
1
+ import{a as Ke}from"./chunk-XC6KYSRC.js";import{a as he,b as se}from"./chunk-NV2YMSSM.js";import{a as pe}from"./chunk-IHYIT4I3.js";import{a as be}from"./chunk-RIGBDLYY.js";import"./chunk-XBZX6CUW.js";import{a as le}from"./chunk-HGERKLOF.js";import"./chunk-ZOUY24KQ.js";import{a as Be}from"./chunk-QX5XWUM2.js";import"./chunk-LHSJLKCF.js";import"./chunk-N7UCCMLS.js";import{a as Ie,d as ke}from"./chunk-WBNOGAKJ.js";import"./chunk-G3YJXHRY.js";import{a as z,g as _e,j as ve,k as ye,o as re,v as xe}from"./chunk-PUSUA4U7.js";import{b as ae}from"./chunk-L3T52MCL.js";import"./chunk-4XPN5ZGE.js";import{pa as w,sa as oe}from"./chunk-3GK4TNUH.js";import"./chunk-CHZ7TMI7.js";import{Ab as i,Bb as t,Cb as c,Db as A,Eb as P,Gb as K,Lc as fe,Mb as N,Nb as M,Ob as _,Pb as s,Qa as o,Qb as d,Rb as U,Sb as y,Tb as m,X as R,ca as D,da as $,db as b,fc as F,gc as x,hc as S,ib as C,jc as Re,nc as De,oc as $e,p as B,pa as ie,pc as X,rb as h,sa as G,tb as f,vc as u,wb as E,wc as g,xb as I,xc as T,yb as k,zb as v}from"./chunk-PTC4N7TU.js";import{a as te}from"./chunk-7CGTOI24.js";function we(n,a){n&1&&c(0,"spk-progress-bar",31)}function ze(n,a){n&1&&c(0,"div",34)}function Ve(n,a){n&1&&c(0,"div",35)}function We(n,a){n&1&&c(0,"div",36)}function je(n,a){if(n&1&&F(0),n&2){let e=m().$implicit;S(" (",e.data==null?null:e.data.WarningsActualLength," warnings) ")}}function qe(n,a){if(n&1&&(i(0,"details",45)(1,"summary"),N(2,15),c(3,"spk-icon"),i(4,"div",46),c(5,"spk-icon",39),t(),M(),t(),i(6,"div",47)(7,"p"),_(8,16),u(9,"date"),t(),i(10,"p"),_(11,17),u(12,"date"),t(),i(13,"p"),_(14,18),u(15,"durationFormat"),t(),i(16,"p"),_(17,19),t(),c(18,"spk-divider"),i(19,"p"),_(20,20),t(),i(21,"p"),_(22,21),t()()(),i(23,"details",45)(24,"summary")(25,"spk-icon"),F(26,"file-archive"),t(),F(27," Compression phase "),i(28,"div",46)(29,"spk-icon",39),F(30,"caret-down"),t()()(),i(31,"div",47)(32,"p"),_(33,22),u(34,"date"),t(),i(35,"p"),_(36,23),u(37,"date"),t(),i(38,"p"),_(39,24),u(40,"durationFormat"),t(),c(41,"spk-divider"),i(42,"p"),_(43,25),u(44,"bytes"),t(),i(45,"p"),_(46,26),u(47,"bytes"),t(),i(48,"p"),_(49,27),u(50,"bytes"),t(),c(51,"spk-divider"),i(52,"p"),_(53,28),t(),i(54,"p"),_(55,29),t()()()),n&2){let e=m(2).$implicit;o(9),s(T(9,17,e.data==null||e.data.TestResults==null?null:e.data.TestResults.BeginTime,"medium")),d(8),o(3),s(T(12,20,e.data==null||e.data.TestResults==null?null:e.data.TestResults.EndTime,"medium")),d(11),o(3),s(g(15,23,e.data==null||e.data.TestResults==null?null:e.data.TestResults.Duration)),d(14),o(2),s(e.data==null||e.data.TestResults==null?null:e.data.TestResults.VerificationsActualLength),d(17),o(3),s(e.data==null||e.data.TestResults==null?null:e.data.TestResults.WarningsActualLength),d(20),o(2),s(e.data==null||e.data.TestResults==null?null:e.data.TestResults.ErrorsActualLength),d(22),o(12),s(T(34,25,e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.BeginTime,"medium")),d(33),o(3),s(T(37,28,e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.EndTime,"medium")),d(36),o(3),s(g(40,31,e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.Duration)),d(39),o(4),s(e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.DeletedFileCount)(g(44,33,e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.DeletedFileSize)),d(43),o(3),s(e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.DownloadedFileCount)(g(47,35,e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.DownloadedFileSize)),d(46),o(3),s(e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.UploadedFileCount)(g(50,37,e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.UploadedFileSize)),d(49),o(3),s(e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.WarningsActualLength),d(53),o(2),s(e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.ErrorsActualLength),d(55)}}function Je(n,a){if(n&1&&(i(0,"code"),F(1),u(2,"json"),t()),n&2){let e=a.$implicit;o(),x(g(2,1,e))}}function He(n,a){if(n&1&&(i(0,"details",45)(1,"summary"),N(2,30),c(3,"spk-icon"),i(4,"div",46),c(5,"spk-icon",39),t(),M(),t(),i(6,"div",47),k(7,Je,3,3,"code",null,I),t()()),n&2){let e=m(2).$implicit;o(5),s(e.data.VerificationsActualLength),d(2),o(2),v(e.data.Verifications)}}function Qe(n,a){if(n&1&&(i(0,"code"),F(1),u(2,"json"),t()),n&2){let e=a.$implicit;o(),x(g(2,1,e))}}function Ye(n,a){n&1&&(i(0,"p"),F(1,"No errors"),t())}function Ze(n,a){if(n&1&&(i(0,"code"),F(1),u(2,"json"),t()),n&2){let e=a.$implicit;o(),x(g(2,1,e))}}function en(n,a){if(n&1&&(i(0,"section",40)(1,"app-toggle-card",41),A(2,42),i(3,"h3"),_(4,0),t(),P(),A(5,43),i(6,"p"),_(7,1),u(8,"date"),t(),i(9,"p"),_(10,2),u(11,"date"),t(),i(12,"p"),_(13,3),u(14,"durationFormat"),t(),P(),t(),i(15,"app-toggle-card",41),A(16,42),i(17,"h3"),_(18,4),t(),P(),A(19,43),i(20,"p"),_(21,5),u(22,"bytes"),t(),i(23,"p"),_(24,6),u(25,"bytes"),t(),i(26,"p"),_(27,7),u(28,"bytes"),t(),i(29,"p"),_(30,8),u(31,"bytes"),t(),i(32,"p"),_(33,9),t(),i(34,"p"),_(35,10),t(),i(36,"p"),_(37,11),t(),P(),t(),i(38,"div",44),c(39,"spk-divider"),C(40,qe,56,39)(41,He,9,1,"details",45),i(42,"details",45)(43,"summary"),N(44,12),c(45,"spk-icon"),i(46,"div",46),c(47,"spk-icon",39),t(),M(),t(),i(48,"div",47),k(49,Qe,3,3,"code",null,I),t()(),i(51,"details",45)(52,"summary"),N(53,13),c(54,"spk-icon"),i(55,"div",46),c(56,"spk-icon",39),t(),M(),t(),i(57,"div",47),C(58,Ye,2,0,"p"),k(59,Ze,3,3,"code",null,I),t()(),c(61,"spk-divider"),i(62,"details")(63,"summary"),N(64,14),c(65,"spk-icon"),i(66,"div",46),c(67,"spk-icon",39),t(),M(),t(),i(68,"code")(69,"button",48),F(70,"Copy"),t(),F(71),u(72,"json"),t()()()()),n&2){let e=m().$implicit;o(),h("disallowToggle",!0),o(7),s(T(8,22,e.data==null?null:e.data.BeginTime,"medium")),d(7),o(3),s(T(11,25,e.data==null?null:e.data.EndTime,"medium")),d(10),o(3),s(g(14,28,e.data==null?null:e.data.Duration)),d(13),o(),h("disallowToggle",!0),o(7),s(e.data==null?null:e.data.ExaminedFiles)(g(22,30,e.data==null?null:e.data.SizeOfExaminedFiles)),d(21),o(3),s(e.data==null?null:e.data.OpenedFiles)(g(25,32,e.data==null?null:e.data.SizeOfOpenedFiles)),d(24),o(3),s(e.data==null?null:e.data.AddedFiles)(g(28,34,e.data==null?null:e.data.SizeOfAddedFiles)),d(27),o(3),s(e.data==null?null:e.data.ModifiedFiles)(g(31,36,e.data==null?null:e.data.SizeOfModifiedFiles)),d(30),o(2),s(e.data==null?null:e.data.DeletedFiles),d(33),o(2),s(e.data==null?null:e.data.TooLargeFiles),d(35),o(2),s(e.data==null?null:e.data.FilesWithError),d(37),o(3),E((e.data==null?null:e.data.MainOperation)==="Backup"?40:-1),o(),E((e.data==null?null:e.data.MainOperation)==="Test"?41:-1),o(6),s(e.data==null?null:e.data.WarningsActualLength),d(44),o(2),v(e.data==null?null:e.data.Warnings),o(7),s(e.data==null?null:e.data.ErrorsActualLength),d(53),o(2),E((e.data==null||e.data.Errors==null?null:e.data.Errors.length)===0?58:-1),o(),v(e.data==null?null:e.data.Errors),o(12),S(" ",g(72,38,e.data)," ")}}function nn(n,a){if(n&1){let e=K();i(0,"article",32)(1,"header",33),y("click",function(){let r=D(e).$implicit,L=m();return $(L.toggleOpenEntry(r.id))}),C(2,ze,1,0,"div",34)(3,Ve,1,0,"div",35)(4,We,1,0,"div",36),i(5,"h3"),F(6),u(7,"date"),t(),i(8,"p"),F(9),C(10,je,1,1),t(),c(11,"div",37),i(12,"div",38)(13,"spk-icon",39),F(14,"caret-down"),t()()(),C(15,en,73,40,"section",40),t()}if(n&2){let e=a.$implicit,l=m();o(2),E(e.data!=null&&e.data.ErrorsActualLength&&(e.data==null?null:e.data.ErrorsActualLength)>0?2:e.data!=null&&e.data.WarningsActualLength&&(e.data==null?null:e.data.WarningsActualLength)>0?3:4),o(4),x(T(7,7,e.timestamp,"medium")),o(3),S(" ",e.data==null?null:e.data.MainOperation," "),o(),E(e.data!=null&&e.data.WarningsActualLength&&(e.data==null?null:e.data.WarningsActualLength)>0?10:-1),o(3),f("open",e.id===l.openEntry()),o(2),E(e.id===l.openEntry()?15:-1)}}var de=class n{#e=R(ae);backupId=ie.required();openEntry=G(null);pagination=G({offset:0,pagesize:100});resource=se({request:()=>te({id:this.backupId()},this.pagination()),loader:({request:a})=>this.#e.getApiV1BackupByIdLog({id:a.id,pagesize:100}).pipe(B(e=>e.map(l=>({id:l.ID,operationId:l.OperationID,timestamp:l.Timestamp*1e3,type:l.Type,data:JSON.parse(l.Message),exception:JSON.stringify(l.Exception)==="{}"?null:l.Exception}))))});toggleOpenEntry(a){if(this.openEntry()===a){this.openEntry.set(null);return}this.openEntry.set(a)}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=b({type:n,selectors:[["app-general-log"]],inputs:{backupId:[1,"backupId"]},decls:3,vars:1,consts:()=>{let a;a=$localize`Time`;let e;e=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let l;l=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let r;r=$localize`Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let L;L=$localize`Source files`;let V;V=$localize`Evaluated: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:)`;let W;W=$localize`Opened: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:)`;let j;j=$localize`Added: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:)`;let q;q=$localize`Modified: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:)`;let J;J=$localize`Deleted: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let H;H=$localize`Too large: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Q;Q=$localize`Files with error: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let O;O=$localize`${"\uFFFD#45\uFFFD"}:START_TAG_SPK_ICON:warning-circle${"[\uFFFD/#45\uFFFD|\uFFFD/#47\uFFFD]"}:CLOSE_TAG_SPK_ICON: Warnings ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#46\uFFFD"}:START_TAG_DIV:${"\uFFFD#47\uFFFD"}:START_TAG_SPK_ICON_1:caret-down${"[\uFFFD/#45\uFFFD|\uFFFD/#47\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"\uFFFD/#46\uFFFD"}:CLOSE_TAG_DIV:`,O=U(O);let Y;Y=$localize`${"\uFFFD#54\uFFFD"}:START_TAG_SPK_ICON:warning${"[\uFFFD/#54\uFFFD|\uFFFD/#56\uFFFD]"}:CLOSE_TAG_SPK_ICON: Errors ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#55\uFFFD"}:START_TAG_DIV:${"\uFFFD#56\uFFFD"}:START_TAG_SPK_ICON_1:caret-down${"[\uFFFD/#54\uFFFD|\uFFFD/#56\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"\uFFFD/#55\uFFFD"}:CLOSE_TAG_DIV:`,Y=U(Y);let Z;Z=$localize`${"\uFFFD#65\uFFFD"}:START_TAG_SPK_ICON:notepad${"[\uFFFD/#65\uFFFD|\uFFFD/#67\uFFFD]"}:CLOSE_TAG_SPK_ICON: Complete log ${"\uFFFD#66\uFFFD"}:START_TAG_DIV:${"\uFFFD#67\uFFFD"}:START_TAG_SPK_ICON_1:caret-down${"[\uFFFD/#65\uFFFD|\uFFFD/#67\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"\uFFFD/#66\uFFFD"}:CLOSE_TAG_DIV:`,Z=U(Z);let ee;ee=$localize`${"\uFFFD#3\uFFFD"}:START_TAG_SPK_ICON:circle-half-tilt${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SPK_ICON: Test phase ${"\uFFFD#4\uFFFD"}:START_TAG_DIV:${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON_1:caret-down${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_DIV:`,ee=U(ee);let Fe;Fe=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let ge;ge=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ee;Ee=$localize`Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let me;me=$localize`Verifications: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ce;Ce=$localize`Warnings: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Oe;Oe=$localize`Errors: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Le;Le=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Te;Te=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ae;Ae=$localize`Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Pe;Pe=$localize` Deleted files: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let Se;Se=$localize` Downloaded files: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let Ge;Ge=$localize` Uploaded files: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let Ne;Ne=$localize`Warnings: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Me;Me=$localize`Errors: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let ne;return ne=$localize`${"\uFFFD#3\uFFFD"}:START_TAG_SPK_ICON:warning-circle${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SPK_ICON: Verifications ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#4\uFFFD"}:START_TAG_DIV:${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON_1:caret-down${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_DIV:`,ne=U(ne),[a,e,l,r,L,V,W,j,q,J,H,Q,O,Y,Z,ee,Fe,ge,Ee,me,Ce,Oe,Le,Te,Ae,Pe,Se,Ge,Ne,Me,ne,[1,"indeterminate","primary"],[1,"log-entry"],[3,"click"],[1,"status","error"],[1,"status","warn"],[1,"status"],[1,"spacer"],[1,"action"],[1,"toggle-indicator"],[1,"log-content"],[3,"disallowToggle"],["title",""],["content",""],[1,"extra-info"],["name","details"],[1,"actions"],[1,"content"],["spk-button","",1,"small"]]},template:function(e,l){e&1&&(C(0,we,1,0,"spk-progress-bar",31),k(1,nn,16,10,"article",32,I)),e&2&&(E(l.resource.isLoading()?0:-1),o(),v(l.resource.value()))},dependencies:[Ke,ye,re,_e,z,le,w,pe,oe],styles:["[_nghost-%COMP%]{display:block}.log-entry[_ngcontent-%COMP%]{display:flex;flex-direction:column;cursor:pointer}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;padding:1rem;border-bottom:1px solid var(--base-level-40);background-color:var(--base-level-10);cursor:pointer}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]:hover{background-color:var(--base-level-20)}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-30);margin:0}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-level-60)}.toggle-indicator[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;height:1.25rem;transition:transform 125ms linear}.toggle-indicator.open[_ngcontent-%COMP%]{transform:rotate(180deg)}details[_ngcontent-%COMP%]{display:flex;flex-direction:column}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]{cursor:pointer;display:flex;align-items:center;gap:.5rem;padding:.75rem;border-radius:var(--shape-2);background-color:var(--base-level-20)}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]:focus{outline:none}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]:hover{background-color:var(--base-level-30)}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]::marker{font-size:0}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;flex:1 0;gap:.5rem;-webkit-user-select:none;user-select:none}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;height:2rem;transition:transform 125ms linear}details[open][_ngcontent-%COMP%] summary[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{transform:rotate(180deg)}details[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{padding:.75rem 1rem 0;display:flex;flex-direction:column;gap:.75rem}details[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}details[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{margin-top:.75rem;position:relative}details[_ngcontent-%COMP%] code[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{position:absolute;top:.75rem;right:.75rem}.extra-info[_ngcontent-%COMP%]{grid-column:1/-1;display:flex;flex-direction:column;gap:1rem}.extra-info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-bottom:.75rem}.extra-info[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{white-space:pre-wrap;padding:1rem;display:block;border-radius:var(--shape-2);background-color:var(--base-level-20)}.log-content[_ngcontent-%COMP%]{padding:1rem;display:grid;grid-template-columns:1fr 1fr;gap:1rem}.status[_ngcontent-%COMP%]{display:block;width:1rem;height:1rem;background-color:var(--success-500);border-radius:50%}.status.error[_ngcontent-%COMP%]{background-color:var(--error-500)}.status.warn[_ngcontent-%COMP%]{background-color:var(--warn-500)}"],changeDetection:0})};function tn(n,a){n&1&&c(0,"spk-progress-bar",0)}function on(n,a){if(n&1&&(i(0,"section",5)(1,"code"),F(2),u(3,"json"),t()()),n&2){let e=m().$implicit;o(2),x(g(3,1,e.data))}}function an(n,a){if(n&1){let e=K();i(0,"article",1)(1,"header",2),y("click",function(){let r=D(e).$implicit,L=m();return $(L.toggleOpenEntry(r.id))}),i(2,"h3"),F(3),u(4,"date"),t(),i(5,"div",3)(6,"spk-icon",4),F(7,"caret-down"),t()()(),C(8,on,4,3,"section",5),t()}if(n&2){let e=a.$implicit,l=m();o(3),Re("",T(4,6,e.timestamp,"medium"),": ",e.operation," ",e.path,""),o(3),f("open",e.id===l.openEntry()),o(2),E(e.id===l.openEntry()?8:-1)}}var ue=class n{#e=R(ae);backupId=ie.required();openEntry=G(null);pagination=G({offset:0,pagesize:100});resource=se({request:()=>te({id:this.backupId()},this.pagination()),loader:({request:a})=>this.#e.getApiV1BackupByIdRemotelog({id:a.id,pagesize:100}).pipe(B(e=>e.map((l,r)=>({id:l.ID,operationId:l.OperationID,timestamp:l.Timestamp*1e3,operation:l.Operation,path:l.Path,data:typeof l.Data=="string"?JSON.parse(l.Data):null}))))});toggleOpenEntry(a){if(this.openEntry()===a){this.openEntry.set(null);return}this.openEntry.set(a)}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=b({type:n,selectors:[["app-remote-log"]],inputs:{backupId:[1,"backupId"]},decls:3,vars:1,consts:[[1,"indeterminate","primary"],[1,"log-entry"],[3,"click"],[1,"actions"],[1,"toggle-indicator"],[1,"log-content"]],template:function(e,l){e&1&&(C(0,tn,1,0,"spk-progress-bar",0),k(1,an,9,9,"article",1,I)),e&2&&(E(l.resource.isLoading()?0:-1),o(),v(l.resource.value()))},dependencies:[oe,re,z,w],styles:["[_nghost-%COMP%]{display:block}.log-entry[_ngcontent-%COMP%]{display:flex;flex-direction:column}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:1rem;border-bottom:1px solid var(--base-level-40);background-color:var(--base-level-10);cursor:pointer}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]:hover{background-color:var(--base-level-20)}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-30);margin:0;-webkit-user-select:none;user-select:none}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-level-60)}.toggle-indicator[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;height:1.25rem;transition:transform 125ms linear}.toggle-indicator.open[_ngcontent-%COMP%]{transform:rotate(180deg)}.log-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:1rem}code[_ngcontent-%COMP%]{white-space:pre-wrap;padding:1rem;display:block;border-radius:var(--shape-2);background-color:var(--base-level-20)}"],changeDetection:0})};function ln(n,a){if(n&1&&(F(0," - "),A(1),_(2,6),P(),F(3),u(4,"durationFormat")),n&2){m(2);let e=X(6);o(3),S(" ",g(4,1,e.Backup==null||e.Backup.Metadata==null?null:e.Backup.Metadata.LastBackupDuration)," ")}}function _n(n,a){n&1&&(A(0),_(1,7),P())}function rn(n,a){if(n&1&&(F(0),u(1,"bytes")),n&2){m(2);let e=X(6);S(" ",g(1,1,e.Backup==null||e.Backup.Metadata==null?null:e.Backup.Metadata.SourceFilesSize)," ")}}function pn(n,a){n&1&&(A(0),_(1,8),P())}function sn(n,a){if(n&1&&(F(0),u(1,"bytes")),n&2){m(2);let e=X(6);S(" ",g(1,1,e.Backup==null||e.Backup.Metadata==null?null:e.Backup.Metadata.TargetFilesSize)," ")}}function dn(n,a){n&1&&(A(0),_(1,9),P())}function un(n,a){if(n&1&&(i(0,"spk-chip",19),_(1,10),t()),n&2){m(2);let e=X(6);o(),s(e.Backup==null||e.Backup.Metadata==null?null:e.Backup.Metadata.BackupListCount),d(1)}}function cn(n,a){n&1&&(i(0,"spk-chip",20),_(1,11),t())}function Fn(n,a){if(n&1&&(i(0,"div",14)(1,"div",18)(2,"h3"),F(3),i(4,"spk-icon"),F(5,"database"),t()(),i(6,"p")(7,"span"),_(8,3),t(),F(9),u(10,"date"),C(11,ln,5,3)(12,_n,2,0,"ng-container"),t(),i(13,"p")(14,"span"),_(15,4),t(),C(16,rn,2,3)(17,pn,2,0,"ng-container"),t(),i(18,"p")(19,"span"),_(20,5),t(),C(21,sn,2,3)(22,dn,2,0,"ng-container"),t()(),C(23,un,2,1,"spk-chip",19)(24,cn,2,0,"spk-chip",20),t()),n&2){let e,l=m(),r=X(6);o(3),S(" ",(e=r.Backup==null?null:r.Backup.Name)!==null&&e!==void 0?e:l.MISSING_BACKUP_NAME," "),o(6),S(" ",T(10,6,r.Backup==null||r.Backup.Metadata==null?null:r.Backup.Metadata.LastBackupDate,"short")," "),o(2),E(!(r.Backup==null||r.Backup.Metadata==null)&&r.Backup.Metadata.LastBackupDuration?11:12),o(5),E(!(r.Backup==null||r.Backup.Metadata==null)&&r.Backup.Metadata.SourceFilesSize?16:17),o(5),E(!(r.Backup==null||r.Backup.Metadata==null)&&r.Backup.Metadata.TargetFilesSize?21:22),o(2),E(!(r.Backup==null||r.Backup.Metadata==null)&&r.Backup.Metadata.BackupListCount?23:24)}}function gn(n,a){if(n&1&&c(0,"app-general-log",17),n&2){let e=m();h("backupId",e.backupId())}}function En(n,a){if(n&1&&c(0,"app-remote-log",17),n&2){let e=m();h("backupId",e.backupId())}}var ce=class n{#e=R(Ie);#n=R(Be);MISSING_BACKUP_NAME=$localize`Backup name missing`;activeTab=G("general");backupId=he(this.#e.params.pipe(B(a=>a.id)));backup=fe(()=>{let a=this.backupId();return a?this.#n.getBackupById(a):null});static \u0275fac=function(e){return new(e||n)};static \u0275cmp=b({type:n,selectors:[["app-log"]],decls:15,vars:8,consts:()=>{let a;a=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let e;e=$localize`General`;let l;l=$localize` Destination `;let r;r=$localize`Last successful backup:`;let L;L=$localize`Source:`;let V;V=$localize`Destination:`;let W;W=$localize`took`;let j;j=$localize`N/A`;let q;q=$localize`N/A`;let J;J=$localize`N/A`;let H;H=$localize`${"\uFFFD0\uFFFD"}:INTERPOLATION: Version`;let Q;return Q=$localize`No version yet`,[a,e,l,r,L,V,W,j,q,J,H,Q,[1,"back"],["type","button","spk-button","","routerLink","/",1,"small"],[1,"backup"],[1,"primary"],["tab","",3,"click"],[3,"backupId"],[1,"text"],[1,"simple","success"],[1,"simple"]]},template:function(e,l){if(e&1){let r=K();c(0,"app-status-bar"),i(1,"section")(2,"div",12)(3,"button",13),N(4,0),c(5,"spk-icon"),M(),t()(),De(6),C(7,Fn,25,9,"div",14),i(8,"spk-tabs",15)(9,"button",16),y("click",function(){return D(r),$(l.activeTab.set("general"))}),_(10,1),t(),i(11,"button",16),y("click",function(){return D(r),$(l.activeTab.set("destination"))}),_(12,2),t()(),C(13,gn,1,1,"app-general-log",17)(14,En,1,1,"app-remote-log",17),t()}if(e&2){o(6);let r=$e(l.backup());o(),E(r?7:-1),o(2),f("active",l.activeTab()==="general"),o(2),f("active",l.activeTab()==="destination"),o(2),E(l.activeTab()==="general"?13:-1),o(),E(l.activeTab()==="destination"?14:-1)}},dependencies:[xe,de,ue,ke,le,pe,w,be,z,_e,ve],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:1rem 1.5rem;gap:1rem}spk-tabs[_ngcontent-%COMP%]{margin-bottom:1rem}.backup[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem;gap:1rem;border:1px solid var(--base-level-40);border-radius:var(--shape-3);box-shadow:var(--shadow-1)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;width:100%;max-width:40%}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{color:var(--base-level-60)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-level-60)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--base-level-70)}"],changeDetection:0})};export{ce as default};
@@ -0,0 +1 @@
1
+ import"./chunk-7CGTOI24.js";var t=[{path:"",redirectTo:"select-files",pathMatch:"full"},{path:"destination",loadComponent:()=>import("./chunk-ZFE5M6M3.js")},{path:"encryption",loadComponent:()=>import("./chunk-HYBV36HG.js")},{path:"select-files",loadComponent:()=>import("./chunk-2SYN2ATG.js")},{path:"options",loadComponent:()=>import("./chunk-VYKAGJXY.js")}],o=t;export{o as default};
@@ -1 +1 @@
1
- import{a as G}from"./chunk-WZG34QS3.js";import{a as L,b as U,d as K,e as w,h as X,m as x,p as V,q as z,s as j}from"./chunk-4IJQ7AAQ.js";import{c as E,d as R}from"./chunk-AIOUSVMR.js";import"./chunk-THUAAYGA.js";import{a as b,c as $,g as y,l as B,x as h,z as v}from"./chunk-ECH6I3YN.js";import{b as N}from"./chunk-KLIPTMVG.js";import"./chunk-V5GVLIPJ.js";import"./chunk-2HS3CYRN.js";import{Ab as r,Bb as n,Cb as l,D as g,Mb as I,Nb as M,Ob as u,Qa as F,Rb as O,Sb as f,X as p,db as S,fc as A,ib as D,rb as d,rc as k,sa as m,tb as C,wb as P}from"./chunk-DTPZU6NP.js";import"./chunk-C6Q5SG76.js";var q=()=>["/"];function H(c,e){c&1&&(r(0,"spk-form-field")(1,"label",18),u(2,4),n(),l(3,"input",19),n())}var s=new z,T=class c{#e=p($);#t=p(N);#o=p(G);#n=p(E);isImporting=m(!1);isSecureFile=m(!1);importForm=s.group({config:s.control(""),cmdline:s.control(!1),importMetadata:s.control(!1),direct:s.control(!1),passphrase:s.control("")});selectedFile=m(null);onFileDropped(e){let t=e.target?.files?.item(0);if(t){let i=new FileReader;this.isSecureFile.set(t.type!=="application/json"),i.onload=this.#i.bind(this),i.readAsArrayBuffer(t)}}#i(e){let o=e.target?.result;this.importForm.patchValue({config:this.#r(o)})}#r(e){let o=new Uint8Array(e),t=o.byteLength,i="";for(let a=0;a<t;a++)i+=String.fromCharCode(o[a]);return btoa(i)}submit(){this.isImporting.set(!0),this.#t.postApiV1BackupsImport({requestBody:this.importForm.value}).pipe(g(()=>this.isImporting.set(!1))).subscribe({next:e=>{let o=this.#o.addDraftBackup(e.data);this.#n.navigate(["/backup-draft",o])},error:e=>{this.#e.error(e.message)}})}static \u0275fac=function(o){return new(o||c)};static \u0275cmp=S({type:c,selectors:[["app-import"]],decls:24,vars:7,consts:()=>{let e;e=$localize` Import backup configuration ${"\uFFFD#3\uFFFD"}:START_TAG_DIV:${"\uFFFD#4\uFFFD"}:START_TAG_BUTTON:${"[\uFFFD#5\uFFFD|\uFFFD#7\uFFFD]"}:START_TAG_SPK_ICON:arrow-left${"[\uFFFD/#5\uFFFD|\uFFFD/#7\uFFFD]"}:CLOSE_TAG_SPK_ICON: Back ${"[\uFFFD/#4\uFFFD|\uFFFD/#6\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#6\uFFFD"}:START_TAG_BUTTON_1:${"[\uFFFD#5\uFFFD|\uFFFD#7\uFFFD]"}:START_TAG_SPK_ICON:download-simple${"[\uFFFD/#5\uFFFD|\uFFFD/#7\uFFFD]"}:CLOSE_TAG_SPK_ICON: Import ${"[\uFFFD/#4\uFFFD|\uFFFD/#6\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/#3\uFFFD"}:CLOSE_TAG_DIV:`,e=O(e);let o;o=$localize`Select a configuration file`;let t;t=$localize`Import Metadata`;let i;i=$localize`Save now`;let a;return a=$localize`Passphrase`,[e,o,t,i,a,[1,"actions"],["spk-button","","type","button",1,"outlined",3,"routerLink"],["spk-button","","type","submit",1,"raised","primary",3,"click","disabled"],["autocomplete","off",3,"formGroup"],["spkDragDrop","",3,"fileDropped"],["for","file"],["type","file","accept",".json,.aes",3,"change"],["suffix",""],[1,"primary","raised"],["for","importMetadata"],["type","checkbox","formControlName","importMetadata"],["for","direct"],["type","checkbox","formControlName","direct"],["for","passphrase"],["type","password","formControlName","passphrase"]]},template:function(o,t){o&1&&(r(0,"header")(1,"h3"),I(2,0),r(3,"div",5)(4,"button",6),l(5,"spk-icon"),n(),r(6,"button",7),f("click",function(){return t.submit()}),l(7,"spk-icon"),n()(),M(),n()(),r(8,"form",8)(9,"spk-form-field",9),f("fileDropped",function(a){return t.onFileDropped(a)}),r(10,"label",10),u(11,1),n(),r(12,"input",11),f("change",function(a){return t.onFileDropped(a)}),n(),r(13,"spk-icon",12),A(14,"upload"),n()(),D(15,H,4,0,"spk-form-field"),r(16,"spk-toggle",13)(17,"label",14),u(18,2),n(),l(19,"input",15),n(),r(20,"spk-toggle",13)(21,"label",16),u(22,3),n(),l(23,"input",17),n()()),o&2&&(F(4),d("routerLink",k(6,q)),F(2),C("loader",t.isImporting()),d("disabled",t.isImporting()),F(2),d("formGroup",t.importForm),F(7),P(t.isSecureFile()?15:-1))},dependencies:[j,X,U,L,K,w,x,V,R,v,B,b,y,h],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:3rem}h3[_ngcontent-%COMP%]{font:var(--title-30);display:flex;align-items:center;justify-content:space-between}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;max-width:31.25rem}"],changeDetection:0})};export{T as default};
1
+ import{a as G}from"./chunk-QX5XWUM2.js";import{a as L,b as U,d as K,e as w,h as X,m as x,p as V,q as z,s as j}from"./chunk-LHSJLKCF.js";import{c as E,d as R}from"./chunk-WBNOGAKJ.js";import"./chunk-G3YJXHRY.js";import{a as b,c as $,g as y,l as B,x as h,z as v}from"./chunk-PUSUA4U7.js";import{b as N}from"./chunk-L3T52MCL.js";import"./chunk-4XPN5ZGE.js";import"./chunk-3GK4TNUH.js";import{Ab as r,Bb as n,Cb as l,D as g,Mb as I,Nb as M,Ob as u,Qa as F,Rb as O,Sb as f,X as p,db as S,fc as A,ib as D,rb as d,rc as k,sa as m,tb as C,wb as P}from"./chunk-PTC4N7TU.js";import"./chunk-7CGTOI24.js";var q=()=>["/"];function H(c,e){c&1&&(r(0,"spk-form-field")(1,"label",18),u(2,4),n(),l(3,"input",19),n())}var s=new z,T=class c{#e=p($);#t=p(N);#o=p(G);#n=p(E);isImporting=m(!1);isSecureFile=m(!1);importForm=s.group({config:s.control(""),cmdline:s.control(!1),importMetadata:s.control(!1),direct:s.control(!1),passphrase:s.control("")});selectedFile=m(null);onFileDropped(e){let t=e.target?.files?.item(0);if(t){let i=new FileReader;this.isSecureFile.set(t.type!=="application/json"),i.onload=this.#i.bind(this),i.readAsArrayBuffer(t)}}#i(e){let o=e.target?.result;this.importForm.patchValue({config:this.#r(o)})}#r(e){let o=new Uint8Array(e),t=o.byteLength,i="";for(let a=0;a<t;a++)i+=String.fromCharCode(o[a]);return btoa(i)}submit(){this.isImporting.set(!0),this.#t.postApiV1BackupsImport({requestBody:this.importForm.value}).pipe(g(()=>this.isImporting.set(!1))).subscribe({next:e=>{let o=this.#o.addDraftBackup(e.data);this.#n.navigate(["/backup-draft",o])},error:e=>{this.#e.error(e.message)}})}static \u0275fac=function(o){return new(o||c)};static \u0275cmp=S({type:c,selectors:[["app-import"]],decls:24,vars:7,consts:()=>{let e;e=$localize` Import backup configuration ${"\uFFFD#3\uFFFD"}:START_TAG_DIV:${"\uFFFD#4\uFFFD"}:START_TAG_BUTTON:${"[\uFFFD#5\uFFFD|\uFFFD#7\uFFFD]"}:START_TAG_SPK_ICON:arrow-left${"[\uFFFD/#5\uFFFD|\uFFFD/#7\uFFFD]"}:CLOSE_TAG_SPK_ICON: Back ${"[\uFFFD/#4\uFFFD|\uFFFD/#6\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#6\uFFFD"}:START_TAG_BUTTON_1:${"[\uFFFD#5\uFFFD|\uFFFD#7\uFFFD]"}:START_TAG_SPK_ICON:download-simple${"[\uFFFD/#5\uFFFD|\uFFFD/#7\uFFFD]"}:CLOSE_TAG_SPK_ICON: Import ${"[\uFFFD/#4\uFFFD|\uFFFD/#6\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/#3\uFFFD"}:CLOSE_TAG_DIV:`,e=O(e);let o;o=$localize`Select a configuration file`;let t;t=$localize`Import Metadata`;let i;i=$localize`Save now`;let a;return a=$localize`Passphrase`,[e,o,t,i,a,[1,"actions"],["spk-button","","type","button",1,"outlined",3,"routerLink"],["spk-button","","type","submit",1,"raised","primary",3,"click","disabled"],["autocomplete","off",3,"formGroup"],["spkDragDrop","",3,"fileDropped"],["for","file"],["type","file","accept",".json,.aes",3,"change"],["suffix",""],[1,"primary","raised"],["for","importMetadata"],["type","checkbox","formControlName","importMetadata"],["for","direct"],["type","checkbox","formControlName","direct"],["for","passphrase"],["type","password","formControlName","passphrase"]]},template:function(o,t){o&1&&(r(0,"header")(1,"h3"),I(2,0),r(3,"div",5)(4,"button",6),l(5,"spk-icon"),n(),r(6,"button",7),f("click",function(){return t.submit()}),l(7,"spk-icon"),n()(),M(),n()(),r(8,"form",8)(9,"spk-form-field",9),f("fileDropped",function(a){return t.onFileDropped(a)}),r(10,"label",10),u(11,1),n(),r(12,"input",11),f("change",function(a){return t.onFileDropped(a)}),n(),r(13,"spk-icon",12),A(14,"upload"),n()(),D(15,H,4,0,"spk-form-field"),r(16,"spk-toggle",13)(17,"label",14),u(18,2),n(),l(19,"input",15),n(),r(20,"spk-toggle",13)(21,"label",16),u(22,3),n(),l(23,"input",17),n()()),o&2&&(F(4),d("routerLink",k(6,q)),F(2),C("loader",t.isImporting()),d("disabled",t.isImporting()),F(2),d("formGroup",t.importForm),F(7),P(t.isSecureFile()?15:-1))},dependencies:[j,X,U,L,K,w,x,V,R,v,B,b,y,h],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:3rem}h3[_ngcontent-%COMP%]{font:var(--title-30);display:flex;align-items:center;justify-content:space-between}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;max-width:31.25rem}"],changeDetection:0})};export{T as default};
@@ -0,0 +1 @@
1
+ import{a,b}from"./chunk-ZRXUUC26.js";import"./chunk-XC6KYSRC.js";import"./chunk-NV2YMSSM.js";import"./chunk-3YOT5OAB.js";import"./chunk-CMXSHXAU.js";import"./chunk-XBZX6CUW.js";import"./chunk-HGERKLOF.js";import"./chunk-ZOUY24KQ.js";import"./chunk-QX5XWUM2.js";import"./chunk-LHSJLKCF.js";import"./chunk-N7UCCMLS.js";import"./chunk-WBNOGAKJ.js";import"./chunk-G3YJXHRY.js";import"./chunk-PUSUA4U7.js";import"./chunk-L3T52MCL.js";import"./chunk-4XPN5ZGE.js";import"./chunk-3GK4TNUH.js";import"./chunk-PTC4N7TU.js";import"./chunk-7CGTOI24.js";export{a as createRestoreOptionsForm,b as default};
@@ -1,2 +1,2 @@
1
- import{W as T}from"./chunk-2HS3CYRN.js";var h=":",M="|",N="@@",R="\u241F",A;function L(t){A??=new TextEncoder;let e=A.encode(t),n=new DataView(e.buffer,e.byteOffset,e.byteLength),r=U(n,e.length,0),s=U(n,e.length,102072);return r==0&&(s==0||s==1)&&(r=r^319790063,s=s^-1801410264),BigInt.asUintN(32,BigInt(r))<<BigInt(32)|BigInt.asUintN(32,BigInt(s))}function j(t,e=""){let n=L(t);return e&&(n=BigInt.asUintN(64,n<<BigInt(1))|n>>BigInt(63)&BigInt(1),n+=L(e)),BigInt.asUintN(63,n).toString()}function U(t,e,n){let r=2654435769,s=2654435769,i=0,u=e-12;for(;i<=u;i+=12){r+=t.getUint32(i,!0),s+=t.getUint32(i+4,!0),n+=t.getUint32(i+8,!0);let o=B(r,s,n);r=o[0],s=o[1],n=o[2]}let a=e-i;return n+=e,a>=4?(r+=t.getUint32(i,!0),i+=4,a>=8?(s+=t.getUint32(i,!0),i+=4,a>=9&&(n+=t.getUint8(i++)<<8),a>=10&&(n+=t.getUint8(i++)<<16),a===11&&(n+=t.getUint8(i++)<<24)):(a>=5&&(s+=t.getUint8(i++)),a>=6&&(s+=t.getUint8(i++)<<8),a===7&&(s+=t.getUint8(i++)<<16))):(a>=1&&(r+=t.getUint8(i++)),a>=2&&(r+=t.getUint8(i++)<<8),a===3&&(r+=t.getUint8(i++)<<16)),B(r,s,n)[2]}function B(t,e,n){return t-=e,t-=n,t^=n>>>13,e-=n,e-=t,e^=t<<8,n-=t,n-=e,n^=e>>>13,t-=e,t-=n,t^=n>>>12,e-=n,e-=t,e^=t<<16,n-=t,n-=e,n^=e>>>5,t-=e,t-=n,t^=n>>>3,e-=n,e-=t,e^=t<<10,n-=t,n-=e,n^=e>>>15,[t,e,n]}function v(t,e,n,r,s=[]){let i={},u={},a={},o=k(t[0],t.raw[0]),c=[o.text],m=[],d=o.text;for(let l=1;l<t.length;l++){let{messagePart:x,placeholderName:f=b(l),associatedMessageId:I}=w(t[l],t.raw[l]);d+=`{$${f}}${x}`,e!==void 0&&(i[f]=e[l-1],u[f]=s[l-1]),m.push(f),I!==void 0&&(a[f]=I),c.push(x)}let $=o.customId||j(d,o.meaning||""),D=o.legacyIds?o.legacyIds.filter(l=>l!==$):[];return{id:$,legacyIds:D,substitutions:i,substitutionLocations:u,text:d,customId:o.customId,meaning:o.meaning||"",description:o.description||"",messageParts:c,messagePartLocations:r,placeholderNames:m,associatedMessageIds:a,location:n}}function k(t,e){let{text:n,block:r}=E(t,e);if(r===void 0)return{text:n};{let[s,...i]=r.split(R),[u,a]=s.split(N,2),[o,c]=u.split(M,2);return c===void 0&&(c=o,o=void 0),c===""&&(c=void 0),{text:n,meaning:o,description:c,customId:a,legacyIds:i}}}function w(t,e){let{text:n,block:r}=E(t,e);if(r===void 0)return{messagePart:n};{let[s,i]=r.split(N);return{messagePart:n,placeholderName:s,associatedMessageId:i}}}function E(t,e){if(e.charAt(0)!==h)return{text:t};{let n=z(t,e);return{block:t.substring(1,n),text:t.substring(n+1)}}}function b(t){return t===1?"PH":`PH_${t-1}`}function z(t,e){for(let n=1,r=1;n<t.length;n++,r++)if(e[r]==="\\")r++;else if(t[n]===h)return n;throw new Error(`Unterminated $localize metadata block in "${e}".`)}var g=class extends Error{parsedMessage;type="MissingTranslationError";constructor(e){super(`No translation found for ${O(e)}.`),this.parsedMessage=e}};function C(t,e,n){let r=v(e,n),s=t[r.id];if(r.legacyIds!==void 0)for(let i=0;i<r.legacyIds.length&&s===void 0;i++)s=t[r.legacyIds[i]];if(s===void 0)throw new g(r);return[s.messageParts,s.placeholderNames.map(i=>{if(r.substitutions.hasOwnProperty(i))return r.substitutions[i];throw new Error(`There is a placeholder name mismatch with the translation provided for the message ${O(r)}.
1
+ import{W as T}from"./chunk-3GK4TNUH.js";var h=":",M="|",N="@@",R="\u241F",A;function L(t){A??=new TextEncoder;let e=A.encode(t),n=new DataView(e.buffer,e.byteOffset,e.byteLength),r=U(n,e.length,0),s=U(n,e.length,102072);return r==0&&(s==0||s==1)&&(r=r^319790063,s=s^-1801410264),BigInt.asUintN(32,BigInt(r))<<BigInt(32)|BigInt.asUintN(32,BigInt(s))}function j(t,e=""){let n=L(t);return e&&(n=BigInt.asUintN(64,n<<BigInt(1))|n>>BigInt(63)&BigInt(1),n+=L(e)),BigInt.asUintN(63,n).toString()}function U(t,e,n){let r=2654435769,s=2654435769,i=0,u=e-12;for(;i<=u;i+=12){r+=t.getUint32(i,!0),s+=t.getUint32(i+4,!0),n+=t.getUint32(i+8,!0);let o=B(r,s,n);r=o[0],s=o[1],n=o[2]}let a=e-i;return n+=e,a>=4?(r+=t.getUint32(i,!0),i+=4,a>=8?(s+=t.getUint32(i,!0),i+=4,a>=9&&(n+=t.getUint8(i++)<<8),a>=10&&(n+=t.getUint8(i++)<<16),a===11&&(n+=t.getUint8(i++)<<24)):(a>=5&&(s+=t.getUint8(i++)),a>=6&&(s+=t.getUint8(i++)<<8),a===7&&(s+=t.getUint8(i++)<<16))):(a>=1&&(r+=t.getUint8(i++)),a>=2&&(r+=t.getUint8(i++)<<8),a===3&&(r+=t.getUint8(i++)<<16)),B(r,s,n)[2]}function B(t,e,n){return t-=e,t-=n,t^=n>>>13,e-=n,e-=t,e^=t<<8,n-=t,n-=e,n^=e>>>13,t-=e,t-=n,t^=n>>>12,e-=n,e-=t,e^=t<<16,n-=t,n-=e,n^=e>>>5,t-=e,t-=n,t^=n>>>3,e-=n,e-=t,e^=t<<10,n-=t,n-=e,n^=e>>>15,[t,e,n]}function v(t,e,n,r,s=[]){let i={},u={},a={},o=k(t[0],t.raw[0]),c=[o.text],m=[],d=o.text;for(let l=1;l<t.length;l++){let{messagePart:x,placeholderName:f=b(l),associatedMessageId:I}=w(t[l],t.raw[l]);d+=`{$${f}}${x}`,e!==void 0&&(i[f]=e[l-1],u[f]=s[l-1]),m.push(f),I!==void 0&&(a[f]=I),c.push(x)}let $=o.customId||j(d,o.meaning||""),D=o.legacyIds?o.legacyIds.filter(l=>l!==$):[];return{id:$,legacyIds:D,substitutions:i,substitutionLocations:u,text:d,customId:o.customId,meaning:o.meaning||"",description:o.description||"",messageParts:c,messagePartLocations:r,placeholderNames:m,associatedMessageIds:a,location:n}}function k(t,e){let{text:n,block:r}=E(t,e);if(r===void 0)return{text:n};{let[s,...i]=r.split(R),[u,a]=s.split(N,2),[o,c]=u.split(M,2);return c===void 0&&(c=o,o=void 0),c===""&&(c=void 0),{text:n,meaning:o,description:c,customId:a,legacyIds:i}}}function w(t,e){let{text:n,block:r}=E(t,e);if(r===void 0)return{messagePart:n};{let[s,i]=r.split(N);return{messagePart:n,placeholderName:s,associatedMessageId:i}}}function E(t,e){if(e.charAt(0)!==h)return{text:t};{let n=z(t,e);return{block:t.substring(1,n),text:t.substring(n+1)}}}function b(t){return t===1?"PH":`PH_${t-1}`}function z(t,e){for(let n=1,r=1;n<t.length;n++,r++)if(e[r]==="\\")r++;else if(t[n]===h)return n;throw new Error(`Unterminated $localize metadata block in "${e}".`)}var g=class extends Error{parsedMessage;type="MissingTranslationError";constructor(e){super(`No translation found for ${O(e)}.`),this.parsedMessage=e}};function C(t,e,n){let r=v(e,n),s=t[r.id];if(r.legacyIds!==void 0)for(let i=0;i<r.legacyIds.length&&s===void 0;i++)s=t[r.legacyIds[i]];if(s===void 0)throw new g(r);return[s.messageParts,s.placeholderNames.map(i=>{if(r.substitutions.hasOwnProperty(i))return r.substitutions[i];throw new Error(`There is a placeholder name mismatch with the translation provided for the message ${O(r)}.
2
2
  The translation contains a placeholder with name ${i}, which does not exist in the message.`)})]}function G(t){let e=t.split(/{\$([^}]*)}/),n=[e[0]],r=[];for(let i=1;i<e.length-1;i+=2)r.push(e[i]),n.push(`${e[i+1]}`);let s=n.map(i=>i.charAt(0)===h?"\\"+i:i);return{text:t,messageParts:P(n,s),placeholderNames:r}}function P(t,e){return Object.defineProperty(t,"raw",{value:e}),t}function O(t){let e=t.meaning&&` - "${t.meaning}"`,n=t.legacyIds&&t.legacyIds.length>0?` [${t.legacyIds.map(r=>`"${r}"`).join(", ")}]`:"";return`"${t.id}"${n} ("${t.text}"${e})`}function S(t){$localize.translate||($localize.translate=_),$localize.TRANSLATIONS||($localize.TRANSLATIONS={}),Object.keys(t).forEach(e=>{$localize.TRANSLATIONS[e]=G(t[e])})}function _(t,e){try{return C($localize.TRANSLATIONS,t,e)}catch(n){return console.warn(n.message),[t,e]}}var p="en-US",F=["en-US","en-GB","de-DE","fr-FR","da-DK"],y={"en-US":"en","en-GB":"en-GB","da-DK":"da","de-DE":"de","fr-FR":"fr"},W=[{value:"en-US",label:"English (en-US)"},{value:"en-GB",label:"English (en-GB)"},{value:"fr-FR",label:"French"},{value:"de-DE",label:"German"},{value:"da-DK",label:"Danish"}];function Y(t){return t?y[t]??"en":"en"}function q(){let t=localStorage.getItem("v1:duplicati:locale")||p,e=F.find(s=>s===t)??p,n=y[e];if(e===p)return e;import(`/locale/angular/${n}.mjs`).then(s=>T(s.default));let r=e==="en-GB"?"":"."+e;return fetch(`/locale/messages${r}.json`).then(s=>s.json()).then(s=>{S(s.translations),$localize.locale=e}),e}export{W as a,Y as b,q as c};