@devtable/settings-form 13.43.6 → 13.43.7

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,4 +1,4 @@
1
- const o = "13.43.6";
1
+ const o = "13.43.7";
2
2
  export {
3
3
  o as version
4
4
  };
@@ -1,11 +1,11 @@
1
- import G, { useEffect as Me, Suspense as Rn, forwardRef as Nt, useState as Ut } from "react";
1
+ import G, { forwardRef as ct, useEffect as Me, Suspense as Rn, useState as Ut } from "react";
2
2
  import { Box as M, Alert as Ht, Button as O, Loader as On, TextInput as I, Divider as Fe, Group as D, NumberInput as $n, PasswordInput as Le, Modal as ne, Stack as Ce, SegmentedControl as kn, ActionIcon as Yt, Text as ie, Tooltip as at, LoadingOverlay as qe, Table as h, Select as In, Switch as Mn, HoverCard as tt } from "@mantine/core";
3
3
  import { showNotification as Y, updateNotification as E } from "@mantine/notifications";
4
4
  import { IconAlertCircle as Fn, IconDeviceFloppy as Vt, IconMathFunction as Ln, IconRecycle as qn, IconPlaylistAdd as Ne, IconNetwork as Nn, IconBrandMysql as Un, IconDatabase as Hn, IconLock as Wt, IconTrash as Ue, IconEdit as $e, IconEye as Yn } from "@tabler/icons-react";
5
5
  import { Trans as Vn, useTranslation as C, initReactI18next as Wn, I18nextProvider as Bn } from "react-i18next";
6
6
  import * as Kn from "crypto-js";
7
7
  import Gn from "lodash";
8
- import kt from "axios";
8
+ import It from "axios";
9
9
  import { useForm as J, Controller as y } from "react-hook-form";
10
10
  import Bt, { loader as nt } from "@monaco-editor/react";
11
11
  import { createInstance as Jn } from "i18next";
@@ -24,11 +24,11 @@ var st = { exports: {} }, _e = {};
24
24
  * This source code is licensed under the MIT license found in the
25
25
  * LICENSE file in the root directory of this source tree.
26
26
  */
