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