@esrf/daiquiri-lib 5.7.1 → 5.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1444,12 +1444,12 @@ function Pr(t) {
1444
1444
  const Ur = {
1445
1445
  state: mr,
1446
1446
  default: gr
1447
- }, pg = {
1447
+ }, Lr = {
1448
1448
  variants: Ur,
1449
1449
  mocks: Fr,
1450
1450
  simulator: Pr
1451
1451
  };
1452
- function Lr(t) {
1452
+ function Vr(t) {
1453
1453
  const e = {
1454
1454
  24: "Y",
1455
1455
  21: "Z",
@@ -1474,7 +1474,7 @@ function Lr(t) {
1474
1474
  multiplier: 10 ** -i
1475
1475
  };
1476
1476
  }
1477
- function Vr(t) {
1477
+ function Hr(t) {
1478
1478
  return t.charAt(0).toUpperCase() + t.slice(1);
1479
1479
  }
1480
1480
  function Gt(t) {
@@ -1483,21 +1483,21 @@ function Gt(t) {
1483
1483
  const e = Math.round(t / 60), o = e % 60, r = Math.floor(e / 60);
1484
1484
  return r ? `${r} hr ${o} min` : `${o} min`;
1485
1485
  }
1486
- function Hr(t) {
1486
+ function Gr(t) {
1487
1487
  return t > 0 ? (662607004e-42 * 299792458 / (t * 1e-10) / 160218e-24 * 1e-3).toFixed(4) : 0;
1488
1488
  }
1489
- function Gr(t, e) {
1489
+ function qr(t, e) {
1490
1490
  return Number.parseFloat(t.toFixed(e));
1491
1491
  }
1492
1492
  const hg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1493
1493
  __proto__: null,
1494
- formatEng: Lr,
1495
- round: Gr,
1496
- toEnergy: Hr,
1494
+ formatEng: Vr,
1495
+ round: qr,
1496
+ toEnergy: Gr,
1497
1497
  toHoursMins: Gt,
1498
- ucfirst: Vr
1498
+ ucfirst: Hr
1499
1499
  }, Symbol.toStringTag, { value: "Module" }));
1500
- function qr(t) {
1500
+ function Br(t) {
1501
1501
  const { hardware: e } = t;
1502
1502
  function o() {
1503
1503
  e.actions.call("reset");
@@ -1560,7 +1560,7 @@ function qr(t) {
1560
1560
  }
1561
1561
  );
1562
1562
  }
1563
- function Br(t) {
1563
+ function Wr(t) {
1564
1564
  const { hardware: e, options: o = {} } = t;
1565
1565
  function r() {
1566
1566
  e.actions.call(
@@ -1596,11 +1596,11 @@ function Br(t) {
1596
1596
  children: e.properties.frontend === "FE open" ? "Close" : "Open"
1597
1597
  }
1598
1598
  ),
1599
- /* @__PURE__ */ n(qr, { ...t })
1599
+ /* @__PURE__ */ n(Br, { ...t })
1600
1600
  ] }) })
1601
1601
  ] });
1602
1602
  }
