@devtable/settings-form 8.12.0 → 8.13.1
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/assets/css.worker.72a68640.js +85 -0
- package/dist/assets/editor.worker.64456f42.js +9 -0
- package/dist/assets/html.worker.76e8b0f3.js +457 -0
- package/dist/assets/json.worker.e7a84e5c.js +40 -0
- package/dist/assets/ts.worker.b3dc4cb9.js +33973 -0
- package/dist/{package.d6f651f3.mjs → package.b74d5f91.mjs} +11 -8
- package/dist/settings-form.es.js +593 -568
- package/dist/settings-form.umd.js +16 -16
- package/dist/utils/load-monaco-editor.d.ts +1 -0
- package/package.json +5 -2
package/dist/settings-form.es.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { Box as me, TextInput as fe, Divider as
|
|
1
|
+
import { Box as me, TextInput as fe, Divider as Pr, Group as se, NumberInput as Vt, PasswordInput as tr, Button as oe, Modal as Be, Stack as Rr, SegmentedControl as Bt, useMantineTheme as Kt, Tooltip as Ht, Text as Ze, LoadingOverlay as _r, Table as xr, Select as Gt, Switch as Jt } from "@mantine/core";
|
|
2
2
|
import { showNotification as _e, updateNotification as le } from "@mantine/notifications";
|
|
3
|
-
import * as
|
|
4
|
-
import
|
|
5
|
-
import { Recycle as Xt, PlaylistAdd as
|
|
3
|
+
import * as Fe from "react";
|
|
4
|
+
import ze, { useEffect as we, memo as dt, useRef as ue, useState as Ie, useCallback as Tr, forwardRef as Cr, useMemo as pt } from "react";
|
|
5
|
+
import { Recycle as Xt, PlaylistAdd as jr, Trash as Ar, Edit as Qt } from "tabler-icons-react";
|
|
6
6
|
import Zt from "axios";
|
|
7
7
|
import en from "crypto-js";
|
|
8
8
|
import rn from "lodash";
|
|
9
|
-
import { useForm as
|
|
10
|
-
import { useBoolean as tn, useRequest as
|
|
11
|
-
import
|
|
12
|
-
|
|
9
|
+
import { useForm as De, Controller as J } from "react-hook-form";
|
|
10
|
+
import { useBoolean as tn, useRequest as ke } from "ahooks";
|
|
11
|
+
import * as nn from "monaco-editor";
|
|
12
|
+
import { useModals as nr, closeAllModals as on } from "@mantine/modals";
|
|
13
|
+
function an(e) {
|
|
13
14
|
e = e || {};
|
|
14
15
|
const r = Object.keys(e).sort(), t = [];
|
|
15
16
|
for (let o = 0; o < r.length; o++) {
|
|
@@ -28,8 +29,8 @@ function on(e) {
|
|
|
28
29
|
}
|
|
29
30
|
return t.sort().join("&");
|
|
30
31
|
}
|
|
31
|
-
function
|
|
32
|
-
let t =
|
|
32
|
+
function sn(e, r) {
|
|
33
|
+
let t = an(e);
|
|
33
34
|
return t += "&key=" + r, en.MD5(t).toString().toUpperCase();
|
|
34
35
|
}
|
|
35
36
|
const ne = {
|
|
@@ -43,7 +44,7 @@ const ne = {
|
|
|
43
44
|
return {
|
|
44
45
|
app_id: this.app_id,
|
|
45
46
|
nonce_str: r,
|
|
46
|
-
sign:
|
|
47
|
+
sign: sn(
|
|
47
48
|
{
|
|
48
49
|
app_id: this.app_id,
|
|
49
50
|
nonce_str: r,
|
|
@@ -71,10 +72,10 @@ const ne = {
|
|
|
71
72
|
};
|
|
72
73
|
}
|
|
73
74
|
};
|
|
74
|
-
function
|
|
75
|
+
function or(e) {
|
|
75
76
|
ne.baseURL !== e.apiBaseURL && (ne.baseURL = e.apiBaseURL), e.app_id && (ne.app_id = e.app_id), e.app_secret && (ne.app_secret = e.app_secret);
|
|
76
77
|
}
|
|
77
|
-
const
|
|
78
|
+
const cn = {
|
|
78
79
|
login: async (e, r) => {
|
|
79
80
|
const t = {
|
|
80
81
|
name: e,
|
|
@@ -121,7 +122,7 @@ const sn = {
|
|
|
121
122
|
if (!!e)
|
|
122
123
|
return ne.getRequest("POST")("/account/delete", { id: e });
|
|
123
124
|
}
|
|
124
|
-
},
|
|
125
|
+
}, un = {
|
|
125
126
|
list: async () => await ne.getRequest("POST")("/api/key/list", {
|
|
126
127
|
filter: {
|
|
127
128
|
search: ""
|
|
@@ -145,7 +146,7 @@ const sn = {
|
|
|
145
146
|
if (!!e)
|
|
146
147
|
return ne.getRequest("POST")("/api/key/delete", { id: e });
|
|
147
148
|
}
|
|
148
|
-
},
|
|
149
|
+
}, ln = {
|
|
149
150
|
list: async () => await ne.getRequest("POST")("/datasource/list", {
|
|
150
151
|
filter: {},
|
|
151
152
|
sort: [
|
|
@@ -167,13 +168,13 @@ const sn = {
|
|
|
167
168
|
delete: async (e) => {
|
|
168
169
|
await ne.getRequest("POST")("/datasource/delete", { id: e });
|
|
169
170
|
}
|
|
170
|
-
},
|
|
171
|
+
}, fn = {
|
|
171
172
|
list: async () => await ne.getRequest("GET")("/role/list", {})
|
|
172
173
|
}, de = {
|
|
173
|
-
datasource:
|
|
174
|
-
account:
|
|
175
|
-
role:
|
|
176
|
-
api_key:
|
|
174
|
+
datasource: ln,
|
|
175
|
+
account: cn,
|
|
176
|
+
role: fn,
|
|
177
|
+
api_key: un
|
|
177
178
|
}, qe = {
|
|
178
179
|
size: "sm",
|
|
179
180
|
spacing: "md",
|
|
@@ -181,7 +182,7 @@ const sn = {
|
|
|
181
182
|
size: "xs"
|
|
182
183
|
}
|
|
183
184
|
};
|
|
184
|
-
var
|
|
185
|
+
var ir = { exports: {} }, Le = {};
|
|
185
186
|
/**
|
|
186
187
|
* @license React
|
|
187
188
|
* react-jsx-runtime.production.min.js
|
|
@@ -191,12 +192,12 @@ var or = { exports: {} }, Le = {};
|
|
|
191
192
|
* This source code is licensed under the MIT license found in the
|
|
192
193
|
* LICENSE file in the root directory of this source tree.
|
|
193
194
|
*/
|
|
194
|
-
var
|
|
195
|
-
function
|
|
196
|
-
if (
|
|
195
|
+
var Hr;
|
|
196
|
+
function dn() {
|
|
197
|
+
if (Hr)
|
|
197
198
|
return Le;
|
|
198
|
-
|
|
199
|
-
var e =
|
|
199
|
+
Hr = 1;
|
|
200
|
+
var e = ze, r = Symbol.for("react.element"), t = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
200
201
|
function c(u, d, v) {
|
|
201
202
|
var y, h = {}, m = null, x = null;
|
|
202
203
|
v !== void 0 && (m = "" + v), d.key !== void 0 && (m = "" + d.key), d.ref !== void 0 && (x = d.ref);
|
|
@@ -209,7 +210,7 @@ function fn() {
|
|
|
209
210
|
}
|
|
210
211
|
return Le.Fragment = t, Le.jsx = c, Le.jsxs = c, Le;
|
|
211
212
|
}
|
|
212
|
-
var
|
|
213
|
+
var We = {};
|
|
213
214
|
/**
|
|
214
215
|
* @license React
|
|
215
216
|
* react-jsx-runtime.development.js
|
|
@@ -219,18 +220,18 @@ var Ue = {};
|
|
|
219
220
|
* This source code is licensed under the MIT license found in the
|
|
220
221
|
* LICENSE file in the root directory of this source tree.
|
|
221
222
|
*/
|
|
222
|
-
var
|
|
223
|
-
function
|
|
224
|
-
return
|
|
225
|
-
var e =
|
|
223
|
+
var Gr;
|
|
224
|
+
function pn() {
|
|
225
|
+
return Gr || (Gr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
226
|
+
var e = ze, r = Symbol.for("react.element"), t = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), u = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), Y = Symbol.iterator, z = "@@iterator";
|
|
226
227
|
function G(n) {
|
|
227
228
|
if (n === null || typeof n != "object")
|
|
228
229
|
return null;
|
|
229
|
-
var f = Y && n[Y] || n[
|
|
230
|
+
var f = Y && n[Y] || n[z];
|
|
230
231
|
return typeof f == "function" ? f : null;
|
|
231
232
|
}
|
|
232
233
|
var K = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
233
|
-
function
|
|
234
|
+
function D(n) {
|
|
234
235
|
{
|
|
235
236
|
for (var f = arguments.length, b = new Array(f > 1 ? f - 1 : 0), E = 1; E < f; E++)
|
|
236
237
|
b[E - 1] = arguments[E];
|
|
@@ -249,7 +250,7 @@ function dn() {
|
|
|
249
250
|
}
|
|
250
251
|
var N = !1, p = !1, X = !1, ee = !1, Se = !1, Q;
|
|
251
252
|
Q = Symbol.for("react.module.reference");
|
|
252
|
-
function
|
|
253
|
+
function F(n) {
|
|
253
254
|
return !!(typeof n == "string" || typeof n == "function" || n === o || n === i || Se || n === s || n === v || n === y || ee || n === x || N || p || X || typeof n == "object" && n !== null && (n.$$typeof === m || n.$$typeof === h || n.$$typeof === c || n.$$typeof === u || n.$$typeof === d || n.$$typeof === Q || n.getModuleId !== void 0));
|
|
254
255
|
}
|
|
255
256
|
function ge(n, f, b) {
|
|
@@ -265,7 +266,7 @@ function dn() {
|
|
|
265
266
|
function ie(n) {
|
|
266
267
|
if (n == null)
|
|
267
268
|
return null;
|
|
268
|
-
if (typeof n.tag == "number" &&
|
|
269
|
+
if (typeof n.tag == "number" && D("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof n == "function")
|
|
269
270
|
return n.displayName || n.name || null;
|
|
270
271
|
if (typeof n == "string")
|
|
271
272
|
return n;
|
|
@@ -307,7 +308,7 @@ function dn() {
|
|
|
307
308
|
}
|
|
308
309
|
return null;
|
|
309
310
|
}
|
|
310
|
-
var
|
|
311
|
+
var k = Object.assign, B = 0, te, pe, Ee, Pe, l, g, T;
|
|
311
312
|
function O() {
|
|
312
313
|
}
|
|
313
314
|
O.__reactDisabledLog = !0;
|
|
@@ -343,30 +344,30 @@ function dn() {
|
|
|
343
344
|
writable: !0
|
|
344
345
|
};
|
|
345
346
|
Object.defineProperties(console, {
|
|
346
|
-
log:
|
|
347
|
+
log: k({}, n, {
|
|
347
348
|
value: te
|
|
348
349
|
}),
|
|
349
|
-
info:
|
|
350
|
+
info: k({}, n, {
|
|
350
351
|
value: pe
|
|
351
352
|
}),
|
|
352
|
-
warn:
|
|
353
|
+
warn: k({}, n, {
|
|
353
354
|
value: Ee
|
|
354
355
|
}),
|
|
355
|
-
error:
|
|
356
|
+
error: k({}, n, {
|
|
356
357
|
value: Pe
|
|
357
358
|
}),
|
|
358
|
-
group:
|
|
359
|
+
group: k({}, n, {
|
|
359
360
|
value: l
|
|
360
361
|
}),
|
|
361
|
-
groupCollapsed:
|
|
362
|
+
groupCollapsed: k({}, n, {
|
|
362
363
|
value: g
|
|
363
364
|
}),
|
|
364
|
-
groupEnd:
|
|
365
|
+
groupEnd: k({}, n, {
|
|
365
366
|
value: T
|
|
366
367
|
})
|
|
367
368
|
});
|
|
368
369
|
}
|
|
369
|
-
B < 0 &&
|
|
370
|
+
B < 0 && D("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
370
371
|
}
|
|
371
372
|
}
|
|
372
373
|
var R = K.ReactCurrentDispatcher, _;
|
|
@@ -383,13 +384,13 @@ function dn() {
|
|
|
383
384
|
` + _ + n;
|
|
384
385
|
}
|
|
385
386
|
}
|
|
386
|
-
var
|
|
387
|
+
var $ = !1, A;
|
|
387
388
|
{
|
|
388
389
|
var ae = typeof WeakMap == "function" ? WeakMap : Map;
|
|
389
390
|
A = new ae();
|
|
390
391
|
}
|
|
391
392
|
function w(n, f) {
|
|
392
|
-
if (!n ||
|
|
393
|
+
if (!n || $)
|
|
393
394
|
return "";
|
|
394
395
|
{
|
|
395
396
|
var b = A.get(n);
|
|
@@ -397,7 +398,7 @@ function dn() {
|
|
|
397
398
|
return b;
|
|
398
399
|
}
|
|
399
400
|
var E;
|
|
400
|
-
|
|
401
|
+
$ = !0;
|
|
401
402
|
var L = Error.prepareStackTrace;
|
|
402
403
|
Error.prepareStackTrace = void 0;
|
|
403
404
|
var V;
|
|
@@ -454,10 +455,10 @@ function dn() {
|
|
|
454
455
|
}
|
|
455
456
|
}
|
|
456
457
|
} finally {
|
|
457
|
-
|
|
458
|
+
$ = !1, R.current = V, C(), Error.prepareStackTrace = L;
|
|
458
459
|
}
|
|
459
|
-
var Me = n ? n.displayName || n.name : "",
|
|
460
|
-
return typeof n == "function" && A.set(n,
|
|
460
|
+
var Me = n ? n.displayName || n.name : "", Kr = Me ? j(Me) : "";
|
|
461
|
+
return typeof n == "function" && A.set(n, Kr), Kr;
|
|
461
462
|
}
|
|
462
463
|
function he(n, f, b) {
|
|
463
464
|
return w(n, !1);
|
|
@@ -495,8 +496,8 @@ function dn() {
|
|
|
495
496
|
}
|
|
496
497
|
return "";
|
|
497
498
|
}
|
|
498
|
-
var
|
|
499
|
-
function
|
|
499
|
+
var He = Object.prototype.hasOwnProperty, zr = {}, Dr = K.ReactDebugCurrentFrame;
|
|
500
|
+
function Ge(n) {
|
|
500
501
|
if (n) {
|
|
501
502
|
var f = n._owner, b = Ce(n.type, n._source, f ? f.type : null);
|
|
502
503
|
Dr.setExtraStackFrame(b);
|
|
@@ -505,7 +506,7 @@ function dn() {
|
|
|
505
506
|
}
|
|
506
507
|
function Pt(n, f, b, E, L) {
|
|
507
508
|
{
|
|
508
|
-
var V = Function.call.bind(
|
|
509
|
+
var V = Function.call.bind(He);
|
|
509
510
|
for (var q in n)
|
|
510
511
|
if (V(n, q)) {
|
|
511
512
|
var M = void 0;
|
|
@@ -518,12 +519,12 @@ function dn() {
|
|
|
518
519
|
} catch (Z) {
|
|
519
520
|
M = Z;
|
|
520
521
|
}
|
|
521
|
-
M && !(M instanceof Error) && (
|
|
522
|
+
M && !(M instanceof Error) && (Ge(L), D("%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).", E || "React class", b, q, typeof M), Ge(null)), M instanceof Error && !(M.message in zr) && (zr[M.message] = !0, Ge(L), D("Failed %s type: %s", b, M.message), Ge(null));
|
|
522
523
|
}
|
|
523
524
|
}
|
|
524
525
|
}
|
|
525
526
|
var Rt = Array.isArray;
|
|
526
|
-
function
|
|
527
|
+
function cr(n) {
|
|
527
528
|
return Rt(n);
|
|
528
529
|
}
|
|
529
530
|
function _t(n) {
|
|
@@ -534,27 +535,27 @@ function dn() {
|
|
|
534
535
|
}
|
|
535
536
|
function xt(n) {
|
|
536
537
|
try {
|
|
537
|
-
return
|
|
538
|
+
return qr(n), !1;
|
|
538
539
|
} catch {
|
|
539
540
|
return !0;
|
|
540
541
|
}
|
|
541
542
|
}
|
|
542
|
-
function
|
|
543
|
+
function qr(n) {
|
|
543
544
|
return "" + n;
|
|
544
545
|
}
|
|
545
|
-
function
|
|
546
|
+
function $r(n) {
|
|
546
547
|
if (xt(n))
|
|
547
|
-
return
|
|
548
|
+
return D("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", _t(n)), qr(n);
|
|
548
549
|
}
|
|
549
|
-
var
|
|
550
|
+
var $e = K.ReactCurrentOwner, Ct = {
|
|
550
551
|
key: !0,
|
|
551
552
|
ref: !0,
|
|
552
553
|
__self: !0,
|
|
553
554
|
__source: !0
|
|
554
|
-
}, Fr,
|
|
555
|
-
|
|
555
|
+
}, Fr, Lr, ur;
|
|
556
|
+
ur = {};
|
|
556
557
|
function jt(n) {
|
|
557
|
-
if (
|
|
558
|
+
if (He.call(n, "ref")) {
|
|
558
559
|
var f = Object.getOwnPropertyDescriptor(n, "ref").get;
|
|
559
560
|
if (f && f.isReactWarning)
|
|
560
561
|
return !1;
|
|
@@ -562,7 +563,7 @@ function dn() {
|
|
|
562
563
|
return n.ref !== void 0;
|
|
563
564
|
}
|
|
564
565
|
function At(n) {
|
|
565
|
-
if (
|
|
566
|
+
if (He.call(n, "key")) {
|
|
566
567
|
var f = Object.getOwnPropertyDescriptor(n, "key").get;
|
|
567
568
|
if (f && f.isReactWarning)
|
|
568
569
|
return !1;
|
|
@@ -570,15 +571,15 @@ function dn() {
|
|
|
570
571
|
return n.key !== void 0;
|
|
571
572
|
}
|
|
572
573
|
function Mt(n, f) {
|
|
573
|
-
if (typeof n.ref == "string" &&
|
|
574
|
-
var b = ie(
|
|
575
|
-
|
|
574
|
+
if (typeof n.ref == "string" && $e.current && f && $e.current.stateNode !== f) {
|
|
575
|
+
var b = ie($e.current.type);
|
|
576
|
+
ur[b] || (D('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', ie($e.current.type), n.ref), ur[b] = !0);
|
|
576
577
|
}
|
|
577
578
|
}
|
|
578
579
|
function It(n, f) {
|
|
579
580
|
{
|
|
580
581
|
var b = function() {
|
|
581
|
-
Fr || (Fr = !0,
|
|
582
|
+
Fr || (Fr = !0, D("%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)", f));
|
|
582
583
|
};
|
|
583
584
|
b.isReactWarning = !0, Object.defineProperty(n, "key", {
|
|
584
585
|
get: b,
|
|
@@ -586,10 +587,10 @@ function dn() {
|
|
|
586
587
|
});
|
|
587
588
|
}
|
|
588
589
|
}
|
|
589
|
-
function
|
|
590
|
+
function kt(n, f) {
|
|
590
591
|
{
|
|
591
592
|
var b = function() {
|
|
592
|
-
|
|
593
|
+
Lr || (Lr = !0, D("%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)", f));
|
|
593
594
|
};
|
|
594
595
|
b.isReactWarning = !0, Object.defineProperty(n, "ref", {
|
|
595
596
|
get: b,
|
|
@@ -597,7 +598,7 @@ function dn() {
|
|
|
597
598
|
});
|
|
598
599
|
}
|
|
599
600
|
}
|
|
600
|
-
var
|
|
601
|
+
var zt = function(n, f, b, E, L, V, q) {
|
|
601
602
|
var M = {
|
|
602
603
|
$$typeof: r,
|
|
603
604
|
type: n,
|
|
@@ -623,12 +624,12 @@ function dn() {
|
|
|
623
624
|
value: L
|
|
624
625
|
}), Object.freeze && (Object.freeze(M.props), Object.freeze(M)), M;
|
|
625
626
|
};
|
|
626
|
-
function
|
|
627
|
+
function Dt(n, f, b, E, L) {
|
|
627
628
|
{
|
|
628
629
|
var V, q = {}, M = null, ce = null;
|
|
629
|
-
b !== void 0 && (
|
|
630
|
+
b !== void 0 && ($r(b), M = "" + b), At(f) && ($r(f.key), M = "" + f.key), jt(f) && (ce = f.ref, Mt(f, L));
|
|
630
631
|
for (V in f)
|
|
631
|
-
|
|
632
|
+
He.call(f, V) && !Ct.hasOwnProperty(V) && (q[V] = f[V]);
|
|
632
633
|
if (n && n.defaultProps) {
|
|
633
634
|
var Z = n.defaultProps;
|
|
634
635
|
for (V in Z)
|
|
@@ -636,28 +637,28 @@ function dn() {
|
|
|
636
637
|
}
|
|
637
638
|
if (M || ce) {
|
|
638
639
|
var re = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
|
|
639
|
-
M && It(q, re), ce &&
|
|
640
|
+
M && It(q, re), ce && kt(q, re);
|
|
640
641
|
}
|
|
641
|
-
return
|
|
642
|
+
return zt(n, M, ce, L, E, $e.current, q);
|
|
642
643
|
}
|
|
643
644
|
}
|
|
644
|
-
var
|
|
645
|
+
var lr = K.ReactCurrentOwner, Wr = K.ReactDebugCurrentFrame;
|
|
645
646
|
function Ae(n) {
|
|
646
647
|
if (n) {
|
|
647
648
|
var f = n._owner, b = Ce(n.type, n._source, f ? f.type : null);
|
|
648
|
-
|
|
649
|
+
Wr.setExtraStackFrame(b);
|
|
649
650
|
} else
|
|
650
|
-
|
|
651
|
+
Wr.setExtraStackFrame(null);
|
|
651
652
|
}
|
|
652
|
-
var
|
|
653
|
-
|
|
654
|
-
function
|
|
653
|
+
var fr;
|
|
654
|
+
fr = !1;
|
|
655
|
+
function dr(n) {
|
|
655
656
|
return typeof n == "object" && n !== null && n.$$typeof === r;
|
|
656
657
|
}
|
|
657
658
|
function Ur() {
|
|
658
659
|
{
|
|
659
|
-
if (
|
|
660
|
-
var n = ie(
|
|
660
|
+
if (lr.current) {
|
|
661
|
+
var n = ie(lr.current.type);
|
|
661
662
|
if (n)
|
|
662
663
|
return `
|
|
663
664
|
|
|
@@ -677,8 +678,8 @@ Check your code at ` + f + ":" + b + ".";
|
|
|
677
678
|
return "";
|
|
678
679
|
}
|
|
679
680
|
}
|
|
680
|
-
var
|
|
681
|
-
function
|
|
681
|
+
var Yr = {};
|
|
682
|
+
function $t(n) {
|
|
682
683
|
{
|
|
683
684
|
var f = Ur();
|
|
684
685
|
if (!f) {
|
|
@@ -690,39 +691,39 @@ Check the top-level render call using <` + b + ">.");
|
|
|
690
691
|
return f;
|
|
691
692
|
}
|
|
692
693
|
}
|
|
693
|
-
function
|
|
694
|
+
function Nr(n, f) {
|
|
694
695
|
{
|
|
695
696
|
if (!n._store || n._store.validated || n.key != null)
|
|
696
697
|
return;
|
|
697
698
|
n._store.validated = !0;
|
|
698
|
-
var b =
|
|
699
|
-
if (
|
|
699
|
+
var b = $t(f);
|
|
700
|
+
if (Yr[b])
|
|
700
701
|
return;
|
|
701
|
-
|
|
702
|
+
Yr[b] = !0;
|
|
702
703
|
var E = "";
|
|
703
|
-
n && n._owner && n._owner !==
|
|
704
|
+
n && n._owner && n._owner !== lr.current && (E = " It was passed a child from " + ie(n._owner.type) + "."), Ae(n), D('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', b, E), Ae(null);
|
|
704
705
|
}
|
|
705
706
|
}
|
|
706
|
-
function
|
|
707
|
+
function Vr(n, f) {
|
|
707
708
|
{
|
|
708
709
|
if (typeof n != "object")
|
|
709
710
|
return;
|
|
710
|
-
if (
|
|
711
|
+
if (cr(n))
|
|
711
712
|
for (var b = 0; b < n.length; b++) {
|
|
712
713
|
var E = n[b];
|
|
713
|
-
|
|
714
|
+
dr(E) && Nr(E, f);
|
|
714
715
|
}
|
|
715
|
-
else if (
|
|
716
|
+
else if (dr(n))
|
|
716
717
|
n._store && (n._store.validated = !0);
|
|
717
718
|
else if (n) {
|
|
718
719
|
var L = G(n);
|
|
719
720
|
if (typeof L == "function" && L !== n.entries)
|
|
720
721
|
for (var V = L.call(n), q; !(q = V.next()).done; )
|
|
721
|
-
|
|
722
|
+
dr(q.value) && Nr(q.value, f);
|
|
722
723
|
}
|
|
723
724
|
}
|
|
724
725
|
}
|
|
725
|
-
function
|
|
726
|
+
function Ft(n) {
|
|
726
727
|
{
|
|
727
728
|
var f = n.type;
|
|
728
729
|
if (f == null || typeof f == "string")
|
|
@@ -737,12 +738,12 @@ Check the top-level render call using <` + b + ">.");
|
|
|
737
738
|
if (b) {
|
|
738
739
|
var E = ie(f);
|
|
739
740
|
Pt(b, n.props, "prop", E, n);
|
|
740
|
-
} else if (f.PropTypes !== void 0 && !
|
|
741
|
-
|
|
741
|
+
} else if (f.PropTypes !== void 0 && !fr) {
|
|
742
|
+
fr = !0;
|
|
742
743
|
var L = ie(f);
|
|
743
|
-
|
|
744
|
+
D("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", L || "Unknown");
|
|
744
745
|
}
|
|
745
|
-
typeof f.getDefaultProps == "function" && !f.getDefaultProps.isReactClassApproved &&
|
|
746
|
+
typeof f.getDefaultProps == "function" && !f.getDefaultProps.isReactClassApproved && D("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
746
747
|
}
|
|
747
748
|
}
|
|
748
749
|
function Lt(n) {
|
|
@@ -750,58 +751,58 @@ Check the top-level render call using <` + b + ">.");
|
|
|
750
751
|
for (var f = Object.keys(n.props), b = 0; b < f.length; b++) {
|
|
751
752
|
var E = f[b];
|
|
752
753
|
if (E !== "children" && E !== "key") {
|
|
753
|
-
Ae(n),
|
|
754
|
+
Ae(n), D("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", E), Ae(null);
|
|
754
755
|
break;
|
|
755
756
|
}
|
|
756
757
|
}
|
|
757
|
-
n.ref !== null && (Ae(n),
|
|
758
|
+
n.ref !== null && (Ae(n), D("Invalid attribute `ref` supplied to `React.Fragment`."), Ae(null));
|
|
758
759
|
}
|
|
759
760
|
}
|
|
760
|
-
function
|
|
761
|
+
function Br(n, f, b, E, L, V) {
|
|
761
762
|
{
|
|
762
|
-
var q =
|
|
763
|
+
var q = F(n);
|
|
763
764
|
if (!q) {
|
|
764
765
|
var M = "";
|
|
765
766
|
(n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (M += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
766
767
|
var ce = qt(L);
|
|
767
768
|
ce ? M += ce : M += Ur();
|
|
768
769
|
var Z;
|
|
769
|
-
n === null ? Z = "null" :
|
|
770
|
+
n === null ? Z = "null" : cr(n) ? Z = "array" : n !== void 0 && n.$$typeof === r ? (Z = "<" + (ie(n.type) || "Unknown") + " />", M = " Did you accidentally export a JSX literal instead of a component?") : Z = typeof n, D("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Z, M);
|
|
770
771
|
}
|
|
771
|
-
var re =
|
|
772
|
+
var re = Dt(n, f, b, L, V);
|
|
772
773
|
if (re == null)
|
|
773
774
|
return re;
|
|
774
775
|
if (q) {
|
|
775
776
|
var ve = f.children;
|
|
776
777
|
if (ve !== void 0)
|
|
777
778
|
if (E)
|
|
778
|
-
if (
|
|
779
|
+
if (cr(ve)) {
|
|
779
780
|
for (var Me = 0; Me < ve.length; Me++)
|
|
780
|
-
|
|
781
|
+
Vr(ve[Me], n);
|
|
781
782
|
Object.freeze && Object.freeze(ve);
|
|
782
783
|
} else
|
|
783
|
-
|
|
784
|
+
D("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
784
785
|
else
|
|
785
|
-
|
|
786
|
+
Vr(ve, n);
|
|
786
787
|
}
|
|
787
|
-
return n === o ? Lt(re) :
|
|
788
|
+
return n === o ? Lt(re) : Ft(re), re;
|
|
788
789
|
}
|
|
789
790
|
}
|
|
790
|
-
function Ut(n, f, b) {
|
|
791
|
-
return Vr(n, f, b, !0);
|
|
792
|
-
}
|
|
793
791
|
function Wt(n, f, b) {
|
|
794
|
-
return
|
|
792
|
+
return Br(n, f, b, !0);
|
|
795
793
|
}
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
794
|
+
function Ut(n, f, b) {
|
|
795
|
+
return Br(n, f, b, !1);
|
|
796
|
+
}
|
|
797
|
+
var Yt = Ut, Nt = Wt;
|
|
798
|
+
We.Fragment = o, We.jsx = Yt, We.jsxs = Nt;
|
|
799
|
+
}()), We;
|
|
799
800
|
}
|
|
800
801
|
(function(e) {
|
|
801
|
-
process.env.NODE_ENV === "production" ? e.exports =
|
|
802
|
-
})(
|
|
803
|
-
const Oe =
|
|
804
|
-
function
|
|
802
|
+
process.env.NODE_ENV === "production" ? e.exports = dn() : e.exports = pn();
|
|
803
|
+
})(ir);
|
|
804
|
+
const Oe = ir.exports.Fragment, a = ir.exports.jsx, I = ir.exports.jsxs;
|
|
805
|
+
function gn({
|
|
805
806
|
submit: e,
|
|
806
807
|
styles: r = qe,
|
|
807
808
|
type: t
|
|
@@ -810,7 +811,7 @@ function pn({
|
|
|
810
811
|
control: o,
|
|
811
812
|
setValue: s,
|
|
812
813
|
handleSubmit: i
|
|
813
|
-
} =
|
|
814
|
+
} = De({
|
|
814
815
|
defaultValues: {
|
|
815
816
|
type: t,
|
|
816
817
|
key: "",
|
|
@@ -842,7 +843,7 @@ function pn({
|
|
|
842
843
|
placeholder: "A unique name",
|
|
843
844
|
...c
|
|
844
845
|
})
|
|
845
|
-
}), /* @__PURE__ */ a(
|
|
846
|
+
}), /* @__PURE__ */ a(Pr, {
|
|
846
847
|
label: "Connection Info",
|
|
847
848
|
labelPosition: "center"
|
|
848
849
|
}), /* @__PURE__ */ I(se, {
|
|
@@ -896,7 +897,7 @@ function pn({
|
|
|
896
897
|
control: o,
|
|
897
898
|
render: ({
|
|
898
899
|
field: c
|
|
899
|
-
}) => /* @__PURE__ */ a(
|
|
900
|
+
}) => /* @__PURE__ */ a(tr, {
|
|
900
901
|
mb: r.spacing,
|
|
901
902
|
size: r.size,
|
|
902
903
|
required: !0,
|
|
@@ -927,7 +928,7 @@ function pn({
|
|
|
927
928
|
})
|
|
928
929
|
});
|
|
929
930
|
}
|
|
930
|
-
function
|
|
931
|
+
function hn(e, r, t) {
|
|
931
932
|
return r in e ? Object.defineProperty(e, r, {
|
|
932
933
|
value: t,
|
|
933
934
|
enumerable: !0,
|
|
@@ -935,7 +936,7 @@ function gn(e, r, t) {
|
|
|
935
936
|
writable: !0
|
|
936
937
|
}) : e[r] = t, e;
|
|
937
938
|
}
|
|
938
|
-
function
|
|
939
|
+
function Jr(e, r) {
|
|
939
940
|
var t = Object.keys(e);
|
|
940
941
|
if (Object.getOwnPropertySymbols) {
|
|
941
942
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -945,18 +946,18 @@ function Gr(e, r) {
|
|
|
945
946
|
}
|
|
946
947
|
return t;
|
|
947
948
|
}
|
|
948
|
-
function
|
|
949
|
+
function Xr(e) {
|
|
949
950
|
for (var r = 1; r < arguments.length; r++) {
|
|
950
951
|
var t = arguments[r] != null ? arguments[r] : {};
|
|
951
|
-
r % 2 ?
|
|
952
|
-
|
|
953
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
952
|
+
r % 2 ? Jr(Object(t), !0).forEach(function(o) {
|
|
953
|
+
hn(e, o, t[o]);
|
|
954
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Jr(Object(t)).forEach(function(o) {
|
|
954
955
|
Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(t, o));
|
|
955
956
|
});
|
|
956
957
|
}
|
|
957
958
|
return e;
|
|
958
959
|
}
|
|
959
|
-
function
|
|
960
|
+
function vn(e, r) {
|
|
960
961
|
if (e == null)
|
|
961
962
|
return {};
|
|
962
963
|
var t = {}, o = Object.keys(e), s, i;
|
|
@@ -964,10 +965,10 @@ function hn(e, r) {
|
|
|
964
965
|
s = o[i], !(r.indexOf(s) >= 0) && (t[s] = e[s]);
|
|
965
966
|
return t;
|
|
966
967
|
}
|
|
967
|
-
function
|
|
968
|
+
function mn(e, r) {
|
|
968
969
|
if (e == null)
|
|
969
970
|
return {};
|
|
970
|
-
var t =
|
|
971
|
+
var t = vn(e, r), o, s;
|
|
971
972
|
if (Object.getOwnPropertySymbols) {
|
|
972
973
|
var i = Object.getOwnPropertySymbols(e);
|
|
973
974
|
for (s = 0; s < i.length; s++)
|
|
@@ -975,14 +976,14 @@ function vn(e, r) {
|
|
|
975
976
|
}
|
|
976
977
|
return t;
|
|
977
978
|
}
|
|
978
|
-
function
|
|
979
|
-
return
|
|
979
|
+
function bn(e, r) {
|
|
980
|
+
return yn(e) || wn(e, r) || Sn(e, r) || En();
|
|
980
981
|
}
|
|
981
|
-
function
|
|
982
|
+
function yn(e) {
|
|
982
983
|
if (Array.isArray(e))
|
|
983
984
|
return e;
|
|
984
985
|
}
|
|
985
|
-
function
|
|
986
|
+
function wn(e, r) {
|
|
986
987
|
if (!(typeof Symbol > "u" || !(Symbol.iterator in Object(e)))) {
|
|
987
988
|
var t = [], o = !0, s = !1, i = void 0;
|
|
988
989
|
try {
|
|
@@ -1001,28 +1002,28 @@ function yn(e, r) {
|
|
|
1001
1002
|
return t;
|
|
1002
1003
|
}
|
|
1003
1004
|
}
|
|
1004
|
-
function
|
|
1005
|
+
function Sn(e, r) {
|
|
1005
1006
|
if (!!e) {
|
|
1006
1007
|
if (typeof e == "string")
|
|
1007
|
-
return
|
|
1008
|
+
return Qr(e, r);
|
|
1008
1009
|
var t = Object.prototype.toString.call(e).slice(8, -1);
|
|
1009
1010
|
if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set")
|
|
1010
1011
|
return Array.from(e);
|
|
1011
1012
|
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))
|
|
1012
|
-
return
|
|
1013
|
+
return Qr(e, r);
|
|
1013
1014
|
}
|
|
1014
1015
|
}
|
|
1015
|
-
function
|
|
1016
|
+
function Qr(e, r) {
|
|
1016
1017
|
(r == null || r > e.length) && (r = e.length);
|
|
1017
1018
|
for (var t = 0, o = new Array(r); t < r; t++)
|
|
1018
1019
|
o[t] = e[t];
|
|
1019
1020
|
return o;
|
|
1020
1021
|
}
|
|
1021
|
-
function
|
|
1022
|
+
function En() {
|
|
1022
1023
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1023
1024
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1024
1025
|
}
|
|
1025
|
-
function
|
|
1026
|
+
function Tn(e, r, t) {
|
|
1026
1027
|
return r in e ? Object.defineProperty(e, r, {
|
|
1027
1028
|
value: t,
|
|
1028
1029
|
enumerable: !0,
|
|
@@ -1030,7 +1031,7 @@ function En(e, r, t) {
|
|
|
1030
1031
|
writable: !0
|
|
1031
1032
|
}) : e[r] = t, e;
|
|
1032
1033
|
}
|
|
1033
|
-
function
|
|
1034
|
+
function Zr(e, r) {
|
|
1034
1035
|
var t = Object.keys(e);
|
|
1035
1036
|
if (Object.getOwnPropertySymbols) {
|
|
1036
1037
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -1040,18 +1041,18 @@ function Qr(e, r) {
|
|
|
1040
1041
|
}
|
|
1041
1042
|
return t;
|
|
1042
1043
|
}
|
|
1043
|
-
function
|
|
1044
|
+
function et(e) {
|
|
1044
1045
|
for (var r = 1; r < arguments.length; r++) {
|
|
1045
1046
|
var t = arguments[r] != null ? arguments[r] : {};
|
|
1046
|
-
r % 2 ?
|
|
1047
|
-
|
|
1048
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
1047
|
+
r % 2 ? Zr(Object(t), !0).forEach(function(o) {
|
|
1048
|
+
Tn(e, o, t[o]);
|
|
1049
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Zr(Object(t)).forEach(function(o) {
|
|
1049
1050
|
Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(t, o));
|
|
1050
1051
|
});
|
|
1051
1052
|
}
|
|
1052
1053
|
return e;
|
|
1053
1054
|
}
|
|
1054
|
-
function
|
|
1055
|
+
function On() {
|
|
1055
1056
|
for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
|
|
1056
1057
|
r[t] = arguments[t];
|
|
1057
1058
|
return function(o) {
|
|
@@ -1060,7 +1061,7 @@ function Tn() {
|
|
|
1060
1061
|
}, o);
|
|
1061
1062
|
};
|
|
1062
1063
|
}
|
|
1063
|
-
function
|
|
1064
|
+
function Ue(e) {
|
|
1064
1065
|
return function r() {
|
|
1065
1066
|
for (var t = this, o = arguments.length, s = new Array(o), i = 0; i < o; i++)
|
|
1066
1067
|
s[i] = arguments[i];
|
|
@@ -1071,38 +1072,38 @@ function We(e) {
|
|
|
1071
1072
|
};
|
|
1072
1073
|
};
|
|
1073
1074
|
}
|
|
1074
|
-
function
|
|
1075
|
+
function er(e) {
|
|
1075
1076
|
return {}.toString.call(e).includes("Object");
|
|
1076
1077
|
}
|
|
1077
|
-
function
|
|
1078
|
+
function Pn(e) {
|
|
1078
1079
|
return !Object.keys(e).length;
|
|
1079
1080
|
}
|
|
1080
|
-
function
|
|
1081
|
+
function Ve(e) {
|
|
1081
1082
|
return typeof e == "function";
|
|
1082
1083
|
}
|
|
1083
|
-
function
|
|
1084
|
+
function Rn(e, r) {
|
|
1084
1085
|
return Object.prototype.hasOwnProperty.call(e, r);
|
|
1085
1086
|
}
|
|
1086
|
-
function
|
|
1087
|
-
return
|
|
1088
|
-
return !
|
|
1087
|
+
function _n(e, r) {
|
|
1088
|
+
return er(r) || Re("changeType"), Object.keys(r).some(function(t) {
|
|
1089
|
+
return !Rn(e, t);
|
|
1089
1090
|
}) && Re("changeField"), r;
|
|
1090
1091
|
}
|
|
1091
|
-
function _n(e) {
|
|
1092
|
-
Ne(e) || Re("selectorType");
|
|
1093
|
-
}
|
|
1094
1092
|
function xn(e) {
|
|
1095
|
-
|
|
1096
|
-
return !Ne(r);
|
|
1097
|
-
}) && Re("handlersType");
|
|
1093
|
+
Ve(e) || Re("selectorType");
|
|
1098
1094
|
}
|
|
1099
1095
|
function Cn(e) {
|
|
1100
|
-
e ||
|
|
1096
|
+
Ve(e) || er(e) || Re("handlerType"), er(e) && Object.values(e).some(function(r) {
|
|
1097
|
+
return !Ve(r);
|
|
1098
|
+
}) && Re("handlersType");
|
|
1101
1099
|
}
|
|
1102
|
-
function jn(e
|
|
1100
|
+
function jn(e) {
|
|
1101
|
+
e || Re("initialIsRequired"), er(e) || Re("initialType"), Pn(e) && Re("initialContent");
|
|
1102
|
+
}
|
|
1103
|
+
function An(e, r) {
|
|
1103
1104
|
throw new Error(e[r] || e.default);
|
|
1104
1105
|
}
|
|
1105
|
-
var
|
|
1106
|
+
var Mn = {
|
|
1106
1107
|
initialIsRequired: "initial state is required",
|
|
1107
1108
|
initialType: "initial state should be an object",
|
|
1108
1109
|
initialContent: "initial state shouldn't be an empty object",
|
|
@@ -1112,44 +1113,44 @@ var An = {
|
|
|
1112
1113
|
changeType: "provided value of changes should be an object",
|
|
1113
1114
|
changeField: 'it seams you want to change a field in the state which is not specified in the "initial" state',
|
|
1114
1115
|
default: "an unknown error accured in `state-local` package"
|
|
1115
|
-
}, Re =
|
|
1116
|
-
changes:
|
|
1117
|
-
selector:
|
|
1118
|
-
handler:
|
|
1119
|
-
initial:
|
|
1116
|
+
}, Re = Ue(An)(Mn), Je = {
|
|
1117
|
+
changes: _n,
|
|
1118
|
+
selector: xn,
|
|
1119
|
+
handler: Cn,
|
|
1120
|
+
initial: jn
|
|
1120
1121
|
};
|
|
1121
|
-
function
|
|
1122
|
+
function In(e) {
|
|
1122
1123
|
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1123
|
-
|
|
1124
|
+
Je.initial(e), Je.handler(r);
|
|
1124
1125
|
var t = {
|
|
1125
1126
|
current: e
|
|
1126
|
-
}, o =
|
|
1127
|
+
}, o = Ue(Dn)(t, r), s = Ue(zn)(t), i = Ue(Je.changes)(e), c = Ue(kn)(t);
|
|
1127
1128
|
function u() {
|
|
1128
1129
|
var v = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function(y) {
|
|
1129
1130
|
return y;
|
|
1130
1131
|
};
|
|
1131
|
-
return
|
|
1132
|
+
return Je.selector(v), v(t.current);
|
|
1132
1133
|
}
|
|
1133
1134
|
function d(v) {
|
|
1134
|
-
|
|
1135
|
+
On(o, s, i, c)(v);
|
|
1135
1136
|
}
|
|
1136
1137
|
return [u, d];
|
|
1137
1138
|
}
|
|
1138
|
-
function
|
|
1139
|
-
return
|
|
1139
|
+
function kn(e, r) {
|
|
1140
|
+
return Ve(r) ? r(e.current) : r;
|
|
1140
1141
|
}
|
|
1141
1142
|
function zn(e, r) {
|
|
1142
|
-
return e.current =
|
|
1143
|
+
return e.current = et(et({}, e.current), r), r;
|
|
1143
1144
|
}
|
|
1144
1145
|
function Dn(e, r, t) {
|
|
1145
|
-
return
|
|
1146
|
+
return Ve(r) ? r(e.current) : Object.keys(t).forEach(function(o) {
|
|
1146
1147
|
var s;
|
|
1147
1148
|
return (s = r[o]) === null || s === void 0 ? void 0 : s.call(r, e.current[o]);
|
|
1148
1149
|
}), t;
|
|
1149
1150
|
}
|
|
1150
|
-
var
|
|
1151
|
-
create:
|
|
1152
|
-
},
|
|
1151
|
+
var qn = {
|
|
1152
|
+
create: In
|
|
1153
|
+
}, $n = {
|
|
1153
1154
|
paths: {
|
|
1154
1155
|
vs: "https://cdn.jsdelivr.net/npm/monaco-editor@0.33.0/min/vs"
|
|
1155
1156
|
}
|
|
@@ -1165,23 +1166,23 @@ function Fn(e) {
|
|
|
1165
1166
|
};
|
|
1166
1167
|
};
|
|
1167
1168
|
}
|
|
1168
|
-
function
|
|
1169
|
+
function Ln(e) {
|
|
1169
1170
|
return {}.toString.call(e).includes("Object");
|
|
1170
1171
|
}
|
|
1171
|
-
function
|
|
1172
|
-
return e ||
|
|
1172
|
+
function Wn(e) {
|
|
1173
|
+
return e || rt("configIsRequired"), Ln(e) || rt("configType"), e.urls ? (Un(), {
|
|
1173
1174
|
paths: {
|
|
1174
1175
|
vs: e.urls.monacoBase
|
|
1175
1176
|
}
|
|
1176
1177
|
}) : e;
|
|
1177
1178
|
}
|
|
1178
1179
|
function Un() {
|
|
1179
|
-
console.warn(
|
|
1180
|
+
console.warn(gt.deprecation);
|
|
1180
1181
|
}
|
|
1181
|
-
function
|
|
1182
|
+
function Yn(e, r) {
|
|
1182
1183
|
throw new Error(e[r] || e.default);
|
|
1183
1184
|
}
|
|
1184
|
-
var
|
|
1185
|
+
var gt = {
|
|
1185
1186
|
configIsRequired: "the configuration object is required",
|
|
1186
1187
|
configType: "the configuration object should be an object",
|
|
1187
1188
|
default: "an unknown error accured in `@monaco-editor/loader` package",
|
|
@@ -1195,9 +1196,9 @@ var pt = {
|
|
|
1195
1196
|
|
|
1196
1197
|
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
1197
1198
|
`
|
|
1198
|
-
},
|
|
1199
|
-
config:
|
|
1200
|
-
},
|
|
1199
|
+
}, rt = Fn(Yn)(gt), Nn = {
|
|
1200
|
+
config: Wn
|
|
1201
|
+
}, Vn = function() {
|
|
1201
1202
|
for (var r = arguments.length, t = new Array(r), o = 0; o < r; o++)
|
|
1202
1203
|
t[o] = arguments[o];
|
|
1203
1204
|
return function(s) {
|
|
@@ -1206,43 +1207,43 @@ var pt = {
|
|
|
1206
1207
|
}, s);
|
|
1207
1208
|
};
|
|
1208
1209
|
};
|
|
1209
|
-
function
|
|
1210
|
+
function ht(e, r) {
|
|
1210
1211
|
return Object.keys(r).forEach(function(t) {
|
|
1211
|
-
r[t] instanceof Object && e[t] && Object.assign(r[t],
|
|
1212
|
-
}),
|
|
1212
|
+
r[t] instanceof Object && e[t] && Object.assign(r[t], ht(e[t], r[t]));
|
|
1213
|
+
}), Xr(Xr({}, e), r);
|
|
1213
1214
|
}
|
|
1214
|
-
var
|
|
1215
|
+
var Bn = {
|
|
1215
1216
|
type: "cancelation",
|
|
1216
1217
|
msg: "operation is manually canceled"
|
|
1217
1218
|
};
|
|
1218
|
-
function
|
|
1219
|
+
function pr(e) {
|
|
1219
1220
|
var r = !1, t = new Promise(function(o, s) {
|
|
1220
1221
|
e.then(function(i) {
|
|
1221
|
-
return r ? s(
|
|
1222
|
+
return r ? s(Bn) : o(i);
|
|
1222
1223
|
}), e.catch(s);
|
|
1223
1224
|
});
|
|
1224
1225
|
return t.cancel = function() {
|
|
1225
1226
|
return r = !0;
|
|
1226
1227
|
}, t;
|
|
1227
1228
|
}
|
|
1228
|
-
var
|
|
1229
|
-
config:
|
|
1229
|
+
var Kn = qn.create({
|
|
1230
|
+
config: $n,
|
|
1230
1231
|
isInitialized: !1,
|
|
1231
1232
|
resolve: null,
|
|
1232
1233
|
reject: null,
|
|
1233
1234
|
monaco: null
|
|
1234
|
-
}),
|
|
1235
|
-
function
|
|
1236
|
-
var r =
|
|
1237
|
-
|
|
1235
|
+
}), vt = bn(Kn, 2), Ke = vt[0], ar = vt[1];
|
|
1236
|
+
function Hn(e) {
|
|
1237
|
+
var r = Nn.config(e), t = r.monaco, o = mn(r, ["monaco"]);
|
|
1238
|
+
ar(function(s) {
|
|
1238
1239
|
return {
|
|
1239
|
-
config:
|
|
1240
|
+
config: ht(s.config, o),
|
|
1240
1241
|
monaco: t
|
|
1241
1242
|
};
|
|
1242
1243
|
});
|
|
1243
1244
|
}
|
|
1244
|
-
function
|
|
1245
|
-
var e =
|
|
1245
|
+
function Gn() {
|
|
1246
|
+
var e = Ke(function(r) {
|
|
1246
1247
|
var t = r.monaco, o = r.isInitialized, s = r.resolve;
|
|
1247
1248
|
return {
|
|
1248
1249
|
monaco: t,
|
|
@@ -1251,37 +1252,37 @@ function Hn() {
|
|
|
1251
1252
|
};
|
|
1252
1253
|
});
|
|
1253
1254
|
if (!e.isInitialized) {
|
|
1254
|
-
if (
|
|
1255
|
+
if (ar({
|
|
1255
1256
|
isInitialized: !0
|
|
1256
1257
|
}), e.monaco)
|
|
1257
|
-
return e.resolve(e.monaco),
|
|
1258
|
+
return e.resolve(e.monaco), pr(gr);
|
|
1258
1259
|
if (window.monaco && window.monaco.editor)
|
|
1259
|
-
return
|
|
1260
|
-
|
|
1260
|
+
return mt(window.monaco), e.resolve(window.monaco), pr(gr);
|
|
1261
|
+
Vn(Jn, Qn)(Zn);
|
|
1261
1262
|
}
|
|
1262
|
-
return
|
|
1263
|
+
return pr(gr);
|
|
1263
1264
|
}
|
|
1264
|
-
function
|
|
1265
|
+
function Jn(e) {
|
|
1265
1266
|
return document.body.appendChild(e);
|
|
1266
1267
|
}
|
|
1267
|
-
function
|
|
1268
|
+
function Xn(e) {
|
|
1268
1269
|
var r = document.createElement("script");
|
|
1269
1270
|
return e && (r.src = e), r;
|
|
1270
1271
|
}
|
|
1271
|
-
function
|
|
1272
|
-
var r =
|
|
1272
|
+
function Qn(e) {
|
|
1273
|
+
var r = Ke(function(o) {
|
|
1273
1274
|
var s = o.config, i = o.reject;
|
|
1274
1275
|
return {
|
|
1275
1276
|
config: s,
|
|
1276
1277
|
reject: i
|
|
1277
1278
|
};
|
|
1278
|
-
}), t =
|
|
1279
|
+
}), t = Xn("".concat(r.config.paths.vs, "/loader.js"));
|
|
1279
1280
|
return t.onload = function() {
|
|
1280
1281
|
return e();
|
|
1281
1282
|
}, t.onerror = r.reject, t;
|
|
1282
1283
|
}
|
|
1283
|
-
function
|
|
1284
|
-
var e =
|
|
1284
|
+
function Zn() {
|
|
1285
|
+
var e = Ke(function(t) {
|
|
1285
1286
|
var o = t.config, s = t.resolve, i = t.reject;
|
|
1286
1287
|
return {
|
|
1287
1288
|
config: o,
|
|
@@ -1290,32 +1291,32 @@ function Qn() {
|
|
|
1290
1291
|
};
|
|
1291
1292
|
}), r = window.require;
|
|
1292
1293
|
r.config(e.config), r(["vs/editor/editor.main"], function(t) {
|
|
1293
|
-
|
|
1294
|
+
mt(t), e.resolve(t);
|
|
1294
1295
|
}, function(t) {
|
|
1295
1296
|
e.reject(t);
|
|
1296
1297
|
});
|
|
1297
1298
|
}
|
|
1298
|
-
function
|
|
1299
|
-
|
|
1299
|
+
function mt(e) {
|
|
1300
|
+
Ke().monaco || ar({
|
|
1300
1301
|
monaco: e
|
|
1301
1302
|
});
|
|
1302
1303
|
}
|
|
1303
|
-
function
|
|
1304
|
-
return
|
|
1304
|
+
function eo() {
|
|
1305
|
+
return Ke(function(e) {
|
|
1305
1306
|
var r = e.monaco;
|
|
1306
1307
|
return r;
|
|
1307
1308
|
});
|
|
1308
1309
|
}
|
|
1309
|
-
var
|
|
1310
|
-
return
|
|
1310
|
+
var gr = new Promise(function(e, r) {
|
|
1311
|
+
return ar({
|
|
1311
1312
|
resolve: e,
|
|
1312
1313
|
reject: r
|
|
1313
1314
|
});
|
|
1314
|
-
}),
|
|
1315
|
-
config:
|
|
1316
|
-
init:
|
|
1317
|
-
__getMonacoInstance:
|
|
1318
|
-
}, S = { exports: {} },
|
|
1315
|
+
}), Ye = {
|
|
1316
|
+
config: Hn,
|
|
1317
|
+
init: Gn,
|
|
1318
|
+
__getMonacoInstance: eo
|
|
1319
|
+
}, S = { exports: {} }, hr = { exports: {} }, W = {};
|
|
1319
1320
|
/** @license React v16.13.1
|
|
1320
1321
|
* react-is.production.min.js
|
|
1321
1322
|
*
|
|
@@ -1324,12 +1325,12 @@ var pr = new Promise(function(e, r) {
|
|
|
1324
1325
|
* This source code is licensed under the MIT license found in the
|
|
1325
1326
|
* LICENSE file in the root directory of this source tree.
|
|
1326
1327
|
*/
|
|
1327
|
-
var
|
|
1328
|
-
function
|
|
1329
|
-
if (
|
|
1330
|
-
return
|
|
1331
|
-
|
|
1332
|
-
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, s = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, c = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, v = e ? Symbol.for("react.concurrent_mode") : 60111, y = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, x = e ? Symbol.for("react.memo") : 60115, Y = e ? Symbol.for("react.lazy") : 60116,
|
|
1328
|
+
var tt;
|
|
1329
|
+
function ro() {
|
|
1330
|
+
if (tt)
|
|
1331
|
+
return W;
|
|
1332
|
+
tt = 1;
|
|
1333
|
+
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, s = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, c = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, v = e ? Symbol.for("react.concurrent_mode") : 60111, y = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, x = e ? Symbol.for("react.memo") : 60115, Y = e ? Symbol.for("react.lazy") : 60116, z = e ? Symbol.for("react.block") : 60121, G = e ? Symbol.for("react.fundamental") : 60117, K = e ? Symbol.for("react.responder") : 60118, D = e ? Symbol.for("react.scope") : 60119;
|
|
1333
1334
|
function H(p) {
|
|
1334
1335
|
if (typeof p == "object" && p !== null) {
|
|
1335
1336
|
var X = p.$$typeof;
|
|
@@ -1363,35 +1364,35 @@ function eo() {
|
|
|
1363
1364
|
function N(p) {
|
|
1364
1365
|
return H(p) === v;
|
|
1365
1366
|
}
|
|
1366
|
-
return
|
|
1367
|
+
return W.AsyncMode = d, W.ConcurrentMode = v, W.ContextConsumer = u, W.ContextProvider = c, W.Element = r, W.ForwardRef = y, W.Fragment = o, W.Lazy = Y, W.Memo = x, W.Portal = t, W.Profiler = i, W.StrictMode = s, W.Suspense = h, W.isAsyncMode = function(p) {
|
|
1367
1368
|
return N(p) || H(p) === d;
|
|
1368
|
-
},
|
|
1369
|
+
}, W.isConcurrentMode = N, W.isContextConsumer = function(p) {
|
|
1369
1370
|
return H(p) === u;
|
|
1370
|
-
},
|
|
1371
|
+
}, W.isContextProvider = function(p) {
|
|
1371
1372
|
return H(p) === c;
|
|
1372
|
-
},
|
|
1373
|
+
}, W.isElement = function(p) {
|
|
1373
1374
|
return typeof p == "object" && p !== null && p.$$typeof === r;
|
|
1374
|
-
},
|
|
1375
|
+
}, W.isForwardRef = function(p) {
|
|
1375
1376
|
return H(p) === y;
|
|
1376
|
-
},
|
|
1377
|
+
}, W.isFragment = function(p) {
|
|
1377
1378
|
return H(p) === o;
|
|
1378
|
-
},
|
|
1379
|
+
}, W.isLazy = function(p) {
|
|
1379
1380
|
return H(p) === Y;
|
|
1380
|
-
},
|
|
1381
|
+
}, W.isMemo = function(p) {
|
|
1381
1382
|
return H(p) === x;
|
|
1382
|
-
},
|
|
1383
|
+
}, W.isPortal = function(p) {
|
|
1383
1384
|
return H(p) === t;
|
|
1384
|
-
},
|
|
1385
|
+
}, W.isProfiler = function(p) {
|
|
1385
1386
|
return H(p) === i;
|
|
1386
|
-
},
|
|
1387
|
+
}, W.isStrictMode = function(p) {
|
|
1387
1388
|
return H(p) === s;
|
|
1388
|
-
},
|
|
1389
|
+
}, W.isSuspense = function(p) {
|
|
1389
1390
|
return H(p) === h;
|
|
1390
|
-
},
|
|
1391
|
-
return typeof p == "string" || typeof p == "function" || p === o || p === v || p === i || p === s || p === h || p === m || typeof p == "object" && p !== null && (p.$$typeof === Y || p.$$typeof === x || p.$$typeof === c || p.$$typeof === u || p.$$typeof === y || p.$$typeof === G || p.$$typeof === K || p.$$typeof ===
|
|
1392
|
-
},
|
|
1391
|
+
}, W.isValidElementType = function(p) {
|
|
1392
|
+
return typeof p == "string" || typeof p == "function" || p === o || p === v || p === i || p === s || p === h || p === m || typeof p == "object" && p !== null && (p.$$typeof === Y || p.$$typeof === x || p.$$typeof === c || p.$$typeof === u || p.$$typeof === y || p.$$typeof === G || p.$$typeof === K || p.$$typeof === D || p.$$typeof === z);
|
|
1393
|
+
}, W.typeOf = H, W;
|
|
1393
1394
|
}
|
|
1394
|
-
var
|
|
1395
|
+
var U = {};
|
|
1395
1396
|
/** @license React v16.13.1
|
|
1396
1397
|
* react-is.development.js
|
|
1397
1398
|
*
|
|
@@ -1400,12 +1401,12 @@ var W = {};
|
|
|
1400
1401
|
* This source code is licensed under the MIT license found in the
|
|
1401
1402
|
* LICENSE file in the root directory of this source tree.
|
|
1402
1403
|
*/
|
|
1403
|
-
var
|
|
1404
|
-
function
|
|
1405
|
-
return
|
|
1406
|
-
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, s = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, c = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, v = e ? Symbol.for("react.concurrent_mode") : 60111, y = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, x = e ? Symbol.for("react.memo") : 60115, Y = e ? Symbol.for("react.lazy") : 60116,
|
|
1404
|
+
var nt;
|
|
1405
|
+
function to() {
|
|
1406
|
+
return nt || (nt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1407
|
+
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, s = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, c = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, v = e ? Symbol.for("react.concurrent_mode") : 60111, y = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, x = e ? Symbol.for("react.memo") : 60115, Y = e ? Symbol.for("react.lazy") : 60116, z = e ? Symbol.for("react.block") : 60121, G = e ? Symbol.for("react.fundamental") : 60117, K = e ? Symbol.for("react.responder") : 60118, D = e ? Symbol.for("react.scope") : 60119;
|
|
1407
1408
|
function H(w) {
|
|
1408
|
-
return typeof w == "string" || typeof w == "function" || w === o || w === v || w === i || w === s || w === h || w === m || typeof w == "object" && w !== null && (w.$$typeof === Y || w.$$typeof === x || w.$$typeof === c || w.$$typeof === u || w.$$typeof === y || w.$$typeof === G || w.$$typeof === K || w.$$typeof ===
|
|
1409
|
+
return typeof w == "string" || typeof w == "function" || w === o || w === v || w === i || w === s || w === h || w === m || typeof w == "object" && w !== null && (w.$$typeof === Y || w.$$typeof === x || w.$$typeof === c || w.$$typeof === u || w.$$typeof === y || w.$$typeof === G || w.$$typeof === K || w.$$typeof === D || w.$$typeof === z);
|
|
1409
1410
|
}
|
|
1410
1411
|
function N(w) {
|
|
1411
1412
|
if (typeof w == "object" && w !== null) {
|
|
@@ -1439,7 +1440,7 @@ function ro() {
|
|
|
1439
1440
|
}
|
|
1440
1441
|
}
|
|
1441
1442
|
}
|
|
1442
|
-
var p = d, X = v, ee = u, Se = c, Q = r,
|
|
1443
|
+
var p = d, X = v, ee = u, Se = c, Q = r, F = y, ge = o, be = Y, ie = x, k = t, B = i, te = s, pe = h, Ee = !1;
|
|
1443
1444
|
function Pe(w) {
|
|
1444
1445
|
return Ee || (Ee = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), l(w) || N(w) === d;
|
|
1445
1446
|
}
|
|
@@ -1470,7 +1471,7 @@ function ro() {
|
|
|
1470
1471
|
function j(w) {
|
|
1471
1472
|
return N(w) === t;
|
|
1472
1473
|
}
|
|
1473
|
-
function
|
|
1474
|
+
function $(w) {
|
|
1474
1475
|
return N(w) === i;
|
|
1475
1476
|
}
|
|
1476
1477
|
function A(w) {
|
|
@@ -1479,25 +1480,25 @@ function ro() {
|
|
|
1479
1480
|
function ae(w) {
|
|
1480
1481
|
return N(w) === h;
|
|
1481
1482
|
}
|
|
1482
|
-
|
|
1483
|
-
}()),
|
|
1483
|
+
U.AsyncMode = p, U.ConcurrentMode = X, U.ContextConsumer = ee, U.ContextProvider = Se, U.Element = Q, U.ForwardRef = F, U.Fragment = ge, U.Lazy = be, U.Memo = ie, U.Portal = k, U.Profiler = B, U.StrictMode = te, U.Suspense = pe, U.isAsyncMode = Pe, U.isConcurrentMode = l, U.isContextConsumer = g, U.isContextProvider = T, U.isElement = O, U.isForwardRef = P, U.isFragment = C, U.isLazy = R, U.isMemo = _, U.isPortal = j, U.isProfiler = $, U.isStrictMode = A, U.isSuspense = ae, U.isValidElementType = H, U.typeOf = N;
|
|
1484
|
+
}()), U;
|
|
1484
1485
|
}
|
|
1485
|
-
var
|
|
1486
|
+
var ot;
|
|
1486
1487
|
function bt() {
|
|
1487
|
-
return
|
|
1488
|
-
process.env.NODE_ENV === "production" ? e.exports =
|
|
1489
|
-
}(
|
|
1488
|
+
return ot || (ot = 1, function(e) {
|
|
1489
|
+
process.env.NODE_ENV === "production" ? e.exports = ro() : e.exports = to();
|
|
1490
|
+
}(hr)), hr.exports;
|
|
1490
1491
|
}
|
|
1491
1492
|
/*
|
|
1492
1493
|
object-assign
|
|
1493
1494
|
(c) Sindre Sorhus
|
|
1494
1495
|
@license MIT
|
|
1495
1496
|
*/
|
|
1496
|
-
var
|
|
1497
|
-
function
|
|
1498
|
-
if (
|
|
1499
|
-
return
|
|
1500
|
-
|
|
1497
|
+
var vr, it;
|
|
1498
|
+
function no() {
|
|
1499
|
+
if (it)
|
|
1500
|
+
return vr;
|
|
1501
|
+
it = 1;
|
|
1501
1502
|
var e = Object.getOwnPropertySymbols, r = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
|
|
1502
1503
|
function o(i) {
|
|
1503
1504
|
if (i == null)
|
|
@@ -1526,7 +1527,7 @@ function to() {
|
|
|
1526
1527
|
return !1;
|
|
1527
1528
|
}
|
|
1528
1529
|
}
|
|
1529
|
-
return
|
|
1530
|
+
return vr = s() ? Object.assign : function(i, c) {
|
|
1530
1531
|
for (var u, d = o(i), v, y = 1; y < arguments.length; y++) {
|
|
1531
1532
|
u = Object(arguments[y]);
|
|
1532
1533
|
for (var h in u)
|
|
@@ -1538,29 +1539,29 @@ function to() {
|
|
|
1538
1539
|
}
|
|
1539
1540
|
}
|
|
1540
1541
|
return d;
|
|
1541
|
-
},
|
|
1542
|
+
}, vr;
|
|
1542
1543
|
}
|
|
1543
|
-
var
|
|
1544
|
-
function
|
|
1545
|
-
if (
|
|
1546
|
-
return
|
|
1547
|
-
|
|
1544
|
+
var mr, at;
|
|
1545
|
+
function Mr() {
|
|
1546
|
+
if (at)
|
|
1547
|
+
return mr;
|
|
1548
|
+
at = 1;
|
|
1548
1549
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
1549
|
-
return
|
|
1550
|
+
return mr = e, mr;
|
|
1550
1551
|
}
|
|
1551
|
-
var
|
|
1552
|
+
var br, st;
|
|
1552
1553
|
function yt() {
|
|
1553
|
-
return
|
|
1554
|
+
return st || (st = 1, br = Function.call.bind(Object.prototype.hasOwnProperty)), br;
|
|
1554
1555
|
}
|
|
1555
|
-
var
|
|
1556
|
-
function
|
|
1557
|
-
if (
|
|
1558
|
-
return
|
|
1559
|
-
|
|
1556
|
+
var yr, ct;
|
|
1557
|
+
function oo() {
|
|
1558
|
+
if (ct)
|
|
1559
|
+
return yr;
|
|
1560
|
+
ct = 1;
|
|
1560
1561
|
var e = function() {
|
|
1561
1562
|
};
|
|
1562
1563
|
if (process.env.NODE_ENV !== "production") {
|
|
1563
|
-
var r =
|
|
1564
|
+
var r = Mr(), t = {}, o = yt();
|
|
1564
1565
|
e = function(i) {
|
|
1565
1566
|
var c = "Warning: " + i;
|
|
1566
1567
|
typeof console < "u" && console.error(c);
|
|
@@ -1600,14 +1601,14 @@ function no() {
|
|
|
1600
1601
|
}
|
|
1601
1602
|
return s.resetWarningCache = function() {
|
|
1602
1603
|
process.env.NODE_ENV !== "production" && (t = {});
|
|
1603
|
-
},
|
|
1604
|
+
}, yr = s, yr;
|
|
1604
1605
|
}
|
|
1605
|
-
var
|
|
1606
|
-
function
|
|
1607
|
-
if (
|
|
1608
|
-
return
|
|
1609
|
-
|
|
1610
|
-
var e = bt(), r =
|
|
1606
|
+
var wr, ut;
|
|
1607
|
+
function io() {
|
|
1608
|
+
if (ut)
|
|
1609
|
+
return wr;
|
|
1610
|
+
ut = 1;
|
|
1611
|
+
var e = bt(), r = no(), t = Mr(), o = yt(), s = oo(), i = function() {
|
|
1611
1612
|
};
|
|
1612
1613
|
process.env.NODE_ENV !== "production" && (i = function(u) {
|
|
1613
1614
|
var d = "Warning: " + u;
|
|
@@ -1620,7 +1621,7 @@ function oo() {
|
|
|
1620
1621
|
function c() {
|
|
1621
1622
|
return null;
|
|
1622
1623
|
}
|
|
1623
|
-
return
|
|
1624
|
+
return wr = function(u, d) {
|
|
1624
1625
|
var v = typeof Symbol == "function" && Symbol.iterator, y = "@@iterator";
|
|
1625
1626
|
function h(l) {
|
|
1626
1627
|
var g = l && (v && l[v] || l[y]);
|
|
@@ -1636,12 +1637,12 @@ function oo() {
|
|
|
1636
1637
|
object: K("object"),
|
|
1637
1638
|
string: K("string"),
|
|
1638
1639
|
symbol: K("symbol"),
|
|
1639
|
-
any:
|
|
1640
|
+
any: D(),
|
|
1640
1641
|
arrayOf: H,
|
|
1641
1642
|
element: N(),
|
|
1642
1643
|
elementType: p(),
|
|
1643
1644
|
instanceOf: X,
|
|
1644
|
-
node:
|
|
1645
|
+
node: F(),
|
|
1645
1646
|
objectOf: Se,
|
|
1646
1647
|
oneOf: ee,
|
|
1647
1648
|
oneOfType: Q,
|
|
@@ -1651,14 +1652,14 @@ function oo() {
|
|
|
1651
1652
|
function Y(l, g) {
|
|
1652
1653
|
return l === g ? l !== 0 || 1 / l === 1 / g : l !== l && g !== g;
|
|
1653
1654
|
}
|
|
1654
|
-
function
|
|
1655
|
+
function z(l, g) {
|
|
1655
1656
|
this.message = l, this.data = g && typeof g == "object" ? g : {}, this.stack = "";
|
|
1656
1657
|
}
|
|
1657
|
-
|
|
1658
|
+
z.prototype = Error.prototype;
|
|
1658
1659
|
function G(l) {
|
|
1659
1660
|
if (process.env.NODE_ENV !== "production")
|
|
1660
1661
|
var g = {}, T = 0;
|
|
1661
|
-
function O(C, R, _, j,
|
|
1662
|
+
function O(C, R, _, j, $, A, ae) {
|
|
1662
1663
|
if (j = j || m, A = A || _, ae !== t) {
|
|
1663
1664
|
if (d) {
|
|
1664
1665
|
var w = new Error(
|
|
@@ -1672,17 +1673,17 @@ function oo() {
|
|
|
1672
1673
|
), g[he] = !0, T++);
|
|
1673
1674
|
}
|
|
1674
1675
|
}
|
|
1675
|
-
return R[_] == null ? C ? R[_] === null ? new
|
|
1676
|
+
return R[_] == null ? C ? R[_] === null ? new z("The " + $ + " `" + A + "` is marked as required " + ("in `" + j + "`, but its value is `null`.")) : new z("The " + $ + " `" + A + "` is marked as required in " + ("`" + j + "`, but its value is `undefined`.")) : null : l(R, _, j, $, A);
|
|
1676
1677
|
}
|
|
1677
1678
|
var P = O.bind(null, !1);
|
|
1678
1679
|
return P.isRequired = O.bind(null, !0), P;
|
|
1679
1680
|
}
|
|
1680
1681
|
function K(l) {
|
|
1681
1682
|
function g(T, O, P, C, R, _) {
|
|
1682
|
-
var j = T[O],
|
|
1683
|
-
if (
|
|
1683
|
+
var j = T[O], $ = te(j);
|
|
1684
|
+
if ($ !== l) {
|
|
1684
1685
|
var A = pe(j);
|
|
1685
|
-
return new
|
|
1686
|
+
return new z(
|
|
1686
1687
|
"Invalid " + C + " `" + R + "` of type " + ("`" + A + "` supplied to `" + P + "`, expected ") + ("`" + l + "`."),
|
|
1687
1688
|
{ expectedType: l }
|
|
1688
1689
|
);
|
|
@@ -1691,20 +1692,20 @@ function oo() {
|
|
|
1691
1692
|
}
|
|
1692
1693
|
return G(g);
|
|
1693
1694
|
}
|
|
1694
|
-
function
|
|
1695
|
+
function D() {
|
|
1695
1696
|
return G(c);
|
|
1696
1697
|
}
|
|
1697
1698
|
function H(l) {
|
|
1698
1699
|
function g(T, O, P, C, R) {
|
|
1699
1700
|
if (typeof l != "function")
|
|
1700
|
-
return new
|
|
1701
|
+
return new z("Property `" + R + "` of component `" + P + "` has invalid PropType notation inside arrayOf.");
|
|
1701
1702
|
var _ = T[O];
|
|
1702
1703
|
if (!Array.isArray(_)) {
|
|
1703
1704
|
var j = te(_);
|
|
1704
|
-
return new
|
|
1705
|
+
return new z("Invalid " + C + " `" + R + "` of type " + ("`" + j + "` supplied to `" + P + "`, expected an array."));
|
|
1705
1706
|
}
|
|
1706
|
-
for (var
|
|
1707
|
-
var A = l(_,
|
|
1707
|
+
for (var $ = 0; $ < _.length; $++) {
|
|
1708
|
+
var A = l(_, $, P, C, R + "[" + $ + "]", t);
|
|
1708
1709
|
if (A instanceof Error)
|
|
1709
1710
|
return A;
|
|
1710
1711
|
}
|
|
@@ -1717,7 +1718,7 @@ function oo() {
|
|
|
1717
1718
|
var R = g[T];
|
|
1718
1719
|
if (!u(R)) {
|
|
1719
1720
|
var _ = te(R);
|
|
1720
|
-
return new
|
|
1721
|
+
return new z("Invalid " + P + " `" + C + "` of type " + ("`" + _ + "` supplied to `" + O + "`, expected a single ReactElement."));
|
|
1721
1722
|
}
|
|
1722
1723
|
return null;
|
|
1723
1724
|
}
|
|
@@ -1728,7 +1729,7 @@ function oo() {
|
|
|
1728
1729
|
var R = g[T];
|
|
1729
1730
|
if (!e.isValidElementType(R)) {
|
|
1730
1731
|
var _ = te(R);
|
|
1731
|
-
return new
|
|
1732
|
+
return new z("Invalid " + P + " `" + C + "` of type " + ("`" + _ + "` supplied to `" + O + "`, expected a single ReactElement type."));
|
|
1732
1733
|
}
|
|
1733
1734
|
return null;
|
|
1734
1735
|
}
|
|
@@ -1738,7 +1739,7 @@ function oo() {
|
|
|
1738
1739
|
function g(T, O, P, C, R) {
|
|
1739
1740
|
if (!(T[O] instanceof l)) {
|
|
1740
1741
|
var _ = l.name || m, j = Pe(T[O]);
|
|
1741
|
-
return new
|
|
1742
|
+
return new z("Invalid " + C + " `" + R + "` of type " + ("`" + j + "` supplied to `" + P + "`, expected ") + ("instance of `" + _ + "`."));
|
|
1742
1743
|
}
|
|
1743
1744
|
return null;
|
|
1744
1745
|
}
|
|
@@ -1753,24 +1754,24 @@ function oo() {
|
|
|
1753
1754
|
for (var _ = T[O], j = 0; j < l.length; j++)
|
|
1754
1755
|
if (Y(_, l[j]))
|
|
1755
1756
|
return null;
|
|
1756
|
-
var
|
|
1757
|
+
var $ = JSON.stringify(l, function(ae, w) {
|
|
1757
1758
|
var he = pe(w);
|
|
1758
1759
|
return he === "symbol" ? String(w) : w;
|
|
1759
1760
|
});
|
|
1760
|
-
return new
|
|
1761
|
+
return new z("Invalid " + C + " `" + R + "` of value `" + String(_) + "` " + ("supplied to `" + P + "`, expected one of " + $ + "."));
|
|
1761
1762
|
}
|
|
1762
1763
|
return G(g);
|
|
1763
1764
|
}
|
|
1764
1765
|
function Se(l) {
|
|
1765
1766
|
function g(T, O, P, C, R) {
|
|
1766
1767
|
if (typeof l != "function")
|
|
1767
|
-
return new
|
|
1768
|
+
return new z("Property `" + R + "` of component `" + P + "` has invalid PropType notation inside objectOf.");
|
|
1768
1769
|
var _ = T[O], j = te(_);
|
|
1769
1770
|
if (j !== "object")
|
|
1770
|
-
return new
|
|
1771
|
-
for (var
|
|
1772
|
-
if (o(_,
|
|
1773
|
-
var A = l(_,
|
|
1771
|
+
return new z("Invalid " + C + " `" + R + "` of type " + ("`" + j + "` supplied to `" + P + "`, expected an object."));
|
|
1772
|
+
for (var $ in _)
|
|
1773
|
+
if (o(_, $)) {
|
|
1774
|
+
var A = l(_, $, P, C, R + "." + $, t);
|
|
1774
1775
|
if (A instanceof Error)
|
|
1775
1776
|
return A;
|
|
1776
1777
|
}
|
|
@@ -1789,25 +1790,25 @@ function oo() {
|
|
|
1789
1790
|
), c;
|
|
1790
1791
|
}
|
|
1791
1792
|
function O(P, C, R, _, j) {
|
|
1792
|
-
for (var
|
|
1793
|
+
for (var $ = [], A = 0; A < l.length; A++) {
|
|
1793
1794
|
var ae = l[A], w = ae(P, C, R, _, j, t);
|
|
1794
1795
|
if (w == null)
|
|
1795
1796
|
return null;
|
|
1796
|
-
w.data && o(w.data, "expectedType") &&
|
|
1797
|
+
w.data && o(w.data, "expectedType") && $.push(w.data.expectedType);
|
|
1797
1798
|
}
|
|
1798
|
-
var he =
|
|
1799
|
-
return new
|
|
1799
|
+
var he = $.length > 0 ? ", expected one of type [" + $.join(", ") + "]" : "";
|
|
1800
|
+
return new z("Invalid " + _ + " `" + j + "` supplied to " + ("`" + R + "`" + he + "."));
|
|
1800
1801
|
}
|
|
1801
1802
|
return G(O);
|
|
1802
1803
|
}
|
|
1803
|
-
function
|
|
1804
|
+
function F() {
|
|
1804
1805
|
function l(g, T, O, P, C) {
|
|
1805
|
-
return
|
|
1806
|
+
return k(g[T]) ? null : new z("Invalid " + P + " `" + C + "` supplied to " + ("`" + O + "`, expected a ReactNode."));
|
|
1806
1807
|
}
|
|
1807
1808
|
return G(l);
|
|
1808
1809
|
}
|
|
1809
1810
|
function ge(l, g, T, O, P) {
|
|
1810
|
-
return new
|
|
1811
|
+
return new z(
|
|
1811
1812
|
(l || "React class") + ": " + g + " type `" + T + "." + O + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + P + "`."
|
|
1812
1813
|
);
|
|
1813
1814
|
}
|
|
@@ -1815,12 +1816,12 @@ function oo() {
|
|
|
1815
1816
|
function g(T, O, P, C, R) {
|
|
1816
1817
|
var _ = T[O], j = te(_);
|
|
1817
1818
|
if (j !== "object")
|
|
1818
|
-
return new
|
|
1819
|
-
for (var
|
|
1820
|
-
var A = l[
|
|
1819
|
+
return new z("Invalid " + C + " `" + R + "` of type `" + j + "` " + ("supplied to `" + P + "`, expected `object`."));
|
|
1820
|
+
for (var $ in l) {
|
|
1821
|
+
var A = l[$];
|
|
1821
1822
|
if (typeof A != "function")
|
|
1822
|
-
return ge(P, C, R,
|
|
1823
|
-
var ae = A(_,
|
|
1823
|
+
return ge(P, C, R, $, pe(A));
|
|
1824
|
+
var ae = A(_, $, P, C, R + "." + $, t);
|
|
1824
1825
|
if (ae)
|
|
1825
1826
|
return ae;
|
|
1826
1827
|
}
|
|
@@ -1832,14 +1833,14 @@ function oo() {
|
|
|
1832
1833
|
function g(T, O, P, C, R) {
|
|
1833
1834
|
var _ = T[O], j = te(_);
|
|
1834
1835
|
if (j !== "object")
|
|
1835
|
-
return new
|
|
1836
|
-
var
|
|
1837
|
-
for (var A in
|
|
1836
|
+
return new z("Invalid " + C + " `" + R + "` of type `" + j + "` " + ("supplied to `" + P + "`, expected `object`."));
|
|
1837
|
+
var $ = r({}, T[O], l);
|
|
1838
|
+
for (var A in $) {
|
|
1838
1839
|
var ae = l[A];
|
|
1839
1840
|
if (o(l, A) && typeof ae != "function")
|
|
1840
1841
|
return ge(P, C, R, A, pe(ae));
|
|
1841
1842
|
if (!ae)
|
|
1842
|
-
return new
|
|
1843
|
+
return new z(
|
|
1843
1844
|
"Invalid " + C + " `" + R + "` key `" + A + "` supplied to `" + P + "`.\nBad object: " + JSON.stringify(T[O], null, " ") + `
|
|
1844
1845
|
Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
|
|
1845
1846
|
);
|
|
@@ -1851,7 +1852,7 @@ Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
|
|
|
1851
1852
|
}
|
|
1852
1853
|
return G(g);
|
|
1853
1854
|
}
|
|
1854
|
-
function
|
|
1855
|
+
function k(l) {
|
|
1855
1856
|
switch (typeof l) {
|
|
1856
1857
|
case "number":
|
|
1857
1858
|
case "string":
|
|
@@ -1861,7 +1862,7 @@ Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
|
|
|
1861
1862
|
return !l;
|
|
1862
1863
|
case "object":
|
|
1863
1864
|
if (Array.isArray(l))
|
|
1864
|
-
return l.every(
|
|
1865
|
+
return l.every(k);
|
|
1865
1866
|
if (l === null || u(l))
|
|
1866
1867
|
return !0;
|
|
1867
1868
|
var g = h(l);
|
|
@@ -1869,12 +1870,12 @@ Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
|
|
|
1869
1870
|
var T = g.call(l), O;
|
|
1870
1871
|
if (g !== l.entries) {
|
|
1871
1872
|
for (; !(O = T.next()).done; )
|
|
1872
|
-
if (!
|
|
1873
|
+
if (!k(O.value))
|
|
1873
1874
|
return !1;
|
|
1874
1875
|
} else
|
|
1875
1876
|
for (; !(O = T.next()).done; ) {
|
|
1876
1877
|
var P = O.value;
|
|
1877
|
-
if (P && !
|
|
1878
|
+
if (P && !k(P[1]))
|
|
1878
1879
|
return !1;
|
|
1879
1880
|
}
|
|
1880
1881
|
} else
|
|
@@ -1921,19 +1922,19 @@ Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
|
|
|
1921
1922
|
return !l.constructor || !l.constructor.name ? m : l.constructor.name;
|
|
1922
1923
|
}
|
|
1923
1924
|
return x.checkPropTypes = s, x.resetWarningCache = s.resetWarningCache, x.PropTypes = x, x;
|
|
1924
|
-
},
|
|
1925
|
+
}, wr;
|
|
1925
1926
|
}
|
|
1926
|
-
var
|
|
1927
|
-
function
|
|
1928
|
-
if (
|
|
1929
|
-
return
|
|
1930
|
-
|
|
1931
|
-
var e =
|
|
1927
|
+
var Sr, lt;
|
|
1928
|
+
function ao() {
|
|
1929
|
+
if (lt)
|
|
1930
|
+
return Sr;
|
|
1931
|
+
lt = 1;
|
|
1932
|
+
var e = Mr();
|
|
1932
1933
|
function r() {
|
|
1933
1934
|
}
|
|
1934
1935
|
function t() {
|
|
1935
1936
|
}
|
|
1936
|
-
return t.resetWarningCache = r,
|
|
1937
|
+
return t.resetWarningCache = r, Sr = function() {
|
|
1937
1938
|
function o(c, u, d, v, y, h) {
|
|
1938
1939
|
if (h !== e) {
|
|
1939
1940
|
var m = new Error(
|
|
@@ -1970,29 +1971,29 @@ function io() {
|
|
|
1970
1971
|
resetWarningCache: r
|
|
1971
1972
|
};
|
|
1972
1973
|
return i.PropTypes = i, i;
|
|
1973
|
-
},
|
|
1974
|
+
}, Sr;
|
|
1974
1975
|
}
|
|
1975
1976
|
if (process.env.NODE_ENV !== "production") {
|
|
1976
|
-
var
|
|
1977
|
-
S.exports =
|
|
1977
|
+
var so = bt(), co = !0;
|
|
1978
|
+
S.exports = io()(so.isElement, co);
|
|
1978
1979
|
} else
|
|
1979
|
-
S.exports =
|
|
1980
|
-
const
|
|
1980
|
+
S.exports = ao()();
|
|
1981
|
+
const uo = {
|
|
1981
1982
|
display: "flex",
|
|
1982
1983
|
height: "100%",
|
|
1983
1984
|
width: "100%",
|
|
1984
1985
|
justifyContent: "center",
|
|
1985
1986
|
alignItems: "center"
|
|
1986
1987
|
};
|
|
1987
|
-
function
|
|
1988
|
+
function lo({
|
|
1988
1989
|
content: e
|
|
1989
1990
|
}) {
|
|
1990
1991
|
return /* @__PURE__ */ a("div", {
|
|
1991
|
-
style:
|
|
1992
|
+
style: uo,
|
|
1992
1993
|
children: e
|
|
1993
1994
|
});
|
|
1994
1995
|
}
|
|
1995
|
-
const
|
|
1996
|
+
const Er = {
|
|
1996
1997
|
wrapper: {
|
|
1997
1998
|
display: "flex",
|
|
1998
1999
|
position: "relative",
|
|
@@ -2016,18 +2017,18 @@ function wt({
|
|
|
2016
2017
|
}) {
|
|
2017
2018
|
return /* @__PURE__ */ I("section", {
|
|
2018
2019
|
style: {
|
|
2019
|
-
...
|
|
2020
|
+
...Er.wrapper,
|
|
2020
2021
|
width: e,
|
|
2021
2022
|
height: r
|
|
2022
2023
|
},
|
|
2023
2024
|
...c,
|
|
2024
|
-
children: [!t && /* @__PURE__ */ a(
|
|
2025
|
+
children: [!t && /* @__PURE__ */ a(lo, {
|
|
2025
2026
|
content: o
|
|
2026
2027
|
}), /* @__PURE__ */ a("div", {
|
|
2027
2028
|
ref: s,
|
|
2028
2029
|
style: {
|
|
2029
|
-
...
|
|
2030
|
-
...!t &&
|
|
2030
|
+
...Er.fullWidth,
|
|
2031
|
+
...!t && Er.hide
|
|
2031
2032
|
},
|
|
2032
2033
|
className: i
|
|
2033
2034
|
})]
|
|
@@ -2041,7 +2042,7 @@ wt.propTypes = {
|
|
|
2041
2042
|
className: S.exports.string,
|
|
2042
2043
|
wrapperProps: S.exports.object
|
|
2043
2044
|
};
|
|
2044
|
-
var St = /* @__PURE__ */
|
|
2045
|
+
var St = /* @__PURE__ */ dt(wt);
|
|
2045
2046
|
function Et(e) {
|
|
2046
2047
|
we(e, []);
|
|
2047
2048
|
}
|
|
@@ -2051,21 +2052,21 @@ function ye(e, r, t = !0) {
|
|
|
2051
2052
|
o.current = !1;
|
|
2052
2053
|
} : e, r);
|
|
2053
2054
|
}
|
|
2054
|
-
function
|
|
2055
|
+
function Ne() {
|
|
2055
2056
|
}
|
|
2056
|
-
function
|
|
2057
|
-
return
|
|
2057
|
+
function rr(e, r, t, o) {
|
|
2058
|
+
return fo(e, o) || po(e, r, t, o);
|
|
2058
2059
|
}
|
|
2059
|
-
function
|
|
2060
|
+
function fo(e, r) {
|
|
2060
2061
|
return e.editor.getModel(Tt(e, r));
|
|
2061
2062
|
}
|
|
2062
|
-
function
|
|
2063
|
+
function po(e, r, t, o) {
|
|
2063
2064
|
return e.editor.createModel(r, t, o && Tt(e, o));
|
|
2064
2065
|
}
|
|
2065
2066
|
function Tt(e, r) {
|
|
2066
2067
|
return e.Uri.parse(r);
|
|
2067
2068
|
}
|
|
2068
|
-
function
|
|
2069
|
+
function go(e) {
|
|
2069
2070
|
return e === void 0;
|
|
2070
2071
|
}
|
|
2071
2072
|
function Ot({
|
|
@@ -2084,72 +2085,72 @@ function Ot({
|
|
|
2084
2085
|
height: m,
|
|
2085
2086
|
width: x,
|
|
2086
2087
|
className: Y,
|
|
2087
|
-
wrapperProps:
|
|
2088
|
+
wrapperProps: z,
|
|
2088
2089
|
beforeMount: G,
|
|
2089
2090
|
onMount: K
|
|
2090
2091
|
}) {
|
|
2091
|
-
const [
|
|
2092
|
+
const [D, H] = Ie(!1), [N, p] = Ie(!0), X = ue(null), ee = ue(null), Se = ue(null), Q = ue(K), F = ue(G);
|
|
2092
2093
|
Et(() => {
|
|
2093
|
-
const
|
|
2094
|
-
return
|
|
2094
|
+
const k = Ye.init();
|
|
2095
|
+
return k.then((B) => (ee.current = B) && p(!1)).catch((B) => (B == null ? void 0 : B.type) !== "cancelation" && console.error("Monaco initialization: error:", B)), () => X.current ? ie() : k.cancel();
|
|
2095
2096
|
}), ye(() => {
|
|
2096
|
-
const
|
|
2097
|
-
|
|
2098
|
-
range:
|
|
2097
|
+
const k = X.current.getModifiedEditor();
|
|
2098
|
+
k.getOption(ee.current.editor.EditorOption.readOnly) ? k.setValue(r) : r !== k.getValue() && (k.executeEdits("", [{
|
|
2099
|
+
range: k.getModel().getFullModelRange(),
|
|
2099
2100
|
text: r,
|
|
2100
2101
|
forceMoveMarkers: !0
|
|
2101
|
-
}]),
|
|
2102
|
-
}, [r],
|
|
2102
|
+
}]), k.pushUndoStop());
|
|
2103
|
+
}, [r], D), ye(() => {
|
|
2103
2104
|
X.current.getModel().original.setValue(e);
|
|
2104
|
-
}, [e],
|
|
2105
|
+
}, [e], D), ye(() => {
|
|
2105
2106
|
const {
|
|
2106
|
-
original:
|
|
2107
|
+
original: k,
|
|
2107
2108
|
modified: B
|
|
2108
2109
|
} = X.current.getModel();
|
|
2109
|
-
ee.current.editor.setModelLanguage(
|
|
2110
|
-
}, [t, o, s],
|
|
2110
|
+
ee.current.editor.setModelLanguage(k, o || t), ee.current.editor.setModelLanguage(B, s || t);
|
|
2111
|
+
}, [t, o, s], D), ye(() => {
|
|
2111
2112
|
ee.current.editor.setTheme(v);
|
|
2112
|
-
}, [v],
|
|
2113
|
+
}, [v], D), ye(() => {
|
|
2113
2114
|
X.current.updateOptions(h);
|
|
2114
|
-
}, [h],
|
|
2115
|
-
const ge =
|
|
2116
|
-
|
|
2117
|
-
const
|
|
2115
|
+
}, [h], D);
|
|
2116
|
+
const ge = Tr(() => {
|
|
2117
|
+
F.current(ee.current);
|
|
2118
|
+
const k = rr(ee.current, e, o || t, i), B = rr(ee.current, r, s || t, c);
|
|
2118
2119
|
X.current.setModel({
|
|
2119
|
-
original:
|
|
2120
|
+
original: k,
|
|
2120
2121
|
modified: B
|
|
2121
2122
|
});
|
|
2122
|
-
}, [t, r, s, e, o, i, c]), be =
|
|
2123
|
+
}, [t, r, s, e, o, i, c]), be = Tr(() => {
|
|
2123
2124
|
X.current = ee.current.editor.createDiffEditor(Se.current, {
|
|
2124
2125
|
automaticLayout: !0,
|
|
2125
2126
|
...h
|
|
2126
2127
|
}), ge(), ee.current.editor.setTheme(v), H(!0);
|
|
2127
2128
|
}, [h, v, ge]);
|
|
2128
2129
|
we(() => {
|
|
2129
|
-
|
|
2130
|
-
}, [
|
|
2131
|
-
!N && !
|
|
2132
|
-
}, [N,
|
|
2130
|
+
D && Q.current(X.current, ee.current);
|
|
2131
|
+
}, [D]), we(() => {
|
|
2132
|
+
!N && !D && be();
|
|
2133
|
+
}, [N, D, be]);
|
|
2133
2134
|
function ie() {
|
|
2134
|
-
const
|
|
2135
|
+
const k = X.current.getModel();
|
|
2135
2136
|
if (!u) {
|
|
2136
2137
|
var B;
|
|
2137
|
-
(B =
|
|
2138
|
+
(B = k.original) === null || B === void 0 || B.dispose();
|
|
2138
2139
|
}
|
|
2139
2140
|
if (!d) {
|
|
2140
2141
|
var te;
|
|
2141
|
-
(te =
|
|
2142
|
+
(te = k.modified) === null || te === void 0 || te.dispose();
|
|
2142
2143
|
}
|
|
2143
2144
|
X.current.dispose();
|
|
2144
2145
|
}
|
|
2145
2146
|
return /* @__PURE__ */ a(St, {
|
|
2146
2147
|
width: x,
|
|
2147
2148
|
height: m,
|
|
2148
|
-
isEditorReady:
|
|
2149
|
+
isEditorReady: D,
|
|
2149
2150
|
loading: y,
|
|
2150
2151
|
_ref: Se,
|
|
2151
2152
|
className: Y,
|
|
2152
|
-
wrapperProps:
|
|
2153
|
+
wrapperProps: z
|
|
2153
2154
|
});
|
|
2154
2155
|
}
|
|
2155
2156
|
Ot.propTypes = {
|
|
@@ -2181,17 +2182,17 @@ Ot.defaultProps = {
|
|
|
2181
2182
|
width: "100%",
|
|
2182
2183
|
height: "100%",
|
|
2183
2184
|
wrapperProps: {},
|
|
2184
|
-
beforeMount:
|
|
2185
|
-
onMount:
|
|
2185
|
+
beforeMount: Ne,
|
|
2186
|
+
onMount: Ne
|
|
2186
2187
|
};
|
|
2187
|
-
function
|
|
2188
|
+
function ho(e) {
|
|
2188
2189
|
const r = ue();
|
|
2189
2190
|
return we(() => {
|
|
2190
2191
|
r.current = e;
|
|
2191
2192
|
}, [e]), r.current;
|
|
2192
2193
|
}
|
|
2193
|
-
const
|
|
2194
|
-
function
|
|
2194
|
+
const Xe = /* @__PURE__ */ new Map();
|
|
2195
|
+
function Ir({
|
|
2195
2196
|
defaultValue: e,
|
|
2196
2197
|
defaultLanguage: r,
|
|
2197
2198
|
defaultPath: t,
|
|
@@ -2207,62 +2208,62 @@ function Mr({
|
|
|
2207
2208
|
keepCurrentModel: m,
|
|
2208
2209
|
width: x,
|
|
2209
2210
|
height: Y,
|
|
2210
|
-
className:
|
|
2211
|
+
className: z,
|
|
2211
2212
|
wrapperProps: G,
|
|
2212
2213
|
beforeMount: K,
|
|
2213
|
-
onMount:
|
|
2214
|
+
onMount: D,
|
|
2214
2215
|
onChange: H,
|
|
2215
2216
|
onValidate: N
|
|
2216
2217
|
}) {
|
|
2217
|
-
const [p, X] = Ie(!1), [ee, Se] = Ie(!0), Q = ue(null),
|
|
2218
|
+
const [p, X] = Ie(!1), [ee, Se] = Ie(!0), Q = ue(null), F = ue(null), ge = ue(null), be = ue(D), ie = ue(K), k = ue(null), B = ue(o), te = ho(i), pe = ue(!1);
|
|
2218
2219
|
Et(() => {
|
|
2219
|
-
const l =
|
|
2220
|
-
return l.then((g) => (Q.current = g) && Se(!1)).catch((g) => (g == null ? void 0 : g.type) !== "cancelation" && console.error("Monaco initialization: error:", g)), () =>
|
|
2220
|
+
const l = Ye.init();
|
|
2221
|
+
return l.then((g) => (Q.current = g) && Se(!1)).catch((g) => (g == null ? void 0 : g.type) !== "cancelation" && console.error("Monaco initialization: error:", g)), () => F.current ? Pe() : l.cancel();
|
|
2221
2222
|
}), ye(() => {
|
|
2222
|
-
const l =
|
|
2223
|
-
l !==
|
|
2223
|
+
const l = rr(Q.current, e || o, r || s, i);
|
|
2224
|
+
l !== F.current.getModel() && (h && Xe.set(te, F.current.saveViewState()), F.current.setModel(l), h && F.current.restoreViewState(Xe.get(i)));
|
|
2224
2225
|
}, [i], p), ye(() => {
|
|
2225
|
-
|
|
2226
|
+
F.current.updateOptions(v);
|
|
2226
2227
|
}, [v], p), ye(() => {
|
|
2227
|
-
|
|
2228
|
-
range:
|
|
2228
|
+
F.current.getOption(Q.current.editor.EditorOption.readOnly) ? F.current.setValue(o) : o !== F.current.getValue() && (F.current.executeEdits("", [{
|
|
2229
|
+
range: F.current.getModel().getFullModelRange(),
|
|
2229
2230
|
text: o,
|
|
2230
2231
|
forceMoveMarkers: !0
|
|
2231
|
-
}]),
|
|
2232
|
+
}]), F.current.pushUndoStop());
|
|
2232
2233
|
}, [o], p), ye(() => {
|
|
2233
|
-
Q.current.editor.setModelLanguage(
|
|
2234
|
+
Q.current.editor.setModelLanguage(F.current.getModel(), s);
|
|
2234
2235
|
}, [s], p), ye(() => {
|
|
2235
|
-
|
|
2236
|
+
go(u) || F.current.revealLine(u);
|
|
2236
2237
|
}, [u], p), ye(() => {
|
|
2237
2238
|
Q.current.editor.setTheme(c);
|
|
2238
2239
|
}, [c], p);
|
|
2239
|
-
const Ee =
|
|
2240
|
+
const Ee = Tr(() => {
|
|
2240
2241
|
if (!pe.current) {
|
|
2241
2242
|
ie.current(Q.current);
|
|
2242
|
-
const l = i || t, g =
|
|
2243
|
-
|
|
2243
|
+
const l = i || t, g = rr(Q.current, o || e, r || s, l);
|
|
2244
|
+
F.current = Q.current.editor.create(ge.current, {
|
|
2244
2245
|
model: g,
|
|
2245
2246
|
automaticLayout: !0,
|
|
2246
2247
|
...v
|
|
2247
|
-
}, y), h &&
|
|
2248
|
+
}, y), h && F.current.restoreViewState(Xe.get(l)), Q.current.editor.setTheme(c), X(!0), pe.current = !0;
|
|
2248
2249
|
}
|
|
2249
2250
|
}, [e, r, t, o, s, i, v, y, h, c]);
|
|
2250
2251
|
we(() => {
|
|
2251
|
-
p && be.current(
|
|
2252
|
+
p && be.current(F.current, Q.current);
|
|
2252
2253
|
}, [p]), we(() => {
|
|
2253
2254
|
!ee && !p && Ee();
|
|
2254
2255
|
}, [ee, p, Ee]), B.current = o, we(() => {
|
|
2255
2256
|
if (p && H) {
|
|
2256
2257
|
var l, g;
|
|
2257
|
-
(l =
|
|
2258
|
-
H(
|
|
2258
|
+
(l = k.current) === null || l === void 0 || l.dispose(), k.current = (g = F.current) === null || g === void 0 ? void 0 : g.onDidChangeModelContent((T) => {
|
|
2259
|
+
H(F.current.getValue(), T);
|
|
2259
2260
|
});
|
|
2260
2261
|
}
|
|
2261
2262
|
}, [p, H]), we(() => {
|
|
2262
2263
|
if (p) {
|
|
2263
2264
|
const l = Q.current.editor.onDidChangeMarkers((g) => {
|
|
2264
2265
|
var T;
|
|
2265
|
-
const O = (T =
|
|
2266
|
+
const O = (T = F.current.getModel()) === null || T === void 0 ? void 0 : T.uri;
|
|
2266
2267
|
if (O && g.find((C) => C.path === O.path)) {
|
|
2267
2268
|
const C = Q.current.editor.getModelMarkers({
|
|
2268
2269
|
resource: O
|
|
@@ -2277,13 +2278,13 @@ function Mr({
|
|
|
2277
2278
|
}, [p, N]);
|
|
2278
2279
|
function Pe() {
|
|
2279
2280
|
var l;
|
|
2280
|
-
if ((l =
|
|
2281
|
-
h &&
|
|
2281
|
+
if ((l = k.current) === null || l === void 0 || l.dispose(), m)
|
|
2282
|
+
h && Xe.set(i, F.current.saveViewState());
|
|
2282
2283
|
else {
|
|
2283
2284
|
var g;
|
|
2284
|
-
(g =
|
|
2285
|
+
(g = F.current.getModel()) === null || g === void 0 || g.dispose();
|
|
2285
2286
|
}
|
|
2286
|
-
|
|
2287
|
+
F.current.dispose();
|
|
2287
2288
|
}
|
|
2288
2289
|
return /* @__PURE__ */ a(St, {
|
|
2289
2290
|
width: x,
|
|
@@ -2291,11 +2292,11 @@ function Mr({
|
|
|
2291
2292
|
isEditorReady: p,
|
|
2292
2293
|
loading: d,
|
|
2293
2294
|
_ref: ge,
|
|
2294
|
-
className:
|
|
2295
|
+
className: z,
|
|
2295
2296
|
wrapperProps: G
|
|
2296
2297
|
});
|
|
2297
2298
|
}
|
|
2298
|
-
|
|
2299
|
+
Ir.propTypes = {
|
|
2299
2300
|
defaultValue: S.exports.string,
|
|
2300
2301
|
defaultPath: S.exports.string,
|
|
2301
2302
|
defaultLanguage: S.exports.string,
|
|
@@ -2318,7 +2319,7 @@ Mr.propTypes = {
|
|
|
2318
2319
|
onChange: S.exports.func,
|
|
2319
2320
|
onValidate: S.exports.func
|
|
2320
2321
|
};
|
|
2321
|
-
|
|
2322
|
+
Ir.defaultProps = {
|
|
2322
2323
|
theme: "light",
|
|
2323
2324
|
loading: "Loading...",
|
|
2324
2325
|
options: {},
|
|
@@ -2328,19 +2329,43 @@ Mr.defaultProps = {
|
|
|
2328
2329
|
width: "100%",
|
|
2329
2330
|
height: "100%",
|
|
2330
2331
|
wrapperProps: {},
|
|
2331
|
-
beforeMount:
|
|
2332
|
-
onMount:
|
|
2333
|
-
onValidate:
|
|
2332
|
+
beforeMount: Ne,
|
|
2333
|
+
onMount: Ne,
|
|
2334
|
+
onValidate: Ne
|
|
2335
|
+
};
|
|
2336
|
+
var vo = /* @__PURE__ */ dt(Ir);
|
|
2337
|
+
function mo() {
|
|
2338
|
+
return new Worker("/assets/editor.worker.64456f42.js");
|
|
2339
|
+
}
|
|
2340
|
+
function bo() {
|
|
2341
|
+
return new Worker("/assets/css.worker.72a68640.js");
|
|
2342
|
+
}
|
|
2343
|
+
function yo() {
|
|
2344
|
+
return new Worker("/assets/html.worker.76e8b0f3.js");
|
|
2345
|
+
}
|
|
2346
|
+
function wo() {
|
|
2347
|
+
return new Worker("/assets/json.worker.e7a84e5c.js");
|
|
2348
|
+
}
|
|
2349
|
+
function So() {
|
|
2350
|
+
return new Worker("/assets/ts.worker.b3dc4cb9.js");
|
|
2351
|
+
}
|
|
2352
|
+
self.MonacoEnvironment = {
|
|
2353
|
+
getWorker(e, r) {
|
|
2354
|
+
return r === "json" ? new wo() : r === "css" || r === "scss" || r === "less" ? new bo() : r === "html" || r === "handlebars" || r === "razor" ? new yo() : r === "typescript" || r === "javascript" ? new So() : new mo();
|
|
2355
|
+
}
|
|
2334
2356
|
};
|
|
2335
|
-
|
|
2336
|
-
|
|
2357
|
+
function Eo() {
|
|
2358
|
+
Ye.__getMonacoInstance() || (console.log("loading monaco"), Ye.config({ monaco: nn }), Ye.init().then((r) => console.log("here is the monaco instance:", r)));
|
|
2359
|
+
}
|
|
2360
|
+
Eo();
|
|
2361
|
+
const To = ({
|
|
2337
2362
|
value: e,
|
|
2338
2363
|
onChange: r
|
|
2339
2364
|
}) => /* @__PURE__ */ a(me, {
|
|
2340
2365
|
sx: {
|
|
2341
2366
|
position: "relative"
|
|
2342
2367
|
},
|
|
2343
|
-
children: /* @__PURE__ */ a(
|
|
2368
|
+
children: /* @__PURE__ */ a(vo, {
|
|
2344
2369
|
height: "500px",
|
|
2345
2370
|
defaultLanguage: "javascript",
|
|
2346
2371
|
value: e,
|
|
@@ -2354,7 +2379,7 @@ const vo = ({
|
|
|
2354
2379
|
}
|
|
2355
2380
|
}
|
|
2356
2381
|
})
|
|
2357
|
-
}),
|
|
2382
|
+
}), ft = Cr(({
|
|
2358
2383
|
value: e,
|
|
2359
2384
|
onChange: r,
|
|
2360
2385
|
label: t,
|
|
@@ -2383,15 +2408,15 @@ const vo = ({
|
|
|
2383
2408
|
flexGrow: 1
|
|
2384
2409
|
},
|
|
2385
2410
|
children: t
|
|
2386
|
-
}), /* @__PURE__ */ a(
|
|
2411
|
+
}), /* @__PURE__ */ a(Be, {
|
|
2387
2412
|
size: 800,
|
|
2388
2413
|
title: o,
|
|
2389
2414
|
opened: u,
|
|
2390
2415
|
onClose: v,
|
|
2391
2416
|
closeOnClickOutside: !1,
|
|
2392
2417
|
withCloseButton: !1,
|
|
2393
|
-
children: u && /* @__PURE__ */ I(
|
|
2394
|
-
children: [/* @__PURE__ */ a(
|
|
2418
|
+
children: u && /* @__PURE__ */ I(Rr, {
|
|
2419
|
+
children: [/* @__PURE__ */ a(To, {
|
|
2395
2420
|
value: y,
|
|
2396
2421
|
onChange: h
|
|
2397
2422
|
}), /* @__PURE__ */ I(se, {
|
|
@@ -2418,13 +2443,13 @@ const vo = ({
|
|
|
2418
2443
|
})
|
|
2419
2444
|
})]
|
|
2420
2445
|
});
|
|
2421
|
-
}),
|
|
2446
|
+
}), Qe = {
|
|
2422
2447
|
pre: ["function pre_process({ method, url, params, headers, data }, utils) {", " // your code goes here", " return { method, url, params, headers, data }", "}"].join(`
|
|
2423
2448
|
`),
|
|
2424
2449
|
post: ["function post_process(res, utils) {", " // your code goes here", " return data", "}"].join(`
|
|
2425
2450
|
`)
|
|
2426
2451
|
};
|
|
2427
|
-
function
|
|
2452
|
+
function Oo({
|
|
2428
2453
|
submit: e,
|
|
2429
2454
|
styles: r = qe
|
|
2430
2455
|
}) {
|
|
@@ -2432,15 +2457,15 @@ function mo({
|
|
|
2432
2457
|
control: t,
|
|
2433
2458
|
setValue: o,
|
|
2434
2459
|
handleSubmit: s
|
|
2435
|
-
} =
|
|
2460
|
+
} = De({
|
|
2436
2461
|
defaultValues: {
|
|
2437
2462
|
type: "http",
|
|
2438
2463
|
key: "",
|
|
2439
2464
|
config: {
|
|
2440
2465
|
host: "",
|
|
2441
2466
|
processing: {
|
|
2442
|
-
pre:
|
|
2443
|
-
post:
|
|
2467
|
+
pre: Qe.pre,
|
|
2468
|
+
post: Qe.post
|
|
2444
2469
|
}
|
|
2445
2470
|
}
|
|
2446
2471
|
}
|
|
@@ -2462,7 +2487,7 @@ function mo({
|
|
|
2462
2487
|
placeholder: "A unique name",
|
|
2463
2488
|
...i
|
|
2464
2489
|
})
|
|
2465
|
-
}), /* @__PURE__ */ a(
|
|
2490
|
+
}), /* @__PURE__ */ a(Pr, {
|
|
2466
2491
|
label: "Connection Info",
|
|
2467
2492
|
labelPosition: "center"
|
|
2468
2493
|
}), /* @__PURE__ */ a(J, {
|
|
@@ -2487,10 +2512,10 @@ function mo({
|
|
|
2487
2512
|
control: t,
|
|
2488
2513
|
render: ({
|
|
2489
2514
|
field: i
|
|
2490
|
-
}) => /* @__PURE__ */ a(
|
|
2515
|
+
}) => /* @__PURE__ */ a(ft, {
|
|
2491
2516
|
label: "Pre Processing",
|
|
2492
2517
|
modalTitle: "This function will run before sending the request (for scenarios like encryption)",
|
|
2493
|
-
defaultValue:
|
|
2518
|
+
defaultValue: Qe.pre,
|
|
2494
2519
|
...i,
|
|
2495
2520
|
styles: r
|
|
2496
2521
|
})
|
|
@@ -2499,10 +2524,10 @@ function mo({
|
|
|
2499
2524
|
control: t,
|
|
2500
2525
|
render: ({
|
|
2501
2526
|
field: i
|
|
2502
|
-
}) => /* @__PURE__ */ a(
|
|
2527
|
+
}) => /* @__PURE__ */ a(ft, {
|
|
2503
2528
|
label: "Post Processing",
|
|
2504
2529
|
modalTitle: "This function will run after sending the request (for scenarios like decryption)",
|
|
2505
|
-
defaultValue:
|
|
2530
|
+
defaultValue: Qe.post,
|
|
2506
2531
|
...i,
|
|
2507
2532
|
styles: r
|
|
2508
2533
|
})
|
|
@@ -2519,7 +2544,7 @@ function mo({
|
|
|
2519
2544
|
})
|
|
2520
2545
|
});
|
|
2521
2546
|
}
|
|
2522
|
-
function
|
|
2547
|
+
function Po({
|
|
2523
2548
|
postSubmit: e,
|
|
2524
2549
|
styles: r = qe
|
|
2525
2550
|
}) {
|
|
@@ -2572,23 +2597,23 @@ function bo({
|
|
|
2572
2597
|
}],
|
|
2573
2598
|
value: t,
|
|
2574
2599
|
onChange: (u) => o(u)
|
|
2575
|
-
}), i && /* @__PURE__ */ a(
|
|
2600
|
+
}), i && /* @__PURE__ */ a(gn, {
|
|
2576
2601
|
submit: s,
|
|
2577
2602
|
styles: r,
|
|
2578
2603
|
type: t
|
|
2579
|
-
}), c && /* @__PURE__ */ a(
|
|
2604
|
+
}), c && /* @__PURE__ */ a(Oo, {
|
|
2580
2605
|
submit: s,
|
|
2581
2606
|
styles: r
|
|
2582
2607
|
})]
|
|
2583
2608
|
});
|
|
2584
2609
|
}
|
|
2585
|
-
function
|
|
2610
|
+
function Ro({
|
|
2586
2611
|
onSuccess: e,
|
|
2587
2612
|
styles: r = qe
|
|
2588
2613
|
}) {
|
|
2589
|
-
const [t, o] =
|
|
2614
|
+
const [t, o] = ze.useState(!1), s = () => o(!0), i = () => o(!1);
|
|
2590
2615
|
return /* @__PURE__ */ I(Oe, {
|
|
2591
|
-
children: [/* @__PURE__ */ a(
|
|
2616
|
+
children: [/* @__PURE__ */ a(Be, {
|
|
2592
2617
|
overflow: "inside",
|
|
2593
2618
|
opened: t,
|
|
2594
2619
|
onClose: () => o(!1),
|
|
@@ -2597,7 +2622,7 @@ function yo({
|
|
|
2597
2622
|
onDragStart: (u) => {
|
|
2598
2623
|
u.stopPropagation();
|
|
2599
2624
|
},
|
|
2600
|
-
children: /* @__PURE__ */ a(
|
|
2625
|
+
children: /* @__PURE__ */ a(Po, {
|
|
2601
2626
|
postSubmit: () => {
|
|
2602
2627
|
e(), i();
|
|
2603
2628
|
},
|
|
@@ -2606,24 +2631,24 @@ function yo({
|
|
|
2606
2631
|
}), /* @__PURE__ */ a(oe, {
|
|
2607
2632
|
size: r.button.size,
|
|
2608
2633
|
onClick: s,
|
|
2609
|
-
leftIcon: /* @__PURE__ */ a(
|
|
2634
|
+
leftIcon: /* @__PURE__ */ a(jr, {
|
|
2610
2635
|
size: 20
|
|
2611
2636
|
}),
|
|
2612
2637
|
children: "Add a Data Source"
|
|
2613
2638
|
})]
|
|
2614
2639
|
});
|
|
2615
2640
|
}
|
|
2616
|
-
function
|
|
2617
|
-
return
|
|
2641
|
+
function Or() {
|
|
2642
|
+
return Or = Object.assign ? Object.assign.bind() : function(e) {
|
|
2618
2643
|
for (var r = 1; r < arguments.length; r++) {
|
|
2619
2644
|
var t = arguments[r];
|
|
2620
2645
|
for (var o in t)
|
|
2621
2646
|
Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
|
|
2622
2647
|
}
|
|
2623
2648
|
return e;
|
|
2624
|
-
},
|
|
2649
|
+
}, Or.apply(this, arguments);
|
|
2625
2650
|
}
|
|
2626
|
-
function
|
|
2651
|
+
function _o(e, r) {
|
|
2627
2652
|
if (e == null)
|
|
2628
2653
|
return {};
|
|
2629
2654
|
var t, o, s = function(c, u) {
|
|
@@ -2641,19 +2666,19 @@ function wo(e, r) {
|
|
|
2641
2666
|
}
|
|
2642
2667
|
return s;
|
|
2643
2668
|
}
|
|
2644
|
-
var
|
|
2645
|
-
function
|
|
2646
|
-
var r = e.size, t = r === void 0 ? 24 : r, o = e.color, s = o === void 0 ? "currentColor" : o, i = e.stroke, c = i === void 0 ? 2 : i, u =
|
|
2647
|
-
return
|
|
2669
|
+
var xo = ["size", "color", "stroke"];
|
|
2670
|
+
function Co(e) {
|
|
2671
|
+
var r = e.size, t = r === void 0 ? 24 : r, o = e.color, s = o === void 0 ? "currentColor" : o, i = e.stroke, c = i === void 0 ? 2 : i, u = _o(e, xo);
|
|
2672
|
+
return Fe.createElement("svg", Or({ xmlns: "http://www.w3.org/2000/svg", className: "icon icon-tabler icon-tabler-lock", width: t, height: t, viewBox: "0 0 24 24", strokeWidth: c, stroke: s, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, u), Fe.createElement("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), Fe.createElement("rect", { x: 5, y: 11, width: 14, height: 10, rx: 2 }), Fe.createElement("circle", { cx: 12, cy: 16, r: 1 }), Fe.createElement("path", { d: "M8 11v-4a4 4 0 0 1 8 0v4" }));
|
|
2648
2673
|
}
|
|
2649
|
-
function
|
|
2674
|
+
function jo({
|
|
2650
2675
|
id: e,
|
|
2651
2676
|
name: r,
|
|
2652
2677
|
isProtected: t,
|
|
2653
2678
|
onSuccess: o,
|
|
2654
2679
|
styles: s = qe
|
|
2655
2680
|
}) {
|
|
2656
|
-
const i =
|
|
2681
|
+
const i = nr(), c = async () => {
|
|
2657
2682
|
!e || (_e({
|
|
2658
2683
|
id: "for-deleting",
|
|
2659
2684
|
title: "Pending",
|
|
@@ -2667,7 +2692,7 @@ function To({
|
|
|
2667
2692
|
}), o());
|
|
2668
2693
|
}, u = () => i.openConfirmModal({
|
|
2669
2694
|
title: "Delete this data source?",
|
|
2670
|
-
children: /* @__PURE__ */ a(
|
|
2695
|
+
children: /* @__PURE__ */ a(Ze, {
|
|
2671
2696
|
size: s.size,
|
|
2672
2697
|
children: "This action won't affect your database."
|
|
2673
2698
|
}),
|
|
@@ -2687,7 +2712,7 @@ function To({
|
|
|
2687
2712
|
},
|
|
2688
2713
|
label: "This is a preset datasource, it can not be deleted",
|
|
2689
2714
|
children: /* @__PURE__ */ a("span", {
|
|
2690
|
-
children: /* @__PURE__ */ a(
|
|
2715
|
+
children: /* @__PURE__ */ a(Co, {
|
|
2691
2716
|
size: 16,
|
|
2692
2717
|
color: d.colors.gray[7]
|
|
2693
2718
|
})
|
|
@@ -2696,22 +2721,22 @@ function To({
|
|
|
2696
2721
|
size: s.button.size,
|
|
2697
2722
|
color: "red",
|
|
2698
2723
|
onClick: u,
|
|
2699
|
-
leftIcon: /* @__PURE__ */ a(
|
|
2724
|
+
leftIcon: /* @__PURE__ */ a(Ar, {
|
|
2700
2725
|
size: 20
|
|
2701
2726
|
}),
|
|
2702
2727
|
children: "Delete"
|
|
2703
2728
|
});
|
|
2704
2729
|
}
|
|
2705
|
-
function
|
|
2730
|
+
function Xo({
|
|
2706
2731
|
styles: e = qe,
|
|
2707
2732
|
config: r
|
|
2708
2733
|
}) {
|
|
2709
|
-
|
|
2734
|
+
or(r);
|
|
2710
2735
|
const {
|
|
2711
2736
|
data: t = [],
|
|
2712
2737
|
loading: o,
|
|
2713
2738
|
refresh: s
|
|
2714
|
-
} =
|
|
2739
|
+
} = ke(async () => {
|
|
2715
2740
|
const {
|
|
2716
2741
|
data: i
|
|
2717
2742
|
} = await de.datasource.list();
|
|
@@ -2723,7 +2748,7 @@ function No({
|
|
|
2723
2748
|
children: [/* @__PURE__ */ a(se, {
|
|
2724
2749
|
pt: e.spacing,
|
|
2725
2750
|
position: "right",
|
|
2726
|
-
children: /* @__PURE__ */ a(
|
|
2751
|
+
children: /* @__PURE__ */ a(Ro, {
|
|
2727
2752
|
onSuccess: s
|
|
2728
2753
|
})
|
|
2729
2754
|
}), /* @__PURE__ */ I(me, {
|
|
@@ -2731,9 +2756,9 @@ function No({
|
|
|
2731
2756
|
sx: {
|
|
2732
2757
|
position: "relative"
|
|
2733
2758
|
},
|
|
2734
|
-
children: [/* @__PURE__ */ a(
|
|
2759
|
+
children: [/* @__PURE__ */ a(_r, {
|
|
2735
2760
|
visible: o
|
|
2736
|
-
}), /* @__PURE__ */ I(
|
|
2761
|
+
}), /* @__PURE__ */ I(xr, {
|
|
2737
2762
|
horizontalSpacing: e.spacing,
|
|
2738
2763
|
verticalSpacing: e.spacing,
|
|
2739
2764
|
fontSize: e.size,
|
|
@@ -2764,7 +2789,7 @@ function No({
|
|
|
2764
2789
|
width: 200,
|
|
2765
2790
|
children: /* @__PURE__ */ a(se, {
|
|
2766
2791
|
position: "left",
|
|
2767
|
-
children: /* @__PURE__ */ a(
|
|
2792
|
+
children: /* @__PURE__ */ a(jo, {
|
|
2768
2793
|
isProtected: d,
|
|
2769
2794
|
id: i,
|
|
2770
2795
|
name: c,
|
|
@@ -2778,25 +2803,25 @@ function No({
|
|
|
2778
2803
|
})]
|
|
2779
2804
|
});
|
|
2780
2805
|
}
|
|
2781
|
-
const
|
|
2806
|
+
const Ao = Cr(({
|
|
2782
2807
|
label: e,
|
|
2783
2808
|
value: r,
|
|
2784
2809
|
description: t,
|
|
2785
2810
|
...o
|
|
2786
|
-
}, s) => /* @__PURE__ */ I(
|
|
2811
|
+
}, s) => /* @__PURE__ */ I(Rr, {
|
|
2787
2812
|
spacing: 2,
|
|
2788
2813
|
ref: s,
|
|
2789
2814
|
...o,
|
|
2790
|
-
children: [/* @__PURE__ */ a(
|
|
2815
|
+
children: [/* @__PURE__ */ a(Ze, {
|
|
2791
2816
|
size: "sm",
|
|
2792
2817
|
children: e
|
|
2793
|
-
}), /* @__PURE__ */ a(
|
|
2818
|
+
}), /* @__PURE__ */ a(Ze, {
|
|
2794
2819
|
size: "xs",
|
|
2795
2820
|
color: "dimmed",
|
|
2796
2821
|
className: "role-description",
|
|
2797
2822
|
children: t
|
|
2798
2823
|
})]
|
|
2799
|
-
})),
|
|
2824
|
+
})), kr = Cr(({
|
|
2800
2825
|
styles: e,
|
|
2801
2826
|
value: r,
|
|
2802
2827
|
onChange: t
|
|
@@ -2804,7 +2829,7 @@ const Oo = xr(({
|
|
|
2804
2829
|
const {
|
|
2805
2830
|
data: s = [],
|
|
2806
2831
|
loading: i
|
|
2807
|
-
} =
|
|
2832
|
+
} = ke(async () => (await de.role.list()).map((u) => ({
|
|
2808
2833
|
label: u.name,
|
|
2809
2834
|
value: u.id,
|
|
2810
2835
|
description: u.description,
|
|
@@ -2818,7 +2843,7 @@ const Oo = xr(({
|
|
|
2818
2843
|
size: e.size,
|
|
2819
2844
|
required: !0,
|
|
2820
2845
|
label: "Role",
|
|
2821
|
-
itemComponent:
|
|
2846
|
+
itemComponent: Ao,
|
|
2822
2847
|
data: s,
|
|
2823
2848
|
disabled: i,
|
|
2824
2849
|
styles: () => ({
|
|
@@ -2842,7 +2867,7 @@ const Oo = xr(({
|
|
|
2842
2867
|
size: "xs"
|
|
2843
2868
|
}
|
|
2844
2869
|
};
|
|
2845
|
-
function
|
|
2870
|
+
function Mo({
|
|
2846
2871
|
postSubmit: e,
|
|
2847
2872
|
styles: r = xe,
|
|
2848
2873
|
initialRoleID: t
|
|
@@ -2850,7 +2875,7 @@ function Po({
|
|
|
2850
2875
|
const {
|
|
2851
2876
|
control: o,
|
|
2852
2877
|
handleSubmit: s
|
|
2853
|
-
} =
|
|
2878
|
+
} = De({
|
|
2854
2879
|
defaultValues: {
|
|
2855
2880
|
name: "",
|
|
2856
2881
|
email: "",
|
|
@@ -2917,7 +2942,7 @@ function Po({
|
|
|
2917
2942
|
control: o,
|
|
2918
2943
|
render: ({
|
|
2919
2944
|
field: c
|
|
2920
|
-
}) => /* @__PURE__ */ a(
|
|
2945
|
+
}) => /* @__PURE__ */ a(tr, {
|
|
2921
2946
|
mb: r.spacing,
|
|
2922
2947
|
size: r.size,
|
|
2923
2948
|
required: !0,
|
|
@@ -2930,7 +2955,7 @@ function Po({
|
|
|
2930
2955
|
control: o,
|
|
2931
2956
|
render: ({
|
|
2932
2957
|
field: c
|
|
2933
|
-
}) => /* @__PURE__ */ a(
|
|
2958
|
+
}) => /* @__PURE__ */ a(kr, {
|
|
2934
2959
|
styles: r,
|
|
2935
2960
|
...c
|
|
2936
2961
|
})
|
|
@@ -2946,14 +2971,14 @@ function Po({
|
|
|
2946
2971
|
})
|
|
2947
2972
|
});
|
|
2948
2973
|
}
|
|
2949
|
-
function
|
|
2974
|
+
function Io({
|
|
2950
2975
|
onSuccess: e,
|
|
2951
2976
|
styles: r = xe,
|
|
2952
2977
|
initialRoleID: t
|
|
2953
2978
|
}) {
|
|
2954
|
-
const [o, s] =
|
|
2979
|
+
const [o, s] = ze.useState(!1), i = () => s(!0), c = () => s(!1);
|
|
2955
2980
|
return /* @__PURE__ */ I(Oe, {
|
|
2956
|
-
children: [/* @__PURE__ */ a(
|
|
2981
|
+
children: [/* @__PURE__ */ a(Be, {
|
|
2957
2982
|
overflow: "inside",
|
|
2958
2983
|
opened: o,
|
|
2959
2984
|
onClose: () => s(!1),
|
|
@@ -2962,7 +2987,7 @@ function Ro({
|
|
|
2962
2987
|
onDragStart: (d) => {
|
|
2963
2988
|
d.stopPropagation();
|
|
2964
2989
|
},
|
|
2965
|
-
children: /* @__PURE__ */ a(
|
|
2990
|
+
children: /* @__PURE__ */ a(Mo, {
|
|
2966
2991
|
postSubmit: () => {
|
|
2967
2992
|
e(), c();
|
|
2968
2993
|
},
|
|
@@ -2972,20 +2997,20 @@ function Ro({
|
|
|
2972
2997
|
}), /* @__PURE__ */ a(oe, {
|
|
2973
2998
|
size: r.button.size,
|
|
2974
2999
|
onClick: i,
|
|
2975
|
-
leftIcon: /* @__PURE__ */ a(
|
|
3000
|
+
leftIcon: /* @__PURE__ */ a(jr, {
|
|
2976
3001
|
size: 20
|
|
2977
3002
|
}),
|
|
2978
3003
|
children: "Add an Account"
|
|
2979
3004
|
})]
|
|
2980
3005
|
});
|
|
2981
3006
|
}
|
|
2982
|
-
function
|
|
3007
|
+
function ko({
|
|
2983
3008
|
id: e,
|
|
2984
3009
|
name: r,
|
|
2985
3010
|
onSuccess: t,
|
|
2986
3011
|
styles: o = xe
|
|
2987
3012
|
}) {
|
|
2988
|
-
const s =
|
|
3013
|
+
const s = nr(), i = async () => {
|
|
2989
3014
|
if (!!e) {
|
|
2990
3015
|
_e({
|
|
2991
3016
|
id: "for-deleting",
|
|
@@ -3022,13 +3047,13 @@ function _o({
|
|
|
3022
3047
|
size: o.button.size,
|
|
3023
3048
|
color: "red",
|
|
3024
3049
|
onClick: c,
|
|
3025
|
-
leftIcon: /* @__PURE__ */ a(
|
|
3050
|
+
leftIcon: /* @__PURE__ */ a(Ar, {
|
|
3026
3051
|
size: 20
|
|
3027
3052
|
}),
|
|
3028
3053
|
children: "Delete"
|
|
3029
3054
|
});
|
|
3030
3055
|
}
|
|
3031
|
-
function
|
|
3056
|
+
function zo({
|
|
3032
3057
|
id: e,
|
|
3033
3058
|
name: r,
|
|
3034
3059
|
email: t,
|
|
@@ -3040,7 +3065,7 @@ function xo({
|
|
|
3040
3065
|
control: c,
|
|
3041
3066
|
handleSubmit: u,
|
|
3042
3067
|
watch: d
|
|
3043
|
-
} =
|
|
3068
|
+
} = De({
|
|
3044
3069
|
defaultValues: {
|
|
3045
3070
|
name: r,
|
|
3046
3071
|
email: t,
|
|
@@ -3052,7 +3077,7 @@ function xo({
|
|
|
3052
3077
|
name: m,
|
|
3053
3078
|
email: x,
|
|
3054
3079
|
role_id: Y,
|
|
3055
|
-
reset_password:
|
|
3080
|
+
reset_password: z,
|
|
3056
3081
|
new_password: G
|
|
3057
3082
|
}) => {
|
|
3058
3083
|
try {
|
|
@@ -3066,7 +3091,7 @@ function xo({
|
|
|
3066
3091
|
name: m,
|
|
3067
3092
|
email: x,
|
|
3068
3093
|
role_id: Y,
|
|
3069
|
-
reset_password:
|
|
3094
|
+
reset_password: z,
|
|
3070
3095
|
new_password: G
|
|
3071
3096
|
}), le({
|
|
3072
3097
|
id: "for-updating",
|
|
@@ -3116,11 +3141,11 @@ function xo({
|
|
|
3116
3141
|
control: c,
|
|
3117
3142
|
render: ({
|
|
3118
3143
|
field: m
|
|
3119
|
-
}) => /* @__PURE__ */ a(
|
|
3144
|
+
}) => /* @__PURE__ */ a(kr, {
|
|
3120
3145
|
styles: i,
|
|
3121
3146
|
...m
|
|
3122
3147
|
})
|
|
3123
|
-
}), /* @__PURE__ */ a(
|
|
3148
|
+
}), /* @__PURE__ */ a(Pr, {
|
|
3124
3149
|
my: 20,
|
|
3125
3150
|
variant: "dashed",
|
|
3126
3151
|
label: "",
|
|
@@ -3147,7 +3172,7 @@ function xo({
|
|
|
3147
3172
|
control: c,
|
|
3148
3173
|
render: ({
|
|
3149
3174
|
field: m
|
|
3150
|
-
}) => /* @__PURE__ */ a(
|
|
3175
|
+
}) => /* @__PURE__ */ a(tr, {
|
|
3151
3176
|
autoComplete: "off",
|
|
3152
3177
|
mb: i.spacing,
|
|
3153
3178
|
size: i.size,
|
|
@@ -3168,16 +3193,16 @@ function xo({
|
|
|
3168
3193
|
})
|
|
3169
3194
|
});
|
|
3170
3195
|
}
|
|
3171
|
-
function
|
|
3196
|
+
function Do({
|
|
3172
3197
|
account: e,
|
|
3173
3198
|
onSuccess: r,
|
|
3174
3199
|
styles: t = xe
|
|
3175
3200
|
}) {
|
|
3176
|
-
const [o, s] =
|
|
3201
|
+
const [o, s] = ze.useState(!1), i = () => s(!0), c = () => s(!1), u = () => {
|
|
3177
3202
|
r(), c();
|
|
3178
3203
|
};
|
|
3179
3204
|
return /* @__PURE__ */ I(Oe, {
|
|
3180
|
-
children: [/* @__PURE__ */ a(
|
|
3205
|
+
children: [/* @__PURE__ */ a(Be, {
|
|
3181
3206
|
overflow: "inside",
|
|
3182
3207
|
opened: o,
|
|
3183
3208
|
onClose: () => s(!1),
|
|
@@ -3186,7 +3211,7 @@ function Co({
|
|
|
3186
3211
|
onDragStart: (d) => {
|
|
3187
3212
|
d.stopPropagation();
|
|
3188
3213
|
},
|
|
3189
|
-
children: /* @__PURE__ */ a(
|
|
3214
|
+
children: /* @__PURE__ */ a(zo, {
|
|
3190
3215
|
...e,
|
|
3191
3216
|
postSubmit: u,
|
|
3192
3217
|
styles: t
|
|
@@ -3201,17 +3226,17 @@ function Co({
|
|
|
3201
3226
|
})]
|
|
3202
3227
|
});
|
|
3203
3228
|
}
|
|
3204
|
-
function
|
|
3229
|
+
function Qo({
|
|
3205
3230
|
styles: e = xe,
|
|
3206
3231
|
config: r
|
|
3207
3232
|
}) {
|
|
3208
3233
|
var v, y;
|
|
3209
|
-
|
|
3234
|
+
or(r);
|
|
3210
3235
|
const {
|
|
3211
3236
|
data: t = [],
|
|
3212
3237
|
loading: o,
|
|
3213
3238
|
refresh: s
|
|
3214
|
-
} =
|
|
3239
|
+
} = ke(async () => {
|
|
3215
3240
|
const {
|
|
3216
3241
|
data: h
|
|
3217
3242
|
} = await de.account.list();
|
|
@@ -3221,14 +3246,14 @@ function Vo({
|
|
|
3221
3246
|
}), {
|
|
3222
3247
|
data: i = [],
|
|
3223
3248
|
loading: c
|
|
3224
|
-
} =
|
|
3249
|
+
} = ke(async () => (await de.role.list()).map((m) => ({
|
|
3225
3250
|
label: m.name,
|
|
3226
3251
|
value: m.id,
|
|
3227
3252
|
description: m.description,
|
|
3228
3253
|
disabled: m.id === 50
|
|
3229
3254
|
})), {
|
|
3230
3255
|
refreshDeps: []
|
|
3231
|
-
}), u =
|
|
3256
|
+
}), u = pt(() => i.reduce((h, m) => (h.set(m.value, m.label), h), /* @__PURE__ */ new Map()), [i]), d = (h) => {
|
|
3232
3257
|
var m;
|
|
3233
3258
|
return (m = u.get(h)) != null ? m : h;
|
|
3234
3259
|
};
|
|
@@ -3236,7 +3261,7 @@ function Vo({
|
|
|
3236
3261
|
children: [/* @__PURE__ */ a(se, {
|
|
3237
3262
|
pt: e.spacing,
|
|
3238
3263
|
position: "right",
|
|
3239
|
-
children: /* @__PURE__ */ a(
|
|
3264
|
+
children: /* @__PURE__ */ a(Io, {
|
|
3240
3265
|
onSuccess: s,
|
|
3241
3266
|
initialRoleID: (y = (v = i == null ? void 0 : i[0]) == null ? void 0 : v.value) != null ? y : 0
|
|
3242
3267
|
})
|
|
@@ -3245,9 +3270,9 @@ function Vo({
|
|
|
3245
3270
|
sx: {
|
|
3246
3271
|
position: "relative"
|
|
3247
3272
|
},
|
|
3248
|
-
children: [/* @__PURE__ */ a(
|
|
3273
|
+
children: [/* @__PURE__ */ a(_r, {
|
|
3249
3274
|
visible: o || c
|
|
3250
|
-
}), /* @__PURE__ */ I(
|
|
3275
|
+
}), /* @__PURE__ */ I(xr, {
|
|
3251
3276
|
horizontalSpacing: e.spacing,
|
|
3252
3277
|
verticalSpacing: e.spacing,
|
|
3253
3278
|
fontSize: e.size,
|
|
@@ -3270,7 +3295,7 @@ function Vo({
|
|
|
3270
3295
|
id: m,
|
|
3271
3296
|
name: x,
|
|
3272
3297
|
email: Y,
|
|
3273
|
-
role_id:
|
|
3298
|
+
role_id: z
|
|
3274
3299
|
} = h;
|
|
3275
3300
|
return /* @__PURE__ */ I("tr", {
|
|
3276
3301
|
children: [/* @__PURE__ */ a("td", {
|
|
@@ -3281,15 +3306,15 @@ function Vo({
|
|
|
3281
3306
|
children: Y
|
|
3282
3307
|
}), /* @__PURE__ */ a("td", {
|
|
3283
3308
|
width: 200,
|
|
3284
|
-
children: d(
|
|
3309
|
+
children: d(z)
|
|
3285
3310
|
}), /* @__PURE__ */ a("td", {
|
|
3286
3311
|
width: 200,
|
|
3287
3312
|
children: /* @__PURE__ */ I(se, {
|
|
3288
3313
|
position: "left",
|
|
3289
|
-
children: [/* @__PURE__ */ a(
|
|
3314
|
+
children: [/* @__PURE__ */ a(Do, {
|
|
3290
3315
|
account: h,
|
|
3291
3316
|
onSuccess: s
|
|
3292
|
-
}), /* @__PURE__ */ a(
|
|
3317
|
+
}), /* @__PURE__ */ a(ko, {
|
|
3293
3318
|
id: m,
|
|
3294
3319
|
name: x,
|
|
3295
3320
|
onSuccess: s
|
|
@@ -3303,14 +3328,14 @@ function Vo({
|
|
|
3303
3328
|
})]
|
|
3304
3329
|
});
|
|
3305
3330
|
}
|
|
3306
|
-
function
|
|
3331
|
+
function qo({
|
|
3307
3332
|
postSubmit: e,
|
|
3308
3333
|
styles: r = xe
|
|
3309
3334
|
}) {
|
|
3310
3335
|
const {
|
|
3311
3336
|
control: t,
|
|
3312
3337
|
handleSubmit: o
|
|
3313
|
-
} =
|
|
3338
|
+
} = De({
|
|
3314
3339
|
defaultValues: {
|
|
3315
3340
|
name: "",
|
|
3316
3341
|
password: ""
|
|
@@ -3363,7 +3388,7 @@ function jo({
|
|
|
3363
3388
|
control: t,
|
|
3364
3389
|
render: ({
|
|
3365
3390
|
field: i
|
|
3366
|
-
}) => /* @__PURE__ */ a(
|
|
3391
|
+
}) => /* @__PURE__ */ a(tr, {
|
|
3367
3392
|
mb: r.spacing,
|
|
3368
3393
|
size: r.size,
|
|
3369
3394
|
required: !0,
|
|
@@ -3382,40 +3407,40 @@ function jo({
|
|
|
3382
3407
|
})
|
|
3383
3408
|
});
|
|
3384
3409
|
}
|
|
3385
|
-
function
|
|
3410
|
+
function Zo({
|
|
3386
3411
|
styles: e = xe,
|
|
3387
3412
|
config: r,
|
|
3388
3413
|
onSuccess: t
|
|
3389
3414
|
}) {
|
|
3390
|
-
return
|
|
3415
|
+
return or(r), /* @__PURE__ */ a(Oe, {
|
|
3391
3416
|
children: /* @__PURE__ */ a(me, {
|
|
3392
3417
|
mt: e.spacing,
|
|
3393
3418
|
sx: {
|
|
3394
3419
|
position: "relative"
|
|
3395
3420
|
},
|
|
3396
|
-
children: /* @__PURE__ */ a(
|
|
3421
|
+
children: /* @__PURE__ */ a(qo, {
|
|
3397
3422
|
styles: e,
|
|
3398
3423
|
postSubmit: t
|
|
3399
3424
|
})
|
|
3400
3425
|
})
|
|
3401
3426
|
});
|
|
3402
3427
|
}
|
|
3403
|
-
const
|
|
3428
|
+
const sr = {
|
|
3404
3429
|
size: "sm",
|
|
3405
3430
|
spacing: "md",
|
|
3406
3431
|
button: {
|
|
3407
3432
|
size: "xs"
|
|
3408
3433
|
}
|
|
3409
3434
|
};
|
|
3410
|
-
function
|
|
3435
|
+
function $o({
|
|
3411
3436
|
postSubmit: e,
|
|
3412
|
-
styles: r =
|
|
3437
|
+
styles: r = sr,
|
|
3413
3438
|
initialRoleID: t
|
|
3414
3439
|
}) {
|
|
3415
3440
|
const {
|
|
3416
3441
|
control: o,
|
|
3417
3442
|
handleSubmit: s
|
|
3418
|
-
} =
|
|
3443
|
+
} = De({
|
|
3419
3444
|
defaultValues: {
|
|
3420
3445
|
name: "",
|
|
3421
3446
|
role_id: t
|
|
@@ -3471,7 +3496,7 @@ function Ao({
|
|
|
3471
3496
|
control: o,
|
|
3472
3497
|
render: ({
|
|
3473
3498
|
field: c
|
|
3474
|
-
}) => /* @__PURE__ */ a(
|
|
3499
|
+
}) => /* @__PURE__ */ a(kr, {
|
|
3475
3500
|
styles: r,
|
|
3476
3501
|
...c
|
|
3477
3502
|
})
|
|
@@ -3487,14 +3512,14 @@ function Ao({
|
|
|
3487
3512
|
})
|
|
3488
3513
|
});
|
|
3489
3514
|
}
|
|
3490
|
-
function
|
|
3515
|
+
function Fo({
|
|
3491
3516
|
onSuccess: e,
|
|
3492
|
-
styles: r =
|
|
3517
|
+
styles: r = sr,
|
|
3493
3518
|
initialRoleID: t
|
|
3494
3519
|
}) {
|
|
3495
|
-
const o =
|
|
3520
|
+
const o = nr(), [s, i] = ze.useState(!1), c = () => i(!0), u = () => i(!1);
|
|
3496
3521
|
return /* @__PURE__ */ I(Oe, {
|
|
3497
|
-
children: [/* @__PURE__ */ a(
|
|
3522
|
+
children: [/* @__PURE__ */ a(Be, {
|
|
3498
3523
|
overflow: "inside",
|
|
3499
3524
|
opened: s,
|
|
3500
3525
|
onClose: () => i(!1),
|
|
@@ -3503,12 +3528,12 @@ function Mo({
|
|
|
3503
3528
|
onDragStart: (v) => {
|
|
3504
3529
|
v.stopPropagation();
|
|
3505
3530
|
},
|
|
3506
|
-
children: /* @__PURE__ */ a(
|
|
3531
|
+
children: /* @__PURE__ */ a($o, {
|
|
3507
3532
|
postSubmit: (v, y) => {
|
|
3508
3533
|
u(), o.openModal({
|
|
3509
3534
|
title: "API Key is generated",
|
|
3510
|
-
children: /* @__PURE__ */ I(
|
|
3511
|
-
children: [/* @__PURE__ */ a(
|
|
3535
|
+
children: /* @__PURE__ */ I(Rr, {
|
|
3536
|
+
children: [/* @__PURE__ */ a(Ze, {
|
|
3512
3537
|
color: "dimmed",
|
|
3513
3538
|
children: "Make sure you save it - you won't be able to access it again."
|
|
3514
3539
|
}), /* @__PURE__ */ a(fe, {
|
|
@@ -3532,7 +3557,7 @@ function Mo({
|
|
|
3532
3557
|
}), /* @__PURE__ */ a(oe, {
|
|
3533
3558
|
size: "sm",
|
|
3534
3559
|
onClick: () => {
|
|
3535
|
-
|
|
3560
|
+
on();
|
|
3536
3561
|
},
|
|
3537
3562
|
children: "I've saved this API Key"
|
|
3538
3563
|
})]
|
|
@@ -3548,20 +3573,20 @@ function Mo({
|
|
|
3548
3573
|
}), /* @__PURE__ */ a(oe, {
|
|
3549
3574
|
size: r.button.size,
|
|
3550
3575
|
onClick: c,
|
|
3551
|
-
leftIcon: /* @__PURE__ */ a(
|
|
3576
|
+
leftIcon: /* @__PURE__ */ a(jr, {
|
|
3552
3577
|
size: 20
|
|
3553
3578
|
}),
|
|
3554
3579
|
children: "Add an API Key"
|
|
3555
3580
|
})]
|
|
3556
3581
|
});
|
|
3557
3582
|
}
|
|
3558
|
-
function
|
|
3583
|
+
function Lo({
|
|
3559
3584
|
id: e,
|
|
3560
3585
|
name: r,
|
|
3561
3586
|
onSuccess: t,
|
|
3562
|
-
styles: o =
|
|
3587
|
+
styles: o = sr
|
|
3563
3588
|
}) {
|
|
3564
|
-
const s =
|
|
3589
|
+
const s = nr(), i = async () => {
|
|
3565
3590
|
if (!!e) {
|
|
3566
3591
|
_e({
|
|
3567
3592
|
id: "for-deleting",
|
|
@@ -3598,23 +3623,23 @@ function Io({
|
|
|
3598
3623
|
size: o.button.size,
|
|
3599
3624
|
color: "red",
|
|
3600
3625
|
onClick: c,
|
|
3601
|
-
leftIcon: /* @__PURE__ */ a(
|
|
3626
|
+
leftIcon: /* @__PURE__ */ a(Ar, {
|
|
3602
3627
|
size: 20
|
|
3603
3628
|
}),
|
|
3604
3629
|
children: "Delete"
|
|
3605
3630
|
});
|
|
3606
3631
|
}
|
|
3607
|
-
function
|
|
3608
|
-
styles: e =
|
|
3632
|
+
function ei({
|
|
3633
|
+
styles: e = sr,
|
|
3609
3634
|
config: r
|
|
3610
3635
|
}) {
|
|
3611
3636
|
var v, y;
|
|
3612
|
-
|
|
3637
|
+
or(r);
|
|
3613
3638
|
const {
|
|
3614
3639
|
data: t = [],
|
|
3615
3640
|
loading: o,
|
|
3616
3641
|
refresh: s
|
|
3617
|
-
} =
|
|
3642
|
+
} = ke(async () => {
|
|
3618
3643
|
const {
|
|
3619
3644
|
data: h
|
|
3620
3645
|
} = await de.api_key.list();
|
|
@@ -3624,14 +3649,14 @@ function Ko({
|
|
|
3624
3649
|
}), {
|
|
3625
3650
|
data: i = [],
|
|
3626
3651
|
loading: c
|
|
3627
|
-
} =
|
|
3652
|
+
} = ke(async () => (await de.role.list()).map((m) => ({
|
|
3628
3653
|
label: m.name,
|
|
3629
3654
|
value: m.id,
|
|
3630
3655
|
description: m.description,
|
|
3631
3656
|
disabled: m.id === 50
|
|
3632
3657
|
})), {
|
|
3633
3658
|
refreshDeps: []
|
|
3634
|
-
}), u =
|
|
3659
|
+
}), u = pt(() => i.reduce((h, m) => (h.set(m.value, m.label), h), /* @__PURE__ */ new Map()), [i]), d = (h) => {
|
|
3635
3660
|
var m;
|
|
3636
3661
|
return (m = u.get(h)) != null ? m : h;
|
|
3637
3662
|
};
|
|
@@ -3639,7 +3664,7 @@ function Ko({
|
|
|
3639
3664
|
children: [/* @__PURE__ */ a(se, {
|
|
3640
3665
|
pt: e.spacing,
|
|
3641
3666
|
position: "right",
|
|
3642
|
-
children: /* @__PURE__ */ a(
|
|
3667
|
+
children: /* @__PURE__ */ a(Fo, {
|
|
3643
3668
|
onSuccess: s,
|
|
3644
3669
|
initialRoleID: (y = (v = i == null ? void 0 : i[0]) == null ? void 0 : v.value) != null ? y : 0
|
|
3645
3670
|
})
|
|
@@ -3648,9 +3673,9 @@ function Ko({
|
|
|
3648
3673
|
sx: {
|
|
3649
3674
|
position: "relative"
|
|
3650
3675
|
},
|
|
3651
|
-
children: [/* @__PURE__ */ a(
|
|
3676
|
+
children: [/* @__PURE__ */ a(_r, {
|
|
3652
3677
|
visible: o || c
|
|
3653
|
-
}), /* @__PURE__ */ I(
|
|
3678
|
+
}), /* @__PURE__ */ I(xr, {
|
|
3654
3679
|
horizontalSpacing: e.spacing,
|
|
3655
3680
|
verticalSpacing: e.spacing,
|
|
3656
3681
|
fontSize: e.size,
|
|
@@ -3673,7 +3698,7 @@ function Ko({
|
|
|
3673
3698
|
id: m,
|
|
3674
3699
|
name: x,
|
|
3675
3700
|
app_id: Y,
|
|
3676
|
-
role_id:
|
|
3701
|
+
role_id: z
|
|
3677
3702
|
} = h;
|
|
3678
3703
|
return /* @__PURE__ */ I("tr", {
|
|
3679
3704
|
children: [/* @__PURE__ */ a("td", {
|
|
@@ -3684,12 +3709,12 @@ function Ko({
|
|
|
3684
3709
|
children: Y
|
|
3685
3710
|
}), /* @__PURE__ */ a("td", {
|
|
3686
3711
|
width: 200,
|
|
3687
|
-
children: d(
|
|
3712
|
+
children: d(z)
|
|
3688
3713
|
}), /* @__PURE__ */ a("td", {
|
|
3689
3714
|
width: 200,
|
|
3690
3715
|
children: /* @__PURE__ */ a(se, {
|
|
3691
3716
|
position: "left",
|
|
3692
|
-
children: /* @__PURE__ */ a(
|
|
3717
|
+
children: /* @__PURE__ */ a(Lo, {
|
|
3693
3718
|
id: m,
|
|
3694
3719
|
name: x,
|
|
3695
3720
|
onSuccess: s
|
|
@@ -3703,17 +3728,17 @@ function Ko({
|
|
|
3703
3728
|
})]
|
|
3704
3729
|
});
|
|
3705
3730
|
}
|
|
3706
|
-
const
|
|
3731
|
+
const ri = () => import("./package.b74d5f91.mjs").then(({ version: e }) => (console.log(`[@devtable/dashboard] version: ${e}`), e));
|
|
3707
3732
|
export {
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3733
|
+
ei as APIKeyList,
|
|
3734
|
+
Qo as AccountList,
|
|
3735
|
+
Fo as AddAPIKey,
|
|
3736
|
+
Io as AddAccount,
|
|
3737
|
+
Ro as AddDataSource,
|
|
3738
|
+
Xo as DataSourceList,
|
|
3739
|
+
Lo as DeleteAPIKey,
|
|
3740
|
+
ko as DeleteAccount,
|
|
3741
|
+
jo as DeleteDataSource,
|
|
3742
|
+
Zo as Login,
|
|
3743
|
+
ri as getVersion
|
|
3719
3744
|
};
|