client_plugin_logic_deb 1.8.480 → 1.8.481
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/Logic_Debertz-client_plugin.js +1939 -1939
- package/Logic_Debertz-core.js +1 -1
- package/Logic_Debertz-engine.js +49 -49
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.js +673 -656
- package/Logic_Debertz-game_client.js.map +1 -1
- package/Logic_Debertz-game_server.js +774 -774
- package/kotlin-kotlin-stdlib.js +18 -18
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-coroutines-core.js +8 -8
- package/kotlinx-coroutines-core.js.map +1 -1
- package/package.json +1 -1
|
@@ -404,7 +404,7 @@
|
|
|
404
404
|
var GameAction = kotlin_io_raspberryapps_game_engine_engine.$_$.u6;
|
|
405
405
|
var PlayerTurnTimerTag_init_$Create$ = kotlin_io_raspberryapps_game_engine_engine.$_$.pa;
|
|
406
406
|
var getInitialPlayerTurnTimerDelayMillis = kotlin_io_raspberryapps_game_engine_engine.$_$.r8;
|
|
407
|
-
var
|
|
407
|
+
var toSet = kotlin_kotlin.$_$.sa;
|
|
408
408
|
var Reason_INTERNAL_ERROR_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.d5;
|
|
409
409
|
var get_isEarnPointScene = kotlin_io_raspberryapps_game_engine_engine.$_$.a4;
|
|
410
410
|
var NavigationMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.i7;
|
|
@@ -435,7 +435,6 @@
|
|
|
435
435
|
var updateItem = kotlin_io_raspberryapps_game_engine_core.$_$.e4;
|
|
436
436
|
var takeLast = kotlin_kotlin.$_$.ca;
|
|
437
437
|
var FinishingGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.c7;
|
|
438
|
-
var toSet = kotlin_kotlin.$_$.sa;
|
|
439
438
|
var EarnPointsSceneData = kotlin_io_raspberryapps_game_engine_engine.$_$.m1;
|
|
440
439
|
var sortedWith = kotlin_kotlin.$_$.y9;
|
|
441
440
|
var getValue = kotlin_kotlin.$_$.e8;
|
|
@@ -446,8 +445,8 @@
|
|
|
446
445
|
var reversed = kotlin_kotlin.$_$.r9;
|
|
447
446
|
var updated = kotlin_io_raspberryapps_game_engine_core.$_$.h4;
|
|
448
447
|
var Comparator = kotlin_kotlin.$_$.qi;
|
|
449
|
-
var zip = kotlin_kotlin.$_$.va;
|
|
450
448
|
var coerceAtLeast = kotlin_kotlin.$_$.xe;
|
|
449
|
+
var zip = kotlin_kotlin.$_$.va;
|
|
451
450
|
var checkIndexOverflow = kotlin_kotlin.$_$.o6;
|
|
452
451
|
var CombinationType_SEVEN_TRUMP_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.ga;
|
|
453
452
|
var toMutableSet = kotlin_kotlin.$_$.ra;
|
|
@@ -1307,7 +1306,10 @@
|
|
|
1307
1306
|
initMetadataForLambda(statisticsMiddleware$o$handle$slambda, CoroutineImpl, VOID, [1]);
|
|
1308
1307
|
initMetadataForClass(statisticsMiddleware$$inlined$middlewareForActionType$1, VOID, VOID, VOID, [Middleware]);
|
|
1309
1308
|
initMetadataForClass(clearTimersWhenErrorMiddleware$$inlined$middlewareForActionType$1, VOID, VOID, VOID, [Middleware]);
|
|
1310
|
-
initMetadataForClass(
|
|
1309
|
+
initMetadataForClass(TransitionFailsafeTimerTag, 'TransitionFailsafeTimerTag', VOID, VOID, [NotValidateIfGameFinished, NotValidateTimerReset]);
|
|
1310
|
+
initMetadataForClass(transitionFailsafeStartMiddleware$$inlined$middlewareForActionType$1, VOID, VOID, VOID, [Middleware]);
|
|
1311
|
+
initMetadataForClass(transitionFinishedMiddleware$$inlined$middlewareForActionType$1, VOID, VOID, VOID, [Middleware]);
|
|
1312
|
+
initMetadataForClass(transitionFailsafeTimeoutMiddleware$$inlined$middlewareForActionType$1, VOID, VOID, VOID, [Middleware]);
|
|
1311
1313
|
initMetadataForClass(checkExpectantsMiddleware$$inlined$middlewareForActionType$1, VOID, VOID, VOID, [Middleware]);
|
|
1312
1314
|
initMetadataForClass(checkValidCurrentPlayerIdMiddleware$$inlined$middlewareForActionType$1, VOID, VOID, VOID, [Middleware]);
|
|
1313
1315
|
initMetadataForClass(clientShowDisabledCardMessageMiddleware$$inlined$middlewareForActionType$1, VOID, VOID, VOID, [Middleware]);
|
|
@@ -1328,11 +1330,23 @@
|
|
|
1328
1330
|
initMetadataForClass(clientErrorStateWhenTerminationActionReducer$$inlined$reducerForActionType$1, VOID, VOID, VOID, [Reducer]);
|
|
1329
1331
|
initMetadataForClass(expectantLifecycleReducer$$inlined$reducerForActionType$1, VOID, VOID, VOID, [Reducer]);
|
|
1330
1332
|
initMetadataForClass(interceptorActionReducer$$inlined$reducerForActionType$1, VOID, VOID, VOID, [Reducer]);
|
|
1331
|
-
function reducers(currentPlayerId) {
|
|
1332
|
-
|
|
1333
|
+
function reducers(currentPlayerId, useTransitions) {
|
|
1334
|
+
var tmp;
|
|
1335
|
+
if (useTransitions) {
|
|
1336
|
+
tmp = listOf([this.if3(currentPlayerId), this.jf3(currentPlayerId), this.kf3(currentPlayerId), this.lf3(currentPlayerId), this.mf3(), this.nf3(currentPlayerId)]);
|
|
1337
|
+
} else {
|
|
1338
|
+
tmp = emptyList();
|
|
1339
|
+
}
|
|
1340
|
+
return tmp;
|
|
1333
1341
|
}
|
|
1334
|
-
function
|
|
1335
|
-
|
|
1342
|
+
function middlewares(gameLogger, useTransitions) {
|
|
1343
|
+
var tmp;
|
|
1344
|
+
if (useTransitions) {
|
|
1345
|
+
tmp = listOf([transitionFailsafeStartMiddleware(), transitionFinishedMiddleware(), transitionFailsafeTimeoutMiddleware(gameLogger)]);
|
|
1346
|
+
} else {
|
|
1347
|
+
tmp = emptyList();
|
|
1348
|
+
}
|
|
1349
|
+
return tmp;
|
|
1336
1350
|
}
|
|
1337
1351
|
initMetadataForInterface(TransitionsReducer, 'TransitionsReducer');
|
|
1338
1352
|
initMetadataForClass(DistributeCardsModel, 'DistributeCardsModel', VOID, VOID, [PlayerIdContract]);
|
|
@@ -1340,7 +1354,9 @@
|
|
|
1340
1354
|
initMetadataForClass(TransitionsReducerImpl$addTransitionWhenPutCardAndCheckCombinationReducer$$inlined$reducerForActionType$1, VOID, VOID, VOID, [Reducer]);
|
|
1341
1355
|
initMetadataForClass(TransitionsReducerImpl$addTransitionWhenPutCardReducer$$inlined$reducerForActionType$1, VOID, VOID, VOID, [Reducer]);
|
|
1342
1356
|
initMetadataForClass(TransitionsReducerImpl$addTransitionWhenCardDistributionReducer$$inlined$reducerForActionType$1, VOID, VOID, VOID, [Reducer]);
|
|
1343
|
-
initMetadataForClass(TransitionsReducerImpl$
|
|
1357
|
+
initMetadataForClass(TransitionsReducerImpl$addTransitionWhenShowCombinationReducer$$inlined$reducerForActionType$1, VOID, VOID, VOID, [Reducer]);
|
|
1358
|
+
initMetadataForClass(TransitionsReducerImpl$addTransitionWhenPickUpBribeReducer$$inlined$reducerForActionType$1, VOID, VOID, VOID, [Reducer]);
|
|
1359
|
+
initMetadataForClass(TransitionsReducerImpl$addTransitionWhenCombinationChoiceReducer$$inlined$reducerForActionType$1, VOID, VOID, VOID, [Reducer]);
|
|
1344
1360
|
initMetadataForClass(TransitionsReducerImpl, 'TransitionsReducerImpl', VOID, VOID, [TransitionsReducer]);
|
|
1345
1361
|
initMetadataForClass(PlayerHandSelector, 'PlayerHandSelector');
|
|
1346
1362
|
initMetadataForCompanion(Companion_81);
|
|
@@ -1377,7 +1393,7 @@
|
|
|
1377
1393
|
ratingConfig = ratingConfig === VOID ? new RatingConfig() : ratingConfig;
|
|
1378
1394
|
leaguesConfig = leaguesConfig === VOID ? Companion_instance_6.defaultConfig() : leaguesConfig;
|
|
1379
1395
|
coreConfig = coreConfig === VOID ? new CoreConfig() : coreConfig;
|
|
1380
|
-
return $super === VOID ? this.
|
|
1396
|
+
return $super === VOID ? this.gf5(currentPlayerId, reducers, middlewares, gameClientConfig, engineBotConfig, logicConfig, dealerConfig, ratingConfig, leaguesConfig, coreConfig) : $super.gf5.call(this, currentPlayerId, reducers, middlewares, gameClientConfig, engineBotConfig, logicConfig, dealerConfig, ratingConfig, leaguesConfig, coreConfig);
|
|
1381
1397
|
}
|
|
1382
1398
|
initMetadataForInterface(GameClientEngineController, 'GameClientEngineController');
|
|
1383
1399
|
initMetadataForClass(GameClientEngineControllerImpl$createOnlineGameEngineWithLogic$$inlined$map$1, VOID, VOID, VOID, [Reducer]);
|
|
@@ -30273,7 +30289,8 @@
|
|
|
30273
30289
|
// Inline function 'kotlinx.coroutines.flow.unsafeTransform' call
|
|
30274
30290
|
var this_0 = this.ldz_1.qbh();
|
|
30275
30291
|
// Inline function 'kotlinx.coroutines.flow.internal.unsafeFlow' call
|
|
30276
|
-
var tmp = new EarnPointsSceneContractImpl$observeControlsModeEarnPoints$$inlined$filter$1(this_0);
|
|
30292
|
+
var tmp$ret$2 = new EarnPointsSceneContractImpl$observeControlsModeEarnPoints$$inlined$filter$1(this_0);
|
|
30293
|
+
var tmp = skipWhenTransitions(tmp$ret$2);
|
|
30277
30294
|
// Inline function 'kotlinx.coroutines.flow.map' call
|
|
30278
30295
|
// Inline function 'kotlinx.coroutines.flow.unsafeTransform' call
|
|
30279
30296
|
var this_1 = distinctUntilChanged_0(tmp, EarnPointsSceneContractImpl$observeControlsModeEarnPoints$lambda);
|
|
@@ -34758,6 +34775,13 @@
|
|
|
34758
34775
|
getPropertyCallableRef('transitionsReducer', 1, tmp, ClientOnlineGameStoreContract$_get_transitionsReducer_$ref_8gyifh_0(), null);
|
|
34759
34776
|
return tmp0.o1();
|
|
34760
34777
|
}
|
|
34778
|
+
function _get_gameLogger__rqs193($this) {
|
|
34779
|
+
var tmp0 = $this.xew_1;
|
|
34780
|
+
var tmp = KProperty1;
|
|
34781
|
+
// Inline function 'kotlin.getValue' call
|
|
34782
|
+
getPropertyCallableRef('gameLogger', 1, tmp, ClientOnlineGameStoreContract$_get_gameLogger_$ref_blu27b_0(), null);
|
|
34783
|
+
return tmp0.o1();
|
|
34784
|
+
}
|
|
34761
34785
|
function ClientOnlineGameStoreContract$_init_$lambda_hia2g8($currentPlayerId) {
|
|
34762
34786
|
return function (it) {
|
|
34763
34787
|
return new ClientLoggerKey(it, $currentPlayerId);
|
|
@@ -34913,6 +34937,16 @@
|
|
|
34913
34937
|
return _get_transitionsReducer__bsis4j(p0);
|
|
34914
34938
|
};
|
|
34915
34939
|
}
|
|
34940
|
+
function ClientOnlineGameStoreContract$_get_gameLogger_$ref_blu27b() {
|
|
34941
|
+
return function (p0) {
|
|
34942
|
+
return _get_gameLogger__rqs193(p0);
|
|
34943
|
+
};
|
|
34944
|
+
}
|
|
34945
|
+
function ClientOnlineGameStoreContract$_get_gameLogger_$ref_blu27b_0() {
|
|
34946
|
+
return function (p0) {
|
|
34947
|
+
return _get_gameLogger__rqs193(p0);
|
|
34948
|
+
};
|
|
34949
|
+
}
|
|
34916
34950
|
function ClientOnlineGameStoreContract$_get_middlewares_$lambda_pju6n0(this$0) {
|
|
34917
34951
|
return function (it) {
|
|
34918
34952
|
return it === this$0.cew_1;
|
|
@@ -35061,9 +35095,17 @@
|
|
|
35061
35095
|
var tmp_58 = Instance(di, tmp$ret$28, null);
|
|
35062
35096
|
var tmp_59 = KProperty1;
|
|
35063
35097
|
tmp_56.wew_1 = tmp_58.c1j(this, getPropertyCallableRef('transitionsReducer', 1, tmp_59, ClientOnlineGameStoreContract$_get_transitionsReducer_$ref_8gyifh(), null));
|
|
35098
|
+
var tmp_60 = this;
|
|
35099
|
+
// Inline function 'org.kodein.di.instance' call
|
|
35100
|
+
// Inline function 'org.kodein.type.generic' call
|
|
35101
|
+
var tmp_61 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
35102
|
+
var tmp$ret$30 = isInterface(tmp_61, TypeToken) ? tmp_61 : THROW_CCE();
|
|
35103
|
+
var tmp_62 = Instance(di, tmp$ret$30, null);
|
|
35104
|
+
var tmp_63 = KProperty1;
|
|
35105
|
+
tmp_60.xew_1 = tmp_62.c1j(this, getPropertyCallableRef('gameLogger', 1, tmp_63, ClientOnlineGameStoreContract$_get_gameLogger_$ref_blu27b(), null));
|
|
35064
35106
|
}
|
|
35065
35107
|
protoOf(ClientOnlineGameStoreContract).qan = function () {
|
|
35066
|
-
var tmp = plus(plus(plus(plus(this.dew_1.qan(), _get_transitionsReducer__bsis4j(this).
|
|
35108
|
+
var tmp = plus(plus(plus(plus(this.dew_1.qan(), _get_transitionsReducer__bsis4j(this).yew(this.cew_1, !_get_gameClientConfig__xfscic_1(this).validateExpectantActions)), listOf([_get_mechanicReducers__ipi0tc(this).yao(), clientErrorStateWhenTerminationActionReducer(_get_clientLifecycleReducer__6ihp6m_0(this))])), this.gew_1.qan()), this.eew_1.qan());
|
|
35067
35109
|
var tmp_0;
|
|
35068
35110
|
if (_get_gameClientConfig__xfscic_1(this).isAutoStepCurrentPlayer) {
|
|
35069
35111
|
tmp_0 = this.few_1.qan();
|
|
@@ -35074,7 +35116,7 @@
|
|
|
35074
35116
|
};
|
|
35075
35117
|
protoOf(ClientOnlineGameStoreContract).ran = function () {
|
|
35076
35118
|
var messagesMiddleware = new MessagesMiddleware(_get_messageFactory__6vg0vc_0(this), _get_pointsInteractor__5t71wv(this), _get_teamsLogicProvider__u10pm6(this));
|
|
35077
|
-
var tmp = plus(plus(plus(_get_transitionsReducer__bsis4j(this).
|
|
35119
|
+
var tmp = plus(plus(plus(_get_transitionsReducer__bsis4j(this).zew(_get_gameLogger__rqs193(this), !_get_gameClientConfig__xfscic_1(this).validateExpectantActions), this.dew_1.ran()), this.gew_1.ran()), this.eew_1.ran());
|
|
35078
35120
|
var tmp_0;
|
|
35079
35121
|
if (_get_gameClientConfig__xfscic_1(this).isAutoStepCurrentPlayer) {
|
|
35080
35122
|
var tmp_1 = this.few_1.ran();
|
|
@@ -35093,7 +35135,7 @@
|
|
|
35093
35135
|
} else {
|
|
35094
35136
|
tmp_7 = null;
|
|
35095
35137
|
}
|
|
35096
|
-
var tmp_8 = plus(tmp_3, listOfNotNull([tmp_4, tmp_5, tmp_6, tmp_7, messagesMiddleware.
|
|
35138
|
+
var tmp_8 = plus(tmp_3, listOfNotNull([tmp_4, tmp_5, tmp_6, tmp_7, messagesMiddleware.dex(this.cew_1)]));
|
|
35097
35139
|
var tmp_9;
|
|
35098
35140
|
if (_get_botConfig__cpaxzc(this).autoStepLastCard) {
|
|
35099
35141
|
var tmp_10;
|
|
@@ -35117,82 +35159,89 @@
|
|
|
35117
35159
|
return plus(tmp_8, tmp_9);
|
|
35118
35160
|
};
|
|
35119
35161
|
function _get_messageFactory__6vg0vc_1($this) {
|
|
35120
|
-
var tmp0 = $this.
|
|
35162
|
+
var tmp0 = $this.kex_1;
|
|
35121
35163
|
var tmp = KProperty1;
|
|
35122
35164
|
// Inline function 'kotlin.getValue' call
|
|
35123
35165
|
getPropertyCallableRef('messageFactory', 1, tmp, ClientSingleGameStoreContract$_get_messageFactory_$ref_i9nyur_0(), null);
|
|
35124
35166
|
return tmp0.o1();
|
|
35125
35167
|
}
|
|
35126
35168
|
function _get_pointsInteractor__5t71wv_0($this) {
|
|
35127
|
-
var tmp0 = $this.
|
|
35169
|
+
var tmp0 = $this.lex_1;
|
|
35128
35170
|
var tmp = KProperty1;
|
|
35129
35171
|
// Inline function 'kotlin.getValue' call
|
|
35130
35172
|
getPropertyCallableRef('pointsInteractor', 1, tmp, ClientSingleGameStoreContract$_get_pointsInteractor_$ref_oclal0_0(), null);
|
|
35131
35173
|
return tmp0.o1();
|
|
35132
35174
|
}
|
|
35133
35175
|
function _get_teamsLogicProvider__u10pm6_0($this) {
|
|
35134
|
-
var tmp0 = $this.
|
|
35176
|
+
var tmp0 = $this.mex_1;
|
|
35135
35177
|
var tmp = KProperty1;
|
|
35136
35178
|
// Inline function 'kotlin.getValue' call
|
|
35137
35179
|
getPropertyCallableRef('teamsLogicProvider', 1, tmp, ClientSingleGameStoreContract$_get_teamsLogicProvider_$ref_s2du15_0(), null);
|
|
35138
35180
|
return tmp0.o1();
|
|
35139
35181
|
}
|
|
35140
35182
|
function _get_clientStatisticsInteractor__s4ngf8($this) {
|
|
35141
|
-
var tmp0 = $this.
|
|
35183
|
+
var tmp0 = $this.nex_1;
|
|
35142
35184
|
var tmp = KProperty1;
|
|
35143
35185
|
// Inline function 'kotlin.getValue' call
|
|
35144
35186
|
getPropertyCallableRef('clientStatisticsInteractor', 1, tmp, ClientSingleGameStoreContract$_get_clientStatisticsInteractor_$ref_qrdtbr_0(), null);
|
|
35145
35187
|
return tmp0.o1();
|
|
35146
35188
|
}
|
|
35147
35189
|
function _get_asyncProvider__jbpyhw_1($this) {
|
|
35148
|
-
var tmp0 = $this.
|
|
35190
|
+
var tmp0 = $this.oex_1;
|
|
35149
35191
|
var tmp = KProperty1;
|
|
35150
35192
|
// Inline function 'kotlin.getValue' call
|
|
35151
35193
|
getPropertyCallableRef('asyncProvider', 1, tmp, ClientSingleGameStoreContract$_get_asyncProvider_$ref_j189zx_0(), null);
|
|
35152
35194
|
return tmp0.o1();
|
|
35153
35195
|
}
|
|
35154
35196
|
function _get_persistentAppStateInteractor__5jt7l7($this) {
|
|
35155
|
-
var tmp0 = $this.
|
|
35197
|
+
var tmp0 = $this.pex_1;
|
|
35156
35198
|
var tmp = KProperty1;
|
|
35157
35199
|
// Inline function 'kotlin.getValue' call
|
|
35158
35200
|
getPropertyCallableRef('persistentAppStateInteractor', 1, tmp, ClientSingleGameStoreContract$_get_persistentAppStateInteractor_$ref_iz0w6o_0(), null);
|
|
35159
35201
|
return tmp0.o1();
|
|
35160
35202
|
}
|
|
35161
35203
|
function _get_gameClientConfig__xfscic_2($this) {
|
|
35162
|
-
var tmp0 = $this.
|
|
35204
|
+
var tmp0 = $this.qex_1;
|
|
35163
35205
|
var tmp = KProperty1;
|
|
35164
35206
|
// Inline function 'kotlin.getValue' call
|
|
35165
35207
|
getPropertyCallableRef('gameClientConfig', 1, tmp, ClientSingleGameStoreContract$_get_gameClientConfig_$ref_y4sbrl_0(), null);
|
|
35166
35208
|
return tmp0.o1();
|
|
35167
35209
|
}
|
|
35168
35210
|
function _get_botConfig__cpaxzc_0($this) {
|
|
35169
|
-
var tmp0 = $this.
|
|
35211
|
+
var tmp0 = $this.rex_1;
|
|
35170
35212
|
var tmp = KProperty1;
|
|
35171
35213
|
// Inline function 'kotlin.getValue' call
|
|
35172
35214
|
getPropertyCallableRef('botConfig', 1, tmp, ClientSingleGameStoreContract$_get_botConfig_$ref_5o9w01_0(), null);
|
|
35173
35215
|
return tmp0.o1();
|
|
35174
35216
|
}
|
|
35175
35217
|
function _get_lastCardInteractor__h6lq3w_0($this) {
|
|
35176
|
-
var tmp0 = $this.
|
|
35218
|
+
var tmp0 = $this.sex_1;
|
|
35177
35219
|
var tmp = KProperty1;
|
|
35178
35220
|
// Inline function 'kotlin.getValue' call
|
|
35179
35221
|
getPropertyCallableRef('lastCardInteractor', 1, tmp, ClientSingleGameStoreContract$_get_lastCardInteractor_$ref_mnx63z_0(), null);
|
|
35180
35222
|
return tmp0.o1();
|
|
35181
35223
|
}
|
|
35182
35224
|
function _get_playerTurnTagProvider__7cizx8_1($this) {
|
|
35183
|
-
var tmp0 = $this.
|
|
35225
|
+
var tmp0 = $this.tex_1;
|
|
35184
35226
|
var tmp = KProperty1;
|
|
35185
35227
|
// Inline function 'kotlin.getValue' call
|
|
35186
35228
|
getPropertyCallableRef('playerTurnTagProvider', 1, tmp, ClientSingleGameStoreContract$_get_playerTurnTagProvider_$ref_b5o02l_0(), null);
|
|
35187
35229
|
return tmp0.o1();
|
|
35188
35230
|
}
|
|
35189
35231
|
function _get_transitionsReducer__bsis4j_0($this) {
|
|
35190
|
-
var tmp0 = $this.
|
|
35232
|
+
var tmp0 = $this.uex_1;
|
|
35191
35233
|
var tmp = KProperty1;
|
|
35192
35234
|
// Inline function 'kotlin.getValue' call
|
|
35193
35235
|
getPropertyCallableRef('transitionsReducer', 1, tmp, ClientSingleGameStoreContract$_get_transitionsReducer_$ref_3383y6_0(), null);
|
|
35194
35236
|
return tmp0.o1();
|
|
35195
35237
|
}
|
|
35238
|
+
function _get_gameLogger__rqs193_0($this) {
|
|
35239
|
+
var tmp0 = $this.vex_1;
|
|
35240
|
+
var tmp = KProperty1;
|
|
35241
|
+
// Inline function 'kotlin.getValue' call
|
|
35242
|
+
getPropertyCallableRef('gameLogger', 1, tmp, ClientSingleGameStoreContract$_get_gameLogger_$ref_mi6elu_0(), null);
|
|
35243
|
+
return tmp0.o1();
|
|
35244
|
+
}
|
|
35196
35245
|
function ClientSingleGameStoreContract$_init_$lambda_9g3i4j($currentPlayerId) {
|
|
35197
35246
|
return function (it) {
|
|
35198
35247
|
return new ClientLoggerKey(it, $currentPlayerId);
|
|
@@ -35308,14 +35357,24 @@
|
|
|
35308
35357
|
return _get_transitionsReducer__bsis4j_0(p0);
|
|
35309
35358
|
};
|
|
35310
35359
|
}
|
|
35360
|
+
function ClientSingleGameStoreContract$_get_gameLogger_$ref_mi6elu() {
|
|
35361
|
+
return function (p0) {
|
|
35362
|
+
return _get_gameLogger__rqs193_0(p0);
|
|
35363
|
+
};
|
|
35364
|
+
}
|
|
35365
|
+
function ClientSingleGameStoreContract$_get_gameLogger_$ref_mi6elu_0() {
|
|
35366
|
+
return function (p0) {
|
|
35367
|
+
return _get_gameLogger__rqs193_0(p0);
|
|
35368
|
+
};
|
|
35369
|
+
}
|
|
35311
35370
|
function ClientSingleGameStoreContract$_get_middlewares_$lambda_ma3odr(this$0) {
|
|
35312
35371
|
return function (it) {
|
|
35313
|
-
return !(it === this$0.
|
|
35372
|
+
return !(it === this$0.eex_1) || _get_gameClientConfig__xfscic_2(this$0).isAutoStepCurrentPlayer;
|
|
35314
35373
|
};
|
|
35315
35374
|
}
|
|
35316
35375
|
function ClientSingleGameStoreContract$_get_middlewares_$lambda_ma3odr_0(this$0) {
|
|
35317
35376
|
return function (player) {
|
|
35318
|
-
var isCurrentPlayer = player.playerId === this$0.
|
|
35377
|
+
var isCurrentPlayer = player.playerId === this$0.eex_1;
|
|
35319
35378
|
return !isCurrentPlayer || _get_gameClientConfig__xfscic_2(this$0).isAutoStepCurrentPlayer;
|
|
35320
35379
|
};
|
|
35321
35380
|
}
|
|
@@ -35348,12 +35407,12 @@
|
|
|
35348
35407
|
tmp_3 = fileLoggerStoreContract;
|
|
35349
35408
|
}
|
|
35350
35409
|
fileLoggerStoreContract = tmp_3;
|
|
35351
|
-
this.
|
|
35352
|
-
this.
|
|
35353
|
-
this.
|
|
35354
|
-
this.
|
|
35355
|
-
this.
|
|
35356
|
-
this.
|
|
35410
|
+
this.eex_1 = currentPlayerId;
|
|
35411
|
+
this.fex_1 = validationStoreContract;
|
|
35412
|
+
this.gex_1 = clientCommonStoreContract;
|
|
35413
|
+
this.hex_1 = gameMechanicStoreContract;
|
|
35414
|
+
this.iex_1 = botGameStoreContract;
|
|
35415
|
+
this.jex_1 = fileLoggerStoreContract;
|
|
35357
35416
|
var tmp_4 = this;
|
|
35358
35417
|
// Inline function 'org.kodein.di.instance' call
|
|
35359
35418
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -35361,7 +35420,7 @@
|
|
|
35361
35420
|
var tmp$ret$2 = isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE();
|
|
35362
35421
|
var tmp_6 = Instance(di, tmp$ret$2, null);
|
|
35363
35422
|
var tmp_7 = KProperty1;
|
|
35364
|
-
tmp_4.
|
|
35423
|
+
tmp_4.kex_1 = tmp_6.c1j(this, getPropertyCallableRef('messageFactory', 1, tmp_7, ClientSingleGameStoreContract$_get_messageFactory_$ref_i9nyur(), null));
|
|
35365
35424
|
var tmp_8 = this;
|
|
35366
35425
|
// Inline function 'org.kodein.di.instance' call
|
|
35367
35426
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -35369,7 +35428,7 @@
|
|
|
35369
35428
|
var tmp$ret$4 = isInterface(tmp_9, TypeToken) ? tmp_9 : THROW_CCE();
|
|
35370
35429
|
var tmp_10 = Instance(di, tmp$ret$4, null);
|
|
35371
35430
|
var tmp_11 = KProperty1;
|
|
35372
|
-
tmp_8.
|
|
35431
|
+
tmp_8.lex_1 = tmp_10.c1j(this, getPropertyCallableRef('pointsInteractor', 1, tmp_11, ClientSingleGameStoreContract$_get_pointsInteractor_$ref_oclal0(), null));
|
|
35373
35432
|
var tmp_12 = this;
|
|
35374
35433
|
// Inline function 'org.kodein.di.instance' call
|
|
35375
35434
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -35377,7 +35436,7 @@
|
|
|
35377
35436
|
var tmp$ret$6 = isInterface(tmp_13, TypeToken) ? tmp_13 : THROW_CCE();
|
|
35378
35437
|
var tmp_14 = Instance(di, tmp$ret$6, null);
|
|
35379
35438
|
var tmp_15 = KProperty1;
|
|
35380
|
-
tmp_12.
|
|
35439
|
+
tmp_12.mex_1 = tmp_14.c1j(this, getPropertyCallableRef('teamsLogicProvider', 1, tmp_15, ClientSingleGameStoreContract$_get_teamsLogicProvider_$ref_s2du15(), null));
|
|
35381
35440
|
var tmp_16 = this;
|
|
35382
35441
|
// Inline function 'org.kodein.di.instance' call
|
|
35383
35442
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -35385,7 +35444,7 @@
|
|
|
35385
35444
|
var tmp$ret$8 = isInterface(tmp_17, TypeToken) ? tmp_17 : THROW_CCE();
|
|
35386
35445
|
var tmp_18 = Instance(di, tmp$ret$8, null);
|
|
35387
35446
|
var tmp_19 = KProperty1;
|
|
35388
|
-
tmp_16.
|
|
35447
|
+
tmp_16.nex_1 = tmp_18.c1j(this, getPropertyCallableRef('clientStatisticsInteractor', 1, tmp_19, ClientSingleGameStoreContract$_get_clientStatisticsInteractor_$ref_qrdtbr(), null));
|
|
35389
35448
|
var tmp_20 = this;
|
|
35390
35449
|
// Inline function 'org.kodein.di.instance' call
|
|
35391
35450
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -35393,7 +35452,7 @@
|
|
|
35393
35452
|
var tmp$ret$10 = isInterface(tmp_21, TypeToken) ? tmp_21 : THROW_CCE();
|
|
35394
35453
|
var tmp_22 = Instance(di, tmp$ret$10, null);
|
|
35395
35454
|
var tmp_23 = KProperty1;
|
|
35396
|
-
tmp_20.
|
|
35455
|
+
tmp_20.oex_1 = tmp_22.c1j(this, getPropertyCallableRef('asyncProvider', 1, tmp_23, ClientSingleGameStoreContract$_get_asyncProvider_$ref_j189zx(), null));
|
|
35397
35456
|
var tmp_24 = this;
|
|
35398
35457
|
// Inline function 'org.kodein.di.instance' call
|
|
35399
35458
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -35401,7 +35460,7 @@
|
|
|
35401
35460
|
var tmp$ret$12 = isInterface(tmp_25, TypeToken) ? tmp_25 : THROW_CCE();
|
|
35402
35461
|
var tmp_26 = Instance(di, tmp$ret$12, null);
|
|
35403
35462
|
var tmp_27 = KProperty1;
|
|
35404
|
-
tmp_24.
|
|
35463
|
+
tmp_24.pex_1 = tmp_26.c1j(this, getPropertyCallableRef('persistentAppStateInteractor', 1, tmp_27, ClientSingleGameStoreContract$_get_persistentAppStateInteractor_$ref_iz0w6o(), null));
|
|
35405
35464
|
var tmp_28 = this;
|
|
35406
35465
|
// Inline function 'org.kodein.di.instance' call
|
|
35407
35466
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -35409,7 +35468,7 @@
|
|
|
35409
35468
|
var tmp$ret$14 = isInterface(tmp_29, TypeToken) ? tmp_29 : THROW_CCE();
|
|
35410
35469
|
var tmp_30 = Instance(di, tmp$ret$14, null);
|
|
35411
35470
|
var tmp_31 = KProperty1;
|
|
35412
|
-
tmp_28.
|
|
35471
|
+
tmp_28.qex_1 = tmp_30.c1j(this, getPropertyCallableRef('gameClientConfig', 1, tmp_31, ClientSingleGameStoreContract$_get_gameClientConfig_$ref_y4sbrl(), null));
|
|
35413
35472
|
var tmp_32 = this;
|
|
35414
35473
|
// Inline function 'org.kodein.di.instance' call
|
|
35415
35474
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -35417,7 +35476,7 @@
|
|
|
35417
35476
|
var tmp$ret$16 = isInterface(tmp_33, TypeToken) ? tmp_33 : THROW_CCE();
|
|
35418
35477
|
var tmp_34 = Instance(di, tmp$ret$16, null);
|
|
35419
35478
|
var tmp_35 = KProperty1;
|
|
35420
|
-
tmp_32.
|
|
35479
|
+
tmp_32.rex_1 = tmp_34.c1j(this, getPropertyCallableRef('botConfig', 1, tmp_35, ClientSingleGameStoreContract$_get_botConfig_$ref_5o9w01(), null));
|
|
35421
35480
|
var tmp_36 = this;
|
|
35422
35481
|
// Inline function 'org.kodein.di.instance' call
|
|
35423
35482
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -35425,7 +35484,7 @@
|
|
|
35425
35484
|
var tmp$ret$18 = isInterface(tmp_37, TypeToken) ? tmp_37 : THROW_CCE();
|
|
35426
35485
|
var tmp_38 = Instance(di, tmp$ret$18, null);
|
|
35427
35486
|
var tmp_39 = KProperty1;
|
|
35428
|
-
tmp_36.
|
|
35487
|
+
tmp_36.sex_1 = tmp_38.c1j(this, getPropertyCallableRef('lastCardInteractor', 1, tmp_39, ClientSingleGameStoreContract$_get_lastCardInteractor_$ref_mnx63z(), null));
|
|
35429
35488
|
var tmp_40 = this;
|
|
35430
35489
|
// Inline function 'org.kodein.di.instance' call
|
|
35431
35490
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -35433,7 +35492,7 @@
|
|
|
35433
35492
|
var tmp$ret$20 = isInterface(tmp_41, TypeToken) ? tmp_41 : THROW_CCE();
|
|
35434
35493
|
var tmp_42 = Instance(di, tmp$ret$20, null);
|
|
35435
35494
|
var tmp_43 = KProperty1;
|
|
35436
|
-
tmp_40.
|
|
35495
|
+
tmp_40.tex_1 = tmp_42.c1j(this, getPropertyCallableRef('playerTurnTagProvider', 1, tmp_43, ClientSingleGameStoreContract$_get_playerTurnTagProvider_$ref_b5o02l(), null));
|
|
35437
35496
|
var tmp_44 = this;
|
|
35438
35497
|
// Inline function 'org.kodein.di.instance' call
|
|
35439
35498
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -35441,27 +35500,35 @@
|
|
|
35441
35500
|
var tmp$ret$22 = isInterface(tmp_45, TypeToken) ? tmp_45 : THROW_CCE();
|
|
35442
35501
|
var tmp_46 = Instance(di, tmp$ret$22, null);
|
|
35443
35502
|
var tmp_47 = KProperty1;
|
|
35444
|
-
tmp_44.
|
|
35503
|
+
tmp_44.uex_1 = tmp_46.c1j(this, getPropertyCallableRef('transitionsReducer', 1, tmp_47, ClientSingleGameStoreContract$_get_transitionsReducer_$ref_3383y6(), null));
|
|
35504
|
+
var tmp_48 = this;
|
|
35505
|
+
// Inline function 'org.kodein.di.instance' call
|
|
35506
|
+
// Inline function 'org.kodein.type.generic' call
|
|
35507
|
+
var tmp_49 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
35508
|
+
var tmp$ret$24 = isInterface(tmp_49, TypeToken) ? tmp_49 : THROW_CCE();
|
|
35509
|
+
var tmp_50 = Instance(di, tmp$ret$24, null);
|
|
35510
|
+
var tmp_51 = KProperty1;
|
|
35511
|
+
tmp_48.vex_1 = tmp_50.c1j(this, getPropertyCallableRef('gameLogger', 1, tmp_51, ClientSingleGameStoreContract$_get_gameLogger_$ref_mi6elu(), null));
|
|
35445
35512
|
}
|
|
35446
35513
|
protoOf(ClientSingleGameStoreContract).qan = function () {
|
|
35447
|
-
return plus(plus(plus(plus(plus(this.
|
|
35514
|
+
return plus(plus(plus(plus(plus(this.fex_1.qan(), _get_transitionsReducer__bsis4j_0(this).yew(this.eex_1, !_get_gameClientConfig__xfscic_2(this).validateExpectantActions)), this.hex_1.qan()), this.gex_1.qan()), this.iex_1.qan()), this.jex_1.qan());
|
|
35448
35515
|
};
|
|
35449
35516
|
protoOf(ClientSingleGameStoreContract).ran = function () {
|
|
35450
35517
|
var messagesMiddleware = new MessagesMiddleware(_get_messageFactory__6vg0vc_1(this), _get_pointsInteractor__5t71wv_0(this), _get_teamsLogicProvider__u10pm6_0(this));
|
|
35451
|
-
var tmp = plus(plus(plus(plus(plus(_get_transitionsReducer__bsis4j_0(this).
|
|
35452
|
-
var tmp_0 = messagesMiddleware.
|
|
35518
|
+
var tmp = plus(plus(plus(plus(plus(_get_transitionsReducer__bsis4j_0(this).zew(_get_gameLogger__rqs193_0(this), !_get_gameClientConfig__xfscic_2(this).validateExpectantActions), this.fex_1.ran()), this.hex_1.ran()), this.gex_1.ran()), this.iex_1.ran()), this.jex_1.ran());
|
|
35519
|
+
var tmp_0 = messagesMiddleware.wex();
|
|
35453
35520
|
var tmp_1 = announceCombinationMiddleware(_get_playerTurnTagProvider__7cizx8_1(this));
|
|
35454
35521
|
var tmp_2 = playerTurnTimeoutMiddleware(_get_asyncProvider__jbpyhw_1(this));
|
|
35455
35522
|
var tmp_3 = _get_botConfig__cpaxzc_0(this).isDelayForBot;
|
|
35456
35523
|
var tmp_4 = _get_botConfig__cpaxzc_0(this).simulateBotThinkingDelay ? Default_getInstance() : null;
|
|
35457
|
-
var tmp_5 = plus(tmp, listOfNotNull([tmp_0, tmp_1, tmp_2, playerTurnTimerStartWhenContinueGameMiddleware(tmp_3, tmp_4, ClientSingleGameStoreContract$_get_middlewares_$lambda_ma3odr(this)), statisticsMiddleware(_get_asyncProvider__jbpyhw_1(this), this.
|
|
35524
|
+
var tmp_5 = plus(tmp, listOfNotNull([tmp_0, tmp_1, tmp_2, playerTurnTimerStartWhenContinueGameMiddleware(tmp_3, tmp_4, ClientSingleGameStoreContract$_get_middlewares_$lambda_ma3odr(this)), statisticsMiddleware(_get_asyncProvider__jbpyhw_1(this), this.eex_1, _get_clientStatisticsInteractor__s4ngf8(this)), exitAndSaveGameMiddleware(this.eex_1, _get_asyncProvider__jbpyhw_1(this), _get_persistentAppStateInteractor__5jt7l7(this)), saveGameWhenAppOnBackgroundMiddleware(_get_asyncProvider__jbpyhw_1(this), _get_persistentAppStateInteractor__5jt7l7(this)), removeSavedGameMiddleware(_get_asyncProvider__jbpyhw_1(this), _get_persistentAppStateInteractor__5jt7l7(this)), removeSavedGameWhenErrorMiddleware(_get_asyncProvider__jbpyhw_1(this), _get_persistentAppStateInteractor__5jt7l7(this))]));
|
|
35458
35525
|
var tmp_6;
|
|
35459
35526
|
if (_get_botConfig__cpaxzc_0(this).autoStepLastCard) {
|
|
35460
35527
|
var tmp_7 = _get_lastCardInteractor__h6lq3w_0(this);
|
|
35461
35528
|
var tmp_8 = putPlayerLastCardMiddleware(tmp_7, ClientSingleGameStoreContract$_get_middlewares_$lambda_ma3odr_0(this));
|
|
35462
35529
|
var tmp_9;
|
|
35463
35530
|
if (!_get_gameClientConfig__xfscic_2(this).isAutoStepCurrentPlayer) {
|
|
35464
|
-
tmp_9 = clientPutCurrentPlayerLastCardMiddleware(this.
|
|
35531
|
+
tmp_9 = clientPutCurrentPlayerLastCardMiddleware(this.eex_1, _get_lastCardInteractor__h6lq3w_0(this));
|
|
35465
35532
|
} else {
|
|
35466
35533
|
tmp_9 = null;
|
|
35467
35534
|
}
|
|
@@ -35564,7 +35631,7 @@
|
|
|
35564
35631
|
return new clientCheckCombinationsMiddleware$$inlined$middlewareForActionType$1(combinationProvider, playerTurnTagProvider);
|
|
35565
35632
|
}
|
|
35566
35633
|
function announceCombinationMiddleware$$inlined$middlewareForActionType$1($playerTurnTagProvider) {
|
|
35567
|
-
this.
|
|
35634
|
+
this.xex_1 = $playerTurnTagProvider;
|
|
35568
35635
|
}
|
|
35569
35636
|
protoOf(announceCombinationMiddleware$$inlined$middlewareForActionType$1).t7i = function (action) {
|
|
35570
35637
|
return action instanceof AnnouncedCombinationAction;
|
|
@@ -35607,7 +35674,7 @@
|
|
|
35607
35674
|
var tmp = store.dispatch;
|
|
35608
35675
|
var tmp0_playerId = get_currentPlayer(table).playerId;
|
|
35609
35676
|
var tmp1_isAccepted = action_0.teu_1;
|
|
35610
|
-
var tmp2_tag = this.
|
|
35677
|
+
var tmp2_tag = this.xex_1.lab(table.sceneInfo, table.gameInfo.round);
|
|
35611
35678
|
tmp(new CombinationChoiceFromClientAction(tmp0_playerId, false, tmp2_tag, tmp1_isAccepted));
|
|
35612
35679
|
}
|
|
35613
35680
|
};
|
|
@@ -35615,8 +35682,8 @@
|
|
|
35615
35682
|
return this.i7k(store, next, action);
|
|
35616
35683
|
};
|
|
35617
35684
|
function clientCheckCombinationsMiddleware$$inlined$middlewareForActionType$1($combinationProvider, $playerTurnTagProvider) {
|
|
35618
|
-
this.
|
|
35619
|
-
this.
|
|
35685
|
+
this.yex_1 = $combinationProvider;
|
|
35686
|
+
this.zex_1 = $playerTurnTagProvider;
|
|
35620
35687
|
}
|
|
35621
35688
|
protoOf(clientCheckCombinationsMiddleware$$inlined$middlewareForActionType$1).t7i = function (action) {
|
|
35622
35689
|
return action instanceof PutCardAndCheckCombinationsAction;
|
|
@@ -35628,7 +35695,7 @@
|
|
|
35628
35695
|
var player = get_currentPlayer(table);
|
|
35629
35696
|
var playerCombinations = player.n7z_1.f86_1;
|
|
35630
35697
|
// Inline function 'kotlin.collections.map' call
|
|
35631
|
-
var this_0 = this.
|
|
35698
|
+
var this_0 = this.yex_1.eab(playerCombinations);
|
|
35632
35699
|
// Inline function 'kotlin.collections.mapTo' call
|
|
35633
35700
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
35634
35701
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -35644,7 +35711,7 @@
|
|
|
35644
35711
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
35645
35712
|
var tmp0_elvis_lhs_0 = action_0.seu_1;
|
|
35646
35713
|
var declinedCombinations = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
35647
|
-
var tmp0_safe_receiver = this.
|
|
35714
|
+
var tmp0_safe_receiver = this.yex_1.fab(action_0.qeu_1.o7b_1, playerCombinations, table.config.rules.oneTryToProtectBella);
|
|
35648
35715
|
var findBellaCombination = tmp0_safe_receiver == null ? null : mapFromDetailed(tmp0_safe_receiver);
|
|
35649
35716
|
var tmp;
|
|
35650
35717
|
var tmp_0;
|
|
@@ -35812,7 +35879,7 @@
|
|
|
35812
35879
|
var tmp5_card = action_0.qeu_1.o7b_1;
|
|
35813
35880
|
var tmp1_cardNumber = table.cardsOnTable.g1();
|
|
35814
35881
|
var tmp2_round = table.gameInfo.round;
|
|
35815
|
-
var tmp6_tag = this.
|
|
35882
|
+
var tmp6_tag = this.zex_1.nab(tmp2_round, VOID, tmp1_cardNumber);
|
|
35816
35883
|
tmp = new CardFromClientAction(tmp3_playerId, false, tmp6_tag, tmp5_card, tmp4_combinations);
|
|
35817
35884
|
}
|
|
35818
35885
|
}
|
|
@@ -35827,7 +35894,7 @@
|
|
|
35827
35894
|
return new finishingGameWhenPlayerExitsMiddleware$$inlined$middlewareForActionType$1(gameClientConfig);
|
|
35828
35895
|
}
|
|
35829
35896
|
function finishingGameWhenPlayerExitsMiddleware$$inlined$middlewareForActionType$1($gameClientConfig) {
|
|
35830
|
-
this.
|
|
35897
|
+
this.aey_1 = $gameClientConfig;
|
|
35831
35898
|
}
|
|
35832
35899
|
protoOf(finishingGameWhenPlayerExitsMiddleware$$inlined$middlewareForActionType$1).t7i = function (action) {
|
|
35833
35900
|
return action instanceof ExitFromClientAction;
|
|
@@ -35837,7 +35904,7 @@
|
|
|
35837
35904
|
var table = store.state.tableOrNull;
|
|
35838
35905
|
var tmp = store.dispatch;
|
|
35839
35906
|
var tmp_0;
|
|
35840
|
-
if (this.
|
|
35907
|
+
if (this.aey_1.sessionAnalytics) {
|
|
35841
35908
|
var tmp_1 = Companion_instance_0;
|
|
35842
35909
|
var tmp_2 = ProcessingReason_getInstance();
|
|
35843
35910
|
var tmp1_elvis_lhs = table == null ? null : table.isGameFinished;
|
|
@@ -35859,7 +35926,7 @@
|
|
|
35859
35926
|
return new releaseBufferTriggerMiddleware$$inlined$middlewareForActionType$1(bufferInteractor);
|
|
35860
35927
|
}
|
|
35861
35928
|
function releaseBufferTriggerMiddleware$$inlined$middlewareForActionType$1($bufferInteractor) {
|
|
35862
|
-
this.
|
|
35929
|
+
this.bey_1 = $bufferInteractor;
|
|
35863
35930
|
}
|
|
35864
35931
|
protoOf(releaseBufferTriggerMiddleware$$inlined$middlewareForActionType$1).t7i = function (action) {
|
|
35865
35932
|
return isInterface(action, ReleaseBufferTriggerAction);
|
|
@@ -35868,14 +35935,14 @@
|
|
|
35868
35935
|
var action_0 = isInterface(action, ReleaseBufferTriggerAction) ? action : THROW_CCE();
|
|
35869
35936
|
next(action_0);
|
|
35870
35937
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
35871
|
-
this.
|
|
35938
|
+
this.bey_1.scc();
|
|
35872
35939
|
var state = store.state;
|
|
35873
35940
|
var bufferedActions = get_clientPayload(state).lbi_1;
|
|
35874
35941
|
var tmp;
|
|
35875
35942
|
var tmp_0;
|
|
35876
35943
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
35877
35944
|
if (!bufferedActions.r()) {
|
|
35878
|
-
tmp_0 = this.
|
|
35945
|
+
tmp_0 = this.bey_1.ucc(state, action_0);
|
|
35879
35946
|
} else {
|
|
35880
35947
|
tmp_0 = false;
|
|
35881
35948
|
}
|
|
@@ -35911,9 +35978,9 @@
|
|
|
35911
35978
|
return new clientHostDealerMiddleware$$inlined$middlewareForActionType$1(currentPlayerId, dealerInteractor, tagProvider);
|
|
35912
35979
|
}
|
|
35913
35980
|
function clientHostDealerMiddleware$$inlined$middlewareForActionType$1($currentPlayerId, $dealerInteractor, $tagProvider) {
|
|
35914
|
-
this.
|
|
35915
|
-
this.
|
|
35916
|
-
this.
|
|
35981
|
+
this.cey_1 = $currentPlayerId;
|
|
35982
|
+
this.dey_1 = $dealerInteractor;
|
|
35983
|
+
this.eey_1 = $tagProvider;
|
|
35917
35984
|
}
|
|
35918
35985
|
protoOf(clientHostDealerMiddleware$$inlined$middlewareForActionType$1).t7i = function (action) {
|
|
35919
35986
|
return action instanceof MechanicAction;
|
|
@@ -35937,7 +36004,7 @@
|
|
|
35937
36004
|
var requestPayload = waitingActData.b8m_1;
|
|
35938
36005
|
if (!(requestPayload == null)) {
|
|
35939
36006
|
if (requestPayload instanceof CardDeckRequest) {
|
|
35940
|
-
if (this.
|
|
36007
|
+
if (this.cey_1 === waitingActData.y8l()) {
|
|
35941
36008
|
var tmp = store.dispatch;
|
|
35942
36009
|
// Inline function 'kotlin.collections.List' call
|
|
35943
36010
|
// Inline function 'kotlin.collections.MutableList' call
|
|
@@ -35958,7 +36025,7 @@
|
|
|
35958
36025
|
var _iterator__ex2g4s = list.t();
|
|
35959
36026
|
while (_iterator__ex2g4s.u()) {
|
|
35960
36027
|
var item = _iterator__ex2g4s.v();
|
|
35961
|
-
var tmp$ret$6 = this.
|
|
36028
|
+
var tmp$ret$6 = this.dey_1.gab();
|
|
35962
36029
|
destination.e1(tmp$ret$6);
|
|
35963
36030
|
}
|
|
35964
36031
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -35970,8 +36037,8 @@
|
|
|
35970
36037
|
var tmp$ret$9 = Companion_instance_1.d97(item_0);
|
|
35971
36038
|
destination_0.e1(tmp$ret$9);
|
|
35972
36039
|
}
|
|
35973
|
-
var tmp3_tag = this.
|
|
35974
|
-
tmp(new RequestedCardDecksFromClientAction(destination_0, this.
|
|
36040
|
+
var tmp3_tag = this.eey_1.iab(action_0.h9e_1, store.state.s7v().gameInfo.round);
|
|
36041
|
+
tmp(new RequestedCardDecksFromClientAction(destination_0, this.cey_1, false, tmp3_tag));
|
|
35975
36042
|
}
|
|
35976
36043
|
} else {
|
|
35977
36044
|
noWhenBranchMatchedException();
|
|
@@ -35994,20 +36061,20 @@
|
|
|
35994
36061
|
return new expectantsTimeoutMiddleware$$inlined$middlewareForActionType$1();
|
|
35995
36062
|
}
|
|
35996
36063
|
function ExpectantTimerTag(id) {
|
|
35997
|
-
this.
|
|
36064
|
+
this.fey_1 = id;
|
|
35998
36065
|
}
|
|
35999
36066
|
protoOf(ExpectantTimerTag).toString = function () {
|
|
36000
|
-
return 'ExpectantTimerTag(id=' + this.
|
|
36067
|
+
return 'ExpectantTimerTag(id=' + this.fey_1 + ')';
|
|
36001
36068
|
};
|
|
36002
36069
|
protoOf(ExpectantTimerTag).hashCode = function () {
|
|
36003
|
-
return getStringHashCode(this.
|
|
36070
|
+
return getStringHashCode(this.fey_1);
|
|
36004
36071
|
};
|
|
36005
36072
|
protoOf(ExpectantTimerTag).equals = function (other) {
|
|
36006
36073
|
if (this === other)
|
|
36007
36074
|
return true;
|
|
36008
36075
|
if (!(other instanceof ExpectantTimerTag))
|
|
36009
36076
|
return false;
|
|
36010
|
-
if (!(this.
|
|
36077
|
+
if (!(this.fey_1 === other.fey_1))
|
|
36011
36078
|
return false;
|
|
36012
36079
|
return true;
|
|
36013
36080
|
};
|
|
@@ -36060,7 +36127,7 @@
|
|
|
36060
36127
|
var action_0 = action instanceof TimerTickAction ? action : THROW_CCE();
|
|
36061
36128
|
var timerTag = action_0.p7i_1;
|
|
36062
36129
|
if (timerTag instanceof ExpectantTimerTag) {
|
|
36063
|
-
store.dispatch(new InterceptorFinishedClientAction(timerTag.
|
|
36130
|
+
store.dispatch(new InterceptorFinishedClientAction(timerTag.fey_1));
|
|
36064
36131
|
}
|
|
36065
36132
|
next(action_0);
|
|
36066
36133
|
};
|
|
@@ -36083,8 +36150,8 @@
|
|
|
36083
36150
|
return null;
|
|
36084
36151
|
}
|
|
36085
36152
|
function clientPutCurrentPlayerLastCardMiddleware$$inlined$middlewareForActionType$1($currentPlayerId, $lastCardInteractor) {
|
|
36086
|
-
this.
|
|
36087
|
-
this.
|
|
36153
|
+
this.gey_1 = $currentPlayerId;
|
|
36154
|
+
this.hey_1 = $lastCardInteractor;
|
|
36088
36155
|
}
|
|
36089
36156
|
protoOf(clientPutCurrentPlayerLastCardMiddleware$$inlined$middlewareForActionType$1).t7i = function (action) {
|
|
36090
36157
|
return isInterface(action, CardsMechanicAction);
|
|
@@ -36093,7 +36160,7 @@
|
|
|
36093
36160
|
var action_0 = isInterface(action, CardsMechanicAction) ? action : THROW_CCE();
|
|
36094
36161
|
next(action_0);
|
|
36095
36162
|
var table = store.state.s7v();
|
|
36096
|
-
var newAction = getCardActionIfNeeded(action_0, this.
|
|
36163
|
+
var newAction = getCardActionIfNeeded(action_0, this.gey_1, table, this.hey_1);
|
|
36097
36164
|
if (newAction == null)
|
|
36098
36165
|
null;
|
|
36099
36166
|
else {
|
|
@@ -36108,7 +36175,7 @@
|
|
|
36108
36175
|
// Inline function 'kotlin.with' call
|
|
36109
36176
|
var $this$with = store.state.s7v();
|
|
36110
36177
|
var player = getPlayer($this$with.players, playerId);
|
|
36111
|
-
store.dispatch(new MessageMechanicAction($this.
|
|
36178
|
+
store.dispatch(new MessageMechanicAction($this.aex_1.xa8(player.l7z_1.n89(), selectedSuit, player.i7z_1)));
|
|
36112
36179
|
}
|
|
36113
36180
|
function onCardMessages($this, store, playerId, combinations) {
|
|
36114
36181
|
// Inline function 'kotlin.with' call
|
|
@@ -36129,7 +36196,7 @@
|
|
|
36129
36196
|
var tmp$ret$0 = item.v8l_1;
|
|
36130
36197
|
destination.e1(tmp$ret$0);
|
|
36131
36198
|
}
|
|
36132
|
-
tmp_0(new MessageMechanicAction($this.
|
|
36199
|
+
tmp_0(new MessageMechanicAction($this.aex_1.va8(destination, player.i7z_1)));
|
|
36133
36200
|
tmp = Unit_instance;
|
|
36134
36201
|
}
|
|
36135
36202
|
}
|
|
@@ -36159,13 +36226,13 @@
|
|
|
36159
36226
|
var tmp$ret$1 = item.v8l_1;
|
|
36160
36227
|
destination.e1(tmp$ret$1);
|
|
36161
36228
|
}
|
|
36162
|
-
tmp(new MessageMechanicAction($this.
|
|
36229
|
+
tmp(new MessageMechanicAction($this.aex_1.va8(destination, player.i7z_1)));
|
|
36163
36230
|
}
|
|
36164
36231
|
}
|
|
36165
36232
|
function onWinnerCombinationMessages($this, store, winnerCombinations) {
|
|
36166
36233
|
// Inline function 'kotlin.with' call
|
|
36167
36234
|
var $this$with = store.state.s7v();
|
|
36168
|
-
var message = $this.
|
|
36235
|
+
var message = $this.aex_1.wa8(winnerCombinations, $this$with.players);
|
|
36169
36236
|
store.dispatch(new MessageMechanicAction(message));
|
|
36170
36237
|
}
|
|
36171
36238
|
function onSceneMessages($this, store, action) {
|
|
@@ -36175,7 +36242,7 @@
|
|
|
36175
36242
|
if (tmp0_subject === 'TRADE') {
|
|
36176
36243
|
var tmp;
|
|
36177
36244
|
if (table.config.playersMode.isTeamGame) {
|
|
36178
|
-
var tmp0 = $this.
|
|
36245
|
+
var tmp0 = $this.cex_1.ma8(table.players);
|
|
36179
36246
|
var tmp$ret$0;
|
|
36180
36247
|
$l$block_0: {
|
|
36181
36248
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -36237,7 +36304,7 @@
|
|
|
36237
36304
|
}
|
|
36238
36305
|
var hasWinners = tmp;
|
|
36239
36306
|
if (hasWinners) {
|
|
36240
|
-
store.dispatch(new MessageMechanicAction($this.
|
|
36307
|
+
store.dispatch(new MessageMechanicAction($this.aex_1.aa9('ONE_MORE_ROUND_NEEDED_ID')));
|
|
36241
36308
|
}
|
|
36242
36309
|
var tmp0_1 = action.sceneData;
|
|
36243
36310
|
var tmp$ret$6;
|
|
@@ -36250,10 +36317,10 @@
|
|
|
36250
36317
|
throw new MechanicException('Required ' + getKClass(TradeSceneData).o() + ', current scene is ' + toString_0(tmp0_1));
|
|
36251
36318
|
}
|
|
36252
36319
|
var scene = tmp$ret$6;
|
|
36253
|
-
store.dispatch(new MessageMechanicAction($this.
|
|
36320
|
+
store.dispatch(new MessageMechanicAction($this.aex_1.ua8(getPlayer(table.players, scene.h8n_1).i7z_1, scene.f8n_1)));
|
|
36254
36321
|
var randomData = scene.e8n_1;
|
|
36255
36322
|
if (!(randomData == null)) {
|
|
36256
|
-
store.dispatch(new MessageMechanicAction($this.
|
|
36323
|
+
store.dispatch(new MessageMechanicAction($this.aex_1.ea9(randomData)));
|
|
36257
36324
|
}
|
|
36258
36325
|
} else if (tmp0_subject === 'CALC_POINTS') {
|
|
36259
36326
|
var tmp0_2 = action.sceneData;
|
|
@@ -36273,7 +36340,7 @@
|
|
|
36273
36340
|
var roundContractState = scene_0.c8n(whoChoseSuitPlayerId);
|
|
36274
36341
|
var tmp_3 = store.dispatch;
|
|
36275
36342
|
// Inline function 'kotlin.collections.map' call
|
|
36276
|
-
var this_0 = $this.
|
|
36343
|
+
var this_0 = $this.bex_1.uag(scene_0.y8m_1);
|
|
36277
36344
|
// Inline function 'kotlin.collections.mapTo' call
|
|
36278
36345
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
36279
36346
|
var _iterator__ex2g4s_2 = this_0.t();
|
|
@@ -36301,7 +36368,7 @@
|
|
|
36301
36368
|
} else {
|
|
36302
36369
|
tmp_6 = whoChoseSuitPlayer.l7z_1.y84_1;
|
|
36303
36370
|
}
|
|
36304
|
-
tmp_3(new MessageMechanicAction($this.
|
|
36371
|
+
tmp_3(new MessageMechanicAction($this.aex_1.ya8(table_0.gameInfo.round, tmp_4, roundContractState, tmp_5, scene_0.v8m_1, tmp_6)));
|
|
36305
36372
|
}
|
|
36306
36373
|
}
|
|
36307
36374
|
function onExpectantCreatedMessages($this, store, action, excludePlayersIds) {
|
|
@@ -36315,12 +36382,12 @@
|
|
|
36315
36382
|
onCombinationChoiceMessages($this, store, expectantAction.playerId, expectantAction.w9e_1);
|
|
36316
36383
|
} else {
|
|
36317
36384
|
if (expectantAction instanceof RestartGameMechanicAction) {
|
|
36318
|
-
var message = $this.
|
|
36385
|
+
var message = $this.aex_1.aa9('GAME_RESTART_EVENT_ID');
|
|
36319
36386
|
store.dispatch(new MessageMechanicAction(message));
|
|
36320
36387
|
store.dispatch(new InfoMessageAction(message));
|
|
36321
36388
|
} else {
|
|
36322
36389
|
if (expectantAction instanceof WinnerCombinationsMechanicAction) {
|
|
36323
|
-
var message_0 = $this.
|
|
36390
|
+
var message_0 = $this.aex_1.wa8(expectantAction.n9f_1, $this$with.players);
|
|
36324
36391
|
store.dispatch(new InfoMessageAction(message_0));
|
|
36325
36392
|
}
|
|
36326
36393
|
}
|
|
@@ -36432,14 +36499,14 @@
|
|
|
36432
36499
|
};
|
|
36433
36500
|
}
|
|
36434
36501
|
function MessagesMiddleware(factory, pointsInteractor, teamsLogicProvider) {
|
|
36435
|
-
this.
|
|
36436
|
-
this.
|
|
36437
|
-
this.
|
|
36502
|
+
this.aex_1 = factory;
|
|
36503
|
+
this.bex_1 = pointsInteractor;
|
|
36504
|
+
this.cex_1 = teamsLogicProvider;
|
|
36438
36505
|
}
|
|
36439
|
-
protoOf(MessagesMiddleware).
|
|
36506
|
+
protoOf(MessagesMiddleware).wex = function () {
|
|
36440
36507
|
return middleware(MessagesMiddleware$middlewareEngine$lambda(this));
|
|
36441
36508
|
};
|
|
36442
|
-
protoOf(MessagesMiddleware).
|
|
36509
|
+
protoOf(MessagesMiddleware).dex = function (currentPlayerId) {
|
|
36443
36510
|
return middleware(MessagesMiddleware$middlewareClient$lambda(this, currentPlayerId));
|
|
36444
36511
|
};
|
|
36445
36512
|
function resetMessageTimeoutMiddleware() {
|
|
@@ -36451,20 +36518,20 @@
|
|
|
36451
36518
|
return new resetMessageTimerStartMiddleware$$inlined$middlewareForActionType$1();
|
|
36452
36519
|
}
|
|
36453
36520
|
function ResetMessageTimerTag(message) {
|
|
36454
|
-
this.
|
|
36521
|
+
this.iey_1 = message;
|
|
36455
36522
|
}
|
|
36456
36523
|
protoOf(ResetMessageTimerTag).toString = function () {
|
|
36457
|
-
return 'ResetMessageTimerTag(message=' + toString(this.
|
|
36524
|
+
return 'ResetMessageTimerTag(message=' + toString(this.iey_1) + ')';
|
|
36458
36525
|
};
|
|
36459
36526
|
protoOf(ResetMessageTimerTag).hashCode = function () {
|
|
36460
|
-
return hashCode(this.
|
|
36527
|
+
return hashCode(this.iey_1);
|
|
36461
36528
|
};
|
|
36462
36529
|
protoOf(ResetMessageTimerTag).equals = function (other) {
|
|
36463
36530
|
if (this === other)
|
|
36464
36531
|
return true;
|
|
36465
36532
|
if (!(other instanceof ResetMessageTimerTag))
|
|
36466
36533
|
return false;
|
|
36467
|
-
if (!equals(this.
|
|
36534
|
+
if (!equals(this.iey_1, other.iey_1))
|
|
36468
36535
|
return false;
|
|
36469
36536
|
return true;
|
|
36470
36537
|
};
|
|
@@ -36478,7 +36545,7 @@
|
|
|
36478
36545
|
var timerTag = action_0.p7i_1;
|
|
36479
36546
|
if (timerTag instanceof ResetMessageTimerTag) {
|
|
36480
36547
|
var clientPayload = get_clientPayload(store.state);
|
|
36481
|
-
if (equals(clientPayload.jbi_1, timerTag.
|
|
36548
|
+
if (equals(clientPayload.jbi_1, timerTag.iey_1)) {
|
|
36482
36549
|
store.dispatch(new InfoMessageAction(null));
|
|
36483
36550
|
}
|
|
36484
36551
|
}
|
|
@@ -36511,7 +36578,7 @@
|
|
|
36511
36578
|
return new clientConsumeFromClientActionsMiddleware$$inlined$middlewareForActionType$1(gameMechanicLogicInteractor);
|
|
36512
36579
|
}
|
|
36513
36580
|
function clientConsumeFromClientActionsMiddleware$$inlined$middlewareForActionType$1($gameMechanicLogicInteractor) {
|
|
36514
|
-
this.
|
|
36581
|
+
this.jey_1 = $gameMechanicLogicInteractor;
|
|
36515
36582
|
}
|
|
36516
36583
|
protoOf(clientConsumeFromClientActionsMiddleware$$inlined$middlewareForActionType$1).t7i = function (action) {
|
|
36517
36584
|
return action instanceof FromClientAction;
|
|
@@ -36529,23 +36596,23 @@
|
|
|
36529
36596
|
next(tmp4);
|
|
36530
36597
|
var tmp;
|
|
36531
36598
|
if (tmp4 instanceof MessageFromClientAction) {
|
|
36532
|
-
tmp = this.
|
|
36599
|
+
tmp = this.jey_1.faf(tmp4, table.players);
|
|
36533
36600
|
} else {
|
|
36534
36601
|
if (tmp4 instanceof PartnerSelectedFromClientAction) {
|
|
36535
|
-
tmp = this.
|
|
36602
|
+
tmp = this.jey_1.gaf(tmp4, table.players);
|
|
36536
36603
|
} else {
|
|
36537
36604
|
if (tmp4 instanceof PlayerReadyFromClientAction) {
|
|
36538
|
-
tmp = this.
|
|
36605
|
+
tmp = this.jey_1.haf(tmp4);
|
|
36539
36606
|
} else {
|
|
36540
36607
|
if (tmp4 instanceof SuitChoiceFromClientAction) {
|
|
36541
|
-
tmp = this.
|
|
36608
|
+
tmp = this.jey_1.iaf(tmp4, table.players, table.config);
|
|
36542
36609
|
} else {
|
|
36543
36610
|
if (tmp4 instanceof CombinationChoiceFromClientAction) {
|
|
36544
|
-
tmp = this.
|
|
36611
|
+
tmp = this.jey_1.jaf(tmp4, table);
|
|
36545
36612
|
} else {
|
|
36546
36613
|
if (tmp4 instanceof CardFromClientAction) {
|
|
36547
36614
|
var newCardsOnTheTable = plus_0(table.cardsOnTable, new CardOnTable(tmp4.j96_1, table.cardsOnTable.g1(), tmp4.m96_1));
|
|
36548
|
-
var cardMechanicAction = this.
|
|
36615
|
+
var cardMechanicAction = this.jey_1.kaf(tmp4, table.gameInfo.round, newCardsOnTheTable, table.players, table.config);
|
|
36549
36616
|
tmp = cardMechanicAction;
|
|
36550
36617
|
} else {
|
|
36551
36618
|
tmp = null;
|
|
@@ -36580,7 +36647,7 @@
|
|
|
36580
36647
|
var action_0 = action instanceof SceneMechanicAction ? action : THROW_CCE();
|
|
36581
36648
|
var clientPayload = get_clientPayload(state);
|
|
36582
36649
|
var tmp0_subject = action_0.d9e_1;
|
|
36583
|
-
return tmp0_subject === 'CHOOSE_PARTNER' || tmp0_subject === 'TRADE' || (tmp0_subject === 'EARN_POINTS' || tmp0_subject === 'CALC_POINTS') ? state.iak(VOID, clientPayload.
|
|
36650
|
+
return tmp0_subject === 'CHOOSE_PARTNER' || tmp0_subject === 'TRADE' || (tmp0_subject === 'EARN_POINTS' || tmp0_subject === 'CALC_POINTS') ? state.iak(VOID, clientPayload.ley(VOID, VOID, VOID, VOID, VOID, VOID, false)) : state;
|
|
36584
36651
|
};
|
|
36585
36652
|
protoOf(sceneActivationReducer$$inlined$reducerForActionType$1).j7k = function (state, action) {
|
|
36586
36653
|
return this.ib0((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
@@ -36590,9 +36657,9 @@
|
|
|
36590
36657
|
return new exitAndSaveGameMiddleware$$inlined$middlewareForActionType$1(currentPlayerId, asyncProvider, persistentAppStateInteractor);
|
|
36591
36658
|
}
|
|
36592
36659
|
function exitAndSaveGameMiddleware$o$handle$slambda($store, $action, $persistentAppStateInteractor, resultContinuation) {
|
|
36593
|
-
this.
|
|
36594
|
-
this.
|
|
36595
|
-
this.
|
|
36660
|
+
this.uey_1 = $store;
|
|
36661
|
+
this.vey_1 = $action;
|
|
36662
|
+
this.wey_1 = $persistentAppStateInteractor;
|
|
36596
36663
|
CoroutineImpl.call(this, resultContinuation);
|
|
36597
36664
|
}
|
|
36598
36665
|
protoOf(exitAndSaveGameMiddleware$o$handle$slambda).x2c = function ($this$launchDefault, $completion) {
|
|
@@ -36612,16 +36679,16 @@
|
|
|
36612
36679
|
switch (tmp) {
|
|
36613
36680
|
case 0:
|
|
36614
36681
|
this.j9_1 = 2;
|
|
36615
|
-
var state = this.
|
|
36682
|
+
var state = this.uey_1.state;
|
|
36616
36683
|
if (!state.u7v() || state.s7v().isGameFinished) {
|
|
36617
36684
|
var tmp_0 = this;
|
|
36618
|
-
this.
|
|
36619
|
-
tmp_0.
|
|
36685
|
+
this.uey_1.dispatch(new FinishGameMechanicAction(new PlayerExitReason(this.vey_1.oak_1), state.s7v().isGameFinished));
|
|
36686
|
+
tmp_0.yey_1 = Unit_instance;
|
|
36620
36687
|
this.i9_1 = 3;
|
|
36621
36688
|
continue $sm;
|
|
36622
36689
|
} else {
|
|
36623
36690
|
this.i9_1 = 1;
|
|
36624
|
-
suspendResult = this.
|
|
36691
|
+
suspendResult = this.wey_1.rcd(state.s7v(), get_clientPayload(state), true, this);
|
|
36625
36692
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
36626
36693
|
return suspendResult;
|
|
36627
36694
|
}
|
|
@@ -36629,7 +36696,7 @@
|
|
|
36629
36696
|
}
|
|
36630
36697
|
|
|
36631
36698
|
case 1:
|
|
36632
|
-
this.
|
|
36699
|
+
this.yey_1 = suspendResult;
|
|
36633
36700
|
this.i9_1 = 3;
|
|
36634
36701
|
continue $sm;
|
|
36635
36702
|
case 2:
|
|
@@ -36649,8 +36716,8 @@
|
|
|
36649
36716
|
while (true);
|
|
36650
36717
|
};
|
|
36651
36718
|
protoOf(exitAndSaveGameMiddleware$o$handle$slambda).y2c = function ($this$launchDefault, completion) {
|
|
36652
|
-
var i = new exitAndSaveGameMiddleware$o$handle$slambda(this.
|
|
36653
|
-
i.
|
|
36719
|
+
var i = new exitAndSaveGameMiddleware$o$handle$slambda(this.uey_1, this.vey_1, this.wey_1, completion);
|
|
36720
|
+
i.xey_1 = $this$launchDefault;
|
|
36654
36721
|
return i;
|
|
36655
36722
|
};
|
|
36656
36723
|
function exitAndSaveGameMiddleware$o$handle$slambda_0($store, $action, $persistentAppStateInteractor, resultContinuation) {
|
|
@@ -36662,9 +36729,9 @@
|
|
|
36662
36729
|
return l;
|
|
36663
36730
|
}
|
|
36664
36731
|
function exitAndSaveGameMiddleware$$inlined$middlewareForActionType$1($currentPlayerId, $asyncProvider, $persistentAppStateInteractor) {
|
|
36665
|
-
this.
|
|
36666
|
-
this.
|
|
36667
|
-
this.
|
|
36732
|
+
this.zey_1 = $currentPlayerId;
|
|
36733
|
+
this.aez_1 = $asyncProvider;
|
|
36734
|
+
this.bez_1 = $persistentAppStateInteractor;
|
|
36668
36735
|
}
|
|
36669
36736
|
protoOf(exitAndSaveGameMiddleware$$inlined$middlewareForActionType$1).t7i = function (action) {
|
|
36670
36737
|
return action instanceof PlayerConnectionUpdateAction;
|
|
@@ -36672,12 +36739,12 @@
|
|
|
36672
36739
|
protoOf(exitAndSaveGameMiddleware$$inlined$middlewareForActionType$1).i7k = function (store, next, action) {
|
|
36673
36740
|
var tmp4 = action instanceof PlayerConnectionUpdateAction ? action : THROW_CCE();
|
|
36674
36741
|
$l$block: {
|
|
36675
|
-
if (!(this.
|
|
36742
|
+
if (!(this.zey_1 === tmp4.oak_1)) {
|
|
36676
36743
|
next(tmp4);
|
|
36677
36744
|
break $l$block;
|
|
36678
36745
|
}
|
|
36679
36746
|
next(tmp4);
|
|
36680
|
-
this.
|
|
36747
|
+
this.aez_1.j7e(VOID, exitAndSaveGameMiddleware$o$handle$slambda_0(store, tmp4, this.bez_1, null));
|
|
36681
36748
|
}
|
|
36682
36749
|
};
|
|
36683
36750
|
protoOf(exitAndSaveGameMiddleware$$inlined$middlewareForActionType$1).s7i = function (store, next, action) {
|
|
@@ -36688,9 +36755,9 @@
|
|
|
36688
36755
|
return new gameHistoryMiddleware$$inlined$middlewareForActionType$1(asyncProvider, interactor);
|
|
36689
36756
|
}
|
|
36690
36757
|
function gameHistoryMiddleware$o$handle$slambda($action, $store, $interactor, resultContinuation) {
|
|
36691
|
-
this.
|
|
36692
|
-
this.
|
|
36693
|
-
this.
|
|
36758
|
+
this.kez_1 = $action;
|
|
36759
|
+
this.lez_1 = $store;
|
|
36760
|
+
this.mez_1 = $interactor;
|
|
36694
36761
|
CoroutineImpl.call(this, resultContinuation);
|
|
36695
36762
|
}
|
|
36696
36763
|
protoOf(gameHistoryMiddleware$o$handle$slambda).x2c = function ($this$launchDefault, $completion) {
|
|
@@ -36710,20 +36777,20 @@
|
|
|
36710
36777
|
switch (tmp) {
|
|
36711
36778
|
case 0:
|
|
36712
36779
|
this.j9_1 = 4;
|
|
36713
|
-
var tmp0_subject = this.
|
|
36780
|
+
var tmp0_subject = this.kez_1;
|
|
36714
36781
|
if (tmp0_subject instanceof RoundStartedAction) {
|
|
36715
|
-
var table = this.
|
|
36782
|
+
var table = this.lez_1.state.s7v();
|
|
36716
36783
|
this.i9_1 = 2;
|
|
36717
|
-
suspendResult = this.
|
|
36784
|
+
suspendResult = this.mez_1.ocd(this.kez_1.gameHistory, table.config, table.users, get_clientPayload(this.lez_1.state).hbi_1.hbu_1, this);
|
|
36718
36785
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
36719
36786
|
return suspendResult;
|
|
36720
36787
|
}
|
|
36721
36788
|
continue $sm;
|
|
36722
36789
|
} else {
|
|
36723
36790
|
if (tmp0_subject instanceof RoundEndedAction) {
|
|
36724
|
-
var table_0 = this.
|
|
36791
|
+
var table_0 = this.lez_1.state.s7v();
|
|
36725
36792
|
this.i9_1 = 1;
|
|
36726
|
-
suspendResult = this.
|
|
36793
|
+
suspendResult = this.mez_1.ncd(this.kez_1.gameHistory, table_0.config, table_0.users, get_clientPayload(this.lez_1.state).hbi_1.hbu_1, this);
|
|
36727
36794
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
36728
36795
|
return suspendResult;
|
|
36729
36796
|
}
|
|
@@ -36757,8 +36824,8 @@
|
|
|
36757
36824
|
while (true);
|
|
36758
36825
|
};
|
|
36759
36826
|
protoOf(gameHistoryMiddleware$o$handle$slambda).y2c = function ($this$launchDefault, completion) {
|
|
36760
|
-
var i = new gameHistoryMiddleware$o$handle$slambda(this.
|
|
36761
|
-
i.
|
|
36827
|
+
var i = new gameHistoryMiddleware$o$handle$slambda(this.kez_1, this.lez_1, this.mez_1, completion);
|
|
36828
|
+
i.nez_1 = $this$launchDefault;
|
|
36762
36829
|
return i;
|
|
36763
36830
|
};
|
|
36764
36831
|
function gameHistoryMiddleware$o$handle$slambda_0($action, $store, $interactor, resultContinuation) {
|
|
@@ -36770,8 +36837,8 @@
|
|
|
36770
36837
|
return l;
|
|
36771
36838
|
}
|
|
36772
36839
|
function gameHistoryMiddleware$$inlined$middlewareForActionType$1($asyncProvider, $interactor) {
|
|
36773
|
-
this.
|
|
36774
|
-
this.
|
|
36840
|
+
this.oez_1 = $asyncProvider;
|
|
36841
|
+
this.pez_1 = $interactor;
|
|
36775
36842
|
}
|
|
36776
36843
|
protoOf(gameHistoryMiddleware$$inlined$middlewareForActionType$1).t7i = function (action) {
|
|
36777
36844
|
return action instanceof GameAction;
|
|
@@ -36779,7 +36846,7 @@
|
|
|
36779
36846
|
protoOf(gameHistoryMiddleware$$inlined$middlewareForActionType$1).i7k = function (store, next, action) {
|
|
36780
36847
|
var action_0 = action instanceof GameAction ? action : THROW_CCE();
|
|
36781
36848
|
next(action_0);
|
|
36782
|
-
this.
|
|
36849
|
+
this.oez_1.j7e(VOID, gameHistoryMiddleware$o$handle$slambda_0(action_0, store, this.pez_1, null));
|
|
36783
36850
|
};
|
|
36784
36851
|
protoOf(gameHistoryMiddleware$$inlined$middlewareForActionType$1).s7i = function (store, next, action) {
|
|
36785
36852
|
return this.i7k(store, next, action);
|
|
@@ -36790,9 +36857,9 @@
|
|
|
36790
36857
|
return new playerTurnTimerStartWhenContinueGameMiddleware$$inlined$middlewareForActionType$1(isEnableBotForPlayer, isDelayForBot, random);
|
|
36791
36858
|
}
|
|
36792
36859
|
function playerTurnTimerStartWhenContinueGameMiddleware$$inlined$middlewareForActionType$1($isEnableBotForPlayer, $isDelayForBot, $random) {
|
|
36793
|
-
this.
|
|
36794
|
-
this.
|
|
36795
|
-
this.
|
|
36860
|
+
this.qez_1 = $isEnableBotForPlayer;
|
|
36861
|
+
this.rez_1 = $isDelayForBot;
|
|
36862
|
+
this.sez_1 = $random;
|
|
36796
36863
|
}
|
|
36797
36864
|
protoOf(playerTurnTimerStartWhenContinueGameMiddleware$$inlined$middlewareForActionType$1).t7i = function (action) {
|
|
36798
36865
|
return action instanceof ContinueGameMechanicAction;
|
|
@@ -36808,7 +36875,7 @@
|
|
|
36808
36875
|
var _iterator__ex2g4s = tmp0.t();
|
|
36809
36876
|
while (_iterator__ex2g4s.u()) {
|
|
36810
36877
|
var element = _iterator__ex2g4s.v();
|
|
36811
|
-
if (this.
|
|
36878
|
+
if (this.qez_1(element.playerId)) {
|
|
36812
36879
|
destination.e1(element);
|
|
36813
36880
|
}
|
|
36814
36881
|
}
|
|
@@ -36816,7 +36883,7 @@
|
|
|
36816
36883
|
var _iterator__ex2g4s_0 = destination.t();
|
|
36817
36884
|
while (_iterator__ex2g4s_0.u()) {
|
|
36818
36885
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
36819
|
-
store.dispatch(new StartTimerAction(PlayerTurnTimerTag_init_$Create$(element_0.playerId, element_0.j7z_1.w79()), getInitialPlayerTurnTimerDelayMillis(element_0, table.config, this.
|
|
36886
|
+
store.dispatch(new StartTimerAction(PlayerTurnTimerTag_init_$Create$(element_0.playerId, element_0.j7z_1.w79()), getInitialPlayerTurnTimerDelayMillis(element_0, table.config, this.rez_1, this.sez_1), VOID, TimerType_DELAY_getInstance()));
|
|
36820
36887
|
}
|
|
36821
36888
|
};
|
|
36822
36889
|
protoOf(playerTurnTimerStartWhenContinueGameMiddleware$$inlined$middlewareForActionType$1).s7i = function (store, next, action) {
|
|
@@ -36827,9 +36894,9 @@
|
|
|
36827
36894
|
return new removeSavedGameMiddleware$$inlined$middlewareForActionType$1(asyncProvider, persistentAppStateInteractor);
|
|
36828
36895
|
}
|
|
36829
36896
|
function removeSavedGameMiddleware$o$handle$slambda($action, $persistentAppStateInteractor, $id, resultContinuation) {
|
|
36830
|
-
this.
|
|
36831
|
-
this.
|
|
36832
|
-
this.
|
|
36897
|
+
this.bf0_1 = $action;
|
|
36898
|
+
this.cf0_1 = $persistentAppStateInteractor;
|
|
36899
|
+
this.df0_1 = $id;
|
|
36833
36900
|
CoroutineImpl.call(this, resultContinuation);
|
|
36834
36901
|
}
|
|
36835
36902
|
protoOf(removeSavedGameMiddleware$o$handle$slambda).x2c = function ($this$launchDefault, $completion) {
|
|
@@ -36849,10 +36916,10 @@
|
|
|
36849
36916
|
switch (tmp) {
|
|
36850
36917
|
case 0:
|
|
36851
36918
|
this.j9_1 = 3;
|
|
36852
|
-
var gameWinner = this.
|
|
36919
|
+
var gameWinner = this.bf0_1.gameWinners;
|
|
36853
36920
|
if (!(gameWinner == null)) {
|
|
36854
36921
|
this.i9_1 = 1;
|
|
36855
|
-
suspendResult = this.
|
|
36922
|
+
suspendResult = this.cf0_1.scd(this.df0_1, this);
|
|
36856
36923
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
36857
36924
|
return suspendResult;
|
|
36858
36925
|
}
|
|
@@ -36882,8 +36949,8 @@
|
|
|
36882
36949
|
while (true);
|
|
36883
36950
|
};
|
|
36884
36951
|
protoOf(removeSavedGameMiddleware$o$handle$slambda).y2c = function ($this$launchDefault, completion) {
|
|
36885
|
-
var i = new removeSavedGameMiddleware$o$handle$slambda(this.
|
|
36886
|
-
i.
|
|
36952
|
+
var i = new removeSavedGameMiddleware$o$handle$slambda(this.bf0_1, this.cf0_1, this.df0_1, completion);
|
|
36953
|
+
i.ef0_1 = $this$launchDefault;
|
|
36887
36954
|
return i;
|
|
36888
36955
|
};
|
|
36889
36956
|
function removeSavedGameMiddleware$o$handle$slambda_0($action, $persistentAppStateInteractor, $id, resultContinuation) {
|
|
@@ -36895,8 +36962,8 @@
|
|
|
36895
36962
|
return l;
|
|
36896
36963
|
}
|
|
36897
36964
|
function removeSavedGameMiddleware$$inlined$middlewareForActionType$1($asyncProvider, $persistentAppStateInteractor) {
|
|
36898
|
-
this.
|
|
36899
|
-
this.
|
|
36965
|
+
this.ff0_1 = $asyncProvider;
|
|
36966
|
+
this.gf0_1 = $persistentAppStateInteractor;
|
|
36900
36967
|
}
|
|
36901
36968
|
protoOf(removeSavedGameMiddleware$$inlined$middlewareForActionType$1).t7i = function (action) {
|
|
36902
36969
|
return action instanceof RoundEndedAction;
|
|
@@ -36905,7 +36972,7 @@
|
|
|
36905
36972
|
var action_0 = action instanceof RoundEndedAction ? action : THROW_CCE();
|
|
36906
36973
|
var id = store.state.s7v().id;
|
|
36907
36974
|
next(action_0);
|
|
36908
|
-
this.
|
|
36975
|
+
this.ff0_1.j7e(VOID, removeSavedGameMiddleware$o$handle$slambda_0(action_0, this.gf0_1, id, null));
|
|
36909
36976
|
};
|
|
36910
36977
|
protoOf(removeSavedGameMiddleware$$inlined$middlewareForActionType$1).s7i = function (store, next, action) {
|
|
36911
36978
|
return this.i7k(store, next, action);
|
|
@@ -36915,8 +36982,8 @@
|
|
|
36915
36982
|
return new removeSavedGameWhenErrorMiddleware$$inlined$middlewareForActionType$1(asyncProvider, persistentAppStateInteractor);
|
|
36916
36983
|
}
|
|
36917
36984
|
function removeSavedGameWhenErrorMiddleware$o$handle$slambda($store, $persistentAppStateInteractor, resultContinuation) {
|
|
36918
|
-
this.
|
|
36919
|
-
this.
|
|
36985
|
+
this.pf0_1 = $store;
|
|
36986
|
+
this.qf0_1 = $persistentAppStateInteractor;
|
|
36920
36987
|
CoroutineImpl.call(this, resultContinuation);
|
|
36921
36988
|
}
|
|
36922
36989
|
protoOf(removeSavedGameWhenErrorMiddleware$o$handle$slambda).x2c = function ($this$launchDefault, $completion) {
|
|
@@ -36936,11 +37003,11 @@
|
|
|
36936
37003
|
switch (tmp) {
|
|
36937
37004
|
case 0:
|
|
36938
37005
|
this.j9_1 = 2;
|
|
36939
|
-
var tmp0_safe_receiver = this.
|
|
37006
|
+
var tmp0_safe_receiver = this.pf0_1.state.tableOrNull;
|
|
36940
37007
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.id;
|
|
36941
37008
|
var id = tmp1_elvis_lhs == null ? 'temp_game_id' : tmp1_elvis_lhs;
|
|
36942
37009
|
this.i9_1 = 1;
|
|
36943
|
-
suspendResult = this.
|
|
37010
|
+
suspendResult = this.qf0_1.scd(id, this);
|
|
36944
37011
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
36945
37012
|
return suspendResult;
|
|
36946
37013
|
}
|
|
@@ -36963,8 +37030,8 @@
|
|
|
36963
37030
|
while (true);
|
|
36964
37031
|
};
|
|
36965
37032
|
protoOf(removeSavedGameWhenErrorMiddleware$o$handle$slambda).y2c = function ($this$launchDefault, completion) {
|
|
36966
|
-
var i = new removeSavedGameWhenErrorMiddleware$o$handle$slambda(this.
|
|
36967
|
-
i.
|
|
37033
|
+
var i = new removeSavedGameWhenErrorMiddleware$o$handle$slambda(this.pf0_1, this.qf0_1, completion);
|
|
37034
|
+
i.rf0_1 = $this$launchDefault;
|
|
36968
37035
|
return i;
|
|
36969
37036
|
};
|
|
36970
37037
|
function removeSavedGameWhenErrorMiddleware$o$handle$slambda_0($store, $persistentAppStateInteractor, resultContinuation) {
|
|
@@ -36976,15 +37043,15 @@
|
|
|
36976
37043
|
return l;
|
|
36977
37044
|
}
|
|
36978
37045
|
function removeSavedGameWhenErrorMiddleware$$inlined$middlewareForActionType$1($asyncProvider, $persistentAppStateInteractor) {
|
|
36979
|
-
this.
|
|
36980
|
-
this.
|
|
37046
|
+
this.sf0_1 = $asyncProvider;
|
|
37047
|
+
this.tf0_1 = $persistentAppStateInteractor;
|
|
36981
37048
|
}
|
|
36982
37049
|
protoOf(removeSavedGameWhenErrorMiddleware$$inlined$middlewareForActionType$1).t7i = function (action) {
|
|
36983
37050
|
return action instanceof ErrorAction;
|
|
36984
37051
|
};
|
|
36985
37052
|
protoOf(removeSavedGameWhenErrorMiddleware$$inlined$middlewareForActionType$1).i7k = function (store, next, action) {
|
|
36986
37053
|
next(action instanceof ErrorAction ? action : THROW_CCE());
|
|
36987
|
-
this.
|
|
37054
|
+
this.sf0_1.j7e(VOID, removeSavedGameWhenErrorMiddleware$o$handle$slambda_0(store, this.tf0_1, null));
|
|
36988
37055
|
};
|
|
36989
37056
|
protoOf(removeSavedGameWhenErrorMiddleware$$inlined$middlewareForActionType$1).s7i = function (store, next, action) {
|
|
36990
37057
|
return this.i7k(store, next, action);
|
|
@@ -36994,9 +37061,9 @@
|
|
|
36994
37061
|
return new saveGameWhenAppOnBackgroundMiddleware$$inlined$middlewareForActionType$1(asyncProvider, persistentAppStateInteractor);
|
|
36995
37062
|
}
|
|
36996
37063
|
function saveGameWhenAppOnBackgroundMiddleware$o$handle$slambda($action, $state, $persistentAppStateInteractor, resultContinuation) {
|
|
36997
|
-
this.
|
|
36998
|
-
this.
|
|
36999
|
-
this.
|
|
37064
|
+
this.cf1_1 = $action;
|
|
37065
|
+
this.df1_1 = $state;
|
|
37066
|
+
this.ef1_1 = $persistentAppStateInteractor;
|
|
37000
37067
|
CoroutineImpl.call(this, resultContinuation);
|
|
37001
37068
|
}
|
|
37002
37069
|
protoOf(saveGameWhenAppOnBackgroundMiddleware$o$handle$slambda).x2c = function ($this$launchDefault, $completion) {
|
|
@@ -37016,9 +37083,9 @@
|
|
|
37016
37083
|
switch (tmp) {
|
|
37017
37084
|
case 0:
|
|
37018
37085
|
this.j9_1 = 3;
|
|
37019
|
-
if (!this.
|
|
37086
|
+
if (!this.cf1_1.yeu_1 && this.df1_1.u7v() && !this.df1_1.s7v().isGameFinished) {
|
|
37020
37087
|
this.i9_1 = 1;
|
|
37021
|
-
suspendResult = this.
|
|
37088
|
+
suspendResult = this.ef1_1.rcd(this.df1_1.s7v(), get_clientPayload(this.df1_1), false, this);
|
|
37022
37089
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
37023
37090
|
return suspendResult;
|
|
37024
37091
|
}
|
|
@@ -37048,8 +37115,8 @@
|
|
|
37048
37115
|
while (true);
|
|
37049
37116
|
};
|
|
37050
37117
|
protoOf(saveGameWhenAppOnBackgroundMiddleware$o$handle$slambda).y2c = function ($this$launchDefault, completion) {
|
|
37051
|
-
var i = new saveGameWhenAppOnBackgroundMiddleware$o$handle$slambda(this.
|
|
37052
|
-
i.
|
|
37118
|
+
var i = new saveGameWhenAppOnBackgroundMiddleware$o$handle$slambda(this.cf1_1, this.df1_1, this.ef1_1, completion);
|
|
37119
|
+
i.ff1_1 = $this$launchDefault;
|
|
37053
37120
|
return i;
|
|
37054
37121
|
};
|
|
37055
37122
|
function saveGameWhenAppOnBackgroundMiddleware$o$handle$slambda_0($action, $state, $persistentAppStateInteractor, resultContinuation) {
|
|
@@ -37061,8 +37128,8 @@
|
|
|
37061
37128
|
return l;
|
|
37062
37129
|
}
|
|
37063
37130
|
function saveGameWhenAppOnBackgroundMiddleware$$inlined$middlewareForActionType$1($asyncProvider, $persistentAppStateInteractor) {
|
|
37064
|
-
this.
|
|
37065
|
-
this.
|
|
37131
|
+
this.gf1_1 = $asyncProvider;
|
|
37132
|
+
this.hf1_1 = $persistentAppStateInteractor;
|
|
37066
37133
|
}
|
|
37067
37134
|
protoOf(saveGameWhenAppOnBackgroundMiddleware$$inlined$middlewareForActionType$1).t7i = function (action) {
|
|
37068
37135
|
return action instanceof UIFocusedAction;
|
|
@@ -37071,7 +37138,7 @@
|
|
|
37071
37138
|
var action_0 = action instanceof UIFocusedAction ? action : THROW_CCE();
|
|
37072
37139
|
var state = store.state;
|
|
37073
37140
|
next(action_0);
|
|
37074
|
-
this.
|
|
37141
|
+
this.gf1_1.j7e(VOID, saveGameWhenAppOnBackgroundMiddleware$o$handle$slambda_0(action_0, state, this.hf1_1, null));
|
|
37075
37142
|
};
|
|
37076
37143
|
protoOf(saveGameWhenAppOnBackgroundMiddleware$$inlined$middlewareForActionType$1).s7i = function (store, next, action) {
|
|
37077
37144
|
return this.i7k(store, next, action);
|
|
@@ -37081,9 +37148,9 @@
|
|
|
37081
37148
|
return new statisticsMiddleware$$inlined$middlewareForActionType$1(asyncProvider, currentPlayerId, clientStatisticsInteractor);
|
|
37082
37149
|
}
|
|
37083
37150
|
function statisticsMiddleware$o$handle$slambda($action, $currentPlayerId, $clientStatisticsInteractor, resultContinuation) {
|
|
37084
|
-
this.
|
|
37085
|
-
this.
|
|
37086
|
-
this.
|
|
37151
|
+
this.qf1_1 = $action;
|
|
37152
|
+
this.rf1_1 = $currentPlayerId;
|
|
37153
|
+
this.sf1_1 = $clientStatisticsInteractor;
|
|
37087
37154
|
CoroutineImpl.call(this, resultContinuation);
|
|
37088
37155
|
}
|
|
37089
37156
|
protoOf(statisticsMiddleware$o$handle$slambda).x2c = function ($this$launchDefault, $completion) {
|
|
@@ -37103,24 +37170,24 @@
|
|
|
37103
37170
|
switch (tmp) {
|
|
37104
37171
|
case 0:
|
|
37105
37172
|
this.j9_1 = 4;
|
|
37106
|
-
var isEarnedBiggestPoint = this.
|
|
37107
|
-
var tmp0_safe_receiver = this.
|
|
37108
|
-
var isRoundWinner = (tmp0_safe_receiver == null ? null : contains(tmp0_safe_receiver, this.
|
|
37109
|
-
var tmp1_safe_receiver = this.
|
|
37110
|
-
var isCommitted = (tmp1_safe_receiver == null ? null : contains(tmp1_safe_receiver, this.
|
|
37173
|
+
var isEarnedBiggestPoint = this.qf1_1.earnedBiggestPointPlayerId === this.rf1_1;
|
|
37174
|
+
var tmp0_safe_receiver = this.qf1_1.gameHistory.lastRoundHistory.winners;
|
|
37175
|
+
var isRoundWinner = (tmp0_safe_receiver == null ? null : contains(tmp0_safe_receiver, this.rf1_1)) === true;
|
|
37176
|
+
var tmp1_safe_receiver = this.qf1_1.gameHistory.lastRoundHistory.committed;
|
|
37177
|
+
var isCommitted = (tmp1_safe_receiver == null ? null : contains(tmp1_safe_receiver, this.rf1_1)) === true;
|
|
37111
37178
|
this.i9_1 = 1;
|
|
37112
|
-
suspendResult = this.
|
|
37179
|
+
suspendResult = this.sf1_1.pcd(isCommitted, isRoundWinner, isEarnedBiggestPoint, this);
|
|
37113
37180
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
37114
37181
|
return suspendResult;
|
|
37115
37182
|
}
|
|
37116
37183
|
|
|
37117
37184
|
continue $sm;
|
|
37118
37185
|
case 1:
|
|
37119
|
-
var gameWinner = this.
|
|
37186
|
+
var gameWinner = this.qf1_1.gameWinners;
|
|
37120
37187
|
if (!(gameWinner == null)) {
|
|
37121
|
-
var isGameWinner = contains(gameWinner, this.
|
|
37188
|
+
var isGameWinner = contains(gameWinner, this.rf1_1);
|
|
37122
37189
|
this.i9_1 = 2;
|
|
37123
|
-
suspendResult = this.
|
|
37190
|
+
suspendResult = this.sf1_1.qcd(isGameWinner, this);
|
|
37124
37191
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
37125
37192
|
return suspendResult;
|
|
37126
37193
|
}
|
|
@@ -37150,8 +37217,8 @@
|
|
|
37150
37217
|
while (true);
|
|
37151
37218
|
};
|
|
37152
37219
|
protoOf(statisticsMiddleware$o$handle$slambda).y2c = function ($this$launchDefault, completion) {
|
|
37153
|
-
var i = new statisticsMiddleware$o$handle$slambda(this.
|
|
37154
|
-
i.
|
|
37220
|
+
var i = new statisticsMiddleware$o$handle$slambda(this.qf1_1, this.rf1_1, this.sf1_1, completion);
|
|
37221
|
+
i.tf1_1 = $this$launchDefault;
|
|
37155
37222
|
return i;
|
|
37156
37223
|
};
|
|
37157
37224
|
function statisticsMiddleware$o$handle$slambda_0($action, $currentPlayerId, $clientStatisticsInteractor, resultContinuation) {
|
|
@@ -37163,9 +37230,9 @@
|
|
|
37163
37230
|
return l;
|
|
37164
37231
|
}
|
|
37165
37232
|
function statisticsMiddleware$$inlined$middlewareForActionType$1($asyncProvider, $currentPlayerId, $clientStatisticsInteractor) {
|
|
37166
|
-
this.
|
|
37167
|
-
this.
|
|
37168
|
-
this.
|
|
37233
|
+
this.uf1_1 = $asyncProvider;
|
|
37234
|
+
this.vf1_1 = $currentPlayerId;
|
|
37235
|
+
this.wf1_1 = $clientStatisticsInteractor;
|
|
37169
37236
|
}
|
|
37170
37237
|
protoOf(statisticsMiddleware$$inlined$middlewareForActionType$1).t7i = function (action) {
|
|
37171
37238
|
return action instanceof RoundEndedAction;
|
|
@@ -37173,7 +37240,7 @@
|
|
|
37173
37240
|
protoOf(statisticsMiddleware$$inlined$middlewareForActionType$1).i7k = function (store, next, action) {
|
|
37174
37241
|
var action_0 = action instanceof RoundEndedAction ? action : THROW_CCE();
|
|
37175
37242
|
next(action_0);
|
|
37176
|
-
this.
|
|
37243
|
+
this.uf1_1.j7e(VOID, statisticsMiddleware$o$handle$slambda_0(action_0, this.vf1_1, this.wf1_1, null));
|
|
37177
37244
|
};
|
|
37178
37245
|
protoOf(statisticsMiddleware$$inlined$middlewareForActionType$1).s7i = function (store, next, action) {
|
|
37179
37246
|
return this.i7k(store, next, action);
|
|
@@ -37203,147 +37270,117 @@
|
|
|
37203
37270
|
protoOf(clearTimersWhenErrorMiddleware$$inlined$middlewareForActionType$1).s7i = function (store, next, action) {
|
|
37204
37271
|
return this.i7k(store, next, action);
|
|
37205
37272
|
};
|
|
37206
|
-
function
|
|
37273
|
+
function transitionFailsafeStartMiddleware() {
|
|
37274
|
+
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
37275
|
+
return new transitionFailsafeStartMiddleware$$inlined$middlewareForActionType$1();
|
|
37276
|
+
}
|
|
37277
|
+
function transitionFinishedMiddleware() {
|
|
37278
|
+
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
37279
|
+
return new transitionFinishedMiddleware$$inlined$middlewareForActionType$1();
|
|
37280
|
+
}
|
|
37281
|
+
function transitionFailsafeTimeoutMiddleware(gameLogger) {
|
|
37207
37282
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
37208
|
-
return new
|
|
37283
|
+
return new transitionFailsafeTimeoutMiddleware$$inlined$middlewareForActionType$1(gameLogger);
|
|
37209
37284
|
}
|
|
37210
|
-
function
|
|
37285
|
+
function TransitionFailsafeTimerTag(transitionId) {
|
|
37286
|
+
this.xf1_1 = transitionId;
|
|
37287
|
+
}
|
|
37288
|
+
protoOf(TransitionFailsafeTimerTag).toString = function () {
|
|
37289
|
+
return 'TransitionFailsafeTimerTag(transitionId=' + this.xf1_1 + ')';
|
|
37290
|
+
};
|
|
37291
|
+
protoOf(TransitionFailsafeTimerTag).hashCode = function () {
|
|
37292
|
+
return getStringHashCode(this.xf1_1);
|
|
37293
|
+
};
|
|
37294
|
+
protoOf(TransitionFailsafeTimerTag).equals = function (other) {
|
|
37295
|
+
if (this === other)
|
|
37296
|
+
return true;
|
|
37297
|
+
if (!(other instanceof TransitionFailsafeTimerTag))
|
|
37298
|
+
return false;
|
|
37299
|
+
if (!(this.xf1_1 === other.xf1_1))
|
|
37300
|
+
return false;
|
|
37301
|
+
return true;
|
|
37302
|
+
};
|
|
37303
|
+
function transitionFailsafeStartMiddleware$$inlined$middlewareForActionType$1() {
|
|
37304
|
+
}
|
|
37305
|
+
protoOf(transitionFailsafeStartMiddleware$$inlined$middlewareForActionType$1).t7i = function (action) {
|
|
37306
|
+
return action instanceof MechanicAction;
|
|
37307
|
+
};
|
|
37308
|
+
protoOf(transitionFailsafeStartMiddleware$$inlined$middlewareForActionType$1).i7k = function (store, next, action) {
|
|
37309
|
+
var action_0 = action instanceof MechanicAction ? action : THROW_CCE();
|
|
37310
|
+
// Inline function 'kotlin.collections.map' call
|
|
37311
|
+
var this_0 = get_clientPayload(store.state).ubi_1;
|
|
37312
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
37313
|
+
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
37314
|
+
var _iterator__ex2g4s = this_0.t();
|
|
37315
|
+
while (_iterator__ex2g4s.u()) {
|
|
37316
|
+
var item = _iterator__ex2g4s.v();
|
|
37317
|
+
var tmp$ret$0 = item.b6c();
|
|
37318
|
+
destination.e1(tmp$ret$0);
|
|
37319
|
+
}
|
|
37320
|
+
var oldIds = toSet(destination);
|
|
37321
|
+
next(action_0);
|
|
37322
|
+
var newTransitions = get_clientPayload(store.state).ubi_1;
|
|
37323
|
+
var _iterator__ex2g4s_0 = newTransitions.t();
|
|
37324
|
+
while (_iterator__ex2g4s_0.u()) {
|
|
37325
|
+
var transition = _iterator__ex2g4s_0.v();
|
|
37326
|
+
if (!oldIds.m2(transition.b6c())) {
|
|
37327
|
+
store.dispatch(new StartTimerAction(new TransitionFailsafeTimerTag(transition.b6c()), new Long(15000, 0), VOID, TimerType_DELAY_getInstance()));
|
|
37328
|
+
}
|
|
37329
|
+
}
|
|
37330
|
+
};
|
|
37331
|
+
protoOf(transitionFailsafeStartMiddleware$$inlined$middlewareForActionType$1).s7i = function (store, next, action) {
|
|
37332
|
+
return this.i7k(store, next, action);
|
|
37333
|
+
};
|
|
37334
|
+
function transitionFinishedMiddleware$$inlined$middlewareForActionType$1() {
|
|
37211
37335
|
}
|
|
37212
|
-
protoOf(
|
|
37336
|
+
protoOf(transitionFinishedMiddleware$$inlined$middlewareForActionType$1).t7i = function (action) {
|
|
37213
37337
|
return action instanceof TransitionsFinishedAction;
|
|
37214
37338
|
};
|
|
37215
|
-
protoOf(
|
|
37339
|
+
protoOf(transitionFinishedMiddleware$$inlined$middlewareForActionType$1).i7k = function (store, next, action) {
|
|
37216
37340
|
var action_0 = action instanceof TransitionsFinishedAction ? action : THROW_CCE();
|
|
37217
|
-
|
|
37218
|
-
var
|
|
37219
|
-
|
|
37220
|
-
|
|
37221
|
-
|
|
37222
|
-
var _iterator__ex2g4s = tmp0.t();
|
|
37223
|
-
while (_iterator__ex2g4s.u()) {
|
|
37224
|
-
var element = _iterator__ex2g4s.v();
|
|
37225
|
-
if (action_0.oeu_1.m2(element.b6c())) {
|
|
37226
|
-
tmp$ret$1 = element;
|
|
37227
|
-
break $l$block;
|
|
37228
|
-
}
|
|
37229
|
-
}
|
|
37230
|
-
tmp$ret$1 = null;
|
|
37341
|
+
next(action_0);
|
|
37342
|
+
var _iterator__ex2g4s = action_0.oeu_1.t();
|
|
37343
|
+
while (_iterator__ex2g4s.u()) {
|
|
37344
|
+
var id = _iterator__ex2g4s.v();
|
|
37345
|
+
store.dispatch(new StopTimerAction(new TransitionFailsafeTimerTag(id)));
|
|
37231
37346
|
}
|
|
37232
|
-
|
|
37233
|
-
|
|
37234
|
-
|
|
37235
|
-
|
|
37236
|
-
|
|
37237
|
-
|
|
37238
|
-
|
|
37239
|
-
|
|
37240
|
-
|
|
37241
|
-
|
|
37242
|
-
|
|
37243
|
-
|
|
37244
|
-
|
|
37245
|
-
|
|
37246
|
-
|
|
37247
|
-
|
|
37248
|
-
|
|
37249
|
-
|
|
37250
|
-
|
|
37251
|
-
|
|
37252
|
-
|
|
37253
|
-
|
|
37254
|
-
|
|
37255
|
-
|
|
37256
|
-
if (tmp1_safe_receiver == null)
|
|
37257
|
-
null;
|
|
37258
|
-
else {
|
|
37259
|
-
// Inline function 'kotlin.let' call
|
|
37260
|
-
store.dispatch(new InterceptorFinishedClientAction(tmp1_safe_receiver.sbv_1));
|
|
37261
|
-
}
|
|
37262
|
-
} else {
|
|
37263
|
-
if (transition instanceof PickUpBribeTransition) {
|
|
37264
|
-
var tmp0_1 = clientPayload.kbi_1;
|
|
37265
|
-
var tmp$ret$7;
|
|
37266
|
-
$l$block_1: {
|
|
37267
|
-
// Inline function 'kotlin.collections.firstOrNull' call
|
|
37268
|
-
var _iterator__ex2g4s_1 = tmp0_1.t();
|
|
37269
|
-
while (_iterator__ex2g4s_1.u()) {
|
|
37270
|
-
var element_1 = _iterator__ex2g4s_1.v();
|
|
37271
|
-
var tmp_0 = element_1.tbv_1;
|
|
37272
|
-
if (tmp_0 instanceof PickUpBribeMechanicAction) {
|
|
37273
|
-
tmp$ret$7 = element_1;
|
|
37274
|
-
break $l$block_1;
|
|
37275
|
-
}
|
|
37276
|
-
}
|
|
37277
|
-
tmp$ret$7 = null;
|
|
37278
|
-
}
|
|
37279
|
-
var tmp2_safe_receiver = tmp$ret$7;
|
|
37280
|
-
if (tmp2_safe_receiver == null)
|
|
37281
|
-
null;
|
|
37282
|
-
else {
|
|
37283
|
-
// Inline function 'kotlin.let' call
|
|
37284
|
-
store.dispatch(new InterceptorFinishedClientAction(tmp2_safe_receiver.sbv_1));
|
|
37285
|
-
}
|
|
37286
|
-
} else {
|
|
37287
|
-
if (transition instanceof ShowCombinationTransition) {
|
|
37288
|
-
var tmp0_2 = clientPayload.kbi_1;
|
|
37289
|
-
var tmp$ret$11;
|
|
37290
|
-
$l$block_2: {
|
|
37291
|
-
// Inline function 'kotlin.collections.firstOrNull' call
|
|
37292
|
-
var _iterator__ex2g4s_2 = tmp0_2.t();
|
|
37293
|
-
while (_iterator__ex2g4s_2.u()) {
|
|
37294
|
-
var element_2 = _iterator__ex2g4s_2.v();
|
|
37295
|
-
var tmp_1 = element_2.tbv_1;
|
|
37296
|
-
if (tmp_1 instanceof WinnerCombinationsMechanicAction) {
|
|
37297
|
-
tmp$ret$11 = element_2;
|
|
37298
|
-
break $l$block_2;
|
|
37299
|
-
}
|
|
37300
|
-
}
|
|
37301
|
-
tmp$ret$11 = null;
|
|
37302
|
-
}
|
|
37303
|
-
var tmp3_safe_receiver = tmp$ret$11;
|
|
37304
|
-
if (tmp3_safe_receiver == null)
|
|
37305
|
-
null;
|
|
37306
|
-
else {
|
|
37307
|
-
// Inline function 'kotlin.let' call
|
|
37308
|
-
store.dispatch(new InterceptorFinishedClientAction(tmp3_safe_receiver.sbv_1));
|
|
37309
|
-
}
|
|
37310
|
-
} else {
|
|
37311
|
-
if (transition instanceof TakeAllRemainingCardsTransition) {
|
|
37312
|
-
var tmp0_3 = clientPayload.kbi_1;
|
|
37313
|
-
var tmp$ret$15;
|
|
37314
|
-
$l$block_3: {
|
|
37315
|
-
// Inline function 'kotlin.collections.firstOrNull' call
|
|
37316
|
-
var _iterator__ex2g4s_3 = tmp0_3.t();
|
|
37317
|
-
while (_iterator__ex2g4s_3.u()) {
|
|
37318
|
-
var element_3 = _iterator__ex2g4s_3.v();
|
|
37319
|
-
var tmp_2 = element_3.tbv_1;
|
|
37320
|
-
if (tmp_2 instanceof TakeAllRemainingCardsMechanicAction) {
|
|
37321
|
-
tmp$ret$15 = element_3;
|
|
37322
|
-
break $l$block_3;
|
|
37323
|
-
}
|
|
37324
|
-
}
|
|
37325
|
-
tmp$ret$15 = null;
|
|
37326
|
-
}
|
|
37327
|
-
var tmp4_safe_receiver = tmp$ret$15;
|
|
37328
|
-
if (tmp4_safe_receiver == null)
|
|
37329
|
-
null;
|
|
37330
|
-
else {
|
|
37331
|
-
// Inline function 'kotlin.let' call
|
|
37332
|
-
store.dispatch(new InterceptorFinishedClientAction(tmp4_safe_receiver.sbv_1));
|
|
37333
|
-
}
|
|
37334
|
-
} else {
|
|
37335
|
-
noWhenBranchMatchedException();
|
|
37336
|
-
}
|
|
37337
|
-
}
|
|
37338
|
-
}
|
|
37339
|
-
}
|
|
37347
|
+
};
|
|
37348
|
+
protoOf(transitionFinishedMiddleware$$inlined$middlewareForActionType$1).s7i = function (store, next, action) {
|
|
37349
|
+
return this.i7k(store, next, action);
|
|
37350
|
+
};
|
|
37351
|
+
function transitionFailsafeTimeoutMiddleware$$inlined$middlewareForActionType$1($gameLogger) {
|
|
37352
|
+
this.yf1_1 = $gameLogger;
|
|
37353
|
+
}
|
|
37354
|
+
protoOf(transitionFailsafeTimeoutMiddleware$$inlined$middlewareForActionType$1).t7i = function (action) {
|
|
37355
|
+
return action instanceof TimerTickAction;
|
|
37356
|
+
};
|
|
37357
|
+
protoOf(transitionFailsafeTimeoutMiddleware$$inlined$middlewareForActionType$1).i7k = function (store, next, action) {
|
|
37358
|
+
var action_0 = action instanceof TimerTickAction ? action : THROW_CCE();
|
|
37359
|
+
var tag = action_0.p7i_1;
|
|
37360
|
+
if (tag instanceof TransitionFailsafeTimerTag) {
|
|
37361
|
+
var tmp0 = get_clientPayload(store.state).ubi_1;
|
|
37362
|
+
var tmp$ret$1;
|
|
37363
|
+
$l$block: {
|
|
37364
|
+
// Inline function 'kotlin.collections.firstOrNull' call
|
|
37365
|
+
var _iterator__ex2g4s = tmp0.t();
|
|
37366
|
+
while (_iterator__ex2g4s.u()) {
|
|
37367
|
+
var element = _iterator__ex2g4s.v();
|
|
37368
|
+
if (element.b6c() === tag.xf1_1) {
|
|
37369
|
+
tmp$ret$1 = element;
|
|
37370
|
+
break $l$block;
|
|
37340
37371
|
}
|
|
37341
37372
|
}
|
|
37373
|
+
tmp$ret$1 = null;
|
|
37374
|
+
}
|
|
37375
|
+
var transition = tmp$ret$1;
|
|
37376
|
+
if (!(transition == null)) {
|
|
37377
|
+
this.yf1_1.w('TransitionFailsafe: force-finishing stuck ' + ('' + getKClassFromExpression(transition).o() + '(' + transition.b6c() + ')'));
|
|
37378
|
+
store.dispatch(new TransitionsFinishedAction(listOf_0(transition.b6c())));
|
|
37342
37379
|
}
|
|
37343
37380
|
}
|
|
37344
37381
|
next(action_0);
|
|
37345
37382
|
};
|
|
37346
|
-
protoOf(
|
|
37383
|
+
protoOf(transitionFailsafeTimeoutMiddleware$$inlined$middlewareForActionType$1).s7i = function (store, next, action) {
|
|
37347
37384
|
return this.i7k(store, next, action);
|
|
37348
37385
|
};
|
|
37349
37386
|
function checkExpectantsMiddleware(logger) {
|
|
@@ -37351,7 +37388,7 @@
|
|
|
37351
37388
|
return new checkExpectantsMiddleware$$inlined$middlewareForActionType$1(logger);
|
|
37352
37389
|
}
|
|
37353
37390
|
function checkExpectantsMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
37354
|
-
this.
|
|
37391
|
+
this.zf1_1 = $logger;
|
|
37355
37392
|
}
|
|
37356
37393
|
protoOf(checkExpectantsMiddleware$$inlined$middlewareForActionType$1).t7i = function (action) {
|
|
37357
37394
|
return action instanceof InterceptorLifecycleAction;
|
|
@@ -37385,7 +37422,7 @@
|
|
|
37385
37422
|
tmp$ret$0 = true;
|
|
37386
37423
|
}
|
|
37387
37424
|
if (tmp$ret$0) {
|
|
37388
|
-
this.
|
|
37425
|
+
this.zf1_1.w(VOID, "CheckExpectantsMiddleware: Expectant is not exists, can't finish it: " + toString(expectants) + ', ' + tmp4.toString());
|
|
37389
37426
|
next(tmp4);
|
|
37390
37427
|
break $l$block_7;
|
|
37391
37428
|
}
|
|
@@ -37415,7 +37452,7 @@
|
|
|
37415
37452
|
tmp$ret$3 = false;
|
|
37416
37453
|
}
|
|
37417
37454
|
if (tmp$ret$3) {
|
|
37418
|
-
this.
|
|
37455
|
+
this.zf1_1.w(VOID, "CheckExpectantsMiddleware: Expectant already exists, can't add it: " + toString(expectants) + ', ' + tmp4.toString());
|
|
37419
37456
|
next(tmp4);
|
|
37420
37457
|
break $l$block_7;
|
|
37421
37458
|
}
|
|
@@ -37445,7 +37482,7 @@
|
|
|
37445
37482
|
tmp$ret$5 = true;
|
|
37446
37483
|
}
|
|
37447
37484
|
if (tmp$ret$5) {
|
|
37448
|
-
this.
|
|
37485
|
+
this.zf1_1.w(VOID, "CheckExpectantsMiddleware: Expectant is not exists, can't complete stage: " + toString(expectants) + ', ' + tmp4.toString());
|
|
37449
37486
|
next(tmp4);
|
|
37450
37487
|
break $l$block_7;
|
|
37451
37488
|
}
|
|
@@ -37465,8 +37502,8 @@
|
|
|
37465
37502
|
return new checkValidCurrentPlayerIdMiddleware$$inlined$middlewareForActionType$1(currentPlayerId, gameLogger);
|
|
37466
37503
|
}
|
|
37467
37504
|
function checkValidCurrentPlayerIdMiddleware$$inlined$middlewareForActionType$1($currentPlayerId, $gameLogger) {
|
|
37468
|
-
this.
|
|
37469
|
-
this.
|
|
37505
|
+
this.af2_1 = $currentPlayerId;
|
|
37506
|
+
this.bf2_1 = $gameLogger;
|
|
37470
37507
|
}
|
|
37471
37508
|
protoOf(checkValidCurrentPlayerIdMiddleware$$inlined$middlewareForActionType$1).t7i = function (action) {
|
|
37472
37509
|
return isInterface(action, FirstMechanicAction);
|
|
@@ -37481,19 +37518,19 @@
|
|
|
37481
37518
|
var _iterator__ex2g4s = tmp0.t();
|
|
37482
37519
|
while (_iterator__ex2g4s.u()) {
|
|
37483
37520
|
var element = _iterator__ex2g4s.v();
|
|
37484
|
-
if (element.r77_1 === this.
|
|
37521
|
+
if (element.r77_1 === this.af2_1) {
|
|
37485
37522
|
destination.e1(element);
|
|
37486
37523
|
}
|
|
37487
37524
|
}
|
|
37488
37525
|
if (!(destination.g1() === 1)) {
|
|
37489
37526
|
var state = store.state;
|
|
37490
|
-
this.
|
|
37527
|
+
this.bf2_1.w(VOID, 'checkValidCurrentPlayerIdMiddleware: currentPlayer id is not matched');
|
|
37491
37528
|
var tmp0_safe_receiver = get_clientPayloadOrNull(state);
|
|
37492
37529
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.hbi_1;
|
|
37493
37530
|
if (!((tmp1_safe_receiver == null ? null : tmp1_safe_receiver.kbu()) === false)) {
|
|
37494
|
-
store.dispatch(new ErrorAction(new ErrorState('Not valid user session, id:' + this.
|
|
37531
|
+
store.dispatch(new ErrorAction(new ErrorState('Not valid user session, id:' + this.af2_1, VOID, new GameErrorReason(Reason_INTERNAL_ERROR_getInstance()))));
|
|
37495
37532
|
} else {
|
|
37496
|
-
throw new SessionException(401, 'Not valid user session, id:' + this.
|
|
37533
|
+
throw new SessionException(401, 'Not valid user session, id:' + this.af2_1);
|
|
37497
37534
|
}
|
|
37498
37535
|
}
|
|
37499
37536
|
};
|
|
@@ -37505,9 +37542,9 @@
|
|
|
37505
37542
|
return new clientShowDisabledCardMessageMiddleware$$inlined$middlewareForActionType$1(putCardValidatorInteractor, messageFactory, logger);
|
|
37506
37543
|
}
|
|
37507
37544
|
function clientShowDisabledCardMessageMiddleware$$inlined$middlewareForActionType$1($putCardValidatorInteractor, $messageFactory, $logger) {
|
|
37508
|
-
this.
|
|
37509
|
-
this.
|
|
37510
|
-
this.
|
|
37545
|
+
this.cf2_1 = $putCardValidatorInteractor;
|
|
37546
|
+
this.df2_1 = $messageFactory;
|
|
37547
|
+
this.ef2_1 = $logger;
|
|
37511
37548
|
}
|
|
37512
37549
|
protoOf(clientShowDisabledCardMessageMiddleware$$inlined$middlewareForActionType$1).t7i = function (action) {
|
|
37513
37550
|
return action instanceof DisabledCardAction;
|
|
@@ -37519,11 +37556,11 @@
|
|
|
37519
37556
|
var tmp0_putPlayerCard = action_0.peu_1;
|
|
37520
37557
|
var tmp1_player = get_currentPlayer(state.s7v());
|
|
37521
37558
|
var tmp2_table = state.s7v();
|
|
37522
|
-
var validationCode = this.
|
|
37559
|
+
var validationCode = this.cf2_1.tcd(tmp0_putPlayerCard, tmp2_table, tmp1_player);
|
|
37523
37560
|
if (!(validationCode == null)) {
|
|
37524
|
-
store.dispatch(new InfoMessageAction(this.
|
|
37561
|
+
store.dispatch(new InfoMessageAction(this.df2_1.za8(validationCode)));
|
|
37525
37562
|
} else {
|
|
37526
|
-
this.
|
|
37563
|
+
this.ef2_1.w(VOID, 'clientShowDisabledCardMessageMiddleware: card is valid, please check');
|
|
37527
37564
|
}
|
|
37528
37565
|
}
|
|
37529
37566
|
next(action_0);
|
|
@@ -37536,9 +37573,9 @@
|
|
|
37536
37573
|
return new validateCardOnMoveMiddleware$$inlined$middlewareForActionType$1(putCardValidatorInteractor, logger, messageFactory);
|
|
37537
37574
|
}
|
|
37538
37575
|
function validateCardOnMoveMiddleware$$inlined$middlewareForActionType$1($putCardValidatorInteractor, $logger, $messageFactory) {
|
|
37539
|
-
this.
|
|
37540
|
-
this.
|
|
37541
|
-
this.
|
|
37576
|
+
this.ff2_1 = $putCardValidatorInteractor;
|
|
37577
|
+
this.gf2_1 = $logger;
|
|
37578
|
+
this.hf2_1 = $messageFactory;
|
|
37542
37579
|
}
|
|
37543
37580
|
protoOf(validateCardOnMoveMiddleware$$inlined$middlewareForActionType$1).t7i = function (action) {
|
|
37544
37581
|
return action instanceof PutCardAndCheckCombinationsAction;
|
|
@@ -37550,17 +37587,17 @@
|
|
|
37550
37587
|
var player = get_currentPlayer(state.s7v());
|
|
37551
37588
|
var tmp0_putPlayerCard = action_0.qeu_1.o7b_1;
|
|
37552
37589
|
var tmp1_table = state.s7v();
|
|
37553
|
-
var validationCode = this.
|
|
37590
|
+
var validationCode = this.ff2_1.tcd(tmp0_putPlayerCard, tmp1_table, player);
|
|
37554
37591
|
if (!(validationCode == null)) {
|
|
37555
37592
|
cardNotValidCount = cardNotValidCount + 1 | 0;
|
|
37556
37593
|
} else {
|
|
37557
37594
|
cardNotValidCount = 0;
|
|
37558
37595
|
}
|
|
37559
37596
|
if (cardNotValidCount > 3) {
|
|
37560
|
-
this.
|
|
37597
|
+
this.gf2_1.w(VOID, 'validateCardMiddleware: card is not valid for the third time, please check');
|
|
37561
37598
|
}
|
|
37562
37599
|
if (!(validationCode == null)) {
|
|
37563
|
-
store.dispatch(new InfoMessageAction(this.
|
|
37600
|
+
store.dispatch(new InfoMessageAction(this.hf2_1.za8(validationCode)));
|
|
37564
37601
|
} else {
|
|
37565
37602
|
next(action_0);
|
|
37566
37603
|
}
|
|
@@ -37572,7 +37609,7 @@
|
|
|
37572
37609
|
}
|
|
37573
37610
|
function ClientCombinationsReducerImpl() {
|
|
37574
37611
|
}
|
|
37575
|
-
protoOf(ClientCombinationsReducerImpl).
|
|
37612
|
+
protoOf(ClientCombinationsReducerImpl).if2 = function (currentPlayerId, actData) {
|
|
37576
37613
|
if (!(actData == null) && currentPlayerId === actData.y8l()) {
|
|
37577
37614
|
return new CombinationToAnnounceState(actData.r8l_1, null, null);
|
|
37578
37615
|
}
|
|
@@ -37583,7 +37620,7 @@
|
|
|
37583
37620
|
return new clientCombinationToAnnounceStateOnPlayerTurnReducer$$inlined$reducerForActionType$1(clientCombinationsReducer);
|
|
37584
37621
|
}
|
|
37585
37622
|
function clientCombinationToAnnounceStateOnPlayerTurnReducer$$inlined$reducerForActionType$1($clientCombinationsReducer) {
|
|
37586
|
-
this.
|
|
37623
|
+
this.jf2_1 = $clientCombinationsReducer;
|
|
37587
37624
|
}
|
|
37588
37625
|
protoOf(clientCombinationToAnnounceStateOnPlayerTurnReducer$$inlined$reducerForActionType$1).t7i = function (action) {
|
|
37589
37626
|
return isInterface(action, NavigationMechanicAction);
|
|
@@ -37607,7 +37644,7 @@
|
|
|
37607
37644
|
}
|
|
37608
37645
|
throw new MechanicException('Required ' + getKClass(CombinationActData).o() + ', current act is ' + toString_0(tmp0));
|
|
37609
37646
|
}
|
|
37610
|
-
tmp$ret$1 = state.iak(VOID, tmp.
|
|
37647
|
+
tmp$ret$1 = state.iak(VOID, tmp.ley(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.jf2_1.if2(tmp_0, tmp$ret$0)));
|
|
37611
37648
|
break $l$block_0;
|
|
37612
37649
|
}
|
|
37613
37650
|
tmp$ret$1 = state;
|
|
@@ -37618,20 +37655,20 @@
|
|
|
37618
37655
|
return this.ib0((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
37619
37656
|
};
|
|
37620
37657
|
function ClientLifecycleReducer(logger) {
|
|
37621
|
-
this.
|
|
37658
|
+
this.kf2_1 = logger;
|
|
37622
37659
|
}
|
|
37623
|
-
protoOf(ClientLifecycleReducer).
|
|
37660
|
+
protoOf(ClientLifecycleReducer).lf2 = function (state, messagesReducer) {
|
|
37624
37661
|
var tmp1_config = state.hbi_1;
|
|
37625
37662
|
var tmp2_uiState = state.mbi_1;
|
|
37626
37663
|
var tmp3_isSceneActive = state.nbi_1;
|
|
37627
37664
|
var tmp4_bufferedActions = state.lbi_1;
|
|
37628
37665
|
var tmp5_error = state.vbi_1;
|
|
37629
37666
|
var tmp6_messages = messagesReducer(state.ibi_1);
|
|
37630
|
-
return Companion_instance_92.
|
|
37667
|
+
return Companion_instance_92.mf2(tmp1_config, tmp2_uiState, tmp3_isSceneActive, tmp6_messages, tmp4_bufferedActions, tmp5_error);
|
|
37631
37668
|
};
|
|
37632
|
-
protoOf(ClientLifecycleReducer).
|
|
37669
|
+
protoOf(ClientLifecycleReducer).nf2 = function (state) {
|
|
37633
37670
|
if (state.hbi_1.jbu()) {
|
|
37634
|
-
return Companion_instance_92.
|
|
37671
|
+
return Companion_instance_92.pf2(state.hbi_1, state.mbi_1, state.nbi_1);
|
|
37635
37672
|
} else {
|
|
37636
37673
|
var tmp1_config = state.hbi_1;
|
|
37637
37674
|
var tmp2_uiState = state.mbi_1;
|
|
@@ -37642,11 +37679,10 @@
|
|
|
37642
37679
|
var tmp7_combinationsToAnnounce = state.qbi_1;
|
|
37643
37680
|
var tmp8_messages = state.ibi_1;
|
|
37644
37681
|
var tmp9_processingCard = state.tbi_1;
|
|
37645
|
-
|
|
37646
|
-
return Companion_instance_92.jf2(tmp1_config, tmp2_uiState, tmp3_isSceneActive, tmp8_messages, tmp6_bufferedActions, tmp5_interceptedActions, tmp7_combinationsToAnnounce, tmp9_processingCard, tmp4_error, tmp10_transitions);
|
|
37682
|
+
return Companion_instance_92.of2(tmp1_config, tmp2_uiState, tmp3_isSceneActive, tmp8_messages, tmp6_bufferedActions, tmp5_interceptedActions, tmp7_combinationsToAnnounce, tmp9_processingCard, tmp4_error);
|
|
37647
37683
|
}
|
|
37648
37684
|
};
|
|
37649
|
-
protoOf(ClientLifecycleReducer).
|
|
37685
|
+
protoOf(ClientLifecycleReducer).qf2 = function (messages) {
|
|
37650
37686
|
// Inline function 'kotlin.collections.filter' call
|
|
37651
37687
|
// Inline function 'kotlin.collections.filterTo' call
|
|
37652
37688
|
var destination = ArrayList_init_$Create$_0();
|
|
@@ -37657,9 +37693,9 @@
|
|
|
37657
37693
|
destination.e1(element);
|
|
37658
37694
|
}
|
|
37659
37695
|
}
|
|
37660
|
-
return updateMessagesAsNotShown(destination, this.
|
|
37696
|
+
return updateMessagesAsNotShown(destination, this.kf2_1);
|
|
37661
37697
|
};
|
|
37662
|
-
protoOf(ClientLifecycleReducer).
|
|
37698
|
+
protoOf(ClientLifecycleReducer).rf2 = function (messages) {
|
|
37663
37699
|
// Inline function 'kotlin.collections.filter' call
|
|
37664
37700
|
// Inline function 'kotlin.collections.filterTo' call
|
|
37665
37701
|
var destination = ArrayList_init_$Create$_0();
|
|
@@ -37670,7 +37706,7 @@
|
|
|
37670
37706
|
destination.e1(element);
|
|
37671
37707
|
}
|
|
37672
37708
|
}
|
|
37673
|
-
return updateMessagesAsNotShown(destination, this.
|
|
37709
|
+
return updateMessagesAsNotShown(destination, this.kf2_1);
|
|
37674
37710
|
};
|
|
37675
37711
|
function updateMessagesAsNotShown(_this__u8e3s4, gameLogger) {
|
|
37676
37712
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -37732,7 +37768,7 @@
|
|
|
37732
37768
|
return destination;
|
|
37733
37769
|
}
|
|
37734
37770
|
function Companion_80() {
|
|
37735
|
-
this.
|
|
37771
|
+
this.sf2_1 = 'ClientMechanicLifecycleReducer';
|
|
37736
37772
|
}
|
|
37737
37773
|
var Companion_instance_91;
|
|
37738
37774
|
function Companion_getInstance_90() {
|
|
@@ -37741,7 +37777,7 @@
|
|
|
37741
37777
|
function ClientMechanicLifecycleReducer$onStart$lambda(this$0) {
|
|
37742
37778
|
return function (it) {
|
|
37743
37779
|
var tmp;
|
|
37744
|
-
if (this$0.
|
|
37780
|
+
if (this$0.vf2_1.jbu()) {
|
|
37745
37781
|
tmp = Companion_instance_2.c7a(Companion_instance_3.v78(PlayerConnectionState_LIVE_getInstance()));
|
|
37746
37782
|
} else {
|
|
37747
37783
|
tmp = Companion_instance_2.c7a(null);
|
|
@@ -37751,27 +37787,27 @@
|
|
|
37751
37787
|
}
|
|
37752
37788
|
function ClientLifecycleReducer$gameFinishedMessagesReducer$ref(p0) {
|
|
37753
37789
|
var l = function (_this__u8e3s4) {
|
|
37754
|
-
return p0.
|
|
37790
|
+
return p0.qf2(_this__u8e3s4);
|
|
37755
37791
|
};
|
|
37756
37792
|
l.callableName = 'gameFinishedMessagesReducer';
|
|
37757
37793
|
return l;
|
|
37758
37794
|
}
|
|
37759
37795
|
function ClientLifecycleReducer$roundFinishedMessagesReducer$ref(p0) {
|
|
37760
37796
|
var l = function (_this__u8e3s4) {
|
|
37761
|
-
return p0.
|
|
37797
|
+
return p0.rf2(_this__u8e3s4);
|
|
37762
37798
|
};
|
|
37763
37799
|
l.callableName = 'roundFinishedMessagesReducer';
|
|
37764
37800
|
return l;
|
|
37765
37801
|
}
|
|
37766
37802
|
function ClientMechanicLifecycleReducer(clintConfig, logger, tableLifecycleReducer, randomPoolProvider, clientLifecycleReducer, clientCombinationsReducer) {
|
|
37767
37803
|
BaseMechanicLifecycleReducer.call(this, tableLifecycleReducer, randomPoolProvider);
|
|
37768
|
-
this.
|
|
37769
|
-
this.
|
|
37770
|
-
this.
|
|
37771
|
-
this.
|
|
37804
|
+
this.vf2_1 = clintConfig;
|
|
37805
|
+
this.wf2_1 = logger;
|
|
37806
|
+
this.xf2_1 = clientLifecycleReducer;
|
|
37807
|
+
this.yf2_1 = clientCombinationsReducer;
|
|
37772
37808
|
}
|
|
37773
37809
|
protoOf(ClientMechanicLifecycleReducer).zb1 = function (state, action) {
|
|
37774
|
-
this.
|
|
37810
|
+
this.wf2_1.d('ClientMechanicLifecycleReducer', 'onStart ' + get_versionOrDefault(GameEngineConfig_instance), action);
|
|
37775
37811
|
var clientState = get_clientPayloadOrNull_0(state.payload);
|
|
37776
37812
|
var tmp0_$this = this.ab2_1;
|
|
37777
37813
|
var tmp1_tableId = action.l9d_1;
|
|
@@ -37784,8 +37820,8 @@
|
|
|
37784
37820
|
var newTable = tmp0_$this.ib3(tmp1_tableId, tmp2_gameId, tmp4_config, tmp3_version, tmp5_users, tmp6_spectators, tmp7_gameCreatorPlayerId, ClientMechanicLifecycleReducer$onStart$lambda(this));
|
|
37785
37821
|
var tmp;
|
|
37786
37822
|
if (clientState == null) {
|
|
37787
|
-
this.
|
|
37788
|
-
tmp = Companion_instance_92.
|
|
37823
|
+
this.wf2_1.w(VOID, 'ClientPayload is not onStart, should be init via InitClientStateAction');
|
|
37824
|
+
tmp = Companion_instance_92.zf2(this.vf2_1);
|
|
37789
37825
|
} else {
|
|
37790
37826
|
tmp = clientState;
|
|
37791
37827
|
}
|
|
@@ -37797,20 +37833,20 @@
|
|
|
37797
37833
|
this.bb2_1.q6g(action.previousGameId);
|
|
37798
37834
|
var newTable = this.ab2_1.jb3(state.s7v(), action.gameId);
|
|
37799
37835
|
var tmp = get_clientPayload(state);
|
|
37800
|
-
var newPayload = this.
|
|
37836
|
+
var newPayload = this.xf2_1.lf2(tmp, ClientLifecycleReducer$gameFinishedMessagesReducer$ref(this.xf2_1));
|
|
37801
37837
|
var tmp0_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
37802
37838
|
return state.iak(newTable, newPayload, tmp0_gameLifecycleState);
|
|
37803
37839
|
};
|
|
37804
37840
|
protoOf(ClientMechanicLifecycleReducer).xb1 = function (state, action) {
|
|
37805
|
-
this.
|
|
37841
|
+
this.wf2_1.d('ClientMechanicLifecycleReducer', 'onContinue ' + get_versionOrDefault(GameEngineConfig_instance), action);
|
|
37806
37842
|
var externalClientState = get_clientPayloadOrNull_0(action.payload);
|
|
37807
37843
|
var currentClientState = get_clientPayloadOrNull_0(state.payload);
|
|
37808
37844
|
var clientState = externalClientState == null ? currentClientState : externalClientState;
|
|
37809
37845
|
var tmp;
|
|
37810
37846
|
if (clientState == null) {
|
|
37811
|
-
tmp = Companion_instance_92.
|
|
37847
|
+
tmp = Companion_instance_92.zf2(this.vf2_1);
|
|
37812
37848
|
} else {
|
|
37813
|
-
tmp = this.
|
|
37849
|
+
tmp = this.xf2_1.nf2(clientState);
|
|
37814
37850
|
}
|
|
37815
37851
|
var resetPayload = tmp;
|
|
37816
37852
|
var tmp_0 = get_currentPlayer(action.table).playerId;
|
|
@@ -37830,10 +37866,10 @@
|
|
|
37830
37866
|
}
|
|
37831
37867
|
tmp_1 = tmp$ret$0;
|
|
37832
37868
|
}
|
|
37833
|
-
var tmp2_elvis_lhs = this.
|
|
37869
|
+
var tmp2_elvis_lhs = this.yf2_1.if2(tmp_0, tmp_1);
|
|
37834
37870
|
var tmp3_combinationsToAnnounce = tmp2_elvis_lhs == null ? resetPayload.qbi_1 : tmp2_elvis_lhs;
|
|
37835
|
-
var tmp4_uiState = resetPayload.mbi_1.
|
|
37836
|
-
var newPayload = resetPayload.
|
|
37871
|
+
var tmp4_uiState = resetPayload.mbi_1.af3(false);
|
|
37872
|
+
var newPayload = resetPayload.ley(VOID, VOID, VOID, VOID, VOID, tmp4_uiState, VOID, VOID, VOID, tmp3_combinationsToAnnounce);
|
|
37837
37873
|
var tmp5_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
37838
37874
|
var tmp6_tableOrNull = action.table;
|
|
37839
37875
|
return state.iak(tmp6_tableOrNull, newPayload, tmp5_gameLifecycleState, null);
|
|
@@ -37847,7 +37883,7 @@
|
|
|
37847
37883
|
// Inline function 'kotlin.apply' call
|
|
37848
37884
|
this.bb2_1.q6g(tmp1_safe_receiver);
|
|
37849
37885
|
}
|
|
37850
|
-
var newPayload = this.
|
|
37886
|
+
var newPayload = this.xf2_1.nf2(get_clientPayload(state));
|
|
37851
37887
|
var tmp2_gameLifecycleState = GameLifecycleState_FINISHING_getInstance();
|
|
37852
37888
|
var tmp3_terminationState = new TerminationState(action.s9d_1, action.u9d_1);
|
|
37853
37889
|
return state.iak(VOID, newPayload, tmp2_gameLifecycleState, tmp3_terminationState);
|
|
@@ -37860,7 +37896,7 @@
|
|
|
37860
37896
|
};
|
|
37861
37897
|
protoOf(ClientMechanicLifecycleReducer).ub1 = function (state, action) {
|
|
37862
37898
|
var tmp = get_clientPayload(state);
|
|
37863
|
-
var newPayload = this.
|
|
37899
|
+
var newPayload = this.xf2_1.lf2(tmp, ClientLifecycleReducer$roundFinishedMessagesReducer$ref(this.xf2_1));
|
|
37864
37900
|
var newTable = this.ab2_1.cb2(state.s7v());
|
|
37865
37901
|
return state.iak(newTable, newPayload);
|
|
37866
37902
|
};
|
|
@@ -37879,7 +37915,7 @@
|
|
|
37879
37915
|
tmp = null;
|
|
37880
37916
|
} else {
|
|
37881
37917
|
// Inline function 'kotlin.let' call
|
|
37882
|
-
tmp = this.
|
|
37918
|
+
tmp = this.xf2_1.nf2(tmp2_safe_receiver).ley(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, action.r9f_1);
|
|
37883
37919
|
}
|
|
37884
37920
|
var newPayload = tmp;
|
|
37885
37921
|
var tmp3_safe_receiver = state.s7u_1;
|
|
@@ -37898,7 +37934,7 @@
|
|
|
37898
37934
|
};
|
|
37899
37935
|
protoOf(clientResetProcessingCardReducer$$inlined$reducerForActionType$1).ib0 = function (state, action) {
|
|
37900
37936
|
action instanceof PutCardMechanicAction || THROW_CCE();
|
|
37901
|
-
return state.iak(VOID, get_clientPayload(state).
|
|
37937
|
+
return state.iak(VOID, get_clientPayload(state).ley(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, null));
|
|
37902
37938
|
};
|
|
37903
37939
|
protoOf(clientResetProcessingCardReducer$$inlined$reducerForActionType$1).j7k = function (state, action) {
|
|
37904
37940
|
return this.ib0((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
@@ -37909,14 +37945,14 @@
|
|
|
37909
37945
|
}
|
|
37910
37946
|
function ClientLifecycleReducer$roundFinishedMessagesReducer$ref_0(p0) {
|
|
37911
37947
|
var l = function (_this__u8e3s4) {
|
|
37912
|
-
return p0.
|
|
37948
|
+
return p0.rf2(_this__u8e3s4);
|
|
37913
37949
|
};
|
|
37914
37950
|
l.callableName = 'roundFinishedMessagesReducer';
|
|
37915
37951
|
return l;
|
|
37916
37952
|
}
|
|
37917
37953
|
function clientSceneReducer$$inlined$reducerForActionType$1($logger, $clientLifecycleReducer) {
|
|
37918
|
-
this.
|
|
37919
|
-
this.
|
|
37954
|
+
this.bf3_1 = $logger;
|
|
37955
|
+
this.cf3_1 = $clientLifecycleReducer;
|
|
37920
37956
|
}
|
|
37921
37957
|
protoOf(clientSceneReducer$$inlined$reducerForActionType$1).t7i = function (action) {
|
|
37922
37958
|
return action instanceof SceneMechanicAction;
|
|
@@ -37931,11 +37967,11 @@
|
|
|
37931
37967
|
case 'CHOOSE_PARTNER':
|
|
37932
37968
|
case 'TRADE':
|
|
37933
37969
|
case 'EARN_POINTS':
|
|
37934
|
-
tmp = state.iak(VOID, get_clientPayload(state).
|
|
37970
|
+
tmp = state.iak(VOID, get_clientPayload(state).ley(VOID, updateMessagesAsNotShown(get_clientPayload(state).ibi_1, this.bf3_1)));
|
|
37935
37971
|
break;
|
|
37936
37972
|
case 'CALC_POINTS':
|
|
37937
37973
|
var tmp_0 = get_clientPayload(state);
|
|
37938
|
-
tmp = state.iak(VOID, this.
|
|
37974
|
+
tmp = state.iak(VOID, this.cf3_1.lf2(tmp_0, ClientLifecycleReducer$roundFinishedMessagesReducer$ref_0(this.cf3_1)));
|
|
37939
37975
|
break;
|
|
37940
37976
|
default:
|
|
37941
37977
|
throw new MechanicException("clientSceneReducer: Can't support this scene " + action_0.toString());
|
|
@@ -37950,7 +37986,7 @@
|
|
|
37950
37986
|
return new clientUIReducer$$inlined$reducerForActionType$1(currentPlayerId);
|
|
37951
37987
|
}
|
|
37952
37988
|
function clientUIReducer$$inlined$reducerForActionType$1($currentPlayerId) {
|
|
37953
|
-
this.
|
|
37989
|
+
this.df3_1 = $currentPlayerId;
|
|
37954
37990
|
}
|
|
37955
37991
|
protoOf(clientUIReducer$$inlined$reducerForActionType$1).t7i = function (action) {
|
|
37956
37992
|
return action instanceof ClientAction;
|
|
@@ -37961,19 +37997,19 @@
|
|
|
37961
37997
|
$l$block: {
|
|
37962
37998
|
var tmp;
|
|
37963
37999
|
if (tmp2 instanceof SwitchChatAction) {
|
|
37964
|
-
tmp = state.iak(VOID, get_clientPayload(state).
|
|
38000
|
+
tmp = state.iak(VOID, get_clientPayload(state).ley(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp2.dev_1));
|
|
37965
38001
|
} else {
|
|
37966
38002
|
if (tmp2 instanceof SwitchSettingAction) {
|
|
37967
|
-
tmp = state.iak(VOID, get_clientPayload(state).
|
|
38003
|
+
tmp = state.iak(VOID, get_clientPayload(state).ley(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp2.cev_1));
|
|
37968
38004
|
} else {
|
|
37969
38005
|
if (tmp2 instanceof SceneTutorialAction) {
|
|
37970
|
-
tmp = state.iak(VOID, get_clientPayload(state).
|
|
38006
|
+
tmp = state.iak(VOID, get_clientPayload(state).ley(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp2.ef3_1));
|
|
37971
38007
|
} else {
|
|
37972
38008
|
if (tmp2 instanceof SceneActivationAction) {
|
|
37973
|
-
tmp = state.iak(VOID, get_clientPayload(state).
|
|
38009
|
+
tmp = state.iak(VOID, get_clientPayload(state).ley(VOID, VOID, VOID, VOID, VOID, VOID, tmp2.lcd_1));
|
|
37974
38010
|
} else {
|
|
37975
38011
|
if (tmp2 instanceof CombinationToAnnounceAction) {
|
|
37976
|
-
tmp = state.iak(VOID, get_clientPayload(state).
|
|
38012
|
+
tmp = state.iak(VOID, get_clientPayload(state).ley(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, new CombinationToAnnounceState(tmp2.veu_1, tmp2.weu_1, tmp2.xeu_1)));
|
|
37977
38013
|
} else {
|
|
37978
38014
|
if (tmp2 instanceof SwitchLastBribeAction) {
|
|
37979
38015
|
var tmp_0 = get_clientPayload(state);
|
|
@@ -37984,7 +38020,7 @@
|
|
|
37984
38020
|
} else {
|
|
37985
38021
|
tmp_1 = null;
|
|
37986
38022
|
}
|
|
37987
|
-
tmp = state.iak(VOID, tmp_0.
|
|
38023
|
+
tmp = state.iak(VOID, tmp_0.ley(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp_1));
|
|
37988
38024
|
} else {
|
|
37989
38025
|
if (tmp2 instanceof SwitchGameInfoAction) {
|
|
37990
38026
|
var tmp_2 = get_clientPayload(state);
|
|
@@ -38000,19 +38036,19 @@
|
|
|
38000
38036
|
} else {
|
|
38001
38037
|
tmp_3 = null;
|
|
38002
38038
|
}
|
|
38003
|
-
tmp = state.iak(VOID, tmp_2.
|
|
38039
|
+
tmp = state.iak(VOID, tmp_2.ley(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp_3));
|
|
38004
38040
|
} else {
|
|
38005
38041
|
if (tmp2 instanceof AnnouncedCombinationAction) {
|
|
38006
|
-
tmp = state.iak(VOID, get_clientPayload(state).
|
|
38042
|
+
tmp = state.iak(VOID, get_clientPayload(state).ley(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, null));
|
|
38007
38043
|
} else {
|
|
38008
38044
|
if (tmp2 instanceof UIFocusedAction) {
|
|
38009
|
-
tmp = state.iak(VOID, get_clientPayload(state).
|
|
38045
|
+
tmp = state.iak(VOID, get_clientPayload(state).ley(VOID, VOID, VOID, VOID, VOID, get_clientPayload(state).mbi_1.af3(VOID, tmp2.yeu_1)));
|
|
38010
38046
|
} else {
|
|
38011
38047
|
if (tmp2 instanceof UICreatedAction) {
|
|
38012
|
-
tmp = state.iak(VOID, get_clientPayload(state).
|
|
38048
|
+
tmp = state.iak(VOID, get_clientPayload(state).ley(VOID, VOID, VOID, VOID, VOID, get_clientPayload(state).mbi_1.af3(tmp2.eev_1)));
|
|
38013
38049
|
} else {
|
|
38014
38050
|
if (tmp2 instanceof InitClientStateAction) {
|
|
38015
|
-
tmp = state.iak(VOID, Companion_instance_92.
|
|
38051
|
+
tmp = state.iak(VOID, Companion_instance_92.zf2(tmp2.zeu_1));
|
|
38016
38052
|
} else {
|
|
38017
38053
|
if (tmp2 instanceof UpdateConfigAction) {
|
|
38018
38054
|
var tmp6_safe_receiver = tmp2.jev_1;
|
|
@@ -38047,7 +38083,7 @@
|
|
|
38047
38083
|
var tmp_7 = tmp_5.copy(VOID, VOID, VOID, tmp_6, updatedPlayers == null ? state.s7v().players : updatedPlayers);
|
|
38048
38084
|
var tmp_8 = get_clientPayload(state);
|
|
38049
38085
|
var tmp15_elvis_lhs = tmp2.fev_1;
|
|
38050
|
-
tmp = state.iak(tmp_7, tmp_8.
|
|
38086
|
+
tmp = state.iak(tmp_7, tmp_8.ley(tmp15_elvis_lhs == null ? get_clientPayload(state).hbi_1 : tmp15_elvis_lhs));
|
|
38051
38087
|
} else {
|
|
38052
38088
|
if (tmp2 instanceof ClientMessageAction) {
|
|
38053
38089
|
var messages = get_clientPayload(state).ibi_1;
|
|
@@ -38056,20 +38092,20 @@
|
|
|
38056
38092
|
tmp$ret$5 = state;
|
|
38057
38093
|
break $l$block;
|
|
38058
38094
|
}
|
|
38059
|
-
tmp = state.iak(VOID, get_clientPayload(state).
|
|
38095
|
+
tmp = state.iak(VOID, get_clientPayload(state).ley(VOID, plus_0(messages, tmp2.kev_1)));
|
|
38060
38096
|
} else {
|
|
38061
38097
|
if (tmp2 instanceof PutCardAndCheckCombinationsAction) {
|
|
38062
|
-
tmp = state.iak(VOID, get_clientPayload(state).
|
|
38098
|
+
tmp = state.iak(VOID, get_clientPayload(state).ley(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp2.qeu_1));
|
|
38063
38099
|
} else {
|
|
38064
38100
|
if (tmp2 instanceof InfoMessageAction) {
|
|
38065
|
-
tmp = state.iak(VOID, get_clientPayload(state).
|
|
38101
|
+
tmp = state.iak(VOID, get_clientPayload(state).ley(VOID, VOID, tmp2.ueu_1));
|
|
38066
38102
|
} else {
|
|
38067
38103
|
if (tmp2 instanceof UpdateMessagesCountAction) {
|
|
38068
|
-
tmp = state.iak(updateMessagesCountReducer(state.s7v(), this.
|
|
38104
|
+
tmp = state.iak(updateMessagesCountReducer(state.s7v(), this.df3_1));
|
|
38069
38105
|
} else {
|
|
38070
38106
|
if (tmp2 instanceof ResetErrorAction) {
|
|
38071
38107
|
var tmp17_safe_receiver = get_clientPayloadOrNull(state);
|
|
38072
|
-
tmp = state.iak(VOID, tmp17_safe_receiver == null ? null : tmp17_safe_receiver.
|
|
38108
|
+
tmp = state.iak(VOID, tmp17_safe_receiver == null ? null : tmp17_safe_receiver.ley(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, null), GameLifecycleState_CREATING_getInstance(), null);
|
|
38073
38109
|
} else {
|
|
38074
38110
|
if (tmp2 instanceof TransitionsFinishedAction) {
|
|
38075
38111
|
var tmp_9 = get_clientPayload(state);
|
|
@@ -38084,7 +38120,7 @@
|
|
|
38084
38120
|
destination_0.e1(element);
|
|
38085
38121
|
}
|
|
38086
38122
|
}
|
|
38087
|
-
tmp = state.iak(VOID, tmp_9.
|
|
38123
|
+
tmp = state.iak(VOID, tmp_9.ley(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, destination_0));
|
|
38088
38124
|
} else {
|
|
38089
38125
|
if (tmp2 instanceof TutorialPassedAction) {
|
|
38090
38126
|
tmp = state;
|
|
@@ -38162,13 +38198,13 @@
|
|
|
38162
38198
|
protoOf(addChatMessageReducer$$inlined$reducerForActionType$1).ib0 = function (state, action) {
|
|
38163
38199
|
var action_0 = action instanceof MessageMechanicAction ? action : THROW_CCE();
|
|
38164
38200
|
var clientState = get_clientPayload(state);
|
|
38165
|
-
return state.iak(addTableChatMessagesReducer(state.s7v(), action_0), clientState.
|
|
38201
|
+
return state.iak(addTableChatMessagesReducer(state.s7v(), action_0), clientState.ley(VOID, takeLast(plus_0(clientState.ibi_1, action_0.message), 100)));
|
|
38166
38202
|
};
|
|
38167
38203
|
protoOf(addChatMessageReducer$$inlined$reducerForActionType$1).j7k = function (state, action) {
|
|
38168
38204
|
return this.ib0((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
38169
38205
|
};
|
|
38170
38206
|
function clientResetMessagesAfterSelectedTrumpReducer$$inlined$reducerForActionType$1($gameLogger) {
|
|
38171
|
-
this.
|
|
38207
|
+
this.ff3_1 = $gameLogger;
|
|
38172
38208
|
}
|
|
38173
38209
|
protoOf(clientResetMessagesAfterSelectedTrumpReducer$$inlined$reducerForActionType$1).t7i = function (action) {
|
|
38174
38210
|
return action instanceof TrumpMechanicAction;
|
|
@@ -38176,13 +38212,13 @@
|
|
|
38176
38212
|
protoOf(clientResetMessagesAfterSelectedTrumpReducer$$inlined$reducerForActionType$1).ib0 = function (state, action) {
|
|
38177
38213
|
action instanceof TrumpMechanicAction || THROW_CCE();
|
|
38178
38214
|
var clientState = get_clientPayload(state);
|
|
38179
|
-
return state.iak(state.s7v().copy(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, updateMessagesAsNotShown(state.s7v().chatMessages, this.
|
|
38215
|
+
return state.iak(state.s7v().copy(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, updateMessagesAsNotShown(state.s7v().chatMessages, this.ff3_1)), clientState.ley(VOID, updateMessagesAsNotShown(clientState.ibi_1, this.ff3_1)));
|
|
38180
38216
|
};
|
|
38181
38217
|
protoOf(clientResetMessagesAfterSelectedTrumpReducer$$inlined$reducerForActionType$1).j7k = function (state, action) {
|
|
38182
38218
|
return this.ib0((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
38183
38219
|
};
|
|
38184
38220
|
function clientResetMessagesAfterBribeReducer$$inlined$reducerForActionType$1($gameLogger) {
|
|
38185
|
-
this.
|
|
38221
|
+
this.gf3_1 = $gameLogger;
|
|
38186
38222
|
}
|
|
38187
38223
|
protoOf(clientResetMessagesAfterBribeReducer$$inlined$reducerForActionType$1).t7i = function (action) {
|
|
38188
38224
|
return action instanceof PickUpBribeMechanicAction;
|
|
@@ -38190,7 +38226,7 @@
|
|
|
38190
38226
|
protoOf(clientResetMessagesAfterBribeReducer$$inlined$reducerForActionType$1).ib0 = function (state, action) {
|
|
38191
38227
|
action instanceof PickUpBribeMechanicAction || THROW_CCE();
|
|
38192
38228
|
var clientState = get_clientPayload(state);
|
|
38193
|
-
return state.iak(VOID, clientState.
|
|
38229
|
+
return state.iak(VOID, clientState.ley(VOID, updateMessagesAsNotShown(clientState.ibi_1, this.gf3_1)));
|
|
38194
38230
|
};
|
|
38195
38231
|
protoOf(clientResetMessagesAfterBribeReducer$$inlined$reducerForActionType$1).j7k = function (state, action) {
|
|
38196
38232
|
return this.ib0((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
@@ -38210,10 +38246,10 @@
|
|
|
38210
38246
|
var tmp;
|
|
38211
38247
|
if (action_0 instanceof AddToBufferAction) {
|
|
38212
38248
|
var bufferedActions = plus_0(clientState.lbi_1, action_0.leu_1);
|
|
38213
|
-
tmp = state.iak(VOID, clientState.
|
|
38249
|
+
tmp = state.iak(VOID, clientState.ley(VOID, VOID, VOID, VOID, bufferedActions));
|
|
38214
38250
|
} else {
|
|
38215
38251
|
if (action_0 instanceof ReleaseBufferAction) {
|
|
38216
|
-
tmp = state.iak(VOID, clientState.
|
|
38252
|
+
tmp = state.iak(VOID, clientState.ley(VOID, VOID, VOID, VOID, emptyList()));
|
|
38217
38253
|
} else {
|
|
38218
38254
|
noWhenBranchMatchedException();
|
|
38219
38255
|
}
|
|
@@ -38228,7 +38264,7 @@
|
|
|
38228
38264
|
return new clientErrorStateWhenTerminationActionReducer$$inlined$reducerForActionType$1(clientLifecycleReducer);
|
|
38229
38265
|
}
|
|
38230
38266
|
function clientErrorStateWhenTerminationActionReducer$$inlined$reducerForActionType$1($clientLifecycleReducer) {
|
|
38231
|
-
this.
|
|
38267
|
+
this.hf3_1 = $clientLifecycleReducer;
|
|
38232
38268
|
}
|
|
38233
38269
|
protoOf(clientErrorStateWhenTerminationActionReducer$$inlined$reducerForActionType$1).t7i = function (action) {
|
|
38234
38270
|
return isInterface(action, TerminatedAction);
|
|
@@ -38246,7 +38282,7 @@
|
|
|
38246
38282
|
}
|
|
38247
38283
|
}
|
|
38248
38284
|
var errorState = tmp;
|
|
38249
|
-
return state.iak(VOID, this.
|
|
38285
|
+
return state.iak(VOID, this.hf3_1.nf2(get_clientPayload(state)).ley(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, errorState));
|
|
38250
38286
|
};
|
|
38251
38287
|
protoOf(clientErrorStateWhenTerminationActionReducer$$inlined$reducerForActionType$1).j7k = function (state, action) {
|
|
38252
38288
|
return this.ib0((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
@@ -38267,7 +38303,7 @@
|
|
|
38267
38303
|
if (action_0 instanceof InterceptorCreatedClientAction) {
|
|
38268
38304
|
var updatedInterceptedActions = plus_0(clientState.kbi_1, action_0.nev_1);
|
|
38269
38305
|
var updatedBufferedActions = plus_0(clientState.lbi_1, action_0.nev_1.tbv_1);
|
|
38270
|
-
tmp = state.iak(VOID, clientState.
|
|
38306
|
+
tmp = state.iak(VOID, clientState.ley(VOID, VOID, VOID, updatedInterceptedActions, updatedBufferedActions));
|
|
38271
38307
|
} else {
|
|
38272
38308
|
if (action_0 instanceof InterceptorFinishedClientAction) {
|
|
38273
38309
|
// Inline function 'kotlin.collections.single' call
|
|
@@ -38298,7 +38334,7 @@
|
|
|
38298
38334
|
}
|
|
38299
38335
|
}
|
|
38300
38336
|
var updatedInterceptedActions_0 = plus_0(destination, expectant.xbv(VOID, VOID, true));
|
|
38301
|
-
tmp = state.iak(VOID, clientState.
|
|
38337
|
+
tmp = state.iak(VOID, clientState.ley(VOID, VOID, VOID, updatedInterceptedActions_0));
|
|
38302
38338
|
} else {
|
|
38303
38339
|
if (action_0 instanceof InterceptorStageCompletedClientAction) {
|
|
38304
38340
|
tmp = state;
|
|
@@ -38336,7 +38372,7 @@
|
|
|
38336
38372
|
}
|
|
38337
38373
|
}
|
|
38338
38374
|
var updatedInterceptedActions = destination;
|
|
38339
|
-
return state.iak(VOID, clientPayload.
|
|
38375
|
+
return state.iak(VOID, clientPayload.ley(VOID, VOID, VOID, updatedInterceptedActions));
|
|
38340
38376
|
};
|
|
38341
38377
|
protoOf(interceptorActionReducer$$inlined$reducerForActionType$1).j7k = function (state, action) {
|
|
38342
38378
|
return this.ib0((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
@@ -38370,7 +38406,7 @@
|
|
|
38370
38406
|
}
|
|
38371
38407
|
var player = getPlayer(table.players, playerId);
|
|
38372
38408
|
var removeCardFromHand = getOpenOrHiddenCardInHand($this, card, player, currentPlayerId, table.players);
|
|
38373
|
-
var tmp0_id = $this.
|
|
38409
|
+
var tmp0_id = $this.qf3_1.e7g();
|
|
38374
38410
|
var tmp1_playerIndex = getPlayerIndex(table.players, playerId);
|
|
38375
38411
|
var tmp2_position = table.cardsOnTable.g1();
|
|
38376
38412
|
return plus_0(clientPayload.ubi_1, new PutCardOnTableTransition(tmp0_id, playerId, tmp1_playerIndex, tmp2_position, removeCardFromHand, card));
|
|
@@ -38394,7 +38430,7 @@
|
|
|
38394
38430
|
return tmp0_elvis_lhs == null ? last(openOrHiddenCard) : tmp0_elvis_lhs;
|
|
38395
38431
|
}
|
|
38396
38432
|
function getOpenOrHiddenCardsInHand($this, player, currentPlayerId, players, processingCard, cards) {
|
|
38397
|
-
var tmp1_$this = $this.
|
|
38433
|
+
var tmp1_$this = $this.of3_1;
|
|
38398
38434
|
var tmp2_playerId = player.playerId;
|
|
38399
38435
|
var tmp3_isCurrentPlayer = player.playerId === currentPlayerId;
|
|
38400
38436
|
var tmp4_players = mapWithIndex(players);
|
|
@@ -38430,10 +38466,10 @@
|
|
|
38430
38466
|
var cardsToDistributeCount = sum;
|
|
38431
38467
|
var otherCardsCount = sceneData.g8n_1.g1();
|
|
38432
38468
|
var cardDeckCards = createCardDeckCards($this, cardsToDistributeCount, otherCardsCount);
|
|
38433
|
-
var shuffleCardTransition = new ShuffleCardDeckTransition($this.
|
|
38469
|
+
var shuffleCardTransition = new ShuffleCardDeckTransition($this.qf3_1.e7g(), plus(listOf_0(sceneData.f8n_1), cardDeckCards));
|
|
38434
38470
|
var distributionTransition = createCardDistributionTransition($this, state, currentPlayerId, playersCardsToDistribute, null, otherCardsCount);
|
|
38435
38471
|
var updatedTransitions = plus(get_clientPayload(state).ubi_1, listOf([shuffleCardTransition, distributionTransition]));
|
|
38436
|
-
return state.iak(VOID, get_clientPayload(state).
|
|
38472
|
+
return state.iak(VOID, get_clientPayload(state).ley(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, updatedTransitions));
|
|
38437
38473
|
}
|
|
38438
38474
|
function handleEarnPointsScene($this, state, action, currentPlayerId) {
|
|
38439
38475
|
var tmp0 = action.sceneData;
|
|
@@ -38447,7 +38483,7 @@
|
|
|
38447
38483
|
throw new MechanicException('Required ' + getKClass(EarnPointsSceneData).o() + ', current scene is ' + toString_0(tmp0));
|
|
38448
38484
|
}
|
|
38449
38485
|
var sceneData = tmp$ret$0;
|
|
38450
|
-
var tmp0_$this = $this.
|
|
38486
|
+
var tmp0_$this = $this.pf3_1;
|
|
38451
38487
|
var tmp1_config = state.s7v().config;
|
|
38452
38488
|
var tmp2_cardDeck = state.s7v().requireCardDeck;
|
|
38453
38489
|
var tmp3_newTopOpenedCard = sceneData.l8n_1;
|
|
@@ -38458,7 +38494,7 @@
|
|
|
38458
38494
|
var tmp7_otherCardsCount = updatedCardDeck.ua0();
|
|
38459
38495
|
var distributionTransition = createCardDistributionTransition($this, state, currentPlayerId, tmp6_playersCardsToDistribute, tmp5_distributeTrumpCard, tmp7_otherCardsCount);
|
|
38460
38496
|
var updatedTransitions = plus_0(get_clientPayload(state).ubi_1, distributionTransition);
|
|
38461
|
-
return state.iak(VOID, get_clientPayload(state).
|
|
38497
|
+
return state.iak(VOID, get_clientPayload(state).ley(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, updatedTransitions));
|
|
38462
38498
|
}
|
|
38463
38499
|
function createCardDistributionTransition($this, state, currentPlayerId, playersCardsToDistribute, distributeTrumpCard, otherCardsCount) {
|
|
38464
38500
|
var table = state.s7v();
|
|
@@ -38492,32 +38528,32 @@
|
|
|
38492
38528
|
destination.g3(tmp_0, tmp$ret$4);
|
|
38493
38529
|
}
|
|
38494
38530
|
var cardPairsMap = destination;
|
|
38495
|
-
return new CardDistributionTransition($this.
|
|
38531
|
+
return new CardDistributionTransition($this.qf3_1.e7g(), cardPairsMap);
|
|
38496
38532
|
}
|
|
38497
38533
|
function DistributeCardsModel(playerId, cardsToDistribute, allPlayerCards) {
|
|
38498
|
-
this.
|
|
38499
|
-
this.
|
|
38500
|
-
this.
|
|
38534
|
+
this.sf3_1 = playerId;
|
|
38535
|
+
this.tf3_1 = cardsToDistribute;
|
|
38536
|
+
this.uf3_1 = allPlayerCards;
|
|
38501
38537
|
}
|
|
38502
38538
|
protoOf(DistributeCardsModel).d77 = function () {
|
|
38503
|
-
return this.
|
|
38539
|
+
return this.sf3_1;
|
|
38504
38540
|
};
|
|
38505
|
-
protoOf(DistributeCardsModel).
|
|
38541
|
+
protoOf(DistributeCardsModel).vf3 = function (playerId, cardsToDistribute, allPlayerCards) {
|
|
38506
38542
|
return new DistributeCardsModel(playerId, cardsToDistribute, allPlayerCards);
|
|
38507
38543
|
};
|
|
38508
|
-
protoOf(DistributeCardsModel).
|
|
38509
|
-
playerId = playerId === VOID ? this.
|
|
38510
|
-
cardsToDistribute = cardsToDistribute === VOID ? this.
|
|
38511
|
-
allPlayerCards = allPlayerCards === VOID ? this.
|
|
38512
|
-
return $super === VOID ? this.
|
|
38544
|
+
protoOf(DistributeCardsModel).wf3 = function (playerId, cardsToDistribute, allPlayerCards, $super) {
|
|
38545
|
+
playerId = playerId === VOID ? this.sf3_1 : playerId;
|
|
38546
|
+
cardsToDistribute = cardsToDistribute === VOID ? this.tf3_1 : cardsToDistribute;
|
|
38547
|
+
allPlayerCards = allPlayerCards === VOID ? this.uf3_1 : allPlayerCards;
|
|
38548
|
+
return $super === VOID ? this.vf3(playerId, cardsToDistribute, allPlayerCards) : $super.vf3.call(this, playerId, cardsToDistribute, allPlayerCards);
|
|
38513
38549
|
};
|
|
38514
38550
|
protoOf(DistributeCardsModel).toString = function () {
|
|
38515
|
-
return 'DistributeCardsModel(playerId=' + this.
|
|
38551
|
+
return 'DistributeCardsModel(playerId=' + this.sf3_1 + ', cardsToDistribute=' + toString(this.tf3_1) + ', allPlayerCards=' + toString(this.uf3_1) + ')';
|
|
38516
38552
|
};
|
|
38517
38553
|
protoOf(DistributeCardsModel).hashCode = function () {
|
|
38518
|
-
var result = getStringHashCode(this.
|
|
38519
|
-
result = imul(result, 31) + hashCode(this.
|
|
38520
|
-
result = imul(result, 31) + hashCode(this.
|
|
38554
|
+
var result = getStringHashCode(this.sf3_1);
|
|
38555
|
+
result = imul(result, 31) + hashCode(this.tf3_1) | 0;
|
|
38556
|
+
result = imul(result, 31) + hashCode(this.uf3_1) | 0;
|
|
38521
38557
|
return result;
|
|
38522
38558
|
};
|
|
38523
38559
|
protoOf(DistributeCardsModel).equals = function (other) {
|
|
@@ -38525,11 +38561,11 @@
|
|
|
38525
38561
|
return true;
|
|
38526
38562
|
if (!(other instanceof DistributeCardsModel))
|
|
38527
38563
|
return false;
|
|
38528
|
-
if (!(this.
|
|
38564
|
+
if (!(this.sf3_1 === other.sf3_1))
|
|
38529
38565
|
return false;
|
|
38530
|
-
if (!equals(this.
|
|
38566
|
+
if (!equals(this.tf3_1, other.tf3_1))
|
|
38531
38567
|
return false;
|
|
38532
|
-
if (!equals(this.
|
|
38568
|
+
if (!equals(this.uf3_1, other.uf3_1))
|
|
38533
38569
|
return false;
|
|
38534
38570
|
return true;
|
|
38535
38571
|
};
|
|
@@ -38556,7 +38592,7 @@
|
|
|
38556
38592
|
function determineWhoGetsTheTrumpCard($this, table) {
|
|
38557
38593
|
var tmp;
|
|
38558
38594
|
if (!(firstOrNull(filterWhoChoseSuit(table.players)) == null)) {
|
|
38559
|
-
tmp = $this.
|
|
38595
|
+
tmp = $this.rf3_1.za7(table.players, table.config);
|
|
38560
38596
|
} else {
|
|
38561
38597
|
tmp = null;
|
|
38562
38598
|
}
|
|
@@ -38589,7 +38625,7 @@
|
|
|
38589
38625
|
while (_iterator__ex2g4s.u()) {
|
|
38590
38626
|
var element = _iterator__ex2g4s.v();
|
|
38591
38627
|
var tmp = sum;
|
|
38592
|
-
sum = tmp + element.
|
|
38628
|
+
sum = tmp + element.tf3_1.g1() | 0;
|
|
38593
38629
|
}
|
|
38594
38630
|
var totalToDeal = sum;
|
|
38595
38631
|
var cardDeckCardsIterator = reversed(take_0(cardDeckCards, totalToDeal)).t();
|
|
@@ -38598,17 +38634,17 @@
|
|
|
38598
38634
|
while (_iterator__ex2g4s_0.u()) {
|
|
38599
38635
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
38600
38636
|
// Inline function 'kotlin.collections.map' call
|
|
38601
|
-
var this_0 = element_0.
|
|
38637
|
+
var this_0 = element_0.tf3_1;
|
|
38602
38638
|
// Inline function 'kotlin.collections.mapTo' call
|
|
38603
38639
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
38604
38640
|
var _iterator__ex2g4s_1 = this_0.t();
|
|
38605
38641
|
while (_iterator__ex2g4s_1.u()) {
|
|
38606
38642
|
var item = _iterator__ex2g4s_1.v();
|
|
38607
|
-
var tmp$ret$3 = new CardInHandTransition(element_0.
|
|
38643
|
+
var tmp$ret$3 = new CardInHandTransition(element_0.uf3_1.o2(item), cardDeckCardsIterator.v(), item);
|
|
38608
38644
|
destination.e1(tmp$ret$3);
|
|
38609
38645
|
}
|
|
38610
38646
|
var additions = destination;
|
|
38611
|
-
addCards($this, playersCardsFromCardDeck, element_0.
|
|
38647
|
+
addCards($this, playersCardsFromCardDeck, element_0.sf3_1, additions);
|
|
38612
38648
|
}
|
|
38613
38649
|
return playersCardsFromCardDeck;
|
|
38614
38650
|
}
|
|
@@ -38625,7 +38661,7 @@
|
|
|
38625
38661
|
var updatedDistributeCardsModels = toMutableList(distributeCardsModels);
|
|
38626
38662
|
if (!(whoChoseSuitPlayerId == null) && !(distributeTrumpCard == null)) {
|
|
38627
38663
|
var model = getPlayer(distributeCardsModels, whoChoseSuitPlayerId);
|
|
38628
|
-
var tmp0 = model.
|
|
38664
|
+
var tmp0 = model.tf3_1;
|
|
38629
38665
|
var tmp$ret$1;
|
|
38630
38666
|
$l$block: {
|
|
38631
38667
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
@@ -38640,10 +38676,10 @@
|
|
|
38640
38676
|
tmp$ret$1 = null;
|
|
38641
38677
|
}
|
|
38642
38678
|
var tmp0_elvis_lhs = tmp$ret$1;
|
|
38643
|
-
var toCard = tmp0_elvis_lhs == null ? first(model.
|
|
38644
|
-
addCards($this, playersCardsFromCardDeck, whoChoseSuitPlayerId, listOf_0(new CardInHandTransition(model.
|
|
38679
|
+
var toCard = tmp0_elvis_lhs == null ? first(model.tf3_1) : tmp0_elvis_lhs;
|
|
38680
|
+
addCards($this, playersCardsFromCardDeck, whoChoseSuitPlayerId, listOf_0(new CardInHandTransition(model.uf3_1.o2(toCard), distributeTrumpCard, toCard)));
|
|
38645
38681
|
// Inline function 'kotlin.collections.filter' call
|
|
38646
|
-
var tmp0_0 = model.
|
|
38682
|
+
var tmp0_0 = model.tf3_1;
|
|
38647
38683
|
// Inline function 'kotlin.collections.filterTo' call
|
|
38648
38684
|
var destination = ArrayList_init_$Create$_0();
|
|
38649
38685
|
var _iterator__ex2g4s_0 = tmp0_0.t();
|
|
@@ -38653,21 +38689,21 @@
|
|
|
38653
38689
|
destination.e1(element_0);
|
|
38654
38690
|
}
|
|
38655
38691
|
}
|
|
38656
|
-
updated(updatedDistributeCardsModels, model.
|
|
38692
|
+
updated(updatedDistributeCardsModels, model.wf3(VOID, destination), get_byIdPlayerPredicate()(model.sf3_1));
|
|
38657
38693
|
}
|
|
38658
38694
|
return updatedDistributeCardsModels;
|
|
38659
38695
|
}
|
|
38660
38696
|
function sam$kotlin_Comparator$0(function_0) {
|
|
38661
|
-
this.
|
|
38697
|
+
this.xf3_1 = function_0;
|
|
38662
38698
|
}
|
|
38663
38699
|
protoOf(sam$kotlin_Comparator$0).hd = function (a, b) {
|
|
38664
|
-
return this.
|
|
38700
|
+
return this.xf3_1(a, b);
|
|
38665
38701
|
};
|
|
38666
38702
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
38667
38703
|
return this.hd(a, b);
|
|
38668
38704
|
};
|
|
38669
38705
|
protoOf(sam$kotlin_Comparator$0).s3 = function () {
|
|
38670
|
-
return this.
|
|
38706
|
+
return this.xf3_1;
|
|
38671
38707
|
};
|
|
38672
38708
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
38673
38709
|
var tmp;
|
|
@@ -38688,38 +38724,38 @@
|
|
|
38688
38724
|
return hashCode(this.s3());
|
|
38689
38725
|
};
|
|
38690
38726
|
function TransitionsReducerImpl$addTransitionWhenPutCardAndCheckCombinationReducer$$inlined$reducerForActionType$1(this$0, $currentPlayerId) {
|
|
38691
|
-
this.
|
|
38692
|
-
this.
|
|
38727
|
+
this.yf3_1 = this$0;
|
|
38728
|
+
this.zf3_1 = $currentPlayerId;
|
|
38693
38729
|
}
|
|
38694
38730
|
protoOf(TransitionsReducerImpl$addTransitionWhenPutCardAndCheckCombinationReducer$$inlined$reducerForActionType$1).t7i = function (action) {
|
|
38695
38731
|
return action instanceof PutCardAndCheckCombinationsAction;
|
|
38696
38732
|
};
|
|
38697
38733
|
protoOf(TransitionsReducerImpl$addTransitionWhenPutCardAndCheckCombinationReducer$$inlined$reducerForActionType$1).ib0 = function (state, action) {
|
|
38698
38734
|
var action_0 = action instanceof PutCardAndCheckCombinationsAction ? action : THROW_CCE();
|
|
38699
|
-
var updatedTransitions = addPutCardOnTableTransition(this.
|
|
38700
|
-
return state.iak(VOID, get_clientPayload(state).
|
|
38735
|
+
var updatedTransitions = addPutCardOnTableTransition(this.yf3_1, this.zf3_1, this.zf3_1, action_0.qeu_1.o7b_1, state.s7v(), get_clientPayload(state));
|
|
38736
|
+
return state.iak(VOID, get_clientPayload(state).ley(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, updatedTransitions));
|
|
38701
38737
|
};
|
|
38702
38738
|
protoOf(TransitionsReducerImpl$addTransitionWhenPutCardAndCheckCombinationReducer$$inlined$reducerForActionType$1).j7k = function (state, action) {
|
|
38703
38739
|
return this.ib0((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
38704
38740
|
};
|
|
38705
38741
|
function TransitionsReducerImpl$addTransitionWhenPutCardReducer$$inlined$reducerForActionType$1(this$0, $currentPlayerId) {
|
|
38706
|
-
this.
|
|
38707
|
-
this.
|
|
38742
|
+
this.af4_1 = this$0;
|
|
38743
|
+
this.bf4_1 = $currentPlayerId;
|
|
38708
38744
|
}
|
|
38709
38745
|
protoOf(TransitionsReducerImpl$addTransitionWhenPutCardReducer$$inlined$reducerForActionType$1).t7i = function (action) {
|
|
38710
38746
|
return action instanceof PutCardMechanicAction;
|
|
38711
38747
|
};
|
|
38712
38748
|
protoOf(TransitionsReducerImpl$addTransitionWhenPutCardReducer$$inlined$reducerForActionType$1).ib0 = function (state, action) {
|
|
38713
38749
|
var action_0 = action instanceof PutCardMechanicAction ? action : THROW_CCE();
|
|
38714
|
-
var updatedTransitions = addPutCardOnTableTransition(this.
|
|
38715
|
-
return state.iak(VOID, get_clientPayload(state).
|
|
38750
|
+
var updatedTransitions = addPutCardOnTableTransition(this.af4_1, action_0.playerId, this.bf4_1, action_0.a9f_1, state.s7v(), get_clientPayload(state));
|
|
38751
|
+
return state.iak(VOID, get_clientPayload(state).ley(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, updatedTransitions));
|
|
38716
38752
|
};
|
|
38717
38753
|
protoOf(TransitionsReducerImpl$addTransitionWhenPutCardReducer$$inlined$reducerForActionType$1).j7k = function (state, action) {
|
|
38718
38754
|
return this.ib0((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
38719
38755
|
};
|
|
38720
38756
|
function TransitionsReducerImpl$addTransitionWhenCardDistributionReducer$$inlined$reducerForActionType$1(this$0, $currentPlayerId) {
|
|
38721
|
-
this.
|
|
38722
|
-
this.
|
|
38757
|
+
this.cf4_1 = this$0;
|
|
38758
|
+
this.df4_1 = $currentPlayerId;
|
|
38723
38759
|
}
|
|
38724
38760
|
protoOf(TransitionsReducerImpl$addTransitionWhenCardDistributionReducer$$inlined$reducerForActionType$1).t7i = function (action) {
|
|
38725
38761
|
return action instanceof SceneMechanicAction;
|
|
@@ -38729,10 +38765,10 @@
|
|
|
38729
38765
|
var tmp;
|
|
38730
38766
|
switch (action_0.d9e_1) {
|
|
38731
38767
|
case 'TRADE':
|
|
38732
|
-
tmp = handleTradeScene(this.
|
|
38768
|
+
tmp = handleTradeScene(this.cf4_1, state, action_0, this.df4_1);
|
|
38733
38769
|
break;
|
|
38734
38770
|
case 'EARN_POINTS':
|
|
38735
|
-
tmp = handleEarnPointsScene(this.
|
|
38771
|
+
tmp = handleEarnPointsScene(this.cf4_1, state, action_0, this.df4_1);
|
|
38736
38772
|
break;
|
|
38737
38773
|
default:
|
|
38738
38774
|
tmp = state;
|
|
@@ -38743,151 +38779,122 @@
|
|
|
38743
38779
|
protoOf(TransitionsReducerImpl$addTransitionWhenCardDistributionReducer$$inlined$reducerForActionType$1).j7k = function (state, action) {
|
|
38744
38780
|
return this.ib0((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
38745
38781
|
};
|
|
38746
|
-
function TransitionsReducerImpl$
|
|
38747
|
-
this.
|
|
38748
|
-
this.
|
|
38782
|
+
function TransitionsReducerImpl$addTransitionWhenShowCombinationReducer$$inlined$reducerForActionType$1(this$0, $currentPlayerId) {
|
|
38783
|
+
this.ef4_1 = this$0;
|
|
38784
|
+
this.ff4_1 = $currentPlayerId;
|
|
38749
38785
|
}
|
|
38750
|
-
protoOf(TransitionsReducerImpl$
|
|
38751
|
-
return action instanceof
|
|
38786
|
+
protoOf(TransitionsReducerImpl$addTransitionWhenShowCombinationReducer$$inlined$reducerForActionType$1).t7i = function (action) {
|
|
38787
|
+
return action instanceof WinnerCombinationsMechanicAction;
|
|
38752
38788
|
};
|
|
38753
|
-
protoOf(TransitionsReducerImpl$
|
|
38754
|
-
var action_0 = action instanceof
|
|
38789
|
+
protoOf(TransitionsReducerImpl$addTransitionWhenShowCombinationReducer$$inlined$reducerForActionType$1).ib0 = function (state, action) {
|
|
38790
|
+
var action_0 = action instanceof WinnerCombinationsMechanicAction ? action : THROW_CCE();
|
|
38755
38791
|
var clientPayload = get_clientPayload(state);
|
|
38756
|
-
var
|
|
38757
|
-
|
|
38758
|
-
|
|
38759
|
-
|
|
38760
|
-
|
|
38761
|
-
|
|
38762
|
-
|
|
38763
|
-
|
|
38764
|
-
|
|
38765
|
-
|
|
38766
|
-
|
|
38767
|
-
|
|
38768
|
-
|
|
38769
|
-
|
|
38770
|
-
|
|
38771
|
-
|
|
38792
|
+
var tmp = this.ef4_1.qf3_1.e7g();
|
|
38793
|
+
// Inline function 'kotlin.collections.associate' call
|
|
38794
|
+
var this_0 = action_0.n9f_1;
|
|
38795
|
+
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
38796
|
+
// Inline function 'kotlin.collections.associateTo' call
|
|
38797
|
+
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
38798
|
+
var _iterator__ex2g4s = this_0.t();
|
|
38799
|
+
while (_iterator__ex2g4s.u()) {
|
|
38800
|
+
var element = _iterator__ex2g4s.v();
|
|
38801
|
+
var player = getPlayer(state.s7v().players, element.a94_1);
|
|
38802
|
+
var sortedPlayerCards = sortedWith(player.k7z_1, new CardSuitSortingComparator(clientPayload.hbi_1.ibu_1));
|
|
38803
|
+
// Inline function 'kotlin.collections.map' call
|
|
38804
|
+
var this_1 = element.b94_1;
|
|
38805
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
38806
|
+
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
38807
|
+
var _iterator__ex2g4s_0 = this_1.t();
|
|
38808
|
+
while (_iterator__ex2g4s_0.u()) {
|
|
38809
|
+
var item = _iterator__ex2g4s_0.v();
|
|
38810
|
+
var tmp$ret$0 = item.ba1();
|
|
38811
|
+
destination_0.e1(tmp$ret$0);
|
|
38772
38812
|
}
|
|
38773
|
-
|
|
38813
|
+
var combinationCards = flatten(destination_0);
|
|
38814
|
+
var tmp0_players = state.s7v().players;
|
|
38815
|
+
var tmp1_processingCard = clientPayload.tbi_1;
|
|
38816
|
+
var openOrHiddenCards = getOpenOrHiddenCardsInHand(this.ef4_1, player, this.ff4_1, tmp0_players, tmp1_processingCard, combinationCards);
|
|
38817
|
+
// Inline function 'kotlin.collections.mapIndexed' call
|
|
38818
|
+
var this_2 = zip(combinationCards, openOrHiddenCards);
|
|
38819
|
+
// Inline function 'kotlin.collections.mapIndexedTo' call
|
|
38820
|
+
var destination_1 = ArrayList_init_$Create$(collectionSizeOrDefault(this_2, 10));
|
|
38821
|
+
var index = 0;
|
|
38822
|
+
var _iterator__ex2g4s_1 = this_2.t();
|
|
38823
|
+
while (_iterator__ex2g4s_1.u()) {
|
|
38824
|
+
var item_0 = _iterator__ex2g4s_1.v();
|
|
38825
|
+
var _unary__edvuaz = index;
|
|
38826
|
+
index = _unary__edvuaz + 1 | 0;
|
|
38827
|
+
var cardIndex = checkIndexOverflow(_unary__edvuaz);
|
|
38828
|
+
var card = item_0.of();
|
|
38829
|
+
var hiddenCard = item_0.pf();
|
|
38830
|
+
var index_0 = sortedPlayerCards.m2(card) ? sortedPlayerCards.o2(card) : cardIndex;
|
|
38831
|
+
var tmp$ret$3 = new CardInHandTransition(index_0, hiddenCard, card);
|
|
38832
|
+
destination_1.e1(tmp$ret$3);
|
|
38833
|
+
}
|
|
38834
|
+
var handTransitions = destination_1;
|
|
38835
|
+
// Inline function 'kotlin.collections.plusAssign' call
|
|
38836
|
+
var pair = to(element.a94_1, handTransitions);
|
|
38837
|
+
destination.g3(pair.first, pair.second);
|
|
38838
|
+
}
|
|
38839
|
+
var updatedTransitions = plus_0(clientPayload.ubi_1, new ShowCombinationTransition(tmp, destination));
|
|
38840
|
+
return state.iak(VOID, clientPayload.ley(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, updatedTransitions));
|
|
38841
|
+
};
|
|
38842
|
+
protoOf(TransitionsReducerImpl$addTransitionWhenShowCombinationReducer$$inlined$reducerForActionType$1).j7k = function (state, action) {
|
|
38843
|
+
return this.ib0((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
38844
|
+
};
|
|
38845
|
+
function TransitionsReducerImpl$addTransitionWhenPickUpBribeReducer$$inlined$reducerForActionType$1(this$0) {
|
|
38846
|
+
this.gf4_1 = this$0;
|
|
38847
|
+
}
|
|
38848
|
+
protoOf(TransitionsReducerImpl$addTransitionWhenPickUpBribeReducer$$inlined$reducerForActionType$1).t7i = function (action) {
|
|
38849
|
+
return action instanceof PickUpBribeMechanicAction;
|
|
38850
|
+
};
|
|
38851
|
+
protoOf(TransitionsReducerImpl$addTransitionWhenPickUpBribeReducer$$inlined$reducerForActionType$1).ib0 = function (state, action) {
|
|
38852
|
+
var action_0 = action instanceof PickUpBribeMechanicAction ? action : THROW_CCE();
|
|
38853
|
+
var clientPayload = get_clientPayload(state);
|
|
38854
|
+
var tmp = this.gf4_1.qf3_1.e7g();
|
|
38855
|
+
// Inline function 'kotlin.collections.map' call
|
|
38856
|
+
var this_0 = state.s7v().cardsOnTable;
|
|
38857
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
38858
|
+
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
38859
|
+
var _iterator__ex2g4s = this_0.t();
|
|
38860
|
+
while (_iterator__ex2g4s.u()) {
|
|
38861
|
+
var item = _iterator__ex2g4s.v();
|
|
38862
|
+
var tmp$ret$0 = item.z8k_1;
|
|
38863
|
+
destination.e1(tmp$ret$0);
|
|
38864
|
+
}
|
|
38865
|
+
var updatedTransitions = plus_0(clientPayload.ubi_1, new PickUpBribeTransition(tmp, action_0.g9f_1, destination));
|
|
38866
|
+
return state.iak(VOID, clientPayload.ley(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, updatedTransitions));
|
|
38867
|
+
};
|
|
38868
|
+
protoOf(TransitionsReducerImpl$addTransitionWhenPickUpBribeReducer$$inlined$reducerForActionType$1).j7k = function (state, action) {
|
|
38869
|
+
return this.ib0((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
38870
|
+
};
|
|
38871
|
+
function TransitionsReducerImpl$addTransitionWhenCombinationChoiceReducer$$inlined$reducerForActionType$1(this$0, $currentPlayerId) {
|
|
38872
|
+
this.hf4_1 = this$0;
|
|
38873
|
+
this.if4_1 = $currentPlayerId;
|
|
38874
|
+
}
|
|
38875
|
+
protoOf(TransitionsReducerImpl$addTransitionWhenCombinationChoiceReducer$$inlined$reducerForActionType$1).t7i = function (action) {
|
|
38876
|
+
return action instanceof CombinationChoiceMechanicAction;
|
|
38877
|
+
};
|
|
38878
|
+
protoOf(TransitionsReducerImpl$addTransitionWhenCombinationChoiceReducer$$inlined$reducerForActionType$1).ib0 = function (state, action) {
|
|
38879
|
+
var action_0 = action instanceof CombinationChoiceMechanicAction ? action : THROW_CCE();
|
|
38880
|
+
var combination = first(action_0.x9e_1);
|
|
38881
|
+
var tmp;
|
|
38882
|
+
if (action_0.w9e_1 && combination.v8l_1.equals(CombinationType_SEVEN_TRUMP_getInstance())) {
|
|
38883
|
+
var clientPayload = get_clientPayload(state);
|
|
38884
|
+
var trumpCard = single(combination.ba1());
|
|
38885
|
+
var trumpCardOrOrigin = getOpenOrHiddenCardInHand(this.hf4_1, trumpCard, getPlayer(state.s7v().players, action_0.playerId), this.if4_1, state.s7v().players);
|
|
38886
|
+
var tmp0_id = this.hf4_1.qf3_1.e7g();
|
|
38887
|
+
var tmp1_playerIds = listOf_0(action_0.playerId);
|
|
38888
|
+
var tmp2_toCard2 = state.s7v().requireCardDeck.h93_1;
|
|
38889
|
+
var tmp3_fromCard2 = state.s7v().requireCardDeck.h93_1;
|
|
38890
|
+
var updatedTransitions = plus_0(clientPayload.ubi_1, new SwapCardsTransition(tmp0_id, tmp1_playerIds, trumpCardOrOrigin, trumpCard, tmp3_fromCard2, tmp2_toCard2));
|
|
38891
|
+
tmp = state.iak(VOID, clientPayload.ley(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, updatedTransitions));
|
|
38774
38892
|
} else {
|
|
38775
|
-
|
|
38776
|
-
var tmp_1 = this.xf3_1.jf3_1.e7g();
|
|
38777
|
-
// Inline function 'kotlin.collections.associate' call
|
|
38778
|
-
var this_0 = interceptedAction.n9f_1;
|
|
38779
|
-
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
38780
|
-
// Inline function 'kotlin.collections.associateTo' call
|
|
38781
|
-
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
38782
|
-
var _iterator__ex2g4s = this_0.t();
|
|
38783
|
-
while (_iterator__ex2g4s.u()) {
|
|
38784
|
-
var element = _iterator__ex2g4s.v();
|
|
38785
|
-
var player = getPlayer(state.s7v().players, element.a94_1);
|
|
38786
|
-
var sortedPlayerCards = sortedWith(player.k7z_1, new CardSuitSortingComparator(get_clientPayload(state).hbi_1.ibu_1));
|
|
38787
|
-
// Inline function 'kotlin.collections.map' call
|
|
38788
|
-
var this_1 = element.b94_1;
|
|
38789
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
38790
|
-
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
38791
|
-
var _iterator__ex2g4s_0 = this_1.t();
|
|
38792
|
-
while (_iterator__ex2g4s_0.u()) {
|
|
38793
|
-
var item = _iterator__ex2g4s_0.v();
|
|
38794
|
-
var tmp$ret$0 = item.ba1();
|
|
38795
|
-
destination_0.e1(tmp$ret$0);
|
|
38796
|
-
}
|
|
38797
|
-
var combinationCards = flatten(destination_0);
|
|
38798
|
-
var tmp0_players = state.s7v().players;
|
|
38799
|
-
var tmp1_processingCard = clientPayload.tbi_1;
|
|
38800
|
-
var openOrHiddenCards = getOpenOrHiddenCardsInHand(this.xf3_1, player, this.yf3_1, tmp0_players, tmp1_processingCard, combinationCards);
|
|
38801
|
-
// Inline function 'kotlin.collections.mapIndexed' call
|
|
38802
|
-
var this_2 = zip(combinationCards, openOrHiddenCards);
|
|
38803
|
-
// Inline function 'kotlin.collections.mapIndexedTo' call
|
|
38804
|
-
var destination_1 = ArrayList_init_$Create$(collectionSizeOrDefault(this_2, 10));
|
|
38805
|
-
var index = 0;
|
|
38806
|
-
var _iterator__ex2g4s_1 = this_2.t();
|
|
38807
|
-
while (_iterator__ex2g4s_1.u()) {
|
|
38808
|
-
var item_0 = _iterator__ex2g4s_1.v();
|
|
38809
|
-
var _unary__edvuaz = index;
|
|
38810
|
-
index = _unary__edvuaz + 1 | 0;
|
|
38811
|
-
var cardIndex = checkIndexOverflow(_unary__edvuaz);
|
|
38812
|
-
var card = item_0.of();
|
|
38813
|
-
var hiddenCard = item_0.pf();
|
|
38814
|
-
var tmp_2;
|
|
38815
|
-
if (sortedPlayerCards.m2(card)) {
|
|
38816
|
-
tmp_2 = sortedPlayerCards.o2(card);
|
|
38817
|
-
} else {
|
|
38818
|
-
tmp_2 = cardIndex;
|
|
38819
|
-
}
|
|
38820
|
-
var index_0 = tmp_2;
|
|
38821
|
-
var tmp$ret$3 = new CardInHandTransition(index_0, hiddenCard, card);
|
|
38822
|
-
destination_1.e1(tmp$ret$3);
|
|
38823
|
-
}
|
|
38824
|
-
var handTransitions = destination_1;
|
|
38825
|
-
// Inline function 'kotlin.collections.plusAssign' call
|
|
38826
|
-
var pair = to(element.a94_1, handTransitions);
|
|
38827
|
-
destination.g3(pair.first, pair.second);
|
|
38828
|
-
}
|
|
38829
|
-
var updatedTransitions_0 = plus_0(clientPayload.ubi_1, new ShowCombinationTransition(tmp_1, destination));
|
|
38830
|
-
tmp = state.iak(VOID, clientPayload.hey(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, updatedTransitions_0));
|
|
38831
|
-
} else {
|
|
38832
|
-
if (interceptedAction instanceof PickUpBribeMechanicAction) {
|
|
38833
|
-
var tmp_3 = this.xf3_1.jf3_1.e7g();
|
|
38834
|
-
// Inline function 'kotlin.collections.map' call
|
|
38835
|
-
var this_3 = state.s7v().cardsOnTable;
|
|
38836
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
38837
|
-
var destination_2 = ArrayList_init_$Create$(collectionSizeOrDefault(this_3, 10));
|
|
38838
|
-
var _iterator__ex2g4s_2 = this_3.t();
|
|
38839
|
-
while (_iterator__ex2g4s_2.u()) {
|
|
38840
|
-
var item_1 = _iterator__ex2g4s_2.v();
|
|
38841
|
-
var tmp$ret$10 = item_1.z8k_1;
|
|
38842
|
-
destination_2.e1(tmp$ret$10);
|
|
38843
|
-
}
|
|
38844
|
-
var updatedTransitions_1 = plus_0(clientPayload.ubi_1, new PickUpBribeTransition(tmp_3, interceptedAction.g9f_1, destination_2));
|
|
38845
|
-
tmp = state.iak(VOID, clientPayload.hey(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, updatedTransitions_1));
|
|
38846
|
-
} else {
|
|
38847
|
-
if (interceptedAction instanceof TakeAllRemainingCardsMechanicAction) {
|
|
38848
|
-
var tmp_4 = this.xf3_1.jf3_1.e7g();
|
|
38849
|
-
// Inline function 'kotlin.collections.mapValues' call
|
|
38850
|
-
var this_4 = interceptedAction.l9f_1;
|
|
38851
|
-
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
38852
|
-
var destination_3 = LinkedHashMap_init_$Create$(mapCapacity(this_4.g1()));
|
|
38853
|
-
// Inline function 'kotlin.collections.associateByTo' call
|
|
38854
|
-
var _iterator__ex2g4s_3 = this_4.m1().t();
|
|
38855
|
-
while (_iterator__ex2g4s_3.u()) {
|
|
38856
|
-
var element_0 = _iterator__ex2g4s_3.v();
|
|
38857
|
-
var tmp_5 = element_0.n1();
|
|
38858
|
-
// Inline function 'kotlin.collections.component1' call
|
|
38859
|
-
var playerId = element_0.n1();
|
|
38860
|
-
// Inline function 'kotlin.collections.component2' call
|
|
38861
|
-
var cards = element_0.o1();
|
|
38862
|
-
var tmp0_player = getPlayer(state.s7v().players, playerId);
|
|
38863
|
-
var tmp1_players = state.s7v().players;
|
|
38864
|
-
var tmp2_processingCard = clientPayload.tbi_1;
|
|
38865
|
-
var openOrHiddenCards_0 = getOpenOrHiddenCardsInHand(this.xf3_1, tmp0_player, this.yf3_1, tmp1_players, tmp2_processingCard, cards);
|
|
38866
|
-
// Inline function 'kotlin.collections.map' call
|
|
38867
|
-
var this_5 = zip(cards, openOrHiddenCards_0);
|
|
38868
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
38869
|
-
var destination_4 = ArrayList_init_$Create$(collectionSizeOrDefault(this_5, 10));
|
|
38870
|
-
var _iterator__ex2g4s_4 = this_5.t();
|
|
38871
|
-
while (_iterator__ex2g4s_4.u()) {
|
|
38872
|
-
var item_2 = _iterator__ex2g4s_4.v();
|
|
38873
|
-
var card_0 = item_2.of();
|
|
38874
|
-
var hiddenCard_0 = item_2.pf();
|
|
38875
|
-
var tmp$ret$16 = new CardInHandTransition(VOID, hiddenCard_0, card_0);
|
|
38876
|
-
destination_4.e1(tmp$ret$16);
|
|
38877
|
-
}
|
|
38878
|
-
destination_3.g3(tmp_5, destination_4);
|
|
38879
|
-
}
|
|
38880
|
-
var updatedTransitions_2 = plus_0(clientPayload.ubi_1, new TakeAllRemainingCardsTransition(tmp_4, destination_3));
|
|
38881
|
-
tmp = state.iak(VOID, clientPayload.hey(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, updatedTransitions_2));
|
|
38882
|
-
} else {
|
|
38883
|
-
tmp = state;
|
|
38884
|
-
}
|
|
38885
|
-
}
|
|
38886
|
-
}
|
|
38893
|
+
tmp = state;
|
|
38887
38894
|
}
|
|
38888
38895
|
return tmp;
|
|
38889
38896
|
};
|
|
38890
|
-
protoOf(TransitionsReducerImpl$
|
|
38897
|
+
protoOf(TransitionsReducerImpl$addTransitionWhenCombinationChoiceReducer$$inlined$reducerForActionType$1).j7k = function (state, action) {
|
|
38891
38898
|
return this.ib0((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
38892
38899
|
};
|
|
38893
38900
|
function TransitionsReducerImpl$createCardDistributionTransition$lambda($state) {
|
|
@@ -38896,26 +38903,34 @@
|
|
|
38896
38903
|
};
|
|
38897
38904
|
}
|
|
38898
38905
|
function TransitionsReducerImpl(playerHandSelector, sceneReducer, idsProvider, gameLogicProvider) {
|
|
38899
|
-
this.
|
|
38900
|
-
this.
|
|
38901
|
-
this.
|
|
38902
|
-
this.
|
|
38906
|
+
this.of3_1 = playerHandSelector;
|
|
38907
|
+
this.pf3_1 = sceneReducer;
|
|
38908
|
+
this.qf3_1 = idsProvider;
|
|
38909
|
+
this.rf3_1 = gameLogicProvider;
|
|
38903
38910
|
}
|
|
38904
|
-
protoOf(TransitionsReducerImpl).
|
|
38911
|
+
protoOf(TransitionsReducerImpl).if3 = function (currentPlayerId) {
|
|
38905
38912
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
38906
38913
|
return new TransitionsReducerImpl$addTransitionWhenPutCardAndCheckCombinationReducer$$inlined$reducerForActionType$1(this, currentPlayerId);
|
|
38907
38914
|
};
|
|
38908
|
-
protoOf(TransitionsReducerImpl).
|
|
38915
|
+
protoOf(TransitionsReducerImpl).jf3 = function (currentPlayerId) {
|
|
38909
38916
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
38910
38917
|
return new TransitionsReducerImpl$addTransitionWhenPutCardReducer$$inlined$reducerForActionType$1(this, currentPlayerId);
|
|
38911
38918
|
};
|
|
38912
|
-
protoOf(TransitionsReducerImpl).
|
|
38919
|
+
protoOf(TransitionsReducerImpl).kf3 = function (currentPlayerId) {
|
|
38913
38920
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
38914
38921
|
return new TransitionsReducerImpl$addTransitionWhenCardDistributionReducer$$inlined$reducerForActionType$1(this, currentPlayerId);
|
|
38915
38922
|
};
|
|
38916
|
-
protoOf(TransitionsReducerImpl).
|
|
38923
|
+
protoOf(TransitionsReducerImpl).lf3 = function (currentPlayerId) {
|
|
38924
|
+
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
38925
|
+
return new TransitionsReducerImpl$addTransitionWhenShowCombinationReducer$$inlined$reducerForActionType$1(this, currentPlayerId);
|
|
38926
|
+
};
|
|
38927
|
+
protoOf(TransitionsReducerImpl).mf3 = function () {
|
|
38928
|
+
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
38929
|
+
return new TransitionsReducerImpl$addTransitionWhenPickUpBribeReducer$$inlined$reducerForActionType$1(this);
|
|
38930
|
+
};
|
|
38931
|
+
protoOf(TransitionsReducerImpl).nf3 = function (currentPlayerId) {
|
|
38917
38932
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
38918
|
-
return new TransitionsReducerImpl$
|
|
38933
|
+
return new TransitionsReducerImpl$addTransitionWhenCombinationChoiceReducer$$inlined$reducerForActionType$1(this, currentPlayerId);
|
|
38919
38934
|
};
|
|
38920
38935
|
function removeCardsWhenTransaction_0($this, _this__u8e3s4, playerId, transitions) {
|
|
38921
38936
|
var updatedCards = toMutableSet(_this__u8e3s4);
|
|
@@ -39217,7 +39232,7 @@
|
|
|
39217
39232
|
var tmp3_players = mapWithIndex(table.players);
|
|
39218
39233
|
var tmp0_safe_receiver = clientPayload.tbi_1;
|
|
39219
39234
|
var tmp4_processingCardOnTable = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.o7b_1;
|
|
39220
|
-
var playerCards = removeCardsWhenTransaction_0(this, this.
|
|
39235
|
+
var playerCards = removeCardsWhenTransaction_0(this, this.jf4(tmp1_playerId, isCurrentPlayer, tmp2_cards, tmp3_players, tmp4_processingCardOnTable), playerId, playerHandTransitions);
|
|
39221
39236
|
var cardsStateVM = this.rdz(isCurrentPlayer, playerCards, isGameActive, table, clientPayload);
|
|
39222
39237
|
var highlightedCards = this.de8(isCurrentPlayer, clientPayload.qbi_1);
|
|
39223
39238
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -39269,7 +39284,7 @@
|
|
|
39269
39284
|
var index = getItemIndex(players, get_byIdPlayerPredicate()(playerId));
|
|
39270
39285
|
return generateHiddenPlayerHandCards(cards.g1(), index);
|
|
39271
39286
|
};
|
|
39272
|
-
protoOf(PlayerHandSelector).
|
|
39287
|
+
protoOf(PlayerHandSelector).jf4 = function (playerId, isCurrentPlayer, cards, players, processingCardOnTable) {
|
|
39273
39288
|
var updatedCards = toMutableList(cards);
|
|
39274
39289
|
if (isCurrentPlayer && !(processingCardOnTable == null)) {
|
|
39275
39290
|
updatedCards.y2(processingCardOnTable);
|
|
@@ -39315,20 +39330,20 @@
|
|
|
39315
39330
|
};
|
|
39316
39331
|
function Companion_81() {
|
|
39317
39332
|
}
|
|
39318
|
-
protoOf(Companion_81).
|
|
39333
|
+
protoOf(Companion_81).kf4 = function (config, combinationsToAnnounce) {
|
|
39319
39334
|
return new ClientStatePayload(config, VOID, VOID, VOID, VOID, Companion_instance_93.k9z(), VOID, VOID, VOID, combinationsToAnnounce);
|
|
39320
39335
|
};
|
|
39321
|
-
protoOf(Companion_81).
|
|
39336
|
+
protoOf(Companion_81).zf2 = function (config, combinationsToAnnounce, $super) {
|
|
39322
39337
|
combinationsToAnnounce = combinationsToAnnounce === VOID ? null : combinationsToAnnounce;
|
|
39323
|
-
return $super === VOID ? this.
|
|
39338
|
+
return $super === VOID ? this.kf4(config, combinationsToAnnounce) : $super.kf4.call(this, config, combinationsToAnnounce);
|
|
39324
39339
|
};
|
|
39325
|
-
protoOf(Companion_81).
|
|
39340
|
+
protoOf(Companion_81).mf2 = function (config, uiState, isSceneActive, messages, bufferedActions, error) {
|
|
39326
39341
|
return new ClientStatePayload(config, messages, VOID, VOID, bufferedActions, uiState, isSceneActive, VOID, VOID, VOID, VOID, VOID, VOID, VOID, error);
|
|
39327
39342
|
};
|
|
39328
|
-
protoOf(Companion_81).
|
|
39329
|
-
return new ClientStatePayload(config, messages, VOID, interceptedActions, bufferedActions, uiState, isSceneActive, VOID, VOID, combinationsToAnnounce, VOID, VOID, processingCard,
|
|
39343
|
+
protoOf(Companion_81).of2 = function (config, uiState, isSceneActive, messages, bufferedActions, interceptedActions, combinationsToAnnounce, processingCard, error) {
|
|
39344
|
+
return new ClientStatePayload(config, messages, VOID, interceptedActions, bufferedActions, uiState, isSceneActive, VOID, VOID, combinationsToAnnounce, VOID, VOID, processingCard, VOID, error);
|
|
39330
39345
|
};
|
|
39331
|
-
protoOf(Companion_81).
|
|
39346
|
+
protoOf(Companion_81).pf2 = function (config, uiState, isSceneActive) {
|
|
39332
39347
|
return new ClientStatePayload(config, VOID, VOID, VOID, VOID, uiState, isSceneActive);
|
|
39333
39348
|
};
|
|
39334
39349
|
var Companion_instance_92;
|
|
@@ -39370,10 +39385,10 @@
|
|
|
39370
39385
|
protoOf(ClientStatePayload).cep = function () {
|
|
39371
39386
|
return !this.nbi_1;
|
|
39372
39387
|
};
|
|
39373
|
-
protoOf(ClientStatePayload).
|
|
39388
|
+
protoOf(ClientStatePayload).lf4 = function (config, messages, infoMessage, interceptedActions, bufferedActions, uiState, isSceneActive, chatOpened, settingsOpened, combinationsToAnnounce, lastBribe, gameInfo, processingCard, transitions, error, tutorial) {
|
|
39374
39389
|
return new ClientStatePayload(config, messages, infoMessage, interceptedActions, bufferedActions, uiState, isSceneActive, chatOpened, settingsOpened, combinationsToAnnounce, lastBribe, gameInfo, processingCard, transitions, error, tutorial);
|
|
39375
39390
|
};
|
|
39376
|
-
protoOf(ClientStatePayload).
|
|
39391
|
+
protoOf(ClientStatePayload).ley = function (config, messages, infoMessage, interceptedActions, bufferedActions, uiState, isSceneActive, chatOpened, settingsOpened, combinationsToAnnounce, lastBribe, gameInfo, processingCard, transitions, error, tutorial, $super) {
|
|
39377
39392
|
config = config === VOID ? this.hbi_1 : config;
|
|
39378
39393
|
messages = messages === VOID ? this.ibi_1 : messages;
|
|
39379
39394
|
infoMessage = infoMessage === VOID ? this.jbi_1 : infoMessage;
|
|
@@ -39390,7 +39405,7 @@
|
|
|
39390
39405
|
transitions = transitions === VOID ? this.ubi_1 : transitions;
|
|
39391
39406
|
error = error === VOID ? this.vbi_1 : error;
|
|
39392
39407
|
tutorial = tutorial === VOID ? this.wbi_1 : tutorial;
|
|
39393
|
-
return $super === VOID ? this.
|
|
39408
|
+
return $super === VOID ? this.lf4(config, messages, infoMessage, interceptedActions, bufferedActions, uiState, isSceneActive, chatOpened, settingsOpened, combinationsToAnnounce, lastBribe, gameInfo, processingCard, transitions, error, tutorial) : $super.lf4.call(this, config, messages, infoMessage, interceptedActions, bufferedActions, uiState, isSceneActive, chatOpened, settingsOpened, combinationsToAnnounce, lastBribe, gameInfo, processingCard, transitions, error, tutorial);
|
|
39394
39409
|
};
|
|
39395
39410
|
protoOf(ClientStatePayload).toString = function () {
|
|
39396
39411
|
return 'ClientStatePayload(config=' + this.hbi_1.toString() + ', messages=' + toString(this.ibi_1) + ', infoMessage=' + toString_0(this.jbi_1) + ', interceptedActions=' + toString(this.kbi_1) + ', bufferedActions=' + toString(this.lbi_1) + ', uiState=' + this.mbi_1.toString() + ', isSceneActive=' + this.nbi_1 + ', chatOpened=' + this.obi_1 + ', settingsOpened=' + this.pbi_1 + ', combinationsToAnnounce=' + toString_0(this.qbi_1) + ', lastBribe=' + toString_0(this.rbi_1) + ', gameInfo=' + toString_0(this.sbi_1) + ', processingCard=' + toString_0(this.tbi_1) + ', transitions=' + toString(this.ubi_1) + ', error=' + toString_0(this.vbi_1) + ', tutorial=' + this.wbi_1 + ')';
|
|
@@ -39550,13 +39565,13 @@
|
|
|
39550
39565
|
protoOf(UIState).aca = function () {
|
|
39551
39566
|
return this.yc9_1 && this.zc9_1;
|
|
39552
39567
|
};
|
|
39553
|
-
protoOf(UIState).
|
|
39568
|
+
protoOf(UIState).mf4 = function (created, focused) {
|
|
39554
39569
|
return new UIState(created, focused);
|
|
39555
39570
|
};
|
|
39556
|
-
protoOf(UIState).
|
|
39571
|
+
protoOf(UIState).af3 = function (created, focused, $super) {
|
|
39557
39572
|
created = created === VOID ? this.yc9_1 : created;
|
|
39558
39573
|
focused = focused === VOID ? this.zc9_1 : focused;
|
|
39559
|
-
return $super === VOID ? this.
|
|
39574
|
+
return $super === VOID ? this.mf4(created, focused) : $super.mf4.call(this, created, focused);
|
|
39560
39575
|
};
|
|
39561
39576
|
protoOf(UIState).toString = function () {
|
|
39562
39577
|
return 'UIState(created=' + this.yc9_1 + ', focused=' + this.zc9_1 + ')';
|
|
@@ -39651,7 +39666,7 @@
|
|
|
39651
39666
|
function onError($this, message, payload) {
|
|
39652
39667
|
var tmp0_elvis_lhs = payload instanceof TerminationGameReason ? payload : null;
|
|
39653
39668
|
var reason = tmp0_elvis_lhs == null ? new GameErrorReason(Reason_INTERNAL_ERROR_getInstance()) : tmp0_elvis_lhs;
|
|
39654
|
-
var tmp1_safe_receiver = $this.
|
|
39669
|
+
var tmp1_safe_receiver = $this.sf4_1;
|
|
39655
39670
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver();
|
|
39656
39671
|
if (tmp2_safe_receiver == null)
|
|
39657
39672
|
null;
|
|
@@ -39660,8 +39675,8 @@
|
|
|
39660
39675
|
}
|
|
39661
39676
|
}
|
|
39662
39677
|
function ShowErrorLoggerOutputImpl$onError$slambda($message, $reason, resultContinuation) {
|
|
39663
|
-
this.
|
|
39664
|
-
this.
|
|
39678
|
+
this.bf5_1 = $message;
|
|
39679
|
+
this.cf5_1 = $reason;
|
|
39665
39680
|
CoroutineImpl.call(this, resultContinuation);
|
|
39666
39681
|
}
|
|
39667
39682
|
protoOf(ShowErrorLoggerOutputImpl$onError$slambda).ocv = function ($this$dispatchAsync, store, $completion) {
|
|
@@ -39681,7 +39696,7 @@
|
|
|
39681
39696
|
var tmp = this.i9_1;
|
|
39682
39697
|
if (tmp === 0) {
|
|
39683
39698
|
this.j9_1 = 1;
|
|
39684
|
-
this.
|
|
39699
|
+
this.ef5_1.dispatch(new ErrorAction(new ErrorState(this.bf5_1, VOID, this.cf5_1)));
|
|
39685
39700
|
return Unit_instance;
|
|
39686
39701
|
} else if (tmp === 1) {
|
|
39687
39702
|
throw this.l9_1;
|
|
@@ -39693,9 +39708,9 @@
|
|
|
39693
39708
|
while (true);
|
|
39694
39709
|
};
|
|
39695
39710
|
protoOf(ShowErrorLoggerOutputImpl$onError$slambda).pcv = function ($this$dispatchAsync, store, completion) {
|
|
39696
|
-
var i = new ShowErrorLoggerOutputImpl$onError$slambda(this.
|
|
39697
|
-
i.
|
|
39698
|
-
i.
|
|
39711
|
+
var i = new ShowErrorLoggerOutputImpl$onError$slambda(this.bf5_1, this.cf5_1, completion);
|
|
39712
|
+
i.df5_1 = $this$dispatchAsync;
|
|
39713
|
+
i.ef5_1 = store;
|
|
39699
39714
|
return i;
|
|
39700
39715
|
};
|
|
39701
39716
|
function ShowErrorLoggerOutputImpl$onError$slambda_0($message, $reason, resultContinuation) {
|
|
@@ -39709,20 +39724,20 @@
|
|
|
39709
39724
|
function ShowErrorLoggerOutputImpl(skipWarnings, gameClientProvider) {
|
|
39710
39725
|
skipWarnings = skipWarnings === VOID ? true : skipWarnings;
|
|
39711
39726
|
gameClientProvider = gameClientProvider === VOID ? null : gameClientProvider;
|
|
39712
|
-
this.
|
|
39713
|
-
this.
|
|
39727
|
+
this.rf4_1 = skipWarnings;
|
|
39728
|
+
this.sf4_1 = gameClientProvider;
|
|
39714
39729
|
}
|
|
39715
|
-
protoOf(ShowErrorLoggerOutputImpl).
|
|
39716
|
-
this.
|
|
39730
|
+
protoOf(ShowErrorLoggerOutputImpl).nf4 = function (_set____db54di) {
|
|
39731
|
+
this.rf4_1 = _set____db54di;
|
|
39717
39732
|
};
|
|
39718
|
-
protoOf(ShowErrorLoggerOutputImpl).
|
|
39719
|
-
return this.
|
|
39733
|
+
protoOf(ShowErrorLoggerOutputImpl).of4 = function () {
|
|
39734
|
+
return this.rf4_1;
|
|
39720
39735
|
};
|
|
39721
|
-
protoOf(ShowErrorLoggerOutputImpl).
|
|
39722
|
-
this.
|
|
39736
|
+
protoOf(ShowErrorLoggerOutputImpl).pf4 = function (_set____db54di) {
|
|
39737
|
+
this.sf4_1 = _set____db54di;
|
|
39723
39738
|
};
|
|
39724
|
-
protoOf(ShowErrorLoggerOutputImpl).
|
|
39725
|
-
return this.
|
|
39739
|
+
protoOf(ShowErrorLoggerOutputImpl).qf4 = function () {
|
|
39740
|
+
return this.sf4_1;
|
|
39726
39741
|
};
|
|
39727
39742
|
protoOf(ShowErrorLoggerOutputImpl).e5o = function (tag, message, payload) {
|
|
39728
39743
|
};
|
|
@@ -39734,7 +39749,7 @@
|
|
|
39734
39749
|
protoOf(ShowErrorLoggerOutputImpl).h5o = function (tag, message, exception, payload) {
|
|
39735
39750
|
};
|
|
39736
39751
|
protoOf(ShowErrorLoggerOutputImpl).g5o = function (tag, message, exception, payload) {
|
|
39737
|
-
if (!this.
|
|
39752
|
+
if (!this.rf4_1) {
|
|
39738
39753
|
onError(this, message, payload);
|
|
39739
39754
|
}
|
|
39740
39755
|
};
|
|
@@ -39744,14 +39759,14 @@
|
|
|
39744
39759
|
return new GameClientEngineControllerImpl(loggerCallback);
|
|
39745
39760
|
}
|
|
39746
39761
|
function _get_logger__rkp4sl_0($this) {
|
|
39747
|
-
var tmp0 = $this.
|
|
39762
|
+
var tmp0 = $this.if5_1;
|
|
39748
39763
|
var tmp = KProperty1;
|
|
39749
39764
|
// Inline function 'kotlin.getValue' call
|
|
39750
39765
|
getPropertyCallableRef('logger', 1, tmp, GameClientEngineControllerImpl$_get_logger_$ref_da2dm5(), null);
|
|
39751
39766
|
return tmp0.o1();
|
|
39752
39767
|
}
|
|
39753
39768
|
function _get_di__ndbzja($this) {
|
|
39754
|
-
var tmp0 = $this.
|
|
39769
|
+
var tmp0 = $this.jf5_1;
|
|
39755
39770
|
var tmp = KProperty1;
|
|
39756
39771
|
// Inline function 'kotlin.getValue' call
|
|
39757
39772
|
getPropertyCallableRef('di', 1, tmp, GameClientEngineControllerImpl$_get_di_$ref_2o2v5u(), null);
|
|
@@ -39768,8 +39783,8 @@
|
|
|
39768
39783
|
}
|
|
39769
39784
|
function createCallbackOutput($this, gameClient) {
|
|
39770
39785
|
var tmp;
|
|
39771
|
-
if (!($this.
|
|
39772
|
-
var tmp_0 = new LoggerCallbacksWrapperLoggerOutput($this.
|
|
39786
|
+
if (!($this.hf5_1 == null)) {
|
|
39787
|
+
var tmp_0 = new LoggerCallbacksWrapperLoggerOutput($this.hf5_1);
|
|
39773
39788
|
tmp = new CallbackWrapperLoggerOutput(tmp_0, GameClientEngineControllerImpl$createCallbackOutput$lambda(gameClient));
|
|
39774
39789
|
} else {
|
|
39775
39790
|
tmp = null;
|
|
@@ -39835,13 +39850,13 @@
|
|
|
39835
39850
|
};
|
|
39836
39851
|
}
|
|
39837
39852
|
function GameClientEngineControllerImpl$createOnlineGameEngineWithLogic$$inlined$map$1($reducer) {
|
|
39838
|
-
this.
|
|
39853
|
+
this.lf5_1 = $reducer;
|
|
39839
39854
|
}
|
|
39840
39855
|
protoOf(GameClientEngineControllerImpl$createOnlineGameEngineWithLogic$$inlined$map$1).t7i = function (action) {
|
|
39841
39856
|
return isInterface(action, Action);
|
|
39842
39857
|
};
|
|
39843
39858
|
protoOf(GameClientEngineControllerImpl$createOnlineGameEngineWithLogic$$inlined$map$1).ib0 = function (state, action) {
|
|
39844
|
-
return this.
|
|
39859
|
+
return this.lf5_1(state, isInterface(action, Action) ? action : THROW_CCE());
|
|
39845
39860
|
};
|
|
39846
39861
|
protoOf(GameClientEngineControllerImpl$createOnlineGameEngineWithLogic$$inlined$map$1).j7k = function (state, action) {
|
|
39847
39862
|
return this.ib0((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
@@ -39972,7 +39987,7 @@
|
|
|
39972
39987
|
function GameClientEngineControllerImpl(loggerCallback, production) {
|
|
39973
39988
|
loggerCallback = loggerCallback === VOID ? null : loggerCallback;
|
|
39974
39989
|
production = production === VOID ? true : production;
|
|
39975
|
-
this.
|
|
39990
|
+
this.hf5_1 = loggerCallback;
|
|
39976
39991
|
var tmp = AppEnvironment_getInstance();
|
|
39977
39992
|
var tmp_0;
|
|
39978
39993
|
if (production) {
|
|
@@ -39982,9 +39997,9 @@
|
|
|
39982
39997
|
}
|
|
39983
39998
|
tmp.w7p(tmp_0);
|
|
39984
39999
|
var tmp_1 = this;
|
|
39985
|
-
tmp_1.
|
|
40000
|
+
tmp_1.if5_1 = lazy_0(GameClientEngineControllerImpl$logger$delegate$lambda);
|
|
39986
40001
|
var tmp_2 = this;
|
|
39987
|
-
tmp_2.
|
|
40002
|
+
tmp_2.jf5_1 = lazy_0(GameClientEngineControllerImpl$di$delegate$lambda(this));
|
|
39988
40003
|
var tmp_3 = this;
|
|
39989
40004
|
// Inline function 'org.kodein.di.instance' call
|
|
39990
40005
|
var this_0 = _get_di__ndbzja(this);
|
|
@@ -39993,10 +40008,10 @@
|
|
|
39993
40008
|
var tmp$ret$0 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
39994
40009
|
var tmp_5 = Instance(this_0, tmp$ret$0, null);
|
|
39995
40010
|
var tmp_6 = KProperty1;
|
|
39996
|
-
tmp_3.
|
|
40011
|
+
tmp_3.kf5_1 = tmp_5.c1j(this, getPropertyCallableRef('parser', 1, tmp_6, GameClientEngineControllerImpl$_get_parser_$ref_1fv1b8(), null));
|
|
39997
40012
|
}
|
|
39998
|
-
protoOf(GameClientEngineControllerImpl).
|
|
39999
|
-
var tmp0 = this.
|
|
40013
|
+
protoOf(GameClientEngineControllerImpl).ff5 = function () {
|
|
40014
|
+
var tmp0 = this.kf5_1;
|
|
40000
40015
|
var tmp = KProperty1;
|
|
40001
40016
|
// Inline function 'kotlin.getValue' call
|
|
40002
40017
|
getPropertyCallableRef('parser', 1, tmp, GameClientEngineControllerImpl$_get_parser_$ref_1fv1b8_0(), null);
|
|
@@ -40008,7 +40023,7 @@
|
|
|
40008
40023
|
protoOf(GameClientEngineControllerImpl).createOnlineGameEngine = function (currentPlayerId) {
|
|
40009
40024
|
return this.createOnlineGameEngineWithLogic(currentPlayerId);
|
|
40010
40025
|
};
|
|
40011
|
-
protoOf(GameClientEngineControllerImpl).
|
|
40026
|
+
protoOf(GameClientEngineControllerImpl).gf5 = function (currentPlayerId, reducers, middlewares, gameClientConfig, engineBotConfig, logicConfig, dealerConfig, ratingConfig, leaguesConfig, coreConfig) {
|
|
40012
40027
|
var combinedLogger = Companion_instance_8.hz();
|
|
40013
40028
|
var gameClient = {_v: null};
|
|
40014
40029
|
var tmp0_clientConfig = new ClientConfig(GameType_SERVER_getInstance(), get_entries());
|
|
@@ -40280,29 +40295,31 @@
|
|
|
40280
40295
|
protoOf(ExpectantTimerTag).ignoreValidation = ignoreValidation;
|
|
40281
40296
|
protoOf(ResetMessageTimerTag).ignoreValidation = ignoreValidation;
|
|
40282
40297
|
protoOf(ResetMessageTimerTag).saj = ignoreTimerResetValidation;
|
|
40298
|
+
protoOf(TransitionFailsafeTimerTag).ignoreValidation = ignoreValidation;
|
|
40299
|
+
protoOf(TransitionFailsafeTimerTag).saj = ignoreTimerResetValidation;
|
|
40283
40300
|
defineProp(protoOf(DistributeCardsModel), 'playerId', function () {
|
|
40284
40301
|
return this.d77();
|
|
40285
40302
|
});
|
|
40286
|
-
protoOf(TransitionsReducerImpl).
|
|
40287
|
-
protoOf(TransitionsReducerImpl).
|
|
40303
|
+
protoOf(TransitionsReducerImpl).yew = reducers;
|
|
40304
|
+
protoOf(TransitionsReducerImpl).zew = middlewares;
|
|
40288
40305
|
protoOf(ShowErrorLoggerOutputImpl).d = d;
|
|
40289
40306
|
protoOf(ShowErrorLoggerOutputImpl).e = e;
|
|
40290
40307
|
protoOf(ShowErrorLoggerOutputImpl).i = i;
|
|
40291
40308
|
protoOf(ShowErrorLoggerOutputImpl).v = v;
|
|
40292
40309
|
protoOf(ShowErrorLoggerOutputImpl).w = w;
|
|
40293
40310
|
defineProp(protoOf(ShowErrorLoggerOutputImpl), 'skipWarnings', function () {
|
|
40294
|
-
return this.
|
|
40311
|
+
return this.of4();
|
|
40295
40312
|
}, function (value) {
|
|
40296
|
-
this.
|
|
40313
|
+
this.nf4(value);
|
|
40297
40314
|
});
|
|
40298
40315
|
defineProp(protoOf(ShowErrorLoggerOutputImpl), 'gameClientProvider', function () {
|
|
40299
|
-
return this.
|
|
40316
|
+
return this.qf4();
|
|
40300
40317
|
}, function (value) {
|
|
40301
|
-
this.
|
|
40318
|
+
this.pf4(value);
|
|
40302
40319
|
});
|
|
40303
40320
|
protoOf(GameClientEngineControllerImpl).createOnlineGameEngineWithLogic = createOnlineGameEngineWithLogic;
|
|
40304
40321
|
defineProp(protoOf(GameClientEngineControllerImpl), 'parser', function () {
|
|
40305
|
-
return this.
|
|
40322
|
+
return this.ff5();
|
|
40306
40323
|
});
|
|
40307
40324
|
//endregion
|
|
40308
40325
|
//region block: init
|