@modelform/react-native 0.2.0 → 0.4.0

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