@kosdev-code/kos-ddk-model-components 2.0.3 → 2.0.4

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/index.js CHANGED
@@ -2,16 +2,16 @@ var eo = Object.defineProperty;
2
2
  var to = (e, t, n) => t in e ? eo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var $ = (e, t, n) => (to(e, typeof t != "symbol" ? t + "" : t, n), n);
4
4
  import { FutureManager as Kt, kosComponent as I, useKosTranslation as S, useKosModel as B, kosAutoEffect as se, FutureEndState as ht, KosLog as N, useConfigProperty as j, useKosRegions as X, useRegionTimeProps as jt, useDateProps as Wt, getKosCompanionModel as Z, registerExtensionPoint as no, ExtensionManager as fe, CoreExtensionManager as oo, troubleDataFactory as ro, isTroubleAware as so, useTroubleContainerModel as io, withDevice as ao, useFormattedDate as co, useSoftwareInfo as lo, useKosTime as tt } from "@kosdev-code/kos-ui-sdk";
5
- import { jsx as o, jsxs as g, Fragment as E } from "@emotion/react/jsx-runtime";
6
- import v from "@emotion/styled";
7
- import { useComponentConfigurationContext as M, Modal as ie, Header as ae, BackButton as be, Content as W, InfoCard as ne, Footer as U, Button as C, CloseButton as uo, ProgressBar as Gt, LabelInformation as F, BodyMediumInformation as q, InputCard as oe, WorkflowModal as Ve, StatusIndicator as ve, InputRangeCard as po, ToggleCard as mo, PickerCard as qe, Card as go, SwitchCard as Be, MultiPickerCard as nt, LabelDate as ot, Table as Xt, LabelInformationExtraSmall as ho, getItemData as fo, TapAndHoldButton as bo, ComponentConfigurationProvider as vo, useAbbreviation as Yt, getFillColor as yo, HolderDashboardCard as qt, FuelGauge as Qt, UtilityModalHeading as Zt, TabContainer as ye, SettingsSubheading as we, FrameContainer as Jt, Label as Ee, Text as wo, StatusCard as Co, NotificationCard as xo, TabViewLayout as Po, TabRouter as So, Tabs as ko, CompactCloseButton as To, QuestionIconStyle as Io, CancelProceedFooter as Do, ErrorInputCard as Qe, StatusBar as en, InfoContainer as Ao, FailureCard as Lo, useNavigate as Eo, Sidebar as Fo, FrameBody as ft, SwitchPickerCard as $o } from "@kosdev-code/kos-ddk-components";
5
+ import { jsx as o, jsxs as h, Fragment as E } from "@emotion/react/jsx-runtime";
6
+ import y from "@emotion/styled";
7
+ import { useComponentConfigurationContext as M, Modal as ie, Header as ae, BackButton as be, Content as W, InfoCard as ne, Footer as U, Button as x, CloseButton as uo, ProgressBar as Gt, LabelInformation as F, BodyMediumInformation as q, InputCard as oe, WorkflowModal as Ve, StatusIndicator as ve, InputRangeCard as po, ToggleCard as mo, PickerCard as qe, Card as go, SwitchCard as Be, MultiPickerCard as nt, LabelDate as ot, Table as Xt, LabelInformationExtraSmall as ho, getItemData as fo, TapAndHoldButton as bo, ComponentConfigurationProvider as vo, useAbbreviation as Yt, getFillColor as yo, HolderDashboardCard as qt, FuelGauge as Qt, UtilityModalHeading as Zt, TabContainer as ye, SettingsSubheading as we, FrameContainer as Jt, Label as Ee, Text as wo, StatusCard as Co, NotificationCard as xo, TabViewLayout as Po, TabRouter as So, Tabs as ko, CompactCloseButton as To, QuestionIconStyle as Io, CancelProceedFooter as Do, ErrorInputCard as Qe, StatusBar as en, InfoContainer as Ao, FailureCard as Lo, useNavigate as Eo, Sidebar as Fo, FrameBody as ft, SwitchPickerCard as $o } from "@kosdev-code/kos-ddk-components";
8
8
  import bt, { useState as P, useEffect as O, useCallback as A, useMemo as L, createContext as R, useContext as V, useRef as vt, useLayoutEffect as Bo, Suspense as Ne } from "react";
9
9
  import { AgitationControl as yt, toTimeComponents as Oo, toSeconds as Ro, Animation as wt, Application as Ct, CarbWater as xt, CopyLogs as Pt, DashboardOperations as St, DispenserInfo as kt, Door as Vo, FcmPump as Ze, SpmPump as tn, IngredientSummary as Tt, MacroAssignment as It, NetworkTest as No, NetworkTestContainer as Dt, NutritiveSweetener as At, PlainWater as Lt, LfcvPump as Mo, Reboot as Et, Settings as Ft, SetupStep as Ho, SetupStepContainer as $t, Start as Bt, TroubleActionManager as Ot, Utilities as zo, UtilitiesContainer as Rt, troubleVisibilityFilter as _o } from "@kosdev-code/kos-ddk-models";
10
- import { MessageErrorIcon as Uo, SuccessIcon as Ko, TimeIcon as nn, CalendarIcon as jo, MessageInformationIconWithBackground as Wo } from "@kosdev-code/kos-ddk-styles";
10
+ import { SuccessIcon as Uo, MessageErrorIcon as Ko, TimeIcon as nn, CalendarIcon as jo, MessageInformationIconWithBackground as Wo } from "@kosdev-code/kos-ddk-styles";
11
11
  import { DispenseExtensionManager as Go, useBoardContainer as Xo, withAssembly as Yo } from "@kosdev-code/kos-dispense-sdk";
12
12
  import { FreestyleHolder as on, useFreestyleAssemblyContext as qo, FreestylePump as rn } from "@kosdev-code/kos-freestyle-sdk";
13
13
  import { useKosPluginsContext as rt, DynamicComponent as Me } from "@kosdev-code/kos-ui-plugin";
14
- import { EXTENSION_POINT_SETUP as sn, EXTENSION_POINT_CUI as Qo, EXTENSION_POINT_UTIL as Zo, EXTENSION_POINT_TROUBLE_ACTION as Je, EXTENSION_POINT_DASHBOARD as an, EXTENSION_POINT_DASHBOARD_PUMP_DETAIL as cn } from "@kosdev-code/kos-ui-plugin/utilities";
14
+ import { EXTENSION_POINT_UTIL as Qo, EXTENSION_POINT_CUI as Zo, EXTENSION_POINT_SETUP as sn, EXTENSION_POINT_TROUBLE_ACTION as Je, EXTENSION_POINT_DASHBOARD as an, EXTENSION_POINT_DASHBOARD_PUMP_DETAIL as cn } from "@kosdev-code/kos-ui-plugin/utilities";
15
15
  import { useLocation as Jo, useSearchParams as er } from "react-router-dom";
16
16
  class K {
17
17
  constructor(t, n) {
@@ -196,7 +196,7 @@ class pr extends ur {
196
196
  return !0;
197
197
  }
198
198
  }
199
- const ki = "PrimeTrouble", Ti = "PurgeTrouble", mr = v.div`
199
+ const ki = "PrimeTrouble", Ti = "PurgeTrouble", mr = y.div`
200
200
  display: flex;
201
201
  flex-direction: column;
202
202
  overflow-y: auto;
@@ -212,7 +212,7 @@ const ki = "PrimeTrouble", Ti = "PurgeTrouble", mr = v.div`
212
212
  contain: a !== "compact",
213
213
  onClosed: t,
214
214
  show: !n,
215
- children: /* @__PURE__ */ g(mr, { children: [
215
+ children: /* @__PURE__ */ h(mr, { children: [
216
216
  /* @__PURE__ */ o(
217
217
  ae,
218
218
  {
@@ -233,7 +233,7 @@ const ki = "PrimeTrouble", Ti = "PurgeTrouble", mr = v.div`
233
233
  }
234
234
  ) }),
