@kosdev-code/kos-ddk-models 0.1.0-dev.5171 → 0.1.0-dev.5179
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.js +1 -1
- package/index.mjs +771 -690
- package/lib/trouble-action/index.d.ts +4 -1
- package/lib/trouble-action/index.d.ts.map +1 -1
- package/lib/trouble-action/trouble-action-model.d.ts +263 -6
- package/lib/trouble-action/trouble-action-model.d.ts.map +1 -1
- package/lib/trouble-action/types/index.d.ts +95 -0
- package/package.json +5 -5
- package/lib/trouble-action/trouble-action-registration.d.ts +0 -89
- package/lib/trouble-action/trouble-action-registration.d.ts.map +0 -1
package/index.mjs
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
var yo = Object.defineProperty;
|
|
2
2
|
var fo = (e, t, o) => t in e ? yo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
|
|
3
3
|
var i = (e, t, o) => (fo(e, typeof t != "symbol" ? t + "" : t, o), o);
|
|
4
|
-
import { resolveServiceUrl as h, ServiceFactory as y, KosLog as g, kosTopicHandler as Te, kosModel as l, kosAction as v, Kos as c, isKosModel as u, createPropKey as
|
|
5
|
-
import { AGITATION_REQUIRED_TROUBLE as
|
|
6
|
-
import { Assembly as Se, HolderContainer as
|
|
7
|
-
const
|
|
8
|
-
basePath: `${
|
|
9
|
-
}),
|
|
10
|
-
urlOverride: `${
|
|
11
|
-
})),
|
|
12
|
-
urlOverride: `${
|
|
4
|
+
import { resolveServiceUrl as h, ServiceFactory as y, KosLog as g, kosTopicHandler as Te, kosModel as l, kosAction as v, Kos as c, isKosModel as u, createPropKey as ht, kosStateProp as vo, kosConfigProperty as d, KosModelRegistrationFactory as mo, kosDependency as p, KosModelContainer as Ve, resolveContainerDeltas as it, kosChild as $e, Device as bo, kosFuture as M, kosModelEffect as Pe, MultipleFutureHandler as _o, FutureEndState as T, TroubleServices as Me, Troubles as nt, SingletonKosModelRegistrationFactory as He, getKosCompanionModel as Be, FetchError as yt, StorageDeviceContainer as To, kosFutureAware as $o, kosLoggerAware as Ke, KosDataContainer as Po, TroubleContainer as Ye, FutureHandler as Ge, troubleByTypeReducer as Mo, registerExtensionPoint as Oo, ExtensionManager as Oe, kosConfigBean as So, kosStateBean as wo, ObservableData as Eo } from "@kosdev-code/kos-ui-sdk";
|
|
5
|
+
import { AGITATION_REQUIRED_TROUBLE as ft, CartridgeAgitatorEvents as vt, FcmPump as mt, FreestyleHolder as Co } from "@kosdev-code/kos-freestyle-sdk";
|
|
6
|
+
import { Assembly as Se, HolderContainer as Lo, IngredientContainer as Do } from "@kosdev-code/kos-dispense-sdk";
|
|
7
|
+
const at = "PurgeTrouble", ko = "PrimeTrouble", { URL: qe } = h("AUTH_SERVICE"), { getOne: Io, postModel: Ro } = y.build({
|
|
8
|
+
basePath: `${qe}/api/auth`
|
|
9
|
+
}), bt = g.createLogger({ name: "auth-service", group: "Services" }), _t = async () => (bt.debug("sending GET for auth"), await Io({
|
|
10
|
+
urlOverride: `${qe}/api/app/kosdev.ddk/auth/role`
|
|
11
|
+
})), Tt = async (e) => (bt.debug("sending POST for auth"), await Ro({
|
|
12
|
+
urlOverride: `${qe}/api/app/kosdev.ddk/auth/pincode/${e}`,
|
|
13
13
|
model: {}
|
|
14
|
-
})),
|
|
14
|
+
})), Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
15
15
|
__proto__: null,
|
|
16
|
-
getCurrentRole:
|
|
17
|
-
sendPinCode:
|
|
16
|
+
getCurrentRole: _t,
|
|
17
|
+
sendPinCode: Tt
|
|
18
18
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
19
|
-
var
|
|
20
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
19
|
+
var Ao = Object.defineProperty, Fo = Object.getOwnPropertyDescriptor, $t = (e, t, o, s) => {
|
|
20
|
+
for (var r = s > 1 ? void 0 : s ? Fo(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
21
21
|
(a = e[n]) && (r = (s ? a(t, o, r) : a(r)) || r);
|
|
22
|
-
return s && r &&
|
|
22
|
+
return s && r && Ao(t, o, r), r;
|
|
23
23
|
};
|
|
24
|
-
const
|
|
25
|
-
let
|
|
24
|
+
const x = "auth-model", lt = (e) => e.toLowerCase();
|
|
25
|
+
let he = class {
|
|
26
26
|
constructor(e, t, o) {
|
|
27
27
|
i(this, "id");
|
|
28
28
|
i(this, "logger");
|
|
@@ -32,7 +32,7 @@ let ge = class {
|
|
|
32
32
|
async authorize(e) {
|
|
33
33
|
if (!e)
|
|
34
34
|
return !1;
|
|
35
|
-
const t = await
|
|
35
|
+
const t = await Tt(e);
|
|
36
36
|
return (t == null ? void 0 : t.status) === 200 ? t.data : !1;
|
|
37
37
|
}
|
|
38
38
|
// -------------------LIFECYCLE----------------------------
|
|
@@ -41,45 +41,45 @@ let ge = class {
|
|
|
41
41
|
}
|
|
42
42
|
async load() {
|
|
43
43
|
this.logger.debug(`loading auth ${this.id}`);
|
|
44
|
-
const e = await
|
|
44
|
+
const e = await _t();
|
|
45
45
|
(e == null ? void 0 : e.status) === 200 && (this.logger.debug(`response ${e.data}`), v(() => {
|
|
46
|
-
this.currentRole =
|
|
46
|
+
this.currentRole = lt(e.data);
|
|
47
47
|
}));
|
|
48
48
|
}
|
|
49
49
|
handleRoleChange(e) {
|
|
50
|
-
this.currentRole =
|
|
50
|
+
this.currentRole = lt(e);
|
|
51
51
|
}
|
|
52
52
|
forceRole(e) {
|
|
53
53
|
this.currentRole = e;
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
|
-
|
|
56
|
+
$t([
|
|
57
57
|
Te({
|
|
58
58
|
topic: "/app/kosdev.ddk/auth/role",
|
|
59
59
|
websocket: !0
|
|
60
60
|
})
|
|
61
|
-
],
|
|
62
|
-
|
|
63
|
-
l(
|
|
64
|
-
],
|
|
65
|
-
const
|
|
61
|
+
], he.prototype, "handleRoleChange", 1);
|
|
62
|
+
he = $t([
|
|
63
|
+
l(x)
|
|
64
|
+
], he);
|
|
65
|
+
const Qe = {
|
|
66
66
|
registration: {
|
|
67
|
-
[
|
|
68
|
-
class:
|
|
67
|
+
[x]: {
|
|
68
|
+
class: he,
|
|
69
69
|
singleton: !1
|
|
70
70
|
}
|
|
71
71
|
},
|
|
72
|
-
type:
|
|
73
|
-
predicate: u(
|
|
74
|
-
factory: c.Factory.create(
|
|
72
|
+
type: x,
|
|
73
|
+
predicate: u(x),
|
|
74
|
+
factory: c.Factory.create(x)
|
|
75
75
|
};
|
|
76
|
-
var
|
|
76
|
+
var xo = Object.defineProperty, Uo = Object.getOwnPropertyDescriptor, Xe = (e, t, o, s) => {
|
|
77
77
|
for (var r = s > 1 ? void 0 : s ? Uo(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
78
78
|
(a = e[n]) && (r = (s ? a(t, o, r) : a(r)) || r);
|
|
79
|
-
return s && r &&
|
|
79
|
+
return s && r && xo(t, o, r), r;
|
|
80
80
|
};
|
|
81
|
-
const
|
|
82
|
-
let
|
|
81
|
+
const Pt = "door-model", jo = ht("doorPath");
|
|
82
|
+
let re = class {
|
|
83
83
|
constructor(e, t, o) {
|
|
84
84
|
i(this, "id");
|
|
85
85
|
i(this, "logger");
|
|
@@ -98,42 +98,42 @@ let oe = class {
|
|
|
98
98
|
), !1) : e;
|
|
99
99
|
}
|
|
100
100
|
};
|
|
101
|
-
|
|
102
|
-
vo({ path:
|
|
103
|
-
],
|
|
104
|
-
|
|
101
|
+
Xe([
|
|
102
|
+
vo({ path: jo, attribute: "state" })
|
|
103
|
+
], re.prototype, "open", 2);
|
|
104
|
+
Xe([
|
|
105
105
|
d({
|
|
106
106
|
path: "app:kosdev.ddk:app",
|
|
107
107
|
attribute: "ncui.ignoreDoorStateOnExit"
|
|
108
108
|
})
|
|
109
|
-
],
|
|
110
|
-
|
|
111
|
-
l(
|
|
112
|
-
],
|
|
113
|
-
const
|
|
114
|
-
class:
|
|
115
|
-
type:
|
|
116
|
-
}), { URL:
|
|
117
|
-
basePath: `${
|
|
109
|
+
], re.prototype, "ignoreDoor", 2);
|
|
110
|
+
re = Xe([
|
|
111
|
+
l(Pt)
|
|
112
|
+
], re);
|
|
113
|
+
const Wo = new mo({
|
|
114
|
+
class: re,
|
|
115
|
+
type: Pt
|
|
116
|
+
}), { URL: Je } = h("SETUP-STEP_SERVICE"), { getAll: No, postModel: zo } = y.build({
|
|
117
|
+
basePath: `${Je}/api/setup-step`
|
|
118
118
|
}), Mt = g.createLogger({
|
|
119
119
|
name: "setup-step-service",
|
|
120
120
|
group: "Services"
|
|
121
|
-
}),
|
|
122
|
-
urlOverride: `${
|
|
123
|
-
})),
|
|
124
|
-
urlOverride: `${
|
|
121
|
+
}), Ot = async () => (Mt.debug("sending GET for setup-step"), await No({
|
|
122
|
+
urlOverride: `${Je}/api/app/kosdev.ddk/setup/steps`
|
|
123
|
+
})), St = async (e) => (Mt.debug("sending POST for setup-step"), await zo({
|
|
124
|
+
urlOverride: `${Je}/api/app/kosdev.ddk/setup/complete/${e}`,
|
|
125
125
|
model: {}
|
|
126
|
-
})),
|
|
126
|
+
})), Ks = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
127
127
|
__proto__: null,
|
|
128
|
-
getSetupSteps:
|
|
129
|
-
markStepComplete:
|
|
128
|
+
getSetupSteps: Ot,
|
|
129
|
+
markStepComplete: St
|
|
130
130
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
131
|
-
var
|
|
132
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
131
|
+
var Vo = Object.getOwnPropertyDescriptor, Ho = (e, t, o, s) => {
|
|
132
|
+
for (var r = s > 1 ? void 0 : s ? Vo(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
133
133
|
(a = e[n]) && (r = a(r) || r);
|
|
134
134
|
return r;
|
|
135
135
|
};
|
|
136
|
-
const
|
|
136
|
+
const U = "setup-step-model";
|
|
137
137
|
let Ae = class {
|
|
138
138
|
constructor(e, t, o) {
|
|
139
139
|
i(this, "id");
|
|
@@ -155,7 +155,7 @@ let Ae = class {
|
|
|
155
155
|
return `setup.${this.name}.body`;
|
|
156
156
|
}
|
|
157
157
|
async completeStep() {
|
|
158
|
-
const e = await
|
|
158
|
+
const e = await St(this.name);
|
|
159
159
|
(e == null ? void 0 : e.status) === 200 && v(() => {
|
|
160
160
|
this.complete = !0;
|
|
161
161
|
});
|
|
@@ -168,33 +168,33 @@ let Ae = class {
|
|
|
168
168
|
this.logger.debug(`loading setup-step ${this.id}`);
|
|
169
169
|
}
|
|
170
170
|
};
|
|
171
|
-
Ae =
|
|
172
|
-
l(
|
|
171
|
+
Ae = Ho([
|
|
172
|
+
l(U)
|
|
173
173
|
], Ae);
|
|
174
|
-
const
|
|
174
|
+
const wt = {
|
|
175
175
|
registration: {
|
|
176
|
-
[
|
|
176
|
+
[U]: {
|
|
177
177
|
class: Ae,
|
|
178
178
|
singleton: !1
|
|
179
179
|
}
|
|
180
180
|
},
|
|
181
|
-
type:
|
|
182
|
-
predicate: u(
|
|
183
|
-
factory: c.Factory.create(
|
|
181
|
+
type: U,
|
|
182
|
+
predicate: u(U),
|
|
183
|
+
factory: c.Factory.create(U)
|
|
184
184
|
};
|
|
185
|
-
var
|
|
186
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
185
|
+
var Bo = Object.defineProperty, Ko = Object.getOwnPropertyDescriptor, we = (e, t, o, s) => {
|
|
186
|
+
for (var r = s > 1 ? void 0 : s ? Ko(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
187
187
|
(a = e[n]) && (r = (s ? a(t, o, r) : a(r)) || r);
|
|
188
|
-
return s && r &&
|
|
188
|
+
return s && r && Bo(t, o, r), r;
|
|
189
189
|
};
|
|
190
190
|
const j = "setup-step-container-model";
|
|
191
|
-
function
|
|
191
|
+
function dt(e) {
|
|
192
192
|
return (t) => {
|
|
193
|
-
const o =
|
|
193
|
+
const o = wt.factory(t.id)(t);
|
|
194
194
|
o.updateModel(t), e.addModel(o);
|
|
195
195
|
};
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function ct(e) {
|
|
198
198
|
return (t) => {
|
|
199
199
|
e.removeModel(t);
|
|
200
200
|
};
|
|
@@ -257,7 +257,7 @@ let E = class {
|
|
|
257
257
|
}
|
|
258
258
|
async load() {
|
|
259
259
|
this.logger.debug(`loading setup-step-container container ${this.id}`);
|
|
260
|
-
const e = await
|
|
260
|
+
const e = await Ot();
|
|
261
261
|
if (e != null && e.data) {
|
|
262
262
|
const t = e.data.map(
|
|
263
263
|
(o, s) => ({
|
|
@@ -266,10 +266,10 @@ let E = class {
|
|
|
266
266
|
id: `setup-${o.name}`
|
|
267
267
|
})
|
|
268
268
|
);
|
|
269
|
-
|
|
269
|
+
it({
|
|
270
270
|
container: this.models,
|
|
271
|
-
onAddItem:
|
|
272
|
-
onRemoveItem:
|
|
271
|
+
onAddItem: dt(this),
|
|
272
|
+
onRemoveItem: ct(this)
|
|
273
273
|
})(t);
|
|
274
274
|
}
|
|
275
275
|
this.nextStep();
|
|
@@ -280,10 +280,10 @@ let E = class {
|
|
|
280
280
|
idx: s,
|
|
281
281
|
id: `setup-${o.name}`
|
|
282
282
|
}));
|
|
283
|
-
|
|
283
|
+
it({
|
|
284
284
|
container: this.models,
|
|
285
|
-
onAddItem:
|
|
286
|
-
onRemoveItem:
|
|
285
|
+
onAddItem: dt(this),
|
|
286
|
+
onRemoveItem: ct(this)
|
|
287
287
|
})(t);
|
|
288
288
|
}
|
|
289
289
|
};
|
|
@@ -291,7 +291,7 @@ we([
|
|
|
291
291
|
$e
|
|
292
292
|
], E.prototype, "models", 2);
|
|
293
293
|
we([
|
|
294
|
-
p({ modelType:
|
|
294
|
+
p({ modelType: Qe.type })
|
|
295
295
|
], E.prototype, "authModel", 2);
|
|
296
296
|
we([
|
|
297
297
|
Te({
|
|
@@ -302,58 +302,58 @@ we([
|
|
|
302
302
|
E = we([
|
|
303
303
|
l(j)
|
|
304
304
|
], E);
|
|
305
|
-
const
|
|
305
|
+
const Et = {
|
|
306
306
|
registration: {
|
|
307
307
|
[j]: {
|
|
308
308
|
class: E,
|
|
309
309
|
singleton: !0
|
|
310
310
|
},
|
|
311
|
-
...
|
|
311
|
+
...wt.registration
|
|
312
312
|
},
|
|
313
313
|
type: j,
|
|
314
314
|
predicate: u(j),
|
|
315
315
|
factory: c.Singleton.create(j)
|
|
316
|
-
}, { URL: S } = h("AUTH_SERVICE"), { getOne:
|
|
316
|
+
}, { URL: S } = h("AUTH_SERVICE"), { getOne: Ct, getAll: pe } = y.build({
|
|
317
317
|
basePath: `${S}/api/app/kosdev.ddk/ncui/`
|
|
318
|
-
}),
|
|
319
|
-
|
|
320
|
-
const e = await
|
|
318
|
+
}), se = g.createLogger({ name: "auth-service", group: "Services" }), Yo = async () => {
|
|
319
|
+
se.debug("sending GET for cuis");
|
|
320
|
+
const e = await pe({
|
|
321
321
|
urlOverride: `${S}/api/app/kosdev.ddk/cui`
|
|
322
322
|
});
|
|
323
323
|
if ((e == null ? void 0 : e.status) !== 200)
|
|
324
324
|
throw new Error("Failed to retrieve cuis");
|
|
325
325
|
return e.data;
|
|
326
|
-
},
|
|
327
|
-
|
|
326
|
+
}, Go = async () => {
|
|
327
|
+
se.debug("sending GET for navigation");
|
|
328
328
|
try {
|
|
329
|
-
const e = await
|
|
329
|
+
const e = await pe({
|
|
330
330
|
urlOverride: `${S}/api/kos/descriptor/app:kosdev.ddk:ncuiDescriptor/kondra.ncui.navigations`
|
|
331
331
|
});
|
|
332
332
|
if ((e == null ? void 0 : e.status) !== 200) {
|
|
333
|
-
|
|
334
|
-
const t = await
|
|
333
|
+
se.info("no extensions found, using base data");
|
|
334
|
+
const t = await pe({
|
|
335
335
|
urlOverride: `${S}/api/kos/descriptor/system:app/kondra.ncui.navigations`
|
|
336
336
|
});
|
|
337
337
|
return (t == null ? void 0 : t.data) ?? [];
|
|
338
338
|
}
|
|
339
339
|
return (e == null ? void 0 : e.data) ?? [];
|
|
340
340
|
} catch {
|
|
341
|
-
const t = await
|
|
341
|
+
const t = await pe({
|
|
342
342
|
urlOverride: `${S}/api/kos/descriptor/system:app/kondra.ncui.navigations`
|
|
343
343
|
});
|
|
344
344
|
return (t == null ? void 0 : t.data) ?? [];
|
|
345
345
|
}
|
|
346
|
-
},
|
|
346
|
+
}, qo = async () => (se.debug("navigating to CUI"), await Ct({
|
|
347
347
|
urlOverride: `${S}/api/app/kosdev.ddk/cui/open`
|
|
348
|
-
})),
|
|
348
|
+
})), Qo = async () => (se.debug("navigating to NCUI"), await Ct({
|
|
349
349
|
urlOverride: `${S}/api/app/kosdev.ddk/ncui/open`
|
|
350
350
|
}));
|
|
351
|
-
var
|
|
352
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
351
|
+
var Xo = Object.defineProperty, Jo = Object.getOwnPropertyDescriptor, O = (e, t, o, s) => {
|
|
352
|
+
for (var r = s > 1 ? void 0 : s ? Jo(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
353
353
|
(a = e[n]) && (r = (s ? a(t, o, r) : a(r)) || r);
|
|
354
|
-
return s && r &&
|
|
354
|
+
return s && r && Xo(t, o, r), r;
|
|
355
355
|
};
|
|
356
|
-
const
|
|
356
|
+
const W = "application-model", Lt = (e, t = "") => e.reduce((o, s) => {
|
|
357
357
|
const r = t ? `${t}.${s.name}` : s.name;
|
|
358
358
|
if (o[r] = { ...s, root: !t }, s.children) {
|
|
359
359
|
const n = Lt(s.children, r);
|
|
@@ -392,7 +392,7 @@ let b = class {
|
|
|
392
392
|
// enableSidebarAnimation!: KosConfigProperty<boolean>;
|
|
393
393
|
i(this, "languages");
|
|
394
394
|
i(this, "logger");
|
|
395
|
-
this.id = e, this.languages = [], this._cuis = [], this.logger = o.logger, this.door =
|
|
395
|
+
this.id = e, this.languages = [], this._cuis = [], this.logger = o.logger, this.door = Wo.instance("app:kosdev.ddk:service:door:door").options({
|
|
396
396
|
doorPath: "app:kosdev.ddk:service:door:door"
|
|
397
397
|
}).build();
|
|
398
398
|
}
|
|
@@ -415,18 +415,18 @@ let b = class {
|
|
|
415
415
|
return this.door.isOpen;
|
|
416
416
|
}
|
|
417
417
|
async enter() {
|
|
418
|
-
this.logger.info("navigating to NCUI"), await
|
|
418
|
+
this.logger.info("navigating to NCUI"), await Qo();
|
|
419
419
|
}
|
|
420
420
|
async exit() {
|
|
421
|
-
this.logger.info("navigating to CUI"), await
|
|
421
|
+
this.logger.info("navigating to CUI"), await qo();
|
|
422
422
|
}
|
|
423
423
|
// -------------------LIFECYCLE----------------------------
|
|
424
424
|
async load() {
|
|
425
425
|
var o, s;
|
|
426
426
|
this.logger.debug(`loading application ${this.id}`);
|
|
427
|
-
const e = await
|
|
427
|
+
const e = await Go();
|
|
428
428
|
this._navigationItems = e;
|
|
429
|
-
const t = await
|
|
429
|
+
const t = await Yo();
|
|
430
430
|
this._cuis = t, (o = this.setupStepContainer) != null && o.hasIncompletePreSteps && ((s = this.authModel) == null || s.forceRole("technician")), this.languages = [
|
|
431
431
|
{
|
|
432
432
|
name: "English",
|
|
@@ -439,10 +439,10 @@ O([
|
|
|
439
439
|
p({ modelType: bo.type })
|
|
440
440
|
], b.prototype, "device", 2);
|
|
441
441
|
O([
|
|
442
|
-
p({ modelType:
|
|
442
|
+
p({ modelType: Qe.type })
|
|
443
443
|
], b.prototype, "authModel", 2);
|
|
444
444
|
O([
|
|
445
|
-
p({ modelType:
|
|
445
|
+
p({ modelType: Et.type })
|
|
446
446
|
], b.prototype, "setupStepContainer", 2);
|
|
447
447
|
O([
|
|
448
448
|
$e
|
|
@@ -467,41 +467,41 @@ O([
|
|
|
467
467
|
})
|
|
468
468
|
], b.prototype, "fallbackCui", 2);
|
|
469
469
|
b = O([
|
|
470
|
-
l(
|
|
470
|
+
l(W)
|
|
471
471
|
], b);
|
|
472
|
-
const
|
|
472
|
+
const Ze = {
|
|
473
473
|
registration: {
|
|
474
|
-
[
|
|
474
|
+
[W]: {
|
|
475
475
|
class: b,
|
|
476
476
|
singleton: !0
|
|
477
477
|
}
|
|
478
478
|
},
|
|
479
|
-
type:
|
|
480
|
-
predicate: u(
|
|
479
|
+
type: W,
|
|
480
|
+
predicate: u(W),
|
|
481
481
|
factory: c.Singleton.create(
|
|
482
|
-
|
|
482
|
+
W
|
|
483
483
|
)
|
|
484
|
-
},
|
|
484
|
+
}, ue = {
|
|
485
485
|
none: 999,
|
|
486
486
|
crew: 0,
|
|
487
487
|
technician: 1,
|
|
488
488
|
manager: 2
|
|
489
|
-
},
|
|
490
|
-
if (t.type ===
|
|
489
|
+
}, Dt = (e) => (t) => {
|
|
490
|
+
if (t.type === ft)
|
|
491
491
|
return !1;
|
|
492
492
|
const o = (t == null ? void 0 : t.role) || "technician";
|
|
493
493
|
if (e && o) {
|
|
494
|
-
const s =
|
|
494
|
+
const s = ue[e.toLowerCase()] ?? ue.crew, r = ue[o.toLowerCase()] ?? ue.crew;
|
|
495
495
|
return s >= r;
|
|
496
496
|
}
|
|
497
497
|
return !1;
|
|
498
498
|
};
|
|
499
|
-
var
|
|
500
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
499
|
+
var Zo = Object.defineProperty, er = Object.getOwnPropertyDescriptor, I = (e, t, o, s) => {
|
|
500
|
+
for (var r = s > 1 ? void 0 : s ? er(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
501
501
|
(a = e[n]) && (r = (s ? a(t, o, r) : a(r)) || r);
|
|
502
|
-
return s && r &&
|
|
502
|
+
return s && r && Zo(t, o, r), r;
|
|
503
503
|
};
|
|
504
|
-
const kt = "agitation-control-model", Fe = "resolve",
|
|
504
|
+
const kt = "agitation-control-model", Fe = "resolve", tr = "agitate";
|
|
505
505
|
let $ = class {
|
|
506
506
|
constructor(e, t, o) {
|
|
507
507
|
i(this, "id");
|
|
@@ -571,13 +571,13 @@ let $ = class {
|
|
|
571
571
|
}
|
|
572
572
|
get queuedTroubles() {
|
|
573
573
|
return this.troubleContainer.troubles.getIndexByKey(
|
|
574
|
-
|
|
575
|
-
|
|
574
|
+
nt.INDEX_TROUBLES_BY_DEFERRED,
|
|
575
|
+
nt.TROUBLES_DEFERRED
|
|
576
576
|
);
|
|
577
577
|
}
|
|
578
578
|
get visibleTroubles() {
|
|
579
579
|
const e = this.application.currentRole;
|
|
580
|
-
return this.troubleContainer.troubles.data.filter(
|
|
580
|
+
return this.troubleContainer.troubles.data.filter(Dt(e)).filter((t) => t.type !== ft);
|
|
581
581
|
}
|
|
582
582
|
// -------------------LIFECYCLE----------------------------
|
|
583
583
|
get future() {
|
|
@@ -587,7 +587,7 @@ let $ = class {
|
|
|
587
587
|
return this.futureHandler.getFuture(Fe);
|
|
588
588
|
}
|
|
589
589
|
get agitateFuture() {
|
|
590
|
-
return this.futureHandler.getFuture(
|
|
590
|
+
return this.futureHandler.getFuture(tr);
|
|
591
591
|
}
|
|
592
592
|
handleAgitationStarted(e) {
|
|
593
593
|
this.logger.info(`Agitation started for ${e.path}`), this._agitationFutureId = String(e.futureId);
|
|
@@ -608,36 +608,36 @@ let $ = class {
|
|
|
608
608
|
this.logger.debug(`loading agitation-control ${this.id}`);
|
|
609
609
|
}
|
|
610
610
|
};
|
|
611
|
-
|
|
612
|
-
p({ modelType:
|
|
611
|
+
I([
|
|
612
|
+
p({ modelType: Ze.type })
|
|
613
613
|
], $.prototype, "application", 2);
|
|
614
|
-
|
|
615
|
-
|
|
614
|
+
I([
|
|
615
|
+
M({ alias: Fe })
|
|
616
616
|
], $.prototype, "resolveDeferredTroubles", 1);
|
|
617
|
-
|
|
618
|
-
Te({ topic:
|
|
617
|
+
I([
|
|
618
|
+
Te({ topic: vt.TOPIC_AGITATION_STARTED })
|
|
619
619
|
], $.prototype, "handleAgitationStarted", 1);
|
|
620
|
-
|
|
621
|
-
Te({ topic:
|
|
620
|
+
I([
|
|
621
|
+
Te({ topic: vt.TOPIC_AGITATION_ENDED })
|
|
622
622
|
], $.prototype, "handleAgitationEnded", 1);
|
|
623
|
-
|
|
624
|
-
|
|
623
|
+
I([
|
|
624
|
+
Pe({
|
|
625
625
|
dependencies: (e) => [e.readyToResolve, e._agitationFutureId]
|
|
626
626
|
})
|
|
627
627
|
], $.prototype, "handleReadyToResolve", 1);
|
|
628
|
-
$ =
|
|
628
|
+
$ = I([
|
|
629
629
|
l(kt)
|
|
630
630
|
], $);
|
|
631
|
-
const
|
|
631
|
+
const Ys = new He({
|
|
632
632
|
class: $,
|
|
633
633
|
type: kt
|
|
634
634
|
});
|
|
635
|
-
var
|
|
636
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
635
|
+
var or = Object.defineProperty, rr = Object.getOwnPropertyDescriptor, le = (e, t, o, s) => {
|
|
636
|
+
for (var r = s > 1 ? void 0 : s ? rr(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
637
637
|
(a = e[n]) && (r = (s ? a(t, o, r) : a(r)) || r);
|
|
638
|
-
return s && r &&
|
|
638
|
+
return s && r && or(t, o, r), r;
|
|
639
639
|
};
|
|
640
|
-
const
|
|
640
|
+
const N = "animation-model";
|
|
641
641
|
let w = class {
|
|
642
642
|
constructor(e, t, o) {
|
|
643
643
|
i(this, "id");
|
|
@@ -649,59 +649,59 @@ let w = class {
|
|
|
649
649
|
this.id = e, this.logger = o.logger;
|
|
650
650
|
}
|
|
651
651
|
};
|
|
652
|
-
|
|
652
|
+
le([
|
|
653
653
|
d({
|
|
654
654
|
path: "app:kosdev.ddk:app",
|
|
655
655
|
attribute: "ncui.uiConfig.animations.disableAll"
|
|
656
656
|
})
|
|
657
657
|
], w.prototype, "disableAll", 2);
|
|
658
|
-
|
|
658
|
+
le([
|
|
659
659
|
d({
|
|
660
660
|
path: "app:kosdev.ddk:app",
|
|
661
661
|
attribute: "ncui.uiConfig.animations.enableDial"
|
|
662
662
|
})
|
|
663
663
|
], w.prototype, "enableDial", 2);
|
|
664
|
-
|
|
664
|
+
le([
|
|
665
665
|
d({
|
|
666
666
|
path: "app:kosdev.ddk:app",
|
|
667
667
|
attribute: "ncui.uiConfig.animations.enableModal"
|
|
668
668
|
})
|
|
669
669
|
], w.prototype, "enableModal", 2);
|
|
670
|
-
|
|
670
|
+
le([
|
|
671
671
|
d({
|
|
672
672
|
path: "app:kosdev.ddk:app",
|
|
673
673
|
attribute: "ncui.uiConfig.animations.enableSideBar"
|
|
674
674
|
})
|
|
675
675
|
], w.prototype, "enableSideBar", 2);
|
|
676
|
-
w =
|
|
677
|
-
l(
|
|
676
|
+
w = le([
|
|
677
|
+
l(N)
|
|
678
678
|
], w);
|
|
679
|
-
const
|
|
679
|
+
const sr = {
|
|
680
680
|
registration: {
|
|
681
|
-
[
|
|
681
|
+
[N]: {
|
|
682
682
|
class: w,
|
|
683
683
|
singleton: !0
|
|
684
684
|
}
|
|
685
685
|
},
|
|
686
|
-
type:
|
|
687
|
-
predicate: u(
|
|
688
|
-
factory: c.Singleton.create(
|
|
689
|
-
}, { URL:
|
|
690
|
-
basePath: `${
|
|
691
|
-
}),
|
|
686
|
+
type: N,
|
|
687
|
+
predicate: u(N),
|
|
688
|
+
factory: c.Singleton.create(N)
|
|
689
|
+
}, { URL: ir } = h("ANIMATION_SERVICE"), { getAll: nr } = y.build({
|
|
690
|
+
basePath: `${ir}/api/animation`
|
|
691
|
+
}), ar = g.createLogger({
|
|
692
692
|
name: "animation-service",
|
|
693
693
|
group: "Services"
|
|
694
|
-
}),
|
|
694
|
+
}), lr = async () => (ar.debug("sending GET for animation"), await nr({})), Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
695
695
|
__proto__: null,
|
|
696
|
-
getAnimations:
|
|
696
|
+
getAnimations: lr
|
|
697
697
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
698
|
-
var
|
|
699
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
698
|
+
var dr = Object.defineProperty, cr = Object.getOwnPropertyDescriptor, It = (e, t, o, s) => {
|
|
699
|
+
for (var r = s > 1 ? void 0 : s ? cr(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
700
700
|
(a = e[n]) && (r = (s ? a(t, o, r) : a(r)) || r);
|
|
701
|
-
return s && r &&
|
|
701
|
+
return s && r && dr(t, o, r), r;
|
|
702
702
|
};
|
|
703
|
-
const
|
|
704
|
-
let
|
|
703
|
+
const z = "carb-water-model";
|
|
704
|
+
let ye = class {
|
|
705
705
|
constructor(e, t, o) {
|
|
706
706
|
i(this, "id");
|
|
707
707
|
i(this, "assemblyModel");
|
|
@@ -710,7 +710,7 @@ let he = class {
|
|
|
710
710
|
}
|
|
711
711
|
getPump() {
|
|
712
712
|
const t = this.assemblyModel.getHoldersByGroup("carb")[0].pumps.data[0];
|
|
713
|
-
return Be(t,
|
|
713
|
+
return Be(t, mt.type);
|
|
714
714
|
}
|
|
715
715
|
// -------------------LIFECYCLE----------------------------
|
|
716
716
|
async init() {
|
|
@@ -720,92 +720,92 @@ let he = class {
|
|
|
720
720
|
this.logger.debug(`loading carb-water ${this.id}`);
|
|
721
721
|
}
|
|
722
722
|
};
|
|
723
|
-
|
|
723
|
+
It([
|
|
724
724
|
p({ modelType: Se.type })
|
|
725
|
-
],
|
|
726
|
-
|
|
727
|
-
l(
|
|
728
|
-
],
|
|
729
|
-
const
|
|
725
|
+
], ye.prototype, "assemblyModel", 2);
|
|
726
|
+
ye = It([
|
|
727
|
+
l(z)
|
|
728
|
+
], ye);
|
|
729
|
+
const ur = {
|
|
730
730
|
registration: {
|
|
731
|
-
[
|
|
732
|
-
class:
|
|
731
|
+
[z]: {
|
|
732
|
+
class: ye,
|
|
733
733
|
singleton: !1
|
|
734
734
|
}
|
|
735
735
|
},
|
|
736
|
-
type:
|
|
737
|
-
predicate: u(
|
|
738
|
-
factory: c.Factory.create(
|
|
739
|
-
}, { URL:
|
|
740
|
-
basePath: `${
|
|
741
|
-
}),
|
|
736
|
+
type: z,
|
|
737
|
+
predicate: u(z),
|
|
738
|
+
factory: c.Factory.create(z)
|
|
739
|
+
}, { URL: R } = h("COPY-LOGS_SERVICE"), { getAll: pr, getOne: gr, postModel: Rt, deleteModel: hr } = y.build({
|
|
740
|
+
basePath: `${R}/api/copy-logs`
|
|
741
|
+
}), fe = g.createLogger({
|
|
742
742
|
name: "copy-logs-service",
|
|
743
743
|
group: "Services"
|
|
744
|
-
}),
|
|
745
|
-
const o = await
|
|
744
|
+
}), At = async (e, t) => {
|
|
745
|
+
const o = await hr({
|
|
746
746
|
tracker: t,
|
|
747
747
|
id: e,
|
|
748
|
-
urlOverride: `${
|
|
748
|
+
urlOverride: `${R}/api/app/kosdev.ddk/copyLogs/${e}`
|
|
749
749
|
});
|
|
750
750
|
if (!(o != null && o.data))
|
|
751
751
|
throw new Error("No response from server");
|
|
752
752
|
return o.data;
|
|
753
|
-
},
|
|
754
|
-
const o = await
|
|
753
|
+
}, Ft = async (e, t) => {
|
|
754
|
+
const o = await Rt({
|
|
755
755
|
model: {},
|
|
756
756
|
tracker: t,
|
|
757
|
-
urlOverride: `${
|
|
757
|
+
urlOverride: `${R}/api/app/kosdev.ddk/copyLogs/eraseAndCopy/${e}`
|
|
758
758
|
});
|
|
759
759
|
if (!(o != null && o.data))
|
|
760
760
|
throw new Error("No response from server");
|
|
761
761
|
return o.data;
|
|
762
|
-
},
|
|
763
|
-
const o = await
|
|
762
|
+
}, xt = async (e, t) => {
|
|
763
|
+
const o = await Rt({
|
|
764
764
|
model: {},
|
|
765
765
|
tracker: t,
|
|
766
|
-
urlOverride: `${
|
|
766
|
+
urlOverride: `${R}/api/app/kosdev.ddk/copyLogs/${e}`
|
|
767
767
|
});
|
|
768
768
|
if (!(o != null && o.data))
|
|
769
769
|
throw new Error("No response from server");
|
|
770
770
|
return o.data;
|
|
771
|
-
},
|
|
772
|
-
|
|
771
|
+
}, Ut = async () => {
|
|
772
|
+
fe.debug("sending GET for copy-logs");
|
|
773
773
|
try {
|
|
774
|
-
const e = await
|
|
775
|
-
urlOverride: `${
|
|
774
|
+
const e = await pr({
|
|
775
|
+
urlOverride: `${R}/api/app/kosdev.ddk/copyLogs/volumes/size`
|
|
776
776
|
});
|
|
777
777
|
return [void 0, e == null ? void 0 : e.data];
|
|
778
778
|
} catch (e) {
|
|
779
|
-
if (e instanceof
|
|
780
|
-
return
|
|
779
|
+
if (e instanceof yt)
|
|
780
|
+
return fe.error(`Error fetching log file size: ${e.payload.error}`), [e.payload.error, void 0];
|
|
781
781
|
}
|
|
782
782
|
return ["unknownError", void 0];
|
|
783
783
|
}, jt = async () => {
|
|
784
|
-
|
|
784
|
+
fe.debug("sending GET for log file size");
|
|
785
785
|
try {
|
|
786
|
-
const e = await
|
|
787
|
-
urlOverride: `${
|
|
786
|
+
const e = await gr({
|
|
787
|
+
urlOverride: `${R}/api/app/kosdev.ddk/copyLogs/files/size`
|
|
788
788
|
});
|
|
789
789
|
return [void 0, e == null ? void 0 : e.data];
|
|
790
790
|
} catch (e) {
|
|
791
|
-
if (e instanceof
|
|
792
|
-
return
|
|
791
|
+
if (e instanceof yt)
|
|
792
|
+
return fe.error(`Error fetching log file size: ${e.payload.error}`), [e.payload.error, void 0];
|
|
793
793
|
}
|
|
794
794
|
return ["unknownError", void 0];
|
|
795
|
-
},
|
|
795
|
+
}, qs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
796
796
|
__proto__: null,
|
|
797
|
-
copyLogFromVolume:
|
|
798
|
-
eraseAndCopyLogsToVolume:
|
|
799
|
-
eraseVolume:
|
|
797
|
+
copyLogFromVolume: xt,
|
|
798
|
+
eraseAndCopyLogsToVolume: Ft,
|
|
799
|
+
eraseVolume: At,
|
|
800
800
|
getLogFileSize: jt,
|
|
801
|
-
getVolumes:
|
|
801
|
+
getVolumes: Ut
|
|
802
802
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
803
|
-
var
|
|
804
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
803
|
+
var Wt = Object.defineProperty, yr = Object.getOwnPropertyDescriptor, fr = (e, t, o) => t in e ? Wt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, A = (e, t, o, s) => {
|
|
804
|
+
for (var r = s > 1 ? void 0 : s ? yr(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
805
805
|
(a = e[n]) && (r = (s ? a(t, o, r) : a(r)) || r);
|
|
806
|
-
return s && r &&
|
|
807
|
-
},
|
|
808
|
-
const
|
|
806
|
+
return s && r && Wt(t, o, r), r;
|
|
807
|
+
}, vr = (e, t, o) => (fr(e, t + "", o), o);
|
|
808
|
+
const mr = "copy-logs-model";
|
|
809
809
|
let _ = class {
|
|
810
810
|
constructor(e) {
|
|
811
811
|
i(this, "id");
|
|
@@ -815,7 +815,7 @@ let _ = class {
|
|
|
815
815
|
i(this, "_logFileSize", 0);
|
|
816
816
|
i(this, "_actionState", "idle");
|
|
817
817
|
i(this, "copyProgress");
|
|
818
|
-
this.id = e, this._volumes = new
|
|
818
|
+
this.id = e, this._volumes = new Po(), this._activeVolume = void 0, this.copyProgress = {
|
|
819
819
|
bytesCopied: 0,
|
|
820
820
|
bytesToCopy: 0,
|
|
821
821
|
filesCopied: 0,
|
|
@@ -884,7 +884,7 @@ let _ = class {
|
|
|
884
884
|
this._actionState = "erasing";
|
|
885
885
|
}), !this._activeVolume)
|
|
886
886
|
throw this.logger.error("No active volume selected"), new Error("No active volume selected");
|
|
887
|
-
return this.logger.info(`Erasing volume ${(t = this._activeVolume) == null ? void 0 : t.name}`),
|
|
887
|
+
return this.logger.info(`Erasing volume ${(t = this._activeVolume) == null ? void 0 : t.name}`), Ft(this._activeVolume.id, e);
|
|
888
888
|
}
|
|
889
889
|
async eraseVolume(e) {
|
|
890
890
|
var t;
|
|
@@ -894,7 +894,7 @@ let _ = class {
|
|
|
894
894
|
this._actionState = "erasing";
|
|
895
895
|
}), !this._activeVolume)
|
|
896
896
|
throw this.logger.error("No active volume selected"), new Error("No active volume selected");
|
|
897
|
-
return this.logger.info(`Erasing volume ${(t = this._activeVolume) == null ? void 0 : t.name}`),
|
|
897
|
+
return this.logger.info(`Erasing volume ${(t = this._activeVolume) == null ? void 0 : t.name}`), At(this._activeVolume.id, e);
|
|
898
898
|
}
|
|
899
899
|
async copyLogs(e) {
|
|
900
900
|
var t;
|
|
@@ -904,7 +904,7 @@ let _ = class {
|
|
|
904
904
|
this._actionState = "copying";
|
|
905
905
|
}), !this._activeVolume)
|
|
906
906
|
throw this.logger.error("No active volume selected"), new Error("No active volume selected");
|
|
907
|
-
return this.logger.info(`Copying logs to ${(t = this._activeVolume) == null ? void 0 : t.name}`),
|
|
907
|
+
return this.logger.info(`Copying logs to ${(t = this._activeVolume) == null ? void 0 : t.name}`), xt(this._activeVolume.id, e);
|
|
908
908
|
}
|
|
909
909
|
handleInsertion() {
|
|
910
910
|
this.inserted ? this.syncVolumes() : (this._volumes.clear(), this.clearActiveVolume());
|
|
@@ -913,7 +913,7 @@ let _ = class {
|
|
|
913
913
|
this.logger.debug(`initializing copy-logs ${this.id}`);
|
|
914
914
|
}
|
|
915
915
|
async syncVolumes() {
|
|
916
|
-
const [e, t] = await
|
|
916
|
+
const [e, t] = await Ut(), [o, s] = await jt();
|
|
917
917
|
if (o) {
|
|
918
918
|
this.logger.error(`Error fetching log file size: ${o}`);
|
|
919
919
|
return;
|
|
@@ -942,82 +942,82 @@ let _ = class {
|
|
|
942
942
|
this.logger.debug(`loading copy-logs ${this.id}`);
|
|
943
943
|
}
|
|
944
944
|
};
|
|
945
|
-
|
|
946
|
-
|
|
945
|
+
vr(_, "Registration");
|
|
946
|
+
A([
|
|
947
947
|
p({ modelType: To.type })
|
|
948
948
|
], _.prototype, "storageDeviceContainer", 2);
|
|
949
|
-
|
|
950
|
-
|
|
949
|
+
A([
|
|
950
|
+
M()
|
|
951
951
|
], _.prototype, "eraseAndCopyVolume", 1);
|
|
952
|
-
|
|
953
|
-
|
|
952
|
+
A([
|
|
953
|
+
M()
|
|
954
954
|
], _.prototype, "eraseVolume", 1);
|
|
955
|
-
|
|
956
|
-
|
|
955
|
+
A([
|
|
956
|
+
M()
|
|
957
957
|
], _.prototype, "copyLogs", 1);
|
|
958
|
-
|
|
959
|
-
|
|
958
|
+
A([
|
|
959
|
+
Pe({
|
|
960
960
|
dependencies: (e) => [e.inserted]
|
|
961
961
|
})
|
|
962
962
|
], _.prototype, "handleInsertion", 1);
|
|
963
|
-
_ =
|
|
964
|
-
l({ modelTypeId:
|
|
963
|
+
_ = A([
|
|
964
|
+
l({ modelTypeId: mr, singleton: !0 }),
|
|
965
965
|
$o(),
|
|
966
|
-
|
|
966
|
+
Ke()
|
|
967
967
|
], _);
|
|
968
|
-
const
|
|
968
|
+
const Qs = _.Registration, Nt = g.createLogger({
|
|
969
969
|
name: "dashboard-operations-service",
|
|
970
970
|
group: "Services"
|
|
971
|
-
}),
|
|
971
|
+
}), zt = async (e, t) => (Nt.debug("resolveAll"), await Me.bulkResolveTroubles(
|
|
972
972
|
e,
|
|
973
973
|
void 0,
|
|
974
974
|
t
|
|
975
|
-
)),
|
|
975
|
+
)), Vt = async (e, t) => (Nt.debug("resolveTrouble"), await Me.resolveTrouble(
|
|
976
976
|
e,
|
|
977
977
|
void 0,
|
|
978
978
|
t
|
|
979
|
-
)),
|
|
979
|
+
)), Xs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
980
980
|
__proto__: null,
|
|
981
|
-
resolveAll:
|
|
982
|
-
resolveTrouble:
|
|
981
|
+
resolveAll: zt,
|
|
982
|
+
resolveTrouble: Vt
|
|
983
983
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
984
|
-
var
|
|
985
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
984
|
+
var br = Object.defineProperty, _r = Object.getOwnPropertyDescriptor, Ee = (e, t, o, s) => {
|
|
985
|
+
for (var r = s > 1 ? void 0 : s ? _r(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
986
986
|
(a = e[n]) && (r = (s ? a(t, o, r) : a(r)) || r);
|
|
987
|
-
return s && r &&
|
|
987
|
+
return s && r && br(t, o, r), r;
|
|
988
988
|
};
|
|
989
|
-
const
|
|
990
|
-
function
|
|
989
|
+
const V = "dashboard-operations-model";
|
|
990
|
+
function ut(e) {
|
|
991
991
|
return !e.deferred;
|
|
992
992
|
}
|
|
993
|
-
function
|
|
993
|
+
function pt(e) {
|
|
994
994
|
return e.deferred;
|
|
995
995
|
}
|
|
996
|
-
let
|
|
996
|
+
let C = class {
|
|
997
997
|
constructor(e, t, o) {
|
|
998
998
|
i(this, "id");
|
|
999
999
|
i(this, "troubles");
|
|
1000
1000
|
i(this, "futureHandler");
|
|
1001
1001
|
i(this, "logger");
|
|
1002
|
-
this.id = e, this.futureHandler = new
|
|
1002
|
+
this.id = e, this.futureHandler = new Ge(this), this.logger = o.logger;
|
|
1003
1003
|
}
|
|
1004
1004
|
get troublesByType() {
|
|
1005
1005
|
return this.troubles.troubles.data.reduce(
|
|
1006
|
-
|
|
1006
|
+
Mo,
|
|
1007
1007
|
{}
|
|
1008
1008
|
);
|
|
1009
1009
|
}
|
|
1010
1010
|
get queuedPurgeTroubles() {
|
|
1011
|
-
return this.purgeTroubles.filter(
|
|
1011
|
+
return this.purgeTroubles.filter(pt);
|
|
1012
1012
|
}
|
|
1013
1013
|
get queuedPrimeTroubles() {
|
|
1014
|
-
return this.primeTroubles.filter(
|
|
1014
|
+
return this.primeTroubles.filter(pt);
|
|
1015
1015
|
}
|
|
1016
1016
|
get resolvablePrimeTroubles() {
|
|
1017
|
-
return this.primeTroubles.filter(
|
|
1017
|
+
return this.primeTroubles.filter(ut);
|
|
1018
1018
|
}
|
|
1019
1019
|
get resolvablePurgeTroubles() {
|
|
1020
|
-
return this.purgeTroubles.filter(
|
|
1020
|
+
return this.purgeTroubles.filter(ut);
|
|
1021
1021
|
}
|
|
1022
1022
|
get hasResolvablePurgeTroubles() {
|
|
1023
1023
|
return this.resolvablePurgeTroubles.length > 0;
|
|
@@ -1032,10 +1032,10 @@ let L = class {
|
|
|
1032
1032
|
return this.primeTroubles.length > 0;
|
|
1033
1033
|
}
|
|
1034
1034
|
get purgeTroubles() {
|
|
1035
|
-
return this.troublesByType[
|
|
1035
|
+
return this.troublesByType[at] || [];
|
|
1036
1036
|
}
|
|
1037
1037
|
get primeTroubles() {
|
|
1038
|
-
return this.troublesByType[
|
|
1038
|
+
return this.troublesByType[ko] || [];
|
|
1039
1039
|
}
|
|
1040
1040
|
get future() {
|
|
1041
1041
|
return this.futureHandler.getFuture();
|
|
@@ -1043,17 +1043,17 @@ let L = class {
|
|
|
1043
1043
|
async resolveAllTroubles(e, t) {
|
|
1044
1044
|
if (!t)
|
|
1045
1045
|
throw new Error("No tracker provided");
|
|
1046
|
-
const o = e ===
|
|
1046
|
+
const o = e === at ? this.purgeTroubles : this.primeTroubles;
|
|
1047
1047
|
o.filter((a) => a.shouldDefer).forEach((a) => {
|
|
1048
1048
|
this.logger.info(`Deferring trouble ${a.rawId}`), a.defer();
|
|
1049
1049
|
});
|
|
1050
1050
|
const r = o.filter((a) => !a.shouldDefer).map((a) => a.rawId);
|
|
1051
|
-
return r.length === 0 ? void 0 : await
|
|
1051
|
+
return r.length === 0 ? void 0 : await zt(r, t);
|
|
1052
1052
|
}
|
|
1053
1053
|
async resolveTrouble(e, t) {
|
|
1054
1054
|
if (!t)
|
|
1055
1055
|
throw new Error("No tracker provided");
|
|
1056
|
-
return await
|
|
1056
|
+
return await Vt(e, t);
|
|
1057
1057
|
}
|
|
1058
1058
|
// -------------------LIFECYCLE----------------------------
|
|
1059
1059
|
async init() {
|
|
@@ -1064,34 +1064,34 @@ let L = class {
|
|
|
1064
1064
|
}
|
|
1065
1065
|
};
|
|
1066
1066
|
Ee([
|
|
1067
|
-
p({ modelType:
|
|
1068
|
-
],
|
|
1067
|
+
p({ modelType: Ye.type })
|
|
1068
|
+
], C.prototype, "troubles", 2);
|
|
1069
1069
|
Ee([
|
|
1070
|
-
|
|
1071
|
-
],
|
|
1070
|
+
M()
|
|
1071
|
+
], C.prototype, "resolveAllTroubles", 1);
|
|
1072
1072
|
Ee([
|
|
1073
|
-
|
|
1074
|
-
],
|
|
1075
|
-
|
|
1076
|
-
l(
|
|
1077
|
-
],
|
|
1078
|
-
const
|
|
1073
|
+
M()
|
|
1074
|
+
], C.prototype, "resolveTrouble", 1);
|
|
1075
|
+
C = Ee([
|
|
1076
|
+
l(V)
|
|
1077
|
+
], C);
|
|
1078
|
+
const et = {
|
|
1079
1079
|
registration: {
|
|
1080
|
-
[
|
|
1081
|
-
class:
|
|
1080
|
+
[V]: {
|
|
1081
|
+
class: C,
|
|
1082
1082
|
singleton: !0
|
|
1083
1083
|
}
|
|
1084
1084
|
},
|
|
1085
|
-
type:
|
|
1086
|
-
predicate: u(
|
|
1087
|
-
factory: c.Singleton.create(
|
|
1085
|
+
type: V,
|
|
1086
|
+
predicate: u(V),
|
|
1087
|
+
factory: c.Singleton.create(V)
|
|
1088
1088
|
};
|
|
1089
|
-
var
|
|
1090
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
1089
|
+
var Tr = Object.getOwnPropertyDescriptor, $r = (e, t, o, s) => {
|
|
1090
|
+
for (var r = s > 1 ? void 0 : s ? Tr(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
1091
1091
|
(a = e[n]) && (r = a(r) || r);
|
|
1092
1092
|
return r;
|
|
1093
1093
|
};
|
|
1094
|
-
const
|
|
1094
|
+
const H = "dispenser-model";
|
|
1095
1095
|
let xe = class {
|
|
1096
1096
|
constructor(e, t, o) {
|
|
1097
1097
|
i(this, "id");
|
|
@@ -1108,35 +1108,35 @@ let xe = class {
|
|
|
1108
1108
|
this.logger.debug(`loading dispenser ${this.id}`);
|
|
1109
1109
|
}
|
|
1110
1110
|
};
|
|
1111
|
-
xe =
|
|
1112
|
-
l(
|
|
1111
|
+
xe = $r([
|
|
1112
|
+
l(H)
|
|
1113
1113
|
], xe);
|
|
1114
1114
|
const Pr = {
|
|
1115
1115
|
registration: {
|
|
1116
|
-
[
|
|
1116
|
+
[H]: {
|
|
1117
1117
|
class: xe,
|
|
1118
1118
|
singleton: !0
|
|
1119
1119
|
}
|
|
1120
1120
|
},
|
|
1121
|
-
type:
|
|
1122
|
-
predicate: u(
|
|
1123
|
-
factory: c.Singleton.create(
|
|
1124
|
-
}, { URL:
|
|
1125
|
-
basePath: `${
|
|
1126
|
-
}),
|
|
1121
|
+
type: H,
|
|
1122
|
+
predicate: u(H),
|
|
1123
|
+
factory: c.Singleton.create(H)
|
|
1124
|
+
}, { URL: Mr } = h("DISPENSER_SERVICE"), { getAll: Or } = y.build({
|
|
1125
|
+
basePath: `${Mr}/api/dispenser`
|
|
1126
|
+
}), Sr = g.createLogger({
|
|
1127
1127
|
name: "dispenser-service",
|
|
1128
1128
|
group: "Services"
|
|
1129
|
-
}),
|
|
1129
|
+
}), wr = async () => (Sr.debug("sending GET for dispenser"), await Or({})), Js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1130
1130
|
__proto__: null,
|
|
1131
|
-
getDispensers:
|
|
1131
|
+
getDispensers: wr
|
|
1132
1132
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1133
|
-
var
|
|
1133
|
+
var Er = Object.defineProperty, Cr = Object.getOwnPropertyDescriptor, Ht = (e, t, o, s) => {
|
|
1134
1134
|
for (var r = s > 1 ? void 0 : s ? Cr(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
1135
1135
|
(a = e[n]) && (r = (s ? a(t, o, r) : a(r)) || r);
|
|
1136
|
-
return s && r &&
|
|
1136
|
+
return s && r && Er(t, o, r), r;
|
|
1137
1137
|
};
|
|
1138
|
-
const
|
|
1139
|
-
let
|
|
1138
|
+
const B = "dispenser-info-model";
|
|
1139
|
+
let ve = class {
|
|
1140
1140
|
constructor(e, t, o) {
|
|
1141
1141
|
i(this, "logger");
|
|
1142
1142
|
i(this, "id");
|
|
@@ -1151,43 +1151,43 @@ let fe = class {
|
|
|
1151
1151
|
this.logger.debug(`loading dispenser-info ${this.id}`);
|
|
1152
1152
|
}
|
|
1153
1153
|
};
|
|
1154
|
-
|
|
1154
|
+
Ht([
|
|
1155
1155
|
d({
|
|
1156
1156
|
path: "kos:device",
|
|
1157
1157
|
attribute: "name"
|
|
1158
1158
|
})
|
|
1159
|
-
],
|
|
1160
|
-
|
|
1161
|
-
l(
|
|
1162
|
-
],
|
|
1163
|
-
const
|
|
1159
|
+
], ve.prototype, "name", 2);
|
|
1160
|
+
ve = Ht([
|
|
1161
|
+
l(B)
|
|
1162
|
+
], ve);
|
|
1163
|
+
const Lr = {
|
|
1164
1164
|
registration: {
|
|
1165
|
-
[
|
|
1166
|
-
class:
|
|
1165
|
+
[B]: {
|
|
1166
|
+
class: ve,
|
|
1167
1167
|
singleton: !1
|
|
1168
1168
|
}
|
|
1169
1169
|
},
|
|
1170
|
-
type:
|
|
1171
|
-
predicate: u(
|
|
1170
|
+
type: B,
|
|
1171
|
+
predicate: u(B),
|
|
1172
1172
|
factory: c.Factory.create(
|
|
1173
|
-
|
|
1173
|
+
B
|
|
1174
1174
|
)
|
|
1175
|
-
}, { URL: Dr } = h("DISPENSER-INFO_SERVICE"), { getAll:
|
|
1175
|
+
}, { URL: Dr } = h("DISPENSER-INFO_SERVICE"), { getAll: kr } = y.build({
|
|
1176
1176
|
basePath: `${Dr}/api/dispenser-info`
|
|
1177
|
-
}),
|
|
1177
|
+
}), Ir = g.createLogger({
|
|
1178
1178
|
name: "dispenser-info-service",
|
|
1179
1179
|
group: "Services"
|
|
1180
|
-
}),
|
|
1180
|
+
}), Rr = async () => (Ir.debug("sending GET for dispenser-info"), await kr({})), Zs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1181
1181
|
__proto__: null,
|
|
1182
|
-
getDispenserInfos:
|
|
1182
|
+
getDispenserInfos: Rr
|
|
1183
1183
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1184
|
-
var
|
|
1185
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
1184
|
+
var Ar = Object.getOwnPropertyDescriptor, Fr = (e, t, o, s) => {
|
|
1185
|
+
for (var r = s > 1 ? void 0 : s ? Ar(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
1186
1186
|
(a = e[n]) && (r = a(r) || r);
|
|
1187
1187
|
return r;
|
|
1188
1188
|
};
|
|
1189
|
-
const
|
|
1190
|
-
let
|
|
1189
|
+
const K = "enrollment-model";
|
|
1190
|
+
let Ue = class {
|
|
1191
1191
|
constructor(e, t, o) {
|
|
1192
1192
|
i(this, "id");
|
|
1193
1193
|
i(this, "logger");
|
|
@@ -1205,37 +1205,37 @@ let je = class {
|
|
|
1205
1205
|
this.logger.debug(`loading enrollment ${this.id}`);
|
|
1206
1206
|
}
|
|
1207
1207
|
};
|
|
1208
|
-
|
|
1209
|
-
l(
|
|
1210
|
-
],
|
|
1211
|
-
const
|
|
1208
|
+
Ue = Fr([
|
|
1209
|
+
l(K)
|
|
1210
|
+
], Ue);
|
|
1211
|
+
const xr = {
|
|
1212
1212
|
registration: {
|
|
1213
|
-
[
|
|
1214
|
-
class:
|
|
1213
|
+
[K]: {
|
|
1214
|
+
class: Ue,
|
|
1215
1215
|
singleton: !0
|
|
1216
1216
|
}
|
|
1217
1217
|
},
|
|
1218
|
-
type:
|
|
1219
|
-
predicate: u(
|
|
1220
|
-
factory: c.Singleton.create(
|
|
1221
|
-
}, { URL: Ur } = h("ENROLLMENT_SERVICE"), { getAll:
|
|
1218
|
+
type: K,
|
|
1219
|
+
predicate: u(K),
|
|
1220
|
+
factory: c.Singleton.create(K)
|
|
1221
|
+
}, { URL: Ur } = h("ENROLLMENT_SERVICE"), { getAll: jr } = y.build({
|
|
1222
1222
|
basePath: `${Ur}/api/enrollment`
|
|
1223
|
-
}),
|
|
1223
|
+
}), Wr = g.createLogger({
|
|
1224
1224
|
name: "enrollment-service",
|
|
1225
1225
|
group: "Services"
|
|
1226
|
-
}),
|
|
1226
|
+
}), Nr = async () => (Wr.debug("sending GET for enrollment"), await jr({})), ei = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1227
1227
|
__proto__: null,
|
|
1228
|
-
getEnrollments:
|
|
1229
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1228
|
+
getEnrollments: Nr
|
|
1229
|
+
}, Symbol.toStringTag, { value: "Module" })), ti = (e) => e.toLowerCase().includes("micros"), oi = (e) => !e.toLowerCase().includes("micros"), ri = (e) => (t) => {
|
|
1230
1230
|
const o = e == null ? void 0 : e.getHoldersByGroup(t);
|
|
1231
1231
|
return o ? o.map((s) => ({ id: s.id, name: s.ingredientName, path: s.path })) : null;
|
|
1232
|
-
},
|
|
1233
|
-
Oo(
|
|
1232
|
+
}, si = ["water", "carb", "ns", "nss"], ie = "dashboardKeyFactory", ke = [];
|
|
1233
|
+
Oo(ie, {
|
|
1234
1234
|
register: (e, t) => {
|
|
1235
|
-
|
|
1235
|
+
ke.includes(t) || ke.push(t);
|
|
1236
1236
|
},
|
|
1237
1237
|
execute: (e, t) => {
|
|
1238
|
-
const o =
|
|
1238
|
+
const o = ke.sort((s, r) => s.rank - r.rank);
|
|
1239
1239
|
for (const s of o) {
|
|
1240
1240
|
const r = s.factory(t);
|
|
1241
1241
|
if (r)
|
|
@@ -1243,39 +1243,39 @@ Oo(se, {
|
|
|
1243
1243
|
}
|
|
1244
1244
|
}
|
|
1245
1245
|
});
|
|
1246
|
-
const
|
|
1247
|
-
Oe[
|
|
1248
|
-
|
|
1246
|
+
const zr = (e) => {
|
|
1247
|
+
Oe[ie].register(
|
|
1248
|
+
ie,
|
|
1249
1249
|
e
|
|
1250
1250
|
);
|
|
1251
|
-
},
|
|
1252
|
-
|
|
1251
|
+
}, Vr = (e) => Oe[ie].execute(
|
|
1252
|
+
ie,
|
|
1253
1253
|
e
|
|
1254
1254
|
);
|
|
1255
|
-
Oe.registerDashboardKeyFactory =
|
|
1256
|
-
Oe.executeDashboardKeyFactory =
|
|
1257
|
-
const
|
|
1258
|
-
const t = Math.floor(e /
|
|
1255
|
+
Oe.registerDashboardKeyFactory = zr;
|
|
1256
|
+
Oe.executeDashboardKeyFactory = Vr;
|
|
1257
|
+
const je = 3600, Bt = 60, ii = (e) => {
|
|
1258
|
+
const t = Math.floor(e / je), o = Math.floor(e % je / Bt);
|
|
1259
1259
|
return { hours: t, minutes: o };
|
|
1260
|
-
},
|
|
1261
|
-
const o = (/* @__PURE__ */ new Date()).valueOf() - e.valueOf(), s = Math.floor(o / (1e3 * 60)), r = Math.floor(s / 60), n = Math.floor(r / 24), a = s % 60,
|
|
1262
|
-
let
|
|
1263
|
-
return n > 0 && (
|
|
1260
|
+
}, ni = (e, t) => e * je + t * Bt, Hr = (e) => {
|
|
1261
|
+
const o = (/* @__PURE__ */ new Date()).valueOf() - e.valueOf(), s = Math.floor(o / (1e3 * 60)), r = Math.floor(s / 60), n = Math.floor(r / 24), a = s % 60, de = r % 24;
|
|
1262
|
+
let ce = "";
|
|
1263
|
+
return n > 0 && (ce += `${n} day${n > 1 ? "s" : ""} `), de > 0 && (ce += `${de} hour${de > 1 ? "s" : ""} `), (a > 0 || n === 0 && de === 0) && (ce += `${a} minute${a > 1 ? "s" : ""} `), ce;
|
|
1264
1264
|
};
|
|
1265
|
-
var
|
|
1266
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
1265
|
+
var Br = Object.defineProperty, Kr = Object.getOwnPropertyDescriptor, Ce = (e, t, o, s) => {
|
|
1266
|
+
for (var r = s > 1 ? void 0 : s ? Kr(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
1267
1267
|
(a = e[n]) && (r = (s ? a(t, o, r) : a(r)) || r);
|
|
1268
|
-
return s && r &&
|
|
1268
|
+
return s && r && Br(t, o, r), r;
|
|
1269
1269
|
};
|
|
1270
|
-
const
|
|
1271
|
-
let
|
|
1270
|
+
const Y = "ingredient-summary-model";
|
|
1271
|
+
let L = class {
|
|
1272
1272
|
constructor(e, t, o) {
|
|
1273
1273
|
i(this, "id");
|
|
1274
1274
|
i(this, "assemblyModel");
|
|
1275
1275
|
i(this, "dashboardOperationModel");
|
|
1276
1276
|
i(this, "appModel");
|
|
1277
1277
|
i(this, "logger");
|
|
1278
|
-
this.id = e, this.logger = o.logger, this.dashboardOperationModel =
|
|
1278
|
+
this.id = e, this.logger = o.logger, this.dashboardOperationModel = et.factory({});
|
|
1279
1279
|
}
|
|
1280
1280
|
get highPriorityHolders() {
|
|
1281
1281
|
return this.assemblyModel.allHolders.filter(
|
|
@@ -1283,7 +1283,7 @@ let C = class {
|
|
|
1283
1283
|
);
|
|
1284
1284
|
}
|
|
1285
1285
|
get actionRequiredHolders() {
|
|
1286
|
-
const e = this.appModel.currentRole, t =
|
|
1286
|
+
const e = this.appModel.currentRole, t = Dt(e);
|
|
1287
1287
|
return this.assemblyModel.allHolders.filter((o) => {
|
|
1288
1288
|
const s = Be(
|
|
1289
1289
|
o,
|
|
@@ -1309,53 +1309,53 @@ let C = class {
|
|
|
1309
1309
|
this.logger.debug(`loading ingredient-summary ${this.id}`);
|
|
1310
1310
|
}
|
|
1311
1311
|
};
|
|
1312
|
-
|
|
1312
|
+
Ce([
|
|
1313
1313
|
p({ modelType: Se.type })
|
|
1314
|
-
],
|
|
1315
|
-
|
|
1314
|
+
], L.prototype, "assemblyModel", 2);
|
|
1315
|
+
Ce([
|
|
1316
|
+
p({ modelType: et.type })
|
|
1317
|
+
], L.prototype, "dashboardOperationModel", 2);
|
|
1318
|
+
Ce([
|
|
1316
1319
|
p({ modelType: Ze.type })
|
|
1317
|
-
],
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
],
|
|
1321
|
-
|
|
1322
|
-
l(K)
|
|
1323
|
-
], C);
|
|
1324
|
-
const Gr = {
|
|
1320
|
+
], L.prototype, "appModel", 2);
|
|
1321
|
+
L = Ce([
|
|
1322
|
+
l(Y)
|
|
1323
|
+
], L);
|
|
1324
|
+
const Yr = {
|
|
1325
1325
|
registration: {
|
|
1326
|
-
[
|
|
1327
|
-
class:
|
|
1326
|
+
[Y]: {
|
|
1327
|
+
class: L,
|
|
1328
1328
|
singleton: !1
|
|
1329
1329
|
}
|
|
1330
1330
|
},
|
|
1331
|
-
type:
|
|
1332
|
-
predicate: u(
|
|
1331
|
+
type: Y,
|
|
1332
|
+
predicate: u(Y),
|
|
1333
1333
|
factory: c.Factory.create(
|
|
1334
|
-
|
|
1334
|
+
Y
|
|
1335
1335
|
)
|
|
1336
|
-
}, { URL:
|
|
1337
|
-
basePath: `${
|
|
1338
|
-
}),
|
|
1336
|
+
}, { URL: tt } = h("LOCKOUT_SERVICE"), { postModel: Kt } = y.build({
|
|
1337
|
+
basePath: `${tt}/api/app/kosdev.ddk/lockout`
|
|
1338
|
+
}), Yt = g.createLogger({ name: "lockout-service", group: "Services" }), Gr = async () => (Yt.info("lock"), await Kt({
|
|
1339
1339
|
model: {},
|
|
1340
|
-
urlOverride: `${
|
|
1341
|
-
})),
|
|
1342
|
-
|
|
1343
|
-
const t = await
|
|
1340
|
+
urlOverride: `${tt}/api/app/kosdev.ddk/lockout/lockNow`
|
|
1341
|
+
})), Gt = async (e) => {
|
|
1342
|
+
Yt.info("unlock");
|
|
1343
|
+
const t = await Kt({
|
|
1344
1344
|
model: {},
|
|
1345
|
-
urlOverride: `${
|
|
1345
|
+
urlOverride: `${tt}/api/app/kosdev.ddk/lockout/unlock/${e}`
|
|
1346
1346
|
});
|
|
1347
1347
|
return t == null ? void 0 : t.data;
|
|
1348
|
-
},
|
|
1348
|
+
}, ai = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1349
1349
|
__proto__: null,
|
|
1350
|
-
lock:
|
|
1351
|
-
unlock:
|
|
1350
|
+
lock: Gr,
|
|
1351
|
+
unlock: Gt
|
|
1352
1352
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1353
|
-
var
|
|
1354
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
1353
|
+
var qr = Object.defineProperty, Qr = Object.getOwnPropertyDescriptor, F = (e, t, o, s) => {
|
|
1354
|
+
for (var r = s > 1 ? void 0 : s ? Qr(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
1355
1355
|
(a = e[n]) && (r = (s ? a(t, o, r) : a(r)) || r);
|
|
1356
|
-
return s && r &&
|
|
1356
|
+
return s && r && qr(t, o, r), r;
|
|
1357
1357
|
};
|
|
1358
|
-
const
|
|
1358
|
+
const qt = "lockout-model", Xr = [
|
|
1359
1359
|
{ day: "monday", lock: "dayWiseLockConfigMap.Mon.enabled", open: "dayWiseLockConfigMap.Mon.unlockTime", close: "dayWiseLockConfigMap.Mon.lockTime" },
|
|
1360
1360
|
{ day: "tuesday", lock: "dayWiseLockConfigMap.Tue.enabled", open: "dayWiseLockConfigMap.Tue.unlockTime", close: "dayWiseLockConfigMap.Tue.lockTime" },
|
|
1361
1361
|
{ day: "wednesday", lock: "dayWiseLockConfigMap.Wed.enabled", open: "dayWiseLockConfigMap.Wed.unlockTime", close: "dayWiseLockConfigMap.Wed.lockTime" },
|
|
@@ -1364,7 +1364,7 @@ const Gt = "lockout-model", Jr = [
|
|
|
1364
1364
|
{ day: "saturday", lock: "dayWiseLockConfigMap.Sat.enabled", open: "dayWiseLockConfigMap.Sat.unlockTime", close: "dayWiseLockConfigMap.Sat.lockTime" },
|
|
1365
1365
|
{ day: "sunday", lock: "dayWiseLockConfigMap.Sun.enabled", open: "dayWiseLockConfigMap.Sun.unlockTime", close: "dayWiseLockConfigMap.Sun.lockTime" }
|
|
1366
1366
|
];
|
|
1367
|
-
let
|
|
1367
|
+
let P = class {
|
|
1368
1368
|
constructor(e, t, o) {
|
|
1369
1369
|
i(this, "id");
|
|
1370
1370
|
i(this, "logger");
|
|
@@ -1410,7 +1410,7 @@ let M = class {
|
|
|
1410
1410
|
return t || o;
|
|
1411
1411
|
}
|
|
1412
1412
|
get schedule() {
|
|
1413
|
-
return
|
|
1413
|
+
return Xr;
|
|
1414
1414
|
}
|
|
1415
1415
|
getProp(e) {
|
|
1416
1416
|
return this.saveMap.get(e);
|
|
@@ -1427,7 +1427,7 @@ let M = class {
|
|
|
1427
1427
|
this.nextLockSkipped.updateProperty("0");
|
|
1428
1428
|
}
|
|
1429
1429
|
async unlock(e) {
|
|
1430
|
-
return await
|
|
1430
|
+
return await Gt(e);
|
|
1431
1431
|
}
|
|
1432
1432
|
async save() {
|
|
1433
1433
|
return this.saveMap.forEach((e, t) => {
|
|
@@ -1449,51 +1449,51 @@ let M = class {
|
|
|
1449
1449
|
this.logger.debug(`loading lockout ${this.id}`);
|
|
1450
1450
|
}
|
|
1451
1451
|
};
|
|
1452
|
-
|
|
1452
|
+
F([
|
|
1453
1453
|
d({
|
|
1454
1454
|
path: "app:kosdev.ddk:service:cuiLockout",
|
|
1455
1455
|
attribute: "pin"
|
|
1456
1456
|
})
|
|
1457
|
-
],
|
|
1458
|
-
|
|
1457
|
+
], P.prototype, "pin", 2);
|
|
1458
|
+
F([
|
|
1459
1459
|
d({
|
|
1460
1460
|
path: "app:kosdev.ddk:service:cuiLockout",
|
|
1461
1461
|
attribute: "nextLockSkipped"
|
|
1462
1462
|
})
|
|
1463
|
-
],
|
|
1464
|
-
|
|
1463
|
+
], P.prototype, "nextLockSkipped", 2);
|
|
1464
|
+
F([
|
|
1465
1465
|
d({
|
|
1466
1466
|
path: "app:kosdev.ddk:service:cuiLockout",
|
|
1467
1467
|
attribute: "nextLockTime"
|
|
1468
1468
|
})
|
|
1469
|
-
],
|
|
1470
|
-
|
|
1469
|
+
], P.prototype, "nextLockTime", 2);
|
|
1470
|
+
F([
|
|
1471
1471
|
d({
|
|
1472
1472
|
path: "app:kosdev.ddk:service:cuiLockout",
|
|
1473
1473
|
attribute: "nextUnLockTime"
|
|
1474
1474
|
})
|
|
1475
|
-
],
|
|
1476
|
-
|
|
1475
|
+
], P.prototype, "nextUnLockTime", 2);
|
|
1476
|
+
F([
|
|
1477
1477
|
So({ path: "app:kosdev.ddk:service:cuiLockout" })
|
|
1478
|
-
],
|
|
1479
|
-
|
|
1480
|
-
l(
|
|
1481
|
-
],
|
|
1482
|
-
const
|
|
1483
|
-
class:
|
|
1484
|
-
type:
|
|
1485
|
-
}),
|
|
1478
|
+
], P.prototype, "cuiLockout", 2);
|
|
1479
|
+
P = F([
|
|
1480
|
+
l(qt)
|
|
1481
|
+
], P);
|
|
1482
|
+
const li = new He({
|
|
1483
|
+
class: P,
|
|
1484
|
+
type: qt
|
|
1485
|
+
}), Jr = async (e, t) => await Me.bulkResolveTroubles(
|
|
1486
1486
|
e,
|
|
1487
1487
|
void 0,
|
|
1488
1488
|
t
|
|
1489
1489
|
);
|
|
1490
|
-
var
|
|
1491
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
1490
|
+
var Zr = Object.defineProperty, es = Object.getOwnPropertyDescriptor, Le = (e, t, o, s) => {
|
|
1491
|
+
for (var r = s > 1 ? void 0 : s ? es(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
1492
1492
|
(a = e[n]) && (r = (s ? a(t, o, r) : a(r)) || r);
|
|
1493
|
-
return s && r &&
|
|
1493
|
+
return s && r && Zr(t, o, r), r;
|
|
1494
1494
|
};
|
|
1495
|
-
const
|
|
1496
|
-
let
|
|
1495
|
+
const G = "macro-assignment-model", gt = "PurgeTrouble", ts = "PrimeTrouble";
|
|
1496
|
+
let D = class {
|
|
1497
1497
|
constructor(e, t, o) {
|
|
1498
1498
|
i(this, "id");
|
|
1499
1499
|
i(this, "logger");
|
|
@@ -1503,7 +1503,7 @@ let k = class {
|
|
|
1503
1503
|
i(this, "futureHandler");
|
|
1504
1504
|
i(this, "holders");
|
|
1505
1505
|
i(this, "ingredients");
|
|
1506
|
-
this.id = e, this.futureHandler = new
|
|
1506
|
+
this.id = e, this.futureHandler = new Ge(), this.logger = o.logger;
|
|
1507
1507
|
}
|
|
1508
1508
|
/**
|
|
1509
1509
|
* shortcut to the current running future
|
|
@@ -1533,13 +1533,13 @@ let k = class {
|
|
|
1533
1533
|
*/
|
|
1534
1534
|
get holderPurgeTroubles() {
|
|
1535
1535
|
return this.macroHolders.reduce((t, o) => {
|
|
1536
|
-
const s = o.troublesByType[
|
|
1536
|
+
const s = o.troublesByType[gt] || [];
|
|
1537
1537
|
return t = [...t, ...s], t;
|
|
1538
1538
|
}, []);
|
|
1539
1539
|
}
|
|
1540
1540
|
get holderPrimeTroubles() {
|
|
1541
1541
|
return this.macroHolders.reduce((t, o) => {
|
|
1542
|
-
const s = o.troublesByType[
|
|
1542
|
+
const s = o.troublesByType[ts] || [];
|
|
1543
1543
|
return t = [...t, ...s], t;
|
|
1544
1544
|
}, []);
|
|
1545
1545
|
}
|
|
@@ -1575,41 +1575,41 @@ let k = class {
|
|
|
1575
1575
|
async resolveAll(e, t) {
|
|
1576
1576
|
if (!t)
|
|
1577
1577
|
throw new Error("No tracker provided");
|
|
1578
|
-
const s = (e ===
|
|
1579
|
-
return await
|
|
1578
|
+
const s = (e === gt ? this.holderPurgeTroubles : this.holderPrimeTroubles).map((n) => n.rawId);
|
|
1579
|
+
return await Jr(s, t);
|
|
1580
1580
|
}
|
|
1581
1581
|
};
|
|
1582
|
-
|
|
1583
|
-
p({ modelType:
|
|
1584
|
-
],
|
|
1585
|
-
|
|
1582
|
+
Le([
|
|
1583
|
+
p({ modelType: Lo.type })
|
|
1584
|
+
], D.prototype, "holders", 2);
|
|
1585
|
+
Le([
|
|
1586
1586
|
p({ modelType: Do.type })
|
|
1587
|
-
],
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
],
|
|
1591
|
-
|
|
1592
|
-
l(
|
|
1593
|
-
],
|
|
1594
|
-
const
|
|
1587
|
+
], D.prototype, "ingredients", 2);
|
|
1588
|
+
Le([
|
|
1589
|
+
M()
|
|
1590
|
+
], D.prototype, "resolveAll", 1);
|
|
1591
|
+
D = Le([
|
|
1592
|
+
l(G)
|
|
1593
|
+
], D);
|
|
1594
|
+
const os = {
|
|
1595
1595
|
registration: {
|
|
1596
|
-
[
|
|
1597
|
-
class:
|
|
1596
|
+
[G]: {
|
|
1597
|
+
class: D,
|
|
1598
1598
|
singleton: !0
|
|
1599
1599
|
}
|
|
1600
1600
|
},
|
|
1601
|
-
type:
|
|
1602
|
-
predicate: u(
|
|
1601
|
+
type: G,
|
|
1602
|
+
predicate: u(G),
|
|
1603
1603
|
factory: c.Singleton.create(
|
|
1604
|
-
|
|
1604
|
+
G
|
|
1605
1605
|
)
|
|
1606
1606
|
};
|
|
1607
|
-
var
|
|
1608
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
1607
|
+
var rs = Object.getOwnPropertyDescriptor, ss = (e, t, o, s) => {
|
|
1608
|
+
for (var r = s > 1 ? void 0 : s ? rs(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
1609
1609
|
(a = e[n]) && (r = a(r) || r);
|
|
1610
1610
|
return r;
|
|
1611
1611
|
};
|
|
1612
|
-
const
|
|
1612
|
+
const q = "network-test-model";
|
|
1613
1613
|
let We = class {
|
|
1614
1614
|
constructor(e, t, o) {
|
|
1615
1615
|
i(this, "id");
|
|
@@ -1634,58 +1634,58 @@ let We = class {
|
|
|
1634
1634
|
this.logger.debug(`loading network-test ${this.id}`);
|
|
1635
1635
|
}
|
|
1636
1636
|
};
|
|
1637
|
-
We =
|
|
1638
|
-
l(
|
|
1637
|
+
We = ss([
|
|
1638
|
+
l(q)
|
|
1639
1639
|
], We);
|
|
1640
|
-
const
|
|
1640
|
+
const Qt = {
|
|
1641
1641
|
registration: {
|
|
1642
|
-
[
|
|
1642
|
+
[q]: {
|
|
1643
1643
|
class: We,
|
|
1644
1644
|
singleton: !1
|
|
1645
1645
|
}
|
|
1646
1646
|
},
|
|
1647
|
-
type:
|
|
1648
|
-
predicate: u(
|
|
1649
|
-
factory: c.Factory.create(
|
|
1650
|
-
}, { URL:
|
|
1651
|
-
basePath: `${
|
|
1652
|
-
}),
|
|
1647
|
+
type: q,
|
|
1648
|
+
predicate: u(q),
|
|
1649
|
+
factory: c.Factory.create(q)
|
|
1650
|
+
}, { URL: De } = h("NETWORK-TEST_SERVICE"), { getAll: is, getOne: Xt } = y.build({
|
|
1651
|
+
basePath: `${De}/api/app/ncui/network/tests`
|
|
1652
|
+
}), ns = g.createLogger({
|
|
1653
1653
|
name: "network-test-service",
|
|
1654
1654
|
group: "Services"
|
|
1655
|
-
}),
|
|
1656
|
-
|
|
1657
|
-
const e = await
|
|
1658
|
-
urlOverride: `${
|
|
1655
|
+
}), Jt = async () => {
|
|
1656
|
+
ns.debug("sending GET for network-test");
|
|
1657
|
+
const e = await is({
|
|
1658
|
+
urlOverride: `${De}/api/app/kosdev.ddk/network/tests`
|
|
1659
1659
|
});
|
|
1660
1660
|
return e == null ? void 0 : e.data;
|
|
1661
|
-
},
|
|
1662
|
-
const e = await
|
|
1663
|
-
urlOverride: `${
|
|
1661
|
+
}, Zt = async () => {
|
|
1662
|
+
const e = await Xt({
|
|
1663
|
+
urlOverride: `${De}/api/app/kosdev.ddk/network/reports`
|
|
1664
1664
|
});
|
|
1665
1665
|
return e == null ? void 0 : e.data;
|
|
1666
|
-
},
|
|
1667
|
-
urlOverride: `${
|
|
1666
|
+
}, eo = async (e, t) => await Xt({
|
|
1667
|
+
urlOverride: `${De}/api/app/kosdev.ddk/network/tests/run/group/${e}`,
|
|
1668
1668
|
tracker: t
|
|
1669
|
-
}),
|
|
1669
|
+
}), di = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1670
1670
|
__proto__: null,
|
|
1671
|
-
getNetworkTests:
|
|
1672
|
-
getTestsReports:
|
|
1673
|
-
performGroupTest:
|
|
1671
|
+
getNetworkTests: Jt,
|
|
1672
|
+
getTestsReports: Zt,
|
|
1673
|
+
performGroupTest: eo
|
|
1674
1674
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1675
|
-
var
|
|
1676
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
1675
|
+
var as = Object.defineProperty, ls = Object.getOwnPropertyDescriptor, ot = (e, t, o, s) => {
|
|
1676
|
+
for (var r = s > 1 ? void 0 : s ? ls(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
1677
1677
|
(a = e[n]) && (r = (s ? a(t, o, r) : a(r)) || r);
|
|
1678
|
-
return s && r &&
|
|
1678
|
+
return s && r && as(t, o, r), r;
|
|
1679
1679
|
};
|
|
1680
|
-
const
|
|
1681
|
-
let
|
|
1680
|
+
const Q = "network-test-container-model";
|
|
1681
|
+
let ne = class {
|
|
1682
1682
|
constructor(e, t, o) {
|
|
1683
1683
|
i(this, "id");
|
|
1684
1684
|
i(this, "logger");
|
|
1685
1685
|
i(this, "lastTested");
|
|
1686
1686
|
i(this, "futureHandler");
|
|
1687
1687
|
i(this, "models");
|
|
1688
|
-
this.id = e, this.logger = o.logger, this.futureHandler = new
|
|
1688
|
+
this.id = e, this.logger = o.logger, this.futureHandler = new Ge(this), this.models = new Ve({
|
|
1689
1689
|
parentId: e,
|
|
1690
1690
|
indexMap: {
|
|
1691
1691
|
group: "group"
|
|
@@ -1714,13 +1714,13 @@ let ie = class {
|
|
|
1714
1714
|
const t = this.models.getIndexByKey("group", e).map((s) => s.timestamp && new Date(s.timestamp)), o = Math.max(
|
|
1715
1715
|
...t.map((s) => s ? s.getTime() : 0)
|
|
1716
1716
|
);
|
|
1717
|
-
return o ?
|
|
1717
|
+
return o ? Hr(new Date(o)) : "";
|
|
1718
1718
|
}
|
|
1719
1719
|
async load() {
|
|
1720
1720
|
this.logger.debug(`loading network-test-container container ${this.id}`);
|
|
1721
|
-
const e = await
|
|
1721
|
+
const e = await Jt(), t = await Zt();
|
|
1722
1722
|
e && e.forEach((o) => {
|
|
1723
|
-
const s =
|
|
1723
|
+
const s = Qt.factory(o.id)(o);
|
|
1724
1724
|
this.addModel(s);
|
|
1725
1725
|
}), e && t && e.forEach((o) => {
|
|
1726
1726
|
const s = t == null ? void 0 : t[o.group], r = s == null ? void 0 : s[o.id], n = this.getModel(o.id);
|
|
@@ -1741,7 +1741,7 @@ let ie = class {
|
|
|
1741
1741
|
async performTest(e, t) {
|
|
1742
1742
|
if (!t)
|
|
1743
1743
|
throw new Error("No tracker provided");
|
|
1744
|
-
const o = await
|
|
1744
|
+
const o = await eo(e, t);
|
|
1745
1745
|
return o == null ? void 0 : o.data;
|
|
1746
1746
|
}
|
|
1747
1747
|
onFutureUpdate(e) {
|
|
@@ -1767,34 +1767,34 @@ let ie = class {
|
|
|
1767
1767
|
});
|
|
1768
1768
|
}
|
|
1769
1769
|
};
|
|
1770
|
-
|
|
1770
|
+
ot([
|
|
1771
1771
|
$e
|
|
1772
|
-
],
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
],
|
|
1776
|
-
|
|
1777
|
-
l(
|
|
1778
|
-
],
|
|
1779
|
-
const
|
|
1772
|
+
], ne.prototype, "models", 2);
|
|
1773
|
+
ot([
|
|
1774
|
+
M()
|
|
1775
|
+
], ne.prototype, "performTest", 1);
|
|
1776
|
+
ne = ot([
|
|
1777
|
+
l(Q)
|
|
1778
|
+
], ne);
|
|
1779
|
+
const ds = {
|
|
1780
1780
|
registration: {
|
|
1781
|
-
[
|
|
1782
|
-
class:
|
|
1781
|
+
[Q]: {
|
|
1782
|
+
class: ne,
|
|
1783
1783
|
singleton: !0
|
|
1784
1784
|
},
|
|
1785
|
-
...
|
|
1785
|
+
...Qt.registration
|
|
1786
1786
|
},
|
|
1787
|
-
type:
|
|
1788
|
-
predicate: u(
|
|
1789
|
-
factory: c.Singleton.create(
|
|
1787
|
+
type: Q,
|
|
1788
|
+
predicate: u(Q),
|
|
1789
|
+
factory: c.Singleton.create(Q)
|
|
1790
1790
|
};
|
|
1791
|
-
var
|
|
1792
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
1791
|
+
var cs = Object.defineProperty, us = Object.getOwnPropertyDescriptor, rt = (e, t, o, s) => {
|
|
1792
|
+
for (var r = s > 1 ? void 0 : s ? us(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
1793
1793
|
(a = e[n]) && (r = (s ? a(t, o, r) : a(r)) || r);
|
|
1794
|
-
return s && r &&
|
|
1794
|
+
return s && r && cs(t, o, r), r;
|
|
1795
1795
|
};
|
|
1796
|
-
const
|
|
1797
|
-
let
|
|
1796
|
+
const X = "nutritive-sweetener-model", ps = ht("statePath");
|
|
1797
|
+
let ae = class {
|
|
1798
1798
|
constructor(e, t) {
|
|
1799
1799
|
i(this, "id");
|
|
1800
1800
|
i(this, "assemblyModel");
|
|
@@ -1817,36 +1817,36 @@ let ne = class {
|
|
|
1817
1817
|
return this.pump;
|
|
1818
1818
|
}
|
|
1819
1819
|
};
|
|
1820
|
-
|
|
1820
|
+
rt([
|
|
1821
1821
|
p({ modelType: Se.type })
|
|
1822
|
-
],
|
|
1823
|
-
|
|
1822
|
+
], ae.prototype, "assemblyModel", 2);
|
|
1823
|
+
rt([
|
|
1824
1824
|
wo({
|
|
1825
|
-
path:
|
|
1825
|
+
path: ps
|
|
1826
1826
|
})
|
|
1827
|
-
],
|
|
1828
|
-
|
|
1829
|
-
l(
|
|
1830
|
-
|
|
1831
|
-
],
|
|
1832
|
-
const
|
|
1827
|
+
], ae.prototype, "pumpState", 2);
|
|
1828
|
+
ae = rt([
|
|
1829
|
+
l(X),
|
|
1830
|
+
Ke()
|
|
1831
|
+
], ae);
|
|
1832
|
+
const gs = {
|
|
1833
1833
|
registration: {
|
|
1834
|
-
[
|
|
1835
|
-
class:
|
|
1834
|
+
[X]: {
|
|
1835
|
+
class: ae,
|
|
1836
1836
|
singleton: !1
|
|
1837
1837
|
}
|
|
1838
1838
|
},
|
|
1839
|
-
type:
|
|
1840
|
-
predicate: u(
|
|
1841
|
-
factory: c.Factory.create(
|
|
1839
|
+
type: X,
|
|
1840
|
+
predicate: u(X),
|
|
1841
|
+
factory: c.Factory.create(X)
|
|
1842
1842
|
};
|
|
1843
|
-
var
|
|
1844
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
1843
|
+
var hs = Object.defineProperty, ys = Object.getOwnPropertyDescriptor, to = (e, t, o, s) => {
|
|
1844
|
+
for (var r = s > 1 ? void 0 : s ? ys(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
1845
1845
|
(a = e[n]) && (r = (s ? a(t, o, r) : a(r)) || r);
|
|
1846
|
-
return s && r &&
|
|
1846
|
+
return s && r && hs(t, o, r), r;
|
|
1847
1847
|
};
|
|
1848
|
-
const
|
|
1849
|
-
let
|
|
1848
|
+
const J = "plain-water-model";
|
|
1849
|
+
let me = class {
|
|
1850
1850
|
constructor(e, t, o) {
|
|
1851
1851
|
i(this, "id");
|
|
1852
1852
|
i(this, "assemblyModel");
|
|
@@ -1859,7 +1859,7 @@ let ve = class {
|
|
|
1859
1859
|
getPump() {
|
|
1860
1860
|
var s, r;
|
|
1861
1861
|
const e = this.getHolder(), t = (r = (s = e == null ? void 0 : e.pumps) == null ? void 0 : s.data) == null ? void 0 : r[0];
|
|
1862
|
-
return Be(t,
|
|
1862
|
+
return Be(t, mt.type);
|
|
1863
1863
|
}
|
|
1864
1864
|
// -------------------LIFECYCLE----------------------------
|
|
1865
1865
|
async init() {
|
|
@@ -1869,37 +1869,37 @@ let ve = class {
|
|
|
1869
1869
|
this.logger.debug(`loading plain-water ${this.id}`);
|
|
1870
1870
|
}
|
|
1871
1871
|
};
|
|
1872
|
-
|
|
1872
|
+
to([
|
|
1873
1873
|
p({ modelType: Se.type })
|
|
1874
|
-
],
|
|
1875
|
-
|
|
1876
|
-
l(
|
|
1877
|
-
],
|
|
1878
|
-
const
|
|
1874
|
+
], me.prototype, "assemblyModel", 2);
|
|
1875
|
+
me = to([
|
|
1876
|
+
l(J)
|
|
1877
|
+
], me);
|
|
1878
|
+
const fs = {
|
|
1879
1879
|
registration: {
|
|
1880
|
-
[
|
|
1881
|
-
class:
|
|
1880
|
+
[J]: {
|
|
1881
|
+
class: me,
|
|
1882
1882
|
singleton: !1
|
|
1883
1883
|
}
|
|
1884
1884
|
},
|
|
1885
|
-
type:
|
|
1886
|
-
predicate: u(
|
|
1887
|
-
factory: c.Factory.create(
|
|
1888
|
-
}, { URL:
|
|
1889
|
-
basePath: `${
|
|
1890
|
-
}),
|
|
1891
|
-
urlOverride: `${
|
|
1885
|
+
type: J,
|
|
1886
|
+
predicate: u(J),
|
|
1887
|
+
factory: c.Factory.create(J)
|
|
1888
|
+
}, { URL: oo } = h("REBOOT_SERVICE"), { postModel: vs } = y.build({
|
|
1889
|
+
basePath: `${oo}/api/reboot`
|
|
1890
|
+
}), ms = g.createLogger({ name: "reboot-service", group: "Services" }), ro = async () => (ms.debug("sending POST call for Reboot Dispenser"), await vs({
|
|
1891
|
+
urlOverride: `${oo}/api/app/kosdev.ddk/ncui/reboot`,
|
|
1892
1892
|
model: {}
|
|
1893
|
-
})),
|
|
1893
|
+
})), ci = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1894
1894
|
__proto__: null,
|
|
1895
|
-
rebootDispenser:
|
|
1895
|
+
rebootDispenser: ro
|
|
1896
1896
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1897
|
-
var
|
|
1898
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
1897
|
+
var bs = Object.getOwnPropertyDescriptor, _s = (e, t, o, s) => {
|
|
1898
|
+
for (var r = s > 1 ? void 0 : s ? bs(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
1899
1899
|
(a = e[n]) && (r = a(r) || r);
|
|
1900
1900
|
return r;
|
|
1901
1901
|
};
|
|
1902
|
-
const
|
|
1902
|
+
const Z = "reboot-model";
|
|
1903
1903
|
let Ne = class {
|
|
1904
1904
|
constructor(e, t, o) {
|
|
1905
1905
|
i(this, "id");
|
|
@@ -1907,7 +1907,7 @@ let Ne = class {
|
|
|
1907
1907
|
this.id = e, this.logger = o.logger;
|
|
1908
1908
|
}
|
|
1909
1909
|
async completeReboot() {
|
|
1910
|
-
await
|
|
1910
|
+
await ro();
|
|
1911
1911
|
}
|
|
1912
1912
|
updateModel() {
|
|
1913
1913
|
}
|
|
@@ -1919,26 +1919,26 @@ let Ne = class {
|
|
|
1919
1919
|
this.logger.debug(`loading reboot ${this.id}`);
|
|
1920
1920
|
}
|
|
1921
1921
|
};
|
|
1922
|
-
Ne =
|
|
1923
|
-
l(
|
|
1922
|
+
Ne = _s([
|
|
1923
|
+
l(Z)
|
|
1924
1924
|
], Ne);
|
|
1925
|
-
const
|
|
1925
|
+
const Ts = {
|
|
1926
1926
|
registration: {
|
|
1927
|
-
[
|
|
1927
|
+
[Z]: {
|
|
1928
1928
|
class: Ne,
|
|
1929
1929
|
singleton: !1
|
|
1930
1930
|
}
|
|
1931
1931
|
},
|
|
1932
|
-
type:
|
|
1933
|
-
predicate: u(
|
|
1934
|
-
factory: c.Factory.create(
|
|
1932
|
+
type: Z,
|
|
1933
|
+
predicate: u(Z),
|
|
1934
|
+
factory: c.Factory.create(Z)
|
|
1935
1935
|
};
|
|
1936
|
-
var
|
|
1936
|
+
var $s = Object.defineProperty, Ps = Object.getOwnPropertyDescriptor, m = (e, t, o, s) => {
|
|
1937
1937
|
for (var r = s > 1 ? void 0 : s ? Ps(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
1938
1938
|
(a = e[n]) && (r = (s ? a(t, o, r) : a(r)) || r);
|
|
1939
|
-
return s && r &&
|
|
1939
|
+
return s && r && $s(t, o, r), r;
|
|
1940
1940
|
};
|
|
1941
|
-
const
|
|
1941
|
+
const ee = "settings-model";
|
|
1942
1942
|
let f = class {
|
|
1943
1943
|
constructor(e, t, o) {
|
|
1944
1944
|
i(this, "id");
|
|
@@ -2050,41 +2050,41 @@ m([
|
|
|
2050
2050
|
})
|
|
2051
2051
|
], f.prototype, "horizontalMode", 2);
|
|
2052
2052
|
m([
|
|
2053
|
-
|
|
2053
|
+
Pe({
|
|
2054
2054
|
dependencies: (e) => [e.horizontalMode.value]
|
|
2055
2055
|
})
|
|
2056
2056
|
], f.prototype, "handleUpdateDisplayMode", 1);
|
|
2057
2057
|
f = m([
|
|
2058
|
-
l(
|
|
2058
|
+
l(ee)
|
|
2059
2059
|
], f);
|
|
2060
|
-
const
|
|
2060
|
+
const Ms = {
|
|
2061
2061
|
registration: {
|
|
2062
|
-
[
|
|
2062
|
+
[ee]: {
|
|
2063
2063
|
class: f,
|
|
2064
2064
|
singleton: !0
|
|
2065
2065
|
}
|
|
2066
2066
|
},
|
|
2067
|
-
type:
|
|
2068
|
-
predicate: u(
|
|
2069
|
-
factory: c.Singleton.create(
|
|
2070
|
-
}, { URL:
|
|
2071
|
-
basePath: `${
|
|
2072
|
-
}),
|
|
2067
|
+
type: ee,
|
|
2068
|
+
predicate: u(ee),
|
|
2069
|
+
factory: c.Singleton.create(ee)
|
|
2070
|
+
}, { URL: so } = h("SETTINGS_SERVICE"), { getAll: io } = y.build({
|
|
2071
|
+
basePath: `${so}/api/settings`
|
|
2072
|
+
}), Os = g.createLogger({
|
|
2073
2073
|
name: "settings-service",
|
|
2074
2074
|
group: "Services"
|
|
2075
|
-
}),
|
|
2076
|
-
urlOverride: `${
|
|
2077
|
-
}),
|
|
2075
|
+
}), Ss = async () => (Os.debug("sending GET for settings"), await io({})), ws = async () => await io({
|
|
2076
|
+
urlOverride: `${so}api/app/kosdev.ddk/ncui/languages`
|
|
2077
|
+
}), ui = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2078
2078
|
__proto__: null,
|
|
2079
|
-
getNcuiLanguage:
|
|
2080
|
-
getSettings:
|
|
2079
|
+
getNcuiLanguage: ws,
|
|
2080
|
+
getSettings: Ss
|
|
2081
2081
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2082
|
-
var
|
|
2083
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
2082
|
+
var Es = Object.getOwnPropertyDescriptor, Cs = (e, t, o, s) => {
|
|
2083
|
+
for (var r = s > 1 ? void 0 : s ? Es(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
2084
2084
|
(a = e[n]) && (r = a(r) || r);
|
|
2085
2085
|
return r;
|
|
2086
2086
|
};
|
|
2087
|
-
const
|
|
2087
|
+
const te = "utilities-model";
|
|
2088
2088
|
let ze = class {
|
|
2089
2089
|
constructor(e, t, o) {
|
|
2090
2090
|
i(this, "id");
|
|
@@ -2113,33 +2113,33 @@ let ze = class {
|
|
|
2113
2113
|
}
|
|
2114
2114
|
};
|
|
2115
2115
|
ze = Cs([
|
|
2116
|
-
l(
|
|
2116
|
+
l(te)
|
|
2117
2117
|
], ze);
|
|
2118
|
-
const
|
|
2118
|
+
const no = {
|
|
2119
2119
|
registration: {
|
|
2120
|
-
[
|
|
2120
|
+
[te]: {
|
|
2121
2121
|
class: ze,
|
|
2122
2122
|
singleton: !1
|
|
2123
2123
|
}
|
|
2124
2124
|
},
|
|
2125
|
-
type:
|
|
2126
|
-
predicate: u(
|
|
2127
|
-
factory: c.Factory.create(
|
|
2128
|
-
}, { URL:
|
|
2129
|
-
basePath: `${
|
|
2125
|
+
type: te,
|
|
2126
|
+
predicate: u(te),
|
|
2127
|
+
factory: c.Factory.create(te)
|
|
2128
|
+
}, { URL: ge } = h("UTILITIES_SERVICE"), { getAll: Ie } = y.build({
|
|
2129
|
+
basePath: `${ge}/api/utilities`
|
|
2130
2130
|
}), Re = g.createLogger({
|
|
2131
2131
|
name: "utilities-service",
|
|
2132
2132
|
group: "Services"
|
|
2133
|
-
}),
|
|
2133
|
+
}), ao = async () => {
|
|
2134
2134
|
Re.debug("sending GET for utilities");
|
|
2135
2135
|
try {
|
|
2136
2136
|
const e = await Ie({
|
|
2137
|
-
urlOverride: `${
|
|
2137
|
+
urlOverride: `${ge}/api/kos/descriptor/app:kosdev.ddk:ncuiDescriptor/kondra.ncui.utilities`
|
|
2138
2138
|
});
|
|
2139
2139
|
if ((e == null ? void 0 : e.status) !== 200) {
|
|
2140
2140
|
Re.info("no extensions found, using base data");
|
|
2141
2141
|
const t = await Ie({
|
|
2142
|
-
urlOverride: `${
|
|
2142
|
+
urlOverride: `${ge}/api/kos/descriptor/system:app/kondra.ncui.utilities`
|
|
2143
2143
|
});
|
|
2144
2144
|
return (t == null ? void 0 : t.data) ?? [];
|
|
2145
2145
|
}
|
|
@@ -2147,21 +2147,21 @@ const io = {
|
|
|
2147
2147
|
} catch (e) {
|
|
2148
2148
|
Re.info(`error fetching utilities: ${e}. Using base data`);
|
|
2149
2149
|
const t = await Ie({
|
|
2150
|
-
urlOverride: `${
|
|
2150
|
+
urlOverride: `${ge}/api/kos/descriptor/system:app/kondra.ncui.utilities`
|
|
2151
2151
|
});
|
|
2152
2152
|
return (t == null ? void 0 : t.data) ?? [];
|
|
2153
2153
|
}
|
|
2154
|
-
},
|
|
2154
|
+
}, pi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2155
2155
|
__proto__: null,
|
|
2156
|
-
getUtilities:
|
|
2156
|
+
getUtilities: ao
|
|
2157
2157
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2158
|
-
var
|
|
2158
|
+
var Ls = Object.defineProperty, Ds = Object.getOwnPropertyDescriptor, lo = (e, t, o, s) => {
|
|
2159
2159
|
for (var r = s > 1 ? void 0 : s ? Ds(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
2160
2160
|
(a = e[n]) && (r = (s ? a(t, o, r) : a(r)) || r);
|
|
2161
|
-
return s && r &&
|
|
2161
|
+
return s && r && Ls(t, o, r), r;
|
|
2162
2162
|
};
|
|
2163
|
-
const
|
|
2164
|
-
let
|
|
2163
|
+
const oe = "utilities-container-model";
|
|
2164
|
+
let be = class {
|
|
2165
2165
|
constructor(e, t, o) {
|
|
2166
2166
|
i(this, "id");
|
|
2167
2167
|
i(this, "logger");
|
|
@@ -2198,13 +2198,13 @@ let me = class {
|
|
|
2198
2198
|
// -------------------LIFECYCLE----------------------------
|
|
2199
2199
|
async load() {
|
|
2200
2200
|
this.logger.debug(`loading utilities-container container ${this.id}`);
|
|
2201
|
-
const e = await
|
|
2201
|
+
const e = await ao();
|
|
2202
2202
|
e == null || e.forEach((t, o) => {
|
|
2203
2203
|
t.forEach((s) => {
|
|
2204
2204
|
const r = {
|
|
2205
2205
|
...s,
|
|
2206
2206
|
columnId: String(o)
|
|
2207
|
-
}, n =
|
|
2207
|
+
}, n = no.factory(s.name)(
|
|
2208
2208
|
r
|
|
2209
2209
|
);
|
|
2210
2210
|
this.addModel(n);
|
|
@@ -2212,59 +2212,127 @@ let me = class {
|
|
|
2212
2212
|
});
|
|
2213
2213
|
}
|
|
2214
2214
|
};
|
|
2215
|
-
|
|
2215
|
+
lo([
|
|
2216
2216
|
$e
|
|
2217
|
-
],
|
|
2218
|
-
|
|
2219
|
-
l(
|
|
2220
|
-
],
|
|
2221
|
-
const
|
|
2217
|
+
], be.prototype, "_models", 2);
|
|
2218
|
+
be = lo([
|
|
2219
|
+
l(oe)
|
|
2220
|
+
], be);
|
|
2221
|
+
const ks = {
|
|
2222
2222
|
registration: {
|
|
2223
|
-
[
|
|
2224
|
-
class:
|
|
2223
|
+
[oe]: {
|
|
2224
|
+
class: be,
|
|
2225
2225
|
singleton: !0
|
|
2226
2226
|
},
|
|
2227
|
-
...
|
|
2227
|
+
...no.registration
|
|
2228
2228
|
},
|
|
2229
|
-
type:
|
|
2230
|
-
predicate: u(
|
|
2231
|
-
factory: c.Singleton.create(
|
|
2232
|
-
},
|
|
2233
|
-
...
|
|
2234
|
-
...Je.registration,
|
|
2235
|
-
...qe.registration,
|
|
2236
|
-
...pr.registration,
|
|
2229
|
+
type: oe,
|
|
2230
|
+
predicate: u(oe),
|
|
2231
|
+
factory: c.Singleton.create(oe)
|
|
2232
|
+
}, gi = {
|
|
2233
|
+
...sr.registration,
|
|
2237
2234
|
...Ze.registration,
|
|
2235
|
+
...Qe.registration,
|
|
2236
|
+
...ur.registration,
|
|
2237
|
+
...et.registration,
|
|
2238
2238
|
...Pr.registration,
|
|
2239
|
-
...
|
|
2240
|
-
...
|
|
2241
|
-
...
|
|
2242
|
-
...
|
|
2243
|
-
...
|
|
2244
|
-
...
|
|
2245
|
-
...
|
|
2246
|
-
|
|
2247
|
-
...
|
|
2248
|
-
...
|
|
2249
|
-
...
|
|
2239
|
+
...Lr.registration,
|
|
2240
|
+
...xr.registration,
|
|
2241
|
+
...Yr.registration,
|
|
2242
|
+
...os.registration,
|
|
2243
|
+
...ds.registration,
|
|
2244
|
+
...gs.registration,
|
|
2245
|
+
...fs.registration,
|
|
2246
|
+
...Ts.registration,
|
|
2247
|
+
...Ms.registration,
|
|
2248
|
+
...Et.registration,
|
|
2249
|
+
...ks.registration
|
|
2250
2250
|
};
|
|
2251
|
-
var
|
|
2252
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
2251
|
+
var co = Object.defineProperty, Is = Object.getOwnPropertyDescriptor, Rs = (e, t, o) => t in e ? co(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, st = (e, t, o, s) => {
|
|
2252
|
+
for (var r = s > 1 ? void 0 : s ? Is(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
2253
2253
|
(a = e[n]) && (r = (s ? a(t, o, r) : a(r)) || r);
|
|
2254
|
-
return s && r &&
|
|
2255
|
-
};
|
|
2256
|
-
const
|
|
2257
|
-
let
|
|
2254
|
+
return s && r && co(t, o, r), r;
|
|
2255
|
+
}, As = (e, t, o) => (Rs(e, t + "", o), o);
|
|
2256
|
+
const Fs = "trouble-action-model";
|
|
2257
|
+
let k = class {
|
|
2258
|
+
/**
|
|
2259
|
+
* Creates a new TroubleActionModel instance.
|
|
2260
|
+
*
|
|
2261
|
+
* Initializes the model with trouble action definitions that map trouble
|
|
2262
|
+
* types to state key-value pairs. The model begins monitoring the trouble
|
|
2263
|
+
* container immediately upon creation.
|
|
2264
|
+
*
|
|
2265
|
+
* @param modelId - Unique identifier for this model instance
|
|
2266
|
+
* @param options - Configuration options containing trouble action definitions
|
|
2267
|
+
* @param context - KOS creation context providing logger and framework services
|
|
2268
|
+
*
|
|
2269
|
+
* @category Lifecycle
|
|
2270
|
+
*/
|
|
2258
2271
|
constructor(e, t, o) {
|
|
2272
|
+
/**
|
|
2273
|
+
* Unique identifier for this model instance.
|
|
2274
|
+
*
|
|
2275
|
+
* Set during construction and used for model lifecycle management
|
|
2276
|
+
* and debugging purposes.
|
|
2277
|
+
*
|
|
2278
|
+
* @category Model Properties
|
|
2279
|
+
*/
|
|
2259
2280
|
i(this, "id");
|
|
2260
|
-
i(this, "logger");
|
|
2261
2281
|
i(this, "troubleContainer");
|
|
2262
|
-
|
|
2282
|
+
/**
|
|
2283
|
+
* Observable state object mapping trouble state keys to values.
|
|
2284
|
+
*
|
|
2285
|
+
* This reactive state object is automatically updated when troubles are
|
|
2286
|
+
* added or removed from the system. Keys and values are determined by
|
|
2287
|
+
* the trouble action definitions provided during model initialization.
|
|
2288
|
+
*
|
|
2289
|
+
* State keys that no longer have associated active troubles are set to
|
|
2290
|
+
* undefined.
|
|
2291
|
+
*
|
|
2292
|
+
* @example
|
|
2293
|
+
* ```typescript
|
|
2294
|
+
* // Access state values
|
|
2295
|
+
* const isAgitationRequired = troubleActionModel.state.agitationRequired;
|
|
2296
|
+
*
|
|
2297
|
+
* // State is reactive - updates automatically propagate to React components
|
|
2298
|
+
* ```
|
|
2299
|
+
*
|
|
2300
|
+
* @category Model State
|
|
2301
|
+
*/
|
|
2263
2302
|
i(this, "state");
|
|
2303
|
+
/**
|
|
2304
|
+
* Internal mapping of trouble types to their action definitions.
|
|
2305
|
+
*
|
|
2306
|
+
* Built from the definitions array provided in TroubleActionOptions during
|
|
2307
|
+
* construction. Used for efficient lookup when processing trouble changes.
|
|
2308
|
+
*
|
|
2309
|
+
* @category Internal State
|
|
2310
|
+
*/
|
|
2264
2311
|
i(this, "troubleActionData");
|
|
2265
2312
|
this.id = e, this.logger = o.logger, this.state = Eo(), this.troubleActionData = t.definitions.reduce((s, r) => (s[r.troubleType] = r, s), {});
|
|
2266
2313
|
}
|
|
2267
2314
|
// -------------------LIFECYCLE----------------------------
|
|
2315
|
+
/**
|
|
2316
|
+
* Gets the first active trouble that has an associated action definition.
|
|
2317
|
+
*
|
|
2318
|
+
* Returns the first trouble found that matches any of the configured trouble
|
|
2319
|
+
* action definitions. If multiple troubles are active, priority is determined
|
|
2320
|
+
* by the order of trouble type keys in the troubleActionData object.
|
|
2321
|
+
*
|
|
2322
|
+
* @returns The active trouble model, or undefined if no matching troubles exist
|
|
2323
|
+
*
|
|
2324
|
+
* @example
|
|
2325
|
+
* ```typescript
|
|
2326
|
+
* const trouble = troubleActionModel.activeTrouble;
|
|
2327
|
+
* if (trouble) {
|
|
2328
|
+
* console.log(`Active trouble: ${trouble.type}`);
|
|
2329
|
+
* console.log(`Resolvable: ${trouble.resolvable}`);
|
|
2330
|
+
* }
|
|
2331
|
+
* ```
|
|
2332
|
+
*
|
|
2333
|
+
* @category Trouble Access
|
|
2334
|
+
* @see {@link TroubleContainerModel} for trouble data structure
|
|
2335
|
+
*/
|
|
2268
2336
|
get activeTrouble() {
|
|
2269
2337
|
const e = Object.keys(this.troubleActionData);
|
|
2270
2338
|
if (e.length > 0) {
|
|
@@ -2275,55 +2343,68 @@ let be = class {
|
|
|
2275
2343
|
return o.length > 0 ? o[0] : void 0;
|
|
2276
2344
|
}
|
|
2277
2345
|
}
|
|
2346
|
+
/**
|
|
2347
|
+
* Gets the type of the first active trouble with an associated action definition.
|
|
2348
|
+
*
|
|
2349
|
+
* Convenience getter that extracts the trouble type from the active trouble.
|
|
2350
|
+
* Commonly used for conditional UI rendering based on trouble type.
|
|
2351
|
+
*
|
|
2352
|
+
* @returns The active trouble type string, or undefined if no troubles are active
|
|
2353
|
+
*
|
|
2354
|
+
* @example
|
|
2355
|
+
* ```typescript
|
|
2356
|
+
* const troubleType = troubleActionModel.activeTroubleType;
|
|
2357
|
+
* if (troubleType === 'InsufficientAgitationTrouble') {
|
|
2358
|
+
* // Show agitation required UI
|
|
2359
|
+
* }
|
|
2360
|
+
* ```
|
|
2361
|
+
*
|
|
2362
|
+
* @category Trouble Access
|
|
2363
|
+
*/
|
|
2278
2364
|
get activeTroubleType() {
|
|
2279
2365
|
var e;
|
|
2280
2366
|
return (e = this.activeTrouble) == null ? void 0 : e.type;
|
|
2281
2367
|
}
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
const
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
this.
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
}
|
|
2297
|
-
});
|
|
2368
|
+
handleTroubleActions() {
|
|
2369
|
+
const e = this.troubleContainer.troubles.data.reduce((t, o) => {
|
|
2370
|
+
const s = o.type;
|
|
2371
|
+
if (this.troubleActionData[s]) {
|
|
2372
|
+
const r = this.troubleActionData[s].stateKey ?? s, n = this.troubleActionData[s].stateValue ?? s;
|
|
2373
|
+
t[r] = n;
|
|
2374
|
+
}
|
|
2375
|
+
return t;
|
|
2376
|
+
}, {});
|
|
2377
|
+
this.state.setValues(e), Object.keys(this.troubleActionData).forEach((t) => {
|
|
2378
|
+
if (this.troubleContainer.troubles.getIndexByKey("byType", t).length === 0) {
|
|
2379
|
+
const o = this.troubleActionData[t].stateKey ?? t;
|
|
2380
|
+
this.state[o] = void 0;
|
|
2381
|
+
}
|
|
2298
2382
|
});
|
|
2299
2383
|
}
|
|
2300
|
-
unload() {
|
|
2301
|
-
var e;
|
|
2302
|
-
(e = this.disposer) == null || e.call(this);
|
|
2303
|
-
}
|
|
2304
|
-
async load() {
|
|
2305
|
-
this.logger.debug(`loading trouble-action ${this.id}`);
|
|
2306
|
-
}
|
|
2307
2384
|
};
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2385
|
+
As(k, "Registration");
|
|
2386
|
+
st([
|
|
2387
|
+
p({ modelType: Ye.type })
|
|
2388
|
+
], k.prototype, "troubleContainer", 2);
|
|
2389
|
+
st([
|
|
2390
|
+
Pe({
|
|
2391
|
+
dependencies: (e) => [e.troubleContainer.troubles.data]
|
|
2392
|
+
})
|
|
2393
|
+
], k.prototype, "handleTroubleActions", 1);
|
|
2394
|
+
k = st([
|
|
2395
|
+
l({ modelTypeId: Fs, singleton: !0 }),
|
|
2396
|
+
Ke()
|
|
2397
|
+
], k);
|
|
2398
|
+
const hi = k.Registration, { URL: uo } = h("START_SERVICE"), { getOne: xs } = y.build({
|
|
2318
2399
|
basePath: `${uo}/api/start`
|
|
2319
|
-
}),
|
|
2400
|
+
}), Us = g.createLogger({ name: "start-service", group: "Services" }), po = async () => (Us.debug("navigating to NCUI"), await xs({
|
|
2320
2401
|
urlOverride: `${uo}/api/app/kosdev.ddk/ncui/open`
|
|
2321
|
-
})),
|
|
2402
|
+
})), yi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2322
2403
|
__proto__: null,
|
|
2323
2404
|
navigateToNCui: po
|
|
2324
2405
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2325
|
-
var js = Object.defineProperty,
|
|
2326
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
2406
|
+
var js = Object.defineProperty, Ws = Object.getOwnPropertyDescriptor, go = (e, t, o, s) => {
|
|
2407
|
+
for (var r = s > 1 ? void 0 : s ? Ws(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
2327
2408
|
(a = e[n]) && (r = (s ? a(t, o, r) : a(r)) || r);
|
|
2328
2409
|
return s && r && js(t, o, r), r;
|
|
2329
2410
|
};
|
|
@@ -2359,68 +2440,68 @@ let _e = class {
|
|
|
2359
2440
|
}
|
|
2360
2441
|
};
|
|
2361
2442
|
go([
|
|
2362
|
-
p({ modelType:
|
|
2443
|
+
p({ modelType: Ye.type })
|
|
2363
2444
|
], _e.prototype, "troubles", 2);
|
|
2364
2445
|
_e = go([
|
|
2365
2446
|
l(ho)
|
|
2366
2447
|
], _e);
|
|
2367
|
-
const
|
|
2448
|
+
const fi = new He({
|
|
2368
2449
|
class: _e,
|
|
2369
2450
|
type: ho
|
|
2370
2451
|
});
|
|
2371
2452
|
export {
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2453
|
+
Ys as AgitationControl,
|
|
2454
|
+
sr as Animation,
|
|
2455
|
+
Gs as AnimationServices,
|
|
2456
|
+
Ze as Application,
|
|
2457
|
+
Qe as Auth,
|
|
2458
|
+
Bs as AuthServices,
|
|
2459
|
+
ur as CarbWater,
|
|
2460
|
+
Qs as CopyLogs,
|
|
2461
|
+
qs as CopyLogsServices,
|
|
2462
|
+
gi as DDKModels,
|
|
2463
|
+
et as DashboardOperations,
|
|
2464
|
+
Xs as DashboardOperationsServices,
|
|
2384
2465
|
Pr as Dispenser,
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2466
|
+
Lr as DispenserInfo,
|
|
2467
|
+
Zs as DispenserInfoServices,
|
|
2468
|
+
Js as DispenserServices,
|
|
2469
|
+
Wo as Door,
|
|
2470
|
+
ie as EXTENSION_POINT_DASHBOARD_KEY_FACTORY,
|
|
2471
|
+
xr as Enrollment,
|
|
2472
|
+
ei as EnrollmentServices,
|
|
2473
|
+
Yr as IngredientSummary,
|
|
2474
|
+
li as Lockout,
|
|
2475
|
+
ai as LockoutServices,
|
|
2476
|
+
si as MACRO_KEYS,
|
|
2477
|
+
os as MacroAssignment,
|
|
2478
|
+
Qt as NetworkTest,
|
|
2479
|
+
ds as NetworkTestContainer,
|
|
2480
|
+
di as NetworkTestServices,
|
|
2481
|
+
gs as NutritiveSweetener,
|
|
2482
|
+
fs as PlainWater,
|
|
2483
|
+
Ts as Reboot,
|
|
2484
|
+
ci as RebootServices,
|
|
2485
|
+
Ms as Settings,
|
|
2486
|
+
ui as SettingsServices,
|
|
2487
|
+
wt as SetupStep,
|
|
2488
|
+
Et as SetupStepContainer,
|
|
2489
|
+
Ks as SetupStepServices,
|
|
2490
|
+
fi as Start,
|
|
2491
|
+
yi as StartServices,
|
|
2492
|
+
ko as TROUBLE_TYPE_PRIME,
|
|
2493
|
+
at as TROUBLE_TYPE_PURGE,
|
|
2494
|
+
hi as TroubleActionManager,
|
|
2495
|
+
no as Utilities,
|
|
2496
|
+
ks as UtilitiesContainer,
|
|
2497
|
+
pi as UtilitiesServices,
|
|
2498
|
+
Hr as calculateTimeDifference,
|
|
2499
|
+
Vr as executeDashboardKeyFactory,
|
|
2500
|
+
oi as isMacroGroup,
|
|
2501
|
+
ti as isMicroGroup,
|
|
2502
|
+
ri as macroHolderMap,
|
|
2503
|
+
zr as registerDashboardKeyFactory,
|
|
2504
|
+
ni as toSeconds,
|
|
2505
|
+
ii as toTimeComponents,
|
|
2506
|
+
Dt as troubleVisibilityFilter
|
|
2426
2507
|
};
|