@devtable/dashboard 13.31.0 → 13.31.2

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.
@@ -1,10 +1,10 @@
1
1
  var Mg = Object.defineProperty;
2
2
  var Eg = (e, t, n) => t in e ? Mg(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var U = (e, t, n) => (Eg(e, typeof t != "symbol" ? t + "" : t, n), n);
4
- import $, { forwardRef as de, useRef as cr, useEffect as Q, useState as J, useCallback as Fe, useMemo as I, useLayoutEffect as Lg, createElement as pa, useContext as Kn, createContext as Gu, memo as Ag } from "react";
5
- import { TextInput as E, Stack as C, Group as y, Button as M, Text as w, Box as R, Overlay as Pr, Modal as Ge, Tooltip as ve, ActionIcon as re, NativeSelect as nl, Select as q, Divider as O, NumberInput as ue, SimpleGrid as zr, Menu as le, UnstyledButton as Hu, Flex as rn, ColorInput as ur, Center as hr, Badge as dr, CloseButton as Mr, useMantineTheme as Hi, Popover as Zt, ColorSwatch as Vs, ColorPicker as pd, HoverCard as Ke, Checkbox as me, Switch as ut, Table as ot, MultiSelect as ai, Paper as Rg, Code as md, Tabs as _, LoadingOverlay as Or, Alert as Qi, createStyles as Ui, Collapse as Yi, CheckIcon as $g, MANTINE_SIZES as Pg, SegmentedControl as Qu, Anchor as Ns, Pagination as rl, Textarea as Uu, Mark as Yu, Slider as Og, Affix as Fg, Header as Vg, List as Wt, FileInput as Ng, ThemeIcon as Ka, Navbar as Vn, JsonInput as Ku, Drawer as qg, Radio as fd, Accordion as ys, Skeleton as xd, NavLink as _o, AppShell as Xu } from "@mantine/core";
4
+ import $, { forwardRef as de, useRef as cr, useEffect as Q, useState as J, useCallback as Fe, useMemo as I, useLayoutEffect as Lg, createElement as pa, useContext as Yn, createContext as Gu, memo as Ag } from "react";
5
+ import { TextInput as E, Stack as C, Group as y, Button as M, Text as w, Box as R, Overlay as Pr, Modal as Ge, Tooltip as ve, ActionIcon as re, NativeSelect as nl, Select as q, Divider as O, NumberInput as ue, SimpleGrid as zr, Menu as le, UnstyledButton as Hu, Flex as rn, ColorInput as ur, Center as hr, Badge as dr, CloseButton as Mr, useMantineTheme as Hi, Popover as Zt, ColorSwatch as Vs, ColorPicker as pd, HoverCard as Ye, Checkbox as me, Switch as ut, Table as ot, MultiSelect as ai, Paper as Rg, Code as md, Tabs as _, LoadingOverlay as Or, Alert as Qi, createStyles as Ui, Collapse as Ki, CheckIcon as $g, MANTINE_SIZES as Pg, SegmentedControl as Qu, Anchor as Ns, Pagination as rl, Textarea as Uu, Mark as Ku, Slider as Og, Affix as Fg, Header as Vg, List as Wt, FileInput as Ng, ThemeIcon as Ya, Navbar as Vn, JsonInput as Yu, Drawer as qg, Radio as fd, Accordion as ys, Skeleton as xd, NavLink as _o, AppShell as Xu } from "@mantine/core";
6
6
  import { useModals as An, ModalsProvider as Ju } from "@mantine/modals";
7
- import { useBoolean as pt, useCreation as mn, useAsyncEffect as Ki, useRequest as Er, useLatest as gd, usePrevious as Bg, useWhyDidYouUpdate as Zu } from "ahooks";
7
+ import { useBoolean as pt, useCreation as mn, useAsyncEffect as Yi, useRequest as Er, useLatest as gd, usePrevious as Bg, useWhyDidYouUpdate as Zu } from "ahooks";
8
8
  import { toJS as Xn, observable as eh, runInAction as Ai, reaction as At, makeAutoObservable as Xi } from "mobx";
9
9
  import { observer as D } from "mobx-react-lite";
10
10
  import { faker as Wg } from "@faker-js/faker";
@@ -13,7 +13,7 @@ import Hg from "crypto-js";
13
13
  import * as th from "d3-array";
14
14
  import { quantile as Ms } from "d3-array";
15
15
  import V from "dayjs";
16
- import k, { cloneDeepWith as nh, unset as Qg, get as xe, isObject as rh, set as il, omit as Lr, isFunction as Ug, orderBy as Yg, last as ih, defaults as Pe, minBy as Kg, maxBy as Xg, cloneDeep as mt, values as sh, template as sl, throttle as Jg, range as Zg, isEqual as Me, defaultsDeep as lt, keyBy as eb, isEmpty as ah, isNumber as tb, findLastIndex as nb, isString as oh, pick as lh } from "lodash";
16
+ import k, { cloneDeepWith as nh, unset as Qg, get as xe, isObject as rh, set as il, omit as Lr, isFunction as Ug, orderBy as Kg, last as ih, defaults as Pe, minBy as Yg, maxBy as Xg, cloneDeep as mt, values as sh, template as sl, throttle as Jg, range as Zg, isEqual as Me, defaultsDeep as lt, keyBy as eb, isEmpty as ah, isNumber as tb, findLastIndex as nb, isString as oh, pick as lh } from "lodash";
17
17
  import * as ei from "mathjs";
18
18
  import qs from "numbro";
19
19
  import * as rb from "popmotion";
@@ -38,10 +38,10 @@ import Th from "@tiptap/extension-underline";
38
38
  import { useEditor as zh } from "@tiptap/react";
39
39
  import Dh from "@tiptap/starter-kit";
40
40
  import "prosemirror-keymap";
41
- import { createParagraphNear as Wb, deleteSelection as Gb, exitCode as Hb, joinUp as Qb, joinDown as Ub, joinBackward as Yb, joinForward as Kb, lift as Xb, liftEmptyBlock as Jb, newlineInCode as Zb, selectNodeBackward as ey, selectNodeForward as ty, selectParentNode as ny, selectTextblockEnd as ry, selectTextblockStart as iy, setBlockType as yd, wrapIn as sy } from "prosemirror-commands";
41
+ import { createParagraphNear as Wb, deleteSelection as Gb, exitCode as Hb, joinUp as Qb, joinDown as Ub, joinBackward as Kb, joinForward as Yb, lift as Xb, liftEmptyBlock as Jb, newlineInCode as Zb, selectNodeBackward as ey, selectNodeForward as ty, selectParentNode as ny, selectTextblockEnd as ry, selectTextblockStart as iy, setBlockType as yd, wrapIn as sy } from "prosemirror-commands";
42
42
  import { liftListItem as ay, sinkListItem as oy, wrapInList as ly } from "prosemirror-schema-list";
43
43
  import * as cy from "d3-scale";
44
- import * as xt from "echarts/core";
44
+ import * as gt from "echarts/core";
45
45
  import { use as dy } from "echarts/core";
46
46
  import { useForm as Ve, Controller as g, useFieldArray as xa, useWatch as uy } from "react-hook-form";
47
47
  import { DatesProvider as hy, DatePicker as py } from "@mantine/dates";
@@ -63,11 +63,11 @@ import { showNotification as $r, updateNotification as Qy, notifications as Ah }
63
63
  import * as ir from "d3-regression";
64
64
  import { Prism as Un } from "@mantine/prism";
65
65
  import { flexRender as Ws, createColumnHelper as Rh, useReactTable as $h, getCoreRowModel as Ph, getSortedRowModel as Uy } from "@tanstack/react-table";
66
- import { useVirtual as Yy } from "react-virtual";
67
- import Ky, { Option as Xy } from "rc-select";
66
+ import { useVirtual as Ky } from "react-virtual";
67
+ import Yy, { Option as Xy } from "rc-select";
68
68
  import Jy, { SHOW_PARENT as Zy } from "rc-tree-select";
69
69
  import { WidthProvider as Oh, Responsive as Fh } from "react-grid-layout";
70
- import { types as x, cast as En, getRoot as _t, addDisposer as en, getParent as jt, isAlive as _d, flow as Jr, toGenerator as Sr, clone as ev, getSnapshot as Tn, applySnapshot as bt, addMiddleware as tv, getType as nv, detach as So, castToSnapshot as Vh } from "mobx-state-tree";
70
+ import { types as x, cast as En, getRoot as jt, addDisposer as en, getParent as xt, isAlive as _d, flow as Jr, toGenerator as Sr, clone as ev, getSnapshot as Tn, applySnapshot as yt, addMiddleware as tv, getType as nv, detach as So, castToSnapshot as Vh } from "mobx-state-tree";
71
71
  import { arrayToTree as rv } from "performant-array-to-tree";
72
72
  import { saveAs as ya } from "file-saver";
73
73
  import Nh from "dom-to-image-more";
@@ -195,7 +195,7 @@ function Gv() {
195
195
  function N(j) {
196
196
  return j.displayName || "Context";
197
197
  }
198
- function K(j) {
198
+ function Y(j) {
199
199
  if (j == null)
200
200
  return null;
201
201
  if (typeof j.tag == "number" && z("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof j == "function")
@@ -228,11 +228,11 @@ function Gv() {
228
228
  return G(j, j.render, "ForwardRef");
229
229
  case h:
230
230
  var se = j.displayName || null;
231
- return se !== null ? se : K(j.type) || "Memo";
231
+ return se !== null ? se : Y(j.type) || "Memo";
232
232
  case p: {
233
233
  var ke = j, $e = ke._payload, ye = ke._init;
234
234
  try {
235
- return K(ye($e));
235
+ return Y(ye($e));
236
236
  } catch {
237
237
  return null;
238
238
  }
@@ -302,7 +302,7 @@ function Gv() {
302
302
  ie < 0 && z("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
303
303
  }
304
304
  }
305
- var Y = S.ReactCurrentDispatcher, ce;
305
+ var K = S.ReactCurrentDispatcher, ce;
306
306
  function we(j, F, H) {
307
307
  {
308
308
  if (ce === void 0)
@@ -334,7 +334,7 @@ function Gv() {
334
334
  var ke = Error.prepareStackTrace;
335
335
  Error.prepareStackTrace = void 0;
336
336
  var $e;
337
- $e = Y.current, Y.current = null, De();
337
+ $e = K.current, K.current = null, De();
338
338
  try {
339
339
  if (F) {
340
340
  var ye = function() {
@@ -371,23 +371,23 @@ function Gv() {
371
371
  if (On && se && typeof On.stack == "string") {
372
372
  for (var fe = On.stack.split(`
373
373
  `), Tt = se.stack.split(`
374
- `), Ye = fe.length - 1, Je = Tt.length - 1; Ye >= 1 && Je >= 0 && fe[Ye] !== Tt[Je]; )
374
+ `), Ke = fe.length - 1, Je = Tt.length - 1; Ke >= 1 && Je >= 0 && fe[Ke] !== Tt[Je]; )
375
375
  Je--;
376
- for (; Ye >= 1 && Je >= 0; Ye--, Je--)
377
- if (fe[Ye] !== Tt[Je]) {
378
- if (Ye !== 1 || Je !== 1)
376
+ for (; Ke >= 1 && Je >= 0; Ke--, Je--)
377
+ if (fe[Ke] !== Tt[Je]) {
378
+ if (Ke !== 1 || Je !== 1)
379
379
  do
380
- if (Ye--, Je--, Je < 0 || fe[Ye] !== Tt[Je]) {
381
- var Kt = `
382
- ` + fe[Ye].replace(" at new ", " at ");
383
- return j.displayName && Kt.includes("<anonymous>") && (Kt = Kt.replace("<anonymous>", j.displayName)), typeof j == "function" && zt.set(j, Kt), Kt;
380
+ if (Ke--, Je--, Je < 0 || fe[Ke] !== Tt[Je]) {
381
+ var Yt = `
382
+ ` + fe[Ke].replace(" at new ", " at ");
383
+ return j.displayName && Yt.includes("<anonymous>") && (Yt = Yt.replace("<anonymous>", j.displayName)), typeof j == "function" && zt.set(j, Yt), Yt;
384
384
  }
385
- while (Ye >= 1 && Je >= 0);
385
+ while (Ke >= 1 && Je >= 0);
386
386
  break;
387
387
  }
388
388
  }
389
389
  } finally {
390
- He = !1, Y.current = $e, Re(), Error.prepareStackTrace = ke;
390
+ He = !1, K.current = $e, Re(), Error.prepareStackTrace = ke;
391
391
  }
392
392
  var Hr = j ? j.displayName || j.name : "", hd = Hr ? we(Hr) : "";
393
393
  return typeof j == "function" && zt.set(j, hd), hd;
@@ -448,8 +448,8 @@ function Gv() {
448
448
  throw Tt.name = "Invariant Violation", Tt;
449
449
  }
450
450
  fe = j[ye](F, ye, se, H, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
451
- } catch (Ye) {
452
- fe = Ye;
451
+ } catch (Ke) {
452
+ fe = Ke;
453
453
  }
454
454
  fe && !(fe instanceof Error) && (bs(ke), z("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", se || "React class", H, ye, typeof fe), bs(null)), fe instanceof Error && !(fe.message in ed) && (ed[fe.message] = !0, bs(ke), z("Failed %s type: %s", H, fe.message), bs(null));
455
455
  }
@@ -504,8 +504,8 @@ function Gv() {
504
504
  }
505
505
  function bg(j, F) {
506
506
  if (typeof j.ref == "string" && _i.current && F && _i.current.stateNode !== F) {
507
- var H = K(_i.current.type);
508
- Ha[H] || (z('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', K(_i.current.type), j.ref), Ha[H] = !0);
507
+ var H = Y(_i.current.type);
508
+ Ha[H] || (z('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', Y(_i.current.type), j.ref), Ha[H] = !0);
509
509
  }
510
510
  }
511
511
  function yg(j, F) {
@@ -566,9 +566,9 @@ function Gv() {
566
566
  for ($e in F)
567
567
  gs.call(F, $e) && !fg.hasOwnProperty($e) && (ye[$e] = F[$e]);
568
568
  if (j && j.defaultProps) {
569
- var Ye = j.defaultProps;
570
- for ($e in Ye)
571
- ye[$e] === void 0 && (ye[$e] = Ye[$e]);
569
+ var Ke = j.defaultProps;
570
+ for ($e in Ke)
571
+ ye[$e] === void 0 && (ye[$e] = Ke[$e]);
572
572
  }
573
573
  if (fe || Tt) {
574
574
  var Je = typeof j == "function" ? j.displayName || j.name || "Unknown" : j;
@@ -587,13 +587,13 @@ function Gv() {
587
587
  }
588
588
  var Ua;
589
589
  Ua = !1;
590
- function Ya(j) {
590
+ function Ka(j) {
591
591
  return typeof j == "object" && j !== null && j.$$typeof === t;
592
592
  }
593
593
  function od() {
594
594
  {
595
595
  if (Qa.current) {
596
- var j = K(Qa.current.type);
596
+ var j = Y(Qa.current.type);
597
597
  if (j)
598
598
  return `
599
599
 
@@ -636,7 +636,7 @@ Check the top-level render call using <` + H + ">.");
636
636
  return;
637
637
  ld[H] = !0;
638
638
  var se = "";
639
- j && j._owner && j._owner !== Qa.current && (se = " It was passed a child from " + K(j._owner.type) + "."), Gr(j), z('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', H, se), Gr(null);
639
+ j && j._owner && j._owner !== Qa.current && (se = " It was passed a child from " + Y(j._owner.type) + "."), Gr(j), z('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', H, se), Gr(null);
640
640
  }
641
641
  }
642
642
  function dd(j, F) {
@@ -646,15 +646,15 @@ Check the top-level render call using <` + H + ">.");
646
646
  if (Ga(j))
647
647
  for (var H = 0; H < j.length; H++) {
648
648
  var se = j[H];
649
- Ya(se) && cd(se, F);
649
+ Ka(se) && cd(se, F);
650
650
  }
651
- else if (Ya(j))
651
+ else if (Ka(j))
652
652
  j._store && (j._store.validated = !0);
653
653
  else if (j) {
654
654
  var ke = T(j);
655
655
  if (typeof ke == "function" && ke !== j.entries)
656
656
  for (var $e = ke.call(j), ye; !(ye = $e.next()).done; )
657
- Ya(ye.value) && cd(ye.value, F);
657
+ Ka(ye.value) && cd(ye.value, F);
658
658
  }
659
659
  }
660
660
  }
@@ -673,11 +673,11 @@ Check the top-level render call using <` + H + ">.");
673
673
  else
674
674
  return;
675
675
  if (H) {
676
- var se = K(F);
676
+ var se = Y(F);
677
677
  ug(H, j.props, "prop", se, j);
678
678
  } else if (F.PropTypes !== void 0 && !Ua) {
679
679
  Ua = !0;
680
- var ke = K(F);
680
+ var ke = Y(F);
681
681
  z("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", ke || "Unknown");
682
682
  }
683
683
  typeof F.getDefaultProps == "function" && !F.getDefaultProps.isReactClassApproved && z("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
@@ -703,24 +703,24 @@ Check the top-level render call using <` + H + ">.");
703
703
  (j === void 0 || typeof j == "object" && j !== null && Object.keys(j).length === 0) && (fe += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
704
704
  var Tt = wg(ke);
705
705
  Tt ? fe += Tt : fe += od();
706
- var Ye;
707
- j === null ? Ye = "null" : Ga(j) ? Ye = "array" : j !== void 0 && j.$$typeof === t ? (Ye = "<" + (K(j.type) || "Unknown") + " />", fe = " Did you accidentally export a JSX literal instead of a component?") : Ye = typeof j, z("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Ye, fe);
706
+ var Ke;
707
+ j === null ? Ke = "null" : Ga(j) ? Ke = "array" : j !== void 0 && j.$$typeof === t ? (Ke = "<" + (Y(j.type) || "Unknown") + " />", fe = " Did you accidentally export a JSX literal instead of a component?") : Ke = typeof j, z("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Ke, fe);
708
708
  }
709
709
  var Je = jg(j, F, H, ke, $e);
710
710
  if (Je == null)
711
711
  return Je;
712
712
  if (ye) {
713
- var Kt = F.children;
714
- if (Kt !== void 0)
713
+ var Yt = F.children;
714
+ if (Yt !== void 0)
715
715
  if (se)
716
- if (Ga(Kt)) {
717
- for (var Hr = 0; Hr < Kt.length; Hr++)
718
- dd(Kt[Hr], j);
719
- Object.freeze && Object.freeze(Kt);
716
+ if (Ga(Yt)) {
717
+ for (var Hr = 0; Hr < Yt.length; Hr++)
718
+ dd(Yt[Hr], j);
719
+ Object.freeze && Object.freeze(Yt);
720
720
  } else
721
721
  z("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
722
722
  else
723
- dd(Kt, j);
723
+ dd(Yt, j);
724
724
  }
725
725
  return j === i ? Cg(Je) : kg(Je), Je;
726
726
  }
@@ -821,7 +821,7 @@ function pl(e, t) {
821
821
  return console.error(n), n.message;
822
822
  }
823
823
  }
824
- function Yv({
824
+ function Kv({
825
825
  sql: e,
826
826
  pre_process: t
827
827
  }) {
@@ -835,7 +835,7 @@ function Yv({
835
835
  throw console.error(n), n;
836
836
  }
837
837
  }
838
- function Kv(e, t, n) {
838
+ function Yv(e, t, n) {
839
839
  if (!e.trim())
840
840
  return t;
841
841
  try {
@@ -992,11 +992,11 @@ class t_ {
992
992
  return this.getRequest("PUT", t);
993
993
  }
994
994
  }
995
- const Yr = new e_();
995
+ const Kr = new e_();
996
996
  function Bh(e) {
997
- Yr.baseURL !== e.apiBaseURL && (Yr.baseURL = e.apiBaseURL), e.app_id && (Yr.app_id = e.app_id), e.app_secret && (Yr.app_secret = e.app_secret), e.makeQueryENV && (Yr.makeQueryENV = e.makeQueryENV);
997
+ Kr.baseURL !== e.apiBaseURL && (Kr.baseURL = e.apiBaseURL), e.app_id && (Kr.app_id = e.app_id), e.app_secret && (Kr.app_secret = e.app_secret), e.makeQueryENV && (Kr.makeQueryENV = e.makeQueryENV);
998
998
  }
999
- const n_ = new t_(Yr), Nn = n_, Gs = de(function({
999
+ const n_ = new t_(Kr), Nn = n_, Gs = de(function({
1000
1000
  value: t,
1001
1001
  onChange: n,
1002
1002
  ...i
@@ -1877,7 +1877,7 @@ const Uh = {
1877
1877
  script: !0,
1878
1878
  style: !0,
1879
1879
  title: !0
1880
- }, Yh = { ol: !0, ul: !0 }, Hs = 1, Qs = 2, Ri = 4;
1880
+ }, Kh = { ol: !0, ul: !0 }, Hs = 1, Qs = 2, Ri = 4;
1881
1881
  function Cd(e, t, n) {
1882
1882
  return t != null ? (t ? Hs : 0) | (t === "full" ? Qs : 0) : e && e.whitespace == "pre" ? Hs | Qs : n & ~Ri;
1883
1883
  }
@@ -1979,7 +1979,7 @@ class Id {
1979
1979
  // none is found, the element's content nodes are added directly.
1980
1980
  addElement(t, n) {
1981
1981
  let i = t.nodeName.toLowerCase(), s;
1982
- Yh.hasOwnProperty(i) && this.parser.normalizeLists && p_(t);
1982
+ Kh.hasOwnProperty(i) && this.parser.normalizeLists && p_(t);
1983
1983
  let a = this.options.ruleFromNode && this.options.ruleFromNode(t) || (s = this.parser.matchTag(t, this, n));
1984
1984
  if (a ? a.ignore : h_.hasOwnProperty(i))
1985
1985
  this.findInside(t), this.ignoreFallback(t);
@@ -2213,7 +2213,7 @@ class Id {
2213
2213
  function p_(e) {
2214
2214
  for (let t = e.firstChild, n = null; t; t = t.nextSibling) {
2215
2215
  let i = t.nodeType == 1 ? t.nodeName.toLowerCase() : null;
2216
- i && Yh.hasOwnProperty(i) && n ? (n.appendChild(t), t = n) : i == "li" ? n = t : i && (n = null);
2216
+ i && Kh.hasOwnProperty(i) && n ? (n.appendChild(t), t = n) : i == "li" ? n = t : i && (n = null);
2217
2217
  }
2218
2218
  }
2219
2219
  function m_(e, t) {
@@ -2254,15 +2254,15 @@ function g_(e, t) {
2254
2254
  if (e.eq(t[n]))
2255
2255
  return t[n];
2256
2256
  }
2257
- const Kh = 65535, Xh = Math.pow(2, 16);
2257
+ const Yh = 65535, Xh = Math.pow(2, 16);
2258
2258
  function b_(e, t) {
2259
2259
  return e + t * Xh;
2260
2260
  }
2261
2261
  function zd(e) {
2262
- return e & Kh;
2262
+ return e & Yh;
2263
2263
  }
2264
2264
  function y_(e) {
2265
- return (e - (e & Kh)) / Xh;
2265
+ return (e - (e & Yh)) / Xh;
2266
2266
  }
2267
2267
  const Jh = 1, Zh = 2, Ls = 4, ep = 8;
2268
2268
  class Dd {
@@ -2943,11 +2943,11 @@ class We {
2943
2943
  found.
2944
2944
  */
2945
2945
  static findFrom(t, n, i = !1) {
2946
- let s = t.parent.inlineContent ? new at(t) : Kr(t.node(0), t.parent, t.pos, t.index(), n, i);
2946
+ let s = t.parent.inlineContent ? new at(t) : Yr(t.node(0), t.parent, t.pos, t.index(), n, i);
2947
2947
  if (s)
2948
2948
  return s;
2949
2949
  for (let a = t.depth - 1; a >= 0; a--) {
2950
- let o = n < 0 ? Kr(t.node(0), t.node(a), t.before(a + 1), t.index(a), n, i) : Kr(t.node(0), t.node(a), t.after(a + 1), t.index(a) + 1, n, i);
2950
+ let o = n < 0 ? Yr(t.node(0), t.node(a), t.before(a + 1), t.index(a), n, i) : Yr(t.node(0), t.node(a), t.after(a + 1), t.index(a) + 1, n, i);
2951
2951
  if (o)
2952
2952
  return o;
2953
2953
  }
@@ -2968,14 +2968,14 @@ class We {
2968
2968
  exists.
2969
2969
  */
2970
2970
  static atStart(t) {
2971
- return Kr(t, t, 0, 0, 1) || new Wn(t);
2971
+ return Yr(t, t, 0, 0, 1) || new Wn(t);
2972
2972
  }
2973
2973
  /**
2974
2974
  Find the cursor or leaf node selection closest to the end of the
2975
2975
  given document.
2976
2976
  */
2977
2977
  static atEnd(t) {
2978
- return Kr(t, t, t.content.size, t.childCount, -1) || new Wn(t);
2978
+ return Yr(t, t, t.content.size, t.childCount, -1) || new Wn(t);
2979
2979
  }
2980
2980
  /**
2981
2981
  Deserialize the JSON representation of a selection. Must be
@@ -3214,7 +3214,7 @@ const S_ = {
3214
3214
  return new Wn(e);
3215
3215
  }
3216
3216
  };
3217
- function Kr(e, t, n, i, s, a = !1) {
3217
+ function Yr(e, t, n, i, s, a = !1) {
3218
3218
  if (t.inlineContent)
3219
3219
  return at.create(e, n);
3220
3220
  for (let o = i - (s > 0 ? 0 : 1); s > 0 ? o < t.childCount : o >= 0; o += s) {
@@ -3223,7 +3223,7 @@ function Kr(e, t, n, i, s, a = !1) {
3223
3223
  if (!a && Gt.isSelectable(l))
3224
3224
  return Gt.create(e, n - (s < 0 ? l.nodeSize : 0));
3225
3225
  } else {
3226
- let c = Kr(e, l, n + s, s < 0 ? l.childCount : 0, s, a);
3226
+ let c = Yr(e, l, n + s, s < 0 ? l.childCount : 0, s, a);
3227
3227
  if (c)
3228
3228
  return c;
3229
3229
  }
@@ -3676,12 +3676,12 @@ const Q_ = (e = null, t = {}) => ({ editor: n, view: i, tr: s, dispatch: a }) =>
3676
3676
  return o(), !0;
3677
3677
  const l = H_(s.doc, e) || n.state.selection, c = n.state.selection.eq(l);
3678
3678
  return a && (c || s.setSelection(l), c && s.storedMarks && s.setStoredMarks(s.storedMarks), o()), !0;
3679
- }, U_ = (e, t) => (n) => e.every((i, s) => t(i, { ...n, index: s })), Y_ = (e, t) => ({ tr: n, commands: i }) => i.insertContentAt({ from: n.selection.from, to: n.selection.to }, e, t);
3679
+ }, U_ = (e, t) => (n) => e.every((i, s) => t(i, { ...n, index: s })), K_ = (e, t) => ({ tr: n, commands: i }) => i.insertContentAt({ from: n.selection.from, to: n.selection.to }, e, t);
3680
3680
  function Rd(e) {
3681
3681
  const t = `<body>${e}</body>`;
3682
3682
  return new window.DOMParser().parseFromString(t, "text/html").body;
3683
3683
  }
3684
- function Ys(e, t, n) {
3684
+ function Ks(e, t, n) {
3685
3685
  if (n = {
3686
3686
  slice: !0,
3687
3687
  parseOptions: {},
@@ -3690,15 +3690,15 @@ function Ys(e, t, n) {
3690
3690
  try {
3691
3691
  return Array.isArray(e) && e.length > 0 ? Ce.fromArray(e.map((i) => t.nodeFromJSON(i))) : t.nodeFromJSON(e);
3692
3692
  } catch (i) {
3693
- return console.warn("[tiptap warn]: Invalid content.", "Passed value:", e, "Error:", i), Ys("", t, n);
3693
+ return console.warn("[tiptap warn]: Invalid content.", "Passed value:", e, "Error:", i), Ks("", t, n);
3694
3694
  }
3695
3695
  if (typeof e == "string") {
3696
3696
  const i = u_.fromSchema(t);
3697
3697
  return n.slice ? i.parseSlice(Rd(e), n.parseOptions).content : i.parse(Rd(e), n.parseOptions);
3698
3698
  }
3699
- return Ys("", t, n);
3699
+ return Ks("", t, n);
3700
3700
  }
3701
- function K_(e, t, n) {
3701
+ function Y_(e, t, n) {
3702
3702
  const i = e.steps.length - 1;
3703
3703
  if (i < t)
3704
3704
  return;
@@ -3718,7 +3718,7 @@ const X_ = (e) => e.toString().startsWith("<"), J_ = (e, t, n) => ({ tr: i, disp
3718
3718
  updateSelection: !0,
3719
3719
  ...n
3720
3720
  };
3721
- const o = Ys(t, a.schema, {
3721
+ const o = Ks(t, a.schema, {
3722
3722
  parseOptions: {
3723
3723
  preserveWhitespace: "full",
3724
3724
  ...n.parseOptions
@@ -3733,10 +3733,10 @@ const X_ = (e) => e.toString().startsWith("<"), J_ = (e, t, n) => ({ tr: i, disp
3733
3733
  const { parent: p } = i.doc.resolve(l);
3734
3734
  p.isTextblock && !p.type.spec.code && !p.childCount && (l -= 1, c += 1);
3735
3735
  }
3736
- d ? Array.isArray(t) ? i.insertText(t.map((p) => p.text || "").join(""), l, c) : typeof t == "object" && t && t.text ? i.insertText(t.text, l, c) : i.insertText(t, l, c) : i.replaceWith(l, c, o), n.updateSelection && K_(i, i.steps.length - 1, -1);
3736
+ d ? Array.isArray(t) ? i.insertText(t.map((p) => p.text || "").join(""), l, c) : typeof t == "object" && t && t.text ? i.insertText(t.text, l, c) : i.insertText(t, l, c) : i.replaceWith(l, c, o), n.updateSelection && Y_(i, i.steps.length - 1, -1);
3737
3737
  }
3738
3738
  return !0;
3739
- }, Z_ = () => ({ state: e, dispatch: t }) => Qb(e, t), ej = () => ({ state: e, dispatch: t }) => Ub(e, t), tj = () => ({ state: e, dispatch: t }) => Yb(e, t), nj = () => ({ state: e, dispatch: t }) => Kb(e, t);
3739
+ }, Z_ = () => ({ state: e, dispatch: t }) => Qb(e, t), ej = () => ({ state: e, dispatch: t }) => Ub(e, t), tj = () => ({ state: e, dispatch: t }) => Kb(e, t), nj = () => ({ state: e, dispatch: t }) => Yb(e, t);
3740
3740
  function op() {
3741
3741
  return typeof navigator < "u" ? /Mac/.test(navigator.platform) : !1;
3742
3742
  }
@@ -3823,7 +3823,7 @@ const cj = (e, t) => ({ tr: n, state: i, dispatch: s }) => {
3823
3823
  to: e.doc.content.size
3824
3824
  }), hj = () => ({ state: e, dispatch: t }) => ey(e, t), pj = () => ({ state: e, dispatch: t }) => ty(e, t), mj = () => ({ state: e, dispatch: t }) => ny(e, t), fj = () => ({ state: e, dispatch: t }) => ry(e, t), xj = () => ({ state: e, dispatch: t }) => iy(e, t);
3825
3825
  function gj(e, t, n = {}) {
3826
- return Ys(e, t, { slice: !1, parseOptions: n });
3826
+ return Ks(e, t, { slice: !1, parseOptions: n });
3827
3827
  }
3828
3828
  const bj = (e, t = !1, n = {}) => ({ tr: i, editor: s, dispatch: a }) => {
3829
3829
  const { doc: o } = i, l = gj(e, s.schema, n);
@@ -4170,7 +4170,7 @@ var qj = /* @__PURE__ */ Object.freeze({
4170
4170
  first: G_,
4171
4171
  focus: Q_,
4172
4172
  forEach: U_,
4173
- insertContent: Y_,
4173
+ insertContent: K_,
4174
4174
  insertContentAt: J_,
4175
4175
  joinUp: Z_,
4176
4176
  joinDown: ej,
@@ -4390,7 +4390,7 @@ class qi {
4390
4390
  return !1;
4391
4391
  }
4392
4392
  }
4393
- const Ks = "function color({ variables }, { filters, context }, utils) {", cp = "}", Bj = [Ks, ' return "red";', cp], Wj = Bj.join(`
4393
+ const Ys = "function color({ variables }, { filters, context }, utils) {", cp = "}", Bj = [Ys, ' return "red";', cp], Wj = Bj.join(`
4394
4394
  `);
4395
4395
  function Gj(e) {
4396
4396
  if (!e)
@@ -4405,7 +4405,7 @@ function Gj(e) {
4405
4405
  allowMultiline: !0
4406
4406
  }];
4407
4407
  }
4408
- const Hj = (e) => e && e.replace(Ks, "").replace(/(.*)\}$/, "$1"), dp = (e) => !e || e.startsWith(Ks) ? e : [Ks, e, cp].join(`
4408
+ const Hj = (e) => e && e.replace(Ys, "").replace(/(.*)\}$/, "$1"), dp = (e) => !e || e.startsWith(Ys) ? e : [Ys, e, cp].join(`
4409
4409
  `), jl = "dyn_color_", Qj = new RegExp(`^(?!${jl})(.+)$`);
4410
4410
  function up(e) {
4411
4411
  return e && e.replace(Qj, `${jl}$1`);
@@ -4427,7 +4427,7 @@ function Uj(e, t, n) {
4427
4427
  });
4428
4428
  }), i;
4429
4429
  }
4430
- const Ci = "data-value", Yj = Ci, pp = "dynamicColor", mp = qi.create({
4430
+ const Ci = "data-value", Kj = Ci, pp = "dynamicColor", mp = qi.create({
4431
4431
  name: pp,
4432
4432
  addAttributes() {
4433
4433
  return {
@@ -4470,7 +4470,7 @@ const Ci = "data-value", Yj = Ci, pp = "dynamicColor", mp = qi.create({
4470
4470
  }) => e.unsetMark(this.name)
4471
4471
  };
4472
4472
  }
4473
- }), Kj = ({
4473
+ }), Yj = ({
4474
4474
  value: e,
4475
4475
  onChange: t,
4476
4476
  onMount: n
@@ -4582,12 +4582,12 @@ const Ci = "data-value", Yj = Ci, pp = "dynamicColor", mp = qi.create({
4582
4582
  MULTI_LINE_HIGHLIGHT_CLASS: "editableArea--multi-line"
4583
4583
  }, Jj = function(e, t, n) {
4584
4584
  const i = n.Range, s = function(W, G) {
4585
- const N = W.range, K = G.range;
4586
- if (N[0] < K[0] || N[0] === K[0] && N[3] < K[1])
4585
+ const N = W.range, Y = G.range;
4586
+ if (N[0] < Y[0] || N[0] === Y[0] && N[3] < Y[1])
4587
4587
  return -1;
4588
4588
  }, a = function(W, G) {
4589
4589
  const N = G.split(`
4590
- `), K = N.length, ne = [];
4590
+ `), Y = N.length, ne = [];
4591
4591
  return W.forEach(function(ie, he) {
4592
4592
  if (ie === 0)
4593
4593
  throw new Error("Range values cannot be zero");
@@ -4596,8 +4596,8 @@ const Ci = "data-value", Yj = Ci, pp = "dynamicColor", mp = qi.create({
4596
4596
  {
4597
4597
  if (ie < 0)
4598
4598
  throw new Error("Start Line of Range cannot be negative");
4599
- if (ie > K)
4600
- throw new Error("Provided Start Line(" + ie + ") is out of bounds. Max Lines in content is " + K);
4599
+ if (ie > Y)
4600
+ throw new Error("Provided Start Line(" + ie + ") is out of bounds. Max Lines in content is " + Y);
4601
4601
  ne[he] = ie;
4602
4602
  }
4603
4603
  break;
@@ -4617,11 +4617,11 @@ const Ci = "data-value", Yj = Ci, pp = "dynamicColor", mp = qi.create({
4617
4617
  {
4618
4618
  let oe = ie;
4619
4619
  if (oe < 0) {
4620
- if (oe = K - Math.abs(ie), oe < 0)
4621
- throw new Error("Provided End Line(" + ie + ") is out of bounds. Max Lines in content is " + K);
4620
+ if (oe = Y - Math.abs(ie), oe < 0)
4621
+ throw new Error("Provided End Line(" + ie + ") is out of bounds. Max Lines in content is " + Y);
4622
4622
  oe < ne[0] && console.warn("Provided End Line(" + ie + ") is less than the start Line, the Restriction may not behave as expected");
4623
- } else if (ie > K)
4624
- throw new Error("Provided End Line(" + ie + ") is out of bounds. Max Lines in content is " + K);
4623
+ } else if (ie > Y)
4624
+ throw new Error("Provided End Line(" + ie + ") is out of bounds. Max Lines in content is " + Y);
4625
4625
  ne[he] = oe;
4626
4626
  }
4627
4627
  break;
@@ -4643,9 +4643,9 @@ const Ci = "data-value", Yj = Ci, pp = "dynamicColor", mp = qi.create({
4643
4643
  let o = so(t).sort(s);
4644
4644
  const l = function(W) {
4645
4645
  const G = e.getValue();
4646
- W.forEach(function(N, K) {
4646
+ W.forEach(function(N, Y) {
4647
4647
  const ne = a(N.range, G), ie = ne[0], he = ne[1], oe = ne[2], Se = ne[3];
4648
- N._originalRange = ne.slice(), N.range = new i(ie, he, oe, Se), N.index = K, N.allowMultiline || (N.allowMultiline = i.spansMultipleLines(N.range)), N.label || (N.label = `[${ie},${he} -> ${oe}${Se}]`);
4648
+ N._originalRange = ne.slice(), N.range = new i(ie, he, oe, Se), N.index = Y, N.allowMultiline || (N.allowMultiline = i.spansMultipleLines(N.range)), N.label || (N.label = `[${ie},${he} -> ${oe}${Se}]`);
4649
4649
  });
4650
4650
  }, c = function() {
4651
4651
  return o.reduce(function(W, G) {
@@ -4663,27 +4663,27 @@ const Ci = "data-value", Yj = Ci, pp = "dynamicColor", mp = qi.create({
4663
4663
  }, u = function(W, G) {
4664
4664
  if (typeof W == "object" && !Array.isArray(W)) {
4665
4665
  G = typeof G == "boolean" ? G : !1;
4666
- const N = o.reduce(function(K, ne) {
4667
- return ne.label && (K[ne.label] = ne), K;
4666
+ const N = o.reduce(function(Y, ne) {
4667
+ return ne.label && (Y[ne.label] = ne), Y;
4668
4668
  }, {});
4669
- for (let K in W) {
4670
- const ne = N[K];
4669
+ for (let Y in W) {
4670
+ const ne = N[Y];
4671
4671
  if (ne) {
4672
- const ie = W[K];
4672
+ const ie = W[Y];
4673
4673
  if (Z(ne, ie))
4674
- throw new Error("Multiline change is not allowed for " + K);
4674
+ throw new Error("Multiline change is not allowed for " + Y);
4675
4675
  const he = so(ne.range);
4676
4676
  if (he.endLine = he.startLine + ie.split(`
4677
4677
  `).length - 1, he.endColumn = ie.split(`
4678
4678
  `).pop().length, ae(ne, ie, he))
4679
- throw new Error("Change is invalidated by validate function of " + K);
4679
+ throw new Error("Change is invalidated by validate function of " + Y);
4680
4680
  e.applyEdits([{
4681
4681
  forceMoveMarkers: !!G,
4682
4682
  range: ne.range,
4683
4683
  text: ie
4684
4684
  }]);
4685
4685
  } else
4686
- console.error("No restriction found for " + K);
4686
+ console.error("No restriction found for " + Y);
4687
4687
  }
4688
4688
  } else
4689
4689
  throw new Error("Value must be an object");
@@ -4691,10 +4691,10 @@ const Ci = "data-value", Yj = Ci, pp = "dynamicColor", mp = qi.create({
4691
4691
  return e._restrictionChangeListener.dispose(), window.removeEventListener("error", L), delete e.editInRestrictedArea, delete e.disposeRestrictions, delete e.getValueInEditableRanges, delete e.updateValueInEditableRanges, delete e.updateRestrictions, delete e.getCurrentEditableRanges, delete e.toggleHighlightOfEditableAreas, delete e._hasHighlight, delete e._isRestrictedModel, delete e._isCursorAtCheckPoint, delete e._currentCursorPositions, delete e._editableRangeChangeListener, delete e._restrictionChangeListener, delete e._oldDecorations, delete e._oldDecorationsSource, e;
4692
4692
  }, p = function(W) {
4693
4693
  W.some(function(G) {
4694
- const N = G.lineNumber, K = G.column, ne = o.length;
4694
+ const N = G.lineNumber, Y = G.column, ne = o.length;
4695
4695
  for (let ie = 0; ie < ne; ie++) {
4696
4696
  const he = o[ie].range;
4697
- if (he.startLineNumber === N && he.startColumn === K || he.endLineNumber === N && he.endColumn === K)
4697
+ if (he.startLineNumber === N && he.startColumn === Y || he.endLineNumber === N && he.endColumn === Y)
4698
4698
  return e.pushStackElement(), !0;
4699
4699
  }
4700
4700
  });
@@ -4702,8 +4702,8 @@ const Ci = "data-value", Yj = Ci, pp = "dynamicColor", mp = qi.create({
4702
4702
  typeof W == "function" && e._editableRangeChangeListener.push(W);
4703
4703
  }, f = function(W, G) {
4704
4704
  const N = c();
4705
- e._editableRangeChangeListener.forEach(function(K) {
4706
- K.call(e, W, G, N);
4705
+ e._editableRangeChangeListener.forEach(function(Y) {
4706
+ Y.call(e, W, G, N);
4707
4707
  });
4708
4708
  }, b = function() {
4709
4709
  return Promise.resolve().then(function() {
@@ -4711,48 +4711,48 @@ const Ci = "data-value", Yj = Ci, pp = "dynamicColor", mp = qi.create({
4711
4711
  W.range = e.getDecorationRange(W.id);
4712
4712
  }));
4713
4713
  });
4714
- }, T = function(W, G, N, K, ne, ie) {
4714
+ }, T = function(W, G, N, Y, ne, ie) {
4715
4715
  let he = G.endLineNumber, oe = G.endColumn;
4716
- W.prevRange = G, W.range = G.setEndPosition(N, K);
4716
+ W.prevRange = G, W.range = G.setEndPosition(N, Y);
4717
4717
  const Se = o.length;
4718
4718
  let _e = ne.length;
4719
- const je = K - oe, dt = N - he, nt = e._currentCursorPositions || [], wn = nt.length;
4719
+ const je = Y - oe, dt = N - he, nt = e._currentCursorPositions || [], wn = nt.length;
4720
4720
  if (_e !== wn && (ne = ne.filter(function(De) {
4721
4721
  const Re = De.range;
4722
- for (let Y = 0; Y < wn; Y++) {
4723
- const ce = nt[Y];
4722
+ for (let K = 0; K < wn; K++) {
4723
+ const ce = nt[K];
4724
4724
  if (Re.startLineNumber === ce.startLineNumber && Re.endLineNumber === ce.endLineNumber && Re.startColumn === ce.startColumn && Re.endColumn === ce.endColumn)
4725
4725
  return !0;
4726
4726
  }
4727
4727
  return !1;
4728
4728
  }), _e = ne.length), dt !== 0) {
4729
4729
  for (let De = W.index + 1; De < Se; De++) {
4730
- const Re = o[De], Y = Re.range;
4731
- he === Y.startLineNumber && (Y.startColumn += je), he === Y.endLineNumber && (Y.endColumn += je), Y.startLineNumber += dt, Y.endLineNumber += dt, Re.range = Y;
4730
+ const Re = o[De], K = Re.range;
4731
+ he === K.startLineNumber && (K.startColumn += je), he === K.endLineNumber && (K.endColumn += je), K.startLineNumber += dt, K.endLineNumber += dt, Re.range = K;
4732
4732
  }
4733
4733
  for (let De = ie + 1; De < _e; De++) {
4734
- const Re = ne[De], Y = Re.range, ce = Y.toString(), we = rangeMap[ce];
4735
- delete rangeMap[ce], he === Y.startLineNumber && (Y.startColumn += je), he === Y.endLineNumber && (Y.endColumn += je), Y.startLineNumber += dt, Y.endLineNumber += dt, Re.range = Y, rangeMap[Y.toString()] = we;
4734
+ const Re = ne[De], K = Re.range, ce = K.toString(), we = rangeMap[ce];
4735
+ delete rangeMap[ce], he === K.startLineNumber && (K.startColumn += je), he === K.endLineNumber && (K.endColumn += je), K.startLineNumber += dt, K.endLineNumber += dt, Re.range = K, rangeMap[K.toString()] = we;
4736
4736
  }
4737
4737
  } else {
4738
4738
  for (let De = W.index + 1; De < Se; De++) {
4739
- const Re = o[De], Y = Re.range;
4740
- if (Y.startLineNumber > he)
4739
+ const Re = o[De], K = Re.range;
4740
+ if (K.startLineNumber > he)
4741
4741
  break;
4742
- Y.startColumn += je, Y.endColumn += je, Re.range = Y;
4742
+ K.startColumn += je, K.endColumn += je, Re.range = K;
4743
4743
  }
4744
4744
  for (let De = ie + 1; De < _e; De++) {
4745
- const Re = ne[De], Y = Re.range, ce = Y.toString(), we = rangeMap[ce];
4746
- if (delete rangeMap[ce], Y.startLineNumber > he) {
4747
- rangeMap[Y.toString()] = we;
4745
+ const Re = ne[De], K = Re.range, ce = K.toString(), we = rangeMap[ce];
4746
+ if (delete rangeMap[ce], K.startLineNumber > he) {
4747
+ rangeMap[K.toString()] = we;
4748
4748
  break;
4749
4749
  } else
4750
- Y.startColumn += je, Y.endColumn += je, Re.range = Y, rangeMap[Y.toString()] = we;
4750
+ K.startColumn += je, K.endColumn += je, Re.range = K, rangeMap[K.toString()] = we;
4751
4751
  }
4752
4752
  }
4753
4753
  }, S = function(W, G) {
4754
- const N = {}, K = W.range;
4755
- return W.text === "" ? N.isDeletion = !0 : K.startLineNumber === K.endLineNumber && K.startColumn === K.endColumn ? N.isAddition = !0 : N.isReplacement = !0, N.startLineOfRange = K.startLineNumber === G.startLineNumber, N.startColumnOfRange = K.startColumn === G.startColumn, N.endLineOfRange = K.endLineNumber === G.endLineNumber, N.endColumnOfRange = K.endColumn === G.endColumn, N.middleLineOfRange = !N.startLineOfRange && !N.endLineOfRange, G.startLineNumber === G.endLineNumber ? N.rangeIsSingleLine = !0 : N.rangeIsMultiLine = !0, N;
4754
+ const N = {}, Y = W.range;
4755
+ return W.text === "" ? N.isDeletion = !0 : Y.startLineNumber === Y.endLineNumber && Y.startColumn === Y.endColumn ? N.isAddition = !0 : N.isReplacement = !0, N.startLineOfRange = Y.startLineNumber === G.startLineNumber, N.startColumnOfRange = Y.startColumn === G.startColumn, N.endLineOfRange = Y.endLineNumber === G.endLineNumber, N.endColumnOfRange = Y.endColumn === G.endColumn, N.middleLineOfRange = !N.startLineOfRange && !N.endLineOfRange, G.startLineNumber === G.endLineNumber ? N.rangeIsSingleLine = !0 : N.rangeIsMultiLine = !0, N;
4756
4756
  }, z = function(W) {
4757
4757
  o = so(W).sort(s), l(o);
4758
4758
  }, A = function() {
@@ -4796,29 +4796,29 @@ const Ci = "data-value", Yj = Ci, pp = "dynamicColor", mp = qi.create({
4796
4796
  if (e._isRestrictedValueValid = !0, G && e.editInRestrictedArea)
4797
4797
  e.editInRestrictedArea && (e._isRestrictedValueValid = !1);
4798
4798
  else {
4799
- const N = W.changes.sort(s), K = {}, ne = o.length;
4799
+ const N = W.changes.sort(s), Y = {}, ne = o.length;
4800
4800
  if (N.every(function(he) {
4801
4801
  const oe = he.range, Se = oe.toString();
4802
- K[Se] = null;
4802
+ Y[Se] = null;
4803
4803
  for (let _e = 0; _e < ne; _e++) {
4804
4804
  const je = o[_e];
4805
4805
  if (je.range.containsRange(oe))
4806
- return Z(je, he.text) ? !1 : (K[Se] = je, !0);
4806
+ return Z(je, he.text) ? !1 : (Y[Se] = je, !0);
4807
4807
  }
4808
4808
  return !1;
4809
4809
  })) {
4810
4810
  N.forEach(function(Se, _e) {
4811
- const je = Se.range, dt = K[je.toString()], nt = dt.range, wn = Se.text || "", De = (wn.match(/\n/g) || []).length, Re = wn.split(/\n/g).pop().length, Y = je.endLineNumber - je.startLineNumber, ce = je.endColumn - je.startColumn;
4811
+ const je = Se.range, dt = Y[je.toString()], nt = dt.range, wn = Se.text || "", De = (wn.match(/\n/g) || []).length, Re = wn.split(/\n/g).pop().length, K = je.endLineNumber - je.startLineNumber, ce = je.endColumn - je.startColumn;
4812
4812
  let we = nt.endLineNumber, He = nt.endColumn, zt = 0;
4813
4813
  (nt.endLineNumber === je.startLineNumber || nt.endLineNumber === je.endLineNumber) && (zt += nt.endColumn - je.startColumn + 1);
4814
4814
  const Ue = S(Se, nt);
4815
- dt.lastInfo = Ue, (Ue.isAddition || Ue.isReplacement) && (Ue.rangeIsSingleLine && (De === 0 ? He += Re : (we += De, Ue.startColumnOfRange ? He += Re : Ue.endColumnOfRange ? He = Re + 1 : He = Re + zt)), Ue.rangeIsMultiLine && (we += De, Ue.endLineOfRange && (De === 0 ? He += Re : He = zt + Re))), (Ue.isDeletion || Ue.isReplacement) && (Ue.rangeIsSingleLine && (He -= ce), Ue.rangeIsMultiLine && (Ue.endLineOfRange ? (we -= Y, He -= ce) : we -= Y)), T(dt, nt, we, He, N, _e);
4815
+ dt.lastInfo = Ue, (Ue.isAddition || Ue.isReplacement) && (Ue.rangeIsSingleLine && (De === 0 ? He += Re : (we += De, Ue.startColumnOfRange ? He += Re : Ue.endColumnOfRange ? He = Re + 1 : He = Re + zt)), Ue.rangeIsMultiLine && (we += De, Ue.endLineOfRange && (De === 0 ? He += Re : He = zt + Re))), (Ue.isDeletion || Ue.isReplacement) && (Ue.rangeIsSingleLine && (He -= ce), Ue.rangeIsMultiLine && (Ue.endLineOfRange ? (we -= K, He -= ce) : we -= K)), T(dt, nt, we, He, N, _e);
4816
4816
  });
4817
4817
  const he = e.getValueInEditableRanges(), oe = {};
4818
- for (let Se in K) {
4819
- const _e = K[Se], je = _e.range, dt = _e.label || je.toString(), nt = he[dt];
4818
+ for (let Se in Y) {
4819
+ const _e = Y[Se], je = _e.range, dt = _e.label || je.toString(), nt = he[dt];
4820
4820
  if (ae(_e, nt, je)) {
4821
- P(K), b();
4821
+ P(Y), b();
4822
4822
  return;
4823
4823
  }
4824
4824
  oe[dt] = nt;
@@ -5040,7 +5040,7 @@ const li = de(({
5040
5040
  flexGrow: 1
5041
5041
  }, children: [
5042
5042
  f && /* @__PURE__ */ r.jsx(Pr, { center: !0, color: "#fff", opacity: 0.5, children: /* @__PURE__ */ r.jsx(M, { color: "blue", radius: "xl", onClick: h, children: o("common.actions.init_with_default") }) }),
5043
- /* @__PURE__ */ r.jsx(Kj, { value: l, onChange: c, onMount: p })
5043
+ /* @__PURE__ */ r.jsx(Yj, { value: l, onChange: c, onMount: p })
5044
5044
  ] })
5045
5045
  ] });
5046
5046
  }), wl = de(({
@@ -5088,7 +5088,7 @@ const li = de(({
5088
5088
  }) => {
5089
5089
  const {
5090
5090
  t
5091
- } = v(), n = e.getAttributes(pp)[Yj] ?? "", i = dp(n), s = Gj(n);
5091
+ } = v(), n = e.getAttributes(pp)[Kj] ?? "", i = dp(n), s = Gj(n);
5092
5092
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
5093
5093
  /* @__PURE__ */ r.jsx(wl, { title: t("rich_text.dynamic_color.edit"), label: "", triggerLabel: "", value: i, onChange: (a) => {
5094
5094
  a ? e.chain().focus().setDynamicColor(a).run() : e.chain().focus().unsetDynamicColor().run();
@@ -5362,7 +5362,7 @@ const rt = {
5362
5362
  }
5363
5363
  };
5364
5364
  function uw() {
5365
- xt.registerTheme("merico-light", {
5365
+ gt.registerTheme("merico-light", {
5366
5366
  color: Object.values(Gn.graphics.multiple),
5367
5367
  visualMap: {
5368
5368
  color: Object.values(Gn.graphics.depth).reverse()
@@ -5974,7 +5974,7 @@ function lo({ x: e, y: t }, n) {
5974
5974
  }
5975
5975
  var Hp = /* @__PURE__ */ ((e) => (e.Horizontal = "x", e.Vertical = "y", e))(Hp || {}), Qp = Object.values(Hp), Rw = Object.create, Al = Object.defineProperty, $w = Object.getOwnPropertyDescriptor, Ud = Object.getOwnPropertySymbols, Pw = Object.prototype.hasOwnProperty, Ow = Object.prototype.propertyIsEnumerable, Up = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), fi = (e) => {
5976
5976
  throw TypeError(e);
5977
- }, Fw = (e, t, n) => t in e ? Al(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Yd = (e, t) => Al(e, "name", { value: t, configurable: !0 }), Yp = (e, t) => {
5977
+ }, Fw = (e, t, n) => t in e ? Al(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Kd = (e, t) => Al(e, "name", { value: t, configurable: !0 }), Kp = (e, t) => {
5978
5978
  var n = {};
5979
5979
  for (var i in e)
5980
5980
  Pw.call(e, i) && t.indexOf(i) < 0 && (n[i] = e[i]);
@@ -5985,17 +5985,17 @@ var Hp = /* @__PURE__ */ ((e) => (e.Horizontal = "x", e.Vertical = "y", e))(Hp |
5985
5985
  }, ka = (e) => {
5986
5986
  var t;
5987
5987
  return [, , , Rw((t = e == null ? void 0 : e[Up("metadata")]) != null ? t : null)];
5988
- }, Kp = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Ti = (e) => e !== void 0 && typeof e != "function" ? fi("Function expected") : e, Vw = (e, t, n, i, s) => ({ kind: Kp[e], name: t, metadata: i, addInitializer: (a) => n._ ? fi("Already initialized") : s.push(Ti(a || null)) }), ss = (e, t) => Fw(t, Up("metadata"), e[3]), Oe = (e, t, n, i) => {
5988
+ }, Yp = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Ti = (e) => e !== void 0 && typeof e != "function" ? fi("Function expected") : e, Vw = (e, t, n, i, s) => ({ kind: Yp[e], name: t, metadata: i, addInitializer: (a) => n._ ? fi("Already initialized") : s.push(Ti(a || null)) }), ss = (e, t) => Fw(t, Up("metadata"), e[3]), Oe = (e, t, n, i) => {
5989
5989
  for (var s = 0, a = e[t >> 1], o = a && a.length; s < o; s++)
5990
5990
  t & 1 ? a[s].call(n) : i = a[s].call(n, i);
5991
5991
  return i;
5992
5992
  }, Ft = (e, t, n, i, s, a) => {
5993
- var o, l, c, d, u, h = t & 7, p = !!(t & 8), m = !!(t & 16), f = h > 3 ? e.length + 1 : h ? p ? 1 : 2 : 0, b = Kp[h + 5], T = h > 3 && (e[f - 1] = []), S = e[f] || (e[f] = []), z = h && (!m && !p && (s = s.prototype), h < 5 && (h > 3 || !m) && $w(h < 4 ? s : { get [n]() {
5993
+ var o, l, c, d, u, h = t & 7, p = !!(t & 8), m = !!(t & 16), f = h > 3 ? e.length + 1 : h ? p ? 1 : 2 : 0, b = Yp[h + 5], T = h > 3 && (e[f - 1] = []), S = e[f] || (e[f] = []), z = h && (!m && !p && (s = s.prototype), h < 5 && (h > 3 || !m) && $w(h < 4 ? s : { get [n]() {
5994
5994
  return ea(this, a);
5995
5995
  }, set [n](L) {
5996
5996
  return Ao(this, a, L);
5997
5997
  } }, n));
5998
- h ? m && h < 4 && Yd(a, (h > 2 ? "set " : h > 1 ? "get " : "") + n) : Yd(s, n);
5998
+ h ? m && h < 4 && Kd(a, (h > 2 ? "set " : h > 1 ? "get " : "") + n) : Kd(s, n);
5999
5999
  for (var A = i.length - 1; A >= 0; A--)
6000
6000
  d = Vw(h, n, c = {}, e[3], S), h && (d.static = p, d.private = m, u = d.access = { has: m ? (L) => Nw(s, L) : (L) => n in L }, h ^ 3 && (u.get = m ? (L) => (h ^ 1 ? ea : qw)(L, s, h ^ 4 ? a : z.get) : (L) => L[n]), h > 2 && (u.set = m ? (L, P) => Ao(L, s, P, h ^ 4 ? a : z.set) : (L, P) => L[n] = P)), l = (0, i[A])(h ? h < 4 ? m ? a : z[b] : h > 4 ? void 0 : { get: z.get, set: z.set } : s, d), c._ = 1, h ^ 4 || l === void 0 ? Ti(l) && (h > 4 ? T.unshift(l) : h ? m ? a = l : z[b] = l : s = l) : typeof l != "object" || l === null ? fi("Object expected") : (Ti(o = l.get) && (z.get = o), Ti(o = l.set) && (z.set = o), Ti(o = l.init) && T.unshift(o));
6001
6001
  return h || ss(e, s), z && Al(s, n, z), m ? h ^ 4 ? a : z : s;
@@ -6132,7 +6132,7 @@ Ft(Dt, 4, "disabled", em, qr, Vl);
6132
6132
  ss(Dt, qr);
6133
6133
  var im, sm, am, Ro, zi, zn, Nl, ql, os = class extends (Ro = qr, am = [qe], sm = [qe], im = [Zs], Ro) {
6134
6134
  constructor(t, n) {
6135
- var i = t, { modifiers: s, type: a, sensors: o } = i, l = Yp(i, ["modifiers", "type", "sensors"]);
6135
+ var i = t, { modifiers: s, type: a, sensors: o } = i, l = Kp(i, ["modifiers", "type", "sensors"]);
6136
6136
  super(l, n), Oe(zn, 5, this), Bt(this, zi), Bt(this, Nl, Oe(zn, 8, this)), Oe(zn, 11, this), Bt(this, ql, Oe(zn, 12, this, "idle")), Oe(zn, 15, this), this.type = a, this.sensors = o, this.modifiers = s;
6137
6137
  }
6138
6138
  set modifiers(t) {
@@ -6170,7 +6170,7 @@ var om, lm, cm, dm, um, hm, $o, it, Bl, Wl, Gl, Hl, Ql, fr = class extends ($o =
6170
6170
  collisionDetector: a,
6171
6171
  collisionPriority: o = 2,
6172
6172
  type: l
6173
- } = i, c = Yp(i, [
6173
+ } = i, c = Kp(i, [
6174
6174
  "accept",
6175
6175
  "collisionDetector",
6176
6176
  "collisionPriority",
@@ -6289,7 +6289,7 @@ function gm(e) {
6289
6289
  function ls(e) {
6290
6290
  return e ? Ul(e) ? e.document : fm(e) ? xm(e) ? e : gm(e) ? e.ownerDocument : document : document : document;
6291
6291
  }
6292
- function Yw(e) {
6292
+ function Kw(e) {
6293
6293
  const { documentElement: t } = ls(e), n = t.clientWidth, i = t.clientHeight;
6294
6294
  return {
6295
6295
  top: 0,
@@ -6300,24 +6300,24 @@ function Yw(e) {
6300
6300
  height: i
6301
6301
  };
6302
6302
  }
6303
- function Kw(e) {
6303
+ function Yw(e) {
6304
6304
  const t = "input, textarea, select, canvas, [contenteditable]", n = e.cloneNode(!0), i = Array.from(e.querySelectorAll(t));
6305
6305
  return Array.from(n.querySelectorAll(t)).forEach((a, o) => {
6306
6306
  const l = i[o];
6307
- if (Kd(a) && Kd(l) && (a.type !== "file" && (a.value = l.value), a.type === "radio" && a.name && (a.name = `Cloned__${a.name}`)), a instanceof HTMLCanvasElement && l instanceof HTMLCanvasElement && l.width > 0 && l.height > 0) {
6307
+ if (Yd(a) && Yd(l) && (a.type !== "file" && (a.value = l.value), a.type === "radio" && a.name && (a.name = `Cloned__${a.name}`)), a instanceof HTMLCanvasElement && l instanceof HTMLCanvasElement && l.width > 0 && l.height > 0) {
6308
6308
  const c = a.getContext("2d");
6309
6309
  c == null || c.drawImage(l, 0, 0);
6310
6310
  }
6311
6311
  }), n;
6312
6312
  }
6313
- function Kd(e) {
6313
+ function Yd(e) {
6314
6314
  return "value" in e;
6315
6315
  }
6316
6316
  function ni(e) {
6317
6317
  return "style" in e && e.style instanceof xi(e).CSSStyleDeclaration;
6318
6318
  }
6319
6319
  function Xw(e, t = !1, n) {
6320
- const i = Kw(e);
6320
+ const i = Yw(e);
6321
6321
  if (ni(i) && (t || i.style.setProperty("opacity", "0")), i.setAttribute("inert", "true"), i.setAttribute("tab-index", "-1"), i.setAttribute("aria-hidden", "true"), n)
6322
6322
  for (const [s, a] of Object.entries(n))
6323
6323
  i.setAttribute(s, a);
@@ -6355,7 +6355,7 @@ function Xd(e) {
6355
6355
  return !Uw || !e ? !1 : e === ls(e).scrollingElement;
6356
6356
  }
6357
6357
  function ym(e) {
6358
- const t = Xd(e) ? Yw(e) : mm(e), n = Xd(e) ? {
6358
+ const t = Xd(e) ? Kw(e) : mm(e), n = Xd(e) ? {
6359
6359
  height: window.innerHeight,
6360
6360
  width: window.innerWidth
6361
6361
  } : {
@@ -6710,7 +6710,7 @@ var m0 = Object.create, km = Object.defineProperty, f0 = Object.defineProperties
6710
6710
  }, Ca = (e) => {
6711
6711
  var t;
6712
6712
  return [, , , m0((t = e == null ? void 0 : e[Tm("metadata")]) != null ? t : null)];
6713
- }, Mm = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Di = (e) => e !== void 0 && typeof e != "function" ? cs("Function expected") : e, y0 = (e, t, n, i, s) => ({ kind: Mm[e], name: t, metadata: i, addInitializer: (a) => n._ ? cs("Already initialized") : s.push(Di(a || null)) }), Ia = (e, t) => Oo(t, Tm("metadata"), e[3]), vt = (e, t, n, i) => {
6713
+ }, Mm = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Di = (e) => e !== void 0 && typeof e != "function" ? cs("Function expected") : e, y0 = (e, t, n, i, s) => ({ kind: Mm[e], name: t, metadata: i, addInitializer: (a) => n._ ? cs("Already initialized") : s.push(Di(a || null)) }), Ia = (e, t) => Oo(t, Tm("metadata"), e[3]), _t = (e, t, n, i) => {
6714
6714
  for (var s = 0, a = e[t >> 1], o = a && a.length; s < o; s++)
6715
6715
  t & 1 ? a[s].call(n) : i = a[s].call(n, i);
6716
6716
  return i;
@@ -6813,7 +6813,7 @@ var I0 = class extends sn {
6813
6813
  }
6814
6814
  });
6815
6815
  }
6816
- }, Lm = "data-dnd-", yt = "--dnd-", rr = `${Lm}dragging`, z0 = `[${rr}] {position: fixed !important; pointer-events: none !important; touch-action: none !important; z-index: calc(infinity); will-change: transform;top: var(${yt}top, 0px) !important;left: var(${yt}left, 0px) !important;width: var(${yt}width, auto) !important;height: var(${yt}height, auto) !important;}[${rr}] *{pointer-events: none !important;}[${rr}][style*="${yt}translate"] {translate: var(${yt}translate) !important;}[style*="${yt}transition"] {transition: var(${yt}transition) !important;}*:where([${rr}][popover]){overflow:visible;background:var(${yt}background);border:var(${yt}border);margin:unset;padding:unset;color:inherit;}[${rr}]::backdrop {display: none}`, Am = `${Lm}placeholder`, D0 = [rr, Am, "popover"], M0 = ["view-transition-name"], E0 = class extends sn {
6816
+ }, Lm = "data-dnd-", vt = "--dnd-", rr = `${Lm}dragging`, z0 = `[${rr}] {position: fixed !important; pointer-events: none !important; touch-action: none !important; z-index: calc(infinity); will-change: transform;top: var(${vt}top, 0px) !important;left: var(${vt}left, 0px) !important;width: var(${vt}width, auto) !important;height: var(${vt}height, auto) !important;}[${rr}] *{pointer-events: none !important;}[${rr}][style*="${vt}translate"] {translate: var(${vt}translate) !important;}[style*="${vt}transition"] {transition: var(${vt}transition) !important;}*:where([${rr}][popover]){overflow:visible;background:var(${vt}background);border:var(${vt}border);margin:unset;padding:unset;color:inherit;}[${rr}]::backdrop {display: none}`, Am = `${Lm}placeholder`, D0 = [rr, Am, "popover"], M0 = ["view-transition-name"], E0 = class extends sn {
6817
6817
  constructor(e) {
6818
6818
  super(e);
6819
6819
  let t, n, i = { x: 0, y: 0 }, s, a, o = !1;
@@ -6834,21 +6834,21 @@ var I0 = class extends sn {
6834
6834
  return;
6835
6835
  const T = new Cn(f, !0), { width: S, height: z, top: A, left: L } = T, P = new _m(f), { background: Z, border: ae, transition: Ae, translate: Ee } = xr(f), W = e.registry.droppables.get(p.id), G = b === "clone", N = b !== "move" ? Xw(f, G, {
6836
6836
  [Am]: ""
6837
- }) : null, K = ti(
6837
+ }) : null, Y = ti(
6838
6838
  () => ia(e.dragOperation.activatorEvent)
6839
6839
  );
6840
6840
  if (Ee !== "none") {
6841
- const Y = ra(Ee);
6842
- Y && (i = Y);
6841
+ const K = ra(Ee);
6842
+ K && (i = K);
6843
6843
  }
6844
6844
  if (n || (n = {
6845
6845
  x: L,
6846
6846
  y: A
6847
6847
  }), !a) {
6848
- const Y = ti(() => h.current);
6848
+ const K = ti(() => h.current);
6849
6849
  a = {
6850
- x: (Y.x - L) / S,
6851
- y: (Y.y - A) / z
6850
+ x: (K.x - L) / S,
6851
+ y: (K.y - A) / z
6852
6852
  };
6853
6853
  }
6854
6854
  const ne = {
@@ -6868,7 +6868,7 @@ var I0 = class extends sn {
6868
6868
  border: ae,
6869
6869
  translate: s ? `${s.x}px ${s.y}px 0` : ""
6870
6870
  },
6871
- yt
6871
+ vt
6872
6872
  ), N && f.insertAdjacentElement("afterend", N), Po(f) && (f.hasAttribute("popover") || f.setAttribute("popover", ""), co(f));
6873
6873
  const he = new Cn(f, !0), oe = {
6874
6874
  top: ie.top - he.top,
@@ -6879,20 +6879,20 @@ var I0 = class extends sn {
6879
6879
  top: ie.top + oe.top,
6880
6880
  left: ie.left + oe.left
6881
6881
  },
6882
- yt
6882
+ vt
6883
6883
  ) : (oe.left = 0, oe.top = 0);
6884
6884
  const Se = new ResizeObserver(() => {
6885
6885
  if (!N)
6886
6886
  return;
6887
- const Y = new Cn(N, !0), ce = a ?? { x: 1, y: 1 }, we = (S - Y.width) * ce.x + ne.x, He = (z - Y.height) * ce.y + ne.y;
6887
+ const K = new Cn(N, !0), ce = a ?? { x: 1, y: 1 }, we = (S - K.width) * ce.x + ne.x, He = (z - K.height) * ce.y + ne.y;
6888
6888
  if (P.set(
6889
6889
  {
6890
- width: Y.width,
6891
- height: Y.height,
6890
+ width: K.width,
6891
+ height: K.height,
6892
6892
  top: A + He + oe.top,
6893
6893
  left: L + we + oe.left
6894
6894
  },
6895
- yt
6895
+ vt
6896
6896
  ), f instanceof HTMLTableRowElement && N instanceof HTMLTableRowElement) {
6897
6897
  const zt = Array.from(f.cells), Ue = Array.from(N.cells);
6898
6898
  for (const [ln, Sn] of zt.entries()) {
@@ -6905,27 +6905,27 @@ var I0 = class extends sn {
6905
6905
  W && N && (W.placeholder = N, ti(W.refreshShape)), u.shape = new Cn(f), p.status = "dragging";
6906
6906
  let _e, je;
6907
6907
  N && (Se.observe(N), _e = new MutationObserver(() => {
6908
- for (const Y of Array.from(f.attributes))
6909
- if (!(Y.name.startsWith("aria-") || D0.includes(Y.name))) {
6910
- if (Y.name === "style") {
6908
+ for (const K of Array.from(f.attributes))
6909
+ if (!(K.name.startsWith("aria-") || D0.includes(K.name))) {
6910
+ if (K.name === "style") {
6911
6911
  if (ni(f) && ni(N)) {
6912
6912
  N.setAttribute("style", G ? "" : "opacity: 0;"), N.style.setProperty("transition", "none");
6913
6913
  for (const ce of Object.values(f.style))
6914
- ce.startsWith(yt) || M0.includes(ce) || N.style.setProperty(
6914
+ ce.startsWith(vt) || M0.includes(ce) || N.style.setProperty(
6915
6915
  ce,
6916
6916
  f.style.getPropertyValue(ce)
6917
6917
  );
6918
6918
  }
6919
6919
  continue;
6920
6920
  }
6921
- N.setAttribute(Y.name, Y.value);
6921
+ N.setAttribute(K.name, K.value);
6922
6922
  }
6923
6923
  G && (N.innerHTML = f.innerHTML);
6924
6924
  }), _e.observe(f, {
6925
6925
  attributes: !0,
6926
6926
  subtree: !0
6927
- }), je = new MutationObserver((Y) => {
6928
- for (const ce of Y)
6927
+ }), je = new MutationObserver((K) => {
6928
+ for (const ce of K)
6929
6929
  if (Array.from(ce.addedNodes).includes(f)) {
6930
6930
  f.insertAdjacentElement("afterend", N), co(f);
6931
6931
  return;
@@ -6938,13 +6938,13 @@ var I0 = class extends sn {
6938
6938
  var ce, we;
6939
6939
  const { transform: He, status: zt } = u;
6940
6940
  if (!(!He.x && !He.y && !o) && (o || (o = !0), zt.dragging)) {
6941
- const Ue = K ? "250ms ease" : "0ms linear", ln = He.x + i.x, Sn = He.y + i.y, cn = new Cn(f);
6941
+ const Ue = Y ? "250ms ease" : "0ms linear", ln = He.x + i.x, Sn = He.y + i.y, cn = new Cn(f);
6942
6942
  P.set(
6943
6943
  {
6944
6944
  transition: `${Ae}, translate ${Ue}`,
6945
6945
  translate: `${ln}px ${Sn}px 0`
6946
6946
  },
6947
- yt
6947
+ vt
6948
6948
  ), u.shape = cn.translate(
6949
6949
  ln - ((ce = s == null ? void 0 : s.x) != null ? ce : 0),
6950
6950
  Sn - ((we = s == null ? void 0 : s.y) != null ? we : 0)
@@ -6957,10 +6957,10 @@ var I0 = class extends sn {
6957
6957
  };
6958
6958
  }
6959
6959
  }), nt = (d = e.dragOperation.source) == null ? void 0 : d.id, wn = () => {
6960
- var Y;
6961
- if (!K || nt == null)
6960
+ var K;
6961
+ if (!Y || nt == null)
6962
6962
  return;
6963
- const ce = e.registry.draggables.get(nt), we = (Y = ce == null ? void 0 : ce.handle) != null ? Y : ce == null ? void 0 : ce.element;
6963
+ const ce = e.registry.draggables.get(nt), we = (K = ce == null ? void 0 : ce.handle) != null ? K : ce == null ? void 0 : ce.element;
6964
6964
  we instanceof HTMLElement && we.focus();
6965
6965
  };
6966
6966
  let De = () => {
@@ -6979,7 +6979,7 @@ var I0 = class extends sn {
6979
6979
  var He;
6980
6980
  co(f);
6981
6981
  const zt = N ?? f;
6982
- P.remove(["translate"], yt);
6982
+ P.remove(["translate"], vt);
6983
6983
  const Ue = new Cn(zt), ln = new Cn(f, !0).translate(
6984
6984
  we.x,
6985
6985
  we.y
@@ -7016,11 +7016,11 @@ var I0 = class extends sn {
7016
7016
  l(), c(), t == null || t.remove();
7017
7017
  };
7018
7018
  }
7019
- }, Si = !0, L0 = !1, Rm, $m, Pm, Om, sr, Yl, Kl;
7019
+ }, Si = !0, L0 = !1, Rm, $m, Pm, Om, sr, Kl, Yl;
7020
7020
  Om = (Pm = [qe], Jt.Forward), $m = (Rm = [qe], Jt.Reverse);
7021
7021
  var Wi = class {
7022
7022
  constructor() {
7023
- tn(this, Yl, vt(sr, 8, this, Si)), vt(sr, 11, this), tn(this, Kl, vt(sr, 12, this, Si)), vt(sr, 15, this);
7023
+ tn(this, Kl, _t(sr, 8, this, Si)), _t(sr, 11, this), tn(this, Yl, _t(sr, 12, this, Si)), _t(sr, 15, this);
7024
7024
  }
7025
7025
  isLocked(e) {
7026
7026
  return e === Jt.Idle ? !1 : e == null ? this[Jt.Forward] === Si && this[Jt.Reverse] === Si : this[e] === Si;
@@ -7030,10 +7030,10 @@ var Wi = class {
7030
7030
  }
7031
7031
  };
7032
7032
  sr = Ca(null);
7033
- Yl = /* @__PURE__ */ new WeakMap();
7034
7033
  Kl = /* @__PURE__ */ new WeakMap();
7035
- gr(sr, 4, Om, Pm, Wi, Yl);
7036
- gr(sr, 4, $m, Rm, Wi, Kl);
7034
+ Yl = /* @__PURE__ */ new WeakMap();
7035
+ gr(sr, 4, Om, Pm, Wi, Kl);
7036
+ gr(sr, 4, $m, Rm, Wi, Yl);
7037
7037
  Ia(sr, Wi);
7038
7038
  var A0 = [Jt.Forward, Jt.Reverse], eu = class {
7039
7039
  constructor() {
@@ -7078,7 +7078,7 @@ function tu(e, t) {
7078
7078
  }
7079
7079
  var Fm, Fo, Gi, Xl, nr, Vo, Ta = class extends (Fo = Ww, Fm = [qe], Fo) {
7080
7080
  constructor(e) {
7081
- super(e), tn(this, Xl, vt(Gi, 8, this, !1)), vt(Gi, 11, this), tn(this, nr), tn(this, Vo, () => {
7081
+ super(e), tn(this, Xl, _t(Gi, 8, this, !1)), _t(Gi, 11, this), tn(this, nr), tn(this, Vo, () => {
7082
7082
  if (!Mn(this, nr))
7083
7083
  return;
7084
7084
  const { element: a, by: o } = Mn(this, nr);
@@ -7519,7 +7519,7 @@ var Nm, qm, Bm, qo, dn, Jl, Zl, ec, ds = class extends (qo = os, Bm = [qe], qm =
7519
7519
  ]
7520
7520
  }, l),
7521
7521
  t
7522
- ), tn(this, Jl, vt(dn, 8, this)), vt(dn, 11, this), tn(this, Zl, vt(dn, 12, this)), vt(dn, 15, this), tn(this, ec, vt(dn, 16, this)), vt(dn, 19, this), this.element = i, this.handle = a, this.feedback = o;
7522
+ ), tn(this, Jl, _t(dn, 8, this)), _t(dn, 11, this), tn(this, Zl, _t(dn, 12, this)), _t(dn, 15, this), tn(this, ec, _t(dn, 16, this)), _t(dn, 19, this), this.element = i, this.handle = a, this.feedback = o;
7523
7523
  }
7524
7524
  };
7525
7525
  dn = Ca(qo);
@@ -7587,7 +7587,7 @@ var Wm, Gm, Bo, ar, tc, nc, za = class extends (Bo = fr, Gm = [qe], Wm = [qe], B
7587
7587
  ]
7588
7588
  }),
7589
7589
  t
7590
- ), tn(this, tc, vt(ar, 8, this)), vt(ar, 11, this), tn(this, nc, vt(ar, 12, this)), vt(ar, 15, this), this.internal = {
7590
+ ), tn(this, tc, _t(ar, 8, this)), _t(ar, 11, this), tn(this, nc, _t(ar, 12, this)), _t(ar, 15, this), this.internal = {
7591
7591
  element: Sa(i)
7592
7592
  }, this.refreshShape = this.refreshShape.bind(this), (o = this.manager) != null && o.dragOperation.status.initialized && (this.visible = !0);
7593
7593
  }
@@ -7623,7 +7623,7 @@ var q0 = Object.create, Hm = Object.defineProperty, B0 = Object.defineProperties
7623
7623
  for (var n of aa(t))
7624
7624
  Um.call(t, n) && Wo(e, n, t[n]);
7625
7625
  return e;
7626
- }, U0 = (e, t) => B0(e, G0(t)), Y0 = (e, t) => {
7626
+ }, U0 = (e, t) => B0(e, G0(t)), K0 = (e, t) => {
7627
7627
  var n = {};
7628
7628
  for (var i in e)
7629
7629
  Qm.call(e, i) && t.indexOf(i) < 0 && (n[i] = e[i]);
@@ -7631,15 +7631,15 @@ var q0 = Object.create, Hm = Object.defineProperty, B0 = Object.defineProperties
7631
7631
  for (var i of aa(e))
7632
7632
  t.indexOf(i) < 0 && Um.call(e, i) && (n[i] = e[i]);
7633
7633
  return n;
7634
- }, K0 = (e) => {
7634
+ }, Y0 = (e) => {
7635
7635
  var t;
7636
7636
  return [, , , q0((t = void 0) != null ? t : null)];
7637
- }, Ym = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Ei = (e) => e !== void 0 && typeof e != "function" ? us("Function expected") : e, X0 = (e, t, n, i, s) => ({ kind: Ym[e], name: t, metadata: i, addInitializer: (a) => n._ ? us("Already initialized") : s.push(Ei(a || null)) }), J0 = (e, t) => Wo(t, H0("metadata"), e[3]), ks = (e, t, n, i) => {
7637
+ }, Km = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Ei = (e) => e !== void 0 && typeof e != "function" ? us("Function expected") : e, X0 = (e, t, n, i, s) => ({ kind: Km[e], name: t, metadata: i, addInitializer: (a) => n._ ? us("Already initialized") : s.push(Ei(a || null)) }), J0 = (e, t) => Wo(t, H0("metadata"), e[3]), ks = (e, t, n, i) => {
7638
7638
  for (var s = 0, a = e[t >> 1], o = a && a.length; s < o; s++)
7639
7639
  t & 1 ? a[s].call(n) : i = a[s].call(n, i);
7640
7640
  return i;
7641
- }, Km = (e, t, n, i, s, a) => {
7642
- for (var o, l, c, d, u, h = t & 7, p = !!(t & 8), m = !!(t & 16), f = e.length + 1, b = Ym[h + 5], T = e[f - 1] = [], S = e[f] || (e[f] = []), z = (s = s.prototype, W0({ get [n]() {
7641
+ }, Ym = (e, t, n, i, s, a) => {
7642
+ for (var o, l, c, d, u, h = t & 7, p = !!(t & 8), m = !!(t & 16), f = e.length + 1, b = Km[h + 5], T = e[f - 1] = [], S = e[f] || (e[f] = []), z = (s = s.prototype, W0({ get [n]() {
7643
7643
  return Z0(this, a);
7644
7644
  }, set [n](L) {
7645
7645
  return eS(this, a, L);
@@ -7847,7 +7847,7 @@ var Da = class {
7847
7847
  type: l,
7848
7848
  transition: c = Jm,
7849
7849
  plugins: d = sS
7850
- } = n, u = Y0(n, [
7850
+ } = n, u = K0(n, [
7851
7851
  "effects",
7852
7852
  "group",
7853
7853
  "index",
@@ -8025,11 +8025,11 @@ var Da = class {
8025
8025
  this.draggable.destroy(), this.droppable.destroy();
8026
8026
  }
8027
8027
  };
8028
- or = K0();
8028
+ or = Y0();
8029
8029
  rc = /* @__PURE__ */ new WeakMap();
8030
8030
  ic = /* @__PURE__ */ new WeakMap();
8031
- Km(or, 4, "index", ef, Da, rc);
8032
- Km(or, 4, "group", Zm, Da, ic);
8031
+ Ym(or, 4, "index", ef, Da, rc);
8032
+ Ym(or, 4, "group", Zm, Da, ic);
8033
8033
  J0(or, Da);
8034
8034
  var tf = class extends ds {
8035
8035
  constructor(e, t, n) {
@@ -8076,7 +8076,7 @@ function po(e, t = !1) {
8076
8076
  function lS(e, t) {
8077
8077
  e();
8078
8078
  }
8079
- function gt(e, t, n = Q, i = Object.is) {
8079
+ function bt(e, t, n = Q, i = Object.is) {
8080
8080
  const s = cr(e);
8081
8081
  n(() => {
8082
8082
  const a = s.current;
@@ -8119,24 +8119,24 @@ function sf(e) {
8119
8119
  }),
8120
8120
  P
8121
8121
  )), z = po(() => S.isDropTarget), A = po(() => S.isDragSource), L = po(() => S.status);
8122
- return gt(s, () => S.id = s), gt(o, () => S.index = o, rf), gt(p, () => S.type = p), gt(l, () => S.group = l), gt(
8122
+ return bt(s, () => S.id = s), bt(o, () => S.index = o, rf), bt(p, () => S.type = p), bt(l, () => S.group = l), bt(
8123
8123
  t,
8124
8124
  () => S.accept = t,
8125
8125
  void 0,
8126
8126
  Tl
8127
- ), gt(a, () => a && (S.data = a)), gt(
8127
+ ), bt(a, () => a && (S.data = a)), bt(
8128
8128
  o,
8129
8129
  () => {
8130
8130
  m != null && m.dragOperation.status.idle && h && S.refreshShape();
8131
8131
  },
8132
8132
  lS
8133
- ), gt(f, () => S.handle = f), gt(b, () => S.element = b), gt(T, () => S.target = T), gt(c, () => S.disabled = c === !0), gt(u, () => S.sensors = u), gt(
8133
+ ), bt(f, () => S.handle = f), bt(b, () => S.element = b), bt(T, () => S.target = T), bt(c, () => S.disabled = c === !0), bt(u, () => S.sensors = u), bt(
8134
8134
  n,
8135
8135
  () => S.collisionDetector = n
8136
- ), gt(
8136
+ ), bt(
8137
8137
  i,
8138
8138
  () => S.collisionPriority = i
8139
- ), gt(d, () => S.feedback = d ?? "default"), gt(h, () => S.transition = h), {
8139
+ ), bt(d, () => S.feedback = d ?? "default"), bt(h, () => S.transition = h), {
8140
8140
  get isDragSource() {
8141
8141
  return A.value;
8142
8142
  },
@@ -8364,7 +8364,7 @@ function vS() {
8364
8364
  categories: []
8365
8365
  };
8366
8366
  }
8367
- function Yn() {
8367
+ function Kn() {
8368
8368
  return of();
8369
8369
  }
8370
8370
  function _S() {
@@ -9283,7 +9283,7 @@ function US(e) {
9283
9283
  const t = document.createElement("span");
9284
9284
  return t.innerHTML = e, t.innerText;
9285
9285
  }
9286
- function YS(e, t, n) {
9286
+ function KS(e, t, n) {
9287
9287
  try {
9288
9288
  return new Function("payload", `
9289
9289
  const filters = payload.filters;
@@ -9306,10 +9306,10 @@ function cc(e, t, n, i) {
9306
9306
  if (c)
9307
9307
  return c;
9308
9308
  const d = US(l);
9309
- return YS(d, s, n);
9309
+ return KS(d, s, n);
9310
9310
  });
9311
9311
  }
9312
- function KS(e, t) {
9312
+ function YS(e, t) {
9313
9313
  const n = Hy(t);
9314
9314
  n !== e && (console.error("Inconsistent sql"), console.groupCollapsed("Inconsistent sql"), console.table({
9315
9315
  before: e,
@@ -9331,11 +9331,11 @@ async function XS({
9331
9331
  sql: l,
9332
9332
  pre_process: c,
9333
9333
  post_process: d
9334
- } = e, u = hl(l, n), h = Yv({
9334
+ } = e, u = hl(l, n), h = Kv({
9335
9335
  sql: u,
9336
9336
  pre_process: c
9337
9337
  }), p = Gy(h);
9338
- KS(h, p);
9338
+ YS(h, p);
9339
9339
  let m = await Nn.query(s)({
9340
9340
  type: a,
9341
9341
  key: o,
@@ -9346,7 +9346,7 @@ async function XS({
9346
9346
  name: t
9347
9347
  }
9348
9348
  });
9349
- return m = Kv(d, m, lc(n)), m;
9349
+ return m = Yv(d, m, lc(n)), m;
9350
9350
  }
9351
9351
  async function JS({
9352
9352
  type: e,
@@ -9630,7 +9630,7 @@ class uc {
9630
9630
  }), this.instanceRegistry.clear(), this.factoryRegistry.clear();
9631
9631
  }
9632
9632
  }
9633
- const yf = "13.31.0", d1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9633
+ const yf = "13.31.2", d1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9634
9634
  __proto__: null,
9635
9635
  version: yf
9636
9636
  }, Symbol.toStringTag, { value: "Module" }));
@@ -9714,7 +9714,7 @@ class p1 {
9714
9714
  return n;
9715
9715
  if (t.from > t.to)
9716
9716
  throw new Error(`Can not downgrade from version '${t.from}' to (${t.to})`);
9717
- const s = this.migrations.filter((l) => l.version > t.from && l.version <= t.to), a = Yg(s, "version", "asc");
9717
+ const s = this.migrations.filter((l) => l.version > t.from && l.version <= t.to), a = Kg(s, "version", "asc");
9718
9718
  if (((o = ih(a)) == null ? void 0 : o.version) !== t.to)
9719
9719
  throw new Error(`Migration to version ${t.to} not found`);
9720
9720
  return a.reduce((l, c) => c.handler(l, i), n);
@@ -9827,7 +9827,7 @@ function m1({
9827
9827
  min: b,
9828
9828
  max: T
9829
9829
  } = I(() => {
9830
- const z = Kg(h, (L) => L[f.columnKey]), A = Xg(h, (L) => L[f.columnKey]);
9830
+ const z = Yg(h, (L) => L[f.columnKey]), A = Xg(h, (L) => L[f.columnKey]);
9831
9831
  return {
9832
9832
  min: xe(z, f.columnKey),
9833
9833
  max: xe(A, f.columnKey)
@@ -9868,7 +9868,7 @@ function m1({
9868
9868
  data: h.map((z) => [z[p.columnKey], z[m.columnKey], z[f.columnKey]])
9869
9869
  }]
9870
9870
  };
9871
- return t ? /* @__PURE__ */ r.jsx(Vt, { width: i, height: s, children: /* @__PURE__ */ r.jsx(Ct, { echarts: xt, option: S, style: ms(i, s), notMerge: !0, theme: "merico-light" }) }) : null;
9871
+ return t ? /* @__PURE__ */ r.jsx(Vt, { width: i, height: s, children: /* @__PURE__ */ r.jsx(Ct, { echarts: gt, option: S, style: ms(i, s), notMerge: !0, theme: "merico-light" }) }) : null;
9872
9872
  }
9873
9873
  const ee = D(de(({
9874
9874
  label: e,
@@ -9886,9 +9886,9 @@ const ee = D(de(({
9886
9886
  } = Ot(), h = $.useMemo(() => u.dataFieldOptions(i, o, a), [i, o, a]);
9887
9887
  if (h.length === 0) {
9888
9888
  const p = u.explainDataKey(i);
9889
- return /* @__PURE__ */ r.jsxs(Ke, { shadow: "md", position: "bottom-start", withinPortal: !0, zIndex: 320, children: [
9890
- /* @__PURE__ */ r.jsx(Ke.Target, { children: /* @__PURE__ */ r.jsx(R, { children: /* @__PURE__ */ r.jsx(E, { label: e, required: t, defaultValue: p.columnKey, readOnly: !0, disabled: !0 }) }) }),
9891
- /* @__PURE__ */ r.jsx(Ke.Dropdown, { children: /* @__PURE__ */ r.jsxs(y, { position: "left", spacing: 0, children: [
9889
+ return /* @__PURE__ */ r.jsxs(Ye, { shadow: "md", position: "bottom-start", withinPortal: !0, zIndex: 320, children: [
9890
+ /* @__PURE__ */ r.jsx(Ye.Target, { children: /* @__PURE__ */ r.jsx(R, { children: /* @__PURE__ */ r.jsx(E, { label: e, required: t, defaultValue: p.columnKey, readOnly: !0, disabled: !0 }) }) }),
9891
+ /* @__PURE__ */ r.jsx(Ye.Dropdown, { children: /* @__PURE__ */ r.jsxs(y, { position: "left", spacing: 0, children: [
9892
9892
  /* @__PURE__ */ r.jsx(w, { size: "xs", color: p.queryName ? "black" : "red", sx: {
9893
9893
  fontFamily: "monospace"
9894
9894
  }, children: p.queryName ?? p.queryID }),
@@ -10661,7 +10661,7 @@ const H1 = {
10661
10661
  })), [n.filters.values]);
10662
10662
  return /* @__PURE__ */ r.jsx(C, { spacing: 10, children: /* @__PURE__ */ r.jsx(ai, { label: t("interactions.operation.clear_filter_values.select_filter"), data: l, value: a, onChange: o }) });
10663
10663
  });
10664
- async function Y1(e, t) {
10664
+ async function K1(e, t) {
10665
10665
  const i = (await t.operationData.getItem("config")).filter_keys;
10666
10666
  window.dispatchEvent(new CustomEvent("clear-filter-values", {
10667
10667
  detail: {
@@ -10670,12 +10670,12 @@ async function Y1(e, t) {
10670
10670
  }
10671
10671
  }));
10672
10672
  }
10673
- const K1 = {
10673
+ const Y1 = {
10674
10674
  displayName: "interactions.operation.clear_filter_values.label",
10675
10675
  id: "builtin:op:clear_filter_values",
10676
10676
  configRender: U1,
10677
- run: Y1
10678
- }, Aa = [P1, L1, V1, H1, K1];
10677
+ run: K1
10678
+ }, Aa = [P1, L1, V1, H1, Y1];
10679
10679
  class X1 {
10680
10680
  constructor(t, n = Aa) {
10681
10681
  U(this, "attachments");
@@ -10880,7 +10880,7 @@ class fc {
10880
10880
  }
10881
10881
  }
10882
10882
  }
10883
- const Yt = ({
10883
+ const Kt = ({
10884
10884
  vizManager: e,
10885
10885
  instance: t
10886
10886
  }) => mn(() => new fc(t, e.resolveComponent(t.type), Aa), [t, e]), jf = (e) => {
@@ -10983,7 +10983,7 @@ const tk = D(({
10983
10983
  instance: l,
10984
10984
  variables: c
10985
10985
  } = e, d = mn(() => new Z1(a, l), [a, l]);
10986
- return Ki(async () => {
10986
+ return Yi(async () => {
10987
10987
  await d.configOperation(o, c);
10988
10988
  }, [o, d]), ek(d) ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
10989
10989
  /* @__PURE__ */ r.jsx(tk, { model: d, onClick: i }),
@@ -11081,7 +11081,7 @@ const lk = D(({
11081
11081
  });
11082
11082
  function hk(e, t) {
11083
11083
  const [n, i] = J([]);
11084
- return Ki(async () => {
11084
+ return Yi(async () => {
11085
11085
  const s = await e.getInteractionList();
11086
11086
  i(s);
11087
11087
  }, [t, e]), n;
@@ -11098,7 +11098,7 @@ const pk = D(({
11098
11098
  triggerRef: o,
11099
11099
  operationRef: l
11100
11100
  } = e, c = ok(t.triggerManager, n);
11101
- if (Ki(async () => {
11101
+ if (Yi(async () => {
11102
11102
  await c.configTrigger(o, i);
11103
11103
  }, [c, o, i]), c.isReady()) {
11104
11104
  const d = [...c.triggerSchema.payload, ...s];
@@ -11148,7 +11148,7 @@ const pk = D(({
11148
11148
  data: t
11149
11149
  } = Ht(), n = e.viz, {
11150
11150
  vizManager: i
11151
- } = Kn(Pn), s = e.json, a = mn(() => i.getOrCreateInstance(s), [i, s]), o = mn(() => new fc(a, i.resolveComponent(n.type), Aa), [a, n.type]);
11151
+ } = Yn(Pn), s = e.json, a = mn(() => i.getOrCreateInstance(s), [i, s]), o = mn(() => new fc(a, i.resolveComponent(n.type), Aa), [a, n.type]);
11152
11152
  return Q(() => a.instanceData.watchItem(
11153
11153
  null,
11154
11154
  // avoid too many updates
@@ -11760,7 +11760,7 @@ function Wk({
11760
11760
  } = e, a = e.data, {
11761
11761
  width: o,
11762
11762
  height: l
11763
- } = e.viewport, c = Pe({}, i, pc), d = Yt({
11763
+ } = e.viewport, c = Pe({}, i, pc), d = Kt({
11764
11764
  vizManager: e.vizManager,
11765
11765
  instance: t
11766
11766
  }), u = Ut(d.triggerManager, _f.id), h = Wr(a, c.x_axis.data_key), p = Fe((b) => {
@@ -11781,7 +11781,7 @@ function Wk({
11781
11781
  variables: s,
11782
11782
  t: n
11783
11783
  }), [c, a, s, n]);
11784
- return !i || !o || !l ? null : /* @__PURE__ */ r.jsx(Vt, { width: o, height: l, children: /* @__PURE__ */ r.jsx(Ct, { echarts: xt, option: f, style: ms(o, l), onEvents: m, notMerge: !0, theme: "merico-light" }) });
11784
+ return !i || !o || !l ? null : /* @__PURE__ */ r.jsx(Vt, { width: o, height: l, children: /* @__PURE__ */ r.jsx(Ct, { echarts: gt, option: f, style: ms(o, l), onEvents: m, notMerge: !0, theme: "merico-light" }) });
11785
11785
  }
11786
11786
  function Gk({
11787
11787
  value: e,
@@ -11791,7 +11791,7 @@ function Gk({
11791
11791
  t: i
11792
11792
  } = v(), {
11793
11793
  colorManager: s
11794
- } = Kn(Pn), a = $.useMemo(() => s.getStaticColors().map((c) => ({
11794
+ } = Yn(Pn), a = $.useMemo(() => s.getStaticColors().map((c) => ({
11795
11795
  label: c.name,
11796
11796
  group: c.category,
11797
11797
  // todo: select color by reference instead of value, e.g. $category.name
@@ -12017,18 +12017,18 @@ function Uk(e) {
12017
12017
  }, color: "dimmed", size: "sm", className: "palette-value--bottom palette-value", children: A })
12018
12018
  ] });
12019
12019
  }
12020
- const Yk = D(({
12020
+ const Kk = D(({
12021
12021
  model: e
12022
12022
  }) => {
12023
12023
  const {
12024
12024
  classes: t
12025
12025
  } = Tf(), n = Zg(0, 13, 1).map((i) => 100 / 12 * i).map((i) => [e.interpolation.getColor(i), i]);
12026
12026
  return /* @__PURE__ */ r.jsx("div", { className: t.palette, children: n.map(([i, s], a) => /* @__PURE__ */ r.jsx(Uk, { index: a, color: i, value: e.getStepFromValue(s), onChange: (o) => e.changeStep(o, s) }, i)) });
12027
- }), Kk = D(function(t) {
12027
+ }), Yk = D(function(t) {
12028
12028
  const n = mn(() => new Qk(), []);
12029
12029
  return Q(() => {
12030
12030
  n.fromProps(t);
12031
- }), n.interpolation == null ? null : /* @__PURE__ */ r.jsx(Yk, { model: n });
12031
+ }), n.interpolation == null ? null : /* @__PURE__ */ r.jsx(Kk, { model: n });
12032
12032
  }), Xk = (e) => {
12033
12033
  const {
12034
12034
  t,
@@ -12067,7 +12067,7 @@ const Yk = D(({
12067
12067
  /* @__PURE__ */ r.jsx(M, { variant: "outline", onClick: h, children: t(d == null ? void 0 : d.displayName) }),
12068
12068
  /* @__PURE__ */ r.jsx(Ge, { size: 508, title: t("style.color.interpolation.setup"), opened: u, onClose: p, zIndex: 320, children: u && /* @__PURE__ */ r.jsxs(C, { "data-testid": "color-interpolation-modal", children: [
12069
12069
  /* @__PURE__ */ r.jsx(q, { label: t("style.color.interpolation.palette.label"), value: l.interpolation, data: m, onChange: f, withinPortal: !0, zIndex: 340, maxDropdownHeight: 500 }),
12070
- /* @__PURE__ */ r.jsx(Kk, { steps: l.steps, interpolation: d, onChange: T }),
12070
+ /* @__PURE__ */ r.jsx(Yk, { steps: l.steps, interpolation: d, onChange: T }),
12071
12071
  /* @__PURE__ */ r.jsxs(y, { position: "apart", children: [
12072
12072
  /* @__PURE__ */ r.jsx(M, { onClick: S, variant: "subtle", children: t("common.actions.cancel") }),
12073
12073
  /* @__PURE__ */ r.jsx(M, { color: "green", leftIcon: /* @__PURE__ */ r.jsx(tt, { size: 16 }), onClick: b, children: t("common.actions.save") })
@@ -12498,7 +12498,7 @@ function hC({
12498
12498
  }] = pr(!1);
12499
12499
  return /* @__PURE__ */ r.jsxs(R, { children: [
12500
12500
  /* @__PURE__ */ r.jsx(M, { variant: "subtle", w: "100%", compact: !0, onClick: i, leftIcon: n ? /* @__PURE__ */ r.jsx(pb, { size: 14 }) : /* @__PURE__ */ r.jsx(mb, { size: 14 }), children: t(n ? "numbro.format.preview.close" : "numbro.format.preview.open") }),
12501
- /* @__PURE__ */ r.jsx(Yi, { in: n, children: n && /* @__PURE__ */ r.jsxs(ot, { highlightOnHover: !0, sx: {
12501
+ /* @__PURE__ */ r.jsx(Ki, { in: n, children: n && /* @__PURE__ */ r.jsxs(ot, { highlightOnHover: !0, sx: {
12502
12502
  tableLayout: "fixed"
12503
12503
  }, children: [
12504
12504
  /* @__PURE__ */ r.jsx("thead", { children: /* @__PURE__ */ r.jsxs("tr", { children: [
@@ -12956,7 +12956,7 @@ const bc = {
12956
12956
  context: e,
12957
12957
  instance: t
12958
12958
  }) => {
12959
- const n = Yt({
12959
+ const n = Kt({
12960
12960
  vizManager: e.vizManager,
12961
12961
  instance: t
12962
12962
  }), i = Ut(n.triggerManager, zf.id), s = Xe(), {
@@ -13365,12 +13365,12 @@ function UC(e, t) {
13365
13365
  }
13366
13366
  }));
13367
13367
  }
13368
- function YC(e, t, n, i) {
13368
+ function KC(e, t, n, i) {
13369
13369
  return t ? i === "value" ? [[n[0], e]] : [e] : [];
13370
13370
  }
13371
- function KC(e, t, n, i, s, a) {
13371
+ function YC(e, t, n, i, s, a) {
13372
13372
  return e.map((o) => {
13373
- const l = n[o.variable_key], c = o.orientation === "horizontal", d = c ? "yAxis" : "xAxis", u = c ? "insideEndTop" : "end", h = YC(l, c, s, a);
13373
+ const l = n[o.variable_key], c = o.orientation === "horizontal", d = c ? "yAxis" : "xAxis", u = c ? "insideEndTop" : "end", h = KC(l, c, s, a);
13374
13374
  return {
13375
13375
  name: o.name,
13376
13376
  type: "scatter",
@@ -13559,7 +13559,7 @@ function nI({
13559
13559
  }
13560
13560
  function rI(e, t, n, i, s, a) {
13561
13561
  const o = t.map((c) => [c, 0]);
13562
- return e.series.map((c) => nI(e, c, o, n, a, i)).flat().concat(KC(e.reference_lines, s, a, n, t, e.x_axis.type)).concat(UC(e.reference_areas, a));
13562
+ return e.series.map((c) => nI(e, c, o, n, a, i)).flat().concat(YC(e.reference_lines, s, a, n, t, e.x_axis.type)).concat(UC(e.reference_areas, a));
13563
13563
  }
13564
13564
  function iI(e, t) {
13565
13565
  const n = e.find((a) => a.axisDim === "x" && a.axisId === "main-x-axis");
@@ -13800,7 +13800,7 @@ function mI({
13800
13800
  };
13801
13801
  return Q(() => {
13802
13802
  u.current && fu(u.current);
13803
- }, [d]), !n || !i ? null : /* @__PURE__ */ r.jsx(Ct, { echarts: xt, option: d, style: {
13803
+ }, [d]), !n || !i ? null : /* @__PURE__ */ r.jsx(Ct, { echarts: gt, option: d, style: {
13804
13804
  width: n,
13805
13805
  height: i
13806
13806
  }, onEvents: h, onChartReady: p, notMerge: !0, theme: "merico-light" });
@@ -13809,7 +13809,7 @@ function fI({
13809
13809
  context: e,
13810
13810
  instance: t
13811
13811
  }) {
13812
- const n = Yt({
13812
+ const n = Kt({
13813
13813
  vizManager: e.vizManager,
13814
13814
  instance: t
13815
13815
  }), {
@@ -14880,11 +14880,11 @@ const $I = () => {
14880
14880
  display: "inline-flex"
14881
14881
  }, spacing: 6, mr: 14, children: [
14882
14882
  /* @__PURE__ */ r.jsx(w, { children: e("chart.x_axis.x_axis_type") }),
14883
- /* @__PURE__ */ r.jsxs(Ke, { width: 340, shadow: "md", position: "top", children: [
14884
- /* @__PURE__ */ r.jsx(Ke.Target, { children: /* @__PURE__ */ r.jsx(re, { size: "xs", sx: {
14883
+ /* @__PURE__ */ r.jsxs(Ye, { width: 340, shadow: "md", position: "top", children: [
14884
+ /* @__PURE__ */ r.jsx(Ye.Target, { children: /* @__PURE__ */ r.jsx(re, { size: "xs", sx: {
14885
14885
  transform: "none !important"
14886
14886
  }, children: /* @__PURE__ */ r.jsx(Vr, {}) }) }),
14887
- /* @__PURE__ */ r.jsx(Ke.Dropdown, { children: /* @__PURE__ */ r.jsx(w, { size: "sm", children: /* @__PURE__ */ r.jsxs(fa, { i18nKey: "chart.axis.type.click_to_learn_more", children: [
14887
+ /* @__PURE__ */ r.jsx(Ye.Dropdown, { children: /* @__PURE__ */ r.jsx(w, { size: "sm", children: /* @__PURE__ */ r.jsxs(fa, { i18nKey: "chart.axis.type.click_to_learn_more", children: [
14888
14888
  "Click",
14889
14889
  /* @__PURE__ */ r.jsx(Ns, { href: "https://echarts.apache.org/en/option.html#xAxis.type", target: "_blank", mx: 3, children: "here" }),
14890
14890
  "to learn more about these options"
@@ -15246,7 +15246,7 @@ function UI(e) {
15246
15246
  series: t
15247
15247
  };
15248
15248
  }
15249
- function YI(e) {
15249
+ function KI(e) {
15250
15250
  delete e.config;
15251
15251
  const {
15252
15252
  x_axis: t,
@@ -15263,7 +15263,7 @@ function YI(e) {
15263
15263
  };
15264
15264
  return k.defaultsDeep(i, e);
15265
15265
  }
15266
- function KI(e) {
15266
+ function YI(e) {
15267
15267
  const {
15268
15268
  series: t,
15269
15269
  ...n
@@ -15540,11 +15540,11 @@ class lT extends Qe {
15540
15540
  })), this.version(10, (n) => ({
15541
15541
  ...n,
15542
15542
  version: 10,
15543
- config: YI(n.config)
15543
+ config: KI(n.config)
15544
15544
  })), this.version(11, (n) => ({
15545
15545
  ...n,
15546
15546
  version: 11,
15547
- config: KI(n.config)
15547
+ config: YI(n.config)
15548
15548
  })), this.version(12, (n) => ({
15549
15549
  ...n,
15550
15550
  version: 12,
@@ -15756,7 +15756,7 @@ function yT({
15756
15756
  height: i
15757
15757
  }) {
15758
15758
  const s = $.useMemo(() => gT(e, t), [e, t]);
15759
- return /* @__PURE__ */ r.jsx(Ct, { echarts: xt, option: s, style: {
15759
+ return /* @__PURE__ */ r.jsx(Ct, { echarts: gt, option: s, style: {
15760
15760
  width: n,
15761
15761
  height: i
15762
15762
  }, notMerge: !0, theme: "merico-light" });
@@ -16471,7 +16471,7 @@ const Is = ({
16471
16471
  } = e, a = t === "horizontal" ? n : i, {
16472
16472
  panel: o
16473
16473
  } = Ot(), l = Ma(e, o.variableValueMap);
16474
- return /* @__PURE__ */ r.jsx(ht, { children: /* @__PURE__ */ r.jsx(Ct, { echarts: xt, option: {
16474
+ return /* @__PURE__ */ r.jsx(ht, { children: /* @__PURE__ */ r.jsx(Ct, { echarts: gt, option: {
16475
16475
  visualMap: l
16476
16476
  }, style: {
16477
16477
  width: "100%",
@@ -16597,7 +16597,7 @@ const Is = ({
16597
16597
  /* @__PURE__ */ r.jsx("td", {})
16598
16598
  ] }) })
16599
16599
  ] }) });
16600
- }, YT = ({
16600
+ }, KT = ({
16601
16601
  form: e
16602
16602
  }) => {
16603
16603
  const {
@@ -16676,10 +16676,10 @@ const Is = ({
16676
16676
  ] }),
16677
16677
  /* @__PURE__ */ r.jsx(O, { variant: "dashed" }),
16678
16678
  /* @__PURE__ */ r.jsx(WT, { form: e }),
16679
- /* @__PURE__ */ r.jsx(YT, { form: e })
16679
+ /* @__PURE__ */ r.jsx(KT, { form: e })
16680
16680
  ] }) });
16681
16681
  };
16682
- function KT(e, t, n, i) {
16682
+ function YT(e, t, n, i) {
16683
16683
  return n < e * 10 || i < t * 10 ? 0 : n < e * 20 || i < t * 20 ? 1 : 2;
16684
16684
  }
16685
16685
  function XT(e, t, n, i, s, a) {
@@ -16699,7 +16699,7 @@ function XT(e, t, n, i, s, a) {
16699
16699
  return P || (L.visualMap = !1, L.itemStyle = {
16700
16700
  color: Z
16701
16701
  }), L;
16702
- }), S = KT(f.length, b.length, s, a);
16702
+ }), S = YT(f.length, b.length, s, a);
16703
16703
  return {
16704
16704
  xAxis: NT(e, f, u.x_axis, S),
16705
16705
  yAxis: qT(e, u.y_axis, S),
@@ -16818,7 +16818,7 @@ const Tc = {
16818
16818
  tooltip: {
16819
16819
  metrics: []
16820
16820
  },
16821
- visualMap: Yn(),
16821
+ visualMap: Kn(),
16822
16822
  pagination: Ef({
16823
16823
  page_size: 20
16824
16824
  })
@@ -16848,7 +16848,7 @@ function nz({
16848
16848
  }, [l, c, a]), u = I(() => ({
16849
16849
  click: d
16850
16850
  }), [d]), h = $.useMemo(() => XT(e, t, n, o, i, s), [e, t, n, i, s]);
16851
- return /* @__PURE__ */ r.jsx(Ct, { echarts: xt, option: h, style: {
16851
+ return /* @__PURE__ */ r.jsx(Ct, { echarts: gt, option: h, style: {
16852
16852
  width: i,
16853
16853
  height: s
16854
16854
  }, onEvents: u, notMerge: !0, theme: "merico-light" });
@@ -16857,7 +16857,7 @@ function rz({
16857
16857
  context: e,
16858
16858
  instance: t
16859
16859
  }) {
16860
- const n = Yt({
16860
+ const n = Kt({
16861
16861
  vizManager: e.vizManager,
16862
16862
  instance: t
16863
16863
  }), {
@@ -17234,7 +17234,7 @@ function gz(e) {
17234
17234
  }
17235
17235
  function bz(e) {
17236
17236
  const {
17237
- visualMap: t = Yn(),
17237
+ visualMap: t = Kn(),
17238
17238
  heat_block: {
17239
17239
  min: n,
17240
17240
  max: i,
@@ -17246,7 +17246,7 @@ function bz(e) {
17246
17246
  ...a,
17247
17247
  heat_block: s,
17248
17248
  visualMap: {
17249
- ...Yn(),
17249
+ ...Kn(),
17250
17250
  min: n,
17251
17251
  max: i
17252
17252
  }
@@ -17703,7 +17703,7 @@ function Fz({
17703
17703
  } = te(e.instanceData, "config"), s = e.data, {
17704
17704
  width: a,
17705
17705
  height: o
17706
- } = e.viewport, l = Pe({}, i, zc), c = Oz(l, s, n), d = Yt({
17706
+ } = e.viewport, l = Pe({}, i, zc), c = Oz(l, s, n), d = Kt({
17707
17707
  vizManager: e.vizManager,
17708
17708
  instance: t
17709
17709
  }), u = Ut(d.triggerManager, Lf.id), h = Wr(s, l.x_axis.data_key), p = Fe((f) => {
@@ -17719,7 +17719,7 @@ function Fz({
17719
17719
  }, [h, u, d]), m = I(() => ({
17720
17720
  click: p
17721
17721
  }), [p]);
17722
- return !l || !a || !o ? null : /* @__PURE__ */ r.jsx(Vt, { width: a, height: o, children: /* @__PURE__ */ r.jsx(Ct, { echarts: xt, option: c, style: ms(a, o), onEvents: m, notMerge: !0, theme: "merico-light" }) });
17722
+ return !l || !a || !o ? null : /* @__PURE__ */ r.jsx(Vt, { width: a, height: o, children: /* @__PURE__ */ r.jsx(Ct, { echarts: gt, option: c, style: ms(a, o), onEvents: m, notMerge: !0, theme: "merico-light" }) });
17723
17723
  }
17724
17724
  function Vz({
17725
17725
  control: e,
@@ -17813,7 +17813,7 @@ const qz = (e, t) => `
17813
17813
  } = v(), [n, i] = J(!1), s = I(() => qz(e("viz.pareto_chart.line_80_20.param_section_note_1"), e("viz.pareto_chart.line_80_20.param_section_note_2")), [t.language]);
17814
17814
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
17815
17815
  /* @__PURE__ */ r.jsx(M, { variant: "subtle", compact: !0, onClick: () => i((a) => !a), children: e(n ? "common.actions.close" : "viz.pareto_chart.line_80_20.click_to_see_params") }),
17816
- /* @__PURE__ */ r.jsx(Yi, { in: n, children: /* @__PURE__ */ r.jsx(Un, { language: "typescript", noCopy: !0, colorScheme: "dark", children: s }) })
17816
+ /* @__PURE__ */ r.jsx(Ki, { in: n, children: /* @__PURE__ */ r.jsx(Un, { language: "typescript", noCopy: !0, colorScheme: "dark", children: s }) })
17817
17817
  ] });
17818
17818
  };
17819
17819
  function Wz({
@@ -18002,7 +18002,7 @@ function Uz({
18002
18002
  index: u
18003
18003
  }) => /* @__PURE__ */ r.jsx(Qz, { control: e, index: u, watch: t, variableOptions: o, yAxisOptions: c }) });
18004
18004
  }
18005
- function Yz({
18005
+ function Kz({
18006
18006
  context: e
18007
18007
  }) {
18008
18008
  const {
@@ -18058,7 +18058,7 @@ function Yz({
18058
18058
  ] })
18059
18059
  ] });
18060
18060
  }
18061
- function Kz(e) {
18061
+ function Yz(e) {
18062
18062
  const {
18063
18063
  dataZoom: t = Br,
18064
18064
  ...n
@@ -18188,7 +18188,7 @@ class iD extends Qe {
18188
18188
  })), this.version(2, (n) => ({
18189
18189
  ...n,
18190
18190
  version: 2,
18191
- config: Kz(n.config)
18191
+ config: Yz(n.config)
18192
18192
  })), this.version(3, (n) => ({
18193
18193
  ...n,
18194
18194
  version: 3,
@@ -18226,7 +18226,7 @@ const sD = {
18226
18226
  migrator: new iD(),
18227
18227
  name: "paretoChart",
18228
18228
  viewRender: Fz,
18229
- configRender: Yz,
18229
+ configRender: Kz,
18230
18230
  createConfig() {
18231
18231
  return {
18232
18232
  version: 9,
@@ -18363,7 +18363,7 @@ function dD({
18363
18363
  }, [a, o, s]), c = $.useMemo(() => oD(e, t, n), [e, t, n]), d = I(() => ({
18364
18364
  click: l
18365
18365
  }), [l]);
18366
- return !n || !i || !c.series.name ? null : /* @__PURE__ */ r.jsx(Ct, { echarts: xt, option: c, style: {
18366
+ return !n || !i || !c.series.name ? null : /* @__PURE__ */ r.jsx(Ct, { echarts: gt, option: c, style: {
18367
18367
  width: n,
18368
18368
  height: i
18369
18369
  }, onEvents: d, notMerge: !0, theme: "merico-light" });
@@ -18372,7 +18372,7 @@ function uD({
18372
18372
  context: e,
18373
18373
  instance: t
18374
18374
  }) {
18375
- const n = Yt({
18375
+ const n = Kt({
18376
18376
  vizManager: e.vizManager,
18377
18377
  instance: t
18378
18378
  }), {
@@ -18781,7 +18781,7 @@ function DD({
18781
18781
  }, [o, l, s]), d = I(() => ({
18782
18782
  click: c
18783
18783
  }), [c]), u = I(() => zD(lt({}, e, Oa), t), [e, t]);
18784
- return !n || !i ? null : /* @__PURE__ */ r.jsx(Ct, { echarts: xt, option: u, style: {
18784
+ return !n || !i ? null : /* @__PURE__ */ r.jsx(Ct, { echarts: gt, option: u, style: {
18785
18785
  width: n,
18786
18786
  height: i
18787
18787
  }, onEvents: d, notMerge: !0, theme: "merico-light" });
@@ -18790,7 +18790,7 @@ function MD({
18790
18790
  context: e,
18791
18791
  instance: t
18792
18792
  }) {
18793
- const n = Yt({
18793
+ const n = Kt({
18794
18794
  vizManager: e.vizManager,
18795
18795
  instance: t
18796
18796
  }), {
@@ -18840,7 +18840,7 @@ function LD({
18840
18840
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
18841
18841
  /* @__PURE__ */ r.jsx(Qi, { icon: /* @__PURE__ */ r.jsx(Vr, { size: 16 }), title: n("viz.radar_chart.additional_series.label"), children: /* @__PURE__ */ r.jsxs(fa, { i18nKey: "viz.radar_chart.additional_series.intro", children: [
18842
18842
  "By setting ",
18843
- /* @__PURE__ */ r.jsx(Yu, { children: "Series Name Key" }),
18843
+ /* @__PURE__ */ r.jsx(Ku, { children: "Series Name Key" }),
18844
18844
  ", you may add series from more queries to the chart."
18845
18845
  ] }) }),
18846
18846
  /* @__PURE__ */ r.jsx(Be, { control: e, watch: t, name: "additional_series", getItem: i, addButtonText: n("viz.radar_chart.additional_series.add"), deleteButtonText: n("viz.radar_chart.additional_series.delete"), renderTabName: s, children: ({
@@ -19222,7 +19222,7 @@ function Vf(e, t) {
19222
19222
  const n = B(e.x_axis.data_key), i = B(e.regression.y_axis_data_key);
19223
19223
  return k.uniqBy(t.map((s) => [s[n.columnKey], s[i.columnKey]]), 0);
19224
19224
  }
19225
- function YD(e, t) {
19225
+ function KD(e, t) {
19226
19226
  const {
19227
19227
  plot: n,
19228
19228
  transform: i
@@ -19243,7 +19243,7 @@ function YD(e, t) {
19243
19243
  }
19244
19244
  }];
19245
19245
  }
19246
- function KD(e, t) {
19246
+ function YD(e, t) {
19247
19247
  const {
19248
19248
  plot: n,
19249
19249
  transform: i,
@@ -19272,7 +19272,7 @@ function XD(e, t) {
19272
19272
  const {
19273
19273
  group_by_key: n
19274
19274
  } = e.regression;
19275
- return n ? KD(e, t) : YD(e, t);
19275
+ return n ? YD(e, t) : KD(e, t);
19276
19276
  }
19277
19277
  function JD(e) {
19278
19278
  return Array.isArray(e) || (e = [e]), e.map((t) => ({
@@ -19580,9 +19580,9 @@ function dM({
19580
19580
  const {
19581
19581
  t: n
19582
19582
  } = v();
19583
- return /* @__PURE__ */ r.jsxs(Ke, { shadow: "md", withinPortal: !0, zIndex: 320, children: [
19584
- /* @__PURE__ */ r.jsx(Ke.Target, { children: /* @__PURE__ */ r.jsx(M, { size: "xs", variant: "subtle", compact: !0, leftIcon: /* @__PURE__ */ r.jsx(Vr, { size: 14 }), children: n("viz.regression_chart.regression_info") }) }),
19585
- /* @__PURE__ */ r.jsx(Ke.Dropdown, { children: /* @__PURE__ */ r.jsx(ht, { children: /* @__PURE__ */ r.jsx(cM, { conf: e, queryData: t }) }) })
19583
+ return /* @__PURE__ */ r.jsxs(Ye, { shadow: "md", withinPortal: !0, zIndex: 320, children: [
19584
+ /* @__PURE__ */ r.jsx(Ye.Target, { children: /* @__PURE__ */ r.jsx(M, { size: "xs", variant: "subtle", compact: !0, leftIcon: /* @__PURE__ */ r.jsx(Vr, { size: 14 }), children: n("viz.regression_chart.regression_info") }) }),
19585
+ /* @__PURE__ */ r.jsx(Ye.Dropdown, { children: /* @__PURE__ */ r.jsx(ht, { children: /* @__PURE__ */ r.jsx(cM, { conf: e, queryData: t }) }) })
19586
19586
  ] });
19587
19587
  }
19588
19588
  function uM(e) {
@@ -19655,7 +19655,7 @@ function hM({
19655
19655
  };
19656
19656
  return !n || !i || !t ? null : /* @__PURE__ */ r.jsxs(Vt, { width: n, height: i, children: [
19657
19657
  /* @__PURE__ */ r.jsx(uM, { conf: t, queryData: s }),
19658
- /* @__PURE__ */ r.jsx(Ct, { echarts: xt, onChartReady: l, option: a, style: ms(n, i), notMerge: !0, theme: "merico-light" })
19658
+ /* @__PURE__ */ r.jsx(Ct, { echarts: gt, onChartReady: l, option: a, style: ms(n, i), notMerge: !0, theme: "merico-light" })
19659
19659
  ] });
19660
19660
  }
19661
19661
  function pM({
@@ -20512,7 +20512,7 @@ function UM(e, t, n) {
20512
20512
  function Su(e) {
20513
20513
  return e.trim().length > 0;
20514
20514
  }
20515
- function YM({
20515
+ function KM({
20516
20516
  conf: e,
20517
20517
  data: t,
20518
20518
  width: n,
@@ -20531,16 +20531,16 @@ function YM({
20531
20531
  }, [o, l, s]), d = I(() => ({
20532
20532
  click: c
20533
20533
  }), [c]), u = $.useMemo(() => UM(e, t, a), [e, t]);
20534
- return /* @__PURE__ */ r.jsx(Ct, { echarts: xt, option: u, style: {
20534
+ return /* @__PURE__ */ r.jsx(Ct, { echarts: gt, option: u, style: {
20535
20535
  width: n,
20536
20536
  height: i
20537
20537
  }, onEvents: d, notMerge: !0, theme: "merico-light" });
20538
20538
  }
20539
- function KM({
20539
+ function YM({
20540
20540
  context: e,
20541
20541
  instance: t
20542
20542
  }) {
20543
- const n = Yt({
20543
+ const n = Kt({
20544
20544
  vizManager: e.vizManager,
20545
20545
  instance: t
20546
20546
  }), {
@@ -20571,7 +20571,7 @@ function KM({
20571
20571
  /* @__PURE__ */ r.jsx(w, { ref: d, align: "left", size: "xs", pl: "sm", sx: {
20572
20572
  display: Su(a.stats.templates.top) ? "block" : "none"
20573
20573
  }, children: Object.values(m.top).map((b) => b) }),
20574
- /* @__PURE__ */ r.jsx(YM, { variables: s, width: yn(l), height: f, data: o, conf: a, interactionManager: n }),
20574
+ /* @__PURE__ */ r.jsx(KM, { variables: s, width: yn(l), height: f, data: o, conf: a, interactionManager: n }),
20575
20575
  /* @__PURE__ */ r.jsx(w, { ref: h, align: "left", size: "xs", pl: "sm", sx: {
20576
20576
  display: Su(a.stats.templates.bottom) ? "block" : "none"
20577
20577
  }, children: Object.values(m.bottom).map((b) => b) })
@@ -21483,7 +21483,7 @@ const DE = {
21483
21483
  displayGroup: "chart.groups.echarts_based_charts",
21484
21484
  migrator: new zE(),
21485
21485
  name: "scatterChart",
21486
- viewRender: KM,
21486
+ viewRender: YM,
21487
21487
  configRender: bE,
21488
21488
  createConfig() {
21489
21489
  return {
@@ -21493,7 +21493,7 @@ const DE = {
21493
21493
  },
21494
21494
  triggers: [Nf],
21495
21495
  translation: _E
21496
- }, Yo = {
21496
+ }, Ko = {
21497
21497
  content: "Use double curly brackets to wrap js code: {{ new Date().getTime() }}",
21498
21498
  vertical_align: "center"
21499
21499
  };
@@ -21668,11 +21668,11 @@ const BE = D(({
21668
21668
  context: e,
21669
21669
  instance: t
21670
21670
  }) => {
21671
- const n = Yt({
21671
+ const n = Kt({
21672
21672
  vizManager: e.vizManager,
21673
21673
  instance: t
21674
21674
  }), i = Ut(n.triggerManager, Bf.id), s = Xe(), {
21675
- value: a = Yo
21675
+ value: a = Ko
21676
21676
  } = te(e.instanceData, "config"), {
21677
21677
  panel: o
21678
21678
  } = Ht(), {
@@ -21682,7 +21682,7 @@ const BE = D(({
21682
21682
  width: d,
21683
21683
  height: u
21684
21684
  } = e.viewport, h = I(() => {
21685
- const m = Pe({}, a, Yo);
21685
+ const m = Pe({}, a, Ko);
21686
21686
  return m.content ? cc(m.content, c, s.payloadForViz, l) : "";
21687
21687
  }, [l, a, c, s.payloadForViz]), p = Fe(() => {
21688
21688
  i.forEach((m) => {
@@ -21771,11 +21771,11 @@ const HE = {
21771
21771
  }, {
21772
21772
  lang: "zh",
21773
21773
  resources: QE
21774
- }], YE = {
21774
+ }], KE = {
21775
21775
  createConfig() {
21776
21776
  return {
21777
21777
  version: 5,
21778
- config: Yo
21778
+ config: Ko
21779
21779
  };
21780
21780
  },
21781
21781
  displayName: "viz.stats.viz_name",
@@ -21792,7 +21792,7 @@ const HE = {
21792
21792
  group_key: "",
21793
21793
  levels: []
21794
21794
  };
21795
- function KE(e) {
21795
+ function YE(e) {
21796
21796
  const t = new Set(e.map((i) => i.parent_id)), n = new Set(e.map((i) => i.id));
21797
21797
  return t.forEach((i) => {
21798
21798
  i === null || n.has(i) || e.push({
@@ -21803,7 +21803,7 @@ function KE(e) {
21803
21803
  }), e;
21804
21804
  }
21805
21805
  function XE(e) {
21806
- const t = KE(e).map((s) => ({
21806
+ const t = YE(e).map((s) => ({
21807
21807
  ...s,
21808
21808
  children: []
21809
21809
  })), n = k.keyBy(t, (s) => s.id), i = [];
@@ -21949,7 +21949,7 @@ function sL({
21949
21949
  width: a,
21950
21950
  height: o
21951
21951
  } = e.viewport, l = I(() => iL(i, s, t), [i, s, t]);
21952
- return !a || !o ? null : /* @__PURE__ */ r.jsx(Vt, { width: a, height: o, children: /* @__PURE__ */ r.jsx(Ct, { echarts: xt, option: l, style: ms(a, o), notMerge: !0, theme: "merico-light" }) });
21952
+ return !a || !o ? null : /* @__PURE__ */ r.jsx(Vt, { width: a, height: o, children: /* @__PURE__ */ r.jsx(Ct, { echarts: gt, option: l, style: ms(a, o), notMerge: !0, theme: "merico-light" }) });
21953
21953
  }
21954
21954
  function aL({
21955
21955
  control: e,
@@ -22489,7 +22489,7 @@ function ML({
22489
22489
  rows: t
22490
22490
  }) {
22491
22491
  var l, c;
22492
- const n = Yy({
22492
+ const n = Ky({
22493
22493
  parentRef: e,
22494
22494
  size: t.length,
22495
22495
  estimateSize: Fe(() => 28, []),
@@ -22532,7 +22532,7 @@ const Ac = {
22532
22532
  }, EL = {
22533
22533
  column: ""
22534
22534
  };
22535
- function Yf(e, t) {
22535
+ function Kf(e, t) {
22536
22536
  const {
22537
22537
  value: n
22538
22538
  } = te(e.instanceData, "config"), i = {
@@ -22553,7 +22553,7 @@ function Yf(e, t) {
22553
22553
  }
22554
22554
  return i;
22555
22555
  }
22556
- function Kf(e) {
22556
+ function Yf(e) {
22557
22557
  const {
22558
22558
  value: t
22559
22559
  } = te(e.instanceData, "config");
@@ -22565,7 +22565,7 @@ function LL(e) {
22565
22565
  } = v(), {
22566
22566
  columnsFromConfig: n,
22567
22567
  columnsFromData: i
22568
- } = Yf(e.instance, e.sampleData), s = Kf(e.instance), a = n.length > 0 ? n : i, {
22568
+ } = Kf(e.instance, e.sampleData), s = Yf(e.instance), a = n.length > 0 ? n : i, {
22569
22569
  value: o,
22570
22570
  set: l
22571
22571
  } = te(e.trigger.triggerData, "config"), {
@@ -22580,7 +22580,7 @@ function LL(e) {
22580
22580
  return s ? /* @__PURE__ */ r.jsxs(C, { children: [
22581
22581
  /* @__PURE__ */ r.jsx(Qi, { icon: /* @__PURE__ */ r.jsx(Bs, { size: "1rem" }), color: "gray", children: /* @__PURE__ */ r.jsxs(fa, { i18nKey: "viz.table.click_cell.why_column_data_field", children: [
22582
22582
  "Option ",
22583
- /* @__PURE__ */ r.jsx(Yu, { children: "Use original data columns" }),
22583
+ /* @__PURE__ */ r.jsx(Ku, { children: "Use original data columns" }),
22584
22584
  " is enabled, you have to address trigger column by its data field"
22585
22585
  ] }) }),
22586
22586
  /* @__PURE__ */ r.jsx(E, { label: t("viz.table.click_cell.column_data_field"), value: c.toString(), onChange: (u) => d(u.currentTarget.value) })
@@ -22601,9 +22601,9 @@ function AL(e, t, n) {
22601
22601
  function RL(e) {
22602
22602
  const {
22603
22603
  columnsFromConfig: t
22604
- } = Yf(e.instance), {
22604
+ } = Kf(e.instance), {
22605
22605
  value: n
22606
- } = te(e.trigger.triggerData, "config"), i = Kf(e.instance);
22606
+ } = te(e.trigger.triggerData, "config"), i = Yf(e.instance);
22607
22607
  return /* @__PURE__ */ r.jsx(w, { children: AL(n, t, i) });
22608
22608
  }
22609
22609
  function ku(e, t, n) {
@@ -22674,9 +22674,9 @@ class PL {
22674
22674
  }
22675
22675
  }
22676
22676
  const OL = (e) => {
22677
- const t = Yt(e), n = Ut(t.triggerManager, Ac.id), {
22677
+ const t = Kt(e), n = Ut(t.triggerManager, Ac.id), {
22678
22678
  colorManager: i
22679
- } = Kn(Pn);
22679
+ } = Yn(Pn);
22680
22680
  return Fe((s) => new PL(e.getColIndex, s, n, t, i), [n, t, e.getColIndex]);
22681
22681
  };
22682
22682
  function Cu({
@@ -22722,7 +22722,7 @@ function Cu({
22722
22722
  return m.map((G) => {
22723
22723
  const N = r_(G.value_field);
22724
22724
  return Ee.accessor(N.columnKey, {
22725
- cell: (K) => /* @__PURE__ */ r.jsx(DL, { tableCellContext: f(K.cell), value: K.getValue(), type: G.value_type, row_data: K.row.original, ...G }),
22725
+ cell: (Y) => /* @__PURE__ */ r.jsx(DL, { tableCellContext: f(Y.cell), value: Y.getValue(), type: G.value_type, row_data: Y.row.original, ...G }),
22726
22726
  header: G.label,
22727
22727
  enableSorting: !0,
22728
22728
  meta: G,
@@ -22855,7 +22855,7 @@ const GL = de((e, t) => {
22855
22855
  t: n
22856
22856
  } = v(), {
22857
22857
  colorManager: i
22858
- } = Kn(Pn), [s, a] = J(Xf(e.value)), [o, l] = J(BL(i, e.value)), c = gd(o), [d, u] = J(WL(i, e.value)), h = gd(d), p = (b) => {
22858
+ } = Yn(Pn), [s, a] = J(Xf(e.value)), [o, l] = J(BL(i, e.value)), c = gd(o), [d, u] = J(WL(i, e.value)), h = gd(d), p = (b) => {
22859
22859
  var T, S, z;
22860
22860
  a(b || "none"), b === "static" ? (T = e.onChange) == null || T.call(e, c.current) : b === "none" || !b ? (S = e.onChange) == null || S.call(e, "none") : (z = e.onChange) == null || z.call(e, h.current);
22861
22861
  }, m = (b) => {
@@ -22969,7 +22969,7 @@ const GL = de((e, t) => {
22969
22969
  field: o
22970
22970
  }) => /* @__PURE__ */ r.jsx(GL, { ...o }) })
22971
22971
  ] });
22972
- }, YL = ({
22972
+ }, KL = ({
22973
22973
  control: e,
22974
22974
  watch: t
22975
22975
  }) => {
@@ -23004,7 +23004,7 @@ const GL = de((e, t) => {
23004
23004
  }) => /* @__PURE__ */ r.jsx(UL, { control: e, watch: t, index: l }) })
23005
23005
  ] });
23006
23006
  };
23007
- function KL({
23007
+ function YL({
23008
23008
  control: e,
23009
23009
  watch: t
23010
23010
  }) {
@@ -23108,9 +23108,9 @@ function JL({
23108
23108
  field: m
23109
23109
  }) => /* @__PURE__ */ r.jsx(NL, { label: t("viz.table.column.query_id"), description: t("viz.table.column.query_id_hint"), required: !0, ...m }) }),
23110
23110
  /* @__PURE__ */ r.jsx(O, { mt: 20, mb: 10, variant: "dashed" }),
23111
- /* @__PURE__ */ r.jsx(YL, { control: o, watch: c })
23111
+ /* @__PURE__ */ r.jsx(KL, { control: o, watch: c })
23112
23112
  ] }),
23113
- /* @__PURE__ */ r.jsx(_.Panel, { value: "Style", children: /* @__PURE__ */ r.jsx(KL, { control: o, watch: c }) })
23113
+ /* @__PURE__ */ r.jsx(_.Panel, { value: "Style", children: /* @__PURE__ */ r.jsx(YL, { control: o, watch: c }) })
23114
23114
  ] })
23115
23115
  ] });
23116
23116
  }
@@ -23332,7 +23332,7 @@ class oA extends Qe {
23332
23332
  }));
23333
23333
  }
23334
23334
  }
23335
- const Ko = {
23335
+ const Yo = {
23336
23336
  createConfig() {
23337
23337
  return {
23338
23338
  version: 7,
@@ -23822,7 +23822,7 @@ function DA(e) {
23822
23822
  }
23823
23823
  function MA(e) {
23824
23824
  const {
23825
- visualMap: t = Yn(),
23825
+ visualMap: t = Kn(),
23826
23826
  heat_block: {
23827
23827
  min: n,
23828
23828
  max: i,
@@ -23834,7 +23834,7 @@ function MA(e) {
23834
23834
  ...a,
23835
23835
  heat_block: s,
23836
23836
  visualMap: {
23837
- ...Yn(),
23837
+ ...Kn(),
23838
23838
  min: n,
23839
23839
  max: i
23840
23840
  }
@@ -23925,7 +23925,7 @@ const ex = {
23925
23925
  tooltip: {
23926
23926
  metrics: []
23927
23927
  },
23928
- visualMap: Yn()
23928
+ visualMap: Kn()
23929
23929
  };
23930
23930
  function PA(e, t, n) {
23931
23931
  if (!e)
@@ -24133,7 +24133,7 @@ function UA({
24133
24133
  i.range = e;
24134
24134
  }), t.setOption(n);
24135
24135
  }
24136
- function YA({
24136
+ function KA({
24137
24137
  conf: e,
24138
24138
  data: t,
24139
24139
  width: n,
@@ -24155,18 +24155,18 @@ function YA({
24155
24155
  click: c,
24156
24156
  legendselectchanged: UA
24157
24157
  }), [c]), u = $.useMemo(() => QA(e, t, a), [e, t]);
24158
- return /* @__PURE__ */ r.jsx(Ct, { echarts: xt, option: u, style: {
24158
+ return /* @__PURE__ */ r.jsx(Ct, { echarts: gt, option: u, style: {
24159
24159
  width: n,
24160
24160
  height: i
24161
24161
  }, onEvents: d, notMerge: !0, opts: {
24162
24162
  locale: e.calendar.locale
24163
24163
  }, theme: "merico-light" });
24164
24164
  }
24165
- function KA({
24165
+ function YA({
24166
24166
  context: e,
24167
24167
  instance: t
24168
24168
  }) {
24169
- const n = Yt({
24169
+ const n = Kt({
24170
24170
  vizManager: e.vizManager,
24171
24171
  instance: t
24172
24172
  }), {
@@ -24177,7 +24177,7 @@ function KA({
24177
24177
  width: l,
24178
24178
  height: c
24179
24179
  } = e.viewport;
24180
- return !a.calendar.data_key || !a.heat_block.data_key || !l || !c ? null : /* @__PURE__ */ r.jsx(Vt, { width: l, height: c, children: /* @__PURE__ */ r.jsx(YA, { variables: s, width: yn(l), height: vn(c), data: o, conf: a, interactionManager: n }) });
24180
+ return !a.calendar.data_key || !a.heat_block.data_key || !l || !c ? null : /* @__PURE__ */ r.jsx(Vt, { width: l, height: c, children: /* @__PURE__ */ r.jsx(KA, { variables: s, width: yn(l), height: vn(c), data: o, conf: a, interactionManager: n }) });
24181
24181
  }
24182
24182
  const XA = [{
24183
24183
  label: "中文",
@@ -24368,7 +24368,7 @@ const sR = {
24368
24368
  displayGroup: "chart.groups.echarts_based_charts",
24369
24369
  migrator: new iR(),
24370
24370
  name: "calendarHeatmap",
24371
- viewRender: KA,
24371
+ viewRender: YA,
24372
24372
  configRender: rR,
24373
24373
  createConfig: () => ({
24374
24374
  version: 4,
@@ -24795,7 +24795,7 @@ function CR({
24795
24795
  }, [o, l, s]), d = I(() => ({
24796
24796
  click: c
24797
24797
  }), [c]), u = $.useMemo(() => kR(e, t, a), [e, t]);
24798
- return /* @__PURE__ */ r.jsx(Ct, { echarts: xt, option: u, style: {
24798
+ return /* @__PURE__ */ r.jsx(Ct, { echarts: gt, option: u, style: {
24799
24799
  width: n,
24800
24800
  height: i
24801
24801
  }, onEvents: d, notMerge: !0, theme: "merico-light" });
@@ -24804,7 +24804,7 @@ function IR({
24804
24804
  context: e,
24805
24805
  instance: t
24806
24806
  }) {
24807
- const n = Yt({
24807
+ const n = Kt({
24808
24808
  vizManager: e.vizManager,
24809
24809
  instance: t
24810
24810
  }), {
@@ -25540,7 +25540,7 @@ function UR([e, t, n, i]) {
25540
25540
  }
25541
25541
  return s;
25542
25542
  }
25543
- function YR(e, t, n, i) {
25543
+ function KR(e, t, n, i) {
25544
25544
  const s = {};
25545
25545
  t.forEach((u) => {
25546
25546
  const h = k.countBy(n[u], (m) => m.level.diff), p = k.sum(Object.values(h));
@@ -25613,7 +25613,7 @@ function YR(e, t, n, i) {
25613
25613
  show_in_legend: !0
25614
25614
  }));
25615
25615
  }
25616
- function KR(e, t, n, i) {
25616
+ function YR(e, t, n, i) {
25617
25617
  const s = B(t.data_key), a = t.name, o = n.map((l) => {
25618
25618
  const c = k.sumBy(i[l], s.columnKey);
25619
25619
  return [l, c];
@@ -25633,7 +25633,7 @@ function XR(e, t, n, i) {
25633
25633
  barMinWidth: 5,
25634
25634
  barMaxWidth: 20
25635
25635
  };
25636
- return [GR(e, n, i), QR(e, n, i, o), ...YR(e, n, i, o), KR(e, t, n, i)];
25636
+ return [GR(e, n, i), QR(e, n, i, o), ...KR(e, n, i, o), YR(e, t, n, i)];
25637
25637
  }
25638
25638
  function JR(e, t) {
25639
25639
  const {
@@ -25932,9 +25932,9 @@ const o$ = {
25932
25932
  }
25933
25933
  };
25934
25934
  function d$() {
25935
- return /* @__PURE__ */ r.jsxs(Ke, { width: 400, shadow: "md", children: [
25936
- /* @__PURE__ */ r.jsx(Ke.Target, { children: /* @__PURE__ */ r.jsx(M, { size: "xs", variant: "subtle", compact: !0, leftIcon: /* @__PURE__ */ r.jsx(Vr, { size: 14 }), children: "指标说明" }) }),
25937
- /* @__PURE__ */ r.jsx(Ke.Dropdown, { children: /* @__PURE__ */ r.jsx(ot, { fontSize: 14, sx: c$, children: /* @__PURE__ */ r.jsxs("tbody", { children: [
25935
+ return /* @__PURE__ */ r.jsxs(Ye, { width: 400, shadow: "md", children: [
25936
+ /* @__PURE__ */ r.jsx(Ye.Target, { children: /* @__PURE__ */ r.jsx(M, { size: "xs", variant: "subtle", compact: !0, leftIcon: /* @__PURE__ */ r.jsx(Vr, { size: 14 }), children: "指标说明" }) }),
25937
+ /* @__PURE__ */ r.jsx(Ye.Dropdown, { children: /* @__PURE__ */ r.jsx(ot, { fontSize: 14, sx: c$, children: /* @__PURE__ */ r.jsxs("tbody", { children: [
25938
25938
  /* @__PURE__ */ r.jsxs("tr", { children: [
25939
25939
  /* @__PURE__ */ r.jsx("th", { children: "估算偏差" }),
25940
25940
  /* @__PURE__ */ r.jsx("td", { children: "使用斐波那契数列(1,2,3,5,8,13)估算故事点,每个数位为一个档位,计算issue实际故事点与估算故事点的档位偏差,即为估算偏差。如估算故事点为5,实际故事点为8,则估算偏差为-1。" })
@@ -25960,7 +25960,7 @@ function h$({
25960
25960
  metricKey: s
25961
25961
  }) {
25962
25962
  const a = $.useMemo(() => a$(e, s, t), [e, t, s]);
25963
- return /* @__PURE__ */ r.jsx(Ct, { echarts: xt, option: a, style: {
25963
+ return /* @__PURE__ */ r.jsx(Ct, { echarts: gt, option: a, style: {
25964
25964
  width: n,
25965
25965
  height: i
25966
25966
  }, notMerge: !0, theme: "merico-light" });
@@ -26597,7 +26597,7 @@ const O$ = {
26597
26597
  tooltip: {
26598
26598
  metrics: []
26599
26599
  },
26600
- visualMap: Yn()
26600
+ visualMap: Kn()
26601
26601
  };
26602
26602
  function F$({
26603
26603
  control: e,
@@ -26881,7 +26881,7 @@ function U$(e) {
26881
26881
  y_axis: n
26882
26882
  };
26883
26883
  }
26884
- function Y$(e) {
26884
+ function K$(e) {
26885
26885
  return {
26886
26886
  heat_block: function(i) {
26887
26887
  if (!e.heat_block.value_formatter)
@@ -26894,7 +26894,7 @@ function Y$(e) {
26894
26894
  }
26895
26895
  };
26896
26896
  }
26897
- function K$(e) {
26897
+ function Y$(e) {
26898
26898
  let t = 0;
26899
26899
  return e.x_axis.name && (t += 20), {
26900
26900
  top: 45,
@@ -27109,7 +27109,7 @@ function rP(e, t, n) {
27109
27109
  const i = n.reduce((b, T) => {
27110
27110
  const S = $n(T, t);
27111
27111
  return b[T.name] = Qt(T, S), b;
27112
- }, {}), s = U$(e), a = Y$(e), o = Ma(e.visualMap, i), {
27112
+ }, {}), s = U$(e), a = K$(e), o = Ma(e.visualMap, i), {
27113
27113
  min: l,
27114
27114
  max: c
27115
27115
  } = o, d = B(e.x_axis.data_key), u = B(e.y_axis.data_key), h = B(e.heat_block.data_key), p = k.uniq(t[d.queryID].map((b) => b[d.columnKey])), m = t[d.queryID].map((b) => {
@@ -27128,7 +27128,7 @@ function rP(e, t, n) {
27128
27128
  yAxis: nP(e, s.y_axis),
27129
27129
  series: X$(e, m),
27130
27130
  tooltip: eP(e, t, s, a),
27131
- grid: K$(e),
27131
+ grid: Y$(e),
27132
27132
  visualMap: o
27133
27133
  };
27134
27134
  }
@@ -27156,7 +27156,7 @@ function iP({
27156
27156
  }, [o, l, s]), d = I(() => ({
27157
27157
  click: c
27158
27158
  }), [c]), u = $.useMemo(() => rP(e, t, a), [e, t]);
27159
- return /* @__PURE__ */ r.jsx(Ct, { echarts: xt, option: u, style: {
27159
+ return /* @__PURE__ */ r.jsx(Ct, { echarts: gt, option: u, style: {
27160
27160
  width: n,
27161
27161
  height: i
27162
27162
  }, onEvents: d, notMerge: !0, theme: "merico-light" });
@@ -27165,7 +27165,7 @@ function sP({
27165
27165
  context: e,
27166
27166
  instance: t
27167
27167
  }) {
27168
- const n = Yt({
27168
+ const n = Kt({
27169
27169
  vizManager: e.vizManager,
27170
27170
  instance: t
27171
27171
  }), {
@@ -27205,7 +27205,7 @@ const aP = {
27205
27205
  }];
27206
27206
  function cP(e) {
27207
27207
  const {
27208
- visualMap: t = Yn(),
27208
+ visualMap: t = Kn(),
27209
27209
  heat_block: {
27210
27210
  min: n,
27211
27211
  max: i,
@@ -27217,7 +27217,7 @@ function cP(e) {
27217
27217
  ...a,
27218
27218
  heat_block: s,
27219
27219
  visualMap: {
27220
- ...Yn(),
27220
+ ...Kn(),
27221
27221
  min: n,
27222
27222
  max: i
27223
27223
  }
@@ -27299,7 +27299,7 @@ const uP = {
27299
27299
  value: e.value,
27300
27300
  type: "single",
27301
27301
  category: "basic"
27302
- })), pP = [r1, i1, o1, a1, s1, l1], rx = [Ko, YE, gA, DM, bL, yD, BR, _1, CC, DT, _z, sR, sD, cT, DE, QD, wM, TA, S$, uP, O$, FC], ix = () => ({
27302
+ })), pP = [r1, i1, o1, a1, s1, l1], rx = [Yo, KE, gA, DM, bL, yD, BR, _1, CC, DT, _z, sR, sD, cT, DE, QD, wM, TA, S$, uP, O$, FC], ix = () => ({
27303
27303
  id: "dashboard",
27304
27304
  version: yf,
27305
27305
  manifest: {
@@ -28005,7 +28005,7 @@ const yP = ({
28005
28005
  count: l.length
28006
28006
  }), children: /* @__PURE__ */ r.jsx(dr, { children: l.length }) })
28007
28007
  ] }),
28008
- /* @__PURE__ */ r.jsx(Ky, { disabled: e, allowClear: !0, className: f(m.root, "check-select"), dropdownClassName: f(m.dropdown, ""), onDropdownVisibleChange: S, transitionName: "rc-select-dropdown-slide-up", choiceTransitionName: "rc-select-selection__choice-zoom", style: a, clearIcon: () => /* @__PURE__ */ r.jsx(Mr, {}), value: l, onChange: c, onSelect: console.log, mode: "multiple", maxTagCount: 0, notFoundContent: /* @__PURE__ */ r.jsx(Gc, { errorMessage: u }), maxTagTextLength: 10, maxTagPlaceholder: (Z) => p("filter.widget.common.x_selected", {
28008
+ /* @__PURE__ */ r.jsx(Yy, { disabled: e, allowClear: !0, className: f(m.root, "check-select"), dropdownClassName: f(m.dropdown, ""), onDropdownVisibleChange: S, transitionName: "rc-select-dropdown-slide-up", choiceTransitionName: "rc-select-selection__choice-zoom", style: a, clearIcon: () => /* @__PURE__ */ r.jsx(Mr, {}), value: l, onChange: c, onSelect: console.log, mode: "multiple", maxTagCount: 0, notFoundContent: /* @__PURE__ */ r.jsx(Gc, { errorMessage: u }), maxTagTextLength: 10, maxTagPlaceholder: (Z) => p("filter.widget.common.x_selected", {
28009
28009
  count: Z.length
28010
28010
  }), searchValue: A, onSearch: L, filterOption: !1, children: P.map((Z) => /* @__PURE__ */ r.jsxs(Xy, { title: Z.label, children: [
28011
28011
  /* @__PURE__ */ r.jsx(w, { size: "sm", "data-role": "label", children: Z.label }),
@@ -28535,7 +28535,7 @@ const OP = ({
28535
28535
  };
28536
28536
  return /* @__PURE__ */ r.jsxs("form", { onSubmit: o(s.filters.setValues), children: [
28537
28537
  /* @__PURE__ */ r.jsx(OP, { opened: n, toggle: i }),
28538
- /* @__PURE__ */ r.jsx(Yi, { in: n, children: /* @__PURE__ */ r.jsxs(y, { className: "dashboard-filters", position: "apart", noWrap: !0, sx: u ? {} : {
28538
+ /* @__PURE__ */ r.jsx(Ki, { in: n, children: /* @__PURE__ */ r.jsxs(y, { className: "dashboard-filters", position: "apart", noWrap: !0, sx: u ? {} : {
28539
28539
  border: "1px solid #e9ecef",
28540
28540
  borderRadius: "4px",
28541
28541
  padding: "16px"
@@ -28874,7 +28874,7 @@ const HP = x.model("QueryMeta", {
28874
28874
  },
28875
28875
  // FIXME: should move these to LayoutItemRenderModel & solve type errors
28876
28876
  get contentModel() {
28877
- return _t(e).content;
28877
+ return jt(e).content;
28878
28878
  },
28879
28879
  get panel() {
28880
28880
  const {
@@ -28927,7 +28927,7 @@ const HP = x.model("QueryMeta", {
28927
28927
  list: x.optional(x.array(QP), [])
28928
28928
  }).views((e) => ({
28929
28929
  get contentModel() {
28930
- return _t(e).content;
28930
+ return jt(e).content;
28931
28931
  },
28932
28932
  get json() {
28933
28933
  const {
@@ -29029,7 +29029,7 @@ const HP = x.model("QueryMeta", {
29029
29029
  delay: 0
29030
29030
  }));
29031
29031
  }
29032
- })), YP = x.model("SQLSnippetMeta", {
29032
+ })), KP = x.model("SQLSnippetMeta", {
29033
29033
  key: x.string,
29034
29034
  value: x.string
29035
29035
  }).views((e) => ({
@@ -29082,7 +29082,7 @@ const dx = x.model("FilterCheckboxConfigMeta", {
29082
29082
  setDescription(t) {
29083
29083
  e.description = t;
29084
29084
  }
29085
- })), KP = () => dx.create({
29085
+ })), YP = () => dx.create({
29086
29086
  _name: "checkbox",
29087
29087
  description: "",
29088
29088
  default_value: !1
@@ -29151,10 +29151,25 @@ const JP = x.model("FilterDateRangeConfigMeta", {
29151
29151
  };
29152
29152
  },
29153
29153
  truthy(t) {
29154
- return Array.isArray(t) && t.length === 2 && t.every((n) => !!n);
29154
+ try {
29155
+ const {
29156
+ value: n
29157
+ } = t;
29158
+ return Array.isArray(n) && n.length === 2 && n.every((i) => !!i);
29159
+ } catch (n) {
29160
+ return console.error(n), !1;
29161
+ }
29155
29162
  },
29156
29163
  get filter() {
29157
- return jt(e);
29164
+ return xt(e);
29165
+ },
29166
+ get dateStringsValue() {
29167
+ try {
29168
+ const t = this.filter.value, [n, i] = t.value, s = n ? V(n).format(e.inputFormat) : "", a = i ? V(i).format(e.inputFormat) : "";
29169
+ return [s, a];
29170
+ } catch (t) {
29171
+ return console.error(t), ["", ""];
29172
+ }
29158
29173
  }
29159
29174
  })).actions((e) => ({
29160
29175
  setFilterValue(t) {
@@ -29232,10 +29247,10 @@ const JP = x.model("FilterDateRangeConfigMeta", {
29232
29247
  required: x.optional(x.boolean, !1)
29233
29248
  }).views((e) => ({
29234
29249
  get contentModel() {
29235
- return _t(e).content;
29250
+ return jt(e).content;
29236
29251
  },
29237
29252
  get filter() {
29238
- return jt(e);
29253
+ return xt(e);
29239
29254
  },
29240
29255
  get usingQuery() {
29241
29256
  return !!e.options_query_id;
@@ -29571,7 +29586,7 @@ const gx = x.compose("FilterTreeSelectConfigMeta", x.model({
29571
29586
  config: x.union(mx, px, gx, fx, dx, hx)
29572
29587
  }).views((e) => ({
29573
29588
  get contentModel() {
29574
- return _t(e).content;
29589
+ return jt(e).content;
29575
29590
  },
29576
29591
  get filters() {
29577
29592
  return this.contentModel.filters;
@@ -29658,7 +29673,7 @@ const gx = x.compose("FilterTreeSelectConfigMeta", x.model({
29658
29673
  e.config = xx();
29659
29674
  break;
29660
29675
  case Ne.Checkbox:
29661
- e.config = KP();
29676
+ e.config = YP();
29662
29677
  break;
29663
29678
  case Ne.DateRange:
29664
29679
  e.config = ZP();
@@ -29708,7 +29723,7 @@ const yx = x.model("ViewDivisionConfig", {
29708
29723
  const {
29709
29724
  enabled: t,
29710
29725
  func_content: n
29711
- } = e, i = jt(e, 2), s = _t(e);
29726
+ } = e, i = xt(e, 2), s = jt(e);
29712
29727
  if (!t)
29713
29728
  return i.name;
29714
29729
  try {
@@ -30024,7 +30039,7 @@ const kx = x.compose("ViewRenderModel", u2, x.model({
30024
30039
  return this.tabView ? this.tabView.view_id ?? "" : "";
30025
30040
  },
30026
30041
  get contentModel() {
30027
- return jt(e, 3);
30042
+ return xt(e, 3);
30028
30043
  },
30029
30044
  get panels() {
30030
30045
  if (e.type !== X.Tabs)
@@ -30181,7 +30196,7 @@ function yi(e, t) {
30181
30196
  }
30182
30197
  const Tx = GP.views((e) => ({
30183
30198
  get contentModel() {
30184
- return _t(e).content;
30199
+ return jt(e).content;
30185
30200
  }
30186
30201
  })).views((e) => ({
30187
30202
  get queries() {
@@ -30289,8 +30304,8 @@ function g2(e) {
30289
30304
  description: "<p></p>",
30290
30305
  queryIDs: [],
30291
30306
  viz: {
30292
- type: Ko.name,
30293
- conf: Ko.createConfig()
30307
+ type: Yo.name,
30308
+ conf: Yo.createConfig()
30294
30309
  },
30295
30310
  style: {
30296
30311
  border: {
@@ -30356,14 +30371,19 @@ const Lx = x.model("FiltersRenderModel", {
30356
30371
  get valuesString() {
30357
30372
  return JSON.stringify(e.values);
30358
30373
  },
30374
+ get filter() {
30375
+ return xt(e);
30376
+ },
30359
30377
  get valuesForPayload() {
30360
30378
  const t = {};
30361
30379
  return Object.entries(e.values).forEach(([n, i]) => {
30362
- t[n] = i, i && typeof i == "object" && "value" in i && "shortcut" in i && (t[n] = i.value);
30380
+ t[n] = i;
30381
+ const s = this.findByKey(n);
30382
+ s && s.config._name === "date-range" && (t[n] = s.config.dateStringsValue);
30363
30383
  }), t;
30364
30384
  },
30365
30385
  get contentModel() {
30366
- return _t(e).content;
30386
+ return jt(e).content;
30367
30387
  },
30368
30388
  get context() {
30369
30389
  return this.contentModel.payloadForSQL.context;
@@ -30390,6 +30410,9 @@ const Lx = x.model("FiltersRenderModel", {
30390
30410
  findByID(t) {
30391
30411
  return e.current.find((n) => n.id === t);
30392
30412
  },
30413
+ findByKey(t) {
30414
+ return e.current.find((n) => n.key === t);
30415
+ },
30393
30416
  findByIDSet(t) {
30394
30417
  return e.current.filter((n) => t.has(n.id));
30395
30418
  },
@@ -30466,7 +30489,7 @@ function Ax(e, t, n, i) {
30466
30489
  }
30467
30490
  const y2 = HP.views((e) => ({
30468
30491
  get rootModel() {
30469
- return _t(e);
30492
+ return jt(e);
30470
30493
  },
30471
30494
  get contentModel() {
30472
30495
  return this.rootModel.content;
@@ -30564,7 +30587,7 @@ const y2 = HP.views((e) => ({
30564
30587
  };
30565
30588
  },
30566
30589
  get queries() {
30567
- return jt(e, 2);
30590
+ return xt(e, 2);
30568
30591
  },
30569
30592
  get inUse() {
30570
30593
  return this.queries.isQueryInUse(e.id);
@@ -30748,7 +30771,7 @@ const y2 = HP.views((e) => ({
30748
30771
  return e.current.filter((t) => t.id && t.key).map((t) => t.json);
30749
30772
  },
30750
30773
  get contentModel() {
30751
- return jt(e, 1);
30774
+ return xt(e, 1);
30752
30775
  },
30753
30776
  get visibleQueryIDSet() {
30754
30777
  const {
@@ -30853,7 +30876,7 @@ const Px = x.model("LayoutsRenderModel", {
30853
30876
  return e.list.map((n) => n.jsonByPanelIDSet(t));
30854
30877
  },
30855
30878
  get root() {
30856
- return _t(e);
30879
+ return jt(e);
30857
30880
  },
30858
30881
  get contentModel() {
30859
30882
  return this.root.content;
@@ -30945,9 +30968,9 @@ const Px = x.model("LayoutsRenderModel", {
30945
30968
  delay: 0
30946
30969
  }));
30947
30970
  }
30948
- })), _2 = YP.views((e) => ({
30971
+ })), _2 = KP.views((e) => ({
30949
30972
  isADuplicatedKey(t) {
30950
- return !t || t === e.key ? !1 : !!jt(e, 2).findByKey(t);
30973
+ return !t || t === e.key ? !1 : !!xt(e, 2).findByKey(t);
30951
30974
  }
30952
30975
  })), Ox = x.model("SQLSnippetsRenderModel", {
30953
30976
  current: x.optional(x.array(_2), [])
@@ -31013,13 +31036,13 @@ class w2 {
31013
31036
  return !Me(Tn(this.origin), Tn(this.copy));
31014
31037
  }
31015
31038
  commit() {
31016
- bt(this.origin, Tn(this.copy));
31039
+ yt(this.origin, Tn(this.copy));
31017
31040
  }
31018
31041
  reset() {
31019
- bt(this.copy, Tn(this.origin));
31042
+ yt(this.copy, Tn(this.origin));
31020
31043
  }
31021
31044
  update(t) {
31022
- bt(this.copy, t);
31045
+ yt(this.copy, t);
31023
31046
  }
31024
31047
  }
31025
31048
  const S2 = (e) => new w2(e), k2 = D(() => {
@@ -31224,7 +31247,7 @@ function Nx(e) {
31224
31247
  }
31225
31248
  function qx(e) {
31226
31249
  const [t, n] = J(!1), i = sx().getRequired(Ze.instanceScope.migrator);
31227
- return Ki(async () => {
31250
+ return Yi(async () => {
31228
31251
  const s = i.status === Os.notStarted;
31229
31252
  n(i.status === Os.done), i.status === Os.notStarted && i.runMigration().then((a) => {
31230
31253
  a === Vx.migrated && s && (e == null || e());
@@ -31251,7 +31274,7 @@ function E2({
31251
31274
  message: "Your plugin configuration has been migrated to the latest version"
31252
31275
  });
31253
31276
  });
31254
- return Ki(async () => {
31277
+ return Yi(async () => {
31255
31278
  await i.instanceData.setItem(null, n.viz.conf);
31256
31279
  }, [i, n.viz.type]), s ? /* @__PURE__ */ r.jsx(n1, { ...t }) : /* @__PURE__ */ r.jsx(w, { children: "Checking update..." });
31257
31280
  }
@@ -31263,7 +31286,7 @@ function L2(e) {
31263
31286
  Bx(n, t);
31264
31287
  const {
31265
31288
  inEditMode: i
31266
- } = Kn(kl);
31289
+ } = Yn(kl);
31267
31290
  return qx(() => {
31268
31291
  i && $r({
31269
31292
  title: `${t.name} - Updated`,
@@ -31274,7 +31297,7 @@ function L2(e) {
31274
31297
  function A2(e, t) {
31275
31298
  const {
31276
31299
  vizManager: n
31277
- } = Kn(Pn), {
31300
+ } = Yn(Pn), {
31278
31301
  panel: {
31279
31302
  viz: i,
31280
31303
  title: s,
@@ -31480,7 +31503,7 @@ const Q2 = $.forwardRef(({
31480
31503
  "&:hover": {
31481
31504
  color: "#228be6"
31482
31505
  }
31483
- }, variant: "transparent", ...t, children: /* @__PURE__ */ r.jsx(jy, { size: 16 }) })), Y2 = Oh(Fh), K2 = D(({
31506
+ }, variant: "transparent", ...t, children: /* @__PURE__ */ r.jsx(jy, { size: 16 }) })), K2 = Oh(Fh), Y2 = D(({
31484
31507
  view: e,
31485
31508
  className: t = "layout"
31486
31509
  }) => {
@@ -31499,7 +31522,7 @@ const Q2 = $.forwardRef(({
31499
31522
  newItem: h
31500
31523
  }), i.updateCurrentLayoutItems(d);
31501
31524
  };
31502
- return /* @__PURE__ */ r.jsx(Y2, { className: `dashboard-layout ${t}`, rowHeight: 1, margin: [0, 0], isBounded: !0, isDraggable: !0, isResizable: !0, cols: i.cols, layouts: a, draggableHandle: ".react-grid-customDragHandle", resizeHandle: /* @__PURE__ */ r.jsx(U2, {}), onResize: o, breakpoints: i.breakpoints, onBreakpointChange: i.setCurrentBreakpoint, onResizeStop: l, onDragStop: c, width: i.currentLayoutPreviewWidth, children: s.map((d) => /* @__PURE__ */ r.jsxs("div", { "data-grid": d.layoutProperies, className: "panel-grid-item", children: [
31525
+ return /* @__PURE__ */ r.jsx(K2, { className: `dashboard-layout ${t}`, rowHeight: 1, margin: [0, 0], isBounded: !0, isDraggable: !0, isResizable: !0, cols: i.cols, layouts: a, draggableHandle: ".react-grid-customDragHandle", resizeHandle: /* @__PURE__ */ r.jsx(U2, {}), onResize: o, breakpoints: i.breakpoints, onBreakpointChange: i.setCurrentBreakpoint, onResizeStop: l, onDragStop: c, width: i.currentLayoutPreviewWidth, children: s.map((d) => /* @__PURE__ */ r.jsxs("div", { "data-grid": d.layoutProperies, className: "panel-grid-item", children: [
31503
31526
  /* @__PURE__ */ r.jsx(Q2, { h: d.h }),
31504
31527
  /* @__PURE__ */ r.jsx(V2, { view: e, panel: d.panel })
31505
31528
  ] }, d.id)) });
@@ -31636,7 +31659,7 @@ const Z2 = D(({
31636
31659
  /* @__PURE__ */ r.jsx(_.List, { grow: n.grow, children: n.tabsInOrder.map((i) => /* @__PURE__ */ r.jsx(_.Tab, { value: i.id, sx: tO(i), disabled: !i.view_id, children: i.name ?? i.id }, i.id)) }),
31637
31660
  n.tabsInOrder.map((i) => {
31638
31661
  const s = t.views.findByID(i.view_id);
31639
- return s ? /* @__PURE__ */ r.jsx(_.Panel, { value: i.id, children: /* @__PURE__ */ r.jsx(Yc, { view: s }) }, i.id) : null;
31662
+ return s ? /* @__PURE__ */ r.jsx(_.Panel, { value: i.id, children: /* @__PURE__ */ r.jsx(Kc, { view: s }) }, i.id) : null;
31640
31663
  })
31641
31664
  ] });
31642
31665
  }), rO = D(({
@@ -31829,7 +31852,7 @@ const sO = D(({
31829
31852
  /* @__PURE__ */ r.jsx(M, { mt: 20, variant: "subtle", color: "red", onClick: () => o(d), disabled: l, leftIcon: /* @__PURE__ */ r.jsx(fn, { size: 14 }), children: t("view.component.tabs.tab.delete") })
31830
31853
  ] })
31831
31854
  ] }),
31832
- u && /* @__PURE__ */ r.jsx(Yc, { view: u })
31855
+ u && /* @__PURE__ */ r.jsx(Kc, { view: u })
31833
31856
  ] }, c.id);
31834
31857
  })
31835
31858
  ] });
@@ -31862,9 +31885,9 @@ const sO = D(({
31862
31885
  position: "sticky",
31863
31886
  top: "0px"
31864
31887
  }, children: /* @__PURE__ */ r.jsx(ox, { view: t }) }),
31865
- /* @__PURE__ */ r.jsx(K2, { view: t })
31888
+ /* @__PURE__ */ r.jsx(Y2, { view: t })
31866
31889
  ] }) }) }) });
31867
- }), Yc = D(function({
31890
+ }), Kc = D(function({
31868
31891
  view: t
31869
31892
  }) {
31870
31893
  const {
@@ -32121,13 +32144,13 @@ const mO = x.compose("FiltersModel", Lx, x.model("FiltersModel", {
32121
32144
  error: x.frozen()
32122
32145
  }).views((e) => ({
32123
32146
  get keywords() {
32124
- return jt(e, 1);
32147
+ return xt(e, 1);
32125
32148
  },
32126
32149
  get keywordString() {
32127
32150
  const {
32128
32151
  table_name: t,
32129
32152
  table_schema: n
32130
- } = jt(e, 1);
32153
+ } = xt(e, 1);
32131
32154
  return `${n}||${t}`;
32132
32155
  }
32133
32156
  })).views((e) => ({
@@ -32420,7 +32443,7 @@ const kO = x.model("EditorModel", {
32420
32443
  get navOptions() {
32421
32444
  const {
32422
32445
  content: t
32423
- } = _t(e), {
32446
+ } = jt(e), {
32424
32447
  filters: n,
32425
32448
  views: i,
32426
32449
  sqlSnippets: s,
@@ -32674,17 +32697,17 @@ const kO = x.model("EditorModel", {
32674
32697
  }
32675
32698
  })).actions((e) => ({
32676
32699
  removeSelf() {
32677
- jt(e, 2).removeByID(e.id);
32700
+ xt(e, 2).removeByID(e.id);
32678
32701
  }
32679
32702
  })).actions((e) => ({
32680
32703
  moveToView(t, n) {
32681
- _t(e).content.views.findByID(t).removePanelID(e.id), _t(e).content.views.findByID(n).appendPanelID(e.id), _t(e).editor.setPath(["_VIEWS_", n, "_PANELS_", e.id]);
32704
+ jt(e).content.views.findByID(t).removePanelID(e.id), jt(e).content.views.findByID(n).appendPanelID(e.id), jt(e).editor.setPath(["_VIEWS_", n, "_PANELS_", e.id]);
32682
32705
  }
32683
32706
  })), TO = x.compose("PanelsModel", zx, x.model({
32684
32707
  list: x.optional(x.array(IO), [])
32685
32708
  })).views((e) => ({
32686
32709
  get contentModel() {
32687
- return _t(e).content;
32710
+ return jt(e).content;
32688
32711
  },
32689
32712
  editorOptions(t, n) {
32690
32713
  const i = e.panelsByIDs(n);
@@ -32792,7 +32815,7 @@ const kO = x.model("EditorModel", {
32792
32815
  }));
32793
32816
  },
32794
32817
  get editorOptions() {
32795
- const t = _t(e).content.panels;
32818
+ const t = jt(e).content.panels;
32796
32819
  return e.current.map((n) => ({
32797
32820
  label: n.name,
32798
32821
  value: n.id,
@@ -32830,7 +32853,7 @@ const kO = x.model("EditorModel", {
32830
32853
  if (n === -1)
32831
32854
  return;
32832
32855
  const i = e.current[n];
32833
- _t(e).content.panels.removeByIDs(i.panelIDs), e.current.splice(n, 1);
32856
+ jt(e).content.panels.removeByIDs(i.panelIDs), e.current.splice(n, 1);
32834
32857
  },
32835
32858
  replaceByIndex(t, n) {
32836
32859
  e.current.splice(t, 1, n);
@@ -32845,7 +32868,7 @@ const kO = x.model("EditorModel", {
32845
32868
  e.current.length !== 1 && (this.removeByID(e.idOfVIE), this.setIDOfVIE(e.current[0].id));
32846
32869
  }
32847
32870
  }));
32848
- function Yx(e) {
32871
+ function Kx(e) {
32849
32872
  const t = e.length > 0 ? [e[0].id] : [], n = e.length > 0 ? e[0].id : "";
32850
32873
  return {
32851
32874
  current: e.map((s) => {
@@ -32938,14 +32961,14 @@ const MO = x.model({
32938
32961
  return !Me(xe(e, t), xe(e.origin, t));
32939
32962
  },
32940
32963
  get context() {
32941
- const t = jt(e).context.current;
32964
+ const t = xt(e).context.current;
32942
32965
  return {
32943
32966
  ...e.mock_context.current,
32944
32967
  ...t
32945
32968
  };
32946
32969
  },
32947
32970
  get payloadForSQL() {
32948
- const t = jt(e).globalSQLSnippets, n = {
32971
+ const t = xt(e).globalSQLSnippets, n = {
32949
32972
  context: this.context,
32950
32973
  filters: e.filters.valuesForPayload
32951
32974
  };
@@ -32956,7 +32979,7 @@ const MO = x.model({
32956
32979
  };
32957
32980
  },
32958
32981
  get payloadForViz() {
32959
- const t = jt(e).context.current;
32982
+ const t = xt(e).context.current;
32960
32983
  return {
32961
32984
  context: {
32962
32985
  ...e.mock_context.current,
@@ -33170,10 +33193,10 @@ const MO = x.model({
33170
33193
  // setupAutoSave();
33171
33194
  // },
33172
33195
  reset() {
33173
- bt(e.filters.current, e.origin.filters.current), bt(e.queries.current, e.origin.queries.current), bt(e.sqlSnippets.current, e.origin.sqlSnippets.current), bt(e.views.current, e.origin.views.current), bt(e.panels.list, e.origin.panels.list), bt(e.layouts.list, e.origin.layouts.list), e.mock_context.current = e.origin.mock_context.current;
33196
+ yt(e.filters.current, e.origin.filters.current), yt(e.queries.current, e.origin.queries.current), yt(e.sqlSnippets.current, e.origin.sqlSnippets.current), yt(e.views.current, e.origin.views.current), yt(e.panels.list, e.origin.panels.list), yt(e.layouts.list, e.origin.layouts.list), e.mock_context.current = e.origin.mock_context.current;
33174
33197
  },
33175
33198
  resetFilters() {
33176
- bt(e.filters.current, e.origin.filters.current);
33199
+ yt(e.filters.current, e.origin.filters.current);
33177
33200
  },
33178
33201
  updateCurrent(t) {
33179
33202
  const {
@@ -33194,9 +33217,9 @@ const MO = x.model({
33194
33217
  mock_context: h = {}
33195
33218
  }
33196
33219
  } = s;
33197
- e.id = n, e.name = i, e.version = a, bt(e.filters.current, o), bt(e.views.current, Yx(l).current), bt(e.panels.list, c), bt(e.queries.current, d), bt(e.sqlSnippets.current, u), e.mock_context.current = h;
33220
+ e.id = n, e.name = i, e.version = a, yt(e.filters.current, o), yt(e.views.current, Kx(l).current), yt(e.panels.list, c), yt(e.queries.current, d), yt(e.sqlSnippets.current, u), e.mock_context.current = h;
33198
33221
  }
33199
- })), Kx = x.snapshotProcessor(MO, {
33222
+ })), Yx = x.snapshotProcessor(MO, {
33200
33223
  preProcessor(e) {
33201
33224
  return {
33202
33225
  ...e,
@@ -33214,7 +33237,7 @@ const MO = x.model({
33214
33237
  }
33215
33238
  });
33216
33239
  function l5(e, t) {
33217
- t.filters && bt(e.filters.current, t.filters);
33240
+ t.filters && yt(e.filters.current, t.filters);
33218
33241
  }
33219
33242
  function EO({
33220
33243
  id: e,
@@ -33238,7 +33261,7 @@ function EO({
33238
33261
  mock_context: b = {}
33239
33262
  }
33240
33263
  } = a;
33241
- return Kx.create({
33264
+ return Yx.create({
33242
33265
  id: e,
33243
33266
  name: t,
33244
33267
  dashboard_id: n,
@@ -33253,7 +33276,7 @@ function EO({
33253
33276
  current: f
33254
33277
  },
33255
33278
  mock_context: cx(b),
33256
- views: Yx(u),
33279
+ views: Kx(u),
33257
33280
  panels: {
33258
33281
  list: h
33259
33282
  },
@@ -33267,7 +33290,7 @@ const LO = x.model({
33267
33290
  id: x.identifier,
33268
33291
  name: x.string,
33269
33292
  group: x.string,
33270
- content: Kx,
33293
+ content: Yx,
33271
33294
  content_id: x.string,
33272
33295
  datasources: wO,
33273
33296
  globalSQLSnippets: wx,
@@ -35745,7 +35768,7 @@ const PO = D(({
35745
35768
  /* @__PURE__ */ r.jsx(w, { pl: 10, size: "sm", fw: 500, c: "dimmed", ta: "center", children: t("mock_context.label") }),
35746
35769
  /* @__PURE__ */ r.jsx(Wt, { size: "sm", pl: 10, ff: "monospace", icon: /* @__PURE__ */ r.jsx(cl, { size: 10 }), children: n.map((s) => /* @__PURE__ */ r.jsx(Wt.Item, { children: s }, s)) })
35747
35770
  ] });
35748
- }, YO = ({
35771
+ }, KO = ({
35749
35772
  content: e
35750
35773
  }) => e ? /* @__PURE__ */ r.jsxs(R, { children: [
35751
35774
  /* @__PURE__ */ r.jsx(O, { mt: 20, mb: 10, variant: "dashed" }),
@@ -35759,7 +35782,7 @@ const PO = D(({
35759
35782
  /* @__PURE__ */ r.jsx(UO, { content: e })
35760
35783
  ] })
35761
35784
  ] }) : null;
35762
- function KO(e) {
35785
+ function YO(e) {
35763
35786
  if (e.target === null)
35764
35787
  throw new Error("FileReader failed with null result");
35765
35788
  if (typeof e.target.result != "string")
@@ -35815,7 +35838,7 @@ const XO = D(({
35815
35838
  const A = new FileReader();
35816
35839
  A.readAsText(p, "UTF-8"), A.onload = (L) => {
35817
35840
  try {
35818
- const P = KO(L);
35841
+ const P = YO(L);
35819
35842
  l("content", P), u("content");
35820
35843
  } catch (P) {
35821
35844
  console.error(P), d("content", {
@@ -35851,7 +35874,7 @@ const XO = D(({
35851
35874
  }, children: f == null ? void 0 : f.version })
35852
35875
  ] })
35853
35876
  ] }) }) : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
35854
- /* @__PURE__ */ r.jsx(YO, { content: f }),
35877
+ /* @__PURE__ */ r.jsx(KO, { content: f }),
35855
35878
  /* @__PURE__ */ r.jsx(y, { position: "right", my: "md", children: /* @__PURE__ */ r.jsx(M, { type: "submit", color: "green", disabled: b, children: i("common.actions.confirm") }) })
35856
35879
  ] })
35857
35880
  ] }) });
@@ -35989,12 +36012,12 @@ function eg(e, t, n) {
35989
36012
  function iF(e, t, n) {
35990
36013
  return e * t + (e - 1) * n;
35991
36014
  }
35992
- const ha = 25, Kc = 40, tg = 25, Xc = 350, sF = 150, aF = 150, ng = 150, Nu = 300, Fs = 40, rg = 25, oF = 300;
36015
+ const ha = 25, Yc = 40, tg = 25, Xc = 350, sF = 150, aF = 150, ng = 150, Nu = 300, Fs = 40, rg = 25, oF = 300;
35993
36016
  function lF(e, t) {
35994
36017
  const n = k.keyBy(t, (s) => s.id), i = [];
35995
36018
  return e.current.forEach((s, a) => {
35996
36019
  s.panelIDs.forEach((o, l) => {
35997
- const c = eg(l, Fs, rg) + Kc, d = n[o];
36020
+ const c = eg(l, Fs, rg) + Yc, d = n[o];
35998
36021
  if (!d) {
35999
36022
  i.push({
36000
36023
  id: o,
@@ -36045,7 +36068,7 @@ const cF = {
36045
36068
  }, dF = hO;
36046
36069
  function uF(e) {
36047
36070
  return e.current.map((n, i) => {
36048
- const s = iF(n.panelIDs.length, Fs, rg) + Kc + tg;
36071
+ const s = iF(n.panelIDs.length, Fs, rg) + Yc + tg;
36049
36072
  let a = [];
36050
36073
  return n.type === X.Tabs && (a = n.config.tabsInOrder.map((l) => l.view_id)), {
36051
36074
  id: n.id,
@@ -36097,7 +36120,7 @@ function mF({
36097
36120
  o.position.y = s, o.position.x = ha;
36098
36121
  const l = o.style.height;
36099
36122
  return s + l + 20;
36100
- }, Kc));
36123
+ }, Yc));
36101
36124
  });
36102
36125
  }
36103
36126
  function fF({
@@ -36170,9 +36193,9 @@ function yF(e) {
36170
36193
  return bF(l);
36171
36194
  }
36172
36195
  const bo = {
36173
- "builtin:op:open-link": /* @__PURE__ */ r.jsx(Ka, { color: "blue", size: 20, radius: "xl", children: /* @__PURE__ */ r.jsx(Db, { size: 14 }) }),
36174
- "builtin:op:set_filter_values": /* @__PURE__ */ r.jsx(Ka, { color: "orange", size: 20, radius: "xl", children: /* @__PURE__ */ r.jsx(Mb, { size: 14 }) }),
36175
- "builtin:op:clear_filter_values": /* @__PURE__ */ r.jsx(Ka, { color: "orange", size: 20, radius: "xl", children: /* @__PURE__ */ r.jsx(uh, { size: 14 }) })
36196
+ "builtin:op:open-link": /* @__PURE__ */ r.jsx(Ya, { color: "blue", size: 20, radius: "xl", children: /* @__PURE__ */ r.jsx(Db, { size: 14 }) }),
36197
+ "builtin:op:set_filter_values": /* @__PURE__ */ r.jsx(Ya, { color: "orange", size: 20, radius: "xl", children: /* @__PURE__ */ r.jsx(Mb, { size: 14 }) }),
36198
+ "builtin:op:clear_filter_values": /* @__PURE__ */ r.jsx(Ya, { color: "orange", size: 20, radius: "xl", children: /* @__PURE__ */ r.jsx(uh, { size: 14 }) })
36176
36199
  };
36177
36200
  function vF(e) {
36178
36201
  const t = [];
@@ -36236,9 +36259,9 @@ const _F = Ag(({
36236
36259
  top: 0,
36237
36260
  right: 0
36238
36261
  }, children: /* @__PURE__ */ r.jsx(Sy, { size: 12 }) }),
36239
- /* @__PURE__ */ r.jsxs(Ke, { shadow: "xl", withinPortal: !0, children: [
36240
- /* @__PURE__ */ r.jsx(Ke.Target, { children: /* @__PURE__ */ r.jsx(w, { children: e.label }) }),
36241
- /* @__PURE__ */ r.jsx(Ke.Dropdown, { children: /* @__PURE__ */ r.jsx(Wt, { spacing: "xs", size: "sm", center: !0, children: a.map((o) => /* @__PURE__ */ r.jsx(Wt.Item, { icon: o.icon, children: o.text }, o.key)) }) })
36262
+ /* @__PURE__ */ r.jsxs(Ye, { shadow: "xl", withinPortal: !0, children: [
36263
+ /* @__PURE__ */ r.jsx(Ye.Target, { children: /* @__PURE__ */ r.jsx(w, { children: e.label }) }),
36264
+ /* @__PURE__ */ r.jsx(Ye.Dropdown, { children: /* @__PURE__ */ r.jsx(Wt, { spacing: "xs", size: "sm", center: !0, children: a.map((o) => /* @__PURE__ */ r.jsx(Wt.Item, { icon: o.icon, children: o.text }, o.key)) }) })
36242
36265
  ] }),
36243
36266
  /* @__PURE__ */ r.jsx(jd, { type: "source", position: n, isConnectable: t })
36244
36267
  ] });
@@ -36544,7 +36567,7 @@ const IF = D(() => {
36544
36567
  } = v(), [t, n] = J(!1);
36545
36568
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
36546
36569
  /* @__PURE__ */ r.jsx(M, { variant: "subtle", compact: !0, onClick: () => n((i) => !i), children: e(t ? "common.actions.close" : "filter.widget.common.see_data_structure") }),
36547
- /* @__PURE__ */ r.jsx(Yi, { in: t, children: /* @__PURE__ */ r.jsx(Un, { language: "typescript", noCopy: !0, colorScheme: "dark", children: AF }) })
36570
+ /* @__PURE__ */ r.jsx(Ki, { in: t, children: /* @__PURE__ */ r.jsx(Un, { language: "typescript", noCopy: !0, colorScheme: "dark", children: AF }) })
36548
36571
  ] });
36549
36572
  }, RF = D(function({
36550
36573
  filter: t
@@ -36716,7 +36739,7 @@ const IF = D(() => {
36716
36739
  } = v(), [t, n] = J(!1);
36717
36740
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
36718
36741
  /* @__PURE__ */ r.jsx(M, { variant: "subtle", compact: !0, onClick: () => n((i) => !i), children: e(t ? "common.actions.close" : "filter.widget.common.see_data_structure") }),
36719
- /* @__PURE__ */ r.jsx(Yi, { in: t, children: /* @__PURE__ */ r.jsx(Un, { language: "typescript", noCopy: !0, colorScheme: "dark", children: OF }) })
36742
+ /* @__PURE__ */ r.jsx(Ki, { in: t, children: /* @__PURE__ */ r.jsx(Un, { language: "typescript", noCopy: !0, colorScheme: "dark", children: OF }) })
36720
36743
  ] });
36721
36744
  }, VF = D(function({
36722
36745
  filter: t
@@ -36983,7 +37006,7 @@ const IF = D(() => {
36983
37006
  maxWidth: "unset !important"
36984
37007
  }, children: [
36985
37008
  /* @__PURE__ */ r.jsx(w, { children: e("mock_context.hint") }),
36986
- /* @__PURE__ */ r.jsx(Ku, { validationError: "Invalid json", formatOnBlur: !0, autosize: !0, minRows: 30, value: n, onChange: i, sx: {
37009
+ /* @__PURE__ */ r.jsx(Yu, { validationError: "Invalid json", formatOnBlur: !0, autosize: !0, minRows: 30, value: n, onChange: i, sx: {
36987
37010
  flexGrow: 1
36988
37011
  } })
36989
37012
  ] }),
@@ -37035,10 +37058,10 @@ const IF = D(() => {
37035
37058
  ] }),
37036
37059
  /* @__PURE__ */ r.jsx(me, { ml: 6, label: e("panel.style.border"), checked: i.border.enabled, onChange: (s) => i.border.setEnabled(s.currentTarget.checked) })
37037
37060
  ] }) });
37038
- }), YF = () => /* @__PURE__ */ r.jsxs("span", { className: "mantine-103svbs mantine-InputWrapper-required mantine-Select-required", "aria-hidden": "true", children: [
37061
+ }), KF = () => /* @__PURE__ */ r.jsxs("span", { className: "mantine-103svbs mantine-InputWrapper-required mantine-Select-required", "aria-hidden": "true", children: [
37039
37062
  " ",
37040
37063
  "*"
37041
- ] }), KF = D(() => {
37064
+ ] }), YF = D(() => {
37042
37065
  const {
37043
37066
  t: e
37044
37067
  } = v(), {
@@ -37056,7 +37079,7 @@ const IF = D(() => {
37056
37079
  /* @__PURE__ */ r.jsxs(y, { align: "center", children: [
37057
37080
  /* @__PURE__ */ r.jsxs(w, { size: 14, fw: 500, children: [
37058
37081
  e("panel.panel_name"),
37059
- /* @__PURE__ */ r.jsx(YF, {})
37082
+ /* @__PURE__ */ r.jsx(KF, {})
37060
37083
  ] }),
37061
37084
  /* @__PURE__ */ r.jsx(re, { variant: "subtle", color: "blue", disabled: !a || l, onClick: o, children: /* @__PURE__ */ r.jsx(tt, { size: 18 }) })
37062
37085
  ] }),
@@ -37084,7 +37107,7 @@ function JF() {
37084
37107
  }, children: [
37085
37108
  /* @__PURE__ */ r.jsx(UF, {}),
37086
37109
  /* @__PURE__ */ r.jsx(O, { label: e("common.info"), labelPosition: "center", variant: "dashed" }),
37087
- /* @__PURE__ */ r.jsx(KF, {}),
37110
+ /* @__PURE__ */ r.jsx(YF, {}),
37088
37111
  /* @__PURE__ */ r.jsx(XF, {}),
37089
37112
  /* @__PURE__ */ r.jsx(QF, {})
37090
37113
  ] });
@@ -37335,7 +37358,7 @@ function lV() {
37335
37358
  t: e
37336
37359
  } = v(), {
37337
37360
  vizManager: t
37338
- } = Kn(Pn);
37361
+ } = Yn(Pn);
37339
37362
  return I(() => {
37340
37363
  const n = t.availableVizList.map((i) => ({
37341
37364
  value: i.name,
@@ -37379,7 +37402,7 @@ function uV() {
37379
37402
  }
37380
37403
  } = Ot(), {
37381
37404
  vizManager: c
37382
- } = Kn(Pn), d = {
37405
+ } = Yn(Pn), d = {
37383
37406
  name: s,
37384
37407
  title: i,
37385
37408
  description: o,
@@ -37401,7 +37424,7 @@ const hV = D(() => {
37401
37424
  }
37402
37425
  } = Ot(), {
37403
37426
  vizManager: n
37404
- } = Kn(Pn), i = $.useCallback((d) => {
37427
+ } = Yn(Pn), i = $.useCallback((d) => {
37405
37428
  if (d === t.type)
37406
37429
  return;
37407
37430
  const u = dV(n, d);
@@ -37431,7 +37454,7 @@ const hV = D(() => {
37431
37454
  maxHeight: "100%",
37432
37455
  overflow: "auto"
37433
37456
  }, children: c }),
37434
- !c && /* @__PURE__ */ r.jsx(Ku, { minRows: 20, label: "Config", value: JSON.stringify(t.conf, null, 2), onChange: s })
37457
+ !c && /* @__PURE__ */ r.jsx(Yu, { minRows: 20, label: "Config", value: JSON.stringify(t.conf, null, 2), onChange: s })
37435
37458
  ] })
37436
37459
  ] });
37437
37460
  }), pV = D(({
@@ -38417,7 +38440,7 @@ const VV = D(({
38417
38440
  }
38418
38441
  }, ...t, children: n("data_source.see_table_structure") })
38419
38442
  ] });
38420
- }), YV = de(({
38443
+ }), KV = de(({
38421
38444
  label: e,
38422
38445
  type: t,
38423
38446
  ...n
@@ -38436,7 +38459,7 @@ const VV = D(({
38436
38459
  ] }) : /* @__PURE__ */ r.jsxs(y, { position: "apart", ref: i, ...n, children: [
38437
38460
  /* @__PURE__ */ r.jsx(w, { children: e }),
38438
38461
  /* @__PURE__ */ r.jsx(w, { children: t })
38439
- ] })), KV = D(({
38462
+ ] })), YV = D(({
38440
38463
  value: e,
38441
38464
  onChange: t
38442
38465
  }) => {
@@ -38471,7 +38494,7 @@ const VV = D(({
38471
38494
  size: "xs",
38472
38495
  px: 10
38473
38496
  } })
38474
- ] }), itemComponent: YV, rightSection: d ? /* @__PURE__ */ r.jsx(w, { size: "xs", color: "dimmed", children: d.type }) : void 0, rightSectionWidth: 85, maxDropdownHeight: 500, styles: {
38497
+ ] }), itemComponent: KV, rightSection: d ? /* @__PURE__ */ r.jsx(w, { size: "xs", color: "dimmed", children: d.type }) : void 0, rightSectionWidth: 85, maxDropdownHeight: 500, styles: {
38475
38498
  root: {
38476
38499
  flex: 1
38477
38500
  },
@@ -38508,7 +38531,7 @@ const VV = D(({
38508
38531
  }, rightSection: /* @__PURE__ */ r.jsx(re, { variant: "filled", color: "blue", size: "sm", onClick: () => e.setName(n), disabled: n === e.name, children: /* @__PURE__ */ r.jsx(tt, { size: 16 }) }), onBlur: () => {
38509
38532
  e.setName(n);
38510
38533
  } }),
38511
- /* @__PURE__ */ r.jsx(KV, { value: {
38534
+ /* @__PURE__ */ r.jsx(YV, { value: {
38512
38535
  type: e.type,
38513
38536
  key: e.key
38514
38537
  }, onChange: ({
@@ -38527,9 +38550,9 @@ const VV = D(({
38527
38550
  function JV({
38528
38551
  content: e
38529
38552
  }) {
38530
- return /* @__PURE__ */ r.jsxs(Ke, { width: "60vw", shadow: "md", children: [
38531
- /* @__PURE__ */ r.jsx(Ke.Target, { children: /* @__PURE__ */ r.jsx(re, { size: 16, color: "blue", children: /* @__PURE__ */ r.jsx(fh, {}) }) }),
38532
- /* @__PURE__ */ r.jsx(Ke.Dropdown, { children: /* @__PURE__ */ r.jsx(Un, { language: "sql", noCopy: !0, withLineNumbers: !0, children: e }) })
38553
+ return /* @__PURE__ */ r.jsxs(Ye, { width: "60vw", shadow: "md", children: [
38554
+ /* @__PURE__ */ r.jsx(Ye.Target, { children: /* @__PURE__ */ r.jsx(re, { size: 16, color: "blue", children: /* @__PURE__ */ r.jsx(fh, {}) }) }),
38555
+ /* @__PURE__ */ r.jsx(Ye.Dropdown, { children: /* @__PURE__ */ r.jsx(Un, { language: "sql", noCopy: !0, withLineNumbers: !0, children: e }) })
38533
38556
  ] });
38534
38557
  }
38535
38558
  const ZV = D(() => {
@@ -38681,9 +38704,9 @@ WHERE
38681
38704
  const {
38682
38705
  t
38683
38706
  } = v(), n = I(() => k.groupBy(e.dependencies, "type"), [e.dependencies]), i = I(() => e.dependencies.some((a) => !a.valid), [e.dependencies]), s = e.dependencies.length > 0;
38684
- return s ? /* @__PURE__ */ r.jsxs(Ke, { withinPortal: !0, zIndex: 340, shadow: "md", disabled: !s, children: [
38685
- /* @__PURE__ */ r.jsx(Ke.Target, { children: /* @__PURE__ */ r.jsx(M, { size: "xs", variant: "subtle", color: i ? "red" : "green", disabled: !s, leftIcon: i ? /* @__PURE__ */ r.jsx(mh, { size: 16 }) : /* @__PURE__ */ r.jsx(Vb, { size: 16 }), children: t("query.dependency.label") }) }),
38686
- /* @__PURE__ */ r.jsx(Ke.Dropdown, { children: /* @__PURE__ */ r.jsx(Wt, { spacing: "md", size: 14, listStyleType: "none", children: Object.entries(n).map(([a, o]) => /* @__PURE__ */ r.jsxs(Wt.Item, { children: [
38707
+ return s ? /* @__PURE__ */ r.jsxs(Ye, { withinPortal: !0, zIndex: 340, shadow: "md", disabled: !s, children: [
38708
+ /* @__PURE__ */ r.jsx(Ye.Target, { children: /* @__PURE__ */ r.jsx(M, { size: "xs", variant: "subtle", color: i ? "red" : "green", disabled: !s, leftIcon: i ? /* @__PURE__ */ r.jsx(mh, { size: 16 }) : /* @__PURE__ */ r.jsx(Vb, { size: 16 }), children: t("query.dependency.label") }) }),
38709
+ /* @__PURE__ */ r.jsx(Ye.Dropdown, { children: /* @__PURE__ */ r.jsx(Wt, { spacing: "md", size: 14, listStyleType: "none", children: Object.entries(n).map(([a, o]) => /* @__PURE__ */ r.jsxs(Wt.Item, { children: [
38687
38710
  /* @__PURE__ */ r.jsx(w, { fw: "bold", ff: "monospace", children: t(`${a}.label`) }),
38688
38711
  /* @__PURE__ */ r.jsx(Wt, { withPadding: !0, size: 14, sx: {
38689
38712
  fontFamily: "monospace",
@@ -39467,7 +39490,7 @@ const RN = D(() => /* @__PURE__ */ r.jsx(C, { sx: {
39467
39490
  borderTop: "1px solid #eee"
39468
39491
  }, children: /* @__PURE__ */ r.jsx(M, { size: "xs", color: "red", leftIcon: /* @__PURE__ */ r.jsx(ol, { size: 18 }), onClick: () => t.editor.close(), children: e("common.actions.close") }) }) })
39469
39492
  ] });
39470
- }), YN = {
39493
+ }), KN = {
39471
39494
  root: {
39472
39495
  height: "100vh",
39473
39496
  display: "flex",
@@ -39489,7 +39512,7 @@ const RN = D(() => /* @__PURE__ */ r.jsx(C, { sx: {
39489
39512
  paddingTop: 0,
39490
39513
  height: "100vh"
39491
39514
  }
39492
- }, KN = D(() => {
39515
+ }, YN = D(() => {
39493
39516
  const e = Ie().editor;
39494
39517
  return /* @__PURE__ */ r.jsx(Ge, { onClose: () => e.setSettingsOpen(!1), closeOnEscape: !1, closeOnClickOutside: !1, opened: e.settings_open, fullScreen: !0, title: null, transitionProps: {
39495
39518
  duration: 0
@@ -39501,7 +39524,7 @@ const RN = D(() => /* @__PURE__ */ r.jsx(C, { sx: {
39501
39524
  // @ts-expect-error important
39502
39525
  overflowY: "hidden !important"
39503
39526
  }
39504
- }, children: /* @__PURE__ */ r.jsx(Xu, { padding: 0, navbar: /* @__PURE__ */ r.jsx(UN, {}), styles: YN, children: /* @__PURE__ */ r.jsx(PN, {}) }) });
39527
+ }, children: /* @__PURE__ */ r.jsx(Xu, { padding: 0, navbar: /* @__PURE__ */ r.jsx(UN, {}), styles: KN, children: /* @__PURE__ */ r.jsx(PN, {}) }) });
39505
39528
  }), XN = (e) => e.replace(/([^:])(\/\/+)/g, "$1/");
39506
39529
  function JN(e) {
39507
39530
  Q(() => {
@@ -39593,7 +39616,7 @@ const ZN = {
39593
39616
  /* @__PURE__ */ r.jsx(Xu, { padding: 0, header: /* @__PURE__ */ r.jsx(tF, { onExit: u, saveDashboardChanges: T, headerSlot: l }), navbar: /* @__PURE__ */ r.jsx(TF, {}), styles: ZN, children: /* @__PURE__ */ r.jsx(R, { className: `${s} dashboard-root`, sx: {
39594
39617
  position: "relative"
39595
39618
  }, children: b.content.views.visibleViews.map((A) => /* @__PURE__ */ r.jsx(dO, { view: A }, A.id)) }) }),
39596
- /* @__PURE__ */ r.jsx(KN, {})
39619
+ /* @__PURE__ */ r.jsx(YN, {})
39597
39620
  ] }) }) }) }) }) }) }) }) });
39598
39621
  }, c5 = D(de(eq));
39599
39622
  const dg = x.model({
@@ -39637,7 +39660,7 @@ const dg = x.model({
39637
39660
  return this.json.content;
39638
39661
  },
39639
39662
  get payloadForSQL() {
39640
- const t = jt(e).context.current, n = jt(e).globalSQLSnippets, i = {
39663
+ const t = xt(e).context.current, n = xt(e).globalSQLSnippets, i = {
39641
39664
  context: {
39642
39665
  ...e.mock_context.current,
39643
39666
  ...t
@@ -39651,7 +39674,7 @@ const dg = x.model({
39651
39674
  };
39652
39675
  },
39653
39676
  get payloadForViz() {
39654
- const t = jt(e).context.current;
39677
+ const t = xt(e).context.current;
39655
39678
  return {
39656
39679
  context: {
39657
39680
  ...e.mock_context.current,
@@ -39831,7 +39854,7 @@ const iq = ({
39831
39854
  setFullScreenPanelID: o
39832
39855
  }, children: /* @__PURE__ */ r.jsx(kl.Provider, { value: {
39833
39856
  inEditMode: !1
39834
- }, children: /* @__PURE__ */ r.jsx(R, { className: `${i} dashboard-root`, children: /* @__PURE__ */ r.jsx(Pn.Provider, { value: b, children: /* @__PURE__ */ r.jsx(qa, { configure: T, children: f.content.views.visibleViews.map((S) => /* @__PURE__ */ r.jsx(Yc, { view: S }, S.id)) }) }) }) }) }) }) }) }) }) }) });
39857
+ }, children: /* @__PURE__ */ r.jsx(R, { className: `${i} dashboard-root`, children: /* @__PURE__ */ r.jsx(Pn.Provider, { value: b, children: /* @__PURE__ */ r.jsx(qa, { configure: T, children: f.content.views.visibleViews.map((S) => /* @__PURE__ */ r.jsx(Kc, { view: S }, S.id)) }) }) }) }) }) }) }) }) }) }) });
39835
39858
  }, d5 = D(iq);
39836
39859
  V.extend(sv);
39837
39860
  V.extend(av);
@@ -39876,7 +39899,7 @@ const u5 = () => Promise.resolve().then(() => d1).then(({
39876
39899
  export {
39877
39900
  Nn as APIClient,
39878
39901
  vr as CURRENT_SCHEMA_VERSION,
39879
- Kx as ContentModel,
39902
+ Yx as ContentModel,
39880
39903
  Cp as ContentModelContextProvider,
39881
39904
  dg as ContentRenderModel,
39882
39905
  Qc as ContextMeta,
@@ -39891,7 +39914,7 @@ export {
39891
39914
  nq as DashboardRenderModel,
39892
39915
  Sp as DashboardThemeContextProvider,
39893
39916
  dO as DashboardViewEditor,
39894
- Yc as DashboardViewRender,
39917
+ Kc as DashboardViewRender,
39895
39918
  jx as DataSourceMetaModel,
39896
39919
  et as DataSourceType,
39897
39920
  h2 as DataSourcesMetaModel,
@@ -39939,7 +39962,7 @@ export {
39939
39962
  fO as QueryModel,
39940
39963
  Rx as QueryRenderModel,
39941
39964
  d5 as ReadOnlyDashboard,
39942
- YP as SQLSnippetMeta,
39965
+ KP as SQLSnippetMeta,
39943
39966
  _2 as SQLSnippetRenderModel,
39944
39967
  gO as SQLSnippetsModel,
39945
39968
  Ox as SQLSnippetsRenderModel,
@@ -39963,7 +39986,7 @@ export {
39963
39986
  AO as createDashboardModel,
39964
39987
  rq as createDashboardRenderModel,
39965
39988
  S2 as createDraft,
39966
- KP as createFilterCheckboxConfig,
39989
+ YP as createFilterCheckboxConfig,
39967
39990
  ZP as createFilterDateRangeConfig,
39968
39991
  t2 as createFilterMultiSelectConfig,
39969
39992
  n2 as createFilterSelectConfig,
@@ -39974,7 +39997,7 @@ export {
39974
39997
  d2 as createViewTabsConfig,
39975
39998
  n_ as facadeApiClient,
39976
39999
  da as formatSQLSnippet,
39977
- Yx as getInitialDashboardViewsModel,
40000
+ Kx as getInitialDashboardViewsModel,
39978
40001
  Ax as getInitialFiltersConfig,
39979
40002
  cx as getInitialMockContextMeta,
39980
40003
  v2 as getInitialQueriesRenderModel,