@kosdev-code/kos-ddk-models 0.1.0-dev.5077 → 0.1.0-dev.5096

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 (49) hide show
  1. package/index.d.ts +0 -3
  2. package/index.d.ts.map +1 -1
  3. package/index.js +1 -1
  4. package/index.mjs +1210 -1626
  5. package/lib/application/services/application-services.d.ts +1 -0
  6. package/lib/application/services/application-services.d.ts.map +1 -1
  7. package/lib/carb-water/carb-water-model.d.ts +1 -2
  8. package/lib/carb-water/carb-water-model.d.ts.map +1 -1
  9. package/lib/nutritive-sweetener/nutritive-sweetener-model.d.ts +8 -5
  10. package/lib/nutritive-sweetener/nutritive-sweetener-model.d.ts.map +1 -1
  11. package/lib/plain-water/plain-water-model.d.ts +1 -2
  12. package/lib/plain-water/plain-water-model.d.ts.map +1 -1
  13. package/lib/settings/settings-model.d.ts +4 -2
  14. package/lib/settings/settings-model.d.ts.map +1 -1
  15. package/lib/settings/types/index.d.ts +1 -1
  16. package/package.json +5 -5
  17. package/lib/fcm-pump/fcm-pump-model.d.ts +0 -28
  18. package/lib/fcm-pump/fcm-pump-model.d.ts.map +0 -1
  19. package/lib/fcm-pump/fcm-pump-registration.d.ts +0 -87
  20. package/lib/fcm-pump/fcm-pump-registration.d.ts.map +0 -1
  21. package/lib/fcm-pump/index.d.ts +0 -5
  22. package/lib/fcm-pump/index.d.ts.map +0 -1
  23. package/lib/fcm-pump/services/fcm-pump-services.d.ts +0 -17
  24. package/lib/fcm-pump/services/fcm-pump-services.d.ts.map +0 -1
  25. package/lib/fcm-pump/services/index.d.ts +0 -2
  26. package/lib/fcm-pump/services/index.d.ts.map +0 -1
  27. package/lib/fcm-pump/types/index.d.ts +0 -5
  28. package/lib/lfcv-pump/index.d.ts +0 -5
  29. package/lib/lfcv-pump/index.d.ts.map +0 -1
  30. package/lib/lfcv-pump/lfcv-pump-model.d.ts +0 -20
  31. package/lib/lfcv-pump/lfcv-pump-model.d.ts.map +0 -1
  32. package/lib/lfcv-pump/lfcv-pump-registration.d.ts +0 -87
  33. package/lib/lfcv-pump/lfcv-pump-registration.d.ts.map +0 -1
  34. package/lib/lfcv-pump/services/index.d.ts +0 -2
  35. package/lib/lfcv-pump/services/index.d.ts.map +0 -1
  36. package/lib/lfcv-pump/services/lfcv-pump-services.d.ts +0 -10
  37. package/lib/lfcv-pump/services/lfcv-pump-services.d.ts.map +0 -1
  38. package/lib/lfcv-pump/types/index.d.ts +0 -5
  39. package/lib/spm-pump/index.d.ts +0 -5
  40. package/lib/spm-pump/index.d.ts.map +0 -1
  41. package/lib/spm-pump/services/index.d.ts +0 -2
  42. package/lib/spm-pump/services/index.d.ts.map +0 -1
  43. package/lib/spm-pump/services/spm-pump-services.d.ts +0 -7
  44. package/lib/spm-pump/services/spm-pump-services.d.ts.map +0 -1
  45. package/lib/spm-pump/spm-pump-model.d.ts +0 -26
  46. package/lib/spm-pump/spm-pump-model.d.ts.map +0 -1
  47. package/lib/spm-pump/spm-pump-registration.d.ts +0 -87
  48. package/lib/spm-pump/spm-pump-registration.d.ts.map +0 -1
  49. package/lib/spm-pump/types/index.d.ts +0 -5
package/index.mjs CHANGED
@@ -1,38 +1,38 @@
1
- var Ur = Object.defineProperty;
2
- var Vr = (e, t, r) => t in e ? Ur(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
- var s = (e, t, r) => (Vr(e, typeof t != "symbol" ? t + "" : t, r), r);
4
- import { resolveServiceUrl as h, ServiceFactory as f, KosLog as g, kosTopicHandler as De, kosModel as l, kosAction as _, Kos as c, isKosModel as u, createPropKey as Hr, kosStateProp as Wr, KosModelRegistrationFactory as ke, kosDependency as m, KosModelContainer as st, resolveContainerDeltas as mt, kosChild as Ie, Device as Nr, kosConfigProperty as d, kosFuture as v, kosModelEffect as Mt, MultipleFutureHandler as zr, FutureEndState as b, TroubleServices as Re, Troubles as yt, SingletonKosModelRegistrationFactory as Fe, FetchError as Ae, FutureManager as T, FutureHandler as he, getKosCompanionModel as at, StorageDeviceContainer as Br, kosFutureAware as Kr, kosLoggerAware as Yr, KosDataContainer as qr, TroubleContainer as nt, troubleByTypeReducer as Gr, registerExtensionPoint as Qr, ExtensionManager as xe, kosConfigBean as Xr, ObservableData as Jr, kosAutoEffect as Zr } from "@kosdev-code/kos-ui-sdk";
5
- import { AGITATION_REQUIRED_TROUBLE as St, CartridgeAgitatorEvents as Ct, FreestyleHolder as eo } from "@kosdev-code/kos-freestyle-sdk";
6
- import { Assembly as je, HolderContainer as to, IngredientContainer as ro } from "@kosdev-code/kos-dispense-sdk";
7
- const bt = "PurgeTrouble", oo = "PrimeTrouble", { URL: lt } = h("AUTH_SERVICE"), { getOne: io, postModel: so } = f.build({
8
- basePath: `${lt}/api/auth`
9
- }), wt = g.createLogger({ name: "auth-service", group: "Services" }), Et = async () => (wt.debug("sending GET for auth"), await io({
10
- urlOverride: `${lt}/api/app/kosdev.ddk/auth/role`
11
- })), Lt = async (e) => (wt.debug("sending POST for auth"), await so({
12
- urlOverride: `${lt}/api/app/kosdev.ddk/auth/pincode/${e}`,
1
+ var yo = Object.defineProperty;
2
+ var fo = (e, t, o) => t in e ? yo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
3
+ var i = (e, t, o) => (fo(e, typeof t != "symbol" ? t + "" : t, o), o);
4
+ import { resolveServiceUrl as h, ServiceFactory as y, KosLog as g, kosTopicHandler as Te, kosModel as l, kosAction as v, Kos as c, isKosModel as u, createPropKey as ut, kosStateProp as vo, KosModelRegistrationFactory as mo, kosDependency as p, KosModelContainer as Ve, resolveContainerDeltas as ot, kosChild as $e, Device as bo, kosConfigProperty as d, kosFuture as P, kosModelEffect as He, MultipleFutureHandler as _o, FutureEndState as T, TroubleServices as Me, Troubles as rt, SingletonKosModelRegistrationFactory as Pe, getKosCompanionModel as Be, FetchError as pt, StorageDeviceContainer as To, kosFutureAware as $o, kosLoggerAware as gt, KosDataContainer as Mo, TroubleContainer as Ke, FutureHandler as Ye, troubleByTypeReducer as Po, registerExtensionPoint as Oo, ExtensionManager as Oe, kosConfigBean as So, kosStateBean as wo, ObservableData as Eo, kosAutoEffect as Lo } from "@kosdev-code/kos-ui-sdk";
5
+ import { AGITATION_REQUIRED_TROUBLE as ht, CartridgeAgitatorEvents as yt, FcmPump as ft, FreestyleHolder as Co } from "@kosdev-code/kos-freestyle-sdk";
6
+ import { Assembly as Se, HolderContainer as ko, IngredientContainer as Do } from "@kosdev-code/kos-dispense-sdk";
7
+ const st = "PurgeTrouble", Io = "PrimeTrouble", { URL: Ge } = h("AUTH_SERVICE"), { getOne: Ro, postModel: Ao } = y.build({
8
+ basePath: `${Ge}/api/auth`
9
+ }), vt = g.createLogger({ name: "auth-service", group: "Services" }), mt = async () => (vt.debug("sending GET for auth"), await Ro({
10
+ urlOverride: `${Ge}/api/app/kosdev.ddk/auth/role`
11
+ })), bt = async (e) => (vt.debug("sending POST for auth"), await Ao({
12
+ urlOverride: `${Ge}/api/app/kosdev.ddk/auth/pincode/${e}`,
13
13
  model: {}
14
- })), Ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14
+ })), Hs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15
15
  __proto__: null,
16
- getCurrentRole: Et,
17
- sendPinCode: Lt
16
+ getCurrentRole: mt,
17
+ sendPinCode: bt
18
18
  }, Symbol.toStringTag, { value: "Module" }));
