@gamepark/react-game 7.0.0-beta.0 → 7.0.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Avatar/Avatar.js +37 -61
- package/dist/components/Avatar/Avatar.js.map +1 -1
- package/dist/components/Avatar/ChatSpeechBubble.js +25 -68
- package/dist/components/Avatar/ChatSpeechBubble.js.map +1 -1
- package/dist/components/Avatar/SpeechBubble.d.ts +0 -1
- package/dist/components/Avatar/SpeechBubble.js +86 -50
- package/dist/components/Avatar/SpeechBubble.js.map +1 -1
- package/dist/components/Avatar/index.js +3 -19
- package/dist/components/Avatar/index.js.map +1 -1
- package/dist/components/GamePoints/GamePointIcon.js +7 -25
- package/dist/components/GamePoints/GamePointIcon.js.map +1 -1
- package/dist/components/GamePoints/GamePoints.js +20 -64
- package/dist/components/GamePoints/GamePoints.js.map +1 -1
- package/dist/components/GamePoints/index.js +2 -18
- package/dist/components/GamePoints/index.js.map +1 -1
- package/dist/components/GameProvider/GameContext.js +7 -14
- package/dist/components/GameProvider/GameContext.js.map +1 -1
- package/dist/components/GameProvider/GameProvider.js +91 -137
- package/dist/components/GameProvider/GameProvider.js.map +1 -1
- package/dist/components/GameProvider/index.js +2 -18
- package/dist/components/GameProvider/index.js.map +1 -1
- package/dist/components/Header/Header.d.ts +0 -1
- package/dist/components/Header/Header.js +34 -44
- package/dist/components/Header/Header.js.map +1 -1
- package/dist/components/Header/HeaderText.d.ts +0 -1
- package/dist/components/Header/HeaderText.js +15 -31
- package/dist/components/Header/HeaderText.js.map +1 -1
- package/dist/components/Header/MaterialHeader.js +42 -91
- package/dist/components/Header/MaterialHeader.js.map +1 -1
- package/dist/components/Header/index.js +3 -19
- package/dist/components/Header/index.js.map +1 -1
- package/dist/components/ImagesLoader/ImagesLoader.js +9 -15
- package/dist/components/ImagesLoader/ImagesLoader.js.map +1 -1
- package/dist/components/ImagesLoader/index.js +1 -17
- package/dist/components/ImagesLoader/index.js.map +1 -1
- package/dist/components/JournalTabs/Chat/Chat.d.ts +0 -1
- package/dist/components/JournalTabs/Chat/Chat.js +7 -33
- package/dist/components/JournalTabs/Chat/Chat.js.map +1 -1
- package/dist/components/JournalTabs/Chat/ChatMessage.js +12 -18
- package/dist/components/JournalTabs/Chat/ChatMessage.js.map +1 -1
- package/dist/components/JournalTabs/Chat/ChatMessageAuthor.js +19 -36
- package/dist/components/JournalTabs/Chat/ChatMessageAuthor.js.map +1 -1
- package/dist/components/JournalTabs/Chat/ChatTextInput.js +58 -61
- package/dist/components/JournalTabs/Chat/ChatTextInput.js.map +1 -1
- package/dist/components/JournalTabs/Chat/CommonChat.d.ts +1 -1
- package/dist/components/JournalTabs/Chat/CommonChat.js +43 -49
- package/dist/components/JournalTabs/Chat/CommonChat.js.map +1 -1
- package/dist/components/JournalTabs/Chat/LocalChat.js +10 -61
- package/dist/components/JournalTabs/Chat/LocalChat.js.map +1 -1
- package/dist/components/JournalTabs/Chat/RemoteChat.js +15 -43
- package/dist/components/JournalTabs/Chat/RemoteChat.js.map +1 -1
- package/dist/components/JournalTabs/Chat/SignInToChat.js +36 -23
- package/dist/components/JournalTabs/Chat/SignInToChat.js.map +1 -1
- package/dist/components/JournalTabs/Chat/index.js +5 -21
- package/dist/components/JournalTabs/Chat/index.js.map +1 -1
- package/dist/components/JournalTabs/History/GameOverHistory.js +14 -21
- package/dist/components/JournalTabs/History/GameOverHistory.js.map +1 -1
- package/dist/components/JournalTabs/History/History.d.ts +1 -1
- package/dist/components/JournalTabs/History/History.js +59 -55
- package/dist/components/JournalTabs/History/History.js.map +1 -1
- package/dist/components/JournalTabs/History/HistoryEntry.js +37 -44
- package/dist/components/JournalTabs/History/HistoryEntry.js.map +1 -1
- package/dist/components/JournalTabs/History/StartGameHistory.js +12 -18
- package/dist/components/JournalTabs/History/StartGameHistory.js.map +1 -1
- package/dist/components/JournalTabs/History/index.js +2 -18
- package/dist/components/JournalTabs/History/index.js.map +1 -1
- package/dist/components/JournalTabs/JournalTabs.d.ts +0 -1
- package/dist/components/JournalTabs/JournalTabs.js +122 -69
- package/dist/components/JournalTabs/JournalTabs.js.map +1 -1
- package/dist/components/JournalTabs/index.js +1 -17
- package/dist/components/JournalTabs/index.js.map +1 -1
- package/dist/components/Letterbox/Letterbox.js +29 -42
- package/dist/components/Letterbox/Letterbox.js.map +1 -1
- package/dist/components/Letterbox/index.js +1 -17
- package/dist/components/Letterbox/index.js.map +1 -1
- package/dist/components/LoadingScreen/LoadingScreen.js +83 -90
- package/dist/components/LoadingScreen/LoadingScreen.js.map +1 -1
- package/dist/components/LoadingScreen/index.js +1 -17
- package/dist/components/LoadingScreen/index.js.map +1 -1
- package/dist/components/Log/InternalLiveLogContainer.js +73 -84
- package/dist/components/Log/InternalLiveLogContainer.js.map +1 -1
- package/dist/components/Log/LiveLogButton.js +14 -20
- package/dist/components/Log/LiveLogButton.js.map +1 -1
- package/dist/components/Log/LiveLogContainer.js +6 -22
- package/dist/components/Log/LiveLogContainer.js.map +1 -1
- package/dist/components/Log/LogDescription.js +1 -2
- package/dist/components/Log/LogItem.d.ts +0 -1
- package/dist/components/Log/LogItem.js +42 -43
- package/dist/components/Log/LogItem.js.map +1 -1
- package/dist/components/Log/index.js +3 -19
- package/dist/components/Log/index.js.map +1 -1
- package/dist/components/Picture/Picture.d.ts +0 -1
- package/dist/components/Picture/Picture.js +6 -33
- package/dist/components/Picture/Picture.js.map +1 -1
- package/dist/components/Picture/index.js +1 -17
- package/dist/components/Picture/index.js.map +1 -1
- package/dist/components/PlayerPanel/Counters.d.ts +2 -2
- package/dist/components/PlayerPanel/Counters.js +82 -40
- package/dist/components/PlayerPanel/Counters.js.map +1 -1
- package/dist/components/PlayerPanel/PlayerPanel.js +83 -54
- package/dist/components/PlayerPanel/PlayerPanel.js.map +1 -1
- package/dist/components/PlayerPanel/StyledPlayerPanel.d.ts +0 -1
- package/dist/components/PlayerPanel/StyledPlayerPanel.js +145 -81
- package/dist/components/PlayerPanel/StyledPlayerPanel.js.map +1 -1
- package/dist/components/PlayerPanel/index.js +3 -19
- package/dist/components/PlayerPanel/index.js.map +1 -1
- package/dist/components/PlayerTimer/PlayerTimer.d.ts +1 -2
- package/dist/components/PlayerTimer/PlayerTimer.js +32 -62
- package/dist/components/PlayerTimer/PlayerTimer.js.map +1 -1
- package/dist/components/PlayerTimer/index.js +1 -17
- package/dist/components/PlayerTimer/index.js.map +1 -1
- package/dist/components/Scoring/ScoringDescription.js +1 -2
- package/dist/components/Scoring/index.js +1 -17
- package/dist/components/Scoring/index.js.map +1 -1
- package/dist/components/buttons/PlayMoveButton/PlayMoveButton.js +82 -106
- package/dist/components/buttons/PlayMoveButton/PlayMoveButton.js.map +1 -1
- package/dist/components/buttons/PlayMoveButton/index.js +1 -17
- package/dist/components/buttons/PlayMoveButton/index.js.map +1 -1
- package/dist/components/buttons/ThemeButton/ThemeButton.d.ts +0 -1
- package/dist/components/buttons/ThemeButton/ThemeButton.js +5 -20
- package/dist/components/buttons/ThemeButton/ThemeButton.js.map +1 -1
- package/dist/components/buttons/ThemeButton/index.js +1 -17
- package/dist/components/buttons/ThemeButton/index.js.map +1 -1
- package/dist/components/buttons/UndoMovesButton/UndoMovesButton.d.ts +0 -1
- package/dist/components/buttons/UndoMovesButton/UndoMovesButton.js +17 -59
- package/dist/components/buttons/UndoMovesButton/UndoMovesButton.js.map +1 -1
- package/dist/components/buttons/UndoMovesButton/index.js +1 -17
- package/dist/components/buttons/UndoMovesButton/index.js.map +1 -1
- package/dist/components/buttons/index.js +3 -19
- package/dist/components/buttons/index.js.map +1 -1
- package/dist/components/dialogs/Dialog.d.ts +0 -1
- package/dist/components/dialogs/Dialog.js +57 -68
- package/dist/components/dialogs/Dialog.js.map +1 -1
- package/dist/components/dialogs/FailuresDialog.js +39 -74
- package/dist/components/dialogs/FailuresDialog.js.map +1 -1
- package/dist/components/dialogs/ResultDialog/RematchDisplay.js +55 -53
- package/dist/components/dialogs/ResultDialog/RematchDisplay.js.map +1 -1
- package/dist/components/dialogs/ResultDialog/RematchSection.js +17 -28
- package/dist/components/dialogs/ResultDialog/RematchSection.js.map +1 -1
- package/dist/components/dialogs/ResultDialog/ResultDialog.js +130 -100
- package/dist/components/dialogs/ResultDialog/ResultDialog.js.map +1 -1
- package/dist/components/dialogs/ResultDialog/index.js +2 -18
- package/dist/components/dialogs/ResultDialog/index.js.map +1 -1
- package/dist/components/dialogs/ResultDialog/useScoringTable.d.ts +2 -2
- package/dist/components/dialogs/ResultDialog/useScoringTable.js +20 -27
- package/dist/components/dialogs/ResultDialog/useScoringTable.js.map +1 -1
- package/dist/components/dialogs/RulesDialog/LocationRulesDialogContent.js +32 -32
- package/dist/components/dialogs/RulesDialog/LocationRulesDialogContent.js.map +1 -1
- package/dist/components/dialogs/RulesDialog/MaterialRulesDialog.js +22 -37
- package/dist/components/dialogs/RulesDialog/MaterialRulesDialog.js.map +1 -1
- package/dist/components/dialogs/RulesDialog/MaterialRulesDialogContent.js +121 -118
- package/dist/components/dialogs/RulesDialog/MaterialRulesDialogContent.js.map +1 -1
- package/dist/components/dialogs/RulesDialog/RulesDialog.js +23 -43
- package/dist/components/dialogs/RulesDialog/RulesDialog.js.map +1 -1
- package/dist/components/dialogs/RulesDialog/RulesHelpDialogContent.d.ts +1 -1
- package/dist/components/dialogs/RulesDialog/RulesHelpDialogContent.js +36 -28
- package/dist/components/dialogs/RulesDialog/RulesHelpDialogContent.js.map +1 -1
- package/dist/components/dialogs/RulesDialog/index.js +2 -18
- package/dist/components/dialogs/RulesDialog/index.js.map +1 -1
- package/dist/components/dialogs/index.js +4 -20
- package/dist/components/dialogs/index.js.map +1 -1
- package/dist/components/index.js +17 -33
- package/dist/components/index.js.map +1 -1
- package/dist/components/material/ComponentDescription.js +32 -18
- package/dist/components/material/ComponentDescription.js.map +1 -1
- package/dist/components/material/Dices/CubicDiceDescription.d.ts +0 -1
- package/dist/components/material/Dices/CubicDiceDescription.js +58 -103
- package/dist/components/material/Dices/CubicDiceDescription.js.map +1 -1
- package/dist/components/material/Dices/index.js +1 -17
- package/dist/components/material/Dices/index.js.map +1 -1
- package/dist/components/material/DraggableMaterial.js +121 -199
- package/dist/components/material/DraggableMaterial.js.map +1 -1
- package/dist/components/material/FlatMaterial/BoardDescription.js +3 -27
- package/dist/components/material/FlatMaterial/BoardDescription.js.map +1 -1
- package/dist/components/material/FlatMaterial/CardDescription.js +6 -56
- package/dist/components/material/FlatMaterial/CardDescription.js.map +1 -1
- package/dist/components/material/FlatMaterial/FlatMaterial.d.ts +0 -1
- package/dist/components/material/FlatMaterial/FlatMaterial.js +88 -134
- package/dist/components/material/FlatMaterial/FlatMaterial.js.map +1 -1
- package/dist/components/material/FlatMaterial/MoneyDescription.js +10 -34
- package/dist/components/material/FlatMaterial/MoneyDescription.js.map +1 -1
- package/dist/components/material/FlatMaterial/PolyhexDescription.js +12 -63
- package/dist/components/material/FlatMaterial/PolyhexDescription.js.map +1 -1
- package/dist/components/material/FlatMaterial/TokenDescription.js +10 -66
- package/dist/components/material/FlatMaterial/TokenDescription.js.map +1 -1
- package/dist/components/material/FlatMaterial/index.js +6 -22
- package/dist/components/material/FlatMaterial/index.js.map +1 -1
- package/dist/components/material/GameTable/DropPreview.js +31 -67
- package/dist/components/material/GameTable/DropPreview.js.map +1 -1
- package/dist/components/material/GameTable/DynamicItemsDisplay.d.ts +1 -1
- package/dist/components/material/GameTable/DynamicItemsDisplay.js +22 -81
- package/dist/components/material/GameTable/DynamicItemsDisplay.js.map +1 -1
- package/dist/components/material/GameTable/GameMaterialDisplay.js +25 -31
- package/dist/components/material/GameTable/GameMaterialDisplay.js.map +1 -1
- package/dist/components/material/GameTable/GameTable.d.ts +0 -1
- package/dist/components/material/GameTable/GameTable.js +78 -126
- package/dist/components/material/GameTable/GameTable.js.map +1 -1
- package/dist/components/material/GameTable/GameTableNavigation.js +58 -68
- package/dist/components/material/GameTable/GameTableNavigation.js.map +1 -1
- package/dist/components/material/GameTable/ItemDisplay.d.ts +0 -1
- package/dist/components/material/GameTable/ItemDisplay.js +88 -154
- package/dist/components/material/GameTable/ItemDisplay.js.map +1 -1
- package/dist/components/material/GameTable/StaticItemsDisplay.d.ts +0 -1
- package/dist/components/material/GameTable/StaticItemsDisplay.js +23 -83
- package/dist/components/material/GameTable/StaticItemsDisplay.js.map +1 -1
- package/dist/components/material/GameTable/StaticLocationsDisplay.d.ts +0 -1
- package/dist/components/material/GameTable/StaticLocationsDisplay.js +11 -28
- package/dist/components/material/GameTable/StaticLocationsDisplay.js.map +1 -1
- package/dist/components/material/GameTable/focus/FocusProvider.js +28 -53
- package/dist/components/material/GameTable/focus/FocusProvider.js.map +1 -1
- package/dist/components/material/GameTable/focus/MaterialFocus.js +1 -2
- package/dist/components/material/GameTable/focus/index.js +2 -18
- package/dist/components/material/GameTable/focus/index.js.map +1 -1
- package/dist/components/material/GameTable/index.js +3 -19
- package/dist/components/material/GameTable/index.js.map +1 -1
- package/dist/components/material/ImageLoader/MaterialImageLoader.js +17 -89
- package/dist/components/material/ImageLoader/MaterialImageLoader.js.map +1 -1
- package/dist/components/material/ImageLoader/index.js +1 -17
- package/dist/components/material/ImageLoader/index.js.map +1 -1
- package/dist/components/material/ItemMenuButton.js +41 -70
- package/dist/components/material/ItemMenuButton.js.map +1 -1
- package/dist/components/material/ItemMenuWrapper.js +16 -67
- package/dist/components/material/ItemMenuWrapper.js.map +1 -1
- package/dist/components/material/MaterialComponent.d.ts +2 -2
- package/dist/components/material/MaterialComponent.js +22 -45
- package/dist/components/material/MaterialComponent.js.map +1 -1
- package/dist/components/material/MaterialComponentType.js +2 -5
- package/dist/components/material/MaterialComponentType.js.map +1 -1
- package/dist/components/material/MaterialDescription.d.ts +2 -3
- package/dist/components/material/MaterialDescription.js +125 -165
- package/dist/components/material/MaterialDescription.js.map +1 -1
- package/dist/components/material/MobileMaterialDescription.d.ts +0 -1
- package/dist/components/material/MobileMaterialDescription.js +21 -84
- package/dist/components/material/MobileMaterialDescription.js.map +1 -1
- package/dist/components/material/Wheel/WheelContent.d.ts +0 -1
- package/dist/components/material/Wheel/WheelContent.js +26 -30
- package/dist/components/material/Wheel/WheelContent.js.map +1 -1
- package/dist/components/material/Wheel/WheelDescription.d.ts +0 -1
- package/dist/components/material/Wheel/WheelDescription.js +45 -105
- package/dist/components/material/Wheel/WheelDescription.js.map +1 -1
- package/dist/components/material/Wheel/WheelItem.d.ts +0 -1
- package/dist/components/material/Wheel/WheelItem.js +43 -43
- package/dist/components/material/Wheel/WheelItem.js.map +1 -1
- package/dist/components/material/Wheel/index.js +1 -17
- package/dist/components/material/Wheel/index.js.map +1 -1
- package/dist/components/material/Writing/WritingDescription.js +44 -92
- package/dist/components/material/Writing/WritingDescription.js.map +1 -1
- package/dist/components/material/Writing/index.js +1 -17
- package/dist/components/material/Writing/index.js.map +1 -1
- package/dist/components/material/animations/CreateItemAnimations.d.ts +6 -1
- package/dist/components/material/animations/CreateItemAnimations.js +43 -67
- package/dist/components/material/animations/CreateItemAnimations.js.map +1 -1
- package/dist/components/material/animations/DeleteItemAnimations.d.ts +6 -1
- package/dist/components/material/animations/DeleteItemAnimations.js +44 -63
- package/dist/components/material/animations/DeleteItemAnimations.js.map +1 -1
- package/dist/components/material/animations/DeleteItemAtOnceAnimations.js +30 -53
- package/dist/components/material/animations/DeleteItemAtOnceAnimations.js.map +1 -1
- package/dist/components/material/animations/ItemAnimations.d.ts +6 -1
- package/dist/components/material/animations/ItemAnimations.js +21 -55
- package/dist/components/material/animations/ItemAnimations.js.map +1 -1
- package/dist/components/material/animations/MaterialAnimations.js +30 -56
- package/dist/components/material/animations/MaterialAnimations.js.map +1 -1
- package/dist/components/material/animations/MaterialGameAnimations.js +53 -131
- package/dist/components/material/animations/MaterialGameAnimations.js.map +1 -1
- package/dist/components/material/animations/MoveItemAnimations.js +62 -100
- package/dist/components/material/animations/MoveItemAnimations.js.map +1 -1
- package/dist/components/material/animations/MoveItemAtOnceAnimations.js +31 -66
- package/dist/components/material/animations/MoveItemAtOnceAnimations.js.map +1 -1
- package/dist/components/material/animations/RollItemAnimations.js +28 -76
- package/dist/components/material/animations/RollItemAnimations.js.map +1 -1
- package/dist/components/material/animations/ShuffleAnimations.js +9 -31
- package/dist/components/material/animations/ShuffleAnimations.js.map +1 -1
- package/dist/components/material/animations/getFirstStockItemTransforms.util.js +9 -24
- package/dist/components/material/animations/getFirstStockItemTransforms.util.js.map +1 -1
- package/dist/components/material/animations/index.js +8 -26
- package/dist/components/material/animations/index.js.map +1 -1
- package/dist/components/material/animations/rotations.utils.js +50 -83
- package/dist/components/material/animations/rotations.utils.js.map +1 -1
- package/dist/components/material/animations/transformItem.util.js +6 -35
- package/dist/components/material/animations/transformItem.util.js.map +1 -1
- package/dist/components/material/index.js +15 -31
- package/dist/components/material/index.js.map +1 -1
- package/dist/components/material/locations/DropAreaDescription.js +20 -80
- package/dist/components/material/locations/DropAreaDescription.js.map +1 -1
- package/dist/components/material/locations/HexGridDropAreaDescription.js +34 -101
- package/dist/components/material/locations/HexGridDropAreaDescription.js.map +1 -1
- package/dist/components/material/locations/LocationComponent.js +53 -89
- package/dist/components/material/locations/LocationComponent.js.map +1 -1
- package/dist/components/material/locations/LocationDescription.js +58 -113
- package/dist/components/material/locations/LocationDescription.js.map +1 -1
- package/dist/components/material/locations/LocationDisplay.js +25 -80
- package/dist/components/material/locations/LocationDisplay.js.map +1 -1
- package/dist/components/material/locations/LocationsMask.d.ts +1 -1
- package/dist/components/material/locations/LocationsMask.js +16 -23
- package/dist/components/material/locations/LocationsMask.js.map +1 -1
- package/dist/components/material/locations/SimpleDropArea.js +42 -91
- package/dist/components/material/locations/SimpleDropArea.js.map +1 -1
- package/dist/components/material/locations/index.js +5 -21
- package/dist/components/material/locations/index.js.map +1 -1
- package/dist/components/material/sound/AudioLoader.js +43 -92
- package/dist/components/material/sound/AudioLoader.js.map +1 -1
- package/dist/components/material/sound/MaterialGameSounds.js +42 -76
- package/dist/components/material/sound/MaterialGameSounds.js.map +1 -1
- package/dist/components/material/sound/MaterialSoundConfig.js +11 -8
- package/dist/components/material/sound/MaterialSoundConfig.js.map +1 -1
- package/dist/components/material/sound/MaterialSoundLoader.js +16 -69
- package/dist/components/material/sound/MaterialSoundLoader.js.map +1 -1
- package/dist/components/material/sound/index.js +2 -18
- package/dist/components/material/sound/index.js.map +1 -1
- package/dist/components/material/sound/sound.utils.js +1 -5
- package/dist/components/material/sound/sound.utils.js.map +1 -1
- package/dist/components/material/utils/IsLocationSubset.js +4 -8
- package/dist/components/material/utils/IsLocationSubset.js.map +1 -1
- package/dist/components/material/utils/getBestDropMove.d.ts +1 -1
- package/dist/components/material/utils/getBestDropMove.js +12 -26
- package/dist/components/material/utils/getBestDropMove.js.map +1 -1
- package/dist/components/material/utils/index.js +1 -17
- package/dist/components/material/utils/index.js.map +1 -1
- package/dist/components/material/utils/isDroppedItem.js +7 -24
- package/dist/components/material/utils/isDroppedItem.js.map +1 -1
- package/dist/components/material/utils/isPlacedOnItem.js +5 -9
- package/dist/components/material/utils/isPlacedOnItem.js.map +1 -1
- package/dist/components/material/utils/isRotationMove.js +5 -20
- package/dist/components/material/utils/isRotationMove.js.map +1 -1
- package/dist/components/material/utils/useIsAnimatingPlayerAction.js +4 -10
- package/dist/components/material/utils/useIsAnimatingPlayerAction.js.map +1 -1
- package/dist/components/menus/EjectPlayer/EjectPlayerButton.js +30 -33
- package/dist/components/menus/EjectPlayer/EjectPlayerButton.js.map +1 -1
- package/dist/components/menus/EjectPlayer/EjectPlayerDialog.js +47 -67
- package/dist/components/menus/EjectPlayer/EjectPlayerDialog.js.map +1 -1
- package/dist/components/menus/EjectPlayer/EjectPlayerPopButton.js +25 -51
- package/dist/components/menus/EjectPlayer/EjectPlayerPopButton.js.map +1 -1
- package/dist/components/menus/EjectPlayer/index.js +3 -19
- package/dist/components/menus/EjectPlayer/index.js.map +1 -1
- package/dist/components/menus/Fullscreen/FullscreenButton.js +11 -16
- package/dist/components/menus/Fullscreen/FullscreenButton.js.map +1 -1
- package/dist/components/menus/Fullscreen/FullscreenDialog.js +36 -61
- package/dist/components/menus/Fullscreen/FullscreenDialog.js.map +1 -1
- package/dist/components/menus/Fullscreen/FullscreenPopButton.js +28 -43
- package/dist/components/menus/Fullscreen/FullscreenPopButton.js.map +1 -1
- package/dist/components/menus/Fullscreen/index.js +3 -19
- package/dist/components/menus/Fullscreen/index.js.map +1 -1
- package/dist/components/menus/GiveUpButton/GiveUpButton.js +49 -61
- package/dist/components/menus/GiveUpButton/GiveUpButton.js.map +1 -1
- package/dist/components/menus/GiveUpButton/index.js +1 -17
- package/dist/components/menus/GiveUpButton/index.js.map +1 -1
- package/dist/components/menus/Menu/LogoIcon.d.ts +1 -1
- package/dist/components/menus/Menu/LogoIcon.js +2 -17
- package/dist/components/menus/Menu/LogoIcon.js.map +1 -1
- package/dist/components/menus/Menu/Menu.d.ts +2 -2
- package/dist/components/menus/Menu/Menu.js +117 -94
- package/dist/components/menus/Menu/Menu.js.map +1 -1
- package/dist/components/menus/Menu/MenuPopButton.js +21 -61
- package/dist/components/menus/Menu/MenuPopButton.js.map +1 -1
- package/dist/components/menus/Menu/NavButton.d.ts +0 -1
- package/dist/components/menus/Menu/NavButton.js +3 -32
- package/dist/components/menus/Menu/NavButton.js.map +1 -1
- package/dist/components/menus/Menu/index.js +1 -17
- package/dist/components/menus/Menu/index.js.map +1 -1
- package/dist/components/menus/PlayerQuit/TrackPlayersQuit.js +20 -43
- package/dist/components/menus/PlayerQuit/TrackPlayersQuit.js.map +1 -1
- package/dist/components/menus/PlayerQuit/index.js +1 -17
- package/dist/components/menus/PlayerQuit/index.js.map +1 -1
- package/dist/components/menus/RestartTutorialButton/RestartTutorialButton.js +12 -18
- package/dist/components/menus/RestartTutorialButton/RestartTutorialButton.js.map +1 -1
- package/dist/components/menus/RestartTutorialButton/index.js +1 -17
- package/dist/components/menus/RestartTutorialButton/index.js.map +1 -1
- package/dist/components/menus/Result/Medal.js +8 -35
- package/dist/components/menus/Result/Medal.js.map +1 -1
- package/dist/components/menus/Result/MedalBronze.d.ts +1 -1
- package/dist/components/menus/Result/MedalBronze.js +2 -17
- package/dist/components/menus/Result/MedalBronze.js.map +1 -1
- package/dist/components/menus/Result/MedalGold.d.ts +1 -1
- package/dist/components/menus/Result/MedalGold.js +2 -17
- package/dist/components/menus/Result/MedalGold.js.map +1 -1
- package/dist/components/menus/Result/MedalSilver.d.ts +1 -1
- package/dist/components/menus/Result/MedalSilver.js +2 -17
- package/dist/components/menus/Result/MedalSilver.js.map +1 -1
- package/dist/components/menus/Result/ResultButton.js +8 -24
- package/dist/components/menus/Result/ResultButton.js.map +1 -1
- package/dist/components/menus/Result/ResultPopButton.js +46 -36
- package/dist/components/menus/Result/ResultPopButton.js.map +1 -1
- package/dist/components/menus/Result/index.js +3 -19
- package/dist/components/menus/Result/index.js.map +1 -1
- package/dist/components/menus/SoundButton/SoundButton.js +11 -16
- package/dist/components/menus/SoundButton/SoundButton.js.map +1 -1
- package/dist/components/menus/SoundButton/index.js +1 -17
- package/dist/components/menus/SoundButton/index.js.map +1 -1
- package/dist/components/menus/TimeStatsButton/TimeStatsButton.js +68 -71
- package/dist/components/menus/TimeStatsButton/TimeStatsButton.js.map +1 -1
- package/dist/components/menus/TimeStatsButton/index.js +1 -17
- package/dist/components/menus/TimeStatsButton/index.js.map +1 -1
- package/dist/components/menus/UndoButton/UndoButton.js +11 -32
- package/dist/components/menus/UndoButton/UndoButton.js.map +1 -1
- package/dist/components/menus/UndoButton/UndoPopButton.js +24 -39
- package/dist/components/menus/UndoButton/UndoPopButton.js.map +1 -1
- package/dist/components/menus/UndoButton/index.js +2 -18
- package/dist/components/menus/UndoButton/index.js.map +1 -1
- package/dist/components/menus/index.js +6 -22
- package/dist/components/menus/index.js.map +1 -1
- package/dist/components/menus/menuCss.d.ts +9 -9
- package/dist/components/menus/menuCss.js +102 -19
- package/dist/components/menus/menuCss.js.map +1 -1
- package/dist/components/tutorial/MaterialTutorial.js +19 -27
- package/dist/components/tutorial/MaterialTutorial.js.map +1 -1
- package/dist/components/tutorial/MaterialTutorialDisplay.js +84 -96
- package/dist/components/tutorial/MaterialTutorialDisplay.js.map +1 -1
- package/dist/components/tutorial/TutorialRulesWrapper.js +54 -63
- package/dist/components/tutorial/TutorialRulesWrapper.js.map +1 -1
- package/dist/components/tutorial/index.js +1 -17
- package/dist/components/tutorial/index.js.map +1 -1
- package/dist/css/GameTheme.js +4 -7
- package/dist/css/GameTheme.js.map +1 -1
- package/dist/css/addStylesheetUrl.js +2 -6
- package/dist/css/addStylesheetUrl.js.map +1 -1
- package/dist/css/backgroundCss.d.ts +1 -1
- package/dist/css/backgroundCss.js +5 -11
- package/dist/css/backgroundCss.js.map +1 -1
- package/dist/css/buttonCss.d.ts +3 -3
- package/dist/css/buttonCss.js +45 -13
- package/dist/css/buttonCss.js.map +1 -1
- package/dist/css/componentSizeCss.d.ts +5 -5
- package/dist/css/componentSizeCss.js +17 -22
- package/dist/css/componentSizeCss.js.map +1 -1
- package/dist/css/cursorCss.d.ts +3 -3
- package/dist/css/cursorCss.js +10 -12
- package/dist/css/cursorCss.js.map +1 -1
- package/dist/css/fadeIn.d.ts +1 -1
- package/dist/css/fadeIn.js +9 -12
- package/dist/css/fadeIn.js.map +1 -1
- package/dist/css/index.js +10 -26
- package/dist/css/index.js.map +1 -1
- package/dist/css/shadowEffect.d.ts +1 -1
- package/dist/css/shadowEffect.js +15 -10
- package/dist/css/shadowEffect.js.map +1 -1
- package/dist/css/shineEffect.d.ts +1 -1
- package/dist/css/shineEffect.js +31 -11
- package/dist/css/shineEffect.js.map +1 -1
- package/dist/css/transformCss.d.ts +2 -2
- package/dist/css/transformCss.js +7 -18
- package/dist/css/transformCss.js.map +1 -1
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/index.js +26 -43
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/useActions.js +2 -8
- package/dist/hooks/useActions.js.map +1 -1
- package/dist/hooks/useAnimations.js +18 -52
- package/dist/hooks/useAnimations.js.map +1 -1
- package/dist/hooks/useDraggedItem.js +9 -28
- package/dist/hooks/useDraggedItem.js.map +1 -1
- package/dist/hooks/useFailures.d.ts +1 -1
- package/dist/hooks/useFailures.js +10 -10
- package/dist/hooks/useFailures.js.map +1 -1
- package/dist/hooks/useFlatHistory.js +60 -128
- package/dist/hooks/useFlatHistory.js.map +1 -1
- package/dist/hooks/useFullscreen.js +19 -42
- package/dist/hooks/useFullscreen.js.map +1 -1
- package/dist/hooks/useGame.js +3 -6
- package/dist/hooks/useGame.js.map +1 -1
- package/dist/hooks/useGiveUp.js +10 -15
- package/dist/hooks/useGiveUp.js.map +1 -1
- package/dist/hooks/useItemLocations.js +31 -102
- package/dist/hooks/useItemLocations.js.map +1 -1
- package/dist/hooks/useItemLocator.js +3 -7
- package/dist/hooks/useItemLocator.js.map +1 -1
- package/dist/hooks/useKeyDown.js +5 -9
- package/dist/hooks/useKeyDown.js.map +1 -1
- package/dist/hooks/useLegalMoves.js +8 -12
- package/dist/hooks/useLegalMoves.js.map +1 -1
- package/dist/hooks/useLocators.js +3 -7
- package/dist/hooks/useLocators.js.map +1 -1
- package/dist/hooks/useMaterialContext.js +11 -15
- package/dist/hooks/useMaterialContext.js.map +1 -1
- package/dist/hooks/useMaterialDescription.js +4 -8
- package/dist/hooks/useMaterialDescription.js.map +1 -1
- package/dist/hooks/useNow.js +9 -30
- package/dist/hooks/useNow.js.map +1 -1
- package/dist/hooks/useNumberOfPlayers.js +2 -6
- package/dist/hooks/useNumberOfPlayers.js.map +1 -1
- package/dist/hooks/useOpponentWithMaxTime.js +17 -39
- package/dist/hooks/useOpponentWithMaxTime.js.map +1 -1
- package/dist/hooks/usePlay.js +5 -21
- package/dist/hooks/usePlay.js.map +1 -1
- package/dist/hooks/usePlayerId.js +4 -10
- package/dist/hooks/usePlayerId.js.map +1 -1
- package/dist/hooks/usePlayerName.js +14 -19
- package/dist/hooks/usePlayerName.js.map +1 -1
- package/dist/hooks/usePlayerTime.js +16 -37
- package/dist/hooks/usePlayerTime.js.map +1 -1
- package/dist/hooks/usePlayers.js +35 -69
- package/dist/hooks/usePlayers.js.map +1 -1
- package/dist/hooks/useRankedPlayers.js +15 -20
- package/dist/hooks/useRankedPlayers.js.map +1 -1
- package/dist/hooks/useResultText.js +23 -28
- package/dist/hooks/useResultText.js.map +1 -1
- package/dist/hooks/useRules.js +10 -13
- package/dist/hooks/useRules.js.map +1 -1
- package/dist/hooks/useSound.js +8 -28
- package/dist/hooks/useSound.js.map +1 -1
- package/dist/hooks/useStaticLocations.js +21 -84
- package/dist/hooks/useStaticLocations.js.map +1 -1
- package/dist/hooks/useTutorialStep.js +7 -10
- package/dist/hooks/useTutorialStep.js.map +1 -1
- package/dist/hooks/useUndo.d.ts +1 -1
- package/dist/hooks/useUndo.js +29 -64
- package/dist/hooks/useUndo.js.map +1 -1
- package/dist/hooks/useWebP.js +10 -77
- package/dist/hooks/useWebP.js.map +1 -1
- package/dist/hooks/useZoomToElements.js +43 -75
- package/dist/hooks/useZoomToElements.js.map +1 -1
- package/dist/index.js +5 -23
- package/dist/index.js.map +1 -1
- package/dist/locators/DeckLocator.js +8 -30
- package/dist/locators/DeckLocator.js.map +1 -1
- package/dist/locators/FlexLocator.js +57 -70
- package/dist/locators/FlexLocator.js.map +1 -1
- package/dist/locators/HandLocator.js +74 -99
- package/dist/locators/HandLocator.js.map +1 -1
- package/dist/locators/HexagonalGridLocator.js +105 -158
- package/dist/locators/HexagonalGridLocator.js.map +1 -1
- package/dist/locators/ListLocator.js +59 -73
- package/dist/locators/ListLocator.js.map +1 -1
- package/dist/locators/Locator.d.ts +0 -1
- package/dist/locators/Locator.js +149 -191
- package/dist/locators/Locator.js.map +1 -1
- package/dist/locators/PileLocator.js +65 -126
- package/dist/locators/PileLocator.js.map +1 -1
- package/dist/locators/index.js +8 -24
- package/dist/locators/index.js.map +1 -1
- package/dist/locators/utils/getRelativePlayerIndex.util.js +2 -7
- package/dist/locators/utils/getRelativePlayerIndex.util.js.map +1 -1
- package/dist/locators/utils/index.js +1 -17
- package/dist/locators/utils/index.js.map +1 -1
- package/dist/utilities/DeepPartial.js +1 -2
- package/dist/utilities/combineEventListeners.js +5 -38
- package/dist/utilities/combineEventListeners.js.map +1 -1
- package/dist/utilities/findIfUnique.util.js +4 -7
- package/dist/utilities/findIfUnique.util.js.map +1 -1
- package/dist/utilities/index.js +4 -20
- package/dist/utilities/index.js.map +1 -1
- package/dist/utilities/translation.util.js +21 -31
- package/dist/utilities/translation.util.js.map +1 -1
- package/dist/utilities/zoom-pan-pinch/animations.constants.js +29 -32
- package/dist/utilities/zoom-pan-pinch/animations.constants.js.map +1 -1
- package/dist/utilities/zoom-pan-pinch/animations.util.js +24 -30
- package/dist/utilities/zoom-pan-pinch/animations.util.js.map +1 -1
- package/dist/utilities/zoom-pan-pinch/bounds.util.js +43 -52
- package/dist/utilities/zoom-pan-pinch/bounds.util.js.map +1 -1
- package/dist/utilities/zoom-pan-pinch/calculation.util.js +2 -7
- package/dist/utilities/zoom-pan-pinch/calculation.util.js.map +1 -1
- package/dist/utilities/zoom-pan-pinch/index.js +5 -21
- package/dist/utilities/zoom-pan-pinch/index.js.map +1 -1
- package/dist/utilities/zoom-pan-pinch/zoom.util.js +3 -6
- package/dist/utilities/zoom-pan-pinch/zoom.util.js.map +1 -1
- package/package.json +83 -77
- package/dist/components/Chat/Chat.d.ts +0 -3
- package/dist/components/Chat/Chat.js +0 -80
- package/dist/components/Chat/Chat.js.map +0 -1
- package/dist/components/Chat/ChatMessage.d.ts +0 -7
- package/dist/components/Chat/ChatMessage.js +0 -29
- package/dist/components/Chat/ChatMessage.js.map +0 -1
- package/dist/components/Chat/ChatMessageAuthor.d.ts +0 -3
- package/dist/components/Chat/ChatMessageAuthor.js +0 -34
- package/dist/components/Chat/ChatMessageAuthor.js.map +0 -1
- package/dist/components/Chat/ChatTextInput.d.ts +0 -7
- package/dist/components/Chat/ChatTextInput.js +0 -44
- package/dist/components/Chat/ChatTextInput.js.map +0 -1
- package/dist/components/Chat/SignInToChat.d.ts +0 -1
- package/dist/components/Chat/SignInToChat.js +0 -35
- package/dist/components/Chat/SignInToChat.js.map +0 -1
- package/dist/components/Chat/index.d.ts +0 -5
- package/dist/components/Chat/index.js +0 -22
- package/dist/components/Chat/index.js.map +0 -1
- package/dist/components/Header/PlayerTurnHeader.d.ts +0 -11
- package/dist/components/Header/PlayerTurnHeader.js +0 -37
- package/dist/components/Header/PlayerTurnHeader.js.map +0 -1
- package/dist/components/Header/SimultaneousHeader.d.ts +0 -8
- package/dist/components/Header/SimultaneousHeader.js +0 -35
- package/dist/components/Header/SimultaneousHeader.js.map +0 -1
- package/dist/components/JournalTabs/History/ActionHistoryEntry.d.ts +0 -12
- package/dist/components/JournalTabs/History/ActionHistoryEntry.js +0 -62
- package/dist/components/JournalTabs/History/ActionHistoryEntry.js.map +0 -1
- package/dist/components/JournalTabs/History/MaterialHistory.d.ts +0 -10
- package/dist/components/JournalTabs/History/MaterialHistory.js +0 -3
- package/dist/components/JournalTabs/History/MaterialHistory.js.map +0 -1
- package/dist/components/JournalTabs/History/PlayerActionHistory.d.ts +0 -8
- package/dist/components/JournalTabs/History/PlayerActionHistory.js +0 -42
- package/dist/components/JournalTabs/History/PlayerActionHistory.js.map +0 -1
- package/dist/components/JournalTabs/History/PlayerHistoryEntry.d.ts +0 -8
- package/dist/components/JournalTabs/History/PlayerHistoryEntry.js +0 -44
- package/dist/components/JournalTabs/History/PlayerHistoryEntry.js.map +0 -1
- package/dist/components/JournalTabs/History/StartHistory.d.ts +0 -2
- package/dist/components/JournalTabs/History/StartHistory.js +0 -30
- package/dist/components/JournalTabs/History/StartHistory.js.map +0 -1
- package/dist/components/material/Dices/DiceDescription.d.ts +0 -10
- package/dist/components/material/Dices/DiceDescription.js +0 -56
- package/dist/components/material/Dices/DiceDescription.js.map +0 -1
- package/dist/components/material/GameTable/DraggableStockItem.d.ts +0 -4
- package/dist/components/material/GameTable/DraggableStockItem.js +0 -82
- package/dist/components/material/GameTable/DraggableStockItem.js.map +0 -1
- package/dist/components/material/GameTable/FocusableElement.d.ts +0 -13
- package/dist/components/material/GameTable/FocusableElement.js +0 -63
- package/dist/components/material/GameTable/FocusableElement.js.map +0 -1
- package/dist/components/material/GameTable/FocusableLocation.d.ts +0 -8
- package/dist/components/material/GameTable/FocusableLocation.js +0 -37
- package/dist/components/material/GameTable/FocusableLocation.js.map +0 -1
- package/dist/components/material/GameTable/FocusableLocations.d.ts +0 -0
- package/dist/components/material/GameTable/FocusableLocations.js +0 -2
- package/dist/components/material/GameTable/FocusableLocations.js.map +0 -1
- package/dist/components/material/GameTable/GameTableContent.d.ts +0 -18
- package/dist/components/material/GameTable/GameTableContent.js +0 -63
- package/dist/components/material/GameTable/GameTableContent.js.map +0 -1
- package/dist/components/material/GameTable/focus/FocusableElement.d.ts +0 -13
- package/dist/components/material/GameTable/focus/FocusableElement.js +0 -63
- package/dist/components/material/GameTable/focus/FocusableElement.js.map +0 -1
- package/dist/components/material/GameTable/focus/FocusableLocation.d.ts +0 -8
- package/dist/components/material/GameTable/focus/FocusableLocation.js +0 -38
- package/dist/components/material/GameTable/focus/FocusableLocation.js.map +0 -1
- package/dist/components/material/GameTable/focus/LocationsWithFocus.d.ts +0 -9
- package/dist/components/material/GameTable/focus/LocationsWithFocus.js +0 -45
- package/dist/components/material/GameTable/focus/LocationsWithFocus.js.map +0 -1
- package/dist/components/material/GameTable/locations.utils.d.ts +0 -0
- package/dist/components/material/GameTable/locations.utils.js +0 -2
- package/dist/components/material/GameTable/locations.utils.js.map +0 -1
- package/dist/components/material/ItemMenu.js.map +0 -1
- package/dist/components/material/MaterialAnimations.d.ts +0 -25
- package/dist/components/material/MaterialAnimations.js +0 -219
- package/dist/components/material/MaterialAnimations.js.map +0 -1
- package/dist/components/material/MaterialGameAnimations.d.ts +0 -10
- package/dist/components/material/MaterialGameAnimations.js +0 -47
- package/dist/components/material/MaterialGameAnimations.js.map +0 -1
- package/dist/components/material/animations/adjustRotation.d.ts +0 -1
- package/dist/components/material/animations/adjustRotation.js +0 -67
- package/dist/components/material/animations/adjustRotation.js.map +0 -1
- package/dist/components/material/animations/isMovedOrDeletedItem.util.d.ts +0 -3
- package/dist/components/material/animations/isMovedOrDeletedItem.util.js +0 -26
- package/dist/components/material/animations/isMovedOrDeletedItem.util.js.map +0 -1
- package/dist/components/material/animations/itemMovementCss.util.d.ts +0 -2
- package/dist/components/material/animations/itemMovementCss.util.js +0 -13
- package/dist/components/material/animations/itemMovementCss.util.js.map +0 -1
- package/dist/components/material/locations/HexGridDropArea.d.ts +0 -11
- package/dist/components/material/locations/HexGridDropArea.js +0 -74
- package/dist/components/material/locations/HexGridDropArea.js.map +0 -1
- package/dist/components/material/utils/IsMoveOnItem.d.ts +0 -2
- package/dist/components/material/utils/IsMoveOnItem.js +0 -12
- package/dist/components/material/utils/IsMoveOnItem.js.map +0 -1
- package/dist/components/material/utils/getItemFromContext.d.ts +0 -3
- package/dist/components/material/utils/getItemFromContext.js +0 -10
- package/dist/components/material/utils/getItemFromContext.js.map +0 -1
- package/dist/components/menus/ContrastThemeButton/ContrastThemeButton.d.ts +0 -4
- package/dist/components/menus/ContrastThemeButton/ContrastThemeButton.js +0 -27
- package/dist/components/menus/ContrastThemeButton/ContrastThemeButton.js.map +0 -1
- package/dist/components/menus/ContrastThemeButton/index.d.ts +0 -1
- package/dist/components/menus/ContrastThemeButton/index.js +0 -18
- package/dist/components/menus/ContrastThemeButton/index.js.map +0 -1
- package/dist/components/tutorial/FocusableElement.d.ts +0 -0
- package/dist/components/tutorial/FocusableElement.js +0 -2
- package/dist/components/tutorial/FocusableElement.js.map +0 -1
- package/dist/hooks/useCloseHelpDialog.d.ts +0 -1
- package/dist/hooks/useCloseHelpDialog.js +0 -14
- package/dist/hooks/useCloseHelpDialog.js.map +0 -1
- package/dist/hooks/useContrastTheme.d.ts +0 -7
- package/dist/hooks/useContrastTheme.js +0 -27
- package/dist/hooks/useContrastTheme.js.map +0 -1
- package/dist/hooks/useGameHistory.d.ts +0 -1
- package/dist/hooks/useGameHistory.js +0 -13
- package/dist/hooks/useGameHistory.js.map +0 -1
- package/dist/hooks/useHistory.d.ts +0 -6
- package/dist/hooks/useHistory.js +0 -85
- package/dist/hooks/useHistory.js.map +0 -1
- package/dist/hooks/useMaterialAnimations.d.ts +0 -2
- package/dist/hooks/useMaterialAnimations.js +0 -17
- package/dist/hooks/useMaterialAnimations.js.map +0 -1
- package/dist/hooks/useMaterials.d.ts +0 -2
- package/dist/hooks/useMaterials.js +0 -10
- package/dist/hooks/useMaterials.js.map +0 -1
- package/dist/hooks/useRulesStep.d.ts +0 -2
- package/dist/hooks/useRulesStep.js +0 -10
- package/dist/hooks/useRulesStep.js.map +0 -1
- package/dist/hooks/useScale.d.ts +0 -1
- package/dist/hooks/useScale.js +0 -16
- package/dist/hooks/useScale.js.map +0 -1
- package/dist/locators/GridLocator.d.ts +0 -13
- package/dist/locators/GridLocator.js +0 -59
- package/dist/locators/GridLocator.js.map +0 -1
- package/dist/locators/ItemLocator.d.ts +0 -49
- package/dist/locators/ItemLocator.js +0 -144
- package/dist/locators/ItemLocator.js.map +0 -1
- package/dist/locators/LineLocator.d.ts +0 -12
- package/dist/locators/LineLocator.js +0 -77
- package/dist/locators/LineLocator.js.map +0 -1
- package/dist/translation/index.d.ts +0 -1
- package/dist/translation/index.js +0 -18
- package/dist/translation/index.js.map +0 -1
- package/dist/translation/setupTranslation.d.ts +0 -5
- package/dist/translation/setupTranslation.js +0 -33
- package/dist/translation/setupTranslation.js.map +0 -1
- package/dist/utilities/animations.constants.d.ts +0 -16
- package/dist/utilities/animations.constants.js +0 -62
- package/dist/utilities/animations.constants.js.map +0 -1
- package/dist/utilities/animations.util.d.ts +0 -4
- package/dist/utilities/animations.util.js +0 -71
- package/dist/utilities/animations.util.js.map +0 -1
- package/dist/utilities/bounds.util.d.ts +0 -7
- package/dist/utilities/bounds.util.js +0 -77
- package/dist/utilities/bounds.util.js.map +0 -1
- package/dist/utilities/calculation.util.d.ts +0 -2
- package/dist/utilities/calculation.util.js +0 -12
- package/dist/utilities/calculation.util.js.map +0 -1
- package/dist/utilities/pusher.d.ts +0 -2
- package/dist/utilities/pusher.js +0 -16
- package/dist/utilities/pusher.js.map +0 -1
- package/dist/utilities/zoom.util.d.ts +0 -1
- package/dist/utilities/zoom.util.js +0 -14
- package/dist/utilities/zoom.util.js.map +0 -1
|
@@ -1,64 +1,40 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
return
|
|
16
|
-
};
|
|
17
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
18
|
-
var t = {};
|
|
19
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
20
|
-
t[p] = s[p];
|
|
21
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
22
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
23
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
24
|
-
t[p[i]] = s[p[i]];
|
|
25
|
-
}
|
|
26
|
-
return t;
|
|
27
|
-
};
|
|
28
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
29
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30
|
-
};
|
|
31
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
-
exports.Avatar = void 0;
|
|
33
|
-
var jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
34
|
-
/** @jsxImportSource @emotion/react */
|
|
35
|
-
var react_1 = require("@emotion/react");
|
|
36
|
-
var avataaars_1 = __importDefault(require("@gamepark/avataaars"));
|
|
37
|
-
var react_client_1 = require("@gamepark/react-client");
|
|
38
|
-
var react_2 = require("react");
|
|
39
|
-
var hooks_1 = require("../../hooks");
|
|
40
|
-
var ChatSpeechBubble_1 = require("./ChatSpeechBubble");
|
|
41
|
-
var SpeechBubble_1 = require("./SpeechBubble");
|
|
42
|
-
exports.Avatar = (0, react_2.forwardRef)(function (props, ref) {
|
|
43
|
-
var _a, _b;
|
|
44
|
-
var playerId = props.playerId, speechBubbleProps = props.speechBubbleProps, children = props.children, rest = __rest(props, ["playerId", "speechBubbleProps", "children"]);
|
|
45
|
-
var player = (0, hooks_1.usePlayer)(playerId);
|
|
46
|
-
var me = (0, react_client_1.useMe)();
|
|
47
|
-
var myPlayerId = (0, hooks_1.usePlayerId)();
|
|
48
|
-
var avatar = myPlayerId === playerId ? (_b = (_a = me === null || me === void 0 ? void 0 : me.user) === null || _a === void 0 ? void 0 : _a.avatar) !== null && _b !== void 0 ? _b : player === null || player === void 0 ? void 0 : player.avatar : player === null || player === void 0 ? void 0 : player.avatar;
|
|
49
|
-
return ((0, jsx_runtime_1.jsxs)("div", __assign({ ref: ref, css: style }, rest, { children: [(0, jsx_runtime_1.jsx)(avataaars_1.default, __assign({ circle: true }, avatar, { css: [avatarCss, (player === null || player === void 0 ? void 0 : player.quit) && greyscale] })), !!speechBubbleProps && (0, jsx_runtime_1.jsx)(AvatarSpeechBubble, __assign({ playerId: playerId }, speechBubbleProps)), children] })));
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { css } from '@emotion/react';
|
|
3
|
+
import Avataaar from '@gamepark/avataaars';
|
|
4
|
+
import { useMe } from '@gamepark/react-client';
|
|
5
|
+
import { forwardRef } from 'react';
|
|
6
|
+
import { usePlayer, usePlayerId } from '../../hooks';
|
|
7
|
+
import { ChatSpeechBubble } from './ChatSpeechBubble';
|
|
8
|
+
import { SpeechBubble } from './SpeechBubble';
|
|
9
|
+
export const Avatar = forwardRef((props, ref) => {
|
|
10
|
+
const { playerId, speechBubbleProps, children, ...rest } = props;
|
|
11
|
+
const player = usePlayer(playerId);
|
|
12
|
+
const me = useMe();
|
|
13
|
+
const myPlayerId = usePlayerId();
|
|
14
|
+
const avatar = myPlayerId === playerId ? me?.user?.avatar ?? player?.avatar : player?.avatar;
|
|
15
|
+
return (_jsxs("div", { ref: ref, css: style, ...rest, children: [_jsx(Avataaar, { circle: true, ...avatar, css: [avatarCss, player?.quit && greyscale] }), !!speechBubbleProps && _jsx(AvatarSpeechBubble, { playerId: playerId, ...speechBubbleProps }), children] }));
|
|
50
16
|
});
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
return ((
|
|
57
|
-
(
|
|
58
|
-
gameId && player && (
|
|
17
|
+
const AvatarSpeechBubble = (props) => {
|
|
18
|
+
const { playerId, ...speechBubbleProps } = props;
|
|
19
|
+
const player = usePlayer(playerId);
|
|
20
|
+
const query = new URLSearchParams(window.location.search);
|
|
21
|
+
const gameId = query.get('game');
|
|
22
|
+
return (_jsx(_Fragment, { children: speechBubbleProps?.children ?
|
|
23
|
+
_jsx(SpeechBubble, { ...speechBubbleProps, children: speechBubbleProps.children }) :
|
|
24
|
+
gameId && player && _jsx(ChatSpeechBubble, { gameId: gameId, player: player, ...speechBubbleProps }) }));
|
|
59
25
|
};
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
26
|
+
const style = css `
|
|
27
|
+
border-radius: 50%;
|
|
28
|
+
box-shadow: 0 0 0.4em black;
|
|
29
|
+
`;
|
|
30
|
+
const avatarCss = css `
|
|
31
|
+
position: absolute;
|
|
32
|
+
bottom: 0;
|
|
33
|
+
left: -6%;
|
|
34
|
+
width: 112%;
|
|
35
|
+
height: 117%;
|
|
36
|
+
`;
|
|
37
|
+
const greyscale = css `
|
|
38
|
+
filter: grayscale();
|
|
39
|
+
`;
|
|
64
40
|
//# sourceMappingURL=Avatar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.js","sourceRoot":"","sources":["../../../src/components/Avatar/Avatar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Avatar.js","sourceRoot":"","sources":["../../../src/components/Avatar/Avatar.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AACpC,OAAO,QAAQ,MAAM,qBAAqB,CAAA;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAA;AAC9C,OAAO,EAAM,UAAU,EAAkB,MAAM,OAAO,CAAA;AACtD,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,YAAY,EAAqB,MAAM,gBAAgB,CAAA;AAOhE,MAAM,CAAC,MAAM,MAAM,GAAG,UAAU,CAA8B,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IAC3E,MAAM,EAAE,QAAQ,EAAE,iBAAiB,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAA;IAChE,MAAM,MAAM,GAAG,SAAS,CAAC,QAAQ,CAAC,CAAA;IAClC,MAAM,EAAE,GAAG,KAAK,EAAE,CAAA;IAClB,MAAM,UAAU,GAAG,WAAW,EAAE,CAAA;IAChC,MAAM,MAAM,GAAG,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,MAAM,IAAI,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,MAAM,CAAA;IAC5F,OAAO,CACL,eAAK,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,KAAK,KAAM,IAAI,aACjC,KAAC,QAAQ,IAAC,MAAM,WAAK,MAAM,EAAE,GAAG,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,IAAI,SAAS,CAAC,GAAG,EACzE,CAAC,CAAC,iBAAiB,IAAI,KAAC,kBAAkB,IAAC,QAAQ,EAAE,QAAQ,KAAO,iBAAiB,GAAI,EAC1F,QAAQ,IACL,CACP,CAAA;AACH,CAAC,CAAC,CAAA;AAMF,MAAM,kBAAkB,GAAgC,CAAC,KAAK,EAAE,EAAE;IAChE,MAAM,EAAE,QAAQ,EAAE,GAAG,iBAAiB,EAAE,GAAG,KAAK,CAAA;IAChD,MAAM,MAAM,GAAG,SAAS,CAAC,QAAQ,CAAC,CAAA;IAClC,MAAM,KAAK,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAA;IACzD,MAAM,MAAM,GAAG,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,CAAA;IAEhC,OAAO,CACL,4BACG,iBAAiB,EAAE,QAAQ,CAAC,CAAC;YAC5B,KAAC,YAAY,OAAK,iBAAiB,YAAG,iBAAiB,CAAC,QAAQ,GAAgB,CAAC,CAAC;YAClF,MAAM,IAAI,MAAM,IAAI,KAAC,gBAAgB,IAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAM,iBAAiB,GAAG,GAE/F,CACJ,CAAA;AACH,CAAC,CAAA;AAED,MAAM,KAAK,GAAG,GAAG,CAAA;;;CAGhB,CAAA;AAED,MAAM,SAAS,GAAG,GAAG,CAAA;;;;;;CAMpB,CAAA;AAED,MAAM,SAAS,GAAG,GAAG,CAAA;;CAEpB,CAAA"}
|
|
@@ -1,81 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
-
t[p] = s[p];
|
|
12
|
-
}
|
|
13
|
-
return t;
|
|
14
|
-
};
|
|
15
|
-
return __assign.apply(this, arguments);
|
|
16
|
-
};
|
|
17
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
18
|
-
var t = {};
|
|
19
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
20
|
-
t[p] = s[p];
|
|
21
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
22
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
23
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
24
|
-
t[p[i]] = s[p[i]];
|
|
25
|
-
}
|
|
26
|
-
return t;
|
|
27
|
-
};
|
|
28
|
-
var __read = (this && this.__read) || function (o, n) {
|
|
29
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
30
|
-
if (!m) return o;
|
|
31
|
-
var i = m.call(o), r, ar = [], e;
|
|
32
|
-
try {
|
|
33
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
34
|
-
}
|
|
35
|
-
catch (error) { e = { error: error }; }
|
|
36
|
-
finally {
|
|
37
|
-
try {
|
|
38
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
39
|
-
}
|
|
40
|
-
finally { if (e) throw e.error; }
|
|
41
|
-
}
|
|
42
|
-
return ar;
|
|
43
|
-
};
|
|
44
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
|
-
exports.ChatSpeechBubble = void 0;
|
|
46
|
-
var jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
47
|
-
/** @jsxImportSource @emotion/react */
|
|
48
|
-
var react_1 = require("@emotion/react");
|
|
49
|
-
var react_client_1 = require("@gamepark/react-client");
|
|
50
|
-
var react_2 = require("react");
|
|
51
|
-
var SpeechBubble_1 = require("./SpeechBubble");
|
|
52
|
-
var ChatSpeechBubble = function (_a) {
|
|
53
|
-
var gameId = _a.gameId, player = _a.player, props = __rest(_a, ["gameId", "player"]);
|
|
54
|
-
(0, react_2.useEffect)(function () {
|
|
55
|
-
var channel = react_client_1.pusherClient.subscribe("game=".concat(gameId));
|
|
56
|
-
channel.bind('message', function (message) {
|
|
1
|
+
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { css, keyframes } from '@emotion/react';
|
|
3
|
+
import { pusherClient } from '@gamepark/react-client';
|
|
4
|
+
import { useEffect, useState } from 'react';
|
|
5
|
+
import { SpeechBubble } from './SpeechBubble';
|
|
6
|
+
export const ChatSpeechBubble = ({ gameId, player, ...props }) => {
|
|
7
|
+
useEffect(() => {
|
|
8
|
+
const channel = pusherClient.subscribe(`game=${gameId}`);
|
|
9
|
+
channel.bind('message', (message) => {
|
|
57
10
|
if (message && player.userId === message.userId) {
|
|
58
11
|
setMessage(message.text);
|
|
59
12
|
}
|
|
60
13
|
});
|
|
61
|
-
return
|
|
14
|
+
return () => pusherClient.unsubscribe(`game=${gameId}`);
|
|
62
15
|
}, []);
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
16
|
+
const [message, setMessage] = useState('');
|
|
17
|
+
const hideMessage = () => setMessage('');
|
|
18
|
+
useEffect(() => {
|
|
66
19
|
if (message) {
|
|
67
|
-
|
|
68
|
-
return
|
|
20
|
+
const timeout = setTimeout(hideMessage, 5000);
|
|
21
|
+
return () => clearTimeout(timeout);
|
|
69
22
|
}
|
|
70
23
|
}, [message]);
|
|
71
|
-
|
|
24
|
+
const onClick = (event) => {
|
|
72
25
|
hideMessage();
|
|
73
26
|
event.stopPropagation();
|
|
74
27
|
};
|
|
75
|
-
return message ? (
|
|
28
|
+
return message ? _jsx(SpeechBubble, { css: chatSpeechBubbleCss, onClick: onClick, ...props, children: message }) : null;
|
|
76
29
|
};
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
30
|
+
const fadeOut = keyframes `
|
|
31
|
+
to {
|
|
32
|
+
opacity: 0
|
|
33
|
+
}
|
|
34
|
+
`;
|
|
35
|
+
const chatSpeechBubbleCss = css `
|
|
36
|
+
animation: 1s ${fadeOut} 4s forwards;
|
|
37
|
+
`;
|
|
81
38
|
//# sourceMappingURL=ChatSpeechBubble.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatSpeechBubble.js","sourceRoot":"","sources":["../../../src/components/Avatar/ChatSpeechBubble.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChatSpeechBubble.js","sourceRoot":"","sources":["../../../src/components/Avatar/ChatSpeechBubble.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC/C,OAAO,EAAmB,YAAY,EAAE,MAAM,wBAAwB,CAAA;AACtE,OAAO,EAAc,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACvD,OAAO,EAAE,YAAY,EAAqB,MAAM,gBAAgB,CAAA;AAOhE,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,KAAK,EAAS,EAAE,EAAE;IACtE,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,OAAO,GAAG,YAAY,CAAC,SAAS,CAAC,QAAQ,MAAM,EAAE,CAAC,CAAA;QACxD,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC,OAAgB,EAAE,EAAE;YAC3C,IAAI,OAAO,IAAI,MAAM,CAAC,MAAM,KAAK,OAAO,CAAC,MAAM,EAAE,CAAC;gBAChD,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;YAC1B,CAAC;QACH,CAAC,CAAC,CAAA;QACF,OAAO,GAAG,EAAE,CAAC,YAAY,CAAC,WAAW,CAAC,QAAQ,MAAM,EAAE,CAAC,CAAA;IACzD,CAAC,EAAE,EAAE,CAAC,CAAA;IACN,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAA;IAC1C,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC,CAAA;IACxC,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,OAAO,EAAE,CAAC;YACZ,MAAM,OAAO,GAAG,UAAU,CAAC,WAAW,EAAE,IAAI,CAAC,CAAA;YAC7C,OAAO,GAAG,EAAE,CAAC,YAAY,CAAC,OAAO,CAAC,CAAA;QACpC,CAAC;IACH,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAA;IACb,MAAM,OAAO,GAAG,CAAC,KAAiB,EAAE,EAAE;QACpC,WAAW,EAAE,CAAA;QACb,KAAK,CAAC,eAAe,EAAE,CAAA;IACzB,CAAC,CAAA;IACD,OAAO,OAAO,CAAC,CAAC,CAAC,KAAC,YAAY,IAAC,GAAG,EAAE,mBAAmB,EAAE,OAAO,EAAE,OAAO,KAAM,KAAK,YAAG,OAAO,GAAgB,CAAC,CAAC,CAAC,IAAI,CAAA;AACvH,CAAC,CAAA;AAED,MAAM,OAAO,GAAG,SAAS,CAAA;;;;CAIxB,CAAA;AAED,MAAM,mBAAmB,GAAG,GAAG,CAAA;kBACb,OAAO;CACxB,CAAA"}
|
|
@@ -1,57 +1,46 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
};
|
|
6
|
-
var __assign = (this && this.__assign) || function () {
|
|
7
|
-
__assign = Object.assign || function(t) {
|
|
8
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
-
s = arguments[i];
|
|
10
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
-
t[p] = s[p];
|
|
12
|
-
}
|
|
13
|
-
return t;
|
|
14
|
-
};
|
|
15
|
-
return __assign.apply(this, arguments);
|
|
16
|
-
};
|
|
17
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
18
|
-
var t = {};
|
|
19
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
20
|
-
t[p] = s[p];
|
|
21
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
22
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
23
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
24
|
-
t[p[i]] = s[p[i]];
|
|
25
|
-
}
|
|
26
|
-
return t;
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.SpeechBubble = exports.SpeechBubbleDirection = void 0;
|
|
30
|
-
var jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
31
|
-
/** @jsxImportSource @emotion/react */
|
|
32
|
-
var react_1 = require("@emotion/react");
|
|
33
|
-
var react_dom_1 = require("react-dom");
|
|
34
|
-
var SpeechBubbleDirection;
|
|
1
|
+
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { css } from '@emotion/react';
|
|
3
|
+
import { createPortal } from 'react-dom';
|
|
4
|
+
export var SpeechBubbleDirection;
|
|
35
5
|
(function (SpeechBubbleDirection) {
|
|
36
6
|
SpeechBubbleDirection[SpeechBubbleDirection["TOP_LEFT"] = 0] = "TOP_LEFT";
|
|
37
7
|
SpeechBubbleDirection[SpeechBubbleDirection["TOP_RIGHT"] = 1] = "TOP_RIGHT";
|
|
38
8
|
SpeechBubbleDirection[SpeechBubbleDirection["BOTTOM_LEFT"] = 2] = "BOTTOM_LEFT";
|
|
39
9
|
SpeechBubbleDirection[SpeechBubbleDirection["BOTTOM_RIGHT"] = 3] = "BOTTOM_RIGHT";
|
|
40
|
-
})(SpeechBubbleDirection || (
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
var speechBubble = (0, jsx_runtime_1.jsx)("p", __assign({ css: [speechBubbleCss, getDirectionStyle(direction), css] }, props, { children: children }));
|
|
10
|
+
})(SpeechBubbleDirection || (SpeechBubbleDirection = {}));
|
|
11
|
+
export const SpeechBubble = ({ children, direction = SpeechBubbleDirection.TOP_LEFT, parent, css, ...props }) => {
|
|
12
|
+
const speechBubble = _jsx("p", { css: [speechBubbleCss, getDirectionStyle(direction), css], ...props, children: children });
|
|
44
13
|
if (parent) {
|
|
45
|
-
|
|
14
|
+
const parentElement = document.getElementById(parent);
|
|
46
15
|
if (parentElement) {
|
|
47
|
-
return
|
|
16
|
+
return createPortal(speechBubble, parentElement);
|
|
48
17
|
}
|
|
49
18
|
}
|
|
50
19
|
return speechBubble;
|
|
51
20
|
};
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
21
|
+
const speechBubbleCss = css `
|
|
22
|
+
position: absolute;
|
|
23
|
+
width: max-content;
|
|
24
|
+
max-width: 15em;
|
|
25
|
+
background: white;
|
|
26
|
+
border-radius: .4em;
|
|
27
|
+
font-size: 3em;
|
|
28
|
+
padding: 0.2em 0.4em;
|
|
29
|
+
margin: 0;
|
|
30
|
+
z-index: 500;
|
|
31
|
+
pointer-events: none;
|
|
32
|
+
filter:drop-shadow(0 0 0.1rem black);
|
|
33
|
+
|
|
34
|
+
:after {
|
|
35
|
+
content: '';
|
|
36
|
+
position: absolute;
|
|
37
|
+
width: 0;
|
|
38
|
+
height: 0;
|
|
39
|
+
border-style: solid;
|
|
40
|
+
border-color: transparent;
|
|
41
|
+
}
|
|
42
|
+
`;
|
|
43
|
+
const getDirectionStyle = (direction) => {
|
|
55
44
|
switch (direction) {
|
|
56
45
|
case SpeechBubbleDirection.TOP_LEFT:
|
|
57
46
|
return [topBubble, leftBubble, rotateArrow];
|
|
@@ -63,11 +52,58 @@ var getDirectionStyle = function (direction) {
|
|
|
63
52
|
return [bottomBubble, rightBubble, rotateArrow];
|
|
64
53
|
}
|
|
65
54
|
};
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
55
|
+
const topBubble = css `
|
|
56
|
+
bottom: 45%;
|
|
57
|
+
|
|
58
|
+
:after {
|
|
59
|
+
bottom: 0;
|
|
60
|
+
border-top-width: 0.4em;
|
|
61
|
+
border-bottom: 0;
|
|
62
|
+
margin-bottom: 0.3em;
|
|
63
|
+
}
|
|
64
|
+
`;
|
|
65
|
+
const bottomBubble = css `
|
|
66
|
+
top: 45%;
|
|
67
|
+
|
|
68
|
+
:after {
|
|
69
|
+
top: 0;
|
|
70
|
+
border-bottom-width: 0.4em;
|
|
71
|
+
border-top: 0;
|
|
72
|
+
margin-top: 0.3em;
|
|
73
|
+
}
|
|
74
|
+
`;
|
|
75
|
+
const leftBubble = css `
|
|
76
|
+
left: -0.3em;
|
|
77
|
+
transform: translateX(-100%);
|
|
78
|
+
|
|
79
|
+
:after {
|
|
80
|
+
right: 0;
|
|
81
|
+
border-left-color: white;
|
|
82
|
+
border-left-width: 0.6em;
|
|
83
|
+
border-right: 0;
|
|
84
|
+
margin-right: -0.5em;
|
|
85
|
+
}
|
|
86
|
+
`;
|
|
87
|
+
const rightBubble = css `
|
|
88
|
+
right: -0.3em;
|
|
89
|
+
transform: translateX(100%);
|
|
90
|
+
|
|
91
|
+
:after {
|
|
92
|
+
left: 0;
|
|
93
|
+
border-right-color: white;
|
|
94
|
+
border-right-width: 0.6em;
|
|
95
|
+
border-left: 0;
|
|
96
|
+
margin-left: -0.5em;
|
|
97
|
+
}
|
|
98
|
+
`;
|
|
99
|
+
const rotateArrow = css `
|
|
100
|
+
:after {
|
|
101
|
+
transform: rotate(15deg);
|
|
102
|
+
}
|
|
103
|
+
`;
|
|
104
|
+
const reverseRotateArrow = css `
|
|
105
|
+
:after {
|
|
106
|
+
transform: rotate(-15deg);
|
|
107
|
+
}
|
|
108
|
+
`;
|
|
73
109
|
//# sourceMappingURL=SpeechBubble.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpeechBubble.js","sourceRoot":"","sources":["../../../src/components/Avatar/SpeechBubble.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SpeechBubble.js","sourceRoot":"","sources":["../../../src/components/Avatar/SpeechBubble.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAwB,MAAM,gBAAgB,CAAA;AAE1D,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAExC,MAAM,CAAN,IAAY,qBAEX;AAFD,WAAY,qBAAqB;IAC/B,yEAAQ,CAAA;IAAE,2EAAS,CAAA;IAAE,+EAAW,CAAA;IAAE,iFAAY,CAAA;AAChD,CAAC,EAFW,qBAAqB,KAArB,qBAAqB,QAEhC;AAQD,MAAM,CAAC,MAAM,YAAY,GAA0B,CAAC,EAAE,QAAQ,EAAE,SAAS,GAAG,qBAAqB,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IACrI,MAAM,YAAY,GAAG,YAAG,GAAG,EAAE,CAAC,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,EAAE,GAAG,CAAC,KAAM,KAAK,YAAG,QAAQ,GAAK,CAAA;IAC5G,IAAI,MAAM,EAAE,CAAC;QACX,MAAM,aAAa,GAAG,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAA;QACrD,IAAI,aAAa,EAAE,CAAC;YAClB,OAAO,YAAY,CAAC,YAAY,EAAE,aAAa,CAAC,CAAA;QAClD,CAAC;IACH,CAAC;IACD,OAAO,YAAY,CAAA;AACrB,CAAC,CAAA;AAED,MAAM,eAAe,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;CAqB1B,CAAA;AAED,MAAM,iBAAiB,GAAG,CAAC,SAAgC,EAAE,EAAE;IAC7D,QAAQ,SAAS,EAAE,CAAC;QAClB,KAAK,qBAAqB,CAAC,QAAQ;YACjC,OAAO,CAAC,SAAS,EAAE,UAAU,EAAE,WAAW,CAAC,CAAA;QAC7C,KAAK,qBAAqB,CAAC,SAAS;YAClC,OAAO,CAAC,SAAS,EAAE,WAAW,EAAE,kBAAkB,CAAC,CAAA;QACrD,KAAK,qBAAqB,CAAC,WAAW;YACpC,OAAO,CAAC,YAAY,EAAE,UAAU,EAAE,kBAAkB,CAAC,CAAA;QACvD,KAAK,qBAAqB,CAAC,YAAY;YACrC,OAAO,CAAC,YAAY,EAAE,WAAW,EAAE,WAAW,CAAC,CAAA;IACnD,CAAC;AACH,CAAC,CAAA;AAED,MAAM,SAAS,GAAG,GAAG,CAAA;;;;;;;;;CASpB,CAAA;AAED,MAAM,YAAY,GAAG,GAAG,CAAA;;;;;;;;;CASvB,CAAA;AAED,MAAM,UAAU,GAAG,GAAG,CAAA;;;;;;;;;;;CAWrB,CAAA;AAED,MAAM,WAAW,GAAG,GAAG,CAAA;;;;;;;;;;;CAWtB,CAAA;AAED,MAAM,WAAW,GAAG,GAAG,CAAA;;;;CAItB,CAAA;AAED,MAAM,kBAAkB,GAAG,GAAG,CAAA;;;;CAI7B,CAAA"}
|
|
@@ -1,20 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./Avatar"), exports);
|
|
18
|
-
__exportStar(require("./ChatSpeechBubble"), exports);
|
|
19
|
-
__exportStar(require("./SpeechBubble"), exports);
|
|
1
|
+
export * from './Avatar';
|
|
2
|
+
export * from './ChatSpeechBubble';
|
|
3
|
+
export * from './SpeechBubble';
|
|
20
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Avatar/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Avatar/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,oBAAoB,CAAA;AAClC,cAAc,gBAAgB,CAAA"}
|
|
@@ -1,26 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
-
s = arguments[i];
|
|
10
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
-
t[p] = s[p];
|
|
12
|
-
}
|
|
13
|
-
return t;
|
|
14
|
-
};
|
|
15
|
-
return __assign.apply(this, arguments);
|
|
16
|
-
};
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.GamePointIcon = void 0;
|
|
19
|
-
var jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
20
|
-
/** @jsxImportSource @emotion/react */
|
|
21
|
-
var react_1 = require("@emotion/react");
|
|
22
|
-
var GamePointIcon = function (props) { return ((0, jsx_runtime_1.jsxs)("svg", __assign({ viewBox: "210 150 420 300", css: style }, props, { children: [(0, jsx_runtime_1.jsx)("path", { fill: "#002448", d: "M493.7,138.3v55.4h-79.1c0,0-28-5.6-28.5,39c-0.6,44.3,0,152.2,0,152.2H433l0.6-74.3h-20.1l-0.6-57.9h80.8\r\n\t\tv191.2H374.2c0,0-57.3-10.4-48.9-73.1l-0.8-159.6c0,0,8.2-68.9,78.8-75.4L493.7,138.3z" }), (0, jsx_runtime_1.jsx)("circle", { fill: "#002448", cx: "259.7", cy: "317.4", r: "20.7" }), (0, jsx_runtime_1.jsx)("circle", { fill: "#002448", cx: "547.8", cy: "317.4", r: "20.7" }), (0, jsx_runtime_1.jsx)("path", { fill: "#28B8CE", d: "M479.6,146.7V202h-79.1c0,0-28-5.6-28.5,39c-0.6,44.3,0,152.2,0,152.2h46.9l0.6-74.3h-20.1l-0.6-57.9h80.8\r\n\t\tv191.2H360.1c0,0-57.3-10.4-48.9-73.1l-0.8-159.6c0,0,8.2-68.9,78.8-75.4L479.6,146.7z" })] }))); };
|
|
23
|
-
exports.GamePointIcon = GamePointIcon;
|
|
24
|
-
var style = (0, react_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 1em;\n width: 1.3em;\n"], ["\n height: 1em;\n width: 1.3em;\n"])));
|
|
25
|
-
var templateObject_1;
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { css } from '@emotion/react';
|
|
3
|
+
export const GamePointIcon = (props) => (_jsxs("svg", { viewBox: "210 150 420 300", css: style, ...props, children: [_jsx("path", { fill: "#002448", d: "M493.7,138.3v55.4h-79.1c0,0-28-5.6-28.5,39c-0.6,44.3,0,152.2,0,152.2H433l0.6-74.3h-20.1l-0.6-57.9h80.8\r\n\t\tv191.2H374.2c0,0-57.3-10.4-48.9-73.1l-0.8-159.6c0,0,8.2-68.9,78.8-75.4L493.7,138.3z" }), _jsx("circle", { fill: "#002448", cx: "259.7", cy: "317.4", r: "20.7" }), _jsx("circle", { fill: "#002448", cx: "547.8", cy: "317.4", r: "20.7" }), _jsx("path", { fill: "#28B8CE", d: "M479.6,146.7V202h-79.1c0,0-28-5.6-28.5,39c-0.6,44.3,0,152.2,0,152.2h46.9l0.6-74.3h-20.1l-0.6-57.9h80.8\r\n\t\tv191.2H360.1c0,0-57.3-10.4-48.9-73.1l-0.8-159.6c0,0,8.2-68.9,78.8-75.4L479.6,146.7z" })] }));
|
|
4
|
+
const style = css `
|
|
5
|
+
height: 1em;
|
|
6
|
+
width: 1.3em;
|
|
7
|
+
`;
|
|
26
8
|
//# sourceMappingURL=GamePointIcon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GamePointIcon.js","sourceRoot":"","sources":["../../../src/components/GamePoints/GamePointIcon.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GamePointIcon.js","sourceRoot":"","sources":["../../../src/components/GamePoints/GamePointIcon.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AAGpC,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,KAA8B,EAAE,EAAE,CAAC,CAC/D,eAAK,OAAO,EAAC,iBAAiB,EAAC,GAAG,EAAE,KAAK,KAAM,KAAK,aAClD,eAAM,IAAI,EAAC,SAAS,EAAC,CAAC,EAAC,mMAC2D,GAAE,EACpF,iBAAQ,IAAI,EAAC,SAAS,EAAC,EAAE,EAAC,OAAO,EAAC,EAAE,EAAC,OAAO,EAAC,CAAC,EAAC,MAAM,GAAE,EACvD,iBAAQ,IAAI,EAAC,SAAS,EAAC,EAAE,EAAC,OAAO,EAAC,EAAE,EAAC,OAAO,EAAC,CAAC,EAAC,MAAM,GAAE,EACvD,eAAM,IAAI,EAAC,SAAS,EAAC,CAAC,EAAC,mMAC2D,GAAE,IAChF,CACP,CAAA;AAED,MAAM,KAAK,GAAG,GAAG,CAAA;;;CAGhB,CAAA"}
|
|
@@ -1,74 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
t[p] = s[p];
|
|
12
|
-
}
|
|
13
|
-
return t;
|
|
14
|
-
};
|
|
15
|
-
return __assign.apply(this, arguments);
|
|
16
|
-
};
|
|
17
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
18
|
-
var t = {};
|
|
19
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
20
|
-
t[p] = s[p];
|
|
21
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
22
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
23
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
24
|
-
t[p[i]] = s[p[i]];
|
|
25
|
-
}
|
|
26
|
-
return t;
|
|
27
|
-
};
|
|
28
|
-
var __read = (this && this.__read) || function (o, n) {
|
|
29
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
30
|
-
if (!m) return o;
|
|
31
|
-
var i = m.call(o), r, ar = [], e;
|
|
32
|
-
try {
|
|
33
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
34
|
-
}
|
|
35
|
-
catch (error) { e = { error: error }; }
|
|
36
|
-
finally {
|
|
37
|
-
try {
|
|
38
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
39
|
-
}
|
|
40
|
-
finally { if (e) throw e.error; }
|
|
41
|
-
}
|
|
42
|
-
return ar;
|
|
43
|
-
};
|
|
44
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
|
-
exports.GamePoints = void 0;
|
|
46
|
-
var jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
47
|
-
/** @jsxImportSource @emotion/react */
|
|
48
|
-
var react_1 = require("@emotion/react");
|
|
49
|
-
var react_2 = require("react");
|
|
50
|
-
var react_redux_1 = require("react-redux");
|
|
51
|
-
var index_1 = require("./index");
|
|
52
|
-
var GamePoints = function (_a) {
|
|
53
|
-
var _b;
|
|
54
|
-
var playerId = _a.playerId, _c = _a.suspense, suspense = _c === void 0 ? 0.1 : _c, test = _a.test, props = __rest(_a, ["playerId", "suspense", "test"]);
|
|
55
|
-
var player = (0, react_redux_1.useSelector)(function (state) { return state.players.find(function (p) { return p.id === playerId; }); });
|
|
56
|
-
var gamePointsDelta = (_b = player === null || player === void 0 ? void 0 : player.gamePointsDelta) !== null && _b !== void 0 ? _b : test;
|
|
57
|
-
var _d = __read((0, react_2.useState)(false), 2), hidden = _d[0], setHidden = _d[1];
|
|
58
|
-
(0, react_2.useEffect)(function () {
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { css } from '@emotion/react';
|
|
3
|
+
import { useGameSelector } from '@gamepark/react-client';
|
|
4
|
+
import { useEffect, useState } from 'react';
|
|
5
|
+
import { GamePointIcon } from './index';
|
|
6
|
+
export const GamePoints = ({ playerId, suspense = 0.1, test, ...props }) => {
|
|
7
|
+
const player = useGameSelector((state) => state.players.find(p => p.id === playerId));
|
|
8
|
+
const gamePointsDelta = player?.gamePointsDelta ?? test;
|
|
9
|
+
const [hidden, setHidden] = useState(false);
|
|
10
|
+
useEffect(() => {
|
|
59
11
|
if (player && gamePointsDelta === undefined) {
|
|
60
12
|
setHidden(true);
|
|
61
13
|
}
|
|
62
14
|
else if (hidden && gamePointsDelta !== undefined) {
|
|
63
|
-
setTimeout(
|
|
15
|
+
setTimeout(() => setHidden(false), suspense * 1000);
|
|
64
16
|
}
|
|
65
17
|
}, [player, gamePointsDelta, hidden, suspense, setHidden]);
|
|
66
18
|
if (gamePointsDelta === undefined)
|
|
67
19
|
return null;
|
|
68
|
-
return (
|
|
20
|
+
return _jsxs("span", { css: [style, hidden && hiddenCss], ...props, children: [_jsx(GamePointIcon, {}), gamePointsDelta > 0 && '+', gamePointsDelta] });
|
|
69
21
|
};
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
22
|
+
const style = css `
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
transition: opacity 0.3s;
|
|
26
|
+
`;
|
|
27
|
+
const hiddenCss = css `
|
|
28
|
+
opacity: 0;
|
|
29
|
+
`;
|
|
74
30
|
//# sourceMappingURL=GamePoints.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GamePoints.js","sourceRoot":"","sources":["../../../src/components/GamePoints/GamePoints.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GamePoints.js","sourceRoot":"","sources":["../../../src/components/GamePoints/GamePoints.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AACpC,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,EAAkB,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAQvC,MAAM,CAAC,MAAM,UAAU,GAAG,CAAuB,EAAE,QAAQ,EAAE,QAAQ,GAAG,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,EAAmB,EAAE,EAAE;IAChH,MAAM,MAAM,GAAG,eAAe,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,QAAQ,CAAC,CAAC,CAAA;IACrF,MAAM,eAAe,GAAG,MAAM,EAAE,eAAe,IAAI,IAAI,CAAA;IACvD,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAA;IAC3C,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,MAAM,IAAI,eAAe,KAAK,SAAS,EAAE,CAAC;YAC5C,SAAS,CAAC,IAAI,CAAC,CAAA;QACjB,CAAC;aAAM,IAAI,MAAM,IAAI,eAAe,KAAK,SAAS,EAAE,CAAC;YACnD,UAAU,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC,CAAA;QACrD,CAAC;IACH,CAAC,EAAE,CAAC,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAA;IAC1D,IAAI,eAAe,KAAK,SAAS;QAAE,OAAO,IAAI,CAAA;IAC9C,OAAO,gBAAM,GAAG,EAAE,CAAC,KAAK,EAAE,MAAM,IAAI,SAAS,CAAC,KAAM,KAAK,aAAE,KAAC,aAAa,KAAE,EAAC,eAAe,GAAG,CAAC,IAAI,GAAG,EAAE,eAAe,IAAQ,CAAA;AACjI,CAAC,CAAA;AAED,MAAM,KAAK,GAAG,GAAG,CAAA;;;;CAIhB,CAAA;AAED,MAAM,SAAS,GAAG,GAAG,CAAA;;CAEpB,CAAA"}
|