@modelform/react-native 0.13.0 → 0.15.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
@@ -242,7 +242,17 @@
242
242
 
243
243
 
244
244
 
245
- var _chunkCU4TMSZEjs = require('./chunk-CU4TMSZE.js');
245
+
246
+
247
+
248
+
249
+
250
+
251
+
252
+
253
+
254
+
255
+ var _chunkP4NMZ77Wjs = require('./chunk-P4NMZ77W.js');
246
256
 
247
257
  // src/ui/theme.tsx
248
258
  var _react = require('react');
@@ -432,7 +442,7 @@ function DashboardProvider({ dashboard, resolve, refreshKey: externalKey = 0, on
432
442
  if (!dashboard.refresh) return;
433
443
  let ms;
434
444
  try {
435
- ms = _chunkCU4TMSZEjs.parseDuration.call(void 0, dashboard.refresh);
445
+ ms = _chunkP4NMZ77Wjs.parseDuration.call(void 0, dashboard.refresh);
436
446
  } catch (e2) {
437
447
  return;
438
448
  }
@@ -440,7 +450,7 @@ function DashboardProvider({ dashboard, resolve, refreshKey: externalKey = 0, on
440
450
  return () => clearInterval(id);
441
451
  }, [dashboard.refresh, refresh]);
442
452
  const refreshKey = tick + externalKey;
443
- const range3 = _react.useMemo.call(void 0, () => _chunkCU4TMSZEjs.parseRange.call(void 0, rawRange), [rawRange, refreshKey]);
453
+ const range3 = _react.useMemo.call(void 0, () => _chunkP4NMZ77Wjs.parseRange.call(void 0, rawRange), [rawRange, refreshKey]);
444
454
  const shared = _react.useMemo.call(void 0, () => /* @__PURE__ */ new Map(), [range3, vars.variables, vars.variableInfo]);
445
455
  const value = _react.useMemo.call(void 0,
446
456
  () => ({
@@ -477,8 +487,8 @@ function DashboardProvider({ dashboard, resolve, refreshKey: externalKey = 0, on
477
487
  ] });
478
488
  }
479
489
  function useDashboardVariables(dashboard, resolve, rawRange) {
480
- const [state, setState] = _react.useState.call(void 0, () => ({ values: _chunkCU4TMSZEjs.initialVariableValues.call(void 0, dashboard), options: {}, errors: {} }));
481
- const [resolving, setResolving] = _react.useState.call(void 0, () => !!resolve && _chunkCU4TMSZEjs.refreshedVariables.call(void 0, dashboard, "load").length > 0);
490
+ const [state, setState] = _react.useState.call(void 0, () => ({ values: _chunkP4NMZ77Wjs.initialVariableValues.call(void 0, dashboard), options: {}, errors: {} }));
491
+ const [resolving, setResolving] = _react.useState.call(void 0, () => !!resolve && _chunkP4NMZ77Wjs.refreshedVariables.call(void 0, dashboard, "load").length > 0);
482
492
  const [runKey, setRunKey] = _react.useState.call(void 0, 0);
483
493
  const pending = _react.useRef.call(void 0, /* @__PURE__ */ new Set());
484
494
  const stateRef = _react.useRef.call(void 0, state);
@@ -511,7 +521,7 @@ function useDashboardVariables(dashboard, resolve, rawRange) {
511
521
  setState(update);
512
522
  setResolving(false);
513
523
  };
514
- _chunkCU4TMSZEjs.resolveVariables.call(void 0, dashboard, { values, options, names, resolve: resolve2, range: _chunkCU4TMSZEjs.parseRange.call(void 0, rawRange), signal: controller.signal }).then(
524
+ _chunkP4NMZ77Wjs.resolveVariables.call(void 0, dashboard, { values, options, names, resolve: resolve2, range: _chunkP4NMZ77Wjs.parseRange.call(void 0, rawRange), signal: controller.signal }).then(
515
525
  (res) => finish((s) => ({
516
526
  // Only the re-run variables change, so a pick made while this ran isn't overwritten.
517
527
  values: { ...s.values, ...Object.fromEntries([...names].filter((n) => n in res.values).map((n) => [n, res.values[n]])) },
@@ -525,11 +535,11 @@ function useDashboardVariables(dashboard, resolve, rawRange) {
525
535
  const [loadedDashboard, setLoadedDashboard] = _react.useState.call(void 0, dashboard);
526
536
  if (dashboard !== loadedDashboard) {
527
537
  setLoadedDashboard(dashboard);
528
- setState((s) => ({ ...s, values: { ..._chunkCU4TMSZEjs.initialVariableValues.call(void 0, dashboard), ...s.values } }));
538
+ setState((s) => ({ ...s, values: { ..._chunkP4NMZ77Wjs.initialVariableValues.call(void 0, dashboard), ...s.values } }));
529
539
  }
530
540
  _react.useEffect.call(void 0, () => {
531
- const roots = _chunkCU4TMSZEjs.refreshedVariables.call(void 0, dashboard, "load");
532
- schedule([...roots, ..._chunkCU4TMSZEjs.variableDependents.call(void 0, dashboard, roots)]);
541
+ const roots = _chunkP4NMZ77Wjs.refreshedVariables.call(void 0, dashboard, "load");
542
+ schedule([...roots, ..._chunkP4NMZ77Wjs.variableDependents.call(void 0, dashboard, roots)]);
533
543
  }, [dashboard, schedule]);
534
544
  const mounted = _react.useRef.call(void 0, false);
535
545
  _react.useEffect.call(void 0, () => {
@@ -537,17 +547,17 @@ function useDashboardVariables(dashboard, resolve, rawRange) {
537
547
  mounted.current = true;
538
548
  return;
539
549
  }
540
- const roots = _chunkCU4TMSZEjs.refreshedVariables.call(void 0, dashboard, "range");
541
- schedule([...roots, ..._chunkCU4TMSZEjs.variableDependents.call(void 0, dashboard, roots)]);
550
+ const roots = _chunkP4NMZ77Wjs.refreshedVariables.call(void 0, dashboard, "range");
551
+ schedule([...roots, ..._chunkP4NMZ77Wjs.variableDependents.call(void 0, dashboard, roots)]);
542
552
  }, [rawRange]);
543
553
  const setVariable = _react.useCallback.call(void 0,
544
554
  (name, value) => {
545
555
  setState((s) => ({ ...s, values: { ...s.values, [name]: value } }));
546
- schedule(_chunkCU4TMSZEjs.variableDependents.call(void 0, dashboard, [name]));
556
+ schedule(_chunkP4NMZ77Wjs.variableDependents.call(void 0, dashboard, [name]));
547
557
  },
548
558
  [dashboard, schedule]
549
559
  );
550
- const info = _react.useMemo.call(void 0, () => _chunkCU4TMSZEjs.variableInfo.call(void 0, dashboard, state.options), [dashboard, state.options]);
560
+ const info = _react.useMemo.call(void 0, () => _chunkP4NMZ77Wjs.variableInfo.call(void 0, dashboard, state.options), [dashboard, state.options]);
551
561
  return _react.useMemo.call(void 0,
552
562
  () => ({
553
563
  variables: state.values,
@@ -577,7 +587,7 @@ function usePanelData(panel, widthPx, enabled = true) {
577
587
  _react.useEffect.call(void 0, () => {
578
588
  if (!enabled || !request || !variablesReady) return;
579
589
  const controller = new AbortController();
580
- _chunkCU4TMSZEjs.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))) }));
590
+ _chunkP4NMZ77Wjs.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))) }));
581
591
  return () => controller.abort();
582
592
  }, [enabled, request, variablesReady]);
583
593
  if (!enabled) return IDLE;
@@ -587,7 +597,7 @@ function usePanelData(panel, widthPx, enabled = true) {
587
597
  function usePanelLinks(panel) {
588
598
  const { dashboard, variables, variableInfo: variableInfo2, range: range3, openLinks } = useDashboard();
589
599
  const resolve = _react.useCallback.call(void 0,
590
- (links, data) => _chunkCU4TMSZEjs.resolveLinks.call(void 0, links, { dashboard, values: variables, info: variableInfo2, scoped: panel.scopedVars, range: range3, timezone: dashboard.timezone, data }),
600
+ (links, data) => _chunkP4NMZ77Wjs.resolveLinks.call(void 0, links, { dashboard, values: variables, info: variableInfo2, scoped: panel.scopedVars, range: range3, timezone: dashboard.timezone, data }),
591
601
  [dashboard, variables, variableInfo2, panel.scopedVars, range3]
592
602
  );
593
603
  return { resolve, openLinks };
@@ -628,7 +638,7 @@ var RenderBoundary = (_class = class extends _react.Component {constructor(...ar
628
638
 
629
639
  // src/ui/inputs/formContext.ts
630
640
 
631
- var groupKey = (g) => g.id != null ? `#${g.id}` : _chunkCU4TMSZEjs.groupFields.call(void 0, g).map((f) => f.options.metric).join("|");
641
+ var groupKey = (g) => g.id != null ? `#${g.id}` : _chunkP4NMZ77Wjs.groupFields.call(void 0, g).map((f) => f.options.metric).join("|");
632
642
  var InputFormContext = _react.createContext.call(void 0, null);
633
643
  function useInputForm() {
634
644
  const v = _react.useContext.call(void 0, InputFormContext);
@@ -689,14 +699,14 @@ var ArrowIcon = ({ color, dir }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
689
699
  function displayExpr(expr) {
690
700
  if (expr.trim().startsWith("now")) return expr;
691
701
  try {
692
- return _chunkCU4TMSZEjs.formatLocalDateTime.call(void 0, _chunkCU4TMSZEjs.parseTime.call(void 0, expr));
702
+ return _chunkP4NMZ77Wjs.formatLocalDateTime.call(void 0, _chunkP4NMZ77Wjs.parseTime.call(void 0, expr));
693
703
  } catch (e3) {
694
704
  return expr;
695
705
  }
696
706
  }
697
707
  function tryParse(expr, roundUp, now = Date.now()) {
698
708
  try {
699
- return _chunkCU4TMSZEjs.parseTime.call(void 0, expr, now, roundUp);
709
+ return _chunkP4NMZ77Wjs.parseTime.call(void 0, expr, now, roundUp);
700
710
  } catch (e4) {
701
711
  return null;
702
712
  }
@@ -710,7 +720,7 @@ function endOfDay(ms) {
710
720
  return new Date(d.getFullYear(), d.getMonth(), d.getDate() + 1).getTime() - 1e3;
711
721
  }
712
722
  function resolveTo(expr) {
713
- return /^\s*\d{4}-\d{1,2}-\d{1,2}\s*$/.test(expr) ? _chunkCU4TMSZEjs.formatLocalDateTime.call(void 0, endOfDay(_chunkCU4TMSZEjs.parseTime.call(void 0, expr))) : expr;
723
+ return /^\s*\d{4}-\d{1,2}-\d{1,2}\s*$/.test(expr) ? _chunkP4NMZ77Wjs.formatLocalDateTime.call(void 0, endOfDay(_chunkP4NMZ77Wjs.parseTime.call(void 0, expr))) : expr;
714
724
  }
715
725
  function TimeRangeSheet({ visible, value, onApply, onClose }) {
716
726
  const theme = useDashTheme();
@@ -721,12 +731,12 @@ function TimeRangeSheet({ visible, value, onApply, onClose }) {
721
731
  const [now] = _react.useState.call(void 0, () => Date.now());
722
732
  const [month, setMonth] = _react.useState.call(void 0, () => new Date(_nullishCoalesce(tryParse(value.from, false), () => ( now))));
723
733
  const fromMs = tryParse(from, false, now);
724
- const toMs = tryParse(_chunkCU4TMSZEjs.timeExprError.call(void 0, to) ? to : resolveTo(to), true, now);
725
- const fromError = _chunkCU4TMSZEjs.timeExprError.call(void 0, from);
726
- const toError = _chunkCU4TMSZEjs.timeExprError.call(void 0, to);
734
+ const toMs = tryParse(_chunkP4NMZ77Wjs.timeExprError.call(void 0, to) ? to : resolveTo(to), true, now);
735
+ const fromError = _chunkP4NMZ77Wjs.timeExprError.call(void 0, from);
736
+ const toError = _chunkP4NMZ77Wjs.timeExprError.call(void 0, to);
727
737
  const orderError = fromMs != null && toMs != null && fromMs >= toMs ? "\u201CTo\u201D must be after \u201CFrom\u201D" : null;
728
738
  const valid = !fromError && !toError && !orderError;
729
- const normalize = (expr) => expr.trim().startsWith("now") ? expr.trim() : _chunkCU4TMSZEjs.formatLocalDateTime.call(void 0, _chunkCU4TMSZEjs.parseTime.call(void 0, expr));
739
+ const normalize = (expr) => expr.trim().startsWith("now") ? expr.trim() : _chunkP4NMZ77Wjs.formatLocalDateTime.call(void 0, _chunkP4NMZ77Wjs.parseTime.call(void 0, expr));
730
740
  const apply = () => {
731
741
  if (!valid) return;
732
742
  onApply({ from: normalize(from), to: normalize(resolveTo(to)) });
@@ -735,14 +745,14 @@ function TimeRangeSheet({ visible, value, onApply, onClose }) {
735
745
  const pickDay = (day) => {
736
746
  const end = endOfDay(day);
737
747
  if (active === "from") {
738
- setFrom(_chunkCU4TMSZEjs.formatLocalDateTime.call(void 0, day));
739
- if (toMs == null || toMs <= day) setTo(_chunkCU4TMSZEjs.formatLocalDateTime.call(void 0, end));
748
+ setFrom(_chunkP4NMZ77Wjs.formatLocalDateTime.call(void 0, day));
749
+ if (toMs == null || toMs <= day) setTo(_chunkP4NMZ77Wjs.formatLocalDateTime.call(void 0, end));
740
750
  setActive("to");
741
751
  } else if (fromMs != null && day < startOfDay(fromMs)) {
742
- setFrom(_chunkCU4TMSZEjs.formatLocalDateTime.call(void 0, day));
743
- setTo(_chunkCU4TMSZEjs.formatLocalDateTime.call(void 0, end));
752
+ setFrom(_chunkP4NMZ77Wjs.formatLocalDateTime.call(void 0, day));
753
+ setTo(_chunkP4NMZ77Wjs.formatLocalDateTime.call(void 0, end));
744
754
  } else {
745
- setTo(_chunkCU4TMSZEjs.formatLocalDateTime.call(void 0, end));
755
+ setTo(_chunkP4NMZ77Wjs.formatLocalDateTime.call(void 0, end));
746
756
  }
747
757
  };
748
758
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -778,7 +788,7 @@ function TimeRangeSheet({ visible, value, onApply, onClose }) {
778
788
  }
779
789
  ),
780
790
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles3.sectionTitle, { color: theme.textSecondary }], children: "Relative ranges" }),
781
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: styles3.chips, children: _chunkCU4TMSZEjs.RELATIVE_RANGES.map((r) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
791
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: styles3.chips, children: _chunkP4NMZ77Wjs.RELATIVE_RANGES.map((r) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
782
792
  Chip,
783
793
  {
784
794
  label: r.label,
@@ -922,17 +932,17 @@ var FilterIcon = ({ color }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _re
922
932
  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" }) });
923
933
  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" }) });
924
934
  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" }) });
925
- function DashboardToolbar({ presets = _chunkCU4TMSZEjs.TIME_PRESETS }) {
935
+ function DashboardToolbar({ presets = _chunkP4NMZ77Wjs.TIME_PRESETS }) {
926
936
  const theme = useDashTheme();
927
937
  const { dashboard, rawRange, setRawRange, variables, variableErrors } = useDashboard();
928
938
  const [filtersOpen, setFiltersOpen] = _react.useState.call(void 0, false);
929
939
  const [rangeOpen, setRangeOpen] = _react.useState.call(void 0, false);
930
940
  const [rangeKey, setRangeKey] = _react.useState.call(void 0, 0);
931
941
  const custom = !presets.some((p) => rawRange.from === p.from && rawRange.to === p.to);
932
- const vars = _chunkCU4TMSZEjs.visibleVariables.call(void 0, dashboard);
942
+ const vars = _chunkP4NMZ77Wjs.visibleVariables.call(void 0, dashboard);
933
943
  const active = vars.filter((v) => {
934
944
  const cur = variables[v.name];
935
- return v.includeAll && cur != null && !(Array.isArray(cur) ? cur.includes(_chunkCU4TMSZEjs.ALL) : cur === _chunkCU4TMSZEjs.ALL);
945
+ return v.includeAll && cur != null && !(Array.isArray(cur) ? cur.includes(_chunkP4NMZ77Wjs.ALL) : cur === _chunkP4NMZ77Wjs.ALL);
936
946
  }).length;
937
947
  const hasError = vars.some((v) => variableErrors[v.name]);
938
948
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { style: styles4.toolbar, children: [
@@ -958,7 +968,7 @@ function DashboardToolbar({ presets = _chunkCU4TMSZEjs.TIME_PRESETS }) {
958
968
  setRangeOpen(true);
959
969
  },
960
970
  accessibilityRole: "button",
961
- accessibilityLabel: custom ? `Time range, ${_chunkCU4TMSZEjs.describeRange.call(void 0, rawRange)}` : "Custom time range",
971
+ accessibilityLabel: custom ? `Time range, ${_chunkP4NMZ77Wjs.describeRange.call(void 0, rawRange)}` : "Custom time range",
962
972
  style: ({ pressed }) => [
963
973
  custom ? styles4.rangeButton : styles4.iconButton,
964
974
  { borderColor: custom ? theme.accent : theme.border, backgroundColor: theme.surface },
@@ -966,7 +976,7 @@ function DashboardToolbar({ presets = _chunkCU4TMSZEjs.TIME_PRESETS }) {
966
976
  ],
967
977
  children: [
968
978
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CalendarIcon, { color: custom ? theme.accent : theme.textSecondary }),
969
- custom && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles4.rangeLabel, { color: theme.accent }], numberOfLines: 1, children: _chunkCU4TMSZEjs.describeRange.call(void 0, rawRange) })
979
+ custom && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles4.rangeLabel, { color: theme.accent }], numberOfLines: 1, children: _chunkP4NMZ77Wjs.describeRange.call(void 0, rawRange) })
970
980
  ]
971
981
  }
972
982
  ),
@@ -1022,14 +1032,14 @@ function FilterSection({ variable: v, open, onToggle }) {
1022
1032
  const theme = useDashTheme();
1023
1033
  const { variables, variableInfo: variableInfo2, variableErrors, variablesReady, setVariable } = useDashboard();
1024
1034
  const current = variables[v.name];
1025
- const summary = _chunkCU4TMSZEjs.valueText.call(void 0, current, variableInfo2[v.name]) || (variablesReady ? "None" : "\u2026");
1026
- const options = [...v.includeAll ? [{ text: "All", value: _chunkCU4TMSZEjs.ALL }] : [], ..._nullishCoalesce(_optionalChain([variableInfo2, 'access', _9 => _9[v.name], 'optionalAccess', _10 => _10.options]), () => ( []))];
1035
+ const summary = _chunkP4NMZ77Wjs.valueText.call(void 0, current, variableInfo2[v.name]) || (variablesReady ? "None" : "\u2026");
1036
+ const options = [...v.includeAll ? [{ text: "All", value: _chunkP4NMZ77Wjs.ALL }] : [], ..._nullishCoalesce(_optionalChain([variableInfo2, 'access', _9 => _9[v.name], 'optionalAccess', _10 => _10.options]), () => ( []))];
1027
1037
  const error = variableErrors[v.name];
1028
1038
  const choose = (value, selected) => {
1029
- if (v.multi && value !== _chunkCU4TMSZEjs.ALL) {
1030
- const cur = (Array.isArray(current) ? current : [current]).filter((c) => c && c !== _chunkCU4TMSZEjs.ALL);
1039
+ if (v.multi && value !== _chunkP4NMZ77Wjs.ALL) {
1040
+ const cur = (Array.isArray(current) ? current : [current]).filter((c) => c && c !== _chunkP4NMZ77Wjs.ALL);
1031
1041
  const next = selected ? cur.filter((c) => c !== value) : [...cur, value];
1032
- setVariable(v.name, next.length ? next : [_chunkCU4TMSZEjs.ALL]);
1042
+ setVariable(v.name, next.length ? next : [_chunkP4NMZ77Wjs.ALL]);
1033
1043
  } else {
1034
1044
  setVariable(v.name, v.multi ? [value] : value);
1035
1045
  if (!v.multi) onToggle();
@@ -1169,7 +1179,7 @@ function barCategory(panel, frame) {
1169
1179
  }
1170
1180
  function categoryLabels(field) {
1171
1181
  if (field.type !== "time") return field.values.map((v) => v == null ? "" : String(v));
1172
- const times = field.values.map((v) => v == null ? null : _chunkCU4TMSZEjs.toMillis.call(void 0, v));
1182
+ const times = field.values.map((v) => v == null ? null : _chunkP4NMZ77Wjs.toMillis.call(void 0, v));
1173
1183
  let step = Infinity;
1174
1184
  times.forEach((t, i) => {
1175
1185
  const prev = times[i - 1];
@@ -1215,19 +1225,19 @@ function formatTooltipTime(t) {
1215
1225
  return new Date(t).toLocaleString(void 0, { month: "short", day: "numeric", hour: "2-digit", minute: "2-digit" });
1216
1226
  }
1217
1227
  function styledSeries(panel, frames, scheme) {
1218
- return styleSeries(panel, _chunkCU4TMSZEjs.toSeries.call(void 0, frames), frames, scheme);
1228
+ return styleSeries(panel, _chunkP4NMZ77Wjs.toSeries.call(void 0, frames), frames, scheme);
1219
1229
  }
1220
1230
  function styledXYSeries(panel, frames, scheme) {
1221
- const { series, x } = _chunkCU4TMSZEjs.toXYSeries.call(void 0, frames, _optionalChain([panel, 'access', _18 => _18.options, 'optionalAccess', _19 => _19.xField]) || void 0);
1222
- const xConfig = x ? _chunkCU4TMSZEjs.resolveFieldConfig.call(void 0, panel, x.field, x.frame, x.field.name) : {};
1231
+ const { series, x } = _chunkP4NMZ77Wjs.toXYSeries.call(void 0, frames, _optionalChain([panel, 'access', _18 => _18.options, 'optionalAccess', _19 => _19.xField]) || void 0);
1232
+ const xConfig = x ? _chunkP4NMZ77Wjs.resolveFieldConfig.call(void 0, panel, x.field, x.frame, x.field.name) : {};
1223
1233
  return { series: styleSeries(panel, series, frames, scheme), xConfig };
1224
1234
  }
1225
1235
  function styleSeries(panel, series, frames, scheme) {
1226
1236
  const frameOf = /* @__PURE__ */ new Map();
1227
1237
  frames.forEach((f) => f.fields.forEach((field) => frameOf.set(field, f)));
1228
1238
  return series.map((s, i) => {
1229
- const config = _chunkCU4TMSZEjs.resolveFieldConfig.call(void 0, panel, s.field, frameOf.get(s.field), s.name);
1230
- return { ...s, name: _nullishCoalesce(config.displayName, () => ( s.name)), config, color: _chunkCU4TMSZEjs.seriesColor.call(void 0, i, scheme, config) };
1239
+ const config = _chunkP4NMZ77Wjs.resolveFieldConfig.call(void 0, panel, s.field, frameOf.get(s.field), s.name);
1240
+ return { ...s, name: _nullishCoalesce(config.displayName, () => ( s.name)), config, color: _chunkP4NMZ77Wjs.seriesColor.call(void 0, i, scheme, config) };
1231
1241
  });
1232
1242
  }
1233
1243
  function reducedValues(panel, frames, scheme) {
@@ -1235,30 +1245,30 @@ function reducedValues(panel, frames, scheme) {
1235
1245
  const out = [];
1236
1246
  const multiple = frames.length > 1;
1237
1247
  frames.forEach(
1238
- (frame, fi) => _chunkCU4TMSZEjs.numberFields.call(void 0, frame).forEach((field) => {
1239
- const raw = _chunkCU4TMSZEjs.fieldDisplayName.call(void 0, field, frame, multiple);
1240
- const config = _chunkCU4TMSZEjs.resolveFieldConfig.call(void 0, panel, field, frame, raw);
1248
+ (frame, fi) => _chunkP4NMZ77Wjs.numberFields.call(void 0, frame).forEach((field) => {
1249
+ const raw = _chunkP4NMZ77Wjs.fieldDisplayName.call(void 0, field, frame, multiple);
1250
+ const config = _chunkP4NMZ77Wjs.resolveFieldConfig.call(void 0, panel, field, frame, raw);
1241
1251
  const values = field.values.map((v) => v == null ? null : Number(v));
1242
- const value = _chunkCU4TMSZEjs.reduce.call(void 0, values, calc);
1243
- const color = _chunkCU4TMSZEjs.seriesColor.call(void 0, out.length, scheme, config);
1244
- const step = _chunkCU4TMSZEjs.thresholdStep.call(void 0, value, config);
1245
- const mapped = _chunkCU4TMSZEjs.mappedResult.call(void 0, value, config);
1252
+ const value = _chunkP4NMZ77Wjs.reduce.call(void 0, values, calc);
1253
+ const color = _chunkP4NMZ77Wjs.seriesColor.call(void 0, out.length, scheme, config);
1254
+ const step = _chunkP4NMZ77Wjs.thresholdStep.call(void 0, value, config);
1255
+ const mapped = _chunkP4NMZ77Wjs.mappedResult.call(void 0, value, config);
1246
1256
  out.push({
1247
1257
  key: `${fi}/${field.name}/${JSON.stringify(_nullishCoalesce(field.labels, () => ( {})))}`,
1248
1258
  name: _nullishCoalesce(config.displayName, () => ( raw)),
1249
1259
  value,
1250
- text: _optionalChain([mapped, 'optionalAccess', _24 => _24.text]) || _chunkCU4TMSZEjs.formatValue.call(void 0, value, config),
1260
+ text: _optionalChain([mapped, 'optionalAccess', _24 => _24.text]) || _chunkP4NMZ77Wjs.formatValue.call(void 0, value, config),
1251
1261
  mapped,
1252
1262
  config,
1253
1263
  color,
1254
- stateColor: _optionalChain([mapped, 'optionalAccess', _25 => _25.color]) ? _chunkCU4TMSZEjs.resolveColor.call(void 0, mapped.color, color) : step ? _chunkCU4TMSZEjs.resolveColor.call(void 0, step.color, color) : color,
1264
+ stateColor: _optionalChain([mapped, 'optionalAccess', _25 => _25.color]) ? _chunkP4NMZ77Wjs.resolveColor.call(void 0, mapped.color, color) : step ? _chunkP4NMZ77Wjs.resolveColor.call(void 0, step.color, color) : color,
1255
1265
  sparkline: values,
1256
1266
  field,
1257
1267
  frame
1258
1268
  });
1259
1269
  })
1260
1270
  );
1261
- return _chunkCU4TMSZEjs.uniqueNames.call(void 0, out, (v) => v.field, frames);
1271
+ return _chunkP4NMZ77Wjs.uniqueNames.call(void 0, out, (v) => v.field, frames);
1262
1272
  }
1263
1273
  function yDomain(series, includeZero) {
1264
1274
  let min = Infinity;
@@ -1319,22 +1329,22 @@ function NoData({ message = "No data" }) {
1319
1329
  }
1320
1330
  function rowTooltipItems(panel, frame, row, multiple) {
1321
1331
  return frame.fields.flatMap((f) => {
1322
- const name = _chunkCU4TMSZEjs.fieldDisplayName.call(void 0, f, frame, multiple);
1323
- const config = _chunkCU4TMSZEjs.resolveFieldConfig.call(void 0, panel, f, frame, name);
1332
+ const name = _chunkP4NMZ77Wjs.fieldDisplayName.call(void 0, f, frame, multiple);
1333
+ const config = _chunkP4NMZ77Wjs.resolveFieldConfig.call(void 0, panel, f, frame, name);
1324
1334
  if (_optionalChain([config, 'access', _36 => _36.custom, 'optionalAccess', _37 => _37.hideFrom, 'optionalAccess', _38 => _38.tooltip])) return [];
1325
1335
  const v = f.values[row];
1326
- const value = v == null ? "\u2014" : f.type === "number" ? _chunkCU4TMSZEjs.formatDisplay.call(void 0, Number(v), config) : f.type === "time" ? formatTooltipTime(_chunkCU4TMSZEjs.toMillis.call(void 0, v)) : String(v);
1336
+ const value = v == null ? "\u2014" : f.type === "number" ? _chunkP4NMZ77Wjs.formatDisplay.call(void 0, Number(v), config) : f.type === "time" ? formatTooltipTime(_chunkP4NMZ77Wjs.toMillis.call(void 0, v)) : String(v);
1327
1337
  return [{ name: _nullishCoalesce(config.displayName, () => ( name)), value }];
1328
1338
  });
1329
1339
  }
1330
1340
  function rowLinks(panel, frame, row, multiple, resolve) {
1331
1341
  return mergeLinks(
1332
1342
  frame.fields.flatMap((f) => {
1333
- const name = _chunkCU4TMSZEjs.fieldDisplayName.call(void 0, f, frame, multiple);
1334
- const config = _chunkCU4TMSZEjs.resolveFieldConfig.call(void 0, panel, f, frame, name);
1343
+ const name = _chunkP4NMZ77Wjs.fieldDisplayName.call(void 0, f, frame, multiple);
1344
+ const config = _chunkP4NMZ77Wjs.resolveFieldConfig.call(void 0, panel, f, frame, name);
1335
1345
  if (!_optionalChain([config, 'access', _39 => _39.links, 'optionalAccess', _40 => _40.length])) return [];
1336
1346
  const v = f.values[row];
1337
- const text = v == null ? void 0 : f.type === "number" ? _chunkCU4TMSZEjs.formatDisplay.call(void 0, Number(v), config) : String(v);
1347
+ const text = v == null ? void 0 : f.type === "number" ? _chunkP4NMZ77Wjs.formatDisplay.call(void 0, Number(v), config) : String(v);
1338
1348
  return [{ name: _nullishCoalesce(config.displayName, () => ( name)), links: resolve(config.links, { frame, row, field: f, fieldName: _nullishCoalesce(config.displayName, () => ( name)), value: v, text }) }];
1339
1349
  })
1340
1350
  );
@@ -1347,7 +1357,7 @@ function valueLinks(panel, v, resolve) {
1347
1357
  fieldName: v.name,
1348
1358
  seriesName: v.name,
1349
1359
  value: v.value,
1350
- text: _chunkCU4TMSZEjs.formatValue.call(void 0, v.value, v.config),
1360
+ text: _chunkP4NMZ77Wjs.formatValue.call(void 0, v.value, v.config),
1351
1361
  calc: _nullishCoalesce(_optionalChain([panel, 'access', _44 => _44.options, 'optionalAccess', _45 => _45.reduceOptions, 'optionalAccess', _46 => _46.calcs, 'optionalAccess', _47 => _47[0]]), () => ( "lastNotNull"))
1352
1362
  });
1353
1363
  }
@@ -1422,6 +1432,15 @@ var styles5 = _reactnative.StyleSheet.create({
1422
1432
 
1423
1433
 
1424
1434
  var listening = null;
1435
+ function stopListening() {
1436
+ _optionalChain([listening, 'optionalAccess', _55 => _55.abort, 'call', _56 => _56()]);
1437
+ listening = null;
1438
+ }
1439
+ function claimListening(session, done = false) {
1440
+ if (done) {
1441
+ if (listening === session) listening = null;
1442
+ } else listening = session;
1443
+ }
1425
1444
  var HINT_MS = 4e3;
1426
1445
  function useDictation(panel, value, onChange, choices) {
1427
1446
  const form = useInputForm();
@@ -1435,7 +1454,7 @@ function useDictation(panel, value, onChange, choices) {
1435
1454
  });
1436
1455
  _react.useEffect.call(void 0,
1437
1456
  () => () => {
1438
- _optionalChain([session, 'access', _55 => _55.current, 'optionalAccess', _56 => _56.abort, 'call', _57 => _57()]);
1457
+ _optionalChain([session, 'access', _57 => _57.current, 'optionalAccess', _58 => _58.abort, 'call', _59 => _59()]);
1439
1458
  },
1440
1459
  []
1441
1460
  );
@@ -1450,23 +1469,23 @@ function useDictation(panel, value, onChange, choices) {
1450
1469
  session.current.stop();
1451
1470
  return;
1452
1471
  }
1453
- _optionalChain([listening, 'optionalAccess', _58 => _58.abort, 'call', _59 => _59()]);
1472
+ stopListening();
1454
1473
  setHint(null);
1455
1474
  let mine = null;
1456
1475
  let ended = false;
1457
1476
  const end = () => {
1458
1477
  ended = true;
1459
1478
  if (session.current === mine) session.current = null;
1460
- if (listening === mine) listening = null;
1479
+ claimListening(mine, true);
1461
1480
  setOn(false);
1462
1481
  };
1463
1482
  try {
1464
1483
  mine = speech.start({
1465
1484
  lang: form.speechLang,
1466
- hints: _chunkCU4TMSZEjs.dictationHints.call(void 0, panel, choices),
1485
+ hints: _chunkP4NMZ77Wjs.dictationHints.call(void 0, panel, choices),
1467
1486
  onText(text, final) {
1468
1487
  if (!final) return setHint(text ? `\u201C${text}\u201D` : null);
1469
- const result = _chunkCU4TMSZEjs.spokenValue.call(void 0, panel, text, latest.current.value, latest.current.choices);
1488
+ const result = _chunkP4NMZ77Wjs.spokenValue.call(void 0, panel, text, latest.current.value, latest.current.choices);
1470
1489
  if ("value" in result) {
1471
1490
  latest.current.onChange(result.value);
1472
1491
  setHint(null);
@@ -1481,13 +1500,13 @@ function useDictation(panel, value, onChange, choices) {
1481
1500
  }
1482
1501
  if (!ended) {
1483
1502
  session.current = mine;
1484
- listening = mine;
1503
+ claimListening(mine);
1485
1504
  setOn(true);
1486
1505
  }
1487
1506
  };
1488
- return { available: !!speech && _chunkCU4TMSZEjs.takesDictation.call(void 0, panel), listening: on, hint, toggle };
1507
+ return { available: !!speech && _chunkP4NMZ77Wjs.takesDictation.call(void 0, panel), listening: on, hint, toggle };
1489
1508
  }
1490
- function MicButton({ dictation, title, size = 32 }) {
1509
+ function MicButton({ dictation, title, label, size = 32 }) {
1491
1510
  const theme = useDashTheme();
1492
1511
  if (!dictation.available) return null;
1493
1512
  const on = dictation.listening;
@@ -1496,7 +1515,7 @@ function MicButton({ dictation, title, size = 32 }) {
1496
1515
  {
1497
1516
  onPress: dictation.toggle,
1498
1517
  accessibilityRole: "button",
1499
- accessibilityLabel: on ? "Stop dictating" : title ? `Dictate ${title}` : "Dictate",
1518
+ accessibilityLabel: on ? "Stop dictating" : _nullishCoalesce(label, () => ( (title ? `Dictate ${title}` : "Dictate"))),
1500
1519
  accessibilityState: { selected: on },
1501
1520
  hitSlop: 6,
1502
1521
  style: ({ pressed }) => [
@@ -1602,15 +1621,15 @@ function NumberInput({ panel, value, onChange }) {
1602
1621
  }
1603
1622
  function DurationInput({ panel, value, onChange }) {
1604
1623
  const theme = useDashTheme();
1605
- const toDigits = (v) => typeof v === "number" ? _chunkCU4TMSZEjs.formatClock.call(void 0, v).replace(/\D/g, "").replace(/^0+/, "") : "";
1624
+ const toDigits = (v) => typeof v === "number" ? _chunkP4NMZ77Wjs.formatClock.call(void 0, v).replace(/\D/g, "").replace(/^0+/, "") : "";
1606
1625
  const [digits, setDigits] = _react.useState.call(void 0, toDigits(value));
1607
1626
  const [syncedValue, setSyncedValue] = _react.useState.call(void 0, value);
1608
1627
  if (value !== syncedValue) {
1609
1628
  setSyncedValue(value);
1610
- setDigits((d) => value == null ? _chunkCU4TMSZEjs.parseClockDigits.call(void 0, d) == null ? d : "" : _chunkCU4TMSZEjs.parseClockDigits.call(void 0, d) === value ? d : toDigits(value));
1629
+ setDigits((d) => value == null ? _chunkP4NMZ77Wjs.parseClockDigits.call(void 0, d) == null ? d : "" : _chunkP4NMZ77Wjs.parseClockDigits.call(void 0, d) === value ? d : toDigits(value));
1611
1630
  }
1612
1631
  const masked = digits ? maskClock(digits) : "";
1613
- const invalid = !!digits && _chunkCU4TMSZEjs.parseClockDigits.call(void 0, digits) == null;
1632
+ const invalid = !!digits && _chunkP4NMZ77Wjs.parseClockDigits.call(void 0, digits) == null;
1614
1633
  const dictation = useDictation(panel, value, onChange);
1615
1634
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { style: styles7.dictated, children: [
1616
1635
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { style: [styles7.numberField, { borderColor: invalid ? theme.danger : theme.border }], children: [
@@ -1621,7 +1640,7 @@ function DurationInput({ panel, value, onChange }) {
1621
1640
  onChangeText: (t) => {
1622
1641
  const d = t.replace(/\D/g, "").replace(/^0+/, "").slice(0, 6);
1623
1642
  setDigits(d);
1624
- onChange(_chunkCU4TMSZEjs.parseClockDigits.call(void 0, d));
1643
+ onChange(_chunkP4NMZ77Wjs.parseClockDigits.call(void 0, d));
1625
1644
  },
1626
1645
  keyboardType: "number-pad",
1627
1646
  placeholder: _nullishCoalesce(panel.options.placeholder, () => ( "00:00.00")),
@@ -1826,10 +1845,10 @@ function SuggestTextInput({ panel, value, onChange }) {
1826
1845
  }, [store, metric, suggestWith]);
1827
1846
  const withText = suggestWith ? form.value(suggestWith) : null;
1828
1847
  const own = entries.filter((e) => e.metric === metric);
1829
- const scoped = suggestWith && typeof withText === "string" && withText.trim() ? _chunkCU4TMSZEjs.entriesSavedWith.call(void 0, entries, metric, suggestWith, withText) : [];
1848
+ const scoped = suggestWith && typeof withText === "string" && withText.trim() ? _chunkP4NMZ77Wjs.entriesSavedWith.call(void 0, entries, metric, suggestWith, withText) : [];
1830
1849
  const query = typed ? text : "";
1831
- const fromScoped = _chunkCU4TMSZEjs.textSuggestions.call(void 0, scoped, query);
1832
- const suggestions = (fromScoped.length ? fromScoped : _chunkCU4TMSZEjs.textSuggestions.call(void 0, own, query)).filter((s) => s.toLowerCase() !== text.trim().toLowerCase());
1850
+ const fromScoped = _chunkP4NMZ77Wjs.textSuggestions.call(void 0, scoped, query);
1851
+ const suggestions = (fromScoped.length ? fromScoped : _chunkP4NMZ77Wjs.textSuggestions.call(void 0, own, query)).filter((s) => s.toLowerCase() !== text.trim().toLowerCase());
1833
1852
  const dictation = useDictation(panel, value, (v) => {
1834
1853
  setTyped(false);
1835
1854
  onChange(v);
@@ -1876,7 +1895,7 @@ function CounterInput({ panel }) {
1876
1895
  const { metric, increment = 1, unit } = panel.options;
1877
1896
  const [today, setToday] = _react.useState.call(void 0, 0);
1878
1897
  _react.useEffect.call(void 0, () => {
1879
- const load = () => store.list({ metrics: [metric], from: _chunkCU4TMSZEjs.startOf.call(void 0, /* @__PURE__ */ new Date(), "d").getTime() }).then((rows) => setToday(rows.reduce((a, e) => a + (_nullishCoalesce(e.value, () => ( 0))), 0)));
1898
+ const load = () => store.list({ metrics: [metric], from: _chunkP4NMZ77Wjs.startOf.call(void 0, /* @__PURE__ */ new Date(), "d").getTime() }).then((rows) => setToday(rows.reduce((a, e) => a + (_nullishCoalesce(e.value, () => ( 0))), 0)));
1880
1899
  load();
1881
1900
  return store.subscribe(load);
1882
1901
  }, [store, metric]);
@@ -1958,7 +1977,7 @@ function titleText(v) {
1958
1977
  function summaryText(f, v) {
1959
1978
  if (v == null || v === "" || Array.isArray(v) && !v.length) return void 0;
1960
1979
  if (f.type === "input-toggle") return v ? f.title || "Yes" : void 0;
1961
- if (f.type === "input-duration" && typeof v === "number") return _chunkCU4TMSZEjs.formatClock.call(void 0, v);
1980
+ if (f.type === "input-duration" && typeof v === "number") return _chunkP4NMZ77Wjs.formatClock.call(void 0, v);
1962
1981
  if (f.type === "input-select" && f.options.choices) {
1963
1982
  const label = (x) => _nullishCoalesce(_optionalChain([f, 'access', _65 => _65.options, 'access', _66 => _66.choices, 'access', _67 => _67.find, 'call', _68 => _68((c) => c.value === x), 'optionalAccess', _69 => _69.label]), () => ( String(x)));
1964
1983
  return Array.isArray(v) ? v.map(label).join(", ") : label(v);
@@ -1989,7 +2008,7 @@ function InputGroupBody({ panel }) {
1989
2008
  }
1990
2009
  if (!group) return null;
1991
2010
  const label = panel.options.itemTitle || "Item";
1992
- const collapseFilled = (except) => setCollapsed(new Set(group.items.filter((i) => i.key !== except && !_chunkCU4TMSZEjs.isEmptyItem.call(void 0, panel, i.values)).map((i) => i.key)));
2011
+ const collapseFilled = (except) => setCollapsed(new Set(group.items.filter((i) => i.key !== except && !_chunkP4NMZ77Wjs.isEmptyItem.call(void 0, panel, i.values)).map((i) => i.key)));
1993
2012
  const toggle = (key) => setCollapsed((c) => {
1994
2013
  const next = new Set(c);
1995
2014
  if (!next.delete(key)) next.add(key);
@@ -2027,7 +2046,7 @@ function InputGroupBody({ panel }) {
2027
2046
  group.items.map((item, i) => {
2028
2047
  const named = panel.options.titleFrom ? titleText(item.values[panel.options.titleFrom]) : void 0;
2029
2048
  const title = _nullishCoalesce(named, () => ( `${label} ${i + 1}`));
2030
- const troubled = _chunkCU4TMSZEjs.groupFields.call(void 0, panel).some((f) => group.fieldProblem(i, f.options.metric));
2049
+ const troubled = _chunkP4NMZ77Wjs.groupFields.call(void 0, panel).some((f) => group.fieldProblem(i, f.options.metric));
2031
2050
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2032
2051
  ItemCard,
2033
2052
  {
@@ -2078,7 +2097,7 @@ function InputGroupBody({ panel }) {
2078
2097
  }
2079
2098
  function ItemCard({ panel, group, form, index, title, last, collapsed, onToggle, onDuplicate, dragOffset, lifted, onLayout, handle }) {
2080
2099
  const theme = useDashTheme();
2081
- const fields = _react.useMemo.call(void 0, () => _chunkCU4TMSZEjs.groupFields.call(void 0, panel), [panel]);
2100
+ const fields = _react.useMemo.call(void 0, () => _chunkP4NMZ77Wjs.groupFields.call(void 0, panel), [panel]);
2082
2101
  const item = group.items[index];
2083
2102
  const scoped = _react.useMemo.call(void 0,
2084
2103
  () => ({
@@ -2298,7 +2317,7 @@ function BarGaugePanel({ panel, frames }) {
2298
2317
  const min = _nullishCoalesce(v.config.min, () => ( 0));
2299
2318
  const max = _nullishCoalesce(v.config.max, () => ( Math.max(...values.map((o) => _nullishCoalesce(o.value, () => ( 0))), 1)));
2300
2319
  const frac = v.value == null ? 0 : Math.min(1, Math.max(0, (v.value - min) / (max - min || 1)));
2301
- const color = v.config.thresholds || _optionalChain([v, 'access', _88 => _88.mapped, 'optionalAccess', _89 => _89.color]) ? v.stateColor : _chunkCU4TMSZEjs.resolveColor.call(void 0, _optionalChain([v, 'access', _90 => _90.config, 'access', _91 => _91.color, 'optionalAccess', _92 => _92.fixedColor]), v.color);
2320
+ const color = v.config.thresholds || _optionalChain([v, 'access', _88 => _88.mapped, 'optionalAccess', _89 => _89.color]) ? v.stateColor : _chunkP4NMZ77Wjs.resolveColor.call(void 0, _optionalChain([v, 'access', _90 => _90.config, 'access', _91 => _91.color, 'optionalAccess', _92 => _92.fixedColor]), v.color);
2302
2321
  const hasLinks = !!_optionalChain([v, 'access', _93 => _93.config, 'access', _94 => _94.links, 'optionalAccess', _95 => _95.length]);
2303
2322
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
2304
2323
  _reactnative.Pressable,
@@ -2479,7 +2498,7 @@ function geomapLayers(panel, frames, scheme, retina = false, gazetteers = {}) {
2479
2498
  const color = _nullishCoalesce(style.color, () => ( {}));
2480
2499
  const size = _nullishCoalesce(style.size, () => ( {}));
2481
2500
  const text = style.text;
2482
- const fixedColor = _chunkCU4TMSZEjs.resolveColor.call(void 0, _nullishCoalesce(color.fixed, () => ( "dark-green")), "#37872D");
2501
+ const fixedColor = _chunkP4NMZ77Wjs.resolveColor.call(void 0, _nullishCoalesce(color.fixed, () => ( "dark-green")), "#37872D");
2483
2502
  const heat = layer.type === "heatmap";
2484
2503
  const weight = _nullishCoalesce(config.weight, () => ( {}));
2485
2504
  const legend = [];
@@ -2491,14 +2510,14 @@ function geomapLayers(panel, frames, scheme, retina = false, gazetteers = {}) {
2491
2510
  let { xs, ys } = located;
2492
2511
  if (layer.type === "lastPointTracker" && rows.length) [rows, xs, ys] = [rows.slice(-1), xs.slice(-1), ys.slice(-1)];
2493
2512
  const find = (field) => field ? fieldByName(frame, field, multiple) : void 0;
2494
- const configOf = (f) => _chunkCU4TMSZEjs.resolveFieldConfig.call(void 0, panel, f, frame, _chunkCU4TMSZEjs.fieldDisplayName.call(void 0, f, frame, multiple));
2513
+ const configOf = (f) => _chunkP4NMZ77Wjs.resolveFieldConfig.call(void 0, panel, f, frame, _chunkP4NMZ77Wjs.fieldDisplayName.call(void 0, f, frame, multiple));
2495
2514
  let colors = rows.map(() => fixedColor);
2496
2515
  const colorField = !heat ? find(color.field) : void 0;
2497
2516
  if (colorField) {
2498
2517
  const cConfig = configOf(colorField);
2499
2518
  const values = rows.map((i) => num(colorField.values[i]));
2500
2519
  const extent = range(values);
2501
- colors = values.map((v) => _chunkCU4TMSZEjs.valueColor.call(void 0, v, cConfig, fixedColor, extent));
2520
+ colors = values.map((v) => _chunkP4NMZ77Wjs.valueColor.call(void 0, v, cConfig, fixedColor, extent));
2502
2521
  if (showsLegend(layer) && legend.length === 0) legend.push(...thresholdLegend(`${key}/${frames.indexOf(frame)}`, cConfig, fixedColor));
2503
2522
  }
2504
2523
  const dim = heat ? weight : size;
@@ -2556,8 +2575,8 @@ function thresholdLegend(key, config, fallback) {
2556
2575
  if (steps.length < 2) return [];
2557
2576
  return steps.map((s, i) => ({
2558
2577
  key: `${key}/${i}`,
2559
- name: s.value == null ? `< ${_chunkCU4TMSZEjs.formatValue.call(void 0, steps[i + 1].value, config)}` : `${_chunkCU4TMSZEjs.formatValue.call(void 0, s.value, config)}+`,
2560
- color: _chunkCU4TMSZEjs.resolveColor.call(void 0, s.color, fallback)
2578
+ name: s.value == null ? `< ${_chunkP4NMZ77Wjs.formatValue.call(void 0, steps[i + 1].value, config)}` : `${_chunkP4NMZ77Wjs.formatValue.call(void 0, s.value, config)}+`,
2579
+ color: _chunkP4NMZ77Wjs.resolveColor.call(void 0, s.color, fallback)
2561
2580
  }));
2562
2581
  }
2563
2582
  var isDataLayer = (type) => type === "markers" || type === "heatmap" || type === "route" || type === "lastPointTracker";
@@ -2567,15 +2586,15 @@ function gazetteerPaths(panel, frames) {
2567
2586
  for (const layer of _nullishCoalesce(_optionalChain([panel, 'access', _113 => _113.options, 'optionalAccess', _114 => _114.layers]), () => ( DEFAULT_LAYERS))) {
2568
2587
  if (!isDataLayer(layer.type)) continue;
2569
2588
  const mode = _nullishCoalesce(_optionalChain([layer, 'access', _115 => _115.location, 'optionalAccess', _116 => _116.mode]), () => ( "auto"));
2570
- if (mode === "lookup") paths.add(_optionalChain([layer, 'access', _117 => _117.location, 'optionalAccess', _118 => _118.gazetteer]) || _chunkCU4TMSZEjs.DEFAULT_GAZETTEER);
2571
- else if (mode === "auto" && frames.some(lookupField)) paths.add(_chunkCU4TMSZEjs.DEFAULT_GAZETTEER);
2589
+ if (mode === "lookup") paths.add(_optionalChain([layer, 'access', _117 => _117.location, 'optionalAccess', _118 => _118.gazetteer]) || _chunkP4NMZ77Wjs.DEFAULT_GAZETTEER);
2590
+ else if (mode === "auto" && frames.some(lookupField)) paths.add(_chunkP4NMZ77Wjs.DEFAULT_GAZETTEER);
2572
2591
  }
2573
2592
  return [...paths];
2574
2593
  }
2575
2594
  var LAT_NAMES = ["lat", "latitude"];
2576
2595
  var LON_NAMES = ["lon", "lng", "long", "longitude"];
2577
2596
  function fieldByName(frame, name, multiple) {
2578
- return _nullishCoalesce(frame.fields.find((f) => f.name === name), () => ( frame.fields.find((f) => _chunkCU4TMSZEjs.fieldDisplayName.call(void 0, f, frame, multiple) === name)));
2597
+ return _nullishCoalesce(frame.fields.find((f) => f.name === name), () => ( frame.fields.find((f) => _chunkP4NMZ77Wjs.fieldDisplayName.call(void 0, f, frame, multiple) === name)));
2579
2598
  }
2580
2599
  function locate2(frame, location = {}, gazetteers = {}) {
2581
2600
  const mode = _nullishCoalesce(location.mode, () => ( "auto"));
@@ -2594,10 +2613,10 @@ function locate2(frame, location = {}, gazetteers = {}) {
2594
2613
  lat = named(LAT_NAMES);
2595
2614
  lon = named(LON_NAMES);
2596
2615
  if (!lat || !lon) hash = named(["geohash"]);
2597
- if ((!lat || !lon) && !hash) [lookup, gazetteer] = [lookupField(frame), gazetteers[_chunkCU4TMSZEjs.DEFAULT_GAZETTEER]];
2616
+ if ((!lat || !lon) && !hash) [lookup, gazetteer] = [lookupField(frame), gazetteers[_chunkP4NMZ77Wjs.DEFAULT_GAZETTEER]];
2598
2617
  } else if (mode === "lookup") {
2599
2618
  lookup = location.lookup ? fieldByName(frame, location.lookup, false) : lookupField(frame);
2600
- gazetteer = gazetteers[location.gazetteer || _chunkCU4TMSZEjs.DEFAULT_GAZETTEER];
2619
+ gazetteer = gazetteers[location.gazetteer || _chunkP4NMZ77Wjs.DEFAULT_GAZETTEER];
2601
2620
  }
2602
2621
  const rows = [];
2603
2622
  const xs = [];
@@ -2646,8 +2665,8 @@ function decodeGeohash(hash) {
2646
2665
  }
2647
2666
  function cellText(field, v, config) {
2648
2667
  if (v == null) return "";
2649
- if (field.type === "number") return _chunkCU4TMSZEjs.formatDisplay.call(void 0, Number(v), config);
2650
- if (field.type === "time") return new Date(_chunkCU4TMSZEjs.toMillis.call(void 0, v)).toLocaleString();
2668
+ if (field.type === "number") return _chunkP4NMZ77Wjs.formatDisplay.call(void 0, Number(v), config);
2669
+ if (field.type === "time") return new Date(_chunkP4NMZ77Wjs.toMillis.call(void 0, v)).toLocaleString();
2651
2670
  return String(v);
2652
2671
  }
2653
2672
  function num(v) {
@@ -2897,11 +2916,11 @@ function useGazetteers(panel, frames) {
2897
2916
  let live = true;
2898
2917
  let ds;
2899
2918
  try {
2900
- ds = _optionalChain([resolve, 'optionalCall', _128 => _128(_chunkCU4TMSZEjs.normalizeRef.call(void 0, panel.datasource))]);
2919
+ ds = _optionalChain([resolve, 'optionalCall', _128 => _128(_chunkP4NMZ77Wjs.normalizeRef.call(void 0, panel.datasource))]);
2901
2920
  } catch (e6) {
2902
2921
  }
2903
2922
  const paths = key.split("\n");
2904
- Promise.allSettled(paths.map((p) => _chunkCU4TMSZEjs.loadGazetteer.call(void 0, p, ds))).then((results) => {
2923
+ Promise.allSettled(paths.map((p) => _chunkP4NMZ77Wjs.loadGazetteer.call(void 0, p, ds))).then((results) => {
2905
2924
  if (!live) return;
2906
2925
  const gazetteers = {};
2907
2926
  const errors = [];
@@ -3044,8 +3063,8 @@ function cellType(config) {
3044
3063
  }
3045
3064
  function tableColumns(panel, frame, multipleFrames = false) {
3046
3065
  return frame.fields.flatMap((field, i) => {
3047
- const raw = _chunkCU4TMSZEjs.fieldDisplayName.call(void 0, field, frame, multipleFrames);
3048
- const config = _chunkCU4TMSZEjs.resolveFieldConfig.call(void 0, panel, field, frame, raw);
3066
+ const raw = _chunkP4NMZ77Wjs.fieldDisplayName.call(void 0, field, frame, multipleFrames);
3067
+ const config = _chunkP4NMZ77Wjs.resolveFieldConfig.call(void 0, panel, field, frame, raw);
3049
3068
  const custom = _nullishCoalesce(config.custom, () => ( {}));
3050
3069
  if (custom.hidden || _optionalChain([custom, 'access', _138 => _138.hideFrom, 'optionalAccess', _139 => _139.viz])) return [];
3051
3070
  const numeric = field.type === "number";
@@ -3088,16 +3107,16 @@ function tableFooter(columns) {
3088
3107
  counted = true;
3089
3108
  return [{ label: "Count", text: String(c.field.values.length) }];
3090
3109
  }
3091
- if (!_chunkCU4TMSZEjs.isReducer.call(void 0, r)) return [];
3092
- const label = _chunkCU4TMSZEjs.REDUCER_LABELS[r];
3110
+ if (!_chunkP4NMZ77Wjs.isReducer.call(void 0, r)) return [];
3111
+ const label = _chunkP4NMZ77Wjs.REDUCER_LABELS[r];
3093
3112
  if (r === "count") return [{ label, text: String(c.field.values.length) }];
3094
3113
  if (c.field.type !== "number") {
3095
3114
  if (r === "distinctCount") return [{ label, text: String(new Set(c.field.values.filter((v) => v != null)).size) }];
3096
3115
  return [];
3097
3116
  }
3098
- const value = _chunkCU4TMSZEjs.reduce.call(void 0, c.field.values.map((v) => v == null ? null : Number(v)), r);
3117
+ const value = _chunkP4NMZ77Wjs.reduce.call(void 0, c.field.values.map((v) => v == null ? null : Number(v)), r);
3099
3118
  const counts = r === "distinctCount" || r === "changeCount";
3100
- return [{ label, text: counts ? String(_nullishCoalesce(value, () => ( 0))) : _chunkCU4TMSZEjs.formatValue.call(void 0, value, c.config) }];
3119
+ return [{ label, text: counts ? String(_nullishCoalesce(value, () => ( 0))) : _chunkP4NMZ77Wjs.formatValue.call(void 0, value, c.config) }];
3101
3120
  });
3102
3121
  return lines.length === 1 && lines[0].label !== "Count" ? [{ text: lines[0].text }] : lines;
3103
3122
  });
@@ -3116,13 +3135,13 @@ function extentOf(values) {
3116
3135
  }
3117
3136
  function cellDisplay(col, raw, fallbackColor) {
3118
3137
  const { config, field } = col;
3119
- const mapped = _chunkCU4TMSZEjs.mappedResult.call(void 0, raw, config);
3138
+ const mapped = _chunkP4NMZ77Wjs.mappedResult.call(void 0, raw, config);
3120
3139
  const num4 = field.type === "number" && raw != null && Number.isFinite(Number(raw)) ? Number(raw) : null;
3121
- const text = _nullishCoalesce(_optionalChain([mapped, 'optionalAccess', _153 => _153.text]), () => ( (raw == null ? _nullishCoalesce(config.noValue, () => ( "")) : field.type === "number" ? _chunkCU4TMSZEjs.formatValue.call(void 0, num4, config) : field.type === "time" ? new Date(_chunkCU4TMSZEjs.toMillis.call(void 0, raw)).toLocaleString() : String(raw))));
3140
+ const text = _nullishCoalesce(_optionalChain([mapped, 'optionalAccess', _153 => _153.text]), () => ( (raw == null ? _nullishCoalesce(config.noValue, () => ( "")) : field.type === "number" ? _chunkP4NMZ77Wjs.formatValue.call(void 0, num4, config) : field.type === "time" ? new Date(_chunkP4NMZ77Wjs.toMillis.call(void 0, raw)).toLocaleString() : String(raw))));
3122
3141
  if (col.cellType === "auto") return { text };
3123
3142
  const mode = _optionalChain([config, 'access', _154 => _154.color, 'optionalAccess', _155 => _155.mode]);
3124
- const named = _nullishCoalesce(_optionalChain([mapped, 'optionalAccess', _156 => _156.color]), () => ( (mode === "fixed" ? _optionalChain([config, 'access', _157 => _157.color, 'optionalAccess', _158 => _158.fixedColor]) : (!mode || mode === "thresholds") && num4 != null ? _optionalChain([_chunkCU4TMSZEjs.thresholdStep.call(void 0, num4, config), 'optionalAccess', _159 => _159.color]) : void 0)));
3125
- const color = named === "text" ? void 0 : _optionalChain([mapped, 'optionalAccess', _160 => _160.color]) ? _chunkCU4TMSZEjs.resolveColor.call(void 0, mapped.color, fallbackColor) : num4 == null ? void 0 : _chunkCU4TMSZEjs.valueColor.call(void 0, num4, config, fallbackColor, col.extent);
3143
+ const named = _nullishCoalesce(_optionalChain([mapped, 'optionalAccess', _156 => _156.color]), () => ( (mode === "fixed" ? _optionalChain([config, 'access', _157 => _157.color, 'optionalAccess', _158 => _158.fixedColor]) : (!mode || mode === "thresholds") && num4 != null ? _optionalChain([_chunkP4NMZ77Wjs.thresholdStep.call(void 0, num4, config), 'optionalAccess', _159 => _159.color]) : void 0)));
3144
+ const color = named === "text" ? void 0 : _optionalChain([mapped, 'optionalAccess', _160 => _160.color]) ? _chunkP4NMZ77Wjs.resolveColor.call(void 0, mapped.color, fallbackColor) : num4 == null ? void 0 : _chunkP4NMZ77Wjs.valueColor.call(void 0, num4, config, fallbackColor, col.extent);
3126
3145
  if (col.cellType === "color-text") return { text, color };
3127
3146
  if (col.cellType === "color-background") return { text, background: color };
3128
3147
  const min = _nullishCoalesce(config.min, () => ( Math.min(0, _nullishCoalesce(_optionalChain([col, 'access', _161 => _161.extent, 'optionalAccess', _162 => _162[0]]), () => ( 0)))));
@@ -3153,7 +3172,7 @@ function sortedRows(columns, length, sort) {
3153
3172
  if (!col) return rows;
3154
3173
  const { field } = col;
3155
3174
  const dir = sort.desc ? -1 : 1;
3156
- const key = (v) => field.type === "time" ? _chunkCU4TMSZEjs.toMillis.call(void 0, v) : field.type === "number" || field.type === "boolean" ? Number(v) : v;
3175
+ const key = (v) => field.type === "time" ? _chunkP4NMZ77Wjs.toMillis.call(void 0, v) : field.type === "number" || field.type === "boolean" ? Number(v) : v;
3157
3176
  const empty = (v) => v == null || v === "" || typeof v === "number" && Number.isNaN(v);
3158
3177
  return rows.sort((a, b) => {
3159
3178
  const va = field.values[a];
@@ -3219,8 +3238,8 @@ function TablePanel({ panel, frames }) {
3219
3238
  const columns = _react.useMemo.call(void 0, () => frame ? tableColumns(panel, frame, frames.length > 1) : [], [panel, frame, frames.length]);
3220
3239
  const [tapped, setSort] = _react.useState.call(void 0, );
3221
3240
  const sort = tapped === void 0 ? initialSort(panel, columns) : tapped;
3222
- const order = _react.useMemo.call(void 0, () => sortedRows(columns, frame ? _chunkCU4TMSZEjs.frameLength.call(void 0, frame) : 0, sort), [columns, frame, sort]);
3223
- if (!frame || !_chunkCU4TMSZEjs.frameLength.call(void 0, frame)) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NoData, {});
3241
+ const order = _react.useMemo.call(void 0, () => sortedRows(columns, frame ? _chunkP4NMZ77Wjs.frameLength.call(void 0, frame) : 0, sort), [columns, frame, sort]);
3242
+ if (!frame || !_chunkP4NMZ77Wjs.frameLength.call(void 0, frame)) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NoData, {});
3224
3243
  const shown = order.slice(0, 500);
3225
3244
  const rowColumn = columns.find((c) => c.applyToRow);
3226
3245
  const footer = tableFooter(columns);
@@ -3320,7 +3339,7 @@ function BarChartPanel({ panel, frames, width }) {
3320
3339
  {
3321
3340
  style: [styles12.tick, { color: theme.textMuted, top: plot.height * (1 - barFraction(axis, t)) - 7 }, axis.side === "left" ? styles12.tickLeft : styles12.tickRight],
3322
3341
  numberOfLines: 1,
3323
- children: _chunkCU4TMSZEjs.formatValue.call(void 0, t, { ...axis.config, decimals: tickDecimals(axis.ticks) })
3342
+ children: _chunkP4NMZ77Wjs.formatValue.call(void 0, t, { ...axis.config, decimals: tickDecimals(axis.ticks) })
3324
3343
  },
3325
3344
  t
3326
3345
  )) });
@@ -3446,7 +3465,7 @@ function TimeSeriesPanel({ panel, frames }) {
3446
3465
  const y = linearScale(yMin, yMax, PAD.top + plotH, PAD.top);
3447
3466
  const span = xTo - xFrom;
3448
3467
  const xTicks = numericX ? numberTicks(xFrom, xTo, plotW) : timeTicks(xFrom, xTo, plotW);
3449
- const xLabel = (t) => numericX ? _chunkCU4TMSZEjs.formatValue.call(void 0, t, { ...xConfig, decimals: tickDecimals(xTicks) }) : formatTimeTick(t, span);
3468
+ const xLabel = (t) => numericX ? _chunkP4NMZ77Wjs.formatValue.call(void 0, t, { ...xConfig, decimals: tickDecimals(xTicks) }) : formatTimeTick(t, span);
3450
3469
  const unitConfig = series[0].config;
3451
3470
  const barSeries = series.filter((s) => style(s) === "bars");
3452
3471
  const pointsCount = Math.max(...series.map((s) => s.times.length));
@@ -3464,11 +3483,11 @@ function TimeSeriesPanel({ panel, frames }) {
3464
3483
  if (!pinch.current) pinch.current = { start: { from: xFrom, to: xTo }, dist, frac };
3465
3484
  const p = pinch.current;
3466
3485
  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) };
3467
- setPreview(_chunkCU4TMSZEjs.zoomRange.call(void 0, p.start, dist / p.dist, p.frac, frac, limits));
3486
+ setPreview(_chunkP4NMZ77Wjs.zoomRange.call(void 0, p.start, dist / p.dist, p.frac, frac, limits));
3468
3487
  };
3469
3488
  const onPinchEnd = (commit) => {
3470
3489
  if (commit && pinch.current && preview) {
3471
- if (!extent) setRawRange({ from: _chunkCU4TMSZEjs.formatLocalDateTime.call(void 0, preview.from), to: _chunkCU4TMSZEjs.formatLocalDateTime.call(void 0, preview.to) });
3490
+ if (!extent) setRawRange({ from: _chunkP4NMZ77Wjs.formatLocalDateTime.call(void 0, preview.from), to: _chunkP4NMZ77Wjs.formatLocalDateTime.call(void 0, preview.to) });
3472
3491
  else setXZoom(preview.to - preview.from >= extent[1] - extent[0] ? null : preview);
3473
3492
  }
3474
3493
  pinch.current = null;
@@ -3523,7 +3542,7 @@ function TimeSeriesPanel({ panel, frames }) {
3523
3542
  size.width > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnativesvg2.default, { width: size.width, height: size.height, children: [
3524
3543
  ticks.map((t) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnativesvg.G, { children: [
3525
3544
  /* @__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 }),
3526
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Text, { x: PAD.left - 6, y: y(t) + 3, fontSize: 10, fill: theme.textMuted, textAnchor: "end", children: _chunkCU4TMSZEjs.formatValue.call(void 0, t, { ...unitConfig, decimals: tickDecimals(ticks) }) })
3545
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Text, { x: PAD.left - 6, y: y(t) + 3, fontSize: 10, fill: theme.textMuted, textAnchor: "end", children: _chunkP4NMZ77Wjs.formatValue.call(void 0, t, { ...unitConfig, decimals: tickDecimals(ticks) }) })
3527
3546
  ] }, t)),
3528
3547
  xTicks.map((t) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3529
3548
  _reactnativesvg.Text,
@@ -3589,11 +3608,11 @@ function TimeSeriesPanel({ panel, frames }) {
3589
3608
  x(hover.time) > size.width / 2 ? { right: size.width - x(hover.time) + 8 } : { left: x(hover.time) + 8 }
3590
3609
  ],
3591
3610
  children: [
3592
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles13.tooltipTime, { color: theme.textMuted }], children: numericX ? _chunkCU4TMSZEjs.formatValue.call(void 0, hover.time, xConfig) : formatTooltipTime(hover.time) }),
3611
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles13.tooltipTime, { color: theme.textMuted }], children: numericX ? _chunkP4NMZ77Wjs.formatValue.call(void 0, hover.time, xConfig) : formatTooltipTime(hover.time) }),
3593
3612
  hover.rows.map((r) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { style: styles13.tooltipRow, children: [
3594
3613
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: [styles13.swatch, { backgroundColor: r.color }] }),
3595
3614
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles13.tooltipName, { color: theme.textSecondary }], numberOfLines: 1, children: r.name }),
3596
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles13.tooltipValue, { color: theme.text }], children: _chunkCU4TMSZEjs.formatValue.call(void 0, r.value, r.config) })
3615
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles13.tooltipValue, { color: theme.text }], children: _chunkP4NMZ77Wjs.formatValue.call(void 0, r.value, r.config) })
3597
3616
  ] }, r.key)),
3598
3617
  isPinned && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipLinks, { links: hoverLinks, onOpen: (l) => openLinks([l]) })
3599
3618
  ]
@@ -3678,7 +3697,7 @@ function linkData(r, frames, xField) {
3678
3697
  if (frame && xField === void 0) {
3679
3698
  row = r.index;
3680
3699
  } else if (frame) {
3681
- const xf = _nullishCoalesce(frame.fields.find((f) => f.name === xField), () => ( _chunkCU4TMSZEjs.numberFields.call(void 0, frame)[0]));
3700
+ const xf = _nullishCoalesce(frame.fields.find((f) => f.name === xField), () => ( _chunkP4NMZ77Wjs.numberFields.call(void 0, frame)[0]));
3682
3701
  const at = _optionalChain([xf, 'optionalAccess', _222 => _222.values, 'access', _223 => _223.findIndex, 'call', _224 => _224((v, k) => Number(v) === r.time && Number(r.series.field.values[k]) === r.value)]);
3683
3702
  row = at != null && at >= 0 ? at : void 0;
3684
3703
  }
@@ -3689,7 +3708,7 @@ function linkData(r, frames, xField) {
3689
3708
  fieldName: r.name,
3690
3709
  seriesName: r.name,
3691
3710
  value: r.value,
3692
- text: _chunkCU4TMSZEjs.formatValue.call(void 0, r.value, r.config),
3711
+ text: _chunkP4NMZ77Wjs.formatValue.call(void 0, r.value, r.config),
3693
3712
  time: xField === void 0 ? r.time : void 0
3694
3713
  };
3695
3714
  }
@@ -3750,8 +3769,8 @@ function xySeries(panel, frames, scheme) {
3750
3769
  const { manual, series: maps, exclude } = mappings(panel);
3751
3770
  const multiple = frames.length > 1;
3752
3771
  const out = [];
3753
- const config = (field, frame) => _chunkCU4TMSZEjs.resolveFieldConfig.call(void 0, panel, field, frame, _chunkCU4TMSZEjs.fieldDisplayName.call(void 0, field, frame, multiple));
3754
- const find = (pick, frame, fields = frame.fields) => pick ? fields.filter((f) => _chunkCU4TMSZEjs.fieldMatches.call(void 0, pick.matcher, f, frame, _chunkCU4TMSZEjs.fieldDisplayName.call(void 0, f, frame, multiple))) : [];
3772
+ const config = (field, frame) => _chunkP4NMZ77Wjs.resolveFieldConfig.call(void 0, panel, field, frame, _chunkP4NMZ77Wjs.fieldDisplayName.call(void 0, field, frame, multiple));
3773
+ const find = (pick, frame, fields = frame.fields) => pick ? fields.filter((f) => _chunkP4NMZ77Wjs.fieldMatches.call(void 0, pick.matcher, f, frame, _chunkP4NMZ77Wjs.fieldDisplayName.call(void 0, f, frame, multiple))) : [];
3755
3774
  for (const [mi, m] of (maps.length ? maps : [{}]).entries()) {
3756
3775
  const matcher = _optionalChain([m, 'access', _235 => _235.frame, 'optionalAccess', _236 => _236.matcher]);
3757
3776
  const chosen = _optionalChain([matcher, 'optionalAccess', _237 => _237.id]) === "byIndex" ? frames.filter((_, i) => i === matcher.options) : frames;
@@ -3767,16 +3786,16 @@ function xySeries(panel, frames, scheme) {
3767
3786
  const yConfig = config(yField, frame);
3768
3787
  if (_optionalChain([yConfig, 'access', _238 => _238.custom, 'optionalAccess', _239 => _239.hideFrom, 'optionalAccess', _240 => _240.viz]) && !manual) continue;
3769
3788
  const xConfig = config(xField, frame);
3770
- const color = _chunkCU4TMSZEjs.seriesColor.call(void 0, out.length, scheme, yConfig);
3771
- const base = _optionalChain([yConfig, 'access', _241 => _241.color, 'optionalAccess', _242 => _242.mode]) === "thresholds" ? _chunkCU4TMSZEjs.valueColor.call(void 0, null, yConfig, color) : color;
3789
+ const color = _chunkP4NMZ77Wjs.seriesColor.call(void 0, out.length, scheme, yConfig);
3790
+ const base = _optionalChain([yConfig, 'access', _241 => _241.color, 'optionalAccess', _242 => _242.mode]) === "thresholds" ? _chunkP4NMZ77Wjs.valueColor.call(void 0, null, yConfig, color) : color;
3772
3791
  const rows = [];
3773
3792
  const xs = [];
3774
3793
  const ys = [];
3775
3794
  yField.values.forEach((yv, i) => {
3776
3795
  const xv = xField.values[i];
3777
3796
  if (xv == null || yv == null) return;
3778
- const xn = xField.type === "time" ? _chunkCU4TMSZEjs.toMillis.call(void 0, xv) : Number(xv);
3779
- const yn = yField.type === "time" ? _chunkCU4TMSZEjs.toMillis.call(void 0, yv) : Number(yv);
3797
+ const xn = xField.type === "time" ? _chunkP4NMZ77Wjs.toMillis.call(void 0, xv) : Number(xv);
3798
+ const yn = yField.type === "time" ? _chunkP4NMZ77Wjs.toMillis.call(void 0, yv) : Number(yv);
3780
3799
  if (!Number.isFinite(xn) || !Number.isFinite(yn)) return;
3781
3800
  rows.push(i);
3782
3801
  xs.push(xn);
@@ -3789,7 +3808,7 @@ function xySeries(panel, frames, scheme) {
3789
3808
  const cConfig = config(colorField, frame);
3790
3809
  const values = rows.map((i) => num3(colorField.values[i]));
3791
3810
  const extent = range2(values);
3792
- colors = values.map((v) => _chunkCU4TMSZEjs.valueColor.call(void 0, v, cConfig, base, extent));
3811
+ colors = values.map((v) => _chunkP4NMZ77Wjs.valueColor.call(void 0, v, cConfig, base, extent));
3793
3812
  }
3794
3813
  let sizes = rows.map(() => fixedSize);
3795
3814
  if (sizeField) {
@@ -3799,7 +3818,7 @@ function xySeries(panel, frames, scheme) {
3799
3818
  sizes = values.map((v) => v == null ? min : min + (v - lo) / (hi - lo || 1) * (max - min));
3800
3819
  }
3801
3820
  const fixedName = _optionalChain([m, 'access', _254 => _254.name, 'optionalAccess', _255 => _255.fixed]);
3802
- const yName = _nullishCoalesce(yConfig.displayName, () => ( _chunkCU4TMSZEjs.fieldDisplayName.call(void 0, yField, frame, multiple)));
3821
+ const yName = _nullishCoalesce(yConfig.displayName, () => ( _chunkP4NMZ77Wjs.fieldDisplayName.call(void 0, yField, frame, multiple)));
3803
3822
  out.push({
3804
3823
  key: `${mi}/${frames.indexOf(frame)}/${yField.name}`,
3805
3824
  name: fixedName ? yFields.length > 1 ? `${fixedName} ${yName}` : fixedName : yName,
@@ -3922,7 +3941,7 @@ function XYChartPanel({ panel, frames }) {
3922
3941
  size.width > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnativesvg2.default, { width: size.width, height: size.height, children: [
3923
3942
  yTicks.map((t) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnativesvg.G, { children: [
3924
3943
  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 }),
3925
- /* @__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: _chunkCU4TMSZEjs.formatValue.call(void 0, t, { ...first.yConfig, decimals: _nullishCoalesce(first.yConfig.decimals, () => ( tickDecimals(yTicks))) }) })
3944
+ /* @__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: _chunkP4NMZ77Wjs.formatValue.call(void 0, t, { ...first.yConfig, decimals: _nullishCoalesce(first.yConfig.decimals, () => ( tickDecimals(yTicks))) }) })
3926
3945
  ] }, `y${t}`)),
3927
3946
  xTicks.map((t) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnativesvg.G, { children: [
3928
3947
  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 }),
@@ -3934,7 +3953,7 @@ function XYChartPanel({ panel, frames }) {
3934
3953
  fontSize: 10,
3935
3954
  fill: theme.textMuted,
3936
3955
  textAnchor: layout.x(t) - pad.left < 20 ? "start" : pad.left + plotW - layout.x(t) < 20 ? "end" : "middle",
3937
- children: _chunkCU4TMSZEjs.formatValue.call(void 0, t, { ...first.xConfig, decimals: _nullishCoalesce(first.xConfig.decimals, () => ( tickDecimals(xTicks))) })
3956
+ children: _chunkP4NMZ77Wjs.formatValue.call(void 0, t, { ...first.xConfig, decimals: _nullishCoalesce(first.xConfig.decimals, () => ( tickDecimals(xTicks))) })
3938
3957
  }
3939
3958
  )
3940
3959
  ] }, `x${t}`)),
@@ -4047,14 +4066,14 @@ function DashboardView({ mode = "auto", header, footer, refreshable }) {
4047
4066
  const width = (measured.width || window.width) - insets.left - insets.right;
4048
4067
  const layoutMode = mode === "auto" ? width >= TABLET_WIDTH ? "grid" : "phone" : mode;
4049
4068
  const sections = _react.useMemo.call(void 0,
4050
- () => _chunkCU4TMSZEjs.layoutDashboard.call(void 0, dashboard, layoutMode, { values: variables, info: variableInfo2 }),
4069
+ () => _chunkP4NMZ77Wjs.layoutDashboard.call(void 0, dashboard, layoutMode, { values: variables, info: variableInfo2 }),
4051
4070
  [dashboard, layoutMode, variables, variableInfo2]
4052
4071
  );
4053
4072
  const [toggled, setToggled] = _react.useState.call(void 0, {});
4054
4073
  const { seen, viewportH, onScroll, onViewportLayout, onSectionLayout } = useSeenSections(window.height);
4055
4074
  const maxPanelH = Math.max(MIN_PANEL_H, viewportH - SIDE * 2);
4056
4075
  const contentW = width - SIDE * 2;
4057
- const canRefresh = _nullishCoalesce(refreshable, () => ( dashboard.panels.some((p) => _chunkCU4TMSZEjs.panelHasQueries.call(void 0, p) || _optionalChain([p, 'access', _278 => _278.panels, 'optionalAccess', _279 => _279.some, 'call', _280 => _280(_chunkCU4TMSZEjs.panelHasQueries)]))));
4076
+ const canRefresh = _nullishCoalesce(refreshable, () => ( dashboard.panels.some((p) => _chunkP4NMZ77Wjs.panelHasQueries.call(void 0, p) || _optionalChain([p, 'access', _278 => _278.panels, 'optionalAccess', _279 => _279.some, 'call', _280 => _280(_chunkP4NMZ77Wjs.panelHasQueries)]))));
4058
4077
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { style: [styles15.fill, { backgroundColor: theme.background }], onLayout, children: [
4059
4078
  width > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
4060
4079
  _reactnative.ScrollView,
@@ -4080,14 +4099,14 @@ function DashboardView({ mode = "auto", header, footer, refreshable }) {
4080
4099
  accessibilityState: { expanded: !collapsed },
4081
4100
  children: [
4082
4101
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles15.chevron, { color: theme.textMuted }], children: collapsed ? "\u25B8" : "\u25BE" }),
4083
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles15.rowTitle, { color: theme.text }], numberOfLines: 2, children: _chunkCU4TMSZEjs.interpolate.call(void 0, _nullishCoalesce(section.row.title, () => ( "")), { values: variables, info: variableInfo2, scoped: section.row.scopedVars, timezone: dashboard.timezone }) })
4102
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles15.rowTitle, { color: theme.text }], numberOfLines: 2, children: _chunkP4NMZ77Wjs.interpolate.call(void 0, _nullishCoalesce(section.row.title, () => ( "")), { values: variables, info: variableInfo2, scoped: section.row.scopedVars, timezone: dashboard.timezone }) })
4084
4103
  ]
4085
4104
  }
4086
4105
  ),
4087
4106
  !collapsed && layoutMode === "grid" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, GridSection, { grid: section.grid, width: contentW, maxPanelH, deferred: !seen.has(section.key) }),
4088
4107
  !collapsed && layoutMode === "phone" && section.rows.map((row, ri) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: styles15.row, children: row.cells.map((cell) => {
4089
- const w = (contentW + GAP2) * (cell.span / _chunkCU4TMSZEjs.GRID_COLUMNS) - GAP2;
4090
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PanelCard, { panel: cell.panel, width: w, height: Math.min(_chunkCU4TMSZEjs.gridUnitsToPx.call(void 0, row.h), maxPanelH), deferred: !seen.has(section.key) }, cell.key);
4108
+ const w = (contentW + GAP2) * (cell.span / _chunkP4NMZ77Wjs.GRID_COLUMNS) - GAP2;
4109
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PanelCard, { panel: cell.panel, width: w, height: Math.min(_chunkP4NMZ77Wjs.gridUnitsToPx.call(void 0, row.h), maxPanelH), deferred: !seen.has(section.key) }, cell.key);
4091
4110
  }) }, ri))
4092
4111
  ] }, section.key);
4093
4112
  })
@@ -4098,10 +4117,10 @@ function DashboardView({ mode = "auto", header, footer, refreshable }) {
4098
4117
  ] });
4099
4118
  }
4100
4119
  function GridSection({ grid, width, maxPanelH, deferred }) {
4101
- const colW = (width + GAP2) / _chunkCU4TMSZEjs.GRID_COLUMNS;
4102
- const tallest = Math.max(0, ...grid.cells.map((c) => _chunkCU4TMSZEjs.gridUnitsToPx.call(void 0, c.h)));
4120
+ const colW = (width + GAP2) / _chunkP4NMZ77Wjs.GRID_COLUMNS;
4121
+ const tallest = Math.max(0, ...grid.cells.map((c) => _chunkP4NMZ77Wjs.gridUnitsToPx.call(void 0, c.h)));
4103
4122
  const scale = tallest > maxPanelH ? maxPanelH / tallest : 1;
4104
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: { height: _chunkCU4TMSZEjs.gridUnitsToPx.call(void 0, grid.h) * scale }, children: grid.cells.map((cell) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: [styles15.gridCell, { left: cell.x * colW, top: _chunkCU4TMSZEjs.gridOffsetPx.call(void 0, cell.y) * scale }], children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PanelCard, { panel: cell.panel, width: cell.w * colW - GAP2, height: _chunkCU4TMSZEjs.gridUnitsToPx.call(void 0, cell.h) * scale, deferred }) }, cell.key)) });
4123
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: { height: _chunkP4NMZ77Wjs.gridUnitsToPx.call(void 0, grid.h) * scale }, children: grid.cells.map((cell) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: [styles15.gridCell, { left: cell.x * colW, top: _chunkP4NMZ77Wjs.gridOffsetPx.call(void 0, cell.y) * scale }], children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PanelCard, { panel: cell.panel, width: cell.w * colW - GAP2, height: _chunkP4NMZ77Wjs.gridUnitsToPx.call(void 0, cell.h) * scale, deferred }) }, cell.key)) });
4105
4124
  }
4106
4125
  function useSeenSections(viewportHeight) {
4107
4126
  const [seen, setSeen] = _react.useState.call(void 0, /* @__PURE__ */ new Set());
@@ -4160,16 +4179,18 @@ function PanelCardContent({ panel, width, height, deferred }) {
4160
4179
  const theme = useDashTheme();
4161
4180
  const { dashboard, variables, variableInfo: variableInfo2 } = useDashboard();
4162
4181
  const { resolve, openLinks } = usePanelLinks(panel);
4163
- const group = _chunkCU4TMSZEjs.isInputGroup.call(void 0, panel);
4164
- const input = _chunkCU4TMSZEjs.isInputPanel.call(void 0, panel) || group;
4182
+ const group = _chunkP4NMZ77Wjs.isInputGroup.call(void 0, panel);
4183
+ const input = _chunkP4NMZ77Wjs.isInputPanel.call(void 0, panel) || group;
4165
4184
  const form = _react.useContext.call(void 0, InputFormContext);
4166
- const problem = group ? _optionalChain([form, 'optionalAccess', _281 => _281.group, 'optionalCall', _282 => _282(panel), 'optionalAccess', _283 => _283.problem]) : _chunkCU4TMSZEjs.isInputPanel.call(void 0, panel) ? _optionalChain([form, 'optionalAccess', _284 => _284.problem, 'optionalCall', _285 => _285(panel.options.metric)]) : void 0;
4185
+ const problem = group ? _optionalChain([form, 'optionalAccess', _281 => _281.group, 'optionalCall', _282 => _282(panel), 'optionalAccess', _283 => _283.problem]) : _chunkP4NMZ77Wjs.isInputPanel.call(void 0, panel) ? _optionalChain([form, 'optionalAccess', _284 => _284.problem, 'optionalCall', _285 => _285(panel.options.metric)]) : void 0;
4167
4186
  const hasLinks = !!_optionalChain([panel, 'access', _286 => _286.links, 'optionalAccess', _287 => _287.length]);
4168
- const hasTitle = !!panel.title || hasLinks || !!problem;
4169
- const title = panel.title ? _chunkCU4TMSZEjs.interpolate.call(void 0, panel.title, { values: variables, info: variableInfo2, scoped: panel.scopedVars, timezone: dashboard.timezone }) : "";
4170
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { style: [styles15.card, { width, height, backgroundColor: theme.surface, borderColor: theme.border }], children: [
4187
+ const filled = !group && _chunkP4NMZ77Wjs.isInputPanel.call(void 0, panel) && !!_optionalChain([form, 'optionalAccess', _288 => _288.filled, 'optionalCall', _289 => _289(panel.options.metric)]);
4188
+ const hasTitle = !!panel.title || hasLinks || !!problem || filled;
4189
+ const title = panel.title ? _chunkP4NMZ77Wjs.interpolate.call(void 0, panel.title, { values: variables, info: variableInfo2, scoped: panel.scopedVars, timezone: dashboard.timezone }) : "";
4190
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { style: [styles15.card, { width, height, backgroundColor: theme.surface, borderColor: filled ? theme.accent : theme.border }, filled && { borderWidth: 2 }], children: [
4171
4191
  hasTitle && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { style: styles15.titleRow, children: [
4172
4192
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles15.title, { color: theme.text }], numberOfLines: 1, children: title }),
4193
+ filled && !problem && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles15.problem, { color: theme.accent }], numberOfLines: 1, children: "From voice" }),
4173
4194
  !!problem && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles15.problem, { color: theme.danger }], numberOfLines: 1, accessibilityRole: "alert", children: problem }),
4174
4195
  hasLinks && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4175
4196
  _reactnative.Pressable,
@@ -4188,7 +4209,7 @@ function PanelCardContent({ panel, width, height, deferred }) {
4188
4209
  }
4189
4210
  function DataPanelBody({ panel, width, height }) {
4190
4211
  const theme = useDashTheme();
4191
- const needsData = _chunkCU4TMSZEjs.panelHasQueries.call(void 0, panel);
4212
+ const needsData = _chunkP4NMZ77Wjs.panelHasQueries.call(void 0, panel);
4192
4213
  const data = usePanelData(panel, width, needsData);
4193
4214
  const Component2 = panelComponent(panel.type);
4194
4215
  if (needsData && data.error) {
@@ -4242,7 +4263,7 @@ function webSpeechRecognizer() {
4242
4263
  const r = new Recognition();
4243
4264
  if (o.lang) r.lang = o.lang;
4244
4265
  r.interimResults = true;
4245
- r.continuous = false;
4266
+ r.continuous = !!o.continuous;
4246
4267
  r.maxAlternatives = 1;
4247
4268
  let delivered = false;
4248
4269
  let aborted = false;
@@ -4255,6 +4276,7 @@ function webSpeechRecognizer() {
4255
4276
  if (!e.results[i].isFinal) final = false;
4256
4277
  }
4257
4278
  lastText = text.trim();
4279
+ if (o.continuous) final = false;
4258
4280
  if (final) delivered = true;
4259
4281
  o.onText(lastText, final);
4260
4282
  };
@@ -4285,6 +4307,83 @@ function webSpeechRecognizer() {
4285
4307
  };
4286
4308
  }
4287
4309
 
4310
+ // src/ui/inputs/VoiceFill.tsx
4311
+
4312
+ function useVoiceFill({ speech, lang, filler, form, onFilled, onError }) {
4313
+ const [on, setOn] = _react.useState.call(void 0, false);
4314
+ const [filling, setFilling] = _react.useState.call(void 0, false);
4315
+ const [heard, setHeard] = _react.useState.call(void 0, null);
4316
+ const session = _react.useRef.call(void 0, null);
4317
+ const alive = _react.useRef.call(void 0, true);
4318
+ const latest = _react.useRef.call(void 0, { form, filler, onFilled, onError });
4319
+ _react.useEffect.call(void 0, () => {
4320
+ latest.current = { form, filler, onFilled, onError };
4321
+ });
4322
+ _react.useEffect.call(void 0, () => {
4323
+ alive.current = true;
4324
+ return () => {
4325
+ alive.current = false;
4326
+ _optionalChain([session, 'access', _290 => _290.current, 'optionalAccess', _291 => _291.abort, 'call', _292 => _292()]);
4327
+ };
4328
+ }, []);
4329
+ const fill = async (said) => {
4330
+ const { form: f, filler: run } = latest.current;
4331
+ if (!run) return;
4332
+ setFilling(true);
4333
+ let result;
4334
+ try {
4335
+ result = await run(f, said);
4336
+ } catch (e8) {
4337
+ result = { values: {}, problems: [{ key: "", problem: "Couldn\u2019t fill the form" }] };
4338
+ }
4339
+ if (!alive.current) return;
4340
+ setFilling(false);
4341
+ latest.current.onFilled(result, said);
4342
+ };
4343
+ const toggle = () => {
4344
+ if (!speech || !filler) return;
4345
+ if (session.current) {
4346
+ session.current.stop();
4347
+ return;
4348
+ }
4349
+ stopListening();
4350
+ setHeard(null);
4351
+ let mine = null;
4352
+ let ended = false;
4353
+ const end = () => {
4354
+ ended = true;
4355
+ if (session.current === mine) session.current = null;
4356
+ claimListening(mine, true);
4357
+ if (alive.current) {
4358
+ setOn(false);
4359
+ setHeard(null);
4360
+ }
4361
+ };
4362
+ try {
4363
+ mine = speech.start({
4364
+ lang,
4365
+ hints: _chunkP4NMZ77Wjs.fillHints.call(void 0, form),
4366
+ continuous: true,
4367
+ onText(text, final) {
4368
+ if (!final) return setHeard(text || null);
4369
+ if (text.trim()) fill(text.trim());
4370
+ },
4371
+ onError: (message) => alive.current && latest.current.onError(message),
4372
+ onEnd: end
4373
+ });
4374
+ } catch (e9) {
4375
+ onError("Dictation couldn\u2019t start");
4376
+ return;
4377
+ }
4378
+ if (!ended) {
4379
+ session.current = mine;
4380
+ claimListening(mine);
4381
+ setOn(true);
4382
+ }
4383
+ };
4384
+ return { available: !!speech && !!filler && form.fields.length > 0, listening: on, filling, heard, toggle };
4385
+ }
4386
+
4288
4387
  // src/ui/inputs/InputForm.tsx
4289
4388
 
4290
4389
  var NO_CHOICES = {};
@@ -4295,36 +4394,36 @@ function savedValues(panels, entries) {
4295
4394
  const values = {};
4296
4395
  for (const p of panels) {
4297
4396
  const mine = entries.filter((e) => e.metric === p.options.metric);
4298
- values[p.options.metric] = p.options.multi ? mine.length ? mine.map((e) => _nullishCoalesce(e.text, () => ( e.value))) : null : _chunkCU4TMSZEjs.entryToInputValue.call(void 0, p, mine[0]);
4397
+ values[p.options.metric] = p.options.multi ? mine.length ? mine.map((e) => _nullishCoalesce(e.text, () => ( e.value))) : null : _chunkP4NMZ77Wjs.entryToInputValue.call(void 0, p, mine[0]);
4299
4398
  }
4300
4399
  return values;
4301
4400
  }
4302
4401
  async function lastItems(store, group) {
4303
- const metrics = _chunkCU4TMSZEjs.groupFields.call(void 0, group).map((f) => f.options.metric);
4402
+ const metrics = _chunkP4NMZ77Wjs.groupFields.call(void 0, group).map((f) => f.options.metric);
4304
4403
  const latest = (await Promise.all(metrics.map((m) => store.latest(m)))).filter((e) => !!e).sort((a, b) => b.ts - a.ts)[0];
4305
4404
  if (!latest) return [];
4306
- return _chunkCU4TMSZEjs.entriesToItems.call(void 0, group, _chunkCU4TMSZEjs.sameSave.call(void 0, latest, await store.list({ metrics, from: latest.ts, to: latest.ts })));
4405
+ return _chunkP4NMZ77Wjs.entriesToItems.call(void 0, group, _chunkP4NMZ77Wjs.sameSave.call(void 0, latest, await store.list({ metrics, from: latest.ts, to: latest.ts })));
4307
4406
  }
4308
4407
  function freshItem(group, position, last) {
4309
4408
  const item = {};
4310
- for (const f of _chunkCU4TMSZEjs.groupFields.call(void 0, group)) {
4409
+ for (const f of _chunkP4NMZ77Wjs.groupFields.call(void 0, group)) {
4311
4410
  const d = f.options.default;
4312
- const v = d === "last" ? _optionalChain([last, 'optionalAccess', _288 => _288[position], 'optionalAccess', _289 => _289[f.options.metric]]) : d;
4411
+ const v = d === "last" ? _optionalChain([last, 'optionalAccess', _293 => _293[position], 'optionalAccess', _294 => _294[f.options.metric]]) : d;
4313
4412
  if (v !== void 0 && v !== null) item[f.options.metric] = v;
4314
4413
  }
4315
4414
  return item;
4316
4415
  }
4317
4416
  function baseItems(group, editing, last) {
4318
4417
  const start = group.options.start;
4319
- const values = editing ? _chunkCU4TMSZEjs.entriesToItems.call(void 0, group, editing) : start === "last" && _optionalChain([last, 'optionalAccess', _290 => _290.length]) ? last : Array.from({ length: typeof start === "number" ? Math.max(0, start) : 1 }, (_, i) => freshItem(group, i, last));
4418
+ const values = editing ? _chunkP4NMZ77Wjs.entriesToItems.call(void 0, group, editing) : start === "last" && _optionalChain([last, 'optionalAccess', _295 => _295.length]) ? last : Array.from({ length: typeof start === "number" ? Math.max(0, start) : 1 }, (_, i) => freshItem(group, i, last));
4320
4419
  return values.map((v, i) => ({ key: `b${i}`, values: v, edited: [] }));
4321
4420
  }
4322
4421
  var nextItemKey = 1;
4323
- function InputForm({ dashboard, store, onSaved, choices = NO_CHOICES, header, timestamp, defaults: given = NO_DEFAULTS, beforeSave, editing, speech: givenSpeech, speechLang }) {
4422
+ function InputForm({ dashboard, store, onSaved, choices = NO_CHOICES, header, timestamp, defaults: given = NO_DEFAULTS, beforeSave, editing, speech: givenSpeech, speechLang, filler = _chunkP4NMZ77Wjs.ruleFiller }) {
4324
4423
  const speech = givenSpeech === void 0 ? defaultSpeech() : givenSpeech;
4325
4424
  const theme = useDashTheme();
4326
- const panels = _react.useMemo.call(void 0, () => _chunkCU4TMSZEjs.plainInputPanels.call(void 0, dashboard), [dashboard]);
4327
- const groups = _react.useMemo.call(void 0, () => _chunkCU4TMSZEjs.inputGroups.call(void 0, dashboard), [dashboard]);
4425
+ const panels = _react.useMemo.call(void 0, () => _chunkP4NMZ77Wjs.plainInputPanels.call(void 0, dashboard), [dashboard]);
4426
+ const groups = _react.useMemo.call(void 0, () => _chunkP4NMZ77Wjs.inputGroups.call(void 0, dashboard), [dashboard]);
4328
4427
  const saved = _react.useMemo.call(void 0, () => editing ? savedValues(panels, editing) : NO_DEFAULTS, [panels, editing]);
4329
4428
  const [defaults, setDefaults] = _react.useState.call(void 0, {});
4330
4429
  const [edits, setEdits] = _react.useState.call(void 0, {});
@@ -4333,6 +4432,9 @@ function InputForm({ dashboard, store, onSaved, choices = NO_CHOICES, header, ti
4333
4432
  const [offsetMs, setOffsetMs] = _react.useState.call(void 0, 0);
4334
4433
  const [status, setStatus] = _react.useState.call(void 0, null);
4335
4434
  const [checked, setChecked] = _react.useState.call(void 0, false);
4435
+ const [filled, setFilled] = _react.useState.call(void 0, {});
4436
+ const [beforeFill, setBeforeFill] = _react.useState.call(void 0, null);
4437
+ const fillable = _react.useMemo.call(void 0, () => _chunkP4NMZ77Wjs.fillForm.call(void 0, dashboard, choices), [dashboard, choices]);
4336
4438
  _react.useEffect.call(void 0, () => {
4337
4439
  let run = 0;
4338
4440
  const load = async () => {
@@ -4340,12 +4442,12 @@ function InputForm({ dashboard, store, onSaved, choices = NO_CHOICES, header, ti
4340
4442
  const next = {};
4341
4443
  for (const p of panels) {
4342
4444
  const d = p.options.default;
4343
- if (d === "last") next[p.options.metric] = _chunkCU4TMSZEjs.entryToInputValue.call(void 0, p, await store.latest(p.options.metric));
4445
+ if (d === "last") next[p.options.metric] = _chunkP4NMZ77Wjs.entryToInputValue.call(void 0, p, await store.latest(p.options.metric));
4344
4446
  else if (d !== void 0) next[p.options.metric] = d;
4345
4447
  }
4346
4448
  const lastNext = {};
4347
4449
  for (const g of groups) {
4348
- const wanted = g.options.start === "last" || _chunkCU4TMSZEjs.groupFields.call(void 0, g).some((f) => f.options.default === "last");
4450
+ const wanted = g.options.start === "last" || _chunkP4NMZ77Wjs.groupFields.call(void 0, g).some((f) => f.options.default === "last");
4349
4451
  if (wanted) lastNext[groupKey(g)] = await lastItems(store, g);
4350
4452
  }
4351
4453
  if (mine === run) {
@@ -4369,43 +4471,73 @@ function InputForm({ dashboard, store, onSaved, choices = NO_CHOICES, header, ti
4369
4471
  setValue: (m, v) => {
4370
4472
  setStatus(null);
4371
4473
  setEdits((e) => ({ ...e, [m]: v }));
4474
+ setFilled((f) => {
4475
+ if (!(m in f)) return f;
4476
+ const { [m]: _, ...rest } = f;
4477
+ return rest;
4478
+ });
4479
+ setBeforeFill(null);
4372
4480
  },
4373
4481
  isDirty: (m) => m in edits,
4482
+ filled: (m) => m in filled,
4374
4483
  store,
4375
4484
  choices,
4376
4485
  speech,
4377
4486
  speechLang,
4378
4487
  problem: (m) => {
4379
4488
  const p = panels.find((x) => x.options.metric === m);
4380
- return p && (checked || m in edits) ? _chunkCU4TMSZEjs.inputProblem.call(void 0, p, value(m)) : void 0;
4489
+ return p && (checked || m in edits) ? _chunkP4NMZ77Wjs.inputProblem.call(void 0, p, value(m)) : void 0;
4381
4490
  },
4382
4491
  group: (g) => groupState(g, itemsOf(g), last[groupKey(g)], groupKey(g) in groupEdits, checked, (update) => {
4383
4492
  setStatus(null);
4384
4493
  setGroupEdits((all) => ({ ...all, [groupKey(g)]: update(_nullishCoalesce(_nullishCoalesce(all[groupKey(g)], () => ( base[groupKey(g)])), () => ( []))) }));
4385
4494
  })
4386
4495
  };
4387
- }, [edits, saved, defaults, given, store, choices, speech, speechLang, panels, checked, itemsOf, last, groupEdits, base]);
4496
+ }, [edits, saved, defaults, given, store, choices, speech, speechLang, panels, checked, itemsOf, last, groupEdits, base, filled]);
4497
+ const clearFill = () => {
4498
+ setFilled({});
4499
+ setBeforeFill(null);
4500
+ };
4501
+ const onFilled = _react.useCallback.call(void 0,
4502
+ (result, said) => {
4503
+ const keys = Object.keys(result.values);
4504
+ const label = (key) => _nullishCoalesce(_optionalChain([fillable, 'access', _296 => _296.fields, 'access', _297 => _297.find, 'call', _298 => _298((f) => f.key === key), 'optionalAccess', _299 => _299.label]), () => ( key));
4505
+ const problem = result.problems[0];
4506
+ const problemText = problem ? problem.key ? `${label(problem.key)}: ${problem.problem.charAt(0).toLowerCase()}${problem.problem.slice(1)}` : problem.problem : "";
4507
+ if (!keys.length) {
4508
+ setStatus(problem ? `Couldn\u2019t fill. ${problemText}` : `Didn\u2019t catch any fields in \u201C${said}\u201D`);
4509
+ return;
4510
+ }
4511
+ setBeforeFill(edits);
4512
+ setEdits({ ...edits, ...result.values });
4513
+ setFilled(Object.fromEntries(keys.map((k) => [k, true])));
4514
+ const more = result.problems.length > 1 ? ` (+${result.problems.length - 1} more)` : "";
4515
+ setStatus(`Filled ${keys.length} ${keys.length === 1 ? "field" : "fields"}. Check, then Save${problem ? `. ${problemText}${more}` : ""}`);
4516
+ },
4517
+ [fillable, edits]
4518
+ );
4519
+ const voice = useVoiceFill({ speech, lang: speechLang, filler, form: fillable, onFilled, onError: setStatus });
4388
4520
  const dirty = Object.keys(edits).length + groups.reduce((n, g) => n + groupChanges(_nullishCoalesce(base[groupKey(g)], () => ( [])), groupEdits[groupKey(g)]), 0);
4389
4521
  const recordedGroups = _react.useCallback.call(void 0,
4390
- () => groups.filter((g) => editing || groupKey(g) in groupEdits || _chunkCU4TMSZEjs.groupFields.call(void 0, g).some((f) => f.options.record === "always")),
4522
+ () => groups.filter((g) => editing || groupKey(g) in groupEdits || _chunkP4NMZ77Wjs.groupFields.call(void 0, g).some((f) => f.options.record === "always")),
4391
4523
  [groups, editing, groupEdits]
4392
4524
  );
4393
4525
  const save = _react.useCallback.call(void 0, async () => {
4394
4526
  const problems = panels.flatMap((p) => {
4395
- const problem = _chunkCU4TMSZEjs.inputProblem.call(void 0, p, state.value(p.options.metric));
4527
+ const problem = _chunkP4NMZ77Wjs.inputProblem.call(void 0, p, state.value(p.options.metric));
4396
4528
  return problem ? [`${p.title || p.options.metric}: ${problem.toLowerCase()}`] : [];
4397
4529
  });
4398
- for (const g of recordedGroups()) problems.push(..._chunkCU4TMSZEjs.groupProblems.call(void 0, g, itemsOf(g).map((i) => i.values)));
4530
+ for (const g of recordedGroups()) problems.push(..._chunkP4NMZ77Wjs.groupProblems.call(void 0, g, itemsOf(g).map((i) => i.values)));
4399
4531
  if (problems.length) {
4400
4532
  setChecked(true);
4401
4533
  setStatus(problems.length === 1 ? `Can\u2019t save. ${problems[0]}` : `Can\u2019t save: ${problems.length} fields need fixing`);
4402
4534
  return;
4403
4535
  }
4404
- const ts = _nullishCoalesce(_optionalChain([editing, 'optionalAccess', _291 => _291[0], 'optionalAccess', _292 => _292.ts]), () => ( (header !== void 0 ? _nullishCoalesce(_optionalChain([timestamp, 'optionalCall', _293 => _293()]), () => ( Date.now())) : Date.now() + offsetMs)));
4405
- const saveId = _nullishCoalesce(_optionalChain([editing, 'optionalAccess', _294 => _294.find, 'call', _295 => _295((e) => e.save), 'optionalAccess', _296 => _296.save]), () => ( _chunkCU4TMSZEjs.newSaveId.call(void 0, )));
4536
+ const ts = _nullishCoalesce(_optionalChain([editing, 'optionalAccess', _300 => _300[0], 'optionalAccess', _301 => _301.ts]), () => ( (header !== void 0 ? _nullishCoalesce(_optionalChain([timestamp, 'optionalCall', _302 => _302()]), () => ( Date.now())) : Date.now() + offsetMs)));
4537
+ const saveId = _nullishCoalesce(_optionalChain([editing, 'optionalAccess', _303 => _303.find, 'call', _304 => _304((e) => e.save), 'optionalAccess', _305 => _305.save]), () => ( _chunkP4NMZ77Wjs.newSaveId.call(void 0, )));
4406
4538
  const entries = [
4407
- ...panels.filter((p) => editing || p.options.metric in edits || p.options.record === "always").flatMap((p) => _chunkCU4TMSZEjs.toEntries.call(void 0, p, state.value(p.options.metric), ts, { save: saveId })),
4408
- ...recordedGroups().flatMap((g) => _chunkCU4TMSZEjs.groupToEntries.call(void 0, g, itemsOf(g).map((i) => i.values), ts, saveId))
4539
+ ...panels.filter((p) => editing || p.options.metric in edits || p.options.record === "always").flatMap((p) => _chunkP4NMZ77Wjs.toEntries.call(void 0, p, state.value(p.options.metric), ts, { save: saveId })),
4540
+ ...recordedGroups().flatMap((g) => _chunkP4NMZ77Wjs.groupToEntries.call(void 0, g, itemsOf(g).map((i) => i.values), ts, saveId))
4409
4541
  ];
4410
4542
  if (!entries.length) return;
4411
4543
  const extra = beforeSave ? await beforeSave(ts) : [];
@@ -4414,23 +4546,46 @@ function InputForm({ dashboard, store, onSaved, choices = NO_CHOICES, header, ti
4414
4546
  setEdits({});
4415
4547
  setGroupEdits({});
4416
4548
  setChecked(false);
4549
+ clearFill();
4417
4550
  setOffsetMs(0);
4418
4551
  setStatus(`Saved ${added.length} ${added.length === 1 ? "value" : "values"}`);
4419
- _optionalChain([onSaved, 'optionalCall', _297 => _297(added.length, added)]);
4552
+ _optionalChain([onSaved, 'optionalCall', _306 => _306(added.length, added)]);
4420
4553
  }, [panels, edits, state, offsetMs, store, onSaved, header, timestamp, beforeSave, editing, recordedGroups, itemsOf]);
4421
4554
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, InputFormContext.Provider, { value: state, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DashboardProvider, { dashboard, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4422
4555
  DashboardView,
4423
4556
  {
4424
4557
  header: header !== void 0 ? header : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TimestampPicker, { offsetMs, onChange: setOffsetMs }),
4425
4558
  footer: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { style: [styles16.footer, { backgroundColor: theme.surface, borderTopColor: theme.border }], children: [
4426
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles16.status, { color: _optionalChain([status, 'optionalAccess', _298 => _298.startsWith, 'call', _299 => _299("Can\u2019t")]) ? theme.danger : theme.textSecondary }], children: _nullishCoalesce(status, () => ( (dirty ? `${dirty} unsaved ${dirty === 1 ? "change" : "changes"}` : "Nothing to save"))) }),
4427
- dirty > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4559
+ voice.available && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MicButton, { dictation: voice, label: "Fill the form by voice", size: 36 }),
4560
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4561
+ _reactnative.Text,
4562
+ {
4563
+ style: [styles16.status, { color: _optionalChain([status, 'optionalAccess', _307 => _307.startsWith, 'call', _308 => _308("Can\u2019t")]) || _optionalChain([status, 'optionalAccess', _309 => _309.startsWith, 'call', _310 => _310("Couldn\u2019t")]) ? theme.danger : theme.textSecondary }],
4564
+ accessibilityLiveRegion: "polite",
4565
+ children: voice.listening ? voice.heard ? `\u201C${voice.heard}\u201D` : "Listening\u2026 say each field\u2019s name and its value, then tap to stop" : voice.filling ? "Filling\u2026" : _nullishCoalesce(status, () => ( (dirty ? `${dirty} unsaved ${dirty === 1 ? "change" : "changes"}` : "Nothing to save")))
4566
+ }
4567
+ ),
4568
+ beforeFill && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4569
+ _reactnative.Pressable,
4570
+ {
4571
+ onPress: () => {
4572
+ setEdits(beforeFill);
4573
+ clearFill();
4574
+ setStatus(null);
4575
+ },
4576
+ style: styles16.secondary,
4577
+ accessibilityRole: "button",
4578
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: { color: theme.textSecondary, fontWeight: "500" }, children: "Undo" })
4579
+ }
4580
+ ),
4581
+ dirty > 0 && !beforeFill && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4428
4582
  _reactnative.Pressable,
4429
4583
  {
4430
4584
  onPress: () => {
4431
4585
  setEdits({});
4432
4586
  setGroupEdits({});
4433
4587
  setChecked(false);
4588
+ clearFill();
4434
4589
  setStatus(null);
4435
4590
  },
4436
4591
  style: styles16.secondary,
@@ -4459,14 +4614,14 @@ function groupChanges(base, items) {
4459
4614
  const edited = items.reduce((n, i) => n + (baseKeys.has(i.key) ? i.edited.length : 0), 0);
4460
4615
  const added = items.filter((i) => !baseKeys.has(i.key)).length;
4461
4616
  const removed = base.filter((i) => !keys.has(i.key)).length;
4462
- const moved = edited + added + removed === 0 && items.some((i, n) => _optionalChain([base, 'access', _300 => _300[n], 'optionalAccess', _301 => _301.key]) !== i.key) ? 1 : 0;
4617
+ const moved = edited + added + removed === 0 && items.some((i, n) => _optionalChain([base, 'access', _311 => _311[n], 'optionalAccess', _312 => _312.key]) !== i.key) ? 1 : 0;
4463
4618
  return edited + added + removed + moved;
4464
4619
  }
4465
4620
  function groupState(group, items, last, edited, showProblems, update) {
4466
- const fields = _chunkCU4TMSZEjs.groupFields.call(void 0, group);
4621
+ const fields = _chunkP4NMZ77Wjs.groupFields.call(void 0, group);
4467
4622
  const { max } = group.options;
4468
4623
  const fresh = (position) => ({ key: `n${nextItemKey++}`, values: freshItem(group, position, last), edited: [] });
4469
- const filled = items.filter((i) => !_chunkCU4TMSZEjs.isEmptyItem.call(void 0, group, i.values)).length;
4624
+ const filled = items.filter((i) => !_chunkP4NMZ77Wjs.isEmptyItem.call(void 0, group, i.values)).length;
4470
4625
  const { min } = group.options;
4471
4626
  return {
4472
4627
  items: items.map((i) => ({ key: i.key, values: i.values, edited: i.edited })),
@@ -4491,8 +4646,8 @@ function groupState(group, items, last, edited, showProblems, update) {
4491
4646
  fieldProblem: (index, metric) => {
4492
4647
  const item = items[index];
4493
4648
  const field = fields.find((f) => f.options.metric === metric);
4494
- if (!item || !field || _chunkCU4TMSZEjs.isEmptyItem.call(void 0, group, item.values)) return void 0;
4495
- return showProblems || item.edited.includes(metric) ? _chunkCU4TMSZEjs.inputProblem.call(void 0, field, _nullishCoalesce(item.values[metric], () => ( null))) : void 0;
4649
+ if (!item || !field || _chunkP4NMZ77Wjs.isEmptyItem.call(void 0, group, item.values)) return void 0;
4650
+ return showProblems || item.edited.includes(metric) ? _chunkP4NMZ77Wjs.inputProblem.call(void 0, field, _nullishCoalesce(item.values[metric], () => ( null))) : void 0;
4496
4651
  }
4497
4652
  };
4498
4653
  }
@@ -4800,4 +4955,14 @@ var styles16 = _reactnative.StyleSheet.create({
4800
4955
 
4801
4956
 
4802
4957
 
4803
- exports.ALL = _chunkCU4TMSZEjs.ALL; exports.AUTHORING_GUIDE = _chunkCU4TMSZEjs.AUTHORING_GUIDE; exports.BUNDLE_ACCEPT = _chunkCU4TMSZEjs.BUNDLE_ACCEPT; exports.BUNDLE_TYPE = _chunkCU4TMSZEjs.BUNDLE_TYPE; exports.CANVAS_GAP = _chunkCU4TMSZEjs.CANVAS_GAP; exports.CANVAS_ROW_HEADER = _chunkCU4TMSZEjs.CANVAS_ROW_HEADER; exports.Calendar = Calendar; exports.Chip = Chip; exports.ConfigLoader = _chunkCU4TMSZEjs.ConfigLoader; exports.DASHBOARD_DS = _chunkCU4TMSZEjs.DASHBOARD_DS; exports.DEFAULT_GAZETTEER = _chunkCU4TMSZEjs.DEFAULT_GAZETTEER; exports.DICTATION_TYPES = _chunkCU4TMSZEjs.DICTATION_TYPES; exports.DOCUMENT_GUIDE = _chunkCU4TMSZEjs.DOCUMENT_GUIDE; exports.DashThemeProvider = DashThemeProvider; exports.DashboardProvider = DashboardProvider; exports.DashboardToolbar = DashboardToolbar; exports.DashboardView = DashboardView; exports.EDITABLE_VARIABLE_TYPES = _chunkCU4TMSZEjs.EDITABLE_VARIABLE_TYPES; exports.EXAMPLE_TEMPLATE = _chunkCU4TMSZEjs.EXAMPLE_TEMPLATE; exports.GRID_COLUMNS = _chunkCU4TMSZEjs.GRID_COLUMNS; exports.GROUP_FIELD_TYPES = _chunkCU4TMSZEjs.GROUP_FIELD_TYPES; exports.GrafanaClient = _chunkCU4TMSZEjs.GrafanaClient; exports.GrafanaDataSource = _chunkCU4TMSZEjs.GrafanaDataSource; exports.GrafanaError = _chunkCU4TMSZEjs.GrafanaError; exports.HttpConfigFiles = _chunkCU4TMSZEjs.HttpConfigFiles; exports.INPUT_GROUP = _chunkCU4TMSZEjs.INPUT_GROUP; exports.INPUT_OPTION_KEYS = _chunkCU4TMSZEjs.INPUT_OPTION_KEYS; exports.INPUT_TYPES = _chunkCU4TMSZEjs.INPUT_TYPES; exports.InputForm = InputForm; exports.InputFormContext = InputFormContext; exports.LOCAL_DATASOURCE_TYPE = _chunkCU4TMSZEjs.LOCAL_DATASOURCE_TYPE; exports.Legend = Legend; exports.LocalDataSource = _chunkCU4TMSZEjs.LocalDataSource; exports.MANIFEST_VERSION = _chunkCU4TMSZEjs.MANIFEST_VERSION; exports.MAPPING_TYPES = _chunkCU4TMSZEjs.MAPPING_TYPES; exports.MemoryEntryStore = _chunkCU4TMSZEjs.MemoryEntryStore; exports.NAMED_COLORS = _chunkCU4TMSZEjs.NAMED_COLORS; exports.NoData = NoData; exports.OPTION_CATEGORIES = _chunkCU4TMSZEjs.OPTION_CATEGORIES; exports.OVERRIDE_MATCHERS = _chunkCU4TMSZEjs.OVERRIDE_MATCHERS; exports.PANEL_TYPES = _chunkCU4TMSZEjs.PANEL_TYPES; exports.PanelCard = PanelCard; exports.REDUCER_LABELS = _chunkCU4TMSZEjs.REDUCER_LABELS; exports.REFRESH_CHOICES = _chunkCU4TMSZEjs.REFRESH_CHOICES; exports.RELATIVE_RANGES = _chunkCU4TMSZEjs.RELATIVE_RANGES; exports.RenderBoundary = RenderBoundary; exports.SERIES_PALETTE = _chunkCU4TMSZEjs.SERIES_PALETTE; exports.SNIPPET_VERSION = _chunkCU4TMSZEjs.SNIPPET_VERSION; exports.SPECIAL_MATCHES = _chunkCU4TMSZEjs.SPECIAL_MATCHES; exports.SaveConflictError = _chunkCU4TMSZEjs.SaveConflictError; exports.TEMPLATE_VERSION = _chunkCU4TMSZEjs.TEMPLATE_VERSION; exports.TIME_PRESETS = _chunkCU4TMSZEjs.TIME_PRESETS; exports.UNIT_CHOICES = _chunkCU4TMSZEjs.UNIT_CHOICES; exports.addTime = _chunkCU4TMSZEjs.addTime; exports.appSchema = _chunkCU4TMSZEjs.appSchema; exports.applyDashboardLink = _chunkCU4TMSZEjs.applyDashboardLink; exports.applyJsonEdits = _chunkCU4TMSZEjs.applyJsonEdits; exports.applyTemplate = _chunkCU4TMSZEjs.applyTemplate; exports.applyTransformations = _chunkCU4TMSZEjs.applyTransformations; exports.assembleBundle = _chunkCU4TMSZEjs.assembleBundle; exports.assembleFromResponse = _chunkCU4TMSZEjs.assembleFromResponse; exports.buildFrames = _chunkCU4TMSZEjs.buildFrames; exports.bundleFromFiles = _chunkCU4TMSZEjs.bundleFromFiles; exports.bundleRoot = _chunkCU4TMSZEjs.bundleRoot; exports.calculateInterval = _chunkCU4TMSZEjs.calculateInterval; exports.checkFiles = _chunkCU4TMSZEjs.checkFiles; exports.cleanDashboard = _chunkCU4TMSZEjs.cleanDashboard; exports.cleanPanelOptions = _chunkCU4TMSZEjs.cleanPanelOptions; exports.collapseRow = _chunkCU4TMSZEjs.collapseRow; exports.compactGrid = _chunkCU4TMSZEjs.compactGrid; exports.copyPanels = _chunkCU4TMSZEjs.copyPanels; exports.darkTheme = darkTheme; exports.dashboardSchema = _chunkCU4TMSZEjs.dashboardSchema; exports.dashboardSchemaIssues = _chunkCU4TMSZEjs.dashboardSchemaIssues; exports.dashboardSourceIds = _chunkCU4TMSZEjs.dashboardSourceIds; exports.defaultFetchJson = _chunkCU4TMSZEjs.defaultFetchJson; exports.describeRange = _chunkCU4TMSZEjs.describeRange; exports.dictationHints = _chunkCU4TMSZEjs.dictationHints; exports.diffJson = _chunkCU4TMSZEjs.diffJson; exports.documentChanges = _chunkCU4TMSZEjs.documentChanges; exports.documentIdFor = _chunkCU4TMSZEjs.documentIdFor; exports.documentKind = _chunkCU4TMSZEjs.documentKind; exports.documentPrompt = _chunkCU4TMSZEjs.documentPrompt; exports.documentUses = _chunkCU4TMSZEjs.documentUses; exports.dropTarget = _chunkCU4TMSZEjs.dropTarget; exports.duplicatePanel = _chunkCU4TMSZEjs.duplicatePanel; exports.entriesSavedWith = _chunkCU4TMSZEjs.entriesSavedWith; exports.entriesToItems = _chunkCU4TMSZEjs.entriesToItems; exports.entryToInputValue = _chunkCU4TMSZEjs.entryToInputValue; exports.expandRow = _chunkCU4TMSZEjs.expandRow; exports.fetchBundle = _chunkCU4TMSZEjs.fetchBundle; exports.fetchJsonWithToken = _chunkCU4TMSZEjs.fetchJsonWithToken; exports.fieldDisplayName = _chunkCU4TMSZEjs.fieldDisplayName; exports.fieldMatches = _chunkCU4TMSZEjs.fieldMatches; exports.fixDocumentPrompt = _chunkCU4TMSZEjs.fixDocumentPrompt; exports.fixTemplatePrompt = _chunkCU4TMSZEjs.fixTemplatePrompt; exports.formatClock = _chunkCU4TMSZEjs.formatClock; exports.formatDisplay = _chunkCU4TMSZEjs.formatDisplay; exports.formatDuration = _chunkCU4TMSZEjs.formatDuration; exports.formatJsonText = _chunkCU4TMSZEjs.formatJsonText; exports.formatLocalDateTime = _chunkCU4TMSZEjs.formatLocalDateTime; exports.formatValue = _chunkCU4TMSZEjs.formatValue; exports.frameLength = _chunkCU4TMSZEjs.frameLength; exports.framesToOptions = _chunkCU4TMSZEjs.framesToOptions; exports.fromWire = _chunkCU4TMSZEjs.fromWire; exports.getPath = _chunkCU4TMSZEjs.getPath; exports.gridOffsetPx = _chunkCU4TMSZEjs.gridOffsetPx; exports.gridUnitsToPx = _chunkCU4TMSZEjs.gridUnitsToPx; exports.groupField = _chunkCU4TMSZEjs.groupField; exports.groupFields = _chunkCU4TMSZEjs.groupFields; exports.groupKey = groupKey; exports.groupProblems = _chunkCU4TMSZEjs.groupProblems; exports.groupToEntries = _chunkCU4TMSZEjs.groupToEntries; exports.httpFetchJson = _chunkCU4TMSZEjs.httpFetchJson; exports.initialVariableValues = _chunkCU4TMSZEjs.initialVariableValues; exports.inputGroups = _chunkCU4TMSZEjs.inputGroups; exports.inputPanels = _chunkCU4TMSZEjs.inputPanels; exports.inputProblem = _chunkCU4TMSZEjs.inputProblem; exports.insertPanel = _chunkCU4TMSZEjs.insertPanel; exports.interpolate = _chunkCU4TMSZEjs.interpolate; exports.interpolateDeep = _chunkCU4TMSZEjs.interpolateDeep; exports.isBundleResponse = _chunkCU4TMSZEjs.isBundleResponse; exports.isEditableVariableType = _chunkCU4TMSZEjs.isEditableVariableType; exports.isEmptyItem = _chunkCU4TMSZEjs.isEmptyItem; exports.isFormPanelType = _chunkCU4TMSZEjs.isFormPanelType; exports.isInputGroup = _chunkCU4TMSZEjs.isInputGroup; exports.isInputPanel = _chunkCU4TMSZEjs.isInputPanel; exports.isInputType = _chunkCU4TMSZEjs.isInputType; exports.isLocalDatasource = _chunkCU4TMSZEjs.isLocalDatasource; exports.isReducer = _chunkCU4TMSZEjs.isReducer; exports.isRow = _chunkCU4TMSZEjs.isRow; exports.isSqlDatasource = _chunkCU4TMSZEjs.isSqlDatasource; exports.jsonFromAnswer = _chunkCU4TMSZEjs.jsonFromAnswer; exports.layoutCanvas = _chunkCU4TMSZEjs.layoutCanvas; exports.layoutDashboard = _chunkCU4TMSZEjs.layoutDashboard; exports.lightTheme = lightTheme; exports.lineColumn = _chunkCU4TMSZEjs.lineColumn; exports.loadGazetteer = _chunkCU4TMSZEjs.loadGazetteer; exports.locate = _chunkCU4TMSZEjs.locate; exports.makeTemplate = _chunkCU4TMSZEjs.makeTemplate; exports.manifestSchemaIssues = _chunkCU4TMSZEjs.manifestSchemaIssues; exports.mappedResult = _chunkCU4TMSZEjs.mappedResult; exports.mappingProblem = _chunkCU4TMSZEjs.mappingProblem; exports.mappingRow = _chunkCU4TMSZEjs.mappingRow; exports.mappingRows = _chunkCU4TMSZEjs.mappingRows; exports.matchChoices = _chunkCU4TMSZEjs.matchChoices; exports.metricChanges = _chunkCU4TMSZEjs.metricChanges; exports.movePanel = _chunkCU4TMSZEjs.movePanel; exports.newDocument = _chunkCU4TMSZEjs.newDocument; exports.newPanel = _chunkCU4TMSZEjs.newPanel; exports.newSaveId = _chunkCU4TMSZEjs.newSaveId; exports.newVariable = _chunkCU4TMSZEjs.newVariable; exports.nextPanelId = _chunkCU4TMSZEjs.nextPanelId; exports.normalizeRef = _chunkCU4TMSZEjs.normalizeRef; exports.numberFields = _chunkCU4TMSZEjs.numberFields; exports.optionValue = _chunkCU4TMSZEjs.optionValue; exports.overrideProperties = _chunkCU4TMSZEjs.overrideProperties; exports.panelEdits = _chunkCU4TMSZEjs.panelEdits; exports.panelHasQueries = _chunkCU4TMSZEjs.panelHasQueries; exports.panelKey = _chunkCU4TMSZEjs.panelKey; exports.panelMetrics = _chunkCU4TMSZEjs.panelMetrics; exports.panelOptions = _chunkCU4TMSZEjs.panelOptions; exports.panelOverrides = _chunkCU4TMSZEjs.panelOverrides; exports.panelSize = _chunkCU4TMSZEjs.panelSize; exports.panelSpan = _chunkCU4TMSZEjs.panelSpan; exports.parseClockDigits = _chunkCU4TMSZEjs.parseClockDigits; exports.parseDashboardLink = _chunkCU4TMSZEjs.parseDashboardLink; exports.parseDuration = _chunkCU4TMSZEjs.parseDuration; exports.parseGazetteer = _chunkCU4TMSZEjs.parseGazetteer; exports.parseJsonText = _chunkCU4TMSZEjs.parseJsonText; exports.parseLocalDateTime = _chunkCU4TMSZEjs.parseLocalDateTime; exports.parseRange = _chunkCU4TMSZEjs.parseRange; exports.parseSnippet = _chunkCU4TMSZEjs.parseSnippet; exports.parseSpokenDuration = _chunkCU4TMSZEjs.parseSpokenDuration; exports.parseSpokenNumber = _chunkCU4TMSZEjs.parseSpokenNumber; exports.parseSpokenYesNo = _chunkCU4TMSZEjs.parseSpokenYesNo; exports.parseTemplate = _chunkCU4TMSZEjs.parseTemplate; exports.parseTime = _chunkCU4TMSZEjs.parseTime; exports.pasteSnippet = _chunkCU4TMSZEjs.pasteSnippet; exports.placePanel = _chunkCU4TMSZEjs.placePanel; exports.plainInputPanels = _chunkCU4TMSZEjs.plainInputPanels; exports.pointerToPath = _chunkCU4TMSZEjs.pointerToPath; exports.prepareDashboard = _chunkCU4TMSZEjs.prepareDashboard; exports.previewPaste = _chunkCU4TMSZEjs.previewPaste; exports.queryPanel = _chunkCU4TMSZEjs.queryPanel; exports.queryParam = _chunkCU4TMSZEjs.queryParam; exports.readConfigFiles = _chunkCU4TMSZEjs.readConfigFiles; exports.readDocumentAnswer = _chunkCU4TMSZEjs.readDocumentAnswer; exports.readTemplateAnswer = _chunkCU4TMSZEjs.readTemplateAnswer; exports.readingOrder = _chunkCU4TMSZEjs.readingOrder; exports.reduce = _chunkCU4TMSZEjs.reduce; exports.refineOptions = _chunkCU4TMSZEjs.refineOptions; exports.refreshedVariables = _chunkCU4TMSZEjs.refreshedVariables; exports.registerPanel = registerPanel; exports.removeDocumentFromManifest = _chunkCU4TMSZEjs.removeDocumentFromManifest; exports.removePanel = _chunkCU4TMSZEjs.removePanel; exports.renameDocumentInManifest = _chunkCU4TMSZEjs.renameDocumentInManifest; exports.renameMetrics = _chunkCU4TMSZEjs.renameMetrics; exports.renameVariableInPanels = _chunkCU4TMSZEjs.renameVariableInPanels; exports.repack = _chunkCU4TMSZEjs.repack; exports.repeatOptions = _chunkCU4TMSZEjs.repeatOptions; exports.requiredManifestVersion = _chunkCU4TMSZEjs.requiredManifestVersion; exports.resizePanel = _chunkCU4TMSZEjs.resizePanel; exports.resolveColor = _chunkCU4TMSZEjs.resolveColor; exports.resolveFieldConfig = _chunkCU4TMSZEjs.resolveFieldConfig; exports.resolveLinks = _chunkCU4TMSZEjs.resolveLinks; exports.resolveTimezone = _chunkCU4TMSZEjs.resolveTimezone; exports.resolveUrl = _chunkCU4TMSZEjs.resolveUrl; exports.resolveVariables = _chunkCU4TMSZEjs.resolveVariables; exports.revalidateBundle = _chunkCU4TMSZEjs.revalidateBundle; exports.rowsToMappings = _chunkCU4TMSZEjs.rowsToMappings; exports.sameSave = _chunkCU4TMSZEjs.sameSave; exports.sampleEntries = _chunkCU4TMSZEjs.sampleEntries; exports.screenDocuments = _chunkCU4TMSZEjs.screenDocuments; exports.screenOfType = _chunkCU4TMSZEjs.screenOfType; exports.selectValue = _chunkCU4TMSZEjs.selectValue; exports.seriesColor = _chunkCU4TMSZEjs.seriesColor; exports.setHiddenOnPhones = _chunkCU4TMSZEjs.setHiddenOnPhones; exports.setJsonValue = _chunkCU4TMSZEjs.setJsonValue; exports.setOption = _chunkCU4TMSZEjs.setOption; exports.setOptionValue = _chunkCU4TMSZEjs.setOptionValue; exports.setOverrides = _chunkCU4TMSZEjs.setOverrides; exports.settleLayout = _chunkCU4TMSZEjs.settleLayout; exports.snapToGrid = _chunkCU4TMSZEjs.snapToGrid; exports.splitPath = _chunkCU4TMSZEjs.splitPath; exports.spokenValue = _chunkCU4TMSZEjs.spokenValue; exports.startOf = _chunkCU4TMSZEjs.startOf; exports.stringifyCompact = _chunkCU4TMSZEjs.stringifyCompact; exports.tabIdFor = _chunkCU4TMSZEjs.tabIdFor; exports.takesDictation = _chunkCU4TMSZEjs.takesDictation; exports.templateNeeds = _chunkCU4TMSZEjs.templateNeeds; exports.templatePrompt = _chunkCU4TMSZEjs.templatePrompt; exports.textSuggestions = _chunkCU4TMSZEjs.textSuggestions; exports.thresholdStep = _chunkCU4TMSZEjs.thresholdStep; exports.timeExprError = _chunkCU4TMSZEjs.timeExprError; exports.timeField = _chunkCU4TMSZEjs.timeField; exports.toEntries = _chunkCU4TMSZEjs.toEntries; exports.toMillis = _chunkCU4TMSZEjs.toMillis; exports.toSeries = _chunkCU4TMSZEjs.toSeries; exports.toXYSeries = _chunkCU4TMSZEjs.toXYSeries; exports.uniqueNames = _chunkCU4TMSZEjs.uniqueNames; exports.useDashTheme = useDashTheme; exports.useDashboard = useDashboard; exports.useInputForm = useInputForm; exports.usePanelData = usePanelData; exports.validateBundle = _chunkCU4TMSZEjs.validateBundle; exports.validateDashboard = _chunkCU4TMSZEjs.validateDashboard; exports.validateManifest = _chunkCU4TMSZEjs.validateManifest; exports.valueColor = _chunkCU4TMSZEjs.valueColor; exports.valueText = _chunkCU4TMSZEjs.valueText; exports.variableDependents = _chunkCU4TMSZEjs.variableDependents; exports.variableInfo = _chunkCU4TMSZEjs.variableInfo; exports.variableNameError = _chunkCU4TMSZEjs.variableNameError; exports.variableOptions = _chunkCU4TMSZEjs.variableOptions; exports.variableOrder = _chunkCU4TMSZEjs.variableOrder; exports.variableReferences = _chunkCU4TMSZEjs.variableReferences; exports.variableUses = _chunkCU4TMSZEjs.variableUses; exports.variableWithCurrent = _chunkCU4TMSZEjs.variableWithCurrent; exports.variableWithFlags = _chunkCU4TMSZEjs.variableWithFlags; exports.variableWithQuery = _chunkCU4TMSZEjs.variableWithQuery; exports.variableWithType = _chunkCU4TMSZEjs.variableWithType; exports.visibleVariables = _chunkCU4TMSZEjs.visibleVariables; exports.webSpeechRecognizer = webSpeechRecognizer; exports.zoomRange = _chunkCU4TMSZEjs.zoomRange;
4958
+
4959
+
4960
+
4961
+
4962
+
4963
+
4964
+
4965
+
4966
+
4967
+
4968
+ exports.ALL = _chunkP4NMZ77Wjs.ALL; exports.AUTHORING_GUIDE = _chunkP4NMZ77Wjs.AUTHORING_GUIDE; exports.BUNDLE_ACCEPT = _chunkP4NMZ77Wjs.BUNDLE_ACCEPT; exports.BUNDLE_TYPE = _chunkP4NMZ77Wjs.BUNDLE_TYPE; exports.CANVAS_GAP = _chunkP4NMZ77Wjs.CANVAS_GAP; exports.CANVAS_ROW_HEADER = _chunkP4NMZ77Wjs.CANVAS_ROW_HEADER; exports.Calendar = Calendar; exports.Chip = Chip; exports.ConfigLoader = _chunkP4NMZ77Wjs.ConfigLoader; exports.DASHBOARD_DS = _chunkP4NMZ77Wjs.DASHBOARD_DS; exports.DEFAULT_GAZETTEER = _chunkP4NMZ77Wjs.DEFAULT_GAZETTEER; exports.DICTATION_TYPES = _chunkP4NMZ77Wjs.DICTATION_TYPES; exports.DOCUMENT_GUIDE = _chunkP4NMZ77Wjs.DOCUMENT_GUIDE; exports.DashThemeProvider = DashThemeProvider; exports.DashboardProvider = DashboardProvider; exports.DashboardToolbar = DashboardToolbar; exports.DashboardView = DashboardView; exports.EDITABLE_VARIABLE_TYPES = _chunkP4NMZ77Wjs.EDITABLE_VARIABLE_TYPES; exports.EXAMPLE_TEMPLATE = _chunkP4NMZ77Wjs.EXAMPLE_TEMPLATE; exports.GRID_COLUMNS = _chunkP4NMZ77Wjs.GRID_COLUMNS; exports.GROUP_FIELD_TYPES = _chunkP4NMZ77Wjs.GROUP_FIELD_TYPES; exports.GrafanaClient = _chunkP4NMZ77Wjs.GrafanaClient; exports.GrafanaDataSource = _chunkP4NMZ77Wjs.GrafanaDataSource; exports.GrafanaError = _chunkP4NMZ77Wjs.GrafanaError; exports.HttpConfigFiles = _chunkP4NMZ77Wjs.HttpConfigFiles; exports.INPUT_GROUP = _chunkP4NMZ77Wjs.INPUT_GROUP; exports.INPUT_OPTION_KEYS = _chunkP4NMZ77Wjs.INPUT_OPTION_KEYS; exports.INPUT_TYPES = _chunkP4NMZ77Wjs.INPUT_TYPES; exports.InputForm = InputForm; exports.InputFormContext = InputFormContext; exports.LOCAL_DATASOURCE_TYPE = _chunkP4NMZ77Wjs.LOCAL_DATASOURCE_TYPE; exports.Legend = Legend; exports.LocalDataSource = _chunkP4NMZ77Wjs.LocalDataSource; exports.MANIFEST_VERSION = _chunkP4NMZ77Wjs.MANIFEST_VERSION; exports.MAPPING_TYPES = _chunkP4NMZ77Wjs.MAPPING_TYPES; exports.MemoryEntryStore = _chunkP4NMZ77Wjs.MemoryEntryStore; exports.NAMED_COLORS = _chunkP4NMZ77Wjs.NAMED_COLORS; exports.NoData = NoData; exports.OPTION_CATEGORIES = _chunkP4NMZ77Wjs.OPTION_CATEGORIES; exports.OVERRIDE_MATCHERS = _chunkP4NMZ77Wjs.OVERRIDE_MATCHERS; exports.PANEL_TYPES = _chunkP4NMZ77Wjs.PANEL_TYPES; exports.PanelCard = PanelCard; exports.REDUCER_LABELS = _chunkP4NMZ77Wjs.REDUCER_LABELS; exports.REFRESH_CHOICES = _chunkP4NMZ77Wjs.REFRESH_CHOICES; exports.RELATIVE_RANGES = _chunkP4NMZ77Wjs.RELATIVE_RANGES; exports.RenderBoundary = RenderBoundary; exports.SERIES_PALETTE = _chunkP4NMZ77Wjs.SERIES_PALETTE; exports.SNIPPET_VERSION = _chunkP4NMZ77Wjs.SNIPPET_VERSION; exports.SPECIAL_MATCHES = _chunkP4NMZ77Wjs.SPECIAL_MATCHES; exports.SaveConflictError = _chunkP4NMZ77Wjs.SaveConflictError; exports.TEMPLATE_VERSION = _chunkP4NMZ77Wjs.TEMPLATE_VERSION; exports.TIME_PRESETS = _chunkP4NMZ77Wjs.TIME_PRESETS; exports.UNIT_CHOICES = _chunkP4NMZ77Wjs.UNIT_CHOICES; exports.addTime = _chunkP4NMZ77Wjs.addTime; exports.appSchema = _chunkP4NMZ77Wjs.appSchema; exports.applyDashboardLink = _chunkP4NMZ77Wjs.applyDashboardLink; exports.applyJsonEdits = _chunkP4NMZ77Wjs.applyJsonEdits; exports.applyTemplate = _chunkP4NMZ77Wjs.applyTemplate; exports.applyTransformations = _chunkP4NMZ77Wjs.applyTransformations; exports.assembleBundle = _chunkP4NMZ77Wjs.assembleBundle; exports.assembleFromResponse = _chunkP4NMZ77Wjs.assembleFromResponse; exports.buildFrames = _chunkP4NMZ77Wjs.buildFrames; exports.bundleFromFiles = _chunkP4NMZ77Wjs.bundleFromFiles; exports.bundleRoot = _chunkP4NMZ77Wjs.bundleRoot; exports.calculateInterval = _chunkP4NMZ77Wjs.calculateInterval; exports.checkFiles = _chunkP4NMZ77Wjs.checkFiles; exports.choicesOf = _chunkP4NMZ77Wjs.choicesOf; exports.cleanDashboard = _chunkP4NMZ77Wjs.cleanDashboard; exports.cleanPanelOptions = _chunkP4NMZ77Wjs.cleanPanelOptions; exports.collapseRow = _chunkP4NMZ77Wjs.collapseRow; exports.compactGrid = _chunkP4NMZ77Wjs.compactGrid; exports.copyPanels = _chunkP4NMZ77Wjs.copyPanels; exports.darkTheme = darkTheme; exports.dashboardSchema = _chunkP4NMZ77Wjs.dashboardSchema; exports.dashboardSchemaIssues = _chunkP4NMZ77Wjs.dashboardSchemaIssues; exports.dashboardSourceIds = _chunkP4NMZ77Wjs.dashboardSourceIds; exports.defaultFetchJson = _chunkP4NMZ77Wjs.defaultFetchJson; exports.describeRange = _chunkP4NMZ77Wjs.describeRange; exports.dictationHints = _chunkP4NMZ77Wjs.dictationHints; exports.diffJson = _chunkP4NMZ77Wjs.diffJson; exports.documentChanges = _chunkP4NMZ77Wjs.documentChanges; exports.documentIdFor = _chunkP4NMZ77Wjs.documentIdFor; exports.documentKind = _chunkP4NMZ77Wjs.documentKind; exports.documentPrompt = _chunkP4NMZ77Wjs.documentPrompt; exports.documentUses = _chunkP4NMZ77Wjs.documentUses; exports.dropTarget = _chunkP4NMZ77Wjs.dropTarget; exports.duplicatePanel = _chunkP4NMZ77Wjs.duplicatePanel; exports.entriesSavedWith = _chunkP4NMZ77Wjs.entriesSavedWith; exports.entriesToItems = _chunkP4NMZ77Wjs.entriesToItems; exports.entryToInputValue = _chunkP4NMZ77Wjs.entryToInputValue; exports.expandRow = _chunkP4NMZ77Wjs.expandRow; exports.fetchBundle = _chunkP4NMZ77Wjs.fetchBundle; exports.fetchJsonWithToken = _chunkP4NMZ77Wjs.fetchJsonWithToken; exports.fieldDisplayName = _chunkP4NMZ77Wjs.fieldDisplayName; exports.fieldMatches = _chunkP4NMZ77Wjs.fieldMatches; exports.fillForm = _chunkP4NMZ77Wjs.fillForm; exports.fillHints = _chunkP4NMZ77Wjs.fillHints; exports.fillPrompt = _chunkP4NMZ77Wjs.fillPrompt; exports.fillSchema = _chunkP4NMZ77Wjs.fillSchema; exports.fixDocumentPrompt = _chunkP4NMZ77Wjs.fixDocumentPrompt; exports.fixTemplatePrompt = _chunkP4NMZ77Wjs.fixTemplatePrompt; exports.formatClock = _chunkP4NMZ77Wjs.formatClock; exports.formatDisplay = _chunkP4NMZ77Wjs.formatDisplay; exports.formatDuration = _chunkP4NMZ77Wjs.formatDuration; exports.formatJsonText = _chunkP4NMZ77Wjs.formatJsonText; exports.formatLocalDateTime = _chunkP4NMZ77Wjs.formatLocalDateTime; exports.formatValue = _chunkP4NMZ77Wjs.formatValue; exports.frameLength = _chunkP4NMZ77Wjs.frameLength; exports.framesToOptions = _chunkP4NMZ77Wjs.framesToOptions; exports.fromWire = _chunkP4NMZ77Wjs.fromWire; exports.getPath = _chunkP4NMZ77Wjs.getPath; exports.gridOffsetPx = _chunkP4NMZ77Wjs.gridOffsetPx; exports.gridUnitsToPx = _chunkP4NMZ77Wjs.gridUnitsToPx; exports.groupField = _chunkP4NMZ77Wjs.groupField; exports.groupFields = _chunkP4NMZ77Wjs.groupFields; exports.groupKey = groupKey; exports.groupProblems = _chunkP4NMZ77Wjs.groupProblems; exports.groupToEntries = _chunkP4NMZ77Wjs.groupToEntries; exports.httpFetchJson = _chunkP4NMZ77Wjs.httpFetchJson; exports.initialVariableValues = _chunkP4NMZ77Wjs.initialVariableValues; exports.inputGroups = _chunkP4NMZ77Wjs.inputGroups; exports.inputPanels = _chunkP4NMZ77Wjs.inputPanels; exports.inputProblem = _chunkP4NMZ77Wjs.inputProblem; exports.insertPanel = _chunkP4NMZ77Wjs.insertPanel; exports.interpolate = _chunkP4NMZ77Wjs.interpolate; exports.interpolateDeep = _chunkP4NMZ77Wjs.interpolateDeep; exports.isBundleResponse = _chunkP4NMZ77Wjs.isBundleResponse; exports.isEditableVariableType = _chunkP4NMZ77Wjs.isEditableVariableType; exports.isEmptyItem = _chunkP4NMZ77Wjs.isEmptyItem; exports.isFormPanelType = _chunkP4NMZ77Wjs.isFormPanelType; exports.isInputGroup = _chunkP4NMZ77Wjs.isInputGroup; exports.isInputPanel = _chunkP4NMZ77Wjs.isInputPanel; exports.isInputType = _chunkP4NMZ77Wjs.isInputType; exports.isLocalDatasource = _chunkP4NMZ77Wjs.isLocalDatasource; exports.isReducer = _chunkP4NMZ77Wjs.isReducer; exports.isRow = _chunkP4NMZ77Wjs.isRow; exports.isSqlDatasource = _chunkP4NMZ77Wjs.isSqlDatasource; exports.jsonFromAnswer = _chunkP4NMZ77Wjs.jsonFromAnswer; exports.layoutCanvas = _chunkP4NMZ77Wjs.layoutCanvas; exports.layoutDashboard = _chunkP4NMZ77Wjs.layoutDashboard; exports.lightTheme = lightTheme; exports.lineColumn = _chunkP4NMZ77Wjs.lineColumn; exports.loadGazetteer = _chunkP4NMZ77Wjs.loadGazetteer; exports.locate = _chunkP4NMZ77Wjs.locate; exports.makeTemplate = _chunkP4NMZ77Wjs.makeTemplate; exports.manifestSchemaIssues = _chunkP4NMZ77Wjs.manifestSchemaIssues; exports.mappedResult = _chunkP4NMZ77Wjs.mappedResult; exports.mappingProblem = _chunkP4NMZ77Wjs.mappingProblem; exports.mappingRow = _chunkP4NMZ77Wjs.mappingRow; exports.mappingRows = _chunkP4NMZ77Wjs.mappingRows; exports.matchChoices = _chunkP4NMZ77Wjs.matchChoices; exports.metricChanges = _chunkP4NMZ77Wjs.metricChanges; exports.modelFiller = _chunkP4NMZ77Wjs.modelFiller; exports.movePanel = _chunkP4NMZ77Wjs.movePanel; exports.newDocument = _chunkP4NMZ77Wjs.newDocument; exports.newPanel = _chunkP4NMZ77Wjs.newPanel; exports.newSaveId = _chunkP4NMZ77Wjs.newSaveId; exports.newVariable = _chunkP4NMZ77Wjs.newVariable; exports.nextPanelId = _chunkP4NMZ77Wjs.nextPanelId; exports.normalizeRef = _chunkP4NMZ77Wjs.normalizeRef; exports.numberFields = _chunkP4NMZ77Wjs.numberFields; exports.optionValue = _chunkP4NMZ77Wjs.optionValue; exports.overrideProperties = _chunkP4NMZ77Wjs.overrideProperties; exports.panelEdits = _chunkP4NMZ77Wjs.panelEdits; exports.panelHasQueries = _chunkP4NMZ77Wjs.panelHasQueries; exports.panelKey = _chunkP4NMZ77Wjs.panelKey; exports.panelMetrics = _chunkP4NMZ77Wjs.panelMetrics; exports.panelOptions = _chunkP4NMZ77Wjs.panelOptions; exports.panelOverrides = _chunkP4NMZ77Wjs.panelOverrides; exports.panelSize = _chunkP4NMZ77Wjs.panelSize; exports.panelSpan = _chunkP4NMZ77Wjs.panelSpan; exports.parseClockDigits = _chunkP4NMZ77Wjs.parseClockDigits; exports.parseDashboardLink = _chunkP4NMZ77Wjs.parseDashboardLink; exports.parseDuration = _chunkP4NMZ77Wjs.parseDuration; exports.parseFillAnswer = _chunkP4NMZ77Wjs.parseFillAnswer; exports.parseGazetteer = _chunkP4NMZ77Wjs.parseGazetteer; exports.parseJsonText = _chunkP4NMZ77Wjs.parseJsonText; exports.parseLocalDateTime = _chunkP4NMZ77Wjs.parseLocalDateTime; exports.parseRange = _chunkP4NMZ77Wjs.parseRange; exports.parseSnippet = _chunkP4NMZ77Wjs.parseSnippet; exports.parseSpokenDuration = _chunkP4NMZ77Wjs.parseSpokenDuration; exports.parseSpokenNumber = _chunkP4NMZ77Wjs.parseSpokenNumber; exports.parseSpokenYesNo = _chunkP4NMZ77Wjs.parseSpokenYesNo; exports.parseTemplate = _chunkP4NMZ77Wjs.parseTemplate; exports.parseTime = _chunkP4NMZ77Wjs.parseTime; exports.pasteSnippet = _chunkP4NMZ77Wjs.pasteSnippet; exports.placePanel = _chunkP4NMZ77Wjs.placePanel; exports.plainInputPanels = _chunkP4NMZ77Wjs.plainInputPanels; exports.pointerToPath = _chunkP4NMZ77Wjs.pointerToPath; exports.prepareDashboard = _chunkP4NMZ77Wjs.prepareDashboard; exports.previewPaste = _chunkP4NMZ77Wjs.previewPaste; exports.queryPanel = _chunkP4NMZ77Wjs.queryPanel; exports.queryParam = _chunkP4NMZ77Wjs.queryParam; exports.readConfigFiles = _chunkP4NMZ77Wjs.readConfigFiles; exports.readDocumentAnswer = _chunkP4NMZ77Wjs.readDocumentAnswer; exports.readFill = _chunkP4NMZ77Wjs.readFill; exports.readTemplateAnswer = _chunkP4NMZ77Wjs.readTemplateAnswer; exports.readingOrder = _chunkP4NMZ77Wjs.readingOrder; exports.reduce = _chunkP4NMZ77Wjs.reduce; exports.refineOptions = _chunkP4NMZ77Wjs.refineOptions; exports.refreshedVariables = _chunkP4NMZ77Wjs.refreshedVariables; exports.registerPanel = registerPanel; exports.removeDocumentFromManifest = _chunkP4NMZ77Wjs.removeDocumentFromManifest; exports.removePanel = _chunkP4NMZ77Wjs.removePanel; exports.renameDocumentInManifest = _chunkP4NMZ77Wjs.renameDocumentInManifest; exports.renameMetrics = _chunkP4NMZ77Wjs.renameMetrics; exports.renameVariableInPanels = _chunkP4NMZ77Wjs.renameVariableInPanels; exports.repack = _chunkP4NMZ77Wjs.repack; exports.repeatOptions = _chunkP4NMZ77Wjs.repeatOptions; exports.requiredManifestVersion = _chunkP4NMZ77Wjs.requiredManifestVersion; exports.resizePanel = _chunkP4NMZ77Wjs.resizePanel; exports.resolveColor = _chunkP4NMZ77Wjs.resolveColor; exports.resolveFieldConfig = _chunkP4NMZ77Wjs.resolveFieldConfig; exports.resolveLinks = _chunkP4NMZ77Wjs.resolveLinks; exports.resolveTimezone = _chunkP4NMZ77Wjs.resolveTimezone; exports.resolveUrl = _chunkP4NMZ77Wjs.resolveUrl; exports.resolveVariables = _chunkP4NMZ77Wjs.resolveVariables; exports.revalidateBundle = _chunkP4NMZ77Wjs.revalidateBundle; exports.rowsToMappings = _chunkP4NMZ77Wjs.rowsToMappings; exports.ruleFill = _chunkP4NMZ77Wjs.ruleFill; exports.ruleFiller = _chunkP4NMZ77Wjs.ruleFiller; exports.sameSave = _chunkP4NMZ77Wjs.sameSave; exports.sampleEntries = _chunkP4NMZ77Wjs.sampleEntries; exports.screenDocuments = _chunkP4NMZ77Wjs.screenDocuments; exports.screenOfType = _chunkP4NMZ77Wjs.screenOfType; exports.selectValue = _chunkP4NMZ77Wjs.selectValue; exports.seriesColor = _chunkP4NMZ77Wjs.seriesColor; exports.setHiddenOnPhones = _chunkP4NMZ77Wjs.setHiddenOnPhones; exports.setJsonValue = _chunkP4NMZ77Wjs.setJsonValue; exports.setOption = _chunkP4NMZ77Wjs.setOption; exports.setOptionValue = _chunkP4NMZ77Wjs.setOptionValue; exports.setOverrides = _chunkP4NMZ77Wjs.setOverrides; exports.settleLayout = _chunkP4NMZ77Wjs.settleLayout; exports.snapToGrid = _chunkP4NMZ77Wjs.snapToGrid; exports.splitPath = _chunkP4NMZ77Wjs.splitPath; exports.spokenValue = _chunkP4NMZ77Wjs.spokenValue; exports.startOf = _chunkP4NMZ77Wjs.startOf; exports.stringifyCompact = _chunkP4NMZ77Wjs.stringifyCompact; exports.tabIdFor = _chunkP4NMZ77Wjs.tabIdFor; exports.takesDictation = _chunkP4NMZ77Wjs.takesDictation; exports.templateNeeds = _chunkP4NMZ77Wjs.templateNeeds; exports.templatePrompt = _chunkP4NMZ77Wjs.templatePrompt; exports.textSuggestions = _chunkP4NMZ77Wjs.textSuggestions; exports.thresholdStep = _chunkP4NMZ77Wjs.thresholdStep; exports.timeExprError = _chunkP4NMZ77Wjs.timeExprError; exports.timeField = _chunkP4NMZ77Wjs.timeField; exports.toEntries = _chunkP4NMZ77Wjs.toEntries; exports.toMillis = _chunkP4NMZ77Wjs.toMillis; exports.toSeries = _chunkP4NMZ77Wjs.toSeries; exports.toXYSeries = _chunkP4NMZ77Wjs.toXYSeries; exports.uniqueNames = _chunkP4NMZ77Wjs.uniqueNames; exports.useDashTheme = useDashTheme; exports.useDashboard = useDashboard; exports.useInputForm = useInputForm; exports.usePanelData = usePanelData; exports.validateBundle = _chunkP4NMZ77Wjs.validateBundle; exports.validateDashboard = _chunkP4NMZ77Wjs.validateDashboard; exports.validateManifest = _chunkP4NMZ77Wjs.validateManifest; exports.valueColor = _chunkP4NMZ77Wjs.valueColor; exports.valueText = _chunkP4NMZ77Wjs.valueText; exports.variableDependents = _chunkP4NMZ77Wjs.variableDependents; exports.variableInfo = _chunkP4NMZ77Wjs.variableInfo; exports.variableNameError = _chunkP4NMZ77Wjs.variableNameError; exports.variableOptions = _chunkP4NMZ77Wjs.variableOptions; exports.variableOrder = _chunkP4NMZ77Wjs.variableOrder; exports.variableReferences = _chunkP4NMZ77Wjs.variableReferences; exports.variableUses = _chunkP4NMZ77Wjs.variableUses; exports.variableWithCurrent = _chunkP4NMZ77Wjs.variableWithCurrent; exports.variableWithFlags = _chunkP4NMZ77Wjs.variableWithFlags; exports.variableWithQuery = _chunkP4NMZ77Wjs.variableWithQuery; exports.variableWithType = _chunkP4NMZ77Wjs.variableWithType; exports.visibleVariables = _chunkP4NMZ77Wjs.visibleVariables; exports.webSpeechRecognizer = webSpeechRecognizer; exports.zoomRange = _chunkP4NMZ77Wjs.zoomRange;