tods-competition-factory 2.2.22 → 2.2.25

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.
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  function factoryVersion() {
6
- return '2.2.22';
6
+ return '2.2.25';
7
7
  }
8
8
 
9
9
  const SINGLES_MATCHUP = 'SINGLES';
@@ -10954,7 +10954,7 @@ function getStructureMatchUps({ requireParticipants = true, scheduleVisibilityFi
10954
10954
  }
10955
10955
  if (matchUp.matchUpType === TEAM$2)
10956
10956
  includesTeamMatchUps = true;
10957
- const isCollectionMatchUp = matchUp.collectionId;
10957
+ const isCollectionMatchUp = Boolean(matchUp.collectionId);
10958
10958
  const collectionSidesAssigned = isCollectionMatchUp && matchUp.sides?.every((side) => side.participantId);
10959
10959
  const drawPositionsFilled = !isCollectionMatchUp && matchUp.drawPositions?.filter(Boolean).length === 2;
10960
10960
  const drawPositionsAssigned = !isCollectionMatchUp &&
@@ -12160,9 +12160,9 @@ function isActiveMatchUp({ matchUpStatus, winningSide, tieMatchUps, sides, score
12160
12160
  function getStructureDrawPositionProfiles(params) {
12161
12161
  const { drawDefinition, findContainer, structureId, event } = params;
12162
12162
  let structure = params.structure;
12163
- const matchUpFilters = { isCollectionMatchUp: false };
12164
12163
  const { containedStructures } = getContainedStructures({ drawDefinition });
12165
12164
  const containedStructureIds = structureId ? containedStructures[structureId] || [] : [];
12165
+ const matchUpFilters = { isCollectionMatchUp: false };
12166
12166
  if (!structure) {
12167
12167
  const result = findStructure({ drawDefinition, structureId });
12168
12168
  if (result.error)
@@ -19306,6 +19306,7 @@ function qualifierProgression({ targetRoundNumber = 1, tournamentRecord, drawDef
19306
19306
  const { matchUps } = getAllStructureMatchUps({
19307
19307
  matchUpFilters: {
19308
19308
  ...(qualifyingRoundNumber && { roundNumbers: [qualifyingRoundNumber] }),
19309
+ isCollectionMatchUp: false,
19309
19310
  hasWinningSide: true,
19310
19311
  },
19311
19312
  afterRecoveryTimes: false,
@@ -26165,7 +26166,7 @@ function matchUpActions(params) {
26165
26166
  if (!structureId)
26166
26167
  return { validActions };
26167
26168
  const isAdHocMatchUp = isAdHoc({ structure });
26168
- const isCollectionMatchUp = matchUp.collectionId;
26169
+ const isCollectionMatchUp = Boolean(matchUp.collectionId);
26169
26170
  if (isAdHocMatchUp && !isCollectionMatchUp) {
26170
26171
  const adHocValidActions = adHocMatchUpActions({
26171
26172
  restrictAdHocRoundParticipants,
@@ -26522,6 +26523,7 @@ function getValidQualifiersAction({ drawPositionInitialRounds, tournamentPartici
26522
26523
  const { matchUps } = getAllStructureMatchUps({
26523
26524
  matchUpFilters: {
26524
26525
  roundNumbers: [qualifyingRoundNumber],
26526
+ isCollectionMatchUp: false,
26525
26527
  hasWinningSide: true,
26526
26528
  },
26527
26529
  afterRecoveryTimes: false,