@devtable/settings-form 13.32.2 → 13.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,21 +1,20 @@
1
- import F, { useEffect as dt, Suspense as er, forwardRef as pt, useState as pn, Component as tr } from "react";
2
- import { Button as V, Loader as nr, Box as Q, TextInput as J, Divider as gt, Group as z, NumberInput as rr, PasswordInput as ft, Modal as we, Stack as Xe, Alert as gn, SegmentedControl as ar, ActionIcon as Ft, Text as je, Tooltip as ot, LoadingOverlay as mt, Table as ht, Select as sr, Switch as or, createStyles as fn, rem as Ke, useComponentDefaultProps as ir, useMantineTheme as lr, ScrollArea as mn, Tabs as bt, HoverCard as Tt } from "@mantine/core";
1
+ import F, { useEffect as pt, Suspense as er, forwardRef as gt, useState as pn, Component as tr } from "react";
2
+ import { Box as Q, Alert as gn, Button as V, Loader as nr, TextInput as J, Divider as ft, Group as z, NumberInput as rr, PasswordInput as mt, Modal as we, Stack as Xe, SegmentedControl as ar, ActionIcon as Ft, Text as je, Tooltip as ot, LoadingOverlay as ht, Table as bt, Select as sr, Switch as or, createStyles as fn, rem as Ke, useComponentDefaultProps as ir, useMantineTheme as lr, ScrollArea as mn, Tabs as vt, HoverCard as jt } from "@mantine/core";
3
3
  import { showNotification as le, updateNotification as P } from "@mantine/notifications";
4
- import { Recycle as cr, AlertCircle as ur, PlaylistAdd as vt, Trash as yt, Edit as dr } from "tabler-icons-react";
5
- import * as pr from "crypto-js";
6
- import gr from "lodash";
4
+ import { IconAlertCircle as cr, IconDeviceFloppy as hn, IconMathFunction as ur, IconRecycle as dr, IconPlaylistAdd as yt, IconNetwork as pr, IconBrandMysql as gr, IconDatabase as fr, IconLock as bn, IconTrash as St, IconEdit as it, IconEye as mr } from "@tabler/icons-react";
5
+ import { Trans as hr, useTranslation as I, initReactI18next as br, I18nextProvider as vr } from "react-i18next";
6
+ import * as yr from "crypto-js";
7
+ import Sr from "lodash";
7
8
  import en from "axios";
8
9
  import { useForm as be, Controller as R } from "react-hook-form";
9
- import hn, { loader as jt } from "@monaco-editor/react";
10
- import { IconDeviceFloppy as bn, IconMathFunction as fr, IconNetwork as mr, IconBrandMysql as hr, IconDatabase as br, IconLock as vn, IconEdit as Rt, IconEye as vr } from "@tabler/icons-react";
11
- import { useTranslation as O, initReactI18next as yr, I18nextProvider as Sr, Trans as xr } from "react-i18next";
12
- import { createInstance as _r } from "i18next";
13
- import wr from "i18next-browser-languagedetector";
10
+ import vn, { loader as Ct } from "@monaco-editor/react";
11
+ import { createInstance as xr } from "i18next";
12
+ import _r from "i18next-browser-languagedetector";
14
13
  import "intl-pluralrules";
15
- import { useBoolean as Er, useRequest as Ce } from "ahooks";
16
- import { useModals as Qe, closeAllModals as Ar } from "@mantine/modals";
17
- import { useClipboard as kr } from "@mantine/hooks";
18
- var Ot = { exports: {} }, qe = {};
14
+ import { useBoolean as wr, useRequest as Ce } from "ahooks";
15
+ import { useModals as Qe, closeAllModals as Er } from "@mantine/modals";
16
+ import { useClipboard as Ar } from "@mantine/hooks";
17
+ var It = { exports: {} }, qe = {};
19
18
  /**
20
19
  * @license React
21
20
  * react-jsx-runtime.production.min.js
@@ -26,7 +25,7 @@ var Ot = { exports: {} }, qe = {};
26
25
  * LICENSE file in the root directory of this source tree.
27
26
  */
28
27
  var tn;
