react-native-monflowts 0.0.0-stage → 0.5.0
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/LICENSE +20 -0
- package/Monflowts.podspec +22 -0
- package/README.md +229 -2
- package/android/build.gradle +58 -0
- package/android/src/main/AndroidManifest.xml +8 -0
- package/android/src/main/java/com/monflowts/MonflowtsAssetsModule.kt +219 -0
- package/android/src/main/java/com/monflowts/MonflowtsCrashFeedModule.kt +175 -0
- package/android/src/main/java/com/monflowts/MonflowtsHapticModule.kt +170 -0
- package/android/src/main/java/com/monflowts/MonflowtsLottieView.kt +96 -0
- package/android/src/main/java/com/monflowts/MonflowtsLottieViewManager.kt +53 -0
- package/android/src/main/java/com/monflowts/MonflowtsPackage.kt +70 -0
- package/android/src/main/java/com/monflowts/MonflowtsSoundModule.kt +132 -0
- package/android/src/main/java/com/monflowts/MonflowtsSpeechModule.kt +81 -0
- package/android/src/main/java/com/monflowts/MonflowtsSvgView.kt +355 -0
- package/android/src/main/java/com/monflowts/MonflowtsSvgViewManager.kt +59 -0
- package/android/src/main/java/com/monflowts/MonflowtsWebView.kt +86 -0
- package/android/src/main/java/com/monflowts/MonflowtsWebViewManager.kt +33 -0
- package/android/src/main/java/com/monflowts/MonflowtsWheelView.kt +98 -0
- package/android/src/main/java/com/monflowts/MonflowtsWheelViewManager.kt +46 -0
- package/ios/Monflowts-Bridging-Header.h +5 -0
- package/ios/MonflowtsAssetsBridge.m +14 -0
- package/ios/MonflowtsAssetsModule.swift +217 -0
- package/ios/MonflowtsCrashFeedBridge.m +9 -0
- package/ios/MonflowtsCrashFeedModule.swift +88 -0
- package/ios/MonflowtsHTTP1EventSource.swift +296 -0
- package/ios/MonflowtsHapticBridge.m +8 -0
- package/ios/MonflowtsHapticModule.swift +55 -0
- package/ios/MonflowtsLottieBridge.m +12 -0
- package/ios/MonflowtsLottieUIView.swift +95 -0
- package/ios/MonflowtsLottieViewManager.swift +13 -0
- package/ios/MonflowtsSSEParser.swift +58 -0
- package/ios/MonflowtsSoundBridge.m +8 -0
- package/ios/MonflowtsSoundModule.swift +100 -0
- package/ios/MonflowtsSpeechBridge.m +9 -0
- package/ios/MonflowtsSpeechModule.swift +61 -0
- package/ios/MonflowtsSvgBridge.m +11 -0
- package/ios/MonflowtsSvgUIView.swift +431 -0
- package/ios/MonflowtsSvgViewManager.swift +13 -0
- package/ios/MonflowtsWebBridge.m +8 -0
- package/ios/MonflowtsWebUIView.swift +92 -0
- package/ios/MonflowtsWebViewManager.swift +14 -0
- package/ios/MonflowtsWheelBridge.m +7 -0
- package/ios/MonflowtsWheelUIView.swift +126 -0
- package/ios/MonflowtsWheelViewManager.swift +14 -0
- package/lib/module/HapticsManager.js +93 -0
- package/lib/module/HapticsManager.js.map +1 -0
- package/lib/module/HubContent.js +642 -0
- package/lib/module/HubContent.js.map +1 -0
- package/lib/module/Icons.js +64 -0
- package/lib/module/Icons.js.map +1 -0
- package/lib/module/MonflowtsHub.js +233 -0
- package/lib/module/MonflowtsHub.js.map +1 -0
- package/lib/module/NativeLottieView.js +6 -0
- package/lib/module/NativeLottieView.js.map +1 -0
- package/lib/module/NativeSvgView.js +6 -0
- package/lib/module/NativeSvgView.js.map +1 -0
- package/lib/module/NativeWebView.js +14 -0
- package/lib/module/NativeWebView.js.map +1 -0
- package/lib/module/NativeWheelView.js +6 -0
- package/lib/module/NativeWheelView.js.map +1 -0
- package/lib/module/SoundManager.js +120 -0
- package/lib/module/SoundManager.js.map +1 -0
- package/lib/module/SpeechManager.js +40 -0
- package/lib/module/SpeechManager.js.map +1 -0
- package/lib/module/api/client.js +109 -0
- package/lib/module/api/client.js.map +1 -0
- package/lib/module/api/gameTypes.js +2 -0
- package/lib/module/api/gameTypes.js.map +1 -0
- package/lib/module/api/http.js +252 -0
- package/lib/module/api/http.js.map +1 -0
- package/lib/module/api/mutations.js +359 -0
- package/lib/module/api/mutations.js.map +1 -0
- package/lib/module/api/playerTypes.js +2 -0
- package/lib/module/api/playerTypes.js.map +1 -0
- package/lib/module/api/queries.js +403 -0
- package/lib/module/api/queries.js.map +1 -0
- package/lib/module/api/sdkTypes.js +2 -0
- package/lib/module/api/sdkTypes.js.map +1 -0
- package/lib/module/assets/assetKeys.js +4 -0
- package/lib/module/assets/assetKeys.js.map +1 -0
- package/lib/module/assets/assetSync.js +61 -0
- package/lib/module/assets/assetSync.js.map +1 -0
- package/lib/module/assets/nativeAssets.js +25 -0
- package/lib/module/assets/nativeAssets.js.map +1 -0
- package/lib/module/assets/remote.js +47 -0
- package/lib/module/assets/remote.js.map +1 -0
- package/lib/module/components/AbandonPolicyNotice.js +200 -0
- package/lib/module/components/AbandonPolicyNotice.js.map +1 -0
- package/lib/module/components/AnimatedAmount.js +39 -0
- package/lib/module/components/AnimatedAmount.js.map +1 -0
- package/lib/module/components/CoinFlyOverlay.js +157 -0
- package/lib/module/components/CoinFlyOverlay.js.map +1 -0
- package/lib/module/components/GameCharacter.js +45 -0
- package/lib/module/components/GameCharacter.js.map +1 -0
- package/lib/module/components/GameRulesModal.js +279 -0
- package/lib/module/components/GameRulesModal.js.map +1 -0
- package/lib/module/components/HypeCallout.js +103 -0
- package/lib/module/components/HypeCallout.js.map +1 -0
- package/lib/module/components/InsufficientFundsOverlay.js +285 -0
- package/lib/module/components/InsufficientFundsOverlay.js.map +1 -0
- package/lib/module/components/JackpotNearMiss.js +89 -0
- package/lib/module/components/JackpotNearMiss.js.map +1 -0
- package/lib/module/components/JackpotTeaser.js +341 -0
- package/lib/module/components/JackpotTeaser.js.map +1 -0
- package/lib/module/components/MonflowtsButton.js +129 -0
- package/lib/module/components/MonflowtsButton.js.map +1 -0
- package/lib/module/components/MonflowtsChipGroup.js +40 -0
- package/lib/module/components/MonflowtsChipGroup.js.map +1 -0
- package/lib/module/components/MonflowtsPressable.js +42 -0
- package/lib/module/components/MonflowtsPressable.js.map +1 -0
- package/lib/module/components/QuitConfirmModal.js +180 -0
- package/lib/module/components/QuitConfirmModal.js.map +1 -0
- package/lib/module/components/SessionTimer.js +77 -0
- package/lib/module/components/SessionTimer.js.map +1 -0
- package/lib/module/components/SideDemoTab.js +110 -0
- package/lib/module/components/SideDemoTab.js.map +1 -0
- package/lib/module/components/StakeInput.js +138 -0
- package/lib/module/components/StakeInput.js.map +1 -0
- package/lib/module/constants.js +50 -0
- package/lib/module/constants.js.map +1 -0
- package/lib/module/content.js +21 -0
- package/lib/module/content.js.map +1 -0
- package/lib/module/effects/EffectBurst.js +56 -0
- package/lib/module/effects/EffectBurst.js.map +1 -0
- package/lib/module/effects/beaverStates.js +11 -0
- package/lib/module/effects/beaverStates.js.map +1 -0
- package/lib/module/effects/hypePhrases.js +67 -0
- package/lib/module/effects/hypePhrases.js.map +1 -0
- package/lib/module/effects/particleAnims.js +17 -0
- package/lib/module/effects/particleAnims.js.map +1 -0
- package/lib/module/hooks/useAvailableGames.js +29 -0
- package/lib/module/hooks/useAvailableGames.js.map +1 -0
- package/lib/module/hooks/useCrash.js +137 -0
- package/lib/module/hooks/useCrash.js.map +1 -0
- package/lib/module/hooks/useCrashFeed.js +49 -0
- package/lib/module/hooks/useCrashFeed.js.map +1 -0
- package/lib/module/hooks/useCurrency.js +13 -0
- package/lib/module/hooks/useCurrency.js.map +1 -0
- package/lib/module/hooks/useFairSeed.js +55 -0
- package/lib/module/hooks/useFairSeed.js.map +1 -0
- package/lib/module/hooks/useGameEvents.js +186 -0
- package/lib/module/hooks/useGameEvents.js.map +1 -0
- package/lib/module/hooks/useGameHistory.js +55 -0
- package/lib/module/hooks/useGameHistory.js.map +1 -0
- package/lib/module/hooks/useLeaderboard.js +83 -0
- package/lib/module/hooks/useLeaderboard.js.map +1 -0
- package/lib/module/hooks/useMines.js +166 -0
- package/lib/module/hooks/useMines.js.map +1 -0
- package/lib/module/hooks/useNotifications.js +66 -0
- package/lib/module/hooks/useNotifications.js.map +1 -0
- package/lib/module/hooks/usePlayGame.js +408 -0
- package/lib/module/hooks/usePlayGame.js.map +1 -0
- package/lib/module/hooks/usePlinko.js +75 -0
- package/lib/module/hooks/usePlinko.js.map +1 -0
- package/lib/module/hooks/useRaffleDrawState.js +57 -0
- package/lib/module/hooks/useRaffleDrawState.js.map +1 -0
- package/lib/module/hooks/useRefreshWallet.js +24 -0
- package/lib/module/hooks/useRefreshWallet.js.map +1 -0
- package/lib/module/hooks/useResponsive.js +16 -0
- package/lib/module/hooks/useResponsive.js.map +1 -0
- package/lib/module/hooks/useRevealWin.js +120 -0
- package/lib/module/hooks/useRevealWin.js.map +1 -0
- package/lib/module/hooks/useScreenShake.js +32 -0
- package/lib/module/hooks/useScreenShake.js.map +1 -0
- package/lib/module/hooks/useWallet.js +77 -0
- package/lib/module/hooks/useWallet.js.map +1 -0
- package/lib/module/i18n.js +104 -0
- package/lib/module/i18n.js.map +1 -0
- package/lib/module/index.js +22 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/lottieAnimations.js +15 -0
- package/lib/module/lottieAnimations.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/stores/assetStore.js +140 -0
- package/lib/module/stores/assetStore.js.map +1 -0
- package/lib/module/stores/authStore.js +47 -0
- package/lib/module/stores/authStore.js.map +1 -0
- package/lib/module/stores/gameStore.js +23 -0
- package/lib/module/stores/gameStore.js.map +1 -0
- package/lib/module/stores/sdkInitStore.js +155 -0
- package/lib/module/stores/sdkInitStore.js.map +1 -0
- package/lib/module/stores/settingsStore.js +40 -0
- package/lib/module/stores/settingsStore.js.map +1 -0
- package/lib/module/theme.js +160 -0
- package/lib/module/theme.js.map +1 -0
- package/lib/module/types.js +4 -0
- package/lib/module/types.js.map +1 -0
- package/lib/module/utils/apolloError.js +69 -0
- package/lib/module/utils/apolloError.js.map +1 -0
- package/lib/module/utils/crashMultiplier.js +8 -0
- package/lib/module/utils/crashMultiplier.js.map +1 -0
- package/lib/module/utils/crashMultiplier.test.js +34 -0
- package/lib/module/utils/crashMultiplier.test.js.map +1 -0
- package/lib/module/utils/deviceAnalytics.js +51 -0
- package/lib/module/utils/deviceAnalytics.js.map +1 -0
- package/lib/module/utils/idempotency.js +66 -0
- package/lib/module/utils/idempotency.js.map +1 -0
- package/lib/module/utils/layout.js +14 -0
- package/lib/module/utils/layout.js.map +1 -0
- package/lib/module/utils/safeInlineScript.js +12 -0
- package/lib/module/utils/safeInlineScript.js.map +1 -0
- package/lib/module/utils/sseClient.js +40 -0
- package/lib/module/utils/sseClient.js.map +1 -0
- package/lib/module/views/DepositSelect.js +275 -0
- package/lib/module/views/DepositSelect.js.map +1 -0
- package/lib/module/views/Dice.js +111 -0
- package/lib/module/views/Dice.js.map +1 -0
- package/lib/module/views/DiceBattle.js +815 -0
- package/lib/module/views/DiceBattle.js.map +1 -0
- package/lib/module/views/DiceLobby.js +577 -0
- package/lib/module/views/DiceLobby.js.map +1 -0
- package/lib/module/views/FortuneWheel.js +892 -0
- package/lib/module/views/FortuneWheel.js.map +1 -0
- package/lib/module/views/Freefall.js +808 -0
- package/lib/module/views/Freefall.js.map +1 -0
- package/lib/module/views/History.js +366 -0
- package/lib/module/views/History.js.map +1 -0
- package/lib/module/views/Home.js +554 -0
- package/lib/module/views/Home.js.map +1 -0
- package/lib/module/views/Jetstream.js +889 -0
- package/lib/module/views/Jetstream.js.map +1 -0
- package/lib/module/views/Leaderboard.js +1206 -0
- package/lib/module/views/Leaderboard.js.map +1 -0
- package/lib/module/views/MillionaireHunter.js +1697 -0
- package/lib/module/views/MillionaireHunter.js.map +1 -0
- package/lib/module/views/Minefield.js +826 -0
- package/lib/module/views/Minefield.js.map +1 -0
- package/lib/module/views/PaymentWebView.js +546 -0
- package/lib/module/views/PaymentWebView.js.map +1 -0
- package/lib/module/views/PlayerCard.js +184 -0
- package/lib/module/views/PlayerCard.js.map +1 -0
- package/lib/module/views/Profile.js +531 -0
- package/lib/module/views/Profile.js.map +1 -0
- package/lib/module/views/RaffleDraw.js +1242 -0
- package/lib/module/views/RaffleDraw.js.map +1 -0
- package/lib/module/views/RevealWin.js +1267 -0
- package/lib/module/views/RevealWin.js.map +1 -0
- package/lib/module/views/Splash.js +363 -0
- package/lib/module/views/Splash.js.map +1 -0
- package/lib/module/views/Success.js +363 -0
- package/lib/module/views/Success.js.map +1 -0
- package/lib/module/views/TicketShop.js +372 -0
- package/lib/module/views/TicketShop.js.map +1 -0
- package/lib/module/views/TriviaLobby.js +582 -0
- package/lib/module/views/TriviaLobby.js.map +1 -0
- package/lib/module/views/TriviaMaster.js +884 -0
- package/lib/module/views/TriviaMaster.js.map +1 -0
- package/lib/module/views/Wallet.js +622 -0
- package/lib/module/views/Wallet.js.map +1 -0
- package/lib/module/views/WithdrawFlow.js +445 -0
- package/lib/module/views/WithdrawFlow.js.map +1 -0
- package/lib/module/views/gridGeometry.js +26 -0
- package/lib/module/views/gridGeometry.js.map +1 -0
- package/lib/module/views/revealWinHelpers.js +29 -0
- package/lib/module/views/revealWinHelpers.js.map +1 -0
- package/lib/module/views/ticketBundlePresets.js +29 -0
- package/lib/module/views/ticketBundlePresets.js.map +1 -0
- package/lib/module/views/triviaHelpers.js +78 -0
- package/lib/module/views/triviaHelpers.js.map +1 -0
- package/lib/module/voiceClips.js +16 -0
- package/lib/module/voiceClips.js.map +1 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/src/HapticsManager.d.ts +28 -0
- package/lib/typescript/src/HapticsManager.d.ts.map +1 -0
- package/lib/typescript/src/HubContent.d.ts +7 -0
- package/lib/typescript/src/HubContent.d.ts.map +1 -0
- package/lib/typescript/src/Icons.d.ts +14 -0
- package/lib/typescript/src/Icons.d.ts.map +1 -0
- package/lib/typescript/src/MonflowtsHub.d.ts +5 -0
- package/lib/typescript/src/MonflowtsHub.d.ts.map +1 -0
- package/lib/typescript/src/NativeLottieView.d.ts +13 -0
- package/lib/typescript/src/NativeLottieView.d.ts.map +1 -0
- package/lib/typescript/src/NativeSvgView.d.ts +12 -0
- package/lib/typescript/src/NativeSvgView.d.ts.map +1 -0
- package/lib/typescript/src/NativeWebView.d.ts +22 -0
- package/lib/typescript/src/NativeWebView.d.ts.map +1 -0
- package/lib/typescript/src/NativeWheelView.d.ts +9 -0
- package/lib/typescript/src/NativeWheelView.d.ts.map +1 -0
- package/lib/typescript/src/SoundManager.d.ts +29 -0
- package/lib/typescript/src/SoundManager.d.ts.map +1 -0
- package/lib/typescript/src/SpeechManager.d.ts +10 -0
- package/lib/typescript/src/SpeechManager.d.ts.map +1 -0
- package/lib/typescript/src/api/client.d.ts +7 -0
- package/lib/typescript/src/api/client.d.ts.map +1 -0
- package/lib/typescript/src/api/gameTypes.d.ts +326 -0
- package/lib/typescript/src/api/gameTypes.d.ts.map +1 -0
- package/lib/typescript/src/api/http.d.ts +61 -0
- package/lib/typescript/src/api/http.d.ts.map +1 -0
- package/lib/typescript/src/api/mutations.d.ts +22 -0
- package/lib/typescript/src/api/mutations.d.ts.map +1 -0
- package/lib/typescript/src/api/playerTypes.d.ts +53 -0
- package/lib/typescript/src/api/playerTypes.d.ts.map +1 -0
- package/lib/typescript/src/api/queries.d.ts +21 -0
- package/lib/typescript/src/api/queries.d.ts.map +1 -0
- package/lib/typescript/src/api/sdkTypes.d.ts +87 -0
- package/lib/typescript/src/api/sdkTypes.d.ts.map +1 -0
- package/lib/typescript/src/assets/assetKeys.d.ts +3 -0
- package/lib/typescript/src/assets/assetKeys.d.ts.map +1 -0
- package/lib/typescript/src/assets/assetSync.d.ts +41 -0
- package/lib/typescript/src/assets/assetSync.d.ts.map +1 -0
- package/lib/typescript/src/assets/nativeAssets.d.ts +30 -0
- package/lib/typescript/src/assets/nativeAssets.d.ts.map +1 -0
- package/lib/typescript/src/assets/remote.d.ts +8 -0
- package/lib/typescript/src/assets/remote.d.ts.map +1 -0
- package/lib/typescript/src/components/AbandonPolicyNotice.d.ts +16 -0
- package/lib/typescript/src/components/AbandonPolicyNotice.d.ts.map +1 -0
- package/lib/typescript/src/components/AnimatedAmount.d.ts +12 -0
- package/lib/typescript/src/components/AnimatedAmount.d.ts.map +1 -0
- package/lib/typescript/src/components/CoinFlyOverlay.d.ts +17 -0
- package/lib/typescript/src/components/CoinFlyOverlay.d.ts.map +1 -0
- package/lib/typescript/src/components/GameCharacter.d.ts +14 -0
- package/lib/typescript/src/components/GameCharacter.d.ts.map +1 -0
- package/lib/typescript/src/components/GameRulesModal.d.ts +10 -0
- package/lib/typescript/src/components/GameRulesModal.d.ts.map +1 -0
- package/lib/typescript/src/components/HypeCallout.d.ts +11 -0
- package/lib/typescript/src/components/HypeCallout.d.ts.map +1 -0
- package/lib/typescript/src/components/InsufficientFundsOverlay.d.ts +12 -0
- package/lib/typescript/src/components/InsufficientFundsOverlay.d.ts.map +1 -0
- package/lib/typescript/src/components/JackpotNearMiss.d.ts +8 -0
- package/lib/typescript/src/components/JackpotNearMiss.d.ts.map +1 -0
- package/lib/typescript/src/components/JackpotTeaser.d.ts +13 -0
- package/lib/typescript/src/components/JackpotTeaser.d.ts.map +1 -0
- package/lib/typescript/src/components/MonflowtsButton.d.ts +21 -0
- package/lib/typescript/src/components/MonflowtsButton.d.ts.map +1 -0
- package/lib/typescript/src/components/MonflowtsChipGroup.d.ts +18 -0
- package/lib/typescript/src/components/MonflowtsChipGroup.d.ts.map +1 -0
- package/lib/typescript/src/components/MonflowtsPressable.d.ts +39 -0
- package/lib/typescript/src/components/MonflowtsPressable.d.ts.map +1 -0
- package/lib/typescript/src/components/QuitConfirmModal.d.ts +11 -0
- package/lib/typescript/src/components/QuitConfirmModal.d.ts.map +1 -0
- package/lib/typescript/src/components/SessionTimer.d.ts +14 -0
- package/lib/typescript/src/components/SessionTimer.d.ts.map +1 -0
- package/lib/typescript/src/components/SideDemoTab.d.ts +18 -0
- package/lib/typescript/src/components/SideDemoTab.d.ts.map +1 -0
- package/lib/typescript/src/components/StakeInput.d.ts +16 -0
- package/lib/typescript/src/components/StakeInput.d.ts.map +1 -0
- package/lib/typescript/src/constants.d.ts +21 -0
- package/lib/typescript/src/constants.d.ts.map +1 -0
- package/lib/typescript/src/content.d.ts +53 -0
- package/lib/typescript/src/content.d.ts.map +1 -0
- package/lib/typescript/src/effects/EffectBurst.d.ts +20 -0
- package/lib/typescript/src/effects/EffectBurst.d.ts.map +1 -0
- package/lib/typescript/src/effects/beaverStates.d.ts +4 -0
- package/lib/typescript/src/effects/beaverStates.d.ts.map +1 -0
- package/lib/typescript/src/effects/hypePhrases.d.ts +11 -0
- package/lib/typescript/src/effects/hypePhrases.d.ts.map +1 -0
- package/lib/typescript/src/effects/particleAnims.d.ts +9 -0
- package/lib/typescript/src/effects/particleAnims.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useAvailableGames.d.ts +14 -0
- package/lib/typescript/src/hooks/useAvailableGames.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useCrash.d.ts +13 -0
- package/lib/typescript/src/hooks/useCrash.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useCrashFeed.d.ts +22 -0
- package/lib/typescript/src/hooks/useCrashFeed.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useCurrency.d.ts +6 -0
- package/lib/typescript/src/hooks/useCurrency.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useFairSeed.d.ts +8 -0
- package/lib/typescript/src/hooks/useFairSeed.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useGameEvents.d.ts +50 -0
- package/lib/typescript/src/hooks/useGameEvents.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useGameHistory.d.ts +14 -0
- package/lib/typescript/src/hooks/useGameHistory.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useLeaderboard.d.ts +71 -0
- package/lib/typescript/src/hooks/useLeaderboard.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useMines.d.ts +11 -0
- package/lib/typescript/src/hooks/useMines.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useNotifications.d.ts +26 -0
- package/lib/typescript/src/hooks/useNotifications.d.ts.map +1 -0
- package/lib/typescript/src/hooks/usePlayGame.d.ts +62 -0
- package/lib/typescript/src/hooks/usePlayGame.d.ts.map +1 -0
- package/lib/typescript/src/hooks/usePlinko.d.ts +8 -0
- package/lib/typescript/src/hooks/usePlinko.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useRaffleDrawState.d.ts +50 -0
- package/lib/typescript/src/hooks/useRaffleDrawState.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useRefreshWallet.d.ts +8 -0
- package/lib/typescript/src/hooks/useRefreshWallet.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useResponsive.d.ts +8 -0
- package/lib/typescript/src/hooks/useResponsive.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useRevealWin.d.ts +10 -0
- package/lib/typescript/src/hooks/useRevealWin.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useScreenShake.d.ts +14 -0
- package/lib/typescript/src/hooks/useScreenShake.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useWallet.d.ts +23 -0
- package/lib/typescript/src/hooks/useWallet.d.ts.map +1 -0
- package/lib/typescript/src/i18n.d.ts +29 -0
- package/lib/typescript/src/i18n.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +12 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/lottieAnimations.d.ts +2 -0
- package/lib/typescript/src/lottieAnimations.d.ts.map +1 -0
- package/lib/typescript/src/stores/assetStore.d.ts +17 -0
- package/lib/typescript/src/stores/assetStore.d.ts.map +1 -0
- package/lib/typescript/src/stores/authStore.d.ts +25 -0
- package/lib/typescript/src/stores/authStore.d.ts.map +1 -0
- package/lib/typescript/src/stores/gameStore.d.ts +14 -0
- package/lib/typescript/src/stores/gameStore.d.ts.map +1 -0
- package/lib/typescript/src/stores/sdkInitStore.d.ts +38 -0
- package/lib/typescript/src/stores/sdkInitStore.d.ts.map +1 -0
- package/lib/typescript/src/stores/settingsStore.d.ts +23 -0
- package/lib/typescript/src/stores/settingsStore.d.ts.map +1 -0
- package/lib/typescript/src/theme.d.ts +149 -0
- package/lib/typescript/src/theme.d.ts.map +1 -0
- package/lib/typescript/src/types.d.ts +49 -0
- package/lib/typescript/src/types.d.ts.map +1 -0
- package/lib/typescript/src/utils/apolloError.d.ts +12 -0
- package/lib/typescript/src/utils/apolloError.d.ts.map +1 -0
- package/lib/typescript/src/utils/crashMultiplier.d.ts +2 -0
- package/lib/typescript/src/utils/crashMultiplier.d.ts.map +1 -0
- package/lib/typescript/src/utils/crashMultiplier.test.d.ts +2 -0
- package/lib/typescript/src/utils/crashMultiplier.test.d.ts.map +1 -0
- package/lib/typescript/src/utils/deviceAnalytics.d.ts +3 -0
- package/lib/typescript/src/utils/deviceAnalytics.d.ts.map +1 -0
- package/lib/typescript/src/utils/idempotency.d.ts +14 -0
- package/lib/typescript/src/utils/idempotency.d.ts.map +1 -0
- package/lib/typescript/src/utils/layout.d.ts +10 -0
- package/lib/typescript/src/utils/layout.d.ts.map +1 -0
- package/lib/typescript/src/utils/safeInlineScript.d.ts +5 -0
- package/lib/typescript/src/utils/safeInlineScript.d.ts.map +1 -0
- package/lib/typescript/src/utils/sseClient.d.ts +5 -0
- package/lib/typescript/src/utils/sseClient.d.ts.map +1 -0
- package/lib/typescript/src/views/DepositSelect.d.ts +9 -0
- package/lib/typescript/src/views/DepositSelect.d.ts.map +1 -0
- package/lib/typescript/src/views/Dice.d.ts +10 -0
- package/lib/typescript/src/views/Dice.d.ts.map +1 -0
- package/lib/typescript/src/views/DiceBattle.d.ts +15 -0
- package/lib/typescript/src/views/DiceBattle.d.ts.map +1 -0
- package/lib/typescript/src/views/DiceLobby.d.ts +12 -0
- package/lib/typescript/src/views/DiceLobby.d.ts.map +1 -0
- package/lib/typescript/src/views/FortuneWheel.d.ts +13 -0
- package/lib/typescript/src/views/FortuneWheel.d.ts.map +1 -0
- package/lib/typescript/src/views/Freefall.d.ts +13 -0
- package/lib/typescript/src/views/Freefall.d.ts.map +1 -0
- package/lib/typescript/src/views/History.d.ts +7 -0
- package/lib/typescript/src/views/History.d.ts.map +1 -0
- package/lib/typescript/src/views/Home.d.ts +13 -0
- package/lib/typescript/src/views/Home.d.ts.map +1 -0
- package/lib/typescript/src/views/Jetstream.d.ts +14 -0
- package/lib/typescript/src/views/Jetstream.d.ts.map +1 -0
- package/lib/typescript/src/views/Leaderboard.d.ts +8 -0
- package/lib/typescript/src/views/Leaderboard.d.ts.map +1 -0
- package/lib/typescript/src/views/MillionaireHunter.d.ts +13 -0
- package/lib/typescript/src/views/MillionaireHunter.d.ts.map +1 -0
- package/lib/typescript/src/views/Minefield.d.ts +13 -0
- package/lib/typescript/src/views/Minefield.d.ts.map +1 -0
- package/lib/typescript/src/views/PaymentWebView.d.ts +29 -0
- package/lib/typescript/src/views/PaymentWebView.d.ts.map +1 -0
- package/lib/typescript/src/views/PlayerCard.d.ts +15 -0
- package/lib/typescript/src/views/PlayerCard.d.ts.map +1 -0
- package/lib/typescript/src/views/Profile.d.ts +9 -0
- package/lib/typescript/src/views/Profile.d.ts.map +1 -0
- package/lib/typescript/src/views/RaffleDraw.d.ts +12 -0
- package/lib/typescript/src/views/RaffleDraw.d.ts.map +1 -0
- package/lib/typescript/src/views/RevealWin.d.ts +13 -0
- package/lib/typescript/src/views/RevealWin.d.ts.map +1 -0
- package/lib/typescript/src/views/Splash.d.ts +10 -0
- package/lib/typescript/src/views/Splash.d.ts.map +1 -0
- package/lib/typescript/src/views/Success.d.ts +12 -0
- package/lib/typescript/src/views/Success.d.ts.map +1 -0
- package/lib/typescript/src/views/TicketShop.d.ts +15 -0
- package/lib/typescript/src/views/TicketShop.d.ts.map +1 -0
- package/lib/typescript/src/views/TriviaLobby.d.ts +12 -0
- package/lib/typescript/src/views/TriviaLobby.d.ts.map +1 -0
- package/lib/typescript/src/views/TriviaMaster.d.ts +16 -0
- package/lib/typescript/src/views/TriviaMaster.d.ts.map +1 -0
- package/lib/typescript/src/views/Wallet.d.ts +10 -0
- package/lib/typescript/src/views/Wallet.d.ts.map +1 -0
- package/lib/typescript/src/views/WithdrawFlow.d.ts +9 -0
- package/lib/typescript/src/views/WithdrawFlow.d.ts.map +1 -0
- package/lib/typescript/src/views/gridGeometry.d.ts +19 -0
- package/lib/typescript/src/views/gridGeometry.d.ts.map +1 -0
- package/lib/typescript/src/views/revealWinHelpers.d.ts +15 -0
- package/lib/typescript/src/views/revealWinHelpers.d.ts.map +1 -0
- package/lib/typescript/src/views/ticketBundlePresets.d.ts +18 -0
- package/lib/typescript/src/views/ticketBundlePresets.d.ts.map +1 -0
- package/lib/typescript/src/views/triviaHelpers.d.ts +31 -0
- package/lib/typescript/src/views/triviaHelpers.d.ts.map +1 -0
- package/lib/typescript/src/voiceClips.d.ts +4 -0
- package/lib/typescript/src/voiceClips.d.ts.map +1 -0
- package/package.json +160 -4
|
@@ -0,0 +1,1267 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { useState, useRef, useCallback, useEffect, useMemo } from 'react';
|
|
4
|
+
import { View, Text, StyleSheet, Alert, Animated, KeyboardAvoidingView, Platform, ScrollView, BackHandler } from 'react-native';
|
|
5
|
+
import { COLORS } from "../constants.js";
|
|
6
|
+
import QuitConfirmModal from "../components/QuitConfirmModal.js";
|
|
7
|
+
import SideDemoTab from "../components/SideDemoTab.js";
|
|
8
|
+
import { sounds } from "../SoundManager.js";
|
|
9
|
+
import HypeCallout from "../components/HypeCallout.js";
|
|
10
|
+
import { HYPE_PHRASES, pickPhrase } from "../effects/hypePhrases.js";
|
|
11
|
+
import { haptics } from "../HapticsManager.js";
|
|
12
|
+
import SvgIcon from "../Icons.js";
|
|
13
|
+
import MonflowtsButton from "../components/MonflowtsButton.js";
|
|
14
|
+
import MonflowtsPressable from "../components/MonflowtsPressable.js";
|
|
15
|
+
import MonflowtsChipGroup from "../components/MonflowtsChipGroup.js";
|
|
16
|
+
import MonflowtsLottieView from "../NativeLottieView.js";
|
|
17
|
+
import InsufficientFundsOverlay from "../components/InsufficientFundsOverlay.js";
|
|
18
|
+
import StakeInput from "../components/StakeInput.js";
|
|
19
|
+
import GameRulesModal from "../components/GameRulesModal.js";
|
|
20
|
+
import JackpotNearMiss from "../components/JackpotNearMiss.js";
|
|
21
|
+
import CoinFlyOverlay from "../components/CoinFlyOverlay.js";
|
|
22
|
+
import { confettiAnim, dustAnim } from "../effects/particleAnims.js";
|
|
23
|
+
import { computeGridGeometry } from "./gridGeometry.js";
|
|
24
|
+
import { buildRewardCards, isRoundOver, symbolForRevealedTile } from "./revealWinHelpers.js";
|
|
25
|
+
import { useRevealWin } from "../hooks/useRevealWin.js";
|
|
26
|
+
import { useCurrency } from "../hooks/useCurrency.js";
|
|
27
|
+
import { useResponsive } from "../hooks/useResponsive.js";
|
|
28
|
+
import { useGameStore } from "../stores/gameStore.js";
|
|
29
|
+
import { gameRules } from "../content.js";
|
|
30
|
+
import { t, formatNumber } from "../i18n.js";
|
|
31
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
32
|
+
const GRID_PADDING = 20;
|
|
33
|
+
const GRID_GAP = 10;
|
|
34
|
+
const GRID_MAX_CONTENT = 420;
|
|
35
|
+
function readUiString(uiConfig, key) {
|
|
36
|
+
const v = uiConfig?.[key];
|
|
37
|
+
return typeof v === 'string' ? v : undefined;
|
|
38
|
+
}
|
|
39
|
+
function ensureAnimArray(ref, length, initialValue) {
|
|
40
|
+
while (ref.current.length < length) ref.current.push(new Animated.Value(initialValue));
|
|
41
|
+
return ref.current;
|
|
42
|
+
}
|
|
43
|
+
const RevealWin = ({
|
|
44
|
+
onBack,
|
|
45
|
+
onWin,
|
|
46
|
+
onLose,
|
|
47
|
+
balance,
|
|
48
|
+
game,
|
|
49
|
+
onTopUp
|
|
50
|
+
}) => {
|
|
51
|
+
const currency = useCurrency();
|
|
52
|
+
const demoMode = useGameStore(s => s.demoMode);
|
|
53
|
+
const creditDemoBalance = useGameStore(s => s.creditDemoBalance);
|
|
54
|
+
const {
|
|
55
|
+
startRound,
|
|
56
|
+
revealTile,
|
|
57
|
+
getActiveRound,
|
|
58
|
+
isBusy,
|
|
59
|
+
errorRef
|
|
60
|
+
} = useRevealWin();
|
|
61
|
+
const {
|
|
62
|
+
columnWidth
|
|
63
|
+
} = useResponsive();
|
|
64
|
+
const gridContent = Math.min(columnWidth - GRID_PADDING * 2, GRID_MAX_CONTENT);
|
|
65
|
+
const [round, setRound] = useState(null);
|
|
66
|
+
const gameplay = game?.gameplayRules;
|
|
67
|
+
const fallbackRules = gameRules('REVEAL_WIN');
|
|
68
|
+
const rows = round?.board.rows ?? gameplay?.rows ?? fallbackRules.rows ?? 0;
|
|
69
|
+
const cols = round?.board.cols ?? gameplay?.cols ?? fallbackRules.cols ?? 0;
|
|
70
|
+
const revealsPerRound = gameplay?.revealsPerRound ?? fallbackRules.revealsPerRound ?? 0;
|
|
71
|
+
const roundsPerSession = gameplay?.roundsPerSession ?? fallbackRules.roundsPerSession ?? 0;
|
|
72
|
+
const nearMissEnabled = gameplay?.nearMissEnabled !== false;
|
|
73
|
+
const boardCells = Math.max(1, rows * cols);
|
|
74
|
+
const symbols = useMemo(() => gameplay?.symbols ?? [], [gameplay?.symbols]);
|
|
75
|
+
const symbolAssetMap = useMemo(() => {
|
|
76
|
+
const m = {};
|
|
77
|
+
for (const s of symbols) m[s.code] = s.assetKey;
|
|
78
|
+
return m;
|
|
79
|
+
}, [symbols]);
|
|
80
|
+
const rewardCodes = useMemo(() => new Set(symbols.filter(s => s.prizeTierCode != null).map(s => s.code)), [symbols]);
|
|
81
|
+
const uiConfig = game?.uiConfig;
|
|
82
|
+
const winMessage = readUiString(uiConfig, 'winMessage');
|
|
83
|
+
const lossMessage = readUiString(uiConfig, 'lossMessage');
|
|
84
|
+
const sessionEndMessage = readUiString(uiConfig, 'sessionEndMessage') ?? t('reveal.sessionEnded');
|
|
85
|
+
const animationIntensity = readUiString(uiConfig, 'animationIntensity') ?? 'high';
|
|
86
|
+
const jackpotAmountKobo = gameplay?.jackpotAmountKobo ?? 0;
|
|
87
|
+
const stakeOptionsKobo = gameplay?.stakeOptions ?? fallbackRules.stakeOptions ?? [];
|
|
88
|
+
const stakeOptionsVG = useMemo(() => stakeOptionsKobo.map(s => Math.max(1, Math.round(s / 100))), [stakeOptionsKobo]);
|
|
89
|
+
const [activeStake, setActiveStake] = useState(() => stakeOptionsVG[Math.floor(stakeOptionsVG.length / 2)] ?? 500);
|
|
90
|
+
const effectiveCostVG = activeStake;
|
|
91
|
+
const {
|
|
92
|
+
cellSize,
|
|
93
|
+
gridWidth
|
|
94
|
+
} = useMemo(() => computeGridGeometry(boardCells, gridContent, GRID_GAP), [boardCells, gridContent]);
|
|
95
|
+
const [gameState, setGameState] = useState('LOBBY');
|
|
96
|
+
const [revealedTiles, setRevealedTiles] = useState({});
|
|
97
|
+
const [roundsRemaining, setRoundsRemaining] = useState(roundsPerSession);
|
|
98
|
+
const [displayBalance, setDisplayBalance] = useState(balance);
|
|
99
|
+
const displayBalanceRef = useRef(balance);
|
|
100
|
+
const [showFundsOverlay, setShowFundsOverlay] = useState(false);
|
|
101
|
+
const [rulesVisible, setRulesVisible] = useState(false);
|
|
102
|
+
const [lottieKey, setLottieKey] = useState(0);
|
|
103
|
+
const [resultWon, setResultWon] = useState(false);
|
|
104
|
+
const [resultAmountVG, setResultAmountVG] = useState(0);
|
|
105
|
+
const [resultMessage, setResultMessage] = useState('');
|
|
106
|
+
const [resultActionTaken, setResultActionTaken] = useState(false);
|
|
107
|
+
useEffect(() => {
|
|
108
|
+
displayBalanceRef.current = displayBalance;
|
|
109
|
+
}, [displayBalance]);
|
|
110
|
+
useEffect(() => {
|
|
111
|
+
if (gameState === 'LOBBY') {
|
|
112
|
+
setDisplayBalance(balance);
|
|
113
|
+
displayBalanceRef.current = balance;
|
|
114
|
+
}
|
|
115
|
+
}, [balance, gameState]);
|
|
116
|
+
const confettiJson = useMemo(() => confettiAnim(), []);
|
|
117
|
+
const dustJson = useMemo(() => dustAnim(), []);
|
|
118
|
+
const flipAnimsRef = useRef(Array.from({
|
|
119
|
+
length: boardCells
|
|
120
|
+
}, () => new Animated.Value(0)));
|
|
121
|
+
const flipAnims = ensureAnimArray(flipAnimsRef, boardCells, 0);
|
|
122
|
+
const entranceAnimsRef = useRef(Array.from({
|
|
123
|
+
length: boardCells
|
|
124
|
+
}, () => new Animated.Value(0)));
|
|
125
|
+
const entranceAnims = ensureAnimArray(entranceAnimsRef, boardCells, 0);
|
|
126
|
+
const cardPulseAnimsRef = useRef(Array.from({
|
|
127
|
+
length: Math.max(symbols.length, 8)
|
|
128
|
+
}, () => new Animated.Value(1)));
|
|
129
|
+
const cardPulseAnims = ensureAnimArray(cardPulseAnimsRef, Math.max(symbols.length, 8), 1);
|
|
130
|
+
const breatheAnim = useRef(new Animated.Value(0)).current;
|
|
131
|
+
const slotPop = useRef(new Animated.Value(1)).current;
|
|
132
|
+
const overlayOpacity = useRef(new Animated.Value(0)).current;
|
|
133
|
+
const overlayScale = useRef(new Animated.Value(0.85)).current;
|
|
134
|
+
const shakeAnim = useRef(new Animated.Value(0)).current;
|
|
135
|
+
const balancePulse = useRef(new Animated.Value(1)).current;
|
|
136
|
+
const coinFlyRef = useRef(null);
|
|
137
|
+
const hypeRef = useRef(null);
|
|
138
|
+
const balancePillRef = useRef(null);
|
|
139
|
+
const boardRef = useRef(null);
|
|
140
|
+
const inFlightRef = useRef(false);
|
|
141
|
+
const resultActionRef = useRef(false);
|
|
142
|
+
const finaleTimerRef = useRef(null);
|
|
143
|
+
const runBoardEntrance = useCallback(() => {
|
|
144
|
+
entranceAnims.forEach(a => a.setValue(0));
|
|
145
|
+
Animated.stagger(28, entranceAnims.map(a => Animated.spring(a, {
|
|
146
|
+
toValue: 1,
|
|
147
|
+
friction: 6,
|
|
148
|
+
tension: 80,
|
|
149
|
+
useNativeDriver: true
|
|
150
|
+
}))).start();
|
|
151
|
+
}, [entranceAnims]);
|
|
152
|
+
const resetToLobby = useCallback(() => {
|
|
153
|
+
resultActionRef.current = false;
|
|
154
|
+
setResultActionTaken(false);
|
|
155
|
+
setRound(null);
|
|
156
|
+
setRevealedTiles({});
|
|
157
|
+
flipAnims.forEach(a => a.setValue(0));
|
|
158
|
+
overlayOpacity.setValue(0);
|
|
159
|
+
overlayScale.setValue(0.85);
|
|
160
|
+
shakeAnim.setValue(0);
|
|
161
|
+
setResultWon(false);
|
|
162
|
+
setResultAmountVG(0);
|
|
163
|
+
setResultMessage('');
|
|
164
|
+
setGameState('LOBBY');
|
|
165
|
+
setDisplayBalance(balance);
|
|
166
|
+
displayBalanceRef.current = balance;
|
|
167
|
+
setLottieKey(k => k + 1);
|
|
168
|
+
runBoardEntrance();
|
|
169
|
+
}, [flipAnims, overlayOpacity, overlayScale, shakeAnim, balance, runBoardEntrance]);
|
|
170
|
+
useEffect(() => {
|
|
171
|
+
let cancelled = false;
|
|
172
|
+
(async () => {
|
|
173
|
+
const active = await getActiveRound();
|
|
174
|
+
if (cancelled) return;
|
|
175
|
+
if (active && active.status !== 'COMPLETED') {
|
|
176
|
+
setRound(active);
|
|
177
|
+
setRoundsRemaining(active.roundsRemaining);
|
|
178
|
+
const revealed = {};
|
|
179
|
+
for (const t of active.revealedTiles) {
|
|
180
|
+
revealed[t.index] = t.symbolCode;
|
|
181
|
+
const fa = flipAnims[t.index];
|
|
182
|
+
if (fa) fa.setValue(1);
|
|
183
|
+
}
|
|
184
|
+
setRevealedTiles(revealed);
|
|
185
|
+
setGameState('PLAYING');
|
|
186
|
+
}
|
|
187
|
+
runBoardEntrance();
|
|
188
|
+
})();
|
|
189
|
+
return () => {
|
|
190
|
+
cancelled = true;
|
|
191
|
+
};
|
|
192
|
+
}, [getActiveRound, runBoardEntrance, flipAnims]);
|
|
193
|
+
useEffect(() => () => {
|
|
194
|
+
if (finaleTimerRef.current) clearTimeout(finaleTimerRef.current);
|
|
195
|
+
}, []);
|
|
196
|
+
useEffect(() => {
|
|
197
|
+
if (animationIntensity === 'low') return undefined;
|
|
198
|
+
const loop = Animated.loop(Animated.sequence([Animated.timing(breatheAnim, {
|
|
199
|
+
toValue: 1,
|
|
200
|
+
duration: 1400,
|
|
201
|
+
useNativeDriver: true
|
|
202
|
+
}), Animated.timing(breatheAnim, {
|
|
203
|
+
toValue: 0,
|
|
204
|
+
duration: 1400,
|
|
205
|
+
useNativeDriver: true
|
|
206
|
+
})]));
|
|
207
|
+
loop.start();
|
|
208
|
+
return () => loop.stop();
|
|
209
|
+
}, [animationIntensity, breatheAnim]);
|
|
210
|
+
const prevDemoRef = useRef(demoMode);
|
|
211
|
+
useEffect(() => {
|
|
212
|
+
if (prevDemoRef.current !== demoMode) {
|
|
213
|
+
prevDemoRef.current = demoMode;
|
|
214
|
+
resetToLobby();
|
|
215
|
+
}
|
|
216
|
+
}, [demoMode, resetToLobby]);
|
|
217
|
+
useEffect(() => {
|
|
218
|
+
if (!round) return;
|
|
219
|
+
const cards = buildRewardCards(round, symbols);
|
|
220
|
+
cards.forEach((c, i) => {
|
|
221
|
+
const a = cardPulseAnims[i];
|
|
222
|
+
if (!a || !c.nearComplete) return;
|
|
223
|
+
Animated.sequence([Animated.timing(a, {
|
|
224
|
+
toValue: 1.14,
|
|
225
|
+
duration: 180,
|
|
226
|
+
useNativeDriver: true
|
|
227
|
+
}), Animated.spring(a, {
|
|
228
|
+
toValue: 1,
|
|
229
|
+
friction: 4,
|
|
230
|
+
useNativeDriver: true
|
|
231
|
+
})]).start();
|
|
232
|
+
});
|
|
233
|
+
}, [round, symbols, cardPulseAnims]);
|
|
234
|
+
const animateOverlayIn = useCallback(() => {
|
|
235
|
+
overlayOpacity.setValue(0);
|
|
236
|
+
overlayScale.setValue(0.85);
|
|
237
|
+
Animated.parallel([Animated.timing(overlayOpacity, {
|
|
238
|
+
toValue: 1,
|
|
239
|
+
duration: 300,
|
|
240
|
+
useNativeDriver: true
|
|
241
|
+
}), Animated.spring(overlayScale, {
|
|
242
|
+
toValue: 1,
|
|
243
|
+
friction: 6,
|
|
244
|
+
tension: 80,
|
|
245
|
+
useNativeDriver: true
|
|
246
|
+
})]).start();
|
|
247
|
+
}, [overlayOpacity, overlayScale]);
|
|
248
|
+
const shakeBoard = useCallback(() => {
|
|
249
|
+
shakeAnim.setValue(0);
|
|
250
|
+
Animated.sequence([Animated.timing(shakeAnim, {
|
|
251
|
+
toValue: 10,
|
|
252
|
+
duration: 60,
|
|
253
|
+
useNativeDriver: true
|
|
254
|
+
}), Animated.timing(shakeAnim, {
|
|
255
|
+
toValue: -10,
|
|
256
|
+
duration: 60,
|
|
257
|
+
useNativeDriver: true
|
|
258
|
+
}), Animated.timing(shakeAnim, {
|
|
259
|
+
toValue: 8,
|
|
260
|
+
duration: 50,
|
|
261
|
+
useNativeDriver: true
|
|
262
|
+
}), Animated.timing(shakeAnim, {
|
|
263
|
+
toValue: -8,
|
|
264
|
+
duration: 50,
|
|
265
|
+
useNativeDriver: true
|
|
266
|
+
}), Animated.timing(shakeAnim, {
|
|
267
|
+
toValue: 0,
|
|
268
|
+
duration: 40,
|
|
269
|
+
useNativeDriver: true
|
|
270
|
+
})]).start();
|
|
271
|
+
}, [shakeAnim]);
|
|
272
|
+
const celebrateWin = useCallback(amountVG => {
|
|
273
|
+
setLottieKey(k => k + 1);
|
|
274
|
+
sounds.playWinChime();
|
|
275
|
+
hypeRef.current?.show(pickPhrase(amountVG >= 5000 ? HYPE_PHRASES.reveal.bigWin : HYPE_PHRASES.reveal.win), amountVG >= 5000 ? 'boost' : 'win');
|
|
276
|
+
haptics.success();
|
|
277
|
+
coinFlyRef.current?.measureTarget();
|
|
278
|
+
boardRef.current?.measureInWindow?.((x, y, w, h) => {
|
|
279
|
+
coinFlyRef.current?.fly(x + w / 2, y + h / 2, () => {
|
|
280
|
+
setDisplayBalance(prev => prev + amountVG);
|
|
281
|
+
displayBalanceRef.current += amountVG;
|
|
282
|
+
});
|
|
283
|
+
});
|
|
284
|
+
}, []);
|
|
285
|
+
const resolveRound = useCallback(r => {
|
|
286
|
+
const won = r.amountWonKobo > 0;
|
|
287
|
+
const amountVG = Math.round(r.amountWonKobo / 100);
|
|
288
|
+
setResultWon(won);
|
|
289
|
+
setResultAmountVG(amountVG);
|
|
290
|
+
if (won) {
|
|
291
|
+
setResultMessage(r.message ?? winMessage ?? t('reveal.matchedAll'));
|
|
292
|
+
} else {
|
|
293
|
+
const nearMiss = nearMissEnabled && r.matchProgress.some(p => p.prizeTierCode != null && p.count === p.target - 1);
|
|
294
|
+
setResultMessage(r.message ?? lossMessage ?? (nearMiss ? t('reveal.nearMiss') : t('reveal.noMatch')));
|
|
295
|
+
}
|
|
296
|
+
if (isRoundOver(r)) {
|
|
297
|
+
const fullBoard = r.fullBoard ?? [];
|
|
298
|
+
setRevealedTiles(prev => {
|
|
299
|
+
const next = {
|
|
300
|
+
...prev
|
|
301
|
+
};
|
|
302
|
+
for (let idx = 0; idx < fullBoard.length; idx += 1) {
|
|
303
|
+
const symbol = symbolForRevealedTile(r, idx);
|
|
304
|
+
if (symbol != null) next[idx] = symbol;
|
|
305
|
+
}
|
|
306
|
+
return next;
|
|
307
|
+
});
|
|
308
|
+
for (let idx = 0; idx < fullBoard.length; idx += 1) {
|
|
309
|
+
const fa = flipAnims[idx];
|
|
310
|
+
if (fa) Animated.timing(fa, {
|
|
311
|
+
toValue: 1,
|
|
312
|
+
duration: 400,
|
|
313
|
+
useNativeDriver: true
|
|
314
|
+
}).start();
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
finaleTimerRef.current = setTimeout(() => {
|
|
318
|
+
finaleTimerRef.current = null;
|
|
319
|
+
if (won) {
|
|
320
|
+
celebrateWin(amountVG);
|
|
321
|
+
} else {
|
|
322
|
+
setLottieKey(k => k + 1);
|
|
323
|
+
sounds.playDrawSound();
|
|
324
|
+
haptics.warning();
|
|
325
|
+
shakeBoard();
|
|
326
|
+
hypeRef.current?.show(pickPhrase(HYPE_PHRASES.reveal.loss), 'loss');
|
|
327
|
+
}
|
|
328
|
+
setGameState(r.roundsRemaining > 0 ? 'RESULT' : 'SESSION_END');
|
|
329
|
+
animateOverlayIn();
|
|
330
|
+
}, 750);
|
|
331
|
+
}, [winMessage, lossMessage, nearMissEnabled, celebrateWin, shakeBoard, animateOverlayIn, flipAnims]);
|
|
332
|
+
const applyRound = useCallback(r => {
|
|
333
|
+
setRound(r);
|
|
334
|
+
setRoundsRemaining(r.roundsRemaining);
|
|
335
|
+
const nextRevealed = {};
|
|
336
|
+
for (const t of r.revealedTiles) nextRevealed[t.index] = t.symbolCode;
|
|
337
|
+
setRevealedTiles(nextRevealed);
|
|
338
|
+
const tile = r.lastRevealedTile;
|
|
339
|
+
if (tile) {
|
|
340
|
+
const fa = flipAnims[tile.index];
|
|
341
|
+
if (fa) {
|
|
342
|
+
fa.setValue(0);
|
|
343
|
+
Animated.timing(fa, {
|
|
344
|
+
toValue: 1,
|
|
345
|
+
duration: 500,
|
|
346
|
+
useNativeDriver: true
|
|
347
|
+
}).start();
|
|
348
|
+
}
|
|
349
|
+
sounds.playChestOpen();
|
|
350
|
+
haptics.selection();
|
|
351
|
+
slotPop.setValue(0);
|
|
352
|
+
Animated.spring(slotPop, {
|
|
353
|
+
toValue: 1,
|
|
354
|
+
friction: 4,
|
|
355
|
+
useNativeDriver: true
|
|
356
|
+
}).start();
|
|
357
|
+
}
|
|
358
|
+
if (r.status === 'COMPLETED') {
|
|
359
|
+
resolveRound(r);
|
|
360
|
+
} else {
|
|
361
|
+
setGameState('PLAYING');
|
|
362
|
+
}
|
|
363
|
+
}, [flipAnims, slotPop, resolveRound]);
|
|
364
|
+
const revertStakeCharge = useCallback(() => {
|
|
365
|
+
setDisplayBalance(prev => prev + effectiveCostVG);
|
|
366
|
+
displayBalanceRef.current += effectiveCostVG;
|
|
367
|
+
setGameState('LOBBY');
|
|
368
|
+
if (!demoMode && displayBalanceRef.current < effectiveCostVG) setShowFundsOverlay(true);
|
|
369
|
+
}, [effectiveCostVG, demoMode]);
|
|
370
|
+
const handleTileTap = useCallback(async index => {
|
|
371
|
+
if (inFlightRef.current) return;
|
|
372
|
+
inFlightRef.current = true;
|
|
373
|
+
try {
|
|
374
|
+
if (isBusy) return;
|
|
375
|
+
if (gameState !== 'LOBBY' && gameState !== 'PLAYING') return;
|
|
376
|
+
if (revealedTiles[index] != null) return;
|
|
377
|
+
if (!round) {
|
|
378
|
+
if (!demoMode && displayBalanceRef.current < effectiveCostVG) {
|
|
379
|
+
setShowFundsOverlay(true);
|
|
380
|
+
return;
|
|
381
|
+
}
|
|
382
|
+
resultActionRef.current = false;
|
|
383
|
+
setResultActionTaken(false);
|
|
384
|
+
sounds.resume();
|
|
385
|
+
setGameState('REVEALING');
|
|
386
|
+
setDisplayBalance(prev => prev - effectiveCostVG);
|
|
387
|
+
displayBalanceRef.current -= effectiveCostVG;
|
|
388
|
+
const started = await startRound(effectiveCostVG * 100);
|
|
389
|
+
if (!started) {
|
|
390
|
+
revertStakeCharge();
|
|
391
|
+
Alert.alert(t('reveal.alertTitle'), errorRef.current ?? t('reveal.actionFailed'));
|
|
392
|
+
return;
|
|
393
|
+
}
|
|
394
|
+
setRound(started);
|
|
395
|
+
setRoundsRemaining(started.roundsRemaining);
|
|
396
|
+
setGameState('PLAYING');
|
|
397
|
+
const revealed = await revealTile(started.roundId, index);
|
|
398
|
+
if (!revealed) {
|
|
399
|
+
Alert.alert(t('reveal.alertTitle'), errorRef.current ?? t('reveal.actionFailed'));
|
|
400
|
+
return;
|
|
401
|
+
}
|
|
402
|
+
applyRound(revealed);
|
|
403
|
+
return;
|
|
404
|
+
}
|
|
405
|
+
if (round.revealsRemaining <= 0) return;
|
|
406
|
+
setGameState('REVEALING');
|
|
407
|
+
const updated = await revealTile(round.roundId, index);
|
|
408
|
+
if (!updated) {
|
|
409
|
+
setGameState('PLAYING');
|
|
410
|
+
Alert.alert(t('reveal.alertTitle'), errorRef.current ?? t('reveal.actionFailed'));
|
|
411
|
+
return;
|
|
412
|
+
}
|
|
413
|
+
applyRound(updated);
|
|
414
|
+
} finally {
|
|
415
|
+
inFlightRef.current = false;
|
|
416
|
+
}
|
|
417
|
+
}, [isBusy, gameState, revealedTiles, round, demoMode, effectiveCostVG, startRound, revealTile, applyRound, revertStakeCharge]);
|
|
418
|
+
const handlePlayAgain = useCallback(() => {
|
|
419
|
+
if (resultActionRef.current) return;
|
|
420
|
+
resultActionRef.current = true;
|
|
421
|
+
setResultActionTaken(true);
|
|
422
|
+
if (resultWon && resultAmountVG > 0) {
|
|
423
|
+
if (demoMode) creditDemoBalance(resultAmountVG);else onLose?.();
|
|
424
|
+
} else {
|
|
425
|
+
onLose?.();
|
|
426
|
+
}
|
|
427
|
+
resetToLobby();
|
|
428
|
+
}, [resultWon, resultAmountVG, demoMode, creditDemoBalance, onLose, resetToLobby]);
|
|
429
|
+
const handleCollect = useCallback(() => {
|
|
430
|
+
if (resultActionRef.current) return;
|
|
431
|
+
resultActionRef.current = true;
|
|
432
|
+
setResultActionTaken(true);
|
|
433
|
+
if (resultWon && resultAmountVG > 0) onWin(resultAmountVG);else onBack();
|
|
434
|
+
}, [resultWon, resultAmountVG, onWin, onBack]);
|
|
435
|
+
const boardTappable = (gameState === 'LOBBY' || gameState === 'PLAYING') && !isBusy;
|
|
436
|
+
const revealsLeft = round ? round.revealsRemaining : revealsPerRound;
|
|
437
|
+
const usedReveals = revealsPerRound - revealsLeft;
|
|
438
|
+
const revealLive = gameState !== 'LOBBY' && gameState !== 'SESSION_END';
|
|
439
|
+
const [quitVisible, setQuitVisible] = useState(false);
|
|
440
|
+
const handleBack = useCallback(() => {
|
|
441
|
+
if (!revealLive) {
|
|
442
|
+
onBack();
|
|
443
|
+
return;
|
|
444
|
+
}
|
|
445
|
+
setQuitVisible(true);
|
|
446
|
+
}, [revealLive, onBack]);
|
|
447
|
+
useEffect(() => {
|
|
448
|
+
const sub = BackHandler.addEventListener('hardwareBackPress', () => {
|
|
449
|
+
handleBack();
|
|
450
|
+
return true;
|
|
451
|
+
});
|
|
452
|
+
return () => sub.remove();
|
|
453
|
+
}, [handleBack]);
|
|
454
|
+
const isOverlay = gameState === 'RESULT' || gameState === 'SESSION_END';
|
|
455
|
+
const isSessionEnd = gameState === 'SESSION_END';
|
|
456
|
+
const resultActionsDisabled = isBusy || inFlightRef.current || resultActionTaken;
|
|
457
|
+
const previewCards = useMemo(() => symbols.filter(s => s.prizeTierCode != null).map(s => ({
|
|
458
|
+
symbolCode: s.code,
|
|
459
|
+
assetKey: s.assetKey,
|
|
460
|
+
count: 0,
|
|
461
|
+
target: revealsPerRound,
|
|
462
|
+
prizeAmountKobo: 0,
|
|
463
|
+
complete: false,
|
|
464
|
+
nearComplete: false
|
|
465
|
+
})), [symbols, revealsPerRound]);
|
|
466
|
+
const displayCards = round ? buildRewardCards(round, symbols) : previewCards;
|
|
467
|
+
const breatheScale = breatheAnim.interpolate({
|
|
468
|
+
inputRange: [0, 1],
|
|
469
|
+
outputRange: [1, 1.03]
|
|
470
|
+
});
|
|
471
|
+
const assetName = code => symbolAssetMap[code] ?? code.toLowerCase();
|
|
472
|
+
return /*#__PURE__*/_jsx(KeyboardAvoidingView, {
|
|
473
|
+
style: {
|
|
474
|
+
flex: 1
|
|
475
|
+
},
|
|
476
|
+
behavior: Platform.OS === 'ios' ? 'padding' : undefined,
|
|
477
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
478
|
+
style: styles.container,
|
|
479
|
+
children: [/*#__PURE__*/_jsx(HypeCallout, {
|
|
480
|
+
ref: hypeRef,
|
|
481
|
+
style: {
|
|
482
|
+
top: 240
|
|
483
|
+
}
|
|
484
|
+
}), !round && /*#__PURE__*/_jsx(SideDemoTab, {
|
|
485
|
+
enabled: !!game?.demoConfig?.enabled
|
|
486
|
+
}), /*#__PURE__*/_jsxs(ScrollView, {
|
|
487
|
+
contentContainerStyle: {
|
|
488
|
+
flexGrow: 1
|
|
489
|
+
},
|
|
490
|
+
keyboardShouldPersistTaps: "handled",
|
|
491
|
+
bounces: false,
|
|
492
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
493
|
+
style: styles.header,
|
|
494
|
+
children: [/*#__PURE__*/_jsx(QuitConfirmModal, {
|
|
495
|
+
visible: quitVisible,
|
|
496
|
+
message: t('reveal.quitMessage'),
|
|
497
|
+
onKeepPlaying: () => setQuitVisible(false),
|
|
498
|
+
onQuit: () => {
|
|
499
|
+
setQuitVisible(false);
|
|
500
|
+
onBack();
|
|
501
|
+
}
|
|
502
|
+
}), /*#__PURE__*/_jsx(MonflowtsPressable, {
|
|
503
|
+
style: styles.circleBtn,
|
|
504
|
+
onPress: handleBack,
|
|
505
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
506
|
+
style: styles.btnText,
|
|
507
|
+
children: "\u2039"
|
|
508
|
+
})
|
|
509
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
510
|
+
ref: balancePillRef,
|
|
511
|
+
onLayout: () => coinFlyRef.current?.measureTarget(),
|
|
512
|
+
children: /*#__PURE__*/_jsxs(Animated.View, {
|
|
513
|
+
style: [styles.balancePill, {
|
|
514
|
+
transform: [{
|
|
515
|
+
scale: balancePulse
|
|
516
|
+
}]
|
|
517
|
+
}],
|
|
518
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
519
|
+
style: styles.diamondIcon,
|
|
520
|
+
children: /*#__PURE__*/_jsx(SvgIcon, {
|
|
521
|
+
name: "diamond",
|
|
522
|
+
size: 14,
|
|
523
|
+
color: COLORS.gold
|
|
524
|
+
})
|
|
525
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
526
|
+
style: styles.balanceText,
|
|
527
|
+
children: formatNumber(displayBalance)
|
|
528
|
+
})]
|
|
529
|
+
})
|
|
530
|
+
}), /*#__PURE__*/_jsx(MonflowtsPressable, {
|
|
531
|
+
style: styles.circleBtn,
|
|
532
|
+
onPress: () => setRulesVisible(true),
|
|
533
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
534
|
+
style: styles.btnText,
|
|
535
|
+
children: "?"
|
|
536
|
+
})
|
|
537
|
+
})]
|
|
538
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
539
|
+
style: styles.titleArea,
|
|
540
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
541
|
+
style: styles.badgeRow,
|
|
542
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
543
|
+
style: styles.roundBadge,
|
|
544
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
545
|
+
style: styles.roundText,
|
|
546
|
+
children: t('reveal.rounds', {
|
|
547
|
+
remaining: roundsRemaining,
|
|
548
|
+
total: roundsPerSession
|
|
549
|
+
})
|
|
550
|
+
})
|
|
551
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
552
|
+
style: styles.liveBadge,
|
|
553
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
554
|
+
style: styles.liveIndicator
|
|
555
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
556
|
+
style: styles.liveText,
|
|
557
|
+
children: demoMode ? t('reveal.demo') : t('reveal.live')
|
|
558
|
+
})]
|
|
559
|
+
})]
|
|
560
|
+
}), gameState === 'LOBBY' ? /*#__PURE__*/_jsxs(_Fragment, {
|
|
561
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
562
|
+
style: styles.mainTitle,
|
|
563
|
+
children: t('reveal.tapToReveal')
|
|
564
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
565
|
+
style: styles.mainSubtitle,
|
|
566
|
+
children: t('reveal.revealsMatchToWin', {
|
|
567
|
+
count: revealsPerRound
|
|
568
|
+
})
|
|
569
|
+
})]
|
|
570
|
+
}) : /*#__PURE__*/_jsxs(_Fragment, {
|
|
571
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
572
|
+
style: styles.mainTitle,
|
|
573
|
+
children: revealsLeft === 1 ? t('reveal.revealLeft_one', {
|
|
574
|
+
count: revealsLeft
|
|
575
|
+
}) : t('reveal.revealLeft_other', {
|
|
576
|
+
count: revealsLeft
|
|
577
|
+
})
|
|
578
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
579
|
+
style: styles.mainSubtitle,
|
|
580
|
+
children: isBusy ? t('reveal.revealing') : t('reveal.tapHiddenTile')
|
|
581
|
+
})]
|
|
582
|
+
})]
|
|
583
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
584
|
+
style: styles.slotsRow,
|
|
585
|
+
children: Array.from({
|
|
586
|
+
length: revealsPerRound
|
|
587
|
+
}).map((_, i) => {
|
|
588
|
+
const filled = i < usedReveals;
|
|
589
|
+
const isNewest = i === usedReveals - 1;
|
|
590
|
+
return /*#__PURE__*/_jsx(Animated.View, {
|
|
591
|
+
style: [styles.revealSlot, filled && styles.revealSlotFilled, isNewest ? {
|
|
592
|
+
transform: [{
|
|
593
|
+
scale: slotPop.interpolate({
|
|
594
|
+
inputRange: [0, 1],
|
|
595
|
+
outputRange: [1.5, 1]
|
|
596
|
+
})
|
|
597
|
+
}]
|
|
598
|
+
} : null],
|
|
599
|
+
children: filled ? /*#__PURE__*/_jsx(SvgIcon, {
|
|
600
|
+
name: "sparkles",
|
|
601
|
+
size: 12,
|
|
602
|
+
color: COLORS.gold
|
|
603
|
+
}) : /*#__PURE__*/_jsx(View, {
|
|
604
|
+
style: styles.revealSlotDot
|
|
605
|
+
})
|
|
606
|
+
}, `slot-${i}`);
|
|
607
|
+
})
|
|
608
|
+
}), displayCards.length > 0 && /*#__PURE__*/_jsx(ScrollView, {
|
|
609
|
+
horizontal: true,
|
|
610
|
+
showsHorizontalScrollIndicator: false,
|
|
611
|
+
contentContainerStyle: styles.rewardRow,
|
|
612
|
+
keyboardShouldPersistTaps: "handled",
|
|
613
|
+
children: displayCards.map((c, i) => {
|
|
614
|
+
const pulse = cardPulseAnims[i];
|
|
615
|
+
return /*#__PURE__*/_jsxs(Animated.View, {
|
|
616
|
+
style: [styles.rewardCard, c.nearComplete && styles.rewardCardNear, c.complete && styles.rewardCardComplete, pulse ? {
|
|
617
|
+
transform: [{
|
|
618
|
+
scale: pulse
|
|
619
|
+
}]
|
|
620
|
+
} : null],
|
|
621
|
+
children: [/*#__PURE__*/_jsx(SvgIcon, {
|
|
622
|
+
name: c.assetKey,
|
|
623
|
+
size: 24,
|
|
624
|
+
color: c.complete || c.nearComplete ? COLORS.gold : COLORS.slateLight
|
|
625
|
+
}), c.prizeAmountKobo > 0 && /*#__PURE__*/_jsx(Text, {
|
|
626
|
+
style: styles.rewardAmount,
|
|
627
|
+
children: formatNumber(Math.round(c.prizeAmountKobo / 100))
|
|
628
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
629
|
+
style: styles.cardSlotRow,
|
|
630
|
+
children: Array.from({
|
|
631
|
+
length: c.target
|
|
632
|
+
}).map((_, s) => /*#__PURE__*/_jsx(View, {
|
|
633
|
+
style: [styles.cardSlotDot, s < c.count && styles.cardSlotDotFilled]
|
|
634
|
+
}, `cs-${s}`))
|
|
635
|
+
})]
|
|
636
|
+
}, c.symbolCode);
|
|
637
|
+
})
|
|
638
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
639
|
+
style: styles.gridArea,
|
|
640
|
+
children: /*#__PURE__*/_jsx(Animated.View, {
|
|
641
|
+
ref: boardRef,
|
|
642
|
+
style: [styles.grid, {
|
|
643
|
+
width: gridWidth,
|
|
644
|
+
transform: [{
|
|
645
|
+
translateX: shakeAnim
|
|
646
|
+
}]
|
|
647
|
+
}],
|
|
648
|
+
children: Array.from({
|
|
649
|
+
length: boardCells
|
|
650
|
+
}).map((_, i) => {
|
|
651
|
+
const symbol = revealedTiles[i];
|
|
652
|
+
const isRevealed = symbol != null;
|
|
653
|
+
const flip = flipAnims[i] ?? new Animated.Value(isRevealed ? 1 : 0);
|
|
654
|
+
const entrance = entranceAnims[i] ?? new Animated.Value(1);
|
|
655
|
+
const frontRotate = flip.interpolate({
|
|
656
|
+
inputRange: [0, 1],
|
|
657
|
+
outputRange: ['0deg', '180deg']
|
|
658
|
+
});
|
|
659
|
+
const backRotate = flip.interpolate({
|
|
660
|
+
inputRange: [0, 1],
|
|
661
|
+
outputRange: ['180deg', '360deg']
|
|
662
|
+
});
|
|
663
|
+
const frontOpacity = flip.interpolate({
|
|
664
|
+
inputRange: [0, 0.49, 0.5, 1],
|
|
665
|
+
outputRange: [1, 1, 0, 0]
|
|
666
|
+
});
|
|
667
|
+
const backOpacity = flip.interpolate({
|
|
668
|
+
inputRange: [0, 0.49, 0.5, 1],
|
|
669
|
+
outputRange: [0, 0, 1, 1]
|
|
670
|
+
});
|
|
671
|
+
const isReward = isRevealed && rewardCodes.has(symbol);
|
|
672
|
+
const tileTappable = boardTappable && !isRevealed && revealsLeft > 0;
|
|
673
|
+
const scaleTransforms = isRevealed || animationIntensity === 'low' ? [{
|
|
674
|
+
scale: entrance
|
|
675
|
+
}] : [{
|
|
676
|
+
scale: entrance
|
|
677
|
+
}, {
|
|
678
|
+
scale: breatheScale
|
|
679
|
+
}];
|
|
680
|
+
return /*#__PURE__*/_jsxs(Animated.View, {
|
|
681
|
+
style: [styles.cell, {
|
|
682
|
+
width: cellSize,
|
|
683
|
+
height: cellSize,
|
|
684
|
+
opacity: entrance,
|
|
685
|
+
transform: scaleTransforms
|
|
686
|
+
}, isRevealed && (isReward ? styles.cellReward : styles.cellMiss)],
|
|
687
|
+
children: [/*#__PURE__*/_jsx(Animated.View, {
|
|
688
|
+
style: [styles.face, {
|
|
689
|
+
transform: [{
|
|
690
|
+
perspective: 800
|
|
691
|
+
}, {
|
|
692
|
+
rotateY: frontRotate
|
|
693
|
+
}],
|
|
694
|
+
opacity: frontOpacity
|
|
695
|
+
}],
|
|
696
|
+
pointerEvents: "none",
|
|
697
|
+
children: /*#__PURE__*/_jsx(View, {
|
|
698
|
+
style: styles.tileBack,
|
|
699
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
700
|
+
style: [styles.tileQuestion, {
|
|
701
|
+
fontSize: cellSize * 0.42
|
|
702
|
+
}],
|
|
703
|
+
children: "?"
|
|
704
|
+
})
|
|
705
|
+
})
|
|
706
|
+
}), /*#__PURE__*/_jsx(Animated.View, {
|
|
707
|
+
style: [styles.face, {
|
|
708
|
+
transform: [{
|
|
709
|
+
perspective: 800
|
|
710
|
+
}, {
|
|
711
|
+
rotateY: backRotate
|
|
712
|
+
}],
|
|
713
|
+
opacity: backOpacity
|
|
714
|
+
}],
|
|
715
|
+
pointerEvents: "none",
|
|
716
|
+
children: isRevealed && /*#__PURE__*/_jsx(SvgIcon, {
|
|
717
|
+
name: assetName(symbol),
|
|
718
|
+
size: cellSize * 0.5,
|
|
719
|
+
color: isReward ? COLORS.gold : COLORS.slateLight
|
|
720
|
+
})
|
|
721
|
+
}), /*#__PURE__*/_jsx(MonflowtsPressable, {
|
|
722
|
+
style: styles.cellTouchable,
|
|
723
|
+
onPress: () => handleTileTap(i),
|
|
724
|
+
disabled: !tileTappable,
|
|
725
|
+
activeOpacity: 0.8
|
|
726
|
+
})]
|
|
727
|
+
}, `tile-${i}`);
|
|
728
|
+
})
|
|
729
|
+
})
|
|
730
|
+
}), gameState === 'LOBBY' && /*#__PURE__*/_jsxs(View, {
|
|
731
|
+
style: styles.footer,
|
|
732
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
733
|
+
style: styles.footerLabel,
|
|
734
|
+
children: t('reveal.selectStake')
|
|
735
|
+
}), /*#__PURE__*/_jsx(MonflowtsChipGroup, {
|
|
736
|
+
options: stakeOptionsVG,
|
|
737
|
+
selectedValue: activeStake,
|
|
738
|
+
onSelect: stake => {
|
|
739
|
+
sounds.playSelect();
|
|
740
|
+
setActiveStake(stake);
|
|
741
|
+
},
|
|
742
|
+
containerStyle: styles.stakeRow
|
|
743
|
+
}), /*#__PURE__*/_jsx(StakeInput, {
|
|
744
|
+
value: activeStake,
|
|
745
|
+
min: stakeOptionsVG[0] ?? 100,
|
|
746
|
+
onConfirm: stake => setActiveStake(stake),
|
|
747
|
+
currency: currency
|
|
748
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
749
|
+
style: styles.notice,
|
|
750
|
+
children: t('reveal.stakeNotice', {
|
|
751
|
+
amount: formatNumber(effectiveCostVG),
|
|
752
|
+
currency
|
|
753
|
+
})
|
|
754
|
+
})]
|
|
755
|
+
}), (gameState === 'PLAYING' || gameState === 'REVEALING') && /*#__PURE__*/_jsxs(View, {
|
|
756
|
+
style: styles.activeFooter,
|
|
757
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
758
|
+
style: styles.activeFooterRow,
|
|
759
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
760
|
+
style: styles.activeFooterLabel,
|
|
761
|
+
children: t('reveal.stake')
|
|
762
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
763
|
+
style: styles.activeFooterValue,
|
|
764
|
+
children: t('reveal.stakeValue', {
|
|
765
|
+
amount: formatNumber(effectiveCostVG),
|
|
766
|
+
currency
|
|
767
|
+
})
|
|
768
|
+
})]
|
|
769
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
770
|
+
style: styles.activeFooterDivider
|
|
771
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
772
|
+
style: styles.activeFooterRow,
|
|
773
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
774
|
+
style: styles.activeFooterLabel,
|
|
775
|
+
children: t('reveal.revealsLeft')
|
|
776
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
777
|
+
style: styles.activeFooterValue,
|
|
778
|
+
children: revealsLeft
|
|
779
|
+
})]
|
|
780
|
+
})]
|
|
781
|
+
})]
|
|
782
|
+
}), isOverlay && /*#__PURE__*/_jsxs(Animated.View, {
|
|
783
|
+
style: [styles.overlay, {
|
|
784
|
+
opacity: overlayOpacity
|
|
785
|
+
}],
|
|
786
|
+
children: [resultWon && /*#__PURE__*/_jsx(View, {
|
|
787
|
+
style: styles.lottieOverlay,
|
|
788
|
+
pointerEvents: "none",
|
|
789
|
+
children: /*#__PURE__*/_jsx(MonflowtsLottieView, {
|
|
790
|
+
sourceJson: confettiJson,
|
|
791
|
+
autoPlay: true,
|
|
792
|
+
loop: false,
|
|
793
|
+
speed: 1,
|
|
794
|
+
style: StyleSheet.absoluteFill
|
|
795
|
+
}, `confetti-${lottieKey}`)
|
|
796
|
+
}), /*#__PURE__*/_jsx(ScrollView, {
|
|
797
|
+
contentContainerStyle: styles.overlayScrollContent,
|
|
798
|
+
showsVerticalScrollIndicator: false,
|
|
799
|
+
children: /*#__PURE__*/_jsxs(Animated.View, {
|
|
800
|
+
style: [styles.overlayContent, {
|
|
801
|
+
transform: [{
|
|
802
|
+
scale: overlayScale
|
|
803
|
+
}]
|
|
804
|
+
}],
|
|
805
|
+
children: [resultWon ? /*#__PURE__*/_jsx(View, {
|
|
806
|
+
style: styles.iconGlow,
|
|
807
|
+
children: /*#__PURE__*/_jsx(SvgIcon, {
|
|
808
|
+
name: "trophy",
|
|
809
|
+
size: 64,
|
|
810
|
+
color: COLORS.gold
|
|
811
|
+
})
|
|
812
|
+
}) : /*#__PURE__*/_jsxs(View, {
|
|
813
|
+
style: styles.dustBox,
|
|
814
|
+
pointerEvents: "none",
|
|
815
|
+
children: [/*#__PURE__*/_jsx(MonflowtsLottieView, {
|
|
816
|
+
sourceJson: dustJson,
|
|
817
|
+
autoPlay: true,
|
|
818
|
+
loop: false,
|
|
819
|
+
speed: 0.9,
|
|
820
|
+
style: styles.dustLottie
|
|
821
|
+
}, `dust-${lottieKey}`), /*#__PURE__*/_jsx(SvgIcon, {
|
|
822
|
+
name: "sparkles",
|
|
823
|
+
size: 56,
|
|
824
|
+
color: COLORS.primary
|
|
825
|
+
})]
|
|
826
|
+
}), /*#__PURE__*/_jsxs(Text, {
|
|
827
|
+
style: styles.overlayTitle,
|
|
828
|
+
children: [resultWon ? t('reveal.resultYou') : t('reveal.resultSo'), /*#__PURE__*/_jsx(Text, {
|
|
829
|
+
style: {
|
|
830
|
+
color: resultWon ? COLORS.gold : COLORS.primary
|
|
831
|
+
},
|
|
832
|
+
children: resultWon ? t('reveal.resultWon') : t('reveal.resultClose')
|
|
833
|
+
})]
|
|
834
|
+
}), resultWon && resultAmountVG > 0 && /*#__PURE__*/_jsx(Text, {
|
|
835
|
+
style: styles.overlayAmount,
|
|
836
|
+
children: t('reveal.winAmount', {
|
|
837
|
+
amount: formatNumber(resultAmountVG),
|
|
838
|
+
currency
|
|
839
|
+
})
|
|
840
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
841
|
+
style: styles.overlaySubtitle,
|
|
842
|
+
children: resultMessage
|
|
843
|
+
}), isSessionEnd && /*#__PURE__*/_jsx(Text, {
|
|
844
|
+
style: styles.sessionEndText,
|
|
845
|
+
children: sessionEndMessage
|
|
846
|
+
}), !resultWon && /*#__PURE__*/_jsx(JackpotNearMiss, {
|
|
847
|
+
jackpotAmountKobo: jackpotAmountKobo,
|
|
848
|
+
currency: currency
|
|
849
|
+
}), !isSessionEnd && /*#__PURE__*/_jsx(MonflowtsButton, {
|
|
850
|
+
title: resultWon ? t('reveal.playAgain') : t('reveal.tryAgain'),
|
|
851
|
+
icon: /*#__PURE__*/_jsx(SvgIcon, {
|
|
852
|
+
name: "refresh",
|
|
853
|
+
size: 16,
|
|
854
|
+
color: "#ffffff"
|
|
855
|
+
}),
|
|
856
|
+
onPress: handlePlayAgain,
|
|
857
|
+
disabled: resultActionsDisabled
|
|
858
|
+
}), resultWon && resultAmountVG > 0 && /*#__PURE__*/_jsx(MonflowtsButton, {
|
|
859
|
+
title: t('reveal.collectExit'),
|
|
860
|
+
variant: "outline",
|
|
861
|
+
icon: /*#__PURE__*/_jsx(SvgIcon, {
|
|
862
|
+
name: "sparkles",
|
|
863
|
+
size: 16,
|
|
864
|
+
color: "#ffffff"
|
|
865
|
+
}),
|
|
866
|
+
onPress: handleCollect,
|
|
867
|
+
style: {
|
|
868
|
+
marginTop: 12
|
|
869
|
+
},
|
|
870
|
+
disabled: resultActionsDisabled
|
|
871
|
+
}), /*#__PURE__*/_jsx(MonflowtsPressable, {
|
|
872
|
+
onPress: onBack,
|
|
873
|
+
style: {
|
|
874
|
+
marginTop: 8
|
|
875
|
+
},
|
|
876
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
877
|
+
style: styles.linkText,
|
|
878
|
+
children: t('reveal.returnToMenu')
|
|
879
|
+
})
|
|
880
|
+
})]
|
|
881
|
+
})
|
|
882
|
+
})]
|
|
883
|
+
}), /*#__PURE__*/_jsx(CoinFlyOverlay, {
|
|
884
|
+
ref: coinFlyRef,
|
|
885
|
+
targetRef: balancePillRef,
|
|
886
|
+
balancePulse: balancePulse
|
|
887
|
+
}), /*#__PURE__*/_jsx(InsufficientFundsOverlay, {
|
|
888
|
+
visible: showFundsOverlay,
|
|
889
|
+
balance: balance,
|
|
890
|
+
required: effectiveCostVG,
|
|
891
|
+
currency: currency,
|
|
892
|
+
onDismiss: () => setShowFundsOverlay(false),
|
|
893
|
+
onTopUp: onTopUp
|
|
894
|
+
}), /*#__PURE__*/_jsx(GameRulesModal, {
|
|
895
|
+
visible: rulesVisible,
|
|
896
|
+
onClose: () => setRulesVisible(false),
|
|
897
|
+
gameCode: game?.gameCode ?? 'REVEAL_WIN'
|
|
898
|
+
})]
|
|
899
|
+
})
|
|
900
|
+
});
|
|
901
|
+
};
|
|
902
|
+
const styles = StyleSheet.create({
|
|
903
|
+
container: {
|
|
904
|
+
flex: 1,
|
|
905
|
+
backgroundColor: COLORS.backgroundDark,
|
|
906
|
+
paddingTop: 50
|
|
907
|
+
},
|
|
908
|
+
header: {
|
|
909
|
+
flexDirection: 'row',
|
|
910
|
+
justifyContent: 'space-between',
|
|
911
|
+
alignItems: 'center',
|
|
912
|
+
paddingHorizontal: 20
|
|
913
|
+
},
|
|
914
|
+
circleBtn: {
|
|
915
|
+
width: 36,
|
|
916
|
+
height: 36,
|
|
917
|
+
borderRadius: 18,
|
|
918
|
+
backgroundColor: COLORS.white05,
|
|
919
|
+
borderWidth: 1,
|
|
920
|
+
borderColor: COLORS.white10,
|
|
921
|
+
alignItems: 'center',
|
|
922
|
+
justifyContent: 'center'
|
|
923
|
+
},
|
|
924
|
+
btnText: {
|
|
925
|
+
color: '#fff',
|
|
926
|
+
fontSize: 18
|
|
927
|
+
},
|
|
928
|
+
balancePill: {
|
|
929
|
+
flexDirection: 'row',
|
|
930
|
+
alignItems: 'center',
|
|
931
|
+
backgroundColor: 'rgba(30, 41, 59, 0.5)',
|
|
932
|
+
borderRadius: 20,
|
|
933
|
+
paddingRight: 14,
|
|
934
|
+
paddingLeft: 4,
|
|
935
|
+
paddingVertical: 4,
|
|
936
|
+
borderWidth: 1,
|
|
937
|
+
borderColor: 'rgba(71, 85, 105, 0.5)'
|
|
938
|
+
},
|
|
939
|
+
diamondIcon: {
|
|
940
|
+
width: 28,
|
|
941
|
+
height: 28,
|
|
942
|
+
borderRadius: 14,
|
|
943
|
+
backgroundColor: '#eab308',
|
|
944
|
+
alignItems: 'center',
|
|
945
|
+
justifyContent: 'center',
|
|
946
|
+
marginRight: 6
|
|
947
|
+
},
|
|
948
|
+
balanceText: {
|
|
949
|
+
color: COLORS.gold,
|
|
950
|
+
fontWeight: '700',
|
|
951
|
+
fontSize: 15
|
|
952
|
+
},
|
|
953
|
+
titleArea: {
|
|
954
|
+
alignItems: 'center',
|
|
955
|
+
paddingTop: 10,
|
|
956
|
+
paddingBottom: 6
|
|
957
|
+
},
|
|
958
|
+
badgeRow: {
|
|
959
|
+
flexDirection: 'row',
|
|
960
|
+
alignItems: 'center',
|
|
961
|
+
justifyContent: 'center',
|
|
962
|
+
gap: 8,
|
|
963
|
+
marginBottom: 6
|
|
964
|
+
},
|
|
965
|
+
roundBadge: {
|
|
966
|
+
backgroundColor: COLORS.white05,
|
|
967
|
+
borderWidth: 1,
|
|
968
|
+
borderColor: COLORS.white10,
|
|
969
|
+
borderRadius: 20,
|
|
970
|
+
paddingHorizontal: 10,
|
|
971
|
+
paddingVertical: 4
|
|
972
|
+
},
|
|
973
|
+
roundText: {
|
|
974
|
+
fontSize: 11,
|
|
975
|
+
fontWeight: '700',
|
|
976
|
+
color: COLORS.primary
|
|
977
|
+
},
|
|
978
|
+
liveBadge: {
|
|
979
|
+
flexDirection: 'row',
|
|
980
|
+
alignItems: 'center',
|
|
981
|
+
gap: 4,
|
|
982
|
+
backgroundColor: 'rgba(127,19,236,0.2)',
|
|
983
|
+
borderWidth: 1,
|
|
984
|
+
borderColor: 'rgba(127,19,236,0.3)',
|
|
985
|
+
borderRadius: 12,
|
|
986
|
+
paddingHorizontal: 10,
|
|
987
|
+
paddingVertical: 4
|
|
988
|
+
},
|
|
989
|
+
liveIndicator: {
|
|
990
|
+
width: 5,
|
|
991
|
+
height: 5,
|
|
992
|
+
borderRadius: 3,
|
|
993
|
+
backgroundColor: COLORS.primary
|
|
994
|
+
},
|
|
995
|
+
liveText: {
|
|
996
|
+
fontSize: 9,
|
|
997
|
+
fontWeight: '800',
|
|
998
|
+
color: '#fff',
|
|
999
|
+
letterSpacing: 1.5
|
|
1000
|
+
},
|
|
1001
|
+
mainTitle: {
|
|
1002
|
+
fontSize: 26,
|
|
1003
|
+
fontWeight: '800',
|
|
1004
|
+
color: COLORS.gold,
|
|
1005
|
+
letterSpacing: 1
|
|
1006
|
+
},
|
|
1007
|
+
mainSubtitle: {
|
|
1008
|
+
fontSize: 11,
|
|
1009
|
+
fontWeight: '700',
|
|
1010
|
+
color: 'rgba(127,19,236,0.7)',
|
|
1011
|
+
letterSpacing: 3,
|
|
1012
|
+
marginTop: 4
|
|
1013
|
+
},
|
|
1014
|
+
slotsRow: {
|
|
1015
|
+
flexDirection: 'row',
|
|
1016
|
+
justifyContent: 'center',
|
|
1017
|
+
alignItems: 'center',
|
|
1018
|
+
gap: 8,
|
|
1019
|
+
paddingVertical: 8
|
|
1020
|
+
},
|
|
1021
|
+
revealSlot: {
|
|
1022
|
+
width: 26,
|
|
1023
|
+
height: 26,
|
|
1024
|
+
borderRadius: 13,
|
|
1025
|
+
backgroundColor: COLORS.white05,
|
|
1026
|
+
borderWidth: 1,
|
|
1027
|
+
borderColor: COLORS.white10,
|
|
1028
|
+
alignItems: 'center',
|
|
1029
|
+
justifyContent: 'center'
|
|
1030
|
+
},
|
|
1031
|
+
revealSlotFilled: {
|
|
1032
|
+
backgroundColor: 'rgba(234,179,8,0.15)',
|
|
1033
|
+
borderColor: 'rgba(234,179,8,0.5)'
|
|
1034
|
+
},
|
|
1035
|
+
revealSlotDot: {
|
|
1036
|
+
width: 6,
|
|
1037
|
+
height: 6,
|
|
1038
|
+
borderRadius: 3,
|
|
1039
|
+
backgroundColor: COLORS.slateDark
|
|
1040
|
+
},
|
|
1041
|
+
rewardRow: {
|
|
1042
|
+
flexGrow: 1,
|
|
1043
|
+
flexDirection: 'row',
|
|
1044
|
+
gap: 10,
|
|
1045
|
+
paddingHorizontal: 20,
|
|
1046
|
+
paddingVertical: 6,
|
|
1047
|
+
alignItems: 'center',
|
|
1048
|
+
justifyContent: 'center'
|
|
1049
|
+
},
|
|
1050
|
+
rewardCard: {
|
|
1051
|
+
alignItems: 'center',
|
|
1052
|
+
backgroundColor: 'rgba(15,23,42,0.6)',
|
|
1053
|
+
borderRadius: 14,
|
|
1054
|
+
borderWidth: 1,
|
|
1055
|
+
borderColor: COLORS.white10,
|
|
1056
|
+
paddingHorizontal: 14,
|
|
1057
|
+
paddingVertical: 10,
|
|
1058
|
+
minWidth: 76,
|
|
1059
|
+
gap: 4
|
|
1060
|
+
},
|
|
1061
|
+
rewardCardNear: {
|
|
1062
|
+
borderColor: 'rgba(234,179,8,0.5)',
|
|
1063
|
+
backgroundColor: 'rgba(234,179,8,0.08)'
|
|
1064
|
+
},
|
|
1065
|
+
rewardCardComplete: {
|
|
1066
|
+
borderColor: COLORS.gold,
|
|
1067
|
+
backgroundColor: 'rgba(234,179,8,0.16)'
|
|
1068
|
+
},
|
|
1069
|
+
rewardAmount: {
|
|
1070
|
+
fontSize: 13,
|
|
1071
|
+
fontWeight: '800',
|
|
1072
|
+
color: COLORS.gold
|
|
1073
|
+
},
|
|
1074
|
+
cardSlotRow: {
|
|
1075
|
+
flexDirection: 'row',
|
|
1076
|
+
gap: 4,
|
|
1077
|
+
marginTop: 2
|
|
1078
|
+
},
|
|
1079
|
+
cardSlotDot: {
|
|
1080
|
+
width: 6,
|
|
1081
|
+
height: 6,
|
|
1082
|
+
borderRadius: 3,
|
|
1083
|
+
backgroundColor: COLORS.white10
|
|
1084
|
+
},
|
|
1085
|
+
cardSlotDotFilled: {
|
|
1086
|
+
backgroundColor: COLORS.gold
|
|
1087
|
+
},
|
|
1088
|
+
gridArea: {
|
|
1089
|
+
flex: 1,
|
|
1090
|
+
alignItems: 'center',
|
|
1091
|
+
justifyContent: 'center',
|
|
1092
|
+
paddingHorizontal: GRID_PADDING,
|
|
1093
|
+
paddingVertical: 8
|
|
1094
|
+
},
|
|
1095
|
+
grid: {
|
|
1096
|
+
flexDirection: 'row',
|
|
1097
|
+
flexWrap: 'wrap',
|
|
1098
|
+
gap: GRID_GAP
|
|
1099
|
+
},
|
|
1100
|
+
cell: {
|
|
1101
|
+
borderRadius: 16,
|
|
1102
|
+
backgroundColor: 'rgba(42,31,54,0.4)',
|
|
1103
|
+
borderWidth: 1,
|
|
1104
|
+
borderColor: 'rgba(255,255,255,0.05)',
|
|
1105
|
+
alignItems: 'center',
|
|
1106
|
+
justifyContent: 'center'
|
|
1107
|
+
},
|
|
1108
|
+
cellReward: {
|
|
1109
|
+
borderColor: 'rgba(234, 179, 8, 0.4)',
|
|
1110
|
+
backgroundColor: 'rgba(234, 179, 8, 0.08)'
|
|
1111
|
+
},
|
|
1112
|
+
cellMiss: {
|
|
1113
|
+
opacity: 0.55
|
|
1114
|
+
},
|
|
1115
|
+
face: {
|
|
1116
|
+
...StyleSheet.absoluteFill,
|
|
1117
|
+
alignItems: 'center',
|
|
1118
|
+
justifyContent: 'center',
|
|
1119
|
+
borderRadius: 16,
|
|
1120
|
+
backfaceVisibility: 'hidden'
|
|
1121
|
+
},
|
|
1122
|
+
tileBack: {
|
|
1123
|
+
width: '100%',
|
|
1124
|
+
height: '100%',
|
|
1125
|
+
alignItems: 'center',
|
|
1126
|
+
justifyContent: 'center',
|
|
1127
|
+
borderRadius: 16,
|
|
1128
|
+
backgroundColor: 'rgba(127,19,236,0.08)'
|
|
1129
|
+
},
|
|
1130
|
+
tileQuestion: {
|
|
1131
|
+
fontWeight: '800',
|
|
1132
|
+
color: 'rgba(190,160,240,0.45)'
|
|
1133
|
+
},
|
|
1134
|
+
cellTouchable: {
|
|
1135
|
+
...StyleSheet.absoluteFill
|
|
1136
|
+
},
|
|
1137
|
+
footer: {
|
|
1138
|
+
paddingHorizontal: 20,
|
|
1139
|
+
paddingBottom: 32,
|
|
1140
|
+
alignItems: 'center'
|
|
1141
|
+
},
|
|
1142
|
+
footerLabel: {
|
|
1143
|
+
fontSize: 10,
|
|
1144
|
+
fontWeight: '800',
|
|
1145
|
+
color: COLORS.slateDark,
|
|
1146
|
+
letterSpacing: 2,
|
|
1147
|
+
marginBottom: 10
|
|
1148
|
+
},
|
|
1149
|
+
stakeRow: {
|
|
1150
|
+
flexDirection: 'row',
|
|
1151
|
+
flexWrap: 'wrap',
|
|
1152
|
+
justifyContent: 'center',
|
|
1153
|
+
gap: 8,
|
|
1154
|
+
marginBottom: 6
|
|
1155
|
+
},
|
|
1156
|
+
notice: {
|
|
1157
|
+
fontSize: 11,
|
|
1158
|
+
color: COLORS.slateLight,
|
|
1159
|
+
textAlign: 'center',
|
|
1160
|
+
marginTop: 12,
|
|
1161
|
+
lineHeight: 16,
|
|
1162
|
+
paddingHorizontal: 8
|
|
1163
|
+
},
|
|
1164
|
+
activeFooter: {
|
|
1165
|
+
flexDirection: 'row',
|
|
1166
|
+
justifyContent: 'center',
|
|
1167
|
+
alignItems: 'center',
|
|
1168
|
+
paddingHorizontal: 20,
|
|
1169
|
+
paddingVertical: 16,
|
|
1170
|
+
paddingBottom: 32,
|
|
1171
|
+
gap: 20
|
|
1172
|
+
},
|
|
1173
|
+
activeFooterRow: {
|
|
1174
|
+
alignItems: 'center'
|
|
1175
|
+
},
|
|
1176
|
+
activeFooterLabel: {
|
|
1177
|
+
fontSize: 10,
|
|
1178
|
+
fontWeight: '800',
|
|
1179
|
+
color: COLORS.slateDark,
|
|
1180
|
+
letterSpacing: 2,
|
|
1181
|
+
marginBottom: 4
|
|
1182
|
+
},
|
|
1183
|
+
activeFooterValue: {
|
|
1184
|
+
fontSize: 16,
|
|
1185
|
+
fontWeight: '800',
|
|
1186
|
+
color: '#fff'
|
|
1187
|
+
},
|
|
1188
|
+
activeFooterDivider: {
|
|
1189
|
+
width: 1,
|
|
1190
|
+
height: 32,
|
|
1191
|
+
backgroundColor: COLORS.white10
|
|
1192
|
+
},
|
|
1193
|
+
overlay: {
|
|
1194
|
+
...StyleSheet.absoluteFill,
|
|
1195
|
+
backgroundColor: 'rgba(5,11,24,0.97)',
|
|
1196
|
+
zIndex: 20
|
|
1197
|
+
},
|
|
1198
|
+
lottieOverlay: {
|
|
1199
|
+
...StyleSheet.absoluteFill,
|
|
1200
|
+
zIndex: 1
|
|
1201
|
+
},
|
|
1202
|
+
overlayScrollContent: {
|
|
1203
|
+
flexGrow: 1,
|
|
1204
|
+
alignItems: 'center',
|
|
1205
|
+
justifyContent: 'center',
|
|
1206
|
+
paddingVertical: 40
|
|
1207
|
+
},
|
|
1208
|
+
overlayContent: {
|
|
1209
|
+
alignItems: 'center',
|
|
1210
|
+
paddingHorizontal: 32,
|
|
1211
|
+
width: '100%',
|
|
1212
|
+
maxWidth: 360
|
|
1213
|
+
},
|
|
1214
|
+
iconGlow: {
|
|
1215
|
+
shadowColor: COLORS.gold,
|
|
1216
|
+
shadowOffset: {
|
|
1217
|
+
width: 0,
|
|
1218
|
+
height: 0
|
|
1219
|
+
},
|
|
1220
|
+
shadowOpacity: 0.6,
|
|
1221
|
+
shadowRadius: 20
|
|
1222
|
+
},
|
|
1223
|
+
dustBox: {
|
|
1224
|
+
width: 120,
|
|
1225
|
+
height: 120,
|
|
1226
|
+
alignItems: 'center',
|
|
1227
|
+
justifyContent: 'center'
|
|
1228
|
+
},
|
|
1229
|
+
dustLottie: {
|
|
1230
|
+
...StyleSheet.absoluteFill
|
|
1231
|
+
},
|
|
1232
|
+
overlayTitle: {
|
|
1233
|
+
fontSize: 32,
|
|
1234
|
+
fontWeight: '800',
|
|
1235
|
+
color: '#fff',
|
|
1236
|
+
marginTop: 16,
|
|
1237
|
+
marginBottom: 8
|
|
1238
|
+
},
|
|
1239
|
+
overlayAmount: {
|
|
1240
|
+
fontSize: 40,
|
|
1241
|
+
fontWeight: '900',
|
|
1242
|
+
color: '#fff',
|
|
1243
|
+
marginBottom: 4
|
|
1244
|
+
},
|
|
1245
|
+
overlaySubtitle: {
|
|
1246
|
+
fontSize: 14,
|
|
1247
|
+
color: 'rgba(255,255,255,0.6)',
|
|
1248
|
+
textAlign: 'center',
|
|
1249
|
+
marginBottom: 20,
|
|
1250
|
+
lineHeight: 20
|
|
1251
|
+
},
|
|
1252
|
+
sessionEndText: {
|
|
1253
|
+
fontSize: 13,
|
|
1254
|
+
color: COLORS.gold,
|
|
1255
|
+
textAlign: 'center',
|
|
1256
|
+
marginBottom: 20,
|
|
1257
|
+
lineHeight: 18,
|
|
1258
|
+
fontWeight: '700'
|
|
1259
|
+
},
|
|
1260
|
+
linkText: {
|
|
1261
|
+
color: 'rgba(255,255,255,0.5)',
|
|
1262
|
+
fontSize: 14,
|
|
1263
|
+
paddingVertical: 8
|
|
1264
|
+
}
|
|
1265
|
+
});
|
|
1266
|
+
export default RevealWin;
|
|
1267
|
+
//# sourceMappingURL=RevealWin.js.map
|