@kosdev-code/kos-dispense-sdk 0.1.0-dev.5216 → 0.1.0-dev.5343

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 (33) hide show
  1. package/{dispense-registration-manager-CcFUS_KM.js → dispense-registration-manager-D9ey2UCg.js} +3 -3
  2. package/{dispense-registration-manager-CcFUS_KM.js.map → dispense-registration-manager-D9ey2UCg.js.map} +1 -1
  3. package/dispense-registration-manager-DM1TEmvY.cjs +2 -0
  4. package/{dispense-registration-manager-BkJ1ggtS.cjs.map → dispense-registration-manager-DM1TEmvY.cjs.map} +1 -1
  5. package/{extension-utils-DUV7OQR1.cjs → extension-utils-B_8_3ipu.cjs} +2 -2
  6. package/{extension-utils-DUV7OQR1.cjs.map → extension-utils-B_8_3ipu.cjs.map} +1 -1
  7. package/{extension-utils-DeLiIgFH.js → extension-utils-Ks3ffMqq.js} +2 -2
  8. package/{extension-utils-DeLiIgFH.js.map → extension-utils-Ks3ffMqq.js.map} +1 -1
  9. package/index.cjs +1 -1
  10. package/index.js +3 -3
  11. package/models/models/nozzle/nozzle-model.d.ts +1 -1
  12. package/models/models/nozzle/nozzle-model.d.ts.map +1 -1
  13. package/models.cjs +1 -1
  14. package/models.js +2 -2
  15. package/package.json +4 -4
  16. package/{pump-provider-BTnIydH2.js → pump-provider-B5htndvr.js} +204 -203
  17. package/pump-provider-B5htndvr.js.map +1 -0
  18. package/pump-provider-Bx-yx6VP.cjs +2 -0
  19. package/pump-provider-Bx-yx6VP.cjs.map +1 -0
  20. package/ui/hooks/cui-kit/use-beverages.d.ts +1 -1
  21. package/ui/hooks/cui-kit/use-beverages.d.ts.map +1 -1
  22. package/ui/hooks/cui-kit/use-brands.d.ts +1 -1
  23. package/ui/hooks/cui-kit/use-brands.d.ts.map +1 -1
  24. package/ui/hooks/cui-kit/use-cui-kit.d.ts +1 -1
  25. package/ui/hooks/cui-kit/use-cui-kit.d.ts.map +1 -1
  26. package/ui/hooks/cui-kit/use-flavors.d.ts +1 -1
  27. package/ui/hooks/cui-kit/use-flavors.d.ts.map +1 -1
  28. package/ui.cjs +1 -1
  29. package/ui.js +2 -2
  30. package/dispense-registration-manager-BkJ1ggtS.cjs +0 -2
  31. package/pump-provider-BTnIydH2.js.map +0 -1
  32. package/pump-provider-BUfMtaXv.cjs +0 -2
  33. package/pump-provider-BUfMtaXv.cjs.map +0 -1
@@ -1,9 +1,9 @@
1
1
  var ot = Object.defineProperty;
