@mtgame/core 0.1.37 → 0.1.38

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.
Files changed (58) hide show
  1. package/api/public-api.d.ts +10 -9
  2. package/api/rugby-game-api.d.ts +16 -0
  3. package/api/tournament-api.d.ts +2 -0
  4. package/bundles/mtgame-core.umd.js +669 -157
  5. package/bundles/mtgame-core.umd.js.map +1 -1
  6. package/bundles/mtgame-core.umd.min.js +1 -1
  7. package/bundles/mtgame-core.umd.min.js.map +1 -1
  8. package/esm2015/api/public-api.js +10 -9
  9. package/esm2015/api/rugby-game-api.js +50 -0
  10. package/esm2015/api/tournament-api.js +12 -1
  11. package/esm2015/localization/public-api.js +2 -1
  12. package/esm2015/localization/rugby-game-log-types.js +36 -0
  13. package/esm2015/localization/user-profile.js +10 -1
  14. package/esm2015/models/public-api.js +7 -1
  15. package/esm2015/models/rugby-game-config.js +34 -0
  16. package/esm2015/models/rugby-game-log.js +124 -0
  17. package/esm2015/models/rugby-game-statistic.js +51 -0
  18. package/esm2015/models/rugby-game-team-statistic.js +27 -0
  19. package/esm2015/models/rugby-profile.js +37 -0
  20. package/esm2015/models/rugby-statistic.js +84 -0
  21. package/esm2015/models/sport.js +13 -1
  22. package/esm2015/models/tournament.js +4 -2
  23. package/esm2015/models/user.js +4 -1
  24. package/esm5/api/public-api.js +10 -9
  25. package/esm5/api/rugby-game-api.js +61 -0
  26. package/esm5/api/tournament-api.js +15 -1
  27. package/esm5/localization/public-api.js +2 -1
  28. package/esm5/localization/rugby-game-log-types.js +37 -0
  29. package/esm5/localization/user-profile.js +11 -2
  30. package/esm5/models/public-api.js +7 -1
  31. package/esm5/models/rugby-game-config.js +39 -0
  32. package/esm5/models/rugby-game-log.js +132 -0
  33. package/esm5/models/rugby-game-statistic.js +64 -0
  34. package/esm5/models/rugby-game-team-statistic.js +32 -0
  35. package/esm5/models/rugby-profile.js +42 -0
  36. package/esm5/models/rugby-statistic.js +93 -0
  37. package/esm5/models/sport.js +13 -1
  38. package/esm5/models/tournament.js +4 -2
  39. package/esm5/models/user.js +4 -1
  40. package/fesm2015/mtgame-core.js +439 -2
  41. package/fesm2015/mtgame-core.js.map +1 -1
  42. package/fesm5/mtgame-core.js +655 -158
  43. package/fesm5/mtgame-core.js.map +1 -1
  44. package/localization/public-api.d.ts +1 -0
  45. package/localization/rugby-game-log-types.d.ts +35 -0
  46. package/localization/user-profile.d.ts +9 -0
  47. package/models/public-api.d.ts +6 -0
  48. package/models/rugby-game-config.d.ts +15 -0
  49. package/models/rugby-game-log.d.ts +71 -0
  50. package/models/rugby-game-statistic.d.ts +29 -0
  51. package/models/rugby-game-team-statistic.d.ts +8 -0
  52. package/models/rugby-profile.d.ts +16 -0
  53. package/models/rugby-statistic.d.ts +52 -0
  54. package/models/sport.d.ts +7 -1
  55. package/models/tournament.d.ts +2 -0
  56. package/models/user.d.ts +2 -0
  57. package/mtgame-core.metadata.json +1 -1
  58. package/package.json +1 -1
@@ -431,6 +431,9 @@ var SportTypes;
431
431
  SportTypes[SportTypes["mini_football"] = 12] = "mini_football";
432
432
  SportTypes[SportTypes["handball"] = 13] = "handball";
433
433
  SportTypes[SportTypes["handball_classic"] = 14] = "handball_classic";
434
+ SportTypes[SportTypes["rugby"] = 15] = "rugby";
435
+ SportTypes[SportTypes["rugby7"] = 16] = "rugby7";
436
+ SportTypes[SportTypes["rugby15"] = 17] = "rugby15";
434
437
  })(SportTypes || (SportTypes = {}));
