@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.js +9 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1077 -1076
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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
|
-
},
|
|
1447
|
+
}, Lr = {
|
|
1448
1448
|
variants: Ur,
|
|
1449
1449
|
mocks: Fr,
|
|
1450
1450
|
simulator: Pr
|
|
1451
1451
|
};
|
|
1452
|
-
function
|
|
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
|
|
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
|
|
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
|
|
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:
|
|
1495
|
-
round:
|
|
1496
|
-
toEnergy:
|
|
1494
|
+
formatEng: Vr,
|
|
1495
|
+
round: qr,
|
|
1496
|
+
toEnergy: Gr,
|
|
1497
1497
|
toHoursMins: Gt,
|
|
1498
|
-
ucfirst:
|
|
1498
|
+
ucfirst: Hr
|
|
1499
1499
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1500
|
-
function
|
|
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
|
|
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(
|
|
1599
|
+
/* @__PURE__ */ n(Br, { ...t })
|
|
1600
1600
|
] }) })
|
|
1601
1601
|
] });
|
|
1602
1602
|
}
|
|
1603
|
-
function
|
|
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 =
|
|
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
|
|
1630
|
+
const jr = [
|
|
1631
1631
|
"open",
|
|
1632
1632
|
"close",
|
|
1633
1633
|
"reset"
|
|
1634
|
-
],
|
|
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
|
-
},
|
|
1655
|
-
callables:
|
|
1656
|
-
id:
|
|
1657
|
-
name:
|
|
1658
|
-
online:
|
|
1659
|
-
properties:
|
|
1660
|
-
protocol:
|
|
1661
|
-
require_staff:
|
|
1662
|
-
type:
|
|
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:
|
|
1664
|
+
default: ti
|
|
1665
|
+
}, oi = {
|
|
1666
|
+
default: Wr,
|
|
1667
1667
|
// Override default monitor
|
|
1668
1668
|
monitor: qt
|
|
1669
|
-
},
|
|
1670
|
-
variants:
|
|
1671
|
-
mocks:
|
|
1669
|
+
}, ri = {
|
|
1670
|
+
variants: oi,
|
|
1671
|
+
mocks: ni,
|
|
1672
1672
|
monitor: qt
|
|
1673
1673
|
};
|
|
1674
|
-
function
|
|
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
|
|
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(
|
|
1726
|
+
/* @__PURE__ */ n(ii, { ...t })
|
|
1727
1727
|
] }) })
|
|
1728
1728
|
] });
|
|
1729
1729
|
}
|
|
1730
|
-
const
|
|
1730
|
+
const si = [
|
|
1731
1731
|
"off",
|
|
1732
1732
|
"on"
|
|
1733
|
-
],
|
|
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
|
-
},
|
|
1748
|
-
callables:
|
|
1749
|
-
id:
|
|
1750
|
-
name:
|
|
1751
|
-
online:
|
|
1752
|
-
properties:
|
|
1753
|
-
protocol:
|
|
1754
|
-
require_staff:
|
|
1755
|
-
type:
|
|
1756
|
-
},
|
|
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
|
-
],
|
|
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
|
-
},
|
|
1772
|
-
callables:
|
|
1773
|
-
id:
|
|
1774
|
-
name:
|
|
1775
|
-
online:
|
|
1776
|
-
properties:
|
|
1777
|
-
protocol:
|
|
1778
|
-
require_staff:
|
|
1779
|
-
type:
|
|
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:
|
|
1781
|
+
default: hi,
|
|
1782
|
+
default2: Oi
|
|
1785
1783
|
}, Si = {
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
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
|
-
}),
|
|
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
|
-
|
|
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
|
|
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
|
|
2059
|
+
const Di = [], Ai = "yag1", ki = "yag1", Ei = !0, Fi = {
|
|
2060
2060
|
power: 5,
|
|
2061
2061
|
state: "ON"
|
|
2062
|
-
},
|
|
2063
|
-
callables:
|
|
2064
|
-
id:
|
|
2065
|
-
name:
|
|
2066
|
-
online:
|
|
2067
|
-
properties:
|
|
2068
|
-
protocol:
|
|
2069
|
-
require_staff:
|
|
2070
|
-
type:
|
|
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:
|
|
2072
|
+
default: Li
|
|
2075
2073
|
}, Hi = {
|
|
2076
|
-
|
|
2077
|
-
|
|
2074
|
+
default: Ti
|
|
2075
|
+
}, Gi = {
|
|
2076
|
+
variants: Hi,
|
|
2077
|
+
mocks: Vi
|
|
2078
2078
|
};
|
|
2079
|
-
function
|
|
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
|
|
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(
|
|
2178
|
+
/* @__PURE__ */ n(qi, { hardware: e, disabled: t.disabled })
|
|
2179
2179
|
] })
|
|
2180
2180
|
}
|
|
2181
2181
|
);
|
|
2182
2182
|
}
|
|
2183
|
-
const
|
|
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
|
-
},
|
|
2193
|
-
callables:
|
|
2194
|
-
id:
|
|
2195
|
-
name:
|
|
2196
|
-
online:
|
|
2197
|
-
properties:
|
|
2198
|
-
protocol:
|
|
2199
|
-
require_staff:
|
|
2200
|
-
type:
|
|
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:
|
|
2202
|
+
default: Ji
|
|
2205
2203
|
}, ta = {
|
|
2206
|
-
|
|
2207
|
-
|
|
2204
|
+
default: Bi
|
|
2205
|
+
}, na = {
|
|
2206
|
+
variants: ta,
|
|
2207
|
+
mocks: ea
|
|
2208
2208
|
};
|
|
2209
|
-
function
|
|
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
|
|
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
|
-
},
|
|
2265
|
-
callables:
|
|
2266
|
-
id:
|
|
2267
|
-
name:
|
|
2268
|
-
online:
|
|
2269
|
-
properties:
|
|
2270
|
-
protocol:
|
|
2271
|
-
require_staff:
|
|
2272
|
-
type:
|
|
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:
|
|
2274
|
+
default: fa
|
|
2277
2275
|
}, pa = {
|
|
2278
|
-
|
|
2279
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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(
|
|
2505
|
+
!o.readonly && /* @__PURE__ */ n(va, { ...t })
|
|
2506
2506
|
] });
|
|
2507
2507
|
}
|
|
2508
|
-
function
|
|
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(
|
|
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
|
|
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
|
|
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 =
|
|
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(
|
|
2635
|
+
!d && u && /* @__PURE__ */ n(_a, { ...t })
|
|
2636
2636
|
] });
|
|
2637
2637
|
}
|
|
2638
|
-
function
|
|
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(
|
|
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
|
|
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
|
|
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(
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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(
|
|
2701
|
-
/* @__PURE__ */ n(
|
|
2702
|
-
/* @__PURE__ */ n(
|
|
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
|
|
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
|
|
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(
|
|
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
|
|
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
|
-
},
|
|
2872
|
-
id:
|
|
2873
|
-
name:
|
|
2874
|
-
protocol:
|
|
2875
|
-
type:
|
|
2876
|
-
online:
|
|
2877
|
-
require_staff:
|
|
2878
|
-
properties:
|
|
2879
|
-
},
|
|
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
|
-
},
|
|
2926
|
-
id:
|
|
2927
|
-
name:
|
|
2928
|
-
protocol:
|
|
2929
|
-
type:
|
|
2930
|
-
online:
|
|
2931
|
-
require_staff:
|
|
2932
|
-
properties:
|
|
2933
|
-
},
|
|
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
|
-
},
|
|
2980
|
-
id:
|
|
2981
|
-
name:
|
|
2982
|
-
protocol:
|
|
2983
|
-
type:
|
|
2984
|
-
online:
|
|
2985
|
-
require_staff:
|
|
2986
|
-
properties:
|
|
2987
|
-
},
|
|
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
|
-
},
|
|
3034
|
-
id:
|
|
3035
|
-
name:
|
|
3036
|
-
protocol:
|
|
3037
|
-
type:
|
|
3038
|
-
online:
|
|
3039
|
-
require_staff:
|
|
3040
|
-
properties:
|
|
3041
|
-
},
|
|
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
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
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
|
|
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
|
|
3204
|
+
function bs(t) {
|
|
3205
3205
|
const e = ee(t);
|
|
3206
3206
|
return e === null || !Be(e) ? null : e;
|
|
3207
3207
|
}
|
|
3208
|
-
function
|
|
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
|
|
3213
|
-
default:
|
|
3214
|
-
size:
|
|
3215
|
-
transformation:
|
|
3216
|
-
binning:
|
|
3217
|
-
imageroi:
|
|
3218
|
-
description:
|
|
3219
|
-
shape:
|
|
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:
|
|
3222
|
-
},
|
|
3223
|
-
variants:
|
|
3224
|
-
mocks:
|
|
3225
|
-
simulator:
|
|
3221
|
+
state: ga
|
|
3222
|
+
}, Os = {
|
|
3223
|
+
variants: $s,
|
|
3224
|
+
mocks: vs,
|
|
3225
|
+
simulator: Ns
|
|
3226
3226
|
};
|
|
3227
|
-
function
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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:
|
|
3354
|
-
renderMenu:
|
|
3353
|
+
renderInput: Ss,
|
|
3354
|
+
renderMenu: Cs({
|
|
3355
3355
|
name: e.id
|
|
3356
|
-
})(
|
|
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
|
|
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(
|
|
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
|
|
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
|
-
},
|
|
3414
|
-
callables:
|
|
3415
|
-
id:
|
|
3416
|
-
name:
|
|
3417
|
-
online:
|
|
3418
|
-
properties:
|
|
3419
|
-
protocol:
|
|
3420
|
-
require_staff:
|
|
3421
|
-
type:
|
|
3422
|
-
},
|
|
3423
|
-
default:
|
|
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
|
|
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
|
|
3483
|
-
default:
|
|
3484
|
-
},
|
|
3485
|
-
variants:
|
|
3486
|
-
mocks:
|
|
3487
|
-
simulator:
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
-
},
|
|
3804
|
+
}, js = {
|
|
3805
3805
|
up: 0,
|
|
3806
3806
|
right: -90,
|
|
3807
3807
|
down: 180,
|
|
3808
3808
|
left: 90
|
|
3809
3809
|
};
|
|
3810
|
-
function
|
|
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 =
|
|
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
|
|
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 =
|
|
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 =
|
|
4065
|
-
|
|
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
|
|
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 =
|
|
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
|
|
4106
|
+
const Xs = [
|
|
4107
4107
|
"move",
|
|
4108
4108
|
"stop",
|
|
4109
4109
|
"wait",
|
|
4110
4110
|
"rmove"
|
|
4111
|
-
],
|
|
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
|
-
},
|
|
4128
|
-
callables:
|
|
4129
|
-
id:
|
|
4130
|
-
name:
|
|
4131
|
-
online:
|
|
4132
|
-
properties:
|
|
4133
|
-
protocol:
|
|
4134
|
-
require_staff:
|
|
4135
|
-
type:
|
|
4136
|
-
user_tags:
|
|
4137
|
-
},
|
|
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
|
-
],
|
|
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
|
-
},
|
|
4158
|
-
callables:
|
|
4159
|
-
id:
|
|
4160
|
-
name:
|
|
4161
|
-
online:
|
|
4162
|
-
properties:
|
|
4163
|
-
protocol:
|
|
4164
|
-
require_staff:
|
|
4165
|
-
type:
|
|
4166
|
-
user_tags:
|
|
4167
|
-
},
|
|
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
|
-
],
|
|
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
|
-
},
|
|
4189
|
-
callables:
|
|
4190
|
-
id:
|
|
4191
|
-
name:
|
|
4192
|
-
online:
|
|
4193
|
-
properties:
|
|
4194
|
-
protocol:
|
|
4195
|
-
require_staff:
|
|
4196
|
-
type:
|
|
4197
|
-
user_tags:
|
|
4198
|
-
},
|
|
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
|
-
],
|
|
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
|
-
},
|
|
4218
|
-
callables:
|
|
4219
|
-
id:
|
|
4220
|
-
name:
|
|
4221
|
-
online:
|
|
4222
|
-
properties:
|
|
4223
|
-
protocol:
|
|
4224
|
-
require_staff:
|
|
4225
|
-
type:
|
|
4226
|
-
user_tags:
|
|
4227
|
-
},
|
|
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
|
-
],
|
|
4233
|
-
callables:
|
|
4234
|
-
id:
|
|
4235
|
-
name:
|
|
4236
|
-
online:
|
|
4237
|
-
properties:
|
|
4238
|
-
protocol:
|
|
4239
|
-
require_staff:
|
|
4240
|
-
type:
|
|
4241
|
-
user_tags:
|
|
4242
|
-
},
|
|
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
|
-
],
|
|
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
|
-
},
|
|
4264
|
-
callables:
|
|
4265
|
-
id:
|
|
4266
|
-
name:
|
|
4267
|
-
online:
|
|
4268
|
-
properties:
|
|
4269
|
-
protocol:
|
|
4270
|
-
require_staff:
|
|
4271
|
-
type:
|
|
4272
|
-
user_tags:
|
|
4273
|
-
},
|
|
4274
|
-
default:
|
|
4275
|
-
halfMotor:
|
|
4276
|
-
unknownMotor:
|
|
4277
|
-
notReadyMotor:
|
|
4278
|
-
disconnectedMotor:
|
|
4279
|
-
powerOffMotor:
|
|
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
|
|
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
|
|
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 || !
|
|
4368
|
+
return e === null || !il(e) ? null : e;
|
|
4369
4369
|
}
|
|
4370
|
-
const
|
|
4370
|
+
const al = {
|
|
4371
4371
|
default: Ie,
|
|
4372
|
-
text:
|
|
4373
|
-
rotation:
|
|
4372
|
+
text: zs,
|
|
4373
|
+
rotation: Ks,
|
|
4374
4374
|
// Override base state
|
|
4375
|
-
state:
|
|
4375
|
+
state: Bs,
|
|
4376
4376
|
// Override base monitor
|
|
4377
4377
|
monitor: Wt
|
|
4378
4378
|
};
|
|
4379
|
-
function
|
|
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
|
|
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
|
|
4399
|
-
variants:
|
|
4400
|
-
mocks:
|
|
4401
|
-
simulator:
|
|
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
|
|
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
|
|
4532
|
-
function
|
|
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
|
|
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
|
|
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 =
|
|
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
|
|
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
|
-
|
|
4619
|
+
ul,
|
|
4620
4620
|
{
|
|
4621
4621
|
variant: "secondary",
|
|
4622
4622
|
title: /* @__PURE__ */ n(
|
|
4623
|
-
|
|
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
|
-
|
|
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
|
|
4700
|
+
const gl = [
|
|
4701
4701
|
"move",
|
|
4702
4702
|
"stop"
|
|
4703
|
-
],
|
|
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
|
-
},
|
|
4737
|
-
callables:
|
|
4738
|
-
id:
|
|
4739
|
-
name:
|
|
4740
|
-
online:
|
|
4741
|
-
properties:
|
|
4742
|
-
protocol:
|
|
4743
|
-
require_staff:
|
|
4744
|
-
type:
|
|
4745
|
-
},
|
|
4746
|
-
default:
|
|
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
|
|
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
|
|
4785
|
+
const Cl = {
|
|
4786
4786
|
state: st,
|
|
4787
|
-
default:
|
|
4788
|
-
default2:
|
|
4789
|
-
},
|
|
4790
|
-
variants:
|
|
4791
|
-
mocks:
|
|
4792
|
-
simulator:
|
|
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
|
|
4805
|
+
function Ml(t) {
|
|
4806
4806
|
const { hardware: e } = t;
|
|
4807
4807
|
return /* @__PURE__ */ n(jt, { hardware: e });
|
|
4808
4808
|
}
|
|
4809
|
-
function
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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 ?
|
|
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
|
|
5008
|
+
const Fl = [
|
|
5009
5009
|
"magnification",
|
|
5010
5010
|
"reset",
|
|
5011
5011
|
"open"
|
|
5012
|
-
],
|
|
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
|
-
},
|
|
5023
|
-
callables:
|
|
5024
|
-
id:
|
|
5025
|
-
name:
|
|
5026
|
-
online:
|
|
5027
|
-
properties:
|
|
5028
|
-
protocol:
|
|
5029
|
-
require_staff:
|
|
5030
|
-
type:
|
|
5031
|
-
},
|
|
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
|
|
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
|
|
5114
|
-
default:
|
|
5113
|
+
const Wl = {
|
|
5114
|
+
default: El,
|
|
5115
5115
|
// Override base state
|
|
5116
|
-
state:
|
|
5117
|
-
},
|
|
5118
|
-
variants:
|
|
5119
|
-
mocks:
|
|
5120
|
-
simulator:
|
|
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
|
|
5134
|
+
function jl(t) {
|
|
5135
5135
|
const { hardware: e } = t;
|
|
5136
5136
|
return /* @__PURE__ */ n(je, { hardware: e });
|
|
5137
5137
|
}
|
|
5138
|
-
function
|
|
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
|
-
|
|
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
|
|
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(
|
|
5198
|
+
] }) : /* @__PURE__ */ n(Ql, { hardware: e });
|
|
5199
5199
|
}
|
|
5200
|
-
function
|
|
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
|
|
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(
|
|
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
|
|
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
|
|
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(
|
|
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
|
|
5257
|
+
const ed = [
|
|
5258
5258
|
"start",
|
|
5259
5259
|
"abort",
|
|
5260
5260
|
"clear",
|
|
5261
5261
|
"validate"
|
|
5262
|
-
],
|
|
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
|
-
|
|
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:
|
|
5325
|
-
validate:
|
|
5324
|
+
execution: Xl,
|
|
5325
|
+
validate: Jl,
|
|
5326
5326
|
// Override base state
|
|
5327
|
-
state:
|
|
5328
|
-
},
|
|
5329
|
-
variants:
|
|
5330
|
-
mocks:
|
|
5327
|
+
state: jl
|
|
5328
|
+
}, ud = {
|
|
5329
|
+
variants: dd,
|
|
5330
|
+
mocks: ld
|
|
5331
5331
|
};
|
|
5332
|
-
function
|
|
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 || !
|
|
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
|
|
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
|
|
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(
|
|
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
|
|
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
|
|
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
|
-
},
|
|
5678
|
-
alias:
|
|
5679
|
-
errors:
|
|
5680
|
-
locked:
|
|
5681
|
-
name:
|
|
5682
|
-
online:
|
|
5683
|
-
properties:
|
|
5684
|
-
type:
|
|
5685
|
-
user_tags:
|
|
5686
|
-
},
|
|
5687
|
-
default:
|
|
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
|
|
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
|
|
5739
|
-
default:
|
|
5738
|
+
const Cd = {
|
|
5739
|
+
default: md,
|
|
5740
5740
|
plot: Xt,
|
|
5741
|
-
popupplot:
|
|
5741
|
+
popupplot: hd,
|
|
5742
5742
|
monitor: Qt
|
|
5743
|
-
},
|
|
5744
|
-
variants:
|
|
5745
|
-
mocks:
|
|
5746
|
-
simulator:
|
|
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
|
|
5781
|
+
function Md(t) {
|
|
5782
5782
|
const { hardware: e } = t;
|
|
5783
5783
|
return /* @__PURE__ */ n(Ye, { hardware: e, useReadyState: !0 });
|
|
5784
5784
|
}
|
|
5785
|
-
function
|
|
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
|
|
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(
|
|
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
|
|
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
|
|
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(
|
|
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
|
|
5977
|
+
const Ed = [
|
|
5978
5978
|
"reset",
|
|
5979
5979
|
"open",
|
|
5980
5980
|
"close",
|
|
5981
5981
|
"toggle"
|
|
5982
|
-
],
|
|
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
|
-
},
|
|
5990
|
-
callables:
|
|
5991
|
-
id:
|
|
5992
|
-
name:
|
|
5993
|
-
online:
|
|
5994
|
-
properties:
|
|
5995
|
-
protocol:
|
|
5996
|
-
require_staff:
|
|
5997
|
-
type:
|
|
5998
|
-
},
|
|
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
|
-
],
|
|
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
|
-
},
|
|
6011
|
-
callables:
|
|
6012
|
-
id:
|
|
6013
|
-
name:
|
|
6014
|
-
online:
|
|
6015
|
-
properties:
|
|
6016
|
-
protocol:
|
|
6017
|
-
require_staff:
|
|
6018
|
-
type:
|
|
6019
|
-
},
|
|
6020
|
-
default:
|
|
6021
|
-
closed:
|
|
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
|
|
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
|
|
6060
|
-
default:
|
|
6061
|
-
protected:
|
|
6059
|
+
const eu = {
|
|
6060
|
+
default: Dd,
|
|
6061
|
+
protected: kd,
|
|
6062
6062
|
// Override default state
|
|
6063
|
-
state:
|
|
6063
|
+
state: Md,
|
|
6064
6064
|
// Override default monitor
|
|
6065
6065
|
monitor: Zt
|
|
6066
|
-
},
|
|
6067
|
-
variants:
|
|
6068
|
-
mocks:
|
|
6069
|
-
simulator:
|
|
6066
|
+
}, tu = {
|
|
6067
|
+
variants: eu,
|
|
6068
|
+
mocks: Zd,
|
|
6069
|
+
simulator: Jd,
|
|
6070
6070
|
monitor: Zt
|
|
6071
6071
|
};
|
|
6072
|
-
function
|
|
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 =
|
|
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
|
|
6109
|
+
function ou(t) {
|
|
6110
6110
|
const { hardware: e } = t;
|
|
6111
6111
|
return /* @__PURE__ */ n(Jt, { hardware: e });
|
|
6112
6112
|
}
|
|
6113
|
-
function
|
|
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
|
|
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
|
|
6193
|
-
const { hardware: e, options: o = {} } = t, r =
|
|
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(
|
|
6238
|
+
!i && /* @__PURE__ */ n(iu, { ...t, resolved: r })
|
|
6239
6239
|
] });
|
|
6240
6240
|
}
|
|
6241
|
-
function
|
|
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(
|
|
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
|
|
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
|
-
},
|
|
6260
|
-
id:
|
|
6261
|
-
name:
|
|
6262
|
-
online:
|
|
6263
|
-
properties:
|
|
6264
|
-
type:
|
|
6265
|
-
},
|
|
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
|
-
},
|
|
6271
|
-
id:
|
|
6272
|
-
name:
|
|
6273
|
-
online:
|
|
6274
|
-
properties:
|
|
6275
|
-
type:
|
|
6276
|
-
},
|
|
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
|
-
},
|
|
6282
|
-
id:
|
|
6283
|
-
name:
|
|
6284
|
-
online:
|
|
6285
|
-
properties:
|
|
6286
|
-
type:
|
|
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:
|
|
6293
|
-
|
|
6294
|
-
|
|
6288
|
+
default: mu,
|
|
6289
|
+
horizontal: vu,
|
|
6290
|
+
vertical: xu
|
|
6295
6291
|
}, Cu = {
|
|
6296
|
-
|
|
6297
|
-
|
|
6292
|
+
default: su,
|
|
6293
|
+
// Override default state
|
|
6294
|
+
state: ou
|
|
6295
|
+
}, Iu = {
|
|
6296
|
+
variants: Cu,
|
|
6297
|
+
mocks: Su
|
|
6298
6298
|
};
|
|
6299
|
-
function
|
|
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
|
|
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(
|
|
6370
|
+
/* @__PURE__ */ n(Mu, { ...t })
|
|
6371
6371
|
] }) })
|
|
6372
6372
|
] });
|
|
6373
6373
|
}
|
|
6374
|
-
const
|
|
6374
|
+
const Du = [
|
|
6375
6375
|
"off",
|
|
6376
6376
|
"on"
|
|
6377
|
-
],
|
|
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
|
-
},
|
|
6388
|
-
callables:
|
|
6389
|
-
id:
|
|
6390
|
-
name:
|
|
6391
|
-
online:
|
|
6392
|
-
properties:
|
|
6393
|
-
protocol:
|
|
6394
|
-
require_staff:
|
|
6395
|
-
type:
|
|
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:
|
|
6397
|
+
default: Lu
|
|
6400
6398
|
}, Hu = {
|
|
6401
|
-
|
|
6402
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
|
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(
|
|
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
|
|
6709
|
+
const ju = [
|
|
6710
6710
|
"move_in",
|
|
6711
6711
|
"move_out",
|
|
6712
6712
|
"push",
|
|
6713
6713
|
"sync_hard"
|
|
6714
|
-
],
|
|
6714
|
+
], Yu = "pusher", Ku = "pusher", Qu = !0, Xu = {
|
|
6715
6715
|
state: "RETRACTED"
|
|
6716
|
-
},
|
|
6717
|
-
callables:
|
|
6718
|
-
id:
|
|
6719
|
-
name:
|
|
6720
|
-
online:
|
|
6721
|
-
properties:
|
|
6722
|
-
protocol:
|
|
6723
|
-
require_staff:
|
|
6724
|
-
type:
|
|
6725
|
-
},
|
|
6726
|
-
default:
|
|
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
|
|
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
|
|
6762
|
-
default:
|
|
6761
|
+
const rf = {
|
|
6762
|
+
default: zu,
|
|
6763
6763
|
// Override base state
|
|
6764
|
-
state:
|
|
6765
|
-
},
|
|
6766
|
-
variants:
|
|
6767
|
-
mocks:
|
|
6768
|
-
simulator:
|
|
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
|
|
6784
|
+
function sf(t) {
|
|
6785
6785
|
const { hardware: e } = t;
|
|
6786
6786
|
return /* @__PURE__ */ n(ct, { hardware: e });
|
|
6787
6787
|
}
|
|
6788
|
-
function
|
|
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
|
|
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
|
|
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(
|
|
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
|
|
7004
|
+
const uf = [
|
|
7005
7005
|
"start",
|
|
7006
7006
|
"stop",
|
|
7007
7007
|
"restart"
|
|
7008
|
-
],
|
|
7008
|
+
], ff = "service1", mf = "service1", pf = !0, hf = {
|
|
7009
7009
|
state: "RUNNING"
|
|
7010
|
-
},
|
|
7011
|
-
callables:
|
|
7012
|
-
id:
|
|
7013
|
-
name:
|
|
7014
|
-
online:
|
|
7015
|
-
properties:
|
|
7016
|
-
protocol:
|
|
7017
|
-
require_staff:
|
|
7018
|
-
type:
|
|
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:
|
|
7023
|
-
protected: lf,
|
|
7024
|
-
// Override base state
|
|
7025
|
-
state: af
|
|
7020
|
+
default: vf
|
|
7026
7021
|
}, bf = {
|
|
7027
|
-
|
|
7028
|
-
|
|
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
|
|
7056
|
+
function $f(t) {
|
|
7057
7057
|
const { hardware: e } = t;
|
|
7058
7058
|
return /* @__PURE__ */ n(Ke, { hardware: e });
|
|
7059
7059
|
}
|
|
7060
|
-
function
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
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(
|
|
7229
|
+
/* @__PURE__ */ n(Of, { motion: l }),
|
|
7230
7230
|
/* @__PURE__ */ n(
|
|
7231
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
-
},
|
|
7425
|
-
id:
|
|
7426
|
-
name:
|
|
7427
|
-
online:
|
|
7428
|
-
properties:
|
|
7429
|
-
protocol:
|
|
7430
|
-
require_staff:
|
|
7431
|
-
type:
|
|
7432
|
-
},
|
|
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
|
-
],
|
|
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
|
-
},
|
|
7454
|
-
callables:
|
|
7455
|
-
id:
|
|
7456
|
-
name:
|
|
7457
|
-
online:
|
|
7458
|
-
properties:
|
|
7459
|
-
protocol:
|
|
7460
|
-
require_staff:
|
|
7461
|
-
type:
|
|
7462
|
-
user_tags:
|
|
7463
|
-
},
|
|
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
|
-
],
|
|
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
|
-
},
|
|
7485
|
-
callables:
|
|
7486
|
-
id:
|
|
7487
|
-
name:
|
|
7488
|
-
online:
|
|
7489
|
-
properties:
|
|
7490
|
-
protocol:
|
|
7491
|
-
require_staff:
|
|
7492
|
-
type:
|
|
7493
|
-
user_tags:
|
|
7494
|
-
},
|
|
7495
|
-
default:
|
|
7496
|
-
sy:
|
|
7497
|
-
sy2:
|
|
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
|
|
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
|
|
7566
|
-
default:
|
|
7567
|
-
small:
|
|
7565
|
+
const lm = {
|
|
7566
|
+
default: Mf,
|
|
7567
|
+
small: Df,
|
|
7568
7568
|
// Override base state
|
|
7569
|
-
state:
|
|
7570
|
-
sample_location:
|
|
7571
|
-
},
|
|
7572
|
-
variants:
|
|
7573
|
-
mocks:
|
|
7574
|
-
simulator:
|
|
7569
|
+
state: $f,
|
|
7570
|
+
sample_location: Af
|
|
7571
|
+
}, dm = {
|
|
7572
|
+
variants: lm,
|
|
7573
|
+
mocks: sm,
|
|
7574
|
+
simulator: cm
|
|
7575
7575
|
};
|
|
7576
|
-
function
|
|
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 || !
|
|
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
|
|
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
|
|
7636
|
-
default:
|
|
7637
|
-
},
|
|
7638
|
-
variants:
|
|
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
|
|
7652
|
+
function hm(t) {
|
|
7653
7653
|
const { hardware: e } = t;
|
|
7654
7654
|
return /* @__PURE__ */ n(Qe, { hardware: e });
|
|
7655
7655
|
}
|
|
7656
|
-
function
|
|
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
|
|
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
|
|
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(
|
|
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(
|
|
7715
|
+
/* @__PURE__ */ n(wm, { ...t }),
|
|
7716
7716
|
/* @__PURE__ */ n(N.Text, { children: "um" })
|
|
7717
7717
|
] }) }) })
|
|
7718
7718
|
] }) })
|
|
7719
7719
|
] });
|
|
7720
7720
|
}
|
|
7721
|
-
function
|
|
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
|
|
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] =
|
|
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(
|
|
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
|
|
7806
|
-
const { hardware: e, options: o = {} } = t, { properties: r = {} } = e, { sample_pixel_size: i, detector: a = null } = r, s =
|
|
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
|
|
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
|
|
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
|
|
7876
|
+
function Om(t) {
|
|
7877
7877
|
const e = ee(t);
|
|
7878
7878
|
return e !== null && Be(e) ? e : null;
|
|
7879
7879
|
}
|
|
7880
|
-
function
|
|
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 =
|
|
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(
|
|
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(
|
|
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
|
|
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(
|
|
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
|
|
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
|
-
},
|
|
7922
|
-
id:
|
|
7923
|
-
name:
|
|
7924
|
-
online:
|
|
7925
|
-
properties:
|
|
7926
|
-
protocol:
|
|
7927
|
-
require_staff:
|
|
7928
|
-
type:
|
|
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
|
-
|
|
7933
|
-
acquisitionmode: xm,
|
|
7934
|
-
fieldofview: Nm,
|
|
7935
|
-
// Override base state
|
|
7936
|
-
state: pm
|
|
7930
|
+
default: Em
|
|
7937
7931
|
}, Rm = {
|
|
7938
|
-
|
|
7939
|
-
|
|
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
|
|
7958
|
+
function Um(t) {
|
|
7959
7959
|
const { hardware: e } = t;
|
|
7960
7960
|
return /* @__PURE__ */ n(rn, { hardware: e });
|
|
7961
7961
|
}
|
|
7962
|
-
function
|
|
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
|
|
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(
|
|
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
|
|
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
|
-
},
|
|
8034
|
-
id:
|
|
8035
|
-
name:
|
|
8036
|
-
online:
|
|
8037
|
-
properties:
|
|
8038
|
-
protocol:
|
|
8039
|
-
require_staff:
|
|
8040
|
-
type:
|
|
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:
|
|
8045
|
-
// Override base state
|
|
8046
|
-
state: Pm
|
|
8042
|
+
default: Ym
|
|
8047
8043
|
}, Qm = {
|
|
8048
|
-
|
|
8049
|
-
|
|
8044
|
+
default: Vm,
|
|
8045
|
+
// Override base state
|
|
8046
|
+
state: Um
|
|
8047
|
+
}, Xm = {
|
|
8048
|
+
variants: Qm,
|
|
8049
|
+
mocks: Km
|
|
8050
8050
|
};
|
|
8051
|
-
function
|
|
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 || !
|
|
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
|
|
8067
|
+
function Jm(t) {
|
|
8068
8068
|
const { hardware: e } = t;
|
|
8069
8069
|
return /* @__PURE__ */ n(Oe, { hardware: e });
|
|
8070
8070
|
}
|
|
8071
|
-
function
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
8243
|
+
function ip(t) {
|
|
8244
8244
|
const { onAccepted: e, ...o } = t;
|
|
8245
8245
|
return /* @__PURE__ */ n(
|
|
8246
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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] =
|
|
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
|
|
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
|
-
|
|
8306
|
+
ap,
|
|
8307
8307
|
{
|
|
8308
8308
|
hardware: e,
|
|
8309
8309
|
disabled: t.disabled,
|
|
8310
8310
|
options: o
|
|
8311
8311
|
}
|
|
8312
8312
|
),
|
|
8313
|
-
/* @__PURE__ */ n(
|
|
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
|
|
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
|
|
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(
|
|
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
|
|
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
|
|
8411
|
-
const { hardware: e, restoreSample: o } = t, [r, i] = C(!1), a = t.disabled || !e.online || r, s =
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
|
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(
|
|
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
|
|
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
|
-
},
|
|
8554
|
-
id:
|
|
8555
|
-
name:
|
|
8556
|
-
online:
|
|
8557
|
-
properties:
|
|
8558
|
-
protocol:
|
|
8559
|
-
require_staff:
|
|
8560
|
-
type:
|
|
8561
|
-
},
|
|
8562
|
-
default:
|
|
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
|
|
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
|
|
8606
|
-
default:
|
|
8607
|
-
exposuretime:
|
|
8608
|
-
settletime:
|
|
8609
|
-
actions:
|
|
8610
|
-
updatemode:
|
|
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:
|
|
8613
|
-
},
|
|
8614
|
-
variants:
|
|
8615
|
-
mocks:
|
|
8616
|
-
simulator:
|
|
8617
|
-
},
|
|
8618
|
-
variants:
|
|
8612
|
+
state: Jm
|
|
8613
|
+
}, Cp = {
|
|
8614
|
+
variants: Sp,
|
|
8615
|
+
mocks: Op,
|
|
8616
|
+
simulator: xp
|
|
8617
|
+
}, Ip = {}, Mp = {
|
|
8618
|
+
variants: Ip
|
|
8619
8619
|
};
|
|
8620
|
-
function
|
|
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 || !
|
|
8625
|
+
return e === null || !Tp(e) ? null : e;
|
|
8626
8626
|
}
|
|
8627
|
-
function
|
|
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
|
|
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(
|
|
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
|
|
8678
|
-
latencytime:
|
|
8679
|
-
},
|
|
8680
|
-
variants:
|
|
8677
|
+
const kp = {
|
|
8678
|
+
latencytime: Ap
|
|
8679
|
+
}, Ep = {
|
|
8680
|
+
variants: kp
|
|
8681
8681
|
};
|
|
8682
|
-
function
|
|
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 || !
|
|
8687
|
+
return e === null || !Fp(e) ? null : e;
|
|
8688
8688
|
}
|
|
8689
|
-
function
|
|
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
|
|
8701
|
+
function Pp(t) {
|
|
8702
8702
|
const { hardware: e } = t;
|
|
8703
|
-
return /* @__PURE__ */ n(
|
|
8703
|
+
return /* @__PURE__ */ n(Rp, { hardware: e });
|
|
8704
8704
|
}
|
|
8705
|
-
const
|
|
8705
|
+
const Up = {
|
|
8706
8706
|
// Override base state
|
|
8707
|
-
state:
|
|
8708
|
-
},
|
|
8709
|
-
variants:
|
|
8707
|
+
state: Pp
|
|
8708
|
+
}, Lp = {
|
|
8709
|
+
variants: Up
|
|
8710
8710
|
};
|
|
8711
|
-
function
|
|
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 || !
|
|
8716
|
+
return e === null || !Vp(e) ? null : e;
|
|
8717
8717
|
}
|
|
8718
|
-
function
|
|
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
|
|
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(
|
|
8777
|
+
/* @__PURE__ */ n(Hp, { ...t })
|
|
8778
8778
|
] }) })
|
|
8779
8779
|
] });
|
|
8780
8780
|
}
|
|
8781
|
-
const
|
|
8781
|
+
const qp = [
|
|
8782
8782
|
"close",
|
|
8783
8783
|
"reset",
|
|
8784
8784
|
"open"
|
|
8785
|
-
],
|
|
8785
|
+
], Bp = "rv12", Wp = "rv12", zp = !0, jp = {
|
|
8786
8786
|
state: "CLOSED",
|
|
8787
8787
|
status: `Pneumatic is closed
|
|
8788
8788
|
`
|
|
8789
|
-
},
|
|
8790
|
-
callables:
|
|
8791
|
-
id:
|
|
8792
|
-
name:
|
|
8793
|
-
online:
|
|
8794
|
-
properties:
|
|
8795
|
-
protocol:
|
|
8796
|
-
require_staff:
|
|
8797
|
-
type:
|
|
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:
|
|
8799
|
+
default: Xp
|
|
8802
8800
|
}, Jp = {
|
|
8803
|
-
|
|
8804
|
-
|
|
8805
|
-
|
|
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
|
|
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
|
|
8856
|
+
const nh = it("daiquiri.components.hardware.MissingObject");
|
|
8857
8857
|
function Ag(t) {
|
|
8858
8858
|
if (t.options.emptyifnone)
|
|
8859
|
-
return
|
|
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
|
|
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
|
|
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
|
|
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
|
|
9140
|
+
function ih(t) {
|
|
9141
9141
|
return /* @__PURE__ */ n("div", { className: "panel-header", style: t.style, children: t.children });
|
|
9142
9142
|
}
|
|
9143
|
-
function
|
|
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 ?
|
|
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 =
|
|
9151
|
-
K.Contents =
|
|
9152
|
-
function
|
|
9150
|
+
K.Header = ih;
|
|
9151
|
+
K.Contents = ah;
|
|
9152
|
+
function sh(t) {
|
|
9153
9153
|
return /* @__PURE__ */ n(O, {});
|
|
9154
9154
|
}
|
|
9155
|
-
function
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
9190
|
-
function
|
|
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:
|
|
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
|
|
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
|
|
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(
|
|
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
|
|
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
|
|
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(
|
|
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
|
|
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
|
|
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:
|
|
9353
|
-
col:
|
|
9354
|
-
container:
|
|
9355
|
-
panel:
|
|
9356
|
-
tabs:
|
|
9357
|
-
form:
|
|
9358
|
-
formheader:
|
|
9359
|
-
grid:
|
|
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:
|
|
9370
|
-
none:
|
|
9371
|
-
label:
|
|
9369
|
+
todo: Lh,
|
|
9370
|
+
none: sh,
|
|
9371
|
+
label: ch
|
|
9372
9372
|
};
|
|
9373
|
-
function
|
|
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]) =>
|
|
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
|
|
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] :
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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:
|
|
9622
|
-
assertDataCollectionId:
|
|
9623
|
-
assertKeyExpected:
|
|
9621
|
+
assertBoolean: Sh,
|
|
9622
|
+
assertDataCollectionId: Eh,
|
|
9623
|
+
assertKeyExpected: xh,
|
|
9624
9624
|
assertNoUnknownKeys: xe,
|
|
9625
|
-
assertNumber:
|
|
9626
|
-
assertOptionalArgs:
|
|
9627
|
-
assertOptionalBackend:
|
|
9628
|
-
assertOptionalBoolean:
|
|
9629
|
-
assertOptionalKwargs:
|
|
9630
|
-
assertOptionalListOfType:
|
|
9625
|
+
assertNumber: Ch,
|
|
9626
|
+
assertOptionalArgs: Rh,
|
|
9627
|
+
assertOptionalBackend: Fh,
|
|
9628
|
+
assertOptionalBoolean: Ih,
|
|
9629
|
+
assertOptionalKwargs: Ph,
|
|
9630
|
+
assertOptionalListOfType: kh,
|
|
9631
9631
|
assertOptionalNumber: cn,
|
|
9632
|
-
assertOptionalNumberList:
|
|
9632
|
+
assertOptionalNumberList: Ah,
|
|
9633
9633
|
assertOptionalString: lt,
|
|
9634
|
-
assertOptionalStringList:
|
|
9635
|
-
assertOptionalStringOrStringList:
|
|
9634
|
+
assertOptionalStringList: Dh,
|
|
9635
|
+
assertOptionalStringOrStringList: Th,
|
|
9636
9636
|
assertString: sn,
|
|
9637
|
-
assertStringList:
|
|
9638
|
-
assertStringMappingRecord:
|
|
9637
|
+
assertStringList: Mh,
|
|
9638
|
+
assertStringMappingRecord: Uh
|
|
9639
9639
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
9640
|
-
function
|
|
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 = {},
|
|
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
|
-
|
|
9651
|
-
|
|
9652
|
-
|
|
9653
|
-
|
|
9654
|
-
|
|
9655
|
-
|
|
9656
|
-
|
|
9657
|
-
|
|
9658
|
-
|
|
9659
|
-
|
|
9660
|
-
|
|
9661
|
-
|
|
9662
|
-
|
|
9663
|
-
|
|
9664
|
-
|
|
9665
|
-
|
|
9666
|
-
|
|
9667
|
-
|
|
9668
|
-
|
|
9669
|
-
|
|
9670
|
-
|
|
9671
|
-
|
|
9672
|
-
|
|
9673
|
-
|
|
9674
|
-
|
|
9675
|
-
|
|
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(
|
|
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
|
|
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
|
|
9783
|
+
function Gh(t) {
|
|
9783
9784
|
return t.condition ? t.wrap(t.children) : t.children;
|
|
9784
9785
|
}
|
|
9785
|
-
const
|
|
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 ||
|
|
9798
|
+
const u = t.modalClass || Hh;
|
|
9798
9799
|
return /* @__PURE__ */ m(O, { children: [
|
|
9799
9800
|
i && /* @__PURE__ */ n(
|
|
9800
|
-
|
|
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
|
-
}),
|
|
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
|
|
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
|
|
9874
|
+
function zh(t) {
|
|
9874
9875
|
const { monitor: e } = t;
|
|
9875
9876
|
let o = At(e.value) ?? "-";
|
|
9876
|
-
const r =
|
|
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
|
|
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 =
|
|
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
|
-
|
|
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
|
|
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 =
|
|
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 =
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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:
|
|
10229
|
-
hardware:
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
10336
|
-
|
|
10337
|
-
|
|
10338
|
-
|
|
10339
|
-
|
|
10340
|
-
|
|
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
|
-
|
|
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
|
-
|
|
10350
|
+
Ys as InfiniteKnob360,
|
|
10350
10351
|
G as KeyError,
|
|
10351
|
-
|
|
10352
|
-
|
|
10353
|
-
|
|
10354
|
-
|
|
10355
|
-
|
|
10356
|
-
|
|
10357
|
-
|
|
10358
|
-
|
|
10359
|
-
|
|
10360
|
-
|
|
10361
|
-
|
|
10362
|
-
|
|
10363
|
-
|
|
10364
|
-
|
|
10365
|
-
|
|
10366
|
-
|
|
10367
|
-
|
|
10368
|
-
|
|
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
|
-
|
|
10371
|
+
ba as LimaTransformation,
|
|
10371
10372
|
Dg as LoadingObject,
|
|
10372
|
-
|
|
10373
|
-
|
|
10374
|
-
|
|
10375
|
-
|
|
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
|
-
|
|
10380
|
-
|
|
10380
|
+
Qh as MonitorHardware,
|
|
10381
|
+
zh as MonitorHardwareProperty,
|
|
10381
10382
|
Zg as MonitorPanel,
|
|
10382
10383
|
fe as MonitorPanelItem,
|
|
10383
10384
|
Ie as MotorDefault,
|
|
10384
|
-
|
|
10385
|
-
|
|
10386
|
-
|
|
10387
|
-
|
|
10385
|
+
ll as MotorHardwareDesc,
|
|
10386
|
+
ol as MotorMocks,
|
|
10387
|
+
Ks as MotorRotation,
|
|
10388
|
+
rl as MotorSimulator,
|
|
10388
10389
|
We as MotorState,
|
|
10389
|
-
|
|
10390
|
+
zs as MotorText,
|
|
10390
10391
|
eo as MultiState,
|
|
10391
|
-
|
|
10392
|
-
|
|
10393
|
-
|
|
10394
|
-
|
|
10395
|
-
|
|
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
|
-
|
|
10398
|
+
sh as None,
|
|
10398
10399
|
Fg as NullObject,
|
|
10399
|
-
|
|
10400
|
-
|
|
10401
|
-
|
|
10402
|
-
|
|
10403
|
-
|
|
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
|
-
|
|
10407
|
-
|
|
10408
|
-
|
|
10409
|
-
|
|
10407
|
+
Yl as ProcedureActions,
|
|
10408
|
+
Xl as ProcedureExecution,
|
|
10409
|
+
Ql as ProcedureFinishedState,
|
|
10410
|
+
ud as ProcedureHardwareDesc,
|
|
10410
10411
|
St as ProcedureManage,
|
|
10411
|
-
|
|
10412
|
+
ld as ProcedureMocks,
|
|
10412
10413
|
je as ProcedureState,
|
|
10413
|
-
|
|
10414
|
-
|
|
10415
|
-
|
|
10416
|
-
|
|
10417
|
-
|
|
10418
|
-
|
|
10419
|
-
|
|
10420
|
-
|
|
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
|
-
|
|
10423
|
-
|
|
10424
|
-
|
|
10423
|
+
md as RegulationDefault,
|
|
10424
|
+
Id as RegulationHardwareDesc,
|
|
10425
|
+
xd as RegulationMocks,
|
|
10425
10426
|
Xt as RegulationPlot,
|
|
10426
|
-
|
|
10427
|
-
|
|
10428
|
-
|
|
10429
|
-
|
|
10430
|
-
|
|
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
|
-
|
|
10433
|
-
|
|
10434
|
-
|
|
10435
|
-
|
|
10436
|
-
|
|
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
|
-
|
|
10439
|
-
|
|
10440
|
-
|
|
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
|
-
|
|
10445
|
-
|
|
10446
|
-
|
|
10447
|
-
|
|
10448
|
-
|
|
10449
|
-
|
|
10450
|
-
|
|
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
|
-
|
|
10453
|
-
|
|
10454
|
-
|
|
10453
|
+
Vm as TomoDetectorsDefault,
|
|
10454
|
+
Xm as TomoDetectorsHardwareDesc,
|
|
10455
|
+
Km as TomoDetectorsMocks,
|
|
10455
10456
|
rn as TomoDetectorsState,
|
|
10456
|
-
|
|
10457
|
-
|
|
10458
|
-
|
|
10459
|
-
|
|
10460
|
-
|
|
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
|
-
|
|
10463
|
-
|
|
10464
|
-
|
|
10465
|
-
|
|
10466
|
-
|
|
10467
|
-
|
|
10468
|
-
|
|
10469
|
-
|
|
10470
|
-
|
|
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
|
-
|
|
10473
|
-
|
|
10474
|
-
|
|
10475
|
-
|
|
10473
|
+
hp as TomoImagingUpdateMode,
|
|
10474
|
+
fm as TomoReferencePositionDefault,
|
|
10475
|
+
pm as TomoReferencePositionHardwareDesc,
|
|
10476
|
+
Mp as TomoSampleStageHardwareDesc,
|
|
10476
10477
|
x as TypeIcon,
|
|
10477
|
-
|
|
10478
|
-
|
|
10479
|
-
|
|
10480
|
-
|
|
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
|
-
|
|
10492
|
-
|
|
10492
|
+
sl as isMotorClockWise,
|
|
10493
|
+
il as isMotorHardware,
|
|
10493
10494
|
bg as isOpticHardware,
|
|
10494
|
-
|
|
10495
|
-
|
|
10495
|
+
fd as isProcedureHardware,
|
|
10496
|
+
Fp as isTomoConfigHardware,
|
|
10496
10497
|
on as isTomoDetectorHardware,
|
|
10497
|
-
|
|
10498
|
-
|
|
10499
|
-
|
|
10498
|
+
Zm as isTomoDetectorsHardware,
|
|
10499
|
+
um as isTomoFlatMotionHardware,
|
|
10500
|
+
Vp as isTomoHoloHardware,
|
|
10500
10501
|
Og as isTomoReferencePositionHardware,
|
|
10501
|
-
|
|
10502
|
-
|
|
10503
|
-
|
|
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
|
-
|
|
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
|
-
|
|
10516
|
+
bs as useLimaHardware,
|
|
10516
10517
|
oe as useMotorHardware,
|
|
10517
10518
|
ze as useMotorStates,
|
|
10518
10519
|
yg as useOperator,
|