fansunited-management-components 1.55.0-RC4 → 1.55.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/index.es.js +647 -631
- package/index.umd.js +32 -32
- package/package.json +1 -1
- package/src/components/WidgetEmbedCode/WidgetEmbedCode.d.ts +2 -2
- package/src/components/WidgetEmbedCode/WidgetEmbedCode.d.ts.map +1 -1
- package/src/constants/components.d.ts +2 -2
- package/src/context/ComponentContext.d.ts +2 -2
package/index.es.js
CHANGED
|
@@ -37,16 +37,16 @@ var E = (e, t, n) => new Promise((r, i) => {
|
|
|
37
37
|
s((n = n.apply(e, t)).next());
|
|
38
38
|
});
|
|
39
39
|
import * as H from "react";
|
|
40
|
-
import Me, { createContext as
|
|
40
|
+
import Me, { createContext as $n, useState as Y, useEffect as me, useContext as Ht, useRef as Te, useLayoutEffect as as, useMemo as Se, useCallback as Be, Component as zy, Fragment as ac, forwardRef as bp, memo as Uy, useReducer as Vy, cloneElement as Hy } from "react";
|
|
41
41
|
import { FansUnitedSDK as Wy } from "fansunited-sdk-esm";
|
|
42
42
|
import { unstable_batchedUpdates as Zi, createPortal as yp } from "react-dom";
|
|
43
43
|
import xp from "@emotion/styled";
|
|
44
44
|
import { ThemeContext as Gy, keyframes as Cp, css as qc, jsx as ye } from "@emotion/react";
|
|
45
45
|
import vl from "react-quill";
|
|
46
|
-
import { FormControl as
|
|
46
|
+
import { FormControl as Ue, FormLabel as Ve, FormHelperText as mr, Box as ie, Tabs as Yy, TabList as Ky, Tab as Ed, TabPanel as kd, Textarea as Jc, Select as Ot, Option as et, Modal as Xc, ModalDialog as Zc, ModalClose as wp, DialogTitle as eu, DialogContent as tu, Grid as ui, Typography as pe, CircularProgress as An, Button as Fe, Snackbar as Qy, Input as dr, Tooltip as _e, IconButton as qt, styled as qy, Slider as Jy, DialogActions as Ip, Card as ln, Stack as Ea, AspectRatio as Sp, Skeleton as Ap, CardContent as Li, AccordionGroup as Tp, Accordion as Ep, AccordionSummary as kp, AccordionDetails as _p, ListItemDecorator as ao, Link as Mi, Avatar as Nt, Chip as Zt, selectClasses as ka, Divider as nu, ListDivider as Xy, Autocomplete as Ir, AutocompleteOption as Sr, ChipDelete as Hr, Switch as Zy, switchClasses as e0, Table as ru, Sheet as iu, ListItem as Pp, List as Dp, Alert as Rp } from "@mui/joy";
|
|
47
47
|
import { ContentCopy as ss, Upload as Op, Check as _d, Edit as Lp, Delete as ou, Add as sc, Close as Ar, Remove as Mp, EmojiEvents as bl } from "@mui/icons-material";
|
|
48
48
|
var Jt = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
49
|
-
function
|
|
49
|
+
function Bn(e) {
|
|
50
50
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
51
51
|
}
|
|
52
52
|
function jp(e) {
|
|
@@ -1050,23 +1050,23 @@ class Jp {
|
|
|
1050
1050
|
* limitations under the License.
|
|
1051
1051
|
*/
|
|
1052
1052
|
const su = [];
|
|
1053
|
-
var
|
|
1053
|
+
var ze;
|
|
1054
1054
|
(function(e) {
|
|
1055
1055
|
e[e.DEBUG = 0] = "DEBUG", e[e.VERBOSE = 1] = "VERBOSE", e[e.INFO = 2] = "INFO", e[e.WARN = 3] = "WARN", e[e.ERROR = 4] = "ERROR", e[e.SILENT = 5] = "SILENT";
|
|
1056
|
-
})(
|
|
1056
|
+
})(ze || (ze = {}));
|
|
1057
1057
|
const Xp = {
|
|
1058
|
-
debug:
|
|
1059
|
-
verbose:
|
|
1060
|
-
info:
|
|
1061
|
-
warn:
|
|
1062
|
-
error:
|
|
1063
|
-
silent:
|
|
1064
|
-
}, k0 =
|
|
1065
|
-
[
|
|
1066
|
-
[
|
|
1067
|
-
[
|
|
1068
|
-
[
|
|
1069
|
-
[
|
|
1058
|
+
debug: ze.DEBUG,
|
|
1059
|
+
verbose: ze.VERBOSE,
|
|
1060
|
+
info: ze.INFO,
|
|
1061
|
+
warn: ze.WARN,
|
|
1062
|
+
error: ze.ERROR,
|
|
1063
|
+
silent: ze.SILENT
|
|
1064
|
+
}, k0 = ze.INFO, _0 = {
|
|
1065
|
+
[ze.DEBUG]: "log",
|
|
1066
|
+
[ze.VERBOSE]: "log",
|
|
1067
|
+
[ze.INFO]: "info",
|
|
1068
|
+
[ze.WARN]: "warn",
|
|
1069
|
+
[ze.ERROR]: "error"
|
|
1070
1070
|
}, P0 = (e, t, ...n) => {
|
|
1071
1071
|
if (t < e.logLevel)
|
|
1072
1072
|
return;
|
|
@@ -1090,7 +1090,7 @@ class lu {
|
|
|
1090
1090
|
return this._logLevel;
|
|
1091
1091
|
}
|
|
1092
1092
|
set logLevel(t) {
|
|
1093
|
-
if (!(t in
|
|
1093
|
+
if (!(t in ze))
|
|
1094
1094
|
throw new TypeError(`Invalid value "${t}" assigned to \`logLevel\``);
|
|
1095
1095
|
this._logLevel = t;
|
|
1096
1096
|
}
|
|
@@ -1116,19 +1116,19 @@ class lu {
|
|
|
1116
1116
|
* The functions below are all based on the `console` interface
|
|
1117
1117
|
*/
|
|
1118
1118
|
debug(...t) {
|
|
1119
|
-
this._userLogHandler && this._userLogHandler(this,
|
|
1119
|
+
this._userLogHandler && this._userLogHandler(this, ze.DEBUG, ...t), this._logHandler(this, ze.DEBUG, ...t);
|
|
1120
1120
|
}
|
|
1121
1121
|
log(...t) {
|
|
1122
|
-
this._userLogHandler && this._userLogHandler(this,
|
|
1122
|
+
this._userLogHandler && this._userLogHandler(this, ze.VERBOSE, ...t), this._logHandler(this, ze.VERBOSE, ...t);
|
|
1123
1123
|
}
|
|
1124
1124
|
info(...t) {
|
|
1125
|
-
this._userLogHandler && this._userLogHandler(this,
|
|
1125
|
+
this._userLogHandler && this._userLogHandler(this, ze.INFO, ...t), this._logHandler(this, ze.INFO, ...t);
|
|
1126
1126
|
}
|
|
1127
1127
|
warn(...t) {
|
|
1128
|
-
this._userLogHandler && this._userLogHandler(this,
|
|
1128
|
+
this._userLogHandler && this._userLogHandler(this, ze.WARN, ...t), this._logHandler(this, ze.WARN, ...t);
|
|
1129
1129
|
}
|
|
1130
1130
|
error(...t) {
|
|
1131
|
-
this._userLogHandler && this._userLogHandler(this,
|
|
1131
|
+
this._userLogHandler && this._userLogHandler(this, ze.ERROR, ...t), this._logHandler(this, ze.ERROR, ...t);
|
|
1132
1132
|
}
|
|
1133
1133
|
}
|
|
1134
1134
|
function D0(e) {
|
|
@@ -1156,7 +1156,7 @@ function R0(e, t) {
|
|
|
1156
1156
|
}
|
|
1157
1157
|
}).filter((l) => l).join(" ");
|
|
1158
1158
|
o >= (r != null ? r : i.logLevel) && e({
|
|
1159
|
-
level:
|
|
1159
|
+
level: ze[o].toLowerCase(),
|
|
1160
1160
|
message: s,
|
|
1161
1161
|
args: a,
|
|
1162
1162
|
type: i.name
|
|
@@ -1188,7 +1188,7 @@ function j0(e) {
|
|
|
1188
1188
|
const i = () => {
|
|
1189
1189
|
e.removeEventListener("success", o), e.removeEventListener("error", a);
|
|
1190
1190
|
}, o = () => {
|
|
1191
|
-
n(
|
|
1191
|
+
n(gr(e.result)), i();
|
|
1192
1192
|
}, a = () => {
|
|
1193
1193
|
r(e.error), i();
|
|
1194
1194
|
};
|
|
@@ -1224,7 +1224,7 @@ let cc = {
|
|
|
1224
1224
|
if (t === "store")
|
|
1225
1225
|
return n.objectStoreNames[1] ? void 0 : n.objectStore(n.objectStoreNames[0]);
|
|
1226
1226
|
}
|
|
1227
|
-
return
|
|
1227
|
+
return gr(e[t]);
|
|
1228
1228
|
},
|
|
1229
1229
|
set(e, t, n) {
|
|
1230
1230
|
return e[t] = n, !0;
|
|
@@ -1239,17 +1239,17 @@ function B0(e) {
|
|
|
1239
1239
|
function N0(e) {
|
|
1240
1240
|
return e === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(t, ...n) {
|
|
1241
1241
|
const r = e.call(Cl(this), t, ...n);
|
|
1242
|
-
return eg.set(r, t.sort ? t.sort() : [t]),
|
|
1242
|
+
return eg.set(r, t.sort ? t.sort() : [t]), gr(r);
|
|
1243
1243
|
} : M0().includes(e) ? function(...t) {
|
|
1244
|
-
return e.apply(Cl(this), t),
|
|
1244
|
+
return e.apply(Cl(this), t), gr(Zp.get(this));
|
|
1245
1245
|
} : function(...t) {
|
|
1246
|
-
return
|
|
1246
|
+
return gr(e.apply(Cl(this), t));
|
|
1247
1247
|
};
|
|
1248
1248
|
}
|
|
1249
1249
|
function F0(e) {
|
|
1250
1250
|
return typeof e == "function" ? N0(e) : (e instanceof IDBTransaction && $0(e), O0(e, L0()) ? new Proxy(e, cc) : e);
|
|
1251
1251
|
}
|
|
1252
|
-
function
|
|
1252
|
+
function gr(e) {
|
|
1253
1253
|
if (e instanceof IDBRequest)
|
|
1254
1254
|
return j0(e);
|
|
1255
1255
|
if (xl.has(e))
|
|
@@ -1259,9 +1259,9 @@ function mr(e) {
|
|
|
1259
1259
|
}
|
|
1260
1260
|
const Cl = (e) => cu.get(e);
|
|
1261
1261
|
function z0(e, t, { blocked: n, upgrade: r, blocking: i, terminated: o } = {}) {
|
|
1262
|
-
const a = indexedDB.open(e, t), s =
|
|
1262
|
+
const a = indexedDB.open(e, t), s = gr(a);
|
|
1263
1263
|
return r && a.addEventListener("upgradeneeded", (l) => {
|
|
1264
|
-
r(
|
|
1264
|
+
r(gr(a.result), l.oldVersion, l.newVersion, gr(a.transaction), l);
|
|
1265
1265
|
}), n && a.addEventListener("blocked", (l) => n(
|
|
1266
1266
|
// Casting due to https://github.com/microsoft/TypeScript-DOM-lib-generator/pull/1405
|
|
1267
1267
|
l.oldVersion,
|
|
@@ -1353,7 +1353,7 @@ const Ra = "@firebase/app", uc = "0.10.9";
|
|
|
1353
1353
|
* See the License for the specific language governing permissions and
|
|
1354
1354
|
* limitations under the License.
|
|
1355
1355
|
*/
|
|
1356
|
-
const
|
|
1356
|
+
const qn = new lu("@firebase/app"), G0 = "@firebase/app-compat", Y0 = "@firebase/analytics-compat", K0 = "@firebase/analytics", Q0 = "@firebase/app-check-compat", q0 = "@firebase/app-check", J0 = "@firebase/auth", X0 = "@firebase/auth-compat", Z0 = "@firebase/database", ex = "@firebase/database-compat", tx = "@firebase/functions", nx = "@firebase/functions-compat", rx = "@firebase/installations", ix = "@firebase/installations-compat", ox = "@firebase/messaging", ax = "@firebase/messaging-compat", sx = "@firebase/performance", lx = "@firebase/performance-compat", cx = "@firebase/remote-config", ux = "@firebase/remote-config-compat", dx = "@firebase/storage", fx = "@firebase/storage-compat", hx = "@firebase/firestore", px = "@firebase/vertexai-preview", gx = "@firebase/firestore-compat", mx = "firebase", vx = "10.13.0";
|
|
1357
1357
|
/**
|
|
1358
1358
|
* @license
|
|
1359
1359
|
* Copyright 2019 Google LLC
|
|
@@ -1420,7 +1420,7 @@ function bo(e, t) {
|
|
|
1420
1420
|
try {
|
|
1421
1421
|
e.container.addComponent(t);
|
|
1422
1422
|
} catch (n) {
|
|
1423
|
-
|
|
1423
|
+
qn.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`, n);
|
|
1424
1424
|
}
|
|
1425
1425
|
}
|
|
1426
1426
|
function tg(e, t) {
|
|
@@ -1429,7 +1429,7 @@ function tg(e, t) {
|
|
|
1429
1429
|
function Br(e) {
|
|
1430
1430
|
const t = e.name;
|
|
1431
1431
|
if (Ei.has(t))
|
|
1432
|
-
return
|
|
1432
|
+
return qn.debug(`There were multiple attempts to register component ${t}.`), !1;
|
|
1433
1433
|
Ei.set(t, e);
|
|
1434
1434
|
for (const n of yr.values())
|
|
1435
1435
|
bo(n, e);
|
|
@@ -1484,7 +1484,7 @@ const Cx = {
|
|
|
1484
1484
|
"idb-delete": "Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.",
|
|
1485
1485
|
"finalization-registry-not-supported": "FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.",
|
|
1486
1486
|
"invalid-server-app-environment": "FirebaseServerApp is not for use in browser environments."
|
|
1487
|
-
},
|
|
1487
|
+
}, gn = new Wr("app", "Firebase", Cx);
|
|
1488
1488
|
/**
|
|
1489
1489
|
* @license
|
|
1490
1490
|
* Copyright 2019 Google LLC
|
|
@@ -1540,7 +1540,7 @@ let rg = class {
|
|
|
1540
1540
|
*/
|
|
1541
1541
|
checkDestroyed() {
|
|
1542
1542
|
if (this.isDeleted)
|
|
1543
|
-
throw
|
|
1543
|
+
throw gn.create("app-deleted", { appName: this._name });
|
|
1544
1544
|
}
|
|
1545
1545
|
};
|
|
1546
1546
|
/**
|
|
@@ -1573,7 +1573,7 @@ class wx extends rg {
|
|
|
1573
1573
|
}
|
|
1574
1574
|
this._serverConfig = Object.assign({ automaticDataCollectionEnabled: o }, n), this._finalizationRegistry = null, typeof FinalizationRegistry != "undefined" && (this._finalizationRegistry = new FinalizationRegistry(() => {
|
|
1575
1575
|
this.automaticCleanup();
|
|
1576
|
-
})), this._refCount = 0, this.incRefCount(this._serverConfig.releaseOnDeref), this._serverConfig.releaseOnDeref = void 0, n.releaseOnDeref = void 0,
|
|
1576
|
+
})), this._refCount = 0, this.incRefCount(this._serverConfig.releaseOnDeref), this._serverConfig.releaseOnDeref = void 0, n.releaseOnDeref = void 0, Wn(Ra, uc, "serverapp");
|
|
1577
1577
|
}
|
|
1578
1578
|
toJSON() {
|
|
1579
1579
|
}
|
|
@@ -1604,7 +1604,7 @@ class wx extends rg {
|
|
|
1604
1604
|
*/
|
|
1605
1605
|
checkDestroyed() {
|
|
1606
1606
|
if (this.isDeleted)
|
|
1607
|
-
throw
|
|
1607
|
+
throw gn.create(
|
|
1608
1608
|
"server-app-deleted"
|
|
1609
1609
|
/* AppError.SERVER_APP_DELETED */
|
|
1610
1610
|
);
|
|
@@ -1632,11 +1632,11 @@ function uu(e, t = {}) {
|
|
|
1632
1632
|
typeof t != "object" && (t = { name: t });
|
|
1633
1633
|
const r = Object.assign({ name: br, automaticDataCollectionEnabled: !1 }, t), i = r.name;
|
|
1634
1634
|
if (typeof i != "string" || !i)
|
|
1635
|
-
throw
|
|
1635
|
+
throw gn.create("bad-app-name", {
|
|
1636
1636
|
appName: String(i)
|
|
1637
1637
|
});
|
|
1638
1638
|
if (n || (n = Hp()), !n)
|
|
1639
|
-
throw
|
|
1639
|
+
throw gn.create(
|
|
1640
1640
|
"no-options"
|
|
1641
1641
|
/* AppError.NO_OPTIONS */
|
|
1642
1642
|
);
|
|
@@ -1644,7 +1644,7 @@ function uu(e, t = {}) {
|
|
|
1644
1644
|
if (o) {
|
|
1645
1645
|
if (Da(n, o.options) && Da(r, o.config))
|
|
1646
1646
|
return o;
|
|
1647
|
-
throw
|
|
1647
|
+
throw gn.create("duplicate-app", { appName: i });
|
|
1648
1648
|
}
|
|
1649
1649
|
const a = new Jp(i);
|
|
1650
1650
|
for (const l of Ei.values())
|
|
@@ -1654,7 +1654,7 @@ function uu(e, t = {}) {
|
|
|
1654
1654
|
}
|
|
1655
1655
|
function Ix(e, t) {
|
|
1656
1656
|
if (v0() && !Yp())
|
|
1657
|
-
throw
|
|
1657
|
+
throw gn.create(
|
|
1658
1658
|
"invalid-server-app-environment"
|
|
1659
1659
|
/* AppError.INVALID_SERVER_APP_ENVIRONMENT */
|
|
1660
1660
|
);
|
|
@@ -1665,7 +1665,7 @@ function Ix(e, t) {
|
|
|
1665
1665
|
r.releaseOnDeref !== void 0 && delete r.releaseOnDeref;
|
|
1666
1666
|
const i = (u) => [...u].reduce((d, f) => Math.imul(31, d) + f.charCodeAt(0) | 0, 0);
|
|
1667
1667
|
if (t.releaseOnDeref !== void 0 && typeof FinalizationRegistry == "undefined")
|
|
1668
|
-
throw
|
|
1668
|
+
throw gn.create("finalization-registry-not-supported", {});
|
|
1669
1669
|
const o = "" + i(JSON.stringify(r)), a = Ti.get(o);
|
|
1670
1670
|
if (a)
|
|
1671
1671
|
return a.incRefCount(t.releaseOnDeref), a;
|
|
@@ -1680,7 +1680,7 @@ function ig(e = br) {
|
|
|
1680
1680
|
if (!t && e === br && Hp())
|
|
1681
1681
|
return uu();
|
|
1682
1682
|
if (!t)
|
|
1683
|
-
throw
|
|
1683
|
+
throw gn.create("no-app", { appName: e });
|
|
1684
1684
|
return t;
|
|
1685
1685
|
}
|
|
1686
1686
|
function Sx() {
|
|
@@ -1693,7 +1693,7 @@ function du(e) {
|
|
|
1693
1693
|
yr.has(n) ? (t = !0, yr.delete(n)) : Ti.has(n) && e.decRefCount() <= 0 && (Ti.delete(n), t = !0), t && (yield Promise.all(e.container.getProviders().map((r) => r.delete())), e.isDeleted = !0);
|
|
1694
1694
|
});
|
|
1695
1695
|
}
|
|
1696
|
-
function
|
|
1696
|
+
function Wn(e, t, n) {
|
|
1697
1697
|
var r;
|
|
1698
1698
|
let i = (r = bx[e]) !== null && r !== void 0 ? r : e;
|
|
1699
1699
|
n && (i += `-${n}`);
|
|
@@ -1702,7 +1702,7 @@ function Yn(e, t, n) {
|
|
|
1702
1702
|
const s = [
|
|
1703
1703
|
`Unable to register library "${i}" with version "${t}":`
|
|
1704
1704
|
];
|
|
1705
|
-
o && s.push(`library name "${i}" contains illegal characters (whitespace or "/")`), o && a && s.push("and"), a && s.push(`version name "${t}" contains illegal characters (whitespace or "/")`),
|
|
1705
|
+
o && s.push(`library name "${i}" contains illegal characters (whitespace or "/")`), o && a && s.push("and"), a && s.push(`version name "${t}" contains illegal characters (whitespace or "/")`), qn.warn(s.join(" "));
|
|
1706
1706
|
return;
|
|
1707
1707
|
}
|
|
1708
1708
|
Br(new vr(
|
|
@@ -1714,7 +1714,7 @@ function Yn(e, t, n) {
|
|
|
1714
1714
|
}
|
|
1715
1715
|
function og(e, t) {
|
|
1716
1716
|
if (e !== null && typeof e != "function")
|
|
1717
|
-
throw
|
|
1717
|
+
throw gn.create(
|
|
1718
1718
|
"invalid-log-argument"
|
|
1719
1719
|
/* AppError.INVALID_LOG_ARGUMENT */
|
|
1720
1720
|
);
|
|
@@ -1754,7 +1754,7 @@ function sg() {
|
|
|
1754
1754
|
}
|
|
1755
1755
|
}
|
|
1756
1756
|
}).catch((e) => {
|
|
1757
|
-
throw
|
|
1757
|
+
throw gn.create("idb-open", {
|
|
1758
1758
|
originalErrorMessage: e.message
|
|
1759
1759
|
});
|
|
1760
1760
|
})), Il;
|
|
@@ -1766,12 +1766,12 @@ function Ex(e) {
|
|
|
1766
1766
|
return yield n.done, r;
|
|
1767
1767
|
} catch (t) {
|
|
1768
1768
|
if (t instanceof Xt)
|
|
1769
|
-
|
|
1769
|
+
qn.warn(t.message);
|
|
1770
1770
|
else {
|
|
1771
|
-
const n =
|
|
1771
|
+
const n = gn.create("idb-get", {
|
|
1772
1772
|
originalErrorMessage: t == null ? void 0 : t.message
|
|
1773
1773
|
});
|
|
1774
|
-
|
|
1774
|
+
qn.warn(n.message);
|
|
1775
1775
|
}
|
|
1776
1776
|
}
|
|
1777
1777
|
});
|
|
@@ -1783,12 +1783,12 @@ function Md(e, t) {
|
|
|
1783
1783
|
yield r.objectStore(yo).put(t, lg(e)), yield r.done;
|
|
1784
1784
|
} catch (n) {
|
|
1785
1785
|
if (n instanceof Xt)
|
|
1786
|
-
|
|
1786
|
+
qn.warn(n.message);
|
|
1787
1787
|
else {
|
|
1788
|
-
const r =
|
|
1788
|
+
const r = gn.create("idb-set", {
|
|
1789
1789
|
originalErrorMessage: n == null ? void 0 : n.message
|
|
1790
1790
|
});
|
|
1791
|
-
|
|
1791
|
+
qn.warn(r.message);
|
|
1792
1792
|
}
|
|
1793
1793
|
}
|
|
1794
1794
|
});
|
|
@@ -1836,7 +1836,7 @@ class Px {
|
|
|
1836
1836
|
return Date.now() - l <= _x;
|
|
1837
1837
|
}), this._storage.overwrite(this._heartbeatsCache));
|
|
1838
1838
|
} catch (i) {
|
|
1839
|
-
|
|
1839
|
+
qn.warn(i);
|
|
1840
1840
|
}
|
|
1841
1841
|
});
|
|
1842
1842
|
}
|
|
@@ -1856,7 +1856,7 @@ class Px {
|
|
|
1856
1856
|
const n = jd(), { heartbeatsToSend: r, unsentEntries: i } = Dx(this._heartbeatsCache.heartbeats), o = zp(JSON.stringify({ version: 2, heartbeats: r }));
|
|
1857
1857
|
return this._heartbeatsCache.lastSentHeartbeatDate = n, i.length > 0 ? (this._heartbeatsCache.heartbeats = i, yield this._storage.overwrite(this._heartbeatsCache)) : (this._heartbeatsCache.heartbeats = [], this._storage.overwrite(this._heartbeatsCache)), o;
|
|
1858
1858
|
} catch (n) {
|
|
1859
|
-
return
|
|
1859
|
+
return qn.warn(n), "";
|
|
1860
1860
|
}
|
|
1861
1861
|
});
|
|
1862
1862
|
}
|
|
@@ -1974,7 +1974,7 @@ function Ox(e) {
|
|
|
1974
1974
|
(t) => new Px(t),
|
|
1975
1975
|
"PRIVATE"
|
|
1976
1976
|
/* ComponentType.PRIVATE */
|
|
1977
|
-
)),
|
|
1977
|
+
)), Wn(Ra, uc, e), Wn(Ra, uc, "esm2017"), Wn("fire-js", "");
|
|
1978
1978
|
}
|
|
1979
1979
|
Ox("");
|
|
1980
1980
|
const Lx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -1999,7 +1999,7 @@ const Lx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1999
1999
|
initializeApp: uu,
|
|
2000
2000
|
initializeServerApp: Ix,
|
|
2001
2001
|
onLog: og,
|
|
2002
|
-
registerVersion:
|
|
2002
|
+
registerVersion: Wn,
|
|
2003
2003
|
setLogLevel: ag
|
|
2004
2004
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2005
2005
|
/**
|
|
@@ -2142,7 +2142,7 @@ function $x(e) {
|
|
|
2142
2142
|
initializeApp: o,
|
|
2143
2143
|
// @ts-ignore
|
|
2144
2144
|
app: i,
|
|
2145
|
-
registerVersion:
|
|
2145
|
+
registerVersion: Wn,
|
|
2146
2146
|
setLogLevel: ag,
|
|
2147
2147
|
onLog: og,
|
|
2148
2148
|
// @ts-ignore
|
|
@@ -2269,7 +2269,7 @@ const Nd = new lu("@firebase/app-compat"), Nx = "@firebase/app-compat", Fx = "0.
|
|
|
2269
2269
|
* limitations under the License.
|
|
2270
2270
|
*/
|
|
2271
2271
|
function zx(e) {
|
|
2272
|
-
|
|
2272
|
+
Wn(Nx, Fx, e);
|
|
2273
2273
|
}
|
|
2274
2274
|
/**
|
|
2275
2275
|
* @license
|
|
@@ -2302,7 +2302,7 @@ try {
|
|
|
2302
2302
|
}
|
|
2303
2303
|
} catch (e) {
|
|
2304
2304
|
}
|
|
2305
|
-
const
|
|
2305
|
+
const fr = Bx;
|
|
2306
2306
|
zx();
|
|
2307
2307
|
var Ux = "firebase", Vx = "10.13.0";
|
|
2308
2308
|
/**
|
|
@@ -2321,7 +2321,7 @@ var Ux = "firebase", Vx = "10.13.0";
|
|
|
2321
2321
|
* See the License for the specific language governing permissions and
|
|
2322
2322
|
* limitations under the License.
|
|
2323
2323
|
*/
|
|
2324
|
-
|
|
2324
|
+
fr.registerVersion(Ux, Vx, "app-compat");
|
|
2325
2325
|
var dc = function(e, t) {
|
|
2326
2326
|
return dc = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
2327
2327
|
n.__proto__ = r;
|
|
@@ -2533,10 +2533,10 @@ const Gx = Wx, Yx = ug, dg = new Wr("auth", "Firebase", ug());
|
|
|
2533
2533
|
*/
|
|
2534
2534
|
const Oa = new lu("@firebase/auth");
|
|
2535
2535
|
function Kx(e, ...t) {
|
|
2536
|
-
Oa.logLevel <=
|
|
2536
|
+
Oa.logLevel <= ze.WARN && Oa.warn(`Auth (${Gr}): ${e}`, ...t);
|
|
2537
2537
|
}
|
|
2538
2538
|
function ga(e, ...t) {
|
|
2539
|
-
Oa.logLevel <=
|
|
2539
|
+
Oa.logLevel <= ze.ERROR && Oa.error(`Auth (${Gr}): ${e}`, ...t);
|
|
2540
2540
|
}
|
|
2541
2541
|
/**
|
|
2542
2542
|
* @license
|
|
@@ -2589,12 +2589,12 @@ function ae(e, t, ...n) {
|
|
|
2589
2589
|
if (!e)
|
|
2590
2590
|
throw pu(t, ...n);
|
|
2591
2591
|
}
|
|
2592
|
-
function
|
|
2592
|
+
function Ln(e) {
|
|
2593
2593
|
const t = "INTERNAL ASSERTION FAILED: " + e;
|
|
2594
2594
|
throw ga(t), new Error(t);
|
|
2595
2595
|
}
|
|
2596
|
-
function
|
|
2597
|
-
e ||
|
|
2596
|
+
function wn(e, t) {
|
|
2597
|
+
e || Ln(t);
|
|
2598
2598
|
}
|
|
2599
2599
|
/**
|
|
2600
2600
|
* @license
|
|
@@ -2677,7 +2677,7 @@ function qx() {
|
|
|
2677
2677
|
*/
|
|
2678
2678
|
class Lo {
|
|
2679
2679
|
constructor(t, n) {
|
|
2680
|
-
this.shortDelay = t, this.longDelay = n,
|
|
2680
|
+
this.shortDelay = t, this.longDelay = n, wn(n > t, "Short delay should be less than long delay!"), this.isMobile = m0() || au();
|
|
2681
2681
|
}
|
|
2682
2682
|
get() {
|
|
2683
2683
|
return Qx() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
|
|
@@ -2700,7 +2700,7 @@ class Lo {
|
|
|
2700
2700
|
* limitations under the License.
|
|
2701
2701
|
*/
|
|
2702
2702
|
function mu(e, t) {
|
|
2703
|
-
|
|
2703
|
+
wn(e.emulator, "Emulator should always be set here");
|
|
2704
2704
|
const { url: n } = e.emulator;
|
|
2705
2705
|
return t ? `${n}${t.startsWith("/") ? t.slice(1) : t}` : n;
|
|
2706
2706
|
}
|
|
@@ -2733,7 +2733,7 @@ class fg {
|
|
|
2733
2733
|
return globalThis.fetch;
|
|
2734
2734
|
if (typeof fetch != "undefined")
|
|
2735
2735
|
return fetch;
|
|
2736
|
-
|
|
2736
|
+
Ln("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
|
|
2737
2737
|
}
|
|
2738
2738
|
static headers() {
|
|
2739
2739
|
if (this.headersImpl)
|
|
@@ -2744,7 +2744,7 @@ class fg {
|
|
|
2744
2744
|
return globalThis.Headers;
|
|
2745
2745
|
if (typeof Headers != "undefined")
|
|
2746
2746
|
return Headers;
|
|
2747
|
-
|
|
2747
|
+
Ln("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
|
|
2748
2748
|
}
|
|
2749
2749
|
static response() {
|
|
2750
2750
|
if (this.responseImpl)
|
|
@@ -2755,7 +2755,7 @@ class fg {
|
|
|
2755
2755
|
return globalThis.Response;
|
|
2756
2756
|
if (typeof Response != "undefined")
|
|
2757
2757
|
return Response;
|
|
2758
|
-
|
|
2758
|
+
Ln("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
|
|
2759
2759
|
}
|
|
2760
2760
|
}
|
|
2761
2761
|
/**
|
|
@@ -2926,7 +2926,7 @@ function hg(e, t, n) {
|
|
|
2926
2926
|
}
|
|
2927
2927
|
});
|
|
2928
2928
|
}
|
|
2929
|
-
function
|
|
2929
|
+
function rr(o, a, s, l) {
|
|
2930
2930
|
return E(this, arguments, function* (e, t, n, r, i = {}) {
|
|
2931
2931
|
const u = yield ut(e, t, n, r, i);
|
|
2932
2932
|
return "mfaPendingCredential" in u && _t(e, "multi-factor-auth-required", {
|
|
@@ -3178,7 +3178,7 @@ function Vd(e) {
|
|
|
3178
3178
|
* See the License for the specific language governing permissions and
|
|
3179
3179
|
* limitations under the License.
|
|
3180
3180
|
*/
|
|
3181
|
-
function
|
|
3181
|
+
function Jn(e, t, n = !1) {
|
|
3182
3182
|
return E(this, null, function* () {
|
|
3183
3183
|
if (n)
|
|
3184
3184
|
return t;
|
|
@@ -3308,7 +3308,7 @@ class fc {
|
|
|
3308
3308
|
function Co(e) {
|
|
3309
3309
|
return E(this, null, function* () {
|
|
3310
3310
|
var t;
|
|
3311
|
-
const n = e.auth, r = yield e.getIdToken(), i = yield
|
|
3311
|
+
const n = e.auth, r = yield e.getIdToken(), i = yield Jn(e, gg(n, { idToken: r }));
|
|
3312
3312
|
ae(
|
|
3313
3313
|
i == null ? void 0 : i.users.length,
|
|
3314
3314
|
n,
|
|
@@ -3493,7 +3493,7 @@ class di {
|
|
|
3493
3493
|
return Object.assign(new di(), this.toJSON());
|
|
3494
3494
|
}
|
|
3495
3495
|
_performRefresh() {
|
|
3496
|
-
return
|
|
3496
|
+
return Ln("not implemented");
|
|
3497
3497
|
}
|
|
3498
3498
|
}
|
|
3499
3499
|
/**
|
|
@@ -3512,17 +3512,17 @@ class di {
|
|
|
3512
3512
|
* See the License for the specific language governing permissions and
|
|
3513
3513
|
* limitations under the License.
|
|
3514
3514
|
*/
|
|
3515
|
-
function
|
|
3515
|
+
function ar(e, t) {
|
|
3516
3516
|
ae(typeof e == "string" || typeof e == "undefined", "internal-error", { appName: t });
|
|
3517
3517
|
}
|
|
3518
|
-
class
|
|
3518
|
+
class Un {
|
|
3519
3519
|
constructor(t) {
|
|
3520
3520
|
var { uid: n, auth: r, stsTokenManager: i } = t, o = fu(t, ["uid", "auth", "stsTokenManager"]);
|
|
3521
3521
|
this.providerId = "firebase", this.proactiveRefresh = new lC(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = n, this.auth = r, this.stsTokenManager = i, this.accessToken = i.accessToken, this.displayName = o.displayName || null, this.email = o.email || null, this.emailVerified = o.emailVerified || !1, this.phoneNumber = o.phoneNumber || null, this.photoURL = o.photoURL || null, this.isAnonymous = o.isAnonymous || !1, this.tenantId = o.tenantId || null, this.providerData = o.providerData ? [...o.providerData] : [], this.metadata = new fc(o.createdAt || void 0, o.lastLoginAt || void 0);
|
|
3522
3522
|
}
|
|
3523
3523
|
getIdToken(t) {
|
|
3524
3524
|
return E(this, null, function* () {
|
|
3525
|
-
const n = yield
|
|
3525
|
+
const n = yield Jn(this, this.stsTokenManager.getToken(this.auth, t));
|
|
3526
3526
|
return ae(
|
|
3527
3527
|
n,
|
|
3528
3528
|
this.auth,
|
|
@@ -3546,7 +3546,7 @@ class Hn {
|
|
|
3546
3546
|
), this.displayName = t.displayName, this.photoURL = t.photoURL, this.email = t.email, this.emailVerified = t.emailVerified, this.phoneNumber = t.phoneNumber, this.isAnonymous = t.isAnonymous, this.tenantId = t.tenantId, this.providerData = t.providerData.map((n) => Object.assign({}, n)), this.metadata._copy(t.metadata), this.stsTokenManager._assign(t.stsTokenManager));
|
|
3547
3547
|
}
|
|
3548
3548
|
_clone(t) {
|
|
3549
|
-
const n = new
|
|
3549
|
+
const n = new Un(Object.assign(Object.assign({}, this), { auth: t, stsTokenManager: this.stsTokenManager._clone() }));
|
|
3550
3550
|
return n.metadata._copy(this.metadata), n;
|
|
3551
3551
|
}
|
|
3552
3552
|
_onReload(t) {
|
|
@@ -3577,7 +3577,7 @@ class Hn {
|
|
|
3577
3577
|
if (at(this.auth.app))
|
|
3578
3578
|
return Promise.reject(kt(this.auth));
|
|
3579
3579
|
const t = yield this.getIdToken();
|
|
3580
|
-
return yield
|
|
3580
|
+
return yield Jn(this, iC(this.auth, { idToken: t })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
|
|
3581
3581
|
});
|
|
3582
3582
|
}
|
|
3583
3583
|
toJSON() {
|
|
@@ -3619,7 +3619,7 @@ class Hn {
|
|
|
3619
3619
|
t,
|
|
3620
3620
|
"internal-error"
|
|
3621
3621
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
3622
|
-
),
|
|
3622
|
+
), ar(f, t.name), ar(h, t.name), ae(
|
|
3623
3623
|
typeof C == "boolean",
|
|
3624
3624
|
t,
|
|
3625
3625
|
"internal-error"
|
|
@@ -3629,8 +3629,8 @@ class Hn {
|
|
|
3629
3629
|
t,
|
|
3630
3630
|
"internal-error"
|
|
3631
3631
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
3632
|
-
),
|
|
3633
|
-
const $ = new
|
|
3632
|
+
), ar(p, t.name), ar(m, t.name), ar(g, t.name), ar(v, t.name), ar(x, t.name), ar(w, t.name);
|
|
3633
|
+
const $ = new Un({
|
|
3634
3634
|
uid: y,
|
|
3635
3635
|
auth: t,
|
|
3636
3636
|
email: h,
|
|
@@ -3655,7 +3655,7 @@ class Hn {
|
|
|
3655
3655
|
return E(this, null, function* () {
|
|
3656
3656
|
const i = new di();
|
|
3657
3657
|
i.updateFromServerResponse(n);
|
|
3658
|
-
const o = new
|
|
3658
|
+
const o = new Un({
|
|
3659
3659
|
uid: n.localId,
|
|
3660
3660
|
auth: t,
|
|
3661
3661
|
stsTokenManager: i,
|
|
@@ -3679,7 +3679,7 @@ class Hn {
|
|
|
3679
3679
|
);
|
|
3680
3680
|
const o = i.providerUserInfo !== void 0 ? mg(i.providerUserInfo) : [], a = !(i.email && i.passwordHash) && !(o != null && o.length), s = new di();
|
|
3681
3681
|
s.updateFromIdToken(r);
|
|
3682
|
-
const l = new
|
|
3682
|
+
const l = new Un({
|
|
3683
3683
|
uid: i.localId,
|
|
3684
3684
|
auth: t,
|
|
3685
3685
|
stsTokenManager: s,
|
|
@@ -3718,9 +3718,9 @@ class Hn {
|
|
|
3718
3718
|
*/
|
|
3719
3719
|
const Hd = /* @__PURE__ */ new Map();
|
|
3720
3720
|
function sn(e) {
|
|
3721
|
-
|
|
3721
|
+
wn(e instanceof Function, "Expected a class definition");
|
|
3722
3722
|
let t = Hd.get(e);
|
|
3723
|
-
return t ? (
|
|
3723
|
+
return t ? (wn(t instanceof e, "Instance stored in cache mismatched with class"), t) : (t = new e(), Hd.set(e, t), t);
|
|
3724
3724
|
}
|
|
3725
3725
|
/**
|
|
3726
3726
|
* @license
|
|
@@ -3801,7 +3801,7 @@ class fi {
|
|
|
3801
3801
|
getCurrentUser() {
|
|
3802
3802
|
return E(this, null, function* () {
|
|
3803
3803
|
const t = yield this.persistence._get(this.fullUserKey);
|
|
3804
|
-
return t ?
|
|
3804
|
+
return t ? Un._fromJSON(this.auth, t) : null;
|
|
3805
3805
|
});
|
|
3806
3806
|
}
|
|
3807
3807
|
removeCurrentUser() {
|
|
@@ -3837,7 +3837,7 @@ class fi {
|
|
|
3837
3837
|
try {
|
|
3838
3838
|
const d = yield u._get(a);
|
|
3839
3839
|
if (d) {
|
|
3840
|
-
const f =
|
|
3840
|
+
const f = Un._fromJSON(t, d);
|
|
3841
3841
|
u !== o && (s = f), o = u;
|
|
3842
3842
|
break;
|
|
3843
3843
|
}
|
|
@@ -4193,7 +4193,7 @@ class xC {
|
|
|
4193
4193
|
initializeCurrentUserFromIdToken(t) {
|
|
4194
4194
|
return E(this, null, function* () {
|
|
4195
4195
|
try {
|
|
4196
|
-
const n = yield gg(this, { idToken: t }), r = yield
|
|
4196
|
+
const n = yield gg(this, { idToken: t }), r = yield Un._fromGetAccountInfoResponse(this, n, t);
|
|
4197
4197
|
yield this.directlySetCurrentUser(r);
|
|
4198
4198
|
} catch (n) {
|
|
4199
4199
|
console.warn("FirebaseServerApp could not login user with provided authIdToken: ", n), yield this.directlySetCurrentUser(null);
|
|
@@ -4824,19 +4824,19 @@ class Bi {
|
|
|
4824
4824
|
* @returns a JSON-serializable representation of this object.
|
|
4825
4825
|
*/
|
|
4826
4826
|
toJSON() {
|
|
4827
|
-
return
|
|
4827
|
+
return Ln("not implemented");
|
|
4828
4828
|
}
|
|
4829
4829
|
/** @internal */
|
|
4830
4830
|
_getIdTokenResponse(t) {
|
|
4831
|
-
return
|
|
4831
|
+
return Ln("not implemented");
|
|
4832
4832
|
}
|
|
4833
4833
|
/** @internal */
|
|
4834
4834
|
_linkToIdToken(t, n) {
|
|
4835
|
-
return
|
|
4835
|
+
return Ln("not implemented");
|
|
4836
4836
|
}
|
|
4837
4837
|
/** @internal */
|
|
4838
4838
|
_getReauthenticationResolver(t) {
|
|
4839
|
-
return
|
|
4839
|
+
return Ln("not implemented");
|
|
4840
4840
|
}
|
|
4841
4841
|
}
|
|
4842
4842
|
/**
|
|
@@ -4893,7 +4893,7 @@ function LC(e, t) {
|
|
|
4893
4893
|
*/
|
|
4894
4894
|
function MC(e, t) {
|
|
4895
4895
|
return E(this, null, function* () {
|
|
4896
|
-
return
|
|
4896
|
+
return rr(e, "POST", "/v1/accounts:signInWithPassword", ct(e, t));
|
|
4897
4897
|
});
|
|
4898
4898
|
}
|
|
4899
4899
|
function fs(e, t) {
|
|
@@ -4939,12 +4939,12 @@ function NC(e, t) {
|
|
|
4939
4939
|
*/
|
|
4940
4940
|
function FC(e, t) {
|
|
4941
4941
|
return E(this, null, function* () {
|
|
4942
|
-
return
|
|
4942
|
+
return rr(e, "POST", "/v1/accounts:signInWithEmailLink", ct(e, t));
|
|
4943
4943
|
});
|
|
4944
4944
|
}
|
|
4945
4945
|
function zC(e, t) {
|
|
4946
4946
|
return E(this, null, function* () {
|
|
4947
|
-
return
|
|
4947
|
+
return rr(e, "POST", "/v1/accounts:signInWithEmailLink", ct(e, t));
|
|
4948
4948
|
});
|
|
4949
4949
|
}
|
|
4950
4950
|
/**
|
|
@@ -5085,9 +5085,9 @@ class Io extends Bi {
|
|
|
5085
5085
|
* See the License for the specific language governing permissions and
|
|
5086
5086
|
* limitations under the License.
|
|
5087
5087
|
*/
|
|
5088
|
-
function
|
|
5088
|
+
function Gn(e, t) {
|
|
5089
5089
|
return E(this, null, function* () {
|
|
5090
|
-
return
|
|
5090
|
+
return rr(e, "POST", "/v1/accounts:signInWithIdp", ct(e, t));
|
|
5091
5091
|
});
|
|
5092
5092
|
}
|
|
5093
5093
|
/**
|
|
@@ -5107,13 +5107,13 @@ function Kn(e, t) {
|
|
|
5107
5107
|
* limitations under the License.
|
|
5108
5108
|
*/
|
|
5109
5109
|
const UC = "http://localhost";
|
|
5110
|
-
class
|
|
5110
|
+
class Mn extends Bi {
|
|
5111
5111
|
constructor() {
|
|
5112
5112
|
super(...arguments), this.pendingToken = null;
|
|
5113
5113
|
}
|
|
5114
5114
|
/** @internal */
|
|
5115
5115
|
static _fromParams(t) {
|
|
5116
|
-
const n = new
|
|
5116
|
+
const n = new Mn(t.providerId, t.signInMethod);
|
|
5117
5117
|
return t.idToken || t.accessToken ? (t.idToken && (n.idToken = t.idToken), t.accessToken && (n.accessToken = t.accessToken), t.nonce && !t.pendingToken && (n.nonce = t.nonce), t.pendingToken && (n.pendingToken = t.pendingToken)) : t.oauthToken && t.oauthTokenSecret ? (n.accessToken = t.oauthToken, n.secret = t.oauthTokenSecret) : _t(
|
|
5118
5118
|
"argument-error"
|
|
5119
5119
|
/* AuthErrorCode.ARGUMENT_ERROR */
|
|
@@ -5144,23 +5144,23 @@ class $n extends Bi {
|
|
|
5144
5144
|
const n = typeof t == "string" ? JSON.parse(t) : t, { providerId: r, signInMethod: i } = n, o = fu(n, ["providerId", "signInMethod"]);
|
|
5145
5145
|
if (!r || !i)
|
|
5146
5146
|
return null;
|
|
5147
|
-
const a = new
|
|
5147
|
+
const a = new Mn(r, i);
|
|
5148
5148
|
return a.idToken = o.idToken || void 0, a.accessToken = o.accessToken || void 0, a.secret = o.secret, a.nonce = o.nonce, a.pendingToken = o.pendingToken || null, a;
|
|
5149
5149
|
}
|
|
5150
5150
|
/** @internal */
|
|
5151
5151
|
_getIdTokenResponse(t) {
|
|
5152
5152
|
const n = this.buildRequest();
|
|
5153
|
-
return
|
|
5153
|
+
return Gn(t, n);
|
|
5154
5154
|
}
|
|
5155
5155
|
/** @internal */
|
|
5156
5156
|
_linkToIdToken(t, n) {
|
|
5157
5157
|
const r = this.buildRequest();
|
|
5158
|
-
return r.idToken = n,
|
|
5158
|
+
return r.idToken = n, Gn(t, r);
|
|
5159
5159
|
}
|
|
5160
5160
|
/** @internal */
|
|
5161
5161
|
_getReauthenticationResolver(t) {
|
|
5162
5162
|
const n = this.buildRequest();
|
|
5163
|
-
return n.autoCreate = !1,
|
|
5163
|
+
return n.autoCreate = !1, Gn(t, n);
|
|
5164
5164
|
}
|
|
5165
5165
|
buildRequest() {
|
|
5166
5166
|
const t = {
|
|
@@ -5199,12 +5199,12 @@ function VC(e, t) {
|
|
|
5199
5199
|
}
|
|
5200
5200
|
function HC(e, t) {
|
|
5201
5201
|
return E(this, null, function* () {
|
|
5202
|
-
return
|
|
5202
|
+
return rr(e, "POST", "/v1/accounts:signInWithPhoneNumber", ct(e, t));
|
|
5203
5203
|
});
|
|
5204
5204
|
}
|
|
5205
5205
|
function WC(e, t) {
|
|
5206
5206
|
return E(this, null, function* () {
|
|
5207
|
-
const n = yield
|
|
5207
|
+
const n = yield rr(e, "POST", "/v1/accounts:signInWithPhoneNumber", ct(e, t));
|
|
5208
5208
|
if (n.temporaryProof)
|
|
5209
5209
|
throw to(e, "account-exists-with-different-credential", n);
|
|
5210
5210
|
return n;
|
|
@@ -5217,7 +5217,7 @@ const GC = {
|
|
|
5217
5217
|
function YC(e, t) {
|
|
5218
5218
|
return E(this, null, function* () {
|
|
5219
5219
|
const n = Object.assign(Object.assign({}, t), { operation: "REAUTH" });
|
|
5220
|
-
return
|
|
5220
|
+
return rr(e, "POST", "/v1/accounts:signInWithPhoneNumber", ct(e, n), GC);
|
|
5221
5221
|
});
|
|
5222
5222
|
}
|
|
5223
5223
|
/**
|
|
@@ -5454,7 +5454,7 @@ Tr.EMAIL_LINK_SIGN_IN_METHOD = "emailLink";
|
|
|
5454
5454
|
* See the License for the specific language governing permissions and
|
|
5455
5455
|
* limitations under the License.
|
|
5456
5456
|
*/
|
|
5457
|
-
class
|
|
5457
|
+
class ir {
|
|
5458
5458
|
/**
|
|
5459
5459
|
* Constructor for generic OAuth providers.
|
|
5460
5460
|
*
|
|
@@ -5507,7 +5507,7 @@ class ar {
|
|
|
5507
5507
|
* See the License for the specific language governing permissions and
|
|
5508
5508
|
* limitations under the License.
|
|
5509
5509
|
*/
|
|
5510
|
-
class Ni extends
|
|
5510
|
+
class Ni extends ir {
|
|
5511
5511
|
constructor() {
|
|
5512
5512
|
super(...arguments), this.scopes = [];
|
|
5513
5513
|
}
|
|
@@ -5537,7 +5537,7 @@ class hi extends Ni {
|
|
|
5537
5537
|
"providerId" in n && "signInMethod" in n,
|
|
5538
5538
|
"argument-error"
|
|
5539
5539
|
/* AuthErrorCode.ARGUMENT_ERROR */
|
|
5540
|
-
),
|
|
5540
|
+
), Mn._fromParams(n);
|
|
5541
5541
|
}
|
|
5542
5542
|
/**
|
|
5543
5543
|
* Creates a {@link OAuthCredential} from a generic OAuth provider's access token or ID token.
|
|
@@ -5569,7 +5569,7 @@ class hi extends Ni {
|
|
|
5569
5569
|
t.idToken || t.accessToken,
|
|
5570
5570
|
"argument-error"
|
|
5571
5571
|
/* AuthErrorCode.ARGUMENT_ERROR */
|
|
5572
|
-
),
|
|
5572
|
+
), Mn._fromParams(Object.assign(Object.assign({}, t), { providerId: this.providerId, signInMethod: this.providerId }));
|
|
5573
5573
|
}
|
|
5574
5574
|
/**
|
|
5575
5575
|
* Used to extract the underlying {@link OAuthCredential} from a {@link UserCredential}.
|
|
@@ -5622,7 +5622,7 @@ class hi extends Ni {
|
|
|
5622
5622
|
* See the License for the specific language governing permissions and
|
|
5623
5623
|
* limitations under the License.
|
|
5624
5624
|
*/
|
|
5625
|
-
class
|
|
5625
|
+
class Pn extends Ni {
|
|
5626
5626
|
constructor() {
|
|
5627
5627
|
super(
|
|
5628
5628
|
"facebook.com"
|
|
@@ -5642,9 +5642,9 @@ class _n extends Ni {
|
|
|
5642
5642
|
* @param accessToken - Facebook access token.
|
|
5643
5643
|
*/
|
|
5644
5644
|
static credential(t) {
|
|
5645
|
-
return
|
|
5646
|
-
providerId:
|
|
5647
|
-
signInMethod:
|
|
5645
|
+
return Mn._fromParams({
|
|
5646
|
+
providerId: Pn.PROVIDER_ID,
|
|
5647
|
+
signInMethod: Pn.FACEBOOK_SIGN_IN_METHOD,
|
|
5648
5648
|
accessToken: t
|
|
5649
5649
|
});
|
|
5650
5650
|
}
|
|
@@ -5654,7 +5654,7 @@ class _n extends Ni {
|
|
|
5654
5654
|
* @param userCredential - The user credential.
|
|
5655
5655
|
*/
|
|
5656
5656
|
static credentialFromResult(t) {
|
|
5657
|
-
return
|
|
5657
|
+
return Pn.credentialFromTaggedObject(t);
|
|
5658
5658
|
}
|
|
5659
5659
|
/**
|
|
5660
5660
|
* Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
|
|
@@ -5663,20 +5663,20 @@ class _n extends Ni {
|
|
|
5663
5663
|
* @param userCredential - The user credential.
|
|
5664
5664
|
*/
|
|
5665
5665
|
static credentialFromError(t) {
|
|
5666
|
-
return
|
|
5666
|
+
return Pn.credentialFromTaggedObject(t.customData || {});
|
|
5667
5667
|
}
|
|
5668
5668
|
static credentialFromTaggedObject({ _tokenResponse: t }) {
|
|
5669
5669
|
if (!t || !("oauthAccessToken" in t) || !t.oauthAccessToken)
|
|
5670
5670
|
return null;
|
|
5671
5671
|
try {
|
|
5672
|
-
return
|
|
5672
|
+
return Pn.credential(t.oauthAccessToken);
|
|
5673
5673
|
} catch (n) {
|
|
5674
5674
|
return null;
|
|
5675
5675
|
}
|
|
5676
5676
|
}
|
|
5677
5677
|
}
|
|
5678
|
-
|
|
5679
|
-
|
|
5678
|
+
Pn.FACEBOOK_SIGN_IN_METHOD = "facebook.com";
|
|
5679
|
+
Pn.PROVIDER_ID = "facebook.com";
|
|
5680
5680
|
/**
|
|
5681
5681
|
* @license
|
|
5682
5682
|
* Copyright 2020 Google LLC
|
|
@@ -5693,7 +5693,7 @@ _n.PROVIDER_ID = "facebook.com";
|
|
|
5693
5693
|
* See the License for the specific language governing permissions and
|
|
5694
5694
|
* limitations under the License.
|
|
5695
5695
|
*/
|
|
5696
|
-
class
|
|
5696
|
+
class Dn extends Ni {
|
|
5697
5697
|
constructor() {
|
|
5698
5698
|
super(
|
|
5699
5699
|
"google.com"
|
|
@@ -5714,9 +5714,9 @@ class Pn extends Ni {
|
|
|
5714
5714
|
* @param accessToken - Google access token.
|
|
5715
5715
|
*/
|
|
5716
5716
|
static credential(t, n) {
|
|
5717
|
-
return
|
|
5718
|
-
providerId:
|
|
5719
|
-
signInMethod:
|
|
5717
|
+
return Mn._fromParams({
|
|
5718
|
+
providerId: Dn.PROVIDER_ID,
|
|
5719
|
+
signInMethod: Dn.GOOGLE_SIGN_IN_METHOD,
|
|
5720
5720
|
idToken: t,
|
|
5721
5721
|
accessToken: n
|
|
5722
5722
|
});
|
|
@@ -5727,7 +5727,7 @@ class Pn extends Ni {
|
|
|
5727
5727
|
* @param userCredential - The user credential.
|
|
5728
5728
|
*/
|
|
5729
5729
|
static credentialFromResult(t) {
|
|
5730
|
-
return
|
|
5730
|
+
return Dn.credentialFromTaggedObject(t);
|
|
5731
5731
|
}
|
|
5732
5732
|
/**
|
|
5733
5733
|
* Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
|
|
@@ -5736,7 +5736,7 @@ class Pn extends Ni {
|
|
|
5736
5736
|
* @param userCredential - The user credential.
|
|
5737
5737
|
*/
|
|
5738
5738
|
static credentialFromError(t) {
|
|
5739
|
-
return
|
|
5739
|
+
return Dn.credentialFromTaggedObject(t.customData || {});
|
|
5740
5740
|
}
|
|
5741
5741
|
static credentialFromTaggedObject({ _tokenResponse: t }) {
|
|
5742
5742
|
if (!t)
|
|
@@ -5745,14 +5745,14 @@ class Pn extends Ni {
|
|
|
5745
5745
|
if (!n && !r)
|
|
5746
5746
|
return null;
|
|
5747
5747
|
try {
|
|
5748
|
-
return
|
|
5748
|
+
return Dn.credential(n, r);
|
|
5749
5749
|
} catch (i) {
|
|
5750
5750
|
return null;
|
|
5751
5751
|
}
|
|
5752
5752
|
}
|
|
5753
5753
|
}
|
|
5754
|
-
|
|
5755
|
-
|
|
5754
|
+
Dn.GOOGLE_SIGN_IN_METHOD = "google.com";
|
|
5755
|
+
Dn.PROVIDER_ID = "google.com";
|
|
5756
5756
|
/**
|
|
5757
5757
|
* @license
|
|
5758
5758
|
* Copyright 2020 Google LLC
|
|
@@ -5769,7 +5769,7 @@ Pn.PROVIDER_ID = "google.com";
|
|
|
5769
5769
|
* See the License for the specific language governing permissions and
|
|
5770
5770
|
* limitations under the License.
|
|
5771
5771
|
*/
|
|
5772
|
-
class
|
|
5772
|
+
class Rn extends Ni {
|
|
5773
5773
|
constructor() {
|
|
5774
5774
|
super(
|
|
5775
5775
|
"github.com"
|
|
@@ -5782,9 +5782,9 @@ class Dn extends Ni {
|
|
|
5782
5782
|
* @param accessToken - GitHub access token.
|
|
5783
5783
|
*/
|
|
5784
5784
|
static credential(t) {
|
|
5785
|
-
return
|
|
5786
|
-
providerId:
|
|
5787
|
-
signInMethod:
|
|
5785
|
+
return Mn._fromParams({
|
|
5786
|
+
providerId: Rn.PROVIDER_ID,
|
|
5787
|
+
signInMethod: Rn.GITHUB_SIGN_IN_METHOD,
|
|
5788
5788
|
accessToken: t
|
|
5789
5789
|
});
|
|
5790
5790
|
}
|
|
@@ -5794,7 +5794,7 @@ class Dn extends Ni {
|
|
|
5794
5794
|
* @param userCredential - The user credential.
|
|
5795
5795
|
*/
|
|
5796
5796
|
static credentialFromResult(t) {
|
|
5797
|
-
return
|
|
5797
|
+
return Rn.credentialFromTaggedObject(t);
|
|
5798
5798
|
}
|
|
5799
5799
|
/**
|
|
5800
5800
|
* Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
|
|
@@ -5803,20 +5803,20 @@ class Dn extends Ni {
|
|
|
5803
5803
|
* @param userCredential - The user credential.
|
|
5804
5804
|
*/
|
|
5805
5805
|
static credentialFromError(t) {
|
|
5806
|
-
return
|
|
5806
|
+
return Rn.credentialFromTaggedObject(t.customData || {});
|
|
5807
5807
|
}
|
|
5808
5808
|
static credentialFromTaggedObject({ _tokenResponse: t }) {
|
|
5809
5809
|
if (!t || !("oauthAccessToken" in t) || !t.oauthAccessToken)
|
|
5810
5810
|
return null;
|
|
5811
5811
|
try {
|
|
5812
|
-
return
|
|
5812
|
+
return Rn.credential(t.oauthAccessToken);
|
|
5813
5813
|
} catch (n) {
|
|
5814
5814
|
return null;
|
|
5815
5815
|
}
|
|
5816
5816
|
}
|
|
5817
5817
|
}
|
|
5818
|
-
|
|
5819
|
-
|
|
5818
|
+
Rn.GITHUB_SIGN_IN_METHOD = "github.com";
|
|
5819
|
+
Rn.PROVIDER_ID = "github.com";
|
|
5820
5820
|
/**
|
|
5821
5821
|
* @license
|
|
5822
5822
|
* Copyright 2020 Google LLC
|
|
@@ -5842,17 +5842,17 @@ class _i extends Bi {
|
|
|
5842
5842
|
/** @internal */
|
|
5843
5843
|
_getIdTokenResponse(t) {
|
|
5844
5844
|
const n = this.buildRequest();
|
|
5845
|
-
return
|
|
5845
|
+
return Gn(t, n);
|
|
5846
5846
|
}
|
|
5847
5847
|
/** @internal */
|
|
5848
5848
|
_linkToIdToken(t, n) {
|
|
5849
5849
|
const r = this.buildRequest();
|
|
5850
|
-
return r.idToken = n,
|
|
5850
|
+
return r.idToken = n, Gn(t, r);
|
|
5851
5851
|
}
|
|
5852
5852
|
/** @internal */
|
|
5853
5853
|
_getReauthenticationResolver(t) {
|
|
5854
5854
|
const n = this.buildRequest();
|
|
5855
|
-
return n.autoCreate = !1,
|
|
5855
|
+
return n.autoCreate = !1, Gn(t, n);
|
|
5856
5856
|
}
|
|
5857
5857
|
/** {@inheritdoc AuthCredential.toJSON} */
|
|
5858
5858
|
toJSON() {
|
|
@@ -5908,7 +5908,7 @@ class _i extends Bi {
|
|
|
5908
5908
|
* limitations under the License.
|
|
5909
5909
|
*/
|
|
5910
5910
|
const JC = "saml.";
|
|
5911
|
-
class La extends
|
|
5911
|
+
class La extends ir {
|
|
5912
5912
|
/**
|
|
5913
5913
|
* Constructor. The providerId must start with "saml."
|
|
5914
5914
|
* @param providerId - SAML provider ID.
|
|
@@ -5989,7 +5989,7 @@ class La extends ar {
|
|
|
5989
5989
|
* See the License for the specific language governing permissions and
|
|
5990
5990
|
* limitations under the License.
|
|
5991
5991
|
*/
|
|
5992
|
-
class
|
|
5992
|
+
class On extends Ni {
|
|
5993
5993
|
constructor() {
|
|
5994
5994
|
super(
|
|
5995
5995
|
"twitter.com"
|
|
@@ -6003,9 +6003,9 @@ class Rn extends Ni {
|
|
|
6003
6003
|
* @param secret - Twitter secret.
|
|
6004
6004
|
*/
|
|
6005
6005
|
static credential(t, n) {
|
|
6006
|
-
return
|
|
6007
|
-
providerId:
|
|
6008
|
-
signInMethod:
|
|
6006
|
+
return Mn._fromParams({
|
|
6007
|
+
providerId: On.PROVIDER_ID,
|
|
6008
|
+
signInMethod: On.TWITTER_SIGN_IN_METHOD,
|
|
6009
6009
|
oauthToken: t,
|
|
6010
6010
|
oauthTokenSecret: n
|
|
6011
6011
|
});
|
|
@@ -6016,7 +6016,7 @@ class Rn extends Ni {
|
|
|
6016
6016
|
* @param userCredential - The user credential.
|
|
6017
6017
|
*/
|
|
6018
6018
|
static credentialFromResult(t) {
|
|
6019
|
-
return
|
|
6019
|
+
return On.credentialFromTaggedObject(t);
|
|
6020
6020
|
}
|
|
6021
6021
|
/**
|
|
6022
6022
|
* Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
|
|
@@ -6025,7 +6025,7 @@ class Rn extends Ni {
|
|
|
6025
6025
|
* @param userCredential - The user credential.
|
|
6026
6026
|
*/
|
|
6027
6027
|
static credentialFromError(t) {
|
|
6028
|
-
return
|
|
6028
|
+
return On.credentialFromTaggedObject(t.customData || {});
|
|
6029
6029
|
}
|
|
6030
6030
|
static credentialFromTaggedObject({ _tokenResponse: t }) {
|
|
6031
6031
|
if (!t)
|
|
@@ -6034,14 +6034,14 @@ class Rn extends Ni {
|
|
|
6034
6034
|
if (!n || !r)
|
|
6035
6035
|
return null;
|
|
6036
6036
|
try {
|
|
6037
|
-
return
|
|
6037
|
+
return On.credential(n, r);
|
|
6038
6038
|
} catch (i) {
|
|
6039
6039
|
return null;
|
|
6040
6040
|
}
|
|
6041
6041
|
}
|
|
6042
6042
|
}
|
|
6043
|
-
|
|
6044
|
-
|
|
6043
|
+
On.TWITTER_SIGN_IN_METHOD = "twitter.com";
|
|
6044
|
+
On.PROVIDER_ID = "twitter.com";
|
|
6045
6045
|
/**
|
|
6046
6046
|
* @license
|
|
6047
6047
|
* Copyright 2020 Google LLC
|
|
@@ -6060,7 +6060,7 @@ Rn.PROVIDER_ID = "twitter.com";
|
|
|
6060
6060
|
*/
|
|
6061
6061
|
function _g(e, t) {
|
|
6062
6062
|
return E(this, null, function* () {
|
|
6063
|
-
return
|
|
6063
|
+
return rr(e, "POST", "/v1/accounts:signUp", ct(e, t));
|
|
6064
6064
|
});
|
|
6065
6065
|
}
|
|
6066
6066
|
/**
|
|
@@ -6079,14 +6079,14 @@ function _g(e, t) {
|
|
|
6079
6079
|
* See the License for the specific language governing permissions and
|
|
6080
6080
|
* limitations under the License.
|
|
6081
6081
|
*/
|
|
6082
|
-
class
|
|
6082
|
+
class mn {
|
|
6083
6083
|
constructor(t) {
|
|
6084
6084
|
this.user = t.user, this.providerId = t.providerId, this._tokenResponse = t._tokenResponse, this.operationType = t.operationType;
|
|
6085
6085
|
}
|
|
6086
6086
|
static _fromIdTokenResponse(t, n, r, i = !1) {
|
|
6087
6087
|
return E(this, null, function* () {
|
|
6088
|
-
const o = yield
|
|
6089
|
-
return new
|
|
6088
|
+
const o = yield Un._fromIdTokenResponse(t, r, i), a = Qd(r);
|
|
6089
|
+
return new mn({
|
|
6090
6090
|
user: o,
|
|
6091
6091
|
providerId: a,
|
|
6092
6092
|
_tokenResponse: r,
|
|
@@ -6102,7 +6102,7 @@ class gn {
|
|
|
6102
6102
|
!0
|
|
6103
6103
|
);
|
|
6104
6104
|
const i = Qd(r);
|
|
6105
|
-
return new
|
|
6105
|
+
return new mn({
|
|
6106
6106
|
user: t,
|
|
6107
6107
|
providerId: i,
|
|
6108
6108
|
_tokenResponse: r,
|
|
@@ -6137,7 +6137,7 @@ function XC(e) {
|
|
|
6137
6137
|
return Promise.reject(kt(e));
|
|
6138
6138
|
const n = lt(e);
|
|
6139
6139
|
if (yield n._initializationPromise, !((t = n.currentUser) === null || t === void 0) && t.isAnonymous)
|
|
6140
|
-
return new
|
|
6140
|
+
return new mn({
|
|
6141
6141
|
user: n.currentUser,
|
|
6142
6142
|
providerId: null,
|
|
6143
6143
|
operationType: "signIn"
|
|
@@ -6145,7 +6145,7 @@ function XC(e) {
|
|
|
6145
6145
|
});
|
|
6146
6146
|
const r = yield _g(n, {
|
|
6147
6147
|
returnSecureToken: !0
|
|
6148
|
-
}), i = yield
|
|
6148
|
+
}), i = yield mn._fromIdTokenResponse(n, "signIn", r, !0);
|
|
6149
6149
|
return yield n._updateCurrentUser(i.user), i;
|
|
6150
6150
|
});
|
|
6151
6151
|
}
|
|
@@ -6235,8 +6235,8 @@ function ZC(e, t) {
|
|
|
6235
6235
|
}
|
|
6236
6236
|
function yu(e, t, n = !1) {
|
|
6237
6237
|
return E(this, null, function* () {
|
|
6238
|
-
const r = yield
|
|
6239
|
-
return
|
|
6238
|
+
const r = yield Jn(e, t._linkToIdToken(e.auth, yield e.getIdToken()), n);
|
|
6239
|
+
return mn._forOperation(e, "link", r);
|
|
6240
6240
|
});
|
|
6241
6241
|
}
|
|
6242
6242
|
function ps(e, t, n) {
|
|
@@ -6269,7 +6269,7 @@ function Rg(e, t, n = !1) {
|
|
|
6269
6269
|
return Promise.reject(kt(r));
|
|
6270
6270
|
const i = "reauthenticate";
|
|
6271
6271
|
try {
|
|
6272
|
-
const o = yield
|
|
6272
|
+
const o = yield Jn(e, Pg(r, i, t, e), n);
|
|
6273
6273
|
ae(
|
|
6274
6274
|
o.idToken,
|
|
6275
6275
|
r,
|
|
@@ -6289,7 +6289,7 @@ function Rg(e, t, n = !1) {
|
|
|
6289
6289
|
r,
|
|
6290
6290
|
"user-mismatch"
|
|
6291
6291
|
/* AuthErrorCode.USER_MISMATCH */
|
|
6292
|
-
),
|
|
6292
|
+
), mn._forOperation(e, i, o);
|
|
6293
6293
|
} catch (o) {
|
|
6294
6294
|
throw (o == null ? void 0 : o.code) === "auth/user-not-found" && _t(
|
|
6295
6295
|
r,
|
|
@@ -6319,7 +6319,7 @@ function Og(e, t, n = !1) {
|
|
|
6319
6319
|
return E(this, null, function* () {
|
|
6320
6320
|
if (at(e.app))
|
|
6321
6321
|
return Promise.reject(kt(e));
|
|
6322
|
-
const r = "signIn", i = yield Pg(e, r, t), o = yield
|
|
6322
|
+
const r = "signIn", i = yield Pg(e, r, t), o = yield mn._fromIdTokenResponse(e, r, i);
|
|
6323
6323
|
return n || (yield e._updateCurrentUser(o.user)), o;
|
|
6324
6324
|
});
|
|
6325
6325
|
}
|
|
@@ -6357,7 +6357,7 @@ function Mg(e, t) {
|
|
|
6357
6357
|
*/
|
|
6358
6358
|
function ew(e, t) {
|
|
6359
6359
|
return E(this, null, function* () {
|
|
6360
|
-
return
|
|
6360
|
+
return rr(e, "POST", "/v1/accounts:signInWithCustomToken", ct(e, t));
|
|
6361
6361
|
});
|
|
6362
6362
|
}
|
|
6363
6363
|
/**
|
|
@@ -6383,7 +6383,7 @@ function tw(e, t) {
|
|
|
6383
6383
|
const n = lt(e), r = yield ew(n, {
|
|
6384
6384
|
token: t,
|
|
6385
6385
|
returnSecureToken: !0
|
|
6386
|
-
}), i = yield
|
|
6386
|
+
}), i = yield mn._fromIdTokenResponse(n, "signIn", r);
|
|
6387
6387
|
return yield n._updateCurrentUser(i.user), i;
|
|
6388
6388
|
});
|
|
6389
6389
|
}
|
|
@@ -6582,7 +6582,7 @@ function aw(e, t, n) {
|
|
|
6582
6582
|
/* RecaptchaClientType.WEB */
|
|
6583
6583
|
}, "signUpPassword", _g).catch((l) => {
|
|
6584
6584
|
throw l.code === "auth/password-does-not-meet-requirements" && wu(e), l;
|
|
6585
|
-
}), s = yield
|
|
6585
|
+
}), s = yield mn._fromIdTokenResponse(r, "signIn", a);
|
|
6586
6586
|
return yield r._updateCurrentUser(s.user), s;
|
|
6587
6587
|
});
|
|
6588
6588
|
}
|
|
@@ -6758,7 +6758,7 @@ function mw(r, i) {
|
|
|
6758
6758
|
displayName: t,
|
|
6759
6759
|
photoUrl: n,
|
|
6760
6760
|
returnSecureToken: !0
|
|
6761
|
-
}, l = yield
|
|
6761
|
+
}, l = yield Jn(o, gw(o.auth, s));
|
|
6762
6762
|
o.displayName = l.displayName || null, o.photoURL = l.photoUrl || null;
|
|
6763
6763
|
const u = o.providerData.find(
|
|
6764
6764
|
({ providerId: d }) => d === "password"
|
|
@@ -6781,7 +6781,7 @@ function $g(e, t, n) {
|
|
|
6781
6781
|
returnSecureToken: !0
|
|
6782
6782
|
};
|
|
6783
6783
|
t && (o.email = t), n && (o.password = n);
|
|
6784
|
-
const a = yield
|
|
6784
|
+
const a = yield Jn(e, RC(r, o));
|
|
6785
6785
|
yield e._updateTokensIfNecessary(
|
|
6786
6786
|
a,
|
|
6787
6787
|
/* reload */
|
|
@@ -6959,7 +6959,7 @@ class Iu {
|
|
|
6959
6959
|
const u = Object.assign(Object.assign({}, i), { idToken: l.idToken, refreshToken: l.refreshToken });
|
|
6960
6960
|
switch (n.operationType) {
|
|
6961
6961
|
case "signIn":
|
|
6962
|
-
const d = yield
|
|
6962
|
+
const d = yield mn._fromIdTokenResponse(r, n.operationType, u);
|
|
6963
6963
|
return yield r._updateCurrentUser(d.user), d;
|
|
6964
6964
|
case "reauthenticate":
|
|
6965
6965
|
return ae(
|
|
@@ -6967,7 +6967,7 @@ class Iu {
|
|
|
6967
6967
|
r,
|
|
6968
6968
|
"internal-error"
|
|
6969
6969
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
6970
|
-
),
|
|
6970
|
+
), mn._forOperation(n.user, n.operationType, u);
|
|
6971
6971
|
default:
|
|
6972
6972
|
_t(
|
|
6973
6973
|
r,
|
|
@@ -7040,7 +7040,7 @@ class Su {
|
|
|
7040
7040
|
}
|
|
7041
7041
|
enroll(t, n) {
|
|
7042
7042
|
return E(this, null, function* () {
|
|
7043
|
-
const r = t, i = yield this.getSession(), o = yield
|
|
7043
|
+
const r = t, i = yield this.getSession(), o = yield Jn(this.user, r._process(this.user.auth, i, n));
|
|
7044
7044
|
return yield this.user._updateTokensIfNecessary(o), this.user.reload();
|
|
7045
7045
|
});
|
|
7046
7046
|
}
|
|
@@ -7048,7 +7048,7 @@ class Su {
|
|
|
7048
7048
|
return E(this, null, function* () {
|
|
7049
7049
|
const n = typeof t == "string" ? t : t.uid, r = yield this.user.getIdToken();
|
|
7050
7050
|
try {
|
|
7051
|
-
const i = yield
|
|
7051
|
+
const i = yield Jn(this.user, Pw(this.user.auth, {
|
|
7052
7052
|
idToken: r,
|
|
7053
7053
|
mfaEnrollmentId: n
|
|
7054
7054
|
}));
|
|
@@ -8502,13 +8502,13 @@ class Eu extends Bi {
|
|
|
8502
8502
|
), this.params = t;
|
|
8503
8503
|
}
|
|
8504
8504
|
_getIdTokenResponse(t) {
|
|
8505
|
-
return
|
|
8505
|
+
return Gn(t, this._buildIdpRequest());
|
|
8506
8506
|
}
|
|
8507
8507
|
_linkToIdToken(t, n) {
|
|
8508
|
-
return
|
|
8508
|
+
return Gn(t, this._buildIdpRequest(n));
|
|
8509
8509
|
}
|
|
8510
8510
|
_getReauthenticationResolver(t) {
|
|
8511
|
-
return
|
|
8511
|
+
return Gn(t, this._buildIdpRequest());
|
|
8512
8512
|
}
|
|
8513
8513
|
_buildIdpRequest(t) {
|
|
8514
8514
|
const n = {
|
|
@@ -8622,10 +8622,10 @@ class Wg {
|
|
|
8622
8622
|
}
|
|
8623
8623
|
}
|
|
8624
8624
|
resolve(t) {
|
|
8625
|
-
|
|
8625
|
+
wn(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.resolve(t), this.unregisterAndCleanUp();
|
|
8626
8626
|
}
|
|
8627
8627
|
reject(t) {
|
|
8628
|
-
|
|
8628
|
+
wn(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.reject(t), this.unregisterAndCleanUp();
|
|
8629
8629
|
}
|
|
8630
8630
|
unregisterAndCleanUp() {
|
|
8631
8631
|
this.eventManager && this.eventManager.unregisterConsumer(this), this.pendingPromise = null, this.cleanUp();
|
|
@@ -8657,9 +8657,9 @@ function hI(e, t, n) {
|
|
|
8657
8657
|
/* AuthErrorCode.OPERATION_NOT_SUPPORTED */
|
|
8658
8658
|
));
|
|
8659
8659
|
const r = lt(e);
|
|
8660
|
-
$i(e, t,
|
|
8660
|
+
$i(e, t, ir);
|
|
8661
8661
|
const i = Yr(r, n);
|
|
8662
|
-
return new
|
|
8662
|
+
return new Vn(r, "signInViaPopup", t, i).executeNotNull();
|
|
8663
8663
|
});
|
|
8664
8664
|
}
|
|
8665
8665
|
function pI(e, t, n) {
|
|
@@ -8671,22 +8671,22 @@ function pI(e, t, n) {
|
|
|
8671
8671
|
"operation-not-supported-in-this-environment"
|
|
8672
8672
|
/* AuthErrorCode.OPERATION_NOT_SUPPORTED */
|
|
8673
8673
|
));
|
|
8674
|
-
$i(r.auth, t,
|
|
8674
|
+
$i(r.auth, t, ir);
|
|
8675
8675
|
const i = Yr(r.auth, n);
|
|
8676
|
-
return new
|
|
8676
|
+
return new Vn(r.auth, "reauthViaPopup", t, i, r).executeNotNull();
|
|
8677
8677
|
});
|
|
8678
8678
|
}
|
|
8679
8679
|
function gI(e, t, n) {
|
|
8680
8680
|
return E(this, null, function* () {
|
|
8681
8681
|
const r = je(e);
|
|
8682
|
-
$i(r.auth, t,
|
|
8682
|
+
$i(r.auth, t, ir);
|
|
8683
8683
|
const i = Yr(r.auth, n);
|
|
8684
|
-
return new
|
|
8684
|
+
return new Vn(r.auth, "linkViaPopup", t, i, r).executeNotNull();
|
|
8685
8685
|
});
|
|
8686
8686
|
}
|
|
8687
|
-
class
|
|
8687
|
+
class Vn extends Wg {
|
|
8688
8688
|
constructor(t, n, r, i, o) {
|
|
8689
|
-
super(t, n, i, o), this.provider = r, this.authWindow = null, this.pollId = null,
|
|
8689
|
+
super(t, n, i, o), this.provider = r, this.authWindow = null, this.pollId = null, Vn.currentPopupAction && Vn.currentPopupAction.cancel(), Vn.currentPopupAction = this;
|
|
8690
8690
|
}
|
|
8691
8691
|
executeNotNull() {
|
|
8692
8692
|
return E(this, null, function* () {
|
|
@@ -8701,7 +8701,7 @@ class Wn extends Wg {
|
|
|
8701
8701
|
}
|
|
8702
8702
|
onExecution() {
|
|
8703
8703
|
return E(this, null, function* () {
|
|
8704
|
-
|
|
8704
|
+
wn(this.filter.length === 1, "Popup operations only handle one event");
|
|
8705
8705
|
const t = No();
|
|
8706
8706
|
this.authWindow = yield this.resolver._openPopup(
|
|
8707
8707
|
this.auth,
|
|
@@ -8732,7 +8732,7 @@ class Wn extends Wg {
|
|
|
8732
8732
|
));
|
|
8733
8733
|
}
|
|
8734
8734
|
cleanUp() {
|
|
8735
|
-
this.authWindow && this.authWindow.close(), this.pollId && window.clearTimeout(this.pollId), this.authWindow = null, this.pollId = null,
|
|
8735
|
+
this.authWindow && this.authWindow.close(), this.pollId && window.clearTimeout(this.pollId), this.authWindow = null, this.pollId = null, Vn.currentPopupAction = null;
|
|
8736
8736
|
}
|
|
8737
8737
|
pollUserCancellation() {
|
|
8738
8738
|
const t = () => {
|
|
@@ -8756,7 +8756,7 @@ class Wn extends Wg {
|
|
|
8756
8756
|
t();
|
|
8757
8757
|
}
|
|
8758
8758
|
}
|
|
8759
|
-
|
|
8759
|
+
Vn.currentPopupAction = null;
|
|
8760
8760
|
/**
|
|
8761
8761
|
* @license
|
|
8762
8762
|
* Copyright 2020 Google LLC
|
|
@@ -8876,7 +8876,7 @@ function xI(e, t, n) {
|
|
|
8876
8876
|
if (at(e.app))
|
|
8877
8877
|
return Promise.reject(kt(e));
|
|
8878
8878
|
const r = lt(e);
|
|
8879
|
-
$i(e, t,
|
|
8879
|
+
$i(e, t, ir), yield r._initializationPromise;
|
|
8880
8880
|
const i = Yr(r, n);
|
|
8881
8881
|
return yield ku(i, r), i._openRedirect(
|
|
8882
8882
|
r,
|
|
@@ -8892,7 +8892,7 @@ function CI(e, t, n) {
|
|
|
8892
8892
|
function wI(e, t, n) {
|
|
8893
8893
|
return E(this, null, function* () {
|
|
8894
8894
|
const r = je(e);
|
|
8895
|
-
if ($i(r.auth, t,
|
|
8895
|
+
if ($i(r.auth, t, ir), at(r.auth.app))
|
|
8896
8896
|
return Promise.reject(kt(r.auth));
|
|
8897
8897
|
yield r.auth._initializationPromise;
|
|
8898
8898
|
const i = Yr(r.auth, n);
|
|
@@ -8907,7 +8907,7 @@ function II(e, t, n) {
|
|
|
8907
8907
|
function SI(e, t, n) {
|
|
8908
8908
|
return E(this, null, function* () {
|
|
8909
8909
|
const r = je(e);
|
|
8910
|
-
$i(r.auth, t,
|
|
8910
|
+
$i(r.auth, t, ir), yield r.auth._initializationPromise;
|
|
8911
8911
|
const i = Yr(r.auth, n);
|
|
8912
8912
|
yield ps(!1, r, t.providerId), yield ku(i, r.auth);
|
|
8913
8913
|
const o = yield Kg(r);
|
|
@@ -9327,7 +9327,7 @@ function pc(e, t, n, r, i, o) {
|
|
|
9327
9327
|
v: Gr,
|
|
9328
9328
|
eventId: i
|
|
9329
9329
|
};
|
|
9330
|
-
if (t instanceof
|
|
9330
|
+
if (t instanceof ir) {
|
|
9331
9331
|
t.setDefaultLanguage(e.languageCode), a.providerId = t.providerId || "", w0(t.getCustomParameters()) || (a.customParameters = JSON.stringify(t.getCustomParameters()));
|
|
9332
9332
|
for (const [d, f] of Object.entries(o || {}))
|
|
9333
9333
|
a[d] = f;
|
|
@@ -9373,7 +9373,7 @@ class ZI {
|
|
|
9373
9373
|
_openPopup(t, n, r, i) {
|
|
9374
9374
|
return E(this, null, function* () {
|
|
9375
9375
|
var o;
|
|
9376
|
-
|
|
9376
|
+
wn((o = this.eventManagers[t._key()]) === null || o === void 0 ? void 0 : o.manager, "_initialize() not called before _openPopup()");
|
|
9377
9377
|
const a = yield pc(t, n, r, xo(), i);
|
|
9378
9378
|
return YI(t, a, No());
|
|
9379
9379
|
});
|
|
@@ -9390,7 +9390,7 @@ class ZI {
|
|
|
9390
9390
|
const n = t._key();
|
|
9391
9391
|
if (this.eventManagers[n]) {
|
|
9392
9392
|
const { manager: i, promise: o } = this.eventManagers[n];
|
|
9393
|
-
return i ? Promise.resolve(i) : (
|
|
9393
|
+
return i ? Promise.resolve(i) : (wn(o, "If manager is not set, promise should be"), o);
|
|
9394
9394
|
}
|
|
9395
9395
|
const r = this.initAndGetManager(t);
|
|
9396
9396
|
return this.eventManagers[n] = { promise: r }, r.catch(() => {
|
|
@@ -9442,7 +9442,7 @@ class eS {
|
|
|
9442
9442
|
case "signin":
|
|
9443
9443
|
return this._finalizeSignIn(t, n.credential);
|
|
9444
9444
|
default:
|
|
9445
|
-
return
|
|
9445
|
+
return Ln("unexpected MultiFactorSessionType");
|
|
9446
9446
|
}
|
|
9447
9447
|
}
|
|
9448
9448
|
}
|
|
@@ -9618,7 +9618,7 @@ function rS(e) {
|
|
|
9618
9618
|
).setInstantiationMode(
|
|
9619
9619
|
"EXPLICIT"
|
|
9620
9620
|
/* InstantiationMode.EXPLICIT */
|
|
9621
|
-
)),
|
|
9621
|
+
)), Wn(tf, nf, nS(e)), Wn(tf, nf, "esm2017");
|
|
9622
9622
|
}
|
|
9623
9623
|
/**
|
|
9624
9624
|
* @license
|
|
@@ -9737,7 +9737,7 @@ function uS(e, t, n) {
|
|
|
9737
9737
|
return E(this, null, function* () {
|
|
9738
9738
|
var r;
|
|
9739
9739
|
const { BuildInfo: i } = Fr();
|
|
9740
|
-
|
|
9740
|
+
wn(t.sessionId, "AuthEvent did not contain a session ID");
|
|
9741
9741
|
const o = yield gS(t.sessionId), a = {};
|
|
9742
9742
|
return jo() ? a.ibi = i.packageName : Mo() ? a.apn = i.packageName : _t(
|
|
9743
9743
|
e,
|
|
@@ -9822,7 +9822,7 @@ function gS(e) {
|
|
|
9822
9822
|
});
|
|
9823
9823
|
}
|
|
9824
9824
|
function mS(e) {
|
|
9825
|
-
if (
|
|
9825
|
+
if (wn(/[0-9a-zA-Z]+/.test(e), "Can only convert alpha-numeric strings"), typeof TextEncoder != "undefined")
|
|
9826
9826
|
return new TextEncoder().encode(e);
|
|
9827
9827
|
const t = new ArrayBuffer(e.length), n = new Uint8Array(t);
|
|
9828
9828
|
for (let r = 0; r < e.length; r++)
|
|
@@ -10248,7 +10248,7 @@ function im() {
|
|
|
10248
10248
|
* limitations under the License.
|
|
10249
10249
|
*/
|
|
10250
10250
|
const zS = ae;
|
|
10251
|
-
class
|
|
10251
|
+
class hr {
|
|
10252
10252
|
constructor() {
|
|
10253
10253
|
this.browserResolver = sn(Xg), this.cordovaResolver = sn(ES), this.underlyingResolver = null, this._redirectPersistence = xr, this._completeRedirectFn = Cs, this._overrideRedirectResult = _u;
|
|
10254
10254
|
}
|
|
@@ -10356,20 +10356,20 @@ function am(e) {
|
|
|
10356
10356
|
let r;
|
|
10357
10357
|
switch (n) {
|
|
10358
10358
|
case Gi.GOOGLE:
|
|
10359
|
-
r =
|
|
10359
|
+
r = Dn;
|
|
10360
10360
|
break;
|
|
10361
10361
|
case Gi.FACEBOOK:
|
|
10362
|
-
r =
|
|
10362
|
+
r = Pn;
|
|
10363
10363
|
break;
|
|
10364
10364
|
case Gi.GITHUB:
|
|
10365
|
-
r =
|
|
10365
|
+
r = Rn;
|
|
10366
10366
|
break;
|
|
10367
10367
|
case Gi.TWITTER:
|
|
10368
|
-
r =
|
|
10368
|
+
r = On;
|
|
10369
10369
|
break;
|
|
10370
10370
|
default:
|
|
10371
10371
|
const { oauthIdToken: i, oauthAccessToken: o, oauthTokenSecret: a, pendingToken: s, nonce: l } = t;
|
|
10372
|
-
return !o && !a && !i && !s ? null : s ? n.startsWith("saml.") ? _i._create(n, s) :
|
|
10372
|
+
return !o && !a && !i && !s ? null : s ? n.startsWith("saml.") ? _i._create(n, s) : Mn._fromParams({
|
|
10373
10373
|
providerId: n,
|
|
10374
10374
|
signInMethod: n,
|
|
10375
10375
|
pendingToken: s,
|
|
@@ -10392,7 +10392,7 @@ function Kt(e, t) {
|
|
|
10392
10392
|
operationType: r,
|
|
10393
10393
|
credential: VS(n),
|
|
10394
10394
|
additionalUserInfo: Sw(n),
|
|
10395
|
-
user:
|
|
10395
|
+
user: Hn.getOrCreate(i)
|
|
10396
10396
|
};
|
|
10397
10397
|
});
|
|
10398
10398
|
}
|
|
@@ -10435,12 +10435,12 @@ class WS {
|
|
|
10435
10435
|
* See the License for the specific language governing permissions and
|
|
10436
10436
|
* limitations under the License.
|
|
10437
10437
|
*/
|
|
10438
|
-
class
|
|
10438
|
+
class Hn {
|
|
10439
10439
|
constructor(t) {
|
|
10440
10440
|
this._delegate = t, this.multiFactor = Dw(t);
|
|
10441
10441
|
}
|
|
10442
10442
|
static getOrCreate(t) {
|
|
10443
|
-
return
|
|
10443
|
+
return Hn.USER_MAP.has(t) || Hn.USER_MAP.set(t, new Hn(t)), Hn.USER_MAP.get(t);
|
|
10444
10444
|
}
|
|
10445
10445
|
delete() {
|
|
10446
10446
|
return this._delegate.delete();
|
|
@@ -10472,12 +10472,12 @@ class Gn {
|
|
|
10472
10472
|
}
|
|
10473
10473
|
linkWithPopup(t) {
|
|
10474
10474
|
return E(this, null, function* () {
|
|
10475
|
-
return Kt(this.auth, gI(this._delegate, t,
|
|
10475
|
+
return Kt(this.auth, gI(this._delegate, t, hr));
|
|
10476
10476
|
});
|
|
10477
10477
|
}
|
|
10478
10478
|
linkWithRedirect(t) {
|
|
10479
10479
|
return E(this, null, function* () {
|
|
10480
|
-
return yield vc(lt(this.auth)), II(this._delegate, t,
|
|
10480
|
+
return yield vc(lt(this.auth)), II(this._delegate, t, hr);
|
|
10481
10481
|
});
|
|
10482
10482
|
}
|
|
10483
10483
|
reauthenticateAndRetrieveDataWithCredential(t) {
|
|
@@ -10492,11 +10492,11 @@ class Gn {
|
|
|
10492
10492
|
return bc(this.auth, sI(this._delegate, t, n));
|
|
10493
10493
|
}
|
|
10494
10494
|
reauthenticateWithPopup(t) {
|
|
10495
|
-
return Kt(this.auth, pI(this._delegate, t,
|
|
10495
|
+
return Kt(this.auth, pI(this._delegate, t, hr));
|
|
10496
10496
|
}
|
|
10497
10497
|
reauthenticateWithRedirect(t) {
|
|
10498
10498
|
return E(this, null, function* () {
|
|
10499
|
-
return yield vc(lt(this.auth)), CI(this._delegate, t,
|
|
10499
|
+
return yield vc(lt(this.auth)), CI(this._delegate, t, hr);
|
|
10500
10500
|
});
|
|
10501
10501
|
}
|
|
10502
10502
|
sendEmailVerification(t) {
|
|
@@ -10562,7 +10562,7 @@ class Gn {
|
|
|
10562
10562
|
return this._delegate.auth;
|
|
10563
10563
|
}
|
|
10564
10564
|
}
|
|
10565
|
-
|
|
10565
|
+
Hn.USER_MAP = /* @__PURE__ */ new WeakMap();
|
|
10566
10566
|
/**
|
|
10567
10567
|
* @license
|
|
10568
10568
|
* Copyright 2020 Google LLC
|
|
@@ -10592,7 +10592,7 @@ class yc {
|
|
|
10592
10592
|
}), Ki(r, "invalid-api-key", {
|
|
10593
10593
|
appName: t.name
|
|
10594
10594
|
});
|
|
10595
|
-
const i = typeof window != "undefined" ?
|
|
10595
|
+
const i = typeof window != "undefined" ? hr : void 0;
|
|
10596
10596
|
this._delegate = n.initialize({
|
|
10597
10597
|
options: {
|
|
10598
10598
|
persistence: GS(r, t.name),
|
|
@@ -10604,7 +10604,7 @@ class yc {
|
|
|
10604
10604
|
return this._delegate.emulatorConfig;
|
|
10605
10605
|
}
|
|
10606
10606
|
get currentUser() {
|
|
10607
|
-
return this._delegate.currentUser ?
|
|
10607
|
+
return this._delegate.currentUser ? Hn.getOrCreate(this._delegate.currentUser) : null;
|
|
10608
10608
|
}
|
|
10609
10609
|
get languageCode() {
|
|
10610
10610
|
return this._delegate.languageCode;
|
|
@@ -10661,7 +10661,7 @@ class yc {
|
|
|
10661
10661
|
"operation-not-supported-in-this-environment"
|
|
10662
10662
|
/* exp.AuthErrorCode.OPERATION_NOT_SUPPORTED */
|
|
10663
10663
|
);
|
|
10664
|
-
const t = yield AI(this._delegate,
|
|
10664
|
+
const t = yield AI(this._delegate, hr);
|
|
10665
10665
|
return t ? Kt(this._delegate, Promise.resolve(t)) : {
|
|
10666
10666
|
credential: null,
|
|
10667
10667
|
user: null
|
|
@@ -10738,7 +10738,7 @@ class yc {
|
|
|
10738
10738
|
this._delegate,
|
|
10739
10739
|
"operation-not-supported-in-this-environment"
|
|
10740
10740
|
/* exp.AuthErrorCode.OPERATION_NOT_SUPPORTED */
|
|
10741
|
-
), Kt(this._delegate, hI(this._delegate, t,
|
|
10741
|
+
), Kt(this._delegate, hI(this._delegate, t, hr));
|
|
10742
10742
|
});
|
|
10743
10743
|
}
|
|
10744
10744
|
signInWithRedirect(t) {
|
|
@@ -10748,7 +10748,7 @@ class yc {
|
|
|
10748
10748
|
this._delegate,
|
|
10749
10749
|
"operation-not-supported-in-this-environment"
|
|
10750
10750
|
/* exp.AuthErrorCode.OPERATION_NOT_SUPPORTED */
|
|
10751
|
-
), yield vc(this._delegate), yI(this._delegate, t,
|
|
10751
|
+
), yield vc(this._delegate), yI(this._delegate, t, hr);
|
|
10752
10752
|
});
|
|
10753
10753
|
}
|
|
10754
10754
|
updateCurrentUser(t) {
|
|
@@ -10773,7 +10773,7 @@ function sf(e, t, n) {
|
|
|
10773
10773
|
typeof e != "function" && ({ next: r, error: t, complete: n } = e);
|
|
10774
10774
|
const i = r;
|
|
10775
10775
|
return {
|
|
10776
|
-
next: (a) => i(a &&
|
|
10776
|
+
next: (a) => i(a && Hn.getOrCreate(a)),
|
|
10777
10777
|
error: t,
|
|
10778
10778
|
complete: n
|
|
10779
10779
|
};
|
|
@@ -10806,7 +10806,7 @@ function GS(e, t) {
|
|
|
10806
10806
|
*/
|
|
10807
10807
|
class Ru {
|
|
10808
10808
|
constructor() {
|
|
10809
|
-
this.providerId = "phone", this._delegate = new Nr(om(
|
|
10809
|
+
this.providerId = "phone", this._delegate = new Nr(om(fr.auth()));
|
|
10810
10810
|
}
|
|
10811
10811
|
static credential(t, n) {
|
|
10812
10812
|
return Nr.credential(t, n);
|
|
@@ -10843,7 +10843,7 @@ Ru.PROVIDER_ID = Nr.PROVIDER_ID;
|
|
|
10843
10843
|
*/
|
|
10844
10844
|
const YS = ae;
|
|
10845
10845
|
class KS {
|
|
10846
|
-
constructor(t, n, r =
|
|
10846
|
+
constructor(t, n, r = fr.app()) {
|
|
10847
10847
|
var i;
|
|
10848
10848
|
YS((i = r.options) === null || i === void 0 ? void 0 : i.apiKey, "invalid-api-key", {
|
|
10849
10849
|
appName: r.name
|
|
@@ -10904,15 +10904,15 @@ function qS(e) {
|
|
|
10904
10904
|
}
|
|
10905
10905
|
},
|
|
10906
10906
|
EmailAuthProvider: Tr,
|
|
10907
|
-
FacebookAuthProvider:
|
|
10908
|
-
GithubAuthProvider:
|
|
10909
|
-
GoogleAuthProvider:
|
|
10907
|
+
FacebookAuthProvider: Pn,
|
|
10908
|
+
GithubAuthProvider: Rn,
|
|
10909
|
+
GoogleAuthProvider: Dn,
|
|
10910
10910
|
OAuthProvider: hi,
|
|
10911
10911
|
SAMLAuthProvider: La,
|
|
10912
10912
|
PhoneAuthProvider: Ru,
|
|
10913
10913
|
PhoneMultiFactorGenerator: Zg,
|
|
10914
10914
|
RecaptchaVerifier: KS,
|
|
10915
|
-
TwitterAuthProvider:
|
|
10915
|
+
TwitterAuthProvider: On,
|
|
10916
10916
|
Auth: yc,
|
|
10917
10917
|
AuthCredential: Bi,
|
|
10918
10918
|
Error: Xt
|
|
@@ -10921,12 +10921,12 @@ function qS(e) {
|
|
|
10921
10921
|
/* InstantiationMode.LAZY */
|
|
10922
10922
|
).setMultipleInstances(!1)), e.registerVersion(_S, PS);
|
|
10923
10923
|
}
|
|
10924
|
-
qS(
|
|
10924
|
+
qS(fr);
|
|
10925
10925
|
let lf = !1;
|
|
10926
10926
|
const zo = (e) => {
|
|
10927
|
-
if (lf) return
|
|
10927
|
+
if (lf) return fr.auth();
|
|
10928
10928
|
if (e && e === "dev") {
|
|
10929
|
-
|
|
10929
|
+
fr.initializeApp({ apiKey: "api_key" });
|
|
10930
10930
|
const n = sS();
|
|
10931
10931
|
bu(n, "http://localhost:39199");
|
|
10932
10932
|
} else {
|
|
@@ -10938,9 +10938,9 @@ const zo = (e) => {
|
|
|
10938
10938
|
appId: "1:78627953958:web:2ee87d5b274e0e7685f5e7",
|
|
10939
10939
|
measurementId: "G-RH90B03KJG"
|
|
10940
10940
|
};
|
|
10941
|
-
|
|
10941
|
+
fr.initializeApp(n);
|
|
10942
10942
|
}
|
|
10943
|
-
return lf = !0,
|
|
10943
|
+
return lf = !0, fr.auth();
|
|
10944
10944
|
}, JS = (e) => e === "dev" ? "http://localhost:8070/v1" : e === "staging" ? "https://client.fansunitedstagingapi.com/v1" : e === "watg" ? "https://client.watg.fansunitedapi.com/v1" : e === "yolo" ? "https://client.yolo.fansunitedapi.com/v1" : e === "cska" ? "https://client.cska.fansunitedapi.com/v1" : "https://client.fansunitedapi.com/v1";
|
|
10945
10945
|
class XS {
|
|
10946
10946
|
constructor(t, n) {
|
|
@@ -11545,7 +11545,7 @@ class sA extends XS {
|
|
|
11545
11545
|
}
|
|
11546
11546
|
const lA = (e, t) => !e && !t ? null : !e && t ? (console.warn(
|
|
11547
11547
|
"'sportal365Project' prop is not provided. The prop is required when 'sportal365Infrastructure' prop is provided. Functionalities with Sportal365 API will not be exposed"
|
|
11548
|
-
), null) : { project: e, authorization: `Bearer ${t && t === "betway" ? "24PkUfW1ce63mH9jvAAug2QQzdASj9k5smngepPUZD2KUq5cbTFGE98KgZ0zg2wCtuQcoJrHElW7Dr0K" : "dEZS1V21veHBIDIik8Y33dDkZAoCmxgge5MBnAORN7IKbltA79giTZLaXJ6OVgQkGnYxwtyRv8ObRSvY"}` }, ws =
|
|
11548
|
+
), null) : { project: e, authorization: `Bearer ${t && t === "betway" ? "24PkUfW1ce63mH9jvAAug2QQzdASj9k5smngepPUZD2KUq5cbTFGE98KgZ0zg2wCtuQcoJrHElW7Dr0K" : "dEZS1V21veHBIDIik8Y33dDkZAoCmxgge5MBnAORN7IKbltA79giTZLaXJ6OVgQkGnYxwtyRv8ObRSvY"}` }, ws = $n(null), cA = ({ config: e, children: t }) => {
|
|
11549
11549
|
const n = {
|
|
11550
11550
|
apiKey: e.apiKey,
|
|
11551
11551
|
clientId: e.clientId,
|
|
@@ -11559,7 +11559,7 @@ const lA = (e, t) => !e && !t ? null : !e && t ? (console.warn(
|
|
|
11559
11559
|
}
|
|
11560
11560
|
}, r = lA(e.sportal365Project, e.sportal365Infrastructure), i = Wy(n), o = new sA(n, r);
|
|
11561
11561
|
return /* @__PURE__ */ c.jsx(ws.Provider, { value: { sdk: i, https: o }, children: t });
|
|
11562
|
-
}, sm =
|
|
11562
|
+
}, sm = $n(null), uA = ({ children: e, environment: t }) => {
|
|
11563
11563
|
const [n, r] = Y(null), [i, o] = Y(!0);
|
|
11564
11564
|
return me(() => zo(t).onAuthStateChanged((s) => {
|
|
11565
11565
|
Zi(() => {
|
|
@@ -11642,7 +11642,7 @@ function vA(e, t, n) {
|
|
|
11642
11642
|
function cf(e, t, n = (r, i) => r === i) {
|
|
11643
11643
|
return e.length === t.length && e.every((r, i) => n(r, t[i]));
|
|
11644
11644
|
}
|
|
11645
|
-
function
|
|
11645
|
+
function Yn(e, t = []) {
|
|
11646
11646
|
if (e === void 0)
|
|
11647
11647
|
return {};
|
|
11648
11648
|
const n = {};
|
|
@@ -11666,7 +11666,7 @@ function yA(e) {
|
|
|
11666
11666
|
function xA(e, t) {
|
|
11667
11667
|
typeof e == "function" ? e(t) : e && (e.current = t);
|
|
11668
11668
|
}
|
|
11669
|
-
function
|
|
11669
|
+
function Tn(...e) {
|
|
11670
11670
|
return H.useMemo(() => e.every((t) => t == null) ? null : (t) => {
|
|
11671
11671
|
e.forEach((n) => {
|
|
11672
11672
|
xA(n, t);
|
|
@@ -11682,7 +11682,7 @@ function dm(e) {
|
|
|
11682
11682
|
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
11683
11683
|
return r;
|
|
11684
11684
|
}
|
|
11685
|
-
function
|
|
11685
|
+
function Xn() {
|
|
11686
11686
|
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = dm(e)) && (r && (r += " "), r += t);
|
|
11687
11687
|
return r;
|
|
11688
11688
|
}
|
|
@@ -11703,39 +11703,39 @@ function CA(e) {
|
|
|
11703
11703
|
className: o
|
|
11704
11704
|
} = e;
|
|
11705
11705
|
if (!t) {
|
|
11706
|
-
const p =
|
|
11706
|
+
const p = Xn(n == null ? void 0 : n.className, o, i == null ? void 0 : i.className, r == null ? void 0 : r.className), m = _({}, n == null ? void 0 : n.style, i == null ? void 0 : i.style, r == null ? void 0 : r.style), g = _({}, n, i, r);
|
|
11707
11707
|
return p.length > 0 && (g.className = p), Object.keys(m).length > 0 && (g.style = m), {
|
|
11708
11708
|
props: g,
|
|
11709
11709
|
internalRef: void 0
|
|
11710
11710
|
};
|
|
11711
11711
|
}
|
|
11712
|
-
const a =
|
|
11712
|
+
const a = Yn(_({}, i, r)), s = uf(r), l = uf(i), u = t(a), d = Xn(u == null ? void 0 : u.className, n == null ? void 0 : n.className, o, i == null ? void 0 : i.className, r == null ? void 0 : r.className), f = _({}, u == null ? void 0 : u.style, n == null ? void 0 : n.style, i == null ? void 0 : i.style, r == null ? void 0 : r.style), h = _({}, u, n, l, s);
|
|
11713
11713
|
return d.length > 0 && (h.className = d), Object.keys(f).length > 0 && (h.style = f), {
|
|
11714
11714
|
props: h,
|
|
11715
11715
|
internalRef: u.ref
|
|
11716
11716
|
};
|
|
11717
11717
|
}
|
|
11718
|
-
function
|
|
11718
|
+
function lr(e) {
|
|
11719
11719
|
if (typeof e != "object" || e === null)
|
|
11720
11720
|
return !1;
|
|
11721
11721
|
const t = Object.getPrototypeOf(e);
|
|
11722
11722
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
11723
11723
|
}
|
|
11724
11724
|
function fm(e) {
|
|
11725
|
-
if (/* @__PURE__ */ H.isValidElement(e) || !
|
|
11725
|
+
if (/* @__PURE__ */ H.isValidElement(e) || !lr(e))
|
|
11726
11726
|
return e;
|
|
11727
11727
|
const t = {};
|
|
11728
11728
|
return Object.keys(e).forEach((n) => {
|
|
11729
11729
|
t[n] = fm(e[n]);
|
|
11730
11730
|
}), t;
|
|
11731
11731
|
}
|
|
11732
|
-
function
|
|
11732
|
+
function Kn(e, t, n = {
|
|
11733
11733
|
clone: !0
|
|
11734
11734
|
}) {
|
|
11735
11735
|
const r = n.clone ? _({}, e) : e;
|
|
11736
|
-
return
|
|
11737
|
-
/* @__PURE__ */ H.isValidElement(t[i]) ? r[i] = t[i] :
|
|
11738
|
-
Object.prototype.hasOwnProperty.call(e, i) &&
|
|
11736
|
+
return lr(e) && lr(t) && Object.keys(t).forEach((i) => {
|
|
11737
|
+
/* @__PURE__ */ H.isValidElement(t[i]) ? r[i] = t[i] : lr(t[i]) && // Avoid prototype pollution
|
|
11738
|
+
Object.prototype.hasOwnProperty.call(e, i) && lr(e[i]) ? r[i] = Kn(e[i], t[i], n) : n.clone ? r[i] = lr(t[i]) ? fm(t[i]) : t[i] : r[i] = t[i];
|
|
11739
11739
|
}), r;
|
|
11740
11740
|
}
|
|
11741
11741
|
function Ba(e) {
|
|
@@ -11755,7 +11755,7 @@ var hm = { exports: {} }, Ke = {};
|
|
|
11755
11755
|
* LICENSE file in the root directory of this source tree.
|
|
11756
11756
|
*/
|
|
11757
11757
|
var Ou = Symbol.for("react.transitional.element"), Lu = Symbol.for("react.portal"), Is = Symbol.for("react.fragment"), Ss = Symbol.for("react.strict_mode"), As = Symbol.for("react.profiler"), Ts = Symbol.for("react.consumer"), Es = Symbol.for("react.context"), ks = Symbol.for("react.forward_ref"), _s = Symbol.for("react.suspense"), Ps = Symbol.for("react.suspense_list"), Ds = Symbol.for("react.memo"), Rs = Symbol.for("react.lazy"), wA = Symbol.for("react.offscreen"), IA = Symbol.for("react.client.reference");
|
|
11758
|
-
function
|
|
11758
|
+
function vn(e) {
|
|
11759
11759
|
if (typeof e == "object" && e !== null) {
|
|
11760
11760
|
var t = e.$$typeof;
|
|
11761
11761
|
switch (t) {
|
|
@@ -11798,45 +11798,45 @@ Ke.StrictMode = Ss;
|
|
|
11798
11798
|
Ke.Suspense = _s;
|
|
11799
11799
|
Ke.SuspenseList = Ps;
|
|
11800
11800
|
Ke.isContextConsumer = function(e) {
|
|
11801
|
-
return
|
|
11801
|
+
return vn(e) === Ts;
|
|
11802
11802
|
};
|
|
11803
11803
|
Ke.isContextProvider = function(e) {
|
|
11804
|
-
return
|
|
11804
|
+
return vn(e) === Es;
|
|
11805
11805
|
};
|
|
11806
11806
|
Ke.isElement = function(e) {
|
|
11807
11807
|
return typeof e == "object" && e !== null && e.$$typeof === Ou;
|
|
11808
11808
|
};
|
|
11809
11809
|
Ke.isForwardRef = function(e) {
|
|
11810
|
-
return
|
|
11810
|
+
return vn(e) === ks;
|
|
11811
11811
|
};
|
|
11812
11812
|
Ke.isFragment = function(e) {
|
|
11813
|
-
return
|
|
11813
|
+
return vn(e) === Is;
|
|
11814
11814
|
};
|
|
11815
11815
|
Ke.isLazy = function(e) {
|
|
11816
|
-
return
|
|
11816
|
+
return vn(e) === Rs;
|
|
11817
11817
|
};
|
|
11818
11818
|
Ke.isMemo = function(e) {
|
|
11819
|
-
return
|
|
11819
|
+
return vn(e) === Ds;
|
|
11820
11820
|
};
|
|
11821
11821
|
Ke.isPortal = function(e) {
|
|
11822
|
-
return
|
|
11822
|
+
return vn(e) === Lu;
|
|
11823
11823
|
};
|
|
11824
11824
|
Ke.isProfiler = function(e) {
|
|
11825
|
-
return
|
|
11825
|
+
return vn(e) === As;
|
|
11826
11826
|
};
|
|
11827
11827
|
Ke.isStrictMode = function(e) {
|
|
11828
|
-
return
|
|
11828
|
+
return vn(e) === Ss;
|
|
11829
11829
|
};
|
|
11830
11830
|
Ke.isSuspense = function(e) {
|
|
11831
|
-
return
|
|
11831
|
+
return vn(e) === _s;
|
|
11832
11832
|
};
|
|
11833
11833
|
Ke.isSuspenseList = function(e) {
|
|
11834
|
-
return
|
|
11834
|
+
return vn(e) === Ps;
|
|
11835
11835
|
};
|
|
11836
11836
|
Ke.isValidElementType = function(e) {
|
|
11837
11837
|
return typeof e == "string" || typeof e == "function" || e === Is || e === As || e === Ss || e === _s || e === Ps || e === wA || typeof e == "object" && e !== null && (e.$$typeof === Rs || e.$$typeof === Ds || e.$$typeof === Es || e.$$typeof === Ts || e.$$typeof === ks || e.$$typeof === IA || e.getModuleId !== void 0);
|
|
11838
11838
|
};
|
|
11839
|
-
Ke.typeOf =
|
|
11839
|
+
Ke.typeOf = vn;
|
|
11840
11840
|
hm.exports = Ke;
|
|
11841
11841
|
var pm = hm.exports;
|
|
11842
11842
|
function we(e) {
|
|
@@ -12092,10 +12092,10 @@ function $u(e = {}) {
|
|
|
12092
12092
|
var U;
|
|
12093
12093
|
(U = N.onClick) == null || U.call(N, M);
|
|
12094
12094
|
}
|
|
12095
|
-
}, S =
|
|
12095
|
+
}, S = Tn(y, i, g, u), j = {};
|
|
12096
12096
|
return o !== void 0 && (j.tabIndex = o), w === "BUTTON" ? (j.type = s != null ? s : "button", n ? j["aria-disabled"] = t : j.disabled = t) : w === "INPUT" ? s && ["button", "submit", "reset"].includes(s) && (n ? j["aria-disabled"] = t : j.disabled = t) : w !== "" && (!r && !a && (j.role = "button", j.tabIndex = o != null ? o : 0), t && (j["aria-disabled"] = t, j.tabIndex = n ? o != null ? o : 0 : -1)), {
|
|
12097
12097
|
getRootProps: (N = {}) => {
|
|
12098
|
-
const M = _({},
|
|
12098
|
+
const M = _({}, Yn(e), Yn(N)), O = _({
|
|
12099
12099
|
type: s
|
|
12100
12100
|
}, M, j, N, {
|
|
12101
12101
|
onBlur: b(M),
|
|
@@ -12203,7 +12203,7 @@ function UA(e = {}) {
|
|
|
12203
12203
|
const {
|
|
12204
12204
|
current: y
|
|
12205
12205
|
} = H.useRef(g != null), C = H.useCallback((N) => {
|
|
12206
|
-
}, []), b = H.useRef(null), I =
|
|
12206
|
+
}, []), b = H.useRef(null), I = Tn(b, u, C), [A, T] = H.useState(!1);
|
|
12207
12207
|
H.useEffect(() => {
|
|
12208
12208
|
!d && h && A && (T(!1), i == null || i());
|
|
12209
12209
|
}, [d, h, A, i]);
|
|
@@ -12240,7 +12240,7 @@ function UA(e = {}) {
|
|
|
12240
12240
|
onBlur: i,
|
|
12241
12241
|
onChange: o,
|
|
12242
12242
|
onFocus: a
|
|
12243
|
-
},
|
|
12243
|
+
}, Yn(N)), U = _({}, O, {
|
|
12244
12244
|
onBlur: W(O),
|
|
12245
12245
|
onChange: P(O),
|
|
12246
12246
|
onFocus: $(O)
|
|
@@ -12256,7 +12256,7 @@ function UA(e = {}) {
|
|
|
12256
12256
|
}, U);
|
|
12257
12257
|
},
|
|
12258
12258
|
getRootProps: (N = {}) => {
|
|
12259
|
-
const M =
|
|
12259
|
+
const M = Yn(e, ["onBlur", "onChange", "onFocus"]), O = _({}, M, Yn(N));
|
|
12260
12260
|
return _({}, N, O, {
|
|
12261
12261
|
onClick: S(O)
|
|
12262
12262
|
});
|
|
@@ -12526,7 +12526,7 @@ function a1(e) {
|
|
|
12526
12526
|
selectionMode: C = "single",
|
|
12527
12527
|
stateReducer: b,
|
|
12528
12528
|
componentName: I = "useList"
|
|
12529
|
-
} = e, A = H.useRef(null), T =
|
|
12529
|
+
} = e, A = H.useRef(null), T = Tn(u, A), $ = H.useCallback((oe, J, le) => {
|
|
12530
12530
|
if (g == null || g(oe, J, le), i === "DOM" && J != null && (le === Tt.itemClick || le === Tt.keyDown || le === Tt.textNavigation)) {
|
|
12531
12531
|
var X;
|
|
12532
12532
|
a == null || (X = a(J)) == null || X.focus();
|
|
@@ -12597,7 +12597,7 @@ function a1(e) {
|
|
|
12597
12597
|
event: J
|
|
12598
12598
|
}));
|
|
12599
12599
|
}, V = (oe = {}) => {
|
|
12600
|
-
const J =
|
|
12600
|
+
const J = Yn(oe);
|
|
12601
12601
|
return _({}, oe, {
|
|
12602
12602
|
"aria-activedescendant": i === "activeDescendant" && U != null ? s(U) : void 0,
|
|
12603
12603
|
tabIndex: i === "DOM" ? -1 : 0,
|
|
@@ -12660,7 +12660,7 @@ function s1(e) {
|
|
|
12660
12660
|
let f;
|
|
12661
12661
|
return l && (f = a ? 0 : -1), {
|
|
12662
12662
|
getRootProps: (p = {}) => {
|
|
12663
|
-
const m =
|
|
12663
|
+
const m = Yn(p);
|
|
12664
12664
|
return _({}, p, {
|
|
12665
12665
|
onClick: u(m),
|
|
12666
12666
|
onPointerOver: t ? d(m) : void 0,
|
|
@@ -12762,7 +12762,7 @@ function f1(e) {
|
|
|
12762
12762
|
function Sm(e) {
|
|
12763
12763
|
return Tm(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
12764
12764
|
}
|
|
12765
|
-
function
|
|
12765
|
+
function Zn(e) {
|
|
12766
12766
|
var t;
|
|
12767
12767
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
12768
12768
|
}
|
|
@@ -12771,16 +12771,16 @@ function Am(e) {
|
|
|
12771
12771
|
return (t = (Tm(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
12772
12772
|
}
|
|
12773
12773
|
function Tm(e) {
|
|
12774
|
-
return e instanceof Node || e instanceof
|
|
12774
|
+
return e instanceof Node || e instanceof Zn(e).Node;
|
|
12775
12775
|
}
|
|
12776
12776
|
function h1(e) {
|
|
12777
|
-
return e instanceof Element || e instanceof
|
|
12777
|
+
return e instanceof Element || e instanceof Zn(e).Element;
|
|
12778
12778
|
}
|
|
12779
12779
|
function Nu(e) {
|
|
12780
|
-
return e instanceof HTMLElement || e instanceof
|
|
12780
|
+
return e instanceof HTMLElement || e instanceof Zn(e).HTMLElement;
|
|
12781
12781
|
}
|
|
12782
12782
|
function mf(e) {
|
|
12783
|
-
return typeof ShadowRoot == "undefined" ? !1 : e instanceof ShadowRoot || e instanceof
|
|
12783
|
+
return typeof ShadowRoot == "undefined" ? !1 : e instanceof ShadowRoot || e instanceof Zn(e).ShadowRoot;
|
|
12784
12784
|
}
|
|
12785
12785
|
function Em(e) {
|
|
12786
12786
|
const {
|
|
@@ -12798,7 +12798,7 @@ function g1(e) {
|
|
|
12798
12798
|
return ["html", "body", "#document"].includes(Sm(e));
|
|
12799
12799
|
}
|
|
12800
12800
|
function Fu(e) {
|
|
12801
|
-
return
|
|
12801
|
+
return Zn(e).getComputedStyle(e);
|
|
12802
12802
|
}
|
|
12803
12803
|
function m1(e) {
|
|
12804
12804
|
if (Sm(e) === "html")
|
|
@@ -12819,7 +12819,7 @@ function km(e) {
|
|
|
12819
12819
|
function za(e, t, n) {
|
|
12820
12820
|
var r;
|
|
12821
12821
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
12822
|
-
const i = km(e), o = i === ((r = e.ownerDocument) == null ? void 0 : r.body), a =
|
|
12822
|
+
const i = km(e), o = i === ((r = e.ownerDocument) == null ? void 0 : r.body), a = Zn(i);
|
|
12823
12823
|
if (o) {
|
|
12824
12824
|
const s = wc(a);
|
|
12825
12825
|
return t.concat(a, a.visualViewport || [], Em(i) ? i : [], s && n ? za(s) : []);
|
|
@@ -12859,7 +12859,7 @@ function vf(e) {
|
|
|
12859
12859
|
}
|
|
12860
12860
|
const b1 = /* @__PURE__ */ Fa(0);
|
|
12861
12861
|
function y1(e) {
|
|
12862
|
-
const t =
|
|
12862
|
+
const t = Zn(e);
|
|
12863
12863
|
return !p1() || !t.visualViewport ? b1 : {
|
|
12864
12864
|
x: t.visualViewport.offsetLeft,
|
|
12865
12865
|
y: t.visualViewport.offsetTop
|
|
@@ -12876,11 +12876,11 @@ function bf(e, t, n, r) {
|
|
|
12876
12876
|
const s = x1() ? y1(o) : Fa(0);
|
|
12877
12877
|
let l = (i.left + s.x) / a.x, u = (i.top + s.y) / a.y, d = i.width / a.x, f = i.height / a.y;
|
|
12878
12878
|
if (o) {
|
|
12879
|
-
const h =
|
|
12879
|
+
const h = Zn(o), p = r;
|
|
12880
12880
|
let m = h, g = wc(m);
|
|
12881
12881
|
for (; g && r && p !== m; ) {
|
|
12882
12882
|
const v = vf(g), x = g.getBoundingClientRect(), w = Fu(g), y = x.left + (g.clientLeft + parseFloat(w.paddingLeft)) * v.x, C = x.top + (g.clientTop + parseFloat(w.paddingTop)) * v.y;
|
|
12883
|
-
l *= v.x, u *= v.y, d *= v.x, f *= v.y, l += y, u += C, m =
|
|
12883
|
+
l *= v.x, u *= v.y, d *= v.x, f *= v.y, l += y, u += C, m = Zn(g), g = wc(m);
|
|
12884
12884
|
}
|
|
12885
12885
|
}
|
|
12886
12886
|
return f1({
|
|
@@ -13005,7 +13005,7 @@ function I1(e) {
|
|
|
13005
13005
|
}, b = (T) => ($) => {
|
|
13006
13006
|
var W;
|
|
13007
13007
|
m($), p.current === !1 && w(!1), i == null || i($), (W = T.onBlur) == null || W.call(T, $);
|
|
13008
|
-
}, I =
|
|
13008
|
+
}, I = Tn(v, y);
|
|
13009
13009
|
return {
|
|
13010
13010
|
checked: d,
|
|
13011
13011
|
disabled: !!r,
|
|
@@ -13126,7 +13126,7 @@ function E1(e) {
|
|
|
13126
13126
|
const {
|
|
13127
13127
|
value: o,
|
|
13128
13128
|
getTabId: a
|
|
13129
|
-
} = i, s = Uo(n), l = H.useRef(null), u =
|
|
13129
|
+
} = i, s = Uo(n), l = H.useRef(null), u = Tn(l, r), d = H.useMemo(() => ({
|
|
13130
13130
|
id: s,
|
|
13131
13131
|
ref: l
|
|
13132
13132
|
}), [s]), {
|
|
@@ -13313,10 +13313,10 @@ function R1(e) {
|
|
|
13313
13313
|
disabled: r,
|
|
13314
13314
|
focusableWhenDisabled: !l,
|
|
13315
13315
|
type: "button"
|
|
13316
|
-
}), I =
|
|
13316
|
+
}), I = Tn(o, n, w), A = f !== void 0 ? u(f) : void 0;
|
|
13317
13317
|
return {
|
|
13318
13318
|
getRootProps: ($ = {}) => {
|
|
13319
|
-
const W =
|
|
13319
|
+
const W = Yn($), P = c1(m, x);
|
|
13320
13320
|
return _({}, $, P(W), {
|
|
13321
13321
|
role: "tab",
|
|
13322
13322
|
"aria-controls": A,
|
|
@@ -13409,7 +13409,7 @@ const B1 = {
|
|
|
13409
13409
|
borderRadius: 4
|
|
13410
13410
|
};
|
|
13411
13411
|
function fo(e, t) {
|
|
13412
|
-
return t ?
|
|
13412
|
+
return t ? Kn(e, t, {
|
|
13413
13413
|
clone: !1
|
|
13414
13414
|
// No need to clone deep, it's way faster.
|
|
13415
13415
|
}) : e;
|
|
@@ -13431,7 +13431,7 @@ const Uu = {
|
|
|
13431
13431
|
keys: ["xs", "sm", "md", "lg", "xl"],
|
|
13432
13432
|
up: (e) => `@media (min-width:${Uu[e]}px)`
|
|
13433
13433
|
};
|
|
13434
|
-
function
|
|
13434
|
+
function er(e, t, n) {
|
|
13435
13435
|
const r = e.theme || {};
|
|
13436
13436
|
if (Array.isArray(t)) {
|
|
13437
13437
|
const o = r.breakpoints || yf;
|
|
@@ -13489,7 +13489,7 @@ function pt(e) {
|
|
|
13489
13489
|
if (a[t] == null)
|
|
13490
13490
|
return null;
|
|
13491
13491
|
const s = a[t], l = a.theme, u = Cr(l, r) || {};
|
|
13492
|
-
return
|
|
13492
|
+
return er(a, s, (f) => {
|
|
13493
13493
|
let h = Ua(u, i, f);
|
|
13494
13494
|
return f === h && typeof f == "string" && (h = Ua(u, i, `${t}${f === "default" ? "" : we(f)}`, f)), n === !1 ? h : {
|
|
13495
13495
|
[n]: h
|
|
@@ -13549,7 +13549,7 @@ function G1(e, t, n, r) {
|
|
|
13549
13549
|
if (t.indexOf(n) === -1)
|
|
13550
13550
|
return null;
|
|
13551
13551
|
const i = H1(n), o = W1(i, r), a = e[n];
|
|
13552
|
-
return
|
|
13552
|
+
return er(e, a, o);
|
|
13553
13553
|
}
|
|
13554
13554
|
function Lm(e, t) {
|
|
13555
13555
|
const n = Om(e.theme);
|
|
@@ -13585,19 +13585,19 @@ function Ms(...e) {
|
|
|
13585
13585
|
function fn(e) {
|
|
13586
13586
|
return typeof e != "number" ? e : `${e}px solid`;
|
|
13587
13587
|
}
|
|
13588
|
-
function
|
|
13588
|
+
function bn(e, t) {
|
|
13589
13589
|
return pt({
|
|
13590
13590
|
prop: e,
|
|
13591
13591
|
themeKey: "borders",
|
|
13592
13592
|
transform: t
|
|
13593
13593
|
});
|
|
13594
13594
|
}
|
|
13595
|
-
const Y1 =
|
|
13595
|
+
const Y1 = bn("border", fn), K1 = bn("borderTop", fn), Q1 = bn("borderRight", fn), q1 = bn("borderBottom", fn), J1 = bn("borderLeft", fn), X1 = bn("borderColor"), Z1 = bn("borderTopColor"), eT = bn("borderRightColor"), tT = bn("borderBottomColor"), nT = bn("borderLeftColor"), rT = bn("outline", fn), iT = bn("outlineColor"), js = (e) => {
|
|
13596
13596
|
if (e.borderRadius !== void 0 && e.borderRadius !== null) {
|
|
13597
13597
|
const t = Vo(e.theme, "shape.borderRadius", 4), n = (r) => ({
|
|
13598
13598
|
borderRadius: Ho(t, r)
|
|
13599
13599
|
});
|
|
13600
|
-
return
|
|
13600
|
+
return er(e, e.borderRadius, n);
|
|
13601
13601
|
}
|
|
13602
13602
|
return null;
|
|
13603
13603
|
};
|
|
@@ -13609,7 +13609,7 @@ const $s = (e) => {
|
|
|
13609
13609
|
const t = Vo(e.theme, "spacing", 8), n = (r) => ({
|
|
13610
13610
|
gap: Ho(t, r)
|
|
13611
13611
|
});
|
|
13612
|
-
return
|
|
13612
|
+
return er(e, e.gap, n);
|
|
13613
13613
|
}
|
|
13614
13614
|
return null;
|
|
13615
13615
|
};
|
|
@@ -13620,7 +13620,7 @@ const Bs = (e) => {
|
|
|
13620
13620
|
const t = Vo(e.theme, "spacing", 8), n = (r) => ({
|
|
13621
13621
|
columnGap: Ho(t, r)
|
|
13622
13622
|
});
|
|
13623
|
-
return
|
|
13623
|
+
return er(e, e.columnGap, n);
|
|
13624
13624
|
}
|
|
13625
13625
|
return null;
|
|
13626
13626
|
};
|
|
@@ -13631,7 +13631,7 @@ const Ns = (e) => {
|
|
|
13631
13631
|
const t = Vo(e.theme, "spacing", 8), n = (r) => ({
|
|
13632
13632
|
rowGap: Ho(t, r)
|
|
13633
13633
|
});
|
|
13634
|
-
return
|
|
13634
|
+
return er(e, e.rowGap, n);
|
|
13635
13635
|
}
|
|
13636
13636
|
return null;
|
|
13637
13637
|
};
|
|
@@ -13694,7 +13694,7 @@ const vT = pt({
|
|
|
13694
13694
|
maxWidth: on(n)
|
|
13695
13695
|
};
|
|
13696
13696
|
};
|
|
13697
|
-
return
|
|
13697
|
+
return er(e, e.maxWidth, t);
|
|
13698
13698
|
}
|
|
13699
13699
|
return null;
|
|
13700
13700
|
};
|
|
@@ -14041,7 +14041,7 @@ function AT() {
|
|
|
14041
14041
|
[n]: r
|
|
14042
14042
|
};
|
|
14043
14043
|
const h = Cr(i, u) || {};
|
|
14044
|
-
return f ? f(a) :
|
|
14044
|
+
return f ? f(a) : er(a, r, (m) => {
|
|
14045
14045
|
let g = Ua(h, d, m);
|
|
14046
14046
|
return m === g && typeof m == "string" && (g = Ua(h, d, `${n}${m === "default" ? "" : we(m)}`, m)), l === !1 ? g : {
|
|
14047
14047
|
[l]: g
|
|
@@ -14074,7 +14074,7 @@ function AT() {
|
|
|
14074
14074
|
if (a[p])
|
|
14075
14075
|
h = fo(h, e(p, m, o, a));
|
|
14076
14076
|
else {
|
|
14077
|
-
const g =
|
|
14077
|
+
const g = er({
|
|
14078
14078
|
theme: o
|
|
14079
14079
|
}, m, (v) => ({
|
|
14080
14080
|
[p]: v
|
|
@@ -14108,7 +14108,7 @@ function $m(e = {}, ...t) {
|
|
|
14108
14108
|
spacing: i,
|
|
14109
14109
|
shape: o = {}
|
|
14110
14110
|
} = e, a = De(e, TT), s = Rm(n), l = Mm(i);
|
|
14111
|
-
let u =
|
|
14111
|
+
let u = Kn({
|
|
14112
14112
|
breakpoints: s,
|
|
14113
14113
|
direction: "ltr",
|
|
14114
14114
|
components: {},
|
|
@@ -14119,7 +14119,7 @@ function $m(e = {}, ...t) {
|
|
|
14119
14119
|
spacing: l,
|
|
14120
14120
|
shape: _({}, B1, o)
|
|
14121
14121
|
}, a);
|
|
14122
|
-
return u.applyStyles = jm, u = t.reduce((d, f) =>
|
|
14122
|
+
return u.applyStyles = jm, u = t.reduce((d, f) => Kn(d, f), u), u.unstable_sxConfig = _({}, Fs, a == null ? void 0 : a.unstable_sxConfig), u.unstable_sx = function(f) {
|
|
14123
14123
|
return zs({
|
|
14124
14124
|
sx: f,
|
|
14125
14125
|
theme: this
|
|
@@ -14157,7 +14157,7 @@ function OT(e) {
|
|
|
14157
14157
|
let o;
|
|
14158
14158
|
return Array.isArray(t) ? o = [r, ...t] : typeof t == "function" ? o = (...a) => {
|
|
14159
14159
|
const s = t(...a);
|
|
14160
|
-
return
|
|
14160
|
+
return lr(s) ? _({}, r, s) : r;
|
|
14161
14161
|
} : o = _({}, r, t), _({}, i, {
|
|
14162
14162
|
sx: o
|
|
14163
14163
|
});
|
|
@@ -14247,7 +14247,7 @@ function UT(e = {}) {
|
|
|
14247
14247
|
const w = L1(a, _({
|
|
14248
14248
|
shouldForwardProp: x,
|
|
14249
14249
|
label: v
|
|
14250
|
-
}, p)), y = (b) => typeof b == "function" && b.__emotion_real !== b ||
|
|
14250
|
+
}, p)), y = (b) => typeof b == "function" && b.__emotion_real !== b || lr(b) ? (I) => ya(b, _({}, I, {
|
|
14251
14251
|
theme: ia({
|
|
14252
14252
|
theme: I.theme,
|
|
14253
14253
|
defaultTheme: n,
|
|
@@ -14430,7 +14430,7 @@ function qT(e, t) {
|
|
|
14430
14430
|
css: v,
|
|
14431
14431
|
varsWithDefaults: x
|
|
14432
14432
|
} = Rl(m, t);
|
|
14433
|
-
l =
|
|
14433
|
+
l = Kn(l, x), u[p] = {
|
|
14434
14434
|
css: v,
|
|
14435
14435
|
vars: g
|
|
14436
14436
|
};
|
|
@@ -14440,7 +14440,7 @@ function qT(e, t) {
|
|
|
14440
14440
|
vars: m,
|
|
14441
14441
|
varsWithDefaults: g
|
|
14442
14442
|
} = Rl(d, t);
|
|
14443
|
-
l =
|
|
14443
|
+
l = Kn(l, g), u[r] = {
|
|
14444
14444
|
css: p,
|
|
14445
14445
|
vars: m
|
|
14446
14446
|
};
|
|
@@ -14939,13 +14939,13 @@ function rE(e) {
|
|
|
14939
14939
|
color: y(`palette-text-tertiary, ${T.palette.text.tertiary}`)
|
|
14940
14940
|
}
|
|
14941
14941
|
}
|
|
14942
|
-
}, K = w ?
|
|
14942
|
+
}, K = w ? Kn(U, w) : U, {
|
|
14943
14943
|
colorSchemes: ee
|
|
14944
14944
|
} = K, D = De(K, tE), R = _({
|
|
14945
14945
|
colorSchemes: ee
|
|
14946
14946
|
}, D, {
|
|
14947
14947
|
breakpoints: Rm(p != null ? p : {}),
|
|
14948
|
-
components:
|
|
14948
|
+
components: Kn({
|
|
14949
14949
|
// TODO: find a way to abstract SvgIcon out of @mui/material
|
|
14950
14950
|
MuiSvgIcon: {
|
|
14951
14951
|
defaultProps: {
|
|
@@ -15013,7 +15013,7 @@ function rE(e) {
|
|
|
15013
15013
|
getCssVar: y,
|
|
15014
15014
|
palette: R.colorSchemes.light.palette
|
|
15015
15015
|
};
|
|
15016
|
-
return R.variants =
|
|
15016
|
+
return R.variants = Kn({
|
|
15017
15017
|
plain: jt("plain", oe),
|
|
15018
15018
|
plainHover: jt("plainHover", oe),
|
|
15019
15019
|
plainActive: jt("plainActive", oe),
|
|
@@ -15081,7 +15081,7 @@ function Ee(e, t) {
|
|
|
15081
15081
|
component: v
|
|
15082
15082
|
},
|
|
15083
15083
|
internalRef: x
|
|
15084
|
-
} = g, w = De(g.props, lE), y =
|
|
15084
|
+
} = g, w = De(g.props, lE), y = Tn(x, m == null ? void 0 : m.ref, t.ref), C = a ? a(w) : {}, b = _({}, i, C), I = e === "root" ? v || u : v, A = vA(p, _({}, e === "root" && !u && !d[e] && s, e !== "root" && !d[e] && s, w, I && {
|
|
15085
15085
|
as: I
|
|
15086
15086
|
}, {
|
|
15087
15087
|
ref: y
|
|
@@ -15255,7 +15255,7 @@ const Fm = dt("MuiListItem", ["root", "startAction", "endAction", "nested", "nes
|
|
|
15255
15255
|
role: P
|
|
15256
15256
|
},
|
|
15257
15257
|
ref: n,
|
|
15258
|
-
className:
|
|
15258
|
+
className: Xn(j.root, d),
|
|
15259
15259
|
elementType: hE,
|
|
15260
15260
|
externalForwardedProps: z,
|
|
15261
15261
|
ownerState: S
|
|
@@ -15614,7 +15614,7 @@ const SE = /* @__PURE__ */ H.createContext(void 0), AE = ["component", "classNam
|
|
|
15614
15614
|
slotProps: w
|
|
15615
15615
|
}), [$, W] = Ee("root", {
|
|
15616
15616
|
ref: n,
|
|
15617
|
-
className:
|
|
15617
|
+
className: Xn(A.root, u),
|
|
15618
15618
|
elementType: EE,
|
|
15619
15619
|
externalForwardedProps: T,
|
|
15620
15620
|
ownerState: I,
|
|
@@ -15766,7 +15766,7 @@ const SE = /* @__PURE__ */ H.createContext(void 0), AE = ["component", "classNam
|
|
|
15766
15766
|
} = r, d = De(r, LE), {
|
|
15767
15767
|
accordionId: f,
|
|
15768
15768
|
expanded: h = !1
|
|
15769
|
-
} = H.useContext(Ku), p = H.useRef(null), m =
|
|
15769
|
+
} = H.useContext(Ku), p = H.useRef(null), m = Tn(p, n);
|
|
15770
15770
|
H.useEffect(() => {
|
|
15771
15771
|
p.current && p.current.querySelectorAll('a, button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])').forEach((A) => {
|
|
15772
15772
|
if (h) {
|
|
@@ -15983,7 +15983,7 @@ const UE = ["children", "className", "color", "component", "fontSize", "htmlColo
|
|
|
15983
15983
|
slotProps: g
|
|
15984
15984
|
}), [b, I] = Ee("root", {
|
|
15985
15985
|
ref: n,
|
|
15986
|
-
className:
|
|
15986
|
+
className: Xn(y.root, o),
|
|
15987
15987
|
elementType: HE,
|
|
15988
15988
|
externalForwardedProps: C,
|
|
15989
15989
|
ownerState: w,
|
|
@@ -16183,13 +16183,13 @@ const GE = ["component", "color", "children", "indicator", "variant", "slots", "
|
|
|
16183
16183
|
d !== "api" && (f.getText().trim() === "" ? a("") : a(l));
|
|
16184
16184
|
};
|
|
16185
16185
|
return t === "description" ? /* @__PURE__ */ c.jsxs(
|
|
16186
|
-
|
|
16186
|
+
Ue,
|
|
16187
16187
|
{
|
|
16188
16188
|
sx: () => ({
|
|
16189
16189
|
marginBottom: "16px"
|
|
16190
16190
|
}),
|
|
16191
16191
|
children: [
|
|
16192
|
-
/* @__PURE__ */ c.jsx(
|
|
16192
|
+
/* @__PURE__ */ c.jsx(Ve, { color: "primary", children: e }),
|
|
16193
16193
|
/* @__PURE__ */ c.jsx(
|
|
16194
16194
|
vl,
|
|
16195
16195
|
{
|
|
@@ -16203,8 +16203,8 @@ const GE = ["component", "color", "children", "indicator", "variant", "slots", "
|
|
|
16203
16203
|
)
|
|
16204
16204
|
]
|
|
16205
16205
|
}
|
|
16206
|
-
) : t === "mini_games_explanation" ? /* @__PURE__ */ c.jsxs(
|
|
16207
|
-
/* @__PURE__ */ c.jsx(
|
|
16206
|
+
) : t === "mini_games_explanation" ? /* @__PURE__ */ c.jsxs(Ue, { children: [
|
|
16207
|
+
/* @__PURE__ */ c.jsx(Ve, { color: "primary", children: e }),
|
|
16208
16208
|
/* @__PURE__ */ c.jsx(
|
|
16209
16209
|
vl,
|
|
16210
16210
|
{
|
|
@@ -16216,7 +16216,7 @@ const GE = ["component", "color", "children", "indicator", "variant", "slots", "
|
|
|
16216
16216
|
className: "ql-container ql-toolbar"
|
|
16217
16217
|
}
|
|
16218
16218
|
),
|
|
16219
|
-
/* @__PURE__ */ c.jsx(
|
|
16219
|
+
/* @__PURE__ */ c.jsx(mr, { children: o })
|
|
16220
16220
|
] }) : /* @__PURE__ */ c.jsx(
|
|
16221
16221
|
ie,
|
|
16222
16222
|
{
|
|
@@ -16260,15 +16260,15 @@ const GE = ["component", "color", "children", "indicator", "variant", "slots", "
|
|
|
16260
16260
|
i(s || "");
|
|
16261
16261
|
};
|
|
16262
16262
|
return /* @__PURE__ */ c.jsxs(
|
|
16263
|
-
|
|
16263
|
+
Ue,
|
|
16264
16264
|
{
|
|
16265
16265
|
sx: () => ({
|
|
16266
16266
|
marginBottom: "16px"
|
|
16267
16267
|
}),
|
|
16268
16268
|
children: [
|
|
16269
|
-
/* @__PURE__ */ c.jsx(
|
|
16269
|
+
/* @__PURE__ */ c.jsx(Ve, { color: "primary", children: e }),
|
|
16270
16270
|
/* @__PURE__ */ c.jsx(Ot, { defaultValue: t, onChange: o, children: n.map((a, s) => /* @__PURE__ */ c.jsx(et, { value: a, children: a }, `basic-select-${a}-${s}`)) }),
|
|
16271
|
-
r ? /* @__PURE__ */ c.jsx(
|
|
16271
|
+
r ? /* @__PURE__ */ c.jsx(mr, { children: r }) : /* @__PURE__ */ c.jsx(c.Fragment, {})
|
|
16272
16272
|
]
|
|
16273
16273
|
}
|
|
16274
16274
|
);
|
|
@@ -16611,7 +16611,7 @@ const id = dt("MuiTab", ["root", "disabled", "focusVisible", "selected", "horizo
|
|
|
16611
16611
|
indicatorInset: m = !1,
|
|
16612
16612
|
slots: g = {},
|
|
16613
16613
|
slotProps: v = {}
|
|
16614
|
-
} = r, x = De(r, uk), w = H.useRef(null), y =
|
|
16614
|
+
} = r, x = De(r, uk), w = H.useRef(null), y = Tn(w, n), {
|
|
16615
16615
|
active: C,
|
|
16616
16616
|
focusVisible: b,
|
|
16617
16617
|
setFocusVisible: I,
|
|
@@ -16656,14 +16656,14 @@ const id = dt("MuiTab", ["root", "disabled", "focusVisible", "selected", "horizo
|
|
|
16656
16656
|
}))
|
|
16657
16657
|
});
|
|
16658
16658
|
});
|
|
16659
|
-
function
|
|
16659
|
+
function zn(e) {
|
|
16660
16660
|
if (typeof e != "object" || e === null)
|
|
16661
16661
|
return !1;
|
|
16662
16662
|
const t = Object.getPrototypeOf(e);
|
|
16663
16663
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
16664
16664
|
}
|
|
16665
16665
|
function Ym(e) {
|
|
16666
|
-
if (/* @__PURE__ */ H.isValidElement(e) || pm.isValidElementType(e) || !
|
|
16666
|
+
if (/* @__PURE__ */ H.isValidElement(e) || pm.isValidElementType(e) || !zn(e))
|
|
16667
16667
|
return e;
|
|
16668
16668
|
const t = {};
|
|
16669
16669
|
return Object.keys(e).forEach((n) => {
|
|
@@ -16674,9 +16674,9 @@ function cn(e, t, n = {
|
|
|
16674
16674
|
clone: !0
|
|
16675
16675
|
}) {
|
|
16676
16676
|
const r = n.clone ? B({}, e) : e;
|
|
16677
|
-
return
|
|
16678
|
-
/* @__PURE__ */ H.isValidElement(t[i]) || pm.isValidElementType(t[i]) ? r[i] = t[i] :
|
|
16679
|
-
Object.prototype.hasOwnProperty.call(e, i) &&
|
|
16677
|
+
return zn(e) && zn(t) && Object.keys(t).forEach((i) => {
|
|
16678
|
+
/* @__PURE__ */ H.isValidElement(t[i]) || pm.isValidElementType(t[i]) ? r[i] = t[i] : zn(t[i]) && // Avoid prototype pollution
|
|
16679
|
+
Object.prototype.hasOwnProperty.call(e, i) && zn(e[i]) ? r[i] = cn(e[i], t[i], n) : n.clone ? r[i] = zn(t[i]) ? Ym(t[i]) : t[i] : r[i] = t[i];
|
|
16680
16680
|
}), r;
|
|
16681
16681
|
}
|
|
16682
16682
|
function Vr(e, ...t) {
|
|
@@ -16832,7 +16832,7 @@ const Vs = {
|
|
|
16832
16832
|
}
|
|
16833
16833
|
})
|
|
16834
16834
|
};
|
|
16835
|
-
function
|
|
16835
|
+
function tr(e, t, n) {
|
|
16836
16836
|
const r = e.theme || {};
|
|
16837
16837
|
if (Array.isArray(t)) {
|
|
16838
16838
|
const o = r.breakpoints || _f;
|
|
@@ -16893,7 +16893,7 @@ function mt(e) {
|
|
|
16893
16893
|
if (a[t] == null)
|
|
16894
16894
|
return null;
|
|
16895
16895
|
const s = a[t], l = a.theme, u = Hs(l, r) || {};
|
|
16896
|
-
return
|
|
16896
|
+
return tr(a, s, (f) => {
|
|
16897
16897
|
let h = Ha(u, i, f);
|
|
16898
16898
|
return f === h && typeof f == "string" && (h = Ha(u, i, `${t}${f === "default" ? "" : Di(f)}`, f)), n === !1 ? h : {
|
|
16899
16899
|
[n]: h
|
|
@@ -16955,7 +16955,7 @@ function Dk(e, t, n, r) {
|
|
|
16955
16955
|
if (!t.includes(n))
|
|
16956
16956
|
return null;
|
|
16957
16957
|
const i = _k(n), o = Pk(i, r), a = e[n];
|
|
16958
|
-
return
|
|
16958
|
+
return tr(e, a, o);
|
|
16959
16959
|
}
|
|
16960
16960
|
function Qm(e, t) {
|
|
16961
16961
|
const n = sd(e.theme);
|
|
@@ -16980,19 +16980,19 @@ function Ws(...e) {
|
|
|
16980
16980
|
function hn(e) {
|
|
16981
16981
|
return typeof e != "number" ? e : `${e}px solid`;
|
|
16982
16982
|
}
|
|
16983
|
-
function
|
|
16983
|
+
function yn(e, t) {
|
|
16984
16984
|
return mt({
|
|
16985
16985
|
prop: e,
|
|
16986
16986
|
themeKey: "borders",
|
|
16987
16987
|
transform: t
|
|
16988
16988
|
});
|
|
16989
16989
|
}
|
|
16990
|
-
const Rk =
|
|
16990
|
+
const Rk = yn("border", hn), Ok = yn("borderTop", hn), Lk = yn("borderRight", hn), Mk = yn("borderBottom", hn), jk = yn("borderLeft", hn), $k = yn("borderColor"), Bk = yn("borderTopColor"), Nk = yn("borderRightColor"), Fk = yn("borderBottomColor"), zk = yn("borderLeftColor"), Uk = yn("outline", hn), Vk = yn("outlineColor"), Gs = (e) => {
|
|
16991
16991
|
if (e.borderRadius !== void 0 && e.borderRadius !== null) {
|
|
16992
16992
|
const t = Wo(e.theme, "shape.borderRadius", 4), n = (r) => ({
|
|
16993
16993
|
borderRadius: Go(t, r)
|
|
16994
16994
|
});
|
|
16995
|
-
return
|
|
16995
|
+
return tr(e, e.borderRadius, n);
|
|
16996
16996
|
}
|
|
16997
16997
|
return null;
|
|
16998
16998
|
};
|
|
@@ -17004,7 +17004,7 @@ const Ys = (e) => {
|
|
|
17004
17004
|
const t = Wo(e.theme, "spacing", 8), n = (r) => ({
|
|
17005
17005
|
gap: Go(t, r)
|
|
17006
17006
|
});
|
|
17007
|
-
return
|
|
17007
|
+
return tr(e, e.gap, n);
|
|
17008
17008
|
}
|
|
17009
17009
|
return null;
|
|
17010
17010
|
};
|
|
@@ -17015,7 +17015,7 @@ const Ks = (e) => {
|
|
|
17015
17015
|
const t = Wo(e.theme, "spacing", 8), n = (r) => ({
|
|
17016
17016
|
columnGap: Go(t, r)
|
|
17017
17017
|
});
|
|
17018
|
-
return
|
|
17018
|
+
return tr(e, e.columnGap, n);
|
|
17019
17019
|
}
|
|
17020
17020
|
return null;
|
|
17021
17021
|
};
|
|
@@ -17026,7 +17026,7 @@ const Qs = (e) => {
|
|
|
17026
17026
|
const t = Wo(e.theme, "spacing", 8), n = (r) => ({
|
|
17027
17027
|
rowGap: Go(t, r)
|
|
17028
17028
|
});
|
|
17029
|
-
return
|
|
17029
|
+
return tr(e, e.rowGap, n);
|
|
17030
17030
|
}
|
|
17031
17031
|
return null;
|
|
17032
17032
|
};
|
|
@@ -17089,7 +17089,7 @@ const n_ = mt({
|
|
|
17089
17089
|
maxWidth: an(n)
|
|
17090
17090
|
};
|
|
17091
17091
|
};
|
|
17092
|
-
return
|
|
17092
|
+
return tr(e, e.maxWidth, t);
|
|
17093
17093
|
}
|
|
17094
17094
|
return null;
|
|
17095
17095
|
};
|
|
@@ -17439,7 +17439,7 @@ function u_() {
|
|
|
17439
17439
|
[n]: r
|
|
17440
17440
|
};
|
|
17441
17441
|
const h = Hs(i, u) || {};
|
|
17442
|
-
return f ? f(a) :
|
|
17442
|
+
return f ? f(a) : tr(a, r, (m) => {
|
|
17443
17443
|
let g = Ha(h, d, m);
|
|
17444
17444
|
return m === g && typeof m == "string" && (g = Ha(h, d, `${n}${m === "default" ? "" : Di(m)}`, m)), l === !1 ? g : {
|
|
17445
17445
|
[l]: g
|
|
@@ -17472,7 +17472,7 @@ function u_() {
|
|
|
17472
17472
|
if (o[p])
|
|
17473
17473
|
h = ho(h, e(p, m, i, o));
|
|
17474
17474
|
else {
|
|
17475
|
-
const g =
|
|
17475
|
+
const g = tr({
|
|
17476
17476
|
theme: i
|
|
17477
17477
|
}, m, (v) => ({
|
|
17478
17478
|
[p]: v
|
|
@@ -17572,10 +17572,10 @@ var f_ = {
|
|
|
17572
17572
|
case "animationName":
|
|
17573
17573
|
if (typeof n == "string")
|
|
17574
17574
|
return n.replace(g_, function(r, i, o) {
|
|
17575
|
-
return
|
|
17575
|
+
return pr = {
|
|
17576
17576
|
name: i,
|
|
17577
17577
|
styles: o,
|
|
17578
|
-
next:
|
|
17578
|
+
next: pr
|
|
17579
17579
|
}, i;
|
|
17580
17580
|
});
|
|
17581
17581
|
}
|
|
@@ -17593,20 +17593,20 @@ function Wa(e, t, n) {
|
|
|
17593
17593
|
case "object": {
|
|
17594
17594
|
var i = n;
|
|
17595
17595
|
if (i.anim === 1)
|
|
17596
|
-
return
|
|
17596
|
+
return pr = {
|
|
17597
17597
|
name: i.name,
|
|
17598
17598
|
styles: i.styles,
|
|
17599
|
-
next:
|
|
17599
|
+
next: pr
|
|
17600
17600
|
}, i.name;
|
|
17601
17601
|
var o = n;
|
|
17602
17602
|
if (o.styles !== void 0) {
|
|
17603
17603
|
var a = o.next;
|
|
17604
17604
|
if (a !== void 0)
|
|
17605
17605
|
for (; a !== void 0; )
|
|
17606
|
-
|
|
17606
|
+
pr = {
|
|
17607
17607
|
name: a.name,
|
|
17608
17608
|
styles: a.styles,
|
|
17609
|
-
next:
|
|
17609
|
+
next: pr
|
|
17610
17610
|
}, a = a.next;
|
|
17611
17611
|
var s = o.styles + ";";
|
|
17612
17612
|
return s;
|
|
@@ -17650,12 +17650,12 @@ function v_(e, t, n) {
|
|
|
17650
17650
|
}
|
|
17651
17651
|
return r;
|
|
17652
17652
|
}
|
|
17653
|
-
var Of = /label:\s*([^\s;{]+)\s*(;|$)/g,
|
|
17653
|
+
var Of = /label:\s*([^\s;{]+)\s*(;|$)/g, pr;
|
|
17654
17654
|
function b_(e, t, n) {
|
|
17655
17655
|
if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
|
|
17656
17656
|
return e[0];
|
|
17657
17657
|
var r = !0, i = "";
|
|
17658
|
-
|
|
17658
|
+
pr = void 0;
|
|
17659
17659
|
var o = e[0];
|
|
17660
17660
|
if (o == null || o.raw === void 0)
|
|
17661
17661
|
r = !1, i += Wa(n, t, o);
|
|
@@ -17675,7 +17675,7 @@ function b_(e, t, n) {
|
|
|
17675
17675
|
return {
|
|
17676
17676
|
name: f,
|
|
17677
17677
|
styles: i,
|
|
17678
|
-
next:
|
|
17678
|
+
next: pr
|
|
17679
17679
|
};
|
|
17680
17680
|
}
|
|
17681
17681
|
/**
|
|
@@ -17917,7 +17917,7 @@ function k_(e = {}) {
|
|
|
17917
17917
|
return function(T) {
|
|
17918
17918
|
return Ca(T, I);
|
|
17919
17919
|
};
|
|
17920
|
-
if (
|
|
17920
|
+
if (zn(I)) {
|
|
17921
17921
|
const A = Zm(I);
|
|
17922
17922
|
return A.variants ? function($) {
|
|
17923
17923
|
return Ca($, A);
|
|
@@ -18777,7 +18777,7 @@ const hP = {
|
|
|
18777
18777
|
tooltip: 1500
|
|
18778
18778
|
};
|
|
18779
18779
|
function pP(e) {
|
|
18780
|
-
return
|
|
18780
|
+
return zn(e) || typeof e == "undefined" || typeof e == "string" || typeof e == "boolean" || typeof e == "number" || Array.isArray(e);
|
|
18781
18781
|
}
|
|
18782
18782
|
function iv(e = {}) {
|
|
18783
18783
|
const t = B({}, e);
|
|
@@ -18785,7 +18785,7 @@ function iv(e = {}) {
|
|
|
18785
18785
|
const i = Object.entries(r);
|
|
18786
18786
|
for (let o = 0; o < i.length; o++) {
|
|
18787
18787
|
const [a, s] = i[o];
|
|
18788
|
-
!pP(s) || a.startsWith("unstable_") ? delete r[a] :
|
|
18788
|
+
!pP(s) || a.startsWith("unstable_") ? delete r[a] : zn(s) && (r[a] = B({}, s), n(r[a]));
|
|
18789
18789
|
}
|
|
18790
18790
|
}
|
|
18791
18791
|
return n(t), `import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
@@ -18924,14 +18924,14 @@ function Z(e, t, n) {
|
|
|
18924
18924
|
function ro(e) {
|
|
18925
18925
|
return typeof e != "string" || !e.startsWith("hsl") ? e : tv(e);
|
|
18926
18926
|
}
|
|
18927
|
-
function
|
|
18927
|
+
function Fn(e, t) {
|
|
18928
18928
|
`${t}Channel` in e || (e[`${t}Channel`] = no(ro(e[t]), `MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
18929
18929
|
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`));
|
|
18930
18930
|
}
|
|
18931
18931
|
function wP(e) {
|
|
18932
18932
|
return typeof e == "number" ? `${e}px` : typeof e == "string" || typeof e == "function" || Array.isArray(e) ? e : "8px";
|
|
18933
18933
|
}
|
|
18934
|
-
const
|
|
18934
|
+
const _n = (e) => {
|
|
18935
18935
|
try {
|
|
18936
18936
|
return e();
|
|
18937
18937
|
} catch (t) {
|
|
@@ -19015,18 +19015,18 @@ function SP(e = {}, ...t) {
|
|
|
19015
19015
|
return h(z, S[M][O]);
|
|
19016
19016
|
};
|
|
19017
19017
|
if (S.mode === "light" && (Z(S.common, "background", "#fff"), Z(S.common, "onBackground", "#000")), S.mode === "dark" && (Z(S.common, "background", "#000"), Z(S.common, "onBackground", "#fff")), CP(S, ["Alert", "AppBar", "Avatar", "Button", "Chip", "FilledInput", "LinearProgress", "Skeleton", "Slider", "SnackbarContent", "SpeedDialAction", "StepConnector", "StepContent", "Switch", "TableCell", "Tooltip"]), S.mode === "light") {
|
|
19018
|
-
Z(S.Alert, "errorColor", We(S.error.light, 0.6)), Z(S.Alert, "infoColor", We(S.info.light, 0.6)), Z(S.Alert, "successColor", We(S.success.light, 0.6)), Z(S.Alert, "warningColor", We(S.warning.light, 0.6)), Z(S.Alert, "errorFilledBg", j("palette-error-main")), Z(S.Alert, "infoFilledBg", j("palette-info-main")), Z(S.Alert, "successFilledBg", j("palette-success-main")), Z(S.Alert, "warningFilledBg", j("palette-warning-main")), Z(S.Alert, "errorFilledColor",
|
|
19018
|
+
Z(S.Alert, "errorColor", We(S.error.light, 0.6)), Z(S.Alert, "infoColor", We(S.info.light, 0.6)), Z(S.Alert, "successColor", We(S.success.light, 0.6)), Z(S.Alert, "warningColor", We(S.warning.light, 0.6)), Z(S.Alert, "errorFilledBg", j("palette-error-main")), Z(S.Alert, "infoFilledBg", j("palette-info-main")), Z(S.Alert, "successFilledBg", j("palette-success-main")), Z(S.Alert, "warningFilledBg", j("palette-warning-main")), Z(S.Alert, "errorFilledColor", _n(() => S.getContrastText(S.error.main))), Z(S.Alert, "infoFilledColor", _n(() => S.getContrastText(S.info.main))), Z(S.Alert, "successFilledColor", _n(() => S.getContrastText(S.success.main))), Z(S.Alert, "warningFilledColor", _n(() => S.getContrastText(S.warning.main))), Z(S.Alert, "errorStandardBg", Ge(S.error.light, 0.9)), Z(S.Alert, "infoStandardBg", Ge(S.info.light, 0.9)), Z(S.Alert, "successStandardBg", Ge(S.success.light, 0.9)), Z(S.Alert, "warningStandardBg", Ge(S.warning.light, 0.9)), Z(S.Alert, "errorIconColor", j("palette-error-main")), Z(S.Alert, "infoIconColor", j("palette-info-main")), Z(S.Alert, "successIconColor", j("palette-success-main")), Z(S.Alert, "warningIconColor", j("palette-warning-main")), Z(S.AppBar, "defaultBg", j("palette-grey-100")), Z(S.Avatar, "defaultBg", j("palette-grey-400")), Z(S.Button, "inheritContainedBg", j("palette-grey-300")), Z(S.Button, "inheritContainedHoverBg", j("palette-grey-A100")), Z(S.Chip, "defaultBorder", j("palette-grey-400")), Z(S.Chip, "defaultAvatarColor", j("palette-grey-700")), Z(S.Chip, "defaultIconColor", j("palette-grey-700")), Z(S.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"), Z(S.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"), Z(S.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"), Z(S.LinearProgress, "primaryBg", Ge(S.primary.main, 0.62)), Z(S.LinearProgress, "secondaryBg", Ge(S.secondary.main, 0.62)), Z(S.LinearProgress, "errorBg", Ge(S.error.main, 0.62)), Z(S.LinearProgress, "infoBg", Ge(S.info.main, 0.62)), Z(S.LinearProgress, "successBg", Ge(S.success.main, 0.62)), Z(S.LinearProgress, "warningBg", Ge(S.warning.main, 0.62)), Z(S.Skeleton, "bg", `rgba(${j("palette-text-primaryChannel")} / 0.11)`), Z(S.Slider, "primaryTrack", Ge(S.primary.main, 0.62)), Z(S.Slider, "secondaryTrack", Ge(S.secondary.main, 0.62)), Z(S.Slider, "errorTrack", Ge(S.error.main, 0.62)), Z(S.Slider, "infoTrack", Ge(S.info.main, 0.62)), Z(S.Slider, "successTrack", Ge(S.success.main, 0.62)), Z(S.Slider, "warningTrack", Ge(S.warning.main, 0.62));
|
|
19019
19019
|
const z = aa(S.background.default, 0.8);
|
|
19020
|
-
Z(S.SnackbarContent, "bg", z), Z(S.SnackbarContent, "color",
|
|
19020
|
+
Z(S.SnackbarContent, "bg", z), Z(S.SnackbarContent, "color", _n(() => S.getContrastText(z))), Z(S.SpeedDialAction, "fabHoverBg", aa(S.background.paper, 0.15)), Z(S.StepConnector, "border", j("palette-grey-400")), Z(S.StepContent, "border", j("palette-grey-400")), Z(S.Switch, "defaultColor", j("palette-common-white")), Z(S.Switch, "defaultDisabledColor", j("palette-grey-100")), Z(S.Switch, "primaryDisabledColor", Ge(S.primary.main, 0.62)), Z(S.Switch, "secondaryDisabledColor", Ge(S.secondary.main, 0.62)), Z(S.Switch, "errorDisabledColor", Ge(S.error.main, 0.62)), Z(S.Switch, "infoDisabledColor", Ge(S.info.main, 0.62)), Z(S.Switch, "successDisabledColor", Ge(S.success.main, 0.62)), Z(S.Switch, "warningDisabledColor", Ge(S.warning.main, 0.62)), Z(S.TableCell, "border", Ge(oa(S.divider, 1), 0.88)), Z(S.Tooltip, "bg", oa(S.grey[700], 0.92));
|
|
19021
19021
|
}
|
|
19022
19022
|
if (S.mode === "dark") {
|
|
19023
|
-
Z(S.Alert, "errorColor", Ge(S.error.light, 0.6)), Z(S.Alert, "infoColor", Ge(S.info.light, 0.6)), Z(S.Alert, "successColor", Ge(S.success.light, 0.6)), Z(S.Alert, "warningColor", Ge(S.warning.light, 0.6)), Z(S.Alert, "errorFilledBg", j("palette-error-dark")), Z(S.Alert, "infoFilledBg", j("palette-info-dark")), Z(S.Alert, "successFilledBg", j("palette-success-dark")), Z(S.Alert, "warningFilledBg", j("palette-warning-dark")), Z(S.Alert, "errorFilledColor",
|
|
19023
|
+
Z(S.Alert, "errorColor", Ge(S.error.light, 0.6)), Z(S.Alert, "infoColor", Ge(S.info.light, 0.6)), Z(S.Alert, "successColor", Ge(S.success.light, 0.6)), Z(S.Alert, "warningColor", Ge(S.warning.light, 0.6)), Z(S.Alert, "errorFilledBg", j("palette-error-dark")), Z(S.Alert, "infoFilledBg", j("palette-info-dark")), Z(S.Alert, "successFilledBg", j("palette-success-dark")), Z(S.Alert, "warningFilledBg", j("palette-warning-dark")), Z(S.Alert, "errorFilledColor", _n(() => S.getContrastText(S.error.dark))), Z(S.Alert, "infoFilledColor", _n(() => S.getContrastText(S.info.dark))), Z(S.Alert, "successFilledColor", _n(() => S.getContrastText(S.success.dark))), Z(S.Alert, "warningFilledColor", _n(() => S.getContrastText(S.warning.dark))), Z(S.Alert, "errorStandardBg", We(S.error.light, 0.9)), Z(S.Alert, "infoStandardBg", We(S.info.light, 0.9)), Z(S.Alert, "successStandardBg", We(S.success.light, 0.9)), Z(S.Alert, "warningStandardBg", We(S.warning.light, 0.9)), Z(S.Alert, "errorIconColor", j("palette-error-main")), Z(S.Alert, "infoIconColor", j("palette-info-main")), Z(S.Alert, "successIconColor", j("palette-success-main")), Z(S.Alert, "warningIconColor", j("palette-warning-main")), Z(S.AppBar, "defaultBg", j("palette-grey-900")), Z(S.AppBar, "darkBg", j("palette-background-paper")), Z(S.AppBar, "darkColor", j("palette-text-primary")), Z(S.Avatar, "defaultBg", j("palette-grey-600")), Z(S.Button, "inheritContainedBg", j("palette-grey-800")), Z(S.Button, "inheritContainedHoverBg", j("palette-grey-700")), Z(S.Chip, "defaultBorder", j("palette-grey-700")), Z(S.Chip, "defaultAvatarColor", j("palette-grey-300")), Z(S.Chip, "defaultIconColor", j("palette-grey-300")), Z(S.FilledInput, "bg", "rgba(255, 255, 255, 0.09)"), Z(S.FilledInput, "hoverBg", "rgba(255, 255, 255, 0.13)"), Z(S.FilledInput, "disabledBg", "rgba(255, 255, 255, 0.12)"), Z(S.LinearProgress, "primaryBg", We(S.primary.main, 0.5)), Z(S.LinearProgress, "secondaryBg", We(S.secondary.main, 0.5)), Z(S.LinearProgress, "errorBg", We(S.error.main, 0.5)), Z(S.LinearProgress, "infoBg", We(S.info.main, 0.5)), Z(S.LinearProgress, "successBg", We(S.success.main, 0.5)), Z(S.LinearProgress, "warningBg", We(S.warning.main, 0.5)), Z(S.Skeleton, "bg", `rgba(${j("palette-text-primaryChannel")} / 0.13)`), Z(S.Slider, "primaryTrack", We(S.primary.main, 0.5)), Z(S.Slider, "secondaryTrack", We(S.secondary.main, 0.5)), Z(S.Slider, "errorTrack", We(S.error.main, 0.5)), Z(S.Slider, "infoTrack", We(S.info.main, 0.5)), Z(S.Slider, "successTrack", We(S.success.main, 0.5)), Z(S.Slider, "warningTrack", We(S.warning.main, 0.5));
|
|
19024
19024
|
const z = aa(S.background.default, 0.98);
|
|
19025
|
-
Z(S.SnackbarContent, "bg", z), Z(S.SnackbarContent, "color",
|
|
19025
|
+
Z(S.SnackbarContent, "bg", z), Z(S.SnackbarContent, "color", _n(() => S.getContrastText(z))), Z(S.SpeedDialAction, "fabHoverBg", aa(S.background.paper, 0.15)), Z(S.StepConnector, "border", j("palette-grey-600")), Z(S.StepContent, "border", j("palette-grey-600")), Z(S.Switch, "defaultColor", j("palette-grey-300")), Z(S.Switch, "defaultDisabledColor", j("palette-grey-600")), Z(S.Switch, "primaryDisabledColor", We(S.primary.main, 0.55)), Z(S.Switch, "secondaryDisabledColor", We(S.secondary.main, 0.55)), Z(S.Switch, "errorDisabledColor", We(S.error.main, 0.55)), Z(S.Switch, "infoDisabledColor", We(S.info.main, 0.55)), Z(S.Switch, "successDisabledColor", We(S.success.main, 0.55)), Z(S.Switch, "warningDisabledColor", We(S.warning.main, 0.55)), Z(S.TableCell, "border", We(oa(S.divider, 1), 0.68)), Z(S.Tooltip, "bg", oa(S.grey[700], 0.92));
|
|
19026
19026
|
}
|
|
19027
|
-
|
|
19027
|
+
Fn(S.background, "default"), Fn(S.background, "paper"), Fn(S.common, "background"), Fn(S.common, "onBackground"), Fn(S, "divider"), Object.keys(S).forEach((z) => {
|
|
19028
19028
|
const N = S[z];
|
|
19029
|
-
z !== "tonalOffset" && N && typeof N == "object" && (N.main && Z(S[z], "mainChannel", no(ro(N.main))), N.light && Z(S[z], "lightChannel", no(ro(N.light))), N.dark && Z(S[z], "darkChannel", no(ro(N.dark))), N.contrastText && Z(S[z], "contrastTextChannel", no(ro(N.contrastText))), z === "text" && (
|
|
19029
|
+
z !== "tonalOffset" && N && typeof N == "object" && (N.main && Z(S[z], "mainChannel", no(ro(N.main))), N.light && Z(S[z], "lightChannel", no(ro(N.light))), N.dark && Z(S[z], "darkChannel", no(ro(N.dark))), N.contrastText && Z(S[z], "contrastTextChannel", no(ro(N.contrastText))), z === "text" && (Fn(S[z], "primary"), Fn(S[z], "secondary")), z === "action" && (N.active && Fn(S[z], "active"), N.selected && Fn(S[z], "selected")));
|
|
19030
19030
|
});
|
|
19031
19031
|
}), C = t.reduce((P, S) => cn(P, S), C);
|
|
19032
19032
|
const b = {
|
|
@@ -19260,7 +19260,7 @@ const LP = (e) => {
|
|
|
19260
19260
|
const x = LP(g);
|
|
19261
19261
|
return /* @__PURE__ */ c.jsxs(MP, Q(B(B(B({
|
|
19262
19262
|
as: s,
|
|
19263
|
-
className:
|
|
19263
|
+
className: Xn(x.root, o),
|
|
19264
19264
|
focusable: "false",
|
|
19265
19265
|
color: u,
|
|
19266
19266
|
"aria-hidden": f ? void 0 : !0,
|
|
@@ -19939,7 +19939,7 @@ const GP = (e) => (t) => {
|
|
|
19939
19939
|
children: $
|
|
19940
19940
|
}))]
|
|
19941
19941
|
}));
|
|
19942
|
-
}),
|
|
19942
|
+
}), pn = ({
|
|
19943
19943
|
label: e,
|
|
19944
19944
|
placeholder: t,
|
|
19945
19945
|
value: n,
|
|
@@ -19950,14 +19950,14 @@ const GP = (e) => (t) => {
|
|
|
19950
19950
|
endDecorator: s = void 0,
|
|
19951
19951
|
onChange: l
|
|
19952
19952
|
}) => /* @__PURE__ */ c.jsxs(
|
|
19953
|
-
|
|
19953
|
+
Ue,
|
|
19954
19954
|
{
|
|
19955
19955
|
size: o || "md",
|
|
19956
19956
|
sx: () => ({
|
|
19957
19957
|
marginBottom: "16px"
|
|
19958
19958
|
}),
|
|
19959
19959
|
children: [
|
|
19960
|
-
/* @__PURE__ */ c.jsx(
|
|
19960
|
+
/* @__PURE__ */ c.jsx(Ve, { required: i, color: "primary", children: e }),
|
|
19961
19961
|
/* @__PURE__ */ c.jsx(
|
|
19962
19962
|
Ga,
|
|
19963
19963
|
{
|
|
@@ -20178,7 +20178,7 @@ const uD = xe("span", {
|
|
|
20178
20178
|
slotProps: m
|
|
20179
20179
|
}), [y, C] = Ee("root", {
|
|
20180
20180
|
ref: n,
|
|
20181
|
-
className:
|
|
20181
|
+
className: Xn(x.root, o),
|
|
20182
20182
|
elementType: uD,
|
|
20183
20183
|
externalForwardedProps: w,
|
|
20184
20184
|
ownerState: v,
|
|
@@ -20374,7 +20374,7 @@ const gD = dt("MuiButton", ["root", "colorPrimary", "colorNeutral", "colorDanger
|
|
|
20374
20374
|
component: x,
|
|
20375
20375
|
slots: w = {},
|
|
20376
20376
|
slotProps: y = {}
|
|
20377
|
-
} = i, C = De(i, mD), b = H.useContext(fv), I = H.useContext(hv), A = t.variant || b.variant || l, T = t.size || b.size || u, $ = t.color || b.color || s, W = (r = t.loading || t.disabled) != null ? r : b.disabled || p || v, P = H.useRef(null), S =
|
|
20377
|
+
} = i, C = De(i, mD), b = H.useContext(fv), I = H.useContext(hv), A = t.variant || b.variant || l, T = t.size || b.size || u, $ = t.color || b.color || s, W = (r = t.loading || t.disabled) != null ? r : b.disabled || p || v, P = H.useRef(null), S = Tn(P, n), {
|
|
20378
20378
|
focusVisible: j,
|
|
20379
20379
|
setFocusVisible: z,
|
|
20380
20380
|
getRootProps: N
|
|
@@ -21030,7 +21030,7 @@ function gd() {
|
|
|
21030
21030
|
});
|
|
21031
21031
|
})(pv);
|
|
21032
21032
|
var ED = pv.exports;
|
|
21033
|
-
const Yf = /* @__PURE__ */
|
|
21033
|
+
const Yf = /* @__PURE__ */ Bn(ED);
|
|
21034
21034
|
var gv = { exports: {} };
|
|
21035
21035
|
(function(e, t) {
|
|
21036
21036
|
(function(n, r) {
|
|
@@ -21052,7 +21052,7 @@ var gv = { exports: {} };
|
|
|
21052
21052
|
});
|
|
21053
21053
|
})(gv);
|
|
21054
21054
|
var kD = gv.exports;
|
|
21055
|
-
const Kf = /* @__PURE__ */
|
|
21055
|
+
const Kf = /* @__PURE__ */ Bn(kD);
|
|
21056
21056
|
var mv = { exports: {} };
|
|
21057
21057
|
(function(e, t) {
|
|
21058
21058
|
(function(n, r) {
|
|
@@ -21127,7 +21127,7 @@ var mv = { exports: {} };
|
|
|
21127
21127
|
});
|
|
21128
21128
|
})(mv);
|
|
21129
21129
|
var _D = mv.exports;
|
|
21130
|
-
const PD = /* @__PURE__ */
|
|
21130
|
+
const PD = /* @__PURE__ */ Bn(_D);
|
|
21131
21131
|
class vv {
|
|
21132
21132
|
constructor() {
|
|
21133
21133
|
te(this, "readFileAndHash", (t) => new Promise((n, r) => {
|
|
@@ -21238,7 +21238,7 @@ const bv = ({ title: e, open: t, imageSrc: n, toggleModal: r }) => /* @__PURE__
|
|
|
21238
21238
|
width: "100%",
|
|
21239
21239
|
height: "100%"
|
|
21240
21240
|
},
|
|
21241
|
-
children: /* @__PURE__ */ c.jsx(
|
|
21241
|
+
children: /* @__PURE__ */ c.jsx(An, { variant: "solid", color: "neutral" })
|
|
21242
21242
|
}
|
|
21243
21243
|
) : /* @__PURE__ */ c.jsx(c.Fragment, {})
|
|
21244
21244
|
] }), OD = qe(/* @__PURE__ */ c.jsx("path", {
|
|
@@ -21247,7 +21247,7 @@ const bv = ({ title: e, open: t, imageSrc: n, toggleModal: r }) => /* @__PURE__
|
|
|
21247
21247
|
d: "M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
|
|
21248
21248
|
}), "ChevronRight"), MD = (e) => /* @__PURE__ */ c.jsx(ie, { display: "flex", alignItems: "baseline", flexWrap: "wrap", children: /* @__PURE__ */ c.jsxs(ie, { display: "flex", children: [
|
|
21249
21249
|
e.pageCount && e.pageCount !== 1 && /* @__PURE__ */ c.jsx(
|
|
21250
|
-
|
|
21250
|
+
Fe,
|
|
21251
21251
|
{
|
|
21252
21252
|
variant: "outlined",
|
|
21253
21253
|
color: "neutral",
|
|
@@ -21269,7 +21269,7 @@ const bv = ({ title: e, open: t, imageSrc: n, toggleModal: r }) => /* @__PURE__
|
|
|
21269
21269
|
}
|
|
21270
21270
|
),
|
|
21271
21271
|
e.images && e.images.length === 20 && /* @__PURE__ */ c.jsx(
|
|
21272
|
-
|
|
21272
|
+
Fe,
|
|
21273
21273
|
{
|
|
21274
21274
|
variant: "outlined",
|
|
21275
21275
|
color: "neutral",
|
|
@@ -21290,11 +21290,11 @@ const bv = ({ title: e, open: t, imageSrc: n, toggleModal: r }) => /* @__PURE__
|
|
|
21290
21290
|
children: e.labels.next
|
|
21291
21291
|
}
|
|
21292
21292
|
)
|
|
21293
|
-
] }) }),
|
|
21293
|
+
] }) }), cr = qe(/* @__PURE__ */ c.jsx("path", {
|
|
21294
21294
|
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"
|
|
21295
21295
|
}), "Info"), jD = qe(/* @__PURE__ */ c.jsx("path", {
|
|
21296
21296
|
d: "M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"
|
|
21297
|
-
}), "Warning"), $D = ({ color: e }) => e === "warning" ? /* @__PURE__ */ c.jsx(jD, {}) : /* @__PURE__ */ c.jsx(
|
|
21297
|
+
}), "Warning"), $D = ({ color: e }) => e === "warning" ? /* @__PURE__ */ c.jsx(jD, {}) : /* @__PURE__ */ c.jsx(cr, {}), ft = (e) => /* @__PURE__ */ c.jsx(
|
|
21298
21298
|
Qy,
|
|
21299
21299
|
{
|
|
21300
21300
|
anchorOrigin: { vertical: "top", horizontal: "right" },
|
|
@@ -21310,10 +21310,10 @@ const bv = ({ title: e, open: t, imageSrc: n, toggleModal: r }) => /* @__PURE__
|
|
|
21310
21310
|
const i = (o) => {
|
|
21311
21311
|
r(o.target.value);
|
|
21312
21312
|
};
|
|
21313
|
-
return /* @__PURE__ */ c.jsxs(
|
|
21314
|
-
/* @__PURE__ */ c.jsx(
|
|
21313
|
+
return /* @__PURE__ */ c.jsxs(Ue, { sx: { marginBottom: "16px" }, children: [
|
|
21314
|
+
/* @__PURE__ */ c.jsx(Ve, { required: n, color: "primary", children: e }),
|
|
21315
21315
|
/* @__PURE__ */ c.jsx(
|
|
21316
|
-
|
|
21316
|
+
dr,
|
|
21317
21317
|
{
|
|
21318
21318
|
type: "date",
|
|
21319
21319
|
defaultValue: t,
|
|
@@ -21357,7 +21357,7 @@ const bv = ({ title: e, open: t, imageSrc: n, toggleModal: r }) => /* @__PURE__
|
|
|
21357
21357
|
return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
21358
21358
|
/* @__PURE__ */ c.jsxs(ie, { sx: { marginBottom: "10px" }, children: [
|
|
21359
21359
|
/* @__PURE__ */ c.jsx(
|
|
21360
|
-
|
|
21360
|
+
dr,
|
|
21361
21361
|
{
|
|
21362
21362
|
value: h,
|
|
21363
21363
|
onChange: ($) => p($.target.value),
|
|
@@ -21387,7 +21387,7 @@ const bv = ({ title: e, open: t, imageSrc: n, toggleModal: r }) => /* @__PURE__
|
|
|
21387
21387
|
) })
|
|
21388
21388
|
] }) : /* @__PURE__ */ c.jsx(c.Fragment, {}),
|
|
21389
21389
|
/* @__PURE__ */ c.jsx(
|
|
21390
|
-
|
|
21390
|
+
Fe,
|
|
21391
21391
|
{
|
|
21392
21392
|
onClick: I,
|
|
21393
21393
|
sx: {
|
|
@@ -21618,7 +21618,7 @@ _v.getEventType = function() {
|
|
|
21618
21618
|
return HD.firefox() ? "DOMMouseScroll" : WD("wheel") ? "wheel" : "mousewheel";
|
|
21619
21619
|
};
|
|
21620
21620
|
var GD = _v, YD = GD;
|
|
21621
|
-
const KD = /* @__PURE__ */
|
|
21621
|
+
const KD = /* @__PURE__ */ Bn(YD);
|
|
21622
21622
|
function QD(e, t, n, r, i, o) {
|
|
21623
21623
|
o === void 0 && (o = 0);
|
|
21624
21624
|
var a = Oi(e, t, o), s = a.width, l = a.height, u = Math.min(s, n), d = Math.min(l, r);
|
|
@@ -22210,13 +22210,13 @@ const Pv = ({ labels: e, open: t, imageSrc: n, resetDefaultImageUrl: r, toggleMo
|
|
|
22210
22210
|
}
|
|
22211
22211
|
) }),
|
|
22212
22212
|
/* @__PURE__ */ c.jsxs(
|
|
22213
|
-
|
|
22213
|
+
Ue,
|
|
22214
22214
|
{
|
|
22215
22215
|
sx: () => ({
|
|
22216
22216
|
marginBottom: "16px"
|
|
22217
22217
|
}),
|
|
22218
22218
|
children: [
|
|
22219
|
-
/* @__PURE__ */ c.jsx(
|
|
22219
|
+
/* @__PURE__ */ c.jsx(Ve, { color: "primary", children: e.aspectRatio }),
|
|
22220
22220
|
/* @__PURE__ */ c.jsxs(Ot, { value: d, onChange: g, children: [
|
|
22221
22221
|
/* @__PURE__ */ c.jsx(et, { value: 4 / 3, children: "4 / 3" }),
|
|
22222
22222
|
/* @__PURE__ */ c.jsx(et, { value: 16 / 9, children: "16 / 9" }),
|
|
@@ -22227,8 +22227,8 @@ const Pv = ({ labels: e, open: t, imageSrc: n, resetDefaultImageUrl: r, toggleMo
|
|
|
22227
22227
|
),
|
|
22228
22228
|
/* @__PURE__ */ c.jsx(ie, { mb: 1, mx: 2, children: /* @__PURE__ */ c.jsx(Jy, { value: l, min: 1, max: 3, step: 0.1, onChange: (y, C) => u(C) }) }),
|
|
22229
22229
|
/* @__PURE__ */ c.jsxs(Ip, { children: [
|
|
22230
|
-
/* @__PURE__ */ c.jsx(
|
|
22231
|
-
/* @__PURE__ */ c.jsx(
|
|
22230
|
+
/* @__PURE__ */ c.jsx(Fe, { color: "primary", onClick: v, loading: !1, children: e.crop }),
|
|
22231
|
+
/* @__PURE__ */ c.jsx(Fe, { color: "primary", variant: "outlined", onClick: x, loading: !1, children: e.reset })
|
|
22232
22232
|
] })
|
|
22233
22233
|
] })
|
|
22234
22234
|
]
|
|
@@ -22517,7 +22517,7 @@ const Pv = ({ labels: e, open: t, imageSrc: n, resetDefaultImageUrl: r, toggleMo
|
|
|
22517
22517
|
)) }) : /* @__PURE__ */ c.jsx(c.Fragment, {})
|
|
22518
22518
|
] }),
|
|
22519
22519
|
/* @__PURE__ */ c.jsx(yi, { value: 1, sx: { px: 0 }, children: /* @__PURE__ */ c.jsx(ie, { children: Object.keys(o.colors).map((m) => /* @__PURE__ */ c.jsx(ie, { mb: 2, children: /* @__PURE__ */ c.jsx(
|
|
22520
|
-
|
|
22520
|
+
pn,
|
|
22521
22521
|
{
|
|
22522
22522
|
size: "sm",
|
|
22523
22523
|
label: l.get(m),
|
|
@@ -22528,7 +22528,7 @@ const Pv = ({ labels: e, open: t, imageSrc: n, resetDefaultImageUrl: r, toggleMo
|
|
|
22528
22528
|
}
|
|
22529
22529
|
) }, `branding-color-${m}`)) }) }),
|
|
22530
22530
|
/* @__PURE__ */ c.jsx(yi, { value: 2, sx: { px: 0 }, children: /* @__PURE__ */ c.jsx(ie, { children: Object.keys(o.urls).map((m) => /* @__PURE__ */ c.jsx(ie, { mb: 2, children: /* @__PURE__ */ c.jsx(
|
|
22531
|
-
|
|
22531
|
+
pn,
|
|
22532
22532
|
{
|
|
22533
22533
|
size: "sm",
|
|
22534
22534
|
label: u.get(m),
|
|
@@ -22545,7 +22545,7 @@ const Pv = ({ labels: e, open: t, imageSrc: n, resetDefaultImageUrl: r, toggleMo
|
|
|
22545
22545
|
const t = () => E(void 0, null, function* () {
|
|
22546
22546
|
yield zo(e.environment).signOut();
|
|
22547
22547
|
});
|
|
22548
|
-
return /* @__PURE__ */ c.jsx(
|
|
22548
|
+
return /* @__PURE__ */ c.jsx(Fe, { variant: "outlined", color: "danger", onClick: t, children: e.signOutLabel });
|
|
22549
22549
|
}, gR = ({
|
|
22550
22550
|
createLabel: e,
|
|
22551
22551
|
createFromTemplateLabel: t,
|
|
@@ -22565,9 +22565,9 @@ const Pv = ({ labels: e, open: t, imageSrc: n, resetDefaultImageUrl: r, toggleMo
|
|
|
22565
22565
|
}),
|
|
22566
22566
|
children: [
|
|
22567
22567
|
t ? /* @__PURE__ */ c.jsxs(Ea, { direction: "row", alignItems: "center", spacing: 2, children: [
|
|
22568
|
-
/* @__PURE__ */ c.jsx(
|
|
22569
|
-
/* @__PURE__ */ c.jsx(
|
|
22570
|
-
] }) : /* @__PURE__ */ c.jsx(
|
|
22568
|
+
/* @__PURE__ */ c.jsx(Fe, { startDecorator: /* @__PURE__ */ c.jsx(Nl, {}), variant: "solid", color: "primary", onClick: i, children: e }),
|
|
22569
|
+
/* @__PURE__ */ c.jsx(Fe, { startDecorator: /* @__PURE__ */ c.jsx(Nl, {}), variant: "outlined", color: "primary", onClick: o, children: t })
|
|
22570
|
+
] }) : /* @__PURE__ */ c.jsx(Fe, { startDecorator: /* @__PURE__ */ c.jsx(Nl, {}), variant: "solid", color: "primary", onClick: i, children: e }),
|
|
22571
22571
|
n ? /* @__PURE__ */ c.jsx(Rv, { signOutLabel: n, environment: r }) : /* @__PURE__ */ c.jsx(c.Fragment, {})
|
|
22572
22572
|
]
|
|
22573
22573
|
}
|
|
@@ -23044,7 +23044,7 @@ function CR(e, t) {
|
|
|
23044
23044
|
config: Bt(Bt({}, xi), yt.defaultConfig),
|
|
23045
23045
|
l10n: Eo
|
|
23046
23046
|
};
|
|
23047
|
-
n.parseDate = Mc({ config: n.config, l10n: n.l10n }), n._handlers = [], n.pluginElements = [], n.loadedPlugins = [], n._bind = g, n._setHoursFromDate = h, n._positionCalendar = Ce, n.changeMonth = D, n.changeYear = oe, n.clear = R, n.close = F, n.onMouseOver = ke, n._createElement = Ne, n.createDay = I, n.destroy = V, n.isEnabled = J, n.jumpToDate = w, n.updateValue =
|
|
23047
|
+
n.parseDate = Mc({ config: n.config, l10n: n.l10n }), n._handlers = [], n.pluginElements = [], n.loadedPlugins = [], n._bind = g, n._setHoursFromDate = h, n._positionCalendar = Ce, n.changeMonth = D, n.changeYear = oe, n.clear = R, n.close = F, n.onMouseOver = ke, n._createElement = Ne, n.createDay = I, n.destroy = V, n.isEnabled = J, n.jumpToDate = w, n.updateValue = xn, n.open = Pt, n.redraw = Le, n.set = Gt, n.setDate = en, n.toggle = pl;
|
|
23048
23048
|
function r() {
|
|
23049
23049
|
n.utils = {
|
|
23050
23050
|
getDaysInMonth: function(k, L) {
|
|
@@ -23053,7 +23053,7 @@ function CR(e, t) {
|
|
|
23053
23053
|
};
|
|
23054
23054
|
}
|
|
23055
23055
|
function i() {
|
|
23056
|
-
n.element = n.input = e, n.isOpen = !1, Lt(), ge(),
|
|
23056
|
+
n.element = n.input = e, n.isOpen = !1, Lt(), ge(), En(), Jo(), r(), n.isMobile || b(), x(), (n.selectedDates.length || n.config.noCalendar) && (n.config.enableTime && h(n.config.noCalendar ? n.latestSelectedDateObj : void 0), xn(!1)), s();
|
|
23057
23057
|
var k = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
|
23058
23058
|
!n.isMobile && k && Ce(), He("onReady");
|
|
23059
23059
|
}
|
|
@@ -23080,7 +23080,7 @@ function CR(e, t) {
|
|
|
23080
23080
|
}
|
|
23081
23081
|
k !== void 0 && k.type !== "blur" && At(k);
|
|
23082
23082
|
var q = n._input.value;
|
|
23083
|
-
f(),
|
|
23083
|
+
f(), xn(), n._input.value !== q && n._debouncedChange();
|
|
23084
23084
|
}
|
|
23085
23085
|
function u(k, L) {
|
|
23086
23086
|
return k % 12 + 12 * un(L === n.l10n.amPM[1]);
|
|
@@ -23527,11 +23527,11 @@ function CR(e, t) {
|
|
|
23527
23527
|
switch (k.key) {
|
|
23528
23528
|
case n.l10n.amPM[0].charAt(0):
|
|
23529
23529
|
case n.l10n.amPM[0].charAt(0).toLowerCase():
|
|
23530
|
-
n.amPM.textContent = n.l10n.amPM[0], f(),
|
|
23530
|
+
n.amPM.textContent = n.l10n.amPM[0], f(), xn();
|
|
23531
23531
|
break;
|
|
23532
23532
|
case n.l10n.amPM[1].charAt(0):
|
|
23533
23533
|
case n.l10n.amPM[1].charAt(0).toLowerCase():
|
|
23534
|
-
n.amPM.textContent = n.l10n.amPM[1], f(),
|
|
23534
|
+
n.amPM.textContent = n.l10n.amPM[1], f(), xn();
|
|
23535
23535
|
break;
|
|
23536
23536
|
}
|
|
23537
23537
|
(G || ne(L)) && He("onKeyDown", k);
|
|
@@ -23542,16 +23542,16 @@ function CR(e, t) {
|
|
|
23542
23542
|
J(new Date(fe), !0) || (Ie = Ie || fe > re && fe < ce, fe < q && (!ue || fe > ue) ? ue = fe : fe > q && (!Ae || fe < Ae) && (Ae = fe));
|
|
23543
23543
|
var ve = Array.from(n.rContainer.querySelectorAll("*:nth-child(-n+" + n.config.showMonths + ") > ." + L));
|
|
23544
23544
|
ve.forEach(function($e) {
|
|
23545
|
-
var Mt = $e.dateObj, tt = Mt.getTime(),
|
|
23546
|
-
if (
|
|
23547
|
-
$e.classList.add("notAllowed"), ["inRange", "startRange", "endRange"].forEach(function(
|
|
23548
|
-
$e.classList.remove(
|
|
23545
|
+
var Mt = $e.dateObj, tt = Mt.getTime(), Cn = ue > 0 && tt < ue || Ae > 0 && tt > Ae;
|
|
23546
|
+
if (Cn) {
|
|
23547
|
+
$e.classList.add("notAllowed"), ["inRange", "startRange", "endRange"].forEach(function(kn) {
|
|
23548
|
+
$e.classList.remove(kn);
|
|
23549
23549
|
});
|
|
23550
23550
|
return;
|
|
23551
|
-
} else if (Ie && !
|
|
23551
|
+
} else if (Ie && !Cn)
|
|
23552
23552
|
return;
|
|
23553
|
-
["startRange", "inRange", "endRange", "notAllowed"].forEach(function(
|
|
23554
|
-
$e.classList.remove(
|
|
23553
|
+
["startRange", "inRange", "endRange", "notAllowed"].forEach(function(kn) {
|
|
23554
|
+
$e.classList.remove(kn);
|
|
23555
23555
|
}), k !== void 0 && (k.classList.add(G <= n.selectedDates[0].getTime() ? "startRange" : "endRange"), q < G && tt === q ? $e.classList.add("startRange") : q > G && tt === q && $e.classList.add("endRange"), tt >= ue && (Ae === 0 || tt <= Ae) && vR(tt, q, G) && $e.classList.add("inRange"));
|
|
23556
23556
|
});
|
|
23557
23557
|
}
|
|
@@ -23580,7 +23580,7 @@ function CR(e, t) {
|
|
|
23580
23580
|
var G = n.config["_" + k + "Date"] = n.parseDate(L, n.config.dateFormat), q = n.config["_" + (k === "min" ? "max" : "min") + "Date"];
|
|
23581
23581
|
G !== void 0 && (n[k === "min" ? "minDateHasTime" : "maxDateHasTime"] = G.getHours() > 0 || G.getMinutes() > 0 || G.getSeconds() > 0), n.selectedDates && (n.selectedDates = n.selectedDates.filter(function(re) {
|
|
23582
23582
|
return J(re);
|
|
23583
|
-
}), !n.selectedDates.length && k === "min" && h(G),
|
|
23583
|
+
}), !n.selectedDates.length && k === "min" && h(G), xn()), n.daysContainer && (Le(), G !== void 0 ? n.currentYearElement[k] = G.getFullYear().toString() : n.currentYearElement.removeAttribute(k), n.currentYearElement.disabled = !!q && G !== void 0 && q.getFullYear() === G.getFullYear());
|
|
23584
23584
|
};
|
|
23585
23585
|
}
|
|
23586
23586
|
function Lt() {
|
|
@@ -23605,14 +23605,14 @@ function CR(e, t) {
|
|
|
23605
23605
|
return n.config._enable;
|
|
23606
23606
|
},
|
|
23607
23607
|
set: function(ve) {
|
|
23608
|
-
n.config._enable =
|
|
23608
|
+
n.config._enable = or(ve);
|
|
23609
23609
|
}
|
|
23610
23610
|
}), Object.defineProperty(n.config, "disable", {
|
|
23611
23611
|
get: function() {
|
|
23612
23612
|
return n.config._disable;
|
|
23613
23613
|
},
|
|
23614
23614
|
set: function(ve) {
|
|
23615
|
-
n.config._disable =
|
|
23615
|
+
n.config._disable = or(ve);
|
|
23616
23616
|
}
|
|
23617
23617
|
});
|
|
23618
23618
|
var q = L.mode === "time";
|
|
@@ -23684,12 +23684,12 @@ function CR(e, t) {
|
|
|
23684
23684
|
if (Ut(n.calendarContainer, "arrowTop", !fe), Ut(n.calendarContainer, "arrowBottom", fe), !n.config.inline) {
|
|
23685
23685
|
var $e = window.pageXOffset + ue.left, Mt = !1, tt = !1;
|
|
23686
23686
|
Ie === "center" ? ($e -= (q - ue.width) / 2, Mt = !0) : Ie === "right" && ($e -= q - ue.width, tt = !0), Ut(n.calendarContainer, "arrowLeft", !Mt && !tt), Ut(n.calendarContainer, "arrowCenter", Mt), Ut(n.calendarContainer, "arrowRight", tt);
|
|
23687
|
-
var
|
|
23688
|
-
if (Ut(n.calendarContainer, "rightMost",
|
|
23689
|
-
if (n.calendarContainer.style.top = ve + "px", !
|
|
23687
|
+
var Cn = window.document.body.offsetWidth - (window.pageXOffset + ue.right), kn = $e + q > window.document.body.offsetWidth, Ey = Cn + q > window.document.body.offsetWidth;
|
|
23688
|
+
if (Ut(n.calendarContainer, "rightMost", kn), !n.config.static)
|
|
23689
|
+
if (n.calendarContainer.style.top = ve + "px", !kn)
|
|
23690
23690
|
n.calendarContainer.style.left = $e + "px", n.calendarContainer.style.right = "auto";
|
|
23691
23691
|
else if (!Ey)
|
|
23692
|
-
n.calendarContainer.style.left = "auto", n.calendarContainer.style.right =
|
|
23692
|
+
n.calendarContainer.style.left = "auto", n.calendarContainer.style.right = Cn + "px";
|
|
23693
23693
|
else {
|
|
23694
23694
|
var gl = Pe();
|
|
23695
23695
|
if (gl === void 0)
|
|
@@ -23744,7 +23744,7 @@ function CR(e, t) {
|
|
|
23744
23744
|
var ue = n.currentYear !== re.getFullYear();
|
|
23745
23745
|
n.currentYear = re.getFullYear(), n.currentMonth = re.getMonth(), ue && (He("onYearChange"), j()), He("onMonthChange");
|
|
23746
23746
|
}
|
|
23747
|
-
if (Qr(), S(),
|
|
23747
|
+
if (Qr(), S(), xn(), !ce && n.config.mode !== "range" && n.config.showMonths === 1 ? A(q) : n.selectedDateElem !== void 0 && n.hourElement === void 0 && n.selectedDateElem && n.selectedDateElem.focus(), n.hourElement !== void 0 && n.hourElement !== void 0 && n.hourElement.focus(), n.config.closeOnSelect) {
|
|
23748
23748
|
var Ae = n.config.mode === "single" && !n.config.enableTime, fe = n.config.mode === "range" && n.selectedDates.length === 2 && !n.config.enableTime;
|
|
23749
23749
|
(Ae || fe) && Re();
|
|
23750
23750
|
}
|
|
@@ -23774,7 +23774,7 @@ function CR(e, t) {
|
|
|
23774
23774
|
n.config[k] = L, Rt[k] !== void 0 ? Rt[k].forEach(function(q) {
|
|
23775
23775
|
return q();
|
|
23776
23776
|
}) : Fl.indexOf(k) > -1 && (n.config[k] = zl(L));
|
|
23777
|
-
n.redraw(),
|
|
23777
|
+
n.redraw(), xn(!0);
|
|
23778
23778
|
}
|
|
23779
23779
|
function zt(k, L) {
|
|
23780
23780
|
var G = [];
|
|
@@ -23812,9 +23812,9 @@ function CR(e, t) {
|
|
|
23812
23812
|
function en(k, L, G) {
|
|
23813
23813
|
if (L === void 0 && (L = !1), G === void 0 && (G = n.config.dateFormat), k !== 0 && !k || k instanceof Array && k.length === 0)
|
|
23814
23814
|
return n.clear(L);
|
|
23815
|
-
zt(k, G), n.latestSelectedDateObj = n.selectedDates[n.selectedDates.length - 1], n.redraw(), w(void 0, L), h(), n.selectedDates.length === 0 && n.clear(!1),
|
|
23815
|
+
zt(k, G), n.latestSelectedDateObj = n.selectedDates[n.selectedDates.length - 1], n.redraw(), w(void 0, L), h(), n.selectedDates.length === 0 && n.clear(!1), xn(L), L && He("onChange");
|
|
23816
23816
|
}
|
|
23817
|
-
function
|
|
23817
|
+
function or(k) {
|
|
23818
23818
|
return k.slice().map(function(L) {
|
|
23819
23819
|
return typeof L == "string" || typeof L == "number" || L instanceof Date ? n.parseDate(L, void 0, !0) : L && typeof L == "object" && L.from && L.to ? {
|
|
23820
23820
|
from: n.parseDate(L.from, void 0),
|
|
@@ -23829,7 +23829,7 @@ function CR(e, t) {
|
|
|
23829
23829
|
var k = n.config.defaultDate || ((n.input.nodeName === "INPUT" || n.input.nodeName === "TEXTAREA") && n.input.placeholder && n.input.value === n.input.placeholder ? null : n.input.value);
|
|
23830
23830
|
k && zt(k, n.config.dateFormat), n._initialDate = n.selectedDates.length > 0 ? n.selectedDates[0] : n.config.minDate && n.config.minDate.getTime() > n.now.getTime() ? n.config.minDate : n.config.maxDate && n.config.maxDate.getTime() < n.now.getTime() ? n.config.maxDate : n.now, n.currentYear = n._initialDate.getFullYear(), n.currentMonth = n._initialDate.getMonth(), n.selectedDates.length > 0 && (n.latestSelectedDateObj = n.selectedDates[0]), n.config.minTime !== void 0 && (n.config.minTime = n.parseDate(n.config.minTime, "H:i")), n.config.maxTime !== void 0 && (n.config.maxTime = n.parseDate(n.config.maxTime, "H:i")), n.minDateHasTime = !!n.config.minDate && (n.config.minDate.getHours() > 0 || n.config.minDate.getMinutes() > 0 || n.config.minDate.getSeconds() > 0), n.maxDateHasTime = !!n.config.maxDate && (n.config.maxDate.getHours() > 0 || n.config.maxDate.getMinutes() > 0 || n.config.maxDate.getSeconds() > 0);
|
|
23831
23831
|
}
|
|
23832
|
-
function
|
|
23832
|
+
function En() {
|
|
23833
23833
|
if (n.input = de(), !n.input) {
|
|
23834
23834
|
n.config.errorHandler(new Error("Invalid input element specified"));
|
|
23835
23835
|
return;
|
|
@@ -23893,7 +23893,7 @@ function CR(e, t) {
|
|
|
23893
23893
|
return n.config.mode !== "range" || n.config.enableTime || re.indexOf(G) === q;
|
|
23894
23894
|
}).join(n.config.mode !== "range" ? n.config.conjunction : n.l10n.rangeSeparator);
|
|
23895
23895
|
}
|
|
23896
|
-
function
|
|
23896
|
+
function xn(k) {
|
|
23897
23897
|
k === void 0 && (k = !0), n.mobileInput !== void 0 && n.mobileFormatStr && (n.mobileInput.value = n.latestSelectedDateObj !== void 0 ? n.formatDate(n.latestSelectedDateObj, n.mobileFormatStr) : ""), n.input.value = Wi(n.config.dateFormat), n.altInput !== void 0 && (n.altInput.value = Wi(n.config.altFormat)), k !== !1 && He("onValueUpdate");
|
|
23898
23898
|
}
|
|
23899
23899
|
function Zo(k) {
|
|
@@ -24236,7 +24236,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
24236
24236
|
var ee = U;
|
|
24237
24237
|
e.default = ee;
|
|
24238
24238
|
})(Ov);
|
|
24239
|
-
const jv = /* @__PURE__ */
|
|
24239
|
+
const jv = /* @__PURE__ */ Bn(Ov);
|
|
24240
24240
|
var $v = { exports: {} };
|
|
24241
24241
|
(function(e, t) {
|
|
24242
24242
|
(function(n, r) {
|
|
@@ -24514,7 +24514,7 @@ var $v = { exports: {} };
|
|
|
24514
24514
|
});
|
|
24515
24515
|
})($v);
|
|
24516
24516
|
var SR = $v.exports;
|
|
24517
|
-
const Ft = /* @__PURE__ */
|
|
24517
|
+
const Ft = /* @__PURE__ */ Bn(SR);
|
|
24518
24518
|
var Bv = { exports: {} };
|
|
24519
24519
|
(function(e, t) {
|
|
24520
24520
|
(function(n, r) {
|
|
@@ -24577,7 +24577,7 @@ var Bv = { exports: {} };
|
|
|
24577
24577
|
});
|
|
24578
24578
|
})(Bv);
|
|
24579
24579
|
var AR = Bv.exports;
|
|
24580
|
-
const TR = /* @__PURE__ */
|
|
24580
|
+
const TR = /* @__PURE__ */ Bn(AR);
|
|
24581
24581
|
var Nv = { exports: {} };
|
|
24582
24582
|
(function(e, t) {
|
|
24583
24583
|
(function(n, r) {
|
|
@@ -24653,7 +24653,7 @@ var Nv = { exports: {} };
|
|
|
24653
24653
|
});
|
|
24654
24654
|
})(Nv);
|
|
24655
24655
|
var ER = Nv.exports;
|
|
24656
|
-
const kR = /* @__PURE__ */
|
|
24656
|
+
const kR = /* @__PURE__ */ Bn(ER);
|
|
24657
24657
|
Ft.extend(TR);
|
|
24658
24658
|
Ft.extend(kR);
|
|
24659
24659
|
const _R = (e) => {
|
|
@@ -24722,7 +24722,7 @@ const _R = (e) => {
|
|
|
24722
24722
|
}, PR = ({ required: e, defaultValue: t, onChangeFromDate: n, onChangeToDate: r }) => {
|
|
24723
24723
|
const [i, o] = t;
|
|
24724
24724
|
return /* @__PURE__ */ c.jsxs(ie, { sx: { marginBottom: "16px" }, children: [
|
|
24725
|
-
/* @__PURE__ */ c.jsx(
|
|
24725
|
+
/* @__PURE__ */ c.jsx(Ue, { children: /* @__PURE__ */ c.jsx(Ve, { required: e, color: "primary", children: "Duration" }) }),
|
|
24726
24726
|
/* @__PURE__ */ c.jsxs(ui, { container: !0, direction: "row", justifyContent: "flex-start", alignItems: "flex-start", children: [
|
|
24727
24727
|
/* @__PURE__ */ c.jsx(To, { label: "From date", defaultValue: i, required: e, onChange: n }),
|
|
24728
24728
|
/* @__PURE__ */ c.jsx(To, { label: "To date", defaultValue: o, required: e, onChange: r })
|
|
@@ -24740,8 +24740,8 @@ const _R = (e) => {
|
|
|
24740
24740
|
} else d && d.length === 0 && (r({ from: "", to: "" }), l());
|
|
24741
24741
|
o(d);
|
|
24742
24742
|
};
|
|
24743
|
-
return /* @__PURE__ */ c.jsxs(
|
|
24744
|
-
/* @__PURE__ */ c.jsx(
|
|
24743
|
+
return /* @__PURE__ */ c.jsxs(Ue, { sx: { marginBottom: "16px" }, children: [
|
|
24744
|
+
/* @__PURE__ */ c.jsx(Ve, { required: n, color: "primary", children: e }),
|
|
24745
24745
|
/* @__PURE__ */ c.jsx(
|
|
24746
24746
|
ie,
|
|
24747
24747
|
{
|
|
@@ -24818,7 +24818,7 @@ const _R = (e) => {
|
|
|
24818
24818
|
children: /* @__PURE__ */ c.jsxs(Li, { children: [
|
|
24819
24819
|
/* @__PURE__ */ c.jsx(pe, { level: "h2", textAlign: "center", mb: 2, children: r }),
|
|
24820
24820
|
/* @__PURE__ */ c.jsx(pe, { level: "body-md", color: "neutral", mb: 2, children: i }),
|
|
24821
|
-
/* @__PURE__ */ c.jsx(ie, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ c.jsx(
|
|
24821
|
+
/* @__PURE__ */ c.jsx(ie, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ c.jsx(Fe, { variant: "solid", color: "neutral", fullWidth: !0, size: "sm", onClick: a, children: o }) })
|
|
24822
24822
|
] })
|
|
24823
24823
|
}
|
|
24824
24824
|
)
|
|
@@ -24842,7 +24842,7 @@ const _R = (e) => {
|
|
|
24842
24842
|
return /* @__PURE__ */ c.jsxs(ie, { children: [
|
|
24843
24843
|
i.map((C, b) => /* @__PURE__ */ c.jsx(ln, { style: { marginBottom: "10px", display: "flex", padding: "10px" }, children: /* @__PURE__ */ c.jsx(Li, { style: { flex: 1 }, children: a === b ? /* @__PURE__ */ c.jsxs(ie, { display: "flex", alignItems: "center", children: [
|
|
24844
24844
|
/* @__PURE__ */ c.jsx(
|
|
24845
|
-
|
|
24845
|
+
dr,
|
|
24846
24846
|
{
|
|
24847
24847
|
size: "md",
|
|
24848
24848
|
variant: "outlined",
|
|
@@ -24857,7 +24857,7 @@ const _R = (e) => {
|
|
|
24857
24857
|
}
|
|
24858
24858
|
),
|
|
24859
24859
|
/* @__PURE__ */ c.jsx(
|
|
24860
|
-
|
|
24860
|
+
dr,
|
|
24861
24861
|
{
|
|
24862
24862
|
size: "md",
|
|
24863
24863
|
variant: "outlined",
|
|
@@ -24892,7 +24892,7 @@ const _R = (e) => {
|
|
|
24892
24892
|
] }) }) }, `dynamic-fields-${t}-${b}`)),
|
|
24893
24893
|
/* @__PURE__ */ c.jsxs(ie, { display: "flex", alignItems: "center", style: { marginTop: i && i.length ? "20px" : "0px" }, children: [
|
|
24894
24894
|
/* @__PURE__ */ c.jsx(
|
|
24895
|
-
|
|
24895
|
+
dr,
|
|
24896
24896
|
{
|
|
24897
24897
|
size: "md",
|
|
24898
24898
|
variant: "outlined",
|
|
@@ -24908,7 +24908,7 @@ const _R = (e) => {
|
|
|
24908
24908
|
}
|
|
24909
24909
|
),
|
|
24910
24910
|
/* @__PURE__ */ c.jsx(
|
|
24911
|
-
|
|
24911
|
+
dr,
|
|
24912
24912
|
{
|
|
24913
24913
|
size: "md",
|
|
24914
24914
|
variant: "outlined",
|
|
@@ -24923,7 +24923,7 @@ const _R = (e) => {
|
|
|
24923
24923
|
}
|
|
24924
24924
|
}
|
|
24925
24925
|
),
|
|
24926
|
-
/* @__PURE__ */ c.jsx(_e, { title: e.add, children: l && h ? /* @__PURE__ */ c.jsx(
|
|
24926
|
+
/* @__PURE__ */ c.jsx(_e, { title: e.add, children: l && h ? /* @__PURE__ */ c.jsx(Fe, { onClick: v, children: /* @__PURE__ */ c.jsx(sc, {}) }) : /* @__PURE__ */ c.jsx("span", { children: /* @__PURE__ */ c.jsx(Fe, { disabled: !0, children: /* @__PURE__ */ c.jsx(sc, {}) }) }) })
|
|
24927
24927
|
] })
|
|
24928
24928
|
] });
|
|
24929
24929
|
};
|
|
@@ -25075,10 +25075,10 @@ function WR() {
|
|
|
25075
25075
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
25076
25076
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
25077
25077
|
}
|
|
25078
|
-
function
|
|
25078
|
+
function Qn(e, t) {
|
|
25079
25079
|
return VR(e) || HR(e, t) || zv(e, t) || WR();
|
|
25080
25080
|
}
|
|
25081
|
-
function
|
|
25081
|
+
function Nn(e, t) {
|
|
25082
25082
|
if (e == null) return {};
|
|
25083
25083
|
var n, r, i = De(e, t);
|
|
25084
25084
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -25116,7 +25116,7 @@ var qa = function(t) {
|
|
|
25116
25116
|
return iO(t) ? t.filter(Boolean) : zr(t) === "object" && t !== null ? [t] : [];
|
|
25117
25117
|
}, Uv = function(t) {
|
|
25118
25118
|
t.className, t.clearValue, t.cx, t.getStyles, t.getClassNames, t.getValue, t.hasValue, t.isMulti, t.isRtl, t.options, t.selectOption, t.selectProps, t.setValue, t.theme;
|
|
25119
|
-
var n =
|
|
25119
|
+
var n = Nn(t, YR);
|
|
25120
25120
|
return be({}, n);
|
|
25121
25121
|
}, st = function(t, n, r) {
|
|
25122
25122
|
var i = t.cx, o = t.getStyles, a = t.getClassNames, s = t.className;
|
|
@@ -25210,11 +25210,11 @@ var oO = function(t) {
|
|
|
25210
25210
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++)
|
|
25211
25211
|
r[i - 1] = arguments[i];
|
|
25212
25212
|
var o = Object.entries(t).filter(function(a) {
|
|
25213
|
-
var s =
|
|
25213
|
+
var s = Qn(a, 1), l = s[0];
|
|
25214
25214
|
return !r.includes(l);
|
|
25215
25215
|
});
|
|
25216
25216
|
return o.reduce(function(a, s) {
|
|
25217
|
-
var l =
|
|
25217
|
+
var l = Qn(s, 2), u = l[0], d = l[1];
|
|
25218
25218
|
return a[u] = d, a;
|
|
25219
25219
|
}, {});
|
|
25220
25220
|
}, aO = ["children", "innerProps"], sO = ["children", "innerProps"];
|
|
@@ -25306,8 +25306,8 @@ var Wv = function(t) {
|
|
|
25306
25306
|
marginBottom: s.menuGutter,
|
|
25307
25307
|
marginTop: s.menuGutter
|
|
25308
25308
|
});
|
|
25309
|
-
}, Gv = /* @__PURE__ */
|
|
25310
|
-
var n = t.children, r = t.minMenuHeight, i = t.maxMenuHeight, o = t.menuPlacement, a = t.menuPosition, s = t.menuShouldScrollIntoView, l = t.theme, u = Ht(Gv) || {}, d = u.setPortalPlacement, f = Te(null), h = Y(i), p =
|
|
25309
|
+
}, Gv = /* @__PURE__ */ $n(null), dO = function(t) {
|
|
25310
|
+
var n = t.children, r = t.minMenuHeight, i = t.maxMenuHeight, o = t.menuPlacement, a = t.menuPosition, s = t.menuShouldScrollIntoView, l = t.theme, u = Ht(Gv) || {}, d = u.setPortalPlacement, f = Te(null), h = Y(i), p = Qn(h, 2), m = p[0], g = p[1], v = Y(null), x = Qn(v, 2), w = x[0], y = x[1], C = l.spacing.controlHeight;
|
|
25311
25311
|
return Nc(function() {
|
|
25312
25312
|
var b = f.current;
|
|
25313
25313
|
if (b) {
|
|
@@ -25365,7 +25365,7 @@ var Wv = function(t) {
|
|
|
25365
25365
|
padding: "".concat(i * 2, "px ").concat(i * 3, "px")
|
|
25366
25366
|
});
|
|
25367
25367
|
}, mO = Yv, vO = Yv, bO = function(t) {
|
|
25368
|
-
var n = t.children, r = n === void 0 ? "No options" : n, i = t.innerProps, o =
|
|
25368
|
+
var n = t.children, r = n === void 0 ? "No options" : n, i = t.innerProps, o = Nn(t, aO);
|
|
25369
25369
|
return ye("div", _({}, st(be(be({}, o), {}, {
|
|
25370
25370
|
children: r,
|
|
25371
25371
|
innerProps: i
|
|
@@ -25374,7 +25374,7 @@ var Wv = function(t) {
|
|
|
25374
25374
|
"menu-notice--no-options": !0
|
|
25375
25375
|
}), i), r);
|
|
25376
25376
|
}, yO = function(t) {
|
|
25377
|
-
var n = t.children, r = n === void 0 ? "Loading..." : n, i = t.innerProps, o =
|
|
25377
|
+
var n = t.children, r = n === void 0 ? "Loading..." : n, i = t.innerProps, o = Nn(t, sO);
|
|
25378
25378
|
return ye("div", _({}, st(be(be({}, o), {}, {
|
|
25379
25379
|
children: r,
|
|
25380
25380
|
innerProps: i
|
|
@@ -25392,11 +25392,11 @@ var Wv = function(t) {
|
|
|
25392
25392
|
zIndex: 1
|
|
25393
25393
|
};
|
|
25394
25394
|
}, CO = function(t) {
|
|
25395
|
-
var n = t.appendTo, r = t.children, i = t.controlElement, o = t.innerProps, a = t.menuPlacement, s = t.menuPosition, l = Te(null), u = Te(null), d = Y(Wv(a)), f =
|
|
25395
|
+
var n = t.appendTo, r = t.children, i = t.controlElement, o = t.innerProps, a = t.menuPlacement, s = t.menuPosition, l = Te(null), u = Te(null), d = Y(Wv(a)), f = Qn(d, 2), h = f[0], p = f[1], m = Se(function() {
|
|
25396
25396
|
return {
|
|
25397
25397
|
setPortalPlacement: p
|
|
25398
25398
|
};
|
|
25399
|
-
}, []), g = Y(null), v =
|
|
25399
|
+
}, []), g = Y(null), v = Qn(g, 2), x = v[0], w = v[1], y = Be(function() {
|
|
25400
25400
|
if (i) {
|
|
25401
25401
|
var A = ZR(i), T = s === "fixed" ? 0 : window.pageYOffset, $ = A[h] + T;
|
|
25402
25402
|
($ !== (x == null ? void 0 : x.offset) || A.left !== (x == null ? void 0 : x.rect.left) || A.width !== (x == null ? void 0 : x.rect.width)) && w({
|
|
@@ -25483,7 +25483,7 @@ var Wv = function(t) {
|
|
|
25483
25483
|
name: "8mmkcg",
|
|
25484
25484
|
styles: "display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"
|
|
25485
25485
|
}, Kv = function(t) {
|
|
25486
|
-
var n = t.size, r =
|
|
25486
|
+
var n = t.size, r = Nn(t, kO);
|
|
25487
25487
|
return ye("svg", _({
|
|
25488
25488
|
height: n,
|
|
25489
25489
|
width: n,
|
|
@@ -25579,7 +25579,7 @@ var Wv = function(t) {
|
|
|
25579
25579
|
}, "", "")
|
|
25580
25580
|
});
|
|
25581
25581
|
}, NO = function(t) {
|
|
25582
|
-
var n = t.innerProps, r = t.isRtl, i = t.size, o = i === void 0 ? 4 : i, a =
|
|
25582
|
+
var n = t.innerProps, r = t.isRtl, i = t.size, o = i === void 0 ? 4 : i, a = Nn(t, _O);
|
|
25583
25583
|
return ye("div", _({}, st(be(be({}, a), {}, {
|
|
25584
25584
|
innerProps: n,
|
|
25585
25585
|
isRtl: r,
|
|
@@ -25668,7 +25668,7 @@ var Wv = function(t) {
|
|
|
25668
25668
|
}, YO = function(t) {
|
|
25669
25669
|
var n = Uv(t);
|
|
25670
25670
|
n.data;
|
|
25671
|
-
var r =
|
|
25671
|
+
var r = Nn(n, VO);
|
|
25672
25672
|
return ye("div", _({}, st(t, "groupHeading", {
|
|
25673
25673
|
"group-heading": !0
|
|
25674
25674
|
}), r));
|
|
@@ -25712,7 +25712,7 @@ var Wv = function(t) {
|
|
|
25712
25712
|
width: "100%"
|
|
25713
25713
|
}, Jv);
|
|
25714
25714
|
}, ZO = function(t) {
|
|
25715
|
-
var n = t.cx, r = t.value, i = Uv(t), o = i.innerRef, a = i.isDisabled, s = i.isHidden, l = i.inputClassName, u =
|
|
25715
|
+
var n = t.cx, r = t.value, i = Uv(t), o = i.innerRef, a = i.isDisabled, s = i.isHidden, l = i.inputClassName, u = Nn(i, QO);
|
|
25716
25716
|
return ye("div", _({}, st(t, "input", {
|
|
25717
25717
|
"input-container": !0
|
|
25718
25718
|
}), {
|
|
@@ -26338,7 +26338,7 @@ var eb = function(t) {
|
|
|
26338
26338
|
};
|
|
26339
26339
|
}, RL = ["innerRef"];
|
|
26340
26340
|
function OL(e) {
|
|
26341
|
-
var t = e.innerRef, n =
|
|
26341
|
+
var t = e.innerRef, n = Nn(e, RL), r = oO(n, "onExited", "in", "enter", "exit", "appear");
|
|
26342
26342
|
return ye("input", _({
|
|
26343
26343
|
ref: t
|
|
26344
26344
|
}, r, {
|
|
@@ -27643,7 +27643,7 @@ var ub = function(t) {
|
|
|
27643
27643
|
db.defaultProps = tM;
|
|
27644
27644
|
var aM = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
27645
27645
|
function sM(e) {
|
|
27646
|
-
var t = e.defaultInputValue, n = t === void 0 ? "" : t, r = e.defaultMenuIsOpen, i = r === void 0 ? !1 : r, o = e.defaultValue, a = o === void 0 ? null : o, s = e.inputValue, l = e.menuIsOpen, u = e.onChange, d = e.onInputChange, f = e.onMenuClose, h = e.onMenuOpen, p = e.value, m =
|
|
27646
|
+
var t = e.defaultInputValue, n = t === void 0 ? "" : t, r = e.defaultMenuIsOpen, i = r === void 0 ? !1 : r, o = e.defaultValue, a = o === void 0 ? null : o, s = e.inputValue, l = e.menuIsOpen, u = e.onChange, d = e.onInputChange, f = e.onMenuClose, h = e.onMenuOpen, p = e.value, m = Nn(e, aM), g = Y(s !== void 0 ? s : n), v = Qn(g, 2), x = v[0], w = v[1], y = Y(l !== void 0 ? l : i), C = Qn(y, 2), b = C[0], I = C[1], A = Y(p !== void 0 ? p : a), T = Qn(A, 2), $ = T[0], W = T[1], P = Be(function(U, K) {
|
|
27647
27647
|
typeof u == "function" && u(U, K), W(U);
|
|
27648
27648
|
}, [u]), S = Be(function(U, K) {
|
|
27649
27649
|
var ee;
|
|
@@ -27686,7 +27686,7 @@ var lM = ["allowCreateWhileLoading", "createOptionPosition", "formatCreateLabel"
|
|
|
27686
27686
|
}
|
|
27687
27687
|
};
|
|
27688
27688
|
function cM(e) {
|
|
27689
|
-
var t = e.allowCreateWhileLoading, n = t === void 0 ? !1 : t, r = e.createOptionPosition, i = r === void 0 ? "last" : r, o = e.formatCreateLabel, a = o === void 0 ? Xl.formatCreateLabel : o, s = e.isValidNewOption, l = s === void 0 ? Xl.isValidNewOption : s, u = e.getNewOptionData, d = u === void 0 ? Xl.getNewOptionData : u, f = e.onCreateOption, h = e.options, p = h === void 0 ? [] : h, m = e.onChange, g =
|
|
27689
|
+
var t = e.allowCreateWhileLoading, n = t === void 0 ? !1 : t, r = e.createOptionPosition, i = r === void 0 ? "last" : r, o = e.formatCreateLabel, a = o === void 0 ? Xl.formatCreateLabel : o, s = e.isValidNewOption, l = s === void 0 ? Xl.isValidNewOption : s, u = e.getNewOptionData, d = u === void 0 ? Xl.getNewOptionData : u, f = e.onCreateOption, h = e.options, p = h === void 0 ? [] : h, m = e.onChange, g = Nn(e, lM), v = g.getOptionValue, x = v === void 0 ? rb : v, w = g.getOptionLabel, y = w === void 0 ? nb : w, C = g.inputValue, b = g.isLoading, I = g.isMulti, A = g.value, T = g.name, $ = Se(function() {
|
|
27690
27690
|
return l(C, qa(A), p, {
|
|
27691
27691
|
getOptionValue: x,
|
|
27692
27692
|
getOptionLabel: y
|
|
@@ -27953,7 +27953,7 @@ const dM = {
|
|
|
27953
27953
|
) : /* @__PURE__ */ c.jsx(c.Fragment, {})
|
|
27954
27954
|
] }),
|
|
27955
27955
|
/* @__PURE__ */ c.jsx(_e, { title: e.labels.copyUrl, children: /* @__PURE__ */ c.jsx(
|
|
27956
|
-
|
|
27956
|
+
Fe,
|
|
27957
27957
|
{
|
|
27958
27958
|
onClick: () => T(e.image),
|
|
27959
27959
|
disabled: !e.image,
|
|
@@ -27964,7 +27964,7 @@ const dM = {
|
|
|
27964
27964
|
}
|
|
27965
27965
|
) }),
|
|
27966
27966
|
/* @__PURE__ */ c.jsx(_e, { title: e.labels.viewImage, children: /* @__PURE__ */ c.jsx(
|
|
27967
|
-
|
|
27967
|
+
Fe,
|
|
27968
27968
|
{
|
|
27969
27969
|
onClick: b,
|
|
27970
27970
|
disabled: !e.image,
|
|
@@ -27975,7 +27975,7 @@ const dM = {
|
|
|
27975
27975
|
}
|
|
27976
27976
|
) }),
|
|
27977
27977
|
/* @__PURE__ */ c.jsx(_e, { title: e.labels.cropImage, children: /* @__PURE__ */ c.jsx(
|
|
27978
|
-
|
|
27978
|
+
Fe,
|
|
27979
27979
|
{
|
|
27980
27980
|
onClick: I,
|
|
27981
27981
|
disabled: !e.image,
|
|
@@ -27986,7 +27986,7 @@ const dM = {
|
|
|
27986
27986
|
}
|
|
27987
27987
|
) })
|
|
27988
27988
|
] }),
|
|
27989
|
-
/* @__PURE__ */ c.jsx(Li, { orientation: "horizontal", sx: { justifyContent: "space-between" }, children: /* @__PURE__ */ c.jsxs(
|
|
27989
|
+
/* @__PURE__ */ c.jsx(Li, { orientation: "horizontal", sx: { justifyContent: "space-between" }, children: /* @__PURE__ */ c.jsxs(Fe, { sx: { width: "100%" }, onClick: v, children: [
|
|
27990
27990
|
/* @__PURE__ */ c.jsx(Op, {}),
|
|
27991
27991
|
" ",
|
|
27992
27992
|
e.labels.uploadImage,
|
|
@@ -28111,7 +28111,7 @@ const yM = ["className", "color", "component", "variant", "invertedColors", "slo
|
|
|
28111
28111
|
slotProps: d
|
|
28112
28112
|
}), [g, v] = Ee("root", {
|
|
28113
28113
|
ref: n,
|
|
28114
|
-
className:
|
|
28114
|
+
className: Xn(p.root, i),
|
|
28115
28115
|
elementType: CM,
|
|
28116
28116
|
externalForwardedProps: m,
|
|
28117
28117
|
ownerState: h
|
|
@@ -28370,7 +28370,7 @@ const kh = dt("MuiFormControl", ["root", "error", "disabled", "colorPrimary", "c
|
|
|
28370
28370
|
let C;
|
|
28371
28371
|
const b = LM(y), [I, A] = Ee("root", {
|
|
28372
28372
|
ref: n,
|
|
28373
|
-
className:
|
|
28373
|
+
className: Xn(b.root, o),
|
|
28374
28374
|
elementType: MM,
|
|
28375
28375
|
externalForwardedProps: _({}, g, {
|
|
28376
28376
|
component: a,
|
|
@@ -28891,14 +28891,14 @@ const Ii = dt("MuiCheckbox", ["root", "checkbox", "action", "input", "label", "c
|
|
|
28891
28891
|
}, n2 = ({ labels: e, values: t, valuesMap: n, onChange: r }) => {
|
|
28892
28892
|
const [i, o] = Y(!1);
|
|
28893
28893
|
return /* @__PURE__ */ c.jsxs(
|
|
28894
|
-
|
|
28894
|
+
Ue,
|
|
28895
28895
|
{
|
|
28896
28896
|
sx: () => ({
|
|
28897
28897
|
marginBottom: "16px"
|
|
28898
28898
|
}),
|
|
28899
28899
|
children: [
|
|
28900
|
-
/* @__PURE__ */ c.jsx(
|
|
28901
|
-
/* @__PURE__ */ c.jsx(
|
|
28900
|
+
/* @__PURE__ */ c.jsx(Ve, { color: "primary", children: e.marketSelection }),
|
|
28901
|
+
/* @__PURE__ */ c.jsx(mr, { sx: { mb: 2 }, children: e.marketSelectionDescription }),
|
|
28902
28902
|
/* @__PURE__ */ c.jsx(
|
|
28903
28903
|
Dr,
|
|
28904
28904
|
{
|
|
@@ -28983,13 +28983,13 @@ const Ii = dt("MuiCheckbox", ["root", "checkbox", "action", "input", "label", "c
|
|
|
28983
28983
|
l();
|
|
28984
28984
|
}, []), /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
28985
28985
|
r.length > 0 ? /* @__PURE__ */ c.jsxs(
|
|
28986
|
-
|
|
28986
|
+
Ue,
|
|
28987
28987
|
{
|
|
28988
28988
|
sx: () => ({
|
|
28989
28989
|
marginBottom: "16px"
|
|
28990
28990
|
}),
|
|
28991
28991
|
children: [
|
|
28992
|
-
/* @__PURE__ */ c.jsx(
|
|
28992
|
+
/* @__PURE__ */ c.jsx(Ve, { color: "primary", children: e.label }),
|
|
28993
28993
|
/* @__PURE__ */ c.jsx(
|
|
28994
28994
|
Ot,
|
|
28995
28995
|
{
|
|
@@ -29053,13 +29053,13 @@ const Ii = dt("MuiCheckbox", ["root", "checkbox", "action", "input", "label", "c
|
|
|
29053
29053
|
l();
|
|
29054
29054
|
}, []), /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
29055
29055
|
r.length > 0 ? /* @__PURE__ */ c.jsxs(
|
|
29056
|
-
|
|
29056
|
+
Ue,
|
|
29057
29057
|
{
|
|
29058
29058
|
sx: () => ({
|
|
29059
29059
|
marginBottom: "16px"
|
|
29060
29060
|
}),
|
|
29061
29061
|
children: [
|
|
29062
|
-
/* @__PURE__ */ c.jsx(
|
|
29062
|
+
/* @__PURE__ */ c.jsx(Ve, { color: "primary", children: e.label }),
|
|
29063
29063
|
/* @__PURE__ */ c.jsx(
|
|
29064
29064
|
Ot,
|
|
29065
29065
|
{
|
|
@@ -29151,7 +29151,7 @@ const Ii = dt("MuiCheckbox", ["root", "checkbox", "action", "input", "label", "c
|
|
|
29151
29151
|
height: "100%",
|
|
29152
29152
|
my: e
|
|
29153
29153
|
},
|
|
29154
|
-
children: /* @__PURE__ */ c.jsx(
|
|
29154
|
+
children: /* @__PURE__ */ c.jsx(An, { variant: "solid", color: "neutral" })
|
|
29155
29155
|
}
|
|
29156
29156
|
), l2 = ["PENDING", "LIVE", "SETTLED"], c2 = ["OPEN"], u2 = ["ACTIVE", "INACTIVE", "EXPIRED"], d2 = (/* @__PURE__ */ new Map()).set("PENDING", "Pending").set("LIVE", "Live").set("SETTLED", "Settled").set("CANCELED", "Canceled").set("OPEN", "Open").set("ACTIVE", "Active").set("INACTIVE", "Inactive").set("PENDING", "Pending").set("EXPIRED", "Expired"), Dh = (e) => {
|
|
29157
29157
|
let t = [];
|
|
@@ -29190,9 +29190,9 @@ const h2 = qe(/* @__PURE__ */ c.jsx("path", {
|
|
|
29190
29190
|
"?"
|
|
29191
29191
|
] }) }),
|
|
29192
29192
|
/* @__PURE__ */ c.jsxs(Ip, { children: [
|
|
29193
|
-
/* @__PURE__ */ c.jsx(
|
|
29193
|
+
/* @__PURE__ */ c.jsx(Fe, { loading: t, variant: "solid", color: "danger", onClick: (o) => i(o), children: e.labels.delete }),
|
|
29194
29194
|
/* @__PURE__ */ c.jsx(
|
|
29195
|
-
|
|
29195
|
+
Fe,
|
|
29196
29196
|
{
|
|
29197
29197
|
variant: "plain",
|
|
29198
29198
|
color: "neutral",
|
|
@@ -29248,8 +29248,8 @@ const h2 = qe(/* @__PURE__ */ c.jsx("path", {
|
|
|
29248
29248
|
width: "100%"
|
|
29249
29249
|
},
|
|
29250
29250
|
children: [
|
|
29251
|
-
/* @__PURE__ */ c.jsxs(
|
|
29252
|
-
/* @__PURE__ */ c.jsx(
|
|
29251
|
+
/* @__PURE__ */ c.jsxs(Ue, { sx: { mr: { xl: 1 }, width: "100%", mb: { xs: 1, xl: 0 } }, children: [
|
|
29252
|
+
/* @__PURE__ */ c.jsx(Ve, { required: !0, color: "primary", children: e.labels.changeStatusTo }),
|
|
29253
29253
|
/* @__PURE__ */ c.jsx(
|
|
29254
29254
|
Ot,
|
|
29255
29255
|
{
|
|
@@ -29262,11 +29262,11 @@ const h2 = qe(/* @__PURE__ */ c.jsx("path", {
|
|
|
29262
29262
|
}
|
|
29263
29263
|
)
|
|
29264
29264
|
] }),
|
|
29265
|
-
/* @__PURE__ */ c.jsxs(
|
|
29266
|
-
/* @__PURE__ */ c.jsx(
|
|
29265
|
+
/* @__PURE__ */ c.jsxs(Ue, { sx: { mr: { xl: 1 }, width: "100%", mb: { xs: 1, xl: 0 } }, children: [
|
|
29266
|
+
/* @__PURE__ */ c.jsx(Ve, { required: !0, color: "primary", children: e.labels.at }),
|
|
29267
29267
|
/* @__PURE__ */ c.jsx(jc, { defaultDate: s, onChange: (K) => l(K) })
|
|
29268
29268
|
] }),
|
|
29269
|
-
r && s ? /* @__PURE__ */ c.jsx(
|
|
29269
|
+
r && s ? /* @__PURE__ */ c.jsx(Fe, { onClick: () => z(O.id, O.name), loading: p, sx: { mt: "auto" }, children: e.labels.save }) : /* @__PURE__ */ c.jsx(Fe, { disabled: !0, sx: { mt: "auto" }, children: e.labels.save })
|
|
29270
29270
|
]
|
|
29271
29271
|
}
|
|
29272
29272
|
) : /* @__PURE__ */ c.jsxs(
|
|
@@ -29321,15 +29321,15 @@ const h2 = qe(/* @__PURE__ */ c.jsx("path", {
|
|
|
29321
29321
|
mt: T && T.length ? 2 : 0
|
|
29322
29322
|
},
|
|
29323
29323
|
children: [
|
|
29324
|
-
/* @__PURE__ */ c.jsxs(
|
|
29325
|
-
/* @__PURE__ */ c.jsx(
|
|
29324
|
+
/* @__PURE__ */ c.jsxs(Ue, { sx: { mr: { xl: 1 }, width: "100%", mb: { xs: 1, xl: 0 } }, children: [
|
|
29325
|
+
/* @__PURE__ */ c.jsx(Ve, { required: !0, color: "primary", children: e.labels.changeStatusTo }),
|
|
29326
29326
|
/* @__PURE__ */ c.jsx(Ot, { value: o, size: "sm", name: "status", onChange: (O, U) => a(U), sx: { minHeight: "37px" }, children: /* @__PURE__ */ c.jsx(Dh, { entityType: e.entityType }) })
|
|
29327
29327
|
] }),
|
|
29328
|
-
/* @__PURE__ */ c.jsxs(
|
|
29329
|
-
/* @__PURE__ */ c.jsx(
|
|
29328
|
+
/* @__PURE__ */ c.jsxs(Ue, { sx: { mr: { xl: 1 }, width: "100%", mb: { xs: 1, xl: 0 } }, children: [
|
|
29329
|
+
/* @__PURE__ */ c.jsx(Ve, { required: !0, color: "primary", children: e.labels.at }),
|
|
29330
29330
|
/* @__PURE__ */ c.jsx(jc, { defaultDate: u, onChange: (O) => d(O) })
|
|
29331
29331
|
] }),
|
|
29332
|
-
o && u ? /* @__PURE__ */ c.jsx(
|
|
29332
|
+
o && u ? /* @__PURE__ */ c.jsx(Fe, { onClick: j, loading: f, sx: { mt: "auto" }, children: e.labels.create }) : /* @__PURE__ */ c.jsx(Fe, { disabled: !0, sx: { mt: "auto" }, children: e.labels.create })
|
|
29333
29333
|
]
|
|
29334
29334
|
}
|
|
29335
29335
|
),
|
|
@@ -29469,7 +29469,7 @@ const v2 = ["children", "action", "component", "color", "disabled", "variant", "
|
|
|
29469
29469
|
size: p = "md",
|
|
29470
29470
|
slots: m = {},
|
|
29471
29471
|
slotProps: g = {}
|
|
29472
|
-
} = i, v = De(i, v2), x = H.useContext(fv), w = H.useContext(hv), y = t.variant || x.variant || d, C = t.size || x.size || p, b = t.color || x.color || l, I = (r = t.loading || t.disabled) != null ? r : x.disabled || f || u, A = H.useRef(null), T =
|
|
29472
|
+
} = i, v = De(i, v2), x = H.useContext(fv), w = H.useContext(hv), y = t.variant || x.variant || d, C = t.size || x.size || p, b = t.color || x.color || l, I = (r = t.loading || t.disabled) != null ? r : x.disabled || f || u, A = H.useRef(null), T = Tn(A, n), {
|
|
29473
29473
|
focusVisible: $,
|
|
29474
29474
|
setFocusVisible: W,
|
|
29475
29475
|
getRootProps: P
|
|
@@ -29550,8 +29550,8 @@ const gb = qe(/* @__PURE__ */ c.jsx("path", {
|
|
|
29550
29550
|
const a = Me.useRef(null), s = (l, u) => {
|
|
29551
29551
|
i(u);
|
|
29552
29552
|
};
|
|
29553
|
-
return /* @__PURE__ */ c.jsxs(
|
|
29554
|
-
/* @__PURE__ */ c.jsx(
|
|
29553
|
+
return /* @__PURE__ */ c.jsxs(Ue, { sx: { mb: 1 }, children: [
|
|
29554
|
+
/* @__PURE__ */ c.jsx(Ve, { required: r, color: "primary", children: e }),
|
|
29555
29555
|
/* @__PURE__ */ c.jsx(
|
|
29556
29556
|
Ot,
|
|
29557
29557
|
Q(B({
|
|
@@ -29706,7 +29706,7 @@ function yj(e, t, n) {
|
|
|
29706
29706
|
return b.cancel = y, b.flush = C, b;
|
|
29707
29707
|
}
|
|
29708
29708
|
var xj = yj;
|
|
29709
|
-
const Er = /* @__PURE__ */
|
|
29709
|
+
const Er = /* @__PURE__ */ Bn(xj), jn = ({ option: e }) => /* @__PURE__ */ c.jsxs(ie, { display: "flex", alignItems: "center", mr: 1, children: [
|
|
29710
29710
|
/* @__PURE__ */ c.jsx(Nt, { sx: { width: "1.5rem", height: " 1.5rem", mr: 0.5, borderRadius: "0.75rem" }, src: e.logo }),
|
|
29711
29711
|
/* @__PURE__ */ c.jsx(pe, { children: e.label }),
|
|
29712
29712
|
/* @__PURE__ */ c.jsx(pe, { ml: 0.5, level: "body-xs", children: `(${e.countryName})` })
|
|
@@ -29763,12 +29763,12 @@ const Er = /* @__PURE__ */ Fn(xj), Bn = ({ option: e }) => /* @__PURE__ */ c.jsx
|
|
|
29763
29763
|
cursor: "default"
|
|
29764
29764
|
}
|
|
29765
29765
|
},
|
|
29766
|
-
children: /* @__PURE__ */ c.jsx(
|
|
29766
|
+
children: /* @__PURE__ */ c.jsx(jn, { option: A }, `option_${A.id}`)
|
|
29767
29767
|
},
|
|
29768
29768
|
A.id
|
|
29769
29769
|
));
|
|
29770
|
-
return /* @__PURE__ */ c.jsxs(
|
|
29771
|
-
/* @__PURE__ */ c.jsx(
|
|
29770
|
+
return /* @__PURE__ */ c.jsxs(Ue, { sx: { marginBottom: "16px" }, children: [
|
|
29771
|
+
/* @__PURE__ */ c.jsx(Ve, { required: r, color: "primary", children: t }),
|
|
29772
29772
|
/* @__PURE__ */ c.jsx(ie, { children: /* @__PURE__ */ c.jsx(
|
|
29773
29773
|
Ir,
|
|
29774
29774
|
{
|
|
@@ -29780,7 +29780,7 @@ const Er = /* @__PURE__ */ Fn(xj), Bn = ({ option: e }) => /* @__PURE__ */ c.jsx
|
|
|
29780
29780
|
root: { sx: { boxShadow: "none", backgroundColor: "white", minHeight: 38 } }
|
|
29781
29781
|
},
|
|
29782
29782
|
isOptionEqualToValue: (b, I) => b.id === I.id,
|
|
29783
|
-
endDecorator: u ? /* @__PURE__ */ c.jsx(
|
|
29783
|
+
endDecorator: u ? /* @__PURE__ */ c.jsx(An, { size: "sm", sx: { bgcolor: "primary" } }) : null,
|
|
29784
29784
|
placeholder: e.competitionsSelectionPlaceholder,
|
|
29785
29785
|
options: s,
|
|
29786
29786
|
disabled: o.length === 1,
|
|
@@ -29792,7 +29792,7 @@ const Er = /* @__PURE__ */ Fn(xj), Bn = ({ option: e }) => /* @__PURE__ */ c.jsx
|
|
|
29792
29792
|
getOptionKey: (b) => b.id,
|
|
29793
29793
|
value: o,
|
|
29794
29794
|
renderTags: C,
|
|
29795
|
-
renderOption: (b, I) => /* @__PURE__ */ c.jsx(Sr, Q(B({}, b), { children: /* @__PURE__ */ c.jsx(
|
|
29795
|
+
renderOption: (b, I) => /* @__PURE__ */ c.jsx(Sr, Q(B({}, b), { children: /* @__PURE__ */ c.jsx(jn, { option: I }) }))
|
|
29796
29796
|
}
|
|
29797
29797
|
) }),
|
|
29798
29798
|
/* @__PURE__ */ c.jsx(ft, { showToast: p, message: e.searchCompetitionsErrorMessage, color: "danger", hideToast: v })
|
|
@@ -29854,7 +29854,7 @@ const Er = /* @__PURE__ */ Fn(xj), Bn = ({ option: e }) => /* @__PURE__ */ c.jsx
|
|
|
29854
29854
|
cursor: "default"
|
|
29855
29855
|
}
|
|
29856
29856
|
},
|
|
29857
|
-
children: /* @__PURE__ */ c.jsx(
|
|
29857
|
+
children: /* @__PURE__ */ c.jsx(jn, { option: I }, `option_${I.id}`)
|
|
29858
29858
|
},
|
|
29859
29859
|
I.id
|
|
29860
29860
|
));
|
|
@@ -29870,7 +29870,7 @@ const Er = /* @__PURE__ */ Fn(xj), Bn = ({ option: e }) => /* @__PURE__ */ c.jsx
|
|
|
29870
29870
|
root: { sx: { boxShadow: "none", backgroundColor: "white", minHeight: 38 } }
|
|
29871
29871
|
},
|
|
29872
29872
|
isOptionEqualToValue: (C, b) => C.id === b.id,
|
|
29873
|
-
endDecorator: l ? /* @__PURE__ */ c.jsx(
|
|
29873
|
+
endDecorator: l ? /* @__PURE__ */ c.jsx(An, { size: "sm", sx: { bgcolor: "primary" } }) : null,
|
|
29874
29874
|
placeholder: i.length > 0 ? "" : e.competitionsSelectionPlaceholder,
|
|
29875
29875
|
options: a,
|
|
29876
29876
|
filterOptions: (C) => C.filter((b) => !i.some((I) => I.value === b.value)),
|
|
@@ -29881,7 +29881,7 @@ const Er = /* @__PURE__ */ Fn(xj), Bn = ({ option: e }) => /* @__PURE__ */ c.jsx
|
|
|
29881
29881
|
getOptionKey: (C) => C.id,
|
|
29882
29882
|
value: i,
|
|
29883
29883
|
renderTags: y,
|
|
29884
|
-
renderOption: (C, b) => /* @__PURE__ */ c.jsx(Sr, Q(B({}, C), { children: /* @__PURE__ */ c.jsx(
|
|
29884
|
+
renderOption: (C, b) => /* @__PURE__ */ c.jsx(Sr, Q(B({}, C), { children: /* @__PURE__ */ c.jsx(jn, { option: b }) }))
|
|
29885
29885
|
}
|
|
29886
29886
|
) }),
|
|
29887
29887
|
/* @__PURE__ */ c.jsx(ft, { showToast: h, message: e.searchCompetitionsErrorMessage, color: "danger", hideToast: g })
|
|
@@ -29958,7 +29958,7 @@ const Er = /* @__PURE__ */ Fn(xj), Bn = ({ option: e }) => /* @__PURE__ */ c.jsx
|
|
|
29958
29958
|
root: { sx: { boxShadow: "none", backgroundColor: "white", minHeight: 38 } }
|
|
29959
29959
|
},
|
|
29960
29960
|
isOptionEqualToValue: (y, C) => y.id === C.id,
|
|
29961
|
-
endDecorator: s ? /* @__PURE__ */ c.jsx(
|
|
29961
|
+
endDecorator: s ? /* @__PURE__ */ c.jsx(An, { size: "sm", sx: { bgcolor: "primary" } }) : null,
|
|
29962
29962
|
placeholder: r.length > 0 ? "" : e.excludedProfilesPlaceholder,
|
|
29963
29963
|
options: o,
|
|
29964
29964
|
filterOptions: (y) => y.filter((C) => !r.some((b) => b.value === C.value)),
|
|
@@ -30037,7 +30037,7 @@ const Er = /* @__PURE__ */ Fn(xj), Bn = ({ option: e }) => /* @__PURE__ */ c.jsx
|
|
|
30037
30037
|
cursor: "default"
|
|
30038
30038
|
}
|
|
30039
30039
|
},
|
|
30040
|
-
children: /* @__PURE__ */ c.jsx(
|
|
30040
|
+
children: /* @__PURE__ */ c.jsx(jn, { option: I }, `option_${I.id}`)
|
|
30041
30041
|
},
|
|
30042
30042
|
I.id
|
|
30043
30043
|
));
|
|
@@ -30053,7 +30053,7 @@ const Er = /* @__PURE__ */ Fn(xj), Bn = ({ option: e }) => /* @__PURE__ */ c.jsx
|
|
|
30053
30053
|
root: { sx: { boxShadow: "none", backgroundColor: "white", minHeight: 38 } }
|
|
30054
30054
|
},
|
|
30055
30055
|
isOptionEqualToValue: (C, b) => C.id === b.id,
|
|
30056
|
-
endDecorator: l ? /* @__PURE__ */ c.jsx(
|
|
30056
|
+
endDecorator: l ? /* @__PURE__ */ c.jsx(An, { size: "sm", sx: { bgcolor: "primary" } }) : null,
|
|
30057
30057
|
placeholder: i.length > 0 ? "" : e.teamsSelectionPlaceholder,
|
|
30058
30058
|
options: a,
|
|
30059
30059
|
filterOptions: (C) => C.filter((b) => !i.some((I) => I.value === b.value)),
|
|
@@ -30064,7 +30064,7 @@ const Er = /* @__PURE__ */ Fn(xj), Bn = ({ option: e }) => /* @__PURE__ */ c.jsx
|
|
|
30064
30064
|
getOptionKey: (C) => C.id,
|
|
30065
30065
|
value: i,
|
|
30066
30066
|
renderTags: y,
|
|
30067
|
-
renderOption: (C, b) => /* @__PURE__ */ c.jsx(Sr, Q(B({}, C), { children: /* @__PURE__ */ c.jsx(
|
|
30067
|
+
renderOption: (C, b) => /* @__PURE__ */ c.jsx(Sr, Q(B({}, C), { children: /* @__PURE__ */ c.jsx(jn, { option: b }) }))
|
|
30068
30068
|
}
|
|
30069
30069
|
) }),
|
|
30070
30070
|
/* @__PURE__ */ c.jsx(ft, { showToast: h, message: e.searchTeamsErrorMessage, color: "danger", hideToast: g })
|
|
@@ -30526,7 +30526,7 @@ function K$(e) {
|
|
|
30526
30526
|
var Q$ = K$, q$ = Q$, J$ = q$(function(e, t, n) {
|
|
30527
30527
|
return e + (n ? "_" : "") + t.toLowerCase();
|
|
30528
30528
|
}), X$ = J$;
|
|
30529
|
-
const Z$ = /* @__PURE__ */
|
|
30529
|
+
const Z$ = /* @__PURE__ */ Bn(X$);
|
|
30530
30530
|
class eB {
|
|
30531
30531
|
constructor() {
|
|
30532
30532
|
te(this, "id", "");
|
|
@@ -30614,7 +30614,7 @@ const nB = (e, t) => t || e || "-------------", Wc = (e, t) => Array.isArray(e)
|
|
|
30614
30614
|
a(""), l(""), d([]), i();
|
|
30615
30615
|
};
|
|
30616
30616
|
return /* @__PURE__ */ c.jsxs("tr", { style: { backgroundColor: f ? "rgb(255 237 213)" : "" }, children: [
|
|
30617
|
-
/* @__PURE__ */ c.jsx("td", { children: /* @__PURE__ */ c.jsx(
|
|
30617
|
+
/* @__PURE__ */ c.jsx("td", { children: /* @__PURE__ */ c.jsx(dr, { name: "position", placeholder: "#", value: o, onChange: h, sx: { backgroundColor: "#fff" } }) }),
|
|
30618
30618
|
/* @__PURE__ */ c.jsx("td", { children: /* @__PURE__ */ c.jsxs(ie, { display: "flex", alignItems: "center", children: [
|
|
30619
30619
|
/* @__PURE__ */ c.jsx(Nt, { src: ((v = e.profileModel) == null ? void 0 : v.avatar) || "", alt: ((x = e.profileModel) == null ? void 0 : x.name) || "Unknown", sx: { mr: 1 } }),
|
|
30620
30620
|
/* @__PURE__ */ c.jsxs(ie, { children: [
|
|
@@ -30632,7 +30632,7 @@ const nB = (e, t) => t || e || "-------------", Wc = (e, t) => Array.isArray(e)
|
|
|
30632
30632
|
] }) }),
|
|
30633
30633
|
/* @__PURE__ */ c.jsx("td", { style: { textAlign: "center" }, children: e.points }),
|
|
30634
30634
|
/* @__PURE__ */ c.jsx("td", { style: { textAlign: "center" }, children: e.predictionsMade }),
|
|
30635
|
-
/* @__PURE__ */ c.jsx("td", { children: /* @__PURE__ */ c.jsx(
|
|
30635
|
+
/* @__PURE__ */ c.jsx("td", { children: /* @__PURE__ */ c.jsx(dr, { name: "note", value: s, placeholder: "This user has...", onChange: p, sx: { backgroundColor: "#fff" } }) }),
|
|
30636
30636
|
/* @__PURE__ */ c.jsx("td", { children: /* @__PURE__ */ c.jsx(xb, { labels: n, tags: u, onChange: m }) }),
|
|
30637
30637
|
/* @__PURE__ */ c.jsx("td", { children: /* @__PURE__ */ c.jsx(_e, { title: n.clearWinner, children: /* @__PURE__ */ c.jsx(qt, { onClick: g, variant: "outlined", color: "danger", disabled: !f, children: /* @__PURE__ */ c.jsx(Mp, {}) }) }) })
|
|
30638
30638
|
] });
|
|
@@ -30693,7 +30693,7 @@ const nB = (e, t) => t || e || "-------------", Wc = (e, t) => Array.isArray(e)
|
|
|
30693
30693
|
},
|
|
30694
30694
|
`winner-profile-${i.profileId}`
|
|
30695
30695
|
)) : /* @__PURE__ */ c.jsx(c.Fragment, {}),
|
|
30696
|
-
/* @__PURE__ */ c.jsx("tr", { children: /* @__PURE__ */ c.jsx("td", { colSpan: 7, children: e.hasMoreParticipants ? /* @__PURE__ */ c.jsx(ie, { textAlign: "center", my: 1, children: /* @__PURE__ */ c.jsx(
|
|
30696
|
+
/* @__PURE__ */ c.jsx("tr", { children: /* @__PURE__ */ c.jsx("td", { colSpan: 7, children: e.hasMoreParticipants ? /* @__PURE__ */ c.jsx(ie, { textAlign: "center", my: 1, children: /* @__PURE__ */ c.jsx(Fe, { variant: "plain", sx: { width: "100%" }, onClick: () => e.setPage((i) => i + 1), loading: e.isLoading, children: e.labels.loadMore }) }) : /* @__PURE__ */ c.jsx(c.Fragment, {}) }) })
|
|
30697
30697
|
] })
|
|
30698
30698
|
]
|
|
30699
30699
|
}
|
|
@@ -30845,7 +30845,7 @@ const cB = (e) => {
|
|
|
30845
30845
|
labels: e.labels
|
|
30846
30846
|
}
|
|
30847
30847
|
),
|
|
30848
|
-
/* @__PURE__ */ c.jsx(ie, { textAlign: "center", my: 3, children: /* @__PURE__ */ c.jsx(
|
|
30848
|
+
/* @__PURE__ */ c.jsx(ie, { textAlign: "center", my: 3, children: /* @__PURE__ */ c.jsx(Fe, { variant: "solid", color: "primary", onClick: C, loading: o, children: e.labels.save }) }),
|
|
30849
30849
|
/* @__PURE__ */ c.jsx(nu, { sx: { my: 4 } })
|
|
30850
30850
|
] }),
|
|
30851
30851
|
v ? /* @__PURE__ */ c.jsx(cB, { winners: t, profiles: v.map((I) => I.profileModel), labels: e.labels }) : /* @__PURE__ */ c.jsx(c.Fragment, {})
|
|
@@ -30913,12 +30913,12 @@ const cB = (e) => {
|
|
|
30913
30913
|
cursor: "default"
|
|
30914
30914
|
}
|
|
30915
30915
|
},
|
|
30916
|
-
children: /* @__PURE__ */ c.jsx(
|
|
30916
|
+
children: /* @__PURE__ */ c.jsx(jn, { option: m }, `option_${m.id}`)
|
|
30917
30917
|
},
|
|
30918
30918
|
m.id
|
|
30919
30919
|
));
|
|
30920
|
-
return /* @__PURE__ */ c.jsxs(
|
|
30921
|
-
/* @__PURE__ */ c.jsx(
|
|
30920
|
+
return /* @__PURE__ */ c.jsxs(Ue, { size: "sm", sx: { marginBottom: "16px" }, children: [
|
|
30921
|
+
/* @__PURE__ */ c.jsx(Ve, { sx: { fontSize: 12 }, color: "primary", children: e.labels.contextEntityTag }),
|
|
30922
30922
|
/* @__PURE__ */ c.jsx(
|
|
30923
30923
|
Ir,
|
|
30924
30924
|
{
|
|
@@ -30931,7 +30931,7 @@ const cB = (e) => {
|
|
|
30931
30931
|
root: { sx: { boxShadow: "none", backgroundColor: "white", minHeight: 38 } }
|
|
30932
30932
|
},
|
|
30933
30933
|
isOptionEqualToValue: (h, p) => h.id === p.id,
|
|
30934
|
-
endDecorator: r ? /* @__PURE__ */ c.jsx(
|
|
30934
|
+
endDecorator: r ? /* @__PURE__ */ c.jsx(An, { size: "sm", sx: { bgcolor: "primary" } }) : null,
|
|
30935
30935
|
placeholder: e.options.length > 0 ? "" : e.labels.typeContextTagNamePlaceholder,
|
|
30936
30936
|
options: t,
|
|
30937
30937
|
filterOptions: (h) => h.filter((p) => !e.options.some((m) => m.value === p.value)),
|
|
@@ -30943,7 +30943,7 @@ const cB = (e) => {
|
|
|
30943
30943
|
groupBy: (h) => h.group + "s",
|
|
30944
30944
|
value: (f = e.options) != null ? f : [],
|
|
30945
30945
|
renderTags: d,
|
|
30946
|
-
renderOption: (h, p) => /* @__PURE__ */ c.jsx(Sr, Q(B({}, h), { children: /* @__PURE__ */ c.jsx(
|
|
30946
|
+
renderOption: (h, p) => /* @__PURE__ */ c.jsx(Sr, Q(B({}, h), { children: /* @__PURE__ */ c.jsx(jn, { option: p }) }))
|
|
30947
30947
|
}
|
|
30948
30948
|
)
|
|
30949
30949
|
] });
|
|
@@ -30961,7 +30961,7 @@ var _o;
|
|
|
30961
30961
|
(function(e) {
|
|
30962
30962
|
e.event = "event", e.props = "prop";
|
|
30963
30963
|
})(_o || (_o = {}));
|
|
30964
|
-
function
|
|
30964
|
+
function ur() {
|
|
30965
30965
|
}
|
|
30966
30966
|
function gB(e) {
|
|
30967
30967
|
var t, n = void 0;
|
|
@@ -31161,7 +31161,7 @@ function EB(e) {
|
|
|
31161
31161
|
return t;
|
|
31162
31162
|
}
|
|
31163
31163
|
function Wb(e, t, n, r, i, o) {
|
|
31164
|
-
o === void 0 && (o =
|
|
31164
|
+
o === void 0 && (o = ur);
|
|
31165
31165
|
var a = yB(function(m, g) {
|
|
31166
31166
|
var v, x;
|
|
31167
31167
|
return Fb(m) ? (x = "", v = "") : typeof m == "number" || g ? (x = typeof m == "number" ? Vb(m) : m, v = r(x)) : (x = i(m, void 0), v = r(x)), { formattedValue: v, numAsString: x };
|
|
@@ -31195,15 +31195,15 @@ function PB(e) {
|
|
|
31195
31195
|
var s = e.removeFormatting;
|
|
31196
31196
|
s === void 0 && (s = kB);
|
|
31197
31197
|
var l = e.defaultValue, u = e.valueIsNumericString, d = e.onValueChange, f = e.isAllowed, h = e.onChange;
|
|
31198
|
-
h === void 0 && (h =
|
|
31198
|
+
h === void 0 && (h = ur);
|
|
31199
31199
|
var p = e.onKeyDown;
|
|
31200
|
-
p === void 0 && (p =
|
|
31200
|
+
p === void 0 && (p = ur);
|
|
31201
31201
|
var m = e.onMouseUp;
|
|
31202
|
-
m === void 0 && (m =
|
|
31202
|
+
m === void 0 && (m = ur);
|
|
31203
31203
|
var g = e.onFocus;
|
|
31204
|
-
g === void 0 && (g =
|
|
31204
|
+
g === void 0 && (g = ur);
|
|
31205
31205
|
var v = e.onBlur;
|
|
31206
|
-
v === void 0 && (v =
|
|
31206
|
+
v === void 0 && (v = ur);
|
|
31207
31207
|
var x = e.value, w = e.getCaretBoundary;
|
|
31208
31208
|
w === void 0 && (w = EB);
|
|
31209
31209
|
var y = e.isValidInputCharacter;
|
|
@@ -31435,9 +31435,9 @@ function jB(e) {
|
|
|
31435
31435
|
function $B(e) {
|
|
31436
31436
|
e = jB(e), e.decimalSeparator, e.allowedDecimalSeparators, e.thousandsGroupStyle;
|
|
31437
31437
|
var t = e.suffix, n = e.allowNegative, r = e.allowLeadingZeros, i = e.onKeyDown;
|
|
31438
|
-
i === void 0 && (i =
|
|
31438
|
+
i === void 0 && (i = ur);
|
|
31439
31439
|
var o = e.onBlur;
|
|
31440
|
-
o === void 0 && (o =
|
|
31440
|
+
o === void 0 && (o = ur);
|
|
31441
31441
|
var a = e.thousandSeparator, s = e.decimalScale, l = e.fixedDecimalScale, u = e.prefix;
|
|
31442
31442
|
u === void 0 && (u = "");
|
|
31443
31443
|
var d = e.defaultValue, f = e.value, h = e.valueIsNumericString, p = e.onValueChange, m = Nb(e, ["decimalSeparator", "allowedDecimalSeparators", "thousandsGroupStyle", "suffix", "allowNegative", "allowLeadingZeros", "onKeyDown", "onBlur", "thousandSeparator", "decimalScale", "fixedDecimalScale", "prefix", "defaultValue", "value", "valueIsNumericString", "onValueChange"]), g = nl(e), v = g.decimalSeparator, x = g.allowedDecimalSeparators, w = function(M) {
|
|
@@ -31542,7 +31542,7 @@ const NB = H.forwardRef(function(t, n) {
|
|
|
31542
31542
|
}
|
|
31543
31543
|
}
|
|
31544
31544
|
),
|
|
31545
|
-
e.description ? /* @__PURE__ */ c.jsx(
|
|
31545
|
+
e.description ? /* @__PURE__ */ c.jsx(mr, { children: e.description }) : /* @__PURE__ */ c.jsx(c.Fragment, {})
|
|
31546
31546
|
] });
|
|
31547
31547
|
}, FB = (e) => e.startsWith("fb:c:") ? "competition" : e.startsWith("fb:t:") ? "team" : "player", zB = (e, t, n, r) => {
|
|
31548
31548
|
const i = e.filter((u) => u.type.toLocaleLowerCase() === "competition").map((u) => u.id), o = e.filter((u) => u.type.toLocaleLowerCase() === "team").map((u) => u.id), a = e.filter((u) => u.type.toLocaleLowerCase() === "player").map((u) => u.id), s = [], l = [];
|
|
@@ -31614,12 +31614,12 @@ const NB = H.forwardRef(function(t, n) {
|
|
|
31614
31614
|
cursor: "default"
|
|
31615
31615
|
}
|
|
31616
31616
|
},
|
|
31617
|
-
children: /* @__PURE__ */ c.jsx(
|
|
31617
|
+
children: /* @__PURE__ */ c.jsx(jn, { option: w }, `option_${w.id}`)
|
|
31618
31618
|
},
|
|
31619
31619
|
w.id
|
|
31620
31620
|
));
|
|
31621
|
-
return /* @__PURE__ */ c.jsxs(
|
|
31622
|
-
/* @__PURE__ */ c.jsx(
|
|
31621
|
+
return /* @__PURE__ */ c.jsxs(Ue, { size: "sm", sx: { marginBottom: "16px" }, children: [
|
|
31622
|
+
/* @__PURE__ */ c.jsx(Ve, { color: "primary", children: e.labels.contextEntityTag }),
|
|
31623
31623
|
/* @__PURE__ */ c.jsx(
|
|
31624
31624
|
Ir,
|
|
31625
31625
|
{
|
|
@@ -31632,7 +31632,7 @@ const NB = H.forwardRef(function(t, n) {
|
|
|
31632
31632
|
root: { sx: { boxShadow: "none", backgroundColor: "white", minHeight: 38 } }
|
|
31633
31633
|
},
|
|
31634
31634
|
isOptionEqualToValue: (v, x) => v.id === x.id,
|
|
31635
|
-
endDecorator: o ? /* @__PURE__ */ c.jsx(
|
|
31635
|
+
endDecorator: o ? /* @__PURE__ */ c.jsx(An, { size: "sm", sx: { bgcolor: "primary" } }) : null,
|
|
31636
31636
|
placeholder: t.length > 0 ? "" : e.labels.typeContextTagNamePlaceholder,
|
|
31637
31637
|
options: r,
|
|
31638
31638
|
filterOptions: (v) => v.filter((x) => !t.some((w) => w.value === x.value)),
|
|
@@ -31644,7 +31644,7 @@ const NB = H.forwardRef(function(t, n) {
|
|
|
31644
31644
|
groupBy: (v) => v.group + "s",
|
|
31645
31645
|
value: t != null ? t : [],
|
|
31646
31646
|
renderTags: g,
|
|
31647
|
-
renderOption: (v, x) => /* @__PURE__ */ c.jsx(Sr, Q(B({}, v), { children: /* @__PURE__ */ c.jsx(
|
|
31647
|
+
renderOption: (v, x) => /* @__PURE__ */ c.jsx(Sr, Q(B({}, v), { children: /* @__PURE__ */ c.jsx(jn, { option: x }) }))
|
|
31648
31648
|
}
|
|
31649
31649
|
),
|
|
31650
31650
|
/* @__PURE__ */ c.jsx(ft, { showToast: u, message: e.labels.getFootballEntitiesErrorMessage, color: "danger", hideToast: h })
|
|
@@ -31700,7 +31700,7 @@ const NB = H.forwardRef(function(t, n) {
|
|
|
31700
31700
|
),
|
|
31701
31701
|
/* @__PURE__ */ c.jsx(yi, { value: 0, sx: { px: 0 }, children: /* @__PURE__ */ c.jsx(HB, { labels: e.labels, tags: e.context.tags, onChangeTags: s }) }),
|
|
31702
31702
|
/* @__PURE__ */ c.jsx(yi, { value: 1, sx: { px: 0 }, children: Object.keys(n).map((l) => /* @__PURE__ */ c.jsx(ie, { mb: 2, children: /* @__PURE__ */ c.jsx(
|
|
31703
|
-
|
|
31703
|
+
pn,
|
|
31704
31704
|
{
|
|
31705
31705
|
label: i.get(l),
|
|
31706
31706
|
placeholder: "",
|
|
@@ -31711,7 +31711,7 @@ const NB = H.forwardRef(function(t, n) {
|
|
|
31711
31711
|
}
|
|
31712
31712
|
) }, `context-content-${l}`)) }),
|
|
31713
31713
|
/* @__PURE__ */ c.jsx(yi, { value: 2, sx: { px: 0 }, children: Object.keys(r).map((l) => /* @__PURE__ */ c.jsx(ie, { mb: 2, children: /* @__PURE__ */ c.jsx(
|
|
31714
|
-
|
|
31714
|
+
pn,
|
|
31715
31715
|
{
|
|
31716
31716
|
label: i.get(l),
|
|
31717
31717
|
placeholder: "",
|
|
@@ -31773,8 +31773,8 @@ const NB = H.forwardRef(function(t, n) {
|
|
|
31773
31773
|
label: n.paid
|
|
31774
31774
|
}
|
|
31775
31775
|
];
|
|
31776
|
-
return /* @__PURE__ */ c.jsxs(
|
|
31777
|
-
/* @__PURE__ */ c.jsx(
|
|
31776
|
+
return /* @__PURE__ */ c.jsxs(Ue, { size: "sm", sx: { mb: 2 }, children: [
|
|
31777
|
+
/* @__PURE__ */ c.jsx(Ve, { children: n.authRequirement }),
|
|
31778
31778
|
/* @__PURE__ */ c.jsx(
|
|
31779
31779
|
Ot,
|
|
31780
31780
|
Q(B({
|
|
@@ -31805,7 +31805,7 @@ const NB = H.forwardRef(function(t, n) {
|
|
|
31805
31805
|
children: o.map((a) => /* @__PURE__ */ c.jsx(et, { value: a.id, children: a.label }, a.id))
|
|
31806
31806
|
})
|
|
31807
31807
|
),
|
|
31808
|
-
/* @__PURE__ */ c.jsx(
|
|
31808
|
+
/* @__PURE__ */ c.jsx(mr, { children: n.authRequirementDescription })
|
|
31809
31809
|
] });
|
|
31810
31810
|
};
|
|
31811
31811
|
function qB() {
|
|
@@ -31847,10 +31847,10 @@ function Gb(e) {
|
|
|
31847
31847
|
function zi(e) {
|
|
31848
31848
|
return e ? Fi(e) ? e.document : xd(e) ? Cd(e) ? e : Yo(e) || Gb(e) ? e.ownerDocument : document : document : document;
|
|
31849
31849
|
}
|
|
31850
|
-
const
|
|
31850
|
+
const In = rl ? as : me;
|
|
31851
31851
|
function il(e) {
|
|
31852
31852
|
const t = Te(e);
|
|
31853
|
-
return
|
|
31853
|
+
return In(() => {
|
|
31854
31854
|
t.current = e;
|
|
31855
31855
|
}), Be(function() {
|
|
31856
31856
|
for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++)
|
|
@@ -31869,7 +31869,7 @@ function JB() {
|
|
|
31869
31869
|
function Do(e, t) {
|
|
31870
31870
|
t === void 0 && (t = [e]);
|
|
31871
31871
|
const n = Te(e);
|
|
31872
|
-
return
|
|
31872
|
+
return In(() => {
|
|
31873
31873
|
n.current !== e && (n.current = e);
|
|
31874
31874
|
}, t), n;
|
|
31875
31875
|
}
|
|
@@ -31970,7 +31970,7 @@ function ts(e) {
|
|
|
31970
31970
|
y: e.clientY
|
|
31971
31971
|
} : null;
|
|
31972
31972
|
}
|
|
31973
|
-
const
|
|
31973
|
+
const nr = /* @__PURE__ */ Object.freeze({
|
|
31974
31974
|
Translate: {
|
|
31975
31975
|
toString(e) {
|
|
31976
31976
|
if (!e)
|
|
@@ -31996,7 +31996,7 @@ const ir = /* @__PURE__ */ Object.freeze({
|
|
|
31996
31996
|
Transform: {
|
|
31997
31997
|
toString(e) {
|
|
31998
31998
|
if (e)
|
|
31999
|
-
return [
|
|
31999
|
+
return [nr.Translate.toString(e), nr.Scale.toString(e)].join(" ");
|
|
32000
32000
|
}
|
|
32001
32001
|
},
|
|
32002
32002
|
Transition: {
|
|
@@ -32063,7 +32063,7 @@ function iN() {
|
|
|
32063
32063
|
announcement: e
|
|
32064
32064
|
};
|
|
32065
32065
|
}
|
|
32066
|
-
const Kb = /* @__PURE__ */
|
|
32066
|
+
const Kb = /* @__PURE__ */ $n(null);
|
|
32067
32067
|
function oN(e) {
|
|
32068
32068
|
const t = Ht(Kb);
|
|
32069
32069
|
me(() => {
|
|
@@ -32217,7 +32217,7 @@ function Qb() {
|
|
|
32217
32217
|
[...t]
|
|
32218
32218
|
);
|
|
32219
32219
|
}
|
|
32220
|
-
const
|
|
32220
|
+
const Sn = /* @__PURE__ */ Object.freeze({
|
|
32221
32221
|
x: 0,
|
|
32222
32222
|
y: 0
|
|
32223
32223
|
});
|
|
@@ -32351,7 +32351,7 @@ function Jb(e, t) {
|
|
|
32351
32351
|
return e && t ? {
|
|
32352
32352
|
x: e.left - t.left,
|
|
32353
32353
|
y: e.top - t.top
|
|
32354
|
-
} :
|
|
32354
|
+
} : Sn;
|
|
32355
32355
|
}
|
|
32356
32356
|
function bN(e) {
|
|
32357
32357
|
return function(n) {
|
|
@@ -32588,7 +32588,7 @@ function EN(e) {
|
|
|
32588
32588
|
};
|
|
32589
32589
|
}
|
|
32590
32590
|
function iy(e) {
|
|
32591
|
-
return e.reduce((t, n) => Ai(t, Yc(n)),
|
|
32591
|
+
return e.reduce((t, n) => Ai(t, Yc(n)), Sn);
|
|
32592
32592
|
}
|
|
32593
32593
|
function kN(e) {
|
|
32594
32594
|
return e.reduce((t, n) => t + ey(n), 0);
|
|
@@ -32713,7 +32713,7 @@ class sl {
|
|
|
32713
32713
|
activeNode: t,
|
|
32714
32714
|
onStart: n
|
|
32715
32715
|
} = this.props, r = t.node.current;
|
|
32716
|
-
r && oy(r), n(
|
|
32716
|
+
r && oy(r), n(Sn);
|
|
32717
32717
|
}
|
|
32718
32718
|
handleKeyDown(t) {
|
|
32719
32719
|
if (ol(t)) {
|
|
@@ -32741,7 +32741,7 @@ class sl {
|
|
|
32741
32741
|
} = r.current, d = u ? {
|
|
32742
32742
|
x: u.left,
|
|
32743
32743
|
y: u.top
|
|
32744
|
-
} :
|
|
32744
|
+
} : Sn;
|
|
32745
32745
|
this.referenceCoordinates || (this.referenceCoordinates = d);
|
|
32746
32746
|
const f = a(t, {
|
|
32747
32747
|
active: n,
|
|
@@ -32859,7 +32859,7 @@ class Id {
|
|
|
32859
32859
|
} = t, {
|
|
32860
32860
|
target: a
|
|
32861
32861
|
} = o;
|
|
32862
|
-
this.props = t, this.events = n, this.document = zi(a), this.documentListeners = new go(this.document), this.listeners = new go(r), this.windowListeners = new go(Wt(a)), this.initialCoordinates = (i = ts(o)) != null ? i :
|
|
32862
|
+
this.props = t, this.events = n, this.document = zi(a), this.documentListeners = new go(this.document), this.listeners = new go(r), this.windowListeners = new go(Wt(a)), this.initialCoordinates = (i = ts(o)) != null ? i : Sn, this.handleStart = this.handleStart.bind(this), this.handleMove = this.handleMove.bind(this), this.handleEnd = this.handleEnd.bind(this), this.handleCancel = this.handleCancel.bind(this), this.handleKeydown = this.handleKeydown.bind(this), this.removeTextSelection = this.removeTextSelection.bind(this), this.attach();
|
|
32863
32863
|
}
|
|
32864
32864
|
attach() {
|
|
32865
32865
|
const {
|
|
@@ -32925,7 +32925,7 @@ class Id {
|
|
|
32925
32925
|
} = o;
|
|
32926
32926
|
if (!i)
|
|
32927
32927
|
return;
|
|
32928
|
-
const l = (n = ts(t)) != null ? n :
|
|
32928
|
+
const l = (n = ts(t)) != null ? n : Sn, u = Ro(i, l);
|
|
32929
32929
|
if (!r && s) {
|
|
32930
32930
|
if (rp(s)) {
|
|
32931
32931
|
if (s.tolerance != null && ic(u, s.tolerance))
|
|
@@ -33375,7 +33375,7 @@ function ap(e, t, n) {
|
|
|
33375
33375
|
}), s = cl({
|
|
33376
33376
|
callback: o
|
|
33377
33377
|
});
|
|
33378
|
-
return
|
|
33378
|
+
return In(() => {
|
|
33379
33379
|
o(), e ? (s == null || s.observe(e), a == null || a.observe(document.body, {
|
|
33380
33380
|
childList: !0,
|
|
33381
33381
|
subtree: !0
|
|
@@ -33419,7 +33419,7 @@ function QN(e) {
|
|
|
33419
33419
|
u == null || u.removeEventListener("scroll", i);
|
|
33420
33420
|
});
|
|
33421
33421
|
}
|
|
33422
|
-
}, [i, e]), Se(() => e.length ? t ? Array.from(t.values()).reduce((o, a) => Ai(o, a),
|
|
33422
|
+
}, [i, e]), Se(() => e.length ? t ? Array.from(t.values()).reduce((o, a) => Ai(o, a), Sn) : iy(e) : Sn, [e, t]);
|
|
33423
33423
|
}
|
|
33424
33424
|
function lp(e, t) {
|
|
33425
33425
|
t === void 0 && (t = []);
|
|
@@ -33431,9 +33431,9 @@ function lp(e, t) {
|
|
|
33431
33431
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
33432
33432
|
t
|
|
33433
33433
|
), me(() => {
|
|
33434
|
-
const r = e !==
|
|
33434
|
+
const r = e !== Sn;
|
|
33435
33435
|
r && !n.current && (n.current = e), !r && n.current && (n.current = null);
|
|
33436
|
-
}, [e]), n.current ? Ro(e, n.current) :
|
|
33436
|
+
}, [e]), n.current ? Ro(e, n.current) : Sn;
|
|
33437
33437
|
}
|
|
33438
33438
|
function qN(e) {
|
|
33439
33439
|
me(
|
|
@@ -33485,7 +33485,7 @@ function XN(e, t) {
|
|
|
33485
33485
|
const s = cl({
|
|
33486
33486
|
callback: a
|
|
33487
33487
|
});
|
|
33488
|
-
return
|
|
33488
|
+
return In(() => {
|
|
33489
33489
|
s == null || s.disconnect(), a(), e.forEach((l) => s == null ? void 0 : s.observe(l));
|
|
33490
33490
|
}, [e]), i;
|
|
33491
33491
|
}
|
|
@@ -33605,7 +33605,7 @@ const nF = {
|
|
|
33605
33605
|
draggableNodes: /* @__PURE__ */ new Map(),
|
|
33606
33606
|
over: null,
|
|
33607
33607
|
measureDroppableContainers: ns
|
|
33608
|
-
}, qo = /* @__PURE__ */
|
|
33608
|
+
}, qo = /* @__PURE__ */ $n(cy), uy = /* @__PURE__ */ $n(nF);
|
|
33609
33609
|
function rF() {
|
|
33610
33610
|
return {
|
|
33611
33611
|
draggable: {
|
|
@@ -33776,7 +33776,7 @@ function sF(e) {
|
|
|
33776
33776
|
x: i,
|
|
33777
33777
|
y: i
|
|
33778
33778
|
} : i;
|
|
33779
|
-
|
|
33779
|
+
In(() => {
|
|
33780
33780
|
if (!a && !s || !t) {
|
|
33781
33781
|
o.current = !1;
|
|
33782
33782
|
return;
|
|
@@ -33796,14 +33796,14 @@ function sF(e) {
|
|
|
33796
33796
|
}
|
|
33797
33797
|
}, [t, a, s, r, n]);
|
|
33798
33798
|
}
|
|
33799
|
-
const ul = /* @__PURE__ */
|
|
33799
|
+
const ul = /* @__PURE__ */ $n(Q(B({}, Sn), {
|
|
33800
33800
|
scaleX: 1,
|
|
33801
33801
|
scaleY: 1
|
|
33802
33802
|
}));
|
|
33803
|
-
var
|
|
33803
|
+
var sr;
|
|
33804
33804
|
(function(e) {
|
|
33805
33805
|
e[e.Uninitialized = 0] = "Uninitialized", e[e.Initializing = 1] = "Initializing", e[e.Initialized = 2] = "Initialized";
|
|
33806
|
-
})(
|
|
33806
|
+
})(sr || (sr = {}));
|
|
33807
33807
|
const fy = /* @__PURE__ */ Uy(function(t) {
|
|
33808
33808
|
var n, r, i, o;
|
|
33809
33809
|
let Zo = t, {
|
|
@@ -33825,7 +33825,7 @@ const fy = /* @__PURE__ */ Uy(function(t) {
|
|
|
33825
33825
|
"measuring",
|
|
33826
33826
|
"modifiers"
|
|
33827
33827
|
]);
|
|
33828
|
-
const g = Vy(iF, void 0, rF), [v, x] = g, [w, y] = aN(), [C, b] = Y(
|
|
33828
|
+
const g = Vy(iF, void 0, rF), [v, x] = g, [w, y] = aN(), [C, b] = Y(sr.Uninitialized), I = C === sr.Initialized, {
|
|
33829
33829
|
draggable: {
|
|
33830
33830
|
active: A,
|
|
33831
33831
|
nodes: T,
|
|
@@ -33853,7 +33853,7 @@ const fy = /* @__PURE__ */ Uy(function(t) {
|
|
|
33853
33853
|
dragging: I,
|
|
33854
33854
|
dependencies: [$.x, $.y],
|
|
33855
33855
|
config: R.droppable
|
|
33856
|
-
}), se = zN(T, A), oe = Se(() => O ? ts(O) : null, [O]), J =
|
|
33856
|
+
}), se = zN(T, A), oe = Se(() => O ? ts(O) : null, [O]), J = xn(), le = HN(se, R.draggable.measure);
|
|
33857
33857
|
sF({
|
|
33858
33858
|
activeNode: A != null ? T.get(A) : null,
|
|
33859
33859
|
config: J.layoutShiftCompensation,
|
|
@@ -33893,13 +33893,13 @@ const fy = /* @__PURE__ */ Uy(function(t) {
|
|
|
33893
33893
|
scrollableAncestors: Pe,
|
|
33894
33894
|
scrollableAncestorRects: Xe,
|
|
33895
33895
|
windowRect: Ce
|
|
33896
|
-
}), Re = oe ? Ai(oe, $) : null, Dt = QN(Pe), Rt = lp(Dt), Gt = lp(Dt, [X]), zt = Ai(Le, Rt), en = Lt ? yN(Lt, Le) : null,
|
|
33896
|
+
}), Re = oe ? Ai(oe, $) : null, Dt = QN(Pe), Rt = lp(Dt), Gt = lp(Dt, [X]), zt = Ai(Le, Rt), en = Lt ? yN(Lt, Le) : null, or = j && en ? f({
|
|
33897
33897
|
active: j,
|
|
33898
33898
|
collisionRect: en,
|
|
33899
33899
|
droppableRects: F,
|
|
33900
33900
|
droppableContainers: D,
|
|
33901
33901
|
pointerCoordinates: Re
|
|
33902
|
-
}) : null, Jo = qb(
|
|
33902
|
+
}) : null, Jo = qb(or, "id"), [En, Vi] = Y(null), hl = de ? Le : Ai(Le, Gt), pl = vN(hl, (o = En == null ? void 0 : En.rect) != null ? o : null, X), He = Te(null), Kr = Be(
|
|
33903
33903
|
(At, k) => {
|
|
33904
33904
|
let {
|
|
33905
33905
|
sensor: L,
|
|
@@ -33965,7 +33965,7 @@ const fy = /* @__PURE__ */ Uy(function(t) {
|
|
|
33965
33965
|
}
|
|
33966
33966
|
};
|
|
33967
33967
|
Zi(() => {
|
|
33968
|
-
ve == null || ve($e), b(
|
|
33968
|
+
ve == null || ve($e), b(sr.Initializing), x({
|
|
33969
33969
|
type: wt.DragStart,
|
|
33970
33970
|
initialCoordinates: ue,
|
|
33971
33971
|
active: Ae
|
|
@@ -33997,7 +33997,7 @@ const fy = /* @__PURE__ */ Uy(function(t) {
|
|
|
33997
33997
|
let tt = null;
|
|
33998
33998
|
if (fe && Mt) {
|
|
33999
33999
|
const {
|
|
34000
|
-
cancelDrop:
|
|
34000
|
+
cancelDrop: Cn
|
|
34001
34001
|
} = K.current;
|
|
34002
34002
|
tt = {
|
|
34003
34003
|
activatorEvent: re,
|
|
@@ -34005,17 +34005,17 @@ const fy = /* @__PURE__ */ Uy(function(t) {
|
|
|
34005
34005
|
collisions: ve,
|
|
34006
34006
|
delta: Mt,
|
|
34007
34007
|
over: $e
|
|
34008
|
-
}, ue === wt.DragEnd && typeof
|
|
34008
|
+
}, ue === wt.DragEnd && typeof Cn == "function" && (yield Promise.resolve(Cn(tt))) && (ue = wt.DragCancel);
|
|
34009
34009
|
}
|
|
34010
34010
|
z.current = null, Zi(() => {
|
|
34011
34011
|
x({
|
|
34012
34012
|
type: ue
|
|
34013
|
-
}), b(
|
|
34014
|
-
const
|
|
34013
|
+
}), b(sr.Uninitialized), Vi(null), M(null), U(null), He.current = null;
|
|
34014
|
+
const Cn = ue === wt.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
34015
34015
|
if (tt) {
|
|
34016
|
-
const
|
|
34017
|
-
|
|
34018
|
-
type:
|
|
34016
|
+
const kn = K.current[Cn];
|
|
34017
|
+
kn == null || kn(tt), w({
|
|
34018
|
+
type: Cn,
|
|
34019
34019
|
event: tt
|
|
34020
34020
|
});
|
|
34021
34021
|
}
|
|
@@ -34042,8 +34042,8 @@ const fy = /* @__PURE__ */ Uy(function(t) {
|
|
|
34042
34042
|
capturedBy: k.sensor
|
|
34043
34043
|
}, z.current = G, Kr(L, k));
|
|
34044
34044
|
}, [T, Kr]), Xo = UN(d, Hi);
|
|
34045
|
-
qN(d),
|
|
34046
|
-
X && C ===
|
|
34045
|
+
qN(d), In(() => {
|
|
34046
|
+
X && C === sr.Initializing && b(sr.Initialized);
|
|
34047
34047
|
}, [X, C]), me(
|
|
34048
34048
|
() => {
|
|
34049
34049
|
const {
|
|
@@ -34112,26 +34112,26 @@ const fy = /* @__PURE__ */ Uy(function(t) {
|
|
|
34112
34112
|
},
|
|
34113
34113
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
34114
34114
|
[Jo]
|
|
34115
|
-
),
|
|
34115
|
+
), In(() => {
|
|
34116
34116
|
ke.current = {
|
|
34117
34117
|
activatorEvent: O,
|
|
34118
34118
|
active: j,
|
|
34119
34119
|
activeNode: se,
|
|
34120
34120
|
collisionRect: en,
|
|
34121
|
-
collisions:
|
|
34121
|
+
collisions: or,
|
|
34122
34122
|
droppableRects: F,
|
|
34123
34123
|
draggableNodes: T,
|
|
34124
34124
|
draggingNode: ht,
|
|
34125
34125
|
draggingNodeRect: Lt,
|
|
34126
34126
|
droppableContainers: W,
|
|
34127
|
-
over:
|
|
34127
|
+
over: En,
|
|
34128
34128
|
scrollableAncestors: Pe,
|
|
34129
34129
|
scrollAdjustedTranslate: zt
|
|
34130
34130
|
}, S.current = {
|
|
34131
34131
|
initial: Lt,
|
|
34132
34132
|
translated: en
|
|
34133
34133
|
};
|
|
34134
|
-
}, [j, se,
|
|
34134
|
+
}, [j, se, or, en, T, ht, Lt, F, W, En, Pe, zt]), BN(Q(B({}, J), {
|
|
34135
34135
|
delta: $,
|
|
34136
34136
|
draggingRect: en,
|
|
34137
34137
|
pointerCoordinates: Re,
|
|
@@ -34143,20 +34143,20 @@ const fy = /* @__PURE__ */ Uy(function(t) {
|
|
|
34143
34143
|
activeNode: se,
|
|
34144
34144
|
activeNodeRect: X,
|
|
34145
34145
|
activatorEvent: O,
|
|
34146
|
-
collisions:
|
|
34146
|
+
collisions: or,
|
|
34147
34147
|
containerNodeRect: he,
|
|
34148
34148
|
dragOverlay: Pt,
|
|
34149
34149
|
draggableNodes: T,
|
|
34150
34150
|
droppableContainers: W,
|
|
34151
34151
|
droppableRects: F,
|
|
34152
|
-
over:
|
|
34152
|
+
over: En,
|
|
34153
34153
|
measureDroppableContainers: V,
|
|
34154
34154
|
scrollableAncestors: Pe,
|
|
34155
34155
|
scrollableAncestorRects: Xe,
|
|
34156
34156
|
measuringConfiguration: R,
|
|
34157
34157
|
measuringScheduled: ne,
|
|
34158
34158
|
windowRect: Ce
|
|
34159
|
-
}), [j, se, X, O,
|
|
34159
|
+
}), [j, se, X, O, or, he, Pt, T, W, F, En, V, Pe, Xe, R, ne, Ce]), Wi = Se(() => ({
|
|
34160
34160
|
activatorEvent: O,
|
|
34161
34161
|
activators: Xo,
|
|
34162
34162
|
active: j,
|
|
@@ -34166,9 +34166,9 @@ const fy = /* @__PURE__ */ Uy(function(t) {
|
|
|
34166
34166
|
},
|
|
34167
34167
|
dispatch: x,
|
|
34168
34168
|
draggableNodes: T,
|
|
34169
|
-
over:
|
|
34169
|
+
over: En,
|
|
34170
34170
|
measureDroppableContainers: V
|
|
34171
|
-
}), [O, Xo, j, X, x, ee, T,
|
|
34171
|
+
}), [O, Xo, j, X, x, ee, T, En, V]);
|
|
34172
34172
|
return Me.createElement(Kb.Provider, {
|
|
34173
34173
|
value: y
|
|
34174
34174
|
}, Me.createElement(qo.Provider, {
|
|
@@ -34182,7 +34182,7 @@ const fy = /* @__PURE__ */ Uy(function(t) {
|
|
|
34182
34182
|
})), Me.createElement(cN, Q(B({}, s), {
|
|
34183
34183
|
hiddenTextDescribedById: ee
|
|
34184
34184
|
})));
|
|
34185
|
-
function
|
|
34185
|
+
function xn() {
|
|
34186
34186
|
const At = (N == null ? void 0 : N.autoScrollEnabled) === !1, k = typeof l == "object" ? l.enabled === !1 : l === !1, L = I && !At && !k;
|
|
34187
34187
|
return typeof l == "object" ? Q(B({}, l), {
|
|
34188
34188
|
enabled: L
|
|
@@ -34190,7 +34190,7 @@ const fy = /* @__PURE__ */ Uy(function(t) {
|
|
|
34190
34190
|
enabled: L
|
|
34191
34191
|
};
|
|
34192
34192
|
}
|
|
34193
|
-
}), lF = /* @__PURE__ */
|
|
34193
|
+
}), lF = /* @__PURE__ */ $n(null), up = "button", cF = "Draggable";
|
|
34194
34194
|
function uF(e) {
|
|
34195
34195
|
let {
|
|
34196
34196
|
id: t,
|
|
@@ -34211,7 +34211,7 @@ function uF(e) {
|
|
|
34211
34211
|
roleDescription: m = "draggable",
|
|
34212
34212
|
tabIndex: g = 0
|
|
34213
34213
|
} = i != null ? i : {}, v = (l == null ? void 0 : l.id) === t, x = Ht(v ? ul : lF), [w, y] = Za(), [C, b] = Za(), I = JN(a, t), A = Do(n);
|
|
34214
|
-
|
|
34214
|
+
In(
|
|
34215
34215
|
() => (f.set(t, {
|
|
34216
34216
|
id: t,
|
|
34217
34217
|
key: o,
|
|
@@ -34331,7 +34331,7 @@ function pF(e) {
|
|
|
34331
34331
|
children: n
|
|
34332
34332
|
} = e;
|
|
34333
34333
|
const [r, i] = Y(null), [o, a] = Y(null), s = es(n);
|
|
34334
|
-
return !n && !r && s && i(s),
|
|
34334
|
+
return !n && !r && s && i(s), In(() => {
|
|
34335
34335
|
if (!o)
|
|
34336
34336
|
return;
|
|
34337
34337
|
const l = r == null ? void 0 : r.key, u = r == null ? void 0 : r.props.id;
|
|
@@ -34387,7 +34387,7 @@ const vF = {
|
|
|
34387
34387
|
height: s.height,
|
|
34388
34388
|
top: s.top,
|
|
34389
34389
|
left: s.left,
|
|
34390
|
-
transform:
|
|
34390
|
+
transform: nr.Transform.toString(f),
|
|
34391
34391
|
transformOrigin: i && r ? dN(r, s) : void 0,
|
|
34392
34392
|
transition: typeof d == "function" ? d(r) : d
|
|
34393
34393
|
}), l);
|
|
@@ -34424,9 +34424,9 @@ const vF = {
|
|
|
34424
34424
|
}
|
|
34425
34425
|
} = e;
|
|
34426
34426
|
return [{
|
|
34427
|
-
transform:
|
|
34427
|
+
transform: nr.Transform.toString(t)
|
|
34428
34428
|
}, {
|
|
34429
|
-
transform:
|
|
34429
|
+
transform: nr.Transform.toString(n)
|
|
34430
34430
|
}];
|
|
34431
34431
|
}, CF = {
|
|
34432
34432
|
duration: 250,
|
|
@@ -34676,7 +34676,7 @@ function by(e) {
|
|
|
34676
34676
|
over: u,
|
|
34677
34677
|
measureDroppableContainers: d
|
|
34678
34678
|
} = hy(), f = Qo(my, n), h = s.rect !== null, p = Se(() => r.map((I) => typeof I == "object" && "id" in I ? I.id : I), [r]), m = a != null, g = a ? p.indexOf(a.id) : -1, v = u ? p.indexOf(u.id) : -1, x = Te(p), w = !EF(p, x.current), y = v !== -1 && g === -1 || w, C = kF(o);
|
|
34679
|
-
|
|
34679
|
+
In(() => {
|
|
34680
34680
|
w && m && d(p);
|
|
34681
34681
|
}, [w, p, m, d]), me(() => {
|
|
34682
34682
|
x.current = p;
|
|
@@ -34724,7 +34724,7 @@ const _F = (e) => {
|
|
|
34724
34724
|
}, DF = {
|
|
34725
34725
|
duration: 200,
|
|
34726
34726
|
easing: "ease"
|
|
34727
|
-
}, yy = "transform", RF = /* @__PURE__ */
|
|
34727
|
+
}, yy = "transform", RF = /* @__PURE__ */ nr.Transition.toString({
|
|
34728
34728
|
property: yy,
|
|
34729
34729
|
duration: 0,
|
|
34730
34730
|
easing: "linear"
|
|
@@ -34739,7 +34739,7 @@ function LF(e) {
|
|
|
34739
34739
|
rect: i
|
|
34740
34740
|
} = e;
|
|
34741
34741
|
const [o, a] = Y(null), s = Te(n);
|
|
34742
|
-
return
|
|
34742
|
+
return In(() => {
|
|
34743
34743
|
if (!t && n !== s.current && r.current) {
|
|
34744
34744
|
const l = i.current;
|
|
34745
34745
|
if (l) {
|
|
@@ -34894,7 +34894,7 @@ function xy(e) {
|
|
|
34894
34894
|
)
|
|
34895
34895
|
return RF;
|
|
34896
34896
|
if (!(V && !ol(S) || !u) && (R || ke))
|
|
34897
|
-
return
|
|
34897
|
+
return nr.Transition.toString(Q(B({}, u), {
|
|
34898
34898
|
property: yy
|
|
34899
34899
|
}));
|
|
34900
34900
|
}
|
|
@@ -34985,7 +34985,7 @@ function $F(e, t) {
|
|
|
34985
34985
|
}
|
|
34986
34986
|
const Iy = qe(/* @__PURE__ */ c.jsx("path", {
|
|
34987
34987
|
d: "M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2m-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"
|
|
34988
|
-
}), "DragIndicator"), fl =
|
|
34988
|
+
}), "DragIndicator"), fl = $n({
|
|
34989
34989
|
attributes: {},
|
|
34990
34990
|
listeners: void 0,
|
|
34991
34991
|
ref() {
|
|
@@ -34993,7 +34993,7 @@ const Iy = qe(/* @__PURE__ */ c.jsx("path", {
|
|
|
34993
34993
|
}), BF = () => {
|
|
34994
34994
|
const { attributes: e, listeners: t, ref: n } = Ht(fl);
|
|
34995
34995
|
return /* @__PURE__ */ c.jsx(
|
|
34996
|
-
|
|
34996
|
+
Fe,
|
|
34997
34997
|
Q(B(B({
|
|
34998
34998
|
sx: {
|
|
34999
34999
|
backgroundColor: "transparent",
|
|
@@ -35028,7 +35028,7 @@ const Iy = qe(/* @__PURE__ */ c.jsx("path", {
|
|
|
35028
35028
|
[a, l, d]
|
|
35029
35029
|
), m = {
|
|
35030
35030
|
opacity: s ? 0.6 : void 0,
|
|
35031
|
-
transform:
|
|
35031
|
+
transform: nr.Translate.toString(f),
|
|
35032
35032
|
transition: h
|
|
35033
35033
|
};
|
|
35034
35034
|
return /* @__PURE__ */ c.jsx(fl.Provider, { value: p, children: /* @__PURE__ */ c.jsx(
|
|
@@ -35038,7 +35038,7 @@ const Iy = qe(/* @__PURE__ */ c.jsx("path", {
|
|
|
35038
35038
|
ref: u,
|
|
35039
35039
|
style: m,
|
|
35040
35040
|
startAction: i ? /* @__PURE__ */ c.jsx(BF, {}) : /* @__PURE__ */ c.jsx(c.Fragment, {}),
|
|
35041
|
-
endAction: i ? /* @__PURE__ */ c.jsx(_e, { title: n, children: /* @__PURE__ */ c.jsx(
|
|
35041
|
+
endAction: i ? /* @__PURE__ */ c.jsx(_e, { title: n, children: /* @__PURE__ */ c.jsx(Fe, { variant: "outlined", color: "danger", onClick: r, sx: { ml: "auto", p: 0.5 }, size: "sm", children: /* @__PURE__ */ c.jsx(Mp, {}) }) }) : /* @__PURE__ */ c.jsx(c.Fragment, {}),
|
|
35042
35042
|
sx: { p: 2, borderRadius: "sm" },
|
|
35043
35043
|
children: e
|
|
35044
35044
|
}
|
|
@@ -35113,8 +35113,8 @@ const Iy = qe(/* @__PURE__ */ c.jsx("path", {
|
|
|
35113
35113
|
disabled: i = !1,
|
|
35114
35114
|
sx: o = {},
|
|
35115
35115
|
onChange: a
|
|
35116
|
-
}) => /* @__PURE__ */ c.jsxs(
|
|
35117
|
-
/* @__PURE__ */ c.jsx(
|
|
35116
|
+
}) => /* @__PURE__ */ c.jsxs(Ue, { size: r, disabled: i, children: [
|
|
35117
|
+
/* @__PURE__ */ c.jsx(Ve, { children: e.itemsPerPage }),
|
|
35118
35118
|
/* @__PURE__ */ c.jsx(Ot, { value: t, size: r, onChange: a, sx: Q(B({}, o), { minHeight: "37px" }), children: n.map((s, l) => /* @__PURE__ */ c.jsx(et, { value: s, children: s }, `items-per-page-${s}-${l}`)) })
|
|
35119
35119
|
] }), UF = (e, t) => {
|
|
35120
35120
|
const [n, r] = Y(null), { sdk: i } = vt(), o = () => E(void 0, null, function* () {
|
|
@@ -35555,8 +35555,8 @@ const Iy = qe(/* @__PURE__ */ c.jsx("path", {
|
|
|
35555
35555
|
gap: 1
|
|
35556
35556
|
},
|
|
35557
35557
|
children: [
|
|
35558
|
-
/* @__PURE__ */ c.jsxs(
|
|
35559
|
-
/* @__PURE__ */ c.jsx(
|
|
35558
|
+
/* @__PURE__ */ c.jsxs(Ue, { children: [
|
|
35559
|
+
/* @__PURE__ */ c.jsx(Ve, { required: !0, color: "primary", children: n.type }),
|
|
35560
35560
|
/* @__PURE__ */ c.jsx(
|
|
35561
35561
|
Ot,
|
|
35562
35562
|
{
|
|
@@ -35569,8 +35569,8 @@ const Iy = qe(/* @__PURE__ */ c.jsx("path", {
|
|
|
35569
35569
|
}
|
|
35570
35570
|
)
|
|
35571
35571
|
] }),
|
|
35572
|
-
/* @__PURE__ */ c.jsxs(
|
|
35573
|
-
/* @__PURE__ */ c.jsx(
|
|
35572
|
+
/* @__PURE__ */ c.jsxs(Ue, { children: [
|
|
35573
|
+
/* @__PURE__ */ c.jsx(Ve, { required: !0, color: "primary", children: n.relationship }),
|
|
35574
35574
|
/* @__PURE__ */ c.jsx(
|
|
35575
35575
|
Ot,
|
|
35576
35576
|
{
|
|
@@ -35583,8 +35583,8 @@ const Iy = qe(/* @__PURE__ */ c.jsx("path", {
|
|
|
35583
35583
|
}
|
|
35584
35584
|
)
|
|
35585
35585
|
] }),
|
|
35586
|
-
/* @__PURE__ */ c.jsxs(
|
|
35587
|
-
/* @__PURE__ */ c.jsx(
|
|
35586
|
+
/* @__PURE__ */ c.jsxs(Ue, { children: [
|
|
35587
|
+
/* @__PURE__ */ c.jsx(Ve, { required: !0, color: "primary", children: n.entity }),
|
|
35588
35588
|
/* @__PURE__ */ c.jsx(
|
|
35589
35589
|
Ot,
|
|
35590
35590
|
{
|
|
@@ -35593,12 +35593,12 @@ const Iy = qe(/* @__PURE__ */ c.jsx("path", {
|
|
|
35593
35593
|
name: "entity_id",
|
|
35594
35594
|
onChange: (C, b) => a(b),
|
|
35595
35595
|
sx: { width: "100%", mr: { xs: 0, md: 1 }, mb: { xs: 1, md: 0 }, minHeight: "37px" },
|
|
35596
|
-
endDecorator: !m && /* @__PURE__ */ c.jsx(
|
|
35596
|
+
endDecorator: !m && /* @__PURE__ */ c.jsx(An, { size: "sm" }),
|
|
35597
35597
|
children: m && m.map((C) => /* @__PURE__ */ c.jsx(et, { value: C.id, children: C.name }, `entity--${C.id}`))
|
|
35598
35598
|
}
|
|
35599
35599
|
)
|
|
35600
35600
|
] }),
|
|
35601
|
-
/* @__PURE__ */ c.jsx(
|
|
35601
|
+
/* @__PURE__ */ c.jsx(Fe, { startDecorator: /* @__PURE__ */ c.jsx(sc, {}), disabled: !o || !s, onClick: v, sx: { mb: 1 }, children: n.add })
|
|
35602
35602
|
]
|
|
35603
35603
|
}
|
|
35604
35604
|
),
|
|
@@ -35645,7 +35645,7 @@ const Iy = qe(/* @__PURE__ */ c.jsx("path", {
|
|
|
35645
35645
|
/* @__PURE__ */ c.jsx(pe, { level: "body-sm", fontWeight: "600", children: e.labels.exportAllUsersLeads }),
|
|
35646
35646
|
/* @__PURE__ */ c.jsx(pe, { level: "body-xs", color: "neutral", children: e.labels.exportAllUsersLeadsDescription })
|
|
35647
35647
|
] }),
|
|
35648
|
-
/* @__PURE__ */ c.jsx("td", { children: /* @__PURE__ */ c.jsx(
|
|
35648
|
+
/* @__PURE__ */ c.jsx("td", { children: /* @__PURE__ */ c.jsx(Fe, { loading: t, onClick: f, children: e.labels.exportAllUsersLeads }) })
|
|
35649
35649
|
] }) })
|
|
35650
35650
|
]
|
|
35651
35651
|
}
|
|
@@ -35692,7 +35692,7 @@ const Iy = qe(/* @__PURE__ */ c.jsx("path", {
|
|
|
35692
35692
|
[o, s, u]
|
|
35693
35693
|
), p = {
|
|
35694
35694
|
opacity: a ? 0.6 : void 0,
|
|
35695
|
-
transform:
|
|
35695
|
+
transform: nr.Translate.toString(d),
|
|
35696
35696
|
transition: f
|
|
35697
35697
|
}, m = (v) => v.split(" ").map((x) => x[0]).join("").toUpperCase().substring(0, 2), g = (v) => r != null && r.color ? r.color : `hsl(${v.split("").reduce((y, C) => C.charCodeAt(0) + ((y << 5) - y), 0) % 360}, 70%, 80%)`;
|
|
35698
35698
|
return /* @__PURE__ */ c.jsx(fl.Provider, { value: h, children: /* @__PURE__ */ c.jsx(
|
|
@@ -35893,7 +35893,7 @@ const Iy = qe(/* @__PURE__ */ c.jsx("path", {
|
|
|
35893
35893
|
country: "Country",
|
|
35894
35894
|
phoneCountryCode: "Phone country code",
|
|
35895
35895
|
phoneNumber: "Phone number"
|
|
35896
|
-
}, ne = ({ title: X }) => /* @__PURE__ */ c.jsx(_e, { title: X, sx: { maxWidth: 300 }, children: /* @__PURE__ */ c.jsx(
|
|
35896
|
+
}, ne = ({ title: X }) => /* @__PURE__ */ c.jsx(_e, { title: X, sx: { maxWidth: 300 }, children: /* @__PURE__ */ c.jsx(cr, { color: "primary" }) }), se = () => /* @__PURE__ */ c.jsxs(ln, { sx: { mb: 1.5 }, children: [
|
|
35897
35897
|
/* @__PURE__ */ c.jsx(
|
|
35898
35898
|
Dr,
|
|
35899
35899
|
{
|
|
@@ -35904,8 +35904,8 @@ const Iy = qe(/* @__PURE__ */ c.jsx("path", {
|
|
|
35904
35904
|
onChange: (X) => p(X)
|
|
35905
35905
|
}
|
|
35906
35906
|
),
|
|
35907
|
-
/* @__PURE__ */ c.jsxs(
|
|
35908
|
-
/* @__PURE__ */ c.jsx(
|
|
35907
|
+
/* @__PURE__ */ c.jsxs(Ue, { sx: { mb: 2 }, children: [
|
|
35908
|
+
/* @__PURE__ */ c.jsx(Ve, { color: "primary", children: r.leadPosition }),
|
|
35909
35909
|
/* @__PURE__ */ c.jsxs(
|
|
35910
35910
|
Ot,
|
|
35911
35911
|
{
|
|
@@ -35920,20 +35920,36 @@ const Iy = qe(/* @__PURE__ */ c.jsx("path", {
|
|
|
35920
35920
|
}
|
|
35921
35921
|
)
|
|
35922
35922
|
] })
|
|
35923
|
-
] }), oe = () => /* @__PURE__ */ c.jsxs(ln, { sx: { mb:
|
|
35924
|
-
/* @__PURE__ */ c.
|
|
35925
|
-
|
|
35926
|
-
|
|
35927
|
-
|
|
35928
|
-
|
|
35929
|
-
|
|
35930
|
-
|
|
35931
|
-
|
|
35932
|
-
|
|
35933
|
-
|
|
35934
|
-
|
|
35923
|
+
] }), oe = () => /* @__PURE__ */ c.jsxs(ln, { sx: { mb: 1.5 }, children: [
|
|
35924
|
+
/* @__PURE__ */ c.jsx(
|
|
35925
|
+
pn,
|
|
35926
|
+
{
|
|
35927
|
+
label: r.signInLabel,
|
|
35928
|
+
placeholder: "",
|
|
35929
|
+
defaultValue: "",
|
|
35930
|
+
value: l,
|
|
35931
|
+
required: !1,
|
|
35932
|
+
size: "md",
|
|
35933
|
+
endDecorator: /* @__PURE__ */ c.jsx(ne, { title: r.signInLabelInfoMessage }),
|
|
35934
|
+
onChange: (X) => u(X.target.value)
|
|
35935
|
+
}
|
|
35936
|
+
),
|
|
35937
|
+
/* @__PURE__ */ c.jsx(
|
|
35938
|
+
pn,
|
|
35939
|
+
{
|
|
35940
|
+
label: r.authenticationHandler,
|
|
35941
|
+
placeholder: "",
|
|
35942
|
+
defaultValue: d,
|
|
35943
|
+
value: "",
|
|
35944
|
+
required: !1,
|
|
35945
|
+
size: "md",
|
|
35946
|
+
endDecorator: /* @__PURE__ */ c.jsx(ne, { title: r.authenticationHandlerInfoMessage }),
|
|
35947
|
+
onChange: (X) => f(X.target.value)
|
|
35948
|
+
}
|
|
35949
|
+
)
|
|
35950
|
+
] }), J = () => /* @__PURE__ */ c.jsxs(ln, { sx: { mb: 1.5 }, children: [
|
|
35935
35951
|
/* @__PURE__ */ c.jsx(
|
|
35936
|
-
|
|
35952
|
+
pn,
|
|
35937
35953
|
{
|
|
35938
35954
|
label: r.id,
|
|
35939
35955
|
placeholder: "",
|
|
@@ -35945,7 +35961,7 @@ const Iy = qe(/* @__PURE__ */ c.jsx("path", {
|
|
|
35945
35961
|
}
|
|
35946
35962
|
),
|
|
35947
35963
|
/* @__PURE__ */ c.jsx(
|
|
35948
|
-
|
|
35964
|
+
pn,
|
|
35949
35965
|
{
|
|
35950
35966
|
label: r.name,
|
|
35951
35967
|
placeholder: "",
|
|
@@ -35960,18 +35976,18 @@ const Iy = qe(/* @__PURE__ */ c.jsx("path", {
|
|
|
35960
35976
|
A(he), $(he !== "STANDARD" ? null : "left");
|
|
35961
35977
|
};
|
|
35962
35978
|
return /* @__PURE__ */ c.jsxs(ie, { mt: 1, children: [
|
|
35963
|
-
e === "classic-quiz" || e === "poll" ? /* @__PURE__ */ c.jsxs(ie, { mb:
|
|
35964
|
-
/* @__PURE__ */ c.jsxs(
|
|
35965
|
-
/* @__PURE__ */ c.jsx(
|
|
35979
|
+
e === "classic-quiz" || e === "poll" ? /* @__PURE__ */ c.jsxs(ie, { mb: 1.5, children: [
|
|
35980
|
+
/* @__PURE__ */ c.jsxs(Ue, { sx: { mb: 1.5 }, children: [
|
|
35981
|
+
/* @__PURE__ */ c.jsx(Ve, { color: "primary", children: r.layoutTemplate }),
|
|
35966
35982
|
/* @__PURE__ */ c.jsxs(Ot, { value: I, size: "md", name: "layout_template", onChange: le, children: [
|
|
35967
35983
|
/* @__PURE__ */ c.jsx(et, { value: "STANDARD", children: "Standard" }),
|
|
35968
35984
|
/* @__PURE__ */ c.jsx(et, { value: "SPLIT", children: "Split" }),
|
|
35969
35985
|
/* @__PURE__ */ c.jsx(et, { value: "OVERLAY", children: "Overlay" })
|
|
35970
35986
|
] }),
|
|
35971
|
-
/* @__PURE__ */ c.jsx(
|
|
35987
|
+
/* @__PURE__ */ c.jsx(mr, { children: r.layoutTemplateDescription })
|
|
35972
35988
|
] }),
|
|
35973
|
-
/* @__PURE__ */ c.jsxs(
|
|
35974
|
-
/* @__PURE__ */ c.jsx(
|
|
35989
|
+
/* @__PURE__ */ c.jsxs(Ue, { sx: { mb: 1.5 }, children: [
|
|
35990
|
+
/* @__PURE__ */ c.jsx(Ve, { color: "primary", children: r.imagePosition }),
|
|
35975
35991
|
/* @__PURE__ */ c.jsxs(
|
|
35976
35992
|
Ot,
|
|
35977
35993
|
{
|
|
@@ -35986,10 +36002,10 @@ const Iy = qe(/* @__PURE__ */ c.jsx("path", {
|
|
|
35986
36002
|
]
|
|
35987
36003
|
}
|
|
35988
36004
|
),
|
|
35989
|
-
/* @__PURE__ */ c.jsx(
|
|
36005
|
+
/* @__PURE__ */ c.jsx(mr, { children: r.imagePositionDescription })
|
|
35990
36006
|
] })
|
|
35991
36007
|
] }) : /* @__PURE__ */ c.jsx(c.Fragment, {}),
|
|
35992
|
-
e === "classic-quiz" ? /* @__PURE__ */ c.jsxs(ie, { display: "flex", alignItems: "center", mb: 1, children: [
|
|
36008
|
+
e === "classic-quiz" ? /* @__PURE__ */ c.jsxs(ie, { display: "flex", alignItems: "center", mb: 1.5, children: [
|
|
35993
36009
|
/* @__PURE__ */ c.jsx(
|
|
35994
36010
|
ci,
|
|
35995
36011
|
{
|
|
@@ -36004,9 +36020,9 @@ const Iy = qe(/* @__PURE__ */ c.jsx("path", {
|
|
|
36004
36020
|
}
|
|
36005
36021
|
}
|
|
36006
36022
|
),
|
|
36007
|
-
/* @__PURE__ */ c.jsx(_e, { title: r.showAnswerExplanationsTooltip, sx: { ml:
|
|
36023
|
+
/* @__PURE__ */ c.jsx(_e, { title: r.showAnswerExplanationsTooltip, sx: { ml: 1, maxWidth: 300 }, children: /* @__PURE__ */ c.jsx(cr, { color: "primary", fontSize: "small" }) })
|
|
36008
36024
|
] }) : /* @__PURE__ */ c.jsx(c.Fragment, {}),
|
|
36009
|
-
/* @__PURE__ */ c.jsxs(ie, { display: "flex", mb: 1, children: [
|
|
36025
|
+
/* @__PURE__ */ c.jsxs(ie, { display: "flex", mb: 1.5, alignItems: "center", children: [
|
|
36010
36026
|
/* @__PURE__ */ c.jsx(
|
|
36011
36027
|
ci,
|
|
36012
36028
|
{
|
|
@@ -36021,10 +36037,10 @@ const Iy = qe(/* @__PURE__ */ c.jsx("path", {
|
|
|
36021
36037
|
}
|
|
36022
36038
|
}
|
|
36023
36039
|
),
|
|
36024
|
-
n !== "LEAD" && /* @__PURE__ */ c.jsx(_e, { title: r.configureLeadsDisabledMessage, sx: { ml:
|
|
36040
|
+
n !== "LEAD" && /* @__PURE__ */ c.jsx(_e, { title: r.configureLeadsDisabledMessage, sx: { ml: 1, maxWidth: 300 }, children: /* @__PURE__ */ c.jsx(cr, { color: "primary", fontSize: "small" }) })
|
|
36025
36041
|
] }),
|
|
36026
36042
|
i && se(),
|
|
36027
|
-
/* @__PURE__ */ c.jsxs(ie, { display: "flex", mb: 1, children: [
|
|
36043
|
+
/* @__PURE__ */ c.jsxs(ie, { display: "flex", mb: 1.5, alignItems: "center", children: [
|
|
36028
36044
|
/* @__PURE__ */ c.jsx(
|
|
36029
36045
|
ci,
|
|
36030
36046
|
{
|
|
@@ -36039,13 +36055,13 @@ const Iy = qe(/* @__PURE__ */ c.jsx("path", {
|
|
|
36039
36055
|
}
|
|
36040
36056
|
}
|
|
36041
36057
|
),
|
|
36042
|
-
n !== "REGISTERED" && /* @__PURE__ */ c.jsx(_e, { title: r.configureSignInDisabledMessage, sx: { ml:
|
|
36058
|
+
n !== "REGISTERED" && /* @__PURE__ */ c.jsx(_e, { title: r.configureSignInDisabledMessage, sx: { ml: 1, maxWidth: 300 }, children: /* @__PURE__ */ c.jsx(cr, { color: "primary", fontSize: "small" }) })
|
|
36043
36059
|
] }),
|
|
36044
36060
|
a && oe(),
|
|
36045
36061
|
/* @__PURE__ */ c.jsx(
|
|
36046
36062
|
ci,
|
|
36047
36063
|
{
|
|
36048
|
-
sx: { label: { mb: 1 } },
|
|
36064
|
+
sx: { label: { mb: 1.5 } },
|
|
36049
36065
|
defaultValue: v,
|
|
36050
36066
|
label: r.addCampaignInfo,
|
|
36051
36067
|
labelPosition: "end",
|
|
@@ -36058,7 +36074,7 @@ const Iy = qe(/* @__PURE__ */ c.jsx("path", {
|
|
|
36058
36074
|
}
|
|
36059
36075
|
),
|
|
36060
36076
|
v && J(),
|
|
36061
|
-
/* @__PURE__ */ c.jsxs(ie, { position: "relative", mb:
|
|
36077
|
+
/* @__PURE__ */ c.jsxs(ie, { position: "relative", mb: 1.5, children: [
|
|
36062
36078
|
/* @__PURE__ */ c.jsx(
|
|
36063
36079
|
Jc,
|
|
36064
36080
|
{
|
|
@@ -36075,7 +36091,7 @@ const Iy = qe(/* @__PURE__ */ c.jsx("path", {
|
|
|
36075
36091
|
}
|
|
36076
36092
|
),
|
|
36077
36093
|
/* @__PURE__ */ c.jsx(_e, { title: r.copyToClipboard, children: /* @__PURE__ */ c.jsx(
|
|
36078
|
-
|
|
36094
|
+
Fe,
|
|
36079
36095
|
{
|
|
36080
36096
|
onClick: () => {
|
|
36081
36097
|
navigator.clipboard.writeText(F);
|
|
@@ -36087,7 +36103,7 @@ const Iy = qe(/* @__PURE__ */ c.jsx("path", {
|
|
|
36087
36103
|
}
|
|
36088
36104
|
) })
|
|
36089
36105
|
] }),
|
|
36090
|
-
/* @__PURE__ */ c.jsx(Rp, { variant: "outlined", color: "primary", startDecorator: /* @__PURE__ */ c.jsx(
|
|
36106
|
+
/* @__PURE__ */ c.jsx(Rp, { variant: "outlined", color: "primary", startDecorator: /* @__PURE__ */ c.jsx(cr, {}), sx: { mb: 1.5, width: "fit-content" }, children: /* @__PURE__ */ c.jsxs(pe, { color: "primary", fontSize: 14, fontWeight: 500, children: [
|
|
36091
36107
|
r.divElementTextInfo,
|
|
36092
36108
|
/* @__PURE__ */ c.jsx(Mi, { href: "https://docs.fansunitedmedia.com/docs/user-centric-widgets#/", underline: "always", target: "_blank", rel: "noopener noreferrer", children: "User-centric widgets" })
|
|
36093
36109
|
] }) })
|
|
@@ -36106,9 +36122,9 @@ const Iy = qe(/* @__PURE__ */ c.jsx("path", {
|
|
|
36106
36122
|
data-widget-mode="${m}"`, $ = `<div
|
|
36107
36123
|
data-component="fu-widget"
|
|
36108
36124
|
data-content-type="list"${v}${x}${w}${y}${I}${A}${T}
|
|
36109
|
-
></div>`, W = ({ title: j }) => /* @__PURE__ */ c.jsx(_e, { title: j, sx: { maxWidth: 300 }, children: /* @__PURE__ */ c.jsx(
|
|
36125
|
+
></div>`, W = ({ title: j }) => /* @__PURE__ */ c.jsx(_e, { title: j, sx: { maxWidth: 300 }, children: /* @__PURE__ */ c.jsx(cr, { color: "primary" }) }), P = () => /* @__PURE__ */ c.jsxs(ln, { sx: { pb: 1, mb: 3 }, children: [
|
|
36110
36126
|
/* @__PURE__ */ c.jsx(
|
|
36111
|
-
|
|
36127
|
+
pn,
|
|
36112
36128
|
{
|
|
36113
36129
|
label: t.classicQuizURL,
|
|
36114
36130
|
placeholder: "",
|
|
@@ -36120,7 +36136,7 @@ const Iy = qe(/* @__PURE__ */ c.jsx("path", {
|
|
|
36120
36136
|
}
|
|
36121
36137
|
),
|
|
36122
36138
|
/* @__PURE__ */ c.jsx(
|
|
36123
|
-
|
|
36139
|
+
pn,
|
|
36124
36140
|
{
|
|
36125
36141
|
label: t.eitherOrURL,
|
|
36126
36142
|
placeholder: "",
|
|
@@ -36132,7 +36148,7 @@ const Iy = qe(/* @__PURE__ */ c.jsx("path", {
|
|
|
36132
36148
|
}
|
|
36133
36149
|
),
|
|
36134
36150
|
/* @__PURE__ */ c.jsx(
|
|
36135
|
-
|
|
36151
|
+
pn,
|
|
36136
36152
|
{
|
|
36137
36153
|
label: t.pollURL,
|
|
36138
36154
|
placeholder: "",
|
|
@@ -36165,15 +36181,15 @@ const Iy = qe(/* @__PURE__ */ c.jsx("path", {
|
|
|
36165
36181
|
}
|
|
36166
36182
|
),
|
|
36167
36183
|
/* @__PURE__ */ c.jsxs(
|
|
36168
|
-
|
|
36184
|
+
Ue,
|
|
36169
36185
|
{
|
|
36170
36186
|
sx: () => ({
|
|
36171
36187
|
marginBottom: "16px"
|
|
36172
36188
|
}),
|
|
36173
36189
|
children: [
|
|
36174
|
-
/* @__PURE__ */ c.jsx(
|
|
36190
|
+
/* @__PURE__ */ c.jsx(Ve, { color: "primary", children: t.mode }),
|
|
36175
36191
|
/* @__PURE__ */ c.jsx(Ot, { defaultValue: m, onChange: (j, z) => g(z), children: az.map((j, z) => /* @__PURE__ */ c.jsx(et, { value: j, children: sz[j] }, `basic-select-${j}-${z}`)) }),
|
|
36176
|
-
/* @__PURE__ */ c.jsx(
|
|
36192
|
+
/* @__PURE__ */ c.jsx(mr, { children: t.modeDescription })
|
|
36177
36193
|
]
|
|
36178
36194
|
}
|
|
36179
36195
|
)
|
|
@@ -36212,7 +36228,7 @@ const Iy = qe(/* @__PURE__ */ c.jsx("path", {
|
|
|
36212
36228
|
}
|
|
36213
36229
|
),
|
|
36214
36230
|
/* @__PURE__ */ c.jsx(_e, { title: t.copyToClipboard, children: /* @__PURE__ */ c.jsx(
|
|
36215
|
-
|
|
36231
|
+
Fe,
|
|
36216
36232
|
{
|
|
36217
36233
|
onClick: () => {
|
|
36218
36234
|
navigator.clipboard.writeText($);
|
|
@@ -36224,7 +36240,7 @@ const Iy = qe(/* @__PURE__ */ c.jsx("path", {
|
|
|
36224
36240
|
}
|
|
36225
36241
|
) })
|
|
36226
36242
|
] }),
|
|
36227
|
-
/* @__PURE__ */ c.jsx(Rp, { variant: "outlined", color: "primary", startDecorator: /* @__PURE__ */ c.jsx(
|
|
36243
|
+
/* @__PURE__ */ c.jsx(Rp, { variant: "outlined", color: "primary", startDecorator: /* @__PURE__ */ c.jsx(cr, {}), sx: { mb: 1, width: "fit-content" }, children: /* @__PURE__ */ c.jsxs(pe, { color: "primary", fontSize: 14, fontWeight: 500, children: [
|
|
36228
36244
|
t.divElementTextInfo,
|
|
36229
36245
|
/* @__PURE__ */ c.jsx(Mi, { href: "https://docs.fansunitedmedia.com/docs/user-centric-widgets#/", underline: "always", target: "_blank", rel: "noopener noreferrer", children: "User-centric widgets" })
|
|
36230
36246
|
] }) })
|
|
@@ -36303,7 +36319,7 @@ const Iy = qe(/* @__PURE__ */ c.jsx("path", {
|
|
|
36303
36319
|
},
|
|
36304
36320
|
isOptionEqualToValue: (I, A) => I.id === A.id,
|
|
36305
36321
|
endDecorator: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
36306
|
-
f && /* @__PURE__ */ c.jsx(
|
|
36322
|
+
f && /* @__PURE__ */ c.jsx(An, { size: "sm", sx: { bgcolor: "primary", marginRight: 2 } }),
|
|
36307
36323
|
/* @__PURE__ */ c.jsx(nu, { orientation: "vertical" }),
|
|
36308
36324
|
/* @__PURE__ */ c.jsxs(
|
|
36309
36325
|
Ot,
|
|
@@ -36564,7 +36580,7 @@ const Iy = qe(/* @__PURE__ */ c.jsx("path", {
|
|
|
36564
36580
|
}
|
|
36565
36581
|
},
|
|
36566
36582
|
isOptionEqualToValue: (T, $) => T.id === $.id,
|
|
36567
|
-
endDecorator: d ? /* @__PURE__ */ c.jsx(
|
|
36583
|
+
endDecorator: d ? /* @__PURE__ */ c.jsx(An, { size: "sm", sx: { bgcolor: "primary" } }) : null,
|
|
36568
36584
|
placeholder: i.length > 0 ? "" : e == null ? void 0 : e.searchPlayersPlaceholder,
|
|
36569
36585
|
options: a,
|
|
36570
36586
|
filterSelectedOptions: !0,
|
|
@@ -36602,7 +36618,7 @@ const Iy = qe(/* @__PURE__ */ c.jsx("path", {
|
|
|
36602
36618
|
/**
|
|
36603
36619
|
* Labeled single-line text input using Joy UI.
|
|
36604
36620
|
*/
|
|
36605
|
-
InformationInput:
|
|
36621
|
+
InformationInput: pn,
|
|
36606
36622
|
/**
|
|
36607
36623
|
* Rich text editor built on ReactQuill with optional label and helper text.
|
|
36608
36624
|
*/
|
|
@@ -36797,7 +36813,7 @@ const Iy = qe(/* @__PURE__ */ c.jsx("path", {
|
|
|
36797
36813
|
* In search mode (when no teamIds), performs debounced API search by player name.
|
|
36798
36814
|
*/
|
|
36799
36815
|
PlayersSearchSelect: hz
|
|
36800
|
-
}, Ty =
|
|
36816
|
+
}, Ty = $n(null), gz = ({ children: e }) => /* @__PURE__ */ c.jsx(Ty.Provider, { value: pz, children: e }), mz = () => {
|
|
36801
36817
|
const e = Ht(Ty);
|
|
36802
36818
|
if (!e)
|
|
36803
36819
|
throw new Error("useComponentContext must be used within a ComponentProvider");
|