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