@kosdev-code/kos-ddk-model-components 2.0.1 → 2.0.2
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/components/ice-agitator/detail/agitator.d.ts +9 -0
- package/components/ice-agitator/detail/agitator.d.ts.map +1 -0
- package/components/ice-agitator/index.d.ts +3 -0
- package/components/ice-agitator/index.d.ts.map +1 -0
- package/components/ice-agitator/summary/agitator.d.ts +9 -0
- package/components/ice-agitator/summary/agitator.d.ts.map +1 -0
- package/components/index.d.ts +2 -0
- package/components/index.d.ts.map +1 -1
- package/components/software/software.d.ts +3 -1
- package/components/software/software.d.ts.map +1 -1
- package/components/spm-field-calibration/index.d.ts +2 -0
- package/components/spm-field-calibration/index.d.ts.map +1 -0
- package/components/spm-field-calibration/spm-field-calibration-modal.d.ts +11 -0
- package/components/spm-field-calibration/spm-field-calibration-modal.d.ts.map +1 -0
- package/hooks/holder-experience/holder-experience.d.ts +2 -2
- package/hooks/holder-experience/holder-experience.d.ts.map +1 -1
- package/index.cjs +76 -48
- package/index.js +1605 -1265
- package/package.json +7 -7
- package/utils/companion-utils.d.ts.map +1 -1
package/index.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { FutureManager as
|
|
5
|
-
import { jsx as o, jsxs as
|
|
6
|
-
import
|
|
7
|
-
import { useComponentConfigurationContext as
|
|
8
|
-
import
|
|
9
|
-
import { AgitationControl as
|
|
10
|
-
import { MessageErrorIcon as
|
|
11
|
-
import { DispenseExtensionManager as
|
|
12
|
-
import { useKosPluginsContext as
|
|
13
|
-
import { EXTENSION_POINT_SETUP as
|
|
14
|
-
import { useLocation as
|
|
15
|
-
import { FreestylePump as
|
|
16
|
-
class
|
|
1
|
+
var jn = Object.defineProperty;
|
|
2
|
+
var Wn = (e, t, n) => t in e ? jn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var F = (e, t, n) => (Wn(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
|
+
import { FutureManager as Ht, kosComponent as T, useKosTranslation as x, useKosModel as $, kosAutoEffect as ne, FutureEndState as ut, KosLog as _, useConfigProperty as G, useKosRegions as Y, useRegionTimeProps as zt, useDateProps as _t, getKosCompanionModel as Ae, registerExtensionPoint as Gn, ExtensionManager as pe, CoreExtensionManager as Xn, useTroubleContainerModel as Yn, withDevice as qn, useFormattedDate as Qn, troubleDataFactory as Ut, useSoftwareInfo as Zn, useKosTime as Ye } from "@kosdev-code/kos-ui-sdk";
|
|
5
|
+
import { jsx as o, jsxs as g, Fragment as A } from "@emotion/react/jsx-runtime";
|
|
6
|
+
import v from "@emotion/styled";
|
|
7
|
+
import { useComponentConfigurationContext as N, Modal as oe, Header as re, BackButton as me, Content as q, InfoCard as ee, Footer as K, Button as S, CloseButton as Jn, ProgressBar as Kt, LabelInformation as B, BodyMediumInformation as U, InputCard as te, WorkflowModal as qe, StatusIndicator as $e, InputRangeCard as eo, ToggleCard as to, PickerCard as je, Card as no, SwitchCard as Le, MultiPickerCard as Qe, LabelDate as Ze, Table as jt, LabelInformationExtraSmall as oo, getItemData as ro, TapAndHoldButton as so, ComponentConfigurationProvider as io, useAbbreviation as Wt, getFillColor as ao, HolderDashboardCard as Gt, FuelGauge as co, UtilityModalHeading as Xt, FrameContainer as Yt, Label as Ie, Text as lo, TabContainer as he, SettingsSubheading as ge, StatusCard as uo, NotificationCard as po, TabViewLayout as mo, TabRouter as ho, CompactCloseButton as go, QuestionIconStyle as fo, CancelProceedFooter as bo, StatusBar as qt, InfoContainer as vo, ErrorInputCard as pt, FailureCard as yo, useNavigate as wo, Sidebar as Co, FrameBody as xo, SwitchPickerCard as So } from "@kosdev-code/kos-ddk-components";
|
|
8
|
+
import mt, { useState as w, useEffect as O, useCallback as L, useMemo as D, createContext as V, useContext as R, useRef as ht, useLayoutEffect as Po, Suspense as Je } from "react";
|
|
9
|
+
import { AgitationControl as gt, toTimeComponents as ko, toSeconds as Io, Animation as ft, Application as bt, CarbWater as vt, CopyLogs as yt, DashboardOperations as wt, DispenserInfo as Ct, Door as To, FcmPump as We, SpmPump as Qt, IngredientSummary as xt, MacroAssignment as St, NetworkTest as Do, NetworkTestContainer as Pt, NutritiveSweetener as kt, PlainWater as It, LfcvPump as Ao, Reboot as Tt, Settings as Dt, SetupStep as Lo, SetupStepContainer as At, Start as Lt, TroubleActionManager as Et, Utilities as Eo, UtilitiesContainer as Ft, troubleVisibilityFilter as Fo } from "@kosdev-code/kos-ddk-models";
|
|
10
|
+
import { MessageErrorIcon as $o, SuccessIcon as Bo, TimeIcon as Zt, CalendarIcon as Oo, MessageInformationIconWithBackground as Vo } from "@kosdev-code/kos-ddk-styles";
|
|
11
|
+
import { DispenseExtensionManager as Ro, useBoardContainer as No, withAssembly as Mo } from "@kosdev-code/kos-dispense-sdk";
|
|
12
|
+
import { useKosPluginsContext as et, DynamicComponent as Be } from "@kosdev-code/kos-ui-plugin";
|
|
13
|
+
import { EXTENSION_POINT_SETUP as Jt, EXTENSION_POINT_CUI as Ho, EXTENSION_POINT_UTIL as zo, EXTENSION_POINT_TROUBLE_ACTION as Ge, EXTENSION_POINT_DASHBOARD as en, EXTENSION_POINT_DASHBOARD_PUMP_DETAIL as tn } from "@kosdev-code/kos-ui-plugin/utilities";
|
|
14
|
+
import { useLocation as _o, useSearchParams as Uo } from "react-router-dom";
|
|
15
|
+
import { FreestylePump as Ko } from "@kosdev-code/kos-freestyle-sdk";
|
|
16
|
+
class j {
|
|
17
17
|
constructor(t, n) {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
18
|
+
F(this, "future");
|
|
19
|
+
F(this, "intentContainer");
|
|
20
|
+
F(this, "title");
|
|
21
|
+
F(this, "intent");
|
|
22
|
+
F(this, "namespace");
|
|
23
|
+
F(this, "successMessage");
|
|
24
|
+
F(this, "failureMessage");
|
|
25
|
+
F(this, "actionLabel");
|
|
26
26
|
this.intentContainer = t, this.title = n.title, this.namespace = n.namespace, this.intent = n.intent, this.successMessage = n.successMessage, this.failureMessage = n.failureMessage, this.actionLabel = n.actionLabel;
|
|
27
27
|
}
|
|
28
28
|
get type() {
|
|
@@ -30,10 +30,10 @@ class z {
|
|
|
30
30
|
}
|
|
31
31
|
async performAction() {
|
|
32
32
|
const t = await this.intentContainer.performIntent(this.intent);
|
|
33
|
-
t != null && t.tracker && (this.future =
|
|
33
|
+
t != null && t.tracker && (this.future = Ht.getFuture(t.tracker));
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
class
|
|
36
|
+
class jo extends j {
|
|
37
37
|
constructor(t) {
|
|
38
38
|
super(t, {
|
|
39
39
|
title: "Calibrate",
|
|
@@ -46,7 +46,7 @@ class Vo extends z {
|
|
|
46
46
|
return !0;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
class
|
|
49
|
+
class Wo extends j {
|
|
50
50
|
constructor(t) {
|
|
51
51
|
super(t, {
|
|
52
52
|
title: "45ml Flow Test",
|
|
@@ -59,7 +59,7 @@ class Ho extends z {
|
|
|
59
59
|
return !0;
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
class
|
|
62
|
+
class Go extends j {
|
|
63
63
|
constructor(t) {
|
|
64
64
|
super(t, {
|
|
65
65
|
title: "Flush",
|
|
@@ -72,7 +72,7 @@ class _o extends z {
|
|
|
72
72
|
return !0;
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
class
|
|
75
|
+
class Xo extends j {
|
|
76
76
|
constructor(t) {
|
|
77
77
|
super(t, {
|
|
78
78
|
title: "High Flow Test",
|
|
@@ -85,7 +85,7 @@ class zo extends z {
|
|
|
85
85
|
return !0;
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
|
-
class
|
|
88
|
+
class Yo extends j {
|
|
89
89
|
constructor(t) {
|
|
90
90
|
super(t, {
|
|
91
91
|
title: "Hold to Pour",
|
|
@@ -98,7 +98,7 @@ class Uo extends z {
|
|
|
98
98
|
return !0;
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
|
-
class
|
|
101
|
+
class qo extends j {
|
|
102
102
|
constructor(t) {
|
|
103
103
|
super(t, {
|
|
104
104
|
title: "Low Flow Test",
|
|
@@ -111,7 +111,7 @@ class Ko extends z {
|
|
|
111
111
|
return !0;
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
class
|
|
114
|
+
class Qo extends j {
|
|
115
115
|
constructor(t) {
|
|
116
116
|
super(t, {
|
|
117
117
|
title: "Manual Override",
|
|
@@ -124,7 +124,7 @@ class jo extends z {
|
|
|
124
124
|
return !0;
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
|
-
class
|
|
127
|
+
class Zo extends j {
|
|
128
128
|
constructor(t) {
|
|
129
129
|
super(t, {
|
|
130
130
|
title: "Reset",
|
|
@@ -137,7 +137,7 @@ class Wo extends z {
|
|
|
137
137
|
return !0;
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
|
-
class
|
|
140
|
+
class Jo extends j {
|
|
141
141
|
constructor(t) {
|
|
142
142
|
super(t, {
|
|
143
143
|
title: "Prime",
|
|
@@ -150,7 +150,7 @@ class Go extends z {
|
|
|
150
150
|
return !0;
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
|
-
class
|
|
153
|
+
class er extends j {
|
|
154
154
|
constructor(t) {
|
|
155
155
|
super(t, {
|
|
156
156
|
title: "Purge",
|
|
@@ -163,16 +163,16 @@ class Xo extends z {
|
|
|
163
163
|
return !0;
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
|
-
class
|
|
166
|
+
class tr {
|
|
167
167
|
constructor(t, n) {
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
168
|
+
F(this, "future");
|
|
169
|
+
F(this, "troubleAware");
|
|
170
|
+
F(this, "title");
|
|
171
|
+
F(this, "troubleKey");
|
|
172
|
+
F(this, "namespace");
|
|
173
|
+
F(this, "successMessage");
|
|
174
|
+
F(this, "failureMessage");
|
|
175
|
+
F(this, "actionLabel");
|
|
176
176
|
this.troubleAware = t, this.troubleKey = n.trouble, this.namespace = n.namespace || "troubles", this.title = n.title || `${this.namespace}:troubles.${this.troubleKey}.progress`, this.successMessage = n.successMessage || `${this.namespace}:troubles.${this.troubleKey}.success`, this.failureMessage = n.failureMessage || `${this.namespace}:troubles.${this.troubleKey}.error`, this.actionLabel = n.action || `${this.namespace}:troubles.${this.troubleKey}.action`;
|
|
177
177
|
}
|
|
178
178
|
get type() {
|
|
@@ -183,10 +183,10 @@ class Yo {
|
|
|
183
183
|
if (!t)
|
|
184
184
|
return;
|
|
185
185
|
const r = await t[0].resolve();
|
|
186
|
-
r != null && r.tracker && (this.future =
|
|
186
|
+
r != null && r.tracker && (this.future = Ht.getFuture(r.tracker));
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
|
-
class
|
|
189
|
+
class nr extends tr {
|
|
190
190
|
constructor(t, n) {
|
|
191
191
|
super(t, {
|
|
192
192
|
trouble: n
|
|
@@ -196,44 +196,44 @@ class qo extends Yo {
|
|
|
196
196
|
return !0;
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
const
|
|
199
|
+
const di = "PrimeTrouble", ui = "PurgeTrouble", or = v.div`
|
|
200
200
|
display: flex;
|
|
201
201
|
flex-direction: column;
|
|
202
202
|
overflow-y: auto;
|
|
203
203
|
overflow-x: hidden;
|
|
204
204
|
gap: 32px;
|
|
205
205
|
height: 100%;
|
|
206
|
-
`,
|
|
206
|
+
`, rr = T(
|
|
207
207
|
({ holder: e, onComplete: t }) => {
|
|
208
|
-
const [n, r] =
|
|
208
|
+
const [n, r] = w(!1), { t: s } = x("common"), { componentModeOverride: a } = N(), c = e.data.agitated;
|
|
209
209
|
return /* @__PURE__ */ o(
|
|
210
|
-
|
|
210
|
+
oe,
|
|
211
211
|
{
|
|
212
212
|
contain: a !== "compact",
|
|
213
213
|
onClosed: t,
|
|
214
214
|
show: !n,
|
|
215
|
-
children: /* @__PURE__ */
|
|
215
|
+
children: /* @__PURE__ */ g(or, { children: [
|
|
216
216
|
/* @__PURE__ */ o(
|
|
217
|
-
|
|
217
|
+
re,
|
|
218
218
|
{
|
|
219
219
|
contain: a === "compact",
|
|
220
220
|
showCloseButton: !0,
|
|
221
221
|
title: s("shelf-agitator"),
|
|
222
222
|
showOpenButton: !1,
|
|
223
223
|
onClose: () => r(!0),
|
|
224
|
-
CloseButton: a === "compact" ?
|
|
224
|
+
CloseButton: a === "compact" ? me : void 0
|
|
225
225
|
}
|
|
226
226
|
),
|
|
227
227
|
/* @__PURE__ */ o(q, { align: "top", children: /* @__PURE__ */ o(
|
|
228
|
-
|
|
228
|
+
ee,
|
|
229
229
|
{
|
|
230
230
|
label: s("agitating"),
|
|
231
231
|
padding: "x-large",
|
|
232
232
|
value: s(c ? "no" : "yes")
|
|
233
233
|
}
|
|
234
234
|
) }),
|
|
235
|
-
/* @__PURE__ */ o(
|
|
236
|
-
|
|
235
|
+
/* @__PURE__ */ o(K, { children: /* @__PURE__ */ o(
|
|
236
|
+
S,
|
|
237
237
|
{
|
|
238
238
|
mode: "primary",
|
|
239
239
|
disabled: c,
|
|
@@ -245,20 +245,20 @@ const ti = "PrimeTrouble", ni = "PurgeTrouble", Qo = w.div`
|
|
|
245
245
|
}
|
|
246
246
|
);
|
|
247
247
|
}
|
|
248
|
-
),
|
|
249
|
-
const e =
|
|
250
|
-
return
|
|
248
|
+
), nn = () => {
|
|
249
|
+
const e = gt.type;
|
|
250
|
+
return $({
|
|
251
251
|
modelId: e,
|
|
252
|
-
modelType:
|
|
252
|
+
modelType: gt.type,
|
|
253
253
|
options: {}
|
|
254
254
|
});
|
|
255
|
-
},
|
|
255
|
+
}, se = (e) => {
|
|
256
256
|
var c, i;
|
|
257
|
-
const [t, n] =
|
|
257
|
+
const [t, n] = w(e == null ? void 0 : e.futureHandler.future), [r, s] = w(
|
|
258
258
|
(i = (c = e == null ? void 0 : e.futureHandler) == null ? void 0 : c.future) == null ? void 0 : i.endState
|
|
259
259
|
);
|
|
260
|
-
|
|
261
|
-
const l =
|
|
260
|
+
O(() => {
|
|
261
|
+
const l = ne(() => {
|
|
262
262
|
const d = e == null ? void 0 : e.futureHandler.future;
|
|
263
263
|
n(d), s(d == null ? void 0 : d.endState);
|
|
264
264
|
});
|
|
@@ -272,10 +272,10 @@ const ti = "PrimeTrouble", ni = "PurgeTrouble", Qo = w.div`
|
|
|
272
272
|
return {
|
|
273
273
|
future: t,
|
|
274
274
|
clearFuture: a,
|
|
275
|
-
success: r ===
|
|
276
|
-
failure: r && r !==
|
|
275
|
+
success: r === ut.Success,
|
|
276
|
+
failure: r && r !== ut.Success
|
|
277
277
|
};
|
|
278
|
-
},
|
|
278
|
+
}, sr = _.createLogger({ name: "future-progress-bar" }), on = v(Jn)`
|
|
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 ti = "PrimeTrouble", ni = "PurgeTrouble", Qo = w.div`
|
|
|
288
288
|
--ddk-component-icon-button-icon-color-hover: var(
|
|
289
289
|
--ddk-component-progress-bar-close-button-color-hover
|
|
290
290
|
);
|
|
291
|
-
`,
|
|
291
|
+
`, ir = v.div`
|
|
292
292
|
display: flex;
|
|
293
293
|
flex-direction: column;
|
|
294
294
|
width: 100%;
|
|
295
295
|
gap: 8px;
|
|
296
|
-
`,
|
|
296
|
+
`, rn = v.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,27 +301,27 @@ const ti = "PrimeTrouble", ni = "PurgeTrouble", Qo = w.div`
|
|
|
301
301
|
gap: var(--ddk-component-progress-bar-message-gap);
|
|
302
302
|
justify-content: space-between;
|
|
303
303
|
width: 100%;
|
|
304
|
-
`,
|
|
304
|
+
`, sn = v.div`
|
|
305
305
|
display: flex;
|
|
306
306
|
gap: var(--ddk-component-status-bar-gap);
|
|
307
307
|
align-items: center;
|
|
308
|
-
`,
|
|
308
|
+
`, ar = v.div`
|
|
309
309
|
border-top: solid 1px #888888;
|
|
310
310
|
padding-top: 8px;
|
|
311
311
|
width: calc(100% - 10px);
|
|
312
|
-
`,
|
|
313
|
-
const { componentModeOverride: s } =
|
|
314
|
-
return /* @__PURE__ */
|
|
315
|
-
/* @__PURE__ */
|
|
316
|
-
/* @__PURE__ */
|
|
317
|
-
|
|
312
|
+
`, Ee = ({ children: e, onPointerDown: t, title: n, subtitle: r }) => {
|
|
313
|
+
const { componentModeOverride: s } = N(), { t: a } = x("common");
|
|
314
|
+
return /* @__PURE__ */ g(rn, { children: [
|
|
315
|
+
/* @__PURE__ */ g(ir, { children: [
|
|
316
|
+
/* @__PURE__ */ g(
|
|
317
|
+
sn,
|
|
318
318
|
{
|
|
319
319
|
style: {
|
|
320
320
|
fontSize: "var(--ddk-component-progress-bar-message-font-size)"
|
|
321
321
|
},
|
|
322
322
|
children: [
|
|
323
323
|
/* @__PURE__ */ o(
|
|
324
|
-
|
|
324
|
+
$o,
|
|
325
325
|
{
|
|
326
326
|
style: {
|
|
327
327
|
color: "var(--ddk-component-progress-bar-icon-color-failure)",
|
|
@@ -333,10 +333,10 @@ const ti = "PrimeTrouble", ni = "PurgeTrouble", Qo = w.div`
|
|
|
333
333
|
]
|
|
334
334
|
}
|
|
335
335
|
),
|
|
336
|
-
r && /* @__PURE__ */ o(
|
|
336
|
+
r && /* @__PURE__ */ o(ar, { children: r })
|
|
337
337
|
] }),
|
|
338
|
-
s === "compact" ? /* @__PURE__ */ o(
|
|
339
|
-
|
|
338
|
+
s === "compact" ? /* @__PURE__ */ o(S, { mode: "primary", onPointerDown: t, children: a("close", "Close") }) : /* @__PURE__ */ o(
|
|
339
|
+
on,
|
|
340
340
|
{
|
|
341
341
|
label: !1,
|
|
342
342
|
size: "large",
|
|
@@ -344,12 +344,12 @@ const ti = "PrimeTrouble", ni = "PurgeTrouble", Qo = w.div`
|
|
|
344
344
|
}
|
|
345
345
|
)
|
|
346
346
|
] });
|
|
347
|
-
},
|
|
348
|
-
const { componentModeOverride: n } =
|
|
349
|
-
return /* @__PURE__ */
|
|
350
|
-
/* @__PURE__ */
|
|
347
|
+
}, tt = ({ children: e, onPointerDown: t }) => {
|
|
348
|
+
const { componentModeOverride: n } = N(), { t: r } = x("common");
|
|
349
|
+
return /* @__PURE__ */ g(rn, { children: [
|
|
350
|
+
/* @__PURE__ */ g(sn, { children: [
|
|
351
351
|
/* @__PURE__ */ o(
|
|
352
|
-
|
|
352
|
+
Bo,
|
|
353
353
|
{
|
|
354
354
|
style: {
|
|
355
355
|
color: "var(--ddk-semantic-color-system-green)",
|
|
@@ -359,8 +359,8 @@ const ti = "PrimeTrouble", ni = "PurgeTrouble", Qo = w.div`
|
|
|
359
359
|
),
|
|
360
360
|
e
|
|
361
361
|
] }),
|
|
362
|
-
n === "compact" ? /* @__PURE__ */ o(
|
|
363
|
-
|
|
362
|
+
n === "compact" ? /* @__PURE__ */ o(S, { mode: "primary", onPointerDown: t, children: r("close", "Close") }) : /* @__PURE__ */ o(
|
|
363
|
+
on,
|
|
364
364
|
{
|
|
365
365
|
label: !1,
|
|
366
366
|
size: "large",
|
|
@@ -368,7 +368,7 @@ const ti = "PrimeTrouble", ni = "PurgeTrouble", Qo = w.div`
|
|
|
368
368
|
}
|
|
369
369
|
)
|
|
370
370
|
] });
|
|
371
|
-
},
|
|
371
|
+
}, $t = (e) => (e == null ? void 0 : e.title) && (e == null ? void 0 : e.subtitle), H = T(
|
|
372
372
|
({
|
|
373
373
|
title: e,
|
|
374
374
|
future: t,
|
|
@@ -379,54 +379,54 @@ const ti = "PrimeTrouble", ni = "PurgeTrouble", Qo = w.div`
|
|
|
379
379
|
onSuccess: c,
|
|
380
380
|
onClose: i
|
|
381
381
|
}) => {
|
|
382
|
-
const { t: l } =
|
|
382
|
+
const { t: l } = x("common"), [d, p] = mt.useState(!0), [u, h] = mt.useState(), m = `${t == null ? void 0 : t.timeRemaining} ${l(
|
|
383
383
|
"remaining",
|
|
384
384
|
"remaining"
|
|
385
|
-
)}`,
|
|
385
|
+
)}`, C = L(() => {
|
|
386
386
|
u !== "in-progress" && (i == null || i(), p(!1));
|
|
387
|
-
}, [i, u]),
|
|
388
|
-
|
|
389
|
-
}, [
|
|
390
|
-
|
|
391
|
-
(t == null ? void 0 : t.status) === "IN_PROGRESS" || (t == null ? void 0 : t.status) === "NOT_ACTIVE" ? (
|
|
387
|
+
}, [i, u]), P = L(() => {
|
|
388
|
+
C(), c == null || c();
|
|
389
|
+
}, [C, c]);
|
|
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 || (C(), 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 && sr.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
|
-
|
|
398
|
+
C,
|
|
399
399
|
c
|
|
400
400
|
]);
|
|
401
|
-
const
|
|
401
|
+
const y = $t(n) ? n.subtitle : void 0, k = $t(n) ? n.title : n ?? l("something-went-wrong", "Something went wrong");
|
|
402
402
|
return t && /* @__PURE__ */ o(
|
|
403
|
-
|
|
403
|
+
Kt,
|
|
404
404
|
{
|
|
405
405
|
isCancelable: a,
|
|
406
406
|
onCancel: () => {
|
|
407
407
|
t.cancelFuture();
|
|
408
408
|
},
|
|
409
409
|
blocked: u === "in-progress",
|
|
410
|
-
onClose:
|
|
411
|
-
renderFailure: n && /* @__PURE__ */ o(
|
|
412
|
-
renderCancel: s && /* @__PURE__ */ o(
|
|
413
|
-
renderSuccess: r && /* @__PURE__ */ o(
|
|
410
|
+
onClose: C,
|
|
411
|
+
renderFailure: n && /* @__PURE__ */ o(Ee, { subtitle: y, onPointerDown: C, children: k }),
|
|
412
|
+
renderCancel: s && /* @__PURE__ */ o(Ee, { onPointerDown: C, children: s }),
|
|
413
|
+
renderSuccess: r && /* @__PURE__ */ o(tt, { onPointerDown: P, children: r }),
|
|
414
414
|
show: d,
|
|
415
415
|
status: u,
|
|
416
|
-
subtitle:
|
|
416
|
+
subtitle: m,
|
|
417
417
|
title: e,
|
|
418
418
|
value: t.progress
|
|
419
419
|
}
|
|
420
420
|
);
|
|
421
421
|
}
|
|
422
|
-
),
|
|
423
|
-
|
|
424
|
-
const
|
|
425
|
-
const { model: e } =
|
|
422
|
+
), cr = _.createLogger({ name: "agitation-control-view" });
|
|
423
|
+
cr.debug("agitation-control-view component loaded");
|
|
424
|
+
const lr = v.div``, pi = T(() => {
|
|
425
|
+
const { model: e } = nn(), { t, i18n: n } = x("troubles"), { future: r, failure: s } = se(e), a = L(() => {
|
|
426
426
|
e && e.clearAll();
|
|
427
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
|
-
return /* @__PURE__ */ o(
|
|
429
|
-
|
|
428
|
+
return /* @__PURE__ */ o(lr, { children: /* @__PURE__ */ o(
|
|
429
|
+
H,
|
|
430
430
|
{
|
|
431
431
|
title: t("troubles.agitation.title"),
|
|
432
432
|
future: r,
|
|
@@ -440,10 +440,10 @@ const or = w.div``, oi = I(() => {
|
|
|
440
440
|
})
|
|
441
441
|
}
|
|
442
442
|
) });
|
|
443
|
-
}),
|
|
443
|
+
}), dr = T(
|
|
444
444
|
({ pump: e, onComplete: t }) => {
|
|
445
|
-
const { t: n } =
|
|
446
|
-
|
|
445
|
+
const { t: n } = x("common", { keyPrefix: "fcm-calibration" }), [r, s] = w("high-flow-test-idle"), [a, c] = w(), [i, l] = w(), [d, p] = w(), { future: u } = se(e);
|
|
446
|
+
O(() => {
|
|
447
447
|
switch (u == null ? void 0 : u.endState) {
|
|
448
448
|
case "CANCEL":
|
|
449
449
|
switch (r) {
|
|
@@ -472,11 +472,11 @@ const or = w.div``, oi = I(() => {
|
|
|
472
472
|
break;
|
|
473
473
|
}
|
|
474
474
|
}, [u == null ? void 0 : u.endState, u == null ? void 0 : u.reason, r]);
|
|
475
|
-
const
|
|
475
|
+
const h = D(() => ({
|
|
476
476
|
"high-flow-test-idle": {
|
|
477
|
-
information: /* @__PURE__ */ o(
|
|
477
|
+
information: /* @__PURE__ */ o(B, { children: n("high-flow-test-idle-information") }),
|
|
478
478
|
footer: /* @__PURE__ */ o(
|
|
479
|
-
|
|
479
|
+
S,
|
|
480
480
|
{
|
|
481
481
|
onPointerDown: () => {
|
|
482
482
|
e.performPreCalibrate(), s("high-flow-test-in-progress");
|
|
@@ -487,19 +487,19 @@ const or = w.div``, oi = I(() => {
|
|
|
487
487
|
status: "information"
|
|
488
488
|
},
|
|
489
489
|
"high-flow-test-in-progress": {
|
|
490
|
-
information: /* @__PURE__ */ o(
|
|
491
|
-
footer: /* @__PURE__ */ o(
|
|
490
|
+
information: /* @__PURE__ */ o(B, { children: n("high-flow-test-in-progress-information") }),
|
|
491
|
+
footer: /* @__PURE__ */ o(S, { disabled: !0, children: n("initiate-high-flow-test") }),
|
|
492
492
|
status: "loading"
|
|
493
493
|
},
|
|
494
494
|
"high-flow-test-success": {
|
|
495
|
-
information: /* @__PURE__ */ o(
|
|
496
|
-
footer: /* @__PURE__ */ o(
|
|
495
|
+
information: /* @__PURE__ */ o(B, { children: n("high-flow-test-success-information") }),
|
|
496
|
+
footer: /* @__PURE__ */ o(S, { onPointerDown: () => s("calibration-idle"), children: n("proceed") }),
|
|
497
497
|
status: "success"
|
|
498
498
|
},
|
|
499
499
|
"calibration-idle": {
|
|
500
|
-
information: /* @__PURE__ */ o(
|
|
500
|
+
information: /* @__PURE__ */ o(U, { children: n("calibration-idle-information") }),
|
|
501
501
|
footer: /* @__PURE__ */ o(
|
|
502
|
-
|
|
502
|
+
S,
|
|
503
503
|
{
|
|
504
504
|
onPointerDown: () => {
|
|
505
505
|
e.performCalibrate(), s("calibration-in-progress");
|
|
@@ -510,27 +510,27 @@ const or = w.div``, oi = I(() => {
|
|
|
510
510
|
status: "information"
|
|
511
511
|
},
|
|
512
512
|
"calibration-in-progress": {
|
|
513
|
-
information: /* @__PURE__ */ o(
|
|
513
|
+
information: /* @__PURE__ */ o(B, { children: n("calibration-in-progress-information") }),
|
|
514
514
|
status: "loading"
|
|
515
515
|
},
|
|
516
516
|
"calibration-input": {
|
|
517
|
-
information: /* @__PURE__ */
|
|
518
|
-
/* @__PURE__ */ o(
|
|
517
|
+
information: /* @__PURE__ */ g(A, { children: [
|
|
518
|
+
/* @__PURE__ */ o(U, { children: n("calibration-input-information") }),
|
|
519
519
|
/* @__PURE__ */ o(
|
|
520
|
-
|
|
520
|
+
te,
|
|
521
521
|
{
|
|
522
522
|
label: "Volume",
|
|
523
523
|
unitValue: "ml",
|
|
524
524
|
layout: "num",
|
|
525
|
-
onChange: (
|
|
526
|
-
|
|
525
|
+
onChange: (m) => {
|
|
526
|
+
m !== void 0 && l(m);
|
|
527
527
|
},
|
|
528
528
|
value: i !== void 0 ? i : ""
|
|
529
529
|
}
|
|
530
530
|
)
|
|
531
531
|
] }),
|
|
532
532
|
footer: /* @__PURE__ */ o(
|
|
533
|
-
|
|
533
|
+
S,
|
|
534
534
|
{
|
|
535
535
|
disabled: i === void 0,
|
|
536
536
|
onPointerDown: () => {
|
|
@@ -544,9 +544,9 @@ const or = w.div``, oi = I(() => {
|
|
|
544
544
|
// Todo: calibration-input-confirmation if necessary...
|
|
545
545
|
"calibration-input-confirmation": {},
|
|
546
546
|
"verification-idle": {
|
|
547
|
-
information: /* @__PURE__ */ o(
|
|
547
|
+
information: /* @__PURE__ */ o(U, { children: n("verification-idle-information") }),
|
|
548
548
|
footer: /* @__PURE__ */ o(
|
|
549
|
-
|
|
549
|
+
S,
|
|
550
550
|
{
|
|
551
551
|
onPointerDown: async () => {
|
|
552
552
|
i !== void 0 && (e.performVerify(i), s("verification-in-progress"));
|
|
@@ -557,34 +557,34 @@ const or = w.div``, oi = I(() => {
|
|
|
557
557
|
status: "information"
|
|
558
558
|
},
|
|
559
559
|
"verification-in-progress": {
|
|
560
|
-
information: /* @__PURE__ */ o(
|
|
560
|
+
information: /* @__PURE__ */ o(B, { children: n("verification-in-progress-information") }),
|
|
561
561
|
status: "loading"
|
|
562
562
|
},
|
|
563
563
|
"verification-input": {
|
|
564
|
-
information: /* @__PURE__ */
|
|
565
|
-
/* @__PURE__ */ o(
|
|
564
|
+
information: /* @__PURE__ */ g(A, { children: [
|
|
565
|
+
/* @__PURE__ */ o(U, { children: n("verification-input-information") }),
|
|
566
566
|
/* @__PURE__ */ o(
|
|
567
|
-
|
|
567
|
+
te,
|
|
568
568
|
{
|
|
569
569
|
label: "Volume",
|
|
570
570
|
unitValue: "ml",
|
|
571
571
|
layout: "num",
|
|
572
|
-
onChange: (
|
|
573
|
-
|
|
572
|
+
onChange: (m) => {
|
|
573
|
+
m !== void 0 && p(m);
|
|
574
574
|
},
|
|
575
575
|
value: d !== void 0 ? d : ""
|
|
576
576
|
}
|
|
577
577
|
)
|
|
578
578
|
] }),
|
|
579
579
|
footer: /* @__PURE__ */ o(
|
|
580
|
-
|
|
580
|
+
S,
|
|
581
581
|
{
|
|
582
582
|
disabled: d === void 0,
|
|
583
583
|
onPointerDown: async () => {
|
|
584
584
|
if (i === void 0 || d === void 0)
|
|
585
585
|
return;
|
|
586
|
-
const
|
|
587
|
-
|
|
586
|
+
const m = await e.performComplete(i, d);
|
|
587
|
+
m === "success" ? s("verification-success") : (c(m), s(m === "errBadPump" ? "verification-failure" : "failure"));
|
|
588
588
|
},
|
|
589
589
|
children: n("proceed")
|
|
590
590
|
}
|
|
@@ -594,80 +594,80 @@ const or = w.div``, oi = I(() => {
|
|
|
594
594
|
// Todo: verification-input-confirmation if necessary...
|
|
595
595
|
"verification-input-confirmation": {},
|
|
596
596
|
"verification-success": {
|
|
597
|
-
information: /* @__PURE__ */ o(
|
|
598
|
-
footer: /* @__PURE__ */ o(
|
|
597
|
+
information: /* @__PURE__ */ o(B, { children: n("verification-success-information") }),
|
|
598
|
+
footer: /* @__PURE__ */ o(S, { onPointerDown: t, children: n("exit-calibration") }),
|
|
599
599
|
status: "success"
|
|
600
600
|
},
|
|
601
601
|
"verification-failure": {
|
|
602
|
-
information: /* @__PURE__ */ o(
|
|
603
|
-
footer: /* @__PURE__ */ o(
|
|
602
|
+
information: /* @__PURE__ */ o(B, { children: n(`error.${a}`) }),
|
|
603
|
+
footer: /* @__PURE__ */ o(S, { onPointerDown: t, children: n("exit-calibration") }),
|
|
604
604
|
status: "error"
|
|
605
605
|
},
|
|
606
606
|
failure: {
|
|
607
|
-
information: /* @__PURE__ */
|
|
608
|
-
/* @__PURE__ */ o(
|
|
609
|
-
/* @__PURE__ */ o(
|
|
607
|
+
information: /* @__PURE__ */ g(A, { children: [
|
|
608
|
+
/* @__PURE__ */ o(B, { children: n("calibration-failed") }),
|
|
609
|
+
/* @__PURE__ */ o(U, { children: n(`error.${a || "unknownError"}`) })
|
|
610
610
|
] }),
|
|
611
|
-
footer: /* @__PURE__ */ o(
|
|
611
|
+
footer: /* @__PURE__ */ o(S, { onPointerDown: t, children: n("exit-calibration") }),
|
|
612
612
|
status: "error"
|
|
613
613
|
}
|
|
614
614
|
}), [a, t, e, n, i, d]);
|
|
615
|
-
return /* @__PURE__ */
|
|
615
|
+
return /* @__PURE__ */ g(A, { children: [
|
|
616
616
|
/* @__PURE__ */ o(
|
|
617
|
-
|
|
617
|
+
qe,
|
|
618
618
|
{
|
|
619
619
|
title: n(e.name),
|
|
620
|
-
...
|
|
620
|
+
...h[r],
|
|
621
621
|
onClose: () => t()
|
|
622
622
|
}
|
|
623
623
|
),
|
|
624
|
-
u && /* @__PURE__ */ o(
|
|
624
|
+
u && /* @__PURE__ */ o(H, { title: n("initiating"), future: u })
|
|
625
625
|
] });
|
|
626
626
|
}
|
|
627
|
-
),
|
|
628
|
-
|
|
629
|
-
const { t } =
|
|
627
|
+
), mi = T(({ cardModel: e }) => {
|
|
628
|
+
_.debug("Agitator", e.path);
|
|
629
|
+
const { t } = x(["agitator", "common"]), { future: n } = se(e), r = L(
|
|
630
630
|
(s) => {
|
|
631
631
|
s === "agitate" && (e == null || e.testAgitate());
|
|
632
632
|
},
|
|
633
633
|
[e]
|
|
634
634
|
);
|
|
635
|
-
return /* @__PURE__ */
|
|
635
|
+
return /* @__PURE__ */ g(A, { children: [
|
|
636
636
|
/* @__PURE__ */ o(q, { children: /* @__PURE__ */ o(
|
|
637
|
-
|
|
637
|
+
ee,
|
|
638
638
|
{
|
|
639
639
|
label: "Agitating",
|
|
640
640
|
value: e.isAgitating ? t("common:yes") : t("common:no")
|
|
641
641
|
}
|
|
642
642
|
) }),
|
|
643
|
-
/* @__PURE__ */ o(
|
|
643
|
+
/* @__PURE__ */ o(K, { children: /* @__PURE__ */ o(S, { onPointerDown: () => r("agitate"), children: t("action.label") }) }),
|
|
644
644
|
n && /* @__PURE__ */ o(
|
|
645
|
-
|
|
645
|
+
H,
|
|
646
646
|
{
|
|
647
647
|
title: t("testing"),
|
|
648
648
|
future: n
|
|
649
649
|
}
|
|
650
650
|
)
|
|
651
651
|
] });
|
|
652
|
-
}),
|
|
652
|
+
}), ur = v.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
|
-
`,
|
|
656
|
-
|
|
657
|
-
const { t } =
|
|
658
|
-
return /* @__PURE__ */
|
|
659
|
-
/* @__PURE__ */ o(
|
|
660
|
-
e.cardModel.isAgitating && /* @__PURE__ */ o(
|
|
655
|
+
`, hi = T((e) => {
|
|
656
|
+
_.debug(`summary component loaded for holder ${e}`), _.info(`render agitator summary for holder ${e.cardModel.path}`);
|
|
657
|
+
const { t } = x("common");
|
|
658
|
+
return /* @__PURE__ */ g(A, { children: [
|
|
659
|
+
/* @__PURE__ */ o($e, { size: "small", status: "completed" }),
|
|
660
|
+
e.cardModel.isAgitating && /* @__PURE__ */ o(ur, { children: t("agitating") })
|
|
661
661
|
] });
|
|
662
|
-
}),
|
|
662
|
+
}), pr = {
|
|
663
663
|
getStagedChange: void 0,
|
|
664
664
|
updateStagedChange: void 0,
|
|
665
665
|
saveChanges: void 0,
|
|
666
666
|
clearStagedChanges: void 0
|
|
667
|
-
},
|
|
667
|
+
}, an = V(pr), mr = ({
|
|
668
668
|
children: e
|
|
669
669
|
}) => {
|
|
670
|
-
const [t, n] =
|
|
670
|
+
const [t, n] = w({}), r = (i) => t[i], s = (i, l) => {
|
|
671
671
|
n((d) => ({ ...d, [i]: l }));
|
|
672
672
|
}, a = () => n({}), c = async () => {
|
|
673
673
|
for (const i in t)
|
|
@@ -677,7 +677,7 @@ const or = w.div``, oi = I(() => {
|
|
|
677
677
|
a();
|
|
678
678
|
};
|
|
679
679
|
return /* @__PURE__ */ o(
|
|
680
|
-
|
|
680
|
+
an.Provider,
|
|
681
681
|
{
|
|
682
682
|
value: {
|
|
683
683
|
getStagedChange: r,
|
|
@@ -688,24 +688,24 @@ const or = w.div``, oi = I(() => {
|
|
|
688
688
|
children: e
|
|
689
689
|
}
|
|
690
690
|
);
|
|
691
|
-
},
|
|
692
|
-
const { value: n } =
|
|
693
|
-
return /* @__PURE__ */ o(
|
|
694
|
-
},
|
|
691
|
+
}, cn = () => R(an), gi = (e) => (t) => /* @__PURE__ */ o(mr, { children: /* @__PURE__ */ o(e, { ...t }) }), hr = ({ label: e, configProperty: t }) => {
|
|
692
|
+
const { value: n } = G({ configProperty: t });
|
|
693
|
+
return /* @__PURE__ */ o(ee, { label: e, value: n });
|
|
694
|
+
}, nt = ({ configProperty: e, hideUnits: t, isValid: n, ...r }) => {
|
|
695
695
|
var p, u;
|
|
696
|
-
const { t: s } =
|
|
696
|
+
const { t: s } = x("common", { keyPrefix: "validation" }), { significantValue: a } = G({
|
|
697
697
|
configProperty: e
|
|
698
|
-
}), c = (
|
|
699
|
-
|
|
698
|
+
}), c = (h) => {
|
|
699
|
+
h || (h = ""), e.updateProperty(h);
|
|
700
700
|
}, i = (p = e.displayOptions) == null ? void 0 : p.max, l = (u = e.displayOptions) == null ? void 0 : u.min, d = L(
|
|
701
|
-
(
|
|
702
|
-
const
|
|
703
|
-
return
|
|
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);
|
|
704
704
|
},
|
|
705
705
|
[n, i, l, s]
|
|
706
706
|
);
|
|
707
707
|
return /* @__PURE__ */ o(
|
|
708
|
-
|
|
708
|
+
te,
|
|
709
709
|
{
|
|
710
710
|
...r,
|
|
711
711
|
isValid: d,
|
|
@@ -714,11 +714,11 @@ const or = w.div``, oi = I(() => {
|
|
|
714
714
|
value: a
|
|
715
715
|
}
|
|
716
716
|
);
|
|
717
|
-
},
|
|
717
|
+
}, ue = ({ configProperty: e, label: t, onChange: n, ...r }) => {
|
|
718
718
|
var c, i;
|
|
719
|
-
const { t: s } =
|
|
719
|
+
const { t: s } = x(["config-properties", "common"]), a = G({ configProperty: e });
|
|
720
720
|
return /* @__PURE__ */ o(
|
|
721
|
-
|
|
721
|
+
eo,
|
|
722
722
|
{
|
|
723
723
|
...r,
|
|
724
724
|
label: t ?? s(e.id),
|
|
@@ -730,11 +730,11 @@ const or = w.div``, oi = I(() => {
|
|
|
730
730
|
value: a.significantValue
|
|
731
731
|
}
|
|
732
732
|
);
|
|
733
|
-
},
|
|
733
|
+
}, Fe = ({ configProperty: e, overrideChecked: t, ...n }) => {
|
|
734
734
|
var l;
|
|
735
|
-
const { getStagedChange: r, updateStagedChange: s } =
|
|
735
|
+
const { getStagedChange: r, updateStagedChange: s } = cn(), { value: a } = G({ configProperty: e }), c = ((l = r == null ? void 0 : r(e.id)) == null ? void 0 : l.value) ?? a;
|
|
736
736
|
return /* @__PURE__ */ o(
|
|
737
|
-
|
|
737
|
+
to,
|
|
738
738
|
{
|
|
739
739
|
toggleLabel: c === "true" ? "Enabled" : "Disabled",
|
|
740
740
|
...n,
|
|
@@ -747,7 +747,7 @@ const or = w.div``, oi = I(() => {
|
|
|
747
747
|
checked: t !== void 0 ? t : c === "true"
|
|
748
748
|
}
|
|
749
749
|
);
|
|
750
|
-
},
|
|
750
|
+
}, gr = (e) => (e == null ? void 0 : e.map((t) => ({ id: t.value, label: t.label }))) || [], ot = ({
|
|
751
751
|
collapse: e,
|
|
752
752
|
cancelButtonLabel: t,
|
|
753
753
|
configProperty: n,
|
|
@@ -760,33 +760,33 @@ const or = w.div``, oi = I(() => {
|
|
|
760
760
|
onSave: d,
|
|
761
761
|
proceedButtonLabel: p,
|
|
762
762
|
selectedItemId: u,
|
|
763
|
-
unitValue:
|
|
764
|
-
...
|
|
763
|
+
unitValue: h,
|
|
764
|
+
...m
|
|
765
765
|
}) => {
|
|
766
|
-
const { t:
|
|
766
|
+
const { t: C } = x(["config-properties", "common"]), P = G({
|
|
767
767
|
configProperty: n,
|
|
768
|
-
optionsTransformer:
|
|
768
|
+
optionsTransformer: gr
|
|
769
769
|
});
|
|
770
770
|
return /* @__PURE__ */ o(
|
|
771
|
-
|
|
771
|
+
je,
|
|
772
772
|
{
|
|
773
|
-
...
|
|
774
|
-
cancelButtonLabel: t ?? (
|
|
773
|
+
...m,
|
|
774
|
+
cancelButtonLabel: t ?? (C("discard-changes", {
|
|
775
775
|
defaultValue: "Discard Changes",
|
|
776
776
|
ns: "common"
|
|
777
777
|
}) || void 0),
|
|
778
778
|
collapse: e,
|
|
779
|
-
displayValue: s ?? r === "raw" ?
|
|
779
|
+
displayValue: s ?? r === "raw" ? P.value : P.displayValue,
|
|
780
780
|
float: a,
|
|
781
|
-
items: c ??
|
|
782
|
-
label: i ??
|
|
783
|
-
onSave: (
|
|
784
|
-
proceedButtonLabel: p ?? (
|
|
785
|
-
selectedItemId: u ??
|
|
786
|
-
unitValue:
|
|
781
|
+
items: c ?? P.mappedOptions,
|
|
782
|
+
label: i ?? C(n.id),
|
|
783
|
+
onSave: (y) => d ? d(y) : n.updateProperty(y),
|
|
784
|
+
proceedButtonLabel: p ?? (C("save", { defaultValue: "Save", ns: "common" }) || void 0),
|
|
785
|
+
selectedItemId: u ?? P.value,
|
|
786
|
+
unitValue: h ?? P.unit
|
|
787
787
|
}
|
|
788
788
|
);
|
|
789
|
-
},
|
|
789
|
+
}, fr = v(nt)`
|
|
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 or = w.div``, oi = I(() => {
|
|
|
822
822
|
--ddk-component-input-enable-card-input-font-weight
|
|
823
823
|
);
|
|
824
824
|
}
|
|
825
|
-
`,
|
|
825
|
+
`, br = v(ot)`
|
|
826
826
|
border-top: var(--ddk-component-input-enable-card-input-container-border);
|
|
827
827
|
border-radius: 0;
|
|
828
828
|
cursor: pointer;
|
|
@@ -859,13 +859,13 @@ const or = w.div``, oi = I(() => {
|
|
|
859
859
|
--ddk-component-input-enable-card-input-font-weight
|
|
860
860
|
);
|
|
861
861
|
}
|
|
862
|
-
`,
|
|
862
|
+
`, vr = (e, t, n, r, s) => {
|
|
863
863
|
let a;
|
|
864
|
-
const c = s === "compact" ?
|
|
864
|
+
const c = s === "compact" ? fr : nt, i = s === "compact" ? br : ot, l = r.label ?? n(e.id);
|
|
865
865
|
switch (e.schemaType) {
|
|
866
866
|
case "boolean":
|
|
867
867
|
a = /* @__PURE__ */ o(
|
|
868
|
-
|
|
868
|
+
Fe,
|
|
869
869
|
{
|
|
870
870
|
configProperty: e,
|
|
871
871
|
...r,
|
|
@@ -875,7 +875,7 @@ const or = w.div``, oi = I(() => {
|
|
|
875
875
|
break;
|
|
876
876
|
case "double":
|
|
877
877
|
a = /* @__PURE__ */ o(
|
|
878
|
-
|
|
878
|
+
ue,
|
|
879
879
|
{
|
|
880
880
|
configProperty: e,
|
|
881
881
|
...r,
|
|
@@ -885,7 +885,7 @@ const or = w.div``, oi = I(() => {
|
|
|
885
885
|
break;
|
|
886
886
|
case "int":
|
|
887
887
|
a = /* @__PURE__ */ o(
|
|
888
|
-
|
|
888
|
+
ue,
|
|
889
889
|
{
|
|
890
890
|
configProperty: e,
|
|
891
891
|
...r,
|
|
@@ -915,18 +915,18 @@ const or = w.div``, oi = I(() => {
|
|
|
915
915
|
break;
|
|
916
916
|
}
|
|
917
917
|
return a;
|
|
918
|
-
},
|
|
918
|
+
}, yr = (e) => (e == null ? void 0 : e.map((t) => ({ id: t.value, label: t.label }))) || [], ln = ({
|
|
919
919
|
configProperty: e,
|
|
920
920
|
factory: t,
|
|
921
921
|
mappedOptions: n,
|
|
922
922
|
t: r,
|
|
923
923
|
...s
|
|
924
924
|
}) => {
|
|
925
|
-
const { t: a } =
|
|
925
|
+
const { t: a } = x(["config-properties", "common"]), { componentModeOverride: c } = N(), i = G({
|
|
926
926
|
configProperty: e,
|
|
927
|
-
optionsTransformer:
|
|
927
|
+
optionsTransformer: yr
|
|
928
928
|
});
|
|
929
|
-
return t = t ??
|
|
929
|
+
return t = t ?? vr, t(
|
|
930
930
|
e,
|
|
931
931
|
{
|
|
932
932
|
...i,
|
|
@@ -936,14 +936,14 @@ const or = w.div``, oi = I(() => {
|
|
|
936
936
|
s,
|
|
937
937
|
c
|
|
938
938
|
);
|
|
939
|
-
},
|
|
939
|
+
}, wr = v(no)`
|
|
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
|
-
`,
|
|
946
|
+
`, Cr = v.div`
|
|
947
947
|
box-sizing: border-box;
|
|
948
948
|
display: flex;
|
|
949
949
|
flex-direction: var(
|
|
@@ -951,27 +951,27 @@ const or = w.div``, oi = I(() => {
|
|
|
951
951
|
);
|
|
952
952
|
gap: var(--ddk-component-input-enable-card-input-container-gap);
|
|
953
953
|
width: 100%;
|
|
954
|
-
`,
|
|
954
|
+
`, xr = v(ln)`
|
|
955
955
|
width: 100%;
|
|
956
|
-
`,
|
|
956
|
+
`, Sr = v.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);
|
|
960
|
-
`,
|
|
960
|
+
`, Pr = ({
|
|
961
961
|
configProperties: e,
|
|
962
962
|
disabled: t,
|
|
963
963
|
enabledConfigProperty: n
|
|
964
964
|
}) => {
|
|
965
|
-
const { value: r } =
|
|
965
|
+
const { value: r } = G({
|
|
966
966
|
configProperty: n
|
|
967
|
-
}), s = r === "true", { componentModeOverride: a } =
|
|
968
|
-
return /* @__PURE__ */
|
|
969
|
-
|
|
967
|
+
}), s = r === "true", { componentModeOverride: a } = N(), c = e.length === 1, i = c ? xr : ln;
|
|
968
|
+
return /* @__PURE__ */ g(
|
|
969
|
+
wr,
|
|
970
970
|
{
|
|
971
971
|
disabled: !s || t,
|
|
972
972
|
mode: a,
|
|
973
973
|
children: [
|
|
974
|
-
/* @__PURE__ */ o(
|
|
974
|
+
/* @__PURE__ */ o(Cr, { children: e.map((l) => /* @__PURE__ */ o(
|
|
975
975
|
i,
|
|
976
976
|
{
|
|
977
977
|
disabled: !s || t,
|
|
@@ -985,11 +985,11 @@ const or = w.div``, oi = I(() => {
|
|
|
985
985
|
l.configProperty.id
|
|
986
986
|
)) }),
|
|
987
987
|
/* @__PURE__ */ o(
|
|
988
|
-
|
|
988
|
+
Sr,
|
|
989
989
|
{
|
|
990
990
|
compact: !c || a === "compact",
|
|
991
991
|
children: /* @__PURE__ */ o(
|
|
992
|
-
|
|
992
|
+
Fe,
|
|
993
993
|
{
|
|
994
994
|
alwaysShowLabel: !0,
|
|
995
995
|
collapse: !0,
|
|
@@ -1003,7 +1003,7 @@ const or = w.div``, oi = I(() => {
|
|
|
1003
1003
|
]
|
|
1004
1004
|
}
|
|
1005
1005
|
);
|
|
1006
|
-
},
|
|
1006
|
+
}, fi = ({
|
|
1007
1007
|
configProperty: e,
|
|
1008
1008
|
disabled: t,
|
|
1009
1009
|
enabledConfigProperty: n,
|
|
@@ -1014,22 +1014,22 @@ const or = w.div``, oi = I(() => {
|
|
|
1014
1014
|
[e, r]
|
|
1015
1015
|
);
|
|
1016
1016
|
return /* @__PURE__ */ o(
|
|
1017
|
-
|
|
1017
|
+
Pr,
|
|
1018
1018
|
{
|
|
1019
1019
|
configProperties: s,
|
|
1020
1020
|
disabled: t,
|
|
1021
1021
|
enabledConfigProperty: n
|
|
1022
1022
|
}
|
|
1023
1023
|
);
|
|
1024
|
-
},
|
|
1024
|
+
}, kr = ({
|
|
1025
1025
|
configProperty: e,
|
|
1026
1026
|
...t
|
|
1027
1027
|
}) => {
|
|
1028
|
-
const { value: n } =
|
|
1029
|
-
return /* @__PURE__ */ o(
|
|
1028
|
+
const { value: n } = G({ configProperty: e });
|
|
1029
|
+
return /* @__PURE__ */ o(Le, { ...t, onChange: (s) => {
|
|
1030
1030
|
s !== void 0 && (e == null || e.updateProperty(String(s)));
|
|
1031
1031
|
}, value: n });
|
|
1032
|
-
},
|
|
1032
|
+
}, Ir = ({
|
|
1033
1033
|
description: e,
|
|
1034
1034
|
float: t,
|
|
1035
1035
|
label: n,
|
|
@@ -1038,90 +1038,90 @@ const or = w.div``, oi = I(() => {
|
|
|
1038
1038
|
time: a,
|
|
1039
1039
|
...c
|
|
1040
1040
|
}) => {
|
|
1041
|
-
const { regionModel: i } =
|
|
1041
|
+
const { regionModel: i } = Y(), { t: l } = x("common", { keyPrefix: "schedule" }), {
|
|
1042
1042
|
amPmOptions: d,
|
|
1043
1043
|
formattedTime: p,
|
|
1044
1044
|
hourOptions: u,
|
|
1045
|
-
minuteOptions:
|
|
1046
|
-
setTime:
|
|
1047
|
-
time:
|
|
1048
|
-
} =
|
|
1045
|
+
minuteOptions: h,
|
|
1046
|
+
setTime: m,
|
|
1047
|
+
time: C
|
|
1048
|
+
} = zt({ initialDate: a }), P = C.getHours(), y = D(
|
|
1049
1049
|
() => [
|
|
1050
1050
|
{
|
|
1051
1051
|
id: "hr",
|
|
1052
1052
|
items: u,
|
|
1053
|
-
selectedItemId:
|
|
1053
|
+
selectedItemId: P < 12 ? P : P - 12,
|
|
1054
1054
|
loop: !0
|
|
1055
1055
|
},
|
|
1056
1056
|
{
|
|
1057
1057
|
id: "min",
|
|
1058
|
-
items:
|
|
1059
|
-
selectedItemId:
|
|
1058
|
+
items: h,
|
|
1059
|
+
selectedItemId: C.getMinutes(),
|
|
1060
1060
|
loop: !0
|
|
1061
1061
|
},
|
|
1062
1062
|
{
|
|
1063
1063
|
id: "ampm",
|
|
1064
1064
|
items: d,
|
|
1065
|
-
selectedItemId:
|
|
1065
|
+
selectedItemId: P < 12 ? "AM" : "PM"
|
|
1066
1066
|
}
|
|
1067
1067
|
],
|
|
1068
|
-
[d, u,
|
|
1068
|
+
[d, u, h, C, P]
|
|
1069
1069
|
), k = D(
|
|
1070
1070
|
() => [
|
|
1071
1071
|
{
|
|
1072
1072
|
id: "hr",
|
|
1073
1073
|
items: u,
|
|
1074
|
-
selectedItemId:
|
|
1074
|
+
selectedItemId: P,
|
|
1075
1075
|
loop: !0
|
|
1076
1076
|
},
|
|
1077
1077
|
{
|
|
1078
1078
|
id: "min",
|
|
1079
|
-
items:
|
|
1080
|
-
selectedItemId:
|
|
1079
|
+
items: h,
|
|
1080
|
+
selectedItemId: C.getMinutes(),
|
|
1081
1081
|
loop: !0
|
|
1082
1082
|
}
|
|
1083
1083
|
],
|
|
1084
|
-
[u,
|
|
1084
|
+
[u, h, C, P]
|
|
1085
1085
|
);
|
|
1086
1086
|
return /* @__PURE__ */ o(
|
|
1087
|
-
|
|
1087
|
+
Qe,
|
|
1088
1088
|
{
|
|
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 ?
|
|
1092
|
+
data: i != null && i.is12HourTimeFormat ? y : k,
|
|
1093
1093
|
description: e,
|
|
1094
1094
|
displayValue: p,
|
|
1095
1095
|
float: t,
|
|
1096
|
-
icon:
|
|
1096
|
+
icon: Zt,
|
|
1097
1097
|
label: n,
|
|
1098
1098
|
modalTitle: r,
|
|
1099
1099
|
proceedButtonLabel: l("save", "Save") || void 0,
|
|
1100
|
-
onSave: (
|
|
1101
|
-
const
|
|
1102
|
-
|
|
1100
|
+
onSave: (E) => {
|
|
1101
|
+
const I = i != null && i.is12HourTimeFormat ? E.ampm === "AM" ? E.hr : E.hr + 12 : E.hr, b = E.min, f = new Date(C);
|
|
1102
|
+
f.setHours(I), f.setMinutes(b), m(f), s == null || s({ hours: I, minutes: b });
|
|
1103
1103
|
}
|
|
1104
1104
|
}
|
|
1105
1105
|
);
|
|
1106
|
-
},
|
|
1106
|
+
}, Tr = ({ configProperty: e, ...t }) => {
|
|
1107
1107
|
var p;
|
|
1108
|
-
const { getStagedChange: n, updateStagedChange: r } =
|
|
1109
|
-
return l.setHours(c), l.setMinutes(i), /* @__PURE__ */ o(
|
|
1110
|
-
const
|
|
1108
|
+
const { getStagedChange: n, updateStagedChange: r } = cn(), { value: s } = G({ configProperty: e }), a = ((p = n == null ? void 0 : n(e.id)) == null ? void 0 : p.value) ?? s, { hours: c, minutes: i } = ko(Number(a)), l = /* @__PURE__ */ new Date();
|
|
1109
|
+
return l.setHours(c), l.setMinutes(i), /* @__PURE__ */ o(Ir, { ...t, onSave: (u) => {
|
|
1110
|
+
const h = Io(u.hours, u.minutes);
|
|
1111
1111
|
r ? r(e.id, {
|
|
1112
1112
|
configProperty: e,
|
|
1113
|
-
value:
|
|
1114
|
-
}) : e.updateProperty(
|
|
1113
|
+
value: h
|
|
1114
|
+
}) : e.updateProperty(h);
|
|
1115
1115
|
}, time: l });
|
|
1116
|
-
},
|
|
1116
|
+
}, Dr = [0, 6], Ar = ({
|
|
1117
1117
|
day: e = (/* @__PURE__ */ new Date()).getDate(),
|
|
1118
1118
|
month: t = (/* @__PURE__ */ new Date()).getMonth(),
|
|
1119
1119
|
onSave: n,
|
|
1120
1120
|
year: r = (/* @__PURE__ */ new Date()).getFullYear(),
|
|
1121
1121
|
...s
|
|
1122
1122
|
}) => {
|
|
1123
|
-
var
|
|
1124
|
-
const { t: a } =
|
|
1123
|
+
var m, C, P, y, k, E;
|
|
1124
|
+
const { t: a } = x("region"), { regionModel: c } = Y(), i = _t({
|
|
1125
1125
|
date: { year: r, month: t, day: e },
|
|
1126
1126
|
formatOptions: {
|
|
1127
1127
|
dayFormat: "short",
|
|
@@ -1130,123 +1130,123 @@ const or = w.div``, oi = I(() => {
|
|
|
1130
1130
|
formatString: (c == null ? void 0 : c.selectedDateFormat) || "yyyy/MM/dd"
|
|
1131
1131
|
},
|
|
1132
1132
|
filterOptions: {
|
|
1133
|
-
daysOfWeekFilter:
|
|
1133
|
+
daysOfWeekFilter: Dr,
|
|
1134
1134
|
yearsRange: [r - 10, r + 10]
|
|
1135
1135
|
}
|
|
1136
1136
|
}), l = D(
|
|
1137
1137
|
() => {
|
|
1138
|
-
var
|
|
1139
|
-
return (
|
|
1140
|
-
id:
|
|
1141
|
-
label:
|
|
1138
|
+
var I, b;
|
|
1139
|
+
return (b = (I = i == null ? void 0 : i.dateState) == null ? void 0 : I.yearsOptionsArray) == null ? void 0 : b.map((f) => ({
|
|
1140
|
+
id: f.value,
|
|
1141
|
+
label: f.label
|
|
1142
1142
|
}));
|
|
1143
1143
|
},
|
|
1144
|
-
[(
|
|
1144
|
+
[(m = i == null ? void 0 : i.dateState) == null ? void 0 : m.yearsOptionsArray]
|
|
1145
1145
|
), d = D(
|
|
1146
1146
|
() => {
|
|
1147
|
-
var
|
|
1148
|
-
return (
|
|
1149
|
-
id:
|
|
1150
|
-
label:
|
|
1147
|
+
var I, b;
|
|
1148
|
+
return (b = (I = i == null ? void 0 : i.dateState) == null ? void 0 : I.daysOptionsArray) == null ? void 0 : b.map((f) => ({
|
|
1149
|
+
id: f.value,
|
|
1150
|
+
label: f.label
|
|
1151
1151
|
}));
|
|
1152
1152
|
},
|
|
1153
|
-
[(
|
|
1153
|
+
[(C = i == null ? void 0 : i.dateState) == null ? void 0 : C.daysOptionsArray]
|
|
1154
1154
|
), p = D(
|
|
1155
1155
|
() => {
|
|
1156
|
-
var
|
|
1157
|
-
return (
|
|
1158
|
-
id:
|
|
1159
|
-
label: String(
|
|
1156
|
+
var I, b;
|
|
1157
|
+
return (b = (I = i == null ? void 0 : i.dateState) == null ? void 0 : I.monthsOptionsArray) == null ? void 0 : b.map((f) => ({
|
|
1158
|
+
id: f.value,
|
|
1159
|
+
label: String(f.label)
|
|
1160
1160
|
}));
|
|
1161
1161
|
},
|
|
1162
|
-
[(
|
|
1162
|
+
[(P = i == null ? void 0 : i.dateState) == null ? void 0 : P.monthsOptionsArray]
|
|
1163
1163
|
), u = D(() => {
|
|
1164
|
-
const
|
|
1165
|
-
return c == null || c.selectedDateOrder.split("").forEach((
|
|
1166
|
-
var
|
|
1167
|
-
|
|
1164
|
+
const I = [];
|
|
1165
|
+
return c == null || c.selectedDateOrder.split("").forEach((b) => {
|
|
1166
|
+
var f, M, z;
|
|
1167
|
+
b === "y" ? I.push({
|
|
1168
1168
|
id: "year",
|
|
1169
1169
|
items: l,
|
|
1170
|
-
selectedItemId: (
|
|
1170
|
+
selectedItemId: (f = i == null ? void 0 : i.dateState) == null ? void 0 : f.year,
|
|
1171
1171
|
loop: !1
|
|
1172
|
-
}) :
|
|
1172
|
+
}) : b === "m" ? I.push({
|
|
1173
1173
|
id: "month",
|
|
1174
1174
|
items: p,
|
|
1175
|
-
selectedItemId: (
|
|
1176
|
-
}) :
|
|
1175
|
+
selectedItemId: (M = i == null ? void 0 : i.dateState) == null ? void 0 : M.month
|
|
1176
|
+
}) : b === "d" && I.push({
|
|
1177
1177
|
id: "day",
|
|
1178
1178
|
items: d,
|
|
1179
|
-
selectedItemId: (
|
|
1179
|
+
selectedItemId: (z = i == null ? void 0 : i.dateState) == null ? void 0 : z.day,
|
|
1180
1180
|
loop: !1
|
|
1181
1181
|
});
|
|
1182
|
-
}),
|
|
1182
|
+
}), I;
|
|
1183
1183
|
}, [
|
|
1184
|
-
(
|
|
1184
|
+
(y = i == null ? void 0 : i.dateState) == null ? void 0 : y.day,
|
|
1185
1185
|
(k = i == null ? void 0 : i.dateState) == null ? void 0 : k.month,
|
|
1186
|
-
(
|
|
1186
|
+
(E = i == null ? void 0 : i.dateState) == null ? void 0 : E.year,
|
|
1187
1187
|
d,
|
|
1188
1188
|
p,
|
|
1189
1189
|
c == null ? void 0 : c.selectedDateOrder,
|
|
1190
1190
|
l
|
|
1191
|
-
]),
|
|
1192
|
-
async (
|
|
1193
|
-
const
|
|
1191
|
+
]), h = L(
|
|
1192
|
+
async (I) => {
|
|
1193
|
+
const f = new Date(I.year, I.month + 1, 0).getDate(), M = I.day > f ? 1 : I.day;
|
|
1194
1194
|
n({
|
|
1195
|
-
day:
|
|
1196
|
-
month:
|
|
1197
|
-
year:
|
|
1195
|
+
day: M,
|
|
1196
|
+
month: I.month,
|
|
1197
|
+
year: I.year
|
|
1198
1198
|
});
|
|
1199
1199
|
},
|
|
1200
1200
|
[n]
|
|
1201
1201
|
);
|
|
1202
1202
|
return /* @__PURE__ */ o(
|
|
1203
|
-
|
|
1203
|
+
Qe,
|
|
1204
1204
|
{
|
|
1205
1205
|
cancelButtonLabel: a("discard-changes", "Discard Changes") || void 0,
|
|
1206
1206
|
closeButtonLabel: a("close", "Close") || void 0,
|
|
1207
1207
|
data: u,
|
|
1208
1208
|
displayValue: i.dateState.formattedDate,
|
|
1209
|
-
icon:
|
|
1209
|
+
icon: Oo,
|
|
1210
1210
|
label: a("todays-date", "Today's Date"),
|
|
1211
|
-
onSave:
|
|
1211
|
+
onSave: h,
|
|
1212
1212
|
proceedButtonLabel: a("save", "Save") || void 0,
|
|
1213
1213
|
...s
|
|
1214
1214
|
}
|
|
1215
1215
|
);
|
|
1216
|
-
},
|
|
1216
|
+
}, Lr = T(
|
|
1217
1217
|
({ pump: e, onComplete: t }) => {
|
|
1218
|
-
const { t: n } =
|
|
1218
|
+
const { t: n } = x("common", {
|
|
1219
1219
|
keyPrefix: "fcm-diagnostics"
|
|
1220
|
-
}), [r, s] =
|
|
1220
|
+
}), [r, s] = w("idle"), [a, c] = w(), i = L(async () => {
|
|
1221
1221
|
s("test"), c(void 0);
|
|
1222
1222
|
const d = await e.performElectricalTest();
|
|
1223
1223
|
d.error ? (c(d.error), s("failure")) : d.result === "errEEPROM" ? (c("errEEPROM"), s("failure")) : s("success");
|
|
1224
1224
|
}, [e]), l = D(() => ({
|
|
1225
1225
|
idle: {
|
|
1226
|
-
information: /* @__PURE__ */ o(
|
|
1227
|
-
footer: /* @__PURE__ */ o(
|
|
1226
|
+
information: /* @__PURE__ */ o(B, { children: n("perform-electrical-test") }),
|
|
1227
|
+
footer: /* @__PURE__ */ o(S, { onPointerDown: i, children: n("electrical-test") })
|
|
1228
1228
|
},
|
|
1229
1229
|
test: {
|
|
1230
|
-
information: /* @__PURE__ */ o(
|
|
1231
|
-
footer: /* @__PURE__ */ o(
|
|
1230
|
+
information: /* @__PURE__ */ o(B, { children: n("testing") }),
|
|
1231
|
+
footer: /* @__PURE__ */ o(S, { disabled: !0, children: n("electrical-test") }),
|
|
1232
1232
|
status: "loading"
|
|
1233
1233
|
},
|
|
1234
1234
|
success: {
|
|
1235
|
-
information: /* @__PURE__ */ o(
|
|
1236
|
-
footer: /* @__PURE__ */ o(
|
|
1235
|
+
information: /* @__PURE__ */ o(B, { children: n("electrical-test-success-header") }),
|
|
1236
|
+
footer: /* @__PURE__ */ o(S, { onPointerDown: i, children: n("electrical-test") }),
|
|
1237
1237
|
status: "success"
|
|
1238
1238
|
},
|
|
1239
1239
|
failure: {
|
|
1240
|
-
information: /* @__PURE__ */
|
|
1241
|
-
/* @__PURE__ */ o(
|
|
1242
|
-
/* @__PURE__ */ o(
|
|
1240
|
+
information: /* @__PURE__ */ g(A, { children: [
|
|
1241
|
+
/* @__PURE__ */ o(B, { children: n("electrical-test-failure-header") }),
|
|
1242
|
+
/* @__PURE__ */ o(U, { children: n(`error.${a}`) })
|
|
1243
1243
|
] }),
|
|
1244
|
-
footer: /* @__PURE__ */ o(
|
|
1244
|
+
footer: /* @__PURE__ */ o(S, { onPointerDown: i, children: n("electrical-test") }),
|
|
1245
1245
|
status: "information"
|
|
1246
1246
|
}
|
|
1247
1247
|
}), [a, n, i]);
|
|
1248
1248
|
return /* @__PURE__ */ o(
|
|
1249
|
-
|
|
1249
|
+
qe,
|
|
1250
1250
|
{
|
|
1251
1251
|
title: n(e.name),
|
|
1252
1252
|
...l[r],
|
|
@@ -1254,61 +1254,61 @@ const or = w.div``, oi = I(() => {
|
|
|
1254
1254
|
}
|
|
1255
1255
|
);
|
|
1256
1256
|
}
|
|
1257
|
-
),
|
|
1257
|
+
), Xe = {
|
|
1258
1258
|
title: "",
|
|
1259
1259
|
summary: "",
|
|
1260
1260
|
successMessage: "",
|
|
1261
1261
|
failureMessage: "",
|
|
1262
1262
|
actionLabel: ""
|
|
1263
|
-
},
|
|
1264
|
-
const [t, n] =
|
|
1263
|
+
}, bi = (e) => {
|
|
1264
|
+
const [t, n] = w(null), [r, s] = w(Xe), a = e.map((c) => {
|
|
1265
1265
|
const [i, , l] = c;
|
|
1266
1266
|
return [i == null ? void 0 : i.future, i, l];
|
|
1267
1267
|
}).flat();
|
|
1268
|
-
return
|
|
1268
|
+
return O(() => {
|
|
1269
1269
|
const c = e.find((i) => {
|
|
1270
1270
|
const [l] = i;
|
|
1271
1271
|
return !!(l != null && l.future);
|
|
1272
1272
|
});
|
|
1273
|
-
c ? (n(c[0]), s(c[2])) : (n(null), s(
|
|
1273
|
+
c ? (n(c[0]), s(c[2])) : (n(null), s(Xe));
|
|
1274
1274
|
}, [...a, e]), [t, r];
|
|
1275
|
-
},
|
|
1275
|
+
}, Er = (e) => {
|
|
1276
1276
|
switch (e) {
|
|
1277
1277
|
case "calibrate":
|
|
1278
|
-
return
|
|
1278
|
+
return jo;
|
|
1279
1279
|
case "fixed-45":
|
|
1280
|
-
return
|
|
1280
|
+
return Wo;
|
|
1281
1281
|
case "flush":
|
|
1282
|
-
return
|
|
1282
|
+
return Go;
|
|
1283
1283
|
case "high-flow-test":
|
|
1284
|
-
return
|
|
1284
|
+
return Xo;
|
|
1285
1285
|
case "hold-to-pour":
|
|
1286
|
-
return
|
|
1286
|
+
return Yo;
|
|
1287
1287
|
case "low-flow-test":
|
|
1288
|
-
return
|
|
1288
|
+
return qo;
|
|
1289
1289
|
case "manual-override":
|
|
1290
|
-
return
|
|
1290
|
+
return Qo;
|
|
1291
1291
|
case "msv-reset":
|
|
1292
|
-
return
|
|
1292
|
+
return Zo;
|
|
1293
1293
|
case "prime":
|
|
1294
|
-
return
|
|
1294
|
+
return Jo;
|
|
1295
1295
|
case "purge":
|
|
1296
|
-
return
|
|
1296
|
+
return er;
|
|
1297
1297
|
default:
|
|
1298
1298
|
return;
|
|
1299
1299
|
}
|
|
1300
|
-
},
|
|
1300
|
+
}, Fr = (e) => (t, n = "intents") => ({
|
|
1301
1301
|
title: e(`${n}:troubles.${t}.progress`),
|
|
1302
1302
|
summary: e(`${n}:troubles.${t}.summary`),
|
|
1303
1303
|
successMessage: e(`${n}:troubles.${t}.success`),
|
|
1304
1304
|
failureMessage: e(`${n}:troubles.${t}.error`),
|
|
1305
1305
|
actionLabel: e(`${n}:troubles.${t}.action`)
|
|
1306
|
-
}),
|
|
1307
|
-
const { t: n } =
|
|
1306
|
+
}), Oe = (e, t = Er) => {
|
|
1307
|
+
const { t: n } = x("troubles"), [r, s] = w(null), [a, c] = w(Xe), i = L(
|
|
1308
1308
|
async (l) => {
|
|
1309
1309
|
const d = t(l);
|
|
1310
1310
|
if (d) {
|
|
1311
|
-
const p =
|
|
1311
|
+
const p = Fr(n)(l);
|
|
1312
1312
|
c(p);
|
|
1313
1313
|
const u = new d(e);
|
|
1314
1314
|
await u.performAction(), s(u);
|
|
@@ -1317,14 +1317,14 @@ const or = w.div``, oi = I(() => {
|
|
|
1317
1317
|
[t, e, n]
|
|
1318
1318
|
);
|
|
1319
1319
|
return [r, i, a];
|
|
1320
|
-
},
|
|
1320
|
+
}, $r = (e) => (_.debug(`pumpActionFactory: actionId=${e}`), nr), Br = (e) => (t, n = "troubles") => ({
|
|
1321
1321
|
title: e(`${n}:troubles.${t}.progress`),
|
|
1322
1322
|
summary: e(`${n}:troubles.${t}.summary`),
|
|
1323
1323
|
successMessage: e(`${n}:troubles.${t}.success`),
|
|
1324
1324
|
failureMessage: e(`${n}:troubles.${t}.error`),
|
|
1325
1325
|
actionLabel: e(`${n}:troubles.${t}.action`)
|
|
1326
|
-
}),
|
|
1327
|
-
const { t: r } =
|
|
1326
|
+
}), vi = (e, t, n = $r) => {
|
|
1327
|
+
const { t: r } = x("troubles"), [s, a] = w(null), [c] = w(Br(r)(t)), i = L(async () => {
|
|
1328
1328
|
const l = n(t);
|
|
1329
1329
|
if (l) {
|
|
1330
1330
|
const d = new l(e, t);
|
|
@@ -1333,121 +1333,121 @@ const or = w.div``, oi = I(() => {
|
|
|
1333
1333
|
}, [n, e, t]);
|
|
1334
1334
|
return [s, i, c];
|
|
1335
1335
|
};
|
|
1336
|
-
function
|
|
1336
|
+
function yi(e) {
|
|
1337
1337
|
return (t) => {
|
|
1338
|
-
const { model: n, status: r, KosModelLoader: s } =
|
|
1338
|
+
const { model: n, status: r, KosModelLoader: s } = nn();
|
|
1339
1339
|
return /* @__PURE__ */ o(s, { ...r, children: /* @__PURE__ */ o(e, { ...t, agitationControl: n }) });
|
|
1340
1340
|
};
|
|
1341
1341
|
}
|
|
1342
|
-
const
|
|
1343
|
-
const e =
|
|
1344
|
-
return
|
|
1342
|
+
const dn = () => {
|
|
1343
|
+
const e = ft.type;
|
|
1344
|
+
return $({
|
|
1345
1345
|
modelId: e,
|
|
1346
|
-
modelType:
|
|
1346
|
+
modelType: ft.type,
|
|
1347
1347
|
options: {}
|
|
1348
1348
|
});
|
|
1349
1349
|
};
|
|
1350
|
-
function
|
|
1350
|
+
function Or(e) {
|
|
1351
1351
|
return (t) => {
|
|
1352
|
-
const { model: n, status: r, KosModelLoader: s } =
|
|
1352
|
+
const { model: n, status: r, KosModelLoader: s } = dn();
|
|
1353
1353
|
return /* @__PURE__ */ o(s, { ...r, children: /* @__PURE__ */ o(e, { ...t, animation: n }) });
|
|
1354
1354
|
};
|
|
1355
1355
|
}
|
|
1356
|
-
const
|
|
1357
|
-
const e =
|
|
1358
|
-
return
|
|
1356
|
+
const Ve = () => {
|
|
1357
|
+
const e = bt.type;
|
|
1358
|
+
return $({
|
|
1359
1359
|
modelId: e,
|
|
1360
|
-
modelType:
|
|
1360
|
+
modelType: bt.type,
|
|
1361
1361
|
options: {}
|
|
1362
1362
|
});
|
|
1363
1363
|
};
|
|
1364
|
-
function
|
|
1364
|
+
function wi(e) {
|
|
1365
1365
|
return (t) => {
|
|
1366
|
-
const { model: n, status: r, KosModelLoader: s } =
|
|
1366
|
+
const { model: n, status: r, KosModelLoader: s } = Ve();
|
|
1367
1367
|
return /* @__PURE__ */ o(s, { ...r, children: /* @__PURE__ */ o(e, { ...t, application: n }) });
|
|
1368
1368
|
};
|
|
1369
1369
|
}
|
|
1370
|
-
const
|
|
1371
|
-
const e =
|
|
1372
|
-
return
|
|
1370
|
+
const Vr = () => {
|
|
1371
|
+
const e = vt.type;
|
|
1372
|
+
return $({
|
|
1373
1373
|
modelId: e,
|
|
1374
|
-
modelType:
|
|
1374
|
+
modelType: vt.type,
|
|
1375
1375
|
options: {}
|
|
1376
1376
|
});
|
|
1377
1377
|
};
|
|
1378
|
-
function
|
|
1378
|
+
function Ci(e) {
|
|
1379
1379
|
return (t) => {
|
|
1380
|
-
const { model: n, status: r, KosModelLoader: s } =
|
|
1380
|
+
const { model: n, status: r, KosModelLoader: s } = Vr();
|
|
1381
1381
|
return /* @__PURE__ */ o(s, { ...r, children: /* @__PURE__ */ o(e, { ...t, carbWater: n }) });
|
|
1382
1382
|
};
|
|
1383
1383
|
}
|
|
1384
|
-
const
|
|
1385
|
-
const e =
|
|
1386
|
-
return
|
|
1384
|
+
const Rr = () => {
|
|
1385
|
+
const e = yt.type;
|
|
1386
|
+
return $({
|
|
1387
1387
|
modelId: e,
|
|
1388
|
-
modelType:
|
|
1388
|
+
modelType: yt.type,
|
|
1389
1389
|
options: {},
|
|
1390
1390
|
activate: !0,
|
|
1391
1391
|
destroyOnUnmount: !0
|
|
1392
1392
|
});
|
|
1393
1393
|
};
|
|
1394
|
-
function
|
|
1394
|
+
function xi(e) {
|
|
1395
1395
|
return (t) => {
|
|
1396
|
-
const { model: n, status: r, KosModelLoader: s } =
|
|
1396
|
+
const { model: n, status: r, KosModelLoader: s } = Rr();
|
|
1397
1397
|
return /* @__PURE__ */ o(s, { ...r, children: /* @__PURE__ */ o(e, { ...t, copyLogs: n }) });
|
|
1398
1398
|
};
|
|
1399
1399
|
}
|
|
1400
|
-
const
|
|
1401
|
-
const e =
|
|
1402
|
-
return
|
|
1400
|
+
const un = () => {
|
|
1401
|
+
const e = wt.type;
|
|
1402
|
+
return $({
|
|
1403
1403
|
modelId: e,
|
|
1404
|
-
modelType:
|
|
1404
|
+
modelType: wt.type,
|
|
1405
1405
|
options: {}
|
|
1406
1406
|
});
|
|
1407
1407
|
};
|
|
1408
|
-
function
|
|
1408
|
+
function Si(e) {
|
|
1409
1409
|
return (t) => {
|
|
1410
|
-
const { model: n, status: r, KosModelLoader: s } =
|
|
1410
|
+
const { model: n, status: r, KosModelLoader: s } = un();
|
|
1411
1411
|
return /* @__PURE__ */ o(s, { ...r, children: /* @__PURE__ */ o(e, { ...t, dashboardOperations: n }) });
|
|
1412
1412
|
};
|
|
1413
1413
|
}
|
|
1414
|
-
const
|
|
1415
|
-
const e =
|
|
1416
|
-
return
|
|
1414
|
+
const pn = () => {
|
|
1415
|
+
const e = Ct.type;
|
|
1416
|
+
return $({
|
|
1417
1417
|
modelId: e,
|
|
1418
|
-
modelType:
|
|
1418
|
+
modelType: Ct.type,
|
|
1419
1419
|
options: {}
|
|
1420
1420
|
});
|
|
1421
1421
|
};
|
|
1422
|
-
function
|
|
1422
|
+
function Nr(e) {
|
|
1423
1423
|
return (t) => {
|
|
1424
|
-
const { model: n, status: r, KosModelLoader: s } =
|
|
1424
|
+
const { model: n, status: r, KosModelLoader: s } = pn();
|
|
1425
1425
|
return /* @__PURE__ */ o(s, { ...r, children: /* @__PURE__ */ o(e, { ...t, dispenserInfo: n }) });
|
|
1426
1426
|
};
|
|
1427
1427
|
}
|
|
1428
|
-
const
|
|
1428
|
+
const Mr = (e) => $({
|
|
1429
1429
|
modelId: e,
|
|
1430
|
-
modelType:
|
|
1430
|
+
modelType: To.type,
|
|
1431
1431
|
options: {}
|
|
1432
1432
|
});
|
|
1433
|
-
function
|
|
1433
|
+
function Pi(e) {
|
|
1434
1434
|
return (t) => {
|
|
1435
|
-
const { model: n, status: r, KosModelLoader: s } =
|
|
1435
|
+
const { model: n, status: r, KosModelLoader: s } = Mr(t.id);
|
|
1436
1436
|
return /* @__PURE__ */ o(s, { ...r, children: /* @__PURE__ */ o(e, { ...t, door: n }) });
|
|
1437
1437
|
};
|
|
1438
1438
|
}
|
|
1439
|
-
const
|
|
1440
|
-
[
|
|
1441
|
-
[
|
|
1442
|
-
[
|
|
1443
|
-
},
|
|
1439
|
+
const Bt = {
|
|
1440
|
+
[Jt]: "setupDescriptor",
|
|
1441
|
+
[Ho]: "cuiDescriptor",
|
|
1442
|
+
[zo]: "utilDescriptor"
|
|
1443
|
+
}, Hr = ({
|
|
1444
1444
|
defaultNamespace: e,
|
|
1445
1445
|
extensionPoint: t
|
|
1446
1446
|
}) => {
|
|
1447
|
-
const { getExtensions: n } =
|
|
1447
|
+
const { getExtensions: n } = et(), r = n(t), s = r.map((l) => l.data.namespace) || [], { t: a } = x([e, ...new Set(s)]), c = r.reduce(
|
|
1448
1448
|
(l, d) => {
|
|
1449
1449
|
const p = d;
|
|
1450
|
-
return l[p.data[
|
|
1450
|
+
return l[p.data[Bt[t]]] = {
|
|
1451
1451
|
extension: t,
|
|
1452
1452
|
module: p.id,
|
|
1453
1453
|
namespace: p.data.namespace,
|
|
@@ -1457,36 +1457,49 @@ const At = {
|
|
|
1457
1457
|
{}
|
|
1458
1458
|
), i = r.reduce((l, d) => {
|
|
1459
1459
|
const p = d;
|
|
1460
|
-
return l[p.data[
|
|
1460
|
+
return l[p.data[Bt[t]]] = `${p.data.namespace}:${p.data.title}`, l;
|
|
1461
1461
|
}, {});
|
|
1462
1462
|
return { namespaces: s, t: a, labelMap: i, contributionMap: c };
|
|
1463
|
-
},
|
|
1463
|
+
}, rt = (e, t) => {
|
|
1464
1464
|
const n = D(() => ({
|
|
1465
|
-
agitate:
|
|
1465
|
+
agitate: rr,
|
|
1466
1466
|
calibrate: ({ holder: c, pump: i, onComplete: l }) => {
|
|
1467
|
-
const d =
|
|
1467
|
+
const d = Ae(
|
|
1468
1468
|
i ?? c.pumps.data[0],
|
|
1469
|
-
|
|
1469
|
+
We.type
|
|
1470
|
+
);
|
|
1471
|
+
return /* @__PURE__ */ o(dr, { pump: d, onComplete: l });
|
|
1472
|
+
},
|
|
1473
|
+
calibrateSPM: ({ holder: c, pump: i, onComplete: l }) => {
|
|
1474
|
+
const d = Ae(
|
|
1475
|
+
i ?? c.pumps.data[0],
|
|
1476
|
+
Qt.type
|
|
1477
|
+
);
|
|
1478
|
+
return /* @__PURE__ */ o(
|
|
1479
|
+
js,
|
|
1480
|
+
{
|
|
1481
|
+
pump: d,
|
|
1482
|
+
onComplete: l
|
|
1483
|
+
}
|
|
1470
1484
|
);
|
|
1471
|
-
return /* @__PURE__ */ o(rr, { pump: d, onComplete: l });
|
|
1472
1485
|
},
|
|
1473
1486
|
diagnostics: ({ holder: c, pump: i, onComplete: l }) => {
|
|
1474
|
-
const d =
|
|
1487
|
+
const d = Ae(
|
|
1475
1488
|
i ?? c.pumps.data[0],
|
|
1476
|
-
|
|
1489
|
+
We.type
|
|
1477
1490
|
);
|
|
1478
|
-
return /* @__PURE__ */ o(
|
|
1491
|
+
return /* @__PURE__ */ o(Lr, { pump: d, onComplete: l });
|
|
1479
1492
|
},
|
|
1480
1493
|
"replace-pump": ({ holder: c, pump: i, onComplete: l }) => /* @__PURE__ */ o(
|
|
1481
|
-
|
|
1494
|
+
Ns,
|
|
1482
1495
|
{
|
|
1483
1496
|
pump: i ?? c.pumps.data[0],
|
|
1484
1497
|
onComplete: l
|
|
1485
1498
|
}
|
|
1486
1499
|
),
|
|
1487
|
-
"rfid-override":
|
|
1488
|
-
"replace-line": ({ holder: c, onComplete: i }) => /* @__PURE__ */ o(
|
|
1489
|
-
}), []), [r, s] =
|
|
1500
|
+
"rfid-override": zs,
|
|
1501
|
+
"replace-line": ({ holder: c, onComplete: i }) => /* @__PURE__ */ o(Vs, { holder: c, onComplete: i })
|
|
1502
|
+
}), []), [r, s] = w(void 0), a = r ? n[r] : void 0;
|
|
1490
1503
|
return {
|
|
1491
1504
|
holderExperience: a ? /* @__PURE__ */ o(
|
|
1492
1505
|
a,
|
|
@@ -1501,150 +1514,152 @@ const At = {
|
|
|
1501
1514
|
setHolderExperience: s,
|
|
1502
1515
|
currentExperienceId: r
|
|
1503
1516
|
};
|
|
1504
|
-
},
|
|
1505
|
-
const n =
|
|
1517
|
+
}, mn = V(void 0), ki = ({ children: e, value: t }) => /* @__PURE__ */ o(mn.Provider, { value: t, children: e }), zr = (e) => ({ HolderContent: void 0 }), hn = (e, t = zr) => {
|
|
1518
|
+
const n = R(mn);
|
|
1506
1519
|
return t = (n == null ? void 0 : n.actionFactory) || t, t(e);
|
|
1507
|
-
},
|
|
1508
|
-
const e =
|
|
1509
|
-
return
|
|
1520
|
+
}, gn = () => {
|
|
1521
|
+
const e = xt.type;
|
|
1522
|
+
return $({
|
|
1510
1523
|
modelId: e,
|
|
1511
|
-
modelType:
|
|
1524
|
+
modelType: xt.type,
|
|
1512
1525
|
options: {}
|
|
1513
1526
|
});
|
|
1514
1527
|
};
|
|
1515
|
-
function
|
|
1528
|
+
function Ii(e) {
|
|
1516
1529
|
return () => (t) => {
|
|
1517
|
-
const { model: n, status: r, KosModelLoader: s } =
|
|
1530
|
+
const { model: n, status: r, KosModelLoader: s } = gn();
|
|
1518
1531
|
return /* @__PURE__ */ o(s, { ...r, children: /* @__PURE__ */ o(e, { ...t, ingredientSummary: n }) });
|
|
1519
1532
|
};
|
|
1520
1533
|
}
|
|
1521
|
-
const
|
|
1522
|
-
const e =
|
|
1523
|
-
return
|
|
1534
|
+
const fn = () => {
|
|
1535
|
+
const e = St.type;
|
|
1536
|
+
return $({
|
|
1524
1537
|
modelId: e,
|
|
1525
|
-
modelType:
|
|
1538
|
+
modelType: St.type,
|
|
1526
1539
|
options: {}
|
|
1527
1540
|
});
|
|
1528
1541
|
};
|
|
1529
|
-
function
|
|
1542
|
+
function _r(e) {
|
|
1530
1543
|
return (t) => {
|
|
1531
|
-
const { model: n, status: r, KosModelLoader: s } =
|
|
1544
|
+
const { model: n, status: r, KosModelLoader: s } = fn();
|
|
1532
1545
|
return /* @__PURE__ */ o(s, { ...r, children: /* @__PURE__ */ o(e, { ...t, macroAssignment: n }) });
|
|
1533
1546
|
};
|
|
1534
1547
|
}
|
|
1535
|
-
const
|
|
1548
|
+
const bn = (e) => $({
|
|
1536
1549
|
modelId: e,
|
|
1537
|
-
modelType:
|
|
1550
|
+
modelType: Do.type,
|
|
1538
1551
|
options: {}
|
|
1539
1552
|
});
|
|
1540
|
-
function
|
|
1553
|
+
function Ti(e) {
|
|
1541
1554
|
return (t) => (n) => {
|
|
1542
|
-
const { model: r, status: s, KosModelLoader: a } =
|
|
1555
|
+
const { model: r, status: s, KosModelLoader: a } = bn(t);
|
|
1543
1556
|
return /* @__PURE__ */ o(a, { ...s, children: /* @__PURE__ */ o(e, { ...n, networkTest: r }) });
|
|
1544
1557
|
};
|
|
1545
1558
|
}
|
|
1546
|
-
const
|
|
1547
|
-
const e =
|
|
1548
|
-
return
|
|
1559
|
+
const vn = () => {
|
|
1560
|
+
const e = Pt.type;
|
|
1561
|
+
return $({
|
|
1549
1562
|
modelId: e,
|
|
1550
|
-
modelType:
|
|
1563
|
+
modelType: Pt.type,
|
|
1551
1564
|
options: {}
|
|
1552
1565
|
});
|
|
1553
1566
|
};
|
|
1554
|
-
function
|
|
1567
|
+
function Ur(e) {
|
|
1555
1568
|
return (t) => {
|
|
1556
|
-
const { model: n, status: r, KosModelLoader: s } =
|
|
1569
|
+
const { model: n, status: r, KosModelLoader: s } = vn();
|
|
1557
1570
|
return /* @__PURE__ */ o(s, { ...r, children: /* @__PURE__ */ o(e, { ...t, networkTestContainer: n }) });
|
|
1558
1571
|
};
|
|
1559
1572
|
}
|
|
1560
|
-
const
|
|
1561
|
-
const e =
|
|
1562
|
-
return
|
|
1573
|
+
const Kr = () => {
|
|
1574
|
+
const e = kt.type;
|
|
1575
|
+
return $({
|
|
1563
1576
|
modelId: e,
|
|
1564
|
-
modelType:
|
|
1577
|
+
modelType: kt.type,
|
|
1565
1578
|
options: {}
|
|
1566
1579
|
});
|
|
1567
1580
|
};
|
|
1568
|
-
function
|
|
1581
|
+
function Di(e) {
|
|
1569
1582
|
return (t) => {
|
|
1570
|
-
const { model: n, status: r, KosModelLoader: s } =
|
|
1583
|
+
const { model: n, status: r, KosModelLoader: s } = Kr();
|
|
1571
1584
|
return /* @__PURE__ */ o(s, { ...r, children: /* @__PURE__ */ o(e, { ...t, nutritiveSweetener: n }) });
|
|
1572
1585
|
};
|
|
1573
1586
|
}
|
|
1574
|
-
const
|
|
1575
|
-
const e =
|
|
1576
|
-
return
|
|
1587
|
+
const jr = () => {
|
|
1588
|
+
const e = It.type;
|
|
1589
|
+
return $({
|
|
1577
1590
|
modelId: e,
|
|
1578
|
-
modelType:
|
|
1591
|
+
modelType: It.type,
|
|
1579
1592
|
options: {},
|
|
1580
1593
|
destroyOnUnmount: !0
|
|
1581
1594
|
});
|
|
1582
1595
|
};
|
|
1583
|
-
function
|
|
1596
|
+
function Ai(e) {
|
|
1584
1597
|
return (t) => {
|
|
1585
|
-
const { model: n, status: r, KosModelLoader: s } =
|
|
1598
|
+
const { model: n, status: r, KosModelLoader: s } = jr();
|
|
1586
1599
|
return /* @__PURE__ */ o(s, { ...r, children: /* @__PURE__ */ o(e, { ...t, plainWater: n }) });
|
|
1587
1600
|
};
|
|
1588
1601
|
}
|
|
1589
|
-
const
|
|
1602
|
+
const Li = (e) => {
|
|
1590
1603
|
switch (e.type) {
|
|
1591
1604
|
case "fcm":
|
|
1592
|
-
return
|
|
1605
|
+
return We.type;
|
|
1593
1606
|
case "lfcv":
|
|
1594
|
-
return
|
|
1607
|
+
return Ao.type;
|
|
1608
|
+
case "micro":
|
|
1609
|
+
return Qt.type;
|
|
1595
1610
|
default:
|
|
1596
1611
|
return;
|
|
1597
1612
|
}
|
|
1598
|
-
},
|
|
1599
|
-
|
|
1613
|
+
}, Q = "pluginVisibility", Te = /* @__PURE__ */ new Map();
|
|
1614
|
+
Gn(Q, {
|
|
1600
1615
|
register: (e, t) => {
|
|
1601
1616
|
var n;
|
|
1602
|
-
|
|
1617
|
+
Te.has(e) || Te.set(e, []), (n = Te.get(e)) == null || n.push(t);
|
|
1603
1618
|
},
|
|
1604
1619
|
execute: (e, t, n) => {
|
|
1605
|
-
const r =
|
|
1620
|
+
const r = Te.get(e);
|
|
1606
1621
|
if (!r)
|
|
1607
1622
|
return !0;
|
|
1608
1623
|
const s = r.map((a) => a(t, n));
|
|
1609
1624
|
return s.length === 0 ? !0 : !s.includes(!1);
|
|
1610
1625
|
}
|
|
1611
1626
|
});
|
|
1612
|
-
class
|
|
1627
|
+
class Wr {
|
|
1613
1628
|
constructor(t, n) {
|
|
1614
|
-
|
|
1615
|
-
|
|
1629
|
+
F(this, "core");
|
|
1630
|
+
F(this, "dispense");
|
|
1616
1631
|
this.core = t, this.dispense = n;
|
|
1617
1632
|
}
|
|
1618
1633
|
/**
|
|
1619
1634
|
* Registers a plugin visibility filter
|
|
1620
1635
|
* */
|
|
1621
1636
|
registerDashboardVisibilityFilter(t) {
|
|
1622
|
-
return
|
|
1623
|
-
|
|
1637
|
+
return pe[Q].register(
|
|
1638
|
+
Q,
|
|
1624
1639
|
t
|
|
1625
1640
|
), this;
|
|
1626
1641
|
}
|
|
1627
1642
|
registerNavVisibilityFilter(t) {
|
|
1628
|
-
return
|
|
1629
|
-
|
|
1643
|
+
return pe[Q].register(
|
|
1644
|
+
Q,
|
|
1630
1645
|
t
|
|
1631
1646
|
), this;
|
|
1632
1647
|
}
|
|
1633
1648
|
}
|
|
1634
|
-
class
|
|
1649
|
+
class Ei {
|
|
1635
1650
|
constructor() {
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
this.dispense = new
|
|
1651
|
+
F(this, "dispense");
|
|
1652
|
+
F(this, "core");
|
|
1653
|
+
F(this, "plugin");
|
|
1654
|
+
this.dispense = new Ro(), this.core = new Xn(), this.plugin = new Wr(this.core, this.dispense);
|
|
1640
1655
|
}
|
|
1641
1656
|
}
|
|
1642
|
-
const
|
|
1657
|
+
const st = (e) => e ? Gr(e.type) : {
|
|
1643
1658
|
action: "",
|
|
1644
1659
|
label: "",
|
|
1645
1660
|
progress: "",
|
|
1646
1661
|
summary: ""
|
|
1647
|
-
},
|
|
1662
|
+
}, Gr = (e) => {
|
|
1648
1663
|
const t = `troubles:troubles.${e}`;
|
|
1649
1664
|
return {
|
|
1650
1665
|
action: `${t}.action`,
|
|
@@ -1652,14 +1667,14 @@ const tt = (e) => e ? _r(e.type) : {
|
|
|
1652
1667
|
progress: `${t}.progress`,
|
|
1653
1668
|
summary: `${t}.summary`
|
|
1654
1669
|
};
|
|
1655
|
-
},
|
|
1656
|
-
const { getExtensions: t } =
|
|
1670
|
+
}, Re = (e) => {
|
|
1671
|
+
const { getExtensions: t } = et();
|
|
1657
1672
|
return {
|
|
1658
1673
|
getExtensions: L(
|
|
1659
1674
|
(r) => t(r).filter((c) => {
|
|
1660
1675
|
const i = c.id;
|
|
1661
|
-
return
|
|
1662
|
-
|
|
1676
|
+
return pe[Q].execute(
|
|
1677
|
+
Q,
|
|
1663
1678
|
i,
|
|
1664
1679
|
e
|
|
1665
1680
|
);
|
|
@@ -1667,153 +1682,153 @@ const tt = (e) => e ? _r(e.type) : {
|
|
|
1667
1682
|
[t, e]
|
|
1668
1683
|
)
|
|
1669
1684
|
};
|
|
1670
|
-
},
|
|
1671
|
-
const e =
|
|
1672
|
-
return
|
|
1685
|
+
}, it = () => {
|
|
1686
|
+
const e = Tt.type;
|
|
1687
|
+
return $({
|
|
1673
1688
|
modelId: e,
|
|
1674
|
-
modelType:
|
|
1689
|
+
modelType: Tt.type,
|
|
1675
1690
|
options: {}
|
|
1676
1691
|
});
|
|
1677
1692
|
};
|
|
1678
|
-
function
|
|
1693
|
+
function Fi(e) {
|
|
1679
1694
|
return () => (t) => {
|
|
1680
|
-
const { model: n, status: r, KosModelLoader: s } =
|
|
1695
|
+
const { model: n, status: r, KosModelLoader: s } = it();
|
|
1681
1696
|
return /* @__PURE__ */ o(s, { ...r, children: /* @__PURE__ */ o(e, { ...t, reboot: n }) });
|
|
1682
1697
|
};
|
|
1683
1698
|
}
|
|
1684
|
-
const
|
|
1685
|
-
const e =
|
|
1686
|
-
return
|
|
1699
|
+
const at = () => {
|
|
1700
|
+
const e = Dt.type;
|
|
1701
|
+
return $({
|
|
1687
1702
|
modelId: e,
|
|
1688
|
-
modelType:
|
|
1703
|
+
modelType: Dt.type,
|
|
1689
1704
|
options: {}
|
|
1690
1705
|
});
|
|
1691
1706
|
};
|
|
1692
|
-
function
|
|
1707
|
+
function yn(e) {
|
|
1693
1708
|
return (t) => {
|
|
1694
|
-
const { model: n, status: r, KosModelLoader: s } =
|
|
1709
|
+
const { model: n, status: r, KosModelLoader: s } = at();
|
|
1695
1710
|
return /* @__PURE__ */ o(s, { ...r, children: /* @__PURE__ */ o(e, { ...t, settings: n }) });
|
|
1696
1711
|
};
|
|
1697
1712
|
}
|
|
1698
|
-
const
|
|
1713
|
+
const wn = (e) => $({
|
|
1699
1714
|
modelId: e,
|
|
1700
|
-
modelType:
|
|
1715
|
+
modelType: Lo.type,
|
|
1701
1716
|
options: {}
|
|
1702
1717
|
});
|
|
1703
|
-
function
|
|
1718
|
+
function $i(e) {
|
|
1704
1719
|
return (t) => (n) => {
|
|
1705
|
-
const { model: r, status: s, KosModelLoader: a } =
|
|
1720
|
+
const { model: r, status: s, KosModelLoader: a } = wn(t);
|
|
1706
1721
|
return /* @__PURE__ */ o(a, { ...s, children: /* @__PURE__ */ o(e, { ...n, setupStep: r }) });
|
|
1707
1722
|
};
|
|
1708
1723
|
}
|
|
1709
|
-
const
|
|
1710
|
-
const e =
|
|
1711
|
-
return
|
|
1724
|
+
const Cn = () => {
|
|
1725
|
+
const e = At.type;
|
|
1726
|
+
return $({
|
|
1712
1727
|
modelId: e,
|
|
1713
|
-
modelType:
|
|
1728
|
+
modelType: At.type,
|
|
1714
1729
|
options: {}
|
|
1715
1730
|
});
|
|
1716
1731
|
};
|
|
1717
|
-
function
|
|
1732
|
+
function Xr(e) {
|
|
1718
1733
|
return (t) => {
|
|
1719
|
-
const { model: n, status: r, KosModelLoader: s } =
|
|
1734
|
+
const { model: n, status: r, KosModelLoader: s } = Cn();
|
|
1720
1735
|
return /* @__PURE__ */ o(s, { ...r, children: /* @__PURE__ */ o(e, { ...t, setupStepContainer: n }) });
|
|
1721
1736
|
};
|
|
1722
1737
|
}
|
|
1723
|
-
const
|
|
1724
|
-
const e =
|
|
1725
|
-
return
|
|
1738
|
+
const Yr = () => {
|
|
1739
|
+
const e = Lt.type;
|
|
1740
|
+
return $({
|
|
1726
1741
|
modelId: e,
|
|
1727
|
-
modelType:
|
|
1742
|
+
modelType: Lt.type,
|
|
1728
1743
|
options: {}
|
|
1729
1744
|
});
|
|
1730
1745
|
};
|
|
1731
|
-
function
|
|
1746
|
+
function Bi(e) {
|
|
1732
1747
|
return (t) => {
|
|
1733
|
-
const { model: n, status: r, KosModelLoader: s } =
|
|
1748
|
+
const { model: n, status: r, KosModelLoader: s } = Yr();
|
|
1734
1749
|
return /* @__PURE__ */ o(s, { ...r, children: /* @__PURE__ */ o(e, { ...t, start: n }) });
|
|
1735
1750
|
};
|
|
1736
1751
|
}
|
|
1737
|
-
const
|
|
1738
|
-
const e =
|
|
1739
|
-
|
|
1752
|
+
const xn = () => {
|
|
1753
|
+
const e = Et.type, { getExtensions: t } = Re(), n = t(
|
|
1754
|
+
Ge
|
|
1740
1755
|
).map((s) => s.data);
|
|
1741
|
-
return
|
|
1756
|
+
return $({
|
|
1742
1757
|
modelId: e,
|
|
1743
|
-
modelType:
|
|
1758
|
+
modelType: Et.type,
|
|
1744
1759
|
options: {
|
|
1745
1760
|
definitions: n
|
|
1746
1761
|
}
|
|
1747
1762
|
});
|
|
1748
1763
|
};
|
|
1749
|
-
function
|
|
1764
|
+
function Oi(e) {
|
|
1750
1765
|
return (t) => {
|
|
1751
|
-
const { model: n, status: r, KosModelLoader: s } =
|
|
1766
|
+
const { model: n, status: r, KosModelLoader: s } = xn();
|
|
1752
1767
|
return /* @__PURE__ */ o(s, { ...r, children: /* @__PURE__ */ o(e, { ...t, troubleAction: n }) });
|
|
1753
1768
|
};
|
|
1754
1769
|
}
|
|
1755
|
-
const
|
|
1770
|
+
const Vi = ({
|
|
1756
1771
|
troubleType: e,
|
|
1757
1772
|
condition: t
|
|
1758
1773
|
}) => {
|
|
1759
|
-
const { model: n } =
|
|
1760
|
-
return
|
|
1774
|
+
const { model: n } = Yn(), [r, s] = w(!1), [a, c] = w([]);
|
|
1775
|
+
return O(() => ne(() => {
|
|
1761
1776
|
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;
|
|
1762
1777
|
s(d.length > 0), c(d);
|
|
1763
1778
|
}), [t, n, e]), [r, a.length > 0 ? a[0] : void 0, a];
|
|
1764
|
-
},
|
|
1779
|
+
}, Sn = (e) => $({
|
|
1765
1780
|
modelId: e,
|
|
1766
|
-
modelType:
|
|
1781
|
+
modelType: Eo.type,
|
|
1767
1782
|
options: {}
|
|
1768
1783
|
});
|
|
1769
|
-
function
|
|
1784
|
+
function Ri(e) {
|
|
1770
1785
|
return (t) => (n) => {
|
|
1771
|
-
const { model: r, status: s, KosModelLoader: a } =
|
|
1786
|
+
const { model: r, status: s, KosModelLoader: a } = Sn(t);
|
|
1772
1787
|
return /* @__PURE__ */ o(a, { ...s, children: /* @__PURE__ */ o(e, { ...n, utilities: r }) });
|
|
1773
1788
|
};
|
|
1774
1789
|
}
|
|
1775
|
-
const
|
|
1776
|
-
const e =
|
|
1777
|
-
return
|
|
1790
|
+
const Pn = () => {
|
|
1791
|
+
const e = Ft.type;
|
|
1792
|
+
return $({
|
|
1778
1793
|
modelId: e,
|
|
1779
|
-
modelType:
|
|
1794
|
+
modelType: Ft.type,
|
|
1780
1795
|
options: {}
|
|
1781
1796
|
});
|
|
1782
1797
|
};
|
|
1783
|
-
function
|
|
1798
|
+
function Ni(e) {
|
|
1784
1799
|
return (t) => {
|
|
1785
|
-
const { model: n, status: r, KosModelLoader: s } =
|
|
1800
|
+
const { model: n, status: r, KosModelLoader: s } = Pn();
|
|
1786
1801
|
return /* @__PURE__ */ o(s, { ...r, children: /* @__PURE__ */ o(e, { ...t, utilitiesContainer: n }) });
|
|
1787
1802
|
};
|
|
1788
1803
|
}
|
|
1789
|
-
const
|
|
1790
|
-
|
|
1791
|
-
const { t } =
|
|
1792
|
-
return /* @__PURE__ */ o(
|
|
1804
|
+
const qr = qn(
|
|
1805
|
+
T(({ device: e }) => {
|
|
1806
|
+
const { t } = x("dispenser-profile"), r = e.serialNumber === "unassigned" ? void 0 : e.serialNumber;
|
|
1807
|
+
return /* @__PURE__ */ o(ee, { label: t("dispenser-serial"), value: r });
|
|
1793
1808
|
})
|
|
1794
|
-
),
|
|
1795
|
-
|
|
1796
|
-
const { t } =
|
|
1797
|
-
return /* @__PURE__ */
|
|
1809
|
+
), Mi = Nr(
|
|
1810
|
+
T(({ dispenserInfo: e }) => {
|
|
1811
|
+
const { t } = x("dispenser-profile");
|
|
1812
|
+
return /* @__PURE__ */ g(A, { children: [
|
|
1798
1813
|
/* @__PURE__ */ o(
|
|
1799
|
-
|
|
1814
|
+
hr,
|
|
1800
1815
|
{
|
|
1801
1816
|
label: t("dispenser-name", "Dispenser Name"),
|
|
1802
1817
|
configProperty: e.name
|
|
1803
1818
|
}
|
|
1804
1819
|
),
|
|
1805
|
-
/* @__PURE__ */ o(
|
|
1820
|
+
/* @__PURE__ */ o(qr, {})
|
|
1806
1821
|
] });
|
|
1807
1822
|
})
|
|
1808
|
-
),
|
|
1809
|
-
|
|
1810
|
-
const { t } =
|
|
1823
|
+
), Hi = yn(
|
|
1824
|
+
T(({ settings: e }) => {
|
|
1825
|
+
const { t } = x("dispenser-profile"), n = (r) => {
|
|
1811
1826
|
if (r && r.length >= 25)
|
|
1812
1827
|
return "The name shouldn’t exceed 25 characters.";
|
|
1813
1828
|
};
|
|
1814
|
-
return /* @__PURE__ */
|
|
1829
|
+
return /* @__PURE__ */ g(A, { children: [
|
|
1815
1830
|
/* @__PURE__ */ o(
|
|
1816
|
-
|
|
1831
|
+
nt,
|
|
1817
1832
|
{
|
|
1818
1833
|
closeButtonLabel: t("close", "Close") || void 0,
|
|
1819
1834
|
configProperty: e == null ? void 0 : e.name,
|
|
@@ -1824,7 +1839,7 @@ const Kr = Kn(
|
|
|
1824
1839
|
}
|
|
1825
1840
|
),
|
|
1826
1841
|
/* @__PURE__ */ o(
|
|
1827
|
-
|
|
1842
|
+
Tr,
|
|
1828
1843
|
{
|
|
1829
1844
|
label: t("activate-and-reboot-time"),
|
|
1830
1845
|
configProperty: e.activateAndRebootTime
|
|
@@ -1832,36 +1847,36 @@ const Kr = Kn(
|
|
|
1832
1847
|
)
|
|
1833
1848
|
] });
|
|
1834
1849
|
})
|
|
1835
|
-
),
|
|
1850
|
+
), kn = v(Ze)`
|
|
1836
1851
|
color: var(--ddk-generic-color-grey-60);
|
|
1837
1852
|
font-size: var(--ddk-component-enjoy-by-font-size-small);
|
|
1838
1853
|
font-weight: var(--ddk-component-enjoy-by-font-weight-small);
|
|
1839
|
-
`,
|
|
1854
|
+
`, Qr = v(Ze)`
|
|
1840
1855
|
color: var(--ddk-component-dashboard-enjoy-by-trouble-warning-color);
|
|
1841
|
-
`,
|
|
1856
|
+
`, Zr = v(kn)`
|
|
1842
1857
|
color: var(--ddk-component-dashboard-enjoy-by-trouble-warning-color);
|
|
1843
|
-
`,
|
|
1844
|
-
const { t: n } =
|
|
1858
|
+
`, Jr = ({ holder: e, size: t }) => {
|
|
1859
|
+
const { t: n } = x("common"), { regionModel: r } = Y(), s = !!e.enjoyByDate, a = e.enjoyByDate ?? /* @__PURE__ */ new Date(), { formattedDate: c } = Qn({
|
|
1845
1860
|
year: a.getFullYear(),
|
|
1846
1861
|
month: a.getMonth(),
|
|
1847
1862
|
day: a.getDay(),
|
|
1848
1863
|
formatString: (r == null ? void 0 : r.selectedDateFormat) || ""
|
|
1849
|
-
}), i = e.hasEnjoyByWarning ? t === "small" ?
|
|
1864
|
+
}), i = e.hasEnjoyByWarning ? t === "small" ? Zr : Qr : t === "small" ? kn : Ze;
|
|
1850
1865
|
return s && /* @__PURE__ */ o(i, { children: n("enjoy-by", { data: { date: c } }) });
|
|
1851
|
-
},
|
|
1852
|
-
const { t: n } =
|
|
1866
|
+
}, es = ({ item: e, valueKey: t }) => {
|
|
1867
|
+
const { t: n } = x("hardware-info"), { linked: r } = e;
|
|
1853
1868
|
if (t === "link.serialNum" && !r)
|
|
1854
|
-
return /* @__PURE__ */ o(
|
|
1855
|
-
const s =
|
|
1869
|
+
return /* @__PURE__ */ o(oo, { children: n("not-connected") });
|
|
1870
|
+
const s = ro(e, t);
|
|
1856
1871
|
return s || "—";
|
|
1857
|
-
},
|
|
1872
|
+
}, ts = v(jt)`
|
|
1858
1873
|
& ul {
|
|
1859
1874
|
list-style-type: none;
|
|
1860
1875
|
margin: 0;
|
|
1861
1876
|
padding: 0;
|
|
1862
1877
|
}
|
|
1863
|
-
`,
|
|
1864
|
-
const { model: e } =
|
|
1878
|
+
`, zi = T(() => {
|
|
1879
|
+
const { model: e } = No(), { t } = x("hardware-info"), n = (e == null ? void 0 : e.boardList.map((r) => {
|
|
1865
1880
|
var s, a, c;
|
|
1866
1881
|
return {
|
|
1867
1882
|
...r,
|
|
@@ -1872,9 +1887,9 @@ const Kr = Kn(
|
|
|
1872
1887
|
};
|
|
1873
1888
|
})) || [];
|
|
1874
1889
|
return e && e.boardList && /* @__PURE__ */ o(
|
|
1875
|
-
|
|
1890
|
+
ts,
|
|
1876
1891
|
{
|
|
1877
|
-
CellRenderer:
|
|
1892
|
+
CellRenderer: es,
|
|
1878
1893
|
data: n,
|
|
1879
1894
|
dataKeys: [
|
|
1880
1895
|
"name",
|
|
@@ -1893,19 +1908,19 @@ const Kr = Kn(
|
|
|
1893
1908
|
heading: t("tower") || void 0
|
|
1894
1909
|
}
|
|
1895
1910
|
);
|
|
1896
|
-
}),
|
|
1911
|
+
}), Ne = ({
|
|
1897
1912
|
disabled: e,
|
|
1898
1913
|
model: t,
|
|
1899
1914
|
onPour: n,
|
|
1900
1915
|
onPourCancel: r,
|
|
1901
1916
|
...s
|
|
1902
1917
|
}) => {
|
|
1903
|
-
const { t: a } =
|
|
1918
|
+
const { t: a } = x("common"), [c, i] = w(
|
|
1904
1919
|
t.isPouring ? "halt" : "idle"
|
|
1905
|
-
), l =
|
|
1906
|
-
|
|
1920
|
+
), l = ht(), d = ht(!1), p = 250;
|
|
1921
|
+
O(() => ne(() => {
|
|
1907
1922
|
t.isPouring || (d.current = !1, clearTimeout(l.current), l.current = void 0, i("idle"));
|
|
1908
|
-
}), [t]),
|
|
1923
|
+
}), [t]), O(
|
|
1909
1924
|
() => (
|
|
1910
1925
|
// If the model changes, or if the component is unmounted, cancel the
|
|
1911
1926
|
// pour...
|
|
@@ -1919,20 +1934,20 @@ const Kr = Kn(
|
|
|
1919
1934
|
t && (e || t.isPouring || (t.performIntent("HOLD_TO_POUR"), l.current = setTimeout(() => {
|
|
1920
1935
|
d.current = !0, l.current = void 0, i("run");
|
|
1921
1936
|
}, p)));
|
|
1922
|
-
}, [e, t]),
|
|
1937
|
+
}, [e, t]), h = L(() => {
|
|
1923
1938
|
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")));
|
|
1924
|
-
}, [t]),
|
|
1925
|
-
c !== "halt" &&
|
|
1926
|
-
}, [
|
|
1939
|
+
}, [t]), m = L(() => {
|
|
1940
|
+
c !== "halt" && h();
|
|
1941
|
+
}, [h, c]);
|
|
1927
1942
|
return /* @__PURE__ */ o(
|
|
1928
|
-
|
|
1943
|
+
so,
|
|
1929
1944
|
{
|
|
1930
1945
|
disabled: e,
|
|
1931
1946
|
mode: "primary",
|
|
1932
|
-
onPointerCancel:
|
|
1947
|
+
onPointerCancel: h,
|
|
1933
1948
|
onPointerDown: u,
|
|
1934
|
-
onPointerOut:
|
|
1935
|
-
onPointerUp:
|
|
1949
|
+
onPointerOut: m,
|
|
1950
|
+
onPointerUp: h,
|
|
1936
1951
|
...s,
|
|
1937
1952
|
state: c,
|
|
1938
1953
|
children: a(
|
|
@@ -1940,19 +1955,19 @@ const Kr = Kn(
|
|
|
1940
1955
|
)
|
|
1941
1956
|
}
|
|
1942
1957
|
);
|
|
1943
|
-
},
|
|
1958
|
+
}, In = V(
|
|
1944
1959
|
void 0
|
|
1945
|
-
),
|
|
1946
|
-
const { model: t, ready: n } =
|
|
1947
|
-
return /* @__PURE__ */ o(
|
|
1948
|
-
},
|
|
1949
|
-
const e =
|
|
1960
|
+
), _i = ({ children: e }) => {
|
|
1961
|
+
const { model: t, ready: n } = dn(), r = D(() => n && t ? { model: t } : {}, [n, t]);
|
|
1962
|
+
return /* @__PURE__ */ o(In.Provider, { value: r, children: e });
|
|
1963
|
+
}, Ui = () => {
|
|
1964
|
+
const e = R(In);
|
|
1950
1965
|
if (!e)
|
|
1951
1966
|
throw new Error(
|
|
1952
1967
|
"useAnimationContext must be used within a AnimationProvider"
|
|
1953
1968
|
);
|
|
1954
1969
|
return e;
|
|
1955
|
-
},
|
|
1970
|
+
}, Ki = Or(
|
|
1956
1971
|
({
|
|
1957
1972
|
animation: e,
|
|
1958
1973
|
animationOverrides: t,
|
|
@@ -1960,11 +1975,11 @@ const Kr = Kn(
|
|
|
1960
1975
|
componentModeOverride: r,
|
|
1961
1976
|
modalModeOverride: s
|
|
1962
1977
|
}) => {
|
|
1963
|
-
const [a, c] =
|
|
1964
|
-
return
|
|
1965
|
-
const u =
|
|
1966
|
-
const
|
|
1967
|
-
c(
|
|
1978
|
+
const [a, c] = w(!0), [i, l] = w(!0), [d, p] = w(!0);
|
|
1979
|
+
return O(() => {
|
|
1980
|
+
const u = ne(() => {
|
|
1981
|
+
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), C = !!(!(t != null && t.disableAll) && (t != null && t.enableSideBar)) && !!(!e.disableAll.value && e.enableSideBar.value);
|
|
1982
|
+
c(h), l(m), p(C);
|
|
1968
1983
|
});
|
|
1969
1984
|
return () => {
|
|
1970
1985
|
u();
|
|
@@ -1976,7 +1991,7 @@ const Kr = Kn(
|
|
|
1976
1991
|
t == null ? void 0 : t.enableModal,
|
|
1977
1992
|
t == null ? void 0 : t.enableSideBar
|
|
1978
1993
|
]), /* @__PURE__ */ o(
|
|
1979
|
-
|
|
1994
|
+
io,
|
|
1980
1995
|
{
|
|
1981
1996
|
value: {
|
|
1982
1997
|
componentModeOverride: r,
|
|
@@ -1989,149 +2004,149 @@ const Kr = Kn(
|
|
|
1989
2004
|
}
|
|
1990
2005
|
);
|
|
1991
2006
|
}
|
|
1992
|
-
),
|
|
2007
|
+
), Tn = V(
|
|
1993
2008
|
void 0
|
|
1994
|
-
),
|
|
1995
|
-
const { model: t, ready: n } =
|
|
1996
|
-
return /* @__PURE__ */ o(
|
|
1997
|
-
},
|
|
1998
|
-
const e =
|
|
2009
|
+
), ji = ({ children: e }) => {
|
|
2010
|
+
const { model: t, ready: n } = Ve(), r = D(() => n && t ? { model: t } : {}, [n, t]);
|
|
2011
|
+
return /* @__PURE__ */ o(Tn.Provider, { value: r, children: e });
|
|
2012
|
+
}, ct = () => {
|
|
2013
|
+
const e = R(Tn);
|
|
1999
2014
|
if (!e)
|
|
2000
2015
|
throw new Error(
|
|
2001
2016
|
"useApplicationContext must be used within a ApplicationProvider"
|
|
2002
2017
|
);
|
|
2003
2018
|
return e;
|
|
2004
|
-
},
|
|
2005
|
-
const { model: t, ready: n } =
|
|
2006
|
-
return /* @__PURE__ */ o(
|
|
2007
|
-
},
|
|
2008
|
-
const e =
|
|
2019
|
+
}, Dn = V(void 0), Wi = ({ children: e }) => {
|
|
2020
|
+
const { model: t, ready: n } = un(), r = D(() => n && t ? { model: t } : {}, [n, t]);
|
|
2021
|
+
return /* @__PURE__ */ o(Dn.Provider, { value: r, children: e });
|
|
2022
|
+
}, Gi = () => {
|
|
2023
|
+
const e = R(Dn);
|
|
2009
2024
|
if (!e)
|
|
2010
2025
|
throw new Error(
|
|
2011
2026
|
"useDashboardOperationsContext must be used within a DashboardOperationsProvider"
|
|
2012
2027
|
);
|
|
2013
2028
|
return e;
|
|
2014
|
-
},
|
|
2015
|
-
const { model: t, ready: n } =
|
|
2016
|
-
return /* @__PURE__ */ o(
|
|
2017
|
-
},
|
|
2018
|
-
const e =
|
|
2029
|
+
}, An = V(void 0), Xi = ({ children: e }) => {
|
|
2030
|
+
const { model: t, ready: n } = pn(), r = D(() => n && t ? { model: t } : {}, [n, t]);
|
|
2031
|
+
return /* @__PURE__ */ o(An.Provider, { value: r, children: e });
|
|
2032
|
+
}, Yi = () => {
|
|
2033
|
+
const e = R(An);
|
|
2019
2034
|
if (!e)
|
|
2020
2035
|
throw new Error(
|
|
2021
2036
|
"useDispenserInfoContext must be used within a DispenserInfoProvider"
|
|
2022
2037
|
);
|
|
2023
2038
|
return e;
|
|
2024
|
-
},
|
|
2025
|
-
const { model: t, ready: n } =
|
|
2026
|
-
return /* @__PURE__ */ o(
|
|
2027
|
-
},
|
|
2028
|
-
const e =
|
|
2039
|
+
}, Ln = V(void 0), qi = ({ children: e }) => {
|
|
2040
|
+
const { model: t, ready: n } = gn(), r = D(() => n && t ? { model: t } : {}, [n, t]);
|
|
2041
|
+
return /* @__PURE__ */ o(Ln.Provider, { value: r, children: e });
|
|
2042
|
+
}, Qi = () => {
|
|
2043
|
+
const e = R(Ln);
|
|
2029
2044
|
if (!e)
|
|
2030
2045
|
throw new Error(
|
|
2031
2046
|
"useIngredientSummaryContext must be used within a IngredientSummaryProvider"
|
|
2032
2047
|
);
|
|
2033
2048
|
return e;
|
|
2034
|
-
},
|
|
2035
|
-
const { model: t, ready: n } =
|
|
2036
|
-
return /* @__PURE__ */ o(
|
|
2037
|
-
},
|
|
2038
|
-
const e =
|
|
2049
|
+
}, En = V(void 0), Zi = ({ children: e }) => {
|
|
2050
|
+
const { model: t, ready: n } = fn(), r = D(() => n && t ? { model: t } : {}, [n, t]);
|
|
2051
|
+
return /* @__PURE__ */ o(En.Provider, { value: r, children: e });
|
|
2052
|
+
}, Ji = () => {
|
|
2053
|
+
const e = R(En);
|
|
2039
2054
|
if (!e)
|
|
2040
2055
|
throw new Error(
|
|
2041
2056
|
"useMacroAssignmentContext must be used within a MacroAssignmentProvider"
|
|
2042
2057
|
);
|
|
2043
2058
|
return e;
|
|
2044
|
-
},
|
|
2059
|
+
}, Fn = V(
|
|
2045
2060
|
void 0
|
|
2046
|
-
),
|
|
2047
|
-
const { model: n, ready: r } =
|
|
2048
|
-
return /* @__PURE__ */ o(
|
|
2049
|
-
},
|
|
2050
|
-
const e =
|
|
2061
|
+
), ea = ({ children: e, id: t }) => {
|
|
2062
|
+
const { model: n, ready: r } = bn(t), s = D(() => r && n ? { model: n } : {}, [r, n]);
|
|
2063
|
+
return /* @__PURE__ */ o(Fn.Provider, { value: s, children: e });
|
|
2064
|
+
}, ta = () => {
|
|
2065
|
+
const e = R(Fn);
|
|
2051
2066
|
if (!e)
|
|
2052
2067
|
throw new Error(
|
|
2053
2068
|
"useNetworkTestContext must be used within a NetworkTestProvider"
|
|
2054
2069
|
);
|
|
2055
2070
|
return e;
|
|
2056
|
-
},
|
|
2057
|
-
const { model: t, ready: n } =
|
|
2058
|
-
return /* @__PURE__ */ o(
|
|
2059
|
-
},
|
|
2060
|
-
const e =
|
|
2071
|
+
}, $n = V(void 0), na = ({ children: e }) => {
|
|
2072
|
+
const { model: t, ready: n } = vn(), r = D(() => n && t ? { model: t } : {}, [n, t]);
|
|
2073
|
+
return /* @__PURE__ */ o($n.Provider, { value: r, children: e });
|
|
2074
|
+
}, oa = () => {
|
|
2075
|
+
const e = R($n);
|
|
2061
2076
|
if (!e)
|
|
2062
2077
|
throw new Error(
|
|
2063
2078
|
"useNetworkTestContainerContext must be used within a NetworkTestContainerProvider"
|
|
2064
2079
|
);
|
|
2065
2080
|
return e;
|
|
2066
|
-
},
|
|
2067
|
-
const { model: t, ready: n } =
|
|
2068
|
-
return /* @__PURE__ */ o(
|
|
2069
|
-
},
|
|
2070
|
-
const e =
|
|
2081
|
+
}, Bn = V(void 0), ra = ({ children: e }) => {
|
|
2082
|
+
const { model: t, ready: n } = it(), r = D(() => n && t ? { model: t } : {}, [n, t]);
|
|
2083
|
+
return /* @__PURE__ */ o(Bn.Provider, { value: r, children: e });
|
|
2084
|
+
}, sa = () => {
|
|
2085
|
+
const e = R(Bn);
|
|
2071
2086
|
if (!e)
|
|
2072
2087
|
throw new Error("useRebootContext must be used within a RebootProvider");
|
|
2073
2088
|
return e;
|
|
2074
|
-
},
|
|
2089
|
+
}, On = V(
|
|
2075
2090
|
void 0
|
|
2076
|
-
),
|
|
2077
|
-
const { model: t, ready: n } =
|
|
2078
|
-
return /* @__PURE__ */ o(
|
|
2079
|
-
},
|
|
2080
|
-
const e =
|
|
2091
|
+
), ia = ({ children: e }) => {
|
|
2092
|
+
const { model: t, ready: n } = at(), r = D(() => n && t ? { model: t } : {}, [n, t]);
|
|
2093
|
+
return /* @__PURE__ */ o(On.Provider, { value: r, children: e });
|
|
2094
|
+
}, aa = () => {
|
|
2095
|
+
const e = R(On);
|
|
2081
2096
|
if (!e)
|
|
2082
2097
|
throw new Error(
|
|
2083
2098
|
"useSettingsContext must be used within a SettingsProvider"
|
|
2084
2099
|
);
|
|
2085
2100
|
return e;
|
|
2086
|
-
},
|
|
2101
|
+
}, Vn = V(
|
|
2087
2102
|
void 0
|
|
2088
|
-
),
|
|
2089
|
-
const { model: n, ready: r } =
|
|
2090
|
-
return /* @__PURE__ */ o(
|
|
2091
|
-
},
|
|
2092
|
-
const e =
|
|
2103
|
+
), ca = ({ children: e, id: t }) => {
|
|
2104
|
+
const { model: n, ready: r } = wn(t), s = D(() => r && n ? { model: n } : {}, [r, n]);
|
|
2105
|
+
return /* @__PURE__ */ o(Vn.Provider, { value: s, children: e });
|
|
2106
|
+
}, la = () => {
|
|
2107
|
+
const e = R(Vn);
|
|
2093
2108
|
if (!e)
|
|
2094
2109
|
throw new Error(
|
|
2095
2110
|
"useSetupStepContext must be used within a SetupStepProvider"
|
|
2096
2111
|
);
|
|
2097
2112
|
return e;
|
|
2098
|
-
},
|
|
2099
|
-
const { model: t, ready: n } =
|
|
2100
|
-
return /* @__PURE__ */ o(
|
|
2101
|
-
},
|
|
2102
|
-
const e =
|
|
2113
|
+
}, Rn = V(void 0), da = ({ children: e }) => {
|
|
2114
|
+
const { model: t, ready: n } = Cn(), r = D(() => n && t ? { model: t } : {}, [n, t]);
|
|
2115
|
+
return /* @__PURE__ */ o(Rn.Provider, { value: r, children: e });
|
|
2116
|
+
}, ua = () => {
|
|
2117
|
+
const e = R(Rn);
|
|
2103
2118
|
if (!e)
|
|
2104
2119
|
throw new Error(
|
|
2105
2120
|
"useSetupStepContainerContext must be used within a SetupStepContainerProvider"
|
|
2106
2121
|
);
|
|
2107
2122
|
return e;
|
|
2108
|
-
},
|
|
2123
|
+
}, Nn = V(
|
|
2109
2124
|
void 0
|
|
2110
|
-
),
|
|
2111
|
-
const { model: n, ready: r } =
|
|
2112
|
-
return /* @__PURE__ */ o(
|
|
2113
|
-
},
|
|
2114
|
-
const e =
|
|
2125
|
+
), pa = ({ children: e, id: t }) => {
|
|
2126
|
+
const { model: n, ready: r } = Sn(t), s = D(() => r && n ? { model: n } : {}, [r, n]);
|
|
2127
|
+
return /* @__PURE__ */ o(Nn.Provider, { value: s, children: e });
|
|
2128
|
+
}, ma = () => {
|
|
2129
|
+
const e = R(Nn);
|
|
2115
2130
|
if (!e)
|
|
2116
2131
|
throw new Error(
|
|
2117
2132
|
"useUtilitiesContext must be used within a UtilitiesProvider"
|
|
2118
2133
|
);
|
|
2119
2134
|
return e;
|
|
2120
|
-
},
|
|
2121
|
-
const { model: t, ready: n } =
|
|
2122
|
-
return /* @__PURE__ */ o(
|
|
2123
|
-
},
|
|
2124
|
-
const e =
|
|
2135
|
+
}, Mn = V(void 0), ha = ({ children: e }) => {
|
|
2136
|
+
const { model: t, ready: n } = Pn(), r = D(() => n && t ? { model: t } : {}, [n, t]);
|
|
2137
|
+
return /* @__PURE__ */ o(Mn.Provider, { value: r, children: e });
|
|
2138
|
+
}, ga = () => {
|
|
2139
|
+
const e = R(Mn);
|
|
2125
2140
|
if (!e)
|
|
2126
2141
|
throw new Error(
|
|
2127
2142
|
"useUtilitiesContainerContext must be used within a UtilitiesContainerProvider"
|
|
2128
2143
|
);
|
|
2129
2144
|
return e;
|
|
2130
2145
|
}, Me = (e) => {
|
|
2131
|
-
const { model: t } =
|
|
2132
|
-
return
|
|
2133
|
-
const c =
|
|
2134
|
-
const i = e.troubles.filter(
|
|
2146
|
+
const { model: t } = ct(), [n, r] = w(), s = t == null ? void 0 : t.currentRole, a = !!n;
|
|
2147
|
+
return Po(() => {
|
|
2148
|
+
const c = ne(() => {
|
|
2149
|
+
const i = e.troubles.filter(Fo(s));
|
|
2135
2150
|
r((l) => {
|
|
2136
2151
|
const d = l ?? [];
|
|
2137
2152
|
return i.length !== d.length || i.some((p) => !d.includes(p)) ? i : d;
|
|
@@ -2141,9 +2156,9 @@ const Kr = Kn(
|
|
|
2141
2156
|
c();
|
|
2142
2157
|
};
|
|
2143
2158
|
}, [e, s]), { visibleTroubles: n, initialized: a };
|
|
2144
|
-
},
|
|
2145
|
-
|
|
2146
|
-
const
|
|
2159
|
+
}, ns = _.createLogger({ name: "holder-group-view" });
|
|
2160
|
+
ns.debug("holder-group-view component loaded");
|
|
2161
|
+
const Ot = v.div`
|
|
2147
2162
|
align-items: start;
|
|
2148
2163
|
|
|
2149
2164
|
display: flex;
|
|
@@ -2153,127 +2168,127 @@ const Et = w.div`
|
|
|
2153
2168
|
text-overflow: ellipsis;
|
|
2154
2169
|
width: 100%;
|
|
2155
2170
|
color: ${(e) => e.color ?? "var(--ddk-generic-color-black)"};
|
|
2156
|
-
`,
|
|
2171
|
+
`, os = v.div`
|
|
2157
2172
|
display: flex;
|
|
2158
2173
|
align-items: center;
|
|
2159
2174
|
justify-content: center;
|
|
2160
2175
|
color: ${(e) => e.color ?? "var(--ddk-generic-color-black)"};
|
|
2161
|
-
`,
|
|
2176
|
+
`, rs = v.div`
|
|
2162
2177
|
font-size: var(--ddk-component-holder-card-footer-font-size);
|
|
2163
2178
|
color: ${(e) => e.color ?? "var(--ddk-generic-color-black)"};
|
|
2164
|
-
`,
|
|
2179
|
+
`, ss = (e) => !e || e === "white", is = (e) => e ? void 0 : "white", as = (e, t) => t && t.hasEnjoyByWarning ? "var(--ddk-component-dashboard-enjoy-by-trouble-warning-color)" : e ? void 0 : "white", cs = T(
|
|
2165
2180
|
({ holder: e, onHolderSelect: t, showNavIcon: n, summaryBody: r }) => {
|
|
2166
|
-
const { model: s } =
|
|
2167
|
-
|
|
2168
|
-
}, []),
|
|
2181
|
+
const { model: s } = Ve(), { visibleTroubles: a, initialized: c } = Me(e), i = s == null ? void 0 : s.currentRole, [l, d] = w(), { t: p } = x("troubles"), { t: u } = x("common"), { componentModeOverride: h } = N(), m = h === "compact", { getExtensions: C } = Re(), [P, y] = w(!1), k = !!e.ingredientId, E = L(() => {
|
|
2182
|
+
y(!1);
|
|
2183
|
+
}, []), I = (a == null ? void 0 : a.length) ?? 0, b = a == null ? void 0 : a[0], f = I > 0, M = e.hasFuelGuage, z = e.fillPercent, X = f ? `${b == null ? void 0 : b.color}` : void 0, fe = ss(X), ie = f ? is(fe) : k ? void 0 : "var(--ddk-component-dashboard-card-color-unassigned)", ze = f ? as(fe, e) : k ? void 0 : "var(--ddk-component-dashboard-card-color-unassigned)", be = Wt(e.name, m), ae = e.removed ? u(e.previousIngredientName) : e.unassigned ? u("unassigned") : u(e.ingredientName), _e = /* @__PURE__ */ o(Ot, { color: ie, children: ae }), ve = /* @__PURE__ */ o(os, { color: ie, children: be }), Ue = /* @__PURE__ */ g(Ot, { children: [
|
|
2169
2184
|
e.name,
|
|
2170
2185
|
" ",
|
|
2171
|
-
|
|
2172
|
-
] }),
|
|
2173
|
-
|
|
2186
|
+
ae
|
|
2187
|
+
] }), ye = k && M && !f && c ? r ?? /* @__PURE__ */ o(
|
|
2188
|
+
co,
|
|
2174
2189
|
{
|
|
2175
|
-
color:
|
|
2190
|
+
color: f ? "var(--ddk-generic-color-white)" : void 0,
|
|
2176
2191
|
size: "small",
|
|
2177
|
-
value:
|
|
2192
|
+
value: z
|
|
2178
2193
|
}
|
|
2179
|
-
) : null,
|
|
2180
|
-
() =>
|
|
2181
|
-
[
|
|
2182
|
-
),
|
|
2183
|
-
() =>
|
|
2184
|
-
[
|
|
2185
|
-
),
|
|
2186
|
-
|
|
2187
|
-
async function
|
|
2188
|
-
if (
|
|
2189
|
-
const
|
|
2190
|
-
d(
|
|
2194
|
+
) : null, Ke = k && M && !f && c && ao(z) || void 0, ce = pe.executeDashboardKeyFactory(e) || "", we = D(
|
|
2195
|
+
() => C(en),
|
|
2196
|
+
[C]
|
|
2197
|
+
), le = D(
|
|
2198
|
+
() => we.filter((W) => !!W.data.pumpDetail).reduce((W, ke) => (W[ke.data.pumpDetail.dashboardKey] = ke.data.pumpDetail, W), {}),
|
|
2199
|
+
[we]
|
|
2200
|
+
), Ce = !!le[ce], { HolderContent: Z, modalOptions: xe } = hn(e);
|
|
2201
|
+
O(() => {
|
|
2202
|
+
async function W() {
|
|
2203
|
+
if (b) {
|
|
2204
|
+
const ke = await Ut(b);
|
|
2205
|
+
d(ke);
|
|
2191
2206
|
}
|
|
2192
2207
|
}
|
|
2193
|
-
|
|
2194
|
-
}, [
|
|
2195
|
-
const
|
|
2208
|
+
W();
|
|
2209
|
+
}, [b]);
|
|
2210
|
+
const J = D(
|
|
2196
2211
|
() => {
|
|
2197
|
-
var
|
|
2198
|
-
return
|
|
2199
|
-
|
|
2212
|
+
var W;
|
|
2213
|
+
return Z ? /* @__PURE__ */ o(Z, { holder: e, onComplete: E }) : Ce ? /* @__PURE__ */ o(
|
|
2214
|
+
Be,
|
|
2200
2215
|
{
|
|
2201
|
-
extension:
|
|
2202
|
-
module: (
|
|
2216
|
+
extension: tn,
|
|
2217
|
+
module: (W = le[ce]) == null ? void 0 : W.id,
|
|
2203
2218
|
props: { holder: e }
|
|
2204
2219
|
}
|
|
2205
2220
|
) : void 0;
|
|
2206
2221
|
},
|
|
2207
|
-
[
|
|
2208
|
-
),
|
|
2209
|
-
context:
|
|
2222
|
+
[Z, E, le, Ce, e, ce]
|
|
2223
|
+
), Se = st(b), _n = /* @__PURE__ */ o(rs, { color: f ? ie : ze, children: f ? p(Se.summary, {
|
|
2224
|
+
context: b != null && b.deferred ? "queued" : void 0,
|
|
2210
2225
|
data: l
|
|
2211
|
-
}) : !
|
|
2212
|
-
e.sortedPumps.length > 0 && (i === "technician" ?
|
|
2213
|
-
}, [e,
|
|
2214
|
-
return /* @__PURE__ */
|
|
2215
|
-
/* @__PURE__ */
|
|
2216
|
-
|
|
2226
|
+
}) : !m && /* @__PURE__ */ o(Jr, { size: "small", holder: e }) }), { holderExperience: Un, setHolderExperience: dt } = rt(e), { future: Pe } = se(b), Kn = L(() => {
|
|
2227
|
+
e.sortedPumps.length > 0 && (i === "technician" ? y(!0) : e.unassigned || e.removed ? dt("rfid-override") : f && (t == null || t(e)));
|
|
2228
|
+
}, [e, f, t, i, dt]);
|
|
2229
|
+
return /* @__PURE__ */ g(A, { children: [
|
|
2230
|
+
/* @__PURE__ */ g(
|
|
2231
|
+
oe,
|
|
2217
2232
|
{
|
|
2218
|
-
contain: !
|
|
2219
|
-
...
|
|
2220
|
-
show:
|
|
2221
|
-
onClose:
|
|
2233
|
+
contain: !m,
|
|
2234
|
+
...xe,
|
|
2235
|
+
show: P,
|
|
2236
|
+
onClose: E,
|
|
2222
2237
|
children: [
|
|
2223
2238
|
/* @__PURE__ */ o(
|
|
2224
|
-
|
|
2239
|
+
re,
|
|
2225
2240
|
{
|
|
2226
|
-
contain:
|
|
2241
|
+
contain: m,
|
|
2227
2242
|
showCloseButton: !0,
|
|
2228
|
-
title:
|
|
2229
|
-
onClose:
|
|
2230
|
-
CloseButton:
|
|
2243
|
+
title: Ue,
|
|
2244
|
+
onClose: E,
|
|
2245
|
+
CloseButton: m ? me : void 0
|
|
2231
2246
|
}
|
|
2232
2247
|
),
|
|
2233
|
-
|
|
2248
|
+
J
|
|
2234
2249
|
]
|
|
2235
2250
|
}
|
|
2236
2251
|
),
|
|
2237
|
-
/* @__PURE__ */ o(
|
|
2252
|
+
/* @__PURE__ */ o(Je, { children: Un }),
|
|
2238
2253
|
/* @__PURE__ */ o(
|
|
2239
|
-
|
|
2254
|
+
Gt,
|
|
2240
2255
|
{
|
|
2241
|
-
avatar:
|
|
2242
|
-
color:
|
|
2243
|
-
footer:
|
|
2256
|
+
avatar: ve,
|
|
2257
|
+
color: X,
|
|
2258
|
+
footer: _n,
|
|
2244
2259
|
cardId: e.path,
|
|
2245
|
-
errors:
|
|
2246
|
-
title:
|
|
2247
|
-
indicatorColor:
|
|
2248
|
-
body:
|
|
2260
|
+
errors: I,
|
|
2261
|
+
title: _e,
|
|
2262
|
+
indicatorColor: Ke,
|
|
2263
|
+
body: ye,
|
|
2249
2264
|
showNavIcon: n,
|
|
2250
|
-
onCardSelect:
|
|
2265
|
+
onCardSelect: Kn
|
|
2251
2266
|
},
|
|
2252
2267
|
e.path
|
|
2253
2268
|
),
|
|
2254
|
-
(
|
|
2255
|
-
|
|
2269
|
+
(b == null ? void 0 : b.future) && /* @__PURE__ */ o(
|
|
2270
|
+
H,
|
|
2256
2271
|
{
|
|
2257
|
-
title:
|
|
2258
|
-
future:
|
|
2259
|
-
failureMessage: p(`troubles.${
|
|
2260
|
-
context:
|
|
2272
|
+
title: _e,
|
|
2273
|
+
future: Pe,
|
|
2274
|
+
failureMessage: p(`troubles.${b.type}.error`, {
|
|
2275
|
+
context: Pe == null ? void 0 : Pe.reason
|
|
2261
2276
|
})
|
|
2262
2277
|
}
|
|
2263
2278
|
)
|
|
2264
2279
|
] });
|
|
2265
2280
|
}
|
|
2266
|
-
),
|
|
2281
|
+
), Hn = v.div`
|
|
2267
2282
|
display: flex;
|
|
2268
2283
|
flex-direction: var(--ddk-component-dashboard-card-flex-direction);
|
|
2269
2284
|
row-gap: var(--ddk-component-dashboard-row-gap);
|
|
2270
2285
|
column-gap: var(--ddk-component-dashboard-column-gap);
|
|
2271
2286
|
height: 100%;
|
|
2272
2287
|
user-select: none;
|
|
2273
|
-
`,
|
|
2288
|
+
`, ls = T(({ holder: e, showNavIcons: t }) => {
|
|
2274
2289
|
const n = e.troubles[0];
|
|
2275
2290
|
return /* @__PURE__ */ o(
|
|
2276
|
-
|
|
2291
|
+
cs,
|
|
2277
2292
|
{
|
|
2278
2293
|
holder: e,
|
|
2279
2294
|
showNavIcon: t,
|
|
@@ -2283,11 +2298,11 @@ const Et = w.div`
|
|
|
2283
2298
|
},
|
|
2284
2299
|
e.id
|
|
2285
2300
|
);
|
|
2286
|
-
}),
|
|
2301
|
+
}), fa = T(
|
|
2287
2302
|
({ holders: e, showNavIcons: t, ...n }) => {
|
|
2288
2303
|
const r = D(
|
|
2289
2304
|
() => e.map((s) => /* @__PURE__ */ o(
|
|
2290
|
-
|
|
2305
|
+
ls,
|
|
2291
2306
|
{
|
|
2292
2307
|
holder: s,
|
|
2293
2308
|
showNavIcons: !!t
|
|
@@ -2296,18 +2311,18 @@ const Et = w.div`
|
|
|
2296
2311
|
)),
|
|
2297
2312
|
[e, t]
|
|
2298
2313
|
);
|
|
2299
|
-
return /* @__PURE__ */ o(
|
|
2314
|
+
return /* @__PURE__ */ o(Hn, { ...n, children: r });
|
|
2300
2315
|
}
|
|
2301
|
-
),
|
|
2302
|
-
|
|
2303
|
-
const
|
|
2316
|
+
), ds = _.createLogger({ name: "holder-group-view" });
|
|
2317
|
+
ds.debug("holder-group-view component loaded");
|
|
2318
|
+
const Vt = ["water", "carb", "ns", "nns"], us = v.div`
|
|
2304
2319
|
display: flex;
|
|
2305
2320
|
flex-direction: column;
|
|
2306
2321
|
overflow-y: auto;
|
|
2307
2322
|
overflow-x: hidden;
|
|
2308
2323
|
justify-content: space-between;
|
|
2309
2324
|
height: 100%;
|
|
2310
|
-
`,
|
|
2325
|
+
`, Rt = v.div`
|
|
2311
2326
|
align-items: start;
|
|
2312
2327
|
|
|
2313
2328
|
display: flex;
|
|
@@ -2317,82 +2332,82 @@ const Ft = ["water", "carb", "ns", "nns"], ss = w.div`
|
|
|
2317
2332
|
text-overflow: ellipsis;
|
|
2318
2333
|
width: 100%;
|
|
2319
2334
|
color: ${(e) => e.color ?? "var(--ddk-generic-color-black)"};
|
|
2320
|
-
`,
|
|
2335
|
+
`, ps = v.div`
|
|
2321
2336
|
display: flex;
|
|
2322
2337
|
align-items: center;
|
|
2323
2338
|
justify-content: center;
|
|
2324
2339
|
color: ${(e) => e.color ?? "var(--ddk-generic-color-black)"};
|
|
2325
|
-
`,
|
|
2340
|
+
`, ms = v.div`
|
|
2326
2341
|
font-size: var(--ddk-component-holder-card-footer-font-size);
|
|
2327
2342
|
color: ${(e) => e.color ?? "var(--ddk-generic-color-black)"};
|
|
2328
|
-
`,
|
|
2343
|
+
`, hs = (e) => !e || e === "white", gs = (e) => e ? void 0 : "white", fs = T(
|
|
2329
2344
|
({ holder: e, onHolderSelect: t, showNavIcon: n }) => {
|
|
2330
|
-
var
|
|
2331
|
-
const { model: r } =
|
|
2345
|
+
var Z, xe;
|
|
2346
|
+
const { model: r } = Ve(), { visibleTroubles: s, initialized: a } = Me(e), { t: c } = x(["troubles", "common"]), { componentModeOverride: i } = N(), l = i === "compact", { getExtensions: d } = Re(), p = (Z = r == null ? void 0 : r.currentRole) == null ? void 0 : Z.toLowerCase(), [u, h] = w(!1), m = !!e.ingredientId, C = (s == null ? void 0 : s.length) ?? 0, P = s == null ? void 0 : s[0], y = s ? s.length > 0 : !1, k = y ? `${P == null ? void 0 : P.color}` : void 0, E = hs(k), I = y ? gs(E) : m ? void 0 : "var(--ddk-component-dashboard-card-color-unassigned)", b = Wt(
|
|
2332
2347
|
e.name,
|
|
2333
2348
|
i === "compact"
|
|
2334
|
-
),
|
|
2335
|
-
|
|
2349
|
+
), f = c(`common:macros.${e.name}`), M = c(`common:${e.ingredientName}`), z = m ? Vt.includes(e.name) ? "" : ` ${M}` : ` ${c("common:macros.unassigned")}`, X = `${f}${z}`, fe = l ? Vt.includes(e.name) ? f : z : `${f} ${z}`, ie = i === "compact" && /* @__PURE__ */ o(ps, { color: I, children: b }), ze = /* @__PURE__ */ o(Rt, { color: I, children: fe }), be = /* @__PURE__ */ o(Rt, { children: X }), ae = pe.executeDashboardKeyFactory(e) || "", ve = d(en).filter((J) => !!J.data.pumpDetail).reduce((J, Se) => (J[Se.data.pumpDetail.dashboardKey] = Se.data.pumpDetail, J), {}), Ue = !!ve[ae], { HolderContent: ye, modalOptions: Ke } = hn(e), ce = ye ? /* @__PURE__ */ o(ye, { holder: e, onComplete: () => h(!1) }) : Ue ? /* @__PURE__ */ o(
|
|
2350
|
+
Be,
|
|
2336
2351
|
{
|
|
2337
|
-
extension:
|
|
2338
|
-
module: (
|
|
2352
|
+
extension: tn,
|
|
2353
|
+
module: (xe = ve[ae]) == null ? void 0 : xe.id,
|
|
2339
2354
|
props: { holder: e }
|
|
2340
2355
|
}
|
|
2341
|
-
) : null,
|
|
2342
|
-
e.sortedPumps.length > 0 && (p === "technician" ?
|
|
2343
|
-
}, [
|
|
2344
|
-
return /* @__PURE__ */
|
|
2356
|
+
) : null, we = st(P), le = y ? /* @__PURE__ */ o(ms, { color: I, children: c(we.summary) }) : null, Ce = L(() => {
|
|
2357
|
+
e.sortedPumps.length > 0 && (p === "technician" ? h(!0) : y && (t == null || t(e)));
|
|
2358
|
+
}, [y, e, t, p]);
|
|
2359
|
+
return /* @__PURE__ */ g(A, { children: [
|
|
2345
2360
|
/* @__PURE__ */ o(
|
|
2346
|
-
|
|
2361
|
+
Gt,
|
|
2347
2362
|
{
|
|
2348
|
-
avatar:
|
|
2363
|
+
avatar: ie,
|
|
2349
2364
|
color: k,
|
|
2350
|
-
body:
|
|
2351
|
-
|
|
2365
|
+
body: y ? null : /* @__PURE__ */ o(
|
|
2366
|
+
$e,
|
|
2352
2367
|
{
|
|
2353
2368
|
size: "small",
|
|
2354
|
-
status:
|
|
2369
|
+
status: y ? "pending" : "completed"
|
|
2355
2370
|
}
|
|
2356
2371
|
),
|
|
2357
|
-
footer:
|
|
2372
|
+
footer: le,
|
|
2358
2373
|
cardId: e.path,
|
|
2359
|
-
errors:
|
|
2360
|
-
title:
|
|
2374
|
+
errors: C,
|
|
2375
|
+
title: ze,
|
|
2361
2376
|
showNavIcon: n,
|
|
2362
|
-
onCardSelect:
|
|
2377
|
+
onCardSelect: Ce
|
|
2363
2378
|
},
|
|
2364
2379
|
e.path
|
|
2365
2380
|
),
|
|
2366
2381
|
/* @__PURE__ */ o(
|
|
2367
|
-
|
|
2382
|
+
oe,
|
|
2368
2383
|
{
|
|
2369
2384
|
contain: i !== "compact",
|
|
2370
|
-
...
|
|
2385
|
+
...Ke,
|
|
2371
2386
|
show: u,
|
|
2372
|
-
onClose: () =>
|
|
2373
|
-
children: /* @__PURE__ */
|
|
2387
|
+
onClose: () => h(!1),
|
|
2388
|
+
children: /* @__PURE__ */ g(us, { children: [
|
|
2374
2389
|
/* @__PURE__ */ o(
|
|
2375
|
-
|
|
2390
|
+
re,
|
|
2376
2391
|
{
|
|
2377
2392
|
contain: i === "compact",
|
|
2378
2393
|
showCloseButton: !0,
|
|
2379
|
-
title:
|
|
2380
|
-
onClose: () =>
|
|
2381
|
-
CloseButton: i === "compact" ?
|
|
2394
|
+
title: be,
|
|
2395
|
+
onClose: () => h(!1),
|
|
2396
|
+
CloseButton: i === "compact" ? me : void 0
|
|
2382
2397
|
}
|
|
2383
2398
|
),
|
|
2384
|
-
|
|
2399
|
+
ce
|
|
2385
2400
|
] })
|
|
2386
2401
|
}
|
|
2387
2402
|
),
|
|
2388
|
-
(
|
|
2403
|
+
(P == null ? void 0 : P.future) && /* @__PURE__ */ o(H, { title: be, future: P == null ? void 0 : P.future })
|
|
2389
2404
|
] });
|
|
2390
2405
|
}
|
|
2391
|
-
),
|
|
2392
|
-
({ holders: e, showNavIcons: t, ...n }) => /* @__PURE__ */ o(
|
|
2406
|
+
), ba = T(
|
|
2407
|
+
({ holders: e, showNavIcons: t, ...n }) => /* @__PURE__ */ o(Hn, { ...n, children: e.map((r) => {
|
|
2393
2408
|
const s = r.troubles[0];
|
|
2394
2409
|
return /* @__PURE__ */ o(
|
|
2395
|
-
|
|
2410
|
+
fs,
|
|
2396
2411
|
{
|
|
2397
2412
|
holder: r,
|
|
2398
2413
|
showNavIcon: t,
|
|
@@ -2403,17 +2418,17 @@ const Ft = ["water", "carb", "ns", "nns"], ss = w.div`
|
|
|
2403
2418
|
r.id
|
|
2404
2419
|
);
|
|
2405
2420
|
}) })
|
|
2406
|
-
),
|
|
2421
|
+
), bs = v(Vo)`
|
|
2407
2422
|
width: var(--ddk-component-macro-card-unavailable-icon-size);
|
|
2408
2423
|
height: var(--ddk-component-macro-card-unavailable-icon-size);
|
|
2409
|
-
`,
|
|
2424
|
+
`, vs = v(Xt)`
|
|
2410
2425
|
text-align: center;
|
|
2411
2426
|
font-size: var(--ddk-component-sub-modal-heading-font-size-medium);
|
|
2412
|
-
`,
|
|
2427
|
+
`, ys = v.div`
|
|
2413
2428
|
height: 100%;
|
|
2414
2429
|
overflow-y: auto;
|
|
2415
2430
|
width: 100%;
|
|
2416
|
-
`,
|
|
2431
|
+
`, ws = v.div`
|
|
2417
2432
|
display: grid;
|
|
2418
2433
|
gap: var(--ddk-component-macro-setup-card-gap);
|
|
2419
2434
|
|
|
@@ -2423,16 +2438,16 @@ const Ft = ["water", "carb", "ns", "nns"], ss = w.div`
|
|
|
2423
2438
|
justify-content: center;
|
|
2424
2439
|
width: 100%;
|
|
2425
2440
|
user-select: none;
|
|
2426
|
-
`,
|
|
2427
|
-
const { componentModeOverride: t } =
|
|
2441
|
+
`, Cs = (e) => {
|
|
2442
|
+
const { componentModeOverride: t } = N();
|
|
2428
2443
|
return /* @__PURE__ */ o(
|
|
2429
|
-
|
|
2444
|
+
ws,
|
|
2430
2445
|
{
|
|
2431
2446
|
compact: t === "compact",
|
|
2432
2447
|
...e
|
|
2433
2448
|
}
|
|
2434
2449
|
);
|
|
2435
|
-
},
|
|
2450
|
+
}, xs = v.div`
|
|
2436
2451
|
align-items: center;
|
|
2437
2452
|
|
|
2438
2453
|
background: ${(e) => e.selected ? "var(--ddk-generic-color-grey-5)" : "var(--ddk-generic-color-white)"};
|
|
@@ -2455,31 +2470,31 @@ const Ft = ["water", "carb", "ns", "nns"], ss = w.div`
|
|
|
2455
2470
|
overflow-wrap: anywhere;
|
|
2456
2471
|
padding: var(--ddk-component-macro-setup-card-header-padding-md);
|
|
2457
2472
|
text-align: center;
|
|
2458
|
-
`,
|
|
2473
|
+
`, Ss = v.div`
|
|
2459
2474
|
align-items: center;
|
|
2460
2475
|
display: flex;
|
|
2461
2476
|
flex-direction: column;
|
|
2462
2477
|
gap: 32px;
|
|
2463
2478
|
height: 100%;
|
|
2464
2479
|
justify-content: center;
|
|
2465
|
-
`,
|
|
2480
|
+
`, Ps = v.div`
|
|
2466
2481
|
color: var(--ddk-component-macro-card-unavailable-font-color);
|
|
2467
2482
|
font-size: var(--ddk-component-macro-card-unavailable-font-size);
|
|
2468
2483
|
font-weight: var(--ddk-component-macro-card-unavailable-font-weight);
|
|
2469
|
-
`,
|
|
2470
|
-
const { t: s } =
|
|
2484
|
+
`, zn = _r(({ holder: e, onComplete: t, macroAssignment: n, showCloseButton: r = !0 }) => {
|
|
2485
|
+
const { t: s } = x("setup"), { t: a } = x("common"), { componentModeOverride: c } = N(), [i, l] = w(e.ingredient), d = v.div`
|
|
2471
2486
|
display: flex;
|
|
2472
2487
|
flex-direction: column;
|
|
2473
2488
|
gap: 24px;
|
|
2474
2489
|
height: 100%;
|
|
2475
2490
|
`;
|
|
2476
|
-
return /* @__PURE__ */
|
|
2477
|
-
/* @__PURE__ */ o(q, { children: n.hasMacroIngredients ? /* @__PURE__ */
|
|
2478
|
-
c === "standard" && /* @__PURE__ */ o(
|
|
2491
|
+
return /* @__PURE__ */ g(d, { children: [
|
|
2492
|
+
/* @__PURE__ */ o(q, { children: n.hasMacroIngredients ? /* @__PURE__ */ g(A, { children: [
|
|
2493
|
+
c === "standard" && /* @__PURE__ */ o(vs, { children: s("select-and-assign-ingredients-for", {
|
|
2479
2494
|
data: { name: a(`macros.${e.name}`) }
|
|
2480
2495
|
}) }),
|
|
2481
|
-
/* @__PURE__ */ o(
|
|
2482
|
-
|
|
2496
|
+
/* @__PURE__ */ o(ys, { children: /* @__PURE__ */ o(Cs, { children: n.macroIngredients.map((p) => /* @__PURE__ */ o(
|
|
2497
|
+
xs,
|
|
2483
2498
|
{
|
|
2484
2499
|
selected: (i == null ? void 0 : i.id) === p.id,
|
|
2485
2500
|
onPointerDown: () => {
|
|
@@ -2489,13 +2504,13 @@ const Ft = ["water", "carb", "ns", "nns"], ss = w.div`
|
|
|
2489
2504
|
},
|
|
2490
2505
|
p.id
|
|
2491
2506
|
)) }) })
|
|
2492
|
-
] }) : /* @__PURE__ */
|
|
2493
|
-
/* @__PURE__ */ o(
|
|
2494
|
-
/* @__PURE__ */ o(
|
|
2507
|
+
] }) : /* @__PURE__ */ g(Ss, { children: [
|
|
2508
|
+
/* @__PURE__ */ o(bs, {}),
|
|
2509
|
+
/* @__PURE__ */ o(Ps, { children: s("no-ingredients-available-for-assignment") })
|
|
2495
2510
|
] }) }),
|
|
2496
|
-
/* @__PURE__ */ o(
|
|
2511
|
+
/* @__PURE__ */ o(K, { children: n.hasMacroIngredients ? /* @__PURE__ */ g(A, { children: [
|
|
2497
2512
|
c === "standard" && r && /* @__PURE__ */ o(
|
|
2498
|
-
|
|
2513
|
+
S,
|
|
2499
2514
|
{
|
|
2500
2515
|
onPointerDown: () => {
|
|
2501
2516
|
t == null || t();
|
|
@@ -2504,7 +2519,7 @@ const Ft = ["water", "carb", "ns", "nns"], ss = w.div`
|
|
|
2504
2519
|
}
|
|
2505
2520
|
),
|
|
2506
2521
|
/* @__PURE__ */ o(
|
|
2507
|
-
|
|
2522
|
+
S,
|
|
2508
2523
|
{
|
|
2509
2524
|
mode: "primary",
|
|
2510
2525
|
disabled: !i || i.id === e.ingredientId,
|
|
@@ -2515,7 +2530,7 @@ const Ft = ["water", "carb", "ns", "nns"], ss = w.div`
|
|
|
2515
2530
|
}
|
|
2516
2531
|
)
|
|
2517
2532
|
] }) : r !== !1 && /* @__PURE__ */ o(
|
|
2518
|
-
|
|
2533
|
+
S,
|
|
2519
2534
|
{
|
|
2520
2535
|
mode: "primary",
|
|
2521
2536
|
onPointerDown: () => {
|
|
@@ -2525,28 +2540,157 @@ const Ft = ["water", "carb", "ns", "nns"], ss = w.div`
|
|
|
2525
2540
|
}
|
|
2526
2541
|
) })
|
|
2527
2542
|
] });
|
|
2528
|
-
}),
|
|
2543
|
+
}), va = T(({ cardModel: e }) => {
|
|
2544
|
+
_.debug("Agitator", e.path);
|
|
2545
|
+
const { t } = x(["agitator", "common"]), n = L(
|
|
2546
|
+
(s) => {
|
|
2547
|
+
s === "agitate" ? e == null || e.testAgitate() : s === "gate" ? e == null || e.testGate() : s === "pour" ? e == null || e.pourIce() : s === "cancelPour" && (e == null || e.cancelIceDispense());
|
|
2548
|
+
},
|
|
2549
|
+
[e]
|
|
2550
|
+
), r = e.isAgitating || e.isIceChuteOpen;
|
|
2551
|
+
return /* @__PURE__ */ g(A, { children: [
|
|
2552
|
+
/* @__PURE__ */ g(q, { children: [
|
|
2553
|
+
/* @__PURE__ */ o(Yt, { name: "Ice Properties", children: /* @__PURE__ */ g(ks, { children: [
|
|
2554
|
+
/* @__PURE__ */ g(Nt, { children: [
|
|
2555
|
+
/* @__PURE__ */ g(De, { children: [
|
|
2556
|
+
/* @__PURE__ */ o(Ie, { children: "Agitation Duration:" }),
|
|
2557
|
+
/* @__PURE__ */ o(de, { children: e.durationSec.displayValue })
|
|
2558
|
+
] }),
|
|
2559
|
+
/* @__PURE__ */ g(De, { children: [
|
|
2560
|
+
/* @__PURE__ */ o(Ie, { children: "Ice Max Dispense:" }),
|
|
2561
|
+
/* @__PURE__ */ o(de, { children: e.maxDispenseSec.displayValue })
|
|
2562
|
+
] }),
|
|
2563
|
+
/* @__PURE__ */ g(De, { children: [
|
|
2564
|
+
/* @__PURE__ */ o(Ie, { children: "Agitate After:" }),
|
|
2565
|
+
/* @__PURE__ */ g(de, { children: [
|
|
2566
|
+
e.inactivitySec.displayValue,
|
|
2567
|
+
" Inactive"
|
|
2568
|
+
] }),
|
|
2569
|
+
/* @__PURE__ */ g(de, { children: [
|
|
2570
|
+
e.volWithoutIceMl.displayValue,
|
|
2571
|
+
" Poured without ice"
|
|
2572
|
+
] })
|
|
2573
|
+
] })
|
|
2574
|
+
] }),
|
|
2575
|
+
/* @__PURE__ */ o(Nt, { children: /* @__PURE__ */ g(De, { children: [
|
|
2576
|
+
/* @__PURE__ */ o(Ie, { children: "Ice Type:" }),
|
|
2577
|
+
/* @__PURE__ */ o(de, { children: e.type.displayValue })
|
|
2578
|
+
] }) })
|
|
2579
|
+
] }) }),
|
|
2580
|
+
/* @__PURE__ */ o(
|
|
2581
|
+
ee,
|
|
2582
|
+
{
|
|
2583
|
+
label: "Agitating",
|
|
2584
|
+
value: e.isAgitating ? t("common:yes") : t("common:no")
|
|
2585
|
+
}
|
|
2586
|
+
),
|
|
2587
|
+
/* @__PURE__ */ o(
|
|
2588
|
+
ee,
|
|
2589
|
+
{
|
|
2590
|
+
label: "Ice Chute Open",
|
|
2591
|
+
value: e.isIceChuteOpen ? t("common:yes") : t("common:no")
|
|
2592
|
+
}
|
|
2593
|
+
)
|
|
2594
|
+
] }),
|
|
2595
|
+
/* @__PURE__ */ g(K, { children: [
|
|
2596
|
+
/* @__PURE__ */ o(
|
|
2597
|
+
S,
|
|
2598
|
+
{
|
|
2599
|
+
disabled: r,
|
|
2600
|
+
onPointerDown: () => n("agitate"),
|
|
2601
|
+
children: t("action.label", { context: "agitator" })
|
|
2602
|
+
}
|
|
2603
|
+
),
|
|
2604
|
+
/* @__PURE__ */ o(
|
|
2605
|
+
S,
|
|
2606
|
+
{
|
|
2607
|
+
disabled: r,
|
|
2608
|
+
onPointerDown: () => n("gate"),
|
|
2609
|
+
children: t("action.label", { context: "gate" })
|
|
2610
|
+
}
|
|
2611
|
+
),
|
|
2612
|
+
/* @__PURE__ */ o(
|
|
2613
|
+
S,
|
|
2614
|
+
{
|
|
2615
|
+
disabled: r,
|
|
2616
|
+
onPointerUp: () => n("cancelPour"),
|
|
2617
|
+
onPointerDown: () => n("pour"),
|
|
2618
|
+
children: t("action.label", { context: "pour" })
|
|
2619
|
+
}
|
|
2620
|
+
)
|
|
2621
|
+
] }),
|
|
2622
|
+
e.agitateFuture && /* @__PURE__ */ o(
|
|
2623
|
+
H,
|
|
2624
|
+
{
|
|
2625
|
+
title: t("testing"),
|
|
2626
|
+
future: e.agitateFuture
|
|
2627
|
+
}
|
|
2628
|
+
),
|
|
2629
|
+
e.gateFuture && /* @__PURE__ */ o(
|
|
2630
|
+
H,
|
|
2631
|
+
{
|
|
2632
|
+
title: t("testing"),
|
|
2633
|
+
future: e.gateFuture
|
|
2634
|
+
}
|
|
2635
|
+
)
|
|
2636
|
+
] });
|
|
2637
|
+
}), ks = v.div`
|
|
2638
|
+
display: flex;
|
|
2639
|
+
flex-direction: row;
|
|
2640
|
+
align-items: center;
|
|
2641
|
+
justify-content: space-between;
|
|
2642
|
+
width: 100%;
|
|
2643
|
+
height: 100%;
|
|
2644
|
+
gap: 10px;
|
|
2645
|
+
padding-block: 16px;
|
|
2646
|
+
`, Nt = v.div`
|
|
2647
|
+
display: flex;
|
|
2648
|
+
flex-direction: column;
|
|
2649
|
+
align-items: flex-start;
|
|
2650
|
+
justify-content: flex-start;
|
|
2651
|
+
width: 100%;
|
|
2652
|
+
height: 100%;
|
|
2653
|
+
padding-inline: 16px;
|
|
2654
|
+
|
|
2655
|
+
gap: 10px;
|
|
2656
|
+
`, De = v.div`
|
|
2657
|
+
display: flex;
|
|
2658
|
+
flex-direction: column;
|
|
2659
|
+
width: 100%;
|
|
2660
|
+
`, de = v(lo)`
|
|
2661
|
+
color: var(--ddk-generic-color-grey-60);
|
|
2662
|
+
`, Is = v.div`
|
|
2663
|
+
font-size: var(--ddk-component-holder-card-footer-font-size);
|
|
2664
|
+
color: ${(e) => e.color ?? "var(--ddk-generic-color-black)"};
|
|
2665
|
+
`, ya = T((e) => {
|
|
2666
|
+
_.debug(`summary component loaded for holder ${e}`), _.info(`render agitator summary for holder ${e.cardModel.path}`);
|
|
2667
|
+
const { t } = x("common");
|
|
2668
|
+
return /* @__PURE__ */ g(A, { children: [
|
|
2669
|
+
/* @__PURE__ */ o($e, { size: "small", status: "completed" }),
|
|
2670
|
+
e.cardModel.isAgitating && /* @__PURE__ */ o(Is, { children: t("agitating") })
|
|
2671
|
+
] });
|
|
2672
|
+
}), wa = v.div`
|
|
2529
2673
|
display: flex;
|
|
2530
2674
|
flex-direction: column;
|
|
2531
2675
|
gap: 24px;
|
|
2532
2676
|
padding: 24px;
|
|
2533
|
-
`,
|
|
2677
|
+
`, Ca = Mo(
|
|
2534
2678
|
({ assembly: e, showHeading: t }) => /* @__PURE__ */ o(
|
|
2535
|
-
|
|
2679
|
+
Ts,
|
|
2536
2680
|
{
|
|
2537
2681
|
iceAgitator: e.iceAgitator,
|
|
2538
2682
|
showHeading: t
|
|
2539
2683
|
}
|
|
2540
2684
|
)
|
|
2541
|
-
),
|
|
2685
|
+
), Ts = T(
|
|
2542
2686
|
({ iceAgitator: e, showHeading: t }) => {
|
|
2543
|
-
const { t: n } =
|
|
2687
|
+
const { t: n } = x("about"), r = _o(), { componentModeOverride: s } = N(), a = (e == null ? void 0 : e.iceTypes.map((i) => ({ id: i, label: i }))) || [], c = L(async () => {
|
|
2544
2688
|
(e == null ? void 0 : e.type.value) !== void 0 && (e == null || e.updateIceType(e.type.value));
|
|
2545
2689
|
}, [e]);
|
|
2546
|
-
return e ? /* @__PURE__ */
|
|
2547
|
-
t && /* @__PURE__ */ o(
|
|
2690
|
+
return e ? /* @__PURE__ */ g(he, { children: [
|
|
2691
|
+
t && /* @__PURE__ */ o(ge, { children: n("ice-settings", "Ice Settings") }),
|
|
2548
2692
|
s === "compact" ? /* @__PURE__ */ o(
|
|
2549
|
-
|
|
2693
|
+
kr,
|
|
2550
2694
|
{
|
|
2551
2695
|
configProperty: e.type,
|
|
2552
2696
|
onChange: (i) => e.updateIceType(i),
|
|
@@ -2554,7 +2698,7 @@ const Ft = ["water", "carb", "ns", "nns"], ss = w.div`
|
|
|
2554
2698
|
label: n("ice-type", "Ice Type")
|
|
2555
2699
|
}
|
|
2556
2700
|
) : /* @__PURE__ */ o(
|
|
2557
|
-
|
|
2701
|
+
ot,
|
|
2558
2702
|
{
|
|
2559
2703
|
configProperty: e.type,
|
|
2560
2704
|
onSave: (i) => e.updateIceType(i),
|
|
@@ -2563,42 +2707,42 @@ const Ft = ["water", "carb", "ns", "nns"], ss = w.div`
|
|
|
2563
2707
|
}
|
|
2564
2708
|
),
|
|
2565
2709
|
/* @__PURE__ */ o(
|
|
2566
|
-
|
|
2710
|
+
ue,
|
|
2567
2711
|
{
|
|
2568
2712
|
configProperty: e.durationSec,
|
|
2569
2713
|
label: n("agitation-duration", "Agitation duration") || void 0
|
|
2570
2714
|
}
|
|
2571
2715
|
),
|
|
2572
2716
|
/* @__PURE__ */ o(
|
|
2573
|
-
|
|
2717
|
+
ue,
|
|
2574
2718
|
{
|
|
2575
2719
|
configProperty: e.inactivitySec,
|
|
2576
2720
|
label: n("agitate-inactivity", "Agitate after inactivity") || void 0
|
|
2577
2721
|
}
|
|
2578
2722
|
),
|
|
2579
2723
|
/* @__PURE__ */ o(
|
|
2580
|
-
|
|
2724
|
+
ue,
|
|
2581
2725
|
{
|
|
2582
2726
|
configProperty: e.volWithoutIceMl,
|
|
2583
2727
|
label: n("agitate-without-ice", "Agitate after poured without ice") || void 0
|
|
2584
2728
|
}
|
|
2585
2729
|
),
|
|
2586
|
-
s !== "compact" && (r == null ? void 0 : r.pathname.includes("/settings")) && /* @__PURE__ */ o(
|
|
2730
|
+
s !== "compact" && (r == null ? void 0 : r.pathname.includes("/settings")) && /* @__PURE__ */ o(K, { children: /* @__PURE__ */ o(S, { onPointerDown: c, children: n("reset") }) })
|
|
2587
2731
|
] }) : "Ice model not loaded...";
|
|
2588
2732
|
}
|
|
2589
|
-
),
|
|
2590
|
-
var l, d, p, u,
|
|
2591
|
-
const { t } =
|
|
2592
|
-
(
|
|
2593
|
-
id:
|
|
2594
|
-
label: t(`locale.country.${
|
|
2733
|
+
), xa = T(({ showHeading: e }) => {
|
|
2734
|
+
var l, d, p, u, h, m, C, P;
|
|
2735
|
+
const { t } = x("region"), { model: n } = at(), { regionModel: r } = Y(), s = L(
|
|
2736
|
+
(y) => ({
|
|
2737
|
+
id: y,
|
|
2738
|
+
label: t(`locale.country.${y}`)
|
|
2595
2739
|
}),
|
|
2596
2740
|
[t]
|
|
2597
|
-
), { selectedRegion: a, updateRegion: c, regionSelectProps: i } =
|
|
2598
|
-
return /* @__PURE__ */
|
|
2599
|
-
e && /* @__PURE__ */ o(
|
|
2741
|
+
), { selectedRegion: a, updateRegion: c, regionSelectProps: i } = Y(s);
|
|
2742
|
+
return /* @__PURE__ */ g(he, { children: [
|
|
2743
|
+
e && /* @__PURE__ */ o(ge, { children: t("localization", "Localization") }),
|
|
2600
2744
|
/* @__PURE__ */ o(
|
|
2601
|
-
|
|
2745
|
+
je,
|
|
2602
2746
|
{
|
|
2603
2747
|
cancelButtonLabel: t("discard-changes", "Discard Changes") || void 0,
|
|
2604
2748
|
closeButtonLabel: t("close", "Close") || void 0,
|
|
@@ -2606,52 +2750,52 @@ const Ft = ["water", "carb", "ns", "nns"], ss = w.div`
|
|
|
2606
2750
|
items: i.options,
|
|
2607
2751
|
label: t("country", "Country"),
|
|
2608
2752
|
loop: !1,
|
|
2609
|
-
onSave: (
|
|
2753
|
+
onSave: (y) => c(y),
|
|
2610
2754
|
proceedButtonLabel: t("save", "Save") || void 0,
|
|
2611
2755
|
selectedItemId: a
|
|
2612
2756
|
}
|
|
2613
2757
|
),
|
|
2614
2758
|
((l = r == null ? void 0 : r.unitSystemOptions) == null ? void 0 : l.length) && /* @__PURE__ */ o(
|
|
2615
|
-
|
|
2759
|
+
Le,
|
|
2616
2760
|
{
|
|
2617
2761
|
label: t("units-of-measurement", "Units of Measurement"),
|
|
2618
|
-
options: (d = r == null ? void 0 : r.unitSystemOptions) == null ? void 0 : d.map((
|
|
2619
|
-
id:
|
|
2620
|
-
label: `${t(`locale.unit.${
|
|
2621
|
-
`locale.units.${
|
|
2762
|
+
options: (d = r == null ? void 0 : r.unitSystemOptions) == null ? void 0 : d.map((y) => ({
|
|
2763
|
+
id: y.id,
|
|
2764
|
+
label: `${t(`locale.unit.${y.id}`)}/${t(
|
|
2765
|
+
`locale.units.${y.id}`
|
|
2622
2766
|
)}`
|
|
2623
2767
|
})),
|
|
2624
|
-
onChange: (
|
|
2768
|
+
onChange: (y) => r == null ? void 0 : r.setSelectedUnitSystem(String(y)),
|
|
2625
2769
|
value: String(r == null ? void 0 : r.selectedUnitSystem).toLowerCase()
|
|
2626
2770
|
}
|
|
2627
2771
|
),
|
|
2628
2772
|
/* @__PURE__ */ o(
|
|
2629
|
-
|
|
2773
|
+
je,
|
|
2630
2774
|
{
|
|
2631
2775
|
cancelButtonLabel: t("discard-changes", "Discard Changes") || void 0,
|
|
2632
2776
|
closeButtonLabel: t("close", "Close") || void 0,
|
|
2633
2777
|
displayValue: (p = n == null ? void 0 : n.ncuiLanguage) != null && p.displayValue ? t(
|
|
2634
2778
|
`locale-ncui-language.${(u = n == null ? void 0 : n.ncuiLanguage) == null ? void 0 : u.displayValue}`
|
|
2635
2779
|
) : void 0,
|
|
2636
|
-
items: (
|
|
2637
|
-
({ locale:
|
|
2638
|
-
id:
|
|
2780
|
+
items: (C = (m = (h = n == null ? void 0 : n.ncuiLanguageData) == null ? void 0 : h.data) == null ? void 0 : m.languages) == null ? void 0 : C.map(
|
|
2781
|
+
({ locale: y, name: k }) => ({
|
|
2782
|
+
id: y,
|
|
2639
2783
|
label: k
|
|
2640
2784
|
})
|
|
2641
2785
|
),
|
|
2642
2786
|
label: t("non-consumer-language", "Non-Consumer Language"),
|
|
2643
2787
|
loop: !1,
|
|
2644
|
-
onSave: (
|
|
2788
|
+
onSave: (y) => {
|
|
2645
2789
|
var k;
|
|
2646
|
-
return (k = n == null ? void 0 : n.ncuiLanguage) == null ? void 0 : k.updateProperty(
|
|
2790
|
+
return (k = n == null ? void 0 : n.ncuiLanguage) == null ? void 0 : k.updateProperty(y);
|
|
2647
2791
|
},
|
|
2648
2792
|
proceedButtonLabel: t("save", "Save") || void 0,
|
|
2649
|
-
selectedItemId: (
|
|
2793
|
+
selectedItemId: (P = n == null ? void 0 : n.ncuiLanguage) == null ? void 0 : P.displayValue
|
|
2650
2794
|
}
|
|
2651
2795
|
)
|
|
2652
2796
|
] });
|
|
2653
2797
|
});
|
|
2654
|
-
|
|
2798
|
+
v.div`
|
|
2655
2799
|
display: flex;
|
|
2656
2800
|
font-size: var(--ddk-generic-font-size-x-small);
|
|
2657
2801
|
font-weight: normal;
|
|
@@ -2686,37 +2830,37 @@ w.div`
|
|
|
2686
2830
|
justify-content: flex-end;
|
|
2687
2831
|
}
|
|
2688
2832
|
`;
|
|
2689
|
-
const
|
|
2833
|
+
const Ds = v.div`
|
|
2690
2834
|
display: flex;
|
|
2691
2835
|
align-items: center;
|
|
2692
2836
|
justify-content: flex-end;
|
|
2693
|
-
`,
|
|
2837
|
+
`, As = ({ item: e, valueKey: t }) => {
|
|
2694
2838
|
const { label: n, value: r } = e;
|
|
2695
2839
|
if (t === "label")
|
|
2696
2840
|
return /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o("b", { children: n }) });
|
|
2697
2841
|
if (t === "value")
|
|
2698
|
-
return /* @__PURE__ */ o(
|
|
2699
|
-
},
|
|
2842
|
+
return /* @__PURE__ */ o(Ds, { children: r });
|
|
2843
|
+
}, Ls = ({
|
|
2700
2844
|
groupName: e,
|
|
2701
2845
|
networkTestContainer: t
|
|
2702
2846
|
}) => {
|
|
2703
2847
|
var r;
|
|
2704
|
-
const { t: n } =
|
|
2848
|
+
const { t: n } = x("connectivity");
|
|
2705
2849
|
return ((r = t == null ? void 0 : t.models.getIndexByKey("group", e)) == null ? void 0 : r.map((s) => {
|
|
2706
2850
|
const a = e === "interface", c = a ? s.results.map((i) => ({
|
|
2707
2851
|
label: i.name,
|
|
2708
2852
|
value: i.val
|
|
2709
2853
|
})) : [];
|
|
2710
2854
|
return a ? /* @__PURE__ */ o(
|
|
2711
|
-
|
|
2855
|
+
jt,
|
|
2712
2856
|
{
|
|
2713
|
-
CellRenderer:
|
|
2857
|
+
CellRenderer: As,
|
|
2714
2858
|
data: c,
|
|
2715
2859
|
dataKeys: ["label", "value"],
|
|
2716
2860
|
heading: s.name
|
|
2717
2861
|
}
|
|
2718
2862
|
) : /* @__PURE__ */ o(
|
|
2719
|
-
|
|
2863
|
+
uo,
|
|
2720
2864
|
{
|
|
2721
2865
|
leftLabel: n(`${s.name}`),
|
|
2722
2866
|
rightLabel: s.inProgress ? n("inProgress") : s.timestamp ? s.passed ? n("success") : n("Fail") : n("testNotRun"),
|
|
@@ -2728,9 +2872,9 @@ const ws = w.div`
|
|
|
2728
2872
|
s.id
|
|
2729
2873
|
);
|
|
2730
2874
|
})) || [];
|
|
2731
|
-
},
|
|
2732
|
-
|
|
2733
|
-
),
|
|
2875
|
+
}, Sa = Ur(
|
|
2876
|
+
Ls
|
|
2877
|
+
), Es = v.div`
|
|
2734
2878
|
background-color: var(--ddk-generic-color-grey-80);
|
|
2735
2879
|
color: var(--ddk-generic-color-grey-5);
|
|
2736
2880
|
border-radius: 5px;
|
|
@@ -2739,142 +2883,142 @@ const ws = w.div`
|
|
|
2739
2883
|
align-items: center;
|
|
2740
2884
|
justify-content: center;
|
|
2741
2885
|
font-size: var(--ddk-generic-font-size-xx-small);
|
|
2742
|
-
`,
|
|
2886
|
+
`, Fs = T(({ showAction: e = !0, trouble: t, showHolder: n }) => {
|
|
2743
2887
|
var k;
|
|
2744
|
-
const { t: r } =
|
|
2745
|
-
|
|
2746
|
-
async function
|
|
2888
|
+
const { t: r } = x(["troubles"]), { model: s } = ct(), a = s == null ? void 0 : s.currentRole, [c, i] = w({}), { action: l, label: d, progress: p } = st(t), u = t.resolvable ?? !1;
|
|
2889
|
+
O(() => {
|
|
2890
|
+
async function E() {
|
|
2747
2891
|
if (t) {
|
|
2748
|
-
const
|
|
2749
|
-
i(
|
|
2892
|
+
const I = await Ut(t);
|
|
2893
|
+
i(I);
|
|
2750
2894
|
}
|
|
2751
2895
|
}
|
|
2752
|
-
|
|
2896
|
+
E();
|
|
2753
2897
|
}, [t]);
|
|
2754
|
-
const { future:
|
|
2755
|
-
return /* @__PURE__ */
|
|
2898
|
+
const { future: h } = se(t), m = (k = t == null ? void 0 : t.data) != null && k.holderNames && t.data.holderNames.length > 0 ? /* @__PURE__ */ o(Es, { children: t.data.holderNames[0] }) : null, C = (t == null ? void 0 : t.color) ?? "orange", P = (t == null ? void 0 : t.shouldDefer) ?? !1, y = (t == null ? void 0 : t.deferred) ?? !1;
|
|
2899
|
+
return /* @__PURE__ */ g(A, { children: [
|
|
2756
2900
|
/* @__PURE__ */ o(
|
|
2757
|
-
|
|
2901
|
+
po,
|
|
2758
2902
|
{
|
|
2759
2903
|
label: r(d, { context: a == null ? void 0 : a.toLowerCase(), data: c }),
|
|
2760
|
-
indicatorColor:
|
|
2761
|
-
buttonLabel: e ?
|
|
2904
|
+
indicatorColor: C,
|
|
2905
|
+
buttonLabel: e ? y ? "Queued" : P ? "Queue" : r(l, { context: a, defaultValue: "" }) : void 0,
|
|
2762
2906
|
date: t.createTime,
|
|
2763
|
-
prefix: n ?
|
|
2764
|
-
onAction: e && u && !
|
|
2907
|
+
prefix: n ? m : void 0,
|
|
2908
|
+
onAction: e && u && !y ? () => {
|
|
2765
2909
|
t.resolve();
|
|
2766
2910
|
} : void 0
|
|
2767
2911
|
}
|
|
2768
2912
|
),
|
|
2769
|
-
|
|
2770
|
-
|
|
2913
|
+
h && /* @__PURE__ */ o(
|
|
2914
|
+
H,
|
|
2771
2915
|
{
|
|
2772
2916
|
title: r(p, { context: a }),
|
|
2773
|
-
future:
|
|
2917
|
+
future: y ? void 0 : h,
|
|
2774
2918
|
failureMessage: r(`troubles.${t.type}.error`, {
|
|
2775
|
-
context:
|
|
2919
|
+
context: h != null && h.reason ? "reason" : void 0,
|
|
2776
2920
|
data: {
|
|
2777
|
-
reason:
|
|
2921
|
+
reason: h != null && h.reason ? `__troubles.errors.${h == null ? void 0 : h.reason}__` : void 0
|
|
2778
2922
|
}
|
|
2779
2923
|
})
|
|
2780
2924
|
}
|
|
2781
2925
|
)
|
|
2782
2926
|
] });
|
|
2783
|
-
}),
|
|
2927
|
+
}), Pa = ({
|
|
2784
2928
|
viewContainerId: e,
|
|
2785
2929
|
extensionPointId: t,
|
|
2786
2930
|
tabs: n,
|
|
2787
2931
|
...r
|
|
2788
2932
|
}) => {
|
|
2789
|
-
const { getExtensions: s } =
|
|
2790
|
-
const
|
|
2791
|
-
const
|
|
2792
|
-
return /* @__PURE__ */
|
|
2793
|
-
/* @__PURE__ */ o(
|
|
2933
|
+
const { getExtensions: s } = et(), a = s(e), c = s(t).reduce((u, h) => (u[h.id] = h, u), {}), i = a.map((u) => u.data.namespace), { t: l } = x(["", ...new Set(i)]), d = a.map((u) => {
|
|
2934
|
+
const h = [...u.data.settings].map((m) => {
|
|
2935
|
+
const C = c[m];
|
|
2936
|
+
return /* @__PURE__ */ g(he, { children: [
|
|
2937
|
+
/* @__PURE__ */ o(ge, { children: l(`${C.data.namespace}:${C.data.title}`) }),
|
|
2794
2938
|
/* @__PURE__ */ o(
|
|
2795
|
-
|
|
2939
|
+
Be,
|
|
2796
2940
|
{
|
|
2797
2941
|
extension: t,
|
|
2798
|
-
module:
|
|
2942
|
+
module: m
|
|
2799
2943
|
}
|
|
2800
2944
|
)
|
|
2801
|
-
] },
|
|
2945
|
+
] }, C.id);
|
|
2802
2946
|
});
|
|
2803
2947
|
return {
|
|
2804
2948
|
id: u.id,
|
|
2805
2949
|
label: l(`${u.data.namespace}:${u.data.title}`),
|
|
2806
|
-
content: /* @__PURE__ */ o(
|
|
2950
|
+
content: /* @__PURE__ */ o(mo, { children: h })
|
|
2807
2951
|
};
|
|
2808
2952
|
}), p = [...n, ...d];
|
|
2809
|
-
return /* @__PURE__ */ o(
|
|
2810
|
-
},
|
|
2953
|
+
return /* @__PURE__ */ o(ho, { ...r, tabs: p });
|
|
2954
|
+
}, lt = T(
|
|
2811
2955
|
({ holder: e }) => {
|
|
2812
|
-
const { t } =
|
|
2956
|
+
const { t } = x("common"), { componentModeOverride: n } = N(), r = n === "compact", { visibleTroubles: s, initialized: a } = Me(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, h = (u == null ? void 0 : u.shouldDefer) ?? !1, m = (u == null ? void 0 : u.deferred) ?? !1, [C, P] = Oe(e), y = L(
|
|
2813
2957
|
(k) => {
|
|
2814
|
-
|
|
2958
|
+
h ? u == null || u.resolve() : P(k);
|
|
2815
2959
|
},
|
|
2816
|
-
[
|
|
2960
|
+
[P, h, u]
|
|
2817
2961
|
);
|
|
2818
|
-
return i && a && r ? /* @__PURE__ */
|
|
2962
|
+
return i && a && r ? /* @__PURE__ */ g(A, { children: [
|
|
2819
2963
|
l ? /* @__PURE__ */ o(
|
|
2820
|
-
|
|
2964
|
+
S,
|
|
2821
2965
|
{
|
|
2822
|
-
disabled:
|
|
2966
|
+
disabled: m,
|
|
2823
2967
|
mode: "primary",
|
|
2824
|
-
onPointerDown: () =>
|
|
2825
|
-
children: t("flush", { context:
|
|
2968
|
+
onPointerDown: () => y("flush"),
|
|
2969
|
+
children: t("flush", { context: m ? "queued" : "" })
|
|
2826
2970
|
}
|
|
2827
2971
|
) : p ? /* @__PURE__ */ o(
|
|
2828
|
-
|
|
2972
|
+
S,
|
|
2829
2973
|
{
|
|
2830
|
-
disabled:
|
|
2974
|
+
disabled: m,
|
|
2831
2975
|
mode: "primary",
|
|
2832
|
-
onPointerDown: () =>
|
|
2833
|
-
children: t("purge", { context:
|
|
2976
|
+
onPointerDown: () => y("purge"),
|
|
2977
|
+
children: t("purge", { context: m ? "queued" : "" })
|
|
2834
2978
|
}
|
|
2835
2979
|
) : d ? /* @__PURE__ */ o(
|
|
2836
|
-
|
|
2980
|
+
S,
|
|
2837
2981
|
{
|
|
2838
|
-
disabled:
|
|
2982
|
+
disabled: m,
|
|
2839
2983
|
mode: "primary",
|
|
2840
|
-
onPointerDown: () =>
|
|
2841
|
-
children: t("prime", { context:
|
|
2984
|
+
onPointerDown: () => y("prime"),
|
|
2985
|
+
children: t("prime", { context: m ? "queued" : "" })
|
|
2842
2986
|
}
|
|
2843
2987
|
) : null,
|
|
2844
|
-
|
|
2988
|
+
C && /* @__PURE__ */ o(H, { ...C })
|
|
2845
2989
|
] }) : null;
|
|
2846
2990
|
}
|
|
2847
|
-
),
|
|
2991
|
+
), He = ({
|
|
2848
2992
|
holder: e,
|
|
2849
2993
|
filter: t
|
|
2850
2994
|
}) => {
|
|
2851
|
-
const { componentModeOverride: n } =
|
|
2995
|
+
const { componentModeOverride: n } = N(), r = n === "standard", { visibleTroubles: s, initialized: a } = Me(e), c = t ? s == null ? void 0 : s.filter(t) : s;
|
|
2852
2996
|
return ((c == null ? void 0 : c.length) ?? 0) > 0 && a && (s == null ? void 0 : s.map((d) => /* @__PURE__ */ o(
|
|
2853
|
-
|
|
2997
|
+
Fs,
|
|
2854
2998
|
{
|
|
2855
2999
|
showAction: r,
|
|
2856
3000
|
trouble: d
|
|
2857
3001
|
},
|
|
2858
3002
|
d.id
|
|
2859
3003
|
)));
|
|
2860
|
-
},
|
|
3004
|
+
}, ka = T(
|
|
2861
3005
|
({ holder: e }) => {
|
|
2862
|
-
const { t } =
|
|
2863
|
-
|
|
2864
|
-
async function
|
|
3006
|
+
const { t } = x("common"), [n, r] = Oe(e), [s, a] = w();
|
|
3007
|
+
O(() => {
|
|
3008
|
+
async function h() {
|
|
2865
3009
|
if (e.ingredientId !== void 0) {
|
|
2866
|
-
const
|
|
2867
|
-
a(Math.round(
|
|
3010
|
+
const m = await e.resolveIntentVolume("CALIBRATE");
|
|
3011
|
+
a(Math.round(m.volume));
|
|
2868
3012
|
}
|
|
2869
3013
|
}
|
|
2870
|
-
|
|
3014
|
+
h();
|
|
2871
3015
|
}, [e, e.ingredientId]);
|
|
2872
|
-
const c = e.ingredientId !== void 0, i = s && s > 0, { holderExperience: l, setHolderExperience: d, currentExperienceId: p } =
|
|
2873
|
-
return c || p === "replace-line" ? /* @__PURE__ */
|
|
2874
|
-
/* @__PURE__ */ o(q, { contain: !0, children: /* @__PURE__ */ o(
|
|
2875
|
-
/* @__PURE__ */
|
|
3016
|
+
const c = e.ingredientId !== void 0, i = s && s > 0, { holderExperience: l, setHolderExperience: d, currentExperienceId: p } = rt(e);
|
|
3017
|
+
return c || p === "replace-line" ? /* @__PURE__ */ g(A, { children: [
|
|
3018
|
+
/* @__PURE__ */ o(q, { contain: !0, children: /* @__PURE__ */ o(He, { holder: e }) }),
|
|
3019
|
+
/* @__PURE__ */ g(K, { children: [
|
|
2876
3020
|
/* @__PURE__ */ o(
|
|
2877
|
-
|
|
3021
|
+
S,
|
|
2878
3022
|
{
|
|
2879
3023
|
disabled: !i,
|
|
2880
3024
|
onPointerDown: () => r("calibrate"),
|
|
@@ -2885,18 +3029,18 @@ const ws = w.div`
|
|
|
2885
3029
|
}) : t("calibrate")
|
|
2886
3030
|
}
|
|
2887
3031
|
),
|
|
2888
|
-
/* @__PURE__ */ o(
|
|
2889
|
-
/* @__PURE__ */ o(
|
|
2890
|
-
/* @__PURE__ */ o(
|
|
3032
|
+
/* @__PURE__ */ o(S, { onPointerDown: () => d("replace-line"), children: t("replace-line") }),
|
|
3033
|
+
/* @__PURE__ */ o(Ne, { disabled: !c, model: e }),
|
|
3034
|
+
/* @__PURE__ */ o(lt, { holder: e })
|
|
2891
3035
|
] }),
|
|
2892
|
-
/* @__PURE__ */ o(
|
|
2893
|
-
n && /* @__PURE__ */ o(
|
|
2894
|
-
] }) : /* @__PURE__ */ o(
|
|
3036
|
+
/* @__PURE__ */ o(Je, { children: l }),
|
|
3037
|
+
n && /* @__PURE__ */ o(H, { ...n })
|
|
3038
|
+
] }) : /* @__PURE__ */ o(zn, { showCloseButton: !1, holder: e });
|
|
2895
3039
|
}
|
|
2896
|
-
),
|
|
3040
|
+
), Ia = T(
|
|
2897
3041
|
({ holder: e }) => {
|
|
2898
|
-
const { t } =
|
|
2899
|
-
|
|
3042
|
+
const { t } = x("common"), [n, r] = Oe(e), [s, a] = w();
|
|
3043
|
+
O(() => {
|
|
2900
3044
|
async function l() {
|
|
2901
3045
|
if (e.ingredientId !== void 0) {
|
|
2902
3046
|
const d = await e.resolveIntentVolume("CALIBRATE");
|
|
@@ -2906,11 +3050,11 @@ const ws = w.div`
|
|
|
2906
3050
|
l();
|
|
2907
3051
|
}, [e, e.ingredientId]);
|
|
2908
3052
|
const c = e.ingredientId !== void 0, i = s && s > 0;
|
|
2909
|
-
return c ? /* @__PURE__ */
|
|
2910
|
-
/* @__PURE__ */ o(q, { contain: !0, children: /* @__PURE__ */ o(
|
|
2911
|
-
/* @__PURE__ */
|
|
3053
|
+
return c ? /* @__PURE__ */ g(A, { children: [
|
|
3054
|
+
/* @__PURE__ */ o(q, { contain: !0, children: /* @__PURE__ */ o(He, { holder: e }) }),
|
|
3055
|
+
/* @__PURE__ */ g(K, { children: [
|
|
2912
3056
|
/* @__PURE__ */ o(
|
|
2913
|
-
|
|
3057
|
+
S,
|
|
2914
3058
|
{
|
|
2915
3059
|
disabled: !i,
|
|
2916
3060
|
onPointerDown: () => r("calibrate"),
|
|
@@ -2921,58 +3065,58 @@ const ws = w.div`
|
|
|
2921
3065
|
}) : t("calibrate")
|
|
2922
3066
|
}
|
|
2923
3067
|
),
|
|
2924
|
-
/* @__PURE__ */ o(
|
|
2925
|
-
/* @__PURE__ */ o(
|
|
3068
|
+
/* @__PURE__ */ o(Ne, { disabled: !c, model: e }),
|
|
3069
|
+
/* @__PURE__ */ o(lt, { holder: e })
|
|
2926
3070
|
] }),
|
|
2927
|
-
n && /* @__PURE__ */ o(
|
|
2928
|
-
] }) : /* @__PURE__ */ o(
|
|
3071
|
+
n && /* @__PURE__ */ o(H, { ...n })
|
|
3072
|
+
] }) : /* @__PURE__ */ o(zn, { showCloseButton: !1, holder: e });
|
|
2929
3073
|
}
|
|
2930
|
-
),
|
|
2931
|
-
({ holder: e }) => /* @__PURE__ */
|
|
2932
|
-
/* @__PURE__ */ o(
|
|
2933
|
-
/* @__PURE__ */
|
|
2934
|
-
/* @__PURE__ */ o(
|
|
2935
|
-
/* @__PURE__ */ o(
|
|
3074
|
+
), Ta = T(
|
|
3075
|
+
({ holder: e }) => /* @__PURE__ */ g(A, { children: [
|
|
3076
|
+
/* @__PURE__ */ o(He, { holder: e }),
|
|
3077
|
+
/* @__PURE__ */ g(K, { children: [
|
|
3078
|
+
/* @__PURE__ */ o(Ne, { model: e }),
|
|
3079
|
+
/* @__PURE__ */ o(lt, { holder: e })
|
|
2936
3080
|
] })
|
|
2937
3081
|
] })
|
|
2938
|
-
),
|
|
3082
|
+
), Da = T(
|
|
2939
3083
|
({ holder: e }) => {
|
|
2940
|
-
const { t } =
|
|
2941
|
-
return /* @__PURE__ */
|
|
2942
|
-
/* @__PURE__ */ o(
|
|
2943
|
-
/* @__PURE__ */
|
|
2944
|
-
/* @__PURE__ */ o(
|
|
2945
|
-
/* @__PURE__ */ o(
|
|
2946
|
-
/* @__PURE__ */ o(
|
|
2947
|
-
/* @__PURE__ */ o(
|
|
2948
|
-
/* @__PURE__ */ o(
|
|
3084
|
+
const { t } = x("common"), [n, r] = Oe(e), { holderExperience: s, setHolderExperience: a } = rt(e);
|
|
3085
|
+
return /* @__PURE__ */ g(A, { children: [
|
|
3086
|
+
/* @__PURE__ */ o(He, { holder: e }),
|
|
3087
|
+
/* @__PURE__ */ g(K, { children: [
|
|
3088
|
+
/* @__PURE__ */ o(Ne, { model: e }),
|
|
3089
|
+
/* @__PURE__ */ o(S, { onPointerDown: () => r("high-flow-test"), children: t("high-flow-test") }),
|
|
3090
|
+
/* @__PURE__ */ o(S, { onPointerDown: () => r("low-flow-test"), children: t("low-flow-test") }),
|
|
3091
|
+
/* @__PURE__ */ o(S, { onPointerDown: () => a("diagnostics"), children: t("diagnostics") }),
|
|
3092
|
+
/* @__PURE__ */ o(S, { onPointerDown: () => a("calibrate"), children: t("calibrate") })
|
|
2949
3093
|
] }),
|
|
2950
|
-
/* @__PURE__ */ o(
|
|
2951
|
-
n && /* @__PURE__ */ o(
|
|
3094
|
+
/* @__PURE__ */ o(Je, { children: s }),
|
|
3095
|
+
n && /* @__PURE__ */ o(H, { ...n })
|
|
2952
3096
|
] });
|
|
2953
3097
|
}
|
|
2954
|
-
),
|
|
3098
|
+
), $s = v.section`
|
|
2955
3099
|
align-items: center;
|
|
2956
3100
|
display: flex;
|
|
2957
3101
|
flex-direction: column;
|
|
2958
3102
|
gap: 32px;
|
|
2959
3103
|
height: 100%;
|
|
2960
3104
|
justify-content: space-between;
|
|
2961
|
-
`,
|
|
3105
|
+
`, Bs = v.div`
|
|
2962
3106
|
display: flex;
|
|
2963
3107
|
gap: 32px;
|
|
2964
3108
|
flex-direction: column;
|
|
2965
3109
|
align-items: center;
|
|
2966
3110
|
padding: 32px;
|
|
2967
|
-
`,
|
|
3111
|
+
`, Os = v.div`
|
|
2968
3112
|
display: flex;
|
|
2969
3113
|
flex-direction: column;
|
|
2970
3114
|
gap: 12px;
|
|
2971
3115
|
text-align: center;
|
|
2972
|
-
`,
|
|
2973
|
-
const { t } =
|
|
2974
|
-
return /* @__PURE__ */
|
|
2975
|
-
|
|
3116
|
+
`, Aa = ({ onComplete: e }) => {
|
|
3117
|
+
const { t } = x("reboot"), [n, r] = w(!1), { model: s } = it(), { componentModeOverride: a } = N();
|
|
3118
|
+
return /* @__PURE__ */ g(
|
|
3119
|
+
oe,
|
|
2976
3120
|
{
|
|
2977
3121
|
show: !n,
|
|
2978
3122
|
onClose: () => r(!0),
|
|
@@ -2980,21 +3124,21 @@ const ws = w.div`
|
|
|
2980
3124
|
contain: a !== "compact",
|
|
2981
3125
|
children: [
|
|
2982
3126
|
a === "compact" && /* @__PURE__ */ o(
|
|
2983
|
-
|
|
3127
|
+
re,
|
|
2984
3128
|
{
|
|
2985
3129
|
title: t("reboot"),
|
|
2986
3130
|
showCloseButton: !0,
|
|
2987
3131
|
onClose: () => r(!0),
|
|
2988
|
-
CloseButton:
|
|
3132
|
+
CloseButton: go
|
|
2989
3133
|
}
|
|
2990
3134
|
),
|
|
2991
|
-
/* @__PURE__ */
|
|
2992
|
-
/* @__PURE__ */
|
|
2993
|
-
/* @__PURE__ */ o(
|
|
2994
|
-
/* @__PURE__ */ o(
|
|
3135
|
+
/* @__PURE__ */ g($s, { children: [
|
|
3136
|
+
/* @__PURE__ */ g(Bs, { children: [
|
|
3137
|
+
/* @__PURE__ */ o(fo, {}),
|
|
3138
|
+
/* @__PURE__ */ o(Os, { children: /* @__PURE__ */ o(Xt, { children: t("modal-heading", "Are you sure you want to reboot dispenser?") }) })
|
|
2995
3139
|
] }),
|
|
2996
3140
|
/* @__PURE__ */ o(
|
|
2997
|
-
|
|
3141
|
+
bo,
|
|
2998
3142
|
{
|
|
2999
3143
|
cancelLabel: `${t("cancel", "Cancel")}`,
|
|
3000
3144
|
proceedLabel: `${t("reboot", "Reboot")}`,
|
|
@@ -3006,76 +3150,76 @@ const ws = w.div`
|
|
|
3006
3150
|
]
|
|
3007
3151
|
}
|
|
3008
3152
|
);
|
|
3009
|
-
},
|
|
3153
|
+
}, Vs = T(
|
|
3010
3154
|
({ holder: e, onComplete: t }) => {
|
|
3011
|
-
const { t: n } =
|
|
3012
|
-
return
|
|
3155
|
+
const { t: n } = x("replace-line"), [r, s] = w(), [a, c] = w();
|
|
3156
|
+
return O(() => {
|
|
3013
3157
|
e.replaceLine().then(() => {
|
|
3014
3158
|
s("success");
|
|
3015
3159
|
});
|
|
3016
|
-
}, [e]), /* @__PURE__ */ o(
|
|
3160
|
+
}, [e]), /* @__PURE__ */ o(qt, { show: r !== void 0, onClose: () => {
|
|
3017
3161
|
if (a) {
|
|
3018
3162
|
s(void 0);
|
|
3019
3163
|
return;
|
|
3020
3164
|
}
|
|
3021
3165
|
t();
|
|
3022
|
-
}, children: r === "failure" ? /* @__PURE__ */ o(
|
|
3166
|
+
}, children: r === "failure" ? /* @__PURE__ */ o(Ee, { children: n(a || "unknownError") }) : r === "success" ? /* @__PURE__ */ o(tt, { children: n("success") }) : null });
|
|
3023
3167
|
}
|
|
3024
|
-
),
|
|
3168
|
+
), Rs = v.div`
|
|
3025
3169
|
display: flex;
|
|
3026
3170
|
flex-direction: column;
|
|
3027
3171
|
overflow-y: auto;
|
|
3028
3172
|
overflow-x: hidden;
|
|
3029
3173
|
gap: 32px;
|
|
3030
3174
|
height: 100%;
|
|
3031
|
-
`,
|
|
3175
|
+
`, Ns = T(
|
|
3032
3176
|
({ pump: e, onComplete: t }) => {
|
|
3033
|
-
const [n, r] =
|
|
3177
|
+
const [n, r] = w(!1), { t: s } = x("replace-pump"), { componentModeOverride: a } = N(), [c, i] = w(), [l, d] = w(), [p, u] = w(), h = Ae(
|
|
3034
3178
|
e,
|
|
3035
|
-
|
|
3036
|
-
),
|
|
3179
|
+
Ko.type
|
|
3180
|
+
), m = e.name, C = L(
|
|
3037
3181
|
(k) => {
|
|
3038
3182
|
if (k !== void 0 && k.length === 0)
|
|
3039
3183
|
return s("pump-calibration-length-error");
|
|
3040
3184
|
},
|
|
3041
3185
|
[s]
|
|
3042
|
-
),
|
|
3186
|
+
), P = L(async () => {
|
|
3043
3187
|
if (c === void 0)
|
|
3044
3188
|
return;
|
|
3045
|
-
const [k] = await
|
|
3189
|
+
const [k] = await h.replacePump(c);
|
|
3046
3190
|
k ? (d("failure"), u(k)) : d("success");
|
|
3047
|
-
}, [
|
|
3191
|
+
}, [h, c]), y = () => {
|
|
3048
3192
|
if (p) {
|
|
3049
3193
|
d(void 0);
|
|
3050
3194
|
return;
|
|
3051
3195
|
}
|
|
3052
3196
|
r(!0);
|
|
3053
3197
|
};
|
|
3054
|
-
return /* @__PURE__ */
|
|
3198
|
+
return /* @__PURE__ */ g(A, { children: [
|
|
3055
3199
|
/* @__PURE__ */ o(
|
|
3056
|
-
|
|
3200
|
+
oe,
|
|
3057
3201
|
{
|
|
3058
3202
|
contain: a !== "compact",
|
|
3059
3203
|
onClosed: t,
|
|
3060
3204
|
show: !n,
|
|
3061
|
-
children: /* @__PURE__ */
|
|
3205
|
+
children: /* @__PURE__ */ g(Rs, { children: [
|
|
3062
3206
|
/* @__PURE__ */ o(
|
|
3063
|
-
|
|
3207
|
+
re,
|
|
3064
3208
|
{
|
|
3065
3209
|
contain: a === "compact",
|
|
3066
3210
|
showCloseButton: !0,
|
|
3067
|
-
title:
|
|
3068
|
-
label:
|
|
3211
|
+
title: m ? s("label-replace-pump", {
|
|
3212
|
+
label: m
|
|
3069
3213
|
}) : s("replace-pump"),
|
|
3070
3214
|
showOpenButton: !1,
|
|
3071
3215
|
onClose: () => r(!0),
|
|
3072
|
-
CloseButton: a === "compact" ?
|
|
3216
|
+
CloseButton: a === "compact" ? me : void 0
|
|
3073
3217
|
}
|
|
3074
3218
|
),
|
|
3075
3219
|
/* @__PURE__ */ o(q, { align: "top", children: /* @__PURE__ */ o(
|
|
3076
|
-
|
|
3220
|
+
te,
|
|
3077
3221
|
{
|
|
3078
|
-
isValid:
|
|
3222
|
+
isValid: C,
|
|
3079
3223
|
label: s("enter-pump-calibration-code"),
|
|
3080
3224
|
layout: "hex",
|
|
3081
3225
|
value: c,
|
|
@@ -3084,64 +3228,64 @@ const ws = w.div`
|
|
|
3084
3228
|
}
|
|
3085
3229
|
}
|
|
3086
3230
|
) }),
|
|
3087
|
-
/* @__PURE__ */ o(
|
|
3088
|
-
|
|
3231
|
+
/* @__PURE__ */ o(K, { children: /* @__PURE__ */ o(
|
|
3232
|
+
S,
|
|
3089
3233
|
{
|
|
3090
3234
|
mode: "primary",
|
|
3091
3235
|
disabled: !c || !!p,
|
|
3092
|
-
onPointerDown:
|
|
3236
|
+
onPointerDown: P,
|
|
3093
3237
|
children: s("replace-pump")
|
|
3094
3238
|
}
|
|
3095
3239
|
) })
|
|
3096
3240
|
] })
|
|
3097
3241
|
}
|
|
3098
3242
|
),
|
|
3099
|
-
/* @__PURE__ */ o(
|
|
3243
|
+
/* @__PURE__ */ o(qt, { show: l !== void 0, onClose: y, children: l === "failure" ? /* @__PURE__ */ o(Ee, { children: s(p || "unknownError") }) : l === "success" ? /* @__PURE__ */ o(tt, { children: s("success") }) : null })
|
|
3100
3244
|
] });
|
|
3101
3245
|
}
|
|
3102
|
-
),
|
|
3246
|
+
), Ms = /^[0-9a-fA-F]+$/, Mt = (e) => Ms.test(e), Hs = v.div`
|
|
3103
3247
|
display: flex;
|
|
3104
3248
|
flex-direction: column;
|
|
3105
3249
|
overflow-y: auto;
|
|
3106
3250
|
overflow-x: hidden;
|
|
3107
3251
|
height: 100%;
|
|
3108
|
-
`,
|
|
3252
|
+
`, zs = T(
|
|
3109
3253
|
({ holder: e, onComplete: t }) => {
|
|
3110
|
-
const n = e.name, [r, s] =
|
|
3111
|
-
if (
|
|
3254
|
+
const n = e.name, [r, s] = w(!1), { t: a } = x("rfid-override"), { componentModeOverride: c } = N(), [i, l] = w(), [d, p] = w(), [u, h] = w(), [m, C] = w(), [P, y] = w(), k = (b) => {
|
|
3255
|
+
if (b !== void 0 && b.length !== 12)
|
|
3112
3256
|
return a("errIdLen");
|
|
3113
|
-
if (!Mt(
|
|
3257
|
+
if (!Mt(b))
|
|
3114
3258
|
return a("errIdFormat");
|
|
3115
|
-
},
|
|
3116
|
-
if (
|
|
3259
|
+
}, E = (b) => {
|
|
3260
|
+
if (b !== void 0 && b.length !== 8)
|
|
3117
3261
|
return a("errCodeLen");
|
|
3118
|
-
if (!Mt(
|
|
3262
|
+
if (!Mt(b))
|
|
3119
3263
|
return a("errCodeFormat");
|
|
3120
|
-
},
|
|
3264
|
+
}, I = async () => {
|
|
3121
3265
|
try {
|
|
3122
3266
|
await e.overrideRfidCode({
|
|
3123
3267
|
stickerId: i,
|
|
3124
3268
|
stickerCode: d
|
|
3125
3269
|
}), s(!0);
|
|
3126
|
-
} catch (
|
|
3127
|
-
switch (
|
|
3270
|
+
} catch (b) {
|
|
3271
|
+
switch (b.type) {
|
|
3128
3272
|
case "errIdLen":
|
|
3129
3273
|
case "errIdFormat":
|
|
3130
|
-
|
|
3274
|
+
C(b.type);
|
|
3131
3275
|
break;
|
|
3132
3276
|
case "errCodeLen":
|
|
3133
3277
|
case "errCodeFormat":
|
|
3134
|
-
b
|
|
3278
|
+
y(b.type);
|
|
3135
3279
|
break;
|
|
3136
3280
|
case "errVerify":
|
|
3137
3281
|
case "errBadJson":
|
|
3138
|
-
|
|
3282
|
+
h(b.type);
|
|
3139
3283
|
break;
|
|
3140
3284
|
}
|
|
3141
3285
|
}
|
|
3142
3286
|
};
|
|
3143
|
-
return /* @__PURE__ */
|
|
3144
|
-
|
|
3287
|
+
return /* @__PURE__ */ g(
|
|
3288
|
+
oe,
|
|
3145
3289
|
{
|
|
3146
3290
|
contain: c !== "compact",
|
|
3147
3291
|
mode: "maximized",
|
|
@@ -3149,7 +3293,7 @@ const ws = w.div`
|
|
|
3149
3293
|
show: !r,
|
|
3150
3294
|
children: [
|
|
3151
3295
|
/* @__PURE__ */ o(
|
|
3152
|
-
|
|
3296
|
+
re,
|
|
3153
3297
|
{
|
|
3154
3298
|
contain: c === "compact",
|
|
3155
3299
|
showCloseButton: !0,
|
|
@@ -3158,54 +3302,54 @@ const ws = w.div`
|
|
|
3158
3302
|
}) : a("rfid-override"),
|
|
3159
3303
|
showOpenButton: !1,
|
|
3160
3304
|
onClose: () => s(!0),
|
|
3161
|
-
CloseButton: c === "compact" ?
|
|
3305
|
+
CloseButton: c === "compact" ? me : void 0
|
|
3162
3306
|
}
|
|
3163
3307
|
),
|
|
3164
|
-
/* @__PURE__ */
|
|
3165
|
-
/* @__PURE__ */
|
|
3166
|
-
/* @__PURE__ */ o(
|
|
3308
|
+
/* @__PURE__ */ g(Hs, { children: [
|
|
3309
|
+
/* @__PURE__ */ g(q, { align: "top", children: [
|
|
3310
|
+
/* @__PURE__ */ o(vo, { children: a("info") }),
|
|
3167
3311
|
/* @__PURE__ */ o(
|
|
3168
|
-
|
|
3312
|
+
pt,
|
|
3169
3313
|
{
|
|
3170
3314
|
isValid: k,
|
|
3171
|
-
description:
|
|
3315
|
+
description: m ? a(m) : void 0,
|
|
3172
3316
|
label: a("enter-cartridge-id"),
|
|
3173
3317
|
layout: "hex",
|
|
3174
3318
|
value: i,
|
|
3175
|
-
onChange: (
|
|
3176
|
-
|
|
3319
|
+
onChange: (b) => {
|
|
3320
|
+
C(void 0), l(b);
|
|
3177
3321
|
}
|
|
3178
3322
|
}
|
|
3179
3323
|
),
|
|
3180
3324
|
/* @__PURE__ */ o(
|
|
3181
|
-
|
|
3325
|
+
pt,
|
|
3182
3326
|
{
|
|
3183
|
-
isValid:
|
|
3184
|
-
description:
|
|
3327
|
+
isValid: E,
|
|
3328
|
+
description: P ? a(P) : void 0,
|
|
3185
3329
|
label: a("enter-code"),
|
|
3186
3330
|
layout: "hex",
|
|
3187
3331
|
value: d,
|
|
3188
|
-
onChange: (
|
|
3189
|
-
|
|
3332
|
+
onChange: (b) => {
|
|
3333
|
+
y(void 0), p(b);
|
|
3190
3334
|
}
|
|
3191
3335
|
}
|
|
3192
3336
|
)
|
|
3193
3337
|
] }),
|
|
3194
|
-
/* @__PURE__ */ o(
|
|
3195
|
-
|
|
3338
|
+
/* @__PURE__ */ o(K, { children: /* @__PURE__ */ o(
|
|
3339
|
+
S,
|
|
3196
3340
|
{
|
|
3197
3341
|
mode: "primary",
|
|
3198
3342
|
disabled: !i || !d,
|
|
3199
|
-
onPointerDown:
|
|
3343
|
+
onPointerDown: I,
|
|
3200
3344
|
children: a("override")
|
|
3201
3345
|
}
|
|
3202
3346
|
) }),
|
|
3203
3347
|
u && /* @__PURE__ */ o(
|
|
3204
|
-
|
|
3348
|
+
Kt,
|
|
3205
3349
|
{
|
|
3206
|
-
onClose: () =>
|
|
3350
|
+
onClose: () => h(void 0),
|
|
3207
3351
|
renderFailure: /* @__PURE__ */ o(
|
|
3208
|
-
|
|
3352
|
+
yo,
|
|
3209
3353
|
{
|
|
3210
3354
|
heading: a("rfid-override"),
|
|
3211
3355
|
message: a(u, { holder: e.name })
|
|
@@ -3222,19 +3366,19 @@ const ws = w.div`
|
|
|
3222
3366
|
}
|
|
3223
3367
|
);
|
|
3224
3368
|
}
|
|
3225
|
-
),
|
|
3369
|
+
), La = T(
|
|
3226
3370
|
({ setupPath: e }) => {
|
|
3227
|
-
const { model: t } =
|
|
3228
|
-
return
|
|
3371
|
+
const { model: t } = ct(), [n, r] = w(!1), [s] = Uo(), a = !!s.get("skipSetup"), c = wo();
|
|
3372
|
+
return O(() => {
|
|
3229
3373
|
!n && (t != null && t.setupRequired) && (r(!0), a || c(e));
|
|
3230
3374
|
}, [t == null ? void 0 : t.setupRequired, n, c, e, a]), null;
|
|
3231
3375
|
}
|
|
3232
|
-
),
|
|
3376
|
+
), _s = v.div`
|
|
3233
3377
|
cursor: pointer;
|
|
3234
3378
|
display: flex;
|
|
3235
3379
|
gap: 8px;
|
|
3236
3380
|
align-items: center;
|
|
3237
|
-
`,
|
|
3381
|
+
`, Us = v.div`
|
|
3238
3382
|
color: var(--ddk-generic-color-grey-100, #171717);
|
|
3239
3383
|
font-size: var(--ddk-component-sidebar-font-size-medium);
|
|
3240
3384
|
font-style: normal;
|
|
@@ -3243,70 +3387,263 @@ const ws = w.div`
|
|
|
3243
3387
|
letter-spacing: 0.44px;
|
|
3244
3388
|
white-space: nowrap;
|
|
3245
3389
|
overflow: hidden;
|
|
3246
|
-
`,
|
|
3247
|
-
const { t: r, labelMap: s } =
|
|
3390
|
+
`, Ks = T(({ setupStepContainer: e, onStepSelected: t, ...n }) => {
|
|
3391
|
+
const { t: r, labelMap: s } = Hr({
|
|
3248
3392
|
defaultNamespace: "setup",
|
|
3249
|
-
extensionPoint:
|
|
3250
|
-
}), a = e == null ? void 0 : e.currentStep, c = (e == null ? void 0 : e.data.map((i) => /* @__PURE__ */
|
|
3251
|
-
|
|
3393
|
+
extensionPoint: Jt
|
|
3394
|
+
}), a = e == null ? void 0 : e.currentStep, c = (e == null ? void 0 : e.data.map((i) => /* @__PURE__ */ g(
|
|
3395
|
+
_s,
|
|
3252
3396
|
{
|
|
3253
3397
|
onPointerDown: () => {
|
|
3254
3398
|
e.setCurrentStep(i.id), t(i.id);
|
|
3255
3399
|
},
|
|
3256
3400
|
children: [
|
|
3257
3401
|
/* @__PURE__ */ o(
|
|
3258
|
-
|
|
3402
|
+
$e,
|
|
3259
3403
|
{
|
|
3260
3404
|
size: "large",
|
|
3261
3405
|
status: a === i ? "active" : i.complete ? "completed" : "pending"
|
|
3262
3406
|
}
|
|
3263
3407
|
),
|
|
3264
|
-
/* @__PURE__ */ o(
|
|
3408
|
+
/* @__PURE__ */ o(Us, { children: r(s[i.name] ?? i.titleKey) })
|
|
3265
3409
|
]
|
|
3266
3410
|
},
|
|
3267
3411
|
i.id
|
|
3268
3412
|
))) || [];
|
|
3269
|
-
return /* @__PURE__ */ o(
|
|
3270
|
-
}),
|
|
3271
|
-
const { model: e } =
|
|
3272
|
-
return (e == null ? void 0 : e.nodes) && e.nodes.map((t, n) => /* @__PURE__ */ o(
|
|
3273
|
-
|
|
3413
|
+
return /* @__PURE__ */ o(Co, { ...n, children: c });
|
|
3414
|
+
}), Ea = Xr(Ks), Fa = T(() => {
|
|
3415
|
+
const { model: e } = Zn();
|
|
3416
|
+
return (e == null ? void 0 : e.nodes) && e.nodes.map((t, n) => /* @__PURE__ */ o(Yt, { name: t.nodeName, children: Object.keys(t.group).map((r, s) => /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(
|
|
3417
|
+
xo,
|
|
3274
3418
|
{
|
|
3275
3419
|
keyList: ["name", "version"],
|
|
3276
3420
|
tableHead: r === "undefined" ? "" : r,
|
|
3277
3421
|
tableData: t.group[r]
|
|
3278
3422
|
}
|
|
3279
3423
|
) }, s)) }, n));
|
|
3280
|
-
},
|
|
3281
|
-
|
|
3282
|
-
const
|
|
3424
|
+
}), js = T(
|
|
3425
|
+
({ pump: e, onComplete: t }) => {
|
|
3426
|
+
const { t: n } = x("common", {
|
|
3427
|
+
keyPrefix: "spm-field-calibration"
|
|
3428
|
+
}), [r, s] = w("calibration-idle"), [a, c] = w(), [i, l] = w(), [d, p] = w(), { future: u } = se(e);
|
|
3429
|
+
O(() => {
|
|
3430
|
+
switch (u == null ? void 0 : u.endState) {
|
|
3431
|
+
case "CANCEL":
|
|
3432
|
+
switch (r) {
|
|
3433
|
+
case "preparation-in-progress":
|
|
3434
|
+
s("preparation-idle");
|
|
3435
|
+
break;
|
|
3436
|
+
default:
|
|
3437
|
+
c("calibration-canceled"), s("failure");
|
|
3438
|
+
}
|
|
3439
|
+
break;
|
|
3440
|
+
case "SUCCESS":
|
|
3441
|
+
switch (r) {
|
|
3442
|
+
case "preparation-in-progress":
|
|
3443
|
+
s("preparation-success");
|
|
3444
|
+
break;
|
|
3445
|
+
case "calibration-in-progress":
|
|
3446
|
+
s("calibration-input");
|
|
3447
|
+
break;
|
|
3448
|
+
case "verification-in-progress":
|
|
3449
|
+
s("verification-input");
|
|
3450
|
+
break;
|
|
3451
|
+
}
|
|
3452
|
+
break;
|
|
3453
|
+
case "FAIL":
|
|
3454
|
+
case "ABORT":
|
|
3455
|
+
c(""), s("failure");
|
|
3456
|
+
break;
|
|
3457
|
+
}
|
|
3458
|
+
}, [u == null ? void 0 : u.endState, u == null ? void 0 : u.reason, r]);
|
|
3459
|
+
const h = D(() => ({
|
|
3460
|
+
"preparation-idle": {
|
|
3461
|
+
information: /* @__PURE__ */ o(B, { children: n("preparation-idle-info") }),
|
|
3462
|
+
footer: /* @__PURE__ */ o(
|
|
3463
|
+
S,
|
|
3464
|
+
{
|
|
3465
|
+
onPointerDown: () => {
|
|
3466
|
+
e.performPreCalibrate(), s("preparation-in-progress");
|
|
3467
|
+
},
|
|
3468
|
+
children: n("preparation-action")
|
|
3469
|
+
}
|
|
3470
|
+
),
|
|
3471
|
+
status: "information"
|
|
3472
|
+
},
|
|
3473
|
+
"preparation-in-progress": {
|
|
3474
|
+
information: /* @__PURE__ */ o(B, { children: n("preparation-progress-info") }),
|
|
3475
|
+
footer: /* @__PURE__ */ o(S, { disabled: !0, children: n("preparation-action") }),
|
|
3476
|
+
status: "loading"
|
|
3477
|
+
},
|
|
3478
|
+
"preparation-success": {
|
|
3479
|
+
information: /* @__PURE__ */ o(B, { children: n("preparation-success-info") }),
|
|
3480
|
+
footer: /* @__PURE__ */ o(S, { onPointerDown: () => s("calibration-idle"), children: n("preparation-success-action") }),
|
|
3481
|
+
status: "success"
|
|
3482
|
+
},
|
|
3483
|
+
"preparation-failed": {},
|
|
3484
|
+
"calibration-idle": {
|
|
3485
|
+
information: /* @__PURE__ */ o(U, { children: n("calibration-idle-info") }),
|
|
3486
|
+
footer: /* @__PURE__ */ o(
|
|
3487
|
+
S,
|
|
3488
|
+
{
|
|
3489
|
+
onPointerDown: () => {
|
|
3490
|
+
e.performCalibrate(), s("calibration-in-progress");
|
|
3491
|
+
},
|
|
3492
|
+
children: n("calibrate")
|
|
3493
|
+
}
|
|
3494
|
+
),
|
|
3495
|
+
status: "information"
|
|
3496
|
+
},
|
|
3497
|
+
"calibration-in-progress": {
|
|
3498
|
+
information: /* @__PURE__ */ o(B, { children: n("calibration-progress-info") }),
|
|
3499
|
+
status: "loading"
|
|
3500
|
+
},
|
|
3501
|
+
"calibration-input": {
|
|
3502
|
+
information: /* @__PURE__ */ g(A, { children: [
|
|
3503
|
+
/* @__PURE__ */ o(U, { children: n("calibration-input-info") }),
|
|
3504
|
+
/* @__PURE__ */ o(
|
|
3505
|
+
te,
|
|
3506
|
+
{
|
|
3507
|
+
label: "Volume",
|
|
3508
|
+
unitValue: "ml",
|
|
3509
|
+
layout: "num",
|
|
3510
|
+
onChange: (m) => {
|
|
3511
|
+
m !== void 0 && l(m);
|
|
3512
|
+
},
|
|
3513
|
+
value: i !== void 0 ? i : ""
|
|
3514
|
+
}
|
|
3515
|
+
)
|
|
3516
|
+
] }),
|
|
3517
|
+
footer: /* @__PURE__ */ o(
|
|
3518
|
+
S,
|
|
3519
|
+
{
|
|
3520
|
+
disabled: i === void 0,
|
|
3521
|
+
onPointerDown: () => {
|
|
3522
|
+
i !== void 0 && s("verification-idle");
|
|
3523
|
+
},
|
|
3524
|
+
children: n("proceed")
|
|
3525
|
+
}
|
|
3526
|
+
),
|
|
3527
|
+
status: "information"
|
|
3528
|
+
},
|
|
3529
|
+
// Todo: calibration-input-confirmation if necessary...
|
|
3530
|
+
"calibration-input-confirmation": {},
|
|
3531
|
+
"verification-idle": {
|
|
3532
|
+
information: /* @__PURE__ */ o(U, { children: n("verification-idle-info") }),
|
|
3533
|
+
footer: /* @__PURE__ */ o(
|
|
3534
|
+
S,
|
|
3535
|
+
{
|
|
3536
|
+
onPointerDown: async () => {
|
|
3537
|
+
i !== void 0 && (e.performVerify(i, u == null ? void 0 : u.clientData), s("verification-in-progress"));
|
|
3538
|
+
},
|
|
3539
|
+
children: n("initiate-verification-pour")
|
|
3540
|
+
}
|
|
3541
|
+
),
|
|
3542
|
+
status: "information"
|
|
3543
|
+
},
|
|
3544
|
+
"verification-in-progress": {
|
|
3545
|
+
information: /* @__PURE__ */ o(B, { children: n("verification-progress-info") }),
|
|
3546
|
+
status: "loading"
|
|
3547
|
+
},
|
|
3548
|
+
"verification-trouble": {},
|
|
3549
|
+
"verification-input": {
|
|
3550
|
+
information: /* @__PURE__ */ g(A, { children: [
|
|
3551
|
+
/* @__PURE__ */ o(U, { children: n("verification-input-info") }),
|
|
3552
|
+
/* @__PURE__ */ o(
|
|
3553
|
+
te,
|
|
3554
|
+
{
|
|
3555
|
+
label: "Volume",
|
|
3556
|
+
unitValue: "ml",
|
|
3557
|
+
layout: "num",
|
|
3558
|
+
onChange: (m) => {
|
|
3559
|
+
m !== void 0 && p(m);
|
|
3560
|
+
},
|
|
3561
|
+
value: d !== void 0 ? d : ""
|
|
3562
|
+
}
|
|
3563
|
+
)
|
|
3564
|
+
] }),
|
|
3565
|
+
footer: /* @__PURE__ */ o(
|
|
3566
|
+
S,
|
|
3567
|
+
{
|
|
3568
|
+
disabled: d === void 0,
|
|
3569
|
+
onPointerDown: async () => {
|
|
3570
|
+
if (i === void 0 || d === void 0)
|
|
3571
|
+
return;
|
|
3572
|
+
const m = await e.performComplete(
|
|
3573
|
+
i,
|
|
3574
|
+
d,
|
|
3575
|
+
u == null ? void 0 : u.clientData
|
|
3576
|
+
);
|
|
3577
|
+
m === "success" ? s("verification-success") : (c(m), s(m === "errBadPump" ? "verification-failure" : "failure"));
|
|
3578
|
+
},
|
|
3579
|
+
children: n("proceed")
|
|
3580
|
+
}
|
|
3581
|
+
),
|
|
3582
|
+
status: "information"
|
|
3583
|
+
},
|
|
3584
|
+
// Todo: verification-input-confirmation if necessary...
|
|
3585
|
+
"verification-input-confirmation": {},
|
|
3586
|
+
"verification-success": {
|
|
3587
|
+
information: /* @__PURE__ */ o(B, { children: n("verification-success-info") }),
|
|
3588
|
+
footer: /* @__PURE__ */ o(S, { onPointerDown: t, children: n("exit-calibration") }),
|
|
3589
|
+
status: "success"
|
|
3590
|
+
},
|
|
3591
|
+
"verification-failure": {
|
|
3592
|
+
information: /* @__PURE__ */ o(B, { children: n(`error.${a || "unknownError"}`) }),
|
|
3593
|
+
footer: /* @__PURE__ */ o(S, { onPointerDown: t, children: n("exit-calibration") }),
|
|
3594
|
+
status: "error"
|
|
3595
|
+
},
|
|
3596
|
+
failure: {
|
|
3597
|
+
information: /* @__PURE__ */ g(A, { children: [
|
|
3598
|
+
/* @__PURE__ */ o(B, { children: n("calibration-failed") }),
|
|
3599
|
+
/* @__PURE__ */ o(U, { children: n(`error.${a || "unknownError"}`) })
|
|
3600
|
+
] }),
|
|
3601
|
+
footer: /* @__PURE__ */ o(S, { onPointerDown: t, children: n("exit-calibration") }),
|
|
3602
|
+
status: "error"
|
|
3603
|
+
}
|
|
3604
|
+
}), [a, t, e, n, i, d]);
|
|
3605
|
+
return /* @__PURE__ */ g(A, { children: [
|
|
3606
|
+
/* @__PURE__ */ o(
|
|
3607
|
+
qe,
|
|
3608
|
+
{
|
|
3609
|
+
title: n("title"),
|
|
3610
|
+
...h[r],
|
|
3611
|
+
onClose: () => t()
|
|
3612
|
+
}
|
|
3613
|
+
),
|
|
3614
|
+
u && /* @__PURE__ */ o(H, { title: n("initiating"), future: u })
|
|
3615
|
+
] });
|
|
3616
|
+
}
|
|
3617
|
+
), Ws = _.createLogger({ name: "state-experience" });
|
|
3618
|
+
Ws.debug("state-experience component loaded");
|
|
3619
|
+
const Gs = v.div``, $a = T(
|
|
3283
3620
|
() => {
|
|
3284
|
-
const { getExtensions: e } =
|
|
3285
|
-
return
|
|
3286
|
-
const c = e(
|
|
3287
|
-
(u,
|
|
3288
|
-
const
|
|
3289
|
-
return u[
|
|
3290
|
-
extension:
|
|
3291
|
-
module:
|
|
3292
|
-
namespace:
|
|
3293
|
-
title:
|
|
3294
|
-
stateValue:
|
|
3621
|
+
const { getExtensions: e } = Re(), { model: t } = xn(), [n, r] = w(null);
|
|
3622
|
+
return O(() => ne(() => {
|
|
3623
|
+
const c = e(Ge).reduce(
|
|
3624
|
+
(u, h) => {
|
|
3625
|
+
const m = h;
|
|
3626
|
+
return u[m.data.stateKey ?? m.data.troubleType] = {
|
|
3627
|
+
extension: Ge,
|
|
3628
|
+
module: m.id,
|
|
3629
|
+
namespace: m.data.namespace,
|
|
3630
|
+
title: m.data.title,
|
|
3631
|
+
stateValue: m.data.stateValue ?? m.data.troubleType
|
|
3295
3632
|
}, u;
|
|
3296
3633
|
},
|
|
3297
3634
|
{}
|
|
3298
3635
|
), i = t == null ? void 0 : t.activeTroubleType, l = t == null ? void 0 : t.activeTrouble, d = i ? c[i] : void 0, p = d ? /* @__PURE__ */ o(
|
|
3299
|
-
|
|
3636
|
+
Be,
|
|
3300
3637
|
{
|
|
3301
3638
|
...d,
|
|
3302
3639
|
props: { trouble: l }
|
|
3303
3640
|
}
|
|
3304
3641
|
) : null;
|
|
3305
3642
|
r(p);
|
|
3306
|
-
}), [e, t]), /* @__PURE__ */ o(
|
|
3643
|
+
}), [e, t]), /* @__PURE__ */ o(Gs, { children: n });
|
|
3307
3644
|
}
|
|
3308
|
-
),
|
|
3309
|
-
const { regionModel: e } =
|
|
3645
|
+
), Xs = [0, 6], Ys = () => {
|
|
3646
|
+
const { regionModel: e } = Y(), { model: t } = Ye(), [n, r] = w(/* @__PURE__ */ new Date()), s = n.getFullYear(), a = _t({
|
|
3310
3647
|
formatOptions: {
|
|
3311
3648
|
dayFormat: "short",
|
|
3312
3649
|
yearFormat: "long",
|
|
@@ -3314,7 +3651,7 @@ const Ns = w.div``, xa = I(
|
|
|
3314
3651
|
formatString: (e == null ? void 0 : e.selectedDateFormat) || "yyyy/MM/dd"
|
|
3315
3652
|
},
|
|
3316
3653
|
filterOptions: {
|
|
3317
|
-
daysOfWeekFilter:
|
|
3654
|
+
daysOfWeekFilter: Xs,
|
|
3318
3655
|
yearsRange: [s - 10, s + 10]
|
|
3319
3656
|
}
|
|
3320
3657
|
}), c = L(
|
|
@@ -3345,17 +3682,17 @@ const Ns = w.div``, xa = I(
|
|
|
3345
3682
|
[a.dateActions, t]
|
|
3346
3683
|
);
|
|
3347
3684
|
return /* @__PURE__ */ o(
|
|
3348
|
-
|
|
3685
|
+
Ar,
|
|
3349
3686
|
{
|
|
3350
3687
|
onDiscard: i,
|
|
3351
3688
|
onChange: c,
|
|
3352
3689
|
onSave: l
|
|
3353
3690
|
}
|
|
3354
3691
|
);
|
|
3355
|
-
},
|
|
3692
|
+
}, qs = T(
|
|
3356
3693
|
({ ...e }) => {
|
|
3357
3694
|
var i;
|
|
3358
|
-
const { regionModel: t } =
|
|
3695
|
+
const { regionModel: t } = Y(), { model: n } = Ye(), { t: r } = x("common"), s = t == null ? void 0 : t.allTimeZones.map((l) => ({ id: l, label: l.replace(/_/g, " ") })), a = (i = t == null ? void 0 : t.timeZones) == null ? void 0 : i.map((l) => ({ id: l, label: l.replace(/_/g, " ") })), c = [
|
|
3359
3696
|
{
|
|
3360
3697
|
id: "region",
|
|
3361
3698
|
label: r("suggested"),
|
|
@@ -3368,7 +3705,7 @@ const Ns = w.div``, xa = I(
|
|
|
3368
3705
|
}
|
|
3369
3706
|
];
|
|
3370
3707
|
return /* @__PURE__ */ o(
|
|
3371
|
-
|
|
3708
|
+
So,
|
|
3372
3709
|
{
|
|
3373
3710
|
...e,
|
|
3374
3711
|
label: r("time-zone"),
|
|
@@ -3383,16 +3720,16 @@ const Ns = w.div``, xa = I(
|
|
|
3383
3720
|
}
|
|
3384
3721
|
);
|
|
3385
3722
|
}
|
|
3386
|
-
),
|
|
3387
|
-
var
|
|
3388
|
-
const { t } =
|
|
3723
|
+
), Ba = T(({ showHeading: e }) => {
|
|
3724
|
+
var m, C, P, y, k, E, I, b;
|
|
3725
|
+
const { t } = x("region"), { regionModel: n } = Y(), { model: r } = Ye(), {
|
|
3389
3726
|
amPmOptions: s,
|
|
3390
3727
|
formattedTime: a,
|
|
3391
3728
|
hourOptions: c,
|
|
3392
3729
|
minuteOptions: i,
|
|
3393
3730
|
setTime: l,
|
|
3394
3731
|
time: d
|
|
3395
|
-
} =
|
|
3732
|
+
} = zt(), p = d.getHours(), u = D(
|
|
3396
3733
|
() => [
|
|
3397
3734
|
{
|
|
3398
3735
|
id: "hr",
|
|
@@ -3413,7 +3750,7 @@ const Ns = w.div``, xa = I(
|
|
|
3413
3750
|
}
|
|
3414
3751
|
],
|
|
3415
3752
|
[s, c, i, d, p]
|
|
3416
|
-
),
|
|
3753
|
+
), h = D(
|
|
3417
3754
|
() => [
|
|
3418
3755
|
{
|
|
3419
3756
|
id: "hr",
|
|
@@ -3430,74 +3767,74 @@ const Ns = w.div``, xa = I(
|
|
|
3430
3767
|
],
|
|
3431
3768
|
[c, i, d, p]
|
|
3432
3769
|
);
|
|
3433
|
-
return
|
|
3434
|
-
const
|
|
3770
|
+
return O(() => {
|
|
3771
|
+
const f = setInterval(() => {
|
|
3435
3772
|
l(/* @__PURE__ */ new Date());
|
|
3436
3773
|
}, 3e4);
|
|
3437
3774
|
return () => {
|
|
3438
|
-
clearInterval(
|
|
3775
|
+
clearInterval(f);
|
|
3439
3776
|
};
|
|
3440
|
-
}, [l]), /* @__PURE__ */
|
|
3441
|
-
e && /* @__PURE__ */ o(
|
|
3442
|
-
((
|
|
3443
|
-
|
|
3777
|
+
}, [l]), /* @__PURE__ */ g(he, { children: [
|
|
3778
|
+
e && /* @__PURE__ */ o(ge, { children: t("time-settings", "Time Settings") }),
|
|
3779
|
+
((m = n == null ? void 0 : n.dateFormatOptions) == null ? void 0 : m.length) && /* @__PURE__ */ o(
|
|
3780
|
+
Le,
|
|
3444
3781
|
{
|
|
3445
3782
|
label: t("date-format", "Date Format"),
|
|
3446
|
-
value: (
|
|
3447
|
-
(
|
|
3448
|
-
)) == null ? void 0 :
|
|
3449
|
-
options: (
|
|
3450
|
-
onChange: (
|
|
3783
|
+
value: (P = (C = n == null ? void 0 : n.dateFormatOptions) == null ? void 0 : C.find(
|
|
3784
|
+
(f) => f.format === n.selectedDateFormat
|
|
3785
|
+
)) == null ? void 0 : P.id,
|
|
3786
|
+
options: (y = n == null ? void 0 : n.dateFormatOptions) == null ? void 0 : y.map((f) => ({ label: f.format.toUpperCase(), ...f })),
|
|
3787
|
+
onChange: (f) => f && (n == null ? void 0 : n.setSelectedDateFormat(String(f)))
|
|
3451
3788
|
}
|
|
3452
3789
|
),
|
|
3453
|
-
/* @__PURE__ */ o(
|
|
3454
|
-
/* @__PURE__ */ o(
|
|
3790
|
+
/* @__PURE__ */ o(Ys, {}),
|
|
3791
|
+
/* @__PURE__ */ o(qs, {}),
|
|
3455
3792
|
((k = n == null ? void 0 : n.timeFormatOptions) == null ? void 0 : k.length) && /* @__PURE__ */ o(
|
|
3456
|
-
|
|
3793
|
+
Le,
|
|
3457
3794
|
{
|
|
3458
3795
|
label: t("time-format", "Time Format"),
|
|
3459
|
-
value: (
|
|
3460
|
-
(
|
|
3461
|
-
)) == null ? void 0 :
|
|
3462
|
-
options: (
|
|
3463
|
-
onChange: (
|
|
3796
|
+
value: (I = (E = n == null ? void 0 : n.timeFormatOptions) == null ? void 0 : E.find(
|
|
3797
|
+
(f) => f.format === n.selectedTimeFormat
|
|
3798
|
+
)) == null ? void 0 : I.id,
|
|
3799
|
+
options: (b = n == null ? void 0 : n.timeFormatOptions) == null ? void 0 : b.map((f) => ({ label: f != null && f.ampm ? "12 HR" : "24 HR", ...f })).reverse(),
|
|
3800
|
+
onChange: (f) => f && (n == null ? void 0 : n.setSelectedTimeFormat(String(f)))
|
|
3464
3801
|
}
|
|
3465
3802
|
),
|
|
3466
3803
|
/* @__PURE__ */ o(
|
|
3467
|
-
|
|
3804
|
+
Qe,
|
|
3468
3805
|
{
|
|
3469
|
-
data: n != null && n.is12HourTimeFormat ? u :
|
|
3470
|
-
icon:
|
|
3806
|
+
data: n != null && n.is12HourTimeFormat ? u : h,
|
|
3807
|
+
icon: Zt,
|
|
3471
3808
|
displayValue: a,
|
|
3472
3809
|
label: t("current-time", "Current Time"),
|
|
3473
3810
|
closeButtonLabel: t("close", "Close") || void 0,
|
|
3474
3811
|
cancelButtonLabel: t("discard-changes", "Discard Changes") || void 0,
|
|
3475
3812
|
proceedButtonLabel: t("save", "Save") || void 0,
|
|
3476
|
-
onSave: (
|
|
3477
|
-
const
|
|
3478
|
-
|
|
3479
|
-
hour:
|
|
3480
|
-
min:
|
|
3813
|
+
onSave: (f) => {
|
|
3814
|
+
const M = n != null && n.is12HourTimeFormat ? f.ampm === "AM" ? f.hr : f.hr + 12 : f.hr, z = f.min, X = new Date(d);
|
|
3815
|
+
X.setHours(M), X.setMinutes(z), l(X), r == null || r.updateSystemTime({
|
|
3816
|
+
hour: M,
|
|
3817
|
+
min: z,
|
|
3481
3818
|
sec: 0
|
|
3482
3819
|
});
|
|
3483
3820
|
}
|
|
3484
3821
|
}
|
|
3485
3822
|
)
|
|
3486
3823
|
] });
|
|
3487
|
-
}),
|
|
3488
|
-
|
|
3489
|
-
const { t: n } =
|
|
3490
|
-
return /* @__PURE__ */
|
|
3491
|
-
t && /* @__PURE__ */ o(
|
|
3824
|
+
}), Oa = yn(
|
|
3825
|
+
T(({ settings: e, showHeading: t }) => {
|
|
3826
|
+
const { t: n } = x("dispenser-profile");
|
|
3827
|
+
return /* @__PURE__ */ g(he, { children: [
|
|
3828
|
+
t && /* @__PURE__ */ o(ge, { children: n("water-settings", "Water Settings") }),
|
|
3492
3829
|
/* @__PURE__ */ o(
|
|
3493
|
-
|
|
3830
|
+
Fe,
|
|
3494
3831
|
{
|
|
3495
3832
|
label: n("plain-water", "Plain Water"),
|
|
3496
3833
|
configProperty: e.hidePlainWaterBev
|
|
3497
3834
|
}
|
|
3498
3835
|
),
|
|
3499
3836
|
/* @__PURE__ */ o(
|
|
3500
|
-
|
|
3837
|
+
Fe,
|
|
3501
3838
|
{
|
|
3502
3839
|
label: n("carbonated-water", "Carbonated Water"),
|
|
3503
3840
|
configProperty: e.hideCarbWaterBev
|
|
@@ -3505,204 +3842,207 @@ const Ns = w.div``, xa = I(
|
|
|
3505
3842
|
)
|
|
3506
3843
|
] });
|
|
3507
3844
|
})
|
|
3508
|
-
),
|
|
3845
|
+
), Va = v.div`
|
|
3509
3846
|
display: flex;
|
|
3510
3847
|
flex-direction: column;
|
|
3511
3848
|
gap: 12px;
|
|
3512
|
-
`,
|
|
3849
|
+
`, Ra = v.div`
|
|
3513
3850
|
display: flex;
|
|
3514
3851
|
flex-direction: row;
|
|
3515
3852
|
gap: 12px;
|
|
3516
3853
|
align-items: center;
|
|
3517
3854
|
justify-content: center;
|
|
3518
|
-
`,
|
|
3855
|
+
`, Na = v(S)`
|
|
3519
3856
|
display: block;
|
|
3520
3857
|
`;
|
|
3521
3858
|
export {
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3859
|
+
Na as ActionButton,
|
|
3860
|
+
Va as ActionContainer,
|
|
3861
|
+
Ra as ActionRow,
|
|
3862
|
+
pi as AgitationControlView,
|
|
3863
|
+
mi as AgitatorDetail,
|
|
3864
|
+
rr as AgitatorModal,
|
|
3865
|
+
hi as AgitatorSummary,
|
|
3866
|
+
In as AnimationContext,
|
|
3867
|
+
_i as AnimationProvider,
|
|
3868
|
+
Ki as ApplicationComponentConfigurationProvider,
|
|
3869
|
+
Tn as ApplicationContext,
|
|
3870
|
+
ji as ApplicationProvider,
|
|
3871
|
+
jo as CalibrateAction,
|
|
3872
|
+
dr as CalibrateModal,
|
|
3873
|
+
hr as ConfigPropInfoCard,
|
|
3874
|
+
nt as ConfigPropInputCard,
|
|
3875
|
+
ue as ConfigPropInputRangeCard,
|
|
3876
|
+
Pr as ConfigPropMultiInputEnableCard,
|
|
3877
|
+
ot as ConfigPropPickerCard,
|
|
3878
|
+
fi as ConfigPropSingleInputEnableCard,
|
|
3879
|
+
kr as ConfigPropSwitchCard,
|
|
3880
|
+
Tr as ConfigPropTimePickerCard,
|
|
3881
|
+
Fe as ConfigPropToggleCard,
|
|
3882
|
+
Dn as DashboardOperationsContext,
|
|
3883
|
+
Wi as DashboardOperationsProvider,
|
|
3884
|
+
Ar as DatePickerCard,
|
|
3885
|
+
Lr as DiagnosticsModal,
|
|
3886
|
+
An as DispenserInfoContext,
|
|
3887
|
+
Xi as DispenserInfoProvider,
|
|
3888
|
+
Mi as DispenserInfoSettings,
|
|
3889
|
+
qr as DispenserSerialNumber,
|
|
3890
|
+
Hi as DispenserSettings,
|
|
3891
|
+
Q as EXTENSION_PLUGIN_VISIBILITY,
|
|
3892
|
+
Jr as EnjoyByDate,
|
|
3893
|
+
Ee as FailureMessage,
|
|
3894
|
+
Wo as Fixed45FlowTestAction,
|
|
3895
|
+
Go as FlushAction,
|
|
3896
|
+
H as FutureProgressBar,
|
|
3897
|
+
nr as GenericTroubleAction,
|
|
3898
|
+
zi as HardwareInfo,
|
|
3899
|
+
Xo as HighFlowTestAction,
|
|
3900
|
+
Yo as HoldToPourAction,
|
|
3901
|
+
Ne as HoldToPourButton,
|
|
3902
|
+
lt as HolderActions,
|
|
3903
|
+
cs as HolderCard,
|
|
3904
|
+
mn as HolderContentContext,
|
|
3905
|
+
ki as HolderContentProvider,
|
|
3906
|
+
Hn as HolderGroup,
|
|
3907
|
+
fa as HolderGroupView,
|
|
3908
|
+
He as HolderNotifications,
|
|
3909
|
+
va as IceAgitatorDetail,
|
|
3910
|
+
Ts as IceAgitatorSettings,
|
|
3911
|
+
wa as IceAgitatorSettingsContainer,
|
|
3912
|
+
Ca as IceAgitatorSettingsView,
|
|
3913
|
+
ya as IceAgitatorSummary,
|
|
3914
|
+
Ln as IngredientSummaryContext,
|
|
3915
|
+
qi as IngredientSummaryProvider,
|
|
3916
|
+
j as IntentAction,
|
|
3917
|
+
Ei as KosPluginExtensionManager,
|
|
3918
|
+
ka as LFCVPumpCard,
|
|
3919
|
+
xa as LocalizationSettings,
|
|
3920
|
+
qo as LowFlowTestAction,
|
|
3921
|
+
Ia as MSVPumpCard,
|
|
3922
|
+
Zo as MSVResetAction,
|
|
3923
|
+
En as MacroAssignmentContext,
|
|
3924
|
+
Zi as MacroAssignmentProvider,
|
|
3925
|
+
fs as MacroHolderCard,
|
|
3926
|
+
ba as MacroHolderGroupView,
|
|
3927
|
+
zn as MacroSetupStepCard,
|
|
3928
|
+
Qo as ManualOverrideAction,
|
|
3929
|
+
$n as NetworkTestContainerContext,
|
|
3930
|
+
na as NetworkTestContainerProvider,
|
|
3931
|
+
Fn as NetworkTestContext,
|
|
3932
|
+
ea as NetworkTestProvider,
|
|
3933
|
+
Sa as NetworkTestResults,
|
|
3934
|
+
Fs as NotificationCardView,
|
|
3935
|
+
Wr as PluginExtensionManager,
|
|
3936
|
+
Pa as PluginTabs,
|
|
3937
|
+
Jo as PrimeAction,
|
|
3938
|
+
er as PurgeAction,
|
|
3939
|
+
zs as RFIDOverride,
|
|
3940
|
+
Bn as RebootContext,
|
|
3941
|
+
ra as RebootProvider,
|
|
3942
|
+
Aa as RebootView,
|
|
3943
|
+
Vs as ReplaceLine,
|
|
3944
|
+
Ns as ReplacePump,
|
|
3945
|
+
js as SPMFieldCalibrationModal,
|
|
3946
|
+
On as SettingsContext,
|
|
3947
|
+
ia as SettingsProvider,
|
|
3948
|
+
La as SetupRequired,
|
|
3949
|
+
Ea as SetupSidebar,
|
|
3950
|
+
Ks as SetupSidebarComp,
|
|
3951
|
+
Rn as SetupStepContainerContext,
|
|
3952
|
+
da as SetupStepContainerProvider,
|
|
3953
|
+
Vn as SetupStepContext,
|
|
3954
|
+
ca as SetupStepProvider,
|
|
3955
|
+
Fa as Software,
|
|
3956
|
+
mr as StagedChangesProvider,
|
|
3957
|
+
$a as StateExperience,
|
|
3958
|
+
_s as StepItem,
|
|
3959
|
+
Us as StepTitle,
|
|
3960
|
+
tt as SuccessMessage,
|
|
3961
|
+
Ys as SystemDatePickerCard,
|
|
3962
|
+
di as TROUBLE_PRIME,
|
|
3963
|
+
ui as TROUBLE_PURGE,
|
|
3964
|
+
Ir as TimePickerCard,
|
|
3965
|
+
Ba as TimeSettings,
|
|
3966
|
+
qs as TimeZonePickerCard,
|
|
3967
|
+
tr as TroubleAction,
|
|
3968
|
+
Mn as UtilitiesContainerContext,
|
|
3969
|
+
ha as UtilitiesContainerProvider,
|
|
3970
|
+
Nn as UtilitiesContext,
|
|
3971
|
+
pa as UtilitiesProvider,
|
|
3972
|
+
Ta as ValveCard,
|
|
3973
|
+
Da as WaterPumpCard,
|
|
3974
|
+
Oa as WaterSettings,
|
|
3975
|
+
Li as pumpTypeFactory,
|
|
3976
|
+
Gr as troubleLabelByType,
|
|
3977
|
+
st as troubleLabelFactory,
|
|
3978
|
+
nn as useAgitationControl,
|
|
3979
|
+
dn as useAnimation,
|
|
3980
|
+
Ui as useAnimationContext,
|
|
3981
|
+
Ve as useApplication,
|
|
3982
|
+
ct as useApplicationContext,
|
|
3983
|
+
Vr as useCarbWater,
|
|
3984
|
+
bi as useCombinedActions,
|
|
3985
|
+
Rr as useCopyLogs,
|
|
3986
|
+
un as useDashboardOperations,
|
|
3987
|
+
Gi as useDashboardOperationsContext,
|
|
3988
|
+
pn as useDispenserInfo,
|
|
3989
|
+
Yi as useDispenserInfoContext,
|
|
3990
|
+
Mr as useDoor,
|
|
3991
|
+
se as useFutureContainer,
|
|
3992
|
+
hn as useHolderContent,
|
|
3993
|
+
rt as useHolderExperience,
|
|
3994
|
+
gn as useIngredientSummary,
|
|
3995
|
+
Qi as useIngredientSummaryContext,
|
|
3996
|
+
fn as useMacroAssignment,
|
|
3997
|
+
Ji as useMacroAssignmentContext,
|
|
3998
|
+
bn as useNetworkTest,
|
|
3999
|
+
vn as useNetworkTestContainer,
|
|
4000
|
+
oa as useNetworkTestContainerContext,
|
|
4001
|
+
ta as useNetworkTestContext,
|
|
4002
|
+
Kr as useNutritiveSweetener,
|
|
4003
|
+
jr as usePlainWater,
|
|
4004
|
+
Re as usePluginExtensions,
|
|
4005
|
+
Oe as usePumpAction,
|
|
4006
|
+
it as useReboot,
|
|
4007
|
+
sa as useRebootContext,
|
|
4008
|
+
at as useSettings,
|
|
4009
|
+
aa as useSettingsContext,
|
|
4010
|
+
wn as useSetupStep,
|
|
4011
|
+
Cn as useSetupStepContainer,
|
|
4012
|
+
ua as useSetupStepContainerContext,
|
|
4013
|
+
la as useSetupStepContext,
|
|
4014
|
+
cn as useStagedChanges,
|
|
4015
|
+
Yr as useStart,
|
|
4016
|
+
vi as useTroubleAction,
|
|
4017
|
+
xn as useTroubleActionState,
|
|
4018
|
+
Vi as useTroubleVisibility,
|
|
4019
|
+
Sn as useUtilities,
|
|
4020
|
+
Pn as useUtilitiesContainer,
|
|
4021
|
+
ga as useUtilitiesContainerContext,
|
|
4022
|
+
ma as useUtilitiesContext,
|
|
4023
|
+
Hr as useViewExtensions,
|
|
3684
4024
|
Me as useVisibleTroubles,
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
4025
|
+
yi as withAgitationControl,
|
|
4026
|
+
Or as withAnimation,
|
|
4027
|
+
wi as withApplication,
|
|
4028
|
+
Ci as withCarbWater,
|
|
4029
|
+
xi as withCopyLogs,
|
|
4030
|
+
Si as withDashboardOperations,
|
|
4031
|
+
Nr as withDispenserInfo,
|
|
4032
|
+
Pi as withDoor,
|
|
4033
|
+
Ii as withIngredientSummary,
|
|
4034
|
+
_r as withMacroAssignment,
|
|
4035
|
+
Ti as withNetworkTest,
|
|
4036
|
+
Ur as withNetworkTestContainer,
|
|
4037
|
+
Di as withNutritiveSweetener,
|
|
4038
|
+
Ai as withPlainWater,
|
|
4039
|
+
Fi as withReboot,
|
|
4040
|
+
yn as withSettings,
|
|
4041
|
+
$i as withSetupStep,
|
|
4042
|
+
Xr as withSetupStepContainer,
|
|
4043
|
+
gi as withStagedChanges,
|
|
4044
|
+
Bi as withStart,
|
|
4045
|
+
Oi as withTroubleAction,
|
|
4046
|
+
Ri as withUtilities,
|
|
4047
|
+
Ni as withUtilitiesContainer
|
|
3708
4048
|
};
|