@kosdev-code/kos-dispense-sdk 2.1.20 → 2.1.22

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/models.js CHANGED
@@ -1,5 +1,5 @@
1
- import { A as o, b as i, e as n, d as t, B as l, C as d, a as A, f as p, D as m, E as D, G as T, H as c, g, I as S, h as u, K as C, N as E, k as P, P as y, i as I, j as M, T as _, c as v, l as B, r as N } from "./dispense-registration-manager-DgMTZL-g.js";
2
- import { i as x, f as K, D as O, a as f, b as z, c as G, K as H, d as L, e as R, g as k } from "./extension-utils-mvxA4D4h.js";
1
+ import { A as o, b as i, e as n, d as t, B as l, C as E, a as C, f as _, D as d, E as A, G as P, H as T, j as I, I as p, k as S, K as m, N as D, n as O, P as R, l as N, m as c, T as g, c as u, g as y, h as M, i as v, o as B, r as G } from "./dispense-registration-manager-C36ULeOU.js";
2
+ import { i as x, f as K, D as L, a as f, b as z, c as H, K as U, d as k, e as X, g as Y } from "./extension-utils-dTIk56MQ.js";
3
3
  import "@kosdev-code/kos-ui-sdk";
4
4
  import "react";
5
5
  export {
@@ -10,33 +10,36 @@ export {
10
10
  n as Board,
11
11
  t as BoardContainer,
12
12
  l as BoardContainerModel,
13
- d as CONTEXT_ASSEMBLY_DATA,
14
- A as CONTEXT_ASSEMBLY_RAW_DATA,
15
- p as DeviceAssembly,
16
- O as DispenseExtensionManager,
17
- m as DispenseModelType,
18
- D as ExtensionType,
19
- T as GenericPour,
13
+ E as CONTEXT_ASSEMBLY_DATA,
14
+ C as CONTEXT_ASSEMBLY_RAW_DATA,
15
+ _ as DeviceAssembly,
16
+ L as DispenseExtensionManager,
17
+ d as DispenseModelType,
18
+ A as ExtensionType,
19
+ P as GenericPour,
20
20
  f as GenericPourServices,
21
- c as Holder,
22
- g as HolderContainer,
21
+ T as Holder,
22
+ I as HolderContainer,
23
23
  z as HolderServices,
24
- S as Ingredient,
25
- u as IngredientContainer,
26
- G as IngredientServices,
27
- H as KosExtensionManager,
28
- C as KosModelRegistry,
29
- E as Nozzle,
30
- L as NozzleServices,
31
- P as PourState,
32
- y as Pump,
33
- I as PumpContainer,
34
- M as PumpIndex,
35
- R as PumpServices,
36
- _ as TOPIC_BOARD_LINKED,
37
- v as TOPIC_BOARD_UNLINKED,
38
- k as getFuelGaugeValue,
24
+ p as Ingredient,
25
+ S as IngredientContainer,
26
+ H as IngredientServices,
27
+ U as KosExtensionManager,
28
+ m as KosModelRegistry,
29
+ D as Nozzle,
30
+ k as NozzleServices,
31
+ O as PourState,
32
+ R as Pump,
33
+ N as PumpContainer,
34
+ c as PumpIndex,
35
+ X as PumpServices,
36
+ g as TOPIC_BOARD_LINKED,
37
+ u as TOPIC_BOARD_UNLINKED,
38
+ y as TOPIC_GENERIC_POUR_CANCEL,
39
+ M as TOPIC_GENERIC_POUR_PROGRESS,
40
+ v as TOPIC_GENERIC_POUR_STARTED,
41
+ Y as getFuelGaugeValue,
39
42
  B as kosModels,
40
- N as registerDispenseModels
43
+ G as registerDispenseModels
41
44
  };
42
45
  //# sourceMappingURL=models.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kosdev-code/kos-dispense-sdk",
3
- "version": "2.1.20",
3
+ "version": "2.1.22",
4
4
  "type": "module",
5
5
  "types": "./index.d.ts",
6
6
  "main": "./index.js",
@@ -33,7 +33,7 @@
33
33
  },
34
34
  "kos": {
35
35
  "build": {
36
- "gitHash": "21d74bd5b3b2a8206284fa74551b078c7f951398"
36
+ "gitHash": "14929950a1c351744473e8cb80a2b0ec2364c590"
37
37
  }
38
38
  }
