@modelform/react-native 0.2.0 → 0.3.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/index.js CHANGED
@@ -189,7 +189,13 @@
189
189
 
190
190
 
191
191
 
192
- var _chunkM5R44SAFjs = require('./chunk-M5R44SAF.js');
192
+
193
+
194
+
195
+
196
+
197
+
198
+ var _chunkHZEXKGDSjs = require('./chunk-HZEXKGDS.js');
193
199
 
194
200
  // src/ui/theme.tsx
195
201
  var _react = require('react');
@@ -379,7 +385,7 @@ function DashboardProvider({ dashboard, resolve, refreshKey: externalKey = 0, on
379
385
  if (!dashboard.refresh) return;
380
386
  let ms;
381
387
  try {
382
- ms = _chunkM5R44SAFjs.parseDuration.call(void 0, dashboard.refresh);
388
+ ms = _chunkHZEXKGDSjs.parseDuration.call(void 0, dashboard.refresh);
383
389
  } catch (e2) {
384
390
  return;
385
391
  }
@@ -387,7 +393,7 @@ function DashboardProvider({ dashboard, resolve, refreshKey: externalKey = 0, on
387
393
  return () => clearInterval(id);
388
394
  }, [dashboard.refresh, refresh]);
389
395
  const refreshKey = tick + externalKey;
390
- const range3 = _react.useMemo.call(void 0, () => _chunkM5R44SAFjs.parseRange.call(void 0, rawRange), [rawRange, refreshKey]);
396
+ const range3 = _react.useMemo.call(void 0, () => _chunkHZEXKGDSjs.parseRange.call(void 0, rawRange), [rawRange, refreshKey]);
391
397
  const shared = _react.useMemo.call(void 0, () => /* @__PURE__ */ new Map(), [range3, vars.variables, vars.variableInfo]);
392
398
  const value = _react.useMemo.call(void 0,
393
399
  () => ({
@@ -424,8 +430,8 @@ function DashboardProvider({ dashboard, resolve, refreshKey: externalKey = 0, on
424
430
  ] });
425
431
  }
426
432
  function useDashboardVariables(dashboard, resolve, rawRange) {
427
- const [state, setState] = _react.useState.call(void 0, () => ({ values: _chunkM5R44SAFjs.initialVariableValues.call(void 0, dashboard), options: {}, errors: {} }));
428
- const [resolving, setResolving] = _react.useState.call(void 0, () => !!resolve && _chunkM5R44SAFjs.refreshedVariables.call(void 0, dashboard, "load").length > 0);
433
+ const [state, setState] = _react.useState.call(void 0, () => ({ values: _chunkHZEXKGDSjs.initialVariableValues.call(void 0, dashboard), options: {}, errors: {} }));
434
+ const [resolving, setResolving] = _react.useState.call(void 0, () => !!resolve && _chunkHZEXKGDSjs.refreshedVariables.call(void 0, dashboard, "load").length > 0);
429
435
  const [runKey, setRunKey] = _react.useState.call(void 0, 0);
430
436
  const pending = _react.useRef.call(void 0, /* @__PURE__ */ new Set());
431
437
  const stateRef = _react.useRef.call(void 0, state);
@@ -458,7 +464,7 @@ function useDashboardVariables(dashboard, resolve, rawRange) {
458
464
  setState(update);
459
465
  setResolving(false);
460
466
  };
461
- _chunkM5R44SAFjs.resolveVariables.call(void 0, dashboard, { values, options, names, resolve: resolve2, range: _chunkM5R44SAFjs.parseRange.call(void 0, rawRange), signal: controller.signal }).then(
467
+ _chunkHZEXKGDSjs.resolveVariables.call(void 0, dashboard, { values, options, names, resolve: resolve2, range: _chunkHZEXKGDSjs.parseRange.call(void 0, rawRange), signal: controller.signal }).then(
462
468
  (res) => finish((s) => ({
463
469
  // Only the re-run variables change, so a pick made while this ran isn't overwritten.
464
470
  values: { ...s.values, ...Object.fromEntries([...names].filter((n) => n in res.values).map((n) => [n, res.values[n]])) },
@@ -472,11 +478,11 @@ function useDashboardVariables(dashboard, resolve, rawRange) {
472
478
  const [loadedDashboard, setLoadedDashboard] = _react.useState.call(void 0, dashboard);
473
479
  if (dashboard !== loadedDashboard) {
474
480
  setLoadedDashboard(dashboard);
475
- setState((s) => ({ ...s, values: { ..._chunkM5R44SAFjs.initialVariableValues.call(void 0, dashboard), ...s.values } }));
481
+ setState((s) => ({ ...s, values: { ..._chunkHZEXKGDSjs.initialVariableValues.call(void 0, dashboard), ...s.values } }));
476
482
  }
477
483
  _react.useEffect.call(void 0, () => {
478
- const roots = _chunkM5R44SAFjs.refreshedVariables.call(void 0, dashboard, "load");
479
- schedule([...roots, ..._chunkM5R44SAFjs.variableDependents.call(void 0, dashboard, roots)]);
484
+ const roots = _chunkHZEXKGDSjs.refreshedVariables.call(void 0, dashboard, "load");
485
+ schedule([...roots, ..._chunkHZEXKGDSjs.variableDependents.call(void 0, dashboard, roots)]);
480
486
  }, [dashboard, schedule]);
481
487
  const mounted = _react.useRef.call(void 0, false);
482
488
  _react.useEffect.call(void 0, () => {
@@ -484,17 +490,17 @@ function useDashboardVariables(dashboard, resolve, rawRange) {
484
490
  mounted.current = true;
485
491
  return;
486
492
  }
487
- const roots = _chunkM5R44SAFjs.refreshedVariables.call(void 0, dashboard, "range");
488
- schedule([...roots, ..._chunkM5R44SAFjs.variableDependents.call(void 0, dashboard, roots)]);
493
+ const roots = _chunkHZEXKGDSjs.refreshedVariables.call(void 0, dashboard, "range");
494
+ schedule([...roots, ..._chunkHZEXKGDSjs.variableDependents.call(void 0, dashboard, roots)]);
489
495
  }, [rawRange]);
490
496
  const setVariable = _react.useCallback.call(void 0,
491
497
  (name, value) => {
492
498
  setState((s) => ({ ...s, values: { ...s.values, [name]: value } }));
493
- schedule(_chunkM5R44SAFjs.variableDependents.call(void 0, dashboard, [name]));
499
+ schedule(_chunkHZEXKGDSjs.variableDependents.call(void 0, dashboard, [name]));
494
500
  },
495
501
  [dashboard, schedule]
496
502
  );
497
- const info = _react.useMemo.call(void 0, () => _chunkM5R44SAFjs.variableInfo.call(void 0, dashboard, state.options), [dashboard, state.options]);
503
+ const info = _react.useMemo.call(void 0, () => _chunkHZEXKGDSjs.variableInfo.call(void 0, dashboard, state.options), [dashboard, state.options]);
498
504
  return _react.useMemo.call(void 0,
499
505
  () => ({
500
506
  variables: state.values,
@@ -524,7 +530,7 @@ function usePanelData(panel, widthPx, enabled = true) {
524
530
  _react.useEffect.call(void 0, () => {
525
531
  if (!enabled || !request || !variablesReady) return;
526
532
  const controller = new AbortController();
527
- _chunkM5R44SAFjs.queryPanel.call(void 0, request.panel, request.options, controller.signal).then((frames) => !controller.signal.aborted && setResult({ request, frames })).catch((e) => !controller.signal.aborted && setResult({ request, frames: [], error: String(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _5 => _5.message]), () => ( e))) }));
533
+ _chunkHZEXKGDSjs.queryPanel.call(void 0, request.panel, request.options, controller.signal).then((frames) => !controller.signal.aborted && setResult({ request, frames })).catch((e) => !controller.signal.aborted && setResult({ request, frames: [], error: String(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _5 => _5.message]), () => ( e))) }));
528
534
  return () => controller.abort();
529
535
  }, [enabled, request, variablesReady]);
530
536
  if (!enabled) return IDLE;
@@ -534,7 +540,7 @@ function usePanelData(panel, widthPx, enabled = true) {
534
540
  function usePanelLinks(panel) {
535
541
  const { dashboard, variables, variableInfo: variableInfo2, range: range3, openLinks } = useDashboard();
536
542
  const resolve = _react.useCallback.call(void 0,
537
- (links, data) => _chunkM5R44SAFjs.resolveLinks.call(void 0, links, { dashboard, values: variables, info: variableInfo2, scoped: panel.scopedVars, range: range3, timezone: dashboard.timezone, data }),
543
+ (links, data) => _chunkHZEXKGDSjs.resolveLinks.call(void 0, links, { dashboard, values: variables, info: variableInfo2, scoped: panel.scopedVars, range: range3, timezone: dashboard.timezone, data }),
538
544
  [dashboard, variables, variableInfo2, panel.scopedVars, range3]
539
545
  );
540
546
  return { resolve, openLinks };
@@ -631,14 +637,14 @@ var ArrowIcon = ({ color, dir }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
631
637
  function displayExpr(expr) {
632
638
  if (expr.trim().startsWith("now")) return expr;
633
639
  try {
634
- return _chunkM5R44SAFjs.formatLocalDateTime.call(void 0, _chunkM5R44SAFjs.parseTime.call(void 0, expr));
640
+ return _chunkHZEXKGDSjs.formatLocalDateTime.call(void 0, _chunkHZEXKGDSjs.parseTime.call(void 0, expr));
635
641
  } catch (e3) {
636
642
  return expr;
637
643
  }
638
644
  }
639
645
  function tryParse(expr, roundUp, now = Date.now()) {
640
646
  try {
641
- return _chunkM5R44SAFjs.parseTime.call(void 0, expr, now, roundUp);
647
+ return _chunkHZEXKGDSjs.parseTime.call(void 0, expr, now, roundUp);
642
648
  } catch (e4) {
643
649
  return null;
644
650
  }
@@ -652,7 +658,7 @@ function endOfDay(ms) {
652
658
  return new Date(d.getFullYear(), d.getMonth(), d.getDate() + 1).getTime() - 1e3;
653
659
  }
654
660
  function resolveTo(expr) {
655
- return /^\s*\d{4}-\d{1,2}-\d{1,2}\s*$/.test(expr) ? _chunkM5R44SAFjs.formatLocalDateTime.call(void 0, endOfDay(_chunkM5R44SAFjs.parseTime.call(void 0, expr))) : expr;
661
+ return /^\s*\d{4}-\d{1,2}-\d{1,2}\s*$/.test(expr) ? _chunkHZEXKGDSjs.formatLocalDateTime.call(void 0, endOfDay(_chunkHZEXKGDSjs.parseTime.call(void 0, expr))) : expr;
656
662
  }
657
663
  function TimeRangeSheet({ visible, value, onApply, onClose }) {
658
664
  const theme = useDashTheme();
@@ -663,12 +669,12 @@ function TimeRangeSheet({ visible, value, onApply, onClose }) {
663
669
  const [now] = _react.useState.call(void 0, () => Date.now());
664
670
  const [month, setMonth] = _react.useState.call(void 0, () => new Date(_nullishCoalesce(tryParse(value.from, false), () => ( now))));
665
671
  const fromMs = tryParse(from, false, now);
666
- const toMs = tryParse(_chunkM5R44SAFjs.timeExprError.call(void 0, to) ? to : resolveTo(to), true, now);
667
- const fromError = _chunkM5R44SAFjs.timeExprError.call(void 0, from);
668
- const toError = _chunkM5R44SAFjs.timeExprError.call(void 0, to);
672
+ const toMs = tryParse(_chunkHZEXKGDSjs.timeExprError.call(void 0, to) ? to : resolveTo(to), true, now);
673
+ const fromError = _chunkHZEXKGDSjs.timeExprError.call(void 0, from);
674
+ const toError = _chunkHZEXKGDSjs.timeExprError.call(void 0, to);
669
675
  const orderError = fromMs != null && toMs != null && fromMs >= toMs ? "\u201CTo\u201D must be after \u201CFrom\u201D" : null;
670
676
  const valid = !fromError && !toError && !orderError;
671
- const normalize = (expr) => expr.trim().startsWith("now") ? expr.trim() : _chunkM5R44SAFjs.formatLocalDateTime.call(void 0, _chunkM5R44SAFjs.parseTime.call(void 0, expr));
677
+ const normalize = (expr) => expr.trim().startsWith("now") ? expr.trim() : _chunkHZEXKGDSjs.formatLocalDateTime.call(void 0, _chunkHZEXKGDSjs.parseTime.call(void 0, expr));
672
678
  const apply = () => {
673
679
  if (!valid) return;
674
680
  onApply({ from: normalize(from), to: normalize(resolveTo(to)) });
@@ -677,14 +683,14 @@ function TimeRangeSheet({ visible, value, onApply, onClose }) {
677
683
  const pickDay = (day) => {
678
684
  const end = endOfDay(day);
679
685
  if (active === "from") {
680
- setFrom(_chunkM5R44SAFjs.formatLocalDateTime.call(void 0, day));
681
- if (toMs == null || toMs <= day) setTo(_chunkM5R44SAFjs.formatLocalDateTime.call(void 0, end));
686
+ setFrom(_chunkHZEXKGDSjs.formatLocalDateTime.call(void 0, day));
687
+ if (toMs == null || toMs <= day) setTo(_chunkHZEXKGDSjs.formatLocalDateTime.call(void 0, end));
682
688
  setActive("to");
683
689
  } else if (fromMs != null && day < startOfDay(fromMs)) {
684
- setFrom(_chunkM5R44SAFjs.formatLocalDateTime.call(void 0, day));
685
- setTo(_chunkM5R44SAFjs.formatLocalDateTime.call(void 0, end));
690
+ setFrom(_chunkHZEXKGDSjs.formatLocalDateTime.call(void 0, day));
691
+ setTo(_chunkHZEXKGDSjs.formatLocalDateTime.call(void 0, end));
686
692
  } else {
687
- setTo(_chunkM5R44SAFjs.formatLocalDateTime.call(void 0, end));
693
+ setTo(_chunkHZEXKGDSjs.formatLocalDateTime.call(void 0, end));
688
694
  }
689
695
  };
690
696
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -720,7 +726,7 @@ function TimeRangeSheet({ visible, value, onApply, onClose }) {
720
726
  }
721
727
  ),
722
728
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles3.sectionTitle, { color: theme.textSecondary }], children: "Relative ranges" }),
723
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: styles3.chips, children: _chunkM5R44SAFjs.RELATIVE_RANGES.map((r) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
729
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: styles3.chips, children: _chunkHZEXKGDSjs.RELATIVE_RANGES.map((r) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
724
730
  Chip,
725
731
  {
726
732
  label: r.label,
@@ -864,17 +870,17 @@ var FilterIcon = ({ color }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _re
864
870
  var CalendarIcon = ({ color }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg2.default, { width: 18, height: 18, viewBox: "0 0 24 24", fill: "none", stroke: color, strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Path, { d: "M5 5h14a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zM4 10h16M8 3v4M16 3v4" }) });
865
871
  var ChevronIcon = ({ color, open }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg2.default, { width: 16, height: 16, viewBox: "0 0 24 24", fill: "none", stroke: color, strokeWidth: 2.2, strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Path, { d: open ? "M6 15l6-6 6 6" : "M6 9l6 6 6-6" }) });
866
872
  var CheckIcon = ({ color }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg2.default, { width: 18, height: 18, viewBox: "0 0 24 24", fill: "none", stroke: color, strokeWidth: 2.4, strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Path, { d: "M5 12.5l4.5 4.5L19 7" }) });
867
- function DashboardToolbar({ presets = _chunkM5R44SAFjs.TIME_PRESETS }) {
873
+ function DashboardToolbar({ presets = _chunkHZEXKGDSjs.TIME_PRESETS }) {
868
874
  const theme = useDashTheme();
869
875
  const { dashboard, rawRange, setRawRange, variables, variableErrors } = useDashboard();
870
876
  const [filtersOpen, setFiltersOpen] = _react.useState.call(void 0, false);
871
877
  const [rangeOpen, setRangeOpen] = _react.useState.call(void 0, false);
872
878
  const [rangeKey, setRangeKey] = _react.useState.call(void 0, 0);
873
879
  const custom = !presets.some((p) => rawRange.from === p.from && rawRange.to === p.to);
874
- const vars = _chunkM5R44SAFjs.visibleVariables.call(void 0, dashboard);
880
+ const vars = _chunkHZEXKGDSjs.visibleVariables.call(void 0, dashboard);
875
881
  const active = vars.filter((v) => {
876
882
  const cur = variables[v.name];
877
- return v.includeAll && cur != null && !(Array.isArray(cur) ? cur.includes(_chunkM5R44SAFjs.ALL) : cur === _chunkM5R44SAFjs.ALL);
883
+ return v.includeAll && cur != null && !(Array.isArray(cur) ? cur.includes(_chunkHZEXKGDSjs.ALL) : cur === _chunkHZEXKGDSjs.ALL);
878
884
  }).length;
879
885
  const hasError = vars.some((v) => variableErrors[v.name]);
880
886
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { style: styles4.toolbar, children: [
@@ -900,7 +906,7 @@ function DashboardToolbar({ presets = _chunkM5R44SAFjs.TIME_PRESETS }) {
900
906
  setRangeOpen(true);
901
907
  },
902
908
  accessibilityRole: "button",
903
- accessibilityLabel: custom ? `Time range, ${_chunkM5R44SAFjs.describeRange.call(void 0, rawRange)}` : "Custom time range",
909
+ accessibilityLabel: custom ? `Time range, ${_chunkHZEXKGDSjs.describeRange.call(void 0, rawRange)}` : "Custom time range",
904
910
  style: ({ pressed }) => [
905
911
  custom ? styles4.rangeButton : styles4.iconButton,
906
912
  { borderColor: custom ? theme.accent : theme.border, backgroundColor: theme.surface },
@@ -908,7 +914,7 @@ function DashboardToolbar({ presets = _chunkM5R44SAFjs.TIME_PRESETS }) {
908
914
  ],
909
915
  children: [
910
916
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CalendarIcon, { color: custom ? theme.accent : theme.textSecondary }),
911
- custom && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles4.rangeLabel, { color: theme.accent }], numberOfLines: 1, children: _chunkM5R44SAFjs.describeRange.call(void 0, rawRange) })
917
+ custom && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles4.rangeLabel, { color: theme.accent }], numberOfLines: 1, children: _chunkHZEXKGDSjs.describeRange.call(void 0, rawRange) })
912
918
  ]
913
919
  }
914
920
  ),
@@ -964,14 +970,14 @@ function FilterSection({ variable: v, open, onToggle }) {
964
970
  const theme = useDashTheme();
965
971
  const { variables, variableInfo: variableInfo2, variableErrors, variablesReady, setVariable } = useDashboard();
966
972
  const current = variables[v.name];
967
- const summary = _chunkM5R44SAFjs.valueText.call(void 0, current, variableInfo2[v.name]) || (variablesReady ? "None" : "\u2026");
968
- const options = [...v.includeAll ? [{ text: "All", value: _chunkM5R44SAFjs.ALL }] : [], ..._nullishCoalesce(_optionalChain([variableInfo2, 'access', _9 => _9[v.name], 'optionalAccess', _10 => _10.options]), () => ( []))];
973
+ const summary = _chunkHZEXKGDSjs.valueText.call(void 0, current, variableInfo2[v.name]) || (variablesReady ? "None" : "\u2026");
974
+ const options = [...v.includeAll ? [{ text: "All", value: _chunkHZEXKGDSjs.ALL }] : [], ..._nullishCoalesce(_optionalChain([variableInfo2, 'access', _9 => _9[v.name], 'optionalAccess', _10 => _10.options]), () => ( []))];
969
975
  const error = variableErrors[v.name];
970
976
  const choose = (value, selected) => {
971
- if (v.multi && value !== _chunkM5R44SAFjs.ALL) {
972
- const cur = (Array.isArray(current) ? current : [current]).filter((c) => c && c !== _chunkM5R44SAFjs.ALL);
977
+ if (v.multi && value !== _chunkHZEXKGDSjs.ALL) {
978
+ const cur = (Array.isArray(current) ? current : [current]).filter((c) => c && c !== _chunkHZEXKGDSjs.ALL);
973
979
  const next = selected ? cur.filter((c) => c !== value) : [...cur, value];
974
- setVariable(v.name, next.length ? next : [_chunkM5R44SAFjs.ALL]);
980
+ setVariable(v.name, next.length ? next : [_chunkHZEXKGDSjs.ALL]);
975
981
  } else {
976
982
  setVariable(v.name, v.multi ? [value] : value);
977
983
  if (!v.multi) onToggle();
@@ -1111,7 +1117,7 @@ function barCategory(panel, frame) {
1111
1117
  }
1112
1118
  function categoryLabels(field) {
1113
1119
  if (field.type !== "time") return field.values.map((v) => v == null ? "" : String(v));
1114
- const times = field.values.map((v) => v == null ? null : _chunkM5R44SAFjs.toMillis.call(void 0, v));
1120
+ const times = field.values.map((v) => v == null ? null : _chunkHZEXKGDSjs.toMillis.call(void 0, v));
1115
1121
  let step = Infinity;
1116
1122
  times.forEach((t, i) => {
1117
1123
  const prev = times[i - 1];
@@ -1157,19 +1163,19 @@ function formatTooltipTime(t) {
1157
1163
  return new Date(t).toLocaleString(void 0, { month: "short", day: "numeric", hour: "2-digit", minute: "2-digit" });
1158
1164
  }
1159
1165
  function styledSeries(panel, frames, scheme) {
1160
- return styleSeries(panel, _chunkM5R44SAFjs.toSeries.call(void 0, frames), frames, scheme);
1166
+ return styleSeries(panel, _chunkHZEXKGDSjs.toSeries.call(void 0, frames), frames, scheme);
1161
1167
  }
1162
1168
  function styledXYSeries(panel, frames, scheme) {
1163
- const { series, x } = _chunkM5R44SAFjs.toXYSeries.call(void 0, frames, _optionalChain([panel, 'access', _18 => _18.options, 'optionalAccess', _19 => _19.xField]) || void 0);
1164
- const xConfig = x ? _chunkM5R44SAFjs.resolveFieldConfig.call(void 0, panel, x.field, x.frame, x.field.name) : {};
1169
+ const { series, x } = _chunkHZEXKGDSjs.toXYSeries.call(void 0, frames, _optionalChain([panel, 'access', _18 => _18.options, 'optionalAccess', _19 => _19.xField]) || void 0);
1170
+ const xConfig = x ? _chunkHZEXKGDSjs.resolveFieldConfig.call(void 0, panel, x.field, x.frame, x.field.name) : {};
1165
1171
  return { series: styleSeries(panel, series, frames, scheme), xConfig };
1166
1172
  }
1167
1173
  function styleSeries(panel, series, frames, scheme) {
1168
1174
  const frameOf = /* @__PURE__ */ new Map();
1169
1175
  frames.forEach((f) => f.fields.forEach((field) => frameOf.set(field, f)));
1170
1176
  return series.map((s, i) => {
1171
- const config = _chunkM5R44SAFjs.resolveFieldConfig.call(void 0, panel, s.field, frameOf.get(s.field), s.name);
1172
- return { ...s, name: _nullishCoalesce(config.displayName, () => ( s.name)), config, color: _chunkM5R44SAFjs.seriesColor.call(void 0, i, scheme, config) };
1177
+ const config = _chunkHZEXKGDSjs.resolveFieldConfig.call(void 0, panel, s.field, frameOf.get(s.field), s.name);
1178
+ return { ...s, name: _nullishCoalesce(config.displayName, () => ( s.name)), config, color: _chunkHZEXKGDSjs.seriesColor.call(void 0, i, scheme, config) };
1173
1179
  });
1174
1180
  }
1175
1181
  function reducedValues(panel, frames, scheme) {
@@ -1177,30 +1183,30 @@ function reducedValues(panel, frames, scheme) {
1177
1183
  const out = [];
1178
1184
  const multiple = frames.length > 1;
1179
1185
  frames.forEach(
1180
- (frame, fi) => _chunkM5R44SAFjs.numberFields.call(void 0, frame).forEach((field) => {
1181
- const raw = _chunkM5R44SAFjs.fieldDisplayName.call(void 0, field, frame, multiple);
1182
- const config = _chunkM5R44SAFjs.resolveFieldConfig.call(void 0, panel, field, frame, raw);
1186
+ (frame, fi) => _chunkHZEXKGDSjs.numberFields.call(void 0, frame).forEach((field) => {
1187
+ const raw = _chunkHZEXKGDSjs.fieldDisplayName.call(void 0, field, frame, multiple);
1188
+ const config = _chunkHZEXKGDSjs.resolveFieldConfig.call(void 0, panel, field, frame, raw);
1183
1189
  const values = field.values.map((v) => v == null ? null : Number(v));
1184
- const value = _chunkM5R44SAFjs.reduce.call(void 0, values, calc);
1185
- const color = _chunkM5R44SAFjs.seriesColor.call(void 0, out.length, scheme, config);
1186
- const step = _chunkM5R44SAFjs.thresholdStep.call(void 0, value, config);
1187
- const mapped = _chunkM5R44SAFjs.mappedResult.call(void 0, value, config);
1190
+ const value = _chunkHZEXKGDSjs.reduce.call(void 0, values, calc);
1191
+ const color = _chunkHZEXKGDSjs.seriesColor.call(void 0, out.length, scheme, config);
1192
+ const step = _chunkHZEXKGDSjs.thresholdStep.call(void 0, value, config);
1193
+ const mapped = _chunkHZEXKGDSjs.mappedResult.call(void 0, value, config);
1188
1194
  out.push({
1189
1195
  key: `${fi}/${field.name}/${JSON.stringify(_nullishCoalesce(field.labels, () => ( {})))}`,
1190
1196
  name: _nullishCoalesce(config.displayName, () => ( raw)),
1191
1197
  value,
1192
- text: _optionalChain([mapped, 'optionalAccess', _24 => _24.text]) || _chunkM5R44SAFjs.formatValue.call(void 0, value, config),
1198
+ text: _optionalChain([mapped, 'optionalAccess', _24 => _24.text]) || _chunkHZEXKGDSjs.formatValue.call(void 0, value, config),
1193
1199
  mapped,
1194
1200
  config,
1195
1201
  color,
1196
- stateColor: _optionalChain([mapped, 'optionalAccess', _25 => _25.color]) ? _chunkM5R44SAFjs.resolveColor.call(void 0, mapped.color, color) : step ? _chunkM5R44SAFjs.resolveColor.call(void 0, step.color, color) : color,
1202
+ stateColor: _optionalChain([mapped, 'optionalAccess', _25 => _25.color]) ? _chunkHZEXKGDSjs.resolveColor.call(void 0, mapped.color, color) : step ? _chunkHZEXKGDSjs.resolveColor.call(void 0, step.color, color) : color,
1197
1203
  sparkline: values,
1198
1204
  field,
1199
1205
  frame
1200
1206
  });
1201
1207
  })
1202
1208
  );
1203
- return _chunkM5R44SAFjs.uniqueNames.call(void 0, out, (v) => v.field, frames);
1209
+ return _chunkHZEXKGDSjs.uniqueNames.call(void 0, out, (v) => v.field, frames);
1204
1210
  }
1205
1211
  function yDomain(series, includeZero) {
1206
1212
  let min = Infinity;
@@ -1261,22 +1267,22 @@ function NoData({ message = "No data" }) {
1261
1267
  }
1262
1268
  function rowTooltipItems(panel, frame, row, multiple) {
1263
1269
  return frame.fields.flatMap((f) => {
1264
- const name = _chunkM5R44SAFjs.fieldDisplayName.call(void 0, f, frame, multiple);
1265
- const config = _chunkM5R44SAFjs.resolveFieldConfig.call(void 0, panel, f, frame, name);
1270
+ const name = _chunkHZEXKGDSjs.fieldDisplayName.call(void 0, f, frame, multiple);
1271
+ const config = _chunkHZEXKGDSjs.resolveFieldConfig.call(void 0, panel, f, frame, name);
1266
1272
  if (_optionalChain([config, 'access', _36 => _36.custom, 'optionalAccess', _37 => _37.hideFrom, 'optionalAccess', _38 => _38.tooltip])) return [];
1267
1273
  const v = f.values[row];
1268
- const value = v == null ? "\u2014" : f.type === "number" ? _chunkM5R44SAFjs.formatDisplay.call(void 0, Number(v), config) : f.type === "time" ? formatTooltipTime(_chunkM5R44SAFjs.toMillis.call(void 0, v)) : String(v);
1274
+ const value = v == null ? "\u2014" : f.type === "number" ? _chunkHZEXKGDSjs.formatDisplay.call(void 0, Number(v), config) : f.type === "time" ? formatTooltipTime(_chunkHZEXKGDSjs.toMillis.call(void 0, v)) : String(v);
1269
1275
  return [{ name: _nullishCoalesce(config.displayName, () => ( name)), value }];
1270
1276
  });
1271
1277
  }
1272
1278
  function rowLinks(panel, frame, row, multiple, resolve) {
1273
1279
  return mergeLinks(
1274
1280
  frame.fields.flatMap((f) => {
1275
- const name = _chunkM5R44SAFjs.fieldDisplayName.call(void 0, f, frame, multiple);
1276
- const config = _chunkM5R44SAFjs.resolveFieldConfig.call(void 0, panel, f, frame, name);
1281
+ const name = _chunkHZEXKGDSjs.fieldDisplayName.call(void 0, f, frame, multiple);
1282
+ const config = _chunkHZEXKGDSjs.resolveFieldConfig.call(void 0, panel, f, frame, name);
1277
1283
  if (!_optionalChain([config, 'access', _39 => _39.links, 'optionalAccess', _40 => _40.length])) return [];
1278
1284
  const v = f.values[row];
1279
- const text = v == null ? void 0 : f.type === "number" ? _chunkM5R44SAFjs.formatDisplay.call(void 0, Number(v), config) : String(v);
1285
+ const text = v == null ? void 0 : f.type === "number" ? _chunkHZEXKGDSjs.formatDisplay.call(void 0, Number(v), config) : String(v);
1280
1286
  return [{ name: _nullishCoalesce(config.displayName, () => ( name)), links: resolve(config.links, { frame, row, field: f, fieldName: _nullishCoalesce(config.displayName, () => ( name)), value: v, text }) }];
1281
1287
  })
1282
1288
  );
@@ -1289,7 +1295,7 @@ function valueLinks(panel, v, resolve) {
1289
1295
  fieldName: v.name,
1290
1296
  seriesName: v.name,
1291
1297
  value: v.value,
1292
- text: _chunkM5R44SAFjs.formatValue.call(void 0, v.value, v.config),
1298
+ text: _chunkHZEXKGDSjs.formatValue.call(void 0, v.value, v.config),
1293
1299
  calc: _nullishCoalesce(_optionalChain([panel, 'access', _44 => _44.options, 'optionalAccess', _45 => _45.reduceOptions, 'optionalAccess', _46 => _46.calcs, 'optionalAccess', _47 => _47[0]]), () => ( "lastNotNull"))
1294
1300
  });
1295
1301
  }
@@ -1434,15 +1440,15 @@ function NumberInput({ panel, value, onChange }) {
1434
1440
  }
1435
1441
  function DurationInput({ panel, value, onChange }) {
1436
1442
  const theme = useDashTheme();
1437
- const toDigits = (v) => typeof v === "number" ? _chunkM5R44SAFjs.formatClock.call(void 0, v).replace(/\D/g, "").replace(/^0+/, "") : "";
1443
+ const toDigits = (v) => typeof v === "number" ? _chunkHZEXKGDSjs.formatClock.call(void 0, v).replace(/\D/g, "").replace(/^0+/, "") : "";
1438
1444
  const [digits, setDigits] = _react.useState.call(void 0, toDigits(value));
1439
1445
  const [syncedValue, setSyncedValue] = _react.useState.call(void 0, value);
1440
1446
  if (value !== syncedValue) {
1441
1447
  setSyncedValue(value);
1442
- setDigits((d) => value == null ? _chunkM5R44SAFjs.parseClockDigits.call(void 0, d) == null ? d : "" : _chunkM5R44SAFjs.parseClockDigits.call(void 0, d) === value ? d : toDigits(value));
1448
+ setDigits((d) => value == null ? _chunkHZEXKGDSjs.parseClockDigits.call(void 0, d) == null ? d : "" : _chunkHZEXKGDSjs.parseClockDigits.call(void 0, d) === value ? d : toDigits(value));
1443
1449
  }
1444
1450
  const masked = digits ? maskClock(digits) : "";
1445
- const invalid = !!digits && _chunkM5R44SAFjs.parseClockDigits.call(void 0, digits) == null;
1451
+ const invalid = !!digits && _chunkHZEXKGDSjs.parseClockDigits.call(void 0, digits) == null;
1446
1452
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: [styles6.numberField, { borderColor: invalid ? theme.danger : theme.border }], children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1447
1453
  _reactnative.TextInput,
1448
1454
  {
@@ -1450,7 +1456,7 @@ function DurationInput({ panel, value, onChange }) {
1450
1456
  onChangeText: (t) => {
1451
1457
  const d = t.replace(/\D/g, "").replace(/^0+/, "").slice(0, 6);
1452
1458
  setDigits(d);
1453
- onChange(_chunkM5R44SAFjs.parseClockDigits.call(void 0, d));
1459
+ onChange(_chunkHZEXKGDSjs.parseClockDigits.call(void 0, d));
1454
1460
  },
1455
1461
  keyboardType: "number-pad",
1456
1462
  placeholder: _nullishCoalesce(panel.options.placeholder, () => ( "00:00.00")),
@@ -1636,10 +1642,10 @@ function SuggestTextInput({ panel, value, onChange }) {
1636
1642
  }, [store, metric, suggestWith]);
1637
1643
  const withText = suggestWith ? form.value(suggestWith) : null;
1638
1644
  const own = entries.filter((e) => e.metric === metric);
1639
- const scoped = suggestWith && typeof withText === "string" && withText.trim() ? _chunkM5R44SAFjs.entriesSavedWith.call(void 0, entries, metric, suggestWith, withText) : [];
1645
+ const scoped = suggestWith && typeof withText === "string" && withText.trim() ? _chunkHZEXKGDSjs.entriesSavedWith.call(void 0, entries, metric, suggestWith, withText) : [];
1640
1646
  const query = typed ? text : "";
1641
- const fromScoped = _chunkM5R44SAFjs.textSuggestions.call(void 0, scoped, query);
1642
- const suggestions = (fromScoped.length ? fromScoped : _chunkM5R44SAFjs.textSuggestions.call(void 0, own, query)).filter((s) => s.toLowerCase() !== text.trim().toLowerCase());
1647
+ const fromScoped = _chunkHZEXKGDSjs.textSuggestions.call(void 0, scoped, query);
1648
+ const suggestions = (fromScoped.length ? fromScoped : _chunkHZEXKGDSjs.textSuggestions.call(void 0, own, query)).filter((s) => s.toLowerCase() !== text.trim().toLowerCase());
1643
1649
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { style: styles6.suggest, children: [
1644
1650
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1645
1651
  _reactnative.TextInput,
@@ -1678,7 +1684,7 @@ function CounterInput({ panel }) {
1678
1684
  const { metric, increment = 1, unit } = panel.options;
1679
1685
  const [today, setToday] = _react.useState.call(void 0, 0);
1680
1686
  _react.useEffect.call(void 0, () => {
1681
- const load = () => store.list({ metrics: [metric], from: _chunkM5R44SAFjs.startOf.call(void 0, /* @__PURE__ */ new Date(), "d").getTime() }).then((rows) => setToday(rows.reduce((a, e) => a + (_nullishCoalesce(e.value, () => ( 0))), 0)));
1687
+ const load = () => store.list({ metrics: [metric], from: _chunkHZEXKGDSjs.startOf.call(void 0, /* @__PURE__ */ new Date(), "d").getTime() }).then((rows) => setToday(rows.reduce((a, e) => a + (_nullishCoalesce(e.value, () => ( 0))), 0)));
1682
1688
  load();
1683
1689
  return store.subscribe(load);
1684
1690
  }, [store, metric]);
@@ -1880,7 +1886,7 @@ function BarGaugePanel({ panel, frames }) {
1880
1886
  const min = _nullishCoalesce(v.config.min, () => ( 0));
1881
1887
  const max = _nullishCoalesce(v.config.max, () => ( Math.max(...values.map((o) => _nullishCoalesce(o.value, () => ( 0))), 1)));
1882
1888
  const frac = v.value == null ? 0 : Math.min(1, Math.max(0, (v.value - min) / (max - min || 1)));
1883
- const color = v.config.thresholds || _optionalChain([v, 'access', _72 => _72.mapped, 'optionalAccess', _73 => _73.color]) ? v.stateColor : _chunkM5R44SAFjs.resolveColor.call(void 0, _optionalChain([v, 'access', _74 => _74.config, 'access', _75 => _75.color, 'optionalAccess', _76 => _76.fixedColor]), v.color);
1889
+ const color = v.config.thresholds || _optionalChain([v, 'access', _72 => _72.mapped, 'optionalAccess', _73 => _73.color]) ? v.stateColor : _chunkHZEXKGDSjs.resolveColor.call(void 0, _optionalChain([v, 'access', _74 => _74.config, 'access', _75 => _75.color, 'optionalAccess', _76 => _76.fixedColor]), v.color);
1884
1890
  const hasLinks = !!_optionalChain([v, 'access', _77 => _77.config, 'access', _78 => _78.links, 'optionalAccess', _79 => _79.length]);
1885
1891
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1886
1892
  _reactnative.Pressable,
@@ -2061,7 +2067,7 @@ function geomapLayers(panel, frames, scheme, retina = false, gazetteers = {}) {
2061
2067
  const color = _nullishCoalesce(style.color, () => ( {}));
2062
2068
  const size = _nullishCoalesce(style.size, () => ( {}));
2063
2069
  const text = style.text;
2064
- const fixedColor = _chunkM5R44SAFjs.resolveColor.call(void 0, _nullishCoalesce(color.fixed, () => ( "dark-green")), "#37872D");
2070
+ const fixedColor = _chunkHZEXKGDSjs.resolveColor.call(void 0, _nullishCoalesce(color.fixed, () => ( "dark-green")), "#37872D");
2065
2071
  const heat = layer.type === "heatmap";
2066
2072
  const weight = _nullishCoalesce(config.weight, () => ( {}));
2067
2073
  const legend = [];
@@ -2073,14 +2079,14 @@ function geomapLayers(panel, frames, scheme, retina = false, gazetteers = {}) {
2073
2079
  let { xs, ys } = located;
2074
2080
  if (layer.type === "lastPointTracker" && rows.length) [rows, xs, ys] = [rows.slice(-1), xs.slice(-1), ys.slice(-1)];
2075
2081
  const find = (field) => field ? fieldByName(frame, field, multiple) : void 0;
2076
- const configOf = (f) => _chunkM5R44SAFjs.resolveFieldConfig.call(void 0, panel, f, frame, _chunkM5R44SAFjs.fieldDisplayName.call(void 0, f, frame, multiple));
2082
+ const configOf = (f) => _chunkHZEXKGDSjs.resolveFieldConfig.call(void 0, panel, f, frame, _chunkHZEXKGDSjs.fieldDisplayName.call(void 0, f, frame, multiple));
2077
2083
  let colors = rows.map(() => fixedColor);
2078
2084
  const colorField = !heat ? find(color.field) : void 0;
2079
2085
  if (colorField) {
2080
2086
  const cConfig = configOf(colorField);
2081
2087
  const values = rows.map((i) => num(colorField.values[i]));
2082
2088
  const extent = range(values);
2083
- colors = values.map((v) => _chunkM5R44SAFjs.valueColor.call(void 0, v, cConfig, fixedColor, extent));
2089
+ colors = values.map((v) => _chunkHZEXKGDSjs.valueColor.call(void 0, v, cConfig, fixedColor, extent));
2084
2090
  if (showsLegend(layer) && legend.length === 0) legend.push(...thresholdLegend(`${key}/${frames.indexOf(frame)}`, cConfig, fixedColor));
2085
2091
  }
2086
2092
  const dim = heat ? weight : size;
@@ -2138,8 +2144,8 @@ function thresholdLegend(key, config, fallback) {
2138
2144
  if (steps.length < 2) return [];
2139
2145
  return steps.map((s, i) => ({
2140
2146
  key: `${key}/${i}`,
2141
- name: s.value == null ? `< ${_chunkM5R44SAFjs.formatValue.call(void 0, steps[i + 1].value, config)}` : `${_chunkM5R44SAFjs.formatValue.call(void 0, s.value, config)}+`,
2142
- color: _chunkM5R44SAFjs.resolveColor.call(void 0, s.color, fallback)
2147
+ name: s.value == null ? `< ${_chunkHZEXKGDSjs.formatValue.call(void 0, steps[i + 1].value, config)}` : `${_chunkHZEXKGDSjs.formatValue.call(void 0, s.value, config)}+`,
2148
+ color: _chunkHZEXKGDSjs.resolveColor.call(void 0, s.color, fallback)
2143
2149
  }));
2144
2150
  }
2145
2151
  var isDataLayer = (type) => type === "markers" || type === "heatmap" || type === "route" || type === "lastPointTracker";
@@ -2149,15 +2155,15 @@ function gazetteerPaths(panel, frames) {
2149
2155
  for (const layer of _nullishCoalesce(_optionalChain([panel, 'access', _97 => _97.options, 'optionalAccess', _98 => _98.layers]), () => ( DEFAULT_LAYERS))) {
2150
2156
  if (!isDataLayer(layer.type)) continue;
2151
2157
  const mode = _nullishCoalesce(_optionalChain([layer, 'access', _99 => _99.location, 'optionalAccess', _100 => _100.mode]), () => ( "auto"));
2152
- if (mode === "lookup") paths.add(_optionalChain([layer, 'access', _101 => _101.location, 'optionalAccess', _102 => _102.gazetteer]) || _chunkM5R44SAFjs.DEFAULT_GAZETTEER);
2153
- else if (mode === "auto" && frames.some(lookupField)) paths.add(_chunkM5R44SAFjs.DEFAULT_GAZETTEER);
2158
+ if (mode === "lookup") paths.add(_optionalChain([layer, 'access', _101 => _101.location, 'optionalAccess', _102 => _102.gazetteer]) || _chunkHZEXKGDSjs.DEFAULT_GAZETTEER);
2159
+ else if (mode === "auto" && frames.some(lookupField)) paths.add(_chunkHZEXKGDSjs.DEFAULT_GAZETTEER);
2154
2160
  }
2155
2161
  return [...paths];
2156
2162
  }
2157
2163
  var LAT_NAMES = ["lat", "latitude"];
2158
2164
  var LON_NAMES = ["lon", "lng", "long", "longitude"];
2159
2165
  function fieldByName(frame, name, multiple) {
2160
- return _nullishCoalesce(frame.fields.find((f) => f.name === name), () => ( frame.fields.find((f) => _chunkM5R44SAFjs.fieldDisplayName.call(void 0, f, frame, multiple) === name)));
2166
+ return _nullishCoalesce(frame.fields.find((f) => f.name === name), () => ( frame.fields.find((f) => _chunkHZEXKGDSjs.fieldDisplayName.call(void 0, f, frame, multiple) === name)));
2161
2167
  }
2162
2168
  function locate2(frame, location = {}, gazetteers = {}) {
2163
2169
  const mode = _nullishCoalesce(location.mode, () => ( "auto"));
@@ -2176,10 +2182,10 @@ function locate2(frame, location = {}, gazetteers = {}) {
2176
2182
  lat = named(LAT_NAMES);
2177
2183
  lon = named(LON_NAMES);
2178
2184
  if (!lat || !lon) hash = named(["geohash"]);
2179
- if ((!lat || !lon) && !hash) [lookup, gazetteer] = [lookupField(frame), gazetteers[_chunkM5R44SAFjs.DEFAULT_GAZETTEER]];
2185
+ if ((!lat || !lon) && !hash) [lookup, gazetteer] = [lookupField(frame), gazetteers[_chunkHZEXKGDSjs.DEFAULT_GAZETTEER]];
2180
2186
  } else if (mode === "lookup") {
2181
2187
  lookup = location.lookup ? fieldByName(frame, location.lookup, false) : lookupField(frame);
2182
- gazetteer = gazetteers[location.gazetteer || _chunkM5R44SAFjs.DEFAULT_GAZETTEER];
2188
+ gazetteer = gazetteers[location.gazetteer || _chunkHZEXKGDSjs.DEFAULT_GAZETTEER];
2183
2189
  }
2184
2190
  const rows = [];
2185
2191
  const xs = [];
@@ -2228,8 +2234,8 @@ function decodeGeohash(hash) {
2228
2234
  }
2229
2235
  function cellText(field, v, config) {
2230
2236
  if (v == null) return "";
2231
- if (field.type === "number") return _chunkM5R44SAFjs.formatDisplay.call(void 0, Number(v), config);
2232
- if (field.type === "time") return new Date(_chunkM5R44SAFjs.toMillis.call(void 0, v)).toLocaleString();
2237
+ if (field.type === "number") return _chunkHZEXKGDSjs.formatDisplay.call(void 0, Number(v), config);
2238
+ if (field.type === "time") return new Date(_chunkHZEXKGDSjs.toMillis.call(void 0, v)).toLocaleString();
2233
2239
  return String(v);
2234
2240
  }
2235
2241
  function num(v) {
@@ -2479,11 +2485,11 @@ function useGazetteers(panel, frames) {
2479
2485
  let live = true;
2480
2486
  let ds;
2481
2487
  try {
2482
- ds = _optionalChain([resolve, 'optionalCall', _112 => _112(_chunkM5R44SAFjs.normalizeRef.call(void 0, panel.datasource))]);
2488
+ ds = _optionalChain([resolve, 'optionalCall', _112 => _112(_chunkHZEXKGDSjs.normalizeRef.call(void 0, panel.datasource))]);
2483
2489
  } catch (e5) {
2484
2490
  }
2485
2491
  const paths = key.split("\n");
2486
- Promise.allSettled(paths.map((p) => _chunkM5R44SAFjs.loadGazetteer.call(void 0, p, ds))).then((results) => {
2492
+ Promise.allSettled(paths.map((p) => _chunkHZEXKGDSjs.loadGazetteer.call(void 0, p, ds))).then((results) => {
2487
2493
  if (!live) return;
2488
2494
  const gazetteers = {};
2489
2495
  const errors = [];
@@ -2626,8 +2632,8 @@ function cellType(config) {
2626
2632
  }
2627
2633
  function tableColumns(panel, frame, multipleFrames = false) {
2628
2634
  return frame.fields.flatMap((field, i) => {
2629
- const raw = _chunkM5R44SAFjs.fieldDisplayName.call(void 0, field, frame, multipleFrames);
2630
- const config = _chunkM5R44SAFjs.resolveFieldConfig.call(void 0, panel, field, frame, raw);
2635
+ const raw = _chunkHZEXKGDSjs.fieldDisplayName.call(void 0, field, frame, multipleFrames);
2636
+ const config = _chunkHZEXKGDSjs.resolveFieldConfig.call(void 0, panel, field, frame, raw);
2631
2637
  const custom = _nullishCoalesce(config.custom, () => ( {}));
2632
2638
  if (custom.hidden || _optionalChain([custom, 'access', _122 => _122.hideFrom, 'optionalAccess', _123 => _123.viz])) return [];
2633
2639
  const numeric = field.type === "number";
@@ -2670,16 +2676,16 @@ function tableFooter(columns) {
2670
2676
  counted = true;
2671
2677
  return [{ label: "Count", text: String(c.field.values.length) }];
2672
2678
  }
2673
- if (!_chunkM5R44SAFjs.isReducer.call(void 0, r)) return [];
2674
- const label = _chunkM5R44SAFjs.REDUCER_LABELS[r];
2679
+ if (!_chunkHZEXKGDSjs.isReducer.call(void 0, r)) return [];
2680
+ const label = _chunkHZEXKGDSjs.REDUCER_LABELS[r];
2675
2681
  if (r === "count") return [{ label, text: String(c.field.values.length) }];
2676
2682
  if (c.field.type !== "number") {
2677
2683
  if (r === "distinctCount") return [{ label, text: String(new Set(c.field.values.filter((v) => v != null)).size) }];
2678
2684
  return [];
2679
2685
  }
2680
- const value = _chunkM5R44SAFjs.reduce.call(void 0, c.field.values.map((v) => v == null ? null : Number(v)), r);
2686
+ const value = _chunkHZEXKGDSjs.reduce.call(void 0, c.field.values.map((v) => v == null ? null : Number(v)), r);
2681
2687
  const counts = r === "distinctCount" || r === "changeCount";
2682
- return [{ label, text: counts ? String(_nullishCoalesce(value, () => ( 0))) : _chunkM5R44SAFjs.formatValue.call(void 0, value, c.config) }];
2688
+ return [{ label, text: counts ? String(_nullishCoalesce(value, () => ( 0))) : _chunkHZEXKGDSjs.formatValue.call(void 0, value, c.config) }];
2683
2689
  });
2684
2690
  return lines.length === 1 && lines[0].label !== "Count" ? [{ text: lines[0].text }] : lines;
2685
2691
  });
@@ -2698,13 +2704,13 @@ function extentOf(values) {
2698
2704
  }
2699
2705
  function cellDisplay(col, raw, fallbackColor) {
2700
2706
  const { config, field } = col;
2701
- const mapped = _chunkM5R44SAFjs.mappedResult.call(void 0, raw, config);
2707
+ const mapped = _chunkHZEXKGDSjs.mappedResult.call(void 0, raw, config);
2702
2708
  const num4 = field.type === "number" && raw != null && Number.isFinite(Number(raw)) ? Number(raw) : null;
2703
- const text = _nullishCoalesce(_optionalChain([mapped, 'optionalAccess', _137 => _137.text]), () => ( (raw == null ? _nullishCoalesce(config.noValue, () => ( "")) : field.type === "number" ? _chunkM5R44SAFjs.formatValue.call(void 0, num4, config) : field.type === "time" ? new Date(_chunkM5R44SAFjs.toMillis.call(void 0, raw)).toLocaleString() : String(raw))));
2709
+ const text = _nullishCoalesce(_optionalChain([mapped, 'optionalAccess', _137 => _137.text]), () => ( (raw == null ? _nullishCoalesce(config.noValue, () => ( "")) : field.type === "number" ? _chunkHZEXKGDSjs.formatValue.call(void 0, num4, config) : field.type === "time" ? new Date(_chunkHZEXKGDSjs.toMillis.call(void 0, raw)).toLocaleString() : String(raw))));
2704
2710
  if (col.cellType === "auto") return { text };
2705
2711
  const mode = _optionalChain([config, 'access', _138 => _138.color, 'optionalAccess', _139 => _139.mode]);
2706
- const named = _nullishCoalesce(_optionalChain([mapped, 'optionalAccess', _140 => _140.color]), () => ( (mode === "fixed" ? _optionalChain([config, 'access', _141 => _141.color, 'optionalAccess', _142 => _142.fixedColor]) : (!mode || mode === "thresholds") && num4 != null ? _optionalChain([_chunkM5R44SAFjs.thresholdStep.call(void 0, num4, config), 'optionalAccess', _143 => _143.color]) : void 0)));
2707
- const color = named === "text" ? void 0 : _optionalChain([mapped, 'optionalAccess', _144 => _144.color]) ? _chunkM5R44SAFjs.resolveColor.call(void 0, mapped.color, fallbackColor) : num4 == null ? void 0 : _chunkM5R44SAFjs.valueColor.call(void 0, num4, config, fallbackColor, col.extent);
2712
+ const named = _nullishCoalesce(_optionalChain([mapped, 'optionalAccess', _140 => _140.color]), () => ( (mode === "fixed" ? _optionalChain([config, 'access', _141 => _141.color, 'optionalAccess', _142 => _142.fixedColor]) : (!mode || mode === "thresholds") && num4 != null ? _optionalChain([_chunkHZEXKGDSjs.thresholdStep.call(void 0, num4, config), 'optionalAccess', _143 => _143.color]) : void 0)));
2713
+ const color = named === "text" ? void 0 : _optionalChain([mapped, 'optionalAccess', _144 => _144.color]) ? _chunkHZEXKGDSjs.resolveColor.call(void 0, mapped.color, fallbackColor) : num4 == null ? void 0 : _chunkHZEXKGDSjs.valueColor.call(void 0, num4, config, fallbackColor, col.extent);
2708
2714
  if (col.cellType === "color-text") return { text, color };
2709
2715
  if (col.cellType === "color-background") return { text, background: color };
2710
2716
  const min = _nullishCoalesce(config.min, () => ( Math.min(0, _nullishCoalesce(_optionalChain([col, 'access', _145 => _145.extent, 'optionalAccess', _146 => _146[0]]), () => ( 0)))));
@@ -2735,7 +2741,7 @@ function sortedRows(columns, length, sort) {
2735
2741
  if (!col) return rows;
2736
2742
  const { field } = col;
2737
2743
  const dir = sort.desc ? -1 : 1;
2738
- const key = (v) => field.type === "time" ? _chunkM5R44SAFjs.toMillis.call(void 0, v) : field.type === "number" || field.type === "boolean" ? Number(v) : v;
2744
+ const key = (v) => field.type === "time" ? _chunkHZEXKGDSjs.toMillis.call(void 0, v) : field.type === "number" || field.type === "boolean" ? Number(v) : v;
2739
2745
  const empty = (v) => v == null || v === "" || typeof v === "number" && Number.isNaN(v);
2740
2746
  return rows.sort((a, b) => {
2741
2747
  const va = field.values[a];
@@ -2801,8 +2807,8 @@ function TablePanel({ panel, frames }) {
2801
2807
  const columns = _react.useMemo.call(void 0, () => frame ? tableColumns(panel, frame, frames.length > 1) : [], [panel, frame, frames.length]);
2802
2808
  const [tapped, setSort] = _react.useState.call(void 0, );
2803
2809
  const sort = tapped === void 0 ? initialSort(panel, columns) : tapped;
2804
- const order = _react.useMemo.call(void 0, () => sortedRows(columns, frame ? _chunkM5R44SAFjs.frameLength.call(void 0, frame) : 0, sort), [columns, frame, sort]);
2805
- if (!frame || !_chunkM5R44SAFjs.frameLength.call(void 0, frame)) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NoData, {});
2810
+ const order = _react.useMemo.call(void 0, () => sortedRows(columns, frame ? _chunkHZEXKGDSjs.frameLength.call(void 0, frame) : 0, sort), [columns, frame, sort]);
2811
+ if (!frame || !_chunkHZEXKGDSjs.frameLength.call(void 0, frame)) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NoData, {});
2806
2812
  const shown = order.slice(0, 500);
2807
2813
  const rowColumn = columns.find((c) => c.applyToRow);
2808
2814
  const footer = tableFooter(columns);
@@ -2902,7 +2908,7 @@ function BarChartPanel({ panel, frames, width }) {
2902
2908
  {
2903
2909
  style: [styles10.tick, { color: theme.textMuted, top: plot.height * (1 - barFraction(axis, t)) - 7 }, axis.side === "left" ? styles10.tickLeft : styles10.tickRight],
2904
2910
  numberOfLines: 1,
2905
- children: _chunkM5R44SAFjs.formatValue.call(void 0, t, { ...axis.config, decimals: tickDecimals(axis.ticks) })
2911
+ children: _chunkHZEXKGDSjs.formatValue.call(void 0, t, { ...axis.config, decimals: tickDecimals(axis.ticks) })
2906
2912
  },
2907
2913
  t
2908
2914
  )) });
@@ -3028,7 +3034,7 @@ function TimeSeriesPanel({ panel, frames }) {
3028
3034
  const y = linearScale(yMin, yMax, PAD.top + plotH, PAD.top);
3029
3035
  const span = xTo - xFrom;
3030
3036
  const xTicks = numericX ? numberTicks(xFrom, xTo, plotW) : timeTicks(xFrom, xTo, plotW);
3031
- const xLabel = (t) => numericX ? _chunkM5R44SAFjs.formatValue.call(void 0, t, { ...xConfig, decimals: tickDecimals(xTicks) }) : formatTimeTick(t, span);
3037
+ const xLabel = (t) => numericX ? _chunkHZEXKGDSjs.formatValue.call(void 0, t, { ...xConfig, decimals: tickDecimals(xTicks) }) : formatTimeTick(t, span);
3032
3038
  const unitConfig = series[0].config;
3033
3039
  const barSeries = series.filter((s) => style(s) === "bars");
3034
3040
  const pointsCount = Math.max(...series.map((s) => s.times.length));
@@ -3046,11 +3052,11 @@ function TimeSeriesPanel({ panel, frames }) {
3046
3052
  if (!pinch.current) pinch.current = { start: { from: xFrom, to: xTo }, dist, frac };
3047
3053
  const p = pinch.current;
3048
3054
  const limits = extent ? { minSpan: (extent[1] - extent[0]) / 1e3, maxSpan: extent[1] - extent[0], minFrom: extent[0], maxTo: extent[1] } : { maxTo: Math.max(Date.now(), p.start.to) };
3049
- setPreview(_chunkM5R44SAFjs.zoomRange.call(void 0, p.start, dist / p.dist, p.frac, frac, limits));
3055
+ setPreview(_chunkHZEXKGDSjs.zoomRange.call(void 0, p.start, dist / p.dist, p.frac, frac, limits));
3050
3056
  };
3051
3057
  const onPinchEnd = (commit) => {
3052
3058
  if (commit && pinch.current && preview) {
3053
- if (!extent) setRawRange({ from: _chunkM5R44SAFjs.formatLocalDateTime.call(void 0, preview.from), to: _chunkM5R44SAFjs.formatLocalDateTime.call(void 0, preview.to) });
3059
+ if (!extent) setRawRange({ from: _chunkHZEXKGDSjs.formatLocalDateTime.call(void 0, preview.from), to: _chunkHZEXKGDSjs.formatLocalDateTime.call(void 0, preview.to) });
3054
3060
  else setXZoom(preview.to - preview.from >= extent[1] - extent[0] ? null : preview);
3055
3061
  }
3056
3062
  pinch.current = null;
@@ -3105,7 +3111,7 @@ function TimeSeriesPanel({ panel, frames }) {
3105
3111
  size.width > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnativesvg2.default, { width: size.width, height: size.height, children: [
3106
3112
  ticks.map((t) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnativesvg.G, { children: [
3107
3113
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Line, { x1: PAD.left, x2: PAD.left + plotW, y1: y(t), y2: y(t), stroke: theme.grid, strokeWidth: 1 }),
3108
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Text, { x: PAD.left - 6, y: y(t) + 3, fontSize: 10, fill: theme.textMuted, textAnchor: "end", children: _chunkM5R44SAFjs.formatValue.call(void 0, t, { ...unitConfig, decimals: tickDecimals(ticks) }) })
3114
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Text, { x: PAD.left - 6, y: y(t) + 3, fontSize: 10, fill: theme.textMuted, textAnchor: "end", children: _chunkHZEXKGDSjs.formatValue.call(void 0, t, { ...unitConfig, decimals: tickDecimals(ticks) }) })
3109
3115
  ] }, t)),
3110
3116
  xTicks.map((t) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3111
3117
  _reactnativesvg.Text,
@@ -3171,11 +3177,11 @@ function TimeSeriesPanel({ panel, frames }) {
3171
3177
  x(hover.time) > size.width / 2 ? { right: size.width - x(hover.time) + 8 } : { left: x(hover.time) + 8 }
3172
3178
  ],
3173
3179
  children: [
3174
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles11.tooltipTime, { color: theme.textMuted }], children: numericX ? _chunkM5R44SAFjs.formatValue.call(void 0, hover.time, xConfig) : formatTooltipTime(hover.time) }),
3180
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles11.tooltipTime, { color: theme.textMuted }], children: numericX ? _chunkHZEXKGDSjs.formatValue.call(void 0, hover.time, xConfig) : formatTooltipTime(hover.time) }),
3175
3181
  hover.rows.map((r) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { style: styles11.tooltipRow, children: [
3176
3182
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: [styles11.swatch, { backgroundColor: r.color }] }),
3177
3183
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles11.tooltipName, { color: theme.textSecondary }], numberOfLines: 1, children: r.name }),
3178
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles11.tooltipValue, { color: theme.text }], children: _chunkM5R44SAFjs.formatValue.call(void 0, r.value, r.config) })
3184
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles11.tooltipValue, { color: theme.text }], children: _chunkHZEXKGDSjs.formatValue.call(void 0, r.value, r.config) })
3179
3185
  ] }, r.key)),
3180
3186
  isPinned && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipLinks, { links: hoverLinks, onOpen: (l) => openLinks([l]) })
3181
3187
  ]
@@ -3260,7 +3266,7 @@ function linkData(r, frames, xField) {
3260
3266
  if (frame && xField === void 0) {
3261
3267
  row = r.index;
3262
3268
  } else if (frame) {
3263
- const xf = _nullishCoalesce(frame.fields.find((f) => f.name === xField), () => ( _chunkM5R44SAFjs.numberFields.call(void 0, frame)[0]));
3269
+ const xf = _nullishCoalesce(frame.fields.find((f) => f.name === xField), () => ( _chunkHZEXKGDSjs.numberFields.call(void 0, frame)[0]));
3264
3270
  const at = _optionalChain([xf, 'optionalAccess', _206 => _206.values, 'access', _207 => _207.findIndex, 'call', _208 => _208((v, k) => Number(v) === r.time && Number(r.series.field.values[k]) === r.value)]);
3265
3271
  row = at != null && at >= 0 ? at : void 0;
3266
3272
  }
@@ -3271,7 +3277,7 @@ function linkData(r, frames, xField) {
3271
3277
  fieldName: r.name,
3272
3278
  seriesName: r.name,
3273
3279
  value: r.value,
3274
- text: _chunkM5R44SAFjs.formatValue.call(void 0, r.value, r.config),
3280
+ text: _chunkHZEXKGDSjs.formatValue.call(void 0, r.value, r.config),
3275
3281
  time: xField === void 0 ? r.time : void 0
3276
3282
  };
3277
3283
  }
@@ -3332,8 +3338,8 @@ function xySeries(panel, frames, scheme) {
3332
3338
  const { manual, series: maps, exclude } = mappings(panel);
3333
3339
  const multiple = frames.length > 1;
3334
3340
  const out = [];
3335
- const config = (field, frame) => _chunkM5R44SAFjs.resolveFieldConfig.call(void 0, panel, field, frame, _chunkM5R44SAFjs.fieldDisplayName.call(void 0, field, frame, multiple));
3336
- const find = (pick, frame, fields = frame.fields) => pick ? fields.filter((f) => _chunkM5R44SAFjs.fieldMatches.call(void 0, pick.matcher, f, frame, _chunkM5R44SAFjs.fieldDisplayName.call(void 0, f, frame, multiple))) : [];
3341
+ const config = (field, frame) => _chunkHZEXKGDSjs.resolveFieldConfig.call(void 0, panel, field, frame, _chunkHZEXKGDSjs.fieldDisplayName.call(void 0, field, frame, multiple));
3342
+ const find = (pick, frame, fields = frame.fields) => pick ? fields.filter((f) => _chunkHZEXKGDSjs.fieldMatches.call(void 0, pick.matcher, f, frame, _chunkHZEXKGDSjs.fieldDisplayName.call(void 0, f, frame, multiple))) : [];
3337
3343
  for (const [mi, m] of (maps.length ? maps : [{}]).entries()) {
3338
3344
  const matcher = _optionalChain([m, 'access', _219 => _219.frame, 'optionalAccess', _220 => _220.matcher]);
3339
3345
  const chosen = _optionalChain([matcher, 'optionalAccess', _221 => _221.id]) === "byIndex" ? frames.filter((_, i) => i === matcher.options) : frames;
@@ -3349,16 +3355,16 @@ function xySeries(panel, frames, scheme) {
3349
3355
  const yConfig = config(yField, frame);
3350
3356
  if (_optionalChain([yConfig, 'access', _222 => _222.custom, 'optionalAccess', _223 => _223.hideFrom, 'optionalAccess', _224 => _224.viz]) && !manual) continue;
3351
3357
  const xConfig = config(xField, frame);
3352
- const color = _chunkM5R44SAFjs.seriesColor.call(void 0, out.length, scheme, yConfig);
3353
- const base = _optionalChain([yConfig, 'access', _225 => _225.color, 'optionalAccess', _226 => _226.mode]) === "thresholds" ? _chunkM5R44SAFjs.valueColor.call(void 0, null, yConfig, color) : color;
3358
+ const color = _chunkHZEXKGDSjs.seriesColor.call(void 0, out.length, scheme, yConfig);
3359
+ const base = _optionalChain([yConfig, 'access', _225 => _225.color, 'optionalAccess', _226 => _226.mode]) === "thresholds" ? _chunkHZEXKGDSjs.valueColor.call(void 0, null, yConfig, color) : color;
3354
3360
  const rows = [];
3355
3361
  const xs = [];
3356
3362
  const ys = [];
3357
3363
  yField.values.forEach((yv, i) => {
3358
3364
  const xv = xField.values[i];
3359
3365
  if (xv == null || yv == null) return;
3360
- const xn = xField.type === "time" ? _chunkM5R44SAFjs.toMillis.call(void 0, xv) : Number(xv);
3361
- const yn = yField.type === "time" ? _chunkM5R44SAFjs.toMillis.call(void 0, yv) : Number(yv);
3366
+ const xn = xField.type === "time" ? _chunkHZEXKGDSjs.toMillis.call(void 0, xv) : Number(xv);
3367
+ const yn = yField.type === "time" ? _chunkHZEXKGDSjs.toMillis.call(void 0, yv) : Number(yv);
3362
3368
  if (!Number.isFinite(xn) || !Number.isFinite(yn)) return;
3363
3369
  rows.push(i);
3364
3370
  xs.push(xn);
@@ -3371,7 +3377,7 @@ function xySeries(panel, frames, scheme) {
3371
3377
  const cConfig = config(colorField, frame);
3372
3378
  const values = rows.map((i) => num3(colorField.values[i]));
3373
3379
  const extent = range2(values);
3374
- colors = values.map((v) => _chunkM5R44SAFjs.valueColor.call(void 0, v, cConfig, base, extent));
3380
+ colors = values.map((v) => _chunkHZEXKGDSjs.valueColor.call(void 0, v, cConfig, base, extent));
3375
3381
  }
3376
3382
  let sizes = rows.map(() => fixedSize);
3377
3383
  if (sizeField) {
@@ -3381,7 +3387,7 @@ function xySeries(panel, frames, scheme) {
3381
3387
  sizes = values.map((v) => v == null ? min : min + (v - lo) / (hi - lo || 1) * (max - min));
3382
3388
  }
3383
3389
  const fixedName = _optionalChain([m, 'access', _238 => _238.name, 'optionalAccess', _239 => _239.fixed]);
3384
- const yName = _nullishCoalesce(yConfig.displayName, () => ( _chunkM5R44SAFjs.fieldDisplayName.call(void 0, yField, frame, multiple)));
3390
+ const yName = _nullishCoalesce(yConfig.displayName, () => ( _chunkHZEXKGDSjs.fieldDisplayName.call(void 0, yField, frame, multiple)));
3385
3391
  out.push({
3386
3392
  key: `${mi}/${frames.indexOf(frame)}/${yField.name}`,
3387
3393
  name: fixedName ? yFields.length > 1 ? `${fixedName} ${yName}` : fixedName : yName,
@@ -3504,7 +3510,7 @@ function XYChartPanel({ panel, frames }) {
3504
3510
  size.width > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnativesvg2.default, { width: size.width, height: size.height, children: [
3505
3511
  yTicks.map((t) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnativesvg.G, { children: [
3506
3512
  gridY && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Line, { x1: pad.left, x2: pad.left + plotW, y1: layout.y(t), y2: layout.y(t), stroke: theme.grid, strokeWidth: 1 }),
3507
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Text, { x: pad.left - 6, y: layout.y(t) + 3, fontSize: 10, fill: theme.textMuted, textAnchor: "end", children: _chunkM5R44SAFjs.formatValue.call(void 0, t, { ...first.yConfig, decimals: _nullishCoalesce(first.yConfig.decimals, () => ( tickDecimals(yTicks))) }) })
3513
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Text, { x: pad.left - 6, y: layout.y(t) + 3, fontSize: 10, fill: theme.textMuted, textAnchor: "end", children: _chunkHZEXKGDSjs.formatValue.call(void 0, t, { ...first.yConfig, decimals: _nullishCoalesce(first.yConfig.decimals, () => ( tickDecimals(yTicks))) }) })
3508
3514
  ] }, `y${t}`)),
3509
3515
  xTicks.map((t) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnativesvg.G, { children: [
3510
3516
  gridX && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Line, { x1: layout.x(t), x2: layout.x(t), y1: pad.top, y2: pad.top + plotH, stroke: theme.grid, strokeWidth: 1 }),
@@ -3516,7 +3522,7 @@ function XYChartPanel({ panel, frames }) {
3516
3522
  fontSize: 10,
3517
3523
  fill: theme.textMuted,
3518
3524
  textAnchor: layout.x(t) - pad.left < 20 ? "start" : pad.left + plotW - layout.x(t) < 20 ? "end" : "middle",
3519
- children: _chunkM5R44SAFjs.formatValue.call(void 0, t, { ...first.xConfig, decimals: _nullishCoalesce(first.xConfig.decimals, () => ( tickDecimals(xTicks))) })
3525
+ children: _chunkHZEXKGDSjs.formatValue.call(void 0, t, { ...first.xConfig, decimals: _nullishCoalesce(first.xConfig.decimals, () => ( tickDecimals(xTicks))) })
3520
3526
  }
3521
3527
  )
3522
3528
  ] }, `x${t}`)),
@@ -3629,14 +3635,14 @@ function DashboardView({ mode = "auto", header, footer, refreshable }) {
3629
3635
  const width = (measured.width || window.width) - insets.left - insets.right;
3630
3636
  const layoutMode = mode === "auto" ? width >= TABLET_WIDTH ? "grid" : "phone" : mode;
3631
3637
  const sections = _react.useMemo.call(void 0,
3632
- () => _chunkM5R44SAFjs.layoutDashboard.call(void 0, dashboard, layoutMode, { values: variables, info: variableInfo2 }),
3638
+ () => _chunkHZEXKGDSjs.layoutDashboard.call(void 0, dashboard, layoutMode, { values: variables, info: variableInfo2 }),
3633
3639
  [dashboard, layoutMode, variables, variableInfo2]
3634
3640
  );
3635
3641
  const [toggled, setToggled] = _react.useState.call(void 0, {});
3636
3642
  const { seen, viewportH, onScroll, onViewportLayout, onSectionLayout } = useSeenSections(window.height);
3637
3643
  const maxPanelH = Math.max(MIN_PANEL_H, viewportH - SIDE * 2);
3638
3644
  const contentW = width - SIDE * 2;
3639
- const canRefresh = _nullishCoalesce(refreshable, () => ( dashboard.panels.some((p) => _chunkM5R44SAFjs.panelHasQueries.call(void 0, p) || _optionalChain([p, 'access', _262 => _262.panels, 'optionalAccess', _263 => _263.some, 'call', _264 => _264(_chunkM5R44SAFjs.panelHasQueries)]))));
3645
+ const canRefresh = _nullishCoalesce(refreshable, () => ( dashboard.panels.some((p) => _chunkHZEXKGDSjs.panelHasQueries.call(void 0, p) || _optionalChain([p, 'access', _262 => _262.panels, 'optionalAccess', _263 => _263.some, 'call', _264 => _264(_chunkHZEXKGDSjs.panelHasQueries)]))));
3640
3646
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { style: [styles13.fill, { backgroundColor: theme.background }], onLayout, children: [
3641
3647
  width > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
3642
3648
  _reactnative.ScrollView,
@@ -3662,13 +3668,14 @@ function DashboardView({ mode = "auto", header, footer, refreshable }) {
3662
3668
  accessibilityState: { expanded: !collapsed },
3663
3669
  children: [
3664
3670
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles13.chevron, { color: theme.textMuted }], children: collapsed ? "\u25B8" : "\u25BE" }),
3665
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles13.rowTitle, { color: theme.text }], numberOfLines: 2, children: _chunkM5R44SAFjs.interpolate.call(void 0, _nullishCoalesce(section.row.title, () => ( "")), { values: variables, info: variableInfo2, scoped: section.row.scopedVars, timezone: dashboard.timezone }) })
3671
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles13.rowTitle, { color: theme.text }], numberOfLines: 2, children: _chunkHZEXKGDSjs.interpolate.call(void 0, _nullishCoalesce(section.row.title, () => ( "")), { values: variables, info: variableInfo2, scoped: section.row.scopedVars, timezone: dashboard.timezone }) })
3666
3672
  ]
3667
3673
  }
3668
3674
  ),
3669
- !collapsed && section.rows.map((row, ri) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: styles13.row, children: row.cells.map((cell) => {
3670
- const w = (contentW + GAP) * (cell.span / _chunkM5R44SAFjs.GRID_COLUMNS) - GAP;
3671
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PanelCard, { panel: cell.panel, width: w, height: Math.min(_chunkM5R44SAFjs.gridUnitsToPx.call(void 0, row.h), maxPanelH), deferred: !seen.has(section.key) }, cell.key);
3675
+ !collapsed && layoutMode === "grid" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, GridSection, { grid: section.grid, width: contentW, maxPanelH, deferred: !seen.has(section.key) }),
3676
+ !collapsed && layoutMode === "phone" && section.rows.map((row, ri) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: styles13.row, children: row.cells.map((cell) => {
3677
+ const w = (contentW + GAP) * (cell.span / _chunkHZEXKGDSjs.GRID_COLUMNS) - GAP;
3678
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PanelCard, { panel: cell.panel, width: w, height: Math.min(_chunkHZEXKGDSjs.gridUnitsToPx.call(void 0, row.h), maxPanelH), deferred: !seen.has(section.key) }, cell.key);
3672
3679
  }) }, ri))
3673
3680
  ] }, section.key);
3674
3681
  })
@@ -3678,6 +3685,12 @@ function DashboardView({ mode = "auto", header, footer, refreshable }) {
3678
3685
  footer
3679
3686
  ] });
3680
3687
  }
3688
+ function GridSection({ grid, width, maxPanelH, deferred }) {
3689
+ const colW = (width + GAP) / _chunkHZEXKGDSjs.GRID_COLUMNS;
3690
+ const tallest = Math.max(0, ...grid.cells.map((c) => _chunkHZEXKGDSjs.gridUnitsToPx.call(void 0, c.h)));
3691
+ const scale = tallest > maxPanelH ? maxPanelH / tallest : 1;
3692
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: { height: _chunkHZEXKGDSjs.gridUnitsToPx.call(void 0, grid.h) * scale }, children: grid.cells.map((cell) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: [styles13.gridCell, { left: cell.x * colW, top: _chunkHZEXKGDSjs.gridOffsetPx.call(void 0, cell.y) * scale }], children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PanelCard, { panel: cell.panel, width: cell.w * colW - GAP, height: _chunkHZEXKGDSjs.gridUnitsToPx.call(void 0, cell.h) * scale, deferred }) }, cell.key)) });
3693
+ }
3681
3694
  function useSeenSections(viewportHeight) {
3682
3695
  const [seen, setSeen] = _react.useState.call(void 0, /* @__PURE__ */ new Set());
3683
3696
  const view = _react.useRef.call(void 0, { y: 0, h: viewportHeight });
@@ -3735,12 +3748,12 @@ function PanelCardContent({ panel, width, height, deferred }) {
3735
3748
  const theme = useDashTheme();
3736
3749
  const { dashboard, variables, variableInfo: variableInfo2 } = useDashboard();
3737
3750
  const { resolve, openLinks } = usePanelLinks(panel);
3738
- const input = _chunkM5R44SAFjs.isInputPanel.call(void 0, panel);
3751
+ const input = _chunkHZEXKGDSjs.isInputPanel.call(void 0, panel);
3739
3752
  const form = _react.useContext.call(void 0, InputFormContext);
3740
3753
  const problem = input ? _optionalChain([form, 'optionalAccess', _265 => _265.problem, 'optionalCall', _266 => _266(panel.options.metric)]) : void 0;
3741
3754
  const hasLinks = !!_optionalChain([panel, 'access', _267 => _267.links, 'optionalAccess', _268 => _268.length]);
3742
3755
  const hasTitle = !!panel.title || hasLinks || !!problem;
3743
- const title = panel.title ? _chunkM5R44SAFjs.interpolate.call(void 0, panel.title, { values: variables, info: variableInfo2, scoped: panel.scopedVars, timezone: dashboard.timezone }) : "";
3756
+ const title = panel.title ? _chunkHZEXKGDSjs.interpolate.call(void 0, panel.title, { values: variables, info: variableInfo2, scoped: panel.scopedVars, timezone: dashboard.timezone }) : "";
3744
3757
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { style: [styles13.card, { width, height, backgroundColor: theme.surface, borderColor: theme.border }], children: [
3745
3758
  hasTitle && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { style: styles13.titleRow, children: [
3746
3759
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles13.title, { color: theme.text }], numberOfLines: 1, children: title }),
@@ -3762,7 +3775,7 @@ function PanelCardContent({ panel, width, height, deferred }) {
3762
3775
  }
3763
3776
  function DataPanelBody({ panel, width, height }) {
3764
3777
  const theme = useDashTheme();
3765
- const needsData = _chunkM5R44SAFjs.panelHasQueries.call(void 0, panel);
3778
+ const needsData = _chunkHZEXKGDSjs.panelHasQueries.call(void 0, panel);
3766
3779
  const data = usePanelData(panel, width, needsData);
3767
3780
  const Component2 = panelComponent(panel.type);
3768
3781
  if (needsData && data.error) {
@@ -3781,6 +3794,7 @@ var styles13 = _reactnative.StyleSheet.create({
3781
3794
  chevron: { fontSize: 14, width: 14 },
3782
3795
  rowTitle: { fontSize: 15, fontWeight: "600" },
3783
3796
  row: { flexDirection: "row", gap: GAP },
3797
+ gridCell: { position: "absolute" },
3784
3798
  card: { borderRadius: 10, borderWidth: _reactnative.StyleSheet.hairlineWidth, paddingHorizontal: 12, paddingVertical: 8, overflow: "hidden" },
3785
3799
  titleRow: { flexDirection: "row", alignItems: "flex-start", gap: 8, height: TITLE_H - 8, marginBottom: 8 },
3786
3800
  title: { flex: 1, fontSize: 13, fontWeight: "600" },
@@ -3803,13 +3817,13 @@ function savedValues(panels, entries) {
3803
3817
  const values = {};
3804
3818
  for (const p of panels) {
3805
3819
  const mine = entries.filter((e) => e.metric === p.options.metric);
3806
- values[p.options.metric] = p.options.multi ? mine.length ? mine.map((e) => _nullishCoalesce(e.text, () => ( e.value))) : null : _chunkM5R44SAFjs.entryToInputValue.call(void 0, p, mine[0]);
3820
+ values[p.options.metric] = p.options.multi ? mine.length ? mine.map((e) => _nullishCoalesce(e.text, () => ( e.value))) : null : _chunkHZEXKGDSjs.entryToInputValue.call(void 0, p, mine[0]);
3807
3821
  }
3808
3822
  return values;
3809
3823
  }
3810
3824
  function InputForm({ dashboard, store, onSaved, choices = NO_CHOICES, header, timestamp, defaults: given = NO_DEFAULTS, beforeSave, editing }) {
3811
3825
  const theme = useDashTheme();
3812
- const panels = _react.useMemo.call(void 0, () => _chunkM5R44SAFjs.inputPanels.call(void 0, dashboard), [dashboard]);
3826
+ const panels = _react.useMemo.call(void 0, () => _chunkHZEXKGDSjs.inputPanels.call(void 0, dashboard), [dashboard]);
3813
3827
  const saved = _react.useMemo.call(void 0, () => editing ? savedValues(panels, editing) : NO_DEFAULTS, [panels, editing]);
3814
3828
  const [defaults, setDefaults] = _react.useState.call(void 0, {});
3815
3829
  const [edits, setEdits] = _react.useState.call(void 0, {});
@@ -3823,7 +3837,7 @@ function InputForm({ dashboard, store, onSaved, choices = NO_CHOICES, header, ti
3823
3837
  const next = {};
3824
3838
  for (const p of panels) {
3825
3839
  const d = p.options.default;
3826
- if (d === "last") next[p.options.metric] = _chunkM5R44SAFjs.entryToInputValue.call(void 0, p, await store.latest(p.options.metric));
3840
+ if (d === "last") next[p.options.metric] = _chunkHZEXKGDSjs.entryToInputValue.call(void 0, p, await store.latest(p.options.metric));
3827
3841
  else if (d !== void 0) next[p.options.metric] = d;
3828
3842
  }
3829
3843
  if (mine === run) setDefaults(next);
@@ -3848,14 +3862,14 @@ function InputForm({ dashboard, store, onSaved, choices = NO_CHOICES, header, ti
3848
3862
  choices,
3849
3863
  problem: (m) => {
3850
3864
  const p = panels.find((x) => x.options.metric === m);
3851
- return p && (checked || m in edits) ? _chunkM5R44SAFjs.inputProblem.call(void 0, p, value(m)) : void 0;
3865
+ return p && (checked || m in edits) ? _chunkHZEXKGDSjs.inputProblem.call(void 0, p, value(m)) : void 0;
3852
3866
  }
3853
3867
  };
3854
3868
  }, [edits, saved, defaults, given, store, choices, panels, checked]);
3855
3869
  const dirty = Object.keys(edits).length;
3856
3870
  const save = _react.useCallback.call(void 0, async () => {
3857
3871
  const problems = panels.flatMap((p) => {
3858
- const problem = _chunkM5R44SAFjs.inputProblem.call(void 0, p, state.value(p.options.metric));
3872
+ const problem = _chunkHZEXKGDSjs.inputProblem.call(void 0, p, state.value(p.options.metric));
3859
3873
  return problem ? [`${p.title || p.options.metric}: ${problem.toLowerCase()}`] : [];
3860
3874
  });
3861
3875
  if (problems.length) {
@@ -3864,7 +3878,7 @@ function InputForm({ dashboard, store, onSaved, choices = NO_CHOICES, header, ti
3864
3878
  return;
3865
3879
  }
3866
3880
  const ts = _nullishCoalesce(_optionalChain([editing, 'optionalAccess', _269 => _269[0], 'optionalAccess', _270 => _270.ts]), () => ( (header !== void 0 ? _nullishCoalesce(_optionalChain([timestamp, 'optionalCall', _271 => _271()]), () => ( Date.now())) : Date.now() + offsetMs)));
3867
- const entries = panels.filter((p) => editing || p.options.metric in edits || p.options.record === "always").flatMap((p) => _chunkM5R44SAFjs.toEntries.call(void 0, p, state.value(p.options.metric), ts));
3881
+ const entries = panels.filter((p) => editing || p.options.metric in edits || p.options.record === "always").flatMap((p) => _chunkHZEXKGDSjs.toEntries.call(void 0, p, state.value(p.options.metric), ts));
3868
3882
  if (!entries.length) return;
3869
3883
  const extra = beforeSave ? await beforeSave(ts) : [];
3870
3884
  if (!extra) return;
@@ -4157,4 +4171,10 @@ var styles14 = _reactnative.StyleSheet.create({
4157
4171
 
4158
4172
 
4159
4173
 
4160
- exports.ALL = _chunkM5R44SAFjs.ALL; exports.BUNDLE_ACCEPT = _chunkM5R44SAFjs.BUNDLE_ACCEPT; exports.BUNDLE_TYPE = _chunkM5R44SAFjs.BUNDLE_TYPE; exports.CANVAS_GAP = _chunkM5R44SAFjs.CANVAS_GAP; exports.CANVAS_ROW_HEADER = _chunkM5R44SAFjs.CANVAS_ROW_HEADER; exports.Calendar = Calendar; exports.Chip = Chip; exports.ConfigLoader = _chunkM5R44SAFjs.ConfigLoader; exports.DASHBOARD_DS = _chunkM5R44SAFjs.DASHBOARD_DS; exports.DEFAULT_GAZETTEER = _chunkM5R44SAFjs.DEFAULT_GAZETTEER; exports.DashThemeProvider = DashThemeProvider; exports.DashboardProvider = DashboardProvider; exports.DashboardToolbar = DashboardToolbar; exports.DashboardView = DashboardView; exports.EDITABLE_VARIABLE_TYPES = _chunkM5R44SAFjs.EDITABLE_VARIABLE_TYPES; exports.GRID_COLUMNS = _chunkM5R44SAFjs.GRID_COLUMNS; exports.GrafanaClient = _chunkM5R44SAFjs.GrafanaClient; exports.GrafanaDataSource = _chunkM5R44SAFjs.GrafanaDataSource; exports.GrafanaError = _chunkM5R44SAFjs.GrafanaError; exports.HttpConfigFiles = _chunkM5R44SAFjs.HttpConfigFiles; exports.INPUT_OPTION_KEYS = _chunkM5R44SAFjs.INPUT_OPTION_KEYS; exports.INPUT_TYPES = _chunkM5R44SAFjs.INPUT_TYPES; exports.InputForm = InputForm; exports.InputFormContext = InputFormContext; exports.LOCAL_DATASOURCE_TYPE = _chunkM5R44SAFjs.LOCAL_DATASOURCE_TYPE; exports.Legend = Legend; exports.LocalDataSource = _chunkM5R44SAFjs.LocalDataSource; exports.MANIFEST_VERSION = _chunkM5R44SAFjs.MANIFEST_VERSION; exports.MAPPING_TYPES = _chunkM5R44SAFjs.MAPPING_TYPES; exports.MemoryEntryStore = _chunkM5R44SAFjs.MemoryEntryStore; exports.NAMED_COLORS = _chunkM5R44SAFjs.NAMED_COLORS; exports.NoData = NoData; exports.OPTION_CATEGORIES = _chunkM5R44SAFjs.OPTION_CATEGORIES; exports.OVERRIDE_MATCHERS = _chunkM5R44SAFjs.OVERRIDE_MATCHERS; exports.PANEL_TYPES = _chunkM5R44SAFjs.PANEL_TYPES; exports.PanelCard = PanelCard; exports.REDUCER_LABELS = _chunkM5R44SAFjs.REDUCER_LABELS; exports.REFRESH_CHOICES = _chunkM5R44SAFjs.REFRESH_CHOICES; exports.RELATIVE_RANGES = _chunkM5R44SAFjs.RELATIVE_RANGES; exports.RenderBoundary = RenderBoundary; exports.SERIES_PALETTE = _chunkM5R44SAFjs.SERIES_PALETTE; exports.SPECIAL_MATCHES = _chunkM5R44SAFjs.SPECIAL_MATCHES; exports.SaveConflictError = _chunkM5R44SAFjs.SaveConflictError; exports.TIME_PRESETS = _chunkM5R44SAFjs.TIME_PRESETS; exports.UNIT_CHOICES = _chunkM5R44SAFjs.UNIT_CHOICES; exports.addTime = _chunkM5R44SAFjs.addTime; exports.appSchema = _chunkM5R44SAFjs.appSchema; exports.applyDashboardLink = _chunkM5R44SAFjs.applyDashboardLink; exports.applyJsonEdits = _chunkM5R44SAFjs.applyJsonEdits; exports.applyTransformations = _chunkM5R44SAFjs.applyTransformations; exports.assembleBundle = _chunkM5R44SAFjs.assembleBundle; exports.assembleFromResponse = _chunkM5R44SAFjs.assembleFromResponse; exports.buildFrames = _chunkM5R44SAFjs.buildFrames; exports.bundleFromFiles = _chunkM5R44SAFjs.bundleFromFiles; exports.bundleRoot = _chunkM5R44SAFjs.bundleRoot; exports.calculateInterval = _chunkM5R44SAFjs.calculateInterval; exports.checkFiles = _chunkM5R44SAFjs.checkFiles; exports.cleanDashboard = _chunkM5R44SAFjs.cleanDashboard; exports.cleanPanelOptions = _chunkM5R44SAFjs.cleanPanelOptions; exports.darkTheme = darkTheme; exports.dashboardSchema = _chunkM5R44SAFjs.dashboardSchema; exports.dashboardSchemaIssues = _chunkM5R44SAFjs.dashboardSchemaIssues; exports.dashboardSourceIds = _chunkM5R44SAFjs.dashboardSourceIds; exports.defaultFetchJson = _chunkM5R44SAFjs.defaultFetchJson; exports.describeRange = _chunkM5R44SAFjs.describeRange; exports.diffJson = _chunkM5R44SAFjs.diffJson; exports.documentIdFor = _chunkM5R44SAFjs.documentIdFor; exports.documentUses = _chunkM5R44SAFjs.documentUses; exports.dropTarget = _chunkM5R44SAFjs.dropTarget; exports.duplicatePanel = _chunkM5R44SAFjs.duplicatePanel; exports.entriesSavedWith = _chunkM5R44SAFjs.entriesSavedWith; exports.entryToInputValue = _chunkM5R44SAFjs.entryToInputValue; exports.expandRow = _chunkM5R44SAFjs.expandRow; exports.fetchBundle = _chunkM5R44SAFjs.fetchBundle; exports.fetchJsonWithToken = _chunkM5R44SAFjs.fetchJsonWithToken; exports.fieldDisplayName = _chunkM5R44SAFjs.fieldDisplayName; exports.fieldMatches = _chunkM5R44SAFjs.fieldMatches; exports.formatClock = _chunkM5R44SAFjs.formatClock; exports.formatDisplay = _chunkM5R44SAFjs.formatDisplay; exports.formatDuration = _chunkM5R44SAFjs.formatDuration; exports.formatJsonText = _chunkM5R44SAFjs.formatJsonText; exports.formatLocalDateTime = _chunkM5R44SAFjs.formatLocalDateTime; exports.formatValue = _chunkM5R44SAFjs.formatValue; exports.frameLength = _chunkM5R44SAFjs.frameLength; exports.framesToOptions = _chunkM5R44SAFjs.framesToOptions; exports.fromWire = _chunkM5R44SAFjs.fromWire; exports.getPath = _chunkM5R44SAFjs.getPath; exports.gridUnitsToPx = _chunkM5R44SAFjs.gridUnitsToPx; exports.httpFetchJson = _chunkM5R44SAFjs.httpFetchJson; exports.initialVariableValues = _chunkM5R44SAFjs.initialVariableValues; exports.inputPanels = _chunkM5R44SAFjs.inputPanels; exports.inputProblem = _chunkM5R44SAFjs.inputProblem; exports.insertPanel = _chunkM5R44SAFjs.insertPanel; exports.interpolate = _chunkM5R44SAFjs.interpolate; exports.interpolateDeep = _chunkM5R44SAFjs.interpolateDeep; exports.isBundleResponse = _chunkM5R44SAFjs.isBundleResponse; exports.isEditableVariableType = _chunkM5R44SAFjs.isEditableVariableType; exports.isInputPanel = _chunkM5R44SAFjs.isInputPanel; exports.isInputType = _chunkM5R44SAFjs.isInputType; exports.isLocalDatasource = _chunkM5R44SAFjs.isLocalDatasource; exports.isReducer = _chunkM5R44SAFjs.isReducer; exports.isRow = _chunkM5R44SAFjs.isRow; exports.isSqlDatasource = _chunkM5R44SAFjs.isSqlDatasource; exports.layoutCanvas = _chunkM5R44SAFjs.layoutCanvas; exports.layoutDashboard = _chunkM5R44SAFjs.layoutDashboard; exports.lightTheme = lightTheme; exports.lineColumn = _chunkM5R44SAFjs.lineColumn; exports.loadGazetteer = _chunkM5R44SAFjs.loadGazetteer; exports.locate = _chunkM5R44SAFjs.locate; exports.manifestSchemaIssues = _chunkM5R44SAFjs.manifestSchemaIssues; exports.mappedResult = _chunkM5R44SAFjs.mappedResult; exports.mappingProblem = _chunkM5R44SAFjs.mappingProblem; exports.mappingRow = _chunkM5R44SAFjs.mappingRow; exports.mappingRows = _chunkM5R44SAFjs.mappingRows; exports.metricChanges = _chunkM5R44SAFjs.metricChanges; exports.movePanel = _chunkM5R44SAFjs.movePanel; exports.newDocument = _chunkM5R44SAFjs.newDocument; exports.newPanel = _chunkM5R44SAFjs.newPanel; exports.newVariable = _chunkM5R44SAFjs.newVariable; exports.nextPanelId = _chunkM5R44SAFjs.nextPanelId; exports.normalizeRef = _chunkM5R44SAFjs.normalizeRef; exports.numberFields = _chunkM5R44SAFjs.numberFields; exports.optionValue = _chunkM5R44SAFjs.optionValue; exports.overrideProperties = _chunkM5R44SAFjs.overrideProperties; exports.panelEdits = _chunkM5R44SAFjs.panelEdits; exports.panelHasQueries = _chunkM5R44SAFjs.panelHasQueries; exports.panelKey = _chunkM5R44SAFjs.panelKey; exports.panelOptions = _chunkM5R44SAFjs.panelOptions; exports.panelOverrides = _chunkM5R44SAFjs.panelOverrides; exports.panelSize = _chunkM5R44SAFjs.panelSize; exports.panelSpan = _chunkM5R44SAFjs.panelSpan; exports.parseClockDigits = _chunkM5R44SAFjs.parseClockDigits; exports.parseDashboardLink = _chunkM5R44SAFjs.parseDashboardLink; exports.parseDuration = _chunkM5R44SAFjs.parseDuration; exports.parseGazetteer = _chunkM5R44SAFjs.parseGazetteer; exports.parseJsonText = _chunkM5R44SAFjs.parseJsonText; exports.parseLocalDateTime = _chunkM5R44SAFjs.parseLocalDateTime; exports.parseRange = _chunkM5R44SAFjs.parseRange; exports.parseTime = _chunkM5R44SAFjs.parseTime; exports.pointerToPath = _chunkM5R44SAFjs.pointerToPath; exports.prepareDashboard = _chunkM5R44SAFjs.prepareDashboard; exports.queryPanel = _chunkM5R44SAFjs.queryPanel; exports.queryParam = _chunkM5R44SAFjs.queryParam; exports.readConfigFiles = _chunkM5R44SAFjs.readConfigFiles; exports.readingOrder = _chunkM5R44SAFjs.readingOrder; exports.reduce = _chunkM5R44SAFjs.reduce; exports.refineOptions = _chunkM5R44SAFjs.refineOptions; exports.refreshedVariables = _chunkM5R44SAFjs.refreshedVariables; exports.registerPanel = registerPanel; exports.removeDocumentFromManifest = _chunkM5R44SAFjs.removeDocumentFromManifest; exports.removePanel = _chunkM5R44SAFjs.removePanel; exports.renameDocumentInManifest = _chunkM5R44SAFjs.renameDocumentInManifest; exports.renameVariableInPanels = _chunkM5R44SAFjs.renameVariableInPanels; exports.repack = _chunkM5R44SAFjs.repack; exports.repeatOptions = _chunkM5R44SAFjs.repeatOptions; exports.resizePanel = _chunkM5R44SAFjs.resizePanel; exports.resolveColor = _chunkM5R44SAFjs.resolveColor; exports.resolveFieldConfig = _chunkM5R44SAFjs.resolveFieldConfig; exports.resolveLinks = _chunkM5R44SAFjs.resolveLinks; exports.resolveTimezone = _chunkM5R44SAFjs.resolveTimezone; exports.resolveUrl = _chunkM5R44SAFjs.resolveUrl; exports.resolveVariables = _chunkM5R44SAFjs.resolveVariables; exports.revalidateBundle = _chunkM5R44SAFjs.revalidateBundle; exports.rowsToMappings = _chunkM5R44SAFjs.rowsToMappings; exports.sampleEntries = _chunkM5R44SAFjs.sampleEntries; exports.screenDocuments = _chunkM5R44SAFjs.screenDocuments; exports.screenOfType = _chunkM5R44SAFjs.screenOfType; exports.selectValue = _chunkM5R44SAFjs.selectValue; exports.seriesColor = _chunkM5R44SAFjs.seriesColor; exports.setHiddenOnPhones = _chunkM5R44SAFjs.setHiddenOnPhones; exports.setJsonValue = _chunkM5R44SAFjs.setJsonValue; exports.setOption = _chunkM5R44SAFjs.setOption; exports.setOptionValue = _chunkM5R44SAFjs.setOptionValue; exports.setOverrides = _chunkM5R44SAFjs.setOverrides; exports.splitPath = _chunkM5R44SAFjs.splitPath; exports.startOf = _chunkM5R44SAFjs.startOf; exports.stringifyCompact = _chunkM5R44SAFjs.stringifyCompact; exports.tabIdFor = _chunkM5R44SAFjs.tabIdFor; exports.textSuggestions = _chunkM5R44SAFjs.textSuggestions; exports.thresholdStep = _chunkM5R44SAFjs.thresholdStep; exports.timeExprError = _chunkM5R44SAFjs.timeExprError; exports.timeField = _chunkM5R44SAFjs.timeField; exports.toEntries = _chunkM5R44SAFjs.toEntries; exports.toMillis = _chunkM5R44SAFjs.toMillis; exports.toSeries = _chunkM5R44SAFjs.toSeries; exports.toXYSeries = _chunkM5R44SAFjs.toXYSeries; exports.uniqueNames = _chunkM5R44SAFjs.uniqueNames; exports.useDashTheme = useDashTheme; exports.useDashboard = useDashboard; exports.useInputForm = useInputForm; exports.usePanelData = usePanelData; exports.validateBundle = _chunkM5R44SAFjs.validateBundle; exports.validateDashboard = _chunkM5R44SAFjs.validateDashboard; exports.validateManifest = _chunkM5R44SAFjs.validateManifest; exports.valueColor = _chunkM5R44SAFjs.valueColor; exports.valueText = _chunkM5R44SAFjs.valueText; exports.variableDependents = _chunkM5R44SAFjs.variableDependents; exports.variableInfo = _chunkM5R44SAFjs.variableInfo; exports.variableNameError = _chunkM5R44SAFjs.variableNameError; exports.variableOptions = _chunkM5R44SAFjs.variableOptions; exports.variableOrder = _chunkM5R44SAFjs.variableOrder; exports.variableReferences = _chunkM5R44SAFjs.variableReferences; exports.variableUses = _chunkM5R44SAFjs.variableUses; exports.variableWithCurrent = _chunkM5R44SAFjs.variableWithCurrent; exports.variableWithFlags = _chunkM5R44SAFjs.variableWithFlags; exports.variableWithQuery = _chunkM5R44SAFjs.variableWithQuery; exports.variableWithType = _chunkM5R44SAFjs.variableWithType; exports.visibleVariables = _chunkM5R44SAFjs.visibleVariables; exports.zoomRange = _chunkM5R44SAFjs.zoomRange;
4174
+
4175
+
4176
+
4177
+
4178
+
4179
+
4180
+ exports.ALL = _chunkHZEXKGDSjs.ALL; exports.BUNDLE_ACCEPT = _chunkHZEXKGDSjs.BUNDLE_ACCEPT; exports.BUNDLE_TYPE = _chunkHZEXKGDSjs.BUNDLE_TYPE; exports.CANVAS_GAP = _chunkHZEXKGDSjs.CANVAS_GAP; exports.CANVAS_ROW_HEADER = _chunkHZEXKGDSjs.CANVAS_ROW_HEADER; exports.Calendar = Calendar; exports.Chip = Chip; exports.ConfigLoader = _chunkHZEXKGDSjs.ConfigLoader; exports.DASHBOARD_DS = _chunkHZEXKGDSjs.DASHBOARD_DS; exports.DEFAULT_GAZETTEER = _chunkHZEXKGDSjs.DEFAULT_GAZETTEER; exports.DashThemeProvider = DashThemeProvider; exports.DashboardProvider = DashboardProvider; exports.DashboardToolbar = DashboardToolbar; exports.DashboardView = DashboardView; exports.EDITABLE_VARIABLE_TYPES = _chunkHZEXKGDSjs.EDITABLE_VARIABLE_TYPES; exports.GRID_COLUMNS = _chunkHZEXKGDSjs.GRID_COLUMNS; exports.GrafanaClient = _chunkHZEXKGDSjs.GrafanaClient; exports.GrafanaDataSource = _chunkHZEXKGDSjs.GrafanaDataSource; exports.GrafanaError = _chunkHZEXKGDSjs.GrafanaError; exports.HttpConfigFiles = _chunkHZEXKGDSjs.HttpConfigFiles; exports.INPUT_OPTION_KEYS = _chunkHZEXKGDSjs.INPUT_OPTION_KEYS; exports.INPUT_TYPES = _chunkHZEXKGDSjs.INPUT_TYPES; exports.InputForm = InputForm; exports.InputFormContext = InputFormContext; exports.LOCAL_DATASOURCE_TYPE = _chunkHZEXKGDSjs.LOCAL_DATASOURCE_TYPE; exports.Legend = Legend; exports.LocalDataSource = _chunkHZEXKGDSjs.LocalDataSource; exports.MANIFEST_VERSION = _chunkHZEXKGDSjs.MANIFEST_VERSION; exports.MAPPING_TYPES = _chunkHZEXKGDSjs.MAPPING_TYPES; exports.MemoryEntryStore = _chunkHZEXKGDSjs.MemoryEntryStore; exports.NAMED_COLORS = _chunkHZEXKGDSjs.NAMED_COLORS; exports.NoData = NoData; exports.OPTION_CATEGORIES = _chunkHZEXKGDSjs.OPTION_CATEGORIES; exports.OVERRIDE_MATCHERS = _chunkHZEXKGDSjs.OVERRIDE_MATCHERS; exports.PANEL_TYPES = _chunkHZEXKGDSjs.PANEL_TYPES; exports.PanelCard = PanelCard; exports.REDUCER_LABELS = _chunkHZEXKGDSjs.REDUCER_LABELS; exports.REFRESH_CHOICES = _chunkHZEXKGDSjs.REFRESH_CHOICES; exports.RELATIVE_RANGES = _chunkHZEXKGDSjs.RELATIVE_RANGES; exports.RenderBoundary = RenderBoundary; exports.SERIES_PALETTE = _chunkHZEXKGDSjs.SERIES_PALETTE; exports.SPECIAL_MATCHES = _chunkHZEXKGDSjs.SPECIAL_MATCHES; exports.SaveConflictError = _chunkHZEXKGDSjs.SaveConflictError; exports.TIME_PRESETS = _chunkHZEXKGDSjs.TIME_PRESETS; exports.UNIT_CHOICES = _chunkHZEXKGDSjs.UNIT_CHOICES; exports.addTime = _chunkHZEXKGDSjs.addTime; exports.appSchema = _chunkHZEXKGDSjs.appSchema; exports.applyDashboardLink = _chunkHZEXKGDSjs.applyDashboardLink; exports.applyJsonEdits = _chunkHZEXKGDSjs.applyJsonEdits; exports.applyTransformations = _chunkHZEXKGDSjs.applyTransformations; exports.assembleBundle = _chunkHZEXKGDSjs.assembleBundle; exports.assembleFromResponse = _chunkHZEXKGDSjs.assembleFromResponse; exports.buildFrames = _chunkHZEXKGDSjs.buildFrames; exports.bundleFromFiles = _chunkHZEXKGDSjs.bundleFromFiles; exports.bundleRoot = _chunkHZEXKGDSjs.bundleRoot; exports.calculateInterval = _chunkHZEXKGDSjs.calculateInterval; exports.checkFiles = _chunkHZEXKGDSjs.checkFiles; exports.cleanDashboard = _chunkHZEXKGDSjs.cleanDashboard; exports.cleanPanelOptions = _chunkHZEXKGDSjs.cleanPanelOptions; exports.collapseRow = _chunkHZEXKGDSjs.collapseRow; exports.compactGrid = _chunkHZEXKGDSjs.compactGrid; exports.darkTheme = darkTheme; exports.dashboardSchema = _chunkHZEXKGDSjs.dashboardSchema; exports.dashboardSchemaIssues = _chunkHZEXKGDSjs.dashboardSchemaIssues; exports.dashboardSourceIds = _chunkHZEXKGDSjs.dashboardSourceIds; exports.defaultFetchJson = _chunkHZEXKGDSjs.defaultFetchJson; exports.describeRange = _chunkHZEXKGDSjs.describeRange; exports.diffJson = _chunkHZEXKGDSjs.diffJson; exports.documentIdFor = _chunkHZEXKGDSjs.documentIdFor; exports.documentUses = _chunkHZEXKGDSjs.documentUses; exports.dropTarget = _chunkHZEXKGDSjs.dropTarget; exports.duplicatePanel = _chunkHZEXKGDSjs.duplicatePanel; exports.entriesSavedWith = _chunkHZEXKGDSjs.entriesSavedWith; exports.entryToInputValue = _chunkHZEXKGDSjs.entryToInputValue; exports.expandRow = _chunkHZEXKGDSjs.expandRow; exports.fetchBundle = _chunkHZEXKGDSjs.fetchBundle; exports.fetchJsonWithToken = _chunkHZEXKGDSjs.fetchJsonWithToken; exports.fieldDisplayName = _chunkHZEXKGDSjs.fieldDisplayName; exports.fieldMatches = _chunkHZEXKGDSjs.fieldMatches; exports.formatClock = _chunkHZEXKGDSjs.formatClock; exports.formatDisplay = _chunkHZEXKGDSjs.formatDisplay; exports.formatDuration = _chunkHZEXKGDSjs.formatDuration; exports.formatJsonText = _chunkHZEXKGDSjs.formatJsonText; exports.formatLocalDateTime = _chunkHZEXKGDSjs.formatLocalDateTime; exports.formatValue = _chunkHZEXKGDSjs.formatValue; exports.frameLength = _chunkHZEXKGDSjs.frameLength; exports.framesToOptions = _chunkHZEXKGDSjs.framesToOptions; exports.fromWire = _chunkHZEXKGDSjs.fromWire; exports.getPath = _chunkHZEXKGDSjs.getPath; exports.gridOffsetPx = _chunkHZEXKGDSjs.gridOffsetPx; exports.gridUnitsToPx = _chunkHZEXKGDSjs.gridUnitsToPx; exports.httpFetchJson = _chunkHZEXKGDSjs.httpFetchJson; exports.initialVariableValues = _chunkHZEXKGDSjs.initialVariableValues; exports.inputPanels = _chunkHZEXKGDSjs.inputPanels; exports.inputProblem = _chunkHZEXKGDSjs.inputProblem; exports.insertPanel = _chunkHZEXKGDSjs.insertPanel; exports.interpolate = _chunkHZEXKGDSjs.interpolate; exports.interpolateDeep = _chunkHZEXKGDSjs.interpolateDeep; exports.isBundleResponse = _chunkHZEXKGDSjs.isBundleResponse; exports.isEditableVariableType = _chunkHZEXKGDSjs.isEditableVariableType; exports.isInputPanel = _chunkHZEXKGDSjs.isInputPanel; exports.isInputType = _chunkHZEXKGDSjs.isInputType; exports.isLocalDatasource = _chunkHZEXKGDSjs.isLocalDatasource; exports.isReducer = _chunkHZEXKGDSjs.isReducer; exports.isRow = _chunkHZEXKGDSjs.isRow; exports.isSqlDatasource = _chunkHZEXKGDSjs.isSqlDatasource; exports.layoutCanvas = _chunkHZEXKGDSjs.layoutCanvas; exports.layoutDashboard = _chunkHZEXKGDSjs.layoutDashboard; exports.lightTheme = lightTheme; exports.lineColumn = _chunkHZEXKGDSjs.lineColumn; exports.loadGazetteer = _chunkHZEXKGDSjs.loadGazetteer; exports.locate = _chunkHZEXKGDSjs.locate; exports.manifestSchemaIssues = _chunkHZEXKGDSjs.manifestSchemaIssues; exports.mappedResult = _chunkHZEXKGDSjs.mappedResult; exports.mappingProblem = _chunkHZEXKGDSjs.mappingProblem; exports.mappingRow = _chunkHZEXKGDSjs.mappingRow; exports.mappingRows = _chunkHZEXKGDSjs.mappingRows; exports.metricChanges = _chunkHZEXKGDSjs.metricChanges; exports.movePanel = _chunkHZEXKGDSjs.movePanel; exports.newDocument = _chunkHZEXKGDSjs.newDocument; exports.newPanel = _chunkHZEXKGDSjs.newPanel; exports.newVariable = _chunkHZEXKGDSjs.newVariable; exports.nextPanelId = _chunkHZEXKGDSjs.nextPanelId; exports.normalizeRef = _chunkHZEXKGDSjs.normalizeRef; exports.numberFields = _chunkHZEXKGDSjs.numberFields; exports.optionValue = _chunkHZEXKGDSjs.optionValue; exports.overrideProperties = _chunkHZEXKGDSjs.overrideProperties; exports.panelEdits = _chunkHZEXKGDSjs.panelEdits; exports.panelHasQueries = _chunkHZEXKGDSjs.panelHasQueries; exports.panelKey = _chunkHZEXKGDSjs.panelKey; exports.panelOptions = _chunkHZEXKGDSjs.panelOptions; exports.panelOverrides = _chunkHZEXKGDSjs.panelOverrides; exports.panelSize = _chunkHZEXKGDSjs.panelSize; exports.panelSpan = _chunkHZEXKGDSjs.panelSpan; exports.parseClockDigits = _chunkHZEXKGDSjs.parseClockDigits; exports.parseDashboardLink = _chunkHZEXKGDSjs.parseDashboardLink; exports.parseDuration = _chunkHZEXKGDSjs.parseDuration; exports.parseGazetteer = _chunkHZEXKGDSjs.parseGazetteer; exports.parseJsonText = _chunkHZEXKGDSjs.parseJsonText; exports.parseLocalDateTime = _chunkHZEXKGDSjs.parseLocalDateTime; exports.parseRange = _chunkHZEXKGDSjs.parseRange; exports.parseTime = _chunkHZEXKGDSjs.parseTime; exports.placePanel = _chunkHZEXKGDSjs.placePanel; exports.pointerToPath = _chunkHZEXKGDSjs.pointerToPath; exports.prepareDashboard = _chunkHZEXKGDSjs.prepareDashboard; exports.queryPanel = _chunkHZEXKGDSjs.queryPanel; exports.queryParam = _chunkHZEXKGDSjs.queryParam; exports.readConfigFiles = _chunkHZEXKGDSjs.readConfigFiles; exports.readingOrder = _chunkHZEXKGDSjs.readingOrder; exports.reduce = _chunkHZEXKGDSjs.reduce; exports.refineOptions = _chunkHZEXKGDSjs.refineOptions; exports.refreshedVariables = _chunkHZEXKGDSjs.refreshedVariables; exports.registerPanel = registerPanel; exports.removeDocumentFromManifest = _chunkHZEXKGDSjs.removeDocumentFromManifest; exports.removePanel = _chunkHZEXKGDSjs.removePanel; exports.renameDocumentInManifest = _chunkHZEXKGDSjs.renameDocumentInManifest; exports.renameVariableInPanels = _chunkHZEXKGDSjs.renameVariableInPanels; exports.repack = _chunkHZEXKGDSjs.repack; exports.repeatOptions = _chunkHZEXKGDSjs.repeatOptions; exports.resizePanel = _chunkHZEXKGDSjs.resizePanel; exports.resolveColor = _chunkHZEXKGDSjs.resolveColor; exports.resolveFieldConfig = _chunkHZEXKGDSjs.resolveFieldConfig; exports.resolveLinks = _chunkHZEXKGDSjs.resolveLinks; exports.resolveTimezone = _chunkHZEXKGDSjs.resolveTimezone; exports.resolveUrl = _chunkHZEXKGDSjs.resolveUrl; exports.resolveVariables = _chunkHZEXKGDSjs.resolveVariables; exports.revalidateBundle = _chunkHZEXKGDSjs.revalidateBundle; exports.rowsToMappings = _chunkHZEXKGDSjs.rowsToMappings; exports.sampleEntries = _chunkHZEXKGDSjs.sampleEntries; exports.screenDocuments = _chunkHZEXKGDSjs.screenDocuments; exports.screenOfType = _chunkHZEXKGDSjs.screenOfType; exports.selectValue = _chunkHZEXKGDSjs.selectValue; exports.seriesColor = _chunkHZEXKGDSjs.seriesColor; exports.setHiddenOnPhones = _chunkHZEXKGDSjs.setHiddenOnPhones; exports.setJsonValue = _chunkHZEXKGDSjs.setJsonValue; exports.setOption = _chunkHZEXKGDSjs.setOption; exports.setOptionValue = _chunkHZEXKGDSjs.setOptionValue; exports.setOverrides = _chunkHZEXKGDSjs.setOverrides; exports.settleLayout = _chunkHZEXKGDSjs.settleLayout; exports.snapToGrid = _chunkHZEXKGDSjs.snapToGrid; exports.splitPath = _chunkHZEXKGDSjs.splitPath; exports.startOf = _chunkHZEXKGDSjs.startOf; exports.stringifyCompact = _chunkHZEXKGDSjs.stringifyCompact; exports.tabIdFor = _chunkHZEXKGDSjs.tabIdFor; exports.textSuggestions = _chunkHZEXKGDSjs.textSuggestions; exports.thresholdStep = _chunkHZEXKGDSjs.thresholdStep; exports.timeExprError = _chunkHZEXKGDSjs.timeExprError; exports.timeField = _chunkHZEXKGDSjs.timeField; exports.toEntries = _chunkHZEXKGDSjs.toEntries; exports.toMillis = _chunkHZEXKGDSjs.toMillis; exports.toSeries = _chunkHZEXKGDSjs.toSeries; exports.toXYSeries = _chunkHZEXKGDSjs.toXYSeries; exports.uniqueNames = _chunkHZEXKGDSjs.uniqueNames; exports.useDashTheme = useDashTheme; exports.useDashboard = useDashboard; exports.useInputForm = useInputForm; exports.usePanelData = usePanelData; exports.validateBundle = _chunkHZEXKGDSjs.validateBundle; exports.validateDashboard = _chunkHZEXKGDSjs.validateDashboard; exports.validateManifest = _chunkHZEXKGDSjs.validateManifest; exports.valueColor = _chunkHZEXKGDSjs.valueColor; exports.valueText = _chunkHZEXKGDSjs.valueText; exports.variableDependents = _chunkHZEXKGDSjs.variableDependents; exports.variableInfo = _chunkHZEXKGDSjs.variableInfo; exports.variableNameError = _chunkHZEXKGDSjs.variableNameError; exports.variableOptions = _chunkHZEXKGDSjs.variableOptions; exports.variableOrder = _chunkHZEXKGDSjs.variableOrder; exports.variableReferences = _chunkHZEXKGDSjs.variableReferences; exports.variableUses = _chunkHZEXKGDSjs.variableUses; exports.variableWithCurrent = _chunkHZEXKGDSjs.variableWithCurrent; exports.variableWithFlags = _chunkHZEXKGDSjs.variableWithFlags; exports.variableWithQuery = _chunkHZEXKGDSjs.variableWithQuery; exports.variableWithType = _chunkHZEXKGDSjs.variableWithType; exports.visibleVariables = _chunkHZEXKGDSjs.visibleVariables; exports.zoomRange = _chunkHZEXKGDSjs.zoomRange;