fansunited-management-components 1.71.0-RC3 → 1.71.0-RC4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.es.js 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 z = (e, t, n) => pc(e, typeof t != "symbol" ? t + "" : t, n);
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
- z(this, "apiKey", "");
11027
- z(this, "clientId", "");
11028
- z(this, "environment", "");
11029
- z(this, "mainQueryParams", { key: "", client_id: "" });
11030
- z(this, "headers", { "Content-Type": "application/json" });
11031
- z(this, "clientApiBaseUrl", "");
11032
- z(this, "sportal365ImagesSearchURL", "https://content.api.sportal365.com/v2/images/search?");
11033
- z(this, "sportal365Config", null);
11034
- z(this, "generateSignedInUrl", (t) => _(this, null, function* () {
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
- z(this, "storeInBucket", (t, n, r) => _(this, null, function* () {
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
- z(this, "fetchImagesFromSportal365", (t, n, r) => _(this, null, function* () {
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
- z(this, "getSchedulersByEntityId", (t) => _(this, null, function* () {
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
- z(this, "setSchedulers", (t, n, r) => _(this, null, function* () {
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
- z(this, "deleteScheduledTask", (t) => _(this, null, function* () {
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
- z(this, "getLoggedInStaffMember", () => _(this, null, function* () {
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
- z(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
- z(this, "throwErrorFromXmlResponse", (t) => {
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
- z(this, "getToken", () => _(this, null, function* () {
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
- z(this, "baseUrl", "https://v1.formula-1.api-sports.io");
11111
- z(this, "apiKey");
11112
- z(this, "headers");
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
- z(this, "loyaltyBaseUrl", "");
11175
- z(this, "predictionBaseUrl", "");
11176
- z(this, "miniGamesApiBaseUrl", "");
11177
- z(this, "reportingApiBaseUrl", "");
11178
- z(this, "votingApiBaseUrl", "");
11179
- z(this, "profileApiBaseUrl", "");
11180
- z(this, "customResolverUrl", "");
11181
- z(this, "discussionsApiBaseUrl", "");
11182
- z(this, "aiServiceBaseUrl", "");
11183
- z(this, "ikebanaProxyBaseUrl", "");
11184
- z(this, "ikebanaGcpBaseUrl", "");
11185
- z(this, "apiSports");
11186
- z(this, "getClientById", () => _(this, null, function* () {
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
- z(this, "createTemplate", (n) => _(this, null, function* () {
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
- z(this, "editTemplate", (n, r) => _(this, null, function* () {
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
- z(this, "deleteTemplate", (n) => _(this, null, function* () {
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
- z(this, "setWinners", (n) => _(this, null, function* () {
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
- z(this, "exportDetailedLeaderboard", (n, r, i) => _(this, null, function* () {
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
- z(this, "exportDetailedGameLeaderboard", (n, r) => _(this, null, function* () {
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
- z(this, "createGame", (n) => _(this, null, function* () {
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
- z(this, "editGame", (n, r) => _(this, null, function* () {
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
- z(this, "getEntityFeature", (n, r) => _(this, null, function* () {
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
- z(this, "getClientFeatures", (n, r = 1) => _(this, null, function* () {
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
- z(this, "updateEntityFeatures", (n, r) => _(this, null, function* () {
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
- z(this, "getClassicQuizFeature", () => _(this, null, function* () {
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
- z(this, "getEitherOrFeature", () => _(this, null, function* () {
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
- z(this, "getPollFeature", () => _(this, null, function* () {
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
- z(this, "createClassicQuiz", (n) => _(this, null, function* () {
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
- z(this, "updateClassicQuiz", (n, r) => _(this, null, function* () {
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
- z(this, "getClassicQuizById", (n) => _(this, null, function* () {
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
- z(this, "deleteClassicQuiz", (n) => _(this, null, function* () {
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
- z(this, "calculateQuestionsReport", (n) => _(this, null, function* () {
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
- z(this, "exportUsers", (n) => _(this, null, function* () {
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
- z(this, "getClassicQuizParticipations", (n, r, i, o) => _(this, null, function* () {
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
- z(this, "getEntityParticipations", (n, r, i) => _(this, null, function* () {
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
- z(this, "createPoll", (n) => _(this, null, function* () {
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
- z(this, "updatePoll", (n, r) => _(this, null, function* () {
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
- z(this, "deletePoll", (n) => _(this, null, function* () {
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
- z(this, "getEitherOrById", (n, r) => _(this, null, function* () {
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
- z(this, "getEitherOrByIdReadOnlyClient", (n, r, i) => _(this, null, function* () {
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
- z(this, "createEitherOr", (n) => _(this, null, function* () {
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
- z(this, "updateEitherOr", (n, r) => _(this, null, function* () {
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
- z(this, "deleteEitherOr", (n) => _(this, null, function* () {
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
- z(this, "getLists", (n, r, i = "DESC") => _(this, null, function* () {
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
- z(this, "getListById", (n) => _(this, null, function* () {
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
- z(this, "getListContent", (n, r, i = "DESC", o) => _(this, null, function* () {
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
- z(this, "createList", (n) => _(this, null, function* () {
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
- z(this, "updateList", (n, r) => _(this, null, function* () {
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
- z(this, "deleteList", (n) => _(this, null, function* () {
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
- z(this, "getLanguageConfig", () => _(this, null, function* () {
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
- z(this, "updateLanguageConfig", (n) => _(this, null, function* () {
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
- z(this, "createBracketGame", (n) => _(this, null, function* () {
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
- z(this, "updateBracketGame", (n, r) => _(this, null, function* () {
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
- z(this, "resolvePredictions", (n) => _(this, null, function* () {
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
- z(this, "exportLeadsPerEntity", (n) => _(this, null, function* () {
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
- z(this, "getLeadStatistics", (n) => _(this, null, function* () {
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
- z(this, "exportLeads", (n) => _(this, null, function* () {
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
- z(this, "createStandingGame", (n) => _(this, null, function* () {
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
- z(this, "updateStandingGame", (n, r) => _(this, null, function* () {
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
- z(this, "resolveStandingPredictions", (n) => _(this, null, function* () {
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
- z(this, "moderateUserPosts", (n, r) => _(this, null, function* () {
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
- z(this, "getUserBanStatus", (n) => _(this, null, function* () {
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
- z(this, "banUser", (n, r, i) => _(this, null, function* () {
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
- z(this, "unbanUser", (n, r) => _(this, null, function* () {
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
- z(this, "updateUser", (n, r, i) => _(this, null, function* () {
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
- z(this, "deleteUserProfile", (n) => _(this, null, function* () {
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
- z(this, "createDiscussion", (n) => _(this, null, function* () {
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
- z(this, "deleteDiscussion", (n) => _(this, null, function* () {
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
- z(this, "moderatePosts", (...o) => _(this, [...o], function* (n = "", r = [], i) {
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
- z(this, "pinDiscussionPosts", (n, r) => _(this, null, function* () {
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
- z(this, "unpinDiscussionPosts", (n, r) => _(this, null, function* () {
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
- z(this, "getPostsByStaffMember", (n) => _(this, null, function* () {
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
- z(this, "getReportedPosts", (n) => _(this, null, function* () {
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
- z(this, "updateDiscussionsFeature", (n) => _(this, null, function* () {
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
- z(this, "updateProfilePreferences", (n) => _(this, null, function* () {
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
- z(this, "getClientBadges", () => _(this, null, function* () {
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
- z(this, "updateClientBadges", (n) => _(this, null, function* () {
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
- z(this, "getEngagementThroughPredictionsReport", (n, r, i) => _(this, null, function* () {
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
- z(this, "createPersonalityQuiz", (n) => _(this, null, function* () {
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
- z(this, "updatePersonalityQuiz", (n, r) => _(this, null, function* () {
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
- z(this, "deletePersonalityQuiz", (n) => _(this, null, function* () {
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
- z(this, "generatePostMatchQuiz", (n) => _(this, null, function* () {
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
- z(this, "generatePreMatchQuiz", (n) => _(this, null, function* () {
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
- z(this, "generateHalfTimeMatchQuiz", (n) => _(this, null, function* () {
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
- z(this, "generatePostMatchPoll", (n) => _(this, null, function* () {
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
- z(this, "createEventGame", (n) => _(this, null, function* () {
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
- z(this, "updateEventGame", (n, r) => _(this, null, function* () {
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
- z(this, "resolveEventGamePredictions", (n) => _(this, null, function* () {
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
- z(this, "createBrandingTemplate", (n) => _(this, null, function* () {
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
- z(this, "updateBrandingTemplate", (n, r) => _(this, null, function* () {
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
- z(this, "deleteBrandingTemplate", (n) => _(this, null, function* () {
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
- z(this, "getBrandingTemplates", (n, r) => _(this, null, function* () {
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
- z(this, "getBrandingTemplateById", (n, r) => _(this, null, function* () {
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
- z(this, "getWidgetConfigurations", (n) => _(this, null, function* () {
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
- z(this, "getWidgetConfigurationById", (n, r) => _(this, null, function* () {
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
- z(this, "createWidgetConfiguration", (n) => _(this, null, function* () {
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
- z(this, "updateWidgetConfiguration", (n, r) => _(this, null, function* () {
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
- z(this, "deleteWidgetConfiguration", (n) => _(this, null, function* () {
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
- z(this, "getInfoPages", (n, r) => _(this, null, function* () {
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
- z(this, "getInfoPageById", (n, r) => _(this, null, function* () {
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
- z(this, "createInfoPage", (n) => _(this, null, function* () {
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
- z(this, "updateInfoPage", (n, r) => _(this, null, function* () {
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
- z(this, "deleteInfoPage", (n) => _(this, null, function* () {
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
- z(this, "exportClassicQuizParticipations", (n) => _(this, null, function* () {
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,7 +11876,7 @@ 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
- z(this, "getSportEntities", (l, ...c) => _(this, [l, ...c], function* (n, { page: r = 1, limit: i = 10, sport: o } = {}, a = this.clientId) {
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 }),
@@ -11902,7 +11902,7 @@ class B1 extends A1 {
11902
11902
  * A blank or whitespace-only sport is treated as no filter, so an "All sports"
11903
11903
  * option can pass its value through without the caller special-casing it.
11904
11904
  */
11905
- z(this, "buildSportEntityBrowseQuery", (n) => {
11905
+ N(this, "buildSportEntityBrowseQuery", (n) => {
11906
11906
  const r = String(n != null ? n : "").trim().toUpperCase().replace(/\s+/g, "_");
11907
11907
  return r ? { bool: { filter: [{ term: { sport: r } }] } } : { match_all: {} };
11908
11908
  });
@@ -11912,47 +11912,56 @@ class B1 extends A1 {
11912
11912
  * A query containing ':' is treated as an exact id lookup, since entity ids
11913
11913
  * look like `fb:c:123` and an analyzed match on them is unreliable.
11914
11914
  */
11915
- z(this, "searchSportEntities", (a, l, ...c) => _(this, [a, l, ...c], function* (n, r, i = 100, o = this.clientId) {
11915
+ N(this, "searchSportEntities", (a, l, ...c) => _(this, [a, l, ...c], function* (n, r, i = 100, o = this.clientId) {
11916
11916
  const u = `${this.resolveSportEntityIndex(r, o)}/_search`, h = yield this.getToken(), d = n.includes(":") ? { term: { id: n } } : {
11917
11917
  multi_match: {
11918
11918
  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
11919
  type: "best_fields",
11923
11920
  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
11921
  fields: ["search_title.autocomplete^3", "search_variations.autocomplete", "search_title^2", "search_variations"]
11939
11922
  }
11940
11923
  };
11941
11924
  return yield fetch(this.ikebanaProxyBaseUrl + u, {
11942
11925
  headers: q(k({}, this.headers), { Authorization: "Bearer " + h }),
11943
11926
  method: "POST",
11944
- body: JSON.stringify({ query: d, size: i })
11927
+ body: JSON.stringify({ query: this.withPopularityRanking(d), size: i })
11945
11928
  });
11946
11929
  }));
11930
+ /**
11931
+ * Rank by popularity the way the Search API does.
11932
+ *
11933
+ * `/entities/search` wraps its query in exactly this `function_score`, so a
11934
+ * management search that omits it lists entities in a different order from the
11935
+ * one every consuming app sees - the editor would disagree with production
11936
+ * about which Premier League is the obvious one.
11937
+ *
11938
+ * The settings are copied deliberately rather than tuned:
11939
+ * - `modifier: none` and `factor: 1` make the score a straight multiplication
11940
+ * by `popularity`, not a log or a scaled curve.
11941
+ * - `missing: 1` leaves documents without a `popularity` scored as they were,
11942
+ * rather than zeroing them. Most types carry no popularity today, so any
11943
+ * other value here would silently bury them.
11944
+ * - `boost_mode: multiply` keeps text relevance in charge and lets popularity
11945
+ * decide between comparable matches.
11946
+ *
11947
+ * Keep in step with ElasticsearchService#buildEntitySearchQuery in search-api.
11948
+ */
11949
+ N(this, "withPopularityRanking", (n) => ({
11950
+ function_score: {
11951
+ query: n,
11952
+ field_value_factor: { field: "popularity", modifier: "none", factor: 1, missing: 1 },
11953
+ boost_mode: "multiply"
11954
+ }
11955
+ }));
11947
11956
  /** Fetch a single sport entity. Returns 404 when it does not exist. */
11948
- z(this, "getSportEntity", (o, a, ...l) => _(this, [o, a, ...l], function* (n, r, i = this.clientId) {
11957
+ N(this, "getSportEntity", (o, a, ...l) => _(this, [o, a, ...l], function* (n, r, i = this.clientId) {
11949
11958
  const c = `${this.resolveSportEntityIndex(r, i)}/_doc/${encodeURIComponent(n)}`, u = yield this.getToken();
11950
11959
  return yield fetch(this.ikebanaProxyBaseUrl + c, {
11951
11960
  headers: q(k({}, this.headers), { Authorization: "Bearer " + u })
11952
11961
  });
11953
11962
  }));
11954
11963
  /** Count sport entities in the global catalogue or a client overlay. */
11955
- z(this, "countSportEntities", (i, ...o) => _(this, [i, ...o], function* (n, r = this.clientId) {
11964
+ N(this, "countSportEntities", (i, ...o) => _(this, [i, ...o], function* (n, r = this.clientId) {
11956
11965
  const a = `${this.resolveSportEntityIndex(n, r)}/_count`, l = yield this.getToken();
11957
11966
  return yield fetch(this.ikebanaProxyBaseUrl + a, {
11958
11967
  headers: q(k({}, this.headers), { Authorization: "Bearer " + l })
@@ -11965,7 +11974,7 @@ class B1 extends A1 {
11965
11974
  * how the Search API resolves it - so pass the same `id` plus a `clientId`.
11966
11975
  * Writing to the global catalogue requires the `platform_operator` role.
11967
11976
  */
11968
- z(this, "createSportEntity", (o, a, ...l) => _(this, [o, a, ...l], function* (n, r, i = this.clientId) {
11977
+ N(this, "createSportEntity", (o, a, ...l) => _(this, [o, a, ...l], function* (n, r, i = this.clientId) {
11969
11978
  const c = `${this.resolveSportEntityIndex(r, i)}/_doc/${encodeURIComponent(n.id)}`, u = yield this.getToken();
11970
11979
  return yield fetch(this.ikebanaProxyBaseUrl + c, {
11971
11980
  headers: q(k({}, this.headers), { Authorization: "Bearer " + u }),
@@ -11974,7 +11983,7 @@ class B1 extends A1 {
11974
11983
  });
11975
11984
  }));
11976
11985
  /** Update a sport entity. A full-document upsert - there is no partial update. */
11977
- z(this, "updateSportEntity", (a, l, c, ...u) => _(this, [a, l, c, ...u], function* (n, r, i, o = this.clientId) {
11986
+ N(this, "updateSportEntity", (a, l, c, ...u) => _(this, [a, l, c, ...u], function* (n, r, i, o = this.clientId) {
11978
11987
  const h = `${this.resolveSportEntityIndex(i, o)}/_doc/${encodeURIComponent(n)}`, d = yield this.getToken();
11979
11988
  return yield fetch(this.ikebanaProxyBaseUrl + h, {
11980
11989
  headers: q(k({}, this.headers), { Authorization: "Bearer " + d }),
@@ -11988,7 +11997,7 @@ class B1 extends A1 {
11988
11997
  * With a `clientId` this removes only that client's override and leaves the
11989
11998
  * global entity untouched.
11990
11999
  */
11991
- z(this, "deleteSportEntity", (o, a, ...l) => _(this, [o, a, ...l], function* (n, r, i = this.clientId) {
12000
+ N(this, "deleteSportEntity", (o, a, ...l) => _(this, [o, a, ...l], function* (n, r, i = this.clientId) {
11992
12001
  const c = `${this.resolveSportEntityIndex(r, i)}/_doc/${encodeURIComponent(n)}`, u = yield this.getToken();
11993
12002
  return yield fetch(this.ikebanaProxyBaseUrl + c, {
11994
12003
  headers: q(k({}, this.headers), { Authorization: "Bearer " + u }),
@@ -12012,7 +12021,7 @@ class B1 extends A1 {
12012
12021
  * Accepts PNG, JPG, GIF, SVG, WebP, BMP and TIFF up to 20 MB; anything else is
12013
12022
  * rejected by the proxy with 415 or 413.
12014
12023
  */
12015
- z(this, "uploadSportEntityAsset", (n, r, i) => _(this, null, function* () {
12024
+ N(this, "uploadSportEntityAsset", (n, r, i) => _(this, null, function* () {
12016
12025
  const o = { entityId: r };
12017
12026
  i && (o.assetKey = i), n instanceof File && n.name && (o.filename = n.name);
12018
12027
  const a = yield this.getToken();
@@ -12034,7 +12043,7 @@ class B1 extends A1 {
12034
12043
  * refused - the proxy is doing the fetching, so an unguarded URL here would be
12035
12044
  * an SSRF vector into its network.
12036
12045
  */
12037
- z(this, "importSportEntityAssetFromUrl", (n, r, i) => _(this, null, function* () {
12046
+ N(this, "importSportEntityAssetFromUrl", (n, r, i) => _(this, null, function* () {
12038
12047
  const o = yield this.getToken();
12039
12048
  return yield fetch(this.ikebanaGcpBaseUrl + "upload", {
12040
12049
  headers: q(k({}, this.headers), { Authorization: "Bearer " + o }),
@@ -12054,7 +12063,7 @@ class B1 extends A1 {
12054
12063
  * global write or another client's - which the proxy rejects with a 400, and
12055
12064
  * which would otherwise produce an override the Search API silently never serves.
12056
12065
  */
12057
- z(this, "buildSportEntityWriteBody", (n, r) => {
12066
+ N(this, "buildSportEntityWriteBody", (n, r) => {
12058
12067
  const i = k({}, n);
12059
12068
  return delete i._id, delete i.client_id, r && (i.client_id = r.toLowerCase()), i;
12060
12069
  });
@@ -12079,7 +12088,7 @@ class B1 extends A1 {
12079
12088
  * mixed-case id would also diverge the index name from the stored `client_id`,
12080
12089
  * which makes the override invisible to the Search API's exact term filter.
12081
12090
  */
12082
- z(this, "resolveSportEntityIndex", (n, r) => {
12091
+ N(this, "resolveSportEntityIndex", (n, r) => {
12083
12092
  const i = `search-entities-${n}`;
12084
12093
  return r ? `${i}-${r.toLowerCase()}` : i;
12085
12094
  });
@@ -13136,7 +13145,7 @@ function $T(e) {
13136
13145
  key: X.key,
13137
13146
  event: X
13138
13147
  }), J(X);
13139
- }, N = (ae) => (X) => {
13148
+ }, z = (ae) => (X) => {
13140
13149
  var se, re;
13141
13150
  (se = ae.onBlur) == null || se.call(ae, X), !X.defaultMuiPrevented && ((re = A.current) != null && re.contains(X.relatedTarget) || O({
13142
13151
  type: Nt.blur,
@@ -13149,7 +13158,7 @@ function $T(e) {
13149
13158
  tabIndex: i === "DOM" ? -1 : 0,
13150
13159
  ref: S
13151
13160
  }, X, {
13152
- onBlur: N(X),
13161
+ onBlur: z(X),
13153
13162
  onKeyDown: M(X)
13154
13163
  });
13155
13164
  }, Z = K.useCallback((ae) => {
@@ -15523,7 +15532,7 @@ function j_(e) {
15523
15532
  getCssVar: v,
15524
15533
  spacing: zv(m)
15525
15534
  });
15526
- function N(X, se) {
15535
+ function z(X, se) {
15527
15536
  Object.keys(se).forEach((re) => {
15528
15537
  const ne = {
15529
15538
  main: "500",
@@ -15534,7 +15543,7 @@ function j_(e) {
15534
15543
  });
15535
15544
  }
15536
15545
  Object.entries(M.colorSchemes).forEach(([X, se]) => {
15537
- N(X, se.palette);
15546
+ z(X, se.palette);
15538
15547
  });
15539
15548
  const V = {
15540
15549
  prefix: f,
@@ -15824,12 +15833,12 @@ const Gv = ht("MuiListItem", ["root", "startAction", "endAction", "nested", "nes
15824
15833
  children: [b && /* @__PURE__ */ s.jsx(O, $({}, F, {
15825
15834
  children: b
15826
15835
  })), K.Children.map(d, (P, M) => {
15827
- var N;
15836
+ var z;
15828
15837
  return /* @__PURE__ */ K.isValidElement(P) ? /* @__PURE__ */ K.cloneElement(P, $({}, M === 0 && {
15829
15838
  "data-first-child": ""
15830
15839
  }, Cv(P, ["ListItem"]) && {
15831
15840
  // The ListItem of ListItem should not be 'li'
15832
- component: ((N = P.props) == null ? void 0 : N.component) || "div"
15841
+ component: ((z = P.props) == null ? void 0 : z.component) || "div"
15833
15842
  })) : P;
15834
15843
  }), I && /* @__PURE__ */ s.jsx(W, $({}, J, {
15835
15844
  children: I
@@ -20455,7 +20464,7 @@ const IR = (e) => (t) => {
20455
20464
  getSlotProps: m,
20456
20465
  externalForwardedProps: W,
20457
20466
  ownerState: O
20458
- }), [M, N] = ze("input", $({}, b && {
20467
+ }), [M, z] = ze("input", $({}, b && {
20459
20468
  additionalProps: {
20460
20469
  id: b.htmlFor,
20461
20470
  "aria-describedby": b["aria-describedby"]
@@ -20481,7 +20490,7 @@ const IR = (e) => (t) => {
20481
20490
  return /* @__PURE__ */ s.jsxs(J, $({}, P, {
20482
20491
  children: [S && /* @__PURE__ */ s.jsx(V, $({}, Z, {
20483
20492
  children: S
20484
- })), /* @__PURE__ */ s.jsx(M, $({}, N)), R && /* @__PURE__ */ s.jsx(oe, $({}, ae, {
20493
+ })), /* @__PURE__ */ s.jsx(M, $({}, z)), R && /* @__PURE__ */ s.jsx(oe, $({}, ae, {
20485
20494
  children: R
20486
20495
  }))]
20487
20496
  }));
@@ -20964,7 +20973,7 @@ const GR = ht("MuiButton", ["root", "colorPrimary", "colorNeutral", "colorDanger
20964
20973
  component: I,
20965
20974
  slots: w,
20966
20975
  slotProps: v
20967
- }), [M, N] = ze("root", {
20976
+ }), [M, z] = ze("root", {
20968
20977
  ref: n,
20969
20978
  className: F.root,
20970
20979
  elementType: ZR,
@@ -20991,7 +21000,7 @@ const GR = ht("MuiButton", ["root", "colorPrimary", "colorNeutral", "colorDanger
20991
21000
  externalForwardedProps: P,
20992
21001
  ownerState: O
20993
21002
  });
20994
- return /* @__PURE__ */ s.jsxs(M, $({}, N, {
21003
+ return /* @__PURE__ */ s.jsxs(M, $({}, z, {
20995
21004
  children: [(d || p && m === "start") && /* @__PURE__ */ s.jsx(V, $({}, Z, {
20996
21005
  children: p && m === "start" ? D : d
20997
21006
  })), o, p && m === "center" && /* @__PURE__ */ s.jsx(X, $({}, se, {
@@ -21536,8 +21545,8 @@ function ch() {
21536
21545
  var w = b + I, v = g[w];
21537
21546
  g[w] = (v << 8 | v >>> 24) & 16711935 | (v << 24 | v >>> 8) & 4278255360;
21538
21547
  }
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], N = x[2], V = x[3];
21540
- P = d(P, M, N, V, y, 7, u[0]), V = d(V, P, M, N, C, 12, u[1]), N = d(N, V, P, M, A, 17, u[2]), M = d(M, N, V, P, S, 22, u[3]), P = d(P, M, N, V, R, 7, u[4]), V = d(V, P, M, N, L, 12, u[5]), N = d(N, V, P, M, U, 17, u[6]), M = d(M, N, V, P, T, 22, u[7]), P = d(P, M, N, V, H, 7, u[8]), V = d(V, P, M, N, Y, 12, u[9]), N = d(N, V, P, M, E, 17, u[10]), M = d(M, N, V, P, D, 22, u[11]), P = d(P, M, N, V, O, 7, u[12]), V = d(V, P, M, N, F, 12, u[13]), N = d(N, V, P, M, W, 17, u[14]), M = d(M, N, V, P, J, 22, u[15]), P = f(P, M, N, V, C, 5, u[16]), V = f(V, P, M, N, U, 9, u[17]), N = f(N, V, P, M, D, 14, u[18]), M = f(M, N, V, P, y, 20, u[19]), P = f(P, M, N, V, L, 5, u[20]), V = f(V, P, M, N, E, 9, u[21]), N = f(N, V, P, M, J, 14, u[22]), M = f(M, N, V, P, R, 20, u[23]), P = f(P, M, N, V, Y, 5, u[24]), V = f(V, P, M, N, W, 9, u[25]), N = f(N, V, P, M, S, 14, u[26]), M = f(M, N, V, P, H, 20, u[27]), P = f(P, M, N, V, F, 5, u[28]), V = f(V, P, M, N, A, 9, u[29]), N = f(N, V, P, M, T, 14, u[30]), M = f(M, N, V, P, O, 20, u[31]), P = p(P, M, N, V, L, 4, u[32]), V = p(V, P, M, N, H, 11, u[33]), N = p(N, V, P, M, D, 16, u[34]), M = p(M, N, V, P, W, 23, u[35]), P = p(P, M, N, V, C, 4, u[36]), V = p(V, P, M, N, R, 11, u[37]), N = p(N, V, P, M, T, 16, u[38]), M = p(M, N, V, P, E, 23, u[39]), P = p(P, M, N, V, F, 4, u[40]), V = p(V, P, M, N, y, 11, u[41]), N = p(N, V, P, M, S, 16, u[42]), M = p(M, N, V, P, U, 23, u[43]), P = p(P, M, N, V, Y, 4, u[44]), V = p(V, P, M, N, O, 11, u[45]), N = p(N, V, P, M, J, 16, u[46]), M = p(M, N, V, P, A, 23, u[47]), P = m(P, M, N, V, y, 6, u[48]), V = m(V, P, M, N, T, 10, u[49]), N = m(N, V, P, M, W, 15, u[50]), M = m(M, N, V, P, L, 21, u[51]), P = m(P, M, N, V, O, 6, u[52]), V = m(V, P, M, N, S, 10, u[53]), N = m(N, V, P, M, E, 15, u[54]), M = m(M, N, V, P, C, 21, u[55]), P = m(P, M, N, V, H, 6, u[56]), V = m(V, P, M, N, J, 10, u[57]), N = m(N, V, P, M, U, 15, u[58]), M = m(M, N, V, P, F, 21, u[59]), P = m(P, M, N, V, R, 6, u[60]), V = m(V, P, M, N, D, 10, u[61]), N = m(N, V, P, M, A, 15, u[62]), M = m(M, N, V, P, Y, 21, u[63]), x[0] = x[0] + P | 0, x[1] = x[1] + M | 0, x[2] = x[2] + N | 0, x[3] = x[3] + V | 0;
21548
+ 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];
21549
+ 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
21550
  },
21542
21551
  _doFinalize: function() {
21543
21552
  var g = this._data, b = g.words, I = this._nDataBytes * 8, w = g.sigBytes * 8;
@@ -21676,7 +21685,7 @@ var aO = wb.exports;
21676
21685
  const sO = /* @__PURE__ */ Fn(aO);
21677
21686
  class Ib {
21678
21687
  constructor() {
21679
- z(this, "readFileAndHash", (t) => new Promise((n, r) => {
21688
+ N(this, "readFileAndHash", (t) => new Promise((n, r) => {
21680
21689
  const i = new FileReader();
21681
21690
  i.onload = (o) => {
21682
21691
  const a = o.target.result, l = Uf.create(new Uint8Array(a)), u = zf(l).toString(sO);
@@ -21685,7 +21694,7 @@ class Ib {
21685
21694
  r(o);
21686
21695
  }, i.readAsArrayBuffer(t);
21687
21696
  }));
21688
- z(this, "generateHashFileName", (t) => new Promise((n, r) => {
21697
+ N(this, "generateHashFileName", (t) => new Promise((n, r) => {
21689
21698
  const i = new FileReader();
21690
21699
  i.onload = (o) => {
21691
21700
  const a = o.target.result, l = Uf.create(new Uint8Array(a)), c = zf(l).toString();
@@ -22788,7 +22797,7 @@ const Lb = ({ labels: e, open: t, imageSrc: n, resetDefaultImageUrl: r, toggleMo
22788
22797
  }, A = new Ib(), S = tn(hl), R = () => {
22789
22798
  g(""), u(!1);
22790
22799
  }, L = (F) => {
22791
- var P, M, N, V, Z, oe;
22800
+ var P, M, z, V, Z, oe;
22792
22801
  let W = "", J = "primary";
22793
22802
  switch (F) {
22794
22803
  case "copy_url":
@@ -22801,7 +22810,7 @@ const Lb = ({ labels: e, open: t, imageSrc: n, resetDefaultImageUrl: r, toggleMo
22801
22810
  W = (M = e.imageResetMessage) != null ? M : "", J = "primary";
22802
22811
  break;
22803
22812
  case "upload_success":
22804
- W = (N = e.uploadingImageMessage) != null ? N : "", J = "success";
22813
+ W = (z = e.uploadingImageMessage) != null ? z : "", J = "success";
22805
22814
  break;
22806
22815
  case "upload_failed":
22807
22816
  W = (V = e.uploadingImageErrorMessage) != null ? V : "", J = "danger";
@@ -22824,12 +22833,12 @@ const Lb = ({ labels: e, open: t, imageSrc: n, resetDefaultImageUrl: r, toggleMo
22824
22833
  if (W) {
22825
22834
  l(!0);
22826
22835
  try {
22827
- const J = W.type.split("/")[1], P = yield A.readFileAndHash(W), M = (yield A.generateHashFileName(W)) + "." + J, N = {
22836
+ const J = W.type.split("/")[1], P = yield A.readFileAndHash(W), M = (yield A.generateHashFileName(W)) + "." + J, z = {
22828
22837
  image_type: J,
22829
22838
  image_file_name: M,
22830
22839
  image_size: W.size,
22831
22840
  base64_sum: P
22832
- }, V = yield S == null ? void 0 : S.https.generateSignedInUrl(N);
22841
+ }, V = yield S == null ? void 0 : S.https.generateSignedInUrl(z);
22833
22842
  if (V != null && V.ok) {
22834
22843
  const Z = yield V.json(), oe = { "Content-Type": W.type, "Content-MD5": P };
22835
22844
  try {
@@ -22854,9 +22863,9 @@ const Lb = ({ labels: e, open: t, imageSrc: n, resetDefaultImageUrl: r, toggleMo
22854
22863
  image_file_name: P,
22855
22864
  image_size: F.size,
22856
22865
  base64_sum: J
22857
- }, N = yield S == null ? void 0 : S.https.generateSignedInUrl(M);
22858
- if (N != null && N.ok) {
22859
- const V = yield N.json(), Z = { "Content-Type": F.type, "Content-MD5": J };
22866
+ }, z = yield S == null ? void 0 : S.https.generateSignedInUrl(M);
22867
+ if (z != null && z.ok) {
22868
+ const V = yield z.json(), Z = { "Content-Type": F.type, "Content-MD5": J };
22860
22869
  try {
22861
22870
  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
22871
  r(ae || ""), L("upload_success");
@@ -22864,7 +22873,7 @@ const Lb = ({ labels: e, open: t, imageSrc: n, resetDefaultImageUrl: r, toggleMo
22864
22873
  console.error("There was a problem with uploading the file: ", oe), L("upload_failed");
22865
22874
  }
22866
22875
  } else
22867
- console.error("There was a problem with generating signed in URL: ", yield N == null ? void 0 : N.json()), L("sign_in_url_failed");
22876
+ console.error("There was a problem with generating signed in URL: ", yield z == null ? void 0 : z.json()), L("sign_in_url_failed");
22868
22877
  } catch (W) {
22869
22878
  console.error("There was a problem with encrypting file...", W), L("encrypting_file_failed");
22870
22879
  }
@@ -23781,7 +23790,7 @@ function tj(e, t) {
23781
23790
  config: Kt(Kt({}, zi), Dt.defaultConfig),
23782
23791
  l10n: ia
23783
23792
  };
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 = N, 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;
23793
+ 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
23794
  function r() {
23786
23795
  n.utils = {
23787
23796
  getDaysInMonth: function(j, B) {
@@ -24103,7 +24112,7 @@ function tj(e, t) {
24103
24112
  }
24104
24113
  n.redraw(), j && Ze("onChange");
24105
24114
  }
24106
- function N() {
24115
+ function z() {
24107
24116
  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
24117
  }
24109
24118
  function V() {
@@ -24700,10 +24709,10 @@ const nj = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
24700
24709
  (function(e) {
24701
24710
  function t(P) {
24702
24711
  "@babel/helpers - typeof";
24703
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? t = function(N) {
24704
- return typeof N;
24705
- } : t = function(N) {
24706
- return N && typeof Symbol == "function" && N.constructor === Symbol && N !== Symbol.prototype ? "symbol" : typeof N;
24712
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? t = function(z) {
24713
+ return typeof z;
24714
+ } : t = function(z) {
24715
+ return z && typeof Symbol == "function" && z.constructor === Symbol && z !== Symbol.prototype ? "symbol" : typeof z;
24707
24716
  }, t(P);
24708
24717
  }
24709
24718
  Object.defineProperty(e, "__esModule", {
@@ -24728,13 +24737,13 @@ const nj = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
24728
24737
  var M = a();
24729
24738
  if (M && M.has(P))
24730
24739
  return M.get(P);
24731
- var N = {}, V = Object.defineProperty && Object.getOwnPropertyDescriptor;
24740
+ var z = {}, V = Object.defineProperty && Object.getOwnPropertyDescriptor;
24732
24741
  for (var Z in P)
24733
24742
  if (Object.prototype.hasOwnProperty.call(P, Z)) {
24734
24743
  var oe = V ? Object.getOwnPropertyDescriptor(P, Z) : null;
24735
- oe && (oe.get || oe.set) ? Object.defineProperty(N, Z, oe) : N[Z] = P[Z];
24744
+ oe && (oe.get || oe.set) ? Object.defineProperty(z, Z, oe) : z[Z] = P[Z];
24736
24745
  }
24737
- return N.default = P, M && M.set(P, N), N;
24746
+ return z.default = P, M && M.set(P, z), z;
24738
24747
  }
24739
24748
  function c(P) {
24740
24749
  return f(P) || d(P) || h(P) || u();
@@ -24746,9 +24755,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
24746
24755
  function h(P, M) {
24747
24756
  if (P) {
24748
24757
  if (typeof P == "string") return p(P, M);
24749
- var N = Object.prototype.toString.call(P).slice(8, -1);
24750
- if (N === "Object" && P.constructor && (N = P.constructor.name), N === "Map" || N === "Set") return Array.from(P);
24751
- if (N === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N)) return p(P, M);
24758
+ var z = Object.prototype.toString.call(P).slice(8, -1);
24759
+ if (z === "Object" && P.constructor && (z = P.constructor.name), z === "Map" || z === "Set") return Array.from(P);
24760
+ if (z === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(z)) return p(P, M);
24752
24761
  }
24753
24762
  }
24754
24763
  function d(P) {
@@ -24759,54 +24768,54 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
24759
24768
  }
24760
24769
  function p(P, M) {
24761
24770
  (M == null || M > P.length) && (M = P.length);
24762
- for (var N = 0, V = new Array(M); N < M; N++)
24763
- V[N] = P[N];
24771
+ for (var z = 0, V = new Array(M); z < M; z++)
24772
+ V[z] = P[z];
24764
24773
  return V;
24765
24774
  }
24766
24775
  function m() {
24767
24776
  return m = Object.assign || function(P) {
24768
24777
  for (var M = 1; M < arguments.length; M++) {
24769
- var N = arguments[M];
24770
- for (var V in N)
24771
- Object.prototype.hasOwnProperty.call(N, V) && (P[V] = N[V]);
24778
+ var z = arguments[M];
24779
+ for (var V in z)
24780
+ Object.prototype.hasOwnProperty.call(z, V) && (P[V] = z[V]);
24772
24781
  }
24773
24782
  return P;
24774
24783
  }, m.apply(this, arguments);
24775
24784
  }
24776
24785
  function g(P, M) {
24777
24786
  if (P == null) return {};
24778
- var N = b(P, M), V, Z;
24787
+ var z = b(P, M), V, Z;
24779
24788
  if (Object.getOwnPropertySymbols) {
24780
24789
  var oe = Object.getOwnPropertySymbols(P);
24781
24790
  for (Z = 0; Z < oe.length; Z++)
24782
- V = oe[Z], !(M.indexOf(V) >= 0) && Object.prototype.propertyIsEnumerable.call(P, V) && (N[V] = P[V]);
24791
+ V = oe[Z], !(M.indexOf(V) >= 0) && Object.prototype.propertyIsEnumerable.call(P, V) && (z[V] = P[V]);
24783
24792
  }
24784
- return N;
24793
+ return z;
24785
24794
  }
24786
24795
  function b(P, M) {
24787
24796
  if (P == null) return {};
24788
- var N = {}, V = Object.keys(P), Z, oe;
24797
+ var z = {}, V = Object.keys(P), Z, oe;
24789
24798
  for (oe = 0; oe < V.length; oe++)
24790
- Z = V[oe], !(M.indexOf(Z) >= 0) && (N[Z] = P[Z]);
24791
- return N;
24799
+ Z = V[oe], !(M.indexOf(Z) >= 0) && (z[Z] = P[Z]);
24800
+ return z;
24792
24801
  }
24793
24802
  function I(P, M) {
24794
- var N = Object.keys(P);
24803
+ var z = Object.keys(P);
24795
24804
  if (Object.getOwnPropertySymbols) {
24796
24805
  var V = Object.getOwnPropertySymbols(P);
24797
24806
  M && (V = V.filter(function(Z) {
24798
24807
  return Object.getOwnPropertyDescriptor(P, Z).enumerable;
24799
- })), N.push.apply(N, V);
24808
+ })), z.push.apply(z, V);
24800
24809
  }
24801
- return N;
24810
+ return z;
24802
24811
  }
24803
24812
  function w(P) {
24804
24813
  for (var M = 1; M < arguments.length; M++) {
24805
- var N = arguments[M] != null ? arguments[M] : {};
24806
- M % 2 ? I(Object(N), !0).forEach(function(V) {
24807
- H(P, V, N[V]);
24808
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(P, Object.getOwnPropertyDescriptors(N)) : I(Object(N)).forEach(function(V) {
24809
- Object.defineProperty(P, V, Object.getOwnPropertyDescriptor(N, V));
24814
+ var z = arguments[M] != null ? arguments[M] : {};
24815
+ M % 2 ? I(Object(z), !0).forEach(function(V) {
24816
+ H(P, V, z[V]);
24817
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(P, Object.getOwnPropertyDescriptors(z)) : I(Object(z)).forEach(function(V) {
24818
+ Object.defineProperty(P, V, Object.getOwnPropertyDescriptor(z, V));
24810
24819
  });
24811
24820
  }
24812
24821
  return P;
@@ -24816,12 +24825,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
24816
24825
  throw new TypeError("Cannot call a class as a function");
24817
24826
  }
24818
24827
  function x(P, M) {
24819
- for (var N = 0; N < M.length; N++) {
24820
- var V = M[N];
24828
+ for (var z = 0; z < M.length; z++) {
24829
+ var V = M[z];
24821
24830
  V.enumerable = V.enumerable || !1, V.configurable = !0, "value" in V && (V.writable = !0), Object.defineProperty(P, V.key, V);
24822
24831
  }
24823
24832
  }
24824
- function y(P, M, N) {
24833
+ function y(P, M, z) {
24825
24834
  return M && x(P.prototype, M), P;
24826
24835
  }
24827
24836
  function C(P, M) {
@@ -24865,19 +24874,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
24865
24874
  }
24866
24875
  }
24867
24876
  function T(P) {
24868
- return T = Object.setPrototypeOf ? Object.getPrototypeOf : function(N) {
24869
- return N.__proto__ || Object.getPrototypeOf(N);
24877
+ return T = Object.setPrototypeOf ? Object.getPrototypeOf : function(z) {
24878
+ return z.__proto__ || Object.getPrototypeOf(z);
24870
24879
  }, T(P);
24871
24880
  }
24872
- function H(P, M, N) {
24873
- return M in P ? Object.defineProperty(P, M, { value: N, enumerable: !0, configurable: !0, writable: !0 }) : P[M] = N, P;
24881
+ function H(P, M, z) {
24882
+ return M in P ? Object.defineProperty(P, M, { value: z, enumerable: !0, configurable: !0, writable: !0 }) : P[M] = z, P;
24874
24883
  }
24875
24884
  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(N, P);
24877
- var M = S(N);
24878
- function N() {
24885
+ C(z, P);
24886
+ var M = S(z);
24887
+ function z() {
24879
24888
  var V;
24880
- v(this, N);
24889
+ v(this, z);
24881
24890
  for (var Z = arguments.length, oe = new Array(Z), ae = 0; ae < Z; ae++)
24882
24891
  oe[ae] = arguments[ae];
24883
24892
  return V = M.call.apply(M, [this].concat(oe)), H(L(V), "createFlatpickrInstance", function() {
@@ -24896,7 +24905,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
24896
24905
  V.node = X, V.flatpickr && (V.destroyFlatpickrInstance(), V.createFlatpickrInstance());
24897
24906
  }), V;
24898
24907
  }
24899
- return y(N, [{
24908
+ return y(z, [{
24900
24909
  key: "componentDidUpdate",
24901
24910
  value: function(Z) {
24902
24911
  var oe = this.props.options, ae = Z.options;
@@ -24937,7 +24946,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
24937
24946
  ref: this.handleNodeChange
24938
24947
  }));
24939
24948
  }
24940
- }]), N;
24949
+ }]), z;
24941
24950
  }(n.Component);
24942
24951
  H(F, "propTypes", {
24943
24952
  defaultValue: r.default.string,
@@ -24960,15 +24969,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
24960
24969
  options: {}
24961
24970
  });
24962
24971
  function W(P, M) {
24963
- var N = w({}, P);
24972
+ var z = w({}, P);
24964
24973
  return Y.forEach(function(V) {
24965
24974
  if (M.hasOwnProperty(V)) {
24966
24975
  var Z;
24967
- N[V] && !Array.isArray(N[V]) ? N[V] = [N[V]] : N[V] || (N[V] = []);
24976
+ z[V] && !Array.isArray(z[V]) ? z[V] = [z[V]] : z[V] || (z[V] = []);
24968
24977
  var oe = Array.isArray(M[V]) ? M[V] : [M[V]];
24969
- (Z = N[V]).push.apply(Z, c(oe));
24978
+ (Z = z[V]).push.apply(Z, c(oe));
24970
24979
  }
24971
- }), N;
24980
+ }), z;
24972
24981
  }
24973
24982
  var J = F;
24974
24983
  e.default = J;
@@ -25069,14 +25078,14 @@ var Vb = { exports: {} };
25069
25078
  return W ? ne : ne.endOf(u);
25070
25079
  }, M = function(se, re) {
25071
25080
  return U.w(F.toDate()[se].apply(F.toDate("s"), (W ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(re)), F);
25072
- }, N = this.$W, V = this.$M, Z = this.$D, oe = "set" + (this.$u ? "UTC" : "");
25081
+ }, z = this.$W, V = this.$M, Z = this.$D, oe = "set" + (this.$u ? "UTC" : "");
25073
25082
  switch (J) {
25074
25083
  case p:
25075
25084
  return W ? P(1, 0) : P(31, 11);
25076
25085
  case d:
25077
25086
  return W ? P(1, V) : P(0, V + 1);
25078
25087
  case h:
25079
- var ae = this.$locale().weekStart || 0, X = (N < ae ? N + 7 : N) - ae;
25088
+ var ae = this.$locale().weekStart || 0, X = (z < ae ? z + 7 : z) - ae;
25080
25089
  return P(W ? Z - X : Z + (6 - X), V);
25081
25090
  case u:
25082
25091
  case m:
@@ -25095,8 +25104,8 @@ var Vb = { exports: {} };
25095
25104
  }, E.$set = function(D, O) {
25096
25105
  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
25106
  if (W === d || W === p) {
25098
- var N = this.clone().set(m, 1);
25099
- N.$d[P](M), N.init(), this.$d = N.set(m, Math.min(this.$D, N.daysInMonth())).$d;
25107
+ var z = this.clone().set(m, 1);
25108
+ z.$d[P](M), z.init(), this.$d = z.set(m, Math.min(this.$D, z.daysInMonth())).$d;
25100
25109
  } else P && this.$d[P](M);
25101
25110
  return this.init(), this;
25102
25111
  }, E.set = function(D, O) {
@@ -25114,14 +25123,14 @@ var Vb = { exports: {} };
25114
25123
  if (J === p) return this.set(p, this.$y + D);
25115
25124
  if (J === u) return P(1);
25116
25125
  if (J === h) return P(7);
25117
- var M = (F = {}, F[l] = r, F[c] = i, F[a] = n, F)[J] || 1, N = this.$d.getTime() + D * M;
25118
- return U.w(N, this);
25126
+ var M = (F = {}, F[l] = r, F[c] = i, F[a] = n, F)[J] || 1, z = this.$d.getTime() + D * M;
25127
+ return U.w(z, this);
25119
25128
  }, E.subtract = function(D, O) {
25120
25129
  return this.add(-1 * D, O);
25121
25130
  }, E.format = function(D) {
25122
25131
  var O = this, F = this.$locale();
25123
25132
  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, N = this.$M, V = F.weekdays, Z = F.months, oe = F.meridiem, ae = function(re, ne, de, we) {
25133
+ 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
25134
  return re && (re[ne] || re(O, W)) || de[ne].slice(0, we);
25126
25135
  }, X = function(re) {
25127
25136
  return U.s(P % 12 || 12, re, "0");
@@ -25137,13 +25146,13 @@ var Vb = { exports: {} };
25137
25146
  case "YYYY":
25138
25147
  return U.s(O.$y, 4, "0");
25139
25148
  case "M":
25140
- return N + 1;
25149
+ return z + 1;
25141
25150
  case "MM":
25142
- return U.s(N + 1, 2, "0");
25151
+ return U.s(z + 1, 2, "0");
25143
25152
  case "MMM":
25144
- return ae(F.monthsShort, N, Z, 3);
25153
+ return ae(F.monthsShort, z, Z, 3);
25145
25154
  case "MMMM":
25146
- return ae(Z, N);
25155
+ return ae(Z, z);
25147
25156
  case "D":
25148
25157
  return O.$D;
25149
25158
  case "DD":
@@ -25187,7 +25196,7 @@ var Vb = { exports: {} };
25187
25196
  }, E.utcOffset = function() {
25188
25197
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
25189
25198
  }, E.diff = function(D, O, F) {
25190
- var W, J = this, P = U.p(O), M = L(D), N = (M.utcOffset() - this.utcOffset()) * r, V = this - M, Z = function() {
25199
+ var W, J = this, P = U.p(O), M = L(D), z = (M.utcOffset() - this.utcOffset()) * r, V = this - M, Z = function() {
25191
25200
  return U.m(J, M);
25192
25201
  };
25193
25202
  switch (P) {
@@ -25201,10 +25210,10 @@ var Vb = { exports: {} };
25201
25210
  W = Z() / 3;
25202
25211
  break;
25203
25212
  case h:
25204
- W = (V - N) / 6048e5;
25213
+ W = (V - z) / 6048e5;
25205
25214
  break;
25206
25215
  case u:
25207
- W = (V - N) / 864e5;
25216
+ W = (V - z) / 864e5;
25208
25217
  break;
25209
25218
  case c:
25210
25219
  W = V / i;
@@ -26725,11 +26734,11 @@ var nL = {
26725
26734
  if (n && S.onChange) {
26726
26735
  var D = n.option, O = n.options, F = n.removedValue, W = n.removedValues, J = n.value, P = function(X) {
26727
26736
  return Array.isArray(X) ? null : X;
26728
- }, M = F || D || P(J), N = M ? f(M) : "", V = O || W || void 0, Z = V ? V.map(f) : [], oe = Te({
26737
+ }, M = F || D || P(J), z = M ? f(M) : "", V = O || W || void 0, Z = V ? V.map(f) : [], oe = Te({
26729
26738
  // multiSelected items are usually items that have already been selected
26730
26739
  // or set by the user as a default value so we assume they are not disabled
26731
26740
  isDisabled: M && g(M, l),
26732
- label: N,
26741
+ label: z,
26733
26742
  labels: Z
26734
26743
  }, n);
26735
26744
  E = S.onChange(oe);
@@ -28155,8 +28164,8 @@ var vy = function(t) {
28155
28164
  value: function() {
28156
28165
  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
28166
  if (!A) return null;
28158
- var D = function(N, V) {
28159
- var Z = N.type, oe = N.data, ae = N.isDisabled, X = N.isSelected, se = N.label, re = N.value, ne = g === oe, de = ae ? void 0 : function() {
28167
+ var D = function(z, V) {
28168
+ 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
28169
  return i.onOptionHover(oe);
28161
28170
  }, we = ae ? void 0 : function() {
28162
28171
  return i.selectOption(oe);
@@ -28181,15 +28190,15 @@ var vy = function(t) {
28181
28190
  value: re,
28182
28191
  isFocused: ne,
28183
28192
  innerRef: ne ? i.getFocusedOptionRef : void 0
28184
- }), i.formatOptionLabel(N.data, "menu"));
28193
+ }), i.formatOptionLabel(z.data, "menu"));
28185
28194
  }, O;
28186
28195
  if (this.hasOptions())
28187
28196
  O = this.getCategorizedOptions().map(function(M) {
28188
28197
  if (M.type === "group") {
28189
- var N = M.data, V = M.options, Z = M.index, oe = "".concat(i.getElementId("group"), "-").concat(Z), ae = "".concat(oe, "-heading");
28198
+ var z = M.data, V = M.options, Z = M.index, oe = "".concat(i.getElementId("group"), "-").concat(Z), ae = "".concat(oe, "-heading");
28190
28199
  return /* @__PURE__ */ K.createElement(a, $({}, m, {
28191
28200
  key: oe,
28192
- data: N,
28201
+ data: z,
28193
28202
  options: V,
28194
28203
  Heading: l,
28195
28204
  headingProps: {
@@ -28223,9 +28232,9 @@ var vy = function(t) {
28223
28232
  menuPosition: R,
28224
28233
  menuShouldScrollIntoView: T
28225
28234
  }, P = /* @__PURE__ */ K.createElement(Hj, $({}, m, J), function(M) {
28226
- var N = M.ref, V = M.placerProps, Z = V.placement, oe = V.maxHeight;
28235
+ var z = M.ref, V = M.placerProps, Z = V.placement, oe = V.maxHeight;
28227
28236
  return /* @__PURE__ */ K.createElement(c, $({}, m, J, {
28228
- innerRef: N,
28237
+ innerRef: z,
28229
28238
  innerProps: {
28230
28239
  onMouseDown: i.onMenuMouseDown,
28231
28240
  onMouseMove: i.onMenuMouseMove
@@ -28598,8 +28607,8 @@ const HL = {
28598
28607
  if (W != null && W.ok) {
28599
28608
  const J = yield W.json(), P = { "Content-Type": Y.type, "Content-MD5": D };
28600
28609
  try {
28601
- const M = new File([Y], O, { type: Y.type }), N = yield w == null ? void 0 : w.https.storeInBucket(J.data.signed_url, M, P);
28602
- e.onChangeImages(N || ""), m(N), x("upload_success");
28610
+ const M = new File([Y], O, { type: Y.type }), z = yield w == null ? void 0 : w.https.storeInBucket(J.data.signed_url, M, P);
28611
+ e.onChangeImages(z || ""), m(z), x("upload_success");
28603
28612
  } catch (M) {
28604
28613
  console.error("There was a problem with uploading the file: ", M), x("upload_failed");
28605
28614
  }
@@ -29469,7 +29478,7 @@ const Hi = ht("MuiCheckbox", ["root", "checkbox", "action", "input", "label", "c
29469
29478
  component: E,
29470
29479
  slots: D = {},
29471
29480
  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), N = {
29481
+ } = 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
29482
  checked: u,
29474
29483
  defaultChecked: p,
29475
29484
  disabled: J,
@@ -29482,7 +29491,7 @@ const Hi = ht("MuiCheckbox", ["root", "checkbox", "action", "input", "label", "c
29482
29491
  checked: Z,
29483
29492
  disabled: oe,
29484
29493
  focusVisible: ae
29485
- } = eE(N), 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, {
29494
+ } = 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
29495
  checked: Z,
29487
29496
  disabled: oe,
29488
29497
  disableIcon: g,
@@ -29896,13 +29905,13 @@ const Hi = ht("MuiCheckbox", ["root", "checkbox", "action", "input", "label", "c
29896
29905
  };
29897
29906
  class W2 {
29898
29907
  constructor() {
29899
- z(this, "name", "");
29900
- z(this, "scheduled_task_config", {
29908
+ N(this, "name", "");
29909
+ N(this, "scheduled_task_config", {
29901
29910
  entity_id: "",
29902
29911
  entity_type: "",
29903
29912
  change: { status: "" }
29904
29913
  });
29905
- z(this, "trigger", { trigger_type: "DATETIME", date: "" });
29914
+ N(this, "trigger", { trigger_type: "DATETIME", date: "" });
29906
29915
  }
29907
29916
  }
29908
29917
  const G2 = Je(/* @__PURE__ */ s.jsx("path", {
@@ -30237,9 +30246,9 @@ const Q2 = ["children", "action", "component", "color", "disabled", "variant", "
30237
30246
  focusVisible: R,
30238
30247
  instanceSize: t.size
30239
30248
  }), Y = J2(H), E = (M) => {
30240
- var N;
30249
+ var z;
30241
30250
  let V = i.onClick;
30242
- if (typeof g.root == "function" ? V = g.root(H).onClick : g.root && (V = g.root.onClick), (N = V) == null || N(M), w) {
30251
+ if (typeof g.root == "function" ? V = g.root(H).onClick : g.root && (V = g.root.onClick), (z = V) == null || z(M), w) {
30243
30252
  var Z;
30244
30253
  (Z = w.onClick) == null || Z.call(w, M, i.value);
30245
30254
  }
@@ -30958,10 +30967,10 @@ const zr = /* @__PURE__ */ Fn(Z$), Kn = ({ option: e }) => /* @__PURE__ */ s.jsx
30958
30967
  }), "ArrowBackIos");
30959
30968
  class Ey {
30960
30969
  constructor() {
30961
- z(this, "contestId", "");
30962
- z(this, "contestType", "");
30963
- z(this, "description", "");
30964
- z(this, "userList", []);
30970
+ N(this, "contestId", "");
30971
+ N(this, "contestType", "");
30972
+ N(this, "description", "");
30973
+ N(this, "userList", []);
30965
30974
  }
30966
30975
  }
30967
30976
  const sB = (e, t, n) => {
@@ -30993,10 +31002,10 @@ const sB = (e, t, n) => {
30993
31002
  };
30994
31003
  class lB {
30995
31004
  constructor() {
30996
- z(this, "position", "");
30997
- z(this, "profileId", "");
30998
- z(this, "note", "");
30999
- z(this, "tags", []);
31005
+ N(this, "position", "");
31006
+ N(this, "profileId", "");
31007
+ N(this, "note", "");
31008
+ N(this, "tags", []);
31000
31009
  }
31001
31010
  }
31002
31011
  function cB(e, t) {
@@ -31311,23 +31320,23 @@ var TN = qy, EN = TN(function(e, t, n) {
31311
31320
  const kN = /* @__PURE__ */ Fn(_N);
31312
31321
  class PN {
31313
31322
  constructor() {
31314
- z(this, "id", "");
31315
- z(this, "value", "");
31316
- z(this, "label", "");
31323
+ N(this, "id", "");
31324
+ N(this, "value", "");
31325
+ N(this, "label", "");
31317
31326
  }
31318
31327
  }
31319
31328
  class DN extends PN {
31320
31329
  constructor() {
31321
31330
  super(...arguments);
31322
- z(this, "logo", "");
31323
- z(this, "countryFlag", "");
31324
- z(this, "countryName", "");
31331
+ N(this, "logo", "");
31332
+ N(this, "countryFlag", "");
31333
+ N(this, "countryName", "");
31325
31334
  }
31326
31335
  }
31327
31336
  class Qy extends DN {
31328
31337
  constructor() {
31329
31338
  super(...arguments);
31330
- z(this, "group", "");
31339
+ N(this, "group", "");
31331
31340
  }
31332
31341
  }
31333
31342
  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 +31520,14 @@ const RN = (e, t) => t || e || "-------------", zs = (e, t) => Array.isArray(e)
31511
31520
  };
31512
31521
  class BN {
31513
31522
  constructor() {
31514
- z(this, "isValid", !0);
31515
- z(this, "message", "");
31516
- z(this, "validate", (t, n, r) => (this.validateField(t, n), this.validateWinnerIds(t, r), this));
31517
- z(this, "validateField", (t, n) => {
31523
+ N(this, "isValid", !0);
31524
+ N(this, "message", "");
31525
+ N(this, "validate", (t, n, r) => (this.validateField(t, n), this.validateWinnerIds(t, r), this));
31526
+ N(this, "validateField", (t, n) => {
31518
31527
  const r = t.every((i) => i.position && i.profileId);
31519
31528
  r || (this.isValid = r, this.message = n);
31520
31529
  });
31521
- z(this, "validateWinnerIds", (t, n) => {
31530
+ N(this, "validateWinnerIds", (t, n) => {
31522
31531
  const r = t.map((o) => o.profileId), i = new Set(r);
31523
31532
  r.length !== i.size && (this.isValid = !1, this.message = n);
31524
31533
  });
@@ -32026,7 +32035,7 @@ function az(e) {
32026
32035
  }, 0));
32027
32036
  }, M = function(fe, ye, Se) {
32028
32037
  return Wp(fe, ye, w(fe), Se);
32029
- }, N = function(fe, ye, Se) {
32038
+ }, z = function(fe, ye, Se) {
32030
32039
  var xe = w(ye), _e = nz(ye, S, fe, Se, xe, v, x);
32031
32040
  return _e = Wp(ye, _e, xe), _e;
32032
32041
  }, V = function(fe) {
@@ -32035,7 +32044,7 @@ function az(e) {
32035
32044
  var Se = fe.input, xe = fe.source, _e = fe.event, $e = fe.numAsString, Fe;
32036
32045
  if (Se) {
32037
32046
  var at = fe.inputValue || Se.value, _t = Xc(Se);
32038
- Se.value = ye, Fe = N(at, ye, _t), Fe !== void 0 && P(Se, Fe, ye);
32047
+ Se.value = ye, Fe = z(at, ye, _t), Fe !== void 0 && P(Se, Fe, ye);
32039
32048
  }
32040
32049
  ye !== S && H(J(ye, $e), { event: _e, source: xe });
32041
32050
  };
@@ -32050,14 +32059,14 @@ function az(e) {
32050
32059
  oe(function() {
32051
32060
  var fe = O.current;
32052
32061
  if (S !== T.current.formattedValue && fe) {
32053
- var ye = N(T.current.formattedValue, S, Z);
32062
+ var ye = z(T.current.formattedValue, S, Z);
32054
32063
  fe.value = S, P(fe, ye, S);
32055
32064
  }
32056
32065
  }, [S]);
32057
32066
  var ae = function(fe, ye, Se) {
32058
32067
  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
32068
  if (Fe = l(at, void 0), d && !d(J(at, Fe))) {
32060
- var _t = ye.target, Ht = Xc(_t), $t = N(fe, S, Ht);
32069
+ var _t = ye.target, Ht = Xc(_t), $t = z(fe, S, Ht);
32061
32070
  return _t.value = S, P(_t, $t, S), !1;
32062
32071
  }
32063
32072
  return V({
@@ -32272,10 +32281,10 @@ function fz(e) {
32272
32281
  }, Y = function(D) {
32273
32282
  return D === b ? !0 : sa(D);
32274
32283
  }, E = function(D) {
32275
- var O = D.currentValue, F = D.lastValue, W = D.formattedValue, J = D.currentValueIndex, P = D.formattedValueIndex, M = O[J], N = W[P], V = r0(F, O), Z = V.to, oe = function(ae) {
32284
+ 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
32285
  return v(ae).indexOf(".") + u.length;
32277
32286
  };
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) && N === b ? !0 : M === N;
32287
+ 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
32288
  };
32280
32289
  return Object.assign(Object.assign({}, m), {
32281
32290
  value: L,
@@ -34641,7 +34650,7 @@ const A0 = /* @__PURE__ */ Js(function(t) {
34641
34650
  rect: T
34642
34651
  } : null;
34643
34652
  }, [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: N,
34653
+ droppableRects: z,
34645
34654
  measureDroppableContainers: V,
34646
34655
  measuringScheduled: Z
34647
34656
  } = x5(P, {
@@ -34661,7 +34670,7 @@ const A0 = /* @__PURE__ */ Js(function(t) {
34661
34670
  activeNode: oe,
34662
34671
  collisionRect: null,
34663
34672
  collisions: null,
34664
- droppableRects: N,
34673
+ droppableRects: z,
34665
34674
  draggableNodes: S,
34666
34675
  draggingNode: null,
34667
34676
  draggingNodeRect: null,
@@ -34691,7 +34700,7 @@ const A0 = /* @__PURE__ */ Js(function(t) {
34691
34700
  }), 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
34701
  active: H,
34693
34702
  collisionRect: qt,
34694
- droppableRects: N,
34703
+ droppableRects: z,
34695
34704
  droppableContainers: P,
34696
34705
  pointerCoordinates: Fe
34697
34706
  }) : 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 +34923,7 @@ const A0 = /* @__PURE__ */ Js(function(t) {
34914
34923
  activeNode: oe,
34915
34924
  collisionRect: qt,
34916
34925
  collisions: On,
34917
- droppableRects: N,
34926
+ droppableRects: z,
34918
34927
  draggableNodes: S,
34919
34928
  draggingNode: Ve,
34920
34929
  draggingNodeRect: Et,
@@ -34926,7 +34935,7 @@ const A0 = /* @__PURE__ */ Js(function(t) {
34926
34935
  initial: Et,
34927
34936
  translated: qt
34928
34937
  };
34929
- }, [H, oe, On, qt, S, Ve, Et, N, L, rn, xe, $t]), g5(q(k({}, X), {
34938
+ }, [H, oe, On, qt, S, Ve, Et, z, L, rn, xe, $t]), g5(q(k({}, X), {
34930
34939
  delta: R,
34931
34940
  draggingRect: qt,
34932
34941
  pointerCoordinates: Fe,
@@ -34943,7 +34952,7 @@ const A0 = /* @__PURE__ */ Js(function(t) {
34943
34952
  dragOverlay: Ue,
34944
34953
  draggableNodes: S,
34945
34954
  droppableContainers: L,
34946
- droppableRects: N,
34955
+ droppableRects: z,
34947
34956
  over: rn,
34948
34957
  measureDroppableContainers: V,
34949
34958
  scrollableAncestors: xe,
@@ -34951,7 +34960,7 @@ const A0 = /* @__PURE__ */ Js(function(t) {
34951
34960
  measuringConfiguration: M,
34952
34961
  measuringScheduled: Z,
34953
34962
  windowRect: Se
34954
- }), [H, oe, re, O, On, ne, Ue, S, L, N, rn, V, xe, _e, M, Z, Se]), Vr = Oe(() => ({
34963
+ }), [H, oe, re, O, On, ne, Ue, S, L, z, rn, V, xe, _e, M, Z, Se]), Vr = Oe(() => ({
34955
34964
  activatorEvent: O,
34956
34965
  activators: pi,
34957
34966
  active: H,
@@ -35610,7 +35619,7 @@ function O0(e) {
35610
35619
  data: y,
35611
35620
  attributes: k(k({}, uU), n),
35612
35621
  disabled: v.draggable
35613
- }), P = Ez(L, E), M = !!U, N = M && !m && Qa(f) && Qa(b), V = !I && O, Z = V && N ? J : null, oe = l != null ? l : w, ae = N ? Z != null ? Z : oe({
35622
+ }), 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
35623
  rects: g,
35615
35624
  activeNodeRect: H,
35616
35625
  activeIndex: f,
@@ -37062,7 +37071,7 @@ const L0 = Je(/* @__PURE__ */ s.jsx("path", {
37062
37071
  copyToClipboardLabel: o,
37063
37072
  onCopy: a
37064
37073
  }) => {
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(""), [N, 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);
37074
+ 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
37075
  be(() => {
37067
37076
  n !== "LEAD" && f(!1), n !== "REGISTERED" && m(!1);
37068
37077
  }, [n]), be(() => {
@@ -37093,8 +37102,8 @@ const L0 = Je(/* @__PURE__ */ s.jsx("path", {
37093
37102
  data-additional-cta-url="${E}"` : "", Ge = g && O ? `
37094
37103
  data-additional-cta-target="${O}"` : "", Bt = I ? `
37095
37104
  data-rules-display-type="${W}"` : "", st = I && W === "link" && P ? `
37096
- data-rules-display-url="${P}"` : "", dn = I && W === "link" && N ? `
37097
- data-rules-display-target="${N}"` : "", hn = `<div
37105
+ data-rules-display-url="${P}"` : "", dn = I && W === "link" && z ? `
37106
+ data-rules-display-target="${z}"` : "", hn = `<div
37098
37107
  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
37108
  ></div>`, ja = {
37100
37109
  fullName: "Full name",
@@ -37590,12 +37599,12 @@ const L0 = Je(/* @__PURE__ */ s.jsx("path", {
37590
37599
  qe,
37591
37600
  q(k({
37592
37601
  action: h,
37593
- value: N,
37602
+ value: z,
37594
37603
  size: "md",
37595
37604
  name: "rules_display_target",
37596
37605
  onChange: (me, Wt) => V(Wt),
37597
37606
  sx: { flex: 1 }
37598
- }, N && {
37607
+ }, z && {
37599
37608
  endDecorator: /* @__PURE__ */ s.jsx(
37600
37609
  dt,
37601
37610
  {
@@ -38248,30 +38257,30 @@ const L0 = Je(/* @__PURE__ */ s.jsx("path", {
38248
38257
  }), "KeyboardArrowUp");
38249
38258
  class eV {
38250
38259
  constructor() {
38251
- z(this, "id", "");
38252
- z(this, "title", "");
38253
- z(this, "alternative_title", null);
38254
- z(this, "description", null);
38255
- z(this, "type", null);
38256
- z(this, "auth_requirement", null);
38257
- z(this, "rules", null);
38258
- z(this, "ad_content", null);
38259
- z(this, "labels", null);
38260
- z(this, "branding", null);
38261
- z(this, "embed_code", null);
38262
- z(this, "custom_fields", null);
38263
- z(this, "images", null);
38264
- z(this, "status", "");
38265
- z(this, "flags", []);
38266
- z(this, "context", null);
38267
- z(this, "options", []);
38268
- z(this, "related", []);
38269
- z(this, "multiple_choice", !1);
38270
- z(this, "max_multiple_choice_options", null);
38271
- z(this, "participation_count", 0);
38272
- z(this, "preferences_enabled", !1);
38273
- z(this, "max_attempts", 1);
38274
- z(this, "external_activity", null);
38260
+ N(this, "id", "");
38261
+ N(this, "title", "");
38262
+ N(this, "alternative_title", null);
38263
+ N(this, "description", null);
38264
+ N(this, "type", null);
38265
+ N(this, "auth_requirement", null);
38266
+ N(this, "rules", null);
38267
+ N(this, "ad_content", null);
38268
+ N(this, "labels", null);
38269
+ N(this, "branding", null);
38270
+ N(this, "embed_code", null);
38271
+ N(this, "custom_fields", null);
38272
+ N(this, "images", null);
38273
+ N(this, "status", "");
38274
+ N(this, "flags", []);
38275
+ N(this, "context", null);
38276
+ N(this, "options", []);
38277
+ N(this, "related", []);
38278
+ N(this, "multiple_choice", !1);
38279
+ N(this, "max_multiple_choice_options", null);
38280
+ N(this, "participation_count", 0);
38281
+ N(this, "preferences_enabled", !1);
38282
+ N(this, "max_attempts", 1);
38283
+ N(this, "external_activity", null);
38275
38284
  }
38276
38285
  }
38277
38286
  const tV = (e) => {
@@ -38791,7 +38800,7 @@ const ug = (e) => {
38791
38800
  ge.useEffect(() => () => {
38792
38801
  n(ug(e.defaultLanguage)), a(dg(e.competitionsScope, e.generateId)), c(1), h(""), f(!1), m("search"), w(null);
38793
38802
  }, [e.defaultLanguage, e.competitionsScope, e.generateId]);
38794
- const { https: J } = it(), { matches: P, loading: M, meta: N } = JU(F, { enabled: d }), V = () => {
38803
+ const { https: J } = it(), { matches: P, loading: M, meta: z } = JU(F, { enabled: d }), V = () => {
38795
38804
  Y(""), T(!1);
38796
38805
  }, Z = (ne) => {
38797
38806
  let de = "", we = "danger";
@@ -39092,7 +39101,7 @@ const ug = (e) => {
39092
39101
  selectedMatchId: u,
39093
39102
  generatedEntity: I,
39094
39103
  labels: e.labels,
39095
- pagination: N,
39104
+ pagination: z,
39096
39105
  teamIdsFilter: o.teamIds,
39097
39106
  setPollRequestBody: x,
39098
39107
  setPage: c,
@@ -39620,16 +39629,16 @@ const ug = (e) => {
39620
39629
  var ki = /* @__PURE__ */ ((e) => (e.HTML = "HTML", e.TEXT = "TEXT", e.JSON = "JSON", e))(ki || {});
39621
39630
  class B4 {
39622
39631
  constructor() {
39623
- z(this, "title", "");
39624
- z(this, "subtitle", null);
39625
- z(this, "type", "");
39626
- z(this, "content_type", "JSON");
39627
- z(this, "body", "");
39628
- z(this, "language", "");
39629
- z(this, "context", null);
39630
- z(this, "images", null);
39631
- z(this, "labels", null);
39632
- z(this, "branding_id", null);
39632
+ N(this, "title", "");
39633
+ N(this, "subtitle", null);
39634
+ N(this, "type", "");
39635
+ N(this, "content_type", "JSON");
39636
+ N(this, "body", "");
39637
+ N(this, "language", "");
39638
+ N(this, "context", null);
39639
+ N(this, "images", null);
39640
+ N(this, "labels", null);
39641
+ N(this, "branding_id", null);
39633
39642
  }
39634
39643
  }
39635
39644
  function fg(e, t) {
@@ -40129,18 +40138,18 @@ function h4({ defaultValue: e, defaultLanguage: t, defaultPath: n, value: r, lan
40129
40138
  let P = K0.init();
40130
40139
  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
40140
  }), mn(() => {
40132
- var M, N, V, Z;
40141
+ var M, z, V, Z;
40133
40142
  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, (N = L.current) == null ? void 0 : N.saveViewState()), (V = L.current) == null || V.setModel(P), d && ((Z = L.current) == null || Z.restoreViewState(Xa.get(o))));
40143
+ 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
40144
  }, [o], y), mn(() => {
40136
40145
  var P;
40137
40146
  (P = L.current) == null || P.updateOptions(u);
40138
40147
  }, [u], y), mn(() => {
40139
40148
  !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
40149
  }, [r], y), mn(() => {
40141
- var M, N;
40150
+ var M, z;
40142
40151
  let P = (M = L.current) == null ? void 0 : M.getModel();
40143
- P && i && ((N = R.current) == null || N.editor.setModelLanguage(P, i));
40152
+ P && i && ((z = R.current) == null || z.editor.setModelLanguage(P, i));
40144
40153
  }, [i], y), mn(() => {
40145
40154
  var P;
40146
40155
  l !== void 0 && ((P = L.current) == null || P.revealLine(l));
@@ -40152,8 +40161,8 @@ function h4({ defaultValue: e, defaultLanguage: t, defaultPath: n, value: r, lan
40152
40161
  var P;
40153
40162
  if (!(!U.current || !R.current) && !O.current) {
40154
40163
  H.current(R.current);
40155
- let M = o || n, N = Pi(R.current, r || e || "", t || i || "", M || "");
40156
- L.current = (P = R.current) == null ? void 0 : P.editor.create(U.current, k({ model: N, 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;
40164
+ let M = o || n, z = Pi(R.current, r || e || "", t || i || "", M || "");
40165
+ 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
40166
  }
40158
40167
  }, [e, t, n, r, i, o, u, h, d, a, l]);
40159
40168
  be(() => {
@@ -40162,16 +40171,16 @@ function h4({ defaultValue: e, defaultLanguage: t, defaultPath: n, value: r, lan
40162
40171
  !A && !y && W();
40163
40172
  }, [A, y, W]), E.current = r, be(() => {
40164
40173
  var P, M;
40165
- y && v && ((P = Y.current) == null || P.dispose(), Y.current = (M = L.current) == null ? void 0 : M.onDidChangeModelContent((N) => {
40166
- F.current || v(L.current.getValue(), N);
40174
+ y && v && ((P = Y.current) == null || P.dispose(), Y.current = (M = L.current) == null ? void 0 : M.onDidChangeModelContent((z) => {
40175
+ F.current || v(L.current.getValue(), z);
40167
40176
  }));
40168
40177
  }, [y, v]), be(() => {
40169
40178
  if (y) {
40170
40179
  let P = R.current.editor.onDidChangeMarkers((M) => {
40171
40180
  var V;
40172
- let N = (V = L.current.getModel()) == null ? void 0 : V.uri;
40173
- if (N && M.find((Z) => Z.path === N.path)) {
40174
- let Z = R.current.editor.getModelMarkers({ resource: N });
40181
+ let z = (V = L.current.getModel()) == null ? void 0 : V.uri;
40182
+ if (z && M.find((Z) => Z.path === z.path)) {
40183
+ let Z = R.current.editor.getModelMarkers({ resource: z });
40175
40184
  x == null || x(Z);
40176
40185
  }
40177
40186
  });
@@ -40901,93 +40910,93 @@ const p4 = (e) => {
40901
40910
  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
40911
  class F4 {
40903
40912
  constructor() {
40904
- z(this, "id", "");
40905
- z(this, "question", "");
40906
- z(this, "status", "ACTIVE");
40907
- z(this, "void_reason", null);
40908
- z(this, "points", 0);
40909
- z(this, "outcome_type", null);
40910
- z(this, "valid_outcomes", null);
40911
- z(this, "outcome", null);
40913
+ N(this, "id", "");
40914
+ N(this, "question", "");
40915
+ N(this, "status", "ACTIVE");
40916
+ N(this, "void_reason", null);
40917
+ N(this, "points", 0);
40918
+ N(this, "outcome_type", null);
40919
+ N(this, "valid_outcomes", null);
40920
+ N(this, "outcome", null);
40912
40921
  }
40913
40922
  }
40914
40923
  class N4 {
40915
40924
  constructor() {
40916
- z(this, "id", "");
40917
- z(this, "title", "");
40918
- z(this, "description", "");
40919
- z(this, "type", "EVENT");
40920
- z(this, "rules", "");
40921
- z(this, "status", "PENDING");
40922
- z(this, "images", null);
40923
- z(this, "related", []);
40924
- z(this, "custom_fields", null);
40925
- z(this, "predictions_cutoff", "");
40926
- z(this, "fixtures", []);
40927
- z(this, "tiebreaker", { stat_tiebreaker_enabled: !1, stat_total: 0 });
40928
- z(this, "branding_id", null);
40929
- z(this, "language", null);
40930
- z(this, "flags", []);
40925
+ N(this, "id", "");
40926
+ N(this, "title", "");
40927
+ N(this, "description", "");
40928
+ N(this, "type", "EVENT");
40929
+ N(this, "rules", "");
40930
+ N(this, "status", "PENDING");
40931
+ N(this, "images", null);
40932
+ N(this, "related", []);
40933
+ N(this, "custom_fields", null);
40934
+ N(this, "predictions_cutoff", "");
40935
+ N(this, "fixtures", []);
40936
+ N(this, "tiebreaker", { stat_tiebreaker_enabled: !1, stat_total: 0 });
40937
+ N(this, "branding_id", null);
40938
+ N(this, "language", null);
40939
+ N(this, "flags", []);
40931
40940
  }
40932
40941
  }
40933
40942
  class z4 {
40934
40943
  constructor() {
40935
- z(this, "title", "");
40936
- z(this, "description", "");
40937
- z(this, "config", {});
40944
+ N(this, "title", "");
40945
+ N(this, "description", "");
40946
+ N(this, "config", {});
40938
40947
  }
40939
40948
  }
40940
40949
  const U4 = ["competition", "country", "venue", "athlete", "team", "coach", "staff"];
40941
40950
  class V4 {
40942
40951
  constructor(t) {
40943
- z(this, "limit");
40944
- z(this, "startAfter");
40945
- z(this, "sortOrder");
40946
- z(this, "infoPageIds");
40952
+ N(this, "limit");
40953
+ N(this, "startAfter");
40954
+ N(this, "sortOrder");
40955
+ N(this, "infoPageIds");
40947
40956
  this.limit = t.limit || 20, this.startAfter = t.startAfter || null, this.sortOrder = t.sortOrder || "desc", this.infoPageIds = t.infoPageIds || null;
40948
40957
  }
40949
40958
  }
40950
40959
  class H4 {
40951
40960
  constructor(t) {
40952
- z(this, "id", "");
40953
- z(this, "title", "");
40954
- z(this, "subtitle", null);
40955
- z(this, "type", "");
40956
- z(this, "contentType", ki.JSON);
40957
- z(this, "body", "");
40958
- z(this, "language", "");
40959
- z(this, "context", null);
40960
- z(this, "brandingId", null);
40961
- z(this, "images", null);
40962
- z(this, "labels", null);
40963
- z(this, "createdAt", "");
40964
- z(this, "updatedAt", "");
40961
+ N(this, "id", "");
40962
+ N(this, "title", "");
40963
+ N(this, "subtitle", null);
40964
+ N(this, "type", "");
40965
+ N(this, "contentType", ki.JSON);
40966
+ N(this, "body", "");
40967
+ N(this, "language", "");
40968
+ N(this, "context", null);
40969
+ N(this, "brandingId", null);
40970
+ N(this, "images", null);
40971
+ N(this, "labels", null);
40972
+ N(this, "createdAt", "");
40973
+ N(this, "updatedAt", "");
40965
40974
  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
40975
  }
40967
40976
  }
40968
40977
  class W4 {
40969
40978
  constructor() {
40970
- z(this, "id", "");
40971
- z(this, "title", "");
40972
- z(this, "description", "");
40973
- z(this, "branding", null);
40974
- z(this, "branding_id", null);
40975
- z(this, "type", "");
40976
- z(this, "status", "");
40977
- z(this, "language", "");
40978
- z(this, "tiebreaker", { time_tiebreaker: !0 });
40979
- z(this, "ad_content", "");
40980
- z(this, "auth_requirement", null);
40981
- z(this, "labels", {});
40982
- z(this, "custom_fields", {});
40983
- z(this, "rules", "");
40984
- z(this, "flags", []);
40985
- z(this, "images", null);
40986
- z(this, "predictions_cutoff", "");
40987
- z(this, "schedule_open_at", "");
40988
- z(this, "fixtures", []);
40989
- z(this, "related", []);
40990
- z(this, "excluded_profile_ids", []);
40979
+ N(this, "id", "");
40980
+ N(this, "title", "");
40981
+ N(this, "description", "");
40982
+ N(this, "branding", null);
40983
+ N(this, "branding_id", null);
40984
+ N(this, "type", "");
40985
+ N(this, "status", "");
40986
+ N(this, "language", "");
40987
+ N(this, "tiebreaker", { time_tiebreaker: !0 });
40988
+ N(this, "ad_content", "");
40989
+ N(this, "auth_requirement", null);
40990
+ N(this, "labels", {});
40991
+ N(this, "custom_fields", {});
40992
+ N(this, "rules", "");
40993
+ N(this, "flags", []);
40994
+ N(this, "images", null);
40995
+ N(this, "predictions_cutoff", "");
40996
+ N(this, "schedule_open_at", "");
40997
+ N(this, "fixtures", []);
40998
+ N(this, "related", []);
40999
+ N(this, "excluded_profile_ids", []);
40991
41000
  }
40992
41001
  }
40993
41002
  const A4 = { supportedLanguages: Ne, languagesMap: Ko }, T4 = { areAllValuesFalsy: Vo, remapKeysToSpecificCase: zs, translateTexts: C4 }, G4 = {