@devtable/settings-form 8.13.3 → 8.13.5
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,7 +1,7 @@
|
|
|
1
|
-
import { Box as F, TextInput as D, Divider as Te, Group as O, NumberInput as $r, PasswordInput as de, Button as T, Modal as ne, Stack as ze, SegmentedControl as Yr, useMantineTheme as Kr, Tooltip as Br, Text as ue, LoadingOverlay as Oe, Table as
|
|
2
|
-
import { showNotification as
|
|
1
|
+
import { Box as F, TextInput as D, Divider as Te, Group as O, NumberInput as $r, PasswordInput as de, Button as T, Modal as ne, Stack as ze, SegmentedControl as Yr, useMantineTheme as Kr, Tooltip as Br, Text as ue, LoadingOverlay as Oe, Table as ke, Select as Gr, Switch as Hr } from "@mantine/core";
|
|
2
|
+
import { showNotification as V, updateNotification as x } from "@mantine/notifications";
|
|
3
3
|
import * as ee from "react";
|
|
4
|
-
import H, { useEffect as cr, forwardRef as
|
|
4
|
+
import H, { useEffect as cr, forwardRef as Ae, useState as lr, useMemo as ur } from "react";
|
|
5
5
|
import { Recycle as Jr, PlaylistAdd as xe, Trash as De, Edit as Xr } from "tabler-icons-react";
|
|
6
6
|
import Qr from "axios";
|
|
7
7
|
import Zr from "crypto-js";
|
|
@@ -9,35 +9,29 @@ import et from "lodash";
|
|
|
9
9
|
import { useForm as J, Controller as R } from "react-hook-form";
|
|
10
10
|
import { useBoolean as rt, useRequest as G } from "ahooks";
|
|
11
11
|
import tt, { loader as Ee } from "@monaco-editor/react";
|
|
12
|
-
import
|
|
13
|
-
|
|
14
|
-
import at from "monaco-editor/esm/vs/language/css/css.worker?worker";
|
|
15
|
-
import ot from "monaco-editor/esm/vs/language/html/html.worker?worker";
|
|
16
|
-
import st from "monaco-editor/esm/vs/language/json/json.worker?worker";
|
|
17
|
-
import ct from "monaco-editor/esm/vs/language/typescript/ts.worker?worker";
|
|
18
|
-
import { useModals as fe, closeAllModals as lt } from "@mantine/modals";
|
|
19
|
-
function ut(t) {
|
|
12
|
+
import { useModals as fe, closeAllModals as nt } from "@mantine/modals";
|
|
13
|
+
function at(t) {
|
|
20
14
|
t = t || {};
|
|
21
|
-
const n = Object.keys(t).sort(),
|
|
15
|
+
const n = Object.keys(t).sort(), i = [];
|
|
22
16
|
for (let o = 0; o < n.length; o++) {
|
|
23
17
|
const l = n[o];
|
|
24
18
|
if (l != "authentication" && t[l])
|
|
25
|
-
|
|
19
|
+
i.push(n[o] + "=" + (typeof t[l] == "object" ? JSON.stringify(t[l]) : t[l]));
|
|
26
20
|
else {
|
|
27
21
|
const s = Object.keys(t[l]).sort();
|
|
28
22
|
for (let c = 0; c < s.length; c++) {
|
|
29
23
|
const d = s[c];
|
|
30
|
-
d != "sign" && t[l][d] &&
|
|
24
|
+
d != "sign" && t[l][d] && i.push(
|
|
31
25
|
s[c] + "=" + (typeof t[l][d] == "object" ? JSON.stringify(t[l][d]) : t[l][d])
|
|
32
26
|
);
|
|
33
27
|
}
|
|
34
28
|
}
|
|
35
29
|
}
|
|
36
|
-
return
|
|
30
|
+
return i.sort().join("&");
|
|
37
31
|
}
|
|
38
|
-
function
|
|
39
|
-
let
|
|
40
|
-
return
|
|
32
|
+
function it(t, n) {
|
|
33
|
+
let i = at(t);
|
|
34
|
+
return i += "&key=" + n, Zr.MD5(i).toString().toUpperCase();
|
|
41
35
|
}
|
|
42
36
|
const C = {
|
|
43
37
|
baseURL: "http://localhost:31200",
|
|
@@ -50,7 +44,7 @@ const C = {
|
|
|
50
44
|
return {
|
|
51
45
|
app_id: this.app_id,
|
|
52
46
|
nonce_str: n,
|
|
53
|
-
sign:
|
|
47
|
+
sign: it(
|
|
54
48
|
{
|
|
55
49
|
app_id: this.app_id,
|
|
56
50
|
nonce_str: n,
|
|
@@ -61,7 +55,7 @@ const C = {
|
|
|
61
55
|
};
|
|
62
56
|
},
|
|
63
57
|
getRequest(t) {
|
|
64
|
-
return (n,
|
|
58
|
+
return (n, i, o = {}) => {
|
|
65
59
|
const l = window.localStorage.getItem("token"), s = {
|
|
66
60
|
"X-Requested-With": "XMLHttpRequest",
|
|
67
61
|
"Content-Type": o.string ? "application/x-www-form-urlencoded" : "application/json",
|
|
@@ -71,23 +65,23 @@ const C = {
|
|
|
71
65
|
baseURL: this.baseURL,
|
|
72
66
|
method: t,
|
|
73
67
|
url: n,
|
|
74
|
-
params: t === "GET" ?
|
|
68
|
+
params: t === "GET" ? i : o.params,
|
|
75
69
|
headers: s
|
|
76
70
|
};
|
|
77
|
-
return ["POST", "PUT"].includes(t) && (c.data = o.string ? JSON.stringify(
|
|
71
|
+
return ["POST", "PUT"].includes(t) && (c.data = o.string ? JSON.stringify(i) : i, c.data.authentication = this.getAuthentication(c.data)), Qr(c).then((d) => d.data).catch((d) => et.has(d, "response.data.detail.message") ? Promise.reject(new Error(d.response.data.detail.message)) : Promise.reject(d));
|
|
78
72
|
};
|
|
79
73
|
}
|
|
80
74
|
};
|
|
81
75
|
function pe(t) {
|
|
82
76
|
C.baseURL !== t.apiBaseURL && (C.baseURL = t.apiBaseURL), t.app_id && (C.app_id = t.app_id), t.app_secret && (C.app_secret = t.app_secret);
|
|
83
77
|
}
|
|
84
|
-
const
|
|
78
|
+
const ot = {
|
|
85
79
|
login: async (t, n) => {
|
|
86
|
-
const
|
|
80
|
+
const i = {
|
|
87
81
|
name: t,
|
|
88
82
|
password: n
|
|
89
83
|
};
|
|
90
|
-
return await C.getRequest("POST")("/account/login",
|
|
84
|
+
return await C.getRequest("POST")("/account/login", i);
|
|
91
85
|
},
|
|
92
86
|
list: async () => await C.getRequest("POST")("/account/list", {
|
|
93
87
|
filter: {},
|
|
@@ -104,23 +98,23 @@ const ft = {
|
|
|
104
98
|
}),
|
|
105
99
|
get: async () => await C.getRequest("GET")("/account/get", {}),
|
|
106
100
|
update: async (t, n) => {
|
|
107
|
-
const
|
|
101
|
+
const i = {
|
|
108
102
|
name: t,
|
|
109
103
|
email: n
|
|
110
104
|
};
|
|
111
|
-
return await C.getRequest("PUT")("/account/update",
|
|
105
|
+
return await C.getRequest("PUT")("/account/update", i);
|
|
112
106
|
},
|
|
113
107
|
changepassword: async (t, n) => {
|
|
114
|
-
const
|
|
108
|
+
const i = {
|
|
115
109
|
old_password: t,
|
|
116
110
|
new_password: n
|
|
117
111
|
};
|
|
118
|
-
return await C.getRequest("POST")("/account/changepassword",
|
|
112
|
+
return await C.getRequest("POST")("/account/changepassword", i);
|
|
119
113
|
},
|
|
120
|
-
create: async (t, n,
|
|
114
|
+
create: async (t, n, i, o) => await C.getRequest("POST")("/account/create", {
|
|
121
115
|
name: t,
|
|
122
116
|
email: n,
|
|
123
|
-
password:
|
|
117
|
+
password: i,
|
|
124
118
|
role_id: o
|
|
125
119
|
}),
|
|
126
120
|
edit: async (t) => (t.reset_password || (t.new_password = void 0), await C.getRequest("PUT")("/account/edit", t)),
|
|
@@ -128,7 +122,7 @@ const ft = {
|
|
|
128
122
|
if (!!t)
|
|
129
123
|
return C.getRequest("POST")("/account/delete", { id: t });
|
|
130
124
|
}
|
|
131
|
-
},
|
|
125
|
+
}, st = {
|
|
132
126
|
list: async () => await C.getRequest("POST")("/api/key/list", {
|
|
133
127
|
filter: {
|
|
134
128
|
search: ""
|
|
@@ -152,7 +146,7 @@ const ft = {
|
|
|
152
146
|
if (!!t)
|
|
153
147
|
return C.getRequest("POST")("/api/key/delete", { id: t });
|
|
154
148
|
}
|
|
155
|
-
},
|
|
149
|
+
}, ct = {
|
|
156
150
|
list: async () => await C.getRequest("POST")("/datasource/list", {
|
|
157
151
|
filter: {},
|
|
158
152
|
sort: [
|
|
@@ -166,21 +160,21 @@ const ft = {
|
|
|
166
160
|
pagesize: 100
|
|
167
161
|
}
|
|
168
162
|
}),
|
|
169
|
-
create: async (t, n,
|
|
163
|
+
create: async (t, n, i) => await C.getRequest("POST")("/datasource/create", {
|
|
170
164
|
type: t,
|
|
171
165
|
key: n,
|
|
172
|
-
config:
|
|
166
|
+
config: i
|
|
173
167
|
}),
|
|
174
168
|
delete: async (t) => {
|
|
175
169
|
await C.getRequest("POST")("/datasource/delete", { id: t });
|
|
176
170
|
}
|
|
177
|
-
},
|
|
171
|
+
}, lt = {
|
|
178
172
|
list: async () => await C.getRequest("GET")("/role/list", {})
|
|
179
173
|
}, j = {
|
|
180
|
-
datasource:
|
|
181
|
-
account:
|
|
182
|
-
role:
|
|
183
|
-
api_key:
|
|
174
|
+
datasource: ct,
|
|
175
|
+
account: ot,
|
|
176
|
+
role: lt,
|
|
177
|
+
api_key: st
|
|
184
178
|
}, X = {
|
|
185
179
|
size: "sm",
|
|
186
180
|
spacing: "md",
|
|
@@ -198,12 +192,12 @@ var ge = { exports: {} }, re = {};
|
|
|
198
192
|
* This source code is licensed under the MIT license found in the
|
|
199
193
|
* LICENSE file in the root directory of this source tree.
|
|
200
194
|
*/
|
|
201
|
-
var
|
|
202
|
-
function
|
|
203
|
-
if (
|
|
195
|
+
var ir;
|
|
196
|
+
function ut() {
|
|
197
|
+
if (ir)
|
|
204
198
|
return re;
|
|
205
|
-
|
|
206
|
-
var t = H, n = Symbol.for("react.element"),
|
|
199
|
+
ir = 1;
|
|
200
|
+
var t = H, n = Symbol.for("react.element"), i = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, l = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
207
201
|
function c(d, p, b) {
|
|
208
202
|
var S, m = {}, f = null, z = null;
|
|
209
203
|
b !== void 0 && (f = "" + b), p.key !== void 0 && (f = "" + p.key), p.ref !== void 0 && (z = p.ref);
|
|
@@ -214,7 +208,7 @@ function ht() {
|
|
|
214
208
|
m[S] === void 0 && (m[S] = p[S]);
|
|
215
209
|
return { $$typeof: n, type: d, key: f, ref: z, props: m, _owner: l.current };
|
|
216
210
|
}
|
|
217
|
-
return re.Fragment =
|
|
211
|
+
return re.Fragment = i, re.jsx = c, re.jsxs = c, re;
|
|
218
212
|
}
|
|
219
213
|
var te = {};
|
|
220
214
|
/**
|
|
@@ -227,31 +221,31 @@ var te = {};
|
|
|
227
221
|
* LICENSE file in the root directory of this source tree.
|
|
228
222
|
*/
|
|
229
223
|
var or;
|
|
230
|
-
function
|
|
224
|
+
function dt() {
|
|
231
225
|
return or || (or = 1, process.env.NODE_ENV !== "production" && function() {
|
|
232
|
-
var t = H, n = Symbol.for("react.element"),
|
|
226
|
+
var t = H, n = Symbol.for("react.element"), i = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), d = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), S = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), z = Symbol.for("react.offscreen"), q = Symbol.iterator, $ = "@@iterator";
|
|
233
227
|
function he(e) {
|
|
234
228
|
if (e === null || typeof e != "object")
|
|
235
229
|
return null;
|
|
236
|
-
var
|
|
237
|
-
return typeof
|
|
230
|
+
var a = q && e[q] || e[$];
|
|
231
|
+
return typeof a == "function" ? a : null;
|
|
238
232
|
}
|
|
239
233
|
var U = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
240
|
-
function
|
|
234
|
+
function k(e) {
|
|
241
235
|
{
|
|
242
|
-
for (var
|
|
236
|
+
for (var a = arguments.length, u = new Array(a > 1 ? a - 1 : 0), g = 1; g < a; g++)
|
|
243
237
|
u[g - 1] = arguments[g];
|
|
244
238
|
dr("error", e, u);
|
|
245
239
|
}
|
|
246
240
|
}
|
|
247
|
-
function dr(e,
|
|
241
|
+
function dr(e, a, u) {
|
|
248
242
|
{
|
|
249
243
|
var g = U.ReactDebugCurrentFrame, _ = g.getStackAddendum();
|
|
250
|
-
_ !== "" && (
|
|
244
|
+
_ !== "" && (a += "%s", u = u.concat([_]));
|
|
251
245
|
var y = u.map(function(w) {
|
|
252
246
|
return String(w);
|
|
253
247
|
});
|
|
254
|
-
y.unshift("Warning: " +
|
|
248
|
+
y.unshift("Warning: " + a), Function.prototype.apply.call(console[e], console, y);
|
|
255
249
|
}
|
|
256
250
|
}
|
|
257
251
|
var fr = !1, pr = !1, gr = !1, mr = !1, hr = !1, Ie;
|
|
@@ -259,11 +253,11 @@ function vt() {
|
|
|
259
253
|
function vr(e) {
|
|
260
254
|
return !!(typeof e == "string" || typeof e == "function" || e === o || e === s || hr || e === l || e === b || e === S || mr || e === z || fr || pr || gr || typeof e == "object" && e !== null && (e.$$typeof === f || e.$$typeof === m || e.$$typeof === c || e.$$typeof === d || e.$$typeof === p || e.$$typeof === Ie || e.getModuleId !== void 0));
|
|
261
255
|
}
|
|
262
|
-
function br(e,
|
|
256
|
+
function br(e, a, u) {
|
|
263
257
|
var g = e.displayName;
|
|
264
258
|
if (g)
|
|
265
259
|
return g;
|
|
266
|
-
var _ =
|
|
260
|
+
var _ = a.displayName || a.name || "";
|
|
267
261
|
return _ !== "" ? u + "(" + _ + ")" : u;
|
|
268
262
|
}
|
|
269
263
|
function Fe(e) {
|
|
@@ -272,14 +266,14 @@ function vt() {
|
|
|
272
266
|
function L(e) {
|
|
273
267
|
if (e == null)
|
|
274
268
|
return null;
|
|
275
|
-
if (typeof e.tag == "number" &&
|
|
269
|
+
if (typeof e.tag == "number" && k("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
276
270
|
return e.displayName || e.name || null;
|
|
277
271
|
if (typeof e == "string")
|
|
278
272
|
return e;
|
|
279
273
|
switch (e) {
|
|
280
274
|
case o:
|
|
281
275
|
return "Fragment";
|
|
282
|
-
case
|
|
276
|
+
case i:
|
|
283
277
|
return "Portal";
|
|
284
278
|
case s:
|
|
285
279
|
return "Profiler";
|
|
@@ -293,8 +287,8 @@ function vt() {
|
|
|
293
287
|
if (typeof e == "object")
|
|
294
288
|
switch (e.$$typeof) {
|
|
295
289
|
case d:
|
|
296
|
-
var
|
|
297
|
-
return Fe(
|
|
290
|
+
var a = e;
|
|
291
|
+
return Fe(a) + ".Consumer";
|
|
298
292
|
case c:
|
|
299
293
|
var u = e;
|
|
300
294
|
return Fe(u._context) + ".Provider";
|
|
@@ -314,14 +308,14 @@ function vt() {
|
|
|
314
308
|
}
|
|
315
309
|
return null;
|
|
316
310
|
}
|
|
317
|
-
var Y = Object.assign, Q = 0, qe, Le, Me, Ne, Ue,
|
|
311
|
+
var Y = Object.assign, Q = 0, qe, Le, Me, Ne, Ue, Ve, We;
|
|
318
312
|
function $e() {
|
|
319
313
|
}
|
|
320
314
|
$e.__reactDisabledLog = !0;
|
|
321
315
|
function wr() {
|
|
322
316
|
{
|
|
323
317
|
if (Q === 0) {
|
|
324
|
-
qe = console.log, Le = console.info, Me = console.warn, Ne = console.error, Ue = console.group,
|
|
318
|
+
qe = console.log, Le = console.info, Me = console.warn, Ne = console.error, Ue = console.group, Ve = console.groupCollapsed, We = console.groupEnd;
|
|
325
319
|
var e = {
|
|
326
320
|
configurable: !0,
|
|
327
321
|
enumerable: !0,
|
|
@@ -366,18 +360,18 @@ function vt() {
|
|
|
366
360
|
value: Ue
|
|
367
361
|
}),
|
|
368
362
|
groupCollapsed: Y({}, e, {
|
|
369
|
-
value:
|
|
363
|
+
value: Ve
|
|
370
364
|
}),
|
|
371
365
|
groupEnd: Y({}, e, {
|
|
372
|
-
value:
|
|
366
|
+
value: We
|
|
373
367
|
})
|
|
374
368
|
});
|
|
375
369
|
}
|
|
376
|
-
Q < 0 &&
|
|
370
|
+
Q < 0 && k("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
377
371
|
}
|
|
378
372
|
}
|
|
379
373
|
var ve = U.ReactCurrentDispatcher, be;
|
|
380
|
-
function
|
|
374
|
+
function ae(e, a, u) {
|
|
381
375
|
{
|
|
382
376
|
if (be === void 0)
|
|
383
377
|
try {
|
|
@@ -390,16 +384,16 @@ function vt() {
|
|
|
390
384
|
` + be + e;
|
|
391
385
|
}
|
|
392
386
|
}
|
|
393
|
-
var we = !1,
|
|
387
|
+
var we = !1, ie;
|
|
394
388
|
{
|
|
395
389
|
var _r = typeof WeakMap == "function" ? WeakMap : Map;
|
|
396
|
-
|
|
390
|
+
ie = new _r();
|
|
397
391
|
}
|
|
398
|
-
function Ye(e,
|
|
392
|
+
function Ye(e, a) {
|
|
399
393
|
if (!e || we)
|
|
400
394
|
return "";
|
|
401
395
|
{
|
|
402
|
-
var u =
|
|
396
|
+
var u = ie.get(e);
|
|
403
397
|
if (u !== void 0)
|
|
404
398
|
return u;
|
|
405
399
|
}
|
|
@@ -410,7 +404,7 @@ function vt() {
|
|
|
410
404
|
var y;
|
|
411
405
|
y = ve.current, ve.current = null, wr();
|
|
412
406
|
try {
|
|
413
|
-
if (
|
|
407
|
+
if (a) {
|
|
414
408
|
var w = function() {
|
|
415
409
|
throw Error();
|
|
416
410
|
};
|
|
@@ -444,17 +438,17 @@ function vt() {
|
|
|
444
438
|
} catch (M) {
|
|
445
439
|
if (M && g && typeof M.stack == "string") {
|
|
446
440
|
for (var h = M.stack.split(`
|
|
447
|
-
`),
|
|
448
|
-
`), P = h.length - 1, E =
|
|
441
|
+
`), A = g.stack.split(`
|
|
442
|
+
`), P = h.length - 1, E = A.length - 1; P >= 1 && E >= 0 && h[P] !== A[E]; )
|
|
449
443
|
E--;
|
|
450
444
|
for (; P >= 1 && E >= 0; P--, E--)
|
|
451
|
-
if (h[P] !==
|
|
445
|
+
if (h[P] !== A[E]) {
|
|
452
446
|
if (P !== 1 || E !== 1)
|
|
453
447
|
do
|
|
454
|
-
if (P--, E--, E < 0 || h[P] !==
|
|
448
|
+
if (P--, E--, E < 0 || h[P] !== A[E]) {
|
|
455
449
|
var I = `
|
|
456
450
|
` + h[P].replace(" at new ", " at ");
|
|
457
|
-
return e.displayName && I.includes("<anonymous>") && (I = I.replace("<anonymous>", e.displayName)), typeof e == "function" &&
|
|
451
|
+
return e.displayName && I.includes("<anonymous>") && (I = I.replace("<anonymous>", e.displayName)), typeof e == "function" && ie.set(e, I), I;
|
|
458
452
|
}
|
|
459
453
|
while (P >= 1 && E >= 0);
|
|
460
454
|
break;
|
|
@@ -463,39 +457,39 @@ function vt() {
|
|
|
463
457
|
} finally {
|
|
464
458
|
we = !1, ve.current = y, Sr(), Error.prepareStackTrace = _;
|
|
465
459
|
}
|
|
466
|
-
var B = e ? e.displayName || e.name : "",
|
|
467
|
-
return typeof e == "function" &&
|
|
460
|
+
var B = e ? e.displayName || e.name : "", ar = B ? ae(B) : "";
|
|
461
|
+
return typeof e == "function" && ie.set(e, ar), ar;
|
|
468
462
|
}
|
|
469
|
-
function yr(e,
|
|
463
|
+
function yr(e, a, u) {
|
|
470
464
|
return Ye(e, !1);
|
|
471
465
|
}
|
|
472
466
|
function Rr(e) {
|
|
473
|
-
var
|
|
474
|
-
return !!(
|
|
467
|
+
var a = e.prototype;
|
|
468
|
+
return !!(a && a.isReactComponent);
|
|
475
469
|
}
|
|
476
|
-
function oe(e,
|
|
470
|
+
function oe(e, a, u) {
|
|
477
471
|
if (e == null)
|
|
478
472
|
return "";
|
|
479
473
|
if (typeof e == "function")
|
|
480
474
|
return Ye(e, Rr(e));
|
|
481
475
|
if (typeof e == "string")
|
|
482
|
-
return
|
|
476
|
+
return ae(e);
|
|
483
477
|
switch (e) {
|
|
484
478
|
case b:
|
|
485
|
-
return
|
|
479
|
+
return ae("Suspense");
|
|
486
480
|
case S:
|
|
487
|
-
return
|
|
481
|
+
return ae("SuspenseList");
|
|
488
482
|
}
|
|
489
483
|
if (typeof e == "object")
|
|
490
484
|
switch (e.$$typeof) {
|
|
491
485
|
case p:
|
|
492
486
|
return yr(e.render);
|
|
493
487
|
case m:
|
|
494
|
-
return oe(e.type,
|
|
488
|
+
return oe(e.type, a, u);
|
|
495
489
|
case f: {
|
|
496
490
|
var g = e, _ = g._payload, y = g._init;
|
|
497
491
|
try {
|
|
498
|
-
return oe(y(_),
|
|
492
|
+
return oe(y(_), a, u);
|
|
499
493
|
} catch {
|
|
500
494
|
}
|
|
501
495
|
}
|
|
@@ -505,12 +499,12 @@ function vt() {
|
|
|
505
499
|
var se = Object.prototype.hasOwnProperty, Ke = {}, Be = U.ReactDebugCurrentFrame;
|
|
506
500
|
function ce(e) {
|
|
507
501
|
if (e) {
|
|
508
|
-
var
|
|
502
|
+
var a = e._owner, u = oe(e.type, e._source, a ? a.type : null);
|
|
509
503
|
Be.setExtraStackFrame(u);
|
|
510
504
|
} else
|
|
511
505
|
Be.setExtraStackFrame(null);
|
|
512
506
|
}
|
|
513
|
-
function Pr(e,
|
|
507
|
+
function Pr(e, a, u, g, _) {
|
|
514
508
|
{
|
|
515
509
|
var y = Function.call.bind(se);
|
|
516
510
|
for (var w in e)
|
|
@@ -518,14 +512,14 @@ function vt() {
|
|
|
518
512
|
var h = void 0;
|
|
519
513
|
try {
|
|
520
514
|
if (typeof e[w] != "function") {
|
|
521
|
-
var
|
|
522
|
-
throw
|
|
515
|
+
var A = Error((g || "React class") + ": " + u + " type `" + w + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[w] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
516
|
+
throw A.name = "Invariant Violation", A;
|
|
523
517
|
}
|
|
524
|
-
h = e[w](
|
|
518
|
+
h = e[w](a, w, g, u, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
525
519
|
} catch (P) {
|
|
526
520
|
h = P;
|
|
527
521
|
}
|
|
528
|
-
h && !(h instanceof Error) && (ce(_),
|
|
522
|
+
h && !(h instanceof Error) && (ce(_), k("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", g || "React class", u, w, typeof h), ce(null)), h instanceof Error && !(h.message in Ke) && (Ke[h.message] = !0, ce(_), k("Failed %s type: %s", u, h.message), ce(null));
|
|
529
523
|
}
|
|
530
524
|
}
|
|
531
525
|
}
|
|
@@ -535,7 +529,7 @@ function vt() {
|
|
|
535
529
|
}
|
|
536
530
|
function Cr(e) {
|
|
537
531
|
{
|
|
538
|
-
var
|
|
532
|
+
var a = typeof Symbol == "function" && Symbol.toStringTag, u = a && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
539
533
|
return u;
|
|
540
534
|
}
|
|
541
535
|
}
|
|
@@ -551,7 +545,7 @@ function vt() {
|
|
|
551
545
|
}
|
|
552
546
|
function He(e) {
|
|
553
547
|
if (Tr(e))
|
|
554
|
-
return
|
|
548
|
+
return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Cr(e)), Ge(e);
|
|
555
549
|
}
|
|
556
550
|
var Z = U.ReactCurrentOwner, zr = {
|
|
557
551
|
key: !0,
|
|
@@ -562,30 +556,30 @@ function vt() {
|
|
|
562
556
|
_e = {};
|
|
563
557
|
function Or(e) {
|
|
564
558
|
if (se.call(e, "ref")) {
|
|
565
|
-
var
|
|
566
|
-
if (
|
|
559
|
+
var a = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
560
|
+
if (a && a.isReactWarning)
|
|
567
561
|
return !1;
|
|
568
562
|
}
|
|
569
563
|
return e.ref !== void 0;
|
|
570
564
|
}
|
|
571
|
-
function
|
|
565
|
+
function kr(e) {
|
|
572
566
|
if (se.call(e, "key")) {
|
|
573
|
-
var
|
|
574
|
-
if (
|
|
567
|
+
var a = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
568
|
+
if (a && a.isReactWarning)
|
|
575
569
|
return !1;
|
|
576
570
|
}
|
|
577
571
|
return e.key !== void 0;
|
|
578
572
|
}
|
|
579
|
-
function
|
|
580
|
-
if (typeof e.ref == "string" && Z.current &&
|
|
573
|
+
function Ar(e, a) {
|
|
574
|
+
if (typeof e.ref == "string" && Z.current && a && Z.current.stateNode !== a) {
|
|
581
575
|
var u = L(Z.current.type);
|
|
582
|
-
_e[u] || (
|
|
576
|
+
_e[u] || (k('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', L(Z.current.type), e.ref), _e[u] = !0);
|
|
583
577
|
}
|
|
584
578
|
}
|
|
585
|
-
function xr(e,
|
|
579
|
+
function xr(e, a) {
|
|
586
580
|
{
|
|
587
581
|
var u = function() {
|
|
588
|
-
Je || (Je = !0,
|
|
582
|
+
Je || (Je = !0, k("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", a));
|
|
589
583
|
};
|
|
590
584
|
u.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
591
585
|
get: u,
|
|
@@ -593,10 +587,10 @@ function vt() {
|
|
|
593
587
|
});
|
|
594
588
|
}
|
|
595
589
|
}
|
|
596
|
-
function Dr(e,
|
|
590
|
+
function Dr(e, a) {
|
|
597
591
|
{
|
|
598
592
|
var u = function() {
|
|
599
|
-
Xe || (Xe = !0,
|
|
593
|
+
Xe || (Xe = !0, k("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", a));
|
|
600
594
|
};
|
|
601
595
|
u.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
602
596
|
get: u,
|
|
@@ -604,11 +598,11 @@ function vt() {
|
|
|
604
598
|
});
|
|
605
599
|
}
|
|
606
600
|
}
|
|
607
|
-
var jr = function(e,
|
|
601
|
+
var jr = function(e, a, u, g, _, y, w) {
|
|
608
602
|
var h = {
|
|
609
603
|
$$typeof: n,
|
|
610
604
|
type: e,
|
|
611
|
-
key:
|
|
605
|
+
key: a,
|
|
612
606
|
ref: u,
|
|
613
607
|
props: w,
|
|
614
608
|
_owner: y
|
|
@@ -630,28 +624,28 @@ function vt() {
|
|
|
630
624
|
value: _
|
|
631
625
|
}), Object.freeze && (Object.freeze(h.props), Object.freeze(h)), h;
|
|
632
626
|
};
|
|
633
|
-
function Ir(e,
|
|
627
|
+
function Ir(e, a, u, g, _) {
|
|
634
628
|
{
|
|
635
|
-
var y, w = {}, h = null,
|
|
636
|
-
u !== void 0 && (He(u), h = "" + u),
|
|
637
|
-
for (y in
|
|
638
|
-
se.call(
|
|
629
|
+
var y, w = {}, h = null, A = null;
|
|
630
|
+
u !== void 0 && (He(u), h = "" + u), kr(a) && (He(a.key), h = "" + a.key), Or(a) && (A = a.ref, Ar(a, _));
|
|
631
|
+
for (y in a)
|
|
632
|
+
se.call(a, y) && !zr.hasOwnProperty(y) && (w[y] = a[y]);
|
|
639
633
|
if (e && e.defaultProps) {
|
|
640
634
|
var P = e.defaultProps;
|
|
641
635
|
for (y in P)
|
|
642
636
|
w[y] === void 0 && (w[y] = P[y]);
|
|
643
637
|
}
|
|
644
|
-
if (h ||
|
|
638
|
+
if (h || A) {
|
|
645
639
|
var E = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
646
|
-
h && xr(w, E),
|
|
640
|
+
h && xr(w, E), A && Dr(w, E);
|
|
647
641
|
}
|
|
648
|
-
return jr(e, h,
|
|
642
|
+
return jr(e, h, A, _, g, Z.current, w);
|
|
649
643
|
}
|
|
650
644
|
}
|
|
651
645
|
var ye = U.ReactCurrentOwner, Qe = U.ReactDebugCurrentFrame;
|
|
652
646
|
function K(e) {
|
|
653
647
|
if (e) {
|
|
654
|
-
var
|
|
648
|
+
var a = e._owner, u = oe(e.type, e._source, a ? a.type : null);
|
|
655
649
|
Qe.setExtraStackFrame(u);
|
|
656
650
|
} else
|
|
657
651
|
Qe.setExtraStackFrame(null);
|
|
@@ -676,10 +670,10 @@ Check the render method of \`` + e + "`.";
|
|
|
676
670
|
function Fr(e) {
|
|
677
671
|
{
|
|
678
672
|
if (e !== void 0) {
|
|
679
|
-
var
|
|
673
|
+
var a = e.fileName.replace(/^.*[\\\/]/, ""), u = e.lineNumber;
|
|
680
674
|
return `
|
|
681
675
|
|
|
682
|
-
Check your code at ` +
|
|
676
|
+
Check your code at ` + a + ":" + u + ".";
|
|
683
677
|
}
|
|
684
678
|
return "";
|
|
685
679
|
}
|
|
@@ -687,37 +681,37 @@ Check your code at ` + i + ":" + u + ".";
|
|
|
687
681
|
var er = {};
|
|
688
682
|
function qr(e) {
|
|
689
683
|
{
|
|
690
|
-
var
|
|
691
|
-
if (!
|
|
684
|
+
var a = Ze();
|
|
685
|
+
if (!a) {
|
|
692
686
|
var u = typeof e == "string" ? e : e.displayName || e.name;
|
|
693
|
-
u && (
|
|
687
|
+
u && (a = `
|
|
694
688
|
|
|
695
689
|
Check the top-level render call using <` + u + ">.");
|
|
696
690
|
}
|
|
697
|
-
return
|
|
691
|
+
return a;
|
|
698
692
|
}
|
|
699
693
|
}
|
|
700
|
-
function rr(e,
|
|
694
|
+
function rr(e, a) {
|
|
701
695
|
{
|
|
702
696
|
if (!e._store || e._store.validated || e.key != null)
|
|
703
697
|
return;
|
|
704
698
|
e._store.validated = !0;
|
|
705
|
-
var u = qr(
|
|
699
|
+
var u = qr(a);
|
|
706
700
|
if (er[u])
|
|
707
701
|
return;
|
|
708
702
|
er[u] = !0;
|
|
709
703
|
var g = "";
|
|
710
|
-
e && e._owner && e._owner !== ye.current && (g = " It was passed a child from " + L(e._owner.type) + "."), K(e),
|
|
704
|
+
e && e._owner && e._owner !== ye.current && (g = " It was passed a child from " + L(e._owner.type) + "."), K(e), k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', u, g), K(null);
|
|
711
705
|
}
|
|
712
706
|
}
|
|
713
|
-
function tr(e,
|
|
707
|
+
function tr(e, a) {
|
|
714
708
|
{
|
|
715
709
|
if (typeof e != "object")
|
|
716
710
|
return;
|
|
717
711
|
if (Se(e))
|
|
718
712
|
for (var u = 0; u < e.length; u++) {
|
|
719
713
|
var g = e[u];
|
|
720
|
-
Pe(g) && rr(g,
|
|
714
|
+
Pe(g) && rr(g, a);
|
|
721
715
|
}
|
|
722
716
|
else if (Pe(e))
|
|
723
717
|
e._store && (e._store.validated = !0);
|
|
@@ -725,61 +719,61 @@ Check the top-level render call using <` + u + ">.");
|
|
|
725
719
|
var _ = he(e);
|
|
726
720
|
if (typeof _ == "function" && _ !== e.entries)
|
|
727
721
|
for (var y = _.call(e), w; !(w = y.next()).done; )
|
|
728
|
-
Pe(w.value) && rr(w.value,
|
|
722
|
+
Pe(w.value) && rr(w.value, a);
|
|
729
723
|
}
|
|
730
724
|
}
|
|
731
725
|
}
|
|
732
726
|
function Lr(e) {
|
|
733
727
|
{
|
|
734
|
-
var
|
|
735
|
-
if (
|
|
728
|
+
var a = e.type;
|
|
729
|
+
if (a == null || typeof a == "string")
|
|
736
730
|
return;
|
|
737
731
|
var u;
|
|
738
|
-
if (typeof
|
|
739
|
-
u =
|
|
740
|
-
else if (typeof
|
|
741
|
-
u =
|
|
732
|
+
if (typeof a == "function")
|
|
733
|
+
u = a.propTypes;
|
|
734
|
+
else if (typeof a == "object" && (a.$$typeof === p || a.$$typeof === m))
|
|
735
|
+
u = a.propTypes;
|
|
742
736
|
else
|
|
743
737
|
return;
|
|
744
738
|
if (u) {
|
|
745
|
-
var g = L(
|
|
739
|
+
var g = L(a);
|
|
746
740
|
Pr(u, e.props, "prop", g, e);
|
|
747
|
-
} else if (
|
|
741
|
+
} else if (a.PropTypes !== void 0 && !Re) {
|
|
748
742
|
Re = !0;
|
|
749
|
-
var _ = L(
|
|
750
|
-
|
|
743
|
+
var _ = L(a);
|
|
744
|
+
k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _ || "Unknown");
|
|
751
745
|
}
|
|
752
|
-
typeof
|
|
746
|
+
typeof a.getDefaultProps == "function" && !a.getDefaultProps.isReactClassApproved && k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
753
747
|
}
|
|
754
748
|
}
|
|
755
749
|
function Mr(e) {
|
|
756
750
|
{
|
|
757
|
-
for (var
|
|
758
|
-
var g =
|
|
751
|
+
for (var a = Object.keys(e.props), u = 0; u < a.length; u++) {
|
|
752
|
+
var g = a[u];
|
|
759
753
|
if (g !== "children" && g !== "key") {
|
|
760
|
-
K(e),
|
|
754
|
+
K(e), k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", g), K(null);
|
|
761
755
|
break;
|
|
762
756
|
}
|
|
763
757
|
}
|
|
764
|
-
e.ref !== null && (K(e),
|
|
758
|
+
e.ref !== null && (K(e), k("Invalid attribute `ref` supplied to `React.Fragment`."), K(null));
|
|
765
759
|
}
|
|
766
760
|
}
|
|
767
|
-
function nr(e,
|
|
761
|
+
function nr(e, a, u, g, _, y) {
|
|
768
762
|
{
|
|
769
763
|
var w = vr(e);
|
|
770
764
|
if (!w) {
|
|
771
765
|
var h = "";
|
|
772
766
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (h += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
773
|
-
var
|
|
774
|
-
|
|
767
|
+
var A = Fr(_);
|
|
768
|
+
A ? h += A : h += Ze();
|
|
775
769
|
var P;
|
|
776
|
-
e === null ? P = "null" : Se(e) ? P = "array" : e !== void 0 && e.$$typeof === n ? (P = "<" + (L(e.type) || "Unknown") + " />", h = " Did you accidentally export a JSX literal instead of a component?") : P = typeof e,
|
|
770
|
+
e === null ? P = "null" : Se(e) ? P = "array" : e !== void 0 && e.$$typeof === n ? (P = "<" + (L(e.type) || "Unknown") + " />", h = " Did you accidentally export a JSX literal instead of a component?") : P = typeof e, k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", P, h);
|
|
777
771
|
}
|
|
778
|
-
var E = Ir(e,
|
|
772
|
+
var E = Ir(e, a, u, _, y);
|
|
779
773
|
if (E == null)
|
|
780
774
|
return E;
|
|
781
775
|
if (w) {
|
|
782
|
-
var I =
|
|
776
|
+
var I = a.children;
|
|
783
777
|
if (I !== void 0)
|
|
784
778
|
if (g)
|
|
785
779
|
if (Se(I)) {
|
|
@@ -787,31 +781,31 @@ Check the top-level render call using <` + u + ">.");
|
|
|
787
781
|
tr(I[B], e);
|
|
788
782
|
Object.freeze && Object.freeze(I);
|
|
789
783
|
} else
|
|
790
|
-
|
|
784
|
+
k("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
791
785
|
else
|
|
792
786
|
tr(I, e);
|
|
793
787
|
}
|
|
794
788
|
return e === o ? Mr(E) : Lr(E), E;
|
|
795
789
|
}
|
|
796
790
|
}
|
|
797
|
-
function Nr(e,
|
|
798
|
-
return nr(e,
|
|
791
|
+
function Nr(e, a, u) {
|
|
792
|
+
return nr(e, a, u, !0);
|
|
799
793
|
}
|
|
800
|
-
function Ur(e,
|
|
801
|
-
return nr(e,
|
|
794
|
+
function Ur(e, a, u) {
|
|
795
|
+
return nr(e, a, u, !1);
|
|
802
796
|
}
|
|
803
|
-
var
|
|
804
|
-
te.Fragment = o, te.jsx =
|
|
797
|
+
var Vr = Ur, Wr = Nr;
|
|
798
|
+
te.Fragment = o, te.jsx = Vr, te.jsxs = Wr;
|
|
805
799
|
}()), te;
|
|
806
800
|
}
|
|
807
801
|
(function(t) {
|
|
808
|
-
process.env.NODE_ENV === "production" ? t.exports =
|
|
802
|
+
process.env.NODE_ENV === "production" ? t.exports = ut() : t.exports = dt();
|
|
809
803
|
})(ge);
|
|
810
804
|
const N = ge.exports.Fragment, r = ge.exports.jsx, v = ge.exports.jsxs;
|
|
811
|
-
function
|
|
805
|
+
function ft({
|
|
812
806
|
submit: t,
|
|
813
807
|
styles: n = X,
|
|
814
|
-
type:
|
|
808
|
+
type: i
|
|
815
809
|
}) {
|
|
816
810
|
const {
|
|
817
811
|
control: o,
|
|
@@ -819,7 +813,7 @@ function bt({
|
|
|
819
813
|
handleSubmit: s
|
|
820
814
|
} = J({
|
|
821
815
|
defaultValues: {
|
|
822
|
-
type:
|
|
816
|
+
type: i,
|
|
823
817
|
key: "",
|
|
824
818
|
config: {
|
|
825
819
|
host: "",
|
|
@@ -831,8 +825,8 @@ function bt({
|
|
|
831
825
|
}
|
|
832
826
|
});
|
|
833
827
|
return cr(() => {
|
|
834
|
-
l("type",
|
|
835
|
-
}, [l,
|
|
828
|
+
l("type", i);
|
|
829
|
+
}, [l, i]), /* @__PURE__ */ r(F, {
|
|
836
830
|
mx: "auto",
|
|
837
831
|
children: /* @__PURE__ */ v("form", {
|
|
838
832
|
onSubmit: s(t),
|
|
@@ -935,15 +929,25 @@ function bt({
|
|
|
935
929
|
});
|
|
936
930
|
}
|
|
937
931
|
self.MonacoEnvironment = {
|
|
938
|
-
getWorker(t, n) {
|
|
939
|
-
|
|
932
|
+
getWorker: function(t, n) {
|
|
933
|
+
const i = (o, l) => new Worker(self.MonacoEnvironment.getWorker(o), {
|
|
934
|
+
name: l,
|
|
935
|
+
type: "module"
|
|
936
|
+
});
|
|
937
|
+
switch (n) {
|
|
938
|
+
case "typescript":
|
|
939
|
+
case "javascript":
|
|
940
|
+
return i("/monaco-editor/min/vs/language/typescript/ts.worker?worker", n);
|
|
941
|
+
default:
|
|
942
|
+
return i("/monaco-editor/min/vs/editor/editor.worker?worker", n);
|
|
943
|
+
}
|
|
940
944
|
}
|
|
941
945
|
};
|
|
942
|
-
function
|
|
943
|
-
Ee.__getMonacoInstance() || (console.log("loading monaco"), Ee.config({
|
|
946
|
+
function pt() {
|
|
947
|
+
Ee.__getMonacoInstance() || (console.log("loading monaco"), Ee.config({ paths: { vs: "/assets/monaco-editor/min/vs" } }), Ee.init().then((n) => console.log("here is the monaco instance:", n)));
|
|
944
948
|
}
|
|
945
|
-
|
|
946
|
-
const
|
|
949
|
+
pt();
|
|
950
|
+
const gt = ({
|
|
947
951
|
value: t,
|
|
948
952
|
onChange: n
|
|
949
953
|
}) => /* @__PURE__ */ r(F, {
|
|
@@ -964,10 +968,10 @@ const St = ({
|
|
|
964
968
|
}
|
|
965
969
|
}
|
|
966
970
|
})
|
|
967
|
-
}), sr =
|
|
971
|
+
}), sr = Ae(({
|
|
968
972
|
value: t,
|
|
969
973
|
onChange: n,
|
|
970
|
-
label:
|
|
974
|
+
label: i,
|
|
971
975
|
modalTitle: o,
|
|
972
976
|
defaultValue: l,
|
|
973
977
|
styles: s
|
|
@@ -992,7 +996,7 @@ const St = ({
|
|
|
992
996
|
sx: {
|
|
993
997
|
flexGrow: 1
|
|
994
998
|
},
|
|
995
|
-
children:
|
|
999
|
+
children: i
|
|
996
1000
|
}), /* @__PURE__ */ r(ne, {
|
|
997
1001
|
size: 800,
|
|
998
1002
|
title: o,
|
|
@@ -1001,7 +1005,7 @@ const St = ({
|
|
|
1001
1005
|
closeOnClickOutside: !1,
|
|
1002
1006
|
withCloseButton: !1,
|
|
1003
1007
|
children: d && /* @__PURE__ */ v(ze, {
|
|
1004
|
-
children: [/* @__PURE__ */ r(
|
|
1008
|
+
children: [/* @__PURE__ */ r(gt, {
|
|
1005
1009
|
value: S,
|
|
1006
1010
|
onChange: m
|
|
1007
1011
|
}), /* @__PURE__ */ v(O, {
|
|
@@ -1034,12 +1038,12 @@ const St = ({
|
|
|
1034
1038
|
post: ["function post_process(res, utils) {", " // your code goes here", " return data", "}"].join(`
|
|
1035
1039
|
`)
|
|
1036
1040
|
};
|
|
1037
|
-
function
|
|
1041
|
+
function mt({
|
|
1038
1042
|
submit: t,
|
|
1039
1043
|
styles: n = X
|
|
1040
1044
|
}) {
|
|
1041
1045
|
const {
|
|
1042
|
-
control:
|
|
1046
|
+
control: i,
|
|
1043
1047
|
setValue: o,
|
|
1044
1048
|
handleSubmit: l
|
|
1045
1049
|
} = J({
|
|
@@ -1061,7 +1065,7 @@ function _t({
|
|
|
1061
1065
|
onSubmit: l(t),
|
|
1062
1066
|
children: [/* @__PURE__ */ r(R, {
|
|
1063
1067
|
name: "key",
|
|
1064
|
-
control:
|
|
1068
|
+
control: i,
|
|
1065
1069
|
render: ({
|
|
1066
1070
|
field: s
|
|
1067
1071
|
}) => /* @__PURE__ */ r(D, {
|
|
@@ -1077,7 +1081,7 @@ function _t({
|
|
|
1077
1081
|
labelPosition: "center"
|
|
1078
1082
|
}), /* @__PURE__ */ r(R, {
|
|
1079
1083
|
name: "config.host",
|
|
1080
|
-
control:
|
|
1084
|
+
control: i,
|
|
1081
1085
|
render: ({
|
|
1082
1086
|
field: s
|
|
1083
1087
|
}) => /* @__PURE__ */ r(D, {
|
|
@@ -1094,7 +1098,7 @@ function _t({
|
|
|
1094
1098
|
grow: !0,
|
|
1095
1099
|
children: [/* @__PURE__ */ r(R, {
|
|
1096
1100
|
name: "config.processing.pre",
|
|
1097
|
-
control:
|
|
1101
|
+
control: i,
|
|
1098
1102
|
render: ({
|
|
1099
1103
|
field: s
|
|
1100
1104
|
}) => /* @__PURE__ */ r(sr, {
|
|
@@ -1106,7 +1110,7 @@ function _t({
|
|
|
1106
1110
|
})
|
|
1107
1111
|
}), /* @__PURE__ */ r(R, {
|
|
1108
1112
|
name: "config.processing.post",
|
|
1109
|
-
control:
|
|
1113
|
+
control: i,
|
|
1110
1114
|
render: ({
|
|
1111
1115
|
field: s
|
|
1112
1116
|
}) => /* @__PURE__ */ r(sr, {
|
|
@@ -1129,16 +1133,16 @@ function _t({
|
|
|
1129
1133
|
})
|
|
1130
1134
|
});
|
|
1131
1135
|
}
|
|
1132
|
-
function
|
|
1136
|
+
function ht({
|
|
1133
1137
|
postSubmit: t,
|
|
1134
1138
|
styles: n = X
|
|
1135
1139
|
}) {
|
|
1136
|
-
const [
|
|
1140
|
+
const [i, o] = lr("postgresql"), l = async ({
|
|
1137
1141
|
type: d,
|
|
1138
1142
|
key: p,
|
|
1139
1143
|
config: b
|
|
1140
1144
|
}) => {
|
|
1141
|
-
|
|
1145
|
+
V({
|
|
1142
1146
|
id: "for-creating",
|
|
1143
1147
|
title: "Pending",
|
|
1144
1148
|
message: "Adding data source...",
|
|
@@ -1163,7 +1167,7 @@ function yt({
|
|
|
1163
1167
|
color: "red"
|
|
1164
1168
|
});
|
|
1165
1169
|
}
|
|
1166
|
-
}, s =
|
|
1170
|
+
}, s = i === "postgresql" || i === "mysql", c = i === "http";
|
|
1167
1171
|
return /* @__PURE__ */ v(F, {
|
|
1168
1172
|
mx: "auto",
|
|
1169
1173
|
children: [/* @__PURE__ */ r(Yr, {
|
|
@@ -1180,34 +1184,34 @@ function yt({
|
|
|
1180
1184
|
label: "HTTP",
|
|
1181
1185
|
value: "http"
|
|
1182
1186
|
}],
|
|
1183
|
-
value:
|
|
1187
|
+
value: i,
|
|
1184
1188
|
onChange: (d) => o(d)
|
|
1185
|
-
}), s && /* @__PURE__ */ r(
|
|
1189
|
+
}), s && /* @__PURE__ */ r(ft, {
|
|
1186
1190
|
submit: l,
|
|
1187
1191
|
styles: n,
|
|
1188
|
-
type:
|
|
1189
|
-
}), c && /* @__PURE__ */ r(
|
|
1192
|
+
type: i
|
|
1193
|
+
}), c && /* @__PURE__ */ r(mt, {
|
|
1190
1194
|
submit: l,
|
|
1191
1195
|
styles: n
|
|
1192
1196
|
})]
|
|
1193
1197
|
});
|
|
1194
1198
|
}
|
|
1195
|
-
function
|
|
1199
|
+
function vt({
|
|
1196
1200
|
onSuccess: t,
|
|
1197
1201
|
styles: n = X
|
|
1198
1202
|
}) {
|
|
1199
|
-
const [
|
|
1203
|
+
const [i, o] = H.useState(!1), l = () => o(!0), s = () => o(!1);
|
|
1200
1204
|
return /* @__PURE__ */ v(N, {
|
|
1201
1205
|
children: [/* @__PURE__ */ r(ne, {
|
|
1202
1206
|
overflow: "inside",
|
|
1203
|
-
opened:
|
|
1207
|
+
opened: i,
|
|
1204
1208
|
onClose: () => o(!1),
|
|
1205
1209
|
title: "Add a data source",
|
|
1206
1210
|
trapFocus: !0,
|
|
1207
1211
|
onDragStart: (d) => {
|
|
1208
1212
|
d.stopPropagation();
|
|
1209
1213
|
},
|
|
1210
|
-
children: /* @__PURE__ */ r(
|
|
1214
|
+
children: /* @__PURE__ */ r(ht, {
|
|
1211
1215
|
postSubmit: () => {
|
|
1212
1216
|
t(), s();
|
|
1213
1217
|
},
|
|
@@ -1226,17 +1230,17 @@ function Rt({
|
|
|
1226
1230
|
function Ce() {
|
|
1227
1231
|
return Ce = Object.assign ? Object.assign.bind() : function(t) {
|
|
1228
1232
|
for (var n = 1; n < arguments.length; n++) {
|
|
1229
|
-
var
|
|
1230
|
-
for (var o in
|
|
1231
|
-
Object.prototype.hasOwnProperty.call(
|
|
1233
|
+
var i = arguments[n];
|
|
1234
|
+
for (var o in i)
|
|
1235
|
+
Object.prototype.hasOwnProperty.call(i, o) && (t[o] = i[o]);
|
|
1232
1236
|
}
|
|
1233
1237
|
return t;
|
|
1234
1238
|
}, Ce.apply(this, arguments);
|
|
1235
1239
|
}
|
|
1236
|
-
function
|
|
1240
|
+
function bt(t, n) {
|
|
1237
1241
|
if (t == null)
|
|
1238
1242
|
return {};
|
|
1239
|
-
var
|
|
1243
|
+
var i, o, l = function(c, d) {
|
|
1240
1244
|
if (c == null)
|
|
1241
1245
|
return {};
|
|
1242
1246
|
var p, b, S = {}, m = Object.keys(c);
|
|
@@ -1247,24 +1251,24 @@ function Pt(t, n) {
|
|
|
1247
1251
|
if (Object.getOwnPropertySymbols) {
|
|
1248
1252
|
var s = Object.getOwnPropertySymbols(t);
|
|
1249
1253
|
for (o = 0; o < s.length; o++)
|
|
1250
|
-
|
|
1254
|
+
i = s[o], n.indexOf(i) >= 0 || Object.prototype.propertyIsEnumerable.call(t, i) && (l[i] = t[i]);
|
|
1251
1255
|
}
|
|
1252
1256
|
return l;
|
|
1253
1257
|
}
|
|
1254
|
-
var
|
|
1255
|
-
function
|
|
1256
|
-
var n = t.size,
|
|
1257
|
-
return ee.createElement("svg", Ce({ xmlns: "http://www.w3.org/2000/svg", className: "icon icon-tabler icon-tabler-lock", width:
|
|
1258
|
+
var wt = ["size", "color", "stroke"];
|
|
1259
|
+
function St(t) {
|
|
1260
|
+
var n = t.size, i = n === void 0 ? 24 : n, o = t.color, l = o === void 0 ? "currentColor" : o, s = t.stroke, c = s === void 0 ? 2 : s, d = bt(t, wt);
|
|
1261
|
+
return ee.createElement("svg", Ce({ xmlns: "http://www.w3.org/2000/svg", className: "icon icon-tabler icon-tabler-lock", width: i, height: i, viewBox: "0 0 24 24", strokeWidth: c, stroke: l, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, d), ee.createElement("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), ee.createElement("rect", { x: 5, y: 11, width: 14, height: 10, rx: 2 }), ee.createElement("circle", { cx: 12, cy: 16, r: 1 }), ee.createElement("path", { d: "M8 11v-4a4 4 0 0 1 8 0v4" }));
|
|
1258
1262
|
}
|
|
1259
|
-
function
|
|
1263
|
+
function _t({
|
|
1260
1264
|
id: t,
|
|
1261
1265
|
name: n,
|
|
1262
|
-
isProtected:
|
|
1266
|
+
isProtected: i,
|
|
1263
1267
|
onSuccess: o,
|
|
1264
1268
|
styles: l = X
|
|
1265
1269
|
}) {
|
|
1266
1270
|
const s = fe(), c = async () => {
|
|
1267
|
-
!t || (
|
|
1271
|
+
!t || (V({
|
|
1268
1272
|
id: "for-deleting",
|
|
1269
1273
|
title: "Pending",
|
|
1270
1274
|
message: "Deleting data source...",
|
|
@@ -1288,7 +1292,7 @@ function Tt({
|
|
|
1288
1292
|
onCancel: () => console.log("Cancel"),
|
|
1289
1293
|
onConfirm: c
|
|
1290
1294
|
}), p = Kr();
|
|
1291
|
-
return
|
|
1295
|
+
return i ? /* @__PURE__ */ r(Br, {
|
|
1292
1296
|
withArrow: !0,
|
|
1293
1297
|
events: {
|
|
1294
1298
|
hover: !0,
|
|
@@ -1297,7 +1301,7 @@ function Tt({
|
|
|
1297
1301
|
},
|
|
1298
1302
|
label: "This is a preset datasource, it can not be deleted",
|
|
1299
1303
|
children: /* @__PURE__ */ r("span", {
|
|
1300
|
-
children: /* @__PURE__ */ r(
|
|
1304
|
+
children: /* @__PURE__ */ r(St, {
|
|
1301
1305
|
size: 16,
|
|
1302
1306
|
color: p.colors.gray[7]
|
|
1303
1307
|
})
|
|
@@ -1312,13 +1316,13 @@ function Tt({
|
|
|
1312
1316
|
children: "Delete"
|
|
1313
1317
|
});
|
|
1314
1318
|
}
|
|
1315
|
-
function
|
|
1319
|
+
function Wt({
|
|
1316
1320
|
styles: t = X,
|
|
1317
1321
|
config: n
|
|
1318
1322
|
}) {
|
|
1319
1323
|
pe(n);
|
|
1320
1324
|
const {
|
|
1321
|
-
data:
|
|
1325
|
+
data: i = [],
|
|
1322
1326
|
loading: o,
|
|
1323
1327
|
refresh: l
|
|
1324
1328
|
} = G(async () => {
|
|
@@ -1333,7 +1337,7 @@ function en({
|
|
|
1333
1337
|
children: [/* @__PURE__ */ r(O, {
|
|
1334
1338
|
pt: t.spacing,
|
|
1335
1339
|
position: "right",
|
|
1336
|
-
children: /* @__PURE__ */ r(
|
|
1340
|
+
children: /* @__PURE__ */ r(vt, {
|
|
1337
1341
|
onSuccess: l
|
|
1338
1342
|
})
|
|
1339
1343
|
}), /* @__PURE__ */ v(F, {
|
|
@@ -1343,7 +1347,7 @@ function en({
|
|
|
1343
1347
|
},
|
|
1344
1348
|
children: [/* @__PURE__ */ r(Oe, {
|
|
1345
1349
|
visible: o
|
|
1346
|
-
}), /* @__PURE__ */ v(
|
|
1350
|
+
}), /* @__PURE__ */ v(ke, {
|
|
1347
1351
|
horizontalSpacing: t.spacing,
|
|
1348
1352
|
verticalSpacing: t.spacing,
|
|
1349
1353
|
fontSize: t.size,
|
|
@@ -1359,7 +1363,7 @@ function en({
|
|
|
1359
1363
|
})]
|
|
1360
1364
|
})
|
|
1361
1365
|
}), /* @__PURE__ */ r("tbody", {
|
|
1362
|
-
children:
|
|
1366
|
+
children: i.map(({
|
|
1363
1367
|
id: s,
|
|
1364
1368
|
key: c,
|
|
1365
1369
|
type: d,
|
|
@@ -1374,7 +1378,7 @@ function en({
|
|
|
1374
1378
|
width: 200,
|
|
1375
1379
|
children: /* @__PURE__ */ r(O, {
|
|
1376
1380
|
position: "left",
|
|
1377
|
-
children: /* @__PURE__ */ r(
|
|
1381
|
+
children: /* @__PURE__ */ r(_t, {
|
|
1378
1382
|
isProtected: p,
|
|
1379
1383
|
id: s,
|
|
1380
1384
|
name: c,
|
|
@@ -1388,10 +1392,10 @@ function en({
|
|
|
1388
1392
|
})]
|
|
1389
1393
|
});
|
|
1390
1394
|
}
|
|
1391
|
-
const
|
|
1395
|
+
const yt = Ae(({
|
|
1392
1396
|
label: t,
|
|
1393
1397
|
value: n,
|
|
1394
|
-
description:
|
|
1398
|
+
description: i,
|
|
1395
1399
|
...o
|
|
1396
1400
|
}, l) => /* @__PURE__ */ v(ze, {
|
|
1397
1401
|
spacing: 2,
|
|
@@ -1404,12 +1408,12 @@ const zt = ke(({
|
|
|
1404
1408
|
size: "xs",
|
|
1405
1409
|
color: "dimmed",
|
|
1406
1410
|
className: "role-description",
|
|
1407
|
-
children:
|
|
1411
|
+
children: i
|
|
1408
1412
|
})]
|
|
1409
|
-
})), je =
|
|
1413
|
+
})), je = Ae(({
|
|
1410
1414
|
styles: t,
|
|
1411
1415
|
value: n,
|
|
1412
|
-
onChange:
|
|
1416
|
+
onChange: i
|
|
1413
1417
|
}, o) => {
|
|
1414
1418
|
const {
|
|
1415
1419
|
data: l = [],
|
|
@@ -1428,7 +1432,7 @@ const zt = ke(({
|
|
|
1428
1432
|
size: t.size,
|
|
1429
1433
|
required: !0,
|
|
1430
1434
|
label: "Role",
|
|
1431
|
-
itemComponent:
|
|
1435
|
+
itemComponent: yt,
|
|
1432
1436
|
data: l,
|
|
1433
1437
|
disabled: s,
|
|
1434
1438
|
styles: () => ({
|
|
@@ -1443,19 +1447,19 @@ const zt = ke(({
|
|
|
1443
1447
|
}
|
|
1444
1448
|
}),
|
|
1445
1449
|
value: n,
|
|
1446
|
-
onChange:
|
|
1450
|
+
onChange: i
|
|
1447
1451
|
});
|
|
1448
|
-
}),
|
|
1452
|
+
}), W = {
|
|
1449
1453
|
size: "sm",
|
|
1450
1454
|
spacing: "md",
|
|
1451
1455
|
button: {
|
|
1452
1456
|
size: "xs"
|
|
1453
1457
|
}
|
|
1454
1458
|
};
|
|
1455
|
-
function
|
|
1459
|
+
function Rt({
|
|
1456
1460
|
postSubmit: t,
|
|
1457
|
-
styles: n =
|
|
1458
|
-
initialRoleID:
|
|
1461
|
+
styles: n = W,
|
|
1462
|
+
initialRoleID: i
|
|
1459
1463
|
}) {
|
|
1460
1464
|
const {
|
|
1461
1465
|
control: o,
|
|
@@ -1464,7 +1468,7 @@ function Ot({
|
|
|
1464
1468
|
defaultValues: {
|
|
1465
1469
|
name: "",
|
|
1466
1470
|
email: "",
|
|
1467
|
-
role_id:
|
|
1471
|
+
role_id: i,
|
|
1468
1472
|
password: ""
|
|
1469
1473
|
}
|
|
1470
1474
|
});
|
|
@@ -1478,7 +1482,7 @@ function Ot({
|
|
|
1478
1482
|
role_id: b
|
|
1479
1483
|
}) => {
|
|
1480
1484
|
try {
|
|
1481
|
-
|
|
1485
|
+
V({
|
|
1482
1486
|
id: "for-creating",
|
|
1483
1487
|
title: "Pending",
|
|
1484
1488
|
message: "Adding account...",
|
|
@@ -1556,10 +1560,10 @@ function Ot({
|
|
|
1556
1560
|
})
|
|
1557
1561
|
});
|
|
1558
1562
|
}
|
|
1559
|
-
function
|
|
1563
|
+
function Pt({
|
|
1560
1564
|
onSuccess: t,
|
|
1561
|
-
styles: n =
|
|
1562
|
-
initialRoleID:
|
|
1565
|
+
styles: n = W,
|
|
1566
|
+
initialRoleID: i
|
|
1563
1567
|
}) {
|
|
1564
1568
|
const [o, l] = H.useState(!1), s = () => l(!0), c = () => l(!1);
|
|
1565
1569
|
return /* @__PURE__ */ v(N, {
|
|
@@ -1572,12 +1576,12 @@ function At({
|
|
|
1572
1576
|
onDragStart: (p) => {
|
|
1573
1577
|
p.stopPropagation();
|
|
1574
1578
|
},
|
|
1575
|
-
children: /* @__PURE__ */ r(
|
|
1579
|
+
children: /* @__PURE__ */ r(Rt, {
|
|
1576
1580
|
postSubmit: () => {
|
|
1577
1581
|
t(), c();
|
|
1578
1582
|
},
|
|
1579
1583
|
styles: n,
|
|
1580
|
-
initialRoleID:
|
|
1584
|
+
initialRoleID: i
|
|
1581
1585
|
})
|
|
1582
1586
|
}), /* @__PURE__ */ r(T, {
|
|
1583
1587
|
size: n.button.size,
|
|
@@ -1589,15 +1593,15 @@ function At({
|
|
|
1589
1593
|
})]
|
|
1590
1594
|
});
|
|
1591
1595
|
}
|
|
1592
|
-
function
|
|
1596
|
+
function Et({
|
|
1593
1597
|
id: t,
|
|
1594
1598
|
name: n,
|
|
1595
|
-
onSuccess:
|
|
1596
|
-
styles: o =
|
|
1599
|
+
onSuccess: i,
|
|
1600
|
+
styles: o = W
|
|
1597
1601
|
}) {
|
|
1598
1602
|
const l = fe(), s = async () => {
|
|
1599
1603
|
if (!!t) {
|
|
1600
|
-
|
|
1604
|
+
V({
|
|
1601
1605
|
id: "for-deleting",
|
|
1602
1606
|
title: "Pending",
|
|
1603
1607
|
message: "Deleting account...",
|
|
@@ -1609,7 +1613,7 @@ function kt({
|
|
|
1609
1613
|
title: "Successful",
|
|
1610
1614
|
message: `Account [${n}] is deleted`,
|
|
1611
1615
|
color: "green"
|
|
1612
|
-
}),
|
|
1616
|
+
}), i();
|
|
1613
1617
|
} catch (d) {
|
|
1614
1618
|
x({
|
|
1615
1619
|
id: "for-deleting",
|
|
@@ -1638,13 +1642,13 @@ function kt({
|
|
|
1638
1642
|
children: "Delete"
|
|
1639
1643
|
});
|
|
1640
1644
|
}
|
|
1641
|
-
function
|
|
1645
|
+
function Ct({
|
|
1642
1646
|
id: t,
|
|
1643
1647
|
name: n,
|
|
1644
|
-
email:
|
|
1648
|
+
email: i,
|
|
1645
1649
|
role_id: o,
|
|
1646
1650
|
postSubmit: l,
|
|
1647
|
-
styles: s =
|
|
1651
|
+
styles: s = W
|
|
1648
1652
|
}) {
|
|
1649
1653
|
const {
|
|
1650
1654
|
control: c,
|
|
@@ -1653,7 +1657,7 @@ function xt({
|
|
|
1653
1657
|
} = J({
|
|
1654
1658
|
defaultValues: {
|
|
1655
1659
|
name: n,
|
|
1656
|
-
email:
|
|
1660
|
+
email: i,
|
|
1657
1661
|
role_id: o,
|
|
1658
1662
|
reset_password: !1,
|
|
1659
1663
|
new_password: ""
|
|
@@ -1666,7 +1670,7 @@ function xt({
|
|
|
1666
1670
|
new_password: he
|
|
1667
1671
|
}) => {
|
|
1668
1672
|
try {
|
|
1669
|
-
|
|
1673
|
+
V({
|
|
1670
1674
|
id: "for-updating",
|
|
1671
1675
|
title: "Pending",
|
|
1672
1676
|
message: "Updating account...",
|
|
@@ -1778,10 +1782,10 @@ function xt({
|
|
|
1778
1782
|
})
|
|
1779
1783
|
});
|
|
1780
1784
|
}
|
|
1781
|
-
function
|
|
1785
|
+
function Tt({
|
|
1782
1786
|
account: t,
|
|
1783
1787
|
onSuccess: n,
|
|
1784
|
-
styles:
|
|
1788
|
+
styles: i = W
|
|
1785
1789
|
}) {
|
|
1786
1790
|
const [o, l] = H.useState(!1), s = () => l(!0), c = () => l(!1), d = () => {
|
|
1787
1791
|
n(), c();
|
|
@@ -1796,13 +1800,13 @@ function Dt({
|
|
|
1796
1800
|
onDragStart: (p) => {
|
|
1797
1801
|
p.stopPropagation();
|
|
1798
1802
|
},
|
|
1799
|
-
children: /* @__PURE__ */ r(
|
|
1803
|
+
children: /* @__PURE__ */ r(Ct, {
|
|
1800
1804
|
...t,
|
|
1801
1805
|
postSubmit: d,
|
|
1802
|
-
styles:
|
|
1806
|
+
styles: i
|
|
1803
1807
|
})
|
|
1804
1808
|
}), /* @__PURE__ */ r(T, {
|
|
1805
|
-
size:
|
|
1809
|
+
size: i.button.size,
|
|
1806
1810
|
onClick: s,
|
|
1807
1811
|
leftIcon: /* @__PURE__ */ r(Xr, {
|
|
1808
1812
|
size: 20
|
|
@@ -1811,14 +1815,14 @@ function Dt({
|
|
|
1811
1815
|
})]
|
|
1812
1816
|
});
|
|
1813
1817
|
}
|
|
1814
|
-
function
|
|
1815
|
-
styles: t =
|
|
1818
|
+
function $t({
|
|
1819
|
+
styles: t = W,
|
|
1816
1820
|
config: n
|
|
1817
1821
|
}) {
|
|
1818
1822
|
var b, S;
|
|
1819
1823
|
pe(n);
|
|
1820
1824
|
const {
|
|
1821
|
-
data:
|
|
1825
|
+
data: i = [],
|
|
1822
1826
|
loading: o,
|
|
1823
1827
|
refresh: l
|
|
1824
1828
|
} = G(async () => {
|
|
@@ -1846,7 +1850,7 @@ function rn({
|
|
|
1846
1850
|
children: [/* @__PURE__ */ r(O, {
|
|
1847
1851
|
pt: t.spacing,
|
|
1848
1852
|
position: "right",
|
|
1849
|
-
children: /* @__PURE__ */ r(
|
|
1853
|
+
children: /* @__PURE__ */ r(Pt, {
|
|
1850
1854
|
onSuccess: l,
|
|
1851
1855
|
initialRoleID: (S = (b = s == null ? void 0 : s[0]) == null ? void 0 : b.value) != null ? S : 0
|
|
1852
1856
|
})
|
|
@@ -1857,7 +1861,7 @@ function rn({
|
|
|
1857
1861
|
},
|
|
1858
1862
|
children: [/* @__PURE__ */ r(Oe, {
|
|
1859
1863
|
visible: o || c
|
|
1860
|
-
}), /* @__PURE__ */ v(
|
|
1864
|
+
}), /* @__PURE__ */ v(ke, {
|
|
1861
1865
|
horizontalSpacing: t.spacing,
|
|
1862
1866
|
verticalSpacing: t.spacing,
|
|
1863
1867
|
fontSize: t.size,
|
|
@@ -1875,7 +1879,7 @@ function rn({
|
|
|
1875
1879
|
})]
|
|
1876
1880
|
})
|
|
1877
1881
|
}), /* @__PURE__ */ r("tbody", {
|
|
1878
|
-
children:
|
|
1882
|
+
children: i.map((m) => {
|
|
1879
1883
|
const {
|
|
1880
1884
|
id: f,
|
|
1881
1885
|
name: z,
|
|
@@ -1896,10 +1900,10 @@ function rn({
|
|
|
1896
1900
|
width: 200,
|
|
1897
1901
|
children: /* @__PURE__ */ v(O, {
|
|
1898
1902
|
position: "left",
|
|
1899
|
-
children: [/* @__PURE__ */ r(
|
|
1903
|
+
children: [/* @__PURE__ */ r(Tt, {
|
|
1900
1904
|
account: m,
|
|
1901
1905
|
onSuccess: l
|
|
1902
|
-
}), /* @__PURE__ */ r(
|
|
1906
|
+
}), /* @__PURE__ */ r(Et, {
|
|
1903
1907
|
id: f,
|
|
1904
1908
|
name: z,
|
|
1905
1909
|
onSuccess: l
|
|
@@ -1913,12 +1917,12 @@ function rn({
|
|
|
1913
1917
|
})]
|
|
1914
1918
|
});
|
|
1915
1919
|
}
|
|
1916
|
-
function
|
|
1920
|
+
function zt({
|
|
1917
1921
|
postSubmit: t,
|
|
1918
|
-
styles: n =
|
|
1922
|
+
styles: n = W
|
|
1919
1923
|
}) {
|
|
1920
1924
|
const {
|
|
1921
|
-
control:
|
|
1925
|
+
control: i,
|
|
1922
1926
|
handleSubmit: o
|
|
1923
1927
|
} = J({
|
|
1924
1928
|
defaultValues: {
|
|
@@ -1934,7 +1938,7 @@ function jt({
|
|
|
1934
1938
|
password: c
|
|
1935
1939
|
}) => {
|
|
1936
1940
|
try {
|
|
1937
|
-
|
|
1941
|
+
V({
|
|
1938
1942
|
id: "for-login",
|
|
1939
1943
|
title: "Pending",
|
|
1940
1944
|
message: "Loggin in...",
|
|
@@ -1958,7 +1962,7 @@ function jt({
|
|
|
1958
1962
|
}),
|
|
1959
1963
|
children: [/* @__PURE__ */ r(R, {
|
|
1960
1964
|
name: "name",
|
|
1961
|
-
control:
|
|
1965
|
+
control: i,
|
|
1962
1966
|
render: ({
|
|
1963
1967
|
field: s
|
|
1964
1968
|
}) => /* @__PURE__ */ r(D, {
|
|
@@ -1970,7 +1974,7 @@ function jt({
|
|
|
1970
1974
|
})
|
|
1971
1975
|
}), /* @__PURE__ */ r(R, {
|
|
1972
1976
|
name: "password",
|
|
1973
|
-
control:
|
|
1977
|
+
control: i,
|
|
1974
1978
|
render: ({
|
|
1975
1979
|
field: s
|
|
1976
1980
|
}) => /* @__PURE__ */ r(de, {
|
|
@@ -1992,10 +1996,10 @@ function jt({
|
|
|
1992
1996
|
})
|
|
1993
1997
|
});
|
|
1994
1998
|
}
|
|
1995
|
-
function
|
|
1996
|
-
styles: t =
|
|
1999
|
+
function Yt({
|
|
2000
|
+
styles: t = W,
|
|
1997
2001
|
config: n,
|
|
1998
|
-
onSuccess:
|
|
2002
|
+
onSuccess: i
|
|
1999
2003
|
}) {
|
|
2000
2004
|
return pe(n), /* @__PURE__ */ r(N, {
|
|
2001
2005
|
children: /* @__PURE__ */ r(F, {
|
|
@@ -2003,9 +2007,9 @@ function tn({
|
|
|
2003
2007
|
sx: {
|
|
2004
2008
|
position: "relative"
|
|
2005
2009
|
},
|
|
2006
|
-
children: /* @__PURE__ */ r(
|
|
2010
|
+
children: /* @__PURE__ */ r(zt, {
|
|
2007
2011
|
styles: t,
|
|
2008
|
-
postSubmit:
|
|
2012
|
+
postSubmit: i
|
|
2009
2013
|
})
|
|
2010
2014
|
})
|
|
2011
2015
|
});
|
|
@@ -2017,10 +2021,10 @@ const me = {
|
|
|
2017
2021
|
size: "xs"
|
|
2018
2022
|
}
|
|
2019
2023
|
};
|
|
2020
|
-
function
|
|
2024
|
+
function Ot({
|
|
2021
2025
|
postSubmit: t,
|
|
2022
2026
|
styles: n = me,
|
|
2023
|
-
initialRoleID:
|
|
2027
|
+
initialRoleID: i
|
|
2024
2028
|
}) {
|
|
2025
2029
|
const {
|
|
2026
2030
|
control: o,
|
|
@@ -2028,7 +2032,7 @@ function It({
|
|
|
2028
2032
|
} = J({
|
|
2029
2033
|
defaultValues: {
|
|
2030
2034
|
name: "",
|
|
2031
|
-
role_id:
|
|
2035
|
+
role_id: i
|
|
2032
2036
|
}
|
|
2033
2037
|
});
|
|
2034
2038
|
return /* @__PURE__ */ r(F, {
|
|
@@ -2039,7 +2043,7 @@ function It({
|
|
|
2039
2043
|
role_id: d
|
|
2040
2044
|
}) => {
|
|
2041
2045
|
try {
|
|
2042
|
-
|
|
2046
|
+
V({
|
|
2043
2047
|
id: "for-creating",
|
|
2044
2048
|
title: "Pending",
|
|
2045
2049
|
message: "Adding API Key...",
|
|
@@ -2097,10 +2101,10 @@ function It({
|
|
|
2097
2101
|
})
|
|
2098
2102
|
});
|
|
2099
2103
|
}
|
|
2100
|
-
function
|
|
2104
|
+
function kt({
|
|
2101
2105
|
onSuccess: t,
|
|
2102
2106
|
styles: n = me,
|
|
2103
|
-
initialRoleID:
|
|
2107
|
+
initialRoleID: i
|
|
2104
2108
|
}) {
|
|
2105
2109
|
const o = fe(), [l, s] = H.useState(!1), c = () => s(!0), d = () => s(!1);
|
|
2106
2110
|
return /* @__PURE__ */ v(N, {
|
|
@@ -2113,7 +2117,7 @@ function Ft({
|
|
|
2113
2117
|
onDragStart: (b) => {
|
|
2114
2118
|
b.stopPropagation();
|
|
2115
2119
|
},
|
|
2116
|
-
children: /* @__PURE__ */ r(
|
|
2120
|
+
children: /* @__PURE__ */ r(Ot, {
|
|
2117
2121
|
postSubmit: (b, S) => {
|
|
2118
2122
|
d(), o.openModal({
|
|
2119
2123
|
title: "API Key is generated",
|
|
@@ -2142,7 +2146,7 @@ function Ft({
|
|
|
2142
2146
|
}), /* @__PURE__ */ r(T, {
|
|
2143
2147
|
size: "sm",
|
|
2144
2148
|
onClick: () => {
|
|
2145
|
-
|
|
2149
|
+
nt();
|
|
2146
2150
|
},
|
|
2147
2151
|
children: "I've saved this API Key"
|
|
2148
2152
|
})]
|
|
@@ -2153,7 +2157,7 @@ function Ft({
|
|
|
2153
2157
|
});
|
|
2154
2158
|
},
|
|
2155
2159
|
styles: n,
|
|
2156
|
-
initialRoleID:
|
|
2160
|
+
initialRoleID: i
|
|
2157
2161
|
})
|
|
2158
2162
|
}), /* @__PURE__ */ r(T, {
|
|
2159
2163
|
size: n.button.size,
|
|
@@ -2165,15 +2169,15 @@ function Ft({
|
|
|
2165
2169
|
})]
|
|
2166
2170
|
});
|
|
2167
2171
|
}
|
|
2168
|
-
function
|
|
2172
|
+
function At({
|
|
2169
2173
|
id: t,
|
|
2170
2174
|
name: n,
|
|
2171
|
-
onSuccess:
|
|
2175
|
+
onSuccess: i,
|
|
2172
2176
|
styles: o = me
|
|
2173
2177
|
}) {
|
|
2174
2178
|
const l = fe(), s = async () => {
|
|
2175
2179
|
if (!!t) {
|
|
2176
|
-
|
|
2180
|
+
V({
|
|
2177
2181
|
id: "for-deleting",
|
|
2178
2182
|
title: "Pending",
|
|
2179
2183
|
message: "Deleting API Key...",
|
|
@@ -2185,7 +2189,7 @@ function qt({
|
|
|
2185
2189
|
title: "Successful",
|
|
2186
2190
|
message: `API Key [${n}] is deleted`,
|
|
2187
2191
|
color: "green"
|
|
2188
|
-
}),
|
|
2192
|
+
}), i();
|
|
2189
2193
|
} catch (d) {
|
|
2190
2194
|
x({
|
|
2191
2195
|
id: "for-deleting",
|
|
@@ -2214,14 +2218,14 @@ function qt({
|
|
|
2214
2218
|
children: "Delete"
|
|
2215
2219
|
});
|
|
2216
2220
|
}
|
|
2217
|
-
function
|
|
2221
|
+
function Kt({
|
|
2218
2222
|
styles: t = me,
|
|
2219
2223
|
config: n
|
|
2220
2224
|
}) {
|
|
2221
2225
|
var b, S;
|
|
2222
2226
|
pe(n);
|
|
2223
2227
|
const {
|
|
2224
|
-
data:
|
|
2228
|
+
data: i = [],
|
|
2225
2229
|
loading: o,
|
|
2226
2230
|
refresh: l
|
|
2227
2231
|
} = G(async () => {
|
|
@@ -2249,7 +2253,7 @@ function nn({
|
|
|
2249
2253
|
children: [/* @__PURE__ */ r(O, {
|
|
2250
2254
|
pt: t.spacing,
|
|
2251
2255
|
position: "right",
|
|
2252
|
-
children: /* @__PURE__ */ r(
|
|
2256
|
+
children: /* @__PURE__ */ r(kt, {
|
|
2253
2257
|
onSuccess: l,
|
|
2254
2258
|
initialRoleID: (S = (b = s == null ? void 0 : s[0]) == null ? void 0 : b.value) != null ? S : 0
|
|
2255
2259
|
})
|
|
@@ -2260,7 +2264,7 @@ function nn({
|
|
|
2260
2264
|
},
|
|
2261
2265
|
children: [/* @__PURE__ */ r(Oe, {
|
|
2262
2266
|
visible: o || c
|
|
2263
|
-
}), /* @__PURE__ */ v(
|
|
2267
|
+
}), /* @__PURE__ */ v(ke, {
|
|
2264
2268
|
horizontalSpacing: t.spacing,
|
|
2265
2269
|
verticalSpacing: t.spacing,
|
|
2266
2270
|
fontSize: t.size,
|
|
@@ -2278,7 +2282,7 @@ function nn({
|
|
|
2278
2282
|
})]
|
|
2279
2283
|
})
|
|
2280
2284
|
}), /* @__PURE__ */ r("tbody", {
|
|
2281
|
-
children:
|
|
2285
|
+
children: i.map((m) => {
|
|
2282
2286
|
const {
|
|
2283
2287
|
id: f,
|
|
2284
2288
|
name: z,
|
|
@@ -2299,7 +2303,7 @@ function nn({
|
|
|
2299
2303
|
width: 200,
|
|
2300
2304
|
children: /* @__PURE__ */ r(O, {
|
|
2301
2305
|
position: "left",
|
|
2302
|
-
children: /* @__PURE__ */ r(
|
|
2306
|
+
children: /* @__PURE__ */ r(At, {
|
|
2303
2307
|
id: f,
|
|
2304
2308
|
name: z,
|
|
2305
2309
|
onSuccess: l
|
|
@@ -2313,17 +2317,17 @@ function nn({
|
|
|
2313
2317
|
})]
|
|
2314
2318
|
});
|
|
2315
2319
|
}
|
|
2316
|
-
const
|
|
2320
|
+
const Bt = () => import("./package.7438fb39.mjs").then(({ version: t }) => (console.log(`[@devtable/dashboard] version: ${t}`), t));
|
|
2317
2321
|
export {
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2322
|
+
Kt as APIKeyList,
|
|
2323
|
+
$t as AccountList,
|
|
2324
|
+
kt as AddAPIKey,
|
|
2325
|
+
Pt as AddAccount,
|
|
2326
|
+
vt as AddDataSource,
|
|
2327
|
+
Wt as DataSourceList,
|
|
2328
|
+
At as DeleteAPIKey,
|
|
2329
|
+
Et as DeleteAccount,
|
|
2330
|
+
_t as DeleteDataSource,
|
|
2331
|
+
Yt as Login,
|
|
2332
|
+
Bt as getVersion
|
|
2329
2333
|
};
|