29
- function Tr() {
28
+ function kr() {
30
29
  if (tn)
31
30
  return qe;
32
31
  tn = 1;
@@ -54,7 +53,7 @@ var He = {};
54
53
  * LICENSE file in the root directory of this source tree.
55
54
  */
56
55
  var nn;
57
- function jr() {
56
+ function Tr() {
58
57
  return nn || (nn = 1, process.env.NODE_ENV !== "production" && function() {
59
58
  var e = F, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), c = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), f = Symbol.for("react.offscreen"), v = Symbol.iterator, h = "@@iterator";
60
59
  function x(i) {
@@ -221,13 +220,13 @@ function jr() {
221
220
  ` + Ue + i;
222
221
  }
223
222
  }
224
- var Oe = !1, ke;
223
+ var Ie = !1, ke;
225
224
  {
226
- var Ie = typeof WeakMap == "function" ? WeakMap : Map;
227
- ke = new Ie();
225
+ var Oe = typeof WeakMap == "function" ? WeakMap : Map;
226
+ ke = new Oe();
228
227
  }
229
228
  function Mt(i, y) {
230
- if (!i || Oe)
229
+ if (!i || Ie)
231
230
  return "";
232
231
  {
233
232
  var w = ke.get(i);
@@ -235,7 +234,7 @@ function jr() {
235
234
  return w;
236
235
  }
237
236
  var A;
238
- Oe = !0;
237
+ Ie = !0;
239
238
  var C = Error.prepareStackTrace;
240
239
  Error.prepareStackTrace = void 0;
241
240
  var D;
@@ -292,12 +291,12 @@ function jr() {
292
291
  }
293
292
  }
294
293
  } finally {
295
- Oe = !1, me.current = D, Ae(), Error.prepareStackTrace = C;
294
+ Ie = !1, me.current = D, Ae(), Error.prepareStackTrace = C;
296
295
  }
297
296
  var Le = i ? i.displayName || i.name : "", Jt = Le ? Re(Le) : "";
298
297
  return typeof i == "function" && ke.set(i, Jt), Jt;
299
298
  }
300
- function In(i, y, w) {
299
+ function On(i, y, w) {
301
300
  return Mt(i, !1);
302
301
  }
303
302
  function Dn(i) {
@@ -320,7 +319,7 @@ function jr() {
320
319
  if (typeof i == "object")
321
320
  switch (i.$$typeof) {
322
321
  case u:
323
- return In(i.render);
322
+ return On(i.render);
324
323
  case d:
325
324
  return tt(i.type, y, w);
326
325
  case p: {
@@ -361,7 +360,7 @@ function jr() {
361
360
  }
362
361
  }
363
362
  var Fn = Array.isArray;
364
- function _t(i) {
363
+ function wt(i) {
365
364
  return Fn(i);
366
365
  }
367
366
  function $n(i) {
@@ -389,8 +388,8 @@ function jr() {
389
388
  ref: !0,
390
389
  __self: !0,
391
390
  __source: !0
392
- }, Ht, Yt, wt;
393
- wt = {};
391
+ }, Ht, Yt, Et;
392
+ Et = {};
394
393
  function Pn(i) {
395
394
  if (nt.call(i, "ref")) {
396
395
  var y = Object.getOwnPropertyDescriptor(i, "ref").get;
@@ -410,7 +409,7 @@ function jr() {
410
409
  function Bn(i, y) {
411
410
  if (typeof i.ref == "string" && Ge.current && y && Ge.current.stateNode !== y) {
412
411
  var w = B(Ge.current.type);
413
- wt[w] || (S('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', B(Ge.current.type), i.ref), wt[w] = !0);
412
+ Et[w] || (S('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', B(Ge.current.type), i.ref), Et[w] = !0);
414
413
  }
415
414
  }
416
415
  function Un(i, y) {
@@ -482,7 +481,7 @@ function jr() {
482
481
  return qn(i, T, ae, C, A, Ge.current, j);
483
482
  }
484
483
  }
485
- var Et = _.ReactCurrentOwner, Vt = _.ReactDebugCurrentFrame;
484
+ var At = _.ReactCurrentOwner, Vt = _.ReactDebugCurrentFrame;
486
485
  function De(i) {
487
486
  if (i) {
488
487
  var y = i._owner, w = tt(i.type, i._source, y ? y.type : null);
@@ -490,15 +489,15 @@ function jr() {
490
489
  } else
491
490
  Vt.setExtraStackFrame(null);
492
491
  }
493
- var At;
494
- At = !1;
495
- function kt(i) {
492
+ var kt;
493
+ kt = !1;
494
+ function Tt(i) {
496
495
  return typeof i == "object" && i !== null && i.$$typeof === t;
497
496
  }
498
497
  function Wt() {
499
498
  {
500
- if (Et.current) {
501
- var i = B(Et.current.type);
499
+ if (At.current) {
500
+ var i = B(At.current.type);
502
501
  if (i)
503
502
  return `
504
503
 
@@ -541,25 +540,25 @@ Check the top-level render call using <` + w + ">.");
541
540
  return;
542
541
  Kt[w] = !0;
543
542
  var A = "";
544
- i && i._owner && i._owner !== Et.current && (A = " It was passed a child from " + B(i._owner.type) + "."), De(i), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', w, A), De(null);
543
+ i && i._owner && i._owner !== At.current && (A = " It was passed a child from " + B(i._owner.type) + "."), De(i), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', w, A), De(null);
545
544
  }
546
545
  }
547
546
  function Xt(i, y) {
548
547
  {
549
548
  if (typeof i != "object")
550
549
  return;
551
- if (_t(i))
550
+ if (wt(i))
552
551
  for (var w = 0; w < i.length; w++) {
553
552
  var A = i[w];
554
- kt(A) && Zt(A, y);
553
+ Tt(A) && Zt(A, y);
555
554
  }
556
- else if (kt(i))
555
+ else if (Tt(i))
557
556
  i._store && (i._store.validated = !0);
558
557
  else if (i) {
559
558
  var C = x(i);
560
559
  if (typeof C == "function" && C !== i.entries)
561
560
  for (var D = C.call(i), j; !(j = D.next()).done; )
562
- kt(j.value) && Zt(j.value, y);
561
+ Tt(j.value) && Zt(j.value, y);
563
562
  }
564
563
  }
565
564
  }
@@ -580,8 +579,8 @@ Check the top-level render call using <` + w + ">.");
580
579
  if (w) {
581
580
  var A = B(y);
582
581
  Ln(w, i.props, "prop", A, i);
583
- } else if (y.PropTypes !== void 0 && !At) {
584
- At = !0;
582
+ } else if (y.PropTypes !== void 0 && !kt) {
583
+ kt = !0;
585
584
  var C = B(y);
586
585
  S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", C || "Unknown");
587
586
  }
@@ -609,7 +608,7 @@ Check the top-level render call using <` + w + ">.");
609
608
  var ae = Yn(C);
610
609
  ae ? T += ae : T += Wt();
611
610
  var U;
612
- i === null ? U = "null" : _t(i) ? U = "array" : i !== void 0 && i.$$typeof === t ? (U = "<" + (B(i.type) || "Unknown") + " />", T = " Did you accidentally export a JSX literal instead of a component?") : U = typeof i, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", U, T);
611
+ i === null ? U = "null" : wt(i) ? U = "array" : i !== void 0 && i.$$typeof === t ? (U = "<" + (B(i.type) || "Unknown") + " />", T = " Did you accidentally export a JSX literal instead of a component?") : U = typeof i, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", U, T);
613
612
  }
614
613
  var Y = Hn(i, y, w, C, D);
615
614
  if (Y == null)
@@ -618,7 +617,7 @@ Check the top-level render call using <` + w + ">.");
618
617
  var ie = y.children;
619
618
  if (ie !== void 0)
620
619
  if (A)
621
- if (_t(ie)) {
620
+ if (wt(ie)) {
622
621
  for (var Le = 0; Le < ie.length; Le++)
623
622
  Xt(ie[Le], i);
624
623
  Object.freeze && Object.freeze(ie);
@@ -640,9 +639,9 @@ Check the top-level render call using <` + w + ">.");
640
639
  He.Fragment = r, He.jsx = Qn, He.jsxs = Jn;
641
640
  }()), He;
642
641
  }
643
- process.env.NODE_ENV === "production" ? Ot.exports = Tr() : Ot.exports = jr();
644
- var a = Ot.exports;
645
- function Cr(e) {
642
+ process.env.NODE_ENV === "production" ? It.exports = kr() : It.exports = Tr();
643
+ var a = It.exports;
644
+ function jr(e) {
646
645
  e = e || {};
647
646
  const t = Object.keys(e).sort(), n = [];
648
647
  for (let r = 0; r < t.length; r++) {
@@ -659,11 +658,11 @@ function Cr(e) {
659
658
  }
660
659
  return n.sort().join("&");
661
660
  }
662
- function Rr(e, t) {
663
- let n = Cr(e);
664
- return n += "&key=" + t, pr.MD5(n).toString().toUpperCase();
661
+ function Cr(e, t) {
662
+ let n = jr(e);
663
+ return n += "&key=" + t, yr.MD5(n).toString().toUpperCase();
665
664
  }
666
- class Or {
665
+ class Rr {
667
666
  constructor() {
668
667
  this.type = "default_api_client", this.baseURL = "http://localhost:31200", this.app_id = "", this.app_secret = "";
669
668
  }
@@ -674,7 +673,7 @@ class Or {
674
673
  return {
675
674
  app_id: this.app_id,
676
675
  nonce_str: n,
677
- sign: Rr({
676
+ sign: Cr({
678
677
  app_id: this.app_id,
679
678
  nonce_str: n,
680
679
  ...t
@@ -687,7 +686,7 @@ class Or {
687
686
  return en(u).then((g) => l ? g : g.data).catch((g) => {
688
687
  if (en.isCancel(g))
689
688
  return Promise.reject(g);
690
- const m = gr.get(g, "response.data.detail.message", g.message);
689
+ const m = Sr.get(g, "response.data.detail.message", g.message);
691
690
  return Promise.reject(new Error(m));
692
691
  });
693
692
  };
@@ -739,11 +738,11 @@ class Ir {
739
738
  return this.getRequest("PUT", t);
740
739
  }
741
740
  }
742
- const We = new Or(), Dr = new Ir(We), G = Dr;
743
- function Lr(e) {
741
+ const We = new Rr(), Or = new Ir(We), G = Or;
742
+ function Dr(e) {
744
743
  We.baseURL !== e.apiBaseURL && (We.baseURL = e.apiBaseURL), e.app_id && (We.app_id = e.app_id), e.app_secret && (We.app_secret = e.app_secret);
745
744
  }
746
- const Fr = {
745
+ const Lr = {
747
746
  login: async (e, t) => {
748
747
  const n = {
749
748
  name: e,
@@ -799,7 +798,7 @@ const Fr = {
799
798
  id: e
800
799
  }, {});
801
800
  }
802
- }, $r = {
801
+ }, Fr = {
803
802
  list: async () => await G.post()("/api/key/list", {
804
803
  filter: {
805
804
  search: ""
@@ -823,7 +822,7 @@ const Fr = {
823
822
  id: e
824
823
  }, {});
825
824
  }
826
- }, Nr = {
825
+ }, $r = {
827
826
  list: async () => await G.post()("/datasource/list", {
828
827
  filter: {},
829
828
  sort: [{
@@ -849,11 +848,11 @@ const Fr = {
849
848
  id: e
850
849
  }, {});
851
850
  }
852
- }, zr = {
851
+ }, Nr = {
853
852
  list: async () => await G.get()("/role/list", {}, {})
854
853
  };
855
- var yn = 60, Sn = yn * 60, xn = Sn * 24, Pr = xn * 7, Me = 1e3, Ct = yn * Me, rn = Sn * Me, Mr = xn * Me, Br = Pr * Me, $t = "millisecond", $e = "second", Ne = "minute", ze = "hour", Se = "day", st = "week", ce = "month", _n = "quarter", xe = "year", Pe = "date", Ur = "YYYY-MM-DDTHH:mm:ssZ", an = "Invalid Date", Gr = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, qr = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g;
856
- const Hr = {
854
+ var yn = 60, Sn = yn * 60, xn = Sn * 24, zr = xn * 7, Me = 1e3, Rt = yn * Me, rn = Sn * Me, Pr = xn * Me, Mr = zr * Me, $t = "millisecond", $e = "second", Ne = "minute", ze = "hour", Se = "day", st = "week", ce = "month", _n = "quarter", xe = "year", Pe = "date", Br = "YYYY-MM-DDTHH:mm:ssZ", an = "Invalid Date", Ur = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, Gr = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g;
855
+ const qr = {
857
856
  name: "en",
858
857
  weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
859
858
  months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
@@ -862,20 +861,20 @@ const Hr = {
862
861
  return "[" + t + (n[(r - 20) % 10] || n[r] || n[0]) + "]";
863
862
  }
864
863
  };
865
- var It = function(t, n, r) {
864
+ var Ot = function(t, n, r) {
866
865
  var s = String(t);
867
866
  return !s || s.length >= n ? t : "" + Array(n + 1 - s.length).join(r) + t;
868
- }, Yr = function(t) {
867
+ }, Hr = function(t) {
869
868
  var n = -t.utcOffset(), r = Math.abs(n), s = Math.floor(r / 60), o = r % 60;
870
- return (n <= 0 ? "+" : "-") + It(s, 2, "0") + ":" + It(o, 2, "0");
871
- }, Vr = function e(t, n) {
869
+ return (n <= 0 ? "+" : "-") + Ot(s, 2, "0") + ":" + Ot(o, 2, "0");
870
+ }, Yr = function e(t, n) {
872
871
  if (t.date() < n.date())
873
872
  return -e(n, t);
874
873
  var r = (n.year() - t.year()) * 12 + (n.month() - t.month()), s = t.clone().add(r, ce), o = n - s < 0, l = t.clone().add(r + (o ? -1 : 1), ce);
875
874
  return +(-(r + (n - s) / (o ? s - l : l - s)) || 0);
876
- }, Wr = function(t) {
875
+ }, Vr = function(t) {
877
876
  return t < 0 ? Math.ceil(t) || 0 : Math.floor(t);
878
- }, Kr = function(t) {
877
+ }, Wr = function(t) {
879
878
  var n = {
880
879
  M: ce,
881
880
  y: xe,
@@ -889,22 +888,22 @@ var It = function(t, n, r) {
889
888
  Q: _n
890
889
  };
891
890
  return n[t] || String(t || "").toLowerCase().replace(/s$/, "");
892
- }, Zr = function(t) {
891
+ }, Kr = function(t) {
893
892
  return t === void 0;
894
893
  };
895
- const Xr = {
896
- s: It,
897
- z: Yr,
898
- m: Vr,
899
- a: Wr,
900
- p: Kr,
901
- u: Zr
894
+ const Zr = {
895
+ s: Ot,
896
+ z: Hr,
897
+ m: Yr,
898
+ a: Vr,
899
+ p: Wr,
900
+ u: Kr
902
901
  };
903
902
  var Ze = "en", Te = {};
904
- Te[Ze] = Hr;
903
+ Te[Ze] = qr;
905
904
  var Nt = function(t) {
906
- return t instanceof St;
907
- }, it = function e(t, n, r) {
905
+ return t instanceof xt;
906
+ }, lt = function e(t, n, r) {
908
907
  var s;
909
908
  if (!t)
910
909
  return Ze;
@@ -923,8 +922,8 @@ var Nt = function(t) {
923
922
  if (Nt(t))
924
923
  return t.clone();
925
924
  var r = typeof n == "object" ? n : {};
926
- return r.date = t, r.args = arguments, new St(r);
927
- }, Qr = function(t, n) {
925
+ return r.date = t, r.args = arguments, new xt(r);
926
+ }, Xr = function(t, n) {
928
927
  return Z(t, {
929
928
  locale: n.$L,
930
929
  utc: n.$u,
@@ -932,38 +931,38 @@ var Nt = function(t) {
932
931
  $offset: n.$offset
933
932
  // todo: refactor; do not use this.$offset in you code
934
933
  });
935
- }, I = Xr;
936
- I.l = it;
937
- I.i = Nt;
938
- I.w = Qr;
939
- var Jr = function(t) {
934
+ }, O = Zr;
935
+ O.l = lt;
936
+ O.i = Nt;
937
+ O.w = Xr;
938
+ var Qr = function(t) {
940
939
  var n = t.date, r = t.utc;
941
940
  if (n === null)
942
941
  return /* @__PURE__ */ new Date(NaN);
943
- if (I.u(n))
942
+ if (O.u(n))
944
943
  return /* @__PURE__ */ new Date();
945
944
  if (n instanceof Date)
946
945
  return new Date(n);
947
946
  if (typeof n == "string" && !/Z$/i.test(n)) {
948
- var s = n.match(Gr);
947
+ var s = n.match(Ur);
949
948
  if (s) {
950
949
  var o = s[2] - 1 || 0, l = (s[7] || "0").substring(0, 3);
951
950
  return r ? new Date(Date.UTC(s[1], o, s[3] || 1, s[4] || 0, s[5] || 0, s[6] || 0, l)) : new Date(s[1], o, s[3] || 1, s[4] || 0, s[5] || 0, s[6] || 0, l);
952
951
  }
953
952
  }
954
953
  return new Date(n);
955
- }, St = /* @__PURE__ */ function() {
954
+ }, xt = /* @__PURE__ */ function() {
956
955
  function e(n) {
957
- this.$L = it(n.locale, null, !0), this.parse(n);
956
+ this.$L = lt(n.locale, null, !0), this.parse(n);
958
957
  }
959
958
  var t = e.prototype;
960
959
  return t.parse = function(r) {
961
- this.$d = Jr(r), this.$x = r.x || {}, this.init();
960
+ this.$d = Qr(r), this.$x = r.x || {}, this.init();
962
961
  }, t.init = function() {
963
962
  var r = this.$d;
964
963
  this.$y = r.getFullYear(), this.$M = r.getMonth(), this.$D = r.getDate(), this.$W = r.getDay(), this.$H = r.getHours(), this.$m = r.getMinutes(), this.$s = r.getSeconds(), this.$ms = r.getMilliseconds();
965
964
  }, t.$utils = function() {
966
- return I;
965
+ return O;
967
966
  }, t.isValid = function() {
968
967
  return this.$d.toString() !== an;
969
968
  }, t.isSame = function(r, s) {
@@ -974,18 +973,18 @@ var Jr = function(t) {
974
973
  }, t.isBefore = function(r, s) {
975
974
  return this.endOf(s) < Z(r);
976
975
  }, t.$g = function(r, s, o) {
977
- return I.u(r) ? this[s] : this.set(o, r);
976
+ return O.u(r) ? this[s] : this.set(o, r);
978
977
  }, t.unix = function() {
979
978
  return Math.floor(this.valueOf() / 1e3);
980
979
  }, t.valueOf = function() {
981
980
  return this.$d.getTime();
982
981
  }, t.startOf = function(r, s) {
983
- var o = this, l = I.u(s) ? !0 : s, c = I.p(r), u = function(_, S) {
984
- var E = I.w(o.$u ? Date.UTC(o.$y, S, _) : new Date(o.$y, S, _), o);
982
+ var o = this, l = O.u(s) ? !0 : s, c = O.p(r), u = function(_, S) {
983
+ var E = O.w(o.$u ? Date.UTC(o.$y, S, _) : new Date(o.$y, S, _), o);
985
984
  return l ? E : E.endOf(Se);
986
985
  }, g = function(_, S) {
987
986
  var E = [0, 0, 0, 0], k = [23, 59, 59, 999];
988
- return I.w(o.toDate()[_].apply(
987
+ return O.w(o.toDate()[_].apply(
989
988
  // eslint-disable-line prefer-spread
990
989
  o.toDate("s"),
991
990
  (l ? E : k).slice(S)
@@ -1015,7 +1014,7 @@ var Jr = function(t) {
1015
1014
  }, t.endOf = function(r) {
1016
1015
  return this.startOf(r, !1);
1017
1016
  }, t.$set = function(r, s) {
1018
- var o, l = I.p(r), c = "set" + (this.$u ? "UTC" : ""), u = (o = {}, o[Se] = c + "Date", o[Pe] = c + "Date", o[ce] = c + "Month", o[xe] = c + "FullYear", o[ze] = c + "Hours", o[Ne] = c + "Minutes", o[$e] = c + "Seconds", o[$t] = c + "Milliseconds", o)[l], g = l === Se ? this.$D + (s - this.$W) : s;
1017
+ var o, l = O.p(r), c = "set" + (this.$u ? "UTC" : ""), u = (o = {}, o[Se] = c + "Date", o[Pe] = c + "Date", o[ce] = c + "Month", o[xe] = c + "FullYear", o[ze] = c + "Hours", o[Ne] = c + "Minutes", o[$e] = c + "Seconds", o[$t] = c + "Milliseconds", o)[l], g = l === Se ? this.$D + (s - this.$W) : s;
1019
1018
  if (l === ce || l === xe) {
1020
1019
  var m = this.clone().set(Pe, 1);
1021
1020
  m.$d[u](g), m.init(), this.$d = m.set(Pe, Math.min(this.$D, m.daysInMonth())).$d;
@@ -1025,13 +1024,13 @@ var Jr = function(t) {
1025
1024
  }, t.set = function(r, s) {
1026
1025
  return this.clone().$set(r, s);
1027
1026
  }, t.get = function(r) {
1028
- return this[I.p(r)]();
1027
+ return this[O.p(r)]();
1029
1028
  }, t.add = function(r, s) {
1030
1029
  var o = this, l;
1031
1030
  r = Number(r);
1032
- var c = I.p(s), u = function(p) {
1031
+ var c = O.p(s), u = function(p) {
1033
1032
  var f = Z(o);
1034
- return I.w(f.date(f.date() + Math.round(p * r)), o);
1033
+ return O.w(f.date(f.date() + Math.round(p * r)), o);
1035
1034
  };
1036
1035
  if (c === ce)
1037
1036
  return this.set(ce, this.$M + r);
@@ -1041,18 +1040,18 @@ var Jr = function(t) {
1041
1040
  return u(1);
1042
1041
  if (c === st)
1043
1042
  return u(7);
1044
- var g = (l = {}, l[Ne] = Ct, l[ze] = rn, l[$e] = Me, l)[c] || 1, m = this.$d.getTime() + r * g;
1045
- return I.w(m, this);
1043
+ var g = (l = {}, l[Ne] = Rt, l[ze] = rn, l[$e] = Me, l)[c] || 1, m = this.$d.getTime() + r * g;
1044
+ return O.w(m, this);
1046
1045
  }, t.subtract = function(r, s) {
1047
1046
  return this.add(r * -1, s);
1048
1047
  }, t.format = function(r) {
1049
1048
  var s = this, o = this.$locale();
1050
1049
  if (!this.isValid())
1051
1050
  return o.invalidDate || an;
1052
- var l = r || Ur, c = I.z(this), u = this.$H, g = this.$m, m = this.$M, d = o.weekdays, p = o.months, f = o.meridiem, v = function(E, k, q, ee) {
1051
+ var l = r || Br, c = O.z(this), u = this.$H, g = this.$m, m = this.$M, d = o.weekdays, p = o.months, f = o.meridiem, v = function(E, k, q, ee) {
1053
1052
  return E && (E[k] || E(s, l)) || q[k].slice(0, ee);
1054
1053
  }, h = function(E) {
1055
- return I.s(u % 12 || 12, E, "0");
1054
+ return O.s(u % 12 || 12, E, "0");
1056
1055
  }, x = f || function(S, E, k) {
1057
1056
  var q = S < 12 ? "AM" : "PM";
1058
1057
  return k ? q.toLowerCase() : q;
@@ -1061,11 +1060,11 @@ var Jr = function(t) {
1061
1060
  case "YY":
1062
1061
  return String(s.$y).slice(-2);
1063
1062
  case "YYYY":
1064
- return I.s(s.$y, 4, "0");
1063
+ return O.s(s.$y, 4, "0");
1065
1064
  case "M":
1066
1065
  return m + 1;
1067
1066
  case "MM":
1068
- return I.s(m + 1, 2, "0");
1067
+ return O.s(m + 1, 2, "0");
1069
1068
  case "MMM":
1070
1069
  return v(o.monthsShort, m, p, 3);
1071
1070
  case "MMMM":
@@ -1073,7 +1072,7 @@ var Jr = function(t) {
1073
1072
  case "D":
1074
1073
  return s.$D;
1075
1074
  case "DD":
1076
- return I.s(s.$D, 2, "0");
1075
+ return O.s(s.$D, 2, "0");
1077
1076
  case "d":
1078
1077
  return String(s.$W);
1079
1078
  case "dd":
@@ -1085,7 +1084,7 @@ var Jr = function(t) {
1085
1084
  case "H":
1086
1085
  return String(u);
1087
1086
  case "HH":
1088
- return I.s(u, 2, "0");
1087
+ return O.s(u, 2, "0");
1089
1088
  case "h":
1090
1089
  return h(1);
1091
1090
  case "hh":
@@ -1097,26 +1096,26 @@ var Jr = function(t) {
1097
1096
  case "m":
1098
1097
  return String(g);
1099
1098
  case "mm":
1100
- return I.s(g, 2, "0");
1099
+ return O.s(g, 2, "0");
1101
1100
  case "s":
1102
1101
  return String(s.$s);
1103
1102
  case "ss":
1104
- return I.s(s.$s, 2, "0");
1103
+ return O.s(s.$s, 2, "0");
1105
1104
  case "SSS":
1106
- return I.s(s.$ms, 3, "0");
1105
+ return O.s(s.$ms, 3, "0");
1107
1106
  case "Z":
1108
1107
  return c;
1109
1108
  }
1110
1109
  return null;
1111
1110
  };
1112
- return l.replace(qr, function(S, E) {
1111
+ return l.replace(Gr, function(S, E) {
1113
1112
  return E || _(S) || c.replace(":", "");
1114
1113
  });
1115
1114
  }, t.utcOffset = function() {
1116
1115
  return -Math.round(this.$d.getTimezoneOffset() / 15) * 15;
1117
1116
  }, t.diff = function(r, s, o) {
1118
- var l = this, c = I.p(s), u = Z(r), g = (u.utcOffset() - this.utcOffset()) * Ct, m = this - u, d = function() {
1119
- return I.m(l, u);
1117
+ var l = this, c = O.p(s), u = Z(r), g = (u.utcOffset() - this.utcOffset()) * Rt, m = this - u, d = function() {
1118
+ return O.m(l, u);
1120
1119
  }, p;
1121
1120
  switch (c) {
1122
1121
  case xe:
@@ -1129,16 +1128,16 @@ var Jr = function(t) {
1129
1128
  p = d() / 3;
1130
1129
  break;
1131
1130
  case st:
1132
- p = (m - g) / Br;
1131
+ p = (m - g) / Mr;
1133
1132
  break;
1134
1133
  case Se:
1135
- p = (m - g) / Mr;
1134
+ p = (m - g) / Pr;
1136
1135
  break;
1137
1136
  case ze:
1138
1137
  p = m / rn;
1139
1138
  break;
1140
1139
  case Ne:
1141
- p = m / Ct;
1140
+ p = m / Rt;
1142
1141
  break;
1143
1142
  case $e:
1144
1143
  p = m / Me;
@@ -1147,7 +1146,7 @@ var Jr = function(t) {
1147
1146
  p = m;
1148
1147
  break;
1149
1148
  }
1150
- return o ? p : I.a(p);
1149
+ return o ? p : O.a(p);
1151
1150
  }, t.daysInMonth = function() {
1152
1151
  return this.endOf(ce).$D;
1153
1152
  }, t.$locale = function() {
@@ -1155,10 +1154,10 @@ var Jr = function(t) {
1155
1154
  }, t.locale = function(r, s) {
1156
1155
  if (!r)
1157
1156
  return this.$L;
1158
- var o = this.clone(), l = it(r, s, !0);
1157
+ var o = this.clone(), l = lt(r, s, !0);
1159
1158
  return l && (o.$L = l), o;
1160
1159
  }, t.clone = function() {
1161
- return I.w(this.$d, this);
1160
+ return O.w(this.$d, this);
1162
1161
  }, t.toDate = function() {
1163
1162
  return new Date(this.valueOf());
1164
1163
  }, t.toJSON = function() {
@@ -1168,7 +1167,7 @@ var Jr = function(t) {
1168
1167
  }, t.toString = function() {
1169
1168
  return this.$d.toUTCString();
1170
1169
  }, e;
1171
- }(), wn = St.prototype;
1170
+ }(), wn = xt.prototype;
1172
1171
  Z.prototype = wn;
1173
1172
  [["$ms", $t], ["$s", $e], ["$m", Ne], ["$H", ze], ["$W", Se], ["$M", ce], ["$y", xe], ["$D", Pe]].forEach(function(e) {
1174
1173
  wn[e[1]] = function(t) {
@@ -1176,9 +1175,9 @@ Z.prototype = wn;
1176
1175
  };
1177
1176
  });
1178
1177
  Z.extend = function(e, t) {
1179
- return e.$i || (e(t, St, Z), e.$i = !0), Z;
1178
+ return e.$i || (e(t, xt, Z), e.$i = !0), Z;
1180
1179
  };
1181
- Z.locale = it;
1180
+ Z.locale = lt;
1182
1181
  Z.isDayjs = Nt;
1183
1182
  Z.unix = function(e) {
1184
1183
  return Z(e * 1e3);
@@ -1186,7 +1185,7 @@ Z.unix = function(e) {
1186
1185
  Z.en = Te[Ze];
1187
1186
  Z.Ls = Te;
1188
1187
  Z.p = {};
1189
- const ea = {
1188
+ const Jr = {
1190
1189
  list: async ({
1191
1190
  pagination: e
1192
1191
  }, t) => {
@@ -1210,18 +1209,28 @@ const ea = {
1210
1209
  id: e
1211
1210
  }, {})
1212
1211
  }, X = {
1213
- datasource: Nr,
1214
- account: Fr,
1215
- role: zr,
1216
- api_key: $r,
1217
- sql_snippet: ea
1212
+ datasource: $r,
1213
+ account: Lr,
1214
+ role: Nr,
1215
+ api_key: Fr,
1216
+ sql_snippet: Jr
1218
1217
  }, pe = {
1219
1218
  size: "sm",
1220
1219
  spacing: "md",
1221
1220
  button: {
1222
1221
  size: "xs"
1223
1222
  }
1224
- }, En = ({
1223
+ };
1224
+ function ea({
1225
+ styles: e = pe
1226
+ }) {
1227
+ return /* @__PURE__ */ a.jsx(Q, { mx: "auto", children: /* @__PURE__ */ a.jsx(gn, { mt: e.spacing, icon: /* @__PURE__ */ a.jsx(cr, { size: 16 }), children: /* @__PURE__ */ a.jsxs(hr, { i18nKey: "datasource.db.permission_tip", children: [
1228
+ "Only ",
1229
+ /* @__PURE__ */ a.jsx("b", { children: "SELECT" }),
1230
+ " privilege is needed."
1231
+ ] }) }) });
1232
+ }
1233
+ const En = ({
1225
1234
  value: e,
1226
1235
  onChange: t,
1227
1236
  height: n = "200px",
@@ -1230,7 +1239,7 @@ const ea = {
1230
1239
  const s = (l) => {
1231
1240
  console.log("changing"), t == null || t(l ?? "");
1232
1241
  }, o = !t;
1233
- return /* @__PURE__ */ a.jsx(hn, { className: "minimal-monaco-editor", height: n, defaultLanguage: r, value: e, onChange: o ? void 0 : s, theme: "vs-dark", options: {
1242
+ return /* @__PURE__ */ a.jsx(vn, { className: "minimal-monaco-editor", height: n, defaultLanguage: r, value: e, onChange: o ? void 0 : s, theme: "vs-dark", options: {
1234
1243
  lineNumbers: "off",
1235
1244
  folding: !1,
1236
1245
  lineDecorationsWidth: 20,
@@ -1248,8 +1257,8 @@ function ve({
1248
1257
  }) {
1249
1258
  const {
1250
1259
  t: n
1251
- } = O();
1252
- return /* @__PURE__ */ a.jsx(V, { type: "submit", color: "green", leftIcon: /* @__PURE__ */ a.jsx(bn, { size: 16 }), size: e, disabled: t, children: n("common.actions.submit") });
1260
+ } = I();
1261
+ return /* @__PURE__ */ a.jsx(V, { type: "submit", color: "green", leftIcon: /* @__PURE__ */ a.jsx(hn, { size: 16 }), size: e, disabled: t, children: n("common.actions.submit") });
1253
1262
  }
1254
1263
  const ta = {
1255
1264
  translation: {
@@ -1515,7 +1524,7 @@ const ta = {
1515
1524
  }
1516
1525
  }
1517
1526
  }
1518
- }, Dt = _r({
1527
+ }, Dt = xr({
1519
1528
  debug: !1,
1520
1529
  fallbackLng: "en",
1521
1530
  interpolation: {
@@ -1525,28 +1534,28 @@ const ta = {
1525
1534
  en: ta,
1526
1535
  zh: na
1527
1536
  }
1528
- }).use(wr).use(yr);
1537
+ }).use(_r).use(br);
1529
1538
  Dt.init();
1530
1539
  function ra({
1531
1540
  lang: e,
1532
1541
  children: t
1533
1542
  }) {
1534
- return dt(() => {
1543
+ return pt(() => {
1535
1544
  Dt.changeLanguage(e);
1536
- }, [e]), /* @__PURE__ */ a.jsx(Sr, { i18n: Dt, children: t });
1545
+ }, [e]), /* @__PURE__ */ a.jsx(vr, { i18n: Dt, children: t });
1537
1546
  }
1538
1547
  const aa = (e) => e.replace(/([^:])(\/\/+)/g, "$1/");
1539
1548
  function sa(e) {
1540
- dt(() => {
1541
- if (jt.__getMonacoInstance())
1549
+ pt(() => {
1550
+ if (Ct.__getMonacoInstance())
1542
1551
  return;
1543
1552
  console.log("loading monaco for @devtable/settings-form");
1544
1553
  const n = aa(e);
1545
- jt.config({
1554
+ Ct.config({
1546
1555
  paths: {
1547
1556
  vs: n
1548
1557
  }
1549
- }), jt.init().then((r) => console.log("monaco instance:", r));
1558
+ }), Ct.init().then((r) => console.log("monaco instance:", r));
1550
1559
  }, []);
1551
1560
  }
1552
1561
  function Je(e, t) {
@@ -1556,7 +1565,7 @@ function Je(e, t) {
1556
1565
  config: o,
1557
1566
  ...l
1558
1567
  } = r;
1559
- return Lr(o), sa(o.monacoPath), /* @__PURE__ */ a.jsx(er, { fallback: /* @__PURE__ */ a.jsx(nr, { color: "gray" }), children: /* @__PURE__ */ a.jsx(ra, { lang: s, children: /* @__PURE__ */ a.jsx(t, { ...l }) }) });
1568
+ return Dr(o), sa(o.monacoPath), /* @__PURE__ */ a.jsx(er, { fallback: /* @__PURE__ */ a.jsx(nr, { color: "gray" }), children: /* @__PURE__ */ a.jsx(ra, { lang: s, children: /* @__PURE__ */ a.jsx(t, { ...l }) }) });
1560
1569
  };
1561
1570
  return n.displayName = `withEntry(${e})`, n;
1562
1571
  }
@@ -1567,7 +1576,7 @@ function oa({
1567
1576
  }) {
1568
1577
  const {
1569
1578
  t: r
1570
- } = O(), {
1579
+ } = I(), {
1571
1580
  control: s,
1572
1581
  setValue: o,
1573
1582
  handleSubmit: l
@@ -1584,13 +1593,13 @@ function oa({
1584
1593
  }
1585
1594
  }
1586
1595
  });
1587
- return dt(() => {
1596
+ return pt(() => {
1588
1597
  o("type", n);
1589
1598
  }, [o, n]), /* @__PURE__ */ a.jsx(Q, { mx: "auto", children: /* @__PURE__ */ a.jsxs("form", { onSubmit: l(e), children: [
1590
1599
  /* @__PURE__ */ a.jsx(R, { name: "key", control: s, render: ({
1591
1600
  field: c
1592
1601
  }) => /* @__PURE__ */ a.jsx(J, { mb: t.spacing, size: t.size, required: !0, label: r("common.name"), placeholder: r("common.name_placeholder"), ...c }) }),
1593
- /* @__PURE__ */ a.jsx(gt, { label: r("datasource.connection_info"), labelPosition: "center" }),
1602
+ /* @__PURE__ */ a.jsx(ft, { label: r("datasource.connection_info"), labelPosition: "center" }),
1594
1603
  /* @__PURE__ */ a.jsxs(z, { grow: !0, children: [
1595
1604
  /* @__PURE__ */ a.jsx(R, { name: "config.host", control: s, render: ({
1596
1605
  field: c
@@ -1611,7 +1620,7 @@ function oa({
1611
1620
  }) => /* @__PURE__ */ a.jsx(J, { mb: t.spacing, size: t.size, required: !0, label: r("datasource.db.username"), ...c }) }),
1612
1621
  /* @__PURE__ */ a.jsx(R, { name: "config.password", control: s, render: ({
1613
1622
  field: c
1614
- }) => /* @__PURE__ */ a.jsx(ft, { mb: t.spacing, size: t.size, required: !0, label: r("datasource.db.password"), ...c }) }),
1623
+ }) => /* @__PURE__ */ a.jsx(mt, { mb: t.spacing, size: t.size, required: !0, label: r("datasource.db.password"), ...c }) }),
1615
1624
  /* @__PURE__ */ a.jsx(R, { name: "config.database", control: s, render: ({
1616
1625
  field: c
1617
1626
  }) => /* @__PURE__ */ a.jsx(J, { mb: t.spacing, size: t.size, required: !0, label: r("datasource.db.database"), ...c }) }),
@@ -1627,12 +1636,12 @@ const ia = ({
1627
1636
  };
1628
1637
  return /* @__PURE__ */ a.jsx(Q, { sx: {
1629
1638
  position: "relative"
1630
- }, children: /* @__PURE__ */ a.jsx(hn, { height: "500px", defaultLanguage: "javascript", value: e, onChange: n, theme: "vs-dark", options: {
1639
+ }, children: /* @__PURE__ */ a.jsx(vn, { height: "500px", defaultLanguage: "javascript", value: e, onChange: n, theme: "vs-dark", options: {
1631
1640
  minimap: {
1632
1641
  enabled: !1
1633
1642
  }
1634
1643
  } }) });
1635
- }, lt = pt(({
1644
+ }, ct = gt(({
1636
1645
  value: e,
1637
1646
  onChange: t,
1638
1647
  label: n,
@@ -1642,29 +1651,29 @@ const ia = ({
1642
1651
  }, l) => {
1643
1652
  const {
1644
1653
  t: c
1645
- } = O(), [u, {
1654
+ } = I(), [u, {
1646
1655
  setTrue: g,
1647
1656
  setFalse: m
1648
- }] = Er(), [d, p] = pn(e), f = () => {
1657
+ }] = wr(), [d, p] = pn(e), f = () => {
1649
1658
  m(), t(d);
1650
1659
  }, v = () => {
1651
1660
  m(), p(e);
1652
1661
  }, h = () => {
1653
1662
  p(s);
1654
1663
  };
1655
- return dt(() => {
1664
+ return pt(() => {
1656
1665
  p(e);
1657
1666
  }, [e]), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1658
- /* @__PURE__ */ a.jsx(V, { color: "grape", variant: "filled", leftIcon: /* @__PURE__ */ a.jsx(fr, { size: 16 }), size: o.button.size, onClick: g, sx: {
1667
+ /* @__PURE__ */ a.jsx(V, { color: "grape", variant: "filled", leftIcon: /* @__PURE__ */ a.jsx(ur, { size: 16 }), size: o.button.size, onClick: g, sx: {
1659
1668
  flexGrow: 1
1660
1669
  }, children: n }),
1661
1670
  /* @__PURE__ */ a.jsx(we, { size: 800, title: r, opened: u, onClose: m, closeOnClickOutside: !1, withCloseButton: !1, children: u && /* @__PURE__ */ a.jsxs(Xe, { children: [
1662
1671
  /* @__PURE__ */ a.jsx(ia, { value: d, onChange: p }),
1663
1672
  /* @__PURE__ */ a.jsxs(z, { position: "apart", children: [
1664
- /* @__PURE__ */ a.jsx(V, { size: o.button.size, onClick: h, color: "red", leftIcon: /* @__PURE__ */ a.jsx(cr, { size: 20 }), children: c("common.actions.reset_to_default") }),
1673
+ /* @__PURE__ */ a.jsx(V, { size: o.button.size, onClick: h, color: "red", leftIcon: /* @__PURE__ */ a.jsx(dr, { size: 20 }), children: c("common.actions.reset_to_default") }),
1665
1674
  /* @__PURE__ */ a.jsxs(z, { position: "right", children: [
1666
1675
  /* @__PURE__ */ a.jsx(V, { size: o.button.size, onClick: v, variant: "subtle", children: c("common.actions.cancel") }),
1667
- /* @__PURE__ */ a.jsx(V, { size: o.button.size, color: "green", leftIcon: /* @__PURE__ */ a.jsx(bn, { size: 16 }), onClick: f, children: c("common.actions.save") })
1676
+ /* @__PURE__ */ a.jsx(V, { size: o.button.size, color: "green", leftIcon: /* @__PURE__ */ a.jsx(hn, { size: 16 }), onClick: f, children: c("common.actions.save") })
1668
1677
  ] })
1669
1678
  ] })
1670
1679
  ] }) })
@@ -1681,7 +1690,7 @@ function la({
1681
1690
  }) {
1682
1691
  const {
1683
1692
  t: n
1684
- } = O(), {
1693
+ } = I(), {
1685
1694
  control: r,
1686
1695
  setValue: s,
1687
1696
  handleSubmit: o
@@ -1702,7 +1711,7 @@ function la({
1702
1711
  /* @__PURE__ */ a.jsx(R, { name: "key", control: r, render: ({
1703
1712
  field: l
1704
1713
  }) => /* @__PURE__ */ a.jsx(J, { mb: t.spacing, size: t.size, required: !0, label: n("common.name"), placeholder: n("common.name_placeholder"), ...l }) }),
1705
- /* @__PURE__ */ a.jsx(gt, { label: n("datasource.connection_info"), labelPosition: "center" }),
1714
+ /* @__PURE__ */ a.jsx(ft, { label: n("datasource.connection_info"), labelPosition: "center" }),
1706
1715
  /* @__PURE__ */ a.jsx(R, { name: "config.host", control: r, render: ({
1707
1716
  field: l
1708
1717
  }) => /* @__PURE__ */ a.jsx(J, { mb: t.spacing, size: t.size, label: n("datasource.http.base_url"), sx: {
@@ -1711,30 +1720,21 @@ function la({
1711
1720
  /* @__PURE__ */ a.jsxs(z, { grow: !0, children: [
1712
1721
  /* @__PURE__ */ a.jsx(R, { name: "config.processing.pre", control: r, render: ({
1713
1722
  field: l
1714
- }) => /* @__PURE__ */ a.jsx(lt, { label: n("datasource.http.processing.pre.label"), modalTitle: n("datasource.http.processing.pre.description"), defaultValue: at.pre, ...l, styles: t }) }),
1723
+ }) => /* @__PURE__ */ a.jsx(ct, { label: n("datasource.http.processing.pre.label"), modalTitle: n("datasource.http.processing.pre.description"), defaultValue: at.pre, ...l, styles: t }) }),
1715
1724
  /* @__PURE__ */ a.jsx(R, { name: "config.processing.post", control: r, render: ({
1716
1725
  field: l
1717
- }) => /* @__PURE__ */ a.jsx(lt, { label: n("datasource.http.processing.post.label"), modalTitle: n("datasource.http.processing.post.description"), defaultValue: at.post, ...l, styles: t }) })
1726
+ }) => /* @__PURE__ */ a.jsx(ct, { label: n("datasource.http.processing.post.label"), modalTitle: n("datasource.http.processing.post.description"), defaultValue: at.post, ...l, styles: t }) })
1718
1727
  ] }),
1719
1728
  /* @__PURE__ */ a.jsx(z, { position: "right", mt: t.spacing, children: /* @__PURE__ */ a.jsx(ve, { size: t.button.size }) })
1720
1729
  ] }) });
1721
1730
  }
1722
1731
  function ca({
1723
- styles: e = pe
1724
- }) {
1725
- return /* @__PURE__ */ a.jsx(Q, { mx: "auto", children: /* @__PURE__ */ a.jsx(gn, { mt: e.spacing, icon: /* @__PURE__ */ a.jsx(ur, { size: 16 }), children: /* @__PURE__ */ a.jsxs(xr, { i18nKey: "datasource.db.permission_tip", children: [
1726
- "Only ",
1727
- /* @__PURE__ */ a.jsx("b", { children: "SELECT" }),
1728
- " privilege is needed."
1729
- ] }) }) });
1730
- }
1731
- function ua({
1732
1732
  postSubmit: e,
1733
1733
  styles: t = pe
1734
1734
  }) {
1735
1735
  const {
1736
1736
  t: n
1737
- } = O(), [r, s] = pn("postgresql"), o = async ({
1737
+ } = I(), [r, s] = pn("postgresql"), o = async ({
1738
1738
  type: u,
1739
1739
  key: g,
1740
1740
  config: m
@@ -1779,50 +1779,50 @@ function ua({
1779
1779
  label: "HTTP",
1780
1780
  value: "http"
1781
1781
  }], value: r, onChange: (u) => s(u) }),
1782
- l && /* @__PURE__ */ a.jsx(ca, { styles: t }),
1782
+ l && /* @__PURE__ */ a.jsx(ea, { styles: t }),
1783
1783
  l && /* @__PURE__ */ a.jsx(oa, { submit: o, styles: t, type: r }),
1784
1784
  c && /* @__PURE__ */ a.jsx(la, { submit: o, styles: t })
1785
1785
  ] });
1786
1786
  }
1787
- function da({
1787
+ function ua({
1788
1788
  onSuccess: e,
1789
1789
  styles: t = pe
1790
1790
  }) {
1791
1791
  const {
1792
1792
  t: n
1793
- } = O(), [r, s] = F.useState(!1), o = () => s(!0), l = () => s(!1), c = () => {
1793
+ } = I(), [r, s] = F.useState(!1), o = () => s(!0), l = () => s(!1), c = () => {
1794
1794
  e(), l();
1795
1795
  };
1796
1796
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1797
1797
  /* @__PURE__ */ a.jsx(we, { opened: r, onClose: () => s(!1), title: n("datasource.add"), trapFocus: !0, onDragStart: (u) => {
1798
1798
  u.stopPropagation();
1799
- }, children: /* @__PURE__ */ a.jsx(ua, { postSubmit: c, styles: t }) }),
1800
- /* @__PURE__ */ a.jsx(V, { size: t.button.size, onClick: o, leftIcon: /* @__PURE__ */ a.jsx(vt, { size: 20 }), children: n("datasource.add") })
1799
+ }, children: /* @__PURE__ */ a.jsx(ca, { postSubmit: c, styles: t }) }),
1800
+ /* @__PURE__ */ a.jsx(V, { size: t.button.size, onClick: o, leftIcon: /* @__PURE__ */ a.jsx(yt, { size: 20 }), children: n("datasource.add") })
1801
1801
  ] });
1802
1802
  }
1803
- const pa = {
1803
+ const da = {
1804
1804
  http: "HTTP",
1805
1805
  mysql: "MySQL",
1806
1806
  postgresql: "PostgreSQL"
1807
- }, ga = {
1808
- http: /* @__PURE__ */ a.jsx(mr, {}),
1809
- mysql: /* @__PURE__ */ a.jsx(hr, {}),
1810
- postgresql: /* @__PURE__ */ a.jsx(br, {})
1807
+ }, pa = {
1808
+ http: /* @__PURE__ */ a.jsx(pr, {}),
1809
+ mysql: /* @__PURE__ */ a.jsx(gr, {}),
1810
+ postgresql: /* @__PURE__ */ a.jsx(fr, {})
1811
1811
  };
1812
- function fa({
1812
+ function ga({
1813
1813
  type: e
1814
1814
  }) {
1815
1815
  return /* @__PURE__ */ a.jsxs(z, { children: [
1816
1816
  /* @__PURE__ */ a.jsx(Ft, { size: "xs", sx: {
1817
1817
  transform: "none !important"
1818
- }, children: ga[e] }),
1818
+ }, children: pa[e] }),
1819
1819
  /* @__PURE__ */ a.jsx(je, { sx: {
1820
1820
  cusor: "default",
1821
1821
  userSelect: "none"
1822
- }, children: pa[e] })
1822
+ }, children: da[e] })
1823
1823
  ] });
1824
1824
  }
1825
- function ma({
1825
+ function fa({
1826
1826
  id: e,
1827
1827
  name: t,
1828
1828
  isProtected: n,
@@ -1831,7 +1831,7 @@ function ma({
1831
1831
  }) {
1832
1832
  const {
1833
1833
  t: o
1834
- } = O(), l = Qe(), c = async () => {
1834
+ } = I(), l = Qe(), c = async () => {
1835
1835
  e && (le({
1836
1836
  id: "for-deleting",
1837
1837
  title: o("common.state.pending"),
@@ -1868,9 +1868,9 @@ function ma({
1868
1868
  hover: !0,
1869
1869
  touch: !1,
1870
1870
  focus: !1
1871
- }, label: o("datasource.delete.cant_delete_preset"), children: /* @__PURE__ */ a.jsx(V, { size: s.button.size, color: "gray", variant: "light", leftIcon: /* @__PURE__ */ a.jsx(vn, { size: 16 }), sx: {
1871
+ }, label: o("datasource.delete.cant_delete_preset"), children: /* @__PURE__ */ a.jsx(V, { size: s.button.size, color: "gray", variant: "light", leftIcon: /* @__PURE__ */ a.jsx(bn, { size: 16 }), sx: {
1872
1872
  transform: "none !important"
1873
- }, children: o("common.actions.delete") }) }) : /* @__PURE__ */ a.jsx(V, { size: s.button.size, color: "red", onClick: u, leftIcon: /* @__PURE__ */ a.jsx(yt, { size: 16 }), children: o("common.actions.delete") });
1873
+ }, children: o("common.actions.delete") }) }) : /* @__PURE__ */ a.jsx(V, { size: s.button.size, color: "red", onClick: u, leftIcon: /* @__PURE__ */ a.jsx(St, { size: 16 }), children: o("common.actions.delete") });
1874
1874
  }
1875
1875
  const sn = {
1876
1876
  pre: ["function pre_process({ method, url, params, headers, data }, utils) {", " // your code goes here", " return { method, url, params, headers, data }", "}"].join(`
@@ -1878,7 +1878,7 @@ const sn = {
1878
1878
  post: ["function post_process(resp, utils) {", " return resp.data", "}"].join(`
1879
1879
  `)
1880
1880
  };
1881
- function ha({
1881
+ function ma({
1882
1882
  name: e,
1883
1883
  config: t,
1884
1884
  submit: n,
@@ -1886,7 +1886,7 @@ function ha({
1886
1886
  }) {
1887
1887
  const {
1888
1888
  t: s
1889
- } = O(), {
1889
+ } = I(), {
1890
1890
  control: o,
1891
1891
  handleSubmit: l
1892
1892
  } = be({
@@ -1896,7 +1896,7 @@ function ha({
1896
1896
  });
1897
1897
  return /* @__PURE__ */ a.jsx(Q, { mx: "auto", children: /* @__PURE__ */ a.jsxs("form", { onSubmit: l(n), children: [
1898
1898
  /* @__PURE__ */ a.jsx(J, { mb: r.spacing, size: r.size, required: !0, label: s("common.name"), value: e, readOnly: !0 }),
1899
- /* @__PURE__ */ a.jsx(gt, { label: s("datasource.connection_info"), labelPosition: "center" }),
1899
+ /* @__PURE__ */ a.jsx(ft, { label: s("datasource.connection_info"), labelPosition: "center" }),
1900
1900
  /* @__PURE__ */ a.jsx(R, { name: "config.host", control: o, render: ({
1901
1901
  field: c
1902
1902
  }) => /* @__PURE__ */ a.jsx(J, { mb: r.spacing, size: r.size, label: s("datasource.http.base_url"), sx: {
@@ -1905,22 +1905,22 @@ function ha({
1905
1905
  /* @__PURE__ */ a.jsxs(z, { grow: !0, children: [
1906
1906
  /* @__PURE__ */ a.jsx(R, { name: "config.processing.pre", control: o, render: ({
1907
1907
  field: c
1908
- }) => /* @__PURE__ */ a.jsx(lt, { label: s("datasource.http.processing.pre.label"), modalTitle: s("datasource.http.processing.pre.description"), defaultValue: sn.pre, ...c, styles: r }) }),
1908
+ }) => /* @__PURE__ */ a.jsx(ct, { label: s("datasource.http.processing.pre.label"), modalTitle: s("datasource.http.processing.pre.description"), defaultValue: sn.pre, ...c, styles: r }) }),
1909
1909
  /* @__PURE__ */ a.jsx(R, { name: "config.processing.post", control: o, render: ({
1910
1910
  field: c
1911
- }) => /* @__PURE__ */ a.jsx(lt, { label: s("datasource.http.processing.post.label"), modalTitle: s("datasource.http.processing.post.description"), defaultValue: sn.post, ...c, styles: r }) })
1911
+ }) => /* @__PURE__ */ a.jsx(ct, { label: s("datasource.http.processing.post.label"), modalTitle: s("datasource.http.processing.post.description"), defaultValue: sn.post, ...c, styles: r }) })
1912
1912
  ] }),
1913
1913
  /* @__PURE__ */ a.jsx(z, { position: "right", mt: r.spacing, children: /* @__PURE__ */ a.jsx(ve, { size: r.button.size }) })
1914
1914
  ] }) });
1915
1915
  }
1916
- function ba({
1916
+ function ha({
1917
1917
  dataSource: e,
1918
1918
  postSubmit: t,
1919
1919
  styles: n = pe
1920
1920
  }) {
1921
1921
  const {
1922
1922
  t: r
1923
- } = O(), s = async ({
1923
+ } = I(), s = async ({
1924
1924
  config: o
1925
1925
  }) => {
1926
1926
  le({
@@ -1950,43 +1950,43 @@ function ba({
1950
1950
  });
1951
1951
  }
1952
1952
  };
1953
- return e.config ? /* @__PURE__ */ a.jsx(Q, { mx: "auto", children: /* @__PURE__ */ a.jsx(ha, { name: e.key, config: e.config, submit: s, styles: n }) }) : (console.error(new Error("unexpected empty config of a http datasource")), null);
1953
+ return e.config ? /* @__PURE__ */ a.jsx(Q, { mx: "auto", children: /* @__PURE__ */ a.jsx(ma, { name: e.key, config: e.config, submit: s, styles: n }) }) : (console.error(new Error("unexpected empty config of a http datasource")), null);
1954
1954
  }
1955
- function va({
1955
+ function ba({
1956
1956
  dataSource: e,
1957
1957
  onSuccess: t,
1958
1958
  styles: n = pe
1959
1959
  }) {
1960
1960
  const {
1961
1961
  t: r
1962
- } = O(), [s, o] = F.useState(!1), l = () => o(!0), c = () => o(!1), u = () => {
1962
+ } = I(), [s, o] = F.useState(!1), l = () => o(!0), c = () => o(!1), u = () => {
1963
1963
  t(), c();
1964
1964
  };
1965
1965
  return e.is_preset ? /* @__PURE__ */ a.jsx(ot, { withArrow: !0, events: {
1966
1966
  hover: !0,
1967
1967
  touch: !1,
1968
1968
  focus: !1
1969
- }, label: r("datasource.cant_edit.preset"), children: /* @__PURE__ */ a.jsx(V, { size: n.button.size, color: "gray", variant: "light", leftIcon: /* @__PURE__ */ a.jsx(vn, { size: 16 }), sx: {
1969
+ }, label: r("datasource.cant_edit.preset"), children: /* @__PURE__ */ a.jsx(V, { size: n.button.size, color: "gray", variant: "light", leftIcon: /* @__PURE__ */ a.jsx(bn, { size: 16 }), sx: {
1970
1970
  transform: "none !important"
1971
1971
  }, children: r("common.actions.edit") }) }) : e.type !== "http" ? /* @__PURE__ */ a.jsx(ot, { withArrow: !0, events: {
1972
1972
  hover: !0,
1973
1973
  touch: !1,
1974
1974
  focus: !1
1975
- }, label: r("datasource.cant_edit.db"), children: /* @__PURE__ */ a.jsx(V, { size: n.button.size, color: "gray", variant: "light", leftIcon: /* @__PURE__ */ a.jsx(Rt, { size: 16 }), sx: {
1975
+ }, label: r("datasource.cant_edit.db"), children: /* @__PURE__ */ a.jsx(V, { size: n.button.size, color: "gray", variant: "light", leftIcon: /* @__PURE__ */ a.jsx(it, { size: 16 }), sx: {
1976
1976
  transform: "none !important"
1977
1977
  }, children: r("common.actions.edit") }) }) : /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1978
1978
  /* @__PURE__ */ a.jsx(we, { opened: s, onClose: () => o(!1), title: r("datasource.edit"), trapFocus: !0, onDragStart: (g) => {
1979
1979
  g.stopPropagation();
1980
- }, children: /* @__PURE__ */ a.jsx(ba, { dataSource: e, postSubmit: u, styles: n }) }),
1981
- /* @__PURE__ */ a.jsx(V, { size: n.button.size, color: "blue", onClick: l, leftIcon: /* @__PURE__ */ a.jsx(Rt, { size: 16 }), children: r("common.actions.edit") })
1980
+ }, children: /* @__PURE__ */ a.jsx(ha, { dataSource: e, postSubmit: u, styles: n }) }),
1981
+ /* @__PURE__ */ a.jsx(V, { size: n.button.size, color: "blue", onClick: l, leftIcon: /* @__PURE__ */ a.jsx(it, { size: 16 }), children: r("common.actions.edit") })
1982
1982
  ] });
1983
1983
  }
1984
- const ws = Je("DataSourceList", ({
1984
+ const xs = Je("DataSourceList", ({
1985
1985
  styles: e = pe
1986
1986
  }) => {
1987
1987
  const {
1988
1988
  t
1989
- } = O(), {
1989
+ } = I(), {
1990
1990
  data: n = [],
1991
1991
  loading: r,
1992
1992
  refresh: s
@@ -1999,12 +1999,12 @@ const ws = Je("DataSourceList", ({
1999
1999
  refreshDeps: []
2000
2000
  });
2001
2001
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2002
- /* @__PURE__ */ a.jsx(z, { pt: e.spacing, position: "right", children: /* @__PURE__ */ a.jsx(da, { onSuccess: s }) }),
2002
+ /* @__PURE__ */ a.jsx(z, { pt: e.spacing, position: "right", children: /* @__PURE__ */ a.jsx(ua, { onSuccess: s }) }),
2003
2003
  /* @__PURE__ */ a.jsxs(Q, { mt: e.spacing, sx: {
2004
2004
  position: "relative"
2005
2005
  }, children: [
2006
- /* @__PURE__ */ a.jsx(mt, { visible: r }),
2007
- /* @__PURE__ */ a.jsxs(ht, { horizontalSpacing: e.spacing, verticalSpacing: e.spacing, fontSize: e.size, highlightOnHover: !0, children: [
2006
+ /* @__PURE__ */ a.jsx(ht, { visible: r }),
2007
+ /* @__PURE__ */ a.jsxs(bt, { horizontalSpacing: e.spacing, verticalSpacing: e.spacing, fontSize: e.size, highlightOnHover: !0, children: [
2008
2008
  /* @__PURE__ */ a.jsx("thead", { children: /* @__PURE__ */ a.jsxs("tr", { children: [
2009
2009
  /* @__PURE__ */ a.jsx("th", { children: t("common.type") }),
2010
2010
  /* @__PURE__ */ a.jsx("th", { children: t("common.name") }),
@@ -2018,18 +2018,18 @@ const ws = Je("DataSourceList", ({
2018
2018
  is_preset: g
2019
2019
  } = o;
2020
2020
  return /* @__PURE__ */ a.jsxs("tr", { children: [
2021
- /* @__PURE__ */ a.jsx("td", { width: 200, children: /* @__PURE__ */ a.jsx(fa, { type: u }) }),
2021
+ /* @__PURE__ */ a.jsx("td", { width: 200, children: /* @__PURE__ */ a.jsx(ga, { type: u }) }),
2022
2022
  /* @__PURE__ */ a.jsx("td", { children: c }),
2023
2023
  /* @__PURE__ */ a.jsx("td", { width: 400, children: /* @__PURE__ */ a.jsxs(z, { position: "left", children: [
2024
- /* @__PURE__ */ a.jsx(va, { dataSource: o, onSuccess: s, styles: e }),
2025
- /* @__PURE__ */ a.jsx(ma, { isProtected: g, id: l, name: c, onSuccess: s, styles: e })
2024
+ /* @__PURE__ */ a.jsx(ba, { dataSource: o, onSuccess: s, styles: e }),
2025
+ /* @__PURE__ */ a.jsx(fa, { isProtected: g, id: l, name: c, onSuccess: s, styles: e })
2026
2026
  ] }) })
2027
2027
  ] }, c);
2028
2028
  }) })
2029
2029
  ] })
2030
2030
  ] })
2031
2031
  ] });
2032
- }), ya = pt(({
2032
+ }), va = gt(({
2033
2033
  label: e,
2034
2034
  value: t,
2035
2035
  description: n,
@@ -2037,14 +2037,14 @@ const ws = Je("DataSourceList", ({
2037
2037
  }, s) => /* @__PURE__ */ a.jsxs(Xe, { spacing: 2, ref: s, ...r, children: [
2038
2038
  /* @__PURE__ */ a.jsx(je, { size: "sm", children: e }),
2039
2039
  /* @__PURE__ */ a.jsx(je, { size: "xs", color: "dimmed", className: "role-description", children: n })
2040
- ] })), zt = pt(({
2040
+ ] })), zt = gt(({
2041
2041
  styles: e,
2042
2042
  value: t,
2043
2043
  onChange: n
2044
2044
  }, r) => {
2045
2045
  const {
2046
2046
  t: s
2047
- } = O(), {
2047
+ } = I(), {
2048
2048
  data: o = [],
2049
2049
  loading: l
2050
2050
  } = Ce(async () => (await X.role.list()).map((u) => ({
@@ -2055,7 +2055,7 @@ const ws = Je("DataSourceList", ({
2055
2055
  })), {
2056
2056
  refreshDeps: []
2057
2057
  });
2058
- return /* @__PURE__ */ a.jsx(sr, { ref: r, mb: e.spacing, size: e.size, required: !0, label: s("role.label"), itemComponent: ya, data: o, disabled: l, styles: () => ({
2058
+ return /* @__PURE__ */ a.jsx(sr, { ref: r, mb: e.spacing, size: e.size, required: !0, label: s("role.label"), itemComponent: va, data: o, disabled: l, styles: () => ({
2059
2059
  item: {
2060
2060
  "&[data-selected]": {
2061
2061
  "&, &:hover": {
@@ -2073,14 +2073,14 @@ const ws = Je("DataSourceList", ({
2073
2073
  size: "xs"
2074
2074
  }
2075
2075
  };
2076
- function Sa({
2076
+ function ya({
2077
2077
  postSubmit: e,
2078
2078
  styles: t = Ee,
2079
2079
  initialRoleID: n
2080
2080
  }) {
2081
2081
  const {
2082
2082
  t: r
2083
- } = O(), {
2083
+ } = I(), {
2084
2084
  control: s,
2085
2085
  handleSubmit: o
2086
2086
  } = be({
@@ -2129,31 +2129,31 @@ function Sa({
2129
2129
  }) => /* @__PURE__ */ a.jsx(J, { mb: t.spacing, size: t.size, required: !0, label: r("account.email"), ...c }) }),
2130
2130
  /* @__PURE__ */ a.jsx(R, { name: "password", control: s, render: ({
2131
2131
  field: c
2132
- }) => /* @__PURE__ */ a.jsx(ft, { mb: t.spacing, size: t.size, required: !0, label: r("account.password"), description: r("account.password_hint"), ...c }) }),
2132
+ }) => /* @__PURE__ */ a.jsx(mt, { mb: t.spacing, size: t.size, required: !0, label: r("account.password"), description: r("account.password_hint"), ...c }) }),
2133
2133
  /* @__PURE__ */ a.jsx(R, { name: "role_id", control: s, render: ({
2134
2134
  field: c
2135
2135
  }) => /* @__PURE__ */ a.jsx(zt, { styles: t, ...c }) }),
2136
2136
  /* @__PURE__ */ a.jsx(z, { position: "right", mt: t.spacing, children: /* @__PURE__ */ a.jsx(ve, { size: t.button.size }) })
2137
2137
  ] }) });
2138
2138
  }
2139
- function xa({
2139
+ function Sa({
2140
2140
  onSuccess: e,
2141
2141
  styles: t = Ee,
2142
2142
  initialRoleID: n
2143
2143
  }) {
2144
2144
  const {
2145
2145
  t: r
2146
- } = O(), [s, o] = F.useState(!1), l = () => o(!0), c = () => o(!1), u = () => {
2146
+ } = I(), [s, o] = F.useState(!1), l = () => o(!0), c = () => o(!1), u = () => {
2147
2147
  e(), c();
2148
2148
  };
2149
2149
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2150
2150
  /* @__PURE__ */ a.jsx(we, { opened: s, onClose: () => o(!1), title: r("account.add"), trapFocus: !0, onDragStart: (g) => {
2151
2151
  g.stopPropagation();
2152
- }, children: /* @__PURE__ */ a.jsx(Sa, { postSubmit: u, styles: t, initialRoleID: n }) }),
2153
- /* @__PURE__ */ a.jsx(V, { size: t.button.size, onClick: l, leftIcon: /* @__PURE__ */ a.jsx(vt, { size: 20 }), children: r("account.add") })
2152
+ }, children: /* @__PURE__ */ a.jsx(ya, { postSubmit: u, styles: t, initialRoleID: n }) }),
2153
+ /* @__PURE__ */ a.jsx(V, { size: t.button.size, onClick: l, leftIcon: /* @__PURE__ */ a.jsx(yt, { size: 20 }), children: r("account.add") })
2154
2154
  ] });
2155
2155
  }
2156
- function _a({
2156
+ function xa({
2157
2157
  id: e,
2158
2158
  name: t,
2159
2159
  onSuccess: n,
@@ -2161,7 +2161,7 @@ function _a({
2161
2161
  }) {
2162
2162
  const {
2163
2163
  t: s
2164
- } = O(), o = Qe(), l = async () => {
2164
+ } = I(), o = Qe(), l = async () => {
2165
2165
  if (e) {
2166
2166
  le({
2167
2167
  id: "for-deleting",
@@ -2206,9 +2206,9 @@ function _a({
2206
2206
  size: r.button.size
2207
2207
  }
2208
2208
  });
2209
- return /* @__PURE__ */ a.jsx(V, { size: r.button.size, color: "red", onClick: c, leftIcon: /* @__PURE__ */ a.jsx(yt, { size: 20 }), children: s("common.actions.delete") });
2209
+ return /* @__PURE__ */ a.jsx(V, { size: r.button.size, color: "red", onClick: c, leftIcon: /* @__PURE__ */ a.jsx(St, { size: 20 }), children: s("common.actions.delete") });
2210
2210
  }
2211
- function wa({
2211
+ function _a({
2212
2212
  id: e,
2213
2213
  name: t,
2214
2214
  email: n,
@@ -2218,7 +2218,7 @@ function wa({
2218
2218
  }) {
2219
2219
  const {
2220
2220
  t: l
2221
- } = O(), {
2221
+ } = I(), {
2222
2222
  control: c,
2223
2223
  handleSubmit: u,
2224
2224
  watch: g
@@ -2278,7 +2278,7 @@ function wa({
2278
2278
  /* @__PURE__ */ a.jsx(R, { name: "role_id", control: c, render: ({
2279
2279
  field: f
2280
2280
  }) => /* @__PURE__ */ a.jsx(zt, { styles: o, ...f }) }),
2281
- /* @__PURE__ */ a.jsx(gt, { my: 20, variant: "dashed", label: "", labelPosition: "center" }),
2281
+ /* @__PURE__ */ a.jsx(ft, { my: 20, variant: "dashed", label: "", labelPosition: "center" }),
2282
2282
  /* @__PURE__ */ a.jsx(R, { name: "reset_password", control: c, render: ({
2283
2283
  field: f
2284
2284
  }) => /* @__PURE__ */ a.jsx(or, { mb: o.spacing, size: o.size, label: l("account.reset_password"), checked: f.value, onChange: (v) => f.onChange(v.currentTarget.checked), styles: {
@@ -2293,20 +2293,20 @@ function wa({
2293
2293
  control: c,
2294
2294
  render: ({
2295
2295
  field: f
2296
- }) => /* @__PURE__ */ a.jsx(ft, { autoComplete: "off", mb: o.spacing, size: o.size, required: !0, description: l("account.password_hint"), label: l("account.new_password"), ...f })
2296
+ }) => /* @__PURE__ */ a.jsx(mt, { autoComplete: "off", mb: o.spacing, size: o.size, required: !0, description: l("account.password_hint"), label: l("account.new_password"), ...f })
2297
2297
  }
2298
2298
  ),
2299
2299
  /* @__PURE__ */ a.jsx(z, { position: "right", mt: o.spacing, children: /* @__PURE__ */ a.jsx(ve, { size: o.button.size }) })
2300
2300
  ] }) });
2301
2301
  }
2302
- function Ea({
2302
+ function wa({
2303
2303
  account: e,
2304
2304
  onSuccess: t,
2305
2305
  styles: n = Ee
2306
2306
  }) {
2307
2307
  const {
2308
2308
  t: r
2309
- } = O(), [s, o] = F.useState(!1), l = () => o(!0), c = () => o(!1), u = () => {
2309
+ } = I(), [s, o] = F.useState(!1), l = () => o(!0), c = () => o(!1), u = () => {
2310
2310
  t(), c();
2311
2311
  };
2312
2312
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
@@ -2314,17 +2314,17 @@ function Ea({
2314
2314
  name: e.name
2315
2315
  }), trapFocus: !0, onDragStart: (g) => {
2316
2316
  g.stopPropagation();
2317
- }, children: /* @__PURE__ */ a.jsx(wa, { ...e, postSubmit: u, styles: n }) }),
2318
- /* @__PURE__ */ a.jsx(V, { size: n.button.size, onClick: l, leftIcon: /* @__PURE__ */ a.jsx(dr, { size: 20 }), children: r("common.actions.edit") })
2317
+ }, children: /* @__PURE__ */ a.jsx(_a, { ...e, postSubmit: u, styles: n }) }),
2318
+ /* @__PURE__ */ a.jsx(V, { size: n.button.size, onClick: l, leftIcon: /* @__PURE__ */ a.jsx(it, { size: 20 }), children: r("common.actions.edit") })
2319
2319
  ] });
2320
2320
  }
2321
- const Es = Je("AccountList", ({
2321
+ const _s = Je("AccountList", ({
2322
2322
  styles: e = Ee
2323
2323
  }) => {
2324
2324
  var c;
2325
2325
  const {
2326
2326
  t
2327
- } = O(), {
2327
+ } = I(), {
2328
2328
  data: n = [],
2329
2329
  loading: r,
2330
2330
  refresh: s
@@ -2347,12 +2347,12 @@ const Es = Je("AccountList", ({
2347
2347
  refreshDeps: []
2348
2348
  });
2349
2349
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2350
- /* @__PURE__ */ a.jsx(z, { pt: e.spacing, position: "right", children: /* @__PURE__ */ a.jsx(xa, { onSuccess: s, initialRoleID: ((c = o == null ? void 0 : o[0]) == null ? void 0 : c.value) ?? "INACTIVE" }) }),
2350
+ /* @__PURE__ */ a.jsx(z, { pt: e.spacing, position: "right", children: /* @__PURE__ */ a.jsx(Sa, { onSuccess: s, initialRoleID: ((c = o == null ? void 0 : o[0]) == null ? void 0 : c.value) ?? "INACTIVE" }) }),
2351
2351
  /* @__PURE__ */ a.jsxs(Q, { mt: e.spacing, sx: {
2352
2352
  position: "relative"
2353
2353
  }, children: [
2354
- /* @__PURE__ */ a.jsx(mt, { visible: r || l }),
2355
- /* @__PURE__ */ a.jsxs(ht, { horizontalSpacing: e.spacing, verticalSpacing: e.spacing, fontSize: e.size, highlightOnHover: !0, children: [
2354
+ /* @__PURE__ */ a.jsx(ht, { visible: r || l }),
2355
+ /* @__PURE__ */ a.jsxs(bt, { horizontalSpacing: e.spacing, verticalSpacing: e.spacing, fontSize: e.size, highlightOnHover: !0, children: [
2356
2356
  /* @__PURE__ */ a.jsx("thead", { children: /* @__PURE__ */ a.jsxs("tr", { children: [
2357
2357
  /* @__PURE__ */ a.jsx("th", { children: t("account.username") }),
2358
2358
  /* @__PURE__ */ a.jsx("th", { children: t("account.email") }),
@@ -2371,8 +2371,8 @@ const Es = Je("AccountList", ({
2371
2371
  /* @__PURE__ */ a.jsx("td", { width: 200, children: d }),
2372
2372
  /* @__PURE__ */ a.jsx("td", { width: 200, children: p }),
2373
2373
  /* @__PURE__ */ a.jsx("td", { width: 200, children: /* @__PURE__ */ a.jsxs(z, { position: "left", children: [
2374
- /* @__PURE__ */ a.jsx(Ea, { account: u, onSuccess: s }),
2375
- /* @__PURE__ */ a.jsx(_a, { id: g, name: m, onSuccess: s })
2374
+ /* @__PURE__ */ a.jsx(wa, { account: u, onSuccess: s }),
2375
+ /* @__PURE__ */ a.jsx(xa, { id: g, name: m, onSuccess: s })
2376
2376
  ] }) })
2377
2377
  ] }, g);
2378
2378
  }) })
@@ -2380,13 +2380,13 @@ const Es = Je("AccountList", ({
2380
2380
  ] })
2381
2381
  ] });
2382
2382
  });
2383
- function Aa({
2383
+ function Ea({
2384
2384
  postSubmit: e,
2385
2385
  styles: t = Ee
2386
2386
  }) {
2387
2387
  const {
2388
2388
  t: n
2389
- } = O(), {
2389
+ } = I(), {
2390
2390
  control: r,
2391
2391
  handleSubmit: s
2392
2392
  } = be({
@@ -2430,30 +2430,30 @@ function Aa({
2430
2430
  }) => /* @__PURE__ */ a.jsx(J, { mb: t.spacing, size: t.size, required: !0, label: n("account.username"), ...l }) }),
2431
2431
  /* @__PURE__ */ a.jsx(R, { name: "password", control: r, render: ({
2432
2432
  field: l
2433
- }) => /* @__PURE__ */ a.jsx(ft, { mb: t.spacing, size: t.size, required: !0, label: n("account.password"), ...l }) }),
2433
+ }) => /* @__PURE__ */ a.jsx(mt, { mb: t.spacing, size: t.size, required: !0, label: n("account.password"), ...l }) }),
2434
2434
  /* @__PURE__ */ a.jsx(z, { position: "right", mt: t.spacing, children: /* @__PURE__ */ a.jsx(ve, { size: t.button.size }) })
2435
2435
  ] }) });
2436
2436
  }
2437
- const As = Je("Login", ({
2437
+ const ws = Je("Login", ({
2438
2438
  styles: e = Ee,
2439
2439
  onSuccess: t
2440
2440
  }) => /* @__PURE__ */ a.jsx(a.Fragment, { children: /* @__PURE__ */ a.jsx(Q, { mt: e.spacing, sx: {
2441
2441
  position: "relative"
2442
- }, children: /* @__PURE__ */ a.jsx(Aa, { styles: e, postSubmit: t }) }) })), xt = {
2442
+ }, children: /* @__PURE__ */ a.jsx(Ea, { styles: e, postSubmit: t }) }) })), _t = {
2443
2443
  size: "sm",
2444
2444
  spacing: "md",
2445
2445
  button: {
2446
2446
  size: "xs"
2447
2447
  }
2448
2448
  };
2449
- function ka({
2449
+ function Aa({
2450
2450
  postSubmit: e,
2451
- styles: t = xt,
2451
+ styles: t = _t,
2452
2452
  initialRoleID: n
2453
2453
  }) {
2454
2454
  const {
2455
2455
  t: r
2456
- } = O(), {
2456
+ } = I(), {
2457
2457
  control: s,
2458
2458
  handleSubmit: o
2459
2459
  } = be({
@@ -2504,14 +2504,14 @@ function ka({
2504
2504
  /* @__PURE__ */ a.jsx(z, { position: "right", mt: t.spacing, children: /* @__PURE__ */ a.jsx(ve, { size: t.button.size }) })
2505
2505
  ] }) });
2506
2506
  }
2507
- function Ta({
2507
+ function ka({
2508
2508
  onSuccess: e,
2509
- styles: t = xt,
2509
+ styles: t = _t,
2510
2510
  initialRoleID: n
2511
2511
  }) {
2512
2512
  const {
2513
2513
  t: r
2514
- } = O(), s = Qe(), [o, l] = F.useState(!1), c = () => l(!0), u = () => l(!1), g = (m, d) => {
2514
+ } = I(), s = Qe(), [o, l] = F.useState(!1), c = () => l(!0), u = () => l(!1), g = (m, d) => {
2515
2515
  u(), s.openModal({
2516
2516
  title: r("api_key.save.title"),
2517
2517
  children: /* @__PURE__ */ a.jsxs(Xe, { children: [
@@ -2527,7 +2527,7 @@ function Ta({
2527
2527
  }
2528
2528
  } }),
2529
2529
  /* @__PURE__ */ a.jsx(V, { size: "sm", onClick: () => {
2530
- Ar();
2530
+ Er();
2531
2531
  }, children: r("api_key.save.saved") })
2532
2532
  ] }),
2533
2533
  onClose: () => {
@@ -2538,19 +2538,19 @@ function Ta({
2538
2538
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2539
2539
  /* @__PURE__ */ a.jsx(we, { opened: o, onClose: () => l(!1), title: r("api_key.add"), trapFocus: !0, onDragStart: (m) => {
2540
2540
  m.stopPropagation();
2541
- }, children: /* @__PURE__ */ a.jsx(ka, { postSubmit: g, styles: t, initialRoleID: n }) }),
2542
- /* @__PURE__ */ a.jsx(V, { size: t.button.size, onClick: c, leftIcon: /* @__PURE__ */ a.jsx(vt, { size: 20 }), children: r("api_key.add") })
2541
+ }, children: /* @__PURE__ */ a.jsx(Aa, { postSubmit: g, styles: t, initialRoleID: n }) }),
2542
+ /* @__PURE__ */ a.jsx(V, { size: t.button.size, onClick: c, leftIcon: /* @__PURE__ */ a.jsx(yt, { size: 20 }), children: r("api_key.add") })
2543
2543
  ] });
2544
2544
  }
2545
- function ja({
2545
+ function Ta({
2546
2546
  id: e,
2547
2547
  name: t,
2548
2548
  onSuccess: n,
2549
- styles: r = xt
2549
+ styles: r = _t
2550
2550
  }) {
2551
2551
  const {
2552
2552
  t: s
2553
- } = O(), o = Qe(), l = async () => {
2553
+ } = I(), o = Qe(), l = async () => {
2554
2554
  if (e) {
2555
2555
  le({
2556
2556
  id: "for-deleting",
@@ -2595,15 +2595,15 @@ function ja({
2595
2595
  size: r.button.size
2596
2596
  }
2597
2597
  });
2598
- return /* @__PURE__ */ a.jsx(V, { size: r.button.size, color: "red", onClick: c, leftIcon: /* @__PURE__ */ a.jsx(yt, { size: 20 }), children: s("common.actions.delete") });
2598
+ return /* @__PURE__ */ a.jsx(V, { size: r.button.size, color: "red", onClick: c, leftIcon: /* @__PURE__ */ a.jsx(St, { size: 20 }), children: s("common.actions.delete") });
2599
2599
  }
2600
- const ks = Je("APIKeyList", ({
2601
- styles: e = xt
2600
+ const Es = Je("APIKeyList", ({
2601
+ styles: e = _t
2602
2602
  }) => {
2603
2603
  var c;
2604
2604
  const {
2605
2605
  t
2606
- } = O(), {
2606
+ } = I(), {
2607
2607
  data: n = [],
2608
2608
  loading: r,
2609
2609
  refresh: s
@@ -2626,12 +2626,12 @@ const ks = Je("APIKeyList", ({
2626
2626
  refreshDeps: []
2627
2627
  });
2628
2628
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2629
- /* @__PURE__ */ a.jsx(z, { pt: e.spacing, position: "right", children: /* @__PURE__ */ a.jsx(Ta, { onSuccess: s, initialRoleID: ((c = o == null ? void 0 : o[0]) == null ? void 0 : c.value) ?? "INACTIVE" }) }),
2629
+ /* @__PURE__ */ a.jsx(z, { pt: e.spacing, position: "right", children: /* @__PURE__ */ a.jsx(ka, { onSuccess: s, initialRoleID: ((c = o == null ? void 0 : o[0]) == null ? void 0 : c.value) ?? "INACTIVE" }) }),
2630
2630
  /* @__PURE__ */ a.jsxs(Q, { mt: e.spacing, sx: {
2631
2631
  position: "relative"
2632
2632
  }, children: [
2633
- /* @__PURE__ */ a.jsx(mt, { visible: r || l }),
2634
- /* @__PURE__ */ a.jsxs(ht, { horizontalSpacing: e.spacing, verticalSpacing: e.spacing, fontSize: e.size, highlightOnHover: !0, children: [
2633
+ /* @__PURE__ */ a.jsx(ht, { visible: r || l }),
2634
+ /* @__PURE__ */ a.jsxs(bt, { horizontalSpacing: e.spacing, verticalSpacing: e.spacing, fontSize: e.size, highlightOnHover: !0, children: [
2635
2635
  /* @__PURE__ */ a.jsx("thead", { children: /* @__PURE__ */ a.jsxs("tr", { children: [
2636
2636
  /* @__PURE__ */ a.jsx("th", { children: t("common.name") }),
2637
2637
  /* @__PURE__ */ a.jsx("th", { children: t("api_key.app_id") }),
@@ -2649,7 +2649,7 @@ const ks = Je("APIKeyList", ({
2649
2649
  /* @__PURE__ */ a.jsx("td", { width: 200, children: m }),
2650
2650
  /* @__PURE__ */ a.jsx("td", { width: 200, children: d }),
2651
2651
  /* @__PURE__ */ a.jsx("td", { width: 200, children: p }),
2652
- /* @__PURE__ */ a.jsx("td", { width: 200, children: /* @__PURE__ */ a.jsx(z, { position: "left", children: /* @__PURE__ */ a.jsx(ja, { id: g, name: m, onSuccess: s }) }) })
2652
+ /* @__PURE__ */ a.jsx("td", { width: 200, children: /* @__PURE__ */ a.jsx(z, { position: "left", children: /* @__PURE__ */ a.jsx(Ta, { id: g, name: m, onSuccess: s }) }) })
2653
2653
  ] }, g);
2654
2654
  }) })
2655
2655
  ] })
@@ -2662,13 +2662,13 @@ const ks = Je("APIKeyList", ({
2662
2662
  size: "xs"
2663
2663
  }
2664
2664
  };
2665
- function Ca({
2665
+ function ja({
2666
2666
  postSubmit: e,
2667
2667
  styles: t = Be
2668
2668
  }) {
2669
2669
  const {
2670
2670
  t: n
2671
- } = O(), {
2671
+ } = I(), {
2672
2672
  control: r,
2673
2673
  handleSubmit: s
2674
2674
  } = be({
@@ -2716,23 +2716,23 @@ function Ca({
2716
2716
  /* @__PURE__ */ a.jsx(z, { position: "right", mt: t.spacing, children: /* @__PURE__ */ a.jsx(ve, { size: t.button.size }) })
2717
2717
  ] }) });
2718
2718
  }
2719
- function Ra({
2719
+ function Ca({
2720
2720
  onSuccess: e,
2721
2721
  styles: t = Be
2722
2722
  }) {
2723
2723
  const {
2724
2724
  t: n
2725
- } = O(), [r, s] = F.useState(!1), o = () => s(!0), l = () => s(!1), c = () => {
2725
+ } = I(), [r, s] = F.useState(!1), o = () => s(!0), l = () => s(!1), c = () => {
2726
2726
  l(), e();
2727
2727
  };
2728
2728
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2729
2729
  /* @__PURE__ */ a.jsx(we, { opened: r, onClose: () => s(!1), title: n("global_sql_snippet.add"), trapFocus: !0, onDragStart: (u) => {
2730
2730
  u.stopPropagation();
2731
- }, size: "80vw", children: /* @__PURE__ */ a.jsx(Ca, { postSubmit: c, styles: t }) }),
2732
- /* @__PURE__ */ a.jsx(V, { size: t.button.size, onClick: o, leftIcon: /* @__PURE__ */ a.jsx(vt, { size: 18 }), children: n("global_sql_snippet.add") })
2731
+ }, size: "80vw", children: /* @__PURE__ */ a.jsx(ja, { postSubmit: c, styles: t }) }),
2732
+ /* @__PURE__ */ a.jsx(V, { size: t.button.size, onClick: o, leftIcon: /* @__PURE__ */ a.jsx(yt, { size: 18 }), children: n("global_sql_snippet.add") })
2733
2733
  ] });
2734
2734
  }
2735
- function Oa({
2735
+ function Ra({
2736
2736
  postSubmit: e,
2737
2737
  styles: t = Be,
2738
2738
  id: n,
@@ -2740,7 +2740,7 @@ function Oa({
2740
2740
  }) {
2741
2741
  const {
2742
2742
  t: s
2743
- } = O(), {
2743
+ } = I(), {
2744
2744
  control: o,
2745
2745
  handleSubmit: l
2746
2746
  } = be({
@@ -2795,14 +2795,14 @@ function Ia({
2795
2795
  }) {
2796
2796
  const {
2797
2797
  t: r
2798
- } = O(), [s, o] = F.useState(!1), l = () => o(!0), c = () => o(!1), u = () => {
2798
+ } = I(), [s, o] = F.useState(!1), l = () => o(!0), c = () => o(!1), u = () => {
2799
2799
  c(), e();
2800
2800
  };
2801
2801
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2802
2802
  /* @__PURE__ */ a.jsx(we, { opened: s, onClose: () => o(!1), title: r("global_sql_snippet.edit"), trapFocus: !0, onDragStart: (g) => {
2803
2803
  g.stopPropagation();
2804
- }, size: "80vw", children: /* @__PURE__ */ a.jsx(Oa, { postSubmit: u, styles: t, ...n }) }),
2805
- /* @__PURE__ */ a.jsx(V, { size: t.button.size, onClick: l, leftIcon: /* @__PURE__ */ a.jsx(Rt, { size: 18 }), children: r("common.actions.edit") })
2804
+ }, size: "80vw", children: /* @__PURE__ */ a.jsx(Ra, { postSubmit: u, styles: t, ...n }) }),
2805
+ /* @__PURE__ */ a.jsx(V, { size: t.button.size, onClick: l, leftIcon: /* @__PURE__ */ a.jsx(it, { size: 18 }), children: r("common.actions.edit") })
2806
2806
  ] });
2807
2807
  }
2808
2808
  /**
@@ -5778,7 +5778,7 @@ b.languages.wasm = {
5778
5778
  number: /[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,
5779
5779
  punctuation: /[()]/
5780
5780
  };
5781
- var Da = {
5781
+ var Oa = {
5782
5782
  plain: {
5783
5783
  backgroundColor: "#2a2734",
5784
5784
  color: "#9a86fd"
@@ -5845,11 +5845,11 @@ var Da = {
5845
5845
  }
5846
5846
  }]
5847
5847
  };
5848
- const La = Da;
5849
- var Fa = {
5848
+ const Da = Oa;
5849
+ var La = {
5850
5850
  // $FlowFixMe
5851
5851
  Prism: b,
5852
- theme: La
5852
+ theme: Da
5853
5853
  };
5854
5854
  function Ye(e, t, n) {
5855
5855
  return t in e ? Object.defineProperty(e, t, {
@@ -5869,7 +5869,7 @@ function _e() {
5869
5869
  return e;
5870
5870
  }, _e.apply(this, arguments);
5871
5871
  }
5872
- var $a = /\r\n|\r|\n/, on = function(e) {
5872
+ var Fa = /\r\n|\r|\n/, on = function(e) {
5873
5873
  e.length === 0 ? e.push({
5874
5874
  types: ["plain"],
5875
5875
  content: `
@@ -5880,7 +5880,7 @@ var $a = /\r\n|\r|\n/, on = function(e) {
5880
5880
  }, ln = function(e, t) {
5881
5881
  var n = e.length;
5882
5882
  return n > 0 && e[n - 1] === t ? e : e.concat(t);
5883
- }, Na = function(e) {
5883
+ }, $a = function(e) {
5884
5884
  for (var t = [[]], n = [e], r = [0], s = [e.length], o = 0, l = 0, c = [], u = [c]; l > -1; ) {
5885
5885
  for (; (o = r[l]++) < s[l]; ) {
5886
5886
  var g = void 0, m = t[l], d = n[l], p = d[o];
@@ -5888,7 +5888,7 @@ var $a = /\r\n|\r|\n/, on = function(e) {
5888
5888
  l++, t.push(m), n.push(g), r.push(0), s.push(g.length);
5889
5889
  continue;
5890
5890
  }
5891
- var f = g.split($a), v = f.length;
5891
+ var f = g.split(Fa), v = f.length;
5892
5892
  c.push({
5893
5893
  types: m,
5894
5894
  content: f[0]
@@ -5902,7 +5902,7 @@ var $a = /\r\n|\r|\n/, on = function(e) {
5902
5902
  l--, t.pop(), n.pop(), r.pop(), s.pop();
5903
5903
  }
5904
5904
  return on(c), u;
5905
- }, za = function(e, t) {
5905
+ }, Na = function(e, t) {
5906
5906
  var n = e.plain, r = /* @__PURE__ */ Object.create(null), s = e.styles.reduce(function(o, l) {
5907
5907
  var c = l.languages, u = l.style;
5908
5908
  return c && !c.includes(t) || l.types.forEach(function(g) {
@@ -5920,7 +5920,7 @@ function cn(e, t) {
5920
5920
  Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) === -1 && (n[r] = e[r]);
5921
5921
  return n;
5922
5922
  }
5923
- var Pa = /* @__PURE__ */ function(e) {
5923
+ var za = /* @__PURE__ */ function(e) {
5924
5924
  function t() {
5925
5925
  for (var n = this, r = [], s = arguments.length; s--; )
5926
5926
  r[s] = arguments[s];
@@ -5928,7 +5928,7 @@ var Pa = /* @__PURE__ */ function(e) {
5928
5928
  if (n.themeDict !== void 0 && o.theme === n.prevTheme && o.language === n.prevLanguage)
5929
5929
  return n.themeDict;
5930
5930
  n.prevTheme = o.theme, n.prevLanguage = o.language;
5931
- var l = o.theme ? za(o.theme, o.language) : void 0;
5931
+ var l = o.theme ? Na(o.theme, o.language) : void 0;
5932
5932
  return n.themeDict = l;
5933
5933
  }), Ye(this, "getLineProps", function(o) {
5934
5934
  var l = o.key, c = o.className, u = o.style, g = cn(o, ["key", "className", "style", "line"]), m = g, d = _e({}, m, {
@@ -5976,7 +5976,7 @@ var Pa = /* @__PURE__ */ function(e) {
5976
5976
  });
5977
5977
  }
5978
5978
  return e && (t.__proto__ = e), t.prototype = Object.create(e && e.prototype), t.prototype.constructor = t, t.prototype.render = function() {
5979
- var r = this.props, s = r.Prism, o = r.language, l = r.code, c = r.children, u = this.getThemeDict(this.props), g = s.languages[o], m = g !== void 0 ? this.tokenize(s, l, g, o) : [l], d = Na(m);
5979
+ var r = this.props, s = r.Prism, o = r.language, l = r.code, c = r.children, u = this.getThemeDict(this.props), g = s.languages[o], m = g !== void 0 ? this.tokenize(s, l, g, o) : [l], d = $a(m);
5980
5980
  return c({
5981
5981
  tokens: d,
5982
5982
  className: "prism-code language-" + o,
@@ -5986,7 +5986,7 @@ var Pa = /* @__PURE__ */ function(e) {
5986
5986
  });
5987
5987
  }, t;
5988
5988
  }(tr);
5989
- const Ma = Pa;
5989
+ const Pa = za;
5990
5990
  function An({ copied: e }) {
5991
5991
  return /* @__PURE__ */ F.createElement("svg", {
5992
5992
  viewBox: "0 0 15 15",
@@ -6006,7 +6006,7 @@ function An({ copied: e }) {
6006
6006
  }));
6007
6007
  }
6008
6008
  An.displayName = "@mantine/prism/CopyIcon";
6009
- const Ba = (e) => ({
6009
+ const Ma = (e) => ({
6010
6010
  plain: {
6011
6011
  color: e.colors.gray[4],
6012
6012
  backgroundColor: e.colors.dark[8]
@@ -6091,7 +6091,7 @@ const Ba = (e) => ({
6091
6091
  }
6092
6092
  }
6093
6093
  ]
6094
- }), Ua = (e) => ({
6094
+ }), Ba = (e) => ({
6095
6095
  plain: {
6096
6096
  color: e.colors.gray[9],
6097
6097
  backgroundColor: e.fn.rgba(e.colors.gray[0], 0.65)
@@ -6182,8 +6182,8 @@ const Ba = (e) => ({
6182
6182
  }
6183
6183
  }
6184
6184
  ]
6185
- }), Ga = (e, t) => t === "dark" ? Ba(e) : Ua(e);
6186
- var qa = fn((e, { colorScheme: t, native: n, maxLineSize: r, radius: s }) => ({
6185
+ }), Ua = (e, t) => t === "dark" ? Ma(e) : Ba(e);
6186
+ var Ga = fn((e, { colorScheme: t, native: n, maxLineSize: r, radius: s }) => ({
6187
6187
  scrollArea: {},
6188
6188
  root: {
6189
6189
  position: "relative"
@@ -6229,24 +6229,24 @@ var qa = fn((e, { colorScheme: t, native: n, maxLineSize: r, radius: s }) => ({
6229
6229
  width: "100%"
6230
6230
  }
6231
6231
  }));
6232
- const Ha = qa;
6233
- var Ya = Object.defineProperty, Va = Object.defineProperties, Wa = Object.getOwnPropertyDescriptors, ct = Object.getOwnPropertySymbols, kn = Object.prototype.hasOwnProperty, Tn = Object.prototype.propertyIsEnumerable, un = (e, t, n) => t in e ? Ya(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Fe = (e, t) => {
6232
+ const qa = Ga;
6233
+ var Ha = Object.defineProperty, Ya = Object.defineProperties, Va = Object.getOwnPropertyDescriptors, ut = Object.getOwnPropertySymbols, kn = Object.prototype.hasOwnProperty, Tn = Object.prototype.propertyIsEnumerable, un = (e, t, n) => t in e ? Ha(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Fe = (e, t) => {
6234
6234
  for (var n in t || (t = {}))
6235
6235
  kn.call(t, n) && un(e, n, t[n]);
6236
- if (ct)
6237
- for (var n of ct(t))
6236
+ if (ut)
6237
+ for (var n of ut(t))
6238
6238
  Tn.call(t, n) && un(e, n, t[n]);
6239
6239
  return e;
6240
- }, Ve = (e, t) => Va(e, Wa(t)), Ka = (e, t) => {
6240
+ }, Ve = (e, t) => Ya(e, Va(t)), Wa = (e, t) => {
6241
6241
  var n = {};
6242
6242
  for (var r in e)
6243
6243
  kn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
6244
- if (e != null && ct)
6245
- for (var r of ct(e))
6244
+ if (e != null && ut)
6245
+ for (var r of ut(e))
6246
6246
  t.indexOf(r) < 0 && Tn.call(e, r) && (n[r] = e[r]);
6247
6247
  return n;
6248
6248
  };
6249
- const Za = {
6249
+ const Ka = {
6250
6250
  noCopy: !1,
6251
6251
  copyLabel: "Copy code",
6252
6252
  copiedLabel: "Copied",
@@ -6254,9 +6254,9 @@ const Za = {
6254
6254
  trim: !0,
6255
6255
  highlightLines: {},
6256
6256
  scrollAreaComponent: mn,
6257
- getPrismTheme: Ga
6258
- }, Pt = pt((e, t) => {
6259
- const n = ir("Prism", Za, e), {
6257
+ getPrismTheme: Ua
6258
+ }, Pt = gt((e, t) => {
6259
+ const n = ir("Prism", Ka, e), {
6260
6260
  className: r,
6261
6261
  children: s,
6262
6262
  language: o,
@@ -6274,7 +6274,7 @@ const Za = {
6274
6274
  radius: _,
6275
6275
  getPrismTheme: S,
6276
6276
  variant: E
6277
- } = n, k = Ka(n, [
6277
+ } = n, k = Wa(n, [
6278
6278
  "className",
6279
6279
  "children",
6280
6280
  "language",
@@ -6293,7 +6293,7 @@ const Za = {
6293
6293
  "getPrismTheme",
6294
6294
  "variant"
6295
6295
  ]), q = h && typeof s == "string" ? s.trim() : s, ee = q.split(`
6296
- `).length.toString().length, $ = lr(), H = kr(), N = v || $.colorScheme, { classes: ne, cx: L } = Ha({
6296
+ `).length.toString().length, $ = lr(), H = Ar(), N = v || $.colorScheme, { classes: ne, cx: L } = qa({
6297
6297
  colorScheme: N,
6298
6298
  native: f !== mn,
6299
6299
  maxLineSize: ee,
@@ -6319,7 +6319,7 @@ const Za = {
6319
6319
  unstyled: x
6320
6320
  }, /* @__PURE__ */ F.createElement(An, {
6321
6321
  copied: H.copied
6322
- }))), /* @__PURE__ */ F.createElement(Ma, Ve(Fe({}, Fa), {
6322
+ }))), /* @__PURE__ */ F.createElement(Pa, Ve(Fe({}, La), {
6323
6323
  theme: S($, N),
6324
6324
  code: q,
6325
6325
  language: o
@@ -6353,18 +6353,18 @@ const Za = {
6353
6353
  }, ((ye = p[oe]) == null ? void 0 : ye.label) || oe), /* @__PURE__ */ F.createElement("div", {
6354
6354
  className: ne.lineContent
6355
6355
  }, K.map((Ue, Re) => {
6356
- var Oe, ke;
6357
- const Ie = se({ token: Ue, key: Re });
6358
- return /* @__PURE__ */ F.createElement("span", Ve(Fe({}, Ie), {
6359
- style: Ve(Fe({}, Ie.style), {
6360
- color: Ae ? $.fn.themeColor((Oe = p[oe]) == null ? void 0 : Oe.color, N === "dark" ? 5 : 8) : (ke = Ie == null ? void 0 : Ie.style) == null ? void 0 : ke.color
6356
+ var Ie, ke;
6357
+ const Oe = se({ token: Ue, key: Re });
6358
+ return /* @__PURE__ */ F.createElement("span", Ve(Fe({}, Oe), {
6359
+ style: Ve(Fe({}, Oe.style), {
6360
+ color: Ae ? $.fn.themeColor((Ie = p[oe]) == null ? void 0 : Ie.color, N === "dark" ? 5 : 8) : (ke = Oe == null ? void 0 : Oe.style) == null ? void 0 : ke.color
6361
6361
  })
6362
6362
  }));
6363
6363
  })));
6364
6364
  }).filter(Boolean)))));
6365
6365
  });
6366
6366
  Pt.displayName = "@mantine/prism/Prism";
6367
- var Xa = fn((e, { radius: t }) => ({
6367
+ var Za = fn((e, { radius: t }) => ({
6368
6368
  tab: {
6369
6369
  paddingLeft: e.spacing.sm,
6370
6370
  paddingRight: e.spacing.sm,
@@ -6409,32 +6409,32 @@ var Xa = fn((e, { radius: t }) => ({
6409
6409
  border: 0
6410
6410
  }
6411
6411
  }));
6412
- const jn = Xa;
6413
- var Qa = Object.defineProperty, Ja = Object.defineProperties, es = Object.getOwnPropertyDescriptors, ut = Object.getOwnPropertySymbols, Cn = Object.prototype.hasOwnProperty, Rn = Object.prototype.propertyIsEnumerable, dn = (e, t, n) => t in e ? Qa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, On = (e, t) => {
6412
+ const jn = Za;
6413
+ var Xa = Object.defineProperty, Qa = Object.defineProperties, Ja = Object.getOwnPropertyDescriptors, dt = Object.getOwnPropertySymbols, Cn = Object.prototype.hasOwnProperty, Rn = Object.prototype.propertyIsEnumerable, dn = (e, t, n) => t in e ? Xa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, In = (e, t) => {
6414
6414
  for (var n in t || (t = {}))
6415
6415
  Cn.call(t, n) && dn(e, n, t[n]);
6416
- if (ut)
6417
- for (var n of ut(t))
6416
+ if (dt)
6417
+ for (var n of dt(t))
6418
6418
  Rn.call(t, n) && dn(e, n, t[n]);
6419
6419
  return e;
6420
- }, ts = (e, t) => Ja(e, es(t)), ns = (e, t) => {
6420
+ }, es = (e, t) => Qa(e, Ja(t)), ts = (e, t) => {
6421
6421
  var n = {};
6422
6422
  for (var r in e)
6423
6423
  Cn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
6424
- if (e != null && ut)
6425
- for (var r of ut(e))
6424
+ if (e != null && dt)
6425
+ for (var r of dt(e))
6426
6426
  t.indexOf(r) < 0 && Rn.call(e, r) && (n[r] = e[r]);
6427
6427
  return n;
6428
6428
  };
6429
- function rs(e) {
6429
+ function ns(e) {
6430
6430
  const { classes: t } = jn({ radius: e.radius });
6431
- return /* @__PURE__ */ F.createElement(bt, ts(On({}, e), {
6431
+ return /* @__PURE__ */ F.createElement(vt, es(In({}, e), {
6432
6432
  variant: "outline",
6433
6433
  classNames: { tab: t.tab },
6434
6434
  translate: "no"
6435
6435
  }));
6436
6436
  }
6437
- function as(e) {
6437
+ function rs(e) {
6438
6438
  var t = e, {
6439
6439
  language: n,
6440
6440
  children: r,
@@ -6449,7 +6449,7 @@ function as(e) {
6449
6449
  getPrismTheme: p,
6450
6450
  colorScheme: f,
6451
6451
  variant: v
6452
- } = t, h = ns(t, [
6452
+ } = t, h = ts(t, [
6453
6453
  "language",
6454
6454
  "children",
6455
6455
  "radius",
@@ -6465,7 +6465,7 @@ function as(e) {
6465
6465
  "variant"
6466
6466
  ]);
6467
6467
  const { classes: x } = jn({ radius: s });
6468
- return /* @__PURE__ */ F.createElement(bt.Panel, On({}, h), /* @__PURE__ */ F.createElement(Pt, {
6468
+ return /* @__PURE__ */ F.createElement(vt.Panel, In({}, h), /* @__PURE__ */ F.createElement(Pt, {
6469
6469
  language: n,
6470
6470
  classNames: { root: x.prism, code: x.code },
6471
6471
  radius: s,
@@ -6482,18 +6482,18 @@ function as(e) {
6482
6482
  }, r));
6483
6483
  }
6484
6484
  const et = Pt;
6485
- et.Tabs = rs;
6486
- et.Tab = bt.Tab;
6487
- et.TabsList = bt.List;
6488
- et.Panel = as;
6489
- function ss({
6485
+ et.Tabs = ns;
6486
+ et.Tab = vt.Tab;
6487
+ et.TabsList = vt.List;
6488
+ et.Panel = rs;
6489
+ function as({
6490
6490
  id: e,
6491
6491
  onSuccess: t,
6492
6492
  styles: n = Be
6493
6493
  }) {
6494
6494
  const {
6495
6495
  t: r
6496
- } = O(), s = Qe(), o = async () => {
6496
+ } = I(), s = Qe(), o = async () => {
6497
6497
  if (e) {
6498
6498
  le({
6499
6499
  id: "for-deleting",
@@ -6538,22 +6538,22 @@ function ss({
6538
6538
  size: n.button.size
6539
6539
  }
6540
6540
  });
6541
- return /* @__PURE__ */ a.jsx(V, { size: n.button.size, color: "red", onClick: l, leftIcon: /* @__PURE__ */ a.jsx(yt, { size: 20 }), children: r("common.actions.edit") });
6541
+ return /* @__PURE__ */ a.jsx(V, { size: n.button.size, color: "red", onClick: l, leftIcon: /* @__PURE__ */ a.jsx(St, { size: 20 }), children: r("common.actions.edit") });
6542
6542
  }
6543
- function os({
6543
+ function ss({
6544
6544
  content: e
6545
6545
  }) {
6546
- return /* @__PURE__ */ a.jsxs(Tt, { width: "60vw", shadow: "md", children: [
6547
- /* @__PURE__ */ a.jsx(Tt.Target, { children: /* @__PURE__ */ a.jsx(Ft, { size: 16, children: /* @__PURE__ */ a.jsx(vr, {}) }) }),
6548
- /* @__PURE__ */ a.jsx(Tt.Dropdown, { children: /* @__PURE__ */ a.jsx(et, { language: "sql", noCopy: !0, withLineNumbers: !0, children: e }) })
6546
+ return /* @__PURE__ */ a.jsxs(jt, { width: "60vw", shadow: "md", children: [
6547
+ /* @__PURE__ */ a.jsx(jt.Target, { children: /* @__PURE__ */ a.jsx(Ft, { size: 16, children: /* @__PURE__ */ a.jsx(mr, {}) }) }),
6548
+ /* @__PURE__ */ a.jsx(jt.Dropdown, { children: /* @__PURE__ */ a.jsx(et, { language: "sql", noCopy: !0, withLineNumbers: !0, children: e }) })
6549
6549
  ] });
6550
6550
  }
6551
- const Ts = Je("DataSourceList", ({
6551
+ const As = Je("DataSourceList", ({
6552
6552
  styles: e = Be
6553
6553
  }) => {
6554
6554
  const {
6555
6555
  t
6556
- } = O(), {
6556
+ } = I(), {
6557
6557
  data: n = [],
6558
6558
  loading: r,
6559
6559
  refresh: s
@@ -6573,13 +6573,13 @@ const Ts = Je("DataSourceList", ({
6573
6573
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
6574
6574
  /* @__PURE__ */ a.jsxs(z, { pt: e.spacing, position: "apart", children: [
6575
6575
  /* @__PURE__ */ a.jsx(gn, { children: t("global_sql_snippet.description") }),
6576
- /* @__PURE__ */ a.jsx(Ra, { onSuccess: s })
6576
+ /* @__PURE__ */ a.jsx(Ca, { onSuccess: s })
6577
6577
  ] }),
6578
6578
  /* @__PURE__ */ a.jsxs(Q, { mt: e.spacing, sx: {
6579
6579
  position: "relative"
6580
6580
  }, children: [
6581
- /* @__PURE__ */ a.jsx(mt, { visible: r }),
6582
- /* @__PURE__ */ a.jsxs(ht, { horizontalSpacing: e.spacing, verticalSpacing: e.spacing, fontSize: e.size, highlightOnHover: !0, children: [
6581
+ /* @__PURE__ */ a.jsx(ht, { visible: r }),
6582
+ /* @__PURE__ */ a.jsxs(bt, { horizontalSpacing: e.spacing, verticalSpacing: e.spacing, fontSize: e.size, highlightOnHover: !0, children: [
6583
6583
  /* @__PURE__ */ a.jsx("thead", { children: /* @__PURE__ */ a.jsxs("tr", { children: [
6584
6584
  /* @__PURE__ */ a.jsx("th", { children: t("common.name") }),
6585
6585
  /* @__PURE__ */ a.jsx("th", {}),
@@ -6596,40 +6596,40 @@ const Ts = Je("DataSourceList", ({
6596
6596
  } = o;
6597
6597
  return /* @__PURE__ */ a.jsxs("tr", { children: [
6598
6598
  /* @__PURE__ */ a.jsx("td", { children: l }),
6599
- /* @__PURE__ */ a.jsx("td", { width: 50, children: /* @__PURE__ */ a.jsx(os, { content: c }) }),
6599
+ /* @__PURE__ */ a.jsx("td", { width: 50, children: /* @__PURE__ */ a.jsx(ss, { content: c }) }),
6600
6600
  /* @__PURE__ */ a.jsx("td", { width: 200, children: u }),
6601
6601
  /* @__PURE__ */ a.jsx("td", { width: 200, children: g }),
6602
6602
  /* @__PURE__ */ a.jsx("td", { width: 400, children: /* @__PURE__ */ a.jsxs(z, { position: "left", children: [
6603
6603
  /* @__PURE__ */ a.jsx(Ia, { ...o, onSuccess: s }),
6604
- /* @__PURE__ */ a.jsx(ss, { id: l, onSuccess: s })
6604
+ /* @__PURE__ */ a.jsx(as, { id: l, onSuccess: s })
6605
6605
  ] }) })
6606
6606
  ] }, l);
6607
6607
  }) })
6608
6608
  ] })
6609
6609
  ] })
6610
6610
  ] });
6611
- }), js = () => import("./package-c2a24eeb.mjs").then(({
6611
+ }), ks = () => import("./package-424db36f.mjs").then(({
6612
6612
  version: e
6613
6613
  }) => (console.log(`[@devtable/dashboard] version: ${e}`), e));
6614
6614
  export {
6615
6615
  G as APIClient,
6616
- ks as APIKeyList,
6617
- Es as AccountList,
6618
- Ta as AddAPIKey,
6619
- xa as AddAccount,
6620
- da as AddDataSource,
6621
- Ra as AddSQLSnippet,
6622
- ws as DataSourceList,
6623
- Or as DefaultApiClient,
6624
- ja as DeleteAPIKey,
6625
- _a as DeleteAccount,
6626
- ma as DeleteDataSource,
6627
- ss as DeleteSQLSnippet,
6616
+ Es as APIKeyList,
6617
+ _s as AccountList,
6618
+ ka as AddAPIKey,
6619
+ Sa as AddAccount,
6620
+ ua as AddDataSource,
6621
+ Ca as AddSQLSnippet,
6622
+ xs as DataSourceList,
6623
+ Rr as DefaultApiClient,
6624
+ Ta as DeleteAPIKey,
6625
+ xa as DeleteAccount,
6626
+ fa as DeleteDataSource,
6627
+ as as DeleteSQLSnippet,
6628
6628
  Ir as FacadeApiClient,
6629
- As as Login,
6630
- Ts as SQLSnippetList,
6629
+ ws as Login,
6630
+ As as SQLSnippetList,
6631
6631
  Ia as UpdateSQLSnippet,
6632
- Lr as configureAPIClient,
6633
- Dr as facadeApiClient,
6634
- js as getVersion
6632
+ Dr as configureAPIClient,
6633
+ Or as facadeApiClient,
6634
+ ks as getVersion
6635
6635
  };