tods-competition-factory 0.53.0 → 0.53.4

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.
@@ -7015,7 +7015,7 @@ const countries = [{
7015
7015
  phone: '263'
7016
7016
  }];
7017
7017
 
7018
- var collectionDefinitions$3 = [
7018
+ var collectionDefinitions$4 = [
7019
7019
  {
7020
7020
  collectionName: "Doubles",
7021
7021
  matchUpCount: 3,
@@ -7031,11 +7031,37 @@ var collectionDefinitions$3 = [
7031
7031
  matchUpValue: 1
7032
7032
  }
7033
7033
  ];
7034
- var tieFormatName$2 = "COLLEGE_D3";
7034
+ var tieFormatName$3 = "COLLEGE_D3";
7035
+ var winCriteria$4 = {
7036
+ valueGoal: 5
7037
+ };
7038
+ var COLLEGE_D3$1 = {
7039
+ collectionDefinitions: collectionDefinitions$4,
7040
+ tieFormatName: tieFormatName$3,
7041
+ winCriteria: winCriteria$4
7042
+ };
7043
+
7044
+ var collectionDefinitions$3 = [
7045
+ {
7046
+ collectionName: "Doubles",
7047
+ collectionValue: 1,
7048
+ matchUpCount: 3,
7049
+ matchUpFormat: "SET1-S:6NOAD/TB7",
7050
+ matchUpType: "DOUBLES"
7051
+ },
7052
+ {
7053
+ collectionName: "Singles",
7054
+ matchUpCount: 6,
7055
+ matchUpFormat: "SET3-S:6NOAD/TB7",
7056
+ matchUpType: "SINGLES",
7057
+ matchUpValue: 1
7058
+ }
7059
+ ];
7060
+ var tieFormatName$2 = "COLLEGE_DEFAULT";
7035
7061
  var winCriteria$3 = {
7036
7062
  valueGoal: 5
7037
7063
  };
7038
- var COLLEGE_D3 = {
7064
+ var COLLEGE_DEFAULT$1 = {
7039
7065
  collectionDefinitions: collectionDefinitions$3,
7040
7066
  tieFormatName: tieFormatName$2,
7041
7067
  winCriteria: winCriteria$3
@@ -7044,24 +7070,24 @@ var COLLEGE_D3 = {
7044
7070
  var collectionDefinitions$2 = [
7045
7071
  {
7046
7072
  collectionName: "Doubles",
7047
- collectionValue: 1,
7048
7073
  matchUpCount: 3,
7049
- matchUpFormat: "SET1-S:6NOAD/TB7",
7050
- matchUpType: "DOUBLES"
7074
+ matchUpFormat: "SET1-S:8/TB7",
7075
+ matchUpType: "DOUBLES",
7076
+ matchUpValue: 1
7051
7077
  },
7052
7078
  {
7053
7079
  collectionName: "Singles",
7054
7080
  matchUpCount: 6,
7055
- matchUpFormat: "SET3-S:6NOAD/TB7",
7081
+ matchUpFormat: "SET3-S:6/TB7",
7056
7082
  matchUpType: "SINGLES",
7057
7083
  matchUpValue: 1
7058
7084
  }
7059
7085
  ];
7060
- var tieFormatName$1 = "COLLEGE_DEFAULT";
7086
+ var tieFormatName$1 = "COLLEGE_JUCO";
7061
7087
  var winCriteria$2 = {
7062
7088
  valueGoal: 5
7063
7089
  };
7064
- var COLLEGE_DEFAULT = {
7090
+ var COLLEGE_JUCO$1 = {
7065
7091
  collectionDefinitions: collectionDefinitions$2,
7066
7092
  tieFormatName: tieFormatName$1,
7067
7093
  winCriteria: winCriteria$2
@@ -7070,24 +7096,24 @@ var COLLEGE_DEFAULT = {
7070
7096
  var collectionDefinitions$1 = [
7071
7097
  {
7072
7098
  collectionName: "Doubles",
7073
- matchUpCount: 3,
7074
- matchUpFormat: "SET1-S:8/TB7",
7099
+ matchUpCount: 1,
7100
+ matchUpFormat: "SET1-S:6/TB10",
7075
7101
  matchUpType: "DOUBLES",
7076
7102
  matchUpValue: 1
7077
7103
  },
7078
7104
  {
7079
7105
  collectionName: "Singles",
7080
- matchUpCount: 6,
7081
- matchUpFormat: "SET3-S:6/TB7",
7106
+ matchUpCount: 2,
7107
+ matchUpFormat: "SET3-S:6/TB7-F:TB10",
7082
7108
  matchUpType: "SINGLES",
7083
7109
  matchUpValue: 1
7084
7110
  }
7085
7111
  ];
7086
- var tieFormatName = "COLLEGE_JUCO";
7112
+ var tieFormatName = "DOMINANT_DUO";
7087
7113
  var winCriteria$1 = {
7088
- valueGoal: 5
7114
+ valueGoal: 2
7089
7115
  };
7090
- var COLLEGE_JUCO = {
7116
+ var DOMINANT_DUO_TIE_FORMAT = {
7091
7117
  collectionDefinitions: collectionDefinitions$1,
7092
7118
  tieFormatName: tieFormatName,
7093
7119
  winCriteria: winCriteria$1
@@ -7154,17 +7180,18 @@ var collectionGroups = [
7154
7180
  groupName: "Day 3"
7155
7181
  }
7156
7182
  ];
7157
- var LAVER = {
7183
+ var LAVER_CUP_TIE_FORMAT = {
7158
7184
  winCriteria: winCriteria,
7159
7185
  collectionDefinitions: collectionDefinitions,
7160
7186
  collectionGroups: collectionGroups
7161
7187
  };
7162
7188
 
7163
7189
  const tieFormats = {
7164
- COLLEGE_D3,
7165
- COLLEGE_DEFAULT,
7166
- COLLEGE_JUCO,
7167
- LAVER
7190
+ COLLEGE_D3: COLLEGE_D3$1,
7191
+ COLLEGE_DEFAULT: COLLEGE_DEFAULT$1,
7192
+ COLLEGE_JUCO: COLLEGE_JUCO$1,
7193
+ DOMINANT_DUO: DOMINANT_DUO_TIE_FORMAT,
7194
+ LAVER_CUP: LAVER_CUP_TIE_FORMAT
7168
7195
  };
7169
7196
 
7170
7197
  const POLICY_AVOIDANCE_COUNTRY = {
@@ -23747,10 +23774,10 @@ function getMatchUpFormat({
23747
23774
  const eventDefaultMatchUpFormat = event === null || event === void 0 ? void 0 : event.matchUpFormat;
23748
23775
  const matchUpFormat = (matchUpResult === null || matchUpResult === void 0 ? void 0 : (_matchUpResult$matchU = matchUpResult.matchUp) === null || _matchUpResult$matchU === void 0 ? void 0 : _matchUpResult$matchU.matchUpFormat) || structureDefaultMatchUpFormat || drawDefaultMatchUpFormat || eventDefaultMatchUpFormat;
23749
23776
  return {
23750
- matchUpFormat,
23751
23777
  structureDefaultMatchUpFormat,
23778
+ eventDefaultMatchUpFormat,
23752
23779
  drawDefaultMatchUpFormat,
23753
- eventDefaultMatchUpFormat
23780
+ matchUpFormat
23754
23781
  };
23755
23782
  }
23756
23783
 
@@ -27456,7 +27483,7 @@ const scheduleGovernor$1 = {
27456
27483
  };
27457
27484
 
27458
27485
  function factoryVersion() {
27459
- return '0.53.0';
27486
+ return '0.53.4';
27460
27487
  }
27461
27488
 
27462
27489
  function attachPolicies$2({
@@ -31246,6 +31273,117 @@ const policyGovernor$1 = {
31246
31273
  getEventAppliedPolicies
31247
31274
  };
31248
31275
 
31276
+ const COLLEGE_DEFAULT = 'COLLEGE_DEFAULT';
31277
+ const COLLEGE_JUCO = 'COLLEGE_JUCO';
31278
+ const COLLEGE_D3 = 'COLLEGE_D3';
31279
+ const DOMINANT_DUO = 'DOMINANT_DUO';
31280
+ const LAVER_CUP = 'LAVER_CUP';
31281
+ const tieFormatConstants = {
31282
+ COLLEGE_D3,
31283
+ COLLEGE_DEFAULT,
31284
+ COLLEGE_JUCO,
31285
+ DOMINANT_DUO,
31286
+ LAVER_CUP
31287
+ };
31288
+
31289
+ const namedFormats = {
31290
+ STANDARD: {
31291
+ hydrate: true,
31292
+ doubles: {
31293
+ matchUpCount: 3,
31294
+ matchUpValue: 1
31295
+ },
31296
+ singles: {
31297
+ matchUpCount: 6,
31298
+ matchUpValue: 1
31299
+ },
31300
+ valueGoal: 5
31301
+ },
31302
+ [COLLEGE_D3]: {
31303
+ hydrate: true,
31304
+ doubles: {
31305
+ matchUpCount: 3,
31306
+ matchUpValue: 1,
31307
+ matchUpFormat: 'SET1-S:8/TB7@7'
31308
+ },
31309
+ singles: {
31310
+ matchUpCount: 6,
31311
+ matchUpValue: 1,
31312
+ matchUpFormat: 'SET3-S:6/TB7'
31313
+ },
31314
+ tieFormatName: 'COLLEGE_D3',
31315
+ valueGoal: 5
31316
+ },
31317
+ [COLLEGE_DEFAULT]: {
31318
+ hydrate: true,
31319
+ doubles: {
31320
+ matchUpCount: 3,
31321
+ collectionValue: 1,
31322
+ matchUpFormat: 'SET1-S:6NOAD/TB7'
31323
+ },
31324
+ singles: {
31325
+ matchUpCount: 6,
31326
+ matchUpValue: 1,
31327
+ matchUpFormat: 'SET3-S:6NOAD/TB7'
31328
+ },
31329
+ tieFormatName: 'COLLEGE_DEFAULT',
31330
+ valueGoal: 4
31331
+ },
31332
+ [COLLEGE_JUCO]: {
31333
+ hydrate: true,
31334
+ doubles: {
31335
+ matchUpCount: 3,
31336
+ matchUpValue: 1,
31337
+ matchUpFormat: 'SET1-S:8/TB7'
31338
+ },
31339
+ singles: {
31340
+ matchUpCount: 6,
31341
+ matchUpValue: 1,
31342
+ matchUpFormat: 'SET3-S:6/TB7'
31343
+ },
31344
+ tieFormatName: 'COLLEGE_JUCO',
31345
+ valueGoal: 5
31346
+ },
31347
+ [LAVER_CUP]: LAVER_CUP_TIE_FORMAT,
31348
+ [DOMINANT_DUO]: DOMINANT_DUO_TIE_FORMAT
31349
+ };
31350
+ const tieFormatDefaults = ({
31351
+ namedFormat,
31352
+ uuids = []
31353
+ } = {}) => {
31354
+ var _uuids, _uuids2;
31355
+
31356
+ if (!Object.keys(namedFormats).includes(namedFormat)) namedFormat = 'STANDARD';
31357
+ if (!Array.isArray(uuids)) uuids = [];
31358
+ const template = namedFormats[namedFormat];
31359
+
31360
+ if (!template.hydrate) {
31361
+ template.collectionDefinitions.forEach(collectionDefinition => collectionDefinition.collectionId = UUID());
31362
+ return template;
31363
+ }
31364
+
31365
+ const tieFormat = {
31366
+ winCriteria: {
31367
+ valueGoal: template.valueGoal
31368
+ },
31369
+ collectionDefinitions: [{
31370
+ collectionId: ((_uuids = uuids) === null || _uuids === void 0 ? void 0 : _uuids.pop()) || UUID(),
31371
+ collectionName: 'Doubles',
31372
+ matchUpType: DOUBLES$1,
31373
+ matchUpFormat: 'SET3-S:6/TB7-F:TB10',
31374
+ ...template.doubles
31375
+ }, {
31376
+ collectionId: ((_uuids2 = uuids) === null || _uuids2 === void 0 ? void 0 : _uuids2.pop()) || UUID(),
31377
+ collectionName: 'Singles',
31378
+ matchUpType: SINGLES$1,
31379
+ matchUpFormat: 'SET3-S:6/TB7',
31380
+ ...template.singles
31381
+ }]
31382
+ };
31383
+ if (template.tieFormatName) tieFormat.tieFormatName = template.tieFormatName;
31384
+ return tieFormat;
31385
+ };
31386
+
31249
31387
  function addEvent({
31250
31388
  tournamentRecord,
31251
31389
  event
@@ -31264,6 +31402,13 @@ function addEvent({
31264
31402
  endDate,
31265
31403
  eventType: SINGLES
31266
31404
  }, event);
31405
+
31406
+ if (event.eventType === TEAM$2 && event.tieFormatName && tieFormats[event.tieFormatName]) {
31407
+ eventRecord.tieFormat = tieFormatDefaults({
31408
+ namedFormat: event.tieFormatName
31409
+ });
31410
+ }
31411
+
31267
31412
  if (!eventRecord.eventId) eventRecord.eventId = UUID();
31268
31413
  const eventExists = tournamentRecord.events.reduce((exists, event) => {
31269
31414
  return exists || event.eventId === eventRecord.eventId;
@@ -36679,7 +36824,8 @@ function feedInChampionship(params = {}) {
36679
36824
 
36680
36825
  function generateTieMatchUps({
36681
36826
  tieFormat,
36682
- uuids
36827
+ uuids,
36828
+ isMock
36683
36829
  }) {
36684
36830
  const {
36685
36831
  collectionDefinitions
@@ -36694,7 +36840,7 @@ function generateTieMatchUps({
36694
36840
  const matchUps = generateRange(0, matchUpCount || 0).map(index => {
36695
36841
  const collectionPosition = index + 1;
36696
36842
  const matchUp = {
36697
- isMock: true,
36843
+ isMock,
36698
36844
  collectionId,
36699
36845
  matchUpType,
36700
36846
  matchUpFormat,
@@ -37286,6 +37432,7 @@ function generateDrawType(params = {}) {
37286
37432
  structureName,
37287
37433
  goesTo = true,
37288
37434
  stage = MAIN,
37435
+ isMock,
37289
37436
  uuids // qualifyingPositions, => passed through in params to treeMatchUps
37290
37437
  // qualifyingRound, => passed through in params to treeMatchUps
37291
37438
  // TODO: description => is this passed on?
@@ -37452,7 +37599,8 @@ function generateDrawType(params = {}) {
37452
37599
  const {
37453
37600
  tieMatchUps
37454
37601
  } = generateTieMatchUps({
37455
- tieFormat
37602
+ tieFormat,
37603
+ isMock
37456
37604
  });
37457
37605
  Object.assign(matchUp, {
37458
37606
  tieMatchUps,
@@ -37871,92 +38019,6 @@ function newDrawDefinition({
37871
38019
  });
37872
38020
  }
37873
38021
 
37874
- const namedFormats = {
37875
- STANDARD: {
37876
- doubles: {
37877
- matchUpCount: 3,
37878
- matchUpValue: 1
37879
- },
37880
- singles: {
37881
- matchUpCount: 6,
37882
- matchUpValue: 1
37883
- },
37884
- valueGoal: 5
37885
- },
37886
- COLLEGE_D3: {
37887
- doubles: {
37888
- matchUpCount: 3,
37889
- matchUpValue: 1,
37890
- matchUpFormat: 'SET1-S:8/TB7@7'
37891
- },
37892
- singles: {
37893
- matchUpCount: 6,
37894
- matchUpValue: 1,
37895
- matchUpFormat: 'SET3-S:6/TB7'
37896
- },
37897
- tieFormatName: 'COLLEGE_D3',
37898
- valueGoal: 5
37899
- },
37900
- COLLEGE_DEFAULT: {
37901
- doubles: {
37902
- matchUpCount: 3,
37903
- collectionValue: 1,
37904
- matchUpFormat: 'SET1-S:6NOAD/TB7'
37905
- },
37906
- singles: {
37907
- matchUpCount: 6,
37908
- matchUpValue: 1,
37909
- matchUpFormat: 'SET3-S:6NOAD/TB7'
37910
- },
37911
- tieFormatName: 'COLLEGE_DEFAULT',
37912
- valueGoal: 4
37913
- },
37914
- COLLEGE_JUCO: {
37915
- doubles: {
37916
- matchUpCount: 3,
37917
- matchUpValue: 1,
37918
- matchUpFormat: 'SET1-S:8/TB7'
37919
- },
37920
- singles: {
37921
- matchUpCount: 6,
37922
- matchUpValue: 1,
37923
- matchUpFormat: 'SET3-S:6/TB7'
37924
- },
37925
- tieFormatName: 'COLLEGE_JUCO',
37926
- valueGoal: 5
37927
- }
37928
- };
37929
- const tieFormatDefaults = ({
37930
- namedFormat,
37931
- uuids = []
37932
- } = {}) => {
37933
- var _uuids, _uuids2;
37934
-
37935
- if (!Object.keys(namedFormats).includes(namedFormat)) namedFormat = 'STANDARD';
37936
- if (!Array.isArray(uuids)) uuids = [];
37937
- const template = namedFormats[namedFormat];
37938
- const tieFormat = {
37939
- winCriteria: {
37940
- valueGoal: template.valueGoal
37941
- },
37942
- collectionDefinitions: [{
37943
- collectionId: ((_uuids = uuids) === null || _uuids === void 0 ? void 0 : _uuids.pop()) || UUID(),
37944
- collectionName: 'Doubles',
37945
- matchUpType: DOUBLES$1,
37946
- matchUpFormat: 'SET3-S:6/TB7-F:TB10',
37947
- ...template.doubles
37948
- }, {
37949
- collectionId: ((_uuids2 = uuids) === null || _uuids2 === void 0 ? void 0 : _uuids2.pop()) || UUID(),
37950
- collectionName: 'Singles',
37951
- matchUpType: SINGLES$1,
37952
- matchUpFormat: 'SET3-S:6/TB7',
37953
- ...template.singles
37954
- }]
37955
- };
37956
- if (template.tieFormatName) tieFormat.tieFormatName = template.tieFormatName;
37957
- return tieFormat;
37958
- };
37959
-
37960
38022
  /**
37961
38023
  * automated = true, // can be true/false or "truthy" { seedsOnly: true }
37962
38024
  */
@@ -38033,9 +38095,9 @@ function generateDrawDefinition(params) {
38033
38095
  matchUpType = matchUpType || eventType;
38034
38096
 
38035
38097
  if (matchUpType === TEAM$3 && eventType === TEAM$3) {
38036
- tieFormat = (tieFormat || tieFormatName) && (typeof tieFormat === 'object' ? tieFormat : tieFormatDefaults({
38098
+ tieFormat = (tieFormat || (event === null || event === void 0 ? void 0 : event.tieFormat) || tieFormatName) && (typeof tieFormat === 'object' ? tieFormat : tieFormatName ? tieFormatDefaults({
38037
38099
  namedFormat: tieFormatName
38038
- }));
38100
+ }) : typeof (event === null || event === void 0 ? void 0 : event.tieFormat) === 'object' ? event.tieFormat : tieFormatDefaults());
38039
38101
  matchUpFormat = undefined;
38040
38102
  } else if (!matchUpFormat) {
38041
38103
  tieFormat = undefined;
@@ -39735,6 +39797,7 @@ function addPlayoffStructures$1(params) {
39735
39797
  roundProfiles,
39736
39798
  roundNumbers,
39737
39799
  idPrefix,
39800
+ isMock,
39738
39801
  event,
39739
39802
  uuids
39740
39803
  } = params;
@@ -39802,6 +39865,7 @@ function addPlayoffStructures$1(params) {
39802
39865
  stageSequence,
39803
39866
  drawSize,
39804
39867
  idPrefix,
39868
+ isMock,
39805
39869
  uuids
39806
39870
  });
39807
39871
 
@@ -39847,7 +39911,8 @@ function addPlayoffStructures$1(params) {
39847
39911
  const {
39848
39912
  tieMatchUps
39849
39913
  } = generateTieMatchUps({
39850
- tieFormat
39914
+ tieFormat,
39915
+ isMock
39851
39916
  });
39852
39917
  Object.assign(matchUp, {
39853
39918
  tieMatchUps,
@@ -42310,6 +42375,74 @@ function getParticipantSignInStatus({
42310
42375
  return timeItem && timeItem.itemValue === SIGNED_IN && SIGNED_IN;
42311
42376
  }
42312
42377
 
42378
+ /**
42379
+ *
42380
+ * @param {object} tournamentRecord - passed in automatically by tournamentEngine
42381
+ * @param {string} drawId - optional - avoid brute force search for matchUp
42382
+ * @param {object} drawDefinition - passed in automatically by tournamentEngine when drawId provided
42383
+ * @param {string} eventId - optional - if only the default matchUpFormat for an event is required
42384
+ * @param {object} event - passed in automatically by tournamentEngine when drawId or eventId provided
42385
+ * @param {string} structureId - optional - if only the default matchUpFormat for a structure is required
42386
+ * @param {string} matchUpId - id of matchUp for which the scoped matchUpFormat(s) are desired
42387
+ *
42388
+ */
42389
+
42390
+ function getTieFormat({
42391
+ tournamentRecord,
42392
+ drawDefinition,
42393
+ structureId,
42394
+ matchUpId,
42395
+ drawId,
42396
+ event
42397
+ }) {
42398
+ var _structure, _drawDefinition, _matchUpResult$matchU;
42399
+
42400
+ if (!tournamentRecord) return {
42401
+ error: MISSING_TOURNAMENT_RECORD
42402
+ };
42403
+ if (!drawId && !event && !structureId && !matchUpId) return {
42404
+ error: MISSING_VALUE
42405
+ };
42406
+ const matchUpResult = findMatchUp({
42407
+ tournamentRecord,
42408
+ drawDefinition,
42409
+ matchUpId,
42410
+ drawId,
42411
+ event
42412
+ });
42413
+
42414
+ if (matchUpId && matchUpResult !== null && matchUpResult !== void 0 && matchUpResult.error) {
42415
+ return matchUpResult;
42416
+ } else if (!drawDefinition && matchUpResult !== null && matchUpResult !== void 0 && matchUpResult.drawDefinition) {
42417
+ drawDefinition = matchUpResult === null || matchUpResult === void 0 ? void 0 : matchUpResult.drawDefinition;
42418
+ }
42419
+
42420
+ let structure = matchUpResult === null || matchUpResult === void 0 ? void 0 : matchUpResult.structure;
42421
+
42422
+ if (!structure && structureId && !matchUpId) {
42423
+ if (!drawDefinition) return {
42424
+ error: MISSING_DRAW_ID
42425
+ };
42426
+ const structureResult = findStructure({
42427
+ drawDefinition,
42428
+ structureId
42429
+ });
42430
+ if (structureResult.error) return structureResult;
42431
+ structure = structureResult.structure;
42432
+ }
42433
+
42434
+ const structureDefaultTieFormat = (_structure = structure) === null || _structure === void 0 ? void 0 : _structure.tieFormat;
42435
+ const drawDefaultTieFormat = (_drawDefinition = drawDefinition) === null || _drawDefinition === void 0 ? void 0 : _drawDefinition.tieFormat;
42436
+ const eventDefaultTieFormat = event === null || event === void 0 ? void 0 : event.tieFormat;
42437
+ const tieFormat = (matchUpResult === null || matchUpResult === void 0 ? void 0 : (_matchUpResult$matchU = matchUpResult.matchUp) === null || _matchUpResult$matchU === void 0 ? void 0 : _matchUpResult$matchU.tieFormat) || structureDefaultTieFormat || drawDefaultTieFormat || eventDefaultTieFormat;
42438
+ return {
42439
+ structureDefaultTieFormat,
42440
+ eventDefaultTieFormat,
42441
+ drawDefaultTieFormat,
42442
+ tieFormat
42443
+ };
42444
+ }
42445
+
42313
42446
  function getEventProperties({
42314
42447
  tournamentRecord,
42315
42448
  event
@@ -43379,6 +43512,7 @@ const queryGovernor$1 = {
43379
43512
  findTournamentExtension,
43380
43513
  findParticipantExtension,
43381
43514
  findDrawDefinitionExtension,
43515
+ getTieFormat,
43382
43516
  getMatchUpFormat,
43383
43517
  getDrawDefinition,
43384
43518
  getEventProperties,
@@ -47867,54 +48001,68 @@ function personMocks({
47867
48001
  }
47868
48002
 
47869
48003
  var teamsData = [
48004
+ "Ace Academy",
47870
48005
  "Avengers",
47871
- "Predators",
47872
- "Dynamos",
47873
- "Warriors",
48006
+ "Ball Bouncers",
48007
+ "Baseliners",
47874
48008
  "Captivators",
47875
- "Dragons",
47876
- "Explosive Win Machine",
47877
- "Pirates",
48009
+ "Civil Disobedients",
48010
+ "Continentals",
48011
+ "Court Royal",
48012
+ "Court Sharks",
48013
+ "Diamond Dogs",
48014
+ "Danger Zone",
48015
+ "Doubles Dominators",
48016
+ "Double Faults",
48017
+ "Tricksters",
48018
+ "Eliminators",
48019
+ "Court Crusaders",
48020
+ "Fuzz Busters",
48021
+ "Game Changers",
48022
+ "Goal Gurus",
48023
+ "Good Volley",
48024
+ "Green Machine",
47878
48025
  "Hawk Eyes",
48026
+ "Inside Outers",
47879
48027
  "Killer Instinct",
48028
+ "Line Toers",
47880
48029
  "Masters of Mayhem",
47881
48030
  "Matter Catchers",
48031
+ "Cheap Shot",
48032
+ "Mean Machines",
47882
48033
  "Mindspace Invaders",
47883
- "Goal Gurus",
47884
- "Raiders",
47885
- "Seekers",
48034
+ "Net Centric",
48035
+ "Net Positive",
48036
+ "Over Your Head",
48037
+ "Spin Meisters",
48038
+ "Aggressors",
48039
+ "Racket Machine",
48040
+ "Slice Happy",
48041
+ "Refs Nightmare",
48042
+ "Sandeaters",
48043
+ "Sun Seekers",
48044
+ "Slicer Dicers",
47886
48045
  "Sparkle Soul Tribe",
47887
- "The Achievers",
47888
- "The Blazers",
47889
- "The Breezers",
47890
- "The Bruisers",
47891
- "The Civil Disobedients",
47892
- "The Eliminators",
47893
- "The Mavericks",
47894
- "The Mean Machines",
47895
- "The Punters",
47896
- "The Sandeaters",
47897
- "The Visual Spectacle",
48046
+ "Stacked Deck",
48047
+ "Cross Stringers",
48048
+ "The Emergence",
47898
48049
  "Total Demolition",
47899
48050
  "Touch and Go",
48051
+ "Upside Downers",
47900
48052
  "Vertically Challenged",
47901
- "Win Machines",
47902
- "Wind Chasers",
47903
- "Worker Bees",
47904
- "Razorbacks",
47905
- "Rebels",
47906
- "Fighting Crusaders",
47907
- "Comets",
47908
- "Commodores",
47909
- "Green Machine",
47910
- "Continentals"
48053
+ "Visual Spectacle"
47911
48054
  ];
47912
48055
 
47913
48056
  function teamMocks({
47914
48057
  count = 1
47915
48058
  } = {}) {
47916
- const shuffledCities = shuffleArray(teamsData);
47917
- const teams = shuffledCities.slice(0, count);
48059
+ const shuffledTeamNames = shuffleArray(teamsData);
48060
+ const teams = shuffledTeamNames.slice(0, count);
48061
+
48062
+ if (teams.length < count) {
48063
+ generateRange(0, count - teams.length).forEach(i => teams.push(`Team ${i + 1}`));
48064
+ }
48065
+
47918
48066
  return {
47919
48067
  teams
47920
48068
  };
@@ -48009,6 +48157,9 @@ function generateParticipants({
48009
48157
  const isoMin = getMin(nationalityCodesCount);
48010
48158
  const isoList = isoMin ? shuffleArray(isoCountries).slice(0, nationalityCodesCount) : nationalityCodes ? isoCountries.filter(isoCountry => nationalityCodes.includes(isoCountry.key)) : isoCountries;
48011
48159
  const countriesList = shuffleArray(generateRange(0, Math.ceil(individualParticipantsCount / (isoMin || 1))).map(() => isoList).flat(Infinity));
48160
+ const teamNames = teamMocks({
48161
+ count: participantsCount
48162
+ }).teams;
48012
48163
  const participants = generateRange(0, participantsCount).map(i => {
48013
48164
  const sideParticipantsCount = doubles ? 2 : team ? 8 : 1;
48014
48165
  const individualParticipants = generateRange(0, sideParticipantsCount).map(j => {
@@ -48021,7 +48172,7 @@ function generateParticipants({
48021
48172
  participantId: (uuids === null || uuids === void 0 ? void 0 : uuids.pop()) || UUID(),
48022
48173
  participantType: doubles ? PAIR$1 : TEAM$1,
48023
48174
  participantRole: COMPETITOR,
48024
- participantName: doubles ? pairName : teamMocks().teams[0],
48175
+ participantName: doubles ? pairName : teamNames[i],
48025
48176
  individualParticipantIds
48026
48177
  };
48027
48178
  if (inContext) groupParticipant.individualParticipants = individualParticipants;
@@ -48837,6 +48988,7 @@ function generateEventWithFlights({
48837
48988
  ...drawProfile.withPlayoffs,
48838
48989
  tournamentRecord,
48839
48990
  drawDefinition,
48991
+ isMock: true,
48840
48992
  structureId,
48841
48993
  event
48842
48994
  });
@@ -49097,6 +49249,7 @@ function generateEventWithDraw({
49097
49249
  const result = addPlayoffStructures({ ...drawProfile.withPlayoffs,
49098
49250
  tournamentRecord,
49099
49251
  drawDefinition,
49252
+ isMock: true,
49100
49253
  structureId,
49101
49254
  idPrefix,
49102
49255
  event
@@ -49745,6 +49898,7 @@ const factoryConstants = {
49745
49898
  scaleConstants,
49746
49899
  scheduleConstants,
49747
49900
  surfaceConstants,
49901
+ tieFormatConstants,
49748
49902
  timeItemConstants,
49749
49903
  topicConstants,
49750
49904
  venueConstants