react-native-monflowts 0.0.0-stage → 0.5.1
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 +370 -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,826 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { useMemo, useState, useCallback, useRef, useEffect } from 'react';
|
|
4
|
+
import { View, Text, StyleSheet, ScrollView, Animated, BackHandler } from 'react-native';
|
|
5
|
+
import { COLORS } from "../constants.js";
|
|
6
|
+
import { sounds } from "../SoundManager.js";
|
|
7
|
+
import { haptics } from "../HapticsManager.js";
|
|
8
|
+
import QuitConfirmModal from "../components/QuitConfirmModal.js";
|
|
9
|
+
import MonflowtsButton from "../components/MonflowtsButton.js";
|
|
10
|
+
import MonflowtsPressable from "../components/MonflowtsPressable.js";
|
|
11
|
+
import SideDemoTab from "../components/SideDemoTab.js";
|
|
12
|
+
import AnimatedAmount from "../components/AnimatedAmount.js";
|
|
13
|
+
import CoinFlyOverlay from "../components/CoinFlyOverlay.js";
|
|
14
|
+
import GameCharacter from "../components/GameCharacter.js";
|
|
15
|
+
import { BurstLayer } from "../effects/EffectBurst.js";
|
|
16
|
+
import { dirtBurstAnim, gemSparkleAnim, smokePoofAnim, coinBurstAnim, blastBurstAnim } from "../effects/particleAnims.js";
|
|
17
|
+
import { beaverConfig, beaverStateSources } from "../effects/beaverStates.js";
|
|
18
|
+
import SvgIcon from "../Icons.js";
|
|
19
|
+
import HypeCallout from "../components/HypeCallout.js";
|
|
20
|
+
import { HYPE_PHRASES, pickPhrase } from "../effects/hypePhrases.js";
|
|
21
|
+
import { useScreenShake } from "../hooks/useScreenShake.js";
|
|
22
|
+
import { useMines } from "../hooks/useMines.js";
|
|
23
|
+
import { useCurrency } from "../hooks/useCurrency.js";
|
|
24
|
+
import { useResponsive } from "../hooks/useResponsive.js";
|
|
25
|
+
import { useGameStore } from "../stores/gameStore.js";
|
|
26
|
+
import { gameRules } from "../content.js";
|
|
27
|
+
import { useSettingsStore } from "../stores/settingsStore.js";
|
|
28
|
+
import { t, formatNumber } from "../i18n.js";
|
|
29
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
30
|
+
const WALK_MS = 460;
|
|
31
|
+
const BEAVER_SIZE = 92;
|
|
32
|
+
const BEAVER_HOME = {
|
|
33
|
+
x: -10,
|
|
34
|
+
y: -92
|
|
35
|
+
};
|
|
36
|
+
const LOOP_STATES = new Set(['idle', 'walk', 'walkRight', 'walkUp', 'walkDown', 'dig']);
|
|
37
|
+
function ladderMults(total, mines, edgePercent, maxMult, upTo) {
|
|
38
|
+
const safe = total - mines;
|
|
39
|
+
const out = [];
|
|
40
|
+
let prod = 1;
|
|
41
|
+
for (let k = 1; k <= upTo && k <= safe; k++) {
|
|
42
|
+
prod *= (total - (k - 1)) / (safe - (k - 1));
|
|
43
|
+
out.push(Math.min(maxMult, Math.floor((1 - edgePercent / 100) * prod * 100) / 100));
|
|
44
|
+
}
|
|
45
|
+
return out;
|
|
46
|
+
}
|
|
47
|
+
const BOARD_MAX_WIDTH = 380;
|
|
48
|
+
const Minefield = ({
|
|
49
|
+
onBack,
|
|
50
|
+
onWin,
|
|
51
|
+
onLose,
|
|
52
|
+
balance,
|
|
53
|
+
game
|
|
54
|
+
}) => {
|
|
55
|
+
const currency = useCurrency();
|
|
56
|
+
const {
|
|
57
|
+
start,
|
|
58
|
+
reveal,
|
|
59
|
+
cashout,
|
|
60
|
+
isBusy,
|
|
61
|
+
errorRef
|
|
62
|
+
} = useMines();
|
|
63
|
+
const demoMode = useGameStore(s => s.demoMode);
|
|
64
|
+
const demoBalance = useGameStore(s => s.demoBalance);
|
|
65
|
+
const reducedMotion = useSettingsStore(s => s.reducedMotion);
|
|
66
|
+
const displayBalance = demoMode ? demoBalance : balance;
|
|
67
|
+
const {
|
|
68
|
+
shake,
|
|
69
|
+
shakeStyle
|
|
70
|
+
} = useScreenShake();
|
|
71
|
+
const {
|
|
72
|
+
width,
|
|
73
|
+
columnWidth
|
|
74
|
+
} = useResponsive();
|
|
75
|
+
const rules = game?.gameplayRules ?? {};
|
|
76
|
+
const fallbackRules = gameRules('MINES');
|
|
77
|
+
const gridSize = rules.gridSize ?? fallbackRules.gridSize ?? 0;
|
|
78
|
+
const cols = Math.round(Math.sqrt(gridSize)) || 5;
|
|
79
|
+
const stakeOptionsKobo = rules.stakeOptions ?? fallbackRules.stakeOptions ?? [];
|
|
80
|
+
const stakeOptions = useMemo(() => stakeOptionsKobo.map(s => Math.max(1, Math.round(s / 100))), [stakeOptionsKobo]);
|
|
81
|
+
const tileSize = Math.floor((Math.min(columnWidth - 40, BOARD_MAX_WIDTH) - (cols - 1) * 8) / cols);
|
|
82
|
+
const gridWidth = cols * tileSize + (cols - 1) * 8;
|
|
83
|
+
const defaultMines = rules.defaultMineCount ?? fallbackRules.defaultMineCount ?? 1;
|
|
84
|
+
const houseEdgePercent = rules.houseEdgePercent ?? fallbackRules.houseEdgePercent ?? 0;
|
|
85
|
+
const maxMultiplier = rules.maxMultiplier ?? fallbackRules.maxMultiplier ?? Infinity;
|
|
86
|
+
const [stake, setStake] = useState(stakeOptions[Math.floor(stakeOptions.length / 2)] ?? 100);
|
|
87
|
+
const [round, setRound] = useState(null);
|
|
88
|
+
const [digging, setDigging] = useState(-1);
|
|
89
|
+
const [beaverState, setBeaverState] = useState('idle');
|
|
90
|
+
const [bursts, setBursts] = useState([]);
|
|
91
|
+
const burstId = useRef(0);
|
|
92
|
+
const coinFlyRef = useRef(null);
|
|
93
|
+
const hypeRef = useRef(null);
|
|
94
|
+
const balancePillRef = useRef(null);
|
|
95
|
+
const multScale = useRef(new Animated.Value(1)).current;
|
|
96
|
+
const beaverPos = useRef(new Animated.ValueXY(BEAVER_HOME)).current;
|
|
97
|
+
const beaverAtRef = useRef({
|
|
98
|
+
...BEAVER_HOME
|
|
99
|
+
});
|
|
100
|
+
const beaverStates = useMemo(() => beaverStateSources(), []);
|
|
101
|
+
const digSpeed = beaverConfig().digSpeed;
|
|
102
|
+
const ladder = useMemo(() => ladderMults(gridSize, round?.mineCount ?? defaultMines, houseEdgePercent, maxMultiplier, 12), [gridSize, round?.mineCount, defaultMines, houseEdgePercent, maxMultiplier]);
|
|
103
|
+
const maxWinMult = useMemo(() => {
|
|
104
|
+
const all = ladderMults(gridSize, round?.mineCount ?? defaultMines, houseEdgePercent, maxMultiplier, gridSize);
|
|
105
|
+
return all[all.length - 1] ?? 1;
|
|
106
|
+
}, [gridSize, round?.mineCount, defaultMines, houseEdgePercent, maxMultiplier]);
|
|
107
|
+
const inPlay = round?.status === 'IN_PROGRESS';
|
|
108
|
+
const [quitVisible, setQuitVisible] = useState(false);
|
|
109
|
+
const handleBack = useCallback(() => {
|
|
110
|
+
if (!inPlay) {
|
|
111
|
+
onBack();
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
setQuitVisible(true);
|
|
115
|
+
}, [inPlay, onBack]);
|
|
116
|
+
useEffect(() => {
|
|
117
|
+
const sub = BackHandler.addEventListener('hardwareBackPress', () => {
|
|
118
|
+
handleBack();
|
|
119
|
+
return true;
|
|
120
|
+
});
|
|
121
|
+
return () => sub.remove();
|
|
122
|
+
}, [handleBack]);
|
|
123
|
+
const revealedSet = useMemo(() => new Set(round?.revealed ?? []), [round]);
|
|
124
|
+
const mineSet = useMemo(() => new Set(round?.minePositions ?? []), [round]);
|
|
125
|
+
const spawnBurst = useCallback((make, x, y, size = 150) => {
|
|
126
|
+
const id = ++burstId.current;
|
|
127
|
+
setBursts(prev => [...prev, {
|
|
128
|
+
id,
|
|
129
|
+
make,
|
|
130
|
+
x,
|
|
131
|
+
y,
|
|
132
|
+
size
|
|
133
|
+
}]);
|
|
134
|
+
}, []);
|
|
135
|
+
const removeBurst = useCallback(id => {
|
|
136
|
+
setBursts(prev => prev.filter(b => b.id !== id));
|
|
137
|
+
}, []);
|
|
138
|
+
const tileCenter = useCallback(index => {
|
|
139
|
+
const row = Math.floor(index / cols);
|
|
140
|
+
const col = index % cols;
|
|
141
|
+
return {
|
|
142
|
+
x: col * (tileSize + 8) + tileSize / 2,
|
|
143
|
+
y: row * (tileSize + 8) + tileSize / 2
|
|
144
|
+
};
|
|
145
|
+
}, [cols, tileSize]);
|
|
146
|
+
useEffect(() => {
|
|
147
|
+
sounds.playGameTheme('mines');
|
|
148
|
+
}, []);
|
|
149
|
+
useEffect(() => {
|
|
150
|
+
if (!round || reducedMotion) return;
|
|
151
|
+
Animated.sequence([Animated.timing(multScale, {
|
|
152
|
+
toValue: 1.25,
|
|
153
|
+
duration: 100,
|
|
154
|
+
useNativeDriver: true
|
|
155
|
+
}), Animated.spring(multScale, {
|
|
156
|
+
toValue: 1,
|
|
157
|
+
friction: 4,
|
|
158
|
+
useNativeDriver: true
|
|
159
|
+
})]).start();
|
|
160
|
+
}, [round?.currentMultiplier, round, multScale, reducedMotion]);
|
|
161
|
+
const onStart = useCallback(async () => {
|
|
162
|
+
if (isBusy) return;
|
|
163
|
+
sounds.playChestOpen();
|
|
164
|
+
haptics.selection();
|
|
165
|
+
const r = await start(stake * 100);
|
|
166
|
+
if (r) {
|
|
167
|
+
setRound(r);
|
|
168
|
+
setBeaverState('idle');
|
|
169
|
+
beaverPos.setValue(BEAVER_HOME);
|
|
170
|
+
beaverAtRef.current = {
|
|
171
|
+
...BEAVER_HOME
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
}, [isBusy, start, stake, beaverPos]);
|
|
175
|
+
const onTile = useCallback(async index => {
|
|
176
|
+
if (!round || round.status !== 'IN_PROGRESS' || revealedSet.has(index) || isBusy || digging >= 0) return;
|
|
177
|
+
haptics.selection();
|
|
178
|
+
setDigging(index);
|
|
179
|
+
const {
|
|
180
|
+
x,
|
|
181
|
+
y
|
|
182
|
+
} = tileCenter(index);
|
|
183
|
+
const beaver = beaverConfig();
|
|
184
|
+
const target = {
|
|
185
|
+
x: x - BEAVER_SIZE * beaver.actionX,
|
|
186
|
+
y: y - BEAVER_SIZE * beaver.actionY
|
|
187
|
+
};
|
|
188
|
+
const revealPromise = reveal(round.gamePlayId, index);
|
|
189
|
+
if (!reducedMotion) {
|
|
190
|
+
const dx = target.x - beaverAtRef.current.x;
|
|
191
|
+
const dy = target.y - beaverAtRef.current.y;
|
|
192
|
+
if (Math.abs(dx) >= Math.abs(dy)) {
|
|
193
|
+
setBeaverState(dx < 0 ? 'walk' : 'walkRight');
|
|
194
|
+
} else {
|
|
195
|
+
setBeaverState(dy > 0 ? 'walkDown' : 'walkUp');
|
|
196
|
+
}
|
|
197
|
+
await new Promise(res => Animated.timing(beaverPos, {
|
|
198
|
+
toValue: target,
|
|
199
|
+
duration: WALK_MS,
|
|
200
|
+
useNativeDriver: false
|
|
201
|
+
}).start(() => res()));
|
|
202
|
+
}
|
|
203
|
+
beaverAtRef.current = target;
|
|
204
|
+
let r = await Promise.race([revealPromise, new Promise(res => setTimeout(() => res('pending'), 0))]);
|
|
205
|
+
if (r === 'pending') {
|
|
206
|
+
setBeaverState('dig');
|
|
207
|
+
r = await revealPromise;
|
|
208
|
+
}
|
|
209
|
+
if (!r) {
|
|
210
|
+
setDigging(-1);
|
|
211
|
+
setBeaverState('idle');
|
|
212
|
+
return;
|
|
213
|
+
}
|
|
214
|
+
const digState = reducedMotion ? 'dig' : r.status === 'BUST' ? 'digExplode' : 'digWin';
|
|
215
|
+
setBeaverState(digState);
|
|
216
|
+
sounds.playDigThud();
|
|
217
|
+
const thuds = [setTimeout(() => sounds.playDigThud(), 420), setTimeout(() => sounds.playDigThud(), 880)];
|
|
218
|
+
const dirt = setTimeout(() => spawnBurst(dirtBurstAnim, x, y, Math.max(120, tileSize * 2)), reducedMotion ? 0 : 500);
|
|
219
|
+
const revealDelay = reducedMotion ? 0 : beaver.digRevealMs;
|
|
220
|
+
setTimeout(() => {
|
|
221
|
+
thuds.forEach(clearTimeout);
|
|
222
|
+
clearTimeout(dirt);
|
|
223
|
+
setDigging(-1);
|
|
224
|
+
setRound(r);
|
|
225
|
+
if (r.status === 'BUST') {
|
|
226
|
+
spawnBurst(blastBurstAnim, x, y, Math.max(220, tileSize * 3.4));
|
|
227
|
+
spawnBurst(smokePoofAnim, x, y, Math.max(190, tileSize * 3));
|
|
228
|
+
shake(1.5);
|
|
229
|
+
sounds.playPoof();
|
|
230
|
+
haptics.warning();
|
|
231
|
+
if (!reducedMotion) {
|
|
232
|
+
setTimeout(() => setBeaverState('die'), Math.max(0, beaver.digTotalMs - beaver.digRevealMs) + 80);
|
|
233
|
+
}
|
|
234
|
+
hypeRef.current?.show(pickPhrase(HYPE_PHRASES.mines.loss), 'loss');
|
|
235
|
+
setTimeout(() => sounds.playNearMiss(), 600);
|
|
236
|
+
onLose?.();
|
|
237
|
+
} else if (r.status === 'CASHED_OUT') {
|
|
238
|
+
spawnBurst(coinBurstAnim, x, y, 240);
|
|
239
|
+
shake(0.6);
|
|
240
|
+
sounds.playWinChime();
|
|
241
|
+
haptics.success();
|
|
242
|
+
coinFlyRef.current?.measureTarget();
|
|
243
|
+
coinFlyRef.current?.fly(width / 2, 430);
|
|
244
|
+
hypeRef.current?.show(pickPhrase(r.currentMultiplier >= 5 ? HYPE_PHRASES.mines.bigWin : HYPE_PHRASES.mines.win), r.currentMultiplier >= 5 ? 'boost' : 'win');
|
|
245
|
+
if (r.currentMultiplier >= 5) sounds.playBigWin();
|
|
246
|
+
if (r.amountWonKobo > 0) onWin(Math.round(r.amountWonKobo / 100));
|
|
247
|
+
} else {
|
|
248
|
+
spawnBurst(gemSparkleAnim, x, y, Math.max(140, tileSize * 2.2));
|
|
249
|
+
sounds.playGemReveal();
|
|
250
|
+
haptics.selection();
|
|
251
|
+
if (r.safeRevealed >= 3 && r.safeRevealed % 2 === 1) {
|
|
252
|
+
hypeRef.current?.show(pickPhrase(HYPE_PHRASES.mines.streak), 'boost');
|
|
253
|
+
sounds.playEncourage();
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
if (!reducedMotion && r.status === 'IN_PROGRESS') {
|
|
257
|
+
setTimeout(() => setBeaverState('idle'), Math.max(0, beaver.digTotalMs - beaver.digRevealMs));
|
|
258
|
+
}
|
|
259
|
+
if (reducedMotion) setBeaverState('idle');
|
|
260
|
+
}, revealDelay);
|
|
261
|
+
}, [round, revealedSet, isBusy, digging, reveal, onWin, onLose, tileCenter, spawnBurst, shake, tileSize, reducedMotion, beaverPos, width]);
|
|
262
|
+
const onCashout = useCallback(async () => {
|
|
263
|
+
if (!round || round.status !== 'IN_PROGRESS' || round.safeRevealed < 1 || isBusy) return;
|
|
264
|
+
const r = await cashout(round.gamePlayId);
|
|
265
|
+
if (!r) return;
|
|
266
|
+
setRound(r);
|
|
267
|
+
if (r.amountWonKobo > 0) {
|
|
268
|
+
spawnBurst(coinBurstAnim, gridWidth / 2, gridWidth / 2, 300);
|
|
269
|
+
shake(0.7);
|
|
270
|
+
sounds.playWinChime();
|
|
271
|
+
haptics.success();
|
|
272
|
+
setBeaverState('digWin');
|
|
273
|
+
coinFlyRef.current?.measureTarget();
|
|
274
|
+
coinFlyRef.current?.fly(width / 2, 430);
|
|
275
|
+
hypeRef.current?.show(pickPhrase(r.currentMultiplier >= 5 ? HYPE_PHRASES.mines.bigWin : HYPE_PHRASES.mines.win), r.currentMultiplier >= 5 ? 'boost' : 'win');
|
|
276
|
+
if (r.currentMultiplier >= 5) sounds.playBigWin();
|
|
277
|
+
onWin(Math.round(r.amountWonKobo / 100));
|
|
278
|
+
}
|
|
279
|
+
}, [round, isBusy, cashout, onWin, spawnBurst, shake, gridWidth, width]);
|
|
280
|
+
const reset = useCallback(() => {
|
|
281
|
+
setRound(null);
|
|
282
|
+
setBeaverState('idle');
|
|
283
|
+
beaverPos.setValue(BEAVER_HOME);
|
|
284
|
+
beaverAtRef.current = {
|
|
285
|
+
...BEAVER_HOME
|
|
286
|
+
};
|
|
287
|
+
}, [beaverPos]);
|
|
288
|
+
const tileState = index => {
|
|
289
|
+
if (inPlay) return revealedSet.has(index) ? 'gem' : 'hidden';
|
|
290
|
+
if (!round) return 'hidden';
|
|
291
|
+
if (mineSet.has(index)) return revealedSet.has(index) ? 'mine' : 'mineDim';
|
|
292
|
+
return revealedSet.has(index) ? 'gem' : 'hidden';
|
|
293
|
+
};
|
|
294
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
295
|
+
style: styles.container,
|
|
296
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
297
|
+
style: styles.header,
|
|
298
|
+
children: [/*#__PURE__*/_jsx(QuitConfirmModal, {
|
|
299
|
+
visible: quitVisible,
|
|
300
|
+
message: t('mines.quit.message'),
|
|
301
|
+
onKeepPlaying: () => setQuitVisible(false),
|
|
302
|
+
onQuit: () => {
|
|
303
|
+
setQuitVisible(false);
|
|
304
|
+
onBack();
|
|
305
|
+
}
|
|
306
|
+
}), /*#__PURE__*/_jsx(MonflowtsPressable, {
|
|
307
|
+
style: styles.circleBtn,
|
|
308
|
+
onPress: handleBack,
|
|
309
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
310
|
+
style: styles.circleBtnText,
|
|
311
|
+
children: '‹'
|
|
312
|
+
})
|
|
313
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
314
|
+
style: styles.titleWrap,
|
|
315
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
316
|
+
style: styles.title,
|
|
317
|
+
children: t('mines.title')
|
|
318
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
319
|
+
style: [styles.modeBadge, demoMode ? styles.modeDemo : styles.modeLive],
|
|
320
|
+
children: demoMode ? t('mines.mode.demo') : t('mines.mode.live')
|
|
321
|
+
})]
|
|
322
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
323
|
+
ref: balancePillRef,
|
|
324
|
+
onLayout: () => coinFlyRef.current?.measureTarget(),
|
|
325
|
+
style: styles.balancePill,
|
|
326
|
+
children: /*#__PURE__*/_jsx(AnimatedAmount, {
|
|
327
|
+
value: displayBalance,
|
|
328
|
+
prefix: `${currency} `,
|
|
329
|
+
style: styles.balanceText
|
|
330
|
+
})
|
|
331
|
+
})]
|
|
332
|
+
}), !round && /*#__PURE__*/_jsx(SideDemoTab, {
|
|
333
|
+
enabled: !!game?.demoConfig?.enabled
|
|
334
|
+
}), /*#__PURE__*/_jsxs(ScrollView, {
|
|
335
|
+
contentContainerStyle: styles.scroll,
|
|
336
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
337
|
+
style: styles.beaverRow,
|
|
338
|
+
children: round && /*#__PURE__*/_jsxs(View, {
|
|
339
|
+
style: styles.statusRow,
|
|
340
|
+
children: [/*#__PURE__*/_jsxs(Animated.View, {
|
|
341
|
+
style: [styles.statusBox, {
|
|
342
|
+
transform: [{
|
|
343
|
+
scale: multScale
|
|
344
|
+
}]
|
|
345
|
+
}],
|
|
346
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
347
|
+
style: styles.statusLabel,
|
|
348
|
+
children: t('mines.multiplier')
|
|
349
|
+
}), /*#__PURE__*/_jsxs(Text, {
|
|
350
|
+
style: styles.statusValue,
|
|
351
|
+
children: [round.currentMultiplier, "x"]
|
|
352
|
+
})]
|
|
353
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
354
|
+
style: styles.statusBox,
|
|
355
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
356
|
+
style: styles.statusLabel,
|
|
357
|
+
children: inPlay ? t('mines.status.cashOut') : round.status === 'CASHED_OUT' ? t('mines.status.won') : t('mines.status.lost')
|
|
358
|
+
}), /*#__PURE__*/_jsx(AnimatedAmount, {
|
|
359
|
+
value: Math.round((inPlay ? round.potentialPayoutKobo : round.amountWonKobo) / 100),
|
|
360
|
+
prefix: `${currency} `,
|
|
361
|
+
style: [styles.statusValue, {
|
|
362
|
+
color: round.status === 'BUST' ? COLORS.lossRed : COLORS.gold
|
|
363
|
+
}]
|
|
364
|
+
})]
|
|
365
|
+
})]
|
|
366
|
+
})
|
|
367
|
+
}), round && /*#__PURE__*/_jsx(ScrollView, {
|
|
368
|
+
horizontal: true,
|
|
369
|
+
showsHorizontalScrollIndicator: false,
|
|
370
|
+
style: styles.ladderScroll,
|
|
371
|
+
contentContainerStyle: styles.ladderRow,
|
|
372
|
+
children: ladder.map((m, i) => {
|
|
373
|
+
const step = i + 1;
|
|
374
|
+
const achieved = step <= round.safeRevealed;
|
|
375
|
+
const current = step === round.safeRevealed;
|
|
376
|
+
return /*#__PURE__*/_jsx(View, {
|
|
377
|
+
style: [styles.ladderChip, achieved && styles.ladderChipDone, current && styles.ladderChipNow],
|
|
378
|
+
children: /*#__PURE__*/_jsxs(Text, {
|
|
379
|
+
style: [styles.ladderText, achieved && styles.ladderTextDone, current && styles.ladderTextNow],
|
|
380
|
+
children: [m, "x"]
|
|
381
|
+
})
|
|
382
|
+
}, i);
|
|
383
|
+
})
|
|
384
|
+
}), /*#__PURE__*/_jsx(Animated.View, {
|
|
385
|
+
style: [styles.siteWrap, shakeStyle],
|
|
386
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
387
|
+
style: [styles.grid, {
|
|
388
|
+
width: gridWidth
|
|
389
|
+
}],
|
|
390
|
+
children: [Array.from({
|
|
391
|
+
length: gridSize
|
|
392
|
+
}).map((_, i) => {
|
|
393
|
+
const state = tileState(i);
|
|
394
|
+
const isDigging = digging === i;
|
|
395
|
+
return /*#__PURE__*/_jsxs(MonflowtsPressable, {
|
|
396
|
+
onPress: () => onTile(i),
|
|
397
|
+
disabled: !inPlay || revealedSet.has(i) || digging >= 0,
|
|
398
|
+
style: [styles.tile, {
|
|
399
|
+
width: tileSize,
|
|
400
|
+
height: tileSize
|
|
401
|
+
}, state === 'hidden' && styles.tileHidden, isDigging && styles.tileDigging, state === 'gem' && styles.tileGem, state === 'mine' && styles.tileMine, state === 'mineDim' && styles.tileMineDim],
|
|
402
|
+
children: [state === 'hidden' && !isDigging && /*#__PURE__*/_jsx(View, {
|
|
403
|
+
style: styles.tileMound
|
|
404
|
+
}), isDigging && /*#__PURE__*/_jsx(View, {
|
|
405
|
+
style: styles.tileHole
|
|
406
|
+
}), state === 'gem' && /*#__PURE__*/_jsx(View, {
|
|
407
|
+
style: styles.gemGlow
|
|
408
|
+
}), state === 'gem' && /*#__PURE__*/_jsx(SvgIcon, {
|
|
409
|
+
name: "gem",
|
|
410
|
+
size: Math.round(tileSize * 0.44),
|
|
411
|
+
color: "#7ff5e8"
|
|
412
|
+
}), (state === 'mine' || state === 'mineDim') && /*#__PURE__*/_jsx(SvgIcon, {
|
|
413
|
+
name: "mine",
|
|
414
|
+
size: Math.round(tileSize * 0.44),
|
|
415
|
+
color: state === 'mine' ? '#ffffff' : 'rgba(255,255,255,0.65)'
|
|
416
|
+
})]
|
|
417
|
+
}, i);
|
|
418
|
+
}), /*#__PURE__*/_jsx(Animated.View, {
|
|
419
|
+
pointerEvents: "none",
|
|
420
|
+
style: [styles.beaverWrap, {
|
|
421
|
+
transform: beaverPos.getTranslateTransform()
|
|
422
|
+
}],
|
|
423
|
+
children: /*#__PURE__*/_jsx(GameCharacter, {
|
|
424
|
+
states: beaverStates,
|
|
425
|
+
state: beaverState,
|
|
426
|
+
size: BEAVER_SIZE,
|
|
427
|
+
loop: LOOP_STATES.has(beaverState),
|
|
428
|
+
speed: LOOP_STATES.has(beaverState) ? 1 : digSpeed
|
|
429
|
+
})
|
|
430
|
+
}), /*#__PURE__*/_jsx(BurstLayer, {
|
|
431
|
+
bursts: bursts,
|
|
432
|
+
onDone: removeBurst
|
|
433
|
+
})]
|
|
434
|
+
})
|
|
435
|
+
}), round && round.status !== 'IN_PROGRESS' && /*#__PURE__*/_jsx(Text, {
|
|
436
|
+
style: styles.fairText,
|
|
437
|
+
children: t('mines.fair', {
|
|
438
|
+
hash: round.serverSeedHash.slice(0, 16),
|
|
439
|
+
nonce: round.nonce
|
|
440
|
+
})
|
|
441
|
+
}), !round && /*#__PURE__*/_jsxs(View, {
|
|
442
|
+
style: styles.betCard,
|
|
443
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
444
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
445
|
+
style: styles.betLabel,
|
|
446
|
+
children: t('mines.betAmount')
|
|
447
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
448
|
+
style: styles.stepperRow,
|
|
449
|
+
children: [/*#__PURE__*/_jsx(MonflowtsPressable, {
|
|
450
|
+
style: styles.stepBtn,
|
|
451
|
+
onPress: () => {
|
|
452
|
+
const i = stakeOptions.indexOf(stake);
|
|
453
|
+
if (i > 0) setStake(stakeOptions[i - 1]);
|
|
454
|
+
haptics.selection();
|
|
455
|
+
},
|
|
456
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
457
|
+
style: styles.stepBtnText,
|
|
458
|
+
children: "\u2212"
|
|
459
|
+
})
|
|
460
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
461
|
+
style: styles.betValue,
|
|
462
|
+
children: formatNumber(stake)
|
|
463
|
+
}), /*#__PURE__*/_jsx(MonflowtsPressable, {
|
|
464
|
+
style: styles.stepBtn,
|
|
465
|
+
onPress: () => {
|
|
466
|
+
const i = stakeOptions.indexOf(stake);
|
|
467
|
+
if (i >= 0 && i < stakeOptions.length - 1) setStake(stakeOptions[i + 1]);
|
|
468
|
+
haptics.selection();
|
|
469
|
+
},
|
|
470
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
471
|
+
style: styles.stepBtnText,
|
|
472
|
+
children: "+"
|
|
473
|
+
})
|
|
474
|
+
})]
|
|
475
|
+
})]
|
|
476
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
477
|
+
style: styles.betRight,
|
|
478
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
479
|
+
style: styles.betLabel,
|
|
480
|
+
children: t('mines.maxWin')
|
|
481
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
482
|
+
style: styles.potentialWin,
|
|
483
|
+
children: formatNumber(Math.floor(stake * maxWinMult))
|
|
484
|
+
})]
|
|
485
|
+
})]
|
|
486
|
+
}), errorRef.current && /*#__PURE__*/_jsx(Text, {
|
|
487
|
+
style: styles.error,
|
|
488
|
+
children: errorRef.current
|
|
489
|
+
})]
|
|
490
|
+
}), /*#__PURE__*/_jsx(CoinFlyOverlay, {
|
|
491
|
+
ref: coinFlyRef,
|
|
492
|
+
targetRef: balancePillRef
|
|
493
|
+
}), /*#__PURE__*/_jsx(HypeCallout, {
|
|
494
|
+
ref: hypeRef,
|
|
495
|
+
style: {
|
|
496
|
+
top: 250
|
|
497
|
+
}
|
|
498
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
499
|
+
style: styles.footer,
|
|
500
|
+
children: [!round && /*#__PURE__*/_jsx(MonflowtsButton, {
|
|
501
|
+
title: t('mines.startFor', {
|
|
502
|
+
currency,
|
|
503
|
+
amount: stake
|
|
504
|
+
}),
|
|
505
|
+
onPress: onStart,
|
|
506
|
+
pulse: true,
|
|
507
|
+
loading: isBusy,
|
|
508
|
+
disabled: isBusy || stake > displayBalance,
|
|
509
|
+
variant: "shine"
|
|
510
|
+
}), inPlay && /*#__PURE__*/_jsx(MonflowtsButton, {
|
|
511
|
+
title: round && round.safeRevealed >= 1 ? t('mines.cashOutAmount', {
|
|
512
|
+
currency,
|
|
513
|
+
amount: formatNumber(Math.round(round.potentialPayoutKobo / 100))
|
|
514
|
+
}) : t('mines.revealToCashOut'),
|
|
515
|
+
onPress: onCashout,
|
|
516
|
+
pulse: !!round && round.safeRevealed >= 2,
|
|
517
|
+
loading: isBusy && digging < 0,
|
|
518
|
+
disabled: isBusy || !round || round.safeRevealed < 1 || digging >= 0,
|
|
519
|
+
variant: round && round.safeRevealed >= 1 ? 'shine' : 'primary'
|
|
520
|
+
}), round && round.status !== 'IN_PROGRESS' && /*#__PURE__*/_jsx(MonflowtsButton, {
|
|
521
|
+
title: t('mines.playAgain'),
|
|
522
|
+
onPress: reset
|
|
523
|
+
})]
|
|
524
|
+
})]
|
|
525
|
+
});
|
|
526
|
+
};
|
|
527
|
+
const styles = StyleSheet.create({
|
|
528
|
+
container: {
|
|
529
|
+
flex: 1,
|
|
530
|
+
backgroundColor: COLORS.backgroundDark
|
|
531
|
+
},
|
|
532
|
+
header: {
|
|
533
|
+
flexDirection: 'row',
|
|
534
|
+
alignItems: 'center',
|
|
535
|
+
justifyContent: 'space-between',
|
|
536
|
+
paddingHorizontal: 16,
|
|
537
|
+
paddingTop: 52,
|
|
538
|
+
paddingBottom: 12
|
|
539
|
+
},
|
|
540
|
+
circleBtn: {
|
|
541
|
+
width: 40,
|
|
542
|
+
height: 40,
|
|
543
|
+
borderRadius: 20,
|
|
544
|
+
backgroundColor: COLORS.white10,
|
|
545
|
+
alignItems: 'center',
|
|
546
|
+
justifyContent: 'center'
|
|
547
|
+
},
|
|
548
|
+
circleBtnText: {
|
|
549
|
+
color: '#fff',
|
|
550
|
+
fontSize: 24,
|
|
551
|
+
marginTop: -2
|
|
552
|
+
},
|
|
553
|
+
titleWrap: {
|
|
554
|
+
flexDirection: 'row',
|
|
555
|
+
alignItems: 'center',
|
|
556
|
+
gap: 8
|
|
557
|
+
},
|
|
558
|
+
title: {
|
|
559
|
+
color: '#fff',
|
|
560
|
+
fontSize: 20,
|
|
561
|
+
fontWeight: '800'
|
|
562
|
+
},
|
|
563
|
+
modeBadge: {
|
|
564
|
+
fontSize: 10,
|
|
565
|
+
fontWeight: '800',
|
|
566
|
+
paddingHorizontal: 6,
|
|
567
|
+
paddingVertical: 2,
|
|
568
|
+
borderRadius: 6,
|
|
569
|
+
overflow: 'hidden'
|
|
570
|
+
},
|
|
571
|
+
modeDemo: {
|
|
572
|
+
backgroundColor: COLORS.gold,
|
|
573
|
+
color: '#000'
|
|
574
|
+
},
|
|
575
|
+
modeLive: {
|
|
576
|
+
backgroundColor: COLORS.winGreen,
|
|
577
|
+
color: '#fff'
|
|
578
|
+
},
|
|
579
|
+
balancePill: {
|
|
580
|
+
backgroundColor: COLORS.white10,
|
|
581
|
+
paddingHorizontal: 12,
|
|
582
|
+
paddingVertical: 6,
|
|
583
|
+
borderRadius: 16
|
|
584
|
+
},
|
|
585
|
+
balanceText: {
|
|
586
|
+
color: COLORS.gold,
|
|
587
|
+
fontWeight: '700',
|
|
588
|
+
fontSize: 13
|
|
589
|
+
},
|
|
590
|
+
scroll: {
|
|
591
|
+
alignItems: 'center',
|
|
592
|
+
paddingBottom: 24
|
|
593
|
+
},
|
|
594
|
+
beaverRow: {
|
|
595
|
+
flexDirection: 'row',
|
|
596
|
+
alignItems: 'center',
|
|
597
|
+
justifyContent: 'center',
|
|
598
|
+
gap: 12,
|
|
599
|
+
marginTop: 4,
|
|
600
|
+
minHeight: 64
|
|
601
|
+
},
|
|
602
|
+
beaverWrap: {
|
|
603
|
+
position: 'absolute',
|
|
604
|
+
left: 0,
|
|
605
|
+
top: 0,
|
|
606
|
+
width: BEAVER_SIZE,
|
|
607
|
+
height: BEAVER_SIZE,
|
|
608
|
+
zIndex: 6
|
|
609
|
+
},
|
|
610
|
+
statusRow: {
|
|
611
|
+
flexDirection: 'row',
|
|
612
|
+
gap: 12
|
|
613
|
+
},
|
|
614
|
+
statusBox: {
|
|
615
|
+
backgroundColor: COLORS.cardDark,
|
|
616
|
+
paddingVertical: 10,
|
|
617
|
+
paddingHorizontal: 20,
|
|
618
|
+
borderRadius: 16,
|
|
619
|
+
alignItems: 'center',
|
|
620
|
+
borderWidth: 1,
|
|
621
|
+
borderColor: COLORS.white05
|
|
622
|
+
},
|
|
623
|
+
statusLabel: {
|
|
624
|
+
color: COLORS.slateLight,
|
|
625
|
+
fontSize: 11,
|
|
626
|
+
textTransform: 'uppercase',
|
|
627
|
+
fontWeight: '700'
|
|
628
|
+
},
|
|
629
|
+
statusValue: {
|
|
630
|
+
color: '#fff',
|
|
631
|
+
fontSize: 20,
|
|
632
|
+
fontWeight: '900',
|
|
633
|
+
marginTop: 2
|
|
634
|
+
},
|
|
635
|
+
ladderScroll: {
|
|
636
|
+
maxHeight: 40,
|
|
637
|
+
marginTop: 6
|
|
638
|
+
},
|
|
639
|
+
ladderRow: {
|
|
640
|
+
flexDirection: 'row',
|
|
641
|
+
gap: 8,
|
|
642
|
+
paddingHorizontal: 20,
|
|
643
|
+
alignItems: 'center'
|
|
644
|
+
},
|
|
645
|
+
ladderChip: {
|
|
646
|
+
paddingHorizontal: 12,
|
|
647
|
+
paddingVertical: 6,
|
|
648
|
+
borderRadius: 12,
|
|
649
|
+
backgroundColor: COLORS.cardDark,
|
|
650
|
+
borderWidth: 1,
|
|
651
|
+
borderColor: COLORS.white05
|
|
652
|
+
},
|
|
653
|
+
ladderChipDone: {
|
|
654
|
+
backgroundColor: 'rgba(34,197,94,0.16)',
|
|
655
|
+
borderColor: COLORS.winGreen
|
|
656
|
+
},
|
|
657
|
+
ladderChipNow: {
|
|
658
|
+
backgroundColor: 'rgba(255,215,0,0.18)',
|
|
659
|
+
borderColor: COLORS.gold
|
|
660
|
+
},
|
|
661
|
+
ladderText: {
|
|
662
|
+
color: COLORS.slateLight,
|
|
663
|
+
fontSize: 12,
|
|
664
|
+
fontWeight: '800'
|
|
665
|
+
},
|
|
666
|
+
ladderTextDone: {
|
|
667
|
+
color: COLORS.winGreen
|
|
668
|
+
},
|
|
669
|
+
ladderTextNow: {
|
|
670
|
+
color: COLORS.gold
|
|
671
|
+
},
|
|
672
|
+
siteWrap: {
|
|
673
|
+
marginTop: 8,
|
|
674
|
+
padding: 12,
|
|
675
|
+
borderRadius: 20,
|
|
676
|
+
backgroundColor: '#17100a',
|
|
677
|
+
borderWidth: 1,
|
|
678
|
+
borderColor: 'rgba(249,115,22,0.15)'
|
|
679
|
+
},
|
|
680
|
+
grid: {
|
|
681
|
+
flexDirection: 'row',
|
|
682
|
+
flexWrap: 'wrap',
|
|
683
|
+
gap: 8,
|
|
684
|
+
justifyContent: 'center'
|
|
685
|
+
},
|
|
686
|
+
tile: {
|
|
687
|
+
borderRadius: 12,
|
|
688
|
+
alignItems: 'center',
|
|
689
|
+
justifyContent: 'center',
|
|
690
|
+
overflow: 'hidden'
|
|
691
|
+
},
|
|
692
|
+
tileHidden: {
|
|
693
|
+
backgroundColor: '#8a5f3a',
|
|
694
|
+
borderTopWidth: 2,
|
|
695
|
+
borderTopColor: '#b98955',
|
|
696
|
+
borderBottomWidth: 3,
|
|
697
|
+
borderBottomColor: '#5a3c22'
|
|
698
|
+
},
|
|
699
|
+
tileMound: {
|
|
700
|
+
position: 'absolute',
|
|
701
|
+
alignSelf: 'center',
|
|
702
|
+
width: '56%',
|
|
703
|
+
height: '34%',
|
|
704
|
+
borderRadius: 999,
|
|
705
|
+
backgroundColor: '#6d4a2b'
|
|
706
|
+
},
|
|
707
|
+
tileDigging: {
|
|
708
|
+
backgroundColor: '#4a2f1b'
|
|
709
|
+
},
|
|
710
|
+
tileHole: {
|
|
711
|
+
width: '62%',
|
|
712
|
+
height: '62%',
|
|
713
|
+
borderRadius: 999,
|
|
714
|
+
backgroundColor: '#170e07',
|
|
715
|
+
borderWidth: 2,
|
|
716
|
+
borderColor: 'rgba(90,60,30,0.9)'
|
|
717
|
+
},
|
|
718
|
+
tileGem: {
|
|
719
|
+
backgroundColor: '#1c1209',
|
|
720
|
+
borderWidth: 1,
|
|
721
|
+
borderColor: 'rgba(19,230,204,0.6)'
|
|
722
|
+
},
|
|
723
|
+
gemGlow: {
|
|
724
|
+
position: 'absolute',
|
|
725
|
+
width: '80%',
|
|
726
|
+
height: '80%',
|
|
727
|
+
borderRadius: 999,
|
|
728
|
+
backgroundColor: 'rgba(19,230,204,0.14)'
|
|
729
|
+
},
|
|
730
|
+
tileMine: {
|
|
731
|
+
backgroundColor: COLORS.lossRed
|
|
732
|
+
},
|
|
733
|
+
tileMineDim: {
|
|
734
|
+
backgroundColor: 'rgba(239,68,68,0.35)'
|
|
735
|
+
},
|
|
736
|
+
betCard: {
|
|
737
|
+
flexDirection: 'row',
|
|
738
|
+
alignItems: 'center',
|
|
739
|
+
justifyContent: 'space-between',
|
|
740
|
+
alignSelf: 'center',
|
|
741
|
+
width: '90%',
|
|
742
|
+
marginTop: 18,
|
|
743
|
+
paddingVertical: 14,
|
|
744
|
+
paddingHorizontal: 18,
|
|
745
|
+
borderRadius: 18,
|
|
746
|
+
backgroundColor: COLORS.cardDark,
|
|
747
|
+
borderWidth: 1,
|
|
748
|
+
borderColor: COLORS.white05
|
|
749
|
+
},
|
|
750
|
+
betLabel: {
|
|
751
|
+
color: COLORS.slateLight,
|
|
752
|
+
fontSize: 11,
|
|
753
|
+
fontWeight: '700',
|
|
754
|
+
textTransform: 'uppercase',
|
|
755
|
+
letterSpacing: 0.5
|
|
756
|
+
},
|
|
757
|
+
stepperRow: {
|
|
758
|
+
flexDirection: 'row',
|
|
759
|
+
alignItems: 'center',
|
|
760
|
+
gap: 12,
|
|
761
|
+
marginTop: 8
|
|
762
|
+
},
|
|
763
|
+
stepBtn: {
|
|
764
|
+
width: 36,
|
|
765
|
+
height: 36,
|
|
766
|
+
borderRadius: 11,
|
|
767
|
+
backgroundColor: COLORS.white10,
|
|
768
|
+
alignItems: 'center',
|
|
769
|
+
justifyContent: 'center'
|
|
770
|
+
},
|
|
771
|
+
stepBtnText: {
|
|
772
|
+
color: '#fff',
|
|
773
|
+
fontSize: 20,
|
|
774
|
+
fontWeight: '800',
|
|
775
|
+
marginTop: -2
|
|
776
|
+
},
|
|
777
|
+
betValue: {
|
|
778
|
+
color: COLORS.gold,
|
|
779
|
+
fontSize: 20,
|
|
780
|
+
fontWeight: '900',
|
|
781
|
+
minWidth: 64,
|
|
782
|
+
textAlign: 'center'
|
|
783
|
+
},
|
|
784
|
+
betRight: {
|
|
785
|
+
alignItems: 'flex-end'
|
|
786
|
+
},
|
|
787
|
+
potentialWin: {
|
|
788
|
+
color: COLORS.winGreen,
|
|
789
|
+
fontSize: 20,
|
|
790
|
+
fontWeight: '900',
|
|
791
|
+
marginTop: 8
|
|
792
|
+
},
|
|
793
|
+
fairText: {
|
|
794
|
+
color: COLORS.slateLight,
|
|
795
|
+
fontSize: 10,
|
|
796
|
+
marginTop: 12
|
|
797
|
+
},
|
|
798
|
+
selectorLabel: {
|
|
799
|
+
color: COLORS.slateLight,
|
|
800
|
+
alignSelf: 'flex-start',
|
|
801
|
+
marginLeft: 24,
|
|
802
|
+
marginTop: 16,
|
|
803
|
+
marginBottom: 6,
|
|
804
|
+
fontSize: 12,
|
|
805
|
+
fontWeight: '700',
|
|
806
|
+
textTransform: 'uppercase'
|
|
807
|
+
},
|
|
808
|
+
chipRow: {
|
|
809
|
+
flexDirection: 'row',
|
|
810
|
+
flexWrap: 'wrap',
|
|
811
|
+
paddingHorizontal: 18,
|
|
812
|
+
gap: 8
|
|
813
|
+
},
|
|
814
|
+
error: {
|
|
815
|
+
color: COLORS.lossRed,
|
|
816
|
+
marginTop: 12,
|
|
817
|
+
paddingHorizontal: 24,
|
|
818
|
+
textAlign: 'center'
|
|
819
|
+
},
|
|
820
|
+
footer: {
|
|
821
|
+
padding: 16,
|
|
822
|
+
paddingBottom: 28
|
|
823
|
+
}
|
|
824
|
+
});
|
|
825
|
+
export default Minefield;
|
|
826
|
+
//# sourceMappingURL=Minefield.js.map
|