39
39
  }
@@ -5,7 +5,7 @@ import { jsx as m } from "@emotion/react/jsx-runtime";
5
5
  import { GenericPour as ct } from "@kosdev-code/kos-dispense-sdk";
6
6
  import { useKosModel as S, getKosCompanionModel as we, kosAutoEffect as Be, KosLog as T, usePressGesture as Te, EventBus as g, TimerManager as ye } from "@kosdev-code/kos-ui-sdk";
7
7
  import dt, { createContext as L, useMemo as A, useContext as N, useState as x, useCallback as c, useEffect as F, useRef as de } from "react";
8
- import { A as Ae, b as ke, e as ut, d as Ee, N as lt, f as Ce, H as mt, g as Se, I as Ne, h as He, P as Ke } from "./dispense-registration-manager-DgMTZL-g.js";
8
+ import { A as Ae, b as ke, e as ut, d as Ee, N as lt, f as Ce, H as mt, j as Se, I as Ne, k as He, P as Ke } from "./dispense-registration-manager-C36ULeOU.js";
9
9
  const De = () => {
10
10
  const e = Ae.type;
11
11
  return S({
@@ -65,7 +65,7 @@ const Ye = (e) => S({
65
65
  options: {
66
66
  path: e
67
67
  }
68
- }), Fe = L(void 0), ht = ({ children: e, path: t }) => {
68
+ }), Fe = L(void 0), pt = ({ children: e, path: t }) => {
69
69
  const { model: s, ready: n } = Ye(t), r = A(() => n && s ? { model: s } : {}, [n, s]);
70
70
  return /* @__PURE__ */ m(Fe.Provider, { value: r, children: e });
71
71
  }, _ = () => {
@@ -73,7 +73,7 @@ const Ye = (e) => S({
73
73
  if (!e)
74
74
  throw new Error("useNozzleContext must be used within a NozzleProvider");
75
75
  return e;
76
- }, pt = ({
76
+ }, ht = ({
77
77
  onBeverageSelected: e,
78
78
  onClearBeverage: t,
79
79
  companionType: s
@@ -94,7 +94,7 @@ const Ye = (e) => S({
94
94
  return;
95
95
  const $ = n.selectedBrand;
96
96
  if (!$) {
97
- const b = n.getGroupAvailabilityItems("beverages").filter((h) => h.visible);
97
+ const b = n.getGroupAvailabilityItems("beverages").filter((p) => p.visible);
98
98
  a(b ?? []);
99
99
  return;
100
100
  }
@@ -199,20 +199,20 @@ const bt = T.createLogger({
199
199
  d,
200
200
  n
201
201
  ]), u = c(() => {
202
- var h;
202
+ var p;
203
203
  ae.debug(
204
204
  `[${a == null ? void 0 : a.name}] - Pour initiate ended called for nozzle ${i == null ? void 0 : i.id}.`
205
- ), (h = a == null ? void 0 : a.initiateEnded) == null || h.call(a, i), t == null || t();
205
+ ), (p = a == null ? void 0 : a.initiateEnded) == null || p.call(a, i), t == null || t();
206
206
  }, [t, i, a]), l = c(() => {
207
207
  ae.debug(`Force cancelling pour for nozzle ${i == null ? void 0 : i.id}.`), i == null || i.cancelPour(), t == null || t();
208
208
  }, [t, i]), $ = c(
209
- (h, o) => {
210
- d.set(h, o);
209
+ (p, o) => {
210
+ d.set(p, o);
211
211
  },
212
212
  [d]
213
213
  ), w = c(
214
- (h) => {
215
- d.remove(h);
214
+ (p) => {
215
+ d.remove(p);
216
216
  },
217
217
  [d]
218
218
  );
@@ -269,51 +269,51 @@ const bt = T.createLogger({
269
269
  }) => {
270
270
  var re, ne, ie;
271
271
  const [s, n] = x(e), { model: r } = _(), a = de([]), i = de(), d = de(), v = c(
272
- (p) => {
272
+ (h) => {
273
273
  n(ee);
274
274
  const I = `/kos/dispense/${r == null ? void 0 : r.path}/brand/selected/`;
275
- g.publish(I, p);
275
+ g.publish(I, h);
276
276
  },
277
277
  [r == null ? void 0 : r.path]
278
278
  ), f = c(() => {
279
- const p = `/kos/dispense/${r == null ? void 0 : r.path}/brand/cleared/`;
280
- g.publish(p, {});
279
+ const h = `/kos/dispense/${r == null ? void 0 : r.path}/brand/cleared/`;
280
+ g.publish(h, {});
281
281
  }, [r == null ? void 0 : r.path]), u = c(
282
- (p) => {
282
+ (h) => {
283
283
  var Z;
284
- n(ee), (Z = i.current) == null || Z.call(i, "selectedBeverage", p);
284
+ n(ee), (Z = i.current) == null || Z.call(i, "selectedBeverage", h);
285
285
  const I = `/kos/dispense/${r == null ? void 0 : r.path}/beverage/selected/`;
286
- g.publish(I, p);
286
+ g.publish(I, h);
287
287
  },
288
288
  [r == null ? void 0 : r.path]
289
289
  ), l = c(() => {
290
290
  var I;
291
- const p = `/kos/dispense/${r == null ? void 0 : r.path}/beverage/cleared/`;
292
- (I = d.current) == null || I.call(d, "selectedBeverage"), g.publish(p, {});
291
+ const h = `/kos/dispense/${r == null ? void 0 : r.path}/beverage/cleared/`;
292
+ (I = d.current) == null || I.call(d, "selectedBeverage"), g.publish(h, {});
293
293
  }, [r == null ? void 0 : r.path]), $ = c(
294
- (p) => {
294
+ (h) => {
295
295
  const I = `/kos/dispense/${r == null ? void 0 : r.path}/flavor/selected/`;
296
- g.publish(I, p);
296
+ g.publish(I, h);
297
297
  },
298
298
  [r == null ? void 0 : r.path]
299
299
  ), w = c(() => {
300
- const p = `/kos/dispense/${r == null ? void 0 : r.path}/flavor/cleared/`;
301
- g.publish(p, {});
300
+ const h = `/kos/dispense/${r == null ? void 0 : r.path}/flavor/cleared/`;
301
+ g.publish(h, {});
302
302
  }, [r == null ? void 0 : r.path]), b = c(() => {
303
- const p = `/kos/dispense/${r == null ? void 0 : r.path}/pour/`;
304
- g.publish(p, {});
305
- }, [r == null ? void 0 : r.path]), h = c(
306
- async (p) => {
303
+ const h = `/kos/dispense/${r == null ? void 0 : r.path}/pour/`;
304
+ g.publish(h, {});
305
+ }, [r == null ? void 0 : r.path]), p = c(
306
+ async (h) => {
307
307
  const I = `/kos/dispense/${r == null ? void 0 : r.path}/pre/pour/`;
308
- return g.publish(I, {}), await (D == null ? void 0 : D(p)) || !0;
308
+ return g.publish(I, {}), await (D == null ? void 0 : D(h)) || !0;
309
309
  },
310
310
  [r == null ? void 0 : r.path]
311
311
  ), o = c(async () => {
312
- const p = `/kos/dispense/${r == null ? void 0 : r.path}/pre/pour/rejected/`;
313
- g.publish(p, {});
312
+ const h = `/kos/dispense/${r == null ? void 0 : r.path}/pre/pour/rejected/`;
313
+ g.publish(h, {});
314
314
  }, [r == null ? void 0 : r.path]), G = c(() => {
315
- const p = `/kos/dispense/${r == null ? void 0 : r.path}/pour/cancel/`;
316
- g.publish(p, {});
315
+ const h = `/kos/dispense/${r == null ? void 0 : r.path}/pour/cancel/`;
316
+ g.publish(h, {});
317
317
  }, [r == null ? void 0 : r.path]), { brands: B, selectBrand: C, selectedBrand: Q, clearBrand: O, brandCompanions: ue } = ft({
318
318
  companionType: (re = t.companionTypes) == null ? void 0 : re.brand,
319
319
  onBrandSelected: v,
@@ -324,30 +324,30 @@ const bt = T.createLogger({
324
324
  selectedBeverage: y,
325
325
  clearBeverage: H,
326
326
  beverageCompanions: me
327
- } = pt({
327
+ } = ht({
328
328
  companionType: (ne = t.companionTypes) == null ? void 0 : ne.beverage,
329
329
  onBeverageSelected: u,
330
330
  onClearBeverage: l
331
331
  }), {
332
- clearFlavors: V,
332
+ clearFlavors: j,
333
333
  flavors: P,
334
334
  selectFlavor: K,
335
- selectedFlavors: j,
335
+ selectedFlavors: V,
336
336
  flavorCompanions: k
337
337
  } = $t({
338
338
  companionType: (ie = t.companionTypes) == null ? void 0 : ie.flavor,
339
339
  onFlavorSelected: $,
340
340
  onFlavorCleared: w
341
- }), [D, W] = x(), q = c((p) => {
342
- W(() => p);
341
+ }), [D, W] = x(), q = c((h) => {
342
+ W(() => h);
343
343
  }, []), X = vt({
344
344
  onPour: b,
345
345
  onPourCancel: G,
346
- onBeforePour: h,
346
+ onBeforePour: p,
347
347
  onBeforePourRejected: o
348
348
  });
349
349
  i.current = X.updatePourContext, d.current = X.removeFromPourContext;
350
- const he = c(() => {
350
+ const pe = c(() => {
351
351
  switch (Y.debug(`Navigating back from group: ${s}`), s) {
352
352
  case z:
353
353
  H(), O();
@@ -357,35 +357,35 @@ const bt = T.createLogger({
357
357
  n(e), H(), O();
358
358
  break;
359
359
  }
360
- }, [H, O, s, e]), pe = c(() => {
361
- const p = `/kos/dispense/${r == null ? void 0 : r.path}/home/`;
362
- g.publish(p, {}), n(e), e === z && (H(), O()), e === oe && H();
360
+ }, [H, O, s, e]), he = c(() => {
361
+ const h = `/kos/dispense/${r == null ? void 0 : r.path}/home/`;
362
+ g.publish(h, {}), n(e), e === z && (H(), O()), e === oe && H();
363
363
  }, [H, O, e]), fe = c(() => {
364
364
  if (a.current.length === 0) {
365
365
  Y.debug("No timers to pause.");
366
366
  return;
367
367
  }
368
- Y.debug(`Pausing ${a.current.length} timers.`), a.current.forEach((p) => {
369
- Y.debug(`Pausing timer with id ${p.id}.`), p.pause();
368
+ Y.debug(`Pausing ${a.current.length} timers.`), a.current.forEach((h) => {
369
+ Y.debug(`Pausing timer with id ${h.id}.`), h.pause();
370
370
  });
371
371
  }, []), be = c(() => {
372
372
  if (a.current.length === 0) {
373
373
  Y.debug("No timers to restart.");
374
374
  return;
375
375
  }
376
- Y.debug(`Restarting ${a.current.length} timers.`), a.current.forEach((p) => {
377
- Y.debug(`Restarting timer with id ${p.id}.`), p.restart();
376
+ Y.debug(`Restarting ${a.current.length} timers.`), a.current.forEach((h) => {
377
+ Y.debug(`Restarting timer with id ${h.id}.`), h.restart();
378
378
  });
379
379
  }, []);
380
380
  return {
381
381
  timers: {
382
- add: c((p) => {
383
- if (p) {
384
- if (a.current.some((I) => I.id === p.id)) {
385
- Y.debug(`Timer with id ${p.id} already exists.`);
382
+ add: c((h) => {
383
+ if (h) {
384
+ if (a.current.some((I) => I.id === h.id)) {
385
+ Y.debug(`Timer with id ${h.id} already exists.`);
386
386
  return;
387
387
  }
388
- a.current.push(p);
388
+ a.current.push(h);
389
389
  }
390
390
  }, []),
391
391
  pause: fe,
@@ -393,15 +393,15 @@ const bt = T.createLogger({
393
393
  },
394
394
  nav: {
395
395
  currentGroup: s,
396
- back: he,
397
- home: pe
396
+ back: pe,
397
+ home: he
398
398
  },
399
399
  pour: X,
400
400
  updateOnBeforePour: q,
401
401
  selections: {
402
402
  [z]: Q,
403
403
  [oe]: y,
404
- [ee]: j
404
+ [ee]: V
405
405
  },
406
406
  [z]: {
407
407
  models: B,
@@ -422,7 +422,7 @@ const bt = T.createLogger({
422
422
  [ee]: {
423
423
  models: P,
424
424
  companions: k,
425
- clear: V,
425
+ clear: j,
426
426
  handlers: {
427
427
  onSelected: K
428
428
  }
@@ -450,20 +450,20 @@ const bt = T.createLogger({
450
450
  return F(() => {
451
451
  if (t && v) {
452
452
  T.info("Nozzle is available. Creating timers");
453
- const h = ye.createTimer(
453
+ const p = ye.createTimer(
454
454
  "attract-timer-" + t.path,
455
455
  v
456
456
  );
457
- return v && (h == null || h.addTimeoutAction({
457
+ return v && (p == null || p.addTimeoutAction({
458
458
  name: "attract-timer",
459
459
  remainingTime: 0,
460
460
  action: l
461
- })), f && (h == null || h.addTimeoutAction({
461
+ })), f && (p == null || p.addTimeoutAction({
462
462
  name: "ambient-timer",
463
463
  remainingTime: f,
464
464
  action: u
465
- })), v && (h == null || h.start()), n(h ?? null), () => {
466
- h == null || h.reset(), n(null);
465
+ })), v && (p == null || p.start()), n(p ?? null), () => {
466
+ p == null || p.reset(), n(null);
467
467
  };
468
468
  }
469
469
  return () => {
@@ -500,7 +500,7 @@ const bt = T.createLogger({
500
500
  onAttractTimer: $,
501
501
  onResumeAttractTimer: w,
502
502
  onIdleTimeout: b,
503
- onAreYouThereTimeout: h
503
+ onAreYouThereTimeout: p
504
504
  }) => {
505
505
  const { model: o } = _();
506
506
  F(() => {
@@ -556,7 +556,7 @@ const bt = T.createLogger({
556
556
  },
557
557
  {
558
558
  topic: `/kos/dispense/${o == null ? void 0 : o.path}/are-you-there/timeout/`,
559
- callback: h
559
+ callback: p
560
560
  },
561
561
  {
562
562
  topic: `/kos/dispense/${o == null ? void 0 : o.path}/init/`,
@@ -586,7 +586,7 @@ const bt = T.createLogger({
586
586
  f,
587
587
  w,
588
588
  b,
589
- h,
589
+ p,
590
590
  e,
591
591
  d
592
592
  ]);
@@ -657,13 +657,13 @@ const bt = T.createLogger({
657
657
  areYouThereRejectionPolicy: a = "pause"
658
658
  }) => {
659
659
  var I, Z, Ie, xe;
660
- const [i, d] = x(!1), [v, f] = x(!1), { model: u } = _(), [l, $] = x(!1), w = (t == null ? void 0 : t.idleTimeout) ?? 15, b = (t == null ? void 0 : t.areYouThereTimeoutOffset) ?? 10, h = (s == null ? void 0 : s.idleTimeout) ?? (t == null ? void 0 : t.idleTimeout) ?? 10, o = (s == null ? void 0 : s.areYouThereTimeoutOffset) ?? (t == null ? void 0 : t.areYouThereTimeoutOffset) ?? 5, G = n == null ? void 0 : n.ambientTimeoutOffset, B = n == null ? void 0 : n.attractTimeout, C = c(() => {
661
- if (U.info("handleIdleTimeout called - navigating home and publishing event"), V(!1), e == null || e.nav.home(), u) {
660
+ const [i, d] = x(!1), [v, f] = x(!1), { model: u } = _(), [l, $] = x(!1), w = (t == null ? void 0 : t.idleTimeout) ?? 15, b = (t == null ? void 0 : t.areYouThereTimeoutOffset) ?? 10, p = (s == null ? void 0 : s.idleTimeout) ?? (t == null ? void 0 : t.idleTimeout) ?? 10, o = (s == null ? void 0 : s.areYouThereTimeoutOffset) ?? (t == null ? void 0 : t.areYouThereTimeoutOffset) ?? 5, G = n == null ? void 0 : n.ambientTimeoutOffset, B = n == null ? void 0 : n.attractTimeout, C = c(() => {
661
+ if (U.info("handleIdleTimeout called - navigating home and publishing event"), j(!1), e == null || e.nav.home(), u) {
662
662
  const E = `/kos/dispense/${u.path}/idle/timeout/`;
663
663
  g.publish(E, {});
664
664
  }
665
665
  }, [(I = e == null ? void 0 : e.nav) == null ? void 0 : I.home, u]), Q = c(() => {
666
- U.info("handleResetIdleTimer called - resetting idle timer"), V(!1);
666
+ U.info("handleResetIdleTimer called - resetting idle timer"), j(!1);
667
667
  }, []), O = c(() => {
668
668
  if (G && (d(!0), f(!1), u)) {
669
669
  const E = `/kos/dispense/${u.path}/ambient/start/`;
@@ -691,21 +691,21 @@ const bt = T.createLogger({
691
691
  onResumeAttractTimer: le
692
692
  });
693
693
  (Z = e == null ? void 0 : e.timers) == null || Z.add(H);
694
- const [me, V] = x(!1);
694
+ const [me, j] = x(!1);
695
695
  U.info(
696
696
  "Creating idle timer with timeout:",
697
697
  w,
698
698
  "seconds and callback:",
699
699
  !!C
700
700
  );
701
- const { pause: P, restart: K, idleTimer: j } = Le({
701
+ const { pause: P, restart: K, idleTimer: V } = Le({
702
702
  defaultAreYouThereTime: b,
703
703
  defaultIdleTime: w,
704
704
  onIdleTimer: C,
705
705
  onResetIdleTimer: Q
706
706
  });
707
707
  U.info(
708
- `Creating pour timer with timeout: ${h} seconds and callback: ${!!C}`
708
+ `Creating pour timer with timeout: ${p} seconds and callback: ${!!C}`
709
709
  );
710
710
  const {
711
711
  pause: k,
@@ -713,7 +713,7 @@ const bt = T.createLogger({
713
713
  idleTimer: W
714
714
  } = Le({
715
715
  defaultAreYouThereTime: o,
716
- defaultIdleTime: h,
716
+ defaultIdleTime: p,
717
717
  onIdleTimer: C,
718
718
  prefix: "pour-"
719
719
  }), q = c(async () => {
@@ -729,7 +729,7 @@ const bt = T.createLogger({
729
729
  const ve = `/kos/dispense/${u.path}/are-you-there/timeout/`;
730
730
  g.publish(ve, {});
731
731
  }
732
- V(!0), l ? k() : P();
732
+ j(!0), l ? k() : P();
733
733
  } else
734
734
  switch (a) {
735
735
  case "pause":
@@ -740,24 +740,24 @@ const bt = T.createLogger({
740
740
  break;
741
741
  }
742
742
  }, [r, u, a, l]), X = c(() => {
743
- V(!1), R(), l ? (D(), P()) : (K(), k());
743
+ j(!1), R(), l ? (D(), P()) : (K(), k());
744
744
  }, [l, P, k, K, D]);
745
745
  F(() => {
746
- j && j.addTimeoutAction({
746
+ V && V.addTimeoutAction({
747
747
  name: "are-you-there-timer",
748
748
  remainingTime: b,
749
749
  action: q
750
750
  });
751
- }, [j, b, q]), F(() => {
751
+ }, [V, b, q]), F(() => {
752
752
  W && W.addTimeoutAction({
753
753
  name: "pour-are-you-there-timer",
754
754
  remainingTime: o,
755
755
  action: q
756
756
  });
757
- }, [W, o, q]), (Ie = e == null ? void 0 : e.timers) == null || Ie.add(j), (xe = e == null ? void 0 : e.timers) == null || xe.add(W);
758
- const he = c(() => {
757
+ }, [W, o, q]), (Ie = e == null ? void 0 : e.timers) == null || Ie.add(V), (xe = e == null ? void 0 : e.timers) == null || xe.add(W);
758
+ const pe = c(() => {
759
759
  $(!1), k(), P(), R();
760
- }, [P, k]), pe = c(() => {
760
+ }, [P, k]), he = c(() => {
761
761
  $(!0), U.info("restarting pour timer"), D(), R(), P();
762
762
  }, [P, D]), fe = c(() => {
763
763
  $(!1), U.info("restarting pour timer on before pour rejected"), k(), K();
@@ -777,8 +777,8 @@ const bt = T.createLogger({
777
777
  onBrandCleared: Pe,
778
778
  onBeverageSelected: re,
779
779
  onBeverageCleared: ne,
780
- onPour: he,
781
- onPourCancel: pe,
780
+ onPour: pe,
781
+ onPourCancel: he,
782
782
  onBeforePourRejected: fe,
783
783
  onInit: ie
784
784
  // Note: Timer-related handlers (onIdleTimeout, onAmbientTimer, onAttractTimer,
@@ -786,7 +786,7 @@ const bt = T.createLogger({
786
786
  // component's own timer hooks call those handlers directly. Including them would
787
787
  // create circular event loops.
788
788
  });
789
- const p = l ? o : b;
789
+ const h = l ? o : b;
790
790
  return F(() => {
791
791
  if (u && H) {
792
792
  const E = `/kos/dispense/${u == null ? void 0 : u.path}/init/`;
@@ -797,13 +797,13 @@ const bt = T.createLogger({
797
797
  clearAreYouThere: X,
798
798
  pauseIdleTimer: P,
799
799
  restartIdleTimer: K,
800
- areYouThereCountdown: p,
800
+ areYouThereCountdown: h,
801
801
  showAmbientScreen: i,
802
802
  showAttractScreen: v,
803
803
  pauseScreenTimer: R,
804
804
  restartScreenTimer: y
805
805
  };
806
- }, Ve = () => {
806
+ }, je = () => {
807
807
  const e = Ce.type;
808
808
  return S({
809
809
  modelId: e,
@@ -813,18 +813,18 @@ const bt = T.createLogger({
813
813
  };
814
814
  function Ut(e) {
815
815
  return (t) => {
816
- const { model: s, status: n, KosModelLoader: r } = Ve();
816
+ const { model: s, status: n, KosModelLoader: r } = je();
817
817
  return /* @__PURE__ */ m(r, { ...n, children: /* @__PURE__ */ m(e, { ...t, deviceAssembly: s }) });
818
818
  };
819
819
  }
820
- const je = (e) => S({
820
+ const Ve = (e) => S({
821
821
  modelId: e,
822
822
  modelType: mt.type,
823
823
  options: {}
824
824
  });
825
825
  function Gt(e, t) {
826
826
  return (s) => {
827
- const { model: n, status: r, KosModelLoader: a } = je(e);
827
+ const { model: n, status: r, KosModelLoader: a } = Ve(e);
828
828
  return /* @__PURE__ */ m(a, { ...r, children: /* @__PURE__ */ m(t, { ...s, holder: n }) });
829
829
  };
830
830
  }
@@ -836,7 +836,7 @@ const We = () => {
836
836
  options: {}
837
837
  });
838
838
  };
839
- function Vt(e) {
839
+ function jt(e) {
840
840
  return (t) => {
841
841
  const { model: s, status: n, KosModelLoader: r } = We();
842
842
  return /* @__PURE__ */ m(r, { ...n, children: /* @__PURE__ */ m(e, { ...t, holderContainer: s }) });
@@ -867,7 +867,7 @@ const qe = () => {
867
867
  }, ge = T.createLogger({
868
868
  name: "useNozzlePour",
869
869
  group: "kos-hooks"
870
- }), jt = ({
870
+ }), Vt = ({
871
871
  onPour: e,
872
872
  onPourCancel: t,
873
873
  intentContainer: s,
@@ -950,13 +950,13 @@ const te = T.createLogger({
950
950
  }, [s, r, i]), l = c(async () => {
951
951
  te.debug(`Force cancelling pour for pour target ${r == null ? void 0 : r.id}.`), await (r == null ? void 0 : r.cancelPour()), s == null || s();
952
952
  }, [s, r]), $ = c(
953
- (h, o) => {
954
- d.set(h, o);
953
+ (p, o) => {
954
+ d.set(p, o);
955
955
  },
956
956
  [d]
957
957
  ), w = c(
958
- (h) => {
959
- d.remove(h);
958
+ (p) => {
959
+ d.remove(p);
960
960
  },
961
961
  [d]
962
962
  );
@@ -1099,7 +1099,7 @@ const Qe = L(void 0), ts = ({ children: e }) => {
1099
1099
  }, et = L(
1100
1100
  void 0
1101
1101
  ), At = ({ children: e }) => {
1102
- const { model: t, ready: s } = Ve(), n = A(() => {
1102
+ const { model: t, ready: s } = je(), n = A(() => {
1103
1103
  if (s && t) {
1104
1104
  const a = t.nozzlePaths;
1105
1105
  return { model: t, nozzlePaths: a };
@@ -1139,7 +1139,7 @@ function St({
1139
1139
  props: s
1140
1140
  }) {
1141
1141
  const { nozzlePaths: n } = kt(), r = (n == null ? void 0 : n.length) || 0;
1142
- return (n == null ? void 0 : n.map((i, d) => /* @__PURE__ */ m(ht, { path: i, children: /* @__PURE__ */ m(
1142
+ return (n == null ? void 0 : n.map((i, d) => /* @__PURE__ */ m(pt, { path: i, children: /* @__PURE__ */ m(
1143
1143
  Ct,
1144
1144
  {
1145
1145
  provider: t,
@@ -1176,7 +1176,7 @@ function ds(e) {
1176
1176
  ];
1177
1177
  }
1178
1178
  const tt = L(void 0), us = ({ children: e, id: t }) => {
1179
- const { model: s, ready: n } = je(t || ""), r = A(() => n && s ? { model: s } : {}, [n, s]);
1179
+ const { model: s, ready: n } = Ve(t || ""), r = A(() => n && s ? { model: s } : {}, [n, s]);
1180
1180
  return /* @__PURE__ */ m(tt.Provider, { value: r, children: e });
1181
1181
  }, ls = () => {
1182
1182
  const e = N(tt);
@@ -1188,14 +1188,14 @@ const tt = L(void 0), us = ({ children: e, id: t }) => {
1188
1188
  ), ms = ({ children: e }) => {
1189
1189
  const { model: t, ready: s } = We(), n = A(() => s && t ? { model: t } : {}, [s, t]);
1190
1190
  return /* @__PURE__ */ m(st.Provider, { value: n, children: e });
1191
- }, hs = () => {
1191
+ }, ps = () => {
1192
1192
  const e = N(st);
1193
1193
  if (!e)
1194
1194
  throw new Error(
1195
1195
  "useHolderContainerContext must be used within a HolderContainerProvider"
1196
1196
  );
1197
1197
  return e;
1198
- }, rt = L(void 0), ps = ({ children: e }) => {
1198
+ }, rt = L(void 0), hs = ({ children: e }) => {
1199
1199
  const { model: t, ready: s } = qe(), n = A(() => s && t ? { model: t } : {}, [s, t]);
1200
1200
  return /* @__PURE__ */ m(rt.Provider, { value: n, children: e });
1201
1201
  }, fs = () => {
@@ -1243,23 +1243,23 @@ export {
1243
1243
  z as F,
1244
1244
  oe as G,
1245
1245
  us as H,
1246
- ps as I,
1246
+ hs as I,
1247
1247
  ee as J,
1248
1248
  gt as K,
1249
1249
  Ft as L,
1250
1250
  Pt as M,
1251
- ht as N,
1251
+ pt as N,
1252
1252
  Le as O,
1253
1253
  $s as P,
1254
1254
  $t as Q,
1255
- Ve as R,
1255
+ je as R,
1256
1256
  Ut as S,
1257
- je as T,
1257
+ Ve as T,
1258
1258
  Gt as U,
1259
1259
  We as V,
1260
- Vt as W,
1260
+ jt as W,
1261
1261
  qe as X,
1262
- jt as Y,
1262
+ Vt as Y,
1263
1263
  Wt as Z,
1264
1264
  Je as _,
1265
1265
  rs as a,
@@ -1284,7 +1284,7 @@ export {
1284
1284
  ls as h,
1285
1285
  ds as i,
1286
1286
  ms as j,
1287
- hs as k,
1287
+ ps as k,
1288
1288
  fs as l,
1289
1289
  bs as m,
1290
1290
  vs as n,
@@ -1299,6 +1299,6 @@ export {
1299
1299
  Mt as w,
1300
1300
  Oe as x,
1301
1301
  Yt as y,
1302
- pt as z
1302
+ ht as z
1303
1303
  };
1304
- //# sourceMappingURL=pump-provider-C-Zclv9X.js.map
1304
+ //# sourceMappingURL=pump-provider-BXvrC3jL.js.map