@kvaser/canking-api 7.1.0-beta.231 → 7.1.0-beta.241

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/README.md +101 -37
  2. package/dist/controls/CanIdentifierControl.d.ts +21 -3
  3. package/dist/controls/ColumnItemControl.d.ts +36 -0
  4. package/dist/controls/OneLineButton.d.ts +1 -1
  5. package/dist/controls/index.d.ts +2 -0
  6. package/dist/controls.js +1 -1
  7. package/dist/controls.mjs +1385 -1141
  8. package/dist/grpc.mjs +114 -114
  9. package/dist/index.js +1 -1
  10. package/dist/measurement_settings.js +1 -1
  11. package/dist/measurement_settings.mjs +449 -403
  12. package/dist/models.js +1 -1
  13. package/dist/models.mjs +30 -30
  14. package/dist/protos/app_service.d.ts +1 -1
  15. package/dist/protos/device_service.d.ts +1 -1
  16. package/dist/protos/frame_params.d.ts +6 -0
  17. package/dist/protos/measurement_service.d.ts +1 -1
  18. package/dist/status_params.js +1 -1
  19. package/dist/status_params.mjs +1780 -1780
  20. package/doc/assets/material-style.css +105 -14
  21. package/doc/assets/navigation.js +1 -1
  22. package/doc/assets/search.js +1 -1
  23. package/doc/functions/controls.ColumnItemControl.html +175 -0
  24. package/doc/functions/controls.OneLineButton.html +4 -4
  25. package/doc/functions/controls.useColumnItem.html +176 -0
  26. package/doc/functions/controls.useColumnItems.html +177 -0
  27. package/doc/index.html +87 -43
  28. package/doc/interfaces/controls.CanIdentifierFrameControlProps.html +4 -2
  29. package/doc/interfaces/controls.CanIdentifierGeneratorControlProps.html +6 -2
  30. package/doc/interfaces/controls.CanIdentifierGeneratorSettingsControlProps.html +6 -2
  31. package/doc/interfaces/controls.ColumnItemControlProps.html +177 -0
  32. package/doc/interfaces/models.SignalValue.html +4 -2
  33. package/doc/interfaces/models.WriteFrame.html +6 -2
  34. package/doc/modules/controls.html +4 -0
  35. package/index.js +14 -0
  36. package/licenses/ELECTRON-TOOLKIT-PRELOAD_MIT.TXT +21 -0
  37. package/licenses/FAST-DEEP-EQUAL_MIT.TXT +21 -0
  38. package/licenses/GOOGLE-PROTOBUF_(BSD-3-CLAUSE AND APACHE-2.0).TXT +29 -0
  39. package/licenses/REACT-DOM_MIT.TXT +21 -0
  40. package/licenses/REACT_MIT.TXT +21 -0
  41. package/licenses/UUID_MIT.TXT +9 -0
  42. package/licenses/licenses.css +22 -0
  43. package/licenses/licenses.html +67 -0
  44. package/package.json +10 -16
  45. package/scripts/createCanKingExtension.js +0 -403
  46. package/scripts/index.js +0 -39
  47. package/scripts/template/_.eslintrc.cjs +0 -38
  48. package/scripts/template/_.gitignore +0 -24
  49. package/scripts/template/_.npmrc +0 -2
  50. package/scripts/template/_.prettierrc +0 -8
  51. package/scripts/template/_.vscode/_launch.json +0 -28
  52. package/scripts/template/_index.html +0 -15
  53. package/scripts/template/_tsconfig.app.json +0 -27
  54. package/scripts/template/_tsconfig.json +0 -11
  55. package/scripts/template/_tsconfig.node.json +0 -13
  56. package/scripts/template/_vite.config.ts +0 -7
  57. package/scripts/template/src/App.tsx +0 -12
  58. package/scripts/template/src/WorkspaceView/index.tsx +0 -47
  59. package/scripts/template/src/main.css +0 -9
  60. package/scripts/template/src/main.tsx +0 -19
  61. package/scripts/template/src/vite-env.d.ts +0 -1
package/dist/controls.mjs CHANGED
@@ -1,115 +1,345 @@
1
- import { u as G, a as Se, b as z, c as Fe, d as Ie } from "./index.mjs";
2
- import { C as Pt, D as Wt, L as Ut, g as Ot, f as Kt, M as Xt, O as qt, R as Yt, U as jt, W as Gt, e as Ht, r as Jt } from "./index.mjs";
3
- import { jsx as s, Fragment as H, jsxs as k } from "react/jsx-runtime";
4
- import te, { useCallback as S, useState as D, useMemo as P, useEffect as W, useRef as Me } from "react";
5
- import { FormControlLabel as he, Checkbox as Ae, styled as U, Button as $e, MenuItem as ae, IconButton as ve, Popover as Re, FormControl as pe, Stack as ge, TextField as Le, InputAdornment as se, Radio as ye, RadioGroup as Be, Box as V, Divider as we, Tooltip as Z, InputLabel as Ee, Select as _e, FormHelperText as ke, ListSubheader as Te, TableContainer as De, Table as Pe, TableHead as We, TableRow as ie, TableCell as de, TableBody as Ue, Toolbar as Oe, Typography as me, ToggleButtonGroup as Ke, toggleButtonGroupClasses as ce, ButtonGroup as Xe, buttonGroupClasses as J, Paper as qe, ToggleButton as Ye, Menu as je, ListItemIcon as Ge, ListItemText as ue } from "@mui/material";
6
- import { LineArrowDownIcon as be, LineArrowUpIcon as He } from "./icons.mjs";
7
- import oe from "fast-deep-equal";
1
+ import { u as H, a as We, b as re, c as De, d as Ue } from "./index.mjs";
2
+ import { C as br, D as mr, L as pr, g as vr, f as xr, M as Cr, O as Sr, R as Nr, U as yr, W as Ir, e as $r, r as Fr } from "./index.mjs";
3
+ import { jsx as c, jsxs as L, Fragment as J } from "react/jsx-runtime";
4
+ import * as Y from "react";
5
+ import oe, { useCallback as F, useRef as $e, useState as A, useEffect as k, useMemo as j } from "react";
6
+ import { FormControlLabel as Fe, Checkbox as ze, Box as Q, styled as W, Button as Ke, IconButton as we, Popover as Xe, MenuItem as se, FormControl as Me, Stack as Re, TextField as Ge, InputAdornment as he, Radio as qe, RadioGroup as Ye, Divider as He, Tooltip as ne, InputLabel as Je, Select as Qe, FormHelperText as Ze, ListSubheader as Ve, TableContainer as en, Table as nn, TableHead as tn, TableRow as ge, TableCell as be, TableBody as rn, Toolbar as an, Typography as Te, ToggleButtonGroup as ln, toggleButtonGroupClasses as me, ButtonGroup as on, buttonGroupClasses as Z, Paper as dn, ToggleButton as sn, Menu as un, ListItemIcon as cn, ListItemText as pe } from "@mui/material";
7
+ import { LineArrowDownIcon as _e, LineArrowUpIcon as fn } from "./icons.mjs";
8
+ import ue from "fast-deep-equal";
8
9
  import "long";
