@devtable/dashboard 5.7.1 → 5.7.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,13 +1,13 @@
1
1
  var Ma = Object.defineProperty;
2
2
  var Aa = (e, t, n) => t in e ? Ma(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var P = (e, t, n) => (Aa(e, typeof t != "symbol" ? t + "" : t, n), n);
4
- import { Box as B, Text as C, Button as j, Checkbox as lt, MultiSelect as Ln, Select as T, TextInput as E, Group as b, Stack as _, JsonInput as po, ActionIcon as M, AppShell as jt, LoadingOverlay as Ht, Table as Wt, Tabs as k, Textarea as Nn, Modal as Me, Divider as K, SimpleGrid as Oa, NumberInput as Ee, Tooltip as bt, Menu as be, Paper as za, Code as qr, Switch as Pe, useMantineTheme as Pa, ColorInput as Ta, ColorSwatch as Gr, Slider as fo, createStyles as qn, Popover as vn, Accordion as G, SegmentedControl as La } from "@mantine/core";
5
- import { useModals as Na, ModalsProvider as ho } from "@mantine/modals";
4
+ import { Box as B, Text as C, Button as j, Checkbox as lt, MultiSelect as Ln, Select as T, TextInput as E, Group as b, Stack as _, JsonInput as po, ActionIcon as M, AppShell as jt, LoadingOverlay as Ht, Table as Wt, Tabs as k, Textarea as Nn, Modal as Me, Divider as Z, SimpleGrid as Oa, NumberInput as Ee, Tooltip as bt, Menu as be, Paper as za, Code as qr, Switch as Pe, useMantineTheme as Pa, ColorInput as Ta, ColorSwatch as Gr, Slider as fo, createStyles as qn, Popover as vn, Accordion as G, SegmentedControl as La } from "@mantine/core";
5
+ import { useModals as Na, ModalsProvider as mo } from "@mantine/modals";
6
6
  import { useRequest as Ut, useBoolean as Rt, useCreation as Ue, useAsyncEffect as Dt, useLatest as Br } from "ahooks";
7
- import { observer as V } from "mobx-react-lite";
7
+ import { observer as I } from "mobx-react-lite";
8
8
  import * as jr from "react";
9
9
  import R, { useEffect as ne, useState as pe, useMemo as N, forwardRef as Gn, createElement as Yt, useCallback as Nt, useRef as qa, useContext as Le, createContext as Ga } from "react";
10
- import W, { omit as Qt, get as de, values as mo, unset as Ba, isObject as vo, set as bo, orderBy as ja, last as Ha, noop as Wa, defaults as se, isEqual as Te, defaultsDeep as rt, findLastIndex as Ua, isEmpty as yo, isNumber as Ya, isString as xo, range as Qa, cloneDeep as Co, maxBy as wo, merge as So, minBy as Xa, groupBy as Ja, template as _o, cloneDeepWith as Ka, throttle as Za } from "lodash";
10
+ import W, { omit as Qt, get as de, values as ho, unset as Ba, isObject as vo, set as bo, orderBy as ja, last as Ha, noop as Wa, defaults as se, isEqual as Te, defaultsDeep as rt, findLastIndex as Ua, isEmpty as yo, isNumber as Ya, isString as xo, range as Qa, cloneDeep as Co, maxBy as wo, merge as So, minBy as Xa, groupBy as Ja, template as _o, cloneDeepWith as Ka, throttle as Za } from "lodash";
11
11
  import { useForm as Ne, Controller as D, useFieldArray as Fe } from "react-hook-form";
12
12
  import { DateRangePicker as el } from "@mantine/dates";
13
13
  import Ye from "dayjs";
@@ -17,7 +17,7 @@ import pl from "crypto-js";
17
17
  import fl from "jszip";
18
18
  import { Prism as st } from "@mantine/prism";
19
19
  import { showNotification as Xt } from "@mantine/notifications";
20
- import { cast as Je, types as x, addDisposer as Fo, getRoot as Hr, flow as hl, toGenerator as ml } from "mobx-state-tree";
20
+ import { cast as Je, types as x, addDisposer as Fo, getRoot as Hr, flow as ml, toGenerator as hl } from "mobx-state-tree";
21
21
  import { randomId as Se, useClipboard as vl, useElementSize as Vn, useInputState as $o } from "@mantine/hooks";
22
22
  import ko, { RichTextEditor as Eo } from "@mantine/rte";
23
23
  import { makeAutoObservable as Bn, runInAction as xt, observable as Mo, toJS as Jt, reaction as Kt } from "mobx";
@@ -72,13 +72,13 @@ const Il = {
72
72
  viewPanelInFullScreen: W.noop,
73
73
  inFullScreen: !1
74
74
  }, Hn = R.createContext(Il), Go = R.createContext(null), Bo = Go.Provider;
75
- function ee() {
75
+ function J() {
76
76
  const e = R.useContext(Go);
77
77
  if (!e)
78
78
  throw new Error("Please use ModelContextProvider");
79
79
  return e;
80
80
  }
81
- var et = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, en = { exports: {} }, ht = {};
81
+ var et = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, en = { exports: {} }, mt = {};
82
82
  /**
83
83
  * @license React
84
84
  * react-jsx-runtime.production.min.js
@@ -91,22 +91,22 @@ var et = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
91
91
  var Ur;
92
92
  function Vl() {
93
93
  if (Ur)
94
- return ht;
94
+ return mt;
95
95
  Ur = 1;
96
96
  var e = R, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
97
97
  function l(s, u, g) {
98
- var c, p = {}, f = null, m = null;
99
- g !== void 0 && (f = "" + g), u.key !== void 0 && (f = "" + u.key), u.ref !== void 0 && (m = u.ref);
98
+ var c, p = {}, f = null, h = null;
99
+ g !== void 0 && (f = "" + g), u.key !== void 0 && (f = "" + u.key), u.ref !== void 0 && (h = u.ref);
100
100
  for (c in u)
101
101
  r.call(u, c) && !a.hasOwnProperty(c) && (p[c] = u[c]);
102
102
  if (s && s.defaultProps)
103
103
  for (c in u = s.defaultProps, u)
104
104
  p[c] === void 0 && (p[c] = u[c]);
105
- return { $$typeof: t, type: s, key: f, ref: m, props: p, _owner: o.current };
105
+ return { $$typeof: t, type: s, key: f, ref: h, props: p, _owner: o.current };
106
106
  }
107
- return ht.Fragment = n, ht.jsx = l, ht.jsxs = l, ht;
107
+ return mt.Fragment = n, mt.jsx = l, mt.jsxs = l, mt;
108
108
  }
109
- var mt = {};
109
+ var ht = {};
110
110
  /**
111
111
  * @license React
112
112
  * react-jsx-runtime.development.js
@@ -119,54 +119,54 @@ var mt = {};
119
119
  var Yr;
120
120
  function Fl() {
121
121
  return Yr || (Yr = 1, process.env.NODE_ENV !== "production" && function() {
122
- var e = R, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), s = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), y = Symbol.iterator, v = "@@iterator";
123
- function w(h) {
124
- if (h === null || typeof h != "object")
122
+ var e = R, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), s = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), y = Symbol.iterator, v = "@@iterator";
123
+ function w(m) {
124
+ if (m === null || typeof m != "object")
125
125
  return null;
126
- var S = y && h[y] || h[v];
126
+ var S = y && m[y] || m[v];
127
127
  return typeof S == "function" ? S : null;
128
128
  }
129
129
  var F = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
130
- function $(h) {
130
+ function $(m) {
131
131
  {
132
- for (var S = arguments.length, I = new Array(S > 1 ? S - 1 : 0), A = 1; A < S; A++)
133
- I[A - 1] = arguments[A];
134
- O("error", h, I);
132
+ for (var S = arguments.length, V = new Array(S > 1 ? S - 1 : 0), A = 1; A < S; A++)
133
+ V[A - 1] = arguments[A];
134
+ O("error", m, V);
135
135
  }
136
136
  }
137
- function O(h, S, I) {
137
+ function O(m, S, V) {
138
138
  {
139
139
  var A = F.ReactDebugCurrentFrame, U = A.getStackAddendum();
140
- U !== "" && (S += "%s", I = I.concat([U]));
141
- var X = I.map(function(H) {
140
+ U !== "" && (S += "%s", V = V.concat([U]));
141
+ var X = V.map(function(H) {
142
142
  return String(H);
143
143
  });
144
- X.unshift("Warning: " + S), Function.prototype.apply.call(console[h], console, X);
144
+ X.unshift("Warning: " + S), Function.prototype.apply.call(console[m], console, X);
145
145
  }
146
146
  }
147
- var L = !1, Y = !1, ce = !1, ae = !1, ye = !1, he;
148
- he = Symbol.for("react.module.reference");
149
- function Re(h) {
150
- return !!(typeof h == "string" || typeof h == "function" || h === r || h === a || ye || h === o || h === g || h === c || ae || h === m || L || Y || ce || typeof h == "object" && h !== null && (h.$$typeof === f || h.$$typeof === p || h.$$typeof === l || h.$$typeof === s || h.$$typeof === u || h.$$typeof === he || h.getModuleId !== void 0));
147
+ var L = !1, Y = !1, ce = !1, ae = !1, ye = !1, me;
148
+ me = Symbol.for("react.module.reference");
149
+ function Re(m) {
150
+ return !!(typeof m == "string" || typeof m == "function" || m === r || m === a || ye || m === o || m === g || m === c || ae || m === h || L || Y || ce || typeof m == "object" && m !== null && (m.$$typeof === f || m.$$typeof === p || m.$$typeof === l || m.$$typeof === s || m.$$typeof === u || m.$$typeof === me || m.getModuleId !== void 0));
151
151
  }
152
- function le(h, S, I) {
153
- var A = h.displayName;
152
+ function le(m, S, V) {
153
+ var A = m.displayName;
154
154
  if (A)
155
155
  return A;
156
156
  var U = S.displayName || S.name || "";
157
- return U !== "" ? I + "(" + U + ")" : I;
157
+ return U !== "" ? V + "(" + U + ")" : V;
158
158
  }
159
- function De(h) {
160
- return h.displayName || "Context";
159
+ function De(m) {
160
+ return m.displayName || "Context";
161
161
  }
162
- function me(h) {
163
- if (h == null)
162
+ function he(m) {
163
+ if (m == null)
164
164
  return null;
165
- if (typeof h.tag == "number" && $("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof h == "function")
166
- return h.displayName || h.name || null;
167
- if (typeof h == "string")
168
- return h;
169
- switch (h) {
165
+ if (typeof m.tag == "number" && $("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof m == "function")
166
+ return m.displayName || m.name || null;
167
+ if (typeof m == "string")
168
+ return m;
169
+ switch (m) {
170
170
  case r:
171
171
  return "Fragment";
172
172
  case n:
@@ -180,23 +180,23 @@ function Fl() {
180
180
  case c:
181
181
  return "SuspenseList";
182
182
  }
183
- if (typeof h == "object")
184
- switch (h.$$typeof) {
183
+ if (typeof m == "object")
184
+ switch (m.$$typeof) {
185
185
  case s:
186
- var S = h;
186
+ var S = m;
187
187
  return De(S) + ".Consumer";
188
188
  case l:
189
- var I = h;
190
- return De(I._context) + ".Provider";
189
+ var V = m;
190
+ return De(V._context) + ".Provider";
191
191
  case u:
192
- return le(h, h.render, "ForwardRef");
192
+ return le(m, m.render, "ForwardRef");
193
193
  case p:
194
- var A = h.displayName || null;
195
- return A !== null ? A : me(h.type) || "Memo";
194
+ var A = m.displayName || null;
195
+ return A !== null ? A : he(m.type) || "Memo";
196
196
  case f: {
197
- var U = h, X = U._payload, H = U._init;
197
+ var U = m, X = U._payload, H = U._init;
198
198
  try {
199
- return me(H(X));
199
+ return he(H(X));
200
200
  } catch {
201
201
  return null;
202
202
  }
@@ -212,20 +212,20 @@ function Fl() {
212
212
  {
213
213
  if (Ge === 0) {
214
214
  yr = console.log, xr = console.info, Cr = console.warn, wr = console.error, Sr = console.group, _r = console.groupCollapsed, Rr = console.groupEnd;
215
- var h = {
215
+ var m = {
216
216
  configurable: !0,
217
217
  enumerable: !0,
218
218
  value: Dr,
219
219
  writable: !0
220
220
  };
221
221
  Object.defineProperties(console, {
222
- info: h,
223
- log: h,
224
- warn: h,
225
- error: h,
226
- group: h,
227
- groupCollapsed: h,
228
- groupEnd: h
222
+ info: m,
223
+ log: m,
224
+ warn: m,
225
+ error: m,
226
+ group: m,
227
+ groupCollapsed: m,
228
+ groupEnd: m
229
229
  });
230
230
  }
231
231
  Ge++;
@@ -234,31 +234,31 @@ function Fl() {
234
234
  function ua() {
235
235
  {
236
236
  if (Ge--, Ge === 0) {
237
- var h = {
237
+ var m = {
238
238
  configurable: !0,
239
239
  enumerable: !0,
240
240
  writable: !0
241
241
  };
242
242
  Object.defineProperties(console, {
243
- log: ve({}, h, {
243
+ log: ve({}, m, {
244
244
  value: yr
245
245
  }),
246
- info: ve({}, h, {
246
+ info: ve({}, m, {
247
247
  value: xr
248
248
  }),
249
- warn: ve({}, h, {
249
+ warn: ve({}, m, {
250
250
  value: Cr
251
251
  }),
252
- error: ve({}, h, {
252
+ error: ve({}, m, {
253
253
  value: wr
254
254
  }),
255
- group: ve({}, h, {
255
+ group: ve({}, m, {
256
256
  value: Sr
257
257
  }),
258
- groupCollapsed: ve({}, h, {
258
+ groupCollapsed: ve({}, m, {
259
259
  value: _r
260
260
  }),
261
- groupEnd: ve({}, h, {
261
+ groupEnd: ve({}, m, {
262
262
  value: Rr
263
263
  })
264
264
  });
@@ -267,7 +267,7 @@ function Fl() {
267
267
  }
268
268
  }
269
269
  var un = F.ReactCurrentDispatcher, cn;
270
- function $t(h, S, I) {
270
+ function $t(m, S, V) {
271
271
  {
272
272
  if (cn === void 0)
273
273
  try {
@@ -277,7 +277,7 @@ function Fl() {
277
277
  cn = A && A[1] || "";
278
278
  }
279
279
  return `
280
- ` + cn + h;
280
+ ` + cn + m;
281
281
  }
282
282
  }
283
283
  var dn = !1, kt;
@@ -285,13 +285,13 @@ function Fl() {
285
285
  var ca = typeof WeakMap == "function" ? WeakMap : Map;
286
286
  kt = new ca();
287
287
  }
288
- function Ir(h, S) {
289
- if (!h || dn)
288
+ function Ir(m, S) {
289
+ if (!m || dn)
290
290
  return "";
291
291
  {
292
- var I = kt.get(h);
293
- if (I !== void 0)
294
- return I;
292
+ var V = kt.get(m);
293
+ if (V !== void 0)
294
+ return V;
295
295
  }
296
296
  var A;
297
297
  dn = !0;
@@ -314,14 +314,14 @@ function Fl() {
314
314
  } catch (Oe) {
315
315
  A = Oe;
316
316
  }
317
- Reflect.construct(h, [], H);
317
+ Reflect.construct(m, [], H);
318
318
  } else {
319
319
  try {
320
320
  H.call();
321
321
  } catch (Oe) {
322
322
  A = Oe;
323
323
  }
324
- h.call(H.prototype);
324
+ m.call(H.prototype);
325
325
  }
326
326
  } else {
327
327
  try {
@@ -329,7 +329,7 @@ function Fl() {
329
329
  } catch (Oe) {
330
330
  A = Oe;
331
331
  }
332
- h();
332
+ m();
333
333
  }
334
334
  } catch (Oe) {
335
335
  if (Oe && A && typeof Oe.stack == "string") {
@@ -344,7 +344,7 @@ function Fl() {
344
344
  if (te--, oe--, oe < 0 || q[te] !== ge[oe]) {
345
345
  var xe = `
346
346
  ` + q[te].replace(" at new ", " at ");
347
- return h.displayName && xe.includes("<anonymous>") && (xe = xe.replace("<anonymous>", h.displayName)), typeof h == "function" && kt.set(h, xe), xe;
347
+ return m.displayName && xe.includes("<anonymous>") && (xe = xe.replace("<anonymous>", m.displayName)), typeof m == "function" && kt.set(m, xe), xe;
348
348
  }
349
349
  while (te >= 1 && oe >= 0);
350
350
  break;
@@ -353,39 +353,39 @@ function Fl() {
353
353
  } finally {
354
354
  dn = !1, un.current = X, ua(), Error.prepareStackTrace = U;
355
355
  }
356
- var it = h ? h.displayName || h.name : "", Nr = it ? $t(it) : "";
357
- return typeof h == "function" && kt.set(h, Nr), Nr;
356
+ var it = m ? m.displayName || m.name : "", Nr = it ? $t(it) : "";
357
+ return typeof m == "function" && kt.set(m, Nr), Nr;
358
358
  }
359
- function da(h, S, I) {
360
- return Ir(h, !1);
359
+ function da(m, S, V) {
360
+ return Ir(m, !1);
361
361
  }
362
- function ga(h) {
363
- var S = h.prototype;
362
+ function ga(m) {
363
+ var S = m.prototype;
364
364
  return !!(S && S.isReactComponent);
365
365
  }
366
- function Et(h, S, I) {
367
- if (h == null)
366
+ function Et(m, S, V) {
367
+ if (m == null)
368
368
  return "";
369
- if (typeof h == "function")
370
- return Ir(h, ga(h));
371
- if (typeof h == "string")
372
- return $t(h);
373
- switch (h) {
369
+ if (typeof m == "function")
370
+ return Ir(m, ga(m));
371
+ if (typeof m == "string")
372
+ return $t(m);
373
+ switch (m) {
374
374
  case g:
375
375
  return $t("Suspense");
376
376
  case c:
377
377
  return $t("SuspenseList");
378
378
  }
379
- if (typeof h == "object")
380
- switch (h.$$typeof) {
379
+ if (typeof m == "object")
380
+ switch (m.$$typeof) {
381
381
  case u:
382
- return da(h.render);
382
+ return da(m.render);
383
383
  case p:
384
- return Et(h.type, S, I);
384
+ return Et(m.type, S, V);
385
385
  case f: {
386
- var A = h, U = A._payload, X = A._init;
386
+ var A = m, U = A._payload, X = A._init;
387
387
  try {
388
- return Et(X(U), S, I);
388
+ return Et(X(U), S, V);
389
389
  } catch {
390
390
  }
391
391
  }
@@ -393,55 +393,55 @@ function Fl() {
393
393
  return "";
394
394
  }
395
395
  var Mt = Object.prototype.hasOwnProperty, Vr = {}, Fr = F.ReactDebugCurrentFrame;
396
- function At(h) {
397
- if (h) {
398
- var S = h._owner, I = Et(h.type, h._source, S ? S.type : null);
399
- Fr.setExtraStackFrame(I);
396
+ function At(m) {
397
+ if (m) {
398
+ var S = m._owner, V = Et(m.type, m._source, S ? S.type : null);
399
+ Fr.setExtraStackFrame(V);
400
400
  } else
401
401
  Fr.setExtraStackFrame(null);
402
402
  }
403
- function pa(h, S, I, A, U) {
403
+ function pa(m, S, V, A, U) {
404
404
  {
405
405
  var X = Function.call.bind(Mt);
406
- for (var H in h)
407
- if (X(h, H)) {
406
+ for (var H in m)
407
+ if (X(m, H)) {
408
408
  var q = void 0;
409
409
  try {
410
- if (typeof h[H] != "function") {
411
- var ge = Error((A || "React class") + ": " + I + " type `" + H + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof h[H] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
410
+ if (typeof m[H] != "function") {
411
+ var ge = Error((A || "React class") + ": " + V + " type `" + H + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof m[H] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
412
412
  throw ge.name = "Invariant Violation", ge;
413
413
  }
414
- q = h[H](S, H, A, I, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
414
+ q = m[H](S, H, A, V, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
415
415
  } catch (te) {
416
416
  q = te;
417
417
  }
418
- q && !(q instanceof Error) && (At(U), $("%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).", A || "React class", I, H, typeof q), At(null)), q instanceof Error && !(q.message in Vr) && (Vr[q.message] = !0, At(U), $("Failed %s type: %s", I, q.message), At(null));
418
+ q && !(q instanceof Error) && (At(U), $("%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).", A || "React class", V, H, typeof q), At(null)), q instanceof Error && !(q.message in Vr) && (Vr[q.message] = !0, At(U), $("Failed %s type: %s", V, q.message), At(null));
419
419
  }
420
420
  }
421
421
  }
422
422
  var fa = Array.isArray;
423
- function gn(h) {
424
- return fa(h);
423
+ function gn(m) {
424
+ return fa(m);
425
425
  }
426
- function ha(h) {
426
+ function ma(m) {
427
427
  {
428
- var S = typeof Symbol == "function" && Symbol.toStringTag, I = S && h[Symbol.toStringTag] || h.constructor.name || "Object";
429
- return I;
428
+ var S = typeof Symbol == "function" && Symbol.toStringTag, V = S && m[Symbol.toStringTag] || m.constructor.name || "Object";
429
+ return V;
430
430
  }
431
431
  }
432
- function ma(h) {
432
+ function ha(m) {
433
433
  try {
434
- return $r(h), !1;
434
+ return $r(m), !1;
435
435
  } catch {
436
436
  return !0;
437
437
  }
438
438
  }
439
- function $r(h) {
440
- return "" + h;
439
+ function $r(m) {
440
+ return "" + m;
441
441
  }
442
- function kr(h) {
443
- if (ma(h))
444
- return $("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ha(h)), $r(h);
442
+ function kr(m) {
443
+ if (ha(m))
444
+ return $("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ma(m)), $r(m);
445
445
  }
446
446
  var ft = F.ReactCurrentOwner, va = {
447
447
  key: !0,
@@ -450,56 +450,56 @@ function Fl() {
450
450
  __source: !0
451
451
  }, Er, Mr, pn;
452
452
  pn = {};
453
- function ba(h) {
454
- if (Mt.call(h, "ref")) {
455
- var S = Object.getOwnPropertyDescriptor(h, "ref").get;
453
+ function ba(m) {
454
+ if (Mt.call(m, "ref")) {
455
+ var S = Object.getOwnPropertyDescriptor(m, "ref").get;
456
456
  if (S && S.isReactWarning)
457
457
  return !1;
458
458
  }
459
- return h.ref !== void 0;
459
+ return m.ref !== void 0;
460
460
  }
461
- function ya(h) {
462
- if (Mt.call(h, "key")) {
463
- var S = Object.getOwnPropertyDescriptor(h, "key").get;
461
+ function ya(m) {
462
+ if (Mt.call(m, "key")) {
463
+ var S = Object.getOwnPropertyDescriptor(m, "key").get;
464
464
  if (S && S.isReactWarning)
465
465
  return !1;
466
466
  }
467
- return h.key !== void 0;
467
+ return m.key !== void 0;
468
468
  }
469
- function xa(h, S) {
470
- if (typeof h.ref == "string" && ft.current && S && ft.current.stateNode !== S) {
471
- var I = me(ft.current.type);
472
- pn[I] || ($('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', me(ft.current.type), h.ref), pn[I] = !0);
469
+ function xa(m, S) {
470
+ if (typeof m.ref == "string" && ft.current && S && ft.current.stateNode !== S) {
471
+ var V = he(ft.current.type);
472
+ pn[V] || ($('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', he(ft.current.type), m.ref), pn[V] = !0);
473
473
  }
474
474
  }
475
- function Ca(h, S) {
475
+ function Ca(m, S) {
476
476
  {
477
- var I = function() {
477
+ var V = function() {
478
478
  Er || (Er = !0, $("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", S));
479
479
  };
480
- I.isReactWarning = !0, Object.defineProperty(h, "key", {
481
- get: I,
480
+ V.isReactWarning = !0, Object.defineProperty(m, "key", {
481
+ get: V,
482
482
  configurable: !0
483
483
  });
484
484
  }
485
485
  }
486
- function wa(h, S) {
486
+ function wa(m, S) {
487
487
  {
488
- var I = function() {
488
+ var V = function() {
489
489
  Mr || (Mr = !0, $("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", S));
490
490
  };
491
- I.isReactWarning = !0, Object.defineProperty(h, "ref", {
492
- get: I,
491
+ V.isReactWarning = !0, Object.defineProperty(m, "ref", {
492
+ get: V,
493
493
  configurable: !0
494
494
  });
495
495
  }
496
496
  }
497
- var Sa = function(h, S, I, A, U, X, H) {
497
+ var Sa = function(m, S, V, A, U, X, H) {
498
498
  var q = {
499
499
  $$typeof: t,
500
- type: h,
500
+ type: m,
501
501
  key: S,
502
- ref: I,
502
+ ref: V,
503
503
  props: H,
504
504
  _owner: X
505
505
  };
@@ -520,152 +520,152 @@ function Fl() {
520
520
  value: U
521
521
  }), Object.freeze && (Object.freeze(q.props), Object.freeze(q)), q;
522
522
  };
523
- function _a(h, S, I, A, U) {
523
+ function _a(m, S, V, A, U) {
524
524
  {
525
525
  var X, H = {}, q = null, ge = null;
526
- I !== void 0 && (kr(I), q = "" + I), ya(S) && (kr(S.key), q = "" + S.key), ba(S) && (ge = S.ref, xa(S, U));
526
+ V !== void 0 && (kr(V), q = "" + V), ya(S) && (kr(S.key), q = "" + S.key), ba(S) && (ge = S.ref, xa(S, U));
527
527
  for (X in S)
528
528
  Mt.call(S, X) && !va.hasOwnProperty(X) && (H[X] = S[X]);
529
- if (h && h.defaultProps) {
530
- var te = h.defaultProps;
529
+ if (m && m.defaultProps) {
530
+ var te = m.defaultProps;
531
531
  for (X in te)
532
532
  H[X] === void 0 && (H[X] = te[X]);
533
533
  }
534
534
  if (q || ge) {
535
- var oe = typeof h == "function" ? h.displayName || h.name || "Unknown" : h;
535
+ var oe = typeof m == "function" ? m.displayName || m.name || "Unknown" : m;
536
536
  q && Ca(H, oe), ge && wa(H, oe);
537
537
  }
538
- return Sa(h, q, ge, U, A, ft.current, H);
538
+ return Sa(m, q, ge, U, A, ft.current, H);
539
539
  }
540
540
  }
541
541
  var fn = F.ReactCurrentOwner, Ar = F.ReactDebugCurrentFrame;
542
- function ot(h) {
543
- if (h) {
544
- var S = h._owner, I = Et(h.type, h._source, S ? S.type : null);
545
- Ar.setExtraStackFrame(I);
542
+ function ot(m) {
543
+ if (m) {
544
+ var S = m._owner, V = Et(m.type, m._source, S ? S.type : null);
545
+ Ar.setExtraStackFrame(V);
546
546
  } else
547
547
  Ar.setExtraStackFrame(null);
548
548
  }
549
- var hn;
550
- hn = !1;
551
- function mn(h) {
552
- return typeof h == "object" && h !== null && h.$$typeof === t;
549
+ var mn;
550
+ mn = !1;
551
+ function hn(m) {
552
+ return typeof m == "object" && m !== null && m.$$typeof === t;
553
553
  }
554
554
  function Or() {
555
555
  {
556
556
  if (fn.current) {
557
- var h = me(fn.current.type);
558
- if (h)
557
+ var m = he(fn.current.type);
558
+ if (m)
559
559
  return `
560
560
 
561
- Check the render method of \`` + h + "`.";
561
+ Check the render method of \`` + m + "`.";
562
562
  }
563
563
  return "";
564
564
  }
565
565
  }
566
- function Ra(h) {
566
+ function Ra(m) {
567
567
  {
568
- if (h !== void 0) {
569
- var S = h.fileName.replace(/^.*[\\\/]/, ""), I = h.lineNumber;
568
+ if (m !== void 0) {
569
+ var S = m.fileName.replace(/^.*[\\\/]/, ""), V = m.lineNumber;
570
570
  return `
571
571
 
572
- Check your code at ` + S + ":" + I + ".";
572
+ Check your code at ` + S + ":" + V + ".";
573
573
  }
574
574
  return "";
575
575
  }
576
576
  }
577
577
  var zr = {};
578
- function Da(h) {
578
+ function Da(m) {
579
579
  {
580
580
  var S = Or();
581
581
  if (!S) {
582
- var I = typeof h == "string" ? h : h.displayName || h.name;
583
- I && (S = `
582
+ var V = typeof m == "string" ? m : m.displayName || m.name;
583
+ V && (S = `
584
584
 
585
- Check the top-level render call using <` + I + ">.");
585
+ Check the top-level render call using <` + V + ">.");
586
586
  }
587
587
  return S;
588
588
  }
589
589
  }
590
- function Pr(h, S) {
590
+ function Pr(m, S) {
591
591
  {
592
- if (!h._store || h._store.validated || h.key != null)
592
+ if (!m._store || m._store.validated || m.key != null)
593
593
  return;
594
- h._store.validated = !0;
595
- var I = Da(S);
596
- if (zr[I])
594
+ m._store.validated = !0;
595
+ var V = Da(S);
596
+ if (zr[V])
597
597
  return;
598
- zr[I] = !0;
598
+ zr[V] = !0;
599
599
  var A = "";
600
- h && h._owner && h._owner !== fn.current && (A = " It was passed a child from " + me(h._owner.type) + "."), ot(h), $('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', I, A), ot(null);
600
+ m && m._owner && m._owner !== fn.current && (A = " It was passed a child from " + he(m._owner.type) + "."), ot(m), $('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', V, A), ot(null);
601
601
  }
602
602
  }
603
- function Tr(h, S) {
603
+ function Tr(m, S) {
604
604
  {
605
- if (typeof h != "object")
605
+ if (typeof m != "object")
606
606
  return;
607
- if (gn(h))
608
- for (var I = 0; I < h.length; I++) {
609
- var A = h[I];
610
- mn(A) && Pr(A, S);
607
+ if (gn(m))
608
+ for (var V = 0; V < m.length; V++) {
609
+ var A = m[V];
610
+ hn(A) && Pr(A, S);
611
611
  }
612
- else if (mn(h))
613
- h._store && (h._store.validated = !0);
614
- else if (h) {
615
- var U = w(h);
616
- if (typeof U == "function" && U !== h.entries)
617
- for (var X = U.call(h), H; !(H = X.next()).done; )
618
- mn(H.value) && Pr(H.value, S);
612
+ else if (hn(m))
613
+ m._store && (m._store.validated = !0);
614
+ else if (m) {
615
+ var U = w(m);
616
+ if (typeof U == "function" && U !== m.entries)
617
+ for (var X = U.call(m), H; !(H = X.next()).done; )
618
+ hn(H.value) && Pr(H.value, S);
619
619
  }
620
620
  }
621
621
  }
622
- function Ia(h) {
622
+ function Ia(m) {
623
623
  {
624
- var S = h.type;
624
+ var S = m.type;
625
625
  if (S == null || typeof S == "string")
626
626
  return;
627
- var I;
627
+ var V;
628
628
  if (typeof S == "function")
629
- I = S.propTypes;
629
+ V = S.propTypes;
630
630
  else if (typeof S == "object" && (S.$$typeof === u || S.$$typeof === p))
631
- I = S.propTypes;
631
+ V = S.propTypes;
632
632
  else
633
633
  return;
634
- if (I) {
635
- var A = me(S);
636
- pa(I, h.props, "prop", A, h);
637
- } else if (S.PropTypes !== void 0 && !hn) {
638
- hn = !0;
639
- var U = me(S);
634
+ if (V) {
635
+ var A = he(S);
636
+ pa(V, m.props, "prop", A, m);
637
+ } else if (S.PropTypes !== void 0 && !mn) {
638
+ mn = !0;
639
+ var U = he(S);
640
640
  $("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", U || "Unknown");
641
641
  }
642
642
  typeof S.getDefaultProps == "function" && !S.getDefaultProps.isReactClassApproved && $("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
643
643
  }
644
644
  }
645
- function Va(h) {
645
+ function Va(m) {
646
646
  {
647
- for (var S = Object.keys(h.props), I = 0; I < S.length; I++) {
648
- var A = S[I];
647
+ for (var S = Object.keys(m.props), V = 0; V < S.length; V++) {
648
+ var A = S[V];
649
649
  if (A !== "children" && A !== "key") {
650
- ot(h), $("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", A), ot(null);
650
+ ot(m), $("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", A), ot(null);
651
651
  break;
652
652
  }
653
653
  }
654
- h.ref !== null && (ot(h), $("Invalid attribute `ref` supplied to `React.Fragment`."), ot(null));
654
+ m.ref !== null && (ot(m), $("Invalid attribute `ref` supplied to `React.Fragment`."), ot(null));
655
655
  }
656
656
  }
657
- function Lr(h, S, I, A, U, X) {
657
+ function Lr(m, S, V, A, U, X) {
658
658
  {
659
- var H = Re(h);
659
+ var H = Re(m);
660
660
  if (!H) {
661
661
  var q = "";
662
- (h === void 0 || typeof h == "object" && h !== null && Object.keys(h).length === 0) && (q += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
662
+ (m === void 0 || typeof m == "object" && m !== null && Object.keys(m).length === 0) && (q += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
663
663
  var ge = Ra(U);
664
664
  ge ? q += ge : q += Or();
665
665
  var te;
666
- h === null ? te = "null" : gn(h) ? te = "array" : h !== void 0 && h.$$typeof === t ? (te = "<" + (me(h.type) || "Unknown") + " />", q = " Did you accidentally export a JSX literal instead of a component?") : te = typeof h, $("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", te, q);
666
+ m === null ? te = "null" : gn(m) ? te = "array" : m !== void 0 && m.$$typeof === t ? (te = "<" + (he(m.type) || "Unknown") + " />", q = " Did you accidentally export a JSX literal instead of a component?") : te = typeof m, $("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", te, q);
667
667
  }
668
- var oe = _a(h, S, I, U, X);
668
+ var oe = _a(m, S, V, U, X);
669
669
  if (oe == null)
670
670
  return oe;
671
671
  if (H) {
@@ -674,30 +674,30 @@ Check the top-level render call using <` + I + ">.");
674
674
  if (A)
675
675
  if (gn(xe)) {
676
676
  for (var it = 0; it < xe.length; it++)
677
- Tr(xe[it], h);
677
+ Tr(xe[it], m);
678
678
  Object.freeze && Object.freeze(xe);
679
679
  } else
680
680
  $("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
681
681
  else
682
- Tr(xe, h);
682
+ Tr(xe, m);
683
683
  }
684
- return h === r ? Va(oe) : Ia(oe), oe;
684
+ return m === r ? Va(oe) : Ia(oe), oe;
685
685
  }
686
686
  }
687
- function Fa(h, S, I) {
688
- return Lr(h, S, I, !0);
687
+ function Fa(m, S, V) {
688
+ return Lr(m, S, V, !0);
689
689
  }
690
- function $a(h, S, I) {
691
- return Lr(h, S, I, !1);
690
+ function $a(m, S, V) {
691
+ return Lr(m, S, V, !1);
692
692
  }
693
693
  var ka = $a, Ea = Fa;
694
- mt.Fragment = r, mt.jsx = ka, mt.jsxs = Ea;
695
- }()), mt;
694
+ ht.Fragment = r, ht.jsx = ka, ht.jsxs = Ea;
695
+ }()), ht;
696
696
  }
697
697
  (function(e) {
698
698
  process.env.NODE_ENV === "production" ? e.exports = Vl() : e.exports = Fl();
699
699
  })(en);
700
- const J = en.exports.Fragment, i = en.exports.jsx, d = en.exports.jsxs;
700
+ const K = en.exports.Fragment, i = en.exports.jsx, d = en.exports.jsxs;
701
701
  class ut extends R.Component {
702
702
  constructor(t) {
703
703
  super(t), this.state = {
@@ -763,7 +763,7 @@ function $l({
763
763
  })]
764
764
  });
765
765
  }
766
- const jo = V(({
766
+ const jo = I(({
767
767
  label: e,
768
768
  config: t,
769
769
  value: n = [null, null],
@@ -789,8 +789,23 @@ const jo = V(({
789
789
  },
790
790
  ...t
791
791
  });
792
- });
793
- function kl(e, t, n, r) {
792
+ }), kl = {
793
+ layoutFrozen: !1,
794
+ freezeLayout: W.noop,
795
+ inEditMode: !1,
796
+ inUseMode: !0
797
+ }, Ae = R.createContext(kl), Ho = R.createContext({
798
+ panel: null,
799
+ data: [],
800
+ loading: !1
801
+ }), El = Ho.Provider;
802
+ function fe() {
803
+ const e = R.useContext(Ho);
804
+ if (!e.panel)
805
+ throw new Error("Please use PanelContextProvider");
806
+ return e;
807
+ }
808
+ function Ml(e, t, n, r) {
794
809
  const o = Un(t, n, [], r), a = Object.keys(o), l = Object.values(o);
795
810
  try {
796
811
  return new Function(...a, `return \`${e}\`;`)(...l);
@@ -816,7 +831,7 @@ function Un(e, t, n, r) {
816
831
  }, l = n.reduce((s, u) => (s[u.key] = Wn(u.value, a), s), {});
817
832
  return W.merge({}, { context: o, filters: r, sql_snippets: l });
818
833
  }
819
- function Ho(e, t, n, r, o) {
834
+ function Wo(e, t, n, r, o) {
820
835
  try {
821
836
  const a = Un(t, n, r, o);
822
837
  return Wn(e, a);
@@ -824,7 +839,7 @@ function Ho(e, t, n, r, o) {
824
839
  return console.error(a), a.message;
825
840
  }
826
841
  }
827
- function El(e) {
842
+ function Al(e) {
828
843
  e = e || {};
829
844
  const t = Object.keys(e).sort(), n = [];
830
845
  for (let r = 0; r < t.length; r++) {
@@ -843,8 +858,8 @@ function El(e) {
843
858
  }
844
859
  return n.sort().join("&");
845
860
  }
846
- function Ml(e, t) {
847
- let n = El(e);
861
+ function Ol(e, t) {
862
+ let n = Al(e);
848
863
  return n += "&key=" + t, pl.MD5(n).toString().toUpperCase();
849
864
  }
850
865
  const tt = {
@@ -858,7 +873,7 @@ const tt = {
858
873
  return {
859
874
  app_id: this.app_id,
860
875
  nonce_str: t,
861
- sign: Ml(
876
+ sign: Ol(
862
877
  {
863
878
  app_id: this.app_id,
864
879
  nonce_str: t,
@@ -886,10 +901,10 @@ const tt = {
886
901
  };
887
902
  }
888
903
  };
889
- function Wo(e) {
904
+ function Uo(e) {
890
905
  tt.baseURL !== e.apiBaseURL && (tt.baseURL = e.apiBaseURL), e.app_id && (tt.app_id = e.app_id), e.app_secret && (tt.app_secret = e.app_secret);
891
906
  }
892
- const Yn = ({ type: e, key: t, sql: n }) => async () => {
907
+ const zl = ({ type: e, key: t, sql: n }) => async () => {
893
908
  if (!e || !t || !n)
894
909
  return [];
895
910
  try {
@@ -898,13 +913,13 @@ const Yn = ({ type: e, key: t, sql: n }) => async () => {
898
913
  return console.error(r), [];
899
914
  }
900
915
  };
901
- async function Al({ context: e, mock_context: t, sqlSnippets: n, title: r, query: o, filterValues: a }) {
916
+ async function Yn({ context: e, mock_context: t, sqlSnippets: n, title: r, query: o, filterValues: a }) {
902
917
  if (!o.sql)
903
918
  return [];
904
919
  const { type: l, key: s, sql: u } = o, g = u.includes("$"), c = Un(e, t, n, a), p = Wn(u, c);
905
920
  return g && (console.groupCollapsed(`Final SQL for: ${r}`), console.log(p), console.groupEnd()), await tt.getRequest("POST")("/query", { type: l, key: s, query: p });
906
921
  }
907
- async function Ol() {
922
+ async function Pl() {
908
923
  try {
909
924
  return (await tt.getRequest("POST")("/datasource/list", {
910
925
  filter: {},
@@ -921,22 +936,32 @@ async function Ol() {
921
936
  return console.error(e), [];
922
937
  }
923
938
  }
924
- function zl({
939
+ const Tl = I(({
925
940
  label: e,
926
941
  config: t,
927
942
  value: n,
928
943
  onChange: r
929
- }) {
930
- const o = !!t.options_query.sql, {
931
- data: a = [],
932
- loading: l
933
- } = Ut(Yn(t.options_query), {
934
- refreshDeps: [t.options_query, o]
944
+ }) => {
945
+ const o = J(), a = !!t.options_query.sql, {
946
+ data: l = [],
947
+ loading: s
948
+ } = Ut(async () => {
949
+ const u = {
950
+ context: o.context.current,
951
+ mock_context: o.mock_context.current,
952
+ sqlSnippets: o.sqlSnippets.current,
953
+ title: e,
954
+ query: t.options_query,
955
+ filterValues: o.filters.values
956
+ };
957
+ return Yn(u);
958
+ }, {
959
+ refreshDeps: [t.options_query, a, o.context.current, o.mock_context.current, o.sqlSnippets.current]
935
960
  });
936
961
  return /* @__PURE__ */ i(Ln, {
937
962
  label: e,
938
- data: o ? a : t.static_options,
939
- disabled: o ? l : !1,
963
+ data: a ? l : t.static_options,
964
+ disabled: a ? s : !1,
940
965
  value: n,
941
966
  onChange: r,
942
967
  sx: {
@@ -948,23 +973,32 @@ function zl({
948
973
  }
949
974
  }
950
975
  });
951
- }
952
- function Pl({
976
+ }), Ll = I(({
953
977
  label: e,
954
978
  config: t,
955
979
  value: n,
956
980
  onChange: r
957
- }) {
958
- const o = !!t.options_query.sql, {
959
- data: a = [],
960
- loading: l
961
- } = Ut(Yn(t.options_query), {
962
- refreshDeps: [t.options_query, o]
981
+ }) => {
982
+ const o = J(), a = !!t.options_query.sql, {
983
+ data: l = [],
984
+ loading: s
985
+ } = Ut(async () => {
986
+ const u = {
987
+ context: o.context.current,
988
+ mock_context: o.mock_context.current,
989
+ sqlSnippets: o.sqlSnippets.current,
990
+ title: e,
991
+ query: t.options_query,
992
+ filterValues: o.filters.values
993
+ };
994
+ return Yn(u);
995
+ }, {
996
+ refreshDeps: [t.options_query, a, o.context.current, o.mock_context.current, o.sqlSnippets.current]
963
997
  });
964
998
  return /* @__PURE__ */ i(T, {
965
999
  label: e,
966
- data: o ? a : t.static_options,
967
- disabled: o ? l : !1,
1000
+ data: a ? l : t.static_options,
1001
+ disabled: a ? s : !1,
968
1002
  value: n,
969
1003
  onChange: r,
970
1004
  styles: {
@@ -973,8 +1007,8 @@ function Pl({
973
1007
  }
974
1008
  }
975
1009
  });
976
- }
977
- function Tl({
1010
+ });
1011
+ function Nl({
978
1012
  label: e,
979
1013
  config: t,
980
1014
  value: n,
@@ -992,7 +1026,7 @@ function Tl({
992
1026
  }
993
1027
  });
994
1028
  }
995
- const Ll = V(({
1029
+ const ql = I(({
996
1030
  filter: {
997
1031
  type: e,
998
1032
  config: t,
@@ -1003,19 +1037,19 @@ const Ll = V(({
1003
1037
  }) => {
1004
1038
  switch (e) {
1005
1039
  case "select":
1006
- return /* @__PURE__ */ i(Pl, {
1040
+ return /* @__PURE__ */ i(Ll, {
1007
1041
  ...r,
1008
1042
  ...o,
1009
1043
  config: t
1010
1044
  });
1011
1045
  case "multi-select":
1012
- return /* @__PURE__ */ i(zl, {
1046
+ return /* @__PURE__ */ i(Tl, {
1013
1047
  ...r,
1014
1048
  ...o,
1015
1049
  config: t
1016
1050
  });
1017
1051
  case "text-input":
1018
- return /* @__PURE__ */ i(Tl, {
1052
+ return /* @__PURE__ */ i(Nl, {
1019
1053
  ...r,
1020
1054
  ...o,
1021
1055
  config: t
@@ -1035,22 +1069,22 @@ const Ll = V(({
1035
1069
  default:
1036
1070
  return null;
1037
1071
  }
1038
- }), Uo = V(R.forwardRef(({
1072
+ }), Yo = I(R.forwardRef(({
1039
1073
  filter: e,
1040
1074
  ...t
1041
1075
  }, n) => /* @__PURE__ */ i("div", {
1042
1076
  className: "filter-root",
1043
1077
  ref: n,
1044
1078
  children: /* @__PURE__ */ i(ut, {
1045
- children: /* @__PURE__ */ i(Ll, {
1079
+ children: /* @__PURE__ */ i(ql, {
1046
1080
  filter: e,
1047
1081
  formFieldProps: t
1048
1082
  })
1049
1083
  })
1050
- }))), Yo = V(function({
1084
+ }))), Qo = I(function({
1051
1085
  view: t
1052
1086
  }) {
1053
- const n = ee(), {
1087
+ const n = J(), {
1054
1088
  control: r,
1055
1089
  handleSubmit: o
1056
1090
  } = Ne({
@@ -1074,7 +1108,7 @@ const Ll = V(({
1074
1108
  control: r,
1075
1109
  render: ({
1076
1110
  field: s
1077
- }) => /* @__PURE__ */ i(Uo, {
1111
+ }) => /* @__PURE__ */ i(Yo, {
1078
1112
  filter: l,
1079
1113
  ...s
1080
1114
  })
@@ -1128,11 +1162,11 @@ var tn = { exports: {} };
1128
1162
  }
1129
1163
  var l = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof et == "object" && et.global === et ? et : void 0, s = l.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), u = l.saveAs || (typeof window != "object" || window !== l ? function() {
1130
1164
  } : "download" in HTMLAnchorElement.prototype && !s ? function(g, c, p) {
1131
- var f = l.URL || l.webkitURL, m = document.createElement("a");
1132
- c = c || g.name || "download", m.download = c, m.rel = "noopener", typeof g == "string" ? (m.href = g, m.origin === location.origin ? a(m) : o(m.href) ? r(g, c, p) : a(m, m.target = "_blank")) : (m.href = f.createObjectURL(g), setTimeout(function() {
1133
- f.revokeObjectURL(m.href);
1165
+ var f = l.URL || l.webkitURL, h = document.createElement("a");
1166
+ c = c || g.name || "download", h.download = c, h.rel = "noopener", typeof g == "string" ? (h.href = g, h.origin === location.origin ? a(h) : o(h.href) ? r(g, c, p) : a(h, h.target = "_blank")) : (h.href = f.createObjectURL(g), setTimeout(function() {
1167
+ f.revokeObjectURL(h.href);
1134
1168
  }, 4e4), setTimeout(function() {
1135
- a(m);
1169
+ a(h);
1136
1170
  }, 0));
1137
1171
  } : "msSaveOrOpenBlob" in navigator ? function(g, c, p) {
1138
1172
  if (c = c || g.name || "download", typeof g != "string")
@@ -1148,8 +1182,8 @@ var tn = { exports: {} };
1148
1182
  } : function(g, c, p, f) {
1149
1183
  if (f = f || open("", "_blank"), f && (f.document.title = f.document.body.innerText = "downloading..."), typeof g == "string")
1150
1184
  return r(g, c, p);
1151
- var m = g.type === "application/octet-stream", y = /constructor/i.test(l.HTMLElement) || l.safari, v = /CriOS\/[\d]+/.test(navigator.userAgent);
1152
- if ((v || m && y || s) && typeof FileReader < "u") {
1185
+ var h = g.type === "application/octet-stream", y = /constructor/i.test(l.HTMLElement) || l.safari, v = /CriOS\/[\d]+/.test(navigator.userAgent);
1186
+ if ((v || h && y || s) && typeof FileReader < "u") {
1153
1187
  var w = new FileReader();
1154
1188
  w.onloadend = function() {
1155
1189
  var O = w.result;
@@ -1165,23 +1199,23 @@ var tn = { exports: {} };
1165
1199
  l.saveAs = u.saveAs = u, e.exports = u;
1166
1200
  });
1167
1201
  })(tn);
1168
- function Nl(e, t) {
1202
+ function Gl(e, t) {
1169
1203
  const n = new Blob([t], { type: "text/csv" });
1170
1204
  tn.exports.saveAs(n, `${e}.csv`);
1171
1205
  }
1172
- function ql(e, t) {
1206
+ function Bl(e, t) {
1173
1207
  const n = new Blob([t], { type: "application/json" });
1174
1208
  tn.exports.saveAs(n, `${e}.json`);
1175
1209
  }
1176
- function Gl(e) {
1210
+ function jl(e) {
1177
1211
  const t = new fl();
1178
1212
  e.forEach(({ id: n, data: r }) => {
1179
- t.file(`${n}.csv`, Qo(r));
1213
+ t.file(`${n}.csv`, Xo(r));
1180
1214
  }), t.generateAsync({ type: "blob" }).then((n) => {
1181
1215
  tn.exports.saveAs(n, "dashboard_data.zip");
1182
1216
  });
1183
1217
  }
1184
- function Qo(e) {
1218
+ function Xo(e) {
1185
1219
  if (!Array.isArray(e) || e.length === 0)
1186
1220
  return "";
1187
1221
  const t = [], n = Object.keys(e[0]);
@@ -1191,22 +1225,6 @@ function Qo(e) {
1191
1225
  }), t.join(`
1192
1226
  `);
1193
1227
  }
1194
- const Bl = {
1195
- layoutFrozen: !1,
1196
- freezeLayout: W.noop,
1197
- inEditMode: !1,
1198
- inUseMode: !0
1199
- }, Ae = R.createContext(Bl), Xo = R.createContext({
1200
- panel: null,
1201
- data: [],
1202
- loading: !1
1203
- }), jl = Xo.Provider;
1204
- function fe() {
1205
- const e = R.useContext(Xo);
1206
- if (!e.panel)
1207
- throw new Error("Please use PanelContextProvider");
1208
- return e;
1209
- }
1210
1228
  const Hl = `
1211
1229
  -- You may reference global variables in SQL or VizConfig.
1212
1230
  SELECT *
@@ -1219,11 +1237,11 @@ WHERE
1219
1237
  -- SQL snippets
1220
1238
  AND \${sql_snippets.author_email_condition}
1221
1239
  \${sql_snippets.order_by_clause}
1222
- `, Qn = V(function({
1240
+ `, Qn = I(function({
1223
1241
  showSQLSnippets: t = !0,
1224
1242
  sx: n = {}
1225
1243
  }) {
1226
- const r = ee(), o = r.context.current, a = R.useMemo(() => {
1244
+ const r = J(), o = r.context.current, a = R.useMemo(() => {
1227
1245
  const l = {
1228
1246
  context: {
1229
1247
  ...r.mock_context.current,
@@ -1284,8 +1302,8 @@ WHERE
1284
1302
  })]
1285
1303
  })]
1286
1304
  });
1287
- }), Wl = V(function() {
1288
- const t = ee(), [n, r] = pe(() => JSON.stringify(t.mock_context.current, null, 4)), o = () => {
1305
+ }), Wl = I(function() {
1306
+ const t = J(), [n, r] = pe(() => JSON.stringify(t.mock_context.current, null, 4)), o = () => {
1289
1307
  try {
1290
1308
  t.mock_context.replace(JSON.parse(n));
1291
1309
  } catch (l) {
@@ -1429,10 +1447,10 @@ function Yl({
1429
1447
  })]
1430
1448
  });
1431
1449
  }
1432
- const Jo = V(function({
1450
+ const Jo = I(function({
1433
1451
  id: t
1434
1452
  }) {
1435
- const n = ee(), {
1453
+ const n = J(), {
1436
1454
  data: r,
1437
1455
  state: o
1438
1456
  } = n.getDataStuffByID(t), a = o === "loading", l = () => {
@@ -1495,14 +1513,14 @@ const Jo = V(function({
1495
1513
  }), /* @__PURE__ */ i(C, {
1496
1514
  children: t
1497
1515
  })]
1498
- })), Ko = V(function({
1516
+ })), Ko = I(function({
1499
1517
  value: t,
1500
1518
  onChange: n
1501
1519
  }) {
1502
1520
  const {
1503
1521
  data: r = [],
1504
1522
  loading: o
1505
- } = Ut(Ol, {
1523
+ } = Ut(Pl, {
1506
1524
  refreshDeps: []
1507
1525
  }, []), a = N(() => r.map((s) => ({
1508
1526
  label: s.key,
@@ -1525,16 +1543,16 @@ const Jo = V(function({
1525
1543
  });
1526
1544
  }
1527
1545
  });
1528
- }), Zo = V(({
1546
+ }), Zo = I(({
1529
1547
  value: e
1530
1548
  }) => {
1531
- const t = ee(), n = t.context.current, r = R.useMemo(() => Ho(e, n, t.mock_context.current, t.sqlSnippets.current, t.filters.values), [e, n, t.mock_context.current, t.sqlSnippets.current, t.filters.values]);
1549
+ const t = J(), n = t.context.current, r = R.useMemo(() => Wo(e, n, t.mock_context.current, t.sqlSnippets.current, t.filters.values), [e, n, t.mock_context.current, t.sqlSnippets.current, t.filters.values]);
1532
1550
  return /* @__PURE__ */ i(st, {
1533
1551
  language: "sql",
1534
1552
  colorScheme: "light",
1535
1553
  children: r
1536
1554
  });
1537
- }), Xl = V(function({
1555
+ }), Xl = I(function({
1538
1556
  queryModel: t,
1539
1557
  setCurrentID: n
1540
1558
  }) {
@@ -1659,11 +1677,11 @@ const Jo = V(function({
1659
1677
  })]
1660
1678
  })]
1661
1679
  });
1662
- }), Jl = V(function({
1680
+ }), Jl = I(function({
1663
1681
  id: t,
1664
1682
  setID: n
1665
1683
  }) {
1666
- const r = ee(), o = R.useMemo(() => r.queries.findByID(t), [r.queries, t]);
1684
+ const r = J(), o = R.useMemo(() => r.queries.findByID(t), [r.queries, t]);
1667
1685
  return t ? o ? /* @__PURE__ */ i(Xl, {
1668
1686
  queryModel: o,
1669
1687
  setCurrentID: n
@@ -1672,11 +1690,11 @@ const Jo = V(function({
1672
1690
  }) : null;
1673
1691
  });
1674
1692
  var ke = /* @__PURE__ */ ((e) => (e.Postgresql = "postgresql", e.MySQL = "mysql", e.HTTP = "http", e))(ke || {});
1675
- const Kl = V(function({
1693
+ const Kl = I(function({
1676
1694
  id: t,
1677
1695
  setID: n
1678
1696
  }) {
1679
- const r = ee(), o = () => {
1697
+ const r = J(), o = () => {
1680
1698
  var l;
1681
1699
  n((l = r.queries.firstID) != null ? l : "");
1682
1700
  };
@@ -1733,7 +1751,7 @@ const Kl = V(function({
1733
1751
  })]
1734
1752
  })
1735
1753
  });
1736
- }), Zl = V(function() {
1754
+ }), Zl = I(function() {
1737
1755
  const [t, n] = R.useState("");
1738
1756
  return /* @__PURE__ */ d(jt, {
1739
1757
  sx: {
@@ -1772,10 +1790,10 @@ const Kl = V(function({
1772
1790
  id: t
1773
1791
  })]
1774
1792
  });
1775
- }), es = V(({
1793
+ }), es = I(({
1776
1794
  value: e
1777
1795
  }) => {
1778
- const t = ee(), n = t.context.current, r = R.useMemo(() => kl(e, n, t.mock_context.current, t.filters.values), [e, n, t.mock_context.current, t.filters.values]);
1796
+ const t = J(), n = t.context.current, r = R.useMemo(() => Ml(e, n, t.mock_context.current, t.filters.values), [e, n, t.mock_context.current, t.filters.values]);
1779
1797
  return /* @__PURE__ */ d(_, {
1780
1798
  children: [/* @__PURE__ */ i(C, {
1781
1799
  children: "Preview"
@@ -1786,8 +1804,8 @@ const Kl = V(function({
1786
1804
  children: r
1787
1805
  })]
1788
1806
  });
1789
- }), ts = V(function() {
1790
- const t = ee(), n = () => t.sqlSnippets.append(Je({
1807
+ }), ts = I(function() {
1808
+ const t = J(), n = () => t.sqlSnippets.append(Je({
1791
1809
  key: Se(),
1792
1810
  value: ""
1793
1811
  }));
@@ -1902,7 +1920,7 @@ function ns() {
1902
1920
  })
1903
1921
  });
1904
1922
  }
1905
- const rs = V(function({
1923
+ const rs = I(function({
1906
1924
  opened: t,
1907
1925
  close: n
1908
1926
  }) {
@@ -1968,10 +1986,10 @@ const ei = x.model({
1968
1986
  })), ni = () => ti.create({
1969
1987
  required: !1,
1970
1988
  default_value: ""
1971
- }), os = V(function({
1989
+ }), os = I(function({
1972
1990
  config: t
1973
1991
  }) {
1974
- return /* @__PURE__ */ i(J, {
1992
+ return /* @__PURE__ */ i(K, {
1975
1993
  children: /* @__PURE__ */ i(lt, {
1976
1994
  checked: t.default_value,
1977
1995
  onChange: (n) => t.setDefaultValue(n.currentTarget.checked),
@@ -1993,10 +2011,10 @@ const ei = x.model({
1993
2011
  }, {
1994
2012
  label: "2022-01-01",
1995
2013
  value: "YYYY-MM-DD"
1996
- }], as = V(function({
2014
+ }], as = I(function({
1997
2015
  config: t
1998
2016
  }) {
1999
- return /* @__PURE__ */ d(J, {
2017
+ return /* @__PURE__ */ d(K, {
2000
2018
  children: [/* @__PURE__ */ d(b, {
2001
2019
  children: [/* @__PURE__ */ i(lt, {
2002
2020
  checked: t.required,
@@ -2067,14 +2085,14 @@ function ls({
2067
2085
  })]
2068
2086
  });
2069
2087
  }
2070
- const ss = V(function({
2088
+ const ss = I(function({
2071
2089
  query: t
2072
2090
  }) {
2073
2091
  const {
2074
2092
  data: n = [],
2075
2093
  loading: r,
2076
2094
  refresh: o
2077
- } = Ut(Yn(t), {
2095
+ } = Ut(zl(t), {
2078
2096
  refreshDeps: [t]
2079
2097
  });
2080
2098
  return /* @__PURE__ */ d(_, {
@@ -2103,7 +2121,7 @@ const ss = V(function({
2103
2121
  })]
2104
2122
  })]
2105
2123
  });
2106
- }), ri = V(function({
2124
+ }), ri = I(function({
2107
2125
  value: t,
2108
2126
  onChange: n
2109
2127
  }) {
@@ -2166,7 +2184,7 @@ const ss = V(function({
2166
2184
  })]
2167
2185
  })]
2168
2186
  });
2169
- }), us = V(function({
2187
+ }), us = I(function({
2170
2188
  config: t
2171
2189
  }) {
2172
2190
  const n = () => {
@@ -2175,8 +2193,8 @@ const ss = V(function({
2175
2193
  value: ""
2176
2194
  });
2177
2195
  }, r = t.static_options, o = [...r];
2178
- return /* @__PURE__ */ d(J, {
2179
- children: [/* @__PURE__ */ i(K, {
2196
+ return /* @__PURE__ */ d(K, {
2197
+ children: [/* @__PURE__ */ i(Z, {
2180
2198
  label: "Configure options",
2181
2199
  labelPosition: "center"
2182
2200
  }), r.length > 0 && /* @__PURE__ */ i(Ln, {
@@ -2234,7 +2252,7 @@ const ss = V(function({
2234
2252
  },
2235
2253
  mx: "auto",
2236
2254
  children: "Add an Option"
2237
- }), /* @__PURE__ */ i(K, {
2255
+ }), /* @__PURE__ */ i(Z, {
2238
2256
  label: "Or fetch options from database",
2239
2257
  labelPosition: "center"
2240
2258
  }), /* @__PURE__ */ i(ri, {
@@ -2242,7 +2260,7 @@ const ss = V(function({
2242
2260
  onChange: t.setOptionsQuery
2243
2261
  })]
2244
2262
  });
2245
- }), cs = V(function({
2263
+ }), cs = I(function({
2246
2264
  config: t
2247
2265
  }) {
2248
2266
  const n = () => {
@@ -2254,12 +2272,12 @@ const ss = V(function({
2254
2272
  label: "No default selection",
2255
2273
  value: ""
2256
2274
  }, ...r];
2257
- return /* @__PURE__ */ d(J, {
2275
+ return /* @__PURE__ */ d(K, {
2258
2276
  children: [/* @__PURE__ */ i(lt, {
2259
2277
  checked: t.required,
2260
2278
  onChange: (a) => t.setRequired(a.currentTarget.checked),
2261
2279
  label: "Required"
2262
- }), /* @__PURE__ */ i(K, {
2280
+ }), /* @__PURE__ */ i(Z, {
2263
2281
  label: "Configure options",
2264
2282
  labelPosition: "center"
2265
2283
  }), r.length > 0 && /* @__PURE__ */ i(T, {
@@ -2317,7 +2335,7 @@ const ss = V(function({
2317
2335
  },
2318
2336
  mx: "auto",
2319
2337
  children: "Add an Option"
2320
- }), /* @__PURE__ */ i(K, {
2338
+ }), /* @__PURE__ */ i(Z, {
2321
2339
  label: "Or fetch options from database",
2322
2340
  labelPosition: "center"
2323
2341
  }), /* @__PURE__ */ i(ri, {
@@ -2325,10 +2343,10 @@ const ss = V(function({
2325
2343
  onChange: t.setOptionsQuery
2326
2344
  })]
2327
2345
  });
2328
- }), ds = V(function({
2346
+ }), ds = I(function({
2329
2347
  config: t
2330
2348
  }) {
2331
- return /* @__PURE__ */ d(J, {
2349
+ return /* @__PURE__ */ d(K, {
2332
2350
  children: [/* @__PURE__ */ i(E, {
2333
2351
  label: "Default Value",
2334
2352
  value: t.default_value,
@@ -2341,7 +2359,7 @@ const ss = V(function({
2341
2359
  label: "Required"
2342
2360
  })]
2343
2361
  });
2344
- }), gs = V(function({
2362
+ }), gs = I(function({
2345
2363
  filter: t
2346
2364
  }) {
2347
2365
  const n = t.plainDefaultValue, [r, o] = R.useState(n);
@@ -2355,7 +2373,7 @@ const ss = V(function({
2355
2373
  pb: "md",
2356
2374
  color: "gray",
2357
2375
  children: "Preview"
2358
- }), /* @__PURE__ */ i(Uo, {
2376
+ }), /* @__PURE__ */ i(Yo, {
2359
2377
  filter: t,
2360
2378
  value: r,
2361
2379
  onChange: o
@@ -2392,11 +2410,11 @@ const ss = V(function({
2392
2410
  }, {
2393
2411
  label: "Date Range",
2394
2412
  value: "date-range"
2395
- }], hs = V(function({
2413
+ }], ms = I(function({
2396
2414
  filter: t,
2397
2415
  index: n
2398
2416
  }) {
2399
- const r = ee(), o = R.useMemo(() => ps[t.type], [t.type]);
2417
+ const r = J(), o = R.useMemo(() => ps[t.type], [t.type]);
2400
2418
  return /* @__PURE__ */ d(Oa, {
2401
2419
  cols: 2,
2402
2420
  children: [/* @__PURE__ */ d(B, {
@@ -2452,8 +2470,8 @@ const ss = V(function({
2452
2470
  })]
2453
2471
  });
2454
2472
  });
2455
- const ms = V(function() {
2456
- const t = ee(), n = t.filters.current, r = () => {
2473
+ const hs = I(function() {
2474
+ const t = J(), n = t.filters.current, r = () => {
2457
2475
  const o = Se(), a = {
2458
2476
  id: o,
2459
2477
  key: o,
@@ -2548,7 +2566,7 @@ const ms = V(function() {
2548
2566
  maxHeight: "calc(100% - 52px)",
2549
2567
  overflow: "scroll"
2550
2568
  },
2551
- children: /* @__PURE__ */ i(hs, {
2569
+ children: /* @__PURE__ */ i(ms, {
2552
2570
  filter: o,
2553
2571
  index: a
2554
2572
  })
@@ -2571,7 +2589,7 @@ const ms = V(function() {
2571
2589
  })
2572
2590
  })]
2573
2591
  });
2574
- }), vs = V(function({
2592
+ }), vs = I(function({
2575
2593
  opened: t,
2576
2594
  close: n
2577
2595
  }) {
@@ -2591,14 +2609,14 @@ const ms = V(function() {
2591
2609
  o.stopPropagation();
2592
2610
  },
2593
2611
  withCloseButton: !1,
2594
- children: /* @__PURE__ */ i(ms, {})
2612
+ children: /* @__PURE__ */ i(hs, {})
2595
2613
  });
2596
2614
  });
2597
2615
  var bs = /* @__PURE__ */ ((e) => (e.Use = "use", e.Edit = "edit", e))(bs || {}), Ve = /* @__PURE__ */ ((e) => (e.Division = "div", e.Modal = "modal", e))(Ve || {}), ys = /* @__PURE__ */ ((e) => (e.Select = "select", e.MultiSelect = "multi-select", e.TextInput = "text-input", e.Checkbox = "checkbox", e.DateRange = "date-range", e))(ys || {});
2598
- const xs = V(() => {
2599
- const t = ee().views.VIE;
2616
+ const xs = I(() => {
2617
+ const t = J().views.VIE;
2600
2618
  return !t || t.type !== Ve.Division ? null : /* @__PURE__ */ d(_, {
2601
- children: [/* @__PURE__ */ i(K, {
2619
+ children: [/* @__PURE__ */ i(Z, {
2602
2620
  mt: 8,
2603
2621
  mb: 0,
2604
2622
  label: "Division settings",
@@ -2610,10 +2628,10 @@ const xs = V(() => {
2610
2628
  children: "Under construction"
2611
2629
  })]
2612
2630
  });
2613
- }), Cs = V(() => {
2614
- const t = ee().views.VIE;
2631
+ }), Cs = I(() => {
2632
+ const t = J().views.VIE;
2615
2633
  return !t || t.type !== Ve.Modal ? null : /* @__PURE__ */ d(_, {
2616
- children: [/* @__PURE__ */ i(K, {
2634
+ children: [/* @__PURE__ */ i(Z, {
2617
2635
  mt: 8,
2618
2636
  label: "Modal settings",
2619
2637
  labelPosition: "center"
@@ -2632,7 +2650,7 @@ const xs = V(() => {
2632
2650
  })]
2633
2651
  })]
2634
2652
  });
2635
- }), ws = V(() => /* @__PURE__ */ d(J, {
2653
+ }), ws = I(() => /* @__PURE__ */ d(K, {
2636
2654
  children: [/* @__PURE__ */ i(xs, {}), /* @__PURE__ */ i(Cs, {})]
2637
2655
  })), Ss = [{
2638
2656
  label: "Division",
@@ -2640,8 +2658,8 @@ const xs = V(() => {
2640
2658
  }, {
2641
2659
  label: "Modal",
2642
2660
  value: Ve.Modal
2643
- }], _s = V(() => {
2644
- const t = ee().views.VIE;
2661
+ }], _s = I(() => {
2662
+ const t = J().views.VIE;
2645
2663
  return t ? /* @__PURE__ */ d(_, {
2646
2664
  sx: {
2647
2665
  position: "relative"
@@ -2659,12 +2677,12 @@ const xs = V(() => {
2659
2677
  data: Ss
2660
2678
  }), /* @__PURE__ */ i(ws, {})]
2661
2679
  }) : null;
2662
- }), Rs = V(({
2680
+ }), Rs = I(({
2663
2681
  opened: e,
2664
2682
  close: t
2665
2683
  }) => {
2666
2684
  var o;
2667
- const n = ee(), {
2685
+ const n = J(), {
2668
2686
  freezeLayout: r
2669
2687
  } = R.useContext(Ae);
2670
2688
  return R.useEffect(() => {
@@ -2738,7 +2756,7 @@ const xs = V(() => {
2738
2756
  children: e
2739
2757
  })
2740
2758
  })
2741
- })), Qr = "TRIGGER_TO_ADD", Is = V(({
2759
+ })), Qr = "TRIGGER_TO_ADD", Is = I(({
2742
2760
  value: e,
2743
2761
  onChange: t,
2744
2762
  triggerAdd: n,
@@ -2794,13 +2812,13 @@ const xs = V(() => {
2794
2812
  })
2795
2813
  })]
2796
2814
  });
2797
- }), Vs = V(() => {
2798
- const e = ee(), [t, n] = pe(!1), r = () => {
2815
+ }), Vs = I(() => {
2816
+ const e = J(), [t, n] = pe(!1), r = () => {
2799
2817
  n(!0);
2800
2818
  }, o = () => {
2801
2819
  n(!1);
2802
2820
  };
2803
- return /* @__PURE__ */ d(J, {
2821
+ return /* @__PURE__ */ d(K, {
2804
2822
  children: [/* @__PURE__ */ i(Is, {
2805
2823
  value: e.views.idOfVIE,
2806
2824
  onChange: e.views.setIDOfVIE,
@@ -2825,10 +2843,10 @@ const xs = V(() => {
2825
2843
  borderLeftWidth: 0.5
2826
2844
  }
2827
2845
  }
2828
- }, oi = V(function({
2846
+ }, oi = I(function({
2829
2847
  saveChanges: t
2830
2848
  }) {
2831
- const n = ee(), r = R.useCallback(() => {
2849
+ const n = J(), r = R.useCallback(() => {
2832
2850
  const F = n.queries.current, $ = n.views.current, O = n.sqlSnippets.current, L = n.filters.current, Y = n.mock_context.current;
2833
2851
  return {
2834
2852
  filters: L,
@@ -2844,9 +2862,9 @@ const xs = V(() => {
2844
2862
  }, a = n.mock_context.changed || n.views.changed || n.sqlSnippets.changed || n.queries.changed || n.filters.changed, {
2845
2863
  inEditMode: l,
2846
2864
  inUseMode: s
2847
- } = R.useContext(Ae), [u, g] = R.useState(!1), c = () => g(!0), p = () => g(!1), [f, m] = R.useState(!1), y = () => m(!0), v = () => m(!1), w = () => {
2865
+ } = R.useContext(Ae), [u, g] = R.useState(!1), c = () => g(!0), p = () => g(!1), [f, h] = R.useState(!1), y = () => h(!0), v = () => h(!1), w = () => {
2848
2866
  const F = JSON.stringify(r(), null, 2);
2849
- ql(n.name, F);
2867
+ Bl(n.name, F);
2850
2868
  };
2851
2869
  return /* @__PURE__ */ d(b, {
2852
2870
  position: "apart",
@@ -2863,7 +2881,7 @@ const xs = V(() => {
2863
2881
  minWidth: "40px"
2864
2882
  }
2865
2883
  },
2866
- children: [l && /* @__PURE__ */ d(J, {
2884
+ children: [l && /* @__PURE__ */ d(K, {
2867
2885
  children: [/* @__PURE__ */ i(j, {
2868
2886
  variant: "filled",
2869
2887
  size: "xs",
@@ -2962,7 +2980,7 @@ const xs = V(() => {
2962
2980
  })]
2963
2981
  });
2964
2982
  });
2965
- const ii = V(() => {
2983
+ const ii = I(() => {
2966
2984
  const {
2967
2985
  freezeLayout: e
2968
2986
  } = R.useContext(Ae), [t, n] = R.useState(!1), {
@@ -2970,7 +2988,7 @@ const ii = V(() => {
2970
2988
  } = fe();
2971
2989
  return R.useEffect(() => {
2972
2990
  e(t);
2973
- }, [t]), !r.description || r.description === "<p><br></p>" ? null : /* @__PURE__ */ d(J, {
2991
+ }, [t]), !r.description || r.description === "<p><br></p>" ? null : /* @__PURE__ */ d(K, {
2974
2992
  children: [/* @__PURE__ */ i(Me, {
2975
2993
  opened: t,
2976
2994
  onClose: () => n(!1),
@@ -3064,7 +3082,7 @@ class Fs {
3064
3082
  function $s(e) {
3065
3083
  return !!e.operationId;
3066
3084
  }
3067
- const ks = V(({
3085
+ const ks = I(({
3068
3086
  model: e,
3069
3087
  onClick: t
3070
3088
  }) => {
@@ -3075,7 +3093,7 @@ const ks = V(({
3075
3093
  onClick: t,
3076
3094
  children: n
3077
3095
  });
3078
- }), Es = V(({
3096
+ }), Es = I(({
3079
3097
  model: e
3080
3098
  }) => {
3081
3099
  const t = {
@@ -3102,7 +3120,7 @@ function Ms({
3102
3120
  value: e.operationSchema.id
3103
3121
  });
3104
3122
  }
3105
- const As = V((e) => {
3123
+ const As = I((e) => {
3106
3124
  const [t, {
3107
3125
  setTrue: n,
3108
3126
  setFalse: r
@@ -3114,7 +3132,7 @@ const As = V((e) => {
3114
3132
  } = e, u = Ue(() => new Fs(o, l), [o, l]);
3115
3133
  return Dt(async () => {
3116
3134
  await u.configOperation(a, s);
3117
- }, [a, u]), $s(u) ? /* @__PURE__ */ d(J, {
3135
+ }, [a, u]), $s(u) ? /* @__PURE__ */ d(K, {
3118
3136
  children: [/* @__PURE__ */ i(ks, {
3119
3137
  model: u,
3120
3138
  onClick: n
@@ -3166,7 +3184,7 @@ function zs(e) {
3166
3184
  function Ps(e, t) {
3167
3185
  return Ue(() => new Os(e, t), [e, t]);
3168
3186
  }
3169
- const Ts = V(({
3187
+ const Ts = I(({
3170
3188
  model: e,
3171
3189
  onClick: t
3172
3190
  }) => {
@@ -3180,7 +3198,7 @@ const Ts = V(({
3180
3198
  onClick: t,
3181
3199
  children: Yt(n, r)
3182
3200
  });
3183
- }), Ls = V(({
3201
+ }), Ls = I(({
3184
3202
  model: e
3185
3203
  }) => {
3186
3204
  const t = e.schemaList, n = t.map((o) => ({
@@ -3196,7 +3214,7 @@ const Ts = V(({
3196
3214
  value: e.triggerSchema.id,
3197
3215
  onChange: r
3198
3216
  });
3199
- }), Ns = V(({
3217
+ }), Ns = I(({
3200
3218
  model: e
3201
3219
  }) => {
3202
3220
  const t = {
@@ -3205,12 +3223,12 @@ const Ts = V(({
3205
3223
  sampleData: e.sampleData
3206
3224
  };
3207
3225
  return Yt(e.triggerSchema.configRender, t);
3208
- }), qs = V((e) => {
3226
+ }), qs = I((e) => {
3209
3227
  const [t, {
3210
3228
  setTrue: n,
3211
3229
  setFalse: r
3212
3230
  }] = Rt(!1), o = e.model;
3213
- return /* @__PURE__ */ d(J, {
3231
+ return /* @__PURE__ */ d(K, {
3214
3232
  children: [/* @__PURE__ */ i(Me, {
3215
3233
  opened: t,
3216
3234
  onClose: r,
@@ -3289,7 +3307,7 @@ class Xn {
3289
3307
  async list() {
3290
3308
  const t = await this.attachmentStorage.getItem(null);
3291
3309
  return Promise.all(
3292
- mo(t).map(
3310
+ ho(t).map(
3293
3311
  (n) => this.constructInstance(new at(this.attachmentStorage, n.id))
3294
3312
  )
3295
3313
  );
@@ -3470,7 +3488,7 @@ const js = (e) => {
3470
3488
  getColor: nn(["#fff7f1", "darkorange", "#b60000"]),
3471
3489
  name: "orange",
3472
3490
  category: "sequential"
3473
- }, Ks = "5.7.1";
3491
+ }, Ks = "5.7.2";
3474
3492
  class Zs {
3475
3493
  constructor(t) {
3476
3494
  P(this, "staticColors", /* @__PURE__ */ new Map());
@@ -4036,7 +4054,7 @@ function gu({
4036
4054
  ...s
4037
4055
  });
4038
4056
  }
4039
- const Z = R.forwardRef(gu);
4057
+ const ee = R.forwardRef(gu);
4040
4058
  function pu({
4041
4059
  label: e,
4042
4060
  value: t,
@@ -4045,11 +4063,11 @@ function pu({
4045
4063
  const [o, a] = R.useState(Array.isArray(t) ? [...t] : []), l = R.useCallback(() => {
4046
4064
  a((f) => [...f, ""]);
4047
4065
  }, [a]), s = R.useCallback((f) => {
4048
- a((m) => (m.splice(f, 1), [...m]));
4066
+ a((h) => (h.splice(f, 1), [...h]));
4049
4067
  }, [a]), u = R.useMemo(() => !W.isEqual(o, t), [o, t]), g = () => {
4050
4068
  n(o.map((f) => f.toString()));
4051
- }, c = Pa(), p = R.useMemo(() => Object.entries(c.colors).map(([f, m]) => m[6]), [c]);
4052
- return /* @__PURE__ */ d(J, {
4069
+ }, c = Pa(), p = R.useMemo(() => Object.entries(c.colors).map(([f, h]) => h[6]), [c]);
4070
+ return /* @__PURE__ */ d(K, {
4053
4071
  children: [/* @__PURE__ */ d(b, {
4054
4072
  position: "left",
4055
4073
  ref: r,
@@ -4066,14 +4084,14 @@ function pu({
4066
4084
  })
4067
4085
  })]
4068
4086
  }), /* @__PURE__ */ d(b, {
4069
- children: [o.map((f, m) => /* @__PURE__ */ i(Ta, {
4087
+ children: [o.map((f, h) => /* @__PURE__ */ i(Ta, {
4070
4088
  value: f,
4071
4089
  onChange: (y) => {
4072
- a((v) => (v.splice(m, 1, y), [...v]));
4090
+ a((v) => (v.splice(h, 1, y), [...v]));
4073
4091
  },
4074
4092
  swatches: p,
4075
4093
  rightSection: /* @__PURE__ */ i(M, {
4076
- onClick: () => s(m),
4094
+ onClick: () => s(h),
4077
4095
  color: "red",
4078
4096
  children: /* @__PURE__ */ i(re, {
4079
4097
  size: 14
@@ -4094,7 +4112,7 @@ function pu({
4094
4112
  });
4095
4113
  }
4096
4114
  const fu = R.forwardRef(pu);
4097
- function hu({
4115
+ function mu({
4098
4116
  value: e,
4099
4117
  onChange: t
4100
4118
  }, n) {
@@ -4144,7 +4162,7 @@ function hu({
4144
4162
  })]
4145
4163
  });
4146
4164
  }
4147
- const Qe = R.forwardRef(hu), Ot = [{
4165
+ const Qe = R.forwardRef(mu), Ot = [{
4148
4166
  label: "initial",
4149
4167
  value: 0
4150
4168
  }, {
@@ -4160,7 +4178,7 @@ const Qe = R.forwardRef(hu), Ot = [{
4160
4178
  label: "bold",
4161
4179
  value: 100
4162
4180
  }];
4163
- function mu({
4181
+ function hu({
4164
4182
  label: e,
4165
4183
  value: t,
4166
4184
  onChange: n
@@ -4188,7 +4206,7 @@ function mu({
4188
4206
  })]
4189
4207
  });
4190
4208
  }
4191
- const vu = R.forwardRef(mu);
4209
+ const vu = R.forwardRef(hu);
4192
4210
  function bu({
4193
4211
  label: e,
4194
4212
  value: t,
@@ -4199,7 +4217,7 @@ function bu({
4199
4217
  }, [a]), s = R.useCallback((c) => {
4200
4218
  a((p) => (p.splice(c, 1), [...p]));
4201
4219
  }, [a]), u = R.useMemo(() => !W.isEqual(o, t), [o, t]);
4202
- return /* @__PURE__ */ d(J, {
4220
+ return /* @__PURE__ */ d(K, {
4203
4221
  children: [/* @__PURE__ */ d(b, {
4204
4222
  position: "left",
4205
4223
  ref: r,
@@ -4221,8 +4239,8 @@ function bu({
4221
4239
  children: [o.map((c, p) => /* @__PURE__ */ i(E, {
4222
4240
  value: c,
4223
4241
  onChange: (f) => {
4224
- const m = f.currentTarget.value;
4225
- a((y) => (y.splice(p, 1, m), [...y]));
4242
+ const h = f.currentTarget.value;
4243
+ a((y) => (y.splice(p, 1, h), [...y]));
4226
4244
  },
4227
4245
  rightSection: /* @__PURE__ */ i(M, {
4228
4246
  onClick: () => s(p),
@@ -4253,8 +4271,8 @@ const yu = R.forwardRef(bu), xu = R.forwardRef(function({
4253
4271
  const u = W.cloneDeep(t);
4254
4272
  W.set(u, l, s), n(u);
4255
4273
  };
4256
- return /* @__PURE__ */ d(J, {
4257
- children: [/* @__PURE__ */ i(K, {
4274
+ return /* @__PURE__ */ d(K, {
4275
+ children: [/* @__PURE__ */ i(Z, {
4258
4276
  my: "xs",
4259
4277
  label: "Typography",
4260
4278
  labelPosition: "center"
@@ -4282,7 +4300,7 @@ const yu = R.forwardRef(bu), xu = R.forwardRef(function({
4282
4300
  value: t.weight,
4283
4301
  onChange: (l) => a("weight", l)
4284
4302
  })
4285
- }), /* @__PURE__ */ i(K, {
4303
+ }), /* @__PURE__ */ i(Z, {
4286
4304
  my: "xs",
4287
4305
  label: "Style",
4288
4306
  labelPosition: "center"
@@ -4301,7 +4319,7 @@ const yu = R.forwardRef(bu), xu = R.forwardRef(function({
4301
4319
  }), o === "static" && /* @__PURE__ */ i(Qe, {
4302
4320
  value: t.color.staticColor,
4303
4321
  onChange: (l) => a("color.staticColor", l)
4304
- }), o === "continuous" && /* @__PURE__ */ d(J, {
4322
+ }), o === "continuous" && /* @__PURE__ */ d(K, {
4305
4323
  children: [/* @__PURE__ */ i(yu, {
4306
4324
  label: "Value Range",
4307
4325
  value: t.color.valueRange,
@@ -4332,7 +4350,7 @@ const yu = R.forwardRef(bu), xu = R.forwardRef(function({
4332
4350
  weight: "bold",
4333
4351
  pb: 0,
4334
4352
  children: t.name
4335
- }), /* @__PURE__ */ i(K, {
4353
+ }), /* @__PURE__ */ i(Z, {
4336
4354
  my: "xs",
4337
4355
  label: "Data",
4338
4356
  labelPosition: "center"
@@ -4344,7 +4362,7 @@ const yu = R.forwardRef(bu), xu = R.forwardRef(function({
4344
4362
  required: !0,
4345
4363
  value: t.name,
4346
4364
  onChange: (s) => l("name", s.currentTarget.value)
4347
- }), /* @__PURE__ */ i(Z, {
4365
+ }), /* @__PURE__ */ i(ee, {
4348
4366
  label: "Data Field",
4349
4367
  required: !0,
4350
4368
  data: r,
@@ -4355,7 +4373,7 @@ const yu = R.forwardRef(bu), xu = R.forwardRef(function({
4355
4373
  label: "Aggregation",
4356
4374
  value: t.aggregation,
4357
4375
  onChange: (s) => l("aggregation", s)
4358
- }), /* @__PURE__ */ i(K, {
4376
+ }), /* @__PURE__ */ i(Z, {
4359
4377
  my: "xs",
4360
4378
  label: "Format",
4361
4379
  labelPosition: "center"
@@ -4420,7 +4438,7 @@ const _u = (e) => ({
4420
4438
  transform: (t) => `${t}${e}`
4421
4439
  }), wt = _u("%");
4422
4440
  Object.assign(Object.assign({}, wt), { parse: (e) => wt.parse(e) / 100, transform: (e) => wt.transform(e * 100) });
4423
- const nr = (e, t) => (n) => Boolean(Vt(n) && Su.test(n) && n.startsWith(e) || t && Object.prototype.hasOwnProperty.call(n, t)), hi = (e, t, n) => (r) => {
4441
+ const nr = (e, t) => (n) => Boolean(Vt(n) && Su.test(n) && n.startsWith(e) || t && Object.prototype.hasOwnProperty.call(n, t)), mi = (e, t, n) => (r) => {
4424
4442
  if (!Vt(r))
4425
4443
  return r;
4426
4444
  const [o, a, l, s] = r.match(qt);
@@ -4432,11 +4450,11 @@ const nr = (e, t) => (n) => Boolean(Vt(n) && Su.test(n) && n.startsWith(e) || t
4432
4450
  };
4433
4451
  }, nt = {
4434
4452
  test: nr("hsl", "hue"),
4435
- parse: hi("hue", "saturation", "lightness"),
4453
+ parse: mi("hue", "saturation", "lightness"),
4436
4454
  transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + wt.transform(Ct(t)) + ", " + wt.transform(Ct(n)) + ", " + Ct(fi.transform(r)) + ")"
4437
4455
  }, Ru = pi(0, 255), yn = Object.assign(Object.assign({}, an), { transform: (e) => Math.round(Ru(e)) }), je = {
4438
4456
  test: nr("rgb", "red"),
4439
- parse: hi("red", "green", "blue"),
4457
+ parse: mi("red", "green", "blue"),
4440
4458
  transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + yn.transform(e) + ", " + yn.transform(t) + ", " + yn.transform(n) + ", " + Ct(fi.transform(r)) + ")"
4441
4459
  };
4442
4460
  function Du(e) {
@@ -4456,7 +4474,7 @@ const kn = {
4456
4474
  test: (e) => je.test(e) || kn.test(e) || nt.test(e),
4457
4475
  parse: (e) => je.test(e) ? je.parse(e) : nt.test(e) ? nt.parse(e) : kn.parse(e),
4458
4476
  transform: (e) => Vt(e) ? e : e.hasOwnProperty("red") ? je.transform(e) : nt.transform(e)
4459
- }, mi = "${c}", vi = "${n}";
4477
+ }, hi = "${c}", vi = "${n}";
4460
4478
  function Iu(e) {
4461
4479
  var t, n, r, o;
4462
4480
  return isNaN(e) && Vt(e) && ((n = (t = e.match(qt)) === null || t === void 0 ? void 0 : t.length) !== null && n !== void 0 ? n : 0) + ((o = (r = e.match($n)) === null || r === void 0 ? void 0 : r.length) !== null && o !== void 0 ? o : 0) > 0;
@@ -4466,7 +4484,7 @@ function bi(e) {
4466
4484
  const t = [];
4467
4485
  let n = 0;
4468
4486
  const r = e.match($n);
4469
- r && (n = r.length, e = e.replace($n, mi), t.push(...r.map(ln.parse)));
4487
+ r && (n = r.length, e = e.replace($n, hi), t.push(...r.map(ln.parse)));
4470
4488
  const o = e.match(qt);
4471
4489
  return o && (e = e.replace(qt, vi), t.push(...o.map(an.parse))), { values: t, numColors: n, tokenised: e };
4472
4490
  }
@@ -4478,7 +4496,7 @@ function xi(e) {
4478
4496
  return (a) => {
4479
4497
  let l = r;
4480
4498
  for (let s = 0; s < o; s++)
4481
- l = l.replace(s < n ? mi : vi, s < n ? ln.transform(a[s]) : Ct(a[s]));
4499
+ l = l.replace(s < n ? hi : vi, s < n ? ln.transform(a[s]) : Ct(a[s]));
4482
4500
  return l;
4483
4501
  };
4484
4502
  }
@@ -4642,7 +4660,7 @@ function ju(e, t) {
4642
4660
  }), n;
4643
4661
  }
4644
4662
  function Hu(e) {
4645
- return e.split(" ").map((t) => /* @__PURE__ */ d(J, {
4663
+ return e.split(" ").map((t) => /* @__PURE__ */ d(K, {
4646
4664
  children: [t, "\xA0"]
4647
4665
  }));
4648
4666
  }
@@ -4668,7 +4686,7 @@ function En(e, t, n) {
4668
4686
  if (!s)
4669
4687
  return Cn(a);
4670
4688
  const u = (g = l[2]) != null ? g : "";
4671
- return /* @__PURE__ */ d(J, {
4689
+ return /* @__PURE__ */ d(K, {
4672
4690
  children: [s, Cn(u)]
4673
4691
  });
4674
4692
  });
@@ -4789,12 +4807,12 @@ function Ju({
4789
4807
  } = Q(e.instanceData, "config"), o = R.useMemo(() => {
4790
4808
  const {
4791
4809
  align: f,
4792
- template: m = "",
4810
+ template: h = "",
4793
4811
  variables: y = []
4794
4812
  } = rt({}, n, Kn);
4795
4813
  return {
4796
4814
  variables: y,
4797
- template: m,
4815
+ template: h,
4798
4816
  align: f
4799
4817
  };
4800
4818
  }, [n]), {
@@ -4931,10 +4949,10 @@ function z(e, t, n) {
4931
4949
  r = l;
4932
4950
  let u;
4933
4951
  if (n.key && n.debug && (u = Date.now()), o = t(...l), n == null || n.onChange == null || n.onChange(o), n.key && n.debug && n != null && n.debug()) {
4934
- const g = Math.round((Date.now() - a) * 100) / 100, c = Math.round((Date.now() - u) * 100) / 100, p = c / 16, f = (m, y) => {
4935
- for (m = String(m); m.length < y; )
4936
- m = " " + m;
4937
- return m;
4952
+ const g = Math.round((Date.now() - a) * 100) / 100, c = Math.round((Date.now() - u) * 100) / 100, p = c / 16, f = (h, y) => {
4953
+ for (h = String(h); h.length < y; )
4954
+ h = " " + h;
4955
+ return h;
4938
4956
  };
4939
4957
  console.info("%c\u23F1 " + f(c, 5) + " /" + f(g, 5) + " ms", `
4940
4958
  font-size: .6rem;
@@ -4952,10 +4970,10 @@ function ec(e, t, n, r) {
4952
4970
  }, u = s.accessorKey;
4953
4971
  let g = (o = (a = s.id) != null ? a : u ? u.replace(".", "_") : void 0) != null ? o : typeof s.header == "string" ? s.header : void 0, c;
4954
4972
  if (s.accessorFn ? c = s.accessorFn : u && (u.includes(".") ? c = (f) => {
4955
- let m = f;
4973
+ let h = f;
4956
4974
  for (const y of u.split("."))
4957
- m = m[y];
4958
- return m;
4975
+ h = h[y];
4976
+ return h;
4959
4977
  } : c = (f) => f[s.accessorKey]), !g)
4960
4978
  throw process.env.NODE_ENV !== "production" ? new Error(s.accessorFn ? "Columns require an id when using an accessorFn" : "Columns require an id when using a non-string header") : new Error();
4961
4979
  let p = {
@@ -4967,7 +4985,7 @@ function ec(e, t, n, r) {
4967
4985
  columns: [],
4968
4986
  getFlatColumns: z(() => [!0], () => {
4969
4987
  var f;
4970
- return [p, ...(f = p.columns) == null ? void 0 : f.flatMap((m) => m.getFlatColumns())];
4988
+ return [p, ...(f = p.columns) == null ? void 0 : f.flatMap((h) => h.getFlatColumns())];
4971
4989
  }, {
4972
4990
  key: process.env.NODE_ENV === "production" && "column.getFlatColumns",
4973
4991
  debug: () => {
@@ -4976,8 +4994,8 @@ function ec(e, t, n, r) {
4976
4994
  }
4977
4995
  }),
4978
4996
  getLeafColumns: z(() => [e._getOrderColumnsFn()], (f) => {
4979
- var m;
4980
- if ((m = p.columns) != null && m.length) {
4997
+ var h;
4998
+ if ((h = p.columns) != null && h.length) {
4981
4999
  let y = p.columns.flatMap((v) => v.getLeafColumns());
4982
5000
  return f(y);
4983
5001
  }
@@ -4990,7 +5008,7 @@ function ec(e, t, n, r) {
4990
5008
  }
4991
5009
  })
4992
5010
  };
4993
- return p = e._features.reduce((f, m) => Object.assign(f, m.createColumn == null ? void 0 : m.createColumn(p, e)), p), p;
5011
+ return p = e._features.reduce((f, h) => Object.assign(f, h.createColumn == null ? void 0 : h.createColumn(p, e)), p), p;
4994
5012
  }
4995
5013
  function to(e, t, n) {
4996
5014
  var r;
@@ -5164,18 +5182,18 @@ const tc = {
5164
5182
  function zt(e, t, n, r) {
5165
5183
  var o, a;
5166
5184
  let l = 0;
5167
- const s = function(f, m) {
5168
- m === void 0 && (m = 1), l = Math.max(l, m), f.filter((y) => y.getIsVisible()).forEach((y) => {
5185
+ const s = function(f, h) {
5186
+ h === void 0 && (h = 1), l = Math.max(l, h), f.filter((y) => y.getIsVisible()).forEach((y) => {
5169
5187
  var v;
5170
- (v = y.columns) != null && v.length && s(y.columns, m + 1);
5188
+ (v = y.columns) != null && v.length && s(y.columns, h + 1);
5171
5189
  }, 0);
5172
5190
  };
5173
5191
  s(e);
5174
5192
  let u = [];
5175
- const g = (f, m) => {
5193
+ const g = (f, h) => {
5176
5194
  const y = {
5177
- depth: m,
5178
- id: [r, "" + m].filter(Boolean).join("_"),
5195
+ depth: h,
5196
+ id: [r, "" + h].filter(Boolean).join("_"),
5179
5197
  headers: []
5180
5198
  }, v = [];
5181
5199
  f.forEach((w) => {
@@ -5185,19 +5203,19 @@ function zt(e, t, n, r) {
5185
5203
  F.subHeaders.push(w);
5186
5204
  else {
5187
5205
  const Y = to(n, O, {
5188
- id: [r, m, O.id, w == null ? void 0 : w.id].filter(Boolean).join("_"),
5206
+ id: [r, h, O.id, w == null ? void 0 : w.id].filter(Boolean).join("_"),
5189
5207
  isPlaceholder: L,
5190
5208
  placeholderId: L ? "" + v.filter((ce) => ce.column === O).length : void 0,
5191
- depth: m,
5209
+ depth: h,
5192
5210
  index: v.length
5193
5211
  });
5194
5212
  Y.subHeaders.push(w), v.push(Y);
5195
5213
  }
5196
5214
  y.headers.push(w), w.headerGroup = y;
5197
- }), u.push(y), m > 0 && g(v, m - 1);
5198
- }, c = t.map((f, m) => to(n, f, {
5215
+ }), u.push(y), h > 0 && g(v, h - 1);
5216
+ }, c = t.map((f, h) => to(n, f, {
5199
5217
  depth: l,
5200
- index: m
5218
+ index: h
5201
5219
  }));
5202
5220
  g(c, l - 1), u.reverse();
5203
5221
  const p = (f) => f.filter((y) => y.column.getIsVisible()).map((y) => {
@@ -5294,7 +5312,7 @@ const Pt = {
5294
5312
  return (o) => {
5295
5313
  if (!r || (o.persist == null || o.persist(), Sn(o) && o.touches && o.touches.length > 1))
5296
5314
  return;
5297
- const a = e.getSize(), l = e ? e.getLeafHeaders().map((m) => [m.column.id, m.column.getSize()]) : [[n.id, n.getSize()]], s = Sn(o) ? Math.round(o.touches[0].clientX) : o.clientX, u = (m, y) => {
5315
+ const a = e.getSize(), l = e ? e.getLeafHeaders().map((h) => [h.column.id, h.column.getSize()]) : [[n.id, n.getSize()]], s = Sn(o) ? Math.round(o.touches[0].clientX) : o.clientX, u = (h, y) => {
5298
5316
  if (typeof y != "number")
5299
5317
  return;
5300
5318
  let v = {};
@@ -5309,12 +5327,12 @@ const Pt = {
5309
5327
  deltaOffset: O,
5310
5328
  deltaPercentage: L
5311
5329
  };
5312
- }), (t.options.columnResizeMode === "onChange" || m === "end") && t.setColumnSizing((w) => ({
5330
+ }), (t.options.columnResizeMode === "onChange" || h === "end") && t.setColumnSizing((w) => ({
5313
5331
  ...w,
5314
5332
  ...v
5315
5333
  }));
5316
- }, g = (m) => u("move", m), c = (m) => {
5317
- u("end", m), t.setColumnSizingInfo((y) => ({
5334
+ }, g = (h) => u("move", h), c = (h) => {
5335
+ u("end", h), t.setColumnSizingInfo((y) => ({
5318
5336
  ...y,
5319
5337
  isResizingColumn: !1,
5320
5338
  startOffset: null,
@@ -5324,15 +5342,15 @@ const Pt = {
5324
5342
  columnSizingStart: []
5325
5343
  }));
5326
5344
  }, p = {
5327
- moveHandler: (m) => g(m.clientX),
5328
- upHandler: (m) => {
5329
- document.removeEventListener("mousemove", p.moveHandler), document.removeEventListener("mouseup", p.upHandler), c(m.clientX);
5345
+ moveHandler: (h) => g(h.clientX),
5346
+ upHandler: (h) => {
5347
+ document.removeEventListener("mousemove", p.moveHandler), document.removeEventListener("mouseup", p.upHandler), c(h.clientX);
5330
5348
  }
5331
5349
  }, f = rc() ? {
5332
5350
  passive: !1
5333
5351
  } : !1;
5334
- Sn(o) || (document.addEventListener("mousemove", p.moveHandler, f), document.addEventListener("mouseup", p.upHandler, f)), t.setColumnSizingInfo((m) => ({
5335
- ...m,
5352
+ Sn(o) || (document.addEventListener("mousemove", p.moveHandler, f), document.addEventListener("mouseup", p.upHandler, f)), t.setColumnSizingInfo((h) => ({
5353
+ ...h,
5336
5354
  startOffset: s,
5337
5355
  startSize: a,
5338
5356
  deltaOffset: 0,
@@ -5728,7 +5746,7 @@ const ac = (e, t, n) => n.reduce((r, o) => {
5728
5746
  unique: gc,
5729
5747
  uniqueCount: pc,
5730
5748
  count: fc
5731
- }, hc = {
5749
+ }, mc = {
5732
5750
  getDefaultColumnDef: () => ({
5733
5751
  aggregatedCell: (e) => {
5734
5752
  var t, n;
@@ -5802,7 +5820,7 @@ const ac = (e, t, n) => n.reduce((r, o) => {
5802
5820
  }
5803
5821
  })
5804
5822
  };
5805
- function mc(e, t, n) {
5823
+ function hc(e, t, n) {
5806
5824
  if (!(t != null && t.length) || !n)
5807
5825
  return e;
5808
5826
  const r = e.filter((a) => !t.includes(a.id));
@@ -5834,7 +5852,7 @@ const vc = {
5834
5852
  }
5835
5853
  a = [...a, ...s];
5836
5854
  }
5837
- return mc(a, n, r);
5855
+ return hc(a, n, r);
5838
5856
  }, {
5839
5857
  key: process.env.NODE_ENV === "development" && "getOrderColumnsFn"
5840
5858
  })
@@ -6331,7 +6349,7 @@ const vt = {
6331
6349
  toggleSorting: (n, r) => {
6332
6350
  const o = e.getNextSortingOrder(), a = typeof n < "u" && n !== null;
6333
6351
  t.setSorting((l) => {
6334
- const s = l == null ? void 0 : l.find((m) => m.id === e.id), u = l == null ? void 0 : l.findIndex((m) => m.id === e.id);
6352
+ const s = l == null ? void 0 : l.find((h) => h.id === e.id), u = l == null ? void 0 : l.findIndex((h) => h.id === e.id);
6335
6353
  let g = [], c, p = a ? n : o === "desc";
6336
6354
  if (l != null && l.length && e.getCanMultiSort() && r ? s ? c = "toggle" : c = "add" : l != null && l.length && u !== l.length - 1 ? c = "replace" : s ? c = "toggle" : c = "replace", c === "toggle" && (a || o || (c = "remove")), c === "add") {
6337
6355
  var f;
@@ -6340,10 +6358,10 @@ const vt = {
6340
6358
  desc: p
6341
6359
  }], g.splice(0, g.length - ((f = t.options.maxMultiSortColCount) != null ? f : Number.MAX_SAFE_INTEGER));
6342
6360
  } else
6343
- c === "toggle" ? g = l.map((m) => m.id === e.id ? {
6344
- ...m,
6361
+ c === "toggle" ? g = l.map((h) => h.id === e.id ? {
6362
+ ...h,
6345
6363
  desc: p
6346
- } : m) : c === "remove" ? g = l.filter((m) => m.id !== e.id) : g = [{
6364
+ } : h) : c === "remove" ? g = l.filter((h) => h.id !== e.id) : g = [{
6347
6365
  id: e.id,
6348
6366
  desc: p
6349
6367
  }];
@@ -6472,7 +6490,7 @@ const vt = {
6472
6490
  }
6473
6491
  };
6474
6492
  }
6475
- }, oo = [tc, Vc, vc, yc, ic, Ic, hc, oc, bc, xc, nc];
6493
+ }, oo = [tc, Vc, vc, yc, ic, Ic, mc, oc, bc, xc, nc];
6476
6494
  function Fc(e) {
6477
6495
  var t;
6478
6496
  (e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
@@ -6521,8 +6539,8 @@ function Fc(e) {
6521
6539
  n.options.onStateChange == null || n.options.onStateChange(c);
6522
6540
  },
6523
6541
  _getRowId: (c, p, f) => {
6524
- var m;
6525
- return (m = n.options.getRowId == null ? void 0 : n.options.getRowId(c, p, f)) != null ? m : "" + (f ? [f.id, p].join(".") : p);
6542
+ var h;
6543
+ return (h = n.options.getRowId == null ? void 0 : n.options.getRowId(c, p, f)) != null ? h : "" + (f ? [f.id, p].join(".") : p);
6526
6544
  },
6527
6545
  getCoreRowModel: () => (n._getCoreRowModel || (n._getCoreRowModel = n.options.getCoreRowModel(n)), n._getCoreRowModel()),
6528
6546
  getRowModel: () => n.getPaginationRowModel(),
@@ -6536,14 +6554,14 @@ function Fc(e) {
6536
6554
  var p;
6537
6555
  return c = (p = c) != null ? p : {}, {
6538
6556
  header: (f) => {
6539
- const m = f.header.column.columnDef;
6540
- return m.accessorKey ? m.accessorKey : m.accessorFn ? m.id : null;
6557
+ const h = f.header.column.columnDef;
6558
+ return h.accessorKey ? h.accessorKey : h.accessorFn ? h.id : null;
6541
6559
  },
6542
6560
  cell: (f) => {
6543
- var m, y;
6544
- return (m = (y = f.renderValue()) == null || y.toString == null ? void 0 : y.toString()) != null ? m : null;
6561
+ var h, y;
6562
+ return (h = (y = f.renderValue()) == null || y.toString == null ? void 0 : y.toString()) != null ? h : null;
6545
6563
  },
6546
- ...n._features.reduce((f, m) => Object.assign(f, m.getDefaultColumnDef == null ? void 0 : m.getDefaultColumnDef()), {}),
6564
+ ...n._features.reduce((f, h) => Object.assign(f, h.getDefaultColumnDef == null ? void 0 : h.getDefaultColumnDef()), {}),
6547
6565
  ...c
6548
6566
  };
6549
6567
  }, {
@@ -6555,9 +6573,9 @@ function Fc(e) {
6555
6573
  }),
6556
6574
  _getColumnDefs: () => n.options.columns,
6557
6575
  getAllColumns: z(() => [n._getColumnDefs()], (c) => {
6558
- const p = function(f, m, y) {
6576
+ const p = function(f, h, y) {
6559
6577
  return y === void 0 && (y = 0), f.map((v) => {
6560
- const w = ec(n, v, y, m), F = v;
6578
+ const w = ec(n, v, y, h), F = v;
6561
6579
  return w.columns = F.columns ? p(F.columns, w, y + 1) : [], w;
6562
6580
  });
6563
6581
  };
@@ -6584,7 +6602,7 @@ function Fc(e) {
6584
6602
  }
6585
6603
  }),
6586
6604
  getAllLeafColumns: z(() => [n.getAllColumns(), n._getOrderColumnsFn()], (c, p) => {
6587
- let f = c.flatMap((m) => m.getLeafColumns());
6605
+ let f = c.flatMap((h) => h.getLeafColumns());
6588
6606
  return p(f);
6589
6607
  }, {
6590
6608
  key: process.env.NODE_ENV === "development" && "getAllLeafColumns",
@@ -6728,9 +6746,9 @@ function Ac() {
6728
6746
  const s = (u) => {
6729
6747
  const g = u.slice();
6730
6748
  return g.sort((c, p) => {
6731
- for (let m = 0; m < a.length; m += 1) {
6749
+ for (let h = 0; h < a.length; h += 1) {
6732
6750
  var f;
6733
- const y = a[m], v = l[y.id], w = (f = y == null ? void 0 : y.desc) != null ? f : !1;
6751
+ const y = a[h], v = l[y.id], w = (f = y == null ? void 0 : y.desc) != null ? f : !1;
6734
6752
  if (v.sortUndefined) {
6735
6753
  const $ = c.getValue(y.id), O = p.getValue(y.id), L = typeof $ > "u", Y = typeof O > "u";
6736
6754
  if (L || Y)
@@ -7087,7 +7105,7 @@ function cd({
7087
7105
  context: e,
7088
7106
  instance: t
7089
7107
  }) {
7090
- var ye, he, Re;
7108
+ var ye, me, Re;
7091
7109
  const n = (ye = e.data) != null ? ye : [], {
7092
7110
  height: r,
7093
7111
  width: o
@@ -7108,7 +7126,7 @@ function cd({
7108
7126
  getColIndex: Nt((le) => p.indexOf(le.column.columnDef.meta), [p]),
7109
7127
  vizManager: e.vizManager,
7110
7128
  instance: t
7111
- }), m = N(() => {
7129
+ }), h = N(() => {
7112
7130
  const le = Ec(), De = p.map((ve) => le.accessor(ve.value_field, {
7113
7131
  cell: (Ge) => /* @__PURE__ */ i(sd, {
7114
7132
  tableCellContext: f(Ge.cell),
@@ -7131,7 +7149,7 @@ function cd({
7131
7149
  sorting: y
7132
7150
  },
7133
7151
  onSortingChange: v,
7134
- columns: m,
7152
+ columns: h,
7135
7153
  getCoreRowModel: Mc(),
7136
7154
  getSortedRowModel: Ac()
7137
7155
  }), {
@@ -7144,7 +7162,7 @@ function cd({
7144
7162
  }), {
7145
7163
  virtualItems: L,
7146
7164
  totalSize: Y
7147
- } = O, ce = L.length > 0 && ((he = L == null ? void 0 : L[0]) == null ? void 0 : he.start) || 0, ae = L.length > 0 ? Y - (((Re = L == null ? void 0 : L[L.length - 1]) == null ? void 0 : Re.end) || 0) : 0;
7165
+ } = O, ce = L.length > 0 && ((me = L == null ? void 0 : L[0]) == null ? void 0 : me.start) || 0, ae = L.length > 0 ? Y - (((Re = L == null ? void 0 : L[L.length - 1]) == null ? void 0 : Re.end) || 0) : 0;
7148
7166
  return /* @__PURE__ */ i("div", {
7149
7167
  ref: $,
7150
7168
  style: {
@@ -7183,9 +7201,9 @@ function cd({
7183
7201
  }), L.map((le) => {
7184
7202
  const De = F[le.index];
7185
7203
  return /* @__PURE__ */ i("tr", {
7186
- children: De.getVisibleCells().map((me) => /* @__PURE__ */ i("td", {
7187
- children: Pi(me.column.columnDef.cell, me.getContext())
7188
- }, me.id))
7204
+ children: De.getVisibleCells().map((he) => /* @__PURE__ */ i("td", {
7205
+ children: Pi(he.column.columnDef.cell, he.getContext())
7206
+ }, he.id))
7189
7207
  }, De.id);
7190
7208
  }), ae > 0 && /* @__PURE__ */ i("tr", {
7191
7209
  children: /* @__PURE__ */ i("td", {
@@ -7315,7 +7333,7 @@ function fd(e) {
7315
7333
  } = Ni(), [l, s] = pe(o), [u, {
7316
7334
  setTrue: g,
7317
7335
  setFalse: c
7318
- }] = Rt(!1), p = r % 2 === 1, f = p && o != null, m = !p && o != null, y = `map ${o} to color ${r}`, v = () => {
7336
+ }] = Rt(!1), p = r % 2 === 1, f = p && o != null, h = !p && o != null, y = `map ${o} to color ${r}`, v = () => {
7319
7337
  s(o), c();
7320
7338
  }, w = () => {
7321
7339
  c(), t == null || t(l);
@@ -7375,7 +7393,7 @@ function fd(e) {
7375
7393
  }), /* @__PURE__ */ i(C, {
7376
7394
  title: y,
7377
7395
  style: {
7378
- opacity: m ? 1 : 0
7396
+ opacity: h ? 1 : 0
7379
7397
  },
7380
7398
  color: "dimmed",
7381
7399
  size: "sm",
@@ -7384,7 +7402,7 @@ function fd(e) {
7384
7402
  })]
7385
7403
  });
7386
7404
  }
7387
- const hd = V(({
7405
+ const md = I(({
7388
7406
  model: e
7389
7407
  }) => {
7390
7408
  const {
@@ -7399,11 +7417,11 @@ const hd = V(({
7399
7417
  onChange: (l) => e.changeStep(l, o)
7400
7418
  }, r))
7401
7419
  });
7402
- }), md = V(function(t) {
7420
+ }), hd = I(function(t) {
7403
7421
  const n = Ue(() => new pd(), []);
7404
7422
  return ne(() => {
7405
7423
  n.fromProps(t);
7406
- }), n.interpolation == null ? null : /* @__PURE__ */ i(hd, {
7424
+ }), n.interpolation == null ? null : /* @__PURE__ */ i(md, {
7407
7425
  model: n
7408
7426
  });
7409
7427
  }), vd = (e) => {
@@ -7425,7 +7443,7 @@ const hd = V(({
7425
7443
  interpolation: w
7426
7444
  }));
7427
7445
  }
7428
- const m = () => {
7446
+ const h = () => {
7429
7447
  c(), n == null || n(Jt(a));
7430
7448
  };
7431
7449
  function y(w) {
@@ -7437,7 +7455,7 @@ const hd = V(({
7437
7455
  const v = () => {
7438
7456
  c(), l(t);
7439
7457
  };
7440
- return /* @__PURE__ */ d(J, {
7458
+ return /* @__PURE__ */ d(K, {
7441
7459
  children: [/* @__PURE__ */ i(j, {
7442
7460
  variant: "outline",
7443
7461
  onClick: g,
@@ -7454,7 +7472,7 @@ const hd = V(({
7454
7472
  value: a.interpolation,
7455
7473
  data: p,
7456
7474
  onChange: f
7457
- }), /* @__PURE__ */ i(md, {
7475
+ }), /* @__PURE__ */ i(hd, {
7458
7476
  steps: a.steps,
7459
7477
  interpolation: s,
7460
7478
  onChange: y
@@ -7465,7 +7483,7 @@ const hd = V(({
7465
7483
  variant: "subtle",
7466
7484
  children: "Cancel"
7467
7485
  }), /* @__PURE__ */ i(j, {
7468
- onClick: m,
7486
+ onClick: h,
7469
7487
  children: "OK"
7470
7488
  })]
7471
7489
  })]
@@ -7501,23 +7519,23 @@ const wd = (e) => {
7501
7519
  children: [/* @__PURE__ */ i(T, {
7502
7520
  label: "Cell background",
7503
7521
  value: n || "none",
7504
- onChange: (m) => {
7522
+ onChange: (h) => {
7505
7523
  var y, v, w;
7506
- r(m || "none"), m === "static" ? (y = e.onChange) == null || y.call(e, l.current) : m === "none" || !m ? (v = e.onChange) == null || v.call(e, "none") : (w = e.onChange) == null || w.call(e, g.current);
7524
+ r(h || "none"), h === "static" ? (y = e.onChange) == null || y.call(e, l.current) : h === "none" || !h ? (v = e.onChange) == null || v.call(e, "none") : (w = e.onChange) == null || w.call(e, g.current);
7507
7525
  },
7508
7526
  data: bd
7509
7527
  }), n === "static" && /* @__PURE__ */ i(Qe, {
7510
7528
  value: o,
7511
- onChange: (m) => {
7529
+ onChange: (h) => {
7512
7530
  var y;
7513
- a(m), (y = e.onChange) == null || y.call(e, m);
7531
+ a(h), (y = e.onChange) == null || y.call(e, h);
7514
7532
  }
7515
7533
  }), n === "interpolation" && /* @__PURE__ */ i(vd, {
7516
7534
  colorManager: t,
7517
7535
  value: s,
7518
- onChange: (m) => {
7536
+ onChange: (h) => {
7519
7537
  var y;
7520
- u(m), (y = e.onChange) == null || y.call(e, m);
7538
+ u(h), (y = e.onChange) == null || y.call(e, h);
7521
7539
  }
7522
7540
  })]
7523
7541
  });
@@ -7591,7 +7609,7 @@ function Rd({
7591
7609
  border: "1px solid #eee",
7592
7610
  borderRadius: "5px"
7593
7611
  },
7594
- children: [/* @__PURE__ */ i(Z, {
7612
+ children: [/* @__PURE__ */ i(ee, {
7595
7613
  label: "ID Field",
7596
7614
  required: !0,
7597
7615
  data: o,
@@ -7697,7 +7715,7 @@ function Rd({
7697
7715
  flex: 1
7698
7716
  },
7699
7717
  ...r.getInputProps(`columns.${s}.label`)
7700
- }), /* @__PURE__ */ i(Z, {
7718
+ }), /* @__PURE__ */ i(ee, {
7701
7719
  label: "Value Field",
7702
7720
  required: !0,
7703
7721
  data: o,
@@ -7804,7 +7822,7 @@ function Vd({
7804
7822
  value: Number(p[l])
7805
7823
  })), [n, a, l]), u = N(() => {
7806
7824
  var p, f;
7807
- return (f = (p = wo(s, (m) => m.value)) == null ? void 0 : p.value) != null ? f : 1;
7825
+ return (f = (p = wo(s, (h) => h.value)) == null ? void 0 : p.value) != null ? f : 1;
7808
7826
  }, [s]), g = N(() => ({
7809
7827
  series: {
7810
7828
  label: {
@@ -7879,12 +7897,12 @@ function Fd({
7879
7897
  border: "1px solid #eee",
7880
7898
  borderRadius: "5px"
7881
7899
  },
7882
- children: [/* @__PURE__ */ i(Z, {
7900
+ children: [/* @__PURE__ */ i(ee, {
7883
7901
  label: "Label Field",
7884
7902
  required: !0,
7885
7903
  data: a,
7886
7904
  ...l.getInputProps("label_field")
7887
- }), /* @__PURE__ */ i(Z, {
7905
+ }), /* @__PURE__ */ i(ee, {
7888
7906
  label: "Value Field",
7889
7907
  required: !0,
7890
7908
  data: a,
@@ -8040,12 +8058,12 @@ function Ad({
8040
8058
  border: "1px solid #eee",
8041
8059
  borderRadius: "5px"
8042
8060
  },
8043
- children: [/* @__PURE__ */ i(Z, {
8061
+ children: [/* @__PURE__ */ i(ee, {
8044
8062
  label: "Label Field",
8045
8063
  required: !0,
8046
8064
  data: a,
8047
8065
  ...l.getInputProps("label_field")
8048
- }), /* @__PURE__ */ i(Z, {
8066
+ }), /* @__PURE__ */ i(ee, {
8049
8067
  label: "Value Field",
8050
8068
  required: !0,
8051
8069
  data: a,
@@ -8113,7 +8131,7 @@ function Pd({
8113
8131
  }, [n, s]), f = N(() => {
8114
8132
  const y = wo(n, (v) => v[s]);
8115
8133
  return de(y, s);
8116
- }, [n, s]), m = {
8134
+ }, [n, s]), h = {
8117
8135
  tooltip: {},
8118
8136
  backgroundColor: "#fff",
8119
8137
  visualMap: {
@@ -8149,7 +8167,7 @@ function Pd({
8149
8167
  };
8150
8168
  return t ? /* @__PURE__ */ i(Ke, {
8151
8169
  echarts: ue,
8152
- option: m,
8170
+ option: h,
8153
8171
  style: {
8154
8172
  width: r,
8155
8173
  height: o
@@ -8191,7 +8209,7 @@ function Td({
8191
8209
  control: a,
8192
8210
  render: ({
8193
8211
  field: u
8194
- }) => /* @__PURE__ */ i(Z, {
8212
+ }) => /* @__PURE__ */ i(ee, {
8195
8213
  label: "Data Field",
8196
8214
  required: !0,
8197
8215
  data: r,
@@ -8227,7 +8245,7 @@ function Td({
8227
8245
  control: a,
8228
8246
  render: ({
8229
8247
  field: u
8230
- }) => /* @__PURE__ */ i(Z, {
8248
+ }) => /* @__PURE__ */ i(ee, {
8231
8249
  label: "Data Field",
8232
8250
  required: !0,
8233
8251
  data: r,
@@ -8263,7 +8281,7 @@ function Td({
8263
8281
  control: a,
8264
8282
  render: ({
8265
8283
  field: u
8266
- }) => /* @__PURE__ */ i(Z, {
8284
+ }) => /* @__PURE__ */ i(ee, {
8267
8285
  label: "Data Field",
8268
8286
  required: !0,
8269
8287
  data: r,
@@ -8381,10 +8399,10 @@ function Gd({
8381
8399
  xAxisData: c,
8382
8400
  boxplotData: p
8383
8401
  } = N(() => {
8384
- const m = W.groupBy(n, a.data_key);
8402
+ const h = W.groupBy(n, a.data_key);
8385
8403
  return {
8386
- xAxisData: Object.keys(m),
8387
- boxplotData: Object.values(m).map((y) => y.map((v) => v[l.data_key]))
8404
+ xAxisData: Object.keys(h),
8405
+ boxplotData: Object.values(h).map((y) => y.map((v) => v[l.data_key]))
8388
8406
  };
8389
8407
  }, [n, a.data_key, l.data_key]), f = {
8390
8408
  dataset: [{
@@ -8393,9 +8411,9 @@ function Gd({
8393
8411
  transform: {
8394
8412
  type: "boxplot",
8395
8413
  config: {
8396
- itemNameFormatter: function(m) {
8414
+ itemNameFormatter: function(h) {
8397
8415
  var y;
8398
- return (y = c[m.value]) != null ? y : m.value;
8416
+ return (y = c[h.value]) != null ? y : h.value;
8399
8417
  }
8400
8418
  }
8401
8419
  }
@@ -8693,7 +8711,7 @@ function Ud({
8693
8711
  control: a,
8694
8712
  render: ({
8695
8713
  field: f
8696
- }) => /* @__PURE__ */ i(Z, {
8714
+ }) => /* @__PURE__ */ i(ee, {
8697
8715
  label: "X Axis Data Field",
8698
8716
  required: !0,
8699
8717
  data: r,
@@ -8723,7 +8741,7 @@ function Ud({
8723
8741
  control: a,
8724
8742
  render: ({
8725
8743
  field: f
8726
- }) => /* @__PURE__ */ i(Z, {
8744
+ }) => /* @__PURE__ */ i(ee, {
8727
8745
  label: "Y Axis Data Field",
8728
8746
  required: !0,
8729
8747
  data: r,
@@ -8835,7 +8853,7 @@ function Jd({ regressions: e = [] }, t) {
8835
8853
  const g = `x-axis-for-${s}`, c = `dataset-for-${s}--raw`, p = `dataset-for-${s}--transformed`;
8836
8854
  n.push({
8837
8855
  id: c,
8838
- source: t.map((f, m) => [m, Number(f[u])])
8856
+ source: t.map((f, h) => [h, Number(f[u])])
8839
8857
  }), n.push({
8840
8858
  transform: a,
8841
8859
  id: p,
@@ -8926,7 +8944,7 @@ function tg({ x_axis_data_key: e }, {
8926
8944
  display_name_on_line: u,
8927
8945
  ...g
8928
8946
  }, c, p, f) {
8929
- const m = {
8947
+ const h = {
8930
8948
  label: {
8931
8949
  show: !!r,
8932
8950
  position: r,
@@ -8939,16 +8957,16 @@ function tg({ x_axis_data_key: e }, {
8939
8957
  color: s,
8940
8958
  ...g
8941
8959
  };
8942
- if (u && (m.endLabel = {
8960
+ if (u && (h.endLabel = {
8943
8961
  show: !0,
8944
8962
  formatter: o,
8945
8963
  offset: [-12, 12],
8946
8964
  align: "right"
8947
8965
  }), !a)
8948
- return m.data = p.map((v) => v[t]), m;
8966
+ return h.data = p.map((v) => v[t]), h;
8949
8967
  const y = Ja(p, a);
8950
8968
  return Object.entries(y).map(([v, w]) => {
8951
- const F = Co(m);
8969
+ const F = Co(h);
8952
8970
  return F.data = Kd(c, w, e, t), F.name = v, F.color = void 0, F;
8953
8971
  });
8954
8972
  }
@@ -9049,9 +9067,9 @@ const ag = {
9049
9067
  };
9050
9068
  function lg(e, t) {
9051
9069
  const n = e.y_axes.reduce(
9052
- (g, { label_formatter: c }, p) => (g[p] = function(m) {
9053
- let y = m;
9054
- if (typeof m == "object" && (Array.isArray(m.value) && m.value.length === 2 ? y = m.value[1] : y = m.value), !c)
9070
+ (g, { label_formatter: c }, p) => (g[p] = function(h) {
9071
+ let y = h;
9072
+ if (typeof h == "object" && (Array.isArray(h.value) && h.value.length === 2 ? y = h.value[1] : y = h.value), !c)
9055
9073
  return y;
9056
9074
  try {
9057
9075
  return we(y).format(c);
@@ -9134,12 +9152,12 @@ function ug({
9134
9152
  const {
9135
9153
  stats: {
9136
9154
  templates: f,
9137
- variables: m
9155
+ variables: h
9138
9156
  }
9139
9157
  } = n;
9140
9158
  return {
9141
- top: En(f.top, m, r),
9142
- bottom: En(f.bottom, m, r)
9159
+ top: En(f.top, h, r),
9160
+ bottom: En(f.bottom, h, r)
9143
9161
  };
9144
9162
  }, [n, r]), p = Math.max(0, a - s - g);
9145
9163
  return /* @__PURE__ */ d(B, {
@@ -9246,7 +9264,7 @@ function gg({
9246
9264
  ...o
9247
9265
  })
9248
9266
  })]
9249
- }), /* @__PURE__ */ i(K, {
9267
+ }), /* @__PURE__ */ i(Z, {
9250
9268
  variant: "dashed",
9251
9269
  label: "Data",
9252
9270
  labelPosition: "center"
@@ -9414,7 +9432,7 @@ function fg({
9414
9432
  })]
9415
9433
  }, t);
9416
9434
  }
9417
- function hg({
9435
+ function mg({
9418
9436
  control: e,
9419
9437
  watch: t
9420
9438
  }) {
@@ -9452,7 +9470,7 @@ function hg({
9452
9470
  })]
9453
9471
  });
9454
9472
  }
9455
- const mg = [{
9473
+ const hg = [{
9456
9474
  label: "Linear",
9457
9475
  value: "linear"
9458
9476
  }, {
@@ -9512,7 +9530,7 @@ function bg({
9512
9530
  control: e,
9513
9531
  render: ({
9514
9532
  field: s
9515
- }) => /* @__PURE__ */ i(Z, {
9533
+ }) => /* @__PURE__ */ i(ee, {
9516
9534
  label: "Value Field",
9517
9535
  required: !0,
9518
9536
  data: a,
@@ -9561,7 +9579,7 @@ function bg({
9561
9579
  field: s
9562
9580
  }) => /* @__PURE__ */ i(T, {
9563
9581
  label: "Method",
9564
- data: mg,
9582
+ data: hg,
9565
9583
  sx: {
9566
9584
  flex: 1
9567
9585
  },
@@ -9580,7 +9598,7 @@ function bg({
9580
9598
  ...s
9581
9599
  })
9582
9600
  })]
9583
- }), /* @__PURE__ */ i(K, {
9601
+ }), /* @__PURE__ */ i(Z, {
9584
9602
  mb: -15,
9585
9603
  variant: "dashed",
9586
9604
  label: "Line Style",
@@ -9714,7 +9732,7 @@ function Cg({
9714
9732
  control: e,
9715
9733
  index: t
9716
9734
  }) {
9717
- return /* @__PURE__ */ d(J, {
9735
+ return /* @__PURE__ */ d(K, {
9718
9736
  children: [/* @__PURE__ */ d(b, {
9719
9737
  grow: !0,
9720
9738
  align: "top",
@@ -9786,8 +9804,8 @@ function _g({
9786
9804
  control: e,
9787
9805
  index: t
9788
9806
  }) {
9789
- return /* @__PURE__ */ d(J, {
9790
- children: [/* @__PURE__ */ i(K, {
9807
+ return /* @__PURE__ */ d(K, {
9808
+ children: [/* @__PURE__ */ i(Z, {
9791
9809
  mb: -15,
9792
9810
  variant: "dashed",
9793
9811
  label: "Line Settings",
@@ -10026,7 +10044,7 @@ function Vg({
10026
10044
  control: e,
10027
10045
  render: ({
10028
10046
  field: s
10029
- }) => /* @__PURE__ */ i(Z, {
10047
+ }) => /* @__PURE__ */ i(ee, {
10030
10048
  label: "Value Field",
10031
10049
  required: !0,
10032
10050
  data: a,
@@ -10073,7 +10091,7 @@ function Vg({
10073
10091
  control: e,
10074
10092
  render: ({
10075
10093
  field: s
10076
- }) => /* @__PURE__ */ i(Z, {
10094
+ }) => /* @__PURE__ */ i(ee, {
10077
10095
  label: "Group By",
10078
10096
  data: a,
10079
10097
  clearable: !0,
@@ -10377,7 +10395,7 @@ function Ag({
10377
10395
  control: t,
10378
10396
  render: ({
10379
10397
  field: r
10380
- }) => /* @__PURE__ */ i(Z, {
10398
+ }) => /* @__PURE__ */ i(ee, {
10381
10399
  label: "X Axis Data Field",
10382
10400
  required: !0,
10383
10401
  data: e,
@@ -10399,7 +10417,7 @@ function Ag({
10399
10417
  ...r
10400
10418
  })
10401
10419
  })]
10402
- }), /* @__PURE__ */ i(K, {
10420
+ }), /* @__PURE__ */ i(Z, {
10403
10421
  mb: -15,
10404
10422
  label: "Tick Label",
10405
10423
  labelPosition: "center"
@@ -10463,7 +10481,7 @@ function Pg({
10463
10481
  border: "1px solid #eee",
10464
10482
  position: "relative"
10465
10483
  },
10466
- children: [/* @__PURE__ */ i(K, {
10484
+ children: [/* @__PURE__ */ i(Z, {
10467
10485
  mb: -15,
10468
10486
  variant: "dashed",
10469
10487
  label: "Name",
@@ -10499,7 +10517,7 @@ function Pg({
10499
10517
  ...r
10500
10518
  })
10501
10519
  })]
10502
- }), /* @__PURE__ */ i(K, {
10520
+ }), /* @__PURE__ */ i(Z, {
10503
10521
  mb: -15,
10504
10522
  variant: "dashed",
10505
10523
  label: "Layout",
@@ -10523,7 +10541,7 @@ function Pg({
10523
10541
  })
10524
10542
  })
10525
10543
  }), /* @__PURE__ */ d(_, {
10526
- children: [/* @__PURE__ */ i(K, {
10544
+ children: [/* @__PURE__ */ i(Z, {
10527
10545
  mb: -15,
10528
10546
  variant: "dashed",
10529
10547
  label: "Label Format",
@@ -10599,7 +10617,7 @@ function Lg(e) {
10599
10617
  color: c = "black",
10600
10618
  barWidth: p = "30",
10601
10619
  barGap: f = "0%",
10602
- smooth: m = !1,
10620
+ smooth: h = !1,
10603
10621
  step: y = !1,
10604
10622
  group_by_key: v = "",
10605
10623
  display_name_on_line: w = !1,
@@ -10620,7 +10638,7 @@ function Lg(e) {
10620
10638
  color: c,
10621
10639
  barWidth: p,
10622
10640
  barGap: f,
10623
- smooth: m,
10641
+ smooth: h,
10624
10642
  step: y,
10625
10643
  group_by_key: v,
10626
10644
  display_name_on_line: w,
@@ -10791,7 +10809,7 @@ function Gg({
10791
10809
  }), /* @__PURE__ */ i(k.Panel, {
10792
10810
  value: "reference_lines",
10793
10811
  pt: "xs",
10794
- children: /* @__PURE__ */ i(hg, {
10812
+ children: /* @__PURE__ */ i(mg, {
10795
10813
  control: l,
10796
10814
  watch: u
10797
10815
  })
@@ -11013,7 +11031,7 @@ function Xg({
11013
11031
  control: e,
11014
11032
  render: ({
11015
11033
  field: o
11016
- }) => /* @__PURE__ */ i(Z, {
11034
+ }) => /* @__PURE__ */ i(ee, {
11017
11035
  label: "Data Key",
11018
11036
  required: !0,
11019
11037
  data: r,
@@ -11038,7 +11056,7 @@ function Xg({
11038
11056
  })
11039
11057
  })]
11040
11058
  }), /* @__PURE__ */ d(_, {
11041
- children: [/* @__PURE__ */ i(K, {
11059
+ children: [/* @__PURE__ */ i(Z, {
11042
11060
  mb: -15,
11043
11061
  variant: "dashed",
11044
11062
  label: "Value Formatter",
@@ -11149,7 +11167,7 @@ function Zg({
11149
11167
  ne(() => {
11150
11168
  Te(p(), s) || f(s);
11151
11169
  }, [o]), c(["series_name_key"]);
11152
- const m = p(), y = N(() => !Te(m, o), [m, o]);
11170
+ const h = p(), y = N(() => !Te(h, o), [h, o]);
11153
11171
  return /* @__PURE__ */ i(_, {
11154
11172
  mt: "md",
11155
11173
  spacing: "xs",
@@ -11182,7 +11200,7 @@ function Zg({
11182
11200
  control: u,
11183
11201
  render: ({
11184
11202
  field: v
11185
- }) => /* @__PURE__ */ i(Z, {
11203
+ }) => /* @__PURE__ */ i(ee, {
11186
11204
  label: "Series Name Field",
11187
11205
  required: !0,
11188
11206
  data: t,
@@ -11494,9 +11512,9 @@ function lp({
11494
11512
  } = e.viewport, o = N(() => {
11495
11513
  var f;
11496
11514
  const c = e.data, p = (f = t == null ? void 0 : t.regression) == null ? void 0 : f.y_axis_data_key;
11497
- return p ? c.map((m) => typeof m[p] == "number" ? m : {
11498
- ...m,
11499
- [p]: Number(m[p])
11515
+ return p ? c.map((h) => typeof h[p] == "number" ? h : {
11516
+ ...h,
11517
+ [p]: Number(h[p])
11500
11518
  }) : c;
11501
11519
  }, [e.data, t == null ? void 0 : t.regression.y_axis_data_key]), a = N(() => ip(rt({}, t, fr), o), [t, o]), {
11502
11520
  expression: l,
@@ -11610,7 +11628,7 @@ function up({
11610
11628
  control: e,
11611
11629
  render: ({
11612
11630
  field: o
11613
- }) => /* @__PURE__ */ i(Z, {
11631
+ }) => /* @__PURE__ */ i(ee, {
11614
11632
  label: "Value Field",
11615
11633
  required: !0,
11616
11634
  data: n,
@@ -11738,7 +11756,7 @@ function cp({
11738
11756
  control: a,
11739
11757
  render: ({
11740
11758
  field: f
11741
- }) => /* @__PURE__ */ i(Z, {
11759
+ }) => /* @__PURE__ */ i(ee, {
11742
11760
  label: "X Axis Data Field",
11743
11761
  required: !0,
11744
11762
  data: r,
@@ -11801,7 +11819,7 @@ const gp = {
11801
11819
  viewRender: lp,
11802
11820
  configRender: cp,
11803
11821
  createConfig: () => fr
11804
- }, hr = {
11822
+ }, mr = {
11805
11823
  x_axis: {
11806
11824
  name: "X Axis",
11807
11825
  data_key: ""
@@ -11816,7 +11834,7 @@ const gp = {
11816
11834
  color: "red"
11817
11835
  }
11818
11836
  };
11819
- function mr(e) {
11837
+ function hr(e) {
11820
11838
  return we(e).format({
11821
11839
  output: "percent",
11822
11840
  mantissa: 0
@@ -11825,7 +11843,7 @@ function mr(e) {
11825
11843
  function pp(e) {
11826
11844
  const t = e.value[1];
11827
11845
  try {
11828
- return mr(t);
11846
+ return hr(t);
11829
11847
  } catch (n) {
11830
11848
  return console.error(n), t;
11831
11849
  }
@@ -11836,12 +11854,12 @@ function fp(e) {
11836
11854
  return "";
11837
11855
  const n = t.map((r, o) => {
11838
11856
  const a = r.seriesName, [l, s] = r.value;
11839
- return a ? `${a}: <strong>${(o === 0 ? (g) => g : mr)(s)}</strong>` : s;
11857
+ return a ? `${a}: <strong>${(o === 0 ? (g) => g : hr)(s)}</strong>` : s;
11840
11858
  });
11841
11859
  return n.unshift(`<strong>${t[0].name}</strong>`), n.join("<br />");
11842
11860
  }
11843
11861
  ue.use([Ao, Oo, Zt, dt, gt, pt, Ze]);
11844
- function hp({
11862
+ function mp({
11845
11863
  context: e
11846
11864
  }) {
11847
11865
  const {
@@ -11854,14 +11872,14 @@ function hp({
11854
11872
  data_key: l,
11855
11873
  bar: s,
11856
11874
  line: u
11857
- } = se({}, t, hr), {
11875
+ } = se({}, t, mr), {
11858
11876
  barData: g,
11859
11877
  lineData: c
11860
11878
  } = N(() => {
11861
- const f = n.map((v) => [v[a.data_key], Number(v[l])]).sort((v, w) => w[1] - v[1]), m = f.reduce((v, w) => v + w[1], 0), y = f.reduce((v, w, F) => {
11879
+ const f = n.map((v) => [v[a.data_key], Number(v[l])]).sort((v, w) => w[1] - v[1]), h = f.reduce((v, w) => v + w[1], 0), y = f.reduce((v, w, F) => {
11862
11880
  const $ = F === 0 ? 0 : v[F - 1][1];
11863
11881
  return v.push([w[0], $ + w[1]]), v;
11864
- }, []).map((v) => [v[0], v[1] / m]);
11882
+ }, []).map((v) => [v[0], v[1] / h]);
11865
11883
  return {
11866
11884
  barData: f,
11867
11885
  lineData: y
@@ -11904,7 +11922,7 @@ function hp({
11904
11922
  },
11905
11923
  axisLabel: {
11906
11924
  show: !0,
11907
- formatter: mr
11925
+ formatter: hr
11908
11926
  }
11909
11927
  }],
11910
11928
  series: [{
@@ -11943,13 +11961,13 @@ function hp({
11943
11961
  }
11944
11962
  });
11945
11963
  }
11946
- function mp({
11964
+ function hp({
11947
11965
  context: e
11948
11966
  }) {
11949
11967
  const {
11950
11968
  value: t,
11951
11969
  set: n
11952
- } = Q(e.instanceData, "config"), r = e.data, o = N(() => se({}, t, hr), [t]), {
11970
+ } = Q(e.instanceData, "config"), r = e.data, o = N(() => se({}, t, mr), [t]), {
11953
11971
  control: a,
11954
11972
  handleSubmit: l,
11955
11973
  watch: s,
@@ -12007,7 +12025,7 @@ function mp({
12007
12025
  control: a,
12008
12026
  render: ({
12009
12027
  field: f
12010
- }) => /* @__PURE__ */ i(Z, {
12028
+ }) => /* @__PURE__ */ i(ee, {
12011
12029
  label: "X Axis Data Field",
12012
12030
  required: !0,
12013
12031
  data: r,
@@ -12022,7 +12040,7 @@ function mp({
12022
12040
  control: a,
12023
12041
  render: ({
12024
12042
  field: f
12025
- }) => /* @__PURE__ */ i(Z, {
12043
+ }) => /* @__PURE__ */ i(ee, {
12026
12044
  label: "Y Axis Data Field",
12027
12045
  required: !0,
12028
12046
  data: r,
@@ -12031,7 +12049,7 @@ function mp({
12031
12049
  },
12032
12050
  ...f
12033
12051
  })
12034
- }), /* @__PURE__ */ i(K, {
12052
+ }), /* @__PURE__ */ i(Z, {
12035
12053
  my: "md",
12036
12054
  label: "Bar",
12037
12055
  labelPosition: "center"
@@ -12065,7 +12083,7 @@ function mp({
12065
12083
  })
12066
12084
  })]
12067
12085
  })]
12068
- }), /* @__PURE__ */ i(K, {
12086
+ }), /* @__PURE__ */ i(Z, {
12069
12087
  my: "md",
12070
12088
  label: "Line",
12071
12089
  labelPosition: "center"
@@ -12119,9 +12137,9 @@ const bp = {
12119
12137
  displayName: "Pareto Chart",
12120
12138
  migrator: new vp(),
12121
12139
  name: "paretoChart",
12122
- viewRender: hp,
12123
- configRender: mp,
12124
- createConfig: () => hr
12140
+ viewRender: mp,
12141
+ configRender: hp,
12142
+ createConfig: () => mr
12125
12143
  }, yp = [{
12126
12144
  value: "#25262B",
12127
12145
  name: "Dark"
@@ -12287,8 +12305,8 @@ const Fp = {
12287
12305
  id: "builtin:op:debug",
12288
12306
  configRender: Ip,
12289
12307
  run: Vp
12290
- }, $p = V((e) => {
12291
- const t = ee(), {
12308
+ }, $p = I((e) => {
12309
+ const t = J(), {
12292
12310
  value: n,
12293
12311
  set: r
12294
12312
  } = Q(e.operation.operationData, "config");
@@ -12322,8 +12340,8 @@ const Ep = {
12322
12340
  run: kp
12323
12341
  }, Mp = {
12324
12342
  dictionary: {}
12325
- }, Ap = V((e) => {
12326
- const t = ee(), {
12343
+ }, Ap = I((e) => {
12344
+ const t = J(), {
12327
12345
  value: n = Mp,
12328
12346
  set: r
12329
12347
  } = Q(e.operation.operationData, "config"), {
@@ -12350,7 +12368,7 @@ const Ep = {
12350
12368
  onChange: (c) => {
12351
12369
  a(s, c.currentTarget.value);
12352
12370
  }
12353
- }), /* @__PURE__ */ i(Z, {
12371
+ }), /* @__PURE__ */ i(ee, {
12354
12372
  data: [t.filters.values],
12355
12373
  value: s,
12356
12374
  onChange: (c) => {
@@ -12449,7 +12467,7 @@ class Tp {
12449
12467
  return this.instance.instanceData.watchItem(
12450
12468
  lo,
12451
12469
  (n) => {
12452
- const r = mo(n).map(
12470
+ const r = ho(n).map(
12453
12471
  (o) => ({
12454
12472
  id: de(o, "id"),
12455
12473
  schemaRef: de(o, "schemaRef"),
@@ -12544,7 +12562,7 @@ function Lp(e, t) {
12544
12562
  r(o);
12545
12563
  }, [t]), n;
12546
12564
  }
12547
- const Np = V(({
12565
+ const Np = I(({
12548
12566
  item: e,
12549
12567
  manager: t,
12550
12568
  instance: n,
@@ -12634,7 +12652,7 @@ const Np = V(({
12634
12652
  return /* @__PURE__ */ i(qp, {
12635
12653
  ...e
12636
12654
  });
12637
- }, jp = V(() => {
12655
+ }, jp = I(() => {
12638
12656
  const {
12639
12657
  panel: e
12640
12658
  } = fe(), [t, n] = R.useState(e.description), r = e.description !== t, o = R.useCallback(() => {
@@ -12671,20 +12689,20 @@ const Np = V(({
12671
12689
  p: "0"
12672
12690
  })]
12673
12691
  });
12674
- }), Hp = V(() => {
12692
+ }), Hp = I(() => {
12675
12693
  const {
12676
12694
  panel: e
12677
12695
  } = fe(), {
12678
12696
  style: t
12679
12697
  } = e;
12680
- return /* @__PURE__ */ i(J, {
12698
+ return /* @__PURE__ */ i(K, {
12681
12699
  children: /* @__PURE__ */ i(Pe, {
12682
12700
  label: "Border",
12683
12701
  checked: t.border.enabled,
12684
12702
  onChange: (n) => t.border.setEnabled(n.currentTarget.checked)
12685
12703
  })
12686
12704
  });
12687
- }), Wp = V(() => {
12705
+ }), Wp = I(() => {
12688
12706
  const {
12689
12707
  panel: {
12690
12708
  title: e,
@@ -12739,7 +12757,7 @@ const Np = V(({
12739
12757
  })]
12740
12758
  })
12741
12759
  });
12742
- }), Up = V(() => {
12760
+ }), Up = I(() => {
12743
12761
  const {
12744
12762
  panel: e
12745
12763
  } = fe(), {
@@ -12791,11 +12809,11 @@ function Yp() {
12791
12809
  flexGrow: 0,
12792
12810
  height: "100%"
12793
12811
  },
12794
- children: [/* @__PURE__ */ i(K, {
12812
+ children: [/* @__PURE__ */ i(Z, {
12795
12813
  label: "Style",
12796
12814
  labelPosition: "center",
12797
12815
  variant: "dashed"
12798
- }), /* @__PURE__ */ i(Hp, {}), /* @__PURE__ */ i(K, {
12816
+ }), /* @__PURE__ */ i(Hp, {}), /* @__PURE__ */ i(Z, {
12799
12817
  label: "Info",
12800
12818
  labelPosition: "center",
12801
12819
  variant: "dashed"
@@ -12810,8 +12828,8 @@ function Yp() {
12810
12828
  })]
12811
12829
  });
12812
12830
  }
12813
- const Qp = V(function() {
12814
- const t = ee(), {
12831
+ const Qp = I(function() {
12832
+ const t = J(), {
12815
12833
  panel: {
12816
12834
  queryID: n,
12817
12835
  setQueryID: r
@@ -12927,7 +12945,7 @@ function Kp(e, t) {
12927
12945
  return console.info(de(c, "message")), null;
12928
12946
  }
12929
12947
  }
12930
- const Zp = ["richText"], Ui = V(function({
12948
+ const Zp = ["richText"], Ui = I(function({
12931
12949
  height: t,
12932
12950
  viz: n,
12933
12951
  data: r,
@@ -12983,7 +13001,7 @@ const Zp = ["richText"], Ui = V(function({
12983
13001
  children: c
12984
13002
  })]
12985
13003
  });
12986
- }), ef = V(() => {
13004
+ }), ef = I(() => {
12987
13005
  const {
12988
13006
  data: e,
12989
13007
  loading: t,
@@ -13050,11 +13068,11 @@ function rf() {
13050
13068
  vizManager: c,
13051
13069
  data: e
13052
13070
  });
13053
- } catch (m) {
13054
- return console.info(de(m, "message")), null;
13071
+ } catch (h) {
13072
+ return console.info(de(h, "message")), null;
13055
13073
  }
13056
13074
  }
13057
- const of = V(() => {
13075
+ const of = I(() => {
13058
13076
  const {
13059
13077
  data: e,
13060
13078
  panel: {
@@ -13065,23 +13083,23 @@ const of = V(() => {
13065
13083
  } = Le(qe), l = R.useCallback(() => {
13066
13084
  if (!o)
13067
13085
  return;
13068
- const m = nf(a, n);
13069
- t.setType(n), t.setConf(m || {});
13070
- }, [t, o, n]), s = (m) => {
13086
+ const h = nf(a, n);
13087
+ t.setType(n), t.setConf(h || {});
13088
+ }, [t, o, n]), s = (h) => {
13071
13089
  try {
13072
- t.setConf(JSON.parse(m));
13090
+ t.setConf(JSON.parse(h));
13073
13091
  } catch (y) {
13074
13092
  console.error(y);
13075
13093
  }
13076
13094
  }, u = R.useMemo(() => {
13077
- var m;
13078
- return (m = Tn.find((y) => y.value === n)) == null ? void 0 : m.Panel;
13095
+ var h;
13096
+ return (h = Tn.find((y) => y.value === n)) == null ? void 0 : h.Panel;
13079
13097
  }, [n, Tn]), g = rf(), c = u ? Yt(u, {
13080
13098
  data: e,
13081
13099
  conf: t.conf,
13082
13100
  setConf: t.setConf
13083
13101
  }) : null, p = g || c, f = tf();
13084
- return /* @__PURE__ */ d(J, {
13102
+ return /* @__PURE__ */ d(K, {
13085
13103
  children: [/* @__PURE__ */ i(T, {
13086
13104
  label: "Visualization",
13087
13105
  value: n,
@@ -13130,7 +13148,7 @@ function af() {
13130
13148
  })]
13131
13149
  });
13132
13150
  }
13133
- const lf = V(function({
13151
+ const lf = I(function({
13134
13152
  opened: t,
13135
13153
  close: n
13136
13154
  }) {
@@ -13214,10 +13232,10 @@ const lf = V(function({
13214
13232
  })
13215
13233
  })
13216
13234
  });
13217
- }), sf = V(({
13235
+ }), sf = I(({
13218
13236
  view: e
13219
13237
  }) => {
13220
- const t = ee(), n = Na(), [r, o] = R.useState(!1), a = () => o(!0), l = () => o(!1), {
13238
+ const t = J(), n = Na(), [r, o] = R.useState(!1), a = () => o(!0), l = () => o(!1), {
13221
13239
  panel: s
13222
13240
  } = fe(), {
13223
13241
  id: u,
@@ -13226,7 +13244,7 @@ const lf = V(function({
13226
13244
  inEditMode: c
13227
13245
  } = R.useContext(Ae), p = () => t.queries.refetchDataByQueryID(g), {
13228
13246
  viewPanelInFullScreen: f,
13229
- inFullScreen: m
13247
+ inFullScreen: h
13230
13248
  } = R.useContext(Hn), y = () => {
13231
13249
  e.panels.duplicateByID(u);
13232
13250
  }, v = () => n.openConfirmModal({
@@ -13240,7 +13258,7 @@ const lf = V(function({
13240
13258
  }), w = R.useCallback(() => {
13241
13259
  f(u);
13242
13260
  }, [u, f]);
13243
- return /* @__PURE__ */ d(J, {
13261
+ return /* @__PURE__ */ d(K, {
13244
13262
  children: [/* @__PURE__ */ i(B, {
13245
13263
  sx: {
13246
13264
  position: "absolute",
@@ -13272,14 +13290,14 @@ const lf = V(function({
13272
13290
  size: 14
13273
13291
  }),
13274
13292
  children: "Download Data"
13275
- }), !m && /* @__PURE__ */ i(be.Item, {
13293
+ }), !h && /* @__PURE__ */ i(be.Item, {
13276
13294
  onClick: w,
13277
13295
  icon: /* @__PURE__ */ i(ll, {
13278
13296
  size: 14
13279
13297
  }),
13280
13298
  children: "Full Screen"
13281
- }), c && /* @__PURE__ */ d(J, {
13282
- children: [/* @__PURE__ */ i(K, {
13299
+ }), c && /* @__PURE__ */ d(K, {
13300
+ children: [/* @__PURE__ */ i(Z, {
13283
13301
  label: "Edit",
13284
13302
  labelPosition: "center"
13285
13303
  }), /* @__PURE__ */ i(be.Item, {
@@ -13311,7 +13329,7 @@ const lf = V(function({
13311
13329
  })]
13312
13330
  });
13313
13331
  });
13314
- const uf = V(function() {
13332
+ const uf = I(function() {
13315
13333
  const {
13316
13334
  panel: t
13317
13335
  } = fe(), {
@@ -13350,18 +13368,18 @@ function gf(e, t, n) {
13350
13368
  border: "1px dashed transparent"
13351
13369
  };
13352
13370
  }
13353
- const br = V(function({
13371
+ const br = I(function({
13354
13372
  panel: t,
13355
13373
  view: n
13356
13374
  }) {
13357
- const r = ee(), {
13375
+ const r = J(), {
13358
13376
  inEditMode: o
13359
13377
  } = Le(Ae), {
13360
13378
  data: a,
13361
13379
  state: l,
13362
13380
  error: s
13363
13381
  } = r.getDataStuffByID(t.queryID), u = cf(t.viz.type), g = u && l === "loading", c = t.title ? "calc(100% - 25px - 5px)" : "100%", p = gf(t, u, o), f = u || o;
13364
- return /* @__PURE__ */ i(jl, {
13382
+ return /* @__PURE__ */ i(El, {
13365
13383
  value: {
13366
13384
  panel: t,
13367
13385
  data: a,
@@ -13394,7 +13412,7 @@ const br = V(function({
13394
13412
  })]
13395
13413
  })
13396
13414
  });
13397
- }), Yi = V(function({
13415
+ }), Yi = I(function({
13398
13416
  view: t,
13399
13417
  panel: n,
13400
13418
  exitFullScreen: r
@@ -13501,7 +13519,7 @@ const pf = R.forwardRef(({
13501
13519
  children: /* @__PURE__ */ i(dl, {
13502
13520
  size: 16
13503
13521
  })
13504
- })), hf = No(Lo), mf = V(function({
13522
+ })), mf = No(Lo), hf = I(function({
13505
13523
  view: t,
13506
13524
  className: n = "layout",
13507
13525
  rowHeight: r = 10,
@@ -13517,7 +13535,7 @@ const pf = R.forwardRef(({
13517
13535
  !c || c.layout.set(g);
13518
13536
  });
13519
13537
  }, [t]);
13520
- return /* @__PURE__ */ i(hf, {
13538
+ return /* @__PURE__ */ i(mf, {
13521
13539
  onLayoutChange: l,
13522
13540
  className: `dashboard-layout ${n}`,
13523
13541
  rowHeight: r,
@@ -13539,7 +13557,7 @@ const pf = R.forwardRef(({
13539
13557
  })]
13540
13558
  }, s.id))
13541
13559
  });
13542
- }), vf = No(Lo), bf = V(function({
13560
+ }), vf = No(Lo), bf = I(function({
13543
13561
  view: t,
13544
13562
  className: n = "layout",
13545
13563
  rowHeight: r = 10
@@ -13558,11 +13576,11 @@ const pf = R.forwardRef(({
13558
13576
  })
13559
13577
  }, o.id))
13560
13578
  });
13561
- }), yf = V(({
13579
+ }), yf = I(({
13562
13580
  children: e
13563
13581
  }) => /* @__PURE__ */ i(B, {
13564
13582
  children: e
13565
- })), xf = V(({
13583
+ })), xf = I(({
13566
13584
  children: e,
13567
13585
  view: t
13568
13586
  }) => /* @__PURE__ */ i(Me, {
@@ -13597,7 +13615,7 @@ const pf = R.forwardRef(({
13597
13615
  withinPortal: !1,
13598
13616
  transitionDuration: 0,
13599
13617
  children: e
13600
- })), Cf = V(({
13618
+ })), Cf = I(({
13601
13619
  view: e,
13602
13620
  children: t
13603
13621
  }) => {
@@ -13613,7 +13631,7 @@ const pf = R.forwardRef(({
13613
13631
  children: t
13614
13632
  });
13615
13633
  }
13616
- }), wf = V(function({
13634
+ }), wf = I(function({
13617
13635
  view: t,
13618
13636
  saveDashboardChanges: n,
13619
13637
  fullScreenPanelID: r,
@@ -13649,10 +13667,10 @@ const pf = R.forwardRef(({
13649
13667
  className: "dashboard-sticky-parent",
13650
13668
  children: [!s && /* @__PURE__ */ i(B, {
13651
13669
  className: "dashboard-sticky-area",
13652
- children: /* @__PURE__ */ i(Yo, {
13670
+ children: /* @__PURE__ */ i(Qo, {
13653
13671
  view: t
13654
13672
  })
13655
- }), !s && /* @__PURE__ */ i(mf, {
13673
+ }), !s && /* @__PURE__ */ i(hf, {
13656
13674
  view: t,
13657
13675
  isDraggable: !0,
13658
13676
  isResizable: !0
@@ -13661,15 +13679,15 @@ const pf = R.forwardRef(({
13661
13679
  })]
13662
13680
  })
13663
13681
  });
13664
- }), Sf = V(({
13682
+ }), Sf = I(({
13665
13683
  children: e
13666
13684
  }) => /* @__PURE__ */ i(B, {
13667
13685
  children: e
13668
- })), _f = V(({
13686
+ })), _f = I(({
13669
13687
  children: e,
13670
13688
  view: t
13671
13689
  }) => {
13672
- const n = ee(), r = n.views.visibleViewIDs.includes(t.id), o = () => n.views.rmVisibleViewID(t.id);
13690
+ const n = J(), r = n.views.visibleViewIDs.includes(t.id), o = () => n.views.rmVisibleViewID(t.id);
13673
13691
  return /* @__PURE__ */ i(Me, {
13674
13692
  size: t.config.width,
13675
13693
  centered: !0,
@@ -13694,7 +13712,7 @@ const pf = R.forwardRef(({
13694
13712
  transitionDuration: 0,
13695
13713
  children: e
13696
13714
  });
13697
- }), Rf = V(({
13715
+ }), Rf = I(({
13698
13716
  view: e,
13699
13717
  children: t
13700
13718
  }) => {
@@ -13710,7 +13728,7 @@ const pf = R.forwardRef(({
13710
13728
  children: t
13711
13729
  });
13712
13730
  }
13713
- }), Df = V(function({
13731
+ }), Df = I(function({
13714
13732
  view: t,
13715
13733
  fullScreenPanelID: n,
13716
13734
  setFullScreenPanelID: r
@@ -13745,7 +13763,7 @@ const pf = R.forwardRef(({
13745
13763
  className: "dashboard-sticky-parent",
13746
13764
  children: [!l && /* @__PURE__ */ i(B, {
13747
13765
  className: "dashboard-sticky-area",
13748
- children: /* @__PURE__ */ i(Yo, {
13766
+ children: /* @__PURE__ */ i(Qo, {
13749
13767
  view: t
13750
13768
  })
13751
13769
  }), !l && /* @__PURE__ */ i(bf, {
@@ -14052,7 +14070,7 @@ const ra = x.model("QueryModel", {
14052
14070
  ).views((e) => ({
14053
14071
  get formattedSQL() {
14054
14072
  const { context: t, mock_context: n, sqlSnippets: r, filterValues: o } = Hr(e).payloadForSQL;
14055
- return Ho(e.sql, t, n, r, o);
14073
+ return Wo(e.sql, t, n, r, o);
14056
14074
  }
14057
14075
  })).views((e) => ({
14058
14076
  get json() {
@@ -14077,13 +14095,13 @@ const ra = x.model("QueryModel", {
14077
14095
  setSQL(t) {
14078
14096
  e.sql = t;
14079
14097
  },
14080
- fetchData: hl(function* () {
14098
+ fetchData: ml(function* () {
14081
14099
  if (!!e.valid) {
14082
14100
  e.state = "loading";
14083
14101
  try {
14084
14102
  const t = e.id, { context: n, mock_context: r, sqlSnippets: o, filterValues: a } = Hr(e).payloadForSQL;
14085
- e.data = yield* ml(
14086
- Al({
14103
+ e.data = yield* hl(
14104
+ Yn({
14087
14105
  context: n,
14088
14106
  mock_context: r,
14089
14107
  sqlSnippets: o,
@@ -14164,7 +14182,7 @@ const ra = x.model("QueryModel", {
14164
14182
  id: n,
14165
14183
  data: r.toJSON()
14166
14184
  }));
14167
- Gl(t);
14185
+ jl(t);
14168
14186
  },
14169
14187
  downloadDataByQueryID(t) {
14170
14188
  const n = e.findByID(t);
@@ -14172,8 +14190,8 @@ const ra = x.model("QueryModel", {
14172
14190
  console.log(`[downloadDataByQueryID] query by ID[${t}] not found`);
14173
14191
  return;
14174
14192
  }
14175
- const { id: r, data: o } = n, a = Qo(o);
14176
- Nl(r, a);
14193
+ const { id: r, data: o } = n, a = Xo(o);
14194
+ Gl(r, a);
14177
14195
  },
14178
14196
  refetchDataByQueryID(t) {
14179
14197
  const n = e.findByID(t);
@@ -14656,7 +14674,7 @@ function ia({ id: e, name: t, filters: n, views: r, definition: { queries: o, sq
14656
14674
  views: Wf(r)
14657
14675
  });
14658
14676
  }
14659
- const $h = V(function({
14677
+ const $m = I(function({
14660
14678
  context: t,
14661
14679
  dashboard: n,
14662
14680
  update: r,
@@ -14665,13 +14683,13 @@ const $h = V(function({
14665
14683
  fullScreenPanelID: l,
14666
14684
  setFullScreenPanelID: s
14667
14685
  }) {
14668
- Wo(a);
14686
+ Uo(a);
14669
14687
  const [u, g] = R.useState(!1), c = R.useMemo(() => ia(n, t), [n]);
14670
14688
  qo(c, !0), R.useEffect(() => {
14671
14689
  c.context.replace(t);
14672
14690
  }, [t]);
14673
14691
  const p = async () => {
14674
- const m = [...c.queries.json], y = [...c.sqlSnippets.json], v = [...c.views.json], w = {
14692
+ const h = [...c.queries.json], y = [...c.sqlSnippets.json], v = [...c.views.json], w = {
14675
14693
  ...c.mock_context.current
14676
14694
  }, F = {
14677
14695
  ...n,
@@ -14679,13 +14697,13 @@ const $h = V(function({
14679
14697
  views: v,
14680
14698
  definition: {
14681
14699
  sqlSnippets: y,
14682
- queries: m,
14700
+ queries: h,
14683
14701
  mock_context: w
14684
14702
  }
14685
14703
  };
14686
14704
  await r(F);
14687
14705
  }, f = Ue(ji, []);
14688
- return /* @__PURE__ */ i(ho, {
14706
+ return /* @__PURE__ */ i(mo, {
14689
14707
  children: /* @__PURE__ */ i(Bo, {
14690
14708
  value: c,
14691
14709
  children: /* @__PURE__ */ i(Ae.Provider, {
@@ -14702,18 +14720,18 @@ const $h = V(function({
14702
14720
  },
14703
14721
  children: /* @__PURE__ */ i(qe.Provider, {
14704
14722
  value: f,
14705
- children: c.views.visibleViews.map((m) => /* @__PURE__ */ i(wf, {
14706
- view: m,
14723
+ children: c.views.visibleViews.map((h) => /* @__PURE__ */ i(wf, {
14724
+ view: h,
14707
14725
  saveDashboardChanges: p,
14708
14726
  fullScreenPanelID: l,
14709
14727
  setFullScreenPanelID: s
14710
- }, m.id))
14728
+ }, h.id))
14711
14729
  })
14712
14730
  })
14713
14731
  })
14714
14732
  })
14715
14733
  });
14716
- }), kh = V(({
14734
+ }), km = I(({
14717
14735
  context: e,
14718
14736
  dashboard: t,
14719
14737
  className: n = "dashboard",
@@ -14721,11 +14739,11 @@ const $h = V(function({
14721
14739
  fullScreenPanelID: o,
14722
14740
  setFullScreenPanelID: a
14723
14741
  }) => {
14724
- Wo(r);
14742
+ Uo(r);
14725
14743
  const l = R.useMemo(() => ia(t, e), [t]);
14726
14744
  return qo(l, !1), R.useEffect(() => {
14727
14745
  l.context.replace(e);
14728
- }, [e]), /* @__PURE__ */ i(ho, {
14746
+ }, [e]), /* @__PURE__ */ i(mo, {
14729
14747
  children: /* @__PURE__ */ i(Bo, {
14730
14748
  value: l,
14731
14749
  children: /* @__PURE__ */ i(Ae.Provider, {
@@ -14754,52 +14772,52 @@ var aa = { exports: {} };
14754
14772
  })(et, function() {
14755
14773
  var n = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, r = {};
14756
14774
  return function(o, a, l) {
14757
- var s, u = function(f, m, y) {
14775
+ var s, u = function(f, h, y) {
14758
14776
  y === void 0 && (y = {});
14759
14777
  var v = new Date(f), w = function(F, $) {
14760
14778
  $ === void 0 && ($ = {});
14761
14779
  var O = $.timeZoneName || "short", L = F + "|" + O, Y = r[L];
14762
14780
  return Y || (Y = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: F, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: O }), r[L] = Y), Y;
14763
- }(m, y);
14781
+ }(h, y);
14764
14782
  return w.formatToParts(v);
14765
- }, g = function(f, m) {
14766
- for (var y = u(f, m), v = [], w = 0; w < y.length; w += 1) {
14783
+ }, g = function(f, h) {
14784
+ for (var y = u(f, h), v = [], w = 0; w < y.length; w += 1) {
14767
14785
  var F = y[w], $ = F.type, O = F.value, L = n[$];
14768
14786
  L >= 0 && (v[L] = parseInt(O, 10));
14769
14787
  }
14770
14788
  var Y = v[3], ce = Y === 24 ? 0 : Y, ae = v[0] + "-" + v[1] + "-" + v[2] + " " + ce + ":" + v[4] + ":" + v[5] + ":000", ye = +f;
14771
14789
  return (l.utc(ae).valueOf() - (ye -= ye % 1e3)) / 6e4;
14772
14790
  }, c = a.prototype;
14773
- c.tz = function(f, m) {
14791
+ c.tz = function(f, h) {
14774
14792
  f === void 0 && (f = s);
14775
14793
  var y = this.utcOffset(), v = this.toDate(), w = v.toLocaleString("en-US", { timeZone: f }), F = Math.round((v - new Date(w)) / 1e3 / 60), $ = l(w).$set("millisecond", this.$ms).utcOffset(15 * -Math.round(v.getTimezoneOffset() / 15) - F, !0);
14776
- if (m) {
14794
+ if (h) {
14777
14795
  var O = $.utcOffset();
14778
14796
  $ = $.add(y - O, "minute");
14779
14797
  }
14780
14798
  return $.$x.$timezone = f, $;
14781
14799
  }, c.offsetName = function(f) {
14782
- var m = this.$x.$timezone || l.tz.guess(), y = u(this.valueOf(), m, { timeZoneName: f }).find(function(v) {
14800
+ var h = this.$x.$timezone || l.tz.guess(), y = u(this.valueOf(), h, { timeZoneName: f }).find(function(v) {
14783
14801
  return v.type.toLowerCase() === "timezonename";
14784
14802
  });
14785
14803
  return y && y.value;
14786
14804
  };
14787
14805
  var p = c.startOf;
14788
- c.startOf = function(f, m) {
14806
+ c.startOf = function(f, h) {
14789
14807
  if (!this.$x || !this.$x.$timezone)
14790
- return p.call(this, f, m);
14808
+ return p.call(this, f, h);
14791
14809
  var y = l(this.format("YYYY-MM-DD HH:mm:ss:SSS"));
14792
- return p.call(y, f, m).tz(this.$x.$timezone, !0);
14793
- }, l.tz = function(f, m, y) {
14794
- var v = y && m, w = y || m || s, F = g(+l(), w);
14810
+ return p.call(y, f, h).tz(this.$x.$timezone, !0);
14811
+ }, l.tz = function(f, h, y) {
14812
+ var v = y && h, w = y || h || s, F = g(+l(), w);
14795
14813
  if (typeof f != "string")
14796
14814
  return l(f).tz(w);
14797
14815
  var $ = function(ce, ae, ye) {
14798
- var he = ce - 60 * ae * 1e3, Re = g(he, ye);
14816
+ var me = ce - 60 * ae * 1e3, Re = g(me, ye);
14799
14817
  if (ae === Re)
14800
- return [he, ae];
14801
- var le = g(he -= 60 * (Re - ae) * 1e3, ye);
14802
- return Re === le ? [he, Re] : [ce - 60 * Math.min(Re, le) * 1e3, Math.max(Re, le)];
14818
+ return [me, ae];
14819
+ var le = g(me -= 60 * (Re - ae) * 1e3, ye);
14820
+ return Re === le ? [me, Re] : [ce - 60 * Math.min(Re, le) * 1e3, Math.max(Re, le)];
14803
14821
  }(l.utc(f, v).valueOf(), F, w), O = $[0], L = $[1], Y = l(O).utcOffset(L);
14804
14822
  return Y.$x.$timezone = w, Y;
14805
14823
  }, l.tz.guess = function() {
@@ -14850,8 +14868,8 @@ var la = { exports: {} };
14850
14868
  var ce = Y.match(r);
14851
14869
  if (!ce)
14852
14870
  return null;
14853
- var ae = ("" + ce[0]).match(o) || ["-", 0, 0], ye = ae[0], he = 60 * +ae[1] + +ae[2];
14854
- return he === 0 ? 0 : ye === "+" ? he : -he;
14871
+ var ae = ("" + ce[0]).match(o) || ["-", 0, 0], ye = ae[0], me = 60 * +ae[1] + +ae[2];
14872
+ return me === 0 ? 0 : ye === "+" ? me : -me;
14855
14873
  }(v), v === null))
14856
14874
  return this;
14857
14875
  var $ = Math.abs(v) <= 16 ? 60 * v : v, O = this;
@@ -14878,9 +14896,9 @@ var la = { exports: {} };
14878
14896
  }, u.toString = function() {
14879
14897
  return this.toDate().toUTCString();
14880
14898
  };
14881
- var m = u.toDate;
14899
+ var h = u.toDate;
14882
14900
  u.toDate = function(v) {
14883
- return v === "s" && this.$offset ? s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : m.call(this);
14901
+ return v === "s" && this.$offset ? s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : h.call(this);
14884
14902
  };
14885
14903
  var y = u.diff;
14886
14904
  u.diff = function(v, w, F) {
@@ -14898,7 +14916,7 @@ Ye.extend(Yf);
14898
14916
  Ye.tz.setDefault("UTC");
14899
14917
  export {
14900
14918
  Tf as ContextModel,
14901
- $h as Dashboard,
14919
+ $m as Dashboard,
14902
14920
  ys as DashboardFilterType,
14903
14921
  bs as DashboardMode,
14904
14922
  Ve as EViewComponentType,
@@ -14908,10 +14926,10 @@ export {
14908
14926
  wf as MainDashboardView,
14909
14927
  Bo as ModelContextProvider,
14910
14928
  br as Panel,
14911
- jl as PanelContextProvider,
14929
+ El as PanelContextProvider,
14912
14930
  zf as QueriesModel,
14913
14931
  Of as QueryModel,
14914
- kh as ReadOnlyDashboard,
14932
+ km as ReadOnlyDashboard,
14915
14933
  Df as ReadOnlyDashboardView,
14916
14934
  co as SQLSnippetModel,
14917
14935
  Pf as SQLSnippetsModel,
@@ -14920,6 +14938,6 @@ export {
14920
14938
  ia as createDashboardModel,
14921
14939
  Wf as createDashboardViewsModel,
14922
14940
  Af as getInitialFiltersPayload,
14923
- ee as useModelContext,
14941
+ J as useModelContext,
14924
14942
  fe as usePanelContext
14925
14943
  };