courthive-components 0.9.28-beta.4 → 0.9.28-beta.6
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/dist/courthive-components.es.js +156 -144
- package/dist/courthive-components.umd.js +28 -32
- package/package.json +3 -2
|
@@ -36,16 +36,16 @@ function kV() {
|
|
|
36
36
|
})(Vy)), Vy.exports;
|
|
37
37
|
}
|
|
38
38
|
var xV = kV();
|
|
39
|
-
const
|
|
39
|
+
const Tr = /* @__PURE__ */ kb(xV);
|
|
40
40
|
function OV({ variant: e }) {
|
|
41
|
-
return
|
|
41
|
+
return Tr("chc-placeholder", e === "showAddress" && "chc-placeholder--show-address");
|
|
42
42
|
}
|
|
43
|
-
const FV = (e) => "chc-participant", _V = (e) =>
|
|
43
|
+
const FV = (e) => "chc-participant", _V = (e) => Tr("chc-participant-name", e?.variant && `chc-participant-name--${e.variant}`), LV = (e) => Tr("chc-participant-type", e?.variant && `chc-participant-type--${e.variant}`);
|
|
44
44
|
function BV({
|
|
45
45
|
drawPosition: e,
|
|
46
46
|
sideNumber: t
|
|
47
47
|
}) {
|
|
48
|
-
const r =
|
|
48
|
+
const r = Tr(
|
|
49
49
|
"chc-participant-container",
|
|
50
50
|
t === 1 && "chc-participant-container--side1"
|
|
51
51
|
);
|
|
@@ -63,10 +63,10 @@ function VV({
|
|
|
63
63
|
className: t
|
|
64
64
|
}) {
|
|
65
65
|
const { city: r, state: i, countryCode: n } = e?.person?.addresses?.[0] || {}, a = [r, i, n].filter(Boolean).join(", ") || " ", o = document.createElement("div");
|
|
66
|
-
return o.className =
|
|
66
|
+
return o.className = Tr(xb(), t), o.innerHTML = a, o;
|
|
67
67
|
}
|
|
68
68
|
const GV = () => "chc-backdrop", jV = () => "chc-modal", WV = () => "chc-body-freeze", qV = () => "chc-modal-container", HV = () => "chc-modal-dialog", YV = () => "chc-modal-header", zV = () => "chc-modal-title", hE = () => "chc-modal-footer", gE = "Nothing to see here";
|
|
69
|
-
function
|
|
69
|
+
function yr(e) {
|
|
70
70
|
return typeof e == "function";
|
|
71
71
|
}
|
|
72
72
|
function ld(e) {
|
|
@@ -97,7 +97,7 @@ const Ra = (() => {
|
|
|
97
97
|
if (g && t[I] === !1)
|
|
98
98
|
return;
|
|
99
99
|
const y = a.pop(), S = i.pop();
|
|
100
|
-
|
|
100
|
+
yr(y) && y({ content: S }), document.querySelectorAll("[data-modal-popover]").forEach((b) => b.remove()), document.body.classList.remove(e), document.body.style.top = null, window.scrollTo({
|
|
101
101
|
top: n,
|
|
102
102
|
behavior: "instant"
|
|
103
103
|
}), u(), c();
|
|
@@ -132,7 +132,7 @@ const Ra = (() => {
|
|
|
132
132
|
T.disabled !== void 0 && (w.disabled = T.disabled), T.id && (w.id = T.id), w.className = T?.footer?.className || "button font-medium", T.intent && T.intent !== "none" && w.classList.add(T.intent);
|
|
133
133
|
const U = "margin-right: .5em;", E = T?.footer?.style || "";
|
|
134
134
|
w.style.cssText = U + (E ? " " + E : ""), w.innerHTML = T.label || T.text || "", w.onclick = (D) => {
|
|
135
|
-
D.stopPropagation(),
|
|
135
|
+
D.stopPropagation(), yr(T.onClick) && T.onClick({ e: D, content: i[y] }), T.close !== !1 && (yr(T.close) && T.close(), Ra.close());
|
|
136
136
|
}, S.appendChild(w);
|
|
137
137
|
}
|
|
138
138
|
return S;
|
|
@@ -205,7 +205,7 @@ const Ra = (() => {
|
|
|
205
205
|
const R = document.createElement("div");
|
|
206
206
|
D.appendChild(R);
|
|
207
207
|
const x = ({ content: W, config: V }) => {
|
|
208
|
-
R.style.fontSize = f({ config: V, attr: "fontSize", value: "15px" }), R.style.position = "relative", R.style.padding = f({ config: V, attrs: ["content.padding", "padding"], value: r }),
|
|
208
|
+
R.style.fontSize = f({ config: V, attr: "fontSize", value: "15px" }), R.style.position = "relative", R.style.padding = f({ config: V, attrs: ["content.padding", "padding"], value: r }), yr(W) ? i[T] = W(R) : W instanceof HTMLElement ? R.appendChild(W) : ld(W) ? R.innerHTML = W : R.innerHTML = gE;
|
|
209
209
|
};
|
|
210
210
|
x({ content: I, config: v });
|
|
211
211
|
let k;
|
|
@@ -249,14 +249,14 @@ function KV({
|
|
|
249
249
|
const i = e?.person, n = iS({ element: i, attr: t });
|
|
250
250
|
if (!n) return "";
|
|
251
251
|
const a = document.createElement("div");
|
|
252
|
-
return a.className =
|
|
252
|
+
return a.className = Tr(xb(), r), a.innerHTML = n, a;
|
|
253
253
|
}
|
|
254
254
|
function QV({
|
|
255
255
|
individualParticipant: e,
|
|
256
256
|
className: t
|
|
257
257
|
}) {
|
|
258
258
|
const r = e?.teams?.[0], i = r?.participantName || " ", n = document.createElement("div");
|
|
259
|
-
return n.className =
|
|
259
|
+
return n.className = Tr(xb(), t), n.classList.add("tmx-tm"), n.setAttribute("id", r?.participantId || ""), n.innerHTML = i, n;
|
|
260
260
|
}
|
|
261
261
|
function XV(e) {
|
|
262
262
|
const t = e?.composition?.configuration?.participantDetail;
|
|
@@ -2365,7 +2365,7 @@ function LG({
|
|
|
2365
2365
|
currentParticipant: o
|
|
2366
2366
|
}) {
|
|
2367
2367
|
const s = n?.configuration, c = t?.drawPosition, u = () => {
|
|
2368
|
-
const v =
|
|
2368
|
+
const v = yr(s?.participantProvider) ? s.participantProvider() : [], b = s?.persistInputFields;
|
|
2369
2369
|
let T = v;
|
|
2370
2370
|
b && o && (v.some(
|
|
2371
2371
|
(C) => C.participantId === o.participantId
|
|
@@ -2378,7 +2378,7 @@ function LG({
|
|
|
2378
2378
|
}, l = u(), d = (v) => {
|
|
2379
2379
|
if (!t) return;
|
|
2380
2380
|
if (!v || v.trim() === "") {
|
|
2381
|
-
|
|
2381
|
+
yr(i?.removeAssignment) && i.removeAssignment({
|
|
2382
2382
|
matchUp: e,
|
|
2383
2383
|
side: t,
|
|
2384
2384
|
sideNumber: r || 1
|
|
@@ -2386,7 +2386,7 @@ function LG({
|
|
|
2386
2386
|
return;
|
|
2387
2387
|
}
|
|
2388
2388
|
if (v === Qy) {
|
|
2389
|
-
|
|
2389
|
+
yr(i?.assignBye) && i.assignBye({
|
|
2390
2390
|
matchUp: e,
|
|
2391
2391
|
side: t,
|
|
2392
2392
|
sideNumber: r || 1
|
|
@@ -2394,15 +2394,15 @@ function LG({
|
|
|
2394
2394
|
return;
|
|
2395
2395
|
}
|
|
2396
2396
|
if (v === Xy) {
|
|
2397
|
-
|
|
2397
|
+
yr(i?.assignQualifier) && i.assignQualifier({
|
|
2398
2398
|
matchUp: e,
|
|
2399
2399
|
side: t,
|
|
2400
2400
|
sideNumber: r || 1
|
|
2401
2401
|
});
|
|
2402
2402
|
return;
|
|
2403
2403
|
}
|
|
2404
|
-
const T = (
|
|
2405
|
-
T &&
|
|
2404
|
+
const T = (yr(s?.participantProvider) ? s.participantProvider() : []).find((w) => w.participantId === v);
|
|
2405
|
+
T && yr(i?.assignParticipant) && i.assignParticipant({
|
|
2406
2406
|
matchUp: e,
|
|
2407
2407
|
side: t,
|
|
2408
2408
|
sideNumber: r || 1,
|
|
@@ -2465,10 +2465,10 @@ function $G({ className: e, composition: t, side: r }) {
|
|
|
2465
2465
|
const n = t?.configuration || {}, { bracketedSeeds: a } = n, o = typeof a == "boolean" && ["(", ")"] || a === "square" && ["[", "]"] || ["", ""], s = `${o[0]}${i}${o[1]}`, c = n.seedingElement === "sup" ? "sup" : "span", u = document.createElement(c);
|
|
2466
2466
|
return u.className = e || "", u.innerHTML = s, u;
|
|
2467
2467
|
}
|
|
2468
|
-
const VG = (e) =>
|
|
2468
|
+
const VG = (e) => Tr("chc-scale", e?.color && `chc-scale--${e.color}`);
|
|
2469
2469
|
function GG({ individualParticipant: e, composition: t, className: r, matchUp: i, spacer: n }) {
|
|
2470
2470
|
const a = t?.configuration, o = a?.scaleAttributes?.eventType || i?.matchUpType || "SINGLES", s = e?.rankings, c = e?.ratings, u = a?.scaleAttributes, l = u?.scaleType, d = u?.scaleName, p = u?.accessor, f = l === "RATING" ? c : s, m = f?.SINGLES?.find((U) => U?.scaleName === d)?.scaleValue, h = f?.DOUBLES?.find((U) => U?.scaleName === d)?.scaleValue, g = m && p ? m[p] : m || "", I = h && p ? h[p] : h || "", y = o === "SINGLES" ? g : I, S = a?.scaleAttributes?.fallback, v = !n && (y || S && (g || I)), b = document.createElement("span"), T = a?.scaleAttributes?.scaleColor, w = T === "green" || T === "red" ? T : void 0;
|
|
2471
|
-
return v && (b.className =
|
|
2471
|
+
return v && (b.className = Tr(r, VG(w ? { color: w } : {}))), b.innerHTML = v || "", b;
|
|
2472
2472
|
}
|
|
2473
2473
|
var jG = Object.defineProperty, Fe = (e, t) => {
|
|
2474
2474
|
for (var r in t) jG(e, r, { get: t[r], enumerable: !0 });
|
|
@@ -2686,7 +2686,7 @@ function MC({ collectionValueProfiles: e, matchUpCount: t }) {
|
|
|
2686
2686
|
}
|
|
2687
2687
|
var aj = {};
|
|
2688
2688
|
Fe(aj, { addNotice: () => Re, callListener: () => yS, createInstanceState: () => Gj, cycleMutationStatus: () => hT, deepCopyEnabled: () => mT, deleteNotice: () => gT, deleteNotices: () => Lp, disableNotifications: () => KM, enableNotifications: () => xg, getDevContext: () => zr, getMethods: () => JM, getNotices: () => ZM, getProvider: () => vS, getTopics: () => Ri, getTournamentId: () => Lc, getTournamentRecord: () => IT, getTournamentRecords: () => Bc, globalLog: () => rR, handleCaughtError: () => _g, hasTopic: () => Og, removeTournamentRecord: () => tR, setDeepCopy: () => Hd, setDevContext: () => qd, setGlobalLog: () => zM, setGlobalMethods: () => QM, setGlobalSubscriptions: () => Wj, setMethods: () => XM, setStateMethods: () => iR, setStateProvider: () => Vj, setSubscriptions: () => qj, setTournamentId: () => Yd, setTournamentRecord: () => eR, setTournamentRecords: () => Fg, timeKeeper: () => jj });
|
|
2689
|
-
var uS = { message: "Chronological error; time violation.", code: "ANACHRONISM" }, jd = { message: "Duplicate entry", code: "DUPLICATE_ENTRY" }, RC = { message: "Cannot remove main structure", code: "ERR_CANNOT_REMOVE_MAIN_STRUCTURE" }, lS = { message: "records must be an object with tournamentId keys", code: "ERR_INVALID_TOURNAMENTS" }, Et = { message: "Missing tournamentRecords", code: "ERR_MISSING_TOURNAMENTS" }, ie = { message: "Missing tournamentRecord", code: "ERR_MISSING_TOURNAMENT" }, Cp = { message: "Invalid tournamentRecord", code: "ERR_INVALID_TOURNAMENT" }, Gu = { message: "Missing tournamentId", code: "ERR_MISSING_TOURNAMENT_ID" }, rc = { message: "Invalid drawDefinition", code: "ERR_INVALID_DRAWDEF" }, he = { message: "Missing drawDefinition", code: "ERR_MISSING_DRAWDEF" }, kC = { message: "Existing drawDefinition(s)", code: "ERR_EXISTING_DRAWDEFS" }, fi = { message: "drawDefinition not found", code: "ERR_NOT_FOUND_DRAWDEF" }, bs = { message: "Invalid structure", code: "ERR_INVALID_STRUCTURE" }, Gb = { message: "Incomplete source structure", code: "ERR_INCOMPLETE_STRUCTURE" }, jb = { message: "Invalid drawPosition for seedAssignment", code: "ERR_INVALID_SEEDING_POSITION" }, ju = { message: "drawPosition already assigned", code: "ERR_EXISTING_POSITION_ASSIGNMENT" }, xC = { message: "Schedule not cleared", code: "ERR_UNCHANGED_SCHEDULE_NOT_CLEARED" }, OC = { message: "Schedule conflict: court slot already occupied", code: "ERR_SCHEDULE_CONFLICT_DOUBLE_BOOKING" }, FC = { message: "drawPosition not cleared", code: "ERR_FAILURE_POSITION_NOT_CLEARED" }, oj = { message: "drawPosition not found", code: "ERR_NOT_FOUND_DRAW_POSITION" }, Wb = { message: "Unrecognized drawType", code: "ERR_UNRECOGNIZED_DRAW_TYPE" }, Mp = { message: "Missing drawPositions", code: "ERR_MISSING_DRAW_POSITIONS" }, Rp = { message: "drawPosition is active", code: "ERR_ACTIVE_DRAW_POSITION" }, sj = { message: "drawPosition is occupied", code: "ERR_OCCUPIED_DRAW_POSITION" }, xc = { message: "Invlid drawPosition", code: "ERR_INVALID_DRAW_POSITION" }, yl = { message: "Missing drawPosition", code: "ERR_MISSING_DRAW_POSITION" }, qb = { message: "Invalid drawType", code: "ERR_INVALID_DRAW_TYPE" }, Tg = { message: "Invalid drawSize", code: "ERR_INVALID_DRAW_SIZE" }, _C = { message: "Cannot set drawSize to be less than existing entries", code: "ERR_INVALID_DRAW_SIZE_MISMATCH" }, kp = { message: "Missing drawSize", code: "ERR_MISSING_DRAW_SIZE" }, yn = { message: "Missing drawId", code: "ERR_MISSING_DRAW_ID" }, LC = { message: "drawId exists", code: "ERR_EXISTING_DRAW_ID" }, BC = { message: "participantId cannot be assigned to multiple seedNumbers", code: "INVALID_PARTICIPANT_SEEDING" }, $C = { message: "seedsCount greater than drawSize", code: "ERR_INVALID_SEED_COUNT" }, VC = { message: "Missing seedCountThresholds", code: "ERR_MISSING_SEED_COUNT_THRESHOLD" }, GC = { message: "Invalid action", code: "ERR_INVALID_ACTION" }, dS = { message: "Invalid assignment", code: "ERR_INVALID_ASSIGNMENT" }, jC = { message: "Missing seedAssignments", code: "ERR_MISSING_SEED_ASSIGNMENTS" }, WC = { message: "Invalid seedNumber", code: "ERR_INVALID_SEED_NUMBER" }, qC = { message: "Invalid seedPosition", code: "ERR_INVALID_SEED_POSITION" }, Hb = { message: "Missing targetLink", code: "ERR_MISSING_LINK_TARGET" }, HC = { message: "Existing round", code: "ERR_EXISTING_ROUND" }, cj = { message: "Missing roundNumber", code: "ERR_MISSING_ROUND_NUMBER" }, gi = { message: "Missing structureId", code: "ERR_MISSING_STRUCTURE_ID" }, bt = { message: "structure not found", code: "ERR_NOT_FOUND_STRUCTURE" }, Yb = { message: "Missing structures", code: "ERR_MISSING_STRUCTURES" }, Ts = { message: "Missing structure", code: "ERR_MISSING_STRUCTURE" }, zb = { message: "Missing MAIN structure", code: "ERR_MISSING_MAIN_STRUCTURE" }, YC = { message: "drawDefinition contains unlinked structures", code: "ERR_MISSING_STRUCTURE_LINKS" }, Zn = { message: "Invalid eventType", code: "ERR_INVALID_EVENT_TYPE" }, gt = { message: "Missing event / eventId", code: "ERR_MISSING_EVENT_ID" }, Ni = { message: "Event not found", code: "ERR_NOT_FOUND_EVENT" }, zC = { message: "Event exists", code: "ERR_EXISTING_EVENT" }, KC = { message: "Missing entries", code: "ERR_MISSING_ENTRIES" }, QC = { message: "Invalid entries", code: "ERR_INVALID_ENTRIES" }, Kb = { message: "Missing assignments", code: "ERR_MISSING_ASSIGNMENTS" }, XC = { message: "Missing stage", code: "ERR_MISSING_STAGE" }, ws = { message: "Invalid stage", code: "ERR_INVALID_STAGE" }, JC = { message: "stageSequence limit", code: "ERR_LIMIT_STAGE_SEQUENCE" }, ZC = { message: "Missing positionAssignments", code: "ERR_MISSING_POSITION_ASSIGNMENTS" }, eM = { message: "Cannot Assign BYE status if no assignment: { bye: true }", code: "ERR_UNCHANGED_CANNOT_ASSIGN_BYE" }, pS = { message: "Unrecognized matchUpStatus", code: "ERR_UNRECOGNIZED_MATCHUP_STATUS" }, xp = { message: "Unrecognized matchUpFormat", code: "ERR_UNRECOGNIZED_MATCHUP_FORMAT" }, km = { message: "Incompatible matchUpStatus", code: "ERR_INCOMPATIBLE_MATCHUP_STATUS" }, uj = { message: "Propagated exits downstream", code: "ERR_PROPAGATED_EXITS_DOWNSTREAM" }, vl = { message: "Invalid matchUpStatus", code: "ERR_INVALID_MATCHUP_STATUS" }, Yn = { message: "Invalid tieFormat", code: "ERR_INVALID_TIE_FORMAT" }, tM = { message: "Invalid matchUpFormat", code: "ERR_INVALID_MATCHUP_FORMAT" }, rM = { message: "Missing matchUpFormat", code: "ERR_MISSING_MATCHUP_FORMAT" }, iM = { message: "Missing collectionDefinition", code: "ERR_MISSING_COLLECTION_DEFINITION" }, Sl = { message: "Missing tieFormat", code: "ERR_MISSING_TIE_FORMAT" }, Er = { message: "Missing matchUpId", code: "ERR_MISSING_MATCHUP_ID" }, Oc = { message: "Missing matchUpIds", code: "ERR_MISSING_MATCHUP_IDS" }, vr = { message: "matchUp not found", code: "ERR_NOT_FOUND_MATCHUP" }, pa = { message: "Missing matchUps", code: "ERR_MISSING_MATCHUPS" }, Hr = { message: "Missing matchUp", code: "ERR_MISSING_MATCHUP" }, Yr = { message: "Invalid matchUp", code: "ERR_INVALID_MATCHUP" }, Qb = { message: "Missing policyType", code: "ERR_MISSING_POLICY_TYPE" }, wg = { message: "Missing policyDefinitions", code: "ERR_MISSING_POLICY_DEFINITIONS" }, lj = { message: "Missing seeding policy", code: "ERR_MISSING_POLICY_SEEDING" }, nM = { message: "Missing avoidance policy", code: "ERR_MISSING_POLICY_AVOIDANCE" }, Xb = { message: "Missing policy attributes", code: "ERR_MISSING_POLICY_ATTRIBUTES" }, aM = { message: "Invalid policyDefinitions", code: "ERR_INVALID_POLICY_DEFINITIONS" }, Jb = { message: "existing policyType", code: "ERR_EXISTING_POLICY_TYPE" }, dj = { message: "Policy not attached", code: "ERR_FAILURE_POLICY_NOT_ATTACHED" }, Op = { message: "Policy not found", code: "ERR_NOT_FOUND_POLICY" }, pj = { message: "Missing scoring policy / matchUpFormats", code: "ERR_MISSING_POLICY_SCORING_MATCHUP_FORMATS" }, oM = { message: "Invalid sideNumber", code: "ERR_INVALID_SIDE_NUMBER" }, fj = { message: "Invalid setNumber", code: "ERR_INVALID_SET_NUMBER" }, Ug = { message: "Missing setObject", code: "ERR_MISSING_SET_ATTRIBUTE" }, mj = { message: "Missing setNumber", code: "ERR_MISSING_SET_NUMBER" }, hj = { message: "Missing sideNumber", code: "ERR_MISSING_SIDE_NUMBER" }, Fc = { message: "Missing courtId", code: "ERR_MISSING_COURT_ID" }, we = { message: "Missing value", code: "ERR_MISSING_VALUE" }, sM = { message: "Missing birthdate", code: "ERR_MISSING_BIRTH_DATE" }, cM = { message: "Missing date", code: "ERR_MISSING_DATE" }, uM = { message: "No valid dates", code: "ERR_NO_VALID_DATES" }, uh = { message: "Invalid bookings", code: "ERR_INVALID_BOOKINGS" }, xm = { message: "Invalid dateAvailability", code: "ERR_INVALID_DATE_AVAILABILITY" }, lM = { message: "Missing dateAvailability", code: "ERR_MISSING_DATE_AVAILABILITY" }, qt = { message: "Invalid Date", code: "ERR_INVALID_DATE" }, Li = { message: "Invalid time", code: "ERR_INVALID_TIME" }, dM = { message: "Invalid tournament dates", code: "ERR_INVALID_DATES_TOURNAMENT" }, gj = { message: "Missing date range", info: "Event or tournament must have start and end dates", code: "ERR_MISSING_DATE_RANGE" }, Dg = { message: "Invalid Time Zone", code: "ERR_INVALID_TIME_ZONE" }, Du = { message: "Invalid embargo: must be an ISO 8601 datetime with timezone (Z or ±HH:MM offset)", code: "ERR_INVALID_EMBARGO" }, fS = { message: "Invalid game scores", code: "ERR_INVALID_SCORES_GAME" }, pM = { message: "Invalid score", code: "ERR_INVALID_SCORE" }, Pg = { message: "Invalid winningSide", code: "ERR_INVALID_WINNING_SIDE" }, Ij = { message: "No participants generated", code: "ERR_NO_PARTICIPANTS_GENERATED" }, Zb = { message: "Cannot modify tieFormat", code: "ERR_UNCHANGED_CANNOT_MODIFY_TIEFORMAT" }, fM = { message: "Cannot modify participantType", code: "ERR_UNCHANGED_CANNOT_MODIFY_PARTICIPANT_TYPE" }, Eg = { message: "Cannot remove participants", code: "ERR_UNCHANGED_CANNOT_REMOVE_PARTICIPANTS" }, mM = { message: "Participant category mismatch", code: "ERR_CATEGORY_MISMATCH" }, Ng = { message: "Cannot change winningSide", code: "ERR_UNCHANGED_CANNOT_CHANGE_WINNING_SIDE" }, cs = { message: "Invalid participant", code: "ERR_INVALID_PARTICIPANT" }, fn = { message: "Invalid participantId", code: "ERR_INVALID_PARTICIPANT_ID" }, ri = { message: "Invalid participantIds", code: "ERR_INVALID_PARTICIPANT_IDS" }, hM = { message: "Invalid participantRole", code: "ERR_INVALID_PARTICIPANT_ROLE" }, mn = { message: "Invalid participantType", code: "ERR_INVALID_PARTICIPANT_TYPE" }, gM = { message: "Missing participantRole", code: "ERR_MISSING_PARTICIPANT_ROLE" }, _c = { message: "Missing participant", code: "ERR_MISSING_PARTICIPANT" }, Fp = { message: "Missing participants", code: "ERR_MISSING_PARTICIPANTS" }, Ht = { message: "Missing participantId", code: "ERR_MISSING_PARTICIPANT_ID" }, IM = { message: "Missing qualified participants", code: "ERR_MISSING_QUALIFIED_PARTICIPANTS" }, kt = { message: "Participant Not Found", code: "ERR_NOT_FOUND_PARTICIPANT" }, yM = { message: "participantId exists", code: "ERR_EXISTING_PARTICIPANT_ID" }, yj = { message: "participant pair exists", code: "ERR_EXISTING_PARTICIPANT_PAIR" }, vM = { message: "No participant removed", code: "ERR_UNCHANGED_NO_PARTICIPANT_REMOVED" }, Mo = { message: "Missing participantIds", code: "ERR_MISSING_PARTICIPANT_IDS" }, SM = { message: "Missing participantsCount", code: "ERR_MISSING_PARTICIPANT_COUNT" }, bM = { message: "Participant not checked in", code: "ERR_UNCHANGED_PARTICIPANT_NOT_CHECKED_IN" }, TM = { message: "Missing person details", code: "ERR_MISSING_PERSON_DETAILS" }, bl = { message: "Existing participant drawPosition assignment", code: "ERR_EXISTING_PARTICIPANT_DRAW_POSITION_ASSIGNMENT" }, Ag = { message: "Existing participant", code: "ERR_EXISTING_PARTICIPANT" }, eT = { message: "participantsCount exceeds drawSize", code: "ERR_INVALID_PARTICIPANT_COUNT" }, mS = { message: "Invalid entry status", code: "ERR_INVALID_ENTRY_STATUS" }, wM = { message: "Participant Entry Not Found", code: "ERR_NOT_FOUND_PARTICIPANT_ENTRY" }, vj = { message: "Participant not entered in stage", code: "ERR_UNCHANGED_PARTICIPANT_NOT_ENTERED" }, Sj = { message: "Participant not found in stageSequence", code: "ERR_NOT_FOUND_PARTICIPANT_IN_STAGE" }, UM = { message: "entryStatus not allowed in stage", code: "ERR_INVALID_ENTRY_STATUS_IN_STAGE" }, DM = { message: "entryStatus not allowed for event", code: "ERR_INVALID_ENTRY_STATUS_IN_EVENT" }, hS = { message: "No stage space available for entryStatus", code: "ERR_UNCHANGED_NO_AVAILABLE_STAGE_SPACE" }, tT = { message: "Insufficient drawPositions to accommodate qualifiers", code: "ERR_UNCHANGED_NO_DRAW_POSITIONS_FOR_QUALIFIERS" }, rT = { message: "Insufficient drawPositions to accommodate entries", code: "ERR_INSUFFICIENT_DRAW_POSITIONS" }, PM = { message: "Missing penaltyType", code: "ERR_MISSING_PENALTY_TYPE" }, iT = { message: "Missing penaltyId", code: "ERR_MISSING_PENALTY_ID" }, Wu = { message: "Penalty not found", code: "ERR_NOT_FOUND_PENALTY" }, EM = { message: "Missing courtsCount/courtNames", code: "ERR_MISSING_COURTS_INFO" }, ka = { message: "Court not found", code: "ERR_NOT_FOUND_COURT" }, NM = { message: "Court exists", code: "ERR_EXISTING_COURT" }, gS = { message: "Booking not found", code: "ERR_NOT_FOUND_BOOKING" }, AM = { message: "Existing matchUps conflict with booking", code: "ERR_EXISTING_MATCHUPS" }, CM = { message: "Venue exists", code: "ERR_EXISTING_VENUE" }, Us = { message: "Venue not found", code: "ERR_NOT_FOUND_VENUE" }, Ro = { message: "Missing venueId", code: "ERR_MISSING_VENUE_ID" }, MM = { message: "Invalid endTime", code: "ERR_INVALID_END_TIME" }, nT = { message: "Existing endTime", code: "ERR_EXISTING_END_TIME" }, RM = { message: "Invalid stopTime", code: "ERR_INVALID_STOP_TIME" }, kM = { message: "Invalid startTime", code: "ERR_INVALID_START_TIME" }, bj = { message: "Invalid resumeTime", code: "ERR_INVALID_RESUME_TIME" }, aT = { message: "Invalid timeItem", code: "ERR_INVALID_TIME_ITEMS" }, xM = { message: "Missing async state provider", code: "ERR_MISSING_ASYNC_STATE_PROVIDER" }, oT = { message: "Missing timeItem", code: "ERR_MISSING_TIME_ITEM" }, sT = { message: "Missing timeItems", code: "ERR_MISSING_TIME_ITEMS" }, Cg = { message: "Missing context", code: "ERR_MISSING_CONTEXT" }, OM = { message: "Missing schedule", code: "ERR_MISSING_SCHEDULE" }, hc = { message: "Invalid scaleItem", code: "ERR_INVALID_SCALE_ITEM" }, FM = { message: "Modifications failed", code: "ERR_FAILURE_MODIFICATIONS" }, Tl = { message: "No modifications applied", code: "ERR_UNCHANGED_NO_MODIFICATIONS_APPLIED" }, _M = { message: "Unable to assign court", code: "ERR_UNCHANGED_COURT_NOT_ASSIGNED" }, Mg = { message: "No Candidates", code: "ERR_UNCHANGED_NO_CANDIDATES" }, LM = { message: "Invalid configuration", code: "ERR_INVALID_CONFIG" }, BM = { message: "Invalid collectionDefinition", code: "ERR_INVALID_COLLECTION_DEFINITION" }, Ha = { message: "Invalid object", code: "ERR_INVALID_OBJECT" }, Ud = { message: "Invalid gender", code: "ERR_INVALID_GENDER" }, Wd = { message: "Invalid category", code: "ERR_INVALID_CATEGORY" }, K = { message: "Invalid values", code: "ERR_INVALID_VALUES" }, $M = { message: "Duplicate value", code: "ERR_DUPLICATE_VALUE" }, cT = { message: "Team not found", code: "ERR_NOT_FOUND_TEAM" }, VM = { message: "No valid actions", code: "ERR_NO_VALID_ACTIONS" }, Rg = { message: "No valid attributes", code: "ERR_NO_VALID_ATTRIBUTES" }, uT = { message: "Value unchanged", code: "ABORT_UNCHANGED" }, cr = { message: "Not found", code: "ERR_NOT_FOUND" }, lT = { message: "Not implemented", code: "ERR_NOT_IMPLEMENTED" }, GM = { message: "Existing flight", code: "ERR_EXISTING_FLIGHT" }, dT = { message: "Existing flight profile", code: "ERR_EXISTING_FLIGHT_PROFILE" }, jM = { message: "Existing outcome", code: "ERR_EXISTING_OUTCOME" }, WM = { message: "Existing matchUpId", code: "ERR_EXISTING_MATCHUP_ID" }, IS = { message: "Existing stage", code: "ERR_EXISTING_STAGE" }, pT = { message: "Existing structure", code: "ERR_EXISTING_STRUCTURE" }, kg = { message: "Method not found", code: "ERR_NOT_FOUND_METHOD" }, qM = { message: "Scheduled matchUps", code: "ERR_SCHEDULED_MATCHUPS" }, _p = { message: "Scores present", code: "ERR_SCORES_PRESENT" }, Tj = { ANACHRONISM: uS, BOOKING_NOT_FOUND: gS, CANNOT_CHANGE_WINNING_SIDE: Ng, CANNOT_MODIFY_TIEFORMAT: Zb, CANNOT_MODIFY_PARTICIPANT_TYPE: fM, CANNOT_REMOVE_MAIN_STRUCTURE: RC, CANNOT_REMOVE_PARTICIPANTS: Eg, CATEGORY_MISMATCH: mM, COURT_EXISTS: NM, COURT_NOT_FOUND: ka, EXISTING_MATCHUPS: AM, DRAW_DEFINITION_NOT_FOUND: fi, DRAW_ID_EXISTS: LC, DRAW_POSITION_ACTIVE: Rp, DRAW_POSITION_ASSIGNED: ju, DRAW_POSITION_NOT_CLEARED: FC, DRAW_POSITION_NOT_FOUND: oj, DRAW_SIZE_MISMATCH: _C, DUPLICATE_ENTRY: jd, DUPLICATE_VALUE: $M, ENTRY_STATUS_NOT_ALLOWED_FOR_EVENT: DM, ENTRY_STATUS_NOT_ALLOWED_IN_STAGE: UM, EVENT_EXISTS: zC, EVENT_NOT_FOUND: Ni, EXISTING_DRAW_DEFINITIONS: kC, EXISTING_END_TIME: nT, EXISTING_FLIGHT: GM, EXISTING_MATCHUP_ID: WM, EXISTING_OUTCOME: jM, EXISTING_PARTICIPANT_DRAW_POSITION_ASSIGNMENT: bl, EXISTING_PARTICIPANT: Ag, EXISTING_POLICY_TYPE: Jb, EXISTING_PROFILE: dT, EXISTING_ROUND: HC, EXISTING_STAGE: IS, EXISTING_STRUCTURE: pT, INCOMPATIBLE_MATCHUP_STATUS: km, INCOMPLETE_SOURCE_STRUCTURE: Gb, INSUFFICIENT_DRAW_POSITIONS: rT, INVALID_ACTION: GC, INVALID_ASSIGNMENT: dS, INVALID_BOOKINGS: uh, INVALID_CATEGORY: Wd, INVALID_COLLECTION_DEFINITION: BM, INVALID_CONFIGURATION: LM, INVALID_DATE_AVAILABILITY: xm, INVALID_DATE: qt, INVALID_DRAW_DEFINITION: rc, INVALID_DRAW_POSITION_FOR_SEEDING: jb, INVALID_DRAW_POSITION: xc, INVALID_DRAW_SIZE: Tg, INVALID_END_TIME: MM, INVALID_ENTRIES: QC, INVALID_EVENT_TYPE: Zn, INVALID_GAME_SCORES: fS, INVALID_GENDER: Ud, INVALID_MATCHUP_FORMAT: tM, INVALID_MATCHUP_STATUS: vl, INVALID_MATCHUP_STATUS_BYE: eM, INVALID_MATCHUP: Yr, INVALID_OBJECT: Ha, INVALID_PARTICIPANT_ID: fn, INVALID_PARTICIPANT_IDS: ri, INVALID_PARTICIPANT_ROLE: hM, INVALID_PARTICIPANT_SEEDING: BC, INVALID_PARTICIPANT_TYPE: mn, INVALID_PARTICIPANT: cs, INVALID_POLICY_DEFINITION: aM, INVALID_RECORDS: lS, INVALID_SCALE_ITEM: hc, INVALID_SEED_NUMBER: WC, INVALID_SEED_POSITION: qC, INVALID_SET_NUMBER: fj, INVALID_SIDE_NUMBER: oM, INVALID_SCORE: pM, INVALID_STAGE: ws, INVALID_START_TIME: kM, INVALID_STRUCTURE: bs, INVALID_STOP_TIME: RM, INVALID_TIE_FORMAT: Yn, INVALID_TIME: Li, INVALID_TIME_ITEM: aT, INVALID_TOURNAMENT_DATES: dM, INVALID_TOURNAMENT_RECORD: Cp, INVALID_VALUES: K, INVALID_WINNING_SIDE: Pg, MATCHUP_NOT_FOUND: vr, METHOD_NOT_FOUND: kg, MISSING_ASSIGNMENTS: Kb, MISSING_ASYNC_STATE_PROVIDER: xM, MISSING_AVOIDANCE_POLICY: nM, MISSING_BIRTH_DATE: sM, MISSING_COLLECTION_DEFINITION: iM, MISSING_COURT_ID: Fc, MISSING_COURTS_INFO: EM, MISSING_DATE_AVAILABILITY: lM, MISSING_DATE: cM, MISSING_DRAW_DEFINITION: he, MISSING_DRAW_ID: yn, MISSING_DRAW_POSITION: yl, MISSING_DRAW_POSITIONS: Mp, MISSING_DRAW_SIZE: kp, MISSING_ENTRIES: KC, MISSING_EVENT: gt, MISSING_QUALIFIED_PARTICIPANTS: IM, MISSING_MATCHUP_FORMAT: rM, MISSING_MATCHUP_ID: Er, MISSING_MATCHUP_IDS: Oc, MISSING_MATCHUP: Hr, MISSING_MATCHUPS: pa, MISSING_PARTICIPANT_COUNT: SM, MISSING_PARTICIPANT_ID: Ht, MISSING_PARTICIPANT_IDS: Mo, MISSING_PARTICIPANT_ROLE: gM, MISSING_PARTICIPANT: _c, MISSING_PARTICIPANTS: Fp, MISSING_PENALTY_ID: iT, MISSING_PENALTY_TYPE: PM, MISSING_PERSON_DETAILS: TM, MISSING_POLICY_ATTRIBUTES: Xb, MISSING_POLICY_DEFINITION: wg, MISSING_POLICY_TYPE: Qb, MISSING_POSITION_ASSIGNMENTS: ZC, MISSING_ROUND_NUMBER: cj, MISSING_SCHEDULE: OM, MISSING_SCORING_POLICY: pj, MISSING_SEED_ASSIGNMENTS: jC, MISSING_SEEDCOUNT_THRESHOLDS: VC, MISSING_SEEDING_POLICY: lj, MISSING_SET_NUMBER: mj, MISSING_SET_OBJECT: Ug, MISSING_SIDE_NUMBER: hj, MISSING_STAGE: XC, MISSING_STRUCTURE_ID: gi, MISSING_STRUCTURE: Ts, MISSING_MAIN_STRUCTURE: zb, MISSING_STRUCTURES: Yb, MISSING_TARGET_LINK: Hb, MISSING_TIE_FORMAT: Sl, MISSING_TIME_ITEM: oT, MISSING_TIME_ITEMS: sT, MISSING_TOURNAMENT_ID: Gu, MISSING_TOURNAMENT_RECORD: ie, MISSING_TOURNAMENT_RECORDS: Et, MISSING_VALUE: we, MISSING_VENUE_ID: Ro, MODIFICATIONS_FAILED: FM, NO_CANDIDATES: Mg, NO_DRAW_POSITIONS_AVAILABLE_FOR_QUALIFIERS: tT, NO_MODIFICATIONS_APPLIED: Tl, NO_STAGE_SPACE_AVAILABLE_FOR_ENTRY_STATUS: hS, NO_PARTICIPANT_REMOVED: vM, NO_VALID_ACTIONS: VM, NO_VALID_ATTRIBUTES: Rg, NO_VALID_DATES: uM, NOT_FOUND: cr, NOT_IMPLEMENTED: lT, PARTICIPANT_COUNT_EXCEEDS_DRAW_SIZE: eT, PARTICIPANT_ID_EXISTS: yM, PARTICIPANT_NOT_CHECKED_IN: bM, PARTICIPANT_NOT_FOUND: kt, PARTICIPANT_PAIR_EXISTS: yj, PENALTY_NOT_FOUND: Wu, POLICY_NOT_ATTACHED: dj, POLICY_NOT_FOUND: Op, SCHEDULE_NOT_CLEARED: xC, SCHEDULE_CONFLICT_DOUBLE_BOOKING: OC, SCHEDULED_MATCHUPS: qM, SCORES_PRESENT: _p, SEEDSCOUNT_GREATER_THAN_DRAW_SIZE: $C, STAGE_SEQUENCE_LIMIT: JC, STRUCTURE_NOT_FOUND: bt, TEAM_NOT_FOUND: cT, UNABLE_TO_ASSIGN_COURT: _M, UNLINKED_STRUCTURES: YC, UNRECOGNIZED_DRAW_TYPE: Wb, UNRECOGNIZED_MATCHUP_FORMAT: xp, UNRECOGNIZED_MATCHUP_STATUS: pS, VALUE_UNCHANGED: uT, VENUE_EXISTS: CM }, St = { disableNotifications: !1, tournamentId: void 0, tournamentRecords: {}, subscriptions: {}, modified: !1, methods: {}, notices: [] }, HM = { addNotice: xj, callListener: Bj, cycleMutationStatus: kj, deleteNotice: _j, deleteNotices: Fj, disableNotifications: wj, enableNotifications: Uj, getMethods: fT, getNotices: Oj, getTopics: Lj, getTournamentId: YM, getTournamentRecord: Dj, getTournamentRecords: Pj, removeTournamentRecord: Cj, setMethods: Rj, setSubscriptions: Mj, setTournamentId: Nj, setTournamentRecord: Ej, setTournamentRecords: Aj, handleCaughtError: $j };
|
|
2689
|
+
var uS = { message: "Chronological error; time violation.", code: "ANACHRONISM" }, jd = { message: "Duplicate entry", code: "DUPLICATE_ENTRY" }, RC = { message: "Cannot remove main structure", code: "ERR_CANNOT_REMOVE_MAIN_STRUCTURE" }, lS = { message: "records must be an object with tournamentId keys", code: "ERR_INVALID_TOURNAMENTS" }, Et = { message: "Missing tournamentRecords", code: "ERR_MISSING_TOURNAMENTS" }, ie = { message: "Missing tournamentRecord", code: "ERR_MISSING_TOURNAMENT" }, Cp = { message: "Invalid tournamentRecord", code: "ERR_INVALID_TOURNAMENT" }, Gu = { message: "Missing tournamentId", code: "ERR_MISSING_TOURNAMENT_ID" }, rc = { message: "Invalid drawDefinition", code: "ERR_INVALID_DRAWDEF" }, he = { message: "Missing drawDefinition", code: "ERR_MISSING_DRAWDEF" }, kC = { message: "Existing drawDefinition(s)", code: "ERR_EXISTING_DRAWDEFS" }, fi = { message: "drawDefinition not found", code: "ERR_NOT_FOUND_DRAWDEF" }, bs = { message: "Invalid structure", code: "ERR_INVALID_STRUCTURE" }, Gb = { message: "Incomplete source structure", code: "ERR_INCOMPLETE_STRUCTURE" }, jb = { message: "Invalid drawPosition for seedAssignment", code: "ERR_INVALID_SEEDING_POSITION" }, ju = { message: "drawPosition already assigned", code: "ERR_EXISTING_POSITION_ASSIGNMENT" }, xC = { message: "Schedule not cleared", code: "ERR_UNCHANGED_SCHEDULE_NOT_CLEARED" }, OC = { message: "Schedule conflict: court slot already occupied", code: "ERR_SCHEDULE_CONFLICT_DOUBLE_BOOKING" }, FC = { message: "drawPosition not cleared", code: "ERR_FAILURE_POSITION_NOT_CLEARED" }, oj = { message: "drawPosition not found", code: "ERR_NOT_FOUND_DRAW_POSITION" }, Wb = { message: "Unrecognized drawType", code: "ERR_UNRECOGNIZED_DRAW_TYPE" }, Mp = { message: "Missing drawPositions", code: "ERR_MISSING_DRAW_POSITIONS" }, Rp = { message: "drawPosition is active", code: "ERR_ACTIVE_DRAW_POSITION" }, sj = { message: "drawPosition is occupied", code: "ERR_OCCUPIED_DRAW_POSITION" }, xc = { message: "Invlid drawPosition", code: "ERR_INVALID_DRAW_POSITION" }, yl = { message: "Missing drawPosition", code: "ERR_MISSING_DRAW_POSITION" }, qb = { message: "Invalid drawType", code: "ERR_INVALID_DRAW_TYPE" }, Tg = { message: "Invalid drawSize", code: "ERR_INVALID_DRAW_SIZE" }, _C = { message: "Cannot set drawSize to be less than existing entries", code: "ERR_INVALID_DRAW_SIZE_MISMATCH" }, kp = { message: "Missing drawSize", code: "ERR_MISSING_DRAW_SIZE" }, yn = { message: "Missing drawId", code: "ERR_MISSING_DRAW_ID" }, LC = { message: "drawId exists", code: "ERR_EXISTING_DRAW_ID" }, BC = { message: "participantId cannot be assigned to multiple seedNumbers", code: "INVALID_PARTICIPANT_SEEDING" }, $C = { message: "seedsCount greater than drawSize", code: "ERR_INVALID_SEED_COUNT" }, VC = { message: "Missing seedCountThresholds", code: "ERR_MISSING_SEED_COUNT_THRESHOLD" }, GC = { message: "Invalid action", code: "ERR_INVALID_ACTION" }, dS = { message: "Invalid assignment", code: "ERR_INVALID_ASSIGNMENT" }, jC = { message: "Missing seedAssignments", code: "ERR_MISSING_SEED_ASSIGNMENTS" }, WC = { message: "Invalid seedNumber", code: "ERR_INVALID_SEED_NUMBER" }, qC = { message: "Invalid seedPosition", code: "ERR_INVALID_SEED_POSITION" }, Hb = { message: "Missing targetLink", code: "ERR_MISSING_LINK_TARGET" }, HC = { message: "Existing round", code: "ERR_EXISTING_ROUND" }, cj = { message: "Missing roundNumber", code: "ERR_MISSING_ROUND_NUMBER" }, gi = { message: "Missing structureId", code: "ERR_MISSING_STRUCTURE_ID" }, bt = { message: "structure not found", code: "ERR_NOT_FOUND_STRUCTURE" }, Yb = { message: "Missing structures", code: "ERR_MISSING_STRUCTURES" }, Ts = { message: "Missing structure", code: "ERR_MISSING_STRUCTURE" }, zb = { message: "Missing MAIN structure", code: "ERR_MISSING_MAIN_STRUCTURE" }, YC = { message: "drawDefinition contains unlinked structures", code: "ERR_MISSING_STRUCTURE_LINKS" }, Zn = { message: "Invalid eventType", code: "ERR_INVALID_EVENT_TYPE" }, gt = { message: "Missing event / eventId", code: "ERR_MISSING_EVENT_ID" }, Ni = { message: "Event not found", code: "ERR_NOT_FOUND_EVENT" }, zC = { message: "Event exists", code: "ERR_EXISTING_EVENT" }, KC = { message: "Missing entries", code: "ERR_MISSING_ENTRIES" }, QC = { message: "Invalid entries", code: "ERR_INVALID_ENTRIES" }, Kb = { message: "Missing assignments", code: "ERR_MISSING_ASSIGNMENTS" }, XC = { message: "Missing stage", code: "ERR_MISSING_STAGE" }, ws = { message: "Invalid stage", code: "ERR_INVALID_STAGE" }, JC = { message: "stageSequence limit", code: "ERR_LIMIT_STAGE_SEQUENCE" }, ZC = { message: "Missing positionAssignments", code: "ERR_MISSING_POSITION_ASSIGNMENTS" }, eM = { message: "Cannot Assign BYE status if no assignment: { bye: true }", code: "ERR_UNCHANGED_CANNOT_ASSIGN_BYE" }, pS = { message: "Unrecognized matchUpStatus", code: "ERR_UNRECOGNIZED_MATCHUP_STATUS" }, xp = { message: "Unrecognized matchUpFormat", code: "ERR_UNRECOGNIZED_MATCHUP_FORMAT" }, km = { message: "Incompatible matchUpStatus", code: "ERR_INCOMPATIBLE_MATCHUP_STATUS" }, uj = { message: "Propagated exits downstream", code: "ERR_PROPAGATED_EXITS_DOWNSTREAM" }, vl = { message: "Invalid matchUpStatus", code: "ERR_INVALID_MATCHUP_STATUS" }, Yn = { message: "Invalid tieFormat", code: "ERR_INVALID_TIE_FORMAT" }, tM = { message: "Invalid matchUpFormat", code: "ERR_INVALID_MATCHUP_FORMAT" }, rM = { message: "Missing matchUpFormat", code: "ERR_MISSING_MATCHUP_FORMAT" }, iM = { message: "Missing collectionDefinition", code: "ERR_MISSING_COLLECTION_DEFINITION" }, Sl = { message: "Missing tieFormat", code: "ERR_MISSING_TIE_FORMAT" }, Er = { message: "Missing matchUpId", code: "ERR_MISSING_MATCHUP_ID" }, Oc = { message: "Missing matchUpIds", code: "ERR_MISSING_MATCHUP_IDS" }, Sr = { message: "matchUp not found", code: "ERR_NOT_FOUND_MATCHUP" }, pa = { message: "Missing matchUps", code: "ERR_MISSING_MATCHUPS" }, Hr = { message: "Missing matchUp", code: "ERR_MISSING_MATCHUP" }, Yr = { message: "Invalid matchUp", code: "ERR_INVALID_MATCHUP" }, Qb = { message: "Missing policyType", code: "ERR_MISSING_POLICY_TYPE" }, wg = { message: "Missing policyDefinitions", code: "ERR_MISSING_POLICY_DEFINITIONS" }, lj = { message: "Missing seeding policy", code: "ERR_MISSING_POLICY_SEEDING" }, nM = { message: "Missing avoidance policy", code: "ERR_MISSING_POLICY_AVOIDANCE" }, Xb = { message: "Missing policy attributes", code: "ERR_MISSING_POLICY_ATTRIBUTES" }, aM = { message: "Invalid policyDefinitions", code: "ERR_INVALID_POLICY_DEFINITIONS" }, Jb = { message: "existing policyType", code: "ERR_EXISTING_POLICY_TYPE" }, dj = { message: "Policy not attached", code: "ERR_FAILURE_POLICY_NOT_ATTACHED" }, Op = { message: "Policy not found", code: "ERR_NOT_FOUND_POLICY" }, pj = { message: "Missing scoring policy / matchUpFormats", code: "ERR_MISSING_POLICY_SCORING_MATCHUP_FORMATS" }, oM = { message: "Invalid sideNumber", code: "ERR_INVALID_SIDE_NUMBER" }, fj = { message: "Invalid setNumber", code: "ERR_INVALID_SET_NUMBER" }, Ug = { message: "Missing setObject", code: "ERR_MISSING_SET_ATTRIBUTE" }, mj = { message: "Missing setNumber", code: "ERR_MISSING_SET_NUMBER" }, hj = { message: "Missing sideNumber", code: "ERR_MISSING_SIDE_NUMBER" }, Fc = { message: "Missing courtId", code: "ERR_MISSING_COURT_ID" }, we = { message: "Missing value", code: "ERR_MISSING_VALUE" }, sM = { message: "Missing birthdate", code: "ERR_MISSING_BIRTH_DATE" }, cM = { message: "Missing date", code: "ERR_MISSING_DATE" }, uM = { message: "No valid dates", code: "ERR_NO_VALID_DATES" }, uh = { message: "Invalid bookings", code: "ERR_INVALID_BOOKINGS" }, xm = { message: "Invalid dateAvailability", code: "ERR_INVALID_DATE_AVAILABILITY" }, lM = { message: "Missing dateAvailability", code: "ERR_MISSING_DATE_AVAILABILITY" }, qt = { message: "Invalid Date", code: "ERR_INVALID_DATE" }, Li = { message: "Invalid time", code: "ERR_INVALID_TIME" }, dM = { message: "Invalid tournament dates", code: "ERR_INVALID_DATES_TOURNAMENT" }, gj = { message: "Missing date range", info: "Event or tournament must have start and end dates", code: "ERR_MISSING_DATE_RANGE" }, Dg = { message: "Invalid Time Zone", code: "ERR_INVALID_TIME_ZONE" }, Du = { message: "Invalid embargo: must be an ISO 8601 datetime with timezone (Z or ±HH:MM offset)", code: "ERR_INVALID_EMBARGO" }, fS = { message: "Invalid game scores", code: "ERR_INVALID_SCORES_GAME" }, pM = { message: "Invalid score", code: "ERR_INVALID_SCORE" }, Pg = { message: "Invalid winningSide", code: "ERR_INVALID_WINNING_SIDE" }, Ij = { message: "No participants generated", code: "ERR_NO_PARTICIPANTS_GENERATED" }, Zb = { message: "Cannot modify tieFormat", code: "ERR_UNCHANGED_CANNOT_MODIFY_TIEFORMAT" }, fM = { message: "Cannot modify participantType", code: "ERR_UNCHANGED_CANNOT_MODIFY_PARTICIPANT_TYPE" }, Eg = { message: "Cannot remove participants", code: "ERR_UNCHANGED_CANNOT_REMOVE_PARTICIPANTS" }, mM = { message: "Participant category mismatch", code: "ERR_CATEGORY_MISMATCH" }, Ng = { message: "Cannot change winningSide", code: "ERR_UNCHANGED_CANNOT_CHANGE_WINNING_SIDE" }, cs = { message: "Invalid participant", code: "ERR_INVALID_PARTICIPANT" }, fn = { message: "Invalid participantId", code: "ERR_INVALID_PARTICIPANT_ID" }, ri = { message: "Invalid participantIds", code: "ERR_INVALID_PARTICIPANT_IDS" }, hM = { message: "Invalid participantRole", code: "ERR_INVALID_PARTICIPANT_ROLE" }, mn = { message: "Invalid participantType", code: "ERR_INVALID_PARTICIPANT_TYPE" }, gM = { message: "Missing participantRole", code: "ERR_MISSING_PARTICIPANT_ROLE" }, _c = { message: "Missing participant", code: "ERR_MISSING_PARTICIPANT" }, Fp = { message: "Missing participants", code: "ERR_MISSING_PARTICIPANTS" }, Ht = { message: "Missing participantId", code: "ERR_MISSING_PARTICIPANT_ID" }, IM = { message: "Missing qualified participants", code: "ERR_MISSING_QUALIFIED_PARTICIPANTS" }, kt = { message: "Participant Not Found", code: "ERR_NOT_FOUND_PARTICIPANT" }, yM = { message: "participantId exists", code: "ERR_EXISTING_PARTICIPANT_ID" }, yj = { message: "participant pair exists", code: "ERR_EXISTING_PARTICIPANT_PAIR" }, vM = { message: "No participant removed", code: "ERR_UNCHANGED_NO_PARTICIPANT_REMOVED" }, Mo = { message: "Missing participantIds", code: "ERR_MISSING_PARTICIPANT_IDS" }, SM = { message: "Missing participantsCount", code: "ERR_MISSING_PARTICIPANT_COUNT" }, bM = { message: "Participant not checked in", code: "ERR_UNCHANGED_PARTICIPANT_NOT_CHECKED_IN" }, TM = { message: "Missing person details", code: "ERR_MISSING_PERSON_DETAILS" }, bl = { message: "Existing participant drawPosition assignment", code: "ERR_EXISTING_PARTICIPANT_DRAW_POSITION_ASSIGNMENT" }, Ag = { message: "Existing participant", code: "ERR_EXISTING_PARTICIPANT" }, eT = { message: "participantsCount exceeds drawSize", code: "ERR_INVALID_PARTICIPANT_COUNT" }, mS = { message: "Invalid entry status", code: "ERR_INVALID_ENTRY_STATUS" }, wM = { message: "Participant Entry Not Found", code: "ERR_NOT_FOUND_PARTICIPANT_ENTRY" }, vj = { message: "Participant not entered in stage", code: "ERR_UNCHANGED_PARTICIPANT_NOT_ENTERED" }, Sj = { message: "Participant not found in stageSequence", code: "ERR_NOT_FOUND_PARTICIPANT_IN_STAGE" }, UM = { message: "entryStatus not allowed in stage", code: "ERR_INVALID_ENTRY_STATUS_IN_STAGE" }, DM = { message: "entryStatus not allowed for event", code: "ERR_INVALID_ENTRY_STATUS_IN_EVENT" }, hS = { message: "No stage space available for entryStatus", code: "ERR_UNCHANGED_NO_AVAILABLE_STAGE_SPACE" }, tT = { message: "Insufficient drawPositions to accommodate qualifiers", code: "ERR_UNCHANGED_NO_DRAW_POSITIONS_FOR_QUALIFIERS" }, rT = { message: "Insufficient drawPositions to accommodate entries", code: "ERR_INSUFFICIENT_DRAW_POSITIONS" }, PM = { message: "Missing penaltyType", code: "ERR_MISSING_PENALTY_TYPE" }, iT = { message: "Missing penaltyId", code: "ERR_MISSING_PENALTY_ID" }, Wu = { message: "Penalty not found", code: "ERR_NOT_FOUND_PENALTY" }, EM = { message: "Missing courtsCount/courtNames", code: "ERR_MISSING_COURTS_INFO" }, ka = { message: "Court not found", code: "ERR_NOT_FOUND_COURT" }, NM = { message: "Court exists", code: "ERR_EXISTING_COURT" }, gS = { message: "Booking not found", code: "ERR_NOT_FOUND_BOOKING" }, AM = { message: "Existing matchUps conflict with booking", code: "ERR_EXISTING_MATCHUPS" }, CM = { message: "Venue exists", code: "ERR_EXISTING_VENUE" }, Us = { message: "Venue not found", code: "ERR_NOT_FOUND_VENUE" }, Ro = { message: "Missing venueId", code: "ERR_MISSING_VENUE_ID" }, MM = { message: "Invalid endTime", code: "ERR_INVALID_END_TIME" }, nT = { message: "Existing endTime", code: "ERR_EXISTING_END_TIME" }, RM = { message: "Invalid stopTime", code: "ERR_INVALID_STOP_TIME" }, kM = { message: "Invalid startTime", code: "ERR_INVALID_START_TIME" }, bj = { message: "Invalid resumeTime", code: "ERR_INVALID_RESUME_TIME" }, aT = { message: "Invalid timeItem", code: "ERR_INVALID_TIME_ITEMS" }, xM = { message: "Missing async state provider", code: "ERR_MISSING_ASYNC_STATE_PROVIDER" }, oT = { message: "Missing timeItem", code: "ERR_MISSING_TIME_ITEM" }, sT = { message: "Missing timeItems", code: "ERR_MISSING_TIME_ITEMS" }, Cg = { message: "Missing context", code: "ERR_MISSING_CONTEXT" }, OM = { message: "Missing schedule", code: "ERR_MISSING_SCHEDULE" }, hc = { message: "Invalid scaleItem", code: "ERR_INVALID_SCALE_ITEM" }, FM = { message: "Modifications failed", code: "ERR_FAILURE_MODIFICATIONS" }, Tl = { message: "No modifications applied", code: "ERR_UNCHANGED_NO_MODIFICATIONS_APPLIED" }, _M = { message: "Unable to assign court", code: "ERR_UNCHANGED_COURT_NOT_ASSIGNED" }, Mg = { message: "No Candidates", code: "ERR_UNCHANGED_NO_CANDIDATES" }, LM = { message: "Invalid configuration", code: "ERR_INVALID_CONFIG" }, BM = { message: "Invalid collectionDefinition", code: "ERR_INVALID_COLLECTION_DEFINITION" }, Ha = { message: "Invalid object", code: "ERR_INVALID_OBJECT" }, Ud = { message: "Invalid gender", code: "ERR_INVALID_GENDER" }, Wd = { message: "Invalid category", code: "ERR_INVALID_CATEGORY" }, K = { message: "Invalid values", code: "ERR_INVALID_VALUES" }, $M = { message: "Duplicate value", code: "ERR_DUPLICATE_VALUE" }, cT = { message: "Team not found", code: "ERR_NOT_FOUND_TEAM" }, VM = { message: "No valid actions", code: "ERR_NO_VALID_ACTIONS" }, Rg = { message: "No valid attributes", code: "ERR_NO_VALID_ATTRIBUTES" }, uT = { message: "Value unchanged", code: "ABORT_UNCHANGED" }, cr = { message: "Not found", code: "ERR_NOT_FOUND" }, lT = { message: "Not implemented", code: "ERR_NOT_IMPLEMENTED" }, GM = { message: "Existing flight", code: "ERR_EXISTING_FLIGHT" }, dT = { message: "Existing flight profile", code: "ERR_EXISTING_FLIGHT_PROFILE" }, jM = { message: "Existing outcome", code: "ERR_EXISTING_OUTCOME" }, WM = { message: "Existing matchUpId", code: "ERR_EXISTING_MATCHUP_ID" }, IS = { message: "Existing stage", code: "ERR_EXISTING_STAGE" }, pT = { message: "Existing structure", code: "ERR_EXISTING_STRUCTURE" }, kg = { message: "Method not found", code: "ERR_NOT_FOUND_METHOD" }, qM = { message: "Scheduled matchUps", code: "ERR_SCHEDULED_MATCHUPS" }, _p = { message: "Scores present", code: "ERR_SCORES_PRESENT" }, Tj = { ANACHRONISM: uS, BOOKING_NOT_FOUND: gS, CANNOT_CHANGE_WINNING_SIDE: Ng, CANNOT_MODIFY_TIEFORMAT: Zb, CANNOT_MODIFY_PARTICIPANT_TYPE: fM, CANNOT_REMOVE_MAIN_STRUCTURE: RC, CANNOT_REMOVE_PARTICIPANTS: Eg, CATEGORY_MISMATCH: mM, COURT_EXISTS: NM, COURT_NOT_FOUND: ka, EXISTING_MATCHUPS: AM, DRAW_DEFINITION_NOT_FOUND: fi, DRAW_ID_EXISTS: LC, DRAW_POSITION_ACTIVE: Rp, DRAW_POSITION_ASSIGNED: ju, DRAW_POSITION_NOT_CLEARED: FC, DRAW_POSITION_NOT_FOUND: oj, DRAW_SIZE_MISMATCH: _C, DUPLICATE_ENTRY: jd, DUPLICATE_VALUE: $M, ENTRY_STATUS_NOT_ALLOWED_FOR_EVENT: DM, ENTRY_STATUS_NOT_ALLOWED_IN_STAGE: UM, EVENT_EXISTS: zC, EVENT_NOT_FOUND: Ni, EXISTING_DRAW_DEFINITIONS: kC, EXISTING_END_TIME: nT, EXISTING_FLIGHT: GM, EXISTING_MATCHUP_ID: WM, EXISTING_OUTCOME: jM, EXISTING_PARTICIPANT_DRAW_POSITION_ASSIGNMENT: bl, EXISTING_PARTICIPANT: Ag, EXISTING_POLICY_TYPE: Jb, EXISTING_PROFILE: dT, EXISTING_ROUND: HC, EXISTING_STAGE: IS, EXISTING_STRUCTURE: pT, INCOMPATIBLE_MATCHUP_STATUS: km, INCOMPLETE_SOURCE_STRUCTURE: Gb, INSUFFICIENT_DRAW_POSITIONS: rT, INVALID_ACTION: GC, INVALID_ASSIGNMENT: dS, INVALID_BOOKINGS: uh, INVALID_CATEGORY: Wd, INVALID_COLLECTION_DEFINITION: BM, INVALID_CONFIGURATION: LM, INVALID_DATE_AVAILABILITY: xm, INVALID_DATE: qt, INVALID_DRAW_DEFINITION: rc, INVALID_DRAW_POSITION_FOR_SEEDING: jb, INVALID_DRAW_POSITION: xc, INVALID_DRAW_SIZE: Tg, INVALID_END_TIME: MM, INVALID_ENTRIES: QC, INVALID_EVENT_TYPE: Zn, INVALID_GAME_SCORES: fS, INVALID_GENDER: Ud, INVALID_MATCHUP_FORMAT: tM, INVALID_MATCHUP_STATUS: vl, INVALID_MATCHUP_STATUS_BYE: eM, INVALID_MATCHUP: Yr, INVALID_OBJECT: Ha, INVALID_PARTICIPANT_ID: fn, INVALID_PARTICIPANT_IDS: ri, INVALID_PARTICIPANT_ROLE: hM, INVALID_PARTICIPANT_SEEDING: BC, INVALID_PARTICIPANT_TYPE: mn, INVALID_PARTICIPANT: cs, INVALID_POLICY_DEFINITION: aM, INVALID_RECORDS: lS, INVALID_SCALE_ITEM: hc, INVALID_SEED_NUMBER: WC, INVALID_SEED_POSITION: qC, INVALID_SET_NUMBER: fj, INVALID_SIDE_NUMBER: oM, INVALID_SCORE: pM, INVALID_STAGE: ws, INVALID_START_TIME: kM, INVALID_STRUCTURE: bs, INVALID_STOP_TIME: RM, INVALID_TIE_FORMAT: Yn, INVALID_TIME: Li, INVALID_TIME_ITEM: aT, INVALID_TOURNAMENT_DATES: dM, INVALID_TOURNAMENT_RECORD: Cp, INVALID_VALUES: K, INVALID_WINNING_SIDE: Pg, MATCHUP_NOT_FOUND: Sr, METHOD_NOT_FOUND: kg, MISSING_ASSIGNMENTS: Kb, MISSING_ASYNC_STATE_PROVIDER: xM, MISSING_AVOIDANCE_POLICY: nM, MISSING_BIRTH_DATE: sM, MISSING_COLLECTION_DEFINITION: iM, MISSING_COURT_ID: Fc, MISSING_COURTS_INFO: EM, MISSING_DATE_AVAILABILITY: lM, MISSING_DATE: cM, MISSING_DRAW_DEFINITION: he, MISSING_DRAW_ID: yn, MISSING_DRAW_POSITION: yl, MISSING_DRAW_POSITIONS: Mp, MISSING_DRAW_SIZE: kp, MISSING_ENTRIES: KC, MISSING_EVENT: gt, MISSING_QUALIFIED_PARTICIPANTS: IM, MISSING_MATCHUP_FORMAT: rM, MISSING_MATCHUP_ID: Er, MISSING_MATCHUP_IDS: Oc, MISSING_MATCHUP: Hr, MISSING_MATCHUPS: pa, MISSING_PARTICIPANT_COUNT: SM, MISSING_PARTICIPANT_ID: Ht, MISSING_PARTICIPANT_IDS: Mo, MISSING_PARTICIPANT_ROLE: gM, MISSING_PARTICIPANT: _c, MISSING_PARTICIPANTS: Fp, MISSING_PENALTY_ID: iT, MISSING_PENALTY_TYPE: PM, MISSING_PERSON_DETAILS: TM, MISSING_POLICY_ATTRIBUTES: Xb, MISSING_POLICY_DEFINITION: wg, MISSING_POLICY_TYPE: Qb, MISSING_POSITION_ASSIGNMENTS: ZC, MISSING_ROUND_NUMBER: cj, MISSING_SCHEDULE: OM, MISSING_SCORING_POLICY: pj, MISSING_SEED_ASSIGNMENTS: jC, MISSING_SEEDCOUNT_THRESHOLDS: VC, MISSING_SEEDING_POLICY: lj, MISSING_SET_NUMBER: mj, MISSING_SET_OBJECT: Ug, MISSING_SIDE_NUMBER: hj, MISSING_STAGE: XC, MISSING_STRUCTURE_ID: gi, MISSING_STRUCTURE: Ts, MISSING_MAIN_STRUCTURE: zb, MISSING_STRUCTURES: Yb, MISSING_TARGET_LINK: Hb, MISSING_TIE_FORMAT: Sl, MISSING_TIME_ITEM: oT, MISSING_TIME_ITEMS: sT, MISSING_TOURNAMENT_ID: Gu, MISSING_TOURNAMENT_RECORD: ie, MISSING_TOURNAMENT_RECORDS: Et, MISSING_VALUE: we, MISSING_VENUE_ID: Ro, MODIFICATIONS_FAILED: FM, NO_CANDIDATES: Mg, NO_DRAW_POSITIONS_AVAILABLE_FOR_QUALIFIERS: tT, NO_MODIFICATIONS_APPLIED: Tl, NO_STAGE_SPACE_AVAILABLE_FOR_ENTRY_STATUS: hS, NO_PARTICIPANT_REMOVED: vM, NO_VALID_ACTIONS: VM, NO_VALID_ATTRIBUTES: Rg, NO_VALID_DATES: uM, NOT_FOUND: cr, NOT_IMPLEMENTED: lT, PARTICIPANT_COUNT_EXCEEDS_DRAW_SIZE: eT, PARTICIPANT_ID_EXISTS: yM, PARTICIPANT_NOT_CHECKED_IN: bM, PARTICIPANT_NOT_FOUND: kt, PARTICIPANT_PAIR_EXISTS: yj, PENALTY_NOT_FOUND: Wu, POLICY_NOT_ATTACHED: dj, POLICY_NOT_FOUND: Op, SCHEDULE_NOT_CLEARED: xC, SCHEDULE_CONFLICT_DOUBLE_BOOKING: OC, SCHEDULED_MATCHUPS: qM, SCORES_PRESENT: _p, SEEDSCOUNT_GREATER_THAN_DRAW_SIZE: $C, STAGE_SEQUENCE_LIMIT: JC, STRUCTURE_NOT_FOUND: bt, TEAM_NOT_FOUND: cT, UNABLE_TO_ASSIGN_COURT: _M, UNLINKED_STRUCTURES: YC, UNRECOGNIZED_DRAW_TYPE: Wb, UNRECOGNIZED_MATCHUP_FORMAT: xp, UNRECOGNIZED_MATCHUP_STATUS: pS, VALUE_UNCHANGED: uT, VENUE_EXISTS: CM }, St = { disableNotifications: !1, tournamentId: void 0, tournamentRecords: {}, subscriptions: {}, modified: !1, methods: {}, notices: [] }, HM = { addNotice: xj, callListener: Bj, cycleMutationStatus: kj, deleteNotice: _j, deleteNotices: Fj, disableNotifications: wj, enableNotifications: Uj, getMethods: fT, getNotices: Oj, getTopics: Lj, getTournamentId: YM, getTournamentRecord: Dj, getTournamentRecords: Pj, removeTournamentRecord: Cj, setMethods: Rj, setSubscriptions: Mj, setTournamentId: Nj, setTournamentRecord: Ej, setTournamentRecords: Aj, handleCaughtError: $j };
|
|
2690
2690
|
function wj() {
|
|
2691
2691
|
St.disableNotifications = !0;
|
|
2692
2692
|
}
|
|
@@ -2936,7 +2936,7 @@ function di(e) {
|
|
|
2936
2936
|
function ea(e) {
|
|
2937
2937
|
return ["ANY", "A"].includes(e);
|
|
2938
2938
|
}
|
|
2939
|
-
function
|
|
2939
|
+
function vr(e) {
|
|
2940
2940
|
if (e) {
|
|
2941
2941
|
if (Jo(e)) return lr;
|
|
2942
2942
|
if (di(e)) return $c;
|
|
@@ -2951,7 +2951,7 @@ function En(e) {
|
|
|
2951
2951
|
var Yj = "MIXED events can not contain mixed singles or { gender: ANY } collections", zj = "events with { gender: ANY } can not contain MIXED singles collections";
|
|
2952
2952
|
function Bg(e) {
|
|
2953
2953
|
let t = "tieFormatGenderValidityCheck", { referenceGender: r, matchUpType: i, gender: n } = e;
|
|
2954
|
-
return r && n && En(r) &&
|
|
2954
|
+
return r && n && En(r) && vr(r) !== vr(n) ? $({ result: { valid: !1, error: Ud }, context: { gender: n }, stack: t }) : di(r) && (ea(n) || di(n) && i !== at) ? $({ result: { error: Ud, valid: !1 }, info: Yj, stack: t }) : ea(r) && di(n) && i !== at ? $({ result: { error: Ud, valid: !1 }, info: zj, stack: t }) : { valid: !0 };
|
|
2955
2955
|
}
|
|
2956
2956
|
var Kj = "normal", VE = "timed", Qj = "final", yT = "NOAD", nR = ["SET", "HAL", "QTR", "PER", "INN", "RND", "FRM", "MAP", "MAT"], aR = "CONSECUTIVE", oR = "TRADITIONAL", Xj = { S: Kj, F: Qj, G: "game" };
|
|
2957
2957
|
function $g(e, t) {
|
|
@@ -3427,7 +3427,7 @@ var gR = { collectionDefinitions: [{ collectionName: "Male Singles", matchUpForm
|
|
|
3427
3427
|
return o.hydrate ? (i = { winCriteria: { valueGoal: o.valueGoal }, collectionDefinitions: [{ collectionId: s(0), matchUpFormat: PR, collectionName: "Doubles", matchUpType: at, ...o.doubles }, { collectionId: s(1), matchUpFormat: Wi, collectionName: "Singles", matchUpType: ct, ...o.singles }] }, o.tieFormatName && (i.tieFormatName = o.tieFormatName)) : (o.collectionDefinitions.forEach((c, u) => c.collectionId = s(u)), i = o), e?.hydrateCollections && i.collectionDefinitions.forEach((c) => {
|
|
3428
3428
|
n && !c.category && (c.category = n), a && !c.gender && (c.gender = a);
|
|
3429
3429
|
}), i;
|
|
3430
|
-
}, Oa = kW, An = "SINGLES", gc = "SINGLES", Ai = "DOUBLES", Fa = "DOUBLES", Wt = "TEAM", ni = "TEAM", xW = "RATING", OW = "BOTH", FW = { AGE: "AGE", BOTH: OW, DOUBLES: Ai, DOUBLES_EVENT: Fa, RATING: xW, SINGLES: An, SINGLES_EVENT: gc, TEAM_EVENT: ni, TEAM: Wt }, de = "MAIN", Se = "QUALIFYING", mr = "CONSOLATION", ir = "VOLUNTARY_CONSOLATION", Ut = "PLAY_OFF", Vg = [de, Se, mr, Ut, ir], Ic = { [Se]: 1, [de]: 2, [Ut]: 3, [mr]: 3, [ir]: 4 }, JR = "finishingPositions", ZR = "aggregateEventStructures", e1 = { [de]: 1, [Ut]: 2, [mr]: 3, [Se]: 4, [ir]: 5 }, _W = { [Ut]: 1, [de]: 2, [mr]: 3, [Se]: 4, [ir]: 5 }, Gp = "CLUSTER", Gg = "ADJACENT", t1 = "SEPARATE", ls = "WATERFALL", jg = "ITEM",
|
|
3430
|
+
}, Oa = kW, An = "SINGLES", gc = "SINGLES", Ai = "DOUBLES", Fa = "DOUBLES", Wt = "TEAM", ni = "TEAM", xW = "RATING", OW = "BOTH", FW = { AGE: "AGE", BOTH: OW, DOUBLES: Ai, DOUBLES_EVENT: Fa, RATING: xW, SINGLES: An, SINGLES_EVENT: gc, TEAM_EVENT: ni, TEAM: Wt }, de = "MAIN", Se = "QUALIFYING", mr = "CONSOLATION", ir = "VOLUNTARY_CONSOLATION", Ut = "PLAY_OFF", Vg = [de, Se, mr, Ut, ir], Ic = { [Se]: 1, [de]: 2, [Ut]: 3, [mr]: 3, [ir]: 4 }, JR = "finishingPositions", ZR = "aggregateEventStructures", e1 = { [de]: 1, [Ut]: 2, [mr]: 3, [Se]: 4, [ir]: 5 }, _W = { [Ut]: 1, [de]: 2, [mr]: 3, [Se]: 4, [ir]: 5 }, Gp = "CLUSTER", Gg = "ADJACENT", t1 = "SEPARATE", ls = "WATERFALL", jg = "ITEM", wr = "CONTAINER", $i = "DRAW", Wg = "RANDOM", Vi = "TOP_DOWN", ds = "BOTTOM_UP", ra = "POSITION", ia = "WINNER", na = "LOSER", Cn = "FIRST_MATCHUP", Kr = "AD_HOC", LW = "AD_HOC", Ul = "FEED_IN", zu = "COMPASS", Ku = "OLYMPIC", BW = "SINGLE_ELIMINATION", Un = "SINGLE_ELIMINATION", jp = "DOUBLE_ELIMINATION", Qu = "FIRST_MATCH_LOSER_CONSOLATION", Wp = "FIRST_ROUND_LOSER_CONSOLATION", Ds = "LUCKY_DRAW", qg = "CURTIS_CONSOLATION", $W = "CURTIS_CONSOLATION", UT = "FEED_IN_CHAMPIONSHIP_TO_SF", Xd = "FEED_IN_CHAMPIONSHIP_TO_SF", DT = "FEED_IN_CHAMPIONSHIP_TO_QF", Jd = "FEED_IN_CHAMPIONSHIP_TO_QF", PT = "FEED_IN_CHAMPIONSHIP_TO_R16", Zd = "FEED_IN_CHAMPIONSHIP_TO_R16", r1 = "MODIFIED_FEED_IN_CHAMPIONSHIP", ep = "MODIFIED_FEED_IN_CHAMPIONSHIP", qp = "FEED_IN_CHAMPIONSHIP", VW = "DOUBLE_ROUND_ROBIN", Qi = "ROUND_ROBIN", aa = "ROUND_ROBIN_WITH_PLAYOFF", i1 = "DECIDER", n1 = "BACKDRAW", ET = { 0: { name: "East", abbreviation: "E" }, "0-1": { name: "West", abbreviation: "W" }, "0-2": { name: "North", abbreviation: "N" }, "0-3": { name: "Northeast", abbreviation: "NE" }, "0-1-1": { name: "South", abbreviation: "S" }, "0-1-2": { name: "Southwest", abbreviation: "SW" }, "0-2-1": { name: "Northwest", abbreviation: "NW" }, "0-1-1-1": { name: "Southeast", abbreviation: "SE" } }, NT = { 0: { name: "East", abbreviation: "E" }, "0-1": { name: "West", abbreviation: "W" }, "0-2": { name: "North", abbreviation: "N" }, "0-1-1": { name: "South", abbreviation: "S" } }, ps = "WIN_RATIO", Gc = "ROUND_OUTCOME", a1 = [zu, qg, Jd, Zd, Xd, qp, DT, PT, UT, Qu, Wp, Ds, ep, Ku, Ut, aa], GW = [Kr, zu, qg, jp, Jd, Zd, Xd, qp, Ul, Qu, Wp, Ds, ep, Ku, Ut, Qi, aa, Un], AT = { MAIN: de, QUALIFYING: Se, CONSOLATION: mr, ITEM: jg, CONTAINER: wr, FIRST_MATCHUP: Cn, WINNER: ia, LOSER: na, AD_HOC: Kr, FEED_IN: Ul, FLEX_ROUNDS: LW, COMPASS: zu, PLAY_OFF: Ut, OLYMPIC: Ku, KNOCKOUT: BW, SINGLE_ELIMINATION: Un, DOUBLE_ELIMINATION: jp, CURTIS: qg, FICSF: UT, FICQF: DT, FICR16: PT, MFIC: r1, VOLUNTARY_CONSOLATION: ir, FIRST_MATCH_LOSER_CONSOLATION: Qu, FIRST_ROUND_LOSER_CONSOLATION: Wp, MODIFIED_FEED_IN_CHAMPIONSHIP: ep, FEED_IN_CHAMPIONSHIP_TO_R16: Zd, FEED_IN_CHAMPIONSHIP_TO_QF: Jd, FEED_IN_CHAMPIONSHIP_TO_SF: Xd, FEED_IN_CHAMPIONSHIP: qp, LUCKY_DRAW: Ds, ROUND_ROBIN_WITH_PLAYOFF: aa, ROUND_ROBIN: Qi, DECIDER: i1, BACKDRAW: n1, COMPASS_ATTRIBUTES: ET, OLYMPIC_ATTRIBUTES: NT, DRAW: $i, RANDOM: Wg, TOP_DOWN: Vi, BOTTOM_UP: ds, CLUSTER: Gp, ADJACENT: Gg, SEPARATE: t1, WATERFALL: ls, WIN_RATIO: ps, ROUND_OUTCOME: Gc, MULTI_STRUCTURE_DRAWS: a1, generatedDrawTypes: GW, stageOrder: Ic, finishOrder: e1, AGGREGATE_EVENT_STRUCTURES: ZR, FINISHING_POSITIONS: JR }, jW = AT, br = "tournamentRecords", CT = "policyDefinitions", Kt = "tournamentRecord", MT = "onlineResource", Ur = "drawDefinition", o1 = "tieFormatName", RT = "matchUpFormat", oa = "participantId", s1 = "scheduleDates", WW = "tournamentId", qW = "scheduleDate", HW = "roundNumber", Hg = "structureId", kT = "participant", Hp = "matchUpIds", c1 = "entryStage", YW = "policyType", u1 = "structures", xT = "eventType", _n = "matchUpId", Yg = "tieFormat", zg = "inContext", Kg = "structure", Qg = "courtIds", zW = "personId", Xg = "venueIds", OT = "matchUps", l1 = "courtId", d1 = "eventId", fa = "matchUp", p1 = "drawId", qi = "error", Ya = "event", Dl = "param", FT = "uuids", KW = "averageMatchUpMinutes", QW = "recoveryMinutes", XW = "periodLength", JW = "number", jr = "object", Ir = "array", dr = "_validate", f1 = "_message", hi = "_invalid", Vr = "_ofType", _T = "_anyOf", Xu = "_oneOf", HE = { [MT]: (e) => Ct(Object.keys(e), [hh, gh, Yu]).length === 3, [o1]: (e) => e && Oa({ namedFormat: e }), [FT]: (e) => !e || Array.isArray(e) && e.every(mt), [Yg]: (e) => !Lr({ tieFormat: e }).error, [xT]: (e) => [An, Ai, Wt].includes(e), [c1]: (e) => Vg.includes(e) }, ZW = { [br]: Et, [Kt]: ie, [CT]: wg, [Ur]: he, [oa]: Ht, [RT]: rM, [WW]: Gu, [Hg]: gi, [Hp]: Oc, [kT]: _c, [MT]: Ha, [xT]: Zn, [u1]: Yb, [_n]: Er, [Yg]: Yn, [Kg]: Ts, [l1]: Fc, [OT]: pa, [d1]: Ni, [fa]: Hr, [Qg]: we, [Xg]: we, [p1]: yn, [Ya]: gt }, eq = { [br]: jr, [CT]: jr, [Kt]: jr, [Ur]: jr, [MT]: jr, [s1]: Ir, [kT]: jr, [Hp]: Ir, [u1]: Ir, [Yg]: jr, [Kg]: jr, [Qg]: Ir, [Xg]: Ir, [OT]: Ir, [fa]: jr, [Ya]: jr, [FT]: Ir };
|
|
3431
3431
|
function ve(e, t, r) {
|
|
3432
3432
|
if (!e && !qe(e)) return { error: K };
|
|
3433
3433
|
if (!t?.length || e?._bypassParamCheck) return { valid: !0 };
|
|
@@ -3680,7 +3680,7 @@ function bh(e) {
|
|
|
3680
3680
|
}, void 0);
|
|
3681
3681
|
}
|
|
3682
3682
|
function De(e) {
|
|
3683
|
-
let t = ve(e, [{ [
|
|
3683
|
+
let t = ve(e, [{ [Ur]: !0, [Hg]: !0 }]);
|
|
3684
3684
|
if (t.error) return t;
|
|
3685
3685
|
let { drawDefinition: r, structureId: i } = e, { structures: n } = Ji({ drawDefinition: r }), a = n?.flatMap((c) => c.structures ? [...c.structures].concat(c) : c), o = a?.find((c) => c.structureId === i);
|
|
3686
3686
|
if (!o) return { error: bt };
|
|
@@ -4082,7 +4082,7 @@ function $q({ provisionalPositioning: e, drawDefinition: t, structureId: r }) {
|
|
|
4082
4082
|
let i = [], n = (t.links ?? []).find((a) => a.linkType === ra && a.target.structureId === r);
|
|
4083
4083
|
if (n) {
|
|
4084
4084
|
let { finishingPositions: a, structureId: o } = n.source, { structure: s } = De({ drawDefinition: t, structureId: o });
|
|
4085
|
-
s?.structureType ===
|
|
4085
|
+
s?.structureType === wr && (s.structures ?? []).forEach((c) => {
|
|
4086
4086
|
let u = c.positionAssignments ?? [], { structureId: l } = c, d = l, p = Object.assign({}, ...u.map((h) => {
|
|
4087
4087
|
let { participantId: g } = h, I = $e({ element: h, name: $a }).extension?.value;
|
|
4088
4088
|
return I && g ? { [g]: I } : void 0;
|
|
@@ -5351,7 +5351,7 @@ function Si({ provisionalPositioning: e, isPositionAction: t, tournamentRecord:
|
|
|
5351
5351
|
let y = ze({ tournamentRecord: r, drawDefinition: i, event: u }).appliedPolicies ?? {}, S = Vt({ inContext: !0, drawDefinition: i, matchUpsMap: o }).matchUps ?? [], v = { isCollectionMatchUp: !1 }, { matchUps: b } = Je({ provisionalPositioning: e, drawDefinition: i, matchUpFilters: v, matchUpsMap: o, structure: c });
|
|
5352
5352
|
if (d?.forEach((P) => {
|
|
5353
5353
|
P.drawPosition === n && (P.bye = !0, f && (P.participantId = void 0));
|
|
5354
|
-
}), c.structureType ===
|
|
5354
|
+
}), c.structureType === wr) return LH({ tournamentRecord: r, drawDefinition: i, drawPosition: n, matchUps: b }), Va({ tournamentId: r?.tournamentId, drawDefinition: i, structure: c, event: u }), KE({ assignedParticipantId: I, isPositionAction: t, appliedPolicies: y, drawDefinition: i, drawPosition: n, structureId: s, stack: l });
|
|
5355
5355
|
let { roundProfile: T, roundMatchUps: w } = Pr({ matchUps: b }), U = (T && Object.keys(T).map((P) => Number.parseInt(P)).reverse())?.find((P) => T?.[P].drawPositions?.includes(n)), E = U ? w?.[U].find(({ drawPositions: P }) => P?.includes(n)) : void 0;
|
|
5356
5356
|
E && bk({ tournamentRecord: r, drawDefinition: i, matchUp: E, event: u });
|
|
5357
5357
|
let D = E?.drawPositions?.find((P) => P !== n);
|
|
@@ -5433,7 +5433,7 @@ function kS({ inContextDrawMatchUps: e, tournamentRecord: t, drawDefinition: r,
|
|
|
5433
5433
|
let c = Yt({ drawDefinition: r, structure: s }).positionAssignments || [], u = c.some((I) => {
|
|
5434
5434
|
if (I.drawPosition === i) return delete I.participantId, delete I.qualifier, delete I.bye, !0;
|
|
5435
5435
|
});
|
|
5436
|
-
if (s.structureType ===
|
|
5436
|
+
if (s.structureType === wr) return wk({ positionAssignments: c, tournamentRecord: t, drawDefinition: r, matchUpsMap: n, structure: s }), { drawPositionCleared: u, ...L };
|
|
5437
5437
|
let l = { isCollectionMatchUp: !1 }, { matchUps: d } = Je({ drawDefinition: r, matchUpFilters: l, matchUpsMap: n, structure: s, event: o }), { roundProfile: p, roundMatchUps: f } = Pr({ matchUps: d }), m = (p && Object.keys(p))?.map((I) => be(I)), h = i, g = m?.map((I) => {
|
|
5438
5438
|
let y = p?.[I]?.pairedDrawPositions?.find((D) => D.includes(h)), S = y?.find((D) => D !== h), v = c.find((D) => D.drawPosition === S), b = p?.[I + 1], T = v?.bye, w = b?.pairedDrawPositions?.find((D) => D.includes(S)), U = T && w && b && b.drawPositions?.includes(S), E = y && { pairedDrawPositionByeAdvancedPair: !U && w, pairedDrawPosition: S, targetDrawPosition: h, relevantPair: y, roundNumber: I };
|
|
5439
5439
|
return U && (h = S), E;
|
|
@@ -5449,7 +5449,7 @@ function kS({ inContextDrawMatchUps: e, tournamentRecord: t, drawDefinition: r,
|
|
|
5449
5449
|
function $H({ inContextDrawMatchUps: e, targetDrawPosition: t, tournamentRecord: r, drawDefinition: i, matchUpsMap: n, roundNumber: a, structureId: o }) {
|
|
5450
5450
|
let { structure: s } = De({ drawDefinition: i, structureId: o });
|
|
5451
5451
|
if (!s) return { error: bt };
|
|
5452
|
-
if (s.structureType ===
|
|
5452
|
+
if (s.structureType === wr) return;
|
|
5453
5453
|
n = n || or({ drawDefinition: i });
|
|
5454
5454
|
let c = (n?.mappedMatchUps || {})[o].matchUps, { initialRoundNumber: u } = bc({ drawPosition: t, matchUps: c }), l = c?.filter((p) => p.roundNumber >= a && p.roundNumber !== u && p.drawPositions?.includes(t)), d = lt({ drawDefinition: i, structureId: o }).positionAssignments ?? [];
|
|
5455
5455
|
return l?.forEach((p) => Uk({ drawPosition: t, targetMatchUp: p, inContextDrawMatchUps: e, positionAssignments: d, tournamentRecord: r, drawDefinition: i, matchUpsMap: n, structure: s })), { ...L };
|
|
@@ -6191,7 +6191,7 @@ function u3(e) {
|
|
|
6191
6191
|
}
|
|
6192
6192
|
let x = {};
|
|
6193
6193
|
if (d) for (let [k, _] of Object.entries(M)) {
|
|
6194
|
-
let { drawDefinition: O, drawId: F } = _, B = O.structures?.find((G) => G.structureType ===
|
|
6194
|
+
let { drawDefinition: O, drawId: F } = _, B = O.structures?.find((G) => G.structureType === wr && G.stage === de && G.stageSequence === 1);
|
|
6195
6195
|
if (!B?.structures) continue;
|
|
6196
6196
|
let W = B.structures, V = W.length, H = W.reduce((G, q) => G + (q.positionAssignments?.length || 0), 0), j = O.structures?.find((G) => G.stage === Ut);
|
|
6197
6197
|
x[F] || (x[F] = {});
|
|
@@ -6410,7 +6410,7 @@ function y3({ relevantLinks: e, drawDefinition: t, provisionalPositioning: r, ro
|
|
|
6410
6410
|
let o = De({ structureId: a.source.structureId, drawDefinition: t })?.structure;
|
|
6411
6411
|
if (o?.stage === Se) {
|
|
6412
6412
|
let s = a.source.roundNumber, c = a.target.roundNumber, u;
|
|
6413
|
-
if (o.structureType ===
|
|
6413
|
+
if (o.structureType === wr) {
|
|
6414
6414
|
let l = o.structures?.length ?? 0, d = a.source.finishingPositions?.length ?? 0;
|
|
6415
6415
|
u = l * d;
|
|
6416
6416
|
} else u = Je({ matchUpFilters: { roundNumbers: [s] }, structure: o, afterRecoveryTimes: !1, provisionalPositioning: r, inContext: !1 }).matchUps?.length || 0;
|
|
@@ -6450,7 +6450,7 @@ function jk({ entryStatus: e = Qr, drawDefinition: t, stageSequence: r, stage: i
|
|
|
6450
6450
|
return i !== ir && u ? { error: hS } : e === el ? o < a ? { ...L } : { error: hS } : { positionsAvailable: l, ...L };
|
|
6451
6451
|
}
|
|
6452
6452
|
function Cw(e) {
|
|
6453
|
-
let t = ve(e, [{ [
|
|
6453
|
+
let t = ve(e, [{ [Ur]: !0, [c1]: !0 }]);
|
|
6454
6454
|
if (t.error) return t;
|
|
6455
6455
|
let { suppressDuplicateEntries: r = !0, entryStatus: i = Qr, entryStageSequence: n, entryStage: a = de, ignoreStageSpace: o, drawDefinition: s, entryPosition: c, participant: u, roundTarget: l, extensions: d, extension: p, drawType: f, event: m } = e, h = "addDrawEntry";
|
|
6456
6456
|
if (f !== Kr && !Gk({ stage: a, drawDefinition: s })) return $({ result: { error: ws }, stack: h });
|
|
@@ -6526,7 +6526,7 @@ function yf({ autoEntryPositions: e = !0, participantIds: t = [], entryStatuses:
|
|
|
6526
6526
|
}
|
|
6527
6527
|
var Wk = { [nr]: { policyName: "matchUpActionsDefault", enabledStructures: [{ stages: [], stageSequences: [], enabledActions: [], disabledActions: [] }], participants: { enforceCategory: !0, enforceGender: !0 }, processCodes: { substitution: ["RANKING.IGNORE", "RATING.IGNORE"] }, substituteAfterCompleted: !1, substituteWithoutScore: !1 } }, Ol = Wk;
|
|
6528
6528
|
function b3(e, t, r, i) {
|
|
6529
|
-
return t.gender && r && !(di(t.gender) || ea(t.gender)) &&
|
|
6529
|
+
return t.gender && r && !(di(t.gender) || ea(t.gender)) && vr(t.gender) !== vr(e.person?.sex) ? (i.push({ participantId: e.participantId, sex: e.person?.sex }), !1) : !0;
|
|
6530
6530
|
}
|
|
6531
6531
|
function T3({ participantIds: e, typedParticipantIds: t, checkTypedParticipants: r }) {
|
|
6532
6532
|
return e.filter((i) => !r || t.includes(i));
|
|
@@ -6539,12 +6539,12 @@ function w3({ tournamentRecord: e, participantIds: t, event: r, entryStatus: i,
|
|
|
6539
6539
|
return d.eventType === at && l.participantType === Be && !es(p);
|
|
6540
6540
|
}
|
|
6541
6541
|
function c(l, d, p, f, m) {
|
|
6542
|
-
return d.eventType === at && l.participantType === Ge && es(p) ? d.gender && f && !(di(d.gender) || ea(d.gender)) &&
|
|
6542
|
+
return d.eventType === at && l.participantType === Ge && es(p) ? d.gender && f && !(di(d.gender) || ea(d.gender)) && vr(d.gender) !== vr(l.person?.sex) ? (m.push({ participantId: l.participantId, sex: l.person?.sex }), !1) : !0 : !1;
|
|
6543
6543
|
}
|
|
6544
6544
|
function u(l, d, p) {
|
|
6545
6545
|
return d.eventType === nt && (l.participantType === nt || es(p) && l.participantType === Ge);
|
|
6546
6546
|
}
|
|
6547
|
-
return e?.participants?.filter((l) => t.includes(l.participantId) ? o(l, r, i) && (!r.gender || !n || di(r.gender) || ea(r.gender) ||
|
|
6547
|
+
return e?.participants?.filter((l) => t.includes(l.participantId) ? o(l, r, i) && (!r.gender || !n || di(r.gender) || ea(r.gender) || vr(r.gender) === vr(l.person?.sex)) || s(l, r, i) || c(l, r, i, n, a) ? !0 : o(l, r, i) && !b3(l, r, n, a) ? !1 : u(l, r, i) : !1).map((l) => l.participantId) ?? [];
|
|
6548
6548
|
}
|
|
6549
6549
|
function U3({ typedParticipantIds: e, categoryRejections: t, tournamentRecord: r, startDate: i, endDate: n, event: a }) {
|
|
6550
6550
|
let o = [];
|
|
@@ -6847,7 +6847,7 @@ function vf(e) {
|
|
|
6847
6847
|
w = Array.isArray(P) ? Math.max(...P.map(({ roundNumber: C }) => C ?? 0)) : 0;
|
|
6848
6848
|
let N = f?.[D - 1] ?? `${r} ${D}`;
|
|
6849
6849
|
return yo({ structureId: y?.pop(), hasExistingDrawDefinition: t, structureType: jg, finishingPosition: T, qualifyingOnly: s, structureOrder: D, structureName: N, tieFormat: m, matchUps: P });
|
|
6850
|
-
}), E = yo({ structureId: p ?? y?.pop(), hasExistingDrawDefinition: t, structureType:
|
|
6850
|
+
}), E = yo({ structureId: p ?? y?.pop(), hasExistingDrawDefinition: t, structureType: wr, finishingPosition: T, seedingProfile: c, structureName: S, stageSequence: n, structures: U, tieFormat: m, stage: u });
|
|
6851
6851
|
return d && tt({ extension: { name: Ln, value: d }, element: E }), { structures: [E], maxRoundNumber: w, groupCount: v, links: [], groupSize: b, ...L };
|
|
6852
6852
|
}
|
|
6853
6853
|
function W3({ appliedPolicies: e, structureOptions: t, drawSize: r }) {
|
|
@@ -6945,7 +6945,7 @@ function eu({ provisionalPositioning: e, returnAllProxies: t, appliedPolicies: r
|
|
|
6945
6945
|
return m = m.concat(...x), k;
|
|
6946
6946
|
}).filter((R) => R.length).reverse(), g = h.pop() ?? [], I = g && Math.min(...g) - 1 || 0;
|
|
6947
6947
|
i = i ?? r?.seeding?.seedingProfile;
|
|
6948
|
-
let y = g?.length || 0, S = h.filter((R) => R.filter((x) => x <= f).length), { stage: v, structureType: b, roundLimit: T } = o, w = b ===
|
|
6948
|
+
let y = g?.length || 0, S = h.filter((R) => R.filter((x) => x <= f).length), { stage: v, structureType: b, roundLimit: T } = o, w = b === wr, U = !w && h?.length, E = !w && v === Se && T, D = S.flat(1 / 0), P = U ? D?.length : 0, N = a ? p : f, C = mw({ drawDefinition: n, structure: o, matchUps: c }), A = C ? 0 : !U && N || N && D.length < N && N - D.length || 0;
|
|
6949
6949
|
if (E) {
|
|
6950
6950
|
let R = o?.matchUps ? o.matchUps.filter(({ roundNumber: k }) => k === o.roundLimit).length : 0, x = g.length / R;
|
|
6951
6951
|
if (!U) {
|
|
@@ -7197,7 +7197,7 @@ function Rn({ provisionalPositioning: e, inContextDrawMatchUps: t, isQualifierPo
|
|
|
7197
7197
|
Fl({ eventId: p?.eventId, provisionalPositioning: e, tournamentRecord: n, drawDefinition: a, seedingProfile: o, participantId: P, seedNumber: N, seedValue: C, structureId: d, event: p });
|
|
7198
7198
|
}
|
|
7199
7199
|
}
|
|
7200
|
-
if (h.structureType ===
|
|
7200
|
+
if (h.structureType === wr) {
|
|
7201
7201
|
wk({ positionAssignments: S, tournamentRecord: n, drawDefinition: a, matchUpsMap: l, structure: h });
|
|
7202
7202
|
let { drawPositions: E, matchUps: D, targetMatchUps: P } = sx({ assignments: [v], inContextDrawMatchUps: t, drawDefinition: a, matchUpsMap: l, structure: h });
|
|
7203
7203
|
if (E && D?.length === 1 && D[0].matchUpType === pt) {
|
|
@@ -7553,7 +7553,7 @@ function dY({ provisionalPositioning: e, unseededParticipantIds: t, inContextDra
|
|
|
7553
7553
|
let F = zG(h) || 0, B = S.reduce((W, V) => V.roundNumber > W ? V.roundNumber : W, 0);
|
|
7554
7554
|
g = B < F ? 1 : B - F + 1;
|
|
7555
7555
|
}
|
|
7556
|
-
let { positionAssignments: v } = Yt({ structure: y }), b = oI({ participantsProfile: { convertExtensions: !0 }, deepCopy: !1, participants: s }).participantsWithGroupings, T = v?.filter((F) => !F.participantId), w = v?.map((F) => F.drawPosition), U = y?.structureType ===
|
|
7556
|
+
let { positionAssignments: v } = Yt({ structure: y }), b = oI({ participantsProfile: { convertExtensions: !0 }, deepCopy: !1, participants: s }).participantsWithGroupings, T = v?.filter((F) => !F.participantId), w = v?.map((F) => F.drawPosition), U = y?.structureType === wr, E = U ? { structure: y, matchUps: S, allDrawPositions: w, roundsToSeparate: g } : { matchUps: S, allDrawPositions: w, roundsToSeparate: g }, { drawPositionGroups: D, drawPositionChunks: P } = U ? pY(E) : fY(E), N = { groupParticipants: s.filter((F) => F.participantType === Ii).map((F) => F.participantId), teamParticipants: s.filter((F) => F.participantType === nt).map((F) => F.participantId), pairParticipants: s.filter((F) => F.participantType === Be).map((F) => F.participantId) }, C = Z3({ targetParticipantIds: t, policyAttributes: m, idCollections: N, participants: s });
|
|
7557
7557
|
if (C.error) return $({ result: C, stack: I });
|
|
7558
7558
|
let A = Object.assign({}, ...t.map((F) => {
|
|
7559
7559
|
let B = Object.keys(C).filter((W) => (C[W] ?? []).includes(F));
|
|
@@ -7711,7 +7711,7 @@ function c0({ orderedSeedDrawPositions: e, relevantMatchUps: t }) {
|
|
|
7711
7711
|
return e.map((i) => r.find((n) => n?.includes(i))).filter(Boolean).map((i) => i?.reduce((n, a) => e.includes(a) ? n : a, void 0)).filter(Boolean);
|
|
7712
7712
|
}
|
|
7713
7713
|
function PY({ provisionalPositioning: e, seedOrderByePositions: t, isLuckyStructure: r, appliedPolicies: i, drawDefinition: n, seedLimit: a, structure: o, isFeedIn: s }) {
|
|
7714
|
-
let c = i?.seeding?.seedingProfile, u = o.stage === Se, { positionAssignments: l } = Yt({ structure: o }), d = l?.filter((M) => M.participantId).map((M) => M.drawPosition), p = { isCollectionMatchUp: !1 }, { matchUps: f, roundMatchUps: m } = Je({ provisionalPositioning: e, matchUpFilters: p, structure: o }), h = m?.[1] || [], g = o.structureType ===
|
|
7714
|
+
let c = i?.seeding?.seedingProfile, u = o.stage === Se, { positionAssignments: l } = Yt({ structure: o }), d = l?.filter((M) => M.participantId).map((M) => M.drawPosition), p = { isCollectionMatchUp: !1 }, { matchUps: f, roundMatchUps: m } = Je({ provisionalPositioning: e, matchUpFilters: p, structure: o }), h = m?.[1] || [], g = o.structureType === wr ? f : h, I = Me([].concat(...g.map((M) => M.drawPositions))), y = Math.min(...I) - 1, S = d?.filter((M) => I.includes(M)), v = (M) => {
|
|
7715
7715
|
let R = Math.ceil(M.length / 2), x = [M.slice(0, R), M.slice(R)], k = x.map((j) => [].concat(...j.flat(1 / 0)).length), _ = Math.min(...k.flat(1 / 0)), O = Math.max(...k.flat(1 / 0)), F = k.indexOf(O), B = _ !== O, W = Cr(x), [V, H] = !_ || B ? [x[F], x[1 - F]] : [W[0], W[1]];
|
|
7716
7716
|
return { greaterHalf: V, lesserHalf: H };
|
|
7717
7717
|
}, b = (M) => {
|
|
@@ -7737,14 +7737,14 @@ function PY({ provisionalPositioning: e, seedOrderByePositions: t, isLuckyStruct
|
|
|
7737
7737
|
return { unseededByePositions: A };
|
|
7738
7738
|
}
|
|
7739
7739
|
function EY({ provisionalPositioning: e, drawDefinition: t, matchUpsMap: r, structure: i, event: n }) {
|
|
7740
|
-
let a = { isCollectionMatchUp: !1 }, { matchUps: o, roundMatchUps: s } = Je({ afterRecoveryTimes: !1, provisionalPositioning: e, drawDefinition: t, matchUpFilters: a, matchUpsMap: r, structure: i, event: n }), c = s?.[1] || [], u = i?.structureType ===
|
|
7740
|
+
let a = { isCollectionMatchUp: !1 }, { matchUps: o, roundMatchUps: s } = Je({ afterRecoveryTimes: !1, provisionalPositioning: e, drawDefinition: t, matchUpFilters: a, matchUpsMap: r, structure: i, event: n }), c = s?.[1] || [], u = i?.structureType === wr, l = u ? o : c, d = u ? i?.structures?.length || 0 : o.length, { structureId: p, stage: f, stageSequence: m } = i, h = qc({ entryStatuses: rn, provisionalPositioning: e, drawDefinition: t, stageSequence: m, structureId: p, stage: f }), { qualifiersCount: g } = xl({ provisionalPositioning: e, drawDefinition: t, stageSequence: m, structureId: p, stage: f }), I = h.length + g, { positionAssignments: y, unassignedPositions: S } = Yt({ structure: i }), v = S?.map((D) => D.drawPosition), b = y?.filter((D) => D.bye).length, T = y?.filter((D) => D.bye).map((D) => D.drawPosition), w = l.map((D) => D.drawPositions).filter((D) => D?.reduce((P, N) => !T?.includes(N) && P, !0)).flat(1 / 0).filter((D) => v?.includes(D)), U = y?.length, E = U ? U - I : 0;
|
|
7741
7741
|
return E > d && i.stageSequence === 1 && i.stage !== mr && (E = d), { placedByes: b, byesCount: E, relevantMatchUps: l, placedByePositions: T, roundMatchUps: s, positionsToAvoidDoubleBye: w };
|
|
7742
7742
|
}
|
|
7743
7743
|
function Sx({ provisionalPositioning: e, tournamentRecord: t, appliedPolicies: r, drawDefinition: i, seedBlockInfo: n, seedingProfile: a, matchUpsMap: o, structureId: s, structure: c, seedLimit: u, seedsOnly: l, event: d }) {
|
|
7744
7744
|
c || ({ structure: c } = De({ drawDefinition: i, structureId: s })), s || (s = c?.structureId);
|
|
7745
7745
|
let p = !(c?.structures ?? c?.stage === Se), { byesCount: f, placedByes: m, relevantMatchUps: h } = EY({ provisionalPositioning: e, drawDefinition: i, matchUpsMap: o, structure: c, event: d }), g = f - (m || 0);
|
|
7746
7746
|
if (g <= 0) return { ...L };
|
|
7747
|
-
let { strictSeedOrderByePositions: I, blockSeedOrderByePositions: y, isLuckyStructure: S, isFeedIn: v } = DY({ provisionalPositioning: e, relevantMatchUps: h, appliedPolicies: r, drawDefinition: i, seedingProfile: a, seedBlockInfo: n, byesToPlace: g, structure: c }), b = c?.structureType && [
|
|
7747
|
+
let { strictSeedOrderByePositions: I, blockSeedOrderByePositions: y, isLuckyStructure: S, isFeedIn: v } = DY({ provisionalPositioning: e, relevantMatchUps: h, appliedPolicies: r, drawDefinition: i, seedingProfile: a, seedBlockInfo: n, byesToPlace: g, structure: c }), b = c?.structureType && [wr, jg].includes(c.structureType) && r?.seeding?.containerByesIgnoreSeeding, T = p && y?.length ? y : I, { unseededByePositions: w } = PY({ provisionalPositioning: e, seedOrderByePositions: T, isLuckyStructure: S, appliedPolicies: r, drawDefinition: i, seedLimit: u, structure: c, isFeedIn: v }), U = (N) => N % 2, E = (N, C) => (N || []).every((A) => U(A) ? C !== A + 1 : C !== A - 1), D = [].concat(...T);
|
|
7748
7748
|
if (!l) for (; w.length; ) {
|
|
7749
7749
|
let N = w.find((C) => E(D, C));
|
|
7750
7750
|
N ? (D.push(N), w = w.filter((C) => C !== N)) : (D.push(...w), w = []);
|
|
@@ -7872,7 +7872,7 @@ var kY = (e, t) => {
|
|
|
7872
7872
|
return [...a, ...o];
|
|
7873
7873
|
};
|
|
7874
7874
|
function Tx({ targetRoundNumber: e = 1, tournamentRecord: t, drawDefinition: r, event: i, randomList: n }) {
|
|
7875
|
-
let a = ve({ drawDefinition: r, event: i, tournamentRecord: t }, [{ [
|
|
7875
|
+
let a = ve({ drawDefinition: r, event: i, tournamentRecord: t }, [{ [Ur]: !0, [Ya]: !0, [Kt]: !0 }]);
|
|
7876
7876
|
if (a.error) return a;
|
|
7877
7877
|
let o = [], s = [], c = r.structures?.find((g) => g.stage === de && g.stageSequence === 1);
|
|
7878
7878
|
if (!c) return $({ result: { error: zb } });
|
|
@@ -7986,13 +7986,13 @@ function Ux({ drawDefinition: e }) {
|
|
|
7986
7986
|
return { ...L };
|
|
7987
7987
|
}
|
|
7988
7988
|
function zw(e) {
|
|
7989
|
-
let t = ve(e, [{ [Kt]: !0, [
|
|
7989
|
+
let t = ve(e, [{ [Kt]: !0, [Ur]: !0 }]);
|
|
7990
7990
|
if (t.error) return t;
|
|
7991
7991
|
let { tournamentRecord: r, drawDefinition: i, structure: n, link: a } = e;
|
|
7992
7992
|
return xY({ tournamentId: r.tournamentId, drawDefinition: i, structure: n, link: a });
|
|
7993
7993
|
}
|
|
7994
7994
|
function xY(e) {
|
|
7995
|
-
let t = ve(e, [{ [
|
|
7995
|
+
let t = ve(e, [{ [Ur]: !0, [Kg]: !0 }, { link: !0, [Vr]: jr, [CC]: Hb }]);
|
|
7996
7996
|
if (t.error) return t;
|
|
7997
7997
|
let { drawDefinition: r, tournamentId: i, structure: n, eventId: a, link: o } = e, s = o.target.structureId, c = De({ drawDefinition: r, structureId: s });
|
|
7998
7998
|
if (c.error) return $({ stack: "attachQualifyingStructure", context: { targetStructureId: s }, result: c });
|
|
@@ -8123,7 +8123,7 @@ function Rx({ tournamentRecord: e, drawDefinition: t, drawPositions: r, structur
|
|
|
8123
8123
|
let a = or({ drawDefinition: t }), { matchUps: o } = Vt({ inContext: !0, drawDefinition: t, matchUpsMap: a }), { structure: s } = De({ drawDefinition: t, structureId: i });
|
|
8124
8124
|
if (!s) return { error: bt };
|
|
8125
8125
|
let c = ze({ tournamentRecord: e, drawDefinition: t, event: n }).appliedPolicies ?? {}, u;
|
|
8126
|
-
if (s.structureType ===
|
|
8126
|
+
if (s.structureType === wr ? u = r5({ inContextDrawMatchUps: o, tournamentRecord: e, drawDefinition: t, drawPositions: r, matchUpsMap: a, structure: s, event: n }) : u = e5({ inContextDrawMatchUps: o, tournamentRecord: e, drawDefinition: t, drawPositions: r, matchUpsMap: a, structure: s, event: n }), u.error) return u;
|
|
8127
8127
|
if (sw({ structure: s, drawPositions: r }), Xp({ appliedPolicies: c, drawDefinition: t, positionAction: { name: Cx, drawPositions: r, structureId: i } }), Va({ tournamentId: e?.tournamentId, drawDefinition: t, structure: s, event: n }), n.eventType === ni) {
|
|
8128
8128
|
let l = Je({ matchUpFilters: { matchUpTypes: [pi] }, inContext: !0, structure: s }).matchUps.filter((p) => p.drawPositions?.some((f) => r.includes(f))), d = Je({ matchUpFilters: { matchUpTypes: [pi] }, structure: s }).matchUps;
|
|
8129
8129
|
l.forEach((p) => {
|
|
@@ -8282,7 +8282,7 @@ function s5(e) {
|
|
|
8282
8282
|
return !r || !i ? { error: K } : zw({ tournamentRecord: e.tournamentRecord, drawDefinition: e.drawDefinition, structure: r, link: i });
|
|
8283
8283
|
}
|
|
8284
8284
|
function Fx(e) {
|
|
8285
|
-
let t = ve(e, [{ [
|
|
8285
|
+
let t = ve(e, [{ [Ur]: !0, [Hg]: !0, [_n]: !0 }, { [HW]: !0, [dr]: (d) => Number.isInteger(d) && d > 0 }, { [dr]: (d) => Array.isArray(d) && d.length === 2 && d.every(mt), [hi]: ri, participantIds: !0 }]);
|
|
8286
8286
|
if (t.error) return t;
|
|
8287
8287
|
let { drawDefinition: r, structureId: i, tournamentRecord: n, event: a } = e, { structure: o } = De({ drawDefinition: r, structureId: i });
|
|
8288
8288
|
if (!o) return { error: bt };
|
|
@@ -8431,7 +8431,7 @@ function Df({ drawDefinition: e, structureId: t }) {
|
|
|
8431
8431
|
}
|
|
8432
8432
|
function f5({ playoffPositions: e, drawDefinition: t, structure: r, matchUps: i }) {
|
|
8433
8433
|
let n = r?.structureId, { links: a } = Ml({ drawDefinition: t, structureId: n });
|
|
8434
|
-
if (r.structureType ===
|
|
8434
|
+
if (r.structureType === wr || r.structures) {
|
|
8435
8435
|
let f = lt({ structure: r })?.positionAssignments?.length, m = r.structures.length, h = (f ?? 0) / m, g = a.source?.flatMap(({ source: D }) => D?.finishingPositions || []) || [], I = se(1, h + 1).filter((D) => !g.includes(D)), y = i.find((D) => D.containerStructureId === n && D.finishingPositionRange)?.finishingPositionRange?.winner || [0, 1], S = a?.source.map(({ target: D }) => D.structureId), { positionsPlayedOff: v = [], positionsNotPlayedOff: b = [] } = Ll({ structureIds: S, drawDefinition: t }), T = /* @__PURE__ */ new Set([...v, ...b]), w = se(y[0], y[1] + 1).filter((D) => !T.has(D)), U = Zt(w, w.length / I.length), E = I.map((D, P) => {
|
|
8436
8436
|
let N = U[P], C = [Math.min(...N || []), Math.max(...N || [])].join("-");
|
|
8437
8437
|
return { finishingPosition: D, finishingPositions: N, finishingPositionRange: C };
|
|
@@ -8602,14 +8602,14 @@ function jx({ matchUps: e, matchUpId: t }) {
|
|
|
8602
8602
|
return { matchUp: (e || []).find((r) => r.matchUpId === t) };
|
|
8603
8603
|
}
|
|
8604
8604
|
function yt(e) {
|
|
8605
|
-
let t = ve(e, [{ [
|
|
8605
|
+
let t = ve(e, [{ [Ur]: !0, [_n]: !0 }]);
|
|
8606
8606
|
if (t.error) return t;
|
|
8607
8607
|
let { tournamentParticipants: r, afterRecoveryTimes: i, contextProfile: n, drawDefinition: a, matchUpsMap: o, matchUpId: s, inContext: c, context: u, event: l } = e, { structures: d = [] } = Ji({ drawDefinition: a }), p = e.contextContent || n && Qa({ contextProfile: n, drawDefinition: a });
|
|
8608
8608
|
for (let f of d) {
|
|
8609
8609
|
let { matchUps: m } = Je({ tournamentParticipants: r, afterRecoveryTimes: i, contextContent: p, drawDefinition: a, contextProfile: n, matchUpsMap: o, inContext: c, structure: f, context: u, event: l }), { matchUp: h } = jx({ matchUps: m, matchUpId: s });
|
|
8610
8610
|
if (h) return { matchUp: h, structure: f };
|
|
8611
8611
|
}
|
|
8612
|
-
return { error:
|
|
8612
|
+
return { error: Sr };
|
|
8613
8613
|
}
|
|
8614
8614
|
function DI(e) {
|
|
8615
8615
|
return !qe(e) || !e.notes ? { error: we } : qe(e.element) ? !mt(e.notes) && !e.notes?.testing ? { error: K } : (Object.assign(e.element, { notes: e.notes }), { ...L }) : { error: K };
|
|
@@ -8623,7 +8623,7 @@ function dn(e) {
|
|
|
8623
8623
|
if (g && s) {
|
|
8624
8624
|
if (d && i.matchUpId !== d) {
|
|
8625
8625
|
let w = yt({ drawDefinition: s, matchUpId: d, event: p });
|
|
8626
|
-
if (!w.matchUp) return { error:
|
|
8626
|
+
if (!w.matchUp) return { error: Sr };
|
|
8627
8627
|
({ matchUp: i, structure: n } = w);
|
|
8628
8628
|
}
|
|
8629
8629
|
} else i.matchUpId !== d && console.log("!!!!!");
|
|
@@ -8632,7 +8632,7 @@ function dn(e) {
|
|
|
8632
8632
|
c && (i.matchUpStatus = c), r && (i.matchUpFormat = r), a && (i.matchUpStatusCodes = a), l && (i.winningSide = l), e.removeWinningSide && (i.winningSide = void 0), !n && s && ({ structure: n } = yt({ drawDefinition: s, matchUpId: d, event: p })), c && !i.winningSide && zt(i) && !Bt.includes(c) && ![jc, Oo, oi].includes(c) && (i.matchUpStatus = tn);
|
|
8633
8633
|
let y;
|
|
8634
8634
|
if ((I && i?.processCodes?.length || c === ut) && (y = h?.[Ci]?.processCodes?.incompleteAssignmentsOnDefault), !i.collectionId) {
|
|
8635
|
-
let w = n?.structureType ===
|
|
8635
|
+
let w = n?.structureType === wr, U = Br({ structure: n });
|
|
8636
8636
|
if (mw({ drawDefinition: s, structure: n }) || U || w) {
|
|
8637
8637
|
let E = (N) => {
|
|
8638
8638
|
r = g ? "SET1-S:T100" : r ?? i.matchUpFormat ?? N?.matchUpFormat ?? s?.matchUpFormat ?? p?.matchUpFormat;
|
|
@@ -8753,7 +8753,7 @@ function ur(e) {
|
|
|
8753
8753
|
if (e) return pe(e, !1, !0);
|
|
8754
8754
|
}
|
|
8755
8755
|
function oU(e) {
|
|
8756
|
-
let t = ve(e, [{ [
|
|
8756
|
+
let t = ve(e, [{ [br]: !0 }]);
|
|
8757
8757
|
return t.error ? t : Object.keys(e.tournamentRecords).reduce((r, i) => {
|
|
8758
8758
|
r.tournamentIdMap[i] = [];
|
|
8759
8759
|
let n = e.tournamentRecords[i].events ?? [], a = n.map(({ eventId: s }) => s), o = n.map((s) => (s.drawDefinitions ?? []).map(({ drawId: c }) => c)).flat();
|
|
@@ -8771,7 +8771,7 @@ function Xa(e) {
|
|
|
8771
8771
|
if (!l) return { error: ie };
|
|
8772
8772
|
let d = yt({ drawDefinition: r, event: s, matchUpId: o });
|
|
8773
8773
|
if (d.error) return d;
|
|
8774
|
-
if (!d.matchUp) return { error:
|
|
8774
|
+
if (!d.matchUp) return { error: Sr };
|
|
8775
8775
|
let { matchUp: p, structure: f } = d;
|
|
8776
8776
|
if (!p.tieMatchUps) return { error: Yr };
|
|
8777
8777
|
Ef({ tournamentId: l?.tournamentId, eventId: s?.eventId, dualMatchUp: p, drawDefinition: r });
|
|
@@ -8913,7 +8913,7 @@ function sU(e) {
|
|
|
8913
8913
|
if (r.error) return $({ result: r, stack: t });
|
|
8914
8914
|
let { structureId: i, addNameBaseToAttributeName: n, playoffStructureNameBase: a, finishingPositionNaming: o, finishingPositionLimit: s, playoffAttributes: c, playoffPositions: u, roundOffsetLimit: l, tournamentRecord: d, exitProfileLimit: p, roundProfiles: f, roundNumbers: m, idPrefix: h, isMock: g, event: I, uuids: y } = e, S = pe(e.drawDefinition, !1, !0), { structure: v } = De({ structureId: i, drawDefinition: S });
|
|
8915
8915
|
if (!v) return $({ result: { error: bt }, stack: t });
|
|
8916
|
-
if (v.structureType ===
|
|
8916
|
+
if (v.structureType === wr || v.structures) return g5({ sourceStructureId: v.structureId, ...e, ...r, drawDefinition: S });
|
|
8917
8917
|
let { playoffRoundsRanges: b, playoffRounds: T } = r, { playoffPositionsReturned: w, error: U, playoffSourceRounds: E, playoffRoundsRanges: D } = Lx(e);
|
|
8918
8918
|
if (U) return $({ result: { error: U }, stack: t });
|
|
8919
8919
|
let P = f?.length && Object.assign({}, ...f), N = m || typeof f == "object" && f.map((G) => Object.keys(G)).flat(), C = Array.isArray(N) && N.map((G) => !isNaN(G) && be(G)).filter(Boolean);
|
|
@@ -9077,7 +9077,7 @@ function NI(e) {
|
|
|
9077
9077
|
return uU({ tournamentId: e.tournamentRecord?.tournamentId, eventId: e.event?.eventId || e.eventId, matchUpModifications: i, drawDefinition: a, structures: t, links: r });
|
|
9078
9078
|
}
|
|
9079
9079
|
function Is(e) {
|
|
9080
|
-
let t = ve(e, [{ _anyOf: { [
|
|
9080
|
+
let t = ve(e, [{ _anyOf: { [br]: !1, [Kt]: !1, [Ur]: !1, [Ya]: !1 }, [CT]: !0 }]);
|
|
9081
9081
|
if (t.error) return t;
|
|
9082
9082
|
let r = [], i = e.drawDefinition ?? e.event ?? ((e.tournamentId || !e.tournamentRecords) && e.tournamentRecord);
|
|
9083
9083
|
if (i) {
|
|
@@ -9248,7 +9248,7 @@ function Zx(e) {
|
|
|
9248
9248
|
return t = t.filter((c) => !s.includes(c)), e.roundNumbers && !t.length && (t = s), { existingMatchUps: a, matchUpIds: t, structureId: i, structure: n };
|
|
9249
9249
|
}
|
|
9250
9250
|
function eO(e) {
|
|
9251
|
-
let t = ve(e, [{ [
|
|
9251
|
+
let t = ve(e, [{ [Ur]: !0 }, { [Xu]: { [Hp]: !1, roundNumbers: !1 }, [hi]: K, [Vr]: Ir }]);
|
|
9252
9252
|
if (t.error) return t;
|
|
9253
9253
|
let { removeIncomplete: r = !1, removeUnAssigned: i = !0, removeCompleted: n = !1, tournamentRecord: a, drawDefinition: o, event: s } = e, c = Zx(e);
|
|
9254
9254
|
if (c.error) return c;
|
|
@@ -9328,7 +9328,7 @@ function rO({ tournamentRecord: e, drawDefinition: t, drawPosition: r, structure
|
|
|
9328
9328
|
let { structure: o } = De({ drawDefinition: t, structureId: i });
|
|
9329
9329
|
if (!o) return { error: bt };
|
|
9330
9330
|
let s = o;
|
|
9331
|
-
o.structures && o.structureType ===
|
|
9331
|
+
o.structures && o.structureType === wr && (s = o.structures?.find((f) => f.positionAssignments?.find((m) => m.drawPosition === r)));
|
|
9332
9332
|
let c = s?.positionAssignments, u = c?.find((f) => f.drawPosition === r);
|
|
9333
9333
|
u && tt({ element: u, extension: { name: Zu, value: n } });
|
|
9334
9334
|
let l = (a?.eventType === pt || t.matchUpType === pt || (a?.tieFormat ?? t?.tieFormat ?? o?.tieFormat)) && { matchUpTypes: [pt] }, { matchUps: d } = Je({ structure: s, afterRecoveryTimes: !1, inContext: !0, matchUpFilters: l, event: a }), p = o?.matchUpFormat ?? t.matchUpFormat;
|
|
@@ -9617,7 +9617,7 @@ function Mf(e) {
|
|
|
9617
9617
|
}
|
|
9618
9618
|
function fU({ byeAdvancements: e = !1, tournamentRecord: t, drawDefinition: r, event: i }) {
|
|
9619
9619
|
if (!r) return { error: he };
|
|
9620
|
-
let { participantIds: n, participantIdMatchUps: a } = P5({ tournamentParticipants: t?.participants, drawDefinition: r }), o = Object.values(a).some((p) => p.some((f) => f.containerStructureId)), s = (o && Mf({ tournamentRecord: t, event: i }))?.eventData?.drawsData?.find((p) => p.drawId === r.drawId)?.structures, c = r?.structures?.find((p) => p.stage === de && p.stageSequence === 1), u = c?.structureType ===
|
|
9620
|
+
let { participantIds: n, participantIdMatchUps: a } = P5({ tournamentParticipants: t?.participants, drawDefinition: r }), o = Object.values(a).some((p) => p.some((f) => f.containerStructureId)), s = (o && Mf({ tournamentRecord: t, event: i }))?.eventData?.drawsData?.find((p) => p.drawId === r.drawId)?.structures, c = r?.structures?.find((p) => p.stage === de && p.stageSequence === 1), u = c?.structureType === wr && c.structures, l = (o ? il({ tournamentRecord: t, drawDefinition: r, structureId: c?.structureId })?.positionAssignments : void 0)?.length || 0, d = n?.map((p) => {
|
|
9621
9621
|
let f = a[p].filter((I) => [At, "BYE"].includes(I.matchUpStatus) || I.winningSide), m = f.map((I) => {
|
|
9622
9622
|
let y = I.sides.find((v) => v.bye), S = I.sides.find((v) => v.participantId === p).sideNumber;
|
|
9623
9623
|
if (I.containerStructureId) {
|
|
@@ -9773,7 +9773,7 @@ function RI(e) {
|
|
|
9773
9773
|
}
|
|
9774
9774
|
if (!t) return { error: he };
|
|
9775
9775
|
let l = Pt({ withIndividualParticipants: !0, tournamentRecord: u }).participants, { drawId: d } = t, { matchUp: p, structure: f } = yt({ drawDefinition: t, matchUpId: c, event: r });
|
|
9776
|
-
if (!p) return { error:
|
|
9776
|
+
if (!p) return { error: Sr };
|
|
9777
9777
|
let m = ze({ tournamentRecord: u, drawDefinition: t, structure: f, event: r }).appliedPolicies ?? {};
|
|
9778
9778
|
Object.assign(m, n ?? {});
|
|
9779
9779
|
let h = m?.[ca]?.otherFlightEntries, g = m?.[nr] ?? Ol[nr], { enabledStructures: I } = pO({ actionType: BS, appliedPolicies: m, drawDefinition: t, structure: f }), { policyActions: y } = fO({ enabledStructures: I, drawDefinition: t, structure: f }), S = e.matchUpsMap ?? or({ drawDefinition: t }), v = e.inContextDrawMatchUps ?? Vt({ tournamentParticipants: l, inContext: !0, drawDefinition: t, matchUpsMap: S, event: r }).matchUps, b = v?.find((Y) => Y.matchUpId === c), T = s && b?.sides?.find((Y) => Y.sideNumber === s), w = b?.sides?.map((Y) => Y.participantId || Y.participant?.participantid).filter(Boolean) ?? [], { assignedPositions: U, allPositionsAssigned: E } = Yt({ structure: f }), { structureId: D } = f ?? {}, P = [];
|
|
@@ -9986,7 +9986,7 @@ function Rf({ policyDefinitions: e, appliedPolicies: t, drawType: r }) {
|
|
|
9986
9986
|
return (typeof i == "boolean" ? i : void 0) ?? (r && i?.[r]) ?? (typeof n == "boolean" ? n : void 0) ?? (r && n?.[r]) ?? !0;
|
|
9987
9987
|
}
|
|
9988
9988
|
var IU = ({ drawDefinition: e }) => {
|
|
9989
|
-
let t = ve({ drawDefinition: e }, [{ [
|
|
9989
|
+
let t = ve({ drawDefinition: e }, [{ [Ur]: !0 }]);
|
|
9990
9990
|
if (t.error) return t;
|
|
9991
9991
|
let r = e.structures?.find((n) => n.stage === de && n.stageSequence === 1);
|
|
9992
9992
|
if (!r) return $({ result: { error: zb } });
|
|
@@ -10044,7 +10044,7 @@ function g6({ participant: e, participantType: t, eventType: r, entryStatusMap:
|
|
|
10044
10044
|
return e.participantType !== t && !a;
|
|
10045
10045
|
}
|
|
10046
10046
|
function I6(e) {
|
|
10047
|
-
let { participant: t, participantMap: r, eventGender: i, mismatch: n, isDoubles: a, genderEnforced: o } = e, s = !n && a && Me(t?.individualParticipantIds?.map((d) => r?.[d]?.participant?.person?.sex).filter(Boolean) ?? []) || [], c = !i || !s?.length || ea(i) || En(i) &&
|
|
10047
|
+
let { participant: t, participantMap: r, eventGender: i, mismatch: n, isDoubles: a, genderEnforced: o } = e, s = !n && a && Me(t?.individualParticipantIds?.map((d) => r?.[d]?.participant?.person?.sex).filter(Boolean) ?? []) || [], c = !i || !s?.length || ea(i) || En(i) && vr(s[0]) === vr(i) || di(i) && (s.length === 1 && t.individualParticipantIds?.length === 1 || s.length === 2), u = t?.person?.sex, l = !t?.person || !i || di(i) || ea(i) || En(i) && vr(u) === vr(i);
|
|
10048
10048
|
return !o || c && l;
|
|
10049
10049
|
}
|
|
10050
10050
|
function wO({ hasExistingDrawDefinition: e, qualifyingProfiles: t, appliedPolicies: r, qualifyingOnly: i, tieFormat: n, idPrefix: a, isMock: o, uuids: s }) {
|
|
@@ -13418,7 +13418,7 @@ function DK(e) {
|
|
|
13418
13418
|
return Object.assign(a, { processCodes: r, matchUpType: i, drawType: n, drawId: t });
|
|
13419
13419
|
}
|
|
13420
13420
|
function YU(e) {
|
|
13421
|
-
let t = e.structureIds, { tournamentRecord: r, drawDefinition: i, matchUpFormat: n, structureId: a, matchUpId: o, event: s } = e, c = ve(e, [{ [
|
|
13421
|
+
let t = e.structureIds, { tournamentRecord: r, drawDefinition: i, matchUpFormat: n, structureId: a, matchUpId: o, event: s } = e, c = ve(e, [{ [Ur]: !0, [RT]: !0 }]);
|
|
13422
13422
|
if (c.error) return c;
|
|
13423
13423
|
if (!mi({ matchUpFormat: n })) return { error: xp };
|
|
13424
13424
|
let u = "setMatchUpFormat";
|
|
@@ -13469,7 +13469,7 @@ Fe(EF, { attachPolicies: () => Is, findPolicy: () => Ns, getAppliedPolicies: ()
|
|
|
13469
13469
|
var NF = {};
|
|
13470
13470
|
Fe(NF, { attachPolicies: () => Is, removePolicy: () => AF });
|
|
13471
13471
|
function AF(e) {
|
|
13472
|
-
let t = ve(e, [{ [YW]: !0, _anyOf: { [
|
|
13472
|
+
let t = ve(e, [{ [YW]: !0, _anyOf: { [br]: !1, [Kt]: !1, [Ur]: !1, [Ya]: !1 } }]);
|
|
13473
13473
|
if (t.error) return t;
|
|
13474
13474
|
let r, i = e.drawDefinition ?? e.event ?? ((e.tournamentId || !e.tournamentRecords) && e.tournamentRecord);
|
|
13475
13475
|
if (i) return E0(e, i);
|
|
@@ -14016,7 +14016,7 @@ function BF({ participantsProfile: e, afterRecoveryTimes: t, tournamentRecord: r
|
|
|
14016
14016
|
if (typeof s != "string") return { error: Er };
|
|
14017
14017
|
if (!a || !d) {
|
|
14018
14018
|
let m = (tr({ tournamentRecord: r, nextMatchUps: o }).matchUps ?? []).find((h) => h.matchUpId === s);
|
|
14019
|
-
if (!m) return { error:
|
|
14019
|
+
if (!m) return { error: Sr };
|
|
14020
14020
|
({ eventId: u, drawId: l } = m), { event: d, drawDefinition: a } = $r({ tournamentRecord: r, eventId: u, drawId: l });
|
|
14021
14021
|
}
|
|
14022
14022
|
if (!a) return { error: fi };
|
|
@@ -14024,7 +14024,7 @@ function BF({ participantsProfile: e, afterRecoveryTimes: t, tournamentRecord: r
|
|
|
14024
14024
|
let p = { surfaceCategory: d?.surfaceCategory ?? r.surfaceCategory, indoorOutDoor: d?.indoorOutdoor ?? r.indoorOutdoor, endDate: d?.endDate ?? r.endDate, tournamentId: r.tournamentId, eventId: u ?? d?.eventId, drawId: l }, { participants: f = [] } = Es({ participantsProfile: e, tournamentRecord: r, contextProfile: n, inContext: c });
|
|
14025
14025
|
if (o) {
|
|
14026
14026
|
let m = (kr({ context: c ? p : void 0, participants: f, afterRecoveryTimes: t, contextContent: i, contextProfile: n, drawDefinition: a, nextMatchUps: o, inContext: c, event: d }).matchUps ?? []).find((g) => g.matchUpId === s);
|
|
14027
|
-
if (!m) return { error:
|
|
14027
|
+
if (!m) return { error: Sr };
|
|
14028
14028
|
let h = a?.structures?.find((g) => g.structureId === m.structureId);
|
|
14029
14029
|
return { drawDefinition: a, structure: h, matchUp: m };
|
|
14030
14030
|
} else {
|
|
@@ -14283,7 +14283,7 @@ function uD(e) {
|
|
|
14283
14283
|
return { issuesCount: a, profileIssues: u, roundIndexShouldBeAfter: o, ...L };
|
|
14284
14284
|
}
|
|
14285
14285
|
function xs(e) {
|
|
14286
|
-
let { tournamentRecords: t, requestType: r } = e, i = ve(e, [{ [
|
|
14286
|
+
let { tournamentRecords: t, requestType: r } = e, i = ve(e, [{ [br]: !0 }]);
|
|
14287
14287
|
if (i.error) return i;
|
|
14288
14288
|
let n = {};
|
|
14289
14289
|
for (let a of Object.values(t)) {
|
|
@@ -15318,7 +15318,7 @@ function c_(e) {
|
|
|
15318
15318
|
for (let s of e.tournamentRecord.participants ?? []) if (o?.includes(s.participantId)) {
|
|
15319
15319
|
let c = s.person?.sex;
|
|
15320
15320
|
if (c && En(c)) {
|
|
15321
|
-
let u =
|
|
15321
|
+
let u = vr(c);
|
|
15322
15322
|
u && n[u].push(s.participantId);
|
|
15323
15323
|
}
|
|
15324
15324
|
}
|
|
@@ -15327,7 +15327,7 @@ function c_(e) {
|
|
|
15327
15327
|
for (let o of r.collectionDefinitions ?? []) {
|
|
15328
15328
|
let s = i?.pop()?.toString() || Qe(), c = o.matchUpType, u = o.gender, l = { matchUpFormat: o.matchUpFormat, eventName: o.collectionName, category: o.category, gender: u, eventType: c, eventId: s };
|
|
15329
15329
|
if (e.addEntriesFromTeams) {
|
|
15330
|
-
let d = c === Fa ? Oi : e.entryStatus || Qr, p = di(u) ? [...n[Gt], ...n[lr]] : n[
|
|
15330
|
+
let d = c === Fa ? Oi : e.entryStatus || Qr, p = di(u) ? [...n[Gt], ...n[lr]] : n[vr(u) || Ua] ?? [];
|
|
15331
15331
|
if (p.length) {
|
|
15332
15332
|
let f = Dn({ participantIds: p, entryStatus: d, event: l });
|
|
15333
15333
|
if (f.error) return f;
|
|
@@ -15502,7 +15502,7 @@ function uy(e) {
|
|
|
15502
15502
|
if (e.event) return F0({ event: e.event });
|
|
15503
15503
|
{
|
|
15504
15504
|
e.tournamentRecord && !e.tournamentRecords && (e.tournamentRecords = { [e.tournamentRecord.tournamentId]: e.tournamentRecord });
|
|
15505
|
-
let t = ve(e, [{ [
|
|
15505
|
+
let t = ve(e, [{ [br]: !0, [d1]: !0 }]);
|
|
15506
15506
|
if (t.error) return t;
|
|
15507
15507
|
let { tournamentRecords: r, eventId: i } = e;
|
|
15508
15508
|
for (let n of Object.values(r ?? {})) {
|
|
@@ -16013,7 +16013,7 @@ function E_(e) {
|
|
|
16013
16013
|
let V = B ? N : C ?? [], H = W + 1, j = [];
|
|
16014
16014
|
se(0, B ? 1 : 2).forEach((G) => {
|
|
16015
16015
|
let q = V?.find((Y) => {
|
|
16016
|
-
let z =
|
|
16016
|
+
let z = vr(F), X = z && (En(F) && z || di(F) && [Gt, lr][G]);
|
|
16017
16017
|
return (!X || X === Y.person?.sex) && !x.includes(Y.participantId);
|
|
16018
16018
|
})?.participantId;
|
|
16019
16019
|
q && (j.push(q), x.push(q), A[q] || (A[q] = []), A[q].push({ collectionPosition: H, collectionId: k }));
|
|
@@ -16184,7 +16184,7 @@ function x_({ tournamentRecord: e, drawDefinition: t, participantId: r, sideNumb
|
|
|
16184
16184
|
let o = i === void 0;
|
|
16185
16185
|
if (o && (i = 1), ![1, 2].includes(i)) return $({ result: { error: K, context: { sideNumber: i } } });
|
|
16186
16186
|
let { matchUp: s, structure: c } = yt({ drawDefinition: t, matchUpId: n, event: a });
|
|
16187
|
-
if (!s) return { error:
|
|
16187
|
+
if (!s) return { error: Sr };
|
|
16188
16188
|
if (!(!c?.structures && !(t.drawType && t.drawType !== Kr) && !c?.matchUps?.find(({ roundPosition: u }) => !!u))) return { error: qb };
|
|
16189
16189
|
if (!r && (s?.score?.scoreStringSide1 || Bt.includes(s?.matchUpstatus) || s?.matchUpStatus && [wt, Ot].includes(s.matchUpStatus))) return { error: Eg, info: "matchUp has completed status or score" };
|
|
16190
16190
|
if (s) {
|
|
@@ -16198,12 +16198,12 @@ function x_({ tournamentRecord: e, drawDefinition: t, participantId: r, sideNumb
|
|
|
16198
16198
|
}
|
|
16199
16199
|
function ci({ removePriorValues: e, tournamentRecord: t, duplicateValues: r, drawDefinition: i, disableNotice: n, matchUpId: a, timeItem: o, event: s }) {
|
|
16200
16200
|
let { matchUp: c } = yt({ drawDefinition: i, event: s, matchUpId: a });
|
|
16201
|
-
if (!c) return { error:
|
|
16201
|
+
if (!c) return { error: Sr };
|
|
16202
16202
|
let u = $n({ removePriorValues: e, element: c, duplicateValues: r, timeItem: o });
|
|
16203
16203
|
return n || He({ tournamentId: t?.tournamentId, eventId: s?.eventId, context: "addTimeItem", drawDefinition: i, matchUp: c }), u;
|
|
16204
16204
|
}
|
|
16205
16205
|
function LD(e) {
|
|
16206
|
-
let t = [{ [Kt]: !0 }, { [
|
|
16206
|
+
let t = [{ [Kt]: !0 }, { [Ur]: !0 }, { [oa]: !0 }, { [_n]: !0 }], r = ve(e, t);
|
|
16207
16207
|
if (r.error) return r;
|
|
16208
16208
|
let i = Gl(e, [{ [Dl]: fa, attr: { [zg]: !0 } }]);
|
|
16209
16209
|
if (i.error) return i;
|
|
@@ -16222,7 +16222,7 @@ function LD(e) {
|
|
|
16222
16222
|
}), ci({ tournamentRecord: n, drawDefinition: a, matchUpId: s, timeItem: { itemValue: o, itemType: wh } }), { ...L, checkedOut: !0 };
|
|
16223
16223
|
}
|
|
16224
16224
|
function BD(e) {
|
|
16225
|
-
let t = [{ [Kt]: !0 }, { [
|
|
16225
|
+
let t = [{ [Kt]: !0 }, { [Ur]: !0 }, { [oa]: !0 }, { [_n]: !0 }], r = ve(e, t);
|
|
16226
16226
|
if (r[qi]) return r;
|
|
16227
16227
|
let i = Gl(e, [{ [Dl]: fa, attr: { [zg]: !0 } }]);
|
|
16228
16228
|
if (i[qi]) return i;
|
|
@@ -16234,12 +16234,12 @@ function BD(e) {
|
|
|
16234
16234
|
return u?.includes(o) || ci({ tournamentRecord: n, drawDefinition: a, matchUpId: s, timeItem: { itemValue: o, itemType: Th } }), d;
|
|
16235
16235
|
}
|
|
16236
16236
|
function my(e) {
|
|
16237
|
-
let t = ve(e, [{ [oa]: !0, [
|
|
16237
|
+
let t = ve(e, [{ [oa]: !0, [Ur]: !0, [_n]: !0 }]);
|
|
16238
16238
|
if (t.error) return t;
|
|
16239
16239
|
let r = e.tournamentId ?? e.activeTournamentId, i = e.tournamentRecord ?? (r && e.tournamentRecords?.[r]);
|
|
16240
16240
|
if (!i) return { error: ie };
|
|
16241
|
-
let n = Gl(e, [{ [Dl]: fa, attr: { [zg]: !0 }, [qi]:
|
|
16242
|
-
if (!n) return { error:
|
|
16241
|
+
let n = Gl(e, [{ [Dl]: fa, attr: { [zg]: !0 }, [qi]: Sr }]).matchUp?.matchUp;
|
|
16242
|
+
if (!n) return { error: Sr };
|
|
16243
16243
|
let { checkedInParticipantIds: a = [] } = Kc({ matchUp: n }), { participantId: o, matchUpId: s, drawDefinition: c } = e;
|
|
16244
16244
|
return o && a.includes(o) ? LD({ tournamentRecord: i, drawDefinition: c, participantId: o, matchUpId: s, matchUp: n }) : BD({ tournamentRecord: i, drawDefinition: c, participantId: o, matchUpId: s, matchUp: n });
|
|
16245
16245
|
}
|
|
@@ -16248,9 +16248,9 @@ function $D({ tournamentRecord: e, drawDefinition: t, tieMatchUpId: r, event: i
|
|
|
16248
16248
|
if (!t) return { error: yn };
|
|
16249
16249
|
if (!i) return { error: Ni };
|
|
16250
16250
|
let n = or({ drawDefinition: t }), { matchUp: a } = yt({ matchUpId: r, drawDefinition: t, matchUpsMap: n });
|
|
16251
|
-
if (!a) return { error:
|
|
16251
|
+
if (!a) return { error: Sr };
|
|
16252
16252
|
let { matchUp: o, structure: s } = yt({ tournamentParticipants: e.participants, matchUpId: r, inContext: !0, drawDefinition: t, matchUpsMap: n, event: i });
|
|
16253
|
-
if (!o) return { error:
|
|
16253
|
+
if (!o) return { error: Sr };
|
|
16254
16254
|
let { collectionPosition: c, drawPositions: u, collectionId: l, matchUpTieId: d, matchUpType: p } = o;
|
|
16255
16255
|
if (p && !tc([ct, at], p)) return { error: Yr };
|
|
16256
16256
|
let { positionAssignments: f } = lt({ structure: s }), m = f?.filter((T) => u?.includes(T.drawPosition)), { matchUp: h } = yt({ matchUpId: d, drawDefinition: t, matchUpsMap: n }), g = h?.sides?.map(We) ?? [], I = m?.map(We) ?? [], y = [...g, ...I], { participants: S } = Pt({ tournamentRecord: e, participantFilters: { participantTypes: [nt], participantIds: y } }), { matchUp: v } = yt({ matchUpId: d, inContext: !0, drawDefinition: t, matchUpsMap: n }), b = Dr({ matchUp: h, drawDefinition: t, structure: s, event: i })?.tieFormat;
|
|
@@ -16268,7 +16268,7 @@ function VD(e) {
|
|
|
16268
16268
|
if (y.length !== 2) return $({ result: { error: Ht }, stack: r });
|
|
16269
16269
|
if (y[0].participantType !== y[1].participantType) return $({ result: { error: mn }, stack: r });
|
|
16270
16270
|
let { appliedPolicies: S } = ze({ tournamentRecord: n, drawDefinition: o, event: c }), v = e.policyDefinitions?.[nr] ?? S?.[nr] ?? Ol[nr], b = y.find(({ participantId: k }) => k === a);
|
|
16271
|
-
if ((e.enforceGender ?? v?.participants?.enforceGender) !== !1 && En(l?.gender) &&
|
|
16271
|
+
if ((e.enforceGender ?? v?.participants?.enforceGender) !== !1 && En(l?.gender) && vr(l?.gender) !== vr(b?.person?.sex)) return { error: cs, info: "Gender mismatch" };
|
|
16272
16272
|
let T = v?.processCodes?.substitution;
|
|
16273
16273
|
Ef({ tournamentId: n.tournamentId, eventId: c.eventId, inContextDualMatchUp: u, drawDefinition: o, dualMatchUp: f });
|
|
16274
16274
|
let w = f?.sides?.find(({ sideNumber: k }) => k === I.sideNumber);
|
|
@@ -16409,7 +16409,7 @@ function Lh(e) {
|
|
|
16409
16409
|
let I = Pt({ participantFilters: { participantIds: [o] }, tournamentRecord: n })?.participants?.[0];
|
|
16410
16410
|
if (!I) return $({ result: { error: kt }, stack: r });
|
|
16411
16411
|
let { appliedPolicies: y } = ze({ tournamentRecord: n, drawDefinition: a, event: s }), S = e.policyDefinitions?.[nr] ?? y?.[nr] ?? Ol[nr];
|
|
16412
|
-
if ((e.enforceGender ?? S?.participants?.enforceGender) !== !1 && En(u?.gender) &&
|
|
16412
|
+
if ((e.enforceGender ?? S?.participants?.enforceGender) !== !1 && En(u?.gender) && vr(u?.gender) !== vr(I.person?.sex)) return { error: cs, info: "Gender mismatch" };
|
|
16413
16413
|
let { individualParticipantIds: v, participantType: b } = I;
|
|
16414
16414
|
if (Dt(ct)(m) && b !== Ge) return { error: mn };
|
|
16415
16415
|
let T = b === Ge ? [o] : v, w = i && p?.find(({ participantId: O }) => O === i) || p?.find(({ individualParticipantIds: O }) => xr(T, O));
|
|
@@ -16526,14 +16526,14 @@ function F_(e) {
|
|
|
16526
16526
|
return He({ tournamentId: t?.tournamentId, matchUp: g, context: a, drawDefinition: r }), { ...L, modifiedLineUp: E };
|
|
16527
16527
|
}
|
|
16528
16528
|
function GD(e) {
|
|
16529
|
-
let t = ve(e, [{ [Kt]: !0, [
|
|
16529
|
+
let t = ve(e, [{ [Kt]: !0, [Ur]: !0, [_n]: !0 }]);
|
|
16530
16530
|
if (t.error) return t;
|
|
16531
16531
|
let { drawDefinition: r, sideNumber: i, matchUpId: n, event: a } = e;
|
|
16532
16532
|
if (i && ![1, 2].includes(i)) return { error: K, sideNumber: i };
|
|
16533
16533
|
let { matchUp: o, structure: s } = yt({ drawDefinition: r, matchUpId: n, event: a });
|
|
16534
16534
|
return o ? Br({ structure: s }) ? (o.sides?.forEach((c) => {
|
|
16535
16535
|
(!i || c.sideNumber === i) && delete c.participantId;
|
|
16536
|
-
}), He({ tournamentId: e.tournamentRecord?.tournamentId, context: "assignSideParticipant", drawDefinition: r, matchUp: o }), { ...L }) : { error: qb } : { error:
|
|
16536
|
+
}), He({ tournamentId: e.tournamentRecord?.tournamentId, context: "assignSideParticipant", drawDefinition: r, matchUp: o }), { ...L }) : { error: qb } : { error: Sr };
|
|
16537
16537
|
}
|
|
16538
16538
|
function H7({ matchUpStatuses: e = ["BYE", ht, ut], drawPositionMatchUps: t, loserDrawPosition: r, sourceMatchUps: i }) {
|
|
16539
16539
|
let n = t?.reduce((l, d) => !l || d.roundNumber > l.roundNumber ? d : l, void 0), a = n?.drawPositions?.find((l) => l !== r), o = i.filter((l) => l?.drawPositions?.includes(a)).map((l) => l.matchUpStatus), s = i.filter((l) => l?.drawPositions?.includes(r)).map((l) => l.matchUpStatus), c = xr(o || [], e), u = xr(s || [], e);
|
|
@@ -16541,7 +16541,7 @@ function H7({ matchUpStatuses: e = ["BYE", ht, ut], drawPositionMatchUps: t, los
|
|
|
16541
16541
|
}
|
|
16542
16542
|
function Y7({ inContextDrawMatchUps: e, sourceMatchUpStatus: t, targetDrawPosition: r, tournamentRecord: i, sourceMatchUpId: n, drawDefinition: a, structureId: o, dualMatchUp: s, roundNumber: c, matchUpsMap: u, event: l }) {
|
|
16543
16543
|
let { structure: d } = De({ drawDefinition: a, structureId: o });
|
|
16544
|
-
if (d?.structureType ===
|
|
16544
|
+
if (d?.structureType === wr) return { ...L };
|
|
16545
16545
|
u = u ?? or({ drawDefinition: a });
|
|
16546
16546
|
let p = (u?.mappedMatchUps || {})[o].matchUps, { initialRoundNumber: f } = bc({ drawPosition: r, matchUps: p }), m = p?.filter((g) => g.roundNumber >= c && g.roundNumber !== f && g.drawPositions?.includes(r)), { positionAssignments: h } = lt({ drawDefinition: a, structureId: o });
|
|
16547
16547
|
for (let g of m ?? []) z7({ inContextDrawMatchUps: e, sourceMatchUpStatus: t, positionAssignments: h, targetDrawPosition: r, tournamentRecord: i, sourceMatchUpId: n, drawDefinition: a, dualMatchUp: s, matchUpsMap: u, matchUp: g, event: l });
|
|
@@ -16638,7 +16638,7 @@ function X7({ tournamentRecord: e, drawDefinition: t, structure: r, matchUp: i }
|
|
|
16638
16638
|
}
|
|
16639
16639
|
function Md(e) {
|
|
16640
16640
|
let { tournamentRecord: t, appliedPolicies: r, drawDefinition: i, matchUpsMap: n, targetData: a, structure: o, event: s } = e, c = "doubleExitAdvancement";
|
|
16641
|
-
if (o.structureType ===
|
|
16641
|
+
if (o.structureType === wr) return $({ result: { ...L }, stack: c });
|
|
16642
16642
|
let { matchUp: u, targetMatchUps: l, targetLinks: d } = a, { loserMatchUp: p, winnerMatchUp: f, loserTargetDrawPosition: m } = l, h = sr(p?.matchUpStatus) && !p.sides?.map((I) => I.participantId ?? I.participant).filter(Boolean).length, g = p?.matchUpStatus === wt;
|
|
16643
16643
|
if (st({ method: c, newline: !0, color: "brightyellow", keyColors: { sourceMatchUpId: "brightcyan", loserMatchUpId: "brightmagenta", winnerMatchUpId: "brightgreen" }, sourceMatchUpId: u?.matchUpId, sourceStatus: e.matchUpStatus, sourceDP: JSON.stringify(u?.drawPositions), loserMatchUpId: p?.matchUpId, loserStatus: p?.matchUpStatus, loserDP: JSON.stringify(p?.drawPositions), loserTargetDP: m, loserIsEmptyExit: h, loserIsDoubleExit: g, loserSides: JSON.stringify(p?.sides?.map((I) => ({ sn: I.sideNumber, pid: I.participantId?.slice(0, 8), fed: I.participantFed }))), winnerMatchUpId: f?.matchUpId, winnerStatus: f?.matchUpStatus, winnerDP: JSON.stringify(f?.drawPositions) }), p && p.matchUpStatus !== "BYE") {
|
|
16644
16644
|
let { loserTargetLink: I } = d, y = r?.progression?.doubleExitPropagateBye, S = p.feedRound && p.sides?.[0]?.participantFed;
|
|
@@ -16937,7 +16937,7 @@ function G0(e) {
|
|
|
16937
16937
|
return $({ result: r, stack: t });
|
|
16938
16938
|
}
|
|
16939
16939
|
function jD(e) {
|
|
16940
|
-
let t = ve(e, [{ [Kt]: !0, [
|
|
16940
|
+
let t = ve(e, [{ [Kt]: !0, [Ur]: !0, [_n]: !0 }, { homeParticipantId: !0, [qi]: Ht }]);
|
|
16941
16941
|
if (t.error) return t;
|
|
16942
16942
|
let r = Gl(e, [{ [Dl]: fa, attr: { [zg]: !0 } }]);
|
|
16943
16943
|
if (r.error) return r;
|
|
@@ -17214,7 +17214,7 @@ function Os(e) {
|
|
|
17214
17214
|
if (l && [Bn, oi, ai, Mt].includes(l) && d) return { error: K, winningSide: d, matchUpStatus: l };
|
|
17215
17215
|
if (![void 0, ...N1].includes(l)) return $({ result: { error: vl }, info: "matchUpStatus does not exist", stack: "setMatchUpStatus" });
|
|
17216
17216
|
let h = or({ drawDefinition: u }), { matchUps: g } = Vt({ nextMatchUps: !0, tournamentRecord: o, inContext: !0, drawDefinition: u, matchUpsMap: h, event: f }), I = h.drawMatchUps.find((W) => W.matchUpId === p), y = g?.find((W) => W.matchUpId === p);
|
|
17217
|
-
if (!I || !g) return { error:
|
|
17217
|
+
if (!I || !g) return { error: Sr };
|
|
17218
17218
|
if ((I.winningSide || d) && l === "BYE") return { context: "Cannot have Bye with winningSide", error: km, matchUpStatus: l };
|
|
17219
17219
|
let S = y?.structureId, { structure: v } = De({ drawDefinition: u, structureId: S }), b = Dt(pt)(I.matchUpType), T = y?.drawPositions?.filter(Boolean), w = y?.matchUpTieId, U = Or({ matchUpId: w || p, inContextDrawMatchUps: g, drawDefinition: u });
|
|
17220
17220
|
Object.assign(e, { inContextDrawMatchUps: g, inContextMatchUp: y, matchUpTieId: w, matchUpsMap: h, targetData: U, structure: v, matchUp: I });
|
|
@@ -17294,7 +17294,7 @@ function H_({ drawDefinition: e, event: t, matchUpId: r }) {
|
|
|
17294
17294
|
if (!e) return { error: he };
|
|
17295
17295
|
if (!r) return { error: Er };
|
|
17296
17296
|
let { matchUp: i } = yt({ drawDefinition: e, event: t, matchUpId: r });
|
|
17297
|
-
return i ? Rr({ name: eI, element: i }) : { error:
|
|
17297
|
+
return i ? Rr({ name: eI, element: i }) : { error: Sr };
|
|
17298
17298
|
}
|
|
17299
17299
|
function f8({ substituteParticipantId: e, existingParticipantId: t, tournamentRecord: r, drawDefinition: i, sideNumber: n, matchUpId: a, event: o }) {
|
|
17300
17300
|
let s = "substituteParticipant";
|
|
@@ -17302,7 +17302,7 @@ function f8({ substituteParticipantId: e, existingParticipantId: t, tournamentRe
|
|
|
17302
17302
|
if (!a) return { error: Er };
|
|
17303
17303
|
if (!t || !e) return $({ result: { error: Ht }, stack: s });
|
|
17304
17304
|
let { matchUp: c } = yt({ drawDefinition: i, matchUpId: a, event: o });
|
|
17305
|
-
if (!c) return { error:
|
|
17305
|
+
if (!c) return { error: Sr };
|
|
17306
17306
|
if (!c.collectionId) return $({ result: { error: Yr }, stack: s });
|
|
17307
17307
|
let u = or({ drawDefinition: i }), { matchUps: l } = Vt({ tournamentParticipants: r?.participants, inContext: !0, drawDefinition: i, matchUpsMap: u }), d = l?.find((f) => f.matchUpId === a), p = l?.find((f) => f.matchUpId === d?.matchUpTieId)?.sides?.find((f) => f.participant.individualParticipants.some(({ participantId: m }) => m === t));
|
|
17308
17308
|
return !p || n && p.sideNumber !== n ? { error: fn } : p.participant?.individualParticipants?.map(We).filter((f) => f !== t)?.includes(e) ? VD({ newParticipantId: e, tieMatchUpId: a, existingParticipantId: t, substitution: !0, tournamentRecord: r, drawDefinition: i, event: o }) : $({ result: { error: fn }, stack: s });
|
|
@@ -17394,7 +17394,7 @@ function m8({ sourceMatchUpStatusCodes: e, propagateExitStatus: t, sourceMatchUp
|
|
|
17394
17394
|
return $({ result: { error: Hr }, stack: u });
|
|
17395
17395
|
}
|
|
17396
17396
|
function Vf(e) {
|
|
17397
|
-
let t = ve(e, [{ [_n]: !0, [
|
|
17397
|
+
let t = ve(e, [{ [_n]: !0, [Ur]: !0 }]);
|
|
17398
17398
|
if (t.error) return t;
|
|
17399
17399
|
let r = "setMatchUpStatus", i = ki(e);
|
|
17400
17400
|
if (!e.drawDefinition) {
|
|
@@ -17502,7 +17502,7 @@ function XD(e) {
|
|
|
17502
17502
|
if (!i) return $({ result: { error: Er }, stack: a });
|
|
17503
17503
|
if (!mt(i)) return $({ result: { error: K, matchUpId: i }, stack: a });
|
|
17504
17504
|
let o = or({ drawDefinition: r }), { matchUps: s } = Vt({ nextMatchUps: !0, inContext: !0, drawDefinition: r, matchUpsMap: o }), c = o.drawMatchUps.find((h) => h.matchUpId === i), u = s?.find((h) => h.matchUpId === i);
|
|
17505
|
-
if (!c || !s) return { error:
|
|
17505
|
+
if (!c || !s) return { error: Sr };
|
|
17506
17506
|
if (c.matchUpType !== ni) return { error: Yr };
|
|
17507
17507
|
let l = Or({ inContextDrawMatchUps: s, drawDefinition: r, matchUpId: i }), d = u?.structureId, { structure: p } = De({ drawDefinition: r, structureId: d });
|
|
17508
17508
|
if (Object.assign(e, { inContextDrawMatchUps: s, inContextMatchUp: u, matchUpsMap: o, targetData: l, structure: p, matchUp: c }), ys(e)) return { error: Ng };
|
|
@@ -17525,7 +17525,7 @@ function XD(e) {
|
|
|
17525
17525
|
return { ...L };
|
|
17526
17526
|
}
|
|
17527
17527
|
function Z_(e) {
|
|
17528
|
-
let t = ve(e, [{ [
|
|
17528
|
+
let t = ve(e, [{ [Ur]: !0, [Ya]: !0 }, { [Xu]: { [Hp]: !1, roundNumbers: !1 }, [f1]: "At least one must be provided", [Vr]: Ir }]);
|
|
17529
17529
|
if (t.error) return t;
|
|
17530
17530
|
let r = Zx(e);
|
|
17531
17531
|
if (r.error) return r;
|
|
@@ -17577,11 +17577,11 @@ function eL(e) {
|
|
|
17577
17577
|
return I8(e);
|
|
17578
17578
|
}
|
|
17579
17579
|
function tL(e) {
|
|
17580
|
-
let { tournamentRecord: t, drawDefinition: r, matchUpId: i, lineUps: n, event: a } = e, o = "applyLineUps", s = ve(e, [{ [Kt]: !0, [
|
|
17580
|
+
let { tournamentRecord: t, drawDefinition: r, matchUpId: i, lineUps: n, event: a } = e, o = "applyLineUps", s = ve(e, [{ [Kt]: !0, [Ur]: !0, [_n]: !0 }, { lineUps: !0, [Vr]: Ir }], o);
|
|
17581
17581
|
if (s.error) return s;
|
|
17582
17582
|
let c = t.participants || [], u = yt({ tournamentParticipants: c, inContext: !0, drawDefinition: r, matchUpId: i });
|
|
17583
17583
|
if (u.error) return u;
|
|
17584
|
-
if (!u.matchUp) return { error:
|
|
17584
|
+
if (!u.matchUp) return { error: Sr };
|
|
17585
17585
|
let { matchUp: l, structure: d } = u, { drawPositions: p, matchUpType: f } = l;
|
|
17586
17586
|
if (f !== pt) return { error: Yr };
|
|
17587
17587
|
if (!p?.length) return { error: Mp };
|
|
@@ -17622,7 +17622,7 @@ function tL(e) {
|
|
|
17622
17622
|
}
|
|
17623
17623
|
if (!Object.keys(h).length) return { error: uT };
|
|
17624
17624
|
if (u = yt({ drawDefinition: r, matchUpId: i }), u.error) return u;
|
|
17625
|
-
if (!u.matchUp) return { error:
|
|
17625
|
+
if (!u.matchUp) return { error: Sr };
|
|
17626
17626
|
let { matchUp: g } = u;
|
|
17627
17627
|
g.sides ??= [];
|
|
17628
17628
|
for (let I of [1, 2]) {
|
|
@@ -17855,7 +17855,7 @@ function gp({ scheduleCompletedMatchUps: e = !1, scheduleByeMatchUps: t = !1, er
|
|
|
17855
17855
|
function Wf(e) {
|
|
17856
17856
|
let { scheduleCompletedMatchUps: t = !1, scheduleByeMatchUps: r = !1, errorOnAnachronism: i, matchUpContextIds: n, removePriorValues: a, tournamentRecords: o, checkChronology: s, matchUpDetails: c, schedule: u } = e;
|
|
17857
17857
|
if (e.matchUpIds && !n) return gp(e);
|
|
17858
|
-
let l = ve(e, [{ [
|
|
17858
|
+
let l = ve(e, [{ [br]: !0 }, { [Xu]: { matchUpContextIds: !1, matchUpDetails: !1 }, [hi]: K, [Vr]: Ir }]);
|
|
17859
17859
|
if (l.error) return l;
|
|
17860
17860
|
if ((!c || n) && !u) return { error: we, info: "schedule is required" };
|
|
17861
17861
|
let d = [], p = 0, { matchUpDependencies: f } = nn({ tournamentRecords: o });
|
|
@@ -18078,7 +18078,7 @@ function R8({ scheduleAttributes: e = ["scheduledDate", "scheduledTime", "courtO
|
|
|
18078
18078
|
return { ...L, clearedScheduleCount: c };
|
|
18079
18079
|
}
|
|
18080
18080
|
function Ty(e) {
|
|
18081
|
-
let { checkPotentialRequestConflicts: t = !0, scheduleCompletedMatchUps: r, clearScheduleDates: i, scheduleDates: n = [], tournamentRecords: a, periodLength: o, useGarman: s, dryRun: c, pro: u } = e, l = ve(e, [{ [
|
|
18081
|
+
let { checkPotentialRequestConflicts: t = !0, scheduleCompletedMatchUps: r, clearScheduleDates: i, scheduleDates: n = [], tournamentRecords: a, periodLength: o, useGarman: s, dryRun: c, pro: u } = e, l = ve(e, [{ [br]: !0 }, { [dr]: (E) => !E || Array.isArray(E) && E.every(Mr), [s1]: !1, [Vr]: Ir }]);
|
|
18082
18082
|
if (l.error) return l;
|
|
18083
18083
|
let d = Ja({ tournamentRecords: a });
|
|
18084
18084
|
if (d.error) return d;
|
|
@@ -18320,7 +18320,7 @@ function aP(e) {
|
|
|
18320
18320
|
(qe(e.tieFormat) ? e.tieFormat : Oa({ namedFormat: r }))?.collectionDefinitions?.filter(Boolean).forEach((f) => {
|
|
18321
18321
|
let { category: m, collectionId: h, matchUpType: g, matchUpCount: I, gender: y } = f;
|
|
18322
18322
|
if (En(y)) {
|
|
18323
|
-
let S =
|
|
18323
|
+
let S = vr(y), v = I * (g === at ? 2 : 1);
|
|
18324
18324
|
S && u[S] < v && (u[S] = v);
|
|
18325
18325
|
} else di(y) && (u[Gt] < I && (u[Gt] = I), u[lr] < I && (u[lr] = I));
|
|
18326
18326
|
if (m) {
|
|
@@ -18695,7 +18695,7 @@ function Dy(e) {
|
|
|
18695
18695
|
if (i?.participantsCount === 0 || p.uniqueParticipants || z || !l || O || x) {
|
|
18696
18696
|
let me = (X || 0) + b + z, Ae = me, Ce = { [Gt]: 0, [lr]: 0 }, Ze, xe;
|
|
18697
18697
|
V === nt && ({ teamSize: Ze, genders: xe } = aP({ alternatesCount: b, tieFormatName: N, tieFormat: j, drawSize: B }), Object.keys(xe).forEach((je) => {
|
|
18698
|
-
let rt =
|
|
18698
|
+
let rt = vr(je);
|
|
18699
18699
|
rt && En(je) && xe[rt] && (Ce[rt] = B * xe[rt]);
|
|
18700
18700
|
}), Ae = Ze * ((B || 0) + z));
|
|
18701
18701
|
let Ye = i?.idPrefix ? `D-${m}-${i?.idPrefix}` : void 0, Te = Kl({ ...i, scaledParticipantsCount: p.scaledParticipantsCount || i.scaledParticipantsCount, participantsCount: Ae, consideredDate: l?.startDate, sex: O || i?.sex, rankingRange: p.rankingRange, uuids: p.uuids || h, ratingsParameters: u, participantType: H, gendersCount: Ce, idPrefix: Ye, category: x }).participants;
|
|
@@ -19015,7 +19015,7 @@ function wL({ keepExtensions: e = [], anonymizeParticipantNames: t = !0, tournam
|
|
|
19015
19015
|
}), d += 1;
|
|
19016
19016
|
}
|
|
19017
19017
|
let p = r.startDate || ji(/* @__PURE__ */ new Date()), f = (r.participants || []).filter(({ participantType: k }) => k === Ge), m = f.reduce((k, _) => {
|
|
19018
|
-
let O = _.person?.sex, F =
|
|
19018
|
+
let O = _.person?.sex, F = vr(O);
|
|
19019
19019
|
return F && En(O) ? k[F] += 1 : k[Ua] += 1, k;
|
|
19020
19020
|
}, { [Gt]: 0, [lr]: 0, [Ua]: 0 }), h = Object.assign({}, ...Object.keys(m).map((k) => ({ [k]: dL({ category: { ageCategoryCode: "O18" }, count: m[k], personExtensions: [], consideredDate: p, sex: k })?.persons || [] }))), g = { [Gt]: 0, [lr]: 0, [Ua]: 0 }, I = f.length, y = f.reduce((k, _) => {
|
|
19021
19021
|
let O = _.person?.addresses?.[0] || {}, { city: F, state: B, postalCode: W } = O;
|
|
@@ -19162,7 +19162,7 @@ function AL({ personRequests: e, personId: t, requests: r }) {
|
|
|
19162
19162
|
return { mergeCount: i.length };
|
|
19163
19163
|
}
|
|
19164
19164
|
function lP(e) {
|
|
19165
|
-
let { tournamentRecords: t, personRequests: r } = e, i = ve(e, [{ [
|
|
19165
|
+
let { tournamentRecords: t, personRequests: r } = e, i = ve(e, [{ [br]: !0 }]);
|
|
19166
19166
|
if (i.error) return i;
|
|
19167
19167
|
if (!r) return { ...L };
|
|
19168
19168
|
let n = Object.values(t);
|
|
@@ -19177,7 +19177,7 @@ function lP(e) {
|
|
|
19177
19177
|
return { ...L };
|
|
19178
19178
|
}
|
|
19179
19179
|
function CL(e) {
|
|
19180
|
-
let { tournamentRecords: t, requests: r, personId: i } = e, n = ve(e, [{ [
|
|
19180
|
+
let { tournamentRecords: t, requests: r, personId: i } = e, n = ve(e, [{ [br]: !0 }, { requests: !0, [Vr]: Ir, [hi]: K }]);
|
|
19181
19181
|
if (n.error) return n;
|
|
19182
19182
|
let a = r.map(({ requestId: u }) => u).filter(Boolean), { personRequests: o } = xs({ tournamentRecords: t }), s = (u) => {
|
|
19183
19183
|
o && (o[u] = o[u].map((l) => {
|
|
@@ -19192,7 +19192,7 @@ function CL(e) {
|
|
|
19192
19192
|
return c.length && AL({ personRequests: o, personId: i, requests: c }), lP({ tournamentRecords: t, personRequests: o });
|
|
19193
19193
|
}
|
|
19194
19194
|
function ML(e) {
|
|
19195
|
-
let { tournamentRecords: t, requestType: r, requestId: i, personId: n, date: a } = e, o = ve(e, [{ [
|
|
19195
|
+
let { tournamentRecords: t, requestType: r, requestId: i, personId: n, date: a } = e, o = ve(e, [{ [br]: !0 }]);
|
|
19196
19196
|
if (o.error) return o;
|
|
19197
19197
|
let { personRequests: s } = xs({ tournamentRecords: t }), c = (l) => {
|
|
19198
19198
|
s && (s[l] = s[l].filter((d) => (!r || d.requestType !== r) && (!i || d.requestId !== i) && (!a || d.date !== a)), s?.[l]?.length || delete s[l]);
|
|
@@ -19204,7 +19204,7 @@ function ML(e) {
|
|
|
19204
19204
|
return u || !s || !Object.keys(s).length ? Rr({ name: Nl, tournamentRecords: t, discover: !0 }) : lP({ tournamentRecords: t, personRequests: s });
|
|
19205
19205
|
}
|
|
19206
19206
|
function RL(e) {
|
|
19207
|
-
let { tournamentRecords: t, personId: r, requests: i } = e, n = ve(e, [{ [
|
|
19207
|
+
let { tournamentRecords: t, personId: r, requests: i } = e, n = ve(e, [{ [br]: !0, [zW]: !0 }, { requests: !0, [Vr]: Ir, [hi]: K }]);
|
|
19208
19208
|
if (n.error) return n;
|
|
19209
19209
|
let { personRequests: a } = xs({ tournamentRecords: t }), { mergeCount: o } = AL({ personRequests: a, personId: r, requests: i });
|
|
19210
19210
|
return o && a ? lP({ tournamentRecords: t, personRequests: a }) : { error: K };
|
|
@@ -20014,7 +20014,7 @@ function pP({ calculateStartTimeFromCourts: e = !0, defaultRecoveryMinutes: t =
|
|
|
20014
20014
|
return { venueId: U, scheduleTimes: w, dateScheduledMatchUpIds: E };
|
|
20015
20015
|
}
|
|
20016
20016
|
function pB(e) {
|
|
20017
|
-
let t = ve(e, [{ [
|
|
20017
|
+
let t = ve(e, [{ [br]: !0 }]);
|
|
20018
20018
|
if (t.error) return t;
|
|
20019
20019
|
let { removePriorValues: r, tournamentRecords: i, tournamentId: n, courtDayDate: a, matchUpId: o, courtId: s, drawId: c } = e, u = i[n];
|
|
20020
20020
|
if (!u) return { error: ie };
|
|
@@ -20060,14 +20060,14 @@ function fB({ scheduleCompletedMatchUps: e, minCourtGridRows: t = 10, tournament
|
|
|
20060
20060
|
return a = Wf({ tournamentRecords: r, matchUpDetails: f }), { ...a, scheduled: d, notScheduled: n };
|
|
20061
20061
|
}
|
|
20062
20062
|
function mB(e) {
|
|
20063
|
-
let { courtDayDate: t } = e, r = ve(e, [{ courtAssignments: !0, [Vr]: Ir, [hi]: we }, { [
|
|
20063
|
+
let { courtDayDate: t } = e, r = ve(e, [{ courtAssignments: !0, [Vr]: Ir, [hi]: we }, { [br]: !0 }]);
|
|
20064
20064
|
if (r.error) return r;
|
|
20065
20065
|
let i = e.courtAssignments.reduce((a, o) => {
|
|
20066
20066
|
let { tournamentId: s } = o;
|
|
20067
20067
|
return a[s] || (a[s] = []), a[s].push(o), a;
|
|
20068
20068
|
}, {}), n;
|
|
20069
20069
|
return Object.keys(i).every((a) => {
|
|
20070
|
-
let o = e[
|
|
20070
|
+
let o = e[br][a];
|
|
20071
20071
|
if (!o) return n = { error: ie }, !1;
|
|
20072
20072
|
let s = i[a].reduce((c, u) => {
|
|
20073
20073
|
let { drawId: l } = u;
|
|
@@ -20084,7 +20084,7 @@ function mB(e) {
|
|
|
20084
20084
|
}), n || L;
|
|
20085
20085
|
}
|
|
20086
20086
|
function hB(e) {
|
|
20087
|
-
let { tournamentRecords: t, allDateMatchUpIds: r = [], averageMatchUpMinutes: i = 90, recoveryMinutes: n = 0, recoveryMinutesMap: a, matchUpPotentialParticipantIds: o = {}, individualParticipantProfiles: s = {}, matchUpNotBeforeTimes: c = {}, matchUpDailyLimits: u = {}, checkPotentialRequestConflicts: l = !0, remainingScheduleTimes: d, clearScheduleDates: p, periodLength: f = 30, scheduleDate: m, matchUpIds: h, venueIds: g, startTime: I, endTime: y, dryRun: S } = e, v = ve(e, [{ [
|
|
20087
|
+
let { tournamentRecords: t, allDateMatchUpIds: r = [], averageMatchUpMinutes: i = 90, recoveryMinutes: n = 0, recoveryMinutesMap: a, matchUpPotentialParticipantIds: o = {}, individualParticipantProfiles: s = {}, matchUpNotBeforeTimes: c = {}, matchUpDailyLimits: u = {}, checkPotentialRequestConflicts: l = !0, remainingScheduleTimes: d, clearScheduleDates: p, periodLength: f = 30, scheduleDate: m, matchUpIds: h, venueIds: g, startTime: I, endTime: y, dryRun: S } = e, v = ve(e, [{ [br]: !0, [Hp]: !0 }, { [dr]: Mr, [hi]: qt, [qW]: !0 }, { [dr]: (H) => !H || !isNaN(H), [KW]: !1, [hi]: K, [QW]: !1, [XW]: !1 }]);
|
|
20088
20088
|
if (v.error) return v;
|
|
20089
20089
|
let b = e.competitionMatchUps ?? hn({ nextMatchUps: !0, tournamentRecords: t }).matchUps ?? [], T = e.matchUpDependencies ?? nn({ includeParticipantDependencies: !0, matchUps: b, tournamentRecords: t }).matchUpDependencies;
|
|
20090
20090
|
b.forEach((H) => {
|
|
@@ -20394,7 +20394,7 @@ function vB(e) {
|
|
|
20394
20394
|
}
|
|
20395
20395
|
function SB({ scheduleAttributes: e = [la, Do, Hc, Yc, zc, sn, ja, Kn, Aa], tournamentRecord: t, drawDefinition: r, matchUpId: i }) {
|
|
20396
20396
|
let n = "clearMatchUpSchedule", a = r ? kr({ matchUpFilters: { matchUpIds: [i] }, inContext: !1, drawDefinition: r }).matchUps?.[0] : tr({ matchUpFilters: { matchUpIds: [i] }, tournamentRecord: t, inContext: !1 }).matchUps?.[0];
|
|
20397
|
-
if (!a) return { error:
|
|
20397
|
+
if (!a) return { error: Sr };
|
|
20398
20398
|
let o = (a.timeItems ?? []).filter((s) => s?.itemType && !e.includes(s?.itemType));
|
|
20399
20399
|
return a.timeItems = o, He({ tournamentId: t.tournamentId, context: n, drawDefinition: r, matchUp: a }), { ...L };
|
|
20400
20400
|
}
|
|
@@ -21683,7 +21683,7 @@ function U2({ tournamentRecord: e, drawDefinition: t, matchUpId: r, drawId: i })
|
|
|
21683
21683
|
let o = tr({ tournamentRecord: e, inContext: !1 }).matchUps ?? [];
|
|
21684
21684
|
({ matchUp: a } = jx({ matchUps: o, matchUpId: r }));
|
|
21685
21685
|
}
|
|
21686
|
-
return a ? (a.timeItems && a.timeItems.find((o) => [Do, la].includes(o.itemType)) && (a.timeItems = a.timeItems.filter(({ itemType: o }) => ![Do, la].includes(o)), He({ tournamentId: e?.tournamentId, context: n, drawDefinition: t, matchUp: a })), { ...L }) : { error:
|
|
21686
|
+
return a ? (a.timeItems && a.timeItems.find((o) => [Do, la].includes(o.itemType)) && (a.timeItems = a.timeItems.filter(({ itemType: o }) => ![Do, la].includes(o)), He({ tournamentId: e?.tournamentId, context: n, drawDefinition: t, matchUp: a })), { ...L }) : { error: Sr };
|
|
21687
21687
|
}
|
|
21688
21688
|
function FP(e) {
|
|
21689
21689
|
if (typeof e?.venueId != "string") return { error: Ro };
|
|
@@ -21714,7 +21714,7 @@ function D2({ tournamentRecord: e, venueIds: t, force: r }) {
|
|
|
21714
21714
|
return { ...L };
|
|
21715
21715
|
}
|
|
21716
21716
|
function P2(e) {
|
|
21717
|
-
let { courtIds: t, dates: r } = e, i = ki(e), n = [{ [
|
|
21717
|
+
let { courtIds: t, dates: r } = e, i = ki(e), n = [{ [br]: !0, [Qg]: !0 }], a = ve(e, n);
|
|
21718
21718
|
if (a.error) return a;
|
|
21719
21719
|
for (let o of Object.values(i)) K9({ tournamentRecord: o, courtIds: t, dates: r });
|
|
21720
21720
|
return { ...L };
|
|
@@ -21728,7 +21728,7 @@ function K9({ tournamentRecord: e, courtIds: t, dates: r }) {
|
|
|
21728
21728
|
return { ...L };
|
|
21729
21729
|
}
|
|
21730
21730
|
function E2(e) {
|
|
21731
|
-
let { tournamentRecords: t, tournamentId: r, venueIds: i } = e, n = [{ [
|
|
21731
|
+
let { tournamentRecords: t, tournamentId: r, venueIds: i } = e, n = [{ [br]: !0, [Xg]: !0 }], a = ve(e, n);
|
|
21732
21732
|
if (a.error) return a;
|
|
21733
21733
|
let o = Object.keys(t).filter((s) => !r || s === r);
|
|
21734
21734
|
for (let s of o) {
|
|
@@ -21745,7 +21745,7 @@ function Q9({ tournamentRecord: e, venueIds: t }) {
|
|
|
21745
21745
|
return { ...L };
|
|
21746
21746
|
}
|
|
21747
21747
|
function N2(e) {
|
|
21748
|
-
let t = ki(e), r = [{ [
|
|
21748
|
+
let t = ki(e), r = [{ [br]: !0 }];
|
|
21749
21749
|
!e.enableAll && r.push({ [Qg]: !0 });
|
|
21750
21750
|
let i = ve(e, r);
|
|
21751
21751
|
if (i.error) return i;
|
|
@@ -21764,7 +21764,7 @@ function X9({ tournamentRecord: e, courtIds: t, enableAll: r, dates: i }) {
|
|
|
21764
21764
|
return { ...L };
|
|
21765
21765
|
}
|
|
21766
21766
|
function A2(e) {
|
|
21767
|
-
let t = ki(e), r = [{ [
|
|
21767
|
+
let t = ki(e), r = [{ [br]: !0 }];
|
|
21768
21768
|
!e.enableAll && r.push({ [Xg]: !0 });
|
|
21769
21769
|
let i = ve(e, r);
|
|
21770
21770
|
if (i.error) return i;
|
|
@@ -21773,7 +21773,7 @@ function A2(e) {
|
|
|
21773
21773
|
return { ...L };
|
|
21774
21774
|
}
|
|
21775
21775
|
function C2(e) {
|
|
21776
|
-
let { courtId: t, disableNotice: r, force: i } = e, n = ki(e), a = ve(e, [{ [
|
|
21776
|
+
let { courtId: t, disableNotice: r, force: i } = e, n = ki(e), a = ve(e, [{ [br]: !0, [l1]: !0 }]);
|
|
21777
21777
|
if (a.error) return a;
|
|
21778
21778
|
let o, s;
|
|
21779
21779
|
for (let c of Object.values(n)) {
|
|
@@ -22588,7 +22588,7 @@ VP.importMethods(bg, !0, 1);
|
|
|
22588
22588
|
var gr = VP, MQ = { competitionFormatName: "INTENNSE_STANDARD", matchUpFormat: "SET7XA-S:T10P", sport: "INTENNSE", timerProfile: { shotClockSeconds: 14, segmentTimers: [{ segmentType: "set", direction: "down", minutes: 10 }], changeoverSeconds: 0, setBreakSeconds: 120 }, timeoutRules: { count: 5, per: "MATCHUP", durationSeconds: 60 }, substitutionRules: { allowed: !0, allowedMatchUpTypes: ["SINGLES", "DOUBLES"], timing: "BETWEEN_POINTS" }, playerRules: { maxMinutesPerSegment: 6, matchUpTypes: ["SINGLES"] }, penaltyProfile: { sport: "INTENNSE", penaltyTypes: [{ penaltyType: "UNSPORTSMANLIKE_CONDUCT", label: "Unsportsmanlike", category: "conduct" }, { penaltyType: "BALL_ABUSE", label: "Ball Abuse", category: "conduct" }, { penaltyType: "RACKET_ABUSE", label: "Racket Abuse", category: "conduct" }], escalation: [{ step: 1, consequence: "warning" }, { step: 2, consequence: "point" }, { step: 3, consequence: "game" }, { step: 4, consequence: "default" }] }, pointProfile: { sport: "INTENNSE", pointResults: [{ result: "Ace", label: "Ace", isServe: !0 }, { result: "Winner", label: "Winner" }, { result: "Serve Winner", label: "Serve Winner", isServe: !0 }, { result: "Forced Error", label: "Forced Error", isError: !0 }, { result: "Unforced Error", label: "Unforced Error", isError: !0 }, { result: "Double Fault", label: "Double Fault", isServe: !0, isError: !0 }, { result: "Touch", label: "Touch" }, { result: "Penalty", label: "Penalty" }] }, pointMultipliers: [{ condition: { results: ["Ace"] }, value: 2 }, { condition: { results: ["Winner"] }, value: 2 }] }, RQ = { competitionFormatName: "TENNIS_STANDARD", matchUpFormat: "SET3-S:6/TB7", sport: "TENNIS", timerProfile: { changeoverSeconds: 90, setBreakSeconds: 120 }, timeoutRules: { count: 0, per: "MATCHUP" }, substitutionRules: { allowed: !1 }, penaltyProfile: { sport: "TENNIS", penaltyTypes: [{ penaltyType: "TIME_VIOLATION", label: "Time Violation", category: "time_violation" }, { penaltyType: "COACHING", label: "Coaching", category: "code_violation" }, { penaltyType: "UNSPORTSMANLIKE_CONDUCT", label: "Unsportsmanlike", category: "conduct" }, { penaltyType: "BALL_ABUSE", label: "Ball Abuse", category: "conduct" }, { penaltyType: "RACKET_ABUSE", label: "Racket Abuse", category: "conduct" }, { penaltyType: "VERBAL_ABUSE", label: "Verbal Abuse", category: "conduct" }, { penaltyType: "AUDIBLE_OBSCENITY", label: "Audible Obscenity", category: "conduct" }, { penaltyType: "VISIBLE_OBSCENITY", label: "Visible Obscenity", category: "conduct" }], escalation: [{ step: 1, consequence: "warning" }, { step: 2, consequence: "point" }, { step: 3, consequence: "game" }, { step: 4, consequence: "default" }] }, pointProfile: { sport: "TENNIS", pointResults: [{ result: "Ace", label: "Ace", isServe: !0 }, { result: "Winner", label: "Winner" }, { result: "Serve Winner", label: "Serve Winner", isServe: !0 }, { result: "Forced Error", label: "Forced Error", isError: !0 }, { result: "Unforced Error", label: "Unforced Error", isError: !0 }, { result: "Double Fault", label: "Double Fault", isServe: !0, isError: !0 }, { result: "Penalty", label: "Penalty" }] }, pointMultipliers: [] }, kQ = { INTENNSE_STANDARD: MQ, TENNIS_STANDARD: RQ }, xQ = { [rp]: { roundsToSeparate: void 0, policyName: "Nationality Code", policyAttributes: [{ key: "person.nationalityCode" }, { key: "individualParticipants.person.nationalityCode" }] } }, OQ = { [ca]: { policyName: "positionActionsUnrestricted", enabledStructures: [], otherFlightEntries: !0, disableRoundRestrictions: !0, activePositionOverrides: [ac, Cd] } }, FQ = { [ca]: { policyName: "positionActionsNoMovement", enabledStructures: [{ stages: [], stageSequences: [], enabledActions: [ac, lp, Uc], disabledActions: [] }] } }, _Q = { [ca]: { policyName: "positionActionsDisabled", enabledStructures: !1 } }, LQ = { [El]: { policyName: "Participant Privacy Policy", participant: { contacts: !1, individualParticipants: { onlineResources: !1, participantName: !0, participantOtherName: !0, participantId: !0, participantRole: !0, participantStatus: !0, penalties: !1, rankings: !0, ratings: !0, representing: !0, participantRoleResponsibilities: !1, participantType: !0, person: { addresses: !1, biographicalInformation: !1, birthDate: !1, contacts: !1, nationalityCode: !0, nativeFamilyName: !1, nativeGivenName: !1, onlineResources: !1, otherNames: !0, parentOrganisationId: !1, passportFamilyName: !1, passportGivenName: !1, personId: !1, personOtherIds: !1, previousNames: !1, sex: !1, standardFamilyName: !0, standardGivenName: !0, status: !1, tennisId: !1, wheelchair: !0 } }, individualParticipantIds: !0, onlineResources: !1, participantName: !0, participantOtherName: !0, participantId: !0, participantRole: !0, participantStatus: !0, penalties: !1, rankings: !0, ratings: !0, representing: !0, participantRoleResponsibilities: !1, participantType: !0, person: { addresses: !1, biographicalInformation: !1, birthDate: !1, contacts: !1, nationalityCode: !0, nativeFamilyName: !1, nativeGivenName: !1, onlineResources: !1, otherNames: !0, parentOrganisationId: !1, passportFamilyName: !1, passportGivenName: !1, personId: !1, personOtherIds: !1, previousNames: !1, sex: !1, standardFamilyName: !0, standardGivenName: !0, status: !1, tennisId: !1, wheelchair: !0 } } } }, BQ = { [Ci]: { processCodes: { incompleteAssignmentsOnDefault: ["RANKING.IGNORE"] }, defaultMatchUpFormat: Wi, allowDeletionWithScoresPresent: { drawDefinitions: !1, structures: !1 }, requireParticipantsForScoring: !1, requireAllPositionsAssigned: void 0, allowChangePropagation: !1, stage: { [de]: { stageSequence: { 1: { requireAllPositionsAssigned: !0 } } } }, matchUpFormats: [], matchUpStatusCodes: { [ai]: [], [Bn]: [], [ut]: [], [oi]: [], [er]: [], [ht]: [] } } }, Iv = "Personal circumstance", $Q = { [Ci]: { requireAllPositionsAssigned: !1, stage: { [de]: { stageSequence: { 1: { requireAllPositionsAssigned: !0 } } } }, defaultMatchUpFormat: Wi, matchUpFormats: [{ description: "Best of 3 tiebreak sets", matchUpFormat: Wi, categoryNames: [], categoryTypes: [] }, { description: "Two tiebreak sets, 7-point match tiebreak at one set all", matchUpFormat: "SET3-S:6/TB7-F:TB7" }, { description: "Two tiebreak sets, 10-point match tiebreak at one set all", matchUpFormat: "SET3-S:6/TB7-F:TB10" }, { description: "One standard tiebreak set to 6, 7-point tiebreak at 6 games all", matchUpFormat: "SET1-S:6/TB7" }, { description: "Best of 3 sets to 4", matchUpFormat: "SET3-S:4/TB7" }, { description: "Two out of three short sets to 4 with 5-point tiebreak at 3 games all", matchUpFormat: "SET3-S:4/TB5@3" }, { description: "One short set to 4, 7-point tiebreak at 4 games all", matchUpFormat: "SET1-S:4/TB7" }, { description: "One short set to 4, 5-point tiebreak at 3 games all", matchUpFormat: "SET1-S:4/TB5@3" }, { description: "Two short sets to 4, 10-point match tiebreak at one set all", matchUpFormat: "SET3-S:4/TB7-F:TB10" }, { description: "Two short sets to 4, 7-point match tiebreak at one set all", matchUpFormat: "SET3-S:4/TB7-F:TB7" }, { description: "One no advantage set to 5, tiebreak to 9 at 4-4", matchUpFormat: "SET1-S:5/TB9@4" }, { description: "One set to 6 with deciding game at 5 games all", matchUpFormat: "SET1-S:6NOAD" }, { description: "One short set to 4, deciding game is played at 3 games all", matchUpFormat: "SET1-S:4NOAD" }, { description: "Two short sets to 4 with deciding game at 3-3, 7-point match tiebreak at one set all", matchUpFormat: "SET3-S:4NOAD-F:TB7" }, { description: "8 game pro-set with 7 point tiebreak at 8 games all", matchUpFormat: "SET1-S:8/TB7" }, { description: "8 game pro-set with 7 point tiebreak at 7 games all", matchUpFormat: "SET1-S:8/TB7@7" }, { description: "Best of 3 10-point tiebreak games", matchUpFormat: "SET3-S:TB10" }, { description: "One 10-point tiebreak game", matchUpFormat: "SET1-S:TB10" }, { description: "Timed 20 minute game - game based", matchUpFormat: "SET1-S:T20" }], matchUpStatusCodes: { [ai]: [{ matchUpStatusCodeDisplay: "Abandoned", label: "Abandoned match", matchUpStatusCode: "OA" }], [Bn]: [{ matchUpStatusCodeDisplay: "Unplayed or Cancelled", label: "Cancelled match", matchUpStatusCode: "OC" }], [oi]: [{ matchUpStatusCodeDisplay: "Incomplete", label: "Incomplete match", matchUpStatusCode: "OI" }], [ut]: [{ description: "Disqualification for cause or ineligibility", label: "Disqualification (ineligibility)", matchUpStatusCodeDisplay: "Def [dq]", matchUpStatusCode: "DQ" }, { description: "Misconduct before or between matches", label: "Misconduct", matchUpStatusCodeDisplay: "Def [cond]", matchUpStatusCode: "DM" }, { description: "Failure to start match because of adult discipline", label: "Fail. (adult discipline)", matchUpStatusCodeDisplay: "Def [ad]", matchUpStatusCode: "D5" }, { description: "Refusal to start match for reason other than adult discipline, injury, illness, or personal circumstance. (After the Referee has conclusively confirmed that a player refuses to play a match, the Referee need not wait until the scheduled time of the match to records the result.)", label: "Refusal to start match", matchUpStatusCodeDisplay: "Def [refsl]", matchUpStatusCode: "D4" }, { label: "Not showing up", matchUpStatusCodeDisplay: "Def [ns]", matchUpStatusCode: "D6" }, { description: "Lateness for match including, but not limited to, intending to play but mistakenly arriving at the wrong time, location, or without proper equipment", label: "Lateness for match", matchUpStatusCodeDisplay: "Score + Def [late]", matchUpStatusCode: "D7" }, { label: "Double default", matchUpStatusCodeDisplay: "Def/Def", matchUpStatusCode: "DD" }, { description: "Refusal to continue playing a match for reason other than injury, illness, personal circumstance, or adult discipline", label: "Refusal to continue match", matchUpStatusCodeDisplay: "Def [refsl]", matchUpStatusCode: "D9" }, { description: "Default for receiving an injection, IV, or supplemental oxygen", label: "Default (PEDs)", matchUpStatusCodeDisplay: "Def [med]", matchUpStatusCode: "DI" }, { description: "Default under Point Penalty System", label: "Default (Point Penalty System)", matchUpStatusCodeDisplay: "Def [pps]", matchUpStatusCode: "DP" }], [ht]: [{ matchUpStatusCodeDisplay: "Wo [inj]", matchUpStatusCode: "W1", label: "Injury" }, { matchUpStatusCodeDisplay: "Wo [ill]", matchUpStatusCode: "W2", label: "Illness" }, { matchUpStatusCodeDisplay: "Wo [pc]", label: Iv, matchUpStatusCode: "W3" }, { matchUpStatusCodeDisplay: "Wo/Wo", matchUpStatusCode: "WOWO", label: "Double walkover" }, { matchUpStatusCodeDisplay: "Wo [Tae]", label: "Tournament Administrative Error", matchUpStatusCode: "W4" }, { matchUpStatusCodeDisplay: "Wo/Withdrawn", matchUpStatusCode: "W5", label: "Withdrawn" }], [er]: [{ matchUpStatusCodeDisplay: "Ret [inj]", matchUpStatusCode: "RJ", label: "Injury" }, { matchUpStatusCodeDisplay: "Ret [ill]", matchUpStatusCode: "RI", label: "Illness" }, { matchUpStatusCodeDisplay: "Ret [pc]", label: Iv, matchUpStatusCode: "RC" }, { description: "Retirement because of adult discipline", label: "Ret. (adult discipline)", matchUpStatusCodeDisplay: "Ret [ad]", matchUpStatusCode: "RD" }, { description: "A player who retires from a match remains eligible for consolations, place playoffs, doubles and subsequent round robin matches", matchUpStatusCodeDisplay: "Ret [elg]", label: "Ret. (eligible)", matchUpStatusCode: "RU" }], [ua]: [{ matchUpStatusCodeDisplay: "Wd [inj]", matchUpStatusCode: "WD.INJ", label: "Injury" }, { matchUpStatusCodeDisplay: "Wd [ill]", matchUpStatusCode: "WD.ILL", label: "Illness" }, { matchUpStatusCodeDisplay: "Wd [pc]", label: Iv, matchUpStatusCode: "WD.PC" }, { matchUpStatusCodeDisplay: "Wd/Wd", matchUpStatusCode: "WD.WD", label: "Double withdrawal" }, { label: "Tournament Administrative Error", matchUpStatusCodeDisplay: "Wd [Tae]", matchUpStatusCode: "WD.TAE" }] } } }, VQ = { [Bi]: { seedingProfile: { positioning: Gp }, validSeedPositions: { ignore: !0 }, duplicateSeedNumbers: !0, drawSizeProgression: !0, policyName: "ITF SEEDING", seedsCountThresholds: [{ drawSize: 4, minimumParticipantCount: 3, seedsCount: 2 }, { drawSize: 16, minimumParticipantCount: 12, seedsCount: 4 }, { drawSize: 32, minimumParticipantCount: 24, seedsCount: 8 }, { drawSize: 64, minimumParticipantCount: 48, seedsCount: 16 }, { drawSize: 128, minimumParticipantCount: 97, seedsCount: 32 }, { drawSize: 256, minimumParticipantCount: 192, seedsCount: 64 }] } }, GQ = { POLICY_AVOIDANCE_COUNTRY: xQ, POLICY_POSITION_ACTIONS_DEFAULT: dO, POLICY_POSITION_ACTIONS_DISABLED: _Q, POLICY_POSITION_ACTIONS_NO_MOVEMENT: FQ, POLICY_POSITION_ACTIONS_UNRESTRICTED: OQ, POLICY_PRIVACY_DEFAULT: LQ, POLICY_ROUND_NAMING_DEFAULT: hw, POLICY_SCHEDULING_DEFAULT: HF, POLICY_SCORING_DEFAULT: BQ, POLICY_SCORING_USTA: $Q, POLICY_SEEDING_ITF: VQ, POLICY_SEEDING_DEFAULT: MF }, os = { competitionFormats: kQ, ratingsParameters: rr, matchUpFormats: MW, countryToFlag: j1, tieFormats: s_, countries: Io, policies: GQ, flagIOC: Nq }, Yf = {};
|
|
22589
22589
|
Fe(Yf, { activeMatchUpStatuses: () => HT, auditConstants: () => y7, competitionFormatConstants: () => QQ, completedMatchUpStatuses: () => Bt, directingMatchUpStatuses: () => A1, displayConstants: () => j5, drawDefinitionConstants: () => AT, entryStatusConstants: () => _q, errorConditionConstants: () => Tj, eventConstants: () => FW, extensionConstants: () => v1, flightConstants: () => M7, genderConstants: () => Lg, keyValueConstants: () => kz, matchUpActionConstants: () => K5, matchUpStatusConstants: () => ma, matchUpTypes: () => WG, nonDirectingMatchUpStatuses: () => C1, particicipantsRequiredMatchUpStatuses: () => E1, participantConstants: () => Eq, participantRoles: () => kw, participantTypes: () => Pd, penaltyConstants: () => mX, policyConstants: () => lq, positionActionConstants: () => ZY, rankingConstants: () => $K, ratingConstants: () => GH, recoveryTimeRequiredMatchUpStatuses: () => Tq, requestConstants: () => D8, resourceContants: () => UW, resultConstants: () => nj, scaleConstants: () => oq, scheduleConstants: () => pH, sortingConstants: () => L7, surfaceConstants: () => SX, tieFormatConstants: () => RW, timeItemConstants: () => oH, topicConstants: () => Uq, tournamentConstants: () => cO, upcomingMatchUpStatuses: () => M1, validMatchUpStatuses: () => N1, venueConstants: () => wX, weekdayConstants: () => f_ });
|
|
22590
22590
|
var jQ = "INTENNSE_STANDARD", WQ = "TENNIS_STANDARD", qQ = "MATCHUP", HQ = "HALF", YQ = "SEGMENT", zQ = "BETWEEN_GAMES", KQ = "BETWEEN_POINTS", QQ = { INTENNSE_STANDARD: jQ, TENNIS_STANDARD: WQ, MATCHUP: qQ, SET: "SET", HALF: HQ, SEGMENT: YQ, BETWEEN_GAMES: zQ, BETWEEN_POINTS: KQ, ANY: "ANY" }, XQ = "Coaching", JQ = "Ball Abuse", ZQ = "Racket Abuse", eX = "Verbal Abuse", tX = "INELIGIBILITY", rX = "Physical Abuse", iX = "Unsportmanlike Conduct", nX = "Dress Code Violation", aX = "Equipment Violation", oX = "Leaving the court", sX = "Failure to complete", cX = "No Show", uX = "Other", lX = "REFUSAL_TO_PLAY", dX = "PROHIBITED_SUBSTANCE", pX = "Puncuality", fX = "Failure to sign in", mX = { COACHING: XQ, BALL_ABUSE: JQ, RACKET_ABUSE: ZQ, VERBAL_ABUSE: eX, PHYSICAL_ABUSE: rX, INELIGIBILITY: tX, UNSPORTSMANLIKE_CONDUCT: iX, PROHIBITED_SUBSTANCE: dX, DRESS_CODE_VIOLATION: nX, EQUIMENT_VIOLATION: aX, LEAVING_THE_COURT: oX, REFUSAL_TO_PLAY: lX, FAILURE_TO_COMPLETE: sX, NO_SHOW: cX, OTHER: uX, PUNCTUALITY: pX, FAILUIRE_TO_SIGN_IN: fX }, hX = "CLAY", gX = "HARD", IX = "GRASS", yX = "CARPET", vX = "ARTIFICIAL", SX = { CLAY: hX, HARD: gX, GRASS: IX, CARPET: yX, ARTIFICIAL: vX }, bX = "INDOOR", TX = "OUTDOOR", wX = { INDOOR: bX, OUTDOOR: TX };
|
|
22591
|
-
const UX = (e) =>
|
|
22591
|
+
const UX = (e) => Tr("chc-flag", e?.variant && `chc-flag--${e.variant}`);
|
|
22592
22592
|
function DX({ matchUp: e, individualParticipant: t, spacer: r }) {
|
|
22593
22593
|
const i = t?.person?.iso2NationalityCode || "", n = i ? os.countryToFlag(i)?.slice(0, 4) : "", a = document.createElement("span"), o = e?.matchUpType?.toLowerCase();
|
|
22594
22594
|
return r || (a.className = UX({ variant: o })), a.innerHTML = r ? "" : n, a;
|
|
@@ -22626,7 +22626,7 @@ function sN(e) {
|
|
|
22626
22626
|
BYE: u?.placeHolders?.bye || EX,
|
|
22627
22627
|
TBD: u?.placeHolders?.tbd || NX
|
|
22628
22628
|
}, d = n?.participantName, p = (D) => {
|
|
22629
|
-
|
|
22629
|
+
yr(c?.participantClick) && (D.stopPropagation(), c.participantClick({
|
|
22630
22630
|
individualParticipant: n,
|
|
22631
22631
|
pointerEvent: D,
|
|
22632
22632
|
matchUp: a,
|
|
@@ -22650,7 +22650,7 @@ function sN(e) {
|
|
|
22650
22650
|
I.className = _V({ variant: s });
|
|
22651
22651
|
const y = a?.roundNumber === 1, S = a?.drawType === "FEED_IN" && a?.roundNumber > 1 && // Not first round (already covered)
|
|
22652
22652
|
r?.drawPosition && !r?.sourceMatchUp, v = y || S, b = u?.persistInputFields;
|
|
22653
|
-
if (u?.inlineAssignment &&
|
|
22653
|
+
if (u?.inlineAssignment && yr(c?.assignParticipant) && yr(u?.participantProvider) && v && // Only first round or feed-in sides
|
|
22654
22654
|
(!r?.bye || b) && // In persist mode, BYE can be reassigned
|
|
22655
22655
|
(!r?.qualifier || b) && a && (!d || // No participant assigned yet
|
|
22656
22656
|
r?.bye || // BYE assigned (in persist mode, since canAssign checks persistMode)
|
|
@@ -22690,7 +22690,7 @@ function sN(e) {
|
|
|
22690
22690
|
const E = XV(e);
|
|
22691
22691
|
return f.appendChild(E), { element: f };
|
|
22692
22692
|
}
|
|
22693
|
-
const AX = (e) =>
|
|
22693
|
+
const AX = (e) => Tr("chc-pill", e?.variant && `chc-pill--${e.variant}`), { WALKOVER: CX, DEFAULTED: MX, DOUBLE_WALKOVER: RX, DOUBLE_DEFAULT: kX, ABANDONED: xX } = ma;
|
|
22694
22694
|
function OX({ matchUpStatus: e }) {
|
|
22695
22695
|
const t = e?.toLowerCase(), i = [
|
|
22696
22696
|
"defaulted",
|
|
@@ -22825,21 +22825,33 @@ function eJ({
|
|
|
22825
22825
|
}) {
|
|
22826
22826
|
const a = document.createElement("div");
|
|
22827
22827
|
a.className = ZX(), a.classList.add("tmx-rh"), a.setAttribute("roundNumber", String(i));
|
|
22828
|
-
const o =
|
|
22829
|
-
|
|
22830
|
-
const
|
|
22831
|
-
|
|
22832
|
-
|
|
22833
|
-
|
|
22834
|
-
|
|
22835
|
-
|
|
22828
|
+
const o = yr(e?.roundVisibilityClick), s = yr(e?.roundHeaderClick);
|
|
22829
|
+
s && (a.onclick = (p) => e.roundHeaderClick({ roundNumber: i, roundProfile: r, roundMatchUps: t, context: n, pointerEvent: p }));
|
|
22830
|
+
const c = r?.[i]?.roundName;
|
|
22831
|
+
if (!c) return a;
|
|
22832
|
+
const u = document.createElement("div");
|
|
22833
|
+
u.style.cssText = "display:flex; flex-direction:row; justify-content:space-between;";
|
|
22834
|
+
const l = document.createElement("div");
|
|
22835
|
+
l.textContent = c, u.appendChild(l);
|
|
22836
|
+
const d = document.createElement("div");
|
|
22837
|
+
if (d.style.cssText = "display:flex; align-items:center; gap:4px;", o) {
|
|
22838
|
+
const p = document.createElement("i");
|
|
22839
|
+
p.className = "fa-solid fa-eye tmx-rh-vis", p.style.cssText = "cursor:pointer; font-size:0.85rem; color:inherit; opacity:0.7; transition:opacity 0.15s;", p.onmouseenter = () => p.style.opacity = "1", p.onmouseleave = () => p.style.opacity = "0.7", p.onclick = (f) => {
|
|
22840
|
+
f.stopPropagation(), e.roundVisibilityClick({ roundNumber: i, roundProfile: r, roundMatchUps: t, context: n, pointerEvent: f });
|
|
22841
|
+
}, d.appendChild(p);
|
|
22842
|
+
}
|
|
22843
|
+
if (s) {
|
|
22844
|
+
const p = document.createElement("span");
|
|
22845
|
+
p.style.cssText = "font-weight:bold; cursor:pointer;", p.textContent = "⋮", d.appendChild(p);
|
|
22846
|
+
}
|
|
22847
|
+
return u.appendChild(d), a.appendChild(u), a;
|
|
22836
22848
|
}
|
|
22837
|
-
const F2 = () => "chc-round-container", tJ = () => "chc-structure", _2 = (e) =>
|
|
22849
|
+
const F2 = () => "chc-round-container", tJ = () => "chc-structure", _2 = (e) => Tr("chc-round", e?.variant === "adHoc" && "chc-round--adhoc"), rJ = (e) => Tr(
|
|
22838
22850
|
"chc-group-separator",
|
|
22839
22851
|
e?.variant === 0 && "chc-group-separator--0",
|
|
22840
22852
|
e?.roundOrder === "first" && "chc-group-separator--round-first",
|
|
22841
22853
|
e?.roundOrder === "last" && "chc-group-separator--round-last"
|
|
22842
|
-
), iJ = () => "chc-group-name", cN = (e) =>
|
|
22854
|
+
), iJ = () => "chc-group-name", cN = (e) => Tr("chc-results-item", e?.variant && `chc-results-item--${e.variant}`), nJ = () => "chc-results-info";
|
|
22843
22855
|
function aJ() {
|
|
22844
22856
|
return "chc-selected-matchup";
|
|
22845
22857
|
}
|
|
@@ -22848,7 +22860,7 @@ function sJ({ configuration: e }) {
|
|
|
22848
22860
|
return e?.matchUpHover ? "chc-matchup chc-matchup--custom-hover" : "chc-matchup";
|
|
22849
22861
|
}
|
|
22850
22862
|
function cJ({ variant: e }) {
|
|
22851
|
-
return
|
|
22863
|
+
return Tr(
|
|
22852
22864
|
"chc-center-info",
|
|
22853
22865
|
e != null && `chc-center-info--${e}`
|
|
22854
22866
|
);
|
|
@@ -22862,7 +22874,7 @@ function dJ({
|
|
|
22862
22874
|
matchUp: n
|
|
22863
22875
|
}) {
|
|
22864
22876
|
const a = document.createElement("div");
|
|
22865
|
-
|
|
22877
|
+
yr(e?.centerInfoClick) && (a.onclick = (l) => e.centerInfoClick({ matchUp: n, sideNumber: r, pointerEvent: l })), a.className = Tr(cJ({ variant: r }), i), a.classList.add("tmx-ci"), a.setAttribute("sideNumber", String(r));
|
|
22866
22878
|
const o = document.createElement("div");
|
|
22867
22879
|
o.className = uJ();
|
|
22868
22880
|
const s = document.createElement("div");
|
|
@@ -22883,7 +22895,7 @@ function pJ({
|
|
|
22883
22895
|
}) {
|
|
22884
22896
|
const i = parseInt(window.getComputedStyle(document.body).getPropertyValue("font-size")), n = e?.configuration || {}, a = n?.connectorWidth || 16, o = n.centerInfo ? lN.centerInfo * i : 0, s = n.scheduleInfo ? lN.scheduleInfo * i : 0, u = (60 + (n.showAddress ? i : 0)) * (t ? 1.3 : 1) + o, l = u * r, d = (u + s) * r;
|
|
22885
22897
|
return (p) => {
|
|
22886
|
-
const f =
|
|
22898
|
+
const f = Tr(
|
|
22887
22899
|
"chc-link",
|
|
22888
22900
|
p.isFirstRound && "chc-link--first-round",
|
|
22889
22901
|
p.link === "mr" && "chc-link--no-link",
|
|
@@ -22905,11 +22917,11 @@ function pJ({
|
|
|
22905
22917
|
};
|
|
22906
22918
|
};
|
|
22907
22919
|
}
|
|
22908
|
-
const L2 = (e) => (t) =>
|
|
22920
|
+
const L2 = (e) => (t) => Tr(
|
|
22909
22921
|
"chc-score-wrapper",
|
|
22910
22922
|
(t?.sideNumber === 1 || String(t?.sideNumber) === "1") && "chc-score-wrapper--side1",
|
|
22911
22923
|
t?.fontSize === "small" && "chc-score-wrapper--small"
|
|
22912
|
-
), fJ = () => "chc-tiebreak", B2 = (e) =>
|
|
22924
|
+
), fJ = () => "chc-tiebreak", B2 = (e) => Tr("chc-game-score", e?.variant && `chc-game-score--${e.variant}`), mJ = () => "chc-game-wrapper";
|
|
22913
22925
|
function hJ({ value: e } = {}) {
|
|
22914
22926
|
const t = document.createElement("input");
|
|
22915
22927
|
return t.onclick = (r) => r.target.select(), t.className = B2(), t.value = String(e || ""), t;
|
|
@@ -22938,7 +22950,7 @@ function IJ({
|
|
|
22938
22950
|
matchUp: n
|
|
22939
22951
|
}) {
|
|
22940
22952
|
const a = r?.configuration?.winnerChevron, o = r?.configuration?.gameScoreOnly, s = n?.score?.sets || [], c = r?.configuration?.scoreBox, u = e ? i === 2 ? e : e - 1 : void 0, l = (f) => {
|
|
22941
|
-
|
|
22953
|
+
yr(t?.scoreClick) && (f.stopPropagation(), t.scoreClick({ pointerEvent: f, matchUp: n }));
|
|
22942
22954
|
}, d = document.createElement("div");
|
|
22943
22955
|
d.className = L2()({
|
|
22944
22956
|
...!c && i === 1 && { sideNumber: 1 },
|
|
@@ -23249,11 +23261,11 @@ function wJ({
|
|
|
23249
23261
|
c && (d += ", hh:mm A", l += `T${c}`);
|
|
23250
23262
|
const p = i ? TJ(l).format(d) : "Not scheduled", f = n && a?.toString().startsWith(n) && a || // ensure no duplication of venuAbbreviation
|
|
23251
23263
|
n && a && `${n} ${a}` || a || n || "", m = document.createElement("div");
|
|
23252
|
-
m.className = yJ(), m.classList.add("tmx-sch"),
|
|
23264
|
+
m.className = yJ(), m.classList.add("tmx-sch"), yr(t?.scheduleClick) && (m.onclick = (S) => t.scheduleClick({ matchUp: e, pointerEvent: S }));
|
|
23253
23265
|
const h = document.createElement("div");
|
|
23254
23266
|
h.innerHTML = p, m.append(h);
|
|
23255
23267
|
const g = (S) => {
|
|
23256
|
-
|
|
23268
|
+
yr(t?.venueClick) && (S.stopPropagation(), t.venueClick({
|
|
23257
23269
|
pointerEvent: S,
|
|
23258
23270
|
matchUp: e
|
|
23259
23271
|
}));
|
|
@@ -23276,7 +23288,7 @@ function pN({
|
|
|
23276
23288
|
matchUp: a
|
|
23277
23289
|
}) {
|
|
23278
23290
|
const s = (r?.configuration || {})?.scheduleInfo, c = a?.score?.scoreStringSide1, u = r?.configuration?.scoreBox && c, l = a?.matchUpStatus && UJ.includes(a.matchUpStatus), d = a?.readyToScore && t?.scoreClick && !gr.checkScoreHasValue({ matchUp: a }) && !l, p = document.createElement("div");
|
|
23279
|
-
if (p.className =
|
|
23291
|
+
if (p.className = Tr(BX(), n), p.classList.add("tmx-sd"), p.setAttribute("sideNumber", String(i)), s && i === 1) {
|
|
23280
23292
|
const h = wJ({ matchUp: a, eventHandlers: t });
|
|
23281
23293
|
p.appendChild(h);
|
|
23282
23294
|
}
|
|
@@ -23305,7 +23317,7 @@ function pN({
|
|
|
23305
23317
|
}
|
|
23306
23318
|
if (d) {
|
|
23307
23319
|
const h = (I) => {
|
|
23308
|
-
|
|
23320
|
+
yr(t?.scoreClick) && (I.stopPropagation(), t.scoreClick({ pointerEvent: I, matchUp: a }));
|
|
23309
23321
|
}, g = document.createElement("div");
|
|
23310
23322
|
g.className = L2()({
|
|
23311
23323
|
...!u && i === 1 && { sideNumber: 1 },
|
|
@@ -23319,9 +23331,9 @@ function My(e) {
|
|
|
23319
23331
|
isFirstRound: g,
|
|
23320
23332
|
link: y
|
|
23321
23333
|
}), v = S.className, b = t?.configuration || {}, { resultsInfo: T, centerInfo: w } = b || {}, U = e.eventHandlers || {}, E = (M) => {
|
|
23322
|
-
|
|
23334
|
+
yr(U?.matchUpClick) && U.matchUpClick({ pointerEvent: M, matchUp: i });
|
|
23323
23335
|
}, D = document.createElement("div");
|
|
23324
|
-
D.className =
|
|
23336
|
+
D.className = Tr(t?.theme, e?.className, "matchup", oJ()), D.classList.add("tmx-m"), D.setAttribute("id", i?.matchUpId), D.onclick = E;
|
|
23325
23337
|
const P = document.createElement("div");
|
|
23326
23338
|
P.className = sJ({ configuration: b });
|
|
23327
23339
|
const N = ({ sideNumber: M }) => {
|
|
@@ -23416,7 +23428,7 @@ function PJ({
|
|
|
23416
23428
|
...E && { roundOrder: E }
|
|
23417
23429
|
}), y.appendChild(x);
|
|
23418
23430
|
const k = document.createElement("div");
|
|
23419
|
-
if (k.className = iJ(),
|
|
23431
|
+
if (k.className = iJ(), yr(r?.groupHeaderClick)) {
|
|
23420
23432
|
const { drawId: _, containerStructureId: O } = m[0];
|
|
23421
23433
|
y.onclick = (F) => r.groupHeaderClick({
|
|
23422
23434
|
structureId: v[C],
|
|
@@ -23491,7 +23503,7 @@ function oue({
|
|
|
23491
23503
|
const fN = () => "chc-container";
|
|
23492
23504
|
function sue({ content: e, theme: t }) {
|
|
23493
23505
|
const r = document.createElement("div");
|
|
23494
|
-
return r.className = t ?
|
|
23506
|
+
return r.className = t ? Tr(fN(), t) : fN(), t && r.classList.add(t), typeof e == "string" ? r.innerHTML = e : r.appendChild(e), r;
|
|
23495
23507
|
}
|
|
23496
23508
|
function Ql(e, t) {
|
|
23497
23509
|
return `chc-theme-${e.replace("-theme", "")}`;
|
|
@@ -30710,7 +30722,7 @@ function yue(e) {
|
|
|
30710
30722
|
}), Ko.show(), Ko.setProps({ interactive: !0 })), Ko;
|
|
30711
30723
|
}
|
|
30712
30724
|
function vue() {
|
|
30713
|
-
return "0.9.28-beta.
|
|
30725
|
+
return "0.9.28-beta.6";
|
|
30714
30726
|
}
|
|
30715
30727
|
const Sue = {
|
|
30716
30728
|
// Best of 3 sets
|