27
- var It;
27
+ var Mt;
28
28
  function tr() {
29
- if (It)
29
+ if (Mt)
30
30
  return _e;
31
- It = 1;
31
+ Mt = 1;
32
32
  var a = G, t = Symbol.for("react.element"), s = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, o = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
33
33
  function l(c, d, f) {
34
34
  var m, x = {}, j = null, S = null;
@@ -52,9 +52,9 @@ var Se = {};
52
52
  * This source code is licensed under the MIT license found in the
53
53
  * LICENSE file in the root directory of this source tree.
54
54
  */
55
- var Mt;
55
+ var Ft;
56
56
  function nr() {
57
- return Mt || (Mt = 1, process.env.NODE_ENV !== "production" && function() {
57
+ return Ft || (Ft = 1, process.env.NODE_ENV !== "production" && function() {
58
58
  var a = G, t = Symbol.for("react.element"), s = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), c = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), L = Symbol.iterator, V = "@@iterator";
59
59
  function X(r) {
60
60
  if (r === null || typeof r != "object")
@@ -80,14 +80,14 @@ function nr() {
80
80
  z.unshift("Warning: " + u), Function.prototype.apply.call(console[r], console, z);
81
81
  }
82
82
  }
83
- var Z = !1, le = !1, Ve = !1, en = !1, tn = !1, ut;
84
- ut = Symbol.for("react.module.reference");
83
+ var Z = !1, le = !1, Ve = !1, en = !1, tn = !1, ft;
84
+ ft = Symbol.for("react.module.reference");
85
85
  function nn(r) {
86
86
  return !!(typeof r == "string" || typeof r == "function" || r === n || r === i || tn || r === o || r === f || r === m || en || r === S || Z || le || Ve || typeof r == "object" && r !== null && (r.$$typeof === j || r.$$typeof === x || r.$$typeof === l || r.$$typeof === c || r.$$typeof === d || // This needs to include all possible module reference object
87
87
  // types supported by any Flight configuration anywhere since
88
88
  // we don't know which Flight build this will end up being used
89
89
  // with.
90
- r.$$typeof === ut || r.getModuleId !== void 0));
90
+ r.$$typeof === ft || r.getModuleId !== void 0));
91
91
  }
92
92
  function rn(r, u, p) {
93
93
  var g = r.displayName;
@@ -96,7 +96,7 @@ function nr() {
96
96
  var _ = u.displayName || u.name || "";
97
97
  return _ !== "" ? p + "(" + _ + ")" : p;
98
98
  }
99
- function ft(r) {
99
+ function pt(r) {
100
100
  return r.displayName || "Context";
101
101
  }
102
102
  function B(r) {
@@ -124,10 +124,10 @@ function nr() {
124
124
  switch (r.$$typeof) {
125
125
  case c:
126
126
  var u = r;
127
- return ft(u) + ".Consumer";
127
+ return pt(u) + ".Consumer";
128
128
  case l:
129
129
  var p = r;
130
- return ft(p._context) + ".Provider";
130
+ return pt(p._context) + ".Provider";
131
131
  case d:
132
132
  return rn(r, r.render, "ForwardRef");
133
133
  case x:
@@ -144,18 +144,18 @@ function nr() {
144
144
  }
145
145
  return null;
146
146
  }
147
- var ae = Object.assign, je = 0, pt, mt, ht, gt, xt, jt, vt;
148
- function bt() {
147
+ var ae = Object.assign, je = 0, mt, ht, gt, xt, jt, vt, bt;
148
+ function _t() {
149
149
  }
150
- bt.__reactDisabledLog = !0;
150
+ _t.__reactDisabledLog = !0;
151
151
  function an() {
152
152
  {
153
153
  if (je === 0) {
154
- pt = console.log, mt = console.info, ht = console.warn, gt = console.error, xt = console.group, jt = console.groupCollapsed, vt = console.groupEnd;
154
+ mt = console.log, ht = console.info, gt = console.warn, xt = console.error, jt = console.group, vt = console.groupCollapsed, bt = console.groupEnd;
155
155
  var r = {
156
156
  configurable: !0,
157
157
  enumerable: !0,
158
- value: bt,
158
+ value: _t,
159
159
  writable: !0
160
160
  };
161
161
  Object.defineProperties(console, {
@@ -181,25 +181,25 @@ function nr() {
181
181
  };
182
182
  Object.defineProperties(console, {
183
183
  log: ae({}, r, {
184
- value: pt
184
+ value: mt
185
185
  }),
186
186
  info: ae({}, r, {
187
- value: mt
187
+ value: ht
188
188
  }),
189
189
  warn: ae({}, r, {
190
- value: ht
190
+ value: gt
191
191
  }),
192
192
  error: ae({}, r, {
193
- value: gt
193
+ value: xt
194
194
  }),
195
195
  group: ae({}, r, {
196
- value: xt
196
+ value: jt
197
197
  }),
198
198
  groupCollapsed: ae({}, r, {
199
- value: jt
199
+ value: vt
200
200
  }),
201
201
  groupEnd: ae({}, r, {
202
- value: vt
202
+ value: bt
203
203
  })
204
204
  });
205
205
  }
@@ -225,7 +225,7 @@ function nr() {
225
225
  var on = typeof WeakMap == "function" ? WeakMap : Map;
226
226
  Ee = new on();
227
227
  }
228
- function _t(r, u) {
228
+ function St(r, u) {
229
229
  if (!r || Ke)
230
230
  return "";
231
231
  {
@@ -297,7 +297,7 @@ function nr() {
297
297
  return typeof r == "function" && Ee.set(r, se), se;
298
298
  }
299
299
  function cn(r, u, p) {
300
- return _t(r, !1);
300
+ return St(r, !1);
301
301
  }
302
302
  function ln(r) {
303
303
  var u = r.prototype;
@@ -307,7 +307,7 @@ function nr() {
307
307
  if (r == null)
308
308
  return "";
309
309
  if (typeof r == "function")
310
- return _t(r, ln(r));
310
+ return St(r, ln(r));
311
311
  if (typeof r == "string")
312
312
  return De(r);
313
313
  switch (r) {
@@ -332,13 +332,13 @@ function nr() {
332
332
  }
333
333
  return "";
334
334
  }
335
- var ve = Object.prototype.hasOwnProperty, St = {}, wt = q.ReactDebugCurrentFrame;
335
+ var ve = Object.prototype.hasOwnProperty, wt = {}, yt = q.ReactDebugCurrentFrame;
336
336
  function Ae(r) {
337
337
  if (r) {
338
338
  var u = r._owner, p = Pe(r.type, r._source, u ? u.type : null);
339
- wt.setExtraStackFrame(p);
339
+ yt.setExtraStackFrame(p);
340
340
  } else
341
- wt.setExtraStackFrame(null);
341
+ yt.setExtraStackFrame(null);
342
342
  }
343
343
  function dn(r, u, p, g, _) {
344
344
  {
@@ -355,7 +355,7 @@ function nr() {
355
355
  } catch (P) {
356
356
  v = P;
357
357
  }
358
- v && !(v instanceof Error) && (Ae(_), w("%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).", g || "React class", p, b, typeof v), Ae(null)), v instanceof Error && !(v.message in St) && (St[v.message] = !0, Ae(_), w("Failed %s type: %s", p, v.message), Ae(null));
358
+ v && !(v instanceof Error) && (Ae(_), w("%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).", g || "React class", p, b, typeof v), Ae(null)), v instanceof Error && !(v.message in wt) && (wt[v.message] = !0, Ae(_), w("Failed %s type: %s", p, v.message), Ae(null));
359
359
  }
360
360
  }
361
361
  }
@@ -371,24 +371,24 @@ function nr() {
371
371
  }
372
372
  function pn(r) {
373
373
  try {
374
- return yt(r), !1;
374
+ return Ct(r), !1;
375
375
  } catch {
376
376
  return !0;
377
377
  }
378
378
  }
379
- function yt(r) {
379
+ function Ct(r) {
380
380
  return "" + r;
381
381
  }
382
- function Ct(r) {
382
+ function Tt(r) {
383
383
  if (pn(r))
384
- return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", fn(r)), yt(r);
384
+ return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", fn(r)), Ct(r);
385
385
  }
386
386
  var be = q.ReactCurrentOwner, mn = {
387
387
  key: !0,
388
388
  ref: !0,
389
389
  __self: !0,
390
390
  __source: !0
391
- }, Tt, zt, Je;
391
+ }, zt, Dt, Je;
392
392
  Je = {};
393
393
  function hn(r) {
394
394
  if (ve.call(r, "ref")) {
@@ -415,7 +415,7 @@ function nr() {
415
415
  function jn(r, u) {
416
416
  {
417
417
  var p = function() {
418
- Tt || (Tt = !0, w("%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)", u));
418
+ zt || (zt = !0, w("%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)", u));
419
419
  };
420
420
  p.isReactWarning = !0, Object.defineProperty(r, "key", {
421
421
  get: p,
@@ -426,7 +426,7 @@ function nr() {
426
426
  function vn(r, u) {
427
427
  {
428
428
  var p = function() {
429
- zt || (zt = !0, w("%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)", u));
429
+ Dt || (Dt = !0, w("%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)", u));
430
430
  };
431
431
  p.isReactWarning = !0, Object.defineProperty(r, "ref", {
432
432
  get: p,
@@ -466,7 +466,7 @@ function nr() {
466
466
  function _n(r, u, p, g, _) {
467
467
  {
468
468
  var z, b = {}, v = null, N = null;
469
- p !== void 0 && (Ct(p), v = "" + p), gn(u) && (Ct(u.key), v = "" + u.key), hn(u) && (N = u.ref, xn(u, _));
469
+ p !== void 0 && (Tt(p), v = "" + p), gn(u) && (Tt(u.key), v = "" + u.key), hn(u) && (N = u.ref, xn(u, _));
470
470
  for (z in u)
471
471
  ve.call(u, z) && !mn.hasOwnProperty(z) && (b[z] = u[z]);
472
472
  if (r && r.defaultProps) {
@@ -481,20 +481,20 @@ function nr() {
481
481
  return bn(r, v, N, _, g, be.current, b);
482
482
  }
483
483
  }
484
- var Qe = q.ReactCurrentOwner, Dt = q.ReactDebugCurrentFrame;
484
+ var Qe = q.ReactCurrentOwner, Et = q.ReactDebugCurrentFrame;
485
485
  function de(r) {
486
486
  if (r) {
487
487
  var u = r._owner, p = Pe(r.type, r._source, u ? u.type : null);
488
- Dt.setExtraStackFrame(p);
488
+ Et.setExtraStackFrame(p);
489
489
  } else
490
- Dt.setExtraStackFrame(null);
490
+ Et.setExtraStackFrame(null);
491
491
  }
492
492
  var Xe;
493
493
  Xe = !1;
494
494
  function Ze(r) {
495
495
  return typeof r == "object" && r !== null && r.$$typeof === t;
496
496
  }
497
- function Et() {
497
+ function Pt() {
498
498
  {
499
499
  if (Qe.current) {
500
500
  var r = B(Qe.current.type);
@@ -517,10 +517,10 @@ Check your code at ` + u + ":" + p + ".";
517
517
  return "";
518
518
  }
519
519
  }
520
- var Pt = {};
520
+ var At = {};
521
521
  function wn(r) {
522
522
  {
523
- var u = Et();
523
+ var u = Pt();
524
524
  if (!u) {
525
525
  var p = typeof r == "string" ? r : r.displayName || r.name;
526
526
  p && (u = `
@@ -530,27 +530,27 @@ Check the top-level render call using <` + p + ">.");
530
530
  return u;
531
531
  }
532
532
  }
533
- function At(r, u) {
533
+ function Rt(r, u) {
534
534
  {
535
535
  if (!r._store || r._store.validated || r.key != null)
536
536
  return;
537
537
  r._store.validated = !0;
538
538
  var p = wn(u);
539
- if (Pt[p])
539
+ if (At[p])
540
540
  return;
541
- Pt[p] = !0;
541
+ At[p] = !0;
542
542
  var g = "";
543
543
  r && r._owner && r._owner !== Qe.current && (g = " It was passed a child from " + B(r._owner.type) + "."), de(r), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', p, g), de(null);
544
544
  }
545
545
  }
546
- function Rt(r, u) {
546
+ function Ot(r, u) {
547
547
  {
548
548
  if (typeof r != "object")
549
549
  return;
550
550
  if (Ge(r))
551
551
  for (var p = 0; p < r.length; p++) {
552
552
  var g = r[p];
553
- Ze(g) && At(g, u);
553
+ Ze(g) && Rt(g, u);
554
554
  }
555
555
  else if (Ze(r))
556
556
  r._store && (r._store.validated = !0);
@@ -558,7 +558,7 @@ Check the top-level render call using <` + p + ">.");
558
558
  var _ = X(r);
559
559
  if (typeof _ == "function" && _ !== r.entries)
560
560
  for (var z = _.call(r), b; !(b = z.next()).done; )
561
- Ze(b.value) && At(b.value, u);
561
+ Ze(b.value) && Rt(b.value, u);
562
562
  }
563
563
  }
564
564
  }
@@ -599,15 +599,15 @@ Check the top-level render call using <` + p + ">.");
599
599
  r.ref !== null && (de(r), w("Invalid attribute `ref` supplied to `React.Fragment`."), de(null));
600
600
  }
601
601
  }
602
- var Ot = {};
603
- function $t(r, u, p, g, _, z) {
602
+ var $t = {};
603
+ function kt(r, u, p, g, _, z) {
604
604
  {
605
605
  var b = nn(r);
606
606
  if (!b) {
607
607
  var v = "";
608
608
  (r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (v += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
609
609
  var N = Sn(_);
610
- N ? v += N : v += Et();
610
+ N ? v += N : v += Pt();
611
611
  var P;
612
612
  r === null ? P = "null" : Ge(r) ? P = "array" : r !== void 0 && r.$$typeof === t ? (P = "<" + (B(r.type) || "Unknown") + " />", v = " Did you accidentally export a JSX literal instead of a component?") : P = typeof r, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", P, v);
613
613
  }
@@ -620,35 +620,35 @@ Check the top-level render call using <` + p + ">.");
620
620
  if (g)
621
621
  if (Ge(H)) {
622
622
  for (var ue = 0; ue < H.length; ue++)
623
- Rt(H[ue], r);
623
+ Ot(H[ue], r);
624
624
  Object.freeze && Object.freeze(H);
625
625
  } else
626
626
  w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
627
627
  else
628
- Rt(H, r);
628
+ Ot(H, r);
629
629
  }
630
630
  if (ve.call(u, "key")) {
631
631
  var se = B(r), U = Object.keys(u).filter(function(An) {
632
632
  return An !== "key";
633
633
  }), et = U.length > 0 ? "{key: someKey, " + U.join(": ..., ") + ": ...}" : "{key: someKey}";
634
- if (!Ot[se + et]) {
634
+ if (!$t[se + et]) {
635
635
  var Pn = U.length > 0 ? "{" + U.join(": ..., ") + ": ...}" : "{}";
636
636
  w(`A props object containing a "key" prop is being spread into JSX:
637
637
  let props = %s;
638
638
  <%s {...props} />
639
639
  React keys must be passed directly to JSX without using spread:
640
640
  let props = %s;
641
- <%s key={someKey} {...props} />`, et, se, Pn, se), Ot[se + et] = !0;
641
+ <%s key={someKey} {...props} />`, et, se, Pn, se), $t[se + et] = !0;
642
642
  }
643
643
  }
644
644
  return r === n ? Cn(R) : yn(R), R;
645
645
  }
646
646
  }
647
647
  function Tn(r, u, p) {
648
- return $t(r, u, p, !0);
648
+ return kt(r, u, p, !0);
649
649
  }
650
650
  function zn(r, u, p) {
651
- return $t(r, u, p, !1);
651
+ return kt(r, u, p, !1);
652
652
  }
653
653
  var Dn = zn, En = Tn;
654
654
  Se.Fragment = n, Se.jsx = Dn, Se.jsxs = En;
@@ -698,8 +698,8 @@ class sr {
698
698
  getRequest(t, s) {
699
699
  return (n, o, i, l) => {
700
700
  const c = this.buildHeader(i), d = this.buildAxiosConfig(t, n, o, i, c, s);
701
- return kt(d).then((f) => l ? f : f.data).catch((f) => {
702
- if (kt.isCancel(f))
701
+ return It(d).then((f) => l ? f : f.data).catch((f) => {
702
+ if (It.isCancel(f))
703
703
  return Promise.reject(f);
704
704
  const m = f, x = Gn.get(m, "response.data.detail.message", m.message);
705
705
  return Promise.reject(new Error(x));
@@ -866,7 +866,7 @@ const lr = {
866
866
  }, fr = {
867
867
  list: async () => await A.get()("/role/list", {}, {})
868
868
  };
869
- var Kt = 60, Gt = Kt * 60, Jt = Gt * 24, pr = Jt * 7, ge = 1e3, rt = Kt * ge, Ft = Gt * ge, mr = Jt * ge, hr = pr * ge, ct = "millisecond", fe = "second", pe = "minute", me = "hour", ee = "day", Oe = "week", W = "month", Qt = "quarter", te = "year", he = "date", gr = "YYYY-MM-DDTHH:mm:ssZ", Lt = "Invalid Date", xr = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, jr = /\[([^\]]+)]|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;
869
+ var Kt = 60, Gt = Kt * 60, Jt = Gt * 24, pr = Jt * 7, ge = 1e3, rt = Kt * ge, Lt = Gt * ge, mr = Jt * ge, hr = pr * ge, lt = "millisecond", fe = "second", pe = "minute", me = "hour", ee = "day", Oe = "week", W = "month", Qt = "quarter", te = "year", he = "date", gr = "YYYY-MM-DDTHH:mm:ssZ", qt = "Invalid Date", xr = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, jr = /\[([^\]]+)]|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;
870
870
  const vr = {
871
871
  name: "en",
872
872
  weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
@@ -899,7 +899,7 @@ var ot = function(t, s, n) {
899
899
  h: me,
900
900
  m: pe,
901
901
  s: fe,
902
- ms: ct,
902
+ ms: lt,
903
903
  Q: Qt
904
904
  };
905
905
  return s[t] || String(t || "").toLowerCase().replace(/s$/, "");
@@ -916,7 +916,7 @@ const Cr = {
916
916
  };
917
917
  var ye = "en", oe = {};
918
918
  oe[ye] = vr;
919
- var lt = function(t) {
919
+ var dt = function(t) {
920
920
  return t instanceof He;
921
921
  }, ke = function a(t, s, n) {
922
922
  var o;
@@ -934,7 +934,7 @@ var lt = function(t) {
934
934
  }
935
935
  return !n && o && (ye = o), o || !n && ye;
936
936
  }, $ = function(t, s) {
937
- if (lt(t))
937
+ if (dt(t))
938
938
  return t.clone();
939
939
  var n = typeof s == "object" ? s : {};
940
940
  return n.date = t, n.args = arguments, new He(n);
@@ -948,7 +948,7 @@ var lt = function(t) {
948
948
  });
949
949
  }, T = Cr;
950
950
  T.l = ke;
951
- T.i = lt;
951
+ T.i = dt;
952
952
  T.w = Tr;
953
953
  var zr = function(t) {
954
954
  var s = t.date, n = t.utc;
@@ -979,7 +979,7 @@ var zr = function(t) {
979
979
  }, t.$utils = function() {
980
980
  return T;
981
981
  }, t.isValid = function() {
982
- return this.$d.toString() !== Lt;
982
+ return this.$d.toString() !== qt;
983
983
  }, t.isSame = function(n, o) {
984
984
  var i = $(n);
985
985
  return this.startOf(o) <= i && i <= this.endOf(o);
@@ -1029,7 +1029,7 @@ var zr = function(t) {
1029
1029
  }, t.endOf = function(n) {
1030
1030
  return this.startOf(n, !1);
1031
1031
  }, t.$set = function(n, o) {
1032
- var i, l = T.p(n), c = "set" + (this.$u ? "UTC" : ""), d = (i = {}, i[ee] = c + "Date", i[he] = c + "Date", i[W] = c + "Month", i[te] = c + "FullYear", i[me] = c + "Hours", i[pe] = c + "Minutes", i[fe] = c + "Seconds", i[ct] = c + "Milliseconds", i)[l], f = l === ee ? this.$D + (o - this.$W) : o;
1032
+ var i, l = T.p(n), c = "set" + (this.$u ? "UTC" : ""), d = (i = {}, i[ee] = c + "Date", i[he] = c + "Date", i[W] = c + "Month", i[te] = c + "FullYear", i[me] = c + "Hours", i[pe] = c + "Minutes", i[fe] = c + "Seconds", i[lt] = c + "Milliseconds", i)[l], f = l === ee ? this.$D + (o - this.$W) : o;
1033
1033
  if (l === W || l === te) {
1034
1034
  var m = this.clone().set(he, 1);
1035
1035
  m.$d[d](f), m.init(), this.$d = m.set(he, Math.min(this.$D, m.daysInMonth())).$d;
@@ -1055,14 +1055,14 @@ var zr = function(t) {
1055
1055
  return d(1);
1056
1056
  if (c === Oe)
1057
1057
  return d(7);
1058
- var f = (l = {}, l[pe] = rt, l[me] = Ft, l[fe] = ge, l)[c] || 1, m = this.$d.getTime() + n * f;
1058
+ var f = (l = {}, l[pe] = rt, l[me] = Lt, l[fe] = ge, l)[c] || 1, m = this.$d.getTime() + n * f;
1059
1059
  return T.w(m, this);
1060
1060
  }, t.subtract = function(n, o) {
1061
1061
  return this.add(n * -1, o);
1062
1062
  }, t.format = function(n) {
1063
1063
  var o = this, i = this.$locale();
1064
1064
  if (!this.isValid())
1065
- return i.invalidDate || Lt;
1065
+ return i.invalidDate || qt;
1066
1066
  var l = n || gr, c = T.z(this), d = this.$H, f = this.$m, m = this.$M, x = i.weekdays, j = i.months, S = i.meridiem, L = function(F, Z, le, Ve) {
1067
1067
  return F && (F[Z] || F(o, l)) || le[Z].slice(0, Ve);
1068
1068
  }, V = function(F) {
@@ -1149,7 +1149,7 @@ var zr = function(t) {
1149
1149
  j = (m - f) / mr;
1150
1150
  break;
1151
1151
  case me:
1152
- j = m / Ft;
1152
+ j = m / Lt;
1153
1153
  break;
1154
1154
  case pe:
1155
1155
  j = m / rt;
@@ -1184,7 +1184,7 @@ var zr = function(t) {
1184
1184
  }, a;
1185
1185
  }(), Xt = He.prototype;
1186
1186
  $.prototype = Xt;
1187
- [["$ms", ct], ["$s", fe], ["$m", pe], ["$H", me], ["$W", ee], ["$M", W], ["$y", te], ["$D", he]].forEach(function(a) {
1187
+ [["$ms", lt], ["$s", fe], ["$m", pe], ["$H", me], ["$W", ee], ["$M", W], ["$y", te], ["$D", he]].forEach(function(a) {
1188
1188
  Xt[a[1]] = function(t) {
1189
1189
  return this.$g(t, a[0], a[1]);
1190
1190
  };
@@ -1193,7 +1193,7 @@ $.extend = function(a, t) {
1193
1193
  return a.$i || (a(t, He, $), a.$i = !0), $;
1194
1194
  };
1195
1195
  $.locale = ke;
1196
- $.isDayjs = lt;
1196
+ $.isDayjs = dt;
1197
1197
  $.unix = function(a) {
1198
1198
  return $(a * 1e3);
1199
1199
  };
@@ -1245,16 +1245,16 @@ function Er({
1245
1245
  " privilege is needed."
1246
1246
  ] }) }) });
1247
1247
  }
1248
- const Zt = ({
1248
+ const Zt = ct(({
1249
1249
  value: a,
1250
1250
  onChange: t,
1251
1251
  height: s = "200px",
1252
1252
  defaultLanguage: n = "sql"
1253
- }) => {
1254
- const o = (l) => {
1255
- console.log("changing"), t == null || t(l ?? "");
1256
- }, i = !t;
1257
- return /* @__PURE__ */ e.jsx(Bt, { className: "minimal-monaco-editor", height: s, defaultLanguage: n, value: a, onChange: i ? void 0 : o, theme: "vs-dark", options: {
1253
+ }, o) => {
1254
+ const i = (c) => {
1255
+ t == null || t(c ?? "");
1256
+ }, l = !t;
1257
+ return /* @__PURE__ */ e.jsx(Bt, { className: "minimal-monaco-editor", height: s, defaultLanguage: n, value: a, onChange: l ? void 0 : i, theme: "vs-dark", options: {
1258
1258
  lineNumbers: "off",
1259
1259
  folding: !1,
1260
1260
  lineDecorationsWidth: 20,
@@ -1263,9 +1263,9 @@ const Zt = ({
1263
1263
  minimap: {
1264
1264
  enabled: !1
1265
1265
  },
1266
- readOnly: i || !t
1266
+ readOnly: l || !t
1267
1267
  } });
1268
- };
1268
+ });
1269
1269
  function Q({
1270
1270
  size: a,
1271
1271
  disabled: t
@@ -1653,7 +1653,7 @@ const Ir = ({
1653
1653
  enabled: !1
1654
1654
  }
1655
1655
  } }) });
1656
- }, Ie = Nt(({
1656
+ }, Ie = ct(({
1657
1657
  value: a,
1658
1658
  onChange: t,
1659
1659
  label: s,
@@ -1886,7 +1886,7 @@ function Hr({
1886
1886
  transform: "none !important"
1887
1887
  }, children: i("common.actions.delete") }) }) : /* @__PURE__ */ e.jsx(O, { size: o.button.size, color: "red", onClick: d, leftSection: /* @__PURE__ */ e.jsx(Ue, { size: 16 }), children: i("common.actions.delete") });
1888
1888
  }
1889
- const qt = {
1889
+ const Nt = {
1890
1890
  pre: ["function pre_process({ method, url, params, headers, data }, utils) {", " // your code goes here", " return { method, url, params, headers, data }", "}"].join(`
1891
1891
  `),
1892
1892
  post: ["function post_process(resp, utils) {", " return resp.data", "}"].join(`
@@ -1919,10 +1919,10 @@ function Yr({
1919
1919
  /* @__PURE__ */ e.jsxs(D, { grow: !0, children: [
1920
1920
  /* @__PURE__ */ e.jsx(y, { name: "config.processing.pre", control: i, render: ({
1921
1921
  field: c
1922
- }) => /* @__PURE__ */ e.jsx(Ie, { label: o("datasource.http.processing.pre.label"), modalTitle: o("datasource.http.processing.pre.description"), defaultValue: qt.pre, ...c, styles: n }) }),
1922
+ }) => /* @__PURE__ */ e.jsx(Ie, { label: o("datasource.http.processing.pre.label"), modalTitle: o("datasource.http.processing.pre.description"), defaultValue: Nt.pre, ...c, styles: n }) }),
1923
1923
  /* @__PURE__ */ e.jsx(y, { name: "config.processing.post", control: i, render: ({
1924
1924
  field: c
1925
- }) => /* @__PURE__ */ e.jsx(Ie, { label: o("datasource.http.processing.post.label"), modalTitle: o("datasource.http.processing.post.description"), defaultValue: qt.post, ...c, styles: n }) })
1925
+ }) => /* @__PURE__ */ e.jsx(Ie, { label: o("datasource.http.processing.post.label"), modalTitle: o("datasource.http.processing.post.description"), defaultValue: Nt.post, ...c, styles: n }) })
1926
1926
  ] }),
1927
1927
  /* @__PURE__ */ e.jsx(D, { justify: "flex-end", mt: n.spacing, children: /* @__PURE__ */ e.jsx(Q, { size: n.button.size }) })
1928
1928
  ] }) });
@@ -2056,7 +2056,7 @@ const ya = ze("DataSourceList", ({
2056
2056
  /* @__PURE__ */ e.jsx(ie, { size: "sm", children: s }),
2057
2057
  /* @__PURE__ */ e.jsx(ie, { size: "xs", c: "dimmed", className: "role-description", children: o })
2058
2058
  ] });
2059
- }, dt = Nt(({
2059
+ }, ut = ct(({
2060
2060
  styles: a,
2061
2061
  value: t,
2062
2062
  onChange: s
@@ -2153,7 +2153,7 @@ function Kr({
2153
2153
  }) => /* @__PURE__ */ e.jsx(Le, { mb: t.spacing, size: t.size, required: !0, label: n("account.password"), description: n("account.password_hint"), ...c }) }),
2154
2154
  /* @__PURE__ */ e.jsx(y, { name: "role_id", control: o, render: ({
2155
2155
  field: c
2156
- }) => /* @__PURE__ */ e.jsx(dt, { styles: t, ...c }) }),
2156
+ }) => /* @__PURE__ */ e.jsx(ut, { styles: t, ...c }) }),
2157
2157
  /* @__PURE__ */ e.jsx(D, { justify: "flex-end", mt: t.spacing, children: /* @__PURE__ */ e.jsx(Q, { size: t.button.size }) })
2158
2158
  ] }) });
2159
2159
  }
@@ -2298,7 +2298,7 @@ function Qr({
2298
2298
  }) => /* @__PURE__ */ e.jsx(I, { mb: i.spacing, size: i.size, required: !0, label: l("account.email"), ...S }) }),
2299
2299
  /* @__PURE__ */ e.jsx(y, { name: "role_id", control: c, render: ({
2300
2300
  field: S
2301
- }) => /* @__PURE__ */ e.jsx(dt, { styles: i, ...S }) }),
2301
+ }) => /* @__PURE__ */ e.jsx(ut, { styles: i, ...S }) }),
2302
2302
  /* @__PURE__ */ e.jsx(Fe, { my: 20, variant: "dashed", label: "", labelPosition: "center" }),
2303
2303
  /* @__PURE__ */ e.jsx(y, { name: "reset_password", control: c, render: ({
2304
2304
  field: S
@@ -2521,7 +2521,7 @@ function ea({
2521
2521
  }) => /* @__PURE__ */ e.jsx(I, { mb: t.spacing, size: t.size, required: !0, label: n("common.name"), ...c }) }),
2522
2522
  /* @__PURE__ */ e.jsx(y, { name: "role_id", control: o, render: ({
2523
2523
  field: c
2524
- }) => /* @__PURE__ */ e.jsx(dt, { styles: t, ...c }) }),
2524
+ }) => /* @__PURE__ */ e.jsx(ut, { styles: t, ...c }) }),
2525
2525
  /* @__PURE__ */ e.jsx(D, { justify: "flex-end", mt: t.spacing, children: /* @__PURE__ */ e.jsx(Q, { size: t.button.size }) })
2526
2526
  ] }) });
2527
2527
  }
@@ -2948,7 +2948,7 @@ const Da = ze("DataSourceList", ({
2948
2948
  ] })
2949
2949
  ] })
2950
2950
  ] });
2951
- }), Ea = () => import("./package-cf36a5a0.mjs").then(({
2951
+ }), Ea = () => import("./package-bdb68b50.mjs").then(({
2952
2952
  version: a
2953
2953
  }) => (console.log(`[@devtable/settings-form] version: ${a}`), a));
2954
2954
  export {