1603
- function Wr(t) {
1603
+ function zr(t) {
1604
1604
  switch (t) {
1605
1605
  case "OPEN":
1606
1606
  case "RUNNING":
@@ -1609,7 +1609,7 @@ function Wr(t) {
1609
1609
  return "danger";
1610
1610
  }
1611
1611
  function qt(t) {
1612
- const { hardware: e, options: o = {} } = t, { properties: r = {} } = e, { state: i = "OFFLINE", status: a } = r, s = o.name ?? e.alias ?? e.name, c = Wr(i), u = /* @__PURE__ */ m(fe, { children: [
1612
+ const { hardware: e, options: o = {} } = t, { properties: r = {} } = e, { state: i = "OFFLINE", status: a } = r, s = o.name ?? e.alias ?? e.name, c = zr(i), u = /* @__PURE__ */ m(fe, { children: [
1613
1613
  /* @__PURE__ */ n("h1", { children: s }),
1614
1614
  /* @__PURE__ */ n(P, { bg: c, children: `${i}` })
1615
1615
  ] });
@@ -1627,11 +1627,11 @@ function qt(t) {
1627
1627
  }
1628
1628
  return u;
1629
1629
  }
1630
- const zr = [
1630
+ const jr = [
1631
1631
  "open",
1632
1632
  "close",
1633
1633
  "reset"
1634
- ], jr = "fe", Yr = "fe", Kr = !0, Qr = {
1634
+ ], Yr = "fe", Kr = "fe", Qr = !0, Xr = {
1635
1635
  current: 196.58051532652968,
1636
1636
  expitlk: "ON",
1637
1637
  feitlk: "ON",
@@ -1651,27 +1651,27 @@ Module 1 Gate Valve 2: Open
1651
1651
  Module 2 Gate Valve 1: Open
1652
1652
 
1653
1653
  `
1654
- }, Xr = "tango", Zr = !0, Jr = "frontend", ei = {
1655
- callables: zr,
1656
- id: jr,
1657
- name: Yr,
1658
- online: Kr,
1659
- properties: Qr,
1660
- protocol: Xr,
1661
- require_staff: Zr,
1662
- type: Jr
1663
- }, ti = {
1664
- default: ei
1654
+ }, Zr = "tango", Jr = !0, ei = "frontend", ti = {
1655
+ callables: jr,
1656
+ id: Yr,
1657
+ name: Kr,
1658
+ online: Qr,
1659
+ properties: Xr,
1660
+ protocol: Zr,
1661
+ require_staff: Jr,
1662
+ type: ei
1665
1663
  }, ni = {
1666
- default: Br,
1664
+ default: ti
1665
+ }, oi = {
1666
+ default: Wr,
1667
1667
  // Override default monitor
1668
1668
  monitor: qt
1669
- }, oi = {
1670
- variants: ni,
1671
- mocks: ti,
1669
+ }, ri = {
1670
+ variants: oi,
1671
+ mocks: ni,
1672
1672
  monitor: qt
1673
1673
  };
1674
- function ri(t) {
1674
+ function ii(t) {
1675
1675
  const { hardware: e } = t, o = () => {
1676
1676
  e.actions.call(
1677
1677
  e.properties.state === "ON" ? "off" : "on"
@@ -1697,7 +1697,7 @@ function ri(t) {
1697
1697
  }
1698
1698
  );
1699
1699
  }
1700
- function ii(t) {
1700
+ function ai(t) {
1701
1701
  const { hardware: e, options: o = {} } = t;
1702
1702
  return /* @__PURE__ */ m("div", { className: "hw-component", children: [
1703
1703
  /* @__PURE__ */ m("div", { className: "hw-head", children: [
@@ -1723,14 +1723,14 @@ function ii(t) {
1723
1723
  }
1724
1724
  ),
1725
1725
  (e.properties.unit || o.unit) && /* @__PURE__ */ n(N.Text, { children: e.properties.unit || o.unit }),
1726
- /* @__PURE__ */ n(ri, { ...t })
1726
+ /* @__PURE__ */ n(ii, { ...t })
1727
1727
  ] }) })
1728
1728
  ] });
1729
1729
  }
1730
- const ai = [
1730
+ const si = [
1731
1731
  "off",
1732
1732
  "on"
1733
- ], si = "pir121", ci = "pir121", li = !0, di = {
1733
+ ], ci = "pir121", li = "pir121", di = !0, ui = {
1734
1734
  pressure: 7999999797903001e-19,
1735
1735
  state: "ON",
1736
1736
  status: `
@@ -1744,19 +1744,19 @@ Rel. | Lower | Upper | SA | State
1744
1744
  B | 4.0e-3| 1.0e-5| 8 | ON
1745
1745
 
1746
1746
  HDB Storage OK`
1747
- }, ui = "tango", fi = !0, mi = "gauge", pi = {
1748
- callables: ai,
1749
- id: si,
1750
- name: ci,
1751
- online: li,
1752
- properties: di,
1753
- protocol: ui,
1754
- require_staff: fi,
1755
- type: mi
1756
- }, hi = [
1747
+ }, fi = "tango", mi = !0, pi = "gauge", hi = {
1748
+ callables: si,
1749
+ id: ci,
1750
+ name: li,
1751
+ online: di,
1752
+ properties: ui,
1753
+ protocol: fi,
1754
+ require_staff: mi,
1755
+ type: pi
1756
+ }, gi = [
1757
1757
  "off",
1758
1758
  "on"
1759
- ], gi = "pen121", wi = "pen121", yi = !0, vi = {
1759
+ ], wi = "pen121", yi = "pen121", vi = !0, Ni = {
1760
1760
  pressure: 13999999737279722e-23,
1761
1761
  state: "ON",
1762
1762
  status: `Gauge is ON - Channel B1 (3)
@@ -1768,24 +1768,24 @@ Rel. | Lower | Upper | SA | State
1768
1768
  A | 4.0e-3| 1.0e-5| 6 | ON
1769
1769
  B | 4.0e-3| 1.0e-5| 8 | ON
1770
1770
  `
1771
- }, Ni = "tango", bi = !0, _i = "gauge", $i = {
1772
- callables: hi,
1773
- id: gi,
1774
- name: wi,
1775
- online: yi,
1776
- properties: vi,
1777
- protocol: Ni,
1778
- require_staff: bi,
1779
- type: _i
1780
- }, Oi = {
1781
- default: pi,
1782
- default2: $i
1771
+ }, bi = "tango", _i = !0, $i = "gauge", Oi = {
1772
+ callables: gi,
1773
+ id: wi,
1774
+ name: yi,
1775
+ online: vi,
1776
+ properties: Ni,
1777
+ protocol: bi,
1778
+ require_staff: _i,
1779
+ type: $i
1783
1780
  }, xi = {
1784
- default: ii
1781
+ default: hi,
1782
+ default2: Oi
1785
1783
  }, Si = {
1786
- variants: xi,
1787
- mocks: Oi
1788
- }, Ci = He((t, e) => {
1784
+ default: ai
1785
+ }, Ci = {
1786
+ variants: Si,
1787
+ mocks: xi
1788
+ }, Ii = He((t, e) => {
1789
1789
  const o = q(null), r = q(), [i, a] = C(t.step), [s, c] = C(!1), u = (R) => {
1790
1790
  const se = e;
1791
1791
  if (o.current === null)
@@ -1914,7 +1914,7 @@ Rel. | Lower | Upper | SA | State
1914
1914
  ] })
1915
1915
  }
1916
1916
  );
1917
- }), Ii = Ci;
1917
+ }), Mi = Ii;
1918
1918
  function qe(t) {
1919
1919
  const e = q(null), [o, r] = C(!1), [i, a] = C(!1);
1920
1920
  X(() => {
@@ -1962,7 +1962,7 @@ function qe(t) {
1962
1962
  }
1963
1963
  }
1964
1964
  return /* @__PURE__ */ n(
1965
- Ii,
1965
+ Mi,
1966
1966
  {
1967
1967
  id: t.id,
1968
1968
  className: re({
@@ -1990,7 +1990,7 @@ function qe(t) {
1990
1990
  }
1991
1991
  );
1992
1992
  }
1993
- function Mi(t) {
1993
+ function Ti(t) {
1994
1994
  const { hardware: e, options: o = {}, disabled: r } = t;
1995
1995
  function i(d) {
1996
1996
  return e.actions.setProperty("power", d);
@@ -2056,27 +2056,27 @@ function Mi(t) {
2056
2056
  }
2057
2057
  );
2058
2058
  }
2059
- const Ti = [], Di = "yag1", Ai = "yag1", ki = !0, Ei = {
2059
+ const Di = [], Ai = "yag1", ki = "yag1", Ei = !0, Fi = {
2060
2060
  power: 5,
2061
2061
  state: "ON"
2062
- }, Fi = "bliss", Ri = !1, Pi = "laser", Ui = {
2063
- callables: Ti,
2064
- id: Di,
2065
- name: Ai,
2066
- online: ki,
2067
- properties: Ei,
2068
- protocol: Fi,
2069
- require_staff: Ri,
2070
- type: Pi
2071
- }, Li = {
2072
- default: Ui
2062
+ }, Ri = "bliss", Pi = !1, Ui = "laser", Li = {
2063
+ callables: Di,
2064
+ id: Ai,
2065
+ name: ki,
2066
+ online: Ei,
2067
+ properties: Fi,
2068
+ protocol: Ri,
2069
+ require_staff: Pi,
2070
+ type: Ui
2073
2071
  }, Vi = {
2074
- default: Mi
2072
+ default: Li
2075
2073
  }, Hi = {
2076
- variants: Vi,
2077
- mocks: Li
2074
+ default: Ti
2075
+ }, Gi = {
2076
+ variants: Hi,
2077
+ mocks: Vi
2078
2078
  };
2079
- function Gi(t) {
2079
+ function qi(t) {
2080
2080
  var o;
2081
2081
  const { hardware: e } = t;
2082
2082
  return /* @__PURE__ */ n(
@@ -2112,7 +2112,7 @@ function Gi(t) {
2112
2112
  }
2113
2113
  );
2114
2114
  }
2115
- function qi(t) {
2115
+ function Bi(t) {
2116
2116
  const { hardware: e, options: o = {}, disabled: r } = t, [i, a] = C(!1);
2117
2117
  function s(f) {
2118
2118
  return f <= 0 ? Promise.reject(new Error("exposure_time must be > 0")) : e.actions.setProperty("exposure_time", f);
@@ -2175,12 +2175,12 @@ function qi(t) {
2175
2175
  ] })
2176
2176
  }
2177
2177
  ),
2178
- /* @__PURE__ */ n(Gi, { hardware: e, disabled: t.disabled })
2178
+ /* @__PURE__ */ n(qi, { hardware: e, disabled: t.disabled })
2179
2179
  ] })
2180
2180
  }
2181
2181
  );
2182
2182
  }
2183
- const Bi = [], Wi = "laserheating", zi = "laserheating", ji = !0, Yi = {
2183
+ const Wi = [], zi = "laserheating", ji = "laserheating", Yi = !0, Ki = {
2184
2184
  exposure_time: 0.5,
2185
2185
  state: "ON",
2186
2186
  background_mode: "READY",
@@ -2189,24 +2189,24 @@ const Bi = [], Wi = "laserheating", zi = "laserheating", ji = !0, Yi = {
2189
2189
  650
2190
2190
  ],
2191
2191
  current_calibration: "/path/to/file"
2192
- }, Ki = "bliss", Qi = !1, Xi = "laserheating", Zi = {
2193
- callables: Bi,
2194
- id: Wi,
2195
- name: zi,
2196
- online: ji,
2197
- properties: Yi,
2198
- protocol: Ki,
2199
- require_staff: Qi,
2200
- type: Xi
2201
- }, Ji = {
2202
- default: Zi
2192
+ }, Qi = "bliss", Xi = !1, Zi = "laserheating", Ji = {
2193
+ callables: Wi,
2194
+ id: zi,
2195
+ name: ji,
2196
+ online: Yi,
2197
+ properties: Ki,
2198
+ protocol: Qi,
2199
+ require_staff: Xi,
2200
+ type: Zi
2203
2201
  }, ea = {
2204
- default: qi
2202
+ default: Ji
2205
2203
  }, ta = {
2206
- variants: ea,
2207
- mocks: Ji
2204
+ default: Bi
2205
+ }, na = {
2206
+ variants: ta,
2207
+ mocks: ea
2208
2208
  };
2209
- function na(t) {
2209
+ function oa(t) {
2210
2210
  const e = q(null), { hardware: o, options: r = {} } = t;
2211
2211
  function i(s) {
2212
2212
  o.actions.setProperty("intensity", s);
@@ -2257,26 +2257,26 @@ function na(t) {
2257
2257
  ] })
2258
2258
  ] });
2259
2259
  }
2260
- const oa = [], ra = "light_vlm", ia = "light_vlm", aa = !0, sa = {
2260
+ const ra = [], ia = "light_vlm", aa = "light_vlm", sa = !0, ca = {
2261
2261
  intensity: 0,
2262
2262
  state: "ON",
2263
2263
  temperature: 23.2
2264
- }, ca = "bliss", la = !1, da = "light", ua = {
2265
- callables: oa,
2266
- id: ra,
2267
- name: ia,
2268
- online: aa,
2269
- properties: sa,
2270
- protocol: ca,
2271
- require_staff: la,
2272
- type: da
2273
- }, fa = {
2274
- default: ua
2264
+ }, la = "bliss", da = !1, ua = "light", fa = {
2265
+ callables: ra,
2266
+ id: ia,
2267
+ name: aa,
2268
+ online: sa,
2269
+ properties: ca,
2270
+ protocol: la,
2271
+ require_staff: da,
2272
+ type: ua
2275
2273
  }, ma = {
2276
- default: na
2274
+ default: fa
2277
2275
  }, pa = {
2278
- variants: ma,
2279
- mocks: fa
2276
+ default: oa
2277
+ }, ha = {
2278
+ variants: pa,
2279
+ mocks: ma
2280
2280
  };
2281
2281
  function me(t) {
2282
2282
  const { hardware: e } = t, { online: o, locked: r = null } = e, i = e.properties.state ?? "UNKNOWN", a = o ? (i === "ACQUIRING" ? i : r !== null ? "LOCKED" : i) || "UNKNOWN" : "OFFLINE", s = {
@@ -2288,7 +2288,7 @@ function me(t) {
2288
2288
  }, c = s[a] ?? s.UNKNOWN;
2289
2289
  return /* @__PURE__ */ n(V, { state: a, minWidth: 6, variant: c });
2290
2290
  }
2291
- function ha(t) {
2291
+ function ga(t) {
2292
2292
  const { hardware: e } = t;
2293
2293
  return /* @__PURE__ */ n(me, { hardware: e });
2294
2294
  }
@@ -2296,7 +2296,7 @@ function $t(t) {
2296
2296
  const { hardware: e, options: o = {} } = t;
2297
2297
  return /* @__PURE__ */ n(Te, { className: "bg-light rounded-2 ps-2 p-1", direction: "horizontal", children: /* @__PURE__ */ n("div", { children: e.name }) });
2298
2298
  }
2299
- function ga(t) {
2299
+ function wa(t) {
2300
2300
  const { hardware: e, options: o = {} } = t, r = /* @__PURE__ */ n(x, { name: "Lima", icon: "fam-hardware-camera", online: e.online }), i = /* @__PURE__ */ n(me, { hardware: e }), a = o.header || "top";
2301
2301
  return a === "none" ? /* @__PURE__ */ n($t, { ...t }) : /* @__PURE__ */ n(
2302
2302
  M,
@@ -2320,7 +2320,7 @@ function Ot(t) {
2320
2320
  /* @__PURE__ */ n("div", { className: "ms-auto", children: /* @__PURE__ */ n("small", { children: /* @__PURE__ */ n("small", { children: "px" }) }) })
2321
2321
  ] });
2322
2322
  }
2323
- function wa(t) {
2323
+ function ya(t) {
2324
2324
  const { hardware: e, options: o = {} } = t, r = /* @__PURE__ */ n(x, { name: "Lima", icon: "fam-hardware-camera", online: e.online }), i = /* @__PURE__ */ n(me, { hardware: e }), a = o.header ?? "top";
2325
2325
  return a === "none" ? /* @__PURE__ */ n(Ot, { ...t }) : /* @__PURE__ */ n(
2326
2326
  M,
@@ -2359,7 +2359,7 @@ function de(t) {
2359
2359
  }
2360
2360
  );
2361
2361
  }
2362
- function ya(t) {
2362
+ function va(t) {
2363
2363
  const { hardware: e, options: o = {}, disabled: r } = t, { actions: i, properties: a } = e, {
2364
2364
  rotation: s,
2365
2365
  flip: [c, u]
@@ -2475,7 +2475,7 @@ function ya(t) {
2475
2475
  ] }) })
2476
2476
  ] });
2477
2477
  }
2478
- function va(t) {
2478
+ function Na(t) {
2479
2479
  const { hardware: e, options: o = {} } = t, { properties: r } = e, [i, a] = r.flip, s = r.rotation ?? 0, c = !i && !a && s === 0;
2480
2480
  return /* @__PURE__ */ m(N, { className: "flex-nowrap", children: [
2481
2481
  /* @__PURE__ */ m(N.Text, { children: [
@@ -2502,11 +2502,11 @@ function va(t) {
2502
2502
  }
2503
2503
  )
2504
2504
  ] }),
2505
- !o.readonly && /* @__PURE__ */ n(ya, { ...t })
2505
+ !o.readonly && /* @__PURE__ */ n(va, { ...t })
2506
2506
  ] });
2507
2507
  }
2508
- function Na(t) {
2509
- const { hardware: e, options: o = {} } = t, r = /* @__PURE__ */ n(x, { name: "Lima", icon: "fam-hardware-camera", online: e.online }), i = /* @__PURE__ */ n(me, { hardware: e }), a = /* @__PURE__ */ n(O, { children: /* @__PURE__ */ n(va, { ...t }) }), s = o.header ?? "top";
2508
+ function ba(t) {
2509
+ const { hardware: e, options: o = {} } = t, r = /* @__PURE__ */ n(x, { name: "Lima", icon: "fam-hardware-camera", online: e.online }), i = /* @__PURE__ */ n(me, { hardware: e }), a = /* @__PURE__ */ n(O, { children: /* @__PURE__ */ n(Na, { ...t }) }), s = o.header ?? "top";
2510
2510
  return /* @__PURE__ */ n(
2511
2511
  M,
2512
2512
  {
@@ -2519,7 +2519,7 @@ function Na(t) {
2519
2519
  );
2520
2520
  }
2521
2521
  const Bt = "4.2em";
2522
- function ba(t) {
2522
+ function _a(t) {
2523
2523
  const { hardware: e } = t, { properties: o } = e, r = o.state === "READY", i = t.disabled || !e.online || !r, a = o.binning_mode ?? "SUM";
2524
2524
  function s(c) {
2525
2525
  const { binningMode: u, selectedMode: d, title: l } = c, p = u === d ? "fa fa-fw fa-dot-circle-o" : "fa fa-fw fa-circle-o";
@@ -2563,12 +2563,12 @@ function ba(t) {
2563
2563
  ] })
2564
2564
  ] });
2565
2565
  }
2566
- function _a(t) {
2566
+ function $a(t) {
2567
2567
  const { hardware: e, options: o, disabled: r } = t, { properties: i = {} } = e, { binning: a, binning_mode: s = "SUM" } = i;
2568
2568
  function c(h) {
2569
2569
  e.actions.setProperty("binning", [h, h]);
2570
2570
  }
2571
- const u = Os(e), d = o.readonly ?? !1;
2571
+ const u = xs(e), d = o.readonly ?? !1;
2572
2572
  if (a === void 0)
2573
2573
  return /* @__PURE__ */ m(N, { className: "flex-nowrap", children: [
2574
2574
  /* @__PURE__ */ n(N.Text, { title: "Binning applied to the detector", children: /* @__PURE__ */ n("i", { className: "fa fa-fw fam-binning-2d fa-2x" }) }),
@@ -2632,11 +2632,11 @@ function _a(t) {
2632
2632
  children: s
2633
2633
  }
2634
2634
  ) }),
2635
- !d && u && /* @__PURE__ */ n(ba, { ...t })
2635
+ !d && u && /* @__PURE__ */ n(_a, { ...t })
2636
2636
  ] });
2637
2637
  }
2638
- function $a(t) {
2639
- const { hardware: e, options: o = {} } = t, r = /* @__PURE__ */ n(x, { name: "Lima", icon: "fam-hardware-camera", online: e.online }), i = /* @__PURE__ */ n(me, { hardware: e }), a = /* @__PURE__ */ n(O, { children: /* @__PURE__ */ n(_a, { ...t }) }), s = o.header ?? "top";
2638
+ function Oa(t) {
2639
+ const { hardware: e, options: o = {} } = t, r = /* @__PURE__ */ n(x, { name: "Lima", icon: "fam-hardware-camera", online: e.online }), i = /* @__PURE__ */ n(me, { hardware: e }), a = /* @__PURE__ */ n(O, { children: /* @__PURE__ */ n($a, { ...t }) }), s = o.header ?? "top";
2640
2640
  return /* @__PURE__ */ n(
2641
2641
  M,
2642
2642
  {
@@ -2648,7 +2648,7 @@ function $a(t) {
2648
2648
  }
2649
2649
  );
2650
2650
  }
2651
- function Oa(t) {
2651
+ function xa(t) {
2652
2652
  const { hardware: e } = t, { properties: o } = e;
2653
2653
  return /* @__PURE__ */ m(N, { className: "flex-nowrap", children: [
2654
2654
  /* @__PURE__ */ n(N.Text, { title: "Rotation applied to the detector", children: /* @__PURE__ */ n("i", { className: "fa fa-fw fa-crop-simple fa-2x" }) }),
@@ -2659,8 +2659,8 @@ function Oa(t) {
2659
2659
  /* @__PURE__ */ n(N.Text, { children: "px" })
2660
2660
  ] });
2661
2661
  }
2662
- function xa(t) {
2663
- const { hardware: e, options: o = {} } = t, r = /* @__PURE__ */ n(x, { name: "Lima", icon: "fam-hardware-camera", online: e.online }), i = /* @__PURE__ */ n(me, { hardware: e }), a = /* @__PURE__ */ n(O, { children: /* @__PURE__ */ n(Oa, { hardware: e }) }), s = o.header ?? "top";
2662
+ function Sa(t) {
2663
+ const { hardware: e, options: o = {} } = t, r = /* @__PURE__ */ n(x, { name: "Lima", icon: "fam-hardware-camera", online: e.online }), i = /* @__PURE__ */ n(me, { hardware: e }), a = /* @__PURE__ */ n(O, { children: /* @__PURE__ */ n(xa, { hardware: e }) }), s = o.header ?? "top";
2664
2664
  return /* @__PURE__ */ n(
2665
2665
  M,
2666
2666
  {
@@ -2672,7 +2672,7 @@ function xa(t) {
2672
2672
  }
2673
2673
  );
2674
2674
  }
2675
- function Sa(t) {
2675
+ function Ca(t) {
2676
2676
  const { hardware: e } = t, { properties: o } = e, r = o.static, [i, a] = (r == null ? void 0 : r.image_max_dim) ?? ["?", "?"];
2677
2677
  return /* @__PURE__ */ m(N, { children: [
2678
2678
  /* @__PURE__ */ n(N.Text, { title: "Max size of the detector", children: "Max size" }),
@@ -2680,14 +2680,14 @@ function Sa(t) {
2680
2680
  /* @__PURE__ */ n(N.Text, { children: "px" })
2681
2681
  ] });
2682
2682
  }
2683
- function Ca(t) {
2683
+ function Ia(t) {
2684
2684
  const { hardware: e } = t, { properties: o } = e, r = o.static;
2685
2685
  return /* @__PURE__ */ m(N, { children: [
2686
2686
  /* @__PURE__ */ n(N.Text, { title: "Version of the Lima server (lima-core)", children: "Lima version" }),
2687
2687
  /* @__PURE__ */ n(F.Control, { value: `${r == null ? void 0 : r.lima_version}`, readOnly: !0 })
2688
2688
  ] });
2689
2689
  }
2690
- function Ia(t) {
2690
+ function Ma(t) {
2691
2691
  const { hardware: e } = t, { properties: o } = e, r = o.static;
2692
2692
  return /* @__PURE__ */ m(N, { children: [
2693
2693
  /* @__PURE__ */ n(N.Text, { title: "Model of the detector", children: "Type/model" }),
@@ -2695,11 +2695,11 @@ function Ia(t) {
2695
2695
  /* @__PURE__ */ n(F.Control, { value: `${r == null ? void 0 : r.camera_model}`, readOnly: !0 })
2696
2696
  ] });
2697
2697
  }
2698
- function Ma(t) {
2698
+ function Ta(t) {
2699
2699
  const { hardware: e, options: o = {} } = t, r = /* @__PURE__ */ n(x, { name: "Lima", icon: "fam-hardware-camera", online: e.online }), i = /* @__PURE__ */ n(me, { hardware: e }), a = /* @__PURE__ */ m(O, { children: [
2700
- /* @__PURE__ */ n(Ia, { hardware: e }),
2701
- /* @__PURE__ */ n(Sa, { hardware: e }),
2702
- /* @__PURE__ */ n(Ca, { hardware: e })
2700
+ /* @__PURE__ */ n(Ma, { hardware: e }),
2701
+ /* @__PURE__ */ n(Ca, { hardware: e }),
2702
+ /* @__PURE__ */ n(Ia, { hardware: e })
2703
2703
  ] }), s = o.header ?? "top";
2704
2704
  return /* @__PURE__ */ n(
2705
2705
  M,
@@ -2712,7 +2712,7 @@ function Ma(t) {
2712
2712
  }
2713
2713
  );
2714
2714
  }
2715
- function Ta(t) {
2715
+ function Da(t) {
2716
2716
  var $;
2717
2717
  const { hardware: e, disabled: o } = t, { properties: r } = e, i = (($ = r.static) == null ? void 0 : $.image_max_dim) ?? [0, 0], a = r.roi, s = r.binning ?? [1, 1], c = i[0] / s[0], u = i[1] / s[1];
2718
2718
  function d() {
@@ -2780,8 +2780,8 @@ function Ta(t) {
2780
2780
  }
2781
2781
  ) });
2782
2782
  }
2783
- function Da(t) {
2784
- const { hardware: e, options: o = {} } = t, r = /* @__PURE__ */ n(x, { name: "Lima", icon: "fam-hardware-camera", online: e.online }), i = /* @__PURE__ */ n(me, { hardware: e }), a = /* @__PURE__ */ n(O, { children: /* @__PURE__ */ n(Ta, { ...t }) }), s = o.header ?? "top";
2783
+ function Aa(t) {
2784
+ const { hardware: e, options: o = {} } = t, r = /* @__PURE__ */ n(x, { name: "Lima", icon: "fam-hardware-camera", online: e.online }), i = /* @__PURE__ */ n(me, { hardware: e }), a = /* @__PURE__ */ n(O, { children: /* @__PURE__ */ n(Da, { ...t }) }), s = o.header ?? "top";
2785
2785
  return /* @__PURE__ */ n(
2786
2786
  M,
2787
2787
  {
@@ -2822,7 +2822,7 @@ function vg() {
2822
2822
  throw new Error("No `useScanRunning` hook registered");
2823
2823
  return W.useScanRunning();
2824
2824
  }
2825
- const Aa = "lima_cam", ka = "lima_cam", Ea = "bliss", Fa = "lima", Ra = !0, Pa = !1, Ua = {
2825
+ const ka = "lima_cam", Ea = "lima_cam", Fa = "bliss", Ra = "lima", Pa = !0, Ua = !1, La = {
2826
2826
  static: {
2827
2827
  lima_version: "1.9.23",
2828
2828
  lima_type: "Frelon",
@@ -2868,15 +2868,15 @@ const Aa = "lima_cam", ka = "lima_cam", Ea = "bliss", Fa = "lima", Ra = !0, Pa =
2868
2868
  128
2869
2869
  ],
2870
2870
  state: "READY"
2871
- }, La = {
2872
- id: Aa,
2873
- name: ka,
2874
- protocol: Ea,
2875
- type: Fa,
2876
- online: Ra,
2877
- require_staff: Pa,
2878
- properties: Ua
2879
- }, Va = "lima_cam", Ha = "lima_cam", Ga = "bliss", qa = "lima", Ba = !0, Wa = !1, za = {
2871
+ }, Va = {
2872
+ id: ka,
2873
+ name: Ea,
2874
+ protocol: Fa,
2875
+ type: Ra,
2876
+ online: Pa,
2877
+ require_staff: Ua,
2878
+ properties: La
2879
+ }, Ha = "lima_cam", Ga = "lima_cam", qa = "bliss", Ba = "lima", Wa = !0, za = !1, ja = {
2880
2880
  static: {
2881
2881
  lima_version: "1.9.23",
2882
2882
  lima_type: "Frelon",
@@ -2922,15 +2922,15 @@ const Aa = "lima_cam", ka = "lima_cam", Ea = "bliss", Fa = "lima", Ra = !0, Pa =
2922
2922
  128
2923
2923
  ],
2924
2924
  state: "READY"
2925
- }, ja = {
2926
- id: Va,
2927
- name: Ha,
2928
- protocol: Ga,
2929
- type: qa,
2930
- online: Ba,
2931
- require_staff: Wa,
2932
- properties: za
2933
- }, Ya = "lima_cam", Ka = "lima_cam", Qa = "bliss", Xa = "lima", Za = !0, Ja = !1, es = {
2925
+ }, Ya = {
2926
+ id: Ha,
2927
+ name: Ga,
2928
+ protocol: qa,
2929
+ type: Ba,
2930
+ online: Wa,
2931
+ require_staff: za,
2932
+ properties: ja
2933
+ }, Ka = "lima_cam", Qa = "lima_cam", Xa = "bliss", Za = "lima", Ja = !0, es = !1, ts = {
2934
2934
  static: {
2935
2935
  lima_version: "1.9.23",
2936
2936
  lima_type: "Frelon",
@@ -2976,15 +2976,15 @@ const Aa = "lima_cam", ka = "lima_cam", Ea = "bliss", Fa = "lima", Ra = !0, Pa =
2976
2976
  128
2977
2977
  ],
2978
2978
  state: "READY"
2979
- }, ts = {
2980
- id: Ya,
2981
- name: Ka,
2982
- protocol: Qa,
2983
- type: Xa,
2984
- online: Za,
2985
- require_staff: Ja,
2986
- properties: es
2987
- }, ns = "lima_cam", os = "lima_cam", rs = "bliss", is = "lima", as = !0, ss = !1, cs = {
2979
+ }, ns = {
2980
+ id: Ka,
2981
+ name: Qa,
2982
+ protocol: Xa,
2983
+ type: Za,
2984
+ online: Ja,
2985
+ require_staff: es,
2986
+ properties: ts
2987
+ }, os = "lima_cam", rs = "lima_cam", is = "bliss", as = "lima", ss = !0, cs = !1, ls = {
2988
2988
  static: {
2989
2989
  lima_version: "1.9.23",
2990
2990
  lima_type: "Frelon",
@@ -3030,15 +3030,15 @@ const Aa = "lima_cam", ka = "lima_cam", Ea = "bliss", Fa = "lima", Ra = !0, Pa =
3030
3030
  1920
3031
3031
  ],
3032
3032
  state: "READY"
3033
- }, ls = {
3034
- id: ns,
3035
- name: os,
3036
- protocol: rs,
3037
- type: is,
3038
- online: as,
3039
- require_staff: ss,
3040
- properties: cs
3041
- }, ds = "lima_cam", us = "lima_cam", fs = "bliss", ms = "lima", ps = !0, hs = !1, gs = {
3033
+ }, ds = {
3034
+ id: os,
3035
+ name: rs,
3036
+ protocol: is,
3037
+ type: as,
3038
+ online: ss,
3039
+ require_staff: cs,
3040
+ properties: ls
3041
+ }, us = "lima_cam", fs = "lima_cam", ms = "bliss", ps = "lima", hs = !0, gs = !1, ws = {
3042
3042
  static: {
3043
3043
  lima_version: "1.9.23",
3044
3044
  lima_type: "Frelon",
@@ -3084,22 +3084,22 @@ const Aa = "lima_cam", ka = "lima_cam", Ea = "bliss", Fa = "lima", Ra = !0, Pa =
3084
3084
  2e3
3085
3085
  ],
3086
3086
  state: "READY"
3087
- }, ws = {
3088
- id: ds,
3089
- name: us,
3090
- protocol: fs,
3091
- type: ms,
3092
- online: ps,
3093
- require_staff: hs,
3094
- properties: gs
3095
3087
  }, ys = {
3096
- default: La,
3097
- flip: ja,
3098
- rot: ts,
3099
- roicenter: ls,
3100
- squaredetector: ws
3088
+ id: us,
3089
+ name: fs,
3090
+ protocol: ms,
3091
+ type: ps,
3092
+ online: hs,
3093
+ require_staff: gs,
3094
+ properties: ws
3095
+ }, vs = {
3096
+ default: Va,
3097
+ flip: Ya,
3098
+ rot: ns,
3099
+ roicenter: ds,
3100
+ squaredetector: ys
3101
3101
  };
3102
- function vs(t) {
3102
+ function Ns(t) {
3103
3103
  const { name: e, alias: o, useHardwareContext: r } = t, i = [1920, 1920], a = [16e-6, 16e-6], [s, c] = C({
3104
3104
  static: {
3105
3105
  lima_version: "1.9.23",
@@ -3201,34 +3201,34 @@ function vs(t) {
3201
3201
  function Be(t) {
3202
3202
  return t.type === "lima";
3203
3203
  }
3204
- function Ns(t) {
3204
+ function bs(t) {
3205
3205
  const e = ee(t);
3206
3206
  return e === null || !Be(e) ? null : e;
3207
3207
  }
3208
- function bs(t, e) {
3208
+ function _s(t, e) {
3209
3209
  const o = Math.ceil(t / e), r = t / o;
3210
3210
  return [o, r];
3211
3211
  }
3212
- const _s = {
3213
- default: ga,
3214
- size: wa,
3215
- transformation: Na,
3216
- binning: $a,
3217
- imageroi: xa,
3218
- description: Ma,
3219
- shape: Da,
3212
+ const $s = {
3213
+ default: wa,
3214
+ size: ya,
3215
+ transformation: ba,
3216
+ binning: Oa,
3217
+ imageroi: Sa,
3218
+ description: Ta,
3219
+ shape: Aa,
3220
3220
  // Override base state
3221
- state: ha
3222
- }, $s = {
3223
- variants: _s,
3224
- mocks: ys,
3225
- simulator: vs
3221
+ state: ga
3222
+ }, Os = {
3223
+ variants: $s,
3224
+ mocks: vs,
3225
+ simulator: Ns
3226
3226
  };
3227
- function Os(t) {
3227
+ function xs(t) {
3228
3228
  var e;
3229
3229
  return t.properties.binning_mode !== void 0 && Cn.gte(((e = t.properties.static) == null ? void 0 : e.lima_version) ?? "0.0.0", "1.10.4");
3230
3230
  }
3231
- function xs(t, e) {
3231
+ function Ss(t, e) {
3232
3232
  const {
3233
3233
  inputRef: o,
3234
3234
  referenceElementRef: r,
@@ -3279,7 +3279,7 @@ function xs(t, e) {
3279
3279
  /* @__PURE__ */ n(b, { disabled: t.disabled, onClick: l, children: /* @__PURE__ */ n("i", { className: "fa fa-minus" }) })
3280
3280
  ] });
3281
3281
  }
3282
- function Ss(t) {
3282
+ function Cs(t) {
3283
3283
  return function(e) {
3284
3284
  function o(r, i, a) {
3285
3285
  return e(r, i, a, t);
@@ -3287,7 +3287,7 @@ function Ss(t) {
3287
3287
  return o.displayName = `WithExtraProps(${e.displayName || e.name || "Component"})`, o;
3288
3288
  };
3289
3289
  }
3290
- function Cs(t, e, o, r) {
3290
+ function Is(t, e, o, r) {
3291
3291
  const a = [...o.selected].filter((u) => u.toLowerCase().indexOf(o.text.toLowerCase()) !== -1).sort().map((u) => (
3292
3292
  /* eslint-disable-next-line jsx-a11y/anchor-is-valid */
3293
3293
  /* @__PURE__ */ n(
@@ -3313,7 +3313,7 @@ function Cs(t, e, o, r) {
3313
3313
  ] })
3314
3314
  ] });
3315
3315
  }
3316
- function Is(t) {
3316
+ function Ms(t) {
3317
3317
  const { hardware: e, disabled: o = !1 } = t, { online: r } = e;
3318
3318
  if (!r)
3319
3319
  return /* @__PURE__ */ n(le, { children: "Offline" });
@@ -3350,10 +3350,10 @@ function Is(t) {
3350
3350
  multiple: !0,
3351
3351
  flip: !0,
3352
3352
  positionFixed: !0,
3353
- renderInput: xs,
3354
- renderMenu: Ss({
3353
+ renderInput: Ss,
3354
+ renderMenu: Cs({
3355
3355
  name: e.id
3356
- })(Cs),
3356
+ })(Is),
3357
3357
  onChange: a,
3358
3358
  inputProps: {
3359
3359
  // @ts-expect-error
@@ -3366,7 +3366,7 @@ function Is(t) {
3366
3366
  }
3367
3367
  );
3368
3368
  }
3369
- function Ms(t) {
3369
+ function Ts(t) {
3370
3370
  const { hardware: e, options: o = {}, disabled: r = !1 } = t;
3371
3371
  function i() {
3372
3372
  return e.actions.call("set_active");
@@ -3387,7 +3387,7 @@ function Ms(t) {
3387
3387
  }
3388
3388
  )
3389
3389
  }
3390
- ) }), u = /* @__PURE__ */ n(Is, { ...t });
3390
+ ) }), u = /* @__PURE__ */ n(Ms, { ...t });
3391
3391
  return /* @__PURE__ */ n(
3392
3392
  M,
3393
3393
  {
@@ -3399,7 +3399,7 @@ function Ms(t) {
3399
3399
  }
3400
3400
  );
3401
3401
  }
3402
- const Ts = [], Ds = "mg", As = "mg", ks = !0, Es = {
3402
+ const Ds = [], As = "mg", ks = "mg", Es = !0, Fs = {
3403
3403
  available: [
3404
3404
  "lima:image",
3405
3405
  "diode1",
@@ -3410,19 +3410,19 @@ const Ts = [], Ds = "mg", As = "mg", ks = !0, Es = {
3410
3410
  disabled: [
3411
3411
  "machinfo:current"
3412
3412
  ]
3413
- }, Fs = "bliss", Rs = !1, Ps = "measurementgroup", Us = {
3414
- callables: Ts,
3415
- id: Ds,
3416
- name: As,
3417
- online: ks,
3418
- properties: Es,
3419
- protocol: Fs,
3420
- require_staff: Rs,
3421
- type: Ps
3422
- }, Ls = {
3423
- default: Us
3413
+ }, Rs = "bliss", Ps = !1, Us = "measurementgroup", Ls = {
3414
+ callables: Ds,
3415
+ id: As,
3416
+ name: ks,
3417
+ online: Es,
3418
+ properties: Fs,
3419
+ protocol: Rs,
3420
+ require_staff: Ps,
3421
+ type: Us
3422
+ }, Vs = {
3423
+ default: Ls
3424
3424
  };
3425
- function Vs(t) {
3425
+ function Hs(t) {
3426
3426
  const { name: e, alias: o, useHardwareContext: r } = t, [i, a] = C({
3427
3427
  available: [
3428
3428
  "lima:image",
@@ -3479,12 +3479,12 @@ function Vs(t) {
3479
3479
  }
3480
3480
  );
3481
3481
  }
3482
- const Hs = {
3483
- default: Ms
3484
- }, Gs = {
3485
- variants: Hs,
3486
- mocks: Ls,
3487
- simulator: Vs
3482
+ const Gs = {
3483
+ default: Ts
3484
+ }, qs = {
3485
+ variants: Gs,
3486
+ mocks: Vs,
3487
+ simulator: Hs
3488
3488
  }, Je = {
3489
3489
  description: "Unknown state is exposed",
3490
3490
  variant: "fatal",
@@ -3591,7 +3591,7 @@ function We(t) {
3591
3591
  }
3592
3592
  );
3593
3593
  }
3594
- function qs(t) {
3594
+ function Bs(t) {
3595
3595
  const { hardware: e } = t;
3596
3596
  return /* @__PURE__ */ n(We, { hardware: e });
3597
3597
  }
@@ -3649,7 +3649,7 @@ function Ve(t) {
3649
3649
  }
3650
3650
  );
3651
3651
  }
3652
- function Bs(t) {
3652
+ function Ws(t) {
3653
3653
  const { states: e, hardware: o } = t, { properties: r } = o;
3654
3654
  function i(s) {
3655
3655
  return o.actions.setProperty("velocity", s);
@@ -3742,7 +3742,7 @@ function Ie(t) {
3742
3742
  ),
3743
3743
  r.unit && /* @__PURE__ */ n(N.Text, { children: r.unit }),
3744
3744
  !c.MOVING && o.extended && /* @__PURE__ */ n(
3745
- Bs,
3745
+ Ws,
3746
3746
  {
3747
3747
  hardware: e,
3748
3748
  disabled: t.disabled,
@@ -3777,7 +3777,7 @@ function xt(t) {
3777
3777
  e.properties.unit && /* @__PURE__ */ n("div", { className: "ms-auto", children: /* @__PURE__ */ n("small", { children: /* @__PURE__ */ n("small", { children: e.properties.unit }) }) })
3778
3778
  ] });
3779
3779
  }
3780
- function Ws(t) {
3780
+ function zs(t) {
3781
3781
  const { hardware: e } = t, o = /* @__PURE__ */ n(x, { name: "Motor", icon: "fam-hardware-motor", online: e.online }), r = /* @__PURE__ */ n(We, { hardware: e }), i = t.options ? t.options.header : "top";
3782
3782
  return i === "none" ? /* @__PURE__ */ n(xt, { ...t }) : /* @__PURE__ */ n(
3783
3783
  M,
@@ -3801,13 +3801,13 @@ const Y = {
3801
3801
  transient: "#4285eb",
3802
3802
  text: "black",
3803
3803
  textD10: "black"
3804
- }, zs = {
3804
+ }, js = {
3805
3805
  up: 0,
3806
3806
  right: -90,
3807
3807
  down: 180,
3808
3808
  left: 90
3809
3809
  };
3810
- function js(t) {
3810
+ function Ys(t) {
3811
3811
  const {
3812
3812
  size: e,
3813
3813
  value: o = null,
@@ -3839,7 +3839,7 @@ function js(t) {
3839
3839
  const ie = a - i;
3840
3840
  return ie >= 360 ? null : [(a - 360) / 360, (a - 360 + 360 - ie) / 360];
3841
3841
  }
3842
- const ce = pe(), mn = d === "clockwise" ? 360 : -360, pn = zs[u] + (d === "clockwise" ? 0 : 360);
3842
+ const ce = pe(), mn = d === "clockwise" ? 360 : -360, pn = js[u] + (d === "clockwise" ? 0 : 360);
3843
3843
  return /* @__PURE__ */ m(
3844
3844
  Ft,
3845
3845
  {
@@ -4047,22 +4047,22 @@ function js(t) {
4047
4047
  }
4048
4048
  );
4049
4049
  }
4050
- function Ys(t) {
4050
+ function Ks(t) {
4051
4051
  const { hardware: e, options: o = {} } = t, r = Dn(
4052
4052
  (p) => {
4053
4053
  e.actions.call("move", p);
4054
4054
  },
4055
4055
  [e.actions],
4056
4056
  100
4057
- ), i = ze(e.properties.state, e.user_tags), a = i.MOVING ? e.properties.target : void 0, s = al(e, o), c = /* @__PURE__ */ n(
4057
+ ), i = ze(e.properties.state, e.user_tags), a = i.MOVING ? e.properties.target : void 0, s = sl(e, o), c = /* @__PURE__ */ n(
4058
4058
  x,
4059
4059
  {
4060
4060
  name: "Motor",
4061
4061
  icon: "fam-hardware-motor-r",
4062
4062
  online: e.online
4063
4063
  }
4064
- ), u = sl(e), d = /* @__PURE__ */ n(We, { hardware: e }), l = /* @__PURE__ */ n(
4065
- js,
4064
+ ), u = cl(e), d = /* @__PURE__ */ n(We, { hardware: e }), l = /* @__PURE__ */ n(
4065
+ Ys,
4066
4066
  {
4067
4067
  className: "mx-auto my-auto",
4068
4068
  size: 100,
@@ -4088,11 +4088,11 @@ function Ys(t) {
4088
4088
  }
4089
4089
  );
4090
4090
  }
4091
- function Ks(t, e) {
4091
+ function Qs(t, e) {
4092
4092
  return t ? e.FAULT ? "danger" : e.MOVING ? "transient" : "secondary" : "secondary";
4093
4093
  }
4094
4094
  function Wt(t) {
4095
- const { hardware: e, options: o = {} } = t, { online: r = !1, properties: i = {} } = e, { state: a, position: s, unit: c = null, display_digits: u } = i, d = ze(a, []), l = o.name ?? e.alias ?? e.name ?? e.id, f = Ks(r, d);
4095
+ const { hardware: e, options: o = {} } = t, { online: r = !1, properties: i = {} } = e, { state: a, position: s, unit: c = null, display_digits: u } = i, d = ze(a, []), l = o.name ?? e.alias ?? e.name ?? e.id, f = Qs(r, d);
4096
4096
  function p() {
4097
4097
  let w = "";
4098
4098
  return s !== void 0 && (s === null ? w = "null" : Number.isFinite(s) ? w += s.toFixed(u ?? 2) : w = `${s}`), c !== null && c !== "" && (w = `${w} ${c}`), w;
@@ -4103,12 +4103,12 @@ function Wt(t) {
4103
4103
  /* @__PURE__ */ n(P, { bg: f, children: h })
4104
4104
  ] });
4105
4105
  }
4106
- const Qs = [
4106
+ const Xs = [
4107
4107
  "move",
4108
4108
  "stop",
4109
4109
  "wait",
4110
4110
  "rmove"
4111
- ], Xs = "omega", Zs = "omega 123", Js = !0, ec = {
4111
+ ], Zs = "omega", Js = "omega 123", ec = !0, tc = {
4112
4112
  offset: 0,
4113
4113
  sign: 1,
4114
4114
  acceleration: 300,
@@ -4124,22 +4124,22 @@ const Qs = [
4124
4124
  unit: "um",
4125
4125
  velocity: 1e3,
4126
4126
  display_digits: 4
4127
- }, tc = "bliss", nc = !1, oc = "motor", rc = [], ic = {
4128
- callables: Qs,
4129
- id: Xs,
4130
- name: Zs,
4131
- online: Js,
4132
- properties: ec,
4133
- protocol: tc,
4134
- require_staff: nc,
4135
- type: oc,
4136
- user_tags: rc
4137
- }, ac = [
4127
+ }, nc = "bliss", oc = !1, rc = "motor", ic = [], ac = {
4128
+ callables: Xs,
4129
+ id: Zs,
4130
+ name: Js,
4131
+ online: ec,
4132
+ properties: tc,
4133
+ protocol: nc,
4134
+ require_staff: oc,
4135
+ type: rc,
4136
+ user_tags: ic
4137
+ }, sc = [
4138
4138
  "move",
4139
4139
  "stop",
4140
4140
  "wait",
4141
4141
  "rmove"
4142
- ], sc = "omega", cc = "omega 123", lc = !0, dc = {
4142
+ ], cc = "omega", lc = "omega 123", dc = !0, uc = {
4143
4143
  offset: 0,
4144
4144
  sign: 1,
4145
4145
  acceleration: 300,
@@ -4154,22 +4154,22 @@ const Qs = [
4154
4154
  tolerance: 1e-4,
4155
4155
  unit: "um",
4156
4156
  velocity: 1e3
4157
- }, uc = "bliss", fc = !1, mc = "motor", pc = [], hc = {
4158
- callables: ac,
4159
- id: sc,
4160
- name: cc,
4161
- online: lc,
4162
- properties: dc,
4163
- protocol: uc,
4164
- require_staff: fc,
4165
- type: mc,
4166
- user_tags: pc
4167
- }, gc = [
4157
+ }, fc = "bliss", mc = !1, pc = "motor", hc = [], gc = {
4158
+ callables: sc,
4159
+ id: cc,
4160
+ name: lc,
4161
+ online: dc,
4162
+ properties: uc,
4163
+ protocol: fc,
4164
+ require_staff: mc,
4165
+ type: pc,
4166
+ user_tags: hc
4167
+ }, wc = [
4168
4168
  "move",
4169
4169
  "wait",
4170
4170
  "stop",
4171
4171
  "rmove"
4172
- ], wc = "omega", yc = "omega 123", vc = !0, Nc = {
4172
+ ], yc = "omega", vc = "omega 123", Nc = !0, bc = {
4173
4173
  acceleration: null,
4174
4174
  limits: [
4175
4175
  null,
@@ -4185,22 +4185,22 @@ const Qs = [
4185
4185
  tolerance: 1e-4,
4186
4186
  unit: "deg",
4187
4187
  velocity: null
4188
- }, bc = "bliss", _c = !1, $c = "motor", Oc = [], xc = {
4189
- callables: gc,
4190
- id: wc,
4191
- name: yc,
4192
- online: vc,
4193
- properties: Nc,
4194
- protocol: bc,
4195
- require_staff: _c,
4196
- type: $c,
4197
- user_tags: Oc
4198
- }, Sc = [
4188
+ }, _c = "bliss", $c = !1, Oc = "motor", xc = [], Sc = {
4189
+ callables: wc,
4190
+ id: yc,
4191
+ name: vc,
4192
+ online: Nc,
4193
+ properties: bc,
4194
+ protocol: _c,
4195
+ require_staff: $c,
4196
+ type: Oc,
4197
+ user_tags: xc
4198
+ }, Cc = [
4199
4199
  "move",
4200
4200
  "wait",
4201
4201
  "stop",
4202
4202
  "rmove"
4203
- ], Cc = "omega", Ic = "omega 123", Mc = !0, Tc = {
4203
+ ], Ic = "omega", Mc = "omega 123", Tc = !0, Dc = {
4204
4204
  acceleration: null,
4205
4205
  limits: [
4206
4206
  null,
@@ -4214,37 +4214,37 @@ const Qs = [
4214
4214
  tolerance: 1e-4,
4215
4215
  unit: "deg",
4216
4216
  velocity: null
4217
- }, Dc = "bliss", Ac = !1, kc = "motor", Ec = [], Fc = {
4218
- callables: Sc,
4219
- id: Cc,
4220
- name: Ic,
4221
- online: Mc,
4222
- properties: Tc,
4223
- protocol: Dc,
4224
- require_staff: Ac,
4225
- type: kc,
4226
- user_tags: Ec
4227
- }, Rc = [
4217
+ }, Ac = "bliss", kc = !1, Ec = "motor", Fc = [], Rc = {
4218
+ callables: Cc,
4219
+ id: Ic,
4220
+ name: Mc,
4221
+ online: Tc,
4222
+ properties: Dc,
4223
+ protocol: Ac,
4224
+ require_staff: kc,
4225
+ type: Ec,
4226
+ user_tags: Fc
4227
+ }, Pc = [
4228
4228
  "move",
4229
4229
  "wait",
4230
4230
  "stop",
4231
4231
  "rmove"
4232
- ], Pc = "omega", Uc = "omega 123", Lc = !1, Vc = {}, Hc = "bliss", Gc = !1, qc = "motor", Bc = [], Wc = {
4233
- callables: Rc,
4234
- id: Pc,
4235
- name: Uc,
4236
- online: Lc,
4237
- properties: Vc,
4238
- protocol: Hc,
4239
- require_staff: Gc,
4240
- type: qc,
4241
- user_tags: Bc
4242
- }, zc = [
4232
+ ], Uc = "omega", Lc = "omega 123", Vc = !1, Hc = {}, Gc = "bliss", qc = !1, Bc = "motor", Wc = [], zc = {
4233
+ callables: Pc,
4234
+ id: Uc,
4235
+ name: Lc,
4236
+ online: Vc,
4237
+ properties: Hc,
4238
+ protocol: Gc,
4239
+ require_staff: qc,
4240
+ type: Bc,
4241
+ user_tags: Wc
4242
+ }, jc = [
4243
4243
  "move",
4244
4244
  "wait",
4245
4245
  "stop",
4246
4246
  "rmove"
4247
- ], jc = "omega", Yc = "omega 123", Kc = !0, Qc = {
4247
+ ], Yc = "omega", Kc = "omega 123", Qc = !0, Xc = {
4248
4248
  acceleration: null,
4249
4249
  limits: [
4250
4250
  null,
@@ -4260,25 +4260,25 @@ const Qs = [
4260
4260
  tolerance: 1e-4,
4261
4261
  unit: "deg",
4262
4262
  velocity: null
4263
- }, Xc = "bliss", Zc = !1, Jc = "motor", el = [], tl = {
4264
- callables: zc,
4265
- id: jc,
4266
- name: Yc,
4267
- online: Kc,
4268
- properties: Qc,
4269
- protocol: Xc,
4270
- require_staff: Zc,
4271
- type: Jc,
4272
- user_tags: el
4273
- }, nl = {
4274
- default: ic,
4275
- halfMotor: hc,
4276
- unknownMotor: xc,
4277
- notReadyMotor: Fc,
4278
- disconnectedMotor: Wc,
4279
- powerOffMotor: tl
4263
+ }, Zc = "bliss", Jc = !1, el = "motor", tl = [], nl = {
4264
+ callables: jc,
4265
+ id: Yc,
4266
+ name: Kc,
4267
+ online: Qc,
4268
+ properties: Xc,
4269
+ protocol: Zc,
4270
+ require_staff: Jc,
4271
+ type: el,
4272
+ user_tags: tl
4273
+ }, ol = {
4274
+ default: ac,
4275
+ halfMotor: gc,
4276
+ unknownMotor: Sc,
4277
+ notReadyMotor: Rc,
4278
+ disconnectedMotor: zc,
4279
+ powerOffMotor: nl
4280
4280
  };
4281
- function ol(t) {
4281
+ function rl(t) {
4282
4282
  const {
4283
4283
  name: e = "omega",
4284
4284
  minLimit: o = -999999999,
@@ -4360,23 +4360,23 @@ function ze(t, e = []) {
4360
4360
  return i.READY === void 0 && r && i.OFF && (i.READY = !0), i;
4361
4361
  }, [t, e]);
4362
4362
  }
4363
- function rl(t) {
4363
+ function il(t) {
4364
4364
  return t.type === "motor";
4365
4365
  }
4366
4366
  function oe(t) {
4367
4367
  const e = ee(t);
4368
- return e === null || !rl(e) ? null : e;
4368
+ return e === null || !il(e) ? null : e;
4369
4369
  }
4370
- const il = {
4370
+ const al = {
4371
4371
  default: Ie,
4372
- text: Ws,
4373
- rotation: Ys,
4372
+ text: zs,
4373
+ rotation: Ks,
4374
4374
  // Override base state
4375
- state: qs,
4375
+ state: Bs,
4376
4376
  // Override base monitor
4377
4377
  monitor: Wt
4378
4378
  };
4379
- function al(t, e) {
4379
+ function sl(t, e) {
4380
4380
  if ((e == null ? void 0 : e.clockwise) !== void 0)
4381
4381
  return e.clockwise;
4382
4382
  const o = t.properties.sign < 0, r = t.user_tags.includes("dial.anticlockwise"), i = t.user_tags.includes("dial.clockwise");
@@ -4384,7 +4384,7 @@ function al(t, e) {
4384
4384
  "Both tags 'dial.clockwise' and 'dial.anticlockwise' are defined"
4385
4385
  ), (i || !r) !== o;
4386
4386
  }
4387
- function sl(t) {
4387
+ function cl(t) {
4388
4388
  var i;
4389
4389
  const e = (i = t.properties) == null ? void 0 : i.limits;
4390
4390
  if (e == null)
@@ -4395,10 +4395,10 @@ function sl(t) {
4395
4395
  Number.isFinite(r) ? r : void 0
4396
4396
  ];
4397
4397
  }
4398
- const cl = {
4399
- variants: il,
4400
- mocks: nl,
4401
- simulator: ol,
4398
+ const ll = {
4399
+ variants: al,
4400
+ mocks: ol,
4401
+ simulator: rl,
4402
4402
  monitor: Wt
4403
4403
  };
4404
4404
  function Ng(t, e) {
@@ -4426,7 +4426,7 @@ function st(t) {
4426
4426
  }[i] || "success";
4427
4427
  return /* @__PURE__ */ n(P, { bg: s, children: i });
4428
4428
  }
4429
- function ll(t) {
4429
+ function dl(t) {
4430
4430
  const { hardware: e, options: o = {} } = t, r = q(null);
4431
4431
  X(() => {
4432
4432
  if (!r.current) {
@@ -4528,8 +4528,8 @@ const zt = He(
4528
4528
  ] })
4529
4529
  );
4530
4530
  zt.displayName = "DropdownButton2";
4531
- const dl = zt;
4532
- function ul(t) {
4531
+ const ul = zt;
4532
+ function fl(t) {
4533
4533
  const { currentPositionId: e, position: o, disabled: r, onSelect: i, filter: a } = t, s = o.position, c = s === e, u = c ? "fa fa-fw fa-dot-circle-o" : "fa fa-fw fa-circle-o";
4534
4534
  return H(() => {
4535
4535
  var f, p;
@@ -4559,7 +4559,7 @@ function ul(t) {
4559
4559
  o.position
4560
4560
  ) : /* @__PURE__ */ n(O, {});
4561
4561
  }
4562
- function fl(t, e) {
4562
+ function ml(t, e) {
4563
4563
  if (t === null)
4564
4564
  return null;
4565
4565
  for (const o of e)
@@ -4567,7 +4567,7 @@ function fl(t, e) {
4567
4567
  return o;
4568
4568
  return null;
4569
4569
  }
4570
- function ml(t) {
4570
+ function pl(t) {
4571
4571
  const { positionId: e, targetPositionId: o, hardware: r } = t, { properties: i = {} } = r, { positions: a = [] } = i;
4572
4572
  function s() {
4573
4573
  return o ? /* @__PURE__ */ n(P, { bg: "transient", children: o }) : e ? /* @__PURE__ */ n(P, { children: e }) : /* @__PURE__ */ n(P, { bg: "warning", children: "unknown" });
@@ -4575,7 +4575,7 @@ function ml(t) {
4575
4575
  const c = s(), u = H(() => {
4576
4576
  if (o)
4577
4577
  return "Moving...";
4578
- const d = fl(e, a);
4578
+ const d = ml(e, a);
4579
4579
  return d === null ? "Position not described" : d.description ?? "";
4580
4580
  }, [o, e, a]);
4581
4581
  return /* @__PURE__ */ m(O, { children: [
@@ -4591,7 +4591,7 @@ function ml(t) {
4591
4591
  )
4592
4592
  ] });
4593
4593
  }
4594
- function pl(t) {
4594
+ function hl(t) {
4595
4595
  const { hardware: e, options: o = {} } = t, { properties: r = {} } = e, i = r.state === "READY", a = (r == null ? void 0 : r.state) === "MOVING", s = t.disabled || !e.online || !i;
4596
4596
  function c(I) {
4597
4597
  e.actions.call("move", I);
@@ -4616,11 +4616,11 @@ function pl(t) {
4616
4616
  function y() {
4617
4617
  return /* @__PURE__ */ m(N, { className: "flex-nowrap", style: { alignItems: "stretch" }, children: [
4618
4618
  /* @__PURE__ */ m(
4619
- dl,
4619
+ ul,
4620
4620
  {
4621
4621
  variant: "secondary",
4622
4622
  title: /* @__PURE__ */ n(
4623
- ml,
4623
+ pl,
4624
4624
  {
4625
4625
  positionId: h,
4626
4626
  targetPositionId: f,
@@ -4656,7 +4656,7 @@ function pl(t) {
4656
4656
  )
4657
4657
  ] }),
4658
4658
  r.positions.map((I) => /* @__PURE__ */ n(
4659
- ul,
4659
+ fl,
4660
4660
  {
4661
4661
  currentPositionId: h,
4662
4662
  position: I,
@@ -4697,10 +4697,10 @@ function pl(t) {
4697
4697
  }
4698
4698
  );
4699
4699
  }
4700
- const hl = [
4700
+ const gl = [
4701
4701
  "move",
4702
4702
  "stop"
4703
- ], gl = "beamstop", wl = "beamstop", yl = !0, vl = {
4703
+ ], wl = "beamstop", yl = "beamstop", vl = !0, Nl = {
4704
4704
  position: "OUT",
4705
4705
  positions: [
4706
4706
  {
@@ -4733,19 +4733,19 @@ const hl = [
4733
4733
  }
4734
4734
  ],
4735
4735
  state: "READY"
4736
- }, Nl = "bliss", bl = !1, _l = "multiposition", $l = {
4737
- callables: hl,
4738
- id: gl,
4739
- name: wl,
4740
- online: yl,
4741
- properties: vl,
4742
- protocol: Nl,
4743
- require_staff: bl,
4744
- type: _l
4745
- }, Ol = {
4746
- default: $l
4736
+ }, bl = "bliss", _l = !1, $l = "multiposition", Ol = {
4737
+ callables: gl,
4738
+ id: wl,
4739
+ name: yl,
4740
+ online: vl,
4741
+ properties: Nl,
4742
+ protocol: bl,
4743
+ require_staff: _l,
4744
+ type: $l
4745
+ }, xl = {
4746
+ default: Ol
4747
4747
  };
4748
- function xl(t) {
4748
+ function Sl(t) {
4749
4749
  const { name: e, alias: o, useHardwareContext: r } = t, [i, a] = C("empty"), [s, c] = C("READY");
4750
4750
  async function u(f, p) {
4751
4751
  if (f === "move") {
@@ -4782,14 +4782,14 @@ function xl(t) {
4782
4782
  }
4783
4783
  );
4784
4784
  }
4785
- const Sl = {
4785
+ const Cl = {
4786
4786
  state: st,
4787
- default: ll,
4788
- default2: pl
4789
- }, Cl = {
4790
- variants: Sl,
4791
- mocks: Ol,
4792
- simulator: xl
4787
+ default: dl,
4788
+ default2: hl
4789
+ }, Il = {
4790
+ variants: Cl,
4791
+ mocks: xl,
4792
+ simulator: Sl
4793
4793
  };
4794
4794
  function jt(t) {
4795
4795
  const { hardware: e } = t, o = e.online ? e.properties.state : "OFFLINE", r = {
@@ -4802,11 +4802,11 @@ function jt(t) {
4802
4802
  }, i = r[o] || r.UNKNOWN;
4803
4803
  return /* @__PURE__ */ n(V, { state: o, minWidth: 6, variant: i });
4804
4804
  }
4805
- function Il(t) {
4805
+ function Ml(t) {
4806
4806
  const { hardware: e } = t;
4807
4807
  return /* @__PURE__ */ n(jt, { hardware: e });
4808
4808
  }
4809
- function Ml(t) {
4809
+ function Tl(t) {
4810
4810
  const { hardware: e, options: o = {} } = t, { properties: r } = e, { state: i } = r, a = i === "MOVING", s = i === "READY", c = a ? r.target_magnification || 0 : r.magnification || 0, d = [...r.available_magnifications ?? []];
4811
4811
  d.sort((w, g) => w > g ? 1 : g > w ? -1 : 0);
4812
4812
  const l = t.disabled || !e.online || !s, f = o.digits || 2;
@@ -4847,7 +4847,7 @@ function Ml(t) {
4847
4847
  ] })
4848
4848
  ] });
4849
4849
  }
4850
- function Tl(t) {
4850
+ function Dl(t) {
4851
4851
  const { hardware: e, options: o = {} } = t, r = e.properties.magnification || 0, i = o.digits || 2, a = !!o.allowtuning;
4852
4852
  return /* @__PURE__ */ m(O, { children: [
4853
4853
  /* @__PURE__ */ n(Z, { value: r.toFixed(i) }),
@@ -4949,7 +4949,7 @@ function Yt(t) {
4949
4949
  )
4950
4950
  ] });
4951
4951
  }
4952
- function Dl(t) {
4952
+ function Al(t) {
4953
4953
  const { hardware: e, options: o = {} } = t, { properties: r } = e, i = r.state === "MOVING", a = r.state === "READY", s = i ? r.target_magnification || 0 : r.magnification || 0, c = t.options.digits || 2;
4954
4954
  return /* @__PURE__ */ m(O, { children: [
4955
4955
  /* @__PURE__ */ n(
@@ -4970,7 +4970,7 @@ function Dl(t) {
4970
4970
  ] })
4971
4971
  ] });
4972
4972
  }
4973
- function Al(t) {
4973
+ function kl(t) {
4974
4974
  return /* @__PURE__ */ n(
4975
4975
  F.Control,
4976
4976
  {
@@ -4981,11 +4981,11 @@ function Al(t) {
4981
4981
  }
4982
4982
  );
4983
4983
  }
4984
- function kl(t) {
4984
+ function El(t) {
4985
4985
  const { hardware: e, options: o = {} } = t, r = /* @__PURE__ */ n(x, { name: "Optic", icon: "fam-hardware-optic", online: e.online }), i = /* @__PURE__ */ n(jt, { hardware: e });
4986
4986
  function a() {
4987
4987
  function c() {
4988
- return e.online ? e.properties.available_magnifications ? Ml : e.properties.magnification_range ? Dl : Tl : Al;
4988
+ return e.online ? e.properties.available_magnifications ? Tl : e.properties.magnification_range ? Al : Dl : kl;
4989
4989
  }
4990
4990
  const u = c();
4991
4991
  return /* @__PURE__ */ m(N, { children: [
@@ -5005,11 +5005,11 @@ function kl(t) {
5005
5005
  }
5006
5006
  );
5007
5007
  }
5008
- const El = [
5008
+ const Fl = [
5009
5009
  "magnification",
5010
5010
  "reset",
5011
5011
  "open"
5012
- ], Fl = "optic", Rl = "optic", Pl = !0, Ul = {
5012
+ ], Rl = "optic", Pl = "optic", Ul = !0, Ll = {
5013
5013
  state: "READY",
5014
5014
  magnification: 10,
5015
5015
  target_magnification: null,
@@ -5019,22 +5019,22 @@ const El = [
5019
5019
  10
5020
5020
  ],
5021
5021
  magnification_range: null
5022
- }, Ll = "bliss", Vl = !1, Hl = "optic", Fe = {
5023
- callables: El,
5024
- id: Fl,
5025
- name: Rl,
5026
- online: Pl,
5027
- properties: Ul,
5028
- protocol: Ll,
5029
- require_staff: Vl,
5030
- type: Hl
5031
- }, Gl = {
5022
+ }, Vl = "bliss", Hl = !1, Gl = "optic", Fe = {
5023
+ callables: Fl,
5024
+ id: Rl,
5025
+ name: Pl,
5026
+ online: Ul,
5027
+ properties: Ll,
5028
+ protocol: Vl,
5029
+ require_staff: Hl,
5030
+ type: Gl
5031
+ }, ql = {
5032
5032
  default: Fe,
5033
5033
  fixed: Fe,
5034
5034
  off: Fe,
5035
5035
  range: Fe
5036
5036
  };
5037
- function ql(t) {
5037
+ function Bl(t) {
5038
5038
  const { name: e, alias: o, kind: r, useHardwareContext: i } = t;
5039
5039
  function a() {
5040
5040
  return r === "fixed" ? {
@@ -5110,14 +5110,14 @@ function ql(t) {
5110
5110
  function bg(t) {
5111
5111
  return t.type === "optic";
5112
5112
  }
5113
- const Bl = {
5114
- default: kl,
5113
+ const Wl = {
5114
+ default: El,
5115
5115
  // Override base state
5116
- state: Il
5117
- }, Wl = {
5118
- variants: Bl,
5119
- mocks: Gl,
5120
- simulator: ql
5116
+ state: Ml
5117
+ }, zl = {
5118
+ variants: Wl,
5119
+ mocks: ql,
5120
+ simulator: Bl
5121
5121
  };
5122
5122
  function je(t) {
5123
5123
  const { hardware: e } = t, o = e.online ? e.properties.state : "OFFLINE", r = {
@@ -5131,11 +5131,11 @@ function je(t) {
5131
5131
  }, i = r[o] || r.UNKNOWN;
5132
5132
  return /* @__PURE__ */ n(V, { state: o, minWidth: 6, variant: i });
5133
5133
  }
5134
- function zl(t) {
5134
+ function jl(t) {
5135
5135
  const { hardware: e } = t;
5136
5136
  return /* @__PURE__ */ n(je, { hardware: e });
5137
5137
  }
5138
- function jl(t) {
5138
+ function Yl(t) {
5139
5139
  const { hardware: e, options: o } = t, r = t.disabled || !e.online, i = e.properties.state === "AWAITING_USER_INPUT", a = e.properties.state === "ABORTING", s = e.properties.state === "RUNNING" || i || a;
5140
5140
  function c(d) {
5141
5141
  o.foreground ? e.actions.call("run_foreground") : e.actions.call("start");
@@ -5166,7 +5166,7 @@ function jl(t) {
5166
5166
  }
5167
5167
  function St(t) {
5168
5168
  const { hardware: e, options: o = {} } = t, r = /* @__PURE__ */ n(x, { name: "Procedure", icon: "fa-cog", online: e.online }), i = /* @__PURE__ */ n(je, { hardware: e }), a = /* @__PURE__ */ n(B, { children: /* @__PURE__ */ n(
5169
- jl,
5169
+ Yl,
5170
5170
  {
5171
5171
  hardware: e,
5172
5172
  disabled: !t.operator,
@@ -5184,7 +5184,7 @@ function St(t) {
5184
5184
  }
5185
5185
  );
5186
5186
  }
5187
- function Yl(t) {
5187
+ function Kl(t) {
5188
5188
  const { hardware: e } = t, o = e.properties.state === "AWAITING_USER_INPUT", r = e.properties.state === "ABORTING", i = e.properties.state === "RUNNING";
5189
5189
  return r ? /* @__PURE__ */ m(P, { bg: "warning", children: [
5190
5190
  /* @__PURE__ */ n("i", { className: "fa-solid fa-heart-crack fa-beat" }),
@@ -5195,9 +5195,9 @@ function Yl(t) {
5195
5195
  ] }) : o ? /* @__PURE__ */ m(P, { bg: "warning", title: "A user input is expected", children: [
5196
5196
  /* @__PURE__ */ n("i", { className: "fa-solid fa-user fa-beat" }),
5197
5197
  " AWAITING INPUT"
5198
- ] }) : /* @__PURE__ */ n(Kl, { hardware: e });
5198
+ ] }) : /* @__PURE__ */ n(Ql, { hardware: e });
5199
5199
  }
5200
- function Kl(t) {
5200
+ function Ql(t) {
5201
5201
  const { hardware: e } = t, { previous_run_state: o, previous_run_exception: r } = e.properties, i = {
5202
5202
  NONE: ["secondary", null],
5203
5203
  ABORTED: ["warning", "fa-heart-crack"],
@@ -5213,8 +5213,8 @@ function Kl(t) {
5213
5213
  o
5214
5214
  ] });
5215
5215
  }
5216
- function Ql(t) {
5217
- const { hardware: e, options: o = {} } = t, r = /* @__PURE__ */ n(x, { name: "Procedure", icon: "fa-cog", online: e.online }), i = /* @__PURE__ */ n(je, { hardware: e }), a = /* @__PURE__ */ n(B, { children: /* @__PURE__ */ n("div", { children: /* @__PURE__ */ n("h3", { children: /* @__PURE__ */ n(Yl, { hardware: e }) }) }) }), s = o.header || "top";
5216
+ function Xl(t) {
5217
+ const { hardware: e, options: o = {} } = t, r = /* @__PURE__ */ n(x, { name: "Procedure", icon: "fa-cog", online: e.online }), i = /* @__PURE__ */ n(je, { hardware: e }), a = /* @__PURE__ */ n(B, { children: /* @__PURE__ */ n("div", { children: /* @__PURE__ */ n("h3", { children: /* @__PURE__ */ n(Kl, { hardware: e }) }) }) }), s = o.header || "top";
5218
5218
  return /* @__PURE__ */ n(
5219
5219
  M,
5220
5220
  {
@@ -5226,7 +5226,7 @@ function Ql(t) {
5226
5226
  }
5227
5227
  );
5228
5228
  }
5229
- function Xl(t) {
5229
+ function Zl(t) {
5230
5230
  const { hardware: e } = t, o = t.disabled || !e.online, r = e.properties.state === "AWAITING_USER_INPUT";
5231
5231
  function i(a) {
5232
5232
  e.actions.call("validate");
@@ -5241,8 +5241,8 @@ function Xl(t) {
5241
5241
  }
5242
5242
  ) });
5243
5243
  }
5244
- function Zl(t) {
5245
- const { hardware: e, options: o = {} } = t, r = /* @__PURE__ */ n(x, { name: "Procedure", icon: "fa-cog", online: e.online }), i = /* @__PURE__ */ n(je, { hardware: e }), a = /* @__PURE__ */ n(B, { children: /* @__PURE__ */ n(Xl, { hardware: e, disabled: !t.operator }) }), s = o.header || "top";
5244
+ function Jl(t) {
5245
+ const { hardware: e, options: o = {} } = t, r = /* @__PURE__ */ n(x, { name: "Procedure", icon: "fa-cog", online: e.online }), i = /* @__PURE__ */ n(je, { hardware: e }), a = /* @__PURE__ */ n(B, { children: /* @__PURE__ */ n(Zl, { hardware: e, disabled: !t.operator }) }), s = o.header || "top";
5246
5246
  return /* @__PURE__ */ n(
5247
5247
  M,
5248
5248
  {
@@ -5254,12 +5254,12 @@ function Zl(t) {
5254
5254
  }
5255
5255
  );
5256
5256
  }
5257
- const Jl = [
5257
+ const ed = [
5258
5258
  "start",
5259
5259
  "abort",
5260
5260
  "clear",
5261
5261
  "validate"
5262
- ], ed = "procedure", td = "procedure", nd = "procedure", od = "bliss", rd = !1, id = !0, ad = {
5262
+ ], td = "procedure", nd = "procedure", od = "procedure", rd = "bliss", id = !1, ad = !0, sd = {
5263
5263
  state: "STANDBY",
5264
5264
  previous_run_state: "NONE",
5265
5265
  previous_run_exception: null,
@@ -5307,34 +5307,34 @@ const Jl = [
5307
5307
  name: "roby"
5308
5308
  }
5309
5309
  }
5310
- }, sd = {
5311
- callables: Jl,
5312
- type: ed,
5313
- id: td,
5314
- name: nd,
5315
- protocol: od,
5316
- require_staff: rd,
5317
- online: id,
5318
- properties: ad
5319
5310
  }, cd = {
5320
- standby: sd
5311
+ callables: ed,
5312
+ type: td,
5313
+ id: nd,
5314
+ name: od,
5315
+ protocol: rd,
5316
+ require_staff: id,
5317
+ online: ad,
5318
+ properties: sd
5321
5319
  }, ld = {
5320
+ standby: cd
5321
+ }, dd = {
5322
5322
  default: St,
5323
5323
  manage: St,
5324
- execution: Ql,
5325
- validate: Zl,
5324
+ execution: Xl,
5325
+ validate: Jl,
5326
5326
  // Override base state
5327
- state: zl
5328
- }, dd = {
5329
- variants: ld,
5330
- mocks: cd
5327
+ state: jl
5328
+ }, ud = {
5329
+ variants: dd,
5330
+ mocks: ld
5331
5331
  };
5332
- function ud(t) {
5332
+ function fd(t) {
5333
5333
  return t.type === "procedure";
5334
5334
  }
5335
5335
  function _g(t) {
5336
5336
  const e = ee(t);
5337
- return e === null || !ud(e) ? null : e;
5337
+ return e === null || !fd(e) ? null : e;
5338
5338
  }
5339
5339
  function Kt(t) {
5340
5340
  return t === "OFF" ? "danger" : t === "READY" ? "success" : t === "MOVING" ? "transient" : "warning";
@@ -5349,7 +5349,7 @@ function Ct({ tooltip: t, children: e }) {
5349
5349
  }
5350
5350
  );
5351
5351
  }
5352
- function fd(t) {
5352
+ function md(t) {
5353
5353
  var f, p;
5354
5354
  const { hardware: e, options: o = {} } = t, { showOutput: r = !0, step: i, steps: a } = o;
5355
5355
  function s(h) {
@@ -5471,7 +5471,7 @@ function Qt(t) {
5471
5471
  ] })
5472
5472
  ] });
5473
5473
  }
5474
- function md({
5474
+ function pd({
5475
5475
  curves: t
5476
5476
  }) {
5477
5477
  const e = t[0].x ?? [], o = An(e, !0), { abscissaConfig: r } = kn();
@@ -5557,7 +5557,7 @@ function Dt(t) {
5557
5557
  )),
5558
5558
  /* @__PURE__ */ n(Ln, {}),
5559
5559
  /* @__PURE__ */ n(Vn, {}),
5560
- /* @__PURE__ */ n(md, { curves: a })
5560
+ /* @__PURE__ */ n(pd, { curves: a })
5561
5561
  ]
5562
5562
  }
5563
5563
  );
@@ -5639,7 +5639,7 @@ function Xt(t) {
5639
5639
  }
5640
5640
  ) });
5641
5641
  }
5642
- function pd(t) {
5642
+ function hd(t) {
5643
5643
  const { hardware: e, options: o } = t, { showOutput: r = !0, popupPlacement: i = "right", plotWidth: a } = o, s = /* @__PURE__ */ m(
5644
5644
  E,
5645
5645
  {
@@ -5665,7 +5665,7 @@ function pd(t) {
5665
5665
  }
5666
5666
  );
5667
5667
  }
5668
- const hd = null, gd = [], wd = null, yd = "regulation", vd = !0, Nd = {
5668
+ const gd = null, wd = [], yd = null, vd = "regulation", Nd = !0, bd = {
5669
5669
  deadband: 0.05,
5670
5670
  input_unit: "degC",
5671
5671
  input_value: 10.029739616019928,
@@ -5674,19 +5674,19 @@ const hd = null, gd = [], wd = null, yd = "regulation", vd = !0, Nd = {
5674
5674
  output_value: 8.556047391201504,
5675
5675
  setpoint: 10,
5676
5676
  state: "READY"
5677
- }, bd = "regulation", _d = [], $d = {
5678
- alias: hd,
5679
- errors: gd,
5680
- locked: wd,
5681
- name: yd,
5682
- online: vd,
5683
- properties: Nd,
5684
- type: bd,
5685
- user_tags: _d
5686
- }, Od = {
5687
- default: $d
5677
+ }, _d = "regulation", $d = [], Od = {
5678
+ alias: gd,
5679
+ errors: wd,
5680
+ locked: yd,
5681
+ name: vd,
5682
+ online: Nd,
5683
+ properties: bd,
5684
+ type: _d,
5685
+ user_tags: $d
5686
+ }, xd = {
5687
+ default: Od
5688
5688
  };
5689
- function xd(t) {
5689
+ function Sd(t) {
5690
5690
  const { name: e, alias: o, useHardwareContext: r } = t, [i, a] = C("READY"), [s, c] = C(0), [u, d] = C(0), [l, f] = C(10), p = q(Date.now()), h = () => {
5691
5691
  const v = Date.now(), I = (v - p.current) / 1e3;
5692
5692
  let k, S;
@@ -5735,15 +5735,15 @@ function xd(t) {
5735
5735
  }
5736
5736
  );
5737
5737
  }
5738
- const Sd = {
5739
- default: fd,
5738
+ const Cd = {
5739
+ default: md,
5740
5740
  plot: Xt,
5741
- popupplot: pd,
5741
+ popupplot: hd,
5742
5742
  monitor: Qt
5743
- }, Cd = {
5744
- variants: Sd,
5745
- mocks: Od,
5746
- simulator: xd,
5743
+ }, Id = {
5744
+ variants: Cd,
5745
+ mocks: xd,
5746
+ simulator: Sd,
5747
5747
  monitor: Qt
5748
5748
  };
5749
5749
  function Ye(t) {
@@ -5778,11 +5778,11 @@ function Ye(t) {
5778
5778
  }
5779
5779
  return /* @__PURE__ */ n(V, { state: r, minWidth: 6, variant: i() });
5780
5780
  }
5781
- function Id(t) {
5781
+ function Md(t) {
5782
5782
  const { hardware: e } = t;
5783
5783
  return /* @__PURE__ */ n(Ye, { hardware: e, useReadyState: !0 });
5784
5784
  }
5785
- function Md(t) {
5785
+ function Td(t) {
5786
5786
  const { hardware: e } = t;
5787
5787
  function o() {
5788
5788
  e.actions.call("reset");
@@ -5807,7 +5807,7 @@ function Md(t) {
5807
5807
  }
5808
5808
  );
5809
5809
  }
5810
- function Td(t) {
5810
+ function Dd(t) {
5811
5811
  const { hardware: e, options: o = {} } = t, r = /* @__PURE__ */ n(
5812
5812
  x,
5813
5813
  {
@@ -5844,7 +5844,7 @@ function Td(t) {
5844
5844
  children: u
5845
5845
  }
5846
5846
  ),
5847
- o.extended && /* @__PURE__ */ n(Md, { ...t })
5847
+ o.extended && /* @__PURE__ */ n(Td, { ...t })
5848
5848
  ] }), w = t.options.header || "top";
5849
5849
  return /* @__PURE__ */ n(
5850
5850
  M,
@@ -5857,7 +5857,7 @@ function Td(t) {
5857
5857
  }
5858
5858
  );
5859
5859
  }
5860
- function Dd(t) {
5860
+ function Ad(t) {
5861
5861
  var u;
5862
5862
  const { hardware: e, options: o = {} } = t;
5863
5863
  function r() {
@@ -5906,7 +5906,7 @@ function Dd(t) {
5906
5906
  ] }) })
5907
5907
  ] });
5908
5908
  }
5909
- function Ad(t) {
5909
+ function kd(t) {
5910
5910
  const { hardware: e, options: o = {} } = t, r = /* @__PURE__ */ n(
5911
5911
  x,
5912
5912
  {
@@ -5942,7 +5942,7 @@ function Ad(t) {
5942
5942
  value: p
5943
5943
  }
5944
5944
  ),
5945
- /* @__PURE__ */ n(Dd, { ...t })
5945
+ /* @__PURE__ */ n(Ad, { ...t })
5946
5946
  ] }), w = o.header || "top";
5947
5947
  return /* @__PURE__ */ n(
5948
5948
  M,
@@ -5974,53 +5974,53 @@ function Zt(t) {
5974
5974
  }
5975
5975
  return c;
5976
5976
  }
5977
- const kd = [
5977
+ const Ed = [
5978
5978
  "reset",
5979
5979
  "open",
5980
5980
  "close",
5981
5981
  "toggle"
5982
- ], Ed = "abs1", Fd = "abs1", Rd = !0, Pd = {
5982
+ ], Fd = "abs1", Rd = "abs1", Pd = !0, Ud = {
5983
5983
  closed_text: "",
5984
5984
  open_text: "",
5985
5985
  state: "OPEN",
5986
5986
  status: `Pneumatic Beam Shutter is open
5987
5987
  `,
5988
5988
  valid: !0
5989
- }, Ud = "tango", Ld = !0, Vd = "shutter", Hd = {
5990
- callables: kd,
5991
- id: Ed,
5992
- name: Fd,
5993
- online: Rd,
5994
- properties: Pd,
5995
- protocol: Ud,
5996
- require_staff: Ld,
5997
- type: Vd
5998
- }, Gd = [
5989
+ }, Ld = "tango", Vd = !0, Hd = "shutter", Gd = {
5990
+ callables: Ed,
5991
+ id: Fd,
5992
+ name: Rd,
5993
+ online: Pd,
5994
+ properties: Ud,
5995
+ protocol: Ld,
5996
+ require_staff: Vd,
5997
+ type: Hd
5998
+ }, qd = [
5999
5999
  "reset",
6000
6000
  "open",
6001
6001
  "close",
6002
6002
  "toggle"
6003
- ], qd = "abs1", Bd = "abs1", Wd = !0, zd = {
6003
+ ], Bd = "abs1", Wd = "abs1", zd = !0, jd = {
6004
6004
  closed_text: "",
6005
6005
  open_text: "",
6006
6006
  state: "CLOSED",
6007
6007
  status: `Pneumatic Beam Shutter is closed
6008
6008
  `,
6009
6009
  valid: !0
6010
- }, jd = "tango", Yd = !0, Kd = "shutter", Qd = {
6011
- callables: Gd,
6012
- id: qd,
6013
- name: Bd,
6014
- online: Wd,
6015
- properties: zd,
6016
- protocol: jd,
6017
- require_staff: Yd,
6018
- type: Kd
6019
- }, Xd = {
6020
- default: Hd,
6021
- closed: Qd
6010
+ }, Yd = "tango", Kd = !0, Qd = "shutter", Xd = {
6011
+ callables: qd,
6012
+ id: Bd,
6013
+ name: Wd,
6014
+ online: zd,
6015
+ properties: jd,
6016
+ protocol: Yd,
6017
+ require_staff: Kd,
6018
+ type: Qd
6019
+ }, Zd = {
6020
+ default: Gd,
6021
+ closed: Xd
6022
6022
  };
6023
- function Zd(t) {
6023
+ function Jd(t) {
6024
6024
  const { name: e, alias: o, useHardwareContext: r } = t, [i, a] = C("OPEN");
6025
6025
  async function s(d, l) {
6026
6026
  if (d === "open") {
@@ -6056,20 +6056,20 @@ function Zd(t) {
6056
6056
  }
6057
6057
  );
6058
6058
  }
6059
- const Jd = {
6060
- default: Td,
6061
- protected: Ad,
6059
+ const eu = {
6060
+ default: Dd,
6061
+ protected: kd,
6062
6062
  // Override default state
6063
- state: Id,
6063
+ state: Md,
6064
6064
  // Override default monitor
6065
6065
  monitor: Zt
6066
- }, eu = {
6067
- variants: Jd,
6068
- mocks: Xd,
6069
- simulator: Zd,
6066
+ }, tu = {
6067
+ variants: eu,
6068
+ mocks: Zd,
6069
+ simulator: Jd,
6070
6070
  monitor: Zt
6071
6071
  };
6072
- function tu(t) {
6072
+ function nu(t) {
6073
6073
  var l, f, p, h;
6074
6074
  const { properties: e } = t, o = (l = e.vgap) == null ? void 0 : l.slice(9), r = oe(o), i = (f = e.hgap) == null ? void 0 : f.slice(9), a = oe(i), s = (p = e.voffset) == null ? void 0 : p.slice(9), c = oe(s), u = (h = e.hoffset) == null ? void 0 : h.slice(9), d = oe(u);
6075
6075
  return H(() => {
@@ -6083,7 +6083,7 @@ function tu(t) {
6083
6083
  }, [r, a, c, d]);
6084
6084
  }
6085
6085
  function Jt(t) {
6086
- const { hardware: e } = t, o = tu(e), [r, i, a] = H(() => {
6086
+ const { hardware: e } = t, o = nu(e), [r, i, a] = H(() => {
6087
6087
  if (!e.online)
6088
6088
  return ["OFFLINE", "secondary", "No motor online"];
6089
6089
  if (o.vgap === null && o.hgap === null && o.voffset === null && o.hoffset === null)
@@ -6106,11 +6106,11 @@ function Jt(t) {
6106
6106
  }
6107
6107
  );
6108
6108
  }
6109
- function nu(t) {
6109
+ function ou(t) {
6110
6110
  const { hardware: e } = t;
6111
6111
  return /* @__PURE__ */ n(Jt, { hardware: e });
6112
6112
  }
6113
- function ou(t) {
6113
+ function ru(t) {
6114
6114
  var g, y, v, I;
6115
6115
  const { properties: e } = t, o = (g = e.vgap) == null ? void 0 : g.slice(9), r = oe(o), i = ye(o), a = (y = e.hgap) == null ? void 0 : y.slice(9), s = oe(a), c = ye(a), u = (v = e.voffset) == null ? void 0 : v.slice(9), d = oe(u), l = ye(u), f = (I = e.hoffset) == null ? void 0 : I.slice(9), p = oe(f), h = ye(f);
6116
6116
  function w(k, S) {
@@ -6123,7 +6123,7 @@ function ou(t) {
6123
6123
  hoffset: w(p, h)
6124
6124
  };
6125
6125
  }
6126
- function ru(t) {
6126
+ function iu(t) {
6127
6127
  const { hardware: e, operator: o, disabled: r, resolved: i } = t;
6128
6128
  return /* @__PURE__ */ m(D, { children: [
6129
6129
  /* @__PURE__ */ n(D.Toggle, { variant: "secondary" }),
@@ -6189,8 +6189,8 @@ function ru(t) {
6189
6189
  ] }) })
6190
6190
  ] });
6191
6191
  }
6192
- function iu(t) {
6193
- const { hardware: e, options: o = {} } = t, r = ou(e), { readonly: i = !1 } = o;
6192
+ function au(t) {
6193
+ const { hardware: e, options: o = {} } = t, r = ru(e), { readonly: i = !1 } = o;
6194
6194
  function a(p) {
6195
6195
  var g, y;
6196
6196
  const h = ((g = p == null ? void 0 : p.properties) == null ? void 0 : g.position) ?? null;
@@ -6235,11 +6235,11 @@ function iu(t) {
6235
6235
  }
6236
6236
  ),
6237
6237
  /* @__PURE__ */ n(N.Text, { children: l }),
6238
- !i && /* @__PURE__ */ n(ru, { ...t, resolved: r })
6238
+ !i && /* @__PURE__ */ n(iu, { ...t, resolved: r })
6239
6239
  ] });
6240
6240
  }
6241
- function au(t) {
6242
- const { hardware: e, options: o = {} } = t, r = /* @__PURE__ */ n(x, { name: "Slit", icon: "fam-hardware-motor", online: e.online }), i = /* @__PURE__ */ n(Jt, { hardware: e }), a = /* @__PURE__ */ n(iu, { ...t }), s = o.header || "top";
6241
+ function su(t) {
6242
+ const { hardware: e, options: o = {} } = t, r = /* @__PURE__ */ n(x, { name: "Slit", icon: "fam-hardware-motor", online: e.online }), i = /* @__PURE__ */ n(Jt, { hardware: e }), a = /* @__PURE__ */ n(au, { ...t }), s = o.header || "top";
6243
6243
  return /* @__PURE__ */ n(
6244
6244
  M,
6245
6245
  {
@@ -6251,52 +6251,52 @@ function au(t) {
6251
6251
  }
6252
6252
  );
6253
6253
  }
6254
- const su = "s1", cu = "s1", lu = !0, du = {
6254
+ const cu = "s1", lu = "s1", du = !0, uu = {
6255
6255
  vgap: "hardware:s1vg",
6256
6256
  voffset: "hardware:s1vo",
6257
6257
  hgap: "hardware:s1hg",
6258
6258
  hoffset: "hardware:s1ho"
6259
- }, uu = "slit", fu = {
6260
- id: su,
6261
- name: cu,
6262
- online: lu,
6263
- properties: du,
6264
- type: uu
6265
- }, mu = "s1", pu = "s1", hu = !0, gu = {
6259
+ }, fu = "slit", mu = {
6260
+ id: cu,
6261
+ name: lu,
6262
+ online: du,
6263
+ properties: uu,
6264
+ type: fu
6265
+ }, pu = "s1", hu = "s1", gu = !0, wu = {
6266
6266
  vgap: "hardware:",
6267
6267
  voffset: "hardware:",
6268
6268
  hgap: "hardware:s1hg",
6269
6269
  hoffset: "hardware:s1ho"
6270
- }, wu = "slit", yu = {
6271
- id: mu,
6272
- name: pu,
6273
- online: hu,
6274
- properties: gu,
6275
- type: wu
6276
- }, vu = "s1", Nu = "s1", bu = !0, _u = {
6270
+ }, yu = "slit", vu = {
6271
+ id: pu,
6272
+ name: hu,
6273
+ online: gu,
6274
+ properties: wu,
6275
+ type: yu
6276
+ }, Nu = "s1", bu = "s1", _u = !0, $u = {
6277
6277
  vgap: "hardware:s1vg",
6278
6278
  voffset: "hardware:s1vo",
6279
6279
  hgap: "hardware:",
6280
6280
  hoffset: "hardware:"
6281
- }, $u = "slit", Ou = {
6282
- id: vu,
6283
- name: Nu,
6284
- online: bu,
6285
- properties: _u,
6286
- type: $u
6287
- }, xu = {
6288
- default: fu,
6289
- horizontal: yu,
6290
- vertical: Ou
6281
+ }, Ou = "slit", xu = {
6282
+ id: Nu,
6283
+ name: bu,
6284
+ online: _u,
6285
+ properties: $u,
6286
+ type: Ou
6291
6287
  }, Su = {
6292
- default: au,
6293
- // Override default state
6294
- state: nu
6288
+ default: mu,
6289
+ horizontal: vu,
6290
+ vertical: xu
6295
6291
  }, Cu = {
6296
- variants: Su,
6297
- mocks: xu
6292
+ default: su,
6293
+ // Override default state
6294
+ state: ou
6295
+ }, Iu = {
6296
+ variants: Cu,
6297
+ mocks: Su
6298
6298
  };
6299
- function Iu(t) {
6299
+ function Mu(t) {
6300
6300
  const { hardware: e } = t, o = () => {
6301
6301
  e.actions.call(
6302
6302
  e.properties.state === "ON" ? "off" : "on"
@@ -6341,7 +6341,7 @@ function Iu(t) {
6341
6341
  }
6342
6342
  );
6343
6343
  }
6344
- function Mu(t) {
6344
+ function Tu(t) {
6345
6345
  const { hardware: e, options: o = {} } = t;
6346
6346
  return /* @__PURE__ */ m("div", { className: "hw-component", children: [
6347
6347
  /* @__PURE__ */ m("div", { className: "hw-head", children: [
@@ -6367,14 +6367,14 @@ function Mu(t) {
6367
6367
  }
6368
6368
  ),
6369
6369
  (e.properties.unit || o.unit) && /* @__PURE__ */ n(N.Text, { children: e.properties.unit || o.unit }),
6370
- /* @__PURE__ */ n(Iu, { ...t })
6370
+ /* @__PURE__ */ n(Mu, { ...t })
6371
6371
  ] }) })
6372
6372
  ] });
6373
6373
  }
6374
- const Tu = [
6374
+ const Du = [
6375
6375
  "off",
6376
6376
  "on"
6377
- ], Du = "ip121", Au = "ip121", ku = !0, Eu = {
6377
+ ], Au = "ip121", ku = "ip121", Eu = !0, Fu = {
6378
6378
  current: 3000000142492354e-19,
6379
6379
  pressure: 26000000730164174e-23,
6380
6380
  state: "ON",
@@ -6384,22 +6384,22 @@ ID21/v-var-ctrl/121 - Serial line OK
6384
6384
  Pump size: 75-55-40 SC/T
6385
6385
  `,
6386
6386
  voltage: 6998
6387
- }, Fu = "tango", Ru = !0, Pu = "pump", Uu = {
6388
- callables: Tu,
6389
- id: Du,
6390
- name: Au,
6391
- online: ku,
6392
- properties: Eu,
6393
- protocol: Fu,
6394
- require_staff: Ru,
6395
- type: Pu
6396
- }, Lu = {
6397
- default: Uu
6387
+ }, Ru = "tango", Pu = !0, Uu = "pump", Lu = {
6388
+ callables: Du,
6389
+ id: Au,
6390
+ name: ku,
6391
+ online: Eu,
6392
+ properties: Fu,
6393
+ protocol: Ru,
6394
+ require_staff: Pu,
6395
+ type: Uu
6398
6396
  }, Vu = {
6399
- default: Mu
6397
+ default: Lu
6400
6398
  }, Hu = {
6401
- variants: Vu,
6402
- mocks: Lu
6399
+ default: Tu
6400
+ }, Gu = {
6401
+ variants: Hu,
6402
+ mocks: Vu
6403
6403
  };
6404
6404
  function en(t) {
6405
6405
  const { hardware: e } = t, o = e.online ? e.properties.state : "OFFLINE", r = {
@@ -6413,7 +6413,7 @@ function en(t) {
6413
6413
  }, i = r[o] || r.UNKNOWN;
6414
6414
  return /* @__PURE__ */ n(V, { state: o, minWidth: 6, variant: i });
6415
6415
  }
6416
- function Gu(t) {
6416
+ function qu(t) {
6417
6417
  const { hardware: e } = t;
6418
6418
  return /* @__PURE__ */ n(en, { hardware: e });
6419
6419
  }
@@ -6467,7 +6467,7 @@ function Le(t) {
6467
6467
  }
6468
6468
  );
6469
6469
  }
6470
- function qu(t) {
6470
+ function Bu(t) {
6471
6471
  const { className: e, hardware: o, options: r = {}, style: i = {}, leftToRight: a } = t, { state: s } = o.properties ?? "OFFLINE", u = !(s === "IN_TOUCH") || t.disabled;
6472
6472
  function d(l) {
6473
6473
  const { distance: f, style: p } = l;
@@ -6591,7 +6591,7 @@ function qu(t) {
6591
6591
  }
6592
6592
  );
6593
6593
  }
6594
- function Bu(t) {
6594
+ function Wu(t) {
6595
6595
  const { hardware: e, options: o, disabled: r, leftToRight: i } = t, { state: a } = e.properties ?? "OFFLINE", s = a === "RETRACTED", c = a === "IN_TOUCH", u = a === "LOST", [d, l] = C(!1);
6596
6596
  function f() {
6597
6597
  return s ? i ? "ms-0" : "ms-auto" : c ? i ? "ms-auto" : "ms-0" : "mx-auto";
@@ -6615,7 +6615,7 @@ function Bu(t) {
6615
6615
  }
6616
6616
  ),
6617
6617
  /* @__PURE__ */ n(
6618
- qu,
6618
+ Bu,
6619
6619
  {
6620
6620
  className: p,
6621
6621
  ...t,
@@ -6682,7 +6682,7 @@ function Bu(t) {
6682
6682
  }
6683
6683
  );
6684
6684
  }
6685
- function Wu(t) {
6685
+ function zu(t) {
6686
6686
  const { hardware: e, options: o = {} } = t, r = (o.orientation ?? "right-left") === "left-right", i = /* @__PURE__ */ n(
6687
6687
  x,
6688
6688
  {
@@ -6692,7 +6692,7 @@ function Wu(t) {
6692
6692
  }
6693
6693
  ), a = /* @__PURE__ */ n(en, { hardware: e });
6694
6694
  function s() {
6695
- return /* @__PURE__ */ n(Bu, { ...t, leftToRight: r });
6695
+ return /* @__PURE__ */ n(Wu, { ...t, leftToRight: r });
6696
6696
  }
6697
6697
  const c = o.header || "top";
6698
6698
  return /* @__PURE__ */ n(
@@ -6706,26 +6706,26 @@ function Wu(t) {
6706
6706
  }
6707
6707
  );
6708
6708
  }
6709
- const zu = [
6709
+ const ju = [
6710
6710
  "move_in",
6711
6711
  "move_out",
6712
6712
  "push",
6713
6713
  "sync_hard"
6714
- ], ju = "pusher", Yu = "pusher", Ku = !0, Qu = {
6714
+ ], Yu = "pusher", Ku = "pusher", Qu = !0, Xu = {
6715
6715
  state: "RETRACTED"
6716
- }, Xu = "bliss", Zu = !1, Ju = "pusher", ef = {
6717
- callables: zu,
6718
- id: ju,
6719
- name: Yu,
6720
- online: Ku,
6721
- properties: Qu,
6722
- protocol: Xu,
6723
- require_staff: Zu,
6724
- type: Ju
6725
- }, tf = {
6726
- default: ef
6716
+ }, Zu = "bliss", Ju = !1, ef = "pusher", tf = {
6717
+ callables: ju,
6718
+ id: Yu,
6719
+ name: Ku,
6720
+ online: Qu,
6721
+ properties: Xu,
6722
+ protocol: Zu,
6723
+ require_staff: Ju,
6724
+ type: ef
6725
+ }, nf = {
6726
+ default: tf
6727
6727
  };
6728
- function nf(t) {
6728
+ function of(t) {
6729
6729
  const { name: e, alias: o, useHardwareContext: r } = t, [i, a] = C("RETRACTED");
6730
6730
  async function s(d, l) {
6731
6731
  if (d === "move_in") {
@@ -6758,14 +6758,14 @@ function nf(t) {
6758
6758
  }
6759
6759
  );
6760
6760
  }
6761
- const of = {
6762
- default: Wu,
6761
+ const rf = {
6762
+ default: zu,
6763
6763
  // Override base state
6764
- state: Gu
6765
- }, rf = {
6766
- variants: of,
6767
- mocks: tf,
6768
- simulator: nf
6764
+ state: qu
6765
+ }, af = {
6766
+ variants: rf,
6767
+ mocks: nf,
6768
+ simulator: of
6769
6769
  };
6770
6770
  function ct(t) {
6771
6771
  const { hardware: e } = t, o = e.online ? e.properties.state : "OFFLINE", r = {
@@ -6781,11 +6781,11 @@ function ct(t) {
6781
6781
  }, i = r[o] || r.UNKNOWN;
6782
6782
  return /* @__PURE__ */ n(V, { state: o, minWidth: 6, variant: i });
6783
6783
  }
6784
- function af(t) {
6784
+ function sf(t) {
6785
6785
  const { hardware: e } = t;
6786
6786
  return /* @__PURE__ */ n(ct, { hardware: e });
6787
6787
  }
6788
- function sf(t) {
6788
+ function cf(t) {
6789
6789
  const { hardware: e, options: o = {} } = t, r = /* @__PURE__ */ n(x, { name: "Shutter", icon: "fa-cog", online: e.online }), i = /* @__PURE__ */ n(ct, { hardware: e });
6790
6790
  function a() {
6791
6791
  e.actions.call("start");
@@ -6879,7 +6879,7 @@ function sf(t) {
6879
6879
  }
6880
6880
  );
6881
6881
  }
6882
- function cf(t) {
6882
+ function lf(t) {
6883
6883
  var u;
6884
6884
  const { hardware: e, options: o = {} } = t;
6885
6885
  function r() {
@@ -6960,7 +6960,7 @@ function cf(t) {
6960
6960
  }
6961
6961
  );
6962
6962
  }
6963
- function lf(t) {
6963
+ function df(t) {
6964
6964
  const { hardware: e, options: o = {} } = t, r = /* @__PURE__ */ n(x, { name: "Shutter", icon: "fa-cog", online: e.online }), i = /* @__PURE__ */ n(ct, { hardware: e });
6965
6965
  function a() {
6966
6966
  return e.properties ? e.properties.state : "UNKNOWN";
@@ -6988,7 +6988,7 @@ function lf(t) {
6988
6988
  className: "text-center"
6989
6989
  }
6990
6990
  ),
6991
- /* @__PURE__ */ n(cf, { ...t })
6991
+ /* @__PURE__ */ n(lf, { ...t })
6992
6992
  ] }), p = o.header || "top";
6993
6993
  return /* @__PURE__ */ n(
6994
6994
  M,
@@ -7001,31 +7001,31 @@ function lf(t) {
7001
7001
  }
7002
7002
  );
7003
7003
  }
7004
- const df = [
7004
+ const uf = [
7005
7005
  "start",
7006
7006
  "stop",
7007
7007
  "restart"
7008
- ], uf = "service1", ff = "service1", mf = !0, pf = {
7008
+ ], ff = "service1", mf = "service1", pf = !0, hf = {
7009
7009
  state: "RUNNING"
7010
- }, hf = "multivisor", gf = !0, wf = "service", yf = {
7011
- callables: df,
7012
- id: uf,
7013
- name: ff,
7014
- online: mf,
7015
- properties: pf,
7016
- protocol: hf,
7017
- require_staff: gf,
7018
- type: wf
7019
- }, vf = {
7020
- default: yf
7010
+ }, gf = "multivisor", wf = !0, yf = "service", vf = {
7011
+ callables: uf,
7012
+ id: ff,
7013
+ name: mf,
7014
+ online: pf,
7015
+ properties: hf,
7016
+ protocol: gf,
7017
+ require_staff: wf,
7018
+ type: yf
7021
7019
  }, Nf = {
7022
- default: sf,
7023
- protected: lf,
7024
- // Override base state
7025
- state: af
7020
+ default: vf
7026
7021
  }, bf = {
7027
- variants: Nf,
7028
- mocks: vf
7022
+ default: cf,
7023
+ protected: df,
7024
+ // Override base state
7025
+ state: sf
7026
+ }, _f = {
7027
+ variants: bf,
7028
+ mocks: Nf
7029
7029
  };
7030
7030
  function Ke(t) {
7031
7031
  const { hardware: e } = t, o = e.online ? e.properties.state : "OFFLINE", r = {
@@ -7053,22 +7053,22 @@ function Ke(t) {
7053
7053
  }
7054
7054
  );
7055
7055
  }
7056
- function _f(t) {
7056
+ function $f(t) {
7057
7057
  const { hardware: e } = t;
7058
7058
  return /* @__PURE__ */ n(Ke, { hardware: e });
7059
7059
  }
7060
- function $f(t) {
7060
+ function Of(t) {
7061
7061
  const { motion: e } = t, r = e.axisRef.slice(9), i = oe(r), a = (i == null ? void 0 : i.alias) ?? (i == null ? void 0 : i.name) ?? (i == null ? void 0 : i.id) ?? r;
7062
7062
  return /* @__PURE__ */ n("div", { className: "my-auto", children: a });
7063
7063
  }
7064
- function Of(t) {
7064
+ function xf(t) {
7065
7065
  const { motion: e, actions: o, disabled: r } = t, i = e.axisRef;
7066
7066
  function a() {
7067
7067
  o.call("update_axis", { axis_ref: i });
7068
7068
  }
7069
7069
  return /* @__PURE__ */ n(b, { variant: "danger", onClick: a, disabled: r, children: /* @__PURE__ */ n("i", { className: "fa fa-trash" }) });
7070
7070
  }
7071
- function xf(t) {
7071
+ function Sf(t) {
7072
7072
  const { motion: e, actions: o, axisRef: r, disabled: i } = t, a = H(() => {
7073
7073
  for (const l of e)
7074
7074
  if (l.axisRef === r)
@@ -7095,7 +7095,7 @@ function xf(t) {
7095
7095
  }
7096
7096
  );
7097
7097
  }
7098
- function Sf(t) {
7098
+ function Cf(t) {
7099
7099
  var g;
7100
7100
  const { motion: e, actions: o } = t, r = e.axisRef, i = e.absolute_position ?? e.relative_position ?? 0, a = r.slice(9), s = oe(a), c = t.disabled || !(s != null && s.online), u = q(null), [d, l] = C(!1), f = 3, p = ((g = s == null ? void 0 : s.properties) == null ? void 0 : g.unit) ?? "";
7101
7101
  function h(y) {
@@ -7137,7 +7137,7 @@ function Sf(t) {
7137
7137
  /* @__PURE__ */ n(N.Text, { children: p })
7138
7138
  ] });
7139
7139
  }
7140
- function Cf(t) {
7140
+ function If(t) {
7141
7141
  const { actions: e, motion: o, disabled: r } = t;
7142
7142
  function i() {
7143
7143
  e.call("update_axis", {
@@ -7172,7 +7172,7 @@ function Cf(t) {
7172
7172
  )
7173
7173
  ] });
7174
7174
  }
7175
- function If(t) {
7175
+ function Mf(t) {
7176
7176
  const { hardware: e, options: o = {}, disabled: r } = t, { properties: i = {} } = e, a = tn(e), s = /* @__PURE__ */ n(
7177
7177
  x,
7178
7178
  {
@@ -7200,7 +7200,7 @@ function If(t) {
7200
7200
  /* @__PURE__ */ m(A, { className: "mt-1", children: [
7201
7201
  /* @__PURE__ */ n(_, { xs: 3, children: "Available axes" }),
7202
7202
  /* @__PURE__ */ n(_, { xs: 9, children: i.available_axes.map((l) => /* @__PURE__ */ n(
7203
- xf,
7203
+ Sf,
7204
7204
  {
7205
7205
  axisRef: l,
7206
7206
  motion: i.motion,
@@ -7226,9 +7226,9 @@ function If(t) {
7226
7226
  /* @__PURE__ */ n("div", { children: "Displacement" }),
7227
7227
  /* @__PURE__ */ n("div", {}),
7228
7228
  i.motion.map((l, f) => /* @__PURE__ */ m(rt, { children: [
7229
- /* @__PURE__ */ n($f, { motion: l }),
7229
+ /* @__PURE__ */ n(Of, { motion: l }),
7230
7230
  /* @__PURE__ */ n(
7231
- Cf,
7231
+ If,
7232
7232
  {
7233
7233
  motion: l,
7234
7234
  actions: e.actions,
@@ -7236,7 +7236,7 @@ function If(t) {
7236
7236
  }
7237
7237
  ),
7238
7238
  /* @__PURE__ */ n(
7239
- Sf,
7239
+ Cf,
7240
7240
  {
7241
7241
  motion: l,
7242
7242
  actions: e.actions,
@@ -7244,7 +7244,7 @@ function If(t) {
7244
7244
  }
7245
7245
  ),
7246
7246
  /* @__PURE__ */ n(
7247
- Of,
7247
+ xf,
7248
7248
  {
7249
7249
  motion: l,
7250
7250
  actions: e.actions,
@@ -7268,7 +7268,7 @@ function If(t) {
7268
7268
  }
7269
7269
  );
7270
7270
  }
7271
- function Mf(t) {
7271
+ function Tf(t) {
7272
7272
  var S;
7273
7273
  const { motion: e, actions: o } = t, r = e.axisRef, i = e.absolute_position ?? e.relative_position ?? 0, a = r.slice(9), s = oe(a), c = t.disabled || !(s != null && s.online), u = q(null), [d, l] = C(!1), f = 3, p = ((S = s == null ? void 0 : s.properties) == null ? void 0 : S.unit) ?? "", h = (s == null ? void 0 : s.alias) ?? (s == null ? void 0 : s.name) ?? (s == null ? void 0 : s.id) ?? "none";
7274
7274
  function w($) {
@@ -7332,7 +7332,7 @@ function Mf(t) {
7332
7332
  /* @__PURE__ */ n(N.Text, { children: p })
7333
7333
  ] });
7334
7334
  }
7335
- function Tf(t) {
7335
+ function Df(t) {
7336
7336
  const { hardware: e, options: o = {}, disabled: r } = t, { properties: i = {} } = e, a = tn(e), s = /* @__PURE__ */ n(
7337
7337
  x,
7338
7338
  {
@@ -7343,7 +7343,7 @@ function Tf(t) {
7343
7343
  ), c = /* @__PURE__ */ n(Ke, { hardware: e }), u = /* @__PURE__ */ m(O, { children: [
7344
7344
  i.motion.length === 0 && /* @__PURE__ */ n(le, { variant: "danger", className: "mb-0", children: "No flat motion defined" }),
7345
7345
  i.motion.length > 0 && /* @__PURE__ */ n(Te, { direction: "vertical", children: i.motion.map((l, f) => /* @__PURE__ */ n(
7346
- Mf,
7346
+ Tf,
7347
7347
  {
7348
7348
  actions: e.actions,
7349
7349
  motion: l,
@@ -7363,7 +7363,7 @@ function Tf(t) {
7363
7363
  }
7364
7364
  );
7365
7365
  }
7366
- function Df(t) {
7366
+ function Af(t) {
7367
7367
  const { hardware: e, options: o = {}, disabled: r } = t, { properties: i } = e, { state: a = "UNKNOWN" } = i, s = /* @__PURE__ */ n(
7368
7368
  x,
7369
7369
  {
@@ -7405,7 +7405,7 @@ function Df(t) {
7405
7405
  }
7406
7406
  );
7407
7407
  }
7408
- const Af = "tomoflatmotion", kf = "tomoflatmotion", Ef = !0, Ff = {
7408
+ const kf = "tomoflatmotion", Ef = "tomoflatmotion", Ff = !0, Rf = {
7409
7409
  state: "READY",
7410
7410
  settle_time: 2,
7411
7411
  power_onoff: !1,
@@ -7421,20 +7421,20 @@ const Af = "tomoflatmotion", kf = "tomoflatmotion", Ef = !0, Ff = {
7421
7421
  relative_position: 1
7422
7422
  }
7423
7423
  ]
7424
- }, Rf = "bliss", Pf = !1, Uf = "tomoflatmotion", Lf = {
7425
- id: Af,
7426
- name: kf,
7427
- online: Ef,
7428
- properties: Ff,
7429
- protocol: Rf,
7430
- require_staff: Pf,
7431
- type: Uf
7432
- }, Vf = [
7424
+ }, Pf = "bliss", Uf = !1, Lf = "tomoflatmotion", Vf = {
7425
+ id: kf,
7426
+ name: Ef,
7427
+ online: Ff,
7428
+ properties: Rf,
7429
+ protocol: Pf,
7430
+ require_staff: Uf,
7431
+ type: Lf
7432
+ }, Hf = [
7433
7433
  "move",
7434
7434
  "stop",
7435
7435
  "wait",
7436
7436
  "rmove"
7437
- ], Hf = "sy", Gf = "sy", qf = !0, Bf = {
7437
+ ], Gf = "sy", qf = "sy", Bf = !0, Wf = {
7438
7438
  offset: 0,
7439
7439
  sign: 1,
7440
7440
  acceleration: 300,
@@ -7450,22 +7450,22 @@ const Af = "tomoflatmotion", kf = "tomoflatmotion", Ef = !0, Ff = {
7450
7450
  unit: "um",
7451
7451
  velocity: 1e3,
7452
7452
  display_digits: 4
7453
- }, Wf = "bliss", zf = !1, jf = "motor", Yf = [], Kf = {
7454
- callables: Vf,
7455
- id: Hf,
7456
- name: Gf,
7457
- online: qf,
7458
- properties: Bf,
7459
- protocol: Wf,
7460
- require_staff: zf,
7461
- type: jf,
7462
- user_tags: Yf
7463
- }, Qf = [
7453
+ }, zf = "bliss", jf = !1, Yf = "motor", Kf = [], Qf = {
7454
+ callables: Hf,
7455
+ id: Gf,
7456
+ name: qf,
7457
+ online: Bf,
7458
+ properties: Wf,
7459
+ protocol: zf,
7460
+ require_staff: jf,
7461
+ type: Yf,
7462
+ user_tags: Kf
7463
+ }, Xf = [
7464
7464
  "move",
7465
7465
  "stop",
7466
7466
  "wait",
7467
7467
  "rmove"
7468
- ], Xf = "sy2", Zf = "sy2", Jf = !0, em = {
7468
+ ], Zf = "sy2", Jf = "sy2", em = !0, tm = {
7469
7469
  offset: 0,
7470
7470
  sign: 1,
7471
7471
  acceleration: 300,
@@ -7481,22 +7481,22 @@ const Af = "tomoflatmotion", kf = "tomoflatmotion", Ef = !0, Ff = {
7481
7481
  unit: "um",
7482
7482
  velocity: 1e3,
7483
7483
  display_digits: 4
7484
- }, tm = "bliss", nm = !1, om = "motor", rm = [], im = {
7485
- callables: Qf,
7486
- id: Xf,
7487
- name: Zf,
7488
- online: Jf,
7489
- properties: em,
7490
- protocol: tm,
7491
- require_staff: nm,
7492
- type: om,
7493
- user_tags: rm
7494
- }, am = {
7495
- default: Lf,
7496
- sy: Kf,
7497
- sy2: im
7484
+ }, nm = "bliss", om = !1, rm = "motor", im = [], am = {
7485
+ callables: Xf,
7486
+ id: Zf,
7487
+ name: Jf,
7488
+ online: em,
7489
+ properties: tm,
7490
+ protocol: nm,
7491
+ require_staff: om,
7492
+ type: rm,
7493
+ user_tags: im
7494
+ }, sm = {
7495
+ default: Vf,
7496
+ sy: Qf,
7497
+ sy2: am
7498
7498
  };
7499
- function sm(t) {
7499
+ function cm(t) {
7500
7500
  const { name: e, alias: o, useHardwareContext: r } = t, [i, a] = C({
7501
7501
  state: "READY",
7502
7502
  settle_time: 2,
@@ -7562,23 +7562,23 @@ function sm(t) {
7562
7562
  }
7563
7563
  );
7564
7564
  }
7565
- const cm = {
7566
- default: If,
7567
- small: Tf,
7565
+ const lm = {
7566
+ default: Mf,
7567
+ small: Df,
7568
7568
  // Override base state
7569
- state: _f,
7570
- sample_location: Df
7571
- }, lm = {
7572
- variants: cm,
7573
- mocks: am,
7574
- simulator: sm
7569
+ state: $f,
7570
+ sample_location: Af
7571
+ }, dm = {
7572
+ variants: lm,
7573
+ mocks: sm,
7574
+ simulator: cm
7575
7575
  };
7576
- function dm(t) {
7576
+ function um(t) {
7577
7577
  return t.type === "tomoflatmotion";
7578
7578
  }
7579
7579
  function $g(t) {
7580
7580
  const e = ee(t);
7581
- return e === null || !dm(e) ? null : e;
7581
+ return e === null || !um(e) ? null : e;
7582
7582
  }
7583
7583
  function tn(t) {
7584
7584
  const { properties: e = {} } = t, { state: o = "UNKNOWN" } = e;
@@ -7588,7 +7588,7 @@ function tn(t) {
7588
7588
  "READY"
7589
7589
  ].includes(o);
7590
7590
  }
7591
- function um(t) {
7591
+ function fm(t) {
7592
7592
  const { hardware: e, options: o = {}, disabled: r } = t, { actions: i } = e, { label: a } = o, [s, c] = C(void 0), [u, d] = C(!1), l = /* @__PURE__ */ n(
7593
7593
  x,
7594
7594
  {
@@ -7632,10 +7632,10 @@ function um(t) {
7632
7632
  function Og(t) {
7633
7633
  return t.type === "tomoreferenceposition";
7634
7634
  }
7635
- const fm = {
7636
- default: um
7637
- }, mm = {
7638
- variants: fm
7635
+ const mm = {
7636
+ default: fm
7637
+ }, pm = {
7638
+ variants: mm
7639
7639
  };
7640
7640
  function Qe(t) {
7641
7641
  const { hardware: e } = t, { online: o, locked: r = null } = e, i = o ? (r !== null ? "LOCKED" : e.properties.state) || "UNKNOWN" : "OFFLINE", a = {
@@ -7649,11 +7649,11 @@ function Qe(t) {
7649
7649
  }, s = a[i] || a.UNKNOWN;
7650
7650
  return /* @__PURE__ */ n(V, { state: i, minWidth: 6, variant: s });
7651
7651
  }
7652
- function pm(t) {
7652
+ function hm(t) {
7653
7653
  const { hardware: e } = t;
7654
7654
  return /* @__PURE__ */ n(Qe, { hardware: e });
7655
7655
  }
7656
- function hm(t) {
7656
+ function gm(t) {
7657
7657
  const { hardware: e, options: o = {} } = t;
7658
7658
  function r(a) {
7659
7659
  return e.actions ? e.actions.setProperty("sample_pixel_size_mode", a) : console.error("Change request was triggered with:", a), null;
@@ -7686,7 +7686,7 @@ function hm(t) {
7686
7686
  )
7687
7687
  ] }) });
7688
7688
  }
7689
- function gm(t) {
7689
+ function wm(t) {
7690
7690
  const { hardware: e, options: o = {} } = t, r = e.properties.user_sample_pixel_size || 0, { state: i } = e.properties, a = i === "READY";
7691
7691
  function s(c) {
7692
7692
  return e.actions ? e.actions.setProperty("user_sample_pixel_size", c) : console.error("Change request was triggered with:", c), null;
@@ -7703,22 +7703,22 @@ function gm(t) {
7703
7703
  }
7704
7704
  );
7705
7705
  }
7706
- function wm(t) {
7706
+ function ym(t) {
7707
7707
  const { hardware: e, options: o = {} } = t;
7708
7708
  return e.properties.state, /* @__PURE__ */ m(D, { children: [
7709
7709
  /* @__PURE__ */ n(D.Toggle, { disabled: t.disabled, variant: "secondary" }),
7710
7710
  /* @__PURE__ */ n(D.Menu, { popperConfig: { strategy: "fixed" }, children: /* @__PURE__ */ m(B, { children: [
7711
7711
  /* @__PURE__ */ n(A, { children: /* @__PURE__ */ n(_, { className: "text-center", children: "Mode" }) }),
7712
- /* @__PURE__ */ n(A, { children: /* @__PURE__ */ n(_, { children: /* @__PURE__ */ n(hm, { ...t, style: { width: "100%" } }) }) }),
7712
+ /* @__PURE__ */ n(A, { children: /* @__PURE__ */ n(_, { children: /* @__PURE__ */ n(gm, { ...t, style: { width: "100%" } }) }) }),
7713
7713
  /* @__PURE__ */ n(A, { children: /* @__PURE__ */ n(_, { className: "text-center mt-1", children: "User pixel size" }) }),
7714
7714
  /* @__PURE__ */ n(A, { children: /* @__PURE__ */ n(_, { children: /* @__PURE__ */ m(N, { children: [
7715
- /* @__PURE__ */ n(gm, { ...t }),
7715
+ /* @__PURE__ */ n(wm, { ...t }),
7716
7716
  /* @__PURE__ */ n(N.Text, { children: "um" })
7717
7717
  ] }) }) })
7718
7718
  ] }) })
7719
7719
  ] });
7720
7720
  }
7721
- function ym(t, e, o) {
7721
+ function vm(t, e, o) {
7722
7722
  return H(() => {
7723
7723
  function r(s) {
7724
7724
  return s === "um" ? "μm" : s;
@@ -7734,8 +7734,8 @@ function ym(t, e, o) {
7734
7734
  return [i(a.to(o).scalar), r(o)];
7735
7735
  }, [t, e, o]);
7736
7736
  }
7737
- function vm(t) {
7738
- const { hardware: e, options: o = {} } = t, r = o.display_unit ?? "um", i = /* @__PURE__ */ n(x, { name: "TomoDetector", icon: "fa-cog", online: e.online }), a = /* @__PURE__ */ n(Qe, { hardware: e }), [s, c] = ym(
7737
+ function Nm(t) {
7738
+ const { hardware: e, options: o = {} } = t, r = o.display_unit ?? "um", i = /* @__PURE__ */ n(x, { name: "TomoDetector", icon: "fa-cog", online: e.online }), a = /* @__PURE__ */ n(Qe, { hardware: e }), [s, c] = vm(
7739
7739
  e.properties.sample_pixel_size,
7740
7740
  "um",
7741
7741
  r
@@ -7756,7 +7756,7 @@ function vm(t) {
7756
7756
  }
7757
7757
  ),
7758
7758
  /* @__PURE__ */ n(N.Text, { children: c }),
7759
- /* @__PURE__ */ n(wm, { ...t })
7759
+ /* @__PURE__ */ n(ym, { ...t })
7760
7760
  ] }), d = t.options ? t.options.header : "top";
7761
7761
  return /* @__PURE__ */ n(
7762
7762
  M,
@@ -7802,8 +7802,8 @@ function nn(t) {
7802
7802
  function ve(t) {
7803
7803
  return !t || !t.startsWith("hardware:") ? null : t.slice(9);
7804
7804
  }
7805
- function Nm(t) {
7806
- const { hardware: e, options: o = {} } = t, { properties: r = {} } = e, { sample_pixel_size: i, detector: a = null } = r, s = Ns(ve(a)), { properties: c = {} } = s ?? {}, { size: u } = c, d = o.display_unit ?? "mm", l = o.digits ?? 3, f = /* @__PURE__ */ n(x, { name: "TomoDetector", icon: "fa-eye", online: e.online }), p = /* @__PURE__ */ n(Qe, { hardware: e }), h = H(() => {
7805
+ function bm(t) {
7806
+ const { hardware: e, options: o = {} } = t, { properties: r = {} } = e, { sample_pixel_size: i, detector: a = null } = r, s = bs(ve(a)), { properties: c = {} } = s ?? {}, { size: u } = c, d = o.display_unit ?? "mm", l = o.digits ?? 3, f = /* @__PURE__ */ n(x, { name: "TomoDetector", icon: "fa-eye", online: e.online }), p = /* @__PURE__ */ n(Qe, { hardware: e }), h = H(() => {
7807
7807
  if (i == null || u === null || u === void 0)
7808
7808
  return "∅";
7809
7809
  const y = be(u[0] * i, "um", d), v = be(u[1] * i, "um", d);
@@ -7823,7 +7823,7 @@ function Nm(t) {
7823
7823
  }
7824
7824
  );
7825
7825
  }
7826
- function bm(t) {
7826
+ function _m(t) {
7827
7827
  const { hardware: e, options: o = {} } = t;
7828
7828
  function r(a) {
7829
7829
  return e.actions ? e.actions.setProperty("acq_mode", a) : console.error("Change request was triggered with:", a), null;
@@ -7856,7 +7856,7 @@ function bm(t) {
7856
7856
  )
7857
7857
  ] }) });
7858
7858
  }
7859
- function _m(t) {
7859
+ function $m(t) {
7860
7860
  const { hardware: e, actions: o } = t, r = e.properties.acc_max_expo_time || 0, { state: i } = e.properties, a = i === "READY";
7861
7861
  function s(c) {
7862
7862
  return o.setProperty("acc_max_expo_time", c), null;
@@ -7873,30 +7873,30 @@ function _m(t) {
7873
7873
  }
7874
7874
  );
7875
7875
  }
7876
- function $m(t) {
7876
+ function Om(t) {
7877
7877
  const e = ee(t);
7878
7878
  return e !== null && Be(e) ? e : null;
7879
7879
  }
7880
- function Om(t) {
7880
+ function xm(t) {
7881
7881
  var s;
7882
- const { hardware: e } = t, { properties: o } = e, r = ((s = o.detector) == null ? void 0 : s.slice(9)) ?? "", i = $m(r), a = ye(r);
7882
+ const { hardware: e } = t, { properties: o } = e, r = ((s = o.detector) == null ? void 0 : s.slice(9)) ?? "", i = Om(r), a = ye(r);
7883
7883
  return /* @__PURE__ */ m(D, { children: [
7884
7884
  /* @__PURE__ */ n(D.Toggle, { disabled: t.disabled, variant: "secondary" }),
7885
7885
  /* @__PURE__ */ n(D.Menu, { popperConfig: { strategy: "fixed" }, children: /* @__PURE__ */ m(B, { children: [
7886
7886
  /* @__PURE__ */ n(A, { children: /* @__PURE__ */ n(_, { className: "text-center", children: "Acquisition mode" }) }),
7887
- /* @__PURE__ */ n(A, { children: /* @__PURE__ */ n(_, { children: /* @__PURE__ */ n(bm, { ...t, style: { width: "100%" } }) }) }),
7887
+ /* @__PURE__ */ n(A, { children: /* @__PURE__ */ n(_, { children: /* @__PURE__ */ n(_m, { ...t, style: { width: "100%" } }) }) }),
7888
7888
  /* @__PURE__ */ n(A, { children: /* @__PURE__ */ n(_, { className: "text-center mt-1", children: "Max sub frame exposition" }) }),
7889
7889
  /* @__PURE__ */ n(A, { children: /* @__PURE__ */ n(_, { children: i && /* @__PURE__ */ m(N, { children: [
7890
- /* @__PURE__ */ n(_m, { hardware: i, actions: a }),
7890
+ /* @__PURE__ */ n($m, { hardware: i, actions: a }),
7891
7891
  /* @__PURE__ */ n(N.Text, { children: "um" })
7892
7892
  ] }) }) })
7893
7893
  ] }) })
7894
7894
  ] });
7895
7895
  }
7896
- function xm(t) {
7896
+ function Sm(t) {
7897
7897
  const { hardware: e } = t, o = /* @__PURE__ */ n(x, { name: "TomoDetector", icon: "fa-cog", online: e.online }), r = /* @__PURE__ */ n(Qe, { hardware: e }), i = /* @__PURE__ */ m(N, { className: "flex-nowrap", children: [
7898
7898
  /* @__PURE__ */ n(Z, { value: e.properties.acq_mode }),
7899
- /* @__PURE__ */ n(Om, { ...t })
7899
+ /* @__PURE__ */ n(xm, { ...t })
7900
7900
  ] }), a = t.options ? t.options.header : "top";
7901
7901
  return /* @__PURE__ */ n(
7902
7902
  M,
@@ -7909,7 +7909,7 @@ function xm(t) {
7909
7909
  }
7910
7910
  );
7911
7911
  }
7912
- const Sm = "tomodet1", Cm = "tomodet1", Im = !0, Mm = {
7912
+ const Cm = "tomodet1", Im = "tomodet1", Mm = !0, Tm = {
7913
7913
  state: "READY",
7914
7914
  sample_pixel_size_mode: "AUTO",
7915
7915
  user_sample_pixel_size: 50,
@@ -7918,25 +7918,25 @@ const Sm = "tomodet1", Cm = "tomodet1", Im = !0, Mm = {
7918
7918
  optic: "hardware:opt1",
7919
7919
  source_distance: 10,
7920
7920
  acq_mode: "SINGLE"
7921
- }, Tm = "bliss", Dm = !1, Am = "tomodetector", km = {
7922
- id: Sm,
7923
- name: Cm,
7924
- online: Im,
7925
- properties: Mm,
7926
- protocol: Tm,
7927
- require_staff: Dm,
7928
- type: Am
7929
- }, Em = {
7930
- default: km
7921
+ }, Dm = "bliss", Am = !1, km = "tomodetector", Em = {
7922
+ id: Cm,
7923
+ name: Im,
7924
+ online: Mm,
7925
+ properties: Tm,
7926
+ protocol: Dm,
7927
+ require_staff: Am,
7928
+ type: km
7931
7929
  }, Fm = {
7932
- samplepixelsize: vm,
7933
- acquisitionmode: xm,
7934
- fieldofview: Nm,
7935
- // Override base state
7936
- state: pm
7930
+ default: Em
7937
7931
  }, Rm = {
7938
- variants: Fm,
7939
- mocks: Em
7932
+ samplepixelsize: Nm,
7933
+ acquisitionmode: Sm,
7934
+ fieldofview: bm,
7935
+ // Override base state
7936
+ state: hm
7937
+ }, Pm = {
7938
+ variants: Rm,
7939
+ mocks: Fm
7940
7940
  };
7941
7941
  function on(t) {
7942
7942
  return t.type === "tomodetector";
@@ -7955,11 +7955,11 @@ function rn(t) {
7955
7955
  }, i = r[o] || r.UNKNOWN;
7956
7956
  return /* @__PURE__ */ n(V, { state: o, minWidth: 6, variant: i });
7957
7957
  }
7958
- function Pm(t) {
7958
+ function Um(t) {
7959
7959
  const { hardware: e } = t;
7960
7960
  return /* @__PURE__ */ n(rn, { hardware: e });
7961
7961
  }
7962
- function Um(t) {
7962
+ function Lm(t) {
7963
7963
  const { hardware: e } = t, { properties: o } = e, { detectors: r } = o, i = ve(o.active_detector), a = ve(o.target_detector), s = o.state === "READY", c = t.disabled || !e.online || !s;
7964
7964
  function u(l) {
7965
7965
  e.actions ? e.actions.call("mount", l) : console.error("Change request was triggered with:", l);
@@ -7987,7 +7987,7 @@ function Um(t) {
7987
7987
  /* @__PURE__ */ n(D.Menu, { popperConfig: { strategy: "fixed" }, children: r.map((l) => d(l)) })
7988
7988
  ] });
7989
7989
  }
7990
- function Lm(t) {
7990
+ function Vm(t) {
7991
7991
  const { hardware: e, options: o = {} } = t, r = /* @__PURE__ */ n(
7992
7992
  x,
7993
7993
  {
@@ -8007,7 +8007,7 @@ function Lm(t) {
8007
8007
  value: u || c || "No detector"
8008
8008
  }
8009
8009
  ),
8010
- /* @__PURE__ */ n(Um, { ...t })
8010
+ /* @__PURE__ */ n(Lm, { ...t })
8011
8011
  ] });
8012
8012
  }
8013
8013
  const l = o.header || "top";
@@ -8022,7 +8022,7 @@ function Lm(t) {
8022
8022
  }
8023
8023
  );
8024
8024
  }
8025
- const Vm = "tomodetectors", Hm = "tomodetectors", Gm = !0, qm = {
8025
+ const Hm = "tomodetectors", Gm = "tomodetectors", qm = !0, Bm = {
8026
8026
  state: "READY",
8027
8027
  active_detector: "hardware:limadetector1",
8028
8028
  detectors: [
@@ -8030,30 +8030,30 @@ const Vm = "tomodetectors", Hm = "tomodetectors", Gm = !0, qm = {
8030
8030
  "hardware:limadetector2",
8031
8031
  "hardware:limadetector3"
8032
8032
  ]
8033
- }, Bm = "bliss", Wm = !1, zm = "optic", jm = {
8034
- id: Vm,
8035
- name: Hm,
8036
- online: Gm,
8037
- properties: qm,
8038
- protocol: Bm,
8039
- require_staff: Wm,
8040
- type: zm
8041
- }, Ym = {
8042
- default: jm
8033
+ }, Wm = "bliss", zm = !1, jm = "optic", Ym = {
8034
+ id: Hm,
8035
+ name: Gm,
8036
+ online: qm,
8037
+ properties: Bm,
8038
+ protocol: Wm,
8039
+ require_staff: zm,
8040
+ type: jm
8043
8041
  }, Km = {
8044
- default: Lm,
8045
- // Override base state
8046
- state: Pm
8042
+ default: Ym
8047
8043
  }, Qm = {
8048
- variants: Km,
8049
- mocks: Ym
8044
+ default: Vm,
8045
+ // Override base state
8046
+ state: Um
8047
+ }, Xm = {
8048
+ variants: Qm,
8049
+ mocks: Km
8050
8050
  };
8051
- function Xm(t) {
8051
+ function Zm(t) {
8052
8052
  return t.type === "tomodetectors";
8053
8053
  }
8054
8054
  function Sg(t) {
8055
8055
  const e = ee(t);
8056
- return e === null || !Xm(e) ? null : e;
8056
+ return e === null || !Zm(e) ? null : e;
8057
8057
  }
8058
8058
  function Oe(t) {
8059
8059
  const { hardware: e } = t, o = e.online ? e.properties.state : "OFFLINE", r = {
@@ -8064,11 +8064,11 @@ function Oe(t) {
8064
8064
  }, i = r[o] || r.UNKNOWN;
8065
8065
  return /* @__PURE__ */ n(V, { state: o, minWidth: 6, variant: i });
8066
8066
  }
8067
- function Zm(t) {
8067
+ function Jm(t) {
8068
8068
  const { hardware: e } = t;
8069
8069
  return /* @__PURE__ */ n(Oe, { hardware: e });
8070
8070
  }
8071
- function Jm(t) {
8071
+ function ep(t) {
8072
8072
  const { hardware: e } = t, o = e.properties.update_on_move, r = t.disabled || !e.online;
8073
8073
  function i(s) {
8074
8074
  e.actions.setProperty("update_on_move", !1);
@@ -8098,7 +8098,7 @@ function Jm(t) {
8098
8098
  )
8099
8099
  ] });
8100
8100
  }
8101
- function ep(t) {
8101
+ function tp(t) {
8102
8102
  const { hardware: e } = t, o = e.properties.exposure_time ?? 0, r = t.disabled || !e.online, i = q(null), [a, s] = C(!1), c = 2;
8103
8103
  function u(l) {
8104
8104
  !i || !i.current ? console.log("formRef not yet defined") : l.key === "Enter" ? (s(!1), e.actions.setProperty(
@@ -8132,7 +8132,7 @@ function ep(t) {
8132
8132
  /* @__PURE__ */ n(N.Text, { children: "s" })
8133
8133
  ] });
8134
8134
  }
8135
- function tp(t) {
8135
+ function np(t) {
8136
8136
  const { hardware: e } = t, o = t.disabled || !e.online;
8137
8137
  function r(s) {
8138
8138
  e.actions.call("take_proj");
@@ -8150,7 +8150,7 @@ function tp(t) {
8150
8150
  /* @__PURE__ */ n(b, { onClick: i, disabled: o, variant: "primary", children: "Dark" })
8151
8151
  ] });
8152
8152
  }
8153
- function np(t) {
8153
+ function op(t) {
8154
8154
  const { hardware: e, options: o = {} } = t, r = /* @__PURE__ */ n(
8155
8155
  x,
8156
8156
  {
@@ -8159,9 +8159,9 @@ function np(t) {
8159
8159
  online: e.online
8160
8160
  }
8161
8161
  ), i = /* @__PURE__ */ n(Oe, { hardware: e }), a = /* @__PURE__ */ m(B, { children: [
8162
- /* @__PURE__ */ n(A, { className: "mt-1", children: /* @__PURE__ */ n(_, { children: /* @__PURE__ */ n(Jm, { hardware: e, disabled: t.disabled }) }) }),
8163
8162
  /* @__PURE__ */ n(A, { className: "mt-1", children: /* @__PURE__ */ n(_, { children: /* @__PURE__ */ n(ep, { hardware: e, disabled: t.disabled }) }) }),
8164
- /* @__PURE__ */ n(A, { className: "mt-1", children: /* @__PURE__ */ n(_, { children: /* @__PURE__ */ n(tp, { hardware: e, disabled: t.disabled }) }) })
8163
+ /* @__PURE__ */ n(A, { className: "mt-1", children: /* @__PURE__ */ n(_, { children: /* @__PURE__ */ n(tp, { hardware: e, disabled: t.disabled }) }) }),
8164
+ /* @__PURE__ */ n(A, { className: "mt-1", children: /* @__PURE__ */ n(_, { children: /* @__PURE__ */ n(np, { hardware: e, disabled: t.disabled }) }) })
8165
8165
  ] }), s = o.header || "top";
8166
8166
  return /* @__PURE__ */ n(
8167
8167
  M,
@@ -8174,7 +8174,7 @@ function np(t) {
8174
8174
  }
8175
8175
  );
8176
8176
  }
8177
- function op(t) {
8177
+ function rp(t) {
8178
8178
  const {
8179
8179
  style: e,
8180
8180
  className: o,
@@ -8240,10 +8240,10 @@ function op(t) {
8240
8240
  }
8241
8241
  );
8242
8242
  }
8243
- function rp(t) {
8243
+ function ip(t) {
8244
8244
  const { onAccepted: e, ...o } = t;
8245
8245
  return /* @__PURE__ */ n(
8246
- op,
8246
+ rp,
8247
8247
  {
8248
8248
  ...o,
8249
8249
  allowNullAsEmpty: !1,
@@ -8251,11 +8251,11 @@ function rp(t) {
8251
8251
  }
8252
8252
  );
8253
8253
  }
8254
- function ip(t) {
8254
+ function ap(t) {
8255
8255
  const { hardware: e, options: o } = t, r = e.properties.exposure_time ?? 0, i = t.disabled || !e.online, a = o.unit ?? "s", s = o.digits ?? 3;
8256
8256
  return /* @__PURE__ */ m(N, { className: "w-100", children: [
8257
8257
  /* @__PURE__ */ n(
8258
- rp,
8258
+ ip,
8259
8259
  {
8260
8260
  value: r,
8261
8261
  unit: "s",
@@ -8270,7 +8270,7 @@ function ip(t) {
8270
8270
  /* @__PURE__ */ n(N.Text, { children: nn(a) })
8271
8271
  ] });
8272
8272
  }
8273
- function ap(t) {
8273
+ function sp(t) {
8274
8274
  const { exposureTime: e } = t, o = ee(
8275
8275
  "ACTIVE_TOMOCONFIG.ref.detectors.active_detector.detector"
8276
8276
  ), r = ee(
@@ -8283,7 +8283,7 @@ function ap(t) {
8283
8283
  const i = o.properties.acc_max_expo_time, a = r.properties.acq_mode;
8284
8284
  if (!i || a !== "ACCUMULATION")
8285
8285
  return /* @__PURE__ */ n(O, {});
8286
- const [s, c] = bs(
8286
+ const [s, c] = _s(
8287
8287
  e,
8288
8288
  i
8289
8289
  );
@@ -8293,7 +8293,7 @@ function ap(t) {
8293
8293
  c.toFixed(3)
8294
8294
  ] });
8295
8295
  }
8296
- function sp(t) {
8296
+ function cp(t) {
8297
8297
  const { hardware: e, options: o = {} } = t, r = /* @__PURE__ */ n(
8298
8298
  x,
8299
8299
  {
@@ -8303,14 +8303,14 @@ function sp(t) {
8303
8303
  }
8304
8304
  ), i = /* @__PURE__ */ n(Oe, { hardware: e }), a = /* @__PURE__ */ m(O, { children: [
8305
8305
  /* @__PURE__ */ n(
8306
- ip,
8306
+ ap,
8307
8307
  {
8308
8308
  hardware: e,
8309
8309
  disabled: t.disabled,
8310
8310
  options: o
8311
8311
  }
8312
8312
  ),
8313
- /* @__PURE__ */ n(ap, { exposureTime: e.properties.exposure_time })
8313
+ /* @__PURE__ */ n(sp, { exposureTime: e.properties.exposure_time })
8314
8314
  ] }), s = o.header || "top";
8315
8315
  return /* @__PURE__ */ n(
8316
8316
  M,
@@ -8323,7 +8323,7 @@ function sp(t) {
8323
8323
  }
8324
8324
  );
8325
8325
  }
8326
- function cp(t) {
8326
+ function lp(t) {
8327
8327
  const { hardware: e } = t, o = e.properties.settle_time || 0, r = t.disabled || !e.online, i = q(null), [a, s] = C(!1), c = 3;
8328
8328
  function u(l) {
8329
8329
  !i || !i.current ? console.log("formRef not yet defined") : l.key === "Enter" ? (s(!1), e.actions.setProperty(
@@ -8356,7 +8356,7 @@ function cp(t) {
8356
8356
  /* @__PURE__ */ n(N.Text, { children: "s" })
8357
8357
  ] });
8358
8358
  }
8359
- function lp(t) {
8359
+ function dp(t) {
8360
8360
  const { hardware: e, options: o = {} } = t, r = /* @__PURE__ */ n(
8361
8361
  x,
8362
8362
  {
@@ -8364,7 +8364,7 @@ function lp(t) {
8364
8364
  icon: "fam-hardware-camera",
8365
8365
  online: e.online
8366
8366
  }
8367
- ), i = /* @__PURE__ */ n(Oe, { hardware: e }), a = /* @__PURE__ */ n(cp, { hardware: e, disabled: t.disabled }), s = o.header || "top";
8367
+ ), i = /* @__PURE__ */ n(Oe, { hardware: e }), a = /* @__PURE__ */ n(lp, { hardware: e, disabled: t.disabled }), s = o.header || "top";
8368
8368
  return /* @__PURE__ */ n(
8369
8369
  M,
8370
8370
  {
@@ -8401,14 +8401,14 @@ function Ze(t) {
8401
8401
  }
8402
8402
  );
8403
8403
  }
8404
- function dp() {
8404
+ function up() {
8405
8405
  const t = ee(
8406
8406
  "ACTIVE_TOMOCONFIG.ref.detectors.active_detector.detector"
8407
8407
  );
8408
8408
  return t === null || !Be(t) ? null : t;
8409
8409
  }
8410
- function up(t) {
8411
- const { hardware: e, restoreSample: o } = t, [r, i] = C(!1), a = t.disabled || !e.online || r, s = dp(), c = (s == null ? void 0 : s.properties.state) === "OFFLINE";
8410
+ function fp(t) {
8411
+ const { hardware: e, restoreSample: o } = t, [r, i] = C(!1), a = t.disabled || !e.online || r, s = up(), c = (s == null ? void 0 : s.properties.state) === "OFFLINE";
8412
8412
  function u() {
8413
8413
  i(!0);
8414
8414
  }
@@ -8470,7 +8470,7 @@ function up(t) {
8470
8470
  }
8471
8471
  );
8472
8472
  }
8473
- function fp(t) {
8473
+ function mp(t) {
8474
8474
  const { hardware: e, options: o = {} } = t, { restore_sample: r = !0 } = o, i = /* @__PURE__ */ n(
8475
8475
  x,
8476
8476
  {
@@ -8479,7 +8479,7 @@ function fp(t) {
8479
8479
  online: e.online
8480
8480
  }
8481
8481
  ), a = /* @__PURE__ */ n(Oe, { hardware: e }), s = /* @__PURE__ */ n(
8482
- up,
8482
+ fp,
8483
8483
  {
8484
8484
  hardware: e,
8485
8485
  disabled: t.disabled,
@@ -8497,7 +8497,7 @@ function fp(t) {
8497
8497
  }
8498
8498
  );
8499
8499
  }
8500
- function mp(t) {
8500
+ function pp(t) {
8501
8501
  const { hardware: e } = t, o = e.properties.update_on_move, r = t.disabled || !e.online;
8502
8502
  function i(s) {
8503
8503
  e.actions.setProperty("update_on_move", !1);
@@ -8526,7 +8526,7 @@ function mp(t) {
8526
8526
  )
8527
8527
  ] });
8528
8528
  }
8529
- function pp(t) {
8529
+ function hp(t) {
8530
8530
  const { hardware: e, options: o = {} } = t, r = /* @__PURE__ */ n(
8531
8531
  x,
8532
8532
  {
@@ -8534,7 +8534,7 @@ function pp(t) {
8534
8534
  icon: "fam-hardware-camera",
8535
8535
  online: e.online
8536
8536
  }
8537
- ), i = /* @__PURE__ */ n(Oe, { hardware: e }), a = /* @__PURE__ */ n(mp, { hardware: e, disabled: t.disabled }), s = o.header || "top";
8537
+ ), i = /* @__PURE__ */ n(Oe, { hardware: e }), a = /* @__PURE__ */ n(pp, { hardware: e, disabled: t.disabled }), s = o.header || "top";
8538
8538
  return /* @__PURE__ */ n(
8539
8539
  M,
8540
8540
  {
@@ -8546,22 +8546,22 @@ function pp(t) {
8546
8546
  }
8547
8547
  );
8548
8548
  }
8549
- const hp = "tomoimaging", gp = "tomoimaging", wp = !0, yp = {
8549
+ const gp = "tomoimaging", wp = "tomoimaging", yp = !0, vp = {
8550
8550
  state: "READY",
8551
8551
  update_on_move: !1,
8552
8552
  exposure_time: 1
8553
- }, vp = "bliss", Np = !1, bp = "optic", _p = {
8554
- id: hp,
8555
- name: gp,
8556
- online: wp,
8557
- properties: yp,
8558
- protocol: vp,
8559
- require_staff: Np,
8560
- type: bp
8561
- }, $p = {
8562
- default: _p
8553
+ }, Np = "bliss", bp = !1, _p = "optic", $p = {
8554
+ id: gp,
8555
+ name: wp,
8556
+ online: yp,
8557
+ properties: vp,
8558
+ protocol: Np,
8559
+ require_staff: bp,
8560
+ type: _p
8561
+ }, Op = {
8562
+ default: $p
8563
8563
  };
8564
- function Op(t) {
8564
+ function xp(t) {
8565
8565
  const { name: e, alias: o, useHardwareContext: r } = t, [i, a] = C({
8566
8566
  state: "READY",
8567
8567
  update_on_move: !0,
@@ -8602,29 +8602,29 @@ function Op(t) {
8602
8602
  }
8603
8603
  );
8604
8604
  }
8605
- const xp = {
8606
- default: np,
8607
- exposuretime: sp,
8608
- settletime: lp,
8609
- actions: fp,
8610
- updatemode: pp,
8605
+ const Sp = {
8606
+ default: op,
8607
+ exposuretime: cp,
8608
+ settletime: dp,
8609
+ actions: mp,
8610
+ updatemode: hp,
8611
8611
  // Override base state
8612
- state: Zm
8613
- }, Sp = {
8614
- variants: xp,
8615
- mocks: $p,
8616
- simulator: Op
8617
- }, Cp = {}, Ip = {
8618
- variants: Cp
8612
+ state: Jm
8613
+ }, Cp = {
8614
+ variants: Sp,
8615
+ mocks: Op,
8616
+ simulator: xp
8617
+ }, Ip = {}, Mp = {
8618
+ variants: Ip
8619
8619
  };
8620
- function Mp(t) {
8620
+ function Tp(t) {
8621
8621
  return t.type === "tomosamplestage";
8622
8622
  }
8623
8623
  function Cg(t) {
8624
8624
  const e = ee(t);
8625
- return e === null || !Mp(e) ? null : e;
8625
+ return e === null || !Tp(e) ? null : e;
8626
8626
  }
8627
- function Tp(t) {
8627
+ function Dp(t) {
8628
8628
  const { hardware: e } = t, o = e.properties.latency_time || 0, r = t.disabled || !e.online, i = q(null), [a, s] = C(!1), c = 3;
8629
8629
  function u(l) {
8630
8630
  !i || !i.current ? console.log("formRef not yet defined") : l.key === "Enter" ? (s(!1), e.actions.setProperty("latency_time", i.current.value)) : l.key === "Escape" ? (i.current.value = o.toFixed(c), s(!1)) : console.log(l.key);
@@ -8654,7 +8654,7 @@ function Tp(t) {
8654
8654
  /* @__PURE__ */ n(N.Text, { children: "s" })
8655
8655
  ] });
8656
8656
  }
8657
- function Dp(t) {
8657
+ function Ap(t) {
8658
8658
  const { hardware: e, options: o = {} } = t, r = /* @__PURE__ */ n(
8659
8659
  x,
8660
8660
  {
@@ -8662,7 +8662,7 @@ function Dp(t) {
8662
8662
  icon: "fam-hardware-camera",
8663
8663
  online: e.online
8664
8664
  }
8665
- ), i = /* @__PURE__ */ n(O, {}), a = /* @__PURE__ */ n(Tp, { hardware: e, disabled: t.disabled }), s = o.header || "top";
8665
+ ), i = /* @__PURE__ */ n(O, {}), a = /* @__PURE__ */ n(Dp, { hardware: e, disabled: t.disabled }), s = o.header || "top";
8666
8666
  return /* @__PURE__ */ n(
8667
8667
  M,
8668
8668
  {
@@ -8674,19 +8674,19 @@ function Dp(t) {
8674
8674
  }
8675
8675
  );
8676
8676
  }
8677
- const Ap = {
8678
- latencytime: Dp
8679
- }, kp = {
8680
- variants: Ap
8677
+ const kp = {
8678
+ latencytime: Ap
8679
+ }, Ep = {
8680
+ variants: kp
8681
8681
  };
8682
- function Ep(t) {
8682
+ function Fp(t) {
8683
8683
  return t.type === "tomoconfig";
8684
8684
  }
8685
8685
  function Ig(t) {
8686
8686
  const e = ee(t);
8687
- return e === null || !Ep(e) ? null : e;
8687
+ return e === null || !Fp(e) ? null : e;
8688
8688
  }
8689
- function Fp(t) {
8689
+ function Rp(t) {
8690
8690
  const { hardware: e } = t, o = e.online ? e.properties.state : "OFFLINE", r = {
8691
8691
  READY: "success",
8692
8692
  MOVING: "transient",
@@ -8698,24 +8698,24 @@ function Fp(t) {
8698
8698
  }, i = r[o] || r.UNKNOWN;
8699
8699
  return /* @__PURE__ */ n(V, { state: o, minWidth: 6, variant: i });
8700
8700
  }
8701
- function Rp(t) {
8701
+ function Pp(t) {
8702
8702
  const { hardware: e } = t;
8703
- return /* @__PURE__ */ n(Fp, { hardware: e });
8703
+ return /* @__PURE__ */ n(Rp, { hardware: e });
8704
8704
  }
8705
- const Pp = {
8705
+ const Up = {
8706
8706
  // Override base state
8707
- state: Rp
8708
- }, Up = {
8709
- variants: Pp
8707
+ state: Pp
8708
+ }, Lp = {
8709
+ variants: Up
8710
8710
  };
8711
- function Lp(t) {
8711
+ function Vp(t) {
8712
8712
  return t.type === "tomoholo";
8713
8713
  }
8714
8714
  function Mg(t) {
8715
8715
  const e = ee(t);
8716
- return e === null || !Lp(e) ? null : e;
8716
+ return e === null || !Vp(e) ? null : e;
8717
8717
  }
8718
- function Vp(t) {
8718
+ function Hp(t) {
8719
8719
  const { hardware: e } = t, o = () => {
8720
8720
  e.actions.call("reset");
8721
8721
  };
@@ -8739,7 +8739,7 @@ function Vp(t) {
8739
8739
  }
8740
8740
  );
8741
8741
  }
8742
- function Hp(t) {
8742
+ function Gp(t) {
8743
8743
  const { hardware: e, options: o = {} } = t, r = () => {
8744
8744
  e.actions.call(
8745
8745
  e.properties.state === "OPEN" ? "close" : "open"
@@ -8774,38 +8774,38 @@ function Hp(t) {
8774
8774
  children: e.properties.state === "OPEN" ? "Close" : "Open"
8775
8775
  }
8776
8776
  ),
8777
- /* @__PURE__ */ n(Vp, { ...t })
8777
+ /* @__PURE__ */ n(Hp, { ...t })
8778
8778
  ] }) })
8779
8779
  ] });
8780
8780
  }
8781
- const Gp = [
8781
+ const qp = [
8782
8782
  "close",
8783
8783
  "reset",
8784
8784
  "open"
8785
- ], qp = "rv12", Bp = "rv12", Wp = !0, zp = {
8785
+ ], Bp = "rv12", Wp = "rv12", zp = !0, jp = {
8786
8786
  state: "CLOSED",
8787
8787
  status: `Pneumatic is closed
8788
8788
  `
8789
- }, jp = "tango", Yp = !1, Kp = "valve", Qp = {
8790
- callables: Gp,
8791
- id: qp,
8792
- name: Bp,
8793
- online: Wp,
8794
- properties: zp,
8795
- protocol: jp,
8796
- require_staff: Yp,
8797
- type: Kp
8798
- }, Xp = {
8799
- default: Qp
8789
+ }, Yp = "tango", Kp = !1, Qp = "valve", Xp = {
8790
+ callables: qp,
8791
+ id: Bp,
8792
+ name: Wp,
8793
+ online: zp,
8794
+ properties: jp,
8795
+ protocol: Yp,
8796
+ require_staff: Kp,
8797
+ type: Qp
8800
8798
  }, Zp = {
8801
- default: Hp
8799
+ default: Xp
8802
8800
  }, Jp = {
8803
- variants: Zp,
8804
- mocks: Xp
8805
- }, eh = it("daiquiri.components.hardware.NoObject");
8801
+ default: Gp
8802
+ }, eh = {
8803
+ variants: Jp,
8804
+ mocks: Zp
8805
+ }, th = it("daiquiri.components.hardware.NoObject");
8806
8806
  function Tg(t) {
8807
8807
  if (t.options.emptyifnone)
8808
- return eh(
8808
+ return th(
8809
8809
  'Component id:"%s" name:"%s" not displayed cause setup with emptyifnone.',
8810
8810
  t.id,
8811
8811
  t.name
@@ -8853,10 +8853,10 @@ function Dg(t) {
8853
8853
  }
8854
8854
  );
8855
8855
  }
8856
- const th = it("daiquiri.components.hardware.MissingObject");
8856
+ const nh = it("daiquiri.components.hardware.MissingObject");
8857
8857
  function Ag(t) {
8858
8858
  if (t.options.emptyifnone)
8859
- return th(
8859
+ return nh(
8860
8860
  'Component id:"%s" name:"%s" not displayed cause setup with emptyifnone.',
8861
8861
  t.id,
8862
8862
  t.name
@@ -8919,11 +8919,11 @@ function kg(t) {
8919
8919
  }
8920
8920
  );
8921
8921
  }
8922
- const nh = it("daiquiri.components.hardware.MissingComponentObject");
8922
+ const oh = it("daiquiri.components.hardware.MissingComponentObject");
8923
8923
  function Eg(t) {
8924
8924
  const { options: e } = t, { variant: o = "default" } = e;
8925
8925
  if (e.emptyifnone)
8926
- return nh(
8926
+ return oh(
8927
8927
  'Component id:"%s" name:"%s" not displayed cause setup with emptyifnone.',
8928
8928
  t.id,
8929
8929
  t.name
@@ -8996,7 +8996,7 @@ function Fg(t) {
8996
8996
  }
8997
8997
  );
8998
8998
  }
8999
- function oh(t) {
8999
+ function rh(t) {
9000
9000
  const [e, o] = C({}), r = q(null);
9001
9001
  return X(() => {
9002
9002
  if (r.current) {
@@ -9137,30 +9137,30 @@ function Rg(t) {
9137
9137
  }
9138
9138
  );
9139
9139
  }
9140
- function rh(t) {
9140
+ function ih(t) {
9141
9141
  return /* @__PURE__ */ n("div", { className: "panel-header", style: t.style, children: t.children });
9142
9142
  }
9143
- function ih(t) {
9143
+ function ah(t) {
9144
9144
  return /* @__PURE__ */ n("div", { className: `panel-contents ${t.className}`, style: t.style, children: t.children });
9145
9145
  }
9146
9146
  function K(t) {
9147
- const e = t.scroll ? oh : rt;
9147
+ const e = t.scroll ? rh : rt;
9148
9148
  return /* @__PURE__ */ n("div", { className: `panel ${t.className ?? ""}`, style: t.style, children: /* @__PURE__ */ n(e, { children: t.children }) });
9149
9149
  }
9150
- K.Header = rh;
9151
- K.Contents = ih;
9152
- function ah(t) {
9150
+ K.Header = ih;
9151
+ K.Contents = ah;
9152
+ function sh(t) {
9153
9153
  return /* @__PURE__ */ n(O, {});
9154
9154
  }
9155
- function sh(t) {
9155
+ function ch(t) {
9156
9156
  const { providers: e = {}, yamlNode: o, label: r, ...i } = t;
9157
9157
  return sn(o, "label", r), xe(o, i), /* @__PURE__ */ n("div", { children: r });
9158
9158
  }
9159
- function ch({ yamlNode: t, panel: e }) {
9159
+ function lh({ yamlNode: t, panel: e }) {
9160
9160
  const { type: o, style: r, children: i, ...a } = t;
9161
9161
  return xe(t, a), /* @__PURE__ */ n(A, { className: "ymllayout-row gx-0", style: r, children: te(i, (s, c) => ae(s, c, e)) });
9162
9162
  }
9163
- function lh({ yamlNode: t, panel: e }) {
9163
+ function dh({ yamlNode: t, panel: e }) {
9164
9164
  const { type: o, style: r, xs: i, children: a, ...s } = t;
9165
9165
  return xe(t, s), cn(t, "xs", i), /* @__PURE__ */ n(
9166
9166
  _,
@@ -9172,11 +9172,11 @@ function lh({ yamlNode: t, panel: e }) {
9172
9172
  }
9173
9173
  );
9174
9174
  }
9175
- function dh({ yamlNode: t, panel: e }) {
9175
+ function uh({ yamlNode: t, panel: e }) {
9176
9176
  const o = t.options || {}, r = t.style;
9177
9177
  return /* @__PURE__ */ n(B, { className: "ymllayout-container", ...o, style: r, children: te(t.children, (i, a) => ae(i, a, e)) });
9178
9178
  }
9179
- function uh(t) {
9179
+ function fh(t) {
9180
9180
  const { yamlNode: e } = t, o = e.options || {}, r = {};
9181
9181
  return e.centerContent && (r.margin = "auto"), /* @__PURE__ */ m(K, { className: "ymllayout-panel", ...o, style: e.style, children: [
9182
9182
  e.title && /* @__PURE__ */ n(K.Header, { children: e.title }),
@@ -9186,19 +9186,19 @@ function uh(t) {
9186
9186
  ) })
9187
9187
  ] });
9188
9188
  }
9189
- const fh = () => Math.random().toString(36).slice(2, 15) + Math.random().toString(36).slice(2, 15);
9190
- function mh({ yamlNode: t, panel: e }) {
9189
+ const mh = () => Math.random().toString(36).slice(2, 15) + Math.random().toString(36).slice(2, 15);
9190
+ function ph({ yamlNode: t, panel: e }) {
9191
9191
  const o = [];
9192
9192
  return xn(t.children, (r, i) => {
9193
9193
  o.push(
9194
- /* @__PURE__ */ n(Nn, { eventKey: fh(), title: r.title, style: r.style, children: ae(r, 0, !1) }, i)
9194
+ /* @__PURE__ */ n(Nn, { eventKey: mh(), title: r.title, style: r.style, children: ae(r, 0, !1) }, i)
9195
9195
  );
9196
9196
  }), e ? /* @__PURE__ */ m(K, { className: "ymllayout-tabs", style: t.style, children: [
9197
9197
  t.title && /* @__PURE__ */ n(K.Header, { children: t.title }),
9198
9198
  /* @__PURE__ */ n(K.Contents, { children: /* @__PURE__ */ n(ft, { mountOnEnter: !0, children: o }) })
9199
9199
  ] }) : /* @__PURE__ */ n(ft, { children: o });
9200
9200
  }
9201
- function ph(t) {
9201
+ function hh(t) {
9202
9202
  const { node: e, state: o, row: r } = t, { title: i } = e;
9203
9203
  function a() {
9204
9204
  if (e.id)
@@ -9243,7 +9243,7 @@ function ph(t) {
9243
9243
  }
9244
9244
  );
9245
9245
  }
9246
- function hh(t) {
9246
+ function gh(t) {
9247
9247
  const { node: e, row: o } = t, {
9248
9248
  titlealign: r,
9249
9249
  title: i,
@@ -9278,13 +9278,13 @@ function hh(t) {
9278
9278
  gridColumn: 1,
9279
9279
  alignSelf: r ?? "center"
9280
9280
  },
9281
- children: /* @__PURE__ */ n(ph, { node: e, state: l, row: o })
9281
+ children: /* @__PURE__ */ n(hh, { node: e, state: l, row: o })
9282
9282
  }
9283
9283
  ),
9284
9284
  /* @__PURE__ */ n("div", { style: { gridColumn: 2, alignSelf: "center", overflow: "auto" }, children: ae(d, "k", !1) })
9285
9285
  ] });
9286
9286
  }
9287
- function gh(t) {
9287
+ function wh(t) {
9288
9288
  const { yamlNode: e, panel: o } = t, {
9289
9289
  type: r,
9290
9290
  children: i,
@@ -9293,7 +9293,7 @@ function gh(t) {
9293
9293
  style: c,
9294
9294
  ...u
9295
9295
  } = e;
9296
- return bh(e, u), /* @__PURE__ */ m(K, { className: "ymllayout-form", ...a, children: [
9296
+ return _h(e, u), /* @__PURE__ */ m(K, { className: "ymllayout-form", ...a, children: [
9297
9297
  e.title && /* @__PURE__ */ n(K.Header, { children: e.title }),
9298
9298
  /* @__PURE__ */ n(K.Contents, { className: "full-sizer", style: { overflow: "auto" }, children: /* @__PURE__ */ n(
9299
9299
  "div",
@@ -9303,12 +9303,12 @@ function gh(t) {
9303
9303
  gridTemplateColumns: "min-content auto",
9304
9304
  ...c
9305
9305
  },
9306
- children: te(i, (d, l) => d.type === "formheader" ? ae(d, l, o) : d.type === "none" ? /* @__PURE__ */ n(bn.Fragment, {}, l) : /* @__PURE__ */ n(hh, { node: d, row: l }, l))
9306
+ children: te(i, (d, l) => d.type === "formheader" ? ae(d, l, o) : d.type === "none" ? /* @__PURE__ */ n(bn.Fragment, {}, l) : /* @__PURE__ */ n(gh, { node: d, row: l }, l))
9307
9307
  }
9308
9308
  ) })
9309
9309
  ] });
9310
9310
  }
9311
- function wh({ yamlNode: t }) {
9311
+ function yh({ yamlNode: t }) {
9312
9312
  const { type: e, title: o, style: r = {}, ...i } = t;
9313
9313
  return lt(t, "title", o), xe(t, i), /* @__PURE__ */ n(
9314
9314
  "div",
@@ -9319,7 +9319,7 @@ function wh({ yamlNode: t }) {
9319
9319
  }
9320
9320
  );
9321
9321
  }
9322
- function yh(t) {
9322
+ function vh(t) {
9323
9323
  const { yamlNode: e, panel: o } = t, r = e.style || {};
9324
9324
  return /* @__PURE__ */ n(
9325
9325
  "div",
@@ -9349,14 +9349,14 @@ function yh(t) {
9349
9349
  );
9350
9350
  }
9351
9351
  const _e = {
9352
- row: ch,
9353
- col: lh,
9354
- container: dh,
9355
- panel: uh,
9356
- tabs: mh,
9357
- form: gh,
9358
- formheader: wh,
9359
- grid: yh
9352
+ row: lh,
9353
+ col: dh,
9354
+ container: uh,
9355
+ panel: fh,
9356
+ tabs: ph,
9357
+ form: wh,
9358
+ formheader: yh,
9359
+ grid: vh
9360
9360
  };
9361
9361
  function Pg(t, e) {
9362
9362
  $e[t] && console.warn(
@@ -9366,11 +9366,11 @@ function Pg(t, e) {
9366
9366
  ), _e[t] = e;
9367
9367
  }
9368
9368
  const $e = {
9369
- todo: Uh,
9370
- none: ah,
9371
- label: sh
9369
+ todo: Lh,
9370
+ none: sh,
9371
+ label: ch
9372
9372
  };
9373
- function vh(t, e) {
9373
+ function Nh(t, e) {
9374
9374
  $e[t] && console.warn(
9375
9375
  `yaml registration: The type ${t} is already a component. The previous component will be dropped.`
9376
9376
  ), _e[t] && console.warn(
@@ -9379,7 +9379,7 @@ function vh(t, e) {
9379
9379
  }
9380
9380
  function Ug(t) {
9381
9381
  Object.entries(t).forEach(
9382
- ([e, o]) => vh(e, o)
9382
+ ([e, o]) => Nh(e, o)
9383
9383
  );
9384
9384
  }
9385
9385
  function Lg() {
@@ -9388,7 +9388,7 @@ function Lg() {
9388
9388
  function Vg() {
9389
9389
  return _e;
9390
9390
  }
9391
- function Nh(t) {
9391
+ function bh(t) {
9392
9392
  const { yamlNode: e, panel: o } = t, { type: r, style: i, scroll: a, title: s, ...c } = e;
9393
9393
  if (!(r in $e))
9394
9394
  return /* @__PURE__ */ n(K, { children: /* @__PURE__ */ n(K.Contents, { children: /* @__PURE__ */ m(le, { variant: "warning", children: [
@@ -9405,10 +9405,10 @@ function Nh(t) {
9405
9405
  function ae(t, e, o = !0) {
9406
9406
  if (!t)
9407
9407
  return /* @__PURE__ */ n(O, {});
9408
- const { type: r } = t, i = r && r in _e ? _e[r] : Nh;
9408
+ const { type: r } = t, i = r && r in _e ? _e[r] : bh;
9409
9409
  return /* @__PURE__ */ n(i, { yamlNode: t, panel: o }, e);
9410
9410
  }
9411
- function bh(t, e) {
9411
+ function _h(t, e) {
9412
9412
  const { _parentNode: o, _indexFromParent: r, ...i } = e;
9413
9413
  if (t && Object.keys(i).length > 0)
9414
9414
  throw new Me(t, Object.keys(i));
@@ -9442,13 +9442,13 @@ class G extends ge {
9442
9442
  this.key = r, this.keyMessage = i;
9443
9443
  }
9444
9444
  }
9445
- function _h(t) {
9445
+ function $h(t) {
9446
9446
  let e = t;
9447
9447
  for (; e._parentNode; )
9448
9448
  e = e._parentNode;
9449
9449
  return e;
9450
9450
  }
9451
- function $h(t) {
9451
+ function Oh(t) {
9452
9452
  const e = [];
9453
9453
  let o = t;
9454
9454
  for (; o; )
@@ -9474,7 +9474,7 @@ function an(t, e = null, o = null) {
9474
9474
  }
9475
9475
  return Object.freeze(r), r;
9476
9476
  }
9477
- function Oh(t, e, o) {
9477
+ function xh(t, e, o) {
9478
9478
  if (t && o === void 0)
9479
9479
  throw new et(t, [e]);
9480
9480
  }
@@ -9482,15 +9482,15 @@ function sn(t, e, o) {
9482
9482
  if (typeof o != "string")
9483
9483
  throw new G(t, e, "A string is expected");
9484
9484
  }
9485
- function xh(t, e, o) {
9485
+ function Sh(t, e, o) {
9486
9486
  if (typeof o != "boolean")
9487
9487
  throw new G(t, e, "A boolean is expected");
9488
9488
  }
9489
- function Sh(t, e, o) {
9489
+ function Ch(t, e, o) {
9490
9490
  if (typeof o != "number")
9491
9491
  throw new G(t, e, "A number is expected");
9492
9492
  }
9493
- function Ch(t, e, o) {
9493
+ function Ih(t, e, o) {
9494
9494
  if (o !== void 0 && typeof o != "boolean")
9495
9495
  throw new G(t, e, "An optional boolean is expected");
9496
9496
  }
@@ -9498,7 +9498,7 @@ function lt(t, e, o) {
9498
9498
  if (o !== void 0 && typeof o != "string")
9499
9499
  throw new G(t, e, "An optional string is expected");
9500
9500
  }
9501
- function Ih(t, e, o) {
9501
+ function Mh(t, e, o) {
9502
9502
  if (!Array.isArray(o))
9503
9503
  throw new G(t, e, "A list of string is expected");
9504
9504
  o.forEach((r) => {
@@ -9506,7 +9506,7 @@ function Ih(t, e, o) {
9506
9506
  throw new G(t, e, "A list of string is expected");
9507
9507
  });
9508
9508
  }
9509
- function Mh(t, e, o) {
9509
+ function Th(t, e, o) {
9510
9510
  if (o !== void 0 && typeof o != "string") {
9511
9511
  if (!Array.isArray(o))
9512
9512
  throw new G(
@@ -9524,7 +9524,7 @@ function Mh(t, e, o) {
9524
9524
  });
9525
9525
  }
9526
9526
  }
9527
- function Th(t, e, o) {
9527
+ function Dh(t, e, o) {
9528
9528
  if (o !== void 0) {
9529
9529
  if (!Array.isArray(o))
9530
9530
  throw new G(t, e, "An optional list of string is expected");
@@ -9542,7 +9542,7 @@ function cn(t, e, o) {
9542
9542
  if (o !== void 0 && typeof o != "number")
9543
9543
  throw new G(t, e, "An optional number is expected");
9544
9544
  }
9545
- function Dh(t, e, o) {
9545
+ function Ah(t, e, o) {
9546
9546
  if (o !== void 0) {
9547
9547
  if (!Array.isArray(o))
9548
9548
  throw new G(
@@ -9560,7 +9560,7 @@ function Dh(t, e, o) {
9560
9560
  });
9561
9561
  }
9562
9562
  }
9563
- function Ah(t, e, o, r, i) {
9563
+ function kh(t, e, o, r, i) {
9564
9564
  if (o !== void 0) {
9565
9565
  if (!Array.isArray(o))
9566
9566
  throw new G(
@@ -9583,23 +9583,23 @@ function xe(t, e) {
9583
9583
  if (t && Object.keys(i).length > 0)
9584
9584
  throw new Me(t, Object.keys(i));
9585
9585
  }
9586
- function kh(t, e, o) {
9586
+ function Eh(t, e, o) {
9587
9587
  if (o !== "last" && typeof o != "number")
9588
9588
  throw new G(t, e, '"last" or a number is expected');
9589
9589
  }
9590
- function Eh(t, e, o) {
9590
+ function Fh(t, e, o) {
9591
9591
  if (o !== void 0 && o !== "h5web" && o !== "plotly")
9592
9592
  throw new G(t, e, '"h5web" or "plotly" string is expected');
9593
9593
  }
9594
- function Fh(t, e, o) {
9594
+ function Rh(t, e, o) {
9595
9595
  if (o !== void 0 && !Array.isArray(o))
9596
9596
  throw new G(t, e, "A list is expected");
9597
9597
  }
9598
- function Rh(t, e, o) {
9598
+ function Ph(t, e, o) {
9599
9599
  if (o !== void 0 && (o === null || typeof o != "object"))
9600
9600
  throw new G(t, e, "A list is expected");
9601
9601
  }
9602
- function Ph(t, e, o, r) {
9602
+ function Uh(t, e, o, r) {
9603
9603
  const { optional: i, schema: a } = r;
9604
9604
  if (i && o === void 0)
9605
9605
  return;
@@ -9618,63 +9618,64 @@ function Ph(t, e, o, r) {
9618
9618
  }
9619
9619
  const Hg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9620
9620
  __proto__: null,
9621
- assertBoolean: xh,
9622
- assertDataCollectionId: kh,
9623
- assertKeyExpected: Oh,
9621
+ assertBoolean: Sh,
9622
+ assertDataCollectionId: Eh,
9623
+ assertKeyExpected: xh,
9624
9624
  assertNoUnknownKeys: xe,
9625
- assertNumber: Sh,
9626
- assertOptionalArgs: Fh,
9627
- assertOptionalBackend: Eh,
9628
- assertOptionalBoolean: Ch,
9629
- assertOptionalKwargs: Rh,
9630
- assertOptionalListOfType: Ah,
9625
+ assertNumber: Ch,
9626
+ assertOptionalArgs: Rh,
9627
+ assertOptionalBackend: Fh,
9628
+ assertOptionalBoolean: Ih,
9629
+ assertOptionalKwargs: Ph,
9630
+ assertOptionalListOfType: kh,
9631
9631
  assertOptionalNumber: cn,
9632
- assertOptionalNumberList: Dh,
9632
+ assertOptionalNumberList: Ah,
9633
9633
  assertOptionalString: lt,
9634
- assertOptionalStringList: Th,
9635
- assertOptionalStringOrStringList: Mh,
9634
+ assertOptionalStringList: Dh,
9635
+ assertOptionalStringOrStringList: Th,
9636
9636
  assertString: sn,
9637
- assertStringList: Ih,
9638
- assertStringMappingRecord: Ph
9637
+ assertStringList: Mh,
9638
+ assertStringMappingRecord: Uh
9639
9639
  }, Symbol.toStringTag, { value: "Module" }));
9640
- function Uh(t) {
9640
+ function Lh(t) {
9641
9641
  const { providers: e = {}, yamlNode: o, message: r, ...i } = t;
9642
9642
  return lt(o, "message", r), xe(o, i), /* @__PURE__ */ n(le, { variant: "warning", className: "mb-0", children: r ?? "TODO" });
9643
9643
  }
9644
- const ue = {}, ln = {}, Lh = {
9644
+ const ue = {}, ln = {}, Vh = {
9645
9645
  airbearing: No,
9646
9646
  base: Jn,
9647
9647
  beamviewer: Xo,
9648
9648
  beamline: Fo,
9649
9649
  energymanager: fr,
9650
- frontend: oi,
9651
- gauge: Si,
9652
- laser: Hi,
9653
- laserheating: ta,
9654
- light: pa,
9655
- lima: $s,
9656
- measurementgroup: Gs,
9657
- motor: cl,
9658
- multiposition: Cl,
9659
- optic: Wl,
9660
- procedure: dd,
9661
- pump: Hu,
9662
- pusher: rf,
9663
- regulation: Cd,
9664
- service: bf,
9665
- shutter: eu,
9666
- slit: Cu,
9667
- tomoconfig: kp,
9668
- tomodetector: Rm,
9669
- tomodetectors: Qm,
9670
- tomoflatmotion: lm,
9671
- tomoholo: Up,
9672
- tomoimaging: Sp,
9673
- tomoreferenceposition: mm,
9674
- tomosamplestage: Ip,
9675
- valve: Jp
9650
+ filterset: Lr,
9651
+ frontend: ri,
9652
+ gauge: Ci,
9653
+ laser: Gi,
9654
+ laserheating: na,
9655
+ light: ha,
9656
+ lima: Os,
9657
+ measurementgroup: qs,
9658
+ motor: ll,
9659
+ multiposition: Il,
9660
+ optic: zl,
9661
+ procedure: ud,
9662
+ pump: Gu,
9663
+ pusher: af,
9664
+ regulation: Id,
9665
+ service: _f,
9666
+ shutter: tu,
9667
+ slit: Iu,
9668
+ tomoconfig: Ep,
9669
+ tomodetector: Pm,
9670
+ tomodetectors: Xm,
9671
+ tomoflatmotion: dm,
9672
+ tomoholo: Lp,
9673
+ tomoimaging: Cp,
9674
+ tomoreferenceposition: pm,
9675
+ tomosamplestage: Mp,
9676
+ valve: eh
9676
9677
  };
9677
- Object.entries(Lh).forEach(([t, e]) => {
9678
+ Object.entries(Vh).forEach(([t, e]) => {
9678
9679
  ue[t] = { ...e.variants }, ln[t] = { ...e };
9679
9680
  });
9680
9681
  function Gg(t, e, o) {
@@ -9742,7 +9743,7 @@ function Bg(t) {
9742
9743
  }
9743
9744
  ) : /* @__PURE__ */ n(Ge, { hardware: e });
9744
9745
  }
9745
- function Vh(t) {
9746
+ function Hh(t) {
9746
9747
  const {
9747
9748
  title: e,
9748
9749
  children: o,
@@ -9779,10 +9780,10 @@ function Vh(t) {
9779
9780
  }
9780
9781
  );
9781
9782
  }
9782
- function Hh(t) {
9783
+ function Gh(t) {
9783
9784
  return t.condition ? t.wrap(t.children) : t.children;
9784
9785
  }
9785
- const Gh = He((t, e) => {
9786
+ const qh = He((t, e) => {
9786
9787
  const [o, r] = C(!1), { showButton: i = !0 } = t, a = q(null);
9787
9788
  function s() {
9788
9789
  r(!1), t.onClose && t.onClose();
@@ -9794,10 +9795,10 @@ const Gh = He((t, e) => {
9794
9795
  showModal: () => r(!0),
9795
9796
  close: () => c()
9796
9797
  }));
9797
- const u = t.modalClass || Vh;
9798
+ const u = t.modalClass || Hh;
9798
9799
  return /* @__PURE__ */ m(O, { children: [
9799
9800
  i && /* @__PURE__ */ n(
9800
- Hh,
9801
+ Gh,
9801
9802
  {
9802
9803
  condition: t.tooltip,
9803
9804
  wrap: (d) => /* @__PURE__ */ n(
@@ -9833,7 +9834,7 @@ const Gh = He((t, e) => {
9833
9834
  }
9834
9835
  )
9835
9836
  ] });
9836
- }), qh = Gh;
9837
+ }), Bh = qh;
9837
9838
  function dt(t) {
9838
9839
  return t === void 0 || t === null || typeof t != "string" ? null : t.startsWith("$") ? t.slice(1) : t;
9839
9840
  }
@@ -9863,17 +9864,17 @@ function At(t) {
9863
9864
  const i = o.properties[r];
9864
9865
  return Array.isArray(i) ? i[0] : i;
9865
9866
  }
9866
- function Bh(t) {
9867
+ function Wh(t) {
9867
9868
  const e = t !== void 0 && !t.includes("."), o = t !== void 0 ? un(t, ".", 1) : [null, ""], r = ee(dt(o[0]));
9868
9869
  if (e)
9869
9870
  return t;
9870
9871
  if (r && r.properties && o[1] !== null)
9871
9872
  return `${r.properties[o[1]]}`;
9872
9873
  }
9873
- function Wh(t) {
9874
+ function zh(t) {
9874
9875
  const { monitor: e } = t;
9875
9876
  let o = At(e.value) ?? "-";
9876
- const r = Bh(e.unit), i = At(e.overlay), a = Number.parseFloat(`${o}`);
9877
+ const r = Wh(e.unit), i = At(e.overlay), a = Number.parseFloat(`${o}`);
9877
9878
  Number.isNaN(a) || String(a).length > 5 && (o = a.toPrecision(5));
9878
9879
  function s() {
9879
9880
  return e.comparator && e.comparison ? nt(e.comparator, o, e.comparison) ? "success" : "danger" : "secondary";
@@ -9898,7 +9899,7 @@ function Wh(t) {
9898
9899
  }
9899
9900
  return u;
9900
9901
  }
9901
- function zh({
9902
+ function jh({
9902
9903
  value: t,
9903
9904
  unit: e,
9904
9905
  display_digits: o
@@ -9945,7 +9946,7 @@ function zg(t) {
9945
9946
  let g = null;
9946
9947
  if (f.value) {
9947
9948
  const $ = f.value.split("."), T = c[$[0]];
9948
- T && (g = zh({
9949
+ T && (g = jh({
9949
9950
  value: T.properties[$[1]],
9950
9951
  unit: T.properties.unit,
9951
9952
  display_digits: f.value_display_digits
@@ -9989,7 +9990,7 @@ function zg(t) {
9989
9990
  }).map((f) => {
9990
9991
  const p = f.name.toLowerCase(), h = $n();
9991
9992
  return e.current[p] = h, /* @__PURE__ */ n(
9992
- qh,
9993
+ Bh,
9993
9994
  {
9994
9995
  ref: h,
9995
9996
  title: f.name,
@@ -10031,12 +10032,12 @@ function fn(t) {
10031
10032
  /* @__PURE__ */ n("pre", { children: (e = t.error) == null ? void 0 : e.stack })
10032
10033
  ] });
10033
10034
  }
10034
- function jh(t) {
10035
+ function Yh(t) {
10035
10036
  const { error: e } = t;
10036
10037
  if (!(e instanceof ge))
10037
10038
  return /* @__PURE__ */ n(O, {});
10038
10039
  function o(a, s = 3) {
10039
- const c = $h(a.yamlNode), u = [];
10040
+ const c = Oh(a.yamlNode), u = [];
10040
10041
  let d = "";
10041
10042
  for (let l = 1; l < c.length; l++) {
10042
10043
  const { node: f, indexFromParent: p } = c[l];
@@ -10065,7 +10066,7 @@ function jh(t) {
10065
10066
  ), u.join(`
10066
10067
  `);
10067
10068
  }
10068
- const i = _h(e.yamlNode).name;
10069
+ const i = $h(e.yamlNode).name;
10069
10070
  if (e instanceof Me) {
10070
10071
  const a = e.keys.length === 1 ? "key" : "keys";
10071
10072
  return /* @__PURE__ */ m(le, { variant: "danger", children: [
@@ -10120,7 +10121,7 @@ const kt = {
10120
10121
  message: "",
10121
10122
  error: void 0
10122
10123
  };
10123
- class Yh extends On {
10124
+ class Kh extends On {
10124
10125
  constructor(o) {
10125
10126
  super(o);
10126
10127
  he(this, "reload", () => {
@@ -10160,7 +10161,7 @@ class Yh extends On {
10160
10161
  return /* @__PURE__ */ m(B, { className: "mt-2", children: [
10161
10162
  /* @__PURE__ */ n("h4", { children: "Something went wrong" }),
10162
10163
  this.state.error instanceof ge && /* @__PURE__ */ n(
10163
- jh,
10164
+ Yh,
10164
10165
  {
10165
10166
  message: this.state.message,
10166
10167
  error: this.state.error
@@ -10213,7 +10214,7 @@ function Kg(t) {
10213
10214
  className: `${t.className ?? ""} ymllayout-main`,
10214
10215
  "data-testid": t.testid,
10215
10216
  children: /* @__PURE__ */ n(
10216
- Yh,
10217
+ Kh,
10217
10218
  {
10218
10219
  resetKey: e,
10219
10220
  unhandledComponentDidCatch: t.unhandledComponentDidCatch,
@@ -10225,8 +10226,8 @@ function Kg(t) {
10225
10226
  );
10226
10227
  }
10227
10228
  const ut = {
10228
- hardwareproperty: Wh,
10229
- hardware: Kh
10229
+ hardwareproperty: zh,
10230
+ hardware: Qh
10230
10231
  };
10231
10232
  function Qg(t, e) {
10232
10233
  ut[t] = e;
@@ -10272,7 +10273,7 @@ function Zg(t) {
10272
10273
  }
10273
10274
  );
10274
10275
  }
10275
- function Kh(t) {
10276
+ function Qh(t) {
10276
10277
  const { monitor: e } = t, { id: o } = e, r = dt(o), i = ee(r), a = ye(r);
10277
10278
  if (o === void 0)
10278
10279
  return /* @__PURE__ */ n(ot, { monitor: e, message: "'id' is missing" });
@@ -10327,157 +10328,157 @@ export {
10327
10328
  Lt as EnergyManagerState,
10328
10329
  kg as ErrorObject,
10329
10330
  gr as FiltersetDefault,
10330
- pg as FiltersetHardwareDesc,
10331
+ Lr as FiltersetHardwareDesc,
10331
10332
  Fr as FiltersetMocks,
10332
10333
  Pr as FiltersetSimulator,
10333
10334
  mr as FiltersetState,
10334
10335
  hg as Formatting,
10335
- Br as Frontend,
10336
- oi as FrontendHardwareDesc,
10337
- ti as FrontendMocks,
10338
- oh as FullSizer,
10339
- ii as Gauge,
10340
- Si as GaugeHardwareDesc,
10336
+ Wr as Frontend,
10337
+ ri as FrontendHardwareDesc,
10338
+ ni as FrontendMocks,
10339
+ rh as FullSizer,
10340
+ ai as Gauge,
10341
+ Ci as GaugeHardwareDesc,
10341
10342
  Rg as GaugeIndicator,
10342
- Oi as GaugeMocks,
10343
+ xi as GaugeMocks,
10343
10344
  Ve as HardwareInputNumber,
10344
10345
  qe as HardwareNumericStep,
10345
10346
  Yg as HardwareSchema,
10346
10347
  Bg as HardwareState,
10347
10348
  M as HardwareTemplate,
10348
10349
  jg as HardwareTypes,
10349
- js as InfiniteKnob360,
10350
+ Ys as InfiniteKnob360,
10350
10351
  G as KeyError,
10351
- Mi as Laser,
10352
- Hi as LaserHardwareDesc,
10353
- qi as LaserHeating,
10354
- ta as LaserHeatingHardwareDesc,
10355
- Ji as LaserHeatingMocks,
10356
- Li as LaserMocks,
10357
- na as Light,
10358
- pa as LightHardwareDesc,
10359
- fa as LightMocks,
10360
- $a as LimaBinning,
10361
- ga as LimaDefault,
10362
- Ma as LimaDescription,
10363
- $s as LimaHardwareDesc,
10364
- xa as LimaImageRoi,
10365
- ys as LimaMocks,
10366
- Da as LimaShape,
10367
- vs as LimaSimulator,
10368
- wa as LimaSize,
10352
+ Ti as Laser,
10353
+ Gi as LaserHardwareDesc,
10354
+ Bi as LaserHeating,
10355
+ na as LaserHeatingHardwareDesc,
10356
+ ea as LaserHeatingMocks,
10357
+ Vi as LaserMocks,
10358
+ oa as Light,
10359
+ ha as LightHardwareDesc,
10360
+ ma as LightMocks,
10361
+ Oa as LimaBinning,
10362
+ wa as LimaDefault,
10363
+ Ta as LimaDescription,
10364
+ Os as LimaHardwareDesc,
10365
+ Sa as LimaImageRoi,
10366
+ vs as LimaMocks,
10367
+ Aa as LimaShape,
10368
+ Ns as LimaSimulator,
10369
+ ya as LimaSize,
10369
10370
  me as LimaState,
10370
- Na as LimaTransformation,
10371
+ ba as LimaTransformation,
10371
10372
  Dg as LoadingObject,
10372
- Ms as MeasurementGroupDefault,
10373
- Gs as MeasurementGroupHardwareDesc,
10374
- Ls as MeasurementGroupMocks,
10375
- Vs as MeasurementGroupSimulator,
10373
+ Ts as MeasurementGroupDefault,
10374
+ qs as MeasurementGroupHardwareDesc,
10375
+ Vs as MeasurementGroupMocks,
10376
+ Hs as MeasurementGroupSimulator,
10376
10377
  Eg as MissingComponentObject,
10377
10378
  et as MissingKeysError,
10378
10379
  Ag as MissingObject,
10379
- Kh as MonitorHardware,
10380
- Wh as MonitorHardwareProperty,
10380
+ Qh as MonitorHardware,
10381
+ zh as MonitorHardwareProperty,
10381
10382
  Zg as MonitorPanel,
10382
10383
  fe as MonitorPanelItem,
10383
10384
  Ie as MotorDefault,
10384
- cl as MotorHardwareDesc,
10385
- nl as MotorMocks,
10386
- Ys as MotorRotation,
10387
- ol as MotorSimulator,
10385
+ ll as MotorHardwareDesc,
10386
+ ol as MotorMocks,
10387
+ Ks as MotorRotation,
10388
+ rl as MotorSimulator,
10388
10389
  We as MotorState,
10389
- Ws as MotorText,
10390
+ zs as MotorText,
10390
10391
  eo as MultiState,
10391
- ll as Multiposition,
10392
- pl as MultipositionDefault2,
10393
- Cl as MultipositionHardwareDesc,
10394
- Ol as MultipositionMocks,
10395
- xl as MultipositionSimulator,
10392
+ dl as Multiposition,
10393
+ hl as MultipositionDefault2,
10394
+ Il as MultipositionHardwareDesc,
10395
+ xl as MultipositionMocks,
10396
+ Sl as MultipositionSimulator,
10396
10397
  Tg as NoObject,
10397
- ah as None,
10398
+ sh as None,
10398
10399
  Fg as NullObject,
10399
- Ii as NumericStep,
10400
- kl as OpticDefault,
10401
- Wl as OpticHardwareDesc,
10402
- Gl as OpticMocks,
10403
- ql as OpticSimulator,
10400
+ Mi as NumericStep,
10401
+ El as OpticDefault,
10402
+ zl as OpticHardwareDesc,
10403
+ ql as OpticMocks,
10404
+ Bl as OpticSimulator,
10404
10405
  jt as OpticState,
10405
10406
  K as Panel,
10406
- jl as ProcedureActions,
10407
- Ql as ProcedureExecution,
10408
- Kl as ProcedureFinishedState,
10409
- dd as ProcedureHardwareDesc,
10407
+ Yl as ProcedureActions,
10408
+ Xl as ProcedureExecution,
10409
+ Ql as ProcedureFinishedState,
10410
+ ud as ProcedureHardwareDesc,
10410
10411
  St as ProcedureManage,
10411
- cd as ProcedureMocks,
10412
+ ld as ProcedureMocks,
10412
10413
  je as ProcedureState,
10413
- Zl as ProcedureValidate,
10414
- Mu as PumpDefault,
10415
- Hu as PumpHardwareDesc,
10416
- Lu as PumpMocks,
10417
- Wu as PusherDefault,
10418
- rf as PusherHardwareDesc,
10419
- tf as PusherMocks,
10420
- nf as PusherSimulator,
10414
+ Jl as ProcedureValidate,
10415
+ Tu as PumpDefault,
10416
+ Gu as PumpHardwareDesc,
10417
+ Vu as PumpMocks,
10418
+ zu as PusherDefault,
10419
+ af as PusherHardwareDesc,
10420
+ nf as PusherMocks,
10421
+ of as PusherSimulator,
10421
10422
  en as PusherState,
10422
- fd as RegulationDefault,
10423
- Cd as RegulationHardwareDesc,
10424
- Od as RegulationMocks,
10423
+ md as RegulationDefault,
10424
+ Id as RegulationHardwareDesc,
10425
+ xd as RegulationMocks,
10425
10426
  Xt as RegulationPlot,
10426
- xd as RegulationSimulator,
10427
- sf as ServiceDefault,
10428
- bf as ServiceHardwareDesc,
10429
- vf as ServiceMocks,
10430
- lf as ServiceProtected,
10427
+ Sd as RegulationSimulator,
10428
+ cf as ServiceDefault,
10429
+ _f as ServiceHardwareDesc,
10430
+ Nf as ServiceMocks,
10431
+ df as ServiceProtected,
10431
10432
  ct as ServiceState,
10432
- Td as ShutterDefault,
10433
- eu as ShutterHardwareDesc,
10434
- Xd as ShutterMocks,
10435
- Ad as ShutterProtected,
10436
- Zd as ShutterSimulator,
10433
+ Dd as ShutterDefault,
10434
+ tu as ShutterHardwareDesc,
10435
+ Zd as ShutterMocks,
10436
+ kd as ShutterProtected,
10437
+ Jd as ShutterSimulator,
10437
10438
  Ye as ShutterState,
10438
- au as SlitDefault,
10439
- Cu as SlitHardwareDesc,
10440
- xu as SlitMocks,
10439
+ su as SlitDefault,
10440
+ Iu as SlitHardwareDesc,
10441
+ Su as SlitMocks,
10441
10442
  Jt as SlitState,
10442
10443
  V as State,
10443
10444
  zg as Synoptic,
10444
- Uh as Todo,
10445
- kp as TomoConfigHardwareDesc,
10446
- Dp as TomoConfigLatencyTime,
10447
- xm as TomoDetectorAcquisitionMode,
10448
- Rm as TomoDetectorHardwareDesc,
10449
- Em as TomoDetectorMocks,
10450
- vm as TomoDetectorSamplePixelSize,
10445
+ Lh as Todo,
10446
+ Ep as TomoConfigHardwareDesc,
10447
+ Ap as TomoConfigLatencyTime,
10448
+ Sm as TomoDetectorAcquisitionMode,
10449
+ Pm as TomoDetectorHardwareDesc,
10450
+ Fm as TomoDetectorMocks,
10451
+ Nm as TomoDetectorSamplePixelSize,
10451
10452
  Qe as TomoDetectorState,
10452
- Lm as TomoDetectorsDefault,
10453
- Qm as TomoDetectorsHardwareDesc,
10454
- Ym as TomoDetectorsMocks,
10453
+ Vm as TomoDetectorsDefault,
10454
+ Xm as TomoDetectorsHardwareDesc,
10455
+ Km as TomoDetectorsMocks,
10455
10456
  rn as TomoDetectorsState,
10456
- If as TomoFlatMotionDefault,
10457
- lm as TomoFlatMotionHardwareDesc,
10458
- am as TomoFlatMotionMocks,
10459
- sm as TomoFlatMotionSimulator,
10460
- Tf as TomoFlatMotionSmall,
10457
+ Mf as TomoFlatMotionDefault,
10458
+ dm as TomoFlatMotionHardwareDesc,
10459
+ sm as TomoFlatMotionMocks,
10460
+ cm as TomoFlatMotionSimulator,
10461
+ Df as TomoFlatMotionSmall,
10461
10462
  Ke as TomoFlatMotionState,
10462
- Up as TomoHoloHardwareDesc,
10463
- Fp as TomoHoloState,
10464
- fp as TomoImagingActions,
10465
- np as TomoImagingDefault,
10466
- sp as TomoImagingExposureTime,
10467
- Sp as TomoImagingHardwareDesc,
10468
- $p as TomoImagingMocks,
10469
- lp as TomoImagingSettleTime,
10470
- Op as TomoImagingSimulator,
10463
+ Lp as TomoHoloHardwareDesc,
10464
+ Rp as TomoHoloState,
10465
+ mp as TomoImagingActions,
10466
+ op as TomoImagingDefault,
10467
+ cp as TomoImagingExposureTime,
10468
+ Cp as TomoImagingHardwareDesc,
10469
+ Op as TomoImagingMocks,
10470
+ dp as TomoImagingSettleTime,
10471
+ xp as TomoImagingSimulator,
10471
10472
  Oe as TomoImagingState,
10472
- pp as TomoImagingUpdateMode,
10473
- um as TomoReferencePositionDefault,
10474
- mm as TomoReferencePositionHardwareDesc,
10475
- Ip as TomoSampleStageHardwareDesc,
10473
+ hp as TomoImagingUpdateMode,
10474
+ fm as TomoReferencePositionDefault,
10475
+ pm as TomoReferencePositionHardwareDesc,
10476
+ Mp as TomoSampleStageHardwareDesc,
10476
10477
  x as TypeIcon,
10477
- Hp as ValveDefault,
10478
- Jp as ValveHardwareDesc,
10479
- Xp as ValveMocks,
10480
- Yh as YAMLErrorBoundary,
10478
+ Gp as ValveDefault,
10479
+ eh as ValveHardwareDesc,
10480
+ Zp as ValveMocks,
10481
+ Kh as YAMLErrorBoundary,
10481
10482
  Kg as YAMLLayout,
10482
10483
  Hg as YamlAsserts,
10483
10484
  Ng as createMotorMock,
@@ -10488,31 +10489,31 @@ export {
10488
10489
  Lg as getYamlComponents,
10489
10490
  Vg as getYamlContainers,
10490
10491
  Be as isLimaHardware,
10491
- al as isMotorClockWise,
10492
- rl as isMotorHardware,
10492
+ sl as isMotorClockWise,
10493
+ il as isMotorHardware,
10493
10494
  bg as isOpticHardware,
10494
- ud as isProcedureHardware,
10495
- Ep as isTomoConfigHardware,
10495
+ fd as isProcedureHardware,
10496
+ Fp as isTomoConfigHardware,
10496
10497
  on as isTomoDetectorHardware,
10497
- Xm as isTomoDetectorsHardware,
10498
- dm as isTomoFlatMotionHardware,
10499
- Lp as isTomoHoloHardware,
10498
+ Zm as isTomoDetectorsHardware,
10499
+ um as isTomoFlatMotionHardware,
10500
+ Vp as isTomoHoloHardware,
10500
10501
  Og as isTomoReferencePositionHardware,
10501
- Mp as isTomoSampleStageHardware,
10502
- bs as limaGuessSubframes,
10503
- sl as motorLimits,
10502
+ Tp as isTomoSampleStageHardware,
10503
+ _s as limaGuessSubframes,
10504
+ cl as motorLimits,
10504
10505
  dt as normalizeId,
10505
10506
  Gg as registerHardwareVariant,
10506
10507
  Qg as registerMonitorComponent,
10507
10508
  gg as registerRuntimeHook,
10508
- vh as registerYamlComponent,
10509
+ Nh as registerYamlComponent,
10509
10510
  Ug as registerYamlComponents,
10510
10511
  Pg as registerYamlContainer,
10511
10512
  ae as renderYamlNode,
10512
10513
  ee as useHardware,
10513
10514
  ye as useHardwareChangeActions,
10514
10515
  wg as useHardwareSchema,
10515
- Ns as useLimaHardware,
10516
+ bs as useLimaHardware,
10516
10517
  oe as useMotorHardware,
10517
10518
  ze as useMotorStates,
10518
10519
  yg as useOperator,