@qwickapps/server 1.8.2 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/README.md +4 -4
- package/dist/src/core/control-panel.d.ts.map +1 -1
- package/dist/src/core/control-panel.js +2 -1
- package/dist/src/core/control-panel.js.map +1 -1
- package/dist/src/core/gateway.d.ts.map +1 -1
- package/dist/src/core/gateway.js +25 -26
- package/dist/src/core/gateway.js.map +1 -1
- package/dist/src/plugins/auth/adapters/supertokens-adapter.d.ts.map +1 -1
- package/dist/src/plugins/auth/adapters/supertokens-adapter.js +50 -11
- package/dist/src/plugins/auth/adapters/supertokens-adapter.js.map +1 -1
- package/dist/src/plugins/auth/auth-plugin.d.ts.map +1 -1
- package/dist/src/plugins/auth/auth-plugin.js +6 -5
- package/dist/src/plugins/auth/auth-plugin.js.map +1 -1
- package/dist/src/plugins/auth/env-config.d.ts.map +1 -1
- package/dist/src/plugins/auth/env-config.js +4 -0
- package/dist/src/plugins/auth/env-config.js.map +1 -1
- package/dist/src/plugins/auth/types.d.ts +8 -0
- package/dist/src/plugins/auth/types.d.ts.map +1 -1
- package/dist/src/plugins/auth/types.js.map +1 -1
- package/dist/src/plugins/maintenance/seed-executor.d.ts.map +1 -1
- package/dist/src/plugins/maintenance/seed-executor.js +5 -4
- package/dist/src/plugins/maintenance/seed-executor.js.map +1 -1
- package/dist/src/plugins/maintenance-plugin.d.ts.map +1 -1
- package/dist/src/plugins/maintenance-plugin.js +26 -4
- package/dist/src/plugins/maintenance-plugin.js.map +1 -1
- package/dist/src/plugins/postgres-plugin.d.ts +17 -0
- package/dist/src/plugins/postgres-plugin.d.ts.map +1 -1
- package/dist/src/plugins/postgres-plugin.js +36 -11
- package/dist/src/plugins/postgres-plugin.js.map +1 -1
- package/dist/src/plugins/rate-limit/env-config.d.ts +1 -1
- package/dist/src/plugins/rate-limit/env-config.js +4 -4
- package/dist/src/plugins/rate-limit/env-config.js.map +1 -1
- package/dist/src/utils/index.d.ts +2 -0
- package/dist/src/utils/index.d.ts.map +1 -0
- package/dist/src/utils/index.js +2 -0
- package/dist/src/utils/index.js.map +1 -0
- package/dist/src/utils/url.d.ts +9 -0
- package/dist/src/utils/url.d.ts.map +1 -0
- package/dist/src/utils/url.js +25 -0
- package/dist/src/utils/url.js.map +1 -0
- package/dist/ui/src/dashboard/widgets/AuthStatusWidget.d.ts.map +1 -1
- package/dist/ui/src/dashboard/widgets/AuthStatusWidget.js +1 -1
- package/dist/ui/src/dashboard/widgets/AuthStatusWidget.js.map +1 -1
- package/dist/ui/src/dashboard/widgets/DatabaseOperationsWidget.d.ts.map +1 -1
- package/dist/ui/src/dashboard/widgets/DatabaseOperationsWidget.js +1 -1
- package/dist/ui/src/dashboard/widgets/DatabaseOperationsWidget.js.map +1 -1
- package/dist-ui/assets/{index-De-dCl_t.css → index-BB_TF4Cq.css} +1 -1
- package/dist-ui/assets/index-BdwcYEzG.js +532 -0
- package/dist-ui/assets/{index-Cez_jyhl.js.map → index-BdwcYEzG.js.map} +1 -1
- package/dist-ui/index.html +2 -2
- package/dist-ui-lib/index.js +69 -65
- package/dist-ui-lib/index.js.map +1 -1
- package/package.json +27 -25
- package/src/core/control-panel.ts +2 -1
- package/src/core/gateway.ts +28 -29
- package/src/plugins/auth/adapters/supertokens-adapter.ts +54 -13
- package/src/plugins/auth/auth-plugin.ts +6 -5
- package/src/plugins/auth/env-config.ts +4 -0
- package/src/plugins/auth/types.ts +11 -0
- package/src/plugins/maintenance/seed-executor.ts +5 -4
- package/src/plugins/maintenance-plugin.ts +28 -4
- package/src/plugins/postgres-plugin.test.ts +78 -0
- package/src/plugins/postgres-plugin.ts +39 -11
- package/src/plugins/rate-limit/env-config.ts +4 -4
- package/src/utils/index.ts +1 -0
- package/src/utils/url.test.ts +43 -0
- package/src/utils/url.ts +21 -0
- package/ui/src/dashboard/widgets/AuthStatusWidget.tsx +3 -8
- package/ui/src/dashboard/widgets/DatabaseOperationsWidget.tsx +17 -8
- package/dist-ui/assets/index-Cez_jyhl.js +0 -532
package/dist-ui/index.html
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>Control Panel</title>
|
|
7
|
-
<script type="module" crossorigin src="/assets/index-
|
|
8
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
7
|
+
<script type="module" crossorigin src="/assets/index-BdwcYEzG.js"></script>
|
|
8
|
+
<link rel="stylesheet" crossorigin href="/assets/index-BB_TF4Cq.css">
|
|
9
9
|
</head>
|
|
10
10
|
<body>
|
|
11
11
|
<div id="root"></div>
|
package/dist-ui-lib/index.js
CHANGED
|
@@ -26,13 +26,13 @@ const Ka = Wa.create().withName("Control Panel").withId("com.qwickapps.control-p
|
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
28
|
}, qa = Ga();
|
|
29
|
-
function
|
|
29
|
+
function ht(e, ...r) {
|
|
30
30
|
const n = new URL(`https://mui.com/production-error/?code=${e}`);
|
|
31
31
|
return r.forEach((a) => n.searchParams.append("args[]", a)), `Minified MUI error #${e}; visit ${n} for the full message.`;
|
|
32
32
|
}
|
|
33
33
|
function ut(e) {
|
|
34
34
|
if (typeof e != "string")
|
|
35
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." :
|
|
35
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." : ht(7));
|
|
36
36
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
37
37
|
}
|
|
38
38
|
function jn(e) {
|
|
@@ -92,7 +92,7 @@ function Ut(e, r) {
|
|
|
92
92
|
// No need to clone deep, it's way faster.
|
|
93
93
|
}) : e;
|
|
94
94
|
}
|
|
95
|
-
const
|
|
95
|
+
const at = process.env.NODE_ENV !== "production" ? ae.oneOfType([ae.number, ae.string, ae.object, ae.array]) : {};
|
|
96
96
|
function rn(e, r) {
|
|
97
97
|
if (!e.containerQueries)
|
|
98
98
|
return r;
|
|
@@ -115,8 +115,11 @@ function Ya(e, r) {
|
|
|
115
115
|
const n = r.match(/^@([^/]+)?\/?(.+)?$/);
|
|
116
116
|
if (!n) {
|
|
117
117
|
if (process.env.NODE_ENV !== "production")
|
|
118
|
-
throw
|
|
119
|
-
|
|
118
|
+
throw (
|
|
119
|
+
/* minify-error */
|
|
120
|
+
new Error(`MUI: The provided shorthand ${`(${r})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
|
|
121
|
+
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`)
|
|
122
|
+
);
|
|
120
123
|
return null;
|
|
121
124
|
}
|
|
122
125
|
const [, a, o] = n, i = Number.isNaN(+a) ? a || 0 : +a;
|
|
@@ -229,7 +232,7 @@ function ge(e) {
|
|
|
229
232
|
});
|
|
230
233
|
};
|
|
231
234
|
return i.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
232
|
-
[r]:
|
|
235
|
+
[r]: at
|
|
233
236
|
} : {}, i.filterProps = [r], i;
|
|
234
237
|
}
|
|
235
238
|
function to(e) {
|
|
@@ -297,14 +300,14 @@ function Vn(e, r) {
|
|
|
297
300
|
function fe(e) {
|
|
298
301
|
return Vn(e, hr);
|
|
299
302
|
}
|
|
300
|
-
fe.propTypes = process.env.NODE_ENV !== "production" ? hr.reduce((e, r) => (e[r] =
|
|
303
|
+
fe.propTypes = process.env.NODE_ENV !== "production" ? hr.reduce((e, r) => (e[r] = at, e), {}) : {};
|
|
301
304
|
fe.filterProps = hr;
|
|
302
305
|
function pe(e) {
|
|
303
306
|
return Vn(e, ur);
|
|
304
307
|
}
|
|
305
|
-
pe.propTypes = process.env.NODE_ENV !== "production" ? ur.reduce((e, r) => (e[r] =
|
|
308
|
+
pe.propTypes = process.env.NODE_ENV !== "production" ? ur.reduce((e, r) => (e[r] = at, e), {}) : {};
|
|
306
309
|
pe.filterProps = ur;
|
|
307
|
-
process.env.NODE_ENV !== "production" && oo.reduce((e, r) => (e[r] =
|
|
310
|
+
process.env.NODE_ENV !== "production" && oo.reduce((e, r) => (e[r] = at, e), {});
|
|
308
311
|
function mr(...e) {
|
|
309
312
|
const r = e.reduce((a, o) => (o.filterProps.forEach((i) => {
|
|
310
313
|
a[i] = o;
|
|
@@ -331,7 +334,7 @@ const lo = Re("border", Oe), co = Re("borderTop", Oe), ho = Re("borderRight", Oe
|
|
|
331
334
|
return null;
|
|
332
335
|
};
|
|
333
336
|
fr.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
334
|
-
borderRadius:
|
|
337
|
+
borderRadius: at
|
|
335
338
|
} : {};
|
|
336
339
|
fr.filterProps = ["borderRadius"];
|
|
337
340
|
mr(lo, co, ho, uo, mo, fo, po, go, yo, bo, fr, vo, xo);
|
|
@@ -345,7 +348,7 @@ const pr = (e) => {
|
|
|
345
348
|
return null;
|
|
346
349
|
};
|
|
347
350
|
pr.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
348
|
-
gap:
|
|
351
|
+
gap: at
|
|
349
352
|
} : {};
|
|
350
353
|
pr.filterProps = ["gap"];
|
|
351
354
|
const gr = (e) => {
|
|
@@ -358,7 +361,7 @@ const gr = (e) => {
|
|
|
358
361
|
return null;
|
|
359
362
|
};
|
|
360
363
|
gr.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
361
|
-
columnGap:
|
|
364
|
+
columnGap: at
|
|
362
365
|
} : {};
|
|
363
366
|
gr.filterProps = ["columnGap"];
|
|
364
367
|
const yr = (e) => {
|
|
@@ -371,7 +374,7 @@ const yr = (e) => {
|
|
|
371
374
|
return null;
|
|
372
375
|
};
|
|
373
376
|
yr.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
374
|
-
rowGap:
|
|
377
|
+
rowGap: at
|
|
375
378
|
} : {};
|
|
376
379
|
yr.filterProps = ["rowGap"];
|
|
377
380
|
const Co = ge({
|
|
@@ -1027,7 +1030,7 @@ function qo(e, r, n) {
|
|
|
1027
1030
|
};
|
|
1028
1031
|
}
|
|
1029
1032
|
/**
|
|
1030
|
-
* @mui/styled-engine v7.3.
|
|
1033
|
+
* @mui/styled-engine v7.3.8
|
|
1031
1034
|
*
|
|
1032
1035
|
* @license MIT
|
|
1033
1036
|
* This source code is licensed under the MIT license found in the
|
|
@@ -1045,7 +1048,7 @@ function Qo(e, r) {
|
|
|
1045
1048
|
Array.isArray(e.__emotion_styles) && (e.__emotion_styles = r(e.__emotion_styles));
|
|
1046
1049
|
}
|
|
1047
1050
|
const dn = [];
|
|
1048
|
-
function
|
|
1051
|
+
function dt(e) {
|
|
1049
1052
|
return dn[0] = e, qo(dn);
|
|
1050
1053
|
}
|
|
1051
1054
|
const Yo = (e) => {
|
|
@@ -1221,18 +1224,18 @@ function Jn(e) {
|
|
|
1221
1224
|
...n
|
|
1222
1225
|
} = e, a = {
|
|
1223
1226
|
variants: r,
|
|
1224
|
-
style:
|
|
1227
|
+
style: dt(n),
|
|
1225
1228
|
isProcessed: !0
|
|
1226
1229
|
};
|
|
1227
1230
|
return a.style === n || r && r.forEach((o) => {
|
|
1228
|
-
typeof o.style != "function" && (o.style =
|
|
1231
|
+
typeof o.style != "function" && (o.style = dt(o.style));
|
|
1229
1232
|
}), a;
|
|
1230
1233
|
}
|
|
1231
1234
|
const ai = Gn();
|
|
1232
1235
|
function kr(e) {
|
|
1233
1236
|
return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
|
|
1234
1237
|
}
|
|
1235
|
-
function
|
|
1238
|
+
function ct(e, r) {
|
|
1236
1239
|
return r && e && typeof e == "object" && e.styles && !e.styles.startsWith("@layer") && (e.styles = `@layer ${r}{${String(e.styles)}}`), e;
|
|
1237
1240
|
}
|
|
1238
1241
|
function oi(e) {
|
|
@@ -1248,17 +1251,17 @@ function tr(e, r, n) {
|
|
|
1248
1251
|
if (Array.isArray(a == null ? void 0 : a.variants)) {
|
|
1249
1252
|
let o;
|
|
1250
1253
|
if (a.isProcessed)
|
|
1251
|
-
o = n ?
|
|
1254
|
+
o = n ? ct(a.style, n) : a.style;
|
|
1252
1255
|
else {
|
|
1253
1256
|
const {
|
|
1254
1257
|
variants: i,
|
|
1255
1258
|
...l
|
|
1256
1259
|
} = a;
|
|
1257
|
-
o = n ? dt(
|
|
1260
|
+
o = n ? ct(dt(l), n) : l;
|
|
1258
1261
|
}
|
|
1259
1262
|
return Qn(e, a.variants, [o], n);
|
|
1260
1263
|
}
|
|
1261
|
-
return a != null && a.isProcessed ? n ? dt(
|
|
1264
|
+
return a != null && a.isProcessed ? n ? ct(dt(a.style), n) : a.style : n ? ct(dt(a), n) : a;
|
|
1262
1265
|
}
|
|
1263
1266
|
function Qn(e, r, n = [], a = void 0) {
|
|
1264
1267
|
var i;
|
|
@@ -1280,7 +1283,7 @@ function Qn(e, r, n = [], a = void 0) {
|
|
|
1280
1283
|
...e,
|
|
1281
1284
|
...e.ownerState,
|
|
1282
1285
|
ownerState: e.ownerState
|
|
1283
|
-
}), n.push(a ? dt(
|
|
1286
|
+
}), n.push(a ? ct(dt(c.style(o)), a) : c.style(o))) : n.push(a ? ct(dt(c.style), a) : c.style);
|
|
1284
1287
|
}
|
|
1285
1288
|
return n;
|
|
1286
1289
|
}
|
|
@@ -1326,7 +1329,7 @@ function si(e = {}) {
|
|
|
1326
1329
|
if (Ve(D)) {
|
|
1327
1330
|
const U = Jn(D);
|
|
1328
1331
|
return function(B) {
|
|
1329
|
-
return U.variants ? tr(B, U, B.theme.modularCssLayers ? T : void 0) : B.theme.modularCssLayers ?
|
|
1332
|
+
return U.variants ? tr(B, U, B.theme.modularCssLayers ? T : void 0) : B.theme.modularCssLayers ? ct(U.style, T) : U.style;
|
|
1330
1333
|
};
|
|
1331
1334
|
}
|
|
1332
1335
|
return D;
|
|
@@ -1424,20 +1427,20 @@ function mi(e) {
|
|
|
1424
1427
|
let n = e.match(r);
|
|
1425
1428
|
return n && n[0].length === 1 && (n = n.map((a) => a + a)), process.env.NODE_ENV !== "production" && e.length !== e.trim().length && console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`), n ? `rgb${n.length === 4 ? "a" : ""}(${n.map((a, o) => o < 3 ? parseInt(a, 16) : Math.round(parseInt(a, 16) / 255 * 1e3) / 1e3).join(", ")})` : "";
|
|
1426
1429
|
}
|
|
1427
|
-
function
|
|
1430
|
+
function nt(e) {
|
|
1428
1431
|
if (e.type)
|
|
1429
1432
|
return e;
|
|
1430
1433
|
if (e.charAt(0) === "#")
|
|
1431
|
-
return
|
|
1434
|
+
return nt(mi(e));
|
|
1432
1435
|
const r = e.indexOf("("), n = e.substring(0, r);
|
|
1433
1436
|
if (!["rgb", "rgba", "hsl", "hsla", "color"].includes(n))
|
|
1434
1437
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${e}\` color.
|
|
1435
|
-
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` :
|
|
1438
|
+
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : ht(9, e));
|
|
1436
1439
|
let a = e.substring(r + 1, e.length - 1), o;
|
|
1437
1440
|
if (n === "color") {
|
|
1438
1441
|
if (a = a.split(" "), o = a.shift(), a.length === 4 && a[3].charAt(0) === "/" && (a[3] = a[3].slice(1)), !["srgb", "display-p3", "a98-rgb", "prophoto-rgb", "rec-2020"].includes(o))
|
|
1439
1442
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: unsupported \`${o}\` color space.
|
|
1440
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` :
|
|
1443
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : ht(10, o));
|
|
1441
1444
|
} else
|
|
1442
1445
|
a = a.split(",");
|
|
1443
1446
|
return a = a.map((i) => parseFloat(i)), {
|
|
@@ -1447,7 +1450,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
1447
1450
|
};
|
|
1448
1451
|
}
|
|
1449
1452
|
const fi = (e) => {
|
|
1450
|
-
const r =
|
|
1453
|
+
const r = nt(e);
|
|
1451
1454
|
return r.values.slice(0, 3).map((n, a) => r.type.includes("hsl") && a !== 0 ? `${n}%` : n).join(" ");
|
|
1452
1455
|
}, jt = (e, r) => {
|
|
1453
1456
|
try {
|
|
@@ -1467,7 +1470,7 @@ function vr(e) {
|
|
|
1467
1470
|
return r.includes("rgb") ? a = a.map((o, i) => i < 3 ? parseInt(o, 10) : o) : r.includes("hsl") && (a[1] = `${a[1]}%`, a[2] = `${a[2]}%`), r.includes("color") ? a = `${n} ${a.join(" ")}` : a = `${a.join(", ")}`, `${r}(${a})`;
|
|
1468
1471
|
}
|
|
1469
1472
|
function Xn(e) {
|
|
1470
|
-
e =
|
|
1473
|
+
e = nt(e);
|
|
1471
1474
|
const {
|
|
1472
1475
|
values: r
|
|
1473
1476
|
} = e, n = r[0], a = r[1] / 100, o = r[2] / 100, i = a * Math.min(o, 1 - o), l = (u, p = (u + n / 30) % 12) => o - i * Math.max(Math.min(p - 3, 9 - p, 1), -1);
|
|
@@ -1479,8 +1482,8 @@ function Xn(e) {
|
|
|
1479
1482
|
});
|
|
1480
1483
|
}
|
|
1481
1484
|
function Nr(e) {
|
|
1482
|
-
e =
|
|
1483
|
-
let r = e.type === "hsl" || e.type === "hsla" ?
|
|
1485
|
+
e = nt(e);
|
|
1486
|
+
let r = e.type === "hsl" || e.type === "hsla" ? nt(Xn(e)).values : e.values;
|
|
1484
1487
|
return r = r.map((n) => (e.type !== "color" && (n /= 255), n <= 0.03928 ? n / 12.92 : ((n + 0.055) / 1.055) ** 2.4)), Number((0.2126 * r[0] + 0.7152 * r[1] + 0.0722 * r[2]).toFixed(3));
|
|
1485
1488
|
}
|
|
1486
1489
|
function un(e, r) {
|
|
@@ -1488,9 +1491,9 @@ function un(e, r) {
|
|
|
1488
1491
|
return (Math.max(n, a) + 0.05) / (Math.min(n, a) + 0.05);
|
|
1489
1492
|
}
|
|
1490
1493
|
function Zn(e, r) {
|
|
1491
|
-
return e =
|
|
1494
|
+
return e = nt(e), r = Fr(r), (e.type === "rgb" || e.type === "hsl") && (e.type += "a"), e.type === "color" ? e.values[3] = `/${r}` : e.values[3] = r, vr(e);
|
|
1492
1495
|
}
|
|
1493
|
-
function
|
|
1496
|
+
function lt(e, r, n) {
|
|
1494
1497
|
try {
|
|
1495
1498
|
return Zn(e, r);
|
|
1496
1499
|
} catch {
|
|
@@ -1498,7 +1501,7 @@ function ct(e, r, n) {
|
|
|
1498
1501
|
}
|
|
1499
1502
|
}
|
|
1500
1503
|
function xr(e, r) {
|
|
1501
|
-
if (e =
|
|
1504
|
+
if (e = nt(e), r = Fr(r), e.type.includes("hsl"))
|
|
1502
1505
|
e.values[2] *= 1 - r;
|
|
1503
1506
|
else if (e.type.includes("rgb") || e.type.includes("color"))
|
|
1504
1507
|
for (let n = 0; n < 3; n += 1)
|
|
@@ -1513,7 +1516,7 @@ function le(e, r, n) {
|
|
|
1513
1516
|
}
|
|
1514
1517
|
}
|
|
1515
1518
|
function Cr(e, r) {
|
|
1516
|
-
if (e =
|
|
1519
|
+
if (e = nt(e), r = Fr(r), e.type.includes("hsl"))
|
|
1517
1520
|
e.values[2] += (100 - e.values[2]) * r;
|
|
1518
1521
|
else if (e.type.includes("rgb"))
|
|
1519
1522
|
for (let n = 0; n < 3; n += 1)
|
|
@@ -1985,7 +1988,7 @@ function Ur(e) {
|
|
|
1985
1988
|
...$
|
|
1986
1989
|
}, !$.main && $[O] && ($.main = $[O]), !$.hasOwnProperty("main"))
|
|
1987
1990
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${N ? ` (${N})` : ""} provided to augmentColor(color) is invalid.
|
|
1988
|
-
The color object needs to have a \`main\` property or a \`${O}\` property.` :
|
|
1991
|
+
The color object needs to have a \`main\` property or a \`${O}\` property.` : ht(11, N ? ` (${N})` : "", O));
|
|
1989
1992
|
if (typeof $.main != "string")
|
|
1990
1993
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${N ? ` (${N})` : ""} provided to augmentColor(color) is invalid.
|
|
1991
1994
|
\`color.main\` should be a string, but \`${JSON.stringify($.main)}\` was provided instead.
|
|
@@ -2000,7 +2003,7 @@ const theme1 = createTheme({ palette: {
|
|
|
2000
2003
|
|
|
2001
2004
|
const theme2 = createTheme({ palette: {
|
|
2002
2005
|
primary: { main: green[500] },
|
|
2003
|
-
} });` :
|
|
2006
|
+
} });` : ht(12, N ? ` (${N})` : "", JSON.stringify($.main)));
|
|
2004
2007
|
return o ? (gn(o, $, "light", I, a), gn(o, $, "dark", b, a)) : (pn($, "light", I, a), pn($, "dark", b, a)), $.contrastText || ($.contrastText = y($.main)), $;
|
|
2005
2008
|
};
|
|
2006
2009
|
let x;
|
|
@@ -2306,7 +2309,7 @@ function _r(e = {}, ...r) {
|
|
|
2306
2309
|
if (e.vars && // The error should throw only for the root theme creation because user is not allowed to use a custom node `vars`.
|
|
2307
2310
|
// `generateThemeVars` is the closest identifier for checking that the `options` is a result of `createTheme` with CSS variables so that user can create new theme for nested ThemeProvider.
|
|
2308
2311
|
e.generateThemeVars === void 0)
|
|
2309
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature." :
|
|
2312
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature." : ht(20));
|
|
2310
2313
|
const g = Ur({
|
|
2311
2314
|
...i,
|
|
2312
2315
|
colorSpace: u
|
|
@@ -2527,7 +2530,7 @@ function as(e = {}, ...r) {
|
|
|
2527
2530
|
};
|
|
2528
2531
|
let I = x;
|
|
2529
2532
|
if ((y === "dark" && !("dark" in n) || y === "light" && !("light" in n)) && (I = !0), !I)
|
|
2530
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`colorSchemes.${y}\` option is either missing or invalid.` :
|
|
2533
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`colorSchemes.${y}\` option is either missing or invalid.` : ht(21, y));
|
|
2531
2534
|
let b;
|
|
2532
2535
|
l && (b = "oklch");
|
|
2533
2536
|
const k = Ir(b, O, I, p, y);
|
|
@@ -2555,19 +2558,19 @@ function as(e = {}, ...r) {
|
|
|
2555
2558
|
function C(R, V, he) {
|
|
2556
2559
|
if (b) {
|
|
2557
2560
|
let G;
|
|
2558
|
-
return R ===
|
|
2561
|
+
return R === lt && (G = `transparent ${((1 - he) * 100).toFixed(0)}%`), R === le && (G = `#000 ${(he * 100).toFixed(0)}%`), R === ce && (G = `#fff ${(he * 100).toFixed(0)}%`), `color-mix(in ${b}, ${V}, ${G})`;
|
|
2559
2562
|
}
|
|
2560
2563
|
return R(V, he);
|
|
2561
2564
|
}
|
|
2562
2565
|
if (ts(d, ["Alert", "AppBar", "Avatar", "Button", "Chip", "FilledInput", "LinearProgress", "Skeleton", "Slider", "SnackbarContent", "SpeedDialAction", "StepConnector", "StepContent", "Switch", "TableCell", "Tooltip"]), d.mode === "light") {
|
|
2563
|
-
S(d.Alert, "errorColor", C(le, d.error.light, 0.6)), S(d.Alert, "infoColor", C(le, d.info.light, 0.6)), S(d.Alert, "successColor", C(le, d.success.light, 0.6)), S(d.Alert, "warningColor", C(le, d.warning.light, 0.6)), S(d.Alert, "errorFilledBg", z("palette-error-main")), S(d.Alert, "infoFilledBg", z("palette-info-main")), S(d.Alert, "successFilledBg", z("palette-success-main")), S(d.Alert, "warningFilledBg", z("palette-warning-main")), S(d.Alert, "errorFilledColor", je(() => d.getContrastText(d.error.main))), S(d.Alert, "infoFilledColor", je(() => d.getContrastText(d.info.main))), S(d.Alert, "successFilledColor", je(() => d.getContrastText(d.success.main))), S(d.Alert, "warningFilledColor", je(() => d.getContrastText(d.warning.main))), S(d.Alert, "errorStandardBg", C(ce, d.error.light, 0.9)), S(d.Alert, "infoStandardBg", C(ce, d.info.light, 0.9)), S(d.Alert, "successStandardBg", C(ce, d.success.light, 0.9)), S(d.Alert, "warningStandardBg", C(ce, d.warning.light, 0.9)), S(d.Alert, "errorIconColor", z("palette-error-main")), S(d.Alert, "infoIconColor", z("palette-info-main")), S(d.Alert, "successIconColor", z("palette-success-main")), S(d.Alert, "warningIconColor", z("palette-warning-main")), S(d.AppBar, "defaultBg", z("palette-grey-100")), S(d.Avatar, "defaultBg", z("palette-grey-400")), S(d.Button, "inheritContainedBg", z("palette-grey-300")), S(d.Button, "inheritContainedHoverBg", z("palette-grey-A100")), S(d.Chip, "defaultBorder", z("palette-grey-400")), S(d.Chip, "defaultAvatarColor", z("palette-grey-700")), S(d.Chip, "defaultIconColor", z("palette-grey-700")), S(d.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"), S(d.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"), S(d.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"), S(d.LinearProgress, "primaryBg", C(ce, d.primary.main, 0.62)), S(d.LinearProgress, "secondaryBg", C(ce, d.secondary.main, 0.62)), S(d.LinearProgress, "errorBg", C(ce, d.error.main, 0.62)), S(d.LinearProgress, "infoBg", C(ce, d.info.main, 0.62)), S(d.LinearProgress, "successBg", C(ce, d.success.main, 0.62)), S(d.LinearProgress, "warningBg", C(ce, d.warning.main, 0.62)), S(d.Skeleton, "bg", b ? C(
|
|
2566
|
+
S(d.Alert, "errorColor", C(le, d.error.light, 0.6)), S(d.Alert, "infoColor", C(le, d.info.light, 0.6)), S(d.Alert, "successColor", C(le, d.success.light, 0.6)), S(d.Alert, "warningColor", C(le, d.warning.light, 0.6)), S(d.Alert, "errorFilledBg", z("palette-error-main")), S(d.Alert, "infoFilledBg", z("palette-info-main")), S(d.Alert, "successFilledBg", z("palette-success-main")), S(d.Alert, "warningFilledBg", z("palette-warning-main")), S(d.Alert, "errorFilledColor", je(() => d.getContrastText(d.error.main))), S(d.Alert, "infoFilledColor", je(() => d.getContrastText(d.info.main))), S(d.Alert, "successFilledColor", je(() => d.getContrastText(d.success.main))), S(d.Alert, "warningFilledColor", je(() => d.getContrastText(d.warning.main))), S(d.Alert, "errorStandardBg", C(ce, d.error.light, 0.9)), S(d.Alert, "infoStandardBg", C(ce, d.info.light, 0.9)), S(d.Alert, "successStandardBg", C(ce, d.success.light, 0.9)), S(d.Alert, "warningStandardBg", C(ce, d.warning.light, 0.9)), S(d.Alert, "errorIconColor", z("palette-error-main")), S(d.Alert, "infoIconColor", z("palette-info-main")), S(d.Alert, "successIconColor", z("palette-success-main")), S(d.Alert, "warningIconColor", z("palette-warning-main")), S(d.AppBar, "defaultBg", z("palette-grey-100")), S(d.Avatar, "defaultBg", z("palette-grey-400")), S(d.Button, "inheritContainedBg", z("palette-grey-300")), S(d.Button, "inheritContainedHoverBg", z("palette-grey-A100")), S(d.Chip, "defaultBorder", z("palette-grey-400")), S(d.Chip, "defaultAvatarColor", z("palette-grey-700")), S(d.Chip, "defaultIconColor", z("palette-grey-700")), S(d.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"), S(d.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"), S(d.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"), S(d.LinearProgress, "primaryBg", C(ce, d.primary.main, 0.62)), S(d.LinearProgress, "secondaryBg", C(ce, d.secondary.main, 0.62)), S(d.LinearProgress, "errorBg", C(ce, d.error.main, 0.62)), S(d.LinearProgress, "infoBg", C(ce, d.info.main, 0.62)), S(d.LinearProgress, "successBg", C(ce, d.success.main, 0.62)), S(d.LinearProgress, "warningBg", C(ce, d.warning.main, 0.62)), S(d.Skeleton, "bg", b ? C(lt, d.text.primary, 0.11) : `rgba(${z("palette-text-primaryChannel")} / 0.11)`), S(d.Slider, "primaryTrack", C(ce, d.primary.main, 0.62)), S(d.Slider, "secondaryTrack", C(ce, d.secondary.main, 0.62)), S(d.Slider, "errorTrack", C(ce, d.error.main, 0.62)), S(d.Slider, "infoTrack", C(ce, d.info.main, 0.62)), S(d.Slider, "successTrack", C(ce, d.success.main, 0.62)), S(d.Slider, "warningTrack", C(ce, d.warning.main, 0.62));
|
|
2564
2567
|
const R = b ? C(le, d.background.default, 0.6825) : Xt(d.background.default, 0.8);
|
|
2565
|
-
S(d.SnackbarContent, "bg", R), S(d.SnackbarContent, "color", je(() => b ? zr.text.primary : d.getContrastText(R))), S(d.SpeedDialAction, "fabHoverBg", Xt(d.background.paper, 0.15)), S(d.StepConnector, "border", z("palette-grey-400")), S(d.StepContent, "border", z("palette-grey-400")), S(d.Switch, "defaultColor", z("palette-common-white")), S(d.Switch, "defaultDisabledColor", z("palette-grey-100")), S(d.Switch, "primaryDisabledColor", C(ce, d.primary.main, 0.62)), S(d.Switch, "secondaryDisabledColor", C(ce, d.secondary.main, 0.62)), S(d.Switch, "errorDisabledColor", C(ce, d.error.main, 0.62)), S(d.Switch, "infoDisabledColor", C(ce, d.info.main, 0.62)), S(d.Switch, "successDisabledColor", C(ce, d.success.main, 0.62)), S(d.Switch, "warningDisabledColor", C(ce, d.warning.main, 0.62)), S(d.TableCell, "border", C(ce, C(
|
|
2568
|
+
S(d.SnackbarContent, "bg", R), S(d.SnackbarContent, "color", je(() => b ? zr.text.primary : d.getContrastText(R))), S(d.SpeedDialAction, "fabHoverBg", Xt(d.background.paper, 0.15)), S(d.StepConnector, "border", z("palette-grey-400")), S(d.StepContent, "border", z("palette-grey-400")), S(d.Switch, "defaultColor", z("palette-common-white")), S(d.Switch, "defaultDisabledColor", z("palette-grey-100")), S(d.Switch, "primaryDisabledColor", C(ce, d.primary.main, 0.62)), S(d.Switch, "secondaryDisabledColor", C(ce, d.secondary.main, 0.62)), S(d.Switch, "errorDisabledColor", C(ce, d.error.main, 0.62)), S(d.Switch, "infoDisabledColor", C(ce, d.info.main, 0.62)), S(d.Switch, "successDisabledColor", C(ce, d.success.main, 0.62)), S(d.Switch, "warningDisabledColor", C(ce, d.warning.main, 0.62)), S(d.TableCell, "border", C(ce, C(lt, d.divider, 1), 0.88)), S(d.Tooltip, "bg", C(lt, d.grey[700], 0.92));
|
|
2566
2569
|
}
|
|
2567
2570
|
if (d.mode === "dark") {
|
|
2568
|
-
S(d.Alert, "errorColor", C(ce, d.error.light, 0.6)), S(d.Alert, "infoColor", C(ce, d.info.light, 0.6)), S(d.Alert, "successColor", C(ce, d.success.light, 0.6)), S(d.Alert, "warningColor", C(ce, d.warning.light, 0.6)), S(d.Alert, "errorFilledBg", z("palette-error-dark")), S(d.Alert, "infoFilledBg", z("palette-info-dark")), S(d.Alert, "successFilledBg", z("palette-success-dark")), S(d.Alert, "warningFilledBg", z("palette-warning-dark")), S(d.Alert, "errorFilledColor", je(() => d.getContrastText(d.error.dark))), S(d.Alert, "infoFilledColor", je(() => d.getContrastText(d.info.dark))), S(d.Alert, "successFilledColor", je(() => d.getContrastText(d.success.dark))), S(d.Alert, "warningFilledColor", je(() => d.getContrastText(d.warning.dark))), S(d.Alert, "errorStandardBg", C(le, d.error.light, 0.9)), S(d.Alert, "infoStandardBg", C(le, d.info.light, 0.9)), S(d.Alert, "successStandardBg", C(le, d.success.light, 0.9)), S(d.Alert, "warningStandardBg", C(le, d.warning.light, 0.9)), S(d.Alert, "errorIconColor", z("palette-error-main")), S(d.Alert, "infoIconColor", z("palette-info-main")), S(d.Alert, "successIconColor", z("palette-success-main")), S(d.Alert, "warningIconColor", z("palette-warning-main")), S(d.AppBar, "defaultBg", z("palette-grey-900")), S(d.AppBar, "darkBg", z("palette-background-paper")), S(d.AppBar, "darkColor", z("palette-text-primary")), S(d.Avatar, "defaultBg", z("palette-grey-600")), S(d.Button, "inheritContainedBg", z("palette-grey-800")), S(d.Button, "inheritContainedHoverBg", z("palette-grey-700")), S(d.Chip, "defaultBorder", z("palette-grey-700")), S(d.Chip, "defaultAvatarColor", z("palette-grey-300")), S(d.Chip, "defaultIconColor", z("palette-grey-300")), S(d.FilledInput, "bg", "rgba(255, 255, 255, 0.09)"), S(d.FilledInput, "hoverBg", "rgba(255, 255, 255, 0.13)"), S(d.FilledInput, "disabledBg", "rgba(255, 255, 255, 0.12)"), S(d.LinearProgress, "primaryBg", C(le, d.primary.main, 0.5)), S(d.LinearProgress, "secondaryBg", C(le, d.secondary.main, 0.5)), S(d.LinearProgress, "errorBg", C(le, d.error.main, 0.5)), S(d.LinearProgress, "infoBg", C(le, d.info.main, 0.5)), S(d.LinearProgress, "successBg", C(le, d.success.main, 0.5)), S(d.LinearProgress, "warningBg", C(le, d.warning.main, 0.5)), S(d.Skeleton, "bg", b ? C(
|
|
2571
|
+
S(d.Alert, "errorColor", C(ce, d.error.light, 0.6)), S(d.Alert, "infoColor", C(ce, d.info.light, 0.6)), S(d.Alert, "successColor", C(ce, d.success.light, 0.6)), S(d.Alert, "warningColor", C(ce, d.warning.light, 0.6)), S(d.Alert, "errorFilledBg", z("palette-error-dark")), S(d.Alert, "infoFilledBg", z("palette-info-dark")), S(d.Alert, "successFilledBg", z("palette-success-dark")), S(d.Alert, "warningFilledBg", z("palette-warning-dark")), S(d.Alert, "errorFilledColor", je(() => d.getContrastText(d.error.dark))), S(d.Alert, "infoFilledColor", je(() => d.getContrastText(d.info.dark))), S(d.Alert, "successFilledColor", je(() => d.getContrastText(d.success.dark))), S(d.Alert, "warningFilledColor", je(() => d.getContrastText(d.warning.dark))), S(d.Alert, "errorStandardBg", C(le, d.error.light, 0.9)), S(d.Alert, "infoStandardBg", C(le, d.info.light, 0.9)), S(d.Alert, "successStandardBg", C(le, d.success.light, 0.9)), S(d.Alert, "warningStandardBg", C(le, d.warning.light, 0.9)), S(d.Alert, "errorIconColor", z("palette-error-main")), S(d.Alert, "infoIconColor", z("palette-info-main")), S(d.Alert, "successIconColor", z("palette-success-main")), S(d.Alert, "warningIconColor", z("palette-warning-main")), S(d.AppBar, "defaultBg", z("palette-grey-900")), S(d.AppBar, "darkBg", z("palette-background-paper")), S(d.AppBar, "darkColor", z("palette-text-primary")), S(d.Avatar, "defaultBg", z("palette-grey-600")), S(d.Button, "inheritContainedBg", z("palette-grey-800")), S(d.Button, "inheritContainedHoverBg", z("palette-grey-700")), S(d.Chip, "defaultBorder", z("palette-grey-700")), S(d.Chip, "defaultAvatarColor", z("palette-grey-300")), S(d.Chip, "defaultIconColor", z("palette-grey-300")), S(d.FilledInput, "bg", "rgba(255, 255, 255, 0.09)"), S(d.FilledInput, "hoverBg", "rgba(255, 255, 255, 0.13)"), S(d.FilledInput, "disabledBg", "rgba(255, 255, 255, 0.12)"), S(d.LinearProgress, "primaryBg", C(le, d.primary.main, 0.5)), S(d.LinearProgress, "secondaryBg", C(le, d.secondary.main, 0.5)), S(d.LinearProgress, "errorBg", C(le, d.error.main, 0.5)), S(d.LinearProgress, "infoBg", C(le, d.info.main, 0.5)), S(d.LinearProgress, "successBg", C(le, d.success.main, 0.5)), S(d.LinearProgress, "warningBg", C(le, d.warning.main, 0.5)), S(d.Skeleton, "bg", b ? C(lt, d.text.primary, 0.13) : `rgba(${z("palette-text-primaryChannel")} / 0.13)`), S(d.Slider, "primaryTrack", C(le, d.primary.main, 0.5)), S(d.Slider, "secondaryTrack", C(le, d.secondary.main, 0.5)), S(d.Slider, "errorTrack", C(le, d.error.main, 0.5)), S(d.Slider, "infoTrack", C(le, d.info.main, 0.5)), S(d.Slider, "successTrack", C(le, d.success.main, 0.5)), S(d.Slider, "warningTrack", C(le, d.warning.main, 0.5));
|
|
2569
2572
|
const R = b ? C(ce, d.background.default, 0.985) : Xt(d.background.default, 0.98);
|
|
2570
|
-
S(d.SnackbarContent, "bg", R), S(d.SnackbarContent, "color", je(() => b ? ta.text.primary : d.getContrastText(R))), S(d.SpeedDialAction, "fabHoverBg", Xt(d.background.paper, 0.15)), S(d.StepConnector, "border", z("palette-grey-600")), S(d.StepContent, "border", z("palette-grey-600")), S(d.Switch, "defaultColor", z("palette-grey-300")), S(d.Switch, "defaultDisabledColor", z("palette-grey-600")), S(d.Switch, "primaryDisabledColor", C(le, d.primary.main, 0.55)), S(d.Switch, "secondaryDisabledColor", C(le, d.secondary.main, 0.55)), S(d.Switch, "errorDisabledColor", C(le, d.error.main, 0.55)), S(d.Switch, "infoDisabledColor", C(le, d.info.main, 0.55)), S(d.Switch, "successDisabledColor", C(le, d.success.main, 0.55)), S(d.Switch, "warningDisabledColor", C(le, d.warning.main, 0.55)), S(d.TableCell, "border", C(le, C(
|
|
2573
|
+
S(d.SnackbarContent, "bg", R), S(d.SnackbarContent, "color", je(() => b ? ta.text.primary : d.getContrastText(R))), S(d.SpeedDialAction, "fabHoverBg", Xt(d.background.paper, 0.15)), S(d.StepConnector, "border", z("palette-grey-600")), S(d.StepContent, "border", z("palette-grey-600")), S(d.Switch, "defaultColor", z("palette-grey-300")), S(d.Switch, "defaultDisabledColor", z("palette-grey-600")), S(d.Switch, "primaryDisabledColor", C(le, d.primary.main, 0.55)), S(d.Switch, "secondaryDisabledColor", C(le, d.secondary.main, 0.55)), S(d.Switch, "errorDisabledColor", C(le, d.error.main, 0.55)), S(d.Switch, "infoDisabledColor", C(le, d.info.main, 0.55)), S(d.Switch, "successDisabledColor", C(le, d.success.main, 0.55)), S(d.Switch, "warningDisabledColor", C(le, d.warning.main, 0.55)), S(d.TableCell, "border", C(le, C(lt, d.divider, 1), 0.68)), S(d.Tooltip, "bg", C(lt, d.grey[700], 0.92));
|
|
2571
2574
|
}
|
|
2572
2575
|
Ue(d.background, "default"), Ue(d.background, "paper"), Ue(d.common, "background"), Ue(d.common, "onBackground"), Ue(d, "divider"), Object.keys(d).forEach((R) => {
|
|
2573
2576
|
const V = d[R];
|
|
@@ -3667,7 +3670,7 @@ function Ps() {
|
|
|
3667
3670
|
if (ie(() => {
|
|
3668
3671
|
(async () => {
|
|
3669
3672
|
try {
|
|
3670
|
-
const u = await Y.
|
|
3673
|
+
const u = await Y.getAuthConfigStatus();
|
|
3671
3674
|
r(u);
|
|
3672
3675
|
} catch (u) {
|
|
3673
3676
|
i(u instanceof Error ? u.message : "Failed to fetch auth status");
|
|
@@ -4091,13 +4094,13 @@ function js() {
|
|
|
4091
4094
|
const J = W.seeds.map(L), Q = J.every((P) => h.has(P)), Z = new Set(h);
|
|
4092
4095
|
Q ? J.forEach((P) => Z.delete(P)) : J.forEach((P) => Z.add(P)), u(Z);
|
|
4093
4096
|
}, V = async (W, J, Q) => {
|
|
4094
|
-
var
|
|
4097
|
+
var ot, pt;
|
|
4095
4098
|
const Z = window.__API_BASE_PATH__ || "", P = await fetch(`${Z}/maintenance/seeds/execute`, {
|
|
4096
4099
|
method: "POST",
|
|
4097
4100
|
headers: { "Content-Type": "application/json" },
|
|
4098
4101
|
body: JSON.stringify({ name: W, type: Q })
|
|
4099
4102
|
});
|
|
4100
|
-
if (!P.ok && !((
|
|
4103
|
+
if (!P.ok && !((ot = P.headers.get("content-type")) != null && ot.includes("text/event-stream"))) {
|
|
4101
4104
|
const Fe = await P.json().catch(() => ({ error: "Failed to start execution" }));
|
|
4102
4105
|
throw new Error(Fe.error || "Failed to start execution");
|
|
4103
4106
|
}
|
|
@@ -4108,9 +4111,9 @@ function js() {
|
|
|
4108
4111
|
for (; ; ) {
|
|
4109
4112
|
const { done: Fe, value: Ke } = await ye.read();
|
|
4110
4113
|
if (Fe) break;
|
|
4111
|
-
const
|
|
4114
|
+
const st = Ce.decode(Ke, { stream: !0 }).split(`
|
|
4112
4115
|
`);
|
|
4113
|
-
for (const Le of
|
|
4116
|
+
for (const Le of st)
|
|
4114
4117
|
if (Le.startsWith("data: "))
|
|
4115
4118
|
try {
|
|
4116
4119
|
const Ie = JSON.parse(Le.slice(6));
|
|
@@ -4795,6 +4798,7 @@ const Gs = ({
|
|
|
4795
4798
|
n.port || "N/A"
|
|
4796
4799
|
] })
|
|
4797
4800
|
] }),
|
|
4801
|
+
n.managed && /* @__PURE__ */ t(q, { severity: "info", sx: { mt: 2 }, children: "Managed database (Neon / Supabase). Delete and recreate is disabled — manage your database through the provider dashboard." }),
|
|
4798
4802
|
!n.connected && !h && /* @__PURE__ */ s(m, { sx: { display: "flex", gap: 1, mt: 2 }, children: [
|
|
4799
4803
|
/* @__PURE__ */ t(
|
|
4800
4804
|
re,
|
|
@@ -4806,7 +4810,7 @@ const Gs = ({
|
|
|
4806
4810
|
children: "Initialize Database"
|
|
4807
4811
|
}
|
|
4808
4812
|
),
|
|
4809
|
-
/* @__PURE__ */ t(
|
|
4813
|
+
!n.managed && /* @__PURE__ */ t(
|
|
4810
4814
|
re,
|
|
4811
4815
|
{
|
|
4812
4816
|
variant: "contained",
|
|
@@ -5939,7 +5943,7 @@ const In = {
|
|
|
5939
5943
|
socialProviders: {}
|
|
5940
5944
|
};
|
|
5941
5945
|
function Cl() {
|
|
5942
|
-
var
|
|
5946
|
+
var st, Le, Ie;
|
|
5943
5947
|
const [e, r] = f(null), [n, a] = f(!0), [o, i] = f(null), [l, c] = f(null), [h, u] = f(!1), [p, g] = f(!1), [y, w] = f(!1), [x, T] = f(null), [$, N] = f(""), [O, I] = f(In), [b, k] = f($n), [D, U] = f(An), [M, B] = f(Tn), [de, L] = f(!0), [d, z] = f(""), [C, R] = f({
|
|
5944
5948
|
enabled: !1,
|
|
5945
5949
|
clientId: "",
|
|
@@ -6021,7 +6025,7 @@ function Cl() {
|
|
|
6021
6025
|
default:
|
|
6022
6026
|
return {};
|
|
6023
6027
|
}
|
|
6024
|
-
},
|
|
6028
|
+
}, ot = async () => {
|
|
6025
6029
|
if ($) {
|
|
6026
6030
|
w(!0), T(null);
|
|
6027
6031
|
try {
|
|
@@ -6085,7 +6089,7 @@ function Cl() {
|
|
|
6085
6089
|
};
|
|
6086
6090
|
if (n)
|
|
6087
6091
|
return /* @__PURE__ */ t(m, { sx: { display: "flex", justifyContent: "center", alignItems: "center", minHeight: "50vh" }, children: /* @__PURE__ */ t(se, {}) });
|
|
6088
|
-
const
|
|
6092
|
+
const it = e != null && e.config ? Object.entries(e.config) : [];
|
|
6089
6093
|
return /* @__PURE__ */ s(m, { children: [
|
|
6090
6094
|
/* @__PURE__ */ s(m, { sx: { display: "flex", justifyContent: "space-between", alignItems: "center", mb: 1 }, children: [
|
|
6091
6095
|
/* @__PURE__ */ t(v, { variant: "h4", sx: { color: "var(--theme-text-primary)" }, children: "Authentication" }),
|
|
@@ -6526,7 +6530,7 @@ function Cl() {
|
|
|
6526
6530
|
x && /* @__PURE__ */ s(q, { severity: x.success ? "success" : "error", sx: { mb: 3 }, children: [
|
|
6527
6531
|
/* @__PURE__ */ t(v, { variant: "body2", sx: { fontWeight: 600 }, children: x.success ? "Connection Successful" : "Connection Failed" }),
|
|
6528
6532
|
/* @__PURE__ */ t(v, { variant: "body2", children: x.message }),
|
|
6529
|
-
((
|
|
6533
|
+
((st = x.details) == null ? void 0 : st.latency) && /* @__PURE__ */ s(v, { variant: "caption", sx: { display: "block", mt: 0.5 }, children: [
|
|
6530
6534
|
"Latency: ",
|
|
6531
6535
|
x.details.latency,
|
|
6532
6536
|
"ms"
|
|
@@ -6566,7 +6570,7 @@ function Cl() {
|
|
|
6566
6570
|
{
|
|
6567
6571
|
variant: "outlined",
|
|
6568
6572
|
startIcon: y ? /* @__PURE__ */ t(se, { size: 16 }) : /* @__PURE__ */ t(ft, {}),
|
|
6569
|
-
onClick:
|
|
6573
|
+
onClick: ot,
|
|
6570
6574
|
disabled: !$ || y || p,
|
|
6571
6575
|
sx: {
|
|
6572
6576
|
color: "var(--theme-text-primary)",
|
|
@@ -6683,7 +6687,7 @@ function Cl() {
|
|
|
6683
6687
|
] })
|
|
6684
6688
|
] })
|
|
6685
6689
|
] }) }),
|
|
6686
|
-
|
|
6690
|
+
it.length > 0 && /* @__PURE__ */ s(F, { sx: { bgcolor: "var(--theme-surface)" }, children: [
|
|
6687
6691
|
/* @__PURE__ */ t(j, { sx: { pb: 0 }, children: /* @__PURE__ */ t(v, { variant: "h6", sx: { color: "var(--theme-text-primary)", mb: 2 }, children: "Current Configuration" }) }),
|
|
6688
6692
|
/* @__PURE__ */ t(qe, { children: /* @__PURE__ */ s(Je, { size: "small", children: [
|
|
6689
6693
|
/* @__PURE__ */ t(Qe, { children: /* @__PURE__ */ s(be, { children: [
|
|
@@ -6697,7 +6701,7 @@ function Cl() {
|
|
|
6697
6701
|
}
|
|
6698
6702
|
)
|
|
6699
6703
|
] }) }),
|
|
6700
|
-
/* @__PURE__ */ t(Ye, { children:
|
|
6704
|
+
/* @__PURE__ */ t(Ye, { children: it.map(([A, X]) => /* @__PURE__ */ s(be, { children: [
|
|
6701
6705
|
/* @__PURE__ */ t(_, { sx: { borderColor: "var(--theme-border)" }, children: /* @__PURE__ */ t(
|
|
6702
6706
|
v,
|
|
6703
6707
|
{
|
|
@@ -6728,7 +6732,7 @@ function Cl() {
|
|
|
6728
6732
|
] }, A)) })
|
|
6729
6733
|
] }) })
|
|
6730
6734
|
] }),
|
|
6731
|
-
(e == null ? void 0 : e.state) === "enabled" &&
|
|
6735
|
+
(e == null ? void 0 : e.state) === "enabled" && it.length === 0 && /* @__PURE__ */ t(F, { sx: { bgcolor: "var(--theme-surface)" }, children: /* @__PURE__ */ t(j, { children: /* @__PURE__ */ t(v, { sx: { color: "var(--theme-text-secondary)", textAlign: "center" }, children: "No configuration details available" }) }) })
|
|
6732
6736
|
] }),
|
|
6733
6737
|
/* @__PURE__ */ s(Ze, { open: Q, onClose: () => Z(!1), children: [
|
|
6734
6738
|
/* @__PURE__ */ t(et, { children: "Reset to Environment Variables?" }),
|
|
@@ -6873,7 +6877,7 @@ function Rl({
|
|
|
6873
6877
|
name: "",
|
|
6874
6878
|
role: "",
|
|
6875
6879
|
expiresInDays: 7
|
|
6876
|
-
}), [_e,
|
|
6880
|
+
}), [_e, ot] = f(null), [pt, Fe] = f(!1), [Ke, it] = f(""), [st, Le] = f(!1), [Ie, A] = f(!1), [X, We] = f(null), [Tt, we] = f(null), [$e, ke] = f([]), [Pt, Gr] = f(""), [ha, qr] = f(!1);
|
|
6877
6881
|
ie(() => {
|
|
6878
6882
|
n || Y.detectFeatures().then((E) => {
|
|
6879
6883
|
l(E), h(!0);
|
|
@@ -6970,14 +6974,14 @@ function Rl({
|
|
|
6970
6974
|
role: ne.role || void 0,
|
|
6971
6975
|
expiresInDays: ne.expiresInDays
|
|
6972
6976
|
});
|
|
6973
|
-
|
|
6977
|
+
ot({ token: E.token, inviteLink: E.inviteLink }), W("User invitation created successfully"), Dt();
|
|
6974
6978
|
} catch (E) {
|
|
6975
6979
|
G(E instanceof Error ? E.message : "Failed to invite user");
|
|
6976
6980
|
}
|
|
6977
6981
|
}, pa = () => {
|
|
6978
6982
|
_e && (navigator.clipboard.writeText(_e.inviteLink), W("Invite link copied to clipboard"));
|
|
6979
6983
|
}, Qr = () => {
|
|
6980
|
-
Ce(!1), xe({ email: "", name: "", role: "", expiresInDays: 7 }),
|
|
6984
|
+
Ce(!1), xe({ email: "", name: "", role: "", expiresInDays: 7 }), ot(null);
|
|
6981
6985
|
}, Yr = async () => {
|
|
6982
6986
|
if (!Ke.trim()) {
|
|
6983
6987
|
we("Please enter an email address");
|
|
@@ -7033,7 +7037,7 @@ function Rl({
|
|
|
7033
7037
|
G(ee instanceof Error ? ee.message : "Failed to revoke entitlement");
|
|
7034
7038
|
}
|
|
7035
7039
|
}, Xr = (E) => {
|
|
7036
|
-
E && (
|
|
7040
|
+
E && (it(E), Le(!0), we(null), We(null), Y.getEntitlements(E).then(We).catch((ee) => we(ee instanceof Error ? ee.message : "Failed to lookup entitlements")).finally(() => Le(!1))), Fe(!0);
|
|
7037
7041
|
}, yt = (E) => E ? new Date(E).toLocaleDateString("en-US", {
|
|
7038
7042
|
year: "numeric",
|
|
7039
7043
|
month: "short",
|
|
@@ -7459,7 +7463,7 @@ function Rl({
|
|
|
7459
7463
|
label: "Email",
|
|
7460
7464
|
fullWidth: !0,
|
|
7461
7465
|
value: Ke,
|
|
7462
|
-
onChange: (E) =>
|
|
7466
|
+
onChange: (E) => it(E.target.value),
|
|
7463
7467
|
placeholder: "Enter user email",
|
|
7464
7468
|
onKeyDown: (E) => E.key === "Enter" && Yr()
|
|
7465
7469
|
}
|
|
@@ -7471,11 +7475,11 @@ function Rl({
|
|
|
7471
7475
|
icon: "search",
|
|
7472
7476
|
label: "Lookup",
|
|
7473
7477
|
onClick: Yr,
|
|
7474
|
-
disabled:
|
|
7478
|
+
disabled: st
|
|
7475
7479
|
}
|
|
7476
7480
|
)
|
|
7477
7481
|
] }),
|
|
7478
|
-
|
|
7482
|
+
st && /* @__PURE__ */ t(m, { sx: { display: "flex", justifyContent: "center", py: 4 }, children: /* @__PURE__ */ t(se, {}) }),
|
|
7479
7483
|
Tt && /* @__PURE__ */ t(q, { severity: "error", children: Tt }),
|
|
7480
7484
|
X && /* @__PURE__ */ s(m, { children: [
|
|
7481
7485
|
/* @__PURE__ */ s(m, { sx: { display: "flex", justifyContent: "space-between", alignItems: "center", mb: 2 }, children: [
|