fansunited-management-components 1.72.0 → 1.72.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.es.js +174 -171
- package/index.umd.js +26 -26
- package/package.json +1 -1
- package/src/constants/languages.d.ts +4 -0
- package/src/constants/languages.d.ts.map +1 -1
- package/src/index.d.ts +4 -0
- package/src/index.d.ts.map +1 -1
package/index.es.js
CHANGED
|
@@ -43,9 +43,9 @@ import { unstable_batchedUpdates as Wo, createPortal as Xm } from "react-dom";
|
|
|
43
43
|
import Zm from "@emotion/styled";
|
|
44
44
|
import { ThemeContext as xC, keyframes as ev, css as Zd, jsx as Te } from "@emotion/react";
|
|
45
45
|
import au from "react-quill";
|
|
46
|
-
import { FormControl as Me, FormLabel as Le, FormHelperText as nn, Box as te, Tabs as tv, TabList as nv, Tab as td, TabPanel as jf, Textarea as ja, Select as Qe, Option as De, Modal as wo, ModalDialog as Co, ModalClose as rv, DialogTitle as Io, DialogContent as So, Grid as ar, Typography as ce, CircularProgress as Pn, Button as
|
|
46
|
+
import { FormControl as Me, FormLabel as Le, FormHelperText as nn, Box as te, Tabs as tv, TabList as nv, Tab as td, TabPanel as jf, Textarea as ja, Select as Qe, Option as De, Modal as wo, ModalDialog as Co, ModalClose as rv, DialogTitle as Io, DialogContent as So, Grid as ar, Typography as ce, CircularProgress as Pn, Button as Fe, Snackbar as wC, Input as Ln, Tooltip as Ae, IconButton as pt, styled as CC, Slider as IC, DialogActions as Ma, Card as tn, Stack as uo, AspectRatio as iv, Skeleton as ov, CardContent as Ao, AccordionGroup as av, Accordion as sv, AccordionSummary as lv, AccordionDetails as cv, ListItemDecorator as li, Link as _o, Dropdown as SC, ButtonGroup as AC, MenuButton as Mf, Menu as _C, MenuItem as TC, Avatar as wt, Chip as ft, selectClasses as Ws, Divider as xi, ListDivider as EC, Autocomplete as Kr, AutocompleteOption as qr, ChipDelete as wi, Switch as kC, switchClasses as PC, Table as La, Sheet as $n, ListItem as uv, List as dv, Checkbox as Gs, Alert as eh, Radio as Gi, RadioGroup as RC, Stepper as hv, Step as Ks, StepIndicator as qs } from "@mui/joy";
|
|
47
47
|
import { ContentCopy as $a, Upload as fv, Check as Lf, Edit as pv, Delete as th, Add as Ys, Close as Yr, Remove as gv, EmojiEvents as su, Error as DC, Translate as OC } from "@mui/icons-material";
|
|
48
|
-
const
|
|
48
|
+
const Ne = {
|
|
49
49
|
ar: { key: "ar", name: "Arabic" },
|
|
50
50
|
bg: { key: "bg", name: "Bulgarian" },
|
|
51
51
|
da: { key: "da", name: "Danish" },
|
|
@@ -64,45 +64,47 @@ const ze = {
|
|
|
64
64
|
sk: { key: "sk", name: "Slovak" },
|
|
65
65
|
sr: { key: "sr", name: "Serbian" },
|
|
66
66
|
sv: { key: "sv", name: "Swedish" },
|
|
67
|
-
sw: { key: "sw", name: "Swahili" }
|
|
67
|
+
sw: { key: "sw", name: "Swahili" },
|
|
68
|
+
tr: { key: "tr", name: "Turkish" }
|
|
68
69
|
}, pa = {
|
|
69
|
-
ar:
|
|
70
|
-
"ar-dz":
|
|
71
|
-
"ar-bh":
|
|
72
|
-
"ar-eg":
|
|
73
|
-
"ar-iq":
|
|
74
|
-
"ar-jo":
|
|
75
|
-
"ar-kw":
|
|
76
|
-
"ar-lb":
|
|
77
|
-
"ar-ly":
|
|
78
|
-
"ar-ma":
|
|
79
|
-
"ar-om":
|
|
80
|
-
"ar-qa":
|
|
81
|
-
"ar-sa":
|
|
82
|
-
"ar-sy":
|
|
83
|
-
"ar-tn":
|
|
84
|
-
"ar-ae":
|
|
85
|
-
"ar-ye":
|
|
86
|
-
bg:
|
|
87
|
-
da:
|
|
88
|
-
de:
|
|
89
|
-
en:
|
|
90
|
-
"en-gb":
|
|
91
|
-
"en-us":
|
|
92
|
-
el:
|
|
93
|
-
es:
|
|
94
|
-
fr:
|
|
95
|
-
hi:
|
|
96
|
-
hu:
|
|
97
|
-
it:
|
|
98
|
-
nl:
|
|
99
|
-
pt:
|
|
100
|
-
"pt-br":
|
|
101
|
-
ro:
|
|
102
|
-
sk:
|
|
103
|
-
sr:
|
|
104
|
-
sv:
|
|
105
|
-
sw:
|
|
70
|
+
ar: Ne.ar,
|
|
71
|
+
"ar-dz": Ne.ar,
|
|
72
|
+
"ar-bh": Ne.ar,
|
|
73
|
+
"ar-eg": Ne.ar,
|
|
74
|
+
"ar-iq": Ne.ar,
|
|
75
|
+
"ar-jo": Ne.ar,
|
|
76
|
+
"ar-kw": Ne.ar,
|
|
77
|
+
"ar-lb": Ne.ar,
|
|
78
|
+
"ar-ly": Ne.ar,
|
|
79
|
+
"ar-ma": Ne.ar,
|
|
80
|
+
"ar-om": Ne.ar,
|
|
81
|
+
"ar-qa": Ne.ar,
|
|
82
|
+
"ar-sa": Ne.ar,
|
|
83
|
+
"ar-sy": Ne.ar,
|
|
84
|
+
"ar-tn": Ne.ar,
|
|
85
|
+
"ar-ae": Ne.ar,
|
|
86
|
+
"ar-ye": Ne.ar,
|
|
87
|
+
bg: Ne.bg,
|
|
88
|
+
da: Ne.da,
|
|
89
|
+
de: Ne.de,
|
|
90
|
+
en: Ne.en,
|
|
91
|
+
"en-gb": Ne.en,
|
|
92
|
+
"en-us": Ne.en,
|
|
93
|
+
el: Ne.el,
|
|
94
|
+
es: Ne.es,
|
|
95
|
+
fr: Ne.fr,
|
|
96
|
+
hi: Ne.hi,
|
|
97
|
+
hu: Ne.hu,
|
|
98
|
+
it: Ne.it,
|
|
99
|
+
nl: Ne.nl,
|
|
100
|
+
pt: Ne.pt,
|
|
101
|
+
"pt-br": Ne["pt-br"],
|
|
102
|
+
ro: Ne.ro,
|
|
103
|
+
sk: Ne.sk,
|
|
104
|
+
sr: Ne.sr,
|
|
105
|
+
sv: Ne.sv,
|
|
106
|
+
sw: Ne.sw,
|
|
107
|
+
tr: Ne.tr
|
|
106
108
|
}, Lr = {
|
|
107
109
|
ar: "sa",
|
|
108
110
|
bg: "bg",
|
|
@@ -122,7 +124,8 @@ const ze = {
|
|
|
122
124
|
sk: "sk",
|
|
123
125
|
sr: "rs",
|
|
124
126
|
sv: "se",
|
|
125
|
-
sw: "ke"
|
|
127
|
+
sw: "ke",
|
|
128
|
+
tr: "tr"
|
|
126
129
|
};
|
|
127
130
|
var un = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
128
131
|
function Un(t) {
|
|
@@ -10998,7 +11001,7 @@ function Rh(t, ...e) {
|
|
|
10998
11001
|
}
|
|
10999
11002
|
return zb.create(t, ...e);
|
|
11000
11003
|
}
|
|
11001
|
-
function
|
|
11004
|
+
function Be(t, e, ...n) {
|
|
11002
11005
|
if (!t)
|
|
11003
11006
|
throw Rh(e, ...n);
|
|
11004
11007
|
}
|
|
@@ -11427,7 +11430,7 @@ function ia(t) {
|
|
|
11427
11430
|
function LT(t, e = !1) {
|
|
11428
11431
|
return C(this, null, function* () {
|
|
11429
11432
|
const n = We(t), r = yield n.getIdToken(e), i = jh(r);
|
|
11430
|
-
|
|
11433
|
+
Be(
|
|
11431
11434
|
i && i.exp && i.auth_time && i.iat,
|
|
11432
11435
|
n.auth,
|
|
11433
11436
|
"internal-error"
|
|
@@ -11461,15 +11464,15 @@ function jh(t) {
|
|
|
11461
11464
|
}
|
|
11462
11465
|
function gp(t) {
|
|
11463
11466
|
const e = jh(t);
|
|
11464
|
-
return
|
|
11467
|
+
return Be(
|
|
11465
11468
|
e,
|
|
11466
11469
|
"internal-error"
|
|
11467
11470
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
11468
|
-
),
|
|
11471
|
+
), Be(
|
|
11469
11472
|
typeof e.exp != "undefined",
|
|
11470
11473
|
"internal-error"
|
|
11471
11474
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
11472
|
-
),
|
|
11475
|
+
), Be(
|
|
11473
11476
|
typeof e.iat != "undefined",
|
|
11474
11477
|
"internal-error"
|
|
11475
11478
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
@@ -11622,7 +11625,7 @@ function al(t) {
|
|
|
11622
11625
|
return C(this, null, function* () {
|
|
11623
11626
|
var e;
|
|
11624
11627
|
const n = t.auth, r = yield t.getIdToken(), i = yield Ca(t, Gb(n, { idToken: r }));
|
|
11625
|
-
|
|
11628
|
+
Be(
|
|
11626
11629
|
i == null ? void 0 : i.users.length,
|
|
11627
11630
|
n,
|
|
11628
11631
|
"internal-error"
|
|
@@ -11735,15 +11738,15 @@ class Yi {
|
|
|
11735
11738
|
return !this.expirationTime || Date.now() > this.expirationTime - 3e4;
|
|
11736
11739
|
}
|
|
11737
11740
|
updateFromServerResponse(e) {
|
|
11738
|
-
|
|
11741
|
+
Be(
|
|
11739
11742
|
e.idToken,
|
|
11740
11743
|
"internal-error"
|
|
11741
11744
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
11742
|
-
),
|
|
11745
|
+
), Be(
|
|
11743
11746
|
typeof e.idToken != "undefined",
|
|
11744
11747
|
"internal-error"
|
|
11745
11748
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
11746
|
-
),
|
|
11749
|
+
), Be(
|
|
11747
11750
|
typeof e.refreshToken != "undefined",
|
|
11748
11751
|
"internal-error"
|
|
11749
11752
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
@@ -11752,7 +11755,7 @@ class Yi {
|
|
|
11752
11755
|
this.updateTokensAndExpiration(e.idToken, e.refreshToken, n);
|
|
11753
11756
|
}
|
|
11754
11757
|
updateFromIdToken(e) {
|
|
11755
|
-
|
|
11758
|
+
Be(
|
|
11756
11759
|
e.length !== 0,
|
|
11757
11760
|
"internal-error"
|
|
11758
11761
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
@@ -11762,7 +11765,7 @@ class Yi {
|
|
|
11762
11765
|
}
|
|
11763
11766
|
getToken(e, n = !1) {
|
|
11764
11767
|
return C(this, null, function* () {
|
|
11765
|
-
return !n && this.accessToken && !this.isExpired ? this.accessToken : (
|
|
11768
|
+
return !n && this.accessToken && !this.isExpired ? this.accessToken : (Be(
|
|
11766
11769
|
this.refreshToken,
|
|
11767
11770
|
e,
|
|
11768
11771
|
"user-token-expired"
|
|
@@ -11784,11 +11787,11 @@ class Yi {
|
|
|
11784
11787
|
}
|
|
11785
11788
|
static fromJSON(e, n) {
|
|
11786
11789
|
const { refreshToken: r, accessToken: i, expirationTime: o } = n, a = new Yi();
|
|
11787
|
-
return r && (
|
|
11790
|
+
return r && (Be(typeof r == "string", "internal-error", {
|
|
11788
11791
|
appName: e
|
|
11789
|
-
}), a.refreshToken = r), i && (
|
|
11792
|
+
}), a.refreshToken = r), i && (Be(typeof i == "string", "internal-error", {
|
|
11790
11793
|
appName: e
|
|
11791
|
-
}), a.accessToken = i), o && (
|
|
11794
|
+
}), a.accessToken = i), o && (Be(typeof o == "number", "internal-error", {
|
|
11792
11795
|
appName: e
|
|
11793
11796
|
}), a.expirationTime = o), a;
|
|
11794
11797
|
}
|
|
@@ -11826,7 +11829,7 @@ class Yi {
|
|
|
11826
11829
|
* limitations under the License.
|
|
11827
11830
|
*/
|
|
11828
11831
|
function Er(t, e) {
|
|
11829
|
-
|
|
11832
|
+
Be(typeof t == "string" || typeof t == "undefined", "internal-error", { appName: e });
|
|
11830
11833
|
}
|
|
11831
11834
|
class ir {
|
|
11832
11835
|
constructor(e) {
|
|
@@ -11836,7 +11839,7 @@ class ir {
|
|
|
11836
11839
|
getIdToken(e) {
|
|
11837
11840
|
return C(this, null, function* () {
|
|
11838
11841
|
const n = yield Ca(this, this.stsTokenManager.getToken(this.auth, e));
|
|
11839
|
-
return
|
|
11842
|
+
return Be(
|
|
11840
11843
|
n,
|
|
11841
11844
|
this.auth,
|
|
11842
11845
|
"internal-error"
|
|
@@ -11851,7 +11854,7 @@ class ir {
|
|
|
11851
11854
|
return BT(this);
|
|
11852
11855
|
}
|
|
11853
11856
|
_assign(e) {
|
|
11854
|
-
this !== e && (
|
|
11857
|
+
this !== e && (Be(
|
|
11855
11858
|
this.uid === e.uid,
|
|
11856
11859
|
this.auth,
|
|
11857
11860
|
"internal-error"
|
|
@@ -11863,7 +11866,7 @@ class ir {
|
|
|
11863
11866
|
return n.metadata._copy(this.metadata), n;
|
|
11864
11867
|
}
|
|
11865
11868
|
_onReload(e) {
|
|
11866
|
-
|
|
11869
|
+
Be(
|
|
11867
11870
|
!this.reloadListener,
|
|
11868
11871
|
this.auth,
|
|
11869
11872
|
"internal-error"
|
|
@@ -11920,24 +11923,24 @@ class ir {
|
|
|
11920
11923
|
static _fromJSON(e, n) {
|
|
11921
11924
|
var r, i, o, a, c, l, u, h;
|
|
11922
11925
|
const d = (r = n.displayName) !== null && r !== void 0 ? r : void 0, f = (i = n.email) !== null && i !== void 0 ? i : void 0, p = (o = n.phoneNumber) !== null && o !== void 0 ? o : void 0, m = (a = n.photoURL) !== null && a !== void 0 ? a : void 0, g = (c = n.tenantId) !== null && c !== void 0 ? c : void 0, b = (l = n._redirectEventId) !== null && l !== void 0 ? l : void 0, S = (u = n.createdAt) !== null && u !== void 0 ? u : void 0, I = (h = n.lastLoginAt) !== null && h !== void 0 ? h : void 0, { uid: v, emailVerified: x, isAnonymous: y, providerData: w, stsTokenManager: _ } = n;
|
|
11923
|
-
|
|
11926
|
+
Be(
|
|
11924
11927
|
v && _,
|
|
11925
11928
|
e,
|
|
11926
11929
|
"internal-error"
|
|
11927
11930
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
11928
11931
|
);
|
|
11929
11932
|
const A = Yi.fromJSON(this.name, _);
|
|
11930
|
-
|
|
11933
|
+
Be(
|
|
11931
11934
|
typeof v == "string",
|
|
11932
11935
|
e,
|
|
11933
11936
|
"internal-error"
|
|
11934
11937
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
11935
|
-
), Er(d, e.name), Er(f, e.name),
|
|
11938
|
+
), Er(d, e.name), Er(f, e.name), Be(
|
|
11936
11939
|
typeof x == "boolean",
|
|
11937
11940
|
e,
|
|
11938
11941
|
"internal-error"
|
|
11939
11942
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
11940
|
-
),
|
|
11943
|
+
), Be(
|
|
11941
11944
|
typeof y == "boolean",
|
|
11942
11945
|
e,
|
|
11943
11946
|
"internal-error"
|
|
@@ -11985,7 +11988,7 @@ class ir {
|
|
|
11985
11988
|
static _fromGetAccountInfoResponse(e, n, r) {
|
|
11986
11989
|
return C(this, null, function* () {
|
|
11987
11990
|
const i = n.users[0];
|
|
11988
|
-
|
|
11991
|
+
Be(
|
|
11989
11992
|
i.localId !== void 0,
|
|
11990
11993
|
"internal-error"
|
|
11991
11994
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
@@ -12537,7 +12540,7 @@ class YT {
|
|
|
12537
12540
|
}
|
|
12538
12541
|
return i ? this.reloadAndSetCurrentUserOrClear(i) : this.directlySetCurrentUser(null);
|
|
12539
12542
|
}
|
|
12540
|
-
return
|
|
12543
|
+
return Be(
|
|
12541
12544
|
this._popupRedirectResolver,
|
|
12542
12545
|
this,
|
|
12543
12546
|
"argument-error"
|
|
@@ -12580,7 +12583,7 @@ class YT {
|
|
|
12580
12583
|
if (nt(this.app))
|
|
12581
12584
|
return Promise.reject(di(this));
|
|
12582
12585
|
const n = e ? We(e) : null;
|
|
12583
|
-
return n &&
|
|
12586
|
+
return n && Be(
|
|
12584
12587
|
n.auth.config.apiKey === this.config.apiKey,
|
|
12585
12588
|
this,
|
|
12586
12589
|
"invalid-user-token"
|
|
@@ -12591,7 +12594,7 @@ class YT {
|
|
|
12591
12594
|
_updateCurrentUser(e, n = !1) {
|
|
12592
12595
|
return C(this, null, function* () {
|
|
12593
12596
|
if (!this._deleted)
|
|
12594
|
-
return e &&
|
|
12597
|
+
return e && Be(
|
|
12595
12598
|
this.tenantId === e.tenantId,
|
|
12596
12599
|
this,
|
|
12597
12600
|
"tenant-id-mismatch"
|
|
@@ -12695,7 +12698,7 @@ class YT {
|
|
|
12695
12698
|
return C(this, null, function* () {
|
|
12696
12699
|
if (!this.redirectPersistenceManager) {
|
|
12697
12700
|
const n = e && or(e) || this._popupRedirectResolver;
|
|
12698
|
-
|
|
12701
|
+
Be(
|
|
12699
12702
|
n,
|
|
12700
12703
|
this,
|
|
12701
12704
|
"argument-error"
|
|
@@ -12757,7 +12760,7 @@ class YT {
|
|
|
12757
12760
|
const o = typeof n == "function" ? n : n.next.bind(n);
|
|
12758
12761
|
let a = !1;
|
|
12759
12762
|
const c = this._isInitialized ? Promise.resolve() : this._initializationPromise;
|
|
12760
|
-
if (
|
|
12763
|
+
if (Be(
|
|
12761
12764
|
c,
|
|
12762
12765
|
this,
|
|
12763
12766
|
"internal-error"
|
|
@@ -12790,7 +12793,7 @@ class YT {
|
|
|
12790
12793
|
return this.operations = this.operations.then(e, e), this.operations;
|
|
12791
12794
|
}
|
|
12792
12795
|
get assertedPersistence() {
|
|
12793
|
-
return
|
|
12796
|
+
return Be(
|
|
12794
12797
|
this.persistenceManager,
|
|
12795
12798
|
this,
|
|
12796
12799
|
"internal-error"
|
|
@@ -12843,7 +12846,7 @@ class yp {
|
|
|
12843
12846
|
this.auth = e, this.observer = null, this.addObserver = ah((n) => this.observer = n);
|
|
12844
12847
|
}
|
|
12845
12848
|
get next() {
|
|
12846
|
-
return
|
|
12849
|
+
return Be(
|
|
12847
12850
|
this.observer,
|
|
12848
12851
|
this.auth,
|
|
12849
12852
|
"internal-error"
|
|
@@ -12925,12 +12928,12 @@ function tE(t, e) {
|
|
|
12925
12928
|
}
|
|
12926
12929
|
function iy(t, e, n) {
|
|
12927
12930
|
const r = Lh(t);
|
|
12928
|
-
|
|
12931
|
+
Be(
|
|
12929
12932
|
r._canInitEmulator,
|
|
12930
12933
|
r,
|
|
12931
12934
|
"emulator-config-failed"
|
|
12932
12935
|
/* AuthErrorCode.EMULATOR_CONFIG_FAILED */
|
|
12933
|
-
),
|
|
12936
|
+
), Be(
|
|
12934
12937
|
/^https?:\/\//.test(e),
|
|
12935
12938
|
r,
|
|
12936
12939
|
"invalid-emulator-scheme"
|
|
@@ -13607,21 +13610,21 @@ function aE(t, e, n = !1) {
|
|
|
13607
13610
|
const i = "reauthenticate";
|
|
13608
13611
|
try {
|
|
13609
13612
|
const o = yield Ca(t, ly(r, i, e, t), n);
|
|
13610
|
-
|
|
13613
|
+
Be(
|
|
13611
13614
|
o.idToken,
|
|
13612
13615
|
r,
|
|
13613
13616
|
"internal-error"
|
|
13614
13617
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
13615
13618
|
);
|
|
13616
13619
|
const a = jh(o.idToken);
|
|
13617
|
-
|
|
13620
|
+
Be(
|
|
13618
13621
|
a,
|
|
13619
13622
|
r,
|
|
13620
13623
|
"internal-error"
|
|
13621
13624
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
13622
13625
|
);
|
|
13623
13626
|
const { sub: c } = a;
|
|
13624
|
-
return
|
|
13627
|
+
return Be(
|
|
13625
13628
|
t.uid === c,
|
|
13626
13629
|
r,
|
|
13627
13630
|
"user-mismatch"
|
|
@@ -14421,7 +14424,7 @@ new Wa(3e4, 6e4);
|
|
|
14421
14424
|
* limitations under the License.
|
|
14422
14425
|
*/
|
|
14423
14426
|
function AE(t, e) {
|
|
14424
|
-
return e ? or(e) : (
|
|
14427
|
+
return e ? or(e) : (Be(
|
|
14425
14428
|
t._popupRedirectResolver,
|
|
14426
14429
|
t,
|
|
14427
14430
|
"argument-error"
|
|
@@ -14479,7 +14482,7 @@ function _E(t) {
|
|
|
14479
14482
|
}
|
|
14480
14483
|
function TE(t) {
|
|
14481
14484
|
const { auth: e, user: n } = t;
|
|
14482
|
-
return
|
|
14485
|
+
return Be(
|
|
14483
14486
|
n,
|
|
14484
14487
|
e,
|
|
14485
14488
|
"internal-error"
|
|
@@ -14489,7 +14492,7 @@ function TE(t) {
|
|
|
14489
14492
|
function EE(t) {
|
|
14490
14493
|
return C(this, null, function* () {
|
|
14491
14494
|
const { auth: e, user: n } = t;
|
|
14492
|
-
return
|
|
14495
|
+
return Be(
|
|
14493
14496
|
n,
|
|
14494
14497
|
e,
|
|
14495
14498
|
"internal-error"
|
|
@@ -14606,7 +14609,7 @@ class Ui extends my {
|
|
|
14606
14609
|
executeNotNull() {
|
|
14607
14610
|
return C(this, null, function* () {
|
|
14608
14611
|
const e = yield this.execute();
|
|
14609
|
-
return
|
|
14612
|
+
return Be(
|
|
14610
14613
|
e,
|
|
14611
14614
|
this.auth,
|
|
14612
14615
|
"internal-error"
|
|
@@ -15007,7 +15010,7 @@ const KE = new Wa(5e3, 15e3), qE = "__/auth/iframe", YE = "emulator/auth/iframe"
|
|
|
15007
15010
|
]);
|
|
15008
15011
|
function XE(t) {
|
|
15009
15012
|
const e = t.config;
|
|
15010
|
-
|
|
15013
|
+
Be(
|
|
15011
15014
|
e.authDomain,
|
|
15012
15015
|
t,
|
|
15013
15016
|
"auth-domain-config-required"
|
|
@@ -15025,7 +15028,7 @@ function XE(t) {
|
|
|
15025
15028
|
function ZE(t) {
|
|
15026
15029
|
return C(this, null, function* () {
|
|
15027
15030
|
const e = yield GE(t), n = qn().gapi;
|
|
15028
|
-
return
|
|
15031
|
+
return Be(
|
|
15029
15032
|
n,
|
|
15030
15033
|
t,
|
|
15031
15034
|
"internal-error"
|
|
@@ -15105,7 +15108,7 @@ function ok(t, e, n, r = tk, i = nk) {
|
|
|
15105
15108
|
if (VT(u) && c !== "_self")
|
|
15106
15109
|
return ak(e || "", c), new _p(null);
|
|
15107
15110
|
const d = window.open(e || "", c, h);
|
|
15108
|
-
|
|
15111
|
+
Be(
|
|
15109
15112
|
d,
|
|
15110
15113
|
t,
|
|
15111
15114
|
"popup-blocked"
|
|
@@ -15142,12 +15145,12 @@ function ak(t, e) {
|
|
|
15142
15145
|
const sk = "__/auth/handler", lk = "emulator/auth/handler", ck = encodeURIComponent("fac");
|
|
15143
15146
|
function Tp(t, e, n, r, i, o) {
|
|
15144
15147
|
return C(this, null, function* () {
|
|
15145
|
-
|
|
15148
|
+
Be(
|
|
15146
15149
|
t.config.authDomain,
|
|
15147
15150
|
t,
|
|
15148
15151
|
"auth-domain-config-required"
|
|
15149
15152
|
/* AuthErrorCode.MISSING_AUTH_DOMAIN */
|
|
15150
|
-
),
|
|
15153
|
+
), Be(
|
|
15151
15154
|
t.config.apiKey,
|
|
15152
15155
|
t,
|
|
15153
15156
|
"invalid-api-key"
|
|
@@ -15234,7 +15237,7 @@ class dk {
|
|
|
15234
15237
|
initAndGetManager(e) {
|
|
15235
15238
|
return C(this, null, function* () {
|
|
15236
15239
|
const n = yield ZE(e), r = new $E(e);
|
|
15237
|
-
return n.register("authEvent", (i) => (
|
|
15240
|
+
return n.register("authEvent", (i) => (Be(
|
|
15238
15241
|
i == null ? void 0 : i.authEvent,
|
|
15239
15242
|
e,
|
|
15240
15243
|
"invalid-auth-event"
|
|
@@ -15309,7 +15312,7 @@ class fk {
|
|
|
15309
15312
|
n && (this.internalListeners.delete(e), n(), this.updateProactiveRefresh());
|
|
15310
15313
|
}
|
|
15311
15314
|
assertAuthConfigured() {
|
|
15312
|
-
|
|
15315
|
+
Be(
|
|
15313
15316
|
this.auth._initializationPromise,
|
|
15314
15317
|
"dependent-sdk-initialized-before-auth"
|
|
15315
15318
|
/* AuthErrorCode.DEPENDENT_SDK_INIT_BEFORE_AUTH */
|
|
@@ -15356,7 +15359,7 @@ function gk(t) {
|
|
|
15356
15359
|
"auth",
|
|
15357
15360
|
(e, { options: n }) => {
|
|
15358
15361
|
const r = e.getProvider("app").getImmediate(), i = e.getProvider("heartbeat"), o = e.getProvider("app-check-internal"), { apiKey: a, authDomain: c } = r.options;
|
|
15359
|
-
|
|
15362
|
+
Be(a && !a.includes(":"), "invalid-api-key", { appName: r.name });
|
|
15360
15363
|
const l = {
|
|
15361
15364
|
apiKey: a,
|
|
15362
15365
|
authDomain: c,
|
|
@@ -26316,7 +26319,7 @@ const P0 = ({ title: t, open: e, imageSrc: n, toggleModal: r }) => /* @__PURE__
|
|
|
26316
26319
|
d: "M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
|
|
26317
26320
|
}), "ChevronRight"), c$ = (t) => /* @__PURE__ */ s.jsx(te, { display: "flex", alignItems: "baseline", flexWrap: "wrap", children: /* @__PURE__ */ s.jsxs(te, { display: "flex", children: [
|
|
26318
26321
|
t.pageCount && t.pageCount !== 1 && /* @__PURE__ */ s.jsx(
|
|
26319
|
-
|
|
26322
|
+
Fe,
|
|
26320
26323
|
{
|
|
26321
26324
|
variant: "outlined",
|
|
26322
26325
|
color: "neutral",
|
|
@@ -26338,7 +26341,7 @@ const P0 = ({ title: t, open: e, imageSrc: n, toggleModal: r }) => /* @__PURE__
|
|
|
26338
26341
|
}
|
|
26339
26342
|
),
|
|
26340
26343
|
t.images && t.images.length === 20 && /* @__PURE__ */ s.jsx(
|
|
26341
|
-
|
|
26344
|
+
Fe,
|
|
26342
26345
|
{
|
|
26343
26346
|
variant: "outlined",
|
|
26344
26347
|
color: "neutral",
|
|
@@ -26456,7 +26459,7 @@ const P0 = ({ title: t, open: e, imageSrc: n, toggleModal: r }) => /* @__PURE__
|
|
|
26456
26459
|
) })
|
|
26457
26460
|
] }) : /* @__PURE__ */ s.jsx(s.Fragment, {}),
|
|
26458
26461
|
/* @__PURE__ */ s.jsx(
|
|
26459
|
-
|
|
26462
|
+
Fe,
|
|
26460
26463
|
{
|
|
26461
26464
|
onClick: w,
|
|
26462
26465
|
sx: {
|
|
@@ -27296,8 +27299,8 @@ const U0 = ({ labels: t, open: e, imageSrc: n, resetDefaultImageUrl: r, toggleMo
|
|
|
27296
27299
|
),
|
|
27297
27300
|
/* @__PURE__ */ s.jsx(te, { mb: 1, mx: 2, children: /* @__PURE__ */ s.jsx(IC, { value: l, min: 1, max: 3, step: 0.1, onChange: (v, x) => u(x) }) }),
|
|
27298
27301
|
/* @__PURE__ */ s.jsxs(Ma, { children: [
|
|
27299
|
-
/* @__PURE__ */ s.jsx(
|
|
27300
|
-
/* @__PURE__ */ s.jsx(
|
|
27302
|
+
/* @__PURE__ */ s.jsx(Fe, { color: "primary", onClick: b, loading: !1, children: t.crop }),
|
|
27303
|
+
/* @__PURE__ */ s.jsx(Fe, { color: "primary", variant: "outlined", onClick: S, loading: !1, children: t.reset })
|
|
27301
27304
|
] })
|
|
27302
27305
|
] })
|
|
27303
27306
|
]
|
|
@@ -27733,7 +27736,7 @@ const U0 = ({ labels: t, open: e, imageSrc: n, resetDefaultImageUrl: r, toggleMo
|
|
|
27733
27736
|
const e = () => C(void 0, null, function* () {
|
|
27734
27737
|
yield qa(t.environment).signOut();
|
|
27735
27738
|
});
|
|
27736
|
-
return /* @__PURE__ */ s.jsx(
|
|
27739
|
+
return /* @__PURE__ */ s.jsx(Fe, { variant: "outlined", color: "danger", onClick: e, children: t.signOutLabel });
|
|
27737
27740
|
}, V$ = Ze(/* @__PURE__ */ s.jsx("path", {
|
|
27738
27741
|
d: "m8.71 11.71 2.59 2.59c.39.39 1.02.39 1.41 0l2.59-2.59c.63-.63.18-1.71-.71-1.71H9.41c-.89 0-1.33 1.08-.7 1.71"
|
|
27739
27742
|
}), "ArrowDropDownRounded"), H$ = Ze(/* @__PURE__ */ s.jsx("path", {
|
|
@@ -27770,7 +27773,7 @@ const U0 = ({ labels: t, open: e, imageSrc: n, resetDefaultImageUrl: r, toggleMo
|
|
|
27770
27773
|
/* @__PURE__ */ s.jsx(
|
|
27771
27774
|
Mf,
|
|
27772
27775
|
{
|
|
27773
|
-
slots: { root:
|
|
27776
|
+
slots: { root: Fe },
|
|
27774
27777
|
startDecorator: /* @__PURE__ */ s.jsx(H$, {}),
|
|
27775
27778
|
sx: {
|
|
27776
27779
|
border: 1,
|
|
@@ -27823,8 +27826,8 @@ const U0 = ({ labels: t, open: e, imageSrc: n, resetDefaultImageUrl: r, toggleMo
|
|
|
27823
27826
|
}),
|
|
27824
27827
|
children: [
|
|
27825
27828
|
/* @__PURE__ */ s.jsxs(uo, { direction: "row", alignItems: "center", spacing: 2, children: [
|
|
27826
|
-
/* @__PURE__ */ s.jsx(
|
|
27827
|
-
e ? /* @__PURE__ */ s.jsx(
|
|
27829
|
+
/* @__PURE__ */ s.jsx(Fe, { startDecorator: /* @__PURE__ */ s.jsx(_g, {}), variant: "solid", color: "primary", onClick: a, children: t }),
|
|
27830
|
+
e ? /* @__PURE__ */ s.jsx(Fe, { startDecorator: /* @__PURE__ */ s.jsx(_g, {}), variant: "outlined", color: "primary", onClick: c, children: e }) : /* @__PURE__ */ s.jsx(s.Fragment, {}),
|
|
27828
27831
|
u()
|
|
27829
27832
|
] }),
|
|
27830
27833
|
n ? /* @__PURE__ */ s.jsx(H0, { signOutLabel: n, environment: o }) : /* @__PURE__ */ s.jsx(s.Fragment, {})
|
|
@@ -28739,10 +28742,10 @@ function X$(t, e) {
|
|
|
28739
28742
|
var Pe = !!n.timeContainer && n.timeContainer.contains(N);
|
|
28740
28743
|
switch (j.keyCode) {
|
|
28741
28744
|
case 13:
|
|
28742
|
-
Pe ? (j.preventDefault(), l(),
|
|
28745
|
+
Pe ? (j.preventDefault(), l(), ze()) : ct(j);
|
|
28743
28746
|
break;
|
|
28744
28747
|
case 27:
|
|
28745
|
-
j.preventDefault(),
|
|
28748
|
+
j.preventDefault(), ze();
|
|
28746
28749
|
break;
|
|
28747
28750
|
case 8:
|
|
28748
28751
|
case 46:
|
|
@@ -28982,7 +28985,7 @@ function X$(t, e) {
|
|
|
28982
28985
|
function $e() {
|
|
28983
28986
|
n.config.noCalendar || n.isMobile || (H(), _r(), T());
|
|
28984
28987
|
}
|
|
28985
|
-
function
|
|
28988
|
+
function ze() {
|
|
28986
28989
|
n._input.focus(), window.navigator.userAgent.indexOf("MSIE") !== -1 || navigator.msMaxTouchPoints !== void 0 ? setTimeout(n.close, 0) : n.close();
|
|
28987
28990
|
}
|
|
28988
28991
|
function ct(j) {
|
|
@@ -29006,7 +29009,7 @@ function X$(t, e) {
|
|
|
29006
29009
|
}
|
|
29007
29010
|
if (_r(), T(), dn(), !he && n.config.mode !== "range" && n.config.showMonths === 1 ? _(ee) : 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) {
|
|
29008
29011
|
var Re = n.config.mode === "single" && !n.config.enableTime, ve = n.config.mode === "range" && n.selectedDates.length === 2 && !n.config.enableTime;
|
|
29009
|
-
(Re || ve) &&
|
|
29012
|
+
(Re || ve) && ze();
|
|
29010
29013
|
}
|
|
29011
29014
|
b();
|
|
29012
29015
|
}
|
|
@@ -30078,7 +30081,7 @@ const o2 = (t) => {
|
|
|
30078
30081
|
children: /* @__PURE__ */ s.jsxs(Ao, { children: [
|
|
30079
30082
|
/* @__PURE__ */ s.jsx(ce, { level: "h2", textAlign: "center", mb: 2, children: r }),
|
|
30080
30083
|
/* @__PURE__ */ s.jsx(ce, { level: "body-md", color: "neutral", mb: 2, children: i }),
|
|
30081
|
-
/* @__PURE__ */ s.jsx(te, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ s.jsx(
|
|
30084
|
+
/* @__PURE__ */ s.jsx(te, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ s.jsx(Fe, { variant: "solid", color: "neutral", fullWidth: !0, size: "sm", onClick: a, children: o }) })
|
|
30082
30085
|
] })
|
|
30083
30086
|
}
|
|
30084
30087
|
)
|
|
@@ -30183,7 +30186,7 @@ const o2 = (t) => {
|
|
|
30183
30186
|
}
|
|
30184
30187
|
}
|
|
30185
30188
|
),
|
|
30186
|
-
/* @__PURE__ */ s.jsx(Ae, { title: t.add, children: l && f ? /* @__PURE__ */ s.jsx(
|
|
30189
|
+
/* @__PURE__ */ s.jsx(Ae, { title: t.add, children: l && f ? /* @__PURE__ */ s.jsx(Fe, { onClick: b, children: /* @__PURE__ */ s.jsx(Ys, {}) }) : /* @__PURE__ */ s.jsx("span", { children: /* @__PURE__ */ s.jsx(Fe, { disabled: !0, children: /* @__PURE__ */ s.jsx(Ys, {}) }) }) })
|
|
30187
30190
|
] })
|
|
30188
30191
|
] });
|
|
30189
30192
|
};
|
|
@@ -33213,7 +33216,7 @@ const zB = {
|
|
|
33213
33216
|
) : /* @__PURE__ */ s.jsx(s.Fragment, {})
|
|
33214
33217
|
] }),
|
|
33215
33218
|
/* @__PURE__ */ s.jsx(Ae, { title: t.labels.copyUrl, children: /* @__PURE__ */ s.jsx(
|
|
33216
|
-
|
|
33219
|
+
Fe,
|
|
33217
33220
|
{
|
|
33218
33221
|
onClick: () => A(t.image),
|
|
33219
33222
|
disabled: !t.image,
|
|
@@ -33224,7 +33227,7 @@ const zB = {
|
|
|
33224
33227
|
}
|
|
33225
33228
|
) }),
|
|
33226
33229
|
/* @__PURE__ */ s.jsx(Ae, { title: t.labels.viewImage, children: /* @__PURE__ */ s.jsx(
|
|
33227
|
-
|
|
33230
|
+
Fe,
|
|
33228
33231
|
{
|
|
33229
33232
|
onClick: y,
|
|
33230
33233
|
disabled: !t.image,
|
|
@@ -33235,7 +33238,7 @@ const zB = {
|
|
|
33235
33238
|
}
|
|
33236
33239
|
) }),
|
|
33237
33240
|
/* @__PURE__ */ s.jsx(Ae, { title: t.labels.cropImage, children: /* @__PURE__ */ s.jsx(
|
|
33238
|
-
|
|
33241
|
+
Fe,
|
|
33239
33242
|
{
|
|
33240
33243
|
onClick: w,
|
|
33241
33244
|
disabled: !t.image,
|
|
@@ -33246,7 +33249,7 @@ const zB = {
|
|
|
33246
33249
|
}
|
|
33247
33250
|
) })
|
|
33248
33251
|
] }),
|
|
33249
|
-
/* @__PURE__ */ s.jsx(Ao, { orientation: "horizontal", sx: { justifyContent: "space-between" }, children: /* @__PURE__ */ s.jsxs(
|
|
33252
|
+
/* @__PURE__ */ s.jsx(Ao, { orientation: "horizontal", sx: { justifyContent: "space-between" }, children: /* @__PURE__ */ s.jsxs(Fe, { sx: { width: "100%" }, onClick: b, children: [
|
|
33250
33253
|
/* @__PURE__ */ s.jsx(fv, {}),
|
|
33251
33254
|
" ",
|
|
33252
33255
|
t.labels.uploadImage,
|
|
@@ -34029,7 +34032,7 @@ const ao = gt("MuiCheckbox", ["root", "checkbox", "action", "input", "label", "c
|
|
|
34029
34032
|
elementType: SF,
|
|
34030
34033
|
externalForwardedProps: fe,
|
|
34031
34034
|
ownerState: He
|
|
34032
|
-
}), [$e,
|
|
34035
|
+
}), [$e, ze] = Ue("action", {
|
|
34033
34036
|
className: kt.action,
|
|
34034
34037
|
elementType: AF,
|
|
34035
34038
|
externalForwardedProps: fe,
|
|
@@ -34064,7 +34067,7 @@ const ao = gt("MuiCheckbox", ["root", "checkbox", "action", "input", "label", "c
|
|
|
34064
34067
|
let Jt = h;
|
|
34065
34068
|
return g ? Jt = null : I ? Jt = v : Z && (Jt = d), /* @__PURE__ */ s.jsxs(ye, $({}, Se, {
|
|
34066
34069
|
children: [/* @__PURE__ */ s.jsxs(xe, $({}, Ee, {
|
|
34067
|
-
children: [/* @__PURE__ */ s.jsx($e, $({},
|
|
34070
|
+
children: [/* @__PURE__ */ s.jsx($e, $({}, ze, {
|
|
34068
34071
|
children: /* @__PURE__ */ s.jsx(ct, $({}, Pt))
|
|
34069
34072
|
})), Jt]
|
|
34070
34073
|
})), f && /* @__PURE__ */ s.jsx(Vd.Provider, {
|
|
@@ -34450,9 +34453,9 @@ const VF = Ze(/* @__PURE__ */ s.jsx("path", {
|
|
|
34450
34453
|
"?"
|
|
34451
34454
|
] }) }),
|
|
34452
34455
|
/* @__PURE__ */ s.jsxs(Ma, { children: [
|
|
34453
|
-
/* @__PURE__ */ s.jsx(
|
|
34456
|
+
/* @__PURE__ */ s.jsx(Fe, { loading: e, variant: "solid", color: "danger", onClick: (o) => i(o), children: t.labels.delete }),
|
|
34454
34457
|
/* @__PURE__ */ s.jsx(
|
|
34455
|
-
|
|
34458
|
+
Fe,
|
|
34456
34459
|
{
|
|
34457
34460
|
variant: "plain",
|
|
34458
34461
|
color: "neutral",
|
|
@@ -34526,7 +34529,7 @@ const VF = Ze(/* @__PURE__ */ s.jsx("path", {
|
|
|
34526
34529
|
/* @__PURE__ */ s.jsx(Le, { required: !0, color: "primary", children: t.labels.at }),
|
|
34527
34530
|
/* @__PURE__ */ s.jsx(Nd, { defaultDate: c, onChange: (W) => l(W) })
|
|
34528
34531
|
] }),
|
|
34529
|
-
r && c ? /* @__PURE__ */ s.jsx(
|
|
34532
|
+
r && c ? /* @__PURE__ */ s.jsx(Fe, { onClick: () => K(O.id, O.name), loading: p, sx: { mt: "auto" }, children: t.labels.save }) : /* @__PURE__ */ s.jsx(Fe, { disabled: !0, sx: { mt: "auto" }, children: t.labels.save })
|
|
34530
34533
|
]
|
|
34531
34534
|
}
|
|
34532
34535
|
) : /* @__PURE__ */ s.jsxs(
|
|
@@ -34589,7 +34592,7 @@ const VF = Ze(/* @__PURE__ */ s.jsx("path", {
|
|
|
34589
34592
|
/* @__PURE__ */ s.jsx(Le, { required: !0, color: "primary", children: t.labels.at }),
|
|
34590
34593
|
/* @__PURE__ */ s.jsx(Nd, { defaultDate: u, onChange: (O) => h(O) })
|
|
34591
34594
|
] }),
|
|
34592
|
-
o && u ? /* @__PURE__ */ s.jsx(
|
|
34595
|
+
o && u ? /* @__PURE__ */ s.jsx(Fe, { onClick: H, loading: d, sx: { mt: "auto" }, children: t.labels.create }) : /* @__PURE__ */ s.jsx(Fe, { disabled: !0, sx: { mt: "auto" }, children: t.labels.create })
|
|
34593
34596
|
]
|
|
34594
34597
|
}
|
|
34595
34598
|
),
|
|
@@ -36010,7 +36013,7 @@ const kV = (t, e) => e || t || "-------------", Al = (t, e) => Array.isArray(t)
|
|
|
36010
36013
|
},
|
|
36011
36014
|
`winner-profile-${i.profileId}`
|
|
36012
36015
|
)) : /* @__PURE__ */ s.jsx(s.Fragment, {}),
|
|
36013
|
-
/* @__PURE__ */ s.jsx("tr", { children: /* @__PURE__ */ s.jsx("td", { colSpan: 7, children: t.hasMoreParticipants ? /* @__PURE__ */ s.jsx(te, { textAlign: "center", my: 1, children: /* @__PURE__ */ s.jsx(
|
|
36016
|
+
/* @__PURE__ */ s.jsx("tr", { children: /* @__PURE__ */ s.jsx("td", { colSpan: 7, children: t.hasMoreParticipants ? /* @__PURE__ */ s.jsx(te, { textAlign: "center", my: 1, children: /* @__PURE__ */ s.jsx(Fe, { variant: "plain", sx: { width: "100%" }, onClick: () => t.setPage((i) => i + 1), loading: t.isLoading, children: t.labels.loadMore }) }) : /* @__PURE__ */ s.jsx(s.Fragment, {}) }) })
|
|
36014
36017
|
] })
|
|
36015
36018
|
]
|
|
36016
36019
|
}
|
|
@@ -36162,7 +36165,7 @@ const LV = (t) => {
|
|
|
36162
36165
|
labels: t.labels
|
|
36163
36166
|
}
|
|
36164
36167
|
),
|
|
36165
|
-
/* @__PURE__ */ s.jsx(te, { textAlign: "center", my: 3, children: /* @__PURE__ */ s.jsx(
|
|
36168
|
+
/* @__PURE__ */ s.jsx(te, { textAlign: "center", my: 3, children: /* @__PURE__ */ s.jsx(Fe, { variant: "solid", color: "primary", onClick: x, loading: o, children: t.labels.save }) }),
|
|
36166
36169
|
/* @__PURE__ */ s.jsx(xi, { sx: { my: 4 } })
|
|
36167
36170
|
] }),
|
|
36168
36171
|
b ? /* @__PURE__ */ s.jsx(LV, { winners: e, profiles: b.map((w) => w.profileModel), labels: t.labels }) : /* @__PURE__ */ s.jsx(s.Fragment, {})
|
|
@@ -36555,10 +36558,10 @@ function rH(t) {
|
|
|
36555
36558
|
}, V = function(fe) {
|
|
36556
36559
|
var ye = fe.formattedValue;
|
|
36557
36560
|
ye === void 0 && (ye = "");
|
|
36558
|
-
var Se = fe.input, xe = fe.source, Ee = fe.event, $e = fe.numAsString,
|
|
36561
|
+
var Se = fe.input, xe = fe.source, Ee = fe.event, $e = fe.numAsString, ze;
|
|
36559
36562
|
if (Se) {
|
|
36560
36563
|
var ct = fe.inputValue || Se.value, Pt = Gu(Se);
|
|
36561
|
-
Se.value = ye,
|
|
36564
|
+
Se.value = ye, ze = z(ct, ye, Pt), ze !== void 0 && P(Se, ze, ye);
|
|
36562
36565
|
}
|
|
36563
36566
|
ye !== A && H(J(ye, $e), { event: Ee, source: xe });
|
|
36564
36567
|
};
|
|
@@ -36578,14 +36581,14 @@ function rH(t) {
|
|
|
36578
36581
|
}
|
|
36579
36582
|
}, [A]);
|
|
36580
36583
|
var ae = function(fe, ye, Se) {
|
|
36581
|
-
var xe = ye.target, Ee = U.current ? qV(U.current, xe.selectionEnd) : cw(A, fe), $e = Object.assign(Object.assign({}, Ee), { lastValue: A }),
|
|
36582
|
-
if (
|
|
36584
|
+
var xe = ye.target, Ee = U.current ? qV(U.current, xe.selectionEnd) : cw(A, fe), $e = Object.assign(Object.assign({}, Ee), { lastValue: A }), ze = c(fe, $e), ct = W(ze);
|
|
36585
|
+
if (ze = c(ct, void 0), d && !d(J(ct, ze))) {
|
|
36583
36586
|
var Pt = ye.target, Gt = Gu(Pt), Nt = z(fe, A, Gt);
|
|
36584
36587
|
return Pt.value = A, P(Pt, Nt, A), !1;
|
|
36585
36588
|
}
|
|
36586
36589
|
return V({
|
|
36587
36590
|
formattedValue: ct,
|
|
36588
|
-
numAsString:
|
|
36591
|
+
numAsString: ze,
|
|
36589
36592
|
inputValue: fe,
|
|
36590
36593
|
event: ye,
|
|
36591
36594
|
source: Se,
|
|
@@ -36601,27 +36604,27 @@ function rH(t) {
|
|
|
36601
36604
|
}, re = function(fe) {
|
|
36602
36605
|
var ye = fe.target, Se = fe.key, xe = ye.selectionStart, Ee = ye.selectionEnd, $e = ye.value;
|
|
36603
36606
|
$e === void 0 && ($e = "");
|
|
36604
|
-
var
|
|
36605
|
-
Se === "ArrowLeft" || Se === "Backspace" ?
|
|
36607
|
+
var ze;
|
|
36608
|
+
Se === "ArrowLeft" || Se === "Backspace" ? ze = Math.max(xe - 1, 0) : Se === "ArrowRight" ? ze = Math.min(xe + 1, $e.length) : Se === "Delete" && (ze = xe);
|
|
36606
36609
|
var ct = 0;
|
|
36607
36610
|
Se === "Delete" && xe === Ee && (ct = 1);
|
|
36608
36611
|
var Pt = Se === "ArrowLeft" || Se === "ArrowRight";
|
|
36609
|
-
if (
|
|
36612
|
+
if (ze === void 0 || xe !== Ee && !Pt) {
|
|
36610
36613
|
p(fe), X(ye, ct);
|
|
36611
36614
|
return;
|
|
36612
36615
|
}
|
|
36613
|
-
var Gt =
|
|
36616
|
+
var Gt = ze;
|
|
36614
36617
|
if (Pt) {
|
|
36615
36618
|
var Nt = Se === "ArrowLeft" ? "left" : "right";
|
|
36616
|
-
Gt = M($e,
|
|
36617
|
-
} else Se === "Delete" && !v($e[
|
|
36618
|
-
Gt !==
|
|
36619
|
+
Gt = M($e, ze, Nt), Gt !== ze && fe.preventDefault();
|
|
36620
|
+
} else Se === "Delete" && !v($e[ze]) ? Gt = M($e, ze, "right") : Se === "Backspace" && !v($e[ze]) && (Gt = M($e, ze, "left"));
|
|
36621
|
+
Gt !== ze && P(ye, Gt, $e), p(fe), X(ye, ct);
|
|
36619
36622
|
}, ne = function(fe) {
|
|
36620
36623
|
var ye = fe.target, Se = function() {
|
|
36621
36624
|
var xe = ye.selectionStart, Ee = ye.selectionEnd, $e = ye.value;
|
|
36622
36625
|
if ($e === void 0 && ($e = ""), xe === Ee) {
|
|
36623
|
-
var
|
|
36624
|
-
|
|
36626
|
+
var ze = M($e, xe);
|
|
36627
|
+
ze !== xe && P(ye, ze, $e);
|
|
36625
36628
|
}
|
|
36626
36629
|
};
|
|
36627
36630
|
Se(), requestAnimationFrame(function() {
|
|
@@ -36633,8 +36636,8 @@ function rH(t) {
|
|
|
36633
36636
|
O.current = ye, B.current.focusTimeout = setTimeout(function() {
|
|
36634
36637
|
var xe = ye.selectionStart, Ee = ye.selectionEnd, $e = ye.value;
|
|
36635
36638
|
$e === void 0 && ($e = "");
|
|
36636
|
-
var
|
|
36637
|
-
|
|
36639
|
+
var ze = M($e, xe);
|
|
36640
|
+
ze !== xe && !(xe === 0 && Ee === $e.length) && P(ye, ze, $e), g(Object.assign(Object.assign({}, fe), { currentTarget: Se }));
|
|
36638
36641
|
}, 0);
|
|
36639
36642
|
}, Ce = function(fe) {
|
|
36640
36643
|
O.current = null, clearTimeout(B.current.focusTimeout), clearTimeout(B.current.setCaretTimeout), b(fe);
|
|
@@ -39211,12 +39214,12 @@ const Rw = /* @__PURE__ */ Ml(function(e) {
|
|
|
39211
39214
|
scrollableAncestors: xe,
|
|
39212
39215
|
scrollableAncestorRects: Ee,
|
|
39213
39216
|
windowRect: Se
|
|
39214
|
-
}),
|
|
39217
|
+
}), ze = ae ? lo(ae, D) : null, ct = I4(xe), Pt = Rm(ct), Gt = Rm(ct, [re]), Nt = lo($e, Pt), Jt = kt ? KH(kt, $e) : null, Mn = H && Jt ? d({
|
|
39215
39218
|
active: H,
|
|
39216
39219
|
collisionRect: Jt,
|
|
39217
39220
|
droppableRects: z,
|
|
39218
39221
|
droppableContainers: P,
|
|
39219
|
-
pointerCoordinates:
|
|
39222
|
+
pointerCoordinates: ze
|
|
39220
39223
|
}) : null, Ii = gw(Mn, "id"), [an, Sr] = G(null), Lo = fe ? $e : lo($e, Gt), $o = WH(Lo, (o = an == null ? void 0 : an.rect) != null ? o : null, re), rt = we(null), Ar = Ke(
|
|
39221
39224
|
(Rt, j) => {
|
|
39222
39225
|
let {
|
|
@@ -39452,7 +39455,7 @@ const Rw = /* @__PURE__ */ Ml(function(e) {
|
|
|
39452
39455
|
}, [H, oe, Mn, Jt, A, He, kt, z, L, an, xe, Nt]), h4(Y(k({}, X), {
|
|
39453
39456
|
delta: D,
|
|
39454
39457
|
draggingRect: Jt,
|
|
39455
|
-
pointerCoordinates:
|
|
39458
|
+
pointerCoordinates: ze,
|
|
39456
39459
|
scrollableAncestors: xe,
|
|
39457
39460
|
scrollableAncestorRects: Ee
|
|
39458
39461
|
}));
|
|
@@ -40311,7 +40314,7 @@ const Uw = Ze(/* @__PURE__ */ s.jsx("path", {
|
|
|
40311
40314
|
}), h3 = () => {
|
|
40312
40315
|
const { attributes: t, listeners: e, ref: n } = rn(Yc);
|
|
40313
40316
|
return /* @__PURE__ */ s.jsx(
|
|
40314
|
-
|
|
40317
|
+
Fe,
|
|
40315
40318
|
Y(k(k({
|
|
40316
40319
|
sx: {
|
|
40317
40320
|
backgroundColor: "transparent",
|
|
@@ -40356,7 +40359,7 @@ const Uw = Ze(/* @__PURE__ */ s.jsx("path", {
|
|
|
40356
40359
|
ref: u,
|
|
40357
40360
|
style: m,
|
|
40358
40361
|
startAction: i ? /* @__PURE__ */ s.jsx(h3, {}) : /* @__PURE__ */ s.jsx(s.Fragment, {}),
|
|
40359
|
-
endAction: i ? /* @__PURE__ */ s.jsx(Ae, { title: n, children: /* @__PURE__ */ s.jsx(
|
|
40362
|
+
endAction: i ? /* @__PURE__ */ s.jsx(Ae, { title: n, children: /* @__PURE__ */ s.jsx(Fe, { variant: "outlined", color: "danger", onClick: r, sx: { ml: "auto", p: 0.5 }, size: "sm", children: /* @__PURE__ */ s.jsx(gv, {}) }) }) : /* @__PURE__ */ s.jsx(s.Fragment, {}),
|
|
40360
40363
|
sx: { p: 2, borderRadius: "sm" },
|
|
40361
40364
|
children: t
|
|
40362
40365
|
}
|
|
@@ -40977,7 +40980,7 @@ const Uw = Ze(/* @__PURE__ */ s.jsx("path", {
|
|
|
40977
40980
|
}
|
|
40978
40981
|
)
|
|
40979
40982
|
] }),
|
|
40980
|
-
/* @__PURE__ */ s.jsx(
|
|
40983
|
+
/* @__PURE__ */ s.jsx(Fe, { startDecorator: /* @__PURE__ */ s.jsx(Ys, {}), disabled: !o || !c, onClick: S, sx: { mb: 1 }, children: n.add })
|
|
40981
40984
|
]
|
|
40982
40985
|
}
|
|
40983
40986
|
),
|
|
@@ -41195,7 +41198,7 @@ const Uw = Ze(/* @__PURE__ */ s.jsx("path", {
|
|
|
41195
41198
|
}
|
|
41196
41199
|
)
|
|
41197
41200
|
] }),
|
|
41198
|
-
/* @__PURE__ */ s.jsx(
|
|
41201
|
+
/* @__PURE__ */ s.jsx(Fe, { startDecorator: /* @__PURE__ */ s.jsx(Ys, {}), disabled: !o, onClick: x, sx: { mb: 1 }, children: n.add })
|
|
41199
41202
|
]
|
|
41200
41203
|
}
|
|
41201
41204
|
),
|
|
@@ -41242,7 +41245,7 @@ const Uw = Ze(/* @__PURE__ */ s.jsx("path", {
|
|
|
41242
41245
|
/* @__PURE__ */ s.jsx(ce, { level: "body-sm", fontWeight: "600", children: t.labels.exportAllUsersLeads }),
|
|
41243
41246
|
/* @__PURE__ */ s.jsx(ce, { level: "body-xs", color: "neutral", children: t.labels.exportAllUsersLeadsDescription })
|
|
41244
41247
|
] }),
|
|
41245
|
-
/* @__PURE__ */ s.jsx("td", { children: /* @__PURE__ */ s.jsx(
|
|
41248
|
+
/* @__PURE__ */ s.jsx("td", { children: /* @__PURE__ */ s.jsx(Fe, { loading: e, onClick: d, children: t.labels.exportAllUsersLeads }) })
|
|
41246
41249
|
] }) })
|
|
41247
41250
|
]
|
|
41248
41251
|
}
|
|
@@ -41563,7 +41566,7 @@ const Uw = Ze(/* @__PURE__ */ s.jsx("path", {
|
|
|
41563
41566
|
}
|
|
41564
41567
|
),
|
|
41565
41568
|
/* @__PURE__ */ s.jsx(Ae, { title: n, children: /* @__PURE__ */ s.jsx(
|
|
41566
|
-
|
|
41569
|
+
Fe,
|
|
41567
41570
|
{
|
|
41568
41571
|
onClick: () => {
|
|
41569
41572
|
navigator.clipboard.writeText(g), r();
|
|
@@ -41585,7 +41588,7 @@ const Uw = Ze(/* @__PURE__ */ s.jsx("path", {
|
|
|
41585
41588
|
copyToClipboardLabel: o,
|
|
41586
41589
|
onCopy: a
|
|
41587
41590
|
}) => {
|
|
41588
|
-
const c = we(null), l = we(null), u = we(null), h = we(null), [d, f] = G(!1), [p, m] = G(!1), [g, b] = G(!1), [S, I] = G(!1), [v, x] = G(""), [y, w] = G(""), [_, A] = G(""), [D, L] = G(null), [U, T] = G(""), [H, K] = G(""), [E, R] = G(""), [O, B] = G(null), [W, J] = G("modal"), [P, M] = G(""), [z, V] = G("_blank"), [Z, oe] = G([]), [ae, X] = G("before"), [se, re] = G(!1), [ne, de] = G(""), [Ce, Ve] = G(""), [He, kt] = G("STANDARD"), [fe, ye] = G("left"), [Se, xe] = G(null), [Ee, $e] = G(!0), [
|
|
41591
|
+
const c = we(null), l = we(null), u = we(null), h = we(null), [d, f] = G(!1), [p, m] = G(!1), [g, b] = G(!1), [S, I] = G(!1), [v, x] = G(""), [y, w] = G(""), [_, A] = G(""), [D, L] = G(null), [U, T] = G(""), [H, K] = G(""), [E, R] = G(""), [O, B] = G(null), [W, J] = G("modal"), [P, M] = G(""), [z, V] = G("_blank"), [Z, oe] = G([]), [ae, X] = G("before"), [se, re] = G(!1), [ne, de] = G(""), [Ce, Ve] = G(""), [He, kt] = G("STANDARD"), [fe, ye] = G("left"), [Se, xe] = G(null), [Ee, $e] = G(!0), [ze, ct] = G(!0), [Pt, Gt] = G(!0), [Nt, Jt] = G(!0), [Mn, Ii] = G(!0), [an, Sr] = G(!1);
|
|
41589
41592
|
be(() => {
|
|
41590
41593
|
n !== "LEAD" && f(!1), n !== "REGISTERED" && m(!1);
|
|
41591
41594
|
}, [n]), be(() => {
|
|
@@ -41607,7 +41610,7 @@ const Uw = Ze(/* @__PURE__ */ s.jsx("path", {
|
|
|
41607
41610
|
data-image-position="${fe}"` : "", Q = (t === "classic-quiz" || t === "personality-quiz" || t === "poll" || t === "event-game") && Se ? `
|
|
41608
41611
|
data-options-layout="${Se}"` : "", ee = t === "classic-quiz" || t === "personality-quiz" ? `
|
|
41609
41612
|
data-show-answer-explanations="${Ee}"` : "", le = t === "match-quiz" || t === "event-game" ? `
|
|
41610
|
-
data-show-prediction-details="${
|
|
41613
|
+
data-show-prediction-details="${ze}"` : "", he = t === "match-quiz" || t === "event-game" ? `
|
|
41611
41614
|
data-show-countdown="${Pt}"` : "", Pe = t === "match-quiz" || t === "event-game" ? `
|
|
41612
41615
|
data-show-points="${Mn}"` : "", pe = t === "match-quiz" ? `
|
|
41613
41616
|
data-show-team-labels="${Nt}"` : "", Re = g && U ? `
|
|
@@ -41717,7 +41720,7 @@ const Uw = Ze(/* @__PURE__ */ s.jsx("path", {
|
|
|
41717
41720
|
/* @__PURE__ */ s.jsx(
|
|
41718
41721
|
An,
|
|
41719
41722
|
{
|
|
41720
|
-
defaultValue:
|
|
41723
|
+
defaultValue: ze,
|
|
41721
41724
|
label: i.showPredictionDetails || "",
|
|
41722
41725
|
labelPosition: "end",
|
|
41723
41726
|
description: "",
|
|
@@ -42177,7 +42180,7 @@ const Uw = Ze(/* @__PURE__ */ s.jsx("path", {
|
|
|
42177
42180
|
}
|
|
42178
42181
|
),
|
|
42179
42182
|
/* @__PURE__ */ s.jsx(Ae, { title: o, children: /* @__PURE__ */ s.jsx(
|
|
42180
|
-
|
|
42183
|
+
Fe,
|
|
42181
42184
|
{
|
|
42182
42185
|
onClick: () => {
|
|
42183
42186
|
navigator.clipboard.writeText(fn), a();
|
|
@@ -42343,7 +42346,7 @@ const Uw = Ze(/* @__PURE__ */ s.jsx("path", {
|
|
|
42343
42346
|
}
|
|
42344
42347
|
),
|
|
42345
42348
|
/* @__PURE__ */ s.jsx(Ae, { title: n, children: /* @__PURE__ */ s.jsx(
|
|
42346
|
-
|
|
42349
|
+
Fe,
|
|
42347
42350
|
{
|
|
42348
42351
|
onClick: () => {
|
|
42349
42352
|
navigator.clipboard.writeText(U), r();
|
|
@@ -43157,7 +43160,7 @@ const X3 = (t) => {
|
|
|
43157
43160
|
return t.loading ? /* @__PURE__ */ s.jsx(te, { sx: { height: 240 }, children: /* @__PURE__ */ s.jsx(Do, { my: 0 }) }) : /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
43158
43161
|
t.step === "search" ? u() : l(),
|
|
43159
43162
|
/* @__PURE__ */ s.jsxs(te, { display: "flex", justifyContent: "space-between", alignItems: "center", children: [
|
|
43160
|
-
/* @__PURE__ */ s.jsx(
|
|
43163
|
+
/* @__PURE__ */ s.jsx(Fe, { size: "sm", color: "primary", variant: "outlined", disabled: !t.selectedMatchId, onClick: t.onGenerate, children: t.step === "search" ? t.labels.generate : t.labels.regenerate }),
|
|
43161
43164
|
t.step === "search" ? h() : /* @__PURE__ */ s.jsx(s.Fragment, {})
|
|
43162
43165
|
] })
|
|
43163
43166
|
] });
|
|
@@ -43430,11 +43433,11 @@ const Bm = (t) => {
|
|
|
43430
43433
|
width: "20",
|
|
43431
43434
|
srcSet: `https://flagcdn.com/w40/${(Lr[e] || "gb").toLowerCase()}.png 2x`,
|
|
43432
43435
|
src: `https://flagcdn.com/w20/${(Lr[e] || "gb").toLowerCase()}.png`,
|
|
43433
|
-
alt: ((re = Object.values(
|
|
43436
|
+
alt: ((re = Object.values(Ne).find((ne) => ne.key === e)) == null ? void 0 : re.name) || "Language"
|
|
43434
43437
|
}
|
|
43435
43438
|
),
|
|
43436
43439
|
sx: { minWidth: 220, minHeight: 38 },
|
|
43437
|
-
children: Object.values(
|
|
43440
|
+
children: Object.values(Ne).map((ne) => /* @__PURE__ */ s.jsxs(De, { value: ne.key, label: ne.name, children: [
|
|
43438
43441
|
/* @__PURE__ */ s.jsx(li, { children: /* @__PURE__ */ s.jsx(
|
|
43439
43442
|
"img",
|
|
43440
43443
|
{
|
|
@@ -43628,7 +43631,7 @@ const Bm = (t) => {
|
|
|
43628
43631
|
] }) }),
|
|
43629
43632
|
/* @__PURE__ */ s.jsxs(Ma, { children: [
|
|
43630
43633
|
/* @__PURE__ */ s.jsx(
|
|
43631
|
-
|
|
43634
|
+
Fe,
|
|
43632
43635
|
{
|
|
43633
43636
|
variant: "outlined",
|
|
43634
43637
|
color: "primary",
|
|
@@ -43639,7 +43642,7 @@ const Bm = (t) => {
|
|
|
43639
43642
|
}
|
|
43640
43643
|
),
|
|
43641
43644
|
/* @__PURE__ */ s.jsx(
|
|
43642
|
-
|
|
43645
|
+
Fe,
|
|
43643
43646
|
{
|
|
43644
43647
|
variant: "solid",
|
|
43645
43648
|
color: "primary",
|
|
@@ -43650,7 +43653,7 @@ const Bm = (t) => {
|
|
|
43650
43653
|
}
|
|
43651
43654
|
),
|
|
43652
43655
|
/* @__PURE__ */ s.jsx(
|
|
43653
|
-
|
|
43656
|
+
Fe,
|
|
43654
43657
|
{
|
|
43655
43658
|
disabled: g || y,
|
|
43656
43659
|
variant: "plain",
|
|
@@ -43815,7 +43818,7 @@ const Bm = (t) => {
|
|
|
43815
43818
|
}) });
|
|
43816
43819
|
return t.loading ? /* @__PURE__ */ s.jsx(te, { sx: { height: 240 }, children: /* @__PURE__ */ s.jsx(Do, { my: 0 }) }) : /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
43817
43820
|
t.step === "search" ? o() : i(),
|
|
43818
|
-
/* @__PURE__ */ s.jsx(te, { display: "flex", justifyContent: "space-between", alignItems: "center", children: /* @__PURE__ */ s.jsx(
|
|
43821
|
+
/* @__PURE__ */ s.jsx(te, { display: "flex", justifyContent: "space-between", alignItems: "center", children: /* @__PURE__ */ s.jsx(Fe, { size: "sm", color: "primary", variant: "outlined", disabled: !t.selectedRaceId, onClick: t.onGenerate, children: t.step === "search" ? t.labels.generate : t.labels.regenerate }) })
|
|
43819
43822
|
] });
|
|
43820
43823
|
}, zm = (t) => {
|
|
43821
43824
|
const e = t == null ? void 0 : t.toLowerCase();
|
|
@@ -43925,11 +43928,11 @@ const Bm = (t) => {
|
|
|
43925
43928
|
width: "20",
|
|
43926
43929
|
srcSet: `https://flagcdn.com/w40/${(Lr[e] || "gb").toLowerCase()}.png 2x`,
|
|
43927
43930
|
src: `https://flagcdn.com/w20/${(Lr[e] || "gb").toLowerCase()}.png`,
|
|
43928
|
-
alt: ((O = Object.values(
|
|
43931
|
+
alt: ((O = Object.values(Ne).find((W) => W.key === e)) == null ? void 0 : O.name) || "Language"
|
|
43929
43932
|
}
|
|
43930
43933
|
),
|
|
43931
43934
|
sx: { minHeight: 38 },
|
|
43932
|
-
children: Object.values(
|
|
43935
|
+
children: Object.values(Ne).map((W) => /* @__PURE__ */ s.jsxs(De, { value: W.key, label: W.name, children: [
|
|
43933
43936
|
/* @__PURE__ */ s.jsx(li, { children: /* @__PURE__ */ s.jsx(
|
|
43934
43937
|
"img",
|
|
43935
43938
|
{
|
|
@@ -44100,7 +44103,7 @@ const Bm = (t) => {
|
|
|
44100
44103
|
] }) }),
|
|
44101
44104
|
/* @__PURE__ */ s.jsxs(Ma, { children: [
|
|
44102
44105
|
/* @__PURE__ */ s.jsx(
|
|
44103
|
-
|
|
44106
|
+
Fe,
|
|
44104
44107
|
{
|
|
44105
44108
|
variant: "outlined",
|
|
44106
44109
|
color: "primary",
|
|
@@ -44111,7 +44114,7 @@ const Bm = (t) => {
|
|
|
44111
44114
|
}
|
|
44112
44115
|
),
|
|
44113
44116
|
/* @__PURE__ */ s.jsx(
|
|
44114
|
-
|
|
44117
|
+
Fe,
|
|
44115
44118
|
{
|
|
44116
44119
|
variant: "solid",
|
|
44117
44120
|
color: "primary",
|
|
@@ -44122,7 +44125,7 @@ const Bm = (t) => {
|
|
|
44122
44125
|
}
|
|
44123
44126
|
),
|
|
44124
44127
|
/* @__PURE__ */ s.jsx(
|
|
44125
|
-
|
|
44128
|
+
Fe,
|
|
44126
44129
|
{
|
|
44127
44130
|
disabled: p || S,
|
|
44128
44131
|
variant: "plain",
|
|
@@ -44737,7 +44740,7 @@ const d6 = (t) => {
|
|
|
44737
44740
|
switch (r) {
|
|
44738
44741
|
case Hi.HTML:
|
|
44739
44742
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
44740
|
-
/* @__PURE__ */ s.jsx(uo, { direction: "row", spacing: 1, alignItems: "center", justifyContent: "flex-end", mb: 1, children: /* @__PURE__ */ s.jsx(
|
|
44743
|
+
/* @__PURE__ */ s.jsx(uo, { direction: "row", spacing: 1, alignItems: "center", justifyContent: "flex-end", mb: 1, children: /* @__PURE__ */ s.jsx(Fe, { size: "sm", variant: "outlined", onClick: g, disabled: !t.value || !u, children: t.labels.format }) }),
|
|
44741
44744
|
/* @__PURE__ */ s.jsx(
|
|
44742
44745
|
te,
|
|
44743
44746
|
{
|
|
@@ -44792,8 +44795,8 @@ const d6 = (t) => {
|
|
|
44792
44795
|
case Hi.JSON:
|
|
44793
44796
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
44794
44797
|
/* @__PURE__ */ s.jsxs(uo, { direction: "row", spacing: 1, alignItems: "center", justifyContent: "flex-end", mb: 1, children: [
|
|
44795
|
-
/* @__PURE__ */ s.jsx(
|
|
44796
|
-
/* @__PURE__ */ s.jsx(
|
|
44798
|
+
/* @__PURE__ */ s.jsx(Fe, { size: "sm", variant: "outlined", onClick: b, disabled: !t.value || !c, children: t.labels.format }),
|
|
44799
|
+
/* @__PURE__ */ s.jsx(Fe, { size: "sm", variant: "outlined", onClick: S, disabled: !t.value, children: t.labels.minify })
|
|
44797
44800
|
] }),
|
|
44798
44801
|
/* @__PURE__ */ s.jsx(
|
|
44799
44802
|
te,
|
|
@@ -44910,10 +44913,10 @@ const d6 = (t) => {
|
|
|
44910
44913
|
/* @__PURE__ */ s.jsx(te, { sx: { display: "flex", flexWrap: "wrap", gap: 0.5 }, children: t.languages.map(
|
|
44911
44914
|
(e) => {
|
|
44912
44915
|
var n, r;
|
|
44913
|
-
return e && /* @__PURE__ */ s.jsx(td, { disableIndicator: !0, children: (r = (n =
|
|
44916
|
+
return e && /* @__PURE__ */ s.jsx(td, { disableIndicator: !0, children: (r = (n = Ne[e]) == null ? void 0 : n.name) != null ? r : e }, e);
|
|
44914
44917
|
}
|
|
44915
44918
|
) }),
|
|
44916
|
-
/* @__PURE__ */ s.jsx(
|
|
44919
|
+
/* @__PURE__ */ s.jsx(Fe, { variant: "plain", color: "neutral", onClick: t.onLanguageButtonClick, children: /* @__PURE__ */ s.jsx(OC, {}) })
|
|
44917
44920
|
]
|
|
44918
44921
|
}
|
|
44919
44922
|
) }), f6 = (t) => {
|
|
@@ -44960,7 +44963,7 @@ const d6 = (t) => {
|
|
|
44960
44963
|
},
|
|
44961
44964
|
disabled: !0,
|
|
44962
44965
|
checked: !0,
|
|
44963
|
-
label: (u = (l =
|
|
44966
|
+
label: (u = (l = Ne[t.defaultLanguage]) == null ? void 0 : l.name) != null ? u : t.defaultLanguage
|
|
44964
44967
|
},
|
|
44965
44968
|
"default-language"
|
|
44966
44969
|
),
|
|
@@ -44971,7 +44974,7 @@ const d6 = (t) => {
|
|
|
44971
44974
|
{
|
|
44972
44975
|
sx: { my: 0.5 },
|
|
44973
44976
|
checked: e.includes(h),
|
|
44974
|
-
label: (f = (d =
|
|
44977
|
+
label: (f = (d = Ne[h]) == null ? void 0 : d.name) != null ? f : h,
|
|
44975
44978
|
onChange: () => i(h)
|
|
44976
44979
|
},
|
|
44977
44980
|
h
|
|
@@ -44979,8 +44982,8 @@ const d6 = (t) => {
|
|
|
44979
44982
|
})
|
|
44980
44983
|
] }),
|
|
44981
44984
|
/* @__PURE__ */ s.jsxs(Ma, { children: [
|
|
44982
|
-
/* @__PURE__ */ s.jsx(
|
|
44983
|
-
/* @__PURE__ */ s.jsx(
|
|
44985
|
+
/* @__PURE__ */ s.jsx(Fe, { disabled: !a, loading: t.isLoadingTranslations, variant: "solid", color: "primary", onClick: o, children: t.labels.languagesModalSave }),
|
|
44986
|
+
/* @__PURE__ */ s.jsx(Fe, { variant: "plain", color: "neutral", onClick: r, children: t.labels.close })
|
|
44984
44987
|
] })
|
|
44985
44988
|
] })
|
|
44986
44989
|
}
|
|
@@ -45380,7 +45383,7 @@ const d6 = (t) => {
|
|
|
45380
45383
|
const ne = (oe ? n == null ? void 0 : n.language : null) || B, de = Object.values(x).filter(
|
|
45381
45384
|
(xe) => xe.language !== ne && !w.some((Ee) => Ee.id === xe.id)
|
|
45382
45385
|
), Ce = {}, Ve = de.map((xe) => C(void 0, null, function* () {
|
|
45383
|
-
var
|
|
45386
|
+
var ze;
|
|
45384
45387
|
const Ee = xe.id ? d(k({}, xe)) : h(k({}, xe));
|
|
45385
45388
|
Ee.auth_requirement = Ee.auth_requirement || i, Ee.related = (Ee.related || []).filter(
|
|
45386
45389
|
(ct) => !(ct.entity_type === r && ct.entity_relationship === "translatedFrom" && ct.entity_id === re.id)
|
|
@@ -45392,7 +45395,7 @@ const d6 = (t) => {
|
|
|
45392
45395
|
const $e = xe.id ? yield l(xe.id, k({}, Ee)) : yield c(k({}, Ee));
|
|
45393
45396
|
if ($e.ok) {
|
|
45394
45397
|
const ct = yield $e.json();
|
|
45395
|
-
Ce[xe.language] = (
|
|
45398
|
+
Ce[xe.language] = (ze = ct.data) != null ? ze : ct;
|
|
45396
45399
|
} else
|
|
45397
45400
|
throw new Error("translation");
|
|
45398
45401
|
}));
|
|
@@ -45413,8 +45416,8 @@ const d6 = (t) => {
|
|
|
45413
45416
|
const xe = yield fe.json(), Ee = (Se = xe.data) != null ? Se : xe;
|
|
45414
45417
|
Ce[Ee.language || B] = Ee;
|
|
45415
45418
|
const $e = {};
|
|
45416
|
-
Object.keys(Ce).forEach((
|
|
45417
|
-
$e[
|
|
45419
|
+
Object.keys(Ce).forEach((ze) => {
|
|
45420
|
+
$e[ze] = d(Ce[ze]);
|
|
45418
45421
|
}), y($e), _([]), ae(Ee, $e);
|
|
45419
45422
|
} else
|
|
45420
45423
|
X("update");
|
|
@@ -45513,7 +45516,7 @@ class h8 {
|
|
|
45513
45516
|
F(this, "excluded_profile_ids", []);
|
|
45514
45517
|
}
|
|
45515
45518
|
}
|
|
45516
|
-
const C6 = { supportedLanguages:
|
|
45519
|
+
const C6 = { supportedLanguages: Ne, languagesMap: pa }, I6 = { areAllValuesFalsy: ca, remapKeysToSpecificCase: Al, translateTexts: b6 }, f8 = {
|
|
45517
45520
|
/**
|
|
45518
45521
|
* React context that exposes the Fans United SDK instance and HTTPS service.
|
|
45519
45522
|
* Use via `useAPIContext()`.
|