235
235
  /* @__PURE__ */ o(U, { children: /* @__PURE__ */ o(
236
- C,
236
+ x,
237
237
  {
238
238
  mode: "primary",
239
239
  disabled: c,
@@ -259,8 +259,8 @@ const ki = "PrimeTrouble", Ti = "PurgeTrouble", mr = v.div`
259
259
  );
260
260
  O(() => {
261
261
  const l = se(() => {
262
- const u = e == null ? void 0 : e.futureHandler.future;
263
- n(u), s(u == null ? void 0 : u.endState);
262
+ const d = e == null ? void 0 : e.futureHandler.future;
263
+ n(d), s(d == null ? void 0 : d.endState);
264
264
  });
265
265
  return () => {
266
266
  l(), e == null || e.futureHandler.removeFuture();
@@ -275,7 +275,7 @@ const ki = "PrimeTrouble", Ti = "PurgeTrouble", mr = v.div`
275
275
  success: r === ht.Success,
276
276
  failure: r && r !== ht.Success
277
277
  };
278
- }, hr = N.createLogger({ name: "future-progress-bar" }), dn = v(uo)`
278
+ }, hr = N.createLogger({ name: "future-progress-bar" }), dn = y(uo)`
279
279
  --ddk-component-icon-button-icon-color-active: var(
280
280
  --ddk-component-progress-bar-close-button-color-active
281
281
  );
@@ -288,12 +288,12 @@ const ki = "PrimeTrouble", Ti = "PurgeTrouble", mr = v.div`
288
288
  --ddk-component-icon-button-icon-color-hover: var(
289
289
  --ddk-component-progress-bar-close-button-color-hover
290
290
  );
291
- `, fr = v.div`
291
+ `, fr = y.div`
292
292
  display: flex;
293
293
  flex-direction: column;
294
294
  width: 100%;
295
295
  gap: 8px;
296
- `, un = v.div`
296
+ `, un = y.div`
297
297
  align-items: var(--ddk-component-progress-bar-message-align-items);
298
298
  color: var(--ddk-component-progress-bar-message-color);
299
299
  display: flex;
@@ -301,19 +301,19 @@ const ki = "PrimeTrouble", Ti = "PurgeTrouble", mr = v.div`
301
301
  gap: var(--ddk-component-progress-bar-message-gap);
302
302
  justify-content: space-between;
303
303
  width: 100%;
304
- `, pn = v.div`
304
+ `, pn = y.div`
305
305
  display: flex;
306
306
  gap: var(--ddk-component-status-bar-gap);
307
307
  align-items: center;
308
- `, br = v.div`
308
+ `, br = y.div`
309
309
  border-top: solid 1px #888888;
310
310
  padding-top: 8px;
311
311
  width: calc(100% - 10px);
312
312
  `, Oe = ({ children: e, onPointerDown: t, title: n, subtitle: r }) => {
313
313
  const { componentModeOverride: s } = M(), { t: a } = S("common");
314
- return /* @__PURE__ */ g(un, { children: [
315
- /* @__PURE__ */ g(fr, { children: [
316
- /* @__PURE__ */ g(
314
+ return /* @__PURE__ */ h(un, { children: [
315
+ /* @__PURE__ */ h(fr, { children: [
316
+ /* @__PURE__ */ h(
317
317
  pn,
318
318
  {
319
319
  style: {
@@ -321,7 +321,7 @@ const ki = "PrimeTrouble", Ti = "PurgeTrouble", mr = v.div`
321
321
  },
322
322
  children: [
323
323
  /* @__PURE__ */ o(
324
- Uo,
324
+ Ko,
325
325
  {
326
326
  style: {
327
327
  color: "var(--ddk-component-progress-bar-icon-color-failure)",
@@ -335,7 +335,7 @@ const ki = "PrimeTrouble", Ti = "PurgeTrouble", mr = v.div`
335
335
  ),
336
336
  r && /* @__PURE__ */ o(br, { children: r })
337
337
  ] }),
338
- s === "compact" ? /* @__PURE__ */ o(C, { mode: "primary", onPointerDown: t, children: a("close", "Close") }) : /* @__PURE__ */ o(
338
+ s === "compact" ? /* @__PURE__ */ o(x, { mode: "primary", onPointerDown: t, children: a("close", "Close") }) : /* @__PURE__ */ o(
339
339
  dn,
340
340
  {
341
341
  label: !1,
@@ -346,10 +346,10 @@ const ki = "PrimeTrouble", Ti = "PurgeTrouble", mr = v.div`
346
346
  ] });
347
347
  }, st = ({ children: e, onPointerDown: t }) => {
348
348
  const { componentModeOverride: n } = M(), { t: r } = S("common");
349
- return /* @__PURE__ */ g(un, { children: [
350
- /* @__PURE__ */ g(pn, { children: [
349
+ return /* @__PURE__ */ h(un, { children: [
350
+ /* @__PURE__ */ h(pn, { children: [
351
351
  /* @__PURE__ */ o(
352
- Ko,
352
+ Uo,
353
353
  {
354
354
  style: {
355
355
  color: "var(--ddk-semantic-color-system-green)",
@@ -359,7 +359,7 @@ const ki = "PrimeTrouble", Ti = "PurgeTrouble", mr = v.div`
359
359
  ),
360
360
  e
361
361
  ] }),
362
- n === "compact" ? /* @__PURE__ */ o(C, { mode: "primary", onPointerDown: t, children: r("close", "Close") }) : /* @__PURE__ */ o(
362
+ n === "compact" ? /* @__PURE__ */ o(x, { mode: "primary", onPointerDown: t, children: r("close", "Close") }) : /* @__PURE__ */ o(
363
363
  dn,
364
364
  {
365
365
  label: !1,
@@ -379,26 +379,26 @@ const ki = "PrimeTrouble", Ti = "PurgeTrouble", mr = v.div`
379
379
  onSuccess: c,
380
380
  onClose: i
381
381
  }) => {
382
- const { t: l } = S("common"), [u, p] = bt.useState(!0), [d, h] = bt.useState(), m = `${t == null ? void 0 : t.timeRemaining} ${l(
382
+ const { t: l } = S("common"), [d, p] = bt.useState(!0), [u, m] = bt.useState(), g = `${t == null ? void 0 : t.timeRemaining} ${l(
383
383
  "remaining",
384
384
  "remaining"
385
- )}`, f = A(() => {
386
- d !== "in-progress" && (i == null || i(), p(!1));
387
- }, [i, d]), w = A(() => {
388
- f(), c == null || c();
389
- }, [f, c]);
385
+ )}`, b = A(() => {
386
+ u !== "in-progress" && (i == null || i(), p(!1));
387
+ }, [i, u]), f = A(() => {
388
+ b(), c == null || c();
389
+ }, [b, c]);
390
390
  O(() => {
391
- (t == null ? void 0 : t.status) === "IN_PROGRESS" || (t == null ? void 0 : t.status) === "NOT_ACTIVE" ? (h("in-progress"), p(!0)) : (t == null ? void 0 : t.status) === "SUCCESS" ? (h("success"), p(!!r), r || (f(), c == null || c())) : (t == null ? void 0 : t.status) === "FAIL" || (t == null ? void 0 : t.status) === "ABORT" ? (h("failure"), p(!!n)) : (t == null ? void 0 : t.status) === "CANCEL" ? (h("cancelled"), p(!!s)) : t && hr.error("unknown status", t == null ? void 0 : t.status);
391
+ (t == null ? void 0 : t.status) === "IN_PROGRESS" || (t == null ? void 0 : t.status) === "NOT_ACTIVE" ? (m("in-progress"), p(!0)) : (t == null ? void 0 : t.status) === "SUCCESS" ? (m("success"), p(!!r), r || (b(), c == null || c())) : (t == null ? void 0 : t.status) === "FAIL" || (t == null ? void 0 : t.status) === "ABORT" ? (m("failure"), p(!!n)) : (t == null ? void 0 : t.status) === "CANCEL" ? (m("cancelled"), p(!!s)) : t && hr.error("unknown status", t == null ? void 0 : t.status);
392
392
  }, [
393
393
  n,
394
394
  t,
395
395
  t == null ? void 0 : t.status,
396
396
  r,
397
397
  s,
398
- f,
398
+ b,
399
399
  c
400
400
  ]);
401
- const x = Vt(n) ? n.subtitle : void 0, T = Vt(n) ? n.title : n ?? l("something-went-wrong", "Something went wrong");
401
+ const C = Vt(n) ? n.subtitle : void 0, T = Vt(n) ? n.title : n ?? l("something-went-wrong", "Something went wrong");
402
402
  return t && /* @__PURE__ */ o(
403
403
  Gt,
404
404
  {
@@ -406,14 +406,14 @@ const ki = "PrimeTrouble", Ti = "PurgeTrouble", mr = v.div`
406
406
  onCancel: () => {
407
407
  t.cancelFuture();
408
408
  },
409
- blocked: d === "in-progress",
410
- onClose: f,
411
- renderFailure: n && /* @__PURE__ */ o(Oe, { subtitle: x, onPointerDown: f, children: T }),
412
- renderCancel: s && /* @__PURE__ */ o(Oe, { onPointerDown: f, children: s }),
413
- renderSuccess: r && /* @__PURE__ */ o(st, { onPointerDown: w, children: r }),
414
- show: u,
415
- status: d,
416
- subtitle: m,
409
+ blocked: u === "in-progress",
410
+ onClose: b,
411
+ renderFailure: n && /* @__PURE__ */ o(Oe, { subtitle: C, onPointerDown: b, children: T }),
412
+ renderCancel: s && /* @__PURE__ */ o(Oe, { onPointerDown: b, children: s }),
413
+ renderSuccess: r && /* @__PURE__ */ o(st, { onPointerDown: f, children: r }),
414
+ show: d,
415
+ status: u,
416
+ subtitle: g,
417
417
  title: e,
418
418
  value: t.progress
419
419
  }
@@ -421,10 +421,10 @@ const ki = "PrimeTrouble", Ti = "PurgeTrouble", mr = v.div`
421
421
  }
422
422
  ), vr = N.createLogger({ name: "agitation-control-view" });
423
423
  vr.debug("agitation-control-view component loaded");
424
- const yr = v.div``, Ii = I(() => {
424
+ const yr = y.div``, Ii = I(() => {
425
425
  const { model: e } = ln(), { t, i18n: n } = S("troubles"), { future: r, failure: s } = J(e), a = A(() => {
426
426
  e && e.clearAll();
427
- }, [e]), c = r == null ? void 0 : r.reason, i = c ? `__troubles.errors.${c}__` : void 0, l = "troubles.agitation.error", u = n.exists(`troubles.errors.${c}`);
427
+ }, [e]), c = r == null ? void 0 : r.reason, i = c ? `__troubles.errors.${c}__` : void 0, l = "troubles.agitation.error", d = n.exists(`troubles.errors.${c}`);
428
428
  return /* @__PURE__ */ o(yr, { children: /* @__PURE__ */ o(
429
429
  z,
430
430
  {
@@ -433,7 +433,7 @@ const yr = v.div``, Ii = I(() => {
433
433
  isCancelable: !0,
434
434
  onClose: a,
435
435
  failureMessage: t(l, {
436
- context: i && u ? "reason" : void 0,
436
+ context: i && d ? "reason" : void 0,
437
437
  data: {
438
438
  reason: i
439
439
  }
@@ -442,9 +442,9 @@ const yr = v.div``, Ii = I(() => {
442
442
  ) });
443
443
  }), wr = I(
444
444
  ({ pump: e, onComplete: t }) => {
445
- const { t: n } = S("common", { keyPrefix: "fcm-calibration" }), [r, s] = P("high-flow-test-idle"), [a, c] = P(), [i, l] = P(), [u, p] = P(), { future: d } = J(e);
445
+ const { t: n } = S("common", { keyPrefix: "fcm-calibration" }), [r, s] = P("high-flow-test-idle"), [a, c] = P(), [i, l] = P(), [d, p] = P(), { future: u } = J(e);
446
446
  O(() => {
447
- switch (d == null ? void 0 : d.endState) {
447
+ switch (u == null ? void 0 : u.endState) {
448
448
  case "CANCEL":
449
449
  switch (r) {
450
450
  case "high-flow-test-in-progress":
@@ -468,15 +468,15 @@ const yr = v.div``, Ii = I(() => {
468
468
  }
469
469
  break;
470
470
  case "FAIL":
471
- c(d == null ? void 0 : d.reason), s("failure");
471
+ c(u == null ? void 0 : u.reason), s("failure");
472
472
  break;
473
473
  }
474
- }, [d == null ? void 0 : d.endState, d == null ? void 0 : d.reason, r]);
475
- const h = L(() => ({
474
+ }, [u == null ? void 0 : u.endState, u == null ? void 0 : u.reason, r]);
475
+ const m = L(() => ({
476
476
  "high-flow-test-idle": {
477
477
  information: /* @__PURE__ */ o(F, { children: n("high-flow-test-idle-information") }),
478
478
  footer: /* @__PURE__ */ o(
479
- C,
479
+ x,
480
480
  {
481
481
  onPointerDown: () => {
482
482
  e.performPreCalibrate(), s("high-flow-test-in-progress");
@@ -488,18 +488,18 @@ const yr = v.div``, Ii = I(() => {
488
488
  },
489
489
  "high-flow-test-in-progress": {
490
490
  information: /* @__PURE__ */ o(F, { children: n("high-flow-test-in-progress-information") }),
491
- footer: /* @__PURE__ */ o(C, { disabled: !0, children: n("initiate-high-flow-test") }),
491
+ footer: /* @__PURE__ */ o(x, { disabled: !0, children: n("initiate-high-flow-test") }),
492
492
  status: "loading"
493
493
  },
494
494
  "high-flow-test-success": {
495
495
  information: /* @__PURE__ */ o(F, { children: n("high-flow-test-success-information") }),
496
- footer: /* @__PURE__ */ o(C, { onPointerDown: () => s("calibration-idle"), children: n("proceed") }),
496
+ footer: /* @__PURE__ */ o(x, { onPointerDown: () => s("calibration-idle"), children: n("proceed") }),
497
497
  status: "success"
498
498
  },
499
499
  "calibration-idle": {
500
500
  information: /* @__PURE__ */ o(q, { children: n("calibration-idle-information") }),
501
501
  footer: /* @__PURE__ */ o(
502
- C,
502
+ x,
503
503
  {
504
504
  onPointerDown: () => {
505
505
  e.performCalibrate(), s("calibration-in-progress");
@@ -514,7 +514,7 @@ const yr = v.div``, Ii = I(() => {
514
514
  status: "loading"
515
515
  },
516
516
  "calibration-input": {
517
- information: /* @__PURE__ */ g(E, { children: [
517
+ information: /* @__PURE__ */ h(E, { children: [
518
518
  /* @__PURE__ */ o(q, { children: n("calibration-input-information") }),
519
519
  /* @__PURE__ */ o(
520
520
  oe,
@@ -522,15 +522,15 @@ const yr = v.div``, Ii = I(() => {
522
522
  label: "Volume",
523
523
  unitValue: "ml",
524
524
  layout: "num",
525
- onChange: (m) => {
526
- m !== void 0 && l(m);
525
+ onChange: (g) => {
526
+ g !== void 0 && l(g);
527
527
  },
528
528
  value: i !== void 0 ? i : ""
529
529
  }
530
530
  )
531
531
  ] }),
532
532
  footer: /* @__PURE__ */ o(
533
- C,
533
+ x,
534
534
  {
535
535
  disabled: i === void 0,
536
536
  onPointerDown: () => {
@@ -546,7 +546,7 @@ const yr = v.div``, Ii = I(() => {
546
546
  "verification-idle": {
547
547
  information: /* @__PURE__ */ o(q, { children: n("verification-idle-information") }),
548
548
  footer: /* @__PURE__ */ o(
549
- C,
549
+ x,
550
550
  {
551
551
  onPointerDown: async () => {
552
552
  i !== void 0 && (e.performVerify(i), s("verification-in-progress"));
@@ -561,7 +561,7 @@ const yr = v.div``, Ii = I(() => {
561
561
  status: "loading"
562
562
  },
563
563
  "verification-input": {
564
- information: /* @__PURE__ */ g(E, { children: [
564
+ information: /* @__PURE__ */ h(E, { children: [
565
565
  /* @__PURE__ */ o(q, { children: n("verification-input-information") }),
566
566
  /* @__PURE__ */ o(
567
567
  oe,
@@ -569,22 +569,22 @@ const yr = v.div``, Ii = I(() => {
569
569
  label: "Volume",
570
570
  unitValue: "ml",
571
571
  layout: "num",
572
- onChange: (m) => {
573
- m !== void 0 && p(m);
572
+ onChange: (g) => {
573
+ g !== void 0 && p(g);
574
574
  },
575
- value: u !== void 0 ? u : ""
575
+ value: d !== void 0 ? d : ""
576
576
  }
577
577
  )
578
578
  ] }),
579
579
  footer: /* @__PURE__ */ o(
580
- C,
580
+ x,
581
581
  {
582
- disabled: u === void 0,
582
+ disabled: d === void 0,
583
583
  onPointerDown: async () => {
584
- if (i === void 0 || u === void 0)
584
+ if (i === void 0 || d === void 0)
585
585
  return;
586
- const m = await e.performComplete(i, u);
587
- m === "success" ? s("verification-success") : (c(m), s(m === "errBadPump" ? "verification-failure" : "failure"));
586
+ const g = await e.performComplete(i, d);
587
+ g === "success" ? s("verification-success") : (c(g), s(g === "errBadPump" ? "verification-failure" : "failure"));
588
588
  },
589
589
  children: n("proceed")
590
590
  }
@@ -595,33 +595,33 @@ const yr = v.div``, Ii = I(() => {
595
595
  "verification-input-confirmation": {},
596
596
  "verification-success": {
597
597
  information: /* @__PURE__ */ o(F, { children: n("verification-success-information") }),
598
- footer: /* @__PURE__ */ o(C, { onPointerDown: t, children: n("exit-calibration") }),
598
+ footer: /* @__PURE__ */ o(x, { onPointerDown: t, children: n("exit-calibration") }),
599
599
  status: "success"
600
600
  },
601
601
  "verification-failure": {
602
602
  information: /* @__PURE__ */ o(F, { children: n(`error.${a}`) }),
603
- footer: /* @__PURE__ */ o(C, { onPointerDown: t, children: n("exit-calibration") }),
603
+ footer: /* @__PURE__ */ o(x, { onPointerDown: t, children: n("exit-calibration") }),
604
604
  status: "error"
605
605
  },
606
606
  failure: {
607
- information: /* @__PURE__ */ g(E, { children: [
607
+ information: /* @__PURE__ */ h(E, { children: [
608
608
  /* @__PURE__ */ o(F, { children: n("calibration-failed") }),
609
609
  /* @__PURE__ */ o(q, { children: n(`error.${a || "unknownError"}`) })
610
610
  ] }),
611
- footer: /* @__PURE__ */ o(C, { onPointerDown: t, children: n("exit-calibration") }),
611
+ footer: /* @__PURE__ */ o(x, { onPointerDown: t, children: n("exit-calibration") }),
612
612
  status: "error"
613
613
  }
614
- }), [a, t, e, n, i, u]);
615
- return /* @__PURE__ */ g(E, { children: [
614
+ }), [a, t, e, n, i, d]);
615
+ return /* @__PURE__ */ h(E, { children: [
616
616
  /* @__PURE__ */ o(
617
617
  Ve,
618
618
  {
619
619
  title: n(e.name),
620
- ...h[r],
620
+ ...m[r],
621
621
  onClose: () => t()
622
622
  }
623
623
  ),
624
- d && /* @__PURE__ */ o(z, { title: n("initiating"), future: d })
624
+ u && /* @__PURE__ */ o(z, { title: n("initiating"), future: u })
625
625
  ] });
626
626
  }
627
627
  ), Di = I(({ cardModel: e }) => {
@@ -632,7 +632,7 @@ const yr = v.div``, Ii = I(() => {
632
632
  },
633
633
  [e]
634
634
  );
635
- return /* @__PURE__ */ g(E, { children: [
635
+ return /* @__PURE__ */ h(E, { children: [
636
636
  /* @__PURE__ */ o(W, { children: /* @__PURE__ */ o(
637
637
  ne,
638
638
  {
@@ -640,7 +640,7 @@ const yr = v.div``, Ii = I(() => {
640
640
  value: e.isAgitating ? t("common:yes") : t("common:no")
641
641
  }
642
642
  ) }),
643
- /* @__PURE__ */ o(U, { children: /* @__PURE__ */ o(C, { onPointerDown: () => r("agitate"), children: t("action.label") }) }),
643
+ /* @__PURE__ */ o(U, { children: /* @__PURE__ */ o(x, { onPointerDown: () => r("agitate"), children: t("action.label", { context: "agitator" }) }) }),
644
644
  n && /* @__PURE__ */ o(
645
645
  z,
646
646
  {
@@ -649,13 +649,13 @@ const yr = v.div``, Ii = I(() => {
649
649
  }
650
650
  )
651
651
  ] });
652
- }), Cr = v.div`
652
+ }), Cr = y.div`
653
653
  font-size: var(--ddk-component-holder-card-footer-font-size);
654
654
  color: ${(e) => e.color ?? "var(--ddk-generic-color-black)"};
655
655
  `, Ai = I((e) => {
656
656
  N.debug(`summary component loaded for holder ${e}`), N.info(`render agitator summary for holder ${e.cardModel.path}`);
657
657
  const { t } = S("common");
658
- return /* @__PURE__ */ g(E, { children: [
658
+ return /* @__PURE__ */ h(E, { children: [
659
659
  /* @__PURE__ */ o(ve, { size: "small", status: "completed" }),
660
660
  e.cardModel.isAgitating && /* @__PURE__ */ o(Cr, { children: t("agitating") })
661
661
  ] });
@@ -668,7 +668,7 @@ const yr = v.div``, Ii = I(() => {
668
668
  children: e
669
669
  }) => {
670
670
  const [t, n] = P({}), r = (i) => t[i], s = (i, l) => {
671
- n((u) => ({ ...u, [i]: l }));
671
+ n((d) => ({ ...d, [i]: l }));
672
672
  }, a = () => n({}), c = async () => {
673
673
  for (const i in t)
674
674
  t[i].configProperty.updateProperty(
@@ -692,15 +692,15 @@ const yr = v.div``, Ii = I(() => {
692
692
  const { value: n } = j({ configProperty: t });
693
693
  return /* @__PURE__ */ o(ne, { label: e, value: n });
694
694
  }, it = ({ configProperty: e, hideUnits: t, isValid: n, ...r }) => {
695
- var p, d;
695
+ var p, u;
696
696
  const { t: s } = S("common", { keyPrefix: "validation" }), { significantValue: a } = j({
697
697
  configProperty: e
698
- }), c = (h) => {
699
- h || (h = ""), e.updateProperty(h);
700
- }, i = (p = e.displayOptions) == null ? void 0 : p.max, l = (d = e.displayOptions) == null ? void 0 : d.min, u = A(
701
- (h) => {
702
- const m = n == null ? void 0 : n(h);
703
- return m || (Number(h) < l ? s("minValue", { data: { minValue: l } }) : Number(h) > i ? s("maxValue", { data: { maxValue: i } }) : void 0);
698
+ }), c = (m) => {
699
+ m || (m = ""), e.updateProperty(m);
700
+ }, i = (p = e.displayOptions) == null ? void 0 : p.max, l = (u = e.displayOptions) == null ? void 0 : u.min, d = A(
701
+ (m) => {
702
+ const g = n == null ? void 0 : n(m);
703
+ return g || (Number(m) < l ? s("minValue", { data: { minValue: l } }) : Number(m) > i ? s("maxValue", { data: { maxValue: i } }) : void 0);
704
704
  },
705
705
  [n, i, l, s]
706
706
  );
@@ -708,7 +708,7 @@ const yr = v.div``, Ii = I(() => {
708
708
  oe,
709
709
  {
710
710
  ...r,
711
- isValid: u,
711
+ isValid: d,
712
712
  onChange: c,
713
713
  unitValue: t ? void 0 : e.unit,
714
714
  value: a
@@ -738,11 +738,11 @@ const yr = v.div``, Ii = I(() => {
738
738
  {
739
739
  toggleLabel: c === "true" ? "Enabled" : "Disabled",
740
740
  ...n,
741
- onChange: (u) => {
741
+ onChange: (d) => {
742
742
  s ? s(e.id, {
743
743
  configProperty: e,
744
- value: u
745
- }) : e.updateProperty(u);
744
+ value: d
745
+ }) : e.updateProperty(d);
746
746
  },
747
747
  checked: t !== void 0 ? t : c === "true"
748
748
  }
@@ -757,36 +757,36 @@ const yr = v.div``, Ii = I(() => {
757
757
  items: c,
758
758
  label: i,
759
759
  onChange: l,
760
- onSave: u,
760
+ onSave: d,
761
761
  proceedButtonLabel: p,
762
- selectedItemId: d,
763
- unitValue: h,
764
- ...m
762
+ selectedItemId: u,
763
+ unitValue: m,
764
+ ...g
765
765
  }) => {
766
- const { t: f } = S(["config-properties", "common"]), w = j({
766
+ const { t: b } = S(["config-properties", "common"]), f = j({
767
767
  configProperty: n,
768
768
  optionsTransformer: kr
769
769
  });
770
770
  return /* @__PURE__ */ o(
771
771
  qe,
772
772
  {
773
- ...m,
774
- cancelButtonLabel: t ?? (f("discard-changes", {
773
+ ...g,
774
+ cancelButtonLabel: t ?? (b("discard-changes", {
775
775
  defaultValue: "Discard Changes",
776
776
  ns: "common"
777
777
  }) || void 0),
778
778
  collapse: e,
779
- displayValue: s ?? r === "raw" ? w.value : w.displayValue,
779
+ displayValue: s ?? r === "raw" ? f.value : f.displayValue,
780
780
  float: a,
781
- items: c ?? w.mappedOptions,
782
- label: i ?? f(n.id),
783
- onSave: (x) => u ? u(x) : n.updateProperty(x),
784
- proceedButtonLabel: p ?? (f("save", { defaultValue: "Save", ns: "common" }) || void 0),
785
- selectedItemId: d ?? w.value,
786
- unitValue: h ?? w.unit
781
+ items: c ?? f.mappedOptions,
782
+ label: i ?? b(n.id),
783
+ onSave: (C) => d ? d(C) : n.updateProperty(C),
784
+ proceedButtonLabel: p ?? (b("save", { defaultValue: "Save", ns: "common" }) || void 0),
785
+ selectedItemId: u ?? f.value,
786
+ unitValue: m ?? f.unit
787
787
  }
788
788
  );
789
- }, Tr = v(it)`
789
+ }, Tr = y(it)`
790
790
  border-top: var(--ddk-component-input-enable-card-input-container-border);
791
791
  border-radius: 0;
792
792
  cursor: pointer;
@@ -822,7 +822,7 @@ const yr = v.div``, Ii = I(() => {
822
822
  --ddk-component-input-enable-card-input-font-weight
823
823
  );
824
824
  }
825
- `, Ir = v(at)`
825
+ `, Ir = y(at)`
826
826
  border-top: var(--ddk-component-input-enable-card-input-container-border);
827
827
  border-radius: 0;
828
828
  cursor: pointer;
@@ -936,14 +936,14 @@ const yr = v.div``, Ii = I(() => {
936
936
  s,
937
937
  c
938
938
  );
939
- }, Lr = v(go)`
939
+ }, Lr = y(go)`
940
940
  align-items: ${(e) => e.mode === "compact" ? "flex-start" : void 0};
941
941
  flex-direction: var(
942
942
  --ddk-component-input-enable-card-container-flex-direction
943
943
  );
944
944
  padding: var(--ddk-component-input-enable-card-container-padding);
945
945
  gap: var(--ddk-component-input-enable-card-container-gap);
946
- `, Er = v.div`
946
+ `, Er = y.div`
947
947
  box-sizing: border-box;
948
948
  display: flex;
949
949
  flex-direction: var(
@@ -951,9 +951,9 @@ const yr = v.div``, Ii = I(() => {
951
951
  );
952
952
  gap: var(--ddk-component-input-enable-card-input-container-gap);
953
953
  width: 100%;
954
- `, Fr = v(hn)`
954
+ `, Fr = y(hn)`
955
955
  width: 100%;
956
- `, $r = v.div`
956
+ `, $r = y.div`
957
957
  box-sizing: border-box;
958
958
  padding: ${(e) => e.compact ? "var(--ddk-component-input-enable-card-toggle-container-padding)" : "0"};
959
959
  width: var(--ddk-component-input-enable-card-toggle-container-width);
@@ -965,7 +965,7 @@ const yr = v.div``, Ii = I(() => {
965
965
  const { value: r } = j({
966
966
  configProperty: n
967
967
  }), s = r === "true", { componentModeOverride: a } = M(), c = e.length === 1, i = c ? Fr : hn;
968
- return /* @__PURE__ */ g(
968
+ return /* @__PURE__ */ h(
969
969
  Lr,
970
970
  {
971
971
  disabled: !s || t,
@@ -1039,49 +1039,49 @@ const yr = v.div``, Ii = I(() => {
1039
1039
  ...c
1040
1040
  }) => {
1041
1041
  const { regionModel: i } = X(), { t: l } = S("common", { keyPrefix: "schedule" }), {
1042
- amPmOptions: u,
1042
+ amPmOptions: d,
1043
1043
  formattedTime: p,
1044
- hourOptions: d,
1045
- minuteOptions: h,
1046
- setTime: m,
1047
- time: f
1048
- } = jt({ initialDate: a }), w = f.getHours(), x = L(
1044
+ hourOptions: u,
1045
+ minuteOptions: m,
1046
+ setTime: g,
1047
+ time: b
1048
+ } = jt({ initialDate: a }), f = b.getHours(), C = L(
1049
1049
  () => [
1050
1050
  {
1051
1051
  id: "hr",
1052
- items: d,
1053
- selectedItemId: w < 12 ? w : w - 12,
1052
+ items: u,
1053
+ selectedItemId: f < 12 ? f : f - 12,
1054
1054
  loop: !0
1055
1055
  },
1056
1056
  {
1057
1057
  id: "min",
1058
- items: h,
1059
- selectedItemId: f.getMinutes(),
1058
+ items: m,
1059
+ selectedItemId: b.getMinutes(),
1060
1060
  loop: !0
1061
1061
  },
1062
1062
  {
1063
1063
  id: "ampm",
1064
- items: u,
1065
- selectedItemId: w < 12 ? "AM" : "PM"
1064
+ items: d,
1065
+ selectedItemId: f < 12 ? "AM" : "PM"
1066
1066
  }
1067
1067
  ],
1068
- [u, d, h, f, w]
1068
+ [d, u, m, b, f]
1069
1069
  ), T = L(
1070
1070
  () => [
1071
1071
  {
1072
1072
  id: "hr",
1073
- items: d,
1074
- selectedItemId: w,
1073
+ items: u,
1074
+ selectedItemId: f,
1075
1075
  loop: !0
1076
1076
  },
1077
1077
  {
1078
1078
  id: "min",
1079
- items: h,
1080
- selectedItemId: f.getMinutes(),
1079
+ items: m,
1080
+ selectedItemId: b.getMinutes(),
1081
1081
  loop: !0
1082
1082
  }
1083
1083
  ],
1084
- [d, h, f, w]
1084
+ [u, m, b, f]
1085
1085
  );
1086
1086
  return /* @__PURE__ */ o(
1087
1087
  nt,
@@ -1089,7 +1089,7 @@ const yr = v.div``, Ii = I(() => {
1089
1089
  ...c,
1090
1090
  cancelButtonLabel: l("discard-changes", "Discard Changes") || void 0,
1091
1091
  closeButtonLabel: l("close", "Close") || void 0,
1092
- data: i != null && i.is12HourTimeFormat ? x : T,
1092
+ data: i != null && i.is12HourTimeFormat ? C : T,
1093
1093
  description: e,
1094
1094
  displayValue: p,
1095
1095
  float: t,
@@ -1098,20 +1098,20 @@ const yr = v.div``, Ii = I(() => {
1098
1098
  modalTitle: r,
1099
1099
  proceedButtonLabel: l("save", "Save") || void 0,
1100
1100
  onSave: (D) => {
1101
- const k = i != null && i.is12HourTimeFormat ? D.ampm === "AM" ? D.hr : D.hr + 12 : D.hr, y = D.min, b = new Date(f);
1102
- b.setHours(k), b.setMinutes(y), m(b), s == null || s({ hours: k, minutes: y });
1101
+ const k = i != null && i.is12HourTimeFormat ? D.ampm === "AM" ? D.hr : D.hr + 12 : D.hr, w = D.min, v = new Date(b);
1102
+ v.setHours(k), v.setMinutes(w), g(v), s == null || s({ hours: k, minutes: w });
1103
1103
  }
1104
1104
  }
1105
1105
  );
1106
1106
  }, Vr = ({ configProperty: e, ...t }) => {
1107
1107
  var p;
1108
1108
  const { getStagedChange: n, updateStagedChange: r } = gn(), { value: s } = j({ configProperty: e }), a = ((p = n == null ? void 0 : n(e.id)) == null ? void 0 : p.value) ?? s, { hours: c, minutes: i } = Oo(Number(a)), l = /* @__PURE__ */ new Date();
1109
- return l.setHours(c), l.setMinutes(i), /* @__PURE__ */ o(Rr, { ...t, onSave: (d) => {
1110
- const h = Ro(d.hours, d.minutes);
1109
+ return l.setHours(c), l.setMinutes(i), /* @__PURE__ */ o(Rr, { ...t, onSave: (u) => {
1110
+ const m = Ro(u.hours, u.minutes);
1111
1111
  r ? r(e.id, {
1112
1112
  configProperty: e,
1113
- value: h
1114
- }) : e.updateProperty(h);
1113
+ value: m
1114
+ }) : e.updateProperty(m);
1115
1115
  }, time: l });
1116
1116
  }, Nr = [0, 6], Mr = ({
1117
1117
  day: e = (/* @__PURE__ */ new Date()).getDate(),
@@ -1120,7 +1120,7 @@ const yr = v.div``, Ii = I(() => {
1120
1120
  year: r = (/* @__PURE__ */ new Date()).getFullYear(),
1121
1121
  ...s
1122
1122
  }) => {
1123
- var m, f, w, x, T, D;
1123
+ var g, b, f, C, T, D;
1124
1124
  const { t: a } = S("region"), { regionModel: c } = X(), i = Wt({
1125
1125
  date: { year: r, month: t, day: e },
1126
1126
  formatOptions: {
@@ -1135,62 +1135,62 @@ const yr = v.div``, Ii = I(() => {
1135
1135
  }
1136
1136
  }), l = L(
1137
1137
  () => {
1138
- var k, y;
1139
- return (y = (k = i == null ? void 0 : i.dateState) == null ? void 0 : k.yearsOptionsArray) == null ? void 0 : y.map((b) => ({
1140
- id: b.value,
1141
- label: b.label
1138
+ var k, w;
1139
+ return (w = (k = i == null ? void 0 : i.dateState) == null ? void 0 : k.yearsOptionsArray) == null ? void 0 : w.map((v) => ({
1140
+ id: v.value,
1141
+ label: v.label
1142
1142
  }));
1143
1143
  },
1144
- [(m = i == null ? void 0 : i.dateState) == null ? void 0 : m.yearsOptionsArray]
1145
- ), u = L(
1144
+ [(g = i == null ? void 0 : i.dateState) == null ? void 0 : g.yearsOptionsArray]
1145
+ ), d = L(
1146
1146
  () => {
1147
- var k, y;
1148
- return (y = (k = i == null ? void 0 : i.dateState) == null ? void 0 : k.daysOptionsArray) == null ? void 0 : y.map((b) => ({
1149
- id: b.value,
1150
- label: b.label
1147
+ var k, w;
1148
+ return (w = (k = i == null ? void 0 : i.dateState) == null ? void 0 : k.daysOptionsArray) == null ? void 0 : w.map((v) => ({
1149
+ id: v.value,
1150
+ label: v.label
1151
1151
  }));
1152
1152
  },
1153
- [(f = i == null ? void 0 : i.dateState) == null ? void 0 : f.daysOptionsArray]
1153
+ [(b = i == null ? void 0 : i.dateState) == null ? void 0 : b.daysOptionsArray]
1154
1154
  ), p = L(
1155
1155
  () => {
1156
- var k, y;
1157
- return (y = (k = i == null ? void 0 : i.dateState) == null ? void 0 : k.monthsOptionsArray) == null ? void 0 : y.map((b) => ({
1158
- id: b.value,
1159
- label: String(b.label)
1156
+ var k, w;
1157
+ return (w = (k = i == null ? void 0 : i.dateState) == null ? void 0 : k.monthsOptionsArray) == null ? void 0 : w.map((v) => ({
1158
+ id: v.value,
1159
+ label: String(v.label)
1160
1160
  }));
1161
1161
  },
1162
- [(w = i == null ? void 0 : i.dateState) == null ? void 0 : w.monthsOptionsArray]
1163
- ), d = L(() => {
1162
+ [(f = i == null ? void 0 : i.dateState) == null ? void 0 : f.monthsOptionsArray]
1163
+ ), u = L(() => {
1164
1164
  const k = [];
1165
- return c == null || c.selectedDateOrder.split("").forEach((y) => {
1166
- var b, H, _;
1167
- y === "y" ? k.push({
1165
+ return c == null || c.selectedDateOrder.split("").forEach((w) => {
1166
+ var v, H, _;
1167
+ w === "y" ? k.push({
1168
1168
  id: "year",
1169
1169
  items: l,
1170
- selectedItemId: (b = i == null ? void 0 : i.dateState) == null ? void 0 : b.year,
1170
+ selectedItemId: (v = i == null ? void 0 : i.dateState) == null ? void 0 : v.year,
1171
1171
  loop: !1
1172
- }) : y === "m" ? k.push({
1172
+ }) : w === "m" ? k.push({
1173
1173
  id: "month",
1174
1174
  items: p,
1175
1175
  selectedItemId: (H = i == null ? void 0 : i.dateState) == null ? void 0 : H.month
1176
- }) : y === "d" && k.push({
1176
+ }) : w === "d" && k.push({
1177
1177
  id: "day",
1178
- items: u,
1178
+ items: d,
1179
1179
  selectedItemId: (_ = i == null ? void 0 : i.dateState) == null ? void 0 : _.day,
1180
1180
  loop: !1
1181
1181
  });
1182
1182
  }), k;
1183
1183
  }, [
1184
- (x = i == null ? void 0 : i.dateState) == null ? void 0 : x.day,
1184
+ (C = i == null ? void 0 : i.dateState) == null ? void 0 : C.day,
1185
1185
  (T = i == null ? void 0 : i.dateState) == null ? void 0 : T.month,
1186
1186
  (D = i == null ? void 0 : i.dateState) == null ? void 0 : D.year,
1187
- u,
1187
+ d,
1188
1188
  p,
1189
1189
  c == null ? void 0 : c.selectedDateOrder,
1190
1190
  l
1191
- ]), h = A(
1191
+ ]), m = A(
1192
1192
  async (k) => {
1193
- const b = new Date(k.year, k.month + 1, 0).getDate(), H = k.day > b ? 1 : k.day;
1193
+ const v = new Date(k.year, k.month + 1, 0).getDate(), H = k.day > v ? 1 : k.day;
1194
1194
  n({
1195
1195
  day: H,
1196
1196
  month: k.month,
@@ -1204,11 +1204,11 @@ const yr = v.div``, Ii = I(() => {
1204
1204
  {
1205
1205
  cancelButtonLabel: a("discard-changes", "Discard Changes") || void 0,
1206
1206
  closeButtonLabel: a("close", "Close") || void 0,
1207
- data: d,
1207
+ data: u,
1208
1208
  displayValue: i.dateState.formattedDate,
1209
1209
  icon: jo,
1210
1210
  label: a("todays-date", "Today's Date"),
1211
- onSave: h,
1211
+ onSave: m,
1212
1212
  proceedButtonLabel: a("save", "Save") || void 0,
1213
1213
  ...s
1214
1214
  }
@@ -1219,29 +1219,29 @@ const yr = v.div``, Ii = I(() => {
1219
1219
  keyPrefix: "fcm-diagnostics"
1220
1220
  }), [r, s] = P("idle"), [a, c] = P(), i = A(async () => {
1221
1221
  s("test"), c(void 0);
1222
- const u = await e.performElectricalTest();
1223
- u.error ? (c(u.error), s("failure")) : u.result === "errEEPROM" ? (c("errEEPROM"), s("failure")) : s("success");
1222
+ const d = await e.performElectricalTest();
1223
+ d.error ? (c(d.error), s("failure")) : d.result === "errEEPROM" ? (c("errEEPROM"), s("failure")) : s("success");
1224
1224
  }, [e]), l = L(() => ({
1225
1225
  idle: {
1226
1226
  information: /* @__PURE__ */ o(F, { children: n("perform-electrical-test") }),
1227
- footer: /* @__PURE__ */ o(C, { onPointerDown: i, children: n("electrical-test") })
1227
+ footer: /* @__PURE__ */ o(x, { onPointerDown: i, children: n("electrical-test") })
1228
1228
  },
1229
1229
  test: {
1230
1230
  information: /* @__PURE__ */ o(F, { children: n("testing") }),
1231
- footer: /* @__PURE__ */ o(C, { disabled: !0, children: n("electrical-test") }),
1231
+ footer: /* @__PURE__ */ o(x, { disabled: !0, children: n("electrical-test") }),
1232
1232
  status: "loading"
1233
1233
  },
1234
1234
  success: {
1235
1235
  information: /* @__PURE__ */ o(F, { children: n("electrical-test-success-header") }),
1236
- footer: /* @__PURE__ */ o(C, { onPointerDown: i, children: n("electrical-test") }),
1236
+ footer: /* @__PURE__ */ o(x, { onPointerDown: i, children: n("electrical-test") }),
1237
1237
  status: "success"
1238
1238
  },
1239
1239
  failure: {
1240
- information: /* @__PURE__ */ g(E, { children: [
1240
+ information: /* @__PURE__ */ h(E, { children: [
1241
1241
  /* @__PURE__ */ o(F, { children: n("electrical-test-failure-header") }),
1242
1242
  /* @__PURE__ */ o(q, { children: n(`error.${a}`) })
1243
1243
  ] }),
1244
- footer: /* @__PURE__ */ o(C, { onPointerDown: i, children: n("electrical-test") }),
1244
+ footer: /* @__PURE__ */ o(x, { onPointerDown: i, children: n("electrical-test") }),
1245
1245
  status: "information"
1246
1246
  }
1247
1247
  }), [a, n, i]);
@@ -1306,12 +1306,12 @@ const yr = v.div``, Ii = I(() => {
1306
1306
  }), He = (e, t = zr) => {
1307
1307
  const { t: n } = S("troubles"), [r, s] = P(null), [a, c] = P(et), i = A(
1308
1308
  async (l) => {
1309
- const u = t(l);
1310
- if (u) {
1309
+ const d = t(l);
1310
+ if (d) {
1311
1311
  const p = _r(n)(l);
1312
1312
  c(p);
1313
- const d = new u(e);
1314
- await d.performAction(), s(d);
1313
+ const u = new d(e);
1314
+ await u.performAction(), s(u);
1315
1315
  }
1316
1316
  },
1317
1317
  [t, e, n]
@@ -1327,8 +1327,8 @@ const yr = v.div``, Ii = I(() => {
1327
1327
  const { t: r } = S("troubles"), [s, a] = P(null), [c] = P(Kr(r)(t)), i = A(async () => {
1328
1328
  const l = n(t);
1329
1329
  if (l) {
1330
- const u = new l(e, t);
1331
- await u.performAction(), a(u);
1330
+ const d = new l(e, t);
1331
+ await d.performAction(), a(d);
1332
1332
  }
1333
1333
  }, [n, e, t]);
1334
1334
  return [s, i, c];
@@ -1438,15 +1438,15 @@ function Mi(e) {
1438
1438
  }
1439
1439
  const Nt = {
1440
1440
  [sn]: "setupDescriptor",
1441
- [Qo]: "cuiDescriptor",
1442
- [Zo]: "utilDescriptor"
1441
+ [Zo]: "cuiDescriptor",
1442
+ [Qo]: "utilDescriptor"
1443
1443
  }, qr = ({
1444
1444
  defaultNamespace: e,
1445
1445
  extensionPoint: t
1446
1446
  }) => {
1447
1447
  const { getExtensions: n } = rt(), r = n(t), s = r.map((l) => l.data.namespace) || [], { t: a } = S([e, ...new Set(s)]), c = r.reduce(
1448
- (l, u) => {
1449
- const p = u;
1448
+ (l, d) => {
1449
+ const p = d;
1450
1450
  return l[p.data[Nt[t]]] = {
1451
1451
  extension: t,
1452
1452
  module: p.id,
@@ -1455,8 +1455,8 @@ const Nt = {
1455
1455
  }, l;
1456
1456
  },
1457
1457
  {}
1458
- ), i = r.reduce((l, u) => {
1459
- const p = u;
1458
+ ), i = r.reduce((l, d) => {
1459
+ const p = d;
1460
1460
  return l[p.data[Nt[t]]] = `${p.data.namespace}:${p.data.title}`, l;
1461
1461
  }, {});
1462
1462
  return { namespaces: s, t: a, labelMap: i, contributionMap: c };
@@ -1464,31 +1464,31 @@ const Nt = {
1464
1464
  const n = L(() => ({
1465
1465
  agitate: gr,
1466
1466
  calibrate: ({ holder: c, pump: i, onComplete: l }) => {
1467
- const u = Z(
1467
+ const d = Z(
1468
1468
  i ?? c.pumps.data[0],
1469
1469
  Ze.type
1470
1470
  );
1471
- return /* @__PURE__ */ o(wr, { pump: u, onComplete: l });
1471
+ return /* @__PURE__ */ o(wr, { pump: d, onComplete: l });
1472
1472
  },
1473
1473
  calibrateSPM: ({ holder: c, pump: i, onComplete: l }) => {
1474
- const u = Z(
1474
+ const d = Z(
1475
1475
  i ?? c.pumps.data[0],
1476
1476
  tn.type
1477
1477
  );
1478
1478
  return /* @__PURE__ */ o(
1479
1479
  ii,
1480
1480
  {
1481
- pump: u,
1481
+ pump: d,
1482
1482
  onComplete: l
1483
1483
  }
1484
1484
  );
1485
1485
  },
1486
1486
  diagnostics: ({ holder: c, pump: i, onComplete: l }) => {
1487
- const u = Z(
1487
+ const d = Z(
1488
1488
  i ?? c.pumps.data[0],
1489
1489
  Ze.type
1490
1490
  );
1491
- return /* @__PURE__ */ o(Hr, { pump: u, onComplete: l });
1491
+ return /* @__PURE__ */ o(Hr, { pump: d, onComplete: l });
1492
1492
  },
1493
1493
  "replace-pump": ({ holder: c, pump: i, onComplete: l }) => /* @__PURE__ */ o(
1494
1494
  Js,
@@ -1781,10 +1781,10 @@ const dt = (e) => {
1781
1781
  }, is = (e) => !e || e === "white", as = (e) => e ? void 0 : "white", cs = (e) => {
1782
1782
  if (!so(e))
1783
1783
  return {};
1784
- const t = e, { visibleTroubles: n, initialized: r } = xe(t), s = (n == null ? void 0 : n.length) ?? 0, a = n == null ? void 0 : n[0], c = s > 0, i = c ? `${a == null ? void 0 : a.color}` : void 0, l = is(i), u = c ? as(l) : void 0;
1784
+ const t = e, { visibleTroubles: n, initialized: r } = xe(t), s = (n == null ? void 0 : n.length) ?? 0, a = n == null ? void 0 : n[0], c = s > 0, i = c ? `${a == null ? void 0 : a.color}` : void 0, l = is(i), d = c ? as(l) : void 0;
1785
1785
  return {
1786
1786
  backgroundColor: i,
1787
- fontColor: u,
1787
+ fontColor: d,
1788
1788
  highestTrouble: a,
1789
1789
  initialized: r,
1790
1790
  troubleCount: s,
@@ -1796,8 +1796,8 @@ const dt = (e) => {
1796
1796
  }) => {
1797
1797
  const { model: n } = io(), [r, s] = P(!1), [a, c] = P([]);
1798
1798
  return O(() => se(() => {
1799
- const l = (e ? n == null ? void 0 : n.troubles.getIndexByKey("byType", e) : n == null ? void 0 : n.troubles.data) || [], u = t ? l.filter(t) : l;
1800
- s(u.length > 0), c(u);
1799
+ const l = (e ? n == null ? void 0 : n.troubles.getIndexByKey("byType", e) : n == null ? void 0 : n.troubles.data) || [], d = t ? l.filter(t) : l;
1800
+ s(d.length > 0), c(d);
1801
1801
  }), [t, n, e]), [r, a.length > 0 ? a[0] : void 0, a];
1802
1802
  }, An = (e) => B({
1803
1803
  modelId: e,
@@ -1832,7 +1832,7 @@ const ls = ao(
1832
1832
  ), ea = Xr(
1833
1833
  I(({ dispenserInfo: e }) => {
1834
1834
  const { t } = S("dispenser-profile");
1835
- return /* @__PURE__ */ g(E, { children: [
1835
+ return /* @__PURE__ */ h(E, { children: [
1836
1836
  /* @__PURE__ */ o(
1837
1837
  Sr,
1838
1838
  {
@@ -1849,7 +1849,7 @@ const ls = ao(
1849
1849
  if (r && r.length >= 25)
1850
1850
  return "The name shouldn’t exceed 25 characters.";
1851
1851
  };
1852
- return /* @__PURE__ */ g(E, { children: [
1852
+ return /* @__PURE__ */ h(E, { children: [
1853
1853
  /* @__PURE__ */ o(
1854
1854
  it,
1855
1855
  {
@@ -1870,13 +1870,13 @@ const ls = ao(
1870
1870
  )
1871
1871
  ] });
1872
1872
  })
1873
- ), En = v(ot)`
1873
+ ), En = y(ot)`
1874
1874
  color: var(--ddk-generic-color-grey-60);
1875
1875
  font-size: var(--ddk-component-enjoy-by-font-size-small);
1876
1876
  font-weight: var(--ddk-component-enjoy-by-font-weight-small);
1877
- `, ds = v(ot)`
1877
+ `, ds = y(ot)`
1878
1878
  color: var(--ddk-component-dashboard-enjoy-by-trouble-warning-color);
1879
- `, us = v(En)`
1879
+ `, us = y(En)`
1880
1880
  color: var(--ddk-component-dashboard-enjoy-by-trouble-warning-color);
1881
1881
  `, Fn = ({ holder: e, size: t }) => {
1882
1882
  const { t: n } = S("common"), { regionModel: r } = X(), s = !!e.enjoyByDate, a = e.enjoyByDate ?? /* @__PURE__ */ new Date(), { formattedDate: c } = co({
@@ -1892,7 +1892,7 @@ const ls = ao(
1892
1892
  return /* @__PURE__ */ o(ho, { children: n("not-connected") });
1893
1893
  const s = fo(e, t);
1894
1894
  return s || "—";
1895
- }, ms = v(Xt)`
1895
+ }, ms = y(Xt)`
1896
1896
  & ul {
1897
1897
  list-style-type: none;
1898
1898
  margin: 0;
@@ -1940,9 +1940,9 @@ const ls = ao(
1940
1940
  }) => {
1941
1941
  const { t: a } = S("common"), [c, i] = P(
1942
1942
  t.isPouring ? "halt" : "idle"
1943
- ), l = vt(), u = vt(!1), p = 250;
1943
+ ), l = vt(), d = vt(!1), p = 250;
1944
1944
  O(() => se(() => {
1945
- t.isPouring || (u.current = !1, clearTimeout(l.current), l.current = void 0, i("idle"));
1945
+ t.isPouring || (d.current = !1, clearTimeout(l.current), l.current = void 0, i("idle"));
1946
1946
  }), [t]), O(
1947
1947
  () => (
1948
1948
  // If the model changes, or if the component is unmounted, cancel the
@@ -1953,24 +1953,24 @@ const ls = ao(
1953
1953
  ),
1954
1954
  [t]
1955
1955
  );
1956
- const d = A(() => {
1956
+ const u = A(() => {
1957
1957
  t && (e || t.isPouring || (t.performIntent("HOLD_TO_POUR"), l.current = setTimeout(() => {
1958
- u.current = !0, l.current = void 0, i("run");
1958
+ d.current = !0, l.current = void 0, i("run");
1959
1959
  }, p)));
1960
- }, [e, t]), h = A(() => {
1961
- t && (u.current ? (t.cancelPour(), u.current = !1, i("idle")) : l.current ? (clearTimeout(l.current), l.current = void 0, i("halt")) : t.isPouring && (t.cancelPour(), i("idle")));
1962
- }, [t]), m = A(() => {
1963
- c !== "halt" && h();
1964
- }, [h, c]);
1960
+ }, [e, t]), m = A(() => {
1961
+ t && (d.current ? (t.cancelPour(), d.current = !1, i("idle")) : l.current ? (clearTimeout(l.current), l.current = void 0, i("halt")) : t.isPouring && (t.cancelPour(), i("idle")));
1962
+ }, [t]), g = A(() => {
1963
+ c !== "halt" && m();
1964
+ }, [m, c]);
1965
1965
  return /* @__PURE__ */ o(
1966
1966
  bo,
1967
1967
  {
1968
1968
  disabled: e,
1969
1969
  mode: "primary",
1970
- onPointerCancel: h,
1971
- onPointerDown: d,
1972
- onPointerOut: m,
1973
- onPointerUp: h,
1970
+ onPointerCancel: m,
1971
+ onPointerDown: u,
1972
+ onPointerOut: g,
1973
+ onPointerUp: m,
1974
1974
  ...s,
1975
1975
  state: c,
1976
1976
  children: a(
@@ -1998,14 +1998,14 @@ const ls = ao(
1998
1998
  componentModeOverride: r,
1999
1999
  modalModeOverride: s
2000
2000
  }) => {
2001
- const [a, c] = P(!0), [i, l] = P(!0), [u, p] = P(!0);
2001
+ const [a, c] = P(!0), [i, l] = P(!0), [d, p] = P(!0);
2002
2002
  return O(() => {
2003
- const d = se(() => {
2004
- const h = !!(!(t != null && t.disableAll) && (t != null && t.enableDial)) && !!(!e.disableAll.value && e.enableDial.value), m = !!(!(t != null && t.disableAll) && (t != null && t.enableModal)) && !!(!e.disableAll.value && e.enableModal.value), f = !!(!(t != null && t.disableAll) && (t != null && t.enableSideBar)) && !!(!e.disableAll.value && e.enableSideBar.value);
2005
- c(h), l(m), p(f);
2003
+ const u = se(() => {
2004
+ const m = !!(!(t != null && t.disableAll) && (t != null && t.enableDial)) && !!(!e.disableAll.value && e.enableDial.value), g = !!(!(t != null && t.disableAll) && (t != null && t.enableModal)) && !!(!e.disableAll.value && e.enableModal.value), b = !!(!(t != null && t.disableAll) && (t != null && t.enableSideBar)) && !!(!e.disableAll.value && e.enableSideBar.value);
2005
+ c(m), l(g), p(b);
2006
2006
  });
2007
2007
  return () => {
2008
- d();
2008
+ u();
2009
2009
  };
2010
2010
  }, [
2011
2011
  e,
@@ -2020,7 +2020,7 @@ const ls = ao(
2020
2020
  componentModeOverride: r,
2021
2021
  enableDialAnimation: a,
2022
2022
  enableModalAnimation: i,
2023
- enableSidebarAnimation: u,
2023
+ enableSidebarAnimation: d,
2024
2024
  modalModeOverride: s
2025
2025
  },
2026
2026
  children: n
@@ -2171,8 +2171,8 @@ const ls = ao(
2171
2171
  const c = se(() => {
2172
2172
  const i = e.troubles.filter(_o(s));
2173
2173
  r((l) => {
2174
- const u = l ?? [];
2175
- return i.length !== u.length || i.some((p) => !u.includes(p)) ? i : u;
2174
+ const d = l ?? [];
2175
+ return i.length !== d.length || i.some((p) => !d.includes(p)) ? i : d;
2176
2176
  });
2177
2177
  });
2178
2178
  return () => {
@@ -2181,7 +2181,7 @@ const ls = ao(
2181
2181
  }, [e, s]), { visibleTroubles: n, initialized: a };
2182
2182
  }, Gn = N.createLogger({ name: "holder-group-view" });
2183
2183
  Gn.debug("holder-group-view component loaded");
2184
- const Mt = v.div`
2184
+ const Mt = y.div`
2185
2185
  align-items: start;
2186
2186
 
2187
2187
  display: flex;
@@ -2191,39 +2191,39 @@ const Mt = v.div`
2191
2191
  text-overflow: ellipsis;
2192
2192
  width: 100%;
2193
2193
  color: ${(e) => e.color ?? "var(--ddk-generic-color-black)"};
2194
- `, gs = v.div`
2194
+ `, gs = y.div`
2195
2195
  display: flex;
2196
2196
  align-items: center;
2197
2197
  justify-content: center;
2198
2198
  color: ${(e) => e.color ?? "var(--ddk-generic-color-black)"};
2199
- `, hs = v.div`
2199
+ `, hs = y.div`
2200
2200
  font-size: var(--ddk-component-holder-card-footer-font-size);
2201
2201
  color: ${(e) => e.color ?? "var(--ddk-generic-color-black)"};
2202
2202
  `, fs = (e) => !e || e === "white", bs = (e) => e ? void 0 : "white", vs = (e, t) => t && t.hasEnjoyByWarning ? "var(--ddk-component-dashboard-enjoy-by-trouble-warning-color)" : e ? void 0 : "white", ys = I(
2203
2203
  ({ holder: e, onHolderSelect: t, showNavIcon: n, summaryBody: r }) => {
2204
- const { model: s } = ze(), { visibleTroubles: a, initialized: c } = xe(e), i = s == null ? void 0 : s.currentRole, { t: l } = S("troubles"), { t: u } = S("common"), { componentModeOverride: p } = M(), d = p === "compact", { getExtensions: h } = Ke();
2205
- let m = !1;
2206
- const f = Z(
2204
+ const { model: s } = ze(), { visibleTroubles: a, initialized: c } = xe(e), i = s == null ? void 0 : s.currentRole, { t: l } = S("troubles"), { t: d } = S("common"), { componentModeOverride: p } = M(), u = p === "compact", { getExtensions: m } = Ke();
2205
+ let g = !1;
2206
+ const b = Z(
2207
2207
  e,
2208
2208
  on.type
2209
2209
  );
2210
- f != null && f.isRemote && (Gn.warn("Holder is remote, skipping rendering"), m = !0);
2211
- const [w, x] = P(!1), T = !!e.ingredientId, D = A(() => {
2212
- x(!1);
2213
- }, []), k = (a == null ? void 0 : a.length) ?? 0, y = a == null ? void 0 : a[0], b = k > 0, H = dt(y), _ = e.hasFuelGuage, G = e.fillPercent, Pe = b ? `${y == null ? void 0 : y.color}` : void 0, Se = fs(Pe), ce = m ? "var(--ddk-generic-color-grey-30)" : b ? bs(Se) : T ? void 0 : "var(--ddk-component-dashboard-card-color-unassigned)", ke = m ? "var(--ddk-generic-color-grey-30)" : b ? vs(Se, e) : T ? void 0 : "var(--ddk-component-dashboard-card-color-unassigned)", Te = Yt(e.name, d), je = m ? u("disabled") : e.removed ? u(e.previousIngredientName) : e.unassigned ? u("unassigned") : u(e.ingredientName), le = /* @__PURE__ */ o(Mt, { color: ce, children: je }), We = /* @__PURE__ */ o(gs, { color: ce, children: Te }), Ie = /* @__PURE__ */ g(Mt, { children: [
2210
+ b != null && b.isRemote && (Gn.warn("Holder is remote, skipping rendering"), g = !0);
2211
+ const [f, C] = P(!1), T = !!e.ingredientId, D = A(() => {
2212
+ C(!1);
2213
+ }, []), k = (a == null ? void 0 : a.length) ?? 0, w = a == null ? void 0 : a[0], v = k > 0, H = dt(w), _ = e.hasFuelGuage, G = e.fillPercent, Pe = v ? `${w == null ? void 0 : w.color}` : void 0, Se = fs(Pe), ce = g ? "var(--ddk-generic-color-grey-30)" : v ? bs(Se) : T ? void 0 : "var(--ddk-component-dashboard-card-color-unassigned)", ke = g ? "var(--ddk-generic-color-grey-30)" : v ? vs(Se, e) : T ? void 0 : "var(--ddk-component-dashboard-card-color-unassigned)", Te = Yt(e.name, u), je = g ? d("disabled") : e.removed ? d(e.previousIngredientName) : e.unassigned ? d("unassigned") : d(e.ingredientName), le = /* @__PURE__ */ o(Mt, { color: ce, children: je }), We = /* @__PURE__ */ o(gs, { color: ce, children: Te }), Ie = /* @__PURE__ */ h(Mt, { children: [
2214
2214
  e.name,
2215
2215
  " ",
2216
2216
  je
2217
- ] }), Ge = T && _ && !b && c ? r ?? /* @__PURE__ */ o(
2217
+ ] }), Ge = T && _ && !v && c ? r ?? /* @__PURE__ */ o(
2218
2218
  Qt,
2219
2219
  {
2220
- color: b ? "var(--ddk-generic-color-white)" : void 0,
2220
+ color: v ? "var(--ddk-generic-color-white)" : void 0,
2221
2221
  size: "small",
2222
2222
  value: G
2223
2223
  }
2224
- ) : null, Xe = T && _ && !b && c && yo(G) || void 0, de = fe.executeDashboardKeyFactory(e) || "", De = L(
2225
- () => h(an),
2226
- [h]
2224
+ ) : null, Xe = T && _ && !v && c && yo(G) || void 0, de = fe.executeDashboardKeyFactory(e) || "", De = L(
2225
+ () => m(an),
2226
+ [m]
2227
2227
  ), ue = L(
2228
2228
  () => De.filter((Y) => !!Y.data.pumpDetail).reduce((Y, gt) => (Y[gt.data.pumpDetail.dashboardKey] = gt.data.pumpDetail, Y), {}),
2229
2229
  [De]
@@ -2240,29 +2240,29 @@ const Mt = v.div`
2240
2240
  ) : void 0;
2241
2241
  },
2242
2242
  [ee, D, ue, pe, e, de]
2243
- ), qn = Ue(y), Qn = /* @__PURE__ */ o(hs, { color: b ? ce : ke, children: f != null && f.isRemote ? u("remote-nns-active") : b ? l(qn.summary, {
2244
- context: y != null && y.deferred ? "queued" : void 0,
2243
+ ), qn = Ue(w), Qn = /* @__PURE__ */ o(hs, { color: v ? ce : ke, children: b != null && b.isRemote ? d("remote-nns-active") : v ? l(qn.summary, {
2244
+ context: w != null && w.deferred ? "queued" : void 0,
2245
2245
  data: H
2246
- }) : !d && /* @__PURE__ */ o(Fn, { size: "small", holder: e }) }), { holderExperience: Zn, setHolderExperience: mt } = _e(e), { future: Le } = J(y), Jn = A(() => {
2247
- m || e.sortedPumps.length <= 0 || (i === "technician" ? x(!0) : e.unassigned || e.removed ? mt("rfid-override") : b && (t == null || t(e)));
2248
- }, [e, b, t, i, mt]);
2249
- return /* @__PURE__ */ g(E, { children: [
2250
- /* @__PURE__ */ g(
2246
+ }) : !u && /* @__PURE__ */ o(Fn, { size: "small", holder: e }) }), { holderExperience: Zn, setHolderExperience: mt } = _e(e), { future: Le } = J(w), Jn = A(() => {
2247
+ g || e.sortedPumps.length <= 0 || (i === "technician" ? C(!0) : e.unassigned || e.removed ? mt("rfid-override") : v && (t == null || t(e)));
2248
+ }, [e, v, t, i, mt]);
2249
+ return /* @__PURE__ */ h(E, { children: [
2250
+ /* @__PURE__ */ h(
2251
2251
  ie,
2252
2252
  {
2253
- contain: !d,
2253
+ contain: !u,
2254
2254
  ...te,
2255
- show: w,
2255
+ show: f,
2256
2256
  onClose: D,
2257
2257
  children: [
2258
2258
  /* @__PURE__ */ o(
2259
2259
  ae,
2260
2260
  {
2261
- contain: d,
2261
+ contain: u,
2262
2262
  showCloseButton: !0,
2263
2263
  title: Ie,
2264
2264
  onClose: D,
2265
- CloseButton: d ? be : void 0
2265
+ CloseButton: u ? be : void 0
2266
2266
  }
2267
2267
  ),
2268
2268
  Ae
@@ -2280,26 +2280,26 @@ const Mt = v.div`
2280
2280
  errors: k,
2281
2281
  title: le,
2282
2282
  indicatorColor: Xe,
2283
- disabled: m,
2283
+ disabled: g,
2284
2284
  body: Ge,
2285
2285
  showNavIcon: n,
2286
2286
  onCardSelect: Jn
2287
2287
  },
2288
2288
  e.path
2289
2289
  ),
2290
- (y == null ? void 0 : y.future) && /* @__PURE__ */ o(
2290
+ (w == null ? void 0 : w.future) && /* @__PURE__ */ o(
2291
2291
  z,
2292
2292
  {
2293
2293
  title: le,
2294
2294
  future: Le,
2295
- failureMessage: l(`troubles.${y.type}.error`, {
2295
+ failureMessage: l(`troubles.${w.type}.error`, {
2296
2296
  context: Le == null ? void 0 : Le.reason
2297
2297
  })
2298
2298
  }
2299
2299
  )
2300
2300
  ] });
2301
2301
  }
2302
- ), Xn = v.div`
2302
+ ), Xn = y.div`
2303
2303
  display: flex;
2304
2304
  flex-direction: var(--ddk-component-dashboard-card-flex-direction);
2305
2305
  row-gap: var(--ddk-component-dashboard-row-gap);
@@ -2336,14 +2336,14 @@ const Mt = v.div`
2336
2336
  }
2337
2337
  ), Cs = N.createLogger({ name: "holder-group-view" });
2338
2338
  Cs.debug("holder-group-view component loaded");
2339
- const Ht = ["water", "carb", "ns", "nns"], xs = v.div`
2339
+ const Ht = ["water", "carb", "ns", "nns"], xs = y.div`
2340
2340
  display: flex;
2341
2341
  flex-direction: column;
2342
2342
  overflow-y: auto;
2343
2343
  overflow-x: hidden;
2344
2344
  justify-content: space-between;
2345
2345
  height: 100%;
2346
- `, zt = v.div`
2346
+ `, zt = y.div`
2347
2347
  align-items: start;
2348
2348
 
2349
2349
  display: flex;
@@ -2353,46 +2353,46 @@ const Ht = ["water", "carb", "ns", "nns"], xs = v.div`
2353
2353
  text-overflow: ellipsis;
2354
2354
  width: 100%;
2355
2355
  color: ${(e) => e.color ?? "var(--ddk-generic-color-black)"};
2356
- `, Ps = v.div`
2356
+ `, Ps = y.div`
2357
2357
  display: flex;
2358
2358
  align-items: center;
2359
2359
  justify-content: center;
2360
2360
  color: ${(e) => e.color ?? "var(--ddk-generic-color-black)"};
2361
- `, Ss = v.div`
2361
+ `, Ss = y.div`
2362
2362
  font-size: var(--ddk-component-holder-card-footer-font-size);
2363
2363
  color: ${(e) => e.color ?? "var(--ddk-generic-color-black)"};
2364
2364
  `, ks = (e) => !e || e === "white", Ts = (e) => e ? void 0 : "white", Is = I(
2365
2365
  ({ holder: e, onHolderSelect: t, showNavIcon: n }) => {
2366
2366
  var pe, ee;
2367
- const { model: r } = ze(), { visibleTroubles: s, initialized: a } = xe(e), { t: c } = S(["troubles", "common"]), { componentModeOverride: i } = M(), l = i === "compact", { getExtensions: u } = Ke(), p = (pe = r == null ? void 0 : r.currentRole) == null ? void 0 : pe.toLowerCase(), [d, h] = P(!1), m = !!e.ingredientId, f = (s == null ? void 0 : s.length) ?? 0, w = s == null ? void 0 : s[0], x = s ? s.length > 0 : !1, T = x ? `${w == null ? void 0 : w.color}` : void 0, D = ks(T), k = x ? Ts(D) : m ? void 0 : "var(--ddk-component-dashboard-card-color-unassigned)", y = Yt(
2367
+ const { model: r } = ze(), { visibleTroubles: s, initialized: a } = xe(e), { t: c } = S(["troubles", "common"]), { componentModeOverride: i } = M(), l = i === "compact", { getExtensions: d } = Ke(), p = (pe = r == null ? void 0 : r.currentRole) == null ? void 0 : pe.toLowerCase(), [u, m] = P(!1), g = !!e.ingredientId, b = (s == null ? void 0 : s.length) ?? 0, f = s == null ? void 0 : s[0], C = s ? s.length > 0 : !1, T = C ? `${f == null ? void 0 : f.color}` : void 0, D = ks(T), k = C ? Ts(D) : g ? void 0 : "var(--ddk-component-dashboard-card-color-unassigned)", w = Yt(
2368
2368
  e.name,
2369
2369
  i === "compact"
2370
- ), b = c(`common:macros.${e.name}`), H = c(`common:${e.ingredientName}`), _ = m ? Ht.includes(e.name) ? "" : ` ${H}` : ` ${c("common:macros.unassigned")}`, G = `${b}${_}`, Pe = l ? Ht.includes(e.name) ? b : _ : `${b} ${_}`, Se = i === "compact" && /* @__PURE__ */ o(Ps, { color: k, children: y }), ce = /* @__PURE__ */ o(zt, { color: k, children: Pe }), ke = /* @__PURE__ */ o(zt, { children: G }), Te = fe.executeDashboardKeyFactory(e) || "", le = u(an).filter((te) => !!te.data.pumpDetail).reduce((te, Ae) => (te[Ae.data.pumpDetail.dashboardKey] = Ae.data.pumpDetail, te), {}), We = !!le[Te], { HolderContent: Ie, modalOptions: Ge } = wn(e), Xe = Ie ? /* @__PURE__ */ o(Ie, { holder: e, onComplete: () => h(!1) }) : We ? /* @__PURE__ */ o(
2370
+ ), v = c(`common:macros.${e.name}`), H = c(`common:${e.ingredientName}`), _ = g ? Ht.includes(e.name) ? "" : ` ${H}` : ` ${c("common:macros.unassigned")}`, G = `${v}${_}`, Pe = l ? Ht.includes(e.name) ? v : _ : `${v} ${_}`, Se = i === "compact" && /* @__PURE__ */ o(Ps, { color: k, children: w }), ce = /* @__PURE__ */ o(zt, { color: k, children: Pe }), ke = /* @__PURE__ */ o(zt, { children: G }), Te = fe.executeDashboardKeyFactory(e) || "", le = d(an).filter((te) => !!te.data.pumpDetail).reduce((te, Ae) => (te[Ae.data.pumpDetail.dashboardKey] = Ae.data.pumpDetail, te), {}), We = !!le[Te], { HolderContent: Ie, modalOptions: Ge } = wn(e), Xe = Ie ? /* @__PURE__ */ o(Ie, { holder: e, onComplete: () => m(!1) }) : We ? /* @__PURE__ */ o(
2371
2371
  Me,
2372
2372
  {
2373
2373
  extension: cn,
2374
2374
  module: (ee = le[Te]) == null ? void 0 : ee.id,
2375
2375
  props: { holder: e }
2376
2376
  }
2377
- ) : null, de = Ue(w), De = x ? /* @__PURE__ */ o(Ss, { color: k, children: c(de.summary) }) : null, ue = A(() => {
2378
- e.sortedPumps.length > 0 && (p === "technician" ? h(!0) : x && (t == null || t(e)));
2379
- }, [x, e, t, p]);
2380
- return /* @__PURE__ */ g(E, { children: [
2377
+ ) : null, de = Ue(f), De = C ? /* @__PURE__ */ o(Ss, { color: k, children: c(de.summary) }) : null, ue = A(() => {
2378
+ e.sortedPumps.length > 0 && (p === "technician" ? m(!0) : C && (t == null || t(e)));
2379
+ }, [C, e, t, p]);
2380
+ return /* @__PURE__ */ h(E, { children: [
2381
2381
  /* @__PURE__ */ o(
2382
2382
  qt,
2383
2383
  {
2384
2384
  avatar: Se,
2385
2385
  backgroundColor: T,
2386
- body: x ? null : /* @__PURE__ */ o(
2386
+ body: C ? null : /* @__PURE__ */ o(
2387
2387
  ve,
2388
2388
  {
2389
2389
  size: "small",
2390
- status: x ? "pending" : "completed"
2390
+ status: C ? "pending" : "completed"
2391
2391
  }
2392
2392
  ),
2393
2393
  footer: De,
2394
2394
  cardId: e.path,
2395
- errors: f,
2395
+ errors: b,
2396
2396
  title: ce,
2397
2397
  showNavIcon: n,
2398
2398
  onCardSelect: ue
@@ -2404,16 +2404,16 @@ const Ht = ["water", "carb", "ns", "nns"], xs = v.div`
2404
2404
  {
2405
2405
  contain: i !== "compact",
2406
2406
  ...Ge,
2407
- show: d,
2408
- onClose: () => h(!1),
2409
- children: /* @__PURE__ */ g(xs, { children: [
2407
+ show: u,
2408
+ onClose: () => m(!1),
2409
+ children: /* @__PURE__ */ h(xs, { children: [
2410
2410
  /* @__PURE__ */ o(
2411
2411
  ae,
2412
2412
  {
2413
2413
  contain: i === "compact",
2414
2414
  showCloseButton: !0,
2415
2415
  title: ke,
2416
- onClose: () => h(!1),
2416
+ onClose: () => m(!1),
2417
2417
  CloseButton: i === "compact" ? be : void 0
2418
2418
  }
2419
2419
  ),
@@ -2421,7 +2421,7 @@ const Ht = ["water", "carb", "ns", "nns"], xs = v.div`
2421
2421
  ] })
2422
2422
  }
2423
2423
  ),
2424
- (w == null ? void 0 : w.future) && /* @__PURE__ */ o(z, { title: ke, future: w == null ? void 0 : w.future })
2424
+ (f == null ? void 0 : f.future) && /* @__PURE__ */ o(z, { title: ke, future: f == null ? void 0 : f.future })
2425
2425
  ] });
2426
2426
  }
2427
2427
  ), Fa = I(
@@ -2439,17 +2439,17 @@ const Ht = ["water", "carb", "ns", "nns"], xs = v.div`
2439
2439
  r.id
2440
2440
  );
2441
2441
  }) })
2442
- ), Ds = v(Wo)`
2442
+ ), Ds = y(Wo)`
2443
2443
  width: var(--ddk-component-macro-card-unavailable-icon-size);
2444
2444
  height: var(--ddk-component-macro-card-unavailable-icon-size);
2445
- `, As = v(Zt)`
2445
+ `, As = y(Zt)`
2446
2446
  text-align: center;
2447
2447
  font-size: var(--ddk-component-sub-modal-heading-font-size-medium);
2448
- `, Ls = v.div`
2448
+ `, Ls = y.div`
2449
2449
  height: 100%;
2450
2450
  overflow-y: auto;
2451
2451
  width: 100%;
2452
- `, Es = v.div`
2452
+ `, Es = y.div`
2453
2453
  display: grid;
2454
2454
  gap: var(--ddk-component-macro-setup-card-gap);
2455
2455
 
@@ -2468,7 +2468,7 @@ const Ht = ["water", "carb", "ns", "nns"], xs = v.div`
2468
2468
  ...e
2469
2469
  }
2470
2470
  );
2471
- }, $s = v.div`
2471
+ }, $s = y.div`
2472
2472
  align-items: center;
2473
2473
 
2474
2474
  background: ${(e) => e.selected ? "var(--ddk-generic-color-grey-5)" : "var(--ddk-generic-color-white)"};
@@ -2491,26 +2491,26 @@ const Ht = ["water", "carb", "ns", "nns"], xs = v.div`
2491
2491
  overflow-wrap: anywhere;
2492
2492
  padding: var(--ddk-component-macro-setup-card-header-padding-md);
2493
2493
  text-align: center;
2494
- `, Bs = v.div`
2494
+ `, Bs = y.div`
2495
2495
  align-items: center;
2496
2496
  display: flex;
2497
2497
  flex-direction: column;
2498
2498
  gap: 32px;
2499
2499
  height: 100%;
2500
2500
  justify-content: center;
2501
- `, Os = v.div`
2501
+ `, Os = y.div`
2502
2502
  color: var(--ddk-component-macro-card-unavailable-font-color);
2503
2503
  font-size: var(--ddk-component-macro-card-unavailable-font-size);
2504
2504
  font-weight: var(--ddk-component-macro-card-unavailable-font-weight);
2505
2505
  `, Yn = Zr(({ holder: e, onComplete: t, macroAssignment: n, showCloseButton: r = !0 }) => {
2506
- const { t: s } = S("setup"), { t: a } = S("common"), { componentModeOverride: c } = M(), [i, l] = P(e.ingredient), u = v.div`
2506
+ const { t: s } = S("setup"), { t: a } = S("common"), { componentModeOverride: c } = M(), [i, l] = P(e.ingredient), d = y.div`
2507
2507
  display: flex;
2508
2508
  flex-direction: column;
2509
2509
  gap: 24px;
2510
2510
  height: 100%;
2511
2511
  `;
2512
- return /* @__PURE__ */ g(u, { children: [
2513
- /* @__PURE__ */ o(W, { children: n.hasMacroIngredients ? /* @__PURE__ */ g(E, { children: [
2512
+ return /* @__PURE__ */ h(d, { children: [
2513
+ /* @__PURE__ */ o(W, { children: n.hasMacroIngredients ? /* @__PURE__ */ h(E, { children: [
2514
2514
  c === "standard" && /* @__PURE__ */ o(As, { children: s("select-and-assign-ingredients-for", {
2515
2515
  data: { name: a(`macros.${e.name}`) }
2516
2516
  }) }),
@@ -2525,13 +2525,13 @@ const Ht = ["water", "carb", "ns", "nns"], xs = v.div`
2525
2525
  },
2526
2526
  p.id
2527
2527
  )) }) })
2528
- ] }) : /* @__PURE__ */ g(Bs, { children: [
2528
+ ] }) : /* @__PURE__ */ h(Bs, { children: [
2529
2529
  /* @__PURE__ */ o(Ds, {}),
2530
2530
  /* @__PURE__ */ o(Os, { children: s("no-ingredients-available-for-assignment") })
2531
2531
  ] }) }),
2532
- /* @__PURE__ */ o(U, { children: n.hasMacroIngredients ? /* @__PURE__ */ g(E, { children: [
2532
+ /* @__PURE__ */ o(U, { children: n.hasMacroIngredients ? /* @__PURE__ */ h(E, { children: [
2533
2533
  c === "standard" && r && /* @__PURE__ */ o(
2534
- C,
2534
+ x,
2535
2535
  {
2536
2536
  onPointerDown: () => {
2537
2537
  t == null || t();
@@ -2540,7 +2540,7 @@ const Ht = ["water", "carb", "ns", "nns"], xs = v.div`
2540
2540
  }
2541
2541
  ),
2542
2542
  /* @__PURE__ */ o(
2543
- C,
2543
+ x,
2544
2544
  {
2545
2545
  mode: "primary",
2546
2546
  disabled: !i || i.id === e.ingredientId,
@@ -2551,7 +2551,7 @@ const Ht = ["water", "carb", "ns", "nns"], xs = v.div`
2551
2551
  }
2552
2552
  )
2553
2553
  ] }) : r !== !1 && /* @__PURE__ */ o(
2554
- C,
2554
+ x,
2555
2555
  {
2556
2556
  mode: "primary",
2557
2557
  onPointerDown: () => {
@@ -2561,7 +2561,7 @@ const Ht = ["water", "carb", "ns", "nns"], xs = v.div`
2561
2561
  }
2562
2562
  ) })
2563
2563
  ] });
2564
- }), $a = v.div`
2564
+ }), $a = y.div`
2565
2565
  display: flex;
2566
2566
  flex-direction: column;
2567
2567
  gap: 24px;
@@ -2579,7 +2579,7 @@ const Ht = ["water", "carb", "ns", "nns"], xs = v.div`
2579
2579
  const { t: n } = S("about"), r = Jo(), { componentModeOverride: s } = M(), a = (e == null ? void 0 : e.iceTypes.map((i) => ({ id: i, label: i }))) || [], c = A(async () => {
2580
2580
  (e == null ? void 0 : e.type.value) !== void 0 && (e == null || e.updateIceType(e.type.value));
2581
2581
  }, [e]);
2582
- return e ? /* @__PURE__ */ g(ye, { children: [
2582
+ return e ? /* @__PURE__ */ h(ye, { children: [
2583
2583
  t && /* @__PURE__ */ o(we, { children: n("ice-settings", "Ice Settings") }),
2584
2584
  s === "compact" ? /* @__PURE__ */ o(
2585
2585
  Or,
@@ -2619,7 +2619,7 @@ const Ht = ["water", "carb", "ns", "nns"], xs = v.div`
2619
2619
  label: n("agitate-without-ice", "Agitate after poured without ice") || void 0
2620
2620
  }
2621
2621
  ),
2622
- s !== "compact" && (r == null ? void 0 : r.pathname.includes("/settings")) && /* @__PURE__ */ o(U, { children: /* @__PURE__ */ o(C, { onPointerDown: c, children: n("reset") }) })
2622
+ s !== "compact" && (r == null ? void 0 : r.pathname.includes("/settings")) && /* @__PURE__ */ o(U, { children: /* @__PURE__ */ o(x, { onPointerDown: c, children: n("reset") }) })
2623
2623
  ] }) : "Ice model not loaded...";
2624
2624
  }
2625
2625
  ), Oa = I(({ cardModel: e }) => {
@@ -2630,31 +2630,31 @@ const Ht = ["water", "carb", "ns", "nns"], xs = v.div`
2630
2630
  },
2631
2631
  [e]
2632
2632
  ), r = e.isAgitating || e.isIceChuteOpen;
2633
- return /* @__PURE__ */ g(E, { children: [
2634
- /* @__PURE__ */ g(W, { children: [
2635
- /* @__PURE__ */ o(Jt, { name: "Ice Properties", children: /* @__PURE__ */ g(Vs, { children: [
2636
- /* @__PURE__ */ g(_t, { children: [
2637
- /* @__PURE__ */ g($e, { children: [
2633
+ return /* @__PURE__ */ h(E, { children: [
2634
+ /* @__PURE__ */ h(W, { children: [
2635
+ /* @__PURE__ */ o(Jt, { name: "Ice Properties", children: /* @__PURE__ */ h(Vs, { children: [
2636
+ /* @__PURE__ */ h(_t, { children: [
2637
+ /* @__PURE__ */ h($e, { children: [
2638
2638
  /* @__PURE__ */ o(Ee, { children: "Agitation Duration:" }),
2639
2639
  /* @__PURE__ */ o(me, { children: e.durationSec.displayValue })
2640
2640
  ] }),
2641
- /* @__PURE__ */ g($e, { children: [
2641
+ /* @__PURE__ */ h($e, { children: [
2642
2642
  /* @__PURE__ */ o(Ee, { children: "Ice Max Dispense:" }),
2643
2643
  /* @__PURE__ */ o(me, { children: e.maxDispenseSec.displayValue })
2644
2644
  ] }),
2645
- /* @__PURE__ */ g($e, { children: [
2645
+ /* @__PURE__ */ h($e, { children: [
2646
2646
  /* @__PURE__ */ o(Ee, { children: "Agitate After:" }),
2647
- /* @__PURE__ */ g(me, { children: [
2647
+ /* @__PURE__ */ h(me, { children: [
2648
2648
  e.inactivitySec.displayValue,
2649
2649
  " Inactive"
2650
2650
  ] }),
2651
- /* @__PURE__ */ g(me, { children: [
2651
+ /* @__PURE__ */ h(me, { children: [
2652
2652
  e.volWithoutIceMl.displayValue,
2653
2653
  " Poured without ice"
2654
2654
  ] })
2655
2655
  ] })
2656
2656
  ] }),
2657
- /* @__PURE__ */ o(_t, { children: /* @__PURE__ */ g($e, { children: [
2657
+ /* @__PURE__ */ o(_t, { children: /* @__PURE__ */ h($e, { children: [
2658
2658
  /* @__PURE__ */ o(Ee, { children: "Ice Type:" }),
2659
2659
  /* @__PURE__ */ o(me, { children: e.type.displayValue })
2660
2660
  ] }) })
@@ -2674,9 +2674,9 @@ const Ht = ["water", "carb", "ns", "nns"], xs = v.div`
2674
2674
  }
2675
2675
  )
2676
2676
  ] }),
2677
- /* @__PURE__ */ g(U, { children: [
2677
+ /* @__PURE__ */ h(U, { children: [
2678
2678
  /* @__PURE__ */ o(
2679
- C,
2679
+ x,
2680
2680
  {
2681
2681
  disabled: r,
2682
2682
  onPointerDown: () => n("agitate"),
@@ -2684,7 +2684,7 @@ const Ht = ["water", "carb", "ns", "nns"], xs = v.div`
2684
2684
  }
2685
2685
  ),
2686
2686
  /* @__PURE__ */ o(
2687
- C,
2687
+ x,
2688
2688
  {
2689
2689
  disabled: r,
2690
2690
  onPointerDown: () => n("gate"),
@@ -2692,7 +2692,7 @@ const Ht = ["water", "carb", "ns", "nns"], xs = v.div`
2692
2692
  }
2693
2693
  ),
2694
2694
  /* @__PURE__ */ o(
2695
- C,
2695
+ x,
2696
2696
  {
2697
2697
  disabled: r,
2698
2698
  onPointerUp: () => n("cancelPour"),
@@ -2716,7 +2716,7 @@ const Ht = ["water", "carb", "ns", "nns"], xs = v.div`
2716
2716
  }
2717
2717
  )
2718
2718
  ] });
2719
- }), Vs = v.div`
2719
+ }), Vs = y.div`
2720
2720
  display: flex;
2721
2721
  flex-direction: row;
2722
2722
  align-items: center;
@@ -2725,7 +2725,7 @@ const Ht = ["water", "carb", "ns", "nns"], xs = v.div`
2725
2725
  height: 100%;
2726
2726
  gap: 10px;
2727
2727
  padding-block: 16px;
2728
- `, _t = v.div`
2728
+ `, _t = y.div`
2729
2729
  display: flex;
2730
2730
  flex-direction: column;
2731
2731
  align-items: flex-start;
@@ -2735,32 +2735,32 @@ const Ht = ["water", "carb", "ns", "nns"], xs = v.div`
2735
2735
  padding-inline: 16px;
2736
2736
 
2737
2737
  gap: 10px;
2738
- `, $e = v.div`
2738
+ `, $e = y.div`
2739
2739
  display: flex;
2740
2740
  flex-direction: column;
2741
2741
  width: 100%;
2742
- `, me = v(wo)`
2742
+ `, me = y(wo)`
2743
2743
  color: var(--ddk-generic-color-grey-60);
2744
- `, Ns = v.div`
2744
+ `, Ns = y.div`
2745
2745
  font-size: var(--ddk-component-holder-card-footer-font-size);
2746
2746
  color: ${(e) => e.color ?? "var(--ddk-generic-color-black)"};
2747
2747
  `, Ra = I((e) => {
2748
2748
  N.debug(`summary component loaded for holder ${e}`), N.info(`render agitator summary for holder ${e.cardModel.path}`);
2749
2749
  const { t } = S("common");
2750
- return /* @__PURE__ */ g(E, { children: [
2750
+ return /* @__PURE__ */ h(E, { children: [
2751
2751
  /* @__PURE__ */ o(ve, { size: "small", status: "completed" }),
2752
2752
  e.cardModel.isAgitating && /* @__PURE__ */ o(Ns, { children: t("agitating") })
2753
2753
  ] });
2754
2754
  }), Va = I(({ showHeading: e }) => {
2755
- var l, u, p, d, h, m, f, w;
2755
+ var l, d, p, u, m, g, b, f;
2756
2756
  const { t } = S("region"), { model: n } = lt(), { regionModel: r } = X(), s = A(
2757
- (x) => ({
2758
- id: x,
2759
- label: t(`locale.country.${x}`)
2757
+ (C) => ({
2758
+ id: C,
2759
+ label: t(`locale.country.${C}`)
2760
2760
  }),
2761
2761
  [t]
2762
2762
  ), { selectedRegion: a, updateRegion: c, regionSelectProps: i } = X(s);
2763
- return /* @__PURE__ */ g(ye, { children: [
2763
+ return /* @__PURE__ */ h(ye, { children: [
2764
2764
  e && /* @__PURE__ */ o(we, { children: t("localization", "Localization") }),
2765
2765
  /* @__PURE__ */ o(
2766
2766
  qe,
@@ -2771,7 +2771,7 @@ const Ht = ["water", "carb", "ns", "nns"], xs = v.div`
2771
2771
  items: i.options,
2772
2772
  label: t("country", "Country"),
2773
2773
  loop: !1,
2774
- onSave: (x) => c(x),
2774
+ onSave: (C) => c(C),
2775
2775
  proceedButtonLabel: t("save", "Save") || void 0,
2776
2776
  selectedItemId: a
2777
2777
  }
@@ -2780,13 +2780,13 @@ const Ht = ["water", "carb", "ns", "nns"], xs = v.div`
2780
2780
  Be,
2781
2781
  {
2782
2782
  label: t("units-of-measurement", "Units of Measurement"),
2783
- options: (u = r == null ? void 0 : r.unitSystemOptions) == null ? void 0 : u.map((x) => ({
2784
- id: x.id,
2785
- label: `${t(`locale.unit.${x.id}`)}/${t(
2786
- `locale.units.${x.id}`
2783
+ options: (d = r == null ? void 0 : r.unitSystemOptions) == null ? void 0 : d.map((C) => ({
2784
+ id: C.id,
2785
+ label: `${t(`locale.unit.${C.id}`)}/${t(
2786
+ `locale.units.${C.id}`
2787
2787
  )}`
2788
2788
  })),
2789
- onChange: (x) => r == null ? void 0 : r.setSelectedUnitSystem(String(x)),
2789
+ onChange: (C) => r == null ? void 0 : r.setSelectedUnitSystem(String(C)),
2790
2790
  value: String(r == null ? void 0 : r.selectedUnitSystem).toLowerCase()
2791
2791
  }
2792
2792
  ),
@@ -2796,27 +2796,27 @@ const Ht = ["water", "carb", "ns", "nns"], xs = v.div`
2796
2796
  cancelButtonLabel: t("discard-changes", "Discard Changes") || void 0,
2797
2797
  closeButtonLabel: t("close", "Close") || void 0,
2798
2798
  displayValue: (p = n == null ? void 0 : n.ncuiLanguage) != null && p.displayValue ? t(
2799
- `locale-ncui-language.${(d = n == null ? void 0 : n.ncuiLanguage) == null ? void 0 : d.displayValue}`
2799
+ `locale-ncui-language.${(u = n == null ? void 0 : n.ncuiLanguage) == null ? void 0 : u.displayValue}`
2800
2800
  ) : void 0,
2801
- items: (f = (m = (h = n == null ? void 0 : n.ncuiLanguageData) == null ? void 0 : h.data) == null ? void 0 : m.languages) == null ? void 0 : f.map(
2802
- ({ locale: x, name: T }) => ({
2803
- id: x,
2801
+ items: (b = (g = (m = n == null ? void 0 : n.ncuiLanguageData) == null ? void 0 : m.data) == null ? void 0 : g.languages) == null ? void 0 : b.map(
2802
+ ({ locale: C, name: T }) => ({
2803
+ id: C,
2804
2804
  label: T
2805
2805
  })
2806
2806
  ),
2807
2807
  label: t("non-consumer-language", "Non-Consumer Language"),
2808
2808
  loop: !1,
2809
- onSave: (x) => {
2809
+ onSave: (C) => {
2810
2810
  var T;
2811
- return (T = n == null ? void 0 : n.ncuiLanguage) == null ? void 0 : T.updateProperty(x);
2811
+ return (T = n == null ? void 0 : n.ncuiLanguage) == null ? void 0 : T.updateProperty(C);
2812
2812
  },
2813
2813
  proceedButtonLabel: t("save", "Save") || void 0,
2814
- selectedItemId: (w = n == null ? void 0 : n.ncuiLanguage) == null ? void 0 : w.displayValue
2814
+ selectedItemId: (f = n == null ? void 0 : n.ncuiLanguage) == null ? void 0 : f.displayValue
2815
2815
  }
2816
2816
  )
2817
2817
  ] });
2818
2818
  });
2819
- v.div`
2819
+ y.div`
2820
2820
  display: flex;
2821
2821
  font-size: var(--ddk-generic-font-size-x-small);
2822
2822
  font-weight: normal;
@@ -2851,7 +2851,7 @@ v.div`
2851
2851
  justify-content: flex-end;
2852
2852
  }
2853
2853
  `;
2854
- const Ms = v.div`
2854
+ const Ms = y.div`
2855
2855
  display: flex;
2856
2856
  align-items: center;
2857
2857
  justify-content: flex-end;
@@ -2895,7 +2895,7 @@ const Ms = v.div`
2895
2895
  })) || [];
2896
2896
  }, Na = Jr(
2897
2897
  zs
2898
- ), _s = v.div`
2898
+ ), _s = y.div`
2899
2899
  background-color: var(--ddk-generic-color-grey-80);
2900
2900
  color: var(--ddk-generic-color-grey-5);
2901
2901
  border-radius: 5px;
@@ -2905,31 +2905,31 @@ const Ms = v.div`
2905
2905
  justify-content: center;
2906
2906
  font-size: var(--ddk-generic-font-size-xx-small);
2907
2907
  `, Us = I(({ showAction: e = !0, trouble: t, showHolder: n }) => {
2908
- var x;
2909
- const { t: r } = S(["troubles"]), { model: s } = ut(), a = s == null ? void 0 : s.currentRole, c = dt(t), { action: i, label: l, progress: u } = Ue(t), p = t.resolvable ?? !1, { future: d } = J(t), h = (x = t == null ? void 0 : t.data) != null && x.holderNames && t.data.holderNames.length > 0 ? /* @__PURE__ */ o(_s, { children: t.data.holderNames[0] }) : null, m = (t == null ? void 0 : t.color) ?? "orange", f = (t == null ? void 0 : t.shouldDefer) ?? !1, w = (t == null ? void 0 : t.deferred) ?? !1;
2910
- return /* @__PURE__ */ g(E, { children: [
2908
+ var C;
2909
+ const { t: r } = S(["troubles"]), { model: s } = ut(), a = s == null ? void 0 : s.currentRole, c = dt(t), { action: i, label: l, progress: d } = Ue(t), p = t.resolvable ?? !1, { future: u } = J(t), m = (C = t == null ? void 0 : t.data) != null && C.holderNames && t.data.holderNames.length > 0 ? /* @__PURE__ */ o(_s, { children: t.data.holderNames[0] }) : null, g = (t == null ? void 0 : t.color) ?? "orange", b = (t == null ? void 0 : t.shouldDefer) ?? !1, f = (t == null ? void 0 : t.deferred) ?? !1;
2910
+ return /* @__PURE__ */ h(E, { children: [
2911
2911
  /* @__PURE__ */ o(
2912
2912
  xo,
2913
2913
  {
2914
2914
  label: r(l, { context: a == null ? void 0 : a.toLowerCase(), data: c }),
2915
- indicatorColor: m,
2916
- buttonLabel: e ? w ? "Queued" : f ? "Queue" : r(i, { context: a, defaultValue: "" }) : void 0,
2915
+ indicatorColor: g,
2916
+ buttonLabel: e ? f ? "Queued" : b ? "Queue" : r(i, { context: a, defaultValue: "" }) : void 0,
2917
2917
  date: t.createTime,
2918
- prefix: n ? h : void 0,
2919
- onAction: e && p && !w ? () => {
2918
+ prefix: n ? m : void 0,
2919
+ onAction: e && p && !f ? () => {
2920
2920
  t.resolve();
2921
2921
  } : void 0
2922
2922
  }
2923
2923
  ),
2924
- d && /* @__PURE__ */ o(
2924
+ u && /* @__PURE__ */ o(
2925
2925
  z,
2926
2926
  {
2927
- title: r(u, { context: a }),
2928
- future: w ? void 0 : d,
2927
+ title: r(d, { context: a }),
2928
+ future: f ? void 0 : u,
2929
2929
  failureMessage: r(`troubles.${t.type}.error`, {
2930
- context: d != null && d.reason ? "reason" : void 0,
2930
+ context: u != null && u.reason ? "reason" : void 0,
2931
2931
  data: {
2932
- reason: d != null && d.reason ? `__troubles.errors.${d == null ? void 0 : d.reason}__` : void 0
2932
+ reason: u != null && u.reason ? `__troubles.errors.${u == null ? void 0 : u.reason}__` : void 0
2933
2933
  }
2934
2934
  })
2935
2935
  }
@@ -2941,62 +2941,62 @@ const Ms = v.div`
2941
2941
  tabs: n,
2942
2942
  ...r
2943
2943
  }) => {
2944
- const { getExtensions: s } = rt(), a = s(e), c = s(t).reduce((d, h) => (d[h.id] = h, d), {}), i = a.map((d) => d.data.namespace), { t: l } = S(["", ...new Set(i)]), u = a.map((d) => {
2945
- const h = [...d.data.settings].map((m) => {
2946
- const f = c[m];
2947
- return /* @__PURE__ */ g(ye, { children: [
2948
- /* @__PURE__ */ o(we, { children: l(`${f.data.namespace}:${f.data.title}`) }),
2944
+ const { getExtensions: s } = rt(), a = s(e), c = s(t).reduce((u, m) => (u[m.id] = m, u), {}), i = a.map((u) => u.data.namespace), { t: l } = S(["", ...new Set(i)]), d = a.map((u) => {
2945
+ const m = [...u.data.settings].map((g) => {
2946
+ const b = c[g];
2947
+ return /* @__PURE__ */ h(ye, { children: [
2948
+ /* @__PURE__ */ o(we, { children: l(`${b.data.namespace}:${b.data.title}`) }),
2949
2949
  /* @__PURE__ */ o(
2950
2950
  Me,
2951
2951
  {
2952
2952
  extension: t,
2953
- module: m
2953
+ module: g
2954
2954
  }
2955
2955
  )
2956
- ] }, f.id);
2956
+ ] }, b.id);
2957
2957
  });
2958
2958
  return {
2959
- id: d.id,
2960
- label: l(`${d.data.namespace}:${d.data.title}`),
2961
- content: /* @__PURE__ */ o(Po, { children: h })
2959
+ id: u.id,
2960
+ label: l(`${u.data.namespace}:${u.data.title}`),
2961
+ content: /* @__PURE__ */ o(Po, { children: m })
2962
2962
  };
2963
- }), p = [...n, ...u];
2963
+ }), p = [...n, ...d];
2964
2964
  return /* @__PURE__ */ o(So, { ...r, tabs: p });
2965
2965
  }, pt = I(
2966
2966
  ({ holder: e }) => {
2967
- const { t } = S("common"), { componentModeOverride: n } = M(), r = n === "compact", { visibleTroubles: s, initialized: a } = xe(e), i = ((s == null ? void 0 : s.length) ?? 0) > 0, l = !!e.troublesByType.FlushTrouble, u = !!e.troublesByType.PrimeTrouble, p = !!e.troublesByType.PurgeTrouble, d = l ? e.troublesByType.FlushTrouble[0] : u ? e.troublesByType.PrimeTrouble[0] : p ? e.troublesByType.PurgeTrouble[0] : null, h = (d == null ? void 0 : d.shouldDefer) ?? !1, m = (d == null ? void 0 : d.deferred) ?? !1, [f, w] = He(e), x = A(
2967
+ const { t } = S("common"), { componentModeOverride: n } = M(), r = n === "compact", { visibleTroubles: s, initialized: a } = xe(e), i = ((s == null ? void 0 : s.length) ?? 0) > 0, l = !!e.troublesByType.FlushTrouble, d = !!e.troublesByType.PrimeTrouble, p = !!e.troublesByType.PurgeTrouble, u = l ? e.troublesByType.FlushTrouble[0] : d ? e.troublesByType.PrimeTrouble[0] : p ? e.troublesByType.PurgeTrouble[0] : null, m = (u == null ? void 0 : u.shouldDefer) ?? !1, g = (u == null ? void 0 : u.deferred) ?? !1, [b, f] = He(e), C = A(
2968
2968
  (T) => {
2969
- h ? d == null || d.resolve() : w(T);
2969
+ m ? u == null || u.resolve() : f(T);
2970
2970
  },
2971
- [w, h, d]
2971
+ [f, m, u]
2972
2972
  );
2973
- return i && a && r ? /* @__PURE__ */ g(E, { children: [
2973
+ return i && a && r ? /* @__PURE__ */ h(E, { children: [
2974
2974
  l ? /* @__PURE__ */ o(
2975
- C,
2975
+ x,
2976
2976
  {
2977
- disabled: m,
2977
+ disabled: g,
2978
2978
  mode: "primary",
2979
- onPointerDown: () => x("flush"),
2980
- children: t("flush", { context: m ? "queued" : "" })
2979
+ onPointerDown: () => C("flush"),
2980
+ children: t("flush", { context: g ? "queued" : "" })
2981
2981
  }
2982
2982
  ) : p ? /* @__PURE__ */ o(
2983
- C,
2983
+ x,
2984
2984
  {
2985
- disabled: m,
2985
+ disabled: g,
2986
2986
  mode: "primary",
2987
- onPointerDown: () => x("purge"),
2988
- children: t("purge", { context: m ? "queued" : "" })
2987
+ onPointerDown: () => C("purge"),
2988
+ children: t("purge", { context: g ? "queued" : "" })
2989
2989
  }
2990
- ) : u ? /* @__PURE__ */ o(
2991
- C,
2990
+ ) : d ? /* @__PURE__ */ o(
2991
+ x,
2992
2992
  {
2993
- disabled: m,
2993
+ disabled: g,
2994
2994
  mode: "primary",
2995
- onPointerDown: () => x("prime"),
2996
- children: t("prime", { context: m ? "queued" : "" })
2995
+ onPointerDown: () => C("prime"),
2996
+ children: t("prime", { context: g ? "queued" : "" })
2997
2997
  }
2998
2998
  ) : null,
2999
- f && /* @__PURE__ */ o(z, { ...f })
2999
+ b && /* @__PURE__ */ o(z, { ...b })
3000
3000
  ] }) : null;
3001
3001
  }
3002
3002
  ), re = ({
@@ -3004,32 +3004,32 @@ const Ms = v.div`
3004
3004
  filter: t
3005
3005
  }) => {
3006
3006
  const { componentModeOverride: n } = M(), r = n === "standard", { visibleTroubles: s, initialized: a } = xe(e), c = t ? s == null ? void 0 : s.filter(t) : s;
3007
- return ((c == null ? void 0 : c.length) ?? 0) > 0 && a && (s == null ? void 0 : s.map((u) => /* @__PURE__ */ o(
3007
+ return ((c == null ? void 0 : c.length) ?? 0) > 0 && a && (s == null ? void 0 : s.map((d) => /* @__PURE__ */ o(
3008
3008
  Us,
3009
3009
  {
3010
3010
  showAction: r,
3011
- trouble: u
3011
+ trouble: d
3012
3012
  },
3013
- u.id
3013
+ d.id
3014
3014
  )));
3015
3015
  }, Ha = I(
3016
3016
  ({ holder: e }) => {
3017
3017
  const { t } = S("common"), [n, r] = He(e), [s, a] = P();
3018
3018
  O(() => {
3019
- async function h() {
3019
+ async function m() {
3020
3020
  if (e.ingredientId !== void 0) {
3021
- const m = await e.resolveIntentVolume("CALIBRATE");
3022
- a(Math.round(m.volume));
3021
+ const g = await e.resolveIntentVolume("CALIBRATE");
3022
+ a(Math.round(g.volume));
3023
3023
  }
3024
3024
  }
3025
- h();
3025
+ m();
3026
3026
  }, [e, e.ingredientId]);
3027
- const c = e.ingredientId !== void 0, i = s && s > 0, { holderExperience: l, setHolderExperience: u, currentExperienceId: p } = _e(e);
3028
- return c || p === "replace-line" ? /* @__PURE__ */ g(E, { children: [
3027
+ const c = e.ingredientId !== void 0, i = s && s > 0, { holderExperience: l, setHolderExperience: d, currentExperienceId: p } = _e(e);
3028
+ return c || p === "replace-line" ? /* @__PURE__ */ h(E, { children: [
3029
3029
  /* @__PURE__ */ o(W, { contain: !0, children: /* @__PURE__ */ o(re, { holder: e }) }),
3030
- /* @__PURE__ */ g(U, { children: [
3030
+ /* @__PURE__ */ h(U, { children: [
3031
3031
  /* @__PURE__ */ o(
3032
- C,
3032
+ x,
3033
3033
  {
3034
3034
  disabled: !i,
3035
3035
  onPointerDown: () => r("calibrate"),
@@ -3040,7 +3040,7 @@ const Ms = v.div`
3040
3040
  }) : t("calibrate")
3041
3041
  }
3042
3042
  ),
3043
- /* @__PURE__ */ o(C, { onPointerDown: () => u("replace-line"), children: t("replace-line") }),
3043
+ /* @__PURE__ */ o(x, { onPointerDown: () => d("replace-line"), children: t("replace-line") }),
3044
3044
  /* @__PURE__ */ o(Ce, { disabled: !c, model: e }),
3045
3045
  /* @__PURE__ */ o(pt, { holder: e })
3046
3046
  ] }),
@@ -3054,18 +3054,18 @@ const Ms = v.div`
3054
3054
  O(() => {
3055
3055
  async function l() {
3056
3056
  if (e.ingredientId !== void 0) {
3057
- const u = await e.resolveIntentVolume("CALIBRATE");
3058
- a(Math.round(u.volume));
3057
+ const d = await e.resolveIntentVolume("CALIBRATE");
3058
+ a(Math.round(d.volume));
3059
3059
  }
3060
3060
  }
3061
3061
  l();
3062
3062
  }, [e, e.ingredientId]);
3063
3063
  const c = e.ingredientId !== void 0, i = s && s > 0;
3064
- return c ? /* @__PURE__ */ g(E, { children: [
3064
+ return c ? /* @__PURE__ */ h(E, { children: [
3065
3065
  /* @__PURE__ */ o(W, { contain: !0, children: /* @__PURE__ */ o(re, { holder: e }) }),
3066
- /* @__PURE__ */ g(U, { children: [
3066
+ /* @__PURE__ */ h(U, { children: [
3067
3067
  /* @__PURE__ */ o(
3068
- C,
3068
+ x,
3069
3069
  {
3070
3070
  disabled: !i,
3071
3071
  onPointerDown: () => r("calibrate"),
@@ -3082,11 +3082,11 @@ const Ms = v.div`
3082
3082
  n && /* @__PURE__ */ o(z, { ...n })
3083
3083
  ] }) : /* @__PURE__ */ o(Yn, { showCloseButton: !1, holder: e });
3084
3084
  }
3085
- ), Ks = v.div`
3085
+ ), Ks = y.div`
3086
3086
  display: flex;
3087
3087
  flex-direction: column;
3088
3088
  gap: var(--ddk-component-super-pump-container-gap);
3089
- `, js = v.div`
3089
+ `, js = y.div`
3090
3090
  display: flex;
3091
3091
  flex-direction: column;
3092
3092
  gap: var(--ddk-component-cartridge-container-gap);
@@ -3094,24 +3094,24 @@ const Ms = v.div`
3094
3094
  const t = qo(), { t: n } = S("common"), [r, s] = P("all"), a = t == null ? void 0 : t.cartridgeAgitatorModels[0], c = !!e.ingredientId, i = e.pumps.getModel(r), l = Z(
3095
3095
  e,
3096
3096
  on.type
3097
- ), u = !!(l != null && l.agitated), { holderExperience: p, setHolderExperience: d } = _e(
3097
+ ), d = !!(l != null && l.agitated), { holderExperience: p, setHolderExperience: u } = _e(
3098
3098
  e,
3099
3099
  i
3100
- ), h = A((T) => {
3100
+ ), m = A((T) => {
3101
3101
  s(T.id);
3102
- }, []), m = e.hasFuelGuage, f = e.fillPercent, { future: w } = J(a), x = A(
3102
+ }, []), g = e.hasFuelGuage, b = e.fillPercent, { future: f } = J(a), C = A(
3103
3103
  (T) => T.data.pumpPath === (i == null ? void 0 : i.path),
3104
3104
  [i == null ? void 0 : i.path]
3105
3105
  );
3106
- return /* @__PURE__ */ g(E, { children: [
3107
- /* @__PURE__ */ g(Ks, { children: [
3108
- /* @__PURE__ */ g(W, { contain: !0, children: [
3109
- c && m && /* @__PURE__ */ g(js, { children: [
3106
+ return /* @__PURE__ */ h(E, { children: [
3107
+ /* @__PURE__ */ h(Ks, { children: [
3108
+ /* @__PURE__ */ h(W, { contain: !0, children: [
3109
+ c && g && /* @__PURE__ */ h(js, { children: [
3110
3110
  /* @__PURE__ */ o(
3111
3111
  Qt,
3112
3112
  {
3113
3113
  size: "large",
3114
- value: f,
3114
+ value: b,
3115
3115
  showBarsOverride: !0
3116
3116
  }
3117
3117
  ),
@@ -3135,41 +3135,49 @@ const Ms = v.div`
3135
3135
  re,
3136
3136
  {
3137
3137
  holder: T,
3138
- filter: x
3138
+ filter: C
3139
3139
  }
3140
3140
  )
3141
3141
  }))
3142
3142
  ],
3143
- onChange: h,
3143
+ onChange: m,
3144
3144
  showBackground: !1
3145
3145
  }
3146
3146
  )
3147
3147
  ] }),
3148
- /* @__PURE__ */ g(U, { children: [
3149
- i ? /* @__PURE__ */ o(C, { onPointerDown: () => d("replace-pump"), children: n("replace-pump") }) : /* @__PURE__ */ g(E, { children: [
3150
- !c && /* @__PURE__ */ o(
3151
- C,
3148
+ /* @__PURE__ */ h(U, { children: [
3149
+ i ? /* @__PURE__ */ h(E, { children: [
3150
+ /* @__PURE__ */ o(
3151
+ x,
3152
3152
  {
3153
- onPointerDown: () => d("rfid-override"),
3154
- children: n("rfid-override")
3153
+ onPointerDown: () => u("replace-pump"),
3154
+ children: n("replace-pump")
3155
3155
  }
3156
3156
  ),
3157
3157
  /* @__PURE__ */ o(
3158
- C,
3158
+ x,
3159
3159
  {
3160
- onPointerDown: () => d("replace-line"),
3161
- children: n("replace-line")
3160
+ onPointerDown: () => u("calibrateSPM"),
3161
+ children: n("calibrate")
3162
+ }
3163
+ )
3164
+ ] }) : /* @__PURE__ */ h(E, { children: [
3165
+ !c && /* @__PURE__ */ o(
3166
+ x,
3167
+ {
3168
+ onPointerDown: () => u("rfid-override"),
3169
+ children: n("rfid-override")
3162
3170
  }
3163
3171
  ),
3164
3172
  /* @__PURE__ */ o(
3165
- C,
3173
+ x,
3166
3174
  {
3167
- onPointerDown: () => d("calibrateSPM"),
3168
- children: n("calibrate")
3175
+ onPointerDown: () => u("replace-line"),
3176
+ children: n("replace-line")
3169
3177
  }
3170
3178
  ),
3171
- u && /* @__PURE__ */ o(
3172
- C,
3179
+ d && /* @__PURE__ */ o(
3180
+ x,
3173
3181
  {
3174
3182
  onPointerDown: () => a == null ? void 0 : a.testAgitate(),
3175
3183
  children: n("agitate")
@@ -3186,12 +3194,12 @@ const Ms = v.div`
3186
3194
  ] })
3187
3195
  ] }),
3188
3196
  /* @__PURE__ */ o(Ne, { children: p }),
3189
- w && /* @__PURE__ */ o(z, { title: n("agitating"), future: w })
3197
+ f && /* @__PURE__ */ o(z, { title: n("agitating"), future: f })
3190
3198
  ] });
3191
3199
  }), _a = I(
3192
- ({ holder: e }) => /* @__PURE__ */ g(E, { children: [
3200
+ ({ holder: e }) => /* @__PURE__ */ h(E, { children: [
3193
3201
  /* @__PURE__ */ o(re, { holder: e }),
3194
- /* @__PURE__ */ g(U, { children: [
3202
+ /* @__PURE__ */ h(U, { children: [
3195
3203
  /* @__PURE__ */ o(Ce, { model: e }),
3196
3204
  /* @__PURE__ */ o(pt, { holder: e })
3197
3205
  ] })
@@ -3199,40 +3207,40 @@ const Ms = v.div`
3199
3207
  ), Ua = I(
3200
3208
  ({ holder: e }) => {
3201
3209
  const { t } = S("common"), [n, r] = He(e), { holderExperience: s, setHolderExperience: a } = _e(e);
3202
- return /* @__PURE__ */ g(E, { children: [
3210
+ return /* @__PURE__ */ h(E, { children: [
3203
3211
  /* @__PURE__ */ o(re, { holder: e }),
3204
- /* @__PURE__ */ g(U, { children: [
3212
+ /* @__PURE__ */ h(U, { children: [
3205
3213
  /* @__PURE__ */ o(Ce, { model: e }),
3206
- /* @__PURE__ */ o(C, { onPointerDown: () => r("high-flow-test"), children: t("high-flow-test") }),
3207
- /* @__PURE__ */ o(C, { onPointerDown: () => r("low-flow-test"), children: t("low-flow-test") }),
3208
- /* @__PURE__ */ o(C, { onPointerDown: () => a("diagnostics"), children: t("diagnostics") }),
3209
- /* @__PURE__ */ o(C, { onPointerDown: () => a("calibrate"), children: t("calibrate") })
3214
+ /* @__PURE__ */ o(x, { onPointerDown: () => r("high-flow-test"), children: t("high-flow-test") }),
3215
+ /* @__PURE__ */ o(x, { onPointerDown: () => r("low-flow-test"), children: t("low-flow-test") }),
3216
+ /* @__PURE__ */ o(x, { onPointerDown: () => a("diagnostics"), children: t("diagnostics") }),
3217
+ /* @__PURE__ */ o(x, { onPointerDown: () => a("calibrate"), children: t("calibrate") })
3210
3218
  ] }),
3211
3219
  /* @__PURE__ */ o(Ne, { children: s }),
3212
3220
  n && /* @__PURE__ */ o(z, { ...n })
3213
3221
  ] });
3214
3222
  }
3215
- ), Gs = v.section`
3223
+ ), Gs = y.section`
3216
3224
  align-items: center;
3217
3225
  display: flex;
3218
3226
  flex-direction: column;
3219
3227
  gap: 32px;
3220
3228
  height: 100%;
3221
3229
  justify-content: space-between;
3222
- `, Xs = v.div`
3230
+ `, Xs = y.div`
3223
3231
  display: flex;
3224
3232
  gap: 32px;
3225
3233
  flex-direction: column;
3226
3234
  align-items: center;
3227
3235
  padding: 32px;
3228
- `, Ys = v.div`
3236
+ `, Ys = y.div`
3229
3237
  display: flex;
3230
3238
  flex-direction: column;
3231
3239
  gap: 12px;
3232
3240
  text-align: center;
3233
3241
  `, Ka = ({ onComplete: e }) => {
3234
3242
  const { t } = S("reboot"), [n, r] = P(!1), { model: s } = ct(), { componentModeOverride: a } = M();
3235
- return /* @__PURE__ */ g(
3243
+ return /* @__PURE__ */ h(
3236
3244
  ie,
3237
3245
  {
3238
3246
  show: !n,
@@ -3249,8 +3257,8 @@ const Ms = v.div`
3249
3257
  CloseButton: To
3250
3258
  }
3251
3259
  ),
3252
- /* @__PURE__ */ g(Gs, { children: [
3253
- /* @__PURE__ */ g(Xs, { children: [
3260
+ /* @__PURE__ */ h(Gs, { children: [
3261
+ /* @__PURE__ */ h(Xs, { children: [
3254
3262
  /* @__PURE__ */ o(Io, {}),
3255
3263
  /* @__PURE__ */ o(Ys, { children: /* @__PURE__ */ o(Zt, { children: t("modal-heading", "Are you sure you want to reboot dispenser?") }) })
3256
3264
  ] }),
@@ -3267,64 +3275,64 @@ const Ms = v.div`
3267
3275
  ]
3268
3276
  }
3269
3277
  );
3270
- }, ge = v(F)`
3278
+ }, ge = y(F)`
3271
3279
  text-align: center;
3272
3280
  `, ja = I(
3273
3281
  ({ remoteTray: e, onComplete: t }) => {
3274
- const { t: n } = S("common", { keyPrefix: "remote-nns" }), [r, s] = P("idle"), [a, c] = P({}), [i, l] = P({}), p = e.holder.pumps.data.filter((D) => D.childPump), d = e.remoteTrayEnabled.value === !0, h = () => p.every((D) => {
3282
+ const { t: n } = S("common", { keyPrefix: "remote-nns" }), [r, s] = P("idle"), [a, c] = P({}), [i, l] = P({}), p = e.holder.pumps.data.filter((D) => D.childPump), u = e.remoteTrayEnabled.value === !0, m = () => p.every((D) => {
3275
3283
  const k = a[D.name];
3276
3284
  return k != null && k !== "";
3277
- }), m = A((D, k) => {
3278
- c((y) => ({ ...y, [D]: k }));
3279
- }, []), f = A(
3285
+ }), g = A((D, k) => {
3286
+ c((w) => ({ ...w, [D]: k }));
3287
+ }, []), b = A(
3280
3288
  (D) => (k = "") => {
3281
- m(D, k);
3289
+ g(D, k);
3282
3290
  },
3283
- [m]
3284
- ), w = A(async () => {
3285
- e.remoteTrayEnabled.updateProperty(!d), s(d ? "disableSuccess" : "success");
3286
- }, [d, e.remoteTrayEnabled]), x = A(async () => {
3291
+ [g]
3292
+ ), f = A(async () => {
3293
+ e.remoteTrayEnabled.updateProperty(!u), s(u ? "disableSuccess" : "success");
3294
+ }, [u, e.remoteTrayEnabled]), C = A(async () => {
3287
3295
  s("progress"), l({});
3288
3296
  let D = !1;
3289
3297
  await Promise.all(
3290
3298
  p.map(async (k) => {
3291
3299
  try {
3292
- const y = Z(
3300
+ const w = Z(
3293
3301
  k,
3294
3302
  rn.type
3295
- ), [b] = await y.replacePump(
3303
+ ), [v] = await w.replacePump(
3296
3304
  a[k.name]
3297
3305
  );
3298
- b && (l((H) => ({ ...H, [k.name]: b })), D = !0);
3299
- } catch (y) {
3300
- console.error(y), l((b) => ({ ...b, [k.name]: "unknownError" })), D = !0;
3306
+ v && (l((H) => ({ ...H, [k.name]: v })), D = !0);
3307
+ } catch (w) {
3308
+ console.error(w), l((v) => ({ ...v, [k.name]: "unknownError" })), D = !0;
3301
3309
  }
3302
3310
  })
3303
- ), D ? s("pump") : w();
3311
+ ), D ? s("pump") : f();
3304
3312
  }, [
3305
- d,
3313
+ u,
3306
3314
  a,
3307
3315
  p,
3308
3316
  e.remoteTrayEnabled,
3309
- w
3317
+ f
3310
3318
  ]), T = L(() => ({
3311
3319
  idle: {
3312
- title: n(d ? "disable-title" : "idle-title"),
3313
- information: /* @__PURE__ */ o(ge, { children: n(d ? "disable-info" : "idle-info") }),
3320
+ title: n(u ? "disable-title" : "idle-title"),
3321
+ information: /* @__PURE__ */ o(ge, { children: n(u ? "disable-info" : "idle-info") }),
3314
3322
  footer: /* @__PURE__ */ o(
3315
- C,
3323
+ x,
3316
3324
  {
3317
3325
  onPointerDown: () => {
3318
- d ? w() : s("pump");
3326
+ u ? f() : s("pump");
3319
3327
  },
3320
- children: n(d ? "disable" : "enable")
3328
+ children: n(u ? "disable" : "enable")
3321
3329
  }
3322
3330
  ),
3323
3331
  status: "information"
3324
3332
  },
3325
3333
  pump: {
3326
3334
  title: n("pump-title"),
3327
- information: /* @__PURE__ */ g(E, { children: [
3335
+ information: /* @__PURE__ */ h(E, { children: [
3328
3336
  /* @__PURE__ */ o(ge, { children: n("pump-info") }),
3329
3337
  p.map((D) => /* @__PURE__ */ o(
3330
3338
  Qe,
@@ -3333,14 +3341,14 @@ const Ms = v.div`
3333
3341
  description: i[D.name] ? n(`errors.${i[D.name]}`) : "",
3334
3342
  value: a[D.name] ?? "",
3335
3343
  label: n(`pumps.${D.name}`),
3336
- onChange: f(D.name)
3344
+ onChange: b(D.name)
3337
3345
  },
3338
3346
  D.name
3339
3347
  ))
3340
3348
  ] }),
3341
- footer: /* @__PURE__ */ g(E, { children: [
3342
- /* @__PURE__ */ o(C, { disabled: !h(), onPointerDown: x, children: n("enter") }),
3343
- /* @__PURE__ */ o(C, { onPointerDown: t, children: n("cancel") })
3349
+ footer: /* @__PURE__ */ h(E, { children: [
3350
+ /* @__PURE__ */ o(x, { disabled: !m(), onPointerDown: C, children: n("enter") }),
3351
+ /* @__PURE__ */ o(x, { onPointerDown: t, children: n("cancel") })
3344
3352
  ] })
3345
3353
  },
3346
3354
  progress: {
@@ -3359,18 +3367,18 @@ const Ms = v.div`
3359
3367
  status: "success"
3360
3368
  }
3361
3369
  }), [
3362
- m,
3363
- d,
3370
+ g,
3371
+ u,
3364
3372
  t,
3365
3373
  a,
3366
3374
  i,
3367
3375
  p,
3368
- x,
3376
+ C,
3369
3377
  n
3370
3378
  ]);
3371
3379
  return /* @__PURE__ */ o(Ve, { ...T[r], onClose: () => t() });
3372
3380
  }
3373
- ), Wa = I(({ cardModel: e }) => (N.debug("RemoteTray", e.name), /* @__PURE__ */ o(Ws, { holder: e.holder }))), qs = v.div`
3381
+ ), Wa = I(({ cardModel: e }) => (N.debug("RemoteTray", e.name), /* @__PURE__ */ o(Ws, { holder: e.holder }))), qs = y.div`
3374
3382
  font-size: var(--ddk-component-holder-card-footer-font-size);
3375
3383
  color: ${(e) => e.color ?? "var(--ddk-generic-color-black)"};
3376
3384
  position: absolute;
@@ -3397,7 +3405,7 @@ const Ms = v.div`
3397
3405
  t();
3398
3406
  }, children: r === "failure" ? /* @__PURE__ */ o(Oe, { children: n(a || "unknownError") }) : r === "success" ? /* @__PURE__ */ o(st, { children: n("success") }) : null });
3399
3407
  }
3400
- ), Zs = v.div`
3408
+ ), Zs = y.div`
3401
3409
  display: flex;
3402
3410
  flex-direction: column;
3403
3411
  overflow-y: auto;
@@ -3406,42 +3414,42 @@ const Ms = v.div`
3406
3414
  height: 100%;
3407
3415
  `, Js = I(
3408
3416
  ({ pump: e, onComplete: t }) => {
3409
- const [n, r] = P(!1), { t: s } = S("replace-pump"), { componentModeOverride: a } = M(), [c, i] = P(), [l, u] = P(), [p, d] = P(), h = Z(
3417
+ const [n, r] = P(!1), { t: s } = S("replace-pump"), { componentModeOverride: a } = M(), [c, i] = P(), [l, d] = P(), [p, u] = P(), m = Z(
3410
3418
  e,
3411
3419
  rn.type
3412
- ), m = e.name, f = A(
3420
+ ), g = e.name, b = A(
3413
3421
  (T) => {
3414
3422
  if (T !== void 0 && T.length === 0)
3415
3423
  return s("pump-calibration-length-error");
3416
3424
  },
3417
3425
  [s]
3418
- ), w = A(async () => {
3426
+ ), f = A(async () => {
3419
3427
  if (c === void 0)
3420
3428
  return;
3421
- const [T] = await h.replacePump(c);
3422
- T ? (u("failure"), d(T)) : u("success");
3423
- }, [h, c]), x = () => {
3429
+ const [T] = await m.replacePump(c);
3430
+ T ? (d("failure"), u(T)) : d("success");
3431
+ }, [m, c]), C = () => {
3424
3432
  if (p) {
3425
- u(void 0);
3433
+ d(void 0);
3426
3434
  return;
3427
3435
  }
3428
3436
  r(!0);
3429
3437
  };
3430
- return /* @__PURE__ */ g(E, { children: [
3438
+ return /* @__PURE__ */ h(E, { children: [
3431
3439
  /* @__PURE__ */ o(
3432
3440
  ie,
3433
3441
  {
3434
3442
  contain: a !== "compact",
3435
3443
  onClosed: t,
3436
3444
  show: !n,
3437
- children: /* @__PURE__ */ g(Zs, { children: [
3445
+ children: /* @__PURE__ */ h(Zs, { children: [
3438
3446
  /* @__PURE__ */ o(
3439
3447
  ae,
3440
3448
  {
3441
3449
  contain: a === "compact",
3442
3450
  showCloseButton: !0,
3443
- title: m ? s("label-replace-pump", {
3444
- label: m
3451
+ title: g ? s("label-replace-pump", {
3452
+ label: g
3445
3453
  }) : s("replace-pump"),
3446
3454
  showOpenButton: !1,
3447
3455
  onClose: () => r(!0),
@@ -3451,31 +3459,31 @@ const Ms = v.div`
3451
3459
  /* @__PURE__ */ o(W, { align: "top", children: /* @__PURE__ */ o(
3452
3460
  oe,
3453
3461
  {
3454
- isValid: f,
3462
+ isValid: b,
3455
3463
  label: s("enter-pump-calibration-code"),
3456
3464
  layout: "hex",
3457
3465
  value: c,
3458
3466
  onChange: (T) => {
3459
- d(void 0), i(T);
3467
+ u(void 0), i(T);
3460
3468
  }
3461
3469
  }
3462
3470
  ) }),
3463
3471
  /* @__PURE__ */ o(U, { children: /* @__PURE__ */ o(
3464
- C,
3472
+ x,
3465
3473
  {
3466
3474
  mode: "primary",
3467
3475
  disabled: !c || !!p,
3468
- onPointerDown: w,
3476
+ onPointerDown: f,
3469
3477
  children: s("replace-pump")
3470
3478
  }
3471
3479
  ) })
3472
3480
  ] })
3473
3481
  }
3474
3482
  ),
3475
- /* @__PURE__ */ o(en, { show: l !== void 0, onClose: x, children: l === "failure" ? /* @__PURE__ */ o(Oe, { children: s(p || "unknownError") }) : l === "success" ? /* @__PURE__ */ o(st, { children: s("success") }) : null })
3483
+ /* @__PURE__ */ o(en, { show: l !== void 0, onClose: C, children: l === "failure" ? /* @__PURE__ */ o(Oe, { children: s(p || "unknownError") }) : l === "success" ? /* @__PURE__ */ o(st, { children: s("success") }) : null })
3476
3484
  ] });
3477
3485
  }
3478
- ), ei = /^[0-9a-fA-F]+$/, Ut = (e) => ei.test(e), ti = v.div`
3486
+ ), ei = /^[0-9a-fA-F]+$/, Ut = (e) => ei.test(e), ti = y.div`
3479
3487
  display: flex;
3480
3488
  flex-direction: column;
3481
3489
  overflow-y: auto;
@@ -3483,40 +3491,40 @@ const Ms = v.div`
3483
3491
  height: 100%;
3484
3492
  `, ni = I(
3485
3493
  ({ holder: e, onComplete: t }) => {
3486
- const n = e.name, [r, s] = P(!1), { t: a } = S("rfid-override"), { componentModeOverride: c } = M(), [i, l] = P(), [u, p] = P(), [d, h] = P(), [m, f] = P(), [w, x] = P(), T = (y) => {
3487
- if (y !== void 0 && y.length !== 12)
3494
+ const n = e.name, [r, s] = P(!1), { t: a } = S("rfid-override"), { componentModeOverride: c } = M(), [i, l] = P(), [d, p] = P(), [u, m] = P(), [g, b] = P(), [f, C] = P(), T = (w) => {
3495
+ if (w !== void 0 && w.length !== 12)
3488
3496
  return a("errIdLen");
3489
- if (!Ut(y))
3497
+ if (!Ut(w))
3490
3498
  return a("errIdFormat");
3491
- }, D = (y) => {
3492
- if (y !== void 0 && y.length !== 8)
3499
+ }, D = (w) => {
3500
+ if (w !== void 0 && w.length !== 8)
3493
3501
  return a("errCodeLen");
3494
- if (!Ut(y))
3502
+ if (!Ut(w))
3495
3503
  return a("errCodeFormat");
3496
3504
  }, k = async () => {
3497
3505
  try {
3498
3506
  await e.overrideRfidCode({
3499
3507
  stickerId: i,
3500
- stickerCode: u
3508
+ stickerCode: d
3501
3509
  }), s(!0);
3502
- } catch (y) {
3503
- switch (y.type) {
3510
+ } catch (w) {
3511
+ switch (w.type) {
3504
3512
  case "errIdLen":
3505
3513
  case "errIdFormat":
3506
- f(y.type);
3514
+ b(w.type);
3507
3515
  break;
3508
3516
  case "errCodeLen":
3509
3517
  case "errCodeFormat":
3510
- x(y.type);
3518
+ C(w.type);
3511
3519
  break;
3512
3520
  case "errVerify":
3513
3521
  case "errBadJson":
3514
- h(y.type);
3522
+ m(w.type);
3515
3523
  break;
3516
3524
  }
3517
3525
  }
3518
3526
  };
3519
- return /* @__PURE__ */ g(
3527
+ return /* @__PURE__ */ h(
3520
3528
  ie,
3521
3529
  {
3522
3530
  contain: c !== "compact",
@@ -3537,19 +3545,19 @@ const Ms = v.div`
3537
3545
  CloseButton: c === "compact" ? be : void 0
3538
3546
  }
3539
3547
  ),
3540
- /* @__PURE__ */ g(ti, { children: [
3541
- /* @__PURE__ */ g(W, { align: "top", children: [
3548
+ /* @__PURE__ */ h(ti, { children: [
3549
+ /* @__PURE__ */ h(W, { align: "top", children: [
3542
3550
  /* @__PURE__ */ o(Ao, { children: a("info") }),
3543
3551
  /* @__PURE__ */ o(
3544
3552
  Qe,
3545
3553
  {
3546
3554
  isValid: T,
3547
- description: m ? a(m) : void 0,
3555
+ description: g ? a(g) : void 0,
3548
3556
  label: a("enter-cartridge-id"),
3549
3557
  layout: "hex",
3550
3558
  value: i,
3551
- onChange: (y) => {
3552
- f(void 0), l(y);
3559
+ onChange: (w) => {
3560
+ b(void 0), l(w);
3553
3561
  }
3554
3562
  }
3555
3563
  ),
@@ -3557,34 +3565,34 @@ const Ms = v.div`
3557
3565
  Qe,
3558
3566
  {
3559
3567
  isValid: D,
3560
- description: w ? a(w) : void 0,
3568
+ description: f ? a(f) : void 0,
3561
3569
  label: a("enter-code"),
3562
3570
  layout: "hex",
3563
- value: u,
3564
- onChange: (y) => {
3565
- x(void 0), p(y);
3571
+ value: d,
3572
+ onChange: (w) => {
3573
+ C(void 0), p(w);
3566
3574
  }
3567
3575
  }
3568
3576
  )
3569
3577
  ] }),
3570
3578
  /* @__PURE__ */ o(U, { children: /* @__PURE__ */ o(
3571
- C,
3579
+ x,
3572
3580
  {
3573
3581
  mode: "primary",
3574
- disabled: !i || !u,
3582
+ disabled: !i || !d,
3575
3583
  onPointerDown: k,
3576
3584
  children: a("override")
3577
3585
  }
3578
3586
  ) }),
3579
- d && /* @__PURE__ */ o(
3587
+ u && /* @__PURE__ */ o(
3580
3588
  Gt,
3581
3589
  {
3582
- onClose: () => h(void 0),
3590
+ onClose: () => m(void 0),
3583
3591
  renderFailure: /* @__PURE__ */ o(
3584
3592
  Lo,
3585
3593
  {
3586
3594
  heading: a("rfid-override"),
3587
- message: a(d, { holder: e.name })
3595
+ message: a(u, { holder: e.name })
3588
3596
  }
3589
3597
  ),
3590
3598
  show: !0,
@@ -3605,12 +3613,12 @@ const Ms = v.div`
3605
3613
  !n && (t != null && t.setupRequired) && (r(!0), a || c(e));
3606
3614
  }, [t == null ? void 0 : t.setupRequired, n, c, e, a]), null;
3607
3615
  }
3608
- ), oi = v.div`
3616
+ ), oi = y.div`
3609
3617
  cursor: pointer;
3610
3618
  display: flex;
3611
3619
  gap: 8px;
3612
3620
  align-items: center;
3613
- `, ri = v.div`
3621
+ `, ri = y.div`
3614
3622
  color: var(--ddk-generic-color-grey-100, #171717);
3615
3623
  font-size: var(--ddk-component-sidebar-font-size-medium);
3616
3624
  font-style: normal;
@@ -3623,7 +3631,7 @@ const Ms = v.div`
3623
3631
  const { t: r, labelMap: s } = qr({
3624
3632
  defaultNamespace: "setup",
3625
3633
  extensionPoint: sn
3626
- }), a = e == null ? void 0 : e.currentStep, c = (e == null ? void 0 : e.data.map((i) => /* @__PURE__ */ g(
3634
+ }), a = e == null ? void 0 : e.currentStep, c = (e == null ? void 0 : e.data.map((i) => /* @__PURE__ */ h(
3627
3635
  oi,
3628
3636
  {
3629
3637
  onPointerDown: () => {
@@ -3645,7 +3653,7 @@ const Ms = v.div`
3645
3653
  return /* @__PURE__ */ o(Fo, { ...n, children: c });
3646
3654
  }), Ya = rs(si), qa = I(() => {
3647
3655
  const { model: e } = lo();
3648
- return (e == null ? void 0 : e.nodes) && e.nodes.map((t, n) => /* @__PURE__ */ g(Jt, { name: t.nodeName, children: [
3656
+ return (e == null ? void 0 : e.nodes) && e.nodes.map((t, n) => /* @__PURE__ */ h(Jt, { name: t.nodeName, children: [
3649
3657
  /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(
3650
3658
  ft,
3651
3659
  {
@@ -3664,22 +3672,22 @@ const Ms = v.div`
3664
3672
  ) }, s))
3665
3673
  ] }, n));
3666
3674
  });
3667
- v.div`
3675
+ y.div`
3668
3676
  display: flex;
3669
3677
  justify-content: space-between;
3670
3678
  align-items: center;
3671
3679
  padding: 8px;
3672
3680
  width: 100%;
3673
3681
  `;
3674
- const Ye = v(F)`
3682
+ const Ye = y(F)`
3675
3683
  white-space: pre-wrap;
3676
3684
  `, ii = I(
3677
3685
  ({ pump: e, onComplete: t }) => {
3678
3686
  const { t: n } = S("common", {
3679
3687
  keyPrefix: "spm-field-calibration"
3680
- }), [r, s] = P("preparation-idle"), [a, c] = P(), [i, l] = P(), [u, p] = P(), { future: d } = J(e);
3688
+ }), [r, s] = P("preparation-idle"), [a, c] = P(), [i, l] = P(), [d, p] = P(), { clearFuture: u, future: m } = J(e);
3681
3689
  O(() => {
3682
- switch (d == null ? void 0 : d.endState) {
3690
+ switch (m == null ? void 0 : m.endState) {
3683
3691
  case "CANCEL":
3684
3692
  switch (r) {
3685
3693
  case "preparation-in-progress":
@@ -3707,15 +3715,15 @@ const Ye = v(F)`
3707
3715
  c(""), s("failure");
3708
3716
  break;
3709
3717
  }
3710
- }, [d == null ? void 0 : d.endState, d == null ? void 0 : d.reason, r]);
3711
- const h = L(() => ({
3718
+ }, [m == null ? void 0 : m.endState, m == null ? void 0 : m.reason, r]);
3719
+ const g = L(() => ({
3712
3720
  "preparation-idle": {
3713
3721
  information: /* @__PURE__ */ o(Ye, { children: n("preparation-idle-info") }),
3714
3722
  footer: /* @__PURE__ */ o(
3715
- C,
3723
+ x,
3716
3724
  {
3717
3725
  onPointerDown: () => {
3718
- e.performPreCalibrate(), s("preparation-in-progress");
3726
+ u(), e.performPreCalibrate(), s("preparation-in-progress");
3719
3727
  },
3720
3728
  children: n("preparation-action")
3721
3729
  }
@@ -3724,22 +3732,22 @@ const Ye = v(F)`
3724
3732
  },
3725
3733
  "preparation-in-progress": {
3726
3734
  information: /* @__PURE__ */ o(F, { children: n("preparation-progress-info") }),
3727
- footer: /* @__PURE__ */ o(C, { disabled: !0, children: n("preparation-action") }),
3735
+ footer: /* @__PURE__ */ o(x, { disabled: !0, children: n("preparation-action") }),
3728
3736
  status: "loading"
3729
3737
  },
3730
3738
  "preparation-success": {
3731
3739
  information: /* @__PURE__ */ o(F, { children: n("preparation-success-info") }),
3732
- footer: /* @__PURE__ */ o(C, { onPointerDown: () => s("calibration-idle"), children: n("preparation-success-action") }),
3740
+ footer: /* @__PURE__ */ o(x, { onPointerDown: () => s("calibration-idle"), children: n("preparation-success-action") }),
3733
3741
  status: "success"
3734
3742
  },
3735
3743
  "preparation-failed": {},
3736
3744
  "calibration-idle": {
3737
3745
  information: /* @__PURE__ */ o(Ye, { children: n("calibration-idle-info") }),
3738
3746
  footer: /* @__PURE__ */ o(
3739
- C,
3747
+ x,
3740
3748
  {
3741
3749
  onPointerDown: () => {
3742
- e.performCalibrate(), s("calibration-in-progress");
3750
+ u(), e.performCalibrate(), s("calibration-in-progress");
3743
3751
  },
3744
3752
  children: n("calibrate")
3745
3753
  }
@@ -3751,7 +3759,7 @@ const Ye = v(F)`
3751
3759
  status: "loading"
3752
3760
  },
3753
3761
  "calibration-input": {
3754
- information: /* @__PURE__ */ g(E, { children: [
3762
+ information: /* @__PURE__ */ h(E, { children: [
3755
3763
  /* @__PURE__ */ o(F, { children: n("calibration-input-info") }),
3756
3764
  /* @__PURE__ */ o(
3757
3765
  oe,
@@ -3767,7 +3775,7 @@ const Ye = v(F)`
3767
3775
  )
3768
3776
  ] }),
3769
3777
  footer: /* @__PURE__ */ o(
3770
- C,
3778
+ x,
3771
3779
  {
3772
3780
  disabled: i === void 0,
3773
3781
  onPointerDown: () => {
@@ -3783,10 +3791,10 @@ const Ye = v(F)`
3783
3791
  "verification-idle": {
3784
3792
  information: /* @__PURE__ */ o(Ye, { children: n("verification-idle-info") }),
3785
3793
  footer: /* @__PURE__ */ o(
3786
- C,
3794
+ x,
3787
3795
  {
3788
3796
  onPointerDown: async () => {
3789
- i !== void 0 && (e.performVerify(i, d == null ? void 0 : d.clientData), s("verification-in-progress"));
3797
+ i !== void 0 && (u(), e.performVerify(i, m == null ? void 0 : m.clientData), s("verification-in-progress"));
3790
3798
  },
3791
3799
  children: n("initiate-verification-pour")
3792
3800
  }
@@ -3799,7 +3807,7 @@ const Ye = v(F)`
3799
3807
  },
3800
3808
  "verification-trouble": {},
3801
3809
  "verification-input": {
3802
- information: /* @__PURE__ */ g(E, { children: [
3810
+ information: /* @__PURE__ */ h(E, { children: [
3803
3811
  /* @__PURE__ */ o(F, { children: n("verification-input-info") }),
3804
3812
  /* @__PURE__ */ o(
3805
3813
  oe,
@@ -3810,21 +3818,22 @@ const Ye = v(F)`
3810
3818
  onChange: (f) => {
3811
3819
  f !== void 0 && p(f);
3812
3820
  },
3813
- value: u !== void 0 ? u : ""
3821
+ value: d !== void 0 ? d : ""
3814
3822
  }
3815
3823
  )
3816
3824
  ] }),
3817
3825
  footer: /* @__PURE__ */ o(
3818
- C,
3826
+ x,
3819
3827
  {
3820
- disabled: u === void 0,
3828
+ disabled: d === void 0,
3821
3829
  onPointerDown: async () => {
3822
- if (i === void 0 || u === void 0)
3830
+ if (i === void 0 || d === void 0)
3823
3831
  return;
3824
- const [f, w] = await e.performComplete(
3832
+ u();
3833
+ const [f, C] = await e.performComplete(
3825
3834
  i,
3826
- u,
3827
- d == null ? void 0 : d.clientData
3835
+ d,
3836
+ m == null ? void 0 : m.clientData
3828
3837
  );
3829
3838
  f ? (c(f), s("failure")) : s("verification-success");
3830
3839
  },
@@ -3837,79 +3846,88 @@ const Ye = v(F)`
3837
3846
  "verification-input-confirmation": {},
3838
3847
  "verification-success": {
3839
3848
  information: /* @__PURE__ */ o(F, { children: n("verification-success-info") }),
3840
- footer: /* @__PURE__ */ o(C, { onPointerDown: t, children: n("exit-calibration") }),
3849
+ footer: /* @__PURE__ */ o(x, { onPointerDown: t, children: n("exit-calibration") }),
3841
3850
  status: "success"
3842
3851
  },
3843
3852
  "verification-failure": {
3844
3853
  information: /* @__PURE__ */ o(F, { children: n("verification-failed-info", {
3845
3854
  data: { ingredient: e.name }
3846
3855
  }) }),
3847
- footer: /* @__PURE__ */ o(C, { onPointerDown: t, children: n("exit-calibration") }),
3856
+ footer: /* @__PURE__ */ o(x, { onPointerDown: t, children: n("exit-calibration") }),
3848
3857
  status: "error"
3849
3858
  },
3850
3859
  failure: {
3851
- information: /* @__PURE__ */ g(E, { children: [
3860
+ information: /* @__PURE__ */ h(E, { children: [
3852
3861
  /* @__PURE__ */ o(F, { children: n("calibration-failed") }),
3853
3862
  /* @__PURE__ */ o(q, { children: n(`error.${a || "unknownError"}`) })
3854
3863
  ] }),
3855
- footer: /* @__PURE__ */ o(C, { onPointerDown: t, children: n("exit-calibration") }),
3864
+ footer: /* @__PURE__ */ o(x, { onPointerDown: t, children: n("exit-calibration") }),
3856
3865
  status: "error"
3857
3866
  }
3858
- }), [a, d == null ? void 0 : d.clientData, t, e, n, i, u]);
3859
- let m;
3867
+ }), [
3868
+ u,
3869
+ a,
3870
+ m == null ? void 0 : m.clientData,
3871
+ t,
3872
+ e,
3873
+ n,
3874
+ i,
3875
+ d
3876
+ ]);
3877
+ let b;
3860
3878
  switch (r) {
3861
3879
  case "preparation-in-progress":
3862
- m = "preparation-progress-title";
3880
+ b = "preparation-progress-title";
3863
3881
  break;
3864
3882
  case "calibration-in-progress":
3865
- m = "calibration-progress-title";
3883
+ b = "calibration-progress-title";
3866
3884
  break;
3867
3885
  case "verification-in-progress":
3868
- m = "verification-progress-title";
3886
+ b = "verification-progress-title";
3869
3887
  break;
3870
3888
  default:
3871
- m = "initiating";
3889
+ b = "initiating";
3872
3890
  }
3873
- return /* @__PURE__ */ g(E, { children: [
3891
+ return /* @__PURE__ */ h(E, { children: [
3874
3892
  /* @__PURE__ */ o(
3875
3893
  Ve,
3876
3894
  {
3877
3895
  title: n("title", { data: { ingredient: e.name } }),
3878
- ...h[r],
3896
+ ...g[r],
3879
3897
  onClose: () => t()
3880
3898
  }
3881
3899
  ),
3882
- d && /* @__PURE__ */ o(
3900
+ m && /* @__PURE__ */ o(
3883
3901
  z,
3884
3902
  {
3885
- title: n(m),
3886
- future: d
3903
+ title: n(b),
3904
+ future: m
3887
3905
  }
3888
3906
  )
3889
3907
  ] });
3890
3908
  }
3891
3909
  ), ai = N.createLogger({ name: "state-experience" });
3892
3910
  ai.debug("state-experience component loaded");
3893
- const ci = v.div``, Qa = I(
3911
+ const ci = y.div``, Qa = I(
3894
3912
  () => {
3895
3913
  const { getExtensions: e } = Ke(), { model: t } = Dn(), [n, r] = P(null);
3896
3914
  return O(() => se(() => {
3897
3915
  const c = e(Je).reduce(
3898
- (d, h) => {
3899
- const m = h;
3900
- return d[m.data.stateKey ?? m.data.troubleType] = {
3916
+ (u, m) => {
3917
+ const g = m;
3918
+ return u[g.data.stateKey ?? g.data.troubleType] = {
3901
3919
  extension: Je,
3902
- module: m.id,
3903
- namespace: m.data.namespace,
3904
- title: m.data.title,
3905
- stateValue: m.data.stateValue ?? m.data.troubleType
3906
- }, d;
3920
+ module: g.id,
3921
+ namespace: g.data.namespace,
3922
+ title: g.data.title,
3923
+ stateValue: g.data.stateValue ?? g.data.troubleType
3924
+ }, u;
3907
3925
  },
3908
3926
  {}
3909
- ), i = t == null ? void 0 : t.activeTroubleType, l = t == null ? void 0 : t.activeTrouble, u = i ? c[i] : void 0, p = u ? /* @__PURE__ */ o(
3927
+ ), i = t == null ? void 0 : t.activeTroubleType, l = t == null ? void 0 : t.activeTrouble, d = i ? c[i] : void 0, p = d ? /* @__PURE__ */ o(
3910
3928
  Me,
3911
3929
  {
3912
- ...u,
3930
+ ...d,
3913
3931
  props: { trouble: l }
3914
3932
  }
3915
3933
  ) : null;
@@ -3929,8 +3947,8 @@ const ci = v.div``, Qa = I(
3929
3947
  yearsRange: [s - 10, s + 10]
3930
3948
  }
3931
3949
  }), c = A(
3932
- (u, p) => {
3933
- switch (u) {
3950
+ (d, p) => {
3951
+ switch (d) {
3934
3952
  case "year":
3935
3953
  a.dateActions.setYear(p.id);
3936
3954
  break;
@@ -3946,11 +3964,11 @@ const ci = v.div``, Qa = I(
3946
3964
  ), i = A(() => {
3947
3965
  a.dateActions.setYear(n.getFullYear()), a.dateActions.setMonth(n.getMonth()), a.dateActions.setDay(n.getDate());
3948
3966
  }, [n, a.dateActions]), l = A(
3949
- async ({ day: u, month: p, year: d }) => {
3950
- a.dateActions.setYear(d), a.dateActions.setMonth(p), a.dateActions.setDay(u), await (t == null ? void 0 : t.updateSystemDate({
3951
- day: u,
3967
+ async ({ day: d, month: p, year: u }) => {
3968
+ a.dateActions.setYear(u), a.dateActions.setMonth(p), a.dateActions.setDay(d), await (t == null ? void 0 : t.updateSystemDate({
3969
+ day: d,
3952
3970
  month: p,
3953
- year: d
3971
+ year: u
3954
3972
  })), r(/* @__PURE__ */ new Date());
3955
3973
  },
3956
3974
  [a.dateActions, t]
@@ -3995,15 +4013,15 @@ const ci = v.div``, Qa = I(
3995
4013
  );
3996
4014
  }
3997
4015
  ), Za = I(({ showHeading: e }) => {
3998
- var m, f, w, x, T, D, k, y;
4016
+ var g, b, f, C, T, D, k, w;
3999
4017
  const { t } = S("region"), { regionModel: n } = X(), { model: r } = tt(), {
4000
4018
  amPmOptions: s,
4001
4019
  formattedTime: a,
4002
4020
  hourOptions: c,
4003
4021
  minuteOptions: i,
4004
4022
  setTime: l,
4005
- time: u
4006
- } = jt(), p = u.getHours(), d = L(
4023
+ time: d
4024
+ } = jt(), p = d.getHours(), u = L(
4007
4025
  () => [
4008
4026
  {
4009
4027
  id: "hr",
@@ -4014,7 +4032,7 @@ const ci = v.div``, Qa = I(
4014
4032
  {
4015
4033
  id: "min",
4016
4034
  items: i,
4017
- selectedItemId: u.getMinutes(),
4035
+ selectedItemId: d.getMinutes(),
4018
4036
  loop: !0
4019
4037
  },
4020
4038
  {
@@ -4023,8 +4041,8 @@ const ci = v.div``, Qa = I(
4023
4041
  selectedItemId: p < 12 ? "AM" : "PM"
4024
4042
  }
4025
4043
  ],
4026
- [s, c, i, u, p]
4027
- ), h = L(
4044
+ [s, c, i, d, p]
4045
+ ), m = L(
4028
4046
  () => [
4029
4047
  {
4030
4048
  id: "hr",
@@ -4035,30 +4053,30 @@ const ci = v.div``, Qa = I(
4035
4053
  {
4036
4054
  id: "min",
4037
4055
  items: i,
4038
- selectedItemId: u.getMinutes(),
4056
+ selectedItemId: d.getMinutes(),
4039
4057
  loop: !0
4040
4058
  }
4041
4059
  ],
4042
- [c, i, u, p]
4060
+ [c, i, d, p]
4043
4061
  );
4044
4062
  return O(() => {
4045
- const b = setInterval(() => {
4063
+ const v = setInterval(() => {
4046
4064
  l(/* @__PURE__ */ new Date());
4047
4065
  }, 3e4);
4048
4066
  return () => {
4049
- clearInterval(b);
4067
+ clearInterval(v);
4050
4068
  };
4051
- }, [l]), /* @__PURE__ */ g(ye, { children: [
4069
+ }, [l]), /* @__PURE__ */ h(ye, { children: [
4052
4070
  e && /* @__PURE__ */ o(we, { children: t("time-settings", "Time Settings") }),
4053
- ((m = n == null ? void 0 : n.dateFormatOptions) == null ? void 0 : m.length) && /* @__PURE__ */ o(
4071
+ ((g = n == null ? void 0 : n.dateFormatOptions) == null ? void 0 : g.length) && /* @__PURE__ */ o(
4054
4072
  Be,
4055
4073
  {
4056
4074
  label: t("date-format", "Date Format"),
4057
- value: (w = (f = n == null ? void 0 : n.dateFormatOptions) == null ? void 0 : f.find(
4058
- (b) => b.format === n.selectedDateFormat
4059
- )) == null ? void 0 : w.id,
4060
- options: (x = n == null ? void 0 : n.dateFormatOptions) == null ? void 0 : x.map((b) => ({ label: b.format.toUpperCase(), ...b })),
4061
- onChange: (b) => b && (n == null ? void 0 : n.setSelectedDateFormat(String(b)))
4075
+ value: (f = (b = n == null ? void 0 : n.dateFormatOptions) == null ? void 0 : b.find(
4076
+ (v) => v.format === n.selectedDateFormat
4077
+ )) == null ? void 0 : f.id,
4078
+ options: (C = n == null ? void 0 : n.dateFormatOptions) == null ? void 0 : C.map((v) => ({ label: v.format.toUpperCase(), ...v })),
4079
+ onChange: (v) => v && (n == null ? void 0 : n.setSelectedDateFormat(String(v)))
4062
4080
  }
4063
4081
  ),
4064
4082
  /* @__PURE__ */ o(di, {}),
@@ -4068,24 +4086,24 @@ const ci = v.div``, Qa = I(
4068
4086
  {
4069
4087
  label: t("time-format", "Time Format"),
4070
4088
  value: (k = (D = n == null ? void 0 : n.timeFormatOptions) == null ? void 0 : D.find(
4071
- (b) => b.format === n.selectedTimeFormat
4089
+ (v) => v.format === n.selectedTimeFormat
4072
4090
  )) == null ? void 0 : k.id,
4073
- options: (y = n == null ? void 0 : n.timeFormatOptions) == null ? void 0 : y.map((b) => ({ label: b != null && b.ampm ? "12 HR" : "24 HR", ...b })).reverse(),
4074
- onChange: (b) => b && (n == null ? void 0 : n.setSelectedTimeFormat(String(b)))
4091
+ options: (w = n == null ? void 0 : n.timeFormatOptions) == null ? void 0 : w.map((v) => ({ label: v != null && v.ampm ? "12 HR" : "24 HR", ...v })).reverse(),
4092
+ onChange: (v) => v && (n == null ? void 0 : n.setSelectedTimeFormat(String(v)))
4075
4093
  }
4076
4094
  ),
4077
4095
  /* @__PURE__ */ o(
4078
4096
  nt,
4079
4097
  {
4080
- data: n != null && n.is12HourTimeFormat ? d : h,
4098
+ data: n != null && n.is12HourTimeFormat ? u : m,
4081
4099
  icon: nn,
4082
4100
  displayValue: a,
4083
4101
  label: t("current-time", "Current Time"),
4084
4102
  closeButtonLabel: t("close", "Close") || void 0,
4085
4103
  cancelButtonLabel: t("discard-changes", "Discard Changes") || void 0,
4086
4104
  proceedButtonLabel: t("save", "Save") || void 0,
4087
- onSave: (b) => {
4088
- const H = n != null && n.is12HourTimeFormat ? b.ampm === "AM" ? b.hr : b.hr + 12 : b.hr, _ = b.min, G = new Date(u);
4105
+ onSave: (v) => {
4106
+ const H = n != null && n.is12HourTimeFormat ? v.ampm === "AM" ? v.hr : v.hr + 12 : v.hr, _ = v.min, G = new Date(d);
4089
4107
  G.setHours(H), G.setMinutes(_), l(G), r == null || r.updateSystemTime({
4090
4108
  hour: H,
4091
4109
  min: _,
@@ -4098,7 +4116,7 @@ const ci = v.div``, Qa = I(
4098
4116
  }), Ja = kn(
4099
4117
  I(({ settings: e, showHeading: t }) => {
4100
4118
  const { t: n } = S("dispenser-profile");
4101
- return /* @__PURE__ */ g(ye, { children: [
4119
+ return /* @__PURE__ */ h(ye, { children: [
4102
4120
  t && /* @__PURE__ */ o(we, { children: n("water-settings", "Water Settings") }),
4103
4121
  /* @__PURE__ */ o(
4104
4122
  Re,
@@ -4116,17 +4134,17 @@ const ci = v.div``, Qa = I(
4116
4134
  )
4117
4135
  ] });
4118
4136
  })
4119
- ), ec = v.div`
4137
+ ), ec = y.div`
4120
4138
  display: flex;
4121
4139
  flex-direction: column;
4122
4140
  gap: 12px;
4123
- `, tc = v.div`
4141
+ `, tc = y.div`
4124
4142
  display: flex;
4125
4143
  flex-direction: row;
4126
4144
  gap: 12px;
4127
4145
  align-items: center;
4128
4146
  justify-content: center;
4129
- `, nc = v(C)`
4147
+ `, nc = y(x)`
4130
4148
  display: block;
4131
4149
  `;
4132
4150
  export {