@devtable/settings-form 14.3.5 → 14.4.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.
package/dist/settings-form.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
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
|
|
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";
|
|
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),
|
|
69
|
-
p[
|
|
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];
|
|
70
70
|
F("error", r, p);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
function F(r, u, p) {
|
|
74
74
|
{
|
|
75
|
-
var
|
|
75
|
+
var h = q.ReactDebugCurrentFrame, _ = h.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
|
|
94
|
-
if (
|
|
95
|
-
return
|
|
93
|
+
var h = r.displayName;
|
|
94
|
+
if (h)
|
|
95
|
+
return h;
|
|
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
|
|
135
|
-
return
|
|
134
|
+
var h = r.displayName || null;
|
|
135
|
+
return h !== null ? h : 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,
|
|
147
|
+
var ae = Object.assign, je = 0, mt, gt, ht, 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,
|
|
154
|
+
mt = console.log, gt = console.info, ht = 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:
|
|
187
|
+
value: gt
|
|
188
188
|
}),
|
|
189
189
|
warn: ae({}, r, {
|
|
190
|
-
value:
|
|
190
|
+
value: ht
|
|
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
|
|
217
|
-
Be =
|
|
216
|
+
var h = _.stack.trim().match(/\n( *(at )?)/);
|
|
217
|
+
Be = h && h[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
|
|
236
|
+
var h;
|
|
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
|
-
|
|
255
|
+
h = U;
|
|
256
256
|
}
|
|
257
257
|
Reflect.construct(r, [], b);
|
|
258
258
|
} else {
|
|
259
259
|
try {
|
|
260
260
|
b.call();
|
|
261
261
|
} catch (U) {
|
|
262
|
-
|
|
262
|
+
h = U;
|
|
263
263
|
}
|
|
264
264
|
r.call(b.prototype);
|
|
265
265
|
}
|
|
@@ -267,14 +267,14 @@ function rr() {
|
|
|
267
267
|
try {
|
|
268
268
|
throw Error();
|
|
269
269
|
} catch (U) {
|
|
270
|
-
|
|
270
|
+
h = U;
|
|
271
271
|
}
|
|
272
272
|
r();
|
|
273
273
|
}
|
|
274
274
|
} catch (U) {
|
|
275
|
-
if (U &&
|
|
275
|
+
if (U && h && typeof U.stack == "string") {
|
|
276
276
|
for (var v = U.stack.split(`
|
|
277
|
-
`), N =
|
|
277
|
+
`), N = h.stack.split(`
|
|
278
278
|
`), P = v.length - 1, A = N.length - 1; P >= 1 && A >= 0 && v[P] !== N[A]; )
|
|
279
279
|
A--;
|
|
280
280
|
for (; P >= 1 && A >= 0; P--, A--)
|
|
@@ -323,7 +323,7 @@ function rr() {
|
|
|
323
323
|
case x:
|
|
324
324
|
return Pe(r.type, u, p);
|
|
325
325
|
case j: {
|
|
326
|
-
var
|
|
326
|
+
var h = r, _ = h._payload, z = h._init;
|
|
327
327
|
try {
|
|
328
328
|
return Pe(z(_), u, p);
|
|
329
329
|
} catch {
|
|
@@ -340,7 +340,7 @@ function rr() {
|
|
|
340
340
|
} else
|
|
341
341
|
wt.setExtraStackFrame(null);
|
|
342
342
|
}
|
|
343
|
-
function dn(r, u, p,
|
|
343
|
+
function dn(r, u, p, h, _) {
|
|
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((
|
|
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`.");
|
|
352
352
|
throw N.name = "Invariant Violation", N;
|
|
353
353
|
}
|
|
354
|
-
v = r[b](u, b,
|
|
354
|
+
v = r[b](u, b, h, 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).",
|
|
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));
|
|
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
|
|
393
|
+
function gn(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
|
|
401
|
+
function hn(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,
|
|
437
|
+
var bn = function(r, u, p, h, _, 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:
|
|
458
|
+
value: h
|
|
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,
|
|
466
|
+
function _n(r, u, p, h, _) {
|
|
467
467
|
{
|
|
468
468
|
var z, b = {}, v = null, N = null;
|
|
469
|
-
p !== void 0 && (Tt(p), v = "" + p),
|
|
469
|
+
p !== void 0 && (Tt(p), v = "" + p), hn(u) && (Tt(u.key), v = "" + u.key), gn(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) {
|
|
@@ -478,7 +478,7 @@ function rr() {
|
|
|
478
478
|
var A = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
|
|
479
479
|
v && jn(b, A), N && vn(b, A);
|
|
480
480
|
}
|
|
481
|
-
return bn(r, v, N, _,
|
|
481
|
+
return bn(r, v, N, _, h, be.current, b);
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
484
|
var Qe = q.ReactCurrentOwner, Et = q.ReactDebugCurrentFrame;
|
|
@@ -539,8 +539,8 @@ Check the top-level render call using <` + p + ">.");
|
|
|
539
539
|
if (Rt[p])
|
|
540
540
|
return;
|
|
541
541
|
Rt[p] = !0;
|
|
542
|
-
var
|
|
543
|
-
r && r._owner && r._owner !== Qe.current && (
|
|
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);
|
|
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
|
|
553
|
-
Ze(
|
|
552
|
+
var h = r[p];
|
|
553
|
+
Ze(h) && At(h, u);
|
|
554
554
|
}
|
|
555
555
|
else if (Ze(r))
|
|
556
556
|
r._store && (r._store.validated = !0);
|
|
@@ -577,8 +577,8 @@ Check the top-level render call using <` + p + ">.");
|
|
|
577
577
|
else
|
|
578
578
|
return;
|
|
579
579
|
if (p) {
|
|
580
|
-
var
|
|
581
|
-
dn(p, r.props, "prop",
|
|
580
|
+
var h = B(u);
|
|
581
|
+
dn(p, r.props, "prop", h, 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
|
|
594
|
-
if (
|
|
595
|
-
de(r), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",
|
|
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);
|
|
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,
|
|
603
|
+
function kt(r, u, p, h, _, z) {
|
|
604
604
|
{
|
|
605
605
|
var b = nn(r);
|
|
606
606
|
if (!b) {
|
|
@@ -617,7 +617,7 @@ Check the top-level render call using <` + p + ">.");
|
|
|
617
617
|
if (b) {
|
|
618
618
|
var H = u.children;
|
|
619
619
|
if (H !== void 0)
|
|
620
|
-
if (
|
|
620
|
+
if (h)
|
|
621
621
|
if (Ge(H)) {
|
|
622
622
|
for (var ue = 0; ue < H.length; ue++)
|
|
623
623
|
Ot(H[ue], r);
|
|
@@ -866,7 +866,7 @@ const dr = {
|
|
|
866
866
|
}, pr = {
|
|
867
867
|
list: async () => await R.get()("/role/list", {}, {})
|
|
868
868
|
};
|
|
869
|
-
var Kt = 60, Gt = Kt * 60, Jt = Gt * 24, mr = Jt * 7,
|
|
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;
|
|
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:
|
|
898
|
+
D: ge,
|
|
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
|
|
1018
|
+
case ge:
|
|
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[
|
|
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;
|
|
1033
1033
|
if (l === W || l === te) {
|
|
1034
|
-
var m = this.clone().set(
|
|
1035
|
-
m.$d[d](f), m.init(), this.$d = m.set(
|
|
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;
|
|
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] =
|
|
1058
|
+
var f = (l = {}, l[pe] = rt, l[me] = Lt, l[fe] = he, 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) /
|
|
1146
|
+
j = (m - f) / hr;
|
|
1147
1147
|
break;
|
|
1148
1148
|
case ee:
|
|
1149
|
-
j = (m - f) /
|
|
1149
|
+
j = (m - f) / gr;
|
|
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 /
|
|
1158
|
+
j = m / he;
|
|
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",
|
|
1187
|
+
[["$ms", lt], ["$s", fe], ["$m", pe], ["$H", me], ["$W", ee], ["$M", W], ["$y", te], ["$D", ge]].forEach(function(a) {
|
|
1188
1188
|
Xt[a[1]] = function(t) {
|
|
1189
1189
|
return this.$g(t, a[0], a[1]);
|
|
1190
1190
|
};
|
|
@@ -1954,6 +1954,7 @@ function Wr({
|
|
|
1954
1954
|
title: n("common.state.successful"),
|
|
1955
1955
|
message: n("datasource.state.updated"),
|
|
1956
1956
|
color: "green",
|
|
1957
|
+
loading: !1,
|
|
1957
1958
|
autoClose: !0
|
|
1958
1959
|
}), t();
|
|
1959
1960
|
} catch (l) {
|
|
@@ -1962,6 +1963,7 @@ function Wr({
|
|
|
1962
1963
|
title: n("common.state.failed"),
|
|
1963
1964
|
message: l.message,
|
|
1964
1965
|
color: "red",
|
|
1966
|
+
loading: !1,
|
|
1965
1967
|
autoClose: !0
|
|
1966
1968
|
});
|
|
1967
1969
|
}
|
|
@@ -2020,23 +2022,23 @@ const Ca = ze("DataSourceList", ({
|
|
|
2020
2022
|
position: "relative"
|
|
2021
2023
|
}, children: [
|
|
2022
2024
|
/* @__PURE__ */ e.jsx(qe, { visible: n }),
|
|
2023
|
-
/* @__PURE__ */ e.jsxs(
|
|
2024
|
-
/* @__PURE__ */ e.jsx(
|
|
2025
|
-
/* @__PURE__ */ e.jsx(
|
|
2026
|
-
/* @__PURE__ */ e.jsx(
|
|
2027
|
-
/* @__PURE__ */ e.jsx(
|
|
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") })
|
|
2028
2030
|
] }) }),
|
|
2029
|
-
/* @__PURE__ */ e.jsx(
|
|
2031
|
+
/* @__PURE__ */ e.jsx(g.Tbody, { children: s.map((i) => {
|
|
2030
2032
|
const {
|
|
2031
2033
|
id: l,
|
|
2032
2034
|
key: c,
|
|
2033
2035
|
type: d,
|
|
2034
2036
|
is_preset: f
|
|
2035
2037
|
} = i, m = d === "merico_metric_system";
|
|
2036
|
-
return /* @__PURE__ */ e.jsxs(
|
|
2037
|
-
/* @__PURE__ */ e.jsx(
|
|
2038
|
-
/* @__PURE__ */ e.jsx(
|
|
2039
|
-
/* @__PURE__ */ e.jsx(
|
|
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: [
|
|
2040
2042
|
/* @__PURE__ */ e.jsx(Br, { dataSource: i, onSuccess: o, styles: a }),
|
|
2041
2043
|
/* @__PURE__ */ e.jsx(Yr, { isProtected: f || m, id: l, name: c, onSuccess: o, styles: a })
|
|
2042
2044
|
] }) })
|
|
@@ -2381,25 +2383,25 @@ const Ta = ze("AccountList", ({
|
|
|
2381
2383
|
position: "relative"
|
|
2382
2384
|
}, children: [
|
|
2383
2385
|
/* @__PURE__ */ e.jsx(qe, { visible: n || l }),
|
|
2384
|
-
/* @__PURE__ */ e.jsxs(
|
|
2385
|
-
/* @__PURE__ */ e.jsx(
|
|
2386
|
-
/* @__PURE__ */ e.jsx(
|
|
2387
|
-
/* @__PURE__ */ e.jsx(
|
|
2388
|
-
/* @__PURE__ */ e.jsx(
|
|
2389
|
-
/* @__PURE__ */ e.jsx(
|
|
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") })
|
|
2390
2392
|
] }) }),
|
|
2391
|
-
/* @__PURE__ */ e.jsx(
|
|
2393
|
+
/* @__PURE__ */ e.jsx(g.Tbody, { children: s.map((d) => {
|
|
2392
2394
|
const {
|
|
2393
2395
|
id: f,
|
|
2394
2396
|
name: m,
|
|
2395
2397
|
email: x,
|
|
2396
2398
|
role_id: j
|
|
2397
2399
|
} = d;
|
|
2398
|
-
return /* @__PURE__ */ e.jsxs(
|
|
2399
|
-
/* @__PURE__ */ e.jsx(
|
|
2400
|
-
/* @__PURE__ */ e.jsx(
|
|
2401
|
-
/* @__PURE__ */ e.jsx(
|
|
2402
|
-
/* @__PURE__ */ e.jsx(
|
|
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: [
|
|
2403
2405
|
/* @__PURE__ */ e.jsx(Zr, { account: d, onSuccess: o }),
|
|
2404
2406
|
/* @__PURE__ */ e.jsx(Qr, { id: f, name: m, onSuccess: o })
|
|
2405
2407
|
] }) })
|
|
@@ -2666,25 +2668,25 @@ const Da = ze("APIKeyList", ({
|
|
|
2666
2668
|
position: "relative"
|
|
2667
2669
|
}, children: [
|
|
2668
2670
|
/* @__PURE__ */ e.jsx(qe, { visible: n || l }),
|
|
2669
|
-
/* @__PURE__ */ e.jsxs(
|
|
2670
|
-
/* @__PURE__ */ e.jsx(
|
|
2671
|
-
/* @__PURE__ */ e.jsx(
|
|
2672
|
-
/* @__PURE__ */ e.jsx(
|
|
2673
|
-
/* @__PURE__ */ e.jsx(
|
|
2674
|
-
/* @__PURE__ */ e.jsx(
|
|
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") })
|
|
2675
2677
|
] }) }),
|
|
2676
|
-
/* @__PURE__ */ e.jsx(
|
|
2678
|
+
/* @__PURE__ */ e.jsx(g.Tbody, { children: s.map((d) => {
|
|
2677
2679
|
const {
|
|
2678
2680
|
id: f,
|
|
2679
2681
|
name: m,
|
|
2680
2682
|
app_id: x,
|
|
2681
2683
|
role_id: j
|
|
2682
2684
|
} = d;
|
|
2683
|
-
return /* @__PURE__ */ e.jsxs(
|
|
2684
|
-
/* @__PURE__ */ e.jsx(
|
|
2685
|
-
/* @__PURE__ */ e.jsx(
|
|
2686
|
-
/* @__PURE__ */ e.jsx(
|
|
2687
|
-
/* @__PURE__ */ e.jsx(
|
|
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 }) }) })
|
|
2688
2690
|
] }, f);
|
|
2689
2691
|
}) })
|
|
2690
2692
|
] })
|
|
@@ -2933,27 +2935,27 @@ const Ea = ze("DataSourceList", ({
|
|
|
2933
2935
|
position: "relative"
|
|
2934
2936
|
}, children: [
|
|
2935
2937
|
/* @__PURE__ */ e.jsx(qe, { visible: n }),
|
|
2936
|
-
/* @__PURE__ */ e.jsxs(
|
|
2937
|
-
/* @__PURE__ */ e.jsx(
|
|
2938
|
-
/* @__PURE__ */ e.jsx(
|
|
2939
|
-
/* @__PURE__ */ e.jsx(
|
|
2940
|
-
/* @__PURE__ */ e.jsx(
|
|
2941
|
-
/* @__PURE__ */ e.jsx(
|
|
2942
|
-
/* @__PURE__ */ e.jsx(
|
|
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") })
|
|
2943
2945
|
] }) }),
|
|
2944
|
-
/* @__PURE__ */ e.jsx(
|
|
2946
|
+
/* @__PURE__ */ e.jsx(g.Tbody, { children: s.map((i) => {
|
|
2945
2947
|
const {
|
|
2946
2948
|
id: l,
|
|
2947
2949
|
content: c,
|
|
2948
2950
|
create_time: d,
|
|
2949
2951
|
update_time: f
|
|
2950
2952
|
} = i;
|
|
2951
|
-
return /* @__PURE__ */ e.jsxs(
|
|
2952
|
-
/* @__PURE__ */ e.jsx(
|
|
2953
|
-
/* @__PURE__ */ e.jsx(
|
|
2954
|
-
/* @__PURE__ */ e.jsx(
|
|
2955
|
-
/* @__PURE__ */ e.jsx(
|
|
2956
|
-
/* @__PURE__ */ e.jsx(
|
|
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: [
|
|
2957
2959
|
/* @__PURE__ */ e.jsx(ia, { ...i, onSuccess: o }),
|
|
2958
2960
|
/* @__PURE__ */ e.jsx(ca, { id: l, onSuccess: o })
|
|
2959
2961
|
] }) })
|
|
@@ -2962,7 +2964,7 @@ const Ea = ze("DataSourceList", ({
|
|
|
2962
2964
|
] })
|
|
2963
2965
|
] })
|
|
2964
2966
|
] });
|
|
2965
|
-
}), Pa = () => import("./package-
|
|
2967
|
+
}), Pa = () => import("./package-cb6f8079.mjs").then(({
|
|
2966
2968
|
version: a
|
|
2967
2969
|
}) => (console.log(`[@devtable/settings-form] version: ${a}`), a));
|
|
2968
2970
|
export {
|
|
@@ -33,4 +33,4 @@ React keys must be passed directly to JSX without using spread:
|
|
|
33
33
|
`),post:["function post_process(res, utils) {"," // your code goes here"," return data","}"].join(`
|
|
34
34
|
`)};function En({submit:r,styles:t=V}){const{t:s}=y.useTranslation(),{control:n,setValue:i,handleSubmit:l}=j.useForm({defaultValues:{type:"http",key:"",config:{host:"",processing:{pre:Ce.pre,post:Ce.post}}}});return e.jsx(o.Box,{mx:"auto",children:e.jsxs("form",{onSubmit:l(r),children:[e.jsx(j.Controller,{name:"key",control:n,render:({field:c})=>e.jsx(o.TextInput,{mb:t.spacing,size:t.size,required:!0,label:s("common.name"),placeholder:s("common.name_placeholder"),...c})}),e.jsx(o.Divider,{label:s("datasource.connection_info"),labelPosition:"center"}),e.jsx(j.Controller,{name:"config.host",control:n,render:({field:c})=>e.jsx(o.TextInput,{mb:t.spacing,size:t.size,label:s("datasource.http.base_url"),sx:{flexGrow:1},...c})}),e.jsxs(o.Group,{grow:!0,children:[e.jsx(j.Controller,{name:"config.processing.pre",control:n,render:({field:c})=>e.jsx(we,{label:s("datasource.http.processing.pre.label"),modalTitle:s("datasource.http.processing.pre.description"),defaultValue:Ce.pre,...c,styles:t})}),e.jsx(j.Controller,{name:"config.processing.post",control:n,render:({field:c})=>e.jsx(we,{label:s("datasource.http.processing.post.label"),modalTitle:s("datasource.http.processing.post.description"),defaultValue:Ce.post,...c,styles:t})})]}),e.jsx(o.Group,{justify:"flex-end",mt:t.spacing,children:e.jsx(W,{size:t.button.size})})]})})}function An({postSubmit:r,styles:t=V}){const{t:s}=y.useTranslation(),[n,i]=P.useState("postgresql"),l=async({type:p,key:h,config:b})=>{T.showNotification({id:"for-creating",title:s("common.state.pending"),message:s("datasource.state.adding"),loading:!0,autoClose:!1});try{console.log({type:p,key:h,config:b}),await R.datasource.create(p,h,b),T.updateNotification({id:"for-creating",title:s("common.state.successful"),message:s("datasource.state.added"),color:"green",autoClose:!0}),r()}catch(v){console.error(v),T.updateNotification({id:"for-creating",title:s("common.state.failed"),message:v.message,color:"red",autoClose:!0})}},c=p=>{i(p)},u=n==="postgresql"||n==="mysql",d=n==="http";return e.jsxs(o.Box,{mx:"auto",children:[e.jsx(o.SegmentedControl,{fullWidth:!0,mb:t.spacing,size:t.size,data:[{label:"PostgreSQL",value:"postgresql"},{label:"MySQL",value:"mysql"},{label:"HTTP",value:"http"}],value:n,onChange:c}),u&&e.jsx(_n,{styles:t}),u&&e.jsx(Dn,{submit:l,styles:t,type:n}),d&&e.jsx(En,{submit:l,styles:t})]})}function ct({onSuccess:r,styles:t=V}){const{t:s}=y.useTranslation(),[n,i]=P.useState(!1),l=()=>i(!0),c=()=>i(!1),u=()=>{r(),c()};return e.jsxs(e.Fragment,{children:[e.jsx(o.Modal,{opened:n,onClose:()=>i(!1),title:s("datasource.add"),trapFocus:!0,onDragStart:d=>{d.stopPropagation()},children:e.jsx(An,{postSubmit:u,styles:t})}),e.jsx(o.Button,{size:t.button.size,onClick:l,leftSection:e.jsx(A.IconPlaylistAdd,{size:20}),children:s("datasource.add")})]})}const Pn={http:"HTTP",mysql:"MySQL",postgresql:"PostgreSQL",merico_metric_system:"Merico Metric System"},On={http:e.jsx(A.IconNetwork,{}),mysql:e.jsx(A.IconBrandMysql,{}),postgresql:e.jsx(A.IconDatabase,{}),merico_metric_system:e.jsx(A.IconTopologyRing3,{})};function $n({type:r}){return e.jsxs(o.Group,{children:[e.jsx(o.ActionIcon,{variant:"subtle",size:"xs",sx:{transform:"none !important"},children:On[r]}),e.jsx(o.Text,{sx:{cusor:"default",userSelect:"none"},children:Pn[r]})]})}function dt({id:r,name:t,isProtected:s,onSuccess:n,styles:i=V}){const{t:l}=y.useTranslation(),c=ae.useModals(),u=async()=>{r&&(T.showNotification({id:"for-deleting",title:l("common.state.pending"),message:l("datasource.state.deleting"),loading:!0,autoClose:!1}),await R.datasource.delete(r),T.updateNotification({id:"for-deleting",title:l("common.state.successful"),message:l("datasource.state.deleted",{name:t}),color:"green",autoClose:!0}),n())},d=()=>c.openConfirmModal({title:l("datasource.delete.title"),children:e.jsx(o.Text,{size:i.size,children:l("datasource.delete.hint")}),labels:{confirm:l("common.actions.confirm"),cancel:l("common.actions.cancel")},onCancel:()=>console.log("Cancel"),onConfirm:u,cancelProps:{size:i.button.size},confirmProps:{color:"red",size:i.button.size}});return s?e.jsx(o.Tooltip,{withArrow:!0,events:{hover:!0,touch:!1,focus:!1},label:l("datasource.delete.cant_delete_preset"),children:e.jsx(o.Button,{size:i.button.size,color:"gray",variant:"light",leftSection:e.jsx(A.IconLock,{size:16}),sx:{transform:"none !important"},children:l("common.actions.delete")})}):e.jsx(o.Button,{size:i.button.size,color:"red",onClick:d,leftSection:e.jsx(A.IconTrash,{size:16}),children:l("common.actions.delete")})}const ft={pre:["function pre_process({ method, url, params, headers, data }, utils) {"," // your code goes here"," return { method, url, params, headers, data }","}"].join(`
|
|
35
35
|
`),post:["function post_process(resp, utils) {"," return resp.data","}"].join(`
|
|
36
|
-
`)};function Mn({name:r,config:t,submit:s,styles:n=V}){const{t:i}=y.useTranslation(),{control:l,handleSubmit:c}=j.useForm({defaultValues:{config:t}});return e.jsx(o.Box,{mx:"auto",children:e.jsxs("form",{onSubmit:c(s),children:[e.jsx(o.TextInput,{mb:n.spacing,size:n.size,required:!0,label:i("common.name"),value:r,readOnly:!0}),e.jsx(o.Divider,{label:i("datasource.connection_info"),labelPosition:"center"}),e.jsx(j.Controller,{name:"config.host",control:l,render:({field:u})=>e.jsx(o.TextInput,{mb:n.spacing,size:n.size,label:i("datasource.http.base_url"),sx:{flexGrow:1},...u})}),e.jsxs(o.Group,{grow:!0,children:[e.jsx(j.Controller,{name:"config.processing.pre",control:l,render:({field:u})=>e.jsx(we,{label:i("datasource.http.processing.pre.label"),modalTitle:i("datasource.http.processing.pre.description"),defaultValue:ft.pre,...u,styles:n})}),e.jsx(j.Controller,{name:"config.processing.post",control:l,render:({field:u})=>e.jsx(we,{label:i("datasource.http.processing.post.label"),modalTitle:i("datasource.http.processing.post.description"),defaultValue:ft.post,...u,styles:n})})]}),e.jsx(o.Group,{justify:"flex-end",mt:n.spacing,children:e.jsx(W,{size:n.button.size})})]})})}function In({dataSource:r,postSubmit:t,styles:s=V}){const{t:n}=y.useTranslation(),i=async({config:l})=>{T.showNotification({id:"for-updating",title:n("common.state.pending"),message:n("datasource.state.updating"),loading:!0,autoClose:!1});try{console.log({config:l}),await R.datasource.update(r.id,l),T.updateNotification({id:"for-updating",title:n("common.state.successful"),message:n("datasource.state.updated"),color:"green",autoClose:!0}),t()}catch(c){T.updateNotification({id:"for-updating",title:n("common.state.failed"),message:c.message,color:"red",autoClose:!0})}};return r.config?e.jsx(o.Box,{mx:"auto",children:e.jsx(Mn,{name:r.key,config:r.config,submit:i,styles:s})}):(console.error(new Error("unexpected empty config of a http datasource")),null)}function Rn({dataSource:r,onSuccess:t,styles:s=V}){const{t:n}=y.useTranslation(),[i,l]=P.useState(!1),c=()=>l(!0),u=()=>l(!1),d=()=>{t(),u()};return r.is_preset?e.jsx(o.Tooltip,{withArrow:!0,events:{hover:!0,touch:!1,focus:!1},label:n("datasource.cant_edit.preset"),children:e.jsx(o.Button,{size:s.button.size,color:"gray",variant:"light",leftSection:e.jsx(A.IconLock,{size:16}),sx:{transform:"none !important"},children:n("common.actions.edit")})}):r.type!=="http"&&r.type!=="merico_metric_system"?e.jsx(o.Tooltip,{withArrow:!0,events:{hover:!0,touch:!1,focus:!1},label:n("datasource.cant_edit.db"),children:e.jsx(o.Button,{size:s.button.size,color:"gray",variant:"light",leftSection:e.jsx(A.IconEdit,{size:16}),sx:{transform:"none !important"},children:n("common.actions.edit")})}):e.jsxs(e.Fragment,{children:[e.jsx(o.Modal,{opened:i,onClose:()=>l(!1),title:n("datasource.edit"),trapFocus:!0,onDragStart:p=>{p.stopPropagation()},children:e.jsx(In,{dataSource:r,postSubmit:d,styles:s})}),e.jsx(o.Button,{size:s.button.size,color:"blue",onClick:c,leftSection:e.jsx(A.IconEdit,{size:16}),children:n("common.actions.edit")})]})}const Ln=be("DataSourceList",({styles:r=V})=>{const{t}=y.useTranslation(),{data:s=[],loading:n,refresh:i}=K.useRequest(async()=>{const{data:l}=await R.datasource.list();return l},{refreshDeps:[]});return e.jsxs(e.Fragment,{children:[e.jsx(o.Group,{pt:r.spacing,justify:"flex-end",children:e.jsx(ct,{onSuccess:i})}),e.jsxs(o.Box,{mt:r.spacing,sx:{position:"relative"},children:[e.jsx(o.LoadingOverlay,{visible:n}),e.jsxs(o.Table,{horizontalSpacing:r.spacing,verticalSpacing:r.spacing,fz:r.size,highlightOnHover:!0,children:[e.jsx(o.Table.Thead,{children:e.jsxs(o.Table.Tr,{children:[e.jsx(o.Table.Th,{children:t("common.type")}),e.jsx(o.Table.Th,{children:t("common.name")}),e.jsx(o.Table.Th,{children:t("common.action")})]})}),e.jsx(o.Table.Tbody,{children:s.map(l=>{const{id:c,key:u,type:d,is_preset:p}=l,h=d==="merico_metric_system";return e.jsxs(o.Table.Tr,{children:[e.jsx(o.Table.Td,{width:230,children:e.jsx($n,{type:d})}),e.jsx(o.Table.Td,{children:u}),e.jsx(o.Table.Td,{width:400,children:e.jsxs(o.Group,{justify:"flex-start",children:[e.jsx(Rn,{dataSource:l,onSuccess:i,styles:r}),e.jsx(dt,{isProtected:p||h,id:c,name:u,onSuccess:i,styles:r})]})})]},u)})})]})]})]})}),qn=({option:r,...t})=>{const{label:s,value:n,description:i}=r;return e.jsxs(o.Stack,{gap:2,...t,children:[e.jsx(o.Text,{size:"sm",children:s}),e.jsx(o.Text,{size:"xs",c:"dimmed",className:"role-description",children:i})]})},qe=P.forwardRef(({styles:r,value:t,onChange:s},n)=>{const{t:i}=y.useTranslation(),{data:l=[],loading:c}=K.useRequest(async()=>(await R.role.list()).map(d=>({label:d.id,value:d.id,description:d.description,disabled:d.id==="SUPERADMIN"})),{refreshDeps:[]});return e.jsx(o.Select,{ref:n,mb:r.spacing,size:r.size,required:!0,label:i("role.label"),renderOption:qn,data:l,disabled:c,styles:()=>({item:{"&[data-selected]":{"&, &:hover":{".role-description":{color:"rgba(255,255,255,.8)"}}}}}),value:t,onChange:u=>u!==null&&s(u),comboboxProps:{withinPortal:!0},maxDropdownHeight:500})}),H={size:"sm",spacing:"md",button:{size:"xs"}};function kn({postSubmit:r,styles:t=H,initialRoleID:s}){const{t:n}=y.useTranslation(),{control:i,handleSubmit:l}=j.useForm({defaultValues:{name:"",email:"",role_id:s,password:""}}),c=async({name:u,email:d,password:p,role_id:h})=>{try{T.showNotification({id:"for-creating",title:n("common.state.pending"),message:n("account.state.adding"),loading:!0,autoClose:!1}),await R.account.create(u,d,p,h),T.updateNotification({id:"for-creating",title:n("common.state.successful"),message:n("account.state.added"),color:"green",autoClose:!0,loading:!1}),r()}catch(b){T.updateNotification({id:"for-creating",title:n("common.state.failed"),message:b.message,color:"red",autoClose:!0,loading:!1})}};return e.jsx(o.Box,{mx:"auto",mb:10,children:e.jsxs("form",{onSubmit:l(c),children:[e.jsx(j.Controller,{name:"name",control:i,render:({field:u})=>e.jsx(o.TextInput,{mb:t.spacing,size:t.size,required:!0,label:n("account.username"),...u})}),e.jsx(j.Controller,{name:"email",control:i,render:({field:u})=>e.jsx(o.TextInput,{mb:t.spacing,size:t.size,required:!0,label:n("account.email"),...u})}),e.jsx(j.Controller,{name:"password",control:i,render:({field:u})=>e.jsx(o.PasswordInput,{mb:t.spacing,size:t.size,required:!0,label:n("account.password"),description:n("account.password_hint"),...u})}),e.jsx(j.Controller,{name:"role_id",control:i,render:({field:u})=>e.jsx(qe,{styles:t,...u})}),e.jsx(o.Group,{justify:"flex-end",mt:t.spacing,children:e.jsx(W,{size:t.button.size})})]})})}function pt({onSuccess:r,styles:t=H,initialRoleID:s}){const{t:n}=y.useTranslation(),[i,l]=P.useState(!1),c=()=>l(!0),u=()=>l(!1),d=()=>{r(),u()};return e.jsxs(e.Fragment,{children:[e.jsx(o.Modal,{opened:i,onClose:()=>l(!1),title:n("account.add"),trapFocus:!0,onDragStart:p=>{p.stopPropagation()},children:e.jsx(kn,{postSubmit:d,styles:t,initialRoleID:s})}),e.jsx(o.Button,{size:t.button.size,onClick:c,leftSection:e.jsx(A.IconPlaylistAdd,{size:20}),children:n("account.add")})]})}function mt({id:r,name:t,onSuccess:s,styles:n=H}){const{t:i}=y.useTranslation(),l=ae.useModals(),c=async()=>{if(r){T.showNotification({id:"for-deleting",title:i("common.state.pending"),message:i("account.state.deleting"),loading:!0,autoClose:!1});try{await R.account.delete(r),T.updateNotification({id:"for-deleting",title:i("common.state.successful"),message:i("account.state.deleted",{name:t}),color:"green",autoClose:!0,loading:!1}),s()}catch(d){T.updateNotification({id:"for-deleting",title:i("common.state.failed"),message:d.message,color:"red",autoClose:!0,loading:!1})}}},u=()=>l.openConfirmModal({title:i("account.delete"),labels:{confirm:i("common.actions.confirm"),cancel:i("common.actions.cancel")},onCancel:()=>console.log("Cancel"),onConfirm:c,cancelProps:{size:n.button.size},confirmProps:{color:"red",size:n.button.size}});return e.jsx(o.Button,{size:n.button.size,color:"red",onClick:u,leftSection:e.jsx(A.IconTrash,{size:20}),children:i("common.actions.delete")})}function Nn({id:r,name:t,email:s,role_id:n,postSubmit:i,styles:l=H}){const{t:c}=y.useTranslation(),{control:u,handleSubmit:d,watch:p}=j.useForm({defaultValues:{name:t,email:s,role_id:n,reset_password:!1,new_password:""}}),h=async({name:C,email:q,role_id:Y,reset_password:X,new_password:k})=>{try{T.showNotification({id:"for-updating",title:c("common.state.pending"),message:c("account.state.updating"),loading:!0,autoClose:!1}),await R.account.edit({id:r,name:C.trim(),email:q.trim(),role_id:Y,reset_password:X,new_password:k.trim()}),T.updateNotification({id:"for-updating",title:c("common.state.successful"),message:c("account.state.updated"),color:"green",autoClose:!0,loading:!1}),i()}catch(D){T.updateNotification({id:"for-updating",title:c("common.state.failed"),message:D.message,color:"red",autoClose:!0,loading:!1})}},[b,v]=p(["reset_password","new_password"]);return e.jsx(o.Box,{mx:"auto",mb:10,children:e.jsxs("form",{onSubmit:d(h),children:[e.jsx(j.Controller,{name:"name",control:u,render:({field:C})=>e.jsx(o.TextInput,{mb:l.spacing,size:l.size,required:!0,label:c("account.username"),...C})}),e.jsx(j.Controller,{name:"email",control:u,render:({field:C})=>e.jsx(o.TextInput,{mb:l.spacing,size:l.size,required:!0,label:c("account.email"),...C})}),e.jsx(j.Controller,{name:"role_id",control:u,render:({field:C})=>e.jsx(qe,{styles:l,...C})}),e.jsx(o.Divider,{my:20,variant:"dashed",label:"",labelPosition:"center"}),e.jsx(j.Controller,{name:"reset_password",control:u,render:({field:C})=>e.jsx(o.Switch,{mb:l.spacing,size:l.size,label:c("account.reset_password"),checked:C.value,onChange:q=>C.onChange(q.currentTarget.checked),styles:{label:{verticalAlign:"middle"}}})}),b&&e.jsx(j.Controller,{name:"new_password",control:u,render:({field:C})=>e.jsx(o.PasswordInput,{autoComplete:"off",mb:l.spacing,size:l.size,required:!0,description:c("account.password_hint"),label:c("account.new_password"),...C})}),e.jsx(o.Group,{justify:"flex-end",mt:l.spacing,children:e.jsx(W,{size:l.button.size})})]})})}function Fn({account:r,onSuccess:t,styles:s=H}){const{t:n}=y.useTranslation(),[i,l]=P.useState(!1),c=()=>l(!0),u=()=>l(!1),d=()=>{t(),u()};return e.jsxs(e.Fragment,{children:[e.jsx(o.Modal,{opened:i,onClose:()=>l(!1),title:n("account.editing_xx",{name:r.name}),trapFocus:!0,onDragStart:p=>{p.stopPropagation()},children:e.jsx(Nn,{...r,postSubmit:d,styles:s})}),e.jsx(o.Button,{size:s.button.size,onClick:c,leftSection:e.jsx(A.IconEdit,{size:20}),children:n("common.actions.edit")})]})}const Bn=be("AccountList",({styles:r=H})=>{var u;const{t}=y.useTranslation(),{data:s=[],loading:n,refresh:i}=K.useRequest(async()=>{const{data:d}=await R.account.list();return d},{refreshDeps:[]}),{data:l=[],loading:c}=K.useRequest(async()=>(await R.role.list()).map(p=>({label:p.id,value:p.id,description:p.description,disabled:p.id==="SUPERADMIN"})),{refreshDeps:[]});return e.jsxs(e.Fragment,{children:[e.jsx(o.Group,{pt:r.spacing,justify:"flex-end",children:e.jsx(pt,{onSuccess:i,initialRoleID:((u=l==null?void 0:l[0])==null?void 0:u.value)??"INACTIVE"})}),e.jsxs(o.Box,{mt:r.spacing,sx:{position:"relative"},children:[e.jsx(o.LoadingOverlay,{visible:n||c}),e.jsxs(o.Table,{horizontalSpacing:r.spacing,verticalSpacing:r.spacing,fz:r.size,highlightOnHover:!0,children:[e.jsx(o.Table.Thead,{children:e.jsxs(o.Table.Tr,{children:[e.jsx(o.Table.Th,{children:t("account.username")}),e.jsx(o.Table.Th,{children:t("account.email")}),e.jsx(o.Table.Th,{children:t("role.label")}),e.jsx(o.Table.Th,{children:t("common.action")})]})}),e.jsx(o.Table.Tbody,{children:s.map(d=>{const{id:p,name:h,email:b,role_id:v}=d;return e.jsxs(o.Table.Tr,{children:[e.jsx(o.Table.Td,{width:200,children:h}),e.jsx(o.Table.Td,{width:200,children:b}),e.jsx(o.Table.Td,{width:200,children:v}),e.jsx(o.Table.Td,{width:200,children:e.jsxs(o.Group,{justify:"flex-start",children:[e.jsx(Fn,{account:d,onSuccess:i}),e.jsx(mt,{id:p,name:h,onSuccess:i})]})})]},p)})})]})]})]})});function Un({postSubmit:r,styles:t=H}){const{t:s}=y.useTranslation(),{control:n,handleSubmit:i}=j.useForm({defaultValues:{name:"",password:""}}),l=async({name:c,password:u})=>{try{T.showNotification({id:"for-login",title:s("common.state.pending"),message:s("account.state.logging_in"),loading:!0,autoClose:!1});const d=await R.account.login(c.trim(),u.trim());window.localStorage.setItem("token",d.token),T.updateNotification({id:"for-login",title:s("common.state.successful"),message:s("account.state.logged_in"),color:"green",autoClose:!0,loading:!1}),r(d)}catch(d){T.updateNotification({id:"for-login",title:s("common.state.failed"),message:d.message,color:"red",autoClose:!0,loading:!1})}};return e.jsx(o.Box,{mx:"auto",children:e.jsxs("form",{onSubmit:i(l),children:[e.jsx(j.Controller,{name:"name",control:n,render:({field:c})=>e.jsx(o.TextInput,{mb:t.spacing,size:t.size,required:!0,label:s("account.username"),...c})}),e.jsx(j.Controller,{name:"password",control:n,render:({field:c})=>e.jsx(o.PasswordInput,{mb:t.spacing,size:t.size,required:!0,label:s("account.password"),...c})}),e.jsx(o.Group,{justify:"flex-end",mt:t.spacing,children:e.jsx(W,{size:t.button.size})})]})})}const Yn=be("Login",({styles:r=H,onSuccess:t})=>e.jsx(e.Fragment,{children:e.jsx(o.Box,{mt:r.spacing,sx:{position:"relative"},children:e.jsx(Un,{styles:r,postSubmit:t})})})),De={size:"sm",spacing:"md",button:{size:"xs"}};function Vn({postSubmit:r,styles:t=De,initialRoleID:s}){const{t:n}=y.useTranslation(),{control:i,handleSubmit:l}=j.useForm({defaultValues:{name:"",role_id:s}}),c=async({name:u,role_id:d})=>{try{T.showNotification({id:"for-creating",title:n("common.state.pending"),message:n("api_key.state.adding"),loading:!0,autoClose:!1});const{app_id:p,app_secret:h}=await R.api_key.create(u,d);T.updateNotification({id:"for-creating",title:n("common.state.successful"),message:n("api_key.state.added"),color:"green",autoClose:!0,loading:!1}),r(p,h)}catch(p){T.updateNotification({id:"for-creating",title:n("common.state.failed"),message:p.message,color:"red",autoClose:!0,loading:!1})}};return e.jsx(o.Box,{mx:"auto",mb:10,children:e.jsxs("form",{onSubmit:l(c),children:[e.jsx(j.Controller,{name:"name",control:i,render:({field:u})=>e.jsx(o.TextInput,{mb:t.spacing,size:t.size,required:!0,label:n("common.name"),...u})}),e.jsx(j.Controller,{name:"role_id",control:i,render:({field:u})=>e.jsx(qe,{styles:t,...u})}),e.jsx(o.Group,{justify:"flex-end",mt:t.spacing,children:e.jsx(W,{size:t.button.size})})]})})}function ht({onSuccess:r,styles:t=De,initialRoleID:s}){const{t:n}=y.useTranslation(),i=ae.useModals(),[l,c]=P.useState(!1),u=()=>c(!0),d=()=>c(!1),p=(h,b)=>{d(),i.openModal({title:n("api_key.save.title"),children:e.jsxs(o.Stack,{children:[e.jsx(o.Text,{size:"sm",c:"dimmed",children:n("api_key.save.warn")}),e.jsx(o.TextInput,{defaultValue:h,disabled:!0,label:n("api_key.app_id"),styles:{input:{cursor:"text !important"}}}),e.jsx(o.TextInput,{defaultValue:b,disabled:!0,label:n("api_key.app_secret"),styles:{input:{cursor:"text !important"}}}),e.jsx(o.Button,{size:"sm",onClick:()=>{ae.closeAllModals()},children:n("api_key.save.saved")})]}),onClose:()=>{r()}})};return e.jsxs(e.Fragment,{children:[e.jsx(o.Modal,{opened:l,onClose:()=>c(!1),title:n("api_key.add"),trapFocus:!0,onDragStart:h=>{h.stopPropagation()},children:e.jsx(Vn,{postSubmit:p,styles:t,initialRoleID:s})}),e.jsx(o.Button,{size:t.button.size,onClick:u,leftSection:e.jsx(A.IconPlaylistAdd,{size:20}),children:n("api_key.add")})]})}function gt({id:r,name:t,onSuccess:s,styles:n=De}){const{t:i}=y.useTranslation(),l=ae.useModals(),c=async()=>{if(r){T.showNotification({id:"for-deleting",title:i("common.state.pending"),message:i("global_sql_snippet.state.deleting"),loading:!0,autoClose:!1});try{await R.api_key.delete(r),T.updateNotification({id:"for-deleting",title:i("common.state.successful"),message:i("global_sql_snippet.state.deleted",{name:t}),color:"green",autoClose:!0,loading:!1}),s()}catch(d){T.updateNotification({id:"for-deleting",title:i("common.state.failed"),message:d.message,color:"red",autoClose:!0,loading:!1})}}},u=()=>l.openConfirmModal({title:i("api_key.delete"),labels:{confirm:i("common.actions.confirm"),cancel:i("common.actions.cancel")},onCancel:()=>console.log("Cancel"),onConfirm:c,cancelProps:{size:n.button.size},confirmProps:{color:"red",size:n.button.size}});return e.jsx(o.Button,{size:n.button.size,color:"red",onClick:u,leftSection:e.jsx(A.IconTrash,{size:20}),children:i("common.actions.delete")})}const Gn=be("APIKeyList",({styles:r=De})=>{var u;const{t}=y.useTranslation(),{data:s=[],loading:n,refresh:i}=K.useRequest(async()=>{const{data:d}=await R.api_key.list();return d},{refreshDeps:[]}),{data:l=[],loading:c}=K.useRequest(async()=>(await R.role.list()).map(p=>({label:p.id,value:p.id,description:p.description,disabled:p.id==="SUPERADMIN"})),{refreshDeps:[]});return e.jsxs(e.Fragment,{children:[e.jsx(o.Group,{pt:r.spacing,justify:"flex-end",children:e.jsx(ht,{onSuccess:i,initialRoleID:((u=l==null?void 0:l[0])==null?void 0:u.value)??"INACTIVE"})}),e.jsxs(o.Box,{mt:r.spacing,sx:{position:"relative"},children:[e.jsx(o.LoadingOverlay,{visible:n||c}),e.jsxs(o.Table,{horizontalSpacing:r.spacing,verticalSpacing:r.spacing,fz:r.size,highlightOnHover:!0,children:[e.jsx(o.Table.Thead,{children:e.jsxs(o.Table.Tr,{children:[e.jsx(o.Table.Th,{children:t("common.name")}),e.jsx(o.Table.Th,{children:t("api_key.app_id")}),e.jsx(o.Table.Th,{children:t("role.label")}),e.jsx(o.Table.Th,{children:t("common.action")})]})}),e.jsx(o.Table.Tbody,{children:s.map(d=>{const{id:p,name:h,app_id:b,role_id:v}=d;return e.jsxs(o.Table.Tr,{children:[e.jsx(o.Table.Td,{width:200,children:h}),e.jsx(o.Table.Td,{width:200,children:b}),e.jsx(o.Table.Td,{width:200,children:v}),e.jsx(o.Table.Td,{width:200,children:e.jsx(o.Group,{justify:"flex-start",children:e.jsx(gt,{id:p,name:h,onSuccess:i})})})]},p)})})]})]})]})}),ue={size:"sm",spacing:"md",button:{size:"xs"}};function Wn({postSubmit:r,styles:t=ue}){const{t:s}=y.useTranslation(),{control:n,handleSubmit:i}=j.useForm({defaultValues:{id:"",content:""}}),l=async c=>{try{T.showNotification({id:"for-creating",title:s("common.state.pending"),message:s("global_sql_snippet.state.adding"),loading:!0,autoClose:!1}),await R.sql_snippet.create(c),T.updateNotification({id:"for-creating",title:s("common.state.successful"),message:s("global_sql_snippet.state.added"),color:"green",autoClose:!0}),r()}catch(u){T.updateNotification({id:"for-creating",title:s("common.state.failed"),message:u.message,color:"red",autoClose:!0})}};return e.jsx(o.Box,{mx:"auto",children:e.jsxs("form",{onSubmit:i(l),children:[e.jsx(j.Controller,{name:"id",control:n,render:({field:c})=>e.jsx(o.TextInput,{mb:t.spacing,size:t.size,required:!0,label:s("common.name"),placeholder:s("common.name_placeholder"),...c})}),e.jsx(j.Controller,{name:"content",control:n,render:({field:c})=>e.jsxs(o.Stack,{gap:4,children:[e.jsx(o.Text,{size:"14px",fw:500,c:"#212529",sx:{cursor:"default"},children:s("global_sql_snippet.content")}),e.jsx(ut,{height:"600px",...c})]})}),e.jsx(o.Group,{justify:"flex-end",mt:t.spacing,children:e.jsx(W,{size:t.button.size})})]})})}function xt({onSuccess:r,styles:t=ue}){const{t:s}=y.useTranslation(),[n,i]=P.useState(!1),l=()=>i(!0),c=()=>i(!1),u=()=>{c(),r()};return e.jsxs(e.Fragment,{children:[e.jsx(o.Modal,{opened:n,onClose:()=>i(!1),title:s("global_sql_snippet.add"),trapFocus:!0,onDragStart:d=>{d.stopPropagation()},size:"80vw",children:e.jsx(Wn,{postSubmit:u,styles:t})}),e.jsx(o.Button,{size:t.button.size,onClick:l,leftSection:e.jsx(A.IconPlaylistAdd,{size:18}),children:s("global_sql_snippet.add")})]})}function Kn({postSubmit:r,styles:t=ue,id:s,content:n}){const{t:i}=y.useTranslation(),{control:l,handleSubmit:c}=j.useForm({defaultValues:{id:s,content:n}}),u=async d=>{try{T.showNotification({id:"for-updating",title:i("common.state.pending"),message:i("global_sql_snippet.state.updating"),loading:!0,autoClose:!1}),await R.sql_snippet.update(d),T.updateNotification({id:"for-updating",title:i("common.state.successful"),message:i("global_sql_snippet.state.updated"),color:"green",autoClose:!0}),r()}catch(p){T.updateNotification({id:"for-updating",title:i("common.state.failed"),message:p.message,color:"red",autoClose:!0})}};return e.jsx(o.Box,{mx:"auto",children:e.jsxs("form",{onSubmit:c(u),children:[e.jsx(j.Controller,{name:"id",control:l,render:({field:d})=>e.jsx(o.TextInput,{mb:t.spacing,size:t.size,required:!0,label:i("common.name"),placeholder:i("common.name_placeholder"),...d})}),e.jsx(j.Controller,{name:"content",control:l,render:({field:d})=>e.jsxs(o.Stack,{gap:4,children:[e.jsx(o.Text,{size:"14px",fw:500,c:"#212529",sx:{cursor:"default"},children:i("global_sql_snippet.content")}),e.jsx(ut,{height:"600px",...d})]})}),e.jsx(o.Group,{justify:"flex-end",mt:t.spacing,children:e.jsx(W,{size:t.button.size})})]})})}function bt({onSuccess:r,styles:t=ue,...s}){const{t:n}=y.useTranslation(),[i,l]=P.useState(!1),c=()=>l(!0),u=()=>l(!1),d=()=>{u(),r()};return e.jsxs(e.Fragment,{children:[e.jsx(o.Modal,{opened:i,onClose:()=>l(!1),title:n("global_sql_snippet.edit"),trapFocus:!0,onDragStart:p=>{p.stopPropagation()},size:"80vw",children:e.jsx(Kn,{postSubmit:d,styles:t,...s})}),e.jsx(o.Button,{size:t.button.size,onClick:c,leftSection:e.jsx(A.IconEdit,{size:18}),children:n("common.actions.edit")})]})}function vt({id:r,onSuccess:t,styles:s=ue}){const{t:n}=y.useTranslation(),i=ae.useModals(),l=async()=>{if(r){T.showNotification({id:"for-deleting",title:n("common.state.pending"),message:n("global_sql_snippet.state.deleting"),loading:!0,autoClose:!1});try{await R.sql_snippet.delete(r),T.updateNotification({id:"for-deleting",title:n("common.state.successful"),message:n("global_sql_snippet.state.deleted",{name:r}),color:"green",autoClose:!0}),t()}catch(u){T.updateNotification({id:"for-deleting",title:n("common.state.failed"),message:u.message,color:"red",autoClose:!0})}}},c=()=>i.openConfirmModal({title:n("global_sql_snippet.delete"),labels:{confirm:n("common.actions.confirm"),cancel:n("common.actions.cancel")},onCancel:()=>console.log("Cancel"),onConfirm:l,cancelProps:{size:s.button.size},confirmProps:{color:"red",size:s.button.size}});return e.jsx(o.Button,{size:s.button.size,color:"red",onClick:c,leftSection:e.jsx(A.IconTrash,{size:20}),children:n("common.actions.edit")})}function Qn({content:r}){return e.jsxs(o.HoverCard,{width:"60vw",shadow:"md",children:[e.jsx(o.HoverCard.Target,{children:e.jsx(o.ActionIcon,{variant:"subtle",size:16,children:e.jsx(A.IconEye,{})})}),e.jsx(o.HoverCard.Dropdown,{children:e.jsx(Kt.CodeHighlight,{code:r,language:"sql",withCopyButton:!1})})]})}const Jn=be("DataSourceList",({styles:r=ue})=>{const{t}=y.useTranslation(),{data:s=[],loading:n,refresh:i}=K.useRequest(async()=>{const{data:l}=await R.sql_snippet.list({pagination:{page:1,pagesize:10}});return l},{refreshDeps:[]});return e.jsxs(e.Fragment,{children:[e.jsxs(o.Group,{pt:r.spacing,justify:"space-between",children:[e.jsx(o.Alert,{children:t("global_sql_snippet.description")}),e.jsx(xt,{onSuccess:i})]}),e.jsxs(o.Box,{mt:r.spacing,sx:{position:"relative"},children:[e.jsx(o.LoadingOverlay,{visible:n}),e.jsxs(o.Table,{horizontalSpacing:r.spacing,verticalSpacing:r.spacing,fz:r.size,highlightOnHover:!0,children:[e.jsx(o.Table.Thead,{children:e.jsxs(o.Table.Tr,{children:[e.jsx(o.Table.Th,{children:t("common.name")}),e.jsx(o.Table.Th,{}),e.jsx(o.Table.Th,{children:t("common.created_at")}),e.jsx(o.Table.Th,{children:t("common.updated_at")}),e.jsx(o.Table.Th,{children:t("common.action")})]})}),e.jsx(o.Table.Tbody,{children:s.map(l=>{const{id:c,content:u,create_time:d,update_time:p}=l;return e.jsxs(o.Table.Tr,{children:[e.jsx(o.Table.Td,{children:c}),e.jsx(o.Table.Td,{width:50,children:e.jsx(Qn,{content:u})}),e.jsx(o.Table.Td,{width:200,children:d}),e.jsx(o.Table.Td,{width:200,children:p}),e.jsx(o.Table.Td,{width:400,children:e.jsxs(o.Group,{justify:"flex-start",children:[e.jsx(bt,{...l,onSuccess:i}),e.jsx(vt,{id:c,onSuccess:i})]})})]},c)})})]})]})]})}),Hn=()=>Promise.resolve().then(()=>Xn).then(({version:r})=>(console.log(`[@devtable/settings-form] version: ${r}`),r)),Xn=Object.freeze(Object.defineProperty({__proto__:null,version:"14.3.5"},Symbol.toStringTag,{value:"Module"}));x.APIClient=O,x.APIKeyList=Gn,x.AccountList=Bn,x.AddAPIKey=ht,x.AddAccount=pt,x.AddDataSource=ct,x.AddSQLSnippet=xt,x.DataSourceList=Ln,x.DefaultApiClient=Xe,x.DeleteAPIKey=gt,x.DeleteAccount=mt,x.DeleteDataSource=dt,x.DeleteSQLSnippet=vt,x.FacadeApiClient=Ze,x.Login=Yn,x.SQLSnippetList=Jn,x.UpdateSQLSnippet=bt,x.configureAPIClient=tt,x.facadeApiClient=et,x.getVersion=Hn,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})});
|
|
36
|
+
`)};function Mn({name:r,config:t,submit:s,styles:n=V}){const{t:i}=y.useTranslation(),{control:l,handleSubmit:c}=j.useForm({defaultValues:{config:t}});return e.jsx(o.Box,{mx:"auto",children:e.jsxs("form",{onSubmit:c(s),children:[e.jsx(o.TextInput,{mb:n.spacing,size:n.size,required:!0,label:i("common.name"),value:r,readOnly:!0}),e.jsx(o.Divider,{label:i("datasource.connection_info"),labelPosition:"center"}),e.jsx(j.Controller,{name:"config.host",control:l,render:({field:u})=>e.jsx(o.TextInput,{mb:n.spacing,size:n.size,label:i("datasource.http.base_url"),sx:{flexGrow:1},...u})}),e.jsxs(o.Group,{grow:!0,children:[e.jsx(j.Controller,{name:"config.processing.pre",control:l,render:({field:u})=>e.jsx(we,{label:i("datasource.http.processing.pre.label"),modalTitle:i("datasource.http.processing.pre.description"),defaultValue:ft.pre,...u,styles:n})}),e.jsx(j.Controller,{name:"config.processing.post",control:l,render:({field:u})=>e.jsx(we,{label:i("datasource.http.processing.post.label"),modalTitle:i("datasource.http.processing.post.description"),defaultValue:ft.post,...u,styles:n})})]}),e.jsx(o.Group,{justify:"flex-end",mt:n.spacing,children:e.jsx(W,{size:n.button.size})})]})})}function In({dataSource:r,postSubmit:t,styles:s=V}){const{t:n}=y.useTranslation(),i=async({config:l})=>{T.showNotification({id:"for-updating",title:n("common.state.pending"),message:n("datasource.state.updating"),loading:!0,autoClose:!1});try{console.log({config:l}),await R.datasource.update(r.id,l),T.updateNotification({id:"for-updating",title:n("common.state.successful"),message:n("datasource.state.updated"),color:"green",loading:!1,autoClose:!0}),t()}catch(c){T.updateNotification({id:"for-updating",title:n("common.state.failed"),message:c.message,color:"red",loading:!1,autoClose:!0})}};return r.config?e.jsx(o.Box,{mx:"auto",children:e.jsx(Mn,{name:r.key,config:r.config,submit:i,styles:s})}):(console.error(new Error("unexpected empty config of a http datasource")),null)}function Rn({dataSource:r,onSuccess:t,styles:s=V}){const{t:n}=y.useTranslation(),[i,l]=P.useState(!1),c=()=>l(!0),u=()=>l(!1),d=()=>{t(),u()};return r.is_preset?e.jsx(o.Tooltip,{withArrow:!0,events:{hover:!0,touch:!1,focus:!1},label:n("datasource.cant_edit.preset"),children:e.jsx(o.Button,{size:s.button.size,color:"gray",variant:"light",leftSection:e.jsx(A.IconLock,{size:16}),sx:{transform:"none !important"},children:n("common.actions.edit")})}):r.type!=="http"&&r.type!=="merico_metric_system"?e.jsx(o.Tooltip,{withArrow:!0,events:{hover:!0,touch:!1,focus:!1},label:n("datasource.cant_edit.db"),children:e.jsx(o.Button,{size:s.button.size,color:"gray",variant:"light",leftSection:e.jsx(A.IconEdit,{size:16}),sx:{transform:"none !important"},children:n("common.actions.edit")})}):e.jsxs(e.Fragment,{children:[e.jsx(o.Modal,{opened:i,onClose:()=>l(!1),title:n("datasource.edit"),trapFocus:!0,onDragStart:p=>{p.stopPropagation()},children:e.jsx(In,{dataSource:r,postSubmit:d,styles:s})}),e.jsx(o.Button,{size:s.button.size,color:"blue",onClick:c,leftSection:e.jsx(A.IconEdit,{size:16}),children:n("common.actions.edit")})]})}const Ln=be("DataSourceList",({styles:r=V})=>{const{t}=y.useTranslation(),{data:s=[],loading:n,refresh:i}=K.useRequest(async()=>{const{data:l}=await R.datasource.list();return l},{refreshDeps:[]});return e.jsxs(e.Fragment,{children:[e.jsx(o.Group,{pt:r.spacing,justify:"flex-end",children:e.jsx(ct,{onSuccess:i})}),e.jsxs(o.Box,{mt:r.spacing,sx:{position:"relative"},children:[e.jsx(o.LoadingOverlay,{visible:n}),e.jsxs(o.Table,{horizontalSpacing:r.spacing,verticalSpacing:r.spacing,fz:r.size,highlightOnHover:!0,children:[e.jsx(o.Table.Thead,{children:e.jsxs(o.Table.Tr,{children:[e.jsx(o.Table.Th,{children:t("common.type")}),e.jsx(o.Table.Th,{children:t("common.name")}),e.jsx(o.Table.Th,{children:t("common.action")})]})}),e.jsx(o.Table.Tbody,{children:s.map(l=>{const{id:c,key:u,type:d,is_preset:p}=l,h=d==="merico_metric_system";return e.jsxs(o.Table.Tr,{children:[e.jsx(o.Table.Td,{width:230,children:e.jsx($n,{type:d})}),e.jsx(o.Table.Td,{children:u}),e.jsx(o.Table.Td,{width:400,children:e.jsxs(o.Group,{justify:"flex-start",children:[e.jsx(Rn,{dataSource:l,onSuccess:i,styles:r}),e.jsx(dt,{isProtected:p||h,id:c,name:u,onSuccess:i,styles:r})]})})]},u)})})]})]})]})}),qn=({option:r,...t})=>{const{label:s,value:n,description:i}=r;return e.jsxs(o.Stack,{gap:2,...t,children:[e.jsx(o.Text,{size:"sm",children:s}),e.jsx(o.Text,{size:"xs",c:"dimmed",className:"role-description",children:i})]})},qe=P.forwardRef(({styles:r,value:t,onChange:s},n)=>{const{t:i}=y.useTranslation(),{data:l=[],loading:c}=K.useRequest(async()=>(await R.role.list()).map(d=>({label:d.id,value:d.id,description:d.description,disabled:d.id==="SUPERADMIN"})),{refreshDeps:[]});return e.jsx(o.Select,{ref:n,mb:r.spacing,size:r.size,required:!0,label:i("role.label"),renderOption:qn,data:l,disabled:c,styles:()=>({item:{"&[data-selected]":{"&, &:hover":{".role-description":{color:"rgba(255,255,255,.8)"}}}}}),value:t,onChange:u=>u!==null&&s(u),comboboxProps:{withinPortal:!0},maxDropdownHeight:500})}),H={size:"sm",spacing:"md",button:{size:"xs"}};function kn({postSubmit:r,styles:t=H,initialRoleID:s}){const{t:n}=y.useTranslation(),{control:i,handleSubmit:l}=j.useForm({defaultValues:{name:"",email:"",role_id:s,password:""}}),c=async({name:u,email:d,password:p,role_id:h})=>{try{T.showNotification({id:"for-creating",title:n("common.state.pending"),message:n("account.state.adding"),loading:!0,autoClose:!1}),await R.account.create(u,d,p,h),T.updateNotification({id:"for-creating",title:n("common.state.successful"),message:n("account.state.added"),color:"green",autoClose:!0,loading:!1}),r()}catch(b){T.updateNotification({id:"for-creating",title:n("common.state.failed"),message:b.message,color:"red",autoClose:!0,loading:!1})}};return e.jsx(o.Box,{mx:"auto",mb:10,children:e.jsxs("form",{onSubmit:l(c),children:[e.jsx(j.Controller,{name:"name",control:i,render:({field:u})=>e.jsx(o.TextInput,{mb:t.spacing,size:t.size,required:!0,label:n("account.username"),...u})}),e.jsx(j.Controller,{name:"email",control:i,render:({field:u})=>e.jsx(o.TextInput,{mb:t.spacing,size:t.size,required:!0,label:n("account.email"),...u})}),e.jsx(j.Controller,{name:"password",control:i,render:({field:u})=>e.jsx(o.PasswordInput,{mb:t.spacing,size:t.size,required:!0,label:n("account.password"),description:n("account.password_hint"),...u})}),e.jsx(j.Controller,{name:"role_id",control:i,render:({field:u})=>e.jsx(qe,{styles:t,...u})}),e.jsx(o.Group,{justify:"flex-end",mt:t.spacing,children:e.jsx(W,{size:t.button.size})})]})})}function pt({onSuccess:r,styles:t=H,initialRoleID:s}){const{t:n}=y.useTranslation(),[i,l]=P.useState(!1),c=()=>l(!0),u=()=>l(!1),d=()=>{r(),u()};return e.jsxs(e.Fragment,{children:[e.jsx(o.Modal,{opened:i,onClose:()=>l(!1),title:n("account.add"),trapFocus:!0,onDragStart:p=>{p.stopPropagation()},children:e.jsx(kn,{postSubmit:d,styles:t,initialRoleID:s})}),e.jsx(o.Button,{size:t.button.size,onClick:c,leftSection:e.jsx(A.IconPlaylistAdd,{size:20}),children:n("account.add")})]})}function mt({id:r,name:t,onSuccess:s,styles:n=H}){const{t:i}=y.useTranslation(),l=ae.useModals(),c=async()=>{if(r){T.showNotification({id:"for-deleting",title:i("common.state.pending"),message:i("account.state.deleting"),loading:!0,autoClose:!1});try{await R.account.delete(r),T.updateNotification({id:"for-deleting",title:i("common.state.successful"),message:i("account.state.deleted",{name:t}),color:"green",autoClose:!0,loading:!1}),s()}catch(d){T.updateNotification({id:"for-deleting",title:i("common.state.failed"),message:d.message,color:"red",autoClose:!0,loading:!1})}}},u=()=>l.openConfirmModal({title:i("account.delete"),labels:{confirm:i("common.actions.confirm"),cancel:i("common.actions.cancel")},onCancel:()=>console.log("Cancel"),onConfirm:c,cancelProps:{size:n.button.size},confirmProps:{color:"red",size:n.button.size}});return e.jsx(o.Button,{size:n.button.size,color:"red",onClick:u,leftSection:e.jsx(A.IconTrash,{size:20}),children:i("common.actions.delete")})}function Nn({id:r,name:t,email:s,role_id:n,postSubmit:i,styles:l=H}){const{t:c}=y.useTranslation(),{control:u,handleSubmit:d,watch:p}=j.useForm({defaultValues:{name:t,email:s,role_id:n,reset_password:!1,new_password:""}}),h=async({name:C,email:q,role_id:Y,reset_password:X,new_password:k})=>{try{T.showNotification({id:"for-updating",title:c("common.state.pending"),message:c("account.state.updating"),loading:!0,autoClose:!1}),await R.account.edit({id:r,name:C.trim(),email:q.trim(),role_id:Y,reset_password:X,new_password:k.trim()}),T.updateNotification({id:"for-updating",title:c("common.state.successful"),message:c("account.state.updated"),color:"green",autoClose:!0,loading:!1}),i()}catch(D){T.updateNotification({id:"for-updating",title:c("common.state.failed"),message:D.message,color:"red",autoClose:!0,loading:!1})}},[b,v]=p(["reset_password","new_password"]);return e.jsx(o.Box,{mx:"auto",mb:10,children:e.jsxs("form",{onSubmit:d(h),children:[e.jsx(j.Controller,{name:"name",control:u,render:({field:C})=>e.jsx(o.TextInput,{mb:l.spacing,size:l.size,required:!0,label:c("account.username"),...C})}),e.jsx(j.Controller,{name:"email",control:u,render:({field:C})=>e.jsx(o.TextInput,{mb:l.spacing,size:l.size,required:!0,label:c("account.email"),...C})}),e.jsx(j.Controller,{name:"role_id",control:u,render:({field:C})=>e.jsx(qe,{styles:l,...C})}),e.jsx(o.Divider,{my:20,variant:"dashed",label:"",labelPosition:"center"}),e.jsx(j.Controller,{name:"reset_password",control:u,render:({field:C})=>e.jsx(o.Switch,{mb:l.spacing,size:l.size,label:c("account.reset_password"),checked:C.value,onChange:q=>C.onChange(q.currentTarget.checked),styles:{label:{verticalAlign:"middle"}}})}),b&&e.jsx(j.Controller,{name:"new_password",control:u,render:({field:C})=>e.jsx(o.PasswordInput,{autoComplete:"off",mb:l.spacing,size:l.size,required:!0,description:c("account.password_hint"),label:c("account.new_password"),...C})}),e.jsx(o.Group,{justify:"flex-end",mt:l.spacing,children:e.jsx(W,{size:l.button.size})})]})})}function Fn({account:r,onSuccess:t,styles:s=H}){const{t:n}=y.useTranslation(),[i,l]=P.useState(!1),c=()=>l(!0),u=()=>l(!1),d=()=>{t(),u()};return e.jsxs(e.Fragment,{children:[e.jsx(o.Modal,{opened:i,onClose:()=>l(!1),title:n("account.editing_xx",{name:r.name}),trapFocus:!0,onDragStart:p=>{p.stopPropagation()},children:e.jsx(Nn,{...r,postSubmit:d,styles:s})}),e.jsx(o.Button,{size:s.button.size,onClick:c,leftSection:e.jsx(A.IconEdit,{size:20}),children:n("common.actions.edit")})]})}const Bn=be("AccountList",({styles:r=H})=>{var u;const{t}=y.useTranslation(),{data:s=[],loading:n,refresh:i}=K.useRequest(async()=>{const{data:d}=await R.account.list();return d},{refreshDeps:[]}),{data:l=[],loading:c}=K.useRequest(async()=>(await R.role.list()).map(p=>({label:p.id,value:p.id,description:p.description,disabled:p.id==="SUPERADMIN"})),{refreshDeps:[]});return e.jsxs(e.Fragment,{children:[e.jsx(o.Group,{pt:r.spacing,justify:"flex-end",children:e.jsx(pt,{onSuccess:i,initialRoleID:((u=l==null?void 0:l[0])==null?void 0:u.value)??"INACTIVE"})}),e.jsxs(o.Box,{mt:r.spacing,sx:{position:"relative"},children:[e.jsx(o.LoadingOverlay,{visible:n||c}),e.jsxs(o.Table,{horizontalSpacing:r.spacing,verticalSpacing:r.spacing,fz:r.size,highlightOnHover:!0,children:[e.jsx(o.Table.Thead,{children:e.jsxs(o.Table.Tr,{children:[e.jsx(o.Table.Th,{children:t("account.username")}),e.jsx(o.Table.Th,{children:t("account.email")}),e.jsx(o.Table.Th,{children:t("role.label")}),e.jsx(o.Table.Th,{children:t("common.action")})]})}),e.jsx(o.Table.Tbody,{children:s.map(d=>{const{id:p,name:h,email:b,role_id:v}=d;return e.jsxs(o.Table.Tr,{children:[e.jsx(o.Table.Td,{width:200,children:h}),e.jsx(o.Table.Td,{width:200,children:b}),e.jsx(o.Table.Td,{width:200,children:v}),e.jsx(o.Table.Td,{width:200,children:e.jsxs(o.Group,{justify:"flex-start",children:[e.jsx(Fn,{account:d,onSuccess:i}),e.jsx(mt,{id:p,name:h,onSuccess:i})]})})]},p)})})]})]})]})});function Un({postSubmit:r,styles:t=H}){const{t:s}=y.useTranslation(),{control:n,handleSubmit:i}=j.useForm({defaultValues:{name:"",password:""}}),l=async({name:c,password:u})=>{try{T.showNotification({id:"for-login",title:s("common.state.pending"),message:s("account.state.logging_in"),loading:!0,autoClose:!1});const d=await R.account.login(c.trim(),u.trim());window.localStorage.setItem("token",d.token),T.updateNotification({id:"for-login",title:s("common.state.successful"),message:s("account.state.logged_in"),color:"green",autoClose:!0,loading:!1}),r(d)}catch(d){T.updateNotification({id:"for-login",title:s("common.state.failed"),message:d.message,color:"red",autoClose:!0,loading:!1})}};return e.jsx(o.Box,{mx:"auto",children:e.jsxs("form",{onSubmit:i(l),children:[e.jsx(j.Controller,{name:"name",control:n,render:({field:c})=>e.jsx(o.TextInput,{mb:t.spacing,size:t.size,required:!0,label:s("account.username"),...c})}),e.jsx(j.Controller,{name:"password",control:n,render:({field:c})=>e.jsx(o.PasswordInput,{mb:t.spacing,size:t.size,required:!0,label:s("account.password"),...c})}),e.jsx(o.Group,{justify:"flex-end",mt:t.spacing,children:e.jsx(W,{size:t.button.size})})]})})}const Yn=be("Login",({styles:r=H,onSuccess:t})=>e.jsx(e.Fragment,{children:e.jsx(o.Box,{mt:r.spacing,sx:{position:"relative"},children:e.jsx(Un,{styles:r,postSubmit:t})})})),De={size:"sm",spacing:"md",button:{size:"xs"}};function Vn({postSubmit:r,styles:t=De,initialRoleID:s}){const{t:n}=y.useTranslation(),{control:i,handleSubmit:l}=j.useForm({defaultValues:{name:"",role_id:s}}),c=async({name:u,role_id:d})=>{try{T.showNotification({id:"for-creating",title:n("common.state.pending"),message:n("api_key.state.adding"),loading:!0,autoClose:!1});const{app_id:p,app_secret:h}=await R.api_key.create(u,d);T.updateNotification({id:"for-creating",title:n("common.state.successful"),message:n("api_key.state.added"),color:"green",autoClose:!0,loading:!1}),r(p,h)}catch(p){T.updateNotification({id:"for-creating",title:n("common.state.failed"),message:p.message,color:"red",autoClose:!0,loading:!1})}};return e.jsx(o.Box,{mx:"auto",mb:10,children:e.jsxs("form",{onSubmit:l(c),children:[e.jsx(j.Controller,{name:"name",control:i,render:({field:u})=>e.jsx(o.TextInput,{mb:t.spacing,size:t.size,required:!0,label:n("common.name"),...u})}),e.jsx(j.Controller,{name:"role_id",control:i,render:({field:u})=>e.jsx(qe,{styles:t,...u})}),e.jsx(o.Group,{justify:"flex-end",mt:t.spacing,children:e.jsx(W,{size:t.button.size})})]})})}function ht({onSuccess:r,styles:t=De,initialRoleID:s}){const{t:n}=y.useTranslation(),i=ae.useModals(),[l,c]=P.useState(!1),u=()=>c(!0),d=()=>c(!1),p=(h,b)=>{d(),i.openModal({title:n("api_key.save.title"),children:e.jsxs(o.Stack,{children:[e.jsx(o.Text,{size:"sm",c:"dimmed",children:n("api_key.save.warn")}),e.jsx(o.TextInput,{defaultValue:h,disabled:!0,label:n("api_key.app_id"),styles:{input:{cursor:"text !important"}}}),e.jsx(o.TextInput,{defaultValue:b,disabled:!0,label:n("api_key.app_secret"),styles:{input:{cursor:"text !important"}}}),e.jsx(o.Button,{size:"sm",onClick:()=>{ae.closeAllModals()},children:n("api_key.save.saved")})]}),onClose:()=>{r()}})};return e.jsxs(e.Fragment,{children:[e.jsx(o.Modal,{opened:l,onClose:()=>c(!1),title:n("api_key.add"),trapFocus:!0,onDragStart:h=>{h.stopPropagation()},children:e.jsx(Vn,{postSubmit:p,styles:t,initialRoleID:s})}),e.jsx(o.Button,{size:t.button.size,onClick:u,leftSection:e.jsx(A.IconPlaylistAdd,{size:20}),children:n("api_key.add")})]})}function gt({id:r,name:t,onSuccess:s,styles:n=De}){const{t:i}=y.useTranslation(),l=ae.useModals(),c=async()=>{if(r){T.showNotification({id:"for-deleting",title:i("common.state.pending"),message:i("global_sql_snippet.state.deleting"),loading:!0,autoClose:!1});try{await R.api_key.delete(r),T.updateNotification({id:"for-deleting",title:i("common.state.successful"),message:i("global_sql_snippet.state.deleted",{name:t}),color:"green",autoClose:!0,loading:!1}),s()}catch(d){T.updateNotification({id:"for-deleting",title:i("common.state.failed"),message:d.message,color:"red",autoClose:!0,loading:!1})}}},u=()=>l.openConfirmModal({title:i("api_key.delete"),labels:{confirm:i("common.actions.confirm"),cancel:i("common.actions.cancel")},onCancel:()=>console.log("Cancel"),onConfirm:c,cancelProps:{size:n.button.size},confirmProps:{color:"red",size:n.button.size}});return e.jsx(o.Button,{size:n.button.size,color:"red",onClick:u,leftSection:e.jsx(A.IconTrash,{size:20}),children:i("common.actions.delete")})}const Gn=be("APIKeyList",({styles:r=De})=>{var u;const{t}=y.useTranslation(),{data:s=[],loading:n,refresh:i}=K.useRequest(async()=>{const{data:d}=await R.api_key.list();return d},{refreshDeps:[]}),{data:l=[],loading:c}=K.useRequest(async()=>(await R.role.list()).map(p=>({label:p.id,value:p.id,description:p.description,disabled:p.id==="SUPERADMIN"})),{refreshDeps:[]});return e.jsxs(e.Fragment,{children:[e.jsx(o.Group,{pt:r.spacing,justify:"flex-end",children:e.jsx(ht,{onSuccess:i,initialRoleID:((u=l==null?void 0:l[0])==null?void 0:u.value)??"INACTIVE"})}),e.jsxs(o.Box,{mt:r.spacing,sx:{position:"relative"},children:[e.jsx(o.LoadingOverlay,{visible:n||c}),e.jsxs(o.Table,{horizontalSpacing:r.spacing,verticalSpacing:r.spacing,fz:r.size,highlightOnHover:!0,children:[e.jsx(o.Table.Thead,{children:e.jsxs(o.Table.Tr,{children:[e.jsx(o.Table.Th,{children:t("common.name")}),e.jsx(o.Table.Th,{children:t("api_key.app_id")}),e.jsx(o.Table.Th,{children:t("role.label")}),e.jsx(o.Table.Th,{children:t("common.action")})]})}),e.jsx(o.Table.Tbody,{children:s.map(d=>{const{id:p,name:h,app_id:b,role_id:v}=d;return e.jsxs(o.Table.Tr,{children:[e.jsx(o.Table.Td,{width:200,children:h}),e.jsx(o.Table.Td,{width:200,children:b}),e.jsx(o.Table.Td,{width:200,children:v}),e.jsx(o.Table.Td,{width:200,children:e.jsx(o.Group,{justify:"flex-start",children:e.jsx(gt,{id:p,name:h,onSuccess:i})})})]},p)})})]})]})]})}),ue={size:"sm",spacing:"md",button:{size:"xs"}};function Wn({postSubmit:r,styles:t=ue}){const{t:s}=y.useTranslation(),{control:n,handleSubmit:i}=j.useForm({defaultValues:{id:"",content:""}}),l=async c=>{try{T.showNotification({id:"for-creating",title:s("common.state.pending"),message:s("global_sql_snippet.state.adding"),loading:!0,autoClose:!1}),await R.sql_snippet.create(c),T.updateNotification({id:"for-creating",title:s("common.state.successful"),message:s("global_sql_snippet.state.added"),color:"green",autoClose:!0}),r()}catch(u){T.updateNotification({id:"for-creating",title:s("common.state.failed"),message:u.message,color:"red",autoClose:!0})}};return e.jsx(o.Box,{mx:"auto",children:e.jsxs("form",{onSubmit:i(l),children:[e.jsx(j.Controller,{name:"id",control:n,render:({field:c})=>e.jsx(o.TextInput,{mb:t.spacing,size:t.size,required:!0,label:s("common.name"),placeholder:s("common.name_placeholder"),...c})}),e.jsx(j.Controller,{name:"content",control:n,render:({field:c})=>e.jsxs(o.Stack,{gap:4,children:[e.jsx(o.Text,{size:"14px",fw:500,c:"#212529",sx:{cursor:"default"},children:s("global_sql_snippet.content")}),e.jsx(ut,{height:"600px",...c})]})}),e.jsx(o.Group,{justify:"flex-end",mt:t.spacing,children:e.jsx(W,{size:t.button.size})})]})})}function xt({onSuccess:r,styles:t=ue}){const{t:s}=y.useTranslation(),[n,i]=P.useState(!1),l=()=>i(!0),c=()=>i(!1),u=()=>{c(),r()};return e.jsxs(e.Fragment,{children:[e.jsx(o.Modal,{opened:n,onClose:()=>i(!1),title:s("global_sql_snippet.add"),trapFocus:!0,onDragStart:d=>{d.stopPropagation()},size:"80vw",children:e.jsx(Wn,{postSubmit:u,styles:t})}),e.jsx(o.Button,{size:t.button.size,onClick:l,leftSection:e.jsx(A.IconPlaylistAdd,{size:18}),children:s("global_sql_snippet.add")})]})}function Kn({postSubmit:r,styles:t=ue,id:s,content:n}){const{t:i}=y.useTranslation(),{control:l,handleSubmit:c}=j.useForm({defaultValues:{id:s,content:n}}),u=async d=>{try{T.showNotification({id:"for-updating",title:i("common.state.pending"),message:i("global_sql_snippet.state.updating"),loading:!0,autoClose:!1}),await R.sql_snippet.update(d),T.updateNotification({id:"for-updating",title:i("common.state.successful"),message:i("global_sql_snippet.state.updated"),color:"green",autoClose:!0}),r()}catch(p){T.updateNotification({id:"for-updating",title:i("common.state.failed"),message:p.message,color:"red",autoClose:!0})}};return e.jsx(o.Box,{mx:"auto",children:e.jsxs("form",{onSubmit:c(u),children:[e.jsx(j.Controller,{name:"id",control:l,render:({field:d})=>e.jsx(o.TextInput,{mb:t.spacing,size:t.size,required:!0,label:i("common.name"),placeholder:i("common.name_placeholder"),...d})}),e.jsx(j.Controller,{name:"content",control:l,render:({field:d})=>e.jsxs(o.Stack,{gap:4,children:[e.jsx(o.Text,{size:"14px",fw:500,c:"#212529",sx:{cursor:"default"},children:i("global_sql_snippet.content")}),e.jsx(ut,{height:"600px",...d})]})}),e.jsx(o.Group,{justify:"flex-end",mt:t.spacing,children:e.jsx(W,{size:t.button.size})})]})})}function bt({onSuccess:r,styles:t=ue,...s}){const{t:n}=y.useTranslation(),[i,l]=P.useState(!1),c=()=>l(!0),u=()=>l(!1),d=()=>{u(),r()};return e.jsxs(e.Fragment,{children:[e.jsx(o.Modal,{opened:i,onClose:()=>l(!1),title:n("global_sql_snippet.edit"),trapFocus:!0,onDragStart:p=>{p.stopPropagation()},size:"80vw",children:e.jsx(Kn,{postSubmit:d,styles:t,...s})}),e.jsx(o.Button,{size:t.button.size,onClick:c,leftSection:e.jsx(A.IconEdit,{size:18}),children:n("common.actions.edit")})]})}function vt({id:r,onSuccess:t,styles:s=ue}){const{t:n}=y.useTranslation(),i=ae.useModals(),l=async()=>{if(r){T.showNotification({id:"for-deleting",title:n("common.state.pending"),message:n("global_sql_snippet.state.deleting"),loading:!0,autoClose:!1});try{await R.sql_snippet.delete(r),T.updateNotification({id:"for-deleting",title:n("common.state.successful"),message:n("global_sql_snippet.state.deleted",{name:r}),color:"green",autoClose:!0}),t()}catch(u){T.updateNotification({id:"for-deleting",title:n("common.state.failed"),message:u.message,color:"red",autoClose:!0})}}},c=()=>i.openConfirmModal({title:n("global_sql_snippet.delete"),labels:{confirm:n("common.actions.confirm"),cancel:n("common.actions.cancel")},onCancel:()=>console.log("Cancel"),onConfirm:l,cancelProps:{size:s.button.size},confirmProps:{color:"red",size:s.button.size}});return e.jsx(o.Button,{size:s.button.size,color:"red",onClick:c,leftSection:e.jsx(A.IconTrash,{size:20}),children:n("common.actions.edit")})}function Qn({content:r}){return e.jsxs(o.HoverCard,{width:"60vw",shadow:"md",children:[e.jsx(o.HoverCard.Target,{children:e.jsx(o.ActionIcon,{variant:"subtle",size:16,children:e.jsx(A.IconEye,{})})}),e.jsx(o.HoverCard.Dropdown,{children:e.jsx(Kt.CodeHighlight,{code:r,language:"sql",withCopyButton:!1})})]})}const Jn=be("DataSourceList",({styles:r=ue})=>{const{t}=y.useTranslation(),{data:s=[],loading:n,refresh:i}=K.useRequest(async()=>{const{data:l}=await R.sql_snippet.list({pagination:{page:1,pagesize:10}});return l},{refreshDeps:[]});return e.jsxs(e.Fragment,{children:[e.jsxs(o.Group,{pt:r.spacing,justify:"space-between",children:[e.jsx(o.Alert,{children:t("global_sql_snippet.description")}),e.jsx(xt,{onSuccess:i})]}),e.jsxs(o.Box,{mt:r.spacing,sx:{position:"relative"},children:[e.jsx(o.LoadingOverlay,{visible:n}),e.jsxs(o.Table,{horizontalSpacing:r.spacing,verticalSpacing:r.spacing,fz:r.size,highlightOnHover:!0,children:[e.jsx(o.Table.Thead,{children:e.jsxs(o.Table.Tr,{children:[e.jsx(o.Table.Th,{children:t("common.name")}),e.jsx(o.Table.Th,{}),e.jsx(o.Table.Th,{children:t("common.created_at")}),e.jsx(o.Table.Th,{children:t("common.updated_at")}),e.jsx(o.Table.Th,{children:t("common.action")})]})}),e.jsx(o.Table.Tbody,{children:s.map(l=>{const{id:c,content:u,create_time:d,update_time:p}=l;return e.jsxs(o.Table.Tr,{children:[e.jsx(o.Table.Td,{children:c}),e.jsx(o.Table.Td,{width:50,children:e.jsx(Qn,{content:u})}),e.jsx(o.Table.Td,{width:200,children:d}),e.jsx(o.Table.Td,{width:200,children:p}),e.jsx(o.Table.Td,{width:400,children:e.jsxs(o.Group,{justify:"flex-start",children:[e.jsx(bt,{...l,onSuccess:i}),e.jsx(vt,{id:c,onSuccess:i})]})})]},c)})})]})]})]})}),Hn=()=>Promise.resolve().then(()=>Xn).then(({version:r})=>(console.log(`[@devtable/settings-form] version: ${r}`),r)),Xn=Object.freeze(Object.defineProperty({__proto__:null,version:"14.4.0"},Symbol.toStringTag,{value:"Module"}));x.APIClient=O,x.APIKeyList=Gn,x.AccountList=Bn,x.AddAPIKey=ht,x.AddAccount=pt,x.AddDataSource=ct,x.AddSQLSnippet=xt,x.DataSourceList=Ln,x.DefaultApiClient=Xe,x.DeleteAPIKey=gt,x.DeleteAccount=mt,x.DeleteDataSource=dt,x.DeleteSQLSnippet=vt,x.FacadeApiClient=Ze,x.Login=Yn,x.SQLSnippetList=Jn,x.UpdateSQLSnippet=bt,x.configureAPIClient=tt,x.facadeApiClient=et,x.getVersion=Hn,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})});
|
package/dist/stats.html
CHANGED
|
@@ -4822,7 +4822,7 @@ var drawChart = (function (exports) {
|
|
|
4822
4822
|
</script>
|
|
4823
4823
|
<script>
|
|
4824
4824
|
/*<!--*/
|
|
4825
|
-
const data = {"version":2,"tree":{"name":"root","children":[{"name":"settings-form.umd.js","children":[{"name":"\u0000/Users/leto/github/merico-dev/table/node_modules/react","children":[{"uid":"2d5bf724-1","name":"jsx-runtime.js?commonjs-module"},{"name":"cjs","children":[{"uid":"2d5bf724-3","name":"react-jsx-runtime.production.min.js?commonjs-exports"},{"uid":"2d5bf724-7","name":"react-jsx-runtime.development.js?commonjs-exports"}]}]},{"name":"Users/leto/github/merico-dev/table","children":[{"name":"node_modules","children":[{"name":"react","children":[{"name":"cjs","children":[{"uid":"2d5bf724-5","name":"react-jsx-runtime.production.min.js"},{"uid":"2d5bf724-9","name":"react-jsx-runtime.development.js"}]},{"uid":"2d5bf724-11","name":"jsx-runtime.js"}]},{"name":"dayjs/esm","children":[{"uid":"2d5bf724-29","name":"constant.js"},{"name":"locale/en.js","uid":"2d5bf724-31"},{"uid":"2d5bf724-33","name":"utils.js"},{"uid":"2d5bf724-35","name":"index.js"}]}]},{"name":"shared/src/api-client","children":[{"uid":"2d5bf724-13","name":"utils.ts"},{"uid":"2d5bf724-15","name":"default-api-client.ts"},{"uid":"2d5bf724-17","name":"facade-api-client.ts"}]}]},{"name":"src","children":[{"name":"api-caller","children":[{"uid":"2d5bf724-19","name":"request.ts"},{"uid":"2d5bf724-21","name":"account.ts"},{"uid":"2d5bf724-23","name":"api-key.ts"},{"uid":"2d5bf724-25","name":"datasource.ts"},{"uid":"2d5bf724-27","name":"role.ts"},{"uid":"2d5bf724-37","name":"sql_snippet.ts"},{"uid":"2d5bf724-39","name":"index.ts"}]},{"name":"datasource","children":[{"uid":"2d5bf724-41","name":"styles.ts"},{"name":"add-data-source","children":[{"uid":"2d5bf724-43","name":"db-permission-tips.tsx"},{"name":"forms","children":[{"uid":"2d5bf724-61","name":"database.tsx"},{"uid":"2d5bf724-67","name":"http.tsx"}]},{"uid":"2d5bf724-69","name":"index.tsx"}]},{"name":"components","children":[{"name":"function-string-field","children":[{"uid":"2d5bf724-63","name":"function-string-editor.tsx"},{"uid":"2d5bf724-65","name":"index.tsx"}]},{"uid":"2d5bf724-71","name":"data-source-icon.tsx"}]},{"uid":"2d5bf724-73","name":"delete-data-source.tsx"},{"name":"edit-data-source","children":[{"name":"forms/http.tsx","uid":"2d5bf724-75"},{"uid":"2d5bf724-77","name":"index.tsx"}]},{"uid":"2d5bf724-79","name":"data-source-list.tsx"}]},{"name":"components","children":[{"uid":"2d5bf724-45","name":"minimal-mocaco-editor.tsx"},{"uid":"2d5bf724-47","name":"submit-form-button.tsx"},{"uid":"2d5bf724-59","name":"with-entry.tsx"}]},{"name":"i18n","children":[{"uid":"2d5bf724-49","name":"en.ts"},{"uid":"2d5bf724-51","name":"zh.ts"},{"uid":"2d5bf724-53","name":"i18n.ts"},{"uid":"2d5bf724-55","name":"i18next-context.tsx"}]},{"name":"utils/load-monaco-editor.ts","uid":"2d5bf724-57"},{"name":"account","children":[{"uid":"2d5bf724-81","name":"role-selector.tsx"},{"uid":"2d5bf724-83","name":"styles.ts"},{"uid":"2d5bf724-85","name":"add-account.tsx"},{"uid":"2d5bf724-87","name":"delete-account.tsx"},{"uid":"2d5bf724-89","name":"edit-account.tsx"},{"uid":"2d5bf724-91","name":"account-list.tsx"},{"name":"login","children":[{"uid":"2d5bf724-93","name":"form.tsx"},{"uid":"2d5bf724-95","name":"index.tsx"}]}]},{"name":"api-key","children":[{"uid":"2d5bf724-97","name":"styles.ts"},{"uid":"2d5bf724-99","name":"add-api-key.tsx"},{"uid":"2d5bf724-101","name":"delete-api-key.tsx"},{"uid":"2d5bf724-103","name":"api-key-list.tsx"}]},{"name":"sql_snippet","children":[{"uid":"2d5bf724-105","name":"styles.ts"},{"uid":"2d5bf724-107","name":"add-sql_snippet.tsx"},{"uid":"2d5bf724-109","name":"update-sql_snippet.tsx"},{"uid":"2d5bf724-111","name":"delete-sql_snippet.tsx"},{"uid":"2d5bf724-113","name":"sql_snippet-list.tsx"}]},{"uid":"2d5bf724-115","name":"index.ts"}]},{"uid":"2d5bf724-117","name":"package.json"}]}],"isRoot":true},"nodeParts":{"2d5bf724-1":{"renderedLength":33,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-0"},"2d5bf724-3":{"renderedLength":42,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-2"},"2d5bf724-5":{"renderedLength":1217,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-4"},"2d5bf724-7":{"renderedLength":39,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-6"},"2d5bf724-9":{"renderedLength":46244,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-8"},"2d5bf724-11":{"renderedLength":237,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-10"},"2d5bf724-13":{"renderedLength":949,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-12"},"2d5bf724-15":{"renderedLength":2262,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-14"},"2d5bf724-17":{"renderedLength":422,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-16"},"2d5bf724-19":{"renderedLength":426,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-18"},"2d5bf724-21":{"renderedLength":1913,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-20"},"2d5bf724-23":{"renderedLength":641,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-22"},"2d5bf724-25":{"renderedLength":730,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-24"},"2d5bf724-27":{"renderedLength":132,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-26"},"2d5bf724-29":{"renderedLength":1011,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-28"},"2d5bf724-31":{"renderedLength":496,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-30"},"2d5bf724-33":{"renderedLength":1623,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-32"},"2d5bf724-35":{"renderedLength":14006,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-34"},"2d5bf724-37":{"renderedLength":1079,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-36"},"2d5bf724-39":{"renderedLength":94,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-38"},"2d5bf724-41":{"renderedLength":104,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-40"},"2d5bf724-43":{"renderedLength":570,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-42"},"2d5bf724-45":{"renderedLength":675,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-44"},"2d5bf724-47":{"renderedLength":370,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-46"},"2d5bf724-49":{"renderedLength":4266,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-48"},"2d5bf724-51":{"renderedLength":4276,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-50"},"2d5bf724-53":{"renderedLength":253,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-52"},"2d5bf724-55":{"renderedLength":246,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-54"},"2d5bf724-57":{"renderedLength":551,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-56"},"2d5bf724-59":{"renderedLength":625,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-58"},"2d5bf724-61":{"renderedLength":3109,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-60"},"2d5bf724-63":{"renderedLength":502,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-62"},"2d5bf724-65":{"renderedLength":2398,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-64"},"2d5bf724-67":{"renderedLength":2894,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-66"},"2d5bf724-69":{"renderedLength":3130,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-68"},"2d5bf724-71":{"renderedLength":958,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-70"},"2d5bf724-73":{"renderedLength":2217,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-72"},"2d5bf724-75":{"renderedLength":2514,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-74"},"2d5bf724-77":{"renderedLength":3597,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-76"},"2d5bf724-79":{"renderedLength":2739,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-78"},"2d5bf724-81":{"renderedLength":1553,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-80"},"2d5bf724-83":{"renderedLength":104,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-82"},"2d5bf724-85":{"renderedLength":3856,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-84"},"2d5bf724-87":{"renderedLength":1830,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-86"},"2d5bf724-89":{"renderedLength":4968,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-88"},"2d5bf724-91":{"renderedLength":3158,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-90"},"2d5bf724-93":{"renderedLength":2262,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-92"},"2d5bf724-95":{"renderedLength":397,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-94"},"2d5bf724-97":{"renderedLength":104,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-96"},"2d5bf724-99":{"renderedLength":4259,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-98"},"2d5bf724-101":{"renderedLength":1851,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-100"},"2d5bf724-103":{"renderedLength":3016,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-102"},"2d5bf724-105":{"renderedLength":102,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-104"},"2d5bf724-107":{"renderedLength":3370,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-106"},"2d5bf724-109":{"renderedLength":3409,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-108"},"2d5bf724-111":{"renderedLength":1808,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-110"},"2d5bf724-113":{"renderedLength":3839,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-112"},"2d5bf724-115":{"renderedLength":187,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-114"},"2d5bf724-117":{"renderedLength":27,"gzipLength":0,"brotliLength":0,"metaUid":"2d5bf724-116"}},"nodeMetas":{"2d5bf724-0":{"id":"\u0000/Users/leto/github/merico-dev/table/node_modules/react/jsx-runtime.js?commonjs-module","moduleParts":{"settings-form.umd.js":"2d5bf724-1"},"imported":[],"importedBy":[{"uid":"2d5bf724-10"}]},"2d5bf724-2":{"id":"\u0000/Users/leto/github/merico-dev/table/node_modules/react/cjs/react-jsx-runtime.production.min.js?commonjs-exports","moduleParts":{"settings-form.umd.js":"2d5bf724-3"},"imported":[],"importedBy":[{"uid":"2d5bf724-4"}]},"2d5bf724-4":{"id":"/Users/leto/github/merico-dev/table/node_modules/react/cjs/react-jsx-runtime.production.min.js","moduleParts":{"settings-form.umd.js":"2d5bf724-5"},"imported":[{"uid":"2d5bf724-139"},{"uid":"2d5bf724-2"},{"uid":"2d5bf724-142"}],"importedBy":[{"uid":"2d5bf724-10"}]},"2d5bf724-6":{"id":"\u0000/Users/leto/github/merico-dev/table/node_modules/react/cjs/react-jsx-runtime.development.js?commonjs-exports","moduleParts":{"settings-form.umd.js":"2d5bf724-7"},"imported":[],"importedBy":[{"uid":"2d5bf724-8"}]},"2d5bf724-8":{"id":"/Users/leto/github/merico-dev/table/node_modules/react/cjs/react-jsx-runtime.development.js","moduleParts":{"settings-form.umd.js":"2d5bf724-9"},"imported":[{"uid":"2d5bf724-139"},{"uid":"2d5bf724-6"},{"uid":"2d5bf724-142"}],"importedBy":[{"uid":"2d5bf724-10"}]},"2d5bf724-10":{"id":"/Users/leto/github/merico-dev/table/node_modules/react/jsx-runtime.js","moduleParts":{"settings-form.umd.js":"2d5bf724-11"},"imported":[{"uid":"2d5bf724-139"},{"uid":"2d5bf724-0"},{"uid":"2d5bf724-4"},{"uid":"2d5bf724-8"}],"importedBy":[{"uid":"2d5bf724-68"},{"uid":"2d5bf724-78"},{"uid":"2d5bf724-72"},{"uid":"2d5bf724-84"},{"uid":"2d5bf724-90"},{"uid":"2d5bf724-86"},{"uid":"2d5bf724-94"},{"uid":"2d5bf724-98"},{"uid":"2d5bf724-102"},{"uid":"2d5bf724-100"},{"uid":"2d5bf724-106"},{"uid":"2d5bf724-108"},{"uid":"2d5bf724-112"},{"uid":"2d5bf724-110"},{"uid":"2d5bf724-42"},{"uid":"2d5bf724-60"},{"uid":"2d5bf724-66"},{"uid":"2d5bf724-70"},{"uid":"2d5bf724-76"},{"uid":"2d5bf724-80"},{"uid":"2d5bf724-88"},{"uid":"2d5bf724-92"},{"uid":"2d5bf724-44"},{"uid":"2d5bf724-64"},{"uid":"2d5bf724-46"},{"uid":"2d5bf724-58"},{"uid":"2d5bf724-74"},{"uid":"2d5bf724-62"},{"uid":"2d5bf724-54"}]},"2d5bf724-12":{"id":"/Users/leto/github/merico-dev/table/shared/src/api-client/utils.ts","moduleParts":{"settings-form.umd.js":"2d5bf724-13"},"imported":[{"uid":"2d5bf724-143"}],"importedBy":[{"uid":"2d5bf724-138"},{"uid":"2d5bf724-14"}]},"2d5bf724-14":{"id":"/Users/leto/github/merico-dev/table/shared/src/api-client/default-api-client.ts","moduleParts":{"settings-form.umd.js":"2d5bf724-15"},"imported":[{"uid":"2d5bf724-144"},{"uid":"2d5bf724-12"},{"uid":"2d5bf724-145"}],"importedBy":[{"uid":"2d5bf724-138"}]},"2d5bf724-16":{"id":"/Users/leto/github/merico-dev/table/shared/src/api-client/facade-api-client.ts","moduleParts":{"settings-form.umd.js":"2d5bf724-17"},"imported":[],"importedBy":[{"uid":"2d5bf724-138"}]},"2d5bf724-18":{"id":"/src/api-caller/request.ts","moduleParts":{"settings-form.umd.js":"2d5bf724-19"},"imported":[{"uid":"2d5bf724-127"}],"importedBy":[{"uid":"2d5bf724-114"},{"uid":"2d5bf724-20"},{"uid":"2d5bf724-22"},{"uid":"2d5bf724-24"},{"uid":"2d5bf724-26"},{"uid":"2d5bf724-36"},{"uid":"2d5bf724-58"}]},"2d5bf724-20":{"id":"/src/api-caller/account.ts","moduleParts":{"settings-form.umd.js":"2d5bf724-21"},"imported":[{"uid":"2d5bf724-18"}],"importedBy":[{"uid":"2d5bf724-38"}]},"2d5bf724-22":{"id":"/src/api-caller/api-key.ts","moduleParts":{"settings-form.umd.js":"2d5bf724-23"},"imported":[{"uid":"2d5bf724-18"}],"importedBy":[{"uid":"2d5bf724-38"}]},"2d5bf724-24":{"id":"/src/api-caller/datasource.ts","moduleParts":{"settings-form.umd.js":"2d5bf724-25"},"imported":[{"uid":"2d5bf724-18"}],"importedBy":[{"uid":"2d5bf724-38"}]},"2d5bf724-26":{"id":"/src/api-caller/role.ts","moduleParts":{"settings-form.umd.js":"2d5bf724-27"},"imported":[{"uid":"2d5bf724-18"}],"importedBy":[{"uid":"2d5bf724-38"}]},"2d5bf724-28":{"id":"/Users/leto/github/merico-dev/table/node_modules/dayjs/esm/constant.js","moduleParts":{"settings-form.umd.js":"2d5bf724-29"},"imported":[],"importedBy":[{"uid":"2d5bf724-34"},{"uid":"2d5bf724-32"}]},"2d5bf724-30":{"id":"/Users/leto/github/merico-dev/table/node_modules/dayjs/esm/locale/en.js","moduleParts":{"settings-form.umd.js":"2d5bf724-31"},"imported":[],"importedBy":[{"uid":"2d5bf724-34"}]},"2d5bf724-32":{"id":"/Users/leto/github/merico-dev/table/node_modules/dayjs/esm/utils.js","moduleParts":{"settings-form.umd.js":"2d5bf724-33"},"imported":[{"uid":"2d5bf724-28"}],"importedBy":[{"uid":"2d5bf724-34"}]},"2d5bf724-34":{"id":"/Users/leto/github/merico-dev/table/node_modules/dayjs/esm/index.js","moduleParts":{"settings-form.umd.js":"2d5bf724-35"},"imported":[{"uid":"2d5bf724-28"},{"uid":"2d5bf724-30"},{"uid":"2d5bf724-32"}],"importedBy":[{"uid":"2d5bf724-36"}]},"2d5bf724-36":{"id":"/src/api-caller/sql_snippet.ts","moduleParts":{"settings-form.umd.js":"2d5bf724-37"},"imported":[{"uid":"2d5bf724-34"},{"uid":"2d5bf724-18"}],"importedBy":[{"uid":"2d5bf724-38"}]},"2d5bf724-38":{"id":"/src/api-caller/index.ts","moduleParts":{"settings-form.umd.js":"2d5bf724-39"},"imported":[{"uid":"2d5bf724-20"},{"uid":"2d5bf724-22"},{"uid":"2d5bf724-24"},{"uid":"2d5bf724-26"},{"uid":"2d5bf724-36"}],"importedBy":[{"uid":"2d5bf724-68"},{"uid":"2d5bf724-78"},{"uid":"2d5bf724-72"},{"uid":"2d5bf724-84"},{"uid":"2d5bf724-90"},{"uid":"2d5bf724-86"},{"uid":"2d5bf724-98"},{"uid":"2d5bf724-102"},{"uid":"2d5bf724-100"},{"uid":"2d5bf724-106"},{"uid":"2d5bf724-108"},{"uid":"2d5bf724-112"},{"uid":"2d5bf724-110"},{"uid":"2d5bf724-76"},{"uid":"2d5bf724-80"},{"uid":"2d5bf724-88"},{"uid":"2d5bf724-92"}]},"2d5bf724-40":{"id":"/src/datasource/styles.ts","moduleParts":{"settings-form.umd.js":"2d5bf724-41"},"imported":[],"importedBy":[{"uid":"2d5bf724-68"},{"uid":"2d5bf724-78"},{"uid":"2d5bf724-72"},{"uid":"2d5bf724-42"},{"uid":"2d5bf724-60"},{"uid":"2d5bf724-66"},{"uid":"2d5bf724-76"},{"uid":"2d5bf724-74"}]},"2d5bf724-42":{"id":"/src/datasource/add-data-source/db-permission-tips.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-43"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-128"},{"uid":"2d5bf724-130"},{"uid":"2d5bf724-132"},{"uid":"2d5bf724-40"}],"importedBy":[{"uid":"2d5bf724-68"}]},"2d5bf724-44":{"id":"/src/components/minimal-mocaco-editor.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-45"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-140"},{"uid":"2d5bf724-131"}],"importedBy":[{"uid":"2d5bf724-106"},{"uid":"2d5bf724-108"},{"uid":"2d5bf724-134"}]},"2d5bf724-46":{"id":"/src/components/submit-form-button.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-47"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-128"},{"uid":"2d5bf724-130"},{"uid":"2d5bf724-132"}],"importedBy":[{"uid":"2d5bf724-134"}]},"2d5bf724-48":{"id":"/src/i18n/en.ts","moduleParts":{"settings-form.umd.js":"2d5bf724-49"},"imported":[],"importedBy":[{"uid":"2d5bf724-52"}]},"2d5bf724-50":{"id":"/src/i18n/zh.ts","moduleParts":{"settings-form.umd.js":"2d5bf724-51"},"imported":[],"importedBy":[{"uid":"2d5bf724-52"}]},"2d5bf724-52":{"id":"/src/i18n/i18n.ts","moduleParts":{"settings-form.umd.js":"2d5bf724-53"},"imported":[{"uid":"2d5bf724-146"},{"uid":"2d5bf724-132"},{"uid":"2d5bf724-147"},{"uid":"2d5bf724-148"},{"uid":"2d5bf724-48"},{"uid":"2d5bf724-50"}],"importedBy":[{"uid":"2d5bf724-54"}]},"2d5bf724-54":{"id":"/src/i18n/i18next-context.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-55"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-131"},{"uid":"2d5bf724-132"},{"uid":"2d5bf724-52"}],"importedBy":[{"uid":"2d5bf724-58"}]},"2d5bf724-56":{"id":"/src/utils/load-monaco-editor.ts","moduleParts":{"settings-form.umd.js":"2d5bf724-57"},"imported":[{"uid":"2d5bf724-140"},{"uid":"2d5bf724-131"}],"importedBy":[{"uid":"2d5bf724-58"}]},"2d5bf724-58":{"id":"/src/components/with-entry.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-59"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-131"},{"uid":"2d5bf724-18"},{"uid":"2d5bf724-54"},{"uid":"2d5bf724-56"},{"uid":"2d5bf724-128"}],"importedBy":[{"uid":"2d5bf724-134"}]},"2d5bf724-60":{"id":"/src/datasource/add-data-source/forms/database.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-61"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-128"},{"uid":"2d5bf724-131"},{"uid":"2d5bf724-136"},{"uid":"2d5bf724-134"},{"uid":"2d5bf724-40"},{"uid":"2d5bf724-132"}],"importedBy":[{"uid":"2d5bf724-68"}]},"2d5bf724-62":{"id":"/src/datasource/components/function-string-field/function-string-editor.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-63"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-128"},{"uid":"2d5bf724-140"}],"importedBy":[{"uid":"2d5bf724-64"}]},"2d5bf724-64":{"id":"/src/datasource/components/function-string-field/index.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-65"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-128"},{"uid":"2d5bf724-130"},{"uid":"2d5bf724-133"},{"uid":"2d5bf724-131"},{"uid":"2d5bf724-132"},{"uid":"2d5bf724-62"}],"importedBy":[{"uid":"2d5bf724-66"},{"uid":"2d5bf724-74"}]},"2d5bf724-66":{"id":"/src/datasource/add-data-source/forms/http.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-67"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-128"},{"uid":"2d5bf724-136"},{"uid":"2d5bf724-40"},{"uid":"2d5bf724-64"},{"uid":"2d5bf724-134"},{"uid":"2d5bf724-132"}],"importedBy":[{"uid":"2d5bf724-68"}]},"2d5bf724-68":{"id":"/src/datasource/add-data-source/index.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-69"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-128"},{"uid":"2d5bf724-129"},{"uid":"2d5bf724-130"},{"uid":"2d5bf724-131"},{"uid":"2d5bf724-132"},{"uid":"2d5bf724-38"},{"uid":"2d5bf724-40"},{"uid":"2d5bf724-42"},{"uid":"2d5bf724-60"},{"uid":"2d5bf724-66"}],"importedBy":[{"uid":"2d5bf724-118"},{"uid":"2d5bf724-78"}]},"2d5bf724-70":{"id":"/src/datasource/components/data-source-icon.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-71"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-130"},{"uid":"2d5bf724-128"}],"importedBy":[{"uid":"2d5bf724-78"}]},"2d5bf724-72":{"id":"/src/datasource/delete-data-source.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-73"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-128"},{"uid":"2d5bf724-135"},{"uid":"2d5bf724-129"},{"uid":"2d5bf724-130"},{"uid":"2d5bf724-132"},{"uid":"2d5bf724-38"},{"uid":"2d5bf724-40"}],"importedBy":[{"uid":"2d5bf724-118"},{"uid":"2d5bf724-78"}]},"2d5bf724-74":{"id":"/src/datasource/edit-data-source/forms/http.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-75"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-128"},{"uid":"2d5bf724-136"},{"uid":"2d5bf724-132"},{"uid":"2d5bf724-134"},{"uid":"2d5bf724-64"},{"uid":"2d5bf724-40"}],"importedBy":[{"uid":"2d5bf724-76"}]},"2d5bf724-76":{"id":"/src/datasource/edit-data-source/index.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-77"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-128"},{"uid":"2d5bf724-129"},{"uid":"2d5bf724-130"},{"uid":"2d5bf724-131"},{"uid":"2d5bf724-38"},{"uid":"2d5bf724-40"},{"uid":"2d5bf724-74"},{"uid":"2d5bf724-132"}],"importedBy":[{"uid":"2d5bf724-78"}]},"2d5bf724-78":{"id":"/src/datasource/data-source-list.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-79"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-128"},{"uid":"2d5bf724-133"},{"uid":"2d5bf724-132"},{"uid":"2d5bf724-38"},{"uid":"2d5bf724-134"},{"uid":"2d5bf724-68"},{"uid":"2d5bf724-70"},{"uid":"2d5bf724-72"},{"uid":"2d5bf724-76"},{"uid":"2d5bf724-40"}],"importedBy":[{"uid":"2d5bf724-118"}]},"2d5bf724-80":{"id":"/src/account/role-selector.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-81"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-128"},{"uid":"2d5bf724-133"},{"uid":"2d5bf724-131"},{"uid":"2d5bf724-132"},{"uid":"2d5bf724-38"}],"importedBy":[{"uid":"2d5bf724-84"},{"uid":"2d5bf724-98"},{"uid":"2d5bf724-88"}]},"2d5bf724-82":{"id":"/src/account/styles.ts","moduleParts":{"settings-form.umd.js":"2d5bf724-83"},"imported":[],"importedBy":[{"uid":"2d5bf724-84"},{"uid":"2d5bf724-90"},{"uid":"2d5bf724-86"},{"uid":"2d5bf724-94"},{"uid":"2d5bf724-88"},{"uid":"2d5bf724-92"}]},"2d5bf724-84":{"id":"/src/account/add-account.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-85"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-128"},{"uid":"2d5bf724-129"},{"uid":"2d5bf724-131"},{"uid":"2d5bf724-136"},{"uid":"2d5bf724-130"},{"uid":"2d5bf724-38"},{"uid":"2d5bf724-134"},{"uid":"2d5bf724-80"},{"uid":"2d5bf724-82"},{"uid":"2d5bf724-132"}],"importedBy":[{"uid":"2d5bf724-119"},{"uid":"2d5bf724-90"}]},"2d5bf724-86":{"id":"/src/account/delete-account.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-87"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-128"},{"uid":"2d5bf724-135"},{"uid":"2d5bf724-129"},{"uid":"2d5bf724-130"},{"uid":"2d5bf724-132"},{"uid":"2d5bf724-38"},{"uid":"2d5bf724-82"}],"importedBy":[{"uid":"2d5bf724-119"},{"uid":"2d5bf724-90"}]},"2d5bf724-88":{"id":"/src/account/edit-account.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-89"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-128"},{"uid":"2d5bf724-129"},{"uid":"2d5bf724-130"},{"uid":"2d5bf724-131"},{"uid":"2d5bf724-136"},{"uid":"2d5bf724-132"},{"uid":"2d5bf724-38"},{"uid":"2d5bf724-134"},{"uid":"2d5bf724-80"},{"uid":"2d5bf724-82"}],"importedBy":[{"uid":"2d5bf724-90"}]},"2d5bf724-90":{"id":"/src/account/account-list.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-91"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-128"},{"uid":"2d5bf724-133"},{"uid":"2d5bf724-132"},{"uid":"2d5bf724-38"},{"uid":"2d5bf724-134"},{"uid":"2d5bf724-84"},{"uid":"2d5bf724-86"},{"uid":"2d5bf724-88"},{"uid":"2d5bf724-82"}],"importedBy":[{"uid":"2d5bf724-119"}]},"2d5bf724-92":{"id":"/src/account/login/form.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-93"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-128"},{"uid":"2d5bf724-129"},{"uid":"2d5bf724-136"},{"uid":"2d5bf724-38"},{"uid":"2d5bf724-82"},{"uid":"2d5bf724-134"},{"uid":"2d5bf724-132"}],"importedBy":[{"uid":"2d5bf724-94"}]},"2d5bf724-94":{"id":"/src/account/login/index.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-95"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-128"},{"uid":"2d5bf724-134"},{"uid":"2d5bf724-82"},{"uid":"2d5bf724-92"}],"importedBy":[{"uid":"2d5bf724-119"}]},"2d5bf724-96":{"id":"/src/api-key/styles.ts","moduleParts":{"settings-form.umd.js":"2d5bf724-97"},"imported":[],"importedBy":[{"uid":"2d5bf724-98"},{"uid":"2d5bf724-102"},{"uid":"2d5bf724-100"}]},"2d5bf724-98":{"id":"/src/api-key/add-api-key.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-99"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-128"},{"uid":"2d5bf724-135"},{"uid":"2d5bf724-129"},{"uid":"2d5bf724-131"},{"uid":"2d5bf724-136"},{"uid":"2d5bf724-80"},{"uid":"2d5bf724-38"},{"uid":"2d5bf724-134"},{"uid":"2d5bf724-96"},{"uid":"2d5bf724-132"},{"uid":"2d5bf724-130"}],"importedBy":[{"uid":"2d5bf724-120"},{"uid":"2d5bf724-102"}]},"2d5bf724-100":{"id":"/src/api-key/delete-api-key.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-101"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-128"},{"uid":"2d5bf724-135"},{"uid":"2d5bf724-129"},{"uid":"2d5bf724-130"},{"uid":"2d5bf724-132"},{"uid":"2d5bf724-38"},{"uid":"2d5bf724-96"}],"importedBy":[{"uid":"2d5bf724-120"},{"uid":"2d5bf724-102"}]},"2d5bf724-102":{"id":"/src/api-key/api-key-list.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-103"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-128"},{"uid":"2d5bf724-133"},{"uid":"2d5bf724-132"},{"uid":"2d5bf724-38"},{"uid":"2d5bf724-134"},{"uid":"2d5bf724-98"},{"uid":"2d5bf724-100"},{"uid":"2d5bf724-96"}],"importedBy":[{"uid":"2d5bf724-120"}]},"2d5bf724-104":{"id":"/src/sql_snippet/styles.ts","moduleParts":{"settings-form.umd.js":"2d5bf724-105"},"imported":[],"importedBy":[{"uid":"2d5bf724-106"},{"uid":"2d5bf724-108"},{"uid":"2d5bf724-112"},{"uid":"2d5bf724-110"}]},"2d5bf724-106":{"id":"/src/sql_snippet/add-sql_snippet.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-107"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-128"},{"uid":"2d5bf724-129"},{"uid":"2d5bf724-130"},{"uid":"2d5bf724-131"},{"uid":"2d5bf724-136"},{"uid":"2d5bf724-132"},{"uid":"2d5bf724-38"},{"uid":"2d5bf724-134"},{"uid":"2d5bf724-44"},{"uid":"2d5bf724-104"}],"importedBy":[{"uid":"2d5bf724-121"},{"uid":"2d5bf724-112"}]},"2d5bf724-108":{"id":"/src/sql_snippet/update-sql_snippet.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-109"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-128"},{"uid":"2d5bf724-129"},{"uid":"2d5bf724-130"},{"uid":"2d5bf724-131"},{"uid":"2d5bf724-136"},{"uid":"2d5bf724-38"},{"uid":"2d5bf724-44"},{"uid":"2d5bf724-104"},{"uid":"2d5bf724-134"},{"uid":"2d5bf724-132"}],"importedBy":[{"uid":"2d5bf724-121"},{"uid":"2d5bf724-112"}]},"2d5bf724-110":{"id":"/src/sql_snippet/delete-sql_snippet.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-111"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-128"},{"uid":"2d5bf724-135"},{"uid":"2d5bf724-129"},{"uid":"2d5bf724-130"},{"uid":"2d5bf724-132"},{"uid":"2d5bf724-38"},{"uid":"2d5bf724-104"}],"importedBy":[{"uid":"2d5bf724-121"},{"uid":"2d5bf724-112"}]},"2d5bf724-112":{"id":"/src/sql_snippet/sql_snippet-list.tsx","moduleParts":{"settings-form.umd.js":"2d5bf724-113"},"imported":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-128"},{"uid":"2d5bf724-137"},{"uid":"2d5bf724-133"},{"uid":"2d5bf724-38"},{"uid":"2d5bf724-106"},{"uid":"2d5bf724-110"},{"uid":"2d5bf724-104"},{"uid":"2d5bf724-130"},{"uid":"2d5bf724-132"},{"uid":"2d5bf724-134"},{"uid":"2d5bf724-108"}],"importedBy":[{"uid":"2d5bf724-121"}]},"2d5bf724-114":{"id":"/src/index.ts","moduleParts":{"settings-form.umd.js":"2d5bf724-115"},"imported":[{"uid":"2d5bf724-118"},{"uid":"2d5bf724-119"},{"uid":"2d5bf724-120"},{"uid":"2d5bf724-121"},{"uid":"2d5bf724-18"},{"uid":"2d5bf724-122"},{"uid":"2d5bf724-123"},{"uid":"2d5bf724-124"},{"uid":"2d5bf724-125"},{"uid":"2d5bf724-126"},{"uid":"2d5bf724-116","dynamic":true}],"importedBy":[],"isEntry":true},"2d5bf724-116":{"id":"/package.json","moduleParts":{"settings-form.umd.js":"2d5bf724-117"},"imported":[],"importedBy":[{"uid":"2d5bf724-114"}]},"2d5bf724-118":{"id":"/src/datasource/index.tsx","moduleParts":{},"imported":[{"uid":"2d5bf724-68"},{"uid":"2d5bf724-78"},{"uid":"2d5bf724-72"}],"importedBy":[{"uid":"2d5bf724-114"}]},"2d5bf724-119":{"id":"/src/account/index.tsx","moduleParts":{},"imported":[{"uid":"2d5bf724-84"},{"uid":"2d5bf724-90"},{"uid":"2d5bf724-86"},{"uid":"2d5bf724-94"}],"importedBy":[{"uid":"2d5bf724-114"}]},"2d5bf724-120":{"id":"/src/api-key/index.tsx","moduleParts":{},"imported":[{"uid":"2d5bf724-98"},{"uid":"2d5bf724-102"},{"uid":"2d5bf724-100"}],"importedBy":[{"uid":"2d5bf724-114"}]},"2d5bf724-121":{"id":"/src/sql_snippet/index.tsx","moduleParts":{},"imported":[{"uid":"2d5bf724-106"},{"uid":"2d5bf724-108"},{"uid":"2d5bf724-112"},{"uid":"2d5bf724-110"}],"importedBy":[{"uid":"2d5bf724-114"}]},"2d5bf724-122":{"id":"/src/api-caller/account.typed.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"2d5bf724-114"}]},"2d5bf724-123":{"id":"/src/api-caller/api-key.typed.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"2d5bf724-114"}]},"2d5bf724-124":{"id":"/src/api-caller/datasource.typed.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"2d5bf724-114"}]},"2d5bf724-125":{"id":"/src/api-caller/role.typed.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"2d5bf724-114"}]},"2d5bf724-126":{"id":"/src/api-caller/sql_snippet.typed.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"2d5bf724-114"}]},"2d5bf724-127":{"id":"/Users/leto/github/merico-dev/table/shared/src/index.ts","moduleParts":{},"imported":[{"uid":"2d5bf724-138"}],"importedBy":[{"uid":"2d5bf724-18"}]},"2d5bf724-128":{"id":"@mantine/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"2d5bf724-68"},{"uid":"2d5bf724-78"},{"uid":"2d5bf724-72"},{"uid":"2d5bf724-84"},{"uid":"2d5bf724-90"},{"uid":"2d5bf724-86"},{"uid":"2d5bf724-94"},{"uid":"2d5bf724-98"},{"uid":"2d5bf724-102"},{"uid":"2d5bf724-100"},{"uid":"2d5bf724-106"},{"uid":"2d5bf724-108"},{"uid":"2d5bf724-112"},{"uid":"2d5bf724-110"},{"uid":"2d5bf724-42"},{"uid":"2d5bf724-60"},{"uid":"2d5bf724-66"},{"uid":"2d5bf724-70"},{"uid":"2d5bf724-76"},{"uid":"2d5bf724-80"},{"uid":"2d5bf724-88"},{"uid":"2d5bf724-92"},{"uid":"2d5bf724-64"},{"uid":"2d5bf724-46"},{"uid":"2d5bf724-58"},{"uid":"2d5bf724-74"},{"uid":"2d5bf724-62"}],"isExternal":true},"2d5bf724-129":{"id":"@mantine/notifications","moduleParts":{},"imported":[],"importedBy":[{"uid":"2d5bf724-68"},{"uid":"2d5bf724-72"},{"uid":"2d5bf724-84"},{"uid":"2d5bf724-86"},{"uid":"2d5bf724-98"},{"uid":"2d5bf724-100"},{"uid":"2d5bf724-106"},{"uid":"2d5bf724-108"},{"uid":"2d5bf724-110"},{"uid":"2d5bf724-76"},{"uid":"2d5bf724-88"},{"uid":"2d5bf724-92"}],"isExternal":true},"2d5bf724-130":{"id":"@tabler/icons-react","moduleParts":{},"imported":[],"importedBy":[{"uid":"2d5bf724-68"},{"uid":"2d5bf724-72"},{"uid":"2d5bf724-84"},{"uid":"2d5bf724-86"},{"uid":"2d5bf724-98"},{"uid":"2d5bf724-100"},{"uid":"2d5bf724-106"},{"uid":"2d5bf724-108"},{"uid":"2d5bf724-112"},{"uid":"2d5bf724-110"},{"uid":"2d5bf724-42"},{"uid":"2d5bf724-70"},{"uid":"2d5bf724-76"},{"uid":"2d5bf724-88"},{"uid":"2d5bf724-64"},{"uid":"2d5bf724-46"}],"isExternal":true},"2d5bf724-131":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"2d5bf724-68"},{"uid":"2d5bf724-84"},{"uid":"2d5bf724-98"},{"uid":"2d5bf724-106"},{"uid":"2d5bf724-108"},{"uid":"2d5bf724-60"},{"uid":"2d5bf724-76"},{"uid":"2d5bf724-80"},{"uid":"2d5bf724-88"},{"uid":"2d5bf724-44"},{"uid":"2d5bf724-64"},{"uid":"2d5bf724-58"},{"uid":"2d5bf724-142"},{"uid":"2d5bf724-54"},{"uid":"2d5bf724-56"}],"isExternal":true},"2d5bf724-132":{"id":"react-i18next","moduleParts":{},"imported":[],"importedBy":[{"uid":"2d5bf724-68"},{"uid":"2d5bf724-78"},{"uid":"2d5bf724-72"},{"uid":"2d5bf724-84"},{"uid":"2d5bf724-90"},{"uid":"2d5bf724-86"},{"uid":"2d5bf724-98"},{"uid":"2d5bf724-102"},{"uid":"2d5bf724-100"},{"uid":"2d5bf724-106"},{"uid":"2d5bf724-108"},{"uid":"2d5bf724-112"},{"uid":"2d5bf724-110"},{"uid":"2d5bf724-42"},{"uid":"2d5bf724-60"},{"uid":"2d5bf724-66"},{"uid":"2d5bf724-76"},{"uid":"2d5bf724-80"},{"uid":"2d5bf724-88"},{"uid":"2d5bf724-92"},{"uid":"2d5bf724-64"},{"uid":"2d5bf724-46"},{"uid":"2d5bf724-74"},{"uid":"2d5bf724-54"},{"uid":"2d5bf724-52"}],"isExternal":true},"2d5bf724-133":{"id":"ahooks","moduleParts":{},"imported":[],"importedBy":[{"uid":"2d5bf724-78"},{"uid":"2d5bf724-90"},{"uid":"2d5bf724-102"},{"uid":"2d5bf724-112"},{"uid":"2d5bf724-80"},{"uid":"2d5bf724-64"}],"isExternal":true},"2d5bf724-134":{"id":"/src/components/index.ts","moduleParts":{},"imported":[{"uid":"2d5bf724-44"},{"uid":"2d5bf724-46"},{"uid":"2d5bf724-58"}],"importedBy":[{"uid":"2d5bf724-78"},{"uid":"2d5bf724-84"},{"uid":"2d5bf724-90"},{"uid":"2d5bf724-94"},{"uid":"2d5bf724-98"},{"uid":"2d5bf724-102"},{"uid":"2d5bf724-106"},{"uid":"2d5bf724-108"},{"uid":"2d5bf724-112"},{"uid":"2d5bf724-60"},{"uid":"2d5bf724-66"},{"uid":"2d5bf724-88"},{"uid":"2d5bf724-92"},{"uid":"2d5bf724-74"}]},"2d5bf724-135":{"id":"@mantine/modals","moduleParts":{},"imported":[],"importedBy":[{"uid":"2d5bf724-72"},{"uid":"2d5bf724-86"},{"uid":"2d5bf724-98"},{"uid":"2d5bf724-100"},{"uid":"2d5bf724-110"}],"isExternal":true},"2d5bf724-136":{"id":"react-hook-form","moduleParts":{},"imported":[],"importedBy":[{"uid":"2d5bf724-84"},{"uid":"2d5bf724-98"},{"uid":"2d5bf724-106"},{"uid":"2d5bf724-108"},{"uid":"2d5bf724-60"},{"uid":"2d5bf724-66"},{"uid":"2d5bf724-88"},{"uid":"2d5bf724-92"},{"uid":"2d5bf724-74"}],"isExternal":true},"2d5bf724-137":{"id":"@mantine/code-highlight","moduleParts":{},"imported":[],"importedBy":[{"uid":"2d5bf724-112"}],"isExternal":true},"2d5bf724-138":{"id":"/Users/leto/github/merico-dev/table/shared/src/api-client/index.ts","moduleParts":{},"imported":[{"uid":"2d5bf724-141"},{"uid":"2d5bf724-12"},{"uid":"2d5bf724-14"},{"uid":"2d5bf724-16"}],"importedBy":[{"uid":"2d5bf724-127"}]},"2d5bf724-139":{"id":"\u0000commonjsHelpers.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"2d5bf724-10"},{"uid":"2d5bf724-4"},{"uid":"2d5bf724-8"}]},"2d5bf724-140":{"id":"@monaco-editor/react","moduleParts":{},"imported":[],"importedBy":[{"uid":"2d5bf724-44"},{"uid":"2d5bf724-62"},{"uid":"2d5bf724-56"}],"isExternal":true},"2d5bf724-141":{"id":"/Users/leto/github/merico-dev/table/shared/src/api-client/types.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"2d5bf724-138"}]},"2d5bf724-142":{"id":"\u0000react?commonjs-external","moduleParts":{},"imported":[{"uid":"2d5bf724-131"}],"importedBy":[{"uid":"2d5bf724-4"},{"uid":"2d5bf724-8"}]},"2d5bf724-143":{"id":"crypto-js","moduleParts":{},"imported":[],"importedBy":[{"uid":"2d5bf724-12"}],"isExternal":true},"2d5bf724-144":{"id":"lodash","moduleParts":{},"imported":[],"importedBy":[{"uid":"2d5bf724-14"}],"isExternal":true},"2d5bf724-145":{"id":"axios","moduleParts":{},"imported":[],"importedBy":[{"uid":"2d5bf724-14"}],"isExternal":true},"2d5bf724-146":{"id":"i18next","moduleParts":{},"imported":[],"importedBy":[{"uid":"2d5bf724-52"}],"isExternal":true},"2d5bf724-147":{"id":"i18next-browser-languagedetector","moduleParts":{},"imported":[],"importedBy":[{"uid":"2d5bf724-52"}],"isExternal":true},"2d5bf724-148":{"id":"intl-pluralrules","moduleParts":{},"imported":[],"importedBy":[{"uid":"2d5bf724-52"}],"isExternal":true}},"env":{"rollup":"3.29.4"},"options":{"gzip":false,"brotli":false,"sourcemap":false}};
|
|
4825
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"settings-form.umd.js","children":[{"name":"\u0000/Users/leto/github/merico-dev/table/node_modules/react","children":[{"uid":"f249e279-1","name":"jsx-runtime.js?commonjs-module"},{"name":"cjs","children":[{"uid":"f249e279-3","name":"react-jsx-runtime.production.min.js?commonjs-exports"},{"uid":"f249e279-7","name":"react-jsx-runtime.development.js?commonjs-exports"}]}]},{"name":"Users/leto/github/merico-dev/table","children":[{"name":"node_modules","children":[{"name":"react","children":[{"name":"cjs","children":[{"uid":"f249e279-5","name":"react-jsx-runtime.production.min.js"},{"uid":"f249e279-9","name":"react-jsx-runtime.development.js"}]},{"uid":"f249e279-11","name":"jsx-runtime.js"}]},{"name":"dayjs/esm","children":[{"uid":"f249e279-29","name":"constant.js"},{"name":"locale/en.js","uid":"f249e279-31"},{"uid":"f249e279-33","name":"utils.js"},{"uid":"f249e279-35","name":"index.js"}]}]},{"name":"shared/src/api-client","children":[{"uid":"f249e279-13","name":"utils.ts"},{"uid":"f249e279-15","name":"default-api-client.ts"},{"uid":"f249e279-17","name":"facade-api-client.ts"}]}]},{"name":"src","children":[{"name":"api-caller","children":[{"uid":"f249e279-19","name":"request.ts"},{"uid":"f249e279-21","name":"account.ts"},{"uid":"f249e279-23","name":"api-key.ts"},{"uid":"f249e279-25","name":"datasource.ts"},{"uid":"f249e279-27","name":"role.ts"},{"uid":"f249e279-37","name":"sql_snippet.ts"},{"uid":"f249e279-39","name":"index.ts"}]},{"name":"datasource","children":[{"uid":"f249e279-41","name":"styles.ts"},{"name":"add-data-source","children":[{"uid":"f249e279-43","name":"db-permission-tips.tsx"},{"name":"forms","children":[{"uid":"f249e279-61","name":"database.tsx"},{"uid":"f249e279-67","name":"http.tsx"}]},{"uid":"f249e279-69","name":"index.tsx"}]},{"name":"components","children":[{"name":"function-string-field","children":[{"uid":"f249e279-63","name":"function-string-editor.tsx"},{"uid":"f249e279-65","name":"index.tsx"}]},{"uid":"f249e279-71","name":"data-source-icon.tsx"}]},{"uid":"f249e279-73","name":"delete-data-source.tsx"},{"name":"edit-data-source","children":[{"name":"forms/http.tsx","uid":"f249e279-75"},{"uid":"f249e279-77","name":"index.tsx"}]},{"uid":"f249e279-79","name":"data-source-list.tsx"}]},{"name":"components","children":[{"uid":"f249e279-45","name":"minimal-mocaco-editor.tsx"},{"uid":"f249e279-47","name":"submit-form-button.tsx"},{"uid":"f249e279-59","name":"with-entry.tsx"}]},{"name":"i18n","children":[{"uid":"f249e279-49","name":"en.ts"},{"uid":"f249e279-51","name":"zh.ts"},{"uid":"f249e279-53","name":"i18n.ts"},{"uid":"f249e279-55","name":"i18next-context.tsx"}]},{"name":"utils/load-monaco-editor.ts","uid":"f249e279-57"},{"name":"account","children":[{"uid":"f249e279-81","name":"role-selector.tsx"},{"uid":"f249e279-83","name":"styles.ts"},{"uid":"f249e279-85","name":"add-account.tsx"},{"uid":"f249e279-87","name":"delete-account.tsx"},{"uid":"f249e279-89","name":"edit-account.tsx"},{"uid":"f249e279-91","name":"account-list.tsx"},{"name":"login","children":[{"uid":"f249e279-93","name":"form.tsx"},{"uid":"f249e279-95","name":"index.tsx"}]}]},{"name":"api-key","children":[{"uid":"f249e279-97","name":"styles.ts"},{"uid":"f249e279-99","name":"add-api-key.tsx"},{"uid":"f249e279-101","name":"delete-api-key.tsx"},{"uid":"f249e279-103","name":"api-key-list.tsx"}]},{"name":"sql_snippet","children":[{"uid":"f249e279-105","name":"styles.ts"},{"uid":"f249e279-107","name":"add-sql_snippet.tsx"},{"uid":"f249e279-109","name":"update-sql_snippet.tsx"},{"uid":"f249e279-111","name":"delete-sql_snippet.tsx"},{"uid":"f249e279-113","name":"sql_snippet-list.tsx"}]},{"uid":"f249e279-115","name":"index.ts"}]},{"uid":"f249e279-117","name":"package.json"}]}],"isRoot":true},"nodeParts":{"f249e279-1":{"renderedLength":33,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-0"},"f249e279-3":{"renderedLength":42,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-2"},"f249e279-5":{"renderedLength":1217,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-4"},"f249e279-7":{"renderedLength":39,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-6"},"f249e279-9":{"renderedLength":46244,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-8"},"f249e279-11":{"renderedLength":237,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-10"},"f249e279-13":{"renderedLength":949,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-12"},"f249e279-15":{"renderedLength":2262,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-14"},"f249e279-17":{"renderedLength":422,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-16"},"f249e279-19":{"renderedLength":426,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-18"},"f249e279-21":{"renderedLength":1913,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-20"},"f249e279-23":{"renderedLength":641,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-22"},"f249e279-25":{"renderedLength":730,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-24"},"f249e279-27":{"renderedLength":132,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-26"},"f249e279-29":{"renderedLength":1011,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-28"},"f249e279-31":{"renderedLength":496,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-30"},"f249e279-33":{"renderedLength":1623,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-32"},"f249e279-35":{"renderedLength":14006,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-34"},"f249e279-37":{"renderedLength":1079,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-36"},"f249e279-39":{"renderedLength":94,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-38"},"f249e279-41":{"renderedLength":104,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-40"},"f249e279-43":{"renderedLength":570,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-42"},"f249e279-45":{"renderedLength":675,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-44"},"f249e279-47":{"renderedLength":370,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-46"},"f249e279-49":{"renderedLength":4266,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-48"},"f249e279-51":{"renderedLength":4276,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-50"},"f249e279-53":{"renderedLength":253,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-52"},"f249e279-55":{"renderedLength":246,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-54"},"f249e279-57":{"renderedLength":551,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-56"},"f249e279-59":{"renderedLength":625,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-58"},"f249e279-61":{"renderedLength":3109,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-60"},"f249e279-63":{"renderedLength":502,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-62"},"f249e279-65":{"renderedLength":2398,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-64"},"f249e279-67":{"renderedLength":2894,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-66"},"f249e279-69":{"renderedLength":3130,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-68"},"f249e279-71":{"renderedLength":958,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-70"},"f249e279-73":{"renderedLength":2217,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-72"},"f249e279-75":{"renderedLength":2514,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-74"},"f249e279-77":{"renderedLength":3649,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-76"},"f249e279-79":{"renderedLength":2739,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-78"},"f249e279-81":{"renderedLength":1553,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-80"},"f249e279-83":{"renderedLength":104,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-82"},"f249e279-85":{"renderedLength":3856,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-84"},"f249e279-87":{"renderedLength":1830,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-86"},"f249e279-89":{"renderedLength":4968,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-88"},"f249e279-91":{"renderedLength":3158,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-90"},"f249e279-93":{"renderedLength":2262,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-92"},"f249e279-95":{"renderedLength":397,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-94"},"f249e279-97":{"renderedLength":104,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-96"},"f249e279-99":{"renderedLength":4259,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-98"},"f249e279-101":{"renderedLength":1851,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-100"},"f249e279-103":{"renderedLength":3016,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-102"},"f249e279-105":{"renderedLength":102,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-104"},"f249e279-107":{"renderedLength":3370,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-106"},"f249e279-109":{"renderedLength":3409,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-108"},"f249e279-111":{"renderedLength":1808,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-110"},"f249e279-113":{"renderedLength":3839,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-112"},"f249e279-115":{"renderedLength":187,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-114"},"f249e279-117":{"renderedLength":27,"gzipLength":0,"brotliLength":0,"metaUid":"f249e279-116"}},"nodeMetas":{"f249e279-0":{"id":"\u0000/Users/leto/github/merico-dev/table/node_modules/react/jsx-runtime.js?commonjs-module","moduleParts":{"settings-form.umd.js":"f249e279-1"},"imported":[],"importedBy":[{"uid":"f249e279-10"}]},"f249e279-2":{"id":"\u0000/Users/leto/github/merico-dev/table/node_modules/react/cjs/react-jsx-runtime.production.min.js?commonjs-exports","moduleParts":{"settings-form.umd.js":"f249e279-3"},"imported":[],"importedBy":[{"uid":"f249e279-4"}]},"f249e279-4":{"id":"/Users/leto/github/merico-dev/table/node_modules/react/cjs/react-jsx-runtime.production.min.js","moduleParts":{"settings-form.umd.js":"f249e279-5"},"imported":[{"uid":"f249e279-139"},{"uid":"f249e279-2"},{"uid":"f249e279-142"}],"importedBy":[{"uid":"f249e279-10"}]},"f249e279-6":{"id":"\u0000/Users/leto/github/merico-dev/table/node_modules/react/cjs/react-jsx-runtime.development.js?commonjs-exports","moduleParts":{"settings-form.umd.js":"f249e279-7"},"imported":[],"importedBy":[{"uid":"f249e279-8"}]},"f249e279-8":{"id":"/Users/leto/github/merico-dev/table/node_modules/react/cjs/react-jsx-runtime.development.js","moduleParts":{"settings-form.umd.js":"f249e279-9"},"imported":[{"uid":"f249e279-139"},{"uid":"f249e279-6"},{"uid":"f249e279-142"}],"importedBy":[{"uid":"f249e279-10"}]},"f249e279-10":{"id":"/Users/leto/github/merico-dev/table/node_modules/react/jsx-runtime.js","moduleParts":{"settings-form.umd.js":"f249e279-11"},"imported":[{"uid":"f249e279-139"},{"uid":"f249e279-0"},{"uid":"f249e279-4"},{"uid":"f249e279-8"}],"importedBy":[{"uid":"f249e279-68"},{"uid":"f249e279-78"},{"uid":"f249e279-72"},{"uid":"f249e279-84"},{"uid":"f249e279-90"},{"uid":"f249e279-86"},{"uid":"f249e279-94"},{"uid":"f249e279-98"},{"uid":"f249e279-102"},{"uid":"f249e279-100"},{"uid":"f249e279-106"},{"uid":"f249e279-108"},{"uid":"f249e279-112"},{"uid":"f249e279-110"},{"uid":"f249e279-42"},{"uid":"f249e279-60"},{"uid":"f249e279-66"},{"uid":"f249e279-70"},{"uid":"f249e279-76"},{"uid":"f249e279-80"},{"uid":"f249e279-88"},{"uid":"f249e279-92"},{"uid":"f249e279-44"},{"uid":"f249e279-64"},{"uid":"f249e279-46"},{"uid":"f249e279-58"},{"uid":"f249e279-74"},{"uid":"f249e279-62"},{"uid":"f249e279-54"}]},"f249e279-12":{"id":"/Users/leto/github/merico-dev/table/shared/src/api-client/utils.ts","moduleParts":{"settings-form.umd.js":"f249e279-13"},"imported":[{"uid":"f249e279-143"}],"importedBy":[{"uid":"f249e279-138"},{"uid":"f249e279-14"}]},"f249e279-14":{"id":"/Users/leto/github/merico-dev/table/shared/src/api-client/default-api-client.ts","moduleParts":{"settings-form.umd.js":"f249e279-15"},"imported":[{"uid":"f249e279-144"},{"uid":"f249e279-12"},{"uid":"f249e279-145"}],"importedBy":[{"uid":"f249e279-138"}]},"f249e279-16":{"id":"/Users/leto/github/merico-dev/table/shared/src/api-client/facade-api-client.ts","moduleParts":{"settings-form.umd.js":"f249e279-17"},"imported":[],"importedBy":[{"uid":"f249e279-138"}]},"f249e279-18":{"id":"/src/api-caller/request.ts","moduleParts":{"settings-form.umd.js":"f249e279-19"},"imported":[{"uid":"f249e279-127"}],"importedBy":[{"uid":"f249e279-114"},{"uid":"f249e279-20"},{"uid":"f249e279-22"},{"uid":"f249e279-24"},{"uid":"f249e279-26"},{"uid":"f249e279-36"},{"uid":"f249e279-58"}]},"f249e279-20":{"id":"/src/api-caller/account.ts","moduleParts":{"settings-form.umd.js":"f249e279-21"},"imported":[{"uid":"f249e279-18"}],"importedBy":[{"uid":"f249e279-38"}]},"f249e279-22":{"id":"/src/api-caller/api-key.ts","moduleParts":{"settings-form.umd.js":"f249e279-23"},"imported":[{"uid":"f249e279-18"}],"importedBy":[{"uid":"f249e279-38"}]},"f249e279-24":{"id":"/src/api-caller/datasource.ts","moduleParts":{"settings-form.umd.js":"f249e279-25"},"imported":[{"uid":"f249e279-18"}],"importedBy":[{"uid":"f249e279-38"}]},"f249e279-26":{"id":"/src/api-caller/role.ts","moduleParts":{"settings-form.umd.js":"f249e279-27"},"imported":[{"uid":"f249e279-18"}],"importedBy":[{"uid":"f249e279-38"}]},"f249e279-28":{"id":"/Users/leto/github/merico-dev/table/node_modules/dayjs/esm/constant.js","moduleParts":{"settings-form.umd.js":"f249e279-29"},"imported":[],"importedBy":[{"uid":"f249e279-34"},{"uid":"f249e279-32"}]},"f249e279-30":{"id":"/Users/leto/github/merico-dev/table/node_modules/dayjs/esm/locale/en.js","moduleParts":{"settings-form.umd.js":"f249e279-31"},"imported":[],"importedBy":[{"uid":"f249e279-34"}]},"f249e279-32":{"id":"/Users/leto/github/merico-dev/table/node_modules/dayjs/esm/utils.js","moduleParts":{"settings-form.umd.js":"f249e279-33"},"imported":[{"uid":"f249e279-28"}],"importedBy":[{"uid":"f249e279-34"}]},"f249e279-34":{"id":"/Users/leto/github/merico-dev/table/node_modules/dayjs/esm/index.js","moduleParts":{"settings-form.umd.js":"f249e279-35"},"imported":[{"uid":"f249e279-28"},{"uid":"f249e279-30"},{"uid":"f249e279-32"}],"importedBy":[{"uid":"f249e279-36"}]},"f249e279-36":{"id":"/src/api-caller/sql_snippet.ts","moduleParts":{"settings-form.umd.js":"f249e279-37"},"imported":[{"uid":"f249e279-34"},{"uid":"f249e279-18"}],"importedBy":[{"uid":"f249e279-38"}]},"f249e279-38":{"id":"/src/api-caller/index.ts","moduleParts":{"settings-form.umd.js":"f249e279-39"},"imported":[{"uid":"f249e279-20"},{"uid":"f249e279-22"},{"uid":"f249e279-24"},{"uid":"f249e279-26"},{"uid":"f249e279-36"}],"importedBy":[{"uid":"f249e279-68"},{"uid":"f249e279-78"},{"uid":"f249e279-72"},{"uid":"f249e279-84"},{"uid":"f249e279-90"},{"uid":"f249e279-86"},{"uid":"f249e279-98"},{"uid":"f249e279-102"},{"uid":"f249e279-100"},{"uid":"f249e279-106"},{"uid":"f249e279-108"},{"uid":"f249e279-112"},{"uid":"f249e279-110"},{"uid":"f249e279-76"},{"uid":"f249e279-80"},{"uid":"f249e279-88"},{"uid":"f249e279-92"}]},"f249e279-40":{"id":"/src/datasource/styles.ts","moduleParts":{"settings-form.umd.js":"f249e279-41"},"imported":[],"importedBy":[{"uid":"f249e279-68"},{"uid":"f249e279-78"},{"uid":"f249e279-72"},{"uid":"f249e279-42"},{"uid":"f249e279-60"},{"uid":"f249e279-66"},{"uid":"f249e279-76"},{"uid":"f249e279-74"}]},"f249e279-42":{"id":"/src/datasource/add-data-source/db-permission-tips.tsx","moduleParts":{"settings-form.umd.js":"f249e279-43"},"imported":[{"uid":"f249e279-10"},{"uid":"f249e279-128"},{"uid":"f249e279-130"},{"uid":"f249e279-132"},{"uid":"f249e279-40"}],"importedBy":[{"uid":"f249e279-68"}]},"f249e279-44":{"id":"/src/components/minimal-mocaco-editor.tsx","moduleParts":{"settings-form.umd.js":"f249e279-45"},"imported":[{"uid":"f249e279-10"},{"uid":"f249e279-140"},{"uid":"f249e279-131"}],"importedBy":[{"uid":"f249e279-106"},{"uid":"f249e279-108"},{"uid":"f249e279-134"}]},"f249e279-46":{"id":"/src/components/submit-form-button.tsx","moduleParts":{"settings-form.umd.js":"f249e279-47"},"imported":[{"uid":"f249e279-10"},{"uid":"f249e279-128"},{"uid":"f249e279-130"},{"uid":"f249e279-132"}],"importedBy":[{"uid":"f249e279-134"}]},"f249e279-48":{"id":"/src/i18n/en.ts","moduleParts":{"settings-form.umd.js":"f249e279-49"},"imported":[],"importedBy":[{"uid":"f249e279-52"}]},"f249e279-50":{"id":"/src/i18n/zh.ts","moduleParts":{"settings-form.umd.js":"f249e279-51"},"imported":[],"importedBy":[{"uid":"f249e279-52"}]},"f249e279-52":{"id":"/src/i18n/i18n.ts","moduleParts":{"settings-form.umd.js":"f249e279-53"},"imported":[{"uid":"f249e279-146"},{"uid":"f249e279-132"},{"uid":"f249e279-147"},{"uid":"f249e279-148"},{"uid":"f249e279-48"},{"uid":"f249e279-50"}],"importedBy":[{"uid":"f249e279-54"}]},"f249e279-54":{"id":"/src/i18n/i18next-context.tsx","moduleParts":{"settings-form.umd.js":"f249e279-55"},"imported":[{"uid":"f249e279-10"},{"uid":"f249e279-131"},{"uid":"f249e279-132"},{"uid":"f249e279-52"}],"importedBy":[{"uid":"f249e279-58"}]},"f249e279-56":{"id":"/src/utils/load-monaco-editor.ts","moduleParts":{"settings-form.umd.js":"f249e279-57"},"imported":[{"uid":"f249e279-140"},{"uid":"f249e279-131"}],"importedBy":[{"uid":"f249e279-58"}]},"f249e279-58":{"id":"/src/components/with-entry.tsx","moduleParts":{"settings-form.umd.js":"f249e279-59"},"imported":[{"uid":"f249e279-10"},{"uid":"f249e279-131"},{"uid":"f249e279-18"},{"uid":"f249e279-54"},{"uid":"f249e279-56"},{"uid":"f249e279-128"}],"importedBy":[{"uid":"f249e279-134"}]},"f249e279-60":{"id":"/src/datasource/add-data-source/forms/database.tsx","moduleParts":{"settings-form.umd.js":"f249e279-61"},"imported":[{"uid":"f249e279-10"},{"uid":"f249e279-128"},{"uid":"f249e279-131"},{"uid":"f249e279-136"},{"uid":"f249e279-134"},{"uid":"f249e279-40"},{"uid":"f249e279-132"}],"importedBy":[{"uid":"f249e279-68"}]},"f249e279-62":{"id":"/src/datasource/components/function-string-field/function-string-editor.tsx","moduleParts":{"settings-form.umd.js":"f249e279-63"},"imported":[{"uid":"f249e279-10"},{"uid":"f249e279-128"},{"uid":"f249e279-140"}],"importedBy":[{"uid":"f249e279-64"}]},"f249e279-64":{"id":"/src/datasource/components/function-string-field/index.tsx","moduleParts":{"settings-form.umd.js":"f249e279-65"},"imported":[{"uid":"f249e279-10"},{"uid":"f249e279-128"},{"uid":"f249e279-130"},{"uid":"f249e279-133"},{"uid":"f249e279-131"},{"uid":"f249e279-132"},{"uid":"f249e279-62"}],"importedBy":[{"uid":"f249e279-66"},{"uid":"f249e279-74"}]},"f249e279-66":{"id":"/src/datasource/add-data-source/forms/http.tsx","moduleParts":{"settings-form.umd.js":"f249e279-67"},"imported":[{"uid":"f249e279-10"},{"uid":"f249e279-128"},{"uid":"f249e279-136"},{"uid":"f249e279-40"},{"uid":"f249e279-64"},{"uid":"f249e279-134"},{"uid":"f249e279-132"}],"importedBy":[{"uid":"f249e279-68"}]},"f249e279-68":{"id":"/src/datasource/add-data-source/index.tsx","moduleParts":{"settings-form.umd.js":"f249e279-69"},"imported":[{"uid":"f249e279-10"},{"uid":"f249e279-128"},{"uid":"f249e279-129"},{"uid":"f249e279-130"},{"uid":"f249e279-131"},{"uid":"f249e279-132"},{"uid":"f249e279-38"},{"uid":"f249e279-40"},{"uid":"f249e279-42"},{"uid":"f249e279-60"},{"uid":"f249e279-66"}],"importedBy":[{"uid":"f249e279-118"},{"uid":"f249e279-78"}]},"f249e279-70":{"id":"/src/datasource/components/data-source-icon.tsx","moduleParts":{"settings-form.umd.js":"f249e279-71"},"imported":[{"uid":"f249e279-10"},{"uid":"f249e279-130"},{"uid":"f249e279-128"}],"importedBy":[{"uid":"f249e279-78"}]},"f249e279-72":{"id":"/src/datasource/delete-data-source.tsx","moduleParts":{"settings-form.umd.js":"f249e279-73"},"imported":[{"uid":"f249e279-10"},{"uid":"f249e279-128"},{"uid":"f249e279-135"},{"uid":"f249e279-129"},{"uid":"f249e279-130"},{"uid":"f249e279-132"},{"uid":"f249e279-38"},{"uid":"f249e279-40"}],"importedBy":[{"uid":"f249e279-118"},{"uid":"f249e279-78"}]},"f249e279-74":{"id":"/src/datasource/edit-data-source/forms/http.tsx","moduleParts":{"settings-form.umd.js":"f249e279-75"},"imported":[{"uid":"f249e279-10"},{"uid":"f249e279-128"},{"uid":"f249e279-136"},{"uid":"f249e279-132"},{"uid":"f249e279-134"},{"uid":"f249e279-64"},{"uid":"f249e279-40"}],"importedBy":[{"uid":"f249e279-76"}]},"f249e279-76":{"id":"/src/datasource/edit-data-source/index.tsx","moduleParts":{"settings-form.umd.js":"f249e279-77"},"imported":[{"uid":"f249e279-10"},{"uid":"f249e279-128"},{"uid":"f249e279-129"},{"uid":"f249e279-130"},{"uid":"f249e279-131"},{"uid":"f249e279-38"},{"uid":"f249e279-40"},{"uid":"f249e279-74"},{"uid":"f249e279-132"}],"importedBy":[{"uid":"f249e279-78"}]},"f249e279-78":{"id":"/src/datasource/data-source-list.tsx","moduleParts":{"settings-form.umd.js":"f249e279-79"},"imported":[{"uid":"f249e279-10"},{"uid":"f249e279-128"},{"uid":"f249e279-133"},{"uid":"f249e279-132"},{"uid":"f249e279-38"},{"uid":"f249e279-134"},{"uid":"f249e279-68"},{"uid":"f249e279-70"},{"uid":"f249e279-72"},{"uid":"f249e279-76"},{"uid":"f249e279-40"}],"importedBy":[{"uid":"f249e279-118"}]},"f249e279-80":{"id":"/src/account/role-selector.tsx","moduleParts":{"settings-form.umd.js":"f249e279-81"},"imported":[{"uid":"f249e279-10"},{"uid":"f249e279-128"},{"uid":"f249e279-133"},{"uid":"f249e279-131"},{"uid":"f249e279-132"},{"uid":"f249e279-38"}],"importedBy":[{"uid":"f249e279-84"},{"uid":"f249e279-98"},{"uid":"f249e279-88"}]},"f249e279-82":{"id":"/src/account/styles.ts","moduleParts":{"settings-form.umd.js":"f249e279-83"},"imported":[],"importedBy":[{"uid":"f249e279-84"},{"uid":"f249e279-90"},{"uid":"f249e279-86"},{"uid":"f249e279-94"},{"uid":"f249e279-88"},{"uid":"f249e279-92"}]},"f249e279-84":{"id":"/src/account/add-account.tsx","moduleParts":{"settings-form.umd.js":"f249e279-85"},"imported":[{"uid":"f249e279-10"},{"uid":"f249e279-128"},{"uid":"f249e279-129"},{"uid":"f249e279-131"},{"uid":"f249e279-136"},{"uid":"f249e279-130"},{"uid":"f249e279-38"},{"uid":"f249e279-134"},{"uid":"f249e279-80"},{"uid":"f249e279-82"},{"uid":"f249e279-132"}],"importedBy":[{"uid":"f249e279-119"},{"uid":"f249e279-90"}]},"f249e279-86":{"id":"/src/account/delete-account.tsx","moduleParts":{"settings-form.umd.js":"f249e279-87"},"imported":[{"uid":"f249e279-10"},{"uid":"f249e279-128"},{"uid":"f249e279-135"},{"uid":"f249e279-129"},{"uid":"f249e279-130"},{"uid":"f249e279-132"},{"uid":"f249e279-38"},{"uid":"f249e279-82"}],"importedBy":[{"uid":"f249e279-119"},{"uid":"f249e279-90"}]},"f249e279-88":{"id":"/src/account/edit-account.tsx","moduleParts":{"settings-form.umd.js":"f249e279-89"},"imported":[{"uid":"f249e279-10"},{"uid":"f249e279-128"},{"uid":"f249e279-129"},{"uid":"f249e279-130"},{"uid":"f249e279-131"},{"uid":"f249e279-136"},{"uid":"f249e279-132"},{"uid":"f249e279-38"},{"uid":"f249e279-134"},{"uid":"f249e279-80"},{"uid":"f249e279-82"}],"importedBy":[{"uid":"f249e279-90"}]},"f249e279-90":{"id":"/src/account/account-list.tsx","moduleParts":{"settings-form.umd.js":"f249e279-91"},"imported":[{"uid":"f249e279-10"},{"uid":"f249e279-128"},{"uid":"f249e279-133"},{"uid":"f249e279-132"},{"uid":"f249e279-38"},{"uid":"f249e279-134"},{"uid":"f249e279-84"},{"uid":"f249e279-86"},{"uid":"f249e279-88"},{"uid":"f249e279-82"}],"importedBy":[{"uid":"f249e279-119"}]},"f249e279-92":{"id":"/src/account/login/form.tsx","moduleParts":{"settings-form.umd.js":"f249e279-93"},"imported":[{"uid":"f249e279-10"},{"uid":"f249e279-128"},{"uid":"f249e279-129"},{"uid":"f249e279-136"},{"uid":"f249e279-38"},{"uid":"f249e279-82"},{"uid":"f249e279-134"},{"uid":"f249e279-132"}],"importedBy":[{"uid":"f249e279-94"}]},"f249e279-94":{"id":"/src/account/login/index.tsx","moduleParts":{"settings-form.umd.js":"f249e279-95"},"imported":[{"uid":"f249e279-10"},{"uid":"f249e279-128"},{"uid":"f249e279-134"},{"uid":"f249e279-82"},{"uid":"f249e279-92"}],"importedBy":[{"uid":"f249e279-119"}]},"f249e279-96":{"id":"/src/api-key/styles.ts","moduleParts":{"settings-form.umd.js":"f249e279-97"},"imported":[],"importedBy":[{"uid":"f249e279-98"},{"uid":"f249e279-102"},{"uid":"f249e279-100"}]},"f249e279-98":{"id":"/src/api-key/add-api-key.tsx","moduleParts":{"settings-form.umd.js":"f249e279-99"},"imported":[{"uid":"f249e279-10"},{"uid":"f249e279-128"},{"uid":"f249e279-135"},{"uid":"f249e279-129"},{"uid":"f249e279-131"},{"uid":"f249e279-136"},{"uid":"f249e279-80"},{"uid":"f249e279-38"},{"uid":"f249e279-134"},{"uid":"f249e279-96"},{"uid":"f249e279-132"},{"uid":"f249e279-130"}],"importedBy":[{"uid":"f249e279-120"},{"uid":"f249e279-102"}]},"f249e279-100":{"id":"/src/api-key/delete-api-key.tsx","moduleParts":{"settings-form.umd.js":"f249e279-101"},"imported":[{"uid":"f249e279-10"},{"uid":"f249e279-128"},{"uid":"f249e279-135"},{"uid":"f249e279-129"},{"uid":"f249e279-130"},{"uid":"f249e279-132"},{"uid":"f249e279-38"},{"uid":"f249e279-96"}],"importedBy":[{"uid":"f249e279-120"},{"uid":"f249e279-102"}]},"f249e279-102":{"id":"/src/api-key/api-key-list.tsx","moduleParts":{"settings-form.umd.js":"f249e279-103"},"imported":[{"uid":"f249e279-10"},{"uid":"f249e279-128"},{"uid":"f249e279-133"},{"uid":"f249e279-132"},{"uid":"f249e279-38"},{"uid":"f249e279-134"},{"uid":"f249e279-98"},{"uid":"f249e279-100"},{"uid":"f249e279-96"}],"importedBy":[{"uid":"f249e279-120"}]},"f249e279-104":{"id":"/src/sql_snippet/styles.ts","moduleParts":{"settings-form.umd.js":"f249e279-105"},"imported":[],"importedBy":[{"uid":"f249e279-106"},{"uid":"f249e279-108"},{"uid":"f249e279-112"},{"uid":"f249e279-110"}]},"f249e279-106":{"id":"/src/sql_snippet/add-sql_snippet.tsx","moduleParts":{"settings-form.umd.js":"f249e279-107"},"imported":[{"uid":"f249e279-10"},{"uid":"f249e279-128"},{"uid":"f249e279-129"},{"uid":"f249e279-130"},{"uid":"f249e279-131"},{"uid":"f249e279-136"},{"uid":"f249e279-132"},{"uid":"f249e279-38"},{"uid":"f249e279-134"},{"uid":"f249e279-44"},{"uid":"f249e279-104"}],"importedBy":[{"uid":"f249e279-121"},{"uid":"f249e279-112"}]},"f249e279-108":{"id":"/src/sql_snippet/update-sql_snippet.tsx","moduleParts":{"settings-form.umd.js":"f249e279-109"},"imported":[{"uid":"f249e279-10"},{"uid":"f249e279-128"},{"uid":"f249e279-129"},{"uid":"f249e279-130"},{"uid":"f249e279-131"},{"uid":"f249e279-136"},{"uid":"f249e279-38"},{"uid":"f249e279-44"},{"uid":"f249e279-104"},{"uid":"f249e279-134"},{"uid":"f249e279-132"}],"importedBy":[{"uid":"f249e279-121"},{"uid":"f249e279-112"}]},"f249e279-110":{"id":"/src/sql_snippet/delete-sql_snippet.tsx","moduleParts":{"settings-form.umd.js":"f249e279-111"},"imported":[{"uid":"f249e279-10"},{"uid":"f249e279-128"},{"uid":"f249e279-135"},{"uid":"f249e279-129"},{"uid":"f249e279-130"},{"uid":"f249e279-132"},{"uid":"f249e279-38"},{"uid":"f249e279-104"}],"importedBy":[{"uid":"f249e279-121"},{"uid":"f249e279-112"}]},"f249e279-112":{"id":"/src/sql_snippet/sql_snippet-list.tsx","moduleParts":{"settings-form.umd.js":"f249e279-113"},"imported":[{"uid":"f249e279-10"},{"uid":"f249e279-128"},{"uid":"f249e279-137"},{"uid":"f249e279-133"},{"uid":"f249e279-38"},{"uid":"f249e279-106"},{"uid":"f249e279-110"},{"uid":"f249e279-104"},{"uid":"f249e279-130"},{"uid":"f249e279-132"},{"uid":"f249e279-134"},{"uid":"f249e279-108"}],"importedBy":[{"uid":"f249e279-121"}]},"f249e279-114":{"id":"/src/index.ts","moduleParts":{"settings-form.umd.js":"f249e279-115"},"imported":[{"uid":"f249e279-118"},{"uid":"f249e279-119"},{"uid":"f249e279-120"},{"uid":"f249e279-121"},{"uid":"f249e279-18"},{"uid":"f249e279-122"},{"uid":"f249e279-123"},{"uid":"f249e279-124"},{"uid":"f249e279-125"},{"uid":"f249e279-126"},{"uid":"f249e279-116","dynamic":true}],"importedBy":[],"isEntry":true},"f249e279-116":{"id":"/package.json","moduleParts":{"settings-form.umd.js":"f249e279-117"},"imported":[],"importedBy":[{"uid":"f249e279-114"}]},"f249e279-118":{"id":"/src/datasource/index.tsx","moduleParts":{},"imported":[{"uid":"f249e279-68"},{"uid":"f249e279-78"},{"uid":"f249e279-72"}],"importedBy":[{"uid":"f249e279-114"}]},"f249e279-119":{"id":"/src/account/index.tsx","moduleParts":{},"imported":[{"uid":"f249e279-84"},{"uid":"f249e279-90"},{"uid":"f249e279-86"},{"uid":"f249e279-94"}],"importedBy":[{"uid":"f249e279-114"}]},"f249e279-120":{"id":"/src/api-key/index.tsx","moduleParts":{},"imported":[{"uid":"f249e279-98"},{"uid":"f249e279-102"},{"uid":"f249e279-100"}],"importedBy":[{"uid":"f249e279-114"}]},"f249e279-121":{"id":"/src/sql_snippet/index.tsx","moduleParts":{},"imported":[{"uid":"f249e279-106"},{"uid":"f249e279-108"},{"uid":"f249e279-112"},{"uid":"f249e279-110"}],"importedBy":[{"uid":"f249e279-114"}]},"f249e279-122":{"id":"/src/api-caller/account.typed.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"f249e279-114"}]},"f249e279-123":{"id":"/src/api-caller/api-key.typed.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"f249e279-114"}]},"f249e279-124":{"id":"/src/api-caller/datasource.typed.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"f249e279-114"}]},"f249e279-125":{"id":"/src/api-caller/role.typed.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"f249e279-114"}]},"f249e279-126":{"id":"/src/api-caller/sql_snippet.typed.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"f249e279-114"}]},"f249e279-127":{"id":"/Users/leto/github/merico-dev/table/shared/src/index.ts","moduleParts":{},"imported":[{"uid":"f249e279-138"}],"importedBy":[{"uid":"f249e279-18"}]},"f249e279-128":{"id":"@mantine/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"f249e279-68"},{"uid":"f249e279-78"},{"uid":"f249e279-72"},{"uid":"f249e279-84"},{"uid":"f249e279-90"},{"uid":"f249e279-86"},{"uid":"f249e279-94"},{"uid":"f249e279-98"},{"uid":"f249e279-102"},{"uid":"f249e279-100"},{"uid":"f249e279-106"},{"uid":"f249e279-108"},{"uid":"f249e279-112"},{"uid":"f249e279-110"},{"uid":"f249e279-42"},{"uid":"f249e279-60"},{"uid":"f249e279-66"},{"uid":"f249e279-70"},{"uid":"f249e279-76"},{"uid":"f249e279-80"},{"uid":"f249e279-88"},{"uid":"f249e279-92"},{"uid":"f249e279-64"},{"uid":"f249e279-46"},{"uid":"f249e279-58"},{"uid":"f249e279-74"},{"uid":"f249e279-62"}],"isExternal":true},"f249e279-129":{"id":"@mantine/notifications","moduleParts":{},"imported":[],"importedBy":[{"uid":"f249e279-68"},{"uid":"f249e279-72"},{"uid":"f249e279-84"},{"uid":"f249e279-86"},{"uid":"f249e279-98"},{"uid":"f249e279-100"},{"uid":"f249e279-106"},{"uid":"f249e279-108"},{"uid":"f249e279-110"},{"uid":"f249e279-76"},{"uid":"f249e279-88"},{"uid":"f249e279-92"}],"isExternal":true},"f249e279-130":{"id":"@tabler/icons-react","moduleParts":{},"imported":[],"importedBy":[{"uid":"f249e279-68"},{"uid":"f249e279-72"},{"uid":"f249e279-84"},{"uid":"f249e279-86"},{"uid":"f249e279-98"},{"uid":"f249e279-100"},{"uid":"f249e279-106"},{"uid":"f249e279-108"},{"uid":"f249e279-112"},{"uid":"f249e279-110"},{"uid":"f249e279-42"},{"uid":"f249e279-70"},{"uid":"f249e279-76"},{"uid":"f249e279-88"},{"uid":"f249e279-64"},{"uid":"f249e279-46"}],"isExternal":true},"f249e279-131":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"f249e279-68"},{"uid":"f249e279-84"},{"uid":"f249e279-98"},{"uid":"f249e279-106"},{"uid":"f249e279-108"},{"uid":"f249e279-60"},{"uid":"f249e279-76"},{"uid":"f249e279-80"},{"uid":"f249e279-88"},{"uid":"f249e279-44"},{"uid":"f249e279-64"},{"uid":"f249e279-58"},{"uid":"f249e279-142"},{"uid":"f249e279-54"},{"uid":"f249e279-56"}],"isExternal":true},"f249e279-132":{"id":"react-i18next","moduleParts":{},"imported":[],"importedBy":[{"uid":"f249e279-68"},{"uid":"f249e279-78"},{"uid":"f249e279-72"},{"uid":"f249e279-84"},{"uid":"f249e279-90"},{"uid":"f249e279-86"},{"uid":"f249e279-98"},{"uid":"f249e279-102"},{"uid":"f249e279-100"},{"uid":"f249e279-106"},{"uid":"f249e279-108"},{"uid":"f249e279-112"},{"uid":"f249e279-110"},{"uid":"f249e279-42"},{"uid":"f249e279-60"},{"uid":"f249e279-66"},{"uid":"f249e279-76"},{"uid":"f249e279-80"},{"uid":"f249e279-88"},{"uid":"f249e279-92"},{"uid":"f249e279-64"},{"uid":"f249e279-46"},{"uid":"f249e279-74"},{"uid":"f249e279-54"},{"uid":"f249e279-52"}],"isExternal":true},"f249e279-133":{"id":"ahooks","moduleParts":{},"imported":[],"importedBy":[{"uid":"f249e279-78"},{"uid":"f249e279-90"},{"uid":"f249e279-102"},{"uid":"f249e279-112"},{"uid":"f249e279-80"},{"uid":"f249e279-64"}],"isExternal":true},"f249e279-134":{"id":"/src/components/index.ts","moduleParts":{},"imported":[{"uid":"f249e279-44"},{"uid":"f249e279-46"},{"uid":"f249e279-58"}],"importedBy":[{"uid":"f249e279-78"},{"uid":"f249e279-84"},{"uid":"f249e279-90"},{"uid":"f249e279-94"},{"uid":"f249e279-98"},{"uid":"f249e279-102"},{"uid":"f249e279-106"},{"uid":"f249e279-108"},{"uid":"f249e279-112"},{"uid":"f249e279-60"},{"uid":"f249e279-66"},{"uid":"f249e279-88"},{"uid":"f249e279-92"},{"uid":"f249e279-74"}]},"f249e279-135":{"id":"@mantine/modals","moduleParts":{},"imported":[],"importedBy":[{"uid":"f249e279-72"},{"uid":"f249e279-86"},{"uid":"f249e279-98"},{"uid":"f249e279-100"},{"uid":"f249e279-110"}],"isExternal":true},"f249e279-136":{"id":"react-hook-form","moduleParts":{},"imported":[],"importedBy":[{"uid":"f249e279-84"},{"uid":"f249e279-98"},{"uid":"f249e279-106"},{"uid":"f249e279-108"},{"uid":"f249e279-60"},{"uid":"f249e279-66"},{"uid":"f249e279-88"},{"uid":"f249e279-92"},{"uid":"f249e279-74"}],"isExternal":true},"f249e279-137":{"id":"@mantine/code-highlight","moduleParts":{},"imported":[],"importedBy":[{"uid":"f249e279-112"}],"isExternal":true},"f249e279-138":{"id":"/Users/leto/github/merico-dev/table/shared/src/api-client/index.ts","moduleParts":{},"imported":[{"uid":"f249e279-141"},{"uid":"f249e279-12"},{"uid":"f249e279-14"},{"uid":"f249e279-16"}],"importedBy":[{"uid":"f249e279-127"}]},"f249e279-139":{"id":"\u0000commonjsHelpers.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"f249e279-10"},{"uid":"f249e279-4"},{"uid":"f249e279-8"}]},"f249e279-140":{"id":"@monaco-editor/react","moduleParts":{},"imported":[],"importedBy":[{"uid":"f249e279-44"},{"uid":"f249e279-62"},{"uid":"f249e279-56"}],"isExternal":true},"f249e279-141":{"id":"/Users/leto/github/merico-dev/table/shared/src/api-client/types.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"f249e279-138"}]},"f249e279-142":{"id":"\u0000react?commonjs-external","moduleParts":{},"imported":[{"uid":"f249e279-131"}],"importedBy":[{"uid":"f249e279-4"},{"uid":"f249e279-8"}]},"f249e279-143":{"id":"crypto-js","moduleParts":{},"imported":[],"importedBy":[{"uid":"f249e279-12"}],"isExternal":true},"f249e279-144":{"id":"lodash","moduleParts":{},"imported":[],"importedBy":[{"uid":"f249e279-14"}],"isExternal":true},"f249e279-145":{"id":"axios","moduleParts":{},"imported":[],"importedBy":[{"uid":"f249e279-14"}],"isExternal":true},"f249e279-146":{"id":"i18next","moduleParts":{},"imported":[],"importedBy":[{"uid":"f249e279-52"}],"isExternal":true},"f249e279-147":{"id":"i18next-browser-languagedetector","moduleParts":{},"imported":[],"importedBy":[{"uid":"f249e279-52"}],"isExternal":true},"f249e279-148":{"id":"intl-pluralrules","moduleParts":{},"imported":[],"importedBy":[{"uid":"f249e279-52"}],"isExternal":true}},"env":{"rollup":"3.29.4"},"options":{"gzip":false,"brotli":false,"sourcemap":false}};
|
|
4826
4826
|
|
|
4827
4827
|
const run = () => {
|
|
4828
4828
|
const width = window.innerWidth;
|
package/dist/version.json
CHANGED