@synnaxlabs/pluto 0.13.0 → 0.14.0
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/Center-8mBjm1cO.js +126 -0
- package/dist/{Center-gEKkAkdh.js.map → Center-8mBjm1cO.js.map} +1 -1
- package/dist/Center-ER_owvfX.cjs +2 -0
- package/dist/{Center-ZAcURh-3.cjs.map → Center-ER_owvfX.cjs.map} +1 -1
- package/dist/Header-9CR1VnwV.js +34 -0
- package/dist/{Header-7x6367IV.js.map → Header-9CR1VnwV.js.map} +1 -1
- package/dist/Header-PpcdP7hn.cjs +2 -0
- package/dist/{Header-5YX6FUn6.cjs.map → Header-PpcdP7hn.cjs.map} +1 -1
- package/dist/Item--h4UWJZo.js +80 -0
- package/dist/{Item-owLU4Xop.js.map → Item--h4UWJZo.js.map} +1 -1
- package/dist/Item-EBiM5yGJ.cjs +2 -0
- package/dist/{Item-HWzX7RK2.cjs.map → Item-EBiM5yGJ.cjs.map} +1 -1
- package/dist/Item-_og4CdwZ.cjs +2 -0
- package/dist/{Item-rkSKzZoh.cjs.map → Item-_og4CdwZ.cjs.map} +1 -1
- package/dist/Item-kbCoFEj2.js +137 -0
- package/dist/{Item-EDdYN2NK.js.map → Item-kbCoFEj2.js.map} +1 -1
- package/dist/Keyboard-IWRXgioJ.js +14 -0
- package/dist/{Keyboard-mE03PKwA.js.map → Keyboard-IWRXgioJ.js.map} +1 -1
- package/dist/Keyboard-bXNOi0bP.cjs +2 -0
- package/dist/{Keyboard-w372197S.cjs.map → Keyboard-bXNOi0bP.cjs.map} +1 -1
- package/dist/Link-16dbGK7G.cjs +2 -0
- package/dist/{Link-xlTZan29.cjs.map → Link-16dbGK7G.cjs.map} +1 -1
- package/dist/Link-fRQvqiYx.js +11 -0
- package/dist/{Link-laNlv47N.js.map → Link-fRQvqiYx.js.map} +1 -1
- package/dist/SelectLevel-DrdlLBOs.cjs +2 -0
- package/dist/{SelectLevel-bGb0dRXh.cjs.map → SelectLevel-DrdlLBOs.cjs.map} +1 -1
- package/dist/SelectLevel-Uod3Ez6y.js +121 -0
- package/dist/{SelectLevel-cewIWtOv.js.map → SelectLevel-Uod3Ez6y.js.map} +1 -1
- package/dist/Selector-8rTHUToj.cjs +2 -0
- package/dist/{Selector-hQLSIYum.cjs.map → Selector-8rTHUToj.cjs.map} +1 -1
- package/dist/Selector-R4SumEUV.js +233 -0
- package/dist/{Selector-R3lL41_i.js.map → Selector-R4SumEUV.js.map} +1 -1
- package/dist/Swatch--Prmb5q_.cjs +2 -0
- package/dist/Swatch--Prmb5q_.cjs.map +1 -0
- package/dist/Swatch-IH4OmVdd.js +82 -0
- package/dist/Swatch-IH4OmVdd.js.map +1 -0
- package/dist/TimeRangeChip-jI9Nn9z8.js +7384 -0
- package/dist/TimeRangeChip-jI9Nn9z8.js.map +1 -0
- package/dist/TimeRangeChip-jQH9NacG.cjs +50 -0
- package/dist/TimeRangeChip-jQH9NacG.cjs.map +1 -0
- package/dist/Toggle-HVxv8bv2.js +10648 -0
- package/dist/Toggle-HVxv8bv2.js.map +1 -0
- package/dist/Toggle-QnKinMl4.cjs +73 -0
- package/dist/Toggle-QnKinMl4.cjs.map +1 -0
- package/dist/Video-iiPAk_ej.cjs +2 -0
- package/dist/{Video-a7BUKvzF.cjs.map → Video-iiPAk_ej.cjs.map} +1 -1
- package/dist/Video-vyIORMaH.js +11 -0
- package/dist/{Video-Vpwp5ao1.js.map → Video-vyIORMaH.js.map} +1 -1
- package/dist/aether.cjs +1 -89
- package/dist/aether.cjs.map +1 -1
- package/dist/aether.js +76 -80
- package/dist/aether.js.map +1 -1
- package/dist/align.cjs +1 -9
- package/dist/align.cjs.map +1 -1
- package/dist/align.js +5 -5
- package/dist/button.cjs +1 -14
- package/dist/button.cjs.map +1 -1
- package/dist/button.js +9 -8
- package/dist/button.js.map +1 -1
- package/dist/color-9QRifwqk.js +9 -0
- package/dist/color-9QRifwqk.js.map +1 -0
- package/dist/color-gJTR__ef.cjs +2 -0
- package/dist/color-gJTR__ef.cjs.map +1 -0
- package/dist/color.cjs +2 -0
- package/dist/color.cjs.map +1 -0
- package/dist/color.js +16 -0
- package/dist/color.js.map +1 -0
- package/dist/component-LA8IXGSG.js +17961 -0
- package/dist/component-LA8IXGSG.js.map +1 -0
- package/dist/component-dgLAEMbt.cjs +23 -0
- package/dist/component-dgLAEMbt.cjs.map +1 -0
- package/dist/css-5RvvUhjr.js +6414 -0
- package/dist/{css-NTD4Xm8x.js.map → css-5RvvUhjr.js.map} +1 -1
- package/dist/css-s9KpanYu.cjs +8 -0
- package/dist/{css-V3VUT_Js.cjs.map → css-s9KpanYu.cjs.map} +1 -1
- package/dist/css.cjs +2 -0
- package/dist/css.cjs.map +1 -0
- package/dist/css.js +10 -0
- package/dist/css.js.map +1 -0
- package/dist/dimensions--C45ahLe.js +20 -0
- package/dist/{dimensions-guJ5PHmb.js.map → dimensions--C45ahLe.js.map} +1 -1
- package/dist/dimensions-HfZjDJQz.cjs +2 -0
- package/dist/{dimensions-Sej0Zly9.cjs.map → dimensions-HfZjDJQz.cjs.map} +1 -1
- package/dist/dropdown.cjs +1 -12
- package/dist/dropdown.cjs.map +1 -1
- package/dist/dropdown.js +7 -6
- package/dist/dropdown.js.map +1 -1
- package/dist/external--jsfNkbo.cjs +2 -0
- package/dist/external--jsfNkbo.cjs.map +1 -0
- package/dist/external-1DGLK9F2.js +17 -0
- package/dist/external-1DGLK9F2.js.map +1 -0
- package/dist/external-4h9H4Y_N.js +21 -0
- package/dist/external-4h9H4Y_N.js.map +1 -0
- package/dist/external-4uqucf0m.js +67 -0
- package/dist/{external-QuVTCnGl.js.map → external-4uqucf0m.js.map} +1 -1
- package/dist/external-A_eQgT5T.cjs +2 -0
- package/dist/external-A_eQgT5T.cjs.map +1 -0
- package/dist/external-FCO_hdNr.js +24 -0
- package/dist/external-FCO_hdNr.js.map +1 -0
- package/dist/external-HZ6f2KvU.cjs +2 -0
- package/dist/external-HZ6f2KvU.cjs.map +1 -0
- package/dist/external-LPdjowBG.cjs +2 -0
- package/dist/external-LPdjowBG.cjs.map +1 -0
- package/dist/external-O1b3FJKI.cjs +2 -0
- package/dist/external-O1b3FJKI.cjs.map +1 -0
- package/dist/external-RGdrJX7y.cjs +2 -0
- package/dist/{external-9Ncn2J9B.cjs.map → external-RGdrJX7y.cjs.map} +1 -1
- package/dist/external-WiHGqQPA.js +30 -0
- package/dist/external-WiHGqQPA.js.map +1 -0
- package/dist/external-eWu6hCLU.cjs +2 -0
- package/dist/external-eWu6hCLU.cjs.map +1 -0
- package/dist/external-kvAz85mu.js +18 -0
- package/dist/external-kvAz85mu.js.map +1 -0
- package/dist/external-mpVdVPF1.js +88 -0
- package/dist/external-mpVdVPF1.js.map +1 -0
- package/dist/external-nTDD8IMd.cjs +2 -0
- package/dist/external-nTDD8IMd.cjs.map +1 -0
- package/dist/external-phknItOL.js +15 -0
- package/dist/external-phknItOL.js.map +1 -0
- package/dist/external-rGcWjp84.cjs +2 -0
- package/dist/{external-zBiIxeDG.cjs.map → external-rGcWjp84.cjs.map} +1 -1
- package/dist/external-r_2-tYfC.js +88 -0
- package/dist/{external-up1sE3F6.js.map → external-r_2-tYfC.js.map} +1 -1
- package/dist/external-sHbzLUrP.js +17 -0
- package/dist/external-sHbzLUrP.js.map +1 -0
- package/dist/external-tZiYBM94.cjs +2 -0
- package/dist/external-tZiYBM94.cjs.map +1 -0
- package/dist/external-tnCo64yx.cjs +2 -0
- package/dist/external-tnCo64yx.cjs.map +1 -0
- package/dist/external-uR-7_68y.js +16 -0
- package/dist/external-uR-7_68y.js.map +1 -0
- package/dist/external-uSIsCKNG.js +15 -0
- package/dist/external-uSIsCKNG.js.map +1 -0
- package/dist/external-z6BLlxur.cjs +2 -0
- package/dist/external-z6BLlxur.cjs.map +1 -0
- package/dist/font-HpLrwPSD.js +16 -0
- package/dist/{font-t7KoGNFX.js.map → font-HpLrwPSD.js.map} +1 -1
- package/dist/font-yosRgv9n.cjs +2 -0
- package/dist/{font-wlgaMRYN.cjs.map → font-yosRgv9n.cjs.map} +1 -1
- package/dist/fontString-_dtZSiPk.cjs +2 -0
- package/dist/{fontString-i24UxKCQ.cjs.map → fontString-_dtZSiPk.cjs.map} +1 -1
- package/dist/fontString-lodjYTYz.js +12 -0
- package/dist/{fontString-RKvYIr5H.js.map → fontString-lodjYTYz.js.map} +1 -1
- package/dist/header.cjs +1 -14
- package/dist/header.cjs.map +1 -1
- package/dist/header.js +9 -8
- package/dist/header.js.map +1 -1
- package/dist/index.cjs +1 -1174
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +737 -930
- package/dist/index.js.map +1 -1
- package/dist/input/Input.stories.d.ts +1 -0
- package/dist/input/TextArea.d.ts +20 -0
- package/dist/input/external.d.ts +1 -0
- package/dist/input/types.d.ts +4 -2
- package/dist/input.cjs +1 -14
- package/dist/input.cjs.map +1 -1
- package/dist/input.js +9 -8
- package/dist/input.js.map +1 -1
- package/dist/jsx-runtime-NmMXPjeo.js +632 -0
- package/dist/{jsx-runtime-rX5tAIG2.js.map → jsx-runtime-NmMXPjeo.js.map} +1 -1
- package/dist/jsx-runtime-evvPGacs.cjs +28 -0
- package/dist/{jsx-runtime-N1ikfypN.cjs.map → jsx-runtime-evvPGacs.cjs.map} +1 -1
- package/dist/list.cjs +1 -26
- package/dist/list.cjs.map +1 -1
- package/dist/list.js +21 -19
- package/dist/list.js.map +1 -1
- package/dist/menu.cjs +1 -15
- package/dist/menu.cjs.map +1 -1
- package/dist/menu.js +10 -9
- package/dist/menu.js.map +1 -1
- package/dist/style.css +1 -3119
- package/dist/table-MJysJcCC.js +10312 -0
- package/dist/table-MJysJcCC.js.map +1 -0
- package/dist/table-NIrLpFOm.cjs +69 -0
- package/dist/table-NIrLpFOm.cjs.map +1 -0
- package/dist/tabs.cjs +1 -14
- package/dist/tabs.cjs.map +1 -1
- package/dist/tabs.js +9 -8
- package/dist/tabs.js.map +1 -1
- package/dist/text.cjs +1 -16
- package/dist/text.cjs.map +1 -1
- package/dist/text.js +11 -10
- package/dist/text.js.map +1 -1
- package/dist/theming.cjs +1 -15
- package/dist/theming.cjs.map +1 -1
- package/dist/theming.js +10 -9
- package/dist/theming.js.map +1 -1
- package/dist/tree.cjs +1 -25
- package/dist/tree.cjs.map +1 -1
- package/dist/tree.js +20 -18
- package/dist/tree.js.map +1 -1
- package/dist/triggers.cjs +1 -15
- package/dist/triggers.cjs.map +1 -1
- package/dist/triggers.js +10 -9
- package/dist/triggers.js.map +1 -1
- package/dist/useDrag-4o21IpGy.js +36 -0
- package/dist/{useDrag-rQt5hv4R.js.map → useDrag-4o21IpGy.js.map} +1 -1
- package/dist/useDrag-l_moa7e3.cjs +2 -0
- package/dist/{useDrag-KRQ7DTg1.cjs.map → useDrag-l_moa7e3.cjs.map} +1 -1
- package/dist/video.cjs +1 -9
- package/dist/video.cjs.map +1 -1
- package/dist/video.js +3 -3
- package/package.json +15 -5
- package/dist/Center-ZAcURh-3.cjs +0 -148
- package/dist/Center-gEKkAkdh.js +0 -149
- package/dist/Header-5YX6FUn6.cjs +0 -35
- package/dist/Header-7x6367IV.js +0 -36
- package/dist/Item-EDdYN2NK.js +0 -171
- package/dist/Item-HWzX7RK2.cjs +0 -170
- package/dist/Item-owLU4Xop.js +0 -97
- package/dist/Item-rkSKzZoh.cjs +0 -96
- package/dist/Keyboard-mE03PKwA.js +0 -14
- package/dist/Keyboard-w372197S.cjs +0 -13
- package/dist/Link-laNlv47N.js +0 -13
- package/dist/Link-xlTZan29.cjs +0 -12
- package/dist/SelectLevel-bGb0dRXh.cjs +0 -152
- package/dist/SelectLevel-cewIWtOv.js +0 -153
- package/dist/Selector-R3lL41_i.js +0 -267
- package/dist/Selector-hQLSIYum.cjs +0 -266
- package/dist/TimeRangeChip-XXXLMCrf.cjs +0 -9316
- package/dist/TimeRangeChip-XXXLMCrf.cjs.map +0 -1
- package/dist/TimeRangeChip-eDCX5pUC.js +0 -9301
- package/dist/TimeRangeChip-eDCX5pUC.js.map +0 -1
- package/dist/Toggle-eOKYw1OT.cjs +0 -13664
- package/dist/Toggle-eOKYw1OT.cjs.map +0 -1
- package/dist/Toggle-kLunfJtR.js +0 -13665
- package/dist/Toggle-kLunfJtR.js.map +0 -1
- package/dist/Video-Vpwp5ao1.js +0 -12
- package/dist/Video-a7BUKvzF.cjs +0 -11
- package/dist/component-joFaJiQW.cjs +0 -24719
- package/dist/component-joFaJiQW.cjs.map +0 -1
- package/dist/component-k78Jq9I7.js +0 -24720
- package/dist/component-k78Jq9I7.js.map +0 -1
- package/dist/css-NTD4Xm8x.js +0 -9206
- package/dist/css-V3VUT_Js.cjs +0 -9204
- package/dist/dimensions-Sej0Zly9.cjs +0 -26
- package/dist/dimensions-guJ5PHmb.js +0 -27
- package/dist/external-2Aicsb3l.js +0 -88
- package/dist/external-2Aicsb3l.js.map +0 -1
- package/dist/external-9Ncn2J9B.cjs +0 -93
- package/dist/external-9RCzxzgZ.js +0 -30
- package/dist/external-9RCzxzgZ.js.map +0 -1
- package/dist/external-9pS8-DvV.js +0 -15
- package/dist/external-9pS8-DvV.js.map +0 -1
- package/dist/external-KxlyA74C.js +0 -20
- package/dist/external-KxlyA74C.js.map +0 -1
- package/dist/external-OSLzuRs1.cjs +0 -14
- package/dist/external-OSLzuRs1.cjs.map +0 -1
- package/dist/external-PS3nzqUn.cjs +0 -23
- package/dist/external-PS3nzqUn.cjs.map +0 -1
- package/dist/external-QRmqSjV0.js +0 -18
- package/dist/external-QRmqSjV0.js.map +0 -1
- package/dist/external-QuVTCnGl.js +0 -71
- package/dist/external-U5HRPaDI.cjs +0 -17
- package/dist/external-U5HRPaDI.cjs.map +0 -1
- package/dist/external-_CtRDtih.js +0 -17
- package/dist/external-_CtRDtih.js.map +0 -1
- package/dist/external-eQU48hM4.cjs +0 -87
- package/dist/external-eQU48hM4.cjs.map +0 -1
- package/dist/external-kbDFnfuk.js +0 -24
- package/dist/external-kbDFnfuk.js.map +0 -1
- package/dist/external-oX1JmOFf.js +0 -17
- package/dist/external-oX1JmOFf.js.map +0 -1
- package/dist/external-oZe6tF4A.cjs +0 -14
- package/dist/external-oZe6tF4A.cjs.map +0 -1
- package/dist/external-tVcmKSsT.cjs +0 -19
- package/dist/external-tVcmKSsT.cjs.map +0 -1
- package/dist/external-up1sE3F6.js +0 -94
- package/dist/external-uvx0b-Jw.cjs +0 -16
- package/dist/external-uvx0b-Jw.cjs.map +0 -1
- package/dist/external-vXBQOmKv.js +0 -15
- package/dist/external-vXBQOmKv.js.map +0 -1
- package/dist/external-yiqRIIvW.cjs +0 -16
- package/dist/external-yiqRIIvW.cjs.map +0 -1
- package/dist/external-zBiIxeDG.cjs +0 -70
- package/dist/external-zw9fckWT.cjs +0 -29
- package/dist/external-zw9fckWT.cjs.map +0 -1
- package/dist/font-t7KoGNFX.js +0 -17
- package/dist/font-wlgaMRYN.cjs +0 -16
- package/dist/fontString-RKvYIr5H.js +0 -13
- package/dist/fontString-i24UxKCQ.cjs +0 -12
- package/dist/jsx-runtime-N1ikfypN.cjs +0 -931
- package/dist/jsx-runtime-rX5tAIG2.js +0 -932
- package/dist/table-8MFXzE4C.js +0 -13664
- package/dist/table-8MFXzE4C.js.map +0 -1
- package/dist/table-VNkSG_Cj.cjs +0 -13661
- package/dist/table-VNkSG_Cj.cjs.map +0 -1
- package/dist/useDrag-KRQ7DTg1.cjs +0 -48
- package/dist/useDrag-rQt5hv4R.js +0 -49
package/dist/index.cjs
CHANGED
|
@@ -1,1175 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const jsxRuntime = require("./jsx-runtime-N1ikfypN.cjs");
|
|
4
|
-
const React = require("react");
|
|
5
|
-
const Toggle = require("./Toggle-eOKYw1OT.cjs");
|
|
6
|
-
const css = require("./css-V3VUT_Js.cjs");
|
|
7
|
-
const external$j = require("./external-9Ncn2J9B.cjs");
|
|
8
|
-
const Header = require("./Header-5YX6FUn6.cjs");
|
|
9
|
-
const component = require("./component-joFaJiQW.cjs");
|
|
10
|
-
const Center = require("./Center-ZAcURh-3.cjs");
|
|
11
|
-
const TimeRangeChip$1 = require("./TimeRangeChip-XXXLMCrf.cjs");
|
|
12
|
-
const table = require("./table-VNkSG_Cj.cjs");
|
|
13
|
-
const font = require("./font-wlgaMRYN.cjs");
|
|
14
|
-
const external$h = require("./external-OSLzuRs1.cjs");
|
|
15
|
-
const external$i = require("./external-oZe6tF4A.cjs");
|
|
16
|
-
const external$k = require("./external-tVcmKSsT.cjs");
|
|
17
|
-
const external$l = require("./external-U5HRPaDI.cjs");
|
|
18
|
-
const external$m = require("./external-uvx0b-Jw.cjs");
|
|
19
|
-
const Selector = require("./Selector-hQLSIYum.cjs");
|
|
20
|
-
const SelectLevel = require("./SelectLevel-bGb0dRXh.cjs");
|
|
21
|
-
const external$n = require("./external-yiqRIIvW.cjs");
|
|
22
|
-
const external$o = require("./external-zw9fckWT.cjs");
|
|
23
|
-
const external$p = require("./external-PS3nzqUn.cjs");
|
|
24
|
-
const external$q = require("./external-zBiIxeDG.cjs");
|
|
25
|
-
const Video = require("./Video-a7BUKvzF.cjs");
|
|
26
|
-
require("react-hook-form");
|
|
27
|
-
require("./Item-HWzX7RK2.cjs");
|
|
28
|
-
const external$r = require("./external-eQU48hM4.cjs");
|
|
29
|
-
require("react-dom");
|
|
30
|
-
require("zod");
|
|
31
|
-
require("./useDrag-KRQ7DTg1.cjs");
|
|
32
|
-
require("./Item-rkSKzZoh.cjs");
|
|
33
|
-
require("./dimensions-Sej0Zly9.cjs");
|
|
34
|
-
require("./Link-xlTZan29.cjs");
|
|
35
|
-
require("./Video-k52RqIHf.cjs");
|
|
36
|
-
require("./fontString-i24UxKCQ.cjs");
|
|
37
|
-
require("./Keyboard-w372197S.cjs");
|
|
38
|
-
const Circle = ({ variant }) => {
|
|
39
|
-
return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Toggle.Icon$1.Circle, { color: Toggle.variantColors[variant] });
|
|
40
|
-
};
|
|
41
|
-
const external$g = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
42
|
-
__proto__: null,
|
|
43
|
-
Aggregator: Toggle.Aggregator,
|
|
44
|
-
Circle,
|
|
45
|
-
Text: Toggle.Text$2,
|
|
46
|
-
VARIANTS: component.VARIANTS,
|
|
47
|
-
specZ: component.specZ$1,
|
|
48
|
-
useAggregator: Toggle.useAggregator,
|
|
49
|
-
useContext: Toggle.useContext$2,
|
|
50
|
-
useNotifications: Toggle.useNotifications,
|
|
51
|
-
variantZ: component.variantZ
|
|
52
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
53
|
-
const external$f = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
54
|
-
__proto__: null,
|
|
55
|
-
Color: css.Color,
|
|
56
|
-
Picker: TimeRangeChip$1.Picker,
|
|
57
|
-
Swatch: TimeRangeChip$1.Swatch,
|
|
58
|
-
ZERO: css.ZERO,
|
|
59
|
-
cssString: css.cssString,
|
|
60
|
-
fromHSLA: css.fromHSLA,
|
|
61
|
-
toHex: css.toHex
|
|
62
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
63
|
-
const external$e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
64
|
-
__proto__: null,
|
|
65
|
-
Config: Toggle.Config,
|
|
66
|
-
Context: Toggle.Context,
|
|
67
|
-
Dialog: Toggle.Dialog,
|
|
68
|
-
formatTip: Toggle.formatTip,
|
|
69
|
-
useConfig: Toggle.useConfig,
|
|
70
|
-
wrap: Toggle.wrap
|
|
71
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
72
|
-
const external$d = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
73
|
-
__proto__: null,
|
|
74
|
-
Core: TimeRangeChip$1.Core$1,
|
|
75
|
-
Multiple: TimeRangeChip$1.Multiple,
|
|
76
|
-
Single: TimeRangeChip$1.Single,
|
|
77
|
-
calculateDiffPercentage: TimeRangeChip$1.calculateDiffPercentage,
|
|
78
|
-
useMultiple: TimeRangeChip$1.useMultiple
|
|
79
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
80
|
-
const DIRECTION = "y";
|
|
81
|
-
const MIN_SIZE = 28;
|
|
82
|
-
const COLLAPSED_THRESHOLD = 32;
|
|
83
|
-
const EXPAND_THRESHOLD = 40;
|
|
84
|
-
const DEFAULT_EXPAND_SIZE = 0.5;
|
|
85
|
-
const Accordion = ({ data, ...props }) => {
|
|
86
|
-
const {
|
|
87
|
-
setSize,
|
|
88
|
-
props: { sizeDistribution: sizes, ref, ...resizeProps }
|
|
89
|
-
} = TimeRangeChip$1.useMultiple({
|
|
90
|
-
direction: DIRECTION,
|
|
91
|
-
count: data.length,
|
|
92
|
-
minSize: MIN_SIZE
|
|
93
|
-
});
|
|
94
|
-
const onExpand = (index) => {
|
|
95
|
-
if (ref.current == null)
|
|
96
|
-
return;
|
|
97
|
-
const parentSize = css.box$1.dim(css.box$1.construct(ref.current), DIRECTION);
|
|
98
|
-
if (sizes[index] < EXPAND_THRESHOLD / parentSize)
|
|
99
|
-
setSize(index, data[index].initialSize ?? DEFAULT_EXPAND_SIZE);
|
|
100
|
-
else
|
|
101
|
-
setSize(index, MIN_SIZE + 1);
|
|
102
|
-
};
|
|
103
|
-
return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
|
|
104
|
-
TimeRangeChip$1.Multiple,
|
|
105
|
-
{
|
|
106
|
-
empty: true,
|
|
107
|
-
className: css.CSS.B("accordion"),
|
|
108
|
-
sizeDistribution: sizes,
|
|
109
|
-
ref,
|
|
110
|
-
...props,
|
|
111
|
-
...resizeProps,
|
|
112
|
-
children: data.map((entry, i) => /* @__PURE__ */ React.createElement(
|
|
113
|
-
EntryC,
|
|
114
|
-
{
|
|
115
|
-
...entry,
|
|
116
|
-
key: entry.key,
|
|
117
|
-
index: i,
|
|
118
|
-
direction: DIRECTION,
|
|
119
|
-
onExpand,
|
|
120
|
-
parent: ref,
|
|
121
|
-
size: sizes[i]
|
|
122
|
-
}
|
|
123
|
-
))
|
|
124
|
-
}
|
|
125
|
-
);
|
|
126
|
-
};
|
|
127
|
-
const expandedIcon = /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Toggle.Icon$1.Caret.Down, { "aria-label": "contract" });
|
|
128
|
-
const collapsedIcon = /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Toggle.Icon$1.Caret.Right, { "aria-label": "expand" });
|
|
129
|
-
const EntryC = ({
|
|
130
|
-
index,
|
|
131
|
-
name,
|
|
132
|
-
content,
|
|
133
|
-
actions,
|
|
134
|
-
size,
|
|
135
|
-
parent,
|
|
136
|
-
onExpand
|
|
137
|
-
}) => {
|
|
138
|
-
let expanded = true;
|
|
139
|
-
if (parent.current != null) {
|
|
140
|
-
const parentSize = css.box$1.dim(css.box$1.construct(parent.current), DIRECTION);
|
|
141
|
-
expanded = size * parentSize > COLLAPSED_THRESHOLD;
|
|
142
|
-
}
|
|
143
|
-
const icon = expanded ? expandedIcon : collapsedIcon;
|
|
144
|
-
return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(jsxRuntime.jsxRuntimeExports.Fragment, { children: [
|
|
145
|
-
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(Header.Header, { level: "p", className: css.CSS.expanded(expanded), empty: true, children: [
|
|
146
|
-
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(external$j.ButtonTitle, { startIcon: icon, onClick: () => onExpand(index), children: name }),
|
|
147
|
-
actions != null && /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(external$j.Actions, { children: actions })
|
|
148
|
-
] }),
|
|
149
|
-
content
|
|
150
|
-
] });
|
|
151
|
-
};
|
|
152
|
-
const Accordion$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
153
|
-
__proto__: null,
|
|
154
|
-
Accordion
|
|
155
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
156
|
-
const Legend = ({
|
|
157
|
-
className,
|
|
158
|
-
style,
|
|
159
|
-
onLineChange,
|
|
160
|
-
...props
|
|
161
|
-
}) => {
|
|
162
|
-
const { lines } = TimeRangeChip$1.useContext$1("Legend");
|
|
163
|
-
TimeRangeChip$1.useContext$1("Legend");
|
|
164
|
-
return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(TimeRangeChip$1.Simple, { data: lines, onEntryChange: onLineChange, ...props });
|
|
165
|
-
};
|
|
166
|
-
const Title = ({
|
|
167
|
-
level = "h2",
|
|
168
|
-
...props
|
|
169
|
-
}) => {
|
|
170
|
-
const key = Toggle.useUniqueKey();
|
|
171
|
-
const font$1 = font.useTypography(level);
|
|
172
|
-
const gridStyle = TimeRangeChip$1.useGridPosition(
|
|
173
|
-
{
|
|
174
|
-
key,
|
|
175
|
-
size: (font$1.lineHeight + 2) * font$1.baseSize,
|
|
176
|
-
loc: "top",
|
|
177
|
-
order: "first"
|
|
178
|
-
},
|
|
179
|
-
"Title"
|
|
180
|
-
);
|
|
181
|
-
return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Center.Space, { justify: "center", align: "center", style: gridStyle, children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Toggle.MaybeEditable, { ...props, level }) });
|
|
182
|
-
};
|
|
183
|
-
const DATA = [
|
|
184
|
-
{
|
|
185
|
-
key: "x",
|
|
186
|
-
icon: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Toggle.Icon$1.Arrow.Right, {})
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
key: "y",
|
|
190
|
-
icon: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Toggle.Icon$1.Arrow.Down, {})
|
|
191
|
-
}
|
|
192
|
-
];
|
|
193
|
-
const defaultSelectDirectionButton = ({
|
|
194
|
-
key,
|
|
195
|
-
entry,
|
|
196
|
-
onClick,
|
|
197
|
-
selected
|
|
198
|
-
}) => {
|
|
199
|
-
return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
|
|
200
|
-
Toggle.Icon,
|
|
201
|
-
{
|
|
202
|
-
variant: selected ? "filled" : "outlined",
|
|
203
|
-
onClick,
|
|
204
|
-
children: entry.icon
|
|
205
|
-
},
|
|
206
|
-
key
|
|
207
|
-
);
|
|
208
|
-
};
|
|
209
|
-
const Direction = ({
|
|
210
|
-
children = defaultSelectDirectionButton,
|
|
211
|
-
...props
|
|
212
|
-
}) => {
|
|
213
|
-
return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(SelectLevel.Button, { ...props, data: DATA, children });
|
|
214
|
-
};
|
|
215
|
-
const external$c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
216
|
-
__proto__: null,
|
|
217
|
-
Button: SelectLevel.Button,
|
|
218
|
-
Direction,
|
|
219
|
-
Multiple: TimeRangeChip$1.Multiple$1,
|
|
220
|
-
Single: TimeRangeChip$1.Single$1
|
|
221
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
222
|
-
const Tooltip = ({ mode, triggers }) => /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(Center.Space, { direction: "x", align: "center", children: [
|
|
223
|
-
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Toggle.Text, { level: "small", children: css.Case.capitalize(mode) }),
|
|
224
|
-
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(external$q.Text, { trigger: triggers[0], level: "small" })
|
|
225
|
-
] });
|
|
226
|
-
const MODE_ICONS = {
|
|
227
|
-
zoom: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Toggle.Icon$1.Zoom, {}),
|
|
228
|
-
pan: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Toggle.Icon$1.Pan, {}),
|
|
229
|
-
select: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Toggle.Icon$1.Selection, {}),
|
|
230
|
-
zoomReset: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Toggle.Icon$1.Expand, {}),
|
|
231
|
-
click: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Toggle.Icon$1.Bolt, {})
|
|
232
|
-
};
|
|
233
|
-
const SelectMode = ({
|
|
234
|
-
triggers,
|
|
235
|
-
disable = ["zoomReset", "click"],
|
|
236
|
-
...props
|
|
237
|
-
}) => {
|
|
238
|
-
const data = Object.entries(triggers).filter(([key]) => !disable.includes(key) && TimeRangeChip$1.MODES.includes(key)).map(([key, value]) => ({
|
|
239
|
-
key,
|
|
240
|
-
icon: MODE_ICONS[key],
|
|
241
|
-
tooltip: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Tooltip, { mode: key, triggers: value })
|
|
242
|
-
})).sort((a, b) => TimeRangeChip$1.MODES.indexOf(a.key) - TimeRangeChip$1.MODES.indexOf(b.key));
|
|
243
|
-
return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(SelectLevel.Button, { ...props, data, entryRenderKey: "icon", children: ({ title: _, entry, ...props2 }) => /* @__PURE__ */ React.createElement(
|
|
244
|
-
Toggle.Icon,
|
|
245
|
-
{
|
|
246
|
-
...props2,
|
|
247
|
-
key: entry.key,
|
|
248
|
-
variant: props2.selected ? "filled" : "text",
|
|
249
|
-
size: "medium",
|
|
250
|
-
tooltip: entry.tooltip,
|
|
251
|
-
tooltipLocation: { x: "right", y: "top" }
|
|
252
|
-
},
|
|
253
|
-
entry.icon
|
|
254
|
-
) });
|
|
255
|
-
};
|
|
256
|
-
const external$b = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
257
|
-
__proto__: null,
|
|
258
|
-
DEFAULT_TRIGGERS: TimeRangeChip$1.DEFAULT_TRIGGERS,
|
|
259
|
-
MASK_MODES: TimeRangeChip$1.MASK_MODES,
|
|
260
|
-
MODES: TimeRangeChip$1.MODES,
|
|
261
|
-
Mask: TimeRangeChip$1.Mask,
|
|
262
|
-
PAN_DEFAULT_TRIGGERS: TimeRangeChip$1.PAN_DEFAULT_TRIGGERS,
|
|
263
|
-
SELECT_DEFAULT_TRIGGERS: TimeRangeChip$1.SELECT_DEFAULT_TRIGGERS,
|
|
264
|
-
SelectMode,
|
|
265
|
-
ZOOM_DEFAULT_TRIGGERS: TimeRangeChip$1.ZOOM_DEFAULT_TRIGGERS,
|
|
266
|
-
use: TimeRangeChip$1.use
|
|
267
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
268
|
-
const external$a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
269
|
-
__proto__: null,
|
|
270
|
-
Legend,
|
|
271
|
-
Line: TimeRangeChip$1.Line,
|
|
272
|
-
LinePlot: TimeRangeChip$1.LinePlot,
|
|
273
|
-
Title,
|
|
274
|
-
Viewport: TimeRangeChip$1.Viewport,
|
|
275
|
-
XAxis: TimeRangeChip$1.XAxis,
|
|
276
|
-
YAxis: TimeRangeChip$1.YAxis,
|
|
277
|
-
axisFactory: TimeRangeChip$1.axisFactory,
|
|
278
|
-
selectViewportEl: TimeRangeChip$1.selectViewportEl,
|
|
279
|
-
useContext: TimeRangeChip$1.useContext$1,
|
|
280
|
-
useGridPosition: TimeRangeChip$1.useGridPosition,
|
|
281
|
-
useViewport: TimeRangeChip$1.useViewport
|
|
282
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
283
|
-
const canDrop = Toggle.canDropOfType(TimeRangeChip$1.HAUL_TYPE);
|
|
284
|
-
const LinePlot = ({
|
|
285
|
-
lines,
|
|
286
|
-
axes,
|
|
287
|
-
showTitle = true,
|
|
288
|
-
title = "",
|
|
289
|
-
onTitleChange,
|
|
290
|
-
showLegend = true,
|
|
291
|
-
titleLevel = "h4",
|
|
292
|
-
onLineChange,
|
|
293
|
-
onRuleChange,
|
|
294
|
-
onAxisChannelDrop,
|
|
295
|
-
onAxisChange,
|
|
296
|
-
rules,
|
|
297
|
-
enableTooltip = true,
|
|
298
|
-
enableMeasure = false,
|
|
299
|
-
initialViewport = css.box$1.DECIMAL,
|
|
300
|
-
onViewportChange,
|
|
301
|
-
viewportTriggers,
|
|
302
|
-
...restProps
|
|
303
|
-
}) => {
|
|
304
|
-
const xAxes = axes.filter(({ location: l }) => css.location.isY(l));
|
|
305
|
-
return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(TimeRangeChip$1.LinePlot, { ...restProps, children: [
|
|
306
|
-
xAxes.map((a, i) => {
|
|
307
|
-
const axisLines = lines.filter((l) => l.axes.x === a.key);
|
|
308
|
-
const yAxes = axes.filter(({ location: l }) => css.location.isX(l));
|
|
309
|
-
const axisRules = rules == null ? void 0 : rules.filter(
|
|
310
|
-
(r) => [...yAxes.map(({ key: id }) => id), a.key].includes(r.axis)
|
|
311
|
-
);
|
|
312
|
-
return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
|
|
313
|
-
XAxis,
|
|
314
|
-
{
|
|
315
|
-
axis: a,
|
|
316
|
-
index: i,
|
|
317
|
-
lines: axisLines,
|
|
318
|
-
yAxes,
|
|
319
|
-
rules: axisRules,
|
|
320
|
-
onAxisChannelDrop,
|
|
321
|
-
onAxisChange
|
|
322
|
-
},
|
|
323
|
-
a.key
|
|
324
|
-
);
|
|
325
|
-
}),
|
|
326
|
-
showLegend && /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Legend, { onLineChange }),
|
|
327
|
-
showTitle && /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Title, { value: title, onChange: onTitleChange, level: titleLevel }),
|
|
328
|
-
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(
|
|
329
|
-
TimeRangeChip$1.Viewport,
|
|
330
|
-
{
|
|
331
|
-
initial: initialViewport,
|
|
332
|
-
onChange: onViewportChange,
|
|
333
|
-
triggers: viewportTriggers,
|
|
334
|
-
children: [
|
|
335
|
-
enableTooltip && /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(TimeRangeChip$1.Tooltip, {}),
|
|
336
|
-
enableMeasure && /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(TimeRangeChip$1.Measure, {})
|
|
337
|
-
]
|
|
338
|
-
}
|
|
339
|
-
)
|
|
340
|
-
] });
|
|
341
|
-
};
|
|
342
|
-
const XAxis = ({
|
|
343
|
-
yAxes,
|
|
344
|
-
lines,
|
|
345
|
-
index,
|
|
346
|
-
rules,
|
|
347
|
-
onRuleChange,
|
|
348
|
-
onAxisChannelDrop,
|
|
349
|
-
onAxisChange,
|
|
350
|
-
axis: { location, key, showGrid, ...axis }
|
|
351
|
-
}) => {
|
|
352
|
-
const dropProps = Toggle.useDrop({
|
|
353
|
-
type: "Channel.LinePlot.XAxis",
|
|
354
|
-
canDrop,
|
|
355
|
-
onDrop: React.useCallback(
|
|
356
|
-
({ items }) => {
|
|
357
|
-
const dropped = Toggle.filterByType(TimeRangeChip$1.HAUL_TYPE, items);
|
|
358
|
-
onAxisChannelDrop == null ? void 0 : onAxisChannelDrop(
|
|
359
|
-
key,
|
|
360
|
-
dropped.map(({ key: key2 }) => key2)
|
|
361
|
-
);
|
|
362
|
-
return dropped;
|
|
363
|
-
},
|
|
364
|
-
[key, onAxisChannelDrop]
|
|
365
|
-
)
|
|
366
|
-
});
|
|
367
|
-
const xRules = rules == null ? void 0 : rules.filter((r) => r.axis === key);
|
|
368
|
-
return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(
|
|
369
|
-
TimeRangeChip$1.XAxis,
|
|
370
|
-
{
|
|
371
|
-
...axis,
|
|
372
|
-
...dropProps,
|
|
373
|
-
location,
|
|
374
|
-
showGrid: showGrid ?? index === 0,
|
|
375
|
-
className: css.CSS(
|
|
376
|
-
css.CSS.dropRegion(Toggle.canDropOfType(TimeRangeChip$1.HAUL_TYPE)(Toggle.useDraggingState()))
|
|
377
|
-
),
|
|
378
|
-
onAutoBoundsChange: (bounds) => onAxisChange == null ? void 0 : onAxisChange({ key, bounds }),
|
|
379
|
-
children: [
|
|
380
|
-
yAxes.map((a, i) => {
|
|
381
|
-
const yLines = lines.filter((l) => l.axes.y === a.key);
|
|
382
|
-
const yRules = rules == null ? void 0 : rules.filter((r) => r.axis === a.key);
|
|
383
|
-
return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
|
|
384
|
-
YAxis,
|
|
385
|
-
{
|
|
386
|
-
axis: {
|
|
387
|
-
...a,
|
|
388
|
-
showGrid: showGrid ?? (index === 0 && i === 0)
|
|
389
|
-
},
|
|
390
|
-
lines: yLines,
|
|
391
|
-
rules: yRules,
|
|
392
|
-
onRuleChange,
|
|
393
|
-
onAxisChannelDrop,
|
|
394
|
-
onAxisChange
|
|
395
|
-
},
|
|
396
|
-
a.key
|
|
397
|
-
);
|
|
398
|
-
}),
|
|
399
|
-
xRules == null ? void 0 : xRules.map((rule) => /* @__PURE__ */ React.createElement(
|
|
400
|
-
TimeRangeChip$1.Rule,
|
|
401
|
-
{
|
|
402
|
-
aetherKey: rule.key,
|
|
403
|
-
...rule,
|
|
404
|
-
key: rule.key,
|
|
405
|
-
onLabelChange: (value) => onRuleChange == null ? void 0 : onRuleChange({ key: rule.key, label: value }),
|
|
406
|
-
onPositionChange: (value) => onRuleChange == null ? void 0 : onRuleChange({ key: rule.key, position: value })
|
|
407
|
-
}
|
|
408
|
-
))
|
|
409
|
-
]
|
|
410
|
-
}
|
|
411
|
-
);
|
|
412
|
-
};
|
|
413
|
-
const lineKey = ({ channels: { x, y } }) => `${x ?? 0}-${y}`;
|
|
414
|
-
const YAxis = ({
|
|
415
|
-
lines,
|
|
416
|
-
rules,
|
|
417
|
-
onRuleChange,
|
|
418
|
-
onAxisChannelDrop,
|
|
419
|
-
onAxisChange,
|
|
420
|
-
axis: { key, location: loc2, ...props }
|
|
421
|
-
}) => {
|
|
422
|
-
const dropProps = Toggle.useDrop({
|
|
423
|
-
type: "Channel.LinePlot.YAxis",
|
|
424
|
-
canDrop,
|
|
425
|
-
onDrop: React.useCallback(
|
|
426
|
-
({ items }) => {
|
|
427
|
-
const dropped = Toggle.filterByType(TimeRangeChip$1.HAUL_TYPE, items);
|
|
428
|
-
onAxisChannelDrop == null ? void 0 : onAxisChannelDrop(
|
|
429
|
-
key,
|
|
430
|
-
dropped.map(({ key: key2 }) => key2)
|
|
431
|
-
);
|
|
432
|
-
return dropped;
|
|
433
|
-
},
|
|
434
|
-
[key, onAxisChannelDrop]
|
|
435
|
-
)
|
|
436
|
-
});
|
|
437
|
-
const dragging = Toggle.useDraggingState();
|
|
438
|
-
return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(
|
|
439
|
-
TimeRangeChip$1.YAxis,
|
|
440
|
-
{
|
|
441
|
-
...props,
|
|
442
|
-
...dropProps,
|
|
443
|
-
location: loc2,
|
|
444
|
-
className: css.CSS(css.CSS.dropRegion(Toggle.canDropOfType(TimeRangeChip$1.HAUL_TYPE)(dragging))),
|
|
445
|
-
onAutoBoundsChange: (bounds) => onAxisChange == null ? void 0 : onAxisChange({ key, bounds }),
|
|
446
|
-
children: [
|
|
447
|
-
lines.map((l) => /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Line, { line: l }, lineKey(l))),
|
|
448
|
-
rules == null ? void 0 : rules.map((r) => /* @__PURE__ */ React.createElement(
|
|
449
|
-
TimeRangeChip$1.Rule,
|
|
450
|
-
{
|
|
451
|
-
aetherKey: r.key,
|
|
452
|
-
...r,
|
|
453
|
-
key: r.key,
|
|
454
|
-
onLabelChange: (value) => onRuleChange == null ? void 0 : onRuleChange({ key: r.key, label: value }),
|
|
455
|
-
onPositionChange: (value) => onRuleChange == null ? void 0 : onRuleChange({ key: r.key, position: value })
|
|
456
|
-
}
|
|
457
|
-
))
|
|
458
|
-
]
|
|
459
|
-
}
|
|
460
|
-
);
|
|
461
|
-
};
|
|
462
|
-
const Line = ({ line }) => line.variant === "static" ? /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(StaticLine, { line }) : /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(DynamicLine, { line });
|
|
463
|
-
const DynamicLine = ({
|
|
464
|
-
line: {
|
|
465
|
-
key,
|
|
466
|
-
timeSpan,
|
|
467
|
-
channels: { x, y },
|
|
468
|
-
...props
|
|
469
|
-
}
|
|
470
|
-
}) => {
|
|
471
|
-
const yTelem = table.streamChannelData({ timeSpan, channel: y });
|
|
472
|
-
const hasX = x != null && x !== 0;
|
|
473
|
-
const xTelem = table.streamChannelData({
|
|
474
|
-
timeSpan,
|
|
475
|
-
channel: hasX ? x : y,
|
|
476
|
-
index: !hasX
|
|
477
|
-
});
|
|
478
|
-
return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(TimeRangeChip$1.Line, { aetherKey: key, y: yTelem, x: xTelem, ...props });
|
|
479
|
-
};
|
|
480
|
-
const StaticLine = ({
|
|
481
|
-
line: {
|
|
482
|
-
timeRange,
|
|
483
|
-
key,
|
|
484
|
-
channels: { x, y },
|
|
485
|
-
...props
|
|
486
|
-
}
|
|
487
|
-
}) => {
|
|
488
|
-
const yTelem = table.channelData({ timeRange, channel: y });
|
|
489
|
-
const hasX = x != null && x !== 0;
|
|
490
|
-
const xTelem = table.channelData({
|
|
491
|
-
timeRange,
|
|
492
|
-
channel: hasX ? x : y,
|
|
493
|
-
index: !hasX
|
|
494
|
-
});
|
|
495
|
-
return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(TimeRangeChip$1.Line, { aetherKey: key, y: yTelem, x: xTelem, ...props });
|
|
496
|
-
};
|
|
497
|
-
const external$9 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
498
|
-
__proto__: null,
|
|
499
|
-
AliasInput: TimeRangeChip$1.AliasInput,
|
|
500
|
-
AliasProvider: TimeRangeChip$1.AliasProvider,
|
|
501
|
-
LinePlot,
|
|
502
|
-
SelectMultiple: TimeRangeChip$1.SelectMultiple,
|
|
503
|
-
SelectSingle: TimeRangeChip$1.SelectSingle,
|
|
504
|
-
useActiveRange: TimeRangeChip$1.useActiveRange,
|
|
505
|
-
useAlias: TimeRangeChip$1.useAlias,
|
|
506
|
-
useAliases: TimeRangeChip$1.useAliases,
|
|
507
|
-
useContext: TimeRangeChip$1.useContext$2,
|
|
508
|
-
useName: TimeRangeChip$1.useName
|
|
509
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
510
|
-
const TabNotFound = new Error("Tab not found");
|
|
511
|
-
const InvalidMosaic = new Error("Invalid Mosaic");
|
|
512
|
-
const insertTab = (root, tab, loc = "center", key) => {
|
|
513
|
-
var _a;
|
|
514
|
-
root = shallowCopyNode(root);
|
|
515
|
-
if (key === void 0)
|
|
516
|
-
return insertAnywhere(root, tab);
|
|
517
|
-
const node = findNodeOrAncestor(root, key);
|
|
518
|
-
if (loc === "center") {
|
|
519
|
-
(_a = node.tabs) == null ? void 0 : _a.push(tab);
|
|
520
|
-
node.selected = tab.tabKey;
|
|
521
|
-
return root;
|
|
522
|
-
}
|
|
523
|
-
if (node.tabs == null || node.tabs.length === 0)
|
|
524
|
-
return root;
|
|
525
|
-
const [insertOrder, siblingOrder, dir] = splitArrangement(loc);
|
|
526
|
-
node.direction = dir;
|
|
527
|
-
node[insertOrder] = { key: 0, tabs: [tab], selected: tab.tabKey };
|
|
528
|
-
node[siblingOrder] = { key: 0, tabs: node.tabs, selected: node.selected };
|
|
529
|
-
if (node.first == null || node.last == null)
|
|
530
|
-
throw InvalidMosaic;
|
|
531
|
-
node.first.key = node.key * 2;
|
|
532
|
-
node.last.key = node.key * 2 + 1;
|
|
533
|
-
node.tabs = void 0;
|
|
534
|
-
node.size = void 0;
|
|
535
|
-
node.selected = void 0;
|
|
536
|
-
return root;
|
|
537
|
-
};
|
|
538
|
-
const insertAnywhere = (root, tab) => {
|
|
539
|
-
root = shallowCopyNode(root);
|
|
540
|
-
if (root.tabs != null) {
|
|
541
|
-
root.tabs.push(tab);
|
|
542
|
-
root.selected = tab.tabKey;
|
|
543
|
-
return root;
|
|
544
|
-
}
|
|
545
|
-
if (root.first != null)
|
|
546
|
-
root.first = insertAnywhere(root.first, tab);
|
|
547
|
-
else if (root.last != null)
|
|
548
|
-
root.last = insertAnywhere(root.last, tab);
|
|
549
|
-
return root;
|
|
550
|
-
};
|
|
551
|
-
const autoSelectTabs = (root) => {
|
|
552
|
-
root = shallowCopyNode(root);
|
|
553
|
-
const selected = [];
|
|
554
|
-
if (root.tabs != null) {
|
|
555
|
-
root.selected = Selector.resetSelection(root.selected, root.tabs);
|
|
556
|
-
if (root.selected != null)
|
|
557
|
-
selected.push(root.selected);
|
|
558
|
-
}
|
|
559
|
-
if (root.first != null) {
|
|
560
|
-
const [f, s] = autoSelectTabs(root.first);
|
|
561
|
-
root.first = f;
|
|
562
|
-
selected.push(...s);
|
|
563
|
-
}
|
|
564
|
-
if (root.last != null) {
|
|
565
|
-
const [r, l] = autoSelectTabs(root.last);
|
|
566
|
-
root.last = r;
|
|
567
|
-
selected.push(...l);
|
|
568
|
-
}
|
|
569
|
-
return [root, selected];
|
|
570
|
-
};
|
|
571
|
-
const removeTab = (root, tabKey) => {
|
|
572
|
-
var _a;
|
|
573
|
-
root = shallowCopyNode(root);
|
|
574
|
-
const [, node] = findMosaicTab(root, tabKey);
|
|
575
|
-
if (node == null)
|
|
576
|
-
throw TabNotFound;
|
|
577
|
-
node.tabs = (_a = node.tabs) == null ? void 0 : _a.filter((t) => t.tabKey !== tabKey);
|
|
578
|
-
node.selected = Selector.resetSelection(node.selected, node.tabs);
|
|
579
|
-
const gced = gc(root);
|
|
580
|
-
const selected = node.selected ?? findSelected(gced);
|
|
581
|
-
return [gced, selected];
|
|
582
|
-
};
|
|
583
|
-
const findSelected = (root) => {
|
|
584
|
-
if (root.selected != null)
|
|
585
|
-
return root.selected;
|
|
586
|
-
if (root.first != null)
|
|
587
|
-
return findSelected(root.first);
|
|
588
|
-
if (root.last != null)
|
|
589
|
-
return findSelected(root.last);
|
|
590
|
-
return null;
|
|
591
|
-
};
|
|
592
|
-
const selectTab = (root, tabKey) => {
|
|
593
|
-
root = shallowCopyNode(root);
|
|
594
|
-
const [tab, entry] = findMosaicTab(root, tabKey);
|
|
595
|
-
if (tab == null || entry == null)
|
|
596
|
-
throw TabNotFound;
|
|
597
|
-
entry.selected = tabKey;
|
|
598
|
-
return root;
|
|
599
|
-
};
|
|
600
|
-
const moveTab = (root, tabKey, loc, to) => {
|
|
601
|
-
root = shallowCopyNode(root);
|
|
602
|
-
const [tab, entry] = findMosaicTab(root, tabKey);
|
|
603
|
-
if (tab == null || entry == null)
|
|
604
|
-
throw TabNotFound;
|
|
605
|
-
const [r2, selected] = removeTab(root, tabKey);
|
|
606
|
-
const r3 = insertTab(r2, tab, loc, to);
|
|
607
|
-
return [r3, selected];
|
|
608
|
-
};
|
|
609
|
-
const resizeNode = (root, key, size) => {
|
|
610
|
-
const node = findMosaicNode(root, key);
|
|
611
|
-
if (node == null)
|
|
612
|
-
throw new Error("Node not found");
|
|
613
|
-
else
|
|
614
|
-
node.size = size;
|
|
615
|
-
return root;
|
|
616
|
-
};
|
|
617
|
-
const renameTab = (root, tabKey, name) => {
|
|
618
|
-
root = shallowCopyNode(root);
|
|
619
|
-
const [, leaf] = findMosaicTab(root, tabKey);
|
|
620
|
-
if ((leaf == null ? void 0 : leaf.tabs) == null)
|
|
621
|
-
throw TabNotFound;
|
|
622
|
-
leaf.tabs = Selector.rename(tabKey, name, (leaf == null ? void 0 : leaf.tabs) ?? []);
|
|
623
|
-
return root;
|
|
624
|
-
};
|
|
625
|
-
const isEmpty = (root) => {
|
|
626
|
-
if (root.tabs != null)
|
|
627
|
-
return root.tabs.length === 0;
|
|
628
|
-
return root.first == null && root.last == null;
|
|
629
|
-
};
|
|
630
|
-
const findNodeOrAncestor = (root, key) => {
|
|
631
|
-
const node = findMosaicNode(root, key);
|
|
632
|
-
if (node != null)
|
|
633
|
-
return node;
|
|
634
|
-
const next = Math.floor(key / 2);
|
|
635
|
-
return next === 0 ? root : findNodeOrAncestor(root, next);
|
|
636
|
-
};
|
|
637
|
-
const gc = (root) => {
|
|
638
|
-
let gced = true;
|
|
639
|
-
while (gced)
|
|
640
|
-
[root, gced] = _gc(root);
|
|
641
|
-
return root;
|
|
642
|
-
};
|
|
643
|
-
const _gc = (node) => {
|
|
644
|
-
if (node.first == null || node.last == null)
|
|
645
|
-
return [node, false];
|
|
646
|
-
if (shouldGc(node.first))
|
|
647
|
-
return [liftUp(node.last, true), true];
|
|
648
|
-
if (shouldGc(node.last))
|
|
649
|
-
return [liftUp(node.first, false), true];
|
|
650
|
-
let [sGC, eGC] = [false, false];
|
|
651
|
-
[node.first, sGC] = _gc(node.first);
|
|
652
|
-
[node.last, eGC] = _gc(node.last);
|
|
653
|
-
return [node, sGC || eGC];
|
|
654
|
-
};
|
|
655
|
-
const liftUp = (node, isLast) => {
|
|
656
|
-
node.size = void 0;
|
|
657
|
-
node.key = (node.key - Number(isLast)) / 2;
|
|
658
|
-
return node;
|
|
659
|
-
};
|
|
660
|
-
const shouldGc = (node) => node.first == null && node.last == null && (node.tabs == null || node.tabs.length === 0);
|
|
661
|
-
const findMosaicTab = (node, tabKey) => {
|
|
662
|
-
if (node.tabs != null) {
|
|
663
|
-
const tab = node.tabs.find((t) => t.tabKey === tabKey);
|
|
664
|
-
if (tab != null)
|
|
665
|
-
return [tab, node];
|
|
666
|
-
}
|
|
667
|
-
if (node.first == null || node.last == null)
|
|
668
|
-
return [void 0, void 0];
|
|
669
|
-
const [t1Tab, t2Tree] = findMosaicTab(node.first, tabKey);
|
|
670
|
-
if (t1Tab != null && t2Tree != null)
|
|
671
|
-
return [t1Tab, t2Tree];
|
|
672
|
-
const [t2Tab, t2Tree2] = findMosaicTab(node.last, tabKey);
|
|
673
|
-
return [t2Tab, t2Tree2];
|
|
674
|
-
};
|
|
675
|
-
const findMosaicNode = (node, key) => {
|
|
676
|
-
if (node.key === key)
|
|
677
|
-
return node;
|
|
678
|
-
if (node.first == null || node.last == null)
|
|
679
|
-
return void 0;
|
|
680
|
-
const n1 = findMosaicNode(node.first, key);
|
|
681
|
-
if (n1 != null)
|
|
682
|
-
return n1;
|
|
683
|
-
return findMosaicNode(node.last, key);
|
|
684
|
-
};
|
|
685
|
-
const splitArrangement = (insertPosition) => {
|
|
686
|
-
switch (insertPosition) {
|
|
687
|
-
case "top":
|
|
688
|
-
return ["first", "last", "y"];
|
|
689
|
-
case "left":
|
|
690
|
-
return ["first", "last", "x"];
|
|
691
|
-
case "bottom":
|
|
692
|
-
return ["last", "first", "y"];
|
|
693
|
-
case "right":
|
|
694
|
-
return ["last", "first", "x"];
|
|
695
|
-
case "center":
|
|
696
|
-
throw new Error("cannot split a center placed tab");
|
|
697
|
-
}
|
|
698
|
-
};
|
|
699
|
-
const shallowCopyNode = (node) => css.external.copy(node);
|
|
700
|
-
const use$2 = ({ allowRename = false, initialTree }) => {
|
|
701
|
-
const [root, setRoot] = React.useState(initialTree);
|
|
702
|
-
React.useEffect(() => setRoot(autoSelectTabs(initialTree)[0]), [initialTree]);
|
|
703
|
-
const handleDrop = (key, tabKey, loc) => setRoot((r) => moveTab(r, tabKey, loc, key)[0]);
|
|
704
|
-
const handleClose = (tabKey) => setRoot((r) => removeTab(r, tabKey)[0]);
|
|
705
|
-
const handleSelect = (tabKey) => setRoot((r) => selectTab(r, tabKey));
|
|
706
|
-
const handleResize = (key, size) => setRoot((r) => resizeNode(r, key, size));
|
|
707
|
-
const handleRename = (tabKey, title) => setRoot((r) => renameTab(r, tabKey, title));
|
|
708
|
-
return {
|
|
709
|
-
root,
|
|
710
|
-
onDrop: handleDrop,
|
|
711
|
-
onClose: handleClose,
|
|
712
|
-
onSelect: handleSelect,
|
|
713
|
-
onResize: handleResize,
|
|
714
|
-
onRename: allowRename ? handleRename : void 0
|
|
715
|
-
};
|
|
716
|
-
};
|
|
717
|
-
const external$8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
718
|
-
__proto__: null,
|
|
719
|
-
HAUL_CREATE_TYPE: TimeRangeChip$1.HAUL_CREATE_TYPE,
|
|
720
|
-
HAUL_DROP_TYPE: TimeRangeChip$1.HAUL_DROP_TYPE,
|
|
721
|
-
Mosaic: TimeRangeChip$1.Mosaic,
|
|
722
|
-
autoSelectTabs,
|
|
723
|
-
findSelected,
|
|
724
|
-
insertTab,
|
|
725
|
-
isEmpty,
|
|
726
|
-
moveTab,
|
|
727
|
-
removeTab,
|
|
728
|
-
renameTab,
|
|
729
|
-
resizeNode,
|
|
730
|
-
selectTab,
|
|
731
|
-
use: use$2
|
|
732
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
733
|
-
const external$7 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
734
|
-
__proto__: null,
|
|
735
|
-
Bar: TimeRangeChip$1.Bar,
|
|
736
|
-
Drawer: TimeRangeChip$1.Drawer,
|
|
737
|
-
useDrawer: TimeRangeChip$1.useDrawer
|
|
738
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
739
|
-
const Icon = {
|
|
740
|
-
Close: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(
|
|
741
|
-
"svg",
|
|
742
|
-
{
|
|
743
|
-
width: "124",
|
|
744
|
-
height: "124",
|
|
745
|
-
viewBox: "0 0 124 124",
|
|
746
|
-
fill: "none",
|
|
747
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
748
|
-
children: [
|
|
749
|
-
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
|
|
750
|
-
"rect",
|
|
751
|
-
{
|
|
752
|
-
x: "26.8701",
|
|
753
|
-
y: "88.3883",
|
|
754
|
-
width: "87",
|
|
755
|
-
height: "11",
|
|
756
|
-
transform: "rotate(-45 26.8701 88.3883)",
|
|
757
|
-
fill: "#7E0508"
|
|
758
|
-
}
|
|
759
|
-
),
|
|
760
|
-
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
|
|
761
|
-
"rect",
|
|
762
|
-
{
|
|
763
|
-
x: "26.8701",
|
|
764
|
-
y: "34.6482",
|
|
765
|
-
width: "11",
|
|
766
|
-
height: "87",
|
|
767
|
-
transform: "rotate(-45 26.8701 34.6482)",
|
|
768
|
-
fill: "#7E0508"
|
|
769
|
-
}
|
|
770
|
-
)
|
|
771
|
-
]
|
|
772
|
-
}
|
|
773
|
-
),
|
|
774
|
-
Minimize: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
|
|
775
|
-
"svg",
|
|
776
|
-
{
|
|
777
|
-
width: "87",
|
|
778
|
-
height: "11",
|
|
779
|
-
viewBox: "0 0 87 11",
|
|
780
|
-
fill: "none",
|
|
781
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
782
|
-
children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("rect", { x: "15", width: "60", height: "11", fill: "#985712" })
|
|
783
|
-
}
|
|
784
|
-
),
|
|
785
|
-
Maximize: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(
|
|
786
|
-
"svg",
|
|
787
|
-
{
|
|
788
|
-
width: "143",
|
|
789
|
-
height: "143",
|
|
790
|
-
viewBox: "0 0 143 143",
|
|
791
|
-
fill: "none",
|
|
792
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
793
|
-
children: [
|
|
794
|
-
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
|
|
795
|
-
"path",
|
|
796
|
-
{
|
|
797
|
-
d: "M108.242 32.8833C108.797 32.8817 109.247 33.3317 109.245 33.8862L109.092 87.5891C109.09 88.4786 108.014 88.9223 107.385 88.2933L53.8351 34.7432C53.2061 34.1142 53.6499 33.0387 54.5394 33.0361L108.242 32.8833Z",
|
|
798
|
-
fill: "#0B650D"
|
|
799
|
-
}
|
|
800
|
-
),
|
|
801
|
-
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
|
|
802
|
-
"path",
|
|
803
|
-
{
|
|
804
|
-
d: "M33.8862 109.245C33.3317 109.247 32.8818 108.797 32.8833 108.242L33.0361 54.5394C33.0387 53.6499 34.1142 53.2061 34.7432 53.8351L88.2934 107.385C88.9223 108.014 88.4786 109.09 87.5891 109.092L33.8862 109.245Z",
|
|
805
|
-
fill: "#0B650D"
|
|
806
|
-
}
|
|
807
|
-
)
|
|
808
|
-
]
|
|
809
|
-
}
|
|
810
|
-
)
|
|
811
|
-
};
|
|
812
|
-
const MacOS = ({
|
|
813
|
-
disabled = [],
|
|
814
|
-
className,
|
|
815
|
-
focused = true,
|
|
816
|
-
onMinimize,
|
|
817
|
-
onMaximize,
|
|
818
|
-
onFullscreen,
|
|
819
|
-
onClose,
|
|
820
|
-
...props
|
|
821
|
-
}) => /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(
|
|
822
|
-
Center.Space,
|
|
823
|
-
{
|
|
824
|
-
size: 1.5,
|
|
825
|
-
direction: "x",
|
|
826
|
-
className: css.CSS(
|
|
827
|
-
css.CSS.B("macos-controls"),
|
|
828
|
-
!focused && css.CSS.BM("macos-controls", "blurred"),
|
|
829
|
-
className
|
|
830
|
-
),
|
|
831
|
-
...props,
|
|
832
|
-
children: [
|
|
833
|
-
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
|
|
834
|
-
TrafficLight,
|
|
835
|
-
{
|
|
836
|
-
onClick: onClose,
|
|
837
|
-
className: css.CSS.BM("macos-control", "close"),
|
|
838
|
-
disabled: disabled.includes("close"),
|
|
839
|
-
children: Icon.Close
|
|
840
|
-
}
|
|
841
|
-
),
|
|
842
|
-
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
|
|
843
|
-
TrafficLight,
|
|
844
|
-
{
|
|
845
|
-
onClick: onMinimize,
|
|
846
|
-
className: css.CSS.BM("macos-control", "minimize"),
|
|
847
|
-
disabled: disabled.includes("minimize"),
|
|
848
|
-
children: Icon.Minimize
|
|
849
|
-
}
|
|
850
|
-
),
|
|
851
|
-
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
|
|
852
|
-
TrafficLight,
|
|
853
|
-
{
|
|
854
|
-
onClick: onFullscreen,
|
|
855
|
-
className: css.CSS.BM("macos-control", "maximize"),
|
|
856
|
-
disabled: disabled.includes("maximize"),
|
|
857
|
-
children: Icon.Maximize
|
|
858
|
-
}
|
|
859
|
-
)
|
|
860
|
-
]
|
|
861
|
-
}
|
|
862
|
-
);
|
|
863
|
-
const TrafficLight = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
|
|
864
|
-
"button",
|
|
865
|
-
{
|
|
866
|
-
className: css.CSS(css.CSS.B("macos-control"), className),
|
|
867
|
-
tabIndex: -1,
|
|
868
|
-
size: "",
|
|
869
|
-
...props
|
|
870
|
-
}
|
|
871
|
-
);
|
|
872
|
-
const Windows = ({
|
|
873
|
-
disabled = [],
|
|
874
|
-
onMinimize,
|
|
875
|
-
onMaximize,
|
|
876
|
-
onClose,
|
|
877
|
-
// no-op on windows
|
|
878
|
-
onFullscreen: _,
|
|
879
|
-
...props
|
|
880
|
-
}) => /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(Center.Pack, { ...props, children: [
|
|
881
|
-
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
|
|
882
|
-
Button,
|
|
883
|
-
{
|
|
884
|
-
className: css.CSS.BM("windows-control", "minimize"),
|
|
885
|
-
onClick: onMinimize,
|
|
886
|
-
disabled: disabled.includes("minimize"),
|
|
887
|
-
children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Toggle.Icon$1.Subtract, {})
|
|
888
|
-
}
|
|
889
|
-
),
|
|
890
|
-
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
|
|
891
|
-
Button,
|
|
892
|
-
{
|
|
893
|
-
className: css.CSS.BM("windows-control", "maximize"),
|
|
894
|
-
onClick: onMaximize,
|
|
895
|
-
disabled: disabled.includes("maximize"),
|
|
896
|
-
children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Toggle.Icon$1.Box, {})
|
|
897
|
-
}
|
|
898
|
-
),
|
|
899
|
-
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
|
|
900
|
-
Button,
|
|
901
|
-
{
|
|
902
|
-
onClick: onClose,
|
|
903
|
-
className: css.CSS.BM("windows-control", "close"),
|
|
904
|
-
disabled: disabled.includes("close"),
|
|
905
|
-
children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Toggle.Icon$1.Close, {})
|
|
906
|
-
}
|
|
907
|
-
)
|
|
908
|
-
] });
|
|
909
|
-
const Button = ({
|
|
910
|
-
disabled = false,
|
|
911
|
-
className,
|
|
912
|
-
...props
|
|
913
|
-
}) => !disabled ? /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
|
|
914
|
-
Toggle.Icon,
|
|
915
|
-
{
|
|
916
|
-
className: css.CSS(css.CSS.B("windows-control"), className),
|
|
917
|
-
tabIndex: -1,
|
|
918
|
-
...props
|
|
919
|
-
}
|
|
920
|
-
) : null;
|
|
921
|
-
const use$1 = (props) => css.external$1.getOS(props);
|
|
922
|
-
const Variants = {
|
|
923
|
-
MacOS,
|
|
924
|
-
Windows,
|
|
925
|
-
Linux: Windows,
|
|
926
|
-
Docker: Windows
|
|
927
|
-
};
|
|
928
|
-
const DEFAULT_OS = "Windows";
|
|
929
|
-
const Controls = ({
|
|
930
|
-
forceOS,
|
|
931
|
-
visibleIfOS,
|
|
932
|
-
...props
|
|
933
|
-
}) => {
|
|
934
|
-
const os = use$1({ force: forceOS, default: DEFAULT_OS });
|
|
935
|
-
const C = Variants[os];
|
|
936
|
-
if (visibleIfOS != null && visibleIfOS !== os)
|
|
937
|
-
return null;
|
|
938
|
-
return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(C, { ...props });
|
|
939
|
-
};
|
|
940
|
-
const external$6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
941
|
-
__proto__: null,
|
|
942
|
-
Controls,
|
|
943
|
-
use: use$1
|
|
944
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
945
|
-
const alignNodes = (layouts, dir = "x") => {
|
|
946
|
-
if (layouts.length === 0)
|
|
947
|
-
return [];
|
|
948
|
-
const loc = css.location.construct(dir);
|
|
949
|
-
const oppositeLoc = css.location.swap(loc);
|
|
950
|
-
layouts.sort((a, b) => css.box$1.loc(a.box, loc) - css.box$1.loc(b.box, loc));
|
|
951
|
-
layouts.forEach((layout, i) => {
|
|
952
|
-
if (i === 0)
|
|
953
|
-
return;
|
|
954
|
-
const prev = layouts[i - 1];
|
|
955
|
-
const prevRightHandle = prev.handles.find((h) => h.orientation === oppositeLoc);
|
|
956
|
-
const leftHandle = layout.handles.find((h) => h.orientation === loc);
|
|
957
|
-
if (prevRightHandle == null || leftHandle == null)
|
|
958
|
-
return;
|
|
959
|
-
const prevHandleAbsPos = prevRightHandle.absolutePosition;
|
|
960
|
-
const leftHandleAbsPos = leftHandle.absolutePosition;
|
|
961
|
-
const dist = css.xy.set(css.xy.translation(leftHandleAbsPos, prevHandleAbsPos), dir, 0);
|
|
962
|
-
const newPos = css.xy.translate(css.box$1.topLeft(layout.box), dist);
|
|
963
|
-
layout.box = css.box$1.construct(newPos, css.box$1.dims(layout.box));
|
|
964
|
-
});
|
|
965
|
-
return layouts;
|
|
966
|
-
};
|
|
967
|
-
const external$5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
968
|
-
__proto__: null,
|
|
969
|
-
Background: TimeRangeChip$1.Background,
|
|
970
|
-
Controls: TimeRangeChip$1.Controls,
|
|
971
|
-
Diagram: TimeRangeChip$1.Diagram,
|
|
972
|
-
FitViewControl: TimeRangeChip$1.FitViewControl,
|
|
973
|
-
HandleLayout: TimeRangeChip$1.HandleLayout,
|
|
974
|
-
NodeLayout: TimeRangeChip$1.NodeLayout,
|
|
975
|
-
NodeRenderer: TimeRangeChip$1.NodeRenderer,
|
|
976
|
-
ToggleEditControl: TimeRangeChip$1.ToggleEditControl,
|
|
977
|
-
alignNodes,
|
|
978
|
-
selectNode: TimeRangeChip$1.selectNode,
|
|
979
|
-
selectNodeBox: TimeRangeChip$1.selectNodeBox,
|
|
980
|
-
selectNodeLayout: TimeRangeChip$1.selectNodeLayout,
|
|
981
|
-
use: TimeRangeChip$1.use$1,
|
|
982
|
-
useContext: TimeRangeChip$1.useContext$3
|
|
983
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
984
|
-
const use = ({
|
|
985
|
-
aetherKey,
|
|
986
|
-
...props
|
|
987
|
-
}) => Toggle.use$2({
|
|
988
|
-
aetherKey,
|
|
989
|
-
type: table.Table.TYPE,
|
|
990
|
-
schema: table.tableStateZ,
|
|
991
|
-
initialState: props
|
|
992
|
-
});
|
|
993
|
-
const external$4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
994
|
-
__proto__: null,
|
|
995
|
-
StringTD: TimeRangeChip$1.StringTD,
|
|
996
|
-
TR: TimeRangeChip$1.TR,
|
|
997
|
-
Table: TimeRangeChip$1.Table,
|
|
998
|
-
use
|
|
999
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
1000
|
-
const external$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1001
|
-
__proto__: null,
|
|
1002
|
-
LabelSpec: TimeRangeChip$1.LabelSpec,
|
|
1003
|
-
REGISTRY: TimeRangeChip$1.REGISTRY,
|
|
1004
|
-
initialProps: TimeRangeChip$1.initialProps
|
|
1005
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
1006
|
-
const external$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1007
|
-
__proto__: null,
|
|
1008
|
-
corePropsZ: TimeRangeChip$1.corePropsZ,
|
|
1009
|
-
use: TimeRangeChip$1.use$2
|
|
1010
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
1011
|
-
const external$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1012
|
-
__proto__: null,
|
|
1013
|
-
Chip: TimeRangeChip$1.Chip,
|
|
1014
|
-
Controller: TimeRangeChip$1.Controller,
|
|
1015
|
-
Indicator: TimeRangeChip$1.Indicator,
|
|
1016
|
-
Legend: TimeRangeChip$1.Legend,
|
|
1017
|
-
StateProvider: TimeRangeChip$1.StateProvider,
|
|
1018
|
-
useContext: TimeRangeChip$1.useContext$4
|
|
1019
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
1020
|
-
const DefaultWorkerURL = "data:video/mp2t;base64,Ly8gQ29weXJpZ2h0IDIwMjMgU3lubmF4IExhYnMsIEluYy4KLy8KLy8gVXNlIG9mIHRoaXMgc29mdHdhcmUgaXMgZ292ZXJuZWQgYnkgdGhlIEJ1c2luZXNzIFNvdXJjZSBMaWNlbnNlIGluY2x1ZGVkIGluIHRoZSBmaWxlCi8vIGxpY2Vuc2VzL0JTTC50eHQuCi8vCi8vIEFzIG9mIHRoZSBDaGFuZ2UgRGF0ZSBzcGVjaWZpZWQgaW4gdGhhdCBmaWxlLCBpbiBhY2NvcmRhbmNlIHdpdGggdGhlIEJ1c2luZXNzIFNvdXJjZQovLyBMaWNlbnNlLCB1c2Ugb2YgdGhpcyBzb2Z0d2FyZSB3aWxsIGJlIGdvdmVybmVkIGJ5IHRoZSBBcGFjaGUgTGljZW5zZSwgVmVyc2lvbiAyLjAsCi8vIGluY2x1ZGVkIGluIHRoZSBmaWxlIGxpY2Vuc2VzL0FQTC50eHQuCgppbXBvcnQgeyBwbHV0byB9IGZyb20gIkAvcGx1dG8vYWV0aGVyIjsKCnBsdXRvLnJlbmRlcigpOwo=";
|
|
1021
|
-
const Provider = ({
|
|
1022
|
-
children,
|
|
1023
|
-
connParams,
|
|
1024
|
-
workerEnabled = true,
|
|
1025
|
-
workerURL,
|
|
1026
|
-
theme,
|
|
1027
|
-
toggleTheme,
|
|
1028
|
-
setTheme,
|
|
1029
|
-
tooltip,
|
|
1030
|
-
triggers,
|
|
1031
|
-
alamos,
|
|
1032
|
-
haul,
|
|
1033
|
-
channelAlias
|
|
1034
|
-
}) => {
|
|
1035
|
-
return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Toggle.Provider$1, { ...triggers, children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Toggle.Config, { ...tooltip, children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Toggle.Provider$2, { ...haul, children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Toggle.Provider$3, { url: workerURL ?? DefaultWorkerURL, enabled: workerEnabled, children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Toggle.Provider$4, { workerKey: "vis", children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(TimeRangeChip$1.Provider$1, { ...alamos, children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Toggle.Aggregator, { children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(TimeRangeChip$1.Provider$2, { connParams, children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(TimeRangeChip$1.AliasProvider, { ...channelAlias, children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(TimeRangeChip$1.Provider$3, { children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
|
|
1036
|
-
Toggle.Provider,
|
|
1037
|
-
{
|
|
1038
|
-
theme,
|
|
1039
|
-
toggleTheme,
|
|
1040
|
-
setTheme,
|
|
1041
|
-
children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(TimeRangeChip$1.StateProvider, { children })
|
|
1042
|
-
}
|
|
1043
|
-
) }) }) }) }) }) }) }) }) }) });
|
|
1044
|
-
};
|
|
1045
|
-
const Pluto = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1046
|
-
__proto__: null,
|
|
1047
|
-
Provider
|
|
1048
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
1049
|
-
const TimeRangeChip = ({ timeRange }) => {
|
|
1050
|
-
const startTS = new css.TimeStamp(timeRange.start);
|
|
1051
|
-
const startFormat = startTS.isToday ? "time" : "dateTime";
|
|
1052
|
-
const endTS = new css.TimeStamp(timeRange.end);
|
|
1053
|
-
const isOpen = endTS.equals(css.TimeStamp.MAX);
|
|
1054
|
-
const endFormat = endTS.span(startTS) < css.TimeSpan.DAY ? "time" : "dateTime";
|
|
1055
|
-
return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(
|
|
1056
|
-
Center.Space,
|
|
1057
|
-
{
|
|
1058
|
-
direction: "x",
|
|
1059
|
-
size: "small",
|
|
1060
|
-
className: css.CSS(css.CSS.B("time-range-chip")),
|
|
1061
|
-
align: "center",
|
|
1062
|
-
children: [
|
|
1063
|
-
startTS.isToday && /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Toggle.Text, { level: "small", children: "Today" }),
|
|
1064
|
-
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Toggle.DateTime, { level: "small", displayTZ: "local", format: startFormat, children: startTS }),
|
|
1065
|
-
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Toggle.Icon$1.Arrow.Right, { color: "var(--pluto-text-color)" }),
|
|
1066
|
-
isOpen ? /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Toggle.Text, { level: "small", children: "Now" }) : /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Toggle.DateTime, { level: "small", displayTZ: "local", format: endFormat, children: endTS })
|
|
1067
|
-
]
|
|
1068
|
-
}
|
|
1069
|
-
);
|
|
1070
|
-
};
|
|
1071
|
-
const labelColumns = [
|
|
1072
|
-
{
|
|
1073
|
-
key: "color",
|
|
1074
|
-
name: "Color",
|
|
1075
|
-
width: 50,
|
|
1076
|
-
render: (v) => /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
|
|
1077
|
-
Toggle.Icon$1.Circle,
|
|
1078
|
-
{
|
|
1079
|
-
style: { fontSize: 10, marginLeft: 10, marginRight: 30 },
|
|
1080
|
-
color: v.entry.color
|
|
1081
|
-
}
|
|
1082
|
-
)
|
|
1083
|
-
},
|
|
1084
|
-
{
|
|
1085
|
-
key: "name",
|
|
1086
|
-
name: "Name"
|
|
1087
|
-
}
|
|
1088
|
-
];
|
|
1089
|
-
const SelectLabels = (props) => {
|
|
1090
|
-
const client = TimeRangeChip$1.use$3();
|
|
1091
|
-
return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
|
|
1092
|
-
TimeRangeChip$1.Multiple$1,
|
|
1093
|
-
{
|
|
1094
|
-
...props,
|
|
1095
|
-
searcher: client == null ? void 0 : client.labels,
|
|
1096
|
-
columns: labelColumns,
|
|
1097
|
-
renderTag: (v) => /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(TimeRangeChip$1.Tag, { color: v.entry.color, children: v.entry.name })
|
|
1098
|
-
}
|
|
1099
|
-
);
|
|
1100
|
-
};
|
|
1101
|
-
const external = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1102
|
-
__proto__: null,
|
|
1103
|
-
SelectLabels,
|
|
1104
|
-
TimeRangeChip
|
|
1105
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
1106
|
-
exports.Aether = Toggle.main;
|
|
1107
|
-
exports.Divider = Toggle.Divider$1;
|
|
1108
|
-
exports.Dropdown = Toggle.Dropdown;
|
|
1109
|
-
exports.Haul = Toggle.Haul;
|
|
1110
|
-
exports.Worker = Toggle.Context$1;
|
|
1111
|
-
exports.compareArrayDeps = Toggle.compareArrayDeps;
|
|
1112
|
-
exports.componentRenderProp = Toggle.componentRenderProp;
|
|
1113
|
-
exports.createHexOpacityVariants = Toggle.createHexOpacityVariants;
|
|
1114
|
-
exports.isRenderProp = Toggle.isRenderProp;
|
|
1115
|
-
exports.unitProperty = Toggle.unitProperty;
|
|
1116
|
-
exports.useAsyncEffect = Toggle.useAsyncEffect;
|
|
1117
|
-
exports.useClickOutside = Toggle.useClickOutside;
|
|
1118
|
-
exports.useCombinedRefs = Toggle.useCombinedRefs;
|
|
1119
|
-
exports.useCombinedStateAndRef = Toggle.useCombinedStateAndRef;
|
|
1120
|
-
exports.useEffectCompare = Toggle.useEffectCompare;
|
|
1121
|
-
exports.useMemoCompare = Toggle.useMemoCompare;
|
|
1122
|
-
exports.useMemoDeepEqualProps = Toggle.useMemoDeepEqualProps;
|
|
1123
|
-
exports.useResize = Toggle.useResize;
|
|
1124
|
-
exports.useStateRef = Toggle.useStateRef;
|
|
1125
|
-
exports.useSyncedRef = Toggle.useSyncedRef;
|
|
1126
|
-
exports.CSS = css.CSS;
|
|
1127
|
-
exports.newBEM = css.newBEM;
|
|
1128
|
-
exports.Header = external$j.external;
|
|
1129
|
-
exports.state = component.state;
|
|
1130
|
-
exports.Generic = Center.Generic;
|
|
1131
|
-
exports.Canvas = TimeRangeChip$1.Canvas;
|
|
1132
|
-
exports.Eraser = TimeRangeChip$1.use$4;
|
|
1133
|
-
exports.Line = TimeRangeChip$1.Line$1;
|
|
1134
|
-
exports.Measure = TimeRangeChip$1.Measure$1;
|
|
1135
|
-
exports.PID = TimeRangeChip$1.registry;
|
|
1136
|
-
exports.Rule = TimeRangeChip$1.Rule$1;
|
|
1137
|
-
exports.Synnax = TimeRangeChip$1.Provider$4;
|
|
1138
|
-
exports.Tag = TimeRangeChip$1.Tag$1;
|
|
1139
|
-
exports.Telem = TimeRangeChip$1.Provider$5;
|
|
1140
|
-
exports.Tree = TimeRangeChip$1.Tree;
|
|
1141
|
-
exports.createFilterTransform = TimeRangeChip$1.createFilterTransform;
|
|
1142
|
-
exports.fuseFilter = TimeRangeChip$1.fuseFilter;
|
|
1143
|
-
exports.useDebouncedCallback = TimeRangeChip$1.useDebouncedCallback;
|
|
1144
|
-
exports.useTransforms = TimeRangeChip$1.useTransforms;
|
|
1145
|
-
exports.Align = external$h.external;
|
|
1146
|
-
exports.Button = external$i.external;
|
|
1147
|
-
exports.Input = external$k.external;
|
|
1148
|
-
exports.List = external$l.external;
|
|
1149
|
-
exports.Menu = external$m.external;
|
|
1150
|
-
exports.Tabs = external$n.external;
|
|
1151
|
-
exports.Text = external$o.external;
|
|
1152
|
-
exports.Theming = external$p.external;
|
|
1153
|
-
exports.Triggers = external$q.external;
|
|
1154
|
-
exports.Video = Video.Video;
|
|
1155
|
-
exports.telem = external$r.external;
|
|
1156
|
-
exports.Accordion = Accordion$1;
|
|
1157
|
-
exports.Channel = external$9;
|
|
1158
|
-
exports.Color = external$f;
|
|
1159
|
-
exports.Control = external$1;
|
|
1160
|
-
exports.Diagram = external$5;
|
|
1161
|
-
exports.LinePlot = external$a;
|
|
1162
|
-
exports.Mosaic = external$8;
|
|
1163
|
-
exports.Nav = external$7;
|
|
1164
|
-
exports.OS = external$6;
|
|
1165
|
-
exports.Pluto = Pluto;
|
|
1166
|
-
exports.Ranger = external;
|
|
1167
|
-
exports.Resize = external$d;
|
|
1168
|
-
exports.Select = external$c;
|
|
1169
|
-
exports.Status = external$g;
|
|
1170
|
-
exports.Table = external$4;
|
|
1171
|
-
exports.TableCell = external$3;
|
|
1172
|
-
exports.Tooltip = external$e;
|
|
1173
|
-
exports.Value = external$2;
|
|
1174
|
-
exports.Viewport = external$b;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./jsx-runtime-evvPGacs.cjs"),b=require("react"),l=require("./Toggle-QnKinMl4.cjs"),a=require("./css-s9KpanYu.cjs"),N=require("./external-RGdrJX7y.cjs"),de=require("./Header-PpcdP7hn.cjs"),P=require("./component-dgLAEMbt.cjs"),h=require("./Center-ER_owvfX.cjs"),t=require("./TimeRangeChip-jQH9NacG.cjs"),R=require("./table-NIrLpFOm.cjs"),pe=require("./font-yosRgv9n.cjs"),me=require("./external-tnCo64yx.cjs"),je=require("./external--jsfNkbo.cjs"),fe=require("./external-tZiYBM94.cjs"),X=require("./color-gJTR__ef.cjs"),Se=require("./external-eWu6hCLU.cjs"),Ee=require("./external-A_eQgT5T.cjs"),be=require("./external-O1b3FJKI.cjs"),q=require("./Selector-8rTHUToj.cjs"),Z=require("./SelectLevel-DrdlLBOs.cjs"),ge=require("./external-z6BLlxur.cjs"),ye=require("./external-LPdjowBG.cjs"),Re=require("./external-HZ6f2KvU.cjs"),W=require("./external-rGcWjp84.cjs"),Te=require("./Video-iiPAk_ej.cjs");require("react-hook-form");require("./Item-EBiM5yGJ.cjs");const he=require("./external-nTDD8IMd.cjs");require("react-dom");require("zod");require("./Swatch--Prmb5q_.cjs");require("./useDrag-l_moa7e3.cjs");require("./Item-_og4CdwZ.cjs");require("./dimensions-HfZjDJQz.cjs");require("./Link-16dbGK7G.cjs");require("./Video-k52RqIHf.cjs");require("./fontString-_dtZSiPk.cjs");require("./Keyboard-bXNOi0bP.cjs");const _e=({variant:e})=>i.jsxRuntimeExports.jsx(l.n0.Circle,{color:l.variantColors[e]}),Ce=Object.freeze(Object.defineProperty({__proto__:null,Aggregator:l.Aggregator,Circle:_e,Text:l.Text$2,VARIANTS:P.VARIANTS,specZ:P.specZ$1,useAggregator:l.useAggregator,useContext:l.useContext$2,useNotifications:l.useNotifications,variantZ:P.variantZ},Symbol.toStringTag,{value:"Module"})),ve=Object.freeze(Object.defineProperty({__proto__:null,Config:l.Config,Context:l.Context,Dialog:l.Dialog$1,formatTip:l.formatTip,useConfig:l.useConfig,wrap:l.wrap},Symbol.toStringTag,{value:"Module"})),Pe=Object.freeze(Object.defineProperty({__proto__:null,Core:t.Core$1,Multiple:t.Multiple,Single:t.Single,calculateDiffPercentage:t.calculateDiffPercentage,useMultiple:t.useMultiple},Symbol.toStringTag,{value:"Module"})),M="y",F=28,Me=32,Le=40,we=.5,$e=({data:e,...s})=>{const{setSize:n,props:{sizeDistribution:r,ref:o,...c}}=t.useMultiple({direction:M,count:e.length,minSize:F}),u=x=>{if(o.current==null)return;const p=a.box$1.dim(a.box$1.construct(o.current),M);r[x]<Le/p?n(x,e[x].initialSize??we):n(x,F+1)};return i.jsxRuntimeExports.jsx(t.Multiple,{empty:!0,className:a.CSS.B("accordion"),sizeDistribution:r,ref:o,...s,...c,children:e.map((x,p)=>b.createElement(ze,{...x,key:x.key,index:p,direction:M,onExpand:u,parent:o,size:r[p]}))})},De=i.jsxRuntimeExports.jsx(l.n0.Caret.Down,{"aria-label":"contract"}),Oe=i.jsxRuntimeExports.jsx(l.n0.Caret.Right,{"aria-label":"expand"}),ze=({index:e,name:s,content:n,actions:r,size:o,parent:c,onExpand:u})=>{let x=!0;if(c.current!=null){const m=a.box$1.dim(a.box$1.construct(c.current),M);x=o*m>Me}const p=x?De:Oe;return i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[i.jsxRuntimeExports.jsxs(de.Header,{level:"p",className:a.CSS.expanded(x),empty:!0,children:[i.jsxRuntimeExports.jsx(N.ButtonTitle,{startIcon:p,onClick:()=>u(e),children:s}),r!=null&&i.jsxRuntimeExports.jsx(N.Actions,{children:r})]}),n]})},Ae=Object.freeze(Object.defineProperty({__proto__:null,Accordion:$e},Symbol.toStringTag,{value:"Module"})),K=({className:e,style:s,onLineChange:n,...r})=>{const{lines:o}=t.useContext$1("Legend");return t.useContext$1("Legend"),i.jsxRuntimeExports.jsx(t.Simple,{data:o,onEntryChange:n,...r})},J=({level:e="h2",...s})=>{const n=l.useUniqueKey(),r=pe.useTypography(e),o=t.useGridPosition({key:n,size:(r.lineHeight+2)*r.baseSize,loc:"top",order:"first"},"Title");return i.jsxRuntimeExports.jsx(h.Space,{justify:"center",align:"center",style:o,children:i.jsxRuntimeExports.jsx(l.MaybeEditable,{...s,level:e})})},Ie=[{key:"x",icon:i.jsxRuntimeExports.jsx(l.n0.Arrow.Right,{})},{key:"y",icon:i.jsxRuntimeExports.jsx(l.n0.Arrow.Down,{})}],ke=({key:e,entry:s,onClick:n,selected:r})=>i.jsxRuntimeExports.jsx(l.Icon,{variant:r?"filled":"outlined",onClick:n,children:s.icon},e),Ne=({children:e=ke,...s})=>i.jsxRuntimeExports.jsx(Z.Button,{...s,data:Ie,children:e}),Be=Object.freeze(Object.defineProperty({__proto__:null,Button:Z.Button,Direction:Ne,Multiple:t.Multiple$1,Single:t.Single$1},Symbol.toStringTag,{value:"Module"})),Ge=({mode:e,triggers:s})=>i.jsxRuntimeExports.jsxs(h.Space,{direction:"x",align:"center",children:[i.jsxRuntimeExports.jsx(l.Text,{level:"small",children:a.Case.capitalize(e)}),i.jsxRuntimeExports.jsx(W.Text,{trigger:s[0],level:"small"})]}),qe={zoom:i.jsxRuntimeExports.jsx(l.n0.Zoom,{}),pan:i.jsxRuntimeExports.jsx(l.n0.Pan,{}),select:i.jsxRuntimeExports.jsx(l.n0.Selection,{}),zoomReset:i.jsxRuntimeExports.jsx(l.n0.Expand,{}),click:i.jsxRuntimeExports.jsx(l.n0.Bolt,{})},Ze=({triggers:e,disable:s=["zoomReset","click"],...n})=>{const r=Object.entries(e).filter(([o])=>!s.includes(o)&&t.MODES.includes(o)).map(([o,c])=>({key:o,icon:qe[o],tooltip:i.jsxRuntimeExports.jsx(Ge,{mode:o,triggers:c})})).sort((o,c)=>t.MODES.indexOf(o.key)-t.MODES.indexOf(c.key));return i.jsxRuntimeExports.jsx(Z.Button,{...n,data:r,entryRenderKey:"icon",children:({title:o,entry:c,...u})=>b.createElement(l.Icon,{...u,key:c.key,variant:u.selected?"filled":"text",size:"medium",tooltip:c.tooltip,tooltipLocation:{x:"right",y:"top"}},c.icon)})},He=Object.freeze(Object.defineProperty({__proto__:null,DEFAULT_TRIGGERS:t.DEFAULT_TRIGGERS,MASK_MODES:t.MASK_MODES,MODES:t.MODES,Mask:t.Mask,PAN_DEFAULT_TRIGGERS:t.PAN_DEFAULT_TRIGGERS,SELECT_DEFAULT_TRIGGERS:t.SELECT_DEFAULT_TRIGGERS,SelectMode:Ze,ZOOM_DEFAULT_TRIGGERS:t.ZOOM_DEFAULT_TRIGGERS,use:t.use},Symbol.toStringTag,{value:"Module"})),Ve=Object.freeze(Object.defineProperty({__proto__:null,Legend:K,Line:t.Line,LinePlot:t.LinePlot,Title:J,Viewport:t.Viewport,XAxis:t.XAxis,YAxis:t.YAxis,axisFactory:t.axisFactory,selectViewportEl:t.selectViewportEl,useContext:t.useContext$1,useGridPosition:t.useGridPosition,useViewport:t.useViewport},Symbol.toStringTag,{value:"Module"})),Q=l.canDropOfType(t.HAUL_TYPE),Fe=({lines:e,axes:s,showTitle:n=!0,title:r="",onTitleChange:o,showLegend:c=!0,titleLevel:u="h4",onLineChange:x,onRuleChange:p,onAxisChannelDrop:m,onAxisChange:d,rules:j,enableTooltip:S=!0,enableMeasure:f=!1,initialViewport:E=a.box$1.DECIMAL,onViewportChange:_,viewportTriggers:O,...C})=>{const le=s.filter(({location:y})=>a.location.isY(y));return i.jsxRuntimeExports.jsxs(t.LinePlot,{...C,children:[le.map((y,ce)=>{const ae=e.filter(v=>v.axes.x===y.key),V=s.filter(({location:v})=>a.location.isX(v)),ue=j==null?void 0:j.filter(v=>[...V.map(({key:xe})=>xe),y.key].includes(v.axis));return i.jsxRuntimeExports.jsx(Ye,{axis:y,index:ce,lines:ae,yAxes:V,rules:ue,onAxisChannelDrop:m,onAxisChange:d},y.key)}),c&&i.jsxRuntimeExports.jsx(K,{onLineChange:x}),n&&i.jsxRuntimeExports.jsx(J,{value:r,onChange:o,level:u}),i.jsxRuntimeExports.jsxs(t.Viewport,{initial:E,onChange:_,triggers:O,children:[S&&i.jsxRuntimeExports.jsx(t.Tooltip,{}),f&&i.jsxRuntimeExports.jsx(t.Measure,{})]})]})},Ye=({yAxes:e,lines:s,index:n,rules:r,onRuleChange:o,onAxisChannelDrop:c,onAxisChange:u,axis:{location:x,key:p,showGrid:m,...d}})=>{const j=l.useDrop({type:"Channel.LinePlot.XAxis",canDrop:Q,onDrop:b.useCallback(({items:f})=>{const E=l.filterByType(t.HAUL_TYPE,f);return c==null||c(p,E.map(({key:_})=>_)),E},[p,c])}),S=r==null?void 0:r.filter(f=>f.axis===p);return i.jsxRuntimeExports.jsxs(t.XAxis,{...d,...j,location:x,showGrid:m??n===0,className:a.CSS(a.CSS.dropRegion(l.canDropOfType(t.HAUL_TYPE)(l.useDraggingState()))),onAutoBoundsChange:f=>u==null?void 0:u({key:p,bounds:f}),children:[e.map((f,E)=>{const _=s.filter(C=>C.axes.y===f.key),O=r==null?void 0:r.filter(C=>C.axis===f.key);return i.jsxRuntimeExports.jsx(Xe,{axis:{...f,showGrid:m??(n===0&&E===0)},lines:_,rules:O,onRuleChange:o,onAxisChannelDrop:c,onAxisChange:u},f.key)}),S==null?void 0:S.map(f=>b.createElement(t.Rule,{aetherKey:f.key,...f,key:f.key,onLabelChange:E=>o==null?void 0:o({key:f.key,label:E}),onPositionChange:E=>o==null?void 0:o({key:f.key,position:E})}))]})},Ue=({channels:{x:e,y:s}})=>`${e??0}-${s}`,Xe=({lines:e,rules:s,onRuleChange:n,onAxisChannelDrop:r,onAxisChange:o,axis:{key:c,location:u,...x}})=>{const p=l.useDrop({type:"Channel.LinePlot.YAxis",canDrop:Q,onDrop:b.useCallback(({items:d})=>{const j=l.filterByType(t.HAUL_TYPE,d);return r==null||r(c,j.map(({key:S})=>S)),j},[c,r])}),m=l.useDraggingState();return i.jsxRuntimeExports.jsxs(t.YAxis,{...x,...p,location:u,className:a.CSS(a.CSS.dropRegion(l.canDropOfType(t.HAUL_TYPE)(m))),onAutoBoundsChange:d=>o==null?void 0:o({key:c,bounds:d}),children:[e.map(d=>i.jsxRuntimeExports.jsx(We,{line:d},Ue(d))),s==null?void 0:s.map(d=>b.createElement(t.Rule,{aetherKey:d.key,...d,key:d.key,onLabelChange:j=>n==null?void 0:n({key:d.key,label:j}),onPositionChange:j=>n==null?void 0:n({key:d.key,position:j})}))]})},We=({line:e})=>e.variant==="static"?i.jsxRuntimeExports.jsx(Je,{line:e}):i.jsxRuntimeExports.jsx(Ke,{line:e}),Ke=({line:{key:e,timeSpan:s,channels:{x:n,y:r},...o}})=>{const c=R.streamChannelData({timeSpan:s,channel:r}),u=n!=null&&n!==0,x=R.streamChannelData({timeSpan:s,channel:u?n:r,index:!u});return i.jsxRuntimeExports.jsx(t.Line,{aetherKey:e,y:c,x,...o})},Je=({line:{timeRange:e,key:s,channels:{x:n,y:r},...o}})=>{const c=R.channelData({timeRange:e,channel:r}),u=n!=null&&n!==0,x=R.channelData({timeRange:e,channel:u?n:r,index:!u});return i.jsxRuntimeExports.jsx(t.Line,{aetherKey:s,y:c,x,...o})},Qe=Object.freeze(Object.defineProperty({__proto__:null,AliasInput:t.AliasInput,AliasProvider:t.AliasProvider,LinePlot:Fe,SelectMultiple:t.SelectMultiple,SelectSingle:t.SelectSingle,useActiveRange:t.useActiveRange,useAlias:t.useAlias,useAliases:t.useAliases,useContext:t.useContext$2,useName:t.useName},Symbol.toStringTag,{value:"Module"})),D=new Error("Tab not found"),et=new Error("Invalid Mosaic"),ee=(e,s,n="center",r)=>{var p;if(e=g(e),r===void 0)return B(e,s);const o=ie(e,r);if(n==="center")return(p=o.tabs)==null||p.push(s),o.selected=s.tabKey,e;if(o.tabs==null||o.tabs.length===0)return e;const[c,u,x]=nt(n);if(o.direction=x,o[c]={key:0,tabs:[s],selected:s.tabKey},o[u]={key:0,tabs:o.tabs,selected:o.selected},o.first==null||o.last==null)throw et;return o.first.key=o.key*2,o.last.key=o.key*2+1,o.tabs=void 0,o.size=void 0,o.selected=void 0,e},B=(e,s)=>(e=g(e),e.tabs!=null?(e.tabs.push(s),e.selected=s.tabKey,e):(e.first!=null?e.first=B(e.first,s):e.last!=null&&(e.last=B(e.last,s)),e)),L=e=>{e=g(e);const s=[];if(e.tabs!=null&&(e.selected=q.resetSelection(e.selected,e.tabs),e.selected!=null&&s.push(e.selected)),e.first!=null){const[n,r]=L(e.first);e.first=n,s.push(...r)}if(e.last!=null){const[n,r]=L(e.last);e.last=n,s.push(...r)}return[e,s]},H=(e,s)=>{var c;e=g(e);const[,n]=T(e,s);if(n==null)throw D;n.tabs=(c=n.tabs)==null?void 0:c.filter(u=>u.tabKey!==s),n.selected=q.resetSelection(n.selected,n.tabs);const r=st(e),o=n.selected??w(r);return[r,o]},w=e=>e.selected!=null?e.selected:e.first!=null?w(e.first):e.last!=null?w(e.last):null,te=(e,s)=>{e=g(e);const[n,r]=T(e,s);if(n==null||r==null)throw D;return r.selected=s,e},se=(e,s,n,r)=>{e=g(e);const[o,c]=T(e,s);if(o==null||c==null)throw D;const[u,x]=H(e,s);return[ee(u,o,n,r),x]},ne=(e,s,n)=>{const r=$(e,s);if(r==null)throw new Error("Node not found");return r.size=n,e},re=(e,s,n)=>{e=g(e);const[,r]=T(e,s);if((r==null?void 0:r.tabs)==null)throw D;return r.tabs=q.rename(s,n,(r==null?void 0:r.tabs)??[]),e},tt=e=>e.tabs!=null?e.tabs.length===0:e.first==null&&e.last==null,ie=(e,s)=>{const n=$(e,s);if(n!=null)return n;const r=Math.floor(s/2);return r===0?e:ie(e,r)},st=e=>{let s=!0;for(;s;)[e,s]=G(e);return e},G=e=>{if(e.first==null||e.last==null)return[e,!1];if(U(e.first))return[Y(e.last,!0),!0];if(U(e.last))return[Y(e.first,!1),!0];let[s,n]=[!1,!1];return[e.first,s]=G(e.first),[e.last,n]=G(e.last),[e,s||n]},Y=(e,s)=>(e.size=void 0,e.key=(e.key-Number(s))/2,e),U=e=>e.first==null&&e.last==null&&(e.tabs==null||e.tabs.length===0),T=(e,s)=>{if(e.tabs!=null){const u=e.tabs.find(x=>x.tabKey===s);if(u!=null)return[u,e]}if(e.first==null||e.last==null)return[void 0,void 0];const[n,r]=T(e.first,s);if(n!=null&&r!=null)return[n,r];const[o,c]=T(e.last,s);return[o,c]},$=(e,s)=>{if(e.key===s)return e;if(e.first==null||e.last==null)return;const n=$(e.first,s);return n??$(e.last,s)},nt=e=>{switch(e){case"top":return["first","last","y"];case"left":return["first","last","x"];case"bottom":return["last","first","y"];case"right":return["last","first","x"];case"center":throw new Error("cannot split a center placed tab")}},g=e=>a.external.copy(e),rt=({allowRename:e=!1,initialTree:s})=>{const[n,r]=b.useState(s);return b.useEffect(()=>r(L(s)[0]),[s]),{root:n,onDrop:(m,d,j)=>r(S=>se(S,d,j,m)[0]),onClose:m=>r(d=>H(d,m)[0]),onSelect:m=>r(d=>te(d,m)),onResize:(m,d)=>r(j=>ne(j,m,d)),onRename:e?(m,d)=>r(j=>re(j,m,d)):void 0}},it=Object.freeze(Object.defineProperty({__proto__:null,HAUL_CREATE_TYPE:t.HAUL_CREATE_TYPE,HAUL_DROP_TYPE:t.HAUL_DROP_TYPE,Mosaic:t.Mosaic,autoSelectTabs:L,findSelected:w,insertTab:ee,isEmpty:tt,moveTab:se,removeTab:H,renameTab:re,resizeNode:ne,selectTab:te,use:rt},Symbol.toStringTag,{value:"Module"})),ot=Object.freeze(Object.defineProperty({__proto__:null,Bar:t.Bar,Drawer:t.Drawer,useDrawer:t.useDrawer},Symbol.toStringTag,{value:"Module"})),z={Close:i.jsxRuntimeExports.jsxs("svg",{width:"124",height:"124",viewBox:"0 0 124 124",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i.jsxRuntimeExports.jsx("rect",{x:"26.8701",y:"88.3883",width:"87",height:"11",transform:"rotate(-45 26.8701 88.3883)",fill:"#7E0508"}),i.jsxRuntimeExports.jsx("rect",{x:"26.8701",y:"34.6482",width:"11",height:"87",transform:"rotate(-45 26.8701 34.6482)",fill:"#7E0508"})]}),Minimize:i.jsxRuntimeExports.jsx("svg",{width:"87",height:"11",viewBox:"0 0 87 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:i.jsxRuntimeExports.jsx("rect",{x:"15",width:"60",height:"11",fill:"#985712"})}),Maximize:i.jsxRuntimeExports.jsxs("svg",{width:"143",height:"143",viewBox:"0 0 143 143",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i.jsxRuntimeExports.jsx("path",{d:"M108.242 32.8833C108.797 32.8817 109.247 33.3317 109.245 33.8862L109.092 87.5891C109.09 88.4786 108.014 88.9223 107.385 88.2933L53.8351 34.7432C53.2061 34.1142 53.6499 33.0387 54.5394 33.0361L108.242 32.8833Z",fill:"#0B650D"}),i.jsxRuntimeExports.jsx("path",{d:"M33.8862 109.245C33.3317 109.247 32.8818 108.797 32.8833 108.242L33.0361 54.5394C33.0387 53.6499 34.1142 53.2061 34.7432 53.8351L88.2934 107.385C88.9223 108.014 88.4786 109.09 87.5891 109.092L33.8862 109.245Z",fill:"#0B650D"})]})},lt=({disabled:e=[],className:s,focused:n=!0,onMinimize:r,onMaximize:o,onFullscreen:c,onClose:u,...x})=>i.jsxRuntimeExports.jsxs(h.Space,{size:1.5,direction:"x",className:a.CSS(a.CSS.B("macos-controls"),!n&&a.CSS.BM("macos-controls","blurred"),s),...x,children:[i.jsxRuntimeExports.jsx(A,{onClick:u,className:a.CSS.BM("macos-control","close"),disabled:e.includes("close"),children:z.Close}),i.jsxRuntimeExports.jsx(A,{onClick:r,className:a.CSS.BM("macos-control","minimize"),disabled:e.includes("minimize"),children:z.Minimize}),i.jsxRuntimeExports.jsx(A,{onClick:c,className:a.CSS.BM("macos-control","maximize"),disabled:e.includes("maximize"),children:z.Maximize})]}),A=({className:e,...s})=>i.jsxRuntimeExports.jsx("button",{className:a.CSS(a.CSS.B("macos-control"),e),tabIndex:-1,size:"",...s}),I=({disabled:e=[],onMinimize:s,onMaximize:n,onClose:r,onFullscreen:o,...c})=>i.jsxRuntimeExports.jsxs(h.Pack,{...c,children:[i.jsxRuntimeExports.jsx(k,{className:a.CSS.BM("windows-control","minimize"),onClick:s,disabled:e.includes("minimize"),children:i.jsxRuntimeExports.jsx(l.n0.Subtract,{})}),i.jsxRuntimeExports.jsx(k,{className:a.CSS.BM("windows-control","maximize"),onClick:n,disabled:e.includes("maximize"),children:i.jsxRuntimeExports.jsx(l.n0.Box,{})}),i.jsxRuntimeExports.jsx(k,{onClick:r,className:a.CSS.BM("windows-control","close"),disabled:e.includes("close"),children:i.jsxRuntimeExports.jsx(l.n0.Close,{})})]}),k=({disabled:e=!1,className:s,...n})=>e?null:i.jsxRuntimeExports.jsx(l.Icon,{className:a.CSS(a.CSS.B("windows-control"),s),tabIndex:-1,...n}),oe=e=>a.external$1.getOS(e),ct={MacOS:lt,Windows:I,Linux:I,Docker:I},at="Windows",ut=({forceOS:e,visibleIfOS:s,...n})=>{const r=oe({force:e,default:at}),o=ct[r];return s!=null&&s!==r?null:i.jsxRuntimeExports.jsx(o,{...n})},xt=Object.freeze(Object.defineProperty({__proto__:null,Controls:ut,use:oe},Symbol.toStringTag,{value:"Module"})),dt=(e,s="x")=>{if(e.length===0)return[];const n=a.location.construct(s),r=a.location.swap(n);return e.sort((o,c)=>a.box$1.loc(o.box,n)-a.box$1.loc(c.box,n)),e.forEach((o,c)=>{if(c===0)return;const x=e[c-1].handles.find(f=>f.orientation===r),p=o.handles.find(f=>f.orientation===n);if(x==null||p==null)return;const m=x.absolutePosition,d=p.absolutePosition,j=a.xy.set(a.xy.translation(d,m),s,0),S=a.xy.translate(a.box$1.topLeft(o.box),j);o.box=a.box$1.construct(S,a.box$1.dims(o.box))}),e},pt=Object.freeze(Object.defineProperty({__proto__:null,Background:t.Background,Controls:t.Controls,Diagram:t.Diagram,FitViewControl:t.FitViewControl,HandleLayout:t.HandleLayout,NodeLayout:t.NodeLayout,NodeRenderer:t.NodeRenderer,ToggleEditControl:t.ToggleEditControl,alignNodes:dt,selectNode:t.selectNode,selectNodeBox:t.selectNodeBox,selectNodeLayout:t.selectNodeLayout,use:t.use$1,useContext:t.useContext$3},Symbol.toStringTag,{value:"Module"})),mt=({aetherKey:e,...s})=>l.use$3({aetherKey:e,type:R.Table.TYPE,schema:R.tableStateZ,initialState:s}),jt=Object.freeze(Object.defineProperty({__proto__:null,StringTD:t.StringTD,TR:t.TR,Table:t.Table,use:mt},Symbol.toStringTag,{value:"Module"})),ft=Object.freeze(Object.defineProperty({__proto__:null,LabelSpec:t.LabelSpec,REGISTRY:t.REGISTRY,initialProps:t.initialProps},Symbol.toStringTag,{value:"Module"})),St=Object.freeze(Object.defineProperty({__proto__:null,corePropsZ:t.corePropsZ,use:t.use$2},Symbol.toStringTag,{value:"Module"})),Et=Object.freeze(Object.defineProperty({__proto__:null,Chip:t.Chip,Controller:t.Controller,Indicator:t.Indicator,Legend:t.Legend,StateProvider:t.StateProvider,useContext:t.useContext$4},Symbol.toStringTag,{value:"Module"})),bt="data:video/mp2t;base64,Ly8gQ29weXJpZ2h0IDIwMjMgU3lubmF4IExhYnMsIEluYy4KLy8KLy8gVXNlIG9mIHRoaXMgc29mdHdhcmUgaXMgZ292ZXJuZWQgYnkgdGhlIEJ1c2luZXNzIFNvdXJjZSBMaWNlbnNlIGluY2x1ZGVkIGluIHRoZSBmaWxlCi8vIGxpY2Vuc2VzL0JTTC50eHQuCi8vCi8vIEFzIG9mIHRoZSBDaGFuZ2UgRGF0ZSBzcGVjaWZpZWQgaW4gdGhhdCBmaWxlLCBpbiBhY2NvcmRhbmNlIHdpdGggdGhlIEJ1c2luZXNzIFNvdXJjZQovLyBMaWNlbnNlLCB1c2Ugb2YgdGhpcyBzb2Z0d2FyZSB3aWxsIGJlIGdvdmVybmVkIGJ5IHRoZSBBcGFjaGUgTGljZW5zZSwgVmVyc2lvbiAyLjAsCi8vIGluY2x1ZGVkIGluIHRoZSBmaWxlIGxpY2Vuc2VzL0FQTC50eHQuCgppbXBvcnQgeyBwbHV0byB9IGZyb20gIkAvcGx1dG8vYWV0aGVyIjsKCnBsdXRvLnJlbmRlcigpOwo=",gt=({children:e,connParams:s,workerEnabled:n=!0,workerURL:r,theme:o,toggleTheme:c,setTheme:u,tooltip:x,triggers:p,alamos:m,haul:d,channelAlias:j})=>i.jsxRuntimeExports.jsx(l.Provider$1,{...p,children:i.jsxRuntimeExports.jsx(l.Config,{...x,children:i.jsxRuntimeExports.jsx(l.Provider$2,{...d,children:i.jsxRuntimeExports.jsx(l.Provider$3,{url:r??bt,enabled:n,children:i.jsxRuntimeExports.jsx(l.Provider$4,{workerKey:"vis",children:i.jsxRuntimeExports.jsx(t.Provider$1,{...m,children:i.jsxRuntimeExports.jsx(l.Aggregator,{children:i.jsxRuntimeExports.jsx(t.Provider$2,{connParams:s,children:i.jsxRuntimeExports.jsx(t.AliasProvider,{...j,children:i.jsxRuntimeExports.jsx(t.Provider$3,{children:i.jsxRuntimeExports.jsx(l.Provider,{theme:o,toggleTheme:c,setTheme:u,children:i.jsxRuntimeExports.jsx(t.StateProvider,{children:e})})})})})})})})})})})}),yt=Object.freeze(Object.defineProperty({__proto__:null,Provider:gt},Symbol.toStringTag,{value:"Module"})),Rt=({timeRange:e})=>{const s=new a.TimeStamp(e.start),n=s.isToday?"time":"dateTime",r=new a.TimeStamp(e.end),o=r.equals(a.TimeStamp.MAX),c=r.span(s)<a.TimeSpan.DAY?"time":"dateTime";return i.jsxRuntimeExports.jsxs(h.Space,{direction:"x",size:"small",className:a.CSS(a.CSS.B("time-range-chip")),align:"center",children:[s.isToday&&i.jsxRuntimeExports.jsx(l.Text,{level:"small",children:"Today"}),i.jsxRuntimeExports.jsx(l.DateTime,{level:"small",displayTZ:"local",format:n,children:s}),i.jsxRuntimeExports.jsx(l.n0.Arrow.Right,{color:"var(--pluto-text-color)"}),o?i.jsxRuntimeExports.jsx(l.Text,{level:"small",children:"Now"}):i.jsxRuntimeExports.jsx(l.DateTime,{level:"small",displayTZ:"local",format:c,children:r})]})},Tt=[{key:"color",name:"Color",width:50,render:e=>i.jsxRuntimeExports.jsx(l.n0.Circle,{style:{fontSize:10,marginLeft:10,marginRight:30},color:e.entry.color})},{key:"name",name:"Name"}],ht=e=>{const s=t.use$3();return i.jsxRuntimeExports.jsx(t.Multiple$1,{...e,searcher:s==null?void 0:s.labels,columns:Tt,renderTag:n=>i.jsxRuntimeExports.jsx(t.Tag,{color:n.entry.color,children:n.entry.name})})},_t=Object.freeze(Object.defineProperty({__proto__:null,SelectLabels:ht,TimeRangeChip:Rt},Symbol.toStringTag,{value:"Module"}));exports.Aether=l.main;exports.Divider=l.Divider$1;exports.Dropdown=l.Dropdown;exports.Haul=l.Haul;exports.Worker=l.Context$1;exports.compareArrayDeps=l.compareArrayDeps;exports.componentRenderProp=l.componentRenderProp;exports.isRenderProp=l.isRenderProp;exports.useAsyncEffect=l.useAsyncEffect;exports.useClickOutside=l.useClickOutside;exports.useCombinedRefs=l.useCombinedRefs;exports.useCombinedStateAndRef=l.useCombinedStateAndRef;exports.useEffectCompare=l.useEffectCompare;exports.useMemoCompare=l.useMemoCompare;exports.useMemoDeepEqualProps=l.useMemoDeepEqualProps;exports.useResize=l.useResize;exports.useStateRef=l.useStateRef;exports.useSyncedRef=l.useSyncedRef;exports.CSS=a.CSS;exports.newBEM=a.newBEM;exports.Header=N.external;exports.state=P.state;exports.Generic=h.Generic;exports.Canvas=t.Canvas;exports.Eraser=t.use$4;exports.Line=t.Line$1;exports.Measure=t.Measure$1;exports.PID=t.registry;exports.Rule=t.Rule$1;exports.Synnax=t.Provider$4;exports.Tag=t.Tag$1;exports.Telem=t.Provider$5;exports.Tree=t.Tree;exports.createFilterTransform=t.createFilterTransform;exports.fuseFilter=t.fuseFilter;exports.useDebouncedCallback=t.useDebouncedCallback;exports.useTransforms=t.useTransforms;exports.Align=me.external;exports.Button=je.external;exports.Color=fe.external;exports.createHexOpacityVariants=X.createHexOpacityVariants;exports.unitProperty=X.unitProperty;exports.Input=Se.external;exports.List=Ee.external;exports.Menu=be.external;exports.Tabs=ge.external;exports.Text=ye.external;exports.Theming=Re.external;exports.Triggers=W.external;exports.Video=Te.Video;exports.telem=he.external;exports.Accordion=Ae;exports.Channel=Qe;exports.Control=Et;exports.Diagram=pt;exports.LinePlot=Ve;exports.Mosaic=it;exports.Nav=ot;exports.OS=xt;exports.Pluto=yt;exports.Ranger=_t;exports.Resize=Pe;exports.Select=Be;exports.Status=Ce;exports.Table=jt;exports.TableCell=ft;exports.Tooltip=ve;exports.Value=St;exports.Viewport=He;
|
|
1175
2
|
//# sourceMappingURL=index.cjs.map
|