2
2
  var it = (e, t, r) => t in e ? ot(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var X = (e, t, r) => (it(e, typeof t != "symbol" ? t + "" : t, r), r);
4
- import { jsx as h } from "@emotion/react/jsx-runtime";
5
- import { useKosModel as C, getKosCompanionModel as we, kosAutoEffect as De, KosLog as P, usePressGesture as Pe, EventBus as T, TimerManager as Be } from "@kosdev-code/kos-ui-sdk";
6
- import { A as Ae, b as Ke, e as ct, d as Ee, N as dt, f as ye, H as ut, j as Ce, I as Se, k as ke, G as lt, P as Ne } from "./dispense-registration-manager-CcFUS_KM.js";
4
+ import { jsx as m } from "@emotion/react/jsx-runtime";
5
+ import { useKosModel as C, getKosCompanionModel as we, kosAutoEffect as De, KosLog as P, usePressGesture as Pe, EventBus as $, TimerManager as Be } from "@kosdev-code/kos-ui-sdk";
6
+ import { A as Ae, b as Ke, e as ct, d as Ee, N as dt, f as ye, H as ut, j as Ce, I as Se, k as ke, G as lt, P as Ne } from "./dispense-registration-manager-D9ey2UCg.js";
7
7
  import mt, { createContext as N, useMemo as A, useContext as S, useState as x, useCallback as i, useEffect as V, useRef as le } from "react";
8
8
  const Le = () => {
9
9
  const e = Ae.type;
@@ -16,7 +16,7 @@ const Le = () => {
16
16
  function _t(e) {
17
17
  return (t) => {
18
18
  const { model: r, status: n, KosModelLoader: s } = Le();
19
- return /* @__PURE__ */ h(s, { ...n, children: /* @__PURE__ */ h(e, { ...t, assembly: r }) });
19
+ return /* @__PURE__ */ m(s, { ...n, children: /* @__PURE__ */ m(e, { ...t, assembly: r }) });
20
20
  };
21
21
  }
22
22
  const Me = () => {
@@ -30,7 +30,7 @@ const Me = () => {
30
30
  function Ot(e) {
31
31
  return (t) => {
32
32
  const { model: r, status: n, KosModelLoader: s } = Me();
33
- return /* @__PURE__ */ h(s, { ...n, children: /* @__PURE__ */ h(e, { ...t, beverage: r }) });
33
+ return /* @__PURE__ */ m(s, { ...n, children: /* @__PURE__ */ m(e, { ...t, beverage: r }) });
34
34
  };
35
35
  }
36
36
  const _e = (e) => C({
@@ -41,7 +41,7 @@ const _e = (e) => C({
41
41
  function Yt(e) {
42
42
  return (t) => (r) => {
43
43
  const { model: n, status: s, KosModelLoader: o } = _e(t);
44
- return /* @__PURE__ */ h(o, { ...s, children: /* @__PURE__ */ h(e, { ...r, board: n }) });
44
+ return /* @__PURE__ */ m(o, { ...s, children: /* @__PURE__ */ m(e, { ...r, board: n }) });
45
45
  };
46
46
  }
47
47
  const Oe = () => {
@@ -55,7 +55,7 @@ const Oe = () => {
55
55
  function Ft(e) {
56
56
  return (t) => {
57
57
  const { model: r, status: n, KosModelLoader: s } = Oe();
58
- return /* @__PURE__ */ h(s, { ...n, children: /* @__PURE__ */ h(e, { ...t, boardContainer: r }) });
58
+ return /* @__PURE__ */ m(s, { ...n, children: /* @__PURE__ */ m(e, { ...t, boardContainer: r }) });
59
59
  };
60
60
  }
61
61
  const Ye = (e) => C({
@@ -66,7 +66,7 @@ const Ye = (e) => C({
66
66
  }
67
67
  }), Fe = N(void 0), ht = ({ children: e, path: t }) => {
68
68
  const { model: r, ready: n } = Ye(t), s = A(() => n && r ? { model: r } : {}, [n, r]);
69
- return /* @__PURE__ */ h(Fe.Provider, { value: s, children: e });
69
+ return /* @__PURE__ */ m(Fe.Provider, { value: s, children: e });
70
70
  }, M = () => {
71
71
  const e = S(Fe);
72
72
  if (!e)
@@ -78,64 +78,64 @@ const Ye = (e) => C({
78
78
  onClearBeverage: r,
79
79
  companionType: n
80
80
  }) => {
81
- const { model: s } = M(), [o, a] = x([]), [d, b] = x(null), f = A(() => n ? o.map(
82
- (p) => we(p, n)
81
+ const { model: s } = M(), [o, a] = x([]), [d, b] = x(null), p = A(() => n ? o.map(
82
+ (h) => we(h, n)
83
83
  ) : [], [o, n]), c = i(
84
- async (p) => {
85
- b(p), await (s == null ? void 0 : s.setSelectedPourable({ beverage: p })), e == null || e(p);
84
+ async (h, T) => {
85
+ b(h), await (s == null ? void 0 : s.setSelectedPourable({ beverage: h, context: T })), e == null || e(h);
86
86
  },
87
87
  [s, e]
88
- ), u = i(async () => {
88
+ ), f = i(async () => {
89
89
  b(null), await (s == null ? void 0 : s.setSelectedPourable({ beverage: void 0 })), r == null || r();
90
90
  }, [s, r]);
91
91
  return V(() => {
92
- const p = De(() => {
92
+ const h = De(() => {
93
93
  if (!s)
94
94
  return;
95
- const $ = s.selectedBrand;
96
- if (!$) {
97
- const l = s.getGroupAvailabilityItems("beverages").filter((g) => g.visible);
98
- a(l ?? []), t == null || t(l);
95
+ const T = s.selectedBrand;
96
+ if (!T) {
97
+ const u = s.getGroupAvailabilityItems("beverages").filter((g) => g.visible);
98
+ a(u ?? []), t == null || t(u);
99
99
  return;
100
100
  }
101
- const v = s.getAvailabilityByParent($.id).filter((l) => l.visible);
101
+ const v = s.getAvailabilityByParent(T.id).filter((u) => u.visible);
102
102
  a(v ?? []), t == null || t(v);
103
103
  });
104
104
  return () => {
105
- p();
105
+ h();
106
106
  };
107
107
  }, [s]), {
108
108
  beverages: o,
109
- beverageCompanions: f,
109
+ beverageCompanions: p,
110
110
  selectBeverage: c,
111
111
  selectedBeverage: d,
112
- clearBeverage: u
112
+ clearBeverage: f
113
113
  };
114
114
  }, pt = ({
115
115
  onBrandSelected: e,
116
116
  onBrandCleared: t,
117
117
  companionType: r
118
118
  }) => {
119
- const { model: n } = M(), [s, o] = x(null), [a, d] = x([]), b = A(() => r ? a.map((u) => we(u, r)) : [], [a, r]), f = i(
120
- async (u) => {
121
- o(u), n == null || n.setSelectedBrand(u), e == null || e(u);
119
+ const { model: n } = M(), [s, o] = x(null), [a, d] = x([]), b = A(() => r ? a.map((f) => we(f, r)) : [], [a, r]), p = i(
120
+ async (f, h) => {
121
+ o(f), n == null || n.setSelectedBrand(f, h), e == null || e(f);
122
122
  },
123
123
  [n, e]
124
124
  ), c = i(() => {
125
125
  o(null), n == null || n.setSelectedBrand(void 0), t == null || t();
126
126
  }, [n, t]);
127
127
  return V(() => {
128
- const u = De(() => {
128
+ const f = De(() => {
129
129
  n && d(n.visibleBrands);
130
130
  });
131
131
  return () => {
132
- u();
132
+ f();
133
133
  };
134
134
  }, [n]), {
135
135
  brands: a,
136
136
  brandCompanions: b,
137
137
  selectedBrand: s,
138
- selectBrand: f,
138
+ selectBrand: p,
139
139
  clearBrand: c
140
140
  };
141
141
  };
@@ -184,7 +184,7 @@ const bt = P.createLogger({
184
184
  }) => {
185
185
  const { model: a } = M(), [d, b] = x(
186
186
  s || new Ge()
187
- ), f = i(async () => {
187
+ ), p = i(async () => {
188
188
  (r ? await (r == null ? void 0 : r(d)) : !0) ? (ce.debug(
189
189
  `[${o == null ? void 0 : o.name}] - Pour initiated for nozzle ${a == null ? void 0 : a.id}.`
190
190
  ), o == null || o.initiate(a), e == null || e()) : (ce.debug(
@@ -199,31 +199,31 @@ const bt = P.createLogger({
199
199
  d,
200
200
  n
201
201
  ]), c = i(() => {
202
- var l;
202
+ var u;
203
203
  ce.debug(
204
204
  `[${o == null ? void 0 : o.name}] - Pour initiate ended called for nozzle ${a == null ? void 0 : a.id}.`
205
- ), (l = o == null ? void 0 : o.initiateEnded) == null || l.call(o, a), t == null || t();
206
- }, [t, a, o]), u = i(() => {
205
+ ), (u = o == null ? void 0 : o.initiateEnded) == null || u.call(o, a), t == null || t();
206
+ }, [t, a, o]), f = i(() => {
207
207
  ce.debug(`Force cancelling pour for nozzle ${a == null ? void 0 : a.id}.`), a == null || a.cancelPour(), t == null || t();
208
- }, [t, a]), p = i(
209
- (l, g) => {
210
- d.set(l, g);
208
+ }, [t, a]), h = i(
209
+ (u, g) => {
210
+ d.set(u, g);
211
211
  },
212
212
  [d]
213
- ), $ = i(
214
- (l) => {
215
- d.remove(l);
213
+ ), T = i(
214
+ (u) => {
215
+ d.remove(u);
216
216
  },
217
217
  [d]
218
218
  );
219
219
  return {
220
220
  handlers: Pe({
221
- onPressed: f,
221
+ onPressed: p,
222
222
  onRelease: c
223
223
  }).dom,
224
- cancel: u,
225
- updatePourContext: p,
226
- removeFromPourContext: $,
224
+ cancel: f,
225
+ updatePourContext: h,
226
+ removeFromPourContext: T,
227
227
  status: a
228
228
  };
229
229
  }, Tt = ({
@@ -237,20 +237,21 @@ const bt = P.createLogger({
237
237
  ), o = A(() => r ? s.map(
238
238
  (c) => we(c, r)
239
239
  ) : [], [s, r]), [a, d] = x([]), b = i(
240
- async (c) => {
240
+ async (c, f) => {
241
241
  if (d(
242
- (u) => u != null && u.includes(c) ? [...u.filter((p) => p !== c)] : [...u ?? [], c]
242
+ (h) => h != null && h.includes(c) ? [...h.filter((T) => T !== c)] : [...h ?? [], c]
243
243
  ), n != null && n.selectedPourable) {
244
- const { beverage: u } = n.selectedPourable;
244
+ const { beverage: h } = n.selectedPourable;
245
245
  await n.setSelectedPourable({
246
- beverage: u,
247
- additional: a ?? []
246
+ beverage: h,
247
+ additional: a ?? [],
248
+ context: f
248
249
  });
249
250
  }
250
251
  e == null || e(c, a ?? []);
251
252
  },
252
253
  [n, e, a]
253
- ), f = i(async () => {
254
+ ), p = i(async () => {
254
255
  if (d([]), n != null && n.selectedPourable) {
255
256
  const { beverage: c } = n.selectedPourable;
256
257
  n.setSelectedPourable({ beverage: c }), t == null || t();
@@ -261,7 +262,7 @@ const bt = P.createLogger({
261
262
  flavorCompanions: o,
262
263
  selectFlavor: b,
263
264
  selectedFlavors: a,
264
- clearFlavors: f
265
+ clearFlavors: p
265
266
  };
266
267
  }, te = "brands", de = "beverages", se = "flavors", G = P.createLogger({ name: "use-cui-kit" }), $t = ({
267
268
  initialGroup: e = te,
@@ -269,61 +270,61 @@ const bt = P.createLogger({
269
270
  }) => {
270
271
  var ae, oe, ie;
271
272
  const [r, n] = x(e), { model: s } = M(), o = le([]), a = le(), d = le(), b = i(
272
- (m) => {
273
+ (l) => {
273
274
  n(se);
274
275
  const w = `/kos/dispense/${s == null ? void 0 : s.path}/brand/selected/`;
275
- T.publish(w, m);
276
+ $.publish(w, l);
276
277
  },
277
278
  [s == null ? void 0 : s.path]
278
- ), f = i(() => {
279
- const m = `/kos/dispense/${s == null ? void 0 : s.path}/brand/cleared/`;
280
- T.publish(m, {});
279
+ ), p = i(() => {
280
+ const l = `/kos/dispense/${s == null ? void 0 : s.path}/brand/cleared/`;
281
+ $.publish(l, {});
281
282
  }, [s == null ? void 0 : s.path]), c = i(
282
- (m) => {
283
+ (l) => {
283
284
  const w = `/kos/dispense/${s == null ? void 0 : s.path}/beverage/list/updated/`;
284
- T.publish(w, m);
285
+ $.publish(w, l);
285
286
  },
286
287
  [s == null ? void 0 : s.path]
287
- ), u = i(
288
- (m) => {
288
+ ), f = i(
289
+ (l) => {
289
290
  var ee;
290
- n(se), (ee = a.current) == null || ee.call(a, "selectedBeverage", m);
291
+ n(se), (ee = a.current) == null || ee.call(a, "selectedBeverage", l);
291
292
  const w = `/kos/dispense/${s == null ? void 0 : s.path}/beverage/selected/`;
292
- T.publish(w, m);
293
+ $.publish(w, l);
293
294
  },
294
295
  [s == null ? void 0 : s.path]
295
- ), p = i(() => {
296
+ ), h = i(() => {
296
297
  var w;
297
- const m = `/kos/dispense/${s == null ? void 0 : s.path}/beverage/cleared/`;
298
- (w = d.current) == null || w.call(d, "selectedBeverage"), T.publish(m, {});
299
- }, [s == null ? void 0 : s.path]), $ = i(
300
- (m) => {
298
+ const l = `/kos/dispense/${s == null ? void 0 : s.path}/beverage/cleared/`;
299
+ (w = d.current) == null || w.call(d, "selectedBeverage"), $.publish(l, {});
300
+ }, [s == null ? void 0 : s.path]), T = i(
301
+ (l) => {
301
302
  const w = `/kos/dispense/${s == null ? void 0 : s.path}/flavor/selected/`;
302
- T.publish(w, m);
303
+ $.publish(w, l);
303
304
  },
304
305
  [s == null ? void 0 : s.path]
305
306
  ), v = i(() => {
306
- const m = `/kos/dispense/${s == null ? void 0 : s.path}/flavor/cleared/`;
307
- T.publish(m, {});
308
- }, [s == null ? void 0 : s.path]), l = i(() => {
309
- const m = `/kos/dispense/${s == null ? void 0 : s.path}/pour/`;
310
- T.publish(m, {});
307
+ const l = `/kos/dispense/${s == null ? void 0 : s.path}/flavor/cleared/`;
308
+ $.publish(l, {});
309
+ }, [s == null ? void 0 : s.path]), u = i(() => {
310
+ const l = `/kos/dispense/${s == null ? void 0 : s.path}/pour/`;
311
+ $.publish(l, {});
311
312
  }, [s == null ? void 0 : s.path]), g = i(
312
- async (m) => {
313
+ async (l) => {
313
314
  const w = `/kos/dispense/${s == null ? void 0 : s.path}/pre/pour/`;
314
- return T.publish(w, {}), await (F == null ? void 0 : F(m)) || !0;
315
+ return $.publish(w, {}), await (F == null ? void 0 : F(l)) || !0;
315
316
  },
316
317
  [s == null ? void 0 : s.path]
317
318
  ), y = i(async () => {
318
- const m = `/kos/dispense/${s == null ? void 0 : s.path}/pre/pour/rejected/`;
319
- T.publish(m, {});
319
+ const l = `/kos/dispense/${s == null ? void 0 : s.path}/pre/pour/rejected/`;
320
+ $.publish(l, {});
320
321
  }, [s == null ? void 0 : s.path]), _ = i(() => {
321
- const m = `/kos/dispense/${s == null ? void 0 : s.path}/pour/cancel/`;
322
- T.publish(m, {});
322
+ const l = `/kos/dispense/${s == null ? void 0 : s.path}/pour/cancel/`;
323
+ $.publish(l, {});
323
324
  }, [s == null ? void 0 : s.path]), { brands: O, selectBrand: R, selectedBrand: Z, clearBrand: Y, brandCompanions: me } = pt({
324
325
  companionType: (ae = t.companionTypes) == null ? void 0 : ae.brand,
325
326
  onBrandSelected: b,
326
- onBrandCleared: f
327
+ onBrandCleared: p
327
328
  }), {
328
329
  beverages: H,
329
330
  selectBeverage: D,
@@ -332,8 +333,8 @@ const bt = P.createLogger({
332
333
  beverageCompanions: q
333
334
  } = ft({
334
335
  companionType: (oe = t.companionTypes) == null ? void 0 : oe.beverage,
335
- onBeverageSelected: u,
336
- onClearBeverage: p,
336
+ onBeverageSelected: f,
337
+ onClearBeverage: h,
337
338
  onBeverageListUpdated: c
338
339
  }), {
339
340
  clearFlavors: I,
@@ -343,12 +344,12 @@ const bt = P.createLogger({
343
344
  flavorCompanions: j
344
345
  } = Tt({
345
346
  companionType: (ie = t.companionTypes) == null ? void 0 : ie.flavor,
346
- onFlavorSelected: $,
347
+ onFlavorSelected: T,
347
348
  onFlavorCleared: v
348
- }), [F, Q] = x(), he = i((m) => {
349
- Q(() => m);
349
+ }), [F, Q] = x(), he = i((l) => {
350
+ Q(() => l);
350
351
  }, []), z = vt({
351
- onPour: l,
352
+ onPour: u,
352
353
  onPourCancel: _,
353
354
  onBeforePour: g,
354
355
  onBeforePourRejected: y
@@ -365,34 +366,34 @@ const bt = P.createLogger({
365
366
  break;
366
367
  }
367
368
  }, [B, Y, r, e]), pe = i(() => {
368
- const m = `/kos/dispense/${s == null ? void 0 : s.path}/home/`;
369
- T.publish(m, {}), n(e), e === te && (B(), Y()), e === de && B();
369
+ const l = `/kos/dispense/${s == null ? void 0 : s.path}/home/`;
370
+ $.publish(l, {}), n(e), e === te && (B(), Y()), e === de && B();
370
371
  }, [B, Y, e]), be = i(() => {
371
372
  if (o.current.length === 0) {
372
373
  G.debug("No timers to pause.");
373
374
  return;
374
375
  }
375
- G.debug(`Pausing ${o.current.length} timers.`), o.current.forEach((m) => {
376
- G.debug(`Pausing timer with id ${m.id}.`), m.pause();
376
+ G.debug(`Pausing ${o.current.length} timers.`), o.current.forEach((l) => {
377
+ G.debug(`Pausing timer with id ${l.id}.`), l.pause();
377
378
  });
378
379
  }, []), ve = i(() => {
379
380
  if (o.current.length === 0) {
380
381
  G.debug("No timers to restart.");
381
382
  return;
382
383
  }
383
- G.debug(`Restarting ${o.current.length} timers.`), o.current.forEach((m) => {
384
- G.debug(`Restarting timer with id ${m.id}.`), m.restart();
384
+ G.debug(`Restarting ${o.current.length} timers.`), o.current.forEach((l) => {
385
+ G.debug(`Restarting timer with id ${l.id}.`), l.restart();
385
386
  });
386
387
  }, []);
387
388
  return {
388
389
  timers: {
389
- add: i((m) => {
390
- if (m) {
391
- if (o.current.some((w) => w.id === m.id)) {
392
- G.debug(`Timer with id ${m.id} already exists.`);
390
+ add: i((l) => {
391
+ if (l) {
392
+ if (o.current.some((w) => w.id === l.id)) {
393
+ G.debug(`Timer with id ${l.id} already exists.`);
393
394
  return;
394
395
  }
395
- o.current.push(m);
396
+ o.current.push(l);
396
397
  }
397
398
  }, []),
398
399
  pause: be,
@@ -442,14 +443,14 @@ const bt = P.createLogger({
442
443
  onResetAttractTimer: a,
443
444
  onResumeAttractTimer: d,
444
445
  defaultAttractTime: b,
445
- defaultAmbientTime: f
446
+ defaultAmbientTime: p
446
447
  } = e, c = i(() => {
447
448
  s && (P.info("Ambient timer expired. Calling callback"), s == null || s());
448
- }, [s]), u = i(() => {
449
+ }, [s]), f = i(() => {
449
450
  o && (P.info("Attract timer expired. Calling callback"), o == null || o());
450
- }, [o]), p = i(() => {
451
+ }, [o]), h = i(() => {
451
452
  r && (r.restart(), a == null || a());
452
- }, [r, a]), $ = i(() => {
453
+ }, [r, a]), T = i(() => {
453
454
  r && (r.reset(), a == null || a());
454
455
  }, [r, a]), v = i(() => {
455
456
  r && (r.pause(), d == null || d());
@@ -457,35 +458,35 @@ const bt = P.createLogger({
457
458
  return V(() => {
458
459
  if (t && b) {
459
460
  P.info("Nozzle is available. Creating timers");
460
- const l = Be.createTimer(
461
+ const u = Be.createTimer(
461
462
  "attract-timer-" + t.path,
462
463
  b
463
464
  );
464
- return b && (l == null || l.addTimeoutAction({
465
+ return b && (u == null || u.addTimeoutAction({
465
466
  name: "attract-timer",
466
467
  remainingTime: 0,
467
- action: u
468
- })), f && (l == null || l.addTimeoutAction({
468
+ action: f
469
+ })), p && (u == null || u.addTimeoutAction({
469
470
  name: "ambient-timer",
470
- remainingTime: f,
471
+ remainingTime: p,
471
472
  action: c
472
- })), b && (l == null || l.start()), n(l ?? null), () => {
473
- l == null || l.reset(), n(null);
473
+ })), b && (u == null || u.start()), n(u ?? null), () => {
474
+ u == null || u.reset(), n(null);
474
475
  };
475
476
  }
476
477
  return () => {
477
478
  P.info("Nozzle is not available. No timers to clear");
478
479
  };
479
480
  }, [
480
- f,
481
+ p,
481
482
  b,
482
483
  c,
483
- u,
484
+ f,
484
485
  t
485
486
  ]), {
486
487
  attractTimer: r,
487
- restart: p,
488
- pause: $,
488
+ restart: h,
489
+ pause: T,
489
490
  resume: v
490
491
  };
491
492
  }, wt = [
@@ -520,7 +521,7 @@ const It = (e, t) => {
520
521
  const r = (s) => {
521
522
  s && s.body && t(s.body);
522
523
  };
523
- return T.subscribe(e, r).unsubscribe;
524
+ return $.subscribe(e, r).unsubscribe;
524
525
  }
525
526
  }, xt = ({
526
527
  onInit: e,
@@ -532,13 +533,13 @@ const It = (e, t) => {
532
533
  onFlavorCleared: a,
533
534
  onFlavorSelected: d,
534
535
  onReturnToHome: b,
535
- onPour: f,
536
+ onPour: p,
536
537
  onPourCancel: c,
537
- onBeforePourRejected: u,
538
- onAmbientTimer: p,
539
- onAttractTimer: $,
538
+ onBeforePourRejected: f,
539
+ onAmbientTimer: h,
540
+ onAttractTimer: T,
540
541
  onResumeAttractTimer: v,
541
- onIdleTimeout: l,
542
+ onIdleTimeout: u,
542
543
  onAreYouThereTimeout: g
543
544
  }) => {
544
545
  const { model: y } = M();
@@ -551,13 +552,13 @@ const It = (e, t) => {
551
552
  onBeverageCleared: n,
552
553
  onFlavorSelected: d,
553
554
  onFlavorCleared: a,
554
- onPour: f,
555
+ onPour: p,
555
556
  onPourCancel: c,
556
- onBeforePourRejected: u,
557
- onAmbientTimer: p,
558
- onAttractTimer: $,
557
+ onBeforePourRejected: f,
558
+ onAmbientTimer: h,
559
+ onAttractTimer: T,
559
560
  onResumeAttractTimer: v,
560
- onIdleTimeout: l,
561
+ onIdleTimeout: u,
561
562
  onAreYouThereTimeout: g,
562
563
  onInit: e,
563
564
  onReturnToHome: b
@@ -569,8 +570,8 @@ const It = (e, t) => {
569
570
  };
570
571
  }, [
571
572
  y == null ? void 0 : y.path,
572
- p,
573
- $,
573
+ h,
574
+ T,
574
575
  n,
575
576
  s,
576
577
  o,
@@ -578,11 +579,11 @@ const It = (e, t) => {
578
579
  t,
579
580
  a,
580
581
  d,
581
- f,
582
+ p,
582
583
  c,
583
- u,
584
+ f,
584
585
  v,
585
- l,
586
+ u,
586
587
  g,
587
588
  e,
588
589
  b
@@ -594,21 +595,21 @@ const It = (e, t) => {
594
595
  onResetIdleTimer: a,
595
596
  defaultAreYouThereTime: d = 10,
596
597
  defaultIdleTime: b = 20
597
- } = e, f = le(!1), c = i(() => {
598
- !f.current && s && (P.info("Are you there timer expired. Calling callback"), f.current = !0, s == null || s());
599
- }, [s]), u = i(() => {
598
+ } = e, p = le(!1), c = i(() => {
599
+ !p.current && s && (P.info("Are you there timer expired. Calling callback"), p.current = !0, s == null || s());
600
+ }, [s]), f = i(() => {
600
601
  L.debug(
601
602
  "handleIdleTimer called in useCuiKitTimers, onIdleTimer exists:",
602
603
  !!o
603
604
  ), o ? (L.debug("Idle timer expired. Calling callback"), o == null || o()) : L.debug("No onIdleTimer callback provided!");
604
- }, [o]), p = i(() => {
605
- L.debug(`TIMER RESTART called for ${e.prefix ?? ""}timer`), r && (r.restart(), f.current = !1, a == null || a());
606
- }, [r, a, e.prefix]), $ = i(() => {
607
- L.debug(`TIMER PAUSE/RESET called for ${e.prefix ?? ""}timer`), r && (r.reset(), f.current = !1, a == null || a());
605
+ }, [o]), h = i(() => {
606
+ L.debug(`TIMER RESTART called for ${e.prefix ?? ""}timer`), r && (r.restart(), p.current = !1, a == null || a());
607
+ }, [r, a, e.prefix]), T = i(() => {
608
+ L.debug(`TIMER PAUSE/RESET called for ${e.prefix ?? ""}timer`), r && (r.reset(), p.current = !1, a == null || a());
608
609
  }, [r, a, e.prefix]);
609
610
  return V(() => {
610
611
  if (L.debug(
611
- `useCuiKitTimers effect triggered - nozzle: ${!!t}, path: ${t == null ? void 0 : t.path}, callbacks: handleIdle=${!!u}, handleAreYouThere=${!!c}`
612
+ `useCuiKitTimers effect triggered - nozzle: ${!!t}, path: ${t == null ? void 0 : t.path}, callbacks: handleIdle=${!!f}, handleAreYouThere=${!!c}`
612
613
  ), t) {
613
614
  L.info("Nozzle is available. Creating timers");
614
615
  const v = Be.createTimer(
@@ -617,11 +618,11 @@ const It = (e, t) => {
617
618
  );
618
619
  return L.debug(
619
620
  `Adding idle timer action for ${e.prefix ?? ""}idle-timer-${t.path} with callback:`,
620
- !!u
621
+ !!f
621
622
  ), v == null || v.addTimeoutAction({
622
623
  name: "idle-timer",
623
624
  remainingTime: 0,
624
- action: u
625
+ action: f
625
626
  }), v == null || v.addTimeoutAction({
626
627
  name: "are-you-there-timer",
627
628
  remainingTime: d,
@@ -637,13 +638,13 @@ const It = (e, t) => {
637
638
  d,
638
639
  b,
639
640
  c,
640
- u,
641
+ f,
641
642
  t,
642
643
  e.prefix
643
644
  ]), {
644
645
  idleTimer: r,
645
- restart: p,
646
- pause: $
646
+ restart: h,
647
+ pause: T
647
648
  };
648
649
  }, W = P.createLogger({ name: "useDefaultCuiKitLifecycle" }), Gt = ({
649
650
  kit: e,
@@ -653,28 +654,28 @@ const It = (e, t) => {
653
654
  onBeforeAreYouThereTimer: s,
654
655
  areYouThereRejectionPolicy: o = "pause"
655
656
  }) => {
656
- var m, w, ee, xe;
657
- const [a, d] = x(!1), [b, f] = x(!1), { model: c } = M(), [u, p] = x(!1), $ = (t == null ? void 0 : t.idleTimeout) ?? 15, v = (t == null ? void 0 : t.areYouThereTimeoutOffset) ?? 10, l = (r == null ? void 0 : r.idleTimeout) ?? (t == null ? void 0 : t.idleTimeout) ?? 10, g = (r == null ? void 0 : r.areYouThereTimeoutOffset) ?? (t == null ? void 0 : t.areYouThereTimeoutOffset) ?? 5, y = n == null ? void 0 : n.ambientTimeoutOffset, _ = n == null ? void 0 : n.attractTimeout, O = i(() => {
657
+ var l, w, ee, xe;
658
+ const [a, d] = x(!1), [b, p] = x(!1), { model: c } = M(), [f, h] = x(!1), T = (t == null ? void 0 : t.idleTimeout) ?? 15, v = (t == null ? void 0 : t.areYouThereTimeoutOffset) ?? 10, u = (r == null ? void 0 : r.idleTimeout) ?? (t == null ? void 0 : t.idleTimeout) ?? 10, g = (r == null ? void 0 : r.areYouThereTimeoutOffset) ?? (t == null ? void 0 : t.areYouThereTimeoutOffset) ?? 5, y = n == null ? void 0 : n.ambientTimeoutOffset, _ = n == null ? void 0 : n.attractTimeout, O = i(() => {
658
659
  if (W.info("handleIdleTimeout called - navigating home and publishing event"), q(!1), e == null || e.nav.home(), c) {
659
660
  const E = `/kos/dispense/${c.path}/idle/timeout/`;
660
- T.publish(E, {});
661
+ $.publish(E, {});
661
662
  }
662
- }, [(m = e == null ? void 0 : e.nav) == null ? void 0 : m.home, c]), R = i(() => {
663
+ }, [(l = e == null ? void 0 : e.nav) == null ? void 0 : l.home, c]), R = i(() => {
663
664
  W.info("handleResetIdleTimer called - resetting idle timer"), q(!1);
664
665
  }, []), Z = i(() => {
665
- if (y && (d(!0), f(!1), c)) {
666
+ if (y && (d(!0), p(!1), c)) {
666
667
  const E = `/kos/dispense/${c.path}/ambient/start/`;
667
- T.publish(E, {});
668
+ $.publish(E, {});
668
669
  }
669
670
  }, [y, c]), Y = i(() => {
670
- if (_ && (f(!0), d(!1), c)) {
671
+ if (_ && (p(!0), d(!1), c)) {
671
672
  const E = `/kos/dispense/${c.path}/attract/start/`;
672
- T.publish(E, {});
673
+ $.publish(E, {});
673
674
  }
674
675
  }, [_, c]), me = i(() => {
675
- if (_ && (f(!1), d(!1), e == null || e.nav.home(), c)) {
676
+ if (_ && (p(!1), d(!1), e == null || e.nav.home(), c)) {
676
677
  const E = `/kos/dispense/${c.path}/attract/resume/`;
677
- T.publish(E, {});
678
+ $.publish(E, {});
678
679
  }
679
680
  }, [e == null ? void 0 : e.nav, _, c]), {
680
681
  pause: H,
@@ -691,18 +692,18 @@ const It = (e, t) => {
691
692
  const [B, q] = x(!1);
692
693
  W.info(
693
694
  "Creating idle timer with timeout:",
694
- $,
695
+ T,
695
696
  "seconds and callback:",
696
697
  !!O
697
698
  );
698
699
  const { pause: I, restart: k, idleTimer: J } = He({
699
700
  defaultAreYouThereTime: v,
700
- defaultIdleTime: $,
701
+ defaultIdleTime: T,
701
702
  onIdleTimer: O,
702
703
  onResetIdleTimer: R
703
704
  });
704
705
  W.info(
705
- `Creating pour timer with timeout: ${l} seconds and callback: ${!!O}`
706
+ `Creating pour timer with timeout: ${u} seconds and callback: ${!!O}`
706
707
  );
707
708
  const {
708
709
  pause: K,
@@ -710,7 +711,7 @@ const It = (e, t) => {
710
711
  idleTimer: F
711
712
  } = He({
712
713
  defaultAreYouThereTime: g,
713
- defaultIdleTime: l,
714
+ defaultIdleTime: u,
714
715
  onIdleTimer: O,
715
716
  prefix: "pour-"
716
717
  }), Q = i(async () => {
@@ -724,21 +725,21 @@ const It = (e, t) => {
724
725
  if (E) {
725
726
  if (c) {
726
727
  const Te = `/kos/dispense/${c.path}/are-you-there/timeout/`;
727
- T.publish(Te, {});
728
+ $.publish(Te, {});
728
729
  }
729
- q(!0), u ? K() : I();
730
+ q(!0), f ? K() : I();
730
731
  } else
731
732
  switch (o) {
732
733
  case "pause":
733
- u ? K() : I();
734
+ f ? K() : I();
734
735
  break;
735
736
  case "restart":
736
- u ? j() : k();
737
+ f ? j() : k();
737
738
  break;
738
739
  }
739
- }, [s, c, o, u]), he = i(() => {
740
- q(!1), H(), u ? (j(), I()) : (k(), K());
741
- }, [u, I, K, k, j]);
740
+ }, [s, c, o, f]), he = i(() => {
741
+ q(!1), H(), f ? (j(), I()) : (k(), K());
742
+ }, [f, I, K, k, j]);
742
743
  V(() => {
743
744
  J && J.addTimeoutAction({
744
745
  name: "are-you-there-timer",
@@ -753,21 +754,21 @@ const It = (e, t) => {
753
754
  });
754
755
  }, [F, g, Q]), (ee = e == null ? void 0 : e.timers) == null || ee.add(J), (xe = e == null ? void 0 : e.timers) == null || xe.add(F);
755
756
  const z = i(() => {
756
- p(!1), K(), I(), H();
757
+ h(!1), K(), I(), H();
757
758
  }, [I, K]), fe = i(() => {
758
- p(!0), W.info("restarting pour timer"), j(), H(), I();
759
+ h(!0), W.info("restarting pour timer"), j(), H(), I();
759
760
  }, [I, j]), pe = i(() => {
760
- p(!1), W.info("restarting pour timer on before pour rejected"), K(), k();
761
+ h(!1), W.info("restarting pour timer on before pour rejected"), K(), k();
761
762
  }, []), be = i(() => {
762
- H(), f(!1), d(!1), k();
763
+ H(), p(!1), d(!1), k();
763
764
  }, [H, k]), ve = i(() => {
764
- f(!1), d(!1), p(!1), K(), D();
765
+ p(!1), d(!1), h(!1), K(), D();
765
766
  }, [D, K]), Ie = i(() => {
766
- f(!1), d(!1), p(!1), H(), k();
767
+ p(!1), d(!1), h(!1), H(), k();
767
768
  }, [H, k]), ae = i(() => {
768
- f(!1), d(!1), p(!1), D(), I(), K();
769
+ p(!1), d(!1), h(!1), D(), I(), K();
769
770
  }, [D, I, K]), oe = i(() => {
770
- f(!1), d(!1), D(), I();
771
+ p(!1), d(!1), D(), I();
771
772
  }, [D, I]);
772
773
  xt({
773
774
  onBrandSelected: be,
@@ -783,11 +784,11 @@ const It = (e, t) => {
783
784
  // component's own timer hooks call those handlers directly. Including them would
784
785
  // create circular event loops.
785
786
  });
786
- const ie = u ? g : v;
787
+ const ie = f ? g : v;
787
788
  return V(() => {
788
789
  if (c && U) {
789
790
  const E = `/kos/dispense/${c == null ? void 0 : c.path}/init/`;
790
- T.publish(E, {});
791
+ $.publish(E, {});
791
792
  }
792
793
  }, [c, U]), {
793
794
  showAreYouThere: B,
@@ -811,7 +812,7 @@ const It = (e, t) => {
811
812
  function Vt(e) {
812
813
  return (t) => {
813
814
  const { model: r, status: n, KosModelLoader: s } = je();
814
- return /* @__PURE__ */ h(s, { ...n, children: /* @__PURE__ */ h(e, { ...t, deviceAssembly: r }) });
815
+ return /* @__PURE__ */ m(s, { ...n, children: /* @__PURE__ */ m(e, { ...t, deviceAssembly: r }) });
815
816
  };
816
817
  }
817
818
  const We = (e) => C({
@@ -822,7 +823,7 @@ const We = (e) => C({
822
823
  function jt(e, t) {
823
824
  return (r) => {
824
825
  const { model: n, status: s, KosModelLoader: o } = We(e);
825
- return /* @__PURE__ */ h(o, { ...s, children: /* @__PURE__ */ h(t, { ...r, holder: n }) });
826
+ return /* @__PURE__ */ m(o, { ...s, children: /* @__PURE__ */ m(t, { ...r, holder: n }) });
826
827
  };
827
828
  }
828
829
  const qe = () => {
@@ -836,7 +837,7 @@ const qe = () => {
836
837
  function Wt(e) {
837
838
  return (t) => {
838
839
  const { model: r, status: n, KosModelLoader: s } = qe();
839
- return /* @__PURE__ */ h(s, { ...n, children: /* @__PURE__ */ h(e, { ...t, holderContainer: r }) });
840
+ return /* @__PURE__ */ m(s, { ...n, children: /* @__PURE__ */ m(e, { ...t, holderContainer: r }) });
840
841
  };
841
842
  }
842
843
  const Je = () => {
@@ -894,7 +895,7 @@ const Je = () => {
894
895
  function Jt(e) {
895
896
  return (t) => {
896
897
  const { model: r, status: n, KosModelLoader: s } = Je();
897
- return /* @__PURE__ */ h(s, { ...n, children: /* @__PURE__ */ h(e, { ...t, ingredient: r }) });
898
+ return /* @__PURE__ */ m(s, { ...n, children: /* @__PURE__ */ m(e, { ...t, ingredient: r }) });
898
899
  };
899
900
  }
900
901
  const Qe = () => {
@@ -908,13 +909,13 @@ const Qe = () => {
908
909
  function Qt(e) {
909
910
  return (t) => {
910
911
  const { model: r, status: n, KosModelLoader: s } = Qe();
911
- return /* @__PURE__ */ h(s, { ...n, children: /* @__PURE__ */ h(e, { ...t, ingredientContainer: r }) });
912
+ return /* @__PURE__ */ m(s, { ...n, children: /* @__PURE__ */ m(e, { ...t, ingredientContainer: r }) });
912
913
  };
913
914
  }
914
915
  function Xt(e, t) {
915
916
  return (r) => {
916
917
  const { model: n, status: s, KosModelLoader: o } = Ye(e);
917
- return /* @__PURE__ */ h(o, { ...s, children: /* @__PURE__ */ h(t, { ...r, nozzle: n }) });
918
+ return /* @__PURE__ */ m(o, { ...s, children: /* @__PURE__ */ m(t, { ...r, nozzle: n }) });
918
919
  };
919
920
  }
920
921
  const re = P.createLogger({
@@ -931,7 +932,7 @@ const re = P.createLogger({
931
932
  }) => {
932
933
  const [d, b] = x(
933
934
  o || new Ge()
934
- ), f = i(async () => {
935
+ ), p = i(async () => {
935
936
  re.debug(
936
937
  `[${a == null ? void 0 : a.name}] - calling before pour for pour target ${s == null ? void 0 : s.id}.`
937
938
  ), (e ? await (e == null ? void 0 : e(d)) : !0) ? (re.debug(
@@ -944,27 +945,27 @@ const re = P.createLogger({
944
945
  re.debug(
945
946
  `[${a == null ? void 0 : a.name}] - Pour initiate ended called for pour target ${s == null ? void 0 : s.id}.`
946
947
  ), await ((g = a == null ? void 0 : a.initiateEnded) == null ? void 0 : g.call(a, s)) || r == null || r();
947
- }, [r, s, a]), u = i(async () => {
948
+ }, [r, s, a]), f = i(async () => {
948
949
  re.debug(`Force cancelling pour for pour target ${s == null ? void 0 : s.id}.`), await (s == null ? void 0 : s.cancelPour()), r == null || r();
949
- }, [r, s]), p = i(
950
- (l, g) => {
951
- d.set(l, g);
950
+ }, [r, s]), h = i(
951
+ (u, g) => {
952
+ d.set(u, g);
952
953
  },
953
954
  [d]
954
- ), $ = i(
955
- (l) => {
956
- d.remove(l);
955
+ ), T = i(
956
+ (u) => {
957
+ d.remove(u);
957
958
  },
958
959
  [d]
959
960
  );
960
961
  return {
961
962
  handlers: Pe({
962
- onPressed: f,
963
+ onPressed: p,
963
964
  onRelease: c
964
965
  }).dom,
965
- cancel: u,
966
- updatePourContext: p,
967
- removeFromPourContext: $,
966
+ cancel: f,
967
+ updatePourContext: h,
968
+ removeFromPourContext: T,
968
969
  status: s
969
970
  };
970
971
  }, ne = P.createLogger({
@@ -1051,12 +1052,12 @@ function ts(e) {
1051
1052
  t.servicePathFactory,
1052
1053
  t.itemId
1053
1054
  );
1054
- return /* @__PURE__ */ h(s, { ...n, children: /* @__PURE__ */ h(e, { ...t, genericPour: r }) });
1055
+ return /* @__PURE__ */ m(s, { ...n, children: /* @__PURE__ */ m(e, { ...t, genericPour: r }) });
1055
1056
  };
1056
1057
  }
1057
1058
  const Xe = N(void 0), ss = ({ children: e }) => {
1058
1059
  const { model: t, ready: r } = Le(), n = A(() => r && t ? { model: t } : {}, [r, t]);
1059
- return /* @__PURE__ */ h(Xe.Provider, { value: n, children: e });
1060
+ return /* @__PURE__ */ m(Xe.Provider, { value: n, children: e });
1060
1061
  }, rs = () => {
1061
1062
  const e = S(
1062
1063
  Xe
@@ -1068,7 +1069,7 @@ const Xe = N(void 0), ss = ({ children: e }) => {
1068
1069
  return e;
1069
1070
  }, Ze = N(void 0), ns = ({ children: e }) => {
1070
1071
  const { model: t, ready: r } = Me(), n = A(() => r && t ? { model: t } : {}, [r, t]);
1071
- return /* @__PURE__ */ h(Ze.Provider, { value: n, children: e });
1072
+ return /* @__PURE__ */ m(Ze.Provider, { value: n, children: e });
1072
1073
  }, as = () => {
1073
1074
  const e = S(Ze);
1074
1075
  if (!e)
@@ -1078,7 +1079,7 @@ const Xe = N(void 0), ss = ({ children: e }) => {
1078
1079
  return e;
1079
1080
  }, Ue = N(void 0), os = ({ children: e, id: t }) => {
1080
1081
  const { model: r, ready: n } = _e(t), s = A(() => n && r ? { model: r } : {}, [n, r]);
1081
- return /* @__PURE__ */ h(Ue.Provider, { value: s, children: e });
1082
+ return /* @__PURE__ */ m(Ue.Provider, { value: s, children: e });
1082
1083
  }, is = () => {
1083
1084
  const e = S(Ue);
1084
1085
  if (!e)
@@ -1086,7 +1087,7 @@ const Xe = N(void 0), ss = ({ children: e }) => {
1086
1087
  return e;
1087
1088
  }, ze = N(void 0), cs = ({ children: e }) => {
1088
1089
  const { model: t, ready: r } = Oe(), n = A(() => r && t ? { model: t } : {}, [r, t]);
1089
- return /* @__PURE__ */ h(ze.Provider, { value: n, children: e });
1090
+ return /* @__PURE__ */ m(ze.Provider, { value: n, children: e });
1090
1091
  }, ds = () => {
1091
1092
  const e = S(ze);
1092
1093
  if (!e)
@@ -1104,7 +1105,7 @@ const Xe = N(void 0), ss = ({ children: e }) => {
1104
1105
  }
1105
1106
  return {};
1106
1107
  }, [r, t]), s = r && t ? e : null;
1107
- return /* @__PURE__ */ h(et.Provider, { value: n, children: s });
1108
+ return /* @__PURE__ */ m(et.Provider, { value: n, children: s });
1108
1109
  }, yt = () => {
1109
1110
  const e = S(et);
1110
1111
  if (!e)
@@ -1129,7 +1130,7 @@ function St({
1129
1130
  nozzleProps: n
1130
1131
  }) {
1131
1132
  const s = $t(r);
1132
- return /* @__PURE__ */ h(t, { value: s, children: e(n || {}) });
1133
+ return /* @__PURE__ */ m(t, { value: s, children: e(n || {}) });
1133
1134
  }
1134
1135
  function kt({
1135
1136
  children: e,
@@ -1137,7 +1138,7 @@ function kt({
1137
1138
  props: r
1138
1139
  }) {
1139
1140
  const { nozzlePaths: n } = yt(), s = (n == null ? void 0 : n.length) || 0;
1140
- return (n == null ? void 0 : n.map((a, d) => /* @__PURE__ */ h(ht, { path: a, children: /* @__PURE__ */ h(
1141
+ return (n == null ? void 0 : n.map((a, d) => /* @__PURE__ */ m(ht, { path: a, children: /* @__PURE__ */ m(
1141
1142
  St,
1142
1143
  {
1143
1144
  provider: t,
@@ -1157,7 +1158,7 @@ function Nt({
1157
1158
  provider: e,
1158
1159
  props: t
1159
1160
  }) {
1160
- return ({ children: r }) => e ? /* @__PURE__ */ h(Et, { children: /* @__PURE__ */ h(
1161
+ return ({ children: r }) => e ? /* @__PURE__ */ m(Et, { children: /* @__PURE__ */ m(
1161
1162
  kt,
1162
1163
  {
1163
1164
  provider: e,
@@ -1175,7 +1176,7 @@ function us(e) {
1175
1176
  }
1176
1177
  const tt = N(void 0), ls = ({ children: e, id: t }) => {
1177
1178
  const { model: r, ready: n } = We(t || ""), s = A(() => n && r ? { model: r } : {}, [n, r]);
1178
- return /* @__PURE__ */ h(tt.Provider, { value: s, children: e });
1179
+ return /* @__PURE__ */ m(tt.Provider, { value: s, children: e });
1179
1180
  }, ms = () => {
1180
1181
  const e = S(tt);
1181
1182
  if (!e)
@@ -1185,7 +1186,7 @@ const tt = N(void 0), ls = ({ children: e, id: t }) => {
1185
1186
  void 0
1186
1187
  ), hs = ({ children: e }) => {
1187
1188
  const { model: t, ready: r } = qe(), n = A(() => r && t ? { model: t } : {}, [r, t]);
1188
- return /* @__PURE__ */ h(st.Provider, { value: n, children: e });
1189
+ return /* @__PURE__ */ m(st.Provider, { value: n, children: e });
1189
1190
  }, fs = () => {
1190
1191
  const e = S(st);
1191
1192
  if (!e)
@@ -1195,7 +1196,7 @@ const tt = N(void 0), ls = ({ children: e, id: t }) => {
1195
1196
  return e;
1196
1197
  }, rt = N(void 0), ps = ({ children: e }) => {
1197
1198
  const { model: t, ready: r } = Je(), n = A(() => r && t ? { model: t } : {}, [r, t]);
1198
- return /* @__PURE__ */ h(rt.Provider, { value: n, children: e });
1199
+ return /* @__PURE__ */ m(rt.Provider, { value: n, children: e });
1199
1200
  }, bs = () => {
1200
1201
  const e = S(rt);
1201
1202
  if (!e)
@@ -1207,7 +1208,7 @@ const tt = N(void 0), ls = ({ children: e, id: t }) => {
1207
1208
  void 0
1208
1209
  ), vs = ({ children: e }) => {
1209
1210
  const { model: t, ready: r } = Qe(), n = A(() => r && t ? { model: t } : {}, [r, t]);
1210
- return /* @__PURE__ */ h(nt.Provider, { value: n, children: e });
1211
+ return /* @__PURE__ */ m(nt.Provider, { value: n, children: e });
1211
1212
  }, Ts = () => {
1212
1213
  const e = S(nt);
1213
1214
  if (!e)
@@ -1224,7 +1225,7 @@ const tt = N(void 0), ls = ({ children: e, id: t }) => {
1224
1225
  });
1225
1226
  }, at = N(void 0), $s = ({ children: e }) => {
1226
1227
  const { model: t, ready: r } = Ht(), n = A(() => r && t ? { model: t } : {}, [r, t]);
1227
- return /* @__PURE__ */ h(at.Provider, { value: n, children: e });
1228
+ return /* @__PURE__ */ m(at.Provider, { value: n, children: e });
1228
1229
  }, gs = () => {
1229
1230
  const e = S(at);
1230
1231
  if (!e)
@@ -1299,4 +1300,4 @@ export {
1299
1300
  Ft as y,
1300
1301
  ft as z
1301
1302
  };
1302
- //# sourceMappingURL=pump-provider-BTnIydH2.js.map
1303
+ //# sourceMappingURL=pump-provider-B5htndvr.js.map