@modelform/react-native 0.7.0 → 0.9.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
@@ -220,7 +220,9 @@
220
220
 
221
221
 
222
222
 
223
- var _chunkYUXA7I4Jjs = require('./chunk-YUXA7I4J.js');
223
+
224
+
225
+ var _chunkFBZDJWT2js = require('./chunk-FBZDJWT2.js');
224
226
 
225
227
  // src/ui/theme.tsx
226
228
  var _react = require('react');
@@ -410,7 +412,7 @@ function DashboardProvider({ dashboard, resolve, refreshKey: externalKey = 0, on
410
412
  if (!dashboard.refresh) return;
411
413
  let ms;
412
414
  try {
413
- ms = _chunkYUXA7I4Jjs.parseDuration.call(void 0, dashboard.refresh);
415
+ ms = _chunkFBZDJWT2js.parseDuration.call(void 0, dashboard.refresh);
414
416
  } catch (e2) {
415
417
  return;
416
418
  }
@@ -418,7 +420,7 @@ function DashboardProvider({ dashboard, resolve, refreshKey: externalKey = 0, on
418
420
  return () => clearInterval(id);
419
421
  }, [dashboard.refresh, refresh]);
420
422
  const refreshKey = tick + externalKey;
421
- const range3 = _react.useMemo.call(void 0, () => _chunkYUXA7I4Jjs.parseRange.call(void 0, rawRange), [rawRange, refreshKey]);
423
+ const range3 = _react.useMemo.call(void 0, () => _chunkFBZDJWT2js.parseRange.call(void 0, rawRange), [rawRange, refreshKey]);
422
424
  const shared = _react.useMemo.call(void 0, () => /* @__PURE__ */ new Map(), [range3, vars.variables, vars.variableInfo]);
423
425
  const value = _react.useMemo.call(void 0,
424
426
  () => ({
@@ -455,8 +457,8 @@ function DashboardProvider({ dashboard, resolve, refreshKey: externalKey = 0, on
455
457
  ] });
456
458
  }
457
459
  function useDashboardVariables(dashboard, resolve, rawRange) {
458
- const [state, setState] = _react.useState.call(void 0, () => ({ values: _chunkYUXA7I4Jjs.initialVariableValues.call(void 0, dashboard), options: {}, errors: {} }));
459
- const [resolving, setResolving] = _react.useState.call(void 0, () => !!resolve && _chunkYUXA7I4Jjs.refreshedVariables.call(void 0, dashboard, "load").length > 0);
460
+ const [state, setState] = _react.useState.call(void 0, () => ({ values: _chunkFBZDJWT2js.initialVariableValues.call(void 0, dashboard), options: {}, errors: {} }));
461
+ const [resolving, setResolving] = _react.useState.call(void 0, () => !!resolve && _chunkFBZDJWT2js.refreshedVariables.call(void 0, dashboard, "load").length > 0);
460
462
  const [runKey, setRunKey] = _react.useState.call(void 0, 0);
461
463
  const pending = _react.useRef.call(void 0, /* @__PURE__ */ new Set());
462
464
  const stateRef = _react.useRef.call(void 0, state);
@@ -489,7 +491,7 @@ function useDashboardVariables(dashboard, resolve, rawRange) {
489
491
  setState(update);
490
492
  setResolving(false);
491
493
  };
492
- _chunkYUXA7I4Jjs.resolveVariables.call(void 0, dashboard, { values, options, names, resolve: resolve2, range: _chunkYUXA7I4Jjs.parseRange.call(void 0, rawRange), signal: controller.signal }).then(
494
+ _chunkFBZDJWT2js.resolveVariables.call(void 0, dashboard, { values, options, names, resolve: resolve2, range: _chunkFBZDJWT2js.parseRange.call(void 0, rawRange), signal: controller.signal }).then(
493
495
  (res) => finish((s) => ({
494
496
  // Only the re-run variables change, so a pick made while this ran isn't overwritten.
495
497
  values: { ...s.values, ...Object.fromEntries([...names].filter((n) => n in res.values).map((n) => [n, res.values[n]])) },
@@ -503,11 +505,11 @@ function useDashboardVariables(dashboard, resolve, rawRange) {
503
505
  const [loadedDashboard, setLoadedDashboard] = _react.useState.call(void 0, dashboard);
504
506
  if (dashboard !== loadedDashboard) {
505
507
  setLoadedDashboard(dashboard);
506
- setState((s) => ({ ...s, values: { ..._chunkYUXA7I4Jjs.initialVariableValues.call(void 0, dashboard), ...s.values } }));
508
+ setState((s) => ({ ...s, values: { ..._chunkFBZDJWT2js.initialVariableValues.call(void 0, dashboard), ...s.values } }));
507
509
  }
508
510
  _react.useEffect.call(void 0, () => {
509
- const roots = _chunkYUXA7I4Jjs.refreshedVariables.call(void 0, dashboard, "load");
510
- schedule([...roots, ..._chunkYUXA7I4Jjs.variableDependents.call(void 0, dashboard, roots)]);
511
+ const roots = _chunkFBZDJWT2js.refreshedVariables.call(void 0, dashboard, "load");
512
+ schedule([...roots, ..._chunkFBZDJWT2js.variableDependents.call(void 0, dashboard, roots)]);
511
513
  }, [dashboard, schedule]);
512
514
  const mounted = _react.useRef.call(void 0, false);
513
515
  _react.useEffect.call(void 0, () => {
@@ -515,17 +517,17 @@ function useDashboardVariables(dashboard, resolve, rawRange) {
515
517
  mounted.current = true;
516
518
  return;
517
519
  }
518
- const roots = _chunkYUXA7I4Jjs.refreshedVariables.call(void 0, dashboard, "range");
519
- schedule([...roots, ..._chunkYUXA7I4Jjs.variableDependents.call(void 0, dashboard, roots)]);
520
+ const roots = _chunkFBZDJWT2js.refreshedVariables.call(void 0, dashboard, "range");
521
+ schedule([...roots, ..._chunkFBZDJWT2js.variableDependents.call(void 0, dashboard, roots)]);
520
522
  }, [rawRange]);
521
523
  const setVariable = _react.useCallback.call(void 0,
522
524
  (name, value) => {
523
525
  setState((s) => ({ ...s, values: { ...s.values, [name]: value } }));
524
- schedule(_chunkYUXA7I4Jjs.variableDependents.call(void 0, dashboard, [name]));
526
+ schedule(_chunkFBZDJWT2js.variableDependents.call(void 0, dashboard, [name]));
525
527
  },
526
528
  [dashboard, schedule]
527
529
  );
528
- const info = _react.useMemo.call(void 0, () => _chunkYUXA7I4Jjs.variableInfo.call(void 0, dashboard, state.options), [dashboard, state.options]);
530
+ const info = _react.useMemo.call(void 0, () => _chunkFBZDJWT2js.variableInfo.call(void 0, dashboard, state.options), [dashboard, state.options]);
529
531
  return _react.useMemo.call(void 0,
530
532
  () => ({
531
533
  variables: state.values,
@@ -555,7 +557,7 @@ function usePanelData(panel, widthPx, enabled = true) {
555
557
  _react.useEffect.call(void 0, () => {
556
558
  if (!enabled || !request || !variablesReady) return;
557
559
  const controller = new AbortController();
558
- _chunkYUXA7I4Jjs.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))) }));
560
+ _chunkFBZDJWT2js.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))) }));
559
561
  return () => controller.abort();
560
562
  }, [enabled, request, variablesReady]);
561
563
  if (!enabled) return IDLE;
@@ -565,7 +567,7 @@ function usePanelData(panel, widthPx, enabled = true) {
565
567
  function usePanelLinks(panel) {
566
568
  const { dashboard, variables, variableInfo: variableInfo2, range: range3, openLinks } = useDashboard();
567
569
  const resolve = _react.useCallback.call(void 0,
568
- (links, data) => _chunkYUXA7I4Jjs.resolveLinks.call(void 0, links, { dashboard, values: variables, info: variableInfo2, scoped: panel.scopedVars, range: range3, timezone: dashboard.timezone, data }),
570
+ (links, data) => _chunkFBZDJWT2js.resolveLinks.call(void 0, links, { dashboard, values: variables, info: variableInfo2, scoped: panel.scopedVars, range: range3, timezone: dashboard.timezone, data }),
569
571
  [dashboard, variables, variableInfo2, panel.scopedVars, range3]
570
572
  );
571
573
  return { resolve, openLinks };
@@ -606,7 +608,7 @@ var RenderBoundary = (_class = class extends _react.Component {constructor(...ar
606
608
 
607
609
  // src/ui/inputs/formContext.ts
608
610
 
609
- var groupKey = (g) => g.id != null ? `#${g.id}` : _chunkYUXA7I4Jjs.groupFields.call(void 0, g).map((f) => f.options.metric).join("|");
611
+ var groupKey = (g) => g.id != null ? `#${g.id}` : _chunkFBZDJWT2js.groupFields.call(void 0, g).map((f) => f.options.metric).join("|");
610
612
  var InputFormContext = _react.createContext.call(void 0, null);
611
613
  function useInputForm() {
612
614
  const v = _react.useContext.call(void 0, InputFormContext);
@@ -667,14 +669,14 @@ var ArrowIcon = ({ color, dir }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
667
669
  function displayExpr(expr) {
668
670
  if (expr.trim().startsWith("now")) return expr;
669
671
  try {
670
- return _chunkYUXA7I4Jjs.formatLocalDateTime.call(void 0, _chunkYUXA7I4Jjs.parseTime.call(void 0, expr));
672
+ return _chunkFBZDJWT2js.formatLocalDateTime.call(void 0, _chunkFBZDJWT2js.parseTime.call(void 0, expr));
671
673
  } catch (e3) {
672
674
  return expr;
673
675
  }
674
676
  }
675
677
  function tryParse(expr, roundUp, now = Date.now()) {
676
678
  try {
677
- return _chunkYUXA7I4Jjs.parseTime.call(void 0, expr, now, roundUp);
679
+ return _chunkFBZDJWT2js.parseTime.call(void 0, expr, now, roundUp);
678
680
  } catch (e4) {
679
681
  return null;
680
682
  }
@@ -688,7 +690,7 @@ function endOfDay(ms) {
688
690
  return new Date(d.getFullYear(), d.getMonth(), d.getDate() + 1).getTime() - 1e3;
689
691
  }
690
692
  function resolveTo(expr) {
691
- return /^\s*\d{4}-\d{1,2}-\d{1,2}\s*$/.test(expr) ? _chunkYUXA7I4Jjs.formatLocalDateTime.call(void 0, endOfDay(_chunkYUXA7I4Jjs.parseTime.call(void 0, expr))) : expr;
693
+ return /^\s*\d{4}-\d{1,2}-\d{1,2}\s*$/.test(expr) ? _chunkFBZDJWT2js.formatLocalDateTime.call(void 0, endOfDay(_chunkFBZDJWT2js.parseTime.call(void 0, expr))) : expr;
692
694
  }
693
695
  function TimeRangeSheet({ visible, value, onApply, onClose }) {
694
696
  const theme = useDashTheme();
@@ -699,12 +701,12 @@ function TimeRangeSheet({ visible, value, onApply, onClose }) {
699
701
  const [now] = _react.useState.call(void 0, () => Date.now());
700
702
  const [month, setMonth] = _react.useState.call(void 0, () => new Date(_nullishCoalesce(tryParse(value.from, false), () => ( now))));
701
703
  const fromMs = tryParse(from, false, now);
702
- const toMs = tryParse(_chunkYUXA7I4Jjs.timeExprError.call(void 0, to) ? to : resolveTo(to), true, now);
703
- const fromError = _chunkYUXA7I4Jjs.timeExprError.call(void 0, from);
704
- const toError = _chunkYUXA7I4Jjs.timeExprError.call(void 0, to);
704
+ const toMs = tryParse(_chunkFBZDJWT2js.timeExprError.call(void 0, to) ? to : resolveTo(to), true, now);
705
+ const fromError = _chunkFBZDJWT2js.timeExprError.call(void 0, from);
706
+ const toError = _chunkFBZDJWT2js.timeExprError.call(void 0, to);
705
707
  const orderError = fromMs != null && toMs != null && fromMs >= toMs ? "\u201CTo\u201D must be after \u201CFrom\u201D" : null;
706
708
  const valid = !fromError && !toError && !orderError;
707
- const normalize = (expr) => expr.trim().startsWith("now") ? expr.trim() : _chunkYUXA7I4Jjs.formatLocalDateTime.call(void 0, _chunkYUXA7I4Jjs.parseTime.call(void 0, expr));
709
+ const normalize = (expr) => expr.trim().startsWith("now") ? expr.trim() : _chunkFBZDJWT2js.formatLocalDateTime.call(void 0, _chunkFBZDJWT2js.parseTime.call(void 0, expr));
708
710
  const apply = () => {
709
711
  if (!valid) return;
710
712
  onApply({ from: normalize(from), to: normalize(resolveTo(to)) });
@@ -713,14 +715,14 @@ function TimeRangeSheet({ visible, value, onApply, onClose }) {
713
715
  const pickDay = (day) => {
714
716
  const end = endOfDay(day);
715
717
  if (active === "from") {
716
- setFrom(_chunkYUXA7I4Jjs.formatLocalDateTime.call(void 0, day));
717
- if (toMs == null || toMs <= day) setTo(_chunkYUXA7I4Jjs.formatLocalDateTime.call(void 0, end));
718
+ setFrom(_chunkFBZDJWT2js.formatLocalDateTime.call(void 0, day));
719
+ if (toMs == null || toMs <= day) setTo(_chunkFBZDJWT2js.formatLocalDateTime.call(void 0, end));
718
720
  setActive("to");
719
721
  } else if (fromMs != null && day < startOfDay(fromMs)) {
720
- setFrom(_chunkYUXA7I4Jjs.formatLocalDateTime.call(void 0, day));
721
- setTo(_chunkYUXA7I4Jjs.formatLocalDateTime.call(void 0, end));
722
+ setFrom(_chunkFBZDJWT2js.formatLocalDateTime.call(void 0, day));
723
+ setTo(_chunkFBZDJWT2js.formatLocalDateTime.call(void 0, end));
722
724
  } else {
723
- setTo(_chunkYUXA7I4Jjs.formatLocalDateTime.call(void 0, end));
725
+ setTo(_chunkFBZDJWT2js.formatLocalDateTime.call(void 0, end));
724
726
  }
725
727
  };
726
728
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -756,7 +758,7 @@ function TimeRangeSheet({ visible, value, onApply, onClose }) {
756
758
  }
757
759
  ),
758
760
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles3.sectionTitle, { color: theme.textSecondary }], children: "Relative ranges" }),
759
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: styles3.chips, children: _chunkYUXA7I4Jjs.RELATIVE_RANGES.map((r) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
761
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: styles3.chips, children: _chunkFBZDJWT2js.RELATIVE_RANGES.map((r) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
760
762
  Chip,
761
763
  {
762
764
  label: r.label,
@@ -900,17 +902,17 @@ var FilterIcon = ({ color }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _re
900
902
  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" }) });
901
903
  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" }) });
902
904
  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" }) });
903
- function DashboardToolbar({ presets = _chunkYUXA7I4Jjs.TIME_PRESETS }) {
905
+ function DashboardToolbar({ presets = _chunkFBZDJWT2js.TIME_PRESETS }) {
904
906
  const theme = useDashTheme();
905
907
  const { dashboard, rawRange, setRawRange, variables, variableErrors } = useDashboard();
906
908
  const [filtersOpen, setFiltersOpen] = _react.useState.call(void 0, false);
907
909
  const [rangeOpen, setRangeOpen] = _react.useState.call(void 0, false);
908
910
  const [rangeKey, setRangeKey] = _react.useState.call(void 0, 0);
909
911
  const custom = !presets.some((p) => rawRange.from === p.from && rawRange.to === p.to);
910
- const vars = _chunkYUXA7I4Jjs.visibleVariables.call(void 0, dashboard);
912
+ const vars = _chunkFBZDJWT2js.visibleVariables.call(void 0, dashboard);
911
913
  const active = vars.filter((v) => {
912
914
  const cur = variables[v.name];
913
- return v.includeAll && cur != null && !(Array.isArray(cur) ? cur.includes(_chunkYUXA7I4Jjs.ALL) : cur === _chunkYUXA7I4Jjs.ALL);
915
+ return v.includeAll && cur != null && !(Array.isArray(cur) ? cur.includes(_chunkFBZDJWT2js.ALL) : cur === _chunkFBZDJWT2js.ALL);
914
916
  }).length;
915
917
  const hasError = vars.some((v) => variableErrors[v.name]);
916
918
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { style: styles4.toolbar, children: [
@@ -936,7 +938,7 @@ function DashboardToolbar({ presets = _chunkYUXA7I4Jjs.TIME_PRESETS }) {
936
938
  setRangeOpen(true);
937
939
  },
938
940
  accessibilityRole: "button",
939
- accessibilityLabel: custom ? `Time range, ${_chunkYUXA7I4Jjs.describeRange.call(void 0, rawRange)}` : "Custom time range",
941
+ accessibilityLabel: custom ? `Time range, ${_chunkFBZDJWT2js.describeRange.call(void 0, rawRange)}` : "Custom time range",
940
942
  style: ({ pressed }) => [
941
943
  custom ? styles4.rangeButton : styles4.iconButton,
942
944
  { borderColor: custom ? theme.accent : theme.border, backgroundColor: theme.surface },
@@ -944,7 +946,7 @@ function DashboardToolbar({ presets = _chunkYUXA7I4Jjs.TIME_PRESETS }) {
944
946
  ],
945
947
  children: [
946
948
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CalendarIcon, { color: custom ? theme.accent : theme.textSecondary }),
947
- custom && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles4.rangeLabel, { color: theme.accent }], numberOfLines: 1, children: _chunkYUXA7I4Jjs.describeRange.call(void 0, rawRange) })
949
+ custom && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles4.rangeLabel, { color: theme.accent }], numberOfLines: 1, children: _chunkFBZDJWT2js.describeRange.call(void 0, rawRange) })
948
950
  ]
949
951
  }
950
952
  ),
@@ -1000,14 +1002,14 @@ function FilterSection({ variable: v, open, onToggle }) {
1000
1002
  const theme = useDashTheme();
1001
1003
  const { variables, variableInfo: variableInfo2, variableErrors, variablesReady, setVariable } = useDashboard();
1002
1004
  const current = variables[v.name];
1003
- const summary = _chunkYUXA7I4Jjs.valueText.call(void 0, current, variableInfo2[v.name]) || (variablesReady ? "None" : "\u2026");
1004
- const options = [...v.includeAll ? [{ text: "All", value: _chunkYUXA7I4Jjs.ALL }] : [], ..._nullishCoalesce(_optionalChain([variableInfo2, 'access', _9 => _9[v.name], 'optionalAccess', _10 => _10.options]), () => ( []))];
1005
+ const summary = _chunkFBZDJWT2js.valueText.call(void 0, current, variableInfo2[v.name]) || (variablesReady ? "None" : "\u2026");
1006
+ const options = [...v.includeAll ? [{ text: "All", value: _chunkFBZDJWT2js.ALL }] : [], ..._nullishCoalesce(_optionalChain([variableInfo2, 'access', _9 => _9[v.name], 'optionalAccess', _10 => _10.options]), () => ( []))];
1005
1007
  const error = variableErrors[v.name];
1006
1008
  const choose = (value, selected) => {
1007
- if (v.multi && value !== _chunkYUXA7I4Jjs.ALL) {
1008
- const cur = (Array.isArray(current) ? current : [current]).filter((c) => c && c !== _chunkYUXA7I4Jjs.ALL);
1009
+ if (v.multi && value !== _chunkFBZDJWT2js.ALL) {
1010
+ const cur = (Array.isArray(current) ? current : [current]).filter((c) => c && c !== _chunkFBZDJWT2js.ALL);
1009
1011
  const next = selected ? cur.filter((c) => c !== value) : [...cur, value];
1010
- setVariable(v.name, next.length ? next : [_chunkYUXA7I4Jjs.ALL]);
1012
+ setVariable(v.name, next.length ? next : [_chunkFBZDJWT2js.ALL]);
1011
1013
  } else {
1012
1014
  setVariable(v.name, v.multi ? [value] : value);
1013
1015
  if (!v.multi) onToggle();
@@ -1147,7 +1149,7 @@ function barCategory(panel, frame) {
1147
1149
  }
1148
1150
  function categoryLabels(field) {
1149
1151
  if (field.type !== "time") return field.values.map((v) => v == null ? "" : String(v));
1150
- const times = field.values.map((v) => v == null ? null : _chunkYUXA7I4Jjs.toMillis.call(void 0, v));
1152
+ const times = field.values.map((v) => v == null ? null : _chunkFBZDJWT2js.toMillis.call(void 0, v));
1151
1153
  let step = Infinity;
1152
1154
  times.forEach((t, i) => {
1153
1155
  const prev = times[i - 1];
@@ -1193,19 +1195,19 @@ function formatTooltipTime(t) {
1193
1195
  return new Date(t).toLocaleString(void 0, { month: "short", day: "numeric", hour: "2-digit", minute: "2-digit" });
1194
1196
  }
1195
1197
  function styledSeries(panel, frames, scheme) {
1196
- return styleSeries(panel, _chunkYUXA7I4Jjs.toSeries.call(void 0, frames), frames, scheme);
1198
+ return styleSeries(panel, _chunkFBZDJWT2js.toSeries.call(void 0, frames), frames, scheme);
1197
1199
  }
1198
1200
  function styledXYSeries(panel, frames, scheme) {
1199
- const { series, x } = _chunkYUXA7I4Jjs.toXYSeries.call(void 0, frames, _optionalChain([panel, 'access', _18 => _18.options, 'optionalAccess', _19 => _19.xField]) || void 0);
1200
- const xConfig = x ? _chunkYUXA7I4Jjs.resolveFieldConfig.call(void 0, panel, x.field, x.frame, x.field.name) : {};
1201
+ const { series, x } = _chunkFBZDJWT2js.toXYSeries.call(void 0, frames, _optionalChain([panel, 'access', _18 => _18.options, 'optionalAccess', _19 => _19.xField]) || void 0);
1202
+ const xConfig = x ? _chunkFBZDJWT2js.resolveFieldConfig.call(void 0, panel, x.field, x.frame, x.field.name) : {};
1201
1203
  return { series: styleSeries(panel, series, frames, scheme), xConfig };
1202
1204
  }
1203
1205
  function styleSeries(panel, series, frames, scheme) {
1204
1206
  const frameOf = /* @__PURE__ */ new Map();
1205
1207
  frames.forEach((f) => f.fields.forEach((field) => frameOf.set(field, f)));
1206
1208
  return series.map((s, i) => {
1207
- const config = _chunkYUXA7I4Jjs.resolveFieldConfig.call(void 0, panel, s.field, frameOf.get(s.field), s.name);
1208
- return { ...s, name: _nullishCoalesce(config.displayName, () => ( s.name)), config, color: _chunkYUXA7I4Jjs.seriesColor.call(void 0, i, scheme, config) };
1209
+ const config = _chunkFBZDJWT2js.resolveFieldConfig.call(void 0, panel, s.field, frameOf.get(s.field), s.name);
1210
+ return { ...s, name: _nullishCoalesce(config.displayName, () => ( s.name)), config, color: _chunkFBZDJWT2js.seriesColor.call(void 0, i, scheme, config) };
1209
1211
  });
1210
1212
  }
1211
1213
  function reducedValues(panel, frames, scheme) {
@@ -1213,30 +1215,30 @@ function reducedValues(panel, frames, scheme) {
1213
1215
  const out = [];
1214
1216
  const multiple = frames.length > 1;
1215
1217
  frames.forEach(
1216
- (frame, fi) => _chunkYUXA7I4Jjs.numberFields.call(void 0, frame).forEach((field) => {
1217
- const raw = _chunkYUXA7I4Jjs.fieldDisplayName.call(void 0, field, frame, multiple);
1218
- const config = _chunkYUXA7I4Jjs.resolveFieldConfig.call(void 0, panel, field, frame, raw);
1218
+ (frame, fi) => _chunkFBZDJWT2js.numberFields.call(void 0, frame).forEach((field) => {
1219
+ const raw = _chunkFBZDJWT2js.fieldDisplayName.call(void 0, field, frame, multiple);
1220
+ const config = _chunkFBZDJWT2js.resolveFieldConfig.call(void 0, panel, field, frame, raw);
1219
1221
  const values = field.values.map((v) => v == null ? null : Number(v));
1220
- const value = _chunkYUXA7I4Jjs.reduce.call(void 0, values, calc);
1221
- const color = _chunkYUXA7I4Jjs.seriesColor.call(void 0, out.length, scheme, config);
1222
- const step = _chunkYUXA7I4Jjs.thresholdStep.call(void 0, value, config);
1223
- const mapped = _chunkYUXA7I4Jjs.mappedResult.call(void 0, value, config);
1222
+ const value = _chunkFBZDJWT2js.reduce.call(void 0, values, calc);
1223
+ const color = _chunkFBZDJWT2js.seriesColor.call(void 0, out.length, scheme, config);
1224
+ const step = _chunkFBZDJWT2js.thresholdStep.call(void 0, value, config);
1225
+ const mapped = _chunkFBZDJWT2js.mappedResult.call(void 0, value, config);
1224
1226
  out.push({
1225
1227
  key: `${fi}/${field.name}/${JSON.stringify(_nullishCoalesce(field.labels, () => ( {})))}`,
1226
1228
  name: _nullishCoalesce(config.displayName, () => ( raw)),
1227
1229
  value,
1228
- text: _optionalChain([mapped, 'optionalAccess', _24 => _24.text]) || _chunkYUXA7I4Jjs.formatValue.call(void 0, value, config),
1230
+ text: _optionalChain([mapped, 'optionalAccess', _24 => _24.text]) || _chunkFBZDJWT2js.formatValue.call(void 0, value, config),
1229
1231
  mapped,
1230
1232
  config,
1231
1233
  color,
1232
- stateColor: _optionalChain([mapped, 'optionalAccess', _25 => _25.color]) ? _chunkYUXA7I4Jjs.resolveColor.call(void 0, mapped.color, color) : step ? _chunkYUXA7I4Jjs.resolveColor.call(void 0, step.color, color) : color,
1234
+ stateColor: _optionalChain([mapped, 'optionalAccess', _25 => _25.color]) ? _chunkFBZDJWT2js.resolveColor.call(void 0, mapped.color, color) : step ? _chunkFBZDJWT2js.resolveColor.call(void 0, step.color, color) : color,
1233
1235
  sparkline: values,
1234
1236
  field,
1235
1237
  frame
1236
1238
  });
1237
1239
  })
1238
1240
  );
1239
- return _chunkYUXA7I4Jjs.uniqueNames.call(void 0, out, (v) => v.field, frames);
1241
+ return _chunkFBZDJWT2js.uniqueNames.call(void 0, out, (v) => v.field, frames);
1240
1242
  }
1241
1243
  function yDomain(series, includeZero) {
1242
1244
  let min = Infinity;
@@ -1297,22 +1299,22 @@ function NoData({ message = "No data" }) {
1297
1299
  }
1298
1300
  function rowTooltipItems(panel, frame, row, multiple) {
1299
1301
  return frame.fields.flatMap((f) => {
1300
- const name = _chunkYUXA7I4Jjs.fieldDisplayName.call(void 0, f, frame, multiple);
1301
- const config = _chunkYUXA7I4Jjs.resolveFieldConfig.call(void 0, panel, f, frame, name);
1302
+ const name = _chunkFBZDJWT2js.fieldDisplayName.call(void 0, f, frame, multiple);
1303
+ const config = _chunkFBZDJWT2js.resolveFieldConfig.call(void 0, panel, f, frame, name);
1302
1304
  if (_optionalChain([config, 'access', _36 => _36.custom, 'optionalAccess', _37 => _37.hideFrom, 'optionalAccess', _38 => _38.tooltip])) return [];
1303
1305
  const v = f.values[row];
1304
- const value = v == null ? "\u2014" : f.type === "number" ? _chunkYUXA7I4Jjs.formatDisplay.call(void 0, Number(v), config) : f.type === "time" ? formatTooltipTime(_chunkYUXA7I4Jjs.toMillis.call(void 0, v)) : String(v);
1306
+ const value = v == null ? "\u2014" : f.type === "number" ? _chunkFBZDJWT2js.formatDisplay.call(void 0, Number(v), config) : f.type === "time" ? formatTooltipTime(_chunkFBZDJWT2js.toMillis.call(void 0, v)) : String(v);
1305
1307
  return [{ name: _nullishCoalesce(config.displayName, () => ( name)), value }];
1306
1308
  });
1307
1309
  }
1308
1310
  function rowLinks(panel, frame, row, multiple, resolve) {
1309
1311
  return mergeLinks(
1310
1312
  frame.fields.flatMap((f) => {
1311
- const name = _chunkYUXA7I4Jjs.fieldDisplayName.call(void 0, f, frame, multiple);
1312
- const config = _chunkYUXA7I4Jjs.resolveFieldConfig.call(void 0, panel, f, frame, name);
1313
+ const name = _chunkFBZDJWT2js.fieldDisplayName.call(void 0, f, frame, multiple);
1314
+ const config = _chunkFBZDJWT2js.resolveFieldConfig.call(void 0, panel, f, frame, name);
1313
1315
  if (!_optionalChain([config, 'access', _39 => _39.links, 'optionalAccess', _40 => _40.length])) return [];
1314
1316
  const v = f.values[row];
1315
- const text = v == null ? void 0 : f.type === "number" ? _chunkYUXA7I4Jjs.formatDisplay.call(void 0, Number(v), config) : String(v);
1317
+ const text = v == null ? void 0 : f.type === "number" ? _chunkFBZDJWT2js.formatDisplay.call(void 0, Number(v), config) : String(v);
1316
1318
  return [{ name: _nullishCoalesce(config.displayName, () => ( name)), links: resolve(config.links, { frame, row, field: f, fieldName: _nullishCoalesce(config.displayName, () => ( name)), value: v, text }) }];
1317
1319
  })
1318
1320
  );
@@ -1325,7 +1327,7 @@ function valueLinks(panel, v, resolve) {
1325
1327
  fieldName: v.name,
1326
1328
  seriesName: v.name,
1327
1329
  value: v.value,
1328
- text: _chunkYUXA7I4Jjs.formatValue.call(void 0, v.value, v.config),
1330
+ text: _chunkFBZDJWT2js.formatValue.call(void 0, v.value, v.config),
1329
1331
  calc: _nullishCoalesce(_optionalChain([panel, 'access', _44 => _44.options, 'optionalAccess', _45 => _45.reduceOptions, 'optionalAccess', _46 => _46.calcs, 'optionalAccess', _47 => _47[0]]), () => ( "lastNotNull"))
1330
1332
  });
1331
1333
  }
@@ -1470,15 +1472,15 @@ function NumberInput({ panel, value, onChange }) {
1470
1472
  }
1471
1473
  function DurationInput({ panel, value, onChange }) {
1472
1474
  const theme = useDashTheme();
1473
- const toDigits = (v) => typeof v === "number" ? _chunkYUXA7I4Jjs.formatClock.call(void 0, v).replace(/\D/g, "").replace(/^0+/, "") : "";
1475
+ const toDigits = (v) => typeof v === "number" ? _chunkFBZDJWT2js.formatClock.call(void 0, v).replace(/\D/g, "").replace(/^0+/, "") : "";
1474
1476
  const [digits, setDigits] = _react.useState.call(void 0, toDigits(value));
1475
1477
  const [syncedValue, setSyncedValue] = _react.useState.call(void 0, value);
1476
1478
  if (value !== syncedValue) {
1477
1479
  setSyncedValue(value);
1478
- setDigits((d) => value == null ? _chunkYUXA7I4Jjs.parseClockDigits.call(void 0, d) == null ? d : "" : _chunkYUXA7I4Jjs.parseClockDigits.call(void 0, d) === value ? d : toDigits(value));
1480
+ setDigits((d) => value == null ? _chunkFBZDJWT2js.parseClockDigits.call(void 0, d) == null ? d : "" : _chunkFBZDJWT2js.parseClockDigits.call(void 0, d) === value ? d : toDigits(value));
1479
1481
  }
1480
1482
  const masked = digits ? maskClock(digits) : "";
1481
- const invalid = !!digits && _chunkYUXA7I4Jjs.parseClockDigits.call(void 0, digits) == null;
1483
+ const invalid = !!digits && _chunkFBZDJWT2js.parseClockDigits.call(void 0, digits) == null;
1482
1484
  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,
1483
1485
  _reactnative.TextInput,
1484
1486
  {
@@ -1486,7 +1488,7 @@ function DurationInput({ panel, value, onChange }) {
1486
1488
  onChangeText: (t) => {
1487
1489
  const d = t.replace(/\D/g, "").replace(/^0+/, "").slice(0, 6);
1488
1490
  setDigits(d);
1489
- onChange(_chunkYUXA7I4Jjs.parseClockDigits.call(void 0, d));
1491
+ onChange(_chunkFBZDJWT2js.parseClockDigits.call(void 0, d));
1490
1492
  },
1491
1493
  keyboardType: "number-pad",
1492
1494
  placeholder: _nullishCoalesce(panel.options.placeholder, () => ( "00:00.00")),
@@ -1672,10 +1674,10 @@ function SuggestTextInput({ panel, value, onChange }) {
1672
1674
  }, [store, metric, suggestWith]);
1673
1675
  const withText = suggestWith ? form.value(suggestWith) : null;
1674
1676
  const own = entries.filter((e) => e.metric === metric);
1675
- const scoped = suggestWith && typeof withText === "string" && withText.trim() ? _chunkYUXA7I4Jjs.entriesSavedWith.call(void 0, entries, metric, suggestWith, withText) : [];
1677
+ const scoped = suggestWith && typeof withText === "string" && withText.trim() ? _chunkFBZDJWT2js.entriesSavedWith.call(void 0, entries, metric, suggestWith, withText) : [];
1676
1678
  const query = typed ? text : "";
1677
- const fromScoped = _chunkYUXA7I4Jjs.textSuggestions.call(void 0, scoped, query);
1678
- const suggestions = (fromScoped.length ? fromScoped : _chunkYUXA7I4Jjs.textSuggestions.call(void 0, own, query)).filter((s) => s.toLowerCase() !== text.trim().toLowerCase());
1679
+ const fromScoped = _chunkFBZDJWT2js.textSuggestions.call(void 0, scoped, query);
1680
+ const suggestions = (fromScoped.length ? fromScoped : _chunkFBZDJWT2js.textSuggestions.call(void 0, own, query)).filter((s) => s.toLowerCase() !== text.trim().toLowerCase());
1679
1681
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { style: styles6.suggest, children: [
1680
1682
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1681
1683
  _reactnative.TextInput,
@@ -1714,7 +1716,7 @@ function CounterInput({ panel }) {
1714
1716
  const { metric, increment = 1, unit } = panel.options;
1715
1717
  const [today, setToday] = _react.useState.call(void 0, 0);
1716
1718
  _react.useEffect.call(void 0, () => {
1717
- const load = () => store.list({ metrics: [metric], from: _chunkYUXA7I4Jjs.startOf.call(void 0, /* @__PURE__ */ new Date(), "d").getTime() }).then((rows) => setToday(rows.reduce((a, e) => a + (_nullishCoalesce(e.value, () => ( 0))), 0)));
1719
+ const load = () => store.list({ metrics: [metric], from: _chunkFBZDJWT2js.startOf.call(void 0, /* @__PURE__ */ new Date(), "d").getTime() }).then((rows) => setToday(rows.reduce((a, e) => a + (_nullishCoalesce(e.value, () => ( 0))), 0)));
1718
1720
  load();
1719
1721
  return store.subscribe(load);
1720
1722
  }, [store, metric]);
@@ -1790,7 +1792,7 @@ function titleText(v) {
1790
1792
  function summaryText(f, v) {
1791
1793
  if (v == null || v === "" || Array.isArray(v) && !v.length) return void 0;
1792
1794
  if (f.type === "input-toggle") return v ? f.title || "Yes" : void 0;
1793
- if (f.type === "input-duration" && typeof v === "number") return _chunkYUXA7I4Jjs.formatClock.call(void 0, v);
1795
+ if (f.type === "input-duration" && typeof v === "number") return _chunkFBZDJWT2js.formatClock.call(void 0, v);
1794
1796
  if (f.type === "input-select" && f.options.choices) {
1795
1797
  const label = (x) => _nullishCoalesce(_optionalChain([f, 'access', _60 => _60.options, 'access', _61 => _61.choices, 'access', _62 => _62.find, 'call', _63 => _63((c) => c.value === x), 'optionalAccess', _64 => _64.label]), () => ( String(x)));
1796
1798
  return Array.isArray(v) ? v.map(label).join(", ") : label(v);
@@ -1821,7 +1823,7 @@ function InputGroupBody({ panel }) {
1821
1823
  }
1822
1824
  if (!group) return null;
1823
1825
  const label = panel.options.itemTitle || "Item";
1824
- const collapseFilled = (except) => setCollapsed(new Set(group.items.filter((i) => i.key !== except && !_chunkYUXA7I4Jjs.isEmptyItem.call(void 0, panel, i.values)).map((i) => i.key)));
1826
+ const collapseFilled = (except) => setCollapsed(new Set(group.items.filter((i) => i.key !== except && !_chunkFBZDJWT2js.isEmptyItem.call(void 0, panel, i.values)).map((i) => i.key)));
1825
1827
  const toggle = (key) => setCollapsed((c) => {
1826
1828
  const next = new Set(c);
1827
1829
  if (!next.delete(key)) next.add(key);
@@ -1859,7 +1861,7 @@ function InputGroupBody({ panel }) {
1859
1861
  group.items.map((item, i) => {
1860
1862
  const named = panel.options.titleFrom ? titleText(item.values[panel.options.titleFrom]) : void 0;
1861
1863
  const title = _nullishCoalesce(named, () => ( `${label} ${i + 1}`));
1862
- const troubled = _chunkYUXA7I4Jjs.groupFields.call(void 0, panel).some((f) => group.fieldProblem(i, f.options.metric));
1864
+ const troubled = _chunkFBZDJWT2js.groupFields.call(void 0, panel).some((f) => group.fieldProblem(i, f.options.metric));
1863
1865
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1864
1866
  ItemCard,
1865
1867
  {
@@ -1910,7 +1912,7 @@ function InputGroupBody({ panel }) {
1910
1912
  }
1911
1913
  function ItemCard({ panel, group, form, index, title, last, collapsed, onToggle, onDuplicate, dragOffset, lifted, onLayout, handle }) {
1912
1914
  const theme = useDashTheme();
1913
- const fields = _react.useMemo.call(void 0, () => _chunkYUXA7I4Jjs.groupFields.call(void 0, panel), [panel]);
1915
+ const fields = _react.useMemo.call(void 0, () => _chunkFBZDJWT2js.groupFields.call(void 0, panel), [panel]);
1914
1916
  const item = group.items[index];
1915
1917
  const scoped = _react.useMemo.call(void 0,
1916
1918
  () => ({
@@ -2130,7 +2132,7 @@ function BarGaugePanel({ panel, frames }) {
2130
2132
  const min = _nullishCoalesce(v.config.min, () => ( 0));
2131
2133
  const max = _nullishCoalesce(v.config.max, () => ( Math.max(...values.map((o) => _nullishCoalesce(o.value, () => ( 0))), 1)));
2132
2134
  const frac = v.value == null ? 0 : Math.min(1, Math.max(0, (v.value - min) / (max - min || 1)));
2133
- const color = v.config.thresholds || _optionalChain([v, 'access', _83 => _83.mapped, 'optionalAccess', _84 => _84.color]) ? v.stateColor : _chunkYUXA7I4Jjs.resolveColor.call(void 0, _optionalChain([v, 'access', _85 => _85.config, 'access', _86 => _86.color, 'optionalAccess', _87 => _87.fixedColor]), v.color);
2135
+ const color = v.config.thresholds || _optionalChain([v, 'access', _83 => _83.mapped, 'optionalAccess', _84 => _84.color]) ? v.stateColor : _chunkFBZDJWT2js.resolveColor.call(void 0, _optionalChain([v, 'access', _85 => _85.config, 'access', _86 => _86.color, 'optionalAccess', _87 => _87.fixedColor]), v.color);
2134
2136
  const hasLinks = !!_optionalChain([v, 'access', _88 => _88.config, 'access', _89 => _89.links, 'optionalAccess', _90 => _90.length]);
2135
2137
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
2136
2138
  _reactnative.Pressable,
@@ -2311,7 +2313,7 @@ function geomapLayers(panel, frames, scheme, retina = false, gazetteers = {}) {
2311
2313
  const color = _nullishCoalesce(style.color, () => ( {}));
2312
2314
  const size = _nullishCoalesce(style.size, () => ( {}));
2313
2315
  const text = style.text;
2314
- const fixedColor = _chunkYUXA7I4Jjs.resolveColor.call(void 0, _nullishCoalesce(color.fixed, () => ( "dark-green")), "#37872D");
2316
+ const fixedColor = _chunkFBZDJWT2js.resolveColor.call(void 0, _nullishCoalesce(color.fixed, () => ( "dark-green")), "#37872D");
2315
2317
  const heat = layer.type === "heatmap";
2316
2318
  const weight = _nullishCoalesce(config.weight, () => ( {}));
2317
2319
  const legend = [];
@@ -2323,14 +2325,14 @@ function geomapLayers(panel, frames, scheme, retina = false, gazetteers = {}) {
2323
2325
  let { xs, ys } = located;
2324
2326
  if (layer.type === "lastPointTracker" && rows.length) [rows, xs, ys] = [rows.slice(-1), xs.slice(-1), ys.slice(-1)];
2325
2327
  const find = (field) => field ? fieldByName(frame, field, multiple) : void 0;
2326
- const configOf = (f) => _chunkYUXA7I4Jjs.resolveFieldConfig.call(void 0, panel, f, frame, _chunkYUXA7I4Jjs.fieldDisplayName.call(void 0, f, frame, multiple));
2328
+ const configOf = (f) => _chunkFBZDJWT2js.resolveFieldConfig.call(void 0, panel, f, frame, _chunkFBZDJWT2js.fieldDisplayName.call(void 0, f, frame, multiple));
2327
2329
  let colors = rows.map(() => fixedColor);
2328
2330
  const colorField = !heat ? find(color.field) : void 0;
2329
2331
  if (colorField) {
2330
2332
  const cConfig = configOf(colorField);
2331
2333
  const values = rows.map((i) => num(colorField.values[i]));
2332
2334
  const extent = range(values);
2333
- colors = values.map((v) => _chunkYUXA7I4Jjs.valueColor.call(void 0, v, cConfig, fixedColor, extent));
2335
+ colors = values.map((v) => _chunkFBZDJWT2js.valueColor.call(void 0, v, cConfig, fixedColor, extent));
2334
2336
  if (showsLegend(layer) && legend.length === 0) legend.push(...thresholdLegend(`${key}/${frames.indexOf(frame)}`, cConfig, fixedColor));
2335
2337
  }
2336
2338
  const dim = heat ? weight : size;
@@ -2388,8 +2390,8 @@ function thresholdLegend(key, config, fallback) {
2388
2390
  if (steps.length < 2) return [];
2389
2391
  return steps.map((s, i) => ({
2390
2392
  key: `${key}/${i}`,
2391
- name: s.value == null ? `< ${_chunkYUXA7I4Jjs.formatValue.call(void 0, steps[i + 1].value, config)}` : `${_chunkYUXA7I4Jjs.formatValue.call(void 0, s.value, config)}+`,
2392
- color: _chunkYUXA7I4Jjs.resolveColor.call(void 0, s.color, fallback)
2393
+ name: s.value == null ? `< ${_chunkFBZDJWT2js.formatValue.call(void 0, steps[i + 1].value, config)}` : `${_chunkFBZDJWT2js.formatValue.call(void 0, s.value, config)}+`,
2394
+ color: _chunkFBZDJWT2js.resolveColor.call(void 0, s.color, fallback)
2393
2395
  }));
2394
2396
  }
2395
2397
  var isDataLayer = (type) => type === "markers" || type === "heatmap" || type === "route" || type === "lastPointTracker";
@@ -2399,15 +2401,15 @@ function gazetteerPaths(panel, frames) {
2399
2401
  for (const layer of _nullishCoalesce(_optionalChain([panel, 'access', _108 => _108.options, 'optionalAccess', _109 => _109.layers]), () => ( DEFAULT_LAYERS))) {
2400
2402
  if (!isDataLayer(layer.type)) continue;
2401
2403
  const mode = _nullishCoalesce(_optionalChain([layer, 'access', _110 => _110.location, 'optionalAccess', _111 => _111.mode]), () => ( "auto"));
2402
- if (mode === "lookup") paths.add(_optionalChain([layer, 'access', _112 => _112.location, 'optionalAccess', _113 => _113.gazetteer]) || _chunkYUXA7I4Jjs.DEFAULT_GAZETTEER);
2403
- else if (mode === "auto" && frames.some(lookupField)) paths.add(_chunkYUXA7I4Jjs.DEFAULT_GAZETTEER);
2404
+ if (mode === "lookup") paths.add(_optionalChain([layer, 'access', _112 => _112.location, 'optionalAccess', _113 => _113.gazetteer]) || _chunkFBZDJWT2js.DEFAULT_GAZETTEER);
2405
+ else if (mode === "auto" && frames.some(lookupField)) paths.add(_chunkFBZDJWT2js.DEFAULT_GAZETTEER);
2404
2406
  }
2405
2407
  return [...paths];
2406
2408
  }
2407
2409
  var LAT_NAMES = ["lat", "latitude"];
2408
2410
  var LON_NAMES = ["lon", "lng", "long", "longitude"];
2409
2411
  function fieldByName(frame, name, multiple) {
2410
- return _nullishCoalesce(frame.fields.find((f) => f.name === name), () => ( frame.fields.find((f) => _chunkYUXA7I4Jjs.fieldDisplayName.call(void 0, f, frame, multiple) === name)));
2412
+ return _nullishCoalesce(frame.fields.find((f) => f.name === name), () => ( frame.fields.find((f) => _chunkFBZDJWT2js.fieldDisplayName.call(void 0, f, frame, multiple) === name)));
2411
2413
  }
2412
2414
  function locate2(frame, location = {}, gazetteers = {}) {
2413
2415
  const mode = _nullishCoalesce(location.mode, () => ( "auto"));
@@ -2426,10 +2428,10 @@ function locate2(frame, location = {}, gazetteers = {}) {
2426
2428
  lat = named(LAT_NAMES);
2427
2429
  lon = named(LON_NAMES);
2428
2430
  if (!lat || !lon) hash = named(["geohash"]);
2429
- if ((!lat || !lon) && !hash) [lookup, gazetteer] = [lookupField(frame), gazetteers[_chunkYUXA7I4Jjs.DEFAULT_GAZETTEER]];
2431
+ if ((!lat || !lon) && !hash) [lookup, gazetteer] = [lookupField(frame), gazetteers[_chunkFBZDJWT2js.DEFAULT_GAZETTEER]];
2430
2432
  } else if (mode === "lookup") {
2431
2433
  lookup = location.lookup ? fieldByName(frame, location.lookup, false) : lookupField(frame);
2432
- gazetteer = gazetteers[location.gazetteer || _chunkYUXA7I4Jjs.DEFAULT_GAZETTEER];
2434
+ gazetteer = gazetteers[location.gazetteer || _chunkFBZDJWT2js.DEFAULT_GAZETTEER];
2433
2435
  }
2434
2436
  const rows = [];
2435
2437
  const xs = [];
@@ -2478,8 +2480,8 @@ function decodeGeohash(hash) {
2478
2480
  }
2479
2481
  function cellText(field, v, config) {
2480
2482
  if (v == null) return "";
2481
- if (field.type === "number") return _chunkYUXA7I4Jjs.formatDisplay.call(void 0, Number(v), config);
2482
- if (field.type === "time") return new Date(_chunkYUXA7I4Jjs.toMillis.call(void 0, v)).toLocaleString();
2483
+ if (field.type === "number") return _chunkFBZDJWT2js.formatDisplay.call(void 0, Number(v), config);
2484
+ if (field.type === "time") return new Date(_chunkFBZDJWT2js.toMillis.call(void 0, v)).toLocaleString();
2483
2485
  return String(v);
2484
2486
  }
2485
2487
  function num(v) {
@@ -2729,11 +2731,11 @@ function useGazetteers(panel, frames) {
2729
2731
  let live = true;
2730
2732
  let ds;
2731
2733
  try {
2732
- ds = _optionalChain([resolve, 'optionalCall', _123 => _123(_chunkYUXA7I4Jjs.normalizeRef.call(void 0, panel.datasource))]);
2734
+ ds = _optionalChain([resolve, 'optionalCall', _123 => _123(_chunkFBZDJWT2js.normalizeRef.call(void 0, panel.datasource))]);
2733
2735
  } catch (e5) {
2734
2736
  }
2735
2737
  const paths = key.split("\n");
2736
- Promise.allSettled(paths.map((p) => _chunkYUXA7I4Jjs.loadGazetteer.call(void 0, p, ds))).then((results) => {
2738
+ Promise.allSettled(paths.map((p) => _chunkFBZDJWT2js.loadGazetteer.call(void 0, p, ds))).then((results) => {
2737
2739
  if (!live) return;
2738
2740
  const gazetteers = {};
2739
2741
  const errors = [];
@@ -2876,8 +2878,8 @@ function cellType(config) {
2876
2878
  }
2877
2879
  function tableColumns(panel, frame, multipleFrames = false) {
2878
2880
  return frame.fields.flatMap((field, i) => {
2879
- const raw = _chunkYUXA7I4Jjs.fieldDisplayName.call(void 0, field, frame, multipleFrames);
2880
- const config = _chunkYUXA7I4Jjs.resolveFieldConfig.call(void 0, panel, field, frame, raw);
2881
+ const raw = _chunkFBZDJWT2js.fieldDisplayName.call(void 0, field, frame, multipleFrames);
2882
+ const config = _chunkFBZDJWT2js.resolveFieldConfig.call(void 0, panel, field, frame, raw);
2881
2883
  const custom = _nullishCoalesce(config.custom, () => ( {}));
2882
2884
  if (custom.hidden || _optionalChain([custom, 'access', _133 => _133.hideFrom, 'optionalAccess', _134 => _134.viz])) return [];
2883
2885
  const numeric = field.type === "number";
@@ -2920,16 +2922,16 @@ function tableFooter(columns) {
2920
2922
  counted = true;
2921
2923
  return [{ label: "Count", text: String(c.field.values.length) }];
2922
2924
  }
2923
- if (!_chunkYUXA7I4Jjs.isReducer.call(void 0, r)) return [];
2924
- const label = _chunkYUXA7I4Jjs.REDUCER_LABELS[r];
2925
+ if (!_chunkFBZDJWT2js.isReducer.call(void 0, r)) return [];
2926
+ const label = _chunkFBZDJWT2js.REDUCER_LABELS[r];
2925
2927
  if (r === "count") return [{ label, text: String(c.field.values.length) }];
2926
2928
  if (c.field.type !== "number") {
2927
2929
  if (r === "distinctCount") return [{ label, text: String(new Set(c.field.values.filter((v) => v != null)).size) }];
2928
2930
  return [];
2929
2931
  }
2930
- const value = _chunkYUXA7I4Jjs.reduce.call(void 0, c.field.values.map((v) => v == null ? null : Number(v)), r);
2932
+ const value = _chunkFBZDJWT2js.reduce.call(void 0, c.field.values.map((v) => v == null ? null : Number(v)), r);
2931
2933
  const counts = r === "distinctCount" || r === "changeCount";
2932
- return [{ label, text: counts ? String(_nullishCoalesce(value, () => ( 0))) : _chunkYUXA7I4Jjs.formatValue.call(void 0, value, c.config) }];
2934
+ return [{ label, text: counts ? String(_nullishCoalesce(value, () => ( 0))) : _chunkFBZDJWT2js.formatValue.call(void 0, value, c.config) }];
2933
2935
  });
2934
2936
  return lines.length === 1 && lines[0].label !== "Count" ? [{ text: lines[0].text }] : lines;
2935
2937
  });
@@ -2948,13 +2950,13 @@ function extentOf(values) {
2948
2950
  }
2949
2951
  function cellDisplay(col, raw, fallbackColor) {
2950
2952
  const { config, field } = col;
2951
- const mapped = _chunkYUXA7I4Jjs.mappedResult.call(void 0, raw, config);
2953
+ const mapped = _chunkFBZDJWT2js.mappedResult.call(void 0, raw, config);
2952
2954
  const num4 = field.type === "number" && raw != null && Number.isFinite(Number(raw)) ? Number(raw) : null;
2953
- const text = _nullishCoalesce(_optionalChain([mapped, 'optionalAccess', _148 => _148.text]), () => ( (raw == null ? _nullishCoalesce(config.noValue, () => ( "")) : field.type === "number" ? _chunkYUXA7I4Jjs.formatValue.call(void 0, num4, config) : field.type === "time" ? new Date(_chunkYUXA7I4Jjs.toMillis.call(void 0, raw)).toLocaleString() : String(raw))));
2955
+ const text = _nullishCoalesce(_optionalChain([mapped, 'optionalAccess', _148 => _148.text]), () => ( (raw == null ? _nullishCoalesce(config.noValue, () => ( "")) : field.type === "number" ? _chunkFBZDJWT2js.formatValue.call(void 0, num4, config) : field.type === "time" ? new Date(_chunkFBZDJWT2js.toMillis.call(void 0, raw)).toLocaleString() : String(raw))));
2954
2956
  if (col.cellType === "auto") return { text };
2955
2957
  const mode = _optionalChain([config, 'access', _149 => _149.color, 'optionalAccess', _150 => _150.mode]);
2956
- const named = _nullishCoalesce(_optionalChain([mapped, 'optionalAccess', _151 => _151.color]), () => ( (mode === "fixed" ? _optionalChain([config, 'access', _152 => _152.color, 'optionalAccess', _153 => _153.fixedColor]) : (!mode || mode === "thresholds") && num4 != null ? _optionalChain([_chunkYUXA7I4Jjs.thresholdStep.call(void 0, num4, config), 'optionalAccess', _154 => _154.color]) : void 0)));
2957
- const color = named === "text" ? void 0 : _optionalChain([mapped, 'optionalAccess', _155 => _155.color]) ? _chunkYUXA7I4Jjs.resolveColor.call(void 0, mapped.color, fallbackColor) : num4 == null ? void 0 : _chunkYUXA7I4Jjs.valueColor.call(void 0, num4, config, fallbackColor, col.extent);
2958
+ const named = _nullishCoalesce(_optionalChain([mapped, 'optionalAccess', _151 => _151.color]), () => ( (mode === "fixed" ? _optionalChain([config, 'access', _152 => _152.color, 'optionalAccess', _153 => _153.fixedColor]) : (!mode || mode === "thresholds") && num4 != null ? _optionalChain([_chunkFBZDJWT2js.thresholdStep.call(void 0, num4, config), 'optionalAccess', _154 => _154.color]) : void 0)));
2959
+ const color = named === "text" ? void 0 : _optionalChain([mapped, 'optionalAccess', _155 => _155.color]) ? _chunkFBZDJWT2js.resolveColor.call(void 0, mapped.color, fallbackColor) : num4 == null ? void 0 : _chunkFBZDJWT2js.valueColor.call(void 0, num4, config, fallbackColor, col.extent);
2958
2960
  if (col.cellType === "color-text") return { text, color };
2959
2961
  if (col.cellType === "color-background") return { text, background: color };
2960
2962
  const min = _nullishCoalesce(config.min, () => ( Math.min(0, _nullishCoalesce(_optionalChain([col, 'access', _156 => _156.extent, 'optionalAccess', _157 => _157[0]]), () => ( 0)))));
@@ -2985,7 +2987,7 @@ function sortedRows(columns, length, sort) {
2985
2987
  if (!col) return rows;
2986
2988
  const { field } = col;
2987
2989
  const dir = sort.desc ? -1 : 1;
2988
- const key = (v) => field.type === "time" ? _chunkYUXA7I4Jjs.toMillis.call(void 0, v) : field.type === "number" || field.type === "boolean" ? Number(v) : v;
2990
+ const key = (v) => field.type === "time" ? _chunkFBZDJWT2js.toMillis.call(void 0, v) : field.type === "number" || field.type === "boolean" ? Number(v) : v;
2989
2991
  const empty = (v) => v == null || v === "" || typeof v === "number" && Number.isNaN(v);
2990
2992
  return rows.sort((a, b) => {
2991
2993
  const va = field.values[a];
@@ -3051,8 +3053,8 @@ function TablePanel({ panel, frames }) {
3051
3053
  const columns = _react.useMemo.call(void 0, () => frame ? tableColumns(panel, frame, frames.length > 1) : [], [panel, frame, frames.length]);
3052
3054
  const [tapped, setSort] = _react.useState.call(void 0, );
3053
3055
  const sort = tapped === void 0 ? initialSort(panel, columns) : tapped;
3054
- const order = _react.useMemo.call(void 0, () => sortedRows(columns, frame ? _chunkYUXA7I4Jjs.frameLength.call(void 0, frame) : 0, sort), [columns, frame, sort]);
3055
- if (!frame || !_chunkYUXA7I4Jjs.frameLength.call(void 0, frame)) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NoData, {});
3056
+ const order = _react.useMemo.call(void 0, () => sortedRows(columns, frame ? _chunkFBZDJWT2js.frameLength.call(void 0, frame) : 0, sort), [columns, frame, sort]);
3057
+ if (!frame || !_chunkFBZDJWT2js.frameLength.call(void 0, frame)) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NoData, {});
3056
3058
  const shown = order.slice(0, 500);
3057
3059
  const rowColumn = columns.find((c) => c.applyToRow);
3058
3060
  const footer = tableFooter(columns);
@@ -3152,7 +3154,7 @@ function BarChartPanel({ panel, frames, width }) {
3152
3154
  {
3153
3155
  style: [styles11.tick, { color: theme.textMuted, top: plot.height * (1 - barFraction(axis, t)) - 7 }, axis.side === "left" ? styles11.tickLeft : styles11.tickRight],
3154
3156
  numberOfLines: 1,
3155
- children: _chunkYUXA7I4Jjs.formatValue.call(void 0, t, { ...axis.config, decimals: tickDecimals(axis.ticks) })
3157
+ children: _chunkFBZDJWT2js.formatValue.call(void 0, t, { ...axis.config, decimals: tickDecimals(axis.ticks) })
3156
3158
  },
3157
3159
  t
3158
3160
  )) });
@@ -3278,7 +3280,7 @@ function TimeSeriesPanel({ panel, frames }) {
3278
3280
  const y = linearScale(yMin, yMax, PAD.top + plotH, PAD.top);
3279
3281
  const span = xTo - xFrom;
3280
3282
  const xTicks = numericX ? numberTicks(xFrom, xTo, plotW) : timeTicks(xFrom, xTo, plotW);
3281
- const xLabel = (t) => numericX ? _chunkYUXA7I4Jjs.formatValue.call(void 0, t, { ...xConfig, decimals: tickDecimals(xTicks) }) : formatTimeTick(t, span);
3283
+ const xLabel = (t) => numericX ? _chunkFBZDJWT2js.formatValue.call(void 0, t, { ...xConfig, decimals: tickDecimals(xTicks) }) : formatTimeTick(t, span);
3282
3284
  const unitConfig = series[0].config;
3283
3285
  const barSeries = series.filter((s) => style(s) === "bars");
3284
3286
  const pointsCount = Math.max(...series.map((s) => s.times.length));
@@ -3296,11 +3298,11 @@ function TimeSeriesPanel({ panel, frames }) {
3296
3298
  if (!pinch.current) pinch.current = { start: { from: xFrom, to: xTo }, dist, frac };
3297
3299
  const p = pinch.current;
3298
3300
  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) };
3299
- setPreview(_chunkYUXA7I4Jjs.zoomRange.call(void 0, p.start, dist / p.dist, p.frac, frac, limits));
3301
+ setPreview(_chunkFBZDJWT2js.zoomRange.call(void 0, p.start, dist / p.dist, p.frac, frac, limits));
3300
3302
  };
3301
3303
  const onPinchEnd = (commit) => {
3302
3304
  if (commit && pinch.current && preview) {
3303
- if (!extent) setRawRange({ from: _chunkYUXA7I4Jjs.formatLocalDateTime.call(void 0, preview.from), to: _chunkYUXA7I4Jjs.formatLocalDateTime.call(void 0, preview.to) });
3305
+ if (!extent) setRawRange({ from: _chunkFBZDJWT2js.formatLocalDateTime.call(void 0, preview.from), to: _chunkFBZDJWT2js.formatLocalDateTime.call(void 0, preview.to) });
3304
3306
  else setXZoom(preview.to - preview.from >= extent[1] - extent[0] ? null : preview);
3305
3307
  }
3306
3308
  pinch.current = null;
@@ -3355,7 +3357,7 @@ function TimeSeriesPanel({ panel, frames }) {
3355
3357
  size.width > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnativesvg2.default, { width: size.width, height: size.height, children: [
3356
3358
  ticks.map((t) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnativesvg.G, { children: [
3357
3359
  /* @__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 }),
3358
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Text, { x: PAD.left - 6, y: y(t) + 3, fontSize: 10, fill: theme.textMuted, textAnchor: "end", children: _chunkYUXA7I4Jjs.formatValue.call(void 0, t, { ...unitConfig, decimals: tickDecimals(ticks) }) })
3360
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Text, { x: PAD.left - 6, y: y(t) + 3, fontSize: 10, fill: theme.textMuted, textAnchor: "end", children: _chunkFBZDJWT2js.formatValue.call(void 0, t, { ...unitConfig, decimals: tickDecimals(ticks) }) })
3359
3361
  ] }, t)),
3360
3362
  xTicks.map((t) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3361
3363
  _reactnativesvg.Text,
@@ -3421,11 +3423,11 @@ function TimeSeriesPanel({ panel, frames }) {
3421
3423
  x(hover.time) > size.width / 2 ? { right: size.width - x(hover.time) + 8 } : { left: x(hover.time) + 8 }
3422
3424
  ],
3423
3425
  children: [
3424
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles12.tooltipTime, { color: theme.textMuted }], children: numericX ? _chunkYUXA7I4Jjs.formatValue.call(void 0, hover.time, xConfig) : formatTooltipTime(hover.time) }),
3426
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles12.tooltipTime, { color: theme.textMuted }], children: numericX ? _chunkFBZDJWT2js.formatValue.call(void 0, hover.time, xConfig) : formatTooltipTime(hover.time) }),
3425
3427
  hover.rows.map((r) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { style: styles12.tooltipRow, children: [
3426
3428
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: [styles12.swatch, { backgroundColor: r.color }] }),
3427
3429
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles12.tooltipName, { color: theme.textSecondary }], numberOfLines: 1, children: r.name }),
3428
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles12.tooltipValue, { color: theme.text }], children: _chunkYUXA7I4Jjs.formatValue.call(void 0, r.value, r.config) })
3430
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles12.tooltipValue, { color: theme.text }], children: _chunkFBZDJWT2js.formatValue.call(void 0, r.value, r.config) })
3429
3431
  ] }, r.key)),
3430
3432
  isPinned && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipLinks, { links: hoverLinks, onOpen: (l) => openLinks([l]) })
3431
3433
  ]
@@ -3510,7 +3512,7 @@ function linkData(r, frames, xField) {
3510
3512
  if (frame && xField === void 0) {
3511
3513
  row = r.index;
3512
3514
  } else if (frame) {
3513
- const xf = _nullishCoalesce(frame.fields.find((f) => f.name === xField), () => ( _chunkYUXA7I4Jjs.numberFields.call(void 0, frame)[0]));
3515
+ const xf = _nullishCoalesce(frame.fields.find((f) => f.name === xField), () => ( _chunkFBZDJWT2js.numberFields.call(void 0, frame)[0]));
3514
3516
  const at = _optionalChain([xf, 'optionalAccess', _217 => _217.values, 'access', _218 => _218.findIndex, 'call', _219 => _219((v, k) => Number(v) === r.time && Number(r.series.field.values[k]) === r.value)]);
3515
3517
  row = at != null && at >= 0 ? at : void 0;
3516
3518
  }
@@ -3521,7 +3523,7 @@ function linkData(r, frames, xField) {
3521
3523
  fieldName: r.name,
3522
3524
  seriesName: r.name,
3523
3525
  value: r.value,
3524
- text: _chunkYUXA7I4Jjs.formatValue.call(void 0, r.value, r.config),
3526
+ text: _chunkFBZDJWT2js.formatValue.call(void 0, r.value, r.config),
3525
3527
  time: xField === void 0 ? r.time : void 0
3526
3528
  };
3527
3529
  }
@@ -3582,8 +3584,8 @@ function xySeries(panel, frames, scheme) {
3582
3584
  const { manual, series: maps, exclude } = mappings(panel);
3583
3585
  const multiple = frames.length > 1;
3584
3586
  const out = [];
3585
- const config = (field, frame) => _chunkYUXA7I4Jjs.resolveFieldConfig.call(void 0, panel, field, frame, _chunkYUXA7I4Jjs.fieldDisplayName.call(void 0, field, frame, multiple));
3586
- const find = (pick, frame, fields = frame.fields) => pick ? fields.filter((f) => _chunkYUXA7I4Jjs.fieldMatches.call(void 0, pick.matcher, f, frame, _chunkYUXA7I4Jjs.fieldDisplayName.call(void 0, f, frame, multiple))) : [];
3587
+ const config = (field, frame) => _chunkFBZDJWT2js.resolveFieldConfig.call(void 0, panel, field, frame, _chunkFBZDJWT2js.fieldDisplayName.call(void 0, field, frame, multiple));
3588
+ const find = (pick, frame, fields = frame.fields) => pick ? fields.filter((f) => _chunkFBZDJWT2js.fieldMatches.call(void 0, pick.matcher, f, frame, _chunkFBZDJWT2js.fieldDisplayName.call(void 0, f, frame, multiple))) : [];
3587
3589
  for (const [mi, m] of (maps.length ? maps : [{}]).entries()) {
3588
3590
  const matcher = _optionalChain([m, 'access', _230 => _230.frame, 'optionalAccess', _231 => _231.matcher]);
3589
3591
  const chosen = _optionalChain([matcher, 'optionalAccess', _232 => _232.id]) === "byIndex" ? frames.filter((_, i) => i === matcher.options) : frames;
@@ -3599,16 +3601,16 @@ function xySeries(panel, frames, scheme) {
3599
3601
  const yConfig = config(yField, frame);
3600
3602
  if (_optionalChain([yConfig, 'access', _233 => _233.custom, 'optionalAccess', _234 => _234.hideFrom, 'optionalAccess', _235 => _235.viz]) && !manual) continue;
3601
3603
  const xConfig = config(xField, frame);
3602
- const color = _chunkYUXA7I4Jjs.seriesColor.call(void 0, out.length, scheme, yConfig);
3603
- const base = _optionalChain([yConfig, 'access', _236 => _236.color, 'optionalAccess', _237 => _237.mode]) === "thresholds" ? _chunkYUXA7I4Jjs.valueColor.call(void 0, null, yConfig, color) : color;
3604
+ const color = _chunkFBZDJWT2js.seriesColor.call(void 0, out.length, scheme, yConfig);
3605
+ const base = _optionalChain([yConfig, 'access', _236 => _236.color, 'optionalAccess', _237 => _237.mode]) === "thresholds" ? _chunkFBZDJWT2js.valueColor.call(void 0, null, yConfig, color) : color;
3604
3606
  const rows = [];
3605
3607
  const xs = [];
3606
3608
  const ys = [];
3607
3609
  yField.values.forEach((yv, i) => {
3608
3610
  const xv = xField.values[i];
3609
3611
  if (xv == null || yv == null) return;
3610
- const xn = xField.type === "time" ? _chunkYUXA7I4Jjs.toMillis.call(void 0, xv) : Number(xv);
3611
- const yn = yField.type === "time" ? _chunkYUXA7I4Jjs.toMillis.call(void 0, yv) : Number(yv);
3612
+ const xn = xField.type === "time" ? _chunkFBZDJWT2js.toMillis.call(void 0, xv) : Number(xv);
3613
+ const yn = yField.type === "time" ? _chunkFBZDJWT2js.toMillis.call(void 0, yv) : Number(yv);
3612
3614
  if (!Number.isFinite(xn) || !Number.isFinite(yn)) return;
3613
3615
  rows.push(i);
3614
3616
  xs.push(xn);
@@ -3621,7 +3623,7 @@ function xySeries(panel, frames, scheme) {
3621
3623
  const cConfig = config(colorField, frame);
3622
3624
  const values = rows.map((i) => num3(colorField.values[i]));
3623
3625
  const extent = range2(values);
3624
- colors = values.map((v) => _chunkYUXA7I4Jjs.valueColor.call(void 0, v, cConfig, base, extent));
3626
+ colors = values.map((v) => _chunkFBZDJWT2js.valueColor.call(void 0, v, cConfig, base, extent));
3625
3627
  }
3626
3628
  let sizes = rows.map(() => fixedSize);
3627
3629
  if (sizeField) {
@@ -3631,7 +3633,7 @@ function xySeries(panel, frames, scheme) {
3631
3633
  sizes = values.map((v) => v == null ? min : min + (v - lo) / (hi - lo || 1) * (max - min));
3632
3634
  }
3633
3635
  const fixedName = _optionalChain([m, 'access', _249 => _249.name, 'optionalAccess', _250 => _250.fixed]);
3634
- const yName = _nullishCoalesce(yConfig.displayName, () => ( _chunkYUXA7I4Jjs.fieldDisplayName.call(void 0, yField, frame, multiple)));
3636
+ const yName = _nullishCoalesce(yConfig.displayName, () => ( _chunkFBZDJWT2js.fieldDisplayName.call(void 0, yField, frame, multiple)));
3635
3637
  out.push({
3636
3638
  key: `${mi}/${frames.indexOf(frame)}/${yField.name}`,
3637
3639
  name: fixedName ? yFields.length > 1 ? `${fixedName} ${yName}` : fixedName : yName,
@@ -3754,7 +3756,7 @@ function XYChartPanel({ panel, frames }) {
3754
3756
  size.width > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnativesvg2.default, { width: size.width, height: size.height, children: [
3755
3757
  yTicks.map((t) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnativesvg.G, { children: [
3756
3758
  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 }),
3757
- /* @__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: _chunkYUXA7I4Jjs.formatValue.call(void 0, t, { ...first.yConfig, decimals: _nullishCoalesce(first.yConfig.decimals, () => ( tickDecimals(yTicks))) }) })
3759
+ /* @__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: _chunkFBZDJWT2js.formatValue.call(void 0, t, { ...first.yConfig, decimals: _nullishCoalesce(first.yConfig.decimals, () => ( tickDecimals(yTicks))) }) })
3758
3760
  ] }, `y${t}`)),
3759
3761
  xTicks.map((t) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnativesvg.G, { children: [
3760
3762
  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 }),
@@ -3766,7 +3768,7 @@ function XYChartPanel({ panel, frames }) {
3766
3768
  fontSize: 10,
3767
3769
  fill: theme.textMuted,
3768
3770
  textAnchor: layout.x(t) - pad.left < 20 ? "start" : pad.left + plotW - layout.x(t) < 20 ? "end" : "middle",
3769
- children: _chunkYUXA7I4Jjs.formatValue.call(void 0, t, { ...first.xConfig, decimals: _nullishCoalesce(first.xConfig.decimals, () => ( tickDecimals(xTicks))) })
3771
+ children: _chunkFBZDJWT2js.formatValue.call(void 0, t, { ...first.xConfig, decimals: _nullishCoalesce(first.xConfig.decimals, () => ( tickDecimals(xTicks))) })
3770
3772
  }
3771
3773
  )
3772
3774
  ] }, `x${t}`)),
@@ -3879,14 +3881,14 @@ function DashboardView({ mode = "auto", header, footer, refreshable }) {
3879
3881
  const width = (measured.width || window.width) - insets.left - insets.right;
3880
3882
  const layoutMode = mode === "auto" ? width >= TABLET_WIDTH ? "grid" : "phone" : mode;
3881
3883
  const sections = _react.useMemo.call(void 0,
3882
- () => _chunkYUXA7I4Jjs.layoutDashboard.call(void 0, dashboard, layoutMode, { values: variables, info: variableInfo2 }),
3884
+ () => _chunkFBZDJWT2js.layoutDashboard.call(void 0, dashboard, layoutMode, { values: variables, info: variableInfo2 }),
3883
3885
  [dashboard, layoutMode, variables, variableInfo2]
3884
3886
  );
3885
3887
  const [toggled, setToggled] = _react.useState.call(void 0, {});
3886
3888
  const { seen, viewportH, onScroll, onViewportLayout, onSectionLayout } = useSeenSections(window.height);
3887
3889
  const maxPanelH = Math.max(MIN_PANEL_H, viewportH - SIDE * 2);
3888
3890
  const contentW = width - SIDE * 2;
3889
- const canRefresh = _nullishCoalesce(refreshable, () => ( dashboard.panels.some((p) => _chunkYUXA7I4Jjs.panelHasQueries.call(void 0, p) || _optionalChain([p, 'access', _273 => _273.panels, 'optionalAccess', _274 => _274.some, 'call', _275 => _275(_chunkYUXA7I4Jjs.panelHasQueries)]))));
3891
+ const canRefresh = _nullishCoalesce(refreshable, () => ( dashboard.panels.some((p) => _chunkFBZDJWT2js.panelHasQueries.call(void 0, p) || _optionalChain([p, 'access', _273 => _273.panels, 'optionalAccess', _274 => _274.some, 'call', _275 => _275(_chunkFBZDJWT2js.panelHasQueries)]))));
3890
3892
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { style: [styles14.fill, { backgroundColor: theme.background }], onLayout, children: [
3891
3893
  width > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
3892
3894
  _reactnative.ScrollView,
@@ -3912,14 +3914,14 @@ function DashboardView({ mode = "auto", header, footer, refreshable }) {
3912
3914
  accessibilityState: { expanded: !collapsed },
3913
3915
  children: [
3914
3916
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles14.chevron, { color: theme.textMuted }], children: collapsed ? "\u25B8" : "\u25BE" }),
3915
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles14.rowTitle, { color: theme.text }], numberOfLines: 2, children: _chunkYUXA7I4Jjs.interpolate.call(void 0, _nullishCoalesce(section.row.title, () => ( "")), { values: variables, info: variableInfo2, scoped: section.row.scopedVars, timezone: dashboard.timezone }) })
3917
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles14.rowTitle, { color: theme.text }], numberOfLines: 2, children: _chunkFBZDJWT2js.interpolate.call(void 0, _nullishCoalesce(section.row.title, () => ( "")), { values: variables, info: variableInfo2, scoped: section.row.scopedVars, timezone: dashboard.timezone }) })
3916
3918
  ]
3917
3919
  }
3918
3920
  ),
3919
3921
  !collapsed && layoutMode === "grid" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, GridSection, { grid: section.grid, width: contentW, maxPanelH, deferred: !seen.has(section.key) }),
3920
3922
  !collapsed && layoutMode === "phone" && section.rows.map((row, ri) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: styles14.row, children: row.cells.map((cell) => {
3921
- const w = (contentW + GAP2) * (cell.span / _chunkYUXA7I4Jjs.GRID_COLUMNS) - GAP2;
3922
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PanelCard, { panel: cell.panel, width: w, height: Math.min(_chunkYUXA7I4Jjs.gridUnitsToPx.call(void 0, row.h), maxPanelH), deferred: !seen.has(section.key) }, cell.key);
3923
+ const w = (contentW + GAP2) * (cell.span / _chunkFBZDJWT2js.GRID_COLUMNS) - GAP2;
3924
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PanelCard, { panel: cell.panel, width: w, height: Math.min(_chunkFBZDJWT2js.gridUnitsToPx.call(void 0, row.h), maxPanelH), deferred: !seen.has(section.key) }, cell.key);
3923
3925
  }) }, ri))
3924
3926
  ] }, section.key);
3925
3927
  })
@@ -3930,10 +3932,10 @@ function DashboardView({ mode = "auto", header, footer, refreshable }) {
3930
3932
  ] });
3931
3933
  }
3932
3934
  function GridSection({ grid, width, maxPanelH, deferred }) {
3933
- const colW = (width + GAP2) / _chunkYUXA7I4Jjs.GRID_COLUMNS;
3934
- const tallest = Math.max(0, ...grid.cells.map((c) => _chunkYUXA7I4Jjs.gridUnitsToPx.call(void 0, c.h)));
3935
+ const colW = (width + GAP2) / _chunkFBZDJWT2js.GRID_COLUMNS;
3936
+ const tallest = Math.max(0, ...grid.cells.map((c) => _chunkFBZDJWT2js.gridUnitsToPx.call(void 0, c.h)));
3935
3937
  const scale = tallest > maxPanelH ? maxPanelH / tallest : 1;
3936
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: { height: _chunkYUXA7I4Jjs.gridUnitsToPx.call(void 0, grid.h) * scale }, children: grid.cells.map((cell) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: [styles14.gridCell, { left: cell.x * colW, top: _chunkYUXA7I4Jjs.gridOffsetPx.call(void 0, cell.y) * scale }], children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PanelCard, { panel: cell.panel, width: cell.w * colW - GAP2, height: _chunkYUXA7I4Jjs.gridUnitsToPx.call(void 0, cell.h) * scale, deferred }) }, cell.key)) });
3938
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: { height: _chunkFBZDJWT2js.gridUnitsToPx.call(void 0, grid.h) * scale }, children: grid.cells.map((cell) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: [styles14.gridCell, { left: cell.x * colW, top: _chunkFBZDJWT2js.gridOffsetPx.call(void 0, cell.y) * scale }], children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PanelCard, { panel: cell.panel, width: cell.w * colW - GAP2, height: _chunkFBZDJWT2js.gridUnitsToPx.call(void 0, cell.h) * scale, deferred }) }, cell.key)) });
3937
3939
  }
3938
3940
  function useSeenSections(viewportHeight) {
3939
3941
  const [seen, setSeen] = _react.useState.call(void 0, /* @__PURE__ */ new Set());
@@ -3992,13 +3994,13 @@ function PanelCardContent({ panel, width, height, deferred }) {
3992
3994
  const theme = useDashTheme();
3993
3995
  const { dashboard, variables, variableInfo: variableInfo2 } = useDashboard();
3994
3996
  const { resolve, openLinks } = usePanelLinks(panel);
3995
- const group = _chunkYUXA7I4Jjs.isInputGroup.call(void 0, panel);
3996
- const input = _chunkYUXA7I4Jjs.isInputPanel.call(void 0, panel) || group;
3997
+ const group = _chunkFBZDJWT2js.isInputGroup.call(void 0, panel);
3998
+ const input = _chunkFBZDJWT2js.isInputPanel.call(void 0, panel) || group;
3997
3999
  const form = _react.useContext.call(void 0, InputFormContext);
3998
- const problem = group ? _optionalChain([form, 'optionalAccess', _276 => _276.group, 'optionalCall', _277 => _277(panel), 'optionalAccess', _278 => _278.problem]) : _chunkYUXA7I4Jjs.isInputPanel.call(void 0, panel) ? _optionalChain([form, 'optionalAccess', _279 => _279.problem, 'optionalCall', _280 => _280(panel.options.metric)]) : void 0;
4000
+ const problem = group ? _optionalChain([form, 'optionalAccess', _276 => _276.group, 'optionalCall', _277 => _277(panel), 'optionalAccess', _278 => _278.problem]) : _chunkFBZDJWT2js.isInputPanel.call(void 0, panel) ? _optionalChain([form, 'optionalAccess', _279 => _279.problem, 'optionalCall', _280 => _280(panel.options.metric)]) : void 0;
3999
4001
  const hasLinks = !!_optionalChain([panel, 'access', _281 => _281.links, 'optionalAccess', _282 => _282.length]);
4000
4002
  const hasTitle = !!panel.title || hasLinks || !!problem;
4001
- const title = panel.title ? _chunkYUXA7I4Jjs.interpolate.call(void 0, panel.title, { values: variables, info: variableInfo2, scoped: panel.scopedVars, timezone: dashboard.timezone }) : "";
4003
+ const title = panel.title ? _chunkFBZDJWT2js.interpolate.call(void 0, panel.title, { values: variables, info: variableInfo2, scoped: panel.scopedVars, timezone: dashboard.timezone }) : "";
4002
4004
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { style: [styles14.card, { width, height, backgroundColor: theme.surface, borderColor: theme.border }], children: [
4003
4005
  hasTitle && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { style: styles14.titleRow, children: [
4004
4006
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles14.title, { color: theme.text }], numberOfLines: 1, children: title }),
@@ -4020,7 +4022,7 @@ function PanelCardContent({ panel, width, height, deferred }) {
4020
4022
  }
4021
4023
  function DataPanelBody({ panel, width, height }) {
4022
4024
  const theme = useDashTheme();
4023
- const needsData = _chunkYUXA7I4Jjs.panelHasQueries.call(void 0, panel);
4025
+ const needsData = _chunkFBZDJWT2js.panelHasQueries.call(void 0, panel);
4024
4026
  const data = usePanelData(panel, width, needsData);
4025
4027
  const Component2 = panelComponent(panel.type);
4026
4028
  if (needsData && data.error) {
@@ -4062,19 +4064,19 @@ function savedValues(panels, entries) {
4062
4064
  const values = {};
4063
4065
  for (const p of panels) {
4064
4066
  const mine = entries.filter((e) => e.metric === p.options.metric);
4065
- values[p.options.metric] = p.options.multi ? mine.length ? mine.map((e) => _nullishCoalesce(e.text, () => ( e.value))) : null : _chunkYUXA7I4Jjs.entryToInputValue.call(void 0, p, mine[0]);
4067
+ values[p.options.metric] = p.options.multi ? mine.length ? mine.map((e) => _nullishCoalesce(e.text, () => ( e.value))) : null : _chunkFBZDJWT2js.entryToInputValue.call(void 0, p, mine[0]);
4066
4068
  }
4067
4069
  return values;
4068
4070
  }
4069
4071
  async function lastItems(store, group) {
4070
- const metrics = _chunkYUXA7I4Jjs.groupFields.call(void 0, group).map((f) => f.options.metric);
4072
+ const metrics = _chunkFBZDJWT2js.groupFields.call(void 0, group).map((f) => f.options.metric);
4071
4073
  const latest = (await Promise.all(metrics.map((m) => store.latest(m)))).filter((e) => !!e).sort((a, b) => b.ts - a.ts)[0];
4072
4074
  if (!latest) return [];
4073
- return _chunkYUXA7I4Jjs.entriesToItems.call(void 0, group, _chunkYUXA7I4Jjs.sameSave.call(void 0, latest, await store.list({ metrics, from: latest.ts, to: latest.ts })));
4075
+ return _chunkFBZDJWT2js.entriesToItems.call(void 0, group, _chunkFBZDJWT2js.sameSave.call(void 0, latest, await store.list({ metrics, from: latest.ts, to: latest.ts })));
4074
4076
  }
4075
4077
  function freshItem(group, position, last) {
4076
4078
  const item = {};
4077
- for (const f of _chunkYUXA7I4Jjs.groupFields.call(void 0, group)) {
4079
+ for (const f of _chunkFBZDJWT2js.groupFields.call(void 0, group)) {
4078
4080
  const d = f.options.default;
4079
4081
  const v = d === "last" ? _optionalChain([last, 'optionalAccess', _283 => _283[position], 'optionalAccess', _284 => _284[f.options.metric]]) : d;
4080
4082
  if (v !== void 0 && v !== null) item[f.options.metric] = v;
@@ -4083,14 +4085,14 @@ function freshItem(group, position, last) {
4083
4085
  }
4084
4086
  function baseItems(group, editing, last) {
4085
4087
  const start = group.options.start;
4086
- const values = editing ? _chunkYUXA7I4Jjs.entriesToItems.call(void 0, group, editing) : start === "last" && _optionalChain([last, 'optionalAccess', _285 => _285.length]) ? last : Array.from({ length: typeof start === "number" ? Math.max(0, start) : 1 }, (_, i) => freshItem(group, i, last));
4088
+ const values = editing ? _chunkFBZDJWT2js.entriesToItems.call(void 0, group, editing) : start === "last" && _optionalChain([last, 'optionalAccess', _285 => _285.length]) ? last : Array.from({ length: typeof start === "number" ? Math.max(0, start) : 1 }, (_, i) => freshItem(group, i, last));
4087
4089
  return values.map((v, i) => ({ key: `b${i}`, values: v, edited: [] }));
4088
4090
  }
4089
4091
  var nextItemKey = 1;
4090
4092
  function InputForm({ dashboard, store, onSaved, choices = NO_CHOICES, header, timestamp, defaults: given = NO_DEFAULTS, beforeSave, editing }) {
4091
4093
  const theme = useDashTheme();
4092
- const panels = _react.useMemo.call(void 0, () => _chunkYUXA7I4Jjs.plainInputPanels.call(void 0, dashboard), [dashboard]);
4093
- const groups = _react.useMemo.call(void 0, () => _chunkYUXA7I4Jjs.inputGroups.call(void 0, dashboard), [dashboard]);
4094
+ const panels = _react.useMemo.call(void 0, () => _chunkFBZDJWT2js.plainInputPanels.call(void 0, dashboard), [dashboard]);
4095
+ const groups = _react.useMemo.call(void 0, () => _chunkFBZDJWT2js.inputGroups.call(void 0, dashboard), [dashboard]);
4094
4096
  const saved = _react.useMemo.call(void 0, () => editing ? savedValues(panels, editing) : NO_DEFAULTS, [panels, editing]);
4095
4097
  const [defaults, setDefaults] = _react.useState.call(void 0, {});
4096
4098
  const [edits, setEdits] = _react.useState.call(void 0, {});
@@ -4106,12 +4108,12 @@ function InputForm({ dashboard, store, onSaved, choices = NO_CHOICES, header, ti
4106
4108
  const next = {};
4107
4109
  for (const p of panels) {
4108
4110
  const d = p.options.default;
4109
- if (d === "last") next[p.options.metric] = _chunkYUXA7I4Jjs.entryToInputValue.call(void 0, p, await store.latest(p.options.metric));
4111
+ if (d === "last") next[p.options.metric] = _chunkFBZDJWT2js.entryToInputValue.call(void 0, p, await store.latest(p.options.metric));
4110
4112
  else if (d !== void 0) next[p.options.metric] = d;
4111
4113
  }
4112
4114
  const lastNext = {};
4113
4115
  for (const g of groups) {
4114
- const wanted = g.options.start === "last" || _chunkYUXA7I4Jjs.groupFields.call(void 0, g).some((f) => f.options.default === "last");
4116
+ const wanted = g.options.start === "last" || _chunkFBZDJWT2js.groupFields.call(void 0, g).some((f) => f.options.default === "last");
4115
4117
  if (wanted) lastNext[groupKey(g)] = await lastItems(store, g);
4116
4118
  }
4117
4119
  if (mine === run) {
@@ -4141,7 +4143,7 @@ function InputForm({ dashboard, store, onSaved, choices = NO_CHOICES, header, ti
4141
4143
  choices,
4142
4144
  problem: (m) => {
4143
4145
  const p = panels.find((x) => x.options.metric === m);
4144
- return p && (checked || m in edits) ? _chunkYUXA7I4Jjs.inputProblem.call(void 0, p, value(m)) : void 0;
4146
+ return p && (checked || m in edits) ? _chunkFBZDJWT2js.inputProblem.call(void 0, p, value(m)) : void 0;
4145
4147
  },
4146
4148
  group: (g) => groupState(g, itemsOf(g), last[groupKey(g)], groupKey(g) in groupEdits, checked, (update) => {
4147
4149
  setStatus(null);
@@ -4151,25 +4153,25 @@ function InputForm({ dashboard, store, onSaved, choices = NO_CHOICES, header, ti
4151
4153
  }, [edits, saved, defaults, given, store, choices, panels, checked, itemsOf, last, groupEdits, base]);
4152
4154
  const dirty = Object.keys(edits).length + groups.reduce((n, g) => n + groupChanges(_nullishCoalesce(base[groupKey(g)], () => ( [])), groupEdits[groupKey(g)]), 0);
4153
4155
  const recordedGroups = _react.useCallback.call(void 0,
4154
- () => groups.filter((g) => editing || groupKey(g) in groupEdits || _chunkYUXA7I4Jjs.groupFields.call(void 0, g).some((f) => f.options.record === "always")),
4156
+ () => groups.filter((g) => editing || groupKey(g) in groupEdits || _chunkFBZDJWT2js.groupFields.call(void 0, g).some((f) => f.options.record === "always")),
4155
4157
  [groups, editing, groupEdits]
4156
4158
  );
4157
4159
  const save = _react.useCallback.call(void 0, async () => {
4158
4160
  const problems = panels.flatMap((p) => {
4159
- const problem = _chunkYUXA7I4Jjs.inputProblem.call(void 0, p, state.value(p.options.metric));
4161
+ const problem = _chunkFBZDJWT2js.inputProblem.call(void 0, p, state.value(p.options.metric));
4160
4162
  return problem ? [`${p.title || p.options.metric}: ${problem.toLowerCase()}`] : [];
4161
4163
  });
4162
- for (const g of recordedGroups()) problems.push(..._chunkYUXA7I4Jjs.groupProblems.call(void 0, g, itemsOf(g).map((i) => i.values)));
4164
+ for (const g of recordedGroups()) problems.push(..._chunkFBZDJWT2js.groupProblems.call(void 0, g, itemsOf(g).map((i) => i.values)));
4163
4165
  if (problems.length) {
4164
4166
  setChecked(true);
4165
4167
  setStatus(problems.length === 1 ? `Can\u2019t save. ${problems[0]}` : `Can\u2019t save: ${problems.length} fields need fixing`);
4166
4168
  return;
4167
4169
  }
4168
4170
  const ts = _nullishCoalesce(_optionalChain([editing, 'optionalAccess', _286 => _286[0], 'optionalAccess', _287 => _287.ts]), () => ( (header !== void 0 ? _nullishCoalesce(_optionalChain([timestamp, 'optionalCall', _288 => _288()]), () => ( Date.now())) : Date.now() + offsetMs)));
4169
- const saveId = _nullishCoalesce(_optionalChain([editing, 'optionalAccess', _289 => _289.find, 'call', _290 => _290((e) => e.save), 'optionalAccess', _291 => _291.save]), () => ( _chunkYUXA7I4Jjs.newSaveId.call(void 0, )));
4171
+ const saveId = _nullishCoalesce(_optionalChain([editing, 'optionalAccess', _289 => _289.find, 'call', _290 => _290((e) => e.save), 'optionalAccess', _291 => _291.save]), () => ( _chunkFBZDJWT2js.newSaveId.call(void 0, )));
4170
4172
  const entries = [
4171
- ...panels.filter((p) => editing || p.options.metric in edits || p.options.record === "always").flatMap((p) => _chunkYUXA7I4Jjs.toEntries.call(void 0, p, state.value(p.options.metric), ts, { save: saveId })),
4172
- ...recordedGroups().flatMap((g) => _chunkYUXA7I4Jjs.groupToEntries.call(void 0, g, itemsOf(g).map((i) => i.values), ts, saveId))
4173
+ ...panels.filter((p) => editing || p.options.metric in edits || p.options.record === "always").flatMap((p) => _chunkFBZDJWT2js.toEntries.call(void 0, p, state.value(p.options.metric), ts, { save: saveId })),
4174
+ ...recordedGroups().flatMap((g) => _chunkFBZDJWT2js.groupToEntries.call(void 0, g, itemsOf(g).map((i) => i.values), ts, saveId))
4173
4175
  ];
4174
4176
  if (!entries.length) return;
4175
4177
  const extra = beforeSave ? await beforeSave(ts) : [];
@@ -4227,10 +4229,10 @@ function groupChanges(base, items) {
4227
4229
  return edited + added + removed + moved;
4228
4230
  }
4229
4231
  function groupState(group, items, last, edited, showProblems, update) {
4230
- const fields = _chunkYUXA7I4Jjs.groupFields.call(void 0, group);
4232
+ const fields = _chunkFBZDJWT2js.groupFields.call(void 0, group);
4231
4233
  const { max } = group.options;
4232
4234
  const fresh = (position) => ({ key: `n${nextItemKey++}`, values: freshItem(group, position, last), edited: [] });
4233
- const filled = items.filter((i) => !_chunkYUXA7I4Jjs.isEmptyItem.call(void 0, group, i.values)).length;
4235
+ const filled = items.filter((i) => !_chunkFBZDJWT2js.isEmptyItem.call(void 0, group, i.values)).length;
4234
4236
  const { min } = group.options;
4235
4237
  return {
4236
4238
  items: items.map((i) => ({ key: i.key, values: i.values, edited: i.edited })),
@@ -4255,8 +4257,8 @@ function groupState(group, items, last, edited, showProblems, update) {
4255
4257
  fieldProblem: (index, metric) => {
4256
4258
  const item = items[index];
4257
4259
  const field = fields.find((f) => f.options.metric === metric);
4258
- if (!item || !field || _chunkYUXA7I4Jjs.isEmptyItem.call(void 0, group, item.values)) return void 0;
4259
- return showProblems || item.edited.includes(metric) ? _chunkYUXA7I4Jjs.inputProblem.call(void 0, field, _nullishCoalesce(item.values[metric], () => ( null))) : void 0;
4260
+ if (!item || !field || _chunkFBZDJWT2js.isEmptyItem.call(void 0, group, item.values)) return void 0;
4261
+ return showProblems || item.edited.includes(metric) ? _chunkFBZDJWT2js.inputProblem.call(void 0, field, _nullishCoalesce(item.values[metric], () => ( null))) : void 0;
4260
4262
  }
4261
4263
  };
4262
4264
  }
@@ -4541,4 +4543,6 @@ var styles15 = _reactnative.StyleSheet.create({
4541
4543
 
4542
4544
 
4543
4545
 
4544
- exports.ALL = _chunkYUXA7I4Jjs.ALL; exports.BUNDLE_ACCEPT = _chunkYUXA7I4Jjs.BUNDLE_ACCEPT; exports.BUNDLE_TYPE = _chunkYUXA7I4Jjs.BUNDLE_TYPE; exports.CANVAS_GAP = _chunkYUXA7I4Jjs.CANVAS_GAP; exports.CANVAS_ROW_HEADER = _chunkYUXA7I4Jjs.CANVAS_ROW_HEADER; exports.Calendar = Calendar; exports.Chip = Chip; exports.ConfigLoader = _chunkYUXA7I4Jjs.ConfigLoader; exports.DASHBOARD_DS = _chunkYUXA7I4Jjs.DASHBOARD_DS; exports.DEFAULT_GAZETTEER = _chunkYUXA7I4Jjs.DEFAULT_GAZETTEER; exports.DashThemeProvider = DashThemeProvider; exports.DashboardProvider = DashboardProvider; exports.DashboardToolbar = DashboardToolbar; exports.DashboardView = DashboardView; exports.EDITABLE_VARIABLE_TYPES = _chunkYUXA7I4Jjs.EDITABLE_VARIABLE_TYPES; exports.GRID_COLUMNS = _chunkYUXA7I4Jjs.GRID_COLUMNS; exports.GROUP_FIELD_TYPES = _chunkYUXA7I4Jjs.GROUP_FIELD_TYPES; exports.GrafanaClient = _chunkYUXA7I4Jjs.GrafanaClient; exports.GrafanaDataSource = _chunkYUXA7I4Jjs.GrafanaDataSource; exports.GrafanaError = _chunkYUXA7I4Jjs.GrafanaError; exports.HttpConfigFiles = _chunkYUXA7I4Jjs.HttpConfigFiles; exports.INPUT_GROUP = _chunkYUXA7I4Jjs.INPUT_GROUP; exports.INPUT_OPTION_KEYS = _chunkYUXA7I4Jjs.INPUT_OPTION_KEYS; exports.INPUT_TYPES = _chunkYUXA7I4Jjs.INPUT_TYPES; exports.InputForm = InputForm; exports.InputFormContext = InputFormContext; exports.LOCAL_DATASOURCE_TYPE = _chunkYUXA7I4Jjs.LOCAL_DATASOURCE_TYPE; exports.Legend = Legend; exports.LocalDataSource = _chunkYUXA7I4Jjs.LocalDataSource; exports.MANIFEST_VERSION = _chunkYUXA7I4Jjs.MANIFEST_VERSION; exports.MAPPING_TYPES = _chunkYUXA7I4Jjs.MAPPING_TYPES; exports.MemoryEntryStore = _chunkYUXA7I4Jjs.MemoryEntryStore; exports.NAMED_COLORS = _chunkYUXA7I4Jjs.NAMED_COLORS; exports.NoData = NoData; exports.OPTION_CATEGORIES = _chunkYUXA7I4Jjs.OPTION_CATEGORIES; exports.OVERRIDE_MATCHERS = _chunkYUXA7I4Jjs.OVERRIDE_MATCHERS; exports.PANEL_TYPES = _chunkYUXA7I4Jjs.PANEL_TYPES; exports.PanelCard = PanelCard; exports.REDUCER_LABELS = _chunkYUXA7I4Jjs.REDUCER_LABELS; exports.REFRESH_CHOICES = _chunkYUXA7I4Jjs.REFRESH_CHOICES; exports.RELATIVE_RANGES = _chunkYUXA7I4Jjs.RELATIVE_RANGES; exports.RenderBoundary = RenderBoundary; exports.SERIES_PALETTE = _chunkYUXA7I4Jjs.SERIES_PALETTE; exports.SNIPPET_VERSION = _chunkYUXA7I4Jjs.SNIPPET_VERSION; exports.SPECIAL_MATCHES = _chunkYUXA7I4Jjs.SPECIAL_MATCHES; exports.SaveConflictError = _chunkYUXA7I4Jjs.SaveConflictError; exports.TEMPLATE_VERSION = _chunkYUXA7I4Jjs.TEMPLATE_VERSION; exports.TIME_PRESETS = _chunkYUXA7I4Jjs.TIME_PRESETS; exports.UNIT_CHOICES = _chunkYUXA7I4Jjs.UNIT_CHOICES; exports.addTime = _chunkYUXA7I4Jjs.addTime; exports.appSchema = _chunkYUXA7I4Jjs.appSchema; exports.applyDashboardLink = _chunkYUXA7I4Jjs.applyDashboardLink; exports.applyJsonEdits = _chunkYUXA7I4Jjs.applyJsonEdits; exports.applyTemplate = _chunkYUXA7I4Jjs.applyTemplate; exports.applyTransformations = _chunkYUXA7I4Jjs.applyTransformations; exports.assembleBundle = _chunkYUXA7I4Jjs.assembleBundle; exports.assembleFromResponse = _chunkYUXA7I4Jjs.assembleFromResponse; exports.buildFrames = _chunkYUXA7I4Jjs.buildFrames; exports.bundleFromFiles = _chunkYUXA7I4Jjs.bundleFromFiles; exports.bundleRoot = _chunkYUXA7I4Jjs.bundleRoot; exports.calculateInterval = _chunkYUXA7I4Jjs.calculateInterval; exports.checkFiles = _chunkYUXA7I4Jjs.checkFiles; exports.cleanDashboard = _chunkYUXA7I4Jjs.cleanDashboard; exports.cleanPanelOptions = _chunkYUXA7I4Jjs.cleanPanelOptions; exports.collapseRow = _chunkYUXA7I4Jjs.collapseRow; exports.compactGrid = _chunkYUXA7I4Jjs.compactGrid; exports.copyPanels = _chunkYUXA7I4Jjs.copyPanels; exports.darkTheme = darkTheme; exports.dashboardSchema = _chunkYUXA7I4Jjs.dashboardSchema; exports.dashboardSchemaIssues = _chunkYUXA7I4Jjs.dashboardSchemaIssues; exports.dashboardSourceIds = _chunkYUXA7I4Jjs.dashboardSourceIds; exports.defaultFetchJson = _chunkYUXA7I4Jjs.defaultFetchJson; exports.describeRange = _chunkYUXA7I4Jjs.describeRange; exports.diffJson = _chunkYUXA7I4Jjs.diffJson; exports.documentIdFor = _chunkYUXA7I4Jjs.documentIdFor; exports.documentUses = _chunkYUXA7I4Jjs.documentUses; exports.dropTarget = _chunkYUXA7I4Jjs.dropTarget; exports.duplicatePanel = _chunkYUXA7I4Jjs.duplicatePanel; exports.entriesSavedWith = _chunkYUXA7I4Jjs.entriesSavedWith; exports.entriesToItems = _chunkYUXA7I4Jjs.entriesToItems; exports.entryToInputValue = _chunkYUXA7I4Jjs.entryToInputValue; exports.expandRow = _chunkYUXA7I4Jjs.expandRow; exports.fetchBundle = _chunkYUXA7I4Jjs.fetchBundle; exports.fetchJsonWithToken = _chunkYUXA7I4Jjs.fetchJsonWithToken; exports.fieldDisplayName = _chunkYUXA7I4Jjs.fieldDisplayName; exports.fieldMatches = _chunkYUXA7I4Jjs.fieldMatches; exports.formatClock = _chunkYUXA7I4Jjs.formatClock; exports.formatDisplay = _chunkYUXA7I4Jjs.formatDisplay; exports.formatDuration = _chunkYUXA7I4Jjs.formatDuration; exports.formatJsonText = _chunkYUXA7I4Jjs.formatJsonText; exports.formatLocalDateTime = _chunkYUXA7I4Jjs.formatLocalDateTime; exports.formatValue = _chunkYUXA7I4Jjs.formatValue; exports.frameLength = _chunkYUXA7I4Jjs.frameLength; exports.framesToOptions = _chunkYUXA7I4Jjs.framesToOptions; exports.fromWire = _chunkYUXA7I4Jjs.fromWire; exports.getPath = _chunkYUXA7I4Jjs.getPath; exports.gridOffsetPx = _chunkYUXA7I4Jjs.gridOffsetPx; exports.gridUnitsToPx = _chunkYUXA7I4Jjs.gridUnitsToPx; exports.groupFields = _chunkYUXA7I4Jjs.groupFields; exports.groupKey = groupKey; exports.groupProblems = _chunkYUXA7I4Jjs.groupProblems; exports.groupToEntries = _chunkYUXA7I4Jjs.groupToEntries; exports.httpFetchJson = _chunkYUXA7I4Jjs.httpFetchJson; exports.initialVariableValues = _chunkYUXA7I4Jjs.initialVariableValues; exports.inputGroups = _chunkYUXA7I4Jjs.inputGroups; exports.inputPanels = _chunkYUXA7I4Jjs.inputPanels; exports.inputProblem = _chunkYUXA7I4Jjs.inputProblem; exports.insertPanel = _chunkYUXA7I4Jjs.insertPanel; exports.interpolate = _chunkYUXA7I4Jjs.interpolate; exports.interpolateDeep = _chunkYUXA7I4Jjs.interpolateDeep; exports.isBundleResponse = _chunkYUXA7I4Jjs.isBundleResponse; exports.isEditableVariableType = _chunkYUXA7I4Jjs.isEditableVariableType; exports.isEmptyItem = _chunkYUXA7I4Jjs.isEmptyItem; exports.isFormPanelType = _chunkYUXA7I4Jjs.isFormPanelType; exports.isInputGroup = _chunkYUXA7I4Jjs.isInputGroup; exports.isInputPanel = _chunkYUXA7I4Jjs.isInputPanel; exports.isInputType = _chunkYUXA7I4Jjs.isInputType; exports.isLocalDatasource = _chunkYUXA7I4Jjs.isLocalDatasource; exports.isReducer = _chunkYUXA7I4Jjs.isReducer; exports.isRow = _chunkYUXA7I4Jjs.isRow; exports.isSqlDatasource = _chunkYUXA7I4Jjs.isSqlDatasource; exports.layoutCanvas = _chunkYUXA7I4Jjs.layoutCanvas; exports.layoutDashboard = _chunkYUXA7I4Jjs.layoutDashboard; exports.lightTheme = lightTheme; exports.lineColumn = _chunkYUXA7I4Jjs.lineColumn; exports.loadGazetteer = _chunkYUXA7I4Jjs.loadGazetteer; exports.locate = _chunkYUXA7I4Jjs.locate; exports.makeTemplate = _chunkYUXA7I4Jjs.makeTemplate; exports.manifestSchemaIssues = _chunkYUXA7I4Jjs.manifestSchemaIssues; exports.mappedResult = _chunkYUXA7I4Jjs.mappedResult; exports.mappingProblem = _chunkYUXA7I4Jjs.mappingProblem; exports.mappingRow = _chunkYUXA7I4Jjs.mappingRow; exports.mappingRows = _chunkYUXA7I4Jjs.mappingRows; exports.metricChanges = _chunkYUXA7I4Jjs.metricChanges; exports.movePanel = _chunkYUXA7I4Jjs.movePanel; exports.newDocument = _chunkYUXA7I4Jjs.newDocument; exports.newPanel = _chunkYUXA7I4Jjs.newPanel; exports.newSaveId = _chunkYUXA7I4Jjs.newSaveId; exports.newVariable = _chunkYUXA7I4Jjs.newVariable; exports.nextPanelId = _chunkYUXA7I4Jjs.nextPanelId; exports.normalizeRef = _chunkYUXA7I4Jjs.normalizeRef; exports.numberFields = _chunkYUXA7I4Jjs.numberFields; exports.optionValue = _chunkYUXA7I4Jjs.optionValue; exports.overrideProperties = _chunkYUXA7I4Jjs.overrideProperties; exports.panelEdits = _chunkYUXA7I4Jjs.panelEdits; exports.panelHasQueries = _chunkYUXA7I4Jjs.panelHasQueries; exports.panelKey = _chunkYUXA7I4Jjs.panelKey; exports.panelMetrics = _chunkYUXA7I4Jjs.panelMetrics; exports.panelOptions = _chunkYUXA7I4Jjs.panelOptions; exports.panelOverrides = _chunkYUXA7I4Jjs.panelOverrides; exports.panelSize = _chunkYUXA7I4Jjs.panelSize; exports.panelSpan = _chunkYUXA7I4Jjs.panelSpan; exports.parseClockDigits = _chunkYUXA7I4Jjs.parseClockDigits; exports.parseDashboardLink = _chunkYUXA7I4Jjs.parseDashboardLink; exports.parseDuration = _chunkYUXA7I4Jjs.parseDuration; exports.parseGazetteer = _chunkYUXA7I4Jjs.parseGazetteer; exports.parseJsonText = _chunkYUXA7I4Jjs.parseJsonText; exports.parseLocalDateTime = _chunkYUXA7I4Jjs.parseLocalDateTime; exports.parseRange = _chunkYUXA7I4Jjs.parseRange; exports.parseSnippet = _chunkYUXA7I4Jjs.parseSnippet; exports.parseTemplate = _chunkYUXA7I4Jjs.parseTemplate; exports.parseTime = _chunkYUXA7I4Jjs.parseTime; exports.pasteSnippet = _chunkYUXA7I4Jjs.pasteSnippet; exports.placePanel = _chunkYUXA7I4Jjs.placePanel; exports.plainInputPanels = _chunkYUXA7I4Jjs.plainInputPanels; exports.pointerToPath = _chunkYUXA7I4Jjs.pointerToPath; exports.prepareDashboard = _chunkYUXA7I4Jjs.prepareDashboard; exports.previewPaste = _chunkYUXA7I4Jjs.previewPaste; exports.queryPanel = _chunkYUXA7I4Jjs.queryPanel; exports.queryParam = _chunkYUXA7I4Jjs.queryParam; exports.readConfigFiles = _chunkYUXA7I4Jjs.readConfigFiles; exports.readingOrder = _chunkYUXA7I4Jjs.readingOrder; exports.reduce = _chunkYUXA7I4Jjs.reduce; exports.refineOptions = _chunkYUXA7I4Jjs.refineOptions; exports.refreshedVariables = _chunkYUXA7I4Jjs.refreshedVariables; exports.registerPanel = registerPanel; exports.removeDocumentFromManifest = _chunkYUXA7I4Jjs.removeDocumentFromManifest; exports.removePanel = _chunkYUXA7I4Jjs.removePanel; exports.renameDocumentInManifest = _chunkYUXA7I4Jjs.renameDocumentInManifest; exports.renameMetrics = _chunkYUXA7I4Jjs.renameMetrics; exports.renameVariableInPanels = _chunkYUXA7I4Jjs.renameVariableInPanels; exports.repack = _chunkYUXA7I4Jjs.repack; exports.repeatOptions = _chunkYUXA7I4Jjs.repeatOptions; exports.resizePanel = _chunkYUXA7I4Jjs.resizePanel; exports.resolveColor = _chunkYUXA7I4Jjs.resolveColor; exports.resolveFieldConfig = _chunkYUXA7I4Jjs.resolveFieldConfig; exports.resolveLinks = _chunkYUXA7I4Jjs.resolveLinks; exports.resolveTimezone = _chunkYUXA7I4Jjs.resolveTimezone; exports.resolveUrl = _chunkYUXA7I4Jjs.resolveUrl; exports.resolveVariables = _chunkYUXA7I4Jjs.resolveVariables; exports.revalidateBundle = _chunkYUXA7I4Jjs.revalidateBundle; exports.rowsToMappings = _chunkYUXA7I4Jjs.rowsToMappings; exports.sameSave = _chunkYUXA7I4Jjs.sameSave; exports.sampleEntries = _chunkYUXA7I4Jjs.sampleEntries; exports.screenDocuments = _chunkYUXA7I4Jjs.screenDocuments; exports.screenOfType = _chunkYUXA7I4Jjs.screenOfType; exports.selectValue = _chunkYUXA7I4Jjs.selectValue; exports.seriesColor = _chunkYUXA7I4Jjs.seriesColor; exports.setHiddenOnPhones = _chunkYUXA7I4Jjs.setHiddenOnPhones; exports.setJsonValue = _chunkYUXA7I4Jjs.setJsonValue; exports.setOption = _chunkYUXA7I4Jjs.setOption; exports.setOptionValue = _chunkYUXA7I4Jjs.setOptionValue; exports.setOverrides = _chunkYUXA7I4Jjs.setOverrides; exports.settleLayout = _chunkYUXA7I4Jjs.settleLayout; exports.snapToGrid = _chunkYUXA7I4Jjs.snapToGrid; exports.splitPath = _chunkYUXA7I4Jjs.splitPath; exports.startOf = _chunkYUXA7I4Jjs.startOf; exports.stringifyCompact = _chunkYUXA7I4Jjs.stringifyCompact; exports.tabIdFor = _chunkYUXA7I4Jjs.tabIdFor; exports.templateNeeds = _chunkYUXA7I4Jjs.templateNeeds; exports.textSuggestions = _chunkYUXA7I4Jjs.textSuggestions; exports.thresholdStep = _chunkYUXA7I4Jjs.thresholdStep; exports.timeExprError = _chunkYUXA7I4Jjs.timeExprError; exports.timeField = _chunkYUXA7I4Jjs.timeField; exports.toEntries = _chunkYUXA7I4Jjs.toEntries; exports.toMillis = _chunkYUXA7I4Jjs.toMillis; exports.toSeries = _chunkYUXA7I4Jjs.toSeries; exports.toXYSeries = _chunkYUXA7I4Jjs.toXYSeries; exports.uniqueNames = _chunkYUXA7I4Jjs.uniqueNames; exports.useDashTheme = useDashTheme; exports.useDashboard = useDashboard; exports.useInputForm = useInputForm; exports.usePanelData = usePanelData; exports.validateBundle = _chunkYUXA7I4Jjs.validateBundle; exports.validateDashboard = _chunkYUXA7I4Jjs.validateDashboard; exports.validateManifest = _chunkYUXA7I4Jjs.validateManifest; exports.valueColor = _chunkYUXA7I4Jjs.valueColor; exports.valueText = _chunkYUXA7I4Jjs.valueText; exports.variableDependents = _chunkYUXA7I4Jjs.variableDependents; exports.variableInfo = _chunkYUXA7I4Jjs.variableInfo; exports.variableNameError = _chunkYUXA7I4Jjs.variableNameError; exports.variableOptions = _chunkYUXA7I4Jjs.variableOptions; exports.variableOrder = _chunkYUXA7I4Jjs.variableOrder; exports.variableReferences = _chunkYUXA7I4Jjs.variableReferences; exports.variableUses = _chunkYUXA7I4Jjs.variableUses; exports.variableWithCurrent = _chunkYUXA7I4Jjs.variableWithCurrent; exports.variableWithFlags = _chunkYUXA7I4Jjs.variableWithFlags; exports.variableWithQuery = _chunkYUXA7I4Jjs.variableWithQuery; exports.variableWithType = _chunkYUXA7I4Jjs.variableWithType; exports.visibleVariables = _chunkYUXA7I4Jjs.visibleVariables; exports.zoomRange = _chunkYUXA7I4Jjs.zoomRange;
4546
+
4547
+
4548
+ exports.ALL = _chunkFBZDJWT2js.ALL; exports.BUNDLE_ACCEPT = _chunkFBZDJWT2js.BUNDLE_ACCEPT; exports.BUNDLE_TYPE = _chunkFBZDJWT2js.BUNDLE_TYPE; exports.CANVAS_GAP = _chunkFBZDJWT2js.CANVAS_GAP; exports.CANVAS_ROW_HEADER = _chunkFBZDJWT2js.CANVAS_ROW_HEADER; exports.Calendar = Calendar; exports.Chip = Chip; exports.ConfigLoader = _chunkFBZDJWT2js.ConfigLoader; exports.DASHBOARD_DS = _chunkFBZDJWT2js.DASHBOARD_DS; exports.DEFAULT_GAZETTEER = _chunkFBZDJWT2js.DEFAULT_GAZETTEER; exports.DashThemeProvider = DashThemeProvider; exports.DashboardProvider = DashboardProvider; exports.DashboardToolbar = DashboardToolbar; exports.DashboardView = DashboardView; exports.EDITABLE_VARIABLE_TYPES = _chunkFBZDJWT2js.EDITABLE_VARIABLE_TYPES; exports.GRID_COLUMNS = _chunkFBZDJWT2js.GRID_COLUMNS; exports.GROUP_FIELD_TYPES = _chunkFBZDJWT2js.GROUP_FIELD_TYPES; exports.GrafanaClient = _chunkFBZDJWT2js.GrafanaClient; exports.GrafanaDataSource = _chunkFBZDJWT2js.GrafanaDataSource; exports.GrafanaError = _chunkFBZDJWT2js.GrafanaError; exports.HttpConfigFiles = _chunkFBZDJWT2js.HttpConfigFiles; exports.INPUT_GROUP = _chunkFBZDJWT2js.INPUT_GROUP; exports.INPUT_OPTION_KEYS = _chunkFBZDJWT2js.INPUT_OPTION_KEYS; exports.INPUT_TYPES = _chunkFBZDJWT2js.INPUT_TYPES; exports.InputForm = InputForm; exports.InputFormContext = InputFormContext; exports.LOCAL_DATASOURCE_TYPE = _chunkFBZDJWT2js.LOCAL_DATASOURCE_TYPE; exports.Legend = Legend; exports.LocalDataSource = _chunkFBZDJWT2js.LocalDataSource; exports.MANIFEST_VERSION = _chunkFBZDJWT2js.MANIFEST_VERSION; exports.MAPPING_TYPES = _chunkFBZDJWT2js.MAPPING_TYPES; exports.MemoryEntryStore = _chunkFBZDJWT2js.MemoryEntryStore; exports.NAMED_COLORS = _chunkFBZDJWT2js.NAMED_COLORS; exports.NoData = NoData; exports.OPTION_CATEGORIES = _chunkFBZDJWT2js.OPTION_CATEGORIES; exports.OVERRIDE_MATCHERS = _chunkFBZDJWT2js.OVERRIDE_MATCHERS; exports.PANEL_TYPES = _chunkFBZDJWT2js.PANEL_TYPES; exports.PanelCard = PanelCard; exports.REDUCER_LABELS = _chunkFBZDJWT2js.REDUCER_LABELS; exports.REFRESH_CHOICES = _chunkFBZDJWT2js.REFRESH_CHOICES; exports.RELATIVE_RANGES = _chunkFBZDJWT2js.RELATIVE_RANGES; exports.RenderBoundary = RenderBoundary; exports.SERIES_PALETTE = _chunkFBZDJWT2js.SERIES_PALETTE; exports.SNIPPET_VERSION = _chunkFBZDJWT2js.SNIPPET_VERSION; exports.SPECIAL_MATCHES = _chunkFBZDJWT2js.SPECIAL_MATCHES; exports.SaveConflictError = _chunkFBZDJWT2js.SaveConflictError; exports.TEMPLATE_VERSION = _chunkFBZDJWT2js.TEMPLATE_VERSION; exports.TIME_PRESETS = _chunkFBZDJWT2js.TIME_PRESETS; exports.UNIT_CHOICES = _chunkFBZDJWT2js.UNIT_CHOICES; exports.addTime = _chunkFBZDJWT2js.addTime; exports.appSchema = _chunkFBZDJWT2js.appSchema; exports.applyDashboardLink = _chunkFBZDJWT2js.applyDashboardLink; exports.applyJsonEdits = _chunkFBZDJWT2js.applyJsonEdits; exports.applyTemplate = _chunkFBZDJWT2js.applyTemplate; exports.applyTransformations = _chunkFBZDJWT2js.applyTransformations; exports.assembleBundle = _chunkFBZDJWT2js.assembleBundle; exports.assembleFromResponse = _chunkFBZDJWT2js.assembleFromResponse; exports.buildFrames = _chunkFBZDJWT2js.buildFrames; exports.bundleFromFiles = _chunkFBZDJWT2js.bundleFromFiles; exports.bundleRoot = _chunkFBZDJWT2js.bundleRoot; exports.calculateInterval = _chunkFBZDJWT2js.calculateInterval; exports.checkFiles = _chunkFBZDJWT2js.checkFiles; exports.cleanDashboard = _chunkFBZDJWT2js.cleanDashboard; exports.cleanPanelOptions = _chunkFBZDJWT2js.cleanPanelOptions; exports.collapseRow = _chunkFBZDJWT2js.collapseRow; exports.compactGrid = _chunkFBZDJWT2js.compactGrid; exports.copyPanels = _chunkFBZDJWT2js.copyPanels; exports.darkTheme = darkTheme; exports.dashboardSchema = _chunkFBZDJWT2js.dashboardSchema; exports.dashboardSchemaIssues = _chunkFBZDJWT2js.dashboardSchemaIssues; exports.dashboardSourceIds = _chunkFBZDJWT2js.dashboardSourceIds; exports.defaultFetchJson = _chunkFBZDJWT2js.defaultFetchJson; exports.describeRange = _chunkFBZDJWT2js.describeRange; exports.diffJson = _chunkFBZDJWT2js.diffJson; exports.documentIdFor = _chunkFBZDJWT2js.documentIdFor; exports.documentKind = _chunkFBZDJWT2js.documentKind; exports.documentUses = _chunkFBZDJWT2js.documentUses; exports.dropTarget = _chunkFBZDJWT2js.dropTarget; exports.duplicatePanel = _chunkFBZDJWT2js.duplicatePanel; exports.entriesSavedWith = _chunkFBZDJWT2js.entriesSavedWith; exports.entriesToItems = _chunkFBZDJWT2js.entriesToItems; exports.entryToInputValue = _chunkFBZDJWT2js.entryToInputValue; exports.expandRow = _chunkFBZDJWT2js.expandRow; exports.fetchBundle = _chunkFBZDJWT2js.fetchBundle; exports.fetchJsonWithToken = _chunkFBZDJWT2js.fetchJsonWithToken; exports.fieldDisplayName = _chunkFBZDJWT2js.fieldDisplayName; exports.fieldMatches = _chunkFBZDJWT2js.fieldMatches; exports.formatClock = _chunkFBZDJWT2js.formatClock; exports.formatDisplay = _chunkFBZDJWT2js.formatDisplay; exports.formatDuration = _chunkFBZDJWT2js.formatDuration; exports.formatJsonText = _chunkFBZDJWT2js.formatJsonText; exports.formatLocalDateTime = _chunkFBZDJWT2js.formatLocalDateTime; exports.formatValue = _chunkFBZDJWT2js.formatValue; exports.frameLength = _chunkFBZDJWT2js.frameLength; exports.framesToOptions = _chunkFBZDJWT2js.framesToOptions; exports.fromWire = _chunkFBZDJWT2js.fromWire; exports.getPath = _chunkFBZDJWT2js.getPath; exports.gridOffsetPx = _chunkFBZDJWT2js.gridOffsetPx; exports.gridUnitsToPx = _chunkFBZDJWT2js.gridUnitsToPx; exports.groupField = _chunkFBZDJWT2js.groupField; exports.groupFields = _chunkFBZDJWT2js.groupFields; exports.groupKey = groupKey; exports.groupProblems = _chunkFBZDJWT2js.groupProblems; exports.groupToEntries = _chunkFBZDJWT2js.groupToEntries; exports.httpFetchJson = _chunkFBZDJWT2js.httpFetchJson; exports.initialVariableValues = _chunkFBZDJWT2js.initialVariableValues; exports.inputGroups = _chunkFBZDJWT2js.inputGroups; exports.inputPanels = _chunkFBZDJWT2js.inputPanels; exports.inputProblem = _chunkFBZDJWT2js.inputProblem; exports.insertPanel = _chunkFBZDJWT2js.insertPanel; exports.interpolate = _chunkFBZDJWT2js.interpolate; exports.interpolateDeep = _chunkFBZDJWT2js.interpolateDeep; exports.isBundleResponse = _chunkFBZDJWT2js.isBundleResponse; exports.isEditableVariableType = _chunkFBZDJWT2js.isEditableVariableType; exports.isEmptyItem = _chunkFBZDJWT2js.isEmptyItem; exports.isFormPanelType = _chunkFBZDJWT2js.isFormPanelType; exports.isInputGroup = _chunkFBZDJWT2js.isInputGroup; exports.isInputPanel = _chunkFBZDJWT2js.isInputPanel; exports.isInputType = _chunkFBZDJWT2js.isInputType; exports.isLocalDatasource = _chunkFBZDJWT2js.isLocalDatasource; exports.isReducer = _chunkFBZDJWT2js.isReducer; exports.isRow = _chunkFBZDJWT2js.isRow; exports.isSqlDatasource = _chunkFBZDJWT2js.isSqlDatasource; exports.layoutCanvas = _chunkFBZDJWT2js.layoutCanvas; exports.layoutDashboard = _chunkFBZDJWT2js.layoutDashboard; exports.lightTheme = lightTheme; exports.lineColumn = _chunkFBZDJWT2js.lineColumn; exports.loadGazetteer = _chunkFBZDJWT2js.loadGazetteer; exports.locate = _chunkFBZDJWT2js.locate; exports.makeTemplate = _chunkFBZDJWT2js.makeTemplate; exports.manifestSchemaIssues = _chunkFBZDJWT2js.manifestSchemaIssues; exports.mappedResult = _chunkFBZDJWT2js.mappedResult; exports.mappingProblem = _chunkFBZDJWT2js.mappingProblem; exports.mappingRow = _chunkFBZDJWT2js.mappingRow; exports.mappingRows = _chunkFBZDJWT2js.mappingRows; exports.metricChanges = _chunkFBZDJWT2js.metricChanges; exports.movePanel = _chunkFBZDJWT2js.movePanel; exports.newDocument = _chunkFBZDJWT2js.newDocument; exports.newPanel = _chunkFBZDJWT2js.newPanel; exports.newSaveId = _chunkFBZDJWT2js.newSaveId; exports.newVariable = _chunkFBZDJWT2js.newVariable; exports.nextPanelId = _chunkFBZDJWT2js.nextPanelId; exports.normalizeRef = _chunkFBZDJWT2js.normalizeRef; exports.numberFields = _chunkFBZDJWT2js.numberFields; exports.optionValue = _chunkFBZDJWT2js.optionValue; exports.overrideProperties = _chunkFBZDJWT2js.overrideProperties; exports.panelEdits = _chunkFBZDJWT2js.panelEdits; exports.panelHasQueries = _chunkFBZDJWT2js.panelHasQueries; exports.panelKey = _chunkFBZDJWT2js.panelKey; exports.panelMetrics = _chunkFBZDJWT2js.panelMetrics; exports.panelOptions = _chunkFBZDJWT2js.panelOptions; exports.panelOverrides = _chunkFBZDJWT2js.panelOverrides; exports.panelSize = _chunkFBZDJWT2js.panelSize; exports.panelSpan = _chunkFBZDJWT2js.panelSpan; exports.parseClockDigits = _chunkFBZDJWT2js.parseClockDigits; exports.parseDashboardLink = _chunkFBZDJWT2js.parseDashboardLink; exports.parseDuration = _chunkFBZDJWT2js.parseDuration; exports.parseGazetteer = _chunkFBZDJWT2js.parseGazetteer; exports.parseJsonText = _chunkFBZDJWT2js.parseJsonText; exports.parseLocalDateTime = _chunkFBZDJWT2js.parseLocalDateTime; exports.parseRange = _chunkFBZDJWT2js.parseRange; exports.parseSnippet = _chunkFBZDJWT2js.parseSnippet; exports.parseTemplate = _chunkFBZDJWT2js.parseTemplate; exports.parseTime = _chunkFBZDJWT2js.parseTime; exports.pasteSnippet = _chunkFBZDJWT2js.pasteSnippet; exports.placePanel = _chunkFBZDJWT2js.placePanel; exports.plainInputPanels = _chunkFBZDJWT2js.plainInputPanels; exports.pointerToPath = _chunkFBZDJWT2js.pointerToPath; exports.prepareDashboard = _chunkFBZDJWT2js.prepareDashboard; exports.previewPaste = _chunkFBZDJWT2js.previewPaste; exports.queryPanel = _chunkFBZDJWT2js.queryPanel; exports.queryParam = _chunkFBZDJWT2js.queryParam; exports.readConfigFiles = _chunkFBZDJWT2js.readConfigFiles; exports.readingOrder = _chunkFBZDJWT2js.readingOrder; exports.reduce = _chunkFBZDJWT2js.reduce; exports.refineOptions = _chunkFBZDJWT2js.refineOptions; exports.refreshedVariables = _chunkFBZDJWT2js.refreshedVariables; exports.registerPanel = registerPanel; exports.removeDocumentFromManifest = _chunkFBZDJWT2js.removeDocumentFromManifest; exports.removePanel = _chunkFBZDJWT2js.removePanel; exports.renameDocumentInManifest = _chunkFBZDJWT2js.renameDocumentInManifest; exports.renameMetrics = _chunkFBZDJWT2js.renameMetrics; exports.renameVariableInPanels = _chunkFBZDJWT2js.renameVariableInPanels; exports.repack = _chunkFBZDJWT2js.repack; exports.repeatOptions = _chunkFBZDJWT2js.repeatOptions; exports.resizePanel = _chunkFBZDJWT2js.resizePanel; exports.resolveColor = _chunkFBZDJWT2js.resolveColor; exports.resolveFieldConfig = _chunkFBZDJWT2js.resolveFieldConfig; exports.resolveLinks = _chunkFBZDJWT2js.resolveLinks; exports.resolveTimezone = _chunkFBZDJWT2js.resolveTimezone; exports.resolveUrl = _chunkFBZDJWT2js.resolveUrl; exports.resolveVariables = _chunkFBZDJWT2js.resolveVariables; exports.revalidateBundle = _chunkFBZDJWT2js.revalidateBundle; exports.rowsToMappings = _chunkFBZDJWT2js.rowsToMappings; exports.sameSave = _chunkFBZDJWT2js.sameSave; exports.sampleEntries = _chunkFBZDJWT2js.sampleEntries; exports.screenDocuments = _chunkFBZDJWT2js.screenDocuments; exports.screenOfType = _chunkFBZDJWT2js.screenOfType; exports.selectValue = _chunkFBZDJWT2js.selectValue; exports.seriesColor = _chunkFBZDJWT2js.seriesColor; exports.setHiddenOnPhones = _chunkFBZDJWT2js.setHiddenOnPhones; exports.setJsonValue = _chunkFBZDJWT2js.setJsonValue; exports.setOption = _chunkFBZDJWT2js.setOption; exports.setOptionValue = _chunkFBZDJWT2js.setOptionValue; exports.setOverrides = _chunkFBZDJWT2js.setOverrides; exports.settleLayout = _chunkFBZDJWT2js.settleLayout; exports.snapToGrid = _chunkFBZDJWT2js.snapToGrid; exports.splitPath = _chunkFBZDJWT2js.splitPath; exports.startOf = _chunkFBZDJWT2js.startOf; exports.stringifyCompact = _chunkFBZDJWT2js.stringifyCompact; exports.tabIdFor = _chunkFBZDJWT2js.tabIdFor; exports.templateNeeds = _chunkFBZDJWT2js.templateNeeds; exports.textSuggestions = _chunkFBZDJWT2js.textSuggestions; exports.thresholdStep = _chunkFBZDJWT2js.thresholdStep; exports.timeExprError = _chunkFBZDJWT2js.timeExprError; exports.timeField = _chunkFBZDJWT2js.timeField; exports.toEntries = _chunkFBZDJWT2js.toEntries; exports.toMillis = _chunkFBZDJWT2js.toMillis; exports.toSeries = _chunkFBZDJWT2js.toSeries; exports.toXYSeries = _chunkFBZDJWT2js.toXYSeries; exports.uniqueNames = _chunkFBZDJWT2js.uniqueNames; exports.useDashTheme = useDashTheme; exports.useDashboard = useDashboard; exports.useInputForm = useInputForm; exports.usePanelData = usePanelData; exports.validateBundle = _chunkFBZDJWT2js.validateBundle; exports.validateDashboard = _chunkFBZDJWT2js.validateDashboard; exports.validateManifest = _chunkFBZDJWT2js.validateManifest; exports.valueColor = _chunkFBZDJWT2js.valueColor; exports.valueText = _chunkFBZDJWT2js.valueText; exports.variableDependents = _chunkFBZDJWT2js.variableDependents; exports.variableInfo = _chunkFBZDJWT2js.variableInfo; exports.variableNameError = _chunkFBZDJWT2js.variableNameError; exports.variableOptions = _chunkFBZDJWT2js.variableOptions; exports.variableOrder = _chunkFBZDJWT2js.variableOrder; exports.variableReferences = _chunkFBZDJWT2js.variableReferences; exports.variableUses = _chunkFBZDJWT2js.variableUses; exports.variableWithCurrent = _chunkFBZDJWT2js.variableWithCurrent; exports.variableWithFlags = _chunkFBZDJWT2js.variableWithFlags; exports.variableWithQuery = _chunkFBZDJWT2js.variableWithQuery; exports.variableWithType = _chunkFBZDJWT2js.variableWithType; exports.visibleVariables = _chunkFBZDJWT2js.visibleVariables; exports.zoomRange = _chunkFBZDJWT2js.zoomRange;