@kosdev-code/kos-dispense-sdk 2.1.32 → 2.1.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/{dispense-registration-manager-CcFUS_KM.js → dispense-registration-manager-Cl2UbU1m.js} +161 -158
  2. package/{dispense-registration-manager-CcFUS_KM.js.map → dispense-registration-manager-Cl2UbU1m.js.map} +1 -1
  3. package/dispense-registration-manager-DK1ePXkY.cjs +2 -0
  4. package/{dispense-registration-manager-BkJ1ggtS.cjs.map → dispense-registration-manager-DK1ePXkY.cjs.map} +1 -1
  5. package/extension-utils-CAqmOmVh.cjs +2 -0
  6. package/extension-utils-CAqmOmVh.cjs.map +1 -0
  7. package/{extension-utils-DeLiIgFH.js → extension-utils-CECRZtAt.js} +149 -66
  8. package/extension-utils-CECRZtAt.js.map +1 -0
  9. package/index.cjs +1 -1
  10. package/index.js +3 -3
  11. package/models/models/nozzle/nozzle-model.d.ts +2 -2
  12. package/models/models/nozzle/nozzle-model.d.ts.map +1 -1
  13. package/models/utils/extension-utils.d.ts +90 -18
  14. package/models/utils/extension-utils.d.ts.map +1 -1
  15. package/models/utils/service.d.ts +8 -8
  16. package/models/utils/services/dispense/1.6.5/service.d.ts +8 -8
  17. package/models/utils/services/dispense/1.8.1/service.d.ts +8 -8
  18. package/models/utils/services/dispense/daily/service.d.ts +8 -8
  19. package/models.cjs +1 -1
  20. package/models.js +2 -2
  21. package/package.json +2 -2
  22. package/pump-provider-C-6CuGgY.cjs +2 -0
  23. package/pump-provider-C-6CuGgY.cjs.map +1 -0
  24. package/{pump-provider-BTnIydH2.js → pump-provider-DoK4li3d.js} +247 -241
  25. package/pump-provider-DoK4li3d.js.map +1 -0
  26. package/ui/hooks/cui-kit/use-beverages.d.ts +1 -1
  27. package/ui/hooks/cui-kit/use-beverages.d.ts.map +1 -1
  28. package/ui/hooks/cui-kit/use-brands.d.ts +1 -1
  29. package/ui/hooks/cui-kit/use-brands.d.ts.map +1 -1
  30. package/ui/hooks/cui-kit/use-cui-kit.d.ts +1 -1
  31. package/ui/hooks/cui-kit/use-cui-kit.d.ts.map +1 -1
  32. package/ui/hooks/cui-kit/use-flavors.d.ts +1 -1
  33. package/ui/hooks/cui-kit/use-flavors.d.ts.map +1 -1
  34. package/ui.cjs +1 -1
  35. package/ui.js +2 -2
  36. package/dispense-registration-manager-BkJ1ggtS.cjs +0 -2
  37. package/extension-utils-DUV7OQR1.cjs +0 -2
  38. package/extension-utils-DUV7OQR1.cjs.map +0 -1
  39. package/extension-utils-DeLiIgFH.js.map +0 -1
  40. package/pump-provider-BTnIydH2.js.map +0 -1
  41. package/pump-provider-BUfMtaXv.cjs +0 -2
  42. package/pump-provider-BUfMtaXv.cjs.map +0 -1
