react-native-monflowts 0.5.0 → 0.5.2
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/README.md +37 -3
- package/android/build.gradle +1 -0
- package/android/src/main/java/com/monflowts/MonflowtsNavigationModule.kt +43 -0
- package/android/src/main/java/com/monflowts/MonflowtsPackage.kt +10 -1
- package/android/src/main/java/com/monflowts/MonflowtsStackView.kt +443 -0
- package/android/src/main/java/com/monflowts/MonflowtsStackViewManager.kt +70 -0
- package/ios/MonflowtsNavigationBridge.m +10 -0
- package/ios/MonflowtsNavigationModule.swift +28 -0
- package/ios/MonflowtsStackBridge.m +17 -0
- package/ios/MonflowtsStackUIView.swift +409 -0
- package/ios/MonflowtsStackViewManager.swift +14 -0
- package/lib/module/HubContent.js +259 -219
- package/lib/module/HubContent.js.map +1 -1
- package/lib/module/MonflowtsHub.js +42 -3
- package/lib/module/MonflowtsHub.js.map +1 -1
- package/lib/module/api/mutations.js +4 -0
- package/lib/module/api/mutations.js.map +1 -1
- package/lib/module/api/queries.js +9 -3
- package/lib/module/api/queries.js.map +1 -1
- package/lib/module/components/AbandonPolicyNotice.js +3 -2
- package/lib/module/components/AbandonPolicyNotice.js.map +1 -1
- package/lib/module/components/CoinFlyOverlay.js +27 -20
- package/lib/module/components/CoinFlyOverlay.js.map +1 -1
- package/lib/module/components/GameRulesModal.js +8 -6
- package/lib/module/components/GameRulesModal.js.map +1 -1
- package/lib/module/components/HypeCallout.js +5 -5
- package/lib/module/components/HypeCallout.js.map +1 -1
- package/lib/module/components/InsufficientFundsOverlay.js +2 -1
- package/lib/module/components/InsufficientFundsOverlay.js.map +1 -1
- package/lib/module/components/JackpotNearMiss.js +3 -2
- package/lib/module/components/JackpotNearMiss.js.map +1 -1
- package/lib/module/components/JackpotTeaser.js +2 -1
- package/lib/module/components/JackpotTeaser.js.map +1 -1
- package/lib/module/components/QuitConfirmModal.js +3 -2
- package/lib/module/components/QuitConfirmModal.js.map +1 -1
- package/lib/module/components/SessionTimer.js +3 -2
- package/lib/module/components/SessionTimer.js.map +1 -1
- package/lib/module/components/ShopArtView.js +105 -0
- package/lib/module/components/ShopArtView.js.map +1 -0
- package/lib/module/components/SideDemoTab.js +20 -2
- package/lib/module/components/SideDemoTab.js.map +1 -1
- package/lib/module/components/StakeInput.js +3 -2
- package/lib/module/components/StakeInput.js.map +1 -1
- package/lib/module/content.js.map +1 -1
- package/lib/module/hooks/useAvailableGames.js +7 -2
- package/lib/module/hooks/useAvailableGames.js.map +1 -1
- package/lib/module/hooks/useLeaderboard.js.map +1 -1
- package/lib/module/hooks/usePlayGame.js +11 -5
- package/lib/module/hooks/usePlayGame.js.map +1 -1
- package/lib/module/hooks/useRaffleDrawState.js +4 -1
- package/lib/module/hooks/useRaffleDrawState.js.map +1 -1
- package/lib/module/index.js +15 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/navigation/NativeStackView.js +5 -0
- package/lib/module/navigation/NativeStackView.js.map +1 -0
- package/lib/module/navigation/Navigator.js +250 -0
- package/lib/module/navigation/Navigator.js.map +1 -0
- package/lib/module/navigation/engine.js +466 -0
- package/lib/module/navigation/engine.js.map +1 -0
- package/lib/module/navigation/hooks.js +29 -0
- package/lib/module/navigation/hooks.js.map +1 -0
- package/lib/module/navigation/index.js +7 -0
- package/lib/module/navigation/index.js.map +1 -0
- package/lib/module/navigation/routes.js +111 -0
- package/lib/module/navigation/routes.js.map +1 -0
- package/lib/module/theme.js +2 -2
- package/lib/module/theme.js.map +1 -1
- package/lib/module/utils/scale.js +35 -0
- package/lib/module/utils/scale.js.map +1 -0
- package/lib/module/views/DepositSelect.js +3 -2
- package/lib/module/views/DepositSelect.js.map +1 -1
- package/lib/module/views/DiceBattle.js +207 -125
- package/lib/module/views/DiceBattle.js.map +1 -1
- package/lib/module/views/DiceLobby.js +97 -30
- package/lib/module/views/DiceLobby.js.map +1 -1
- package/lib/module/views/FortuneWheel.js +417 -271
- package/lib/module/views/FortuneWheel.js.map +1 -1
- package/lib/module/views/Freefall.js +147 -88
- package/lib/module/views/Freefall.js.map +1 -1
- package/lib/module/views/History.js +3 -2
- package/lib/module/views/History.js.map +1 -1
- package/lib/module/views/Home.js +1026 -401
- package/lib/module/views/Home.js.map +1 -1
- package/lib/module/views/Jetstream.js +43 -19
- package/lib/module/views/Jetstream.js.map +1 -1
- package/lib/module/views/Leaderboard.js +98 -89
- package/lib/module/views/Leaderboard.js.map +1 -1
- package/lib/module/views/MillionaireHunter.js +743 -569
- package/lib/module/views/MillionaireHunter.js.map +1 -1
- package/lib/module/views/Minefield.js +40 -18
- package/lib/module/views/Minefield.js.map +1 -1
- package/lib/module/views/PaymentWebView.js +4 -3
- package/lib/module/views/PaymentWebView.js.map +1 -1
- package/lib/module/views/PlayerCard.js +3 -2
- package/lib/module/views/PlayerCard.js.map +1 -1
- package/lib/module/views/Profile.js +3 -2
- package/lib/module/views/Profile.js.map +1 -1
- package/lib/module/views/RaffleDraw.js +16 -6
- package/lib/module/views/RaffleDraw.js.map +1 -1
- package/lib/module/views/RevealWin.js +152 -25
- package/lib/module/views/RevealWin.js.map +1 -1
- package/lib/module/views/Splash.js +17 -9
- package/lib/module/views/Splash.js.map +1 -1
- package/lib/module/views/Success.js +5 -2
- package/lib/module/views/Success.js.map +1 -1
- package/lib/module/views/TicketShop.js +1067 -236
- package/lib/module/views/TicketShop.js.map +1 -1
- package/lib/module/views/TriviaLobby.js +43 -6
- package/lib/module/views/TriviaLobby.js.map +1 -1
- package/lib/module/views/TriviaMaster.js +23 -18
- package/lib/module/views/TriviaMaster.js.map +1 -1
- package/lib/module/views/Wallet.js +2 -1
- package/lib/module/views/Wallet.js.map +1 -1
- package/lib/module/views/WithdrawFlow.js +3 -2
- package/lib/module/views/WithdrawFlow.js.map +1 -1
- package/lib/module/views/diceDuel.js +44 -0
- package/lib/module/views/diceDuel.js.map +1 -0
- package/lib/module/views/freefallDrop.js +66 -0
- package/lib/module/views/freefallDrop.js.map +1 -0
- package/lib/module/views/homeLayout.js +47 -0
- package/lib/module/views/homeLayout.js.map +1 -0
- package/lib/module/views/launchFeatured.js +43 -0
- package/lib/module/views/launchFeatured.js.map +1 -0
- package/lib/module/views/leaderboardPhase.js +52 -0
- package/lib/module/views/leaderboardPhase.js.map +1 -0
- package/lib/module/views/lobbyKit.js +224 -0
- package/lib/module/views/lobbyKit.js.map +1 -0
- package/lib/module/views/raffleContent.js +11 -0
- package/lib/module/views/raffleContent.js.map +1 -0
- package/lib/module/views/rafflePhase.js +15 -0
- package/lib/module/views/rafflePhase.js.map +1 -0
- package/lib/module/views/revealWinHelpers.js +19 -0
- package/lib/module/views/revealWinHelpers.js.map +1 -1
- package/lib/module/views/shopArtMotion.js +25 -0
- package/lib/module/views/shopArtMotion.js.map +1 -0
- package/lib/module/views/ticketBundlePresets.js +15 -12
- package/lib/module/views/ticketBundlePresets.js.map +1 -1
- package/lib/module/views/ticketShopArt.js +391 -0
- package/lib/module/views/ticketShopArt.js.map +1 -0
- package/lib/module/views/treasureHunt.js +81 -0
- package/lib/module/views/treasureHunt.js.map +1 -0
- package/lib/module/views/wheelLayout.js +47 -0
- package/lib/module/views/wheelLayout.js.map +1 -0
- package/lib/typescript/src/HubContent.d.ts.map +1 -1
- package/lib/typescript/src/MonflowtsHub.d.ts.map +1 -1
- package/lib/typescript/src/api/gameTypes.d.ts +18 -2
- package/lib/typescript/src/api/gameTypes.d.ts.map +1 -1
- package/lib/typescript/src/api/mutations.d.ts.map +1 -1
- package/lib/typescript/src/api/queries.d.ts.map +1 -1
- package/lib/typescript/src/api/sdkTypes.d.ts +3 -0
- package/lib/typescript/src/api/sdkTypes.d.ts.map +1 -1
- package/lib/typescript/src/components/AbandonPolicyNotice.d.ts.map +1 -1
- package/lib/typescript/src/components/CoinFlyOverlay.d.ts.map +1 -1
- package/lib/typescript/src/components/GameRulesModal.d.ts +1 -0
- package/lib/typescript/src/components/GameRulesModal.d.ts.map +1 -1
- package/lib/typescript/src/components/HypeCallout.d.ts.map +1 -1
- package/lib/typescript/src/components/InsufficientFundsOverlay.d.ts.map +1 -1
- package/lib/typescript/src/components/JackpotNearMiss.d.ts.map +1 -1
- package/lib/typescript/src/components/JackpotTeaser.d.ts.map +1 -1
- package/lib/typescript/src/components/QuitConfirmModal.d.ts.map +1 -1
- package/lib/typescript/src/components/SessionTimer.d.ts.map +1 -1
- package/lib/typescript/src/components/ShopArtView.d.ts +11 -0
- package/lib/typescript/src/components/ShopArtView.d.ts.map +1 -0
- package/lib/typescript/src/components/SideDemoTab.d.ts +1 -0
- package/lib/typescript/src/components/SideDemoTab.d.ts.map +1 -1
- package/lib/typescript/src/components/StakeInput.d.ts.map +1 -1
- package/lib/typescript/src/content.d.ts +1 -0
- package/lib/typescript/src/content.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useAvailableGames.d.ts +3 -0
- package/lib/typescript/src/hooks/useAvailableGames.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useLeaderboard.d.ts +4 -0
- package/lib/typescript/src/hooks/useLeaderboard.d.ts.map +1 -1
- package/lib/typescript/src/hooks/usePlayGame.d.ts +1 -1
- package/lib/typescript/src/hooks/usePlayGame.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useRaffleDrawState.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +16 -0
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/navigation/NativeStackView.d.ts +41 -0
- package/lib/typescript/src/navigation/NativeStackView.d.ts.map +1 -0
- package/lib/typescript/src/navigation/Navigator.d.ts +13 -0
- package/lib/typescript/src/navigation/Navigator.d.ts.map +1 -0
- package/lib/typescript/src/navigation/engine.d.ts +69 -0
- package/lib/typescript/src/navigation/engine.d.ts.map +1 -0
- package/lib/typescript/src/navigation/hooks.d.ts +6 -0
- package/lib/typescript/src/navigation/hooks.d.ts.map +1 -0
- package/lib/typescript/src/navigation/index.d.ts +7 -0
- package/lib/typescript/src/navigation/index.d.ts.map +1 -0
- package/lib/typescript/src/navigation/routes.d.ts +80 -0
- package/lib/typescript/src/navigation/routes.d.ts.map +1 -0
- package/lib/typescript/src/types.d.ts +0 -9
- package/lib/typescript/src/types.d.ts.map +1 -1
- package/lib/typescript/src/utils/scale.d.ts +12 -0
- package/lib/typescript/src/utils/scale.d.ts.map +1 -0
- package/lib/typescript/src/views/DiceBattle.d.ts.map +1 -1
- package/lib/typescript/src/views/DiceLobby.d.ts.map +1 -1
- package/lib/typescript/src/views/FortuneWheel.d.ts.map +1 -1
- package/lib/typescript/src/views/Freefall.d.ts.map +1 -1
- package/lib/typescript/src/views/History.d.ts.map +1 -1
- package/lib/typescript/src/views/Home.d.ts +2 -2
- package/lib/typescript/src/views/Home.d.ts.map +1 -1
- package/lib/typescript/src/views/Jetstream.d.ts.map +1 -1
- package/lib/typescript/src/views/Leaderboard.d.ts.map +1 -1
- package/lib/typescript/src/views/MillionaireHunter.d.ts.map +1 -1
- package/lib/typescript/src/views/Minefield.d.ts.map +1 -1
- package/lib/typescript/src/views/PlayerCard.d.ts.map +1 -1
- package/lib/typescript/src/views/Profile.d.ts.map +1 -1
- package/lib/typescript/src/views/RaffleDraw.d.ts +2 -1
- package/lib/typescript/src/views/RaffleDraw.d.ts.map +1 -1
- package/lib/typescript/src/views/RevealWin.d.ts.map +1 -1
- package/lib/typescript/src/views/Splash.d.ts.map +1 -1
- package/lib/typescript/src/views/Success.d.ts.map +1 -1
- package/lib/typescript/src/views/TicketShop.d.ts +1 -0
- package/lib/typescript/src/views/TicketShop.d.ts.map +1 -1
- package/lib/typescript/src/views/TriviaLobby.d.ts.map +1 -1
- package/lib/typescript/src/views/TriviaMaster.d.ts.map +1 -1
- package/lib/typescript/src/views/Wallet.d.ts.map +1 -1
- package/lib/typescript/src/views/diceDuel.d.ts +22 -0
- package/lib/typescript/src/views/diceDuel.d.ts.map +1 -0
- package/lib/typescript/src/views/freefallDrop.d.ts +19 -0
- package/lib/typescript/src/views/freefallDrop.d.ts.map +1 -0
- package/lib/typescript/src/views/homeLayout.d.ts +15 -0
- package/lib/typescript/src/views/homeLayout.d.ts.map +1 -0
- package/lib/typescript/src/views/launchFeatured.d.ts +2 -0
- package/lib/typescript/src/views/launchFeatured.d.ts.map +1 -0
- package/lib/typescript/src/views/leaderboardPhase.d.ts +6 -0
- package/lib/typescript/src/views/leaderboardPhase.d.ts.map +1 -0
- package/lib/typescript/src/views/lobbyKit.d.ts +45 -0
- package/lib/typescript/src/views/lobbyKit.d.ts.map +1 -0
- package/lib/typescript/src/views/raffleContent.d.ts +3 -0
- package/lib/typescript/src/views/raffleContent.d.ts.map +1 -0
- package/lib/typescript/src/views/rafflePhase.d.ts +9 -0
- package/lib/typescript/src/views/rafflePhase.d.ts.map +1 -0
- package/lib/typescript/src/views/revealWinHelpers.d.ts +9 -0
- package/lib/typescript/src/views/revealWinHelpers.d.ts.map +1 -1
- package/lib/typescript/src/views/shopArtMotion.d.ts +13 -0
- package/lib/typescript/src/views/shopArtMotion.d.ts.map +1 -0
- package/lib/typescript/src/views/ticketBundlePresets.d.ts +3 -17
- package/lib/typescript/src/views/ticketBundlePresets.d.ts.map +1 -1
- package/lib/typescript/src/views/ticketShopArt.d.ts +27 -0
- package/lib/typescript/src/views/ticketShopArt.d.ts.map +1 -0
- package/lib/typescript/src/views/treasureHunt.d.ts +29 -0
- package/lib/typescript/src/views/treasureHunt.d.ts.map +1 -0
- package/lib/typescript/src/views/wheelLayout.d.ts +30 -0
- package/lib/typescript/src/views/wheelLayout.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -1,38 +1,408 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import React, {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import React, { useMemo, useState } from 'react';
|
|
4
|
+
import { ActivityIndicator, Alert, ScrollView, StyleSheet, Text, View } from 'react-native';
|
|
5
|
+
import { scaledStyles } from "../utils/scale.js";
|
|
6
6
|
import { sounds } from "../SoundManager.js";
|
|
7
|
-
import HypeCallout from "../components/HypeCallout.js";
|
|
8
|
-
import { HYPE_PHRASES, pickPhrase } from "../effects/hypePhrases.js";
|
|
9
7
|
import SvgIcon from "../Icons.js";
|
|
10
|
-
import MonflowtsButton from "../components/MonflowtsButton.js";
|
|
11
8
|
import MonflowtsPressable from "../components/MonflowtsPressable.js";
|
|
12
|
-
import
|
|
9
|
+
import ShopArtView from "../components/ShopArtView.js";
|
|
10
|
+
import SideDemoTab from "../components/SideDemoTab.js";
|
|
11
|
+
import InsufficientFundsOverlay from "../components/InsufficientFundsOverlay.js";
|
|
12
|
+
import GameRulesModal from "../components/GameRulesModal.js";
|
|
13
|
+
import { gameContent } from "../content.js";
|
|
13
14
|
import { useRafflePurchase } from "../hooks/usePlayGame.js";
|
|
14
15
|
import { useCurrency } from "../hooks/useCurrency.js";
|
|
15
|
-
import
|
|
16
|
-
import {
|
|
16
|
+
import { useRaffleDrawState } from "../hooks/useRaffleDrawState.js";
|
|
17
|
+
import { useResponsive } from "../hooks/useResponsive.js";
|
|
18
|
+
import { useBackGuard } from "../navigation/hooks.js";
|
|
19
|
+
import { useGameStore } from "../stores/gameStore.js";
|
|
20
|
+
import { t, formatNumber, errorText, useI18nStore } from "../i18n.js";
|
|
21
|
+
import { raffleRulesParams } from "./raffleContent.js";
|
|
22
|
+
import { PACK_BANDS, resolveBundleArt } from "./ticketBundlePresets.js";
|
|
23
|
+
import { JACKPOT_TICKET_ART, TICKETS_SECURED_ART } from "./ticketShopArt.js";
|
|
24
|
+
import { LOBBY_WIDE_MIN_WIDTH, drawCountdown, lobbyCardWidth } from "./homeLayout.js";
|
|
25
|
+
import { Countdown, LOBBY, Notch, Perforation, Sunburst, useNow } from "./lobbyKit.js";
|
|
17
26
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
27
|
+
const BACK_PATH = 'M15 18l-6-6 6-6';
|
|
28
|
+
const HELP_PATH = 'M9.1 9a3 3 0 0 1 5.8 1c0 2-3 3-3 3M12 17h.01';
|
|
29
|
+
const CLOSE_PATH = 'M18 6L6 18M6 6l12 12';
|
|
30
|
+
const CHECK_PATH = 'M20 6L9 17l-5-5';
|
|
31
|
+
const TICKET_PATH = 'M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2ZM13 5v2M13 11v2M13 17v2';
|
|
32
|
+
const HERO_FALLBACK_BAND = '#4526A7';
|
|
33
|
+
const SECURED_RAYS = '#8C6EFF';
|
|
34
|
+
const GRID_GAP = 16;
|
|
35
|
+
const WIDE_PADDING = 32;
|
|
36
|
+
const ticketCount = count => t(count === 1 ? 'raffle.ticketCount_one' : 'raffle.ticketCount_other', {
|
|
37
|
+
count: formatNumber(count)
|
|
38
|
+
});
|
|
39
|
+
const RoundButton = ({
|
|
40
|
+
d,
|
|
41
|
+
label,
|
|
42
|
+
onPress,
|
|
43
|
+
wide,
|
|
44
|
+
mirror
|
|
45
|
+
}) => /*#__PURE__*/_jsx(MonflowtsPressable, {
|
|
46
|
+
style: [styles.round, wide && styles.roundWide],
|
|
47
|
+
onPress: onPress,
|
|
48
|
+
accessibilityRole: "button",
|
|
49
|
+
accessibilityLabel: label,
|
|
50
|
+
children: /*#__PURE__*/_jsx(SvgIcon, {
|
|
51
|
+
name: "",
|
|
52
|
+
d: d,
|
|
53
|
+
stroked: true,
|
|
54
|
+
size: wide ? 24 : 22,
|
|
55
|
+
strokeWidth: 2.4,
|
|
56
|
+
color: LOBBY.text,
|
|
57
|
+
style: mirror ? styles.mirror : undefined
|
|
58
|
+
})
|
|
59
|
+
});
|
|
60
|
+
const Price = ({
|
|
61
|
+
value,
|
|
62
|
+
currency,
|
|
63
|
+
wide
|
|
64
|
+
}) => /*#__PURE__*/_jsxs(View, {
|
|
65
|
+
style: styles.price,
|
|
66
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
67
|
+
style: [styles.priceValue, wide && styles.priceValueWide],
|
|
68
|
+
numberOfLines: 1,
|
|
69
|
+
children: formatNumber(value)
|
|
70
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
71
|
+
style: [styles.priceUnit, wide && styles.priceUnitWide],
|
|
72
|
+
children: currency
|
|
73
|
+
})]
|
|
74
|
+
});
|
|
75
|
+
const PackCard = ({
|
|
76
|
+
pack,
|
|
77
|
+
currency,
|
|
78
|
+
costPerTicket,
|
|
79
|
+
wide,
|
|
80
|
+
cardWidth,
|
|
81
|
+
buying,
|
|
82
|
+
disabled,
|
|
83
|
+
onBuy
|
|
84
|
+
}) => {
|
|
85
|
+
const meta = /*#__PURE__*/_jsxs(View, {
|
|
86
|
+
style: styles.meta,
|
|
87
|
+
children: [/*#__PURE__*/_jsx(SvgIcon, {
|
|
88
|
+
name: "",
|
|
89
|
+
d: TICKET_PATH,
|
|
90
|
+
stroked: true,
|
|
91
|
+
size: 16,
|
|
92
|
+
strokeWidth: 2.2,
|
|
93
|
+
color: LOBBY.gold
|
|
94
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
95
|
+
style: [styles.metaText, wide && styles.metaTextWide],
|
|
96
|
+
numberOfLines: 2,
|
|
97
|
+
children: `${ticketCount(pack.tickets)} · ${t('ticketShop.perTicket', {
|
|
98
|
+
price: formatNumber(costPerTicket),
|
|
99
|
+
currency
|
|
100
|
+
})}`
|
|
101
|
+
})]
|
|
102
|
+
});
|
|
103
|
+
const buy = /*#__PURE__*/_jsx(MonflowtsPressable, {
|
|
104
|
+
style: [styles.buy, wide && styles.buyWide],
|
|
105
|
+
onPress: () => onBuy(pack),
|
|
106
|
+
disabled: disabled,
|
|
107
|
+
accessibilityRole: "button",
|
|
108
|
+
accessibilityLabel: t('ticketShop.buyPackA11y', {
|
|
109
|
+
name: pack.name,
|
|
110
|
+
price: formatNumber(pack.price),
|
|
111
|
+
currency
|
|
112
|
+
}),
|
|
113
|
+
children: buying ? /*#__PURE__*/_jsx(ActivityIndicator, {
|
|
114
|
+
size: "small",
|
|
115
|
+
color: LOBBY.goldInk
|
|
116
|
+
}) : /*#__PURE__*/_jsx(Text, {
|
|
117
|
+
style: [styles.buyText, wide && styles.buyTextWide],
|
|
118
|
+
children: t('ticketShop.buy')
|
|
119
|
+
})
|
|
120
|
+
});
|
|
121
|
+
if (wide) {
|
|
122
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
123
|
+
style: [styles.packCard, {
|
|
124
|
+
width: cardWidth
|
|
125
|
+
}],
|
|
126
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
127
|
+
style: [styles.packArtTop, {
|
|
128
|
+
backgroundColor: pack.band
|
|
129
|
+
}],
|
|
130
|
+
children: /*#__PURE__*/_jsx(ShopArtView, {
|
|
131
|
+
art: pack.art,
|
|
132
|
+
width: Math.min(220, cardWidth - 4)
|
|
133
|
+
})
|
|
134
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
135
|
+
style: styles.packCardBody,
|
|
136
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
137
|
+
style: styles.packHeadingWide,
|
|
138
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
139
|
+
style: styles.packNameWide,
|
|
140
|
+
numberOfLines: 1,
|
|
141
|
+
children: pack.name
|
|
142
|
+
}), meta]
|
|
143
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
144
|
+
style: styles.packCardFooter,
|
|
145
|
+
children: [/*#__PURE__*/_jsx(Price, {
|
|
146
|
+
value: pack.price,
|
|
147
|
+
currency: currency,
|
|
148
|
+
wide: true
|
|
149
|
+
}), buy]
|
|
150
|
+
})]
|
|
151
|
+
}), /*#__PURE__*/_jsx(Perforation, {
|
|
152
|
+
style: {
|
|
153
|
+
position: 'absolute',
|
|
154
|
+
left: 22,
|
|
155
|
+
right: 22,
|
|
156
|
+
top: 227,
|
|
157
|
+
height: 6
|
|
158
|
+
}
|
|
159
|
+
}), /*#__PURE__*/_jsx(Notch, {
|
|
160
|
+
size: 28,
|
|
161
|
+
style: {
|
|
162
|
+
left: -14,
|
|
163
|
+
top: 216
|
|
164
|
+
}
|
|
165
|
+
}), /*#__PURE__*/_jsx(Notch, {
|
|
166
|
+
size: 28,
|
|
167
|
+
style: {
|
|
168
|
+
right: -14,
|
|
169
|
+
top: 216
|
|
170
|
+
}
|
|
171
|
+
})]
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
175
|
+
style: styles.packRow,
|
|
176
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
177
|
+
style: [styles.packArtSide, {
|
|
178
|
+
backgroundColor: pack.band
|
|
179
|
+
}],
|
|
180
|
+
children: /*#__PURE__*/_jsx(ShopArtView, {
|
|
181
|
+
art: pack.art,
|
|
182
|
+
width: 112
|
|
183
|
+
})
|
|
184
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
185
|
+
style: styles.packRowBody,
|
|
186
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
187
|
+
style: styles.packHeading,
|
|
188
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
189
|
+
style: styles.packName,
|
|
190
|
+
numberOfLines: 1,
|
|
191
|
+
children: pack.name
|
|
192
|
+
}), meta]
|
|
193
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
194
|
+
style: styles.packRowFooter,
|
|
195
|
+
children: [/*#__PURE__*/_jsx(Price, {
|
|
196
|
+
value: pack.price,
|
|
197
|
+
currency: currency,
|
|
198
|
+
wide: false
|
|
199
|
+
}), buy]
|
|
200
|
+
})]
|
|
201
|
+
}), /*#__PURE__*/_jsx(Perforation, {
|
|
202
|
+
vertical: true,
|
|
203
|
+
style: {
|
|
204
|
+
position: 'absolute',
|
|
205
|
+
start: 117,
|
|
206
|
+
top: 18,
|
|
207
|
+
bottom: 18,
|
|
208
|
+
width: 6
|
|
209
|
+
}
|
|
210
|
+
}), /*#__PURE__*/_jsx(Notch, {
|
|
211
|
+
size: 24,
|
|
212
|
+
style: {
|
|
213
|
+
start: 108,
|
|
214
|
+
top: -12
|
|
215
|
+
}
|
|
216
|
+
}), /*#__PURE__*/_jsx(Notch, {
|
|
217
|
+
size: 24,
|
|
218
|
+
style: {
|
|
219
|
+
start: 108,
|
|
220
|
+
bottom: -12
|
|
221
|
+
}
|
|
222
|
+
})]
|
|
223
|
+
});
|
|
224
|
+
};
|
|
225
|
+
const SummaryRow = ({
|
|
226
|
+
label,
|
|
227
|
+
value
|
|
228
|
+
}) => /*#__PURE__*/_jsxs(View, {
|
|
229
|
+
style: styles.summaryRow,
|
|
230
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
231
|
+
style: styles.summaryLabel,
|
|
232
|
+
children: label
|
|
233
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
234
|
+
style: styles.summaryValue,
|
|
235
|
+
numberOfLines: 1,
|
|
236
|
+
children: value
|
|
237
|
+
})]
|
|
238
|
+
});
|
|
239
|
+
const SecuredView = ({
|
|
240
|
+
secured,
|
|
241
|
+
raffleName,
|
|
242
|
+
currency,
|
|
243
|
+
drawDate,
|
|
244
|
+
onClose,
|
|
245
|
+
onBackToGames
|
|
246
|
+
}) => {
|
|
247
|
+
const now = useNow(30000);
|
|
248
|
+
const left = drawCountdown(drawDate, now);
|
|
249
|
+
const addedKey = secured.demo ? 'ticketShop.securedAddedDemo' : 'ticketShop.securedAdded';
|
|
250
|
+
const added = t(`${addedKey}_${secured.tickets === 1 ? 'one' : 'other'}`, {
|
|
251
|
+
count: formatNumber(secured.tickets),
|
|
252
|
+
name: raffleName
|
|
253
|
+
});
|
|
254
|
+
return /*#__PURE__*/_jsx(View, {
|
|
255
|
+
style: styles.securedOverlay,
|
|
256
|
+
accessibilityViewIsModal: true,
|
|
257
|
+
children: /*#__PURE__*/_jsx(ScrollView, {
|
|
258
|
+
contentContainerStyle: styles.securedContent,
|
|
259
|
+
showsVerticalScrollIndicator: false,
|
|
260
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
261
|
+
style: styles.securedColumn,
|
|
262
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
263
|
+
style: styles.securedNav,
|
|
264
|
+
children: /*#__PURE__*/_jsx(RoundButton, {
|
|
265
|
+
d: CLOSE_PATH,
|
|
266
|
+
label: t('ticketShop.close'),
|
|
267
|
+
onPress: onClose
|
|
268
|
+
})
|
|
269
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
270
|
+
style: styles.securedArt,
|
|
271
|
+
children: [/*#__PURE__*/_jsx(Sunburst, {
|
|
272
|
+
size: 400,
|
|
273
|
+
color: SECURED_RAYS,
|
|
274
|
+
opacity: 0.035,
|
|
275
|
+
style: {
|
|
276
|
+
alignSelf: 'center',
|
|
277
|
+
top: -75
|
|
278
|
+
}
|
|
279
|
+
}), /*#__PURE__*/_jsx(ShopArtView, {
|
|
280
|
+
art: TICKETS_SECURED_ART,
|
|
281
|
+
width: 300
|
|
282
|
+
})]
|
|
283
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
284
|
+
style: styles.securedHeading,
|
|
285
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
286
|
+
style: styles.securedTitle,
|
|
287
|
+
accessibilityRole: "header",
|
|
288
|
+
children: t('ticketShop.securedTitle')
|
|
289
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
290
|
+
style: styles.securedNote,
|
|
291
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
292
|
+
style: styles.check,
|
|
293
|
+
children: /*#__PURE__*/_jsx(SvgIcon, {
|
|
294
|
+
name: "",
|
|
295
|
+
d: CHECK_PATH,
|
|
296
|
+
stroked: true,
|
|
297
|
+
size: 14,
|
|
298
|
+
strokeWidth: 3.4,
|
|
299
|
+
color: LOBBY.bg
|
|
300
|
+
})
|
|
301
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
302
|
+
style: styles.securedNoteText,
|
|
303
|
+
children: added
|
|
304
|
+
})]
|
|
305
|
+
})]
|
|
306
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
307
|
+
style: styles.summary,
|
|
308
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
309
|
+
style: styles.summaryTop,
|
|
310
|
+
children: [/*#__PURE__*/_jsx(SummaryRow, {
|
|
311
|
+
label: t('ticketShop.pack'),
|
|
312
|
+
value: secured.name
|
|
313
|
+
}), /*#__PURE__*/_jsx(SummaryRow, {
|
|
314
|
+
label: t('ticketShop.paid'),
|
|
315
|
+
value: `${formatNumber(secured.paid)} ${currency}`
|
|
316
|
+
})]
|
|
317
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
318
|
+
style: styles.summaryBottom,
|
|
319
|
+
children: [/*#__PURE__*/_jsx(SummaryRow, {
|
|
320
|
+
label: t('ticketShop.newBalance'),
|
|
321
|
+
value: `${formatNumber(secured.newBalance)} ${currency}`
|
|
322
|
+
}), left ? /*#__PURE__*/_jsx(SummaryRow, {
|
|
323
|
+
label: t('home.drawIn'),
|
|
324
|
+
value: t('ticketShop.drawInShort', {
|
|
325
|
+
...left
|
|
326
|
+
})
|
|
327
|
+
}) : null]
|
|
328
|
+
}), /*#__PURE__*/_jsx(Perforation, {
|
|
329
|
+
style: {
|
|
330
|
+
position: 'absolute',
|
|
331
|
+
left: 20,
|
|
332
|
+
right: 20,
|
|
333
|
+
top: 85,
|
|
334
|
+
height: 6
|
|
335
|
+
}
|
|
336
|
+
}), /*#__PURE__*/_jsx(Notch, {
|
|
337
|
+
size: 24,
|
|
338
|
+
bordered: true,
|
|
339
|
+
style: {
|
|
340
|
+
left: -13,
|
|
341
|
+
top: 76
|
|
342
|
+
}
|
|
343
|
+
}), /*#__PURE__*/_jsx(Notch, {
|
|
344
|
+
size: 24,
|
|
345
|
+
bordered: true,
|
|
346
|
+
style: {
|
|
347
|
+
right: -13,
|
|
348
|
+
top: 76
|
|
349
|
+
}
|
|
350
|
+
})]
|
|
351
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
352
|
+
style: styles.securedActions,
|
|
353
|
+
children: [/*#__PURE__*/_jsx(MonflowtsPressable, {
|
|
354
|
+
style: styles.primaryAction,
|
|
355
|
+
onPress: onBackToGames,
|
|
356
|
+
accessibilityRole: "button",
|
|
357
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
358
|
+
style: styles.primaryActionText,
|
|
359
|
+
children: t('ticketShop.backToGames')
|
|
360
|
+
})
|
|
361
|
+
}), /*#__PURE__*/_jsx(MonflowtsPressable, {
|
|
362
|
+
style: styles.secondaryAction,
|
|
363
|
+
onPress: onClose,
|
|
364
|
+
accessibilityRole: "button",
|
|
365
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
366
|
+
style: styles.secondaryActionText,
|
|
367
|
+
children: t('ticketShop.buyMore')
|
|
368
|
+
})
|
|
369
|
+
})]
|
|
370
|
+
})]
|
|
371
|
+
})
|
|
372
|
+
})
|
|
373
|
+
});
|
|
374
|
+
};
|
|
18
375
|
const TicketShop = ({
|
|
19
376
|
onBack,
|
|
377
|
+
onBackToGames,
|
|
20
378
|
balance,
|
|
21
379
|
onPurchase,
|
|
22
380
|
game,
|
|
23
381
|
onTopUp
|
|
24
382
|
}) => {
|
|
25
383
|
const currency = useCurrency();
|
|
384
|
+
const {
|
|
385
|
+
width: windowWidth
|
|
386
|
+
} = useResponsive();
|
|
387
|
+
const [layoutWidth, setLayoutWidth] = useState(0);
|
|
388
|
+
const width = layoutWidth || windowWidth;
|
|
389
|
+
const wide = width >= LOBBY_WIDE_MIN_WIDTH;
|
|
390
|
+
const isRTL = useI18nStore(s => s.direction === 'rtl');
|
|
391
|
+
const demoMode = useGameStore(s => s.demoMode);
|
|
26
392
|
const {
|
|
27
393
|
purchase,
|
|
28
394
|
isLoading
|
|
29
395
|
} = useRafflePurchase();
|
|
396
|
+
const {
|
|
397
|
+
state: drawState,
|
|
398
|
+
refetch: refetchDraw
|
|
399
|
+
} = useRaffleDrawState(game?.id);
|
|
400
|
+
const now = useNow(30000);
|
|
30
401
|
const [buyingId, setBuyingId] = useState(null);
|
|
31
|
-
const
|
|
402
|
+
const [rulesVisible, setRulesVisible] = useState(false);
|
|
32
403
|
const [fundsOverlayRequired, setFundsOverlayRequired] = useState(0);
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
// No fabricated fallback: if pricing isn't configured, purchase is disabled.
|
|
404
|
+
const [secured, setSecured] = useState(null);
|
|
405
|
+
useBackGuard(secured != null, () => setSecured(null));
|
|
36
406
|
const costPerTicketKobo = useMemo(() => {
|
|
37
407
|
if (!game?.playCost) return 0;
|
|
38
408
|
if (game.playCost.type === 'BY_CHANNEL' && game.playCost.channelPricing?.length) {
|
|
@@ -43,39 +413,48 @@ const TicketShop = ({
|
|
|
43
413
|
}, [game?.playCost]);
|
|
44
414
|
const costPerTicket = costPerTicketKobo / 100;
|
|
45
415
|
const pricingReady = costPerTicketKobo > 0;
|
|
46
|
-
|
|
47
|
-
// Bundles are fully DB-driven (gameplayRules.ticketBundles): quantity + presentation
|
|
48
|
-
// come from the published config — nothing is hardcoded here. The per-ticket price is
|
|
49
|
-
// server-derived, so price = costPerTicket × tickets matches what the server will
|
|
50
|
-
// actually charge. Bundles are capped by the configured per-user entry limit, and each
|
|
51
|
-
// bundle's image resolves from the SDK preset palette via its config imageKey.
|
|
52
416
|
const maxEntries = game?.gameplayRules?.maxEntriesPerUser;
|
|
53
417
|
const configBundles = game?.gameplayRules?.ticketBundles;
|
|
54
|
-
const
|
|
55
|
-
if (!configBundles?.length) return [];
|
|
418
|
+
const packs = useMemo(() => {
|
|
419
|
+
if (!configBundles?.length || !pricingReady) return [];
|
|
56
420
|
return configBundles.filter(b => b.tickets > 0 && (!maxEntries || maxEntries <= 0 || b.tickets <= maxEntries)).map((b, i) => ({
|
|
57
421
|
id: b.id,
|
|
58
422
|
name: b.name,
|
|
59
423
|
tickets: b.tickets,
|
|
60
|
-
|
|
61
|
-
|
|
424
|
+
price: costPerTicket * b.tickets,
|
|
425
|
+
art: resolveBundleArt(b.imageKey, b.tickets),
|
|
426
|
+
band: PACK_BANDS[i % PACK_BANDS.length] ?? HERO_FALLBACK_BAND
|
|
62
427
|
}));
|
|
63
|
-
}, [configBundles, costPerTicket, maxEntries]);
|
|
64
|
-
const
|
|
428
|
+
}, [configBundles, costPerTicket, maxEntries, pricingReady]);
|
|
429
|
+
const raffleName = game?.name || t('games.RAFFLE_DRAW.name');
|
|
430
|
+
const jackpotKobo = drawState?.jackpotKobo ?? game?.gameplayRules?.jackpotAmountKobo ?? 0;
|
|
431
|
+
const jackpot = jackpotKobo > 0 ? formatNumber(jackpotKobo / 100) : '—';
|
|
432
|
+
const drawDate = drawState ? drawState.drawDate : game?.gameplayRules?.drawDate ?? null;
|
|
433
|
+
const timeLeft = drawCountdown(drawDate, now);
|
|
434
|
+
const heroBand = game?.uiConfig?.display?.bandColor || gameContent('RAFFLE_DRAW').card?.bandColor || HERO_FALLBACK_BAND;
|
|
435
|
+
const cardWidth = lobbyCardWidth(width - WIDE_PADDING * 2, 3, GRID_GAP);
|
|
436
|
+
const handleBuy = async pack => {
|
|
65
437
|
if (!game || !pricingReady) {
|
|
66
438
|
Alert.alert(t('ticketShop.unavailableTitle'), t('ticketShop.pricingNotConfigured'));
|
|
67
439
|
return;
|
|
68
440
|
}
|
|
69
|
-
if (balance <
|
|
70
|
-
setFundsOverlayRequired(
|
|
441
|
+
if (balance < pack.price) {
|
|
442
|
+
setFundsOverlayRequired(pack.price);
|
|
71
443
|
return;
|
|
72
444
|
}
|
|
73
|
-
setBuyingId(
|
|
445
|
+
setBuyingId(pack.id);
|
|
74
446
|
try {
|
|
75
|
-
const result = await purchase(game.id,
|
|
447
|
+
const result = await purchase(game.id, pack.tickets, pack.price * 100);
|
|
76
448
|
if (result) {
|
|
77
449
|
sounds.playPurchaseSuccess();
|
|
78
|
-
|
|
450
|
+
setSecured({
|
|
451
|
+
name: pack.name,
|
|
452
|
+
tickets: pack.tickets,
|
|
453
|
+
paid: pack.price,
|
|
454
|
+
newBalance: Math.max(0, balance - pack.price),
|
|
455
|
+
demo: demoMode
|
|
456
|
+
});
|
|
457
|
+
refetchDraw();
|
|
79
458
|
onPurchase?.({
|
|
80
459
|
entryId: result.entryId,
|
|
81
460
|
ticketNumber: result.ticketNumber
|
|
@@ -84,7 +463,7 @@ const TicketShop = ({
|
|
|
84
463
|
} catch (e) {
|
|
85
464
|
const msg = e?.message || '';
|
|
86
465
|
if (msg.toLowerCase().includes('insufficient') || msg.toLowerCase().includes('balance')) {
|
|
87
|
-
setFundsOverlayRequired(
|
|
466
|
+
setFundsOverlayRequired(pack.price);
|
|
88
467
|
} else {
|
|
89
468
|
Alert.alert(t('ticketShop.purchaseFailed'), errorText(e, 'ticketShop.tryAgain'));
|
|
90
469
|
}
|
|
@@ -92,130 +471,214 @@ const TicketShop = ({
|
|
|
92
471
|
setBuyingId(null);
|
|
93
472
|
}
|
|
94
473
|
};
|
|
474
|
+
const jackpotLabel = t('ticketShop.jackpotLabel', {
|
|
475
|
+
name: raffleName
|
|
476
|
+
});
|
|
95
477
|
return /*#__PURE__*/_jsxs(View, {
|
|
96
478
|
style: styles.container,
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
style:
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
479
|
+
onLayout: e => setLayoutWidth(e.nativeEvent.layout.width),
|
|
480
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
481
|
+
style: styles.fill,
|
|
482
|
+
importantForAccessibility: secured ? 'no-hide-descendants' : 'auto',
|
|
483
|
+
accessibilityElementsHidden: secured != null,
|
|
484
|
+
children: [/*#__PURE__*/_jsxs(ScrollView, {
|
|
485
|
+
contentContainerStyle: [styles.content, wide && styles.contentWide],
|
|
486
|
+
showsVerticalScrollIndicator: false,
|
|
487
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
488
|
+
style: [styles.nav, wide && styles.navWide],
|
|
489
|
+
children: [/*#__PURE__*/_jsx(RoundButton, {
|
|
490
|
+
d: BACK_PATH,
|
|
491
|
+
label: t('ticketShop.back'),
|
|
492
|
+
onPress: onBack,
|
|
493
|
+
wide: wide,
|
|
494
|
+
mirror: isRTL
|
|
495
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
496
|
+
style: styles.navRight,
|
|
497
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
498
|
+
style: [styles.balancePill, wide && styles.balancePillWide],
|
|
499
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
500
|
+
style: [styles.coin, wide && styles.coinWide],
|
|
501
|
+
children: /*#__PURE__*/_jsx(SvgIcon, {
|
|
502
|
+
name: "diamond",
|
|
503
|
+
size: wide ? 15 : 13,
|
|
504
|
+
color: LOBBY.goldInk
|
|
505
|
+
})
|
|
506
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
507
|
+
style: [styles.balanceValue, wide && styles.balanceValueWide],
|
|
508
|
+
children: formatNumber(balance)
|
|
509
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
510
|
+
style: [styles.balanceUnit, wide && styles.balanceUnitWide],
|
|
511
|
+
children: currency
|
|
512
|
+
})]
|
|
513
|
+
}), /*#__PURE__*/_jsx(RoundButton, {
|
|
514
|
+
d: HELP_PATH,
|
|
515
|
+
label: t('ticketShop.howItWorks', {
|
|
516
|
+
name: raffleName
|
|
517
|
+
}),
|
|
518
|
+
onPress: () => setRulesVisible(true),
|
|
519
|
+
wide: wide
|
|
520
|
+
})]
|
|
130
521
|
})]
|
|
131
|
-
})
|
|
132
|
-
})]
|
|
133
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
134
|
-
style: styles.subtitle,
|
|
135
|
-
children: t('ticketShop.subtitle')
|
|
136
|
-
}), /*#__PURE__*/_jsxs(ScrollView, {
|
|
137
|
-
contentContainerStyle: {
|
|
138
|
-
paddingBottom: 120
|
|
139
|
-
},
|
|
140
|
-
children: [bundles.length === 0 && /*#__PURE__*/_jsxs(View, {
|
|
141
|
-
style: styles.emptyState,
|
|
142
|
-
children: [/*#__PURE__*/_jsx(SvgIcon, {
|
|
143
|
-
name: "ticket",
|
|
144
|
-
size: 40,
|
|
145
|
-
color: COLORS.slateDark
|
|
146
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
147
|
-
style: styles.emptyTitle,
|
|
148
|
-
children: t('ticketShop.noBundles')
|
|
149
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
150
|
-
style: styles.emptySubtitle,
|
|
151
|
-
children: pricingReady ? t('ticketShop.bundlesNotConfigured') : t('ticketShop.pricingNotConfiguredYet')
|
|
152
|
-
})]
|
|
153
|
-
}), bundles.map(bundle => /*#__PURE__*/_jsxs(View, {
|
|
154
|
-
style: styles.bundleCard,
|
|
155
|
-
children: [bundle.tag && /*#__PURE__*/_jsx(View, {
|
|
156
|
-
style: styles.tagBadge,
|
|
157
|
-
children: /*#__PURE__*/_jsx(Text, {
|
|
158
|
-
style: styles.tagText,
|
|
159
|
-
children: bundle.tag
|
|
160
|
-
})
|
|
161
|
-
}), /*#__PURE__*/_jsx(View, {
|
|
162
|
-
style: styles.bundleTop,
|
|
163
|
-
children: /*#__PURE__*/_jsx(Image, {
|
|
164
|
-
source: bundle.image,
|
|
165
|
-
style: styles.bundleImage,
|
|
166
|
-
resizeMode: "contain"
|
|
167
|
-
})
|
|
168
522
|
}), /*#__PURE__*/_jsxs(View, {
|
|
169
|
-
style: styles.
|
|
523
|
+
style: styles.titleBlock,
|
|
170
524
|
children: [/*#__PURE__*/_jsx(Text, {
|
|
171
|
-
style: styles.
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
525
|
+
style: [styles.title, wide && styles.titleWide],
|
|
526
|
+
accessibilityRole: "header",
|
|
527
|
+
children: t('ticketShop.title')
|
|
528
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
529
|
+
style: [styles.subtitle, wide && styles.subtitleWide],
|
|
530
|
+
children: t('ticketShop.subtitle', {
|
|
531
|
+
name: raffleName
|
|
532
|
+
})
|
|
533
|
+
})]
|
|
534
|
+
}), wide ? /*#__PURE__*/_jsxs(View, {
|
|
535
|
+
style: [styles.heroWide, {
|
|
536
|
+
backgroundColor: heroBand
|
|
537
|
+
}],
|
|
538
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
539
|
+
style: styles.heroWideBody,
|
|
175
540
|
children: [/*#__PURE__*/_jsxs(View, {
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
children: [/*#__PURE__*/_jsx(SvgIcon, {
|
|
182
|
-
name: "ticket",
|
|
183
|
-
size: 14,
|
|
184
|
-
color: COLORS.primary
|
|
185
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
186
|
-
style: [styles.ticketCount, {
|
|
187
|
-
marginLeft: 4
|
|
188
|
-
}],
|
|
189
|
-
children: t('ticketShop.ticketsCount', {
|
|
190
|
-
count: bundle.tickets
|
|
191
|
-
})
|
|
192
|
-
})]
|
|
541
|
+
style: styles.heroPrize,
|
|
542
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
543
|
+
style: [styles.heroLabel, styles.heroLabelWide],
|
|
544
|
+
numberOfLines: 1,
|
|
545
|
+
children: jackpotLabel
|
|
193
546
|
}), /*#__PURE__*/_jsx(Text, {
|
|
194
|
-
style: styles.
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
})
|
|
547
|
+
style: [styles.heroValue, styles.heroValueWide],
|
|
548
|
+
numberOfLines: 1,
|
|
549
|
+
adjustsFontSizeToFit: true,
|
|
550
|
+
children: jackpot
|
|
199
551
|
})]
|
|
200
|
-
}), /*#__PURE__*/_jsx(
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
552
|
+
}), /*#__PURE__*/_jsx(Countdown, {
|
|
553
|
+
drawDate: drawDate,
|
|
554
|
+
compact: false,
|
|
555
|
+
labelColor: LOBBY.onHero
|
|
556
|
+
})]
|
|
557
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
558
|
+
style: styles.heroArtSide,
|
|
559
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
560
|
+
style: [StyleSheet.absoluteFill, {
|
|
561
|
+
backgroundColor: LOBBY.shade
|
|
562
|
+
}]
|
|
563
|
+
}), /*#__PURE__*/_jsx(Sunburst, {
|
|
564
|
+
size: 560,
|
|
565
|
+
style: {
|
|
566
|
+
left: -152,
|
|
567
|
+
top: -150
|
|
568
|
+
}
|
|
569
|
+
}), /*#__PURE__*/_jsx(ShopArtView, {
|
|
570
|
+
art: JACKPOT_TICKET_ART,
|
|
571
|
+
width: 236
|
|
572
|
+
})]
|
|
573
|
+
}), /*#__PURE__*/_jsx(Perforation, {
|
|
574
|
+
vertical: true,
|
|
575
|
+
style: {
|
|
576
|
+
position: 'absolute',
|
|
577
|
+
right: 253,
|
|
578
|
+
top: 22,
|
|
579
|
+
bottom: 22,
|
|
580
|
+
width: 6
|
|
581
|
+
}
|
|
582
|
+
}), /*#__PURE__*/_jsx(Notch, {
|
|
583
|
+
size: 28,
|
|
584
|
+
style: {
|
|
585
|
+
right: 242,
|
|
586
|
+
top: -14
|
|
587
|
+
}
|
|
588
|
+
}), /*#__PURE__*/_jsx(Notch, {
|
|
589
|
+
size: 28,
|
|
590
|
+
style: {
|
|
591
|
+
right: 242,
|
|
592
|
+
bottom: -14
|
|
593
|
+
}
|
|
594
|
+
})]
|
|
595
|
+
}) : /*#__PURE__*/_jsxs(View, {
|
|
596
|
+
style: [styles.heroPhone, {
|
|
597
|
+
backgroundColor: heroBand
|
|
598
|
+
}],
|
|
599
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
600
|
+
style: styles.heroPrize,
|
|
601
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
602
|
+
style: styles.heroLabel,
|
|
603
|
+
numberOfLines: 1,
|
|
604
|
+
children: jackpotLabel
|
|
605
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
606
|
+
style: styles.heroValue,
|
|
607
|
+
numberOfLines: 1,
|
|
608
|
+
adjustsFontSizeToFit: true,
|
|
609
|
+
children: jackpot
|
|
610
|
+
})]
|
|
611
|
+
}), timeLeft ? /*#__PURE__*/_jsxs(View, {
|
|
612
|
+
style: styles.heroDraw,
|
|
613
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
614
|
+
style: styles.heroLabel,
|
|
615
|
+
numberOfLines: 1,
|
|
616
|
+
children: t('home.drawIn')
|
|
617
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
618
|
+
style: styles.heroDrawValue,
|
|
619
|
+
numberOfLines: 1,
|
|
620
|
+
children: t('ticketShop.drawInShort', {
|
|
621
|
+
...timeLeft
|
|
622
|
+
})
|
|
215
623
|
})]
|
|
624
|
+
}) : null, /*#__PURE__*/_jsx(Notch, {
|
|
625
|
+
size: 20,
|
|
626
|
+
style: {
|
|
627
|
+
left: -10,
|
|
628
|
+
top: 42
|
|
629
|
+
}
|
|
630
|
+
}), /*#__PURE__*/_jsx(Notch, {
|
|
631
|
+
size: 20,
|
|
632
|
+
style: {
|
|
633
|
+
right: -10,
|
|
634
|
+
top: 42
|
|
635
|
+
}
|
|
216
636
|
})]
|
|
637
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
638
|
+
style: [styles.sectionTitle, wide && styles.sectionTitleWide],
|
|
639
|
+
accessibilityRole: "header",
|
|
640
|
+
children: t('ticketShop.choosePack')
|
|
641
|
+
}), packs.length === 0 ? /*#__PURE__*/_jsxs(View, {
|
|
642
|
+
style: styles.emptyState,
|
|
643
|
+
children: [/*#__PURE__*/_jsx(SvgIcon, {
|
|
644
|
+
name: "ticket",
|
|
645
|
+
size: 40,
|
|
646
|
+
color: LOBBY.subtle
|
|
647
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
648
|
+
style: styles.emptyTitle,
|
|
649
|
+
children: t('ticketShop.noBundles')
|
|
650
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
651
|
+
style: styles.emptySubtitle,
|
|
652
|
+
children: pricingReady ? t('ticketShop.bundlesNotConfigured') : t('ticketShop.pricingNotConfiguredYet')
|
|
653
|
+
})]
|
|
654
|
+
}) : /*#__PURE__*/_jsx(View, {
|
|
655
|
+
style: wide ? styles.grid : styles.list,
|
|
656
|
+
children: packs.map(pack => /*#__PURE__*/_jsx(PackCard, {
|
|
657
|
+
pack: pack,
|
|
658
|
+
currency: currency,
|
|
659
|
+
costPerTicket: costPerTicket,
|
|
660
|
+
wide: wide,
|
|
661
|
+
cardWidth: cardWidth,
|
|
662
|
+
buying: buyingId === pack.id,
|
|
663
|
+
disabled: isLoading || buyingId != null,
|
|
664
|
+
onBuy: handleBuy
|
|
665
|
+
}, pack.id))
|
|
217
666
|
})]
|
|
218
|
-
},
|
|
667
|
+
}), /*#__PURE__*/_jsx(SideDemoTab, {
|
|
668
|
+
enabled: !!game?.demoConfig?.enabled
|
|
669
|
+
})]
|
|
670
|
+
}), secured ? /*#__PURE__*/_jsx(SecuredView, {
|
|
671
|
+
secured: secured,
|
|
672
|
+
raffleName: raffleName,
|
|
673
|
+
currency: currency,
|
|
674
|
+
drawDate: drawDate,
|
|
675
|
+
onClose: () => setSecured(null),
|
|
676
|
+
onBackToGames: onBackToGames ?? onBack
|
|
677
|
+
}) : null, /*#__PURE__*/_jsx(GameRulesModal, {
|
|
678
|
+
visible: rulesVisible,
|
|
679
|
+
onClose: () => setRulesVisible(false),
|
|
680
|
+
gameCode: game?.gameCode ?? 'RAFFLE_DRAW',
|
|
681
|
+
params: raffleRulesParams(game, currency, jackpotKobo || null)
|
|
219
682
|
}), /*#__PURE__*/_jsx(InsufficientFundsOverlay, {
|
|
220
683
|
visible: fundsOverlayRequired > 0,
|
|
221
684
|
balance: balance,
|
|
@@ -226,146 +689,514 @@ const TicketShop = ({
|
|
|
226
689
|
})]
|
|
227
690
|
});
|
|
228
691
|
};
|
|
229
|
-
const
|
|
692
|
+
const DISPLAY_NUMBER = {
|
|
693
|
+
fontWeight: '900',
|
|
694
|
+
letterSpacing: -1,
|
|
695
|
+
fontVariant: ['tabular-nums']
|
|
696
|
+
};
|
|
697
|
+
const ROUND = {
|
|
698
|
+
alignItems: 'center',
|
|
699
|
+
justifyContent: 'center',
|
|
700
|
+
backgroundColor: LOBBY.surface,
|
|
701
|
+
borderWidth: 1,
|
|
702
|
+
borderColor: LOBBY.border
|
|
703
|
+
};
|
|
704
|
+
const styles = scaledStyles({
|
|
230
705
|
container: {
|
|
231
706
|
flex: 1,
|
|
232
|
-
backgroundColor:
|
|
233
|
-
|
|
707
|
+
backgroundColor: LOBBY.bg
|
|
708
|
+
},
|
|
709
|
+
fill: {
|
|
710
|
+
flex: 1
|
|
711
|
+
},
|
|
712
|
+
content: {
|
|
713
|
+
paddingTop: 60,
|
|
714
|
+
paddingHorizontal: 20,
|
|
715
|
+
paddingBottom: 40,
|
|
716
|
+
gap: 16
|
|
717
|
+
},
|
|
718
|
+
contentWide: {
|
|
719
|
+
paddingTop: 56,
|
|
720
|
+
paddingHorizontal: WIDE_PADDING,
|
|
721
|
+
gap: 20
|
|
234
722
|
},
|
|
235
|
-
|
|
723
|
+
mirror: {
|
|
724
|
+
transform: [{
|
|
725
|
+
scaleX: -1
|
|
726
|
+
}]
|
|
727
|
+
},
|
|
728
|
+
nav: {
|
|
729
|
+
height: 44,
|
|
236
730
|
flexDirection: 'row',
|
|
237
731
|
alignItems: 'center',
|
|
238
732
|
justifyContent: 'space-between',
|
|
239
|
-
|
|
240
|
-
paddingBottom: 8
|
|
733
|
+
gap: 12
|
|
241
734
|
},
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
borderColor: COLORS.white10,
|
|
735
|
+
navWide: {
|
|
736
|
+
height: 56,
|
|
737
|
+
gap: 16
|
|
738
|
+
},
|
|
739
|
+
navRight: {
|
|
740
|
+
flexDirection: 'row',
|
|
249
741
|
alignItems: 'center',
|
|
250
|
-
|
|
742
|
+
gap: 8,
|
|
743
|
+
flexShrink: 1
|
|
251
744
|
},
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
745
|
+
round: {
|
|
746
|
+
...ROUND,
|
|
747
|
+
width: 44,
|
|
748
|
+
height: 44,
|
|
749
|
+
borderRadius: 22
|
|
255
750
|
},
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
751
|
+
roundWide: {
|
|
752
|
+
width: 52,
|
|
753
|
+
height: 52,
|
|
754
|
+
borderRadius: 26
|
|
260
755
|
},
|
|
261
756
|
balancePill: {
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
757
|
+
...ROUND,
|
|
758
|
+
height: 44,
|
|
759
|
+
flexDirection: 'row',
|
|
760
|
+
gap: 8,
|
|
761
|
+
paddingLeft: 8,
|
|
762
|
+
paddingRight: 14,
|
|
763
|
+
borderRadius: 999,
|
|
764
|
+
flexShrink: 1
|
|
268
765
|
},
|
|
269
|
-
|
|
270
|
-
|
|
766
|
+
balancePillWide: {
|
|
767
|
+
height: 52,
|
|
768
|
+
gap: 10,
|
|
769
|
+
paddingLeft: 10,
|
|
770
|
+
paddingRight: 18
|
|
771
|
+
},
|
|
772
|
+
coin: {
|
|
773
|
+
width: 26,
|
|
774
|
+
height: 26,
|
|
775
|
+
borderRadius: 13,
|
|
776
|
+
backgroundColor: LOBBY.gold,
|
|
777
|
+
alignItems: 'center',
|
|
778
|
+
justifyContent: 'center'
|
|
779
|
+
},
|
|
780
|
+
coinWide: {
|
|
781
|
+
width: 30,
|
|
782
|
+
height: 30,
|
|
783
|
+
borderRadius: 15
|
|
784
|
+
},
|
|
785
|
+
balanceValue: {
|
|
786
|
+
fontSize: 19,
|
|
787
|
+
lineHeight: 22,
|
|
788
|
+
fontWeight: '800',
|
|
789
|
+
color: LOBBY.text,
|
|
790
|
+
fontVariant: ['tabular-nums'],
|
|
791
|
+
flexShrink: 1
|
|
792
|
+
},
|
|
793
|
+
balanceValueWide: {
|
|
794
|
+
fontSize: 22,
|
|
795
|
+
lineHeight: 24
|
|
796
|
+
},
|
|
797
|
+
balanceUnit: {
|
|
798
|
+
fontSize: 12,
|
|
799
|
+
lineHeight: 14,
|
|
800
|
+
fontWeight: '700',
|
|
801
|
+
color: LOBBY.muted
|
|
802
|
+
},
|
|
803
|
+
balanceUnitWide: {
|
|
271
804
|
fontSize: 13,
|
|
272
|
-
|
|
805
|
+
lineHeight: 16
|
|
806
|
+
},
|
|
807
|
+
titleBlock: {
|
|
808
|
+
gap: 4
|
|
809
|
+
},
|
|
810
|
+
title: {
|
|
811
|
+
fontSize: 34,
|
|
812
|
+
lineHeight: 38,
|
|
813
|
+
fontWeight: '800',
|
|
814
|
+
color: LOBBY.text,
|
|
815
|
+
letterSpacing: -0.7
|
|
816
|
+
},
|
|
817
|
+
titleWide: {
|
|
818
|
+
fontSize: 44,
|
|
819
|
+
lineHeight: 48,
|
|
820
|
+
letterSpacing: -0.9
|
|
273
821
|
},
|
|
274
822
|
subtitle: {
|
|
275
|
-
|
|
276
|
-
|
|
823
|
+
fontSize: 15,
|
|
824
|
+
lineHeight: 20,
|
|
825
|
+
color: LOBBY.muted
|
|
826
|
+
},
|
|
827
|
+
subtitleWide: {
|
|
828
|
+
fontSize: 17,
|
|
829
|
+
lineHeight: 24
|
|
830
|
+
},
|
|
831
|
+
heroPhone: {
|
|
832
|
+
height: 104,
|
|
833
|
+
borderRadius: 24,
|
|
834
|
+
overflow: 'hidden',
|
|
835
|
+
paddingHorizontal: 22,
|
|
836
|
+
flexDirection: 'row',
|
|
837
|
+
alignItems: 'center',
|
|
838
|
+
justifyContent: 'space-between',
|
|
839
|
+
gap: 16
|
|
840
|
+
},
|
|
841
|
+
heroWide: {
|
|
842
|
+
height: 260,
|
|
843
|
+
borderRadius: 32,
|
|
844
|
+
overflow: 'hidden',
|
|
845
|
+
flexDirection: 'row'
|
|
846
|
+
},
|
|
847
|
+
heroWideBody: {
|
|
848
|
+
flex: 1,
|
|
849
|
+
paddingVertical: 28,
|
|
850
|
+
paddingHorizontal: 32,
|
|
851
|
+
justifyContent: 'space-between'
|
|
852
|
+
},
|
|
853
|
+
heroArtSide: {
|
|
854
|
+
width: 256,
|
|
855
|
+
alignItems: 'center',
|
|
856
|
+
justifyContent: 'center',
|
|
857
|
+
overflow: 'hidden'
|
|
858
|
+
},
|
|
859
|
+
heroPrize: {
|
|
860
|
+
flexShrink: 1,
|
|
861
|
+
minWidth: 0,
|
|
862
|
+
gap: 4
|
|
863
|
+
},
|
|
864
|
+
heroLabel: {
|
|
865
|
+
fontSize: 11,
|
|
866
|
+
lineHeight: 14,
|
|
867
|
+
fontWeight: '700',
|
|
868
|
+
letterSpacing: 1.3,
|
|
869
|
+
textTransform: 'uppercase',
|
|
870
|
+
color: LOBBY.onHero
|
|
871
|
+
},
|
|
872
|
+
heroLabelWide: {
|
|
873
|
+
fontSize: 12,
|
|
874
|
+
letterSpacing: 1.7
|
|
875
|
+
},
|
|
876
|
+
heroValue: {
|
|
877
|
+
...DISPLAY_NUMBER,
|
|
878
|
+
fontSize: 40,
|
|
879
|
+
lineHeight: 44,
|
|
880
|
+
color: LOBBY.gold
|
|
881
|
+
},
|
|
882
|
+
heroValueWide: {
|
|
883
|
+
fontSize: 88,
|
|
884
|
+
lineHeight: 92,
|
|
885
|
+
letterSpacing: -2
|
|
886
|
+
},
|
|
887
|
+
heroDraw: {
|
|
888
|
+
alignItems: 'flex-end',
|
|
889
|
+
gap: 4,
|
|
890
|
+
flexShrink: 0
|
|
891
|
+
},
|
|
892
|
+
heroDrawValue: {
|
|
893
|
+
fontSize: 17,
|
|
894
|
+
lineHeight: 22,
|
|
895
|
+
fontWeight: '700',
|
|
896
|
+
color: LOBBY.text,
|
|
897
|
+
fontVariant: ['tabular-nums']
|
|
898
|
+
},
|
|
899
|
+
sectionTitle: {
|
|
900
|
+
marginTop: 8,
|
|
901
|
+
fontSize: 20,
|
|
902
|
+
lineHeight: 24,
|
|
903
|
+
fontWeight: '700',
|
|
904
|
+
color: LOBBY.text,
|
|
905
|
+
letterSpacing: -0.2
|
|
906
|
+
},
|
|
907
|
+
sectionTitleWide: {
|
|
908
|
+
marginTop: 12,
|
|
909
|
+
fontSize: 28,
|
|
910
|
+
lineHeight: 34,
|
|
911
|
+
fontWeight: '800',
|
|
912
|
+
letterSpacing: -0.6
|
|
913
|
+
},
|
|
914
|
+
list: {
|
|
915
|
+
gap: 16
|
|
916
|
+
},
|
|
917
|
+
grid: {
|
|
918
|
+
flexDirection: 'row',
|
|
919
|
+
flexWrap: 'wrap',
|
|
920
|
+
gap: GRID_GAP
|
|
921
|
+
},
|
|
922
|
+
packRow: {
|
|
923
|
+
height: 136,
|
|
924
|
+
flexDirection: 'row',
|
|
925
|
+
borderRadius: 24,
|
|
926
|
+
overflow: 'hidden',
|
|
927
|
+
backgroundColor: LOBBY.surface
|
|
928
|
+
},
|
|
929
|
+
packArtSide: {
|
|
930
|
+
width: 120,
|
|
931
|
+
alignItems: 'center',
|
|
932
|
+
justifyContent: 'center'
|
|
933
|
+
},
|
|
934
|
+
packRowBody: {
|
|
935
|
+
flex: 1,
|
|
936
|
+
minWidth: 0,
|
|
937
|
+
paddingTop: 16,
|
|
938
|
+
paddingBottom: 16,
|
|
939
|
+
paddingStart: 22,
|
|
940
|
+
paddingEnd: 16,
|
|
941
|
+
justifyContent: 'space-between'
|
|
942
|
+
},
|
|
943
|
+
packHeading: {
|
|
944
|
+
gap: 4
|
|
945
|
+
},
|
|
946
|
+
packName: {
|
|
947
|
+
fontSize: 20,
|
|
948
|
+
lineHeight: 24,
|
|
949
|
+
fontWeight: '700',
|
|
950
|
+
color: LOBBY.text,
|
|
951
|
+
letterSpacing: -0.2
|
|
952
|
+
},
|
|
953
|
+
packRowFooter: {
|
|
954
|
+
flexDirection: 'row',
|
|
955
|
+
alignItems: 'center',
|
|
956
|
+
justifyContent: 'space-between',
|
|
957
|
+
gap: 8
|
|
958
|
+
},
|
|
959
|
+
packCard: {
|
|
960
|
+
height: 460,
|
|
961
|
+
borderRadius: 28,
|
|
962
|
+
overflow: 'hidden',
|
|
963
|
+
backgroundColor: LOBBY.surface
|
|
964
|
+
},
|
|
965
|
+
packArtTop: {
|
|
966
|
+
height: 230,
|
|
967
|
+
alignItems: 'center',
|
|
968
|
+
justifyContent: 'center',
|
|
969
|
+
overflow: 'hidden'
|
|
970
|
+
},
|
|
971
|
+
packCardBody: {
|
|
972
|
+
flex: 1,
|
|
973
|
+
paddingTop: 22,
|
|
974
|
+
paddingHorizontal: 20,
|
|
975
|
+
paddingBottom: 20,
|
|
976
|
+
justifyContent: 'space-between'
|
|
977
|
+
},
|
|
978
|
+
packHeadingWide: {
|
|
979
|
+
gap: 6
|
|
980
|
+
},
|
|
981
|
+
packNameWide: {
|
|
982
|
+
fontSize: 24,
|
|
983
|
+
lineHeight: 28,
|
|
984
|
+
fontWeight: '700',
|
|
985
|
+
color: LOBBY.text,
|
|
986
|
+
letterSpacing: -0.2
|
|
987
|
+
},
|
|
988
|
+
packCardFooter: {
|
|
989
|
+
gap: 14
|
|
990
|
+
},
|
|
991
|
+
meta: {
|
|
992
|
+
flexDirection: 'row',
|
|
993
|
+
alignItems: 'center',
|
|
994
|
+
gap: 6
|
|
995
|
+
},
|
|
996
|
+
metaText: {
|
|
997
|
+
fontSize: 13,
|
|
998
|
+
lineHeight: 16,
|
|
999
|
+
color: LOBBY.muted,
|
|
1000
|
+
flexShrink: 1
|
|
1001
|
+
},
|
|
1002
|
+
metaTextWide: {
|
|
1003
|
+
fontSize: 14,
|
|
1004
|
+
lineHeight: 18
|
|
1005
|
+
},
|
|
1006
|
+
price: {
|
|
1007
|
+
flexDirection: 'row',
|
|
1008
|
+
alignItems: 'baseline',
|
|
1009
|
+
gap: 4,
|
|
1010
|
+
flexShrink: 1
|
|
1011
|
+
},
|
|
1012
|
+
priceValue: {
|
|
1013
|
+
...DISPLAY_NUMBER,
|
|
1014
|
+
fontSize: 28,
|
|
1015
|
+
lineHeight: 32,
|
|
1016
|
+
color: LOBBY.text,
|
|
1017
|
+
flexShrink: 1
|
|
1018
|
+
},
|
|
1019
|
+
priceValueWide: {
|
|
1020
|
+
fontSize: 40,
|
|
1021
|
+
lineHeight: 44
|
|
1022
|
+
},
|
|
1023
|
+
priceUnit: {
|
|
277
1024
|
fontSize: 13,
|
|
278
|
-
|
|
1025
|
+
lineHeight: 16,
|
|
1026
|
+
fontWeight: '700',
|
|
1027
|
+
color: LOBBY.muted
|
|
1028
|
+
},
|
|
1029
|
+
priceUnitWide: {
|
|
1030
|
+
fontSize: 15,
|
|
1031
|
+
lineHeight: 18
|
|
1032
|
+
},
|
|
1033
|
+
buy: {
|
|
1034
|
+
height: 44,
|
|
1035
|
+
minWidth: 76,
|
|
1036
|
+
paddingHorizontal: 22,
|
|
1037
|
+
borderRadius: 999,
|
|
1038
|
+
alignItems: 'center',
|
|
1039
|
+
justifyContent: 'center',
|
|
1040
|
+
backgroundColor: LOBBY.gold,
|
|
1041
|
+
borderBottomWidth: 3,
|
|
1042
|
+
borderBottomColor: 'rgba(51, 27, 0, 0.22)'
|
|
1043
|
+
},
|
|
1044
|
+
buyWide: {
|
|
1045
|
+
height: 52,
|
|
1046
|
+
borderBottomWidth: 4
|
|
1047
|
+
},
|
|
1048
|
+
buyText: {
|
|
1049
|
+
fontSize: 15,
|
|
1050
|
+
fontWeight: '800',
|
|
1051
|
+
color: LOBBY.goldInk
|
|
1052
|
+
},
|
|
1053
|
+
buyTextWide: {
|
|
1054
|
+
fontSize: 16
|
|
279
1055
|
},
|
|
280
1056
|
emptyState: {
|
|
281
1057
|
alignItems: 'center',
|
|
282
1058
|
justifyContent: 'center',
|
|
283
1059
|
paddingHorizontal: 32,
|
|
284
|
-
paddingTop:
|
|
1060
|
+
paddingTop: 48,
|
|
285
1061
|
gap: 12
|
|
286
1062
|
},
|
|
287
1063
|
emptyTitle: {
|
|
288
|
-
color:
|
|
1064
|
+
color: LOBBY.text,
|
|
289
1065
|
fontSize: 16,
|
|
290
1066
|
fontWeight: '700',
|
|
291
1067
|
textAlign: 'center'
|
|
292
1068
|
},
|
|
293
1069
|
emptySubtitle: {
|
|
294
|
-
color:
|
|
1070
|
+
color: LOBBY.muted,
|
|
295
1071
|
fontSize: 13,
|
|
296
1072
|
textAlign: 'center',
|
|
297
1073
|
lineHeight: 18
|
|
298
1074
|
},
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
zIndex: 10,
|
|
313
|
-
backgroundColor: COLORS.primary,
|
|
314
|
-
borderRadius: 10,
|
|
315
|
-
paddingHorizontal: 10,
|
|
316
|
-
paddingVertical: 3
|
|
317
|
-
},
|
|
318
|
-
tagText: {
|
|
319
|
-
fontSize: 10,
|
|
320
|
-
fontWeight: '700',
|
|
321
|
-
color: '#fff'
|
|
1075
|
+
securedOverlay: {
|
|
1076
|
+
...StyleSheet.absoluteFillObject,
|
|
1077
|
+
backgroundColor: LOBBY.bg
|
|
1078
|
+
},
|
|
1079
|
+
securedContent: {
|
|
1080
|
+
paddingTop: 60,
|
|
1081
|
+
paddingHorizontal: 20,
|
|
1082
|
+
paddingBottom: 40,
|
|
1083
|
+
alignItems: 'center'
|
|
1084
|
+
},
|
|
1085
|
+
securedColumn: {
|
|
1086
|
+
width: '100%',
|
|
1087
|
+
maxWidth: 440
|
|
322
1088
|
},
|
|
323
|
-
|
|
324
|
-
height:
|
|
1089
|
+
securedNav: {
|
|
1090
|
+
height: 44,
|
|
1091
|
+
flexDirection: 'row',
|
|
325
1092
|
alignItems: 'center',
|
|
326
|
-
|
|
327
|
-
backgroundColor: 'rgba(127,19,236,0.05)'
|
|
1093
|
+
zIndex: 1
|
|
328
1094
|
},
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
1095
|
+
securedArt: {
|
|
1096
|
+
height: 250,
|
|
1097
|
+
alignItems: 'center',
|
|
1098
|
+
justifyContent: 'center'
|
|
332
1099
|
},
|
|
333
|
-
|
|
334
|
-
|
|
1100
|
+
securedHeading: {
|
|
1101
|
+
marginTop: 8,
|
|
1102
|
+
alignItems: 'center',
|
|
1103
|
+
gap: 8
|
|
335
1104
|
},
|
|
336
|
-
|
|
337
|
-
fontSize:
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
1105
|
+
securedTitle: {
|
|
1106
|
+
fontSize: 40,
|
|
1107
|
+
lineHeight: 44,
|
|
1108
|
+
fontWeight: '800',
|
|
1109
|
+
color: LOBBY.text,
|
|
1110
|
+
letterSpacing: -0.8,
|
|
1111
|
+
textAlign: 'center'
|
|
1112
|
+
},
|
|
1113
|
+
securedNote: {
|
|
1114
|
+
flexDirection: 'row',
|
|
1115
|
+
alignItems: 'center',
|
|
1116
|
+
gap: 8,
|
|
1117
|
+
maxWidth: '100%'
|
|
1118
|
+
},
|
|
1119
|
+
check: {
|
|
1120
|
+
width: 22,
|
|
1121
|
+
height: 22,
|
|
1122
|
+
borderRadius: 11,
|
|
1123
|
+
backgroundColor: LOBBY.success,
|
|
1124
|
+
alignItems: 'center',
|
|
1125
|
+
justifyContent: 'center'
|
|
1126
|
+
},
|
|
1127
|
+
securedNoteText: {
|
|
1128
|
+
fontSize: 16,
|
|
1129
|
+
lineHeight: 22,
|
|
1130
|
+
color: LOBBY.muted,
|
|
1131
|
+
flexShrink: 1
|
|
1132
|
+
},
|
|
1133
|
+
summary: {
|
|
1134
|
+
marginTop: 24,
|
|
1135
|
+
height: 180,
|
|
1136
|
+
borderRadius: 24,
|
|
1137
|
+
overflow: 'hidden',
|
|
1138
|
+
backgroundColor: LOBBY.surface,
|
|
1139
|
+
borderWidth: 1,
|
|
1140
|
+
borderColor: LOBBY.border
|
|
1141
|
+
},
|
|
1142
|
+
summaryTop: {
|
|
1143
|
+
height: 89,
|
|
1144
|
+
paddingTop: 18,
|
|
1145
|
+
paddingHorizontal: 20,
|
|
1146
|
+
gap: 12
|
|
1147
|
+
},
|
|
1148
|
+
summaryBottom: {
|
|
1149
|
+
flex: 1,
|
|
1150
|
+
paddingTop: 18,
|
|
1151
|
+
paddingHorizontal: 20,
|
|
1152
|
+
gap: 12
|
|
341
1153
|
},
|
|
342
|
-
|
|
1154
|
+
summaryRow: {
|
|
343
1155
|
flexDirection: 'row',
|
|
1156
|
+
alignItems: 'baseline',
|
|
344
1157
|
justifyContent: 'space-between',
|
|
345
|
-
|
|
1158
|
+
gap: 12
|
|
346
1159
|
},
|
|
347
|
-
|
|
1160
|
+
summaryLabel: {
|
|
348
1161
|
fontSize: 14,
|
|
349
|
-
|
|
350
|
-
color:
|
|
1162
|
+
lineHeight: 20,
|
|
1163
|
+
color: LOBBY.muted
|
|
351
1164
|
},
|
|
352
|
-
|
|
353
|
-
fontSize:
|
|
354
|
-
|
|
355
|
-
|
|
1165
|
+
summaryValue: {
|
|
1166
|
+
fontSize: 16,
|
|
1167
|
+
lineHeight: 20,
|
|
1168
|
+
fontWeight: '700',
|
|
1169
|
+
color: LOBBY.text,
|
|
1170
|
+
fontVariant: ['tabular-nums'],
|
|
1171
|
+
flexShrink: 1
|
|
356
1172
|
},
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
paddingHorizontal: 20,
|
|
361
|
-
borderRadius: 12
|
|
1173
|
+
securedActions: {
|
|
1174
|
+
marginTop: 24,
|
|
1175
|
+
gap: 12
|
|
362
1176
|
},
|
|
363
|
-
|
|
364
|
-
|
|
1177
|
+
primaryAction: {
|
|
1178
|
+
height: 56,
|
|
1179
|
+
borderRadius: 999,
|
|
1180
|
+
alignItems: 'center',
|
|
1181
|
+
justifyContent: 'center',
|
|
1182
|
+
backgroundColor: LOBBY.gold,
|
|
1183
|
+
borderBottomWidth: 4,
|
|
1184
|
+
borderBottomColor: 'rgba(51, 27, 0, 0.22)'
|
|
1185
|
+
},
|
|
1186
|
+
primaryActionText: {
|
|
1187
|
+
fontSize: 16,
|
|
1188
|
+
fontWeight: '800',
|
|
1189
|
+
color: LOBBY.goldInk
|
|
1190
|
+
},
|
|
1191
|
+
secondaryAction: {
|
|
1192
|
+
...ROUND,
|
|
1193
|
+
height: 52,
|
|
1194
|
+
borderRadius: 999
|
|
1195
|
+
},
|
|
1196
|
+
secondaryActionText: {
|
|
1197
|
+
fontSize: 16,
|
|
365
1198
|
fontWeight: '700',
|
|
366
|
-
|
|
367
|
-
textTransform: 'none',
|
|
368
|
-
letterSpacing: 0
|
|
1199
|
+
color: LOBBY.text
|
|
369
1200
|
}
|
|
370
1201
|
});
|
|
371
1202
|
export default TicketShop;
|