@devtable/settings-form 8.13.1 → 8.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/settings-form.es.js +561 -571
- package/dist/settings-form.umd.js +16 -16
- package/package.json +1 -1
- package/dist/assets/css.worker.72a68640.js +0 -85
- package/dist/assets/editor.worker.64456f42.js +0 -9
- package/dist/assets/html.worker.76e8b0f3.js +0 -457
- package/dist/assets/json.worker.e7a84e5c.js +0 -40
- package/dist/assets/ts.worker.b3dc4cb9.js +0 -33973
package/dist/settings-form.es.js
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
import { Box as
|
|
1
|
+
import { Box as ve, 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
|
|
3
|
+
import * as $e from "react";
|
|
4
|
+
import ke, { useEffect as we, memo as dt, useRef as ue, useState as Ie, useCallback as Tr, forwardRef as Cr, useMemo as pt } from "react";
|
|
5
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
9
|
import { useForm as De, Controller as J } from "react-hook-form";
|
|
10
|
-
import { useBoolean as tn, useRequest as
|
|
10
|
+
import { useBoolean as tn, useRequest as ze } from "ahooks";
|
|
11
11
|
import * as nn from "monaco-editor";
|
|
12
|
-
import
|
|
13
|
-
|
|
12
|
+
import on from "monaco-editor/esm/vs/editor/editor.worker?worker";
|
|
13
|
+
import an from "monaco-editor/esm/vs/language/css/css.worker?worker";
|
|
14
|
+
import sn from "monaco-editor/esm/vs/language/html/html.worker?worker";
|
|
15
|
+
import cn from "monaco-editor/esm/vs/language/json/json.worker?worker";
|
|
16
|
+
import un from "monaco-editor/esm/vs/language/typescript/ts.worker?worker";
|
|
17
|
+
import { useModals as nr, closeAllModals as ln } from "@mantine/modals";
|
|
18
|
+
function fn(e) {
|
|
14
19
|
e = e || {};
|
|
15
20
|
const r = Object.keys(e).sort(), t = [];
|
|
16
21
|
for (let o = 0; o < r.length; o++) {
|
|
@@ -29,8 +34,8 @@ function an(e) {
|
|
|
29
34
|
}
|
|
30
35
|
return t.sort().join("&");
|
|
31
36
|
}
|
|
32
|
-
function
|
|
33
|
-
let t =
|
|
37
|
+
function dn(e, r) {
|
|
38
|
+
let t = fn(e);
|
|
34
39
|
return t += "&key=" + r, en.MD5(t).toString().toUpperCase();
|
|
35
40
|
}
|
|
36
41
|
const ne = {
|
|
@@ -44,7 +49,7 @@ const ne = {
|
|
|
44
49
|
return {
|
|
45
50
|
app_id: this.app_id,
|
|
46
51
|
nonce_str: r,
|
|
47
|
-
sign:
|
|
52
|
+
sign: dn(
|
|
48
53
|
{
|
|
49
54
|
app_id: this.app_id,
|
|
50
55
|
nonce_str: r,
|
|
@@ -75,7 +80,7 @@ const ne = {
|
|
|
75
80
|
function or(e) {
|
|
76
81
|
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);
|
|
77
82
|
}
|
|
78
|
-
const
|
|
83
|
+
const pn = {
|
|
79
84
|
login: async (e, r) => {
|
|
80
85
|
const t = {
|
|
81
86
|
name: e,
|
|
@@ -122,7 +127,7 @@ const cn = {
|
|
|
122
127
|
if (!!e)
|
|
123
128
|
return ne.getRequest("POST")("/account/delete", { id: e });
|
|
124
129
|
}
|
|
125
|
-
},
|
|
130
|
+
}, gn = {
|
|
126
131
|
list: async () => await ne.getRequest("POST")("/api/key/list", {
|
|
127
132
|
filter: {
|
|
128
133
|
search: ""
|
|
@@ -146,7 +151,7 @@ const cn = {
|
|
|
146
151
|
if (!!e)
|
|
147
152
|
return ne.getRequest("POST")("/api/key/delete", { id: e });
|
|
148
153
|
}
|
|
149
|
-
},
|
|
154
|
+
}, hn = {
|
|
150
155
|
list: async () => await ne.getRequest("POST")("/datasource/list", {
|
|
151
156
|
filter: {},
|
|
152
157
|
sort: [
|
|
@@ -168,13 +173,13 @@ const cn = {
|
|
|
168
173
|
delete: async (e) => {
|
|
169
174
|
await ne.getRequest("POST")("/datasource/delete", { id: e });
|
|
170
175
|
}
|
|
171
|
-
},
|
|
176
|
+
}, mn = {
|
|
172
177
|
list: async () => await ne.getRequest("GET")("/role/list", {})
|
|
173
178
|
}, de = {
|
|
174
|
-
datasource:
|
|
175
|
-
account:
|
|
176
|
-
role:
|
|
177
|
-
api_key:
|
|
179
|
+
datasource: hn,
|
|
180
|
+
account: pn,
|
|
181
|
+
role: mn,
|
|
182
|
+
api_key: gn
|
|
178
183
|
}, qe = {
|
|
179
184
|
size: "sm",
|
|
180
185
|
spacing: "md",
|
|
@@ -193,24 +198,24 @@ var ir = { exports: {} }, Le = {};
|
|
|
193
198
|
* LICENSE file in the root directory of this source tree.
|
|
194
199
|
*/
|
|
195
200
|
var Hr;
|
|
196
|
-
function
|
|
201
|
+
function vn() {
|
|
197
202
|
if (Hr)
|
|
198
203
|
return Le;
|
|
199
204
|
Hr = 1;
|
|
200
|
-
var e =
|
|
201
|
-
function c(u, d,
|
|
202
|
-
var
|
|
203
|
-
|
|
204
|
-
for (
|
|
205
|
-
o.call(d,
|
|
205
|
+
var e = ke, 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 };
|
|
206
|
+
function c(u, d, m) {
|
|
207
|
+
var b, h = {}, v = null, x = null;
|
|
208
|
+
m !== void 0 && (v = "" + m), d.key !== void 0 && (v = "" + d.key), d.ref !== void 0 && (x = d.ref);
|
|
209
|
+
for (b in d)
|
|
210
|
+
o.call(d, b) && !i.hasOwnProperty(b) && (h[b] = d[b]);
|
|
206
211
|
if (u && u.defaultProps)
|
|
207
|
-
for (
|
|
208
|
-
h[
|
|
209
|
-
return { $$typeof: r, type: u, key:
|
|
212
|
+
for (b in d = u.defaultProps, d)
|
|
213
|
+
h[b] === void 0 && (h[b] = d[b]);
|
|
214
|
+
return { $$typeof: r, type: u, key: v, ref: x, props: h, _owner: s.current };
|
|
210
215
|
}
|
|
211
216
|
return Le.Fragment = t, Le.jsx = c, Le.jsxs = c, Le;
|
|
212
217
|
}
|
|
213
|
-
var
|
|
218
|
+
var Ue = {};
|
|
214
219
|
/**
|
|
215
220
|
* @license React
|
|
216
221
|
* react-jsx-runtime.development.js
|
|
@@ -221,28 +226,28 @@ var We = {};
|
|
|
221
226
|
* LICENSE file in the root directory of this source tree.
|
|
222
227
|
*/
|
|
223
228
|
var Gr;
|
|
224
|
-
function
|
|
229
|
+
function yn() {
|
|
225
230
|
return Gr || (Gr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
226
|
-
var e =
|
|
231
|
+
var e = ke, 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"), m = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), Y = Symbol.iterator, k = "@@iterator";
|
|
227
232
|
function G(n) {
|
|
228
233
|
if (n === null || typeof n != "object")
|
|
229
234
|
return null;
|
|
230
|
-
var f = Y && n[Y] || n[
|
|
235
|
+
var f = Y && n[Y] || n[k];
|
|
231
236
|
return typeof f == "function" ? f : null;
|
|
232
237
|
}
|
|
233
238
|
var K = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
234
239
|
function D(n) {
|
|
235
240
|
{
|
|
236
|
-
for (var f = arguments.length,
|
|
237
|
-
|
|
238
|
-
H("error", n,
|
|
241
|
+
for (var f = arguments.length, y = new Array(f > 1 ? f - 1 : 0), E = 1; E < f; E++)
|
|
242
|
+
y[E - 1] = arguments[E];
|
|
243
|
+
H("error", n, y);
|
|
239
244
|
}
|
|
240
245
|
}
|
|
241
|
-
function H(n, f,
|
|
246
|
+
function H(n, f, y) {
|
|
242
247
|
{
|
|
243
248
|
var E = K.ReactDebugCurrentFrame, L = E.getStackAddendum();
|
|
244
|
-
L !== "" && (f += "%s",
|
|
245
|
-
var V =
|
|
249
|
+
L !== "" && (f += "%s", y = y.concat([L]));
|
|
250
|
+
var V = y.map(function(q) {
|
|
246
251
|
return String(q);
|
|
247
252
|
});
|
|
248
253
|
V.unshift("Warning: " + f), Function.prototype.apply.call(console[n], console, V);
|
|
@@ -250,17 +255,17 @@ function pn() {
|
|
|
250
255
|
}
|
|
251
256
|
var N = !1, p = !1, X = !1, ee = !1, Se = !1, Q;
|
|
252
257
|
Q = Symbol.for("react.module.reference");
|
|
253
|
-
function
|
|
254
|
-
return !!(typeof n == "string" || typeof n == "function" || n === o || n === i || Se || n === s || n ===
|
|
258
|
+
function $(n) {
|
|
259
|
+
return !!(typeof n == "string" || typeof n == "function" || n === o || n === i || Se || n === s || n === m || n === b || ee || n === x || N || p || X || typeof n == "object" && n !== null && (n.$$typeof === v || n.$$typeof === h || n.$$typeof === c || n.$$typeof === u || n.$$typeof === d || n.$$typeof === Q || n.getModuleId !== void 0));
|
|
255
260
|
}
|
|
256
|
-
function ge(n, f,
|
|
261
|
+
function ge(n, f, y) {
|
|
257
262
|
var E = n.displayName;
|
|
258
263
|
if (E)
|
|
259
264
|
return E;
|
|
260
265
|
var L = f.displayName || f.name || "";
|
|
261
|
-
return L !== "" ?
|
|
266
|
+
return L !== "" ? y + "(" + L + ")" : y;
|
|
262
267
|
}
|
|
263
|
-
function
|
|
268
|
+
function ye(n) {
|
|
264
269
|
return n.displayName || "Context";
|
|
265
270
|
}
|
|
266
271
|
function ie(n) {
|
|
@@ -279,25 +284,25 @@ function pn() {
|
|
|
279
284
|
return "Profiler";
|
|
280
285
|
case s:
|
|
281
286
|
return "StrictMode";
|
|
282
|
-
case
|
|
287
|
+
case m:
|
|
283
288
|
return "Suspense";
|
|
284
|
-
case
|
|
289
|
+
case b:
|
|
285
290
|
return "SuspenseList";
|
|
286
291
|
}
|
|
287
292
|
if (typeof n == "object")
|
|
288
293
|
switch (n.$$typeof) {
|
|
289
294
|
case u:
|
|
290
295
|
var f = n;
|
|
291
|
-
return
|
|
296
|
+
return ye(f) + ".Consumer";
|
|
292
297
|
case c:
|
|
293
|
-
var
|
|
294
|
-
return
|
|
298
|
+
var y = n;
|
|
299
|
+
return ye(y._context) + ".Provider";
|
|
295
300
|
case d:
|
|
296
301
|
return ge(n, n.render, "ForwardRef");
|
|
297
302
|
case h:
|
|
298
303
|
var E = n.displayName || null;
|
|
299
304
|
return E !== null ? E : ie(n.type) || "Memo";
|
|
300
|
-
case
|
|
305
|
+
case v: {
|
|
301
306
|
var L = n, V = L._payload, q = L._init;
|
|
302
307
|
try {
|
|
303
308
|
return ie(q(V));
|
|
@@ -308,7 +313,7 @@ function pn() {
|
|
|
308
313
|
}
|
|
309
314
|
return null;
|
|
310
315
|
}
|
|
311
|
-
var
|
|
316
|
+
var z = Object.assign, B = 0, te, pe, Ee, Pe, l, g, T;
|
|
312
317
|
function O() {
|
|
313
318
|
}
|
|
314
319
|
O.__reactDisabledLog = !0;
|
|
@@ -344,25 +349,25 @@ function pn() {
|
|
|
344
349
|
writable: !0
|
|
345
350
|
};
|
|
346
351
|
Object.defineProperties(console, {
|
|
347
|
-
log:
|
|
352
|
+
log: z({}, n, {
|
|
348
353
|
value: te
|
|
349
354
|
}),
|
|
350
|
-
info:
|
|
355
|
+
info: z({}, n, {
|
|
351
356
|
value: pe
|
|
352
357
|
}),
|
|
353
|
-
warn:
|
|
358
|
+
warn: z({}, n, {
|
|
354
359
|
value: Ee
|
|
355
360
|
}),
|
|
356
|
-
error:
|
|
361
|
+
error: z({}, n, {
|
|
357
362
|
value: Pe
|
|
358
363
|
}),
|
|
359
|
-
group:
|
|
364
|
+
group: z({}, n, {
|
|
360
365
|
value: l
|
|
361
366
|
}),
|
|
362
|
-
groupCollapsed:
|
|
367
|
+
groupCollapsed: z({}, n, {
|
|
363
368
|
value: g
|
|
364
369
|
}),
|
|
365
|
-
groupEnd:
|
|
370
|
+
groupEnd: z({}, n, {
|
|
366
371
|
value: T
|
|
367
372
|
})
|
|
368
373
|
});
|
|
@@ -371,7 +376,7 @@ function pn() {
|
|
|
371
376
|
}
|
|
372
377
|
}
|
|
373
378
|
var R = K.ReactCurrentDispatcher, _;
|
|
374
|
-
function j(n, f,
|
|
379
|
+
function j(n, f, y) {
|
|
375
380
|
{
|
|
376
381
|
if (_ === void 0)
|
|
377
382
|
try {
|
|
@@ -384,21 +389,21 @@ function pn() {
|
|
|
384
389
|
` + _ + n;
|
|
385
390
|
}
|
|
386
391
|
}
|
|
387
|
-
var
|
|
392
|
+
var F = !1, A;
|
|
388
393
|
{
|
|
389
394
|
var ae = typeof WeakMap == "function" ? WeakMap : Map;
|
|
390
395
|
A = new ae();
|
|
391
396
|
}
|
|
392
397
|
function w(n, f) {
|
|
393
|
-
if (!n ||
|
|
398
|
+
if (!n || F)
|
|
394
399
|
return "";
|
|
395
400
|
{
|
|
396
|
-
var
|
|
397
|
-
if (
|
|
398
|
-
return
|
|
401
|
+
var y = A.get(n);
|
|
402
|
+
if (y !== void 0)
|
|
403
|
+
return y;
|
|
399
404
|
}
|
|
400
405
|
var E;
|
|
401
|
-
|
|
406
|
+
F = !0;
|
|
402
407
|
var L = Error.prepareStackTrace;
|
|
403
408
|
Error.prepareStackTrace = void 0;
|
|
404
409
|
var V;
|
|
@@ -446,28 +451,28 @@ function pn() {
|
|
|
446
451
|
if (Z !== 1 || re !== 1)
|
|
447
452
|
do
|
|
448
453
|
if (Z--, re--, re < 0 || M[Z] !== ce[re]) {
|
|
449
|
-
var
|
|
454
|
+
var me = `
|
|
450
455
|
` + M[Z].replace(" at new ", " at ");
|
|
451
|
-
return n.displayName &&
|
|
456
|
+
return n.displayName && me.includes("<anonymous>") && (me = me.replace("<anonymous>", n.displayName)), typeof n == "function" && A.set(n, me), me;
|
|
452
457
|
}
|
|
453
458
|
while (Z >= 1 && re >= 0);
|
|
454
459
|
break;
|
|
455
460
|
}
|
|
456
461
|
}
|
|
457
462
|
} finally {
|
|
458
|
-
|
|
463
|
+
F = !1, R.current = V, C(), Error.prepareStackTrace = L;
|
|
459
464
|
}
|
|
460
465
|
var Me = n ? n.displayName || n.name : "", Kr = Me ? j(Me) : "";
|
|
461
466
|
return typeof n == "function" && A.set(n, Kr), Kr;
|
|
462
467
|
}
|
|
463
|
-
function he(n, f,
|
|
468
|
+
function he(n, f, y) {
|
|
464
469
|
return w(n, !1);
|
|
465
470
|
}
|
|
466
471
|
function je(n) {
|
|
467
472
|
var f = n.prototype;
|
|
468
473
|
return !!(f && f.isReactComponent);
|
|
469
474
|
}
|
|
470
|
-
function Ce(n, f,
|
|
475
|
+
function Ce(n, f, y) {
|
|
471
476
|
if (n == null)
|
|
472
477
|
return "";
|
|
473
478
|
if (typeof n == "function")
|
|
@@ -475,9 +480,9 @@ function pn() {
|
|
|
475
480
|
if (typeof n == "string")
|
|
476
481
|
return j(n);
|
|
477
482
|
switch (n) {
|
|
478
|
-
case
|
|
483
|
+
case m:
|
|
479
484
|
return j("Suspense");
|
|
480
|
-
case
|
|
485
|
+
case b:
|
|
481
486
|
return j("SuspenseList");
|
|
482
487
|
}
|
|
483
488
|
if (typeof n == "object")
|
|
@@ -485,26 +490,26 @@ function pn() {
|
|
|
485
490
|
case d:
|
|
486
491
|
return he(n.render);
|
|
487
492
|
case h:
|
|
488
|
-
return Ce(n.type, f,
|
|
489
|
-
case
|
|
493
|
+
return Ce(n.type, f, y);
|
|
494
|
+
case v: {
|
|
490
495
|
var E = n, L = E._payload, V = E._init;
|
|
491
496
|
try {
|
|
492
|
-
return Ce(V(L), f,
|
|
497
|
+
return Ce(V(L), f, y);
|
|
493
498
|
} catch {
|
|
494
499
|
}
|
|
495
500
|
}
|
|
496
501
|
}
|
|
497
502
|
return "";
|
|
498
503
|
}
|
|
499
|
-
var He = Object.prototype.hasOwnProperty,
|
|
504
|
+
var He = Object.prototype.hasOwnProperty, kr = {}, Dr = K.ReactDebugCurrentFrame;
|
|
500
505
|
function Ge(n) {
|
|
501
506
|
if (n) {
|
|
502
|
-
var f = n._owner,
|
|
503
|
-
Dr.setExtraStackFrame(
|
|
507
|
+
var f = n._owner, y = Ce(n.type, n._source, f ? f.type : null);
|
|
508
|
+
Dr.setExtraStackFrame(y);
|
|
504
509
|
} else
|
|
505
510
|
Dr.setExtraStackFrame(null);
|
|
506
511
|
}
|
|
507
|
-
function Pt(n, f,
|
|
512
|
+
function Pt(n, f, y, E, L) {
|
|
508
513
|
{
|
|
509
514
|
var V = Function.call.bind(He);
|
|
510
515
|
for (var q in n)
|
|
@@ -512,14 +517,14 @@ function pn() {
|
|
|
512
517
|
var M = void 0;
|
|
513
518
|
try {
|
|
514
519
|
if (typeof n[q] != "function") {
|
|
515
|
-
var ce = Error((E || "React class") + ": " +
|
|
520
|
+
var ce = Error((E || "React class") + ": " + y + " type `" + q + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[q] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
516
521
|
throw ce.name = "Invariant Violation", ce;
|
|
517
522
|
}
|
|
518
|
-
M = n[q](f, q, E,
|
|
523
|
+
M = n[q](f, q, E, y, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
519
524
|
} catch (Z) {
|
|
520
525
|
M = Z;
|
|
521
526
|
}
|
|
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",
|
|
527
|
+
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", y, q, typeof M), Ge(null)), M instanceof Error && !(M.message in kr) && (kr[M.message] = !0, Ge(L), D("Failed %s type: %s", y, M.message), Ge(null));
|
|
523
528
|
}
|
|
524
529
|
}
|
|
525
530
|
}
|
|
@@ -529,8 +534,8 @@ function pn() {
|
|
|
529
534
|
}
|
|
530
535
|
function _t(n) {
|
|
531
536
|
{
|
|
532
|
-
var f = typeof Symbol == "function" && Symbol.toStringTag,
|
|
533
|
-
return
|
|
537
|
+
var f = typeof Symbol == "function" && Symbol.toStringTag, y = f && n[Symbol.toStringTag] || n.constructor.name || "Object";
|
|
538
|
+
return y;
|
|
534
539
|
}
|
|
535
540
|
}
|
|
536
541
|
function xt(n) {
|
|
@@ -543,16 +548,16 @@ function pn() {
|
|
|
543
548
|
function qr(n) {
|
|
544
549
|
return "" + n;
|
|
545
550
|
}
|
|
546
|
-
function
|
|
551
|
+
function Fr(n) {
|
|
547
552
|
if (xt(n))
|
|
548
553
|
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);
|
|
549
554
|
}
|
|
550
|
-
var
|
|
555
|
+
var Fe = K.ReactCurrentOwner, Ct = {
|
|
551
556
|
key: !0,
|
|
552
557
|
ref: !0,
|
|
553
558
|
__self: !0,
|
|
554
559
|
__source: !0
|
|
555
|
-
},
|
|
560
|
+
}, $r, Lr, ur;
|
|
556
561
|
ur = {};
|
|
557
562
|
function jt(n) {
|
|
558
563
|
if (He.call(n, "ref")) {
|
|
@@ -571,39 +576,39 @@ function pn() {
|
|
|
571
576
|
return n.key !== void 0;
|
|
572
577
|
}
|
|
573
578
|
function Mt(n, f) {
|
|
574
|
-
if (typeof n.ref == "string" &&
|
|
575
|
-
var
|
|
576
|
-
ur[
|
|
579
|
+
if (typeof n.ref == "string" && Fe.current && f && Fe.current.stateNode !== f) {
|
|
580
|
+
var y = ie(Fe.current.type);
|
|
581
|
+
ur[y] || (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(Fe.current.type), n.ref), ur[y] = !0);
|
|
577
582
|
}
|
|
578
583
|
}
|
|
579
584
|
function It(n, f) {
|
|
580
585
|
{
|
|
581
|
-
var
|
|
582
|
-
|
|
586
|
+
var y = function() {
|
|
587
|
+
$r || ($r = !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));
|
|
583
588
|
};
|
|
584
|
-
|
|
585
|
-
get:
|
|
589
|
+
y.isReactWarning = !0, Object.defineProperty(n, "key", {
|
|
590
|
+
get: y,
|
|
586
591
|
configurable: !0
|
|
587
592
|
});
|
|
588
593
|
}
|
|
589
594
|
}
|
|
590
|
-
function
|
|
595
|
+
function zt(n, f) {
|
|
591
596
|
{
|
|
592
|
-
var
|
|
597
|
+
var y = function() {
|
|
593
598
|
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));
|
|
594
599
|
};
|
|
595
|
-
|
|
596
|
-
get:
|
|
600
|
+
y.isReactWarning = !0, Object.defineProperty(n, "ref", {
|
|
601
|
+
get: y,
|
|
597
602
|
configurable: !0
|
|
598
603
|
});
|
|
599
604
|
}
|
|
600
605
|
}
|
|
601
|
-
var
|
|
606
|
+
var kt = function(n, f, y, E, L, V, q) {
|
|
602
607
|
var M = {
|
|
603
608
|
$$typeof: r,
|
|
604
609
|
type: n,
|
|
605
610
|
key: f,
|
|
606
|
-
ref:
|
|
611
|
+
ref: y,
|
|
607
612
|
props: q,
|
|
608
613
|
_owner: V
|
|
609
614
|
};
|
|
@@ -624,10 +629,10 @@ function pn() {
|
|
|
624
629
|
value: L
|
|
625
630
|
}), Object.freeze && (Object.freeze(M.props), Object.freeze(M)), M;
|
|
626
631
|
};
|
|
627
|
-
function Dt(n, f,
|
|
632
|
+
function Dt(n, f, y, E, L) {
|
|
628
633
|
{
|
|
629
634
|
var V, q = {}, M = null, ce = null;
|
|
630
|
-
|
|
635
|
+
y !== void 0 && (Fr(y), M = "" + y), At(f) && (Fr(f.key), M = "" + f.key), jt(f) && (ce = f.ref, Mt(f, L));
|
|
631
636
|
for (V in f)
|
|
632
637
|
He.call(f, V) && !Ct.hasOwnProperty(V) && (q[V] = f[V]);
|
|
633
638
|
if (n && n.defaultProps) {
|
|
@@ -637,25 +642,25 @@ function pn() {
|
|
|
637
642
|
}
|
|
638
643
|
if (M || ce) {
|
|
639
644
|
var re = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
|
|
640
|
-
M && It(q, re), ce &&
|
|
645
|
+
M && It(q, re), ce && zt(q, re);
|
|
641
646
|
}
|
|
642
|
-
return
|
|
647
|
+
return kt(n, M, ce, L, E, Fe.current, q);
|
|
643
648
|
}
|
|
644
649
|
}
|
|
645
|
-
var lr = K.ReactCurrentOwner,
|
|
650
|
+
var lr = K.ReactCurrentOwner, Ur = K.ReactDebugCurrentFrame;
|
|
646
651
|
function Ae(n) {
|
|
647
652
|
if (n) {
|
|
648
|
-
var f = n._owner,
|
|
649
|
-
|
|
653
|
+
var f = n._owner, y = Ce(n.type, n._source, f ? f.type : null);
|
|
654
|
+
Ur.setExtraStackFrame(y);
|
|
650
655
|
} else
|
|
651
|
-
|
|
656
|
+
Ur.setExtraStackFrame(null);
|
|
652
657
|
}
|
|
653
658
|
var fr;
|
|
654
659
|
fr = !1;
|
|
655
660
|
function dr(n) {
|
|
656
661
|
return typeof n == "object" && n !== null && n.$$typeof === r;
|
|
657
662
|
}
|
|
658
|
-
function
|
|
663
|
+
function Wr() {
|
|
659
664
|
{
|
|
660
665
|
if (lr.current) {
|
|
661
666
|
var n = ie(lr.current.type);
|
|
@@ -670,23 +675,23 @@ Check the render method of \`` + n + "`.";
|
|
|
670
675
|
function qt(n) {
|
|
671
676
|
{
|
|
672
677
|
if (n !== void 0) {
|
|
673
|
-
var f = n.fileName.replace(/^.*[\\\/]/, ""),
|
|
678
|
+
var f = n.fileName.replace(/^.*[\\\/]/, ""), y = n.lineNumber;
|
|
674
679
|
return `
|
|
675
680
|
|
|
676
|
-
Check your code at ` + f + ":" +
|
|
681
|
+
Check your code at ` + f + ":" + y + ".";
|
|
677
682
|
}
|
|
678
683
|
return "";
|
|
679
684
|
}
|
|
680
685
|
}
|
|
681
686
|
var Yr = {};
|
|
682
|
-
function
|
|
687
|
+
function Ft(n) {
|
|
683
688
|
{
|
|
684
|
-
var f =
|
|
689
|
+
var f = Wr();
|
|
685
690
|
if (!f) {
|
|
686
|
-
var
|
|
687
|
-
|
|
691
|
+
var y = typeof n == "string" ? n : n.displayName || n.name;
|
|
692
|
+
y && (f = `
|
|
688
693
|
|
|
689
|
-
Check the top-level render call using <` +
|
|
694
|
+
Check the top-level render call using <` + y + ">.");
|
|
690
695
|
}
|
|
691
696
|
return f;
|
|
692
697
|
}
|
|
@@ -696,12 +701,12 @@ Check the top-level render call using <` + b + ">.");
|
|
|
696
701
|
if (!n._store || n._store.validated || n.key != null)
|
|
697
702
|
return;
|
|
698
703
|
n._store.validated = !0;
|
|
699
|
-
var
|
|
700
|
-
if (Yr[
|
|
704
|
+
var y = Ft(f);
|
|
705
|
+
if (Yr[y])
|
|
701
706
|
return;
|
|
702
|
-
Yr[
|
|
707
|
+
Yr[y] = !0;
|
|
703
708
|
var E = "";
|
|
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.',
|
|
709
|
+
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.', y, E), Ae(null);
|
|
705
710
|
}
|
|
706
711
|
}
|
|
707
712
|
function Vr(n, f) {
|
|
@@ -709,8 +714,8 @@ Check the top-level render call using <` + b + ">.");
|
|
|
709
714
|
if (typeof n != "object")
|
|
710
715
|
return;
|
|
711
716
|
if (cr(n))
|
|
712
|
-
for (var
|
|
713
|
-
var E = n[
|
|
717
|
+
for (var y = 0; y < n.length; y++) {
|
|
718
|
+
var E = n[y];
|
|
714
719
|
dr(E) && Nr(E, f);
|
|
715
720
|
}
|
|
716
721
|
else if (dr(n))
|
|
@@ -723,21 +728,21 @@ Check the top-level render call using <` + b + ">.");
|
|
|
723
728
|
}
|
|
724
729
|
}
|
|
725
730
|
}
|
|
726
|
-
function
|
|
731
|
+
function $t(n) {
|
|
727
732
|
{
|
|
728
733
|
var f = n.type;
|
|
729
734
|
if (f == null || typeof f == "string")
|
|
730
735
|
return;
|
|
731
|
-
var
|
|
736
|
+
var y;
|
|
732
737
|
if (typeof f == "function")
|
|
733
|
-
|
|
738
|
+
y = f.propTypes;
|
|
734
739
|
else if (typeof f == "object" && (f.$$typeof === d || f.$$typeof === h))
|
|
735
|
-
|
|
740
|
+
y = f.propTypes;
|
|
736
741
|
else
|
|
737
742
|
return;
|
|
738
|
-
if (
|
|
743
|
+
if (y) {
|
|
739
744
|
var E = ie(f);
|
|
740
|
-
Pt(
|
|
745
|
+
Pt(y, n.props, "prop", E, n);
|
|
741
746
|
} else if (f.PropTypes !== void 0 && !fr) {
|
|
742
747
|
fr = !0;
|
|
743
748
|
var L = ie(f);
|
|
@@ -748,8 +753,8 @@ Check the top-level render call using <` + b + ">.");
|
|
|
748
753
|
}
|
|
749
754
|
function Lt(n) {
|
|
750
755
|
{
|
|
751
|
-
for (var f = Object.keys(n.props),
|
|
752
|
-
var E = f[
|
|
756
|
+
for (var f = Object.keys(n.props), y = 0; y < f.length; y++) {
|
|
757
|
+
var E = f[y];
|
|
753
758
|
if (E !== "children" && E !== "key") {
|
|
754
759
|
Ae(n), D("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", E), Ae(null);
|
|
755
760
|
break;
|
|
@@ -758,51 +763,51 @@ Check the top-level render call using <` + b + ">.");
|
|
|
758
763
|
n.ref !== null && (Ae(n), D("Invalid attribute `ref` supplied to `React.Fragment`."), Ae(null));
|
|
759
764
|
}
|
|
760
765
|
}
|
|
761
|
-
function Br(n, f,
|
|
766
|
+
function Br(n, f, y, E, L, V) {
|
|
762
767
|
{
|
|
763
|
-
var q =
|
|
768
|
+
var q = $(n);
|
|
764
769
|
if (!q) {
|
|
765
770
|
var M = "";
|
|
766
771
|
(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.");
|
|
767
772
|
var ce = qt(L);
|
|
768
|
-
ce ? M += ce : M +=
|
|
773
|
+
ce ? M += ce : M += Wr();
|
|
769
774
|
var Z;
|
|
770
775
|
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);
|
|
771
776
|
}
|
|
772
|
-
var re = Dt(n, f,
|
|
777
|
+
var re = Dt(n, f, y, L, V);
|
|
773
778
|
if (re == null)
|
|
774
779
|
return re;
|
|
775
780
|
if (q) {
|
|
776
|
-
var
|
|
777
|
-
if (
|
|
781
|
+
var me = f.children;
|
|
782
|
+
if (me !== void 0)
|
|
778
783
|
if (E)
|
|
779
|
-
if (cr(
|
|
780
|
-
for (var Me = 0; Me <
|
|
781
|
-
Vr(
|
|
782
|
-
Object.freeze && Object.freeze(
|
|
784
|
+
if (cr(me)) {
|
|
785
|
+
for (var Me = 0; Me < me.length; Me++)
|
|
786
|
+
Vr(me[Me], n);
|
|
787
|
+
Object.freeze && Object.freeze(me);
|
|
783
788
|
} else
|
|
784
789
|
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.");
|
|
785
790
|
else
|
|
786
|
-
Vr(
|
|
791
|
+
Vr(me, n);
|
|
787
792
|
}
|
|
788
|
-
return n === o ? Lt(re) :
|
|
793
|
+
return n === o ? Lt(re) : $t(re), re;
|
|
789
794
|
}
|
|
790
795
|
}
|
|
791
|
-
function
|
|
792
|
-
return Br(n, f,
|
|
796
|
+
function Ut(n, f, y) {
|
|
797
|
+
return Br(n, f, y, !0);
|
|
793
798
|
}
|
|
794
|
-
function
|
|
795
|
-
return Br(n, f,
|
|
799
|
+
function Wt(n, f, y) {
|
|
800
|
+
return Br(n, f, y, !1);
|
|
796
801
|
}
|
|
797
|
-
var Yt =
|
|
798
|
-
|
|
799
|
-
}()),
|
|
802
|
+
var Yt = Wt, Nt = Ut;
|
|
803
|
+
Ue.Fragment = o, Ue.jsx = Yt, Ue.jsxs = Nt;
|
|
804
|
+
}()), Ue;
|
|
800
805
|
}
|
|
801
806
|
(function(e) {
|
|
802
|
-
process.env.NODE_ENV === "production" ? e.exports =
|
|
807
|
+
process.env.NODE_ENV === "production" ? e.exports = vn() : e.exports = yn();
|
|
803
808
|
})(ir);
|
|
804
809
|
const Oe = ir.exports.Fragment, a = ir.exports.jsx, I = ir.exports.jsxs;
|
|
805
|
-
function
|
|
810
|
+
function bn({
|
|
806
811
|
submit: e,
|
|
807
812
|
styles: r = qe,
|
|
808
813
|
type: t
|
|
@@ -826,7 +831,7 @@ function gn({
|
|
|
826
831
|
});
|
|
827
832
|
return we(() => {
|
|
828
833
|
s("type", t);
|
|
829
|
-
}, [s, t]), /* @__PURE__ */ a(
|
|
834
|
+
}, [s, t]), /* @__PURE__ */ a(ve, {
|
|
830
835
|
mx: "auto",
|
|
831
836
|
children: /* @__PURE__ */ I("form", {
|
|
832
837
|
onSubmit: i(e),
|
|
@@ -928,7 +933,7 @@ function gn({
|
|
|
928
933
|
})
|
|
929
934
|
});
|
|
930
935
|
}
|
|
931
|
-
function
|
|
936
|
+
function wn(e, r, t) {
|
|
932
937
|
return r in e ? Object.defineProperty(e, r, {
|
|
933
938
|
value: t,
|
|
934
939
|
enumerable: !0,
|
|
@@ -950,14 +955,14 @@ function Xr(e) {
|
|
|
950
955
|
for (var r = 1; r < arguments.length; r++) {
|
|
951
956
|
var t = arguments[r] != null ? arguments[r] : {};
|
|
952
957
|
r % 2 ? Jr(Object(t), !0).forEach(function(o) {
|
|
953
|
-
|
|
958
|
+
wn(e, o, t[o]);
|
|
954
959
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Jr(Object(t)).forEach(function(o) {
|
|
955
960
|
Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(t, o));
|
|
956
961
|
});
|
|
957
962
|
}
|
|
958
963
|
return e;
|
|
959
964
|
}
|
|
960
|
-
function
|
|
965
|
+
function Sn(e, r) {
|
|
961
966
|
if (e == null)
|
|
962
967
|
return {};
|
|
963
968
|
var t = {}, o = Object.keys(e), s, i;
|
|
@@ -965,10 +970,10 @@ function vn(e, r) {
|
|
|
965
970
|
s = o[i], !(r.indexOf(s) >= 0) && (t[s] = e[s]);
|
|
966
971
|
return t;
|
|
967
972
|
}
|
|
968
|
-
function
|
|
973
|
+
function En(e, r) {
|
|
969
974
|
if (e == null)
|
|
970
975
|
return {};
|
|
971
|
-
var t =
|
|
976
|
+
var t = Sn(e, r), o, s;
|
|
972
977
|
if (Object.getOwnPropertySymbols) {
|
|
973
978
|
var i = Object.getOwnPropertySymbols(e);
|
|
974
979
|
for (s = 0; s < i.length; s++)
|
|
@@ -976,14 +981,14 @@ function mn(e, r) {
|
|
|
976
981
|
}
|
|
977
982
|
return t;
|
|
978
983
|
}
|
|
979
|
-
function
|
|
980
|
-
return
|
|
984
|
+
function Tn(e, r) {
|
|
985
|
+
return On(e) || Pn(e, r) || Rn(e, r) || _n();
|
|
981
986
|
}
|
|
982
|
-
function
|
|
987
|
+
function On(e) {
|
|
983
988
|
if (Array.isArray(e))
|
|
984
989
|
return e;
|
|
985
990
|
}
|
|
986
|
-
function
|
|
991
|
+
function Pn(e, r) {
|
|
987
992
|
if (!(typeof Symbol > "u" || !(Symbol.iterator in Object(e)))) {
|
|
988
993
|
var t = [], o = !0, s = !1, i = void 0;
|
|
989
994
|
try {
|
|
@@ -1002,7 +1007,7 @@ function wn(e, r) {
|
|
|
1002
1007
|
return t;
|
|
1003
1008
|
}
|
|
1004
1009
|
}
|
|
1005
|
-
function
|
|
1010
|
+
function Rn(e, r) {
|
|
1006
1011
|
if (!!e) {
|
|
1007
1012
|
if (typeof e == "string")
|
|
1008
1013
|
return Qr(e, r);
|
|
@@ -1019,11 +1024,11 @@ function Qr(e, r) {
|
|
|
1019
1024
|
o[t] = e[t];
|
|
1020
1025
|
return o;
|
|
1021
1026
|
}
|
|
1022
|
-
function
|
|
1027
|
+
function _n() {
|
|
1023
1028
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1024
1029
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1025
1030
|
}
|
|
1026
|
-
function
|
|
1031
|
+
function xn(e, r, t) {
|
|
1027
1032
|
return r in e ? Object.defineProperty(e, r, {
|
|
1028
1033
|
value: t,
|
|
1029
1034
|
enumerable: !0,
|
|
@@ -1045,14 +1050,14 @@ function et(e) {
|
|
|
1045
1050
|
for (var r = 1; r < arguments.length; r++) {
|
|
1046
1051
|
var t = arguments[r] != null ? arguments[r] : {};
|
|
1047
1052
|
r % 2 ? Zr(Object(t), !0).forEach(function(o) {
|
|
1048
|
-
|
|
1053
|
+
xn(e, o, t[o]);
|
|
1049
1054
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Zr(Object(t)).forEach(function(o) {
|
|
1050
1055
|
Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(t, o));
|
|
1051
1056
|
});
|
|
1052
1057
|
}
|
|
1053
1058
|
return e;
|
|
1054
1059
|
}
|
|
1055
|
-
function
|
|
1060
|
+
function Cn() {
|
|
1056
1061
|
for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
|
|
1057
1062
|
r[t] = arguments[t];
|
|
1058
1063
|
return function(o) {
|
|
@@ -1061,7 +1066,7 @@ function On() {
|
|
|
1061
1066
|
}, o);
|
|
1062
1067
|
};
|
|
1063
1068
|
}
|
|
1064
|
-
function
|
|
1069
|
+
function We(e) {
|
|
1065
1070
|
return function r() {
|
|
1066
1071
|
for (var t = this, o = arguments.length, s = new Array(o), i = 0; i < o; i++)
|
|
1067
1072
|
s[i] = arguments[i];
|
|
@@ -1075,35 +1080,35 @@ function Ue(e) {
|
|
|
1075
1080
|
function er(e) {
|
|
1076
1081
|
return {}.toString.call(e).includes("Object");
|
|
1077
1082
|
}
|
|
1078
|
-
function
|
|
1083
|
+
function jn(e) {
|
|
1079
1084
|
return !Object.keys(e).length;
|
|
1080
1085
|
}
|
|
1081
1086
|
function Ve(e) {
|
|
1082
1087
|
return typeof e == "function";
|
|
1083
1088
|
}
|
|
1084
|
-
function
|
|
1089
|
+
function An(e, r) {
|
|
1085
1090
|
return Object.prototype.hasOwnProperty.call(e, r);
|
|
1086
1091
|
}
|
|
1087
|
-
function
|
|
1092
|
+
function Mn(e, r) {
|
|
1088
1093
|
return er(r) || Re("changeType"), Object.keys(r).some(function(t) {
|
|
1089
|
-
return !
|
|
1094
|
+
return !An(e, t);
|
|
1090
1095
|
}) && Re("changeField"), r;
|
|
1091
1096
|
}
|
|
1092
|
-
function
|
|
1097
|
+
function In(e) {
|
|
1093
1098
|
Ve(e) || Re("selectorType");
|
|
1094
1099
|
}
|
|
1095
|
-
function
|
|
1100
|
+
function zn(e) {
|
|
1096
1101
|
Ve(e) || er(e) || Re("handlerType"), er(e) && Object.values(e).some(function(r) {
|
|
1097
1102
|
return !Ve(r);
|
|
1098
1103
|
}) && Re("handlersType");
|
|
1099
1104
|
}
|
|
1100
|
-
function
|
|
1101
|
-
e || Re("initialIsRequired"), er(e) || Re("initialType"),
|
|
1105
|
+
function kn(e) {
|
|
1106
|
+
e || Re("initialIsRequired"), er(e) || Re("initialType"), jn(e) && Re("initialContent");
|
|
1102
1107
|
}
|
|
1103
|
-
function
|
|
1108
|
+
function Dn(e, r) {
|
|
1104
1109
|
throw new Error(e[r] || e.default);
|
|
1105
1110
|
}
|
|
1106
|
-
var
|
|
1111
|
+
var qn = {
|
|
1107
1112
|
initialIsRequired: "initial state is required",
|
|
1108
1113
|
initialType: "initial state should be an object",
|
|
1109
1114
|
initialContent: "initial state shouldn't be an empty object",
|
|
@@ -1113,49 +1118,49 @@ var Mn = {
|
|
|
1113
1118
|
changeType: "provided value of changes should be an object",
|
|
1114
1119
|
changeField: 'it seams you want to change a field in the state which is not specified in the "initial" state',
|
|
1115
1120
|
default: "an unknown error accured in `state-local` package"
|
|
1116
|
-
}, Re =
|
|
1117
|
-
changes:
|
|
1118
|
-
selector:
|
|
1119
|
-
handler:
|
|
1120
|
-
initial:
|
|
1121
|
+
}, Re = We(Dn)(qn), Je = {
|
|
1122
|
+
changes: Mn,
|
|
1123
|
+
selector: In,
|
|
1124
|
+
handler: zn,
|
|
1125
|
+
initial: kn
|
|
1121
1126
|
};
|
|
1122
|
-
function
|
|
1127
|
+
function Fn(e) {
|
|
1123
1128
|
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1124
1129
|
Je.initial(e), Je.handler(r);
|
|
1125
1130
|
var t = {
|
|
1126
1131
|
current: e
|
|
1127
|
-
}, o =
|
|
1132
|
+
}, o = We(Un)(t, r), s = We(Ln)(t), i = We(Je.changes)(e), c = We($n)(t);
|
|
1128
1133
|
function u() {
|
|
1129
|
-
var
|
|
1130
|
-
return
|
|
1134
|
+
var m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function(b) {
|
|
1135
|
+
return b;
|
|
1131
1136
|
};
|
|
1132
|
-
return Je.selector(
|
|
1137
|
+
return Je.selector(m), m(t.current);
|
|
1133
1138
|
}
|
|
1134
|
-
function d(
|
|
1135
|
-
|
|
1139
|
+
function d(m) {
|
|
1140
|
+
Cn(o, s, i, c)(m);
|
|
1136
1141
|
}
|
|
1137
1142
|
return [u, d];
|
|
1138
1143
|
}
|
|
1139
|
-
function
|
|
1144
|
+
function $n(e, r) {
|
|
1140
1145
|
return Ve(r) ? r(e.current) : r;
|
|
1141
1146
|
}
|
|
1142
|
-
function
|
|
1147
|
+
function Ln(e, r) {
|
|
1143
1148
|
return e.current = et(et({}, e.current), r), r;
|
|
1144
1149
|
}
|
|
1145
|
-
function
|
|
1150
|
+
function Un(e, r, t) {
|
|
1146
1151
|
return Ve(r) ? r(e.current) : Object.keys(t).forEach(function(o) {
|
|
1147
1152
|
var s;
|
|
1148
1153
|
return (s = r[o]) === null || s === void 0 ? void 0 : s.call(r, e.current[o]);
|
|
1149
1154
|
}), t;
|
|
1150
1155
|
}
|
|
1151
|
-
var
|
|
1152
|
-
create:
|
|
1153
|
-
},
|
|
1156
|
+
var Wn = {
|
|
1157
|
+
create: Fn
|
|
1158
|
+
}, Yn = {
|
|
1154
1159
|
paths: {
|
|
1155
1160
|
vs: "https://cdn.jsdelivr.net/npm/monaco-editor@0.33.0/min/vs"
|
|
1156
1161
|
}
|
|
1157
1162
|
};
|
|
1158
|
-
function
|
|
1163
|
+
function Nn(e) {
|
|
1159
1164
|
return function r() {
|
|
1160
1165
|
for (var t = this, o = arguments.length, s = new Array(o), i = 0; i < o; i++)
|
|
1161
1166
|
s[i] = arguments[i];
|
|
@@ -1166,20 +1171,20 @@ function Fn(e) {
|
|
|
1166
1171
|
};
|
|
1167
1172
|
};
|
|
1168
1173
|
}
|
|
1169
|
-
function
|
|
1174
|
+
function Vn(e) {
|
|
1170
1175
|
return {}.toString.call(e).includes("Object");
|
|
1171
1176
|
}
|
|
1172
|
-
function
|
|
1173
|
-
return e || rt("configIsRequired"),
|
|
1177
|
+
function Bn(e) {
|
|
1178
|
+
return e || rt("configIsRequired"), Vn(e) || rt("configType"), e.urls ? (Kn(), {
|
|
1174
1179
|
paths: {
|
|
1175
1180
|
vs: e.urls.monacoBase
|
|
1176
1181
|
}
|
|
1177
1182
|
}) : e;
|
|
1178
1183
|
}
|
|
1179
|
-
function
|
|
1184
|
+
function Kn() {
|
|
1180
1185
|
console.warn(gt.deprecation);
|
|
1181
1186
|
}
|
|
1182
|
-
function
|
|
1187
|
+
function Hn(e, r) {
|
|
1183
1188
|
throw new Error(e[r] || e.default);
|
|
1184
1189
|
}
|
|
1185
1190
|
var gt = {
|
|
@@ -1196,9 +1201,9 @@ var gt = {
|
|
|
1196
1201
|
|
|
1197
1202
|
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
1198
1203
|
`
|
|
1199
|
-
}, rt =
|
|
1200
|
-
config:
|
|
1201
|
-
},
|
|
1204
|
+
}, rt = Nn(Hn)(gt), Gn = {
|
|
1205
|
+
config: Bn
|
|
1206
|
+
}, Jn = function() {
|
|
1202
1207
|
for (var r = arguments.length, t = new Array(r), o = 0; o < r; o++)
|
|
1203
1208
|
t[o] = arguments[o];
|
|
1204
1209
|
return function(s) {
|
|
@@ -1212,29 +1217,29 @@ function ht(e, r) {
|
|
|
1212
1217
|
r[t] instanceof Object && e[t] && Object.assign(r[t], ht(e[t], r[t]));
|
|
1213
1218
|
}), Xr(Xr({}, e), r);
|
|
1214
1219
|
}
|
|
1215
|
-
var
|
|
1220
|
+
var Xn = {
|
|
1216
1221
|
type: "cancelation",
|
|
1217
1222
|
msg: "operation is manually canceled"
|
|
1218
1223
|
};
|
|
1219
1224
|
function pr(e) {
|
|
1220
1225
|
var r = !1, t = new Promise(function(o, s) {
|
|
1221
1226
|
e.then(function(i) {
|
|
1222
|
-
return r ? s(
|
|
1227
|
+
return r ? s(Xn) : o(i);
|
|
1223
1228
|
}), e.catch(s);
|
|
1224
1229
|
});
|
|
1225
1230
|
return t.cancel = function() {
|
|
1226
1231
|
return r = !0;
|
|
1227
1232
|
}, t;
|
|
1228
1233
|
}
|
|
1229
|
-
var
|
|
1230
|
-
config:
|
|
1234
|
+
var Qn = Wn.create({
|
|
1235
|
+
config: Yn,
|
|
1231
1236
|
isInitialized: !1,
|
|
1232
1237
|
resolve: null,
|
|
1233
1238
|
reject: null,
|
|
1234
1239
|
monaco: null
|
|
1235
|
-
}),
|
|
1236
|
-
function
|
|
1237
|
-
var r =
|
|
1240
|
+
}), mt = Tn(Qn, 2), Ke = mt[0], ar = mt[1];
|
|
1241
|
+
function Zn(e) {
|
|
1242
|
+
var r = Gn.config(e), t = r.monaco, o = En(r, ["monaco"]);
|
|
1238
1243
|
ar(function(s) {
|
|
1239
1244
|
return {
|
|
1240
1245
|
config: ht(s.config, o),
|
|
@@ -1242,7 +1247,7 @@ function Hn(e) {
|
|
|
1242
1247
|
};
|
|
1243
1248
|
});
|
|
1244
1249
|
}
|
|
1245
|
-
function
|
|
1250
|
+
function eo() {
|
|
1246
1251
|
var e = Ke(function(r) {
|
|
1247
1252
|
var t = r.monaco, o = r.isInitialized, s = r.resolve;
|
|
1248
1253
|
return {
|
|
@@ -1257,31 +1262,31 @@ function Gn() {
|
|
|
1257
1262
|
}), e.monaco)
|
|
1258
1263
|
return e.resolve(e.monaco), pr(gr);
|
|
1259
1264
|
if (window.monaco && window.monaco.editor)
|
|
1260
|
-
return
|
|
1261
|
-
|
|
1265
|
+
return vt(window.monaco), e.resolve(window.monaco), pr(gr);
|
|
1266
|
+
Jn(ro, no)(oo);
|
|
1262
1267
|
}
|
|
1263
1268
|
return pr(gr);
|
|
1264
1269
|
}
|
|
1265
|
-
function
|
|
1270
|
+
function ro(e) {
|
|
1266
1271
|
return document.body.appendChild(e);
|
|
1267
1272
|
}
|
|
1268
|
-
function
|
|
1273
|
+
function to(e) {
|
|
1269
1274
|
var r = document.createElement("script");
|
|
1270
1275
|
return e && (r.src = e), r;
|
|
1271
1276
|
}
|
|
1272
|
-
function
|
|
1277
|
+
function no(e) {
|
|
1273
1278
|
var r = Ke(function(o) {
|
|
1274
1279
|
var s = o.config, i = o.reject;
|
|
1275
1280
|
return {
|
|
1276
1281
|
config: s,
|
|
1277
1282
|
reject: i
|
|
1278
1283
|
};
|
|
1279
|
-
}), t =
|
|
1284
|
+
}), t = to("".concat(r.config.paths.vs, "/loader.js"));
|
|
1280
1285
|
return t.onload = function() {
|
|
1281
1286
|
return e();
|
|
1282
1287
|
}, t.onerror = r.reject, t;
|
|
1283
1288
|
}
|
|
1284
|
-
function
|
|
1289
|
+
function oo() {
|
|
1285
1290
|
var e = Ke(function(t) {
|
|
1286
1291
|
var o = t.config, s = t.resolve, i = t.reject;
|
|
1287
1292
|
return {
|
|
@@ -1291,17 +1296,17 @@ function Zn() {
|
|
|
1291
1296
|
};
|
|
1292
1297
|
}), r = window.require;
|
|
1293
1298
|
r.config(e.config), r(["vs/editor/editor.main"], function(t) {
|
|
1294
|
-
|
|
1299
|
+
vt(t), e.resolve(t);
|
|
1295
1300
|
}, function(t) {
|
|
1296
1301
|
e.reject(t);
|
|
1297
1302
|
});
|
|
1298
1303
|
}
|
|
1299
|
-
function
|
|
1304
|
+
function vt(e) {
|
|
1300
1305
|
Ke().monaco || ar({
|
|
1301
1306
|
monaco: e
|
|
1302
1307
|
});
|
|
1303
1308
|
}
|
|
1304
|
-
function
|
|
1309
|
+
function io() {
|
|
1305
1310
|
return Ke(function(e) {
|
|
1306
1311
|
var r = e.monaco;
|
|
1307
1312
|
return r;
|
|
@@ -1313,10 +1318,10 @@ var gr = new Promise(function(e, r) {
|
|
|
1313
1318
|
reject: r
|
|
1314
1319
|
});
|
|
1315
1320
|
}), Ye = {
|
|
1316
|
-
config:
|
|
1317
|
-
init:
|
|
1318
|
-
__getMonacoInstance:
|
|
1319
|
-
}, S = { exports: {} }, hr = { exports: {} },
|
|
1321
|
+
config: Zn,
|
|
1322
|
+
init: eo,
|
|
1323
|
+
__getMonacoInstance: io
|
|
1324
|
+
}, S = { exports: {} }, hr = { exports: {} }, U = {};
|
|
1320
1325
|
/** @license React v16.13.1
|
|
1321
1326
|
* react-is.production.min.js
|
|
1322
1327
|
*
|
|
@@ -1326,11 +1331,11 @@ var gr = new Promise(function(e, r) {
|
|
|
1326
1331
|
* LICENSE file in the root directory of this source tree.
|
|
1327
1332
|
*/
|
|
1328
1333
|
var tt;
|
|
1329
|
-
function
|
|
1334
|
+
function ao() {
|
|
1330
1335
|
if (tt)
|
|
1331
|
-
return
|
|
1336
|
+
return U;
|
|
1332
1337
|
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,
|
|
1338
|
+
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, m = e ? Symbol.for("react.concurrent_mode") : 60111, b = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, v = e ? Symbol.for("react.suspense_list") : 60120, x = e ? Symbol.for("react.memo") : 60115, Y = e ? Symbol.for("react.lazy") : 60116, k = 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;
|
|
1334
1339
|
function H(p) {
|
|
1335
1340
|
if (typeof p == "object" && p !== null) {
|
|
1336
1341
|
var X = p.$$typeof;
|
|
@@ -1338,7 +1343,7 @@ function ro() {
|
|
|
1338
1343
|
case r:
|
|
1339
1344
|
switch (p = p.type, p) {
|
|
1340
1345
|
case d:
|
|
1341
|
-
case
|
|
1346
|
+
case m:
|
|
1342
1347
|
case o:
|
|
1343
1348
|
case i:
|
|
1344
1349
|
case s:
|
|
@@ -1347,7 +1352,7 @@ function ro() {
|
|
|
1347
1352
|
default:
|
|
1348
1353
|
switch (p = p && p.$$typeof, p) {
|
|
1349
1354
|
case u:
|
|
1350
|
-
case
|
|
1355
|
+
case b:
|
|
1351
1356
|
case Y:
|
|
1352
1357
|
case x:
|
|
1353
1358
|
case c:
|
|
@@ -1362,37 +1367,37 @@ function ro() {
|
|
|
1362
1367
|
}
|
|
1363
1368
|
}
|
|
1364
1369
|
function N(p) {
|
|
1365
|
-
return H(p) ===
|
|
1370
|
+
return H(p) === m;
|
|
1366
1371
|
}
|
|
1367
|
-
return
|
|
1372
|
+
return U.AsyncMode = d, U.ConcurrentMode = m, U.ContextConsumer = u, U.ContextProvider = c, U.Element = r, U.ForwardRef = b, U.Fragment = o, U.Lazy = Y, U.Memo = x, U.Portal = t, U.Profiler = i, U.StrictMode = s, U.Suspense = h, U.isAsyncMode = function(p) {
|
|
1368
1373
|
return N(p) || H(p) === d;
|
|
1369
|
-
},
|
|
1374
|
+
}, U.isConcurrentMode = N, U.isContextConsumer = function(p) {
|
|
1370
1375
|
return H(p) === u;
|
|
1371
|
-
},
|
|
1376
|
+
}, U.isContextProvider = function(p) {
|
|
1372
1377
|
return H(p) === c;
|
|
1373
|
-
},
|
|
1378
|
+
}, U.isElement = function(p) {
|
|
1374
1379
|
return typeof p == "object" && p !== null && p.$$typeof === r;
|
|
1375
|
-
},
|
|
1376
|
-
return H(p) ===
|
|
1377
|
-
},
|
|
1380
|
+
}, U.isForwardRef = function(p) {
|
|
1381
|
+
return H(p) === b;
|
|
1382
|
+
}, U.isFragment = function(p) {
|
|
1378
1383
|
return H(p) === o;
|
|
1379
|
-
},
|
|
1384
|
+
}, U.isLazy = function(p) {
|
|
1380
1385
|
return H(p) === Y;
|
|
1381
|
-
},
|
|
1386
|
+
}, U.isMemo = function(p) {
|
|
1382
1387
|
return H(p) === x;
|
|
1383
|
-
},
|
|
1388
|
+
}, U.isPortal = function(p) {
|
|
1384
1389
|
return H(p) === t;
|
|
1385
|
-
},
|
|
1390
|
+
}, U.isProfiler = function(p) {
|
|
1386
1391
|
return H(p) === i;
|
|
1387
|
-
},
|
|
1392
|
+
}, U.isStrictMode = function(p) {
|
|
1388
1393
|
return H(p) === s;
|
|
1389
|
-
},
|
|
1394
|
+
}, U.isSuspense = function(p) {
|
|
1390
1395
|
return H(p) === h;
|
|
1391
|
-
},
|
|
1392
|
-
return typeof p == "string" || typeof p == "function" || p === o || p ===
|
|
1393
|
-
},
|
|
1396
|
+
}, U.isValidElementType = function(p) {
|
|
1397
|
+
return typeof p == "string" || typeof p == "function" || p === o || p === m || p === i || p === s || p === h || p === v || typeof p == "object" && p !== null && (p.$$typeof === Y || p.$$typeof === x || p.$$typeof === c || p.$$typeof === u || p.$$typeof === b || p.$$typeof === G || p.$$typeof === K || p.$$typeof === D || p.$$typeof === k);
|
|
1398
|
+
}, U.typeOf = H, U;
|
|
1394
1399
|
}
|
|
1395
|
-
var
|
|
1400
|
+
var W = {};
|
|
1396
1401
|
/** @license React v16.13.1
|
|
1397
1402
|
* react-is.development.js
|
|
1398
1403
|
*
|
|
@@ -1402,11 +1407,11 @@ var U = {};
|
|
|
1402
1407
|
* LICENSE file in the root directory of this source tree.
|
|
1403
1408
|
*/
|
|
1404
1409
|
var nt;
|
|
1405
|
-
function
|
|
1410
|
+
function so() {
|
|
1406
1411
|
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,
|
|
1412
|
+
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, m = e ? Symbol.for("react.concurrent_mode") : 60111, b = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, v = e ? Symbol.for("react.suspense_list") : 60120, x = e ? Symbol.for("react.memo") : 60115, Y = e ? Symbol.for("react.lazy") : 60116, k = 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;
|
|
1408
1413
|
function H(w) {
|
|
1409
|
-
return typeof w == "string" || typeof w == "function" || w === o || w ===
|
|
1414
|
+
return typeof w == "string" || typeof w == "function" || w === o || w === m || w === i || w === s || w === h || w === v || typeof w == "object" && w !== null && (w.$$typeof === Y || w.$$typeof === x || w.$$typeof === c || w.$$typeof === u || w.$$typeof === b || w.$$typeof === G || w.$$typeof === K || w.$$typeof === D || w.$$typeof === k);
|
|
1410
1415
|
}
|
|
1411
1416
|
function N(w) {
|
|
1412
1417
|
if (typeof w == "object" && w !== null) {
|
|
@@ -1416,7 +1421,7 @@ function to() {
|
|
|
1416
1421
|
var je = w.type;
|
|
1417
1422
|
switch (je) {
|
|
1418
1423
|
case d:
|
|
1419
|
-
case
|
|
1424
|
+
case m:
|
|
1420
1425
|
case o:
|
|
1421
1426
|
case i:
|
|
1422
1427
|
case s:
|
|
@@ -1426,7 +1431,7 @@ function to() {
|
|
|
1426
1431
|
var Ce = je && je.$$typeof;
|
|
1427
1432
|
switch (Ce) {
|
|
1428
1433
|
case u:
|
|
1429
|
-
case
|
|
1434
|
+
case b:
|
|
1430
1435
|
case Y:
|
|
1431
1436
|
case x:
|
|
1432
1437
|
case c:
|
|
@@ -1440,12 +1445,12 @@ function to() {
|
|
|
1440
1445
|
}
|
|
1441
1446
|
}
|
|
1442
1447
|
}
|
|
1443
|
-
var p = d, X =
|
|
1448
|
+
var p = d, X = m, ee = u, Se = c, Q = r, $ = b, ge = o, ye = Y, ie = x, z = t, B = i, te = s, pe = h, Ee = !1;
|
|
1444
1449
|
function Pe(w) {
|
|
1445
1450
|
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;
|
|
1446
1451
|
}
|
|
1447
1452
|
function l(w) {
|
|
1448
|
-
return N(w) ===
|
|
1453
|
+
return N(w) === m;
|
|
1449
1454
|
}
|
|
1450
1455
|
function g(w) {
|
|
1451
1456
|
return N(w) === u;
|
|
@@ -1457,7 +1462,7 @@ function to() {
|
|
|
1457
1462
|
return typeof w == "object" && w !== null && w.$$typeof === r;
|
|
1458
1463
|
}
|
|
1459
1464
|
function P(w) {
|
|
1460
|
-
return N(w) ===
|
|
1465
|
+
return N(w) === b;
|
|
1461
1466
|
}
|
|
1462
1467
|
function C(w) {
|
|
1463
1468
|
return N(w) === o;
|
|
@@ -1471,7 +1476,7 @@ function to() {
|
|
|
1471
1476
|
function j(w) {
|
|
1472
1477
|
return N(w) === t;
|
|
1473
1478
|
}
|
|
1474
|
-
function
|
|
1479
|
+
function F(w) {
|
|
1475
1480
|
return N(w) === i;
|
|
1476
1481
|
}
|
|
1477
1482
|
function A(w) {
|
|
@@ -1480,13 +1485,13 @@ function to() {
|
|
|
1480
1485
|
function ae(w) {
|
|
1481
1486
|
return N(w) === h;
|
|
1482
1487
|
}
|
|
1483
|
-
|
|
1484
|
-
}()),
|
|
1488
|
+
W.AsyncMode = p, W.ConcurrentMode = X, W.ContextConsumer = ee, W.ContextProvider = Se, W.Element = Q, W.ForwardRef = $, W.Fragment = ge, W.Lazy = ye, W.Memo = ie, W.Portal = z, W.Profiler = B, W.StrictMode = te, W.Suspense = pe, W.isAsyncMode = Pe, W.isConcurrentMode = l, W.isContextConsumer = g, W.isContextProvider = T, W.isElement = O, W.isForwardRef = P, W.isFragment = C, W.isLazy = R, W.isMemo = _, W.isPortal = j, W.isProfiler = F, W.isStrictMode = A, W.isSuspense = ae, W.isValidElementType = H, W.typeOf = N;
|
|
1489
|
+
}()), W;
|
|
1485
1490
|
}
|
|
1486
1491
|
var ot;
|
|
1487
|
-
function
|
|
1492
|
+
function yt() {
|
|
1488
1493
|
return ot || (ot = 1, function(e) {
|
|
1489
|
-
process.env.NODE_ENV === "production" ? e.exports =
|
|
1494
|
+
process.env.NODE_ENV === "production" ? e.exports = ao() : e.exports = so();
|
|
1490
1495
|
}(hr)), hr.exports;
|
|
1491
1496
|
}
|
|
1492
1497
|
/*
|
|
@@ -1494,10 +1499,10 @@ object-assign
|
|
|
1494
1499
|
(c) Sindre Sorhus
|
|
1495
1500
|
@license MIT
|
|
1496
1501
|
*/
|
|
1497
|
-
var
|
|
1498
|
-
function
|
|
1502
|
+
var mr, it;
|
|
1503
|
+
function co() {
|
|
1499
1504
|
if (it)
|
|
1500
|
-
return
|
|
1505
|
+
return mr;
|
|
1501
1506
|
it = 1;
|
|
1502
1507
|
var e = Object.getOwnPropertySymbols, r = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
|
|
1503
1508
|
function o(i) {
|
|
@@ -1514,54 +1519,54 @@ function no() {
|
|
|
1514
1519
|
return !1;
|
|
1515
1520
|
for (var c = {}, u = 0; u < 10; u++)
|
|
1516
1521
|
c["_" + String.fromCharCode(u)] = u;
|
|
1517
|
-
var d = Object.getOwnPropertyNames(c).map(function(
|
|
1518
|
-
return c[
|
|
1522
|
+
var d = Object.getOwnPropertyNames(c).map(function(b) {
|
|
1523
|
+
return c[b];
|
|
1519
1524
|
});
|
|
1520
1525
|
if (d.join("") !== "0123456789")
|
|
1521
1526
|
return !1;
|
|
1522
|
-
var
|
|
1523
|
-
return "abcdefghijklmnopqrst".split("").forEach(function(
|
|
1524
|
-
|
|
1525
|
-
}), Object.keys(Object.assign({},
|
|
1527
|
+
var m = {};
|
|
1528
|
+
return "abcdefghijklmnopqrst".split("").forEach(function(b) {
|
|
1529
|
+
m[b] = b;
|
|
1530
|
+
}), Object.keys(Object.assign({}, m)).join("") === "abcdefghijklmnopqrst";
|
|
1526
1531
|
} catch {
|
|
1527
1532
|
return !1;
|
|
1528
1533
|
}
|
|
1529
1534
|
}
|
|
1530
|
-
return
|
|
1531
|
-
for (var u, d = o(i),
|
|
1532
|
-
u = Object(arguments[
|
|
1535
|
+
return mr = s() ? Object.assign : function(i, c) {
|
|
1536
|
+
for (var u, d = o(i), m, b = 1; b < arguments.length; b++) {
|
|
1537
|
+
u = Object(arguments[b]);
|
|
1533
1538
|
for (var h in u)
|
|
1534
1539
|
r.call(u, h) && (d[h] = u[h]);
|
|
1535
1540
|
if (e) {
|
|
1536
|
-
|
|
1537
|
-
for (var
|
|
1538
|
-
t.call(u, v
|
|
1541
|
+
m = e(u);
|
|
1542
|
+
for (var v = 0; v < m.length; v++)
|
|
1543
|
+
t.call(u, m[v]) && (d[m[v]] = u[m[v]]);
|
|
1539
1544
|
}
|
|
1540
1545
|
}
|
|
1541
1546
|
return d;
|
|
1542
|
-
},
|
|
1547
|
+
}, mr;
|
|
1543
1548
|
}
|
|
1544
|
-
var
|
|
1549
|
+
var vr, at;
|
|
1545
1550
|
function Mr() {
|
|
1546
1551
|
if (at)
|
|
1547
|
-
return
|
|
1552
|
+
return vr;
|
|
1548
1553
|
at = 1;
|
|
1549
1554
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
1550
|
-
return
|
|
1555
|
+
return vr = e, vr;
|
|
1551
1556
|
}
|
|
1552
|
-
var
|
|
1553
|
-
function
|
|
1554
|
-
return st || (st = 1,
|
|
1557
|
+
var yr, st;
|
|
1558
|
+
function bt() {
|
|
1559
|
+
return st || (st = 1, yr = Function.call.bind(Object.prototype.hasOwnProperty)), yr;
|
|
1555
1560
|
}
|
|
1556
|
-
var
|
|
1557
|
-
function
|
|
1561
|
+
var br, ct;
|
|
1562
|
+
function uo() {
|
|
1558
1563
|
if (ct)
|
|
1559
|
-
return
|
|
1564
|
+
return br;
|
|
1560
1565
|
ct = 1;
|
|
1561
1566
|
var e = function() {
|
|
1562
1567
|
};
|
|
1563
1568
|
if (process.env.NODE_ENV !== "production") {
|
|
1564
|
-
var r = Mr(), t = {}, o =
|
|
1569
|
+
var r = Mr(), t = {}, o = bt();
|
|
1565
1570
|
e = function(i) {
|
|
1566
1571
|
var c = "Warning: " + i;
|
|
1567
1572
|
typeof console < "u" && console.error(c);
|
|
@@ -1571,27 +1576,27 @@ function oo() {
|
|
|
1571
1576
|
}
|
|
1572
1577
|
};
|
|
1573
1578
|
}
|
|
1574
|
-
function s(i, c, u, d,
|
|
1579
|
+
function s(i, c, u, d, m) {
|
|
1575
1580
|
if (process.env.NODE_ENV !== "production") {
|
|
1576
|
-
for (var
|
|
1577
|
-
if (o(i,
|
|
1581
|
+
for (var b in i)
|
|
1582
|
+
if (o(i, b)) {
|
|
1578
1583
|
var h;
|
|
1579
1584
|
try {
|
|
1580
|
-
if (typeof i[
|
|
1581
|
-
var
|
|
1582
|
-
(d || "React class") + ": " + u + " type `" +
|
|
1585
|
+
if (typeof i[b] != "function") {
|
|
1586
|
+
var v = Error(
|
|
1587
|
+
(d || "React class") + ": " + u + " type `" + b + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[b] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
1583
1588
|
);
|
|
1584
|
-
throw
|
|
1589
|
+
throw v.name = "Invariant Violation", v;
|
|
1585
1590
|
}
|
|
1586
|
-
h = i[
|
|
1591
|
+
h = i[b](c, b, d, u, null, r);
|
|
1587
1592
|
} catch (Y) {
|
|
1588
1593
|
h = Y;
|
|
1589
1594
|
}
|
|
1590
1595
|
if (h && !(h instanceof Error) && e(
|
|
1591
|
-
(d || "React class") + ": type specification of " + u + " `" +
|
|
1596
|
+
(d || "React class") + ": type specification of " + u + " `" + b + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof h + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
1592
1597
|
), h instanceof Error && !(h.message in t)) {
|
|
1593
1598
|
t[h.message] = !0;
|
|
1594
|
-
var x =
|
|
1599
|
+
var x = m ? m() : "";
|
|
1595
1600
|
e(
|
|
1596
1601
|
"Failed " + u + " type: " + h.message + (x != null ? x : "")
|
|
1597
1602
|
);
|
|
@@ -1601,14 +1606,14 @@ function oo() {
|
|
|
1601
1606
|
}
|
|
1602
1607
|
return s.resetWarningCache = function() {
|
|
1603
1608
|
process.env.NODE_ENV !== "production" && (t = {});
|
|
1604
|
-
},
|
|
1609
|
+
}, br = s, br;
|
|
1605
1610
|
}
|
|
1606
1611
|
var wr, ut;
|
|
1607
|
-
function
|
|
1612
|
+
function lo() {
|
|
1608
1613
|
if (ut)
|
|
1609
1614
|
return wr;
|
|
1610
1615
|
ut = 1;
|
|
1611
|
-
var e =
|
|
1616
|
+
var e = yt(), r = co(), t = Mr(), o = bt(), s = uo(), i = function() {
|
|
1612
1617
|
};
|
|
1613
1618
|
process.env.NODE_ENV !== "production" && (i = function(u) {
|
|
1614
1619
|
var d = "Warning: " + u;
|
|
@@ -1622,13 +1627,13 @@ function io() {
|
|
|
1622
1627
|
return null;
|
|
1623
1628
|
}
|
|
1624
1629
|
return wr = function(u, d) {
|
|
1625
|
-
var
|
|
1630
|
+
var m = typeof Symbol == "function" && Symbol.iterator, b = "@@iterator";
|
|
1626
1631
|
function h(l) {
|
|
1627
|
-
var g = l && (
|
|
1632
|
+
var g = l && (m && l[m] || l[b]);
|
|
1628
1633
|
if (typeof g == "function")
|
|
1629
1634
|
return g;
|
|
1630
1635
|
}
|
|
1631
|
-
var
|
|
1636
|
+
var v = "<<anonymous>>", x = {
|
|
1632
1637
|
array: K("array"),
|
|
1633
1638
|
bigint: K("bigint"),
|
|
1634
1639
|
bool: K("boolean"),
|
|
@@ -1642,25 +1647,25 @@ function io() {
|
|
|
1642
1647
|
element: N(),
|
|
1643
1648
|
elementType: p(),
|
|
1644
1649
|
instanceOf: X,
|
|
1645
|
-
node:
|
|
1650
|
+
node: $(),
|
|
1646
1651
|
objectOf: Se,
|
|
1647
1652
|
oneOf: ee,
|
|
1648
1653
|
oneOfType: Q,
|
|
1649
|
-
shape:
|
|
1654
|
+
shape: ye,
|
|
1650
1655
|
exact: ie
|
|
1651
1656
|
};
|
|
1652
1657
|
function Y(l, g) {
|
|
1653
1658
|
return l === g ? l !== 0 || 1 / l === 1 / g : l !== l && g !== g;
|
|
1654
1659
|
}
|
|
1655
|
-
function
|
|
1660
|
+
function k(l, g) {
|
|
1656
1661
|
this.message = l, this.data = g && typeof g == "object" ? g : {}, this.stack = "";
|
|
1657
1662
|
}
|
|
1658
|
-
|
|
1663
|
+
k.prototype = Error.prototype;
|
|
1659
1664
|
function G(l) {
|
|
1660
1665
|
if (process.env.NODE_ENV !== "production")
|
|
1661
1666
|
var g = {}, T = 0;
|
|
1662
|
-
function O(C, R, _, j,
|
|
1663
|
-
if (j = j ||
|
|
1667
|
+
function O(C, R, _, j, F, A, ae) {
|
|
1668
|
+
if (j = j || v, A = A || _, ae !== t) {
|
|
1664
1669
|
if (d) {
|
|
1665
1670
|
var w = new Error(
|
|
1666
1671
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
@@ -1673,17 +1678,17 @@ function io() {
|
|
|
1673
1678
|
), g[he] = !0, T++);
|
|
1674
1679
|
}
|
|
1675
1680
|
}
|
|
1676
|
-
return R[_] == null ? C ? R[_] === null ? new
|
|
1681
|
+
return R[_] == null ? C ? R[_] === null ? new k("The " + F + " `" + A + "` is marked as required " + ("in `" + j + "`, but its value is `null`.")) : new k("The " + F + " `" + A + "` is marked as required in " + ("`" + j + "`, but its value is `undefined`.")) : null : l(R, _, j, F, A);
|
|
1677
1682
|
}
|
|
1678
1683
|
var P = O.bind(null, !1);
|
|
1679
1684
|
return P.isRequired = O.bind(null, !0), P;
|
|
1680
1685
|
}
|
|
1681
1686
|
function K(l) {
|
|
1682
1687
|
function g(T, O, P, C, R, _) {
|
|
1683
|
-
var j = T[O],
|
|
1684
|
-
if (
|
|
1688
|
+
var j = T[O], F = te(j);
|
|
1689
|
+
if (F !== l) {
|
|
1685
1690
|
var A = pe(j);
|
|
1686
|
-
return new
|
|
1691
|
+
return new k(
|
|
1687
1692
|
"Invalid " + C + " `" + R + "` of type " + ("`" + A + "` supplied to `" + P + "`, expected ") + ("`" + l + "`."),
|
|
1688
1693
|
{ expectedType: l }
|
|
1689
1694
|
);
|
|
@@ -1698,14 +1703,14 @@ function io() {
|
|
|
1698
1703
|
function H(l) {
|
|
1699
1704
|
function g(T, O, P, C, R) {
|
|
1700
1705
|
if (typeof l != "function")
|
|
1701
|
-
return new
|
|
1706
|
+
return new k("Property `" + R + "` of component `" + P + "` has invalid PropType notation inside arrayOf.");
|
|
1702
1707
|
var _ = T[O];
|
|
1703
1708
|
if (!Array.isArray(_)) {
|
|
1704
1709
|
var j = te(_);
|
|
1705
|
-
return new
|
|
1710
|
+
return new k("Invalid " + C + " `" + R + "` of type " + ("`" + j + "` supplied to `" + P + "`, expected an array."));
|
|
1706
1711
|
}
|
|
1707
|
-
for (var
|
|
1708
|
-
var A = l(_,
|
|
1712
|
+
for (var F = 0; F < _.length; F++) {
|
|
1713
|
+
var A = l(_, F, P, C, R + "[" + F + "]", t);
|
|
1709
1714
|
if (A instanceof Error)
|
|
1710
1715
|
return A;
|
|
1711
1716
|
}
|
|
@@ -1718,7 +1723,7 @@ function io() {
|
|
|
1718
1723
|
var R = g[T];
|
|
1719
1724
|
if (!u(R)) {
|
|
1720
1725
|
var _ = te(R);
|
|
1721
|
-
return new
|
|
1726
|
+
return new k("Invalid " + P + " `" + C + "` of type " + ("`" + _ + "` supplied to `" + O + "`, expected a single ReactElement."));
|
|
1722
1727
|
}
|
|
1723
1728
|
return null;
|
|
1724
1729
|
}
|
|
@@ -1729,7 +1734,7 @@ function io() {
|
|
|
1729
1734
|
var R = g[T];
|
|
1730
1735
|
if (!e.isValidElementType(R)) {
|
|
1731
1736
|
var _ = te(R);
|
|
1732
|
-
return new
|
|
1737
|
+
return new k("Invalid " + P + " `" + C + "` of type " + ("`" + _ + "` supplied to `" + O + "`, expected a single ReactElement type."));
|
|
1733
1738
|
}
|
|
1734
1739
|
return null;
|
|
1735
1740
|
}
|
|
@@ -1738,8 +1743,8 @@ function io() {
|
|
|
1738
1743
|
function X(l) {
|
|
1739
1744
|
function g(T, O, P, C, R) {
|
|
1740
1745
|
if (!(T[O] instanceof l)) {
|
|
1741
|
-
var _ = l.name ||
|
|
1742
|
-
return new
|
|
1746
|
+
var _ = l.name || v, j = Pe(T[O]);
|
|
1747
|
+
return new k("Invalid " + C + " `" + R + "` of type " + ("`" + j + "` supplied to `" + P + "`, expected ") + ("instance of `" + _ + "`."));
|
|
1743
1748
|
}
|
|
1744
1749
|
return null;
|
|
1745
1750
|
}
|
|
@@ -1754,24 +1759,24 @@ function io() {
|
|
|
1754
1759
|
for (var _ = T[O], j = 0; j < l.length; j++)
|
|
1755
1760
|
if (Y(_, l[j]))
|
|
1756
1761
|
return null;
|
|
1757
|
-
var
|
|
1762
|
+
var F = JSON.stringify(l, function(ae, w) {
|
|
1758
1763
|
var he = pe(w);
|
|
1759
1764
|
return he === "symbol" ? String(w) : w;
|
|
1760
1765
|
});
|
|
1761
|
-
return new
|
|
1766
|
+
return new k("Invalid " + C + " `" + R + "` of value `" + String(_) + "` " + ("supplied to `" + P + "`, expected one of " + F + "."));
|
|
1762
1767
|
}
|
|
1763
1768
|
return G(g);
|
|
1764
1769
|
}
|
|
1765
1770
|
function Se(l) {
|
|
1766
1771
|
function g(T, O, P, C, R) {
|
|
1767
1772
|
if (typeof l != "function")
|
|
1768
|
-
return new
|
|
1773
|
+
return new k("Property `" + R + "` of component `" + P + "` has invalid PropType notation inside objectOf.");
|
|
1769
1774
|
var _ = T[O], j = te(_);
|
|
1770
1775
|
if (j !== "object")
|
|
1771
|
-
return new
|
|
1772
|
-
for (var
|
|
1773
|
-
if (o(_,
|
|
1774
|
-
var A = l(_,
|
|
1776
|
+
return new k("Invalid " + C + " `" + R + "` of type " + ("`" + j + "` supplied to `" + P + "`, expected an object."));
|
|
1777
|
+
for (var F in _)
|
|
1778
|
+
if (o(_, F)) {
|
|
1779
|
+
var A = l(_, F, P, C, R + "." + F, t);
|
|
1775
1780
|
if (A instanceof Error)
|
|
1776
1781
|
return A;
|
|
1777
1782
|
}
|
|
@@ -1790,38 +1795,38 @@ function io() {
|
|
|
1790
1795
|
), c;
|
|
1791
1796
|
}
|
|
1792
1797
|
function O(P, C, R, _, j) {
|
|
1793
|
-
for (var
|
|
1798
|
+
for (var F = [], A = 0; A < l.length; A++) {
|
|
1794
1799
|
var ae = l[A], w = ae(P, C, R, _, j, t);
|
|
1795
1800
|
if (w == null)
|
|
1796
1801
|
return null;
|
|
1797
|
-
w.data && o(w.data, "expectedType") &&
|
|
1802
|
+
w.data && o(w.data, "expectedType") && F.push(w.data.expectedType);
|
|
1798
1803
|
}
|
|
1799
|
-
var he =
|
|
1800
|
-
return new
|
|
1804
|
+
var he = F.length > 0 ? ", expected one of type [" + F.join(", ") + "]" : "";
|
|
1805
|
+
return new k("Invalid " + _ + " `" + j + "` supplied to " + ("`" + R + "`" + he + "."));
|
|
1801
1806
|
}
|
|
1802
1807
|
return G(O);
|
|
1803
1808
|
}
|
|
1804
|
-
function
|
|
1809
|
+
function $() {
|
|
1805
1810
|
function l(g, T, O, P, C) {
|
|
1806
|
-
return
|
|
1811
|
+
return z(g[T]) ? null : new k("Invalid " + P + " `" + C + "` supplied to " + ("`" + O + "`, expected a ReactNode."));
|
|
1807
1812
|
}
|
|
1808
1813
|
return G(l);
|
|
1809
1814
|
}
|
|
1810
1815
|
function ge(l, g, T, O, P) {
|
|
1811
|
-
return new
|
|
1816
|
+
return new k(
|
|
1812
1817
|
(l || "React class") + ": " + g + " type `" + T + "." + O + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + P + "`."
|
|
1813
1818
|
);
|
|
1814
1819
|
}
|
|
1815
|
-
function
|
|
1820
|
+
function ye(l) {
|
|
1816
1821
|
function g(T, O, P, C, R) {
|
|
1817
1822
|
var _ = T[O], j = te(_);
|
|
1818
1823
|
if (j !== "object")
|
|
1819
|
-
return new
|
|
1820
|
-
for (var
|
|
1821
|
-
var A = l[
|
|
1824
|
+
return new k("Invalid " + C + " `" + R + "` of type `" + j + "` " + ("supplied to `" + P + "`, expected `object`."));
|
|
1825
|
+
for (var F in l) {
|
|
1826
|
+
var A = l[F];
|
|
1822
1827
|
if (typeof A != "function")
|
|
1823
|
-
return ge(P, C, R,
|
|
1824
|
-
var ae = A(_,
|
|
1828
|
+
return ge(P, C, R, F, pe(A));
|
|
1829
|
+
var ae = A(_, F, P, C, R + "." + F, t);
|
|
1825
1830
|
if (ae)
|
|
1826
1831
|
return ae;
|
|
1827
1832
|
}
|
|
@@ -1833,14 +1838,14 @@ function io() {
|
|
|
1833
1838
|
function g(T, O, P, C, R) {
|
|
1834
1839
|
var _ = T[O], j = te(_);
|
|
1835
1840
|
if (j !== "object")
|
|
1836
|
-
return new
|
|
1837
|
-
var
|
|
1838
|
-
for (var A in
|
|
1841
|
+
return new k("Invalid " + C + " `" + R + "` of type `" + j + "` " + ("supplied to `" + P + "`, expected `object`."));
|
|
1842
|
+
var F = r({}, T[O], l);
|
|
1843
|
+
for (var A in F) {
|
|
1839
1844
|
var ae = l[A];
|
|
1840
1845
|
if (o(l, A) && typeof ae != "function")
|
|
1841
1846
|
return ge(P, C, R, A, pe(ae));
|
|
1842
1847
|
if (!ae)
|
|
1843
|
-
return new
|
|
1848
|
+
return new k(
|
|
1844
1849
|
"Invalid " + C + " `" + R + "` key `" + A + "` supplied to `" + P + "`.\nBad object: " + JSON.stringify(T[O], null, " ") + `
|
|
1845
1850
|
Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
|
|
1846
1851
|
);
|
|
@@ -1852,7 +1857,7 @@ Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
|
|
|
1852
1857
|
}
|
|
1853
1858
|
return G(g);
|
|
1854
1859
|
}
|
|
1855
|
-
function
|
|
1860
|
+
function z(l) {
|
|
1856
1861
|
switch (typeof l) {
|
|
1857
1862
|
case "number":
|
|
1858
1863
|
case "string":
|
|
@@ -1862,7 +1867,7 @@ Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
|
|
|
1862
1867
|
return !l;
|
|
1863
1868
|
case "object":
|
|
1864
1869
|
if (Array.isArray(l))
|
|
1865
|
-
return l.every(
|
|
1870
|
+
return l.every(z);
|
|
1866
1871
|
if (l === null || u(l))
|
|
1867
1872
|
return !0;
|
|
1868
1873
|
var g = h(l);
|
|
@@ -1870,12 +1875,12 @@ Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
|
|
|
1870
1875
|
var T = g.call(l), O;
|
|
1871
1876
|
if (g !== l.entries) {
|
|
1872
1877
|
for (; !(O = T.next()).done; )
|
|
1873
|
-
if (!
|
|
1878
|
+
if (!z(O.value))
|
|
1874
1879
|
return !1;
|
|
1875
1880
|
} else
|
|
1876
1881
|
for (; !(O = T.next()).done; ) {
|
|
1877
1882
|
var P = O.value;
|
|
1878
|
-
if (P && !
|
|
1883
|
+
if (P && !z(P[1]))
|
|
1879
1884
|
return !1;
|
|
1880
1885
|
}
|
|
1881
1886
|
} else
|
|
@@ -1919,13 +1924,13 @@ Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
|
|
|
1919
1924
|
}
|
|
1920
1925
|
}
|
|
1921
1926
|
function Pe(l) {
|
|
1922
|
-
return !l.constructor || !l.constructor.name ?
|
|
1927
|
+
return !l.constructor || !l.constructor.name ? v : l.constructor.name;
|
|
1923
1928
|
}
|
|
1924
1929
|
return x.checkPropTypes = s, x.resetWarningCache = s.resetWarningCache, x.PropTypes = x, x;
|
|
1925
1930
|
}, wr;
|
|
1926
1931
|
}
|
|
1927
1932
|
var Sr, lt;
|
|
1928
|
-
function
|
|
1933
|
+
function fo() {
|
|
1929
1934
|
if (lt)
|
|
1930
1935
|
return Sr;
|
|
1931
1936
|
lt = 1;
|
|
@@ -1935,12 +1940,12 @@ function ao() {
|
|
|
1935
1940
|
function t() {
|
|
1936
1941
|
}
|
|
1937
1942
|
return t.resetWarningCache = r, Sr = function() {
|
|
1938
|
-
function o(c, u, d,
|
|
1943
|
+
function o(c, u, d, m, b, h) {
|
|
1939
1944
|
if (h !== e) {
|
|
1940
|
-
var
|
|
1945
|
+
var v = new Error(
|
|
1941
1946
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
1942
1947
|
);
|
|
1943
|
-
throw
|
|
1948
|
+
throw v.name = "Invariant Violation", v;
|
|
1944
1949
|
}
|
|
1945
1950
|
}
|
|
1946
1951
|
o.isRequired = o;
|
|
@@ -1974,22 +1979,22 @@ function ao() {
|
|
|
1974
1979
|
}, Sr;
|
|
1975
1980
|
}
|
|
1976
1981
|
if (process.env.NODE_ENV !== "production") {
|
|
1977
|
-
var
|
|
1978
|
-
S.exports =
|
|
1982
|
+
var po = yt(), go = !0;
|
|
1983
|
+
S.exports = lo()(po.isElement, go);
|
|
1979
1984
|
} else
|
|
1980
|
-
S.exports =
|
|
1981
|
-
const
|
|
1985
|
+
S.exports = fo()();
|
|
1986
|
+
const ho = {
|
|
1982
1987
|
display: "flex",
|
|
1983
1988
|
height: "100%",
|
|
1984
1989
|
width: "100%",
|
|
1985
1990
|
justifyContent: "center",
|
|
1986
1991
|
alignItems: "center"
|
|
1987
1992
|
};
|
|
1988
|
-
function
|
|
1993
|
+
function mo({
|
|
1989
1994
|
content: e
|
|
1990
1995
|
}) {
|
|
1991
1996
|
return /* @__PURE__ */ a("div", {
|
|
1992
|
-
style:
|
|
1997
|
+
style: ho,
|
|
1993
1998
|
children: e
|
|
1994
1999
|
});
|
|
1995
2000
|
}
|
|
@@ -2022,7 +2027,7 @@ function wt({
|
|
|
2022
2027
|
height: r
|
|
2023
2028
|
},
|
|
2024
2029
|
...c,
|
|
2025
|
-
children: [!t && /* @__PURE__ */ a(
|
|
2030
|
+
children: [!t && /* @__PURE__ */ a(mo, {
|
|
2026
2031
|
content: o
|
|
2027
2032
|
}), /* @__PURE__ */ a("div", {
|
|
2028
2033
|
ref: s,
|
|
@@ -2046,7 +2051,7 @@ var St = /* @__PURE__ */ dt(wt);
|
|
|
2046
2051
|
function Et(e) {
|
|
2047
2052
|
we(e, []);
|
|
2048
2053
|
}
|
|
2049
|
-
function
|
|
2054
|
+
function be(e, r, t = !0) {
|
|
2050
2055
|
const o = ue(!0);
|
|
2051
2056
|
we(o.current || !t ? () => {
|
|
2052
2057
|
o.current = !1;
|
|
@@ -2055,18 +2060,18 @@ function ye(e, r, t = !0) {
|
|
|
2055
2060
|
function Ne() {
|
|
2056
2061
|
}
|
|
2057
2062
|
function rr(e, r, t, o) {
|
|
2058
|
-
return
|
|
2063
|
+
return vo(e, o) || yo(e, r, t, o);
|
|
2059
2064
|
}
|
|
2060
|
-
function
|
|
2065
|
+
function vo(e, r) {
|
|
2061
2066
|
return e.editor.getModel(Tt(e, r));
|
|
2062
2067
|
}
|
|
2063
|
-
function
|
|
2068
|
+
function yo(e, r, t, o) {
|
|
2064
2069
|
return e.editor.createModel(r, t, o && Tt(e, o));
|
|
2065
2070
|
}
|
|
2066
2071
|
function Tt(e, r) {
|
|
2067
2072
|
return e.Uri.parse(r);
|
|
2068
2073
|
}
|
|
2069
|
-
function
|
|
2074
|
+
function bo(e) {
|
|
2070
2075
|
return e === void 0;
|
|
2071
2076
|
}
|
|
2072
2077
|
function Ot({
|
|
@@ -2079,78 +2084,78 @@ function Ot({
|
|
|
2079
2084
|
modifiedModelPath: c,
|
|
2080
2085
|
keepCurrentOriginalModel: u,
|
|
2081
2086
|
keepCurrentModifiedModel: d,
|
|
2082
|
-
theme:
|
|
2083
|
-
loading:
|
|
2087
|
+
theme: m,
|
|
2088
|
+
loading: b,
|
|
2084
2089
|
options: h,
|
|
2085
|
-
height:
|
|
2090
|
+
height: v,
|
|
2086
2091
|
width: x,
|
|
2087
2092
|
className: Y,
|
|
2088
|
-
wrapperProps:
|
|
2093
|
+
wrapperProps: k,
|
|
2089
2094
|
beforeMount: G,
|
|
2090
2095
|
onMount: K
|
|
2091
2096
|
}) {
|
|
2092
|
-
const [D, H] = Ie(!1), [N, p] = Ie(!0), X = ue(null), ee = ue(null), Se = ue(null), Q = ue(K),
|
|
2097
|
+
const [D, H] = Ie(!1), [N, p] = Ie(!0), X = ue(null), ee = ue(null), Se = ue(null), Q = ue(K), $ = ue(G);
|
|
2093
2098
|
Et(() => {
|
|
2094
|
-
const
|
|
2095
|
-
return
|
|
2096
|
-
}),
|
|
2097
|
-
const
|
|
2098
|
-
|
|
2099
|
-
range:
|
|
2099
|
+
const z = Ye.init();
|
|
2100
|
+
return z.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() : z.cancel();
|
|
2101
|
+
}), be(() => {
|
|
2102
|
+
const z = X.current.getModifiedEditor();
|
|
2103
|
+
z.getOption(ee.current.editor.EditorOption.readOnly) ? z.setValue(r) : r !== z.getValue() && (z.executeEdits("", [{
|
|
2104
|
+
range: z.getModel().getFullModelRange(),
|
|
2100
2105
|
text: r,
|
|
2101
2106
|
forceMoveMarkers: !0
|
|
2102
|
-
}]),
|
|
2103
|
-
}, [r], D),
|
|
2107
|
+
}]), z.pushUndoStop());
|
|
2108
|
+
}, [r], D), be(() => {
|
|
2104
2109
|
X.current.getModel().original.setValue(e);
|
|
2105
|
-
}, [e], D),
|
|
2110
|
+
}, [e], D), be(() => {
|
|
2106
2111
|
const {
|
|
2107
|
-
original:
|
|
2112
|
+
original: z,
|
|
2108
2113
|
modified: B
|
|
2109
2114
|
} = X.current.getModel();
|
|
2110
|
-
ee.current.editor.setModelLanguage(
|
|
2111
|
-
}, [t, o, s], D),
|
|
2112
|
-
ee.current.editor.setTheme(
|
|
2113
|
-
}, [
|
|
2115
|
+
ee.current.editor.setModelLanguage(z, o || t), ee.current.editor.setModelLanguage(B, s || t);
|
|
2116
|
+
}, [t, o, s], D), be(() => {
|
|
2117
|
+
ee.current.editor.setTheme(m);
|
|
2118
|
+
}, [m], D), be(() => {
|
|
2114
2119
|
X.current.updateOptions(h);
|
|
2115
2120
|
}, [h], D);
|
|
2116
2121
|
const ge = Tr(() => {
|
|
2117
|
-
|
|
2118
|
-
const
|
|
2122
|
+
$.current(ee.current);
|
|
2123
|
+
const z = rr(ee.current, e, o || t, i), B = rr(ee.current, r, s || t, c);
|
|
2119
2124
|
X.current.setModel({
|
|
2120
|
-
original:
|
|
2125
|
+
original: z,
|
|
2121
2126
|
modified: B
|
|
2122
2127
|
});
|
|
2123
|
-
}, [t, r, s, e, o, i, c]),
|
|
2128
|
+
}, [t, r, s, e, o, i, c]), ye = Tr(() => {
|
|
2124
2129
|
X.current = ee.current.editor.createDiffEditor(Se.current, {
|
|
2125
2130
|
automaticLayout: !0,
|
|
2126
2131
|
...h
|
|
2127
|
-
}), ge(), ee.current.editor.setTheme(
|
|
2128
|
-
}, [h,
|
|
2132
|
+
}), ge(), ee.current.editor.setTheme(m), H(!0);
|
|
2133
|
+
}, [h, m, ge]);
|
|
2129
2134
|
we(() => {
|
|
2130
2135
|
D && Q.current(X.current, ee.current);
|
|
2131
2136
|
}, [D]), we(() => {
|
|
2132
|
-
!N && !D &&
|
|
2133
|
-
}, [N, D,
|
|
2137
|
+
!N && !D && ye();
|
|
2138
|
+
}, [N, D, ye]);
|
|
2134
2139
|
function ie() {
|
|
2135
|
-
const
|
|
2140
|
+
const z = X.current.getModel();
|
|
2136
2141
|
if (!u) {
|
|
2137
2142
|
var B;
|
|
2138
|
-
(B =
|
|
2143
|
+
(B = z.original) === null || B === void 0 || B.dispose();
|
|
2139
2144
|
}
|
|
2140
2145
|
if (!d) {
|
|
2141
2146
|
var te;
|
|
2142
|
-
(te =
|
|
2147
|
+
(te = z.modified) === null || te === void 0 || te.dispose();
|
|
2143
2148
|
}
|
|
2144
2149
|
X.current.dispose();
|
|
2145
2150
|
}
|
|
2146
2151
|
return /* @__PURE__ */ a(St, {
|
|
2147
2152
|
width: x,
|
|
2148
|
-
height:
|
|
2153
|
+
height: v,
|
|
2149
2154
|
isEditorReady: D,
|
|
2150
|
-
loading:
|
|
2155
|
+
loading: b,
|
|
2151
2156
|
_ref: Se,
|
|
2152
2157
|
className: Y,
|
|
2153
|
-
wrapperProps:
|
|
2158
|
+
wrapperProps: k
|
|
2154
2159
|
});
|
|
2155
2160
|
}
|
|
2156
2161
|
Ot.propTypes = {
|
|
@@ -2185,7 +2190,7 @@ Ot.defaultProps = {
|
|
|
2185
2190
|
beforeMount: Ne,
|
|
2186
2191
|
onMount: Ne
|
|
2187
2192
|
};
|
|
2188
|
-
function
|
|
2193
|
+
function wo(e) {
|
|
2189
2194
|
const r = ue();
|
|
2190
2195
|
return we(() => {
|
|
2191
2196
|
r.current = e;
|
|
@@ -2202,68 +2207,68 @@ function Ir({
|
|
|
2202
2207
|
theme: c,
|
|
2203
2208
|
line: u,
|
|
2204
2209
|
loading: d,
|
|
2205
|
-
options:
|
|
2206
|
-
overrideServices:
|
|
2210
|
+
options: m,
|
|
2211
|
+
overrideServices: b,
|
|
2207
2212
|
saveViewState: h,
|
|
2208
|
-
keepCurrentModel:
|
|
2213
|
+
keepCurrentModel: v,
|
|
2209
2214
|
width: x,
|
|
2210
2215
|
height: Y,
|
|
2211
|
-
className:
|
|
2216
|
+
className: k,
|
|
2212
2217
|
wrapperProps: G,
|
|
2213
2218
|
beforeMount: K,
|
|
2214
2219
|
onMount: D,
|
|
2215
2220
|
onChange: H,
|
|
2216
2221
|
onValidate: N
|
|
2217
2222
|
}) {
|
|
2218
|
-
const [p, X] = Ie(!1), [ee, Se] = Ie(!0), Q = ue(null),
|
|
2223
|
+
const [p, X] = Ie(!1), [ee, Se] = Ie(!0), Q = ue(null), $ = ue(null), ge = ue(null), ye = ue(D), ie = ue(K), z = ue(null), B = ue(o), te = wo(i), pe = ue(!1);
|
|
2219
2224
|
Et(() => {
|
|
2220
2225
|
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)), () =>
|
|
2222
|
-
}),
|
|
2226
|
+
return l.then((g) => (Q.current = g) && Se(!1)).catch((g) => (g == null ? void 0 : g.type) !== "cancelation" && console.error("Monaco initialization: error:", g)), () => $.current ? Pe() : l.cancel();
|
|
2227
|
+
}), be(() => {
|
|
2223
2228
|
const l = rr(Q.current, e || o, r || s, i);
|
|
2224
|
-
l !==
|
|
2225
|
-
}, [i], p),
|
|
2226
|
-
|
|
2227
|
-
}, [
|
|
2228
|
-
|
|
2229
|
-
range:
|
|
2229
|
+
l !== $.current.getModel() && (h && Xe.set(te, $.current.saveViewState()), $.current.setModel(l), h && $.current.restoreViewState(Xe.get(i)));
|
|
2230
|
+
}, [i], p), be(() => {
|
|
2231
|
+
$.current.updateOptions(m);
|
|
2232
|
+
}, [m], p), be(() => {
|
|
2233
|
+
$.current.getOption(Q.current.editor.EditorOption.readOnly) ? $.current.setValue(o) : o !== $.current.getValue() && ($.current.executeEdits("", [{
|
|
2234
|
+
range: $.current.getModel().getFullModelRange(),
|
|
2230
2235
|
text: o,
|
|
2231
2236
|
forceMoveMarkers: !0
|
|
2232
|
-
}]),
|
|
2233
|
-
}, [o], p),
|
|
2234
|
-
Q.current.editor.setModelLanguage(
|
|
2235
|
-
}, [s], p),
|
|
2236
|
-
|
|
2237
|
-
}, [u], p),
|
|
2237
|
+
}]), $.current.pushUndoStop());
|
|
2238
|
+
}, [o], p), be(() => {
|
|
2239
|
+
Q.current.editor.setModelLanguage($.current.getModel(), s);
|
|
2240
|
+
}, [s], p), be(() => {
|
|
2241
|
+
bo(u) || $.current.revealLine(u);
|
|
2242
|
+
}, [u], p), be(() => {
|
|
2238
2243
|
Q.current.editor.setTheme(c);
|
|
2239
2244
|
}, [c], p);
|
|
2240
2245
|
const Ee = Tr(() => {
|
|
2241
2246
|
if (!pe.current) {
|
|
2242
2247
|
ie.current(Q.current);
|
|
2243
2248
|
const l = i || t, g = rr(Q.current, o || e, r || s, l);
|
|
2244
|
-
|
|
2249
|
+
$.current = Q.current.editor.create(ge.current, {
|
|
2245
2250
|
model: g,
|
|
2246
2251
|
automaticLayout: !0,
|
|
2247
|
-
...
|
|
2248
|
-
},
|
|
2252
|
+
...m
|
|
2253
|
+
}, b), h && $.current.restoreViewState(Xe.get(l)), Q.current.editor.setTheme(c), X(!0), pe.current = !0;
|
|
2249
2254
|
}
|
|
2250
|
-
}, [e, r, t, o, s, i,
|
|
2255
|
+
}, [e, r, t, o, s, i, m, b, h, c]);
|
|
2251
2256
|
we(() => {
|
|
2252
|
-
p &&
|
|
2257
|
+
p && ye.current($.current, Q.current);
|
|
2253
2258
|
}, [p]), we(() => {
|
|
2254
2259
|
!ee && !p && Ee();
|
|
2255
2260
|
}, [ee, p, Ee]), B.current = o, we(() => {
|
|
2256
2261
|
if (p && H) {
|
|
2257
2262
|
var l, g;
|
|
2258
|
-
(l =
|
|
2259
|
-
H(
|
|
2263
|
+
(l = z.current) === null || l === void 0 || l.dispose(), z.current = (g = $.current) === null || g === void 0 ? void 0 : g.onDidChangeModelContent((T) => {
|
|
2264
|
+
H($.current.getValue(), T);
|
|
2260
2265
|
});
|
|
2261
2266
|
}
|
|
2262
2267
|
}, [p, H]), we(() => {
|
|
2263
2268
|
if (p) {
|
|
2264
2269
|
const l = Q.current.editor.onDidChangeMarkers((g) => {
|
|
2265
2270
|
var T;
|
|
2266
|
-
const O = (T =
|
|
2271
|
+
const O = (T = $.current.getModel()) === null || T === void 0 ? void 0 : T.uri;
|
|
2267
2272
|
if (O && g.find((C) => C.path === O.path)) {
|
|
2268
2273
|
const C = Q.current.editor.getModelMarkers({
|
|
2269
2274
|
resource: O
|
|
@@ -2278,13 +2283,13 @@ function Ir({
|
|
|
2278
2283
|
}, [p, N]);
|
|
2279
2284
|
function Pe() {
|
|
2280
2285
|
var l;
|
|
2281
|
-
if ((l =
|
|
2282
|
-
h && Xe.set(i,
|
|
2286
|
+
if ((l = z.current) === null || l === void 0 || l.dispose(), v)
|
|
2287
|
+
h && Xe.set(i, $.current.saveViewState());
|
|
2283
2288
|
else {
|
|
2284
2289
|
var g;
|
|
2285
|
-
(g =
|
|
2290
|
+
(g = $.current.getModel()) === null || g === void 0 || g.dispose();
|
|
2286
2291
|
}
|
|
2287
|
-
|
|
2292
|
+
$.current.dispose();
|
|
2288
2293
|
}
|
|
2289
2294
|
return /* @__PURE__ */ a(St, {
|
|
2290
2295
|
width: x,
|
|
@@ -2292,7 +2297,7 @@ function Ir({
|
|
|
2292
2297
|
isEditorReady: p,
|
|
2293
2298
|
loading: d,
|
|
2294
2299
|
_ref: ge,
|
|
2295
|
-
className:
|
|
2300
|
+
className: k,
|
|
2296
2301
|
wrapperProps: G
|
|
2297
2302
|
});
|
|
2298
2303
|
}
|
|
@@ -2333,25 +2338,10 @@ Ir.defaultProps = {
|
|
|
2333
2338
|
onMount: Ne,
|
|
2334
2339
|
onValidate: Ne
|
|
2335
2340
|
};
|
|
2336
|
-
var
|
|
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
|
-
}
|
|
2341
|
+
var So = /* @__PURE__ */ dt(Ir);
|
|
2352
2342
|
self.MonacoEnvironment = {
|
|
2353
2343
|
getWorker(e, r) {
|
|
2354
|
-
return r === "json" ? new
|
|
2344
|
+
return r === "json" ? new cn() : r === "css" || r === "scss" || r === "less" ? new an() : r === "html" || r === "handlebars" || r === "razor" ? new sn() : r === "typescript" || r === "javascript" ? new un() : new on();
|
|
2355
2345
|
}
|
|
2356
2346
|
};
|
|
2357
2347
|
function Eo() {
|
|
@@ -2361,11 +2351,11 @@ Eo();
|
|
|
2361
2351
|
const To = ({
|
|
2362
2352
|
value: e,
|
|
2363
2353
|
onChange: r
|
|
2364
|
-
}) => /* @__PURE__ */ a(
|
|
2354
|
+
}) => /* @__PURE__ */ a(ve, {
|
|
2365
2355
|
sx: {
|
|
2366
2356
|
position: "relative"
|
|
2367
2357
|
},
|
|
2368
|
-
children: /* @__PURE__ */ a(
|
|
2358
|
+
children: /* @__PURE__ */ a(So, {
|
|
2369
2359
|
height: "500px",
|
|
2370
2360
|
defaultLanguage: "javascript",
|
|
2371
2361
|
value: e,
|
|
@@ -2389,11 +2379,11 @@ const To = ({
|
|
|
2389
2379
|
}, c) => {
|
|
2390
2380
|
const [u, {
|
|
2391
2381
|
setTrue: d,
|
|
2392
|
-
setFalse:
|
|
2393
|
-
}] = tn(), [
|
|
2394
|
-
|
|
2382
|
+
setFalse: m
|
|
2383
|
+
}] = tn(), [b, h] = Ie(e), v = () => {
|
|
2384
|
+
m(), r(b);
|
|
2395
2385
|
}, x = () => {
|
|
2396
|
-
|
|
2386
|
+
m(), h(e);
|
|
2397
2387
|
}, Y = () => {
|
|
2398
2388
|
h(s);
|
|
2399
2389
|
};
|
|
@@ -2412,12 +2402,12 @@ const To = ({
|
|
|
2412
2402
|
size: 800,
|
|
2413
2403
|
title: o,
|
|
2414
2404
|
opened: u,
|
|
2415
|
-
onClose:
|
|
2405
|
+
onClose: m,
|
|
2416
2406
|
closeOnClickOutside: !1,
|
|
2417
2407
|
withCloseButton: !1,
|
|
2418
2408
|
children: u && /* @__PURE__ */ I(Rr, {
|
|
2419
2409
|
children: [/* @__PURE__ */ a(To, {
|
|
2420
|
-
value:
|
|
2410
|
+
value: b,
|
|
2421
2411
|
onChange: h
|
|
2422
2412
|
}), /* @__PURE__ */ I(se, {
|
|
2423
2413
|
position: "apart",
|
|
@@ -2435,7 +2425,7 @@ const To = ({
|
|
|
2435
2425
|
variant: "subtle",
|
|
2436
2426
|
children: "Cancel"
|
|
2437
2427
|
}), /* @__PURE__ */ a(oe, {
|
|
2438
|
-
onClick:
|
|
2428
|
+
onClick: v,
|
|
2439
2429
|
children: "OK"
|
|
2440
2430
|
})]
|
|
2441
2431
|
})]
|
|
@@ -2470,7 +2460,7 @@ function Oo({
|
|
|
2470
2460
|
}
|
|
2471
2461
|
}
|
|
2472
2462
|
});
|
|
2473
|
-
return /* @__PURE__ */ a(
|
|
2463
|
+
return /* @__PURE__ */ a(ve, {
|
|
2474
2464
|
mx: "auto",
|
|
2475
2465
|
children: /* @__PURE__ */ I("form", {
|
|
2476
2466
|
onSubmit: s(e),
|
|
@@ -2551,7 +2541,7 @@ function Po({
|
|
|
2551
2541
|
const [t, o] = Ie("postgresql"), s = async ({
|
|
2552
2542
|
type: u,
|
|
2553
2543
|
key: d,
|
|
2554
|
-
config:
|
|
2544
|
+
config: m
|
|
2555
2545
|
}) => {
|
|
2556
2546
|
_e({
|
|
2557
2547
|
id: "for-creating",
|
|
@@ -2563,23 +2553,23 @@ function Po({
|
|
|
2563
2553
|
console.log({
|
|
2564
2554
|
type: u,
|
|
2565
2555
|
key: d,
|
|
2566
|
-
config:
|
|
2567
|
-
}), await de.datasource.create(u, d,
|
|
2556
|
+
config: m
|
|
2557
|
+
}), await de.datasource.create(u, d, m), le({
|
|
2568
2558
|
id: "for-creating",
|
|
2569
2559
|
title: "Successful",
|
|
2570
2560
|
message: "Data source is added",
|
|
2571
2561
|
color: "green"
|
|
2572
2562
|
}), e();
|
|
2573
|
-
} catch (
|
|
2563
|
+
} catch (b) {
|
|
2574
2564
|
le({
|
|
2575
2565
|
id: "for-creating",
|
|
2576
2566
|
title: "Failed",
|
|
2577
|
-
message:
|
|
2567
|
+
message: b.message,
|
|
2578
2568
|
color: "red"
|
|
2579
2569
|
});
|
|
2580
2570
|
}
|
|
2581
2571
|
}, i = t === "postgresql" || t === "mysql", c = t === "http";
|
|
2582
|
-
return /* @__PURE__ */ I(
|
|
2572
|
+
return /* @__PURE__ */ I(ve, {
|
|
2583
2573
|
mx: "auto",
|
|
2584
2574
|
children: [/* @__PURE__ */ a(Bt, {
|
|
2585
2575
|
fullWidth: !0,
|
|
@@ -2597,7 +2587,7 @@ function Po({
|
|
|
2597
2587
|
}],
|
|
2598
2588
|
value: t,
|
|
2599
2589
|
onChange: (u) => o(u)
|
|
2600
|
-
}), i && /* @__PURE__ */ a(
|
|
2590
|
+
}), i && /* @__PURE__ */ a(bn, {
|
|
2601
2591
|
submit: s,
|
|
2602
2592
|
styles: r,
|
|
2603
2593
|
type: t
|
|
@@ -2611,7 +2601,7 @@ function Ro({
|
|
|
2611
2601
|
onSuccess: e,
|
|
2612
2602
|
styles: r = qe
|
|
2613
2603
|
}) {
|
|
2614
|
-
const [t, o] =
|
|
2604
|
+
const [t, o] = ke.useState(!1), s = () => o(!0), i = () => o(!1);
|
|
2615
2605
|
return /* @__PURE__ */ I(Oe, {
|
|
2616
2606
|
children: [/* @__PURE__ */ a(Be, {
|
|
2617
2607
|
overflow: "inside",
|
|
@@ -2654,10 +2644,10 @@ function _o(e, r) {
|
|
|
2654
2644
|
var t, o, s = function(c, u) {
|
|
2655
2645
|
if (c == null)
|
|
2656
2646
|
return {};
|
|
2657
|
-
var d,
|
|
2658
|
-
for (
|
|
2659
|
-
d = h[
|
|
2660
|
-
return
|
|
2647
|
+
var d, m, b = {}, h = Object.keys(c);
|
|
2648
|
+
for (m = 0; m < h.length; m++)
|
|
2649
|
+
d = h[m], u.indexOf(d) >= 0 || (b[d] = c[d]);
|
|
2650
|
+
return b;
|
|
2661
2651
|
}(e, r);
|
|
2662
2652
|
if (Object.getOwnPropertySymbols) {
|
|
2663
2653
|
var i = Object.getOwnPropertySymbols(e);
|
|
@@ -2669,7 +2659,7 @@ function _o(e, r) {
|
|
|
2669
2659
|
var xo = ["size", "color", "stroke"];
|
|
2670
2660
|
function Co(e) {
|
|
2671
2661
|
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
|
|
2662
|
+
return $e.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), $e.createElement("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), $e.createElement("rect", { x: 5, y: 11, width: 14, height: 10, rx: 2 }), $e.createElement("circle", { cx: 12, cy: 16, r: 1 }), $e.createElement("path", { d: "M8 11v-4a4 4 0 0 1 8 0v4" }));
|
|
2673
2663
|
}
|
|
2674
2664
|
function jo({
|
|
2675
2665
|
id: e,
|
|
@@ -2727,7 +2717,7 @@ function jo({
|
|
|
2727
2717
|
children: "Delete"
|
|
2728
2718
|
});
|
|
2729
2719
|
}
|
|
2730
|
-
function
|
|
2720
|
+
function ti({
|
|
2731
2721
|
styles: e = qe,
|
|
2732
2722
|
config: r
|
|
2733
2723
|
}) {
|
|
@@ -2736,7 +2726,7 @@ function Xo({
|
|
|
2736
2726
|
data: t = [],
|
|
2737
2727
|
loading: o,
|
|
2738
2728
|
refresh: s
|
|
2739
|
-
} =
|
|
2729
|
+
} = ze(async () => {
|
|
2740
2730
|
const {
|
|
2741
2731
|
data: i
|
|
2742
2732
|
} = await de.datasource.list();
|
|
@@ -2751,7 +2741,7 @@ function Xo({
|
|
|
2751
2741
|
children: /* @__PURE__ */ a(Ro, {
|
|
2752
2742
|
onSuccess: s
|
|
2753
2743
|
})
|
|
2754
|
-
}), /* @__PURE__ */ I(
|
|
2744
|
+
}), /* @__PURE__ */ I(ve, {
|
|
2755
2745
|
mt: e.spacing,
|
|
2756
2746
|
sx: {
|
|
2757
2747
|
position: "relative"
|
|
@@ -2821,7 +2811,7 @@ const Ao = Cr(({
|
|
|
2821
2811
|
className: "role-description",
|
|
2822
2812
|
children: t
|
|
2823
2813
|
})]
|
|
2824
|
-
})),
|
|
2814
|
+
})), zr = Cr(({
|
|
2825
2815
|
styles: e,
|
|
2826
2816
|
value: r,
|
|
2827
2817
|
onChange: t
|
|
@@ -2829,7 +2819,7 @@ const Ao = Cr(({
|
|
|
2829
2819
|
const {
|
|
2830
2820
|
data: s = [],
|
|
2831
2821
|
loading: i
|
|
2832
|
-
} =
|
|
2822
|
+
} = ze(async () => (await de.role.list()).map((u) => ({
|
|
2833
2823
|
label: u.name,
|
|
2834
2824
|
value: u.id,
|
|
2835
2825
|
description: u.description,
|
|
@@ -2883,14 +2873,14 @@ function Mo({
|
|
|
2883
2873
|
password: ""
|
|
2884
2874
|
}
|
|
2885
2875
|
});
|
|
2886
|
-
return /* @__PURE__ */ a(
|
|
2876
|
+
return /* @__PURE__ */ a(ve, {
|
|
2887
2877
|
mx: "auto",
|
|
2888
2878
|
children: /* @__PURE__ */ I("form", {
|
|
2889
2879
|
onSubmit: s(async ({
|
|
2890
2880
|
name: c,
|
|
2891
2881
|
email: u,
|
|
2892
2882
|
password: d,
|
|
2893
|
-
role_id:
|
|
2883
|
+
role_id: m
|
|
2894
2884
|
}) => {
|
|
2895
2885
|
try {
|
|
2896
2886
|
_e({
|
|
@@ -2898,17 +2888,17 @@ function Mo({
|
|
|
2898
2888
|
title: "Pending",
|
|
2899
2889
|
message: "Adding account...",
|
|
2900
2890
|
loading: !0
|
|
2901
|
-
}), await de.account.create(c, u, d,
|
|
2891
|
+
}), await de.account.create(c, u, d, m), le({
|
|
2902
2892
|
id: "for-creating",
|
|
2903
2893
|
title: "Successful",
|
|
2904
2894
|
message: "Account is added",
|
|
2905
2895
|
color: "green"
|
|
2906
2896
|
}), e();
|
|
2907
|
-
} catch (
|
|
2897
|
+
} catch (b) {
|
|
2908
2898
|
le({
|
|
2909
2899
|
id: "for-creating",
|
|
2910
2900
|
title: "Failed",
|
|
2911
|
-
message:
|
|
2901
|
+
message: b.message,
|
|
2912
2902
|
color: "red"
|
|
2913
2903
|
});
|
|
2914
2904
|
}
|
|
@@ -2955,7 +2945,7 @@ function Mo({
|
|
|
2955
2945
|
control: o,
|
|
2956
2946
|
render: ({
|
|
2957
2947
|
field: c
|
|
2958
|
-
}) => /* @__PURE__ */ a(
|
|
2948
|
+
}) => /* @__PURE__ */ a(zr, {
|
|
2959
2949
|
styles: r,
|
|
2960
2950
|
...c
|
|
2961
2951
|
})
|
|
@@ -2976,7 +2966,7 @@ function Io({
|
|
|
2976
2966
|
styles: r = xe,
|
|
2977
2967
|
initialRoleID: t
|
|
2978
2968
|
}) {
|
|
2979
|
-
const [o, s] =
|
|
2969
|
+
const [o, s] = ke.useState(!1), i = () => s(!0), c = () => s(!1);
|
|
2980
2970
|
return /* @__PURE__ */ I(Oe, {
|
|
2981
2971
|
children: [/* @__PURE__ */ a(Be, {
|
|
2982
2972
|
overflow: "inside",
|
|
@@ -3004,7 +2994,7 @@ function Io({
|
|
|
3004
2994
|
})]
|
|
3005
2995
|
});
|
|
3006
2996
|
}
|
|
3007
|
-
function
|
|
2997
|
+
function zo({
|
|
3008
2998
|
id: e,
|
|
3009
2999
|
name: r,
|
|
3010
3000
|
onSuccess: t,
|
|
@@ -3053,7 +3043,7 @@ function ko({
|
|
|
3053
3043
|
children: "Delete"
|
|
3054
3044
|
});
|
|
3055
3045
|
}
|
|
3056
|
-
function
|
|
3046
|
+
function ko({
|
|
3057
3047
|
id: e,
|
|
3058
3048
|
name: r,
|
|
3059
3049
|
email: t,
|
|
@@ -3073,11 +3063,11 @@ function zo({
|
|
|
3073
3063
|
reset_password: !1,
|
|
3074
3064
|
new_password: ""
|
|
3075
3065
|
}
|
|
3076
|
-
}),
|
|
3077
|
-
name:
|
|
3066
|
+
}), m = async ({
|
|
3067
|
+
name: v,
|
|
3078
3068
|
email: x,
|
|
3079
3069
|
role_id: Y,
|
|
3080
|
-
reset_password:
|
|
3070
|
+
reset_password: k,
|
|
3081
3071
|
new_password: G
|
|
3082
3072
|
}) => {
|
|
3083
3073
|
try {
|
|
@@ -3088,10 +3078,10 @@ function zo({
|
|
|
3088
3078
|
loading: !0
|
|
3089
3079
|
}), await de.account.edit({
|
|
3090
3080
|
id: e,
|
|
3091
|
-
name:
|
|
3081
|
+
name: v,
|
|
3092
3082
|
email: x,
|
|
3093
3083
|
role_id: Y,
|
|
3094
|
-
reset_password:
|
|
3084
|
+
reset_password: k,
|
|
3095
3085
|
new_password: G
|
|
3096
3086
|
}), le({
|
|
3097
3087
|
id: "for-updating",
|
|
@@ -3107,43 +3097,43 @@ function zo({
|
|
|
3107
3097
|
color: "red"
|
|
3108
3098
|
});
|
|
3109
3099
|
}
|
|
3110
|
-
}, [
|
|
3111
|
-
return /* @__PURE__ */ a(
|
|
3100
|
+
}, [b, h] = d(["reset_password", "new_password"]);
|
|
3101
|
+
return /* @__PURE__ */ a(ve, {
|
|
3112
3102
|
mx: "auto",
|
|
3113
3103
|
children: /* @__PURE__ */ I("form", {
|
|
3114
|
-
onSubmit: u(
|
|
3104
|
+
onSubmit: u(m),
|
|
3115
3105
|
children: [/* @__PURE__ */ a(J, {
|
|
3116
3106
|
name: "name",
|
|
3117
3107
|
control: c,
|
|
3118
3108
|
render: ({
|
|
3119
|
-
field:
|
|
3109
|
+
field: v
|
|
3120
3110
|
}) => /* @__PURE__ */ a(fe, {
|
|
3121
3111
|
mb: i.spacing,
|
|
3122
3112
|
size: i.size,
|
|
3123
3113
|
required: !0,
|
|
3124
3114
|
label: "Username",
|
|
3125
|
-
...
|
|
3115
|
+
...v
|
|
3126
3116
|
})
|
|
3127
3117
|
}), /* @__PURE__ */ a(J, {
|
|
3128
3118
|
name: "email",
|
|
3129
3119
|
control: c,
|
|
3130
3120
|
render: ({
|
|
3131
|
-
field:
|
|
3121
|
+
field: v
|
|
3132
3122
|
}) => /* @__PURE__ */ a(fe, {
|
|
3133
3123
|
mb: i.spacing,
|
|
3134
3124
|
size: i.size,
|
|
3135
3125
|
required: !0,
|
|
3136
3126
|
label: "Email",
|
|
3137
|
-
...
|
|
3127
|
+
...v
|
|
3138
3128
|
})
|
|
3139
3129
|
}), /* @__PURE__ */ a(J, {
|
|
3140
3130
|
name: "role_id",
|
|
3141
3131
|
control: c,
|
|
3142
3132
|
render: ({
|
|
3143
|
-
field:
|
|
3144
|
-
}) => /* @__PURE__ */ a(
|
|
3133
|
+
field: v
|
|
3134
|
+
}) => /* @__PURE__ */ a(zr, {
|
|
3145
3135
|
styles: i,
|
|
3146
|
-
...
|
|
3136
|
+
...v
|
|
3147
3137
|
})
|
|
3148
3138
|
}), /* @__PURE__ */ a(Pr, {
|
|
3149
3139
|
my: 20,
|
|
@@ -3154,24 +3144,24 @@ function zo({
|
|
|
3154
3144
|
name: "reset_password",
|
|
3155
3145
|
control: c,
|
|
3156
3146
|
render: ({
|
|
3157
|
-
field:
|
|
3147
|
+
field: v
|
|
3158
3148
|
}) => /* @__PURE__ */ a(Jt, {
|
|
3159
3149
|
mb: i.spacing,
|
|
3160
3150
|
size: i.size,
|
|
3161
3151
|
label: "Reset password",
|
|
3162
|
-
checked:
|
|
3163
|
-
onChange: (x) =>
|
|
3152
|
+
checked: v.value,
|
|
3153
|
+
onChange: (x) => v.onChange(x.currentTarget.checked),
|
|
3164
3154
|
styles: {
|
|
3165
3155
|
label: {
|
|
3166
3156
|
verticalAlign: "middle"
|
|
3167
3157
|
}
|
|
3168
3158
|
}
|
|
3169
3159
|
})
|
|
3170
|
-
}),
|
|
3160
|
+
}), b && /* @__PURE__ */ a(J, {
|
|
3171
3161
|
name: "new_password",
|
|
3172
3162
|
control: c,
|
|
3173
3163
|
render: ({
|
|
3174
|
-
field:
|
|
3164
|
+
field: v
|
|
3175
3165
|
}) => /* @__PURE__ */ a(tr, {
|
|
3176
3166
|
autoComplete: "off",
|
|
3177
3167
|
mb: i.spacing,
|
|
@@ -3179,7 +3169,7 @@ function zo({
|
|
|
3179
3169
|
required: !0,
|
|
3180
3170
|
description: "Password must be at least 8 characters long",
|
|
3181
3171
|
label: "New Password",
|
|
3182
|
-
...
|
|
3172
|
+
...v
|
|
3183
3173
|
})
|
|
3184
3174
|
}), /* @__PURE__ */ a(se, {
|
|
3185
3175
|
position: "right",
|
|
@@ -3198,7 +3188,7 @@ function Do({
|
|
|
3198
3188
|
onSuccess: r,
|
|
3199
3189
|
styles: t = xe
|
|
3200
3190
|
}) {
|
|
3201
|
-
const [o, s] =
|
|
3191
|
+
const [o, s] = ke.useState(!1), i = () => s(!0), c = () => s(!1), u = () => {
|
|
3202
3192
|
r(), c();
|
|
3203
3193
|
};
|
|
3204
3194
|
return /* @__PURE__ */ I(Oe, {
|
|
@@ -3211,7 +3201,7 @@ function Do({
|
|
|
3211
3201
|
onDragStart: (d) => {
|
|
3212
3202
|
d.stopPropagation();
|
|
3213
3203
|
},
|
|
3214
|
-
children: /* @__PURE__ */ a(
|
|
3204
|
+
children: /* @__PURE__ */ a(ko, {
|
|
3215
3205
|
...e,
|
|
3216
3206
|
postSubmit: u,
|
|
3217
3207
|
styles: t
|
|
@@ -3226,17 +3216,17 @@ function Do({
|
|
|
3226
3216
|
})]
|
|
3227
3217
|
});
|
|
3228
3218
|
}
|
|
3229
|
-
function
|
|
3219
|
+
function ni({
|
|
3230
3220
|
styles: e = xe,
|
|
3231
3221
|
config: r
|
|
3232
3222
|
}) {
|
|
3233
|
-
var
|
|
3223
|
+
var m, b;
|
|
3234
3224
|
or(r);
|
|
3235
3225
|
const {
|
|
3236
3226
|
data: t = [],
|
|
3237
3227
|
loading: o,
|
|
3238
3228
|
refresh: s
|
|
3239
|
-
} =
|
|
3229
|
+
} = ze(async () => {
|
|
3240
3230
|
const {
|
|
3241
3231
|
data: h
|
|
3242
3232
|
} = await de.account.list();
|
|
@@ -3246,16 +3236,16 @@ function Qo({
|
|
|
3246
3236
|
}), {
|
|
3247
3237
|
data: i = [],
|
|
3248
3238
|
loading: c
|
|
3249
|
-
} =
|
|
3250
|
-
label:
|
|
3251
|
-
value:
|
|
3252
|
-
description:
|
|
3253
|
-
disabled:
|
|
3239
|
+
} = ze(async () => (await de.role.list()).map((v) => ({
|
|
3240
|
+
label: v.name,
|
|
3241
|
+
value: v.id,
|
|
3242
|
+
description: v.description,
|
|
3243
|
+
disabled: v.id === 50
|
|
3254
3244
|
})), {
|
|
3255
3245
|
refreshDeps: []
|
|
3256
|
-
}), u = pt(() => i.reduce((h,
|
|
3257
|
-
var
|
|
3258
|
-
return (
|
|
3246
|
+
}), u = pt(() => i.reduce((h, v) => (h.set(v.value, v.label), h), /* @__PURE__ */ new Map()), [i]), d = (h) => {
|
|
3247
|
+
var v;
|
|
3248
|
+
return (v = u.get(h)) != null ? v : h;
|
|
3259
3249
|
};
|
|
3260
3250
|
return /* @__PURE__ */ I(Oe, {
|
|
3261
3251
|
children: [/* @__PURE__ */ a(se, {
|
|
@@ -3263,9 +3253,9 @@ function Qo({
|
|
|
3263
3253
|
position: "right",
|
|
3264
3254
|
children: /* @__PURE__ */ a(Io, {
|
|
3265
3255
|
onSuccess: s,
|
|
3266
|
-
initialRoleID: (
|
|
3256
|
+
initialRoleID: (b = (m = i == null ? void 0 : i[0]) == null ? void 0 : m.value) != null ? b : 0
|
|
3267
3257
|
})
|
|
3268
|
-
}), /* @__PURE__ */ I(
|
|
3258
|
+
}), /* @__PURE__ */ I(ve, {
|
|
3269
3259
|
mt: e.spacing,
|
|
3270
3260
|
sx: {
|
|
3271
3261
|
position: "relative"
|
|
@@ -3292,10 +3282,10 @@ function Qo({
|
|
|
3292
3282
|
}), /* @__PURE__ */ a("tbody", {
|
|
3293
3283
|
children: t.map((h) => {
|
|
3294
3284
|
const {
|
|
3295
|
-
id:
|
|
3285
|
+
id: v,
|
|
3296
3286
|
name: x,
|
|
3297
3287
|
email: Y,
|
|
3298
|
-
role_id:
|
|
3288
|
+
role_id: k
|
|
3299
3289
|
} = h;
|
|
3300
3290
|
return /* @__PURE__ */ I("tr", {
|
|
3301
3291
|
children: [/* @__PURE__ */ a("td", {
|
|
@@ -3306,7 +3296,7 @@ function Qo({
|
|
|
3306
3296
|
children: Y
|
|
3307
3297
|
}), /* @__PURE__ */ a("td", {
|
|
3308
3298
|
width: 200,
|
|
3309
|
-
children: d(
|
|
3299
|
+
children: d(k)
|
|
3310
3300
|
}), /* @__PURE__ */ a("td", {
|
|
3311
3301
|
width: 200,
|
|
3312
3302
|
children: /* @__PURE__ */ I(se, {
|
|
@@ -3314,14 +3304,14 @@ function Qo({
|
|
|
3314
3304
|
children: [/* @__PURE__ */ a(Do, {
|
|
3315
3305
|
account: h,
|
|
3316
3306
|
onSuccess: s
|
|
3317
|
-
}), /* @__PURE__ */ a(
|
|
3318
|
-
id:
|
|
3307
|
+
}), /* @__PURE__ */ a(zo, {
|
|
3308
|
+
id: v,
|
|
3319
3309
|
name: x,
|
|
3320
3310
|
onSuccess: s
|
|
3321
3311
|
})]
|
|
3322
3312
|
})
|
|
3323
3313
|
})]
|
|
3324
|
-
},
|
|
3314
|
+
}, v);
|
|
3325
3315
|
})
|
|
3326
3316
|
})]
|
|
3327
3317
|
})]
|
|
@@ -3341,7 +3331,7 @@ function qo({
|
|
|
3341
3331
|
password: ""
|
|
3342
3332
|
}
|
|
3343
3333
|
});
|
|
3344
|
-
return /* @__PURE__ */ a(
|
|
3334
|
+
return /* @__PURE__ */ a(ve, {
|
|
3345
3335
|
mx: "auto",
|
|
3346
3336
|
children: /* @__PURE__ */ I("form", {
|
|
3347
3337
|
onSubmit: o(async ({
|
|
@@ -3407,13 +3397,13 @@ function qo({
|
|
|
3407
3397
|
})
|
|
3408
3398
|
});
|
|
3409
3399
|
}
|
|
3410
|
-
function
|
|
3400
|
+
function oi({
|
|
3411
3401
|
styles: e = xe,
|
|
3412
3402
|
config: r,
|
|
3413
3403
|
onSuccess: t
|
|
3414
3404
|
}) {
|
|
3415
3405
|
return or(r), /* @__PURE__ */ a(Oe, {
|
|
3416
|
-
children: /* @__PURE__ */ a(
|
|
3406
|
+
children: /* @__PURE__ */ a(ve, {
|
|
3417
3407
|
mt: e.spacing,
|
|
3418
3408
|
sx: {
|
|
3419
3409
|
position: "relative"
|
|
@@ -3432,7 +3422,7 @@ const sr = {
|
|
|
3432
3422
|
size: "xs"
|
|
3433
3423
|
}
|
|
3434
3424
|
};
|
|
3435
|
-
function
|
|
3425
|
+
function Fo({
|
|
3436
3426
|
postSubmit: e,
|
|
3437
3427
|
styles: r = sr,
|
|
3438
3428
|
initialRoleID: t
|
|
@@ -3446,7 +3436,7 @@ function $o({
|
|
|
3446
3436
|
role_id: t
|
|
3447
3437
|
}
|
|
3448
3438
|
});
|
|
3449
|
-
return /* @__PURE__ */ a(
|
|
3439
|
+
return /* @__PURE__ */ a(ve, {
|
|
3450
3440
|
mx: "auto",
|
|
3451
3441
|
children: /* @__PURE__ */ I("form", {
|
|
3452
3442
|
onSubmit: s(async ({
|
|
@@ -3462,14 +3452,14 @@ function $o({
|
|
|
3462
3452
|
});
|
|
3463
3453
|
const {
|
|
3464
3454
|
app_id: d,
|
|
3465
|
-
app_secret:
|
|
3455
|
+
app_secret: m
|
|
3466
3456
|
} = await de.api_key.create(c, u);
|
|
3467
3457
|
le({
|
|
3468
3458
|
id: "for-creating",
|
|
3469
3459
|
title: "Successful",
|
|
3470
3460
|
message: "API Key is added",
|
|
3471
3461
|
color: "green"
|
|
3472
|
-
}), e(d,
|
|
3462
|
+
}), e(d, m);
|
|
3473
3463
|
} catch (d) {
|
|
3474
3464
|
le({
|
|
3475
3465
|
id: "for-creating",
|
|
@@ -3496,7 +3486,7 @@ function $o({
|
|
|
3496
3486
|
control: o,
|
|
3497
3487
|
render: ({
|
|
3498
3488
|
field: c
|
|
3499
|
-
}) => /* @__PURE__ */ a(
|
|
3489
|
+
}) => /* @__PURE__ */ a(zr, {
|
|
3500
3490
|
styles: r,
|
|
3501
3491
|
...c
|
|
3502
3492
|
})
|
|
@@ -3512,12 +3502,12 @@ function $o({
|
|
|
3512
3502
|
})
|
|
3513
3503
|
});
|
|
3514
3504
|
}
|
|
3515
|
-
function
|
|
3505
|
+
function $o({
|
|
3516
3506
|
onSuccess: e,
|
|
3517
3507
|
styles: r = sr,
|
|
3518
3508
|
initialRoleID: t
|
|
3519
3509
|
}) {
|
|
3520
|
-
const o = nr(), [s, i] =
|
|
3510
|
+
const o = nr(), [s, i] = ke.useState(!1), c = () => i(!0), u = () => i(!1);
|
|
3521
3511
|
return /* @__PURE__ */ I(Oe, {
|
|
3522
3512
|
children: [/* @__PURE__ */ a(Be, {
|
|
3523
3513
|
overflow: "inside",
|
|
@@ -3525,11 +3515,11 @@ function Fo({
|
|
|
3525
3515
|
onClose: () => i(!1),
|
|
3526
3516
|
title: "Add an API Key",
|
|
3527
3517
|
trapFocus: !0,
|
|
3528
|
-
onDragStart: (
|
|
3529
|
-
|
|
3518
|
+
onDragStart: (m) => {
|
|
3519
|
+
m.stopPropagation();
|
|
3530
3520
|
},
|
|
3531
|
-
children: /* @__PURE__ */ a(
|
|
3532
|
-
postSubmit: (
|
|
3521
|
+
children: /* @__PURE__ */ a(Fo, {
|
|
3522
|
+
postSubmit: (m, b) => {
|
|
3533
3523
|
u(), o.openModal({
|
|
3534
3524
|
title: "API Key is generated",
|
|
3535
3525
|
children: /* @__PURE__ */ I(Rr, {
|
|
@@ -3537,7 +3527,7 @@ function Fo({
|
|
|
3537
3527
|
color: "dimmed",
|
|
3538
3528
|
children: "Make sure you save it - you won't be able to access it again."
|
|
3539
3529
|
}), /* @__PURE__ */ a(fe, {
|
|
3540
|
-
defaultValue:
|
|
3530
|
+
defaultValue: m,
|
|
3541
3531
|
disabled: !0,
|
|
3542
3532
|
label: "APP ID",
|
|
3543
3533
|
styles: {
|
|
@@ -3546,7 +3536,7 @@ function Fo({
|
|
|
3546
3536
|
}
|
|
3547
3537
|
}
|
|
3548
3538
|
}), /* @__PURE__ */ a(fe, {
|
|
3549
|
-
defaultValue:
|
|
3539
|
+
defaultValue: b,
|
|
3550
3540
|
disabled: !0,
|
|
3551
3541
|
label: "APP Secret",
|
|
3552
3542
|
styles: {
|
|
@@ -3557,7 +3547,7 @@ function Fo({
|
|
|
3557
3547
|
}), /* @__PURE__ */ a(oe, {
|
|
3558
3548
|
size: "sm",
|
|
3559
3549
|
onClick: () => {
|
|
3560
|
-
|
|
3550
|
+
ln();
|
|
3561
3551
|
},
|
|
3562
3552
|
children: "I've saved this API Key"
|
|
3563
3553
|
})]
|
|
@@ -3629,17 +3619,17 @@ function Lo({
|
|
|
3629
3619
|
children: "Delete"
|
|
3630
3620
|
});
|
|
3631
3621
|
}
|
|
3632
|
-
function
|
|
3622
|
+
function ii({
|
|
3633
3623
|
styles: e = sr,
|
|
3634
3624
|
config: r
|
|
3635
3625
|
}) {
|
|
3636
|
-
var
|
|
3626
|
+
var m, b;
|
|
3637
3627
|
or(r);
|
|
3638
3628
|
const {
|
|
3639
3629
|
data: t = [],
|
|
3640
3630
|
loading: o,
|
|
3641
3631
|
refresh: s
|
|
3642
|
-
} =
|
|
3632
|
+
} = ze(async () => {
|
|
3643
3633
|
const {
|
|
3644
3634
|
data: h
|
|
3645
3635
|
} = await de.api_key.list();
|
|
@@ -3649,26 +3639,26 @@ function ei({
|
|
|
3649
3639
|
}), {
|
|
3650
3640
|
data: i = [],
|
|
3651
3641
|
loading: c
|
|
3652
|
-
} =
|
|
3653
|
-
label:
|
|
3654
|
-
value:
|
|
3655
|
-
description:
|
|
3656
|
-
disabled:
|
|
3642
|
+
} = ze(async () => (await de.role.list()).map((v) => ({
|
|
3643
|
+
label: v.name,
|
|
3644
|
+
value: v.id,
|
|
3645
|
+
description: v.description,
|
|
3646
|
+
disabled: v.id === 50
|
|
3657
3647
|
})), {
|
|
3658
3648
|
refreshDeps: []
|
|
3659
|
-
}), u = pt(() => i.reduce((h,
|
|
3660
|
-
var
|
|
3661
|
-
return (
|
|
3649
|
+
}), u = pt(() => i.reduce((h, v) => (h.set(v.value, v.label), h), /* @__PURE__ */ new Map()), [i]), d = (h) => {
|
|
3650
|
+
var v;
|
|
3651
|
+
return (v = u.get(h)) != null ? v : h;
|
|
3662
3652
|
};
|
|
3663
3653
|
return /* @__PURE__ */ I(Oe, {
|
|
3664
3654
|
children: [/* @__PURE__ */ a(se, {
|
|
3665
3655
|
pt: e.spacing,
|
|
3666
3656
|
position: "right",
|
|
3667
|
-
children: /* @__PURE__ */ a(
|
|
3657
|
+
children: /* @__PURE__ */ a($o, {
|
|
3668
3658
|
onSuccess: s,
|
|
3669
|
-
initialRoleID: (
|
|
3659
|
+
initialRoleID: (b = (m = i == null ? void 0 : i[0]) == null ? void 0 : m.value) != null ? b : 0
|
|
3670
3660
|
})
|
|
3671
|
-
}), /* @__PURE__ */ I(
|
|
3661
|
+
}), /* @__PURE__ */ I(ve, {
|
|
3672
3662
|
mt: e.spacing,
|
|
3673
3663
|
sx: {
|
|
3674
3664
|
position: "relative"
|
|
@@ -3695,10 +3685,10 @@ function ei({
|
|
|
3695
3685
|
}), /* @__PURE__ */ a("tbody", {
|
|
3696
3686
|
children: t.map((h) => {
|
|
3697
3687
|
const {
|
|
3698
|
-
id:
|
|
3688
|
+
id: v,
|
|
3699
3689
|
name: x,
|
|
3700
3690
|
app_id: Y,
|
|
3701
|
-
role_id:
|
|
3691
|
+
role_id: k
|
|
3702
3692
|
} = h;
|
|
3703
3693
|
return /* @__PURE__ */ I("tr", {
|
|
3704
3694
|
children: [/* @__PURE__ */ a("td", {
|
|
@@ -3709,36 +3699,36 @@ function ei({
|
|
|
3709
3699
|
children: Y
|
|
3710
3700
|
}), /* @__PURE__ */ a("td", {
|
|
3711
3701
|
width: 200,
|
|
3712
|
-
children: d(
|
|
3702
|
+
children: d(k)
|
|
3713
3703
|
}), /* @__PURE__ */ a("td", {
|
|
3714
3704
|
width: 200,
|
|
3715
3705
|
children: /* @__PURE__ */ a(se, {
|
|
3716
3706
|
position: "left",
|
|
3717
3707
|
children: /* @__PURE__ */ a(Lo, {
|
|
3718
|
-
id:
|
|
3708
|
+
id: v,
|
|
3719
3709
|
name: x,
|
|
3720
3710
|
onSuccess: s
|
|
3721
3711
|
})
|
|
3722
3712
|
})
|
|
3723
3713
|
})]
|
|
3724
|
-
},
|
|
3714
|
+
}, v);
|
|
3725
3715
|
})
|
|
3726
3716
|
})]
|
|
3727
3717
|
})]
|
|
3728
3718
|
})]
|
|
3729
3719
|
});
|
|
3730
3720
|
}
|
|
3731
|
-
const
|
|
3721
|
+
const ai = () => import("./package.b74d5f91.mjs").then(({ version: e }) => (console.log(`[@devtable/dashboard] version: ${e}`), e));
|
|
3732
3722
|
export {
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3723
|
+
ii as APIKeyList,
|
|
3724
|
+
ni as AccountList,
|
|
3725
|
+
$o as AddAPIKey,
|
|
3736
3726
|
Io as AddAccount,
|
|
3737
3727
|
Ro as AddDataSource,
|
|
3738
|
-
|
|
3728
|
+
ti as DataSourceList,
|
|
3739
3729
|
Lo as DeleteAPIKey,
|
|
3740
|
-
|
|
3730
|
+
zo as DeleteAccount,
|
|
3741
3731
|
jo as DeleteDataSource,
|
|
3742
|
-
|
|
3743
|
-
|
|
3732
|
+
oi as Login,
|
|
3733
|
+
ai as getVersion
|
|
3744
3734
|
};
|