jp.ui.app.toolkit 1.0.26 → 1.0.28
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/dist/index.d.ts +299 -13
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/src/data/slices/game-table-screen-slice/selectors/base-selectors.d.ts +343 -17
- package/dist/src/data/slices/game-table-screen-slice/selectors/cards-selectors.d.ts +255 -8
- package/package.json +1 -1
- package/dist/src/data/middleware/app-middleware.d.ts +0 -1
- package/dist/src/data/middleware/game-table-screen-middleware.d.ts +0 -3
- package/dist/src/data/middleware/game-table-screen-move-button-click-middleware.d.ts +0 -3
- package/dist/src/data/middleware/menu-screen-item-middleware.d.ts +0 -1
- package/dist/src/data/middleware/menu-screen-middleware.d.ts +0 -1
- package/dist/src/data/middleware/shop-screen-middleware.d.ts +0 -1
- package/dist/src/data/middleware/tables-screen-item-middleware.d.ts +0 -1
- package/dist/src/data/middleware/tables-screen-middleware.d.ts +0 -1
- package/dist/src/data/middleware/ws-connector-middleware.d.ts +0 -1
- package/dist/src/data/slices/game-table-screen-slice/action-types.d.ts +0 -10
- package/dist/src/data/slices/game-table-screen-slice/actions.d.ts +0 -20
- package/dist/src/data/slices/game-table-screen-slice/reducer.d.ts +0 -9
- package/dist/src/data/slices/game-table-screen-slice/selectors.d.ts +0 -1012
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as _reduxjs_toolkit from '@reduxjs/toolkit';
|
|
|
4
4
|
import { Store, PayloadAction, ListenerEffectAPI } from '@reduxjs/toolkit';
|
|
5
5
|
import * as redux from 'redux';
|
|
6
6
|
import * as jp_common_models from 'jp.common.models';
|
|
7
|
-
import { IBaseTableGameState } from 'jp.common.models';
|
|
7
|
+
import { IBaseTableGameState, IBaseTableGameStateMovesPanel, IBaseTableGameStateSummary, ICardsPanel } from 'jp.common.models';
|
|
8
8
|
import * as immer from 'immer';
|
|
9
9
|
import * as jp_common_view from 'jp.common.view';
|
|
10
10
|
import { AppScreenTypes, AppScreenSectionListItem, BaseAppScreen, ClientInfoType } from 'jp.common.view';
|
|
@@ -528,18 +528,18 @@ declare const baseSelectors: {
|
|
|
528
528
|
argsMemoize: typeof reselect.weakMapMemoize;
|
|
529
529
|
memoize: typeof reselect.weakMapMemoize;
|
|
530
530
|
};
|
|
531
|
-
getMovesPanel: ((state: any, ...params: any) =>
|
|
531
|
+
getMovesPanel: ((state: any, ...params: any) => IBaseTableGameStateMovesPanel) & {
|
|
532
532
|
clearCache: () => void;
|
|
533
533
|
resultsCount: () => number;
|
|
534
534
|
resetResultsCount: () => void;
|
|
535
535
|
} & {
|
|
536
|
-
resultFunc: (resultFuncArgs_0: IBaseTableGameState | undefined) =>
|
|
537
|
-
memoizedResultFunc: ((resultFuncArgs_0: IBaseTableGameState | undefined) =>
|
|
536
|
+
resultFunc: (resultFuncArgs_0: IBaseTableGameState | undefined) => IBaseTableGameStateMovesPanel;
|
|
537
|
+
memoizedResultFunc: ((resultFuncArgs_0: IBaseTableGameState | undefined) => IBaseTableGameStateMovesPanel) & {
|
|
538
538
|
clearCache: () => void;
|
|
539
539
|
resultsCount: () => number;
|
|
540
540
|
resetResultsCount: () => void;
|
|
541
541
|
};
|
|
542
|
-
lastResult: () =>
|
|
542
|
+
lastResult: () => IBaseTableGameStateMovesPanel;
|
|
543
543
|
dependencies: [((state: any, ...params: any) => IBaseTableGameState | undefined) & {
|
|
544
544
|
clearCache: () => void;
|
|
545
545
|
resultsCount: () => number;
|
|
@@ -569,6 +569,128 @@ declare const baseSelectors: {
|
|
|
569
569
|
argsMemoize: typeof reselect.weakMapMemoize;
|
|
570
570
|
memoize: typeof reselect.weakMapMemoize;
|
|
571
571
|
};
|
|
572
|
+
getMovesPanelIsOpen: ((state: any, ...params: any) => boolean) & {
|
|
573
|
+
clearCache: () => void;
|
|
574
|
+
resultsCount: () => number;
|
|
575
|
+
resetResultsCount: () => void;
|
|
576
|
+
} & {
|
|
577
|
+
resultFunc: (resultFuncArgs_0: IBaseTableGameStateMovesPanel) => boolean;
|
|
578
|
+
memoizedResultFunc: ((resultFuncArgs_0: IBaseTableGameStateMovesPanel) => boolean) & {
|
|
579
|
+
clearCache: () => void;
|
|
580
|
+
resultsCount: () => number;
|
|
581
|
+
resetResultsCount: () => void;
|
|
582
|
+
};
|
|
583
|
+
lastResult: () => boolean;
|
|
584
|
+
dependencies: [((state: any, ...params: any) => IBaseTableGameStateMovesPanel) & {
|
|
585
|
+
clearCache: () => void;
|
|
586
|
+
resultsCount: () => number;
|
|
587
|
+
resetResultsCount: () => void;
|
|
588
|
+
} & {
|
|
589
|
+
resultFunc: (resultFuncArgs_0: IBaseTableGameState | undefined) => IBaseTableGameStateMovesPanel;
|
|
590
|
+
memoizedResultFunc: ((resultFuncArgs_0: IBaseTableGameState | undefined) => IBaseTableGameStateMovesPanel) & {
|
|
591
|
+
clearCache: () => void;
|
|
592
|
+
resultsCount: () => number;
|
|
593
|
+
resetResultsCount: () => void;
|
|
594
|
+
};
|
|
595
|
+
lastResult: () => IBaseTableGameStateMovesPanel;
|
|
596
|
+
dependencies: [((state: any, ...params: any) => IBaseTableGameState | undefined) & {
|
|
597
|
+
clearCache: () => void;
|
|
598
|
+
resultsCount: () => number;
|
|
599
|
+
resetResultsCount: () => void;
|
|
600
|
+
} & {
|
|
601
|
+
resultFunc: (resultFuncArgs_0: IBaseTableScreenState) => IBaseTableGameState | undefined;
|
|
602
|
+
memoizedResultFunc: ((resultFuncArgs_0: IBaseTableScreenState) => IBaseTableGameState | undefined) & {
|
|
603
|
+
clearCache: () => void;
|
|
604
|
+
resultsCount: () => number;
|
|
605
|
+
resetResultsCount: () => void;
|
|
606
|
+
};
|
|
607
|
+
lastResult: () => IBaseTableGameState | undefined;
|
|
608
|
+
dependencies: [(state: RootState) => IBaseTableScreenState];
|
|
609
|
+
recomputations: () => number;
|
|
610
|
+
resetRecomputations: () => void;
|
|
611
|
+
dependencyRecomputations: () => number;
|
|
612
|
+
resetDependencyRecomputations: () => void;
|
|
613
|
+
} & {
|
|
614
|
+
argsMemoize: typeof reselect.weakMapMemoize;
|
|
615
|
+
memoize: typeof reselect.weakMapMemoize;
|
|
616
|
+
}];
|
|
617
|
+
recomputations: () => number;
|
|
618
|
+
resetRecomputations: () => void;
|
|
619
|
+
dependencyRecomputations: () => number;
|
|
620
|
+
resetDependencyRecomputations: () => void;
|
|
621
|
+
} & {
|
|
622
|
+
argsMemoize: typeof reselect.weakMapMemoize;
|
|
623
|
+
memoize: typeof reselect.weakMapMemoize;
|
|
624
|
+
}];
|
|
625
|
+
recomputations: () => number;
|
|
626
|
+
resetRecomputations: () => void;
|
|
627
|
+
dependencyRecomputations: () => number;
|
|
628
|
+
resetDependencyRecomputations: () => void;
|
|
629
|
+
} & {
|
|
630
|
+
argsMemoize: typeof reselect.weakMapMemoize;
|
|
631
|
+
memoize: typeof reselect.weakMapMemoize;
|
|
632
|
+
};
|
|
633
|
+
getMovesPanelMoves: ((state: any, ...params: any) => jp_common_models.IBaseTableGameStateYoursActionItem[]) & {
|
|
634
|
+
clearCache: () => void;
|
|
635
|
+
resultsCount: () => number;
|
|
636
|
+
resetResultsCount: () => void;
|
|
637
|
+
} & {
|
|
638
|
+
resultFunc: (resultFuncArgs_0: IBaseTableGameStateMovesPanel) => jp_common_models.IBaseTableGameStateYoursActionItem[];
|
|
639
|
+
memoizedResultFunc: ((resultFuncArgs_0: IBaseTableGameStateMovesPanel) => jp_common_models.IBaseTableGameStateYoursActionItem[]) & {
|
|
640
|
+
clearCache: () => void;
|
|
641
|
+
resultsCount: () => number;
|
|
642
|
+
resetResultsCount: () => void;
|
|
643
|
+
};
|
|
644
|
+
lastResult: () => jp_common_models.IBaseTableGameStateYoursActionItem[];
|
|
645
|
+
dependencies: [((state: any, ...params: any) => IBaseTableGameStateMovesPanel) & {
|
|
646
|
+
clearCache: () => void;
|
|
647
|
+
resultsCount: () => number;
|
|
648
|
+
resetResultsCount: () => void;
|
|
649
|
+
} & {
|
|
650
|
+
resultFunc: (resultFuncArgs_0: IBaseTableGameState | undefined) => IBaseTableGameStateMovesPanel;
|
|
651
|
+
memoizedResultFunc: ((resultFuncArgs_0: IBaseTableGameState | undefined) => IBaseTableGameStateMovesPanel) & {
|
|
652
|
+
clearCache: () => void;
|
|
653
|
+
resultsCount: () => number;
|
|
654
|
+
resetResultsCount: () => void;
|
|
655
|
+
};
|
|
656
|
+
lastResult: () => IBaseTableGameStateMovesPanel;
|
|
657
|
+
dependencies: [((state: any, ...params: any) => IBaseTableGameState | undefined) & {
|
|
658
|
+
clearCache: () => void;
|
|
659
|
+
resultsCount: () => number;
|
|
660
|
+
resetResultsCount: () => void;
|
|
661
|
+
} & {
|
|
662
|
+
resultFunc: (resultFuncArgs_0: IBaseTableScreenState) => IBaseTableGameState | undefined;
|
|
663
|
+
memoizedResultFunc: ((resultFuncArgs_0: IBaseTableScreenState) => IBaseTableGameState | undefined) & {
|
|
664
|
+
clearCache: () => void;
|
|
665
|
+
resultsCount: () => number;
|
|
666
|
+
resetResultsCount: () => void;
|
|
667
|
+
};
|
|
668
|
+
lastResult: () => IBaseTableGameState | undefined;
|
|
669
|
+
dependencies: [(state: RootState) => IBaseTableScreenState];
|
|
670
|
+
recomputations: () => number;
|
|
671
|
+
resetRecomputations: () => void;
|
|
672
|
+
dependencyRecomputations: () => number;
|
|
673
|
+
resetDependencyRecomputations: () => void;
|
|
674
|
+
} & {
|
|
675
|
+
argsMemoize: typeof reselect.weakMapMemoize;
|
|
676
|
+
memoize: typeof reselect.weakMapMemoize;
|
|
677
|
+
}];
|
|
678
|
+
recomputations: () => number;
|
|
679
|
+
resetRecomputations: () => void;
|
|
680
|
+
dependencyRecomputations: () => number;
|
|
681
|
+
resetDependencyRecomputations: () => void;
|
|
682
|
+
} & {
|
|
683
|
+
argsMemoize: typeof reselect.weakMapMemoize;
|
|
684
|
+
memoize: typeof reselect.weakMapMemoize;
|
|
685
|
+
}];
|
|
686
|
+
recomputations: () => number;
|
|
687
|
+
resetRecomputations: () => void;
|
|
688
|
+
dependencyRecomputations: () => number;
|
|
689
|
+
resetDependencyRecomputations: () => void;
|
|
690
|
+
} & {
|
|
691
|
+
argsMemoize: typeof reselect.weakMapMemoize;
|
|
692
|
+
memoize: typeof reselect.weakMapMemoize;
|
|
693
|
+
};
|
|
572
694
|
getYoursMessage: ((state: any, ...params: any) => string) & {
|
|
573
695
|
clearCache: () => void;
|
|
574
696
|
resultsCount: () => number;
|
|
@@ -651,18 +773,59 @@ declare const baseSelectors: {
|
|
|
651
773
|
argsMemoize: typeof reselect.weakMapMemoize;
|
|
652
774
|
memoize: typeof reselect.weakMapMemoize;
|
|
653
775
|
};
|
|
654
|
-
getSummary: ((state: any, ...params: any) =>
|
|
776
|
+
getSummary: ((state: any, ...params: any) => IBaseTableGameStateSummary) & {
|
|
777
|
+
clearCache: () => void;
|
|
778
|
+
resultsCount: () => number;
|
|
779
|
+
resetResultsCount: () => void;
|
|
780
|
+
} & {
|
|
781
|
+
resultFunc: (resultFuncArgs_0: IBaseTableGameState | undefined) => IBaseTableGameStateSummary;
|
|
782
|
+
memoizedResultFunc: ((resultFuncArgs_0: IBaseTableGameState | undefined) => IBaseTableGameStateSummary) & {
|
|
783
|
+
clearCache: () => void;
|
|
784
|
+
resultsCount: () => number;
|
|
785
|
+
resetResultsCount: () => void;
|
|
786
|
+
};
|
|
787
|
+
lastResult: () => IBaseTableGameStateSummary;
|
|
788
|
+
dependencies: [((state: any, ...params: any) => IBaseTableGameState | undefined) & {
|
|
789
|
+
clearCache: () => void;
|
|
790
|
+
resultsCount: () => number;
|
|
791
|
+
resetResultsCount: () => void;
|
|
792
|
+
} & {
|
|
793
|
+
resultFunc: (resultFuncArgs_0: IBaseTableScreenState) => IBaseTableGameState | undefined;
|
|
794
|
+
memoizedResultFunc: ((resultFuncArgs_0: IBaseTableScreenState) => IBaseTableGameState | undefined) & {
|
|
795
|
+
clearCache: () => void;
|
|
796
|
+
resultsCount: () => number;
|
|
797
|
+
resetResultsCount: () => void;
|
|
798
|
+
};
|
|
799
|
+
lastResult: () => IBaseTableGameState | undefined;
|
|
800
|
+
dependencies: [(state: RootState) => IBaseTableScreenState];
|
|
801
|
+
recomputations: () => number;
|
|
802
|
+
resetRecomputations: () => void;
|
|
803
|
+
dependencyRecomputations: () => number;
|
|
804
|
+
resetDependencyRecomputations: () => void;
|
|
805
|
+
} & {
|
|
806
|
+
argsMemoize: typeof reselect.weakMapMemoize;
|
|
807
|
+
memoize: typeof reselect.weakMapMemoize;
|
|
808
|
+
}];
|
|
809
|
+
recomputations: () => number;
|
|
810
|
+
resetRecomputations: () => void;
|
|
811
|
+
dependencyRecomputations: () => number;
|
|
812
|
+
resetDependencyRecomputations: () => void;
|
|
813
|
+
} & {
|
|
814
|
+
argsMemoize: typeof reselect.weakMapMemoize;
|
|
815
|
+
memoize: typeof reselect.weakMapMemoize;
|
|
816
|
+
};
|
|
817
|
+
getSummaryList: ((state: any, ...params: any) => jp_common_models.IBaseTableGameStateSummaryItem[]) & {
|
|
655
818
|
clearCache: () => void;
|
|
656
819
|
resultsCount: () => number;
|
|
657
820
|
resetResultsCount: () => void;
|
|
658
821
|
} & {
|
|
659
|
-
resultFunc: (resultFuncArgs_0: IBaseTableGameState | undefined) => jp_common_models.
|
|
660
|
-
memoizedResultFunc: ((resultFuncArgs_0: IBaseTableGameState | undefined) => jp_common_models.
|
|
822
|
+
resultFunc: (resultFuncArgs_0: IBaseTableGameState | undefined) => jp_common_models.IBaseTableGameStateSummaryItem[];
|
|
823
|
+
memoizedResultFunc: ((resultFuncArgs_0: IBaseTableGameState | undefined) => jp_common_models.IBaseTableGameStateSummaryItem[]) & {
|
|
661
824
|
clearCache: () => void;
|
|
662
825
|
resultsCount: () => number;
|
|
663
826
|
resetResultsCount: () => void;
|
|
664
827
|
};
|
|
665
|
-
lastResult: () => jp_common_models.
|
|
828
|
+
lastResult: () => jp_common_models.IBaseTableGameStateSummaryItem[];
|
|
666
829
|
dependencies: [((state: any, ...params: any) => IBaseTableGameState | undefined) & {
|
|
667
830
|
clearCache: () => void;
|
|
668
831
|
resultsCount: () => number;
|
|
@@ -859,18 +1022,141 @@ declare const cardsSelectors: {
|
|
|
859
1022
|
argsMemoize: typeof reselect.weakMapMemoize;
|
|
860
1023
|
memoize: typeof reselect.weakMapMemoize;
|
|
861
1024
|
};
|
|
862
|
-
getCardsPanel: ((state: any, ...params: any) =>
|
|
1025
|
+
getCardsPanel: ((state: any, ...params: any) => ICardsPanel) & {
|
|
1026
|
+
clearCache: () => void;
|
|
1027
|
+
resultsCount: () => number;
|
|
1028
|
+
resetResultsCount: () => void;
|
|
1029
|
+
} & {
|
|
1030
|
+
resultFunc: (resultFuncArgs_0: jp_common_models.IBaseTableGameState | undefined) => ICardsPanel;
|
|
1031
|
+
memoizedResultFunc: ((resultFuncArgs_0: jp_common_models.IBaseTableGameState | undefined) => ICardsPanel) & {
|
|
1032
|
+
clearCache: () => void;
|
|
1033
|
+
resultsCount: () => number;
|
|
1034
|
+
resetResultsCount: () => void;
|
|
1035
|
+
};
|
|
1036
|
+
lastResult: () => ICardsPanel;
|
|
1037
|
+
dependencies: [((state: any, ...params: any) => jp_common_models.IBaseTableGameState | undefined) & {
|
|
1038
|
+
clearCache: () => void;
|
|
1039
|
+
resultsCount: () => number;
|
|
1040
|
+
resetResultsCount: () => void;
|
|
1041
|
+
} & {
|
|
1042
|
+
resultFunc: (resultFuncArgs_0: IBaseTableScreenState) => jp_common_models.IBaseTableGameState | undefined;
|
|
1043
|
+
memoizedResultFunc: ((resultFuncArgs_0: IBaseTableScreenState) => jp_common_models.IBaseTableGameState | undefined) & {
|
|
1044
|
+
clearCache: () => void;
|
|
1045
|
+
resultsCount: () => number;
|
|
1046
|
+
resetResultsCount: () => void;
|
|
1047
|
+
};
|
|
1048
|
+
lastResult: () => jp_common_models.IBaseTableGameState | undefined;
|
|
1049
|
+
dependencies: [(state: RootState) => IBaseTableScreenState];
|
|
1050
|
+
recomputations: () => number;
|
|
1051
|
+
resetRecomputations: () => void;
|
|
1052
|
+
dependencyRecomputations: () => number;
|
|
1053
|
+
resetDependencyRecomputations: () => void;
|
|
1054
|
+
} & {
|
|
1055
|
+
argsMemoize: typeof reselect.weakMapMemoize;
|
|
1056
|
+
memoize: typeof reselect.weakMapMemoize;
|
|
1057
|
+
}];
|
|
1058
|
+
recomputations: () => number;
|
|
1059
|
+
resetRecomputations: () => void;
|
|
1060
|
+
dependencyRecomputations: () => number;
|
|
1061
|
+
resetDependencyRecomputations: () => void;
|
|
1062
|
+
} & {
|
|
1063
|
+
argsMemoize: typeof reselect.weakMapMemoize;
|
|
1064
|
+
memoize: typeof reselect.weakMapMemoize;
|
|
1065
|
+
};
|
|
1066
|
+
getCardsPanelIsOpen: ((state: any, ...params: any) => boolean) & {
|
|
1067
|
+
clearCache: () => void;
|
|
1068
|
+
resultsCount: () => number;
|
|
1069
|
+
resetResultsCount: () => void;
|
|
1070
|
+
} & {
|
|
1071
|
+
resultFunc: (resultFuncArgs_0: jp_common_models.IBaseTableGameState | undefined) => boolean;
|
|
1072
|
+
memoizedResultFunc: ((resultFuncArgs_0: jp_common_models.IBaseTableGameState | undefined) => boolean) & {
|
|
1073
|
+
clearCache: () => void;
|
|
1074
|
+
resultsCount: () => number;
|
|
1075
|
+
resetResultsCount: () => void;
|
|
1076
|
+
};
|
|
1077
|
+
lastResult: () => boolean;
|
|
1078
|
+
dependencies: [((state: any, ...params: any) => jp_common_models.IBaseTableGameState | undefined) & {
|
|
1079
|
+
clearCache: () => void;
|
|
1080
|
+
resultsCount: () => number;
|
|
1081
|
+
resetResultsCount: () => void;
|
|
1082
|
+
} & {
|
|
1083
|
+
resultFunc: (resultFuncArgs_0: IBaseTableScreenState) => jp_common_models.IBaseTableGameState | undefined;
|
|
1084
|
+
memoizedResultFunc: ((resultFuncArgs_0: IBaseTableScreenState) => jp_common_models.IBaseTableGameState | undefined) & {
|
|
1085
|
+
clearCache: () => void;
|
|
1086
|
+
resultsCount: () => number;
|
|
1087
|
+
resetResultsCount: () => void;
|
|
1088
|
+
};
|
|
1089
|
+
lastResult: () => jp_common_models.IBaseTableGameState | undefined;
|
|
1090
|
+
dependencies: [(state: RootState) => IBaseTableScreenState];
|
|
1091
|
+
recomputations: () => number;
|
|
1092
|
+
resetRecomputations: () => void;
|
|
1093
|
+
dependencyRecomputations: () => number;
|
|
1094
|
+
resetDependencyRecomputations: () => void;
|
|
1095
|
+
} & {
|
|
1096
|
+
argsMemoize: typeof reselect.weakMapMemoize;
|
|
1097
|
+
memoize: typeof reselect.weakMapMemoize;
|
|
1098
|
+
}];
|
|
1099
|
+
recomputations: () => number;
|
|
1100
|
+
resetRecomputations: () => void;
|
|
1101
|
+
dependencyRecomputations: () => number;
|
|
1102
|
+
resetDependencyRecomputations: () => void;
|
|
1103
|
+
} & {
|
|
1104
|
+
argsMemoize: typeof reselect.weakMapMemoize;
|
|
1105
|
+
memoize: typeof reselect.weakMapMemoize;
|
|
1106
|
+
};
|
|
1107
|
+
getCardsPanelCards: ((state: any, ...params: any) => jp_common_models.ICardState[]) & {
|
|
1108
|
+
clearCache: () => void;
|
|
1109
|
+
resultsCount: () => number;
|
|
1110
|
+
resetResultsCount: () => void;
|
|
1111
|
+
} & {
|
|
1112
|
+
resultFunc: (resultFuncArgs_0: jp_common_models.IBaseTableGameState | undefined) => jp_common_models.ICardState[];
|
|
1113
|
+
memoizedResultFunc: ((resultFuncArgs_0: jp_common_models.IBaseTableGameState | undefined) => jp_common_models.ICardState[]) & {
|
|
1114
|
+
clearCache: () => void;
|
|
1115
|
+
resultsCount: () => number;
|
|
1116
|
+
resetResultsCount: () => void;
|
|
1117
|
+
};
|
|
1118
|
+
lastResult: () => jp_common_models.ICardState[];
|
|
1119
|
+
dependencies: [((state: any, ...params: any) => jp_common_models.IBaseTableGameState | undefined) & {
|
|
1120
|
+
clearCache: () => void;
|
|
1121
|
+
resultsCount: () => number;
|
|
1122
|
+
resetResultsCount: () => void;
|
|
1123
|
+
} & {
|
|
1124
|
+
resultFunc: (resultFuncArgs_0: IBaseTableScreenState) => jp_common_models.IBaseTableGameState | undefined;
|
|
1125
|
+
memoizedResultFunc: ((resultFuncArgs_0: IBaseTableScreenState) => jp_common_models.IBaseTableGameState | undefined) & {
|
|
1126
|
+
clearCache: () => void;
|
|
1127
|
+
resultsCount: () => number;
|
|
1128
|
+
resetResultsCount: () => void;
|
|
1129
|
+
};
|
|
1130
|
+
lastResult: () => jp_common_models.IBaseTableGameState | undefined;
|
|
1131
|
+
dependencies: [(state: RootState) => IBaseTableScreenState];
|
|
1132
|
+
recomputations: () => number;
|
|
1133
|
+
resetRecomputations: () => void;
|
|
1134
|
+
dependencyRecomputations: () => number;
|
|
1135
|
+
resetDependencyRecomputations: () => void;
|
|
1136
|
+
} & {
|
|
1137
|
+
argsMemoize: typeof reselect.weakMapMemoize;
|
|
1138
|
+
memoize: typeof reselect.weakMapMemoize;
|
|
1139
|
+
}];
|
|
1140
|
+
recomputations: () => number;
|
|
1141
|
+
resetRecomputations: () => void;
|
|
1142
|
+
dependencyRecomputations: () => number;
|
|
1143
|
+
resetDependencyRecomputations: () => void;
|
|
1144
|
+
} & {
|
|
1145
|
+
argsMemoize: typeof reselect.weakMapMemoize;
|
|
1146
|
+
memoize: typeof reselect.weakMapMemoize;
|
|
1147
|
+
};
|
|
1148
|
+
getCardsPanelMoves: ((state: any, ...params: any) => jp_common_models.IBaseTableGameStateYoursActionItem[]) & {
|
|
863
1149
|
clearCache: () => void;
|
|
864
1150
|
resultsCount: () => number;
|
|
865
1151
|
resetResultsCount: () => void;
|
|
866
1152
|
} & {
|
|
867
|
-
resultFunc: (resultFuncArgs_0: jp_common_models.IBaseTableGameState | undefined) => jp_common_models.
|
|
868
|
-
memoizedResultFunc: ((resultFuncArgs_0: jp_common_models.IBaseTableGameState | undefined) => jp_common_models.
|
|
1153
|
+
resultFunc: (resultFuncArgs_0: jp_common_models.IBaseTableGameState | undefined) => jp_common_models.IBaseTableGameStateYoursActionItem[];
|
|
1154
|
+
memoizedResultFunc: ((resultFuncArgs_0: jp_common_models.IBaseTableGameState | undefined) => jp_common_models.IBaseTableGameStateYoursActionItem[]) & {
|
|
869
1155
|
clearCache: () => void;
|
|
870
1156
|
resultsCount: () => number;
|
|
871
1157
|
resetResultsCount: () => void;
|
|
872
1158
|
};
|
|
873
|
-
lastResult: () => jp_common_models.
|
|
1159
|
+
lastResult: () => jp_common_models.IBaseTableGameStateYoursActionItem[];
|
|
874
1160
|
dependencies: [((state: any, ...params: any) => jp_common_models.IBaseTableGameState | undefined) & {
|
|
875
1161
|
clearCache: () => void;
|
|
876
1162
|
resultsCount: () => number;
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import*as t from"react";import e,{useCallback as n,useEffect as r,Component as i}from"react";import{useDispatch as o,useSelector as c,Provider as a}from"react-redux";import{RoutesEnum as s}from"jp.common.view";import{createSlice as u,createAction as l,createReducer as d,createSelector as _,createListenerMiddleware as f}from"@reduxjs/toolkit";import T from"lodash.clonedeep";import{UniversalScreen as E,PageScreen as p,BottomSelectionPanel as m}from"jp.ui.app.ds";import L from"axios";import{io as v}from"socket.io-client";import g from"mobile-detect";import h from"dayjs";import{Routes as C,Route as I,MemoryRouter as U}from"react-router-dom";import{ThemeProvider as A}from"@emotion/react";import{getLightTheme as R,ColorSchema as S}from"jp.ui.theme";import{useNavigate as N}from"react-router";import{setPeriodicTimer as y}from"jp.common.utils";import{BaseTablePlayerActionsEnum as b}from"jp.common.models";var B=function(t,e){return B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},B(t,e)};var H=function(){return H=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},H.apply(this,arguments)};function O(t,e,n,r){return new(n||(n=Promise))(function(i,o){function c(t){try{s(r.next(t))}catch(t){o(t)}}function a(t){try{s(r.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(c,a)}s((r=r.apply(t,e||[])).next())})}function k(t,e){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},c=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return c.next=a(0),c.throw=a(1),c.return=a(2),"function"==typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c;function a(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;c&&(c=0,a[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=e.call(t,o)}catch(t){a=[6,t],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}"function"==typeof SuppressedError&&SuppressedError;var V=u({name:"appSlice",initialState:{isLoading:!1,isError:!1,isInit:!1},reducers:{initApp:function(t){return H(H({},t),{isLoading:!0})},deactivateApp:function(t){return H(H({},t),{isInit:!1,isLoading:!1})},errorApp:function(t){return H(H({},t),{isLoading:!1,isInit:!0,isError:!0})},successApp:function(t){return H(H({},t),{isLoading:!1,isInit:!0})}},selectors:{isInit:function(t){return t.isInit},isLoading:function(t){return t.isLoading},isError:function(t){return t.isError}}});V.reducer;var w=u({name:"menuScreenSlice",initialState:{isError:!1,isLoading:!1,data:void 0},reducers:{start:function(t){return H(H({},t),{isLoading:!0,isError:null,data:null})},error:function(t){return H(H({},t),{isLoading:!1,isError:!0})},success:function(t,e){return H(H({},t),{isLoading:!1,isError:!1,data:e.payload})},init:function(t){return t},listItemClick:function(t,e){return t}},selectors:{getScreen:function(t){return t.data},isLoading:function(t){return t.isLoading},isError:function(t){return t.isError}}});w.reducer;var P=u({name:"shopScreenSlice",initialState:{isError:!1,isLoading:!1,data:void 0},reducers:{start:function(t){return H(H({},t),{isLoading:!0,isError:null,data:null})},error:function(t){return H(H({},t),{isLoading:!1,isError:!0})},success:function(t,e){return H(H({},t),{isLoading:!1,isError:!1,data:e.payload})},init:function(t){return t}},selectors:{getScreen:function(t){return t.data},isLoading:function(t){return t.isLoading},isError:function(t){return t.isError}}});P.reducer;var M=u({name:"tablesScreenSlice",initialState:{isError:!1,isLoading:!1,data:void 0},reducers:{start:function(t){return H(H({},t),{isLoading:!0,isError:null,data:null})},error:function(t){return H(H({},t),{isLoading:!1,isError:!0})},success:function(t,e){return H(H({},t),{isLoading:!1,isError:!1,data:e.payload})},init:function(t){return t},listItemClick:function(t,e){return t}},selectors:{getScreen:function(t){return t.data},isLoading:function(t){return t.isLoading},isError:function(t){return t.isError}}});M.reducer;var G=u({name:"raiseBottomSheetBlockSlice",initialState:{isOpen:!1},reducers:{open:function(t){return H(H({},t),{isOpen:!0})},close:function(t){return H(H({},t),{isOpen:!1})}},selectors:{getIsOpen:function(t){return t.isOpen}}});G.reducer;var K=u({name:"reactionBottomSheetBlockSlice",initialState:{isOpen:!1},reducers:{open:function(t){return H(H({},t),{isOpen:!0})},close:function(t){return H(H({},t),{isOpen:!1})}},selectors:{getIsOpen:function(t){return t.isOpen}}});K.reducer;var W,D=u({name:"wsConnectorSlice",initialState:{isConnected:!1,error:null},reducers:{connect:function(t){return H(H({},t),{isConnected:!1})},connected:function(t){return H(H({},t),{isConnected:!0})},disconnect:function(t,e){return H(H({},t),{isConnected:!1})},error:function(t,e){return t},message:function(t,e){return t}},selectors:{getIsConnected:function(t){return t.isConnected}}});D.reducer,function(t){t.INIT="@tableScreenSlice/init",t.DEACTIVATE="@tableScreenSlice/deactivate",t.BACK_CLICK="@tableScreenSlice/backClick",t.START="@tableScreenSlice/start",t.SUCCESS="@tableScreenSlice/success",t.ERROR="@tableScreenSlice/error",t.MOVE_BUTTON_CLICK="@tableScreenSlice/moveButtonClick",t.SET_WS_TABLE_STATE="@tableScreenSlice/setWsTableState",t.DECREMENT_PLAYERS_TURN_TIMEOUT_TIMER="@tableScreenSlice/decrementPlayersTurnTimeoutTimer",t.DECREMENT_RESTART_TIMEOUT_TIMER="@tableScreenSlice/decrementRestartTimeoutTimer"}(W||(W={}));var x=l(W.START),j=l(W.SUCCESS),Y=l(W.ERROR),z=l(W.INIT),X=l(W.DEACTIVATE),q=l(W.BACK_CLICK),F=l(W.MOVE_BUTTON_CLICK),Z=l(W.SET_WS_TABLE_STATE),J=l(W.DECREMENT_PLAYERS_TURN_TIMEOUT_TIMER),Q=l(W.DECREMENT_RESTART_TIMEOUT_TIMER),$={start:x,success:j,error:Y,init:z,deactivate:X,backClick:q,moveButtonClick:F,setWsTableState:Z,decrementPlayersTurnTimeoutTimer:J,decrementRestartTimeoutTimer:Q},tt=d({isError:!1,isLoading:!1,data:void 0},function(t){return t.addCase(x,function(t){return H(H({},t),{isLoading:!0,isError:!1})}).addCase(j,function(t,e){return H(H({},t),{isLoading:!1,isError:!1,data:e.payload})}).addCase(Y,function(t){return H(H({},t),{isLoading:!1,isError:!0})}).addCase(Z,function(t,e){return H(H({},t),{isLoading:!1,isError:!1,data:e.payload})}).addCase(J,function(t,e){var n,r=T(t);return(null===(n=r.data)||void 0===n?void 0:n.checkPlayersTurnTimerRemain)?(r.data.checkPlayersTurnTimerRemain-=1,r):t}).addCase(Q,function(t,e){var n,r=T(t);return(null===(n=r.data)||void 0===n?void 0:n.restartTimerRemain)?(r.data.restartTimerRemain-=1,r):t})}),et=function(t){return t.gameTableScreenSlice},nt=_(et,function(t){return null==t?void 0:t.data}),rt=_(et,function(t){return null==t?void 0:t.isLoading}),it={actions:$,reducer:tt,selectors:{base:{isError:_(et,function(t){return null==t?void 0:t.isError}),isLoading:rt,getRoomId:_(nt,function(t){return null==t?void 0:t.roomId}),getTableId:_(nt,function(t){return null==t?void 0:t.tableId}),getGameId:_(nt,function(t){return null==t?void 0:t.gameId}),getTableSize:_(nt,function(t){return null==t?void 0:t.tableSize}),getCheckPlayersTurnTimerRemain:_(nt,function(t){return null==t?void 0:t.checkPlayersTurnTimerRemain}),getRestartTimerRemain:_(nt,function(t){return null==t?void 0:t.restartTimerRemain}),getMovesPanel:_(nt,function(t){return null==t?void 0:t.movesPanel}),getYoursMessage:_(nt,function(t){return null==t?void 0:t.yoursMessage}),getExtraButtons:_(nt,function(t){return null==t?void 0:t.extraButtons}),getSummary:_(nt,function(t){return null==t?void 0:t.summary})},cards:{getCardPlayers:_(nt,function(t){return null==t?void 0:t.players}),getBaseCard:_(nt,function(t){return null==t?void 0:t.baseCard}),getGameCards:_(nt,function(t){return null==t?void 0:t.gameCards}),getGameCardsPair:_(nt,function(t){return null==t?void 0:t.gameCardsPair}),getCardsPanel:_(nt,function(t){return null==t?void 0:t.cardsPanel})}}};function ot(){return[V,w,P,M,G,K,D]}function ct(){return{appSlice:V.reducer,menuScreenSlice:w.reducer,shopScreenSlice:P.reducer,tablesScreenSlice:M.reducer,raiseBottomSheetBlockSlice:G.reducer,reactionBottomSheetBlockSlice:K.reducer,wsConnectorSlice:D.reducer,gameTableScreenSlice:it.reducer}}var at=function(){var e=o(),r=c(w.selectors.getScreen),i=c(w.selectors.isLoading),a=c(w.selectors.isError),s=n(function(){return e(w.actions.init())},[]),u=n(function(t){return e(w.actions.listItemClick(t))},[]);return t.createElement(E,{screen:r,isLoading:i,isError:a,init:s,sectionHandlers:{listSectionClick:u}})},st=function(){var e=o(),r=c(P.selectors.getScreen),i=c(P.selectors.isLoading),a=c(P.selectors.isError),s=n(function(){return e(P.actions.init())},[]);return t.createElement(E,{screen:r,isLoading:i,isError:a,init:s})},ut=function(){var e=o(),r=c(M.selectors.getScreen),i=c(M.selectors.isLoading),a=c(M.selectors.isError),s=n(function(){return e(M.actions.init())},[]),u=n(function(t){return e(M.actions.listItemClick(t))},[]);return t.createElement(E,{screen:r,isLoading:i,isError:a,init:s,sectionHandlers:{listSectionClick:u}})},lt=function(e){var i=e.children,c=o();r(function(){return c(it.actions.init()),function(){c(it.actions.deactivate())}},[]);var a=n(function(){c(it.actions.backClick())},[]);return t.createElement(p,{title:"title",errorButtonTitle:"errorButton",errorTitle:"error",leftButtonTitle:"back",onLeftButtonClick:a},i)};function dt(){return import.meta.env.PUBLIC_CLIENT_GAME}function _t(){return import.meta.env.PUBLIC_CLIENT_CHANNEL}function ft(){return import.meta.env.PUBLIC_CLIENT_AUTH_VK_URL}function Tt(){return import.meta.env.PUBLIC_CLIENT_AUTH_OK_URL}function Et(){return import.meta.env.PUBLIC_CLIENT_AUTH_YA_URL}function pt(){return import.meta.env.PUBLIC_CLIENT_AUTH_TG_URL}function mt(){return import.meta.env.PUBLIC_CLIENT_AUTH_WEB_URL}function Lt(){return import.meta.env.PUBLIC_CLIENT_MENU_URL}function vt(){return import.meta.env.PUBLIC_CLIENT_SHOP_URL}function gt(){return import.meta.env.PUBLIC_CLIENT_TABLES_URL}function ht(){return import.meta.env.PUBLIC_CLIENT_ENTER_THE_TABLE_URL}function Ct(){return import.meta.env.PUBLIC_CLIENT_WATCH_THE_TABLE_URL}function It(){return import.meta.env.PUBLIC_CLIENT_EXIT_THE_TABLE_URL}function Ut(){return import.meta.env.PUBLIC_CLIENT_MOVE_ON_THE_TABLE_URL}function At(){return import.meta.env.PUBLIC_CLIENT_PLAYER_CHECK_STATE_URL}var Rt=Object.freeze({__proto__:null,getClientAuthOKUrl:Tt,getClientAuthTGUrl:pt,getClientAuthVKUrl:ft,getClientAuthWEBUrl:mt,getClientAuthYAUrl:Et,getClientChannel:_t,getClientEnterTheTableUrl:ht,getClientExitTheTableUrl:It,getClientGame:dt,getClientMenuUrl:Lt,getClientMoveOnTheTableUrl:Ut,getClientPlayerCheckStateUrl:At,getClientShopUrl:vt,getClientTablesUrl:gt,getClientWatchTheTableUrl:Ct});function St(t,e,n){L.defaults.headers.common.client_auth_token=e,L.defaults.headers.common.client_language=n,L.defaults.headers.common.client_game=t.clientGame,L.defaults.headers.common.client_channel=t.clientChannel,L.defaults.headers.common.client_version=t.clientVersion}var Nt,yt=function(){function t(){var t=this;this._openConnectionHandler=function(){t._listenerApi.dispatch(D.actions.connected())},this._closeConnectionHandler=function(e){t._listenerApi.dispatch(D.actions.disconnect(e))},this._messageHandler=function(e){t._listenerApi.dispatch(D.actions.message(e))},this._errorHandler=function(e){t._listenerApi.dispatch(D.actions.error(e.message))}}return t.getInstance=function(){return null!=t._instance||(t._instance=new t),t._instance},t.prototype.connect=function(t,e,n){this._socket=v(t,{auth:{token:e},reconnection:!0,reconnectionDelay:1e3}),this._listenerApi=n,this._authToken=e,this._socket.on("connect",this._openConnectionHandler),this._socket.on("message",this._messageHandler),this._socket.on("connection_error",this._errorHandler),this._socket.on("disconnect",this._closeConnectionHandler),this._listenerApi.dispatch(D.actions.connect())},t.prototype.sendMessage=function(t){var e,n,r=this;(null===(e=this._socket)||void 0===e?void 0:e.connected)?null===(n=this._socket)||void 0===n||n.send(JSON.stringify(t)):setTimeout(function(){r.sendMessage(t)},10)},t}(),bt=function(){function t(){this.data={}}return t.get=function(){return null!=t.instance||(t.instance=new t),t.instance},t.prototype.getValue=function(t){var e;return null!==(e=this.data[t])&&void 0!==e?e:""},t.prototype.setValue=function(t,e){this.data[t]=e},t}();function Bt(t){var e,n,r;return null!==(r=null===(n=null===(e=null==t?void 0:t.document)||void 0===e?void 0:e.body)||void 0===n?void 0:n.clientWidth)&&void 0!==r?r:0}function Ht(t){var e,n,r;return null!==(r=null===(n=null===(e=null==t?void 0:t.document)||void 0===e?void 0:e.body)||void 0===n?void 0:n.clientHeight)&&void 0!==r?r:0}function Ot(){var t,e=new g(window.navigator.userAgent);return{clientVersion:"1.0.26",clientChannel:bt.get().getValue(Nt.CLIENT_CHANNEL),clientGame:bt.get().getValue(Nt.CLIENT_GAME),clientDevice:null!==(t=e.phone())&&void 0!==t?t:"",clientOS:e.os(),clientBrowser:"".concat(e.userAgent()),clientBrowserVersion:"".concat(e.version("Webkit")),clientDeviceWidth:Bt(window),clientDeviceHeight:Ht(window),clientTimeOffset:h().utcOffset()}}!function(t){t.BASE_HOST="BASE_HOST",t.CLIENT_CHANNEL="CLIENT_CHANNEL",t.CLIENT_GAME="CLIENT_GAME",t.CLIENT_AUTH_VK_URL="CLIENT_AUTH_VK_URL",t.CLIENT_AUTH_OK_URL="CLIENT_AUTH_OK_URL",t.CLIENT_AUTH_YA_URL="CLIENT_AUTH_YA_URL",t.CLIENT_AUTH_TG_URL="CLIENT_AUTH_TG_URL",t.CLIENT_AUTH_WEB_URL="CLIENT_AUTH_WEB_URL",t.CLIENT_MENU_URL="CLIENT_MENU_URL",t.CLIENT_SHOP_URL="CLIENT_SHOP_URL",t.CLIENT_TABLES_URL="CLIENT_TABLES_URL",t.CLIENT_WATCH_THE_TABLE_URL="CLIENT_WATCH_THE_TABLE_URL",t.CLIENT_ENTER_THE_TABLE_URL="CLIENT_ENTER_THE_TABLE_URL",t.CLIENT_EXIT_THE_TABLE_URL="CLIENT_EXIT_THE_TABLE_URL",t.CLIENT_MOVE_ON_THE_TABLE_URL="CLIENT_MOVE_ON_THE_TABLE_URL",t.CLIENT_PLAYER_CHECK_STATE_URL="CLIENT_PLAYER_CHECK_STATE_URL"}(Nt||(Nt={}));var kt=function(){function t(e){t._navigate=e}return t.setNavigate=function(t){this._navigate=t},t.getInstance=function(){return this._instance||(this._instance=new t(t._navigate)),this._instance},t.prototype.redirect=function(e){t._currentPath=e,e.includes("http")?window.open(e,"_blank"):t._navigate(e)},t.prototype.redirectWithoutMem=function(e){t._currentPath=e,t._navigate(e,{replace:!0})},t.prototype.back=function(){t._navigate(-1)},t.prototype.getParams=function(e){return function(t,e){var n=t.split("/"),r=e.split("/"),i={};if(n.length!==r.length)return{};for(var o=0;o<n.length;o++)if(n[o].startsWith(":"))i[n[o].substring(1)]=r[o];else if(n[o]!==r[o])return{};return i}(e,t._currentPath)},t}();o.withTypes();var Vt,wt=c.withTypes(),Pt=function(e){return kt.setNavigate(N()),wt(V.selectors.isInit)?t.createElement(C,null,e.routes.map(function(e){var n=e.route,r=e.screen;return t.createElement(I,{key:n,path:n,element:r})})):t.createElement("div",null,"Loading")},Mt=function(t){var n=t.routes;return e.createElement(A,{theme:R(S.DEFAULT,{})},e.createElement(U,null,e.createElement(Pt,{routes:n})))},Gt=function(t){function n(e,n){var r=t.call(this,e)||this;return r.store=n,r.init(),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}B(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(n,t),n.prototype.init=function(){bt.get().setValue(Nt.CLIENT_CHANNEL,_t()),bt.get().setValue(Nt.CLIENT_GAME,dt()),bt.get().setValue(Nt.CLIENT_AUTH_VK_URL,ft()),bt.get().setValue(Nt.CLIENT_AUTH_OK_URL,Tt()),bt.get().setValue(Nt.CLIENT_AUTH_YA_URL,Et()),bt.get().setValue(Nt.CLIENT_AUTH_TG_URL,pt()),bt.get().setValue(Nt.CLIENT_AUTH_WEB_URL,mt()),bt.get().setValue(Nt.CLIENT_MENU_URL,Lt()),bt.get().setValue(Nt.CLIENT_SHOP_URL,vt()),bt.get().setValue(Nt.CLIENT_TABLES_URL,gt()),bt.get().setValue(Nt.CLIENT_ENTER_THE_TABLE_URL,ht()),bt.get().setValue(Nt.CLIENT_WATCH_THE_TABLE_URL,Ct()),bt.get().setValue(Nt.CLIENT_EXIT_THE_TABLE_URL,It()),bt.get().setValue(Nt.CLIENT_MOVE_ON_THE_TABLE_URL,Ut()),bt.get().setValue(Nt.CLIENT_PLAYER_CHECK_STATE_URL,At())},n.prototype.componentDidMount=function(){this.store.dispatch(V.actions.initApp())},n.prototype.componentWillUnmount=function(){this.store.dispatch(V.actions.deactivateApp())},n.prototype.getRoutes=function(){return[{route:s.MENU,screen:e.createElement(at,null)},{route:s.SHOP,screen:e.createElement(st,null)},{route:s.ROOMS,screen:e.createElement(ut,null)}]},n.prototype.render=function(){return e.createElement(a,{store:this.store},e.createElement(Mt,{routes:this.getRoutes()}))},n}(i);!function(t){t.VK="VK",t.YA="YA",t.OK="OK",t.WEB="WEB",t.AT="AT",t.VKIOS="VKIOS",t.TG="TG"}(Vt||(Vt={}));var Kt={uid:"581730373013",birthday:"2000-02-01",birthdaySet:!0,age:21,first_name:"Justpoker",last_name:"Online",location:{city:"Moscow",country:"RUSSIAN_FEDERATION",countryCode:"RU",countryName:"Russia"},pic128x128:"https://api.ok.ru/img/stub/user/male/128.png"};function Wt(t){return O(this,void 0,void 0,function(){return k(this,function(e){return[2,L.post(bt.get().getValue(Nt.CLIENT_AUTH_OK_URL),{okUser:Kt,clientInfo:t})]})})}var Dt={id:8426719,is_closed:!1,sex:2,photo_max_orig:"https://sun1-92.userapi.com/impf/c857536/v857536990/c1ae9/e3ikmioAt3s.jpg?size=400x0&quality=96&crop=0,315,750,750&sign=1edea0ff18f44079ee2c671d0eb649d3&c_uniq_tag=8UWvihf3P4Gaq7HDHZ36CnueaU45AM9n3r6FibqGRcM&ava=1",can_access_closed:!0,can_invite_to_chats:!1,first_name:"Dmitry",bdate:"21.8.1989",city:{id:1,title:"Moscow"},photo_200:"https://sun1-92.userapi.com/impf/c857536/v857536990/c1ae9/e3ikmioAt3s.jpg?size=200x0&quality=96&crop=0,315,750,750&sign=a810ed95c832aa59061a2e57b6aaf354&c_uniq_tag=1OW0lK2-rvjPjvZMTptmD5ebxiFqzXtj_-do3DSRUTc&ava=1",timezone:3,last_name:"Solovyov",photo_100:"https://sun1-92.userapi.com/impf/c857536/v857536990/c1ae9/e3ikmioAt3s.jpg?size=100x0&quality=96&crop=0,315,750,750&sign=11c3a81e646806e12d74ee5622cfe115&c_uniq_tag=PbYUyR-hU2L6m4K2iEMX6F2dwzooz0n8I5ZgD_J-GDs&ava=1",country:{id:1,title:"Russia"}};function xt(t){return O(this,void 0,void 0,function(){return k(this,function(e){return[2,L.post(bt.get().getValue(Nt.CLIENT_AUTH_VK_URL),{vkUser:Dt,clientInfo:t})]})})}var jt={userId:"r3103WLiktg7Ux4X92Gugz2Rl7sG1v/1DHjfnHgHk4I=",avatarUrl:"https://avatars.mds.yandex.net/get-yapic/40138/8Zy0NFhXokbxYIN3BzCtpAVYazw-1/islands-middle",language:"ru",fullName:"DMITRY S.",purchasesSignature:"GrDdbsa0srAqcrFqufY3Bm12+1sUveubZDLXzqCgRnI=.eyJhbGdvcml0aG0iOiJITUFDLVNIQTI1NiIsImlzc3VlZEF0IjoxNjMyOTg0NDc3LCJyZXF1ZXN0UGF5bG9hZCI6IiIsImRhdGEiOltdfQ==",isGuest:!0,yandexUid:""};function Yt(t){return O(this,void 0,void 0,function(){return k(this,function(e){return[2,L.post(bt.get().getValue(Nt.CLIENT_AUTH_YA_URL),{yaUser:jt,clientInfo:t})]})})}var zt={allowsWriteToPm:!0,firstName:"Dmitry",id:180352252,languageCode:"ru",lastName:"Solovev",photoUrl:"https://t.me/i/userpic/320/Afu-apjsWgxmkMI2hJD56Wt2w4D6pWwgssA3CeLYX_8.svg",username:"choochoochoo"};function Xt(t){return O(this,void 0,void 0,function(){return k(this,function(e){return[2,L.post(bt.get().getValue(Nt.CLIENT_AUTH_TG_URL),{tgUser:zt,clientInfo:t})]})})}function qt(t){return O(this,void 0,void 0,function(){return k(this,function(e){return[2,L.post(bt.get().getValue(Nt.CLIENT_AUTH_WEB_URL),{clientInfo:t})]})})}function Ft(){return O(this,void 0,void 0,function(){var t;return k(this,function(e){switch((t=Ot()).clientChannel){case Vt.VK:return[2,xt(t)];case Vt.OK:return[2,Wt(t)];case Vt.YA:return[2,Yt(t)];case Vt.TG:return[2,Xt(t)];case Vt.WEB:return[2,qt(t)]}return[2]})})}function Zt(){return L.create({baseURL:bt.get().getValue(Nt.BASE_HOST)})}function Jt(){return O(this,void 0,void 0,function(){return k(this,function(t){return[2,Zt().get(bt.get().getValue(Nt.CLIENT_MENU_URL))]})})}function Qt(){return O(this,void 0,void 0,function(){return k(this,function(t){return[2,Zt().get(bt.get().getValue(Nt.CLIENT_SHOP_URL))]})})}function $t(){return O(this,void 0,void 0,function(){return k(this,function(t){return[2,Zt().get(bt.get().getValue(Nt.CLIENT_TABLES_URL))]})})}function te(t){return O(this,void 0,void 0,function(){return k(this,function(e){return[2,Zt().post("".concat(bt.get().getValue(Nt.CLIENT_ENTER_THE_TABLE_URL),"/").concat(t))]})})}function ee(t){return O(this,void 0,void 0,function(){return k(this,function(e){return[2,Zt().post("".concat(bt.get().getValue(Nt.CLIENT_WATCH_THE_TABLE_URL),"/").concat(t))]})})}function ne(t){return O(this,void 0,void 0,function(){return k(this,function(e){return[2,Zt().post("".concat(bt.get().getValue(Nt.CLIENT_EXIT_THE_TABLE_URL),"/").concat(t))]})})}function re(t,e){return O(this,void 0,void 0,function(){return k(this,function(n){return[2,Zt().post("".concat(bt.get().getValue(Nt.CLIENT_MOVE_ON_THE_TABLE_URL),"/").concat(t),e)]})})}function ie(){return O(this,void 0,void 0,function(){return k(this,function(t){return[2,Zt().get(bt.get().getValue(Nt.CLIENT_PLAYER_CHECK_STATE_URL))]})})}var oe=f();oe.startListening({actionCreator:V.actions.initApp,effect:function(t,e){return O(void 0,void 0,void 0,function(){var t,n;return k(this,function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),[4,Ft()];case 1:return t=r.sent(),(new yt).connect(t.data.wsAddress,t.data.token,e),bt.get().setValue(Nt.BASE_HOST,t.data.httpAddress),St(Ot(),t.data.token,t.data.language),[4,ie()];case 2:return n=r.sent(),kt.getInstance().redirect(n.data.redirectUrl),[3,4];case 3:return r.sent(),e.dispatch(V.actions.errorApp()),[3,4];case 4:return e.dispatch(V.actions.successApp()),[2]}})})}});var ce=f();ce.startListening({actionCreator:w.actions.init,effect:function(t,e){return O(void 0,void 0,void 0,function(){var t;return k(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),e.dispatch(w.actions.start()),[4,Jt()];case 1:return t=n.sent(),e.dispatch(w.actions.success(t.data.screen)),[3,3];case 2:return n.sent(),e.dispatch(w.actions.error()),[3,3];case 3:return[2]}})})}});var ae=f();ae.startListening({actionCreator:w.actions.listItemClick,effect:function(t,e){return O(void 0,void 0,void 0,function(){return k(this,function(e){return null!=t.payload.url&&kt.getInstance().redirect(t.payload.url),[2]})})}});var se=f();se.startListening({actionCreator:P.actions.init,effect:function(t,e){return O(void 0,void 0,void 0,function(){var t;return k(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),e.dispatch(P.actions.start()),[4,Qt()];case 1:return t=n.sent(),e.dispatch(P.actions.success(t.data.screen)),[3,3];case 2:return n.sent(),e.dispatch(P.actions.error()),[3,3];case 3:return[2]}})})}});var ue=f();ue.startListening({actionCreator:M.actions.init,effect:function(t,e){return O(void 0,void 0,void 0,function(){var t;return k(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),e.dispatch(M.actions.start()),[4,$t()];case 1:return t=n.sent(),e.dispatch(M.actions.success(t.data.screen)),[3,3];case 2:return n.sent(),e.dispatch(M.actions.error()),[3,3];case 3:return[2]}})})}});var le,de=f();de.startListening({actionCreator:M.actions.listItemClick,effect:function(t,e){return O(void 0,void 0,void 0,function(){return k(this,function(e){return null!=t.payload.url&&kt.getInstance().redirect(t.payload.url),[2]})})}});var _e=f();_e.startListening({actionCreator:D.actions.message,effect:function(t,e){return O(void 0,void 0,void 0,function(){return k(this,function(n){return function(t,e){var n=t.payload.data.checkPlayersTurnTimerRemain;n&&n>0&&(le=y(le,n,function(){return e.dispatch(it.actions.decrementPlayersTurnTimeoutTimer())}))}(t,e),function(t,e){var n=t.payload.data.restartTimerRemain;n&&n>0&&(le=y(le,n,function(){return e.dispatch(it.actions.decrementRestartTimeoutTimer())}))}(t,e),e.dispatch(it.actions.setWsTableState(t.payload.data)),[2]})})}});var fe=function(t){return function(e){return function(n){return O(void 0,void 0,void 0,function(){var r,i;return k(this,function(o){switch(o.label){case 0:if(!it.actions.init.match(n))return[3,4];o.label=1;case 1:return o.trys.push([1,3,,4]),t.dispatch(it.actions.start()),[4,ee(null!==(i=kt.getInstance().getParams(s.TABLE).tableId)&&void 0!==i?i:"")];case 2:return r=o.sent(),t.dispatch(it.actions.success(r.data)),[3,4];case 3:return o.sent(),t.dispatch(it.actions.error()),[3,4];case 4:return[2,e(n)]}})})}}},Te=function(t){return function(e){return function(n){return O(void 0,void 0,void 0,function(){var r,i;return k(this,function(o){switch(o.label){case 0:if(!it.actions.deactivate.match(n))return[3,4];o.label=1;case 1:return o.trys.push([1,3,,4]),t.dispatch(it.actions.start()),[4,ne(null!==(i=kt.getInstance().getParams(s.TABLE).tableId)&&void 0!==i?i:"")];case 2:return r=o.sent(),t.dispatch(it.actions.success(r.data)),[3,4];case 3:return o.sent(),t.dispatch(it.actions.error()),[3,4];case 4:return[2,e(n)]}})})}}},Ee=function(t){return function(t){return function(e){return O(void 0,void 0,void 0,function(){return k(this,function(n){return it.actions.backClick.match(e)&&kt.getInstance().back(),[2,t(e)]})})}}},pe=function(t){return function(e){return function(n){return O(void 0,void 0,void 0,function(){var r,i,o;return k(this,function(c){switch(c.label){case 0:if(!it.actions.moveButtonClick.match(n))return[3,8];c.label=1;case 1:switch(c.trys.push([1,7,,8]),r=null!==(o=kt.getInstance().getParams(s.TABLE).tableId)&&void 0!==o?o:"",i=void 0,n.payload){case b.ACTION_ENTER_THE_TABLE:return[3,2];case b.ACTION_EXIT_THE_TABLE:return[3,4]}return[3,6];case 2:return[4,te(r)];case 3:return i=c.sent(),[3,6];case 4:return[4,ne(r)];case 5:return i=c.sent(),[3,6];case 6:return t.dispatch(it.actions.success(i.data)),[3,8];case 7:return c.sent(),t.dispatch(it.actions.error()),[3,8];case 8:return[2,e(n)]}})})}}};function me(){return[oe.middleware,ce.middleware,ae.middleware,se.middleware,ue.middleware,de.middleware,_e.middleware,fe,Te,Ee,pe]}var Le=function(e){var r=e.items,i=e.itemClick,a=e.title,s=e.closeTitle,u=o();if(!c(G.selectors.getIsOpen))return t.createElement("div",null);var l=n(function(){u(G.actions.close)},[]);return t.createElement(m,{items:r,onItemClick:i,title:a,onCloseButtonClick:l,closeButtonTitle:null!=s?s:""})},ve=function(e){var r=e.items,i=e.itemClick,a=e.title,s=e.closeTitle,u=o();if(!c(G.selectors.getIsOpen))return t.createElement("div",null);var l=n(function(){u(G.actions.close)},[]);return t.createElement(m,{items:r,onItemClick:i,title:a,onCloseButtonClick:l,closeButtonTitle:null!=s?s:""})};export{Gt as BaseApplication,bt as GlobalStorage,Nt as GlobalStorageEnum,at as MenuScreen,kt as Navigator,Le as RaiseBottomSheetBlock,ve as ReactionBottomSheetBlock,st as ShopScreen,lt as TableScreen,ut as TablesScreen,yt as WSConnector,V as appSlice,Ft as authRequest,Rt as config,te as enterTheTableRequest,ne as exitTheTableRequest,it as gameTableScreenSlice,me as getBaseMiddlewares,ot as getBaseSlices,ct as getBaseSlicesReducer,Ot as getClientInfo,Jt as getMenuRequest,Qt as getShopRequest,$t as getTablesRequest,w as menuScreenSlice,re as moveOnTheTableRequest,ie as playerCheckStateRequest,G as raiseBottomSheetBlockSlice,K as reactionBottomSheetBlockSlice,St as setDefaultRequestHeaders,P as shopScreenSlice,M as tablesScreenSlice,ee as watchTheTableRequest,D as wsConnectorSlice};
|
|
1
|
+
import*as t from"react";import e,{useCallback as n,useEffect as r,Component as i}from"react";import{useDispatch as o,useSelector as c,Provider as a}from"react-redux";import{RoutesEnum as s}from"jp.common.view";import{createSlice as u,createAction as l,createReducer as d,createSelector as f,createListenerMiddleware as _}from"@reduxjs/toolkit";import T from"lodash.clonedeep";import{UniversalScreen as E,PageScreen as p,BottomSelectionPanel as m}from"jp.ui.app.ds";import L from"axios";import{io as v}from"socket.io-client";import g from"mobile-detect";import h from"dayjs";import{Routes as C,Route as I,MemoryRouter as U}from"react-router-dom";import{ThemeProvider as A}from"@emotion/react";import{getLightTheme as S,ColorSchema as R}from"jp.ui.theme";import{useNavigate as N}from"react-router";import{setPeriodicTimer as y}from"jp.common.utils";import{BaseTablePlayerActionsEnum as b}from"jp.common.models";var B=function(t,e){return B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},B(t,e)};var H=function(){return H=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},H.apply(this,arguments)};function O(t,e,n,r){return new(n||(n=Promise))(function(i,o){function c(t){try{s(r.next(t))}catch(t){o(t)}}function a(t){try{s(r.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(c,a)}s((r=r.apply(t,e||[])).next())})}function k(t,e){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},c=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return c.next=a(0),c.throw=a(1),c.return=a(2),"function"==typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c;function a(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;c&&(c=0,a[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=e.call(t,o)}catch(t){a=[6,t],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}"function"==typeof SuppressedError&&SuppressedError;var P=u({name:"appSlice",initialState:{isLoading:!1,isError:!1,isInit:!1},reducers:{initApp:function(t){return H(H({},t),{isLoading:!0})},deactivateApp:function(t){return H(H({},t),{isInit:!1,isLoading:!1})},errorApp:function(t){return H(H({},t),{isLoading:!1,isInit:!0,isError:!0})},successApp:function(t){return H(H({},t),{isLoading:!1,isInit:!0})}},selectors:{isInit:function(t){return t.isInit},isLoading:function(t){return t.isLoading},isError:function(t){return t.isError}}});P.reducer;var V=u({name:"menuScreenSlice",initialState:{isError:!1,isLoading:!1,data:void 0},reducers:{start:function(t){return H(H({},t),{isLoading:!0,isError:null,data:null})},error:function(t){return H(H({},t),{isLoading:!1,isError:!0})},success:function(t,e){return H(H({},t),{isLoading:!1,isError:!1,data:e.payload})},init:function(t){return t},listItemClick:function(t,e){return t}},selectors:{getScreen:function(t){return t.data},isLoading:function(t){return t.isLoading},isError:function(t){return t.isError}}});V.reducer;var w=u({name:"shopScreenSlice",initialState:{isError:!1,isLoading:!1,data:void 0},reducers:{start:function(t){return H(H({},t),{isLoading:!0,isError:null,data:null})},error:function(t){return H(H({},t),{isLoading:!1,isError:!0})},success:function(t,e){return H(H({},t),{isLoading:!1,isError:!1,data:e.payload})},init:function(t){return t}},selectors:{getScreen:function(t){return t.data},isLoading:function(t){return t.isLoading},isError:function(t){return t.isError}}});w.reducer;var M=u({name:"tablesScreenSlice",initialState:{isError:!1,isLoading:!1,data:void 0},reducers:{start:function(t){return H(H({},t),{isLoading:!0,isError:null,data:null})},error:function(t){return H(H({},t),{isLoading:!1,isError:!0})},success:function(t,e){return H(H({},t),{isLoading:!1,isError:!1,data:e.payload})},init:function(t){return t},listItemClick:function(t,e){return t}},selectors:{getScreen:function(t){return t.data},isLoading:function(t){return t.isLoading},isError:function(t){return t.isError}}});M.reducer;var G=u({name:"raiseBottomSheetBlockSlice",initialState:{isOpen:!1},reducers:{open:function(t){return H(H({},t),{isOpen:!0})},close:function(t){return H(H({},t),{isOpen:!1})}},selectors:{getIsOpen:function(t){return t.isOpen}}});G.reducer;var K=u({name:"reactionBottomSheetBlockSlice",initialState:{isOpen:!1},reducers:{open:function(t){return H(H({},t),{isOpen:!0})},close:function(t){return H(H({},t),{isOpen:!1})}},selectors:{getIsOpen:function(t){return t.isOpen}}});K.reducer;var W,D=u({name:"wsConnectorSlice",initialState:{isConnected:!1,error:null},reducers:{connect:function(t){return H(H({},t),{isConnected:!1})},connected:function(t){return H(H({},t),{isConnected:!0})},disconnect:function(t,e){return H(H({},t),{isConnected:!1})},error:function(t,e){return t},message:function(t,e){return t}},selectors:{getIsConnected:function(t){return t.isConnected}}});D.reducer,function(t){t.INIT="@tableScreenSlice/init",t.DEACTIVATE="@tableScreenSlice/deactivate",t.BACK_CLICK="@tableScreenSlice/backClick",t.START="@tableScreenSlice/start",t.SUCCESS="@tableScreenSlice/success",t.ERROR="@tableScreenSlice/error",t.MOVE_BUTTON_CLICK="@tableScreenSlice/moveButtonClick",t.SET_WS_TABLE_STATE="@tableScreenSlice/setWsTableState",t.DECREMENT_PLAYERS_TURN_TIMEOUT_TIMER="@tableScreenSlice/decrementPlayersTurnTimeoutTimer",t.DECREMENT_RESTART_TIMEOUT_TIMER="@tableScreenSlice/decrementRestartTimeoutTimer"}(W||(W={}));var x=l(W.START),j=l(W.SUCCESS),Y=l(W.ERROR),z=l(W.INIT),X=l(W.DEACTIVATE),q=l(W.BACK_CLICK),F=l(W.MOVE_BUTTON_CLICK),Z=l(W.SET_WS_TABLE_STATE),J=l(W.DECREMENT_PLAYERS_TURN_TIMEOUT_TIMER),Q=l(W.DECREMENT_RESTART_TIMEOUT_TIMER),$={start:x,success:j,error:Y,init:z,deactivate:X,backClick:q,moveButtonClick:F,setWsTableState:Z,decrementPlayersTurnTimeoutTimer:J,decrementRestartTimeoutTimer:Q},tt=d({isError:!1,isLoading:!1,data:void 0},function(t){return t.addCase(x,function(t){return H(H({},t),{isLoading:!0,isError:!1})}).addCase(j,function(t,e){return H(H({},t),{isLoading:!1,isError:!1,data:e.payload})}).addCase(Y,function(t){return H(H({},t),{isLoading:!1,isError:!0})}).addCase(Z,function(t,e){return H(H({},t),{isLoading:!1,isError:!1,data:e.payload})}).addCase(J,function(t,e){var n,r=T(t);return(null===(n=r.data)||void 0===n?void 0:n.checkPlayersTurnTimerRemain)?(r.data.checkPlayersTurnTimerRemain-=1,r):t}).addCase(Q,function(t,e){var n,r=T(t);return(null===(n=r.data)||void 0===n?void 0:n.restartTimerRemain)?(r.data.restartTimerRemain-=1,r):t})}),et=function(t){return t.gameTableScreenSlice},nt=f(et,function(t){return null==t?void 0:t.data}),rt=f(et,function(t){return null==t?void 0:t.isLoading}),it=f(et,function(t){return null==t?void 0:t.isError}),ot=f(nt,function(t){return null==t?void 0:t.roomId}),ct=f(nt,function(t){return null==t?void 0:t.tableId}),at=f(nt,function(t){return null==t?void 0:t.gameId}),st=f(nt,function(t){return null==t?void 0:t.tableSize}),ut=f(nt,function(t){return null==t?void 0:t.checkPlayersTurnTimerRemain}),lt=f(nt,function(t){return null==t?void 0:t.restartTimerRemain}),dt=f(nt,function(t){return null==t?void 0:t.movesPanel}),ft={actions:$,reducer:tt,selectors:{base:{isError:it,isLoading:rt,getRoomId:ot,getTableId:ct,getGameId:at,getTableSize:st,getCheckPlayersTurnTimerRemain:ut,getRestartTimerRemain:lt,getMovesPanel:dt,getMovesPanelIsOpen:f(dt,function(t){return null==t?void 0:t.isOpen}),getMovesPanelMoves:f(dt,function(t){return null==t?void 0:t.moves}),getYoursMessage:f(nt,function(t){return null==t?void 0:t.yoursMessage}),getExtraButtons:f(nt,function(t){return null==t?void 0:t.extraButtons}),getSummary:f(nt,function(t){return null==t?void 0:t.summary}),getSummaryList:f(nt,function(t){return null==t?void 0:t.list})},cards:{getCardPlayers:f(nt,function(t){return null==t?void 0:t.players}),getBaseCard:f(nt,function(t){return null==t?void 0:t.baseCard}),getGameCards:f(nt,function(t){return null==t?void 0:t.gameCards}),getGameCardsPair:f(nt,function(t){return null==t?void 0:t.gameCardsPair}),getCardsPanel:f(nt,function(t){return null==t?void 0:t.cardsPanel}),getCardsPanelIsOpen:f(nt,function(t){return null==t?void 0:t.isOpen}),getCardsPanelCards:f(nt,function(t){return null==t?void 0:t.cards}),getCardsPanelMoves:f(nt,function(t){return null==t?void 0:t.moves})}}};function _t(){return[P,V,w,M,G,K,D]}function Tt(){return{appSlice:P.reducer,menuScreenSlice:V.reducer,shopScreenSlice:w.reducer,tablesScreenSlice:M.reducer,raiseBottomSheetBlockSlice:G.reducer,reactionBottomSheetBlockSlice:K.reducer,wsConnectorSlice:D.reducer,gameTableScreenSlice:ft.reducer}}var Et=function(){var e=o(),r=c(V.selectors.getScreen),i=c(V.selectors.isLoading),a=c(V.selectors.isError),s=n(function(){return e(V.actions.init())},[]),u=n(function(t){return e(V.actions.listItemClick(t))},[]);return t.createElement(E,{screen:r,isLoading:i,isError:a,init:s,sectionHandlers:{listSectionClick:u}})},pt=function(){var e=o(),r=c(w.selectors.getScreen),i=c(w.selectors.isLoading),a=c(w.selectors.isError),s=n(function(){return e(w.actions.init())},[]);return t.createElement(E,{screen:r,isLoading:i,isError:a,init:s})},mt=function(){var e=o(),r=c(M.selectors.getScreen),i=c(M.selectors.isLoading),a=c(M.selectors.isError),s=n(function(){return e(M.actions.init())},[]),u=n(function(t){return e(M.actions.listItemClick(t))},[]);return t.createElement(E,{screen:r,isLoading:i,isError:a,init:s,sectionHandlers:{listSectionClick:u}})},Lt=function(e){var i=e.children,c=o();r(function(){return c(ft.actions.init()),function(){c(ft.actions.deactivate())}},[]);var a=n(function(){c(ft.actions.backClick())},[]);return t.createElement(p,{title:"title",errorButtonTitle:"errorButton",errorTitle:"error",leftButtonTitle:"back",onLeftButtonClick:a},i)};function vt(){return import.meta.env.PUBLIC_CLIENT_GAME}function gt(){return import.meta.env.PUBLIC_CLIENT_CHANNEL}function ht(){return import.meta.env.PUBLIC_CLIENT_AUTH_VK_URL}function Ct(){return import.meta.env.PUBLIC_CLIENT_AUTH_OK_URL}function It(){return import.meta.env.PUBLIC_CLIENT_AUTH_YA_URL}function Ut(){return import.meta.env.PUBLIC_CLIENT_AUTH_TG_URL}function At(){return import.meta.env.PUBLIC_CLIENT_AUTH_WEB_URL}function St(){return import.meta.env.PUBLIC_CLIENT_MENU_URL}function Rt(){return import.meta.env.PUBLIC_CLIENT_SHOP_URL}function Nt(){return import.meta.env.PUBLIC_CLIENT_TABLES_URL}function yt(){return import.meta.env.PUBLIC_CLIENT_ENTER_THE_TABLE_URL}function bt(){return import.meta.env.PUBLIC_CLIENT_WATCH_THE_TABLE_URL}function Bt(){return import.meta.env.PUBLIC_CLIENT_EXIT_THE_TABLE_URL}function Ht(){return import.meta.env.PUBLIC_CLIENT_MOVE_ON_THE_TABLE_URL}function Ot(){return import.meta.env.PUBLIC_CLIENT_PLAYER_CHECK_STATE_URL}var kt=Object.freeze({__proto__:null,getClientAuthOKUrl:Ct,getClientAuthTGUrl:Ut,getClientAuthVKUrl:ht,getClientAuthWEBUrl:At,getClientAuthYAUrl:It,getClientChannel:gt,getClientEnterTheTableUrl:yt,getClientExitTheTableUrl:Bt,getClientGame:vt,getClientMenuUrl:St,getClientMoveOnTheTableUrl:Ht,getClientPlayerCheckStateUrl:Ot,getClientShopUrl:Rt,getClientTablesUrl:Nt,getClientWatchTheTableUrl:bt});function Pt(t,e,n){L.defaults.headers.common.client_auth_token=e,L.defaults.headers.common.client_language=n,L.defaults.headers.common.client_game=t.clientGame,L.defaults.headers.common.client_channel=t.clientChannel,L.defaults.headers.common.client_version=t.clientVersion}var Vt,wt=function(){function t(){var t=this;this._openConnectionHandler=function(){t._listenerApi.dispatch(D.actions.connected())},this._closeConnectionHandler=function(e){t._listenerApi.dispatch(D.actions.disconnect(e))},this._messageHandler=function(e){t._listenerApi.dispatch(D.actions.message(e))},this._errorHandler=function(e){t._listenerApi.dispatch(D.actions.error(e.message))}}return t.getInstance=function(){return null!=t._instance||(t._instance=new t),t._instance},t.prototype.connect=function(t,e,n){this._socket=v(t,{auth:{token:e},reconnection:!0,reconnectionDelay:1e3}),this._listenerApi=n,this._authToken=e,this._socket.on("connect",this._openConnectionHandler),this._socket.on("message",this._messageHandler),this._socket.on("connection_error",this._errorHandler),this._socket.on("disconnect",this._closeConnectionHandler),this._listenerApi.dispatch(D.actions.connect())},t.prototype.sendMessage=function(t){var e,n,r=this;(null===(e=this._socket)||void 0===e?void 0:e.connected)?null===(n=this._socket)||void 0===n||n.send(JSON.stringify(t)):setTimeout(function(){r.sendMessage(t)},10)},t}(),Mt=function(){function t(){this.data={}}return t.get=function(){return null!=t.instance||(t.instance=new t),t.instance},t.prototype.getValue=function(t){var e;return null!==(e=this.data[t])&&void 0!==e?e:""},t.prototype.setValue=function(t,e){this.data[t]=e},t}();function Gt(t){var e,n,r;return null!==(r=null===(n=null===(e=null==t?void 0:t.document)||void 0===e?void 0:e.body)||void 0===n?void 0:n.clientWidth)&&void 0!==r?r:0}function Kt(t){var e,n,r;return null!==(r=null===(n=null===(e=null==t?void 0:t.document)||void 0===e?void 0:e.body)||void 0===n?void 0:n.clientHeight)&&void 0!==r?r:0}function Wt(){var t,e=new g(window.navigator.userAgent);return{clientVersion:"1.0.28",clientChannel:Mt.get().getValue(Vt.CLIENT_CHANNEL),clientGame:Mt.get().getValue(Vt.CLIENT_GAME),clientDevice:null!==(t=e.phone())&&void 0!==t?t:"",clientOS:e.os(),clientBrowser:"".concat(e.userAgent()),clientBrowserVersion:"".concat(e.version("Webkit")),clientDeviceWidth:Gt(window),clientDeviceHeight:Kt(window),clientTimeOffset:h().utcOffset()}}!function(t){t.BASE_HOST="BASE_HOST",t.CLIENT_CHANNEL="CLIENT_CHANNEL",t.CLIENT_GAME="CLIENT_GAME",t.CLIENT_AUTH_VK_URL="CLIENT_AUTH_VK_URL",t.CLIENT_AUTH_OK_URL="CLIENT_AUTH_OK_URL",t.CLIENT_AUTH_YA_URL="CLIENT_AUTH_YA_URL",t.CLIENT_AUTH_TG_URL="CLIENT_AUTH_TG_URL",t.CLIENT_AUTH_WEB_URL="CLIENT_AUTH_WEB_URL",t.CLIENT_MENU_URL="CLIENT_MENU_URL",t.CLIENT_SHOP_URL="CLIENT_SHOP_URL",t.CLIENT_TABLES_URL="CLIENT_TABLES_URL",t.CLIENT_WATCH_THE_TABLE_URL="CLIENT_WATCH_THE_TABLE_URL",t.CLIENT_ENTER_THE_TABLE_URL="CLIENT_ENTER_THE_TABLE_URL",t.CLIENT_EXIT_THE_TABLE_URL="CLIENT_EXIT_THE_TABLE_URL",t.CLIENT_MOVE_ON_THE_TABLE_URL="CLIENT_MOVE_ON_THE_TABLE_URL",t.CLIENT_PLAYER_CHECK_STATE_URL="CLIENT_PLAYER_CHECK_STATE_URL"}(Vt||(Vt={}));var Dt=function(){function t(e){t._navigate=e}return t.setNavigate=function(t){this._navigate=t},t.getInstance=function(){return this._instance||(this._instance=new t(t._navigate)),this._instance},t.prototype.redirect=function(e){t._currentPath=e,e.includes("http")?window.open(e,"_blank"):t._navigate(e)},t.prototype.redirectWithoutMem=function(e){t._currentPath=e,t._navigate(e,{replace:!0})},t.prototype.back=function(){t._navigate(-1)},t.prototype.getParams=function(e){return function(t,e){var n=t.split("/"),r=e.split("/"),i={};if(n.length!==r.length)return{};for(var o=0;o<n.length;o++)if(n[o].startsWith(":"))i[n[o].substring(1)]=r[o];else if(n[o]!==r[o])return{};return i}(e,t._currentPath)},t}();o.withTypes();var xt,jt=c.withTypes(),Yt=function(e){return Dt.setNavigate(N()),jt(P.selectors.isInit)?t.createElement(C,null,e.routes.map(function(e){var n=e.route,r=e.screen;return t.createElement(I,{key:n,path:n,element:r})})):t.createElement("div",null,"Loading")},zt=function(t){var n=t.routes;return e.createElement(A,{theme:S(R.DEFAULT,{})},e.createElement(U,null,e.createElement(Yt,{routes:n})))},Xt=function(t){function n(e,n){var r=t.call(this,e)||this;return r.store=n,r.init(),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}B(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(n,t),n.prototype.init=function(){Mt.get().setValue(Vt.CLIENT_CHANNEL,gt()),Mt.get().setValue(Vt.CLIENT_GAME,vt()),Mt.get().setValue(Vt.CLIENT_AUTH_VK_URL,ht()),Mt.get().setValue(Vt.CLIENT_AUTH_OK_URL,Ct()),Mt.get().setValue(Vt.CLIENT_AUTH_YA_URL,It()),Mt.get().setValue(Vt.CLIENT_AUTH_TG_URL,Ut()),Mt.get().setValue(Vt.CLIENT_AUTH_WEB_URL,At()),Mt.get().setValue(Vt.CLIENT_MENU_URL,St()),Mt.get().setValue(Vt.CLIENT_SHOP_URL,Rt()),Mt.get().setValue(Vt.CLIENT_TABLES_URL,Nt()),Mt.get().setValue(Vt.CLIENT_ENTER_THE_TABLE_URL,yt()),Mt.get().setValue(Vt.CLIENT_WATCH_THE_TABLE_URL,bt()),Mt.get().setValue(Vt.CLIENT_EXIT_THE_TABLE_URL,Bt()),Mt.get().setValue(Vt.CLIENT_MOVE_ON_THE_TABLE_URL,Ht()),Mt.get().setValue(Vt.CLIENT_PLAYER_CHECK_STATE_URL,Ot())},n.prototype.componentDidMount=function(){this.store.dispatch(P.actions.initApp())},n.prototype.componentWillUnmount=function(){this.store.dispatch(P.actions.deactivateApp())},n.prototype.getRoutes=function(){return[{route:s.MENU,screen:e.createElement(Et,null)},{route:s.SHOP,screen:e.createElement(pt,null)},{route:s.ROOMS,screen:e.createElement(mt,null)}]},n.prototype.render=function(){return e.createElement(a,{store:this.store},e.createElement(zt,{routes:this.getRoutes()}))},n}(i);!function(t){t.VK="VK",t.YA="YA",t.OK="OK",t.WEB="WEB",t.AT="AT",t.VKIOS="VKIOS",t.TG="TG"}(xt||(xt={}));var qt={uid:"581730373013",birthday:"2000-02-01",birthdaySet:!0,age:21,first_name:"Justpoker",last_name:"Online",location:{city:"Moscow",country:"RUSSIAN_FEDERATION",countryCode:"RU",countryName:"Russia"},pic128x128:"https://api.ok.ru/img/stub/user/male/128.png"};function Ft(t){return O(this,void 0,void 0,function(){return k(this,function(e){return[2,L.post(Mt.get().getValue(Vt.CLIENT_AUTH_OK_URL),{okUser:qt,clientInfo:t})]})})}var Zt={id:8426719,is_closed:!1,sex:2,photo_max_orig:"https://sun1-92.userapi.com/impf/c857536/v857536990/c1ae9/e3ikmioAt3s.jpg?size=400x0&quality=96&crop=0,315,750,750&sign=1edea0ff18f44079ee2c671d0eb649d3&c_uniq_tag=8UWvihf3P4Gaq7HDHZ36CnueaU45AM9n3r6FibqGRcM&ava=1",can_access_closed:!0,can_invite_to_chats:!1,first_name:"Dmitry",bdate:"21.8.1989",city:{id:1,title:"Moscow"},photo_200:"https://sun1-92.userapi.com/impf/c857536/v857536990/c1ae9/e3ikmioAt3s.jpg?size=200x0&quality=96&crop=0,315,750,750&sign=a810ed95c832aa59061a2e57b6aaf354&c_uniq_tag=1OW0lK2-rvjPjvZMTptmD5ebxiFqzXtj_-do3DSRUTc&ava=1",timezone:3,last_name:"Solovyov",photo_100:"https://sun1-92.userapi.com/impf/c857536/v857536990/c1ae9/e3ikmioAt3s.jpg?size=100x0&quality=96&crop=0,315,750,750&sign=11c3a81e646806e12d74ee5622cfe115&c_uniq_tag=PbYUyR-hU2L6m4K2iEMX6F2dwzooz0n8I5ZgD_J-GDs&ava=1",country:{id:1,title:"Russia"}};function Jt(t){return O(this,void 0,void 0,function(){return k(this,function(e){return[2,L.post(Mt.get().getValue(Vt.CLIENT_AUTH_VK_URL),{vkUser:Zt,clientInfo:t})]})})}var Qt={userId:"r3103WLiktg7Ux4X92Gugz2Rl7sG1v/1DHjfnHgHk4I=",avatarUrl:"https://avatars.mds.yandex.net/get-yapic/40138/8Zy0NFhXokbxYIN3BzCtpAVYazw-1/islands-middle",language:"ru",fullName:"DMITRY S.",purchasesSignature:"GrDdbsa0srAqcrFqufY3Bm12+1sUveubZDLXzqCgRnI=.eyJhbGdvcml0aG0iOiJITUFDLVNIQTI1NiIsImlzc3VlZEF0IjoxNjMyOTg0NDc3LCJyZXF1ZXN0UGF5bG9hZCI6IiIsImRhdGEiOltdfQ==",isGuest:!0,yandexUid:""};function $t(t){return O(this,void 0,void 0,function(){return k(this,function(e){return[2,L.post(Mt.get().getValue(Vt.CLIENT_AUTH_YA_URL),{yaUser:Qt,clientInfo:t})]})})}var te={allowsWriteToPm:!0,firstName:"Dmitry",id:180352252,languageCode:"ru",lastName:"Solovev",photoUrl:"https://t.me/i/userpic/320/Afu-apjsWgxmkMI2hJD56Wt2w4D6pWwgssA3CeLYX_8.svg",username:"choochoochoo"};function ee(t){return O(this,void 0,void 0,function(){return k(this,function(e){return[2,L.post(Mt.get().getValue(Vt.CLIENT_AUTH_TG_URL),{tgUser:te,clientInfo:t})]})})}function ne(t){return O(this,void 0,void 0,function(){return k(this,function(e){return[2,L.post(Mt.get().getValue(Vt.CLIENT_AUTH_WEB_URL),{clientInfo:t})]})})}function re(){return O(this,void 0,void 0,function(){var t;return k(this,function(e){switch((t=Wt()).clientChannel){case xt.VK:return[2,Jt(t)];case xt.OK:return[2,Ft(t)];case xt.YA:return[2,$t(t)];case xt.TG:return[2,ee(t)];case xt.WEB:return[2,ne(t)]}return[2]})})}function ie(){return L.create({baseURL:Mt.get().getValue(Vt.BASE_HOST)})}function oe(){return O(this,void 0,void 0,function(){return k(this,function(t){return[2,ie().get(Mt.get().getValue(Vt.CLIENT_MENU_URL))]})})}function ce(){return O(this,void 0,void 0,function(){return k(this,function(t){return[2,ie().get(Mt.get().getValue(Vt.CLIENT_SHOP_URL))]})})}function ae(){return O(this,void 0,void 0,function(){return k(this,function(t){return[2,ie().get(Mt.get().getValue(Vt.CLIENT_TABLES_URL))]})})}function se(t){return O(this,void 0,void 0,function(){return k(this,function(e){return[2,ie().post("".concat(Mt.get().getValue(Vt.CLIENT_ENTER_THE_TABLE_URL),"/").concat(t))]})})}function ue(t){return O(this,void 0,void 0,function(){return k(this,function(e){return[2,ie().post("".concat(Mt.get().getValue(Vt.CLIENT_WATCH_THE_TABLE_URL),"/").concat(t))]})})}function le(t){return O(this,void 0,void 0,function(){return k(this,function(e){return[2,ie().post("".concat(Mt.get().getValue(Vt.CLIENT_EXIT_THE_TABLE_URL),"/").concat(t))]})})}function de(t,e){return O(this,void 0,void 0,function(){return k(this,function(n){return[2,ie().post("".concat(Mt.get().getValue(Vt.CLIENT_MOVE_ON_THE_TABLE_URL),"/").concat(t),e)]})})}function fe(){return O(this,void 0,void 0,function(){return k(this,function(t){return[2,ie().get(Mt.get().getValue(Vt.CLIENT_PLAYER_CHECK_STATE_URL))]})})}var _e=_();_e.startListening({actionCreator:P.actions.initApp,effect:function(t,e){return O(void 0,void 0,void 0,function(){var t,n;return k(this,function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),[4,re()];case 1:return t=r.sent(),(new wt).connect(t.data.wsAddress,t.data.token,e),Mt.get().setValue(Vt.BASE_HOST,t.data.httpAddress),Pt(Wt(),t.data.token,t.data.language),[4,fe()];case 2:return n=r.sent(),Dt.getInstance().redirect(n.data.redirectUrl),[3,4];case 3:return r.sent(),e.dispatch(P.actions.errorApp()),[3,4];case 4:return e.dispatch(P.actions.successApp()),[2]}})})}});var Te=_();Te.startListening({actionCreator:V.actions.init,effect:function(t,e){return O(void 0,void 0,void 0,function(){var t;return k(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),e.dispatch(V.actions.start()),[4,oe()];case 1:return t=n.sent(),e.dispatch(V.actions.success(t.data.screen)),[3,3];case 2:return n.sent(),e.dispatch(V.actions.error()),[3,3];case 3:return[2]}})})}});var Ee=_();Ee.startListening({actionCreator:V.actions.listItemClick,effect:function(t,e){return O(void 0,void 0,void 0,function(){return k(this,function(e){return null!=t.payload.url&&Dt.getInstance().redirect(t.payload.url),[2]})})}});var pe=_();pe.startListening({actionCreator:w.actions.init,effect:function(t,e){return O(void 0,void 0,void 0,function(){var t;return k(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),e.dispatch(w.actions.start()),[4,ce()];case 1:return t=n.sent(),e.dispatch(w.actions.success(t.data.screen)),[3,3];case 2:return n.sent(),e.dispatch(w.actions.error()),[3,3];case 3:return[2]}})})}});var me=_();me.startListening({actionCreator:M.actions.init,effect:function(t,e){return O(void 0,void 0,void 0,function(){var t;return k(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),e.dispatch(M.actions.start()),[4,ae()];case 1:return t=n.sent(),e.dispatch(M.actions.success(t.data.screen)),[3,3];case 2:return n.sent(),e.dispatch(M.actions.error()),[3,3];case 3:return[2]}})})}});var Le,ve=_();ve.startListening({actionCreator:M.actions.listItemClick,effect:function(t,e){return O(void 0,void 0,void 0,function(){return k(this,function(e){return null!=t.payload.url&&Dt.getInstance().redirect(t.payload.url),[2]})})}});var ge=_();ge.startListening({actionCreator:D.actions.message,effect:function(t,e){return O(void 0,void 0,void 0,function(){return k(this,function(n){return function(t,e){var n=t.payload.data.checkPlayersTurnTimerRemain;n&&n>0&&(Le=y(Le,n,function(){return e.dispatch(ft.actions.decrementPlayersTurnTimeoutTimer())}))}(t,e),function(t,e){var n=t.payload.data.restartTimerRemain;n&&n>0&&(Le=y(Le,n,function(){return e.dispatch(ft.actions.decrementRestartTimeoutTimer())}))}(t,e),e.dispatch(ft.actions.setWsTableState(t.payload.data)),[2]})})}});var he=function(t){return function(e){return function(n){return O(void 0,void 0,void 0,function(){var r,i;return k(this,function(o){switch(o.label){case 0:if(!ft.actions.init.match(n))return[3,4];o.label=1;case 1:return o.trys.push([1,3,,4]),t.dispatch(ft.actions.start()),[4,ue(null!==(i=Dt.getInstance().getParams(s.TABLE).tableId)&&void 0!==i?i:"")];case 2:return r=o.sent(),t.dispatch(ft.actions.success(r.data)),[3,4];case 3:return o.sent(),t.dispatch(ft.actions.error()),[3,4];case 4:return[2,e(n)]}})})}}},Ce=function(t){return function(e){return function(n){return O(void 0,void 0,void 0,function(){var r,i;return k(this,function(o){switch(o.label){case 0:if(!ft.actions.deactivate.match(n))return[3,4];o.label=1;case 1:return o.trys.push([1,3,,4]),t.dispatch(ft.actions.start()),[4,le(null!==(i=Dt.getInstance().getParams(s.TABLE).tableId)&&void 0!==i?i:"")];case 2:return r=o.sent(),t.dispatch(ft.actions.success(r.data)),[3,4];case 3:return o.sent(),t.dispatch(ft.actions.error()),[3,4];case 4:return[2,e(n)]}})})}}},Ie=function(t){return function(t){return function(e){return O(void 0,void 0,void 0,function(){return k(this,function(n){return ft.actions.backClick.match(e)&&Dt.getInstance().back(),[2,t(e)]})})}}},Ue=function(t){return function(e){return function(n){return O(void 0,void 0,void 0,function(){var r,i,o;return k(this,function(c){switch(c.label){case 0:if(!ft.actions.moveButtonClick.match(n))return[3,8];c.label=1;case 1:switch(c.trys.push([1,7,,8]),r=null!==(o=Dt.getInstance().getParams(s.TABLE).tableId)&&void 0!==o?o:"",i=void 0,n.payload){case b.ACTION_ENTER_THE_TABLE:return[3,2];case b.ACTION_EXIT_THE_TABLE:return[3,4]}return[3,6];case 2:return[4,se(r)];case 3:return i=c.sent(),[3,6];case 4:return[4,le(r)];case 5:return i=c.sent(),[3,6];case 6:return t.dispatch(ft.actions.success(i.data)),[3,8];case 7:return c.sent(),t.dispatch(ft.actions.error()),[3,8];case 8:return[2,e(n)]}})})}}};function Ae(){return[_e.middleware,Te.middleware,Ee.middleware,pe.middleware,me.middleware,ve.middleware,ge.middleware,he,Ce,Ie,Ue]}var Se=function(e){var r=e.items,i=e.itemClick,a=e.title,s=e.closeTitle,u=o();if(!c(G.selectors.getIsOpen))return t.createElement("div",null);var l=n(function(){u(G.actions.close)},[]);return t.createElement(m,{items:r,onItemClick:i,title:a,onCloseButtonClick:l,closeButtonTitle:null!=s?s:""})},Re=function(e){var r=e.items,i=e.itemClick,a=e.title,s=e.closeTitle,u=o();if(!c(G.selectors.getIsOpen))return t.createElement("div",null);var l=n(function(){u(G.actions.close)},[]);return t.createElement(m,{items:r,onItemClick:i,title:a,onCloseButtonClick:l,closeButtonTitle:null!=s?s:""})};export{Xt as BaseApplication,Mt as GlobalStorage,Vt as GlobalStorageEnum,Et as MenuScreen,Dt as Navigator,Se as RaiseBottomSheetBlock,Re as ReactionBottomSheetBlock,pt as ShopScreen,Lt as TableScreen,mt as TablesScreen,wt as WSConnector,P as appSlice,re as authRequest,kt as config,se as enterTheTableRequest,le as exitTheTableRequest,ft as gameTableScreenSlice,Ae as getBaseMiddlewares,_t as getBaseSlices,Tt as getBaseSlicesReducer,Wt as getClientInfo,oe as getMenuRequest,ce as getShopRequest,ae as getTablesRequest,V as menuScreenSlice,de as moveOnTheTableRequest,fe as playerCheckStateRequest,G as raiseBottomSheetBlockSlice,K as reactionBottomSheetBlockSlice,Pt as setDefaultRequestHeaders,w as shopScreenSlice,M as tablesScreenSlice,ue as watchTheTableRequest,D as wsConnectorSlice};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|