@@ -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 T, KosLog as m, KosModelContainer as S, 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 he, kosFuture as ge, 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 Se, KosModelRegistrationFactory as Nt, KosModelRegistry as Dt, RegistrationManager as R, registerCoreModels as Tt, registerLegacyModel as St } from "@kosdev-code/kos-ui-sdk";
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 g = /* @__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))(g || {}), 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) => {
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 } = T.build({
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 S({
67
+ this.id = e, this.ingredients = new T({
68
68
  indexMap: {
69
69
  ingredientType: "type"
70
70
  },
71
- extensionId: g.IngredientIndex,
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: g.IngredientLoader
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 l = await U.executeDataMapperExtension({
94
- extension: g.IngredientMapper,
93
+ const c = await U.executeDataMapperExtension({
94
+ extension: h.IngredientMapper,
95
95
  data: n,
96
96
  contextData: r
97
- }), c = await U.executePropertyMapperExtension({
98
- extension: g.IngredientTypeMapper,
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: c || n.type,
104
- ...l,
105
- data: l
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 } = T.build({
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 } = T.build({
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, l;
162
+ var i, s, n, c;
163
163
  const r = JSON.stringify(t), a = `${ne}/api/ext/dispense/assignments`;
164
164
  try {
165
- const c = await Xe({
165
+ const l = await Xe({
166
166
  model: { holderPath: e, factoryJson: r },
167
167
  urlOverride: a
168
168
  });
169
- return (c == null ? void 0 : c.status) === 200 && ((i = c == null ? void 0 : c.data) != null && i.error) ? [c.data.error || "unknownError", c.data] : [void 0, c == null ? void 0 : c.data];
170
- } catch (c) {
171
- if (c instanceof Pt)
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 = c.payload) == null ? void 0 : s.data) == null ? void 0 : n.error) || "unknownError",
174
- (l = c.payload) == null ? void 0 : l.data
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: l,
254
- data: c,
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 = l, this.slice = n, this.enjoyByDate = p, this.data = c, this.pumps = new S({
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: l,
284
- data: c
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 = l, this.slice = n, this.group = s, this.data = c;
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 Te;
455
+ var Se;
456
456
  const r = y.propertyMapper.executeMapper(
457
- g.HolderIngredientMapper,
457
+ h.HolderIngredientMapper,
458
458
  t
459
459
  ), a = y.propertyMapper.executeMapper(
460
- g.HolderTypeMapper,
460
+ h.HolderTypeMapper,
461
461
  t
462
462
  ) || t.ingType, i = await U.executeDataMapperExtension({
463
- extension: g.HolderMapper,
463
+ extension: h.HolderMapper,
464
464
  data: t,
465
465
  contextData: {}
466
- }), { name: s, path: n, ingredientId: l, ingType: c, ingSource: p, slice: u, ...F } = t, h = { ...F, ...i }, M = u || { pos: 0 }, C = {
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 || l,
470
- ingredientType: a || c,
469
+ ingredientId: r || c,
470
+ ingredientType: a || l,
471
471
  ingredientSource: p,
472
- enjoyByDate: (Te = t.container) != null && Te.enjoyByDate ? new Date(t.container.enjoyByDate) : void 0,
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: h
475
+ data: g
476
476
  };
477
477
  return Je.factory(t.path)(C);
478
- }, { URL: er } = D("ASSEMBLY_SERVICE"), { getOne: tr } = T.build({
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 S({
495
+ this.id = e, this.logger = r.logger, this.models = new T({
496
496
  parentId: e,
497
- extensionId: g.BoardIndex
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 S({
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: g.PumpIndex
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
- (l) => rt(l.path)
646
+ (c) => rt(c.path)
647
647
  );
648
- (await Promise.allSettled(s)).forEach((l) => {
649
- l.status === "fulfilled" && l.value.forEach((c) => t.push(c));
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: l, ...c } = e;
661
- t.type = r, t.name = a, t.path = i, t.linked = s, t.link = Object.freeze(l), t.instanceId = n, Object.assign(t, c);
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 hr = Object.defineProperty, gr = Object.getOwnPropertyDescriptor, me = (e, t, r, a) => {
721
- for (var i = a > 1 ? void 0 : a ? gr(t, r) : t, s = e.length - 1, n; s >= 0; s--)
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 && hr(t, r, i), 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 S({
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: g.HolderIndex
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, l;
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, (l = r == null ? void 0 : r.container) != null && l.enjoyByDate ? i.enjoyByDate = new Date(r.container.enjoyByDate) : i.enjoyByDate = void 0, r.pumps.forEach((c) => {
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(c.path);
764
- p && (p.ingredientId = c.ingredientId, p.inserted = c.inserted, p.prevIngredientId = c.prevIngredientId);
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: g.BoardMapper,
811
+ extension: h.BoardMapper,
812
812
  data: e,
813
813
  contextData: {}
814
- }), { type: r, name: a, path: i, linked: s, instanceId: n, ...l } = e, c = { ...l, ...t }, p = {
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
- ...c
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 } = T.build({
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 && he.initiateFuture(i.data), i;
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: l,
882
- childPump: c,
881
+ path: c,
882
+ childPump: l,
883
883
  virtual: p,
884
884
  prevIngredientId: u,
885
885
  state: F,
886
- ...h
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 = l, this.childPump = !!c, this.virtual = !!p, this.prevIngredientId = u, this.state = F, Object.assign(this, h), this.futureHandler = new je(this);
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: l,
899
- ...c
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 = l, this.prevIngredientId = e.prevIngredientId, Object.assign(this, c);
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
- ge()
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, l = t.holders.getModel(n);
995
- l == null || l.pumps.addModel(s), l != null && l.nozzlePaths.includes(r.path) || l == null || l.nozzlePaths.push(r.path), (i = a == null ? void 0 : a.pumps) == null || i.forEach((c) => {
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
- ...c,
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", Tr = "assembly-data", Sr = "assembly-raw-data";
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
- g.AssemblyFeatureFlags,
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: g.AssemblyMapper,
1076
+ extension: h.AssemblyMapper,
1077
1077
  data: t.data,
1078
1078
  contextData: {}
1079
1079
  });
1080
- e.set(Tr, r), Object.assign(this, r), Object.entries(r).forEach(([a, i]) => {
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(Sr, t.data);
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: l,
1089
- name: c,
1088
+ core: c,
1089
+ name: l,
1090
1090
  path: p,
1091
1091
  ...u
1092
1092
  } = a;
1093
- this.logger.debug(`adding assembly ${c}`), this.logger.warn(`Assembly rest keys: ${Object.keys(u).join(", ")}`), Object.keys(u).forEach((h) => {
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: ${h}`), bt.enableFeature(h), e.set(`assembly-feature-${h}`, u[h]), ((M = u[h].state) == null ? void 0 : M.path) !== void 0) {
1096
- const C = u[h].state.path;
1097
- this.logger.warn(`Feature flag ${h} state path: ${C}`), e.set(`assembly-state-path-${h}`, C);
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 h of i)
1101
- this.logger.debug(`adding board ${h.name}`), await Or(this.boardContainer)(h);
1102
- for await (const [h, M] of Object.entries(
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(h, C);
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((h) => {
1114
- this._nozzlePaths.add(h.path);
1115
- const M = F(h);
1116
- h.pumps.forEach(M);
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 } = T.build({
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 && he.initiateFuture(r.data), r;
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 && he.initiateFuture(a.data), a;
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 S({
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"
@@ -1316,8 +1316,8 @@ let I = class {
1316
1316
  updateModel() {
1317
1317
  }
1318
1318
  // -------------------LIFECYCLE----------------------------
1319
- setSelectedBrand(e) {
1320
- this._selectedBrand = e, this._selectedBeverage = void 0;
1319
+ setSelectedBrand(e, t) {
1320
+ t && this.logger.debug("context is currenty being ignored when setting brand"), this._selectedBrand = e, this._selectedBeverage = void 0;
1321
1321
  }
1322
1322
  get selectedBrand() {
1323
1323
  return this._selectedBrand;
@@ -1330,11 +1330,7 @@ let I = class {
1330
1330
  * @param pourable.additional The additional items such as flavors or other items that could be incorporated
1331
1331
  * into the pourable.
1332
1332
  * */
