@kosdev-code/kos-dispense-sdk 2.0.34 → 2.0.35

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.
@@ -0,0 +1,1239 @@
1
+ var it = Object.defineProperty;
2
+ var at = (e, t, r) => t in e ? it(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
+ var J = (e, t, r) => (at(e, typeof t != "symbol" ? t + "" : t, r), r);
4
+ import { jsx as p } from "@emotion/react/jsx-runtime";
5
+ import { A as Ie, b as Ae, e as ot, d as xe, N as ct, f as ke, H as dt, g as Ee, I as Se, h as Ne, G as ut, P as He } from "./dispense-registration-manager-eOOE05xT.js";
6
+ import { useKosModel as N, getKosCompanionModel as be, kosAutoEffect as Be, KosLog as T, usePressGesture as ve, EventBus as g, TimerManager as Ce } from "@kosdev-code/kos-ui-sdk";
7
+ import lt, { createContext as L, useMemo as A, useContext as H, useState as S, useCallback as o, useEffect as O, useRef as Re } from "react";
8
+ const ye = () => {
9
+ const e = Ie.type;
10
+ return N({
11
+ modelId: e,
12
+ modelType: Ie.type,
13
+ options: {}
14
+ });
15
+ };
16
+ function yt(e) {
17
+ return (t) => {
18
+ const { model: r, status: n, KosModelLoader: s } = ye();
19
+ return /* @__PURE__ */ p(s, { ...n, children: /* @__PURE__ */ p(e, { ...t, assembly: r }) });
20
+ };
21
+ }
22
+ const De = () => {
23
+ const e = Ae.type;
24
+ return N({
25
+ modelId: e,
26
+ modelType: Ae.type,
27
+ options: {}
28
+ });
29
+ };
30
+ function Dt(e) {
31
+ return (t) => {
32
+ const { model: r, status: n, KosModelLoader: s } = De();
33
+ return /* @__PURE__ */ p(s, { ...n, children: /* @__PURE__ */ p(e, { ...t, beverage: r }) });
34
+ };
35
+ }
36
+ const Me = (e) => N({
37
+ modelId: e,
38
+ modelType: ot.type,
39
+ options: {}
40
+ });
41
+ function Mt(e) {
42
+ return (t) => (r) => {
43
+ const { model: n, status: s, KosModelLoader: i } = Me(t);
44
+ return /* @__PURE__ */ p(i, { ...s, children: /* @__PURE__ */ p(e, { ...r, board: n }) });
45
+ };
46
+ }
47
+ const Oe = () => {
48
+ const e = xe.type;
49
+ return N({
50
+ modelId: e,
51
+ modelType: xe.type,
52
+ options: {}
53
+ });
54
+ };
55
+ function Ot(e) {
56
+ return (t) => {
57
+ const { model: r, status: n, KosModelLoader: s } = Oe();
58
+ return /* @__PURE__ */ p(s, { ...n, children: /* @__PURE__ */ p(e, { ...t, boardContainer: r }) });
59
+ };
60
+ }
61
+ const Ye = (e) => N({
62
+ modelId: e,
63
+ modelType: ct.type,
64
+ options: {
65
+ path: e
66
+ }
67
+ }), _e = L(void 0), pt = ({ children: e, path: t }) => {
68
+ const { model: r, ready: n } = Ye(t), s = A(() => n && r ? { model: r } : {}, [n, r]);
69
+ return /* @__PURE__ */ p(_e.Provider, { value: s, children: e });
70
+ }, y = () => {
71
+ const e = H(_e);
72
+ if (!e)
73
+ throw new Error("useNozzleContext must be used within a NozzleProvider");
74
+ return e;
75
+ }, mt = ({
76
+ onBeverageSelected: e,
77
+ onClearBeverage: t,
78
+ companionType: r
79
+ }) => {
80
+ const { model: n } = y(), [s, i] = S([]), [u, l] = S(null), f = A(() => r ? s.map(
81
+ (d) => be(d, r)
82
+ ) : [], [s, r]), h = o(
83
+ async (d) => {
84
+ l(d), await (n == null ? void 0 : n.setSelectedPourable({ beverage: d })), e == null || e(d);
85
+ },
86
+ [n, e]
87
+ ), c = o(async () => {
88
+ l(null), await (n == null ? void 0 : n.setSelectedPourable({ beverage: void 0 })), t == null || t();
89
+ }, [n, t]);
90
+ return O(() => {
91
+ const d = Be(() => {
92
+ if (!n)
93
+ return;
94
+ const $ = n.selectedBrand;
95
+ if (!$) {
96
+ const b = n.getGroupAvailabilityItems("beverages").filter((v) => v.visible);
97
+ i(b ?? []);
98
+ return;
99
+ }
100
+ const x = n.getAvailabilityByParent($.id).filter((b) => b.visible);
101
+ i(x ?? []);
102
+ });
103
+ return () => {
104
+ d();
105
+ };
106
+ }, [n]), {
107
+ beverages: s,
108
+ beverageCompanions: f,
109
+ selectBeverage: h,
110
+ selectedBeverage: u,
111
+ clearBeverage: c
112
+ };
113
+ }, ht = ({
114
+ onBrandSelected: e,
115
+ onBrandCleared: t,
116
+ companionType: r
117
+ }) => {
118
+ const { model: n } = y(), [s, i] = S(null), [u, l] = S([]), f = A(() => r ? u.map((d) => be(d, r)) : [], [u, r]), h = o(
119
+ async (d) => {
120
+ i(d), n == null || n.setSelectedBrand(d), e == null || e(d);
121
+ },
122
+ [n, e]
123
+ ), c = o(() => {
124
+ i(null), n == null || n.setSelectedBrand(void 0), t == null || t();
125
+ }, [n, t]);
126
+ return O(() => {
127
+ const d = Be(() => {
128
+ n && l(n.visibleBrands);
129
+ });
130
+ return () => {
131
+ d();
132
+ };
133
+ }, [n]), {
134
+ brands: u,
135
+ brandCompanions: f,
136
+ selectedBrand: s,
137
+ selectBrand: h,
138
+ clearBrand: c
139
+ };
140
+ }, ft = T.createLogger({
141
+ name: "HoldToPourStrategy",
142
+ group: "kos-hooks"
143
+ }), Ge = {
144
+ name: "HoldToPourStrategy",
145
+ async initiate(e) {
146
+ if (!(e != null && e.canPour)) {
147
+ ft.debug(`Nozzle ${e == null ? void 0 : e.id} cannot pour. Returning early.`);
148
+ return;
149
+ }
150
+ await (e == null ? void 0 : e.pour());
151
+ },
152
+ async initiateEnded(e) {
153
+ await (e == null ? void 0 : e.cancelPour());
154
+ }
155
+ }, re = T.createLogger({
156
+ name: "useNozzlePour",
157
+ group: "kos-hooks"
158
+ }), bt = ({
159
+ onPour: e,
160
+ onPourCancel: t,
161
+ onBeforePour: r,
162
+ onBeforePourRejected: n,
163
+ strategy: s = Ge
164
+ }) => {
165
+ const { model: i } = y(), u = o(async () => {
166
+ (r ? await (r == null ? void 0 : r()) : !0) ? (re.debug(
167
+ `[${s == null ? void 0 : s.name}] - Pour initiated for nozzle ${i == null ? void 0 : i.id}.`
168
+ ), s == null || s.initiate(i), e == null || e()) : (re.debug(
169
+ `[${s == null ? void 0 : s.name}] - Did not pass onBeforePour gate for nozzle ${i == null ? void 0 : i.id}. Cancelling pour.`
170
+ ), n == null || n());
171
+ }, [e, i, s, r, t]), l = o(() => {
172
+ var c;
173
+ re.debug(
174
+ `[${s == null ? void 0 : s.name}] - Pour initiate ended called for nozzle ${i == null ? void 0 : i.id}.`
175
+ ), (c = s == null ? void 0 : s.initiateEnded) == null || c.call(s, i), t == null || t();
176
+ }, [t, i, s]), f = o(() => {
177
+ re.debug(`Force cancelling pour for nozzle ${i == null ? void 0 : i.id}.`), i == null || i.cancelPour(), t == null || t();
178
+ }, [t, i]);
179
+ return {
180
+ handlers: ve({
181
+ onPressed: u,
182
+ onRelease: l
183
+ }).dom,
184
+ cancel: f,
185
+ status: i
186
+ };
187
+ }, vt = ({
188
+ onFlavorSelected: e,
189
+ onFlavorCleared: t,
190
+ companionType: r
191
+ }) => {
192
+ const { model: n } = y(), s = A(
193
+ () => (n == null ? void 0 : n.getGroupAvailabilityItems("flavors").filter((c) => c.visible)) ?? [],
194
+ [n]
195
+ ), i = A(() => r ? s.map(
196
+ (c) => be(c, r)
197
+ ) : [], [s, r]), [u, l] = S([]), f = o(
198
+ async (c) => {
199
+ if (l(
200
+ (d) => d != null && d.includes(c) ? [...d.filter(($) => $ !== c)] : [...d ?? [], c]
201
+ ), n != null && n.selectedPourable) {
202
+ const { beverage: d } = n.selectedPourable;
203
+ await n.setSelectedPourable({
204
+ beverage: d,
205
+ additional: u ?? []
206
+ });
207
+ }
208
+ e == null || e(c, u ?? []);
209
+ },
210
+ [n, e, u]
211
+ ), h = o(async () => {
212
+ if (l([]), n != null && n.selectedPourable) {
213
+ const { beverage: c } = n.selectedPourable;
214
+ n.setSelectedPourable({ beverage: c }), t == null || t();
215
+ }
216
+ }, [n, t]);
217
+ return {
218
+ flavors: s,
219
+ flavorCompanions: i,
220
+ selectFlavor: f,
221
+ selectedFlavors: u,
222
+ clearFlavors: h
223
+ };
224
+ }, Q = "brands", ne = "beverages", X = "flavors", M = T.createLogger({ name: "use-cui-kit" }), $t = ({
225
+ initialGroup: e = Q,
226
+ options: t = {}
227
+ }) => {
228
+ var ee, te, se;
229
+ const [r, n] = S(e), { model: s } = y(), i = Re([]), u = o(
230
+ (m) => {
231
+ n(X);
232
+ const C = `/kos/dispense/${s == null ? void 0 : s.path}/brand/selected/`;
233
+ g.publish(C, m);
234
+ },
235
+ [s == null ? void 0 : s.path]
236
+ ), l = o(() => {
237
+ const m = `/kos/dispense/${s == null ? void 0 : s.path}/brand/cleared/`;
238
+ g.publish(m, {});
239
+ }, [s == null ? void 0 : s.path]), f = o(
240
+ (m) => {
241
+ n(X);
242
+ const C = `/kos/dispense/${s == null ? void 0 : s.path}/beverage/selected/`;
243
+ g.publish(C, m);
244
+ },
245
+ [s == null ? void 0 : s.path]
246
+ ), h = o(() => {
247
+ const m = `/kos/dispense/${s == null ? void 0 : s.path}/beverage/cleared/`;
248
+ g.publish(m, {});
249
+ }, [s == null ? void 0 : s.path]), c = o(
250
+ (m) => {
251
+ const C = `/kos/dispense/${s == null ? void 0 : s.path}/flavor/selected/`;
252
+ g.publish(C, m);
253
+ },
254
+ [s == null ? void 0 : s.path]
255
+ ), d = o(() => {
256
+ const m = `/kos/dispense/${s == null ? void 0 : s.path}/flavor/cleared/`;
257
+ g.publish(m, {});
258
+ }, [s == null ? void 0 : s.path]), $ = o(() => {
259
+ const m = `/kos/dispense/${s == null ? void 0 : s.path}/pour/`;
260
+ g.publish(m, {});
261
+ }, [s == null ? void 0 : s.path]), x = o(async () => {
262
+ const m = `/kos/dispense/${s == null ? void 0 : s.path}/pre/pour/`;
263
+ return g.publish(m, {}), await (D == null ? void 0 : D()) || !0;
264
+ }, [s == null ? void 0 : s.path]), b = o(async () => {
265
+ const m = `/kos/dispense/${s == null ? void 0 : s.path}/pre/pour/rejected/`;
266
+ g.publish(m, {});
267
+ }, [s == null ? void 0 : s.path]), v = o(() => {
268
+ const m = `/kos/dispense/${s == null ? void 0 : s.path}/pour/cancel/`;
269
+ g.publish(m, {});
270
+ }, [s == null ? void 0 : s.path]), { brands: a, selectBrand: _, selectedBrand: B, clearBrand: w, brandCompanions: V } = ht({
271
+ companionType: (ee = t.companionTypes) == null ? void 0 : ee.brand,
272
+ onBrandSelected: u,
273
+ onBrandCleared: l
274
+ }), {
275
+ beverages: ae,
276
+ selectBeverage: oe,
277
+ selectedBeverage: G,
278
+ clearBeverage: P,
279
+ beverageCompanions: ce
280
+ } = mt({
281
+ companionType: (te = t.companionTypes) == null ? void 0 : te.beverage,
282
+ onBeverageSelected: f,
283
+ onClearBeverage: h
284
+ }), {
285
+ clearFlavors: W,
286
+ flavors: de,
287
+ selectFlavor: q,
288
+ selectedFlavors: I,
289
+ flavorCompanions: K
290
+ } = vt({
291
+ companionType: (se = t.companionTypes) == null ? void 0 : se.flavor,
292
+ onFlavorSelected: c,
293
+ onFlavorCleared: d
294
+ }), [D, k] = S(), Y = o((m) => {
295
+ k(() => m);
296
+ }, []), F = bt({
297
+ onPour: $,
298
+ onPourCancel: v,
299
+ onBeforePour: x,
300
+ onBeforePourRejected: b
301
+ }), U = o(() => {
302
+ switch (M.debug(`Navigating back from group: ${r}`), r) {
303
+ case Q:
304
+ P(), w();
305
+ break;
306
+ case ne:
307
+ case X:
308
+ n(e), P(), w();
309
+ break;
310
+ }
311
+ }, [P, w, r, e]), ue = o(() => {
312
+ const m = `/kos/dispense/${s == null ? void 0 : s.path}/home/`;
313
+ g.publish(m, {}), n(e), e === Q && (P(), w()), e === ne && P();
314
+ }, [P, w, e]), le = o(() => {
315
+ if (i.current.length === 0) {
316
+ M.debug("No timers to pause.");
317
+ return;
318
+ }
319
+ M.debug(`Pausing ${i.current.length} timers.`), i.current.forEach((m) => {
320
+ M.debug(`Pausing timer with id ${m.id}.`), m.pause();
321
+ });
322
+ }, []), pe = o(() => {
323
+ if (i.current.length === 0) {
324
+ M.debug("No timers to restart.");
325
+ return;
326
+ }
327
+ M.debug(`Restarting ${i.current.length} timers.`), i.current.forEach((m) => {
328
+ M.debug(`Restarting timer with id ${m.id}.`), m.restart();
329
+ });
330
+ }, []);
331
+ return {
332
+ timers: {
333
+ add: o((m) => {
334
+ if (m) {
335
+ if (i.current.some((C) => C.id === m.id)) {
336
+ M.debug(`Timer with id ${m.id} already exists.`);
337
+ return;
338
+ }
339
+ i.current.push(m);
340
+ }
341
+ }, []),
342
+ pause: le,
343
+ restart: pe
344
+ },
345
+ nav: {
346
+ currentGroup: r,
347
+ back: U,
348
+ home: ue
349
+ },
350
+ pour: F,
351
+ updateOnBeforePour: Y,
352
+ selections: {
353
+ [Q]: B,
354
+ [ne]: G,
355
+ [X]: I
356
+ },
357
+ [Q]: {
358
+ models: a,
359
+ companions: V,
360
+ clear: w,
361
+ handlers: {
362
+ onSelected: _
363
+ }
364
+ },
365
+ [ne]: {
366
+ models: ae,
367
+ companions: ce,
368
+ clear: P,
369
+ handlers: {
370
+ onSelected: oe
371
+ }
372
+ },
373
+ [X]: {
374
+ models: de,
375
+ companions: K,
376
+ clear: W,
377
+ handlers: {
378
+ onSelected: q
379
+ }
380
+ }
381
+ };
382
+ }, gt = (e) => {
383
+ const { model: t } = y(), [r, n] = S(null), {
384
+ onAmbientTimer: s,
385
+ onAttractTimer: i,
386
+ onResetAttractTimer: u,
387
+ onResumeAttractTimer: l,
388
+ defaultAttractTime: f,
389
+ defaultAmbientTime: h
390
+ } = e, c = o(() => {
391
+ s && (T.info("Ambient timer expired. Calling callback"), s == null || s());
392
+ }, [s]), d = o(() => {
393
+ i && (T.info("Attract timer expired. Calling callback"), i == null || i());
394
+ }, [i]), $ = o(() => {
395
+ r && (r.restart(), u == null || u());
396
+ }, [r, u]), x = o(() => {
397
+ r && (r.reset(), u == null || u());
398
+ }, [r, u]), b = o(() => {
399
+ r && (r.pause(), l == null || l());
400
+ }, [r, l]);
401
+ return O(() => {
402
+ if (t && f) {
403
+ T.info("Nozzle is available. Creating timers");
404
+ const v = Ce.createTimer(
405
+ "attract-timer-" + t.path,
406
+ f
407
+ );
408
+ return f && (v == null || v.addTimeoutAction({
409
+ name: "attract-timer",
410
+ remainingTime: 0,
411
+ action: d
412
+ })), h && (v == null || v.addTimeoutAction({
413
+ name: "ambient-timer",
414
+ remainingTime: h,
415
+ action: c
416
+ })), f && (v == null || v.start()), n(v ?? null), () => {
417
+ v == null || v.reset(), n(null);
418
+ };
419
+ }
420
+ return () => {
421
+ T.info("Nozzle is not available. No timers to clear");
422
+ };
423
+ }, [
424
+ h,
425
+ f,
426
+ c,
427
+ d,
428
+ t
429
+ ]), {
430
+ attractTimer: r,
431
+ restart: $,
432
+ pause: x,
433
+ resume: b
434
+ };
435
+ }, wt = (e, t) => {
436
+ if (t)
437
+ return g.subscribe(e, t).unsubscribe;
438
+ }, Tt = ({
439
+ onInit: e,
440
+ onBrandSelected: t,
441
+ onBrandCleared: r,
442
+ onBeverageCleared: n,
443
+ onBeverageSelected: s,
444
+ onFlavorCleared: i,
445
+ onFlavorSelected: u,
446
+ onReturnToHome: l,
447
+ onPour: f,
448
+ onPourCancel: h,
449
+ onBeforePourRejected: c,
450
+ onAmbientTimer: d,
451
+ onAttractTimer: $,
452
+ onResumeAttractTimer: x,
453
+ onIdleTimeout: b,
454
+ onAreYouThereTimeout: v
455
+ }) => {
456
+ const { model: a } = y();
457
+ O(() => {
458
+ const B = [
459
+ {
460
+ topic: `/kos/dispense/${a == null ? void 0 : a.path}/brand/selected/`,
461
+ callback: t
462
+ },
463
+ {
464
+ topic: `/kos/dispense/${a == null ? void 0 : a.path}/brand/cleared/`,
465
+ callback: r
466
+ },
467
+ {
468
+ topic: `/kos/dispense/${a == null ? void 0 : a.path}/beverage/selected/`,
469
+ callback: s
470
+ },
471
+ {
472
+ topic: `/kos/dispense/${a == null ? void 0 : a.path}/beverage/cleared/`,
473
+ callback: n
474
+ },
475
+ {
476
+ topic: `/kos/dispense/${a == null ? void 0 : a.path}/flavor/selected/`,
477
+ callback: u
478
+ },
479
+ {
480
+ topic: `/kos/dispense/${a == null ? void 0 : a.path}/flavor/cleared/`,
481
+ callback: i
482
+ },
483
+ { topic: `/kos/dispense/${a == null ? void 0 : a.path}/pour/`, callback: f },
484
+ {
485
+ topic: `/kos/dispense/${a == null ? void 0 : a.path}/pour/cancel/`,
486
+ callback: h
487
+ },
488
+ {
489
+ topic: `/kos/dispense/${a == null ? void 0 : a.path}/pre/pour/rejected/`,
490
+ callback: c
491
+ },
492
+ {
493
+ topic: `/kos/dispense/${a == null ? void 0 : a.path}/ambient/start/`,
494
+ callback: d
495
+ },
496
+ {
497
+ topic: `/kos/dispense/${a == null ? void 0 : a.path}/attract/start/`,
498
+ callback: $
499
+ },
500
+ {
501
+ topic: `/kos/dispense/${a == null ? void 0 : a.path}/attract/resume/`,
502
+ callback: x
503
+ },
504
+ {
505
+ topic: `/kos/dispense/${a == null ? void 0 : a.path}/idle/timeout/`,
506
+ callback: b
507
+ },
508
+ {
509
+ topic: `/kos/dispense/${a == null ? void 0 : a.path}/are-you-there/timeout/`,
510
+ callback: v
511
+ },
512
+ {
513
+ topic: `/kos/dispense/${a == null ? void 0 : a.path}/init/`,
514
+ callback: e
515
+ },
516
+ {
517
+ topic: `/kos/dispense/${a == null ? void 0 : a.path}/home/`,
518
+ callback: l
519
+ }
520
+ ].map(
521
+ ({ topic: w, callback: V }) => wt(w, V)
522
+ );
523
+ return () => {
524
+ B.forEach((w) => w == null ? void 0 : w());
525
+ };
526
+ }, [
527
+ a == null ? void 0 : a.path,
528
+ d,
529
+ $,
530
+ n,
531
+ s,
532
+ r,
533
+ t,
534
+ i,
535
+ u,
536
+ f,
537
+ h,
538
+ x,
539
+ b,
540
+ v,
541
+ e,
542
+ l
543
+ ]);
544
+ }, R = T.createLogger({ name: "useCuiKitTimers" }), Ke = (e) => {
545
+ const { model: t } = y(), [r, n] = S(null), {
546
+ onAreYouThereTimer: s,
547
+ onIdleTimer: i,
548
+ onResetIdleTimer: u,
549
+ defaultAreYouThereTime: l = 10,
550
+ defaultIdleTime: f = 20
551
+ } = e, h = Re(!1), c = o(() => {
552
+ !h.current && s && (T.info("Are you there timer expired. Calling callback"), h.current = !0, s == null || s());
553
+ }, [s]), d = o(() => {
554
+ R.debug(
555
+ "handleIdleTimer called in useCuiKitTimers, onIdleTimer exists:",
556
+ !!i
557
+ ), i ? (R.debug("Idle timer expired. Calling callback"), i == null || i()) : R.debug("No onIdleTimer callback provided!");
558
+ }, [i]), $ = o(() => {
559
+ R.debug(`TIMER RESTART called for ${e.prefix ?? ""}timer`), r && (r.restart(), h.current = !1, u == null || u());
560
+ }, [r, u, e.prefix]), x = o(() => {
561
+ R.debug(`⏸TIMER PAUSE/RESET called for ${e.prefix ?? ""}timer`), r && (r.reset(), h.current = !1, u == null || u());
562
+ }, [r, u, e.prefix]);
563
+ return O(() => {
564
+ if (R.debug(
565
+ `useCuiKitTimers effect triggered - nozzle: ${!!t}, path: ${t == null ? void 0 : t.path}, callbacks: handleIdle=${!!d}, handleAreYouThere=${!!c}`
566
+ ), t) {
567
+ R.info("Nozzle is available. Creating timers");
568
+ const b = Ce.createTimer(
569
+ `${e.prefix ?? ""}idle-timer-${t.path}`,
570
+ f
571
+ );
572
+ return R.debug(
573
+ `⏱Adding idle timer action for ${e.prefix ?? ""}idle-timer-${t.path} with callback:`,
574
+ !!d
575
+ ), b == null || b.addTimeoutAction({
576
+ name: "idle-timer",
577
+ remainingTime: 0,
578
+ action: d
579
+ }), b == null || b.addTimeoutAction({
580
+ name: "are-you-there-timer",
581
+ remainingTime: l,
582
+ action: c
583
+ }), n(b ?? null), () => {
584
+ b == null || b.reset(), n(null);
585
+ };
586
+ }
587
+ return () => {
588
+ R.info("Nozzle is not available. No timers to clear");
589
+ };
590
+ }, [
591
+ l,
592
+ f,
593
+ c,
594
+ d,
595
+ t,
596
+ e.prefix
597
+ ]), {
598
+ idleTimer: r,
599
+ restart: $,
600
+ pause: x
601
+ };
602
+ }, j = T.createLogger({ name: "useDefaultCuiKitLifecycle" }), Yt = ({
603
+ kit: e,
604
+ inactivity: t,
605
+ pour: r,
606
+ screens: n,
607
+ onBeforeAreYouThereTimer: s,
608
+ areYouThereRejectionPolicy: i = "pause"
609
+ }) => {
610
+ var ge, we, Te, Pe;
611
+ const [u, l] = S(!1), [f, h] = S(!1), { model: c } = y(), [d, $] = S(!1), x = (t == null ? void 0 : t.idleTimeout) ?? 15, b = (t == null ? void 0 : t.areYouThereTimeoutOffset) ?? 10, v = (r == null ? void 0 : r.idleTimeout) ?? (t == null ? void 0 : t.idleTimeout) ?? 10, a = (r == null ? void 0 : r.areYouThereTimeoutOffset) ?? (t == null ? void 0 : t.areYouThereTimeoutOffset) ?? 5, _ = n == null ? void 0 : n.ambientTimeoutOffset, B = n == null ? void 0 : n.attractTimeout, w = o(() => {
612
+ if (j.info("handleIdleTimeout called - navigating home and publishing event"), q(!1), e == null || e.nav.home(), c) {
613
+ const E = `/kos/dispense/${c.path}/idle/timeout/`;
614
+ g.publish(E, {});
615
+ }
616
+ }, [(ge = e == null ? void 0 : e.nav) == null ? void 0 : ge.home, c]), V = o(() => {
617
+ if (_ && (l(!0), h(!1), c)) {
618
+ const E = `/kos/dispense/${c.path}/ambient/start/`;
619
+ g.publish(E, {});
620
+ }
621
+ }, [_, c]), ae = o(() => {
622
+ if (B && (h(!0), l(!1), c)) {
623
+ const E = `/kos/dispense/${c.path}/attract/start/`;
624
+ g.publish(E, {});
625
+ }
626
+ }, [B, c]), oe = o(() => {
627
+ if (B && (h(!1), l(!1), e == null || e.nav.home(), c)) {
628
+ const E = `/kos/dispense/${c.path}/attract/resume/`;
629
+ g.publish(E, {});
630
+ }
631
+ }, [e == null ? void 0 : e.nav, B, c]), {
632
+ pause: G,
633
+ restart: P,
634
+ resume: ce,
635
+ attractTimer: W
636
+ } = gt({
637
+ defaultAmbientTime: _,
638
+ defaultAttractTime: B,
639
+ onAmbientTimer: V,
640
+ onAttractTimer: ae,
641
+ onResumeAttractTimer: oe
642
+ });
643
+ (we = e == null ? void 0 : e.timers) == null || we.add(W);
644
+ const [de, q] = S(!1);
645
+ j.info(
646
+ "Creating idle timer with timeout:",
647
+ x,
648
+ "seconds and callback:",
649
+ !!w
650
+ );
651
+ const { pause: I, restart: K, idleTimer: D } = Ke({
652
+ defaultAreYouThereTime: b,
653
+ defaultIdleTime: x,
654
+ onIdleTimer: w
655
+ });
656
+ j.info(
657
+ "Creating pour timer with timeout:",
658
+ v,
659
+ "seconds and callback:",
660
+ !!w
661
+ );
662
+ const {
663
+ pause: k,
664
+ restart: Y,
665
+ idleTimer: F
666
+ } = Ke({
667
+ defaultAreYouThereTime: a,
668
+ defaultIdleTime: v,
669
+ onIdleTimer: w,
670
+ prefix: "pour-"
671
+ }), U = o(async () => {
672
+ let E = !0;
673
+ if (s)
674
+ try {
675
+ E = await s();
676
+ } catch (me) {
677
+ j.error(`onBeforeAreYouThereTimer callback failed: ${me}`), E = !1;
678
+ }
679
+ if (E) {
680
+ if (c) {
681
+ const me = `/kos/dispense/${c.path}/are-you-there/timeout/`;
682
+ g.publish(me, {});
683
+ }
684
+ q(!0), d ? k() : I();
685
+ } else
686
+ switch (i) {
687
+ case "pause":
688
+ d ? k() : I();
689
+ break;
690
+ case "restart":
691
+ d ? Y() : K();
692
+ break;
693
+ }
694
+ }, [s, c, i, d]), ue = o(() => {
695
+ q(!1), d ? (Y(), I()) : (K(), k());
696
+ }, [d, I, k, K, Y]);
697
+ O(() => {
698
+ D && D.addTimeoutAction({
699
+ name: "are-you-there-timer",
700
+ remainingTime: b,
701
+ action: U
702
+ });
703
+ }, [D, b, U]), O(() => {
704
+ F && F.addTimeoutAction({
705
+ name: "pour-are-you-there-timer",
706
+ remainingTime: a,
707
+ action: U
708
+ });
709
+ }, [F, a, U]), (Te = e == null ? void 0 : e.timers) == null || Te.add(D), (Pe = e == null ? void 0 : e.timers) == null || Pe.add(F);
710
+ const le = o(() => {
711
+ $(!1), k(), I();
712
+ }, [I, k]), pe = o(() => {
713
+ $(!0), j.info("restarting pour timer"), Y(), I();
714
+ }, [I, Y]), $e = o(() => {
715
+ $(!1), j.info("restarting pour timer on before pour rejected"), k(), K();
716
+ }, []), ee = o(() => {
717
+ G(), h(!1), l(!1), K();
718
+ }, [G, K]), te = o(() => {
719
+ h(!1), l(!1), $(!1), k(), P();
720
+ }, [P, k]), se = o(() => {
721
+ h(!1), l(!1), $(!1), G(), K();
722
+ }, [G, K]), m = o(() => {
723
+ h(!1), l(!1), $(!1), P(), I(), k();
724
+ }, [P, I, k]), C = o(() => {
725
+ h(!1), l(!1), P(), I();
726
+ }, [P, I]);
727
+ Tt({
728
+ onBrandSelected: ee,
729
+ onBrandCleared: te,
730
+ onBeverageSelected: se,
731
+ onBeverageCleared: m,
732
+ onPour: le,
733
+ onPourCancel: pe,
734
+ onBeforePourRejected: $e,
735
+ onInit: C
736
+ // Note: Timer-related handlers (onIdleTimeout, onAmbientTimer, onAttractTimer,
737
+ // onResumeAttractTimer, onAreYouThereTimeout) are NOT included here since this
738
+ // component's own timer hooks call those handlers directly. Including them would
739
+ // create circular event loops.
740
+ });
741
+ const nt = d ? a : b;
742
+ return O(() => {
743
+ if (c && W) {
744
+ const E = `/kos/dispense/${c == null ? void 0 : c.path}/init/`;
745
+ g.publish(E, {});
746
+ }
747
+ }, [c, W]), {
748
+ showAreYouThere: de,
749
+ clearAreYouThere: ue,
750
+ pauseIdleTimer: I,
751
+ restartIdleTimer: K,
752
+ areYouThereCountdown: nt,
753
+ showAmbientScreen: u,
754
+ showAttractScreen: f,
755
+ pauseScreenTimer: ce,
756
+ restartScreenTimer: P
757
+ };
758
+ }, Fe = () => {
759
+ const e = ke.type;
760
+ return N({
761
+ modelId: e,
762
+ modelType: ke.type,
763
+ options: {}
764
+ });
765
+ };
766
+ function _t(e) {
767
+ return (t) => {
768
+ const { model: r, status: n, KosModelLoader: s } = Fe();
769
+ return /* @__PURE__ */ p(s, { ...n, children: /* @__PURE__ */ p(e, { ...t, deviceAssembly: r }) });
770
+ };
771
+ }
772
+ const Ue = (e) => N({
773
+ modelId: e,
774
+ modelType: dt.type,
775
+ options: {}
776
+ });
777
+ function Gt(e, t) {
778
+ return (r) => {
779
+ const { model: n, status: s, KosModelLoader: i } = Ue(e);
780
+ return /* @__PURE__ */ p(i, { ...s, children: /* @__PURE__ */ p(t, { ...r, holder: n }) });
781
+ };
782
+ }
783
+ const je = () => {
784
+ const e = Ee.type;
785
+ return N({
786
+ modelId: e,
787
+ modelType: Ee.type,
788
+ options: {}
789
+ });
790
+ };
791
+ function Ft(e) {
792
+ return (t) => {
793
+ const { model: r, status: n, KosModelLoader: s } = je();
794
+ return /* @__PURE__ */ p(s, { ...n, children: /* @__PURE__ */ p(e, { ...t, holderContainer: r }) });
795
+ };
796
+ }
797
+ const Ve = () => {
798
+ const e = Se.type;
799
+ return N({
800
+ modelId: e,
801
+ modelType: Se.type,
802
+ options: {}
803
+ });
804
+ }, he = T.createLogger({
805
+ name: "HoldToPourIntentStrategy",
806
+ group: "kos-hooks"
807
+ }), Pt = {
808
+ name: "HoldToPourIntentStrategy",
809
+ async initiate(e, t) {
810
+ if (!(e != null && e.canPour)) {
811
+ he.debug(`${e == null ? void 0 : e.id} cannot pour. Returning early.`);
812
+ return;
813
+ }
814
+ t ? (he.debug(`performing intent: ${t}`), await (e == null ? void 0 : e.performIntent(t))) : he.debug("no intent provided. Returning early.");
815
+ },
816
+ async initiateEnded(e) {
817
+ await (e == null ? void 0 : e.cancelPour());
818
+ }
819
+ }, fe = T.createLogger({
820
+ name: "useNozzlePour",
821
+ group: "kos-hooks"
822
+ }), Ut = ({
823
+ onPour: e,
824
+ onPourCancel: t,
825
+ intentContainer: r,
826
+ strategy: n = Pt
827
+ }) => {
828
+ const s = o(() => {
829
+ fe.debug(
830
+ `[${n == null ? void 0 : n.name}] - Pour initiated for model ${r == null ? void 0 : r.id}.`
831
+ ), n == null || n.initiate(r), e == null || e();
832
+ }, [e, r, n]), i = o(() => {
833
+ var f;
834
+ fe.debug(
835
+ `[${n == null ? void 0 : n.name}] - Pour initiate ended called for nozzle ${r == null ? void 0 : r.id}.`
836
+ ), (f = n == null ? void 0 : n.initiateEnded) == null || f.call(n, r), t == null || t();
837
+ }, [t, r, n]), u = o(() => {
838
+ fe.debug(`Force cancelling pour for nozzle ${r == null ? void 0 : r.id}.`), r == null || r.cancelPour(), t == null || t();
839
+ }, [t, r]);
840
+ return {
841
+ handlers: ve({
842
+ onPressed: s,
843
+ onRelease: i
844
+ }).dom,
845
+ cancel: u,
846
+ status: r
847
+ };
848
+ };
849
+ function jt(e) {
850
+ return (t) => {
851
+ const { model: r, status: n, KosModelLoader: s } = Ve();
852
+ return /* @__PURE__ */ p(s, { ...n, children: /* @__PURE__ */ p(e, { ...t, ingredient: r }) });
853
+ };
854
+ }
855
+ const We = () => {
856
+ const e = Ne.type;
857
+ return N({
858
+ modelId: e,
859
+ modelType: Ne.type,
860
+ options: {}
861
+ });
862
+ };
863
+ function Vt(e) {
864
+ return (t) => {
865
+ const { model: r, status: n, KosModelLoader: s } = We();
866
+ return /* @__PURE__ */ p(s, { ...n, children: /* @__PURE__ */ p(e, { ...t, ingredientContainer: r }) });
867
+ };
868
+ }
869
+ function Wt(e, t) {
870
+ return (r) => {
871
+ const { model: n, status: s, KosModelLoader: i } = Ye(e);
872
+ return /* @__PURE__ */ p(i, { ...s, children: /* @__PURE__ */ p(t, { ...r, nozzle: n }) });
873
+ };
874
+ }
875
+ const Z = T.createLogger({
876
+ name: "usePour",
877
+ group: "kos-hooks"
878
+ }), qt = ({
879
+ onBeforePour: e,
880
+ onPour: t,
881
+ onPourCancel: r,
882
+ onPourAbort: n,
883
+ pourTarget: s,
884
+ strategy: i = Ge
885
+ }) => {
886
+ const u = o(async () => {
887
+ Z.debug(
888
+ `[${i == null ? void 0 : i.name}] - calling before pour for pour target ${s == null ? void 0 : s.id}.`
889
+ ), (e ? await (e == null ? void 0 : e()) : !0) ? (Z.debug(
890
+ `[${i == null ? void 0 : i.name}] - Pour initiated for pour target ${s == null ? void 0 : s.id}.`
891
+ ), await (i == null ? void 0 : i.initiate(s)), t == null || t(), s != null && s.isPouring || n == null || n()) : (Z.debug(
892
+ `[${i == null ? void 0 : i.name}] - Pour cancelled for pour target ${s == null ? void 0 : s.id}.`
893
+ ), r == null || r());
894
+ }, [t, s, i]), l = o(async () => {
895
+ var d;
896
+ Z.debug(
897
+ `[${i == null ? void 0 : i.name}] - Pour initiate ended called for pour target ${s == null ? void 0 : s.id}.`
898
+ ), await ((d = i == null ? void 0 : i.initiateEnded) == null ? void 0 : d.call(i, s)) || r == null || r();
899
+ }, [r, s, i]), f = o(async () => {
900
+ Z.debug(`Force cancelling pour for pour target ${s == null ? void 0 : s.id}.`), await (s == null ? void 0 : s.cancelPour()), r == null || r();
901
+ }, [r, s]);
902
+ return {
903
+ handlers: ve({
904
+ onPressed: u,
905
+ onRelease: l
906
+ }).dom,
907
+ cancel: f,
908
+ status: s
909
+ };
910
+ }, z = T.createLogger({
911
+ name: "TapOrHoldIntentStrategy",
912
+ group: "kos-hooks"
913
+ });
914
+ class Jt {
915
+ constructor(t) {
916
+ J(this, "intent");
917
+ J(this, "name", "TapOrHoldIntentStrategy");
918
+ J(this, "isHold", !1);
919
+ J(this, "disposer", null);
920
+ this.intent = t;
921
+ }
922
+ async initiate(t, r) {
923
+ if (this.disposer = setTimeout(() => {
924
+ this.isHold = !0;
925
+ }, 250), t != null && t.isPouring && !this.isHold) {
926
+ z.debug("additional tap detected. cancelling pour"), await t.cancelPour();
927
+ return;
928
+ }
929
+ if (!(t != null && t.canPour)) {
930
+ z.debug(`${t == null ? void 0 : t.id} cannot pour. Returning early.`);
931
+ return;
932
+ }
933
+ r ? (z.debug(`performing intent: ${r}`), await (t == null ? void 0 : t.performIntent(r))) : z.debug("no intent provided. Returning early.");
934
+ }
935
+ async initiateEnded(t) {
936
+ return this.disposer && clearTimeout(this.disposer), this.disposer = null, this.isHold ? (await (t == null ? void 0 : t.cancelPour()), !1) : (z.debug("Tap detected. don't cancel and return."), !0);
937
+ }
938
+ }
939
+ const ie = T.createLogger({
940
+ name: "TapToPourIntentStrategy",
941
+ group: "kos-hooks"
942
+ }), Qt = {
943
+ name: "TapToPourIntentStrategy",
944
+ async initiate(e, t) {
945
+ if (e != null && e.isPouring) {
946
+ ie.debug(`Nozzle ${e == null ? void 0 : e.id} is already pouring. cancelling pour`), await e.cancelPour();
947
+ return;
948
+ }
949
+ if (!(e != null && e.canPour)) {
950
+ ie.debug(`Nozzle ${e == null ? void 0 : e.id} cannot pour. Returning early.`);
951
+ return;
952
+ }
953
+ t ? (ie.debug(`performing intent: ${t}`), await (e == null ? void 0 : e.performIntent(t))) : ie.debug("no intent provided. Returning early.");
954
+ },
955
+ async initiateEnded(e) {
956
+ return !0;
957
+ }
958
+ }, Le = T.createLogger({
959
+ name: "HoldToPourStrategy",
960
+ group: "kos-hooks"
961
+ }), Xt = {
962
+ name: "TapToPourStrategy",
963
+ async initiate(e) {
964
+ if (e != null && e.isPouring) {
965
+ Le.debug(`Nozzle ${e == null ? void 0 : e.id} is already pouring. cancelling pour`), await e.cancelPour();
966
+ return;
967
+ }
968
+ if (!(e != null && e.canPour)) {
969
+ Le.debug(`Nozzle ${e == null ? void 0 : e.id} cannot pour. Returning early.`);
970
+ return;
971
+ }
972
+ await (e == null ? void 0 : e.pour());
973
+ },
974
+ async initiateEnded(e) {
975
+ return !0;
976
+ }
977
+ }, It = (e, t, r) => N({
978
+ modelId: e,
979
+ modelType: ut.type,
980
+ options: {
981
+ servicePathFactory: t,
982
+ selectedId: r
983
+ }
984
+ });
985
+ function Zt(e) {
986
+ return (t) => {
987
+ const { model: r, status: n, KosModelLoader: s } = It(
988
+ t.id,
989
+ t.servicePathFactory,
990
+ t.itemId
991
+ );
992
+ return /* @__PURE__ */ p(s, { ...n, children: /* @__PURE__ */ p(e, { ...t, genericPour: r }) });
993
+ };
994
+ }
995
+ const qe = L(void 0), zt = ({ children: e }) => {
996
+ const { model: t, ready: r } = ye(), n = A(() => r && t ? { model: t } : {}, [r, t]);
997
+ return /* @__PURE__ */ p(qe.Provider, { value: n, children: e });
998
+ }, es = () => {
999
+ const e = H(
1000
+ qe
1001
+ );
1002
+ if (!e)
1003
+ throw new Error(
1004
+ "useAssemblyContext must be used within a AssemblyProvider"
1005
+ );
1006
+ return e;
1007
+ }, Je = L(void 0), ts = ({ children: e }) => {
1008
+ const { model: t, ready: r } = De(), n = A(() => r && t ? { model: t } : {}, [r, t]);
1009
+ return /* @__PURE__ */ p(Je.Provider, { value: n, children: e });
1010
+ }, ss = () => {
1011
+ const e = H(Je);
1012
+ if (!e)
1013
+ throw new Error(
1014
+ "useAvailabilityContext must be used within a AvailabilityProvider"
1015
+ );
1016
+ return e;
1017
+ }, Qe = L(void 0), rs = ({ children: e, id: t }) => {
1018
+ const { model: r, ready: n } = Me(t), s = A(() => n && r ? { model: r } : {}, [n, r]);
1019
+ return /* @__PURE__ */ p(Qe.Provider, { value: s, children: e });
1020
+ }, ns = () => {
1021
+ const e = H(Qe);
1022
+ if (!e)
1023
+ throw new Error("useBoardContext must be used within a BoardProvider");
1024
+ return e;
1025
+ }, Xe = L(void 0), is = ({ children: e }) => {
1026
+ const { model: t, ready: r } = Oe(), n = A(() => r && t ? { model: t } : {}, [r, t]);
1027
+ return /* @__PURE__ */ p(Xe.Provider, { value: n, children: e });
1028
+ }, as = () => {
1029
+ const e = H(Xe);
1030
+ if (!e)
1031
+ throw new Error(
1032
+ "useBoardContainerContext must be used within a BoardContainerProvider"
1033
+ );
1034
+ return e;
1035
+ }, Ze = L(
1036
+ void 0
1037
+ ), At = ({ children: e }) => {
1038
+ const { model: t, ready: r } = Fe(), n = A(() => {
1039
+ if (r && t) {
1040
+ const i = t.nozzlePaths;
1041
+ return { model: t, nozzlePaths: i };
1042
+ }
1043
+ return {};
1044
+ }, [r, t]), s = r && t ? e : null;
1045
+ return /* @__PURE__ */ p(Ze.Provider, { value: n, children: s });
1046
+ }, xt = () => {
1047
+ const e = H(Ze);
1048
+ if (!e)
1049
+ throw new Error(
1050
+ "useDeviceAssemblyContext must be used within a DeviceAssemblyProvider"
1051
+ );
1052
+ return e;
1053
+ };
1054
+ function kt() {
1055
+ const e = lt.createContext(null);
1056
+ return [() => {
1057
+ const r = H(e);
1058
+ if (r === void 0)
1059
+ throw new Error("useDispenseKitContext must be used within a Provider");
1060
+ return r;
1061
+ }, e.Provider];
1062
+ }
1063
+ function Et({
1064
+ children: e,
1065
+ provider: t,
1066
+ props: r,
1067
+ nozzleProps: n
1068
+ }) {
1069
+ const s = $t(r);
1070
+ return /* @__PURE__ */ p(t, { value: s, children: e(n || {}) });
1071
+ }
1072
+ function St({
1073
+ children: e,
1074
+ provider: t,
1075
+ props: r
1076
+ }) {
1077
+ const { nozzlePaths: n } = xt(), s = (n == null ? void 0 : n.length) || 0;
1078
+ return (n == null ? void 0 : n.map((u, l) => /* @__PURE__ */ p(pt, { path: u, children: /* @__PURE__ */ p(
1079
+ Et,
1080
+ {
1081
+ provider: t,
1082
+ props: r,
1083
+ nozzleProps: {
1084
+ nozzleIndex: l,
1085
+ nozzlePath: u,
1086
+ totalNozzles: s,
1087
+ isFirstNozzle: l === 0,
1088
+ isLastNozzle: l === s - 1
1089
+ },
1090
+ children: e
1091
+ }
1092
+ ) }, u))) || [];
1093
+ }
1094
+ function Nt({
1095
+ provider: e,
1096
+ props: t
1097
+ }) {
1098
+ return ({ children: r }) => e ? /* @__PURE__ */ p(At, { children: /* @__PURE__ */ p(
1099
+ St,
1100
+ {
1101
+ provider: e,
1102
+ props: t,
1103
+ children: r
1104
+ }
1105
+ ) }) : null;
1106
+ }
1107
+ function os(e) {
1108
+ const [t, r] = kt();
1109
+ return [
1110
+ t,
1111
+ Nt({ provider: r, props: e })
1112
+ ];
1113
+ }
1114
+ const ze = L(void 0), cs = ({ children: e, id: t }) => {
1115
+ const { model: r, ready: n } = Ue(t || ""), s = A(() => n && r ? { model: r } : {}, [n, r]);
1116
+ return /* @__PURE__ */ p(ze.Provider, { value: s, children: e });
1117
+ }, ds = () => {
1118
+ const e = H(ze);
1119
+ if (!e)
1120
+ throw new Error("useHolderContext must be used within a HolderProvider");
1121
+ return e;
1122
+ }, et = L(
1123
+ void 0
1124
+ ), us = ({ children: e }) => {
1125
+ const { model: t, ready: r } = je(), n = A(() => r && t ? { model: t } : {}, [r, t]);
1126
+ return /* @__PURE__ */ p(et.Provider, { value: n, children: e });
1127
+ }, ls = () => {
1128
+ const e = H(et);
1129
+ if (!e)
1130
+ throw new Error(
1131
+ "useHolderContainerContext must be used within a HolderContainerProvider"
1132
+ );
1133
+ return e;
1134
+ }, tt = L(void 0), ps = ({ children: e }) => {
1135
+ const { model: t, ready: r } = Ve(), n = A(() => r && t ? { model: t } : {}, [r, t]);
1136
+ return /* @__PURE__ */ p(tt.Provider, { value: n, children: e });
1137
+ }, ms = () => {
1138
+ const e = H(tt);
1139
+ if (!e)
1140
+ throw new Error(
1141
+ "useIngredientContext must be used within a IngredientProvider"
1142
+ );
1143
+ return e;
1144
+ }, st = L(
1145
+ void 0
1146
+ ), hs = ({ children: e }) => {
1147
+ const { model: t, ready: r } = We(), n = A(() => r && t ? { model: t } : {}, [r, t]);
1148
+ return /* @__PURE__ */ p(st.Provider, { value: n, children: e });
1149
+ }, fs = () => {
1150
+ const e = H(st);
1151
+ if (!e)
1152
+ throw new Error(
1153
+ "useIngredientContainerContext must be used within a IngredientContainerProvider"
1154
+ );
1155
+ return e;
1156
+ }, Ht = () => {
1157
+ const e = He.type;
1158
+ return N({
1159
+ modelId: e,
1160
+ modelType: He.type,
1161
+ options: {}
1162
+ });
1163
+ }, rt = L(void 0), bs = ({ children: e }) => {
1164
+ const { model: t, ready: r } = Ht(), n = A(() => r && t ? { model: t } : {}, [r, t]);
1165
+ return /* @__PURE__ */ p(rt.Provider, { value: n, children: e });
1166
+ }, vs = () => {
1167
+ const e = H(rt);
1168
+ if (!e)
1169
+ throw new Error("usePumpContext must be used within a PumpProvider");
1170
+ return e;
1171
+ };
1172
+ export {
1173
+ Vt as $,
1174
+ zt as A,
1175
+ rs as B,
1176
+ Et as C,
1177
+ At as D,
1178
+ ht as E,
1179
+ Q as F,
1180
+ ne as G,
1181
+ cs as H,
1182
+ ps as I,
1183
+ X as J,
1184
+ $t as K,
1185
+ Yt as L,
1186
+ Tt as M,
1187
+ pt as N,
1188
+ Ke as O,
1189
+ bs as P,
1190
+ vt as Q,
1191
+ Fe as R,
1192
+ _t as S,
1193
+ Ue as T,
1194
+ Gt as U,
1195
+ je as V,
1196
+ Ft as W,
1197
+ Ve as X,
1198
+ Ut as Y,
1199
+ jt as Z,
1200
+ We as _,
1201
+ ts as a,
1202
+ Ye as a0,
1203
+ Wt as a1,
1204
+ bt as a2,
1205
+ qt as a3,
1206
+ Pt as a4,
1207
+ Ge as a5,
1208
+ Jt as a6,
1209
+ Qt as a7,
1210
+ Xt as a8,
1211
+ It as a9,
1212
+ Zt as aa,
1213
+ ss as b,
1214
+ ns as c,
1215
+ is as d,
1216
+ as as e,
1217
+ Nt as f,
1218
+ xt as g,
1219
+ ds as h,
1220
+ os as i,
1221
+ us as j,
1222
+ ls as k,
1223
+ ms as l,
1224
+ hs as m,
1225
+ fs as n,
1226
+ y as o,
1227
+ vs as p,
1228
+ ye as q,
1229
+ De as r,
1230
+ Dt as s,
1231
+ Me as t,
1232
+ es as u,
1233
+ Mt as v,
1234
+ yt as w,
1235
+ Oe as x,
1236
+ Ot as y,
1237
+ mt as z
1238
+ };
1239
+ //# sourceMappingURL=pump-provider-BgSHNZEC.js.map