fansunited-management-components 1.43.0-RC2 → 1.43.0-RC4
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 +401 -384
- package/index.umd.js +40 -40
- package/package.json +1 -1
- package/src/components/Utils/FormatNumber.d.ts +8 -0
- package/src/services/https/HttpsService.d.ts +1 -0
package/index.es.js
CHANGED
|
@@ -8,7 +8,7 @@ var Kr = Math.pow, ml = (e, t, n) => t in e ? My(e, t, { enumerable: !0, configu
|
|
|
8
8
|
for (var n of Zo(t))
|
|
9
9
|
Ad.call(t, n) && ml(e, n, t[n]);
|
|
10
10
|
return e;
|
|
11
|
-
},
|
|
11
|
+
}, K = (e, t) => Ly(e, jy(t));
|
|
12
12
|
var ea = (e) => typeof e == "symbol" ? e : e + "", Xe = (e, t) => {
|
|
13
13
|
var n = {};
|
|
14
14
|
for (var r in e)
|
|
@@ -37,13 +37,13 @@ var T = (e, t, n) => new Promise((r, i) => {
|
|
|
37
37
|
s((n = n.apply(e, t)).next());
|
|
38
38
|
});
|
|
39
39
|
import * as U from "react";
|
|
40
|
-
import Le, { createContext as jn, useState as
|
|
40
|
+
import Le, { createContext as jn, useState as Q, useEffect as be, useContext as Ut, useRef as Te, useLayoutEffect as as, useMemo as Ae, useCallback as Be, Component as Ny, Fragment as ac, forwardRef as vp, memo as Fy, useReducer as zy, cloneElement as Uy } from "react";
|
|
41
41
|
import { FansUnitedSDK as Vy } from "fansunited-sdk-esm";
|
|
42
42
|
import { unstable_batchedUpdates as Ji, createPortal as bp } from "react-dom";
|
|
43
43
|
import yp from "@emotion/styled";
|
|
44
44
|
import { ThemeContext as Hy, keyframes as xp, css as Qc, jsx as ye } from "@emotion/react";
|
|
45
45
|
import vl from "react-quill";
|
|
46
|
-
import { FormControl as Ge, FormLabel as Ye, FormHelperText as Ro, Box as le, Tabs as Wy, TabList as Gy, Tab as Td, TabPanel as Ed, Textarea as qc, Select as qt, Option as Rt, Modal as Jc, ModalDialog as Xc, ModalClose as Cp, DialogTitle as Zc, DialogContent as eu, Grid as si, Typography as
|
|
46
|
+
import { FormControl as Ge, FormLabel as Ye, FormHelperText as Ro, Box as le, Tabs as Wy, TabList as Gy, Tab as Td, TabPanel as Ed, Textarea as qc, Select as qt, Option as Rt, Modal as Jc, ModalDialog as Xc, ModalClose as Cp, DialogTitle as Zc, DialogContent as eu, Grid as si, Typography as ge, CircularProgress as $n, Button as Fe, Snackbar as Yy, Input as ur, Tooltip as Oe, IconButton as an, styled as Ky, Slider as Qy, DialogActions as wp, Card as xn, Stack as Ta, AspectRatio as Ip, Skeleton as Sp, CardContent as Ri, AccordionGroup as Ap, Accordion as Tp, AccordionSummary as Ep, AccordionDetails as _p, ListItemDecorator as io, Link as Oi, Avatar as Kt, Chip as Xt, selectClasses as Ea, Divider as tu, ListDivider as qy, Autocomplete as Br, AutocompleteOption as Nr, ChipDelete as Fr, Switch as Jy, switchClasses as Xy, Table as nu, Sheet as ru, ListItem as kp, List as Pp, Alert as Dp } from "@mui/joy";
|
|
47
47
|
import { ContentCopy as ss, Upload as Rp, Check as _d, Edit as Op, Delete as iu, Add as sc, Close as zr, Remove as Mp, EmojiEvents as bl } from "@mui/icons-material";
|
|
48
48
|
var Qt = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
49
49
|
function Bn(e) {
|
|
@@ -1296,7 +1296,7 @@ function Od(e, t) {
|
|
|
1296
1296
|
};
|
|
1297
1297
|
return wl.set(t, o), o;
|
|
1298
1298
|
}
|
|
1299
|
-
j0((e) =>
|
|
1299
|
+
j0((e) => K(j({}, e), {
|
|
1300
1300
|
get: (t, n, r) => Od(t, n) || e.get(t, n, r),
|
|
1301
1301
|
has: (t, n) => !!Od(t, n) || e.has(t, n)
|
|
1302
1302
|
}));
|
|
@@ -10955,7 +10955,7 @@ class qS {
|
|
|
10955
10955
|
ee(this, "generateSignedInUrl", (t) => T(this, null, function* () {
|
|
10956
10956
|
const n = `/clients/${this.clientId}/generate-signed-url?`, r = { key: this.apiKey }, i = yield this.getToken();
|
|
10957
10957
|
return yield fetch(this.clientApiBaseUrl + n + new URLSearchParams(r), {
|
|
10958
|
-
headers:
|
|
10958
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + i }),
|
|
10959
10959
|
method: "POST",
|
|
10960
10960
|
body: JSON.stringify(t)
|
|
10961
10961
|
});
|
|
@@ -10975,13 +10975,13 @@ class qS {
|
|
|
10975
10975
|
if (this.sportal365Config) {
|
|
10976
10976
|
const i = { Project: this.sportal365Config.project, Authorization: this.sportal365Config.authorization };
|
|
10977
10977
|
let o = { query: t, page: r.toString() };
|
|
10978
|
-
return n && (n.from && (o =
|
|
10978
|
+
return n && (n.from && (o = K(j({}, o), { from: n.from })), n.to && (o = K(j({}, o), { to: n.to }))), yield fetch(this.sportal365ImagesSearchURL + new URLSearchParams(o), { headers: i });
|
|
10979
10979
|
}
|
|
10980
10980
|
}));
|
|
10981
10981
|
ee(this, "getSchedulersByEntityId", (t) => T(this, null, function* () {
|
|
10982
10982
|
const n = `/clients/${this.clientId}/scheduler/tasks?`, r = { key: this.apiKey, limit: "50", entity_id: t }, i = yield this.getToken();
|
|
10983
10983
|
return yield fetch(this.clientApiBaseUrl + n + new URLSearchParams(r), {
|
|
10984
|
-
headers:
|
|
10984
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + i })
|
|
10985
10985
|
});
|
|
10986
10986
|
}));
|
|
10987
10987
|
ee(this, "setSchedulers", (t, n, r) => T(this, null, function* () {
|
|
@@ -10989,7 +10989,7 @@ class qS {
|
|
|
10989
10989
|
n === "CREATE" ? (i = `/clients/${this.clientId}/scheduler/tasks?`, o = "POST") : (i = `/clients/${this.clientId}/scheduler/tasks/${r}?`, o = "PUT");
|
|
10990
10990
|
const a = { key: this.apiKey }, s = yield this.getToken();
|
|
10991
10991
|
return yield fetch(this.clientApiBaseUrl + i + new URLSearchParams(a), {
|
|
10992
|
-
headers:
|
|
10992
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + s }),
|
|
10993
10993
|
body: JSON.stringify(t),
|
|
10994
10994
|
method: o
|
|
10995
10995
|
});
|
|
@@ -10997,7 +10997,7 @@ class qS {
|
|
|
10997
10997
|
ee(this, "deleteScheduledTask", (t) => T(this, null, function* () {
|
|
10998
10998
|
const n = `/clients/${this.clientId}/scheduler/tasks/${t}?`, r = { key: this.apiKey }, i = yield this.getToken();
|
|
10999
10999
|
return yield fetch(this.clientApiBaseUrl + n + new URLSearchParams(r), {
|
|
11000
|
-
headers:
|
|
11000
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + i }),
|
|
11001
11001
|
method: "DELETE"
|
|
11002
11002
|
});
|
|
11003
11003
|
}));
|
|
@@ -11036,13 +11036,13 @@ class oA extends qS {
|
|
|
11036
11036
|
ee(this, "getClientById", () => T(this, null, function* () {
|
|
11037
11037
|
const n = `/clients/${this.clientId}?`, r = { key: this.apiKey }, i = yield this.getToken();
|
|
11038
11038
|
return yield fetch(this.clientApiBaseUrl + n + new URLSearchParams(r), {
|
|
11039
|
-
headers:
|
|
11039
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + i })
|
|
11040
11040
|
});
|
|
11041
11041
|
}));
|
|
11042
11042
|
ee(this, "createTemplate", (n) => T(this, null, function* () {
|
|
11043
11043
|
const r = "/leaderboard/templates?", i = yield this.getToken();
|
|
11044
11044
|
return yield fetch(this.loyaltyBaseUrl + r + new URLSearchParams(this.mainQueryParams), {
|
|
11045
|
-
headers:
|
|
11045
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + i }),
|
|
11046
11046
|
method: "POST",
|
|
11047
11047
|
body: JSON.stringify(n)
|
|
11048
11048
|
});
|
|
@@ -11050,7 +11050,7 @@ class oA extends qS {
|
|
|
11050
11050
|
ee(this, "editTemplate", (n, r) => T(this, null, function* () {
|
|
11051
11051
|
const i = `/leaderboard/templates/${n}?`, o = yield this.getToken();
|
|
11052
11052
|
return yield fetch(this.loyaltyBaseUrl + i + new URLSearchParams(this.mainQueryParams), {
|
|
11053
|
-
headers:
|
|
11053
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + o }),
|
|
11054
11054
|
method: "PUT",
|
|
11055
11055
|
body: JSON.stringify(r)
|
|
11056
11056
|
});
|
|
@@ -11058,34 +11058,34 @@ class oA extends qS {
|
|
|
11058
11058
|
ee(this, "deleteTemplate", (n) => T(this, null, function* () {
|
|
11059
11059
|
const r = `/leaderboard/templates/${n}?`, i = yield this.getToken();
|
|
11060
11060
|
return yield fetch(this.loyaltyBaseUrl + r + new URLSearchParams(this.mainQueryParams), {
|
|
11061
|
-
headers:
|
|
11061
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + i }),
|
|
11062
11062
|
method: "DELETE"
|
|
11063
11063
|
});
|
|
11064
11064
|
}));
|
|
11065
11065
|
ee(this, "setWinners", (n) => T(this, null, function* () {
|
|
11066
11066
|
const r = "/winners?", i = yield this.getToken();
|
|
11067
11067
|
return yield fetch(this.predictionBaseUrl + r + new URLSearchParams(this.mainQueryParams), {
|
|
11068
|
-
headers:
|
|
11068
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + i }),
|
|
11069
11069
|
method: "POST",
|
|
11070
11070
|
body: JSON.stringify(n)
|
|
11071
11071
|
});
|
|
11072
11072
|
}));
|
|
11073
11073
|
ee(this, "exportDetailedLeaderboard", (n, r) => T(this, null, function* () {
|
|
11074
11074
|
const i = `/leaderboard/${n}/detailed?`, o = yield this.getToken();
|
|
11075
|
-
return yield fetch(this.loyaltyBaseUrl + i + new URLSearchParams(
|
|
11076
|
-
headers:
|
|
11075
|
+
return yield fetch(this.loyaltyBaseUrl + i + new URLSearchParams(K(j({}, this.mainQueryParams), { limit: r.toString() })), {
|
|
11076
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + o })
|
|
11077
11077
|
});
|
|
11078
11078
|
}));
|
|
11079
11079
|
ee(this, "exportDetailedGameLeaderboard", (n, r) => T(this, null, function* () {
|
|
11080
11080
|
const i = `/leaderboard/games/${n}/detailed?`, o = yield this.getToken();
|
|
11081
|
-
return yield fetch(this.loyaltyBaseUrl + i + new URLSearchParams(
|
|
11082
|
-
headers:
|
|
11081
|
+
return yield fetch(this.loyaltyBaseUrl + i + new URLSearchParams(K(j({}, this.mainQueryParams), { limit: r.toString() })), {
|
|
11082
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + o })
|
|
11083
11083
|
});
|
|
11084
11084
|
}));
|
|
11085
11085
|
ee(this, "createGame", (n) => T(this, null, function* () {
|
|
11086
11086
|
const r = "/games?", i = yield this.getToken();
|
|
11087
11087
|
return yield fetch(this.predictionBaseUrl + r + new URLSearchParams(this.mainQueryParams), {
|
|
11088
|
-
headers:
|
|
11088
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + i }),
|
|
11089
11089
|
method: "POST",
|
|
11090
11090
|
body: JSON.stringify(n)
|
|
11091
11091
|
});
|
|
@@ -11093,7 +11093,7 @@ class oA extends qS {
|
|
|
11093
11093
|
ee(this, "editGame", (n, r) => T(this, null, function* () {
|
|
11094
11094
|
const i = `/games/${n}?`, o = yield this.getToken();
|
|
11095
11095
|
return yield fetch(this.predictionBaseUrl + i + new URLSearchParams(this.mainQueryParams), {
|
|
11096
|
-
headers:
|
|
11096
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + o }),
|
|
11097
11097
|
method: "PATCH",
|
|
11098
11098
|
body: JSON.stringify(r)
|
|
11099
11099
|
});
|
|
@@ -11109,7 +11109,7 @@ class oA extends qS {
|
|
|
11109
11109
|
ee(this, "updateEntityFeatures", (n, r) => T(this, null, function* () {
|
|
11110
11110
|
const i = `/clients/${this.clientId}/features/${n}?`, o = yield this.getToken();
|
|
11111
11111
|
return yield fetch(this.clientApiBaseUrl + i + new URLSearchParams({ key: this.apiKey }), {
|
|
11112
|
-
headers:
|
|
11112
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + o }),
|
|
11113
11113
|
method: "PATCH",
|
|
11114
11114
|
body: JSON.stringify(r)
|
|
11115
11115
|
});
|
|
@@ -11129,7 +11129,7 @@ class oA extends qS {
|
|
|
11129
11129
|
ee(this, "createClassicQuiz", (n) => T(this, null, function* () {
|
|
11130
11130
|
const r = "/classic-quizzes?", i = yield this.getToken();
|
|
11131
11131
|
return yield fetch(this.miniGamesApiBaseUrl + r + new URLSearchParams(this.mainQueryParams), {
|
|
11132
|
-
headers:
|
|
11132
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + i }),
|
|
11133
11133
|
method: "POST",
|
|
11134
11134
|
body: JSON.stringify(n)
|
|
11135
11135
|
});
|
|
@@ -11137,7 +11137,7 @@ class oA extends qS {
|
|
|
11137
11137
|
ee(this, "updateClassicQuiz", (n, r) => T(this, null, function* () {
|
|
11138
11138
|
const i = `/classic-quizzes/${n}?`, o = yield this.getToken();
|
|
11139
11139
|
return yield fetch(this.miniGamesApiBaseUrl + i + new URLSearchParams(this.mainQueryParams), {
|
|
11140
|
-
headers:
|
|
11140
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + o }),
|
|
11141
11141
|
method: "PUT",
|
|
11142
11142
|
body: JSON.stringify(r)
|
|
11143
11143
|
});
|
|
@@ -11145,55 +11145,55 @@ class oA extends qS {
|
|
|
11145
11145
|
ee(this, "getClassicQuizById", (n) => T(this, null, function* () {
|
|
11146
11146
|
const r = `/classic-quizzes/${n}/staff?`, i = yield this.getToken();
|
|
11147
11147
|
return yield fetch(this.miniGamesApiBaseUrl + r + new URLSearchParams(this.mainQueryParams), {
|
|
11148
|
-
headers:
|
|
11148
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + i })
|
|
11149
11149
|
});
|
|
11150
11150
|
}));
|
|
11151
11151
|
ee(this, "deleteClassicQuiz", (n) => T(this, null, function* () {
|
|
11152
11152
|
const r = `/classic-quizzes/${n}?`, i = yield this.getToken();
|
|
11153
11153
|
return yield fetch(this.miniGamesApiBaseUrl + r + new URLSearchParams(this.mainQueryParams), {
|
|
11154
|
-
headers:
|
|
11154
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + i }),
|
|
11155
11155
|
method: "DELETE"
|
|
11156
11156
|
});
|
|
11157
11157
|
}));
|
|
11158
11158
|
ee(this, "calculateQuestionsReport", (n) => T(this, null, function* () {
|
|
11159
11159
|
const r = `/classic-quizzes/${n}/questions-report?`, i = yield this.getToken();
|
|
11160
11160
|
return yield fetch(this.miniGamesApiBaseUrl + r + new URLSearchParams(this.mainQueryParams), {
|
|
11161
|
-
headers:
|
|
11161
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + i }),
|
|
11162
11162
|
method: "POST"
|
|
11163
11163
|
});
|
|
11164
11164
|
}));
|
|
11165
11165
|
ee(this, "exportUsers", (n) => T(this, null, function* () {
|
|
11166
11166
|
const r = "/exports/users?", i = yield this.getToken();
|
|
11167
11167
|
return yield fetch(this.reportingApiBaseUrl + r + new URLSearchParams(this.mainQueryParams), {
|
|
11168
|
-
headers:
|
|
11168
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + i }),
|
|
11169
11169
|
method: "POST",
|
|
11170
11170
|
body: JSON.stringify(n)
|
|
11171
11171
|
});
|
|
11172
11172
|
}));
|
|
11173
11173
|
ee(this, "getClassicQuizParticipations", (n, r, i, o) => T(this, null, function* () {
|
|
11174
|
-
const a = "/classic-quizzes/participations?", s =
|
|
11174
|
+
const a = "/classic-quizzes/participations?", s = K(j({}, this.mainQueryParams), {
|
|
11175
11175
|
classic_quiz_ids: n,
|
|
11176
11176
|
from_date: r,
|
|
11177
11177
|
to_date: i,
|
|
11178
11178
|
group_by: o
|
|
11179
11179
|
}), l = yield this.getToken();
|
|
11180
11180
|
return yield fetch(this.reportingApiBaseUrl + a + new URLSearchParams(s), {
|
|
11181
|
-
headers:
|
|
11181
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + l })
|
|
11182
11182
|
});
|
|
11183
11183
|
}));
|
|
11184
11184
|
ee(this, "getEntityParticipations", (n, r, i) => T(this, null, function* () {
|
|
11185
|
-
const o = `/participations/${n}/breakdown?`, a =
|
|
11185
|
+
const o = `/participations/${n}/breakdown?`, a = K(j({}, this.mainQueryParams), {
|
|
11186
11186
|
from_date: r,
|
|
11187
11187
|
to_date: i
|
|
11188
11188
|
}), s = yield this.getToken();
|
|
11189
11189
|
return yield fetch(this.reportingApiBaseUrl + o + new URLSearchParams(a), {
|
|
11190
|
-
headers:
|
|
11190
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + s })
|
|
11191
11191
|
});
|
|
11192
11192
|
}));
|
|
11193
11193
|
ee(this, "createPoll", (n) => T(this, null, function* () {
|
|
11194
11194
|
const r = "/polls?", i = yield this.getToken();
|
|
11195
11195
|
return yield fetch(this.votingApiBaseUrl + r + new URLSearchParams(this.mainQueryParams), {
|
|
11196
|
-
headers:
|
|
11196
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + i }),
|
|
11197
11197
|
method: "POST",
|
|
11198
11198
|
body: JSON.stringify(n)
|
|
11199
11199
|
});
|
|
@@ -11201,7 +11201,7 @@ class oA extends qS {
|
|
|
11201
11201
|
ee(this, "updatePoll", (n, r) => T(this, null, function* () {
|
|
11202
11202
|
const i = `/polls/${n}?`, o = yield this.getToken();
|
|
11203
11203
|
return yield fetch(this.votingApiBaseUrl + i + new URLSearchParams(this.mainQueryParams), {
|
|
11204
|
-
headers:
|
|
11204
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + o }),
|
|
11205
11205
|
method: "PUT",
|
|
11206
11206
|
body: JSON.stringify(r)
|
|
11207
11207
|
});
|
|
@@ -11209,21 +11209,21 @@ class oA extends qS {
|
|
|
11209
11209
|
ee(this, "deletePoll", (n) => T(this, null, function* () {
|
|
11210
11210
|
const r = `/polls/${n}?`, i = yield this.getToken();
|
|
11211
11211
|
return yield fetch(this.votingApiBaseUrl + r + new URLSearchParams(this.mainQueryParams), {
|
|
11212
|
-
headers:
|
|
11212
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + i }),
|
|
11213
11213
|
method: "DELETE"
|
|
11214
11214
|
});
|
|
11215
11215
|
}));
|
|
11216
11216
|
ee(this, "getEitherOrById", (n, r) => T(this, null, function* () {
|
|
11217
11217
|
const i = `/either-or/${n}/staff?`, o = yield this.getToken();
|
|
11218
11218
|
let a = null;
|
|
11219
|
-
return r && (a =
|
|
11220
|
-
headers:
|
|
11219
|
+
return r && (a = K(j({}, this.mainQueryParams), { client_id: r })), yield fetch(this.miniGamesApiBaseUrl + i + new URLSearchParams(a || this.mainQueryParams), {
|
|
11220
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + o })
|
|
11221
11221
|
});
|
|
11222
11222
|
}));
|
|
11223
11223
|
ee(this, "createEitherOr", (n) => T(this, null, function* () {
|
|
11224
11224
|
const r = "/either-or?", i = yield this.getToken();
|
|
11225
11225
|
return yield fetch(this.miniGamesApiBaseUrl + r + new URLSearchParams(this.mainQueryParams), {
|
|
11226
|
-
headers:
|
|
11226
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + i }),
|
|
11227
11227
|
method: "POST",
|
|
11228
11228
|
body: JSON.stringify(n)
|
|
11229
11229
|
});
|
|
@@ -11231,7 +11231,7 @@ class oA extends qS {
|
|
|
11231
11231
|
ee(this, "updateEitherOr", (n, r) => T(this, null, function* () {
|
|
11232
11232
|
const i = `/either-or/${n}?`, o = yield this.getToken();
|
|
11233
11233
|
return yield fetch(this.miniGamesApiBaseUrl + i + new URLSearchParams(this.mainQueryParams), {
|
|
11234
|
-
headers:
|
|
11234
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + o }),
|
|
11235
11235
|
method: "PUT",
|
|
11236
11236
|
body: JSON.stringify(r)
|
|
11237
11237
|
});
|
|
@@ -11239,7 +11239,7 @@ class oA extends qS {
|
|
|
11239
11239
|
ee(this, "deleteEitherOr", (n) => T(this, null, function* () {
|
|
11240
11240
|
const r = `/either-or/${n}?`, i = yield this.getToken();
|
|
11241
11241
|
return yield fetch(this.miniGamesApiBaseUrl + r + new URLSearchParams(this.mainQueryParams), {
|
|
11242
|
-
headers:
|
|
11242
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + i }),
|
|
11243
11243
|
method: "DELETE"
|
|
11244
11244
|
});
|
|
11245
11245
|
}));
|
|
@@ -11248,13 +11248,13 @@ class oA extends qS {
|
|
|
11248
11248
|
r && (a.start_after = r);
|
|
11249
11249
|
const s = yield this.getToken();
|
|
11250
11250
|
return yield fetch(this.clientApiBaseUrl + o + new URLSearchParams(a), {
|
|
11251
|
-
headers:
|
|
11251
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + s })
|
|
11252
11252
|
});
|
|
11253
11253
|
}));
|
|
11254
11254
|
ee(this, "getListById", (n) => T(this, null, function* () {
|
|
11255
11255
|
const r = `/clients/${this.clientId}/lists/${n}?`, i = { key: this.apiKey }, o = yield this.getToken();
|
|
11256
11256
|
return yield fetch(this.clientApiBaseUrl + r + new URLSearchParams(i), {
|
|
11257
|
-
headers:
|
|
11257
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + o })
|
|
11258
11258
|
});
|
|
11259
11259
|
}));
|
|
11260
11260
|
ee(this, "getListContent", (n, r, i = "DESC", o) => T(this, null, function* () {
|
|
@@ -11262,13 +11262,13 @@ class oA extends qS {
|
|
|
11262
11262
|
o && (s.page = o.toString());
|
|
11263
11263
|
const l = yield this.getToken();
|
|
11264
11264
|
return yield fetch(this.clientApiBaseUrl + a + new URLSearchParams(s), {
|
|
11265
|
-
headers:
|
|
11265
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + l })
|
|
11266
11266
|
});
|
|
11267
11267
|
}));
|
|
11268
11268
|
ee(this, "createList", (n) => T(this, null, function* () {
|
|
11269
11269
|
const r = `/clients/${this.clientId}/lists/?`, i = { key: this.apiKey }, o = yield this.getToken();
|
|
11270
11270
|
return yield fetch(this.clientApiBaseUrl + r + new URLSearchParams(i), {
|
|
11271
|
-
headers:
|
|
11271
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + o }),
|
|
11272
11272
|
method: "POST",
|
|
11273
11273
|
body: JSON.stringify(n)
|
|
11274
11274
|
});
|
|
@@ -11276,7 +11276,7 @@ class oA extends qS {
|
|
|
11276
11276
|
ee(this, "updateList", (n, r) => T(this, null, function* () {
|
|
11277
11277
|
const i = `/clients/${this.clientId}/lists/${n}?`, o = { key: this.apiKey }, a = yield this.getToken();
|
|
11278
11278
|
return yield fetch(this.clientApiBaseUrl + i + new URLSearchParams(o), {
|
|
11279
|
-
headers:
|
|
11279
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + a }),
|
|
11280
11280
|
method: "PUT",
|
|
11281
11281
|
body: JSON.stringify(r)
|
|
11282
11282
|
});
|
|
@@ -11284,20 +11284,20 @@ class oA extends qS {
|
|
|
11284
11284
|
ee(this, "deleteList", (n) => T(this, null, function* () {
|
|
11285
11285
|
const r = `/clients/${this.clientId}/lists/${n}?`, i = { key: this.apiKey }, o = yield this.getToken();
|
|
11286
11286
|
return yield fetch(this.clientApiBaseUrl + r + new URLSearchParams(i), {
|
|
11287
|
-
headers:
|
|
11287
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + o }),
|
|
11288
11288
|
method: "DELETE"
|
|
11289
11289
|
});
|
|
11290
11290
|
}));
|
|
11291
11291
|
ee(this, "getLanguageConfig", () => T(this, null, function* () {
|
|
11292
11292
|
const n = `/clients/${this.clientId}/config/language?`, r = { key: this.apiKey }, i = yield this.getToken();
|
|
11293
11293
|
return yield fetch(this.clientApiBaseUrl + n + new URLSearchParams(r), {
|
|
11294
|
-
headers:
|
|
11294
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + i })
|
|
11295
11295
|
});
|
|
11296
11296
|
}));
|
|
11297
11297
|
ee(this, "updateLanguageConfig", (n) => T(this, null, function* () {
|
|
11298
11298
|
const r = `/clients/${this.clientId}/config/language?`, i = { key: this.apiKey }, o = yield this.getToken();
|
|
11299
11299
|
return yield fetch(this.clientApiBaseUrl + r + new URLSearchParams(i), {
|
|
11300
|
-
headers:
|
|
11300
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + o }),
|
|
11301
11301
|
method: "PUT",
|
|
11302
11302
|
body: JSON.stringify(n)
|
|
11303
11303
|
});
|
|
@@ -11305,7 +11305,7 @@ class oA extends qS {
|
|
|
11305
11305
|
ee(this, "createBracketGame", (n) => T(this, null, function* () {
|
|
11306
11306
|
const r = "/custom/bracket?", i = yield this.getToken();
|
|
11307
11307
|
return yield fetch(this.predictionBaseUrl + r + new URLSearchParams(this.mainQueryParams), {
|
|
11308
|
-
headers:
|
|
11308
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + i }),
|
|
11309
11309
|
method: "POST",
|
|
11310
11310
|
body: JSON.stringify(n)
|
|
11311
11311
|
});
|
|
@@ -11313,7 +11313,7 @@ class oA extends qS {
|
|
|
11313
11313
|
ee(this, "updateBracketGame", (n, r) => T(this, null, function* () {
|
|
11314
11314
|
const i = `/custom/bracket/${n}?`, o = yield this.getToken();
|
|
11315
11315
|
return yield fetch(this.predictionBaseUrl + i + new URLSearchParams(this.mainQueryParams), {
|
|
11316
|
-
headers:
|
|
11316
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + o }),
|
|
11317
11317
|
method: "PUT",
|
|
11318
11318
|
body: JSON.stringify(r)
|
|
11319
11319
|
});
|
|
@@ -11321,34 +11321,34 @@ class oA extends qS {
|
|
|
11321
11321
|
ee(this, "resolvePredictions", (n) => T(this, null, function* () {
|
|
11322
11322
|
const r = "/custom/bracket/resolve?", o = yield this.getToken();
|
|
11323
11323
|
return yield fetch(this.customResolverUrl + r + new URLSearchParams({ client_id: this.clientId, game_id: n }), {
|
|
11324
|
-
headers:
|
|
11324
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + o }),
|
|
11325
11325
|
signal: AbortSignal.timeout(6e5)
|
|
11326
11326
|
});
|
|
11327
11327
|
}));
|
|
11328
11328
|
ee(this, "exportLeadsPerEntity", (n) => T(this, null, function* () {
|
|
11329
|
-
const r = "/leads/export?", i =
|
|
11329
|
+
const r = "/leads/export?", i = K(j({}, this.mainQueryParams), { content_id: n }), o = yield this.getToken();
|
|
11330
11330
|
return yield fetch(this.profileApiBaseUrl + r + new URLSearchParams(i), {
|
|
11331
|
-
headers:
|
|
11331
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + o })
|
|
11332
11332
|
});
|
|
11333
11333
|
}));
|
|
11334
11334
|
ee(this, "getLeadStatistics", (n) => T(this, null, function* () {
|
|
11335
11335
|
const r = "/leads/statistics?", i = yield this.getToken();
|
|
11336
11336
|
let o = null;
|
|
11337
11337
|
return n ? o = new URLSearchParams(j(j({}, this.mainQueryParams), n)) : o = new URLSearchParams(this.mainQueryParams), yield fetch(this.profileApiBaseUrl + r + o, {
|
|
11338
|
-
headers:
|
|
11338
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + i })
|
|
11339
11339
|
});
|
|
11340
11340
|
}));
|
|
11341
11341
|
ee(this, "exportLeads", (n) => T(this, null, function* () {
|
|
11342
11342
|
const r = "/leads/export?", i = yield this.getToken();
|
|
11343
11343
|
let o = null;
|
|
11344
11344
|
return n ? o = new URLSearchParams(j(j({}, this.mainQueryParams), n)) : o = new URLSearchParams(this.mainQueryParams), yield fetch(this.profileApiBaseUrl + r + o, {
|
|
11345
|
-
headers:
|
|
11345
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + i })
|
|
11346
11346
|
});
|
|
11347
11347
|
}));
|
|
11348
11348
|
ee(this, "createStandingGame", (n) => T(this, null, function* () {
|
|
11349
11349
|
const r = "/custom/standing?", i = yield this.getToken();
|
|
11350
11350
|
return yield fetch(this.predictionBaseUrl + r + new URLSearchParams(this.mainQueryParams), {
|
|
11351
|
-
headers:
|
|
11351
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + i }),
|
|
11352
11352
|
method: "POST",
|
|
11353
11353
|
body: JSON.stringify(n)
|
|
11354
11354
|
});
|
|
@@ -11356,7 +11356,7 @@ class oA extends qS {
|
|
|
11356
11356
|
ee(this, "updateStandingGame", (n, r) => T(this, null, function* () {
|
|
11357
11357
|
const i = `/custom/standing/${n}?`, o = yield this.getToken();
|
|
11358
11358
|
return yield fetch(this.predictionBaseUrl + i + new URLSearchParams(this.mainQueryParams), {
|
|
11359
|
-
headers:
|
|
11359
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + o }),
|
|
11360
11360
|
method: "PUT",
|
|
11361
11361
|
body: JSON.stringify(r)
|
|
11362
11362
|
});
|
|
@@ -11364,30 +11364,30 @@ class oA extends qS {
|
|
|
11364
11364
|
ee(this, "resolveStandingPredictions", (n) => T(this, null, function* () {
|
|
11365
11365
|
const r = "/custom/standing/resolve?", o = yield this.getToken();
|
|
11366
11366
|
return yield fetch(this.customResolverUrl + r + new URLSearchParams({ client_id: this.clientId, game_id: n }), {
|
|
11367
|
-
headers:
|
|
11367
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + o }),
|
|
11368
11368
|
signal: AbortSignal.timeout(6e5)
|
|
11369
11369
|
});
|
|
11370
11370
|
}));
|
|
11371
11371
|
ee(this, "moderateUserPosts", (n, r) => T(this, null, function* () {
|
|
11372
|
-
const i = "/moderation/bulk?", o = yield this.getToken(), a =
|
|
11372
|
+
const i = "/moderation/bulk?", o = yield this.getToken(), a = K(j({}, this.mainQueryParams), {
|
|
11373
11373
|
user_id: n,
|
|
11374
11374
|
reason: r
|
|
11375
11375
|
});
|
|
11376
11376
|
return yield fetch(this.discussionsApiBaseUrl + i + new URLSearchParams(a), {
|
|
11377
|
-
headers:
|
|
11377
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + o }),
|
|
11378
11378
|
method: "POST"
|
|
11379
11379
|
});
|
|
11380
11380
|
}));
|
|
11381
11381
|
ee(this, "getUserBanStatus", (n) => T(this, null, function* () {
|
|
11382
11382
|
const r = `/discussions/users/${n}/ban?`, i = yield this.getToken();
|
|
11383
11383
|
return yield fetch(this.discussionsApiBaseUrl + r + new URLSearchParams(this.mainQueryParams), {
|
|
11384
|
-
headers:
|
|
11384
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + i })
|
|
11385
11385
|
});
|
|
11386
11386
|
}));
|
|
11387
11387
|
ee(this, "banUser", (n, r, i) => T(this, null, function* () {
|
|
11388
11388
|
const o = `/discussions/users/${n}/ban?`, a = yield this.getToken(), s = { banned_period_in_days: r, banned_reason: i };
|
|
11389
11389
|
return yield fetch(this.discussionsApiBaseUrl + o + new URLSearchParams(this.mainQueryParams), {
|
|
11390
|
-
headers:
|
|
11390
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + a }),
|
|
11391
11391
|
method: "POST",
|
|
11392
11392
|
body: JSON.stringify(s)
|
|
11393
11393
|
});
|
|
@@ -11395,7 +11395,7 @@ class oA extends qS {
|
|
|
11395
11395
|
ee(this, "unbanUser", (n, r) => T(this, null, function* () {
|
|
11396
11396
|
const i = `/discussions/users/${n}/ban?`, o = yield this.getToken(), a = { unban_reason: r };
|
|
11397
11397
|
return yield fetch(this.discussionsApiBaseUrl + i + new URLSearchParams(this.mainQueryParams), {
|
|
11398
|
-
headers:
|
|
11398
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + o }),
|
|
11399
11399
|
method: "DELETE",
|
|
11400
11400
|
body: JSON.stringify(a)
|
|
11401
11401
|
});
|
|
@@ -11403,7 +11403,7 @@ class oA extends qS {
|
|
|
11403
11403
|
ee(this, "updateUser", (n, r, i) => T(this, null, function* () {
|
|
11404
11404
|
const o = `/profiles/${n}/verify?`, a = yield this.getToken(), s = r === "verify" ? { verified: i } : { staff_member: i };
|
|
11405
11405
|
return yield fetch(this.profileApiBaseUrl + o + new URLSearchParams(this.mainQueryParams), {
|
|
11406
|
-
headers:
|
|
11406
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + a }),
|
|
11407
11407
|
method: "POST",
|
|
11408
11408
|
body: JSON.stringify(s)
|
|
11409
11409
|
});
|
|
@@ -11411,14 +11411,14 @@ class oA extends qS {
|
|
|
11411
11411
|
ee(this, "deleteUserProfile", (n) => T(this, null, function* () {
|
|
11412
11412
|
const r = `/profiles/${n}?`, i = yield this.getToken();
|
|
11413
11413
|
return yield fetch(this.profileApiBaseUrl + r + new URLSearchParams(this.mainQueryParams), {
|
|
11414
|
-
headers:
|
|
11414
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + i }),
|
|
11415
11415
|
method: "DELETE"
|
|
11416
11416
|
});
|
|
11417
11417
|
}));
|
|
11418
11418
|
ee(this, "createDiscussion", (n) => T(this, null, function* () {
|
|
11419
11419
|
const r = "/discussions?", i = yield this.getToken();
|
|
11420
11420
|
return yield fetch(this.discussionsApiBaseUrl + r + new URLSearchParams(this.mainQueryParams), {
|
|
11421
|
-
headers:
|
|
11421
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + i }),
|
|
11422
11422
|
method: "POST",
|
|
11423
11423
|
body: JSON.stringify(n)
|
|
11424
11424
|
});
|
|
@@ -11426,7 +11426,7 @@ class oA extends qS {
|
|
|
11426
11426
|
ee(this, "deleteDiscussion", (n) => T(this, null, function* () {
|
|
11427
11427
|
const r = `/discussions/${n}?`, i = yield this.getToken();
|
|
11428
11428
|
return yield fetch(this.discussionsApiBaseUrl + r + new URLSearchParams(this.mainQueryParams), {
|
|
11429
|
-
headers:
|
|
11429
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + i }),
|
|
11430
11430
|
method: "DELETE"
|
|
11431
11431
|
});
|
|
11432
11432
|
}));
|
|
@@ -11435,44 +11435,44 @@ class oA extends qS {
|
|
|
11435
11435
|
let l = {};
|
|
11436
11436
|
if (r.length > 0) {
|
|
11437
11437
|
const c = r.join(",");
|
|
11438
|
-
l =
|
|
11438
|
+
l = K(j({}, this.mainQueryParams), { post_ids: c, reason: i });
|
|
11439
11439
|
} else
|
|
11440
|
-
l =
|
|
11440
|
+
l = K(j({}, this.mainQueryParams), { discussion_id: n, reason: i });
|
|
11441
11441
|
return yield fetch(this.discussionsApiBaseUrl + a + new URLSearchParams(l), {
|
|
11442
|
-
headers:
|
|
11442
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + s }),
|
|
11443
11443
|
method: "POST"
|
|
11444
11444
|
});
|
|
11445
11445
|
}));
|
|
11446
11446
|
ee(this, "pinDiscussionPosts", (n, r) => T(this, null, function* () {
|
|
11447
|
-
const i = `/discussions/${n}/pins?`, o = yield this.getToken(), a =
|
|
11447
|
+
const i = `/discussions/${n}/pins?`, o = yield this.getToken(), a = K(j({}, this.mainQueryParams), { pin_post_ids: r.join(",") });
|
|
11448
11448
|
return yield fetch(this.discussionsApiBaseUrl + i + new URLSearchParams(a), {
|
|
11449
|
-
headers:
|
|
11449
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + o }),
|
|
11450
11450
|
method: "PATCH"
|
|
11451
11451
|
});
|
|
11452
11452
|
}));
|
|
11453
11453
|
ee(this, "unpinDiscussionPosts", (n, r) => T(this, null, function* () {
|
|
11454
|
-
const i = `/discussions/${n}/pins?`, o = yield this.getToken(), a =
|
|
11454
|
+
const i = `/discussions/${n}/pins?`, o = yield this.getToken(), a = K(j({}, this.mainQueryParams), { pin_post_ids: r.join(",") });
|
|
11455
11455
|
return yield fetch(this.discussionsApiBaseUrl + i + new URLSearchParams(a), {
|
|
11456
|
-
headers:
|
|
11456
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + o }),
|
|
11457
11457
|
method: "DELETE"
|
|
11458
11458
|
});
|
|
11459
11459
|
}));
|
|
11460
11460
|
ee(this, "getPostsByStaffMember", (n) => T(this, null, function* () {
|
|
11461
11461
|
const r = "/posts/staff?", i = yield this.getToken();
|
|
11462
11462
|
return yield fetch(this.discussionsApiBaseUrl + r + new URLSearchParams(j(j({}, this.mainQueryParams), n)), {
|
|
11463
|
-
headers:
|
|
11463
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + i })
|
|
11464
11464
|
});
|
|
11465
11465
|
}));
|
|
11466
11466
|
ee(this, "getReportedPosts", (n) => T(this, null, function* () {
|
|
11467
11467
|
const r = "/posts/staff/reported?", i = yield this.getToken();
|
|
11468
11468
|
return yield fetch(this.discussionsApiBaseUrl + r + new URLSearchParams(j(j({}, this.mainQueryParams), n)), {
|
|
11469
|
-
headers:
|
|
11469
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + i })
|
|
11470
11470
|
});
|
|
11471
11471
|
}));
|
|
11472
11472
|
ee(this, "updateDiscussionsFeature", (n) => T(this, null, function* () {
|
|
11473
11473
|
const r = `/clients/${this.clientId}/features/discussions?`, i = yield this.getToken();
|
|
11474
11474
|
return yield fetch(this.clientApiBaseUrl + r + new URLSearchParams({ key: this.apiKey }), {
|
|
11475
|
-
headers:
|
|
11475
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + i }),
|
|
11476
11476
|
method: "PATCH",
|
|
11477
11477
|
body: JSON.stringify(n)
|
|
11478
11478
|
});
|
|
@@ -11480,7 +11480,7 @@ class oA extends qS {
|
|
|
11480
11480
|
ee(this, "updateProfilePreferences", (n) => T(this, null, function* () {
|
|
11481
11481
|
const r = `/clients/${this.clientId}/features/profile_preferences?`, i = yield this.getToken();
|
|
11482
11482
|
return yield fetch(this.clientApiBaseUrl + r + new URLSearchParams({ key: this.apiKey }), {
|
|
11483
|
-
headers:
|
|
11483
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + i }),
|
|
11484
11484
|
method: "PATCH",
|
|
11485
11485
|
body: JSON.stringify(n)
|
|
11486
11486
|
});
|
|
@@ -11488,17 +11488,27 @@ class oA extends qS {
|
|
|
11488
11488
|
ee(this, "getClientBadges", () => T(this, null, function* () {
|
|
11489
11489
|
const n = `/clients/${this.clientId}/features/loyalty/badges?`, r = { key: this.apiKey }, i = yield this.getToken();
|
|
11490
11490
|
return yield fetch(this.clientApiBaseUrl + n + new URLSearchParams(r), {
|
|
11491
|
-
headers:
|
|
11491
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + i })
|
|
11492
11492
|
});
|
|
11493
11493
|
}));
|
|
11494
11494
|
ee(this, "updateClientBadges", (n) => T(this, null, function* () {
|
|
11495
11495
|
const r = `/clients/${this.clientId}/features/loyalty/badges?`, i = yield this.getToken();
|
|
11496
11496
|
return yield fetch(this.clientApiBaseUrl + r + new URLSearchParams({ key: this.apiKey }), {
|
|
11497
|
-
headers:
|
|
11497
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + i }),
|
|
11498
11498
|
method: "PUT",
|
|
11499
11499
|
body: JSON.stringify(n)
|
|
11500
11500
|
});
|
|
11501
11501
|
}));
|
|
11502
|
+
ee(this, "getEngagementThroughPredictionsReport", (n, r, i) => T(this, null, function* () {
|
|
11503
|
+
const o = "/predictions/football/engagements?", a = K(j({}, this.mainQueryParams), {
|
|
11504
|
+
from_date: r,
|
|
11505
|
+
to_date: i,
|
|
11506
|
+
type: n
|
|
11507
|
+
}), s = yield this.getToken();
|
|
11508
|
+
return yield fetch(this.reportingApiBaseUrl + o + new URLSearchParams(a), {
|
|
11509
|
+
headers: K(j({}, this.headers), { Authorization: "Bearer " + s })
|
|
11510
|
+
});
|
|
11511
|
+
}));
|
|
11502
11512
|
this.loyaltyBaseUrl = JS(n.environment), this.predictionBaseUrl = XS(n.environment), this.miniGamesApiBaseUrl = ZS(n.environment), this.reportingApiBaseUrl = eA(n.environment), this.votingApiBaseUrl = tA(n.environment), this.profileApiBaseUrl = rA(n.environment), this.customResolverUrl = nA(n.environment), this.discussionsApiBaseUrl = iA(n.environment);
|
|
11503
11513
|
}
|
|
11504
11514
|
}
|
|
@@ -11519,7 +11529,7 @@ const aA = (e, t) => !e && !t ? null : !e && t ? (console.warn(
|
|
|
11519
11529
|
}, r = aA(e.sportal365Project, e.sportal365Infrastructure), i = Vy(n), o = new oA(n, r);
|
|
11520
11530
|
return /* @__PURE__ */ u.jsx(ws.Provider, { value: { sdk: i, https: o }, children: t });
|
|
11521
11531
|
}, am = jn(null), lA = ({ children: e, environment: t }) => {
|
|
11522
|
-
const [n, r] =
|
|
11532
|
+
const [n, r] = Q(null), [i, o] = Q(!0);
|
|
11523
11533
|
return be(() => Fo(t).onAuthStateChanged((s) => {
|
|
11524
11534
|
Ji(() => {
|
|
11525
11535
|
o(!1), r(s);
|
|
@@ -12883,7 +12893,7 @@ function y1(e, t) {
|
|
|
12883
12893
|
y = !1;
|
|
12884
12894
|
}
|
|
12885
12895
|
try {
|
|
12886
|
-
n = new IntersectionObserver(x,
|
|
12896
|
+
n = new IntersectionObserver(x, K(j({}, w), {
|
|
12887
12897
|
// Handle <iframe>s
|
|
12888
12898
|
root: i.ownerDocument
|
|
12889
12899
|
}));
|
|
@@ -16763,7 +16773,7 @@ function x_(e) {
|
|
|
16763
16773
|
};
|
|
16764
16774
|
}
|
|
16765
16775
|
const r = {}, i = (o) => (n(r, o), r);
|
|
16766
|
-
return n(i),
|
|
16776
|
+
return n(i), K(j({}, e), {
|
|
16767
16777
|
containerQueries: i
|
|
16768
16778
|
});
|
|
16769
16779
|
}
|
|
@@ -17659,7 +17669,7 @@ const yk = (e) => {
|
|
|
17659
17669
|
key: n,
|
|
17660
17670
|
val: e[n]
|
|
17661
17671
|
})) || [];
|
|
17662
|
-
return t.sort((n, r) => n.val - r.val), t.reduce((n, r) =>
|
|
17672
|
+
return t.sort((n, r) => n.val - r.val), t.reduce((n, r) => K(j({}, n), {
|
|
17663
17673
|
[r.key]: r.val
|
|
17664
17674
|
}), {});
|
|
17665
17675
|
};
|
|
@@ -17821,7 +17831,7 @@ function Zm(e, t, n = []) {
|
|
|
17821
17831
|
e: for (let o = 0; o < t.length; o += 1) {
|
|
17822
17832
|
const a = t[o];
|
|
17823
17833
|
if (typeof a.props == "function") {
|
|
17824
|
-
if (r != null || (r =
|
|
17834
|
+
if (r != null || (r = K(j(j({}, e), e.ownerState), {
|
|
17825
17835
|
ownerState: e.ownerState
|
|
17826
17836
|
})), !a.props(r))
|
|
17827
17837
|
continue;
|
|
@@ -17829,7 +17839,7 @@ function Zm(e, t, n = []) {
|
|
|
17829
17839
|
for (const s in a.props)
|
|
17830
17840
|
if (e[s] !== a.props[s] && ((i = e.ownerState) == null ? void 0 : i[s]) !== a.props[s])
|
|
17831
17841
|
continue e;
|
|
17832
|
-
typeof a.style == "function" ? (r != null || (r =
|
|
17842
|
+
typeof a.style == "function" ? (r != null || (r = K(j(j({}, e), e.ownerState), {
|
|
17833
17843
|
ownerState: e.ownerState
|
|
17834
17844
|
})), n.push(a.style(r))) : n.push(a.style);
|
|
17835
17845
|
}
|
|
@@ -18706,7 +18716,7 @@ function cP(e) {
|
|
|
18706
18716
|
}
|
|
18707
18717
|
function uP(e) {
|
|
18708
18718
|
const t = j(j({}, sP), e.easing), n = j(j({}, lP), e.duration);
|
|
18709
|
-
return
|
|
18719
|
+
return K(j({
|
|
18710
18720
|
getAutoHeightDuration: cP,
|
|
18711
18721
|
create: (i = ["all"], o = {}) => {
|
|
18712
18722
|
const d = o, {
|
|
@@ -18902,14 +18912,14 @@ function $l(e, t, n, r) {
|
|
|
18902
18912
|
t = t === !0 ? {} : t;
|
|
18903
18913
|
const i = r === "dark" ? "dark" : "light";
|
|
18904
18914
|
if (!n) {
|
|
18905
|
-
e[r] = gP(
|
|
18915
|
+
e[r] = gP(K(j({}, t), {
|
|
18906
18916
|
palette: j({
|
|
18907
18917
|
mode: i
|
|
18908
18918
|
}, t == null ? void 0 : t.palette)
|
|
18909
18919
|
}));
|
|
18910
18920
|
return;
|
|
18911
18921
|
}
|
|
18912
|
-
const s = Ac(
|
|
18922
|
+
const s = Ac(K(j({}, n), {
|
|
18913
18923
|
palette: j({
|
|
18914
18924
|
mode: i
|
|
18915
18925
|
}, t == null ? void 0 : t.palette)
|
|
@@ -18918,7 +18928,7 @@ function $l(e, t, n, r) {
|
|
|
18918
18928
|
} = s, a = Xe(s, [
|
|
18919
18929
|
"palette"
|
|
18920
18930
|
]);
|
|
18921
|
-
return e[r] =
|
|
18931
|
+
return e[r] = K(j({}, t), {
|
|
18922
18932
|
palette: o,
|
|
18923
18933
|
opacity: j(j({}, iv(i)), t == null ? void 0 : t.opacity),
|
|
18924
18934
|
overlays: (t == null ? void 0 : t.overlays) || ov(i)
|
|
@@ -18957,7 +18967,7 @@ function wP(e = {}, ...t) {
|
|
|
18957
18967
|
throw new Error($r(21, f));
|
|
18958
18968
|
const y = $l(C, w, c, f);
|
|
18959
18969
|
m && !C.light && $l(C, m, void 0, "light"), g && !C.dark && $l(C, g, void 0, "dark");
|
|
18960
|
-
let x =
|
|
18970
|
+
let x = K(j({
|
|
18961
18971
|
defaultColorScheme: f
|
|
18962
18972
|
}, y), {
|
|
18963
18973
|
cssVarPrefix: o,
|
|
@@ -19010,8 +19020,8 @@ function wP(e = {}, ...t) {
|
|
|
19010
19020
|
}, x.toRuntimeSource = rv, x;
|
|
19011
19021
|
}
|
|
19012
19022
|
function Uf(e, t, n) {
|
|
19013
|
-
e.colorSchemes && n && (e.colorSchemes[t] =
|
|
19014
|
-
palette: dd(
|
|
19023
|
+
e.colorSchemes && n && (e.colorSchemes[t] = K(j({}, n !== !0 && n), {
|
|
19024
|
+
palette: dd(K(j({}, n === !0 ? {} : n.palette), {
|
|
19015
19025
|
mode: t
|
|
19016
19026
|
}))
|
|
19017
19027
|
// cast type to skip module augmentation test
|
|
@@ -19031,7 +19041,7 @@ function IP(e = {}, ...t) {
|
|
|
19031
19041
|
"colorSchemes",
|
|
19032
19042
|
"defaultColorScheme"
|
|
19033
19043
|
]), s = o || "light", l = i == null ? void 0 : i[s], c = j(j({}, i), n ? {
|
|
19034
|
-
[s]:
|
|
19044
|
+
[s]: K(j({}, typeof l != "boolean" && l), {
|
|
19035
19045
|
palette: n
|
|
19036
19046
|
})
|
|
19037
19047
|
} : void 0);
|
|
@@ -19042,16 +19052,16 @@ function IP(e = {}, ...t) {
|
|
|
19042
19052
|
"palette" in e || c[s] && (c[s] !== !0 ? f = c[s].palette : s === "dark" && (f = {
|
|
19043
19053
|
mode: "dark"
|
|
19044
19054
|
}));
|
|
19045
|
-
const h = Ac(
|
|
19055
|
+
const h = Ac(K(j({}, e), {
|
|
19046
19056
|
palette: f
|
|
19047
19057
|
}), ...t);
|
|
19048
|
-
return h.defaultColorScheme = s, h.colorSchemes = c, h.palette.mode === "light" && (h.colorSchemes.light =
|
|
19058
|
+
return h.defaultColorScheme = s, h.colorSchemes = c, h.palette.mode === "light" && (h.colorSchemes.light = K(j({}, c.light !== !0 && c.light), {
|
|
19049
19059
|
palette: h.palette
|
|
19050
|
-
}), Uf(h, "dark", c.dark)), h.palette.mode === "dark" && (h.colorSchemes.dark =
|
|
19060
|
+
}), Uf(h, "dark", c.dark)), h.palette.mode === "dark" && (h.colorSchemes.dark = K(j({}, c.dark !== !0 && c.dark), {
|
|
19051
19061
|
palette: h.palette
|
|
19052
19062
|
}), Uf(h, "light", c.light)), h;
|
|
19053
19063
|
}
|
|
19054
|
-
return !n && !("light" in c) && s === "light" && (c.light = !0), wP(j(
|
|
19064
|
+
return !n && !("light" in c) && s === "light" && (c.light = !0), wP(j(K(j({}, a), {
|
|
19055
19065
|
colorSchemes: c,
|
|
19056
19066
|
defaultColorScheme: s
|
|
19057
19067
|
}), typeof r != "boolean" && r), ...t);
|
|
@@ -19206,7 +19216,7 @@ const RP = (e) => {
|
|
|
19206
19216
|
"inheritViewBox",
|
|
19207
19217
|
"titleAccess",
|
|
19208
19218
|
"viewBox"
|
|
19209
|
-
]), m = /* @__PURE__ */ U.isValidElement(i) && i.type === "svg", g =
|
|
19219
|
+
]), m = /* @__PURE__ */ U.isValidElement(i) && i.type === "svg", g = K(j({}, r), {
|
|
19210
19220
|
color: a,
|
|
19211
19221
|
component: s,
|
|
19212
19222
|
fontSize: l,
|
|
@@ -19217,7 +19227,7 @@ const RP = (e) => {
|
|
|
19217
19227
|
}), v = {};
|
|
19218
19228
|
d || (v.viewBox = h);
|
|
19219
19229
|
const C = RP(g);
|
|
19220
|
-
return /* @__PURE__ */ u.jsxs(OP,
|
|
19230
|
+
return /* @__PURE__ */ u.jsxs(OP, K(j(j(j({
|
|
19221
19231
|
as: s,
|
|
19222
19232
|
className: Xn(C.root, o),
|
|
19223
19233
|
focusable: "false",
|
|
@@ -19235,7 +19245,7 @@ const RP = (e) => {
|
|
|
19235
19245
|
Tc.muiName = "SvgIcon";
|
|
19236
19246
|
function Qe(e, t) {
|
|
19237
19247
|
function n(r, i) {
|
|
19238
|
-
return /* @__PURE__ */ u.jsx(Tc,
|
|
19248
|
+
return /* @__PURE__ */ u.jsx(Tc, K(j({
|
|
19239
19249
|
"data-testid": `${t}Icon`,
|
|
19240
19250
|
ref: i
|
|
19241
19251
|
}, r), {
|
|
@@ -21180,7 +21190,7 @@ const vv = ({ title: e, open: t, imageSrc: n, toggleModal: r }) => /* @__PURE__
|
|
|
21180
21190
|
borderRadius: "8px",
|
|
21181
21191
|
cursor: "pointer"
|
|
21182
21192
|
},
|
|
21183
|
-
children: /* @__PURE__ */ u.jsx(
|
|
21193
|
+
children: /* @__PURE__ */ u.jsx(ge, { className: "plusSign", level: "h2", sx: { color: "white", opacity: 0, transition: "opacity 0.3s ease" }, children: "+" })
|
|
21184
21194
|
}
|
|
21185
21195
|
)
|
|
21186
21196
|
]
|
|
@@ -21284,8 +21294,8 @@ const vv = ({ title: e, open: t, imageSrc: n, toggleModal: r }) => /* @__PURE__
|
|
|
21284
21294
|
}
|
|
21285
21295
|
)
|
|
21286
21296
|
] });
|
|
21287
|
-
}, jD = ({ labels: e, showFilters: t, onClick: n }) => /* @__PURE__ */ u.jsx(
|
|
21288
|
-
const [n, r] =
|
|
21297
|
+
}, jD = ({ labels: e, showFilters: t, onClick: n }) => /* @__PURE__ */ u.jsx(Oe, { title: t ? e.hideFilters : e.showFilters, children: /* @__PURE__ */ u.jsx(an, { "aria-label": "Filters", onClick: n, children: /* @__PURE__ */ u.jsx(kD, {}) }) }), yv = ({ labels: e, onChangeImages: t }) => {
|
|
21298
|
+
const [n, r] = Q(!1), [i, o] = Q(!1), [a, s] = Q(!1), [l, c] = Q(!1), [d, f] = Q(1), [h, p] = Q(""), [m, g] = Q(null), [v, C] = Q([]), { https: w } = xt();
|
|
21289
21299
|
be(() => {
|
|
21290
21300
|
A();
|
|
21291
21301
|
}, [d]);
|
|
@@ -21311,7 +21321,7 @@ const vv = ({ title: e, open: t, imageSrc: n, toggleModal: r }) => /* @__PURE__
|
|
|
21311
21321
|
s(!1);
|
|
21312
21322
|
}
|
|
21313
21323
|
}), E = (k, H) => {
|
|
21314
|
-
g(($) => $ ?
|
|
21324
|
+
g(($) => $ ? K(j({}, $), { [H]: k }) : { [H]: k });
|
|
21315
21325
|
};
|
|
21316
21326
|
return /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
|
21317
21327
|
/* @__PURE__ */ u.jsxs(le, { sx: { marginBottom: "10px" }, children: [
|
|
@@ -22136,7 +22146,7 @@ function lR(e, t, n = 0) {
|
|
|
22136
22146
|
});
|
|
22137
22147
|
}
|
|
22138
22148
|
const kv = ({ labels: e, open: t, imageSrc: n, resetDefaultImageUrl: r, toggleModal: i, uploadImage: o }) => {
|
|
22139
|
-
const [a, s] =
|
|
22149
|
+
const [a, s] = Q({ x: 0, y: 0 }), [l, c] = Q(1), [d, f] = Q(16 / 9), [h, p] = Q(null), m = (y, x) => {
|
|
22140
22150
|
p(x);
|
|
22141
22151
|
}, g = (y, x) => f(x), v = () => T(void 0, null, function* () {
|
|
22142
22152
|
const y = yield lR(n, h);
|
|
@@ -22196,7 +22206,7 @@ const kv = ({ labels: e, open: t, imageSrc: n, resetDefaultImageUrl: r, toggleMo
|
|
|
22196
22206
|
}, Pv = Qe(/* @__PURE__ */ u.jsx("path", {
|
|
22197
22207
|
d: "M17 15h2V7c0-1.1-.9-2-2-2H9v2h8zM7 17V1H5v4H1v2h4v10c0 1.1.9 2 2 2h10v4h2v-4h4v-2z"
|
|
22198
22208
|
}), "CropOutlined"), nh = ({ labels: e, title: t, image: n, onChangeImages: r, clearImage: i }) => {
|
|
22199
|
-
const [o, a] =
|
|
22209
|
+
const [o, a] = Q(!1), [s, l] = Q(!1), [c, d] = Q(!1), [f, h] = Q(!1), [p, m] = Q(""), [g, v] = Q("primary"), [C, w] = Q(""), y = Te(null), x = () => h(!f), b = () => {
|
|
22200
22210
|
y.current && y.current.click();
|
|
22201
22211
|
}, I = new mv(), A = Ut(ws), E = () => {
|
|
22202
22212
|
m(""), l(!1);
|
|
@@ -22290,8 +22300,8 @@ const kv = ({ labels: e, open: t, imageSrc: n, resetDefaultImageUrl: r, toggleMo
|
|
|
22290
22300
|
return /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
|
22291
22301
|
/* @__PURE__ */ u.jsxs(xn, { sx: { marginBottom: "10px" }, children: [
|
|
22292
22302
|
/* @__PURE__ */ u.jsxs(Ta, { direction: "row", alignItems: "center", justifyContent: "space-between", children: [
|
|
22293
|
-
/* @__PURE__ */ u.jsx(
|
|
22294
|
-
/* @__PURE__ */ u.jsx(
|
|
22303
|
+
/* @__PURE__ */ u.jsx(ge, { level: "title-lg", children: t }),
|
|
22304
|
+
/* @__PURE__ */ u.jsx(Oe, { title: e.clearImage, children: /* @__PURE__ */ u.jsx(an, { "aria-label": e.clearImage, variant: "plain", color: "danger", size: "sm", onClick: $, children: /* @__PURE__ */ u.jsx(cv, {}) }) })
|
|
22295
22305
|
] }),
|
|
22296
22306
|
/* @__PURE__ */ u.jsxs(Ip, { maxHeight: "200px", ratio: "16/9", sx: { position: "relative" }, children: [
|
|
22297
22307
|
/* @__PURE__ */ u.jsxs(Sp, { loading: o, animation: "wave", children: [
|
|
@@ -22336,7 +22346,7 @@ const kv = ({ labels: e, open: t, imageSrc: n, resetDefaultImageUrl: r, toggleMo
|
|
|
22336
22346
|
}
|
|
22337
22347
|
) : /* @__PURE__ */ u.jsx(u.Fragment, {})
|
|
22338
22348
|
] }),
|
|
22339
|
-
/* @__PURE__ */ u.jsx(
|
|
22349
|
+
/* @__PURE__ */ u.jsx(Oe, { title: e.copyUrl, children: /* @__PURE__ */ u.jsx(
|
|
22340
22350
|
ai,
|
|
22341
22351
|
{
|
|
22342
22352
|
onClick: () => S(n),
|
|
@@ -22347,7 +22357,7 @@ const kv = ({ labels: e, open: t, imageSrc: n, resetDefaultImageUrl: r, toggleMo
|
|
|
22347
22357
|
children: /* @__PURE__ */ u.jsx(ss, {})
|
|
22348
22358
|
}
|
|
22349
22359
|
) }),
|
|
22350
|
-
/* @__PURE__ */ u.jsx(
|
|
22360
|
+
/* @__PURE__ */ u.jsx(Oe, { title: e.viewImage, children: /* @__PURE__ */ u.jsx(
|
|
22351
22361
|
ai,
|
|
22352
22362
|
{
|
|
22353
22363
|
onClick: H,
|
|
@@ -22358,7 +22368,7 @@ const kv = ({ labels: e, open: t, imageSrc: n, resetDefaultImageUrl: r, toggleMo
|
|
|
22358
22368
|
children: /* @__PURE__ */ u.jsx(xv, {})
|
|
22359
22369
|
}
|
|
22360
22370
|
) }),
|
|
22361
|
-
/* @__PURE__ */ u.jsx(
|
|
22371
|
+
/* @__PURE__ */ u.jsx(Oe, { title: e.cropImage, children: /* @__PURE__ */ u.jsx(
|
|
22362
22372
|
ai,
|
|
22363
22373
|
{
|
|
22364
22374
|
onClick: x,
|
|
@@ -22377,7 +22387,7 @@ const kv = ({ labels: e, open: t, imageSrc: n, resetDefaultImageUrl: r, toggleMo
|
|
|
22377
22387
|
/* @__PURE__ */ u.jsx(Cv, { type: "file", accept: "image/*", onChange: V, ref: y })
|
|
22378
22388
|
] }) }),
|
|
22379
22389
|
A != null && A.https.sportal365Config ? /* @__PURE__ */ u.jsx(Ap, { variant: "soft", children: /* @__PURE__ */ u.jsxs(Tp, { children: [
|
|
22380
|
-
/* @__PURE__ */ u.jsx(Ep, { children: /* @__PURE__ */ u.jsx(
|
|
22390
|
+
/* @__PURE__ */ u.jsx(Ep, { children: /* @__PURE__ */ u.jsx(ge, { fontWeight: "bold", sx: { color: "#ef8b34" }, children: e.sportal365Images }) }),
|
|
22381
22391
|
/* @__PURE__ */ u.jsx(_p, { children: /* @__PURE__ */ u.jsx(yv, { labels: e, onChangeImages: L }) })
|
|
22382
22392
|
] }) }) : /* @__PURE__ */ u.jsx(u.Fragment, {})
|
|
22383
22393
|
] }),
|
|
@@ -22396,7 +22406,7 @@ const kv = ({ labels: e, open: t, imageSrc: n, resetDefaultImageUrl: r, toggleMo
|
|
|
22396
22406
|
)
|
|
22397
22407
|
] });
|
|
22398
22408
|
}, cR = (e) => (/* @__PURE__ */ new Map()).set("main_logo", e.mainLogo).set("mobile_logo", e.mobileLogo).set("background_image", e.backgroundImage).set("mobile_background_image", e.mobileBackgroundImage).set("additional_image", e.additionalImage), uR = (e) => (/* @__PURE__ */ new Map()).set("primary_color", e.primaryColor).set("secondary_color", e.secondaryColor).set("content_color", e.contentColor).set("background_color", e.backgroundColor).set("border_color", e.borderColor).set("additional_color", e.additionalColor), dR = (e) => (/* @__PURE__ */ new Map()).set("primary_url", e.primaryUrl).set("secondary_url", e.secondaryUrl).set("privacy_policy_url", e.privacyPolicyUrl).set("terms_and_conditions_url", e.termsAndConditionsUrl).set("additional_url", e.additionalUrl), fR = ({ labels: e, defaultValue: t, onChange: n }) => {
|
|
22399
|
-
const [r, i] =
|
|
22409
|
+
const [r, i] = Q(!1), o = JSON.parse(JSON.stringify(t)), a = ["mobile_logo", "background_image", "mobile_background_image", "additional_image"], s = cR(e), l = uR(e), c = dR(e), d = (m, g) => {
|
|
22400
22410
|
const v = m.target.value;
|
|
22401
22411
|
o.colors[g] = v, n(o);
|
|
22402
22412
|
}, f = (m, g) => {
|
|
@@ -23003,7 +23013,7 @@ function yR(e, t) {
|
|
|
23003
23013
|
config: $t($t({}, bi), vt.defaultConfig),
|
|
23004
23014
|
l10n: Ao
|
|
23005
23015
|
};
|
|
23006
|
-
n.parseDate = Lc({ 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 = O, n.close = N, n.onMouseOver = _e, n._createElement = Ne, n.createDay = I, n.destroy = F, n.isEnabled = J, n.jumpToDate = w, n.updateValue = bn, n.open = kt, n.redraw =
|
|
23016
|
+
n.parseDate = Lc({ 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 = O, n.close = N, n.onMouseOver = _e, n._createElement = Ne, n.createDay = I, n.destroy = F, n.isEnabled = J, n.jumpToDate = w, n.updateValue = bn, n.open = kt, n.redraw = Me, n.set = Ht, n.setDate = Zt, n.toggle = pl;
|
|
23007
23017
|
function r() {
|
|
23008
23018
|
n.utils = {
|
|
23009
23019
|
getDaysInMonth: function(_, R) {
|
|
@@ -23070,8 +23080,8 @@ function yR(e, t) {
|
|
|
23070
23080
|
_ = Math.min(_, fe.getHours()), _ === fe.getHours() && (R = Math.min(R, fe.getMinutes())), R === fe.getMinutes() && (G = Math.min(G, fe.getSeconds()));
|
|
23071
23081
|
}
|
|
23072
23082
|
if (q) {
|
|
23073
|
-
var
|
|
23074
|
-
_ = Math.max(_,
|
|
23083
|
+
var me = n.config.minTime !== void 0 ? n.config.minTime : n.config.minDate;
|
|
23084
|
+
_ = Math.max(_, me.getHours()), _ === me.getHours() && R < me.getMinutes() && (R = me.getMinutes()), R === me.getMinutes() && (G = Math.max(G, me.getSeconds()));
|
|
23075
23085
|
}
|
|
23076
23086
|
}
|
|
23077
23087
|
p(_, R, G);
|
|
@@ -23182,9 +23192,9 @@ function yR(e, t) {
|
|
|
23182
23192
|
function k(_, R) {
|
|
23183
23193
|
for (var G = _.className.indexOf("Month") === -1 ? _.dateObj.getMonth() : n.currentMonth, q = R > 0 ? n.config.showMonths : -1, re = R > 0 ? 1 : -1, ce = G - n.currentMonth; ce != q; ce += re)
|
|
23184
23194
|
for (var Ie = n.daysContainer.children[ce], ue = G - n.currentMonth === ce ? _.$i + R : R < 0 ? Ie.children.length - 1 : 0, Se = Ie.children.length, fe = ue; fe >= 0 && fe < Se && fe != (R > 0 ? Se : -1); fe += re) {
|
|
23185
|
-
var
|
|
23186
|
-
if (
|
|
23187
|
-
return A(
|
|
23195
|
+
var me = Ie.children[fe];
|
|
23196
|
+
if (me.className.indexOf("hidden") === -1 && J(me.dateObj) && Math.abs(_.$i - fe) >= Math.abs(R))
|
|
23197
|
+
return A(me);
|
|
23188
23198
|
}
|
|
23189
23199
|
n.changeMonth(re), H(E(re), 0);
|
|
23190
23200
|
}
|
|
@@ -23193,12 +23203,12 @@ function yR(e, t) {
|
|
|
23193
23203
|
re === void 0 ? n._input.focus() : q ? k(re, R) : A(re);
|
|
23194
23204
|
}
|
|
23195
23205
|
function $(_, R) {
|
|
23196
|
-
for (var G = (new Date(_, R, 1).getDay() - n.l10n.firstDayOfWeek + 7) % 7, q = n.utils.getDaysInMonth((R - 1 + 12) % 12, _), re = n.utils.getDaysInMonth(R, _), ce = window.document.createDocumentFragment(), Ie = n.config.showMonths > 1, ue = Ie ? "prevMonthDay hidden" : "prevMonthDay", Se = Ie ? "nextMonthDay hidden" : "nextMonthDay", fe = q + 1 - G,
|
|
23197
|
-
ce.appendChild(I("flatpickr-day " + ue, new Date(_, R - 1, fe), fe,
|
|
23198
|
-
for (fe = 1; fe <= re; fe++,
|
|
23199
|
-
ce.appendChild(I("flatpickr-day", new Date(_, R, fe), fe,
|
|
23200
|
-
for (var $e = re + 1; $e <= 42 - G && (n.config.showMonths === 1 ||
|
|
23201
|
-
ce.appendChild(I("flatpickr-day " + Se, new Date(_, R + 1, $e % re), $e,
|
|
23206
|
+
for (var G = (new Date(_, R, 1).getDay() - n.l10n.firstDayOfWeek + 7) % 7, q = n.utils.getDaysInMonth((R - 1 + 12) % 12, _), re = n.utils.getDaysInMonth(R, _), ce = window.document.createDocumentFragment(), Ie = n.config.showMonths > 1, ue = Ie ? "prevMonthDay hidden" : "prevMonthDay", Se = Ie ? "nextMonthDay hidden" : "nextMonthDay", fe = q + 1 - G, me = 0; fe <= q; fe++, me++)
|
|
23207
|
+
ce.appendChild(I("flatpickr-day " + ue, new Date(_, R - 1, fe), fe, me));
|
|
23208
|
+
for (fe = 1; fe <= re; fe++, me++)
|
|
23209
|
+
ce.appendChild(I("flatpickr-day", new Date(_, R, fe), fe, me));
|
|
23210
|
+
for (var $e = re + 1; $e <= 42 - G && (n.config.showMonths === 1 || me % 7 !== 0); $e++, me++)
|
|
23211
|
+
ce.appendChild(I("flatpickr-day " + Se, new Date(_, R + 1, $e % re), $e, me));
|
|
23202
23212
|
var Mt = Ne("div", "dayContainer");
|
|
23203
23213
|
return Mt.appendChild(ce), Mt;
|
|
23204
23214
|
}
|
|
@@ -23466,16 +23476,16 @@ function yR(e, t) {
|
|
|
23466
23476
|
break;
|
|
23467
23477
|
case 9:
|
|
23468
23478
|
if (Ie) {
|
|
23469
|
-
var
|
|
23479
|
+
var me = [
|
|
23470
23480
|
n.hourElement,
|
|
23471
23481
|
n.minuteElement,
|
|
23472
23482
|
n.secondElement,
|
|
23473
23483
|
n.amPM
|
|
23474
23484
|
].concat(n.pluginElements).filter(function(Ze) {
|
|
23475
23485
|
return Ze;
|
|
23476
|
-
}), $e =
|
|
23486
|
+
}), $e = me.indexOf(R);
|
|
23477
23487
|
if ($e !== -1) {
|
|
23478
|
-
var Mt =
|
|
23488
|
+
var Mt = me[$e + (_.shiftKey ? -1 : 1)];
|
|
23479
23489
|
_.preventDefault(), (Mt || n._input).focus();
|
|
23480
23490
|
}
|
|
23481
23491
|
} else !n.config.noCalendar && n.daysContainer && n.daysContainer.contains(R) && _.shiftKey && (_.preventDefault(), n._input.focus());
|
|
@@ -23499,8 +23509,8 @@ function yR(e, t) {
|
|
|
23499
23509
|
if (R === void 0 && (R = "flatpickr-day"), !(n.selectedDates.length !== 1 || _ && (!_.classList.contains(R) || _.classList.contains("flatpickr-disabled")))) {
|
|
23500
23510
|
for (var G = _ ? _.dateObj.getTime() : n.days.firstElementChild.dateObj.getTime(), q = n.parseDate(n.selectedDates[0], void 0, !0).getTime(), re = Math.min(G, n.selectedDates[0].getTime()), ce = Math.max(G, n.selectedDates[0].getTime()), Ie = !1, ue = 0, Se = 0, fe = re; fe < ce; fe += vR.DAY)
|
|
23501
23511
|
J(new Date(fe), !0) || (Ie = Ie || fe > re && fe < ce, fe < q && (!ue || fe > ue) ? ue = fe : fe > q && (!Se || fe < Se) && (Se = fe));
|
|
23502
|
-
var
|
|
23503
|
-
|
|
23512
|
+
var me = Array.from(n.rContainer.querySelectorAll("*:nth-child(-n+" + n.config.showMonths + ") > ." + R));
|
|
23513
|
+
me.forEach(function($e) {
|
|
23504
23514
|
var Mt = $e.dateObj, Ze = Mt.getTime(), yn = ue > 0 && Ze < ue || Se > 0 && Ze > Se;
|
|
23505
23515
|
if (yn) {
|
|
23506
23516
|
$e.classList.add("notAllowed"), ["inRange", "startRange", "endRange"].forEach(function(Tn) {
|
|
@@ -23539,7 +23549,7 @@ function yR(e, t) {
|
|
|
23539
23549
|
var G = n.config["_" + _ + "Date"] = n.parseDate(R, n.config.dateFormat), q = n.config["_" + (_ === "min" ? "max" : "min") + "Date"];
|
|
23540
23550
|
G !== void 0 && (n[_ === "min" ? "minDateHasTime" : "maxDateHasTime"] = G.getHours() > 0 || G.getMinutes() > 0 || G.getSeconds() > 0), n.selectedDates && (n.selectedDates = n.selectedDates.filter(function(re) {
|
|
23541
23551
|
return J(re);
|
|
23542
|
-
}), !n.selectedDates.length && _ === "min" && h(G), bn()), n.daysContainer && (
|
|
23552
|
+
}), !n.selectedDates.length && _ === "min" && h(G), bn()), n.daysContainer && (Me(), G !== void 0 ? n.currentYearElement[_] = G.getFullYear().toString() : n.currentYearElement.removeAttribute(_), n.currentYearElement.disabled = !!q && G !== void 0 && q.getFullYear() === G.getFullYear());
|
|
23543
23553
|
};
|
|
23544
23554
|
}
|
|
23545
23555
|
function Ot() {
|
|
@@ -23563,15 +23573,15 @@ function yR(e, t) {
|
|
|
23563
23573
|
get: function() {
|
|
23564
23574
|
return n.config._enable;
|
|
23565
23575
|
},
|
|
23566
|
-
set: function(
|
|
23567
|
-
n.config._enable = or(
|
|
23576
|
+
set: function(me) {
|
|
23577
|
+
n.config._enable = or(me);
|
|
23568
23578
|
}
|
|
23569
23579
|
}), Object.defineProperty(n.config, "disable", {
|
|
23570
23580
|
get: function() {
|
|
23571
23581
|
return n.config._disable;
|
|
23572
23582
|
},
|
|
23573
|
-
set: function(
|
|
23574
|
-
n.config._disable = or(
|
|
23583
|
+
set: function(me) {
|
|
23584
|
+
n.config._disable = or(me);
|
|
23575
23585
|
}
|
|
23576
23586
|
});
|
|
23577
23587
|
var q = R.mode === "time";
|
|
@@ -23594,9 +23604,9 @@ function yR(e, t) {
|
|
|
23594
23604
|
},
|
|
23595
23605
|
set: ut("max")
|
|
23596
23606
|
});
|
|
23597
|
-
var Ie = function(
|
|
23607
|
+
var Ie = function(me) {
|
|
23598
23608
|
return function($e) {
|
|
23599
|
-
n.config[
|
|
23609
|
+
n.config[me === "min" ? "_minTime" : "_maxTime"] = n.parseDate($e, "H:i:S");
|
|
23600
23610
|
};
|
|
23601
23611
|
};
|
|
23602
23612
|
Object.defineProperty(n.config, "minTime", {
|
|
@@ -23612,10 +23622,10 @@ function yR(e, t) {
|
|
|
23612
23622
|
}), R.mode === "time" && (n.config.noCalendar = !0, n.config.enableTime = !0), Object.assign(n.config, G, R);
|
|
23613
23623
|
for (var ue = 0; ue < _.length; ue++)
|
|
23614
23624
|
n.config[_[ue]] = n.config[_[ue]] === !0 || n.config[_[ue]] === "true";
|
|
23615
|
-
Fl.filter(function(
|
|
23616
|
-
return n.config[
|
|
23617
|
-
}).forEach(function(
|
|
23618
|
-
n.config[
|
|
23625
|
+
Fl.filter(function(me) {
|
|
23626
|
+
return n.config[me] !== void 0;
|
|
23627
|
+
}).forEach(function(me) {
|
|
23628
|
+
n.config[me] = zl(n.config[me] || []).map(a);
|
|
23619
23629
|
}), n.isMobile = !n.config.disableMobile && !n.config.inline && n.config.mode === "single" && !n.config.disable.length && !n.config.enable && !n.config.weekNumbers && /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
|
|
23620
23630
|
for (var ue = 0; ue < n.config.plugins.length; ue++) {
|
|
23621
23631
|
var Se = n.config.plugins[ue](n) || {};
|
|
@@ -23639,13 +23649,13 @@ function yR(e, t) {
|
|
|
23639
23649
|
Ue("onPreCalendarPosition");
|
|
23640
23650
|
var R = _ || n._positionElement, G = Array.prototype.reduce.call(n.calendarContainer.children, function(Ry, Oy) {
|
|
23641
23651
|
return Ry + Oy.offsetHeight;
|
|
23642
|
-
}, 0), q = n.calendarContainer.offsetWidth, re = n.config.position.split(" "), ce = re[0], Ie = re.length > 1 ? re[1] : null, ue = R.getBoundingClientRect(), Se = window.innerHeight - ue.bottom, fe = ce === "above" || ce !== "below" && Se < G && ue.top > G,
|
|
23652
|
+
}, 0), q = n.calendarContainer.offsetWidth, re = n.config.position.split(" "), ce = re[0], Ie = re.length > 1 ? re[1] : null, ue = R.getBoundingClientRect(), Se = window.innerHeight - ue.bottom, fe = ce === "above" || ce !== "below" && Se < G && ue.top > G, me = window.pageYOffset + ue.top + (fe ? -G - 2 : R.offsetHeight + 2);
|
|
23643
23653
|
if (Ft(n.calendarContainer, "arrowTop", !fe), Ft(n.calendarContainer, "arrowBottom", fe), !n.config.inline) {
|
|
23644
23654
|
var $e = window.pageXOffset + ue.left, Mt = !1, Ze = !1;
|
|
23645
23655
|
Ie === "center" ? ($e -= (q - ue.width) / 2, Mt = !0) : Ie === "right" && ($e -= q - ue.width, Ze = !0), Ft(n.calendarContainer, "arrowLeft", !Mt && !Ze), Ft(n.calendarContainer, "arrowCenter", Mt), Ft(n.calendarContainer, "arrowRight", Ze);
|
|
23646
23656
|
var yn = window.document.body.offsetWidth - (window.pageXOffset + ue.right), Tn = $e + q > window.document.body.offsetWidth, Ay = yn + q > window.document.body.offsetWidth;
|
|
23647
23657
|
if (Ft(n.calendarContainer, "rightMost", Tn), !n.config.static)
|
|
23648
|
-
if (n.calendarContainer.style.top =
|
|
23658
|
+
if (n.calendarContainer.style.top = me + "px", !Tn)
|
|
23649
23659
|
n.calendarContainer.style.left = $e + "px", n.calendarContainer.style.right = "auto";
|
|
23650
23660
|
else if (!Ay)
|
|
23651
23661
|
n.calendarContainer.style.left = "auto", n.calendarContainer.style.right = yn + "px";
|
|
@@ -23678,7 +23688,7 @@ function yR(e, t) {
|
|
|
23678
23688
|
var _ = document.createElement("style");
|
|
23679
23689
|
return document.head.appendChild(_), _.sheet;
|
|
23680
23690
|
}
|
|
23681
|
-
function
|
|
23691
|
+
function Me() {
|
|
23682
23692
|
n.config.noCalendar || n.isMobile || (V(), Yr(), S());
|
|
23683
23693
|
}
|
|
23684
23694
|
function De() {
|
|
@@ -23686,8 +23696,8 @@ function yR(e, t) {
|
|
|
23686
23696
|
}
|
|
23687
23697
|
function Pt(_) {
|
|
23688
23698
|
_.preventDefault(), _.stopPropagation();
|
|
23689
|
-
var R = function(
|
|
23690
|
-
return
|
|
23699
|
+
var R = function(me) {
|
|
23700
|
+
return me.classList && me.classList.contains("flatpickr-day") && !me.classList.contains("flatpickr-disabled") && !me.classList.contains("notAllowed");
|
|
23691
23701
|
}, G = Ov(en(_), R);
|
|
23692
23702
|
if (G !== void 0) {
|
|
23693
23703
|
var q = G, re = n.latestSelectedDateObj = new Date(q.dateObj.getTime()), ce = (re.getMonth() < n.currentMonth || re.getMonth() > n.currentMonth + n.config.showMonths - 1) && n.config.mode !== "range";
|
|
@@ -23696,8 +23706,8 @@ function yR(e, t) {
|
|
|
23696
23706
|
else if (n.config.mode === "multiple") {
|
|
23697
23707
|
var Ie = Ui(re);
|
|
23698
23708
|
Ie ? n.selectedDates.splice(parseInt(Ie), 1) : n.selectedDates.push(re);
|
|
23699
|
-
} else n.config.mode === "range" && (n.selectedDates.length === 2 && n.clear(!1, !1), n.latestSelectedDateObj = re, n.selectedDates.push(re), tn(re, n.selectedDates[0], !0) !== 0 && n.selectedDates.sort(function(
|
|
23700
|
-
return
|
|
23709
|
+
} else n.config.mode === "range" && (n.selectedDates.length === 2 && n.clear(!1, !1), n.latestSelectedDateObj = re, n.selectedDates.push(re), tn(re, n.selectedDates[0], !0) !== 0 && n.selectedDates.sort(function(me, $e) {
|
|
23710
|
+
return me.getTime() - $e.getTime();
|
|
23701
23711
|
}));
|
|
23702
23712
|
if (f(), ce) {
|
|
23703
23713
|
var ue = n.currentYear !== re.getFullYear();
|
|
@@ -23865,8 +23875,8 @@ function yR(e, t) {
|
|
|
23865
23875
|
n.amPM !== void 0 && G === n.amPM && (n.amPM.textContent = n.l10n.amPM[cn(n.amPM.textContent === n.l10n.amPM[0])]);
|
|
23866
23876
|
var re = parseFloat(q.getAttribute("min")), ce = parseFloat(q.getAttribute("max")), Ie = parseFloat(q.getAttribute("step")), ue = parseInt(q.value, 10), Se = _.delta || (R ? _.which === 38 ? 1 : -1 : 0), fe = ue + Ie * Se;
|
|
23867
23877
|
if (typeof q.value != "undefined" && q.value.length === 2) {
|
|
23868
|
-
var
|
|
23869
|
-
fe < re ? (fe = ce + fe + cn(!
|
|
23878
|
+
var me = q === n.hourElement, $e = q === n.minuteElement;
|
|
23879
|
+
fe < re ? (fe = ce + fe + cn(!me) + (cn(me) && cn(!n.amPM)), $e && x(void 0, -1, n.hourElement)) : fe > ce && (fe = q === n.hourElement ? fe - ce - cn(!n.amPM) : re, $e && x(void 0, 1, n.hourElement)), n.amPM && me && (Ie === 1 ? fe + ue === 23 : Math.abs(fe - ue) > Ie) && (n.amPM.textContent = n.l10n.amPM[cn(n.amPM.textContent === n.l10n.amPM[0])]), q.value = Yt(fe);
|
|
23870
23880
|
}
|
|
23871
23881
|
}
|
|
23872
23882
|
return i(), n;
|
|
@@ -24692,7 +24702,7 @@ const ER = (e) => {
|
|
|
24692
24702
|
const { from: t, to: n } = e, r = [];
|
|
24693
24703
|
return t && r.push(Bt(t).toDate()), n && r.push(Bt(n).toDate()), r;
|
|
24694
24704
|
}, kR = ({ label: e, defaultValue: t, required: n, onChange: r }) => {
|
|
24695
|
-
const [i, o] =
|
|
24705
|
+
const [i, o] = Q(oh(t)), [a, s] = Q(!1), l = () => s(!a), c = (d) => {
|
|
24696
24706
|
if (d && d.length > 0) {
|
|
24697
24707
|
const f = "YYYY-MM-DD", h = Bt(d[0]).format(f), p = Bt(d[1]).format(f);
|
|
24698
24708
|
r({ from: h, to: p });
|
|
@@ -24775,8 +24785,8 @@ const ER = (e) => {
|
|
|
24775
24785
|
borderRadius: "md"
|
|
24776
24786
|
},
|
|
24777
24787
|
children: /* @__PURE__ */ u.jsxs(Ri, { children: [
|
|
24778
|
-
/* @__PURE__ */ u.jsx(
|
|
24779
|
-
/* @__PURE__ */ u.jsx(
|
|
24788
|
+
/* @__PURE__ */ u.jsx(ge, { level: "h2", textAlign: "center", mb: 2, children: r }),
|
|
24789
|
+
/* @__PURE__ */ u.jsx(ge, { level: "body-md", color: "neutral", mb: 2, children: i }),
|
|
24780
24790
|
/* @__PURE__ */ u.jsx(le, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ u.jsx(Fe, { variant: "solid", color: "neutral", fullWidth: !0, size: "sm", onClick: a, children: o }) })
|
|
24781
24791
|
] })
|
|
24782
24792
|
}
|
|
@@ -24784,7 +24794,7 @@ const ER = (e) => {
|
|
|
24784
24794
|
}
|
|
24785
24795
|
);
|
|
24786
24796
|
}, ah = (e) => e ? Object.entries(e).map(([t, n]) => ({ key: t, value: n })) : [], Wl = (e) => e.reduce((t, n) => (t[n.key] = n.value, t), {}), DR = ({ labels: e, type: t, defaultValue: n, onChange: r }) => {
|
|
24787
|
-
const [i, o] =
|
|
24797
|
+
const [i, o] = Q(ah(n)), [a, s] = Q(null), [l, c] = Q(""), [d, f] = Q(""), [h, p] = Q(""), [m, g] = Q("");
|
|
24788
24798
|
be(() => o(ah(n)), [n]);
|
|
24789
24799
|
const v = () => {
|
|
24790
24800
|
const x = [...i];
|
|
@@ -24830,23 +24840,23 @@ const ER = (e) => {
|
|
|
24830
24840
|
}
|
|
24831
24841
|
}
|
|
24832
24842
|
),
|
|
24833
|
-
/* @__PURE__ */ u.jsx(
|
|
24843
|
+
/* @__PURE__ */ u.jsx(Oe, { title: e.save, children: d && m ? /* @__PURE__ */ u.jsx(an, { onClick: () => y(b), children: /* @__PURE__ */ u.jsx(_d, {}) }) : /* @__PURE__ */ u.jsx("span", { children: /* @__PURE__ */ u.jsx(an, { disabled: !0, children: /* @__PURE__ */ u.jsx(_d, {}) }) }) })
|
|
24834
24844
|
] }) : /* @__PURE__ */ u.jsxs(le, { display: "flex", justifyContent: "space-between", alignItems: "center", children: [
|
|
24835
24845
|
/* @__PURE__ */ u.jsxs(le, { children: [
|
|
24836
|
-
/* @__PURE__ */ u.jsxs(
|
|
24846
|
+
/* @__PURE__ */ u.jsxs(ge, { style: { fontWeight: "bold" }, children: [
|
|
24837
24847
|
e.keyDynamicFields,
|
|
24838
24848
|
": ",
|
|
24839
|
-
/* @__PURE__ */ u.jsx(
|
|
24849
|
+
/* @__PURE__ */ u.jsx(ge, { whiteSpace: "wrap", children: x.key })
|
|
24840
24850
|
] }),
|
|
24841
|
-
/* @__PURE__ */ u.jsxs(
|
|
24851
|
+
/* @__PURE__ */ u.jsxs(ge, { style: { color: "gray" }, children: [
|
|
24842
24852
|
e.valueDynamicFields,
|
|
24843
24853
|
": ",
|
|
24844
|
-
/* @__PURE__ */ u.jsx(
|
|
24854
|
+
/* @__PURE__ */ u.jsx(ge, { whiteSpace: "wrap", children: x.value })
|
|
24845
24855
|
] })
|
|
24846
24856
|
] }),
|
|
24847
24857
|
/* @__PURE__ */ u.jsxs(le, { children: [
|
|
24848
|
-
/* @__PURE__ */ u.jsx(
|
|
24849
|
-
/* @__PURE__ */ u.jsx(
|
|
24858
|
+
/* @__PURE__ */ u.jsx(Oe, { title: e.edit, children: /* @__PURE__ */ u.jsx(an, { onClick: () => w(b, x), children: /* @__PURE__ */ u.jsx(Op, {}) }) }),
|
|
24859
|
+
/* @__PURE__ */ u.jsx(Oe, { title: e.delete, children: /* @__PURE__ */ u.jsx(an, { onClick: () => C(b), children: /* @__PURE__ */ u.jsx(iu, {}) }) })
|
|
24850
24860
|
] })
|
|
24851
24861
|
] }) }) }, `dynamic-fields-${t}-${b}`)),
|
|
24852
24862
|
/* @__PURE__ */ u.jsxs(le, { display: "flex", alignItems: "center", style: { marginTop: i && i.length ? "20px" : "0px" }, children: [
|
|
@@ -24882,7 +24892,7 @@ const ER = (e) => {
|
|
|
24882
24892
|
}
|
|
24883
24893
|
}
|
|
24884
24894
|
),
|
|
24885
|
-
/* @__PURE__ */ u.jsx(
|
|
24895
|
+
/* @__PURE__ */ u.jsx(Oe, { title: e.add, children: l && h ? /* @__PURE__ */ u.jsx(Fe, { onClick: v, children: /* @__PURE__ */ u.jsx(sc, {}) }) : /* @__PURE__ */ u.jsx("span", { children: /* @__PURE__ */ u.jsx(Fe, { disabled: !0, children: /* @__PURE__ */ u.jsx(sc, {}) }) }) })
|
|
24886
24896
|
] })
|
|
24887
24897
|
] });
|
|
24888
24898
|
};
|
|
@@ -25266,7 +25276,7 @@ var Hv = function(t) {
|
|
|
25266
25276
|
marginTop: s.menuGutter
|
|
25267
25277
|
});
|
|
25268
25278
|
}, Wv = /* @__PURE__ */ jn(null), cO = function(t) {
|
|
25269
|
-
var n = t.children, r = t.minMenuHeight, i = t.maxMenuHeight, o = t.menuPlacement, a = t.menuPosition, s = t.menuShouldScrollIntoView, l = t.theme, c = Ut(Wv) || {}, d = c.setPortalPlacement, f = Te(null), h =
|
|
25279
|
+
var n = t.children, r = t.minMenuHeight, i = t.maxMenuHeight, o = t.menuPlacement, a = t.menuPosition, s = t.menuShouldScrollIntoView, l = t.theme, c = Ut(Wv) || {}, d = c.setPortalPlacement, f = Te(null), h = Q(i), p = Qn(h, 2), m = p[0], g = p[1], v = Q(null), C = Qn(v, 2), w = C[0], y = C[1], x = l.spacing.controlHeight;
|
|
25270
25280
|
return Nc(function() {
|
|
25271
25281
|
var b = f.current;
|
|
25272
25282
|
if (b) {
|
|
@@ -25351,11 +25361,11 @@ var Hv = function(t) {
|
|
|
25351
25361
|
zIndex: 1
|
|
25352
25362
|
};
|
|
25353
25363
|
}, yO = function(t) {
|
|
25354
|
-
var n = t.appendTo, r = t.children, i = t.controlElement, o = t.innerProps, a = t.menuPlacement, s = t.menuPosition, l = Te(null), c = Te(null), d =
|
|
25364
|
+
var n = t.appendTo, r = t.children, i = t.controlElement, o = t.innerProps, a = t.menuPlacement, s = t.menuPosition, l = Te(null), c = Te(null), d = Q(Hv(a)), f = Qn(d, 2), h = f[0], p = f[1], m = Ae(function() {
|
|
25355
25365
|
return {
|
|
25356
25366
|
setPortalPlacement: p
|
|
25357
25367
|
};
|
|
25358
|
-
}, []), g =
|
|
25368
|
+
}, []), g = Q(null), v = Qn(g, 2), C = v[0], w = v[1], y = Be(function() {
|
|
25359
25369
|
if (i) {
|
|
25360
25370
|
var A = JR(i), E = s === "fixed" ? 0 : window.pageYOffset, k = A[h] + E;
|
|
25361
25371
|
(k !== (C == null ? void 0 : C.offset) || A.left !== (C == null ? void 0 : C.rect.left) || A.width !== (C == null ? void 0 : C.rect.width)) && w({
|
|
@@ -27602,7 +27612,7 @@ var cb = function(t) {
|
|
|
27602
27612
|
ub.defaultProps = ZM;
|
|
27603
27613
|
var iL = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
27604
27614
|
function oL(e) {
|
|
27605
|
-
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, c = e.onChange, d = e.onInputChange, f = e.onMenuClose, h = e.onMenuOpen, p = e.value, m = Nn(e, iL), g =
|
|
27615
|
+
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, c = e.onChange, d = e.onInputChange, f = e.onMenuClose, h = e.onMenuOpen, p = e.value, m = Nn(e, iL), g = Q(s !== void 0 ? s : n), v = Qn(g, 2), C = v[0], w = v[1], y = Q(l !== void 0 ? l : i), x = Qn(y, 2), b = x[0], I = x[1], A = Q(p !== void 0 ? p : a), E = Qn(A, 2), k = E[0], H = E[1], $ = Be(function(z, Y) {
|
|
27606
27616
|
typeof c == "function" && c(z, Y), H(z);
|
|
27607
27617
|
}, [c]), S = Be(function(z, Y) {
|
|
27608
27618
|
var Z;
|
|
@@ -27682,7 +27692,7 @@ var lL = /* @__PURE__ */ vp(function(e, t) {
|
|
|
27682
27692
|
}, r));
|
|
27683
27693
|
}), db = lL;
|
|
27684
27694
|
const cL = {
|
|
27685
|
-
control: (e, t) =>
|
|
27695
|
+
control: (e, t) => K(j({}, e), {
|
|
27686
27696
|
minHeight: "36px",
|
|
27687
27697
|
borderColor: t.isFocused ? "#0b6bcb" : "#ced4da",
|
|
27688
27698
|
boxShadow: t.isFocused ? "0 0 0 0px 1px 2px 0px rgba(25, 118, 210, 0.25)" : "none",
|
|
@@ -27693,40 +27703,40 @@ const cL = {
|
|
|
27693
27703
|
// Keep border color on hover
|
|
27694
27704
|
}
|
|
27695
27705
|
}),
|
|
27696
|
-
valueContainer: (e) =>
|
|
27706
|
+
valueContainer: (e) => K(j({}, e), {
|
|
27697
27707
|
minHeight: "36px",
|
|
27698
27708
|
marginTop: "0px"
|
|
27699
27709
|
}),
|
|
27700
|
-
indicatorsContainer: (e) =>
|
|
27710
|
+
indicatorsContainer: (e) => K(j({}, e), {
|
|
27701
27711
|
minHeight: "36px"
|
|
27702
27712
|
}),
|
|
27703
|
-
menu: (e) =>
|
|
27713
|
+
menu: (e) => K(j({}, e), {
|
|
27704
27714
|
position: "relative"
|
|
27705
27715
|
}),
|
|
27706
|
-
clearIndicator: (e) =>
|
|
27716
|
+
clearIndicator: (e) => K(j({}, e), {
|
|
27707
27717
|
"&:hover": { backGroundColor: "gray" },
|
|
27708
27718
|
cursor: "pointer"
|
|
27709
27719
|
}),
|
|
27710
|
-
input: (e) =>
|
|
27720
|
+
input: (e) => K(j({}, e), {
|
|
27711
27721
|
"input:focus": {
|
|
27712
27722
|
boxShadow: "none"
|
|
27713
27723
|
// remove on focus blue box shadow
|
|
27714
27724
|
}
|
|
27715
27725
|
}),
|
|
27716
|
-
placeholder: (e) =>
|
|
27726
|
+
placeholder: (e) => K(j({}, e), {
|
|
27717
27727
|
color: "rgba(0, 0, 0, 0.54)",
|
|
27718
27728
|
fontSize: "14px"
|
|
27719
27729
|
}),
|
|
27720
|
-
multiValue: (e) =>
|
|
27730
|
+
multiValue: (e) => K(j({}, e), {
|
|
27721
27731
|
backgroundColor: "#e0f3ff",
|
|
27722
27732
|
borderRadius: "4px",
|
|
27723
27733
|
fontSize: "14px"
|
|
27724
27734
|
}),
|
|
27725
|
-
multiValueLabel: (e) =>
|
|
27735
|
+
multiValueLabel: (e) => K(j({}, e), {
|
|
27726
27736
|
color: "#333"
|
|
27727
27737
|
})
|
|
27728
27738
|
}, uL = (e) => e.map((t) => ({ label: t, value: t })), dL = (e) => {
|
|
27729
|
-
const [t, n] =
|
|
27739
|
+
const [t, n] = Q(""), [r, i] = Q(!1), o = e.sx || { marginBottom: "16px" }, a = uL(e.flags), s = () => i(!r), l = (h) => {
|
|
27730
27740
|
e.onChange(h.map((p) => p.value));
|
|
27731
27741
|
}, c = (h) => {
|
|
27732
27742
|
n(h);
|
|
@@ -27771,7 +27781,7 @@ const cL = {
|
|
|
27771
27781
|
/* @__PURE__ */ u.jsx(gt, { showToast: r, message: e.labels.repeatedValueMessage, color: "warning", hideToast: s })
|
|
27772
27782
|
] });
|
|
27773
27783
|
}, To = (e) => {
|
|
27774
|
-
const [t, n] =
|
|
27784
|
+
const [t, n] = Q(!1), [r, i] = Q(!1), [o, a] = Q(!1), [s, l] = Q(!1), [c, d] = Q(""), [f, h] = Q("primary"), [p, m] = Q(""), g = Te(null), v = () => {
|
|
27775
27785
|
g.current && g.current.click();
|
|
27776
27786
|
}, C = new mv(), w = xt(), y = () => {
|
|
27777
27787
|
d(""), i(!1);
|
|
@@ -27865,8 +27875,8 @@ const cL = {
|
|
|
27865
27875
|
return /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
|
27866
27876
|
/* @__PURE__ */ u.jsxs(xn, { sx: { marginBottom: "10px" }, children: [
|
|
27867
27877
|
/* @__PURE__ */ u.jsxs(Ta, { direction: "row", alignItems: "center", justifyContent: "space-between", children: [
|
|
27868
|
-
/* @__PURE__ */ u.jsx(
|
|
27869
|
-
/* @__PURE__ */ u.jsx(
|
|
27878
|
+
/* @__PURE__ */ u.jsx(ge, { level: "title-lg", children: e.title }),
|
|
27879
|
+
/* @__PURE__ */ u.jsx(Oe, { title: e.labels.clearImage, children: /* @__PURE__ */ u.jsx(an, { variant: "plain", color: "danger", size: "sm", onClick: A, children: /* @__PURE__ */ u.jsx(cv, {}) }) })
|
|
27870
27880
|
] }),
|
|
27871
27881
|
/* @__PURE__ */ u.jsxs(Ip, { maxHeight: "200px", ratio: "16/9", sx: { position: "relative" }, children: [
|
|
27872
27882
|
/* @__PURE__ */ u.jsxs(Sp, { loading: t, animation: "wave", children: [
|
|
@@ -27911,7 +27921,7 @@ const cL = {
|
|
|
27911
27921
|
}
|
|
27912
27922
|
) : /* @__PURE__ */ u.jsx(u.Fragment, {})
|
|
27913
27923
|
] }),
|
|
27914
|
-
/* @__PURE__ */ u.jsx(
|
|
27924
|
+
/* @__PURE__ */ u.jsx(Oe, { title: e.labels.copyUrl, children: /* @__PURE__ */ u.jsx(
|
|
27915
27925
|
Fe,
|
|
27916
27926
|
{
|
|
27917
27927
|
onClick: () => E(e.image),
|
|
@@ -27922,7 +27932,7 @@ const cL = {
|
|
|
27922
27932
|
children: /* @__PURE__ */ u.jsx(ss, {})
|
|
27923
27933
|
}
|
|
27924
27934
|
) }),
|
|
27925
|
-
/* @__PURE__ */ u.jsx(
|
|
27935
|
+
/* @__PURE__ */ u.jsx(Oe, { title: e.labels.viewImage, children: /* @__PURE__ */ u.jsx(
|
|
27926
27936
|
Fe,
|
|
27927
27937
|
{
|
|
27928
27938
|
onClick: b,
|
|
@@ -27933,7 +27943,7 @@ const cL = {
|
|
|
27933
27943
|
children: /* @__PURE__ */ u.jsx(xv, {})
|
|
27934
27944
|
}
|
|
27935
27945
|
) }),
|
|
27936
|
-
/* @__PURE__ */ u.jsx(
|
|
27946
|
+
/* @__PURE__ */ u.jsx(Oe, { title: e.labels.cropImage, children: /* @__PURE__ */ u.jsx(
|
|
27937
27947
|
Fe,
|
|
27938
27948
|
{
|
|
27939
27949
|
onClick: I,
|
|
@@ -27952,7 +27962,7 @@ const cL = {
|
|
|
27952
27962
|
/* @__PURE__ */ u.jsx(Cv, { type: "file", accept: "image/*", onChange: k, ref: g })
|
|
27953
27963
|
] }) }),
|
|
27954
27964
|
w.https.sportal365Config ? /* @__PURE__ */ u.jsx(Ap, { variant: "soft", children: /* @__PURE__ */ u.jsxs(Tp, { children: [
|
|
27955
|
-
/* @__PURE__ */ u.jsx(Ep, { children: /* @__PURE__ */ u.jsx(
|
|
27965
|
+
/* @__PURE__ */ u.jsx(Ep, { children: /* @__PURE__ */ u.jsx(ge, { fontWeight: "bold", sx: { color: "#ef8b34" }, children: e.labels.sportal365Images }) }),
|
|
27956
27966
|
/* @__PURE__ */ u.jsx(_p, { children: /* @__PURE__ */ u.jsx(yv, { labels: e.labels, onChangeImages: S }) })
|
|
27957
27967
|
] }) }) : /* @__PURE__ */ u.jsx(u.Fragment, {})
|
|
27958
27968
|
] }),
|
|
@@ -27975,7 +27985,7 @@ const cL = {
|
|
|
27975
27985
|
mobile: "",
|
|
27976
27986
|
cover: ""
|
|
27977
27987
|
}, gL = (e) => {
|
|
27978
|
-
const [t, n] =
|
|
27988
|
+
const [t, n] = Q(!1), r = pL(e.defaultValue), i = hL(e.labels), o = (s, l) => {
|
|
27979
27989
|
r[l] = s, e.onChange(r);
|
|
27980
27990
|
}, a = (s) => {
|
|
27981
27991
|
r[s] = "", e.onChange(r);
|
|
@@ -28432,7 +28442,7 @@ const LL = ["children", "component", "htmlFor", "id", "slots", "slotProps"], jL
|
|
|
28432
28442
|
}))]
|
|
28433
28443
|
}));
|
|
28434
28444
|
}), NL = ({ environment: e, userNotFound: t }) => {
|
|
28435
|
-
const [n, r] =
|
|
28445
|
+
const [n, r] = Q(""), [i, o] = Q(""), [a, s] = Q(!1), l = () => {
|
|
28436
28446
|
s(!a);
|
|
28437
28447
|
}, c = (h) => {
|
|
28438
28448
|
h.persist(), r(h.target.value);
|
|
@@ -28728,7 +28738,7 @@ const Ci = ct("MuiCheckbox", ["root", "checkbox", "action", "input", "label", "c
|
|
|
28728
28738
|
elementType: GL,
|
|
28729
28739
|
externalForwardedProps: de,
|
|
28730
28740
|
ownerState: ut
|
|
28731
|
-
}), [
|
|
28741
|
+
}), [Me, De] = Ee("action", {
|
|
28732
28742
|
className: Ot.action,
|
|
28733
28743
|
elementType: YL,
|
|
28734
28744
|
externalForwardedProps: de,
|
|
@@ -28763,7 +28773,7 @@ const Ci = ct("MuiCheckbox", ["root", "checkbox", "action", "input", "label", "c
|
|
|
28763
28773
|
let Zt = d;
|
|
28764
28774
|
return g ? Zt = null : w ? Zt = y : te && (Zt = f), /* @__PURE__ */ u.jsxs(he, P({}, Ce, {
|
|
28765
28775
|
children: [/* @__PURE__ */ u.jsxs(ke, P({}, Je, {
|
|
28766
|
-
children: [/* @__PURE__ */ u.jsx(
|
|
28776
|
+
children: [/* @__PURE__ */ u.jsx(Me, P({}, De, {
|
|
28767
28777
|
children: /* @__PURE__ */ u.jsx(Pt, P({}, Dt))
|
|
28768
28778
|
})), Zt]
|
|
28769
28779
|
})), h && /* @__PURE__ */ u.jsx(zc.Provider, {
|
|
@@ -28786,7 +28796,7 @@ const Ci = ct("MuiCheckbox", ["root", "checkbox", "action", "input", "label", "c
|
|
|
28786
28796
|
f = t.filter((h) => h !== d), a(f);
|
|
28787
28797
|
};
|
|
28788
28798
|
return /* @__PURE__ */ u.jsxs(le, { sx: { mb: 2 }, children: [
|
|
28789
|
-
/* @__PURE__ */ u.jsx(
|
|
28799
|
+
/* @__PURE__ */ u.jsx(ge, { level: "body-sm", mb: 1, children: e }),
|
|
28790
28800
|
/* @__PURE__ */ u.jsxs(
|
|
28791
28801
|
EE,
|
|
28792
28802
|
{
|
|
@@ -28848,7 +28858,7 @@ const Ci = ct("MuiCheckbox", ["root", "checkbox", "action", "input", "label", "c
|
|
|
28848
28858
|
correctScores: ["CORRECT_SCORE", "CORRECT_SCORE_HT", "CORRECT_SCORE_ADVANCED"],
|
|
28849
28859
|
misc: ["FT_1X2", "HT_1X2", "BOTH_TEAMS_SCORE", "DOUBLE_CHANCE", "HT_FT", "RED_CARD_MATCH", "PENALTY_MATCH"]
|
|
28850
28860
|
}, e2 = ({ labels: e, values: t, valuesMap: n, onChange: r }) => {
|
|
28851
|
-
const [i, o] =
|
|
28861
|
+
const [i, o] = Q(!1);
|
|
28852
28862
|
return /* @__PURE__ */ u.jsxs(
|
|
28853
28863
|
Ge,
|
|
28854
28864
|
{
|
|
@@ -28895,32 +28905,32 @@ const Ci = ct("MuiCheckbox", ["root", "checkbox", "action", "input", "label", "c
|
|
|
28895
28905
|
}, t2 = ({ match: e, timeFormat: t }) => {
|
|
28896
28906
|
var n, r, i, o;
|
|
28897
28907
|
return /* @__PURE__ */ u.jsxs(le, { display: "flex", alignItems: "center", gap: 0.5, fontSize: "xs", children: [
|
|
28898
|
-
/* @__PURE__ */ u.jsxs(
|
|
28908
|
+
/* @__PURE__ */ u.jsxs(ge, { mr: 1, children: [
|
|
28899
28909
|
"[",
|
|
28900
28910
|
Bt(e.kickoffAt).format(t),
|
|
28901
28911
|
"]"
|
|
28902
28912
|
] }),
|
|
28903
|
-
e.homeTeam.code ? /* @__PURE__ */ u.jsx(
|
|
28904
|
-
/* @__PURE__ */ u.jsx(
|
|
28913
|
+
e.homeTeam.code ? /* @__PURE__ */ u.jsx(Oe, { title: e.homeTeam.name, children: /* @__PURE__ */ u.jsxs(le, { display: "flex", gap: 0.5, alignItems: "center", minWidth: "60px", justifyContent: "flex-end", children: [
|
|
28914
|
+
/* @__PURE__ */ u.jsx(ge, { children: e.homeTeam.code || e.homeTeam.name }),
|
|
28905
28915
|
/* @__PURE__ */ u.jsx(Kt, { src: ((n = e.homeTeam.assets) == null ? void 0 : n.logo) || dt.team, sx: { width: "20px", height: "20px" } })
|
|
28906
28916
|
] }) }) : /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
|
28907
|
-
/* @__PURE__ */ u.jsx(
|
|
28917
|
+
/* @__PURE__ */ u.jsx(ge, { children: e.homeTeam.code || e.homeTeam.name }),
|
|
28908
28918
|
/* @__PURE__ */ u.jsx(Kt, { src: ((r = e.homeTeam.assets) == null ? void 0 : r.logo) || dt.team, sx: { width: "20px", height: "20px" } })
|
|
28909
28919
|
] }),
|
|
28910
28920
|
"-",
|
|
28911
|
-
e.awayTeam.code ? /* @__PURE__ */ u.jsx(
|
|
28921
|
+
e.awayTeam.code ? /* @__PURE__ */ u.jsx(Oe, { title: e.awayTeam.name, children: /* @__PURE__ */ u.jsxs(le, { display: "flex", gap: 0.5, alignItems: "center", children: [
|
|
28912
28922
|
/* @__PURE__ */ u.jsx(Kt, { src: ((i = e.awayTeam.assets) == null ? void 0 : i.logo) || dt.team, sx: { width: "20px", height: "20px" } }),
|
|
28913
28923
|
" ",
|
|
28914
|
-
/* @__PURE__ */ u.jsx(
|
|
28924
|
+
/* @__PURE__ */ u.jsx(ge, { children: e.awayTeam.code || e.awayTeam.name })
|
|
28915
28925
|
] }) }) : /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
|
28916
28926
|
/* @__PURE__ */ u.jsx(Kt, { src: ((o = e.awayTeam.assets) == null ? void 0 : o.logo) || dt.team, sx: { width: "20px", height: "20px" } }),
|
|
28917
|
-
/* @__PURE__ */ u.jsx(
|
|
28927
|
+
/* @__PURE__ */ u.jsx(ge, { children: e.awayTeam.code || e.awayTeam.name })
|
|
28918
28928
|
] })
|
|
28919
28929
|
] });
|
|
28920
28930
|
}, fb = Qe(/* @__PURE__ */ u.jsx("path", {
|
|
28921
28931
|
d: "M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"
|
|
28922
28932
|
}), "KeyboardArrowDown"), n2 = (e) => {
|
|
28923
|
-
const [t, n] =
|
|
28933
|
+
const [t, n] = Q([]), [r, i] = Q([]), [o, a] = Q(!1), { sdk: s } = xt(), l = () => T(void 0, null, function* () {
|
|
28924
28934
|
try {
|
|
28925
28935
|
const h = yield s.topX.getGames({ limit: 50 }, !0), p = yield s.matchQuiz.getGames({ limit: 50 }, !0), m = [...h.data, ...p.data];
|
|
28926
28936
|
if (e.related && e.related.length > 0) {
|
|
@@ -28990,7 +29000,7 @@ const Ci = ct("MuiCheckbox", ["root", "checkbox", "action", "input", "label", "c
|
|
|
28990
29000
|
)
|
|
28991
29001
|
] });
|
|
28992
29002
|
}, r2 = (e) => {
|
|
28993
|
-
const [t, n] =
|
|
29003
|
+
const [t, n] = Q([]), [r, i] = Q([]), [o, a] = Q(!1), { sdk: s } = xt(), l = () => T(void 0, null, function* () {
|
|
28994
29004
|
try {
|
|
28995
29005
|
const h = yield s.loyalty.getTemplates(void 0, !0);
|
|
28996
29006
|
if (e.related && e.related.length > 0) {
|
|
@@ -29089,7 +29099,7 @@ const Ci = ct("MuiCheckbox", ["root", "checkbox", "action", "input", "label", "c
|
|
|
29089
29099
|
)
|
|
29090
29100
|
] });
|
|
29091
29101
|
}, o2 = (e, t) => {
|
|
29092
|
-
const [n, r] =
|
|
29102
|
+
const [n, r] = Q(null), { https: i } = xt(), o = () => T(void 0, null, function* () {
|
|
29093
29103
|
const a = yield i.getSchedulersByEntityId(e);
|
|
29094
29104
|
if (a.ok) {
|
|
29095
29105
|
const s = yield a.json();
|
|
@@ -29130,7 +29140,7 @@ class u2 {
|
|
|
29130
29140
|
const d2 = Qe(/* @__PURE__ */ u.jsx("path", {
|
|
29131
29141
|
d: "M4.47 21h15.06c1.54 0 2.5-1.67 1.73-3L13.73 4.99c-.77-1.33-2.69-1.33-3.46 0L2.74 18c-.77 1.33.19 3 1.73 3M12 14c-.55 0-1-.45-1-1v-2c0-.55.45-1 1-1s1 .45 1 1v2c0 .55-.45 1-1 1m1 4h-2v-2h2z"
|
|
29132
29142
|
}), "WarningRounded"), f2 = (e) => {
|
|
29133
|
-
const [t, n] =
|
|
29143
|
+
const [t, n] = Q(!1), { https: r } = xt(), i = (o) => T(void 0, null, function* () {
|
|
29134
29144
|
if (o.stopPropagation(), n(!0), (yield r.deleteScheduledTask(e.taskId)).ok) {
|
|
29135
29145
|
n(!1), e.toggleToast("success", e.labels.deleteScheduledTaskMessage), e.refetchTasks(), e.toggleModal();
|
|
29136
29146
|
return;
|
|
@@ -29143,9 +29153,9 @@ const d2 = Qe(/* @__PURE__ */ u.jsx("path", {
|
|
|
29143
29153
|
e.labels.deleteScheduledTaskModalTitle
|
|
29144
29154
|
] }),
|
|
29145
29155
|
/* @__PURE__ */ u.jsx(tu, {}),
|
|
29146
|
-
/* @__PURE__ */ u.jsx(eu, { children: /* @__PURE__ */ u.jsxs(
|
|
29156
|
+
/* @__PURE__ */ u.jsx(eu, { children: /* @__PURE__ */ u.jsxs(ge, { children: [
|
|
29147
29157
|
e.labels.deleteScheduledTaskModalParagraph,
|
|
29148
|
-
/* @__PURE__ */ u.jsx(
|
|
29158
|
+
/* @__PURE__ */ u.jsx(ge, { fontWeight: "bold", children: e.taskName }),
|
|
29149
29159
|
"?"
|
|
29150
29160
|
] }) }),
|
|
29151
29161
|
/* @__PURE__ */ u.jsxs(wp, { children: [
|
|
@@ -29164,7 +29174,7 @@ const d2 = Qe(/* @__PURE__ */ u.jsx("path", {
|
|
|
29164
29174
|
] })
|
|
29165
29175
|
] }) }) });
|
|
29166
29176
|
}, h2 = (e) => {
|
|
29167
|
-
const [t, n] =
|
|
29177
|
+
const [t, n] = Q(null), [r, i] = Q(""), [o, a] = Q(""), [s, l] = Q(""), [c, d] = Q(""), [f, h] = Q(!1), [p, m] = Q(!1), [g, v] = Q(!1), [C, w] = Q("success"), [y, x] = Q(""), [b, I] = Q(!1), A = Te(!1), E = o2(e.entityId, A.current), { https: k } = xt();
|
|
29168
29178
|
if (!E)
|
|
29169
29179
|
return /* @__PURE__ */ u.jsx(tl, { my: 10 });
|
|
29170
29180
|
const H = () => I(!b), $ = (M, z) => {
|
|
@@ -29237,20 +29247,20 @@ const d2 = Qe(/* @__PURE__ */ u.jsx("path", {
|
|
|
29237
29247
|
},
|
|
29238
29248
|
children: [
|
|
29239
29249
|
/* @__PURE__ */ u.jsxs(le, { children: [
|
|
29240
|
-
/* @__PURE__ */ u.jsxs(
|
|
29250
|
+
/* @__PURE__ */ u.jsxs(ge, { style: { fontWeight: "bold" }, children: [
|
|
29241
29251
|
e.labels.name,
|
|
29242
29252
|
": ",
|
|
29243
|
-
/* @__PURE__ */ u.jsx(
|
|
29253
|
+
/* @__PURE__ */ u.jsx(ge, { whiteSpace: "wrap", children: M.name })
|
|
29244
29254
|
] }),
|
|
29245
|
-
/* @__PURE__ */ u.jsxs(
|
|
29255
|
+
/* @__PURE__ */ u.jsxs(ge, { style: { color: "gray" }, children: [
|
|
29246
29256
|
e.labels.status,
|
|
29247
29257
|
": ",
|
|
29248
|
-
/* @__PURE__ */ u.jsx(
|
|
29258
|
+
/* @__PURE__ */ u.jsx(ge, { whiteSpace: "wrap", children: M.status })
|
|
29249
29259
|
] })
|
|
29250
29260
|
] }),
|
|
29251
29261
|
!e.readOnly && /* @__PURE__ */ u.jsxs(le, { children: [
|
|
29252
|
-
/* @__PURE__ */ u.jsx(
|
|
29253
|
-
/* @__PURE__ */ u.jsx(
|
|
29262
|
+
/* @__PURE__ */ u.jsx(Oe, { title: e.labels.edit, children: /* @__PURE__ */ u.jsx(an, { onClick: () => S(z, M), children: /* @__PURE__ */ u.jsx(Op, {}) }) }),
|
|
29263
|
+
/* @__PURE__ */ u.jsx(Oe, { title: e.labels.delete, children: /* @__PURE__ */ u.jsx(an, { onClick: H, children: /* @__PURE__ */ u.jsx(iu, {}) }) })
|
|
29254
29264
|
] }),
|
|
29255
29265
|
/* @__PURE__ */ u.jsx(
|
|
29256
29266
|
f2,
|
|
@@ -29513,7 +29523,7 @@ const pb = Qe(/* @__PURE__ */ u.jsx("path", {
|
|
|
29513
29523
|
/* @__PURE__ */ u.jsx(Ye, { required: r, color: "primary", children: e }),
|
|
29514
29524
|
/* @__PURE__ */ u.jsx(
|
|
29515
29525
|
qt,
|
|
29516
|
-
|
|
29526
|
+
K(j({
|
|
29517
29527
|
slotProps: { button: { sx: { whiteSpace: "nowrap" } } },
|
|
29518
29528
|
sx: {
|
|
29519
29529
|
"--ListItemDecorator-size": "44px",
|
|
@@ -29667,8 +29677,8 @@ function vj(e, t, n) {
|
|
|
29667
29677
|
var bj = vj;
|
|
29668
29678
|
const Wr = /* @__PURE__ */ Bn(bj), Ln = ({ option: e }) => /* @__PURE__ */ u.jsxs(le, { display: "flex", alignItems: "center", mr: 1, children: [
|
|
29669
29679
|
/* @__PURE__ */ u.jsx(Kt, { sx: { width: "1.5rem", height: " 1.5rem", mr: 0.5, borderRadius: "0.75rem" }, src: e.logo }),
|
|
29670
|
-
/* @__PURE__ */ u.jsx(
|
|
29671
|
-
/* @__PURE__ */ u.jsx(
|
|
29680
|
+
/* @__PURE__ */ u.jsx(ge, { children: e.label }),
|
|
29681
|
+
/* @__PURE__ */ u.jsx(ge, { ml: 0.5, level: "body-xs", children: `(${e.countryName})` })
|
|
29672
29682
|
] }), $h = (e) => (e == null ? void 0 : e.map((t) => {
|
|
29673
29683
|
var n, r, i, o;
|
|
29674
29684
|
return {
|
|
@@ -29680,7 +29690,7 @@ const Wr = /* @__PURE__ */ Bn(bj), Ln = ({ option: e }) => /* @__PURE__ */ u.jsx
|
|
|
29680
29690
|
countryFlag: ((o = (i = t.country) == null ? void 0 : i.assets) == null ? void 0 : o.flag) || dt.flag
|
|
29681
29691
|
};
|
|
29682
29692
|
})) || [], yj = ({ labels: e, label: t, ids: n, required: r, onChange: i }) => {
|
|
29683
|
-
const [o, a] =
|
|
29693
|
+
const [o, a] = Q([]), [s, l] = Q([]), [c, d] = Q(!1), [f, h] = Q(""), [p, m] = Q(!1), { sdk: g } = xt(), v = () => m(!p), C = (b, I) => {
|
|
29684
29694
|
a(I), i(I[0] ? [I[0].id] : []);
|
|
29685
29695
|
}, w = 3;
|
|
29686
29696
|
be(() => {
|
|
@@ -29751,7 +29761,7 @@ const Wr = /* @__PURE__ */ Bn(bj), Ln = ({ option: e }) => /* @__PURE__ */ u.jsx
|
|
|
29751
29761
|
getOptionKey: (b) => b.id,
|
|
29752
29762
|
value: o,
|
|
29753
29763
|
renderTags: x,
|
|
29754
|
-
renderOption: (b, I) => /* @__PURE__ */ u.jsx(Nr,
|
|
29764
|
+
renderOption: (b, I) => /* @__PURE__ */ u.jsx(Nr, K(j({}, b), { children: /* @__PURE__ */ u.jsx(Ln, { option: I }) }))
|
|
29755
29765
|
}
|
|
29756
29766
|
) }),
|
|
29757
29767
|
/* @__PURE__ */ u.jsx(gt, { showToast: p, message: e.searchCompetitionsErrorMessage, color: "danger", hideToast: v })
|
|
@@ -29767,7 +29777,7 @@ const Wr = /* @__PURE__ */ Bn(bj), Ln = ({ option: e }) => /* @__PURE__ */ u.jsx
|
|
|
29767
29777
|
countryFlag: ((o = (i = t.country) == null ? void 0 : i.assets) == null ? void 0 : o.flag) || dt.flag
|
|
29768
29778
|
};
|
|
29769
29779
|
})) || [], xj = ({ labels: e, ids: t, scope: n, onChange: r }) => {
|
|
29770
|
-
const [i, o] =
|
|
29780
|
+
const [i, o] = Q([]), [a, s] = Q([]), [l, c] = Q(!1), [d, f] = Q(""), [h, p] = Q(!1), { sdk: m } = xt(), g = () => p(!h), v = (x, b) => {
|
|
29771
29781
|
o(b);
|
|
29772
29782
|
const I = b.map((A) => A.id);
|
|
29773
29783
|
r(I && I.length ? I : null);
|
|
@@ -29840,7 +29850,7 @@ const Wr = /* @__PURE__ */ Bn(bj), Ln = ({ option: e }) => /* @__PURE__ */ u.jsx
|
|
|
29840
29850
|
getOptionKey: (x) => x.id,
|
|
29841
29851
|
value: i,
|
|
29842
29852
|
renderTags: y,
|
|
29843
|
-
renderOption: (x, b) => /* @__PURE__ */ u.jsx(Nr,
|
|
29853
|
+
renderOption: (x, b) => /* @__PURE__ */ u.jsx(Nr, K(j({}, x), { children: /* @__PURE__ */ u.jsx(Ln, { option: b }) }))
|
|
29844
29854
|
}
|
|
29845
29855
|
) }),
|
|
29846
29856
|
/* @__PURE__ */ u.jsx(gt, { showToast: h, message: e.searchCompetitionsErrorMessage, color: "danger", hideToast: g })
|
|
@@ -29851,7 +29861,7 @@ const Wr = /* @__PURE__ */ Bn(bj), Ln = ({ option: e }) => /* @__PURE__ */ u.jsx
|
|
|
29851
29861
|
label: t.nickname ? t.nickname : t.name || `No name ${t.id.slice(0, 5)}`,
|
|
29852
29862
|
avatar: t.avatar
|
|
29853
29863
|
}))) || [], Cj = ({ labels: e, ids: t, onChange: n }) => {
|
|
29854
|
-
const [r, i] =
|
|
29864
|
+
const [r, i] = Q([]), [o, a] = Q([]), [s, l] = Q(!1), [c, d] = Q(""), [f, h] = Q(!1), { sdk: p } = xt(), m = () => h(!f), g = (y, x) => {
|
|
29855
29865
|
i(x);
|
|
29856
29866
|
const b = x.map((I) => I.id);
|
|
29857
29867
|
n(b && b.length ? b : null);
|
|
@@ -29899,7 +29909,7 @@ const Wr = /* @__PURE__ */ Bn(bj), Ln = ({ option: e }) => /* @__PURE__ */ u.jsx
|
|
|
29899
29909
|
},
|
|
29900
29910
|
children: /* @__PURE__ */ u.jsxs(le, { display: "flex", alignItems: "center", mr: 1, children: [
|
|
29901
29911
|
/* @__PURE__ */ u.jsx(Kt, { sx: { width: "1.5rem", height: " 1.5rem", mr: 0.5, borderRadius: "0.75rem" }, src: (A = b.avatar) != null ? A : dt.avatar }),
|
|
29902
|
-
/* @__PURE__ */ u.jsx(
|
|
29912
|
+
/* @__PURE__ */ u.jsx(ge, { children: b.label })
|
|
29903
29913
|
] })
|
|
29904
29914
|
},
|
|
29905
29915
|
b.id
|
|
@@ -29930,9 +29940,9 @@ const Wr = /* @__PURE__ */ Bn(bj), Ln = ({ option: e }) => /* @__PURE__ */ u.jsx
|
|
|
29930
29940
|
renderTags: w,
|
|
29931
29941
|
renderOption: (y, x) => {
|
|
29932
29942
|
var b;
|
|
29933
|
-
return /* @__PURE__ */ u.jsx(Nr,
|
|
29943
|
+
return /* @__PURE__ */ u.jsx(Nr, K(j({}, y), { children: /* @__PURE__ */ u.jsxs(le, { display: "flex", alignItems: "center", mr: 1, children: [
|
|
29934
29944
|
/* @__PURE__ */ u.jsx(Kt, { sx: { width: "1.5rem", height: " 1.5rem", mr: 0.5, borderRadius: "0.75rem" }, src: (b = x.avatar) != null ? b : dt.avatar }),
|
|
29935
|
-
/* @__PURE__ */ u.jsx(
|
|
29945
|
+
/* @__PURE__ */ u.jsx(ge, { children: x.label })
|
|
29936
29946
|
] }) }));
|
|
29937
29947
|
}
|
|
29938
29948
|
}
|
|
@@ -29950,7 +29960,7 @@ const Wr = /* @__PURE__ */ Bn(bj), Ln = ({ option: e }) => /* @__PURE__ */ u.jsx
|
|
|
29950
29960
|
countryFlag: ((o = (i = t.country) == null ? void 0 : i.assets) == null ? void 0 : o.flag) || dt.flag
|
|
29951
29961
|
};
|
|
29952
29962
|
})) || [], wj = ({ labels: e, ids: t, scope: n, onChange: r }) => {
|
|
29953
|
-
const [i, o] =
|
|
29963
|
+
const [i, o] = Q([]), [a, s] = Q([]), [l, c] = Q(!1), [d, f] = Q(""), [h, p] = Q(!1), { sdk: m } = xt(), g = () => p(!h), v = (x, b) => {
|
|
29954
29964
|
o(b);
|
|
29955
29965
|
const I = b.map((A) => A.id);
|
|
29956
29966
|
r(I && I.length ? I : null);
|
|
@@ -30023,7 +30033,7 @@ const Wr = /* @__PURE__ */ Bn(bj), Ln = ({ option: e }) => /* @__PURE__ */ u.jsx
|
|
|
30023
30033
|
getOptionKey: (x) => x.id,
|
|
30024
30034
|
value: i,
|
|
30025
30035
|
renderTags: y,
|
|
30026
|
-
renderOption: (x, b) => /* @__PURE__ */ u.jsx(Nr,
|
|
30036
|
+
renderOption: (x, b) => /* @__PURE__ */ u.jsx(Nr, K(j({}, x), { children: /* @__PURE__ */ u.jsx(Ln, { option: b }) }))
|
|
30027
30037
|
}
|
|
30028
30038
|
) }),
|
|
30029
30039
|
/* @__PURE__ */ u.jsx(gt, { showToast: h, message: e.searchTeamsErrorMessage, color: "danger", hideToast: g })
|
|
@@ -30064,7 +30074,7 @@ const Wr = /* @__PURE__ */ Bn(bj), Ln = ({ option: e }) => /* @__PURE__ */ u.jsx
|
|
|
30064
30074
|
const s = /* @__PURE__ */ u.jsx(Ij, { checked: n, disabled: i, onChange: a });
|
|
30065
30075
|
return r ? /* @__PURE__ */ u.jsxs(le, { mb: 2, children: [
|
|
30066
30076
|
/* @__PURE__ */ u.jsx(
|
|
30067
|
-
|
|
30077
|
+
ge,
|
|
30068
30078
|
{
|
|
30069
30079
|
component: "label",
|
|
30070
30080
|
startDecorator: t == "start" ? void 0 : s,
|
|
@@ -30072,9 +30082,9 @@ const Wr = /* @__PURE__ */ Bn(bj), Ln = ({ option: e }) => /* @__PURE__ */ u.jsx
|
|
|
30072
30082
|
children: e
|
|
30073
30083
|
}
|
|
30074
30084
|
),
|
|
30075
|
-
/* @__PURE__ */ u.jsx(
|
|
30085
|
+
/* @__PURE__ */ u.jsx(ge, { level: "body-sm", color: o || "neutral", children: r })
|
|
30076
30086
|
] }) : /* @__PURE__ */ u.jsx(
|
|
30077
|
-
|
|
30087
|
+
ge,
|
|
30078
30088
|
{
|
|
30079
30089
|
sx: { mb: 2 },
|
|
30080
30090
|
component: "label",
|
|
@@ -30084,7 +30094,7 @@ const Wr = /* @__PURE__ */ Bn(bj), Ln = ({ option: e }) => /* @__PURE__ */ u.jsx
|
|
|
30084
30094
|
}
|
|
30085
30095
|
);
|
|
30086
30096
|
}, Sj = {
|
|
30087
|
-
control: (e, t) =>
|
|
30097
|
+
control: (e, t) => K(j({}, e), {
|
|
30088
30098
|
minHeight: "36px",
|
|
30089
30099
|
borderColor: t.isFocused ? "#0b6bcb" : "#ced4da",
|
|
30090
30100
|
boxShadow: t.isFocused ? "0 0 0 0px 1px 2px 0px rgba(25, 118, 210, 0.25)" : "none",
|
|
@@ -30094,40 +30104,40 @@ const Wr = /* @__PURE__ */ Bn(bj), Ln = ({ option: e }) => /* @__PURE__ */ u.jsx
|
|
|
30094
30104
|
// Keep border color on hover
|
|
30095
30105
|
}
|
|
30096
30106
|
}),
|
|
30097
|
-
valueContainer: (e) =>
|
|
30107
|
+
valueContainer: (e) => K(j({}, e), {
|
|
30098
30108
|
minHeight: "36px",
|
|
30099
30109
|
marginTop: "0px"
|
|
30100
30110
|
}),
|
|
30101
|
-
indicatorsContainer: (e) =>
|
|
30111
|
+
indicatorsContainer: (e) => K(j({}, e), {
|
|
30102
30112
|
minHeight: "36px"
|
|
30103
30113
|
}),
|
|
30104
|
-
menu: (e) =>
|
|
30114
|
+
menu: (e) => K(j({}, e), {
|
|
30105
30115
|
position: "relative"
|
|
30106
30116
|
}),
|
|
30107
|
-
clearIndicator: (e) =>
|
|
30117
|
+
clearIndicator: (e) => K(j({}, e), {
|
|
30108
30118
|
"&:hover": { backGroundColor: "gray" },
|
|
30109
30119
|
cursor: "pointer"
|
|
30110
30120
|
}),
|
|
30111
|
-
input: (e) =>
|
|
30121
|
+
input: (e) => K(j({}, e), {
|
|
30112
30122
|
"input:focus": {
|
|
30113
30123
|
boxShadow: "none"
|
|
30114
30124
|
// remove on focus blue box shadow
|
|
30115
30125
|
}
|
|
30116
30126
|
}),
|
|
30117
|
-
placeholder: (e) =>
|
|
30127
|
+
placeholder: (e) => K(j({}, e), {
|
|
30118
30128
|
color: "rgba(0, 0, 0, 0.54)",
|
|
30119
30129
|
fontSize: "14px"
|
|
30120
30130
|
}),
|
|
30121
|
-
multiValue: (e) =>
|
|
30131
|
+
multiValue: (e) => K(j({}, e), {
|
|
30122
30132
|
backgroundColor: "#e0f3ff",
|
|
30123
30133
|
borderRadius: "4px",
|
|
30124
30134
|
fontSize: "13px"
|
|
30125
30135
|
}),
|
|
30126
|
-
multiValueLabel: (e) =>
|
|
30136
|
+
multiValueLabel: (e) => K(j({}, e), {
|
|
30127
30137
|
color: "#333"
|
|
30128
30138
|
})
|
|
30129
30139
|
}, Aj = (e) => e.map((t) => ({ label: t, value: t })), yb = (e) => {
|
|
30130
|
-
const [t, n] =
|
|
30140
|
+
const [t, n] = Q(""), [r, i] = Q(!1), o = Aj(e.tags), a = () => i(!r), s = (f) => {
|
|
30131
30141
|
e.onChange(f.map((h) => h.value));
|
|
30132
30142
|
}, l = (f) => {
|
|
30133
30143
|
n(f);
|
|
@@ -30183,7 +30193,7 @@ class xb {
|
|
|
30183
30193
|
}
|
|
30184
30194
|
}
|
|
30185
30195
|
const Ej = (e, t, n) => {
|
|
30186
|
-
const [r, i] =
|
|
30196
|
+
const [r, i] = Q(null), { sdk: o } = xt(), a = () => T(void 0, null, function* () {
|
|
30187
30197
|
try {
|
|
30188
30198
|
let s;
|
|
30189
30199
|
switch (t) {
|
|
@@ -30503,7 +30513,7 @@ class jb extends Z$ {
|
|
|
30503
30513
|
}
|
|
30504
30514
|
}
|
|
30505
30515
|
const eB = (e, t) => t || e || "-------------", Wc = (e, t) => Array.isArray(e) ? e.map((n) => Wc(n)) : e != null && e.constructor === Object ? Object.keys(e).reduce(
|
|
30506
|
-
(n, r) =>
|
|
30516
|
+
(n, r) => K(j({}, n), {
|
|
30507
30517
|
[J$(r)]: Wc(e[r])
|
|
30508
30518
|
}),
|
|
30509
30519
|
{}
|
|
@@ -30554,7 +30564,7 @@ const eB = (e, t) => t || e || "-------------", Wc = (e, t) => Array.isArray(e)
|
|
|
30554
30564
|
}
|
|
30555
30565
|
}, rB = ({ profile: e, winner: t, labels: n, onChange: r, onRemove: i }) => {
|
|
30556
30566
|
var v, C, w, y, x, b;
|
|
30557
|
-
const [o, a] =
|
|
30567
|
+
const [o, a] = Q(t.position), [s, l] = Q(t.note), [c, d] = Q(t.tags), f = o || s || c.length > 0, h = (I) => {
|
|
30558
30568
|
I.persist();
|
|
30559
30569
|
const { value: A } = I.target;
|
|
30560
30570
|
a(A), r("position", A);
|
|
@@ -30571,16 +30581,16 @@ const eB = (e, t) => t || e || "-------------", Wc = (e, t) => Array.isArray(e)
|
|
|
30571
30581
|
/* @__PURE__ */ u.jsx("td", { children: /* @__PURE__ */ u.jsxs(le, { display: "flex", alignItems: "center", children: [
|
|
30572
30582
|
/* @__PURE__ */ u.jsx(Kt, { src: ((v = e.profileModel) == null ? void 0 : v.avatar) || "", alt: ((C = e.profileModel) == null ? void 0 : C.name) || "Unknown", sx: { mr: 1 } }),
|
|
30573
30583
|
/* @__PURE__ */ u.jsxs(le, { children: [
|
|
30574
|
-
/* @__PURE__ */ u.jsxs(
|
|
30584
|
+
/* @__PURE__ */ u.jsxs(ge, { fontWeight: "md", children: [
|
|
30575
30585
|
eB((w = e.profileModel) == null ? void 0 : w.name, (y = e.profileModel) == null ? void 0 : y.nickname),
|
|
30576
30586
|
" ",
|
|
30577
|
-
(x = e.profileModel) != null && x.name ? /* @__PURE__ */ u.jsxs(
|
|
30587
|
+
(x = e.profileModel) != null && x.name ? /* @__PURE__ */ u.jsxs(ge, { children: [
|
|
30578
30588
|
"(",
|
|
30579
30589
|
(b = e.profileModel) == null ? void 0 : b.name,
|
|
30580
30590
|
")"
|
|
30581
30591
|
] }) : /* @__PURE__ */ u.jsx(u.Fragment, {})
|
|
30582
30592
|
] }),
|
|
30583
|
-
/* @__PURE__ */ u.jsx(
|
|
30593
|
+
/* @__PURE__ */ u.jsx(ge, { fontSize: "sm", sx: { opacity: "0.5" }, children: e.profileModel && e.profileModel.country ? e.profileModel.country.name : "" })
|
|
30584
30594
|
] })
|
|
30585
30595
|
] }) }),
|
|
30586
30596
|
/* @__PURE__ */ u.jsx("td", { style: { textAlign: "center" }, children: e.points }),
|
|
@@ -30588,12 +30598,12 @@ const eB = (e, t) => t || e || "-------------", Wc = (e, t) => Array.isArray(e)
|
|
|
30588
30598
|
/* @__PURE__ */ u.jsx("td", { children: /* @__PURE__ */ u.jsx(ur, { name: "position", placeholder: "#", value: o, onChange: h, sx: { backgroundColor: "#fff" } }) }),
|
|
30589
30599
|
/* @__PURE__ */ u.jsx("td", { children: /* @__PURE__ */ u.jsx(ur, { name: "note", value: s, placeholder: "This user has...", onChange: p, sx: { backgroundColor: "#fff" } }) }),
|
|
30590
30600
|
/* @__PURE__ */ u.jsx("td", { children: /* @__PURE__ */ u.jsx(yb, { labels: n, tags: c, onChange: m }) }),
|
|
30591
|
-
/* @__PURE__ */ u.jsx("td", { children: /* @__PURE__ */ u.jsx(
|
|
30601
|
+
/* @__PURE__ */ u.jsx("td", { children: /* @__PURE__ */ u.jsx(Oe, { title: n.clearWinner, children: /* @__PURE__ */ u.jsx(an, { onClick: g, variant: "outlined", color: "danger", disabled: !f, children: /* @__PURE__ */ u.jsx(Mp, {}) }) }) })
|
|
30592
30602
|
] });
|
|
30593
30603
|
}, iB = (e) => {
|
|
30594
30604
|
const t = (i, o, a) => {
|
|
30595
30605
|
if (e.winners.find((d) => d.profileId === i)) {
|
|
30596
|
-
const d = e.winners.map((f) => f.profileId === i ?
|
|
30606
|
+
const d = e.winners.map((f) => f.profileId === i ? K(j({}, f), { [o]: a }) : f);
|
|
30597
30607
|
r(d);
|
|
30598
30608
|
return;
|
|
30599
30609
|
}
|
|
@@ -30605,11 +30615,11 @@ const eB = (e, t) => t || e || "-------------", Wc = (e, t) => Array.isArray(e)
|
|
|
30605
30615
|
const o = e.winners.filter((a) => a.profileId !== i);
|
|
30606
30616
|
r(o);
|
|
30607
30617
|
}, r = (i) => {
|
|
30608
|
-
e.setWinnersRequestBody((o) =>
|
|
30618
|
+
e.setWinnersRequestBody((o) => K(j({}, o), { userList: i }));
|
|
30609
30619
|
};
|
|
30610
30620
|
return e.leaderboard ? /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
|
30611
|
-
/* @__PURE__ */ u.jsx(
|
|
30612
|
-
e.leaderboard.length === 0 ? /* @__PURE__ */ u.jsx(
|
|
30621
|
+
/* @__PURE__ */ u.jsx(ge, { level: "h4", children: e.labels.configureWinners }),
|
|
30622
|
+
e.leaderboard.length === 0 ? /* @__PURE__ */ u.jsx(ge, { level: "body-lg", textAlign: "center", fontWeight: "bold", children: e.labels.noStandingsAvailable }) : /* @__PURE__ */ u.jsx(u.Fragment, {}),
|
|
30613
30623
|
/* @__PURE__ */ u.jsxs(
|
|
30614
30624
|
nu,
|
|
30615
30625
|
{
|
|
@@ -30654,7 +30664,7 @@ const eB = (e, t) => t || e || "-------------", Wc = (e, t) => Array.isArray(e)
|
|
|
30654
30664
|
)
|
|
30655
30665
|
] }) : /* @__PURE__ */ u.jsx(tl, { my: 40 });
|
|
30656
30666
|
}, oB = (e, t, n, r, i) => {
|
|
30657
|
-
const [o, a] =
|
|
30667
|
+
const [o, a] = Q(null), [s, l] = Q(!1), [c, d] = Q(!1), { sdk: f } = xt(), h = () => T(void 0, null, function* () {
|
|
30658
30668
|
d(!0);
|
|
30659
30669
|
const p = { limit: 10, page: r }, m = !0;
|
|
30660
30670
|
try {
|
|
@@ -30687,7 +30697,7 @@ class aB {
|
|
|
30687
30697
|
const sB = (e) => {
|
|
30688
30698
|
const t = e.winners.userList.length > 0 && (e.winners.userList[0].position || e.winners.userList[0].profileId || e.winners.userList[0].note || e.winners.userList[0].tags.length);
|
|
30689
30699
|
return /* @__PURE__ */ u.jsx(xn, { variant: "plain", children: t ? /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
|
30690
|
-
/* @__PURE__ */ u.jsx(
|
|
30700
|
+
/* @__PURE__ */ u.jsx(ge, { level: "body-lg", mb: 2, fontWeight: "bold", children: e.labels.preview }),
|
|
30691
30701
|
/* @__PURE__ */ u.jsx(ru, { children: /* @__PURE__ */ u.jsxs(
|
|
30692
30702
|
nu,
|
|
30693
30703
|
{
|
|
@@ -30716,16 +30726,16 @@ const sB = (e) => {
|
|
|
30716
30726
|
/* @__PURE__ */ u.jsx("td", { children: /* @__PURE__ */ u.jsxs(le, { display: "flex", alignItems: "center", justifyContent: { xs: "center", md: "flex-start" }, gap: 2, children: [
|
|
30717
30727
|
/* @__PURE__ */ u.jsx(Kt, { src: (r == null ? void 0 : r.avatar) || "", alt: (r == null ? void 0 : r.name) || "Unknown" }),
|
|
30718
30728
|
/* @__PURE__ */ u.jsxs(le, { textAlign: "left", children: [
|
|
30719
|
-
/* @__PURE__ */ u.jsxs(
|
|
30729
|
+
/* @__PURE__ */ u.jsxs(ge, { fontWeight: "bold", children: [
|
|
30720
30730
|
(r == null ? void 0 : r.nickname) || "-------------",
|
|
30721
30731
|
" ",
|
|
30722
|
-
/* @__PURE__ */ u.jsxs(
|
|
30732
|
+
/* @__PURE__ */ u.jsxs(ge, { children: [
|
|
30723
30733
|
"(",
|
|
30724
30734
|
(r == null ? void 0 : r.name) || "-------------",
|
|
30725
30735
|
")"
|
|
30726
30736
|
] })
|
|
30727
30737
|
] }),
|
|
30728
|
-
/* @__PURE__ */ u.jsx(
|
|
30738
|
+
/* @__PURE__ */ u.jsx(ge, { fontSize: "sm", color: "neutral", children: (i = r == null ? void 0 : r.country) == null ? void 0 : i.name })
|
|
30729
30739
|
] })
|
|
30730
30740
|
] }) }),
|
|
30731
30741
|
/* @__PURE__ */ u.jsx("td", { children: n.note }),
|
|
@@ -30735,10 +30745,10 @@ const sB = (e) => {
|
|
|
30735
30745
|
]
|
|
30736
30746
|
}
|
|
30737
30747
|
) })
|
|
30738
|
-
] }) : /* @__PURE__ */ u.jsx(
|
|
30748
|
+
] }) : /* @__PURE__ */ u.jsx(ge, { textAlign: "center", fontWeight: "bold", children: e.labels.noSetWinnersMessage }) });
|
|
30739
30749
|
}, lB = (e) => Object.keys(e).length ? (e.userList || (e.userList = []), e) : new xb(), cB = (e) => {
|
|
30740
30750
|
var b;
|
|
30741
|
-
const [t, n] =
|
|
30751
|
+
const [t, n] = Q(lB(e.winners)), [r, i] = Q(((b = e.winners) == null ? void 0 : b.description) || ""), [o, a] = Q(!1), [s, l] = Q(1), [c, d] = Q(!1), [f, h] = Q("danger"), [p, m] = Q(""), g = (I, A) => {
|
|
30742
30752
|
h(I), m(A), d(!0);
|
|
30743
30753
|
}, { leaderboard: v, hasMoreParticipants: C, isLeaderboardLoading: w } = oB(
|
|
30744
30754
|
e.entityId,
|
|
@@ -30807,11 +30817,11 @@ const sB = (e) => {
|
|
|
30807
30817
|
/* @__PURE__ */ u.jsx(gt, { showToast: c, color: f, message: p, hideToast: () => d(!1) })
|
|
30808
30818
|
] });
|
|
30809
30819
|
}, uB = (e) => {
|
|
30810
|
-
const [t, n] =
|
|
30820
|
+
const [t, n] = Q(!1), r = () => n(!0), i = Ej(e.entityId, e.entityType, r);
|
|
30811
30821
|
return i ? /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
|
30812
30822
|
/* @__PURE__ */ u.jsxs(le, { p: 2, children: [
|
|
30813
30823
|
/* @__PURE__ */ u.jsx(
|
|
30814
|
-
|
|
30824
|
+
ge,
|
|
30815
30825
|
{
|
|
30816
30826
|
fontSize: "12px",
|
|
30817
30827
|
sx: { cursor: "pointer" },
|
|
@@ -30820,11 +30830,11 @@ const sB = (e) => {
|
|
|
30820
30830
|
children: e.labels.back
|
|
30821
30831
|
}
|
|
30822
30832
|
),
|
|
30823
|
-
/* @__PURE__ */ u.jsxs(
|
|
30833
|
+
/* @__PURE__ */ u.jsxs(ge, { level: "h3", children: [
|
|
30824
30834
|
e.labels.manageWinners,
|
|
30825
30835
|
":",
|
|
30826
30836
|
" ",
|
|
30827
|
-
/* @__PURE__ */ u.jsx(
|
|
30837
|
+
/* @__PURE__ */ u.jsx(ge, { level: "title-lg", fontWeight: "italic", children: e.entityName })
|
|
30828
30838
|
] })
|
|
30829
30839
|
] }),
|
|
30830
30840
|
/* @__PURE__ */ u.jsx(cB, { labels: e.labels, winners: i, entityId: e.entityId, entityType: e.entityType }),
|
|
@@ -30832,7 +30842,7 @@ const sB = (e) => {
|
|
|
30832
30842
|
] }) : /* @__PURE__ */ u.jsx(tl, { my: 50 });
|
|
30833
30843
|
}, dB = 10, fB = (e) => {
|
|
30834
30844
|
var f;
|
|
30835
|
-
const [t, n] =
|
|
30845
|
+
const [t, n] = Q([]), [r, i] = Q(!1), [o, a] = Q(""), { sdk: s } = xt(), l = Ae(
|
|
30836
30846
|
() => Wr((h) => {
|
|
30837
30847
|
if (!h) {
|
|
30838
30848
|
n([]), i(!1);
|
|
@@ -30849,7 +30859,7 @@ const sB = (e) => {
|
|
|
30849
30859
|
be(() => (l(o), () => l.cancel()), [o, l]);
|
|
30850
30860
|
const c = (h, p) => {
|
|
30851
30861
|
const m = p.map((g) => g.id);
|
|
30852
|
-
e.setOptions(p), e.handleResetData(), e.setFilters((g) =>
|
|
30862
|
+
e.setOptions(p), e.handleResetData(), e.setFilters((g) => K(j({}, g), {
|
|
30853
30863
|
entityIds: m
|
|
30854
30864
|
}));
|
|
30855
30865
|
}, d = (h, p) => h.map((m, g) => /* @__PURE__ */ u.jsx(
|
|
@@ -30897,7 +30907,7 @@ const sB = (e) => {
|
|
|
30897
30907
|
groupBy: (h) => h.group + "s",
|
|
30898
30908
|
value: (f = e.options) != null ? f : [],
|
|
30899
30909
|
renderTags: d,
|
|
30900
|
-
renderOption: (h, p) => /* @__PURE__ */ u.jsx(Nr,
|
|
30910
|
+
renderOption: (h, p) => /* @__PURE__ */ u.jsx(Nr, K(j({}, h), { children: /* @__PURE__ */ u.jsx(Ln, { option: p }) }))
|
|
30901
30911
|
}
|
|
30902
30912
|
)
|
|
30903
30913
|
] });
|
|
@@ -31119,7 +31129,7 @@ function Hb(e, t, n, r, i, o) {
|
|
|
31119
31129
|
var a = vB(function(m, g) {
|
|
31120
31130
|
var v, C;
|
|
31121
31131
|
return Nb(m) ? (C = "", v = "") : typeof m == "number" || g ? (C = typeof m == "number" ? Ub(m) : m, v = r(C)) : (C = i(m, void 0), v = r(C)), { formattedValue: v, numAsString: C };
|
|
31122
|
-
}), s =
|
|
31132
|
+
}), s = Q(function() {
|
|
31123
31133
|
return a(wi(e) ? t : e, n);
|
|
31124
31134
|
}), l = s[0], c = s[1], d = function(m, g) {
|
|
31125
31135
|
m.formattedValue !== l.formattedValue && c({
|
|
@@ -31164,7 +31174,7 @@ function _B(e) {
|
|
|
31164
31174
|
y === void 0 && (y = _o);
|
|
31165
31175
|
var x = e.isCharacterSame, b = Bb(e, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]), I = Hb(C, l, !!c, a, s, d), A = I[0], E = A.formattedValue, k = A.numAsString, H = I[1], $ = Te(), S = Te({ formattedValue: E, numAsString: k }), V = function(de, he) {
|
|
31166
31176
|
S.current = { formattedValue: de.formattedValue, numAsString: de.value }, H(de, he);
|
|
31167
|
-
}, W =
|
|
31177
|
+
}, W = Q(!1), B = W[0], L = W[1], M = Te(null), z = Te({
|
|
31168
31178
|
setCaretTimeout: null,
|
|
31169
31179
|
focusTimeout: null
|
|
31170
31180
|
});
|
|
@@ -31192,12 +31202,12 @@ function _B(e) {
|
|
|
31192
31202
|
}, F = function(de) {
|
|
31193
31203
|
var he = de.formattedValue;
|
|
31194
31204
|
he === void 0 && (he = "");
|
|
31195
|
-
var Ce = de.input, ke = de.source, Je = de.event,
|
|
31205
|
+
var Ce = de.input, ke = de.source, Je = de.event, Me = de.numAsString, De;
|
|
31196
31206
|
if (Ce) {
|
|
31197
31207
|
var Pt = de.inputValue || Ce.value, Dt = tc(Ce);
|
|
31198
31208
|
Ce.value = he, De = N(Pt, he, Dt), De !== void 0 && D(Ce, De, he);
|
|
31199
31209
|
}
|
|
31200
|
-
he !== E && V(Z(he,
|
|
31210
|
+
he !== E && V(Z(he, Me), { event: Je, source: ke });
|
|
31201
31211
|
};
|
|
31202
31212
|
be(function() {
|
|
31203
31213
|
var de = S.current, he = de.formattedValue, Ce = de.numAsString;
|
|
@@ -31215,7 +31225,7 @@ function _B(e) {
|
|
|
31215
31225
|
}
|
|
31216
31226
|
}, [E]);
|
|
31217
31227
|
var oe = function(de, he, Ce) {
|
|
31218
|
-
var ke = he.target, Je = $.current ? yB($.current, ke.selectionEnd) : Vb(E, de),
|
|
31228
|
+
var ke = he.target, Je = $.current ? yB($.current, ke.selectionEnd) : Vb(E, de), Me = Object.assign(Object.assign({}, Je), { lastValue: E }), De = s(de, Me), Pt = Y(De);
|
|
31219
31229
|
if (De = s(Pt, void 0), f && !f(Z(Pt, De))) {
|
|
31220
31230
|
var Dt = he.target, Ht = tc(Dt), Nt = N(de, E, Ht);
|
|
31221
31231
|
return Dt.value = E, D(Dt, Nt, E), !1;
|
|
@@ -31236,10 +31246,10 @@ function _B(e) {
|
|
|
31236
31246
|
var he = de.target, Ce = he.value, ke = oe(Ce, de, Eo.event);
|
|
31237
31247
|
ke && h(de), $.current = void 0;
|
|
31238
31248
|
}, ne = function(de) {
|
|
31239
|
-
var he = de.target, Ce = de.key, ke = he.selectionStart, Je = he.selectionEnd,
|
|
31240
|
-
|
|
31249
|
+
var he = de.target, Ce = de.key, ke = he.selectionStart, Je = he.selectionEnd, Me = he.value;
|
|
31250
|
+
Me === void 0 && (Me = "");
|
|
31241
31251
|
var De;
|
|
31242
|
-
Ce === "ArrowLeft" || Ce === "Backspace" ? De = Math.max(ke - 1, 0) : Ce === "ArrowRight" ? De = Math.min(ke + 1,
|
|
31252
|
+
Ce === "ArrowLeft" || Ce === "Backspace" ? De = Math.max(ke - 1, 0) : Ce === "ArrowRight" ? De = Math.min(ke + 1, Me.length) : Ce === "Delete" && (De = ke);
|
|
31243
31253
|
var Pt = 0;
|
|
31244
31254
|
Ce === "Delete" && ke === Je && (Pt = 1);
|
|
31245
31255
|
var Dt = Ce === "ArrowLeft" || Ce === "ArrowRight";
|
|
@@ -31250,15 +31260,15 @@ function _B(e) {
|
|
|
31250
31260
|
var Ht = De;
|
|
31251
31261
|
if (Dt) {
|
|
31252
31262
|
var Nt = Ce === "ArrowLeft" ? "left" : "right";
|
|
31253
|
-
Ht = O(
|
|
31254
|
-
} else Ce === "Delete" && !y(
|
|
31255
|
-
Ht !== De && D(he, Ht,
|
|
31263
|
+
Ht = O(Me, De, Nt), Ht !== De && de.preventDefault();
|
|
31264
|
+
} else Ce === "Delete" && !y(Me[De]) ? Ht = O(Me, De, "right") : Ce === "Backspace" && !y(Me[De]) && (Ht = O(Me, De, "left"));
|
|
31265
|
+
Ht !== De && D(he, Ht, Me), p(de), J(he, Pt);
|
|
31256
31266
|
}, pe = function(de) {
|
|
31257
31267
|
var he = de.target, Ce = function() {
|
|
31258
|
-
var ke = he.selectionStart, Je = he.selectionEnd,
|
|
31259
|
-
if (
|
|
31260
|
-
var De = O(
|
|
31261
|
-
De !== ke && D(he, De,
|
|
31268
|
+
var ke = he.selectionStart, Je = he.selectionEnd, Me = he.value;
|
|
31269
|
+
if (Me === void 0 && (Me = ""), ke === Je) {
|
|
31270
|
+
var De = O(Me, ke);
|
|
31271
|
+
De !== ke && D(he, De, Me);
|
|
31262
31272
|
}
|
|
31263
31273
|
};
|
|
31264
31274
|
Ce(), requestAnimationFrame(function() {
|
|
@@ -31268,10 +31278,10 @@ function _B(e) {
|
|
|
31268
31278
|
de.persist && de.persist();
|
|
31269
31279
|
var he = de.target, Ce = de.currentTarget;
|
|
31270
31280
|
M.current = he, z.current.focusTimeout = setTimeout(function() {
|
|
31271
|
-
var ke = he.selectionStart, Je = he.selectionEnd,
|
|
31272
|
-
|
|
31273
|
-
var De = O(
|
|
31274
|
-
De !== ke && !(ke === 0 && Je ===
|
|
31281
|
+
var ke = he.selectionStart, Je = he.selectionEnd, Me = he.value;
|
|
31282
|
+
Me === void 0 && (Me = "");
|
|
31283
|
+
var De = O(Me, ke);
|
|
31284
|
+
De !== ke && !(ke === 0 && Je === Me.length) && D(he, De, Me), g(Object.assign(Object.assign({}, de), { currentTarget: Ce }));
|
|
31275
31285
|
}, 0);
|
|
31276
31286
|
}, qe = function(de) {
|
|
31277
31287
|
M.current = null, clearTimeout(z.current.focusTimeout), clearTimeout(z.current.setCaretTimeout), v(de);
|
|
@@ -31460,7 +31470,7 @@ const $B = U.forwardRef(function(t, n) {
|
|
|
31460
31470
|
const a = t, { onChange: r, isAllowed: i } = a, o = Xe(a, ["onChange", "isAllowed"]);
|
|
31461
31471
|
return /* @__PURE__ */ u.jsx(
|
|
31462
31472
|
jB,
|
|
31463
|
-
|
|
31473
|
+
K(j({}, o), {
|
|
31464
31474
|
getInputRef: n,
|
|
31465
31475
|
onValueChange: (s) => {
|
|
31466
31476
|
r({
|
|
@@ -31531,7 +31541,7 @@ const $B = U.forwardRef(function(t, n) {
|
|
|
31531
31541
|
const t = new jb();
|
|
31532
31542
|
return t.label = e.name, t.value = e.name, t.id = e.id, t.group = NB(e.id), e.birthDate ? t.logo = e.assets && e.assets.headshot && e.assets.headshot : t.logo = e.assets && e.assets.logo && e.assets.logo, t.countryName = e.country.name, t.countryFlag = e.country.assets && e.country.assets.flag ? e.country.assets.flag : dt.country, t;
|
|
31533
31543
|
}, UB = 10, VB = (e) => {
|
|
31534
|
-
const [t, n] =
|
|
31544
|
+
const [t, n] = Q([]), [r, i] = Q([]), [o, a] = Q(!1), [s, l] = Q(""), [c, d] = Q(!1), { sdk: f } = xt(), h = () => d(!c), p = (v, C) => {
|
|
31535
31545
|
n(C), e.onChangeTags(C);
|
|
31536
31546
|
};
|
|
31537
31547
|
be(() => {
|
|
@@ -31597,7 +31607,7 @@ const $B = U.forwardRef(function(t, n) {
|
|
|
31597
31607
|
groupBy: (v) => v.group + "s",
|
|
31598
31608
|
value: t != null ? t : [],
|
|
31599
31609
|
renderTags: g,
|
|
31600
|
-
renderOption: (v, C) => /* @__PURE__ */ u.jsx(Nr,
|
|
31610
|
+
renderOption: (v, C) => /* @__PURE__ */ u.jsx(Nr, K(j({}, v), { children: /* @__PURE__ */ u.jsx(Ln, { option: C }) }))
|
|
31601
31611
|
}
|
|
31602
31612
|
),
|
|
31603
31613
|
/* @__PURE__ */ u.jsx(gt, { showToast: c, message: e.labels.getFootballEntitiesErrorMessage, color: "danger", hideToast: h })
|
|
@@ -31679,7 +31689,7 @@ const $B = U.forwardRef(function(t, n) {
|
|
|
31679
31689
|
main: "",
|
|
31680
31690
|
mobile: ""
|
|
31681
31691
|
}, YB = (e) => {
|
|
31682
|
-
const [t, n] =
|
|
31692
|
+
const [t, n] = Q(!1), r = GB(e.defaultValue), i = (a, s) => {
|
|
31683
31693
|
r[s] = a, e.onChange(r);
|
|
31684
31694
|
}, o = (a) => {
|
|
31685
31695
|
r[a] = "", e.onChange(r);
|
|
@@ -31726,7 +31736,7 @@ const $B = U.forwardRef(function(t, n) {
|
|
|
31726
31736
|
/* @__PURE__ */ u.jsx(Ye, { children: n.authRequirement }),
|
|
31727
31737
|
/* @__PURE__ */ u.jsx(
|
|
31728
31738
|
qt,
|
|
31729
|
-
|
|
31739
|
+
K(j({
|
|
31730
31740
|
value: e,
|
|
31731
31741
|
size: "sm",
|
|
31732
31742
|
slotProps: { button: { sx: { whiteSpace: "nowrap" } } },
|
|
@@ -32004,7 +32014,7 @@ function nN(e) {
|
|
|
32004
32014
|
}, n);
|
|
32005
32015
|
}
|
|
32006
32016
|
function rN() {
|
|
32007
|
-
const [e, t] =
|
|
32017
|
+
const [e, t] = Q("");
|
|
32008
32018
|
return {
|
|
32009
32019
|
announce: Be((r) => {
|
|
32010
32020
|
r != null && t(r);
|
|
@@ -32022,7 +32032,7 @@ function iN(e) {
|
|
|
32022
32032
|
}, [e, t]);
|
|
32023
32033
|
}
|
|
32024
32034
|
function oN() {
|
|
32025
|
-
const [e] =
|
|
32035
|
+
const [e] = Q(() => /* @__PURE__ */ new Set()), t = Be((r) => (e.add(r), () => e.delete(r)), [e]);
|
|
32026
32036
|
return [Be((r) => {
|
|
32027
32037
|
let {
|
|
32028
32038
|
type: i,
|
|
@@ -32078,7 +32088,7 @@ function lN(e) {
|
|
|
32078
32088
|
const {
|
|
32079
32089
|
announce: o,
|
|
32080
32090
|
announcement: a
|
|
32081
|
-
} = rN(), s = Ko("DndLiveRegion"), [l, c] =
|
|
32091
|
+
} = rN(), s = Ko("DndLiveRegion"), [l, c] = Q(!1);
|
|
32082
32092
|
if (be(() => {
|
|
32083
32093
|
c(!0);
|
|
32084
32094
|
}, []), iN(Ae(() => ({
|
|
@@ -32291,7 +32301,7 @@ const gN = (e) => {
|
|
|
32291
32301
|
return i.sort(fN);
|
|
32292
32302
|
};
|
|
32293
32303
|
function mN(e, t, n) {
|
|
32294
|
-
return
|
|
32304
|
+
return K(j({}, e), {
|
|
32295
32305
|
scaleX: t && n ? t.width / n.width : 1,
|
|
32296
32306
|
scaleY: t && n ? t.height / n.height : 1
|
|
32297
32307
|
});
|
|
@@ -32306,7 +32316,7 @@ function vN(e) {
|
|
|
32306
32316
|
return function(n) {
|
|
32307
32317
|
for (var r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), o = 1; o < r; o++)
|
|
32308
32318
|
i[o - 1] = arguments[o];
|
|
32309
|
-
return i.reduce((a, s) =>
|
|
32319
|
+
return i.reduce((a, s) => K(j({}, a), {
|
|
32310
32320
|
top: a.top + e * s.y,
|
|
32311
32321
|
bottom: a.bottom + e * s.y,
|
|
32312
32322
|
left: a.left + e * s.x,
|
|
@@ -32627,19 +32637,19 @@ const oy = {
|
|
|
32627
32637
|
} = t;
|
|
32628
32638
|
switch (e.code) {
|
|
32629
32639
|
case Re.Right:
|
|
32630
|
-
return
|
|
32640
|
+
return K(j({}, n), {
|
|
32631
32641
|
x: n.x + 25
|
|
32632
32642
|
});
|
|
32633
32643
|
case Re.Left:
|
|
32634
|
-
return
|
|
32644
|
+
return K(j({}, n), {
|
|
32635
32645
|
x: n.x - 25
|
|
32636
32646
|
});
|
|
32637
32647
|
case Re.Down:
|
|
32638
|
-
return
|
|
32648
|
+
return K(j({}, n), {
|
|
32639
32649
|
y: n.y + 25
|
|
32640
32650
|
});
|
|
32641
32651
|
case Re.Up:
|
|
32642
|
-
return
|
|
32652
|
+
return K(j({}, n), {
|
|
32643
32653
|
y: n.y - 25
|
|
32644
32654
|
});
|
|
32645
32655
|
}
|
|
@@ -33186,7 +33196,7 @@ function UN(e, t) {
|
|
|
33186
33196
|
dependencies: r,
|
|
33187
33197
|
config: i
|
|
33188
33198
|
} = t;
|
|
33189
|
-
const [o, a] =
|
|
33199
|
+
const [o, a] = Q(null), {
|
|
33190
33200
|
frequency: s,
|
|
33191
33201
|
measure: l,
|
|
33192
33202
|
strategy: c
|
|
@@ -33294,7 +33304,7 @@ function WN(e) {
|
|
|
33294
33304
|
}
|
|
33295
33305
|
function op(e, t, n) {
|
|
33296
33306
|
t === void 0 && (t = WN);
|
|
33297
|
-
const [r, i] =
|
|
33307
|
+
const [r, i] = Q(null);
|
|
33298
33308
|
function o() {
|
|
33299
33309
|
i((l) => {
|
|
33300
33310
|
if (!e)
|
|
@@ -33343,7 +33353,7 @@ function YN(e) {
|
|
|
33343
33353
|
}, [e]), n;
|
|
33344
33354
|
}
|
|
33345
33355
|
function KN(e) {
|
|
33346
|
-
const [t, n] =
|
|
33356
|
+
const [t, n] = Q(null), r = Te(e), i = Be((o) => {
|
|
33347
33357
|
const a = rc(o.target);
|
|
33348
33358
|
a && n((s) => s ? (s.set(a, Gc(a)), new Map(s)) : null);
|
|
33349
33359
|
}, []);
|
|
@@ -33427,7 +33437,7 @@ function ay(e) {
|
|
|
33427
33437
|
const lp = [];
|
|
33428
33438
|
function JN(e, t) {
|
|
33429
33439
|
t === void 0 && (t = Fi);
|
|
33430
|
-
const [n] = e, r = ay(n ? Vt(n) : null), [i, o] =
|
|
33440
|
+
const [n] = e, r = ay(n ? Vt(n) : null), [i, o] = Q(lp);
|
|
33431
33441
|
function a() {
|
|
33432
33442
|
o(() => e.length ? e.map((l) => ty(l) ? r : new Cd(t(l), l)) : lp);
|
|
33433
33443
|
}
|
|
@@ -33450,14 +33460,14 @@ function XN(e) {
|
|
|
33450
33460
|
let {
|
|
33451
33461
|
measure: t
|
|
33452
33462
|
} = e;
|
|
33453
|
-
const [n, r] =
|
|
33463
|
+
const [n, r] = Q(null), i = Be((c) => {
|
|
33454
33464
|
for (const {
|
|
33455
33465
|
target: d
|
|
33456
33466
|
} of c)
|
|
33457
33467
|
if (Go(d)) {
|
|
33458
33468
|
r((f) => {
|
|
33459
33469
|
const h = t(d);
|
|
33460
|
-
return f ?
|
|
33470
|
+
return f ? K(j({}, f), {
|
|
33461
33471
|
width: h.width,
|
|
33462
33472
|
height: h.height
|
|
33463
33473
|
}) : h;
|
|
@@ -33577,15 +33587,15 @@ function nF() {
|
|
|
33577
33587
|
function rF(e, t) {
|
|
33578
33588
|
switch (t.type) {
|
|
33579
33589
|
case Ct.DragStart:
|
|
33580
|
-
return
|
|
33581
|
-
draggable:
|
|
33590
|
+
return K(j({}, e), {
|
|
33591
|
+
draggable: K(j({}, e.draggable), {
|
|
33582
33592
|
initialCoordinates: t.initialCoordinates,
|
|
33583
33593
|
active: t.active
|
|
33584
33594
|
})
|
|
33585
33595
|
});
|
|
33586
33596
|
case Ct.DragMove:
|
|
33587
|
-
return e.draggable.active == null ? e :
|
|
33588
|
-
draggable:
|
|
33597
|
+
return e.draggable.active == null ? e : K(j({}, e), {
|
|
33598
|
+
draggable: K(j({}, e.draggable), {
|
|
33589
33599
|
translate: {
|
|
33590
33600
|
x: t.coordinates.x - e.draggable.initialCoordinates.x,
|
|
33591
33601
|
y: t.coordinates.y - e.draggable.initialCoordinates.y
|
|
@@ -33594,8 +33604,8 @@ function rF(e, t) {
|
|
|
33594
33604
|
});
|
|
33595
33605
|
case Ct.DragEnd:
|
|
33596
33606
|
case Ct.DragCancel:
|
|
33597
|
-
return
|
|
33598
|
-
draggable:
|
|
33607
|
+
return K(j({}, e), {
|
|
33608
|
+
draggable: K(j({}, e.draggable), {
|
|
33599
33609
|
active: null,
|
|
33600
33610
|
initialCoordinates: {
|
|
33601
33611
|
x: 0,
|
|
@@ -33613,8 +33623,8 @@ function rF(e, t) {
|
|
|
33613
33623
|
} = t, {
|
|
33614
33624
|
id: r
|
|
33615
33625
|
} = n, i = new go(e.droppable.containers);
|
|
33616
|
-
return i.set(r, n),
|
|
33617
|
-
droppable:
|
|
33626
|
+
return i.set(r, n), K(j({}, e), {
|
|
33627
|
+
droppable: K(j({}, e.droppable), {
|
|
33618
33628
|
containers: i
|
|
33619
33629
|
})
|
|
33620
33630
|
});
|
|
@@ -33628,10 +33638,10 @@ function rF(e, t) {
|
|
|
33628
33638
|
if (!o || r !== o.key)
|
|
33629
33639
|
return e;
|
|
33630
33640
|
const a = new go(e.droppable.containers);
|
|
33631
|
-
return a.set(n,
|
|
33641
|
+
return a.set(n, K(j({}, o), {
|
|
33632
33642
|
disabled: i
|
|
33633
|
-
})),
|
|
33634
|
-
droppable:
|
|
33643
|
+
})), K(j({}, e), {
|
|
33644
|
+
droppable: K(j({}, e.droppable), {
|
|
33635
33645
|
containers: a
|
|
33636
33646
|
})
|
|
33637
33647
|
});
|
|
@@ -33644,8 +33654,8 @@ function rF(e, t) {
|
|
|
33644
33654
|
if (!i || r !== i.key)
|
|
33645
33655
|
return e;
|
|
33646
33656
|
const o = new go(e.droppable.containers);
|
|
33647
|
-
return o.delete(n),
|
|
33648
|
-
droppable:
|
|
33657
|
+
return o.delete(n), K(j({}, e), {
|
|
33658
|
+
droppable: K(j({}, e.droppable), {
|
|
33649
33659
|
containers: o
|
|
33650
33660
|
})
|
|
33651
33661
|
});
|
|
@@ -33745,7 +33755,7 @@ function aF(e) {
|
|
|
33745
33755
|
}
|
|
33746
33756
|
}, [t, a, s, r, n]);
|
|
33747
33757
|
}
|
|
33748
|
-
const ul = /* @__PURE__ */ jn(
|
|
33758
|
+
const ul = /* @__PURE__ */ jn(K(j({}, In), {
|
|
33749
33759
|
scaleX: 1,
|
|
33750
33760
|
scaleY: 1
|
|
33751
33761
|
}));
|
|
@@ -33774,7 +33784,7 @@ const dy = /* @__PURE__ */ Fy(function(t) {
|
|
|
33774
33784
|
"measuring",
|
|
33775
33785
|
"modifiers"
|
|
33776
33786
|
]);
|
|
33777
|
-
const g = zy(rF, void 0, nF), [v, C] = g, [w, y] = oN(), [x, b] =
|
|
33787
|
+
const g = zy(rF, void 0, nF), [v, C] = g, [w, y] = oN(), [x, b] = Q(sr.Uninitialized), I = x === sr.Initialized, {
|
|
33778
33788
|
draggable: {
|
|
33779
33789
|
active: A,
|
|
33780
33790
|
nodes: E,
|
|
@@ -33794,7 +33804,7 @@ const dy = /* @__PURE__ */ Fy(function(t) {
|
|
|
33794
33804
|
data: (St = $ == null ? void 0 : $.data) != null ? St : eF,
|
|
33795
33805
|
rect: S
|
|
33796
33806
|
} : null;
|
|
33797
|
-
}, [A, $]), W = Te(null), [B, L] =
|
|
33807
|
+
}, [A, $]), W = Te(null), [B, L] = Q(null), [M, z] = Q(null), Y = ko(m, Object.values(m)), Z = Ko("DndDescribedBy", a), D = Ae(() => H.getEnabled(), [H]), O = oF(h), {
|
|
33798
33808
|
droppableRects: N,
|
|
33799
33809
|
measureDroppableContainers: F,
|
|
33800
33810
|
measuringScheduled: te
|
|
@@ -33825,7 +33835,7 @@ const dy = /* @__PURE__ */ Fy(function(t) {
|
|
|
33825
33835
|
scrollAdjustedTranslate: null
|
|
33826
33836
|
}), qe = H.getNodeFor((n = _e.current.over) == null ? void 0 : n.id), kt = XN({
|
|
33827
33837
|
measure: O.dragOverlay.measure
|
|
33828
|
-
}), ut = (r = kt.nodeRef.current) != null ? r : ae, Ot = I ? (i = kt.rect) != null ? i : ne : null, de = !!(kt.nodeRef.current && kt.rect), he = GN(de ? null : ne), Ce = ay(ut ? Vt(ut) : null), ke = YN(I ? qe != null ? qe : ae : null), Je = JN(ke),
|
|
33838
|
+
}), ut = (r = kt.nodeRef.current) != null ? r : ae, Ot = I ? (i = kt.rect) != null ? i : ne : null, de = !!(kt.nodeRef.current && kt.rect), he = GN(de ? null : ne), Ce = ay(ut ? Vt(ut) : null), ke = YN(I ? qe != null ? qe : ae : null), Je = JN(ke), Me = uy(p, {
|
|
33829
33839
|
transform: {
|
|
33830
33840
|
x: k.x - he.x,
|
|
33831
33841
|
y: k.y - he.y,
|
|
@@ -33842,13 +33852,13 @@ const dy = /* @__PURE__ */ Fy(function(t) {
|
|
|
33842
33852
|
scrollableAncestors: ke,
|
|
33843
33853
|
scrollableAncestorRects: Je,
|
|
33844
33854
|
windowRect: Ce
|
|
33845
|
-
}), De = oe ? Ii(oe, k) : null, Pt = KN(ke), Dt = sp(Pt), Ht = sp(Pt, [ne]), Nt = Ii(
|
|
33855
|
+
}), De = oe ? Ii(oe, k) : null, Pt = KN(ke), Dt = sp(Pt), Ht = sp(Pt, [ne]), Nt = Ii(Me, Dt), Zt = Ot ? bN(Ot, Me) : null, or = V && Zt ? f({
|
|
33846
33856
|
active: V,
|
|
33847
33857
|
collisionRect: Zt,
|
|
33848
33858
|
droppableRects: N,
|
|
33849
33859
|
droppableContainers: D,
|
|
33850
33860
|
pointerCoordinates: De
|
|
33851
|
-
}) : null, qo = Qb(or, "id"), [An, zi] =
|
|
33861
|
+
}) : null, qo = Qb(or, "id"), [An, zi] = Q(null), hl = de ? Me : Ii(Me, Ht), pl = mN(hl, (o = An == null ? void 0 : An.rect) != null ? o : null, ne), Ue = Te(null), Gr = Be(
|
|
33852
33862
|
(St, _) => {
|
|
33853
33863
|
let {
|
|
33854
33864
|
sensor: R,
|
|
@@ -33872,15 +33882,15 @@ const dy = /* @__PURE__ */ Fy(function(t) {
|
|
|
33872
33882
|
return;
|
|
33873
33883
|
const {
|
|
33874
33884
|
onDragAbort: fe
|
|
33875
|
-
} = Y.current,
|
|
33885
|
+
} = Y.current, me = {
|
|
33876
33886
|
id: ue
|
|
33877
33887
|
};
|
|
33878
|
-
fe == null || fe(
|
|
33888
|
+
fe == null || fe(me), w({
|
|
33879
33889
|
type: "onDragAbort",
|
|
33880
|
-
event:
|
|
33890
|
+
event: me
|
|
33881
33891
|
});
|
|
33882
33892
|
},
|
|
33883
|
-
onPending(ue, Se, fe,
|
|
33893
|
+
onPending(ue, Se, fe, me) {
|
|
33884
33894
|
if (!E.get(ue))
|
|
33885
33895
|
return;
|
|
33886
33896
|
const {
|
|
@@ -33889,7 +33899,7 @@ const dy = /* @__PURE__ */ Fy(function(t) {
|
|
|
33889
33899
|
id: ue,
|
|
33890
33900
|
constraint: Se,
|
|
33891
33901
|
initialCoordinates: fe,
|
|
33892
|
-
offset:
|
|
33902
|
+
offset: me
|
|
33893
33903
|
};
|
|
33894
33904
|
Mt == null || Mt(Ze), w({
|
|
33895
33905
|
type: "onDragPending",
|
|
@@ -33904,7 +33914,7 @@ const dy = /* @__PURE__ */ Fy(function(t) {
|
|
|
33904
33914
|
if (!fe)
|
|
33905
33915
|
return;
|
|
33906
33916
|
const {
|
|
33907
|
-
onDragStart:
|
|
33917
|
+
onDragStart: me
|
|
33908
33918
|
} = Y.current, $e = {
|
|
33909
33919
|
activatorEvent: re,
|
|
33910
33920
|
active: {
|
|
@@ -33914,7 +33924,7 @@ const dy = /* @__PURE__ */ Fy(function(t) {
|
|
|
33914
33924
|
}
|
|
33915
33925
|
};
|
|
33916
33926
|
Ji(() => {
|
|
33917
|
-
|
|
33927
|
+
me == null || me($e), b(sr.Initializing), C({
|
|
33918
33928
|
type: Ct.DragStart,
|
|
33919
33929
|
initialCoordinates: ue,
|
|
33920
33930
|
active: Se
|
|
@@ -33939,7 +33949,7 @@ const dy = /* @__PURE__ */ Fy(function(t) {
|
|
|
33939
33949
|
return T(this, null, function* () {
|
|
33940
33950
|
const {
|
|
33941
33951
|
active: fe,
|
|
33942
|
-
collisions:
|
|
33952
|
+
collisions: me,
|
|
33943
33953
|
over: $e,
|
|
33944
33954
|
scrollAdjustedTranslate: Mt
|
|
33945
33955
|
} = _e.current;
|
|
@@ -33951,7 +33961,7 @@ const dy = /* @__PURE__ */ Fy(function(t) {
|
|
|
33951
33961
|
Ze = {
|
|
33952
33962
|
activatorEvent: re,
|
|
33953
33963
|
active: fe,
|
|
33954
|
-
collisions:
|
|
33964
|
+
collisions: me,
|
|
33955
33965
|
delta: Mt,
|
|
33956
33966
|
over: $e
|
|
33957
33967
|
}, ue === Ct.DragEnd && typeof yn == "function" && (yield Promise.resolve(yn(Ze))) && (ue = Ct.DragCancel);
|
|
@@ -34080,7 +34090,7 @@ const dy = /* @__PURE__ */ Fy(function(t) {
|
|
|
34080
34090
|
initial: Ot,
|
|
34081
34091
|
translated: Zt
|
|
34082
34092
|
};
|
|
34083
|
-
}, [V, ae, or, Zt, E, ut, Ot, N, H, An, ke, Nt]), $N(
|
|
34093
|
+
}, [V, ae, or, Zt, E, ut, Ot, N, H, An, ke, Nt]), $N(K(j({}, J), {
|
|
34084
34094
|
delta: k,
|
|
34085
34095
|
draggingRect: Zt,
|
|
34086
34096
|
pointerCoordinates: De,
|
|
@@ -34128,12 +34138,12 @@ const dy = /* @__PURE__ */ Fy(function(t) {
|
|
|
34128
34138
|
value: pl
|
|
34129
34139
|
}, c)), Le.createElement(iF, {
|
|
34130
34140
|
disabled: (s == null ? void 0 : s.restoreFocus) === !1
|
|
34131
|
-
})), Le.createElement(lN,
|
|
34141
|
+
})), Le.createElement(lN, K(j({}, s), {
|
|
34132
34142
|
hiddenTextDescribedById: Z
|
|
34133
34143
|
})));
|
|
34134
34144
|
function bn() {
|
|
34135
34145
|
const St = (B == null ? void 0 : B.autoScrollEnabled) === !1, _ = typeof l == "object" ? l.enabled === !1 : l === !1, R = I && !St && !_;
|
|
34136
|
-
return typeof l == "object" ?
|
|
34146
|
+
return typeof l == "object" ? K(j({}, l), {
|
|
34137
34147
|
enabled: R
|
|
34138
34148
|
}) : {
|
|
34139
34149
|
enabled: R
|
|
@@ -34279,7 +34289,7 @@ function hF(e) {
|
|
|
34279
34289
|
animation: t,
|
|
34280
34290
|
children: n
|
|
34281
34291
|
} = e;
|
|
34282
|
-
const [r, i] =
|
|
34292
|
+
const [r, i] = Q(null), [o, a] = Q(null), s = es(n);
|
|
34283
34293
|
return !n && !r && s && i(s), wn(() => {
|
|
34284
34294
|
if (!o)
|
|
34285
34295
|
return;
|
|
@@ -34328,10 +34338,10 @@ const mF = {
|
|
|
34328
34338
|
} = e;
|
|
34329
34339
|
if (!s)
|
|
34330
34340
|
return null;
|
|
34331
|
-
const f = i ? c :
|
|
34341
|
+
const f = i ? c : K(j({}, c), {
|
|
34332
34342
|
scaleX: 1,
|
|
34333
34343
|
scaleY: 1
|
|
34334
|
-
}), h = j(
|
|
34344
|
+
}), h = j(K(j({}, mF), {
|
|
34335
34345
|
width: s.width,
|
|
34336
34346
|
height: s.height,
|
|
34337
34347
|
top: s.top,
|
|
@@ -34460,7 +34470,7 @@ function wF(e) {
|
|
|
34460
34470
|
}, h = j({
|
|
34461
34471
|
x: l.x - d.x,
|
|
34462
34472
|
y: l.y - d.y
|
|
34463
|
-
}, f), p = i(
|
|
34473
|
+
}, f), p = i(K(j({}, c), {
|
|
34464
34474
|
active: a,
|
|
34465
34475
|
dragOverlay: s,
|
|
34466
34476
|
transform: {
|
|
@@ -34687,7 +34697,7 @@ function OF(e) {
|
|
|
34687
34697
|
node: r,
|
|
34688
34698
|
rect: i
|
|
34689
34699
|
} = e;
|
|
34690
|
-
const [o, a] =
|
|
34700
|
+
const [o, a] = Q(null), s = Te(n);
|
|
34691
34701
|
return wn(() => {
|
|
34692
34702
|
if (!t && n !== s.current && r.current) {
|
|
34693
34703
|
const l = i.current;
|
|
@@ -34843,7 +34853,7 @@ function yy(e) {
|
|
|
34843
34853
|
)
|
|
34844
34854
|
return DF;
|
|
34845
34855
|
if (!(F && !ol(S) || !c) && (O || _e))
|
|
34846
|
-
return nr.Transition.toString(
|
|
34856
|
+
return nr.Transition.toString(K(j({}, c), {
|
|
34847
34857
|
property: by
|
|
34848
34858
|
}));
|
|
34849
34859
|
}
|
|
@@ -34943,7 +34953,7 @@ const wy = Qe(/* @__PURE__ */ u.jsx("path", {
|
|
|
34943
34953
|
const { attributes: e, listeners: t, ref: n } = Ut(fl);
|
|
34944
34954
|
return /* @__PURE__ */ u.jsx(
|
|
34945
34955
|
Fe,
|
|
34946
|
-
|
|
34956
|
+
K(j(j({
|
|
34947
34957
|
sx: {
|
|
34948
34958
|
backgroundColor: "transparent",
|
|
34949
34959
|
color: "#919eab",
|
|
@@ -34987,7 +34997,7 @@ const wy = Qe(/* @__PURE__ */ u.jsx("path", {
|
|
|
34987
34997
|
ref: c,
|
|
34988
34998
|
style: m,
|
|
34989
34999
|
startAction: i ? /* @__PURE__ */ u.jsx($F, {}) : /* @__PURE__ */ u.jsx(u.Fragment, {}),
|
|
34990
|
-
endAction: i ? /* @__PURE__ */ u.jsx(
|
|
35000
|
+
endAction: i ? /* @__PURE__ */ u.jsx(Oe, { title: n, children: /* @__PURE__ */ u.jsx(Fe, { variant: "outlined", color: "danger", onClick: r, sx: { ml: "auto", p: 0.5 }, size: "sm", children: /* @__PURE__ */ u.jsx(Mp, {}) }) }) : /* @__PURE__ */ u.jsx(u.Fragment, {}),
|
|
34991
35001
|
sx: { p: 2, borderRadius: "sm" },
|
|
34992
35002
|
children: e
|
|
34993
35003
|
}
|
|
@@ -35001,7 +35011,7 @@ const wy = Qe(/* @__PURE__ */ u.jsx("path", {
|
|
|
35001
35011
|
}
|
|
35002
35012
|
})
|
|
35003
35013
|
}, Iy = ({ children: e }) => /* @__PURE__ */ u.jsx(SF, { dropAnimation: BF, children: e }), NF = ({ entities: e = [], labels: t, disabled: n, setEntities: r, removeItem: i }) => {
|
|
35004
|
-
const [o, a] =
|
|
35014
|
+
const [o, a] = Q(null), s = Ae(() => e.find((c) => c.id === (o == null ? void 0 : o.id)), [o, e]), l = Kb(
|
|
35005
35015
|
rs(ll),
|
|
35006
35016
|
rs(sl, {
|
|
35007
35017
|
coordinateGetter: xy
|
|
@@ -35034,7 +35044,7 @@ const wy = Qe(/* @__PURE__ */ u.jsx("path", {
|
|
|
35034
35044
|
tooltipTitle: t.removeEntity,
|
|
35035
35045
|
useDraggable: !n,
|
|
35036
35046
|
children: [
|
|
35037
|
-
/* @__PURE__ */ u.jsx(
|
|
35047
|
+
/* @__PURE__ */ u.jsx(ge, { ml: n ? 0 : 2.5, children: c.title || c.name }),
|
|
35038
35048
|
c.type && /* @__PURE__ */ u.jsx(Xt, { color: tB(c.type), sx: { marginLeft: 2, marginRight: 4 }, children: nB(c.type) })
|
|
35039
35049
|
]
|
|
35040
35050
|
},
|
|
@@ -35064,9 +35074,9 @@ const wy = Qe(/* @__PURE__ */ u.jsx("path", {
|
|
|
35064
35074
|
onChange: a
|
|
35065
35075
|
}) => /* @__PURE__ */ u.jsxs(Ge, { size: r, disabled: i, children: [
|
|
35066
35076
|
/* @__PURE__ */ u.jsx(Ye, { children: e.itemsPerPage }),
|
|
35067
|
-
/* @__PURE__ */ u.jsx(qt, { value: t, size: r, onChange: a, sx:
|
|
35077
|
+
/* @__PURE__ */ u.jsx(qt, { value: t, size: r, onChange: a, sx: K(j({}, o), { minHeight: "37px" }), children: n.map((s, l) => /* @__PURE__ */ u.jsx(Rt, { value: s, children: s }, `items-per-page-${s}-${l}`)) })
|
|
35068
35078
|
] }), zF = (e, t) => {
|
|
35069
|
-
const [n, r] =
|
|
35079
|
+
const [n, r] = Q(null), { sdk: i } = xt(), o = () => T(void 0, null, function* () {
|
|
35070
35080
|
let s = [];
|
|
35071
35081
|
if (!e) {
|
|
35072
35082
|
r(s);
|
|
@@ -35199,21 +35209,21 @@ const wy = Qe(/* @__PURE__ */ u.jsx("path", {
|
|
|
35199
35209
|
}), "Poll"), KF = (e) => {
|
|
35200
35210
|
switch (e.entityType) {
|
|
35201
35211
|
case "top_x":
|
|
35202
|
-
return /* @__PURE__ */ u.jsx(
|
|
35212
|
+
return /* @__PURE__ */ u.jsx(Oe, { title: "Top X", children: /* @__PURE__ */ u.jsx(VF, {}) });
|
|
35203
35213
|
case "match_quiz":
|
|
35204
|
-
return /* @__PURE__ */ u.jsx(
|
|
35214
|
+
return /* @__PURE__ */ u.jsx(Oe, { title: "Match Quiz", children: /* @__PURE__ */ u.jsx(HF, {}) });
|
|
35205
35215
|
case "template":
|
|
35206
|
-
return /* @__PURE__ */ u.jsx(
|
|
35216
|
+
return /* @__PURE__ */ u.jsx(Oe, { title: "Leaderboard Templates", children: /* @__PURE__ */ u.jsx(bl, {}) });
|
|
35207
35217
|
case "classic_quiz":
|
|
35208
|
-
return /* @__PURE__ */ u.jsx(
|
|
35218
|
+
return /* @__PURE__ */ u.jsx(Oe, { title: "Classic Quiz", children: /* @__PURE__ */ u.jsx(WF, {}) });
|
|
35209
35219
|
case "either_or":
|
|
35210
|
-
return /* @__PURE__ */ u.jsx(
|
|
35220
|
+
return /* @__PURE__ */ u.jsx(Oe, { title: "Either/Or", children: /* @__PURE__ */ u.jsx(GF, {}) });
|
|
35211
35221
|
case "poll":
|
|
35212
|
-
return /* @__PURE__ */ u.jsx(
|
|
35222
|
+
return /* @__PURE__ */ u.jsx(Oe, { title: "Poll", children: /* @__PURE__ */ u.jsx(YF, {}) });
|
|
35213
35223
|
case "bracket":
|
|
35214
|
-
return /* @__PURE__ */ u.jsx(
|
|
35224
|
+
return /* @__PURE__ */ u.jsx(Oe, { title: "Custom Bracket Game", children: /* @__PURE__ */ u.jsx(bl, {}) });
|
|
35215
35225
|
case "standing":
|
|
35216
|
-
return /* @__PURE__ */ u.jsx(
|
|
35226
|
+
return /* @__PURE__ */ u.jsx(Oe, { title: "Custom Standings Game", children: /* @__PURE__ */ u.jsx(bl, {}) });
|
|
35217
35227
|
default:
|
|
35218
35228
|
return null;
|
|
35219
35229
|
}
|
|
@@ -35234,9 +35244,9 @@ const wy = Qe(/* @__PURE__ */ u.jsx("path", {
|
|
|
35234
35244
|
justifyContent: "space-between"
|
|
35235
35245
|
},
|
|
35236
35246
|
children: [
|
|
35237
|
-
/* @__PURE__ */ u.jsx(
|
|
35247
|
+
/* @__PURE__ */ u.jsx(ge, { fontSize: "sm", startDecorator: /* @__PURE__ */ u.jsx(KF, { entityType: e.type }), children: e.name }),
|
|
35238
35248
|
/* @__PURE__ */ u.jsx(le, { display: { xs: "none", md: "block" }, children: /* @__PURE__ */ u.jsx(UF, { status: e.status }) }),
|
|
35239
|
-
/* @__PURE__ */ u.jsx(le, { children: /* @__PURE__ */ u.jsx(
|
|
35249
|
+
/* @__PURE__ */ u.jsx(le, { children: /* @__PURE__ */ u.jsx(Oe, { title: t, children: /* @__PURE__ */ u.jsx(an, { onClick: () => n(e.id, e.relationship), color: "danger", size: "sm", children: /* @__PURE__ */ u.jsx(iu, {}) }) }) })
|
|
35240
35250
|
]
|
|
35241
35251
|
}
|
|
35242
35252
|
) })
|
|
@@ -35397,7 +35407,7 @@ const wy = Qe(/* @__PURE__ */ u.jsx("path", {
|
|
|
35397
35407
|
}
|
|
35398
35408
|
n(o);
|
|
35399
35409
|
}), JF = ["top_x", "match_quiz", "template", "classic_quiz", "poll", "either_or", "bracket", "standing"], XF = ["relatedTo", "blocks", "blockedBy", "bonusPointsGame", "nextInSeries", "previousInSeries"], ZF = (/* @__PURE__ */ new Map()).set("template", "Leaderboard Templates").set("classic_quiz", "Classic Quiz").set("either_or", "Either/Or").set("match_quiz", "Match Quiz").set("top_x", "Top X").set("bracket", "Custom Bracket Game").set("standing", "Custom Standing Game").set("poll", "Poll"), fp = (/* @__PURE__ */ new Map()).set("relatedTo", "Related to").set("blocks", "Blocks").set("blockedBy", "Blocked by").set("nextInSeries", "Next in series").set("previousInSeries", "Previous in series").set("bonusPointsGame", "Bonus points game"), ez = ({ defaultValue: e = [], onChange: t, labels: n }) => {
|
|
35400
|
-
const [r, i] =
|
|
35410
|
+
const [r, i] = Q([]), [o, a] = Q(""), [s, l] = Q(null), [c, d] = Q("relatedTo"), [f, h] = Q(!1), p = () => h(!f), m = zF(s, p), { sdk: g } = xt();
|
|
35401
35411
|
be(() => (e.length > 0 && qF(g, e, i, p), () => {
|
|
35402
35412
|
i([]), a(""), l(null), d("relatedTo");
|
|
35403
35413
|
}), []);
|
|
@@ -35433,7 +35443,7 @@ const wy = Qe(/* @__PURE__ */ u.jsx("path", {
|
|
|
35433
35443
|
), y = Object.keys(w).sort();
|
|
35434
35444
|
return /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
|
35435
35445
|
y.map((x) => /* @__PURE__ */ u.jsxs(le, { sx: { mb: 2 }, children: [
|
|
35436
|
-
/* @__PURE__ */ u.jsx(
|
|
35446
|
+
/* @__PURE__ */ u.jsx(ge, { level: "title-md", sx: { fontWeight: "bold", mb: 1 }, children: /* @__PURE__ */ u.jsx(
|
|
35437
35447
|
Xt,
|
|
35438
35448
|
{
|
|
35439
35449
|
variant: "outlined",
|
|
@@ -35514,7 +35524,7 @@ const wy = Qe(/* @__PURE__ */ u.jsx("path", {
|
|
|
35514
35524
|
/* @__PURE__ */ u.jsx(gt, { showToast: f, message: n.relatedEntitiesErrorMessage, color: "danger", hideToast: p })
|
|
35515
35525
|
] });
|
|
35516
35526
|
}, tz = (e) => {
|
|
35517
|
-
const [t, n] =
|
|
35527
|
+
const [t, n] = Q(!1), [r, i] = Q(!1), [o, a] = Q("success"), [s, l] = Q(""), c = Ut(ws), d = (h, p) => {
|
|
35518
35528
|
a(h), l(p), i(!0);
|
|
35519
35529
|
}, f = () => T(void 0, null, function* () {
|
|
35520
35530
|
n(!0);
|
|
@@ -35527,7 +35537,7 @@ const wy = Qe(/* @__PURE__ */ u.jsx("path", {
|
|
|
35527
35537
|
});
|
|
35528
35538
|
return /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
|
35529
35539
|
/* @__PURE__ */ u.jsxs(le, { mb: 2, children: [
|
|
35530
|
-
/* @__PURE__ */ u.jsx(le, { display: "flex", alignItems: "center", mb: 1, children: /* @__PURE__ */ u.jsx(
|
|
35540
|
+
/* @__PURE__ */ u.jsx(le, { display: "flex", alignItems: "center", mb: 1, children: /* @__PURE__ */ u.jsx(ge, { level: "body-lg", sx: { mx: "auto" }, children: e.labels.exportUsersLeads }) }),
|
|
35531
35541
|
/* @__PURE__ */ u.jsx(ru, { sx: { overflowX: "auto", minWidth: "700px" }, children: /* @__PURE__ */ u.jsxs(
|
|
35532
35542
|
nu,
|
|
35533
35543
|
{
|
|
@@ -35551,8 +35561,8 @@ const wy = Qe(/* @__PURE__ */ u.jsx("path", {
|
|
|
35551
35561
|
] }) }),
|
|
35552
35562
|
/* @__PURE__ */ u.jsx("tbody", { children: /* @__PURE__ */ u.jsxs("tr", { children: [
|
|
35553
35563
|
/* @__PURE__ */ u.jsxs("td", { children: [
|
|
35554
|
-
/* @__PURE__ */ u.jsx(
|
|
35555
|
-
/* @__PURE__ */ u.jsx(
|
|
35564
|
+
/* @__PURE__ */ u.jsx(ge, { level: "body-sm", fontWeight: "600", children: e.labels.exportAllUsersLeads }),
|
|
35565
|
+
/* @__PURE__ */ u.jsx(ge, { level: "body-xs", color: "neutral", children: e.labels.exportAllUsersLeadsDescription })
|
|
35556
35566
|
] }),
|
|
35557
35567
|
/* @__PURE__ */ u.jsx("td", { children: /* @__PURE__ */ u.jsx(Fe, { loading: t, onClick: f, children: e.labels.exportAllUsersLeads }) })
|
|
35558
35568
|
] }) })
|
|
@@ -35564,9 +35574,9 @@ const wy = Qe(/* @__PURE__ */ u.jsx("path", {
|
|
|
35564
35574
|
] });
|
|
35565
35575
|
}, nz = ({ tooltipContent: e = "Drag to reorder" }) => {
|
|
35566
35576
|
const { attributes: t, listeners: n, ref: r } = Ut(fl);
|
|
35567
|
-
return /* @__PURE__ */ u.jsx(
|
|
35577
|
+
return /* @__PURE__ */ u.jsx(Oe, { title: e, placement: "left", arrow: !0, children: /* @__PURE__ */ u.jsx(
|
|
35568
35578
|
an,
|
|
35569
|
-
|
|
35579
|
+
K(j(j({
|
|
35570
35580
|
variant: "plain",
|
|
35571
35581
|
color: "neutral",
|
|
35572
35582
|
size: "sm",
|
|
@@ -35667,9 +35677,9 @@ const wy = Qe(/* @__PURE__ */ u.jsx("path", {
|
|
|
35667
35677
|
gap: 0.5
|
|
35668
35678
|
},
|
|
35669
35679
|
children: [
|
|
35670
|
-
/* @__PURE__ */ u.jsx(
|
|
35680
|
+
/* @__PURE__ */ u.jsx(ge, { level: "title-md", children: r.name }),
|
|
35671
35681
|
r.description && /* @__PURE__ */ u.jsx(
|
|
35672
|
-
|
|
35682
|
+
ge,
|
|
35673
35683
|
{
|
|
35674
35684
|
level: "body-sm",
|
|
35675
35685
|
sx: {
|
|
@@ -35701,7 +35711,7 @@ const wy = Qe(/* @__PURE__ */ u.jsx("path", {
|
|
|
35701
35711
|
}
|
|
35702
35712
|
) });
|
|
35703
35713
|
}, rz = ({ items: e = [], labels: t, setItems: n }) => {
|
|
35704
|
-
const [r, i] =
|
|
35714
|
+
const [r, i] = Q(null), o = Ae(() => e.find((s) => s.id === (r == null ? void 0 : r.id)), [r, e]), a = Kb(
|
|
35705
35715
|
rs(ll, {
|
|
35706
35716
|
activationConstraint: {
|
|
35707
35717
|
distance: 8
|
|
@@ -35724,7 +35734,7 @@ const wy = Qe(/* @__PURE__ */ u.jsx("path", {
|
|
|
35724
35734
|
borderColor: "divider",
|
|
35725
35735
|
borderRadius: "md"
|
|
35726
35736
|
},
|
|
35727
|
-
children: /* @__PURE__ */ u.jsx(
|
|
35737
|
+
children: /* @__PURE__ */ u.jsx(ge, { level: "body-lg", color: "neutral", children: (t == null ? void 0 : t.noItemsToDisplay) || "No items to display" })
|
|
35728
35738
|
}
|
|
35729
35739
|
) : /* @__PURE__ */ u.jsxs(
|
|
35730
35740
|
dy,
|
|
@@ -35776,7 +35786,7 @@ const wy = Qe(/* @__PURE__ */ u.jsx("path", {
|
|
|
35776
35786
|
}
|
|
35777
35787
|
);
|
|
35778
35788
|
}, iz = ({ entityType: e, entityId: t, authRequirement: n, labels: r }) => {
|
|
35779
|
-
const [i, o] =
|
|
35789
|
+
const [i, o] = Q(!1), [a, s] = Q([]), [l, c] = Q("before"), [d, f] = Q(!1), [h, p] = Q(""), [m, g] = Q(""), v = `
|
|
35780
35790
|
data-content-type="${e}"`, C = `
|
|
35781
35791
|
data-content-id="${t}"`, w = a.length > 0 ? `
|
|
35782
35792
|
data-lead-fields="${a.join(", ")}"` : "", y = i ? `
|
|
@@ -35793,7 +35803,7 @@ const wy = Qe(/* @__PURE__ */ u.jsx("path", {
|
|
|
35793
35803
|
country: "Country",
|
|
35794
35804
|
phoneCountryCode: "Phone country code",
|
|
35795
35805
|
phoneNumber: "Phone number"
|
|
35796
|
-
}, E = ({ title: $ }) => /* @__PURE__ */ u.jsx(
|
|
35806
|
+
}, E = ({ title: $ }) => /* @__PURE__ */ u.jsx(Oe, { title: $, sx: { maxWidth: 300 }, children: /* @__PURE__ */ u.jsx(vi, { color: "primary" }) }), k = () => /* @__PURE__ */ u.jsxs(xn, { sx: { mb: 3 }, children: [
|
|
35797
35807
|
/* @__PURE__ */ u.jsx(
|
|
35798
35808
|
Ar,
|
|
35799
35809
|
{
|
|
@@ -35862,7 +35872,7 @@ const wy = Qe(/* @__PURE__ */ u.jsx("path", {
|
|
|
35862
35872
|
}
|
|
35863
35873
|
}
|
|
35864
35874
|
),
|
|
35865
|
-
n !== "LEAD" && /* @__PURE__ */ u.jsx(
|
|
35875
|
+
n !== "LEAD" && /* @__PURE__ */ u.jsx(Oe, { title: r.configureLeadsDisabledMessage, sx: { ml: 2, maxWidth: 300 }, children: /* @__PURE__ */ u.jsx(vi, { color: "primary" }) })
|
|
35866
35876
|
] }),
|
|
35867
35877
|
i && k(),
|
|
35868
35878
|
/* @__PURE__ */ u.jsx(
|
|
@@ -35896,7 +35906,7 @@ const wy = Qe(/* @__PURE__ */ u.jsx("path", {
|
|
|
35896
35906
|
}
|
|
35897
35907
|
}
|
|
35898
35908
|
),
|
|
35899
|
-
/* @__PURE__ */ u.jsx(
|
|
35909
|
+
/* @__PURE__ */ u.jsx(Oe, { title: r.copyToClipboard, children: /* @__PURE__ */ u.jsx(
|
|
35900
35910
|
Fe,
|
|
35901
35911
|
{
|
|
35902
35912
|
onClick: () => {
|
|
@@ -35909,20 +35919,20 @@ const wy = Qe(/* @__PURE__ */ u.jsx("path", {
|
|
|
35909
35919
|
}
|
|
35910
35920
|
) })
|
|
35911
35921
|
] }),
|
|
35912
|
-
/* @__PURE__ */ u.jsx(Dp, { variant: "outlined", color: "primary", startDecorator: /* @__PURE__ */ u.jsx(vi, {}), sx: { mb: 1, width: "fit-content" }, children: /* @__PURE__ */ u.jsxs(
|
|
35922
|
+
/* @__PURE__ */ u.jsx(Dp, { variant: "outlined", color: "primary", startDecorator: /* @__PURE__ */ u.jsx(vi, {}), sx: { mb: 1, width: "fit-content" }, children: /* @__PURE__ */ u.jsxs(ge, { color: "primary", fontSize: 14, fontWeight: 500, children: [
|
|
35913
35923
|
r.divElementTextInfo,
|
|
35914
35924
|
/* @__PURE__ */ u.jsx(Oi, { href: "https://docs.fansunitedmedia.com/docs/user-centric-widgets#/", underline: "always", target: "_blank", rel: "noopener noreferrer", children: "User-centric widgets" })
|
|
35915
35925
|
] }) })
|
|
35916
35926
|
] });
|
|
35917
35927
|
}, oz = ({ entityId: e, labels: t }) => {
|
|
35918
|
-
const [n, r] =
|
|
35928
|
+
const [n, r] = Q(!1), [i, o] = Q(""), [a, s] = Q(""), [l, c] = Q(""), d = `
|
|
35919
35929
|
data-content-id="${e}"`, f = i ? `
|
|
35920
35930
|
data-classic-quiz-url="${i}"` : "", h = a ? `
|
|
35921
35931
|
data-either-or-url="${a}"` : "", p = l ? `
|
|
35922
35932
|
data-poll-url="${l}"` : "", m = `<div
|
|
35923
35933
|
data-component="fu-widget"
|
|
35924
35934
|
data-content-type="list"${d}${f}${h}${p}
|
|
35925
|
-
></div>`, g = ({ title: C }) => /* @__PURE__ */ u.jsx(
|
|
35935
|
+
></div>`, g = ({ title: C }) => /* @__PURE__ */ u.jsx(Oe, { title: C, sx: { maxWidth: 300 }, children: /* @__PURE__ */ u.jsx(vi, { color: "primary" }) }), v = () => /* @__PURE__ */ u.jsxs(xn, { sx: { pb: 1, mb: 3 }, children: [
|
|
35926
35936
|
/* @__PURE__ */ u.jsx(
|
|
35927
35937
|
On,
|
|
35928
35938
|
{
|
|
@@ -35992,7 +36002,7 @@ const wy = Qe(/* @__PURE__ */ u.jsx("path", {
|
|
|
35992
36002
|
}
|
|
35993
36003
|
}
|
|
35994
36004
|
),
|
|
35995
|
-
/* @__PURE__ */ u.jsx(
|
|
36005
|
+
/* @__PURE__ */ u.jsx(Oe, { title: t.copyToClipboard, children: /* @__PURE__ */ u.jsx(
|
|
35996
36006
|
Fe,
|
|
35997
36007
|
{
|
|
35998
36008
|
onClick: () => {
|
|
@@ -36005,7 +36015,7 @@ const wy = Qe(/* @__PURE__ */ u.jsx("path", {
|
|
|
36005
36015
|
}
|
|
36006
36016
|
) })
|
|
36007
36017
|
] }),
|
|
36008
|
-
/* @__PURE__ */ u.jsx(Dp, { variant: "outlined", color: "primary", startDecorator: /* @__PURE__ */ u.jsx(vi, {}), sx: { mb: 1, width: "fit-content" }, children: /* @__PURE__ */ u.jsxs(
|
|
36018
|
+
/* @__PURE__ */ u.jsx(Dp, { variant: "outlined", color: "primary", startDecorator: /* @__PURE__ */ u.jsx(vi, {}), sx: { mb: 1, width: "fit-content" }, children: /* @__PURE__ */ u.jsxs(ge, { color: "primary", fontSize: 14, fontWeight: 500, children: [
|
|
36009
36019
|
t.divElementTextInfo,
|
|
36010
36020
|
/* @__PURE__ */ u.jsx(Oi, { href: "https://docs.fansunitedmedia.com/docs/user-centric-widgets#/", underline: "always", target: "_blank", rel: "noopener noreferrer", children: "User-centric widgets" })
|
|
36011
36021
|
] }) })
|
|
@@ -36016,7 +36026,7 @@ const wy = Qe(/* @__PURE__ */ u.jsx("path", {
|
|
|
36016
36026
|
label: t.nickname ? t.nickname : t.name || `No name ${t.id.slice(0, 5)}`,
|
|
36017
36027
|
avatar: t.avatar
|
|
36018
36028
|
}))) || [], az = ({ labels: e, ids: t, onChange: n }) => {
|
|
36019
|
-
const [r, i] =
|
|
36029
|
+
const [r, i] = Q([]), [o, a] = Q([]), [s, l] = Q(""), [c, d] = Q("name"), [f, h] = Q(!1), [p, m] = Q(!1), { sdk: g } = xt(), v = !0, C = () => m(!p), w = (I, A) => {
|
|
36020
36030
|
i(A);
|
|
36021
36031
|
const E = A.map((k) => k.id);
|
|
36022
36032
|
n(E && E.length ? E : null);
|
|
@@ -36064,7 +36074,7 @@ const wy = Qe(/* @__PURE__ */ u.jsx("path", {
|
|
|
36064
36074
|
},
|
|
36065
36075
|
children: /* @__PURE__ */ u.jsxs(le, { display: "flex", alignItems: "center", mr: 1, children: [
|
|
36066
36076
|
/* @__PURE__ */ u.jsx(Kt, { sx: { width: "1.5rem", height: " 1.5rem", mr: 0.5, borderRadius: "0.75rem" }, src: (H = E.avatar) != null ? H : dt.avatar }),
|
|
36067
|
-
/* @__PURE__ */ u.jsx(
|
|
36077
|
+
/* @__PURE__ */ u.jsx(ge, { children: E.label })
|
|
36068
36078
|
] })
|
|
36069
36079
|
},
|
|
36070
36080
|
E.id
|
|
@@ -36117,16 +36127,22 @@ const wy = Qe(/* @__PURE__ */ u.jsx("path", {
|
|
|
36117
36127
|
renderTags: b,
|
|
36118
36128
|
renderOption: (I, A) => {
|
|
36119
36129
|
var E;
|
|
36120
|
-
return /* @__PURE__ */ u.jsx(Nr,
|
|
36130
|
+
return /* @__PURE__ */ u.jsx(Nr, K(j({}, I), { children: /* @__PURE__ */ u.jsxs(le, { display: "flex", alignItems: "center", mr: 1, children: [
|
|
36121
36131
|
/* @__PURE__ */ u.jsx(Kt, { sx: { width: "1.5rem", height: " 1.5rem", mr: 0.5, borderRadius: "0.75rem" }, src: (E = A.avatar) != null ? E : dt.avatar }),
|
|
36122
|
-
/* @__PURE__ */ u.jsx(
|
|
36132
|
+
/* @__PURE__ */ u.jsx(ge, { children: A.label })
|
|
36123
36133
|
] }) }));
|
|
36124
36134
|
}
|
|
36125
36135
|
}
|
|
36126
36136
|
) }),
|
|
36127
36137
|
/* @__PURE__ */ u.jsx(gt, { showToast: p, message: e.searchProfilesErrorMessage, color: "danger", hideToast: C })
|
|
36128
36138
|
] });
|
|
36129
|
-
}, sz = {
|
|
36139
|
+
}, sz = ({ value: e, style: t }) => {
|
|
36140
|
+
const n = (s) => {
|
|
36141
|
+
const l = Math.abs(s);
|
|
36142
|
+
return l >= 1e9 ? (s / 1e9).toFixed(1) + "b" : l >= 1e6 ? (s / 1e6).toFixed(1) + "m" : l >= 1e3 ? (s / 1e3).toFixed(1) + "k" : s.toString();
|
|
36143
|
+
}, r = (s) => new Intl.NumberFormat("en-US").format(s), i = Math.abs(e) >= 1e3, o = n(e), a = r(e);
|
|
36144
|
+
return i ? /* @__PURE__ */ u.jsx(Oe, { title: a, arrow: !0, children: /* @__PURE__ */ u.jsx(ge, { style: t, children: o }) }) : /* @__PURE__ */ u.jsx(ge, { style: t, children: o });
|
|
36145
|
+
}, lz = {
|
|
36130
36146
|
Login: NL,
|
|
36131
36147
|
InformationInput: On,
|
|
36132
36148
|
RichText: td,
|
|
@@ -36171,21 +36187,22 @@ const wy = Qe(/* @__PURE__ */ u.jsx("path", {
|
|
|
36171
36187
|
BasicSortableList: rz,
|
|
36172
36188
|
WidgetEmbedCode: iz,
|
|
36173
36189
|
WidgetListEmbedCode: oz,
|
|
36174
|
-
AdvancedProfileSearchSelect: az
|
|
36175
|
-
|
|
36190
|
+
AdvancedProfileSearchSelect: az,
|
|
36191
|
+
FormatNumber: sz
|
|
36192
|
+
}, Sy = jn(null), cz = ({ children: e }) => /* @__PURE__ */ u.jsx(Sy.Provider, { value: lz, children: e }), uz = () => {
|
|
36176
36193
|
const e = Ut(Sy);
|
|
36177
36194
|
if (!e)
|
|
36178
36195
|
throw new Error("useComponentContext must be used within a ComponentProvider");
|
|
36179
36196
|
return e;
|
|
36180
|
-
}, gp = 425, mp = 1024,
|
|
36181
|
-
const [e, t] =
|
|
36197
|
+
}, gp = 425, mp = 1024, dz = () => {
|
|
36198
|
+
const [e, t] = Q(window.innerWidth <= mp), [n, r] = Q(window.innerWidth <= gp);
|
|
36182
36199
|
return as(() => {
|
|
36183
36200
|
const i = () => {
|
|
36184
36201
|
t(window.innerWidth <= mp), r(window.innerWidth <= gp);
|
|
36185
36202
|
};
|
|
36186
36203
|
return window.addEventListener("resize", i), () => window.removeEventListener("resize", i);
|
|
36187
36204
|
}, []), { isMobile: e, isPhone: n };
|
|
36188
|
-
},
|
|
36205
|
+
}, Iz = { APIProvider: sA, AuthProvider: lA, AuthContext: am, ComponentProvider: cz, useComponentContext: uz, useAPIContext: xt, useIsMobile: dz };
|
|
36189
36206
|
export {
|
|
36190
|
-
|
|
36207
|
+
Iz as default
|
|
36191
36208
|
};
|