@esrf/daiquiri-lib 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { jsxs as l, jsx as r, Fragment as v } from "react/jsx-runtime";
1
+ import { jsxs as s, jsx as r, Fragment as v } from "react/jsx-runtime";
2
2
  import { map as C, each as be } from "lodash";
3
3
  import { Badge as F, ButtonGroup as oe, Button as y, OverlayTrigger as R, Popover as b, Container as $, Row as P, Col as E, Form as N, InputGroup as A, Alert as x, Tab as Ne, Tabs as te, Tooltip as Ce } from "react-bootstrap";
4
4
  import { forwardRef as Oe, useRef as T, useState as I, useEffect as j, Component as se, Fragment as q, Children as Se, isValidElement as Ee, cloneElement as xe, Suspense as ne, useMemo as Me, createElement as Ae } from "react";
@@ -20,7 +20,7 @@ function Ie(e) {
20
20
  }
21
21
  function D(e) {
22
22
  const { name: t, icon: n } = e;
23
- return /* @__PURE__ */ l("div", { className: "icon", title: t, children: [
23
+ return /* @__PURE__ */ s("div", { className: "icon", title: t, children: [
24
24
  /* @__PURE__ */ r("i", { className: `fa ${n}` }),
25
25
  /* @__PURE__ */ r(Ie, { ...e })
26
26
  ] });
@@ -93,26 +93,26 @@ function Te(e) {
93
93
  function o(d) {
94
94
  if (!(d in t.properties))
95
95
  return "UNKNOWN";
96
- const s = t.properties[d];
97
- return !s || typeof s != "string" ? "UNKNOWN" : s;
96
+ const l = t.properties[d];
97
+ return !l || typeof l != "string" ? "UNKNOWN" : l;
98
98
  }
99
99
  return /* @__PURE__ */ r(
100
100
  R,
101
101
  {
102
102
  trigger: "click",
103
103
  rootClose: !0,
104
- overlay: /* @__PURE__ */ l(b, { id: "popid", children: [
105
- /* @__PURE__ */ l(b.Header, { children: [
104
+ overlay: /* @__PURE__ */ s(b, { id: "popid", children: [
105
+ /* @__PURE__ */ s(b.Header, { children: [
106
106
  t.name,
107
107
  " Details"
108
108
  ] }),
109
- /* @__PURE__ */ l(b.Body, { children: [
109
+ /* @__PURE__ */ s(b.Body, { children: [
110
110
  /* @__PURE__ */ r("h6", { children: "Status" }),
111
111
  /* @__PURE__ */ r("pre", { children: t.properties.status }),
112
112
  /* @__PURE__ */ r("h6", { children: "Interlocks" }),
113
- /* @__PURE__ */ r($, { children: C(i, (d, s) => /* @__PURE__ */ l(P, { children: [
114
- /* @__PURE__ */ l(E, { children: [
115
- s,
113
+ /* @__PURE__ */ r($, { children: C(i, (d, l) => /* @__PURE__ */ s(P, { children: [
114
+ /* @__PURE__ */ s(E, { children: [
115
+ l,
116
116
  ":"
117
117
  ] }),
118
118
  /* @__PURE__ */ r(E, { children: /* @__PURE__ */ r(
@@ -122,15 +122,15 @@ function Te(e) {
122
122
  children: o(d)
123
123
  }
124
124
  ) })
125
- ] }, s)) }),
125
+ ] }, l)) }),
126
126
  /* @__PURE__ */ r("h6", { children: "Ring Status" }),
127
- /* @__PURE__ */ r($, { children: C(a, (d, s) => /* @__PURE__ */ l(P, { children: [
128
- /* @__PURE__ */ l(E, { children: [
129
- s,
127
+ /* @__PURE__ */ r($, { children: C(a, (d, l) => /* @__PURE__ */ s(P, { children: [
128
+ /* @__PURE__ */ s(E, { children: [
129
+ l,
130
130
  ":"
131
131
  ] }),
132
132
  /* @__PURE__ */ r(E, { children: d })
133
- ] }, s)) }),
133
+ ] }, l)) }),
134
134
  /* @__PURE__ */ r("div", { className: "d-grid gap-2", children: /* @__PURE__ */ r(y, { disabled: e.disabled, onClick: n, children: "Reset" }) })
135
135
  ] })
136
136
  ] }),
@@ -145,8 +145,8 @@ function Pt(e) {
145
145
  function: t.properties.frontend === "FE open" ? "close" : "open"
146
146
  });
147
147
  }
148
- return /* @__PURE__ */ l("div", { className: "hw-component", children: [
149
- /* @__PURE__ */ l("div", { className: "hw-head", children: [
148
+ return /* @__PURE__ */ s("div", { className: "hw-component", children: [
149
+ /* @__PURE__ */ s("div", { className: "hw-head", children: [
150
150
  /* @__PURE__ */ r(
151
151
  D,
152
152
  {
@@ -164,7 +164,7 @@ function Pt(e) {
164
164
  }
165
165
  )
166
166
  ] }),
167
- /* @__PURE__ */ r("div", { className: "hw-content", children: /* @__PURE__ */ l(oe, { className: "d-flex", children: [
167
+ /* @__PURE__ */ r("div", { className: "hw-content", children: /* @__PURE__ */ s(oe, { className: "d-flex", children: [
168
168
  /* @__PURE__ */ r(
169
169
  y,
170
170
  {
@@ -202,7 +202,7 @@ function Y(e) {
202
202
  const a = i();
203
203
  switch (t) {
204
204
  case "front":
205
- return /* @__PURE__ */ r("div", { className: "hw-component", children: /* @__PURE__ */ l("div", { className: "hw-single", children: [
205
+ return /* @__PURE__ */ r("div", { className: "hw-component", children: /* @__PURE__ */ s("div", { className: "hw-single", children: [
206
206
  e.widgetIcon,
207
207
  /* @__PURE__ */ r("div", { className: "name", children: a }),
208
208
  /* @__PURE__ */ r("div", { className: "d-inline-block", children: e.widgetContent })
@@ -212,8 +212,8 @@ function Y(e) {
212
212
  case "state":
213
213
  return e.widgetState;
214
214
  default:
215
- return /* @__PURE__ */ l("div", { className: "hw-component", children: [
216
- /* @__PURE__ */ l("div", { className: "hw-head", children: [
215
+ return /* @__PURE__ */ s("div", { className: "hw-component", children: [
216
+ /* @__PURE__ */ s("div", { className: "hw-head", children: [
217
217
  e.widgetIcon,
218
218
  /* @__PURE__ */ r("div", { className: "name", children: /* @__PURE__ */ r(N.Label, { htmlFor: n.id, children: a }) }),
219
219
  e.widgetState,
@@ -223,14 +223,14 @@ function Y(e) {
223
223
  trigger: "click",
224
224
  placement: "bottom",
225
225
  rootClose: !0,
226
- overlay: /* @__PURE__ */ l(b, { id: e.hardware.id, style: { maxWidth: 500 }, children: [
226
+ overlay: /* @__PURE__ */ s(b, { id: e.hardware.id, style: { maxWidth: 500 }, children: [
227
227
  /* @__PURE__ */ r(b.Header, { children: "Device Errors" }),
228
- /* @__PURE__ */ l(b.Body, { children: [
228
+ /* @__PURE__ */ s(b.Body, { children: [
229
229
  "There were errors with properties on this device:",
230
- /* @__PURE__ */ r("ul", { children: e.hardware.errors.map((o) => /* @__PURE__ */ l("li", { children: [
230
+ /* @__PURE__ */ r("ul", { children: e.hardware.errors.map((o) => /* @__PURE__ */ s("li", { children: [
231
231
  o.property,
232
232
  ":",
233
- /* @__PURE__ */ l("span", { className: "stack-trace", children: [
233
+ /* @__PURE__ */ s("span", { className: "stack-trace", children: [
234
234
  o.traceback,
235
235
  /* @__PURE__ */ r("br", {}),
236
236
  o.exception
@@ -319,7 +319,7 @@ const Lt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
319
319
  });
320
320
  }, {
321
321
  onStep: d,
322
- step: s,
322
+ step: l,
323
323
  overlay: h,
324
324
  incIcon: u,
325
325
  decIcon: c,
@@ -350,7 +350,7 @@ const Lt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
350
350
  "numeric-step-large": K,
351
351
  "numeric-step-horizontal": k
352
352
  }),
353
- children: /* @__PURE__ */ l(A, { children: [
353
+ children: /* @__PURE__ */ s(A, { children: [
354
354
  /* @__PURE__ */ r(
355
355
  N.Control,
356
356
  {
@@ -361,9 +361,9 @@ const Lt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
361
361
  ...S
362
362
  }
363
363
  ),
364
- /* @__PURE__ */ l(v, { children: [
364
+ /* @__PURE__ */ s(v, { children: [
365
365
  h,
366
- !h && /* @__PURE__ */ l(A.Text, { className: "d-flex flex-column", children: [
366
+ !h && /* @__PURE__ */ s(A.Text, { className: "d-flex flex-column", children: [
367
367
  /* @__PURE__ */ r(
368
368
  N.Control,
369
369
  {
@@ -376,7 +376,7 @@ const Lt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
376
376
  }
377
377
  ),
378
378
  e.unit && /* @__PURE__ */ r("div", { children: e.unit }),
379
- !u && !c && /* @__PURE__ */ l(v, { children: [
379
+ !u && !c && /* @__PURE__ */ s(v, { children: [
380
380
  /* @__PURE__ */ r(
381
381
  y,
382
382
  {
@@ -412,7 +412,7 @@ function Pe(e) {
412
412
  let m = f;
413
413
  e.precision !== void 0 && (m = Number.parseFloat(m).toFixed(e.precision)), t != null && t.current && (t.current.value = m);
414
414
  }
415
- function s() {
415
+ function l() {
416
416
  n && setTimeout(() => {
417
417
  d(e.hardwareValue), i(!1);
418
418
  }, 3e3);
@@ -456,7 +456,7 @@ function Pe(e) {
456
456
  ref: t,
457
457
  precision: e.precision,
458
458
  onChange: h,
459
- onBlur: s,
459
+ onBlur: l,
460
460
  onStep: u,
461
461
  onKeyDown: c,
462
462
  disabled: e.hardwareIsDisabled || e.readOnly || !e.hardwareIsReady,
@@ -480,7 +480,7 @@ function re(e) {
480
480
  var c;
481
481
  t.current && (t.current.value = d((c = e.hardwareValue) == null ? void 0 : c.toString()), i(!1));
482
482
  }, [e.hardwareValue, e.precision]);
483
- function s(c) {
483
+ function l(c) {
484
484
  const f = d(c);
485
485
  t != null && t.current && (t.current.value = f);
486
486
  }
@@ -491,14 +491,14 @@ function re(e) {
491
491
  const f = Number.parseFloat(c.target.value), m = e.onMoveRequested(f);
492
492
  m && m.catch(() => {
493
493
  o(!0), setTimeout(() => {
494
- s(e.hardwareValue), o(!1);
494
+ l(e.hardwareValue), o(!1);
495
495
  }, 2e3);
496
496
  }), c.preventDefault(), c.stopPropagation();
497
497
  break;
498
498
  }
499
499
  case "Esc":
500
500
  case "Escape":
501
- n && (o(!1), i(!1), s(e.hardwareValue)), c.target.blur(), c.preventDefault(), c.stopPropagation();
501
+ n && (o(!1), i(!1), l(e.hardwareValue)), c.target.blur(), c.preventDefault(), c.stopPropagation();
502
502
  break;
503
503
  }
504
504
  }
@@ -541,13 +541,13 @@ function Ve(e) {
541
541
  {
542
542
  trigger: "click",
543
543
  rootClose: !0,
544
- overlay: /* @__PURE__ */ l(b, { id: "popid", children: [
545
- /* @__PURE__ */ l(b.Header, { children: [
544
+ overlay: /* @__PURE__ */ s(b, { id: "popid", children: [
545
+ /* @__PURE__ */ s(b.Header, { children: [
546
546
  e.hardware.name,
547
547
  " details"
548
548
  ] }),
549
- /* @__PURE__ */ l(b.Body, { children: [
550
- /* @__PURE__ */ l(N.Group, { children: [
549
+ /* @__PURE__ */ s(b.Body, { children: [
550
+ /* @__PURE__ */ s(N.Group, { children: [
551
551
  /* @__PURE__ */ r(N.Label, { children: "Velocity" }),
552
552
  /* @__PURE__ */ r(
553
553
  re,
@@ -561,7 +561,7 @@ function Ve(e) {
561
561
  }
562
562
  )
563
563
  ] }),
564
- /* @__PURE__ */ l(N.Group, { children: [
564
+ /* @__PURE__ */ s(N.Group, { children: [
565
565
  /* @__PURE__ */ r(N.Label, { children: "Acceleration" }),
566
566
  /* @__PURE__ */ r(
567
567
  re,
@@ -597,14 +597,14 @@ function jt(e) {
597
597
  }
598
598
  let o = "UNKNOWN";
599
599
  e.hardware.properties.state && ([o] = e.hardware.properties.state);
600
- const d = /* @__PURE__ */ r(D, { name: "Motor", icon: "fam-hardware-motor", online: t.online }), s = /* @__PURE__ */ r(ce, { hardware: t }), h = e.options ? e.options.header : "top";
600
+ const d = /* @__PURE__ */ r(D, { name: "Motor", icon: "fam-hardware-motor", online: t.online }), l = /* @__PURE__ */ r(ce, { hardware: t }), h = e.options ? e.options.header : "top";
601
601
  return /* @__PURE__ */ r(
602
602
  Y,
603
603
  {
604
604
  hardware: t,
605
605
  widgetIcon: d,
606
- widgetState: s,
607
- widgetContent: /* @__PURE__ */ l(A, { children: [
606
+ widgetState: l,
607
+ widgetContent: /* @__PURE__ */ s(A, { children: [
608
608
  /* @__PURE__ */ r(
609
609
  Pe,
610
610
  {
@@ -650,8 +650,8 @@ function Yt(e) {
650
650
  }
651
651
  i.current.value = t.properties.position;
652
652
  }, [t.properties.position]);
653
- function a(s) {
654
- if (console.debug("change", s), !i || !i.current) {
653
+ function a(l) {
654
+ if (console.debug("change", l), !i || !i.current) {
655
655
  console.error("selection ref is unset");
656
656
  return;
657
657
  }
@@ -660,14 +660,14 @@ function Yt(e) {
660
660
  function: "move"
661
661
  });
662
662
  }
663
- function o(s) {
663
+ function o(l) {
664
664
  t.requestChange({
665
665
  function: "stop"
666
666
  });
667
667
  }
668
- const d = C(t.properties.positions, (s) => /* @__PURE__ */ r("option", { title: s.description, children: s.position }, s.position));
669
- return /* @__PURE__ */ l("div", { className: "hw-component", children: [
670
- /* @__PURE__ */ l("div", { className: "hw-head", children: [
668
+ const d = C(t.properties.positions, (l) => /* @__PURE__ */ r("option", { title: l.description, children: l.position }, l.position));
669
+ return /* @__PURE__ */ s("div", { className: "hw-component", children: [
670
+ /* @__PURE__ */ s("div", { className: "hw-head", children: [
671
671
  /* @__PURE__ */ r(
672
672
  D,
673
673
  {
@@ -685,8 +685,8 @@ function Yt(e) {
685
685
  }
686
686
  )
687
687
  ] }),
688
- /* @__PURE__ */ r("div", { className: "hw-content", children: /* @__PURE__ */ l(A, { children: [
689
- /* @__PURE__ */ l(
688
+ /* @__PURE__ */ r("div", { className: "hw-content", children: /* @__PURE__ */ s(A, { children: [
689
+ /* @__PURE__ */ s(
690
690
  N.Control,
691
691
  {
692
692
  className: "custom-select",
@@ -762,9 +762,9 @@ function Kt(e) {
762
762
  return null;
763
763
  return `${f}`;
764
764
  }
765
- const s = d(), h = /* @__PURE__ */ l(A, { children: [
765
+ const l = d(), h = /* @__PURE__ */ s(A, { children: [
766
766
  /* @__PURE__ */ r(N.Control, { value: o(), readOnly: !0 }),
767
- s && /* @__PURE__ */ r(A.Text, { children: s })
767
+ l && /* @__PURE__ */ r(A.Text, { children: l })
768
768
  ] }), u = e.options.header || "top";
769
769
  return /* @__PURE__ */ r(
770
770
  Y,
@@ -788,12 +788,12 @@ function Ye(e) {
788
788
  {
789
789
  trigger: "click",
790
790
  rootClose: !0,
791
- overlay: /* @__PURE__ */ l(b, { id: "popid", children: [
792
- /* @__PURE__ */ l(b.Header, { children: [
791
+ overlay: /* @__PURE__ */ s(b, { id: "popid", children: [
792
+ /* @__PURE__ */ s(b.Header, { children: [
793
793
  t.name,
794
794
  " Details"
795
795
  ] }),
796
- /* @__PURE__ */ l(b.Body, { children: [
796
+ /* @__PURE__ */ s(b.Body, { children: [
797
797
  /* @__PURE__ */ r("h6", { children: "Status" }),
798
798
  /* @__PURE__ */ r("pre", { children: t.properties.status }),
799
799
  /* @__PURE__ */ r("div", { className: "d-grid gap-2", children: /* @__PURE__ */ r(y, { onClick: n, disabled: e.disabled, children: "Reset" }) })
@@ -818,7 +818,7 @@ function zt(e) {
818
818
  function d(S) {
819
819
  return S === "OPEN" ? ["Close", "close"] : S === "CLOSED" ? ["Open", "open"] : S === "DISABLED" || S === "STANDBY" || S === "FAULT" ? ["Closed", ""] : S === "MOVING" ? ["...", ""] : ["Unknown", ""];
820
820
  }
821
- const s = o(), [h, u] = d(s), f = {
821
+ const l = o(), [h, u] = d(l), f = {
822
822
  OPEN: "danger",
823
823
  CLOSED: "success",
824
824
  MOVING: "warning",
@@ -826,13 +826,13 @@ function zt(e) {
826
826
  STANDBY: "danger",
827
827
  FAULT: "fatal",
828
828
  UNKNOWN: "warning"
829
- }[s] || "danger";
829
+ }[l] || "danger";
830
830
  function m() {
831
831
  t.requestChange({
832
832
  function: u
833
833
  });
834
834
  }
835
- const k = /* @__PURE__ */ l(oe, { className: "d-flex flex-nowrap", children: [
835
+ const k = /* @__PURE__ */ s(oe, { className: "d-flex flex-nowrap", children: [
836
836
  /* @__PURE__ */ r(
837
837
  y,
838
838
  {
@@ -990,17 +990,22 @@ function he(e, t = null, n = null) {
990
990
  return Object.freeze(i), i;
991
991
  }
992
992
  function fe(e) {
993
- return /* @__PURE__ */ r(x, { variant: "danger", children: e.message });
993
+ var t;
994
+ return /* @__PURE__ */ s(x, { variant: "danger", children: [
995
+ e.message,
996
+ /* @__PURE__ */ r("br", {}),
997
+ /* @__PURE__ */ r("pre", { children: (t = e.error) == null ? void 0 : t.stack })
998
+ ] });
994
999
  }
995
1000
  function Ze(e) {
996
1001
  const { error: t } = e;
997
1002
  if (!(t instanceof M))
998
1003
  return /* @__PURE__ */ r(v, {});
999
1004
  function n(o, d = 3) {
1000
- const s = Be(o.yamlNode), h = [];
1005
+ const l = Be(o.yamlNode), h = [];
1001
1006
  let u = "";
1002
- for (let c = 1; c < s.length; c++) {
1003
- const { node: f, indexFromParent: m } = s[c];
1007
+ for (let c = 1; c < l.length; c++) {
1008
+ const { node: f, indexFromParent: m } = l[c];
1004
1009
  h.push(`${u}children:`), u += " ".repeat(d), m === 1 ? h.push(`${u}- type: ...`) : (m ?? 0 > 1) && h.push(
1005
1010
  `${u}...`,
1006
1011
  `${u}...`,
@@ -1029,12 +1034,12 @@ function Ze(e) {
1029
1034
  const a = We(t.yamlNode).name;
1030
1035
  if (t instanceof V) {
1031
1036
  const o = t.keys.length === 1 ? "key" : "keys";
1032
- return /* @__PURE__ */ l(x, { variant: "danger", children: [
1037
+ return /* @__PURE__ */ s(x, { variant: "danger", children: [
1033
1038
  "Unexpected ",
1034
1039
  o,
1035
1040
  " ",
1036
- t.keys.map((d, s) => /* @__PURE__ */ l(v, { children: [
1037
- s !== 0 && ", ",
1041
+ t.keys.map((d, l) => /* @__PURE__ */ s(v, { children: [
1042
+ l !== 0 && ", ",
1038
1043
  /* @__PURE__ */ r("b", { children: d })
1039
1044
  ] })),
1040
1045
  " ",
@@ -1048,12 +1053,12 @@ function Ze(e) {
1048
1053
  }
1049
1054
  if (t instanceof L) {
1050
1055
  const o = t.keys.length === 1 ? "Key" : "Keys";
1051
- return /* @__PURE__ */ l(x, { variant: "danger", children: [
1056
+ return /* @__PURE__ */ s(x, { variant: "danger", children: [
1052
1057
  "Expected ",
1053
1058
  o,
1054
1059
  " ",
1055
- t.keys.map((d, s) => /* @__PURE__ */ l(v, { children: [
1056
- s !== 0 && ", ",
1060
+ t.keys.map((d, l) => /* @__PURE__ */ s(v, { children: [
1061
+ l !== 0 && ", ",
1057
1062
  /* @__PURE__ */ r("b", { children: d })
1058
1063
  ] })),
1059
1064
  " ",
@@ -1065,7 +1070,7 @@ function Ze(e) {
1065
1070
  /* @__PURE__ */ r("br", {})
1066
1071
  ] });
1067
1072
  }
1068
- return t instanceof g ? /* @__PURE__ */ l(x, { variant: "danger", children: [
1073
+ return t instanceof g ? /* @__PURE__ */ s(x, { variant: "danger", children: [
1069
1074
  "Error on key ",
1070
1075
  /* @__PURE__ */ r("b", { children: t.key }),
1071
1076
  " from the layout name ",
@@ -1091,16 +1096,21 @@ class Je extends se {
1091
1096
  return { hasError: !0 };
1092
1097
  }
1093
1098
  componentDidCatch(t) {
1094
- t instanceof M ? this.setState({
1095
- hasError: !0,
1096
- message: t.message,
1097
- error: t
1098
- }) : this.props.unhandledComponentDidCatch && this.props.unhandledComponentDidCatch(t, (n) => {
1099
+ var n, i;
1100
+ if (t instanceof M || !this.props.unhandledComponentDidCatch) {
1101
+ this.setState({
1102
+ hasError: !0,
1103
+ message: t.message,
1104
+ error: t
1105
+ });
1106
+ return;
1107
+ }
1108
+ (i = (n = this.props).unhandledComponentDidCatch) == null || i.call(n, t, (a) => {
1099
1109
  this.setState({
1100
1110
  hasError: !0,
1101
1111
  message: t.message,
1102
1112
  error: t,
1103
- ...n
1113
+ ...a
1104
1114
  });
1105
1115
  });
1106
1116
  }
@@ -1111,7 +1121,7 @@ class Je extends se {
1111
1121
  render() {
1112
1122
  if (this.state.hasError) {
1113
1123
  const { UnhandledErrorComponent: t } = this.props, { hasError: n, ...i } = this.state;
1114
- return /* @__PURE__ */ l($, { className: "mt-2", children: [
1124
+ return /* @__PURE__ */ s($, { className: "mt-2", children: [
1115
1125
  /* @__PURE__ */ r("h4", { children: "Something went wrong" }),
1116
1126
  this.state.error instanceof M && /* @__PURE__ */ r(
1117
1127
  Ze,
@@ -1127,10 +1137,10 @@ class Je extends se {
1127
1137
  error: this.state.error
1128
1138
  }
1129
1139
  ) }),
1130
- /* @__PURE__ */ l("p", { children: [
1140
+ /* @__PURE__ */ s("p", { children: [
1131
1141
  "This error has been logged. Please",
1132
1142
  " ",
1133
- /* @__PURE__ */ l(y, { size: "sm", onClick: this.reload, children: [
1143
+ /* @__PURE__ */ s(y, { size: "sm", onClick: this.reload, children: [
1134
1144
  /* @__PURE__ */ r("i", { className: "fa fa-refresh" }),
1135
1145
  " Reload"
1136
1146
  ] }),
@@ -1260,7 +1270,7 @@ const Bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1260
1270
  }, Symbol.toStringTag, { value: "Module" }));
1261
1271
  function lt({ yamlNode: e, panel: t }) {
1262
1272
  const { type: n, style: i, children: a, ...o } = e;
1263
- return U(e, o), /* @__PURE__ */ r(P, { className: "ymllayout-row gx-0", style: i, children: C(a, (d, s) => O(d, s, t)) });
1273
+ return U(e, o), /* @__PURE__ */ r(P, { className: "ymllayout-row gx-0", style: i, children: C(a, (d, l) => O(d, l, t)) });
1264
1274
  }
1265
1275
  function ct({ yamlNode: e, panel: t }) {
1266
1276
  const { type: n, style: i, xs: a, children: o, ...d } = e;
@@ -1270,7 +1280,7 @@ function ct({ yamlNode: e, panel: t }) {
1270
1280
  className: H("yamymllayout-col", { col: !!a }),
1271
1281
  style: i,
1272
1282
  xs: a,
1273
- children: C(e.children, (s, h) => O(s, h, t))
1283
+ children: C(e.children, (l, h) => O(l, h, t))
1274
1284
  }
1275
1285
  );
1276
1286
  }
@@ -1309,9 +1319,9 @@ function ht(e) {
1309
1319
  groupid: a,
1310
1320
  even: o,
1311
1321
  nowrap: d,
1312
- ...s
1322
+ ...l
1313
1323
  } = e;
1314
- if (ut(n, "ids", i), me(n, "groupid", a), G(n, "even", o), G(n, "nowrap", d), U(n, s), !W.HardwareGroup)
1324
+ if (ut(n, "ids", i), me(n, "groupid", a), G(n, "even", o), G(n, "nowrap", d), U(n, l), !W.HardwareGroup)
1315
1325
  return /* @__PURE__ */ r(x, { variant: "warning", children: "No `HardwareGroup` component registered" });
1316
1326
  const h = W.HardwareGroup;
1317
1327
  return /* @__PURE__ */ r(
@@ -1337,18 +1347,18 @@ function Jt(e) {
1337
1347
  );
1338
1348
  }
1339
1349
  function mt(e) {
1340
- const { yamlNode: t, panel: n } = e, { type: i, style: a, scroll: o, title: d, ...s } = t;
1350
+ const { yamlNode: t, panel: n } = e, { type: i, style: a, scroll: o, title: d, ...l } = t;
1341
1351
  if (!(i in B))
1342
- return /* @__PURE__ */ r(p, { children: /* @__PURE__ */ r(p.Contents, { children: /* @__PURE__ */ l(x, { variant: "warning", children: [
1352
+ return /* @__PURE__ */ r(p, { children: /* @__PURE__ */ r(p.Contents, { children: /* @__PURE__ */ s(x, { variant: "warning", children: [
1343
1353
  'Unknown component "',
1344
1354
  i,
1345
1355
  '"'
1346
1356
  ] }) }) });
1347
1357
  const h = B[t.type];
1348
- return n ? /* @__PURE__ */ r(p, { style: a, scroll: o, children: /* @__PURE__ */ l(ne, { fallback: /* @__PURE__ */ r("p", { children: "Loading..." }), children: [
1358
+ return n ? /* @__PURE__ */ r(p, { style: a, scroll: o, children: /* @__PURE__ */ s(ne, { fallback: /* @__PURE__ */ r("p", { children: "Loading..." }), children: [
1349
1359
  d && /* @__PURE__ */ r(p.Header, { children: d }),
1350
- /* @__PURE__ */ r(p.Contents, { children: /* @__PURE__ */ r(h, { ...s, yamlNode: t }) })
1351
- ] }) }) : /* @__PURE__ */ r(ne, { fallback: /* @__PURE__ */ r("p", { children: "Loading..." }), children: /* @__PURE__ */ r(h, { ...s, yamlNode: t }) });
1360
+ /* @__PURE__ */ r(p.Contents, { children: /* @__PURE__ */ r(h, { ...l, yamlNode: t }) })
1361
+ ] }) }) : /* @__PURE__ */ r(ne, { fallback: /* @__PURE__ */ r("p", { children: "Loading..." }), children: /* @__PURE__ */ r(h, { ...l, yamlNode: t }) });
1352
1362
  }
1353
1363
  function pt({ yamlNode: e, panel: t }) {
1354
1364
  const n = e.options || {};
@@ -1356,7 +1366,7 @@ function pt({ yamlNode: e, panel: t }) {
1356
1366
  }
1357
1367
  function gt(e) {
1358
1368
  const { yamlNode: t } = e, n = t.options || {}, i = {};
1359
- return n.centerContent && (i.margin = "auto"), /* @__PURE__ */ l(p, { className: "ymllayout-panel", ...n, children: [
1369
+ return n.centerContent && (i.margin = "auto"), /* @__PURE__ */ s(p, { className: "ymllayout-panel", ...n, children: [
1360
1370
  t.title && /* @__PURE__ */ r(p.Header, { children: t.title }),
1361
1371
  /* @__PURE__ */ r(p.Contents, { style: i, children: C(
1362
1372
  t.children,
@@ -1371,7 +1381,7 @@ function yt({ yamlNode: e, panel: t }) {
1371
1381
  n.push(
1372
1382
  /* @__PURE__ */ r(Ne, { eventKey: wt(), title: i.title, children: O(i, 0, !1) }, a)
1373
1383
  );
1374
- }), t ? /* @__PURE__ */ l(p, { className: "ymllayout-tabs", children: [
1384
+ }), t ? /* @__PURE__ */ s(p, { className: "ymllayout-tabs", children: [
1375
1385
  e.title && /* @__PURE__ */ r(p.Header, { children: e.title }),
1376
1386
  /* @__PURE__ */ r(p.Contents, { children: /* @__PURE__ */ r(te, { mountOnEnter: !0, children: n }) })
1377
1387
  ] }) : /* @__PURE__ */ r(te, { children: n });
@@ -1402,8 +1412,8 @@ function bt(e) {
1402
1412
  }
1403
1413
  return "";
1404
1414
  }
1405
- const s = d();
1406
- return /* @__PURE__ */ l(
1415
+ const l = d();
1416
+ return /* @__PURE__ */ s(
1407
1417
  "div",
1408
1418
  {
1409
1419
  style: {
@@ -1417,7 +1427,7 @@ function bt(e) {
1417
1427
  margin: "0px",
1418
1428
  whiteSpace: "nowrap"
1419
1429
  },
1420
- children: s
1430
+ children: l
1421
1431
  }
1422
1432
  ),
1423
1433
  n && /* @__PURE__ */ r("div", { style: { position: "relative", top: -5 }, children: n })
@@ -1431,19 +1441,19 @@ function Nt(e) {
1431
1441
  title: a,
1432
1442
  stateinheader: o = !1,
1433
1443
  variant: d,
1434
- id: s,
1444
+ id: l,
1435
1445
  ...h
1436
1446
  } = t;
1437
1447
  let u, c;
1438
1448
  if (h.type === "hardware")
1439
1449
  if (u = {
1440
1450
  ...h,
1441
- id: s,
1451
+ id: l,
1442
1452
  variant: d
1443
1453
  }, o) {
1444
1454
  const f = {
1445
1455
  ...h,
1446
- id: s,
1456
+ id: l,
1447
1457
  variant: "state",
1448
1458
  emptyifnone: !0
1449
1459
  };
@@ -1452,7 +1462,7 @@ function Nt(e) {
1452
1462
  c = null;
1453
1463
  else
1454
1464
  u = h, c = null;
1455
- return /* @__PURE__ */ l(v, { children: [
1465
+ return /* @__PURE__ */ s(v, { children: [
1456
1466
  /* @__PURE__ */ r(
1457
1467
  "div",
1458
1468
  {
@@ -1467,8 +1477,8 @@ function Nt(e) {
1467
1477
  ] });
1468
1478
  }
1469
1479
  function Ct(e) {
1470
- const { yamlNode: t, panel: n } = e, { type: i, children: a, options: o = {}, title: d, ...s } = t;
1471
- return ue(t, s), /* @__PURE__ */ l(p, { className: "ymllayout-form", ...o, children: [
1480
+ const { yamlNode: t, panel: n } = e, { type: i, children: a, options: o = {}, title: d, ...l } = t;
1481
+ return ue(t, l), /* @__PURE__ */ s(p, { className: "ymllayout-form", ...o, children: [
1472
1482
  t.title && /* @__PURE__ */ r(p.Header, { children: t.title }),
1473
1483
  /* @__PURE__ */ r(p.Contents, { children: /* @__PURE__ */ r(
1474
1484
  "div",
@@ -1491,7 +1501,7 @@ function Ct(e) {
1491
1501
  }
1492
1502
  function Ot(e) {
1493
1503
  const { yamlNode: t, panel: n } = e;
1494
- return /* @__PURE__ */ l(
1504
+ return /* @__PURE__ */ s(
1495
1505
  "div",
1496
1506
  {
1497
1507
  className: "ymllayout-grid",
@@ -1501,7 +1511,7 @@ function Ot(e) {
1501
1511
  },
1502
1512
  children: [
1503
1513
  C(t.children, (i, a) => {
1504
- const { columnSpan: o = 1, rowSpan: d = 1, ...s } = i, h = o > 1 ? `span ${o}` : void 0, u = d > 1 ? `span ${d}` : void 0;
1514
+ const { columnSpan: o = 1, rowSpan: d = 1, ...l } = i, h = o > 1 ? `span ${o}` : void 0, u = d > 1 ? `span ${d}` : void 0;
1505
1515
  return /* @__PURE__ */ r(
1506
1516
  "div",
1507
1517
  {
@@ -1510,7 +1520,7 @@ function Ot(e) {
1510
1520
  gridColumn: h,
1511
1521
  gridRow: u
1512
1522
  },
1513
- children: O(s, a, n)
1523
+ children: O(l, a, n)
1514
1524
  },
1515
1525
  a
1516
1526
  );
@@ -1541,10 +1551,10 @@ Object.entries(Et).forEach(([e, t]) => {
1541
1551
  function Qt(e) {
1542
1552
  var n;
1543
1553
  const t = Me(() => he(e.layout), [e.layout]);
1544
- return t.error ? /* @__PURE__ */ r("div", { className: `${e.className ?? ""} ymllayout-main`, id: e.id, children: /* @__PURE__ */ l(p, { children: [
1554
+ return t.error ? /* @__PURE__ */ r("div", { className: `${e.className ?? ""} ymllayout-main`, id: e.id, children: /* @__PURE__ */ s(p, { children: [
1545
1555
  /* @__PURE__ */ r(p.Header, { children: "Layout Error" }),
1546
- /* @__PURE__ */ l(p.Contents, { children: [
1547
- /* @__PURE__ */ l("p", { children: [
1556
+ /* @__PURE__ */ s(p.Contents, { children: [
1557
+ /* @__PURE__ */ s("p", { children: [
1548
1558
  "File: ",
1549
1559
  t.name
1550
1560
  ] }),
@@ -1569,7 +1579,7 @@ function en(e, t) {
1569
1579
  ge[e] = t;
1570
1580
  }
1571
1581
  function xt(e) {
1572
- return /* @__PURE__ */ l(
1582
+ return /* @__PURE__ */ s(
1573
1583
  E,
1574
1584
  {
1575
1585
  className: "monitor-panel-item bg-fatal",
@@ -1654,13 +1664,13 @@ function It(e) {
1654
1664
  Number.isNaN(o) || String(o).length > 5 && (n = o.toPrecision(5));
1655
1665
  let d;
1656
1666
  t.comparator && t.comparison && (d = At(t.comparator, n, t.comparison) ? "valid" : "invalid"), Number.isNaN(o) || i !== void 0 && (n = `${n} ${i}`);
1657
- let s = q;
1667
+ let l = q;
1658
1668
  const h = {};
1659
1669
  if (a) {
1660
1670
  const u = `${a}`;
1661
1671
  let c = q;
1662
1672
  u.includes(`
1663
- `) && (c = "pre"), s = R, h.placement = "bottom", h.overlay = /* @__PURE__ */ r(Ce, {
1673
+ `) && (c = "pre"), l = R, h.placement = "bottom", h.overlay = /* @__PURE__ */ r(Ce, {
1664
1674
  id: "tooltipid",
1665
1675
  className: "monitor-panel-tooltip",
1666
1676
  // @ts-expect-error
@@ -1669,7 +1679,7 @@ function It(e) {
1669
1679
  }
1670
1680
  return (
1671
1681
  // @ts-expect-error
1672
- /* @__PURE__ */ Ae(s, { ...h, key: t.name }, /* @__PURE__ */ l(Mt, { children: [
1682
+ /* @__PURE__ */ Ae(l, { ...h, key: t.name }, /* @__PURE__ */ s(Mt, { children: [
1673
1683
  /* @__PURE__ */ r("h1", { children: t.name }),
1674
1684
  /* @__PURE__ */ r("div", { className: d, children: `${n}` })
1675
1685
  ] }))