9
- import { C as X, W as Je } from "./measurement_settings.mjs";
10
- function Ce({
10
+ import { C as U, W as hn } from "./measurement_settings.mjs";
11
+ function Ae({
11
12
  id: e = void 0,
12
- label: t,
13
- checked: r,
14
- onChange: a,
15
- disabled: o = !1,
16
- size: l = "small",
17
- sx: c = void 0
13
+ label: n,
14
+ checked: t,
15
+ onChange: r,
16
+ disabled: a = !1,
17
+ size: i = "small",
18
+ sx: f = void 0
18
19
  }) {
19
- const u = S((n) => {
20
- if (n.key === "Enter" && !n.ctrlKey && !n.altKey && !n.shiftKey) {
21
- n.preventDefault();
20
+ const d = F((l) => {
21
+ if (l.key === "Enter" && !l.ctrlKey && !l.altKey && !l.shiftKey) {
22
+ l.preventDefault();
22
23
  return;
23
24
  }
24
25
  }, []);
25
- return /* @__PURE__ */ s(
26
- he,
26
+ return /* @__PURE__ */ c(
27
+ Fe,
27
28
  {
28
29
  id: e,
29
30
  "aria-label": e,
30
- disabled: o,
31
- "aria-disabled": o,
32
- control: /* @__PURE__ */ s(Ae, { size: l, checked: r, onChange: (n, d) => a(d), onKeyDown: u }),
33
- label: t,
31
+ disabled: a,
32
+ "aria-disabled": a,
33
+ control: /* @__PURE__ */ c(ze, { size: i, checked: t, onChange: (l, s) => r(s), onKeyDown: d }),
34
+ label: n,
34
35
  slotProps: { typography: { noWrap: !0 } },
35
- sx: c
36
+ sx: f
36
37
  }
37
38
  );
38
39
  }
39
- const ne = U($e)(() => ({
40
+ var V = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
41
+ function Le(e) {
42
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
43
+ }
44
+ function gn(e) {
45
+ var n = typeof e;
46
+ return e != null && (n == "object" || n == "function");
47
+ }
48
+ var ce = gn, bn = typeof V == "object" && V && V.Object === Object && V, mn = bn, pn = mn, vn = typeof self == "object" && self && self.Object === Object && self, xn = pn || vn || Function("return this")(), Ee = xn, Cn = Ee, Sn = function() {
49
+ return Cn.Date.now();
50
+ }, Nn = Sn, yn = /\s/;
51
+ function In(e) {
52
+ for (var n = e.length; n-- && yn.test(e.charAt(n)); )
53
+ ;
54
+ return n;
55
+ }
56
+ var $n = In, Fn = $n, wn = /^\s+/;
57
+ function Mn(e) {
58
+ return e && e.slice(0, Fn(e) + 1).replace(wn, "");
59
+ }
60
+ var Rn = Mn, Tn = Ee, _n = Tn.Symbol, Be = _n, ve = Be, Oe = Object.prototype, An = Oe.hasOwnProperty, Ln = Oe.toString, q = ve ? ve.toStringTag : void 0;
61
+ function En(e) {
62
+ var n = An.call(e, q), t = e[q];
63
+ try {
64
+ e[q] = void 0;
65
+ var r = !0;
66
+ } catch {
67
+ }
68
+ var a = Ln.call(e);
69
+ return r && (n ? e[q] = t : delete e[q]), a;
70
+ }
71
+ var Bn = En, On = Object.prototype, kn = On.toString;
72
+ function jn(e) {
73
+ return kn.call(e);
74
+ }
75
+ var Pn = jn, xe = Be, Wn = Bn, Dn = Pn, Un = "[object Null]", zn = "[object Undefined]", Ce = xe ? xe.toStringTag : void 0;
76
+ function Kn(e) {
77
+ return e == null ? e === void 0 ? zn : Un : Ce && Ce in Object(e) ? Wn(e) : Dn(e);
78
+ }
79
+ var Xn = Kn;
80
+ function Gn(e) {
81
+ return e != null && typeof e == "object";
82
+ }
83
+ var qn = Gn, Yn = Xn, Hn = qn, Jn = "[object Symbol]";
84
+ function Qn(e) {
85
+ return typeof e == "symbol" || Hn(e) && Yn(e) == Jn;
86
+ }
87
+ var Zn = Qn, Vn = Rn, Se = ce, et = Zn, Ne = NaN, nt = /^[-+]0x[0-9a-f]+$/i, tt = /^0b[01]+$/i, rt = /^0o[0-7]+$/i, at = parseInt;
88
+ function lt(e) {
89
+ if (typeof e == "number")
90
+ return e;
91
+ if (et(e))
92
+ return Ne;
93
+ if (Se(e)) {
94
+ var n = typeof e.valueOf == "function" ? e.valueOf() : e;
95
+ e = Se(n) ? n + "" : n;
96
+ }
97
+ if (typeof e != "string")
98
+ return e === 0 ? e : +e;
99
+ e = Vn(e);
100
+ var t = tt.test(e);
101
+ return t || rt.test(e) ? at(e.slice(2), t ? 2 : 8) : nt.test(e) ? Ne : +e;
102
+ }
103
+ var it = lt, ot = ce, le = Nn, ye = it, dt = "Expected a function", st = Math.max, ut = Math.min;
104
+ function ct(e, n, t) {
105
+ var r, a, i, f, d, l, s = 0, g = !1, x = !1, y = !0;
106
+ if (typeof e != "function")
107
+ throw new TypeError(dt);
108
+ n = ye(n) || 0, ot(t) && (g = !!t.leading, x = "maxWait" in t, i = x ? st(ye(t.maxWait) || 0, n) : i, y = "trailing" in t ? !!t.trailing : y);
109
+ function C(o) {
110
+ var M = r, E = a;
111
+ return r = a = void 0, s = o, f = e.apply(E, M), f;
112
+ }
113
+ function S(o) {
114
+ return s = o, d = setTimeout(T, n), g ? C(o) : f;
115
+ }
116
+ function I(o) {
117
+ var M = o - l, E = o - s, P = n - M;
118
+ return x ? ut(P, i - E) : P;
119
+ }
120
+ function w(o) {
121
+ var M = o - l, E = o - s;
122
+ return l === void 0 || M >= n || M < 0 || x && E >= i;
123
+ }
124
+ function T() {
125
+ var o = le();
126
+ if (w(o))
127
+ return N(o);
128
+ d = setTimeout(T, I(o));
129
+ }
130
+ function N(o) {
131
+ return d = void 0, y && r ? C(o) : (r = a = void 0, f);
132
+ }
133
+ function m() {
134
+ d !== void 0 && clearTimeout(d), s = 0, r = l = a = d = void 0;
135
+ }
136
+ function h() {
137
+ return d === void 0 ? f : N(le());
138
+ }
139
+ function v() {
140
+ var o = le(), M = w(o);
141
+ if (r = arguments, a = this, l = o, M) {
142
+ if (d === void 0)
143
+ return S(l);
144
+ if (x)
145
+ return clearTimeout(d), d = setTimeout(T, n), C(l);
146
+ }
147
+ return d === void 0 && (d = setTimeout(T, n)), f;
148
+ }
149
+ return v.cancel = m, v.flush = h, v;
150
+ }
151
+ var ke = ct;
152
+ const ft = /* @__PURE__ */ Le(ke);
153
+ var ht = ke, gt = ce, bt = "Expected a function";
154
+ function mt(e, n, t) {
155
+ var r = !0, a = !0;
156
+ if (typeof e != "function")
157
+ throw new TypeError(bt);
158
+ return gt(t) && (r = "leading" in t ? !!t.leading : r, a = "trailing" in t ? !!t.trailing : a), ht(e, n, {
159
+ leading: r,
160
+ maxWait: n,
161
+ trailing: a
162
+ });
163
+ }
164
+ var pt = mt;
165
+ const vt = /* @__PURE__ */ Le(pt), xt = (e, n, t, r) => {
166
+ switch (n) {
167
+ case "debounce":
168
+ return ft(e, t, r);
169
+ case "throttle":
170
+ return vt(e, t, r);
171
+ default:
172
+ return e;
173
+ }
174
+ }, Ct = (
175
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
176
+ (e) => {
177
+ const n = Y.useRef(e);
178
+ return Y.useEffect(() => {
179
+ n.current = e;
180
+ }), Y.useMemo(() => (...t) => {
181
+ var r;
182
+ return (r = n.current) === null || r === void 0 ? void 0 : r.call(n, ...t);
183
+ }, []);
184
+ }
185
+ ), St = (
186
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
187
+ (e) => {
188
+ const [n, t] = Y.useState((e == null ? void 0 : e.current) || null);
189
+ return e && setTimeout(() => {
190
+ e.current !== n && t(e.current);
191
+ }, 0), { refProxy: Y.useMemo(() => new Proxy((a) => {
192
+ a !== n && t(a);
193
+ }, {
194
+ get(a, i) {
195
+ return i === "current" ? n : a[i];
196
+ },
197
+ set(a, i, f) {
198
+ return i === "current" ? t(f) : a[i] = f, !0;
199
+ }
200
+ }), [n]), refElement: n, setRefElement: t };
201
+ }
202
+ ), Nt = (e, n) => n === "border-box" ? {
203
+ width: e.borderBoxSize[0].inlineSize,
204
+ height: e.borderBoxSize[0].blockSize
205
+ } : n === "content-box" ? {
206
+ width: e.contentBoxSize[0].inlineSize,
207
+ height: e.contentBoxSize[0].blockSize
208
+ } : {
209
+ width: e.contentRect.width,
210
+ height: e.contentRect.height
211
+ };
212
+ function yt({ skipOnMount: e = !1, refreshMode: n, refreshRate: t = 1e3, refreshOptions: r, handleWidth: a = !0, handleHeight: i = !0, targetRef: f, observerOptions: d, onResize: l } = {}) {
213
+ const s = $e(e), g = Ct(l), [x, y] = A({
214
+ width: void 0,
215
+ height: void 0
216
+ }), { refProxy: C, refElement: S } = St(f), { box: I } = d || {}, w = F((N) => {
217
+ if (!a && !i)
218
+ return;
219
+ if (s.current) {
220
+ s.current = !1;
221
+ return;
222
+ }
223
+ const m = (h, v) => a && h.width !== v.width || i && h.height !== v.height;
224
+ N.forEach((h) => {
225
+ const v = Nt(h, I);
226
+ y((o) => m(o, v) ? (g == null || g({
227
+ width: v.width,
228
+ height: v.height,
229
+ entry: h
230
+ }), v) : o);
231
+ });
232
+ }, [a, i, s, I]), T = F(xt(w, n, t, r), [
233
+ w,
234
+ n,
235
+ t,
236
+ r
237
+ ]);
238
+ return k(() => {
239
+ let N;
240
+ return S ? (N = new window.ResizeObserver(T), N.observe(S, d)) : (x.width || x.height) && (g == null || g({
241
+ width: null,
242
+ height: null,
243
+ entry: null
244
+ }), y({ width: void 0, height: void 0 })), () => {
245
+ var m, h, v;
246
+ (m = N == null ? void 0 : N.disconnect) === null || m === void 0 || m.call(N), (v = (h = T).cancel) === null || v === void 0 || v.call(h);
247
+ };
248
+ }, [T, S]), Object.assign({ ref: C }, x);
249
+ }
250
+ const It = () => {
251
+ const { ref: e, width: n } = yt();
252
+ return {
253
+ ref: e,
254
+ width: n
255
+ };
256
+ }, $t = (...e) => {
257
+ const [n, t] = A();
258
+ return k(() => {
259
+ const r = e.filter((a) => a.width !== void 0).map((a) => Number(a.width.toFixed(1)));
260
+ if (r.length === e.length) {
261
+ const a = Math.max(...r);
262
+ t((i) => i === void 0 ? a : i);
263
+ }
264
+ }, [e]), n;
265
+ };
266
+ function Ft({ columnItem: e, width: n = void 0, children: t = void 0 }) {
267
+ return /* @__PURE__ */ c("div", { ref: e.ref, children: /* @__PURE__ */ c(Q, { sx: { width: n }, children: t }) });
268
+ }
269
+ const te = W(Ke)(() => ({
40
270
  whiteSpace: "nowrap",
41
271
  minWidth: "max-content"
42
272
  }));
43
- function Ft({ items: e, onSelect: t, onClose: r = void 0 }) {
44
- const a = S(
45
- (o) => {
46
- t(o), r && r();
273
+ function er({ items: e, onSelect: n, onClose: t = void 0 }) {
274
+ const r = F(
275
+ (a) => {
276
+ n(a), t && t();
47
277
  },
48
- [r, t]
278
+ [t, n]
49
279
  );
50
- return /* @__PURE__ */ s(H, { children: e.map((o) => /* @__PURE__ */ s(ae, { onClick: () => a(o.key), children: o.text }, o.key)) });
280
+ return /* @__PURE__ */ c(J, { children: e.map((a) => /* @__PURE__ */ c(se, { onClick: () => r(a.key), children: a.text }, a.key)) });
51
281
  }
52
- function Qe({
282
+ function wt({
53
283
  id: e = "dropdown-button",
54
- startIcon: t = void 0,
55
- endIcon: r = void 0,
56
- text: a = void 0,
57
- variant: o = "outlined",
58
- color: l = void 0,
59
- size: c = "medium",
60
- disabled: u = !1,
61
- children: n
284
+ startIcon: n = void 0,
285
+ endIcon: t = void 0,
286
+ text: r = void 0,
287
+ variant: a = "outlined",
288
+ color: i = void 0,
289
+ size: f = "medium",
290
+ disabled: d = !1,
291
+ children: l
62
292
  }) {
63
- const [d, m] = D(null), b = !!d, g = S((R) => {
64
- m(R.currentTarget);
65
- }, []), v = S(() => {
66
- m(null);
67
- }, []), C = te.cloneElement(te.Children.only(n), {
68
- onClose: v
293
+ const [s, g] = A(null), x = !!s, y = F((I) => {
294
+ g(I.currentTarget);
295
+ }, []), C = F(() => {
296
+ g(null);
297
+ }, []), S = oe.cloneElement(oe.Children.only(l), {
298
+ onClose: C
69
299
  });
70
- return /* @__PURE__ */ k(H, { children: [
71
- !a && /* @__PURE__ */ s(
72
- ve,
300
+ return /* @__PURE__ */ L(J, { children: [
301
+ !r && /* @__PURE__ */ c(
302
+ we,
73
303
  {
74
304
  id: e,
75
305
  "data-testid": e,
76
- "aria-controls": b ? `${e}-popover` : void 0,
306
+ "aria-controls": x ? `${e}-popover` : void 0,
77
307
  "aria-haspopup": "true",
78
- "aria-expanded": b ? "true" : void 0,
79
- onClick: g,
80
- size: c,
81
- color: l,
82
- disabled: u,
83
- children: t
308
+ "aria-expanded": x ? "true" : void 0,
309
+ onClick: y,
310
+ size: f,
311
+ color: i,
312
+ disabled: d,
313
+ children: n
84
314
  }
85
315
  ),
86
- a && /* @__PURE__ */ s(
87
- ne,
316
+ r && /* @__PURE__ */ c(
317
+ te,
88
318
  {
89
319
  id: e,
90
320
  "data-testid": e,
91
- "aria-controls": b ? `${e}-popover` : void 0,
321
+ "aria-controls": x ? `${e}-popover` : void 0,
92
322
  "aria-haspopup": "true",
93
- "aria-expanded": b ? "true" : void 0,
94
- variant: o,
323
+ "aria-expanded": x ? "true" : void 0,
324
+ variant: a,
95
325
  disableElevation: !0,
96
- onClick: g,
97
- startIcon: t,
98
- endIcon: r ?? /* @__PURE__ */ s(be, {}),
99
- size: c,
100
- color: l,
101
- disabled: u,
102
- children: a
326
+ onClick: y,
327
+ startIcon: n,
328
+ endIcon: t ?? /* @__PURE__ */ c(_e, {}),
329
+ size: f,
330
+ color: i,
331
+ disabled: d,
332
+ children: r
103
333
  }
104
334
  ),
105
- /* @__PURE__ */ s(
106
- Re,
335
+ /* @__PURE__ */ c(
336
+ Xe,
107
337
  {
108
338
  id: `${e}-popover`,
109
339
  "aria-labelledby": e,
110
- anchorEl: d,
111
- open: b,
112
- onClose: v,
340
+ anchorEl: s,
341
+ open: x,
342
+ onClose: C,
113
343
  anchorOrigin: {
114
344
  vertical: "bottom",
115
345
  horizontal: "left"
@@ -118,744 +348,744 @@ function Qe({
118
348
  vertical: "top",
119
349
  horizontal: "left"
120
350
  },
121
- children: C
351
+ children: S
122
352
  }
123
353
  )
124
354
  ] });
125
355
  }
126
- const Ze = U("div")(({ top: e, left: t, width: r, height: a }) => ({
356
+ const Mt = W("div")(({ top: e, left: n, width: t, height: r }) => ({
127
357
  top: e,
128
- left: t,
129
- width: r,
130
- height: a,
358
+ left: n,
359
+ width: t,
360
+ height: r,
131
361
  position: "absolute",
132
362
  zIndex: 1
133
- })), ze = U("div")(({ top: e, left: t, width: r, height: a, position: o, theme: l }) => ({
363
+ })), Rt = W("div")(({ top: e, left: n, width: t, height: r, position: a, theme: i }) => ({
134
364
  top: e,
135
- left: t,
136
- width: r,
137
- height: a,
365
+ left: n,
366
+ width: t,
367
+ height: r,
138
368
  position: "absolute",
139
369
  zIndex: 2,
140
- color: l.palette.primary.contrastText,
141
- backgroundColor: l.palette.primary.main,
370
+ color: i.palette.primary.contrastText,
371
+ backgroundColor: i.palette.primary.main,
142
372
  display: "flex",
143
- flexDirection: o === "left" || o === "right" ? "column" : "row",
144
- borderTopLeftRadius: o === "top" || o === "left" ? 0 : 8,
145
- borderTopRightRadius: o === "top" || o === "right" ? 0 : 8,
146
- borderBottomRightRadius: o === "bottom" || o === "right" ? 0 : 8,
147
- borderBottomLeftRadius: o === "bottom" || o === "left" ? 0 : 8
148
- })), Q = 8;
149
- function It({
373
+ flexDirection: a === "left" || a === "right" ? "column" : "row",
374
+ borderTopLeftRadius: a === "top" || a === "left" ? 0 : 8,
375
+ borderTopRightRadius: a === "top" || a === "right" ? 0 : 8,
376
+ borderBottomRightRadius: a === "bottom" || a === "right" ? 0 : 8,
377
+ borderBottomLeftRadius: a === "bottom" || a === "left" ? 0 : 8
378
+ })), ee = 8;
379
+ function nr({
150
380
  id: e = void 0,
151
- position: t,
152
- parentWidth: r,
153
- parentHeight: a,
154
- maxLength: o,
155
- dropDownSize: l,
156
- autoHideTimeout: c = 0,
157
- forceShow: u = !1,
158
- children: n = null
381
+ position: n,
382
+ parentWidth: t,
383
+ parentHeight: r,
384
+ maxLength: a,
385
+ dropDownSize: i,
386
+ autoHideTimeout: f = 0,
387
+ forceShow: d = !1,
388
+ children: l = null
159
389
  }) {
160
- const d = P(() => {
161
- switch (t) {
390
+ const s = j(() => {
391
+ switch (n) {
162
392
  case "left":
163
393
  case "right":
164
- return Math.min(o, a);
394
+ return Math.min(a, r);
165
395
  case "top":
166
396
  case "bottom":
167
- return Math.min(o, r);
397
+ return Math.min(a, t);
168
398
  default:
169
- return o;
399
+ return a;
170
400
  }
171
- }, [o, a, r, t]), m = P(() => {
172
- switch (t) {
401
+ }, [a, r, t, n]), g = j(() => {
402
+ switch (n) {
173
403
  case "left":
174
404
  case "right":
175
- return (a - d) / 2;
405
+ return (r - s) / 2;
176
406
  case "top":
177
407
  return 0;
178
408
  case "bottom":
179
- return a - Q;
409
+ return r - ee;
180
410
  default:
181
411
  return 0;
182
412
  }
183
- }, [d, a, t]), b = P(() => {
184
- switch (t) {
413
+ }, [s, r, n]), x = j(() => {
414
+ switch (n) {
185
415
  case "left":
186
416
  return 0;
187
417
  case "right":
188
- return r - Q;
418
+ return t - ee;
189
419
  case "top":
190
420
  case "bottom":
191
- return (r - d) / 2;
421
+ return (t - s) / 2;
192
422
  default:
193
423
  return 0;
194
424
  }
195
- }, [d, r, t]), g = P(() => {
196
- switch (t) {
425
+ }, [s, t, n]), y = j(() => {
426
+ switch (n) {
197
427
  case "left":
198
428
  case "right":
199
- return Q;
429
+ return ee;
200
430
  case "top":
201
431
  case "bottom":
202
- return d;
432
+ return s;
203
433
  default:
204
434
  return 0;
205
435
  }
206
- }, [d, t]), v = P(() => {
207
- switch (t) {
436
+ }, [s, n]), C = j(() => {
437
+ switch (n) {
208
438
  case "left":
209
439
  case "right":
210
- return d;
440
+ return s;
211
441
  case "top":
212
442
  case "bottom":
213
- return Q;
443
+ return ee;
214
444
  default:
215
445
  return 0;
216
446
  }
217
- }, [d, t]), C = P(() => {
218
- switch (t) {
447
+ }, [s, n]), S = j(() => {
448
+ switch (n) {
219
449
  case "left":
220
450
  case "right":
221
- return (a - d) / 2;
451
+ return (r - s) / 2;
222
452
  case "top":
223
453
  return 0;
224
454
  case "bottom":
225
- return a - l;
455
+ return r - i;
226
456
  default:
227
457
  return 0;
228
458
  }
229
- }, [l, d, a, t]), R = P(() => {
230
- switch (t) {
459
+ }, [i, s, r, n]), I = j(() => {
460
+ switch (n) {
231
461
  case "left":
232
462
  return 0;
233
463
  case "right":
234
- return r - l;
464
+ return t - i;
235
465
  case "top":
236
466
  case "bottom":
237
- return (r - d) / 2;
467
+ return (t - s) / 2;
238
468
  default:
239
469
  return 0;
240
470
  }
241
- }, [l, d, r, t]), I = P(() => {
242
- switch (t) {
471
+ }, [i, s, t, n]), w = j(() => {
472
+ switch (n) {
243
473
  case "left":
244
474
  case "right":
245
- return l;
475
+ return i;
246
476
  case "top":
247
477
  case "bottom":
248
- return d;
478
+ return s;
249
479
  default:
250
480
  return 0;
251
481
  }
252
- }, [l, d, t]), y = P(() => {
253
- switch (t) {
482
+ }, [i, s, n]), T = j(() => {
483
+ switch (n) {
254
484
  case "left":
255
485
  case "right":
256
- return d;
486
+ return s;
257
487
  case "top":
258
488
  case "bottom":
259
- return l;
489
+ return i;
260
490
  default:
261
491
  return 0;
262
492
  }
263
- }, [l, d, t]), [x, p] = D(!1), i = S(
264
- (N) => {
265
- N.buttons === 0 && c && p(!0);
493
+ }, [i, s, n]), [N, m] = A(!1), h = F(
494
+ (o) => {
495
+ o.buttons === 0 && f && m(!0);
266
496
  },
267
- [c]
268
- ), $ = S(() => {
269
- p(!1);
497
+ [f]
498
+ ), v = F(() => {
499
+ m(!1);
270
500
  }, []);
271
- return W(() => {
272
- let N;
273
- return x && c && (N = setTimeout(() => p(!1), c)), () => {
274
- N && clearTimeout(N);
501
+ return k(() => {
502
+ let o;
503
+ return N && f && (o = setTimeout(() => m(!1), f)), () => {
504
+ o && clearTimeout(o);
275
505
  };
276
- }, [c, x]), /* @__PURE__ */ k(H, { children: [
277
- /* @__PURE__ */ s(
278
- Ze,
506
+ }, [f, N]), /* @__PURE__ */ L(J, { children: [
507
+ /* @__PURE__ */ c(
508
+ Mt,
279
509
  {
280
510
  id: e,
281
- top: m,
282
- left: b,
283
- width: g,
284
- height: v,
511
+ top: g,
512
+ left: x,
513
+ width: y,
514
+ height: C,
285
515
  "aria-haspopup": "true",
286
- onMouseEnter: i
516
+ onMouseEnter: h
287
517
  }
288
518
  ),
289
- (x || u === !0) && /* @__PURE__ */ s(
290
- ze,
519
+ (N || d === !0) && /* @__PURE__ */ c(
520
+ Rt,
291
521
  {
292
- top: C,
293
- left: R,
294
- width: I,
295
- height: y,
296
- position: t,
297
- onMouseLeave: $,
298
- children: n
522
+ top: S,
523
+ left: I,
524
+ width: w,
525
+ height: T,
526
+ position: n,
527
+ onMouseLeave: v,
528
+ children: l
299
529
  }
300
530
  )
301
531
  ] });
302
532
  }
303
- function re({
533
+ function de({
304
534
  children: e,
305
- fullWidth: t = !0,
306
- spacing: r = "4px",
307
- alignItems: a = "center"
535
+ fullWidth: n = !0,
536
+ spacing: t = "4px",
537
+ alignItems: r = "center"
308
538
  }) {
309
- return /* @__PURE__ */ s(pe, { margin: "dense", fullWidth: t, variant: "standard", children: /* @__PURE__ */ s(ge, { direction: "row", spacing: r, alignItems: a, children: e }) });
539
+ return /* @__PURE__ */ c(Me, { margin: "dense", fullWidth: n, variant: "standard", children: /* @__PURE__ */ c(Re, { direction: "row", spacing: t, alignItems: r, children: e }) });
310
540
  }
311
- const Ve = U("input")(({ variant: e, theme: t }) => ({
312
- ...t.typography[e]
313
- })), et = U("span")(({ variant: e, theme: t }) => ({
314
- ...t.typography[e]
541
+ const Tt = W("input")(({ variant: e, theme: n }) => ({
542
+ ...n.typography[e]
543
+ })), _t = W("span")(({ variant: e, theme: n }) => ({
544
+ ...n.typography[e]
315
545
  }));
316
- function tt({ value: e, onChange: t, ariaLabel: r = void 0, variant: a = "body1" }) {
317
- const o = Me(null), [l, c] = D(e), u = S(
318
- (m) => c(m.target.value),
546
+ function At({ value: e, onChange: n, ariaLabel: t = void 0, variant: r = "body1" }) {
547
+ const a = $e(null), [i, f] = A(e), d = F(
548
+ (g) => f(g.target.value),
319
549
  []
320
- ), n = S(
321
- (m) => {
322
- (m.key === "Enter" || m.key === "Escape") && (m.key === "Escape" && (c(e), m.currentTarget.value = e), m.currentTarget.blur());
550
+ ), l = F(
551
+ (g) => {
552
+ (g.key === "Enter" || g.key === "Escape") && (g.key === "Escape" && (f(e), g.currentTarget.value = e), g.currentTarget.blur());
323
553
  },
324
554
  [e]
325
- ), d = S(
326
- (m) => {
327
- t(m.target.value);
555
+ ), s = F(
556
+ (g) => {
557
+ n(g.target.value);
328
558
  },
329
- [t]
559
+ [n]
330
560
  );
331
- return W(() => {
332
- var m;
333
- (m = o.current) == null || m.focus();
334
- }, []), /* @__PURE__ */ s(
335
- Ve,
561
+ return k(() => {
562
+ var g;
563
+ (g = a.current) == null || g.focus();
564
+ }, []), /* @__PURE__ */ c(
565
+ Tt,
336
566
  {
337
- ref: o,
338
- variant: a ?? "body1",
567
+ ref: a,
568
+ variant: r ?? "body1",
339
569
  type: "text",
340
- "aria-label": r,
341
- value: l,
342
- onChange: u,
343
- onKeyDown: n,
344
- onBlur: d
570
+ "aria-label": t,
571
+ value: i,
572
+ onChange: d,
573
+ onKeyDown: l,
574
+ onBlur: s
345
575
  }
346
576
  );
347
577
  }
348
- function Mt({ editMode: e, value: t, onValueChange: r, ariaLabel: a = void 0, variant: o = "body1" }) {
349
- return /* @__PURE__ */ k(H, { children: [
350
- e && /* @__PURE__ */ s(tt, { ariaLabel: a, value: t, onChange: r, variant: o }),
351
- !e && /* @__PURE__ */ s(et, { variant: o ?? "body1", children: t })
578
+ function tr({ editMode: e, value: n, onValueChange: t, ariaLabel: r = void 0, variant: a = "body1" }) {
579
+ return /* @__PURE__ */ L(J, { children: [
580
+ e && /* @__PURE__ */ c(At, { ariaLabel: r, value: n, onChange: t, variant: a }),
581
+ !e && /* @__PURE__ */ c(_t, { variant: a ?? "body1", children: n })
352
582
  ] });
353
583
  }
354
- function nt({
584
+ function Lt({
355
585
  id: e = void 0,
356
- label: t = void 0,
357
- helperText: r = "",
358
- value: a,
359
- onChange: o = void 0,
360
- onBlur: l = void 0,
361
- disabled: c = !1,
362
- error: u = !1,
363
- required: n = !1,
364
- margin: d = "dense",
365
- size: m = "small",
366
- fullWidth: b = !1,
367
- inputMode: g = void 0,
368
- pattern: v = void 0,
369
- startAdornment: C = void 0,
370
- endAdornment: R = void 0,
371
- sx: I = void 0,
372
- sxStartAdornment: y = void 0,
373
- sxEndAdornment: x = void 0
586
+ label: n = void 0,
587
+ helperText: t = "",
588
+ value: r,
589
+ onChange: a = void 0,
590
+ onBlur: i = void 0,
591
+ disabled: f = !1,
592
+ error: d = !1,
593
+ required: l = !1,
594
+ margin: s = "dense",
595
+ size: g = "small",
596
+ fullWidth: x = !1,
597
+ inputMode: y = void 0,
598
+ pattern: C = void 0,
599
+ startAdornment: S = void 0,
600
+ endAdornment: I = void 0,
601
+ sx: w = void 0,
602
+ sxStartAdornment: T = void 0,
603
+ sxEndAdornment: N = void 0
374
604
  }) {
375
- const p = S(
376
- (L) => {
377
- o && o(L.target.value);
605
+ const m = F(
606
+ (M) => {
607
+ a && a(M.target.value);
378
608
  },
379
- [o]
380
- ), i = S((L) => {
381
- if (L.key === "Enter" && !L.ctrlKey && !L.altKey && !L.shiftKey) {
382
- L.preventDefault(), L.stopPropagation(), document.activeElement instanceof HTMLElement && document.activeElement.blur();
609
+ [a]
610
+ ), h = F((M) => {
611
+ if (M.key === "Enter" && !M.ctrlKey && !M.altKey && !M.shiftKey) {
612
+ M.preventDefault(), M.stopPropagation(), document.activeElement instanceof HTMLElement && document.activeElement.blur();
383
613
  return;
384
614
  }
385
- }, []), $ = y ?? { marginBottom: 1 }, N = x ?? { marginBottom: 1 };
386
- return /* @__PURE__ */ s(
387
- Le,
615
+ }, []), v = T ?? { marginBottom: 1 }, o = N ?? { marginBottom: 1 };
616
+ return /* @__PURE__ */ c(
617
+ Ge,
388
618
  {
389
619
  id: e,
390
620
  "aria-label": e,
391
621
  type: "text",
392
- label: t,
393
- helperText: r,
394
- margin: d,
395
- size: m,
396
- fullWidth: b,
622
+ label: n,
623
+ helperText: t,
624
+ margin: s,
625
+ size: g,
626
+ fullWidth: x,
397
627
  variant: "standard",
398
- value: a,
399
- onChange: p,
400
- onBlur: l,
401
- disabled: c,
402
- "aria-disabled": c,
403
- error: u,
404
- required: n,
628
+ value: r,
629
+ onChange: m,
630
+ onBlur: i,
631
+ disabled: f,
632
+ "aria-disabled": f,
633
+ error: d,
634
+ required: l,
405
635
  slotProps: {
406
636
  input: {
407
- startAdornment: C ? /* @__PURE__ */ s(se, { position: "start", sx: { ...$ }, children: C }) : null,
408
- endAdornment: R ? /* @__PURE__ */ s(se, { position: "end", sx: { ...N }, children: R }) : null
637
+ startAdornment: S ? /* @__PURE__ */ c(he, { position: "start", sx: { ...v }, children: S }) : null,
638
+ endAdornment: I ? /* @__PURE__ */ c(he, { position: "end", sx: { ...o }, children: I }) : null
409
639
  },
410
640
  htmlInput: {
411
- inputMode: g,
412
- pattern: v
641
+ inputMode: y,
642
+ pattern: C
413
643
  }
414
644
  },
415
- sx: I,
416
- onKeyDown: i
645
+ sx: w,
646
+ onKeyDown: h
417
647
  }
418
648
  );
419
649
  }
420
- function Y({
650
+ function G({
421
651
  id: e,
422
- label: t = void 0,
423
- helperText: r = "",
424
- value: a,
425
- onChange: o = void 0,
426
- onBlur: l = void 0,
427
- disabled: c = !1,
428
- required: u = !1,
429
- margin: n = "dense",
430
- size: d = "small",
431
- fullWidth: m = !1,
432
- inputMode: b = void 0,
433
- pattern: g = void 0,
434
- startAdornment: v = void 0,
435
- endAdornment: C = void 0,
436
- sx: R = void 0,
437
- sxStartAdornment: I = void 0,
438
- sxEndAdornment: y = void 0,
439
- error: x = void 0,
440
- onErrorChange: p = void 0,
441
- onValidate: i = void 0,
442
- numberType: $ = "int",
443
- minValue: N = void 0,
444
- maxValue: L = void 0
652
+ label: n = void 0,
653
+ helperText: t = "",
654
+ value: r,
655
+ onChange: a = void 0,
656
+ onBlur: i = void 0,
657
+ disabled: f = !1,
658
+ required: d = !1,
659
+ margin: l = "dense",
660
+ size: s = "small",
661
+ fullWidth: g = !1,
662
+ inputMode: x = void 0,
663
+ pattern: y = void 0,
664
+ startAdornment: C = void 0,
665
+ endAdornment: S = void 0,
666
+ sx: I = void 0,
667
+ sxStartAdornment: w = void 0,
668
+ sxEndAdornment: T = void 0,
669
+ error: N = void 0,
670
+ onErrorChange: m = void 0,
671
+ onValidate: h = void 0,
672
+ numberType: v = "int",
673
+ minValue: o = void 0,
674
+ maxValue: M = void 0
445
675
  }) {
446
- const [E, T] = D(a), [O, K] = D(x !== void 0 ? x : !1);
447
- W(() => {
448
- T((f) => a !== f ? a : f);
449
- }, [a]), W(() => {
450
- K((f) => x !== void 0 && x !== f ? x : f);
451
- }, [x]);
452
- const q = S(
453
- (f) => {
454
- const B = Number.parseInt(f, f.startsWith("0x") ? 16 : 10);
455
- let _ = Number.isNaN(B);
456
- return _ || (_ = N !== void 0 && B < N), _ || (_ = L !== void 0 && B > L), { val: f, err: _ };
676
+ const [E, P] = A(r), [_, B] = A(N !== void 0 ? N : !1);
677
+ k(() => {
678
+ P((u) => r !== u ? r : u);
679
+ }, [r]), k(() => {
680
+ B((u) => N !== void 0 && N !== u ? N : u);
681
+ }, [N]);
682
+ const z = F(
683
+ (u) => {
684
+ const $ = Number.parseInt(u, u.startsWith("0x") ? 16 : 10);
685
+ let b = Number.isNaN($);
686
+ return b || (b = o !== void 0 && $ < o), b || (b = M !== void 0 && $ > M), { val: u, err: b };
457
687
  },
458
- [L, N]
459
- ), M = S(
460
- (f) => {
461
- let B = !1;
462
- if (f.endsWith(",") || f.endsWith("."))
463
- return B = !0, { val: f, err: B };
464
- const _ = Number.parseFloat(f.replace(",", "."));
465
- return B = Number.isNaN(_), B || (B = N !== void 0 && _ < N), B || (B = L !== void 0 && _ > L), { val: _.toString(), err: B };
688
+ [M, o]
689
+ ), K = F(
690
+ (u) => {
691
+ let $ = !1;
692
+ if (u.endsWith(",") || u.endsWith("."))
693
+ return $ = !0, { val: u, err: $ };
694
+ const b = Number.parseFloat(u.replace(",", "."));
695
+ return $ = Number.isNaN(b), $ || ($ = o !== void 0 && b < o), $ || ($ = M !== void 0 && b > M), { val: b.toString(), err: $ };
466
696
  },
467
- [L, N]
468
- ), A = S(
469
- (f) => $ === "int" ? q(f) : M(f),
470
- [$, M, q]
471
- ), w = S(
472
- (f, B) => {
473
- let _ = f, j = !1;
474
- return !u && (_ === void 0 || _ === "") ? { val: _, err: j } : ($ !== void 0 && ({ val: _, err: j } = A(f)), !j && i && ({ val: _, err: j } = i(_, B)), { val: _, err: j });
697
+ [M, o]
698
+ ), X = F(
699
+ (u) => v === "int" ? z(u) : K(u),
700
+ [v, K, z]
701
+ ), D = F(
702
+ (u, $) => {
703
+ let b = u, O = !1;
704
+ return !d && (b === void 0 || b === "") ? { val: b, err: O } : (v !== void 0 && ({ val: b, err: O } = X(u)), !O && h && ({ val: b, err: O } = h(b, $)), { val: b, err: O });
475
705
  },
476
- [i, A]
477
- ), h = S(
478
- (f) => {
479
- const { val: B, err: _ } = w(f, "change");
480
- (x === void 0 || x === !1) && K(_), T(_ ? f : B), !_ && o && o(B);
706
+ [h, X]
707
+ ), R = F(
708
+ (u) => {
709
+ const { val: $, err: b } = D(u, "change");
710
+ (N === void 0 || N === !1) && B(b), P(b ? u : $), !b && a && a($);
481
711
  },
482
- [o, w]
483
- ), F = S(() => {
484
- const { val: f, err: B } = w(E, "blur");
485
- (x === void 0 || x === !1) && K(B), !B && l && l(f);
486
- }, [l, w, E]);
487
- return W(() => {
488
- p && p(O);
489
- }, [O, p]), /* @__PURE__ */ s(
490
- nt,
712
+ [a, D]
713
+ ), p = F(() => {
714
+ const { val: u, err: $ } = D(E, "blur");
715
+ (N === void 0 || N === !1) && B($), !$ && i && i(u);
716
+ }, [i, D, E]);
717
+ return k(() => {
718
+ m && m(_);
719
+ }, [_, m]), /* @__PURE__ */ c(
720
+ Lt,
491
721
  {
492
722
  id: e,
493
- label: t,
494
- helperText: r,
723
+ label: n,
724
+ helperText: t,
495
725
  value: E,
496
- onChange: h,
497
- onBlur: F,
498
- disabled: c,
499
- error: O,
500
- required: u,
501
- margin: n,
502
- size: d,
503
- fullWidth: m,
504
- inputMode: b,
505
- pattern: g,
506
- startAdornment: v,
507
- endAdornment: C,
508
- sx: R,
509
- sxStartAdornment: I,
510
- sxEndAdornment: y
726
+ onChange: R,
727
+ onBlur: p,
728
+ disabled: f,
729
+ error: _,
730
+ required: d,
731
+ margin: l,
732
+ size: s,
733
+ fullWidth: g,
734
+ inputMode: x,
735
+ pattern: y,
736
+ startAdornment: C,
737
+ endAdornment: S,
738
+ sx: I,
739
+ sxStartAdornment: w,
740
+ sxEndAdornment: T
511
741
  }
512
742
  );
513
743
  }
514
- function At({
744
+ function rr({
515
745
  minValue: e,
516
- maxValue: t,
517
- onChange: r = void 0,
518
- onBlur: a = void 0,
519
- minError: o = void 0,
520
- onMinErrorChange: l = void 0,
521
- maxError: c = void 0,
522
- onMaxErrorChange: u = void 0,
523
- onMinValidate: n = void 0,
524
- onMaxValidate: d = void 0,
525
- minDisabled: m = !1,
526
- maxDisabled: b = !1,
527
- unit: g = void 0,
528
- lowerLimit: v = void 0,
529
- upperLimit: C = void 0
746
+ maxValue: n,
747
+ onChange: t = void 0,
748
+ onBlur: r = void 0,
749
+ minError: a = void 0,
750
+ onMinErrorChange: i = void 0,
751
+ maxError: f = void 0,
752
+ onMaxErrorChange: d = void 0,
753
+ onMinValidate: l = void 0,
754
+ onMaxValidate: s = void 0,
755
+ minDisabled: g = !1,
756
+ maxDisabled: x = !1,
757
+ unit: y = void 0,
758
+ lowerLimit: C = void 0,
759
+ upperLimit: S = void 0
530
760
  }) {
531
- const R = G(), I = Number.parseInt(e), y = Number.parseInt(t), [x, p] = D(e.toString()), [i, $] = D(t.toString()), [N, L] = D(
532
- o === !0 || Number.isNaN(I) || I < (v ?? 0) || C && I > C || !Number.isNaN(y) && I >= y
533
- ), [E, T] = D(
534
- c === !0 || Number.isNaN(y) || y < (v ?? 0) || C && y > C || !Number.isNaN(I) && I >= y
761
+ const I = H(), w = Number.parseInt(e), T = Number.parseInt(n), [N, m] = A(e.toString()), [h, v] = A(n.toString()), [o, M] = A(
762
+ a === !0 || Number.isNaN(w) || w < (C ?? 0) || S && w > S || !Number.isNaN(T) && w >= T
763
+ ), [E, P] = A(
764
+ f === !0 || Number.isNaN(T) || T < (C ?? 0) || S && T > S || !Number.isNaN(w) && w >= T
535
765
  );
536
- W(() => {
537
- p((h) => e.toString() !== h ? e.toString() : h);
538
- }, [e]), W(() => {
539
- L((h) => o !== void 0 && o !== h ? o : h);
540
- }, [o]), W(() => {
541
- $((h) => t.toString() !== h ? t.toString() : h);
542
- }, [t]), W(() => {
543
- T((h) => c !== void 0 && c !== h ? c : h);
544
- }, [c]);
545
- const O = S(
546
- (h) => {
547
- const F = Number.parseInt(h, h.startsWith("0x") ? 16 : 10), f = Number.parseInt(i), B = Number.isNaN(F) || F < (v ?? 0) || C && F > C || !Number.isNaN(f) && F >= f;
548
- return { val: h, err: B };
766
+ k(() => {
767
+ m((R) => e.toString() !== R ? e.toString() : R);
768
+ }, [e]), k(() => {
769
+ M((R) => a !== void 0 && a !== R ? a : R);
770
+ }, [a]), k(() => {
771
+ v((R) => n.toString() !== R ? n.toString() : R);
772
+ }, [n]), k(() => {
773
+ P((R) => f !== void 0 && f !== R ? f : R);
774
+ }, [f]);
775
+ const _ = F(
776
+ (R) => {
777
+ const p = Number.parseInt(R, R.startsWith("0x") ? 16 : 10), u = Number.parseInt(h), $ = Number.isNaN(p) || p < (C ?? 0) || S && p > S || !Number.isNaN(u) && p >= u;
778
+ return { val: R, err: $ };
549
779
  },
550
- [i, v, C]
551
- ), K = S(
552
- (h) => {
553
- const F = Number.parseInt(h, h.startsWith("0x") ? 16 : 10), f = Number.parseInt(x), B = Number.isNaN(F) || F < (v ?? 0) || C && F > C || !Number.isNaN(f) && f >= F;
554
- return { val: h, err: B };
780
+ [h, C, S]
781
+ ), B = F(
782
+ (R) => {
783
+ const p = Number.parseInt(R, R.startsWith("0x") ? 16 : 10), u = Number.parseInt(N), $ = Number.isNaN(p) || p < (C ?? 0) || S && p > S || !Number.isNaN(u) && u >= p;
784
+ return { val: R, err: $ };
555
785
  },
556
- [x, v, C]
557
- ), q = S(
558
- (h) => {
559
- let { val: F, err: f } = O(h);
560
- if (!f && n && ({ val: F, err: f } = n(h, "change")), (o === void 0 || o === !1) && L(f), f)
561
- r && r(h, i);
786
+ [N, C, S]
787
+ ), z = F(
788
+ (R) => {
789
+ let { val: p, err: u } = _(R);
790
+ if (!u && l && ({ val: p, err: u } = l(R, "change")), (a === void 0 || a === !1) && M(u), u)
791
+ t && t(R, h);
562
792
  else {
563
- const B = Number.parseInt(F, F.startsWith("0x") ? 16 : 10).toString();
564
- p(B), r && r(B, i);
793
+ const $ = Number.parseInt(p, p.startsWith("0x") ? 16 : 10).toString();
794
+ m($), t && t($, h);
565
795
  }
566
796
  },
567
- [O, n, o, r, i]
568
- ), M = S(
569
- (h) => {
570
- let { val: F, err: f } = O(h);
571
- !f && n && ({ val: F, err: f } = n(F, "blur")), L(f), !f && a && a(F, i);
797
+ [_, l, a, t, h]
798
+ ), K = F(
799
+ (R) => {
800
+ let { val: p, err: u } = _(R);
801
+ !u && l && ({ val: p, err: u } = l(p, "blur")), M(u), !u && r && r(p, h);
572
802
  },
573
- [O, n, a, i]
574
- ), A = S(
575
- (h) => {
576
- let { val: F, err: f } = K(h);
577
- if (!f && d && ({ val: F, err: f } = d(h, "change")), (c === void 0 || c === !1) && T(f), f)
578
- r && r(x, h);
803
+ [_, l, r, h]
804
+ ), X = F(
805
+ (R) => {
806
+ let { val: p, err: u } = B(R);
807
+ if (!u && s && ({ val: p, err: u } = s(R, "change")), (f === void 0 || f === !1) && P(u), u)
808
+ t && t(N, R);
579
809
  else {
580
- const B = Number.parseInt(F, F.startsWith("0x") ? 16 : 10).toString();
581
- $(B), r && r(x, B);
810
+ const $ = Number.parseInt(p, p.startsWith("0x") ? 16 : 10).toString();
811
+ v($), t && t(N, $);
582
812
  }
583
813
  },
584
- [K, d, c, r, x]
585
- ), w = S(
586
- (h) => {
587
- let { val: F, err: f } = K(h);
588
- !f && d && ({ val: F, err: f } = d(F, "blur")), T(f), !f && a && a(x, F);
814
+ [B, s, f, t, N]
815
+ ), D = F(
816
+ (R) => {
817
+ let { val: p, err: u } = B(R);
818
+ !u && s && ({ val: p, err: u } = s(p, "blur")), P(u), !u && r && r(N, p);
589
819
  },
590
- [K, d, a, x]
820
+ [B, s, r, N]
591
821
  );
592
- return W(() => {
593
- l && l(N), u && u(E);
594
- }, [E, N, u, l]), /* @__PURE__ */ k(H, { children: [
595
- /* @__PURE__ */ s(
596
- Y,
822
+ return k(() => {
823
+ i && i(o), d && d(E);
824
+ }, [E, o, d, i]), /* @__PURE__ */ L(J, { children: [
825
+ /* @__PURE__ */ c(
826
+ G,
597
827
  {
598
828
  id: "min-value",
599
- disabled: m,
829
+ disabled: g,
600
830
  inputMode: "numeric",
601
831
  fullWidth: !0,
602
- value: x,
603
- onChange: q,
604
- onBlur: M,
605
- startAdornment: R.getString("LabelFrom"),
606
- endAdornment: g,
832
+ value: N,
833
+ onChange: z,
834
+ onBlur: K,
835
+ startAdornment: I.getString("LabelFrom"),
836
+ endAdornment: y,
607
837
  numberType: "int",
608
- error: N,
609
- onErrorChange: L
838
+ error: o,
839
+ onErrorChange: M
610
840
  }
611
841
  ),
612
- /* @__PURE__ */ s(
613
- Y,
842
+ /* @__PURE__ */ c(
843
+ G,
614
844
  {
615
845
  id: "max-value",
616
- disabled: b,
846
+ disabled: x,
617
847
  inputMode: "numeric",
618
848
  fullWidth: !0,
619
- value: i,
620
- onChange: A,
621
- onBlur: w,
622
- startAdornment: R.getString("LabelTo"),
623
- endAdornment: g,
849
+ value: h,
850
+ onChange: X,
851
+ onBlur: D,
852
+ startAdornment: I.getString("LabelTo"),
853
+ endAdornment: y,
624
854
  numberType: "int",
625
855
  error: E,
626
- onErrorChange: T
856
+ onErrorChange: P
627
857
  }
628
858
  )
629
859
  ] });
630
860
  }
631
- function ee({
861
+ function ie({
632
862
  id: e = void 0,
633
- label: t,
634
- value: r,
635
- disabled: a = !1,
636
- size: o = "small",
637
- sx: l = void 0
863
+ label: n,
864
+ value: t,
865
+ disabled: r = !1,
866
+ size: a = "small",
867
+ sx: i = void 0
638
868
  }) {
639
- return /* @__PURE__ */ s(
640
- he,
869
+ return /* @__PURE__ */ c(
870
+ Fe,
641
871
  {
642
872
  id: e,
643
873
  "aria-label": e,
644
- value: r,
645
- disabled: a,
646
- "aria-disabled": a,
647
- control: /* @__PURE__ */ s(ye, { size: o }),
648
- label: t,
874
+ value: t,
875
+ disabled: r,
876
+ "aria-disabled": r,
877
+ control: /* @__PURE__ */ c(qe, { size: a }),
878
+ label: n,
649
879
  componentsProps: { typography: { noWrap: !0 } },
650
- sx: l
880
+ sx: i
651
881
  }
652
882
  );
653
883
  }
654
- function rt({
884
+ function Et({
655
885
  children: e,
656
- id: t = void 0,
657
- value: r,
658
- onChange: a
886
+ id: n = void 0,
887
+ value: t,
888
+ onChange: r
659
889
  }) {
660
- return /* @__PURE__ */ s(Be, { id: t, "aria-label": t, value: r, onChange: (o, l) => a(l), children: e });
890
+ return /* @__PURE__ */ c(Ye, { id: n, "aria-label": n, value: t, onChange: (a, i) => r(i), children: e });
661
891
  }
662
- const at = U(V, {
892
+ const Bt = W(Q, {
663
893
  shouldForwardProp: (e) => e !== "collapsed"
664
- })(({ collapsed: e, theme: t }) => ({
894
+ })(({ collapsed: e, theme: n }) => ({
665
895
  paddingTop: e ? "4px" : "8px",
666
896
  paddingLeft: "2px",
667
897
  paddingRight: "2px",
668
898
  paddingBottom: e ? "0px" : "2px",
669
899
  marginTop: "2px",
670
900
  "&:hover, &:focus-within": {
671
- background: t.palette.action.hover
901
+ background: n.palette.action.hover
672
902
  }
673
- })), xe = U("span")(({ theme: e }) => ({
903
+ })), je = W("span")(({ theme: e }) => ({
674
904
  color: e.palette.divider
675
- })), ot = U(xe)(() => ({
905
+ })), Ot = W(je)(() => ({
676
906
  "&:hover": {
677
907
  cursor: "pointer"
678
908
  }
679
- })), lt = U(ve)(({ theme: e }) => ({
909
+ })), kt = W(we)(({ theme: e }) => ({
680
910
  color: e.palette.divider,
681
911
  padding: "0px"
682
912
  }));
683
- function le({
913
+ function fe({
684
914
  textAlign: e = "left",
685
- text: t = void 0,
686
- summary: r = void 0,
687
- children: a = void 0,
688
- collapsible: o = !1,
689
- collapsed: l = !1,
690
- collapsedChange: c = void 0
915
+ text: n = void 0,
916
+ summary: t = void 0,
917
+ children: r = void 0,
918
+ collapsible: a = !1,
919
+ collapsed: i = !1,
920
+ collapsedChange: f = void 0
691
921
  }) {
692
- const u = Se(), n = G(), [d, m] = D(l);
693
- W(() => m(l), [l]);
694
- const b = S(
695
- (g) => {
696
- c ? c(g) : m(g);
922
+ const d = We(), l = H(), [s, g] = A(i);
923
+ k(() => g(i), [i]);
924
+ const x = F(
925
+ (y) => {
926
+ f ? f(y) : g(y);
697
927
  },
698
- [c]
928
+ [f]
699
929
  );
700
- return /* @__PURE__ */ k(at, { collapsed: d, children: [
701
- t && /* @__PURE__ */ s(we, { textAlign: e, variant: "fullWidth", children: o ? /* @__PURE__ */ k(ge, { direction: "row", spacing: 1, alignItems: "center", children: [
702
- /* @__PURE__ */ k(ot, { onClick: () => b(!d), children: [
703
- t.toLocaleUpperCase(u),
704
- d && r ? ` (${r})` : ""
930
+ return /* @__PURE__ */ L(Bt, { collapsed: s, children: [
931
+ n && /* @__PURE__ */ c(He, { textAlign: e, variant: "fullWidth", children: a ? /* @__PURE__ */ L(Re, { direction: "row", spacing: 1, alignItems: "center", children: [
932
+ /* @__PURE__ */ L(Ot, { onClick: () => x(!s), children: [
933
+ n.toLocaleUpperCase(d),
934
+ s && t ? ` (${t})` : ""
705
935
  ] }),
706
- /* @__PURE__ */ s(
707
- Z,
936
+ /* @__PURE__ */ c(
937
+ ne,
708
938
  {
709
- title: d ? n == null ? void 0 : n.getString("TooltipExpandSection", t) : n == null ? void 0 : n.getString("TooltipCollapseSection", t),
710
- children: /* @__PURE__ */ s(lt, { onClick: () => b(!d), children: d ? /* @__PURE__ */ s(be, {}) : /* @__PURE__ */ s(He, {}) })
939
+ title: s ? l == null ? void 0 : l.getString("TooltipExpandSection", n) : l == null ? void 0 : l.getString("TooltipCollapseSection", n),
940
+ children: /* @__PURE__ */ c(kt, { onClick: () => x(!s), children: s ? /* @__PURE__ */ c(_e, {}) : /* @__PURE__ */ c(fn, {}) })
711
941
  }
712
942
  )
713
- ] }) : /* @__PURE__ */ s(xe, { children: t.toLocaleUpperCase(u) }) }),
714
- !d && a
943
+ ] }) : /* @__PURE__ */ c(je, { children: n.toLocaleUpperCase(d) }) }),
944
+ !s && r
715
945
  ] });
716
946
  }
717
- function fe({
947
+ function Ie({
718
948
  id: e,
719
- label: t,
720
- showLabel: r = !1,
721
- helperText: a = "",
722
- options: o,
723
- value: l,
724
- onChange: c,
725
- disabled: u = !1,
726
- required: n = !1,
727
- margin: d = "dense",
728
- size: m = "small",
729
- fullWidth: b = !1,
730
- minWidth: g = void 0,
731
- prefixTextWithValue: v = !1
949
+ label: n,
950
+ showLabel: t = !1,
951
+ helperText: r = "",
952
+ options: a,
953
+ value: i,
954
+ onChange: f,
955
+ disabled: d = !1,
956
+ required: l = !1,
957
+ margin: s = "dense",
958
+ size: g = "small",
959
+ fullWidth: x = !1,
960
+ minWidth: y = void 0,
961
+ prefixTextWithValue: C = !1
732
962
  }) {
733
- const C = S(
734
- (p) => {
735
- typeof p.target.value == "string" ? c("") : c(p.target.value);
963
+ const S = F(
964
+ (m) => {
965
+ typeof m.target.value == "string" ? f("") : f(m.target.value);
736
966
  },
737
- [c]
738
- ), R = S(
739
- (p) => p.map((i) => /* @__PURE__ */ s(ae, { "aria-label": `menu-item-${i.value}`, value: i.value, children: v ? `${i.value} - ${i.displayText}` : i.displayText }, i.value)),
740
- [v]
741
- ), I = S(
742
- (p, i) => {
743
- const $ = [
744
- /* @__PURE__ */ s(Te, { color: "primary", children: p }, p)
967
+ [f]
968
+ ), I = F(
969
+ (m) => m.map((h) => /* @__PURE__ */ c(se, { "aria-label": `menu-item-${h.value}`, value: h.value, children: C ? `${h.value} - ${h.displayText}` : h.displayText }, h.value)),
970
+ [C]
971
+ ), w = F(
972
+ (m, h) => {
973
+ const v = [
974
+ /* @__PURE__ */ c(Ve, { color: "primary", children: m }, m)
745
975
  ];
746
- return $.push(...R(i)), $;
747
- },
748
- [R]
749
- ), y = S(
750
- (p) => {
751
- const i = [];
752
- return p.forEach(($, N) => {
753
- i.push(...I(N, $));
754
- }), i;
976
+ return v.push(...I(h)), v;
755
977
  },
756
978
  [I]
757
- ), x = S(
758
- (p) => {
759
- let i = "";
760
- if (o instanceof Map)
761
- o.forEach(($, N) => {
762
- if (i === "") {
763
- const L = $.find((E) => E.value === p);
764
- L && (i = v ? `${L.value} - ${N} - ${L.displayText}` : `${N} - ${L.displayText}`);
979
+ ), T = F(
980
+ (m) => {
981
+ const h = [];
982
+ return m.forEach((v, o) => {
983
+ h.push(...w(o, v));
984
+ }), h;
985
+ },
986
+ [w]
987
+ ), N = F(
988
+ (m) => {
989
+ let h = "";
990
+ if (a instanceof Map)
991
+ a.forEach((v, o) => {
992
+ if (h === "") {
993
+ const M = v.find((E) => E.value === m);
994
+ M && (h = C ? `${M.value} - ${o} - ${M.displayText}` : `${o} - ${M.displayText}`);
765
995
  }
766
996
  });
767
997
  else {
768
- const $ = o.find((N) => N.value === p);
769
- $ && (i = v ? `${$.value} - ${$.displayText}` : $.displayText);
998
+ const v = a.find((o) => o.value === m);
999
+ v && (h = C ? `${v.value} - ${v.displayText}` : v.displayText);
770
1000
  }
771
- return i === "" && (i = n ? `${t} *` : t), i;
1001
+ return h === "" && (h = l ? `${n} *` : n), h;
772
1002
  },
773
- [t, o, v, n]
1003
+ [n, a, C, l]
774
1004
  );
775
- return /* @__PURE__ */ k(pe, { fullWidth: b, variant: "standard", sx: { minWidth: g }, margin: d, size: m, children: [
776
- r && /* @__PURE__ */ s(Ee, { id: `${e}-label`, children: n ? `${t} *` : t }),
777
- /* @__PURE__ */ k(
778
- _e,
1005
+ return /* @__PURE__ */ L(Me, { fullWidth: x, variant: "standard", sx: { minWidth: y }, margin: s, size: g, children: [
1006
+ t && /* @__PURE__ */ c(Je, { id: `${e}-label`, children: l ? `${n} *` : n }),
1007
+ /* @__PURE__ */ L(
1008
+ Qe,
779
1009
  {
780
1010
  labelId: `${e}-label`,
781
1011
  "aria-label": e,
782
1012
  id: e,
783
- value: l,
784
- renderValue: x,
785
- onChange: C,
786
- displayEmpty: !r,
787
- disabled: u,
788
- "aria-disabled": u,
1013
+ value: i,
1014
+ renderValue: N,
1015
+ onChange: S,
1016
+ displayEmpty: !t,
1017
+ disabled: d,
1018
+ "aria-disabled": d,
789
1019
  children: [
790
- o instanceof Map && y(o),
791
- o instanceof Array && R(o)
1020
+ a instanceof Map && T(a),
1021
+ a instanceof Array && I(a)
792
1022
  ]
793
1023
  }
794
1024
  ),
795
- a && /* @__PURE__ */ s(ke, { children: a })
1025
+ r && /* @__PURE__ */ c(Ze, { children: r })
796
1026
  ] });
797
1027
  }
798
- const $t = U(V)(({ height: e, width: t }) => ({
1028
+ const ar = W(Q)(({ height: e, width: n }) => ({
799
1029
  height: e,
800
- width: t,
1030
+ width: n,
801
1031
  padding: "4px",
802
1032
  overflow: "auto"
803
1033
  }));
804
- function st({ label: e, variant: t = "h6" }) {
805
- return /* @__PURE__ */ s(Oe, { children: /* @__PURE__ */ s(me, { sx: { flex: "1 1 100%" }, variant: t, id: "tableTitle", component: "div", children: e }) });
1034
+ function jt({ label: e, variant: n = "h6" }) {
1035
+ return /* @__PURE__ */ c(an, { children: /* @__PURE__ */ c(Te, { sx: { flex: "1 1 100%" }, variant: n, id: "tableTitle", component: "div", children: e }) });
806
1036
  }
807
- function Rt({
1037
+ function lr({
808
1038
  data: e,
809
- dataKey: t,
810
- selectedKey: r = void 0,
811
- onClickRow: a = void 0,
812
- columns: o,
813
- label: l = void 0,
814
- labelVariant: c = "h6",
815
- maxHeight: u = void 0,
816
- size: n = "medium",
817
- stickyHeader: d = !1,
818
- hover: m = !1
1039
+ dataKey: n,
1040
+ selectedKey: t = void 0,
1041
+ onClickRow: r = void 0,
1042
+ columns: a,
1043
+ label: i = void 0,
1044
+ labelVariant: f = "h6",
1045
+ maxHeight: d = void 0,
1046
+ size: l = "medium",
1047
+ stickyHeader: s = !1,
1048
+ hover: g = !1
819
1049
  }) {
820
- const b = S(
821
- (g) => {
822
- a && a(g);
1050
+ const x = F(
1051
+ (y) => {
1052
+ r && r(y);
823
1053
  },
824
- [a]
1054
+ [r]
825
1055
  );
826
- return /* @__PURE__ */ k(V, { children: [
827
- l && /* @__PURE__ */ s(st, { label: l, variant: c }),
828
- /* @__PURE__ */ s(De, { children: /* @__PURE__ */ k(Pe, { "aria-labelledby": "tableTitle", size: n, stickyHeader: d, sx: { maxHeight: u }, padding: "none", children: [
829
- /* @__PURE__ */ s(We, { children: /* @__PURE__ */ s(ie, { children: o.map((g) => (
1056
+ return /* @__PURE__ */ L(Q, { children: [
1057
+ i && /* @__PURE__ */ c(jt, { label: i, variant: f }),
1058
+ /* @__PURE__ */ c(en, { children: /* @__PURE__ */ L(nn, { "aria-labelledby": "tableTitle", size: l, stickyHeader: s, sx: { maxHeight: d }, padding: "none", children: [
1059
+ /* @__PURE__ */ c(tn, { children: /* @__PURE__ */ c(ge, { children: a.map((y) => (
830
1060
  // eslint-disable-next-line react/jsx-props-no-spreading
831
- /* @__PURE__ */ s(de, { ...g.headProps, children: g.headCell }, g.key)
1061
+ /* @__PURE__ */ c(be, { ...y.headProps, children: y.headCell }, y.key)
832
1062
  )) }) }),
833
- /* @__PURE__ */ s(Ue, { children: e.map((g) => {
834
- const v = t(g);
835
- return /* @__PURE__ */ s(ie, { hover: m, selected: v === r, onClick: () => b(g), children: o.map((C) => /* @__PURE__ */ s(
836
- de,
1063
+ /* @__PURE__ */ c(rn, { children: e.map((y) => {
1064
+ const C = n(y);
1065
+ return /* @__PURE__ */ c(ge, { hover: g, selected: C === t, onClick: () => x(y), children: a.map((S) => /* @__PURE__ */ c(
1066
+ be,
837
1067
  {
838
- ...C.dataProps,
839
- children: C.dataCell(g)
1068
+ ...S.dataProps,
1069
+ children: S.dataCell(y)
840
1070
  },
841
- `${v}-${C.key}`
842
- )) }, v);
1071
+ `${C}-${S.key}`
1072
+ )) }, C);
843
1073
  }) })
844
1074
  ] }) })
845
1075
  ] });
846
1076
  }
847
- const Lt = U("div")(({ theme: e }) => ({
1077
+ const ir = W("div")(({ theme: e }) => ({
848
1078
  borderBottom: "1px solid",
849
1079
  borderColor: e.palette.divider
850
- })), it = U(Ke)(({ theme: e }) => ({
851
- [`& .${ce.grouped}`]: {
1080
+ })), Pt = W(ln)(({ theme: e }) => ({
1081
+ [`& .${me.grouped}`]: {
852
1082
  margin: e.spacing(0.5),
853
1083
  padding: e.spacing(1.25),
854
1084
  minWidth: 24,
855
1085
  color: e.palette.action.active,
856
1086
  border: 0,
857
1087
  borderRadius: e.shape.borderRadius,
858
- [`&.${ce.disabled}`]: {
1088
+ [`&.${me.disabled}`]: {
859
1089
  border: 0
860
1090
  }
861
1091
  }
@@ -863,225 +1093,225 @@ const Lt = U("div")(({ theme: e }) => ({
863
1093
  // marginLeft: -1,
864
1094
  // borderLeft: '1px solid transparent',
865
1095
  // },
866
- })), dt = U(Xe)(({ theme: e }) => ({
867
- [`& .${J.grouped}`]: {
1096
+ })), Wt = W(on)(({ theme: e }) => ({
1097
+ [`& .${Z.grouped}`]: {
868
1098
  margin: e.spacing(0.5),
869
1099
  padding: e.spacing(1.25),
870
1100
  minWidth: 24,
871
1101
  color: e.palette.action.active,
872
1102
  border: 0,
873
1103
  borderRadius: e.shape.borderRadius,
874
- [`&.${J.disabled}`]: {
1104
+ [`&.${Z.disabled}`]: {
875
1105
  border: 0
876
1106
  }
877
1107
  },
878
- [`& .${J.middleButton},& .${J.lastButton}`]: {
1108
+ [`& .${Z.middleButton},& .${Z.lastButton}`]: {
879
1109
  marginLeft: -1,
880
1110
  borderLeft: "1px solid transparent"
881
1111
  }
882
1112
  }));
883
- function Ne({
1113
+ function Pe({
884
1114
  onClick: e,
885
- icon: t = void 0,
886
- text: r = void 0,
887
- size: a = "small",
888
- variant: o = void 0,
889
- color: l = "inherit",
890
- tooltip: c = void 0,
891
- ariaLabel: u = void 0,
892
- children: n = void 0,
893
- disabled: d = !1
1115
+ icon: n = void 0,
1116
+ text: t = void 0,
1117
+ size: r = "small",
1118
+ variant: a = void 0,
1119
+ color: i = "inherit",
1120
+ tooltip: f = void 0,
1121
+ ariaLabel: d = void 0,
1122
+ children: l = void 0,
1123
+ disabled: s = !1
894
1124
  }) {
895
- return n ? /* @__PURE__ */ s(
896
- Qe,
1125
+ return l ? /* @__PURE__ */ c(
1126
+ wt,
897
1127
  {
898
- size: typeof a == "string" ? a : "small",
899
- variant: o,
900
- color: l,
901
- startIcon: t,
902
- text: r,
903
- disabled: d,
904
- children: n
1128
+ size: typeof r == "string" ? r : "small",
1129
+ variant: a,
1130
+ color: i,
1131
+ startIcon: n,
1132
+ text: t,
1133
+ disabled: s,
1134
+ children: l
905
1135
  }
906
- ) : r ? /* @__PURE__ */ k(
907
- ne,
1136
+ ) : t ? /* @__PURE__ */ L(
1137
+ te,
908
1138
  {
909
- size: typeof a == "string" ? a : "small",
910
- variant: o,
911
- color: l,
912
- "aria-label": u,
1139
+ size: typeof r == "string" ? r : "small",
1140
+ variant: a,
1141
+ color: i,
1142
+ "aria-label": d,
913
1143
  onClick: e,
914
- startIcon: t,
915
- disabled: d,
1144
+ startIcon: n,
1145
+ disabled: s,
916
1146
  children: [
917
- c && /* @__PURE__ */ s(Z, { placement: "bottom-start", title: c, children: /* @__PURE__ */ s("span", { children: r }) }),
918
- !c && r
1147
+ f && /* @__PURE__ */ c(ne, { placement: "bottom-start", title: f, children: /* @__PURE__ */ c("span", { children: t }) }),
1148
+ !f && t
919
1149
  ]
920
1150
  }
921
- ) : /* @__PURE__ */ k(
922
- ne,
1151
+ ) : /* @__PURE__ */ L(
1152
+ te,
923
1153
  {
924
- size: typeof a == "string" ? a : "small",
925
- variant: o,
926
- color: l,
927
- "aria-label": u,
1154
+ size: typeof r == "string" ? r : "small",
1155
+ variant: a,
1156
+ color: i,
1157
+ "aria-label": d,
928
1158
  onClick: e,
929
- disabled: d,
1159
+ disabled: s,
930
1160
  sx: {
931
- height: typeof a == "number" ? `${a}px` : void 0,
932
- width: typeof a == "number" ? `${a}px` : void 0
1161
+ height: typeof r == "number" ? `${r}px` : void 0,
1162
+ width: typeof r == "number" ? `${r}px` : void 0
933
1163
  },
934
1164
  children: [
935
- c && /* @__PURE__ */ s(Z, { placement: "bottom-start", title: c, children: /* @__PURE__ */ s("span", { children: t }) }),
936
- !c && t
1165
+ f && /* @__PURE__ */ c(ne, { placement: "bottom-start", title: f, children: /* @__PURE__ */ c("span", { children: n }) }),
1166
+ !f && n
937
1167
  ]
938
1168
  }
939
1169
  );
940
1170
  }
941
- function ct({
1171
+ function Dt({
942
1172
  buttons: e,
943
- size: t = "small",
944
- ariaLabel: r = void 0,
945
- orientation: a = "horizontal"
1173
+ size: n = "small",
1174
+ ariaLabel: t = void 0,
1175
+ orientation: r = "horizontal"
946
1176
  }) {
947
- return /* @__PURE__ */ s(dt, { size: t, "aria-label": r, orientation: a, children: e.map((o, l) => /* @__PURE__ */ s(
948
- Ne,
1177
+ return /* @__PURE__ */ c(Wt, { size: n, "aria-label": t, orientation: r, children: e.map((a, i) => /* @__PURE__ */ c(
1178
+ Pe,
949
1179
  {
950
- onClick: o.onClick,
951
- icon: o.icon,
952
- text: o.text,
953
- size: o.size,
954
- variant: o.variant,
955
- color: o.color,
956
- tooltip: o.tooltip,
957
- ariaLabel: o.ariaLabel,
958
- disabled: o.disabled,
959
- children: o.children
1180
+ onClick: a.onClick,
1181
+ icon: a.icon,
1182
+ text: a.text,
1183
+ size: a.size,
1184
+ variant: a.variant,
1185
+ color: a.color,
1186
+ tooltip: a.tooltip,
1187
+ ariaLabel: a.ariaLabel,
1188
+ disabled: a.disabled,
1189
+ children: a.children
960
1190
  },
961
- l
1191
+ i
962
1192
  )) });
963
1193
  }
964
- function ut({
1194
+ function Ut({
965
1195
  value: e,
966
- onChange: t,
967
- size: r = "small",
968
- ariaLabel: a = void 0,
969
- exclusive: o = void 0,
970
- buttons: l,
971
- orientation: c = "horizontal"
1196
+ onChange: n,
1197
+ size: t = "small",
1198
+ ariaLabel: r = void 0,
1199
+ exclusive: a = void 0,
1200
+ buttons: i,
1201
+ orientation: f = "horizontal"
972
1202
  }) {
973
- return /* @__PURE__ */ s(
974
- it,
1203
+ return /* @__PURE__ */ c(
1204
+ Pt,
975
1205
  {
976
- size: r,
1206
+ size: t,
977
1207
  value: e,
978
- onChange: (u, n) => t(n),
979
- "aria-label": a,
980
- exclusive: o,
981
- orientation: c,
982
- children: l.map((u, n) => /* @__PURE__ */ k(
983
- Ye,
1208
+ onChange: (d, l) => n(l),
1209
+ "aria-label": r,
1210
+ exclusive: a,
1211
+ orientation: f,
1212
+ children: i.map((d, l) => /* @__PURE__ */ L(
1213
+ sn,
984
1214
  {
985
- size: typeof r == "string" ? r : "small",
986
- value: u.value,
987
- "aria-label": u.ariaLabel,
1215
+ size: typeof t == "string" ? t : "small",
1216
+ value: d.value,
1217
+ "aria-label": d.ariaLabel,
988
1218
  sx: {
989
- height: typeof r == "number" ? `${r}px` : void 0,
990
- width: typeof r == "number" ? `${r}px` : void 0,
991
- padding: u.size === "small" || typeof r == "number" ? 1 : void 0,
992
- margin: u.size === "small" || typeof r == "number" ? 0 : void 0
1219
+ height: typeof t == "number" ? `${t}px` : void 0,
1220
+ width: typeof t == "number" ? `${t}px` : void 0,
1221
+ padding: d.size === "small" || typeof t == "number" ? 1 : void 0,
1222
+ margin: d.size === "small" || typeof t == "number" ? 0 : void 0
993
1223
  },
994
- disabled: u.disabled,
1224
+ disabled: d.disabled,
995
1225
  children: [
996
- u.tooltip && /* @__PURE__ */ s(Z, { placement: "bottom-start", title: u.tooltip, children: /* @__PURE__ */ s("span", { children: u.icon }) }),
997
- !u.tooltip && u.icon
1226
+ d.tooltip && /* @__PURE__ */ c(ne, { placement: "bottom-start", title: d.tooltip, children: /* @__PURE__ */ c("span", { children: d.icon }) }),
1227
+ !d.tooltip && d.icon
998
1228
  ]
999
1229
  },
1000
- n
1230
+ l
1001
1231
  ))
1002
1232
  }
1003
1233
  );
1004
1234
  }
1005
- function yt({
1235
+ function or({
1006
1236
  items: e,
1007
- height: t = 34,
1008
- width: r = 34,
1009
- justifyContent: a = "left",
1010
- borderSize: o = 1,
1011
- padding: l = 1,
1012
- backgroundColor: c = void 0,
1013
- orientation: u = "horizontal"
1237
+ height: n = 34,
1238
+ width: t = 34,
1239
+ justifyContent: r = "left",
1240
+ borderSize: a = 1,
1241
+ padding: i = 1,
1242
+ backgroundColor: f = void 0,
1243
+ orientation: d = "horizontal"
1014
1244
  }) {
1015
- return /* @__PURE__ */ s(
1016
- qe,
1245
+ return /* @__PURE__ */ c(
1246
+ dn,
1017
1247
  {
1018
1248
  elevation: 0,
1019
1249
  sx: {
1020
1250
  display: "flex",
1021
1251
  alignItems: "center",
1022
- justifyContent: a,
1023
- border: (n) => `${o}px solid ${n.palette.divider}`,
1252
+ justifyContent: r,
1253
+ border: (l) => `${a}px solid ${l.palette.divider}`,
1024
1254
  flexWrap: "wrap",
1025
- height: u === "horizontal" ? `${t}px` : "100%",
1026
- minHeight: u === "horizontal" ? `${t}px` : void 0,
1027
- width: u === "vertical" ? `${r}px` : "100%",
1028
- minWidth: u === "vertical" ? `${r}px` : void 0,
1029
- paddingLeft: u === "horizontal" ? l : 0,
1030
- paddingRight: u === "horizontal" ? l : 0,
1031
- paddingTop: u === "vertical" ? l : 0,
1032
- paddingBottom: u === "vertical" ? l : 0,
1255
+ height: d === "horizontal" ? `${n}px` : "100%",
1256
+ minHeight: d === "horizontal" ? `${n}px` : void 0,
1257
+ width: d === "vertical" ? `${t}px` : "100%",
1258
+ minWidth: d === "vertical" ? `${t}px` : void 0,
1259
+ paddingLeft: d === "horizontal" ? i : 0,
1260
+ paddingRight: d === "horizontal" ? i : 0,
1261
+ paddingTop: d === "vertical" ? i : 0,
1262
+ paddingBottom: d === "vertical" ? i : 0,
1033
1263
  borderRadius: "0px",
1034
- backgroundColor: c
1264
+ backgroundColor: f
1035
1265
  },
1036
- children: e.map((n, d) => n.label ? (
1266
+ children: e.map((l, s) => l.label ? (
1037
1267
  // eslint-disable-next-line react/no-array-index-key
1038
- /* @__PURE__ */ s(me, { variant: n.label.variant, component: "div", children: n.label.text }, d)
1039
- ) : n.toggleButtonGroup ? /* @__PURE__ */ s(
1040
- ut,
1268
+ /* @__PURE__ */ c(Te, { variant: l.label.variant, component: "div", children: l.label.text }, s)
1269
+ ) : l.toggleButtonGroup ? /* @__PURE__ */ c(
1270
+ Ut,
1041
1271
  {
1042
- value: n.toggleButtonGroup.value,
1043
- onChange: n.toggleButtonGroup.onChange,
1044
- ariaLabel: n.toggleButtonGroup.ariaLabel,
1045
- exclusive: n.toggleButtonGroup.exclusive,
1046
- buttons: n.toggleButtonGroup.buttons,
1047
- orientation: u
1272
+ value: l.toggleButtonGroup.value,
1273
+ onChange: l.toggleButtonGroup.onChange,
1274
+ ariaLabel: l.toggleButtonGroup.ariaLabel,
1275
+ exclusive: l.toggleButtonGroup.exclusive,
1276
+ buttons: l.toggleButtonGroup.buttons,
1277
+ orientation: d
1048
1278
  },
1049
- d
1050
- ) : n.button ? /* @__PURE__ */ s(
1051
- Ne,
1279
+ s
1280
+ ) : l.button ? /* @__PURE__ */ c(
1281
+ Pe,
1052
1282
  {
1053
- onClick: n.button.onClick,
1054
- icon: n.button.icon,
1055
- text: n.button.text,
1056
- variant: n.button.variant,
1057
- color: n.button.color,
1058
- tooltip: n.button.tooltip,
1059
- ariaLabel: n.button.ariaLabel,
1060
- disabled: n.button.disabled
1283
+ onClick: l.button.onClick,
1284
+ icon: l.button.icon,
1285
+ text: l.button.text,
1286
+ variant: l.button.variant,
1287
+ color: l.button.color,
1288
+ tooltip: l.button.tooltip,
1289
+ ariaLabel: l.button.ariaLabel,
1290
+ disabled: l.button.disabled
1061
1291
  },
1062
- d
1063
- ) : n.buttonGroup ? (
1292
+ s
1293
+ ) : l.buttonGroup ? (
1064
1294
  // eslint-disable-next-line react/no-array-index-key
1065
- /* @__PURE__ */ s(
1066
- ct,
1295
+ /* @__PURE__ */ c(
1296
+ Dt,
1067
1297
  {
1068
- ariaLabel: n.buttonGroup.ariaLabel,
1069
- buttons: n.buttonGroup.buttons,
1070
- orientation: u
1298
+ ariaLabel: l.buttonGroup.ariaLabel,
1299
+ buttons: l.buttonGroup.buttons,
1300
+ orientation: d
1071
1301
  },
1072
- d
1302
+ s
1073
1303
  )
1074
- ) : n.other)
1304
+ ) : l.other)
1075
1305
  }
1076
1306
  );
1077
1307
  }
1078
- function Bt({ options: e, onSelect: t, children: r = void 0 }) {
1079
- const [a, o] = te.useState(null), l = S(
1080
- (n) => {
1081
- e.length !== 0 && (n.preventDefault(), o(
1082
- a === null ? {
1083
- mouseX: n.clientX + 2,
1084
- mouseY: n.clientY - 6
1308
+ function dr({ options: e, onSelect: n, children: t = void 0 }) {
1309
+ const [r, a] = oe.useState(null), i = F(
1310
+ (l) => {
1311
+ e.length !== 0 && (l.preventDefault(), a(
1312
+ r === null ? {
1313
+ mouseX: l.clientX + 2,
1314
+ mouseY: l.clientY - 6
1085
1315
  } : (
1086
1316
  // repeated contextmenu when it is already open closes it with Chrome 84 on Ubuntu
1087
1317
  // Other native context menus might behave different.
@@ -1090,433 +1320,440 @@ function Bt({ options: e, onSelect: t, children: r = void 0 }) {
1090
1320
  )
1091
1321
  ));
1092
1322
  },
1093
- [a, e.length]
1094
- ), c = S(() => {
1095
- o(null);
1096
- }, []), u = S(
1097
- (n) => {
1098
- t(n), c();
1323
+ [r, e.length]
1324
+ ), f = F(() => {
1325
+ a(null);
1326
+ }, []), d = F(
1327
+ (l) => {
1328
+ n(l), f();
1099
1329
  },
1100
- [c, t]
1330
+ [f, n]
1101
1331
  );
1102
- return /* @__PURE__ */ k("div", { onContextMenu: l, style: { cursor: "context-menu" }, children: [
1103
- r,
1104
- /* @__PURE__ */ s(
1105
- je,
1332
+ return /* @__PURE__ */ L("div", { onContextMenu: i, style: { cursor: "context-menu" }, children: [
1333
+ t,
1334
+ /* @__PURE__ */ c(
1335
+ un,
1106
1336
  {
1107
- open: a !== null,
1108
- onClose: c,
1337
+ open: r !== null,
1338
+ onClose: f,
1109
1339
  anchorReference: "anchorPosition",
1110
- anchorPosition: a !== null ? { top: a.mouseY, left: a.mouseX } : void 0,
1111
- children: e.map((n) => /* @__PURE__ */ k(ae, { onClick: () => u(n.value), children: [
1112
- n.icon && /* @__PURE__ */ s(Ge, { children: n.icon }),
1113
- /* @__PURE__ */ s(ue, { children: n.displayText }),
1114
- n.shortcut && /* @__PURE__ */ s(ue, { sx: { pl: 2, textAlign: "right" }, children: n.shortcut })
1115
- ] }, n.value))
1340
+ anchorPosition: r !== null ? { top: r.mouseY, left: r.mouseX } : void 0,
1341
+ children: e.map((l) => /* @__PURE__ */ L(se, { onClick: () => d(l.value), children: [
1342
+ l.icon && /* @__PURE__ */ c(cn, { children: l.icon }),
1343
+ /* @__PURE__ */ c(pe, { children: l.displayText }),
1344
+ l.shortcut && /* @__PURE__ */ c(pe, { sx: { pl: 2, textAlign: "right" }, children: l.shortcut })
1345
+ ] }, l.value))
1116
1346
  }
1117
1347
  )
1118
1348
  ] });
1119
1349
  }
1120
- function ft({
1350
+ function zt({
1121
1351
  canIdentifier: e,
1122
- canIdentifierType: t,
1123
- onCanIdentifierChange: r,
1124
- onErrorsChange: a = void 0,
1125
- hideSection: o = !1,
1126
- disabled: l = !1,
1127
- collapsible: c = !1,
1128
- collapsed: u = !1,
1129
- collapsedChange: n = void 0
1352
+ canIdentifierType: n,
1353
+ onCanIdentifierChange: t,
1354
+ onErrorsChange: r = void 0,
1355
+ hideSection: a = !1,
1356
+ disabled: i = !1,
1357
+ collapsible: f = !1,
1358
+ collapsed: d = !1,
1359
+ collapsedChange: l = void 0
1130
1360
  }) {
1131
- const d = G(), m = z(), [b, g] = D(!1);
1132
- W(() => {
1133
- a && a(b);
1134
- }, [b, a]);
1135
- const [v, C] = D(t);
1136
- W(() => {
1137
- C(t);
1138
- }, [t]);
1139
- const R = S((p) => {
1140
- C(p ? "extended" : "standard");
1141
- }, []), I = S(
1142
- (p) => {
1143
- let i = p, $ = !1;
1144
- if (i.length > 2 && i.toLowerCase().startsWith("0x") && (i = i.substring(2), $ = !0), i = i.toUpperCase(), v === "extended") {
1145
- const N = parseInt(i, $ ? 16 : m);
1146
- if (Number.isNaN(N) || N < 0 || N > 536870911)
1147
- return r(p, v), { val: p, err: !0 };
1148
- i = `${N.toString(m).toUpperCase()}`;
1149
- } else if (v === "standard") {
1150
- const N = parseInt(i, $ ? 16 : m);
1151
- if (Number.isNaN(N) || N < 0 || N > 2047)
1152
- return r(p, v), { val: p, err: !0 };
1153
- i = `${N.toString(m).toUpperCase()}`;
1361
+ const s = H(), g = re(), [x, y] = A(!1);
1362
+ k(() => {
1363
+ r && r(x);
1364
+ }, [x, r]);
1365
+ const [C, S] = A(n);
1366
+ k(() => {
1367
+ S(n);
1368
+ }, [n]);
1369
+ const I = F((m) => {
1370
+ S(m ? "extended" : "standard");
1371
+ }, []), w = F(
1372
+ (m) => {
1373
+ let h = m, v = !1;
1374
+ if (h.length > 2 && h.toLowerCase().startsWith("0x") && (h = h.substring(2), v = !0), h = h.toUpperCase(), C === "extended") {
1375
+ const o = parseInt(h, v ? 16 : g);
1376
+ if (Number.isNaN(o) || o < 0 || o > 536870911)
1377
+ return t(m, C), { val: m, err: !0 };
1378
+ h = `${o.toString(g).toUpperCase()}`;
1379
+ } else if (C === "standard") {
1380
+ const o = parseInt(h, v ? 16 : g);
1381
+ if (Number.isNaN(o) || o < 0 || o > 2047)
1382
+ return t(m, C), { val: m, err: !0 };
1383
+ h = `${o.toString(g).toUpperCase()}`;
1154
1384
  }
1155
- return r(i, v), { val: p, err: !1 };
1385
+ return t(h, C), { val: m, err: !1 };
1156
1386
  },
1157
- [v, m, r]
1158
- ), y = S(
1159
- (p) => {
1160
- if (p !== v) {
1161
- let i = !1, $ = e;
1162
- if (p === "standard") {
1163
- const N = parseInt($, m);
1164
- (Number.isNaN(N) || N < 0 || N > 2047) && (i = !0);
1165
- } else if (p === "extended") {
1166
- const N = parseInt($, m);
1167
- (Number.isNaN(N) || N < 0 || N > 536870911) && (i = !0);
1387
+ [C, g, t]
1388
+ ), T = F(
1389
+ (m) => {
1390
+ if (m !== C) {
1391
+ let h = !1, v = e;
1392
+ if (m === "standard") {
1393
+ const o = parseInt(v, g);
1394
+ (Number.isNaN(o) || o < 0 || o > 2047) && (h = !0);
1395
+ } else if (m === "extended") {
1396
+ const o = parseInt(v, g);
1397
+ (Number.isNaN(o) || o < 0 || o > 536870911) && (h = !0);
1168
1398
  }
1169
- r($, p), g(i);
1399
+ t(v, m), y(h);
1170
1400
  }
1171
1401
  },
1172
- [v, e, r, m]
1173
- ), x = P(
1174
- () => /* @__PURE__ */ k(re, { spacing: 4, children: [
1175
- /* @__PURE__ */ s(
1176
- Y,
1402
+ [C, e, t, g]
1403
+ ), N = j(
1404
+ () => /* @__PURE__ */ L(de, { spacing: 4, children: [
1405
+ /* @__PURE__ */ c(
1406
+ G,
1177
1407
  {
1178
1408
  id: "constant-id",
1179
1409
  fullWidth: !0,
1180
1410
  value: e,
1181
- onBlur: I,
1182
- error: b,
1183
- onErrorChange: g,
1184
- disabled: l
1411
+ onBlur: w,
1412
+ error: x,
1413
+ onErrorChange: y,
1414
+ disabled: i
1185
1415
  }
1186
1416
  ),
1187
- /* @__PURE__ */ s(
1188
- Ce,
1417
+ /* @__PURE__ */ c(
1418
+ Ae,
1189
1419
  {
1190
1420
  id: "id-type",
1191
- label: d.getString("LabelUseExtendedIdentifier"),
1192
- checked: v === "extended",
1193
- onChange: (p) => {
1194
- R(p), y(p ? "extended" : "standard");
1421
+ label: s.getString("LabelUseExtendedIdentifier"),
1422
+ checked: C === "extended",
1423
+ onChange: (m) => {
1424
+ I(m), T(m ? "extended" : "standard");
1195
1425
  },
1196
- disabled: l
1426
+ disabled: i
1197
1427
  }
1198
1428
  )
1199
1429
  ] }),
1200
1430
  [
1201
1431
  e,
1202
- v,
1203
- l,
1204
- b,
1205
- d,
1206
- y,
1207
- I
1432
+ C,
1433
+ i,
1434
+ x,
1435
+ s,
1436
+ T,
1437
+ w
1208
1438
  ]
1209
1439
  );
1210
- return o ? x : /* @__PURE__ */ s(
1211
- le,
1440
+ return a ? N : /* @__PURE__ */ c(
1441
+ fe,
1212
1442
  {
1213
- text: d.getString("LabelCanIdentifier"),
1443
+ text: s.getString("LabelCanIdentifier"),
1214
1444
  summary: e,
1215
- collapsible: c,
1216
- collapsed: u,
1217
- collapsedChange: n,
1218
- children: x
1445
+ collapsible: f,
1446
+ collapsed: d,
1447
+ collapsedChange: l,
1448
+ children: N
1219
1449
  }
1220
1450
  );
1221
1451
  }
1222
- function wt({
1452
+ function sr({
1223
1453
  frame: e,
1224
- onFrameChange: t,
1225
- onErrorsChange: r = void 0,
1454
+ onFrameChange: n,
1455
+ onErrorsChange: t = void 0,
1456
+ hideSection: r = !1,
1226
1457
  collapsible: a = !1,
1227
- collapsed: o = !1,
1228
- collapsedChange: l = void 0
1458
+ collapsed: i = !1,
1459
+ collapsedChange: f = void 0
1229
1460
  }) {
1230
- var m;
1231
- const c = z(), u = P(
1461
+ var x;
1462
+ const d = re(), l = j(
1232
1463
  () => {
1233
- var b, g;
1234
- return ((g = (b = e.canFrameFlags) == null ? void 0 : b.flags) == null ? void 0 : g.includes(X.CAN_FRAME_FLAG_EXT)) === !0 ? "extended" : "standard";
1464
+ var y, C;
1465
+ return ((C = (y = e.canFrameFlags) == null ? void 0 : y.flags) == null ? void 0 : C.includes(U.CAN_FRAME_FLAG_EXT)) === !0 ? "extended" : "standard";
1235
1466
  },
1236
- [(m = e.canFrameFlags) == null ? void 0 : m.flags]
1237
- ), n = P(() => `${(e.id ?? 0).toString(c).toUpperCase()}`, [u, e.id, c]), d = S(
1238
- (b, g) => {
1239
- var y;
1240
- let v = e.id ?? 0;
1241
- v = parseInt(b, c);
1242
- const C = (y = e.canFrameFlags) != null && y.flags ? { flags: [...e.canFrameFlags.flags] } : { flags: [] }, R = C.flags.indexOf(X.CAN_FRAME_FLAG_STD);
1243
- R !== -1 && C.flags.splice(R, 1);
1244
- const I = C.flags.indexOf(X.CAN_FRAME_FLAG_EXT);
1245
- if (I !== -1 && C.flags.splice(I, 1), g === "extended" ? C.flags.push(X.CAN_FRAME_FLAG_EXT) : g === "standard" && C.flags.push(X.CAN_FRAME_FLAG_STD), v !== e.id || !oe(C, e.canFrameFlags)) {
1246
- const x = { ...e };
1247
- x.id = v, x.canFrameFlags = C, t(x);
1467
+ [(x = e.canFrameFlags) == null ? void 0 : x.flags]
1468
+ ), s = j(() => `${(e.id ?? 0).toString(d).toUpperCase()}`, [l, e.id, d]), g = F(
1469
+ (y, C) => {
1470
+ var N;
1471
+ let S = e.id ?? 0;
1472
+ S = parseInt(y, d);
1473
+ const I = (N = e.canFrameFlags) != null && N.flags ? { flags: [...e.canFrameFlags.flags] } : { flags: [] }, w = I.flags.indexOf(U.CAN_FRAME_FLAG_STD);
1474
+ w !== -1 && I.flags.splice(w, 1);
1475
+ const T = I.flags.indexOf(U.CAN_FRAME_FLAG_EXT);
1476
+ if (T !== -1 && I.flags.splice(T, 1), C === "extended" ? I.flags.push(U.CAN_FRAME_FLAG_EXT) : C === "standard" && I.flags.push(U.CAN_FRAME_FLAG_STD), S !== e.id || !ue(I, e.canFrameFlags)) {
1477
+ const m = { ...e };
1478
+ m.id = S, m.canFrameFlags = I, n(m);
1248
1479
  }
1249
1480
  },
1250
- [e, c, t]
1481
+ [e, d, n]
1251
1482
  );
1252
- return /* @__PURE__ */ s(
1253
- ft,
1483
+ return /* @__PURE__ */ c(
1484
+ zt,
1254
1485
  {
1255
- canIdentifier: n,
1256
- canIdentifierType: u,
1257
- onCanIdentifierChange: d,
1258
- onErrorsChange: r,
1486
+ canIdentifier: s,
1487
+ canIdentifierType: l,
1488
+ onCanIdentifierChange: g,
1489
+ onErrorsChange: t,
1490
+ hideSection: r,
1259
1491
  collapsible: a,
1260
- collapsed: o,
1261
- collapsedChange: l
1492
+ collapsed: i,
1493
+ collapsedChange: f
1262
1494
  }
1263
1495
  );
1264
1496
  }
1265
- function ht({
1497
+ function Kt({
1266
1498
  canIdentifier: e,
1267
- identifierGeneratorType: t,
1268
- minCanIdentifier: r,
1269
- maxCanIdentifier: a,
1270
- canIdentifierType: o,
1271
- onChange: l,
1272
- onErrorsChange: c = void 0,
1273
- canIdentifierGeneratorSettingsError: u = void 0,
1274
- disabled: n = !1,
1275
- collapsible: d = !1,
1276
- collapsed: m = !1,
1277
- collapsedChange: b = void 0
1499
+ identifierGeneratorType: n,
1500
+ minCanIdentifier: t,
1501
+ maxCanIdentifier: r,
1502
+ canIdentifierType: a,
1503
+ onChange: i,
1504
+ onErrorsChange: f = void 0,
1505
+ canIdentifierGeneratorSettingsError: d = void 0,
1506
+ disabled: l = !1,
1507
+ collapsible: s = !1,
1508
+ collapsed: g = !1,
1509
+ collapsedChange: x = void 0,
1510
+ showSelectMessageDialogChange: y,
1511
+ showSignalValuesTable: C
1278
1512
  }) {
1279
- const g = G(), v = z(), [C, R] = D(!1), [I, y] = D(!1), [x, p] = D(!1), [i, $] = D(o);
1280
- W(() => {
1281
- $(o);
1282
- }, [o]);
1283
- const N = S((M) => {
1284
- $(M ? "extended" : "standard");
1285
- }, []), L = S(
1286
- (M) => {
1287
- let A = M, w = !1;
1288
- if (A.length > 2 && A.toLowerCase().startsWith("0x") && (A = A.substring(2), w = !0), A = A.toUpperCase(), i === "extended") {
1289
- const h = parseInt(A, w ? 16 : v);
1290
- if (Number.isNaN(h) || h < 0 || h > 536870911)
1291
- return l(M, t, r, a, i), { val: M, err: !0 };
1292
- A = `${h.toString(v).toUpperCase()}`;
1293
- } else if (i === "standard") {
1294
- const h = parseInt(A, w ? 16 : v);
1295
- if (Number.isNaN(h) || h < 0 || h > 2047)
1296
- return l(M, t, r, a, i), { val: M, err: !0 };
1297
- A = `${h.toString(v).toUpperCase()}`;
1513
+ const S = H(), I = re(), [w, T] = A(!1), [N, m] = A(!1), [h, v] = A(!1), [o, M] = A(a);
1514
+ k(() => {
1515
+ M(a);
1516
+ }, [a]);
1517
+ const E = F((p) => {
1518
+ M(p ? "extended" : "standard");
1519
+ }, []), P = F(
1520
+ (p) => {
1521
+ let u = p, $ = !1;
1522
+ if (u.length > 2 && u.toLowerCase().startsWith("0x") && (u = u.substring(2), $ = !0), u = u.toUpperCase(), o === "extended") {
1523
+ const b = parseInt(u, $ ? 16 : I);
1524
+ if (Number.isNaN(b) || b < 0 || b > 536870911)
1525
+ return i(p, n, t, r, o), { val: p, err: !0 };
1526
+ u = `${b.toString(I).toUpperCase()}`;
1527
+ } else if (o === "standard") {
1528
+ const b = parseInt(u, $ ? 16 : I);
1529
+ if (Number.isNaN(b) || b < 0 || b > 2047)
1530
+ return i(p, n, t, r, o), { val: p, err: !0 };
1531
+ u = `${b.toString(I).toUpperCase()}`;
1298
1532
  }
1299
- return l(A, t, r, a, i), { val: M, err: !1 };
1533
+ return i(u, n, t, r, o), { val: p, err: !1 };
1300
1534
  },
1301
- [i, t, a, r, v, l]
1302
- ), E = S(
1303
- (M, A, w) => {
1304
- let h = M, F = -1, f = !1;
1305
- if (h.length > 2 && h.toLowerCase().startsWith("0x") && (h = h.substring(2), f = !0), h = h.toUpperCase(), A === "extended") {
1306
- if (F = parseInt(h, f ? 16 : v), Number.isNaN(F) || F < 0 || F > 536870911)
1307
- return w(M), { val: M, err: !0, id: F };
1308
- h = `${F.toString(v).toUpperCase()}`;
1309
- } else if (A === "standard") {
1310
- if (F = parseInt(h, f ? 16 : v), Number.isNaN(F) || F < 0 || F > 2047)
1311
- return w(M), { val: M, err: !0, id: F };
1312
- h = `${F.toString(v).toUpperCase()}`;
1535
+ [o, n, r, t, I, i]
1536
+ ), _ = F(
1537
+ (p, u, $) => {
1538
+ let b = p, O = -1, ae = !1;
1539
+ if (b.length > 2 && b.toLowerCase().startsWith("0x") && (b = b.substring(2), ae = !0), b = b.toUpperCase(), u === "extended") {
1540
+ if (O = parseInt(b, ae ? 16 : I), Number.isNaN(O) || O < 0 || O > 536870911)
1541
+ return $(p), { val: p, err: !0, id: O };
1542
+ b = `${O.toString(I).toUpperCase()}`;
1543
+ } else if (u === "standard") {
1544
+ if (O = parseInt(b, ae ? 16 : I), Number.isNaN(O) || O < 0 || O > 2047)
1545
+ return $(p), { val: p, err: !0, id: O };
1546
+ b = `${O.toString(I).toUpperCase()}`;
1313
1547
  }
1314
- return w(h), { val: h, err: !1, id: F };
1548
+ return $(b), { val: b, err: !1, id: O };
1315
1549
  },
1316
- [v]
1317
- ), T = S(
1318
- (M) => {
1319
- const A = E(
1320
- M,
1321
- i,
1322
- (h) => l(e, t, h, a, i)
1323
- ), w = E(
1324
- a,
1325
- i,
1550
+ [I]
1551
+ ), B = F(
1552
+ (p) => {
1553
+ const u = _(
1554
+ p,
1555
+ o,
1556
+ (b) => i(e, n, b, r, o)
1557
+ ), $ = _(
1558
+ r,
1559
+ o,
1326
1560
  // eslint-disable-next-line @typescript-eslint/no-empty-function
1327
1561
  () => {
1328
1562
  }
1329
1563
  );
1330
- return !A.err && !w.err && (A.id >= w.id ? (A.err = !0, y(!0)) : y(!1)), { val: A.val, err: A.err };
1564
+ return !u.err && !$.err && (u.id >= $.id ? (u.err = !0, m(!0)) : m(!1)), { val: u.val, err: u.err };
1331
1565
  },
1332
1566
  [
1333
1567
  e,
1568
+ o,
1569
+ n,
1570
+ r,
1334
1571
  i,
1335
- t,
1336
- a,
1337
- l,
1338
- E
1572
+ _
1339
1573
  ]
1340
- ), O = S(
1341
- (M) => {
1342
- const A = E(
1343
- M,
1344
- i,
1345
- (h) => l(e, t, r, h, i)
1346
- ), w = E(
1347
- r,
1348
- i,
1574
+ ), z = F(
1575
+ (p) => {
1576
+ const u = _(
1577
+ p,
1578
+ o,
1579
+ (b) => i(e, n, t, b, o)
1580
+ ), $ = _(
1581
+ t,
1582
+ o,
1349
1583
  // eslint-disable-next-line @typescript-eslint/no-empty-function
1350
1584
  () => {
1351
1585
  }
1352
1586
  );
1353
- return !w.err && !A.err && (w.id >= A.id ? (A.err = !0, p(!0)) : p(!1)), { val: A.val, err: A.err };
1587
+ return !$.err && !u.err && ($.id >= u.id ? (u.err = !0, v(!0)) : v(!1)), { val: u.val, err: u.err };
1354
1588
  },
1355
1589
  [
1356
1590
  e,
1357
- i,
1591
+ o,
1592
+ n,
1358
1593
  t,
1359
- r,
1360
- l,
1361
- E
1594
+ i,
1595
+ _
1362
1596
  ]
1363
- ), K = S(
1364
- (M) => {
1365
- if (M !== i) {
1366
- let A = e;
1367
- const w = E(r, M, () => {
1368
- }), h = E(a, M, () => {
1597
+ ), K = F(
1598
+ (p) => {
1599
+ if (p !== o) {
1600
+ let u = e;
1601
+ const $ = _(t, p, () => {
1602
+ }), b = _(r, p, () => {
1369
1603
  });
1370
- l(A, t, w.val, h.val, M);
1604
+ i(u, n, $.val, b.val, p);
1371
1605
  }
1372
1606
  },
1373
1607
  [
1374
- i,
1608
+ o,
1375
1609
  e,
1376
- E,
1377
- r,
1378
- a,
1379
- l,
1610
+ _,
1380
1611
  t,
1381
- v
1612
+ r,
1613
+ i,
1614
+ n,
1615
+ I
1382
1616
  ]
1383
- ), q = S(
1384
- (M) => {
1385
- let A = e;
1386
- const w = E(r, i, () => {
1387
- }), h = E(a, i, () => {
1617
+ ), X = F(
1618
+ (p) => {
1619
+ let u = e;
1620
+ const $ = _(t, o, () => {
1621
+ }), b = _(r, o, () => {
1388
1622
  });
1389
- l(
1390
- A,
1391
- M,
1392
- w.val,
1393
- h.val,
1394
- i
1623
+ C(p === "constant"), i(
1624
+ u,
1625
+ p,
1626
+ $.val,
1627
+ b.val,
1628
+ o
1395
1629
  );
1396
1630
  },
1397
1631
  [
1398
- i,
1632
+ o,
1399
1633
  e,
1400
- E,
1401
- r,
1402
- a,
1403
- l,
1634
+ _,
1404
1635
  t,
1405
- v
1636
+ r,
1637
+ i,
1638
+ n,
1639
+ I
1406
1640
  ]
1407
1641
  );
1408
- return W(() => {
1409
- c && c(
1410
- t === "constant" && C || (t === "random" || t === "scan") && (I || x)
1411
- ), u && (u.current = t === "constant" && C || (t === "random" || t === "scan") && (I || x));
1642
+ k(() => {
1643
+ f && f(
1644
+ n === "constant" && w || (n === "random" || n === "scan") && (N || h)
1645
+ ), d && (d.current = n === "constant" && w || (n === "random" || n === "scan") && (N || h));
1412
1646
  }, [
1413
- C,
1414
- u,
1415
- t,
1416
- x,
1417
- I,
1418
- c
1419
- ]), /* @__PURE__ */ s(
1420
- le,
1647
+ w,
1648
+ d,
1649
+ n,
1650
+ h,
1651
+ N,
1652
+ f
1653
+ ]);
1654
+ const D = It(), R = $t(D);
1655
+ return /* @__PURE__ */ c(
1656
+ fe,
1421
1657
  {
1422
- text: g.getString("LabelCanIdentifier"),
1423
- summary: t === "constant" ? e : t === "random" ? `${g.getString("LabelRandom")} ${r}-${a}` : `${g.getString("LabelScan")} ${r}-${a}`,
1424
- collapsible: d,
1425
- collapsed: m,
1426
- collapsedChange: b,
1427
- children: /* @__PURE__ */ k(
1428
- rt,
1658
+ text: S.getString("LabelCanIdentifier"),
1659
+ summary: n === "constant" ? e : n === "random" ? `${S.getString("LabelRandom")} ${t}-${r}` : `${S.getString("LabelScan")} ${t}-${r}`,
1660
+ collapsible: s,
1661
+ collapsed: g,
1662
+ collapsedChange: x,
1663
+ children: /* @__PURE__ */ L(
1664
+ Et,
1429
1665
  {
1430
1666
  id: "identifier-radio-group",
1431
- value: t,
1432
- onChange: (M) => {
1433
- q(M);
1667
+ value: n,
1668
+ onChange: (p) => {
1669
+ X(p);
1434
1670
  },
1435
1671
  children: [
1436
- /* @__PURE__ */ k(re, { spacing: 4, children: [
1437
- /* @__PURE__ */ s(
1438
- ee,
1672
+ /* @__PURE__ */ L(de, { spacing: 4, children: [
1673
+ /* @__PURE__ */ c(
1674
+ ie,
1439
1675
  {
1440
1676
  id: "constant-id-radio",
1441
1677
  value: "constant",
1442
- label: g.getString("LabelConstantIdentifier"),
1678
+ label: S.getString("LabelConstantIdentifier"),
1443
1679
  sx: { marginLeft: "-11px !important" },
1444
- disabled: n
1680
+ disabled: l
1445
1681
  }
1446
1682
  ),
1447
- /* @__PURE__ */ s(
1448
- Y,
1683
+ /* @__PURE__ */ c(
1684
+ G,
1449
1685
  {
1450
1686
  id: "constant-id",
1451
1687
  fullWidth: !0,
1452
1688
  value: e,
1453
- error: C,
1454
- onErrorChange: R,
1455
- disabled: n || t !== "constant",
1456
- required: t === "constant",
1457
- onBlur: L
1689
+ error: w,
1690
+ onErrorChange: T,
1691
+ disabled: l || n !== "constant",
1692
+ required: n === "constant",
1693
+ onBlur: P
1458
1694
  }
1459
1695
  ),
1460
- /* @__PURE__ */ s(
1461
- Ce,
1696
+ /* @__PURE__ */ c(
1697
+ Ae,
1462
1698
  {
1463
1699
  id: "id-type",
1464
- label: g.getString("LabelUseExtendedIdentifier"),
1465
- checked: i === "extended",
1466
- onChange: (M) => {
1467
- N(M), K(M ? "extended" : "standard");
1700
+ label: S.getString("LabelUseExtendedIdentifier"),
1701
+ checked: o === "extended",
1702
+ onChange: (p) => {
1703
+ E(p), K(p ? "extended" : "standard");
1468
1704
  },
1469
- disabled: n
1705
+ disabled: l
1470
1706
  }
1471
- )
1707
+ ),
1708
+ /* @__PURE__ */ c(Ft, { columnItem: D, width: R, children: /* @__PURE__ */ c(te, { onClick: () => y(!0), variant: "outlined", size: "large", children: S.getString("ButtonSelectMessage") }) })
1472
1709
  ] }),
1473
- /* @__PURE__ */ k(re, { spacing: 4, children: [
1474
- /* @__PURE__ */ s(
1475
- ee,
1710
+ /* @__PURE__ */ L(de, { spacing: 4, children: [
1711
+ /* @__PURE__ */ c(
1712
+ ie,
1476
1713
  {
1477
1714
  id: "random-identifier-radio",
1478
1715
  value: "random",
1479
- label: g.getString("LabelRandomIdentifier"),
1716
+ label: S.getString("LabelRandomIdentifier"),
1480
1717
  sx: { marginLeft: "-11px !important" },
1481
- disabled: n
1718
+ disabled: l
1482
1719
  }
1483
1720
  ),
1484
- /* @__PURE__ */ s(
1485
- ee,
1721
+ /* @__PURE__ */ c(
1722
+ ie,
1486
1723
  {
1487
1724
  id: "scan-identifier-radio",
1488
1725
  value: "scan",
1489
- label: g.getString("LabelScanIdentifier"),
1490
- disabled: n
1726
+ label: S.getString("LabelScanIdentifier"),
1727
+ disabled: l
1491
1728
  }
1492
1729
  ),
1493
- /* @__PURE__ */ s(
1494
- Y,
1730
+ /* @__PURE__ */ c(
1731
+ G,
1495
1732
  {
1496
1733
  id: "identifier-min",
1497
- disabled: n || t !== "random" && t !== "scan",
1498
- required: t === "random" || t === "scan",
1734
+ disabled: l || n !== "random" && n !== "scan",
1735
+ required: n === "random" || n === "scan",
1499
1736
  fullWidth: !0,
1500
- value: r ?? "",
1501
- error: I,
1502
- onErrorChange: y,
1503
- startAdornment: g.getString("LabelFrom"),
1504
- onBlur: T,
1737
+ value: t ?? "",
1738
+ error: N,
1739
+ onErrorChange: m,
1740
+ startAdornment: S.getString("LabelFrom"),
1741
+ onBlur: B,
1505
1742
  sxStartAdornment: { marginBottom: 0.8 }
1506
1743
  }
1507
1744
  ),
1508
- /* @__PURE__ */ s(
1509
- Y,
1745
+ /* @__PURE__ */ c(
1746
+ G,
1510
1747
  {
1511
1748
  id: "identifier-max",
1512
- disabled: n || t !== "random" && t !== "scan",
1513
- required: t === "random" || t === "scan",
1749
+ disabled: l || n !== "random" && n !== "scan",
1750
+ required: n === "random" || n === "scan",
1514
1751
  fullWidth: !0,
1515
- value: a ?? "",
1516
- error: x,
1517
- onErrorChange: p,
1518
- startAdornment: g.getString("LabelTo"),
1519
- onBlur: O,
1752
+ value: r ?? "",
1753
+ error: h,
1754
+ onErrorChange: v,
1755
+ startAdornment: S.getString("LabelTo"),
1756
+ onBlur: z,
1520
1757
  sxStartAdornment: { marginBottom: 0.8 }
1521
1758
  }
1522
1759
  )
@@ -1527,188 +1764,195 @@ function ht({
1527
1764
  }
1528
1765
  );
1529
1766
  }
1530
- function Et({
1767
+ function ur({
1531
1768
  settings: e,
1532
- onSettingsChange: t,
1533
- onErrorsChange: r = void 0,
1534
- canIdentifierGeneratorSettingsError: a = void 0,
1535
- disabled: o = !1,
1536
- collapsible: l = !1,
1537
- collapsed: c = !1,
1538
- collapsedChange: u = void 0
1769
+ onSettingsChange: n,
1770
+ onErrorsChange: t = void 0,
1771
+ canIdentifierGeneratorSettingsError: r = void 0,
1772
+ disabled: a = !1,
1773
+ collapsible: i = !1,
1774
+ collapsed: f = !1,
1775
+ collapsedChange: d = void 0,
1776
+ showSelectMessageDialogChange: l,
1777
+ showSignalValuesTable: s
1539
1778
  }) {
1540
- var R, I, y;
1541
- const n = z(), d = P(
1779
+ var T, N, m;
1780
+ const g = re(), x = j(
1542
1781
  () => {
1543
- var x, p, i;
1544
- return ((i = (p = (x = e.frame) == null ? void 0 : x.canFrameFlags) == null ? void 0 : p.flags) == null ? void 0 : i.includes(X.CAN_FRAME_FLAG_EXT)) === !0 ? "extended" : "standard";
1782
+ var h, v, o;
1783
+ return ((o = (v = (h = e.frame) == null ? void 0 : h.canFrameFlags) == null ? void 0 : v.flags) == null ? void 0 : o.includes(U.CAN_FRAME_FLAG_EXT)) === !0 ? "extended" : "standard";
1545
1784
  },
1546
- [(I = (R = e.frame) == null ? void 0 : R.canFrameFlags) == null ? void 0 : I.flags]
1547
- ), m = P(() => {
1548
- var p;
1549
- return `${(((p = e.frame) == null ? void 0 : p.id) ?? 0).toString(n).toUpperCase()}`;
1550
- }, [n, (y = e.frame) == null ? void 0 : y.id]), b = P(() => `${(e.identifierMin ?? 0).toString(n).toUpperCase()}`, [n, e.identifierMin]), g = P(() => `${(e.identifierMax ?? 0).toString(n).toUpperCase()}`, [n, e.identifierMax]), v = P(() => e.randomIdentifier === !0 ? "random" : e.scanIdentifier === !0 ? "scan" : "constant", [e.randomIdentifier, e.scanIdentifier]), C = S(
1551
- (x, p, i, $, N) => {
1552
- var A, w, h, F;
1553
- const L = N, E = parseInt(x, n), T = (w = (A = e.frame) == null ? void 0 : A.canFrameFlags) != null && w.flags ? { flags: [...e.frame.canFrameFlags.flags] } : { flags: [] }, O = T.flags.indexOf(X.CAN_FRAME_FLAG_STD), K = parseInt(i, n), q = parseInt($, n), M = T.flags.indexOf(X.CAN_FRAME_FLAG_EXT);
1554
- if (O !== -1 && T.flags.splice(O, 1), M !== -1 && T.flags.splice(M, 1), L === "extended" ? T.flags.push(X.CAN_FRAME_FLAG_EXT) : L === "standard" && T.flags.push(X.CAN_FRAME_FLAG_STD), E !== ((h = e.frame) == null ? void 0 : h.id) || !oe(T, (F = e.frame) == null ? void 0 : F.canFrameFlags) || p !== v || K !== e.identifierMin || q !== e.identifierMax) {
1555
- const f = { ...e };
1556
- f.frame = e.frame ? { ...e.frame } : Je.fromPartial({
1785
+ [(N = (T = e.frame) == null ? void 0 : T.canFrameFlags) == null ? void 0 : N.flags]
1786
+ ), y = j(() => {
1787
+ var v;
1788
+ return `${(((v = e.frame) == null ? void 0 : v.id) ?? 0).toString(g).toUpperCase()}`;
1789
+ }, [g, (m = e.frame) == null ? void 0 : m.id]), C = j(() => `${(e.identifierMin ?? 0).toString(g).toUpperCase()}`, [g, e.identifierMin]), S = j(() => `${(e.identifierMax ?? 0).toString(g).toUpperCase()}`, [g, e.identifierMax]), I = j(() => e.randomIdentifier === !0 ? "random" : e.scanIdentifier === !0 ? "scan" : "constant", [e.randomIdentifier, e.scanIdentifier]), w = F(
1790
+ (h, v, o, M, E) => {
1791
+ var R, p, u, $;
1792
+ const P = E, _ = parseInt(h, g), B = (p = (R = e.frame) == null ? void 0 : R.canFrameFlags) != null && p.flags ? { flags: [...e.frame.canFrameFlags.flags] } : { flags: [] }, z = B.flags.indexOf(U.CAN_FRAME_FLAG_STD), K = parseInt(o, g), X = parseInt(M, g), D = B.flags.indexOf(U.CAN_FRAME_FLAG_EXT);
1793
+ if (z !== -1 && B.flags.splice(z, 1), D !== -1 && B.flags.splice(D, 1), P === "extended" ? B.flags.push(U.CAN_FRAME_FLAG_EXT) : P === "standard" && B.flags.push(U.CAN_FRAME_FLAG_STD), _ !== ((u = e.frame) == null ? void 0 : u.id) || !ue(B, ($ = e.frame) == null ? void 0 : $.canFrameFlags) || v !== I || K !== e.identifierMin || X !== e.identifierMax) {
1794
+ const b = { ...e };
1795
+ b.frame = e.frame ? { ...e.frame } : hn.fromPartial({
1557
1796
  id: 0,
1558
- canFrameFlags: { flags: [X.CAN_FRAME_FLAG_STD] },
1797
+ canFrameFlags: { flags: [U.CAN_FRAME_FLAG_STD] },
1559
1798
  data: Array.from({ length: 8 }, () => 0)
1560
- }), f.frame.id = E, f.frame.canFrameFlags = T, p === "constant" ? (f.randomIdentifier = !1, f.scanIdentifier = !1) : p === "random" ? (f.randomIdentifier = !0, f.scanIdentifier = !1) : p === "scan" && (f.randomIdentifier = !1, f.scanIdentifier = !0), f.identifierMin = K, f.identifierMax = q, t(f);
1799
+ }), b.frame.id = _, b.frame.canFrameFlags = B, v === "constant" ? (b.randomIdentifier = !1, b.scanIdentifier = !1) : v === "random" ? (b.randomIdentifier = !0, b.scanIdentifier = !1) : v === "scan" && (b.randomIdentifier = !1, b.scanIdentifier = !0), b.identifierMin = K, b.identifierMax = X, n(b);
1561
1800
  }
1562
1801
  },
1563
- [v, n, t, e]
1802
+ [I, g, n, e]
1564
1803
  );
1565
- return /* @__PURE__ */ s(
1566
- ht,
1804
+ return /* @__PURE__ */ c(
1805
+ Kt,
1567
1806
  {
1568
- canIdentifier: m,
1569
- identifierGeneratorType: v,
1570
- minCanIdentifier: b,
1571
- maxCanIdentifier: g,
1572
- canIdentifierType: d,
1573
- onChange: C,
1574
- onErrorsChange: r,
1575
- canIdentifierGeneratorSettingsError: a,
1576
- disabled: o,
1577
- collapsible: l,
1578
- collapsed: c,
1579
- collapsedChange: u
1807
+ canIdentifier: y,
1808
+ identifierGeneratorType: I,
1809
+ minCanIdentifier: C,
1810
+ maxCanIdentifier: S,
1811
+ canIdentifierType: x,
1812
+ onChange: w,
1813
+ onErrorsChange: t,
1814
+ canIdentifierGeneratorSettingsError: r,
1815
+ disabled: a,
1816
+ collapsible: i,
1817
+ collapsed: f,
1818
+ collapsedChange: d,
1819
+ showSelectMessageDialogChange: l,
1820
+ showSignalValuesTable: s
1580
1821
  }
1581
1822
  );
1582
1823
  }
1583
- function vt(e, t, r, a) {
1584
- const [o, l] = D(""), [c, u] = D([]);
1585
- return W(() => {
1586
- u((n) => {
1587
- var m;
1588
- const d = (m = r == null ? void 0 : r.sources) == null ? void 0 : m.filter((b) => {
1589
- var v, C;
1590
- const g = (C = (v = a == null ? void 0 : a.find((R) => {
1591
- var I;
1592
- return R.nodeId === ((I = b.baseNode) == null ? void 0 : I.identifier);
1593
- })) == null ? void 0 : v.errorStatus) == null ? void 0 : C.errors;
1594
- return g === void 0 || g === "" ? b.baseNode && b.channelSettings && b.channelSettings.canConfiguration && (!t || b.channelSettings.canConfiguration.silentMode !== !0) : !1;
1595
- }).map((b) => ({
1596
- value: b.channelSettings.channelNumber,
1597
- displayText: b.baseNode.name,
1598
- canFdMode: b.channelSettings.canConfiguration.canMode > 0,
1599
- identifier: b.baseNode.identifier
1824
+ function Xt(e, n, t, r) {
1825
+ const [a, i] = A(""), [f, d] = A([]);
1826
+ return k(() => {
1827
+ d((l) => {
1828
+ var g;
1829
+ const s = (g = t == null ? void 0 : t.sources) == null ? void 0 : g.filter((x) => {
1830
+ var C, S;
1831
+ const y = (S = (C = r == null ? void 0 : r.find((I) => {
1832
+ var w;
1833
+ return I.nodeId === ((w = x.baseNode) == null ? void 0 : w.identifier);
1834
+ })) == null ? void 0 : C.errorStatus) == null ? void 0 : S.errors;
1835
+ return y === void 0 || y === "" ? x.baseNode && x.channelSettings && x.channelSettings.canConfiguration && (!n || x.channelSettings.canConfiguration.silentMode !== !0) : !1;
1836
+ }).map((x) => ({
1837
+ value: x.channelSettings.channelNumber,
1838
+ displayText: x.baseNode.name,
1839
+ canFdMode: x.channelSettings.canConfiguration.canMode > 0,
1840
+ identifier: x.baseNode.identifier
1600
1841
  }));
1601
- return !d || oe(n, d) ? n : d;
1842
+ return !s || ue(l, s) ? l : s;
1602
1843
  });
1603
- }, [t, r == null ? void 0 : r.sources, a]), W(() => {
1604
- const n = c.find((d) => d.identifier === e);
1605
- l(n ? (d) => n.value === d ? d : n.value : "");
1606
- }, [e, c]), {
1607
- channelOptions: c,
1608
- selectedChannelOption: o
1844
+ }, [n, t == null ? void 0 : t.sources, r]), k(() => {
1845
+ const l = f.find((s) => s.identifier === e);
1846
+ i(l ? (s) => l.value === s ? s : l.value : "");
1847
+ }, [e, f]), {
1848
+ channelOptions: f,
1849
+ selectedChannelOption: a
1609
1850
  };
1610
1851
  }
1611
- function _t({
1852
+ function cr({
1612
1853
  channelIdentifier: e,
1613
- onChannelIdentifierChange: t,
1614
- hideSilentChannels: r = !1,
1615
- hideSectionControl: a = !1,
1616
- disabled: o = !1,
1617
- collapsible: l = !1,
1618
- collapsed: c = !1,
1619
- collapsedChange: u = void 0
1854
+ onChannelIdentifierChange: n,
1855
+ hideSilentChannels: t = !1,
1856
+ hideSectionControl: r = !1,
1857
+ disabled: a = !1,
1858
+ collapsible: i = !1,
1859
+ collapsed: f = !1,
1860
+ collapsedChange: d = void 0
1620
1861
  }) {
1621
- var C;
1622
- const n = Fe(), d = Ie(), m = G(), { channelOptions: b, selectedChannelOption: g } = vt(
1862
+ var S;
1863
+ const l = De(), s = Ue(), g = H(), { channelOptions: x, selectedChannelOption: y } = Xt(
1623
1864
  e,
1624
- r === !0,
1625
- n,
1626
- d
1627
- ), v = S(
1628
- (R) => {
1629
- const I = b.find((p) => p.value === R), y = (I == null ? void 0 : I.identifier) ?? "", x = (I == null ? void 0 : I.canFdMode) === !0;
1630
- t(y, x);
1865
+ t === !0,
1866
+ l,
1867
+ s
1868
+ ), C = F(
1869
+ (I) => {
1870
+ const w = x.find((m) => m.value === I), T = (w == null ? void 0 : w.identifier) ?? "", N = (w == null ? void 0 : w.canFdMode) === !0;
1871
+ n(T, N);
1631
1872
  },
1632
- [b, t]
1873
+ [x, n]
1633
1874
  );
1634
- return a === !0 ? /* @__PURE__ */ s(
1635
- fe,
1875
+ return r === !0 ? /* @__PURE__ */ c(
1876
+ Ie,
1636
1877
  {
1637
1878
  id: "channel",
1638
- label: m.getString("LabelChannel"),
1879
+ label: g.getString("LabelChannel"),
1639
1880
  fullWidth: !0,
1640
- value: g,
1641
- onChange: v,
1642
- options: b,
1881
+ value: y,
1882
+ onChange: C,
1883
+ options: x,
1643
1884
  required: !0,
1644
- disabled: o
1885
+ disabled: a
1645
1886
  }
1646
- ) : /* @__PURE__ */ s(
1647
- le,
1887
+ ) : /* @__PURE__ */ c(
1888
+ fe,
1648
1889
  {
1649
- text: m.getString("LabelChannel"),
1650
- summary: g === "" || (C = b.find((R) => R.value === g)) == null ? void 0 : C.displayText,
1651
- collapsible: l,
1652
- collapsed: c,
1653
- collapsedChange: u,
1654
- children: /* @__PURE__ */ s(
1655
- fe,
1890
+ text: g.getString("LabelChannel"),
1891
+ summary: y === "" || (S = x.find((I) => I.value === y)) == null ? void 0 : S.displayText,
1892
+ collapsible: i,
1893
+ collapsed: f,
1894
+ collapsedChange: d,
1895
+ children: /* @__PURE__ */ c(
1896
+ Ie,
1656
1897
  {
1657
1898
  id: "channel",
1658
- label: m.getString("LabelChannel"),
1899
+ label: g.getString("LabelChannel"),
1659
1900
  fullWidth: !0,
1660
- value: g,
1661
- onChange: v,
1662
- options: b,
1901
+ value: y,
1902
+ onChange: C,
1903
+ options: x,
1663
1904
  required: !0,
1664
- disabled: o
1905
+ disabled: a
1665
1906
  }
1666
1907
  )
1667
1908
  }
1668
1909
  );
1669
1910
  }
1670
- const kt = U(V)(() => ({
1911
+ const fr = W(Q)(() => ({
1671
1912
  height: "100%",
1672
1913
  width: "100%",
1673
1914
  padding: "4px",
1674
1915
  overflow: "auto"
1675
1916
  }));
1676
1917
  export {
1677
- _t as CanChannelSelectControl,
1678
- ft as CanIdentifierControl,
1679
- wt as CanIdentifierFrameControl,
1680
- ht as CanIdentifierGeneratorControl,
1681
- Et as CanIdentifierGeneratorSettingsControl,
1682
- Pt as CanKingDataProvider,
1683
- Ce as CheckboxControl,
1684
- Bt as ContextMenu,
1685
- Wt as DevicesContext,
1686
- Qe as DropdownButton,
1687
- Ft as DropdownButtonTextItems,
1688
- It as DropdownPanel,
1689
- kt as FillBox,
1690
- re as FormControlRow,
1691
- Mt as InlineEditor,
1692
- Ut as LocalizedStrings,
1693
- Ot as LogMessagesContext,
1694
- Kt as MeasurementSetupContext,
1695
- Xt as MeasurementStatusContext,
1696
- At as NumberRangeControl,
1697
- ne as OneLineButton,
1698
- qt as OnlineStatusContext,
1699
- ee as RadioControl,
1700
- rt as RadioGroupControl,
1701
- Yt as RunningPeriodicTransmissionsContext,
1702
- le as SectionControl,
1703
- fe as SelectControl,
1704
- $t as SizedBox,
1705
- Rt as TableControl,
1706
- Lt as TabsPanel,
1707
- nt as TextControl,
1708
- yt as ToolbarControl,
1709
- jt as UserSettingsContext,
1710
- Y as ValidateableTextControl,
1711
- Gt as WorkspacePanesContext,
1712
- Ht as addEventListener,
1713
- Jt as removeEventListener
1918
+ cr as CanChannelSelectControl,
1919
+ zt as CanIdentifierControl,
1920
+ sr as CanIdentifierFrameControl,
1921
+ Kt as CanIdentifierGeneratorControl,
1922
+ ur as CanIdentifierGeneratorSettingsControl,
1923
+ br as CanKingDataProvider,
1924
+ Ae as CheckboxControl,
1925
+ Ft as ColumnItemControl,
1926
+ dr as ContextMenu,
1927
+ mr as DevicesContext,
1928
+ wt as DropdownButton,
1929
+ er as DropdownButtonTextItems,
1930
+ nr as DropdownPanel,
1931
+ fr as FillBox,
1932
+ de as FormControlRow,
1933
+ tr as InlineEditor,
1934
+ pr as LocalizedStrings,
1935
+ vr as LogMessagesContext,
1936
+ xr as MeasurementSetupContext,
1937
+ Cr as MeasurementStatusContext,
1938
+ rr as NumberRangeControl,
1939
+ te as OneLineButton,
1940
+ Sr as OnlineStatusContext,
1941
+ ie as RadioControl,
1942
+ Et as RadioGroupControl,
1943
+ Nr as RunningPeriodicTransmissionsContext,
1944
+ fe as SectionControl,
1945
+ Ie as SelectControl,
1946
+ ar as SizedBox,
1947
+ lr as TableControl,
1948
+ ir as TabsPanel,
1949
+ Lt as TextControl,
1950
+ or as ToolbarControl,
1951
+ yr as UserSettingsContext,
1952
+ G as ValidateableTextControl,
1953
+ Ir as WorkspacePanesContext,
1954
+ $r as addEventListener,
1955
+ Fr as removeEventListener,
1956
+ It as useColumnItem,
1957
+ $t as useColumnItems
1714
1958
  };