@devtable/settings-form 14.12.0 → 14.13.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,5 +1,5 @@
1
- import G, { forwardRef as ct, useEffect as Me, Suspense as An, useState as Ut } from "react";
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 g, Select as In, Switch as Mn, HoverCard as tt } from "@mantine/core";
1
+ import G, { forwardRef as ct, useEffect as Me, Suspense as Rn, useState as Ut } from "react";
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, IconTopologyRing3 as Yn, IconLock as Wt, IconTrash as Ue, IconEdit as $e, IconEye as Vn } from "@tabler/icons-react";
5
5
  import { Trans as Wn, useTranslation as C, initReactI18next as Bn, I18nextProvider as Kn } from "react-i18next";
@@ -65,14 +65,14 @@ function rr() {
65
65
  var q = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
66
66
  function y(r) {
67
67
  {
68
- for (var u = arguments.length, p = new Array(u > 1 ? u - 1 : 0), h = 1; h < u; h++)
69
- p[h - 1] = arguments[h];
68
+ for (var u = arguments.length, p = new Array(u > 1 ? u - 1 : 0), g = 1; g < u; g++)
69
+ p[g - 1] = arguments[g];
70
70
  F("error", r, p);
71
71
  }
72
72
  }
73
73
  function F(r, u, p) {
74
74
  {
75
- var h = q.ReactDebugCurrentFrame, _ = h.getStackAddendum();
75
+ var g = q.ReactDebugCurrentFrame, _ = g.getStackAddendum();
76
76
  _ !== "" && (u += "%s", p = p.concat([_]));
77
77
  var z = p.map(function(b) {
78
78
  return String(b);
@@ -90,9 +90,9 @@ function rr() {
90
90
  r.$$typeof === ft || r.getModuleId !== void 0));
91
91
  }
92
92
  function rn(r, u, p) {
93
- var h = r.displayName;
94
- if (h)
95
- return h;
93
+ var g = r.displayName;
94
+ if (g)
95
+ return g;
96
96
  var _ = u.displayName || u.name || "";
97
97
  return _ !== "" ? p + "(" + _ + ")" : p;
98
98
  }
@@ -131,8 +131,8 @@ function rr() {
131
131
  case d:
132
132
  return rn(r, r.render, "ForwardRef");
133
133
  case x:
134
- var h = r.displayName || null;
135
- return h !== null ? h : B(r.type) || "Memo";
134
+ var g = r.displayName || null;
135
+ return g !== null ? g : B(r.type) || "Memo";
136
136
  case j: {
137
137
  var _ = r, z = _._payload, b = _._init;
138
138
  try {
@@ -144,14 +144,14 @@ function rr() {
144
144
  }
145
145
  return null;
146
146
  }
147
- var ae = Object.assign, je = 0, mt, gt, ht, xt, jt, vt, bt;
147
+ var ae = Object.assign, je = 0, mt, ht, gt, xt, jt, vt, bt;
148
148
  function _t() {
149
149
  }
150
150
  _t.__reactDisabledLog = !0;
151
151
  function an() {
152
152
  {
153
153
  if (je === 0) {
154
- mt = console.log, gt = console.info, ht = console.warn, xt = console.error, jt = console.group, vt = console.groupCollapsed, bt = 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,
@@ -184,10 +184,10 @@ function rr() {
184
184
  value: mt
185
185
  }),
186
186
  info: ae({}, r, {
187
- value: gt
187
+ value: ht
188
188
  }),
189
189
  warn: ae({}, r, {
190
- value: ht
190
+ value: gt
191
191
  }),
192
192
  error: ae({}, r, {
193
193
  value: xt
@@ -213,8 +213,8 @@ function rr() {
213
213
  try {
214
214
  throw Error();
215
215
  } catch (_) {
216
- var h = _.stack.trim().match(/\n( *(at )?)/);
217
- Be = h && h[1] || "";
216
+ var g = _.stack.trim().match(/\n( *(at )?)/);
217
+ Be = g && g[1] || "";
218
218
  }
219
219
  return `
220
220
  ` + Be + r;
@@ -233,7 +233,7 @@ function rr() {
233
233
  if (p !== void 0)
234
234
  return p;
235
235
  }
236
- var h;
236
+ var g;
237
237
  Ke = !0;
238
238
  var _ = Error.prepareStackTrace;
239
239
  Error.prepareStackTrace = void 0;
@@ -252,14 +252,14 @@ function rr() {
252
252
  try {
253
253
  Reflect.construct(b, []);
254
254
  } catch (U) {
255
- h = U;
255
+ g = U;
256
256
  }
257
257
  Reflect.construct(r, [], b);
258
258
  } else {
259
259
  try {
260
260
  b.call();
261
261
  } catch (U) {
262
- h = U;
262
+ g = U;
263
263
  }
264
264
  r.call(b.prototype);
265
265
  }
@@ -267,26 +267,26 @@ function rr() {
267
267
  try {
268
268
  throw Error();
269
269
  } catch (U) {
270
- h = U;
270
+ g = U;
271
271
  }
272
272
  r();
273
273
  }
274
274
  } catch (U) {
275
- if (U && h && typeof U.stack == "string") {
275
+ if (U && g && typeof U.stack == "string") {
276
276
  for (var v = U.stack.split(`
277
- `), N = h.stack.split(`
278
- `), P = v.length - 1, A = N.length - 1; P >= 1 && A >= 0 && v[P] !== N[A]; )
279
- A--;
280
- for (; P >= 1 && A >= 0; P--, A--)
281
- if (v[P] !== N[A]) {
282
- if (P !== 1 || A !== 1)
277
+ `), N = g.stack.split(`
278
+ `), P = v.length - 1, R = N.length - 1; P >= 1 && R >= 0 && v[P] !== N[R]; )
279
+ R--;
280
+ for (; P >= 1 && R >= 0; P--, R--)
281
+ if (v[P] !== N[R]) {
282
+ if (P !== 1 || R !== 1)
283
283
  do
284
- if (P--, A--, A < 0 || v[P] !== N[A]) {
284
+ if (P--, R--, R < 0 || v[P] !== N[R]) {
285
285
  var H = `
286
286
  ` + v[P].replace(" at new ", " at ");
287
287
  return r.displayName && H.includes("<anonymous>") && (H = H.replace("<anonymous>", r.displayName)), typeof r == "function" && Ee.set(r, H), H;
288
288
  }
289
- while (P >= 1 && A >= 0);
289
+ while (P >= 1 && R >= 0);
290
290
  break;
291
291
  }
292
292
  }
@@ -323,7 +323,7 @@ function rr() {
323
323
  case x:
324
324
  return Pe(r.type, u, p);
325
325
  case j: {
326
- var h = r, _ = h._payload, z = h._init;
326
+ var g = r, _ = g._payload, z = g._init;
327
327
  try {
328
328
  return Pe(z(_), u, p);
329
329
  } catch {
@@ -333,14 +333,14 @@ function rr() {
333
333
  return "";
334
334
  }
335
335
  var ve = Object.prototype.hasOwnProperty, yt = {}, wt = q.ReactDebugCurrentFrame;
336
- function Re(r) {
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
339
  wt.setExtraStackFrame(p);
340
340
  } else
341
341
  wt.setExtraStackFrame(null);
342
342
  }
343
- function dn(r, u, p, h, _) {
343
+ function dn(r, u, p, g, _) {
344
344
  {
345
345
  var z = Function.call.bind(ve);
346
346
  for (var b in r)
@@ -348,14 +348,14 @@ function rr() {
348
348
  var v = void 0;
349
349
  try {
350
350
  if (typeof r[b] != "function") {
351
- var N = Error((h || "React class") + ": " + p + " type `" + b + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[b] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
351
+ var N = Error((g || "React class") + ": " + p + " type `" + b + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[b] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
352
352
  throw N.name = "Invariant Violation", N;
353
353
  }
354
- v = r[b](u, b, h, p, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
354
+ v = r[b](u, b, g, p, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
355
355
  } catch (P) {
356
356
  v = P;
357
357
  }
358
- v && !(v instanceof Error) && (Re(_), y("%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).", h || "React class", p, b, typeof v), Re(null)), v instanceof Error && !(v.message in yt) && (yt[v.message] = !0, Re(_), y("Failed %s type: %s", p, v.message), Re(null));
358
+ v && !(v instanceof Error) && (Ae(_), y("%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 yt) && (yt[v.message] = !0, Ae(_), y("Failed %s type: %s", p, v.message), Ae(null));
359
359
  }
360
360
  }
361
361
  }
@@ -390,7 +390,7 @@ function rr() {
390
390
  __source: !0
391
391
  }, zt, Dt, Je;
392
392
  Je = {};
393
- function gn(r) {
393
+ function hn(r) {
394
394
  if (ve.call(r, "ref")) {
395
395
  var u = Object.getOwnPropertyDescriptor(r, "ref").get;
396
396
  if (u && u.isReactWarning)
@@ -398,7 +398,7 @@ function rr() {
398
398
  }
399
399
  return r.ref !== void 0;
400
400
  }
401
- function hn(r) {
401
+ function gn(r) {
402
402
  if (ve.call(r, "key")) {
403
403
  var u = Object.getOwnPropertyDescriptor(r, "key").get;
404
404
  if (u && u.isReactWarning)
@@ -434,7 +434,7 @@ function rr() {
434
434
  });
435
435
  }
436
436
  }
437
- var bn = function(r, u, p, h, _, z, b) {
437
+ var bn = function(r, u, p, g, _, z, b) {
438
438
  var v = {
439
439
  // This tag allows us to uniquely identify this as a React Element
440
440
  $$typeof: t,
@@ -455,7 +455,7 @@ function rr() {
455
455
  configurable: !1,
456
456
  enumerable: !1,
457
457
  writable: !1,
458
- value: h
458
+ value: g
459
459
  }), Object.defineProperty(v, "_source", {
460
460
  configurable: !1,
461
461
  enumerable: !1,
@@ -463,10 +463,10 @@ function rr() {
463
463
  value: _
464
464
  }), Object.freeze && (Object.freeze(v.props), Object.freeze(v)), v;
465
465
  };
466
- function _n(r, u, p, h, _) {
466
+ function _n(r, u, p, g, _) {
467
467
  {
468
468
  var z, b = {}, v = null, N = null;
469
- p !== void 0 && (Tt(p), v = "" + p), hn(u) && (Tt(u.key), v = "" + u.key), gn(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) {
@@ -475,10 +475,10 @@ function rr() {
475
475
  b[z] === void 0 && (b[z] = P[z]);
476
476
  }
477
477
  if (v || N) {
478
- var A = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
479
- v && jn(b, A), N && vn(b, A);
478
+ var R = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
479
+ v && jn(b, R), N && vn(b, R);
480
480
  }
481
- return bn(r, v, N, _, h, be.current, b);
481
+ return bn(r, v, N, _, g, be.current, b);
482
482
  }
483
483
  }
484
484
  var Qe = q.ReactCurrentOwner, Et = q.ReactDebugCurrentFrame;
@@ -517,7 +517,7 @@ Check your code at ` + u + ":" + p + ".";
517
517
  return "";
518
518
  }
519
519
  }
520
- var Rt = {};
520
+ var At = {};
521
521
  function yn(r) {
522
522
  {
523
523
  var u = Pt();
@@ -530,17 +530,17 @@ 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 = yn(u);
539
- if (Rt[p])
539
+ if (At[p])
540
540
  return;
541
- Rt[p] = !0;
542
- var h = "";
543
- r && r._owner && r._owner !== Qe.current && (h = " It was passed a child from " + B(r._owner.type) + "."), de(r), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', p, h), de(null);
541
+ At[p] = !0;
542
+ var g = "";
543
+ r && r._owner && r._owner !== Qe.current && (g = " It was passed a child from " + B(r._owner.type) + "."), de(r), y('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
546
  function Ot(r, u) {
@@ -549,8 +549,8 @@ Check the top-level render call using <` + p + ">.");
549
549
  return;
550
550
  if (Ge(r))
551
551
  for (var p = 0; p < r.length; p++) {
552
- var h = r[p];
553
- Ze(h) && At(h, u);
552
+ var g = r[p];
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
  }
@@ -577,8 +577,8 @@ Check the top-level render call using <` + p + ">.");
577
577
  else
578
578
  return;
579
579
  if (p) {
580
- var h = B(u);
581
- dn(p, r.props, "prop", h, r);
580
+ var g = B(u);
581
+ dn(p, r.props, "prop", g, r);
582
582
  } else if (u.PropTypes !== void 0 && !Xe) {
583
583
  Xe = !0;
584
584
  var _ = B(u);
@@ -590,9 +590,9 @@ Check the top-level render call using <` + p + ">.");
590
590
  function Cn(r) {
591
591
  {
592
592
  for (var u = Object.keys(r.props), p = 0; p < u.length; p++) {
593
- var h = u[p];
594
- if (h !== "children" && h !== "key") {
595
- de(r), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", h), de(null);
593
+ var g = u[p];
594
+ if (g !== "children" && g !== "key") {
595
+ de(r), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", g), de(null);
596
596
  break;
597
597
  }
598
598
  }
@@ -600,7 +600,7 @@ Check the top-level render call using <` + p + ">.");
600
600
  }
601
601
  }
602
602
  var $t = {};
603
- function kt(r, u, p, h, _, z) {
603
+ function kt(r, u, p, g, _, z) {
604
604
  {
605
605
  var b = nn(r);
606
606
  if (!b) {
@@ -611,13 +611,13 @@ Check the top-level render call using <` + p + ">.");
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, y("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
  }
614
- var A = _n(r, u, p, _, z);
615
- if (A == null)
616
- return A;
614
+ var R = _n(r, u, p, _, z);
615
+ if (R == null)
616
+ return R;
617
617
  if (b) {
618
618
  var H = u.children;
619
619
  if (H !== void 0)
620
- if (h)
620
+ if (g)
621
621
  if (Ge(H)) {
622
622
  for (var ue = 0; ue < H.length; ue++)
623
623
  Ot(H[ue], r);
@@ -628,8 +628,8 @@ Check the top-level render call using <` + p + ">.");
628
628
  Ot(H, r);
629
629
  }
630
630
  if (ve.call(u, "key")) {
631
- var se = B(r), U = Object.keys(u).filter(function(Rn) {
632
- return Rn !== "key";
631
+ var se = B(r), U = Object.keys(u).filter(function(An) {
632
+ return An !== "key";
633
633
  }), et = U.length > 0 ? "{key: someKey, " + U.join(": ..., ") + ": ...}" : "{key: someKey}";
634
634
  if (!$t[se + et]) {
635
635
  var Pn = U.length > 0 ? "{" + U.join(": ..., ") + ": ...}" : "{}";
@@ -641,7 +641,7 @@ React keys must be passed directly to JSX without using spread:
641
641
  <%s key={someKey} {...props} />`, et, se, Pn, se), $t[se + et] = !0;
642
642
  }
643
643
  }
644
- return r === n ? Cn(A) : wn(A), A;
644
+ return r === n ? Cn(R) : wn(R), R;
645
645
  }
646
646
  }
647
647
  function Tn(r, u, p) {
@@ -753,7 +753,7 @@ class ir {
753
753
  return this.getRequest("PUT", t);
754
754
  }
755
755
  }
756
- const ye = new or(), cr = new ir(ye), R = cr;
756
+ const ye = new or(), cr = new ir(ye), A = cr;
757
757
  function lr(a) {
758
758
  ye.baseURL !== a.apiBaseURL && (ye.baseURL = a.apiBaseURL), a.app_id && (ye.app_id = a.app_id), a.app_secret && (ye.app_secret = a.app_secret);
759
759
  }
@@ -763,9 +763,9 @@ const dr = {
763
763
  name: a,
764
764
  password: t
765
765
  };
766
- return await R.post()("/account/login", s, {});
766
+ return await A.post()("/account/login", s, {});
767
767
  },
768
- list: async () => await R.post()("/account/list", {
768
+ list: async () => await A.post()("/account/list", {
769
769
  filter: {},
770
770
  sort: [{
771
771
  field: "name",
@@ -779,7 +779,7 @@ const dr = {
779
779
  /**
780
780
  * get current account
781
781
  */
782
- get: async () => await R.get()("/account/get", {}, {}),
782
+ get: async () => await A.get()("/account/get", {}, {}),
783
783
  /**
784
784
  * update current account
785
785
  */
@@ -788,7 +788,7 @@ const dr = {
788
788
  name: a.trim(),
789
789
  email: t.trim()
790
790
  };
791
- return await R.put()("/account/update", s, {});
791
+ return await A.put()("/account/update", s, {});
792
792
  },
793
793
  /**
794
794
  * change current account's password
@@ -798,23 +798,23 @@ const dr = {
798
798
  old_password: a.trim(),
799
799
  new_password: t.trim()
800
800
  };
801
- return await R.post()("/account/changepassword", s, {});
801
+ return await A.post()("/account/changepassword", s, {});
802
802
  },
803
- create: async (a, t, s, n) => await R.post()("/account/create", {
803
+ create: async (a, t, s, n) => await A.post()("/account/create", {
804
804
  name: a.trim(),
805
805
  email: t.trim(),
806
806
  password: s.trim(),
807
807
  role_id: n
808
808
  }, {}),
809
- edit: async (a) => (a.reset_password || (a.new_password = void 0), await R.put()("/account/edit", a, {})),
809
+ edit: async (a) => (a.reset_password || (a.new_password = void 0), await A.put()("/account/edit", a, {})),
810
810
  delete: async (a) => {
811
811
  if (a)
812
- return R.post()("/account/delete", {
812
+ return A.post()("/account/delete", {
813
813
  id: a
814
814
  }, {});
815
815
  }
816
816
  }, ur = {
817
- list: async () => await R.post()("/api/key/list", {
817
+ list: async () => await A.post()("/api/key/list", {
818
818
  filter: {
819
819
  search: ""
820
820
  },
@@ -827,18 +827,18 @@ const dr = {
827
827
  pagesize: 100
828
828
  }
829
829
  }, {}),
830
- create: async (a, t) => R.post()("/api/key/create", {
830
+ create: async (a, t) => A.post()("/api/key/create", {
831
831
  name: a,
832
832
  role_id: t
833
833
  }, {}),
834
834
  delete: async (a) => {
835
835
  if (a)
836
- return R.post()("/api/key/delete", {
836
+ return A.post()("/api/key/delete", {
837
837
  id: a
838
838
  }, {});
839
839
  }
840
840
  }, fr = {
841
- list: async () => await R.post()("/datasource/list", {
841
+ list: async () => await A.post()("/datasource/list", {
842
842
  filter: {},
843
843
  sort: [{
844
844
  field: "create_time",
@@ -849,24 +849,24 @@ const dr = {
849
849
  pagesize: 100
850
850
  }
851
851
  }, {}),
852
- create: async (a, t, s) => await R.post()("/datasource/create", {
852
+ create: async (a, t, s) => await A.post()("/datasource/create", {
853
853
  type: a,
854
854
  key: t,
855
855
  config: s
856
856
  }, {}),
857
- update: async (a, t) => await R.put()("/datasource/update", {
857
+ update: async (a, t) => await A.put()("/datasource/update", {
858
858
  id: a,
859
859
  config: t
860
860
  }, {}),
861
861
  delete: async (a) => {
862
- await R.post()("/datasource/delete", {
862
+ await A.post()("/datasource/delete", {
863
863
  id: a
864
864
  }, {});
865
865
  }
866
866
  }, pr = {
867
- list: async () => await R.get()("/role/list", {}, {})
867
+ list: async () => await A.get()("/role/list", {}, {})
868
868
  };
869
- var Kt = 60, Gt = Kt * 60, Jt = Gt * 24, mr = Jt * 7, he = 1e3, rt = Kt * he, Lt = Gt * he, gr = Jt * he, hr = mr * he, lt = "millisecond", fe = "second", pe = "minute", me = "hour", ee = "day", Oe = "week", W = "month", Qt = "quarter", te = "year", ge = "date", xr = "YYYY-MM-DDTHH:mm:ssZ", qt = "Invalid Date", jr = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, vr = /\[([^\]]+)]|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, mr = Jt * 7, ge = 1e3, rt = Kt * ge, Lt = Gt * ge, hr = Jt * ge, gr = mr * ge, lt = "millisecond", fe = "second", pe = "minute", me = "hour", ee = "day", Oe = "week", W = "month", Qt = "quarter", te = "year", he = "date", xr = "YYYY-MM-DDTHH:mm:ssZ", qt = "Invalid Date", jr = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, vr = /\[([^\]]+)]|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 br = {
871
871
  name: "en",
872
872
  weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
@@ -895,7 +895,7 @@ var ot = function(t, s, n) {
895
895
  y: te,
896
896
  w: Oe,
897
897
  d: ee,
898
- D: ge,
898
+ D: he,
899
899
  h: me,
900
900
  m: pe,
901
901
  s: fe,
@@ -1015,7 +1015,7 @@ var Dr = function(t) {
1015
1015
  return d(l ? j - V : j + (6 - V), x);
1016
1016
  }
1017
1017
  case ee:
1018
- case ge:
1018
+ case he:
1019
1019
  return f(S + "Hours", 0);
1020
1020
  case me:
1021
1021
  return f(S + "Minutes", 1);
@@ -1029,10 +1029,10 @@ var Dr = 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[ge] = 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;
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
- var m = this.clone().set(ge, 1);
1035
- m.$d[d](f), m.init(), this.$d = m.set(ge, Math.min(this.$D, m.daysInMonth())).$d;
1034
+ var m = this.clone().set(he, 1);
1035
+ m.$d[d](f), m.init(), this.$d = m.set(he, Math.min(this.$D, m.daysInMonth())).$d;
1036
1036
  } else
1037
1037
  d && this.$d[d](f);
1038
1038
  return this.init(), this;
@@ -1055,7 +1055,7 @@ var Dr = 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] = Lt, l[fe] = he, 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);
@@ -1143,10 +1143,10 @@ var Dr = function(t) {
1143
1143
  j = x() / 3;
1144
1144
  break;
1145
1145
  case Oe:
1146
- j = (m - f) / hr;
1146
+ j = (m - f) / gr;
1147
1147
  break;
1148
1148
  case ee:
1149
- j = (m - f) / gr;
1149
+ j = (m - f) / hr;
1150
1150
  break;
1151
1151
  case me:
1152
1152
  j = m / Lt;
@@ -1155,7 +1155,7 @@ var Dr = function(t) {
1155
1155
  j = m / rt;
1156
1156
  break;
1157
1157
  case fe:
1158
- j = m / he;
1158
+ j = m / ge;
1159
1159
  break;
1160
1160
  default:
1161
1161
  j = m;
@@ -1184,7 +1184,7 @@ var Dr = function(t) {
1184
1184
  }, a;
1185
1185
  }(), Xt = He.prototype;
1186
1186
  $.prototype = Xt;
1187
- [["$ms", lt], ["$s", fe], ["$m", pe], ["$H", me], ["$W", ee], ["$M", W], ["$y", te], ["$D", ge]].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
  };
@@ -1204,7 +1204,7 @@ const Er = {
1204
1204
  list: async ({
1205
1205
  pagination: a
1206
1206
  }, t) => {
1207
- const s = await R.post(t)("/sql_snippet/list", {
1207
+ const s = await A.post(t)("/sql_snippet/list", {
1208
1208
  sort: [{
1209
1209
  field: "update_time",
1210
1210
  order: "DESC"
@@ -1215,12 +1215,12 @@ const Er = {
1215
1215
  n.create_time = $(n.create_time).format("YYYY-MM-DD HH:mm:ss"), n.update_time = $(n.update_time).format("YYYY-MM-DD HH:mm:ss");
1216
1216
  }), s;
1217
1217
  },
1218
- get: async (a, t) => await R.post(t)("/sql_snippet/get", {
1218
+ get: async (a, t) => await A.post(t)("/sql_snippet/get", {
1219
1219
  id: a
1220
1220
  }, {}),
1221
- create: async (a, t) => await R.post(t)("/sql_snippet/create", a, {}),
1222
- update: async (a, t) => await R.put(t)("/sql_snippet/update", a, {}),
1223
- delete: async (a, t) => R.post(t)("/sql_snippet/delete", {
1221
+ create: async (a, t) => await A.post(t)("/sql_snippet/create", a, {}),
1222
+ update: async (a, t) => await A.put(t)("/sql_snippet/update", a, {}),
1223
+ delete: async (a, t) => A.post(t)("/sql_snippet/delete", {
1224
1224
  id: a
1225
1225
  }, {})
1226
1226
  }, k = {
@@ -1275,7 +1275,7 @@ function Q({
1275
1275
  } = C();
1276
1276
  return /* @__PURE__ */ e.jsx(O, { type: "submit", color: "green", leftSection: /* @__PURE__ */ e.jsx(Vt, { size: 16 }), size: a, disabled: t, children: s("common.actions.submit") });
1277
1277
  }
1278
- const Rr = {
1278
+ const Ar = {
1279
1279
  translation: {
1280
1280
  datasource: {
1281
1281
  label: "Data Source",
@@ -1300,7 +1300,7 @@ const Rr = {
1300
1300
  cant_delete_preset: "This is a preset datasource, it can not be deleted"
1301
1301
  },
1302
1302
  http: {
1303
- base_url: "Base URL",
1303
+ host: "Host",
1304
1304
  processing: {
1305
1305
  pre: {
1306
1306
  label: "Pre processing of queries",
@@ -1407,7 +1407,7 @@ const Rr = {
1407
1407
  }
1408
1408
  }
1409
1409
  }
1410
- }, Ar = {
1410
+ }, Rr = {
1411
1411
  translation: {
1412
1412
  datasource: {
1413
1413
  label: "数据源",
@@ -1432,7 +1432,7 @@ const Rr = {
1432
1432
  cant_delete_preset: "这是预设数据源,不可删除"
1433
1433
  },
1434
1434
  http: {
1435
- base_url: "访问地址",
1435
+ host: "Host",
1436
1436
  processing: {
1437
1437
  pre: {
1438
1438
  label: "查询请求预处理",
@@ -1546,8 +1546,8 @@ const Rr = {
1546
1546
  escapeValue: !1
1547
1547
  },
1548
1548
  resources: {
1549
- en: Rr,
1550
- zh: Ar
1549
+ en: Ar,
1550
+ zh: Rr
1551
1551
  }
1552
1552
  }).use(Xn).use(Bn);
1553
1553
  it.init();
@@ -1580,7 +1580,7 @@ function ze(a, t) {
1580
1580
  config: i,
1581
1581
  ...l
1582
1582
  } = n;
1583
- return lr(i), kr(i.monacoPath), /* @__PURE__ */ e.jsx(An, { fallback: /* @__PURE__ */ e.jsx(On, { color: "gray" }), children: /* @__PURE__ */ e.jsx(Or, { lang: o, children: /* @__PURE__ */ e.jsx(t, { ...l }) }) });
1583
+ return lr(i), kr(i.monacoPath), /* @__PURE__ */ e.jsx(Rn, { fallback: /* @__PURE__ */ e.jsx(On, { color: "gray" }), children: /* @__PURE__ */ e.jsx(Or, { lang: o, children: /* @__PURE__ */ e.jsx(t, { ...l }) }) });
1584
1584
  };
1585
1585
  return s.displayName = `withEntry(${a})`, s;
1586
1586
  }
@@ -1690,7 +1690,7 @@ const Mr = ({
1690
1690
  ] })
1691
1691
  ] }) })
1692
1692
  ] });
1693
- }), Ae = {
1693
+ }), Re = {
1694
1694
  pre: ["function pre_process({ method, url, params, headers, data }, utils) {", " // your code goes here", " return { method, url, params, headers, data }", "}"].join(`
1695
1695
  `),
1696
1696
  post: ["function post_process(res, utils) {", " // your code goes here", " return data", "}"].join(`
@@ -1713,8 +1713,8 @@ function Fr({
1713
1713
  config: {
1714
1714
  host: "",
1715
1715
  processing: {
1716
- pre: Ae.pre,
1717
- post: Ae.post
1716
+ pre: Re.pre,
1717
+ post: Re.post
1718
1718
  }
1719
1719
  }
1720
1720
  }
@@ -1726,16 +1726,16 @@ function Fr({
1726
1726
  /* @__PURE__ */ e.jsx(Fe, { label: s("datasource.connection_info"), labelPosition: "center" }),
1727
1727
  /* @__PURE__ */ e.jsx(w, { name: "config.host", control: n, render: ({
1728
1728
  field: l
1729
- }) => /* @__PURE__ */ e.jsx(I, { mb: t.spacing, size: t.size, label: s("datasource.http.base_url"), sx: {
1729
+ }) => /* @__PURE__ */ e.jsx(I, { mb: t.spacing, size: t.size, required: !0, label: s("datasource.http.host"), sx: {
1730
1730
  flexGrow: 1
1731
1731
  }, ...l }) }),
1732
1732
  /* @__PURE__ */ e.jsxs(D, { grow: !0, children: [
1733
1733
  /* @__PURE__ */ e.jsx(w, { name: "config.processing.pre", control: n, render: ({
1734
1734
  field: l
1735
- }) => /* @__PURE__ */ e.jsx(Ie, { label: s("datasource.http.processing.pre.label"), modalTitle: s("datasource.http.processing.pre.description"), defaultValue: Ae.pre, ...l, styles: t }) }),
1735
+ }) => /* @__PURE__ */ e.jsx(Ie, { label: s("datasource.http.processing.pre.label"), modalTitle: s("datasource.http.processing.pre.description"), defaultValue: Re.pre, ...l, styles: t }) }),
1736
1736
  /* @__PURE__ */ e.jsx(w, { name: "config.processing.post", control: n, render: ({
1737
1737
  field: l
1738
- }) => /* @__PURE__ */ e.jsx(Ie, { label: s("datasource.http.processing.post.label"), modalTitle: s("datasource.http.processing.post.description"), defaultValue: Ae.post, ...l, styles: t }) })
1738
+ }) => /* @__PURE__ */ e.jsx(Ie, { label: s("datasource.http.processing.post.label"), modalTitle: s("datasource.http.processing.post.description"), defaultValue: Re.post, ...l, styles: t }) })
1739
1739
  ] }),
1740
1740
  /* @__PURE__ */ e.jsx(D, { justify: "flex-end", mt: t.spacing, children: /* @__PURE__ */ e.jsx(Q, { size: t.button.size }) })
1741
1741
  ] }) });
@@ -1915,7 +1915,7 @@ function Vr({
1915
1915
  /* @__PURE__ */ e.jsx(Fe, { label: o("datasource.connection_info"), labelPosition: "center" }),
1916
1916
  /* @__PURE__ */ e.jsx(w, { name: "config.host", control: i, render: ({
1917
1917
  field: c
1918
- }) => /* @__PURE__ */ e.jsx(I, { mb: n.spacing, size: n.size, label: o("datasource.http.base_url"), sx: {
1918
+ }) => /* @__PURE__ */ e.jsx(I, { mb: n.spacing, size: n.size, required: !0, label: o("datasource.http.host"), sx: {
1919
1919
  flexGrow: 1
1920
1920
  }, ...c }) }),
1921
1921
  /* @__PURE__ */ e.jsxs(D, { grow: !0, children: [
@@ -2022,23 +2022,23 @@ const Ca = ze("DataSourceList", ({
2022
2022
  position: "relative"
2023
2023
  }, children: [
2024
2024
  /* @__PURE__ */ e.jsx(qe, { visible: n }),
2025
- /* @__PURE__ */ e.jsxs(g, { horizontalSpacing: a.spacing, verticalSpacing: a.spacing, fz: a.size, highlightOnHover: !0, children: [
2026
- /* @__PURE__ */ e.jsx(g.Thead, { children: /* @__PURE__ */ e.jsxs(g.Tr, { children: [
2027
- /* @__PURE__ */ e.jsx(g.Th, { children: t("common.type") }),
2028
- /* @__PURE__ */ e.jsx(g.Th, { children: t("common.name") }),
2029
- /* @__PURE__ */ e.jsx(g.Th, { children: t("common.action") })
2025
+ /* @__PURE__ */ e.jsxs(h, { horizontalSpacing: a.spacing, verticalSpacing: a.spacing, fz: a.size, highlightOnHover: !0, children: [
2026
+ /* @__PURE__ */ e.jsx(h.Thead, { children: /* @__PURE__ */ e.jsxs(h.Tr, { children: [
2027
+ /* @__PURE__ */ e.jsx(h.Th, { children: t("common.type") }),
2028
+ /* @__PURE__ */ e.jsx(h.Th, { children: t("common.name") }),
2029
+ /* @__PURE__ */ e.jsx(h.Th, { children: t("common.action") })
2030
2030
  ] }) }),
2031
- /* @__PURE__ */ e.jsx(g.Tbody, { children: s.map((i) => {
2031
+ /* @__PURE__ */ e.jsx(h.Tbody, { children: s.map((i) => {
2032
2032
  const {
2033
2033
  id: l,
2034
2034
  key: c,
2035
2035
  type: d,
2036
2036
  is_preset: f
2037
2037
  } = i, m = d === "merico_metric_system";
2038
- return /* @__PURE__ */ e.jsxs(g.Tr, { children: [
2039
- /* @__PURE__ */ e.jsx(g.Td, { width: 230, children: /* @__PURE__ */ e.jsx(Hr, { type: d }) }),
2040
- /* @__PURE__ */ e.jsx(g.Td, { children: c }),
2041
- /* @__PURE__ */ e.jsx(g.Td, { width: 400, children: /* @__PURE__ */ e.jsxs(D, { justify: "flex-start", children: [
2038
+ return /* @__PURE__ */ e.jsxs(h.Tr, { children: [
2039
+ /* @__PURE__ */ e.jsx(h.Td, { width: 230, children: /* @__PURE__ */ e.jsx(Hr, { type: d }) }),
2040
+ /* @__PURE__ */ e.jsx(h.Td, { children: c }),
2041
+ /* @__PURE__ */ e.jsx(h.Td, { width: 400, children: /* @__PURE__ */ e.jsxs(D, { justify: "flex-start", children: [
2042
2042
  /* @__PURE__ */ e.jsx(Br, { dataSource: i, onSuccess: o, styles: a }),
2043
2043
  /* @__PURE__ */ e.jsx(Yr, { isProtected: f || m, id: l, name: c, onSuccess: o, styles: a })
2044
2044
  ] }) })
@@ -2383,25 +2383,25 @@ const Ta = ze("AccountList", ({
2383
2383
  position: "relative"
2384
2384
  }, children: [
2385
2385
  /* @__PURE__ */ e.jsx(qe, { visible: n || l }),
2386
- /* @__PURE__ */ e.jsxs(g, { horizontalSpacing: a.spacing, verticalSpacing: a.spacing, fz: a.size, highlightOnHover: !0, children: [
2387
- /* @__PURE__ */ e.jsx(g.Thead, { children: /* @__PURE__ */ e.jsxs(g.Tr, { children: [
2388
- /* @__PURE__ */ e.jsx(g.Th, { children: t("account.username") }),
2389
- /* @__PURE__ */ e.jsx(g.Th, { children: t("account.email") }),
2390
- /* @__PURE__ */ e.jsx(g.Th, { children: t("role.label") }),
2391
- /* @__PURE__ */ e.jsx(g.Th, { children: t("common.action") })
2386
+ /* @__PURE__ */ e.jsxs(h, { horizontalSpacing: a.spacing, verticalSpacing: a.spacing, fz: a.size, highlightOnHover: !0, children: [
2387
+ /* @__PURE__ */ e.jsx(h.Thead, { children: /* @__PURE__ */ e.jsxs(h.Tr, { children: [
2388
+ /* @__PURE__ */ e.jsx(h.Th, { children: t("account.username") }),
2389
+ /* @__PURE__ */ e.jsx(h.Th, { children: t("account.email") }),
2390
+ /* @__PURE__ */ e.jsx(h.Th, { children: t("role.label") }),
2391
+ /* @__PURE__ */ e.jsx(h.Th, { children: t("common.action") })
2392
2392
  ] }) }),
2393
- /* @__PURE__ */ e.jsx(g.Tbody, { children: s.map((d) => {
2393
+ /* @__PURE__ */ e.jsx(h.Tbody, { children: s.map((d) => {
2394
2394
  const {
2395
2395
  id: f,
2396
2396
  name: m,
2397
2397
  email: x,
2398
2398
  role_id: j
2399
2399
  } = d;
2400
- return /* @__PURE__ */ e.jsxs(g.Tr, { children: [
2401
- /* @__PURE__ */ e.jsx(g.Td, { width: 200, children: m }),
2402
- /* @__PURE__ */ e.jsx(g.Td, { width: 200, children: x }),
2403
- /* @__PURE__ */ e.jsx(g.Td, { width: 200, children: j }),
2404
- /* @__PURE__ */ e.jsx(g.Td, { width: 200, children: /* @__PURE__ */ e.jsxs(D, { justify: "flex-start", children: [
2400
+ return /* @__PURE__ */ e.jsxs(h.Tr, { children: [
2401
+ /* @__PURE__ */ e.jsx(h.Td, { width: 200, children: m }),
2402
+ /* @__PURE__ */ e.jsx(h.Td, { width: 200, children: x }),
2403
+ /* @__PURE__ */ e.jsx(h.Td, { width: 200, children: j }),
2404
+ /* @__PURE__ */ e.jsx(h.Td, { width: 200, children: /* @__PURE__ */ e.jsxs(D, { justify: "flex-start", children: [
2405
2405
  /* @__PURE__ */ e.jsx(Zr, { account: d, onSuccess: o }),
2406
2406
  /* @__PURE__ */ e.jsx(Qr, { id: f, name: m, onSuccess: o })
2407
2407
  ] }) })
@@ -2668,25 +2668,25 @@ const Da = ze("APIKeyList", ({
2668
2668
  position: "relative"
2669
2669
  }, children: [
2670
2670
  /* @__PURE__ */ e.jsx(qe, { visible: n || l }),
2671
- /* @__PURE__ */ e.jsxs(g, { horizontalSpacing: a.spacing, verticalSpacing: a.spacing, fz: a.size, highlightOnHover: !0, children: [
2672
- /* @__PURE__ */ e.jsx(g.Thead, { children: /* @__PURE__ */ e.jsxs(g.Tr, { children: [
2673
- /* @__PURE__ */ e.jsx(g.Th, { children: t("common.name") }),
2674
- /* @__PURE__ */ e.jsx(g.Th, { children: t("api_key.app_id") }),
2675
- /* @__PURE__ */ e.jsx(g.Th, { children: t("role.label") }),
2676
- /* @__PURE__ */ e.jsx(g.Th, { children: t("common.action") })
2671
+ /* @__PURE__ */ e.jsxs(h, { horizontalSpacing: a.spacing, verticalSpacing: a.spacing, fz: a.size, highlightOnHover: !0, children: [
2672
+ /* @__PURE__ */ e.jsx(h.Thead, { children: /* @__PURE__ */ e.jsxs(h.Tr, { children: [
2673
+ /* @__PURE__ */ e.jsx(h.Th, { children: t("common.name") }),
2674
+ /* @__PURE__ */ e.jsx(h.Th, { children: t("api_key.app_id") }),
2675
+ /* @__PURE__ */ e.jsx(h.Th, { children: t("role.label") }),
2676
+ /* @__PURE__ */ e.jsx(h.Th, { children: t("common.action") })
2677
2677
  ] }) }),
2678
- /* @__PURE__ */ e.jsx(g.Tbody, { children: s.map((d) => {
2678
+ /* @__PURE__ */ e.jsx(h.Tbody, { children: s.map((d) => {
2679
2679
  const {
2680
2680
  id: f,
2681
2681
  name: m,
2682
2682
  app_id: x,
2683
2683
  role_id: j
2684
2684
  } = d;
2685
- return /* @__PURE__ */ e.jsxs(g.Tr, { children: [
2686
- /* @__PURE__ */ e.jsx(g.Td, { width: 200, children: m }),
2687
- /* @__PURE__ */ e.jsx(g.Td, { width: 200, children: x }),
2688
- /* @__PURE__ */ e.jsx(g.Td, { width: 200, children: j }),
2689
- /* @__PURE__ */ e.jsx(g.Td, { width: 200, children: /* @__PURE__ */ e.jsx(D, { justify: "flex-start", children: /* @__PURE__ */ e.jsx(ra, { id: f, name: m, onSuccess: o }) }) })
2685
+ return /* @__PURE__ */ e.jsxs(h.Tr, { children: [
2686
+ /* @__PURE__ */ e.jsx(h.Td, { width: 200, children: m }),
2687
+ /* @__PURE__ */ e.jsx(h.Td, { width: 200, children: x }),
2688
+ /* @__PURE__ */ e.jsx(h.Td, { width: 200, children: j }),
2689
+ /* @__PURE__ */ e.jsx(h.Td, { width: 200, children: /* @__PURE__ */ e.jsx(D, { justify: "flex-start", children: /* @__PURE__ */ e.jsx(ra, { id: f, name: m, onSuccess: o }) }) })
2690
2690
  ] }, f);
2691
2691
  }) })
2692
2692
  ] })
@@ -2935,27 +2935,27 @@ const Ea = ze("DataSourceList", ({
2935
2935
  position: "relative"
2936
2936
  }, children: [
2937
2937
  /* @__PURE__ */ e.jsx(qe, { visible: n }),
2938
- /* @__PURE__ */ e.jsxs(g, { horizontalSpacing: a.spacing, verticalSpacing: a.spacing, fz: a.size, highlightOnHover: !0, children: [
2939
- /* @__PURE__ */ e.jsx(g.Thead, { children: /* @__PURE__ */ e.jsxs(g.Tr, { children: [
2940
- /* @__PURE__ */ e.jsx(g.Th, { children: t("common.name") }),
2941
- /* @__PURE__ */ e.jsx(g.Th, {}),
2942
- /* @__PURE__ */ e.jsx(g.Th, { children: t("common.created_at") }),
2943
- /* @__PURE__ */ e.jsx(g.Th, { children: t("common.updated_at") }),
2944
- /* @__PURE__ */ e.jsx(g.Th, { children: t("common.action") })
2938
+ /* @__PURE__ */ e.jsxs(h, { horizontalSpacing: a.spacing, verticalSpacing: a.spacing, fz: a.size, highlightOnHover: !0, children: [
2939
+ /* @__PURE__ */ e.jsx(h.Thead, { children: /* @__PURE__ */ e.jsxs(h.Tr, { children: [
2940
+ /* @__PURE__ */ e.jsx(h.Th, { children: t("common.name") }),
2941
+ /* @__PURE__ */ e.jsx(h.Th, {}),
2942
+ /* @__PURE__ */ e.jsx(h.Th, { children: t("common.created_at") }),
2943
+ /* @__PURE__ */ e.jsx(h.Th, { children: t("common.updated_at") }),
2944
+ /* @__PURE__ */ e.jsx(h.Th, { children: t("common.action") })
2945
2945
  ] }) }),
2946
- /* @__PURE__ */ e.jsx(g.Tbody, { children: s.map((i) => {
2946
+ /* @__PURE__ */ e.jsx(h.Tbody, { children: s.map((i) => {
2947
2947
  const {
2948
2948
  id: l,
2949
2949
  content: c,
2950
2950
  create_time: d,
2951
2951
  update_time: f
2952
2952
  } = i;
2953
- return /* @__PURE__ */ e.jsxs(g.Tr, { children: [
2954
- /* @__PURE__ */ e.jsx(g.Td, { children: l }),
2955
- /* @__PURE__ */ e.jsx(g.Td, { width: 50, children: /* @__PURE__ */ e.jsx(la, { content: c }) }),
2956
- /* @__PURE__ */ e.jsx(g.Td, { width: 200, children: d }),
2957
- /* @__PURE__ */ e.jsx(g.Td, { width: 200, children: f }),
2958
- /* @__PURE__ */ e.jsx(g.Td, { width: 400, children: /* @__PURE__ */ e.jsxs(D, { justify: "flex-start", children: [
2953
+ return /* @__PURE__ */ e.jsxs(h.Tr, { children: [
2954
+ /* @__PURE__ */ e.jsx(h.Td, { children: l }),
2955
+ /* @__PURE__ */ e.jsx(h.Td, { width: 50, children: /* @__PURE__ */ e.jsx(la, { content: c }) }),
2956
+ /* @__PURE__ */ e.jsx(h.Td, { width: 200, children: d }),
2957
+ /* @__PURE__ */ e.jsx(h.Td, { width: 200, children: f }),
2958
+ /* @__PURE__ */ e.jsx(h.Td, { width: 400, children: /* @__PURE__ */ e.jsxs(D, { justify: "flex-start", children: [
2959
2959
  /* @__PURE__ */ e.jsx(ia, { ...i, onSuccess: o }),
2960
2960
  /* @__PURE__ */ e.jsx(ca, { id: l, onSuccess: o })
2961
2961
  ] }) })
@@ -2964,11 +2964,11 @@ const Ea = ze("DataSourceList", ({
2964
2964
  ] })
2965
2965
  ] })
2966
2966
  ] });
2967
- }), Pa = () => import("./package-9e87daab.mjs").then(({
2967
+ }), Pa = () => import("./package-7e9fdd03.mjs").then(({
2968
2968
  version: a
2969
2969
  }) => (console.log(`[@devtable/settings-form] version: ${a}`), a));
2970
2970
  export {
2971
- R as APIClient,
2971
+ A as APIClient,
2972
2972
  Da as APIKeyList,
2973
2973
  Ta as AccountList,
2974
2974
  na as AddAPIKey,