@kosdev-code/kos-dispense-sdk 0.1.0-dev.5382 → 0.1.0-dev.5601
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/{dispense-registration-manager-Ba4UWXju.js → dispense-registration-manager-Cl2UbU1m.js} +155 -148
- package/{dispense-registration-manager-Ba4UWXju.js.map → dispense-registration-manager-Cl2UbU1m.js.map} +1 -1
- package/{dispense-registration-manager-BP5wXKEC.cjs → dispense-registration-manager-DK1ePXkY.cjs} +2 -2
- package/{dispense-registration-manager-BP5wXKEC.cjs.map → dispense-registration-manager-DK1ePXkY.cjs.map} +1 -1
- package/extension-utils-CAqmOmVh.cjs +2 -0
- package/extension-utils-CAqmOmVh.cjs.map +1 -0
- package/{extension-utils-CNDUJVak.js → extension-utils-CECRZtAt.js} +149 -66
- package/extension-utils-CECRZtAt.js.map +1 -0
- package/index.cjs +1 -1
- package/index.js +3 -3
- package/models/models/nozzle/nozzle-model.d.ts.map +1 -1
- package/models/utils/extension-utils.d.ts +90 -18
- package/models/utils/extension-utils.d.ts.map +1 -1
- package/models/utils/service.d.ts +8 -8
- package/models/utils/services/dispense/1.6.5/service.d.ts +8 -8
- package/models/utils/services/dispense/1.8.1/service.d.ts +8 -8
- package/models/utils/services/dispense/daily/service.d.ts +8 -8
- package/models.cjs +1 -1
- package/models.js +2 -2
- package/package.json +4 -4
- package/{pump-provider-m3YekBzj.cjs → pump-provider-C-6CuGgY.cjs} +2 -2
- package/{pump-provider-m3YekBzj.cjs.map → pump-provider-C-6CuGgY.cjs.map} +1 -1
- package/{pump-provider-Dhh0rg1k.js → pump-provider-DoK4li3d.js} +2 -2
- package/{pump-provider-Dhh0rg1k.js.map → pump-provider-DoK4li3d.js.map} +1 -1
- package/ui/contexts/cui-kit/cui-kit.d.ts +4 -4
- package/ui/contexts/cui-kit/cui-kit.d.ts.map +1 -1
- package/ui.cjs +1 -1
- package/ui.js +2 -2
- package/extension-utils-CNDUJVak.js.map +0 -1
- package/extension-utils-CxlY9mef.cjs +0 -2
- package/extension-utils-CxlY9mef.cjs.map +0 -1
package/{dispense-registration-manager-Ba4UWXju.js → dispense-registration-manager-Cl2UbU1m.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var ut = Object.defineProperty;
|
|
2
2
|
var yt = (e, t, r) => t in e ? ut(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var o = (e, t, r) => (yt(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
4
|
-
import { kosModel as P, Kos as v, isKosModel as b, resolveServiceUrl as D, ServiceFactory as
|
|
4
|
+
import { kosModel as P, Kos as v, isKosModel as b, resolveServiceUrl as D, ServiceFactory as S, KosLog as m, KosModelContainer as T, KosExtensionUtils as U, kosChild as _, FetchError as Pt, ExtensionManager as y, EXTENSION_TROUBLE_MAPPER as Me, EXTENSION_TROUBLE_DATA_MAPPER as te, getKosModelSync as x, kosDependency as Be, kosTroubleAware as It, kosAction as O, kosTopicHandler as re, DependencyLifecycle as pe, getKosModel as Ge, FutureManager as ge, kosFuture as he, FutureHandler as je, EXTENSION_FEATURE_FLAG_RESOLVER as mt, isKosDataModel as ft, ChildModels as vt, KosFeatureFlags as bt, kosParentAware as Ot, createPropKey as _t, kosStateEntry as ue, kosStateExit as ye, kosStateGuard as ae, kosLoggerAware as Fe, kosStateMachine as He, MultipleFutureHandler as Et, arraysEqual as Mt, getAllKosCompanionModels as z, EventBus as $, KosContextManager as wt, destroyKosModel as Rt, SingletonKosModelRegistrationFactory as Ct, kosFutureAware as $t, ObservableData as Te, KosModelRegistrationFactory as Nt, KosModelRegistry as Dt, RegistrationManager as R, registerCoreModels as St, registerLegacyModel as Tt } from "@kosdev-code/kos-ui-sdk";
|
|
5
5
|
import "react";
|
|
6
|
-
var
|
|
6
|
+
var h = /* @__PURE__ */ ((e) => (e.IngredientLoader = "kos.ingredient.loader", e.IngredientMapper = "kos.ingredient.mapper", e.IngredientIndex = "kos.ingredient.index", e.IngredientTypeMapper = "kos.ingredient.type.mapper", e.HolderTypeMapper = "kos.holder.type.mapper", e.HolderMapper = "kos.holder.mapper", e.HolderIndex = "kos.holder.index", e.HolderIngredientMapper = "kos.holder.ingredient.mapper", e.AvailabilityMapper = "kos.availability.mapper", e.AvailabilityLoader = "kos.availability.loader", e.SelectedPourableMapper = "kos.selected.pourable.mapper", e.AssemblyMapper = "kos.assembly.mapper", e.BoardMapper = "kos.board.mapper", e.BoardIndex = "kos.board.index", e.PumpIndex = "kos.pump.index", e.AssemblyFeatureFlags = "kos.assembly.feature.flags", e))(h || {}), L = /* @__PURE__ */ ((e) => (e.Nozzle = "nozzle-model", e.Availability = "availability-model", e.Holder = "holder-model", e.HolderContainer = "holder-container-model", e.IngredientContainer = "ingredient-container-model", e.Ingredient = "ingredient-model", e.Pump = "pump-model", e.PumpContainer = "pump-container-model", e))(L || {}), Lt = Object.getOwnPropertyDescriptor, At = (e, t, r, a) => {
|
|
7
7
|
for (var i = a > 1 ? void 0 : a ? Lt(t, r) : t, s = e.length - 1, n; s >= 0; s--)
|
|
8
8
|
(n = e[s]) && (i = n(i) || i);
|
|
9
9
|
return i;
|
|
@@ -49,7 +49,7 @@ const Ve = {
|
|
|
49
49
|
type: H,
|
|
50
50
|
predicate: b(H),
|
|
51
51
|
factory: v.Factory.create(H)
|
|
52
|
-
}, { URL: Ke } = D("INGREDIENT_SERVICE"), { getOne: Ut } =
|
|
52
|
+
}, { URL: Ke } = D("INGREDIENT_SERVICE"), { getOne: Ut } = S.build({
|
|
53
53
|
basePath: `${Ke}/api/ext/dispense/ingredients`
|
|
54
54
|
}), zt = async () => await Ut({
|
|
55
55
|
urlOverride: `${Ke}/api/ext/dispense/ingredients`
|
|
@@ -64,11 +64,11 @@ let se = class {
|
|
|
64
64
|
constructor(e, t) {
|
|
65
65
|
o(this, "id");
|
|
66
66
|
o(this, "ingredients");
|
|
67
|
-
this.id = e, this.ingredients = new
|
|
67
|
+
this.id = e, this.ingredients = new T({
|
|
68
68
|
indexMap: {
|
|
69
69
|
ingredientType: "type"
|
|
70
70
|
},
|
|
71
|
-
extensionId:
|
|
71
|
+
extensionId: h.IngredientIndex,
|
|
72
72
|
parentId: e
|
|
73
73
|
});
|
|
74
74
|
}
|
|
@@ -86,23 +86,23 @@ let se = class {
|
|
|
86
86
|
throw new Error("Failed to load ingredients");
|
|
87
87
|
const r = await U.executeLoaderExtension({
|
|
88
88
|
context: e,
|
|
89
|
-
extension:
|
|
89
|
+
extension: h.IngredientLoader
|
|
90
90
|
}), a = (t == null ? void 0 : t.data) ?? {};
|
|
91
91
|
for (const s of Object.keys(a))
|
|
92
92
|
for (const n of ((i = t == null ? void 0 : t.data) == null ? void 0 : i[s]) || []) {
|
|
93
|
-
const
|
|
94
|
-
extension:
|
|
93
|
+
const c = await U.executeDataMapperExtension({
|
|
94
|
+
extension: h.IngredientMapper,
|
|
95
95
|
data: n,
|
|
96
96
|
contextData: r
|
|
97
|
-
}),
|
|
98
|
-
extension:
|
|
97
|
+
}), l = await U.executePropertyMapperExtension({
|
|
98
|
+
extension: h.IngredientTypeMapper,
|
|
99
99
|
data: n,
|
|
100
100
|
contextData: r
|
|
101
101
|
}), p = {
|
|
102
102
|
...n,
|
|
103
|
-
type:
|
|
104
|
-
...
|
|
105
|
-
data:
|
|
103
|
+
type: l || n.type,
|
|
104
|
+
...c,
|
|
105
|
+
data: c
|
|
106
106
|
}, u = Ve.factory(n.id)(
|
|
107
107
|
p
|
|
108
108
|
);
|
|
@@ -127,7 +127,7 @@ const Ye = {
|
|
|
127
127
|
type: V,
|
|
128
128
|
predicate: b(V),
|
|
129
129
|
factory: v.Singleton.create(V)
|
|
130
|
-
}, { URL: Pe } = D("HOLDER_SERVICE"), { getAll: jt, postModel: Ze, deleteModel: Ft } =
|
|
130
|
+
}, { URL: Pe } = D("HOLDER_SERVICE"), { getAll: jt, postModel: Ze, deleteModel: Ft } = S.build({
|
|
131
131
|
basePath: `${Pe}/api/kos/holders`
|
|
132
132
|
}), Ht = m.createLogger({
|
|
133
133
|
name: "holder-service",
|
|
@@ -155,23 +155,23 @@ const Ye = {
|
|
|
155
155
|
model: {},
|
|
156
156
|
urlOverride: `${Pe}/api/ext/dispense/pumpEvents/replaceLine/${e}`
|
|
157
157
|
});
|
|
158
|
-
}, { URL: ne } = D("ASSIGNMENT_SERVICE"), { getAll: Yt, postModel: Xe, deleteModel: Zt } =
|
|
158
|
+
}, { URL: ne } = D("ASSIGNMENT_SERVICE"), { getAll: Yt, postModel: Xe, deleteModel: Zt } = S.build({
|
|
159
159
|
destinationAddress: "",
|
|
160
160
|
basePath: `${ne}/api/ext/dispense/assignments`
|
|
161
161
|
}), oe = window.kosUseFos, la = async () => await Yt({ fos: oe }), Xt = async (e, t) => {
|
|
162
|
-
var i, s, n,
|
|
162
|
+
var i, s, n, c;
|
|
163
163
|
const r = JSON.stringify(t), a = `${ne}/api/ext/dispense/assignments`;
|
|
164
164
|
try {
|
|
165
|
-
const
|
|
165
|
+
const l = await Xe({
|
|
166
166
|
model: { holderPath: e, factoryJson: r },
|
|
167
167
|
urlOverride: a
|
|
168
168
|
});
|
|
169
|
-
return (
|
|
170
|
-
} catch (
|
|
171
|
-
if (
|
|
169
|
+
return (l == null ? void 0 : l.status) === 200 && ((i = l == null ? void 0 : l.data) != null && i.error) ? [l.data.error || "unknownError", l.data] : [void 0, l == null ? void 0 : l.data];
|
|
170
|
+
} catch (l) {
|
|
171
|
+
if (l instanceof Pt)
|
|
172
172
|
return [
|
|
173
|
-
((n = (s =
|
|
174
|
-
(
|
|
173
|
+
((n = (s = l.payload) == null ? void 0 : s.data) == null ? void 0 : n.error) || "unknownError",
|
|
174
|
+
(c = l.payload) == null ? void 0 : c.data
|
|
175
175
|
];
|
|
176
176
|
}
|
|
177
177
|
return ["unknownError", void 0];
|
|
@@ -250,8 +250,8 @@ let ee = class {
|
|
|
250
250
|
ingredientId: i,
|
|
251
251
|
ingredientType: s,
|
|
252
252
|
slice: n,
|
|
253
|
-
group:
|
|
254
|
-
data:
|
|
253
|
+
group: c,
|
|
254
|
+
data: l,
|
|
255
255
|
enjoyByDate: p
|
|
256
256
|
}, u) {
|
|
257
257
|
o(this, "id");
|
|
@@ -267,7 +267,7 @@ let ee = class {
|
|
|
267
267
|
o(this, "enjoyByDate");
|
|
268
268
|
o(this, "pumps");
|
|
269
269
|
o(this, "ingredientContainer");
|
|
270
|
-
this.id = e, this.path = t, this.name = r, this.ingredientType = s, this.ingredientSource = a, this.ingredientId = i, this.group =
|
|
270
|
+
this.id = e, this.path = t, this.name = r, this.ingredientType = s, this.ingredientSource = a, this.ingredientId = i, this.group = c, this.slice = n, this.enjoyByDate = p, this.data = l, this.pumps = new T({
|
|
271
271
|
parentId: e,
|
|
272
272
|
sortKey: "path"
|
|
273
273
|
}), this.logger = u.logger;
|
|
@@ -280,10 +280,10 @@ let ee = class {
|
|
|
280
280
|
ingredientType: i,
|
|
281
281
|
group: s,
|
|
282
282
|
slice: n,
|
|
283
|
-
enjoyByDate:
|
|
284
|
-
data:
|
|
283
|
+
enjoyByDate: c,
|
|
284
|
+
data: l
|
|
285
285
|
}) {
|
|
286
|
-
this.path = e, this.name = t, this.ingredientId = a, this.ingredientType = i, this.ingredientSource = r, this.enjoyByDate =
|
|
286
|
+
this.path = e, this.name = t, this.ingredientId = a, this.ingredientType = i, this.ingredientSource = r, this.enjoyByDate = c, this.slice = n, this.group = s, this.data = l;
|
|
287
287
|
}
|
|
288
288
|
get hasEnjoyByDate() {
|
|
289
289
|
return !!this.enjoyByDate && !this.unassigned;
|
|
@@ -452,30 +452,30 @@ const Je = {
|
|
|
452
452
|
predicate: b(K),
|
|
453
453
|
factory: v.Factory.create(K)
|
|
454
454
|
}, Qt = async (e, t) => {
|
|
455
|
-
var
|
|
455
|
+
var Se;
|
|
456
456
|
const r = y.propertyMapper.executeMapper(
|
|
457
|
-
|
|
457
|
+
h.HolderIngredientMapper,
|
|
458
458
|
t
|
|
459
459
|
), a = y.propertyMapper.executeMapper(
|
|
460
|
-
|
|
460
|
+
h.HolderTypeMapper,
|
|
461
461
|
t
|
|
462
462
|
) || t.ingType, i = await U.executeDataMapperExtension({
|
|
463
|
-
extension:
|
|
463
|
+
extension: h.HolderMapper,
|
|
464
464
|
data: t,
|
|
465
465
|
contextData: {}
|
|
466
|
-
}), { name: s, path: n, ingredientId:
|
|
466
|
+
}), { name: s, path: n, ingredientId: c, ingType: l, ingSource: p, slice: u, ...F } = t, g = { ...F, ...i }, M = u || { pos: 0 }, C = {
|
|
467
467
|
name: s,
|
|
468
468
|
path: n,
|
|
469
|
-
ingredientId: r ||
|
|
470
|
-
ingredientType: a ||
|
|
469
|
+
ingredientId: r || c,
|
|
470
|
+
ingredientType: a || l,
|
|
471
471
|
ingredientSource: p,
|
|
472
|
-
enjoyByDate: (
|
|
472
|
+
enjoyByDate: (Se = t.container) != null && Se.enjoyByDate ? new Date(t.container.enjoyByDate) : void 0,
|
|
473
473
|
slice: M,
|
|
474
474
|
group: e,
|
|
475
|
-
data:
|
|
475
|
+
data: g
|
|
476
476
|
};
|
|
477
477
|
return Je.factory(t.path)(C);
|
|
478
|
-
}, { URL: er } = D("ASSEMBLY_SERVICE"), { getOne: tr } =
|
|
478
|
+
}, { URL: er } = D("ASSEMBLY_SERVICE"), { getOne: tr } = S.build({
|
|
479
479
|
basePath: `${er}/api/kos/device/assemblies`
|
|
480
480
|
}), rr = m.createLogger({
|
|
481
481
|
name: "assembly-service",
|
|
@@ -492,9 +492,9 @@ let B = class {
|
|
|
492
492
|
o(this, "id");
|
|
493
493
|
o(this, "logger");
|
|
494
494
|
o(this, "models");
|
|
495
|
-
this.id = e, this.logger = r.logger, this.models = new
|
|
495
|
+
this.id = e, this.logger = r.logger, this.models = new T({
|
|
496
496
|
parentId: e,
|
|
497
|
-
extensionId:
|
|
497
|
+
extensionId: h.BoardIndex
|
|
498
498
|
});
|
|
499
499
|
}
|
|
500
500
|
get boardList() {
|
|
@@ -562,14 +562,14 @@ let de = class {
|
|
|
562
562
|
constructor(e, t) {
|
|
563
563
|
o(this, "id");
|
|
564
564
|
o(this, "pumps");
|
|
565
|
-
this.id = e, this.pumps = new
|
|
565
|
+
this.id = e, this.pumps = new T({
|
|
566
566
|
indexMap: {
|
|
567
567
|
byNozzle: (r) => r.nozzlePaths,
|
|
568
568
|
byBoard: (r) => r.boardPath,
|
|
569
569
|
byType: "type"
|
|
570
570
|
},
|
|
571
571
|
parentId: e,
|
|
572
|
-
extensionId:
|
|
572
|
+
extensionId: h.PumpIndex
|
|
573
573
|
});
|
|
574
574
|
}
|
|
575
575
|
/**
|
|
@@ -643,10 +643,10 @@ const Re = {
|
|
|
643
643
|
tt.byBoard,
|
|
644
644
|
r
|
|
645
645
|
).map(
|
|
646
|
-
(
|
|
646
|
+
(c) => rt(c.path)
|
|
647
647
|
);
|
|
648
|
-
(await Promise.allSettled(s)).forEach((
|
|
649
|
-
|
|
648
|
+
(await Promise.allSettled(s)).forEach((c) => {
|
|
649
|
+
c.status === "fulfilled" && c.value.forEach((l) => t.push(l));
|
|
650
650
|
});
|
|
651
651
|
}
|
|
652
652
|
return Array.from(new Set(t));
|
|
@@ -657,8 +657,8 @@ var cr = Object.getOwnPropertyDescriptor, pr = (e, t, r, a) => {
|
|
|
657
657
|
return i;
|
|
658
658
|
};
|
|
659
659
|
const Z = "board-model", Ae = (e, t) => {
|
|
660
|
-
const { type: r, name: a, path: i, linked: s, instanceId: n, link:
|
|
661
|
-
t.type = r, t.name = a, t.path = i, t.linked = s, t.link = Object.freeze(
|
|
660
|
+
const { type: r, name: a, path: i, linked: s, instanceId: n, link: c, ...l } = e;
|
|
661
|
+
t.type = r, t.name = a, t.path = i, t.linked = s, t.link = Object.freeze(c), t.instanceId = n, Object.assign(t, l);
|
|
662
662
|
};
|
|
663
663
|
y[Me].register(
|
|
664
664
|
"board",
|
|
@@ -717,10 +717,10 @@ const at = {
|
|
|
717
717
|
k
|
|
718
718
|
)
|
|
719
719
|
};
|
|
720
|
-
var
|
|
721
|
-
for (var i = a > 1 ? void 0 : a ?
|
|
720
|
+
var gr = Object.defineProperty, hr = Object.getOwnPropertyDescriptor, me = (e, t, r, a) => {
|
|
721
|
+
for (var i = a > 1 ? void 0 : a ? hr(t, r) : t, s = e.length - 1, n; s >= 0; s--)
|
|
722
722
|
(n = e[s]) && (i = (a ? n(t, r, i) : n(i)) || i);
|
|
723
|
-
return a && i &&
|
|
723
|
+
return a && i && gr(t, r, i), i;
|
|
724
724
|
};
|
|
725
725
|
const X = L.HolderContainer, ur = "/kos/insertion/insert/start", yr = "/kos/insertion/insert/complete", Pr = "/kos/insertion/insert/update", Ir = "/kos/insertion/remove", mr = "/kos/pumpEvent/replaceLine", fr = "/kos/handle/*";
|
|
726
726
|
let G = class {
|
|
@@ -728,13 +728,13 @@ let G = class {
|
|
|
728
728
|
o(this, "id");
|
|
729
729
|
o(this, "holders");
|
|
730
730
|
o(this, "logger");
|
|
731
|
-
this.id = e, this.holders = new
|
|
731
|
+
this.id = e, this.holders = new T({
|
|
732
732
|
indexMap: {
|
|
733
733
|
nozzle: (a) => a.nozzlePaths,
|
|
734
734
|
group: "group"
|
|
735
735
|
},
|
|
736
736
|
parentId: e,
|
|
737
|
-
extensionId:
|
|
737
|
+
extensionId: h.HolderIndex
|
|
738
738
|
}), this.logger = r.logger;
|
|
739
739
|
}
|
|
740
740
|
updateModel() {
|
|
@@ -754,14 +754,14 @@ let G = class {
|
|
|
754
754
|
() => this.logger.debug("Received insertion event", JSON.stringify(e))
|
|
755
755
|
), (Array.isArray(e) ? e : [e]).forEach((r) => {
|
|
756
756
|
O(() => {
|
|
757
|
-
var s, n,
|
|
757
|
+
var s, n, c;
|
|
758
758
|
const a = r.ingredientId, i = this.holders.getModel(r.path);
|
|
759
759
|
i && (this.logger.info(
|
|
760
760
|
`Received insertion event for holder ${i.path}`
|
|
761
|
-
), i.updateIngredient(a), i.slice.currentVolMl = (s = r.slice) == null ? void 0 : s.currentVolMl, i.slice.maxVolMl = (n = r.slice) == null ? void 0 : n.maxVolMl, (
|
|
761
|
+
), i.updateIngredient(a), i.slice.currentVolMl = (s = r.slice) == null ? void 0 : s.currentVolMl, i.slice.maxVolMl = (n = r.slice) == null ? void 0 : n.maxVolMl, (c = r == null ? void 0 : r.container) != null && c.enjoyByDate ? i.enjoyByDate = new Date(r.container.enjoyByDate) : i.enjoyByDate = void 0, r.pumps.forEach((l) => {
|
|
762
762
|
O(() => {
|
|
763
|
-
const p = i.pumps.getModel(
|
|
764
|
-
p && (p.ingredientId =
|
|
763
|
+
const p = i.pumps.getModel(l.path);
|
|
764
|
+
p && (p.ingredientId = l.ingredientId, p.inserted = l.inserted, p.prevIngredientId = l.prevIngredientId);
|
|
765
765
|
});
|
|
766
766
|
}));
|
|
767
767
|
});
|
|
@@ -808,16 +808,16 @@ const st = {
|
|
|
808
808
|
)
|
|
809
809
|
}, vr = m.createLogger({ name: "board-utils" }), br = async (e) => {
|
|
810
810
|
const t = await U.executeDataMapperExtension({
|
|
811
|
-
extension:
|
|
811
|
+
extension: h.BoardMapper,
|
|
812
812
|
data: e,
|
|
813
813
|
contextData: {}
|
|
814
|
-
}), { type: r, name: a, path: i, linked: s, instanceId: n, ...
|
|
814
|
+
}), { type: r, name: a, path: i, linked: s, instanceId: n, ...c } = e, l = { ...c, ...t }, p = {
|
|
815
815
|
type: r,
|
|
816
816
|
name: a,
|
|
817
817
|
path: i,
|
|
818
818
|
linked: s,
|
|
819
819
|
instanceId: n,
|
|
820
|
-
...
|
|
820
|
+
...l
|
|
821
821
|
}, u = at.factory(e.path)(p);
|
|
822
822
|
return u.updateModel(p), u;
|
|
823
823
|
}, Or = (e) => async (t) => {
|
|
@@ -826,7 +826,7 @@ const st = {
|
|
|
826
826
|
e.addModel(r);
|
|
827
827
|
};
|
|
828
828
|
var d = /* @__PURE__ */ ((e) => (e.IDLE = "IDLE", e.POURING = "POURING", e.POUR_STARTING = "POUR_STARTING", e.POUR_CANCELING = "POUR_CANCELING", e))(d || {});
|
|
829
|
-
const { URL: Ce } = D("PUMP_SERVICE"), { postModel: _r, getOne: Er } =
|
|
829
|
+
const { URL: Ce } = D("PUMP_SERVICE"), { postModel: _r, getOne: Er } = S.build({
|
|
830
830
|
basePath: `${Ce}/api/kos/holders`
|
|
831
831
|
});
|
|
832
832
|
m.createLogger({
|
|
@@ -839,7 +839,7 @@ const Mr = async ({
|
|
|
839
839
|
tracker: r
|
|
840
840
|
}) => {
|
|
841
841
|
const a = `${Ce}/api/ext/dispense/nozzle/nozzle/pipeline/ingredient/pour/${t}/${e}`, i = await _r({ model: {}, urlOverride: a, tracker: r });
|
|
842
|
-
return i != null && i.data &&
|
|
842
|
+
return i != null && i.data && ge.initiateFuture(i.data), i;
|
|
843
843
|
}, wr = async (e, t) => {
|
|
844
844
|
const r = `${Ce}/api/ext/dispense/nozzle/nozzle/pipeline/ingredient/intent/${e}/${t}/volume`, a = await Er({ urlOverride: r });
|
|
845
845
|
return a != null && a.data ? a.data : { volume: -1 };
|
|
@@ -878,14 +878,14 @@ let le = class {
|
|
|
878
878
|
boardPath: i,
|
|
879
879
|
nozzlePath: s,
|
|
880
880
|
name: n,
|
|
881
|
-
path:
|
|
882
|
-
childPump:
|
|
881
|
+
path: c,
|
|
882
|
+
childPump: l,
|
|
883
883
|
virtual: p,
|
|
884
884
|
prevIngredientId: u,
|
|
885
885
|
state: F,
|
|
886
|
-
...
|
|
886
|
+
...g
|
|
887
887
|
} = t;
|
|
888
|
-
this.inserted = r, this.type = t.type, this.ingredientId = t.ingredientId, this.holderPath = a, this.boardPath = i, this.nozzlePath = s, this.name = n, this.path =
|
|
888
|
+
this.inserted = r, this.type = t.type, this.ingredientId = t.ingredientId, this.holderPath = a, this.boardPath = i, this.nozzlePath = s, this.name = n, this.path = c, this.childPump = !!l, this.virtual = !!p, this.prevIngredientId = u, this.state = F, Object.assign(this, g), this.futureHandler = new je(this);
|
|
889
889
|
}
|
|
890
890
|
updateModel(e) {
|
|
891
891
|
const {
|
|
@@ -895,10 +895,10 @@ let le = class {
|
|
|
895
895
|
nozzlePath: i,
|
|
896
896
|
childPump: s,
|
|
897
897
|
name: n,
|
|
898
|
-
path:
|
|
899
|
-
...
|
|
898
|
+
path: c,
|
|
899
|
+
...l
|
|
900
900
|
} = e;
|
|
901
|
-
this.inserted = t, this.type = e.type, this.ingredientId = e.ingredientId, this.holderPath = r, this.boardPath = a, this.nozzlePath = i, this.childPump = this.childPump ? this.childPump : !!s, this.name = n, this.path =
|
|
901
|
+
this.inserted = t, this.type = e.type, this.ingredientId = e.ingredientId, this.holderPath = r, this.boardPath = a, this.nozzlePath = i, this.childPump = this.childPump ? this.childPump : !!s, this.name = n, this.path = c, this.prevIngredientId = e.prevIngredientId, Object.assign(this, l);
|
|
902
902
|
}
|
|
903
903
|
// -------------------LIFECYCLE----------------------------
|
|
904
904
|
get pouringState() {
|
|
@@ -954,7 +954,7 @@ let le = class {
|
|
|
954
954
|
// -------------------ENTITY----------------------------
|
|
955
955
|
};
|
|
956
956
|
nt([
|
|
957
|
-
|
|
957
|
+
he()
|
|
958
958
|
], le.prototype, "performIntent", 1);
|
|
959
959
|
le = nt([
|
|
960
960
|
P(J)
|
|
@@ -991,10 +991,10 @@ const ot = {
|
|
|
991
991
|
Ue.debug(`adding pump ${a.name}`);
|
|
992
992
|
const s = $r(r.path, a);
|
|
993
993
|
e.addModel(s);
|
|
994
|
-
const n = s.holderPath,
|
|
995
|
-
|
|
994
|
+
const n = s.holderPath, c = t.holders.getModel(n);
|
|
995
|
+
c == null || c.pumps.addModel(s), c != null && c.nozzlePaths.includes(r.path) || c == null || c.nozzlePaths.push(r.path), (i = a == null ? void 0 : a.pumps) == null || i.forEach((l) => {
|
|
996
996
|
const p = s.holderPath, u = {
|
|
997
|
-
...
|
|
997
|
+
...l,
|
|
998
998
|
childPump: !0,
|
|
999
999
|
holderPath: p,
|
|
1000
1000
|
ingredientId: s.ingredientId
|
|
@@ -1010,7 +1010,7 @@ var Nr = Object.defineProperty, Dr = Object.getOwnPropertyDescriptor, ie = (e, t
|
|
|
1010
1010
|
(n = e[s]) && (i = (a ? n(t, r, i) : n(i)) || i);
|
|
1011
1011
|
return a && i && Nr(t, r, i), i;
|
|
1012
1012
|
};
|
|
1013
|
-
const q = "assembly-model",
|
|
1013
|
+
const q = "assembly-model", Sr = "assembly-data", Tr = "assembly-raw-data";
|
|
1014
1014
|
let N = class {
|
|
1015
1015
|
constructor(e, t, r) {
|
|
1016
1016
|
o(this, "id");
|
|
@@ -1064,7 +1064,7 @@ let N = class {
|
|
|
1064
1064
|
async ready() {
|
|
1065
1065
|
var e;
|
|
1066
1066
|
(e = this.troubleContainer) == null || e.troubles.increment(), y[mt].execute(
|
|
1067
|
-
|
|
1067
|
+
h.AssemblyFeatureFlags,
|
|
1068
1068
|
this
|
|
1069
1069
|
);
|
|
1070
1070
|
}
|
|
@@ -1073,47 +1073,47 @@ let N = class {
|
|
|
1073
1073
|
const t = await qe();
|
|
1074
1074
|
if ((t == null ? void 0 : t.status) === 200) {
|
|
1075
1075
|
const r = await U.executeDataMapperExtension({
|
|
1076
|
-
extension:
|
|
1076
|
+
extension: h.AssemblyMapper,
|
|
1077
1077
|
data: t.data,
|
|
1078
1078
|
contextData: {}
|
|
1079
1079
|
});
|
|
1080
|
-
e.set(
|
|
1080
|
+
e.set(Sr, r), Object.assign(this, r), Object.entries(r).forEach(([a, i]) => {
|
|
1081
1081
|
ft(i) && (this.logger.debug(`adding child model ${a} from extension data`), this[vt][a] = !0);
|
|
1082
|
-
}), e.set(
|
|
1082
|
+
}), e.set(Tr, t.data);
|
|
1083
1083
|
for await (const a of t.data.assemblies) {
|
|
1084
1084
|
const {
|
|
1085
1085
|
boards: i = [],
|
|
1086
1086
|
holders: s = {},
|
|
1087
1087
|
nozzles: n = [],
|
|
1088
|
-
core:
|
|
1089
|
-
name:
|
|
1088
|
+
core: c,
|
|
1089
|
+
name: l,
|
|
1090
1090
|
path: p,
|
|
1091
1091
|
...u
|
|
1092
1092
|
} = a;
|
|
1093
|
-
this.logger.debug(`adding assembly ${
|
|
1093
|
+
this.logger.debug(`adding assembly ${l}`), this.logger.warn(`Assembly rest keys: ${Object.keys(u).join(", ")}`), Object.keys(u).forEach((g) => {
|
|
1094
1094
|
var M;
|
|
1095
|
-
if (this.logger.warn(`Enabling feature flag: ${
|
|
1096
|
-
const C = u[
|
|
1097
|
-
this.logger.warn(`Feature flag ${
|
|
1095
|
+
if (this.logger.warn(`Enabling feature flag: ${g}`), bt.enableFeature(g), e.set(`assembly-feature-${g}`, u[g]), ((M = u[g].state) == null ? void 0 : M.path) !== void 0) {
|
|
1096
|
+
const C = u[g].state.path;
|
|
1097
|
+
this.logger.warn(`Feature flag ${g} state path: ${C}`), e.set(`assembly-state-path-${g}`, C);
|
|
1098
1098
|
}
|
|
1099
1099
|
});
|
|
1100
|
-
for await (const
|
|
1101
|
-
this.logger.debug(`adding board ${
|
|
1102
|
-
for await (const [
|
|
1100
|
+
for await (const g of i)
|
|
1101
|
+
this.logger.debug(`adding board ${g.name}`), await Or(this.boardContainer)(g);
|
|
1102
|
+
for await (const [g, M] of Object.entries(
|
|
1103
1103
|
s ?? {}
|
|
1104
1104
|
))
|
|
1105
1105
|
for await (const C of M) {
|
|
1106
1106
|
this.logger.debug(`adding holder ${C.name}`);
|
|
1107
|
-
const De = await Qt(
|
|
1107
|
+
const De = await Qt(g, C);
|
|
1108
1108
|
this.holderContainer.holders.addModel(De);
|
|
1109
1109
|
}
|
|
1110
1110
|
const F = dt(this.pumpContainer)(
|
|
1111
1111
|
this.holderContainer
|
|
1112
1112
|
);
|
|
1113
|
-
n.forEach((
|
|
1114
|
-
this._nozzlePaths.add(
|
|
1115
|
-
const M = F(
|
|
1116
|
-
|
|
1113
|
+
n.forEach((g) => {
|
|
1114
|
+
this._nozzlePaths.add(g.path);
|
|
1115
|
+
const M = F(g);
|
|
1116
|
+
g.pumps.forEach(M);
|
|
1117
1117
|
});
|
|
1118
1118
|
}
|
|
1119
1119
|
}
|
|
@@ -1195,7 +1195,7 @@ const Ee = {
|
|
|
1195
1195
|
factory: v.Factory.create(
|
|
1196
1196
|
W
|
|
1197
1197
|
)
|
|
1198
|
-
}, { URL: j } = D("NOZZLE_SERVICE"), { postModel: $e, deleteModel: Ur, getOne: zr } =
|
|
1198
|
+
}, { URL: j } = D("NOZZLE_SERVICE"), { postModel: $e, deleteModel: Ur, getOne: zr } = S.build({
|
|
1199
1199
|
basePath: `${j}/api/nozzle`
|
|
1200
1200
|
}), xr = async (e, t) => {
|
|
1201
1201
|
const r = await $e({
|
|
@@ -1204,7 +1204,7 @@ const Ee = {
|
|
|
1204
1204
|
ordered: !0,
|
|
1205
1205
|
tracker: t
|
|
1206
1206
|
});
|
|
1207
|
-
return r != null && r.data &&
|
|
1207
|
+
return r != null && r.data && ge.initiateFuture(r.data), r;
|
|
1208
1208
|
}, Br = async (e, t, r) => {
|
|
1209
1209
|
const a = await $e({
|
|
1210
1210
|
model: {},
|
|
@@ -1212,7 +1212,7 @@ const Ee = {
|
|
|
1212
1212
|
ordered: !0,
|
|
1213
1213
|
tracker: r
|
|
1214
1214
|
});
|
|
1215
|
-
return a != null && a.data &&
|
|
1215
|
+
return a != null && a.data && ge.initiateFuture(a.data), a;
|
|
1216
1216
|
}, Gr = async (e) => await zr({
|
|
1217
1217
|
urlOverride: `${j}${e}/pipeline/beverage/availability`
|
|
1218
1218
|
}), jr = async (e, t) => await $e({
|
|
@@ -1244,7 +1244,7 @@ let I = class {
|
|
|
1244
1244
|
o(this, "beverageTopicPrefix");
|
|
1245
1245
|
o(this, "topicPrefix");
|
|
1246
1246
|
o(this, "urlPrefix");
|
|
1247
|
-
this.id = e, this.path = t.path, this.name = t.name, this.beverageTopicPrefix = t.beverageTopicPrefix, this.topicPrefix = t.topicPrefix, this.urlPrefix = t.urlPrefix, this._selectedBeverage = void 0, this._selectedBrand = void 0, this._additionalItems = [], this.futureHandler = new Et(this), this._availabilityItems = new
|
|
1247
|
+
this.id = e, this.path = t.path, this.name = t.name, this.beverageTopicPrefix = t.beverageTopicPrefix, this.topicPrefix = t.topicPrefix, this.urlPrefix = t.urlPrefix, this._selectedBeverage = void 0, this._selectedBrand = void 0, this._additionalItems = [], this.futureHandler = new Et(this), this._availabilityItems = new T({
|
|
1248
1248
|
indexMap: {
|
|
1249
1249
|
byGroup: "groupId",
|
|
1250
1250
|
byParent: "parentId"
|
|
@@ -1332,8 +1332,8 @@ let I = class {
|
|
|
1332
1332
|
* */
|
|
1333
1333
|
async setSelectedPourable({ beverage: e, additional: t, context: r }, a = !1) {
|
|
1334
1334
|
if (!e) {
|
|
1335
|
-
const
|
|
1336
|
-
if ((
|
|
1335
|
+
const l = await Fr(this.name);
|
|
1336
|
+
if ((l == null ? void 0 : l.status) !== 200)
|
|
1337
1337
|
throw new Error("Failed to clear pourable");
|
|
1338
1338
|
this._selectedBeverage = void 0;
|
|
1339
1339
|
return;
|
|
@@ -1343,22 +1343,29 @@ let I = class {
|
|
|
1343
1343
|
return;
|
|
1344
1344
|
}
|
|
1345
1345
|
this._selectedBeverage = e, this._additionalItems = t;
|
|
1346
|
-
let i
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1346
|
+
let i;
|
|
1347
|
+
try {
|
|
1348
|
+
i = await y.dataMapper.executeMapper(
|
|
1349
|
+
h.SelectedPourableMapper,
|
|
1350
|
+
{
|
|
1351
|
+
beverage: e,
|
|
1352
|
+
additional: t,
|
|
1353
|
+
context: r
|
|
1354
|
+
}
|
|
1355
|
+
);
|
|
1356
|
+
} catch (l) {
|
|
1357
|
+
this.logger.error(
|
|
1358
|
+
`Error executing SelectedPourableMapper, falling back to default payload. Error: ${l}`
|
|
1359
|
+
), i = void 0;
|
|
1360
|
+
}
|
|
1354
1361
|
const s = {
|
|
1355
1362
|
bevId: e.rawId
|
|
1356
1363
|
};
|
|
1357
1364
|
(!i || Object.keys(i).length === 0) && (this.logger.info(
|
|
1358
1365
|
`No selected pourable mapper defined, using the default payload ${s}`
|
|
1359
1366
|
), i = s);
|
|
1360
|
-
const n = i ?? s,
|
|
1361
|
-
if ((
|
|
1367
|
+
const n = i ?? s, c = await jr(this.name, n);
|
|
1368
|
+
if ((c == null ? void 0 : c.status) !== 200)
|
|
1362
1369
|
throw new Error("Failed to select pourable");
|
|
1363
1370
|
}
|
|
1364
1371
|
/**
|
|
@@ -1492,33 +1499,33 @@ let I = class {
|
|
|
1492
1499
|
if ((t == null ? void 0 : t.status) !== 200)
|
|
1493
1500
|
throw new Error("Failed to load nozzle availability");
|
|
1494
1501
|
const r = await y.loader.executeLoader(
|
|
1495
|
-
|
|
1502
|
+
h.AvailabilityLoader,
|
|
1496
1503
|
{}
|
|
1497
1504
|
);
|
|
1498
|
-
e == null || e.set(
|
|
1505
|
+
e == null || e.set(h.AvailabilityLoader, r), e == null || e.set(Ne.type, this);
|
|
1499
1506
|
for (const s of Object.keys((a = t.data) == null ? void 0 : a.groups) || [])
|
|
1500
1507
|
for (const n of ((i = t.data) == null ? void 0 : i.groups[s]) || []) {
|
|
1501
|
-
const
|
|
1502
|
-
|
|
1508
|
+
const c = await y.dataMapper.executeMapper(
|
|
1509
|
+
h.AvailabilityMapper,
|
|
1503
1510
|
{ ...n, groupId: s },
|
|
1504
1511
|
r
|
|
1505
|
-
),
|
|
1512
|
+
), l = {
|
|
1506
1513
|
...n,
|
|
1507
1514
|
note: n.note ?? void 0,
|
|
1508
1515
|
kosParentId: this.id,
|
|
1509
1516
|
rawId: n.id,
|
|
1510
1517
|
groupId: s,
|
|
1511
|
-
data:
|
|
1518
|
+
data: c,
|
|
1512
1519
|
properties: n.properties || {}
|
|
1513
1520
|
}, p = Ee.factory(
|
|
1514
1521
|
`${this.id}-${s}-${n.id}`
|
|
1515
|
-
)(
|
|
1522
|
+
)(l);
|
|
1516
1523
|
this._availabilityItems.addModel(p);
|
|
1517
1524
|
}
|
|
1518
1525
|
this.updateGroupMembers();
|
|
1519
1526
|
}
|
|
1520
1527
|
async updateAvailability(e) {
|
|
1521
|
-
const t = wt.getContext(this.id), r = (t == null ? void 0 : t.get(
|
|
1528
|
+
const t = wt.getContext(this.id), r = (t == null ? void 0 : t.get(h.AvailabilityLoader)) || {};
|
|
1522
1529
|
if (e.rebuild)
|
|
1523
1530
|
for (const a of Object.keys(e == null ? void 0 : e.groups) || []) {
|
|
1524
1531
|
this._availabilityItems.getIndexByKey("group", a).filter(
|
|
@@ -1530,10 +1537,10 @@ let I = class {
|
|
|
1530
1537
|
});
|
|
1531
1538
|
for (const s of (e == null ? void 0 : e.groups[a]) || []) {
|
|
1532
1539
|
const n = await y.dataMapper.executeMapper(
|
|
1533
|
-
|
|
1540
|
+
h.AvailabilityMapper,
|
|
1534
1541
|
{ ...s, groupId: a },
|
|
1535
1542
|
r
|
|
1536
|
-
),
|
|
1543
|
+
), c = {
|
|
1537
1544
|
...s,
|
|
1538
1545
|
note: s.note ?? void 0,
|
|
1539
1546
|
kosParentId: this.id,
|
|
@@ -1542,15 +1549,15 @@ let I = class {
|
|
|
1542
1549
|
data: n,
|
|
1543
1550
|
taggedIds: s.taggedIds,
|
|
1544
1551
|
properties: s.properties || {}
|
|
1545
|
-
},
|
|
1552
|
+
}, l = this._availabilityItems.getModel(
|
|
1546
1553
|
`${this.id}-${a}-${s.id}`
|
|
1547
1554
|
);
|
|
1548
|
-
if (
|
|
1549
|
-
|
|
1555
|
+
if (l)
|
|
1556
|
+
l.updateModel(c);
|
|
1550
1557
|
else {
|
|
1551
1558
|
const p = Ee.factory(
|
|
1552
1559
|
`${this.id}-${a}-${s.id}`
|
|
1553
|
-
)(
|
|
1560
|
+
)(c);
|
|
1554
1561
|
this._availabilityItems.addModel(p);
|
|
1555
1562
|
}
|
|
1556
1563
|
}
|
|
@@ -1559,7 +1566,7 @@ let I = class {
|
|
|
1559
1566
|
for (const a of Object.keys(e == null ? void 0 : e.groups) || [])
|
|
1560
1567
|
for (const i of (e == null ? void 0 : e.groups[a]) || []) {
|
|
1561
1568
|
const s = await y.dataMapper.executeMapper(
|
|
1562
|
-
|
|
1569
|
+
h.AvailabilityMapper,
|
|
1563
1570
|
{ ...i, groupId: a },
|
|
1564
1571
|
r
|
|
1565
1572
|
), n = {
|
|
@@ -1572,10 +1579,10 @@ let I = class {
|
|
|
1572
1579
|
type: i.type,
|
|
1573
1580
|
taggedIds: i.taggedIds,
|
|
1574
1581
|
properties: i.properties || {}
|
|
1575
|
-
},
|
|
1582
|
+
}, c = this._availabilityItems.getModel(
|
|
1576
1583
|
`${this.id}-${a}-${i.id}`
|
|
1577
1584
|
);
|
|
1578
|
-
|
|
1585
|
+
c && c.updateModel(n);
|
|
1579
1586
|
}
|
|
1580
1587
|
this.updateGroupMembers();
|
|
1581
1588
|
}
|
|
@@ -1597,11 +1604,11 @@ E([
|
|
|
1597
1604
|
ye(d.POUR_CANCELING)
|
|
1598
1605
|
], I.prototype, "handleCanceled", 1);
|
|
1599
1606
|
E([
|
|
1600
|
-
|
|
1607
|
+
he(),
|
|
1601
1608
|
ae({ allowedStates: [d.IDLE] })
|
|
1602
1609
|
], I.prototype, "pour", 1);
|
|
1603
1610
|
E([
|
|
1604
|
-
|
|
1611
|
+
he(),
|
|
1605
1612
|
ae({ allowedStates: [d.IDLE] })
|
|
1606
1613
|
], I.prototype, "fixedPour", 1);
|
|
1607
1614
|
E([
|
|
@@ -1677,7 +1684,7 @@ let ce = class {
|
|
|
1677
1684
|
o(this, "id");
|
|
1678
1685
|
o(this, "deviceNozzles");
|
|
1679
1686
|
o(this, "logger");
|
|
1680
|
-
this.id = e, this.logger = r.logger, this.deviceNozzles = new
|
|
1687
|
+
this.id = e, this.logger = r.logger, this.deviceNozzles = new T();
|
|
1681
1688
|
}
|
|
1682
1689
|
// -------------------LIFECYCLE----------------------------
|
|
1683
1690
|
async init() {
|
|
@@ -1694,7 +1701,7 @@ let ce = class {
|
|
|
1694
1701
|
const e = await qe();
|
|
1695
1702
|
(e == null ? void 0 : e.status) === 200 && e.data.assemblies.map((r) => r.nozzles ?? []).flat().forEach((r) => {
|
|
1696
1703
|
var n;
|
|
1697
|
-
const a = r.path, i = ((n = r.pipelines.find((
|
|
1704
|
+
const a = r.path, i = ((n = r.pipelines.find((c) => c.name === "beverage")) == null ? void 0 : n.topicPrefix) || "", s = Ne.factory(a)({
|
|
1698
1705
|
path: r.path,
|
|
1699
1706
|
name: r.name,
|
|
1700
1707
|
urlPrefix: r.urlPrefix,
|
|
@@ -1714,23 +1721,23 @@ ce = ct([
|
|
|
1714
1721
|
const Jr = new Ct({
|
|
1715
1722
|
class: ce,
|
|
1716
1723
|
type: pt
|
|
1717
|
-
}), { URL:
|
|
1718
|
-
basePath: `${
|
|
1724
|
+
}), { URL: gt } = D("GENERIC_POUR_SERVICE"), { postModel: qr } = S.build({
|
|
1725
|
+
basePath: `${gt}/api/nozzle`
|
|
1719
1726
|
}), Wr = async (e, t) => {
|
|
1720
1727
|
const r = await qr({
|
|
1721
1728
|
model: {},
|
|
1722
|
-
urlOverride: `${
|
|
1729
|
+
urlOverride: `${gt}${e}`,
|
|
1723
1730
|
ordered: !0,
|
|
1724
1731
|
tracker: t
|
|
1725
1732
|
});
|
|
1726
|
-
return r != null && r.data &&
|
|
1733
|
+
return r != null && r.data && ge.initiateFuture(r.data), r;
|
|
1727
1734
|
};
|
|
1728
1735
|
var Qr = Object.defineProperty, ea = Object.getOwnPropertyDescriptor, A = (e, t, r, a) => {
|
|
1729
1736
|
for (var i = a > 1 ? void 0 : a ? ea(t, r) : t, s = e.length - 1, n; s >= 0; s--)
|
|
1730
1737
|
(n = e[s]) && (i = (a ? n(t, r, i) : n(i)) || i);
|
|
1731
1738
|
return a && i && Qr(t, r, i), i;
|
|
1732
1739
|
};
|
|
1733
|
-
const
|
|
1740
|
+
const ht = "generic-pour-model", ta = "/kos/generic/pour/started", ra = "/kos/generic/pour/progress", aa = "/kos/generic/pour/cancel", ve = (e) => e.onPourStart !== void 0 && e.onPourCancel !== void 0 && e.onPourProgress !== void 0;
|
|
1734
1741
|
let w = class {
|
|
1735
1742
|
constructor(e, t) {
|
|
1736
1743
|
o(this, "id");
|
|
@@ -1738,7 +1745,7 @@ let w = class {
|
|
|
1738
1745
|
o(this, "pourType");
|
|
1739
1746
|
o(this, "selectedId");
|
|
1740
1747
|
o(this, "state");
|
|
1741
|
-
this.id = e, this.futureHandler = new je(this), this.servicePathFactory = t.servicePathFactory, this.pourType = t.pourType || "free", this.selectedId = t.selectedId, this.state =
|
|
1748
|
+
this.id = e, this.futureHandler = new je(this), this.servicePathFactory = t.servicePathFactory, this.pourType = t.pourType || "free", this.selectedId = t.selectedId, this.state = Te(t.initialData || {});
|
|
1742
1749
|
}
|
|
1743
1750
|
get servicePath() {
|
|
1744
1751
|
return this.selectedId ? this.servicePathFactory(this.selectedId, this.state) : "";
|
|
@@ -1750,7 +1757,7 @@ let w = class {
|
|
|
1750
1757
|
delete this.state[e];
|
|
1751
1758
|
}
|
|
1752
1759
|
clearContextData() {
|
|
1753
|
-
this.state =
|
|
1760
|
+
this.state = Te();
|
|
1754
1761
|
}
|
|
1755
1762
|
updateModel(e) {
|
|
1756
1763
|
e.pourType && (this.pourType = e.pourType), e.initialData && this.state.setValues(e.initialData);
|
|
@@ -1861,7 +1868,7 @@ A([
|
|
|
1861
1868
|
ye(d.POUR_CANCELING)
|
|
1862
1869
|
], w.prototype, "handleCanceled", 1);
|
|
1863
1870
|
A([
|
|
1864
|
-
|
|
1871
|
+
he(),
|
|
1865
1872
|
ae({ allowedStates: [d.IDLE] })
|
|
1866
1873
|
], w.prototype, "pour", 1);
|
|
1867
1874
|
A([
|
|
@@ -1870,7 +1877,7 @@ A([
|
|
|
1870
1877
|
})
|
|
1871
1878
|
], w.prototype, "cancelPour", 1);
|
|
1872
1879
|
w = A([
|
|
1873
|
-
P(
|
|
1880
|
+
P(ht),
|
|
1874
1881
|
Fe(),
|
|
1875
1882
|
$t(),
|
|
1876
1883
|
He(
|
|
@@ -1910,9 +1917,9 @@ w = A([
|
|
|
1910
1917
|
}
|
|
1911
1918
|
)
|
|
1912
1919
|
], w);
|
|
1913
|
-
const
|
|
1920
|
+
const ga = new Nt({
|
|
1914
1921
|
class: w,
|
|
1915
|
-
type:
|
|
1922
|
+
type: ht
|
|
1916
1923
|
}), xe = {
|
|
1917
1924
|
...Ye.registration,
|
|
1918
1925
|
...Ve.registration,
|
|
@@ -1924,9 +1931,9 @@ const ha = new Nt({
|
|
|
1924
1931
|
...Ee.registration,
|
|
1925
1932
|
...lt.registration,
|
|
1926
1933
|
...it.registration
|
|
1927
|
-
}, ia = (e) => () => (
|
|
1934
|
+
}, ia = (e) => () => (St(e)(), Jr.register(), Object.keys(xe).forEach((t) => {
|
|
1928
1935
|
const r = xe[t];
|
|
1929
|
-
|
|
1936
|
+
Tt(e)(t, r);
|
|
1930
1937
|
}), y[te].register(
|
|
1931
1938
|
"FirmwareUpdateInProgressTrouble",
|
|
1932
1939
|
async (t) => {
|
|
@@ -1961,19 +1968,19 @@ f.preload = R.model.preloadModel(f);
|
|
|
1961
1968
|
f.model = R.model.register(f);
|
|
1962
1969
|
f.companion = R.companion.register(f);
|
|
1963
1970
|
f.legacy = R.model.registerLegacyModel(f);
|
|
1964
|
-
const
|
|
1971
|
+
const ha = f;
|
|
1965
1972
|
export {
|
|
1966
1973
|
lt as A,
|
|
1967
1974
|
B,
|
|
1968
|
-
|
|
1975
|
+
Sr as C,
|
|
1969
1976
|
L as D,
|
|
1970
|
-
|
|
1977
|
+
h as E,
|
|
1971
1978
|
wr as F,
|
|
1972
|
-
|
|
1979
|
+
ga as G,
|
|
1973
1980
|
Je as H,
|
|
1974
1981
|
Ve as I,
|
|
1975
1982
|
Mr as J,
|
|
1976
|
-
|
|
1983
|
+
ha as K,
|
|
1977
1984
|
Fr as L,
|
|
1978
1985
|
Gr as M,
|
|
1979
1986
|
Ne as N,
|
|
@@ -1983,7 +1990,7 @@ export {
|
|
|
1983
1990
|
jr as R,
|
|
1984
1991
|
Wr as S,
|
|
1985
1992
|
We as T,
|
|
1986
|
-
|
|
1993
|
+
Tr as a,
|
|
1987
1994
|
Ee as b,
|
|
1988
1995
|
Qe as c,
|
|
1989
1996
|
it as d,
|
|
@@ -2010,4 +2017,4 @@ export {
|
|
|
2010
2017
|
Kt as y,
|
|
2011
2018
|
qe as z
|
|
2012
2019
|
};
|
|
2013
|
-
//# sourceMappingURL=dispense-registration-manager-
|
|
2020
|
+
//# sourceMappingURL=dispense-registration-manager-Cl2UbU1m.js.map
|