fansunited-management-components 1.71.0-RC3 → 1.71.0-RC5
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 +428 -410
- package/index.umd.js +17 -17
- package/package.json +1 -1
- package/src/services/https/HttpsService.d.ts +20 -0
- package/src/services/https/HttpsService.d.ts.map +1 -1
package/index.es.js
CHANGED
|
@@ -18,7 +18,7 @@ var La = (e) => typeof e == "symbol" ? e : e + "", lt = (e, t) => {
|
|
|
18
18
|
t.indexOf(r) < 0 && xh.call(e, r) && (n[r] = e[r]);
|
|
19
19
|
return n;
|
|
20
20
|
};
|
|
21
|
-
var
|
|
21
|
+
var N = (e, t, n) => pc(e, typeof t != "symbol" ? t + "" : t, n);
|
|
22
22
|
var Hr = (e, t, n) => cx(lx(e), n, t);
|
|
23
23
|
var _ = (e, t, n) => new Promise((r, i) => {
|
|
24
24
|
var o = (c) => {
|
|
@@ -11023,15 +11023,15 @@ const Ia = (e) => {
|
|
|
11023
11023
|
}, S1 = (e) => e === "dev" ? "http://localhost:8070/v1" : e === "staging" ? "https://client.fansunitedstagingapi.com/v1" : "https://client.fansunitedapi.com/v1";
|
|
11024
11024
|
class A1 {
|
|
11025
11025
|
constructor(t, n) {
|
|
11026
|
-
|
|
11027
|
-
|
|
11028
|
-
|
|
11029
|
-
|
|
11030
|
-
|
|
11031
|
-
|
|
11032
|
-
|
|
11033
|
-
|
|
11034
|
-
|
|
11026
|
+
N(this, "apiKey", "");
|
|
11027
|
+
N(this, "clientId", "");
|
|
11028
|
+
N(this, "environment", "");
|
|
11029
|
+
N(this, "mainQueryParams", { key: "", client_id: "" });
|
|
11030
|
+
N(this, "headers", { "Content-Type": "application/json" });
|
|
11031
|
+
N(this, "clientApiBaseUrl", "");
|
|
11032
|
+
N(this, "sportal365ImagesSearchURL", "https://content.api.sportal365.com/v2/images/search?");
|
|
11033
|
+
N(this, "sportal365Config", null);
|
|
11034
|
+
N(this, "generateSignedInUrl", (t) => _(this, null, function* () {
|
|
11035
11035
|
const n = `/clients/${this.clientId}/generate-signed-url?`, r = { key: this.apiKey }, i = yield this.getToken();
|
|
11036
11036
|
return yield fetch(this.clientApiBaseUrl + n + new URLSearchParams(r), {
|
|
11037
11037
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + i }),
|
|
@@ -11039,7 +11039,7 @@ class A1 {
|
|
|
11039
11039
|
body: JSON.stringify(t)
|
|
11040
11040
|
});
|
|
11041
11041
|
}));
|
|
11042
|
-
|
|
11042
|
+
N(this, "storeInBucket", (t, n, r) => _(this, null, function* () {
|
|
11043
11043
|
const i = yield fetch(t, {
|
|
11044
11044
|
headers: r,
|
|
11045
11045
|
method: "PUT",
|
|
@@ -11050,20 +11050,20 @@ class A1 {
|
|
|
11050
11050
|
const o = yield i.text();
|
|
11051
11051
|
this.throwErrorFromXmlResponse(o);
|
|
11052
11052
|
}));
|
|
11053
|
-
|
|
11053
|
+
N(this, "fetchImagesFromSportal365", (t, n, r) => _(this, null, function* () {
|
|
11054
11054
|
if (this.sportal365Config) {
|
|
11055
11055
|
const i = { Project: this.sportal365Config.project, Authorization: this.sportal365Config.authorization };
|
|
11056
11056
|
let o = { query: t, page: r.toString() };
|
|
11057
11057
|
return n && (n.from && (o = q(k({}, o), { from: n.from })), n.to && (o = q(k({}, o), { to: n.to }))), yield fetch(this.sportal365ImagesSearchURL + new URLSearchParams(o), { headers: i });
|
|
11058
11058
|
}
|
|
11059
11059
|
}));
|
|
11060
|
-
|
|
11060
|
+
N(this, "getSchedulersByEntityId", (t) => _(this, null, function* () {
|
|
11061
11061
|
const n = `/clients/${this.clientId}/scheduler/tasks?`, r = { key: this.apiKey, limit: "50", entity_id: t }, i = yield this.getToken();
|
|
11062
11062
|
return yield fetch(this.clientApiBaseUrl + n + new URLSearchParams(r), {
|
|
11063
11063
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + i })
|
|
11064
11064
|
});
|
|
11065
11065
|
}));
|
|
11066
|
-
|
|
11066
|
+
N(this, "setSchedulers", (t, n, r) => _(this, null, function* () {
|
|
11067
11067
|
let i = "", o = "";
|
|
11068
11068
|
n === "CREATE" ? (i = `/clients/${this.clientId}/scheduler/tasks?`, o = "POST") : (i = `/clients/${this.clientId}/scheduler/tasks/${r}?`, o = "PUT");
|
|
11069
11069
|
const a = { key: this.apiKey }, l = yield this.getToken();
|
|
@@ -11073,14 +11073,14 @@ class A1 {
|
|
|
11073
11073
|
method: o
|
|
11074
11074
|
});
|
|
11075
11075
|
}));
|
|
11076
|
-
|
|
11076
|
+
N(this, "deleteScheduledTask", (t) => _(this, null, function* () {
|
|
11077
11077
|
const n = `/clients/${this.clientId}/scheduler/tasks/${t}?`, r = { key: this.apiKey }, i = yield this.getToken();
|
|
11078
11078
|
return yield fetch(this.clientApiBaseUrl + n + new URLSearchParams(r), {
|
|
11079
11079
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + i }),
|
|
11080
11080
|
method: "DELETE"
|
|
11081
11081
|
});
|
|
11082
11082
|
}));
|
|
11083
|
-
|
|
11083
|
+
N(this, "getLoggedInStaffMember", () => _(this, null, function* () {
|
|
11084
11084
|
const r = (yield this.getToken()).split(".")[1].replace(/-/g, "+").replace(/_/g, "/"), i = decodeURIComponent(
|
|
11085
11085
|
window.atob(r).split("").map(function(o) {
|
|
11086
11086
|
return "%" + ("00" + o.charCodeAt(0).toString(16)).slice(-2);
|
|
@@ -11088,12 +11088,12 @@ class A1 {
|
|
|
11088
11088
|
);
|
|
11089
11089
|
return JSON.parse(i);
|
|
11090
11090
|
}));
|
|
11091
|
-
|
|
11092
|
-
|
|
11091
|
+
N(this, "constructAssetsUrl", (t) => this.environment === "dev" ? `https://storage.googleapis.com/client_images_cms_fans-united-dev/${this.clientId}/${t}` : this.environment === "staging" ? `https://storage.googleapis.com/client_images_cms_fans-united-stage/${this.clientId}/${t}` : `https://uploads.fansunitedassets.com/${this.clientId}/${t}`);
|
|
11092
|
+
N(this, "throwErrorFromXmlResponse", (t) => {
|
|
11093
11093
|
const n = new window.DOMParser().parseFromString(t, "text/xml"), r = n.getElementsByTagName("Message") && n.getElementsByTagName("Code").length > 0 ? n.getElementsByTagName("Message")[0].textContent : "", i = n.getElementsByTagName("Details") && n.getElementsByTagName("Code").length > 0 ? n.getElementsByTagName("Details")[0].textContent : "";
|
|
11094
11094
|
throw new Error(r + " " + i);
|
|
11095
11095
|
});
|
|
11096
|
-
|
|
11096
|
+
N(this, "getToken", () => _(this, null, function* () {
|
|
11097
11097
|
const t = Ia(this.environment).currentUser;
|
|
11098
11098
|
return t ? yield t.getIdToken() : "";
|
|
11099
11099
|
}));
|
|
@@ -11107,9 +11107,9 @@ class T1 {
|
|
|
11107
11107
|
* @param apiKey - The API key for API Sports (from VITE_API_SPORTS_API_KEY)
|
|
11108
11108
|
*/
|
|
11109
11109
|
constructor(t) {
|
|
11110
|
-
|
|
11111
|
-
|
|
11112
|
-
|
|
11110
|
+
N(this, "baseUrl", "https://v1.formula-1.api-sports.io");
|
|
11111
|
+
N(this, "apiKey");
|
|
11112
|
+
N(this, "headers");
|
|
11113
11113
|
this.apiKey = t, this.headers = {
|
|
11114
11114
|
"X-RapidAPI-Key": this.apiKey,
|
|
11115
11115
|
"Content-Type": "application/json"
|
|
@@ -11171,25 +11171,25 @@ const E1 = (e) => e === "dev" ? "http://localhost:8060/v1" : e === "staging" ? "
|
|
|
11171
11171
|
class B1 extends A1 {
|
|
11172
11172
|
constructor(n, r) {
|
|
11173
11173
|
super(n, r);
|
|
11174
|
-
|
|
11175
|
-
|
|
11176
|
-
|
|
11177
|
-
|
|
11178
|
-
|
|
11179
|
-
|
|
11180
|
-
|
|
11181
|
-
|
|
11182
|
-
|
|
11183
|
-
|
|
11184
|
-
|
|
11185
|
-
|
|
11186
|
-
|
|
11174
|
+
N(this, "loyaltyBaseUrl", "");
|
|
11175
|
+
N(this, "predictionBaseUrl", "");
|
|
11176
|
+
N(this, "miniGamesApiBaseUrl", "");
|
|
11177
|
+
N(this, "reportingApiBaseUrl", "");
|
|
11178
|
+
N(this, "votingApiBaseUrl", "");
|
|
11179
|
+
N(this, "profileApiBaseUrl", "");
|
|
11180
|
+
N(this, "customResolverUrl", "");
|
|
11181
|
+
N(this, "discussionsApiBaseUrl", "");
|
|
11182
|
+
N(this, "aiServiceBaseUrl", "");
|
|
11183
|
+
N(this, "ikebanaProxyBaseUrl", "");
|
|
11184
|
+
N(this, "ikebanaGcpBaseUrl", "");
|
|
11185
|
+
N(this, "apiSports");
|
|
11186
|
+
N(this, "getClientById", () => _(this, null, function* () {
|
|
11187
11187
|
const n = `/clients/${this.clientId}?`, r = { key: this.apiKey }, i = yield this.getToken();
|
|
11188
11188
|
return yield fetch(this.clientApiBaseUrl + n + new URLSearchParams(r), {
|
|
11189
11189
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + i })
|
|
11190
11190
|
});
|
|
11191
11191
|
}));
|
|
11192
|
-
|
|
11192
|
+
N(this, "createTemplate", (n) => _(this, null, function* () {
|
|
11193
11193
|
const r = "/leaderboard/templates?", i = yield this.getToken();
|
|
11194
11194
|
return yield fetch(this.loyaltyBaseUrl + r + new URLSearchParams(this.mainQueryParams), {
|
|
11195
11195
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + i }),
|
|
@@ -11197,7 +11197,7 @@ class B1 extends A1 {
|
|
|
11197
11197
|
body: JSON.stringify(n)
|
|
11198
11198
|
});
|
|
11199
11199
|
}));
|
|
11200
|
-
|
|
11200
|
+
N(this, "editTemplate", (n, r) => _(this, null, function* () {
|
|
11201
11201
|
const i = `/leaderboard/templates/${n}?`, o = yield this.getToken();
|
|
11202
11202
|
return yield fetch(this.loyaltyBaseUrl + i + new URLSearchParams(this.mainQueryParams), {
|
|
11203
11203
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + o }),
|
|
@@ -11205,14 +11205,14 @@ class B1 extends A1 {
|
|
|
11205
11205
|
body: JSON.stringify(r)
|
|
11206
11206
|
});
|
|
11207
11207
|
}));
|
|
11208
|
-
|
|
11208
|
+
N(this, "deleteTemplate", (n) => _(this, null, function* () {
|
|
11209
11209
|
const r = `/leaderboard/templates/${n}?`, i = yield this.getToken();
|
|
11210
11210
|
return yield fetch(this.loyaltyBaseUrl + r + new URLSearchParams(this.mainQueryParams), {
|
|
11211
11211
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + i }),
|
|
11212
11212
|
method: "DELETE"
|
|
11213
11213
|
});
|
|
11214
11214
|
}));
|
|
11215
|
-
|
|
11215
|
+
N(this, "setWinners", (n) => _(this, null, function* () {
|
|
11216
11216
|
const r = "/winners?", i = yield this.getToken();
|
|
11217
11217
|
return yield fetch(this.predictionBaseUrl + r + new URLSearchParams(this.mainQueryParams), {
|
|
11218
11218
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + i }),
|
|
@@ -11220,19 +11220,19 @@ class B1 extends A1 {
|
|
|
11220
11220
|
body: JSON.stringify(n)
|
|
11221
11221
|
});
|
|
11222
11222
|
}));
|
|
11223
|
-
|
|
11223
|
+
N(this, "exportDetailedLeaderboard", (n, r, i) => _(this, null, function* () {
|
|
11224
11224
|
const o = `/leaderboard/${n}/detailed?`, a = yield this.getToken(), l = k({}, this.mainQueryParams);
|
|
11225
11225
|
return r && (l.group_id = r), yield fetch(this.loyaltyBaseUrl + o + new URLSearchParams(q(k({}, l), { limit: i.toString() })), {
|
|
11226
11226
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + a })
|
|
11227
11227
|
});
|
|
11228
11228
|
}));
|
|
11229
|
-
|
|
11229
|
+
N(this, "exportDetailedGameLeaderboard", (n, r) => _(this, null, function* () {
|
|
11230
11230
|
const i = `/leaderboard/games/${n}/detailed?`, o = yield this.getToken();
|
|
11231
11231
|
return yield fetch(this.loyaltyBaseUrl + i + new URLSearchParams(q(k({}, this.mainQueryParams), { limit: r.toString() })), {
|
|
11232
11232
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + o })
|
|
11233
11233
|
});
|
|
11234
11234
|
}));
|
|
11235
|
-
|
|
11235
|
+
N(this, "createGame", (n) => _(this, null, function* () {
|
|
11236
11236
|
const r = "/games?", i = yield this.getToken();
|
|
11237
11237
|
return yield fetch(this.predictionBaseUrl + r + new URLSearchParams(this.mainQueryParams), {
|
|
11238
11238
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + i }),
|
|
@@ -11240,7 +11240,7 @@ class B1 extends A1 {
|
|
|
11240
11240
|
body: JSON.stringify(n)
|
|
11241
11241
|
});
|
|
11242
11242
|
}));
|
|
11243
|
-
|
|
11243
|
+
N(this, "editGame", (n, r) => _(this, null, function* () {
|
|
11244
11244
|
const i = `/games/${n}?`, o = yield this.getToken();
|
|
11245
11245
|
return yield fetch(this.predictionBaseUrl + i + new URLSearchParams(this.mainQueryParams), {
|
|
11246
11246
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + o }),
|
|
@@ -11248,17 +11248,17 @@ class B1 extends A1 {
|
|
|
11248
11248
|
body: JSON.stringify(r)
|
|
11249
11249
|
});
|
|
11250
11250
|
}));
|
|
11251
|
-
|
|
11251
|
+
N(this, "getEntityFeature", (n, r) => _(this, null, function* () {
|
|
11252
11252
|
const i = `/clients/${this.clientId}/features/${n}?`, o = { key: this.apiKey };
|
|
11253
11253
|
return r && (o.disable_cache = Date.now().toString()), yield fetch(this.clientApiBaseUrl + i + new URLSearchParams(o));
|
|
11254
11254
|
}));
|
|
11255
|
-
|
|
11255
|
+
N(this, "getClientFeatures", (n, r = 1) => _(this, null, function* () {
|
|
11256
11256
|
const i = `/clients/${this.clientId}/features?`, o = { key: this.apiKey };
|
|
11257
11257
|
n && (o.disable_cache = Date.now().toString());
|
|
11258
11258
|
const a = q(k({}, this.headers), { "x-api-version": r.toString() });
|
|
11259
11259
|
return yield fetch(this.clientApiBaseUrl + i + new URLSearchParams(o), { headers: a });
|
|
11260
11260
|
}));
|
|
11261
|
-
|
|
11261
|
+
N(this, "updateEntityFeatures", (n, r) => _(this, null, function* () {
|
|
11262
11262
|
const i = `/clients/${this.clientId}/features/${n}?`, o = yield this.getToken();
|
|
11263
11263
|
return yield fetch(this.clientApiBaseUrl + i + new URLSearchParams({ key: this.apiKey }), {
|
|
11264
11264
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + o }),
|
|
@@ -11266,19 +11266,19 @@ class B1 extends A1 {
|
|
|
11266
11266
|
body: JSON.stringify(r)
|
|
11267
11267
|
});
|
|
11268
11268
|
}));
|
|
11269
|
-
|
|
11269
|
+
N(this, "getClassicQuizFeature", () => _(this, null, function* () {
|
|
11270
11270
|
const n = `/clients/${this.clientId}/features/classic_quiz?`, r = { key: this.apiKey };
|
|
11271
11271
|
return yield fetch(this.clientApiBaseUrl + n + new URLSearchParams(r));
|
|
11272
11272
|
}));
|
|
11273
|
-
|
|
11273
|
+
N(this, "getEitherOrFeature", () => _(this, null, function* () {
|
|
11274
11274
|
const n = `/clients/${this.clientId}/features/either_or?`, r = { key: this.apiKey };
|
|
11275
11275
|
return yield fetch(this.clientApiBaseUrl + n + new URLSearchParams(r));
|
|
11276
11276
|
}));
|
|
11277
|
-
|
|
11277
|
+
N(this, "getPollFeature", () => _(this, null, function* () {
|
|
11278
11278
|
const n = `/clients/${this.clientId}/features/poll?`, r = { key: this.apiKey };
|
|
11279
11279
|
return yield fetch(this.clientApiBaseUrl + n + new URLSearchParams(r));
|
|
11280
11280
|
}));
|
|
11281
|
-
|
|
11281
|
+
N(this, "createClassicQuiz", (n) => _(this, null, function* () {
|
|
11282
11282
|
const r = "/classic-quizzes?", i = yield this.getToken();
|
|
11283
11283
|
return yield fetch(this.miniGamesApiBaseUrl + r + new URLSearchParams(this.mainQueryParams), {
|
|
11284
11284
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + i }),
|
|
@@ -11286,7 +11286,7 @@ class B1 extends A1 {
|
|
|
11286
11286
|
body: JSON.stringify(n)
|
|
11287
11287
|
});
|
|
11288
11288
|
}));
|
|
11289
|
-
|
|
11289
|
+
N(this, "updateClassicQuiz", (n, r) => _(this, null, function* () {
|
|
11290
11290
|
const i = `/classic-quizzes/${n}?`, o = yield this.getToken();
|
|
11291
11291
|
return yield fetch(this.miniGamesApiBaseUrl + i + new URLSearchParams(this.mainQueryParams), {
|
|
11292
11292
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + o }),
|
|
@@ -11294,27 +11294,27 @@ class B1 extends A1 {
|
|
|
11294
11294
|
body: JSON.stringify(r)
|
|
11295
11295
|
});
|
|
11296
11296
|
}));
|
|
11297
|
-
|
|
11297
|
+
N(this, "getClassicQuizById", (n) => _(this, null, function* () {
|
|
11298
11298
|
const r = `/classic-quizzes/${n}/staff?`, i = yield this.getToken();
|
|
11299
11299
|
return yield fetch(this.miniGamesApiBaseUrl + r + new URLSearchParams(this.mainQueryParams), {
|
|
11300
11300
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + i })
|
|
11301
11301
|
});
|
|
11302
11302
|
}));
|
|
11303
|
-
|
|
11303
|
+
N(this, "deleteClassicQuiz", (n) => _(this, null, function* () {
|
|
11304
11304
|
const r = `/classic-quizzes/${n}?`, i = yield this.getToken();
|
|
11305
11305
|
return yield fetch(this.miniGamesApiBaseUrl + r + new URLSearchParams(this.mainQueryParams), {
|
|
11306
11306
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + i }),
|
|
11307
11307
|
method: "DELETE"
|
|
11308
11308
|
});
|
|
11309
11309
|
}));
|
|
11310
|
-
|
|
11310
|
+
N(this, "calculateQuestionsReport", (n) => _(this, null, function* () {
|
|
11311
11311
|
const r = `/classic-quizzes/${n}/questions-report?`, i = yield this.getToken();
|
|
11312
11312
|
return yield fetch(this.miniGamesApiBaseUrl + r + new URLSearchParams(this.mainQueryParams), {
|
|
11313
11313
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + i }),
|
|
11314
11314
|
method: "POST"
|
|
11315
11315
|
});
|
|
11316
11316
|
}));
|
|
11317
|
-
|
|
11317
|
+
N(this, "exportUsers", (n) => _(this, null, function* () {
|
|
11318
11318
|
const r = "/exports/users?", i = yield this.getToken();
|
|
11319
11319
|
return yield fetch(this.reportingApiBaseUrl + r + new URLSearchParams(this.mainQueryParams), {
|
|
11320
11320
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + i }),
|
|
@@ -11322,7 +11322,7 @@ class B1 extends A1 {
|
|
|
11322
11322
|
body: JSON.stringify(n)
|
|
11323
11323
|
});
|
|
11324
11324
|
}));
|
|
11325
|
-
|
|
11325
|
+
N(this, "getClassicQuizParticipations", (n, r, i, o) => _(this, null, function* () {
|
|
11326
11326
|
const a = "/classic-quizzes/participations?", l = q(k({}, this.mainQueryParams), {
|
|
11327
11327
|
classic_quiz_ids: n,
|
|
11328
11328
|
from_date: r,
|
|
@@ -11333,7 +11333,7 @@ class B1 extends A1 {
|
|
|
11333
11333
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + c })
|
|
11334
11334
|
});
|
|
11335
11335
|
}));
|
|
11336
|
-
|
|
11336
|
+
N(this, "getEntityParticipations", (n, r, i) => _(this, null, function* () {
|
|
11337
11337
|
const o = `/participations/${n}/breakdown?`, a = q(k({}, this.mainQueryParams), {
|
|
11338
11338
|
from_date: r,
|
|
11339
11339
|
to_date: i
|
|
@@ -11342,7 +11342,7 @@ class B1 extends A1 {
|
|
|
11342
11342
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + l })
|
|
11343
11343
|
});
|
|
11344
11344
|
}));
|
|
11345
|
-
|
|
11345
|
+
N(this, "createPoll", (n) => _(this, null, function* () {
|
|
11346
11346
|
const r = "/polls?", i = yield this.getToken();
|
|
11347
11347
|
return yield fetch(this.votingApiBaseUrl + r + new URLSearchParams(this.mainQueryParams), {
|
|
11348
11348
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + i }),
|
|
@@ -11350,7 +11350,7 @@ class B1 extends A1 {
|
|
|
11350
11350
|
body: JSON.stringify(n)
|
|
11351
11351
|
});
|
|
11352
11352
|
}));
|
|
11353
|
-
|
|
11353
|
+
N(this, "updatePoll", (n, r) => _(this, null, function* () {
|
|
11354
11354
|
const i = `/polls/${n}?`, o = yield this.getToken();
|
|
11355
11355
|
return yield fetch(this.votingApiBaseUrl + i + new URLSearchParams(this.mainQueryParams), {
|
|
11356
11356
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + o }),
|
|
@@ -11358,27 +11358,27 @@ class B1 extends A1 {
|
|
|
11358
11358
|
body: JSON.stringify(r)
|
|
11359
11359
|
});
|
|
11360
11360
|
}));
|
|
11361
|
-
|
|
11361
|
+
N(this, "deletePoll", (n) => _(this, null, function* () {
|
|
11362
11362
|
const r = `/polls/${n}?`, i = yield this.getToken();
|
|
11363
11363
|
return yield fetch(this.votingApiBaseUrl + r + new URLSearchParams(this.mainQueryParams), {
|
|
11364
11364
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + i }),
|
|
11365
11365
|
method: "DELETE"
|
|
11366
11366
|
});
|
|
11367
11367
|
}));
|
|
11368
|
-
|
|
11368
|
+
N(this, "getEitherOrById", (n, r) => _(this, null, function* () {
|
|
11369
11369
|
const i = `/either-or/${n}/staff?`, o = yield this.getToken();
|
|
11370
11370
|
let a = null;
|
|
11371
11371
|
return r && (a = q(k({}, this.mainQueryParams), { client_id: r })), yield fetch(this.miniGamesApiBaseUrl + i + new URLSearchParams(a || this.mainQueryParams), {
|
|
11372
11372
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + o })
|
|
11373
11373
|
});
|
|
11374
11374
|
}));
|
|
11375
|
-
|
|
11375
|
+
N(this, "getEitherOrByIdReadOnlyClient", (n, r, i) => _(this, null, function* () {
|
|
11376
11376
|
const o = "https://mini-games.fansunitedapi.com/v1", a = `/either-or/${n}/staff?`, l = yield this.getToken(), c = { key: r, client_id: i };
|
|
11377
11377
|
return yield fetch(o + a + new URLSearchParams(c), {
|
|
11378
11378
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + l })
|
|
11379
11379
|
});
|
|
11380
11380
|
}));
|
|
11381
|
-
|
|
11381
|
+
N(this, "createEitherOr", (n) => _(this, null, function* () {
|
|
11382
11382
|
const r = "/either-or?", i = yield this.getToken();
|
|
11383
11383
|
return yield fetch(this.miniGamesApiBaseUrl + r + new URLSearchParams(this.mainQueryParams), {
|
|
11384
11384
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + i }),
|
|
@@ -11386,7 +11386,7 @@ class B1 extends A1 {
|
|
|
11386
11386
|
body: JSON.stringify(n)
|
|
11387
11387
|
});
|
|
11388
11388
|
}));
|
|
11389
|
-
|
|
11389
|
+
N(this, "updateEitherOr", (n, r) => _(this, null, function* () {
|
|
11390
11390
|
const i = `/either-or/${n}?`, o = yield this.getToken();
|
|
11391
11391
|
return yield fetch(this.miniGamesApiBaseUrl + i + new URLSearchParams(this.mainQueryParams), {
|
|
11392
11392
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + o }),
|
|
@@ -11394,14 +11394,14 @@ class B1 extends A1 {
|
|
|
11394
11394
|
body: JSON.stringify(r)
|
|
11395
11395
|
});
|
|
11396
11396
|
}));
|
|
11397
|
-
|
|
11397
|
+
N(this, "deleteEitherOr", (n) => _(this, null, function* () {
|
|
11398
11398
|
const r = `/either-or/${n}?`, i = yield this.getToken();
|
|
11399
11399
|
return yield fetch(this.miniGamesApiBaseUrl + r + new URLSearchParams(this.mainQueryParams), {
|
|
11400
11400
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + i }),
|
|
11401
11401
|
method: "DELETE"
|
|
11402
11402
|
});
|
|
11403
11403
|
}));
|
|
11404
|
-
|
|
11404
|
+
N(this, "getLists", (n, r, i = "DESC") => _(this, null, function* () {
|
|
11405
11405
|
const o = `/clients/${this.clientId}/lists?`, a = { key: this.apiKey, limit: n.toString(), sort_order: i };
|
|
11406
11406
|
r && (a.start_after = r);
|
|
11407
11407
|
const l = yield this.getToken();
|
|
@@ -11409,13 +11409,13 @@ class B1 extends A1 {
|
|
|
11409
11409
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + l })
|
|
11410
11410
|
});
|
|
11411
11411
|
}));
|
|
11412
|
-
|
|
11412
|
+
N(this, "getListById", (n) => _(this, null, function* () {
|
|
11413
11413
|
const r = `/clients/${this.clientId}/lists/${n}?`, i = { key: this.apiKey }, o = yield this.getToken();
|
|
11414
11414
|
return yield fetch(this.clientApiBaseUrl + r + new URLSearchParams(i), {
|
|
11415
11415
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + o })
|
|
11416
11416
|
});
|
|
11417
11417
|
}));
|
|
11418
|
-
|
|
11418
|
+
N(this, "getListContent", (n, r, i = "DESC", o) => _(this, null, function* () {
|
|
11419
11419
|
const a = `/clients/${this.clientId}/lists/${n}/content?`, l = { key: this.apiKey, limit: r.toString(), sort_order: i };
|
|
11420
11420
|
o && (l.page = o.toString());
|
|
11421
11421
|
const c = yield this.getToken();
|
|
@@ -11423,7 +11423,7 @@ class B1 extends A1 {
|
|
|
11423
11423
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + c })
|
|
11424
11424
|
});
|
|
11425
11425
|
}));
|
|
11426
|
-
|
|
11426
|
+
N(this, "createList", (n) => _(this, null, function* () {
|
|
11427
11427
|
const r = `/clients/${this.clientId}/lists/?`, i = { key: this.apiKey }, o = yield this.getToken();
|
|
11428
11428
|
return yield fetch(this.clientApiBaseUrl + r + new URLSearchParams(i), {
|
|
11429
11429
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + o }),
|
|
@@ -11431,7 +11431,7 @@ class B1 extends A1 {
|
|
|
11431
11431
|
body: JSON.stringify(n)
|
|
11432
11432
|
});
|
|
11433
11433
|
}));
|
|
11434
|
-
|
|
11434
|
+
N(this, "updateList", (n, r) => _(this, null, function* () {
|
|
11435
11435
|
const i = `/clients/${this.clientId}/lists/${n}?`, o = { key: this.apiKey }, a = yield this.getToken();
|
|
11436
11436
|
return yield fetch(this.clientApiBaseUrl + i + new URLSearchParams(o), {
|
|
11437
11437
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + a }),
|
|
@@ -11439,20 +11439,20 @@ class B1 extends A1 {
|
|
|
11439
11439
|
body: JSON.stringify(r)
|
|
11440
11440
|
});
|
|
11441
11441
|
}));
|
|
11442
|
-
|
|
11442
|
+
N(this, "deleteList", (n) => _(this, null, function* () {
|
|
11443
11443
|
const r = `/clients/${this.clientId}/lists/${n}?`, i = { key: this.apiKey }, o = yield this.getToken();
|
|
11444
11444
|
return yield fetch(this.clientApiBaseUrl + r + new URLSearchParams(i), {
|
|
11445
11445
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + o }),
|
|
11446
11446
|
method: "DELETE"
|
|
11447
11447
|
});
|
|
11448
11448
|
}));
|
|
11449
|
-
|
|
11449
|
+
N(this, "getLanguageConfig", () => _(this, null, function* () {
|
|
11450
11450
|
const n = `/clients/${this.clientId}/config/language?`, r = { key: this.apiKey }, i = yield this.getToken();
|
|
11451
11451
|
return yield fetch(this.clientApiBaseUrl + n + new URLSearchParams(r), {
|
|
11452
11452
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + i })
|
|
11453
11453
|
});
|
|
11454
11454
|
}));
|
|
11455
|
-
|
|
11455
|
+
N(this, "updateLanguageConfig", (n) => _(this, null, function* () {
|
|
11456
11456
|
const r = `/clients/${this.clientId}/config/language?`, i = { key: this.apiKey }, o = yield this.getToken();
|
|
11457
11457
|
return yield fetch(this.clientApiBaseUrl + r + new URLSearchParams(i), {
|
|
11458
11458
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + o }),
|
|
@@ -11460,7 +11460,7 @@ class B1 extends A1 {
|
|
|
11460
11460
|
body: JSON.stringify(n)
|
|
11461
11461
|
});
|
|
11462
11462
|
}));
|
|
11463
|
-
|
|
11463
|
+
N(this, "createBracketGame", (n) => _(this, null, function* () {
|
|
11464
11464
|
const r = "/custom/bracket?", i = yield this.getToken();
|
|
11465
11465
|
return yield fetch(this.predictionBaseUrl + r + new URLSearchParams(this.mainQueryParams), {
|
|
11466
11466
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + i }),
|
|
@@ -11468,7 +11468,7 @@ class B1 extends A1 {
|
|
|
11468
11468
|
body: JSON.stringify(n)
|
|
11469
11469
|
});
|
|
11470
11470
|
}));
|
|
11471
|
-
|
|
11471
|
+
N(this, "updateBracketGame", (n, r) => _(this, null, function* () {
|
|
11472
11472
|
const i = `/custom/bracket/${n}?`, o = yield this.getToken();
|
|
11473
11473
|
return yield fetch(this.predictionBaseUrl + i + new URLSearchParams(this.mainQueryParams), {
|
|
11474
11474
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + o }),
|
|
@@ -11476,34 +11476,34 @@ class B1 extends A1 {
|
|
|
11476
11476
|
body: JSON.stringify(r)
|
|
11477
11477
|
});
|
|
11478
11478
|
}));
|
|
11479
|
-
|
|
11479
|
+
N(this, "resolvePredictions", (n) => _(this, null, function* () {
|
|
11480
11480
|
const r = "/custom/bracket/resolve?", o = yield this.getToken();
|
|
11481
11481
|
return yield fetch(this.customResolverUrl + r + new URLSearchParams({ client_id: this.clientId, game_id: n }), {
|
|
11482
11482
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + o }),
|
|
11483
11483
|
signal: AbortSignal.timeout(6e5)
|
|
11484
11484
|
});
|
|
11485
11485
|
}));
|
|
11486
|
-
|
|
11486
|
+
N(this, "exportLeadsPerEntity", (n) => _(this, null, function* () {
|
|
11487
11487
|
const r = "/leads/export?", i = q(k({}, this.mainQueryParams), { content_id: n }), o = yield this.getToken();
|
|
11488
11488
|
return yield fetch(this.profileApiBaseUrl + r + new URLSearchParams(i), {
|
|
11489
11489
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + o })
|
|
11490
11490
|
});
|
|
11491
11491
|
}));
|
|
11492
|
-
|
|
11492
|
+
N(this, "getLeadStatistics", (n) => _(this, null, function* () {
|
|
11493
11493
|
const r = "/leads/statistics?", i = yield this.getToken();
|
|
11494
11494
|
let o = null;
|
|
11495
11495
|
return n ? o = new URLSearchParams(k(k({}, this.mainQueryParams), n)) : o = new URLSearchParams(this.mainQueryParams), yield fetch(this.profileApiBaseUrl + r + o, {
|
|
11496
11496
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + i })
|
|
11497
11497
|
});
|
|
11498
11498
|
}));
|
|
11499
|
-
|
|
11499
|
+
N(this, "exportLeads", (n) => _(this, null, function* () {
|
|
11500
11500
|
const r = "/leads/export?", i = yield this.getToken();
|
|
11501
11501
|
let o = null;
|
|
11502
11502
|
return n ? o = new URLSearchParams(k(k({}, this.mainQueryParams), n)) : o = new URLSearchParams(this.mainQueryParams), yield fetch(this.profileApiBaseUrl + r + o, {
|
|
11503
11503
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + i })
|
|
11504
11504
|
});
|
|
11505
11505
|
}));
|
|
11506
|
-
|
|
11506
|
+
N(this, "createStandingGame", (n) => _(this, null, function* () {
|
|
11507
11507
|
const r = "/custom/standing?", i = yield this.getToken();
|
|
11508
11508
|
return yield fetch(this.predictionBaseUrl + r + new URLSearchParams(this.mainQueryParams), {
|
|
11509
11509
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + i }),
|
|
@@ -11511,7 +11511,7 @@ class B1 extends A1 {
|
|
|
11511
11511
|
body: JSON.stringify(n)
|
|
11512
11512
|
});
|
|
11513
11513
|
}));
|
|
11514
|
-
|
|
11514
|
+
N(this, "updateStandingGame", (n, r) => _(this, null, function* () {
|
|
11515
11515
|
const i = `/custom/standing/${n}?`, o = yield this.getToken();
|
|
11516
11516
|
return yield fetch(this.predictionBaseUrl + i + new URLSearchParams(this.mainQueryParams), {
|
|
11517
11517
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + o }),
|
|
@@ -11519,14 +11519,14 @@ class B1 extends A1 {
|
|
|
11519
11519
|
body: JSON.stringify(r)
|
|
11520
11520
|
});
|
|
11521
11521
|
}));
|
|
11522
|
-
|
|
11522
|
+
N(this, "resolveStandingPredictions", (n) => _(this, null, function* () {
|
|
11523
11523
|
const r = "/custom/standing/resolve?", o = yield this.getToken();
|
|
11524
11524
|
return yield fetch(this.customResolverUrl + r + new URLSearchParams({ client_id: this.clientId, game_id: n }), {
|
|
11525
11525
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + o }),
|
|
11526
11526
|
signal: AbortSignal.timeout(6e5)
|
|
11527
11527
|
});
|
|
11528
11528
|
}));
|
|
11529
|
-
|
|
11529
|
+
N(this, "moderateUserPosts", (n, r) => _(this, null, function* () {
|
|
11530
11530
|
const i = "/moderation/bulk?", o = yield this.getToken(), a = q(k({}, this.mainQueryParams), {
|
|
11531
11531
|
user_id: n,
|
|
11532
11532
|
reason: r
|
|
@@ -11536,13 +11536,13 @@ class B1 extends A1 {
|
|
|
11536
11536
|
method: "POST"
|
|
11537
11537
|
});
|
|
11538
11538
|
}));
|
|
11539
|
-
|
|
11539
|
+
N(this, "getUserBanStatus", (n) => _(this, null, function* () {
|
|
11540
11540
|
const r = `/discussions/users/${n}/ban?`, i = yield this.getToken();
|
|
11541
11541
|
return yield fetch(this.discussionsApiBaseUrl + r + new URLSearchParams(this.mainQueryParams), {
|
|
11542
11542
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + i })
|
|
11543
11543
|
});
|
|
11544
11544
|
}));
|
|
11545
|
-
|
|
11545
|
+
N(this, "banUser", (n, r, i) => _(this, null, function* () {
|
|
11546
11546
|
const o = `/discussions/users/${n}/ban?`, a = yield this.getToken(), l = { banned_period_in_days: r, banned_reason: i };
|
|
11547
11547
|
return yield fetch(this.discussionsApiBaseUrl + o + new URLSearchParams(this.mainQueryParams), {
|
|
11548
11548
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + a }),
|
|
@@ -11550,7 +11550,7 @@ class B1 extends A1 {
|
|
|
11550
11550
|
body: JSON.stringify(l)
|
|
11551
11551
|
});
|
|
11552
11552
|
}));
|
|
11553
|
-
|
|
11553
|
+
N(this, "unbanUser", (n, r) => _(this, null, function* () {
|
|
11554
11554
|
const i = `/discussions/users/${n}/ban?`, o = yield this.getToken(), a = { unban_reason: r };
|
|
11555
11555
|
return yield fetch(this.discussionsApiBaseUrl + i + new URLSearchParams(this.mainQueryParams), {
|
|
11556
11556
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + o }),
|
|
@@ -11558,7 +11558,7 @@ class B1 extends A1 {
|
|
|
11558
11558
|
body: JSON.stringify(a)
|
|
11559
11559
|
});
|
|
11560
11560
|
}));
|
|
11561
|
-
|
|
11561
|
+
N(this, "updateUser", (n, r, i) => _(this, null, function* () {
|
|
11562
11562
|
const o = `/profiles/${n}/verify?`, a = yield this.getToken(), l = r === "verify" ? { verified: i } : { staff_member: i };
|
|
11563
11563
|
return yield fetch(this.profileApiBaseUrl + o + new URLSearchParams(this.mainQueryParams), {
|
|
11564
11564
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + a }),
|
|
@@ -11566,14 +11566,14 @@ class B1 extends A1 {
|
|
|
11566
11566
|
body: JSON.stringify(l)
|
|
11567
11567
|
});
|
|
11568
11568
|
}));
|
|
11569
|
-
|
|
11569
|
+
N(this, "deleteUserProfile", (n) => _(this, null, function* () {
|
|
11570
11570
|
const r = `/profiles/${n}?`, i = yield this.getToken();
|
|
11571
11571
|
return yield fetch(this.profileApiBaseUrl + r + new URLSearchParams(this.mainQueryParams), {
|
|
11572
11572
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + i }),
|
|
11573
11573
|
method: "DELETE"
|
|
11574
11574
|
});
|
|
11575
11575
|
}));
|
|
11576
|
-
|
|
11576
|
+
N(this, "createDiscussion", (n) => _(this, null, function* () {
|
|
11577
11577
|
const r = "/discussions?", i = yield this.getToken();
|
|
11578
11578
|
return yield fetch(this.discussionsApiBaseUrl + r + new URLSearchParams(this.mainQueryParams), {
|
|
11579
11579
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + i }),
|
|
@@ -11581,14 +11581,14 @@ class B1 extends A1 {
|
|
|
11581
11581
|
body: JSON.stringify(n)
|
|
11582
11582
|
});
|
|
11583
11583
|
}));
|
|
11584
|
-
|
|
11584
|
+
N(this, "deleteDiscussion", (n) => _(this, null, function* () {
|
|
11585
11585
|
const r = `/discussions/${n}?`, i = yield this.getToken();
|
|
11586
11586
|
return yield fetch(this.discussionsApiBaseUrl + r + new URLSearchParams(this.mainQueryParams), {
|
|
11587
11587
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + i }),
|
|
11588
11588
|
method: "DELETE"
|
|
11589
11589
|
});
|
|
11590
11590
|
}));
|
|
11591
|
-
|
|
11591
|
+
N(this, "moderatePosts", (...o) => _(this, [...o], function* (n = "", r = [], i) {
|
|
11592
11592
|
const a = "/moderation/bulk?", l = yield this.getToken();
|
|
11593
11593
|
let c = {};
|
|
11594
11594
|
if (r.length > 0) {
|
|
@@ -11601,33 +11601,33 @@ class B1 extends A1 {
|
|
|
11601
11601
|
method: "POST"
|
|
11602
11602
|
});
|
|
11603
11603
|
}));
|
|
11604
|
-
|
|
11604
|
+
N(this, "pinDiscussionPosts", (n, r) => _(this, null, function* () {
|
|
11605
11605
|
const i = `/discussions/${n}/pins?`, o = yield this.getToken(), a = q(k({}, this.mainQueryParams), { pin_post_ids: r.join(",") });
|
|
11606
11606
|
return yield fetch(this.discussionsApiBaseUrl + i + new URLSearchParams(a), {
|
|
11607
11607
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + o }),
|
|
11608
11608
|
method: "PATCH"
|
|
11609
11609
|
});
|
|
11610
11610
|
}));
|
|
11611
|
-
|
|
11611
|
+
N(this, "unpinDiscussionPosts", (n, r) => _(this, null, function* () {
|
|
11612
11612
|
const i = `/discussions/${n}/pins?`, o = yield this.getToken(), a = q(k({}, this.mainQueryParams), { pin_post_ids: r.join(",") });
|
|
11613
11613
|
return yield fetch(this.discussionsApiBaseUrl + i + new URLSearchParams(a), {
|
|
11614
11614
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + o }),
|
|
11615
11615
|
method: "DELETE"
|
|
11616
11616
|
});
|
|
11617
11617
|
}));
|
|
11618
|
-
|
|
11618
|
+
N(this, "getPostsByStaffMember", (n) => _(this, null, function* () {
|
|
11619
11619
|
const r = "/posts/staff?", i = yield this.getToken();
|
|
11620
11620
|
return yield fetch(this.discussionsApiBaseUrl + r + new URLSearchParams(k(k({}, this.mainQueryParams), n)), {
|
|
11621
11621
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + i })
|
|
11622
11622
|
});
|
|
11623
11623
|
}));
|
|
11624
|
-
|
|
11624
|
+
N(this, "getReportedPosts", (n) => _(this, null, function* () {
|
|
11625
11625
|
const r = "/posts/staff/reported?", i = yield this.getToken();
|
|
11626
11626
|
return yield fetch(this.discussionsApiBaseUrl + r + new URLSearchParams(k(k({}, this.mainQueryParams), n)), {
|
|
11627
11627
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + i })
|
|
11628
11628
|
});
|
|
11629
11629
|
}));
|
|
11630
|
-
|
|
11630
|
+
N(this, "updateDiscussionsFeature", (n) => _(this, null, function* () {
|
|
11631
11631
|
const r = `/clients/${this.clientId}/features/discussions?`, i = yield this.getToken();
|
|
11632
11632
|
return yield fetch(this.clientApiBaseUrl + r + new URLSearchParams({ key: this.apiKey }), {
|
|
11633
11633
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + i }),
|
|
@@ -11635,7 +11635,7 @@ class B1 extends A1 {
|
|
|
11635
11635
|
body: JSON.stringify(n)
|
|
11636
11636
|
});
|
|
11637
11637
|
}));
|
|
11638
|
-
|
|
11638
|
+
N(this, "updateProfilePreferences", (n) => _(this, null, function* () {
|
|
11639
11639
|
const r = `/clients/${this.clientId}/features/profile_preferences?`, i = yield this.getToken();
|
|
11640
11640
|
return yield fetch(this.clientApiBaseUrl + r + new URLSearchParams({ key: this.apiKey }), {
|
|
11641
11641
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + i }),
|
|
@@ -11643,13 +11643,13 @@ class B1 extends A1 {
|
|
|
11643
11643
|
body: JSON.stringify(n)
|
|
11644
11644
|
});
|
|
11645
11645
|
}));
|
|
11646
|
-
|
|
11646
|
+
N(this, "getClientBadges", () => _(this, null, function* () {
|
|
11647
11647
|
const n = `/clients/${this.clientId}/features/loyalty/badges?`, r = { key: this.apiKey }, i = yield this.getToken();
|
|
11648
11648
|
return yield fetch(this.clientApiBaseUrl + n + new URLSearchParams(r), {
|
|
11649
11649
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + i })
|
|
11650
11650
|
});
|
|
11651
11651
|
}));
|
|
11652
|
-
|
|
11652
|
+
N(this, "updateClientBadges", (n) => _(this, null, function* () {
|
|
11653
11653
|
const r = `/clients/${this.clientId}/features/loyalty/badges?`, i = yield this.getToken();
|
|
11654
11654
|
return yield fetch(this.clientApiBaseUrl + r + new URLSearchParams({ key: this.apiKey }), {
|
|
11655
11655
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + i }),
|
|
@@ -11657,7 +11657,7 @@ class B1 extends A1 {
|
|
|
11657
11657
|
body: JSON.stringify(n)
|
|
11658
11658
|
});
|
|
11659
11659
|
}));
|
|
11660
|
-
|
|
11660
|
+
N(this, "getEngagementThroughPredictionsReport", (n, r, i) => _(this, null, function* () {
|
|
11661
11661
|
const o = "/predictions/football/engagements?", a = q(k({}, this.mainQueryParams), {
|
|
11662
11662
|
from_date: r,
|
|
11663
11663
|
to_date: i,
|
|
@@ -11667,7 +11667,7 @@ class B1 extends A1 {
|
|
|
11667
11667
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + l })
|
|
11668
11668
|
});
|
|
11669
11669
|
}));
|
|
11670
|
-
|
|
11670
|
+
N(this, "createPersonalityQuiz", (n) => _(this, null, function* () {
|
|
11671
11671
|
const r = "/personality-quizzes?", i = yield this.getToken();
|
|
11672
11672
|
return yield fetch(this.miniGamesApiBaseUrl + r + new URLSearchParams(this.mainQueryParams), {
|
|
11673
11673
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + i }),
|
|
@@ -11675,7 +11675,7 @@ class B1 extends A1 {
|
|
|
11675
11675
|
body: JSON.stringify(n)
|
|
11676
11676
|
});
|
|
11677
11677
|
}));
|
|
11678
|
-
|
|
11678
|
+
N(this, "updatePersonalityQuiz", (n, r) => _(this, null, function* () {
|
|
11679
11679
|
const i = `/personality-quizzes/${n}?`, o = yield this.getToken();
|
|
11680
11680
|
return yield fetch(this.miniGamesApiBaseUrl + i + new URLSearchParams(this.mainQueryParams), {
|
|
11681
11681
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + o }),
|
|
@@ -11683,14 +11683,14 @@ class B1 extends A1 {
|
|
|
11683
11683
|
body: JSON.stringify(r)
|
|
11684
11684
|
});
|
|
11685
11685
|
}));
|
|
11686
|
-
|
|
11686
|
+
N(this, "deletePersonalityQuiz", (n) => _(this, null, function* () {
|
|
11687
11687
|
const r = `/personality-quizzes/${n}?`, i = yield this.getToken();
|
|
11688
11688
|
return yield fetch(this.miniGamesApiBaseUrl + r + new URLSearchParams(this.mainQueryParams), {
|
|
11689
11689
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + i }),
|
|
11690
11690
|
method: "DELETE"
|
|
11691
11691
|
});
|
|
11692
11692
|
}));
|
|
11693
|
-
|
|
11693
|
+
N(this, "generatePostMatchQuiz", (n) => _(this, null, function* () {
|
|
11694
11694
|
const r = "/classic-quizzes/post-match?", i = q(k({}, this.mainQueryParams), {
|
|
11695
11695
|
sport_type: n.sportType,
|
|
11696
11696
|
lang: n.lang,
|
|
@@ -11702,7 +11702,7 @@ class B1 extends A1 {
|
|
|
11702
11702
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + o })
|
|
11703
11703
|
});
|
|
11704
11704
|
}));
|
|
11705
|
-
|
|
11705
|
+
N(this, "generatePreMatchQuiz", (n) => _(this, null, function* () {
|
|
11706
11706
|
const r = "/classic-quizzes/pre-match?", i = q(k({}, this.mainQueryParams), {
|
|
11707
11707
|
sport_type: n.sportType,
|
|
11708
11708
|
lang: n.lang,
|
|
@@ -11713,7 +11713,7 @@ class B1 extends A1 {
|
|
|
11713
11713
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + o })
|
|
11714
11714
|
});
|
|
11715
11715
|
}));
|
|
11716
|
-
|
|
11716
|
+
N(this, "generateHalfTimeMatchQuiz", (n) => _(this, null, function* () {
|
|
11717
11717
|
const r = "/classic-quizzes/halftime?", i = q(k({}, this.mainQueryParams), {
|
|
11718
11718
|
sport_type: "football",
|
|
11719
11719
|
lang: n.lang,
|
|
@@ -11724,7 +11724,7 @@ class B1 extends A1 {
|
|
|
11724
11724
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + o })
|
|
11725
11725
|
});
|
|
11726
11726
|
}));
|
|
11727
|
-
|
|
11727
|
+
N(this, "generatePostMatchPoll", (n) => _(this, null, function* () {
|
|
11728
11728
|
const r = "/polls/post-match?", i = q(k({}, this.mainQueryParams), {
|
|
11729
11729
|
lang: n.lang,
|
|
11730
11730
|
event_id: n.eventId
|
|
@@ -11735,7 +11735,7 @@ class B1 extends A1 {
|
|
|
11735
11735
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + o })
|
|
11736
11736
|
});
|
|
11737
11737
|
}));
|
|
11738
|
-
|
|
11738
|
+
N(this, "createEventGame", (n) => _(this, null, function* () {
|
|
11739
11739
|
const r = "/custom/event?", i = yield this.getToken();
|
|
11740
11740
|
return yield fetch(this.predictionBaseUrl + r + new URLSearchParams(this.mainQueryParams), {
|
|
11741
11741
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + i }),
|
|
@@ -11743,7 +11743,7 @@ class B1 extends A1 {
|
|
|
11743
11743
|
body: JSON.stringify(n)
|
|
11744
11744
|
});
|
|
11745
11745
|
}));
|
|
11746
|
-
|
|
11746
|
+
N(this, "updateEventGame", (n, r) => _(this, null, function* () {
|
|
11747
11747
|
const i = `/custom/event/${n}?`, o = yield this.getToken();
|
|
11748
11748
|
return yield fetch(this.predictionBaseUrl + i + new URLSearchParams(this.mainQueryParams), {
|
|
11749
11749
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + o }),
|
|
@@ -11751,14 +11751,14 @@ class B1 extends A1 {
|
|
|
11751
11751
|
body: JSON.stringify(r)
|
|
11752
11752
|
});
|
|
11753
11753
|
}));
|
|
11754
|
-
|
|
11754
|
+
N(this, "resolveEventGamePredictions", (n) => _(this, null, function* () {
|
|
11755
11755
|
const r = "/custom/event/resolve?", o = yield this.getToken();
|
|
11756
11756
|
return yield fetch(this.customResolverUrl + r + new URLSearchParams({ client_id: this.clientId, game_id: n }), {
|
|
11757
11757
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + o }),
|
|
11758
11758
|
signal: AbortSignal.timeout(6e5)
|
|
11759
11759
|
});
|
|
11760
11760
|
}));
|
|
11761
|
-
|
|
11761
|
+
N(this, "createBrandingTemplate", (n) => _(this, null, function* () {
|
|
11762
11762
|
const r = `/clients/${this.clientId}/templates/brandings?`, i = { key: this.apiKey }, o = yield this.getToken();
|
|
11763
11763
|
return yield fetch(this.clientApiBaseUrl + r + new URLSearchParams(i), {
|
|
11764
11764
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + o }),
|
|
@@ -11766,7 +11766,7 @@ class B1 extends A1 {
|
|
|
11766
11766
|
body: JSON.stringify(n)
|
|
11767
11767
|
});
|
|
11768
11768
|
}));
|
|
11769
|
-
|
|
11769
|
+
N(this, "updateBrandingTemplate", (n, r) => _(this, null, function* () {
|
|
11770
11770
|
const i = `/clients/${this.clientId}/templates/brandings/${n}?`, o = { key: this.apiKey }, a = yield this.getToken();
|
|
11771
11771
|
return yield fetch(this.clientApiBaseUrl + i + new URLSearchParams(o), {
|
|
11772
11772
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + a }),
|
|
@@ -11774,38 +11774,38 @@ class B1 extends A1 {
|
|
|
11774
11774
|
body: JSON.stringify(r)
|
|
11775
11775
|
});
|
|
11776
11776
|
}));
|
|
11777
|
-
|
|
11777
|
+
N(this, "deleteBrandingTemplate", (n) => _(this, null, function* () {
|
|
11778
11778
|
const r = `/clients/${this.clientId}/templates/brandings/${n}?`, i = { key: this.apiKey }, o = yield this.getToken();
|
|
11779
11779
|
return yield fetch(this.clientApiBaseUrl + r + new URLSearchParams(i), {
|
|
11780
11780
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + o }),
|
|
11781
11781
|
method: "DELETE"
|
|
11782
11782
|
});
|
|
11783
11783
|
}));
|
|
11784
|
-
|
|
11784
|
+
N(this, "getBrandingTemplates", (n, r) => _(this, null, function* () {
|
|
11785
11785
|
const i = `/clients/${this.clientId}/templates/brandings?`, o = { key: this.apiKey };
|
|
11786
11786
|
return n && n.length > 0 && (o.branding_ids = n.join(",")), r && (o.disable_cache = Date.now().toString()), yield fetch(this.clientApiBaseUrl + i + new URLSearchParams(o), {
|
|
11787
11787
|
headers: this.headers
|
|
11788
11788
|
});
|
|
11789
11789
|
}));
|
|
11790
|
-
|
|
11790
|
+
N(this, "getBrandingTemplateById", (n, r) => _(this, null, function* () {
|
|
11791
11791
|
const i = `/clients/${this.clientId}/templates/brandings/${n}?`, o = { key: this.apiKey };
|
|
11792
11792
|
return r && (o.disable_cache = Date.now().toString()), yield fetch(this.clientApiBaseUrl + i + new URLSearchParams(o), {
|
|
11793
11793
|
headers: this.headers
|
|
11794
11794
|
});
|
|
11795
11795
|
}));
|
|
11796
|
-
|
|
11796
|
+
N(this, "getWidgetConfigurations", (n) => _(this, null, function* () {
|
|
11797
11797
|
const r = `/clients/${this.clientId}/config/widgets?`, i = { key: this.apiKey };
|
|
11798
11798
|
return n && (i.disable_cache = Date.now().toString()), yield fetch(this.clientApiBaseUrl + r + new URLSearchParams(i), {
|
|
11799
11799
|
headers: this.headers
|
|
11800
11800
|
});
|
|
11801
11801
|
}));
|
|
11802
|
-
|
|
11802
|
+
N(this, "getWidgetConfigurationById", (n, r) => _(this, null, function* () {
|
|
11803
11803
|
const i = `/clients/${this.clientId}/config/widgets/${n}?`, o = { key: this.apiKey };
|
|
11804
11804
|
return r && (o.disable_cache = Date.now().toString()), yield fetch(this.clientApiBaseUrl + i + new URLSearchParams(o), {
|
|
11805
11805
|
headers: this.headers
|
|
11806
11806
|
});
|
|
11807
11807
|
}));
|
|
11808
|
-
|
|
11808
|
+
N(this, "createWidgetConfiguration", (n) => _(this, null, function* () {
|
|
11809
11809
|
const r = `/clients/${this.clientId}/config/widgets?`, i = yield this.getToken(), o = { key: this.apiKey };
|
|
11810
11810
|
return yield fetch(this.clientApiBaseUrl + r + new URLSearchParams(o), {
|
|
11811
11811
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + i }),
|
|
@@ -11813,7 +11813,7 @@ class B1 extends A1 {
|
|
|
11813
11813
|
body: JSON.stringify(n)
|
|
11814
11814
|
});
|
|
11815
11815
|
}));
|
|
11816
|
-
|
|
11816
|
+
N(this, "updateWidgetConfiguration", (n, r) => _(this, null, function* () {
|
|
11817
11817
|
const i = `/clients/${this.clientId}/config/widgets/${n}?`, o = yield this.getToken(), a = { key: this.apiKey };
|
|
11818
11818
|
return yield fetch(this.clientApiBaseUrl + i + new URLSearchParams(a), {
|
|
11819
11819
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + o }),
|
|
@@ -11821,26 +11821,26 @@ class B1 extends A1 {
|
|
|
11821
11821
|
body: JSON.stringify(r)
|
|
11822
11822
|
});
|
|
11823
11823
|
}));
|
|
11824
|
-
|
|
11824
|
+
N(this, "deleteWidgetConfiguration", (n) => _(this, null, function* () {
|
|
11825
11825
|
const r = `/clients/${this.clientId}/config/widgets/${n}?`, i = yield this.getToken(), o = { key: this.apiKey };
|
|
11826
11826
|
return yield fetch(this.clientApiBaseUrl + r + new URLSearchParams(o), {
|
|
11827
11827
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + i }),
|
|
11828
11828
|
method: "DELETE"
|
|
11829
11829
|
});
|
|
11830
11830
|
}));
|
|
11831
|
-
|
|
11831
|
+
N(this, "getInfoPages", (n, r) => _(this, null, function* () {
|
|
11832
11832
|
const i = `/clients/${this.clientId}/info-pages?`, o = { key: this.apiKey };
|
|
11833
11833
|
return n && (o.limit = n.limit.toString(), n.startAfter && (o.start_after = n.startAfter), n.sortOrder && (o.sort_order = n.sortOrder), n.infoPageIds && n.infoPageIds.length > 0 && (o.info_page_ids = n.infoPageIds.join(","))), r && (o.disable_cache = Date.now().toString()), yield fetch(this.clientApiBaseUrl + i + new URLSearchParams(o), {
|
|
11834
11834
|
headers: this.headers
|
|
11835
11835
|
});
|
|
11836
11836
|
}));
|
|
11837
|
-
|
|
11837
|
+
N(this, "getInfoPageById", (n, r) => _(this, null, function* () {
|
|
11838
11838
|
const i = `/clients/${this.clientId}/info-pages/${n}?`, o = { key: this.apiKey };
|
|
11839
11839
|
return r && (o.disable_cache = Date.now().toString()), yield fetch(this.clientApiBaseUrl + i + new URLSearchParams(o), {
|
|
11840
11840
|
headers: this.headers
|
|
11841
11841
|
});
|
|
11842
11842
|
}));
|
|
11843
|
-
|
|
11843
|
+
N(this, "createInfoPage", (n) => _(this, null, function* () {
|
|
11844
11844
|
const r = `/clients/${this.clientId}/info-pages?`, i = yield this.getToken(), o = { key: this.apiKey };
|
|
11845
11845
|
return yield fetch(this.clientApiBaseUrl + r + new URLSearchParams(o), {
|
|
11846
11846
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + i }),
|
|
@@ -11848,7 +11848,7 @@ class B1 extends A1 {
|
|
|
11848
11848
|
body: JSON.stringify(n)
|
|
11849
11849
|
});
|
|
11850
11850
|
}));
|
|
11851
|
-
|
|
11851
|
+
N(this, "updateInfoPage", (n, r) => _(this, null, function* () {
|
|
11852
11852
|
const i = `/clients/${this.clientId}/info-pages/${n}?`, o = yield this.getToken(), a = { key: this.apiKey };
|
|
11853
11853
|
return yield fetch(this.clientApiBaseUrl + i + new URLSearchParams(a), {
|
|
11854
11854
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + o }),
|
|
@@ -11856,14 +11856,14 @@ class B1 extends A1 {
|
|
|
11856
11856
|
body: JSON.stringify(r)
|
|
11857
11857
|
});
|
|
11858
11858
|
}));
|
|
11859
|
-
|
|
11859
|
+
N(this, "deleteInfoPage", (n) => _(this, null, function* () {
|
|
11860
11860
|
const r = `/clients/${this.clientId}/info-pages/${n}?`, i = yield this.getToken(), o = { key: this.apiKey };
|
|
11861
11861
|
return yield fetch(this.clientApiBaseUrl + r + new URLSearchParams(o), {
|
|
11862
11862
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + i }),
|
|
11863
11863
|
method: "DELETE"
|
|
11864
11864
|
});
|
|
11865
11865
|
}));
|
|
11866
|
-
|
|
11866
|
+
N(this, "exportClassicQuizParticipations", (n) => _(this, null, function* () {
|
|
11867
11867
|
const r = `/exports/classic-quizzes/${n}/participations?`, i = yield this.getToken();
|
|
11868
11868
|
return yield fetch(this.miniGamesApiBaseUrl + r + new URLSearchParams(this.mainQueryParams), {
|
|
11869
11869
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + i })
|
|
@@ -11876,16 +11876,25 @@ class B1 extends A1 {
|
|
|
11876
11876
|
* and the proxy returns 404 in that case, so treat a 404 as an empty list when
|
|
11877
11877
|
* targeting a client. On the global catalogue a 404 is a real misconfiguration.
|
|
11878
11878
|
*/
|
|
11879
|
-
|
|
11879
|
+
N(this, "getSportEntities", (l, ...c) => _(this, [l, ...c], function* (n, { page: r = 1, limit: i = 10, sport: o } = {}, a = this.clientId) {
|
|
11880
11880
|
const u = `${this.resolveSportEntityIndex(n, a)}/_search`, h = yield this.getToken();
|
|
11881
11881
|
return yield fetch(this.ikebanaProxyBaseUrl + u, {
|
|
11882
11882
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + h }),
|
|
11883
11883
|
method: "POST",
|
|
11884
11884
|
body: JSON.stringify({
|
|
11885
|
-
query: this.buildSportEntityBrowseQuery(o),
|
|
11885
|
+
query: this.withPopularityRanking(this.buildSportEntityBrowseQuery(o)),
|
|
11886
11886
|
size: i,
|
|
11887
11887
|
from: (r - 1) * i,
|
|
11888
|
-
|
|
11888
|
+
// Score first, so the page is ordered by popularity exactly as a search
|
|
11889
|
+
// is. This used to sort on `_doc` alone, which is index order: an
|
|
11890
|
+
// explicit sort replaces relevance entirely, so the popularity ranking
|
|
11891
|
+
// would have been computed and then thrown away.
|
|
11892
|
+
//
|
|
11893
|
+
// `_doc` stays as the tiebreaker. Most entity types carry no popularity
|
|
11894
|
+
// at all and so score identically, and without a stable second key
|
|
11895
|
+
// their order could differ between two requests - which during paging
|
|
11896
|
+
// shows the same entity twice and hides another.
|
|
11897
|
+
sort: [{ _score: "desc" }, { _doc: "asc" }]
|
|
11889
11898
|
})
|
|
11890
11899
|
});
|
|
11891
11900
|
}));
|
|
@@ -11902,7 +11911,7 @@ class B1 extends A1 {
|
|
|
11902
11911
|
* A blank or whitespace-only sport is treated as no filter, so an "All sports"
|
|
11903
11912
|
* option can pass its value through without the caller special-casing it.
|
|
11904
11913
|
*/
|
|
11905
|
-
|
|
11914
|
+
N(this, "buildSportEntityBrowseQuery", (n) => {
|
|
11906
11915
|
const r = String(n != null ? n : "").trim().toUpperCase().replace(/\s+/g, "_");
|
|
11907
11916
|
return r ? { bool: { filter: [{ term: { sport: r } }] } } : { match_all: {} };
|
|
11908
11917
|
});
|
|
@@ -11912,47 +11921,56 @@ class B1 extends A1 {
|
|
|
11912
11921
|
* A query containing ':' is treated as an exact id lookup, since entity ids
|
|
11913
11922
|
* look like `fb:c:123` and an analyzed match on them is unreliable.
|
|
11914
11923
|
*/
|
|
11915
|
-
|
|
11924
|
+
N(this, "searchSportEntities", (a, l, ...c) => _(this, [a, l, ...c], function* (n, r, i = 100, o = this.clientId) {
|
|
11916
11925
|
const u = `${this.resolveSportEntityIndex(r, o)}/_search`, h = yield this.getToken(), d = n.includes(":") ? { term: { id: n } } : {
|
|
11917
11926
|
multi_match: {
|
|
11918
11927
|
query: n,
|
|
11919
|
-
// best_fields, not cross_fields: the terms all describe the same
|
|
11920
|
-
// entity, so the strongest single field should win rather than the
|
|
11921
|
-
// terms being spread across several.
|
|
11922
11928
|
type: "best_fields",
|
|
11923
11929
|
operator: "and",
|
|
11924
|
-
// The `.autocomplete` subfields are edge_ngram'd, which is what makes
|
|
11925
|
-
// this behave like a search box rather than a whole-word lookup.
|
|
11926
|
-
// Against the bare fields alone the standard analyzer only matches
|
|
11927
|
-
// complete tokens, so "La Liga" is findable by "La" and by its full
|
|
11928
|
-
// name but not by "L" or "La Li" - every partial word after the first
|
|
11929
|
-
// silently drops the result.
|
|
11930
|
-
//
|
|
11931
|
-
// The bare fields are kept alongside as a fallback: indices created
|
|
11932
|
-
// before the search-entities template existed have no `.autocomplete`
|
|
11933
|
-
// subfield, and multi_match ignores unmapped fields rather than
|
|
11934
|
-
// failing, so those indices keep working with whole-token matching.
|
|
11935
|
-
//
|
|
11936
|
-
// search_title outranks search_variations because a name match is a
|
|
11937
|
-
// better answer than an alias match.
|
|
11938
11930
|
fields: ["search_title.autocomplete^3", "search_variations.autocomplete", "search_title^2", "search_variations"]
|
|
11939
11931
|
}
|
|
11940
11932
|
};
|
|
11941
11933
|
return yield fetch(this.ikebanaProxyBaseUrl + u, {
|
|
11942
11934
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + h }),
|
|
11943
11935
|
method: "POST",
|
|
11944
|
-
body: JSON.stringify({ query: d, size: i })
|
|
11936
|
+
body: JSON.stringify({ query: this.withPopularityRanking(d), size: i })
|
|
11945
11937
|
});
|
|
11946
11938
|
}));
|
|
11939
|
+
/**
|
|
11940
|
+
* Rank by popularity the way the Search API does.
|
|
11941
|
+
*
|
|
11942
|
+
* `/entities/search` wraps its query in exactly this `function_score`, so a
|
|
11943
|
+
* management search that omits it lists entities in a different order from the
|
|
11944
|
+
* one every consuming app sees - the editor would disagree with production
|
|
11945
|
+
* about which Premier League is the obvious one.
|
|
11946
|
+
*
|
|
11947
|
+
* The settings are copied deliberately rather than tuned:
|
|
11948
|
+
* - `modifier: none` and `factor: 1` make the score a straight multiplication
|
|
11949
|
+
* by `popularity`, not a log or a scaled curve.
|
|
11950
|
+
* - `missing: 1` leaves documents without a `popularity` scored as they were,
|
|
11951
|
+
* rather than zeroing them. Most types carry no popularity today, so any
|
|
11952
|
+
* other value here would silently bury them.
|
|
11953
|
+
* - `boost_mode: multiply` keeps text relevance in charge and lets popularity
|
|
11954
|
+
* decide between comparable matches.
|
|
11955
|
+
*
|
|
11956
|
+
* Keep in step with ElasticsearchService#buildEntitySearchQuery in search-api.
|
|
11957
|
+
*/
|
|
11958
|
+
N(this, "withPopularityRanking", (n) => ({
|
|
11959
|
+
function_score: {
|
|
11960
|
+
query: n,
|
|
11961
|
+
field_value_factor: { field: "popularity", modifier: "none", factor: 1, missing: 1 },
|
|
11962
|
+
boost_mode: "multiply"
|
|
11963
|
+
}
|
|
11964
|
+
}));
|
|
11947
11965
|
/** Fetch a single sport entity. Returns 404 when it does not exist. */
|
|
11948
|
-
|
|
11966
|
+
N(this, "getSportEntity", (o, a, ...l) => _(this, [o, a, ...l], function* (n, r, i = this.clientId) {
|
|
11949
11967
|
const c = `${this.resolveSportEntityIndex(r, i)}/_doc/${encodeURIComponent(n)}`, u = yield this.getToken();
|
|
11950
11968
|
return yield fetch(this.ikebanaProxyBaseUrl + c, {
|
|
11951
11969
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + u })
|
|
11952
11970
|
});
|
|
11953
11971
|
}));
|
|
11954
11972
|
/** Count sport entities in the global catalogue or a client overlay. */
|
|
11955
|
-
|
|
11973
|
+
N(this, "countSportEntities", (i, ...o) => _(this, [i, ...o], function* (n, r = this.clientId) {
|
|
11956
11974
|
const a = `${this.resolveSportEntityIndex(n, r)}/_count`, l = yield this.getToken();
|
|
11957
11975
|
return yield fetch(this.ikebanaProxyBaseUrl + a, {
|
|
11958
11976
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + l })
|
|
@@ -11965,7 +11983,7 @@ class B1 extends A1 {
|
|
|
11965
11983
|
* how the Search API resolves it - so pass the same `id` plus a `clientId`.
|
|
11966
11984
|
* Writing to the global catalogue requires the `platform_operator` role.
|
|
11967
11985
|
*/
|
|
11968
|
-
|
|
11986
|
+
N(this, "createSportEntity", (o, a, ...l) => _(this, [o, a, ...l], function* (n, r, i = this.clientId) {
|
|
11969
11987
|
const c = `${this.resolveSportEntityIndex(r, i)}/_doc/${encodeURIComponent(n.id)}`, u = yield this.getToken();
|
|
11970
11988
|
return yield fetch(this.ikebanaProxyBaseUrl + c, {
|
|
11971
11989
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + u }),
|
|
@@ -11974,7 +11992,7 @@ class B1 extends A1 {
|
|
|
11974
11992
|
});
|
|
11975
11993
|
}));
|
|
11976
11994
|
/** Update a sport entity. A full-document upsert - there is no partial update. */
|
|
11977
|
-
|
|
11995
|
+
N(this, "updateSportEntity", (a, l, c, ...u) => _(this, [a, l, c, ...u], function* (n, r, i, o = this.clientId) {
|
|
11978
11996
|
const h = `${this.resolveSportEntityIndex(i, o)}/_doc/${encodeURIComponent(n)}`, d = yield this.getToken();
|
|
11979
11997
|
return yield fetch(this.ikebanaProxyBaseUrl + h, {
|
|
11980
11998
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + d }),
|
|
@@ -11988,7 +12006,7 @@ class B1 extends A1 {
|
|
|
11988
12006
|
* With a `clientId` this removes only that client's override and leaves the
|
|
11989
12007
|
* global entity untouched.
|
|
11990
12008
|
*/
|
|
11991
|
-
|
|
12009
|
+
N(this, "deleteSportEntity", (o, a, ...l) => _(this, [o, a, ...l], function* (n, r, i = this.clientId) {
|
|
11992
12010
|
const c = `${this.resolveSportEntityIndex(r, i)}/_doc/${encodeURIComponent(n)}`, u = yield this.getToken();
|
|
11993
12011
|
return yield fetch(this.ikebanaProxyBaseUrl + c, {
|
|
11994
12012
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + u }),
|
|
@@ -12012,7 +12030,7 @@ class B1 extends A1 {
|
|
|
12012
12030
|
* Accepts PNG, JPG, GIF, SVG, WebP, BMP and TIFF up to 20 MB; anything else is
|
|
12013
12031
|
* rejected by the proxy with 415 or 413.
|
|
12014
12032
|
*/
|
|
12015
|
-
|
|
12033
|
+
N(this, "uploadSportEntityAsset", (n, r, i) => _(this, null, function* () {
|
|
12016
12034
|
const o = { entityId: r };
|
|
12017
12035
|
i && (o.assetKey = i), n instanceof File && n.name && (o.filename = n.name);
|
|
12018
12036
|
const a = yield this.getToken();
|
|
@@ -12034,7 +12052,7 @@ class B1 extends A1 {
|
|
|
12034
12052
|
* refused - the proxy is doing the fetching, so an unguarded URL here would be
|
|
12035
12053
|
* an SSRF vector into its network.
|
|
12036
12054
|
*/
|
|
12037
|
-
|
|
12055
|
+
N(this, "importSportEntityAssetFromUrl", (n, r, i) => _(this, null, function* () {
|
|
12038
12056
|
const o = yield this.getToken();
|
|
12039
12057
|
return yield fetch(this.ikebanaGcpBaseUrl + "upload", {
|
|
12040
12058
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + o }),
|
|
@@ -12054,7 +12072,7 @@ class B1 extends A1 {
|
|
|
12054
12072
|
* global write or another client's - which the proxy rejects with a 400, and
|
|
12055
12073
|
* which would otherwise produce an override the Search API silently never serves.
|
|
12056
12074
|
*/
|
|
12057
|
-
|
|
12075
|
+
N(this, "buildSportEntityWriteBody", (n, r) => {
|
|
12058
12076
|
const i = k({}, n);
|
|
12059
12077
|
return delete i._id, delete i.client_id, r && (i.client_id = r.toLowerCase()), i;
|
|
12060
12078
|
});
|
|
@@ -12079,7 +12097,7 @@ class B1 extends A1 {
|
|
|
12079
12097
|
* mixed-case id would also diverge the index name from the stored `client_id`,
|
|
12080
12098
|
* which makes the override invisible to the Search API's exact term filter.
|
|
12081
12099
|
*/
|
|
12082
|
-
|
|
12100
|
+
N(this, "resolveSportEntityIndex", (n, r) => {
|
|
12083
12101
|
const i = `search-entities-${n}`;
|
|
12084
12102
|
return r ? `${i}-${r.toLowerCase()}` : i;
|
|
12085
12103
|
});
|
|
@@ -13136,7 +13154,7 @@ function $T(e) {
|
|
|
13136
13154
|
key: X.key,
|
|
13137
13155
|
event: X
|
|
13138
13156
|
}), J(X);
|
|
13139
|
-
},
|
|
13157
|
+
}, z = (ae) => (X) => {
|
|
13140
13158
|
var se, re;
|
|
13141
13159
|
(se = ae.onBlur) == null || se.call(ae, X), !X.defaultMuiPrevented && ((re = A.current) != null && re.contains(X.relatedTarget) || O({
|
|
13142
13160
|
type: Nt.blur,
|
|
@@ -13149,7 +13167,7 @@ function $T(e) {
|
|
|
13149
13167
|
tabIndex: i === "DOM" ? -1 : 0,
|
|
13150
13168
|
ref: S
|
|
13151
13169
|
}, X, {
|
|
13152
|
-
onBlur:
|
|
13170
|
+
onBlur: z(X),
|
|
13153
13171
|
onKeyDown: M(X)
|
|
13154
13172
|
});
|
|
13155
13173
|
}, Z = K.useCallback((ae) => {
|
|
@@ -15523,7 +15541,7 @@ function j_(e) {
|
|
|
15523
15541
|
getCssVar: v,
|
|
15524
15542
|
spacing: zv(m)
|
|
15525
15543
|
});
|
|
15526
|
-
function
|
|
15544
|
+
function z(X, se) {
|
|
15527
15545
|
Object.keys(se).forEach((re) => {
|
|
15528
15546
|
const ne = {
|
|
15529
15547
|
main: "500",
|
|
@@ -15534,7 +15552,7 @@ function j_(e) {
|
|
|
15534
15552
|
});
|
|
15535
15553
|
}
|
|
15536
15554
|
Object.entries(M.colorSchemes).forEach(([X, se]) => {
|
|
15537
|
-
|
|
15555
|
+
z(X, se.palette);
|
|
15538
15556
|
});
|
|
15539
15557
|
const V = {
|
|
15540
15558
|
prefix: f,
|
|
@@ -15824,12 +15842,12 @@ const Gv = ht("MuiListItem", ["root", "startAction", "endAction", "nested", "nes
|
|
|
15824
15842
|
children: [b && /* @__PURE__ */ s.jsx(O, $({}, F, {
|
|
15825
15843
|
children: b
|
|
15826
15844
|
})), K.Children.map(d, (P, M) => {
|
|
15827
|
-
var
|
|
15845
|
+
var z;
|
|
15828
15846
|
return /* @__PURE__ */ K.isValidElement(P) ? /* @__PURE__ */ K.cloneElement(P, $({}, M === 0 && {
|
|
15829
15847
|
"data-first-child": ""
|
|
15830
15848
|
}, Cv(P, ["ListItem"]) && {
|
|
15831
15849
|
// The ListItem of ListItem should not be 'li'
|
|
15832
|
-
component: ((
|
|
15850
|
+
component: ((z = P.props) == null ? void 0 : z.component) || "div"
|
|
15833
15851
|
})) : P;
|
|
15834
15852
|
}), I && /* @__PURE__ */ s.jsx(W, $({}, J, {
|
|
15835
15853
|
children: I
|
|
@@ -20455,7 +20473,7 @@ const IR = (e) => (t) => {
|
|
|
20455
20473
|
getSlotProps: m,
|
|
20456
20474
|
externalForwardedProps: W,
|
|
20457
20475
|
ownerState: O
|
|
20458
|
-
}), [M,
|
|
20476
|
+
}), [M, z] = ze("input", $({}, b && {
|
|
20459
20477
|
additionalProps: {
|
|
20460
20478
|
id: b.htmlFor,
|
|
20461
20479
|
"aria-describedby": b["aria-describedby"]
|
|
@@ -20481,7 +20499,7 @@ const IR = (e) => (t) => {
|
|
|
20481
20499
|
return /* @__PURE__ */ s.jsxs(J, $({}, P, {
|
|
20482
20500
|
children: [S && /* @__PURE__ */ s.jsx(V, $({}, Z, {
|
|
20483
20501
|
children: S
|
|
20484
|
-
})), /* @__PURE__ */ s.jsx(M, $({},
|
|
20502
|
+
})), /* @__PURE__ */ s.jsx(M, $({}, z)), R && /* @__PURE__ */ s.jsx(oe, $({}, ae, {
|
|
20485
20503
|
children: R
|
|
20486
20504
|
}))]
|
|
20487
20505
|
}));
|
|
@@ -20964,7 +20982,7 @@ const GR = ht("MuiButton", ["root", "colorPrimary", "colorNeutral", "colorDanger
|
|
|
20964
20982
|
component: I,
|
|
20965
20983
|
slots: w,
|
|
20966
20984
|
slotProps: v
|
|
20967
|
-
}), [M,
|
|
20985
|
+
}), [M, z] = ze("root", {
|
|
20968
20986
|
ref: n,
|
|
20969
20987
|
className: F.root,
|
|
20970
20988
|
elementType: ZR,
|
|
@@ -20991,7 +21009,7 @@ const GR = ht("MuiButton", ["root", "colorPrimary", "colorNeutral", "colorDanger
|
|
|
20991
21009
|
externalForwardedProps: P,
|
|
20992
21010
|
ownerState: O
|
|
20993
21011
|
});
|
|
20994
|
-
return /* @__PURE__ */ s.jsxs(M, $({},
|
|
21012
|
+
return /* @__PURE__ */ s.jsxs(M, $({}, z, {
|
|
20995
21013
|
children: [(d || p && m === "start") && /* @__PURE__ */ s.jsx(V, $({}, Z, {
|
|
20996
21014
|
children: p && m === "start" ? D : d
|
|
20997
21015
|
})), o, p && m === "center" && /* @__PURE__ */ s.jsx(X, $({}, se, {
|
|
@@ -21536,8 +21554,8 @@ function ch() {
|
|
|
21536
21554
|
var w = b + I, v = g[w];
|
|
21537
21555
|
g[w] = (v << 8 | v >>> 24) & 16711935 | (v << 24 | v >>> 8) & 4278255360;
|
|
21538
21556
|
}
|
|
21539
|
-
var x = this._hash.words, y = g[b + 0], C = g[b + 1], A = g[b + 2], S = g[b + 3], R = g[b + 4], L = g[b + 5], U = g[b + 6], T = g[b + 7], H = g[b + 8], Y = g[b + 9], E = g[b + 10], D = g[b + 11], O = g[b + 12], F = g[b + 13], W = g[b + 14], J = g[b + 15], P = x[0], M = x[1],
|
|
21540
|
-
P = d(P, M,
|
|
21557
|
+
var x = this._hash.words, y = g[b + 0], C = g[b + 1], A = g[b + 2], S = g[b + 3], R = g[b + 4], L = g[b + 5], U = g[b + 6], T = g[b + 7], H = g[b + 8], Y = g[b + 9], E = g[b + 10], D = g[b + 11], O = g[b + 12], F = g[b + 13], W = g[b + 14], J = g[b + 15], P = x[0], M = x[1], z = x[2], V = x[3];
|
|
21558
|
+
P = d(P, M, z, V, y, 7, u[0]), V = d(V, P, M, z, C, 12, u[1]), z = d(z, V, P, M, A, 17, u[2]), M = d(M, z, V, P, S, 22, u[3]), P = d(P, M, z, V, R, 7, u[4]), V = d(V, P, M, z, L, 12, u[5]), z = d(z, V, P, M, U, 17, u[6]), M = d(M, z, V, P, T, 22, u[7]), P = d(P, M, z, V, H, 7, u[8]), V = d(V, P, M, z, Y, 12, u[9]), z = d(z, V, P, M, E, 17, u[10]), M = d(M, z, V, P, D, 22, u[11]), P = d(P, M, z, V, O, 7, u[12]), V = d(V, P, M, z, F, 12, u[13]), z = d(z, V, P, M, W, 17, u[14]), M = d(M, z, V, P, J, 22, u[15]), P = f(P, M, z, V, C, 5, u[16]), V = f(V, P, M, z, U, 9, u[17]), z = f(z, V, P, M, D, 14, u[18]), M = f(M, z, V, P, y, 20, u[19]), P = f(P, M, z, V, L, 5, u[20]), V = f(V, P, M, z, E, 9, u[21]), z = f(z, V, P, M, J, 14, u[22]), M = f(M, z, V, P, R, 20, u[23]), P = f(P, M, z, V, Y, 5, u[24]), V = f(V, P, M, z, W, 9, u[25]), z = f(z, V, P, M, S, 14, u[26]), M = f(M, z, V, P, H, 20, u[27]), P = f(P, M, z, V, F, 5, u[28]), V = f(V, P, M, z, A, 9, u[29]), z = f(z, V, P, M, T, 14, u[30]), M = f(M, z, V, P, O, 20, u[31]), P = p(P, M, z, V, L, 4, u[32]), V = p(V, P, M, z, H, 11, u[33]), z = p(z, V, P, M, D, 16, u[34]), M = p(M, z, V, P, W, 23, u[35]), P = p(P, M, z, V, C, 4, u[36]), V = p(V, P, M, z, R, 11, u[37]), z = p(z, V, P, M, T, 16, u[38]), M = p(M, z, V, P, E, 23, u[39]), P = p(P, M, z, V, F, 4, u[40]), V = p(V, P, M, z, y, 11, u[41]), z = p(z, V, P, M, S, 16, u[42]), M = p(M, z, V, P, U, 23, u[43]), P = p(P, M, z, V, Y, 4, u[44]), V = p(V, P, M, z, O, 11, u[45]), z = p(z, V, P, M, J, 16, u[46]), M = p(M, z, V, P, A, 23, u[47]), P = m(P, M, z, V, y, 6, u[48]), V = m(V, P, M, z, T, 10, u[49]), z = m(z, V, P, M, W, 15, u[50]), M = m(M, z, V, P, L, 21, u[51]), P = m(P, M, z, V, O, 6, u[52]), V = m(V, P, M, z, S, 10, u[53]), z = m(z, V, P, M, E, 15, u[54]), M = m(M, z, V, P, C, 21, u[55]), P = m(P, M, z, V, H, 6, u[56]), V = m(V, P, M, z, J, 10, u[57]), z = m(z, V, P, M, U, 15, u[58]), M = m(M, z, V, P, F, 21, u[59]), P = m(P, M, z, V, R, 6, u[60]), V = m(V, P, M, z, D, 10, u[61]), z = m(z, V, P, M, A, 15, u[62]), M = m(M, z, V, P, Y, 21, u[63]), x[0] = x[0] + P | 0, x[1] = x[1] + M | 0, x[2] = x[2] + z | 0, x[3] = x[3] + V | 0;
|
|
21541
21559
|
},
|
|
21542
21560
|
_doFinalize: function() {
|
|
21543
21561
|
var g = this._data, b = g.words, I = this._nDataBytes * 8, w = g.sigBytes * 8;
|
|
@@ -21676,7 +21694,7 @@ var aO = wb.exports;
|
|
|
21676
21694
|
const sO = /* @__PURE__ */ Fn(aO);
|
|
21677
21695
|
class Ib {
|
|
21678
21696
|
constructor() {
|
|
21679
|
-
|
|
21697
|
+
N(this, "readFileAndHash", (t) => new Promise((n, r) => {
|
|
21680
21698
|
const i = new FileReader();
|
|
21681
21699
|
i.onload = (o) => {
|
|
21682
21700
|
const a = o.target.result, l = Uf.create(new Uint8Array(a)), u = zf(l).toString(sO);
|
|
@@ -21685,7 +21703,7 @@ class Ib {
|
|
|
21685
21703
|
r(o);
|
|
21686
21704
|
}, i.readAsArrayBuffer(t);
|
|
21687
21705
|
}));
|
|
21688
|
-
|
|
21706
|
+
N(this, "generateHashFileName", (t) => new Promise((n, r) => {
|
|
21689
21707
|
const i = new FileReader();
|
|
21690
21708
|
i.onload = (o) => {
|
|
21691
21709
|
const a = o.target.result, l = Uf.create(new Uint8Array(a)), c = zf(l).toString();
|
|
@@ -22788,7 +22806,7 @@ const Lb = ({ labels: e, open: t, imageSrc: n, resetDefaultImageUrl: r, toggleMo
|
|
|
22788
22806
|
}, A = new Ib(), S = tn(hl), R = () => {
|
|
22789
22807
|
g(""), u(!1);
|
|
22790
22808
|
}, L = (F) => {
|
|
22791
|
-
var P, M,
|
|
22809
|
+
var P, M, z, V, Z, oe;
|
|
22792
22810
|
let W = "", J = "primary";
|
|
22793
22811
|
switch (F) {
|
|
22794
22812
|
case "copy_url":
|
|
@@ -22801,7 +22819,7 @@ const Lb = ({ labels: e, open: t, imageSrc: n, resetDefaultImageUrl: r, toggleMo
|
|
|
22801
22819
|
W = (M = e.imageResetMessage) != null ? M : "", J = "primary";
|
|
22802
22820
|
break;
|
|
22803
22821
|
case "upload_success":
|
|
22804
|
-
W = (
|
|
22822
|
+
W = (z = e.uploadingImageMessage) != null ? z : "", J = "success";
|
|
22805
22823
|
break;
|
|
22806
22824
|
case "upload_failed":
|
|
22807
22825
|
W = (V = e.uploadingImageErrorMessage) != null ? V : "", J = "danger";
|
|
@@ -22824,12 +22842,12 @@ const Lb = ({ labels: e, open: t, imageSrc: n, resetDefaultImageUrl: r, toggleMo
|
|
|
22824
22842
|
if (W) {
|
|
22825
22843
|
l(!0);
|
|
22826
22844
|
try {
|
|
22827
|
-
const J = W.type.split("/")[1], P = yield A.readFileAndHash(W), M = (yield A.generateHashFileName(W)) + "." + J,
|
|
22845
|
+
const J = W.type.split("/")[1], P = yield A.readFileAndHash(W), M = (yield A.generateHashFileName(W)) + "." + J, z = {
|
|
22828
22846
|
image_type: J,
|
|
22829
22847
|
image_file_name: M,
|
|
22830
22848
|
image_size: W.size,
|
|
22831
22849
|
base64_sum: P
|
|
22832
|
-
}, V = yield S == null ? void 0 : S.https.generateSignedInUrl(
|
|
22850
|
+
}, V = yield S == null ? void 0 : S.https.generateSignedInUrl(z);
|
|
22833
22851
|
if (V != null && V.ok) {
|
|
22834
22852
|
const Z = yield V.json(), oe = { "Content-Type": W.type, "Content-MD5": P };
|
|
22835
22853
|
try {
|
|
@@ -22854,9 +22872,9 @@ const Lb = ({ labels: e, open: t, imageSrc: n, resetDefaultImageUrl: r, toggleMo
|
|
|
22854
22872
|
image_file_name: P,
|
|
22855
22873
|
image_size: F.size,
|
|
22856
22874
|
base64_sum: J
|
|
22857
|
-
},
|
|
22858
|
-
if (
|
|
22859
|
-
const V = yield
|
|
22875
|
+
}, z = yield S == null ? void 0 : S.https.generateSignedInUrl(M);
|
|
22876
|
+
if (z != null && z.ok) {
|
|
22877
|
+
const V = yield z.json(), Z = { "Content-Type": F.type, "Content-MD5": J };
|
|
22860
22878
|
try {
|
|
22861
22879
|
const oe = new File([F], P, { type: F.type }), ae = yield S == null ? void 0 : S.https.storeInBucket(V.data.signed_url, oe, Z);
|
|
22862
22880
|
r(ae || ""), L("upload_success");
|
|
@@ -22864,7 +22882,7 @@ const Lb = ({ labels: e, open: t, imageSrc: n, resetDefaultImageUrl: r, toggleMo
|
|
|
22864
22882
|
console.error("There was a problem with uploading the file: ", oe), L("upload_failed");
|
|
22865
22883
|
}
|
|
22866
22884
|
} else
|
|
22867
|
-
console.error("There was a problem with generating signed in URL: ", yield
|
|
22885
|
+
console.error("There was a problem with generating signed in URL: ", yield z == null ? void 0 : z.json()), L("sign_in_url_failed");
|
|
22868
22886
|
} catch (W) {
|
|
22869
22887
|
console.error("There was a problem with encrypting file...", W), L("encrypting_file_failed");
|
|
22870
22888
|
}
|
|
@@ -23781,7 +23799,7 @@ function tj(e, t) {
|
|
|
23781
23799
|
config: Kt(Kt({}, zi), Dt.defaultConfig),
|
|
23782
23800
|
l10n: ia
|
|
23783
23801
|
};
|
|
23784
|
-
n.parseDate = Lu({ config: n.config, l10n: n.l10n }), n._handlers = [], n.pluginElements = [], n.loadedPlugins = [], n._bind = g, n._setHoursFromDate = f, n._positionCalendar = Se, n.changeMonth = P, n.changeYear = ae, n.clear = M, n.close =
|
|
23802
|
+
n.parseDate = Lu({ config: n.config, l10n: n.l10n }), n._handlers = [], n.pluginElements = [], n.loadedPlugins = [], n._bind = g, n._setHoursFromDate = f, n._positionCalendar = Se, n.changeMonth = P, n.changeYear = ae, n.clear = M, n.close = z, n.onMouseOver = de, n._createElement = Xe, n.createDay = C, n.destroy = V, n.isEnabled = X, n.jumpToDate = w, n.updateValue = un, n.open = Ue, n.redraw = $e, n.set = Ht, n.setDate = qt, n.toggle = xo;
|
|
23785
23803
|
function r() {
|
|
23786
23804
|
n.utils = {
|
|
23787
23805
|
getDaysInMonth: function(j, B) {
|
|
@@ -24103,7 +24121,7 @@ function tj(e, t) {
|
|
|
24103
24121
|
}
|
|
24104
24122
|
n.redraw(), j && Ze("onChange");
|
|
24105
24123
|
}
|
|
24106
|
-
function
|
|
24124
|
+
function z() {
|
|
24107
24125
|
n.isOpen = !1, n.isMobile || (n.calendarContainer !== void 0 && n.calendarContainer.classList.remove("open"), n._input !== void 0 && n._input.classList.remove("active")), Ze("onClose");
|
|
24108
24126
|
}
|
|
24109
24127
|
function V() {
|
|
@@ -24700,10 +24718,10 @@ const nj = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
24700
24718
|
(function(e) {
|
|
24701
24719
|
function t(P) {
|
|
24702
24720
|
"@babel/helpers - typeof";
|
|
24703
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? t = function(
|
|
24704
|
-
return typeof
|
|
24705
|
-
} : t = function(
|
|
24706
|
-
return
|
|
24721
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? t = function(z) {
|
|
24722
|
+
return typeof z;
|
|
24723
|
+
} : t = function(z) {
|
|
24724
|
+
return z && typeof Symbol == "function" && z.constructor === Symbol && z !== Symbol.prototype ? "symbol" : typeof z;
|
|
24707
24725
|
}, t(P);
|
|
24708
24726
|
}
|
|
24709
24727
|
Object.defineProperty(e, "__esModule", {
|
|
@@ -24728,13 +24746,13 @@ const nj = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
24728
24746
|
var M = a();
|
|
24729
24747
|
if (M && M.has(P))
|
|
24730
24748
|
return M.get(P);
|
|
24731
|
-
var
|
|
24749
|
+
var z = {}, V = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
24732
24750
|
for (var Z in P)
|
|
24733
24751
|
if (Object.prototype.hasOwnProperty.call(P, Z)) {
|
|
24734
24752
|
var oe = V ? Object.getOwnPropertyDescriptor(P, Z) : null;
|
|
24735
|
-
oe && (oe.get || oe.set) ? Object.defineProperty(
|
|
24753
|
+
oe && (oe.get || oe.set) ? Object.defineProperty(z, Z, oe) : z[Z] = P[Z];
|
|
24736
24754
|
}
|
|
24737
|
-
return
|
|
24755
|
+
return z.default = P, M && M.set(P, z), z;
|
|
24738
24756
|
}
|
|
24739
24757
|
function c(P) {
|
|
24740
24758
|
return f(P) || d(P) || h(P) || u();
|
|
@@ -24746,9 +24764,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
24746
24764
|
function h(P, M) {
|
|
24747
24765
|
if (P) {
|
|
24748
24766
|
if (typeof P == "string") return p(P, M);
|
|
24749
|
-
var
|
|
24750
|
-
if (
|
|
24751
|
-
if (
|
|
24767
|
+
var z = Object.prototype.toString.call(P).slice(8, -1);
|
|
24768
|
+
if (z === "Object" && P.constructor && (z = P.constructor.name), z === "Map" || z === "Set") return Array.from(P);
|
|
24769
|
+
if (z === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(z)) return p(P, M);
|
|
24752
24770
|
}
|
|
24753
24771
|
}
|
|
24754
24772
|
function d(P) {
|
|
@@ -24759,54 +24777,54 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
24759
24777
|
}
|
|
24760
24778
|
function p(P, M) {
|
|
24761
24779
|
(M == null || M > P.length) && (M = P.length);
|
|
24762
|
-
for (var
|
|
24763
|
-
V[
|
|
24780
|
+
for (var z = 0, V = new Array(M); z < M; z++)
|
|
24781
|
+
V[z] = P[z];
|
|
24764
24782
|
return V;
|
|
24765
24783
|
}
|
|
24766
24784
|
function m() {
|
|
24767
24785
|
return m = Object.assign || function(P) {
|
|
24768
24786
|
for (var M = 1; M < arguments.length; M++) {
|
|
24769
|
-
var
|
|
24770
|
-
for (var V in
|
|
24771
|
-
Object.prototype.hasOwnProperty.call(
|
|
24787
|
+
var z = arguments[M];
|
|
24788
|
+
for (var V in z)
|
|
24789
|
+
Object.prototype.hasOwnProperty.call(z, V) && (P[V] = z[V]);
|
|
24772
24790
|
}
|
|
24773
24791
|
return P;
|
|
24774
24792
|
}, m.apply(this, arguments);
|
|
24775
24793
|
}
|
|
24776
24794
|
function g(P, M) {
|
|
24777
24795
|
if (P == null) return {};
|
|
24778
|
-
var
|
|
24796
|
+
var z = b(P, M), V, Z;
|
|
24779
24797
|
if (Object.getOwnPropertySymbols) {
|
|
24780
24798
|
var oe = Object.getOwnPropertySymbols(P);
|
|
24781
24799
|
for (Z = 0; Z < oe.length; Z++)
|
|
24782
|
-
V = oe[Z], !(M.indexOf(V) >= 0) && Object.prototype.propertyIsEnumerable.call(P, V) && (
|
|
24800
|
+
V = oe[Z], !(M.indexOf(V) >= 0) && Object.prototype.propertyIsEnumerable.call(P, V) && (z[V] = P[V]);
|
|
24783
24801
|
}
|
|
24784
|
-
return
|
|
24802
|
+
return z;
|
|
24785
24803
|
}
|
|
24786
24804
|
function b(P, M) {
|
|
24787
24805
|
if (P == null) return {};
|
|
24788
|
-
var
|
|
24806
|
+
var z = {}, V = Object.keys(P), Z, oe;
|
|
24789
24807
|
for (oe = 0; oe < V.length; oe++)
|
|
24790
|
-
Z = V[oe], !(M.indexOf(Z) >= 0) && (
|
|
24791
|
-
return
|
|
24808
|
+
Z = V[oe], !(M.indexOf(Z) >= 0) && (z[Z] = P[Z]);
|
|
24809
|
+
return z;
|
|
24792
24810
|
}
|
|
24793
24811
|
function I(P, M) {
|
|
24794
|
-
var
|
|
24812
|
+
var z = Object.keys(P);
|
|
24795
24813
|
if (Object.getOwnPropertySymbols) {
|
|
24796
24814
|
var V = Object.getOwnPropertySymbols(P);
|
|
24797
24815
|
M && (V = V.filter(function(Z) {
|
|
24798
24816
|
return Object.getOwnPropertyDescriptor(P, Z).enumerable;
|
|
24799
|
-
})),
|
|
24817
|
+
})), z.push.apply(z, V);
|
|
24800
24818
|
}
|
|
24801
|
-
return
|
|
24819
|
+
return z;
|
|
24802
24820
|
}
|
|
24803
24821
|
function w(P) {
|
|
24804
24822
|
for (var M = 1; M < arguments.length; M++) {
|
|
24805
|
-
var
|
|
24806
|
-
M % 2 ? I(Object(
|
|
24807
|
-
H(P, V,
|
|
24808
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(P, Object.getOwnPropertyDescriptors(
|
|
24809
|
-
Object.defineProperty(P, V, Object.getOwnPropertyDescriptor(
|
|
24823
|
+
var z = arguments[M] != null ? arguments[M] : {};
|
|
24824
|
+
M % 2 ? I(Object(z), !0).forEach(function(V) {
|
|
24825
|
+
H(P, V, z[V]);
|
|
24826
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(P, Object.getOwnPropertyDescriptors(z)) : I(Object(z)).forEach(function(V) {
|
|
24827
|
+
Object.defineProperty(P, V, Object.getOwnPropertyDescriptor(z, V));
|
|
24810
24828
|
});
|
|
24811
24829
|
}
|
|
24812
24830
|
return P;
|
|
@@ -24816,12 +24834,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
24816
24834
|
throw new TypeError("Cannot call a class as a function");
|
|
24817
24835
|
}
|
|
24818
24836
|
function x(P, M) {
|
|
24819
|
-
for (var
|
|
24820
|
-
var V = M[
|
|
24837
|
+
for (var z = 0; z < M.length; z++) {
|
|
24838
|
+
var V = M[z];
|
|
24821
24839
|
V.enumerable = V.enumerable || !1, V.configurable = !0, "value" in V && (V.writable = !0), Object.defineProperty(P, V.key, V);
|
|
24822
24840
|
}
|
|
24823
24841
|
}
|
|
24824
|
-
function y(P, M,
|
|
24842
|
+
function y(P, M, z) {
|
|
24825
24843
|
return M && x(P.prototype, M), P;
|
|
24826
24844
|
}
|
|
24827
24845
|
function C(P, M) {
|
|
@@ -24865,19 +24883,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
24865
24883
|
}
|
|
24866
24884
|
}
|
|
24867
24885
|
function T(P) {
|
|
24868
|
-
return T = Object.setPrototypeOf ? Object.getPrototypeOf : function(
|
|
24869
|
-
return
|
|
24886
|
+
return T = Object.setPrototypeOf ? Object.getPrototypeOf : function(z) {
|
|
24887
|
+
return z.__proto__ || Object.getPrototypeOf(z);
|
|
24870
24888
|
}, T(P);
|
|
24871
24889
|
}
|
|
24872
|
-
function H(P, M,
|
|
24873
|
-
return M in P ? Object.defineProperty(P, M, { value:
|
|
24890
|
+
function H(P, M, z) {
|
|
24891
|
+
return M in P ? Object.defineProperty(P, M, { value: z, enumerable: !0, configurable: !0, writable: !0 }) : P[M] = z, P;
|
|
24874
24892
|
}
|
|
24875
24893
|
var Y = ["onChange", "onOpen", "onClose", "onMonthChange", "onYearChange", "onReady", "onValueUpdate", "onDayCreate"], E = r.default.oneOfType([r.default.func, r.default.arrayOf(r.default.func)]), D = ["onCreate", "onDestroy"], O = r.default.func, F = /* @__PURE__ */ function(P) {
|
|
24876
|
-
C(
|
|
24877
|
-
var M = S(
|
|
24878
|
-
function
|
|
24894
|
+
C(z, P);
|
|
24895
|
+
var M = S(z);
|
|
24896
|
+
function z() {
|
|
24879
24897
|
var V;
|
|
24880
|
-
v(this,
|
|
24898
|
+
v(this, z);
|
|
24881
24899
|
for (var Z = arguments.length, oe = new Array(Z), ae = 0; ae < Z; ae++)
|
|
24882
24900
|
oe[ae] = arguments[ae];
|
|
24883
24901
|
return V = M.call.apply(M, [this].concat(oe)), H(L(V), "createFlatpickrInstance", function() {
|
|
@@ -24896,7 +24914,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
24896
24914
|
V.node = X, V.flatpickr && (V.destroyFlatpickrInstance(), V.createFlatpickrInstance());
|
|
24897
24915
|
}), V;
|
|
24898
24916
|
}
|
|
24899
|
-
return y(
|
|
24917
|
+
return y(z, [{
|
|
24900
24918
|
key: "componentDidUpdate",
|
|
24901
24919
|
value: function(Z) {
|
|
24902
24920
|
var oe = this.props.options, ae = Z.options;
|
|
@@ -24937,7 +24955,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
24937
24955
|
ref: this.handleNodeChange
|
|
24938
24956
|
}));
|
|
24939
24957
|
}
|
|
24940
|
-
}]),
|
|
24958
|
+
}]), z;
|
|
24941
24959
|
}(n.Component);
|
|
24942
24960
|
H(F, "propTypes", {
|
|
24943
24961
|
defaultValue: r.default.string,
|
|
@@ -24960,15 +24978,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
24960
24978
|
options: {}
|
|
24961
24979
|
});
|
|
24962
24980
|
function W(P, M) {
|
|
24963
|
-
var
|
|
24981
|
+
var z = w({}, P);
|
|
24964
24982
|
return Y.forEach(function(V) {
|
|
24965
24983
|
if (M.hasOwnProperty(V)) {
|
|
24966
24984
|
var Z;
|
|
24967
|
-
|
|
24985
|
+
z[V] && !Array.isArray(z[V]) ? z[V] = [z[V]] : z[V] || (z[V] = []);
|
|
24968
24986
|
var oe = Array.isArray(M[V]) ? M[V] : [M[V]];
|
|
24969
|
-
(Z =
|
|
24987
|
+
(Z = z[V]).push.apply(Z, c(oe));
|
|
24970
24988
|
}
|
|
24971
|
-
}),
|
|
24989
|
+
}), z;
|
|
24972
24990
|
}
|
|
24973
24991
|
var J = F;
|
|
24974
24992
|
e.default = J;
|
|
@@ -25069,14 +25087,14 @@ var Vb = { exports: {} };
|
|
|
25069
25087
|
return W ? ne : ne.endOf(u);
|
|
25070
25088
|
}, M = function(se, re) {
|
|
25071
25089
|
return U.w(F.toDate()[se].apply(F.toDate("s"), (W ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(re)), F);
|
|
25072
|
-
},
|
|
25090
|
+
}, z = this.$W, V = this.$M, Z = this.$D, oe = "set" + (this.$u ? "UTC" : "");
|
|
25073
25091
|
switch (J) {
|
|
25074
25092
|
case p:
|
|
25075
25093
|
return W ? P(1, 0) : P(31, 11);
|
|
25076
25094
|
case d:
|
|
25077
25095
|
return W ? P(1, V) : P(0, V + 1);
|
|
25078
25096
|
case h:
|
|
25079
|
-
var ae = this.$locale().weekStart || 0, X = (
|
|
25097
|
+
var ae = this.$locale().weekStart || 0, X = (z < ae ? z + 7 : z) - ae;
|
|
25080
25098
|
return P(W ? Z - X : Z + (6 - X), V);
|
|
25081
25099
|
case u:
|
|
25082
25100
|
case m:
|
|
@@ -25095,8 +25113,8 @@ var Vb = { exports: {} };
|
|
|
25095
25113
|
}, E.$set = function(D, O) {
|
|
25096
25114
|
var F, W = U.p(D), J = "set" + (this.$u ? "UTC" : ""), P = (F = {}, F[u] = J + "Date", F[m] = J + "Date", F[d] = J + "Month", F[p] = J + "FullYear", F[c] = J + "Hours", F[l] = J + "Minutes", F[a] = J + "Seconds", F[o] = J + "Milliseconds", F)[W], M = W === u ? this.$D + (O - this.$W) : O;
|
|
25097
25115
|
if (W === d || W === p) {
|
|
25098
|
-
var
|
|
25099
|
-
|
|
25116
|
+
var z = this.clone().set(m, 1);
|
|
25117
|
+
z.$d[P](M), z.init(), this.$d = z.set(m, Math.min(this.$D, z.daysInMonth())).$d;
|
|
25100
25118
|
} else P && this.$d[P](M);
|
|
25101
25119
|
return this.init(), this;
|
|
25102
25120
|
}, E.set = function(D, O) {
|
|
@@ -25114,14 +25132,14 @@ var Vb = { exports: {} };
|
|
|
25114
25132
|
if (J === p) return this.set(p, this.$y + D);
|
|
25115
25133
|
if (J === u) return P(1);
|
|
25116
25134
|
if (J === h) return P(7);
|
|
25117
|
-
var M = (F = {}, F[l] = r, F[c] = i, F[a] = n, F)[J] || 1,
|
|
25118
|
-
return U.w(
|
|
25135
|
+
var M = (F = {}, F[l] = r, F[c] = i, F[a] = n, F)[J] || 1, z = this.$d.getTime() + D * M;
|
|
25136
|
+
return U.w(z, this);
|
|
25119
25137
|
}, E.subtract = function(D, O) {
|
|
25120
25138
|
return this.add(-1 * D, O);
|
|
25121
25139
|
}, E.format = function(D) {
|
|
25122
25140
|
var O = this, F = this.$locale();
|
|
25123
25141
|
if (!this.isValid()) return F.invalidDate || g;
|
|
25124
|
-
var W = D || "YYYY-MM-DDTHH:mm:ssZ", J = U.z(this), P = this.$H, M = this.$m,
|
|
25142
|
+
var W = D || "YYYY-MM-DDTHH:mm:ssZ", J = U.z(this), P = this.$H, M = this.$m, z = this.$M, V = F.weekdays, Z = F.months, oe = F.meridiem, ae = function(re, ne, de, we) {
|
|
25125
25143
|
return re && (re[ne] || re(O, W)) || de[ne].slice(0, we);
|
|
25126
25144
|
}, X = function(re) {
|
|
25127
25145
|
return U.s(P % 12 || 12, re, "0");
|
|
@@ -25137,13 +25155,13 @@ var Vb = { exports: {} };
|
|
|
25137
25155
|
case "YYYY":
|
|
25138
25156
|
return U.s(O.$y, 4, "0");
|
|
25139
25157
|
case "M":
|
|
25140
|
-
return
|
|
25158
|
+
return z + 1;
|
|
25141
25159
|
case "MM":
|
|
25142
|
-
return U.s(
|
|
25160
|
+
return U.s(z + 1, 2, "0");
|
|
25143
25161
|
case "MMM":
|
|
25144
|
-
return ae(F.monthsShort,
|
|
25162
|
+
return ae(F.monthsShort, z, Z, 3);
|
|
25145
25163
|
case "MMMM":
|
|
25146
|
-
return ae(Z,
|
|
25164
|
+
return ae(Z, z);
|
|
25147
25165
|
case "D":
|
|
25148
25166
|
return O.$D;
|
|
25149
25167
|
case "DD":
|
|
@@ -25187,7 +25205,7 @@ var Vb = { exports: {} };
|
|
|
25187
25205
|
}, E.utcOffset = function() {
|
|
25188
25206
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
25189
25207
|
}, E.diff = function(D, O, F) {
|
|
25190
|
-
var W, J = this, P = U.p(O), M = L(D),
|
|
25208
|
+
var W, J = this, P = U.p(O), M = L(D), z = (M.utcOffset() - this.utcOffset()) * r, V = this - M, Z = function() {
|
|
25191
25209
|
return U.m(J, M);
|
|
25192
25210
|
};
|
|
25193
25211
|
switch (P) {
|
|
@@ -25201,10 +25219,10 @@ var Vb = { exports: {} };
|
|
|
25201
25219
|
W = Z() / 3;
|
|
25202
25220
|
break;
|
|
25203
25221
|
case h:
|
|
25204
|
-
W = (V -
|
|
25222
|
+
W = (V - z) / 6048e5;
|
|
25205
25223
|
break;
|
|
25206
25224
|
case u:
|
|
25207
|
-
W = (V -
|
|
25225
|
+
W = (V - z) / 864e5;
|
|
25208
25226
|
break;
|
|
25209
25227
|
case c:
|
|
25210
25228
|
W = V / i;
|
|
@@ -26725,11 +26743,11 @@ var nL = {
|
|
|
26725
26743
|
if (n && S.onChange) {
|
|
26726
26744
|
var D = n.option, O = n.options, F = n.removedValue, W = n.removedValues, J = n.value, P = function(X) {
|
|
26727
26745
|
return Array.isArray(X) ? null : X;
|
|
26728
|
-
}, M = F || D || P(J),
|
|
26746
|
+
}, M = F || D || P(J), z = M ? f(M) : "", V = O || W || void 0, Z = V ? V.map(f) : [], oe = Te({
|
|
26729
26747
|
// multiSelected items are usually items that have already been selected
|
|
26730
26748
|
// or set by the user as a default value so we assume they are not disabled
|
|
26731
26749
|
isDisabled: M && g(M, l),
|
|
26732
|
-
label:
|
|
26750
|
+
label: z,
|
|
26733
26751
|
labels: Z
|
|
26734
26752
|
}, n);
|
|
26735
26753
|
E = S.onChange(oe);
|
|
@@ -28155,8 +28173,8 @@ var vy = function(t) {
|
|
|
28155
28173
|
value: function() {
|
|
28156
28174
|
var i = this, o = this.getComponents(), a = o.Group, l = o.GroupHeading, c = o.Menu, u = o.MenuList, h = o.MenuPortal, d = o.LoadingMessage, f = o.NoOptionsMessage, p = o.Option, m = this.commonProps, g = this.state.focusedOption, b = this.props, I = b.captureMenuScroll, w = b.inputValue, v = b.isLoading, x = b.loadingMessage, y = b.minMenuHeight, C = b.maxMenuHeight, A = b.menuIsOpen, S = b.menuPlacement, R = b.menuPosition, L = b.menuPortalTarget, U = b.menuShouldBlockScroll, T = b.menuShouldScrollIntoView, H = b.noOptionsMessage, Y = b.onMenuScrollToTop, E = b.onMenuScrollToBottom;
|
|
28157
28175
|
if (!A) return null;
|
|
28158
|
-
var D = function(
|
|
28159
|
-
var Z =
|
|
28176
|
+
var D = function(z, V) {
|
|
28177
|
+
var Z = z.type, oe = z.data, ae = z.isDisabled, X = z.isSelected, se = z.label, re = z.value, ne = g === oe, de = ae ? void 0 : function() {
|
|
28160
28178
|
return i.onOptionHover(oe);
|
|
28161
28179
|
}, we = ae ? void 0 : function() {
|
|
28162
28180
|
return i.selectOption(oe);
|
|
@@ -28181,15 +28199,15 @@ var vy = function(t) {
|
|
|
28181
28199
|
value: re,
|
|
28182
28200
|
isFocused: ne,
|
|
28183
28201
|
innerRef: ne ? i.getFocusedOptionRef : void 0
|
|
28184
|
-
}), i.formatOptionLabel(
|
|
28202
|
+
}), i.formatOptionLabel(z.data, "menu"));
|
|
28185
28203
|
}, O;
|
|
28186
28204
|
if (this.hasOptions())
|
|
28187
28205
|
O = this.getCategorizedOptions().map(function(M) {
|
|
28188
28206
|
if (M.type === "group") {
|
|
28189
|
-
var
|
|
28207
|
+
var z = M.data, V = M.options, Z = M.index, oe = "".concat(i.getElementId("group"), "-").concat(Z), ae = "".concat(oe, "-heading");
|
|
28190
28208
|
return /* @__PURE__ */ K.createElement(a, $({}, m, {
|
|
28191
28209
|
key: oe,
|
|
28192
|
-
data:
|
|
28210
|
+
data: z,
|
|
28193
28211
|
options: V,
|
|
28194
28212
|
Heading: l,
|
|
28195
28213
|
headingProps: {
|
|
@@ -28223,9 +28241,9 @@ var vy = function(t) {
|
|
|
28223
28241
|
menuPosition: R,
|
|
28224
28242
|
menuShouldScrollIntoView: T
|
|
28225
28243
|
}, P = /* @__PURE__ */ K.createElement(Hj, $({}, m, J), function(M) {
|
|
28226
|
-
var
|
|
28244
|
+
var z = M.ref, V = M.placerProps, Z = V.placement, oe = V.maxHeight;
|
|
28227
28245
|
return /* @__PURE__ */ K.createElement(c, $({}, m, J, {
|
|
28228
|
-
innerRef:
|
|
28246
|
+
innerRef: z,
|
|
28229
28247
|
innerProps: {
|
|
28230
28248
|
onMouseDown: i.onMenuMouseDown,
|
|
28231
28249
|
onMouseMove: i.onMenuMouseMove
|
|
@@ -28598,8 +28616,8 @@ const HL = {
|
|
|
28598
28616
|
if (W != null && W.ok) {
|
|
28599
28617
|
const J = yield W.json(), P = { "Content-Type": Y.type, "Content-MD5": D };
|
|
28600
28618
|
try {
|
|
28601
|
-
const M = new File([Y], O, { type: Y.type }),
|
|
28602
|
-
e.onChangeImages(
|
|
28619
|
+
const M = new File([Y], O, { type: Y.type }), z = yield w == null ? void 0 : w.https.storeInBucket(J.data.signed_url, M, P);
|
|
28620
|
+
e.onChangeImages(z || ""), m(z), x("upload_success");
|
|
28603
28621
|
} catch (M) {
|
|
28604
28622
|
console.error("There was a problem with uploading the file: ", M), x("upload_failed");
|
|
28605
28623
|
}
|
|
@@ -29469,7 +29487,7 @@ const Hi = ht("MuiCheckbox", ["root", "checkbox", "action", "input", "label", "c
|
|
|
29469
29487
|
component: E,
|
|
29470
29488
|
slots: D = {},
|
|
29471
29489
|
slotProps: O = {}
|
|
29472
|
-
} = c, F = He(c, S2), W = K.useContext(Vl), J = (r = (i = t.disabled) != null ? i : W == null ? void 0 : W.disabled) != null ? r : m, P = (o = (a = t.size) != null ? a : W == null ? void 0 : W.size) != null ? o : Y, M = Sa(I != null ? I : W == null ? void 0 : W.htmlFor),
|
|
29490
|
+
} = c, F = He(c, S2), W = K.useContext(Vl), J = (r = (i = t.disabled) != null ? i : W == null ? void 0 : W.disabled) != null ? r : m, P = (o = (a = t.size) != null ? a : W == null ? void 0 : W.size) != null ? o : Y, M = Sa(I != null ? I : W == null ? void 0 : W.htmlFor), z = {
|
|
29473
29491
|
checked: u,
|
|
29474
29492
|
defaultChecked: p,
|
|
29475
29493
|
disabled: J,
|
|
@@ -29482,7 +29500,7 @@ const Hi = ht("MuiCheckbox", ["root", "checkbox", "action", "input", "label", "c
|
|
|
29482
29500
|
checked: Z,
|
|
29483
29501
|
disabled: oe,
|
|
29484
29502
|
focusVisible: ae
|
|
29485
|
-
} = eE(
|
|
29503
|
+
} = eE(z), X = Z || w, ne = X ? H || "solid" : H || "outlined", de = t.color || (W != null && W.error ? "danger" : (l = W == null ? void 0 : W.color) != null ? l : T), Ve = $({}, c, {
|
|
29486
29504
|
checked: Z,
|
|
29487
29505
|
disabled: oe,
|
|
29488
29506
|
disableIcon: g,
|
|
@@ -29896,13 +29914,13 @@ const Hi = ht("MuiCheckbox", ["root", "checkbox", "action", "input", "label", "c
|
|
|
29896
29914
|
};
|
|
29897
29915
|
class W2 {
|
|
29898
29916
|
constructor() {
|
|
29899
|
-
|
|
29900
|
-
|
|
29917
|
+
N(this, "name", "");
|
|
29918
|
+
N(this, "scheduled_task_config", {
|
|
29901
29919
|
entity_id: "",
|
|
29902
29920
|
entity_type: "",
|
|
29903
29921
|
change: { status: "" }
|
|
29904
29922
|
});
|
|
29905
|
-
|
|
29923
|
+
N(this, "trigger", { trigger_type: "DATETIME", date: "" });
|
|
29906
29924
|
}
|
|
29907
29925
|
}
|
|
29908
29926
|
const G2 = Je(/* @__PURE__ */ s.jsx("path", {
|
|
@@ -30237,9 +30255,9 @@ const Q2 = ["children", "action", "component", "color", "disabled", "variant", "
|
|
|
30237
30255
|
focusVisible: R,
|
|
30238
30256
|
instanceSize: t.size
|
|
30239
30257
|
}), Y = J2(H), E = (M) => {
|
|
30240
|
-
var
|
|
30258
|
+
var z;
|
|
30241
30259
|
let V = i.onClick;
|
|
30242
|
-
if (typeof g.root == "function" ? V = g.root(H).onClick : g.root && (V = g.root.onClick), (
|
|
30260
|
+
if (typeof g.root == "function" ? V = g.root(H).onClick : g.root && (V = g.root.onClick), (z = V) == null || z(M), w) {
|
|
30243
30261
|
var Z;
|
|
30244
30262
|
(Z = w.onClick) == null || Z.call(w, M, i.value);
|
|
30245
30263
|
}
|
|
@@ -30958,10 +30976,10 @@ const zr = /* @__PURE__ */ Fn(Z$), Kn = ({ option: e }) => /* @__PURE__ */ s.jsx
|
|
|
30958
30976
|
}), "ArrowBackIos");
|
|
30959
30977
|
class Ey {
|
|
30960
30978
|
constructor() {
|
|
30961
|
-
|
|
30962
|
-
|
|
30963
|
-
|
|
30964
|
-
|
|
30979
|
+
N(this, "contestId", "");
|
|
30980
|
+
N(this, "contestType", "");
|
|
30981
|
+
N(this, "description", "");
|
|
30982
|
+
N(this, "userList", []);
|
|
30965
30983
|
}
|
|
30966
30984
|
}
|
|
30967
30985
|
const sB = (e, t, n) => {
|
|
@@ -30993,10 +31011,10 @@ const sB = (e, t, n) => {
|
|
|
30993
31011
|
};
|
|
30994
31012
|
class lB {
|
|
30995
31013
|
constructor() {
|
|
30996
|
-
|
|
30997
|
-
|
|
30998
|
-
|
|
30999
|
-
|
|
31014
|
+
N(this, "position", "");
|
|
31015
|
+
N(this, "profileId", "");
|
|
31016
|
+
N(this, "note", "");
|
|
31017
|
+
N(this, "tags", []);
|
|
31000
31018
|
}
|
|
31001
31019
|
}
|
|
31002
31020
|
function cB(e, t) {
|
|
@@ -31311,23 +31329,23 @@ var TN = qy, EN = TN(function(e, t, n) {
|
|
|
31311
31329
|
const kN = /* @__PURE__ */ Fn(_N);
|
|
31312
31330
|
class PN {
|
|
31313
31331
|
constructor() {
|
|
31314
|
-
|
|
31315
|
-
|
|
31316
|
-
|
|
31332
|
+
N(this, "id", "");
|
|
31333
|
+
N(this, "value", "");
|
|
31334
|
+
N(this, "label", "");
|
|
31317
31335
|
}
|
|
31318
31336
|
}
|
|
31319
31337
|
class DN extends PN {
|
|
31320
31338
|
constructor() {
|
|
31321
31339
|
super(...arguments);
|
|
31322
|
-
|
|
31323
|
-
|
|
31324
|
-
|
|
31340
|
+
N(this, "logo", "");
|
|
31341
|
+
N(this, "countryFlag", "");
|
|
31342
|
+
N(this, "countryName", "");
|
|
31325
31343
|
}
|
|
31326
31344
|
}
|
|
31327
31345
|
class Qy extends DN {
|
|
31328
31346
|
constructor() {
|
|
31329
31347
|
super(...arguments);
|
|
31330
|
-
|
|
31348
|
+
N(this, "group", "");
|
|
31331
31349
|
}
|
|
31332
31350
|
}
|
|
31333
31351
|
const RN = (e, t) => t || e || "-------------", zs = (e, t) => Array.isArray(e) ? e.map((n) => zs(n, t)) : typeof e == "object" && e !== null ? Object.keys(e).reduce((n, r) => {
|
|
@@ -31511,14 +31529,14 @@ const RN = (e, t) => t || e || "-------------", zs = (e, t) => Array.isArray(e)
|
|
|
31511
31529
|
};
|
|
31512
31530
|
class BN {
|
|
31513
31531
|
constructor() {
|
|
31514
|
-
|
|
31515
|
-
|
|
31516
|
-
|
|
31517
|
-
|
|
31532
|
+
N(this, "isValid", !0);
|
|
31533
|
+
N(this, "message", "");
|
|
31534
|
+
N(this, "validate", (t, n, r) => (this.validateField(t, n), this.validateWinnerIds(t, r), this));
|
|
31535
|
+
N(this, "validateField", (t, n) => {
|
|
31518
31536
|
const r = t.every((i) => i.position && i.profileId);
|
|
31519
31537
|
r || (this.isValid = r, this.message = n);
|
|
31520
31538
|
});
|
|
31521
|
-
|
|
31539
|
+
N(this, "validateWinnerIds", (t, n) => {
|
|
31522
31540
|
const r = t.map((o) => o.profileId), i = new Set(r);
|
|
31523
31541
|
r.length !== i.size && (this.isValid = !1, this.message = n);
|
|
31524
31542
|
});
|
|
@@ -32026,7 +32044,7 @@ function az(e) {
|
|
|
32026
32044
|
}, 0));
|
|
32027
32045
|
}, M = function(fe, ye, Se) {
|
|
32028
32046
|
return Wp(fe, ye, w(fe), Se);
|
|
32029
|
-
},
|
|
32047
|
+
}, z = function(fe, ye, Se) {
|
|
32030
32048
|
var xe = w(ye), _e = nz(ye, S, fe, Se, xe, v, x);
|
|
32031
32049
|
return _e = Wp(ye, _e, xe), _e;
|
|
32032
32050
|
}, V = function(fe) {
|
|
@@ -32035,7 +32053,7 @@ function az(e) {
|
|
|
32035
32053
|
var Se = fe.input, xe = fe.source, _e = fe.event, $e = fe.numAsString, Fe;
|
|
32036
32054
|
if (Se) {
|
|
32037
32055
|
var at = fe.inputValue || Se.value, _t = Xc(Se);
|
|
32038
|
-
Se.value = ye, Fe =
|
|
32056
|
+
Se.value = ye, Fe = z(at, ye, _t), Fe !== void 0 && P(Se, Fe, ye);
|
|
32039
32057
|
}
|
|
32040
32058
|
ye !== S && H(J(ye, $e), { event: _e, source: xe });
|
|
32041
32059
|
};
|
|
@@ -32050,14 +32068,14 @@ function az(e) {
|
|
|
32050
32068
|
oe(function() {
|
|
32051
32069
|
var fe = O.current;
|
|
32052
32070
|
if (S !== T.current.formattedValue && fe) {
|
|
32053
|
-
var ye =
|
|
32071
|
+
var ye = z(T.current.formattedValue, S, Z);
|
|
32054
32072
|
fe.value = S, P(fe, ye, S);
|
|
32055
32073
|
}
|
|
32056
32074
|
}, [S]);
|
|
32057
32075
|
var ae = function(fe, ye, Se) {
|
|
32058
32076
|
var xe = ye.target, _e = U.current ? JN(U.current, xe.selectionEnd) : r0(S, fe), $e = Object.assign(Object.assign({}, _e), { lastValue: S }), Fe = l(fe, $e), at = W(Fe);
|
|
32059
32077
|
if (Fe = l(at, void 0), d && !d(J(at, Fe))) {
|
|
32060
|
-
var _t = ye.target, Ht = Xc(_t), $t =
|
|
32078
|
+
var _t = ye.target, Ht = Xc(_t), $t = z(fe, S, Ht);
|
|
32061
32079
|
return _t.value = S, P(_t, $t, S), !1;
|
|
32062
32080
|
}
|
|
32063
32081
|
return V({
|
|
@@ -32272,10 +32290,10 @@ function fz(e) {
|
|
|
32272
32290
|
}, Y = function(D) {
|
|
32273
32291
|
return D === b ? !0 : sa(D);
|
|
32274
32292
|
}, E = function(D) {
|
|
32275
|
-
var O = D.currentValue, F = D.lastValue, W = D.formattedValue, J = D.currentValueIndex, P = D.formattedValueIndex, M = O[J],
|
|
32293
|
+
var O = D.currentValue, F = D.lastValue, W = D.formattedValue, J = D.currentValueIndex, P = D.formattedValueIndex, M = O[J], z = W[P], V = r0(F, O), Z = V.to, oe = function(ae) {
|
|
32276
32294
|
return v(ae).indexOf(".") + u.length;
|
|
32277
32295
|
};
|
|
32278
|
-
return d === 0 && c && l && O[Z.start] === b && oe(O) < J && oe(W) > P ? !1 : J >= Z.start && J < Z.end && I && I.includes(M) &&
|
|
32296
|
+
return d === 0 && c && l && O[Z.start] === b && oe(O) < J && oe(W) > P ? !1 : J >= Z.start && J < Z.end && I && I.includes(M) && z === b ? !0 : M === z;
|
|
32279
32297
|
};
|
|
32280
32298
|
return Object.assign(Object.assign({}, m), {
|
|
32281
32299
|
value: L,
|
|
@@ -34641,7 +34659,7 @@ const A0 = /* @__PURE__ */ Js(function(t) {
|
|
|
34641
34659
|
rect: T
|
|
34642
34660
|
} : null;
|
|
34643
34661
|
}, [A, U]), Y = Ce(null), [E, D] = G(null), [O, F] = G(null), W = la(m, Object.values(m)), J = Da("DndDescribedBy", a), P = Oe(() => L.getEnabled(), [L]), M = $5(f), {
|
|
34644
|
-
droppableRects:
|
|
34662
|
+
droppableRects: z,
|
|
34645
34663
|
measureDroppableContainers: V,
|
|
34646
34664
|
measuringScheduled: Z
|
|
34647
34665
|
} = x5(P, {
|
|
@@ -34661,7 +34679,7 @@ const A0 = /* @__PURE__ */ Js(function(t) {
|
|
|
34661
34679
|
activeNode: oe,
|
|
34662
34680
|
collisionRect: null,
|
|
34663
34681
|
collisions: null,
|
|
34664
|
-
droppableRects:
|
|
34682
|
+
droppableRects: z,
|
|
34665
34683
|
draggableNodes: S,
|
|
34666
34684
|
draggingNode: null,
|
|
34667
34685
|
draggingNodeRect: null,
|
|
@@ -34691,7 +34709,7 @@ const A0 = /* @__PURE__ */ Js(function(t) {
|
|
|
34691
34709
|
}), Fe = ae ? Gi(ae, R) : null, at = T5(xe), _t = ng(at), Ht = ng(at, [re]), $t = Gi($e, _t), qt = Et ? Qz(Et, $e) : null, On = H && qt ? d({
|
|
34692
34710
|
active: H,
|
|
34693
34711
|
collisionRect: qt,
|
|
34694
|
-
droppableRects:
|
|
34712
|
+
droppableRects: z,
|
|
34695
34713
|
droppableContainers: P,
|
|
34696
34714
|
pointerCoordinates: Fe
|
|
34697
34715
|
}) : null, fi = c0(On, "id"), [rn, vr] = G(null), yo = fe ? $e : Gi($e, Ht), xo = Kz(yo, (o = rn == null ? void 0 : rn.rect) != null ? o : null, re), Ze = Ce(null), br = We(
|
|
@@ -34914,7 +34932,7 @@ const A0 = /* @__PURE__ */ Js(function(t) {
|
|
|
34914
34932
|
activeNode: oe,
|
|
34915
34933
|
collisionRect: qt,
|
|
34916
34934
|
collisions: On,
|
|
34917
|
-
droppableRects:
|
|
34935
|
+
droppableRects: z,
|
|
34918
34936
|
draggableNodes: S,
|
|
34919
34937
|
draggingNode: Ve,
|
|
34920
34938
|
draggingNodeRect: Et,
|
|
@@ -34926,7 +34944,7 @@ const A0 = /* @__PURE__ */ Js(function(t) {
|
|
|
34926
34944
|
initial: Et,
|
|
34927
34945
|
translated: qt
|
|
34928
34946
|
};
|
|
34929
|
-
}, [H, oe, On, qt, S, Ve, Et,
|
|
34947
|
+
}, [H, oe, On, qt, S, Ve, Et, z, L, rn, xe, $t]), g5(q(k({}, X), {
|
|
34930
34948
|
delta: R,
|
|
34931
34949
|
draggingRect: qt,
|
|
34932
34950
|
pointerCoordinates: Fe,
|
|
@@ -34943,7 +34961,7 @@ const A0 = /* @__PURE__ */ Js(function(t) {
|
|
|
34943
34961
|
dragOverlay: Ue,
|
|
34944
34962
|
draggableNodes: S,
|
|
34945
34963
|
droppableContainers: L,
|
|
34946
|
-
droppableRects:
|
|
34964
|
+
droppableRects: z,
|
|
34947
34965
|
over: rn,
|
|
34948
34966
|
measureDroppableContainers: V,
|
|
34949
34967
|
scrollableAncestors: xe,
|
|
@@ -34951,7 +34969,7 @@ const A0 = /* @__PURE__ */ Js(function(t) {
|
|
|
34951
34969
|
measuringConfiguration: M,
|
|
34952
34970
|
measuringScheduled: Z,
|
|
34953
34971
|
windowRect: Se
|
|
34954
|
-
}), [H, oe, re, O, On, ne, Ue, S, L,
|
|
34972
|
+
}), [H, oe, re, O, On, ne, Ue, S, L, z, rn, V, xe, _e, M, Z, Se]), Vr = Oe(() => ({
|
|
34955
34973
|
activatorEvent: O,
|
|
34956
34974
|
activators: pi,
|
|
34957
34975
|
active: H,
|
|
@@ -35610,7 +35628,7 @@ function O0(e) {
|
|
|
35610
35628
|
data: y,
|
|
35611
35629
|
attributes: k(k({}, uU), n),
|
|
35612
35630
|
disabled: v.draggable
|
|
35613
|
-
}), P = Ez(L, E), M = !!U,
|
|
35631
|
+
}), P = Ez(L, E), M = !!U, z = M && !m && Qa(f) && Qa(b), V = !I && O, Z = V && z ? J : null, oe = l != null ? l : w, ae = z ? Z != null ? Z : oe({
|
|
35614
35632
|
rects: g,
|
|
35615
35633
|
activeNodeRect: H,
|
|
35616
35634
|
activeIndex: f,
|
|
@@ -37062,7 +37080,7 @@ const L0 = Je(/* @__PURE__ */ s.jsx("path", {
|
|
|
37062
37080
|
copyToClipboardLabel: o,
|
|
37063
37081
|
onCopy: a
|
|
37064
37082
|
}) => {
|
|
37065
|
-
const l = Ce(null), c = Ce(null), u = Ce(null), h = Ce(null), [d, f] = G(!1), [p, m] = G(!1), [g, b] = G(!1), [I, w] = G(!1), [v, x] = G(""), [y, C] = G(""), [A, S] = G(""), [R, L] = G(null), [U, T] = G(""), [H, Y] = G(""), [E, D] = G(""), [O, F] = G(null), [W, J] = G("modal"), [P, M] = G(""), [
|
|
37083
|
+
const l = Ce(null), c = Ce(null), u = Ce(null), h = Ce(null), [d, f] = G(!1), [p, m] = G(!1), [g, b] = G(!1), [I, w] = G(!1), [v, x] = G(""), [y, C] = G(""), [A, S] = G(""), [R, L] = G(null), [U, T] = G(""), [H, Y] = G(""), [E, D] = G(""), [O, F] = G(null), [W, J] = G("modal"), [P, M] = G(""), [z, V] = G("_blank"), [Z, oe] = G([]), [ae, X] = G("before"), [se, re] = G(!1), [ne, de] = G(""), [we, Ue] = G(""), [Ve, Et] = G("STANDARD"), [fe, ye] = G("left"), [Se, xe] = G(null), [_e, $e] = G(!0), [Fe, at] = G(!0), [_t, Ht] = G(!0), [$t, qt] = G(!0), [On, fi] = G(!0), [rn, vr] = G(!1);
|
|
37066
37084
|
be(() => {
|
|
37067
37085
|
n !== "LEAD" && f(!1), n !== "REGISTERED" && m(!1);
|
|
37068
37086
|
}, [n]), be(() => {
|
|
@@ -37093,8 +37111,8 @@ const L0 = Je(/* @__PURE__ */ s.jsx("path", {
|
|
|
37093
37111
|
data-additional-cta-url="${E}"` : "", Ge = g && O ? `
|
|
37094
37112
|
data-additional-cta-target="${O}"` : "", Bt = I ? `
|
|
37095
37113
|
data-rules-display-type="${W}"` : "", st = I && W === "link" && P ? `
|
|
37096
|
-
data-rules-display-url="${P}"` : "", dn = I && W === "link" &&
|
|
37097
|
-
data-rules-display-target="${
|
|
37114
|
+
data-rules-display-url="${P}"` : "", dn = I && W === "link" && z ? `
|
|
37115
|
+
data-rules-display-target="${z}"` : "", hn = `<div
|
|
37098
37116
|
data-component="fu-widget"${yo}${xo}${j}${B}${Q}${ee}${le}${he}${Pe}${pe}${Ze}${br}${Ur}${pi}${yr}${Vr}${un}${gi}${kt}${De}${ve}${Ie}${Ge}${Bt}${st}${dn}
|
|
37099
37117
|
></div>`, ja = {
|
|
37100
37118
|
fullName: "Full name",
|
|
@@ -37590,12 +37608,12 @@ const L0 = Je(/* @__PURE__ */ s.jsx("path", {
|
|
|
37590
37608
|
qe,
|
|
37591
37609
|
q(k({
|
|
37592
37610
|
action: h,
|
|
37593
|
-
value:
|
|
37611
|
+
value: z,
|
|
37594
37612
|
size: "md",
|
|
37595
37613
|
name: "rules_display_target",
|
|
37596
37614
|
onChange: (me, Wt) => V(Wt),
|
|
37597
37615
|
sx: { flex: 1 }
|
|
37598
|
-
},
|
|
37616
|
+
}, z && {
|
|
37599
37617
|
endDecorator: /* @__PURE__ */ s.jsx(
|
|
37600
37618
|
dt,
|
|
37601
37619
|
{
|
|
@@ -38248,30 +38266,30 @@ const L0 = Je(/* @__PURE__ */ s.jsx("path", {
|
|
|
38248
38266
|
}), "KeyboardArrowUp");
|
|
38249
38267
|
class eV {
|
|
38250
38268
|
constructor() {
|
|
38251
|
-
|
|
38252
|
-
|
|
38253
|
-
|
|
38254
|
-
|
|
38255
|
-
|
|
38256
|
-
|
|
38257
|
-
|
|
38258
|
-
|
|
38259
|
-
|
|
38260
|
-
|
|
38261
|
-
|
|
38262
|
-
|
|
38263
|
-
|
|
38264
|
-
|
|
38265
|
-
|
|
38266
|
-
|
|
38267
|
-
|
|
38268
|
-
|
|
38269
|
-
|
|
38270
|
-
|
|
38271
|
-
|
|
38272
|
-
|
|
38273
|
-
|
|
38274
|
-
|
|
38269
|
+
N(this, "id", "");
|
|
38270
|
+
N(this, "title", "");
|
|
38271
|
+
N(this, "alternative_title", null);
|
|
38272
|
+
N(this, "description", null);
|
|
38273
|
+
N(this, "type", null);
|
|
38274
|
+
N(this, "auth_requirement", null);
|
|
38275
|
+
N(this, "rules", null);
|
|
38276
|
+
N(this, "ad_content", null);
|
|
38277
|
+
N(this, "labels", null);
|
|
38278
|
+
N(this, "branding", null);
|
|
38279
|
+
N(this, "embed_code", null);
|
|
38280
|
+
N(this, "custom_fields", null);
|
|
38281
|
+
N(this, "images", null);
|
|
38282
|
+
N(this, "status", "");
|
|
38283
|
+
N(this, "flags", []);
|
|
38284
|
+
N(this, "context", null);
|
|
38285
|
+
N(this, "options", []);
|
|
38286
|
+
N(this, "related", []);
|
|
38287
|
+
N(this, "multiple_choice", !1);
|
|
38288
|
+
N(this, "max_multiple_choice_options", null);
|
|
38289
|
+
N(this, "participation_count", 0);
|
|
38290
|
+
N(this, "preferences_enabled", !1);
|
|
38291
|
+
N(this, "max_attempts", 1);
|
|
38292
|
+
N(this, "external_activity", null);
|
|
38275
38293
|
}
|
|
38276
38294
|
}
|
|
38277
38295
|
const tV = (e) => {
|
|
@@ -38791,7 +38809,7 @@ const ug = (e) => {
|
|
|
38791
38809
|
ge.useEffect(() => () => {
|
|
38792
38810
|
n(ug(e.defaultLanguage)), a(dg(e.competitionsScope, e.generateId)), c(1), h(""), f(!1), m("search"), w(null);
|
|
38793
38811
|
}, [e.defaultLanguage, e.competitionsScope, e.generateId]);
|
|
38794
|
-
const { https: J } = it(), { matches: P, loading: M, meta:
|
|
38812
|
+
const { https: J } = it(), { matches: P, loading: M, meta: z } = JU(F, { enabled: d }), V = () => {
|
|
38795
38813
|
Y(""), T(!1);
|
|
38796
38814
|
}, Z = (ne) => {
|
|
38797
38815
|
let de = "", we = "danger";
|
|
@@ -39092,7 +39110,7 @@ const ug = (e) => {
|
|
|
39092
39110
|
selectedMatchId: u,
|
|
39093
39111
|
generatedEntity: I,
|
|
39094
39112
|
labels: e.labels,
|
|
39095
|
-
pagination:
|
|
39113
|
+
pagination: z,
|
|
39096
39114
|
teamIdsFilter: o.teamIds,
|
|
39097
39115
|
setPollRequestBody: x,
|
|
39098
39116
|
setPage: c,
|
|
@@ -39620,16 +39638,16 @@ const ug = (e) => {
|
|
|
39620
39638
|
var ki = /* @__PURE__ */ ((e) => (e.HTML = "HTML", e.TEXT = "TEXT", e.JSON = "JSON", e))(ki || {});
|
|
39621
39639
|
class B4 {
|
|
39622
39640
|
constructor() {
|
|
39623
|
-
|
|
39624
|
-
|
|
39625
|
-
|
|
39626
|
-
|
|
39627
|
-
|
|
39628
|
-
|
|
39629
|
-
|
|
39630
|
-
|
|
39631
|
-
|
|
39632
|
-
|
|
39641
|
+
N(this, "title", "");
|
|
39642
|
+
N(this, "subtitle", null);
|
|
39643
|
+
N(this, "type", "");
|
|
39644
|
+
N(this, "content_type", "JSON");
|
|
39645
|
+
N(this, "body", "");
|
|
39646
|
+
N(this, "language", "");
|
|
39647
|
+
N(this, "context", null);
|
|
39648
|
+
N(this, "images", null);
|
|
39649
|
+
N(this, "labels", null);
|
|
39650
|
+
N(this, "branding_id", null);
|
|
39633
39651
|
}
|
|
39634
39652
|
}
|
|
39635
39653
|
function fg(e, t) {
|
|
@@ -40129,18 +40147,18 @@ function h4({ defaultValue: e, defaultLanguage: t, defaultPath: n, value: r, lan
|
|
|
40129
40147
|
let P = K0.init();
|
|
40130
40148
|
return P.then((M) => (R.current = M) && S(!1)).catch((M) => (M == null ? void 0 : M.type) !== "cancelation" && console.error("Monaco initialization: error:", M)), () => L.current ? J() : P.cancel();
|
|
40131
40149
|
}), mn(() => {
|
|
40132
|
-
var M,
|
|
40150
|
+
var M, z, V, Z;
|
|
40133
40151
|
let P = Pi(R.current, e || r || "", t || i || "", o || n || "");
|
|
40134
|
-
P !== ((M = L.current) == null ? void 0 : M.getModel()) && (d && Xa.set(D, (
|
|
40152
|
+
P !== ((M = L.current) == null ? void 0 : M.getModel()) && (d && Xa.set(D, (z = L.current) == null ? void 0 : z.saveViewState()), (V = L.current) == null || V.setModel(P), d && ((Z = L.current) == null || Z.restoreViewState(Xa.get(o))));
|
|
40135
40153
|
}, [o], y), mn(() => {
|
|
40136
40154
|
var P;
|
|
40137
40155
|
(P = L.current) == null || P.updateOptions(u);
|
|
40138
40156
|
}, [u], y), mn(() => {
|
|
40139
40157
|
!L.current || r === void 0 || (L.current.getOption(R.current.editor.EditorOption.readOnly) ? L.current.setValue(r) : r !== L.current.getValue() && (F.current = !0, L.current.executeEdits("", [{ range: L.current.getModel().getFullModelRange(), text: r, forceMoveMarkers: !0 }]), L.current.pushUndoStop(), F.current = !1));
|
|
40140
40158
|
}, [r], y), mn(() => {
|
|
40141
|
-
var M,
|
|
40159
|
+
var M, z;
|
|
40142
40160
|
let P = (M = L.current) == null ? void 0 : M.getModel();
|
|
40143
|
-
P && i && ((
|
|
40161
|
+
P && i && ((z = R.current) == null || z.editor.setModelLanguage(P, i));
|
|
40144
40162
|
}, [i], y), mn(() => {
|
|
40145
40163
|
var P;
|
|
40146
40164
|
l !== void 0 && ((P = L.current) == null || P.revealLine(l));
|
|
@@ -40152,8 +40170,8 @@ function h4({ defaultValue: e, defaultLanguage: t, defaultPath: n, value: r, lan
|
|
|
40152
40170
|
var P;
|
|
40153
40171
|
if (!(!U.current || !R.current) && !O.current) {
|
|
40154
40172
|
H.current(R.current);
|
|
40155
|
-
let M = o || n,
|
|
40156
|
-
L.current = (P = R.current) == null ? void 0 : P.editor.create(U.current, k({ model:
|
|
40173
|
+
let M = o || n, z = Pi(R.current, r || e || "", t || i || "", M || "");
|
|
40174
|
+
L.current = (P = R.current) == null ? void 0 : P.editor.create(U.current, k({ model: z, automaticLayout: !0 }, u), h), d && L.current.restoreViewState(Xa.get(M)), R.current.editor.setTheme(a), l !== void 0 && L.current.revealLine(l), C(!0), O.current = !0;
|
|
40157
40175
|
}
|
|
40158
40176
|
}, [e, t, n, r, i, o, u, h, d, a, l]);
|
|
40159
40177
|
be(() => {
|
|
@@ -40162,16 +40180,16 @@ function h4({ defaultValue: e, defaultLanguage: t, defaultPath: n, value: r, lan
|
|
|
40162
40180
|
!A && !y && W();
|
|
40163
40181
|
}, [A, y, W]), E.current = r, be(() => {
|
|
40164
40182
|
var P, M;
|
|
40165
|
-
y && v && ((P = Y.current) == null || P.dispose(), Y.current = (M = L.current) == null ? void 0 : M.onDidChangeModelContent((
|
|
40166
|
-
F.current || v(L.current.getValue(),
|
|
40183
|
+
y && v && ((P = Y.current) == null || P.dispose(), Y.current = (M = L.current) == null ? void 0 : M.onDidChangeModelContent((z) => {
|
|
40184
|
+
F.current || v(L.current.getValue(), z);
|
|
40167
40185
|
}));
|
|
40168
40186
|
}, [y, v]), be(() => {
|
|
40169
40187
|
if (y) {
|
|
40170
40188
|
let P = R.current.editor.onDidChangeMarkers((M) => {
|
|
40171
40189
|
var V;
|
|
40172
|
-
let
|
|
40173
|
-
if (
|
|
40174
|
-
let Z = R.current.editor.getModelMarkers({ resource:
|
|
40190
|
+
let z = (V = L.current.getModel()) == null ? void 0 : V.uri;
|
|
40191
|
+
if (z && M.find((Z) => Z.path === z.path)) {
|
|
40192
|
+
let Z = R.current.editor.getModelMarkers({ resource: z });
|
|
40175
40193
|
x == null || x(Z);
|
|
40176
40194
|
}
|
|
40177
40195
|
});
|
|
@@ -40901,93 +40919,93 @@ const p4 = (e) => {
|
|
|
40901
40919
|
var I4 = /* @__PURE__ */ ((e) => (e.BOOLEAN = "BOOLEAN", e.NUMBER = "NUMBER", e.ENUM = "ENUM", e.FREE_INPUT = "FREE_INPUT", e))(I4 || {}), S4 = /* @__PURE__ */ ((e) => (e.ACTIVE = "ACTIVE", e.SETTLED = "SETTLED", e.VOID = "VOID", e))(S4 || {});
|
|
40902
40920
|
class F4 {
|
|
40903
40921
|
constructor() {
|
|
40904
|
-
|
|
40905
|
-
|
|
40906
|
-
|
|
40907
|
-
|
|
40908
|
-
|
|
40909
|
-
|
|
40910
|
-
|
|
40911
|
-
|
|
40922
|
+
N(this, "id", "");
|
|
40923
|
+
N(this, "question", "");
|
|
40924
|
+
N(this, "status", "ACTIVE");
|
|
40925
|
+
N(this, "void_reason", null);
|
|
40926
|
+
N(this, "points", 0);
|
|
40927
|
+
N(this, "outcome_type", null);
|
|
40928
|
+
N(this, "valid_outcomes", null);
|
|
40929
|
+
N(this, "outcome", null);
|
|
40912
40930
|
}
|
|
40913
40931
|
}
|
|
40914
40932
|
class N4 {
|
|
40915
40933
|
constructor() {
|
|
40916
|
-
|
|
40917
|
-
|
|
40918
|
-
|
|
40919
|
-
|
|
40920
|
-
|
|
40921
|
-
|
|
40922
|
-
|
|
40923
|
-
|
|
40924
|
-
|
|
40925
|
-
|
|
40926
|
-
|
|
40927
|
-
|
|
40928
|
-
|
|
40929
|
-
|
|
40930
|
-
|
|
40934
|
+
N(this, "id", "");
|
|
40935
|
+
N(this, "title", "");
|
|
40936
|
+
N(this, "description", "");
|
|
40937
|
+
N(this, "type", "EVENT");
|
|
40938
|
+
N(this, "rules", "");
|
|
40939
|
+
N(this, "status", "PENDING");
|
|
40940
|
+
N(this, "images", null);
|
|
40941
|
+
N(this, "related", []);
|
|
40942
|
+
N(this, "custom_fields", null);
|
|
40943
|
+
N(this, "predictions_cutoff", "");
|
|
40944
|
+
N(this, "fixtures", []);
|
|
40945
|
+
N(this, "tiebreaker", { stat_tiebreaker_enabled: !1, stat_total: 0 });
|
|
40946
|
+
N(this, "branding_id", null);
|
|
40947
|
+
N(this, "language", null);
|
|
40948
|
+
N(this, "flags", []);
|
|
40931
40949
|
}
|
|
40932
40950
|
}
|
|
40933
40951
|
class z4 {
|
|
40934
40952
|
constructor() {
|
|
40935
|
-
|
|
40936
|
-
|
|
40937
|
-
|
|
40953
|
+
N(this, "title", "");
|
|
40954
|
+
N(this, "description", "");
|
|
40955
|
+
N(this, "config", {});
|
|
40938
40956
|
}
|
|
40939
40957
|
}
|
|
40940
40958
|
const U4 = ["competition", "country", "venue", "athlete", "team", "coach", "staff"];
|
|
40941
40959
|
class V4 {
|
|
40942
40960
|
constructor(t) {
|
|
40943
|
-
|
|
40944
|
-
|
|
40945
|
-
|
|
40946
|
-
|
|
40961
|
+
N(this, "limit");
|
|
40962
|
+
N(this, "startAfter");
|
|
40963
|
+
N(this, "sortOrder");
|
|
40964
|
+
N(this, "infoPageIds");
|
|
40947
40965
|
this.limit = t.limit || 20, this.startAfter = t.startAfter || null, this.sortOrder = t.sortOrder || "desc", this.infoPageIds = t.infoPageIds || null;
|
|
40948
40966
|
}
|
|
40949
40967
|
}
|
|
40950
40968
|
class H4 {
|
|
40951
40969
|
constructor(t) {
|
|
40952
|
-
|
|
40953
|
-
|
|
40954
|
-
|
|
40955
|
-
|
|
40956
|
-
|
|
40957
|
-
|
|
40958
|
-
|
|
40959
|
-
|
|
40960
|
-
|
|
40961
|
-
|
|
40962
|
-
|
|
40963
|
-
|
|
40964
|
-
|
|
40970
|
+
N(this, "id", "");
|
|
40971
|
+
N(this, "title", "");
|
|
40972
|
+
N(this, "subtitle", null);
|
|
40973
|
+
N(this, "type", "");
|
|
40974
|
+
N(this, "contentType", ki.JSON);
|
|
40975
|
+
N(this, "body", "");
|
|
40976
|
+
N(this, "language", "");
|
|
40977
|
+
N(this, "context", null);
|
|
40978
|
+
N(this, "brandingId", null);
|
|
40979
|
+
N(this, "images", null);
|
|
40980
|
+
N(this, "labels", null);
|
|
40981
|
+
N(this, "createdAt", "");
|
|
40982
|
+
N(this, "updatedAt", "");
|
|
40965
40983
|
this.id = t.id, this.title = t.title, this.subtitle = t.subtitle, this.type = t.type, this.contentType = t.content_type, this.body = t.body, this.language = t.language, this.context = t.context, this.brandingId = t.branding_id, this.images = t.images, this.labels = t.labels, this.createdAt = t.created_at, this.updatedAt = t.updated_at;
|
|
40966
40984
|
}
|
|
40967
40985
|
}
|
|
40968
40986
|
class W4 {
|
|
40969
40987
|
constructor() {
|
|
40970
|
-
|
|
40971
|
-
|
|
40972
|
-
|
|
40973
|
-
|
|
40974
|
-
|
|
40975
|
-
|
|
40976
|
-
|
|
40977
|
-
|
|
40978
|
-
|
|
40979
|
-
|
|
40980
|
-
|
|
40981
|
-
|
|
40982
|
-
|
|
40983
|
-
|
|
40984
|
-
|
|
40985
|
-
|
|
40986
|
-
|
|
40987
|
-
|
|
40988
|
-
|
|
40989
|
-
|
|
40990
|
-
|
|
40988
|
+
N(this, "id", "");
|
|
40989
|
+
N(this, "title", "");
|
|
40990
|
+
N(this, "description", "");
|
|
40991
|
+
N(this, "branding", null);
|
|
40992
|
+
N(this, "branding_id", null);
|
|
40993
|
+
N(this, "type", "");
|
|
40994
|
+
N(this, "status", "");
|
|
40995
|
+
N(this, "language", "");
|
|
40996
|
+
N(this, "tiebreaker", { time_tiebreaker: !0 });
|
|
40997
|
+
N(this, "ad_content", "");
|
|
40998
|
+
N(this, "auth_requirement", null);
|
|
40999
|
+
N(this, "labels", {});
|
|
41000
|
+
N(this, "custom_fields", {});
|
|
41001
|
+
N(this, "rules", "");
|
|
41002
|
+
N(this, "flags", []);
|
|
41003
|
+
N(this, "images", null);
|
|
41004
|
+
N(this, "predictions_cutoff", "");
|
|
41005
|
+
N(this, "schedule_open_at", "");
|
|
41006
|
+
N(this, "fixtures", []);
|
|
41007
|
+
N(this, "related", []);
|
|
41008
|
+
N(this, "excluded_profile_ids", []);
|
|
40991
41009
|
}
|
|
40992
41010
|
}
|
|
40993
41011
|
const A4 = { supportedLanguages: Ne, languagesMap: Ko }, T4 = { areAllValuesFalsy: Vo, remapKeysToSpecificCase: zs, translateTexts: C4 }, G4 = {
|