435
438
  var Sport = /** @class */ (function (_super) {
436
439
  __extends(Sport, _super);
@@ -479,6 +482,15 @@ var Sport = /** @class */ (function (_super) {
479
482
  Sport.prototype.isHandballClassic = function () {
480
483
  return this.id === SportTypes.handball_classic;
481
484
  };
485
+ Sport.prototype.isRugby = function () {
486
+ return this.id === SportTypes.rugby || this.parentId === SportTypes.rugby;
487
+ };
488
+ Sport.prototype.isRugby15 = function () {
489
+ return this.id === SportTypes.rugby15;
490
+ };
491
+ Sport.prototype.isRugby7 = function () {
492
+ return this.id === SportTypes.rugby7;
493
+ };
482
494
  Sport.toFront = function (data) {
483
495
  return null;
484
496
  };
@@ -770,6 +782,45 @@ var HandballProfile = /** @class */ (function (_super) {
770
782
  return HandballProfile;
771
783
  }(BaseModel));
772
784
 
785
+ var GameRugbyPosition;
786
+ (function (GameRugbyPosition) {
787
+ GameRugbyPosition[GameRugbyPosition["front_line"] = 1] = "front_line";
788
+ GameRugbyPosition[GameRugbyPosition["second_line"] = 2] = "second_line";
789
+ GameRugbyPosition[GameRugbyPosition["back_line"] = 3] = "back_line";
790
+ GameRugbyPosition[GameRugbyPosition["halfback"] = 4] = "halfback";
791
+ GameRugbyPosition[GameRugbyPosition["three_quarter"] = 5] = "three_quarter";
792
+ GameRugbyPosition[GameRugbyPosition["fullback"] = 6] = "fullback";
793
+ })(GameRugbyPosition || (GameRugbyPosition = {}));
794
+ var RugbyProfile = /** @class */ (function (_super) {
795
+ __extends(RugbyProfile, _super);
796
+ function RugbyProfile() {
797
+ return _super !== null && _super.apply(this, arguments) || this;
798
+ }
799
+ RugbyProfile.toFront = function (value) {
800
+ };
801
+ RugbyProfile.toBack = function (value) {
802
+ };
803
+ __decorate([
804
+ ToFrontHook
805
+ ], RugbyProfile, "toFront", null);
806
+ __decorate([
807
+ ToBackHook
808
+ ], RugbyProfile, "toBack", null);
809
+ RugbyProfile = __decorate([
810
+ ModelInstance({
811
+ mappingFields: {
812
+ id: 'id',
813
+ user_id: 'userId',
814
+ position: 'position'
815
+ },
816
+ relation: {
817
+ position: enumField(GameRugbyPosition),
818
+ }
819
+ })
820
+ ], RugbyProfile);
821
+ return RugbyProfile;
822
+ }(BaseModel));
823
+
773
824
  var UserGender;
774
825
  (function (UserGender) {
775
826
  UserGender[UserGender["male"] = 1] = "male";
@@ -841,6 +892,7 @@ var User = /** @class */ (function (_super) {
841
892
  hockey_profile: 'hockeyProfile',
842
893
  football_profile: 'footballProfile',
843
894
  handball_profile: 'handballProfile',
895
+ rugby_profile: 'rugbyProfile',
844
896
  wizards: 'wizards',
845
897
  city: 'city',
846
898
  gender: 'gender',
@@ -855,6 +907,7 @@ var User = /** @class */ (function (_super) {
855
907
  hockeyProfile: HockeyProfile,
856
908
  footballProfile: FootballProfile,
857
909
  handballProfile: HandballProfile,
910
+ rugbyProfile: RugbyProfile,
858
911
  city: City,
859
912
  gender: enumField(UserGender)
860
913
  }
@@ -1179,7 +1232,9 @@ var TournamentSettings = /** @class */ (function (_super) {
1179
1232
  volleyball_statistic_type: 'volleyballStatisticType',
1180
1233
  shot_clock_enabled: 'shotClockEnabled',
1181
1234
  game_time_type: 'gameTimeType',
1182
- with_result_table: 'withResultTable'
1235
+ with_result_table: 'withResultTable',
1236
+ free_substitute_enabled: 'freeSubstituteEnabled',
1237
+ bonus_points_enabled: 'bonusPointsEnabled',
1183
1238
  },
1184
1239
  relation: {
1185
1240
  type: enumField(TournamentTypes),
@@ -5047,6 +5102,91 @@ var LeagueUser = /** @class */ (function (_super) {
5047
5102
  return LeagueUser;
5048
5103
  }(BaseModel));
5049
5104
 
5105
+ var RugbyStatistic = /** @class */ (function (_super) {
5106
+ __extends(RugbyStatistic, _super);
5107
+ function RugbyStatistic() {
5108
+ return _super !== null && _super.apply(this, arguments) || this;
5109
+ }
5110
+ Object.defineProperty(RugbyStatistic.prototype, "userMinutes", {
5111
+ get: function () {
5112
+ if (!this.gameTime) {
5113
+ return '00:00';
5114
+ }
5115
+ var minutes = Math.floor(this.gameTime / 60);
5116
+ var seconds = Math.floor(this.gameTime - minutes * 60);
5117
+ return "" + (minutes < 10 ? 0 : '') + minutes + ":" + (seconds < 10 ? 0 : '') + seconds;
5118
+ },
5119
+ enumerable: true,
5120
+ configurable: true
5121
+ });
5122
+ RugbyStatistic.toFront = function (data) { };
5123
+ RugbyStatistic.toBack = function (data) { };
5124
+ __decorate([
5125
+ ToFrontHook
5126
+ ], RugbyStatistic, "toFront", null);
5127
+ __decorate([
5128
+ ToBackHook
5129
+ ], RugbyStatistic, "toBack", null);
5130
+ RugbyStatistic = __decorate([
5131
+ ModelInstance({
5132
+ mappingFields: {
5133
+ tournament_team_user: 'tournamentTeamUser',
5134
+ team: 'team',
5135
+ team_user: 'teamUser',
5136
+ user: 'user',
5137
+ tournament_team: 'tournamentTeam',
5138
+ month: 'month',
5139
+ win_lose: 'winLose',
5140
+ games_count: 'gamesCount',
5141
+ won_games_count: 'wonGamesCount',
5142
+ newbie: 'newbie',
5143
+ // User statistic
5144
+ points: 'points',
5145
+ tries: 'tries',
5146
+ penalty_tries: 'penaltyTries',
5147
+ conversion_goals: 'conversionGoals',
5148
+ conversion_misses: 'conversionMisses',
5149
+ drawing_ball: 'drawingBall',
5150
+ penalty_misses: 'penaltyMisses',
5151
+ penalty_goals: 'penaltyGoals',
5152
+ drop_goals: 'dropGoals',
5153
+ drop_goal_misses: 'dropGoalMisses',
5154
+ free_kicks: 'freeKicks',
5155
+ yellow_cards: 'yellowCards',
5156
+ red_cards: 'redCards',
5157
+ offloads: 'offloads',
5158
+ tackles: 'tackles',
5159
+ outs: 'outs',
5160
+ handling_errors: 'handlingErrors',
5161
+ carries_other_gainline: 'carriesOtherGainline',
5162
+ plus_minus: 'plusMinus',
5163
+ game_time: 'gameTime',
5164
+ // Team statistic
5165
+ scrums_won: 'scrumsWon',
5166
+ scrum_losses: 'scrumLosses',
5167
+ scrums_won_free: 'scrumsWonFree',
5168
+ lineouts_success: 'lineoutsSuccess',
5169
+ lineouts_steal: 'lineoutsSteal',
5170
+ quick_throws: 'quickThrows',
5171
+ rucks_won: 'rucksWon',
5172
+ ruck_losses: 'ruckLosses',
5173
+ mauls_won: 'maulsWon',
5174
+ maul_losses: 'maulLosses',
5175
+ fouls: 'fouls'
5176
+ },
5177
+ relation: {
5178
+ tournamentTeamUser: TournamentTeamUser,
5179
+ team: Team,
5180
+ teamUser: TeamUser,
5181
+ user: User,
5182
+ tournamentTeam: TournamentTeam,
5183
+ month: DateField
5184
+ }
5185
+ })
5186
+ ], RugbyStatistic);
5187
+ return RugbyStatistic;
5188
+ }(BaseModel));
5189
+
5050
5190
  var TournamentApi = /** @class */ (function () {
5051
5191
  function TournamentApi(httpClient, configService) {
5052
5192
  this.httpClient = httpClient;
@@ -5398,6 +5538,19 @@ var TournamentApi = /** @class */ (function () {
5398
5538
  });
5399
5539
  });
5400
5540
  };
5541
+ TournamentApi.prototype.getRugbyStatistic = function (filters) {
5542
+ return __awaiter(this, void 0, void 0, function () {
5543
+ var params;
5544
+ return __generator(this, function (_a) {
5545
+ params = new HttpParams();
5546
+ params = applyStatisticFilters(filters, params);
5547
+ return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/rugby_statistic/", { params: params, observe: 'response' }).pipe(map(function (result) { return ({
5548
+ total: +result.headers.get('X-Page-Count'),
5549
+ data: RugbyStatistic.toFront(result.body)
5550
+ }); })).toPromise()];
5551
+ });
5552
+ });
5553
+ };
5401
5554
  TournamentApi.prototype.getTournamentTeamUsers = function (tournamentTeamId) {
5402
5555
  return __awaiter(this, void 0, void 0, function () {
5403
5556
  return __generator(this, function (_a) {
@@ -6730,6 +6883,271 @@ var ReferenceApi = /** @class */ (function () {
6730
6883
  return ReferenceApi;
6731
6884
  }());
6732
6885
 
6886
+ var RugbyGameTeamStatistic = /** @class */ (function (_super) {
6887
+ __extends(RugbyGameTeamStatistic, _super);
6888
+ function RugbyGameTeamStatistic() {
6889
+ return _super !== null && _super.apply(this, arguments) || this;
6890
+ }
6891
+ RugbyGameTeamStatistic.toFront = function (data) { };
6892
+ RugbyGameTeamStatistic.toBack = function (data) { };
6893
+ __decorate([
6894
+ ToFrontHook
6895
+ ], RugbyGameTeamStatistic, "toFront", null);
6896
+ __decorate([
6897
+ ToBackHook
6898
+ ], RugbyGameTeamStatistic, "toBack", null);
6899
+ RugbyGameTeamStatistic = __decorate([
6900
+ ModelInstance({
6901
+ mappingFields: {
6902
+ team: 'team',
6903
+ competitor_team: 'competitorTeam'
6904
+ },
6905
+ relation: {
6906
+ team: RugbyStatistic,
6907
+ competitorTeam: RugbyStatistic
6908
+ }
6909
+ })
6910
+ ], RugbyGameTeamStatistic);
6911
+ return RugbyGameTeamStatistic;
6912
+ }(BaseModel));
6913
+
6914
+ var RugbyGameStatistic = /** @class */ (function (_super) {
6915
+ __extends(RugbyGameStatistic, _super);
6916
+ function RugbyGameStatistic() {
6917
+ return _super !== null && _super.apply(this, arguments) || this;
6918
+ }
6919
+ Object.defineProperty(RugbyGameStatistic.prototype, "id", {
6920
+ get: function () {
6921
+ return this.gameUserId;
6922
+ },
6923
+ enumerable: true,
6924
+ configurable: true
6925
+ });
6926
+ Object.defineProperty(RugbyGameStatistic.prototype, "gameMinutes", {
6927
+ get: function () {
6928
+ return Math.floor(this.gameTime / 60);
6929
+ },
6930
+ enumerable: true,
6931
+ configurable: true
6932
+ });
6933
+ RugbyGameStatistic.toFront = function (data) { };
6934
+ RugbyGameStatistic.toBack = function (data) { };
6935
+ __decorate([
6936
+ ToFrontHook
6937
+ ], RugbyGameStatistic, "toFront", null);
6938
+ __decorate([
6939
+ ToBackHook
6940
+ ], RugbyGameStatistic, "toBack", null);
6941
+ RugbyGameStatistic = __decorate([
6942
+ ModelInstance({
6943
+ mappingFields: {
6944
+ game_user_id: 'gameUserId',
6945
+ updated_at: 'updatedAt',
6946
+ points: 'points',
6947
+ tries: 'tries',
6948
+ penalty_tries: 'penaltyTries',
6949
+ conversion_goals: 'conversionGoals',
6950
+ conversion_misses: 'conversionMisses',
6951
+ drawing_ball: 'drawingBall',
6952
+ penalty_misses: 'penaltyMisses',
6953
+ penalty_goals: 'penaltyGoals',
6954
+ drop_goals: 'dropGoals',
6955
+ drop_goal_misses: 'dropGoalMisses',
6956
+ free_kicks: 'freeKicks',
6957
+ yellow_cards: 'yellowCards',
6958
+ red_cards: 'redCards',
6959
+ offloads: 'offloads',
6960
+ tackles: 'tackles',
6961
+ outs: 'outs',
6962
+ handling_errors: 'handlingErrors',
6963
+ carries_other_gainline: 'carriesOtherGainline',
6964
+ game_time: 'gameTime',
6965
+ plus_minus: 'plusMinus'
6966
+ },
6967
+ relation: {
6968
+ updatedAt: DateTimeField,
6969
+ }
6970
+ })
6971
+ ], RugbyGameStatistic);
6972
+ return RugbyGameStatistic;
6973
+ }(BaseModel));
6974
+
6975
+ var _a$1;
6976
+ var RugbyGameLogTypes;
6977
+ (function (RugbyGameLogTypes) {
6978
+ RugbyGameLogTypes[RugbyGameLogTypes["enter_game"] = 1] = "enter_game";
6979
+ RugbyGameLogTypes[RugbyGameLogTypes["exit_game"] = 2] = "exit_game";
6980
+ RugbyGameLogTypes[RugbyGameLogTypes["try"] = 3] = "try";
6981
+ RugbyGameLogTypes[RugbyGameLogTypes["penalty_try"] = 4] = "penalty_try";
6982
+ RugbyGameLogTypes[RugbyGameLogTypes["conversion_goal"] = 5] = "conversion_goal";
6983
+ RugbyGameLogTypes[RugbyGameLogTypes["conversion_miss"] = 6] = "conversion_miss";
6984
+ RugbyGameLogTypes[RugbyGameLogTypes["drawing_ball"] = 7] = "drawing_ball";
6985
+ RugbyGameLogTypes[RugbyGameLogTypes["penalty_miss"] = 8] = "penalty_miss";
6986
+ RugbyGameLogTypes[RugbyGameLogTypes["penalty_goal"] = 9] = "penalty_goal";
6987
+ RugbyGameLogTypes[RugbyGameLogTypes["drop_goal"] = 10] = "drop_goal";
6988
+ RugbyGameLogTypes[RugbyGameLogTypes["drop_goal_miss"] = 11] = "drop_goal_miss";
6989
+ RugbyGameLogTypes[RugbyGameLogTypes["free_kick"] = 12] = "free_kick";
6990
+ RugbyGameLogTypes[RugbyGameLogTypes["yellow_card"] = 13] = "yellow_card";
6991
+ RugbyGameLogTypes[RugbyGameLogTypes["red_card"] = 14] = "red_card";
6992
+ RugbyGameLogTypes[RugbyGameLogTypes["offload"] = 15] = "offload";
6993
+ RugbyGameLogTypes[RugbyGameLogTypes["tackle"] = 16] = "tackle";
6994
+ RugbyGameLogTypes[RugbyGameLogTypes["out"] = 17] = "out";
6995
+ RugbyGameLogTypes[RugbyGameLogTypes["handling_error"] = 18] = "handling_error";
6996
+ RugbyGameLogTypes[RugbyGameLogTypes["carries_other_gainline"] = 19] = "carries_other_gainline";
6997
+ // team actions
6998
+ RugbyGameLogTypes[RugbyGameLogTypes["timeout"] = 20] = "timeout";
6999
+ RugbyGameLogTypes[RugbyGameLogTypes["scrum_won"] = 21] = "scrum_won";
7000
+ RugbyGameLogTypes[RugbyGameLogTypes["scrum_lose"] = 22] = "scrum_lose";
7001
+ RugbyGameLogTypes[RugbyGameLogTypes["scrum_won_free"] = 23] = "scrum_won_free";
7002
+ RugbyGameLogTypes[RugbyGameLogTypes["lineout_success"] = 24] = "lineout_success";
7003
+ RugbyGameLogTypes[RugbyGameLogTypes["lineout_loss"] = 25] = "lineout_loss";
7004
+ RugbyGameLogTypes[RugbyGameLogTypes["lineout_steal"] = 26] = "lineout_steal";
7005
+ RugbyGameLogTypes[RugbyGameLogTypes["quick_throw"] = 27] = "quick_throw";
7006
+ RugbyGameLogTypes[RugbyGameLogTypes["ruck_won"] = 28] = "ruck_won";
7007
+ RugbyGameLogTypes[RugbyGameLogTypes["ruck_lose"] = 29] = "ruck_lose";
7008
+ RugbyGameLogTypes[RugbyGameLogTypes["maul_won"] = 30] = "maul_won";
7009
+ RugbyGameLogTypes[RugbyGameLogTypes["maul_lose"] = 31] = "maul_lose";
7010
+ RugbyGameLogTypes[RugbyGameLogTypes["team_foul"] = 32] = "team_foul";
7011
+ })(RugbyGameLogTypes || (RugbyGameLogTypes = {}));
7012
+ var RUGBY_GAME_LOG_TYPE_POINTS = (_a$1 = {},
7013
+ _a$1[RugbyGameLogTypes.penalty_try] = 7,
7014
+ _a$1[RugbyGameLogTypes.try] = 5,
7015
+ _a$1[RugbyGameLogTypes.conversion_goal] = 2,
7016
+ _a$1[RugbyGameLogTypes.penalty_goal] = 3,
7017
+ _a$1[RugbyGameLogTypes.drop_goal] = 3,
7018
+ _a$1);
7019
+ var RUGBY_TEAM_LOG_TYPES = [
7020
+ RugbyGameLogTypes.timeout, RugbyGameLogTypes.scrum_won, RugbyGameLogTypes.scrum_lose, RugbyGameLogTypes.scrum_won_free,
7021
+ RugbyGameLogTypes.lineout_success, RugbyGameLogTypes.lineout_loss, RugbyGameLogTypes.lineout_steal, RugbyGameLogTypes.quick_throw,
7022
+ RugbyGameLogTypes.ruck_won, RugbyGameLogTypes.ruck_lose, RugbyGameLogTypes.maul_won, RugbyGameLogTypes.maul_lose,
7023
+ RugbyGameLogTypes.team_foul,
7024
+ ];
7025
+ var RugbyGameLog = /** @class */ (function (_super) {
7026
+ __extends(RugbyGameLog, _super);
7027
+ function RugbyGameLog() {
7028
+ var _this = _super !== null && _super.apply(this, arguments) || this;
7029
+ _this.active = true;
7030
+ return _this;
7031
+ }
7032
+ RugbyGameLog.prototype.compare = function (model) {
7033
+ if (this.time === model.time && this.period === model.period) {
7034
+ return this.datetime.getTime() < model.datetime.getTime() ? 1 : -1;
7035
+ }
7036
+ if (this.period === model.period) {
7037
+ return this.time < model.time ? 1 : -1;
7038
+ }
7039
+ return this.period < model.period ? 1 : -1;
7040
+ };
7041
+ Object.defineProperty(RugbyGameLog.prototype, "timeFormatted", {
7042
+ get: function () {
7043
+ var minutes = Math.floor(this.time / 60);
7044
+ var seconds = this.time - minutes * 60;
7045
+ return "" + (minutes < 10 ? '0' : '') + minutes + ":" + (seconds < 10 ? '0' : '') + seconds;
7046
+ },
7047
+ enumerable: true,
7048
+ configurable: true
7049
+ });
7050
+ RugbyGameLog.prototype.isScoreType = function () {
7051
+ return RUGBY_GAME_LOG_TYPE_POINTS[this.logType] !== undefined;
7052
+ };
7053
+ RugbyGameLog.prototype.scorePoints = function () {
7054
+ return RUGBY_GAME_LOG_TYPE_POINTS[this.logType];
7055
+ };
7056
+ RugbyGameLog.prototype.isAfter = function (log) {
7057
+ if (this.time === log.time && this.period === log.period) {
7058
+ return this.id > log.id;
7059
+ }
7060
+ if (this.period === log.period) {
7061
+ return this.time > log.time;
7062
+ }
7063
+ return this.period > log.period;
7064
+ };
7065
+ RugbyGameLog.prototype.isFoulType = function () {
7066
+ return [RugbyGameLogTypes.team_foul, RugbyGameLogTypes.yellow_card, RugbyGameLogTypes.red_card].indexOf(this.logType) > -1;
7067
+ };
7068
+ RugbyGameLog.prototype.isTeamType = function () {
7069
+ return RUGBY_TEAM_LOG_TYPES.includes(this.logType);
7070
+ };
7071
+ RugbyGameLog.toFront = function (value) { };
7072
+ RugbyGameLog.toBack = function (value) { };
7073
+ __decorate([
7074
+ ToFrontHook
7075
+ ], RugbyGameLog, "toFront", null);
7076
+ __decorate([
7077
+ ToBackHook
7078
+ ], RugbyGameLog, "toBack", null);
7079
+ RugbyGameLog = __decorate([
7080
+ ModelInstance({
7081
+ mappingFields: {
7082
+ id: 'id',
7083
+ unique_id: 'uniqueId',
7084
+ game_id: 'gameId',
7085
+ game_user_id: 'gameUserId',
7086
+ team_id: 'teamId',
7087
+ log_type: 'logType',
7088
+ datetime: 'datetime',
7089
+ time: 'time',
7090
+ period: 'period',
7091
+ active: 'active',
7092
+ is_highlight: 'isHighlight',
7093
+ penalty_type: 'penaltyType',
7094
+ },
7095
+ relation: {
7096
+ datetime: DateTimeField,
7097
+ logType: enumField(RugbyGameLogTypes)
7098
+ }
7099
+ })
7100
+ ], RugbyGameLog);
7101
+ return RugbyGameLog;
7102
+ }(BaseModel));
7103
+
7104
+ var RugbyGameApi = /** @class */ (function (_super) {
7105
+ __extends(RugbyGameApi, _super);
7106
+ function RugbyGameApi(httpClient, configService) {
7107
+ var _this = _super.call(this, httpClient, configService) || this;
7108
+ _this.httpClient = httpClient;
7109
+ _this.configService = configService;
7110
+ return _this;
7111
+ }
7112
+ RugbyGameApi.prototype.getById = function (gameId) {
7113
+ return __awaiter(this, void 0, void 0, function () {
7114
+ return __generator(this, function (_a) {
7115
+ return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_rugby_game/" + gameId + "/").pipe(map(function (result) { return Game.toFront(result); })).toPromise()];
7116
+ });
7117
+ });
7118
+ };
7119
+ RugbyGameApi.prototype.getTeamStatistic = function (gameId) {
7120
+ return __awaiter(this, void 0, void 0, function () {
7121
+ return __generator(this, function (_a) {
7122
+ return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_rugby_game/" + gameId + "/team_statistic/").pipe(map(function (result) { return RugbyGameTeamStatistic.toFront(result); })).toPromise()];
7123
+ });
7124
+ });
7125
+ };
7126
+ RugbyGameApi.prototype.getUserStatistic = function (gameId) {
7127
+ return __awaiter(this, void 0, void 0, function () {
7128
+ return __generator(this, function (_a) {
7129
+ return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_rugby_game/" + gameId + "/user_statistic/").pipe(map(function (result) { return RugbyGameStatistic.toFront(result); })).toPromise()];
7130
+ });
7131
+ });
7132
+ };
7133
+ RugbyGameApi.prototype.getLogs = function (gameId) {
7134
+ return __awaiter(this, void 0, void 0, function () {
7135
+ return __generator(this, function (_a) {
7136
+ return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_rugby_game/" + gameId + "/logs/").pipe(map(function (result) { return RugbyGameLog.toFront(result); })).toPromise()];
7137
+ });
7138
+ });
7139
+ };
7140
+ RugbyGameApi.ctorParameters = function () { return [
7141
+ { type: HttpClient },
7142
+ { type: ConfigService }
7143
+ ]; };
7144
+ RugbyGameApi.ɵprov = ɵɵdefineInjectable({ factory: function RugbyGameApi_Factory() { return new RugbyGameApi(ɵɵinject(HttpClient), ɵɵinject(ConfigService)); }, token: RugbyGameApi, providedIn: "root" });
7145
+ RugbyGameApi = __decorate([
7146
+ Injectable({ providedIn: 'root' })
7147
+ ], RugbyGameApi);
7148
+ return RugbyGameApi;
7149
+ }(GameBaseApi));
7150
+
6733
7151
  var TeamInviteExternal = /** @class */ (function (_super) {
6734
7152
  __extends(TeamInviteExternal, _super);
6735
7153
  function TeamInviteExternal() {
@@ -8425,152 +8843,188 @@ var PublicUserApi = /** @class */ (function () {
8425
8843
  return PublicUserApi;
8426
8844
  }());
8427
8845
 
8428
- var _a$1;
8429
- var BasketballGameLogTypeLocalization = (_a$1 = {},
8430
- _a$1[BasketballGameLogTypes.enter_game] = 'Выход на площадку',
8431
- _a$1[BasketballGameLogTypes.exit_game] = 'Ушел с площадки',
8432
- _a$1[BasketballGameLogTypes.remove_game] = 'Удаление с площадки',
8433
- _a$1[BasketballGameLogTypes.two_point_attempt] = 'Бросок 2 очка',
8434
- _a$1[BasketballGameLogTypes.three_point_attempt] = 'Бросок 3 очка',
8435
- _a$1[BasketballGameLogTypes.free_throw_attempt] = 'Штрафной бросок',
8436
- _a$1[BasketballGameLogTypes.one_point_attempt] = 'Бросок 1 очко',
8437
- _a$1[BasketballGameLogTypes.two_point_made] = '2 очка',
8438
- _a$1[BasketballGameLogTypes.three_point_made] = '3 очка',
8439
- _a$1[BasketballGameLogTypes.free_throw_made] = '1 очко, штрафной',
8440
- _a$1[BasketballGameLogTypes.one_point_made] = '1 очко',
8441
- _a$1[BasketballGameLogTypes.assist] = 'Передача',
8442
- _a$1[BasketballGameLogTypes.block] = 'Блокшот',
8443
- _a$1[BasketballGameLogTypes.rebound] = 'Подбор',
8444
- _a$1[BasketballGameLogTypes.offensive_rebound] = 'Подбор в нападении',
8445
- _a$1[BasketballGameLogTypes.defensive_rebound] = 'Подбор в защите',
8446
- _a$1[BasketballGameLogTypes.steal] = 'Перехват',
8447
- _a$1[BasketballGameLogTypes.turnover] = 'Потеря',
8448
- _a$1[BasketballGameLogTypes.personal_foul] = 'Фол',
8449
- _a$1[BasketballGameLogTypes.technical_foul] = 'Технический фол',
8450
- _a$1[BasketballGameLogTypes.unsportsmanlike_foul] = 'Неспортиный фол',
8451
- _a$1[BasketballGameLogTypes.timeout] = 'Таймаут',
8452
- _a$1[BasketballGameLogTypes.team_rebound] = 'Командный подбор',
8453
- _a$1);
8454
-
8455
8846
  var _a$2;
8456
- var HockeyGameLogTypeLocalization = (_a$2 = {},
8457
- _a$2[HockeyGameLogTypes.enter_game] = 'Выход на площадку',
8458
- _a$2[HockeyGameLogTypes.exit_game] = 'Ушел с площадки',
8459
- _a$2[HockeyGameLogTypes.shot_miss] = 'Бросок мимо',
8460
- _a$2[HockeyGameLogTypes.shot_on_goal] = 'Бросок по воротам',
8461
- _a$2[HockeyGameLogTypes.shot_blocked] = 'Заблокированный бросок',
8462
- _a$2[HockeyGameLogTypes.goal] = 'Гол',
8463
- _a$2[HockeyGameLogTypes.shootout_attempt] = 'Буллит промах',
8464
- _a$2[HockeyGameLogTypes.shootout_goal] = 'Буллит гол',
8465
- _a$2[HockeyGameLogTypes.after_game_shootout_attempt] = 'Буллит промах',
8466
- _a$2[HockeyGameLogTypes.after_game_shootout_goal] = 'Буллит гол',
8467
- _a$2[HockeyGameLogTypes.assist] = 'Передача',
8468
- _a$2[HockeyGameLogTypes.block_shot] = 'Блокировка броска',
8469
- _a$2[HockeyGameLogTypes.minor_penalty] = 'Малый штраф',
8470
- _a$2[HockeyGameLogTypes.major_penalty] = 'Большой штраф',
8471
- _a$2[HockeyGameLogTypes.misconduct_penalty] = 'Дисциплинарный штраф',
8472
- _a$2[HockeyGameLogTypes.game_misconduct_penalty] = 'Дисциплинарный штраф до конца игры',
8473
- _a$2[HockeyGameLogTypes.match_penalty] = 'Матч-штраф',
8474
- _a$2[HockeyGameLogTypes.penalty_shot] = 'Штрафной бросок',
8475
- _a$2[HockeyGameLogTypes.face_off_lose] = 'Проигрыш в вбрасывании',
8476
- _a$2[HockeyGameLogTypes.face_off_win] = 'Победа в вбрасывании',
8477
- _a$2[HockeyGameLogTypes.save] = 'Отражен бросок',
8478
- _a$2[HockeyGameLogTypes.shootout_save] = 'Отражен бросок',
8479
- _a$2[HockeyGameLogTypes.after_game_shootout_save] = 'Отражен бросок',
8480
- _a$2[HockeyGameLogTypes.timeout] = 'Таймаут',
8481
- _a$2[HockeyGameLogTypes.penalty_start] = 'Начало штрафного времени',
8482
- _a$2[HockeyGameLogTypes.penalty_end] = 'Конец штрафного времени',
8847
+ var BasketballGameLogTypeLocalization = (_a$2 = {},
8848
+ _a$2[BasketballGameLogTypes.enter_game] = 'Выход на площадку',
8849
+ _a$2[BasketballGameLogTypes.exit_game] = 'Ушел с площадки',
8850
+ _a$2[BasketballGameLogTypes.remove_game] = 'Удаление с площадки',
8851
+ _a$2[BasketballGameLogTypes.two_point_attempt] = 'Бросок 2 очка',
8852
+ _a$2[BasketballGameLogTypes.three_point_attempt] = 'Бросок 3 очка',
8853
+ _a$2[BasketballGameLogTypes.free_throw_attempt] = 'Штрафной бросок',
8854
+ _a$2[BasketballGameLogTypes.one_point_attempt] = 'Бросок 1 очко',
8855
+ _a$2[BasketballGameLogTypes.two_point_made] = '2 очка',
8856
+ _a$2[BasketballGameLogTypes.three_point_made] = '3 очка',
8857
+ _a$2[BasketballGameLogTypes.free_throw_made] = '1 очко, штрафной',
8858
+ _a$2[BasketballGameLogTypes.one_point_made] = '1 очко',
8859
+ _a$2[BasketballGameLogTypes.assist] = 'Передача',
8860
+ _a$2[BasketballGameLogTypes.block] = 'Блокшот',
8861
+ _a$2[BasketballGameLogTypes.rebound] = 'Подбор',
8862
+ _a$2[BasketballGameLogTypes.offensive_rebound] = 'Подбор в нападении',
8863
+ _a$2[BasketballGameLogTypes.defensive_rebound] = 'Подбор в защите',
8864
+ _a$2[BasketballGameLogTypes.steal] = 'Перехват',
8865
+ _a$2[BasketballGameLogTypes.turnover] = 'Потеря',
8866
+ _a$2[BasketballGameLogTypes.personal_foul] = 'Фол',
8867
+ _a$2[BasketballGameLogTypes.technical_foul] = 'Технический фол',
8868
+ _a$2[BasketballGameLogTypes.unsportsmanlike_foul] = 'Неспортиный фол',
8869
+ _a$2[BasketballGameLogTypes.timeout] = 'Таймаут',
8870
+ _a$2[BasketballGameLogTypes.team_rebound] = 'Командный подбор',
8483
8871
  _a$2);
8484
8872
 
8485
8873
  var _a$3;
8486
- var FootballGameLogTypeLocalization = (_a$3 = {},
8487
- _a$3[FootballGameLogTypes.enter_game] = 'Выход на поле',
8488
- _a$3[FootballGameLogTypes.exit_game] = 'Ушел с поля',
8489
- _a$3[FootballGameLogTypes.shot_miss] = 'Удар мимо',
8490
- _a$3[FootballGameLogTypes.shot_on_goal] = 'Удар в створ',
8491
- _a$3[FootballGameLogTypes.shot_blocked] = 'Заблокированный удар',
8492
- _a$3[FootballGameLogTypes.goal] = 'Гол',
8493
- _a$3[FootballGameLogTypes.assist] = 'Передача',
8494
- _a$3[FootballGameLogTypes.penalty_attempt] = 'Пенальти промах',
8495
- _a$3[FootballGameLogTypes.penalty_goal] = 'Пенальти гол',
8496
- _a$3[FootballGameLogTypes.small_penalty_attempt] = '10-метровый промах',
8497
- _a$3[FootballGameLogTypes.small_penalty_goal] = '10-метровый гол',
8498
- _a$3[FootballGameLogTypes.block_shot] = 'Блокировка удара',
8499
- _a$3[FootballGameLogTypes.corner] = 'Угловой',
8500
- _a$3[FootballGameLogTypes.free_kick] = 'Штрафной удар',
8501
- _a$3[FootballGameLogTypes.save] = 'Отражен удар',
8502
- _a$3[FootballGameLogTypes.penalty_save] = 'Отражен пенальти',
8503
- _a$3[FootballGameLogTypes.small_penalty_save] = 'Отражен 10 метровый',
8504
- _a$3[FootballGameLogTypes.foul] = 'Фол',
8505
- _a$3[FootballGameLogTypes.yellow_card] = 'Желтая карточка',
8506
- _a$3[FootballGameLogTypes.red_card] = 'Красная карточка',
8507
- _a$3[FootballGameLogTypes.perfect_pass] = 'Пас',
8508
- _a$3[FootballGameLogTypes.loss] = 'Потеря',
8509
- _a$3[FootballGameLogTypes.steal] = 'Перехват',
8510
- _a$3[FootballGameLogTypes.out] = 'Аут',
8511
- _a$3[FootballGameLogTypes.timeout] = 'Таймаут',
8512
- _a$3[FootballGameLogTypes.auto_goal] = 'Автогол',
8874
+ var HockeyGameLogTypeLocalization = (_a$3 = {},
8875
+ _a$3[HockeyGameLogTypes.enter_game] = 'Выход на площадку',
8876
+ _a$3[HockeyGameLogTypes.exit_game] = 'Ушел с площадки',
8877
+ _a$3[HockeyGameLogTypes.shot_miss] = 'Бросок мимо',
8878
+ _a$3[HockeyGameLogTypes.shot_on_goal] = 'Бросок по воротам',
8879
+ _a$3[HockeyGameLogTypes.shot_blocked] = 'Заблокированный бросок',
8880
+ _a$3[HockeyGameLogTypes.goal] = 'Гол',
8881
+ _a$3[HockeyGameLogTypes.shootout_attempt] = 'Буллит промах',
8882
+ _a$3[HockeyGameLogTypes.shootout_goal] = 'Буллит гол',
8883
+ _a$3[HockeyGameLogTypes.after_game_shootout_attempt] = 'Буллит промах',
8884
+ _a$3[HockeyGameLogTypes.after_game_shootout_goal] = 'Буллит гол',
8885
+ _a$3[HockeyGameLogTypes.assist] = 'Передача',
8886
+ _a$3[HockeyGameLogTypes.block_shot] = 'Блокировка броска',
8887
+ _a$3[HockeyGameLogTypes.minor_penalty] = 'Малый штраф',
8888
+ _a$3[HockeyGameLogTypes.major_penalty] = 'Большой штраф',
8889
+ _a$3[HockeyGameLogTypes.misconduct_penalty] = 'Дисциплинарный штраф',
8890
+ _a$3[HockeyGameLogTypes.game_misconduct_penalty] = 'Дисциплинарный штраф до конца игры',
8891
+ _a$3[HockeyGameLogTypes.match_penalty] = 'Матч-штраф',
8892
+ _a$3[HockeyGameLogTypes.penalty_shot] = 'Штрафной бросок',
8893
+ _a$3[HockeyGameLogTypes.face_off_lose] = 'Проигрыш в вбрасывании',
8894
+ _a$3[HockeyGameLogTypes.face_off_win] = 'Победа в вбрасывании',
8895
+ _a$3[HockeyGameLogTypes.save] = 'Отражен бросок',
8896
+ _a$3[HockeyGameLogTypes.shootout_save] = 'Отражен бросок',
8897
+ _a$3[HockeyGameLogTypes.after_game_shootout_save] = 'Отражен бросок',
8898
+ _a$3[HockeyGameLogTypes.timeout] = 'Таймаут',
8899
+ _a$3[HockeyGameLogTypes.penalty_start] = 'Начало штрафного времени',
8900
+ _a$3[HockeyGameLogTypes.penalty_end] = 'Конец штрафного времени',
8513
8901
  _a$3);
8514
8902
 
8515
8903
  var _a$4;
8516
- var HandballGameLogTypeLocalization = (_a$4 = {},
8517
- _a$4[HandballGameLogTypes.enter_game] = 'Выход на поле',
8518
- _a$4[HandballGameLogTypes.exit_game] = 'Ушел с поля',
8519
- _a$4[HandballGameLogTypes.shot_miss] = 'Бросок мимо',
8520
- _a$4[HandballGameLogTypes.shot_on_goal] = 'Бросок в створ',
8521
- _a$4[HandballGameLogTypes.shot_blocked] = 'Заблокированный бросок',
8522
- _a$4[HandballGameLogTypes.goal] = 'Гол',
8523
- _a$4[HandballGameLogTypes.assist] = 'Передача',
8524
- _a$4[HandballGameLogTypes.penalty_miss] = ' промах',
8525
- _a$4[HandballGameLogTypes.penalty_shot_on_goal] = ' в створ',
8526
- _a$4[HandballGameLogTypes.penalty_goal] = ' гол',
8527
- _a$4[HandballGameLogTypes.save] = 'Сэйв',
8528
- _a$4[HandballGameLogTypes.penalty_save] = 'Сэйв ',
8529
- _a$4[HandballGameLogTypes.foul] = 'Фол',
8530
- _a$4[HandballGameLogTypes.yellow_card] = 'Желлтая карточка',
8531
- _a$4[HandballGameLogTypes.red_card] = 'Красная карточка',
8532
- _a$4[HandballGameLogTypes.two_minute_foul] = ' минутный штраф',
8533
- _a$4[HandballGameLogTypes.turnover] = 'Потеря',
8534
- _a$4[HandballGameLogTypes.steal] = 'Перехват',
8535
- _a$4[HandballGameLogTypes.block_shot] = 'Блок броска',
8536
- _a$4[HandballGameLogTypes.timeout] = 'Таймаут',
8904
+ var FootballGameLogTypeLocalization = (_a$4 = {},
8905
+ _a$4[FootballGameLogTypes.enter_game] = 'Выход на поле',
8906
+ _a$4[FootballGameLogTypes.exit_game] = 'Ушел с поля',
8907
+ _a$4[FootballGameLogTypes.shot_miss] = 'Удар мимо',
8908
+ _a$4[FootballGameLogTypes.shot_on_goal] = 'Удар в створ',
8909
+ _a$4[FootballGameLogTypes.shot_blocked] = 'Заблокированный удар',
8910
+ _a$4[FootballGameLogTypes.goal] = 'Гол',
8911
+ _a$4[FootballGameLogTypes.assist] = 'Передача',
8912
+ _a$4[FootballGameLogTypes.penalty_attempt] = 'Пенальти промах',
8913
+ _a$4[FootballGameLogTypes.penalty_goal] = 'Пенальти гол',
8914
+ _a$4[FootballGameLogTypes.small_penalty_attempt] = '10-метровый промах',
8915
+ _a$4[FootballGameLogTypes.small_penalty_goal] = '10-метровый гол',
8916
+ _a$4[FootballGameLogTypes.block_shot] = 'Блокировка удара',
8917
+ _a$4[FootballGameLogTypes.corner] = 'Угловой',
8918
+ _a$4[FootballGameLogTypes.free_kick] = 'Штрафной удар',
8919
+ _a$4[FootballGameLogTypes.save] = 'Отражен удар',
8920
+ _a$4[FootballGameLogTypes.penalty_save] = 'Отражен пенальти',
8921
+ _a$4[FootballGameLogTypes.small_penalty_save] = 'Отражен 10 метровый',
8922
+ _a$4[FootballGameLogTypes.foul] = 'Фол',
8923
+ _a$4[FootballGameLogTypes.yellow_card] = 'Желтая карточка',
8924
+ _a$4[FootballGameLogTypes.red_card] = 'Красная карточка',
8925
+ _a$4[FootballGameLogTypes.perfect_pass] = 'Пас',
8926
+ _a$4[FootballGameLogTypes.loss] = 'Потеря',
8927
+ _a$4[FootballGameLogTypes.steal] = 'Перехват',
8928
+ _a$4[FootballGameLogTypes.out] = 'Аут',
8929
+ _a$4[FootballGameLogTypes.timeout] = 'Таймаут',
8930
+ _a$4[FootballGameLogTypes.auto_goal] = 'Автогол',
8537
8931
  _a$4);
8538
8932
 
8539
8933
  var _a$5;
8540
- var OvertimeTypeLocalization = (_a$5 = {},
8541
- _a$5[OvertimeTypes.to_score_diff] = 'До разницы в N мячей',
8542
- _a$5[OvertimeTypes.to_score_total] = 'До N очков',
8543
- _a$5[OvertimeTypes.time] = 'По времени',
8544
- _a$5[OvertimeTypes.without_overtime] = 'Без овертайма',
8545
- _a$5[OvertimeTypes.to_first_goal] = 'На N минут до первой шайбы',
8546
- _a$5[OvertimeTypes.to_first_goal_and_bullitts] = 'На N минут до первой шайбы + буллиты',
8547
- _a$5[OvertimeTypes.bullitts] = 'Буллиты',
8548
- _a$5[OvertimeTypes.penalties] = 'Пенальти',
8549
- _a$5[OvertimeTypes.time_and_penalties] = 'Дополнительное время + пенальти',
8934
+ var HandballGameLogTypeLocalization = (_a$5 = {},
8935
+ _a$5[HandballGameLogTypes.enter_game] = 'Выход на поле',
8936
+ _a$5[HandballGameLogTypes.exit_game] = 'Ушел с поля',
8937
+ _a$5[HandballGameLogTypes.shot_miss] = 'Бросок мимо',
8938
+ _a$5[HandballGameLogTypes.shot_on_goal] = 'Бросок в створ',
8939
+ _a$5[HandballGameLogTypes.shot_blocked] = 'Заблокированный бросок',
8940
+ _a$5[HandballGameLogTypes.goal] = 'Гол',
8941
+ _a$5[HandballGameLogTypes.assist] = 'Передача',
8942
+ _a$5[HandballGameLogTypes.penalty_miss] = '7м промах',
8943
+ _a$5[HandballGameLogTypes.penalty_shot_on_goal] = ' в створ',
8944
+ _a$5[HandballGameLogTypes.penalty_goal] = '7м гол',
8945
+ _a$5[HandballGameLogTypes.save] = 'Сэйв',
8946
+ _a$5[HandballGameLogTypes.penalty_save] = 'Сэйв 7м',
8947
+ _a$5[HandballGameLogTypes.foul] = 'Фол',
8948
+ _a$5[HandballGameLogTypes.yellow_card] = 'Желлтая карточка',
8949
+ _a$5[HandballGameLogTypes.red_card] = 'Красная карточка',
8950
+ _a$5[HandballGameLogTypes.two_minute_foul] = '2х минутный штраф',
8951
+ _a$5[HandballGameLogTypes.turnover] = 'Потеря',
8952
+ _a$5[HandballGameLogTypes.steal] = 'Перехват',
8953
+ _a$5[HandballGameLogTypes.block_shot] = 'Блок броска',
8954
+ _a$5[HandballGameLogTypes.timeout] = 'Таймаут',
8550
8955
  _a$5);
8551
8956
 
8552
8957
  var _a$6;
8553
- var TeamUserRoleLocalization = (_a$6 = {},
8554
- _a$6[TeamUserRole.member] = 'Пользователь',
8555
- _a$6[TeamUserRole.moderator] = 'Модератор',
8556
- _a$6[TeamUserRole.admin] = 'Владелец',
8557
- _a$6[TeamUserRole.coach] = 'Тренер',
8558
- _a$6[TeamUserRole.head_coach] = 'Главный тренер',
8559
- _a$6[TeamUserRole.playing_coach] = 'Играющий тренер',
8560
- _a$6[TeamUserRole.manager] = 'Менеджер',
8561
- _a$6[TeamUserRole.head_manager] = 'Генеральный менеджер',
8562
- _a$6[TeamUserRole.captain] = 'Капитан',
8563
- _a$6[TeamUserRole.assistant] = 'Ассистент',
8958
+ var OvertimeTypeLocalization = (_a$6 = {},
8959
+ _a$6[OvertimeTypes.to_score_diff] = 'До разницы в N мячей',
8960
+ _a$6[OvertimeTypes.to_score_total] = 'До N очков',
8961
+ _a$6[OvertimeTypes.time] = 'По времени',
8962
+ _a$6[OvertimeTypes.without_overtime] = 'Без овертайма',
8963
+ _a$6[OvertimeTypes.to_first_goal] = 'На N минут до первой шайбы',
8964
+ _a$6[OvertimeTypes.to_first_goal_and_bullitts] = 'На N минут до первой шайбы + буллиты',
8965
+ _a$6[OvertimeTypes.bullitts] = 'Буллиты',
8966
+ _a$6[OvertimeTypes.penalties] = 'Пенальти',
8967
+ _a$6[OvertimeTypes.time_and_penalties] = 'Дополнительное время + пенальти',
8564
8968
  _a$6);
8565
8969
 
8566
- var _a$7, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
8567
- var GameBasketballPositionLocalization = (_a$7 = {},
8568
- _a$7[GameBasketballPosition.point_guard] = 'Разыгрывающий защитник',
8569
- _a$7[GameBasketballPosition.shooting_guard] = 'Атакующий защитник',
8570
- _a$7[GameBasketballPosition.small_forward] = 'Легкий форвард',
8571
- _a$7[GameBasketballPosition.power_forward] = 'Мощный форвард',
8572
- _a$7[GameBasketballPosition.center] = 'Центровой',
8970
+ var _a$7;
8971
+ var RugbyGameLogTypeLocalization = (_a$7 = {},
8972
+ _a$7[RugbyGameLogTypes.enter_game] = 'Выход на площадку',
8973
+ _a$7[RugbyGameLogTypes.exit_game] = 'Ушел с площадки',
8974
+ _a$7[RugbyGameLogTypes.try] = 'Попытка',
8975
+ _a$7[RugbyGameLogTypes.penalty_try] = 'Штрафная попытка',
8976
+ _a$7[RugbyGameLogTypes.conversion_goal] = 'Реализация',
8977
+ _a$7[RugbyGameLogTypes.conversion_miss] = 'Реализация промах',
8978
+ _a$7[RugbyGameLogTypes.drawing_ball] = 'Розыгрыш мяча',
8979
+ _a$7[RugbyGameLogTypes.penalty_miss] = 'Штрафной промах',
8980
+ _a$7[RugbyGameLogTypes.penalty_goal] = 'Штрафной гол',
8981
+ _a$7[RugbyGameLogTypes.drop_goal] = 'Дроп-гол',
8982
+ _a$7[RugbyGameLogTypes.drop_goal_miss] = 'Дроп-гол промах',
8983
+ _a$7[RugbyGameLogTypes.free_kick] = 'Свободный удар',
8984
+ _a$7[RugbyGameLogTypes.yellow_card] = 'Желтая карточка',
8985
+ _a$7[RugbyGameLogTypes.red_card] = 'Красная карточка',
8986
+ _a$7[RugbyGameLogTypes.offload] = 'Скидка при завхвате',
8987
+ _a$7[RugbyGameLogTypes.tackle] = 'Успешный захват',
8988
+ _a$7[RugbyGameLogTypes.out] = 'Аут',
8989
+ _a$7[RugbyGameLogTypes.handling_error] = 'Ошибка приема',
8990
+ _a$7[RugbyGameLogTypes.carries_other_gainline] = 'Прорыв линии',
8991
+ _a$7[RugbyGameLogTypes.timeout] = 'Таймаут',
8992
+ _a$7[RugbyGameLogTypes.scrum_won] = 'Свахтка выиграна',
8993
+ _a$7[RugbyGameLogTypes.scrum_lose] = 'Схватка проиграна',
8994
+ _a$7[RugbyGameLogTypes.scrum_won_free] = 'Схватка выиграна без сопротивления',
8995
+ _a$7[RugbyGameLogTypes.lineout_success] = 'Корридор выиграно',
8996
+ _a$7[RugbyGameLogTypes.lineout_loss] = 'Корридор потеря',
8997
+ _a$7[RugbyGameLogTypes.lineout_steal] = 'Корридор перехват',
8998
+ _a$7[RugbyGameLogTypes.quick_throw] = 'Быстрый вброс',
8999
+ _a$7[RugbyGameLogTypes.ruck_won] = 'Рак выиграно',
9000
+ _a$7[RugbyGameLogTypes.ruck_lose] = 'Рак проиграно',
9001
+ _a$7[RugbyGameLogTypes.maul_won] = 'Мол выиграно',
9002
+ _a$7[RugbyGameLogTypes.maul_lose] = 'Мол проиграно',
9003
+ _a$7[RugbyGameLogTypes.team_foul] = 'Фол',
8573
9004
  _a$7);
9005
+
9006
+ var _a$8;
9007
+ var TeamUserRoleLocalization = (_a$8 = {},
9008
+ _a$8[TeamUserRole.member] = 'Пользователь',
9009
+ _a$8[TeamUserRole.moderator] = 'Модератор',
9010
+ _a$8[TeamUserRole.admin] = 'Владелец',
9011
+ _a$8[TeamUserRole.coach] = 'Тренер',
9012
+ _a$8[TeamUserRole.head_coach] = 'Главный тренер',
9013
+ _a$8[TeamUserRole.playing_coach] = 'Играющий тренер',
9014
+ _a$8[TeamUserRole.manager] = 'Менеджер',
9015
+ _a$8[TeamUserRole.head_manager] = 'Генеральный менеджер',
9016
+ _a$8[TeamUserRole.captain] = 'Капитан',
9017
+ _a$8[TeamUserRole.assistant] = 'Ассистент',
9018
+ _a$8);
9019
+
9020
+ var _a$9, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
9021
+ var GameBasketballPositionLocalization = (_a$9 = {},
9022
+ _a$9[GameBasketballPosition.point_guard] = 'Разыгрывающий защитник',
9023
+ _a$9[GameBasketballPosition.shooting_guard] = 'Атакующий защитник',
9024
+ _a$9[GameBasketballPosition.small_forward] = 'Легкий форвард',
9025
+ _a$9[GameBasketballPosition.power_forward] = 'Мощный форвард',
9026
+ _a$9[GameBasketballPosition.center] = 'Центровой',
9027
+ _a$9);
8574
9028
  var GameBasketballPositionShortLocalization = (_b = {},
8575
9029
  _b[GameBasketballPosition.point_guard] = 'PG',
8576
9030
  _b[GameBasketballPosition.shooting_guard] = 'SG',
@@ -8630,32 +9084,40 @@ var GameHandballPositionLocalization = (_l = {},
8630
9084
  _l[GameHandballPosition.centre_back] = 'Центральный',
8631
9085
  _l[GameHandballPosition.fullback] = 'Полусредний',
8632
9086
  _l);
8633
-
8634
- var _a$8;
8635
- var VolleyballGameLogTypeLocalization = (_a$8 = {},
8636
- _a$8[VolleyballGameLogType.enter_game] = 'Выход на площадку',
8637
- _a$8[VolleyballGameLogType.exit_game] = 'Уход с площадки',
8638
- _a$8[VolleyballGameLogType.remove_game] = 'Удаление с площадки',
8639
- _a$8[VolleyballGameLogType.serve_ace] = 'Эйс',
8640
- _a$8[VolleyballGameLogType.serve_hit] = 'Подача',
8641
- _a$8[VolleyballGameLogType.serve_fault] = 'Ошибка на подаче',
8642
- _a$8[VolleyballGameLogType.attack_spike] = 'Результативная атака',
8643
- _a$8[VolleyballGameLogType.attack_shot] = 'Атака',
8644
- _a$8[VolleyballGameLogType.attack_fault] = 'Ошибка атаки',
8645
- _a$8[VolleyballGameLogType.stuff_block] = 'Результативный блок',
8646
- _a$8[VolleyballGameLogType.block_rebound] = 'Блок',
8647
- _a$8[VolleyballGameLogType.block_fault] = 'Ошибка на блоке',
8648
- _a$8[VolleyballGameLogType.excellent_receive] = 'Отличный прием',
8649
- _a$8[VolleyballGameLogType.receive] = 'Прием',
8650
- _a$8[VolleyballGameLogType.receive_fault] = 'Ошибка на приеме',
8651
- _a$8[VolleyballGameLogType.serve_receive] = 'Прием подачи',
8652
- _a$8[VolleyballGameLogType.excellent_serve_receive] = 'Отличный прием подачи',
8653
- _a$8[VolleyballGameLogType.serve_receive_fault] = 'Ошибка приема подачи',
8654
- _a$8[VolleyballGameLogType.point] = 'Очко',
8655
- _a$8[VolleyballGameLogType.fault] = 'Ошибка',
8656
- _a$8[VolleyballGameLogType.timeout] = 'Таймаут',
8657
- _a$8[VolleyballGameLogType.yellow_card] = 'Предупреждение',
8658
- _a$8);
9087
+ var GameRugbyPositionLocalization = (_m = {},
9088
+ _m[GameRugbyPosition.front_line] = 'Надающий первой линии',
9089
+ _m[GameRugbyPosition.second_line] = 'Нападающий второй линии',
9090
+ _m[GameRugbyPosition.back_line] = 'Нападающий задней линии',
9091
+ _m[GameRugbyPosition.halfback] = 'Полузащитник',
9092
+ _m[GameRugbyPosition.three_quarter] = 'Трехчетвертный',
9093
+ _m[GameRugbyPosition.fullback] = 'Замыкающий',
9094
+ _m);
9095
+
9096
+ var _a$a;
9097
+ var VolleyballGameLogTypeLocalization = (_a$a = {},
9098
+ _a$a[VolleyballGameLogType.enter_game] = 'Выход на площадку',
9099
+ _a$a[VolleyballGameLogType.exit_game] = 'Уход с площадки',
9100
+ _a$a[VolleyballGameLogType.remove_game] = 'Удаление с площадки',
9101
+ _a$a[VolleyballGameLogType.serve_ace] = 'Эйс',
9102
+ _a$a[VolleyballGameLogType.serve_hit] = 'Подача',
9103
+ _a$a[VolleyballGameLogType.serve_fault] = 'Ошибка на подаче',
9104
+ _a$a[VolleyballGameLogType.attack_spike] = 'Результативная атака',
9105
+ _a$a[VolleyballGameLogType.attack_shot] = 'Атака',
9106
+ _a$a[VolleyballGameLogType.attack_fault] = 'Ошибка атаки',
9107
+ _a$a[VolleyballGameLogType.stuff_block] = 'Результативный блок',
9108
+ _a$a[VolleyballGameLogType.block_rebound] = 'Блок',
9109
+ _a$a[VolleyballGameLogType.block_fault] = 'Ошибка на блоке',
9110
+ _a$a[VolleyballGameLogType.excellent_receive] = 'Отличный прием',
9111
+ _a$a[VolleyballGameLogType.receive] = 'Прием',
9112
+ _a$a[VolleyballGameLogType.receive_fault] = 'Ошибка на приеме',
9113
+ _a$a[VolleyballGameLogType.serve_receive] = 'Прием подачи',
9114
+ _a$a[VolleyballGameLogType.excellent_serve_receive] = 'Отличный прием подачи',
9115
+ _a$a[VolleyballGameLogType.serve_receive_fault] = 'Ошибка приема подачи',
9116
+ _a$a[VolleyballGameLogType.point] = 'Очко',
9117
+ _a$a[VolleyballGameLogType.fault] = 'Ошибка',
9118
+ _a$a[VolleyballGameLogType.timeout] = 'Таймаут',
9119
+ _a$a[VolleyballGameLogType.yellow_card] = 'Предупреждение',
9120
+ _a$a);
8659
9121
 
8660
9122
  var LeaguePlaylist = /** @class */ (function (_super) {
8661
9123
  __extends(LeaguePlaylist, _super);
@@ -8686,6 +9148,41 @@ var LeaguePlaylist = /** @class */ (function (_super) {
8686
9148
  return LeaguePlaylist;
8687
9149
  }(BaseModel));
8688
9150
 
9151
+ var RugbyGameConfig = /** @class */ (function (_super) {
9152
+ __extends(RugbyGameConfig, _super);
9153
+ function RugbyGameConfig() {
9154
+ return _super !== null && _super.apply(this, arguments) || this;
9155
+ }
9156
+ RugbyGameConfig.toFront = function (data) { };
9157
+ RugbyGameConfig.toBack = function (data) { };
9158
+ __decorate([
9159
+ ToFrontHook
9160
+ ], RugbyGameConfig, "toFront", null);
9161
+ __decorate([
9162
+ ToBackHook
9163
+ ], RugbyGameConfig, "toBack", null);
9164
+ RugbyGameConfig = __decorate([
9165
+ ModelInstance({
9166
+ mappingFields: {
9167
+ periods_count: 'periodsCount',
9168
+ period_time: 'periodTime',
9169
+ overtime_type: 'overtimeType',
9170
+ overtime_time: 'overtimeTime',
9171
+ overtime_periods: 'overtimePeriods',
9172
+ max_game_players: 'maxGamePlayers',
9173
+ game_time_type: 'gameTimeType',
9174
+ substitute_count: 'substituteCount',
9175
+ free_substitute_enabled: 'freeSubstituteEnabled',
9176
+ },
9177
+ relation: {
9178
+ overtimeType: enumField(OvertimeTypes),
9179
+ gameTimeType: enumField(GameTimeTypes),
9180
+ }
9181
+ })
9182
+ ], RugbyGameConfig);
9183
+ return RugbyGameConfig;
9184
+ }(BaseModel));
9185
+
8689
9186
  var CentrifugoService = /** @class */ (function () {
8690
9187
  function CentrifugoService(httpClient, configService) {
8691
9188
  this.httpClient = httpClient;
@@ -9106,5 +9603,5 @@ var HttpCookieInterceptor = /** @class */ (function () {
9106
9603
  * Generated bundle index. Do not edit.
9107
9604
  */
9108
9605
 
9109
- export { BannerLocation, BaseModel, BaseService, BasketballGameApi, BasketballGameConfig, BasketballGameLog, BasketballGameLogTypeLocalization, BasketballGameLogTypes, BasketballGameStatistic, BasketballGameTeamStatistic, BasketballProfile, BasketballStatistic, BasketballStatisticTypes, CONFIG_DATA, CentrifugoService, City, ConfigService, DateField, DateTimeField, FAULT_LOG_TYPES, Feedback, FeedbackApi, File, FileApi, FileEngine, FootballGameApi, FootballGameConfig, FootballGameLog, FootballGameLogTypeLocalization, FootballGameLogTypes, FootballGameStatistic, FootballGameTeamStatistic, FootballProfile, FootballStatistic, FootballWorkFoot, FootballWorkFootLocalization, Game, GameBaseApi, GameBasketballPosition, GameBasketballPositionLocalization, GameBasketballPositionShortLocalization, GameFootballPosition, GameFootballPositionLocalization, GameHandballPosition, GameHandballPositionLocalization, GameHockeyPosition, GameHockeyPositionLocalization, GameInvite, GameInviteStatus, GameResultTypes, GameStatuses, GameTimeTypes, GameTimelineStageItem, GameTimelineStages, GameUser, GameUserLimitationTypes, GameUserLimitations, GameVolleyballPosition, GameVolleyballPositionLocalization, GameVolleyballPositionShortLocalization, GameVolleyballPositionShortRuLocalization, HandballGameApi, HandballGameConfig, HandballGameLog, HandballGameLogTypeLocalization, HandballGameLogTypes, HandballGameStatistic, HandballGameTeamStatistic, HandballProfile, HandballStatistic, HockeyAdvantageTypes, HockeyGameApi, HockeyGameConfig, HockeyGameLog, HockeyGameLogTypeLocalization, HockeyGameLogTypes, HockeyGameStatistic, HockeyGameTeamStatistic, HockeyPenaltyTypes, HockeyProfile, HockeyStatistic, HockeyWorkHand, HttpCookieInterceptor, League, LeagueApi, LeagueBanner, LeagueCourt, LeagueDocument, LeagueNews, LeagueNewsApi, LeagueNewsType, LeaguePartner, LeaguePlayer, LeaguePlayerApi, LeaguePlaylist, LocalStorageEngine, MODEL_MAPPING_FIELDS_KEY, MODEL_RELATION_KEY, MODEL_TO_BACK_KEY, MODEL_TO_FRONT_KEY, MediaApi, MediaItem, ModelInstance, Notification, NotificationAllowTypes, NotificationApi, NotificationBaseApi, NotificationServiceEnum, NotificationSettings, NotificationType, OrgNotificationApi, Organization, OvertimeTypeLocalization, OvertimeTypes, Playoff, PlayoffSettings, PlayoffTypes, Poll, PollAnswer, PollStatuses, PollVariant, PublicTeamApi, PublicUserApi, ReferenceApi, SCORE_LOG_TYPES, Sport, SportTypes, StorageEngine, StorageEngineField, Store, Team, TeamAccess, TeamApi, TeamEvent, TeamEventApi, TeamEventInvite, TeamEventInviteStatuses, TeamEventTypeLocalization, TeamEventTypes, TeamInvite, TeamInviteExternal, TeamPermission, TeamPermissionTypes, TeamUser, TeamUserRole, TeamUserRoleLocalization, ToBackHook, ToFrontHook, Tournament, TournamentApi, TournamentDisqualification, TournamentEvent, TournamentEventTypes, TournamentGender, TournamentGroup, TournamentInvite, TournamentJoinApi, TournamentJoinData, TournamentJoinTeam, TournamentNews, TournamentSeason, TournamentSeasonApi, TournamentSeasonStatuses, TournamentSettings, TournamentStage, TournamentStageApi, TournamentStageStatuses, TournamentStageTeam, TournamentStatuses, TournamentTeam, TournamentTeamShort, TournamentTeamUser, TournamentTeamUserInvite, TournamentTeamWinner, TournamentTypes, UntilDestroy, User, UserAccess, UserApi, UserGender, UserPermission, UserPermissionTypes, UserProfile, VolleyballGameApi, VolleyballGameConfig, VolleyballGameLog, VolleyballGameLogType, VolleyballGameLogTypeLocalization, VolleyballGameStatistic, VolleyballGameTeamStatistic, VolleyballGameTypes, VolleyballProfile, VolleyballStatistic, VolleyballStatisticTypes, VolleyballWorkHand, VolleyballWorkHandLocalization, WorkHand, WorkHandLocalization, addItemInArray, changeFavicons, componentDestroyed, deleteItemFromArray, enumField, fileSizeValidator, generateArray, getArrayChunks, getCookie, getEnumOptions, getIconsData, handleError, isTouchDevice, listField, markFormGroupTouched, minLengthArrayValidator, patchItemInArray, penaltyTypeField, updateItemInArray, updateItemsInArray, validateDate, validateEmail, validatePhone, validateUrl };
9606
+ export { BannerLocation, BaseModel, BaseService, BasketballGameApi, BasketballGameConfig, BasketballGameLog, BasketballGameLogTypeLocalization, BasketballGameLogTypes, BasketballGameStatistic, BasketballGameTeamStatistic, BasketballProfile, BasketballStatistic, BasketballStatisticTypes, CONFIG_DATA, CentrifugoService, City, ConfigService, DateField, DateTimeField, FAULT_LOG_TYPES, Feedback, FeedbackApi, File, FileApi, FileEngine, FootballGameApi, FootballGameConfig, FootballGameLog, FootballGameLogTypeLocalization, FootballGameLogTypes, FootballGameStatistic, FootballGameTeamStatistic, FootballProfile, FootballStatistic, FootballWorkFoot, FootballWorkFootLocalization, Game, GameBaseApi, GameBasketballPosition, GameBasketballPositionLocalization, GameBasketballPositionShortLocalization, GameFootballPosition, GameFootballPositionLocalization, GameHandballPosition, GameHandballPositionLocalization, GameHockeyPosition, GameHockeyPositionLocalization, GameInvite, GameInviteStatus, GameResultTypes, GameRugbyPosition, GameRugbyPositionLocalization, GameStatuses, GameTimeTypes, GameTimelineStageItem, GameTimelineStages, GameUser, GameUserLimitationTypes, GameUserLimitations, GameVolleyballPosition, GameVolleyballPositionLocalization, GameVolleyballPositionShortLocalization, GameVolleyballPositionShortRuLocalization, HandballGameApi, HandballGameConfig, HandballGameLog, HandballGameLogTypeLocalization, HandballGameLogTypes, HandballGameStatistic, HandballGameTeamStatistic, HandballProfile, HandballStatistic, HockeyAdvantageTypes, HockeyGameApi, HockeyGameConfig, HockeyGameLog, HockeyGameLogTypeLocalization, HockeyGameLogTypes, HockeyGameStatistic, HockeyGameTeamStatistic, HockeyPenaltyTypes, HockeyProfile, HockeyStatistic, HockeyWorkHand, HttpCookieInterceptor, League, LeagueApi, LeagueBanner, LeagueCourt, LeagueDocument, LeagueNews, LeagueNewsApi, LeagueNewsType, LeaguePartner, LeaguePlayer, LeaguePlayerApi, LeaguePlaylist, LocalStorageEngine, MODEL_MAPPING_FIELDS_KEY, MODEL_RELATION_KEY, MODEL_TO_BACK_KEY, MODEL_TO_FRONT_KEY, MediaApi, MediaItem, ModelInstance, Notification, NotificationAllowTypes, NotificationApi, NotificationBaseApi, NotificationServiceEnum, NotificationSettings, NotificationType, OrgNotificationApi, Organization, OvertimeTypeLocalization, OvertimeTypes, Playoff, PlayoffSettings, PlayoffTypes, Poll, PollAnswer, PollStatuses, PollVariant, PublicTeamApi, PublicUserApi, RUGBY_GAME_LOG_TYPE_POINTS, RUGBY_TEAM_LOG_TYPES, ReferenceApi, RugbyGameApi, RugbyGameConfig, RugbyGameLog, RugbyGameLogTypeLocalization, RugbyGameLogTypes, RugbyGameStatistic, RugbyGameTeamStatistic, RugbyProfile, RugbyStatistic, SCORE_LOG_TYPES, Sport, SportTypes, StorageEngine, StorageEngineField, Store, Team, TeamAccess, TeamApi, TeamEvent, TeamEventApi, TeamEventInvite, TeamEventInviteStatuses, TeamEventTypeLocalization, TeamEventTypes, TeamInvite, TeamInviteExternal, TeamPermission, TeamPermissionTypes, TeamUser, TeamUserRole, TeamUserRoleLocalization, ToBackHook, ToFrontHook, Tournament, TournamentApi, TournamentDisqualification, TournamentEvent, TournamentEventTypes, TournamentGender, TournamentGroup, TournamentInvite, TournamentJoinApi, TournamentJoinData, TournamentJoinTeam, TournamentNews, TournamentSeason, TournamentSeasonApi, TournamentSeasonStatuses, TournamentSettings, TournamentStage, TournamentStageApi, TournamentStageStatuses, TournamentStageTeam, TournamentStatuses, TournamentTeam, TournamentTeamShort, TournamentTeamUser, TournamentTeamUserInvite, TournamentTeamWinner, TournamentTypes, UntilDestroy, User, UserAccess, UserApi, UserGender, UserPermission, UserPermissionTypes, UserProfile, VolleyballGameApi, VolleyballGameConfig, VolleyballGameLog, VolleyballGameLogType, VolleyballGameLogTypeLocalization, VolleyballGameStatistic, VolleyballGameTeamStatistic, VolleyballGameTypes, VolleyballProfile, VolleyballStatistic, VolleyballStatisticTypes, VolleyballWorkHand, VolleyballWorkHandLocalization, WorkHand, WorkHandLocalization, addItemInArray, applyGameMediaFilters, applyGamesFilters, applyStatisticFilters, applyStatisticLeadersFilters, changeFavicons, componentDestroyed, deleteItemFromArray, enumField, fileSizeValidator, generateArray, getArrayChunks, getCookie, getEnumOptions, getIconsData, handleError, isTouchDevice, listField, markFormGroupTouched, minLengthArrayValidator, patchItemInArray, penaltyTypeField, updateItemInArray, updateItemsInArray, validateDate, validateEmail, validatePhone, validateUrl };
9110
9607
  //# sourceMappingURL=mtgame-core.js.map