tods-competition-factory 1.8.35 → 1.8.37

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.
@@ -9988,15 +9988,16 @@ function addNationalityCode({
9988
9988
  persons.forEach(annotatePerson);
9989
9989
  }
9990
9990
 
9991
- function addIndividualParticipants({ participantMap }) {
9991
+ function addIndividualParticipants({ participantMap, template }) {
9992
9992
  const participantObjects = Object.values(participantMap);
9993
9993
  for (const participantObject of participantObjects) {
9994
9994
  const participant = participantObject.participant;
9995
9995
  if (participant.individualParticipantIds?.length) {
9996
9996
  participant.individualParticipants = [];
9997
9997
  for (const participantId of participant.individualParticipantIds) {
9998
+ const source = participantMap[participantId].participant;
9998
9999
  participant.individualParticipants.push(
9999
- participantMap[participantId].participant
10000
+ template ? attributeFilter({ template, source }) : source
10000
10001
  );
10001
10002
  }
10002
10003
  }
@@ -10094,8 +10095,10 @@ function getParticipantMap({
10094
10095
  withIOC
10095
10096
  });
10096
10097
  }
10097
- if (withIndividualParticipants)
10098
- addIndividualParticipants({ participantMap });
10098
+ if (withIndividualParticipants) {
10099
+ const template = isObject(withIndividualParticipants) ? withIndividualParticipants : void 0;
10100
+ addIndividualParticipants({ participantMap, template });
10101
+ }
10099
10102
  return { participantMap };
10100
10103
  }
10101
10104
  function signedIn(participant) {
@@ -10155,7 +10158,7 @@ function initializeParticipantId({ participantMap, participantId }) {
10155
10158
  participantMap[participantId] = {
10156
10159
  structureParticipation: {},
10157
10160
  potentialMatchUps: {},
10158
- scheduleConflicts: [],
10161
+ scheduleConflicts: {},
10159
10162
  scheduleItems: [],
10160
10163
  participant: {
10161
10164
  groupParticipantIds: [],