19
- var ao = Object.defineProperty, no = Object.getOwnPropertyDescriptor, Dt = (e, t, r, i) => {
20
- for (var o = i > 1 ? void 0 : i ? no(t, r) : t, n = e.length - 1, a; n >= 0; n--)
21
- (a = e[n]) && (o = (i ? a(t, r, o) : a(o)) || o);
22
- return i && o && ao(t, r, o), o;
23
- };
24
- const B = "auth-model", vt = (e) => e.toLowerCase();
25
- let $e = class {
26
- constructor(e, t, r) {
27
- s(this, "id");
28
- s(this, "logger");
29
- s(this, "currentRole");
30
- this.id = e, this.logger = r.logger, this.currentRole = "crew";
19
+ var Fo = Object.defineProperty, xo = Object.getOwnPropertyDescriptor, _t = (e, t, o, s) => {
20
+ for (var r = s > 1 ? void 0 : s ? xo(t, o) : t, n = e.length - 1, a; n >= 0; n--)
21
+ (a = e[n]) && (r = (s ? a(t, o, r) : a(r)) || r);
22
+ return s && r && Fo(t, o, r), r;
23
+ };
24
+ const F = "auth-model", it = (e) => e.toLowerCase();
25
+ let pe = class {
26
+ constructor(e, t, o) {
27
+ i(this, "id");
28
+ i(this, "logger");
29
+ i(this, "currentRole");
30
+ this.id = e, this.logger = o.logger, this.currentRole = "crew";
31
31
  }
32
32
  async authorize(e) {
33
33
  if (!e)
34
34
  return !1;
35
- const t = await Lt(e);
35
+ const t = await bt(e);
36
36
  return (t == null ? void 0 : t.status) === 200 ? t.data : !1;
37
37
  }
38
38
  // -------------------LIFECYCLE----------------------------
@@ -41,51 +41,51 @@ let $e = class {
41
41
  }
42
42
  async load() {
43
43
  this.logger.debug(`loading auth ${this.id}`);
44
- const e = await Et();
45
- (e == null ? void 0 : e.status) === 200 && (this.logger.debug(`response ${e.data}`), _(() => {
46
- this.currentRole = vt(e.data);
44
+ const e = await mt();
45
+ (e == null ? void 0 : e.status) === 200 && (this.logger.debug(`response ${e.data}`), v(() => {
46
+ this.currentRole = it(e.data);
47
47
  }));
48
48
  }
49
49
  handleRoleChange(e) {
50
- this.currentRole = vt(e);
50
+ this.currentRole = it(e);
51
51
  }
52
52
  forceRole(e) {
53
53
  this.currentRole = e;
54
54
  }
55
55
  };
56
- Dt([
57
- De({
56
+ _t([
57
+ Te({
58
58
  topic: "/app/kosdev.ddk/auth/role",
59
59
  websocket: !0
60
60
  })
61
- ], $e.prototype, "handleRoleChange", 1);
62
- $e = Dt([
63
- l(B)
64
- ], $e);
65
- const ct = {
61
+ ], pe.prototype, "handleRoleChange", 1);
62
+ pe = _t([
63
+ l(F)
64
+ ], pe);
65
+ const qe = {
66
66
  registration: {
67
- [B]: {
68
- class: $e,
67
+ [F]: {
68
+ class: pe,
69
69
  singleton: !1
70
70
  }
71
71
  },
72
- type: B,
73
- predicate: u(B),
74
- factory: c.Factory.create(B)
72
+ type: F,
73
+ predicate: u(F),
74
+ factory: c.Factory.create(F)
75
75
  };
76
- var lo = Object.defineProperty, co = Object.getOwnPropertyDescriptor, kt = (e, t, r, i) => {
77
- for (var o = i > 1 ? void 0 : i ? co(t, r) : t, n = e.length - 1, a; n >= 0; n--)
78
- (a = e[n]) && (o = (i ? a(t, r, o) : a(o)) || o);
79
- return i && o && lo(t, r, o), o;
76
+ var jo = Object.defineProperty, Uo = Object.getOwnPropertyDescriptor, Tt = (e, t, o, s) => {
77
+ for (var r = s > 1 ? void 0 : s ? Uo(t, o) : t, n = e.length - 1, a; n >= 0; n--)
78
+ (a = e[n]) && (r = (s ? a(t, o, r) : a(r)) || r);
79
+ return s && r && jo(t, o, r), r;
80
80
  };
81
- const It = "door-model", uo = Hr("doorPath");
82
- let Te = class {
83
- constructor(e, t, r) {
84
- s(this, "id");
85
- s(this, "logger");
86
- s(this, "doorPath");
87
- s(this, "open");
88
- this.id = e, this.logger = r.logger, this.doorPath = t.doorPath;
81
+ const $t = "door-model", Wo = ut("doorPath");
82
+ let ge = class {
83
+ constructor(e, t, o) {
84
+ i(this, "id");
85
+ i(this, "logger");
86
+ i(this, "doorPath");
87
+ i(this, "open");
88
+ this.id = e, this.logger = o.logger, this.doorPath = t.doorPath;
89
89
  }
90
90
  get currentState() {
91
91
  return this.open.value === void 0 ? "UNKNOWN" : this.open.value ? "OPEN" : "CLOSED";
@@ -94,46 +94,46 @@ let Te = class {
94
94
  return this.open.value === void 0 ? !0 : this.open.value;
95
95
  }
96
96
  };
97
- kt([
98
- Wr({ path: uo, attribute: "state" })
99
- ], Te.prototype, "open", 2);
100
- Te = kt([
101
- l(It)
102
- ], Te);
103
- const po = new ke({
104
- class: Te,
105
- type: It
106
- }), { URL: ut } = h("SETUP-STEP_SERVICE"), { getAll: go, postModel: ho } = f.build({
107
- basePath: `${ut}/api/setup-step`
108
- }), Rt = g.createLogger({
97
+ Tt([
98
+ vo({ path: Wo, attribute: "state" })
99
+ ], ge.prototype, "open", 2);
100
+ ge = Tt([
101
+ l($t)
102
+ ], ge);
103
+ const No = new mo({
104
+ class: ge,
105
+ type: $t
106
+ }), { URL: Qe } = h("SETUP-STEP_SERVICE"), { getAll: zo, postModel: Vo } = y.build({
107
+ basePath: `${Qe}/api/setup-step`
108
+ }), Mt = g.createLogger({
109
109
  name: "setup-step-service",
110
110
  group: "Services"
111
- }), Ft = async () => (Rt.debug("sending GET for setup-step"), await go({
112
- urlOverride: `${ut}/api/app/kosdev.ddk/setup/steps`
113
- })), At = async (e) => (Rt.debug("sending POST for setup-step"), await ho({
114
- urlOverride: `${ut}/api/app/kosdev.ddk/setup/complete/${e}`,
111
+ }), Pt = async () => (Mt.debug("sending GET for setup-step"), await zo({
112
+ urlOverride: `${Qe}/api/app/kosdev.ddk/setup/steps`
113
+ })), Ot = async (e) => (Mt.debug("sending POST for setup-step"), await Vo({
114
+ urlOverride: `${Qe}/api/app/kosdev.ddk/setup/complete/${e}`,
115
115
  model: {}
116
- })), Cs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
116
+ })), Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
117
117
  __proto__: null,
118
- getSetupSteps: Ft,
119
- markStepComplete: At
118
+ getSetupSteps: Pt,
119
+ markStepComplete: Ot
120
120
  }, Symbol.toStringTag, { value: "Module" }));
121
- var fo = Object.getOwnPropertyDescriptor, mo = (e, t, r, i) => {
122
- for (var o = i > 1 ? void 0 : i ? fo(t, r) : t, n = e.length - 1, a; n >= 0; n--)
123
- (a = e[n]) && (o = a(o) || o);
124
- return o;
121
+ var Ho = Object.getOwnPropertyDescriptor, Bo = (e, t, o, s) => {
122
+ for (var r = s > 1 ? void 0 : s ? Ho(t, o) : t, n = e.length - 1, a; n >= 0; n--)
123
+ (a = e[n]) && (r = a(r) || r);
124
+ return r;
125
125
  };
126
- const K = "setup-step-model";
127
- let Qe = class {
128
- constructor(e, t, r) {
129
- s(this, "id");
130
- s(this, "idx");
131
- s(this, "name");
132
- s(this, "complete");
133
- s(this, "preStep");
134
- s(this, "exclusive");
135
- s(this, "logger");
136
- this.id = e, this.idx = t.idx, this.logger = r.logger, this.name = t.name, this.complete = t.complete, this.preStep = t.preStep, this.exclusive = t.exclusive;
126
+ const x = "setup-step-model";
127
+ let Ae = class {
128
+ constructor(e, t, o) {
129
+ i(this, "id");
130
+ i(this, "idx");
131
+ i(this, "name");
132
+ i(this, "complete");
133
+ i(this, "preStep");
134
+ i(this, "exclusive");
135
+ i(this, "logger");
136
+ this.id = e, this.idx = t.idx, this.logger = o.logger, this.name = t.name, this.complete = t.complete, this.preStep = t.preStep, this.exclusive = t.exclusive;
137
137
  }
138
138
  updateModel(e) {
139
139
  this.name = e.name, this.idx = e.idx, this.complete = e.complete, this.preStep = e.preStep, this.exclusive = e.exclusive;
@@ -145,8 +145,8 @@ let Qe = class {
145
145
  return `setup.${this.name}.body`;
146
146
  }
147
147
  async completeStep() {
148
- const e = await At(this.name);
149
- (e == null ? void 0 : e.status) === 200 && _(() => {
148
+ const e = await Ot(this.name);
149
+ (e == null ? void 0 : e.status) === 200 && v(() => {
150
150
  this.complete = !0;
151
151
  });
152
152
  }
@@ -158,45 +158,45 @@ let Qe = class {
158
158
  this.logger.debug(`loading setup-step ${this.id}`);
159
159
  }
160
160
  };
161
- Qe = mo([
162
- l(K)
163
- ], Qe);
164
- const xt = {
161
+ Ae = Bo([
162
+ l(x)
163
+ ], Ae);
164
+ const St = {
165
165
  registration: {
166
- [K]: {
167
- class: Qe,
166
+ [x]: {
167
+ class: Ae,
168
168
  singleton: !1
169
169
  }
170
170
  },
171
- type: K,
172
- predicate: u(K),
173
- factory: c.Factory.create(K)
171
+ type: x,
172
+ predicate: u(x),
173
+ factory: c.Factory.create(x)
174
174
  };
175
- var yo = Object.defineProperty, bo = Object.getOwnPropertyDescriptor, Ue = (e, t, r, i) => {
176
- for (var o = i > 1 ? void 0 : i ? bo(t, r) : t, n = e.length - 1, a; n >= 0; n--)
177
- (a = e[n]) && (o = (i ? a(t, r, o) : a(o)) || o);
178
- return i && o && yo(t, r, o), o;
175
+ var Ko = Object.defineProperty, Yo = Object.getOwnPropertyDescriptor, we = (e, t, o, s) => {
176
+ for (var r = s > 1 ? void 0 : s ? Yo(t, o) : t, n = e.length - 1, a; n >= 0; n--)
177
+ (a = e[n]) && (r = (s ? a(t, o, r) : a(r)) || r);
178
+ return s && r && Ko(t, o, r), r;
179
179
  };
180
- const Y = "setup-step-container-model";
181
- function _t(e) {
180
+ const j = "setup-step-container-model";
181
+ function nt(e) {
182
182
  return (t) => {
183
- const r = xt.factory(t.id)(t);
184
- r.updateModel(t), e.addModel(r);
183
+ const o = St.factory(t.id)(t);
184
+ o.updateModel(t), e.addModel(o);
185
185
  };
186
186
  }
187
- function $t(e) {
187
+ function at(e) {
188
188
  return (t) => {
189
189
  e.removeModel(t);
190
190
  };
191
191
  }
192
- let R = class {
193
- constructor(e, t, r) {
194
- s(this, "id");
195
- s(this, "_currentStep");
196
- s(this, "logger");
197
- s(this, "models");
198
- s(this, "authModel");
199
- this.id = e, this.logger = r.logger, this._currentStep = void 0, this.models = new st({
192
+ let E = class {
193
+ constructor(e, t, o) {
194
+ i(this, "id");
195
+ i(this, "_currentStep");
196
+ i(this, "logger");
197
+ i(this, "models");
198
+ i(this, "authModel");
199
+ this.id = e, this.logger = o.logger, this._currentStep = void 0, this.models = new Ve({
200
200
  parentId: e,
201
201
  sortKey: "idx"
202
202
  });
@@ -212,7 +212,7 @@ let R = class {
212
212
  if (!this._currentStep)
213
213
  this._currentStep = this.firstIncompleteStep;
214
214
  else {
215
- const e = this._currentStep.idx, t = this.models.data.find((r) => r.idx > e);
215
+ const e = this._currentStep.idx, t = this.models.data.find((o) => o.idx > e);
216
216
  t && (this._currentStep = t);
217
217
  }
218
218
  }
@@ -247,124 +247,124 @@ let R = class {
247
247
  }
248
248
  async load() {
249
249
  this.logger.debug(`loading setup-step-container container ${this.id}`);
250
- const e = await Ft();
250
+ const e = await Pt();
251
251
  if (e != null && e.data) {
252
252
  const t = e.data.map(
253
- (r, i) => ({
254
- ...r,
255
- idx: i,
256
- id: `setup-${r.name}`
253
+ (o, s) => ({
254
+ ...o,
255
+ idx: s,
256
+ id: `setup-${o.name}`
257
257
  })
258
258
  );
259
- mt({
259
+ ot({
260
260
  container: this.models,
261
- onAddItem: _t(this),
262
- onRemoveItem: $t(this)
261
+ onAddItem: nt(this),
262
+ onRemoveItem: at(this)
263
263
  })(t);
264
264
  }
265
265
  this.nextStep();
266
266
  }
267
267
  handleStepChanges(e) {
268
- const t = e.map((r, i) => ({
269
- ...r,
270
- idx: i,
271
- id: `setup-${r.name}`
268
+ const t = e.map((o, s) => ({
269
+ ...o,
270
+ idx: s,
271
+ id: `setup-${o.name}`
272
272
  }));
273
- mt({
273
+ ot({
274
274
  container: this.models,
275
- onAddItem: _t(this),
276
- onRemoveItem: $t(this)
275
+ onAddItem: nt(this),
276
+ onRemoveItem: at(this)
277
277
  })(t);
278
278
  }
279
279
  };
280
- Ue([
281
- Ie
282
- ], R.prototype, "models", 2);
283
- Ue([
284
- m({ modelType: ct.type })
285
- ], R.prototype, "authModel", 2);
286
- Ue([
287
- De({
280
+ we([
281
+ $e
282
+ ], E.prototype, "models", 2);
283
+ we([
284
+ p({ modelType: qe.type })
285
+ ], E.prototype, "authModel", 2);
286
+ we([
287
+ Te({
288
288
  topic: "/app/kosdev.ddk/setup/steps",
289
289
  websocket: !0
290
290
  })
291
- ], R.prototype, "handleStepChanges", 1);
292
- R = Ue([
293
- l(Y)
294
- ], R);
295
- const jt = {
291
+ ], E.prototype, "handleStepChanges", 1);
292
+ E = we([
293
+ l(j)
294
+ ], E);
295
+ const wt = {
296
296
  registration: {
297
- [Y]: {
298
- class: R,
297
+ [j]: {
298
+ class: E,
299
299
  singleton: !0
300
300
  },
301
- ...xt.registration
301
+ ...St.registration
302
302
  },
303
- type: Y,
304
- predicate: u(Y),
305
- factory: c.Singleton.create(Y)
306
- }, { URL: k } = h("AUTH_SERVICE"), { getOne: Ut, getAll: ve } = f.build({
307
- basePath: `${k}/api/app/kosdev.ddk/ncui/`
308
- }), de = g.createLogger({ name: "auth-service", group: "Services" }), vo = async () => {
309
- de.debug("sending GET for cuis");
310
- const e = await ve({
311
- urlOverride: `${k}/api/app/kosdev.ddk/cui`
303
+ type: j,
304
+ predicate: u(j),
305
+ factory: c.Singleton.create(j)
306
+ }, { URL: S } = h("AUTH_SERVICE"), { getOne: Et, getAll: ce } = y.build({
307
+ basePath: `${S}/api/app/kosdev.ddk/ncui/`
308
+ }), oe = g.createLogger({ name: "auth-service", group: "Services" }), Go = async () => {
309
+ oe.debug("sending GET for cuis");
310
+ const e = await ce({
311
+ urlOverride: `${S}/api/app/kosdev.ddk/cui`
312
312
  });
313
313
  if ((e == null ? void 0 : e.status) !== 200)
314
314
  throw new Error("Failed to retrieve cuis");
315
315
  return e.data;
316
- }, _o = async () => {
317
- de.debug("sending GET for navigation");
316
+ }, qo = async () => {
317
+ oe.debug("sending GET for navigation");
318
318
  try {
319
- const e = await ve({
320
- urlOverride: `${k}/api/kos/descriptor/app:kosdev.ddk:ncuiDescriptor/kondra.ncui.navigations`
319
+ const e = await ce({
320
+ urlOverride: `${S}/api/kos/descriptor/app:kosdev.ddk:ncuiDescriptor/kondra.ncui.navigations`
321
321
  });
322
322
  if ((e == null ? void 0 : e.status) !== 200) {
323
- de.info("no extensions found, using base data");
324
- const t = await ve({
325
- urlOverride: `${k}/api/kos/descriptor/system:app/kondra.ncui.navigations`
323
+ oe.info("no extensions found, using base data");
324
+ const t = await ce({
325
+ urlOverride: `${S}/api/kos/descriptor/system:app/kondra.ncui.navigations`
326
326
  });
327
327
  return (t == null ? void 0 : t.data) ?? [];
328
328
  }
329
329
  return (e == null ? void 0 : e.data) ?? [];
330
330
  } catch {
331
- const t = await ve({
332
- urlOverride: `${k}/api/kos/descriptor/system:app/kondra.ncui.navigations`
331
+ const t = await ce({
332
+ urlOverride: `${S}/api/kos/descriptor/system:app/kondra.ncui.navigations`
333
333
  });
334
334
  return (t == null ? void 0 : t.data) ?? [];
335
335
  }
336
- }, $o = async () => (de.debug("navigating to CUI"), await Ut({
337
- urlOverride: `${k}/api/app/kosdev.ddk/cui/open`
338
- })), To = async () => (de.debug("navigating to NCUI"), await Ut({
339
- urlOverride: `${k}/api/app/kosdev.ddk/ncui/open`
336
+ }, Qo = async () => (oe.debug("navigating to CUI"), await Et({
337
+ urlOverride: `${S}/api/app/kosdev.ddk/cui/open`
338
+ })), Xo = async () => (oe.debug("navigating to NCUI"), await Et({
339
+ urlOverride: `${S}/api/app/kosdev.ddk/ncui/open`
340
340
  }));
341
- var Po = Object.defineProperty, Oo = Object.getOwnPropertyDescriptor, L = (e, t, r, i) => {
342
- for (var o = i > 1 ? void 0 : i ? Oo(t, r) : t, n = e.length - 1, a; n >= 0; n--)
343
- (a = e[n]) && (o = (i ? a(t, r, o) : a(o)) || o);
344
- return i && o && Po(t, r, o), o;
345
- };
346
- const q = "application-model", Vt = (e, t = "") => e.reduce((r, i) => {
347
- const o = t ? `${t}.${i.name}` : i.name;
348
- if (r[o] = { ...i, root: !t }, i.children) {
349
- const n = Vt(i.children, o);
341
+ var Jo = Object.defineProperty, Zo = Object.getOwnPropertyDescriptor, O = (e, t, o, s) => {
342
+ for (var r = s > 1 ? void 0 : s ? Zo(t, o) : t, n = e.length - 1, a; n >= 0; n--)
343
+ (a = e[n]) && (r = (s ? a(t, o, r) : a(r)) || r);
344
+ return s && r && Jo(t, o, r), r;
345
+ };
346
+ const U = "application-model", Lt = (e, t = "") => e.reduce((o, s) => {
347
+ const r = t ? `${t}.${s.name}` : s.name;
348
+ if (o[r] = { ...s, root: !t }, s.children) {
349
+ const n = Lt(s.children, r);
350
350
  Object.keys(n).forEach((a) => {
351
- r[a] = n[a];
351
+ o[a] = n[a];
352
352
  });
353
353
  }
354
- return r;
354
+ return o;
355
355
  }, {});
356
- let M = class {
357
- constructor(e, t, r) {
358
- s(this, "id");
359
- s(this, "device");
360
- s(this, "authModel");
361
- s(this, "setupStepContainer");
362
- s(this, "door");
363
- s(this, "ncuiLanguage");
364
- s(this, "activeCui");
365
- s(this, "fallbackCui");
366
- s(this, "_cuis", []);
367
- s(this, "_navigationItems", []);
356
+ let b = class {
357
+ constructor(e, t, o) {
358
+ i(this, "id");
359
+ i(this, "device");
360
+ i(this, "authModel");
361
+ i(this, "setupStepContainer");
362
+ i(this, "door");
363
+ i(this, "ncuiLanguage");
364
+ i(this, "activeCui");
365
+ i(this, "fallbackCui");
366
+ i(this, "_cuis", []);
367
+ i(this, "_navigationItems", []);
368
368
  // @kosConfigProperty({
369
369
  // path: 'somewhere.enable.dial.animation',
370
370
  // attribute: 'enableDialAnimation',
@@ -380,9 +380,9 @@ let M = class {
380
380
  // attribute: 'enableSidebarAnimation',
381
381
  // })
382
382
  // enableSidebarAnimation!: KosConfigProperty<boolean>;
383
- s(this, "languages");
384
- s(this, "logger");
385
- this.id = e, this.languages = [], this._cuis = [], this.logger = r.logger, this.door = po.instance("app:kosdev.ddk:service:door:door").options({
383
+ i(this, "languages");
384
+ i(this, "logger");
385
+ this.id = e, this.languages = [], this._cuis = [], this.logger = o.logger, this.door = No.instance("app:kosdev.ddk:service:door:door").options({
386
386
  doorPath: "app:kosdev.ddk:service:door:door"
387
387
  }).build();
388
388
  }
@@ -396,7 +396,7 @@ let M = class {
396
396
  return this._cuis.reduce((e, t) => (e[t.appId] = t, e), {});
397
397
  }
398
398
  get navigationItems() {
399
- return Vt(this._navigationItems);
399
+ return Lt(this._navigationItems);
400
400
  }
401
401
  get hasCuiDefined() {
402
402
  return !!this.activeCui.value || !!this.fallbackCui.value;
@@ -405,19 +405,19 @@ let M = class {
405
405
  return this.door.isOpen;
406
406
  }
407
407
  async enter() {
408
- this.logger.info("navigating to NCUI"), await To();
408
+ this.logger.info("navigating to NCUI"), await Xo();
409
409
  }
410
410
  async exit() {
411
- this.logger.info("navigating to CUI"), await $o();
411
+ this.logger.info("navigating to CUI"), await Qo();
412
412
  }
413
413
  // -------------------LIFECYCLE----------------------------
414
414
  async load() {
415
- var r, i;
415
+ var o, s;
416
416
  this.logger.debug(`loading application ${this.id}`);
417
- const e = await _o();
417
+ const e = await qo();
418
418
  this._navigationItems = e;
419
- const t = await vo();
420
- this._cuis = t, (r = this.setupStepContainer) != null && r.hasIncompletePreSteps && ((i = this.authModel) == null || i.forceRole("technician")), this.languages = [
419
+ const t = await Go();
420
+ this._cuis = t, (o = this.setupStepContainer) != null && o.hasIncompletePreSteps && ((s = this.authModel) == null || s.forceRole("technician")), this.languages = [
421
421
  {
422
422
  name: "English",
423
423
  locale: "en"
@@ -425,87 +425,87 @@ let M = class {
425
425
  ];
426
426
  }
427
427
  };
428
- L([
429
- m({ modelType: Nr.type })
430
- ], M.prototype, "device", 2);
431
- L([
432
- m({ modelType: ct.type })
433
- ], M.prototype, "authModel", 2);
434
- L([
435
- m({ modelType: jt.type })
436
- ], M.prototype, "setupStepContainer", 2);
437
- L([
438
- Ie
439
- ], M.prototype, "door", 2);
440
- L([
428
+ O([
429
+ p({ modelType: bo.type })
430
+ ], b.prototype, "device", 2);
431
+ O([
432
+ p({ modelType: qe.type })
433
+ ], b.prototype, "authModel", 2);
434
+ O([
435
+ p({ modelType: wt.type })
436
+ ], b.prototype, "setupStepContainer", 2);
437
+ O([
438
+ $e
439
+ ], b.prototype, "door", 2);
440
+ O([
441
441
  d({
442
442
  path: "app:kosdev.ddk:app",
443
443
  attribute: "ncui.ncuiLanguage"
444
444
  //updated attribute for language config property
445
445
  })
446
- ], M.prototype, "ncuiLanguage", 2);
447
- L([
446
+ ], b.prototype, "ncuiLanguage", 2);
447
+ O([
448
448
  d({
449
449
  path: "app:kosdev.ddk:service:cui",
450
450
  attribute: "activeCui"
451
451
  })
452
- ], M.prototype, "activeCui", 2);
453
- L([
452
+ ], b.prototype, "activeCui", 2);
453
+ O([
454
454
  d({
455
455
  path: "app:kosdev.ddk:service:cui",
456
456
  attribute: "fallbackCui"
457
457
  })
458
- ], M.prototype, "fallbackCui", 2);
459
- M = L([
460
- l(q)
461
- ], M);
462
- const dt = {
458
+ ], b.prototype, "fallbackCui", 2);
459
+ b = O([
460
+ l(U)
461
+ ], b);
462
+ const Xe = {
463
463
  registration: {
464
- [q]: {
465
- class: M,
464
+ [U]: {
465
+ class: b,
466
466
  singleton: !0
467
467
  }
468
468
  },
469
- type: q,
470
- predicate: u(q),
469
+ type: U,
470
+ predicate: u(U),
471
471
  factory: c.Singleton.create(
472
- q
472
+ U
473
473
  )
474
- }, be = {
474
+ }, de = {
475
475
  none: 999,
476
476
  crew: 0,
477
477
  technician: 1,
478
478
  manager: 2
479
- }, Ht = (e) => (t) => {
480
- if (t.type === St)
479
+ }, Ct = (e) => (t) => {
480
+ if (t.type === ht)
481
481
  return !1;
482
- const r = (t == null ? void 0 : t.role) || "technician";
483
- if (e && r) {
484
- const i = be[e.toLowerCase()] ?? be.crew, o = be[r.toLowerCase()] ?? be.crew;
485
- return i >= o;
482
+ const o = (t == null ? void 0 : t.role) || "technician";
483
+ if (e && o) {
484
+ const s = de[e.toLowerCase()] ?? de.crew, r = de[o.toLowerCase()] ?? de.crew;
485
+ return s >= r;
486
486
  }
487
487
  return !1;
488
488
  };
489
- var Mo = Object.defineProperty, So = Object.getOwnPropertyDescriptor, V = (e, t, r, i) => {
490
- for (var o = i > 1 ? void 0 : i ? So(t, r) : t, n = e.length - 1, a; n >= 0; n--)
491
- (a = e[n]) && (o = (i ? a(t, r, o) : a(o)) || o);
492
- return i && o && Mo(t, r, o), o;
493
- };
494
- const Wt = "agitation-control-model", Xe = "resolve", Co = "agitate";
495
- let w = class {
496
- constructor(e, t, r) {
497
- s(this, "id");
498
- s(this, "futureHandler");
499
- s(this, "logger");
500
- s(this, "troubleContainer");
501
- s(this, "_agitationFutureId");
502
- s(this, "_canExit", !0);
503
- s(this, "_exiting", !1);
504
- s(this, "_isFailed", !1);
505
- s(this, "disposer");
506
- s(this, "application");
507
- s(this, "inProgress", []);
508
- this.id = e, this.logger = r.logger, this.troubleContainer = t.companionParent, this.futureHandler = new zr(this, Xe);
489
+ var er = Object.defineProperty, tr = Object.getOwnPropertyDescriptor, D = (e, t, o, s) => {
490
+ for (var r = s > 1 ? void 0 : s ? tr(t, o) : t, n = e.length - 1, a; n >= 0; n--)
491
+ (a = e[n]) && (r = (s ? a(t, o, r) : a(r)) || r);
492
+ return s && r && er(t, o, r), r;
493
+ };
494
+ const kt = "agitation-control-model", Fe = "resolve", or = "agitate";
495
+ let $ = class {
496
+ constructor(e, t, o) {
497
+ i(this, "id");
498
+ i(this, "futureHandler");
499
+ i(this, "logger");
500
+ i(this, "troubleContainer");
501
+ i(this, "_agitationFutureId");
502
+ i(this, "_canExit", !0);
503
+ i(this, "_exiting", !1);
504
+ i(this, "_isFailed", !1);
505
+ i(this, "disposer");
506
+ i(this, "application");
507
+ i(this, "inProgress", []);
508
+ this.id = e, this.logger = o.logger, this.troubleContainer = t.companionParent, this.futureHandler = new _o(this, Fe);
509
509
  }
510
510
  set isFailed(e) {
511
511
  this._isFailed = e;
@@ -534,23 +534,23 @@ let w = class {
534
534
  });
535
535
  }
536
536
  get readyToResolve() {
537
- const e = this.queuedTroubles.length, t = this.queuedTroubles.filter((i) => i.shouldDefer), r = e > 0 && t.length === 0;
538
- return this.isDoorClosed && r && this.exiting;
537
+ const e = this.queuedTroubles.length, t = this.queuedTroubles.filter((s) => s.shouldDefer), o = e > 0 && t.length === 0;
538
+ return this.isDoorClosed && o && this.exiting;
539
539
  }
540
540
  onFutureUpdate(e) {
541
- e.endState === b.Success ? (this.logger.debug(
541
+ e.endState === T.Success ? (this.logger.debug(
542
542
  `Resolve deferred troubles future ${e.id} completed successfully`
543
543
  ), this.queuedTroubles.forEach((t) => {
544
544
  t.clearDefer();
545
- }), _(() => {
545
+ }), v(() => {
546
546
  this._canExit = !0, this._isFailed = !1;
547
- })) : (e.endState === b.Fail || e.endState === b.Canceled || e.endState === b.Aborted) && (this.logger.error(`Resolve deferred troubles future ${e.id} failed`), this.clearAll(), _(() => {
547
+ })) : (e.endState === T.Fail || e.endState === T.Canceled || e.endState === T.Aborted) && (this.logger.error(`Resolve deferred troubles future ${e.id} failed`), this.clearAll(), v(() => {
548
548
  this._canExit = !1, this._isFailed = !0;
549
549
  }));
550
550
  }
551
551
  async resolveDeferredTroubles(e) {
552
- const t = this.queuedTroubles.filter((i) => !i.shouldDefer).map((i) => i.rawId).filter((i) => !this.inProgress.includes(i));
553
- return this.inProgress.push(...t), t.length === 0 ? void 0 : await Re.bulkResolveTroubles(
552
+ const t = this.queuedTroubles.filter((s) => !s.shouldDefer).map((s) => s.rawId).filter((s) => !this.inProgress.includes(s));
553
+ return this.inProgress.push(...t), t.length === 0 ? void 0 : await Me.bulkResolveTroubles(
554
554
  t,
555
555
  void 0,
556
556
  e
@@ -561,23 +561,23 @@ let w = class {
561
561
  }
562
562
  get queuedTroubles() {
563
563
  return this.troubleContainer.troubles.getIndexByKey(
564
- yt.INDEX_TROUBLES_BY_DEFERRED,
565
- yt.TROUBLES_DEFERRED
564
+ rt.INDEX_TROUBLES_BY_DEFERRED,
565
+ rt.TROUBLES_DEFERRED
566
566
  );
567
567
  }
568
568
  get visibleTroubles() {
569
569
  const e = this.application.currentRole;
570
- return this.troubleContainer.troubles.data.filter(Ht(e)).filter((t) => t.type !== St);
570
+ return this.troubleContainer.troubles.data.filter(Ct(e)).filter((t) => t.type !== ht);
571
571
  }
572
572
  // -------------------LIFECYCLE----------------------------
573
573
  get future() {
574
574
  return this.futureHandler.future;
575
575
  }
576
576
  get resolveFuture() {
577
- return this.futureHandler.getFuture(Xe);
577
+ return this.futureHandler.getFuture(Fe);
578
578
  }
579
579
  get agitateFuture() {
580
- return this.futureHandler.getFuture(Co);
580
+ return this.futureHandler.getFuture(or);
581
581
  }
582
582
  handleAgitationStarted(e) {
583
583
  this.logger.info(`Agitation started for ${e.path}`), this._agitationFutureId = String(e.futureId);
@@ -598,306 +598,109 @@ let w = class {
598
598
  this.logger.debug(`loading agitation-control ${this.id}`);
599
599
  }
600
600
  };
601
- V([
602
- m({ modelType: dt.type })
603
- ], w.prototype, "application", 2);
604
- V([
605
- v({ alias: Xe })
606
- ], w.prototype, "resolveDeferredTroubles", 1);
607
- V([
608
- De({ topic: Ct.TOPIC_AGITATION_STARTED })
609
- ], w.prototype, "handleAgitationStarted", 1);
610
- V([
611
- De({ topic: Ct.TOPIC_AGITATION_ENDED })
612
- ], w.prototype, "handleAgitationEnded", 1);
613
- V([
614
- Mt({
601
+ D([
602
+ p({ modelType: Xe.type })
603
+ ], $.prototype, "application", 2);
604
+ D([
605
+ P({ alias: Fe })
606
+ ], $.prototype, "resolveDeferredTroubles", 1);
607
+ D([
608
+ Te({ topic: yt.TOPIC_AGITATION_STARTED })
609
+ ], $.prototype, "handleAgitationStarted", 1);
610
+ D([
611
+ Te({ topic: yt.TOPIC_AGITATION_ENDED })
612
+ ], $.prototype, "handleAgitationEnded", 1);
613
+ D([
614
+ He({
615
615
  dependencies: (e) => [e.readyToResolve, e._agitationFutureId]
616
616
  })
617
- ], w.prototype, "handleReadyToResolve", 1);
618
- w = V([
619
- l(Wt)
620
- ], w);
621
- const ws = new Fe({
622
- class: w,
623
- type: Wt
617
+ ], $.prototype, "handleReadyToResolve", 1);
618
+ $ = D([
619
+ l(kt)
620
+ ], $);
621
+ const Ks = new Pe({
622
+ class: $,
623
+ type: kt
624
624
  });
625
- var wo = Object.defineProperty, Eo = Object.getOwnPropertyDescriptor, fe = (e, t, r, i) => {
626
- for (var o = i > 1 ? void 0 : i ? Eo(t, r) : t, n = e.length - 1, a; n >= 0; n--)
627
- (a = e[n]) && (o = (i ? a(t, r, o) : a(o)) || o);
628
- return i && o && wo(t, r, o), o;
625
+ var rr = Object.defineProperty, sr = Object.getOwnPropertyDescriptor, ne = (e, t, o, s) => {
626
+ for (var r = s > 1 ? void 0 : s ? sr(t, o) : t, n = e.length - 1, a; n >= 0; n--)
627
+ (a = e[n]) && (r = (s ? a(t, o, r) : a(r)) || r);
628
+ return s && r && rr(t, o, r), r;
629
629
  };
630
- const G = "animation-model";
631
- let I = class {
632
- constructor(e, t, r) {
633
- s(this, "id");
634
- s(this, "logger");
635
- s(this, "disableAll");
636
- s(this, "enableDial");
637
- s(this, "enableModal");
638
- s(this, "enableSideBar");
639
- this.id = e, this.logger = r.logger;
630
+ const W = "animation-model";
631
+ let w = class {
632
+ constructor(e, t, o) {
633
+ i(this, "id");
634
+ i(this, "logger");
635
+ i(this, "disableAll");
636
+ i(this, "enableDial");
637
+ i(this, "enableModal");
638
+ i(this, "enableSideBar");
639
+ this.id = e, this.logger = o.logger;
640
640
  }
641
641
  };
642
- fe([
642
+ ne([
643
643
  d({
644
644
  path: "app:kosdev.ddk:app",
645
645
  attribute: "ncui.uiConfig.animations.disableAll"
646
646
  })
647
- ], I.prototype, "disableAll", 2);
648
- fe([
647
+ ], w.prototype, "disableAll", 2);
648
+ ne([
649
649
  d({
650
650
  path: "app:kosdev.ddk:app",
651
651
  attribute: "ncui.uiConfig.animations.enableDial"
652
652
  })
653
- ], I.prototype, "enableDial", 2);
654
- fe([
653
+ ], w.prototype, "enableDial", 2);
654
+ ne([
655
655
  d({
656
656
  path: "app:kosdev.ddk:app",
657
657
  attribute: "ncui.uiConfig.animations.enableModal"
658
658
  })
659
- ], I.prototype, "enableModal", 2);
660
- fe([
659
+ ], w.prototype, "enableModal", 2);
660
+ ne([
661
661
  d({
662
662
  path: "app:kosdev.ddk:app",
663
663
  attribute: "ncui.uiConfig.animations.enableSideBar"
664
664
  })
665
- ], I.prototype, "enableSideBar", 2);
666
- I = fe([
667
- l(G)
668
- ], I);
669
- const Lo = {
665
+ ], w.prototype, "enableSideBar", 2);
666
+ w = ne([
667
+ l(W)
668
+ ], w);
669
+ const ir = {
670
670
  registration: {
671
- [G]: {
672
- class: I,
671
+ [W]: {
672
+ class: w,
673
673
  singleton: !0
674
674
  }
675
675
  },
676
- type: G,
677
- predicate: u(G),
678
- factory: c.Singleton.create(G)
679
- }, { URL: Do } = h("ANIMATION_SERVICE"), { getAll: ko } = f.build({
680
- basePath: `${Do}/api/animation`
681
- }), Io = g.createLogger({
676
+ type: W,
677
+ predicate: u(W),
678
+ factory: c.Singleton.create(W)
679
+ }, { URL: nr } = h("ANIMATION_SERVICE"), { getAll: ar } = y.build({
680
+ basePath: `${nr}/api/animation`
681
+ }), lr = g.createLogger({
682
682
  name: "animation-service",
683
683
  group: "Services"
684
- }), Ro = async () => (Io.debug("sending GET for animation"), await ko({})), Es = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
684
+ }), dr = async () => (lr.debug("sending GET for animation"), await ar({})), Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
685
685
  __proto__: null,
686
- getAnimations: Ro
687
- }, Symbol.toStringTag, { value: "Module" })), { URL: H } = h("FCM-PUMP_SERVICE"), { postModel: me } = f.build({
688
- basePath: `${H}/api/fcm-pump`
689
- }), y = g.createLogger({
690
- name: "fcm-pump-service",
691
- group: "Services"
692
- }), Nt = async (e) => {
693
- var t, r, i, o, n;
694
- y.debug(
695
- `performElectricalTest - sending POST request to /api/ext/freestyle/fcm/diagnostics/${e}/electricalTest`
696
- );
697
- try {
698
- const a = await me({
699
- model: {},
700
- urlOverride: `${H}/api/ext/freestyle/fcm/diagnostics/${e}/electricalTest`
701
- });
702
- return y.debug("performElectricalTest - response:", a), ((a == null ? void 0 : a.status) === 200 || (a == null ? void 0 : a.status) === 499) && ((t = a.data) != null && t.error) ? [a.data.error || "unknownError", a.data] : [void 0, a == null ? void 0 : a.data];
703
- } catch (a) {
704
- if (y.error(
705
- `performElectricalTest - sending POST request to /api/ext/freestyle/fcm/diagnostics/${e}/electricalTest`,
706
- a
707
- ), a instanceof Ae) {
708
- const O = ((i = (r = a.payload) == null ? void 0 : r.data) == null ? void 0 : i.error) || ((o = a.payload) == null ? void 0 : o.error) || "unknownError";
709
- return [O, ((n = a.payload) == null ? void 0 : n.data) || { error: O }];
710
- }
711
- }
712
- return ["unknownError", { error: "unknownError" }];
713
- }, zt = async (e, t) => {
714
- y.debug(
715
- `performPreCalibrate - sending POST request to /api/ext/freestyle/fcm/calibration/${e}/preCalibrate`
716
- );
717
- try {
718
- const r = await me({
719
- model: {},
720
- urlOverride: `${H}/api/ext/freestyle/fcm/calibration/${e}/preCalibrate`,
721
- tracker: t
722
- });
723
- return y.debug("performPreCalibrate - response:", r), r != null && r.data && T.initiateFuture(r.data), r == null ? void 0 : r.data;
724
- } catch (r) {
725
- y.error(
726
- `performPreCalibrate - sending POST request to /api/ext/freestyle/fcm/calibration/${e}/preCalibrate`,
727
- r
728
- );
729
- const i = {
730
- id: t || "",
731
- endState: b.Fail,
732
- tracker: t,
733
- reason: "Failed to resolve trouble"
734
- };
735
- return T.initiateFuture(i), i;
736
- }
737
- }, Bt = async (e, t) => {
738
- y.debug(
739
- `performPreCalibrate - sending POST request to /api/ext/freestyle/fcm/calibration/${e}/calibrate`
740
- );
741
- try {
742
- const r = await me({
743
- model: {},
744
- urlOverride: `${H}/api/ext/freestyle/fcm/calibration/${e}/calibrate`,
745
- tracker: t
746
- });
747
- return y.debug("performPreCalibrate - response:", r), r != null && r.data && T.initiateFuture(r.data), r == null ? void 0 : r.data;
748
- } catch (r) {
749
- y.error(
750
- `performPreCalibrate - sending POST request to /api/ext/freestyle/fcm/calibration/${e}/calibrate`,
751
- r
752
- );
753
- const i = {
754
- id: t || "",
755
- endState: b.Fail,
756
- tracker: t,
757
- reason: "Failed to resolve trouble"
758
- };
759
- return T.initiateFuture(i), i;
760
- }
761
- }, Kt = async (e, t, r) => {
762
- y.debug(
763
- `performPreCalibrate - sending POST request to /api/ext/freestyle/fcm/calibration/${e}/verify/${t}`
764
- );
765
- try {
766
- const i = await me({
767
- model: {},
768
- urlOverride: `${H}/api/ext/freestyle/fcm/calibration/${e}/verify/${t}`,
769
- tracker: r
770
- });
771
- return y.debug("performVerify - response:", i), i != null && i.data && T.initiateFuture(i.data), i == null ? void 0 : i.data;
772
- } catch (i) {
773
- y.error(
774
- `performVerify - sending POST request to /api/ext/freestyle/fcm/calibration/${e}/verify/${t}`,
775
- i
776
- );
777
- const o = {
778
- id: r || "",
779
- endState: b.Fail,
780
- tracker: r,
781
- reason: "Failed to resolve trouble"
782
- };
783
- return T.initiateFuture(o), o;
784
- }
785
- }, Fo = (e) => e ? e.data === "success" || !e.data ? "success" : e.data : "error", Yt = async (e, t, r) => {
786
- y.debug(
787
- `performPreCalibrate - sending POST request to /api/ext/freestyle/fcm/calibration/${e}/complete/${t}/${r}`
788
- );
789
- try {
790
- const i = await me({
791
- model: {},
792
- urlOverride: `${H}/api/ext/freestyle/fcm/calibration/${e}/complete/${t}/${r}`
793
- });
794
- return y.debug("performPreCalibrate - response:", i), Fo(i == null ? void 0 : i.data);
795
- } catch (i) {
796
- y.error(
797
- `performPreCalibrate - sending POST request to /api/ext/freestyle/fcm/calibration/${e}/complete/${t}/${r}`,
798
- i
799
- );
800
- return;
801
- }
802
- }, Ls = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
803
- __proto__: null,
804
- performCalibrate: Bt,
805
- performComplete: Yt,
806
- performElectricalTest: Nt,
807
- performPreCalibrate: zt,
808
- performVerify: Kt
686
+ getAnimations: dr
809
687
  }, Symbol.toStringTag, { value: "Module" }));
810
- var Ao = Object.defineProperty, xo = Object.getOwnPropertyDescriptor, Ve = (e, t, r, i) => {
811
- for (var o = i > 1 ? void 0 : i ? xo(t, r) : t, n = e.length - 1, a; n >= 0; n--)
812
- (a = e[n]) && (o = (i ? a(t, r, o) : a(o)) || o);
813
- return i && o && Ao(t, r, o), o;
814
- };
815
- const qt = "fcm-pump-model", jo = g.createLogger({ name: "fcm-pump-model" });
816
- let F = class {
817
- constructor(e, t, r) {
818
- s(this, "id");
819
- s(this, "logger");
820
- s(this, "pumpModel");
821
- s(this, "futureHandler");
822
- this.id = e, this.logger = r.logger, this.pumpModel = t.companionParent, this.futureHandler = new he(this);
823
- }
824
- get future() {
825
- return this.futureHandler.future;
826
- }
827
- get name() {
828
- return this.pumpModel.name;
829
- }
830
- get canPour() {
831
- return this.pumpModel.canPour;
832
- }
833
- get isPouring() {
834
- return this.pumpModel.isPouring;
835
- }
836
- async cancelPour() {
837
- return this.pumpModel.cancelPour();
838
- }
839
- performIntent(e) {
840
- return this.pumpModel.performIntent(e);
841
- }
842
- async performElectricalTest() {
843
- const [e, t] = await Nt(this.pumpModel.path);
844
- return e && jo.error(`Failed to perform electrical test on pump ${this.id}`, e), t;
845
- }
846
- getChildren() {
847
- return [...this.futureHandler.allFutures];
848
- }
849
- async performPreCalibrate(e) {
850
- return zt(this.pumpModel.path, e);
851
- }
852
- async performCalibrate(e) {
853
- return Bt(this.pumpModel.path, e);
854
- }
855
- async performVerify(e, t) {
856
- return Kt(this.pumpModel.path, e, t);
857
- }
858
- async performComplete(e, t) {
859
- return Yt(this.pumpModel.path, e, t);
860
- }
861
- // -------------------LIFECYCLE----------------------------
862
- async init() {
863
- this.logger.debug(`initializing fcm-pump ${this.id}`);
864
- }
865
- async load() {
866
- this.logger.debug(`loading fcm-pump ${this.id}`);
867
- }
868
- };
869
- Ve([
870
- v()
871
- ], F.prototype, "performPreCalibrate", 1);
872
- Ve([
873
- v()
874
- ], F.prototype, "performCalibrate", 1);
875
- Ve([
876
- v()
877
- ], F.prototype, "performVerify", 1);
878
- F = Ve([
879
- l(qt)
880
- ], F);
881
- const Gt = new ke({
882
- class: F,
883
- type: qt
884
- });
885
- var Uo = Object.defineProperty, Vo = Object.getOwnPropertyDescriptor, Qt = (e, t, r, i) => {
886
- for (var o = i > 1 ? void 0 : i ? Vo(t, r) : t, n = e.length - 1, a; n >= 0; n--)
887
- (a = e[n]) && (o = (i ? a(t, r, o) : a(o)) || o);
888
- return i && o && Uo(t, r, o), o;
889
- };
890
- const Q = "carb-water-model";
891
- let Pe = class {
892
- constructor(e, t, r) {
893
- s(this, "id");
894
- s(this, "assemblyModel");
895
- s(this, "logger");
896
- this.id = e, this.logger = r.logger;
688
+ var cr = Object.defineProperty, ur = Object.getOwnPropertyDescriptor, Dt = (e, t, o, s) => {
689
+ for (var r = s > 1 ? void 0 : s ? ur(t, o) : t, n = e.length - 1, a; n >= 0; n--)
690
+ (a = e[n]) && (r = (s ? a(t, o, r) : a(r)) || r);
691
+ return s && r && cr(t, o, r), r;
692
+ };
693
+ const N = "carb-water-model";
694
+ let he = class {
695
+ constructor(e, t, o) {
696
+ i(this, "id");
697
+ i(this, "assemblyModel");
698
+ i(this, "logger");
699
+ this.id = e, this.logger = o.logger;
897
700
  }
898
701
  getPump() {
899
702
  const t = this.assemblyModel.getHoldersByGroup("carb")[0].pumps.data[0];
900
- return at(t, Gt.type);
703
+ return Be(t, ft.type);
901
704
  }
902
705
  // -------------------LIFECYCLE----------------------------
903
706
  async init() {
@@ -907,102 +710,102 @@ let Pe = class {
907
710
  this.logger.debug(`loading carb-water ${this.id}`);
908
711
  }
909
712
  };
910
- Qt([
911
- m({ modelType: je.type })
912
- ], Pe.prototype, "assemblyModel", 2);
913
- Pe = Qt([
914
- l(Q)
915
- ], Pe);
916
- const Ho = {
713
+ Dt([
714
+ p({ modelType: Se.type })
715
+ ], he.prototype, "assemblyModel", 2);
716
+ he = Dt([
717
+ l(N)
718
+ ], he);
719
+ const pr = {
917
720
  registration: {
918
- [Q]: {
919
- class: Pe,
721
+ [N]: {
722
+ class: he,
920
723
  singleton: !1
921
724
  }
922
725
  },
923
- type: Q,
924
- predicate: u(Q),
925
- factory: c.Factory.create(Q)
926
- }, { URL: W } = h("COPY-LOGS_SERVICE"), { getAll: Wo, getOne: No, postModel: Xt, deleteModel: zo } = f.build({
927
- basePath: `${W}/api/copy-logs`
928
- }), Oe = g.createLogger({
726
+ type: N,
727
+ predicate: u(N),
728
+ factory: c.Factory.create(N)
729
+ }, { URL: I } = h("COPY-LOGS_SERVICE"), { getAll: gr, getOne: hr, postModel: It, deleteModel: yr } = y.build({
730
+ basePath: `${I}/api/copy-logs`
731
+ }), ye = g.createLogger({
929
732
  name: "copy-logs-service",
930
733
  group: "Services"
931
- }), Jt = async (e, t) => {
932
- const r = await zo({
734
+ }), Rt = async (e, t) => {
735
+ const o = await yr({
933
736
  tracker: t,
934
737
  id: e,
935
- urlOverride: `${W}/api/app/kosdev.ddk/copyLogs/${e}`
738
+ urlOverride: `${I}/api/app/kosdev.ddk/copyLogs/${e}`
936
739
  });
937
- if (!(r != null && r.data))
740
+ if (!(o != null && o.data))
938
741
  throw new Error("No response from server");
939
- return r.data;
940
- }, Zt = async (e, t) => {
941
- const r = await Xt({
742
+ return o.data;
743
+ }, At = async (e, t) => {
744
+ const o = await It({
942
745
  model: {},
943
746
  tracker: t,
944
- urlOverride: `${W}/api/app/kosdev.ddk/copyLogs/eraseAndCopy/${e}`
747
+ urlOverride: `${I}/api/app/kosdev.ddk/copyLogs/eraseAndCopy/${e}`
945
748
  });
946
- if (!(r != null && r.data))
749
+ if (!(o != null && o.data))
947
750
  throw new Error("No response from server");
948
- return r.data;
949
- }, er = async (e, t) => {
950
- const r = await Xt({
751
+ return o.data;
752
+ }, Ft = async (e, t) => {
753
+ const o = await It({
951
754
  model: {},
952
755
  tracker: t,
953
- urlOverride: `${W}/api/app/kosdev.ddk/copyLogs/${e}`
756
+ urlOverride: `${I}/api/app/kosdev.ddk/copyLogs/${e}`
954
757
  });
955
- if (!(r != null && r.data))
758
+ if (!(o != null && o.data))
956
759
  throw new Error("No response from server");
957
- return r.data;
958
- }, tr = async () => {
959
- Oe.debug("sending GET for copy-logs");
760
+ return o.data;
761
+ }, xt = async () => {
762
+ ye.debug("sending GET for copy-logs");
960
763
  try {
961
- const e = await Wo({
962
- urlOverride: `${W}/api/app/kosdev.ddk/copyLogs/volumes/size`
764
+ const e = await gr({
765
+ urlOverride: `${I}/api/app/kosdev.ddk/copyLogs/volumes/size`
963
766
  });
964
767
  return [void 0, e == null ? void 0 : e.data];
965
768
  } catch (e) {
966
- if (e instanceof Ae)
967
- return Oe.error(`Error fetching log file size: ${e.payload.error}`), [e.payload.error, void 0];
769
+ if (e instanceof pt)
770
+ return ye.error(`Error fetching log file size: ${e.payload.error}`), [e.payload.error, void 0];
968
771
  }
969
772
  return ["unknownError", void 0];
970
- }, rr = async () => {
971
- Oe.debug("sending GET for log file size");
773
+ }, jt = async () => {
774
+ ye.debug("sending GET for log file size");
972
775
  try {
973
- const e = await No({
974
- urlOverride: `${W}/api/app/kosdev.ddk/copyLogs/files/size`
776
+ const e = await hr({
777
+ urlOverride: `${I}/api/app/kosdev.ddk/copyLogs/files/size`
975
778
  });
976
779
  return [void 0, e == null ? void 0 : e.data];
977
780
  } catch (e) {
978
- if (e instanceof Ae)
979
- return Oe.error(`Error fetching log file size: ${e.payload.error}`), [e.payload.error, void 0];
781
+ if (e instanceof pt)
782
+ return ye.error(`Error fetching log file size: ${e.payload.error}`), [e.payload.error, void 0];
980
783
  }
981
784
  return ["unknownError", void 0];
982
- }, Ds = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
785
+ }, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
983
786
  __proto__: null,
984
- copyLogFromVolume: er,
985
- eraseAndCopyLogsToVolume: Zt,
986
- eraseVolume: Jt,
987
- getLogFileSize: rr,
988
- getVolumes: tr
787
+ copyLogFromVolume: Ft,
788
+ eraseAndCopyLogsToVolume: At,
789
+ eraseVolume: Rt,
790
+ getLogFileSize: jt,
791
+ getVolumes: xt
989
792
  }, Symbol.toStringTag, { value: "Module" }));
990
- var or = Object.defineProperty, Bo = Object.getOwnPropertyDescriptor, Ko = (e, t, r) => t in e ? or(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, N = (e, t, r, i) => {
991
- for (var o = i > 1 ? void 0 : i ? Bo(t, r) : t, n = e.length - 1, a; n >= 0; n--)
992
- (a = e[n]) && (o = (i ? a(t, r, o) : a(o)) || o);
993
- return i && o && or(t, r, o), o;
994
- }, Yo = (e, t, r) => (Ko(e, t + "", r), r);
995
- const qo = "copy-logs-model";
996
- let S = class {
793
+ var Ut = Object.defineProperty, fr = Object.getOwnPropertyDescriptor, vr = (e, t, o) => t in e ? Ut(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, R = (e, t, o, s) => {
794
+ for (var r = s > 1 ? void 0 : s ? fr(t, o) : t, n = e.length - 1, a; n >= 0; n--)
795
+ (a = e[n]) && (r = (s ? a(t, o, r) : a(r)) || r);
796
+ return s && r && Ut(t, o, r), r;
797
+ }, mr = (e, t, o) => (vr(e, t + "", o), o);
798
+ const br = "copy-logs-model";
799
+ let _ = class {
997
800
  constructor(e) {
998
- s(this, "id");
999
- s(this, "_volumes");
1000
- s(this, "storageDeviceContainer");
1001
- s(this, "_activeVolume");
1002
- s(this, "_logFileSize", 0);
1003
- s(this, "_actionState", "idle");
1004
- s(this, "copyProgress");
1005
- this.id = e, this._volumes = new qr(), this._activeVolume = void 0, this.copyProgress = {
801
+ i(this, "id");
802
+ i(this, "_volumes");
803
+ i(this, "storageDeviceContainer");
804
+ i(this, "_activeVolume");
805
+ i(this, "_logFileSize", 0);
806
+ i(this, "_actionState", "idle");
807
+ i(this, "copyProgress");
808
+ this.id = e, this._volumes = new Mo(), this._activeVolume = void 0, this.copyProgress = {
1006
809
  bytesCopied: 0,
1007
810
  bytesToCopy: 0,
1008
811
  filesCopied: 0,
@@ -1042,19 +845,19 @@ let S = class {
1042
845
  }
1043
846
  get diskFull() {
1044
847
  var e;
1045
- return ((e = this.future) == null ? void 0 : e.status) === b.Success && this.copyProgress.filesSkipped > 0;
848
+ return ((e = this.future) == null ? void 0 : e.status) === T.Success && this.copyProgress.filesSkipped > 0;
1046
849
  }
1047
850
  onFutureUpdate(e) {
1048
- this.logger.info(`Future update: ${e.status}`), e.status === b.Success && (this.logger.info(`Future success: ${e.status}`), this.diskFull && _(() => {
1049
- e.endState = b.Fail, e.reason = "errDiskFull";
1050
- })), e.status === b.Fail && this.logger.error(`Future failed: ${e.status}`), e.note === "copy" ? _(() => {
851
+ this.logger.info(`Future update: ${e.status}`), e.status === T.Success && (this.logger.info(`Future success: ${e.status}`), this.diskFull && v(() => {
852
+ e.endState = T.Fail, e.reason = "errDiskFull";
853
+ })), e.status === T.Fail && this.logger.error(`Future failed: ${e.status}`), e.note === "copy" ? v(() => {
1051
854
  this._actionState = "copying", this.copyProgress = e.clientData || {
1052
855
  bytesCopied: 0,
1053
856
  bytesToCopy: 0,
1054
857
  filesCopied: 0,
1055
858
  filesSkipped: 0
1056
859
  };
1057
- }) : (this._actionState = "erasing", _(() => {
860
+ }) : (this._actionState = "erasing", v(() => {
1058
861
  this.copyProgress = {
1059
862
  bytesCopied: 0,
1060
863
  bytesToCopy: 0,
@@ -1067,31 +870,31 @@ let S = class {
1067
870
  var t;
1068
871
  if (!e)
1069
872
  throw new Error("No tracker provided");
1070
- if (_(() => {
873
+ if (v(() => {
1071
874
  this._actionState = "erasing";
1072
875
  }), !this._activeVolume)
1073
876
  throw this.logger.error("No active volume selected"), new Error("No active volume selected");
1074
- return this.logger.info(`Erasing volume ${(t = this._activeVolume) == null ? void 0 : t.name}`), Zt(this._activeVolume.id, e);
877
+ return this.logger.info(`Erasing volume ${(t = this._activeVolume) == null ? void 0 : t.name}`), At(this._activeVolume.id, e);
1075
878
  }
1076
879
  async eraseVolume(e) {
1077
880
  var t;
1078
881
  if (!e)
1079
882
  throw new Error("No tracker provided");
1080
- if (_(() => {
883
+ if (v(() => {
1081
884
  this._actionState = "erasing";
1082
885
  }), !this._activeVolume)
1083
886
  throw this.logger.error("No active volume selected"), new Error("No active volume selected");
1084
- return this.logger.info(`Erasing volume ${(t = this._activeVolume) == null ? void 0 : t.name}`), Jt(this._activeVolume.id, e);
887
+ return this.logger.info(`Erasing volume ${(t = this._activeVolume) == null ? void 0 : t.name}`), Rt(this._activeVolume.id, e);
1085
888
  }
1086
889
  async copyLogs(e) {
1087
890
  var t;
1088
891
  if (!e)
1089
892
  throw new Error("No tracker provided");
1090
- if (_(() => {
893
+ if (v(() => {
1091
894
  this._actionState = "copying";
1092
895
  }), !this._activeVolume)
1093
896
  throw this.logger.error("No active volume selected"), new Error("No active volume selected");
1094
- return this.logger.info(`Copying logs to ${(t = this._activeVolume) == null ? void 0 : t.name}`), er(this._activeVolume.id, e);
897
+ return this.logger.info(`Copying logs to ${(t = this._activeVolume) == null ? void 0 : t.name}`), Ft(this._activeVolume.id, e);
1095
898
  }
1096
899
  handleInsertion() {
1097
900
  this.inserted ? this.syncVolumes() : (this._volumes.clear(), this.clearActiveVolume());
@@ -1100,27 +903,27 @@ let S = class {
1100
903
  this.logger.debug(`initializing copy-logs ${this.id}`);
1101
904
  }
1102
905
  async syncVolumes() {
1103
- const [e, t] = await tr(), [r, i] = await rr();
1104
- if (r) {
1105
- this.logger.error(`Error fetching log file size: ${r}`);
906
+ const [e, t] = await xt(), [o, s] = await jt();
907
+ if (o) {
908
+ this.logger.error(`Error fetching log file size: ${o}`);
1106
909
  return;
1107
910
  }
1108
911
  if (e) {
1109
912
  this.logger.error(`Error fetching volumes: ${e}`);
1110
913
  return;
1111
914
  }
1112
- t && (t.forEach((o) => {
1113
- const n = this.storageDeviceContainer.getModel(o.id);
915
+ t && (t.forEach((r) => {
916
+ const n = this.storageDeviceContainer.getModel(r.id);
1114
917
  if (n) {
1115
918
  const a = {
1116
- id: o.id,
919
+ id: r.id,
1117
920
  name: n.label,
1118
- freeBytes: o.info.freeBytes,
1119
- totalBytes: o.info.totalBytes
921
+ freeBytes: r.info.freeBytes,
922
+ totalBytes: r.info.totalBytes
1120
923
  };
1121
924
  this._volumes.addModel(a);
1122
925
  }
1123
- }), t.length === 1 ? this.updateActiveVolume(this._volumes.data[0]) : this.clearActiveVolume()), i && (this.logger.info(`Log file size: ${i}`), this.updateLogFileSize(parseInt(i, 10)));
926
+ }), t.length === 1 ? this.updateActiveVolume(this._volumes.data[0]) : this.clearActiveVolume()), s && (this.logger.info(`Log file size: ${s}`), this.updateLogFileSize(parseInt(s, 10)));
1124
927
  }
1125
928
  async activate() {
1126
929
  this.logger.debug(`activating copy-logs ${this.id}`), await this.syncVolumes();
@@ -1129,82 +932,82 @@ let S = class {
1129
932
  this.logger.debug(`loading copy-logs ${this.id}`);
1130
933
  }
1131
934
  };
1132
- Yo(S, "Registration");
1133
- N([
1134
- m({ modelType: Br.type })
1135
- ], S.prototype, "storageDeviceContainer", 2);
1136
- N([
1137
- v()
1138
- ], S.prototype, "eraseAndCopyVolume", 1);
1139
- N([
1140
- v()
1141
- ], S.prototype, "eraseVolume", 1);
1142
- N([
1143
- v()
1144
- ], S.prototype, "copyLogs", 1);
1145
- N([
1146
- Mt({
935
+ mr(_, "Registration");
936
+ R([
937
+ p({ modelType: To.type })
938
+ ], _.prototype, "storageDeviceContainer", 2);
939
+ R([
940
+ P()
941
+ ], _.prototype, "eraseAndCopyVolume", 1);
942
+ R([
943
+ P()
944
+ ], _.prototype, "eraseVolume", 1);
945
+ R([
946
+ P()
947
+ ], _.prototype, "copyLogs", 1);
948
+ R([
949
+ He({
1147
950
  dependencies: (e) => [e.inserted]
1148
951
  })
1149
- ], S.prototype, "handleInsertion", 1);
1150
- S = N([
1151
- l({ modelTypeId: qo, singleton: !0 }),
1152
- Kr(),
1153
- Yr()
1154
- ], S);
1155
- const ks = S.Registration, ir = g.createLogger({
952
+ ], _.prototype, "handleInsertion", 1);
953
+ _ = R([
954
+ l({ modelTypeId: br, singleton: !0 }),
955
+ $o(),
956
+ gt()
957
+ ], _);
958
+ const qs = _.Registration, Wt = g.createLogger({
1156
959
  name: "dashboard-operations-service",
1157
960
  group: "Services"
1158
- }), sr = async (e, t) => (ir.debug("resolveAll"), await Re.bulkResolveTroubles(
961
+ }), Nt = async (e, t) => (Wt.debug("resolveAll"), await Me.bulkResolveTroubles(
1159
962
  e,
1160
963
  void 0,
1161
964
  t
1162
- )), ar = async (e, t) => (ir.debug("resolveTrouble"), await Re.resolveTrouble(
965
+ )), zt = async (e, t) => (Wt.debug("resolveTrouble"), await Me.resolveTrouble(
1163
966
  e,
1164
967
  void 0,
1165
968
  t
1166
- )), Is = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
969
+ )), Qs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1167
970
  __proto__: null,
1168
- resolveAll: sr,
1169
- resolveTrouble: ar
971
+ resolveAll: Nt,
972
+ resolveTrouble: zt
1170
973
  }, Symbol.toStringTag, { value: "Module" }));
1171
- var Go = Object.defineProperty, Qo = Object.getOwnPropertyDescriptor, He = (e, t, r, i) => {
1172
- for (var o = i > 1 ? void 0 : i ? Qo(t, r) : t, n = e.length - 1, a; n >= 0; n--)
1173
- (a = e[n]) && (o = (i ? a(t, r, o) : a(o)) || o);
1174
- return i && o && Go(t, r, o), o;
974
+ var _r = Object.defineProperty, Tr = Object.getOwnPropertyDescriptor, Ee = (e, t, o, s) => {
975
+ for (var r = s > 1 ? void 0 : s ? Tr(t, o) : t, n = e.length - 1, a; n >= 0; n--)
976
+ (a = e[n]) && (r = (s ? a(t, o, r) : a(r)) || r);
977
+ return s && r && _r(t, o, r), r;
1175
978
  };
1176
- const X = "dashboard-operations-model";
1177
- function Tt(e) {
979
+ const z = "dashboard-operations-model";
980
+ function lt(e) {
1178
981
  return !e.deferred;
1179
982
  }
1180
- function Pt(e) {
983
+ function dt(e) {
1181
984
  return e.deferred;
1182
985
  }
1183
- let A = class {
1184
- constructor(e, t, r) {
1185
- s(this, "id");
1186
- s(this, "troubles");
1187
- s(this, "futureHandler");
1188
- s(this, "logger");
1189
- this.id = e, this.futureHandler = new he(this), this.logger = r.logger;
986
+ let L = class {
987
+ constructor(e, t, o) {
988
+ i(this, "id");
989
+ i(this, "troubles");
990
+ i(this, "futureHandler");
991
+ i(this, "logger");
992
+ this.id = e, this.futureHandler = new Ye(this), this.logger = o.logger;
1190
993
  }
1191
994
  get troublesByType() {
1192
995
  return this.troubles.troubles.data.reduce(
1193
- Gr,
996
+ Po,
1194
997
  {}
1195
998
  );
1196
999
  }
1197
1000
  get queuedPurgeTroubles() {
1198
- return this.purgeTroubles.filter(Pt);
1001
+ return this.purgeTroubles.filter(dt);
1199
1002
  }
1200
1003
  get queuedPrimeTroubles() {
1201
- return this.primeTroubles.filter(Pt);
1004
+ return this.primeTroubles.filter(dt);
1202
1005
  }
1203
1006
  get resolvablePrimeTroubles() {
1204
- return this.primeTroubles.filter(Tt);
1007
+ return this.primeTroubles.filter(lt);
1205
1008
  }
1206
1009
  get resolvablePurgeTroubles() {
1207
- return this.purgeTroubles.filter(Tt);
1010
+ return this.purgeTroubles.filter(lt);
1208
1011
  }
1209
1012
  get hasResolvablePurgeTroubles() {
1210
1013
  return this.resolvablePurgeTroubles.length > 0;
@@ -1219,10 +1022,10 @@ let A = class {
1219
1022
  return this.primeTroubles.length > 0;
1220
1023
  }
1221
1024
  get purgeTroubles() {
1222
- return this.troublesByType[bt] || [];
1025
+ return this.troublesByType[st] || [];
1223
1026
  }
1224
1027
  get primeTroubles() {
1225
- return this.troublesByType[oo] || [];
1028
+ return this.troublesByType[Io] || [];
1226
1029
  }
1227
1030
  get future() {
1228
1031
  return this.futureHandler.getFuture();
@@ -1230,17 +1033,17 @@ let A = class {
1230
1033
  async resolveAllTroubles(e, t) {
1231
1034
  if (!t)
1232
1035
  throw new Error("No tracker provided");
1233
- const r = e === bt ? this.purgeTroubles : this.primeTroubles;
1234
- r.filter((a) => a.shouldDefer).forEach((a) => {
1036
+ const o = e === st ? this.purgeTroubles : this.primeTroubles;
1037
+ o.filter((a) => a.shouldDefer).forEach((a) => {
1235
1038
  this.logger.info(`Deferring trouble ${a.rawId}`), a.defer();
1236
1039
  });
1237
- const o = r.filter((a) => !a.shouldDefer).map((a) => a.rawId);
1238
- return o.length === 0 ? void 0 : await sr(o, t);
1040
+ const r = o.filter((a) => !a.shouldDefer).map((a) => a.rawId);
1041
+ return r.length === 0 ? void 0 : await Nt(r, t);
1239
1042
  }
1240
1043
  async resolveTrouble(e, t) {
1241
1044
  if (!t)
1242
1045
  throw new Error("No tracker provided");
1243
- return await ar(e, t);
1046
+ return await zt(e, t);
1244
1047
  }
1245
1048
  // -------------------LIFECYCLE----------------------------
1246
1049
  async init() {
@@ -1250,40 +1053,40 @@ let A = class {
1250
1053
  this.logger.debug(`loading dashboard-operations ${this.id}`);
1251
1054
  }
1252
1055
  };
1253
- He([
1254
- m({ modelType: nt.type })
1255
- ], A.prototype, "troubles", 2);
1256
- He([
1257
- v()
1258
- ], A.prototype, "resolveAllTroubles", 1);
1259
- He([
1260
- v()
1261
- ], A.prototype, "resolveTrouble", 1);
1262
- A = He([
1263
- l(X)
1264
- ], A);
1265
- const pt = {
1056
+ Ee([
1057
+ p({ modelType: Ke.type })
1058
+ ], L.prototype, "troubles", 2);
1059
+ Ee([
1060
+ P()
1061
+ ], L.prototype, "resolveAllTroubles", 1);
1062
+ Ee([
1063
+ P()
1064
+ ], L.prototype, "resolveTrouble", 1);
1065
+ L = Ee([
1066
+ l(z)
1067
+ ], L);
1068
+ const Je = {
1266
1069
  registration: {
1267
- [X]: {
1268
- class: A,
1070
+ [z]: {
1071
+ class: L,
1269
1072
  singleton: !0
1270
1073
  }
1271
1074
  },
1272
- type: X,
1273
- predicate: u(X),
1274
- factory: c.Singleton.create(X)
1075
+ type: z,
1076
+ predicate: u(z),
1077
+ factory: c.Singleton.create(z)
1275
1078
  };
1276
- var Xo = Object.getOwnPropertyDescriptor, Jo = (e, t, r, i) => {
1277
- for (var o = i > 1 ? void 0 : i ? Xo(t, r) : t, n = e.length - 1, a; n >= 0; n--)
1278
- (a = e[n]) && (o = a(o) || o);
1279
- return o;
1079
+ var $r = Object.getOwnPropertyDescriptor, Mr = (e, t, o, s) => {
1080
+ for (var r = s > 1 ? void 0 : s ? $r(t, o) : t, n = e.length - 1, a; n >= 0; n--)
1081
+ (a = e[n]) && (r = a(r) || r);
1082
+ return r;
1280
1083
  };
1281
- const J = "dispenser-model";
1282
- let Je = class {
1283
- constructor(e, t, r) {
1284
- s(this, "id");
1285
- s(this, "logger");
1286
- this.id = e, this.logger = r.logger;
1084
+ const V = "dispenser-model";
1085
+ let xe = class {
1086
+ constructor(e, t, o) {
1087
+ i(this, "id");
1088
+ i(this, "logger");
1089
+ this.id = e, this.logger = o.logger;
1287
1090
  }
1288
1091
  updateModel() {
1289
1092
  }
@@ -1295,40 +1098,40 @@ let Je = class {
1295
1098
  this.logger.debug(`loading dispenser ${this.id}`);
1296
1099
  }
1297
1100
  };
1298
- Je = Jo([
1299
- l(J)
1300
- ], Je);
1301
- const Zo = {
1101
+ xe = Mr([
1102
+ l(V)
1103
+ ], xe);
1104
+ const Pr = {
1302
1105
  registration: {
1303
- [J]: {
1304
- class: Je,
1106
+ [V]: {
1107
+ class: xe,
1305
1108
  singleton: !0
1306
1109
  }
1307
1110
  },
1308
- type: J,
1309
- predicate: u(J),
1310
- factory: c.Singleton.create(J)
1311
- }, { URL: ei } = h("DISPENSER_SERVICE"), { getAll: ti } = f.build({
1312
- basePath: `${ei}/api/dispenser`
1313
- }), ri = g.createLogger({
1111
+ type: V,
1112
+ predicate: u(V),
1113
+ factory: c.Singleton.create(V)
1114
+ }, { URL: Or } = h("DISPENSER_SERVICE"), { getAll: Sr } = y.build({
1115
+ basePath: `${Or}/api/dispenser`
1116
+ }), wr = g.createLogger({
1314
1117
  name: "dispenser-service",
1315
1118
  group: "Services"
1316
- }), oi = async () => (ri.debug("sending GET for dispenser"), await ti({})), Rs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1119
+ }), Er = async () => (wr.debug("sending GET for dispenser"), await Sr({})), Xs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1317
1120
  __proto__: null,
1318
- getDispensers: oi
1121
+ getDispensers: Er
1319
1122
  }, Symbol.toStringTag, { value: "Module" }));
1320
- var ii = Object.defineProperty, si = Object.getOwnPropertyDescriptor, nr = (e, t, r, i) => {
1321
- for (var o = i > 1 ? void 0 : i ? si(t, r) : t, n = e.length - 1, a; n >= 0; n--)
1322
- (a = e[n]) && (o = (i ? a(t, r, o) : a(o)) || o);
1323
- return i && o && ii(t, r, o), o;
1324
- };
1325
- const Z = "dispenser-info-model";
1326
- let Me = class {
1327
- constructor(e, t, r) {
1328
- s(this, "logger");
1329
- s(this, "id");
1330
- s(this, "name");
1331
- this.id = e, this.logger = r.logger;
1123
+ var Lr = Object.defineProperty, Cr = Object.getOwnPropertyDescriptor, Vt = (e, t, o, s) => {
1124
+ for (var r = s > 1 ? void 0 : s ? Cr(t, o) : t, n = e.length - 1, a; n >= 0; n--)
1125
+ (a = e[n]) && (r = (s ? a(t, o, r) : a(r)) || r);
1126
+ return s && r && Lr(t, o, r), r;
1127
+ };
1128
+ const H = "dispenser-info-model";
1129
+ let fe = class {
1130
+ constructor(e, t, o) {
1131
+ i(this, "logger");
1132
+ i(this, "id");
1133
+ i(this, "name");
1134
+ this.id = e, this.logger = o.logger;
1332
1135
  }
1333
1136
  // -------------------LIFECYCLE----------------------------
1334
1137
  async init() {
@@ -1338,48 +1141,48 @@ let Me = class {
1338
1141
  this.logger.debug(`loading dispenser-info ${this.id}`);
1339
1142
  }
1340
1143
  };
1341
- nr([
1144
+ Vt([
1342
1145
  d({
1343
1146
  path: "kos:device",
1344
1147
  attribute: "name"
1345
1148
  })
1346
- ], Me.prototype, "name", 2);
1347
- Me = nr([
1348
- l(Z)
1349
- ], Me);
1350
- const ai = {
1149
+ ], fe.prototype, "name", 2);
1150
+ fe = Vt([
1151
+ l(H)
1152
+ ], fe);
1153
+ const kr = {
1351
1154
  registration: {
1352
- [Z]: {
1353
- class: Me,
1155
+ [H]: {
1156
+ class: fe,
1354
1157
  singleton: !1
1355
1158
  }
1356
1159
  },
1357
- type: Z,
1358
- predicate: u(Z),
1160
+ type: H,
1161
+ predicate: u(H),
1359
1162
  factory: c.Factory.create(
1360
- Z
1163
+ H
1361
1164
  )
1362
- }, { URL: ni } = h("DISPENSER-INFO_SERVICE"), { getAll: li } = f.build({
1363
- basePath: `${ni}/api/dispenser-info`
1364
- }), ci = g.createLogger({
1165
+ }, { URL: Dr } = h("DISPENSER-INFO_SERVICE"), { getAll: Ir } = y.build({
1166
+ basePath: `${Dr}/api/dispenser-info`
1167
+ }), Rr = g.createLogger({
1365
1168
  name: "dispenser-info-service",
1366
1169
  group: "Services"
1367
- }), ui = async () => (ci.debug("sending GET for dispenser-info"), await li({})), Fs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1170
+ }), Ar = async () => (Rr.debug("sending GET for dispenser-info"), await Ir({})), Js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1368
1171
  __proto__: null,
1369
- getDispenserInfos: ui
1172
+ getDispenserInfos: Ar
1370
1173
  }, Symbol.toStringTag, { value: "Module" }));
1371
- var di = Object.getOwnPropertyDescriptor, pi = (e, t, r, i) => {
1372
- for (var o = i > 1 ? void 0 : i ? di(t, r) : t, n = e.length - 1, a; n >= 0; n--)
1373
- (a = e[n]) && (o = a(o) || o);
1374
- return o;
1174
+ var Fr = Object.getOwnPropertyDescriptor, xr = (e, t, o, s) => {
1175
+ for (var r = s > 1 ? void 0 : s ? Fr(t, o) : t, n = e.length - 1, a; n >= 0; n--)
1176
+ (a = e[n]) && (r = a(r) || r);
1177
+ return r;
1375
1178
  };
1376
- const ee = "enrollment-model";
1377
- let Ze = class {
1378
- constructor(e, t, r) {
1379
- s(this, "id");
1380
- s(this, "logger");
1381
- s(this, "enrolled");
1382
- this.id = e, this.logger = r.logger, this.enrolled = !1;
1179
+ const B = "enrollment-model";
1180
+ let je = class {
1181
+ constructor(e, t, o) {
1182
+ i(this, "id");
1183
+ i(this, "logger");
1184
+ i(this, "enrolled");
1185
+ this.id = e, this.logger = o.logger, this.enrolled = !1;
1383
1186
  }
1384
1187
  updateModel(e) {
1385
1188
  console.log("updateModel:", e);
@@ -1392,77 +1195,77 @@ let Ze = class {
1392
1195
  this.logger.debug(`loading enrollment ${this.id}`);
1393
1196
  }
1394
1197
  };
1395
- Ze = pi([
1396
- l(ee)
1397
- ], Ze);
1398
- const gi = {
1198
+ je = xr([
1199
+ l(B)
1200
+ ], je);
1201
+ const jr = {
1399
1202
  registration: {
1400
- [ee]: {
1401
- class: Ze,
1203
+ [B]: {
1204
+ class: je,
1402
1205
  singleton: !0
1403
1206
  }
1404
1207
  },
1405
- type: ee,
1406
- predicate: u(ee),
1407
- factory: c.Singleton.create(ee)
1408
- }, { URL: hi } = h("ENROLLMENT_SERVICE"), { getAll: fi } = f.build({
1409
- basePath: `${hi}/api/enrollment`
1410
- }), mi = g.createLogger({
1208
+ type: B,
1209
+ predicate: u(B),
1210
+ factory: c.Singleton.create(B)
1211
+ }, { URL: Ur } = h("ENROLLMENT_SERVICE"), { getAll: Wr } = y.build({
1212
+ basePath: `${Ur}/api/enrollment`
1213
+ }), Nr = g.createLogger({
1411
1214
  name: "enrollment-service",
1412
1215
  group: "Services"
1413
- }), yi = async () => (mi.debug("sending GET for enrollment"), await fi({})), As = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1216
+ }), zr = async () => (Nr.debug("sending GET for enrollment"), await Wr({})), Zs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1414
1217
  __proto__: null,
1415
- getEnrollments: yi
1416
- }, Symbol.toStringTag, { value: "Module" })), xs = (e) => e.toLowerCase().includes("micros"), js = (e) => !e.toLowerCase().includes("micros"), Us = (e) => (t) => {
1417
- const r = e == null ? void 0 : e.getHoldersByGroup(t);
1418
- return r ? r.map((i) => ({ id: i.id, name: i.ingredientName, path: i.path })) : null;
1419
- }, Vs = ["water", "carb", "ns", "nss"], pe = "dashboardKeyFactory", Ye = [];
1420
- Qr(pe, {
1218
+ getEnrollments: zr
1219
+ }, Symbol.toStringTag, { value: "Module" })), ei = (e) => e.toLowerCase().includes("micros"), ti = (e) => !e.toLowerCase().includes("micros"), oi = (e) => (t) => {
1220
+ const o = e == null ? void 0 : e.getHoldersByGroup(t);
1221
+ return o ? o.map((s) => ({ id: s.id, name: s.ingredientName, path: s.path })) : null;
1222
+ }, ri = ["water", "carb", "ns", "nss"], re = "dashboardKeyFactory", De = [];
1223
+ Oo(re, {
1421
1224
  register: (e, t) => {
1422
- Ye.includes(t) || Ye.push(t);
1225
+ De.includes(t) || De.push(t);
1423
1226
  },
1424
1227
  execute: (e, t) => {
1425
- const r = Ye.sort((i, o) => i.rank - o.rank);
1426
- for (const i of r) {
1427
- const o = i.factory(t);
1428
- if (o)
1429
- return o;
1228
+ const o = De.sort((s, r) => s.rank - r.rank);
1229
+ for (const s of o) {
1230
+ const r = s.factory(t);
1231
+ if (r)
1232
+ return r;
1430
1233
  }
1431
1234
  }
1432
1235
  });
1433
- const bi = (e) => {
1434
- xe[pe].register(
1435
- pe,
1236
+ const Vr = (e) => {
1237
+ Oe[re].register(
1238
+ re,
1436
1239
  e
1437
1240
  );
1438
- }, vi = (e) => xe[pe].execute(
1439
- pe,
1241
+ }, Hr = (e) => Oe[re].execute(
1242
+ re,
1440
1243
  e
1441
1244
  );
1442
- xe.registerDashboardKeyFactory = bi;
1443
- xe.executeDashboardKeyFactory = vi;
1444
- const et = 3600, lr = 60, Hs = (e) => {
1445
- const t = Math.floor(e / et), r = Math.floor(e % et / lr);
1446
- return { hours: t, minutes: r };
1447
- }, Ws = (e, t) => e * et + t * lr, _i = (e) => {
1448
- const r = (/* @__PURE__ */ new Date()).valueOf() - e.valueOf(), i = Math.floor(r / (1e3 * 60)), o = Math.floor(i / 60), n = Math.floor(o / 24), a = i % 60, O = o % 24;
1449
- let D = "";
1450
- return n > 0 && (D += `${n} day${n > 1 ? "s" : ""} `), O > 0 && (D += `${O} hour${O > 1 ? "s" : ""} `), (a > 0 || n === 0 && O === 0) && (D += `${a} minute${a > 1 ? "s" : ""} `), D;
1451
- };
1452
- var $i = Object.defineProperty, Ti = Object.getOwnPropertyDescriptor, We = (e, t, r, i) => {
1453
- for (var o = i > 1 ? void 0 : i ? Ti(t, r) : t, n = e.length - 1, a; n >= 0; n--)
1454
- (a = e[n]) && (o = (i ? a(t, r, o) : a(o)) || o);
1455
- return i && o && $i(t, r, o), o;
1456
- };
1457
- const te = "ingredient-summary-model";
1458
- let x = class {
1459
- constructor(e, t, r) {
1460
- s(this, "id");
1461
- s(this, "assemblyModel");
1462
- s(this, "dashboardOperationModel");
1463
- s(this, "appModel");
1464
- s(this, "logger");
1465
- this.id = e, this.logger = r.logger, this.dashboardOperationModel = pt.factory({});
1245
+ Oe.registerDashboardKeyFactory = Vr;
1246
+ Oe.executeDashboardKeyFactory = Hr;
1247
+ const Ue = 3600, Ht = 60, si = (e) => {
1248
+ const t = Math.floor(e / Ue), o = Math.floor(e % Ue / Ht);
1249
+ return { hours: t, minutes: o };
1250
+ }, ii = (e, t) => e * Ue + t * Ht, Br = (e) => {
1251
+ const o = (/* @__PURE__ */ new Date()).valueOf() - e.valueOf(), s = Math.floor(o / (1e3 * 60)), r = Math.floor(s / 60), n = Math.floor(r / 24), a = s % 60, ae = r % 24;
1252
+ let le = "";
1253
+ return n > 0 && (le += `${n} day${n > 1 ? "s" : ""} `), ae > 0 && (le += `${ae} hour${ae > 1 ? "s" : ""} `), (a > 0 || n === 0 && ae === 0) && (le += `${a} minute${a > 1 ? "s" : ""} `), le;
1254
+ };
1255
+ var Kr = Object.defineProperty, Yr = Object.getOwnPropertyDescriptor, Le = (e, t, o, s) => {
1256
+ for (var r = s > 1 ? void 0 : s ? Yr(t, o) : t, n = e.length - 1, a; n >= 0; n--)
1257
+ (a = e[n]) && (r = (s ? a(t, o, r) : a(r)) || r);
1258
+ return s && r && Kr(t, o, r), r;
1259
+ };
1260
+ const K = "ingredient-summary-model";
1261
+ let C = class {
1262
+ constructor(e, t, o) {
1263
+ i(this, "id");
1264
+ i(this, "assemblyModel");
1265
+ i(this, "dashboardOperationModel");
1266
+ i(this, "appModel");
1267
+ i(this, "logger");
1268
+ this.id = e, this.logger = o.logger, this.dashboardOperationModel = Je.factory({});
1466
1269
  }
1467
1270
  get highPriorityHolders() {
1468
1271
  return this.assemblyModel.allHolders.filter(
@@ -1470,16 +1273,16 @@ let x = class {
1470
1273
  );
1471
1274
  }
1472
1275
  get actionRequiredHolders() {
1473
- const e = this.appModel.currentRole, t = Ht(e);
1474
- return this.assemblyModel.allHolders.filter((r) => {
1475
- const i = at(
1476
- r,
1477
- eo.type
1276
+ const e = this.appModel.currentRole, t = Ct(e);
1277
+ return this.assemblyModel.allHolders.filter((o) => {
1278
+ const s = Be(
1279
+ o,
1280
+ Co.type
1478
1281
  );
1479
- if (i != null && i.isRemote)
1282
+ if (s != null && s.isRemote)
1480
1283
  return !1;
1481
- const o = r.troubles.filter(t);
1482
- return o.length > 0 && o.find((n) => n.resolvable);
1284
+ const r = o.troubles.filter(t);
1285
+ return r.length > 0 && r.find((n) => n.resolvable);
1483
1286
  });
1484
1287
  }
1485
1288
  get lowLevelHolders() {
@@ -1496,104 +1299,53 @@ let x = class {
1496
1299
  this.logger.debug(`loading ingredient-summary ${this.id}`);
1497
1300
  }
1498
1301
  };
1499
- We([
1500
- m({ modelType: je.type })
1501
- ], x.prototype, "assemblyModel", 2);
1502
- We([
1503
- m({ modelType: pt.type })
1504
- ], x.prototype, "dashboardOperationModel", 2);
1505
- We([
1506
- m({ modelType: dt.type })
1507
- ], x.prototype, "appModel", 2);
1508
- x = We([
1509
- l(te)
1510
- ], x);
1511
- const Pi = {
1302
+ Le([
1303
+ p({ modelType: Se.type })
1304
+ ], C.prototype, "assemblyModel", 2);
1305
+ Le([
1306
+ p({ modelType: Je.type })
1307
+ ], C.prototype, "dashboardOperationModel", 2);
1308
+ Le([
1309
+ p({ modelType: Xe.type })
1310
+ ], C.prototype, "appModel", 2);
1311
+ C = Le([
1312
+ l(K)
1313
+ ], C);
1314
+ const Gr = {
1512
1315
  registration: {
1513
- [te]: {
1514
- class: x,
1316
+ [K]: {
1317
+ class: C,
1515
1318
  singleton: !1
1516
1319
  }
1517
1320
  },
1518
- type: te,
1519
- predicate: u(te),
1321
+ type: K,
1322
+ predicate: u(K),
1520
1323
  factory: c.Factory.create(
1521
- te
1324
+ K
1522
1325
  )
1523
- };
1524
- var Oi = Object.getOwnPropertyDescriptor, Mi = (e, t, r, i) => {
1525
- for (var o = i > 1 ? void 0 : i ? Oi(t, r) : t, n = e.length - 1, a; n >= 0; n--)
1526
- (a = e[n]) && (o = a(o) || o);
1527
- return o;
1528
- };
1529
- const cr = "lfcv-pump-model";
1530
- let tt = class {
1531
- constructor(e, t, r) {
1532
- s(this, "id");
1533
- s(this, "logger");
1534
- s(this, "pumpModel");
1535
- this.id = e, this.logger = r.logger, this.pumpModel = t.companionParent;
1536
- }
1537
- get name() {
1538
- return this.pumpModel.name;
1539
- }
1540
- get canPour() {
1541
- return this.pumpModel.canPour;
1542
- }
1543
- get isPouring() {
1544
- return this.pumpModel.isPouring;
1545
- }
1546
- async cancelPour() {
1547
- return this.pumpModel.cancelPour();
1548
- }
1549
- performIntent(e) {
1550
- return this.pumpModel.performIntent(e);
1551
- }
1552
- // -------------------LIFECYCLE----------------------------
1553
- async init() {
1554
- this.logger.debug(`initializing lfcv-pump ${this.id}`);
1555
- }
1556
- async load() {
1557
- this.logger.debug(`loading lfcv-pump ${this.id}`);
1558
- }
1559
- };
1560
- tt = Mi([
1561
- l(cr)
1562
- ], tt);
1563
- const Ns = new ke({
1564
- class: tt,
1565
- type: cr
1566
- }), { URL: Si } = h("LFCV-PUMP_SERVICE"), { getAll: Ci } = f.build({
1567
- basePath: `${Si}/api/lfcv-pump`
1568
- }), wi = g.createLogger({
1569
- name: "lfcv-pump-service",
1570
- group: "Services"
1571
- }), Ei = async () => (wi.debug("sending GET for lfcv-pump"), await Ci({})), zs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1572
- __proto__: null,
1573
- getLfcvPumps: Ei
1574
- }, Symbol.toStringTag, { value: "Module" })), { URL: gt } = h("LOCKOUT_SERVICE"), { postModel: ur } = f.build({
1575
- basePath: `${gt}/api/app/kosdev.ddk/lockout`
1576
- }), dr = g.createLogger({ name: "lockout-service", group: "Services" }), Li = async () => (dr.info("lock"), await ur({
1326
+ }, { URL: Ze } = h("LOCKOUT_SERVICE"), { postModel: Bt } = y.build({
1327
+ basePath: `${Ze}/api/app/kosdev.ddk/lockout`
1328
+ }), Kt = g.createLogger({ name: "lockout-service", group: "Services" }), qr = async () => (Kt.info("lock"), await Bt({
1577
1329
  model: {},
1578
- urlOverride: `${gt}/api/app/kosdev.ddk/lockout/lockNow`
1579
- })), pr = async (e) => {
1580
- dr.info("unlock");
1581
- const t = await ur({
1330
+ urlOverride: `${Ze}/api/app/kosdev.ddk/lockout/lockNow`
1331
+ })), Yt = async (e) => {
1332
+ Kt.info("unlock");
1333
+ const t = await Bt({
1582
1334
  model: {},
1583
- urlOverride: `${gt}/api/app/kosdev.ddk/lockout/unlock/${e}`
1335
+ urlOverride: `${Ze}/api/app/kosdev.ddk/lockout/unlock/${e}`
1584
1336
  });
1585
1337
  return t == null ? void 0 : t.data;
1586
- }, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1338
+ }, ni = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1587
1339
  __proto__: null,
1588
- lock: Li,
1589
- unlock: pr
1340
+ lock: qr,
1341
+ unlock: Yt
1590
1342
  }, Symbol.toStringTag, { value: "Module" }));
1591
- var Di = Object.defineProperty, ki = Object.getOwnPropertyDescriptor, z = (e, t, r, i) => {
1592
- for (var o = i > 1 ? void 0 : i ? ki(t, r) : t, n = e.length - 1, a; n >= 0; n--)
1593
- (a = e[n]) && (o = (i ? a(t, r, o) : a(o)) || o);
1594
- return i && o && Di(t, r, o), o;
1343
+ var Qr = Object.defineProperty, Xr = Object.getOwnPropertyDescriptor, A = (e, t, o, s) => {
1344
+ for (var r = s > 1 ? void 0 : s ? Xr(t, o) : t, n = e.length - 1, a; n >= 0; n--)
1345
+ (a = e[n]) && (r = (s ? a(t, o, r) : a(r)) || r);
1346
+ return s && r && Qr(t, o, r), r;
1595
1347
  };
1596
- const gr = "lockout-model", Ii = [
1348
+ const Gt = "lockout-model", Jr = [
1597
1349
  { day: "monday", lock: "dayWiseLockConfigMap.Mon.enabled", open: "dayWiseLockConfigMap.Mon.unlockTime", close: "dayWiseLockConfigMap.Mon.lockTime" },
1598
1350
  { day: "tuesday", lock: "dayWiseLockConfigMap.Tue.enabled", open: "dayWiseLockConfigMap.Tue.unlockTime", close: "dayWiseLockConfigMap.Tue.lockTime" },
1599
1351
  { day: "wednesday", lock: "dayWiseLockConfigMap.Wed.enabled", open: "dayWiseLockConfigMap.Wed.unlockTime", close: "dayWiseLockConfigMap.Wed.lockTime" },
@@ -1602,11 +1354,11 @@ const gr = "lockout-model", Ii = [
1602
1354
  { day: "saturday", lock: "dayWiseLockConfigMap.Sat.enabled", open: "dayWiseLockConfigMap.Sat.unlockTime", close: "dayWiseLockConfigMap.Sat.lockTime" },
1603
1355
  { day: "sunday", lock: "dayWiseLockConfigMap.Sun.enabled", open: "dayWiseLockConfigMap.Sun.unlockTime", close: "dayWiseLockConfigMap.Sun.lockTime" }
1604
1356
  ];
1605
- let E = class {
1606
- constructor(e, t, r) {
1607
- s(this, "id");
1608
- s(this, "logger");
1609
- s(this, "dayEnabledList", [
1357
+ let M = class {
1358
+ constructor(e, t, o) {
1359
+ i(this, "id");
1360
+ i(this, "logger");
1361
+ i(this, "dayEnabledList", [
1610
1362
  "dayWiseLockConfigMap.Sun.enabled",
1611
1363
  "dayWiseLockConfigMap.Mon.enabled",
1612
1364
  "dayWiseLockConfigMap.Tue.enabled",
@@ -1615,7 +1367,7 @@ let E = class {
1615
1367
  "dayWiseLockConfigMap.Fri.enabled",
1616
1368
  "dayWiseLockConfigMap.Sat.enabled"
1617
1369
  ]);
1618
- s(this, "dayOpenAtList", [
1370
+ i(this, "dayOpenAtList", [
1619
1371
  "dayWiseLockConfigMap.Sun.unlockTime",
1620
1372
  "dayWiseLockConfigMap.Mon.unlockTime",
1621
1373
  "dayWiseLockConfigMap.Tue.unlockTime",
@@ -1624,7 +1376,7 @@ let E = class {
1624
1376
  "dayWiseLockConfigMap.Fri.unlockTime",
1625
1377
  "dayWiseLockConfigMap.Sat.unlockTime"
1626
1378
  ]);
1627
- s(this, "dayCloseAtList", [
1379
+ i(this, "dayCloseAtList", [
1628
1380
  "dayWiseLockConfigMap.Sun.lockTime",
1629
1381
  "dayWiseLockConfigMap.Mon.lockTime",
1630
1382
  "dayWiseLockConfigMap.Tue.lockTime",
@@ -1633,22 +1385,22 @@ let E = class {
1633
1385
  "dayWiseLockConfigMap.Fri.lockTime",
1634
1386
  "dayWiseLockConfigMap.Sat.lockTime"
1635
1387
  ]);
1636
- s(this, "saveMap");
1637
- s(this, "pin");
1638
- s(this, "nextLockSkipped");
1639
- s(this, "nextLockTime");
1640
- s(this, "nextUnLockTime");
1641
- s(this, "cuiLockout");
1642
- this.id = e, this.logger = r.logger, this.saveMap = /* @__PURE__ */ new Map();
1388
+ i(this, "saveMap");
1389
+ i(this, "pin");
1390
+ i(this, "nextLockSkipped");
1391
+ i(this, "nextLockTime");
1392
+ i(this, "nextUnLockTime");
1393
+ i(this, "cuiLockout");
1394
+ this.id = e, this.logger = o.logger, this.saveMap = /* @__PURE__ */ new Map();
1643
1395
  }
1644
1396
  get enabled() {
1645
1397
  const e = this.getProp(
1646
1398
  "oneTimeLockConfig.lockTime"
1647
- ), t = e !== void 0 && e !== "", r = this.getProp("lockScheduleEnabled");
1648
- return t || r;
1399
+ ), t = e !== void 0 && e !== "", o = this.getProp("lockScheduleEnabled");
1400
+ return t || o;
1649
1401
  }
1650
1402
  get schedule() {
1651
- return Ii;
1403
+ return Jr;
1652
1404
  }
1653
1405
  getProp(e) {
1654
1406
  return this.saveMap.get(e);
@@ -1665,7 +1417,7 @@ let E = class {
1665
1417
  this.nextLockSkipped.updateProperty("0");
1666
1418
  }
1667
1419
  async unlock(e) {
1668
- return await pr(e);
1420
+ return await Yt(e);
1669
1421
  }
1670
1422
  async save() {
1671
1423
  return this.saveMap.forEach((e, t) => {
@@ -1687,61 +1439,61 @@ let E = class {
1687
1439
  this.logger.debug(`loading lockout ${this.id}`);
1688
1440
  }
1689
1441
  };
1690
- z([
1442
+ A([
1691
1443
  d({
1692
1444
  path: "app:kosdev.ddk:service:cuiLockout",
1693
1445
  attribute: "pin"
1694
1446
  })
1695
- ], E.prototype, "pin", 2);
1696
- z([
1447
+ ], M.prototype, "pin", 2);
1448
+ A([
1697
1449
  d({
1698
1450
  path: "app:kosdev.ddk:service:cuiLockout",
1699
1451
  attribute: "nextLockSkipped"
1700
1452
  })
1701
- ], E.prototype, "nextLockSkipped", 2);
1702
- z([
1453
+ ], M.prototype, "nextLockSkipped", 2);
1454
+ A([
1703
1455
  d({
1704
1456
  path: "app:kosdev.ddk:service:cuiLockout",
1705
1457
  attribute: "nextLockTime"
1706
1458
  })
1707
- ], E.prototype, "nextLockTime", 2);
1708
- z([
1459
+ ], M.prototype, "nextLockTime", 2);
1460
+ A([
1709
1461
  d({
1710
1462
  path: "app:kosdev.ddk:service:cuiLockout",
1711
1463
  attribute: "nextUnLockTime"
1712
1464
  })
1713
- ], E.prototype, "nextUnLockTime", 2);
1714
- z([
1715
- Xr({ path: "app:kosdev.ddk:service:cuiLockout" })
1716
- ], E.prototype, "cuiLockout", 2);
1717
- E = z([
1718
- l(gr)
1719
- ], E);
1720
- const Ks = new Fe({
1721
- class: E,
1722
- type: gr
1723
- }), Ri = async (e, t) => await Re.bulkResolveTroubles(
1465
+ ], M.prototype, "nextUnLockTime", 2);
1466
+ A([
1467
+ So({ path: "app:kosdev.ddk:service:cuiLockout" })
1468
+ ], M.prototype, "cuiLockout", 2);
1469
+ M = A([
1470
+ l(Gt)
1471
+ ], M);
1472
+ const ai = new Pe({
1473
+ class: M,
1474
+ type: Gt
1475
+ }), Zr = async (e, t) => await Me.bulkResolveTroubles(
1724
1476
  e,
1725
1477
  void 0,
1726
1478
  t
1727
1479
  );
1728
- var Fi = Object.defineProperty, Ai = Object.getOwnPropertyDescriptor, Ne = (e, t, r, i) => {
1729
- for (var o = i > 1 ? void 0 : i ? Ai(t, r) : t, n = e.length - 1, a; n >= 0; n--)
1730
- (a = e[n]) && (o = (i ? a(t, r, o) : a(o)) || o);
1731
- return i && o && Fi(t, r, o), o;
1732
- };
1733
- const re = "macro-assignment-model", Ot = "PurgeTrouble", xi = "PrimeTrouble";
1734
- let j = class {
1735
- constructor(e, t, r) {
1736
- s(this, "id");
1737
- s(this, "logger");
1480
+ var es = Object.defineProperty, ts = Object.getOwnPropertyDescriptor, Ce = (e, t, o, s) => {
1481
+ for (var r = s > 1 ? void 0 : s ? ts(t, o) : t, n = e.length - 1, a; n >= 0; n--)
1482
+ (a = e[n]) && (r = (s ? a(t, o, r) : a(r)) || r);
1483
+ return s && r && es(t, o, r), r;
1484
+ };
1485
+ const Y = "macro-assignment-model", ct = "PurgeTrouble", os = "PrimeTrouble";
1486
+ let k = class {
1487
+ constructor(e, t, o) {
1488
+ i(this, "id");
1489
+ i(this, "logger");
1738
1490
  /**
1739
1491
  * futureHandler is used to handle async operations
1740
1492
  */
1741
- s(this, "futureHandler");
1742
- s(this, "holders");
1743
- s(this, "ingredients");
1744
- this.id = e, this.futureHandler = new he(), this.logger = r.logger;
1493
+ i(this, "futureHandler");
1494
+ i(this, "holders");
1495
+ i(this, "ingredients");
1496
+ this.id = e, this.futureHandler = new Ye(), this.logger = o.logger;
1745
1497
  }
1746
1498
  /**
1747
1499
  * shortcut to the current running future
@@ -1770,15 +1522,15 @@ let j = class {
1770
1522
  * Relying on the indexing of troubles by type to find the purge troubles.
1771
1523
  */
1772
1524
  get holderPurgeTroubles() {
1773
- return this.macroHolders.reduce((t, r) => {
1774
- const i = r.troublesByType[Ot] || [];
1775
- return t = [...t, ...i], t;
1525
+ return this.macroHolders.reduce((t, o) => {
1526
+ const s = o.troublesByType[ct] || [];
1527
+ return t = [...t, ...s], t;
1776
1528
  }, []);
1777
1529
  }
1778
1530
  get holderPrimeTroubles() {
1779
- return this.macroHolders.reduce((t, r) => {
1780
- const i = r.troublesByType[xi] || [];
1781
- return t = [...t, ...i], t;
1531
+ return this.macroHolders.reduce((t, o) => {
1532
+ const s = o.troublesByType[os] || [];
1533
+ return t = [...t, ...s], t;
1782
1534
  }, []);
1783
1535
  }
1784
1536
  /**
@@ -1813,53 +1565,53 @@ let j = class {
1813
1565
  async resolveAll(e, t) {
1814
1566
  if (!t)
1815
1567
  throw new Error("No tracker provided");
1816
- const i = (e === Ot ? this.holderPurgeTroubles : this.holderPrimeTroubles).map((n) => n.rawId);
1817
- return await Ri(i, t);
1818
- }
1819
- };
1820
- Ne([
1821
- m({ modelType: to.type })
1822
- ], j.prototype, "holders", 2);
1823
- Ne([
1824
- m({ modelType: ro.type })
1825
- ], j.prototype, "ingredients", 2);
1826
- Ne([
1827
- v()
1828
- ], j.prototype, "resolveAll", 1);
1829
- j = Ne([
1830
- l(re)
1831
- ], j);
1832
- const ji = {
1568
+ const s = (e === ct ? this.holderPurgeTroubles : this.holderPrimeTroubles).map((n) => n.rawId);
1569
+ return await Zr(s, t);
1570
+ }
1571
+ };
1572
+ Ce([
1573
+ p({ modelType: ko.type })
1574
+ ], k.prototype, "holders", 2);
1575
+ Ce([
1576
+ p({ modelType: Do.type })
1577
+ ], k.prototype, "ingredients", 2);
1578
+ Ce([
1579
+ P()
1580
+ ], k.prototype, "resolveAll", 1);
1581
+ k = Ce([
1582
+ l(Y)
1583
+ ], k);
1584
+ const rs = {
1833
1585
  registration: {
1834
- [re]: {
1835
- class: j,
1586
+ [Y]: {
1587
+ class: k,
1836
1588
  singleton: !0
1837
1589
  }
1838
1590
  },
1839
- type: re,
1840
- predicate: u(re),
1591
+ type: Y,
1592
+ predicate: u(Y),
1841
1593
  factory: c.Singleton.create(
1842
- re
1594
+ Y
1843
1595
  )
1844
1596
  };
1845
- var Ui = Object.getOwnPropertyDescriptor, Vi = (e, t, r, i) => {
1846
- for (var o = i > 1 ? void 0 : i ? Ui(t, r) : t, n = e.length - 1, a; n >= 0; n--)
1847
- (a = e[n]) && (o = a(o) || o);
1848
- return o;
1597
+ var ss = Object.getOwnPropertyDescriptor, is = (e, t, o, s) => {
1598
+ for (var r = s > 1 ? void 0 : s ? ss(t, o) : t, n = e.length - 1, a; n >= 0; n--)
1599
+ (a = e[n]) && (r = a(r) || r);
1600
+ return r;
1849
1601
  };
1850
- const oe = "network-test-model";
1851
- let rt = class {
1852
- constructor(e, t, r) {
1853
- s(this, "id");
1854
- s(this, "group");
1855
- s(this, "passed");
1856
- s(this, "inProgress");
1857
- s(this, "failureTime");
1858
- s(this, "timestamp");
1859
- s(this, "name");
1860
- s(this, "results");
1861
- s(this, "logger");
1862
- this.id = e, this.logger = r.logger, this.group = t.group, this.passed = !1, this.inProgress = !1, this.name = t.name, this.results = [];
1602
+ const G = "network-test-model";
1603
+ let We = class {
1604
+ constructor(e, t, o) {
1605
+ i(this, "id");
1606
+ i(this, "group");
1607
+ i(this, "passed");
1608
+ i(this, "inProgress");
1609
+ i(this, "failureTime");
1610
+ i(this, "timestamp");
1611
+ i(this, "name");
1612
+ i(this, "results");
1613
+ i(this, "logger");
1614
+ this.id = e, this.logger = o.logger, this.group = t.group, this.passed = !1, this.inProgress = !1, this.name = t.name, this.results = [];
1863
1615
  }
1864
1616
  updateModel(e) {
1865
1617
  this.group = e.group, this.name = e.name, this.passed = e.passed, this.failureTime = e.failureTime, this.inProgress = e.inProgress, this.timestamp = e.timestamp, this.results = e.results;
@@ -1872,58 +1624,58 @@ let rt = class {
1872
1624
  this.logger.debug(`loading network-test ${this.id}`);
1873
1625
  }
1874
1626
  };
1875
- rt = Vi([
1876
- l(oe)
1877
- ], rt);
1878
- const hr = {
1627
+ We = is([
1628
+ l(G)
1629
+ ], We);
1630
+ const qt = {
1879
1631
  registration: {
1880
- [oe]: {
1881
- class: rt,
1632
+ [G]: {
1633
+ class: We,
1882
1634
  singleton: !1
1883
1635
  }
1884
1636
  },
1885
- type: oe,
1886
- predicate: u(oe),
1887
- factory: c.Factory.create(oe)
1888
- }, { URL: ze } = h("NETWORK-TEST_SERVICE"), { getAll: Hi, getOne: fr } = f.build({
1889
- basePath: `${ze}/api/app/ncui/network/tests`
1890
- }), Wi = g.createLogger({
1637
+ type: G,
1638
+ predicate: u(G),
1639
+ factory: c.Factory.create(G)
1640
+ }, { URL: ke } = h("NETWORK-TEST_SERVICE"), { getAll: ns, getOne: Qt } = y.build({
1641
+ basePath: `${ke}/api/app/ncui/network/tests`
1642
+ }), as = g.createLogger({
1891
1643
  name: "network-test-service",
1892
1644
  group: "Services"
1893
- }), mr = async () => {
1894
- Wi.debug("sending GET for network-test");
1895
- const e = await Hi({
1896
- urlOverride: `${ze}/api/app/kosdev.ddk/network/tests`
1645
+ }), Xt = async () => {
1646
+ as.debug("sending GET for network-test");
1647
+ const e = await ns({
1648
+ urlOverride: `${ke}/api/app/kosdev.ddk/network/tests`
1897
1649
  });
1898
1650
  return e == null ? void 0 : e.data;
1899
- }, yr = async () => {
1900
- const e = await fr({
1901
- urlOverride: `${ze}/api/app/kosdev.ddk/network/reports`
1651
+ }, Jt = async () => {
1652
+ const e = await Qt({
1653
+ urlOverride: `${ke}/api/app/kosdev.ddk/network/reports`
1902
1654
  });
1903
1655
  return e == null ? void 0 : e.data;
1904
- }, br = async (e, t) => await fr({
1905
- urlOverride: `${ze}/api/app/kosdev.ddk/network/tests/run/group/${e}`,
1656
+ }, Zt = async (e, t) => await Qt({
1657
+ urlOverride: `${ke}/api/app/kosdev.ddk/network/tests/run/group/${e}`,
1906
1658
  tracker: t
1907
- }), Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1659
+ }), li = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1908
1660
  __proto__: null,
1909
- getNetworkTests: mr,
1910
- getTestsReports: yr,
1911
- performGroupTest: br
1661
+ getNetworkTests: Xt,
1662
+ getTestsReports: Jt,
1663
+ performGroupTest: Zt
1912
1664
  }, Symbol.toStringTag, { value: "Module" }));
1913
- var Ni = Object.defineProperty, zi = Object.getOwnPropertyDescriptor, ht = (e, t, r, i) => {
1914
- for (var o = i > 1 ? void 0 : i ? zi(t, r) : t, n = e.length - 1, a; n >= 0; n--)
1915
- (a = e[n]) && (o = (i ? a(t, r, o) : a(o)) || o);
1916
- return i && o && Ni(t, r, o), o;
1917
- };
1918
- const ie = "network-test-container-model";
1919
- let ge = class {
1920
- constructor(e, t, r) {
1921
- s(this, "id");
1922
- s(this, "logger");
1923
- s(this, "lastTested");
1924
- s(this, "futureHandler");
1925
- s(this, "models");
1926
- this.id = e, this.logger = r.logger, this.futureHandler = new he(this), this.models = new st({
1665
+ var ls = Object.defineProperty, ds = Object.getOwnPropertyDescriptor, et = (e, t, o, s) => {
1666
+ for (var r = s > 1 ? void 0 : s ? ds(t, o) : t, n = e.length - 1, a; n >= 0; n--)
1667
+ (a = e[n]) && (r = (s ? a(t, o, r) : a(r)) || r);
1668
+ return s && r && ls(t, o, r), r;
1669
+ };
1670
+ const q = "network-test-container-model";
1671
+ let se = class {
1672
+ constructor(e, t, o) {
1673
+ i(this, "id");
1674
+ i(this, "logger");
1675
+ i(this, "lastTested");
1676
+ i(this, "futureHandler");
1677
+ i(this, "models");
1678
+ this.id = e, this.logger = o.logger, this.futureHandler = new Ye(this), this.models = new Ve({
1927
1679
  parentId: e,
1928
1680
  indexMap: {
1929
1681
  group: "group"
@@ -1949,28 +1701,28 @@ let ge = class {
1949
1701
  );
1950
1702
  }
1951
1703
  getLastTested(e) {
1952
- const t = this.models.getIndexByKey("group", e).map((i) => i.timestamp && new Date(i.timestamp)), r = Math.max(
1953
- ...t.map((i) => i ? i.getTime() : 0)
1704
+ const t = this.models.getIndexByKey("group", e).map((s) => s.timestamp && new Date(s.timestamp)), o = Math.max(
1705
+ ...t.map((s) => s ? s.getTime() : 0)
1954
1706
  );
1955
- return r ? _i(new Date(r)) : "";
1707
+ return o ? Br(new Date(o)) : "";
1956
1708
  }
1957
1709
  async load() {
1958
1710
  this.logger.debug(`loading network-test-container container ${this.id}`);
1959
- const e = await mr(), t = await yr();
1960
- e && e.forEach((r) => {
1961
- const i = hr.factory(r.id)(r);
1962
- this.addModel(i);
1963
- }), e && t && e.forEach((r) => {
1964
- const i = t == null ? void 0 : t[r.group], o = i == null ? void 0 : i[r.id], n = this.getModel(r.id);
1965
- if (n && o) {
1711
+ const e = await Xt(), t = await Jt();
1712
+ e && e.forEach((o) => {
1713
+ const s = qt.factory(o.id)(o);
1714
+ this.addModel(s);
1715
+ }), e && t && e.forEach((o) => {
1716
+ const s = t == null ? void 0 : t[o.group], r = s == null ? void 0 : s[o.id], n = this.getModel(o.id);
1717
+ if (n && r) {
1966
1718
  const a = {
1967
- group: o.group,
1968
- name: o.name,
1969
- passed: o.passed,
1970
- failureTime: o.failureTime ? new Date(o.failureTime) : void 0,
1971
- inProgress: o.inProgress,
1972
- timestamp: new Date(o.timestamp),
1973
- results: o.results
1719
+ group: r.group,
1720
+ name: r.name,
1721
+ passed: r.passed,
1722
+ failureTime: r.failureTime ? new Date(r.failureTime) : void 0,
1723
+ inProgress: r.inProgress,
1724
+ timestamp: new Date(r.timestamp),
1725
+ results: r.results
1974
1726
  };
1975
1727
  n.updateModel(a);
1976
1728
  }
@@ -1979,117 +1731,125 @@ let ge = class {
1979
1731
  async performTest(e, t) {
1980
1732
  if (!t)
1981
1733
  throw new Error("No tracker provided");
1982
- const r = await br(e, t);
1983
- return r == null ? void 0 : r.data;
1734
+ const o = await Zt(e, t);
1735
+ return o == null ? void 0 : o.data;
1984
1736
  }
1985
1737
  onFutureUpdate(e) {
1986
1738
  const { clientData: t } = e;
1987
- t && t.forEach((r) => {
1988
- const i = this.getModel(r.id);
1989
- if (_(() => {
1990
- this.lastTested = this.lastTested > new Date(r.timestamp) ? this.lastTested : new Date(r.timestamp);
1991
- }), i) {
1992
- const o = {
1993
- group: r.group,
1994
- name: r.name,
1995
- passed: r.passed,
1996
- failureTime: r.failureTime ? new Date(r.failureTime) : void 0,
1997
- inProgress: r.inProgress,
1998
- timestamp: new Date(r.timestamp),
1999
- results: r.results
1739
+ t && t.forEach((o) => {
1740
+ const s = this.getModel(o.id);
1741
+ if (v(() => {
1742
+ this.lastTested = this.lastTested > new Date(o.timestamp) ? this.lastTested : new Date(o.timestamp);
1743
+ }), s) {
1744
+ const r = {
1745
+ group: o.group,
1746
+ name: o.name,
1747
+ passed: o.passed,
1748
+ failureTime: o.failureTime ? new Date(o.failureTime) : void 0,
1749
+ inProgress: o.inProgress,
1750
+ timestamp: new Date(o.timestamp),
1751
+ results: o.results
2000
1752
  };
2001
- _(() => {
2002
- i.updateModel(o);
1753
+ v(() => {
1754
+ s.updateModel(r);
2003
1755
  });
2004
1756
  }
2005
1757
  });
2006
1758
  }
2007
1759
  };
2008
- ht([
2009
- Ie
2010
- ], ge.prototype, "models", 2);
2011
- ht([
2012
- v()
2013
- ], ge.prototype, "performTest", 1);
2014
- ge = ht([
2015
- l(ie)
2016
- ], ge);
2017
- const Bi = {
1760
+ et([
1761
+ $e
1762
+ ], se.prototype, "models", 2);
1763
+ et([
1764
+ P()
1765
+ ], se.prototype, "performTest", 1);
1766
+ se = et([
1767
+ l(q)
1768
+ ], se);
1769
+ const cs = {
2018
1770
  registration: {
2019
- [ie]: {
2020
- class: ge,
1771
+ [q]: {
1772
+ class: se,
2021
1773
  singleton: !0
2022
1774
  },
2023
- ...hr.registration
1775
+ ...qt.registration
2024
1776
  },
2025
- type: ie,
2026
- predicate: u(ie),
2027
- factory: c.Singleton.create(ie)
2028
- };
2029
- var Ki = Object.defineProperty, Yi = Object.getOwnPropertyDescriptor, vr = (e, t, r, i) => {
2030
- for (var o = i > 1 ? void 0 : i ? Yi(t, r) : t, n = e.length - 1, a; n >= 0; n--)
2031
- (a = e[n]) && (o = (i ? a(t, r, o) : a(o)) || o);
2032
- return i && o && Ki(t, r, o), o;
2033
- };
2034
- const se = "nutritive-sweetener-model";
2035
- let Se = class {
2036
- constructor(e, t, r) {
2037
- s(this, "id");
2038
- s(this, "assemblyModel");
2039
- s(this, "logger");
2040
- this.id = e, this.logger = r.logger;
1777
+ type: q,
1778
+ predicate: u(q),
1779
+ factory: c.Singleton.create(q)
1780
+ };
1781
+ var us = Object.defineProperty, ps = Object.getOwnPropertyDescriptor, tt = (e, t, o, s) => {
1782
+ for (var r = s > 1 ? void 0 : s ? ps(t, o) : t, n = e.length - 1, a; n >= 0; n--)
1783
+ (a = e[n]) && (r = (s ? a(t, o, r) : a(r)) || r);
1784
+ return s && r && us(t, o, r), r;
1785
+ };
1786
+ const Q = "nutritive-sweetener-model", gs = ut("statePath");
1787
+ let ie = class {
1788
+ constructor(e, t) {
1789
+ i(this, "id");
1790
+ i(this, "assemblyModel");
1791
+ i(this, "pumpState");
1792
+ this.id = e;
1793
+ }
1794
+ get holder() {
1795
+ return this.assemblyModel.getHoldersByGroup("ns")[0];
2041
1796
  }
2042
1797
  getHolder() {
2043
- return this.assemblyModel.getHoldersByGroup("ns")[0];
1798
+ return this.holder;
2044
1799
  }
2045
- getPump() {
2046
- return this.getHolder().pumps.data[0];
1800
+ get statePath() {
1801
+ return `${this.pump.path}:airVent:state`;
2047
1802
  }
2048
- // -------------------LIFECYCLE----------------------------
2049
- async init() {
2050
- this.logger.debug(`initializing nutritive-sweetener ${this.id}`);
1803
+ get pump() {
1804
+ return this.holder.pumps.data[0];
2051
1805
  }
2052
- async load() {
2053
- this.logger.debug(`loading nutritive-sweetener ${this.id}`);
1806
+ getPump() {
1807
+ return this.pump;
2054
1808
  }
2055
1809
  };
2056
- vr([
2057
- m({ modelType: je.type })
2058
- ], Se.prototype, "assemblyModel", 2);
2059
- Se = vr([
2060
- l(se)
2061
- ], Se);
2062
- const qi = {
1810
+ tt([
1811
+ p({ modelType: Se.type })
1812
+ ], ie.prototype, "assemblyModel", 2);
1813
+ tt([
1814
+ wo({
1815
+ path: gs
1816
+ })
1817
+ ], ie.prototype, "pumpState", 2);
1818
+ ie = tt([
1819
+ l(Q),
1820
+ gt()
1821
+ ], ie);
1822
+ const hs = {
2063
1823
  registration: {
2064
- [se]: {
2065
- class: Se,
1824
+ [Q]: {
1825
+ class: ie,
2066
1826
  singleton: !1
2067
1827
  }
2068
1828
  },
2069
- type: se,
2070
- predicate: u(se),
2071
- factory: c.Factory.create(se)
1829
+ type: Q,
1830
+ predicate: u(Q),
1831
+ factory: c.Factory.create(Q)
2072
1832
  };
2073
- var Gi = Object.defineProperty, Qi = Object.getOwnPropertyDescriptor, _r = (e, t, r, i) => {
2074
- for (var o = i > 1 ? void 0 : i ? Qi(t, r) : t, n = e.length - 1, a; n >= 0; n--)
2075
- (a = e[n]) && (o = (i ? a(t, r, o) : a(o)) || o);
2076
- return i && o && Gi(t, r, o), o;
1833
+ var ys = Object.defineProperty, fs = Object.getOwnPropertyDescriptor, eo = (e, t, o, s) => {
1834
+ for (var r = s > 1 ? void 0 : s ? fs(t, o) : t, n = e.length - 1, a; n >= 0; n--)
1835
+ (a = e[n]) && (r = (s ? a(t, o, r) : a(r)) || r);
1836
+ return s && r && ys(t, o, r), r;
2077
1837
  };
2078
- const ae = "plain-water-model";
2079
- let Ce = class {
2080
- constructor(e, t, r) {
2081
- s(this, "id");
2082
- s(this, "assemblyModel");
2083
- s(this, "logger");
2084
- this.id = e, this.logger = r.logger;
1838
+ const X = "plain-water-model";
1839
+ let ve = class {
1840
+ constructor(e, t, o) {
1841
+ i(this, "id");
1842
+ i(this, "assemblyModel");
1843
+ i(this, "logger");
1844
+ this.id = e, this.logger = o.logger;
2085
1845
  }
2086
1846
  getHolder() {
2087
1847
  return this.assemblyModel.getHoldersByGroup("water")[0];
2088
1848
  }
2089
1849
  getPump() {
2090
- var i, o;
2091
- const e = this.getHolder(), t = (o = (i = e == null ? void 0 : e.pumps) == null ? void 0 : i.data) == null ? void 0 : o[0];
2092
- return at(t, Gt.type);
1850
+ var s, r;
1851
+ const e = this.getHolder(), t = (r = (s = e == null ? void 0 : e.pumps) == null ? void 0 : s.data) == null ? void 0 : r[0];
1852
+ return Be(t, ft.type);
2093
1853
  }
2094
1854
  // -------------------LIFECYCLE----------------------------
2095
1855
  async init() {
@@ -2099,45 +1859,45 @@ let Ce = class {
2099
1859
  this.logger.debug(`loading plain-water ${this.id}`);
2100
1860
  }
2101
1861
  };
2102
- _r([
2103
- m({ modelType: je.type })
2104
- ], Ce.prototype, "assemblyModel", 2);
2105
- Ce = _r([
2106
- l(ae)
2107
- ], Ce);
2108
- const Xi = {
1862
+ eo([
1863
+ p({ modelType: Se.type })
1864
+ ], ve.prototype, "assemblyModel", 2);
1865
+ ve = eo([
1866
+ l(X)
1867
+ ], ve);
1868
+ const vs = {
2109
1869
  registration: {
2110
- [ae]: {
2111
- class: Ce,
1870
+ [X]: {
1871
+ class: ve,
2112
1872
  singleton: !1
2113
1873
  }
2114
1874
  },
2115
- type: ae,
2116
- predicate: u(ae),
2117
- factory: c.Factory.create(ae)
2118
- }, { URL: $r } = h("REBOOT_SERVICE"), { postModel: Ji } = f.build({
2119
- basePath: `${$r}/api/reboot`
2120
- }), Zi = g.createLogger({ name: "reboot-service", group: "Services" }), Tr = async () => (Zi.debug("sending POST call for Reboot Dispenser"), await Ji({
2121
- urlOverride: `${$r}/api/app/kosdev.ddk/ncui/reboot`,
1875
+ type: X,
1876
+ predicate: u(X),
1877
+ factory: c.Factory.create(X)
1878
+ }, { URL: to } = h("REBOOT_SERVICE"), { postModel: ms } = y.build({
1879
+ basePath: `${to}/api/reboot`
1880
+ }), bs = g.createLogger({ name: "reboot-service", group: "Services" }), oo = async () => (bs.debug("sending POST call for Reboot Dispenser"), await ms({
1881
+ urlOverride: `${to}/api/app/kosdev.ddk/ncui/reboot`,
2122
1882
  model: {}
2123
- })), qs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1883
+ })), di = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2124
1884
  __proto__: null,
2125
- rebootDispenser: Tr
1885
+ rebootDispenser: oo
2126
1886
  }, Symbol.toStringTag, { value: "Module" }));
2127
- var es = Object.getOwnPropertyDescriptor, ts = (e, t, r, i) => {
2128
- for (var o = i > 1 ? void 0 : i ? es(t, r) : t, n = e.length - 1, a; n >= 0; n--)
2129
- (a = e[n]) && (o = a(o) || o);
2130
- return o;
1887
+ var _s = Object.getOwnPropertyDescriptor, Ts = (e, t, o, s) => {
1888
+ for (var r = s > 1 ? void 0 : s ? _s(t, o) : t, n = e.length - 1, a; n >= 0; n--)
1889
+ (a = e[n]) && (r = a(r) || r);
1890
+ return r;
2131
1891
  };
2132
- const ne = "reboot-model";
2133
- let ot = class {
2134
- constructor(e, t, r) {
2135
- s(this, "id");
2136
- s(this, "logger");
2137
- this.id = e, this.logger = r.logger;
1892
+ const J = "reboot-model";
1893
+ let Ne = class {
1894
+ constructor(e, t, o) {
1895
+ i(this, "id");
1896
+ i(this, "logger");
1897
+ this.id = e, this.logger = o.logger;
2138
1898
  }
2139
1899
  async completeReboot() {
2140
- await Tr();
1900
+ await oo();
2141
1901
  }
2142
1902
  updateModel() {
2143
1903
  }
@@ -2149,46 +1909,45 @@ let ot = class {
2149
1909
  this.logger.debug(`loading reboot ${this.id}`);
2150
1910
  }
2151
1911
  };
2152
- ot = ts([
2153
- l(ne)
2154
- ], ot);
2155
- const rs = {
1912
+ Ne = Ts([
1913
+ l(J)
1914
+ ], Ne);
1915
+ const $s = {
2156
1916
  registration: {
2157
- [ne]: {
2158
- class: ot,
1917
+ [J]: {
1918
+ class: Ne,
2159
1919
  singleton: !1
2160
1920
  }
2161
1921
  },
2162
- type: ne,
2163
- predicate: u(ne),
2164
- factory: c.Factory.create(ne)
2165
- };
2166
- var os = Object.defineProperty, is = Object.getOwnPropertyDescriptor, C = (e, t, r, i) => {
2167
- for (var o = i > 1 ? void 0 : i ? is(t, r) : t, n = e.length - 1, a; n >= 0; n--)
2168
- (a = e[n]) && (o = (i ? a(t, r, o) : a(o)) || o);
2169
- return i && o && os(t, r, o), o;
2170
- };
2171
- const le = "settings-model";
2172
- let P = class {
2173
- constructor(e, t, r) {
2174
- s(this, "id");
2175
- s(this, "logger");
2176
- s(this, "ncuiLanguageData");
2177
- s(this, "resolveDelaysMs");
2178
- s(this, "dateFormat");
2179
- s(this, "timeFormat");
2180
- s(this, "hidePlainWaterBev");
2181
- s(this, "hideCarbWaterBev");
2182
- s(this, "ncuiLanguage");
2183
- s(this, "name");
2184
- s(this, "activateAndRebootTime");
2185
- this.id = e, this.logger = r.logger;
2186
- }
2187
- updateModel(e) {
1922
+ type: J,
1923
+ predicate: u(J),
1924
+ factory: c.Factory.create(J)
1925
+ };
1926
+ var Ms = Object.defineProperty, Ps = Object.getOwnPropertyDescriptor, m = (e, t, o, s) => {
1927
+ for (var r = s > 1 ? void 0 : s ? Ps(t, o) : t, n = e.length - 1, a; n >= 0; n--)
1928
+ (a = e[n]) && (r = (s ? a(t, o, r) : a(r)) || r);
1929
+ return s && r && Ms(t, o, r), r;
1930
+ };
1931
+ const Z = "settings-model";
1932
+ let f = class {
1933
+ constructor(e, t, o) {
1934
+ i(this, "id");
1935
+ i(this, "logger");
1936
+ i(this, "ncuiLanguageData");
1937
+ i(this, "resolveDelaysMs");
1938
+ i(this, "dateFormat");
1939
+ i(this, "timeFormat");
1940
+ i(this, "hidePlainWaterBev");
1941
+ i(this, "hideCarbWaterBev");
1942
+ i(this, "ncuiLanguage");
1943
+ i(this, "name");
1944
+ i(this, "activateAndRebootTime");
1945
+ i(this, "horizontalMode");
1946
+ this.id = e, this.logger = o.logger;
2188
1947
  }
2189
1948
  // -------------------LIFECYCLE----------------------------
2190
- async init() {
2191
- this.logger.debug(`initializing settings ${this.id}`);
1949
+ async ready() {
1950
+ this.updateDisplayMode();
2192
1951
  }
2193
1952
  async getNcuiLanguageList() {
2194
1953
  this.ncuiLanguageData = {
@@ -2216,98 +1975,115 @@ let P = class {
2216
1975
  }
2217
1976
  };
2218
1977
  }
1978
+ handleUpdateDisplayMode() {
1979
+ this.updateDisplayMode();
1980
+ }
1981
+ updateDisplayMode() {
1982
+ this.horizontalMode.value ? document.body.setAttribute("data-dashboard-layout", "horizontal") : document.body.setAttribute("data-dashboard-layout", "vertical");
1983
+ }
2219
1984
  };
2220
- C([
1985
+ m([
2221
1986
  d({
2222
1987
  path: "system:app",
2223
1988
  attribute: "resolveDelaysMs"
2224
1989
  // optionsExpander: () => [],
2225
1990
  })
2226
- ], P.prototype, "resolveDelaysMs", 2);
2227
- C([
1991
+ ], f.prototype, "resolveDelaysMs", 2);
1992
+ m([
2228
1993
  d({
2229
1994
  path: "system:app",
2230
1995
  attribute: "dateFormat"
2231
1996
  // optionsExpander: () => [],
2232
1997
  })
2233
- ], P.prototype, "dateFormat", 2);
2234
- C([
1998
+ ], f.prototype, "dateFormat", 2);
1999
+ m([
2235
2000
  d({
2236
2001
  path: "system:app",
2237
2002
  attribute: "timeFormat"
2238
2003
  // optionsExpander: () => [],
2239
2004
  })
2240
- ], P.prototype, "timeFormat", 2);
2241
- C([
2005
+ ], f.prototype, "timeFormat", 2);
2006
+ m([
2242
2007
  d({
2243
2008
  path: "app:kosdev.ddk:app",
2244
2009
  attribute: "ncui.hidePlainWaterBev"
2245
2010
  })
2246
- ], P.prototype, "hidePlainWaterBev", 2);
2247
- C([
2011
+ ], f.prototype, "hidePlainWaterBev", 2);
2012
+ m([
2248
2013
  d({
2249
2014
  path: "app:kosdev.ddk:app",
2250
2015
  attribute: "ncui.hideCarbWaterBev"
2251
2016
  })
2252
- ], P.prototype, "hideCarbWaterBev", 2);
2253
- C([
2017
+ ], f.prototype, "hideCarbWaterBev", 2);
2018
+ m([
2254
2019
  d({
2255
2020
  path: "app:kosdev.ddk:app",
2256
2021
  attribute: "ncui.ncuiLanguage"
2257
2022
  })
2258
- ], P.prototype, "ncuiLanguage", 2);
2259
- C([
2023
+ ], f.prototype, "ncuiLanguage", 2);
2024
+ m([
2260
2025
  d({
2261
2026
  path: "kos:device",
2262
2027
  attribute: "name"
2263
2028
  })
2264
- ], P.prototype, "name", 2);
2265
- C([
2029
+ ], f.prototype, "name", 2);
2030
+ m([
2266
2031
  d({
2267
2032
  path: "kos:service:OTA",
2268
2033
  attribute: "activateAndRebootTime"
2269
2034
  })
2270
- ], P.prototype, "activateAndRebootTime", 2);
2271
- P = C([
2272
- l(le)
2273
- ], P);
2274
- const ss = {
2035
+ ], f.prototype, "activateAndRebootTime", 2);
2036
+ m([
2037
+ d({
2038
+ path: "app:kosdev.ddk:app",
2039
+ attribute: "ncui.uiConfig.display.horizontalMode"
2040
+ })
2041
+ ], f.prototype, "horizontalMode", 2);
2042
+ m([
2043
+ He({
2044
+ dependencies: (e) => [e.horizontalMode.value]
2045
+ })
2046
+ ], f.prototype, "handleUpdateDisplayMode", 1);
2047
+ f = m([
2048
+ l(Z)
2049
+ ], f);
2050
+ const Os = {
2275
2051
  registration: {
2276
- [le]: {
2277
- class: P,
2052
+ [Z]: {
2053
+ class: f,
2278
2054
  singleton: !0
2279
2055
  }
2280
2056
  },
2281
- type: le,
2282
- predicate: u(le),
2283
- factory: c.Singleton.create(le)
2284
- }, { URL: Pr } = h("SETTINGS_SERVICE"), { getAll: Or } = f.build({
2285
- basePath: `${Pr}/api/settings`
2286
- }), as = g.createLogger({
2057
+ type: Z,
2058
+ predicate: u(Z),
2059
+ factory: c.Singleton.create(Z)
2060
+ }, { URL: ro } = h("SETTINGS_SERVICE"), { getAll: so } = y.build({
2061
+ basePath: `${ro}/api/settings`
2062
+ }), Ss = g.createLogger({
2287
2063
  name: "settings-service",
2288
2064
  group: "Services"
2289
- }), ns = async () => (as.debug("sending GET for settings"), await Or({})), ls = async () => await Or({
2290
- urlOverride: `${Pr}api/app/kosdev.ddk/ncui/languages`
2291
- }), Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2065
+ }), ws = async () => (Ss.debug("sending GET for settings"), await so({})), Es = async () => await so({
2066
+ urlOverride: `${ro}api/app/kosdev.ddk/ncui/languages`
2067
+ }), ci = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2292
2068
  __proto__: null,
2293
- getNcuiLanguage: ls,
2294
- getSettings: ns
2069
+ getNcuiLanguage: Es,
2070
+ getSettings: ws
2295
2071
  }, Symbol.toStringTag, { value: "Module" }));
2296
- var cs = Object.getOwnPropertyDescriptor, us = (e, t, r, i) => {
2297
- for (var o = i > 1 ? void 0 : i ? cs(t, r) : t, n = e.length - 1, a; n >= 0; n--)
2298
- (a = e[n]) && (o = a(o) || o);
2299
- return o;
2072
+ var Ls = Object.getOwnPropertyDescriptor, Cs = (e, t, o, s) => {
2073
+ for (var r = s > 1 ? void 0 : s ? Ls(t, o) : t, n = e.length - 1, a; n >= 0; n--)
2074
+ (a = e[n]) && (r = a(r) || r);
2075
+ return r;
2300
2076
  };
2301
- const ce = "utilities-model";
2302
- let it = class {
2303
- constructor(e, t, r) {
2304
- s(this, "id");
2305
- s(this, "name");
2306
- s(this, "options");
2307
- s(this, "roles");
2308
- s(this, "columnId");
2309
- s(this, "logger");
2310
- this.id = e, this.logger = r.logger, this.name = t.name, this.options = t.options, this.roles = t == null ? void 0 : t.roles, this.columnId = t.columnId;
2077
+ const ee = "utilities-model";
2078
+ let ze = class {
2079
+ constructor(e, t, o) {
2080
+ i(this, "id");
2081
+ i(this, "name");
2082
+ i(this, "options");
2083
+ i(this, "roles");
2084
+ i(this, "columnId");
2085
+ i(this, "logger");
2086
+ this.id = e, this.logger = o.logger, this.name = t.name, this.options = t.options, this.roles = t == null ? void 0 : t.roles, this.columnId = t.columnId;
2311
2087
  }
2312
2088
  updateModel(e) {
2313
2089
  this.name = e.name, this.options = e.options, this.roles = e == null ? void 0 : e.roles;
@@ -2326,61 +2102,61 @@ let it = class {
2326
2102
  this.logger.debug(`loading utilities ${this.id}`);
2327
2103
  }
2328
2104
  };
2329
- it = us([
2330
- l(ce)
2331
- ], it);
2332
- const Mr = {
2105
+ ze = Cs([
2106
+ l(ee)
2107
+ ], ze);
2108
+ const io = {
2333
2109
  registration: {
2334
- [ce]: {
2335
- class: it,
2110
+ [ee]: {
2111
+ class: ze,
2336
2112
  singleton: !1
2337
2113
  }
2338
2114
  },
2339
- type: ce,
2340
- predicate: u(ce),
2341
- factory: c.Factory.create(ce)
2342
- }, { URL: _e } = h("UTILITIES_SERVICE"), { getAll: qe } = f.build({
2343
- basePath: `${_e}/api/utilities`
2344
- }), Ge = g.createLogger({
2115
+ type: ee,
2116
+ predicate: u(ee),
2117
+ factory: c.Factory.create(ee)
2118
+ }, { URL: ue } = h("UTILITIES_SERVICE"), { getAll: Ie } = y.build({
2119
+ basePath: `${ue}/api/utilities`
2120
+ }), Re = g.createLogger({
2345
2121
  name: "utilities-service",
2346
2122
  group: "Services"
2347
- }), Sr = async () => {
2348
- Ge.debug("sending GET for utilities");
2123
+ }), no = async () => {
2124
+ Re.debug("sending GET for utilities");
2349
2125
  try {
2350
- const e = await qe({
2351
- urlOverride: `${_e}/api/kos/descriptor/app:kosdev.ddk:ncuiDescriptor/kondra.ncui.utilities`
2126
+ const e = await Ie({
2127
+ urlOverride: `${ue}/api/kos/descriptor/app:kosdev.ddk:ncuiDescriptor/kondra.ncui.utilities`
2352
2128
  });
2353
2129
  if ((e == null ? void 0 : e.status) !== 200) {
2354
- Ge.info("no extensions found, using base data");
2355
- const t = await qe({
2356
- urlOverride: `${_e}/api/kos/descriptor/system:app/kondra.ncui.utilities`
2130
+ Re.info("no extensions found, using base data");
2131
+ const t = await Ie({
2132
+ urlOverride: `${ue}/api/kos/descriptor/system:app/kondra.ncui.utilities`
2357
2133
  });
2358
2134
  return (t == null ? void 0 : t.data) ?? [];
2359
2135
  }
2360
2136
  return (e == null ? void 0 : e.data) ?? [];
2361
2137
  } catch (e) {
2362
- Ge.info(`error fetching utilities: ${e}. Using base data`);
2363
- const t = await qe({
2364
- urlOverride: `${_e}/api/kos/descriptor/system:app/kondra.ncui.utilities`
2138
+ Re.info(`error fetching utilities: ${e}. Using base data`);
2139
+ const t = await Ie({
2140
+ urlOverride: `${ue}/api/kos/descriptor/system:app/kondra.ncui.utilities`
2365
2141
  });
2366
2142
  return (t == null ? void 0 : t.data) ?? [];
2367
2143
  }
2368
- }, Qs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2144
+ }, ui = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2369
2145
  __proto__: null,
2370
- getUtilities: Sr
2146
+ getUtilities: no
2371
2147
  }, Symbol.toStringTag, { value: "Module" }));
2372
- var ds = Object.defineProperty, ps = Object.getOwnPropertyDescriptor, Cr = (e, t, r, i) => {
2373
- for (var o = i > 1 ? void 0 : i ? ps(t, r) : t, n = e.length - 1, a; n >= 0; n--)
2374
- (a = e[n]) && (o = (i ? a(t, r, o) : a(o)) || o);
2375
- return i && o && ds(t, r, o), o;
2376
- };
2377
- const ue = "utilities-container-model";
2378
- let we = class {
2379
- constructor(e, t, r) {
2380
- s(this, "id");
2381
- s(this, "logger");
2382
- s(this, "_models");
2383
- this.id = e, this.logger = r.logger, this._models = new st({
2148
+ var ks = Object.defineProperty, Ds = Object.getOwnPropertyDescriptor, ao = (e, t, o, s) => {
2149
+ for (var r = s > 1 ? void 0 : s ? Ds(t, o) : t, n = e.length - 1, a; n >= 0; n--)
2150
+ (a = e[n]) && (r = (s ? a(t, o, r) : a(r)) || r);
2151
+ return s && r && ks(t, o, r), r;
2152
+ };
2153
+ const te = "utilities-container-model";
2154
+ let me = class {
2155
+ constructor(e, t, o) {
2156
+ i(this, "id");
2157
+ i(this, "logger");
2158
+ i(this, "_models");
2159
+ this.id = e, this.logger = o.logger, this._models = new Ve({
2384
2160
  parentId: e,
2385
2161
  sortKey: "id",
2386
2162
  indexMap: {
@@ -2412,81 +2188,81 @@ let we = class {
2412
2188
  // -------------------LIFECYCLE----------------------------
2413
2189
  async load() {
2414
2190
  this.logger.debug(`loading utilities-container container ${this.id}`);
2415
- const e = await Sr();
2416
- e == null || e.forEach((t, r) => {
2417
- t.forEach((i) => {
2418
- const o = {
2419
- ...i,
2420
- columnId: String(r)
2421
- }, n = Mr.factory(i.name)(
2422
- o
2191
+ const e = await no();
2192
+ e == null || e.forEach((t, o) => {
2193
+ t.forEach((s) => {
2194
+ const r = {
2195
+ ...s,
2196
+ columnId: String(o)
2197
+ }, n = io.factory(s.name)(
2198
+ r
2423
2199
  );
2424
2200
  this.addModel(n);
2425
2201
  });
2426
2202
  });
2427
2203
  }
2428
2204
  };
2429
- Cr([
2430
- Ie
2431
- ], we.prototype, "_models", 2);
2432
- we = Cr([
2433
- l(ue)
2434
- ], we);
2435
- const gs = {
2205
+ ao([
2206
+ $e
2207
+ ], me.prototype, "_models", 2);
2208
+ me = ao([
2209
+ l(te)
2210
+ ], me);
2211
+ const Is = {
2436
2212
  registration: {
2437
- [ue]: {
2438
- class: we,
2213
+ [te]: {
2214
+ class: me,
2439
2215
  singleton: !0
2440
2216
  },
2441
- ...Mr.registration
2217
+ ...io.registration
2442
2218
  },
2443
- type: ue,
2444
- predicate: u(ue),
2445
- factory: c.Singleton.create(ue)
2446
- }, Xs = {
2447
- ...Lo.registration,
2448
- ...dt.registration,
2449
- ...ct.registration,
2450
- ...Ho.registration,
2451
- ...pt.registration,
2452
- ...Zo.registration,
2453
- ...ai.registration,
2454
- ...gi.registration,
2455
- ...Pi.registration,
2456
- ...ji.registration,
2457
- ...Bi.registration,
2458
- ...qi.registration,
2459
- ...Xi.registration,
2219
+ type: te,
2220
+ predicate: u(te),
2221
+ factory: c.Singleton.create(te)
2222
+ }, pi = {
2223
+ ...ir.registration,
2224
+ ...Xe.registration,
2225
+ ...qe.registration,
2226
+ ...pr.registration,
2227
+ ...Je.registration,
2228
+ ...Pr.registration,
2229
+ ...kr.registration,
2230
+ ...jr.registration,
2231
+ ...Gr.registration,
2460
2232
  ...rs.registration,
2461
- ...ss.registration,
2462
- ...jt.registration,
2463
- ...gs.registration
2464
- };
2465
- var hs = Object.defineProperty, fs = Object.getOwnPropertyDescriptor, wr = (e, t, r, i) => {
2466
- for (var o = i > 1 ? void 0 : i ? fs(t, r) : t, n = e.length - 1, a; n >= 0; n--)
2467
- (a = e[n]) && (o = (i ? a(t, r, o) : a(o)) || o);
2468
- return i && o && hs(t, r, o), o;
2469
- };
2470
- const Er = "trouble-action-model";
2471
- let Ee = class {
2472
- constructor(e, t, r) {
2473
- s(this, "id");
2474
- s(this, "logger");
2475
- s(this, "troubleContainer");
2476
- s(this, "disposer");
2477
- s(this, "state");
2478
- s(this, "troubleActionData");
2479
- this.id = e, this.logger = r.logger, this.state = Jr(), this.troubleActionData = t.definitions.reduce((i, o) => (i[o.troubleType] = o, i), {});
2233
+ ...cs.registration,
2234
+ ...hs.registration,
2235
+ ...vs.registration,
2236
+ ...$s.registration,
2237
+ ...Os.registration,
2238
+ ...wt.registration,
2239
+ ...Is.registration
2240
+ };
2241
+ var Rs = Object.defineProperty, As = Object.getOwnPropertyDescriptor, lo = (e, t, o, s) => {
2242
+ for (var r = s > 1 ? void 0 : s ? As(t, o) : t, n = e.length - 1, a; n >= 0; n--)
2243
+ (a = e[n]) && (r = (s ? a(t, o, r) : a(r)) || r);
2244
+ return s && r && Rs(t, o, r), r;
2245
+ };
2246
+ const co = "trouble-action-model";
2247
+ let be = class {
2248
+ constructor(e, t, o) {
2249
+ i(this, "id");
2250
+ i(this, "logger");
2251
+ i(this, "troubleContainer");
2252
+ i(this, "disposer");
2253
+ i(this, "state");
2254
+ i(this, "troubleActionData");
2255
+ this.id = e, this.logger = o.logger, this.state = Eo(), this.troubleActionData = t.definitions.reduce((s, r) => (s[r.troubleType] = r, s), {});
2480
2256
  }
2481
2257
  // -------------------LIFECYCLE----------------------------
2482
2258
  get activeTrouble() {
2483
2259
  const e = Object.keys(this.troubleActionData);
2484
2260
  if (e.length > 0) {
2485
- const t = e[0], r = this.troubleContainer.troubles.getIndexByKey(
2261
+ const t = e[0], o = this.troubleContainer.troubles.getIndexByKey(
2486
2262
  "byType",
2487
2263
  t
2488
2264
  );
2489
- return r.length > 0 ? r[0] : void 0;
2265
+ return o.length > 0 ? o[0] : void 0;
2490
2266
  }
2491
2267
  }
2492
2268
  get activeTroubleType() {
@@ -2494,19 +2270,19 @@ let Ee = class {
2494
2270
  return (e = this.activeTrouble) == null ? void 0 : e.type;
2495
2271
  }
2496
2272
  async init() {
2497
- this.logger.debug(`initializing trouble-action ${this.id}`), this.disposer = Zr(() => {
2498
- const e = this.troubleContainer.troubles.data.reduce((t, r) => {
2499
- const i = r.type;
2500
- if (this.troubleActionData[i]) {
2501
- const o = this.troubleActionData[i].stateKey ?? i, n = this.troubleActionData[i].stateValue ?? i;
2502
- t[o] = n;
2273
+ this.logger.debug(`initializing trouble-action ${this.id}`), this.disposer = Lo(() => {
2274
+ const e = this.troubleContainer.troubles.data.reduce((t, o) => {
2275
+ const s = o.type;
2276
+ if (this.troubleActionData[s]) {
2277
+ const r = this.troubleActionData[s].stateKey ?? s, n = this.troubleActionData[s].stateValue ?? s;
2278
+ t[r] = n;
2503
2279
  }
2504
2280
  return t;
2505
2281
  }, {});
2506
2282
  this.state.setValues(e), Object.keys(this.troubleActionData).forEach((t) => {
2507
2283
  if (this.troubleContainer.troubles.getIndexByKey("byType", t).length === 0) {
2508
- const r = this.troubleActionData[t].stateKey ?? t;
2509
- this.state[r] = void 0;
2284
+ const o = this.troubleActionData[t].stateKey ?? t;
2285
+ this.state[o] = void 0;
2510
2286
  }
2511
2287
  });
2512
2288
  });
@@ -2519,35 +2295,35 @@ let Ee = class {
2519
2295
  this.logger.debug(`loading trouble-action ${this.id}`);
2520
2296
  }
2521
2297
  };
2522
- wr([
2523
- m({ modelType: nt.type })
2524
- ], Ee.prototype, "troubleContainer", 2);
2525
- Ee = wr([
2526
- l(Er)
2527
- ], Ee);
2528
- const Js = new Fe({
2529
- class: Ee,
2530
- type: Er
2531
- }), { URL: Lr } = h("START_SERVICE"), { getOne: ms } = f.build({
2532
- basePath: `${Lr}/api/start`
2533
- }), ys = g.createLogger({ name: "start-service", group: "Services" }), Dr = async () => (ys.debug("navigating to NCUI"), await ms({
2534
- urlOverride: `${Lr}/api/app/kosdev.ddk/ncui/open`
2535
- })), Zs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2298
+ lo([
2299
+ p({ modelType: Ke.type })
2300
+ ], be.prototype, "troubleContainer", 2);
2301
+ be = lo([
2302
+ l(co)
2303
+ ], be);
2304
+ const gi = new Pe({
2305
+ class: be,
2306
+ type: co
2307
+ }), { URL: uo } = h("START_SERVICE"), { getOne: Fs } = y.build({
2308
+ basePath: `${uo}/api/start`
2309
+ }), xs = g.createLogger({ name: "start-service", group: "Services" }), po = async () => (xs.debug("navigating to NCUI"), await Fs({
2310
+ urlOverride: `${uo}/api/app/kosdev.ddk/ncui/open`
2311
+ })), hi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2536
2312
  __proto__: null,
2537
- navigateToNCui: Dr
2313
+ navigateToNCui: po
2538
2314
  }, Symbol.toStringTag, { value: "Module" }));
2539
- var bs = Object.defineProperty, vs = Object.getOwnPropertyDescriptor, kr = (e, t, r, i) => {
2540
- for (var o = i > 1 ? void 0 : i ? vs(t, r) : t, n = e.length - 1, a; n >= 0; n--)
2541
- (a = e[n]) && (o = (i ? a(t, r, o) : a(o)) || o);
2542
- return i && o && bs(t, r, o), o;
2543
- };
2544
- const Ir = "start-model";
2545
- let Le = class {
2546
- constructor(e, t, r) {
2547
- s(this, "id");
2548
- s(this, "logger");
2549
- s(this, "troubles");
2550
- this.id = e, this.logger = r.logger;
2315
+ var js = Object.defineProperty, Us = Object.getOwnPropertyDescriptor, go = (e, t, o, s) => {
2316
+ for (var r = s > 1 ? void 0 : s ? Us(t, o) : t, n = e.length - 1, a; n >= 0; n--)
2317
+ (a = e[n]) && (r = (s ? a(t, o, r) : a(r)) || r);
2318
+ return s && r && js(t, o, r), r;
2319
+ };
2320
+ const ho = "start-model";
2321
+ let _e = class {
2322
+ constructor(e, t, o) {
2323
+ i(this, "id");
2324
+ i(this, "logger");
2325
+ i(this, "troubles");
2326
+ this.id = e, this.logger = o.logger;
2551
2327
  }
2552
2328
  get firmwareFailed() {
2553
2329
  return this.troubles.troubles.getIndexByKey(
@@ -2562,7 +2338,7 @@ let Le = class {
2562
2338
  ).length > 0;
2563
2339
  }
2564
2340
  async navigate() {
2565
- await Dr();
2341
+ await po();
2566
2342
  }
2567
2343
  // -------------------LIFECYCLE----------------------------
2568
2344
  async init() {
@@ -2572,261 +2348,69 @@ let Le = class {
2572
2348
  this.logger.debug(`loading start ${this.id}`);
2573
2349
  }
2574
2350
  };
2575
- kr([
2576
- m({ modelType: nt.type })
2577
- ], Le.prototype, "troubles", 2);
2578
- Le = kr([
2579
- l(Ir)
2580
- ], Le);
2581
- const ea = new Fe({
2582
- class: Le,
2583
- type: Ir
2584
- }), { URL: ye } = h("SPM-PUMP_SERVICE"), { postModel: Be } = f.build({
2585
- basePath: `${ye}/api/spm-pump`
2586
- }), $ = g.createLogger({
2587
- name: "spm-pump-service",
2588
- group: "Services"
2589
- }), Rr = async (e, t) => {
2590
- $.debug(
2591
- `performPreCalibrate - sending POST request to /api/ext/freestyle/microCalibration/pour/${e}/preCalibrate`
2592
- );
2593
- try {
2594
- const r = await Be({
2595
- model: {},
2596
- urlOverride: `${ye}/api/ext/freestyle/microCalibration/pour/${e}/preCalibrate`,
2597
- tracker: t
2598
- });
2599
- return $.debug("performPreCalibrate - response:", r), r != null && r.data && T.initiateFuture(r.data), r == null ? void 0 : r.data;
2600
- } catch (r) {
2601
- $.error(
2602
- `performPreCalibrate - sending POST request to /api/ext/freestyle/microCalibration/pour/${e}/preCalibrate`,
2603
- r
2604
- );
2605
- const i = {
2606
- id: t || "",
2607
- endState: b.Fail,
2608
- tracker: t,
2609
- reason: "Failed to resolve trouble"
2610
- };
2611
- return T.initiateFuture(i), i;
2612
- }
2613
- }, Fr = async (e, t) => {
2614
- $.debug(
2615
- `performCalibrate - sending POST request to /api/ext/freestyle/microCalibration/pour/${e}/calibrate`
2616
- );
2617
- try {
2618
- const r = await Be({
2619
- model: {},
2620
- urlOverride: `${ye}/api/ext/freestyle/microCalibration/pour/${e}/calibrate`,
2621
- tracker: t
2622
- });
2623
- return $.debug("performCalibrate - response:", r), r != null && r.data && T.initiateFuture(r.data), r == null ? void 0 : r.data;
2624
- } catch (r) {
2625
- $.error(
2626
- `performCalibrate - sending POST request to /api/ext/freestyle/microCalibration/pour/${e}/calibrate`,
2627
- r
2628
- );
2629
- const i = {
2630
- id: t || "",
2631
- endState: b.Fail,
2632
- tracker: t,
2633
- reason: "Failed to resolve trouble"
2634
- };
2635
- return T.initiateFuture(i), i;
2636
- }
2637
- }, Ar = async (e, t, r, i) => {
2638
- $.debug(
2639
- `performVerify - sending POST request to /api/ext/freestyle/microCalibration/pour/${e}/verify`
2640
- );
2641
- try {
2642
- const o = await Be({
2643
- model: {
2644
- ...r,
2645
- // commandedCalibrationVolume: 0,
2646
- measuredCalibrationVolume: t
2647
- // measuredVerificationVolume: 0,
2648
- // newCalibrationValue: 0,
2649
- // pouredCalibrationVolume: 0,
2650
- },
2651
- urlOverride: `${ye}/api/ext/freestyle/microCalibration/pour/${e}/verify`,
2652
- tracker: i
2653
- });
2654
- return $.debug("performVerify - response:", o), o != null && o.data && T.initiateFuture(o.data), o == null ? void 0 : o.data;
2655
- } catch (o) {
2656
- $.error(
2657
- `performVerify - sending POST request to /api/ext/freestyle/microCalibration/pour/${e}/verify`,
2658
- o
2659
- );
2660
- const n = {
2661
- id: i || "",
2662
- endState: b.Fail,
2663
- tracker: i,
2664
- reason: "Failed to resolve trouble"
2665
- };
2666
- return T.initiateFuture(n), n;
2667
- }
2668
- }, xr = async (e, t, r, i) => {
2669
- var o, n, a, O, D;
2670
- $.debug(
2671
- `performComplete - sending POST request to /api/ext/freestyle/microCalibration/pour/${e}/complete`
2672
- );
2673
- try {
2674
- const p = await Be({
2675
- model: {
2676
- ...i,
2677
- // commandedCalibrationVolume: 0,
2678
- measuredCalibrationVolume: t,
2679
- measuredVerificationVolume: r
2680
- // newCalibrationValue: 0,
2681
- // pouredCalibrationVolume: 0,
2682
- },
2683
- urlOverride: `${ye}/api/ext/freestyle/microCalibration/pour/${e}/complete`
2684
- });
2685
- return $.debug("performComplete - response:", p), ((p == null ? void 0 : p.status) === 200 || (p == null ? void 0 : p.status) === 499) && ((o = p.data) != null && o.error) ? [p.data.error || "unknownError", p.data] : [void 0, p == null ? void 0 : p.data];
2686
- } catch (p) {
2687
- if ($.error(
2688
- `performComplete - sending POST request to /api/ext/freestyle/microCalibration/pour/${e}/complete`,
2689
- p
2690
- ), p instanceof Ae) {
2691
- const ft = ((a = (n = p.payload) == null ? void 0 : n.data) == null ? void 0 : a.error) || ((O = p.payload) == null ? void 0 : O.error) || "unknownError";
2692
- return [ft, ((D = p.payload) == null ? void 0 : D.data) || { error: ft }];
2693
- }
2694
- }
2695
- return ["unknownError", { error: "unknownError" }];
2696
- }, ta = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2697
- __proto__: null,
2698
- performCalibrate: Fr,
2699
- performComplete: xr,
2700
- performPreCalibrate: Rr,
2701
- performVerify: Ar
2702
- }, Symbol.toStringTag, { value: "Module" }));
2703
- var _s = Object.defineProperty, $s = Object.getOwnPropertyDescriptor, Ke = (e, t, r, i) => {
2704
- for (var o = i > 1 ? void 0 : i ? $s(t, r) : t, n = e.length - 1, a; n >= 0; n--)
2705
- (a = e[n]) && (o = (i ? a(t, r, o) : a(o)) || o);
2706
- return i && o && _s(t, r, o), o;
2707
- };
2708
- const jr = "spm-pump-model";
2709
- let U = class {
2710
- constructor(e, t, r) {
2711
- s(this, "id");
2712
- s(this, "logger");
2713
- s(this, "pump");
2714
- s(this, "futureHandler");
2715
- this.id = e, this.logger = r.logger, this.pump = t.companionParent, this.futureHandler = new he(this);
2716
- }
2717
- get name() {
2718
- return this.pump.name;
2719
- }
2720
- get canPour() {
2721
- return this.pump.canPour;
2722
- }
2723
- get isPouring() {
2724
- return this.pump.isPouring;
2725
- }
2726
- async cancelPour() {
2727
- return this.pump.cancelPour();
2728
- }
2729
- performIntent(e) {
2730
- return this.pump.performIntent(e);
2731
- }
2732
- get future() {
2733
- return this.futureHandler.future;
2734
- }
2735
- async performPreCalibrate(e) {
2736
- return Rr(this.pump.path, e);
2737
- }
2738
- async performCalibrate(e) {
2739
- return Fr(this.pump.path, e);
2740
- }
2741
- async performVerify(e, t, r) {
2742
- return Ar(this.pump.path, e, t, r);
2743
- }
2744
- async performComplete(e, t, r) {
2745
- return xr(this.pump.path, e, t, r);
2746
- }
2747
- // -------------------LIFECYCLE----------------------------
2748
- async init() {
2749
- this.logger.debug(`initializing spm-pump ${this.id}`);
2750
- }
2751
- async load() {
2752
- this.logger.debug(`loading spm-pump ${this.id}`);
2753
- }
2754
- };
2755
- Ke([
2756
- v()
2757
- ], U.prototype, "performPreCalibrate", 1);
2758
- Ke([
2759
- v()
2760
- ], U.prototype, "performCalibrate", 1);
2761
- Ke([
2762
- v()
2763
- ], U.prototype, "performVerify", 1);
2764
- U = Ke([
2765
- l(jr)
2766
- ], U);
2767
- const ra = new ke({
2768
- class: U,
2769
- type: jr
2351
+ go([
2352
+ p({ modelType: Ke.type })
2353
+ ], _e.prototype, "troubles", 2);
2354
+ _e = go([
2355
+ l(ho)
2356
+ ], _e);
2357
+ const yi = new Pe({
2358
+ class: _e,
2359
+ type: ho
2770
2360
  });
2771
2361
  export {
2772
- ws as AgitationControl,
2773
- Lo as Animation,
2774
- Es as AnimationServices,
2775
- dt as Application,
2776
- ct as Auth,
2777
- Ss as AuthServices,
2778
- Ho as CarbWater,
2779
- ks as CopyLogs,
2780
- Ds as CopyLogsServices,
2781
- Xs as DDKModels,
2782
- pt as DashboardOperations,
2783
- Is as DashboardOperationsServices,
2784
- Zo as Dispenser,
2785
- ai as DispenserInfo,
2786
- Fs as DispenserInfoServices,
2787
- Rs as DispenserServices,
2788
- po as Door,
2789
- pe as EXTENSION_POINT_DASHBOARD_KEY_FACTORY,
2790
- gi as Enrollment,
2791
- As as EnrollmentServices,
2792
- Gt as FcmPump,
2793
- Ls as FcmPumpServices,
2794
- Pi as IngredientSummary,
2795
- Ns as LfcvPump,
2796
- zs as LfcvPumpServices,
2797
- Ks as Lockout,
2798
- Bs as LockoutServices,
2799
- Vs as MACRO_KEYS,
2800
- ji as MacroAssignment,
2801
- hr as NetworkTest,
2802
- Bi as NetworkTestContainer,
2803
- Ys as NetworkTestServices,
2804
- qi as NutritiveSweetener,
2805
- Xi as PlainWater,
2806
- rs as Reboot,
2807
- qs as RebootServices,
2808
- ss as Settings,
2809
- Gs as SettingsServices,
2810
- xt as SetupStep,
2811
- jt as SetupStepContainer,
2812
- Cs as SetupStepServices,
2813
- ra as SpmPump,
2814
- ta as SpmPumpServices,
2815
- ea as Start,
2816
- Zs as StartServices,
2817
- oo as TROUBLE_TYPE_PRIME,
2818
- bt as TROUBLE_TYPE_PURGE,
2819
- Js as TroubleActionManager,
2820
- Mr as Utilities,
2821
- gs as UtilitiesContainer,
2822
- Qs as UtilitiesServices,
2823
- _i as calculateTimeDifference,
2824
- vi as executeDashboardKeyFactory,
2825
- js as isMacroGroup,
2826
- xs as isMicroGroup,
2827
- Us as macroHolderMap,
2828
- bi as registerDashboardKeyFactory,
2829
- Ws as toSeconds,
2830
- Hs as toTimeComponents,
2831
- Ht as troubleVisibilityFilter
2362
+ Ks as AgitationControl,
2363
+ ir as Animation,
2364
+ Ys as AnimationServices,
2365
+ Xe as Application,
2366
+ qe as Auth,
2367
+ Hs as AuthServices,
2368
+ pr as CarbWater,
2369
+ qs as CopyLogs,
2370
+ Gs as CopyLogsServices,
2371
+ pi as DDKModels,
2372
+ Je as DashboardOperations,
2373
+ Qs as DashboardOperationsServices,
2374
+ Pr as Dispenser,
2375
+ kr as DispenserInfo,
2376
+ Js as DispenserInfoServices,
2377
+ Xs as DispenserServices,
2378
+ No as Door,
2379
+ re as EXTENSION_POINT_DASHBOARD_KEY_FACTORY,
2380
+ jr as Enrollment,
2381
+ Zs as EnrollmentServices,
2382
+ Gr as IngredientSummary,
2383
+ ai as Lockout,
2384
+ ni as LockoutServices,
2385
+ ri as MACRO_KEYS,
2386
+ rs as MacroAssignment,
2387
+ qt as NetworkTest,
2388
+ cs as NetworkTestContainer,
2389
+ li as NetworkTestServices,
2390
+ hs as NutritiveSweetener,
2391
+ vs as PlainWater,
2392
+ $s as Reboot,
2393
+ di as RebootServices,
2394
+ Os as Settings,
2395
+ ci as SettingsServices,
2396
+ St as SetupStep,
2397
+ wt as SetupStepContainer,
2398
+ Bs as SetupStepServices,
2399
+ yi as Start,
2400
+ hi as StartServices,
2401
+ Io as TROUBLE_TYPE_PRIME,
2402
+ st as TROUBLE_TYPE_PURGE,
2403
+ gi as TroubleActionManager,
2404
+ io as Utilities,
2405
+ Is as UtilitiesContainer,
2406
+ ui as UtilitiesServices,
2407
+ Br as calculateTimeDifference,
2408
+ Hr as executeDashboardKeyFactory,
2409
+ ti as isMacroGroup,
2410
+ ei as isMicroGroup,
2411
+ oi as macroHolderMap,
2412
+ Vr as registerDashboardKeyFactory,
2413
+ ii as toSeconds,
2414
+ si as toTimeComponents,
2415
+ Ct as troubleVisibilityFilter
2832
2416
  };