1333
- async setSelectedPourable({
1334
- beverage: e,
1335
- additional: t,
1336
- context: r
1337
- }) {
1333
+ async setSelectedPourable({ beverage: e, additional: t, context: r }, a = !1) {
1338
1334
  if (!e) {
1339
1335
  const l = await Fr(this.name);
1340
1336
  if ((l == null ? void 0 : l.status) !== 200)
@@ -1342,27 +1338,34 @@ let I = class {
1342
1338
  this._selectedBeverage = void 0;
1343
1339
  return;
1344
1340
  }
1345
- if (e === this._selectedBeverage && Mt(this._additionalItems, t)) {
1341
+ if (!a && e === this._selectedBeverage && Mt(this._additionalItems, t)) {
1346
1342
  this.logger.info("No change in selected pourable");
1347
1343
  return;
1348
1344
  }
1349
1345
  this._selectedBeverage = e, this._additionalItems = t;
1350
- let a = await y.dataMapper.executeMapper(
1351
- g.SelectedPourableMapper,
1352
- {
1353
- beverage: e,
1354
- additional: t,
1355
- context: r
1356
- }
1357
- );
1358
- const i = {
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
+ }
1361
+ const s = {
1359
1362
  bevId: e.rawId
1360
1363
  };
1361
- (!a || Object.keys(a).length === 0) && (this.logger.info(
1362
- `No selected pourable mapper defined, using the default payload ${i}`
1363
- ), a = i);
1364
- const s = a ?? i, n = await jr(this.name, s);
1365
- if ((n == null ? void 0 : n.status) !== 200)
1364
+ (!i || Object.keys(i).length === 0) && (this.logger.info(
1365
+ `No selected pourable mapper defined, using the default payload ${s}`
1366
+ ), i = s);
1367
+ const n = i ?? s, c = await jr(this.name, n);
1368
+ if ((c == null ? void 0 : c.status) !== 200)
1366
1369
  throw new Error("Failed to select pourable");
1367
1370
  }
1368
1371
  /**
@@ -1496,33 +1499,33 @@ let I = class {
1496
1499
  if ((t == null ? void 0 : t.status) !== 200)
1497
1500
  throw new Error("Failed to load nozzle availability");
1498
1501
  const r = await y.loader.executeLoader(
1499
- g.AvailabilityLoader,
1502
+ h.AvailabilityLoader,
1500
1503
  {}
1501
1504
  );
1502
- e == null || e.set(g.AvailabilityLoader, r), e == null || e.set(Ne.type, this);
1505
+ e == null || e.set(h.AvailabilityLoader, r), e == null || e.set(Ne.type, this);
1503
1506
  for (const s of Object.keys((a = t.data) == null ? void 0 : a.groups) || [])
1504
1507
  for (const n of ((i = t.data) == null ? void 0 : i.groups[s]) || []) {
1505
- const l = await y.dataMapper.executeMapper(
1506
- g.AvailabilityMapper,
1508
+ const c = await y.dataMapper.executeMapper(
1509
+ h.AvailabilityMapper,
1507
1510
  { ...n, groupId: s },
1508
1511
  r
1509
- ), c = {
1512
+ ), l = {
1510
1513
  ...n,
1511
1514
  note: n.note ?? void 0,
1512
1515
  kosParentId: this.id,
1513
1516
  rawId: n.id,
1514
1517
  groupId: s,
1515
- data: l,
1518
+ data: c,
1516
1519
  properties: n.properties || {}
1517
1520
  }, p = Ee.factory(
1518
1521
  `${this.id}-${s}-${n.id}`
1519
- )(c);
1522
+ )(l);
1520
1523
  this._availabilityItems.addModel(p);
1521
1524
  }
1522
1525
  this.updateGroupMembers();
1523
1526
  }
1524
1527
  async updateAvailability(e) {
1525
- const t = wt.getContext(this.id), r = (t == null ? void 0 : t.get(g.AvailabilityLoader)) || {};
1528
+ const t = wt.getContext(this.id), r = (t == null ? void 0 : t.get(h.AvailabilityLoader)) || {};
1526
1529
  if (e.rebuild)
1527
1530
  for (const a of Object.keys(e == null ? void 0 : e.groups) || []) {
1528
1531
  this._availabilityItems.getIndexByKey("group", a).filter(
@@ -1534,10 +1537,10 @@ let I = class {
1534
1537
  });
1535
1538
  for (const s of (e == null ? void 0 : e.groups[a]) || []) {
1536
1539
  const n = await y.dataMapper.executeMapper(
1537
- g.AvailabilityMapper,
1540
+ h.AvailabilityMapper,
1538
1541
  { ...s, groupId: a },
1539
1542
  r
1540
- ), l = {
1543
+ ), c = {
1541
1544
  ...s,
1542
1545
  note: s.note ?? void 0,
1543
1546
  kosParentId: this.id,
@@ -1546,15 +1549,15 @@ let I = class {
1546
1549
  data: n,
1547
1550
  taggedIds: s.taggedIds,
1548
1551
  properties: s.properties || {}
1549
- }, c = this._availabilityItems.getModel(
1552
+ }, l = this._availabilityItems.getModel(
1550
1553
  `${this.id}-${a}-${s.id}`
1551
1554
  );
1552
- if (c)
1553
- c.updateModel(l);
1555
+ if (l)
1556
+ l.updateModel(c);
1554
1557
  else {
1555
1558
  const p = Ee.factory(
1556
1559
  `${this.id}-${a}-${s.id}`
1557
- )(l);
1560
+ )(c);
1558
1561
  this._availabilityItems.addModel(p);
1559
1562
  }
1560
1563
  }
@@ -1563,7 +1566,7 @@ let I = class {
1563
1566
  for (const a of Object.keys(e == null ? void 0 : e.groups) || [])
1564
1567
  for (const i of (e == null ? void 0 : e.groups[a]) || []) {
1565
1568
  const s = await y.dataMapper.executeMapper(
1566
- g.AvailabilityMapper,
1569
+ h.AvailabilityMapper,
1567
1570
  { ...i, groupId: a },
1568
1571
  r
1569
1572
  ), n = {
@@ -1576,10 +1579,10 @@ let I = class {
1576
1579
  type: i.type,
1577
1580
  taggedIds: i.taggedIds,
1578
1581
  properties: i.properties || {}
1579
- }, l = this._availabilityItems.getModel(
1582
+ }, c = this._availabilityItems.getModel(
1580
1583
  `${this.id}-${a}-${i.id}`
1581
1584
  );
1582
- l && l.updateModel(n);
1585
+ c && c.updateModel(n);
1583
1586
  }
1584
1587
  this.updateGroupMembers();
1585
1588
  }
@@ -1601,11 +1604,11 @@ E([
1601
1604
  ye(d.POUR_CANCELING)
1602
1605
  ], I.prototype, "handleCanceled", 1);
1603
1606
  E([
1604
- ge(),
1607
+ he(),
1605
1608
  ae({ allowedStates: [d.IDLE] })
1606
1609
  ], I.prototype, "pour", 1);
1607
1610
  E([
1608
- ge(),
1611
+ he(),
1609
1612
  ae({ allowedStates: [d.IDLE] })
1610
1613
  ], I.prototype, "fixedPour", 1);
1611
1614
  E([
@@ -1681,7 +1684,7 @@ let ce = class {
1681
1684
  o(this, "id");
1682
1685
  o(this, "deviceNozzles");
1683
1686
  o(this, "logger");
1684
- this.id = e, this.logger = r.logger, this.deviceNozzles = new S();
1687
+ this.id = e, this.logger = r.logger, this.deviceNozzles = new T();
1685
1688
  }
1686
1689
  // -------------------LIFECYCLE----------------------------
1687
1690
  async init() {
@@ -1698,7 +1701,7 @@ let ce = class {
1698
1701
  const e = await qe();
1699
1702
  (e == null ? void 0 : e.status) === 200 && e.data.assemblies.map((r) => r.nozzles ?? []).flat().forEach((r) => {
1700
1703
  var n;
1701
- const a = r.path, i = ((n = r.pipelines.find((l) => l.name === "beverage")) == null ? void 0 : n.topicPrefix) || "", s = Ne.factory(a)({
1704
+ const a = r.path, i = ((n = r.pipelines.find((c) => c.name === "beverage")) == null ? void 0 : n.topicPrefix) || "", s = Ne.factory(a)({
1702
1705
  path: r.path,
1703
1706
  name: r.name,
1704
1707
  urlPrefix: r.urlPrefix,
@@ -1718,23 +1721,23 @@ ce = ct([
1718
1721
  const Jr = new Ct({
1719
1722
  class: ce,
1720
1723
  type: pt
1721
- }), { URL: ht } = D("GENERIC_POUR_SERVICE"), { postModel: qr } = T.build({
1722
- basePath: `${ht}/api/nozzle`
1724
+ }), { URL: gt } = D("GENERIC_POUR_SERVICE"), { postModel: qr } = S.build({
1725
+ basePath: `${gt}/api/nozzle`
1723
1726
  }), Wr = async (e, t) => {
1724
1727
  const r = await qr({
1725
1728
  model: {},
1726
- urlOverride: `${ht}${e}`,
1729
+ urlOverride: `${gt}${e}`,
1727
1730
  ordered: !0,
1728
1731
  tracker: t
1729
1732
  });
1730
- return r != null && r.data && he.initiateFuture(r.data), r;
1733
+ return r != null && r.data && ge.initiateFuture(r.data), r;
1731
1734
  };
1732
1735
  var Qr = Object.defineProperty, ea = Object.getOwnPropertyDescriptor, A = (e, t, r, a) => {
1733
1736
  for (var i = a > 1 ? void 0 : a ? ea(t, r) : t, s = e.length - 1, n; s >= 0; s--)
1734
1737
  (n = e[s]) && (i = (a ? n(t, r, i) : n(i)) || i);
1735
1738
  return a && i && Qr(t, r, i), i;
1736
1739
  };
1737
- const gt = "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;
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;
1738
1741
  let w = class {
1739
1742
  constructor(e, t) {
1740
1743
  o(this, "id");
@@ -1742,7 +1745,7 @@ let w = class {
1742
1745
  o(this, "pourType");
1743
1746
  o(this, "selectedId");
1744
1747
  o(this, "state");
1745
- this.id = e, this.futureHandler = new je(this), this.servicePathFactory = t.servicePathFactory, this.pourType = t.pourType || "free", this.selectedId = t.selectedId, this.state = Se(t.initialData || {});
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 || {});
1746
1749
  }
1747
1750
  get servicePath() {
1748
1751
  return this.selectedId ? this.servicePathFactory(this.selectedId, this.state) : "";
@@ -1754,7 +1757,7 @@ let w = class {
1754
1757
  delete this.state[e];
1755
1758
  }
1756
1759
  clearContextData() {
1757
- this.state = Se();
1760
+ this.state = Te();
1758
1761
  }
1759
1762
  updateModel(e) {
1760
1763
  e.pourType && (this.pourType = e.pourType), e.initialData && this.state.setValues(e.initialData);
@@ -1865,7 +1868,7 @@ A([
1865
1868
  ye(d.POUR_CANCELING)
1866
1869
  ], w.prototype, "handleCanceled", 1);
1867
1870
  A([
1868
- ge(),
1871
+ he(),
1869
1872
  ae({ allowedStates: [d.IDLE] })
1870
1873
  ], w.prototype, "pour", 1);
1871
1874
  A([
@@ -1874,7 +1877,7 @@ A([
1874
1877
  })
1875
1878
  ], w.prototype, "cancelPour", 1);
1876
1879
  w = A([
1877
- P(gt),
1880
+ P(ht),
1878
1881
  Fe(),
1879
1882
  $t(),
1880
1883
  He(
@@ -1914,9 +1917,9 @@ w = A([
1914
1917
  }
1915
1918
  )
1916
1919
  ], w);
1917
- const ha = new Nt({
1920
+ const ga = new Nt({
1918
1921
  class: w,
1919
- type: gt
1922
+ type: ht
1920
1923
  }), xe = {
1921
1924
  ...Ye.registration,
1922
1925
  ...Ve.registration,
@@ -1928,9 +1931,9 @@ const ha = new Nt({
1928
1931
  ...Ee.registration,
1929
1932
  ...lt.registration,
1930
1933
  ...it.registration
1931
- }, ia = (e) => () => (Tt(e)(), Jr.register(), Object.keys(xe).forEach((t) => {
1934
+ }, ia = (e) => () => (St(e)(), Jr.register(), Object.keys(xe).forEach((t) => {
1932
1935
  const r = xe[t];
1933
- St(e)(t, r);
1936
+ Tt(e)(t, r);
1934
1937
  }), y[te].register(
1935
1938
  "FirmwareUpdateInProgressTrouble",
1936
1939
  async (t) => {
@@ -1965,19 +1968,19 @@ f.preload = R.model.preloadModel(f);
1965
1968
  f.model = R.model.register(f);
1966
1969
  f.companion = R.companion.register(f);
1967
1970
  f.legacy = R.model.registerLegacyModel(f);
1968
- const ga = f;
1971
+ const ha = f;
1969
1972
  export {
1970
1973
  lt as A,
1971
1974
  B,
1972
- Tr as C,
1975
+ Sr as C,
1973
1976
  L as D,
1974
- g as E,
1977
+ h as E,
1975
1978
  wr as F,
1976
- ha as G,
1979
+ ga as G,
1977
1980
  Je as H,
1978
1981
  Ve as I,
1979
1982
  Mr as J,
1980
- ga as K,
1983
+ ha as K,
1981
1984
  Fr as L,
1982
1985
  Gr as M,
1983
1986
  Ne as N,
@@ -1987,7 +1990,7 @@ export {
1987
1990
  jr as R,
1988
1991
  Wr as S,
1989
1992
  We as T,
1990
- Sr as a,
1993
+ Tr as a,
1991
1994
  Ee as b,
1992
1995
  Qe as c,
1993
1996
  it as d,
@@ -2014,4 +2017,4 @@ export {
2014
2017
  Kt as y,
2015
2018
  qe as z
2016
2019
  };
2017
- //# sourceMappingURL=dispense-registration-manager-CcFUS_KM.js.map
2020
+ //# sourceMappingURL=dispense-registration-manager-Cl2UbU1m.js.map