@opexa/portal-components 0.0.705 → 0.0.707

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.
Files changed (232) hide show
  1. package/dist/client/hooks/useCreateGameSessionMutation.js +1 -1
  2. package/dist/components/DepositWithdrawal/Withdrawal/GCashStandardCashInWithdrawal/GCashStandardCashInWithdrawal.d.ts +1 -0
  3. package/dist/components/DepositWithdrawal/Withdrawal/GCashStandardCashInWithdrawal/GCashStandardCashInWithdrawal.js +141 -0
  4. package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/GCashWithdrawal.js +5 -29
  5. package/dist/components/DepositWithdrawal/Withdrawal/Withdrawal.js +10 -1
  6. package/dist/components/DepositWithdrawal/utils.d.ts +1 -1
  7. package/dist/components/DepositWithdrawal/utils.js +1 -0
  8. package/dist/components/Jackpots/Jackpots.module.css +184 -184
  9. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.module.css +184 -184
  10. package/dist/components/Jackpots/JackpotsList/JackpotsListItem.module.css +184 -184
  11. package/dist/components/KYC/KYCDefault/KYCVerificationStatus.lazy.js +2 -2
  12. package/dist/components/KYC/KYCVerificationStatus.lazy.js +7 -13
  13. package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarouselItem.module.css +184 -184
  14. package/dist/components/Tournaments/TournamentsList/TournamentItem.module.css +184 -184
  15. package/dist/constants/GameProvider.d.ts +1 -1
  16. package/dist/constants/GameProvider.js +0 -1
  17. package/dist/services/queries.d.ts +1 -1
  18. package/dist/services/queries.js +2994 -2991
  19. package/dist/styles/theme.css +773 -773
  20. package/dist/types/index.d.ts +1 -0
  21. package/dist/ui/AlertDialog/AlertDialog.d.ts +55 -55
  22. package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +5 -5
  23. package/dist/ui/Badge/Badge.d.ts +12 -12
  24. package/dist/ui/Badge/badge.anatomy.d.ts +1 -1
  25. package/dist/ui/Badge/badge.recipe.d.ts +3 -3
  26. package/dist/ui/Carousel/Carousel.d.ts +72 -72
  27. package/dist/ui/Carousel/carousel.recipe.d.ts +8 -8
  28. package/dist/ui/Checkbox/Checkbox.d.ts +23 -23
  29. package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -3
  30. package/dist/ui/Clipboard/Clipboard.d.ts +18 -18
  31. package/dist/ui/Clipboard/clipboard.recipe.d.ts +3 -3
  32. package/dist/ui/Collapsible/Collapsible.d.ts +20 -20
  33. package/dist/ui/Collapsible/collapsible.recipe.d.ts +5 -5
  34. package/dist/ui/Combobox/Combobox.d.ts +42 -42
  35. package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
  36. package/dist/ui/DatePicker/DatePicker.d.ts +72 -72
  37. package/dist/ui/DatePicker/datePicker.recipe.d.ts +3 -3
  38. package/dist/ui/Dialog/Dialog.d.ts +33 -33
  39. package/dist/ui/Dialog/dialog.recipe.d.ts +3 -3
  40. package/dist/ui/Drawer/Drawer.d.ts +33 -33
  41. package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
  42. package/dist/ui/Menu/Menu.d.ts +198 -198
  43. package/dist/ui/Menu/menu.recipe.d.ts +11 -11
  44. package/dist/ui/PasswordInput/PasswordInput.d.ts +18 -18
  45. package/dist/ui/PasswordInput/passwordInput.recipe.d.ts +3 -3
  46. package/dist/ui/Popover/Popover.d.ts +88 -88
  47. package/dist/ui/Popover/popover.recipe.d.ts +8 -8
  48. package/dist/ui/Progress/Progress.d.ts +27 -27
  49. package/dist/ui/Progress/progress.recipe.d.ts +3 -3
  50. package/dist/ui/QrCode/QrCode.d.ts +25 -25
  51. package/dist/ui/QrCode/qrCode.recipe.d.ts +5 -5
  52. package/dist/ui/SegmentGroup/SegmentGroup.d.ts +18 -18
  53. package/dist/ui/SegmentGroup/segmentGroup.recipe.d.ts +3 -3
  54. package/dist/ui/Select/Select.d.ts +45 -45
  55. package/dist/ui/Select/select.recipe.d.ts +3 -3
  56. package/dist/ui/Table/Table.d.ts +21 -21
  57. package/dist/ui/Table/table.anatomy.d.ts +1 -1
  58. package/dist/ui/Table/table.recipe.d.ts +3 -3
  59. package/dist/ui/Tabs/Tabs.d.ts +15 -15
  60. package/dist/ui/Tabs/tabs.recipe.d.ts +3 -3
  61. package/package.json +176 -176
  62. package/dist/components/DigitainLauncher/Loading.d.ts +0 -1
  63. package/dist/components/DigitainLauncher/Loading.js +0 -5
  64. package/dist/components/Disclaimer/ResponsibleGaming.d.ts +0 -10
  65. package/dist/components/Disclaimer/ResponsibleGaming.js +0 -13
  66. package/dist/components/Disclaimer/TermsOfUse.d.ts +0 -11
  67. package/dist/components/Disclaimer/TermsOfUse.js +0 -13
  68. package/dist/components/FeatureFlag/FeatureFlag.d.ts +0 -1
  69. package/dist/components/FeatureFlag/FeatureFlag.js +0 -29
  70. package/dist/components/FeatureFlag/index.d.ts +0 -1
  71. package/dist/components/FeatureFlag/index.js +0 -1
  72. package/dist/components/KYC/AutoOpen.d.ts +0 -1
  73. package/dist/components/KYC/AutoOpen.js +0 -40
  74. package/dist/components/KYC/BasicInformation.d.ts +0 -1
  75. package/dist/components/KYC/BasicInformation.js +0 -101
  76. package/dist/components/KYC/CaptureIdDocument.d.ts +0 -1
  77. package/dist/components/KYC/CaptureIdDocument.js +0 -219
  78. package/dist/components/KYC/CaptureSelfie.d.ts +0 -1
  79. package/dist/components/KYC/CaptureSelfie.js +0 -285
  80. package/dist/components/KYC/DisplayImage.d.ts +0 -5
  81. package/dist/components/KYC/DisplayImage.js +0 -8
  82. package/dist/components/KYC/FileUpload.d.ts +0 -10
  83. package/dist/components/KYC/FileUpload.js +0 -72
  84. package/dist/components/KYC/IdentityVerification.d.ts +0 -1
  85. package/dist/components/KYC/IdentityVerification.js +0 -120
  86. package/dist/components/KYC/Indicator.d.ts +0 -1
  87. package/dist/components/KYC/Indicator.js +0 -8
  88. package/dist/components/KYC/KYC.lazy.d.ts +0 -6
  89. package/dist/components/KYC/KYC.lazy.js +0 -45
  90. package/dist/components/KYC/KYCContext.d.ts +0 -6
  91. package/dist/components/KYC/KYCContext.js +0 -2
  92. package/dist/components/KYC/NoCameraError.d.ts +0 -7
  93. package/dist/components/KYC/NoCameraError.js +0 -6
  94. package/dist/components/KYC/PersonOverlayDesktop.d.ts +0 -7
  95. package/dist/components/KYC/PersonOverlayDesktop.js +0 -9
  96. package/dist/components/KYC/PersonalInformation.d.ts +0 -1
  97. package/dist/components/KYC/PersonalInformation.js +0 -122
  98. package/dist/components/KYC/backup/Header.d.ts +0 -1
  99. package/dist/components/KYC/backup/Header.js +0 -8
  100. package/dist/components/KYC/backup/Indicator.d.ts +0 -1
  101. package/dist/components/KYC/backup/Indicator.js +0 -9
  102. package/dist/components/KYC/backup/KYC.d.ts +0 -1
  103. package/dist/components/KYC/backup/KYC.js +0 -14
  104. package/dist/components/KYC/backup/KYC.lazy.d.ts +0 -1
  105. package/dist/components/KYC/backup/KYC.lazy.js +0 -26
  106. package/dist/components/KYC/backup/KYCContext.d.ts +0 -6
  107. package/dist/components/KYC/backup/KYCContext.js +0 -2
  108. package/dist/components/KYC/backup/Step1.d.ts +0 -1
  109. package/dist/components/KYC/backup/Step1.js +0 -13
  110. package/dist/components/KYC/backup/Step2.d.ts +0 -1
  111. package/dist/components/KYC/backup/Step2.js +0 -13
  112. package/dist/components/KYC/backup/Step3.d.ts +0 -1
  113. package/dist/components/KYC/backup/Step3.js +0 -13
  114. package/dist/components/KYC/backup/Step4.d.ts +0 -1
  115. package/dist/components/KYC/backup/Step4.js +0 -7
  116. package/dist/components/KYC/backup/useKYC.d.ts +0 -10
  117. package/dist/components/KYC/backup/useKYC.js +0 -8
  118. package/dist/components/KYC/loadModels.d.ts +0 -1
  119. package/dist/components/KYC/loadModels.js +0 -9
  120. package/dist/components/KYC/useKYC.d.ts +0 -25
  121. package/dist/components/KYC/useKYC.js +0 -38
  122. package/dist/components/KYC/utils.d.ts +0 -9
  123. package/dist/components/KYC/utils.js +0 -79
  124. package/dist/components/Messages/Message.d.ts +0 -1
  125. package/dist/components/Messages/Message.js +0 -35
  126. package/dist/components/Messages/MessageContext.d.ts +0 -6
  127. package/dist/components/Messages/MessageContext.js +0 -2
  128. package/dist/components/Messages/MessagePopup.d.ts +0 -1
  129. package/dist/components/Messages/MessagePopup.js +0 -20
  130. package/dist/components/Messages/MessageTrigger.d.ts +0 -8
  131. package/dist/components/Messages/MessageTrigger.js +0 -19
  132. package/dist/components/PortalProvider/CXDTokenObserver.d.ts +0 -1
  133. package/dist/components/PortalProvider/CXDTokenObserver.js +0 -30
  134. package/dist/components/Quests/CountdownTimer.d.ts +0 -15
  135. package/dist/components/Quests/CountdownTimer.js +0 -33
  136. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.d.ts +0 -4
  137. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.js +0 -78
  138. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.d.ts +0 -8
  139. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.js +0 -9
  140. package/dist/components/Quests/OnboardingQuest/OnboardingQuest.d.ts +0 -4
  141. package/dist/components/Quests/OnboardingQuest/OnboardingQuest.js +0 -4
  142. package/dist/components/Quests/WageringQuest/WageringQuest.d.ts +0 -4
  143. package/dist/components/Quests/WageringQuest/WageringQuest.js +0 -20
  144. package/dist/components/Quests/WageringQuest/WageringQuestModal.d.ts +0 -9
  145. package/dist/components/Quests/WageringQuest/WageringQuestModal.js +0 -9
  146. package/dist/components/SignIn/utils.d.ts +0 -8
  147. package/dist/components/SignIn/utils.js +0 -26
  148. package/dist/components/SignUp/SignUp.lazy.d.ts +0 -12
  149. package/dist/components/SignUp/SignUp.lazy.js +0 -18
  150. package/dist/components/SignUp/SignUpContext.d.ts +0 -6
  151. package/dist/components/SignUp/SignUpContext.js +0 -2
  152. package/dist/components/SignUp/SignUpDefault/SignUp.lazy.d.ts +0 -17
  153. package/dist/components/SignUp/SignUpDefault/SignUp.lazy.js +0 -18
  154. package/dist/components/SignUp/SignUpDefault/SignUpContext.d.ts +0 -6
  155. package/dist/components/SignUp/SignUpDefault/SignUpContext.js +0 -2
  156. package/dist/components/SignUp/SignUpDefault/SignUpForm.d.ts +0 -1
  157. package/dist/components/SignUp/SignUpDefault/SignUpForm.js +0 -310
  158. package/dist/components/SignUp/SignUpForm.d.ts +0 -1
  159. package/dist/components/SignUp/SignUpForm.js +0 -284
  160. package/dist/components/SignUp/SignUpKYC/CaptureIdDocument.d.ts +0 -1
  161. package/dist/components/SignUp/SignUpKYC/CaptureIdDocument.js +0 -198
  162. package/dist/components/SignUp/SignUpKYC/CaptureSelfie.d.ts +0 -1
  163. package/dist/components/SignUp/SignUpKYC/CaptureSelfie.js +0 -251
  164. package/dist/components/SignUp/SignUpKYC/ImageUploader.d.ts +0 -10
  165. package/dist/components/SignUp/SignUpKYC/ImageUploader.js +0 -42
  166. package/dist/components/SignUp/SignUpKYC/PersonOverlayDesktop.d.ts +0 -7
  167. package/dist/components/SignUp/SignUpKYC/PersonOverlayDesktop.js +0 -9
  168. package/dist/components/SignUp/SignUpKYC/SignUpFormKYC.d.ts +0 -1
  169. package/dist/components/SignUp/SignUpKYC/SignUpFormKYC.js +0 -464
  170. package/dist/components/SignUp/SignUpKYC/useImageUploader.d.ts +0 -11
  171. package/dist/components/SignUp/SignUpKYC/useImageUploader.js +0 -20
  172. package/dist/components/SignUp/SignUpKYC/utils.d.ts +0 -9
  173. package/dist/components/SignUp/SignUpKYC/utils.js +0 -79
  174. package/dist/components/SignUp/SignUpPagcor/CaptureIdDocument.d.ts +0 -1
  175. package/dist/components/SignUp/SignUpPagcor/CaptureIdDocument.js +0 -198
  176. package/dist/components/SignUp/SignUpPagcor/CaptureSelfie.d.ts +0 -1
  177. package/dist/components/SignUp/SignUpPagcor/CaptureSelfie.js +0 -251
  178. package/dist/components/SignUp/SignUpPagcor/ImageUploader.d.ts +0 -10
  179. package/dist/components/SignUp/SignUpPagcor/ImageUploader.js +0 -41
  180. package/dist/components/SignUp/SignUpPagcor/SignUpFormPagcor.d.ts +0 -1
  181. package/dist/components/SignUp/SignUpPagcor/SignUpFormPagcor.js +0 -429
  182. package/dist/components/SignUp/SignUpPagcor/SignUpPagcor.lazy.d.ts +0 -13
  183. package/dist/components/SignUp/SignUpPagcor/SignUpPagcor.lazy.js +0 -26
  184. package/dist/components/SignUp/SignUpPagcor/SignUpPagcorContext.d.ts +0 -7
  185. package/dist/components/SignUp/SignUpPagcor/SignUpPagcorContext.js +0 -2
  186. package/dist/components/SignUp/SignUpPagcor/useImageUploader.d.ts +0 -11
  187. package/dist/components/SignUp/SignUpPagcor/useImageUploader.js +0 -20
  188. package/dist/components/shared/IdDocumentField.client.d.ts +0 -25
  189. package/dist/components/shared/IdDocumentField.client.js +0 -204
  190. package/dist/components/shared/IdDocumentField.d.ts +0 -2
  191. package/dist/components/shared/IdDocumentField.js +0 -11
  192. package/dist/components/shared/SelfieField.client.d.ts +0 -20
  193. package/dist/components/shared/SelfieField.client.js +0 -327
  194. package/dist/components/shared/SelfieField.d.ts +0 -2
  195. package/dist/components/shared/SelfieField.js +0 -11
  196. package/dist/constants/BranchCode.d.ts +0 -4
  197. package/dist/constants/BranchCode.js +0 -42
  198. package/dist/constants/Branches.d.ts +0 -2
  199. package/dist/constants/Branches.js +0 -42
  200. package/dist/handlers/postTransformIdFrontImage.d.ts +0 -3
  201. package/dist/handlers/postTransformIdFrontImage.js +0 -67
  202. package/dist/handlers/postTransformSelfieImage.d.ts +0 -3
  203. package/dist/handlers/postTransformSelfieImage.js +0 -71
  204. package/dist/handlers.d.ts +0 -43
  205. package/dist/handlers.js +0 -297
  206. package/dist/icons/BellRingIcon.d.ts +0 -2
  207. package/dist/icons/BellRingIcon.js +0 -4
  208. package/dist/images/responsible-gaming-yellow.png +0 -0
  209. package/dist/third-parties/FacebookPixel/FacebookPixel.d.ts +0 -4
  210. package/dist/third-parties/FacebookPixel/FacebookPixel.js +0 -4
  211. package/dist/third-parties/FacebookPixel/api.d.ts +0 -0
  212. package/dist/third-parties/FacebookPixel/api.js +0 -1
  213. package/dist/third-parties/FacebookPixel/index.d.ts +0 -1
  214. package/dist/third-parties/FacebookPixel/index.js +0 -1
  215. package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.d.ts +0 -4
  216. package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.js +0 -4
  217. package/dist/third-parties/GoogleRecaptcha/api.d.ts +0 -0
  218. package/dist/third-parties/GoogleRecaptcha/api.js +0 -1
  219. package/dist/third-parties/GoogleRecaptcha/index.d.ts +0 -1
  220. package/dist/third-parties/GoogleRecaptcha/index.js +0 -1
  221. package/dist/third-parties/index.d.ts +0 -2
  222. package/dist/third-parties/index.js +0 -2
  223. package/dist/utils/dataUrlToBlob.d.ts +0 -1
  224. package/dist/utils/dataUrlToBlob.js +0 -11
  225. package/dist/utils/gamesAvailable3pmTo3am.d.ts +0 -1
  226. package/dist/utils/gamesAvailable3pmTo3am.js +0 -1
  227. package/dist/utils/getGameName.d.ts +0 -1
  228. package/dist/utils/getGameName.js +0 -6
  229. package/dist/utils/isBetween3amAnd3pm.d.ts +0 -1
  230. package/dist/utils/isBetween3amAnd3pm.js +0 -5
  231. package/dist/utils/resizeImageSize.d.ts +0 -2
  232. package/dist/utils/resizeImageSize.js +0 -11
@@ -22,7 +22,7 @@ export const useCreateGameSessionMutation = (config) => {
22
22
  game: 'reference' in game ? game.reference : game.id,
23
23
  homepageUrl: window.location.origin.includes('local')
24
24
  ? undefined
25
- : `${window.location.origin}?game-exit=true`,
25
+ : window.location.origin,
26
26
  }, {
27
27
  headers: {
28
28
  Authorization: `Bearer ${session.token}`,
@@ -0,0 +1 @@
1
+ export declare function GCashStandardCashInWithdrawal(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,141 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { zodResolver } from '@hookform/resolvers/zod';
3
+ import Link from 'next/link';
4
+ import { useEffect, useState } from 'react';
5
+ import { Controller, useForm } from 'react-hook-form';
6
+ import { z } from 'zod';
7
+ import { useShallow } from 'zustand/shallow';
8
+ import { useCreateGCashStandardCashInWithdrawalMutation } from '../../../../client/hooks/useCreateGCashStandardCashInWithdrawal.js';
9
+ import { useGlobalStore } from '../../../../client/hooks/useGlobalStore.js';
10
+ import { useLocaleInfo } from '../../../../client/hooks/useLocaleInfo.js';
11
+ import { useMobileNumberParser } from '../../../../client/hooks/useMobileNumberParser.js';
12
+ import { usePaymentSettingsQuery } from '../../../../client/hooks/usePaymentSettingsQuery.js';
13
+ import { useWalletQuery } from '../../../../client/hooks/useWalletQuery.js';
14
+ import { AlertCircleIcon } from '../../../../icons/AlertCircleIcon.js';
15
+ import { ChevronDownIcon } from '../../../../icons/ChevronDownIcon.js';
16
+ import { ChevronUpIcon } from '../../../../icons/ChevronUpIcon.js';
17
+ import { EyeIcon } from '../../../../icons/EyeIcon.js';
18
+ import { EyeOffIcon } from '../../../../icons/EyeOffIcon.js';
19
+ import { SpinnerIcon } from '../../../../icons/SpinnerIcon.js';
20
+ import { XIcon } from '../../../../icons/XIcon.js';
21
+ import { AlertDialog } from '../../../../ui/AlertDialog/index.js';
22
+ import { Button } from '../../../../ui/Button/index.js';
23
+ import { Field } from '../../../../ui/Field/index.js';
24
+ import { NumberInput } from '../../../../ui/NumberInput/index.js';
25
+ import { PasswordInput } from '../../../../ui/PasswordInput/index.js';
26
+ import { Portal } from '../../../../ui/Portal/index.js';
27
+ import { parseDecimal } from '../../../../utils/parseDecimal.js';
28
+ import { AmountChoices } from '../../AmountChoices.js';
29
+ import { useDepositWithdrawalPropsContext } from '../../DepositWithdrawalContext.js';
30
+ import { explainError } from '../../utils.js';
31
+ import { ActiveTurnoverRequirement } from '../ActiveTurnoverRequirement.js';
32
+ import { TransactionPasswordNotSet } from '../TransactionPasswordNotSet.js';
33
+ export function GCashStandardCashInWithdrawal() {
34
+ const depositWithdrawalProps = useDepositWithdrawalPropsContext();
35
+ const globalStore = useGlobalStore(useShallow((ctx) => ({
36
+ depositWithdrawal: ctx.depositWithdrawal,
37
+ hasPendingBonus: ctx.pendingBonus,
38
+ })));
39
+ const [status, setStatus] = useState('waiting');
40
+ const localeInfo = useLocaleInfo();
41
+ const mobileNumberParser = useMobileNumberParser();
42
+ const walletQuery = useWalletQuery();
43
+ const turnoverRequirement = parseDecimal(walletQuery.data?.turnoverRequirement, 0);
44
+ const createWithdrawalMutation = useCreateGCashStandardCashInWithdrawalMutation({
45
+ onMutate() {
46
+ setStatus('processing');
47
+ },
48
+ onSuccess() {
49
+ setStatus('success');
50
+ form.reset();
51
+ },
52
+ onError() {
53
+ setStatus('failed');
54
+ },
55
+ });
56
+ const paymentSettingsQuery = usePaymentSettingsQuery();
57
+ const paymentSettings = paymentSettingsQuery.data;
58
+ const gatewaySettings = paymentSettings?.gcashWithdrawalGatewaySettings;
59
+ const minimumAmount = parseDecimal(gatewaySettings?.minimumAmount, 0);
60
+ const maximumAmount = parseDecimal(gatewaySettings?.maximumAmount, 0);
61
+ const definition = z.object({
62
+ amount: z.string().superRefine((val, ctx) => {
63
+ const n = parseDecimal(val, 0);
64
+ if (n < minimumAmount) {
65
+ ctx.addIssue({
66
+ type: 'number',
67
+ code: z.ZodIssueCode.too_small,
68
+ inclusive: true,
69
+ minimum: minimumAmount,
70
+ message: `Minimum amount is ${minimumAmount.toLocaleString()}`,
71
+ });
72
+ }
73
+ if (n > maximumAmount) {
74
+ ctx.addIssue({
75
+ type: 'number',
76
+ code: z.ZodIssueCode.too_big,
77
+ inclusive: true,
78
+ maximum: maximumAmount,
79
+ message: `Maximum amount is ${maximumAmount.toLocaleString()}`,
80
+ });
81
+ }
82
+ }),
83
+ password: z
84
+ .string()
85
+ .min(8, 'Password must be 8 or more characters')
86
+ .max(64, 'Password must be not be more than 64 characters'),
87
+ mobileNumber: z
88
+ .string()
89
+ .regex(localeInfo.mobileNumber.pattern, 'Invalid mobile number'),
90
+ });
91
+ const form = useForm({
92
+ mode: 'all',
93
+ resolver: zodResolver(definition),
94
+ defaultValues: {
95
+ amount: '0',
96
+ password: '',
97
+ mobileNumber: '',
98
+ },
99
+ });
100
+ useEffect(() => {
101
+ if (minimumAmount) {
102
+ form.reset({
103
+ amount: minimumAmount.toString(),
104
+ password: '',
105
+ mobileNumber: '',
106
+ });
107
+ }
108
+ }, [form, minimumAmount]);
109
+ const handleSubmit = form.handleSubmit(async (data) => {
110
+ if (globalStore.hasPendingBonus.shouldShowWarning) {
111
+ globalStore.hasPendingBonus.setOpen(true);
112
+ return;
113
+ }
114
+ createWithdrawalMutation.mutate({
115
+ amount: data.amount,
116
+ recipientMobileNumber: mobileNumberParser.format(data.mobileNumber),
117
+ transactionPassword: data.password,
118
+ });
119
+ });
120
+ return (_jsxs("form", { onSubmit: handleSubmit, noValidate: true, autoComplete: "off", children: [_jsxs(Field.Root, { invalid: !!form.formState.errors.mobileNumber, children: [_jsx(Field.Label, { children: "Mobile Number" }), _jsxs("div", { className: "relative", children: [_jsx(localeInfo.country.flag, { className: "-translate-y-1/2 pointer-events-none absolute top-1/2 left-3.5 size-5" }), _jsx(Field.Input, { className: "pl-10.5", ...form.register('mobileNumber') })] }), _jsx(Field.ErrorText, { children: form.formState.errors.mobileNumber?.message })] }), _jsx(Controller, { control: form.control, name: "amount", render: (o) => (_jsxs(Field.Root, { invalid: !!form.formState.errors.amount, className: "mt-3xl", children: [_jsxs(NumberInput.Root, { min: 0, step: 1, value: o.field.value, onValueChange: (details) => {
121
+ o.field.onChange(details.value);
122
+ }, formatOptions: {
123
+ maximumFractionDigits: 2,
124
+ minimumFractionDigits: 0,
125
+ }, allowMouseWheel: true, children: [_jsx(NumberInput.Label, { children: "Enter amount you want to withdraw" }), _jsxs(NumberInput.Control, { children: [_jsx(NumberInput.Input, {}), _jsx(NumberInput.IncrementTrigger, { children: _jsx(ChevronUpIcon, {}) }), _jsx(NumberInput.DecrementTrigger, { children: _jsx(ChevronDownIcon, {}) })] })] }), _jsx(Field.ErrorText, { children: form.formState.errors.amount?.message })] })) }), _jsx(AmountChoices, { value: parseDecimal(form.watch('amount'), 0), onChange: (value) => {
126
+ form.setValue('amount', value.toString(), {
127
+ shouldTouch: true,
128
+ shouldDirty: true,
129
+ shouldValidate: true,
130
+ });
131
+ }, min: minimumAmount, max: maximumAmount, className: "mt-xl" }), _jsxs(Field.Root, { className: "mt-3xl", invalid: !!form.formState.errors.password, children: [_jsxs(PasswordInput.Root, { children: [_jsx(PasswordInput.Label, { children: "Transaction Password" }), _jsxs(PasswordInput.Control, { children: [_jsx(PasswordInput.Input, { placeholder: "Enter password", ...form.register('password') }), _jsx(PasswordInput.VisibilityTrigger, { children: _jsx(PasswordInput.Indicator, { fallback: _jsx(EyeOffIcon, {}), asChild: true, children: _jsx(EyeIcon, {}) }) })] })] }), _jsx(Field.ErrorText, { children: form.formState.errors.password?.message })] }), _jsx(TransactionPasswordNotSet, {}), _jsx(ActiveTurnoverRequirement, {}), _jsx(Button, { type: "submit", className: "mt-6", disabled: createWithdrawalMutation.isPending || turnoverRequirement > 0, children: "Withdraw" }), depositWithdrawalProps.hasPrivacyPolicyAndTermsOfUse && (_jsxs("p", { className: "mt-lg text-text-tertiary-600 text-xs", children: ["Upon withdrawing, you agree to our", ' ', _jsx(Link, { href: depositWithdrawalProps.termsOfUseUrl ?? '/terms-of-use', onClick: () => globalStore.depositWithdrawal.setOpen(false), className: "text-text-warning-primary-600 underline underline-offset-2", children: "Terms of Use" }), ' ', "and", ' ', _jsx(Link, { href: depositWithdrawalProps.privacyPolicyUrl ?? '/privacy-policy', onClick: () => globalStore.depositWithdrawal.setOpen(false), className: "text-text-warning-primary-600 underline underline-offset-2", children: "Privacy Policy" }), "."] })), _jsx(AlertDialog.Root, { open: status !== 'waiting', onOpenChange: (details) => {
132
+ if (!details.open) {
133
+ setStatus('waiting');
134
+ }
135
+ }, lazyMount: true, unmountOnExit: true, children: _jsxs(Portal, { children: [_jsx(AlertDialog.Backdrop, { className: "!z-[calc(var(--z-dialog)+2)]" }), _jsx(AlertDialog.Positioner, { className: "!z-[calc(var(--z-dialog)+3)]", children: _jsxs(AlertDialog.Content, { children: [_jsx(AlertDialog.CloseTrigger, { disabled: status === 'processing', children: _jsx(XIcon, {}) }), _jsxs(AlertDialog.Header, { children: [status === 'processing' && (_jsx(SpinnerIcon, { className: "size-12 text-text-brand-primary-600" })), status === 'success' && (_jsx("div", { className: "flex size-12 items-center justify-center rounded-full bg-bg-success-secondary text-text-featured-icon-light-success", children: _jsx(AlertCircleIcon, {}) })), status === 'failed' && (_jsx("div", { className: "flex size-12 items-center justify-center rounded-full bg-bg-error-secondary text-text-featured-icon-light-error", children: _jsx(AlertCircleIcon, {}) }))] }), _jsxs(AlertDialog.Body, { children: [_jsxs(AlertDialog.Title, { children: [status === 'processing' && 'Processing Withdraw', status === 'success' && 'Withdrawal Submitted', status === 'failed' && 'Withdraw Failed'] }), _jsxs(AlertDialog.Description, { children: [status === 'processing' &&
136
+ "We're verifying your account and amount. Please hold a moment.", status === 'success' &&
137
+ 'Your withdrawal request has been submitted successfully and is awaiting confirmation. You won’t have to wait long — once approved, the funds will be credited to your account.', status === 'failed' &&
138
+ explainError(createWithdrawalMutation.error?.name)] })] }), (status === 'failed' || status === 'success') && (_jsx(AlertDialog.Footer, { children: _jsx(AlertDialog.Context, { children: (api) => (_jsx(Button, { onClick: () => {
139
+ api.setOpen(false);
140
+ }, children: status === 'failed' ? 'Try Again' : 'Ok' })) }) }))] }) })] }) })] }));
141
+ }
@@ -5,9 +5,7 @@ import { useEffect, useState } from 'react';
5
5
  import { Controller, useForm } from 'react-hook-form';
6
6
  import { z } from 'zod';
7
7
  import { useShallow } from 'zustand/shallow';
8
- import { useCreateGCashStandardCashInWithdrawalMutation } from '../../../../client/hooks/useCreateGCashStandardCashInWithdrawal.js';
9
8
  import { useCreateGCashWithdrawalMutation } from '../../../../client/hooks/useCreateGCashWithdrawalMutation.js';
10
- import { useFeatureFlag } from '../../../../client/hooks/useFeatureFlag.js';
11
9
  import { useGlobalStore } from '../../../../client/hooks/useGlobalStore.js';
12
10
  import { useLocaleInfo } from '../../../../client/hooks/useLocaleInfo.js';
13
11
  import { useMobileNumberParser } from '../../../../client/hooks/useMobileNumberParser.js';
@@ -34,7 +32,6 @@ import { ActiveTurnoverRequirement } from '../ActiveTurnoverRequirement.js';
34
32
  import { TransactionPasswordNotSet } from '../TransactionPasswordNotSet.js';
35
33
  export function GCashWithdrawal() {
36
34
  const depositWithdrawalProps = useDepositWithdrawalPropsContext();
37
- const featureFlag = useFeatureFlag();
38
35
  const globalStore = useGlobalStore(useShallow((ctx) => ({
39
36
  depositWithdrawal: ctx.depositWithdrawal,
40
37
  hasPendingBonus: ctx.pendingBonus,
@@ -44,18 +41,6 @@ export function GCashWithdrawal() {
44
41
  const mobileNumberParser = useMobileNumberParser();
45
42
  const walletQuery = useWalletQuery();
46
43
  const turnoverRequirement = parseDecimal(walletQuery.data?.turnoverRequirement, 0);
47
- const createWithdrawalMutationNext = useCreateGCashStandardCashInWithdrawalMutation({
48
- onMutate() {
49
- setStatus('processing');
50
- },
51
- onSuccess() {
52
- setStatus('success');
53
- form.reset();
54
- },
55
- onError() {
56
- setStatus('failed');
57
- },
58
- });
59
44
  const createWithdrawalMutation = useCreateGCashWithdrawalMutation({
60
45
  onMutate() {
61
46
  setStatus('processing');
@@ -126,20 +111,11 @@ export function GCashWithdrawal() {
126
111
  globalStore.hasPendingBonus.setOpen(true);
127
112
  return;
128
113
  }
129
- if (featureFlag.enabled) {
130
- createWithdrawalMutationNext.mutate({
131
- amount: data.amount,
132
- recipientMobileNumber: mobileNumberParser.format(data.mobileNumber),
133
- transactionPassword: data.password,
134
- });
135
- }
136
- if (!featureFlag.enabled) {
137
- createWithdrawalMutation.mutate({
138
- amount: data.amount,
139
- recipientMobileNumber: mobileNumberParser.format(data.mobileNumber),
140
- transactionPassword: data.password,
141
- });
142
- }
114
+ createWithdrawalMutation.mutate({
115
+ amount: data.amount,
116
+ recipientMobileNumber: mobileNumberParser.format(data.mobileNumber),
117
+ transactionPassword: data.password,
118
+ });
143
119
  });
144
120
  return (_jsxs("form", { onSubmit: handleSubmit, noValidate: true, autoComplete: "off", children: [_jsxs(Field.Root, { invalid: !!form.formState.errors.mobileNumber, children: [_jsx(Field.Label, { children: "Mobile Number" }), _jsxs("div", { className: "relative", children: [_jsx(localeInfo.country.flag, { className: "-translate-y-1/2 pointer-events-none absolute top-1/2 left-3.5 size-5" }), _jsx(Field.Input, { className: "pl-10.5", ...form.register('mobileNumber') })] }), _jsx(Field.ErrorText, { children: form.formState.errors.mobileNumber?.message })] }), _jsx(Controller, { control: form.control, name: "amount", render: (o) => (_jsxs(Field.Root, { invalid: !!form.formState.errors.amount, className: "mt-3xl", children: [_jsxs(NumberInput.Root, { min: 0, step: 1, value: o.field.value, onValueChange: (details) => {
145
121
  o.field.onChange(details.value);
@@ -1,6 +1,7 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useEffect, useState } from 'react';
3
3
  import { useShallow } from 'zustand/shallow';
4
+ import { useFeatureFlag } from '../../../client/hooks/useFeatureFlag.js';
4
5
  import { useGlobalStore } from '../../../client/hooks/useGlobalStore.js';
5
6
  import { useIsMayaSessionValidQuery } from '../../../client/hooks/useIsMayaSessionValidQuery.js';
6
7
  import { useMayaAuth } from '../../../client/hooks/useMayaAuth.js';
@@ -14,6 +15,7 @@ import { onMobileDevice } from '../../../utils/onMobileDevice.js';
14
15
  import { parseDecimal } from '../../../utils/parseDecimal.js';
15
16
  import { useDepositWithdrawalPropsContext } from '../DepositWithdrawalContext.js';
16
17
  import { PaymentMethods } from '../PaymentMethods.js';
18
+ import { GCashStandardCashInWithdrawal } from './GCashStandardCashInWithdrawal/GCashStandardCashInWithdrawal.js';
17
19
  import { GCashWithdrawal } from './GCashWithdrawal/GCashWithdrawal.js';
18
20
  import { InstapayWithdrawal } from './InstapayWithdrawal/InstapayWithdrawal.js';
19
21
  import { MayaAppWithdrawal } from './MayaAppWithdrawal/MayaAppWithdrawal.js';
@@ -24,6 +26,7 @@ export function Withdrawal() {
24
26
  const { onMaya } = useMayaAuth();
25
27
  const { allowUnverifiedAccounts } = useDepositWithdrawalPropsContext();
26
28
  const walletQuery = useWalletQuery();
29
+ const featureFlag = useFeatureFlag();
27
30
  const wallet = walletQuery.data;
28
31
  const paymentSettingsQuery = usePaymentSettingsQuery();
29
32
  const paymentSettings = paymentSettingsQuery.data;
@@ -64,6 +67,12 @@ export function Withdrawal() {
64
67
  condition: () => paymentSettings?.pisoPayWithdrawalGatewaySettings?.[enabledKey] ||
65
68
  false,
66
69
  },
70
+ {
71
+ method: 'GCASH_STANDARD_CASH_IN',
72
+ condition: () => !featureFlag.enabled
73
+ ? false
74
+ : paymentSettings?.gcashStandardCashInWithdrawalGatewaySettings?.[enabledKey] || false,
75
+ },
67
76
  ];
68
77
  paymentMethods.forEach(({ method, condition }) => {
69
78
  if (condition()) {
@@ -99,7 +108,7 @@ export function Withdrawal() {
99
108
  if (enabledPaymentMethods.length <= 0) {
100
109
  return _jsx(NoAvailablePaymentMethods, {});
101
110
  }
102
- return (_jsxs(_Fragment, { children: [_jsx(PaymentMethods, { value: paymentMethod, onChange: setPaymentMethod, options: enabledPaymentMethods }), paymentMethod === 'GCASH' && _jsx(GCashWithdrawal, {}), paymentMethod === 'MAYA' && _jsx(MayaWithdrawal, {}), paymentMethod === 'MAYA_APP' && _jsx(MayaAppWithdrawal, {}), paymentMethod === 'INSTAPAY' && _jsx(InstapayWithdrawal, {}), paymentMethod === 'VENTAJA_DISBURSEMENT' && _jsx(VentajaWithdrawal, {}), paymentMethod === 'PISO_PAY' && _jsx(PisoPayWithdrawal, {})] }));
111
+ return (_jsxs(_Fragment, { children: [_jsx(PaymentMethods, { value: paymentMethod, onChange: setPaymentMethod, options: enabledPaymentMethods }), paymentMethod === 'GCASH' && _jsx(GCashWithdrawal, {}), paymentMethod === 'MAYA' && _jsx(MayaWithdrawal, {}), paymentMethod === 'MAYA_APP' && _jsx(MayaAppWithdrawal, {}), paymentMethod === 'INSTAPAY' && _jsx(InstapayWithdrawal, {}), paymentMethod === 'VENTAJA_DISBURSEMENT' && _jsx(VentajaWithdrawal, {}), paymentMethod === 'PISO_PAY' && _jsx(PisoPayWithdrawal, {}), paymentMethod === 'GCASH_STANDARD_CASH_IN' && (_jsx(GCashStandardCashInWithdrawal, {}))] }));
103
112
  }
104
113
  function AccountVerificationRequired() {
105
114
  const globalStore = useGlobalStore(useShallow((ctx) => ({
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import type { KnownDepositError, KnownWithdrawalError, WithdrawalError } from '../../types';
3
- export declare const PaymentMethodDefinition: z.ZodEnum<["GCASH", "MAYA_APP", "MAYA", "ONLINE_BANK", "QRPH", "INSTAPAY", "LIBANGAN_PAY_IN", "VENTAJA_DISBURSEMENT", "PISO_PAY", "AIO_GCASH", "AIO_PAY_MAYA", "AIO_GRAB_PAY", "AIO_PALAWAN_PAY", "GCASH_WEBPAY"]>;
3
+ export declare const PaymentMethodDefinition: z.ZodEnum<["GCASH", "GCASH_STANDARD_CASH_IN", "MAYA_APP", "MAYA", "ONLINE_BANK", "QRPH", "INSTAPAY", "LIBANGAN_PAY_IN", "VENTAJA_DISBURSEMENT", "PISO_PAY", "AIO_GCASH", "AIO_PAY_MAYA", "AIO_GRAB_PAY", "AIO_PALAWAN_PAY", "GCASH_WEBPAY"]>;
4
4
  export type PaymentMethod = z.infer<typeof PaymentMethodDefinition>;
5
5
  export type DepositWithdrawalErrors = KnownDepositError | KnownWithdrawalError | WithdrawalError | string;
6
6
  export declare function explainError(error?: DepositWithdrawalErrors): string;
@@ -1,6 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  export const PaymentMethodDefinition = z.enum([
3
3
  'GCASH',
4
+ 'GCASH_STANDARD_CASH_IN',
4
5
  'MAYA_APP',
5
6
  'MAYA',
6
7
  'ONLINE_BANK',
@@ -1,184 +1,184 @@
1
- @keyframes arrow-green-flash {
2
- 0% {
3
- color: #abefc6;
4
- }
5
- 100% {
6
- color: #079455;
7
- }
8
- }
9
-
10
- .animate-arrow-green-flash-1 {
11
- animation: arrow-green-flash 0.4s infinite;
12
- animation-delay: -0.2s;
13
- }
14
-
15
- .animate-arrow-green-flash-2 {
16
- animation: arrow-green-flash 0.4s infinite;
17
- animation-delay: -0.1s;
18
- }
19
-
20
- .animate-arrow-green-flash-3 {
21
- animation: arrow-green-flash 0.4s infinite;
22
- }
23
-
24
- @keyframes arrow-red-flash {
25
- 0%,
26
- 100% {
27
- color: #f97066;
28
- }
29
- 50% {
30
- color: #fecdca;
31
- }
32
- }
33
-
34
- .animate-arrow-red-flash-1 {
35
- animation: arrow-red-flash 0.4s infinite;
36
- }
37
-
38
- .animate-arrow-red-flash-2 {
39
- animation: arrow-red-flash 0.4s infinite;
40
- animation-delay: -0.1s;
41
- }
42
-
43
- .animate-arrow-red-flash-3 {
44
- animation: arrow-red-flash 0.4s infinite;
45
- animation-delay: -0.2s;
46
- }
47
-
48
- /* Animated BG */
49
- @keyframes rotate {
50
- to {
51
- transform: rotate(1turn);
52
- }
53
- }
54
-
55
- .light-rays {
56
- position: absolute;
57
- top: 0;
58
- left: 0;
59
- right: 0;
60
- bottom: 0;
61
- overflow: hidden;
62
-
63
- --first: var(--color-jackpot-rays-primary);
64
- --second: var(--color-jackpot-rays-secondary);
65
- }
66
-
67
- .light-rays::before,
68
- .light-rays::after {
69
- content: '';
70
- position: absolute;
71
- top: var(--light-rays-top, 150px);
72
- left: calc(50% - 90px);
73
- margin: -100vmax;
74
- width: 200vmax;
75
- height: 200vmax;
76
- opacity: 0.6;
77
- transform-origin: center;
78
- }
79
-
80
- .light-rays::before {
81
- background: conic-gradient(
82
- var(--first) 0deg 7.2deg,
83
- var(--second) 7.2deg 14.4deg,
84
- var(--first) 14.4deg 21.6deg,
85
- var(--second) 21.6deg 28.8deg,
86
- var(--first) 28.8deg 36deg,
87
- var(--second) 36deg 43.2deg,
88
- var(--first) 43.2deg 50.4deg,
89
- var(--second) 50.4deg 57.6deg,
90
- var(--first) 57.6deg 64.8deg,
91
- var(--second) 64.8deg 72deg,
92
- var(--first) 72deg 79.2deg,
93
- var(--second) 79.2deg 86.4deg,
94
- var(--first) 86.4deg 93.6deg,
95
- var(--second) 93.6deg 100.8deg,
96
- var(--first) 100.8deg 108deg,
97
- var(--second) 108deg 115.2deg,
98
- var(--first) 115.2deg 122.4deg,
99
- var(--second) 122.4deg 129.6deg,
100
- var(--first) 129.6deg 136.8deg,
101
- var(--second) 136.8deg 144deg,
102
- var(--first) 144deg 151.2deg,
103
- var(--second) 151.2deg 158.4deg,
104
- var(--first) 158.4deg 165.6deg,
105
- var(--second) 165.6deg 172.8deg,
106
- var(--first) 172.8deg 180deg,
107
- var(--second) 180deg 187.2deg,
108
- var(--first) 187.2deg 194.4deg,
109
- var(--second) 194.4deg 201.6deg,
110
- var(--first) 201.6deg 208.8deg,
111
- var(--second) 208.8deg 216deg,
112
- var(--first) 216deg 223.2deg,
113
- var(--second) 223.2deg 230.4deg,
114
- var(--first) 230.4deg 237.6deg,
115
- var(--second) 237.6deg 244.8deg,
116
- var(--first) 244.8deg 252deg,
117
- var(--second) 252deg 259.2deg,
118
- var(--first) 259.2deg 266.4deg,
119
- var(--second) 266.4deg 273.6deg,
120
- var(--first) 273.6deg 280.8deg,
121
- var(--second) 280.8deg 288deg,
122
- var(--first) 288deg 295.2deg,
123
- var(--second) 295.2deg 302.4deg,
124
- var(--first) 302.4deg 309.6deg,
125
- var(--second) 309.6deg 316.8deg,
126
- var(--first) 316.8deg 324deg,
127
- var(--second) 324deg 331.2deg,
128
- var(--first) 331.2deg 338.4deg,
129
- var(--second) 338.4deg 345.6deg,
130
- var(--first) 345.6deg 352.8deg,
131
- var(--second) 352.8deg 360deg
132
- );
133
- animation: rotate 20s linear infinite;
134
- }
135
-
136
- @media (max-width: 1024px) {
137
- .light-rays::before,
138
- .light-rays::after {
139
- left: auto;
140
- right: 11%;
141
- }
142
- }
143
-
144
- /* ScrollArea.module.css */
145
- .scrollArea {
146
- overflow-y: scroll;
147
- padding-right: 4px;
148
- }
149
-
150
- /* WebKit-based browsers */
151
- .scrollArea::-webkit-scrollbar {
152
- width: 8px;
153
- }
154
-
155
- .scrollArea::-webkit-scrollbar-track {
156
- background: var(--color-jackpot-table-scrollbar-track);
157
- border-radius: 9999px;
158
- }
159
-
160
- .scrollArea::-webkit-scrollbar-thumb {
161
- background-color: var(--color-jackpot-table-scrollbar-thumb);
162
- border-radius: 9999px;
163
- }
164
-
165
- @keyframes waveColor {
166
- 0%,
167
- 2.5% {
168
- color: var(--wave-highlight-color);
169
- }
170
- 2.51%,
171
- 100% {
172
- color: var(--color-brand-300);
173
- }
174
- }
175
-
176
- .animate-wave-color-success {
177
- --wave-highlight-color: var(--color-success-800);
178
- animation: waveColor 4s ease-in-out infinite;
179
- }
180
-
181
- .animate-wave-color-error {
182
- --wave-highlight-color: var(--color-error-600);
183
- animation: waveColor 4s ease-in-out infinite;
184
- }
1
+ @keyframes arrow-green-flash {
2
+ 0% {
3
+ color: #abefc6;
4
+ }
5
+ 100% {
6
+ color: #079455;
7
+ }
8
+ }
9
+
10
+ .animate-arrow-green-flash-1 {
11
+ animation: arrow-green-flash 0.4s infinite;
12
+ animation-delay: -0.2s;
13
+ }
14
+
15
+ .animate-arrow-green-flash-2 {
16
+ animation: arrow-green-flash 0.4s infinite;
17
+ animation-delay: -0.1s;
18
+ }
19
+
20
+ .animate-arrow-green-flash-3 {
21
+ animation: arrow-green-flash 0.4s infinite;
22
+ }
23
+
24
+ @keyframes arrow-red-flash {
25
+ 0%,
26
+ 100% {
27
+ color: #f97066;
28
+ }
29
+ 50% {
30
+ color: #fecdca;
31
+ }
32
+ }
33
+
34
+ .animate-arrow-red-flash-1 {
35
+ animation: arrow-red-flash 0.4s infinite;
36
+ }
37
+
38
+ .animate-arrow-red-flash-2 {
39
+ animation: arrow-red-flash 0.4s infinite;
40
+ animation-delay: -0.1s;
41
+ }
42
+
43
+ .animate-arrow-red-flash-3 {
44
+ animation: arrow-red-flash 0.4s infinite;
45
+ animation-delay: -0.2s;
46
+ }
47
+
48
+ /* Animated BG */
49
+ @keyframes rotate {
50
+ to {
51
+ transform: rotate(1turn);
52
+ }
53
+ }
54
+
55
+ .light-rays {
56
+ position: absolute;
57
+ top: 0;
58
+ left: 0;
59
+ right: 0;
60
+ bottom: 0;
61
+ overflow: hidden;
62
+
63
+ --first: var(--color-jackpot-rays-primary);
64
+ --second: var(--color-jackpot-rays-secondary);
65
+ }
66
+
67
+ .light-rays::before,
68
+ .light-rays::after {
69
+ content: '';
70
+ position: absolute;
71
+ top: var(--light-rays-top, 150px);
72
+ left: calc(50% - 90px);
73
+ margin: -100vmax;
74
+ width: 200vmax;
75
+ height: 200vmax;
76
+ opacity: 0.6;
77
+ transform-origin: center;
78
+ }
79
+
80
+ .light-rays::before {
81
+ background: conic-gradient(
82
+ var(--first) 0deg 7.2deg,
83
+ var(--second) 7.2deg 14.4deg,
84
+ var(--first) 14.4deg 21.6deg,
85
+ var(--second) 21.6deg 28.8deg,
86
+ var(--first) 28.8deg 36deg,
87
+ var(--second) 36deg 43.2deg,
88
+ var(--first) 43.2deg 50.4deg,
89
+ var(--second) 50.4deg 57.6deg,
90
+ var(--first) 57.6deg 64.8deg,
91
+ var(--second) 64.8deg 72deg,
92
+ var(--first) 72deg 79.2deg,
93
+ var(--second) 79.2deg 86.4deg,
94
+ var(--first) 86.4deg 93.6deg,
95
+ var(--second) 93.6deg 100.8deg,
96
+ var(--first) 100.8deg 108deg,
97
+ var(--second) 108deg 115.2deg,
98
+ var(--first) 115.2deg 122.4deg,
99
+ var(--second) 122.4deg 129.6deg,
100
+ var(--first) 129.6deg 136.8deg,
101
+ var(--second) 136.8deg 144deg,
102
+ var(--first) 144deg 151.2deg,
103
+ var(--second) 151.2deg 158.4deg,
104
+ var(--first) 158.4deg 165.6deg,
105
+ var(--second) 165.6deg 172.8deg,
106
+ var(--first) 172.8deg 180deg,
107
+ var(--second) 180deg 187.2deg,
108
+ var(--first) 187.2deg 194.4deg,
109
+ var(--second) 194.4deg 201.6deg,
110
+ var(--first) 201.6deg 208.8deg,
111
+ var(--second) 208.8deg 216deg,
112
+ var(--first) 216deg 223.2deg,
113
+ var(--second) 223.2deg 230.4deg,
114
+ var(--first) 230.4deg 237.6deg,
115
+ var(--second) 237.6deg 244.8deg,
116
+ var(--first) 244.8deg 252deg,
117
+ var(--second) 252deg 259.2deg,
118
+ var(--first) 259.2deg 266.4deg,
119
+ var(--second) 266.4deg 273.6deg,
120
+ var(--first) 273.6deg 280.8deg,
121
+ var(--second) 280.8deg 288deg,
122
+ var(--first) 288deg 295.2deg,
123
+ var(--second) 295.2deg 302.4deg,
124
+ var(--first) 302.4deg 309.6deg,
125
+ var(--second) 309.6deg 316.8deg,
126
+ var(--first) 316.8deg 324deg,
127
+ var(--second) 324deg 331.2deg,
128
+ var(--first) 331.2deg 338.4deg,
129
+ var(--second) 338.4deg 345.6deg,
130
+ var(--first) 345.6deg 352.8deg,
131
+ var(--second) 352.8deg 360deg
132
+ );
133
+ animation: rotate 20s linear infinite;
134
+ }
135
+
136
+ @media (max-width: 1024px) {
137
+ .light-rays::before,
138
+ .light-rays::after {
139
+ left: auto;
140
+ right: 11%;
141
+ }
142
+ }
143
+
144
+ /* ScrollArea.module.css */
145
+ .scrollArea {
146
+ overflow-y: scroll;
147
+ padding-right: 4px;
148
+ }
149
+
150
+ /* WebKit-based browsers */
151
+ .scrollArea::-webkit-scrollbar {
152
+ width: 8px;
153
+ }
154
+
155
+ .scrollArea::-webkit-scrollbar-track {
156
+ background: var(--color-jackpot-table-scrollbar-track);
157
+ border-radius: 9999px;
158
+ }
159
+
160
+ .scrollArea::-webkit-scrollbar-thumb {
161
+ background-color: var(--color-jackpot-table-scrollbar-thumb);
162
+ border-radius: 9999px;
163
+ }
164
+
165
+ @keyframes waveColor {
166
+ 0%,
167
+ 2.5% {
168
+ color: var(--wave-highlight-color);
169
+ }
170
+ 2.51%,
171
+ 100% {
172
+ color: var(--color-brand-300);
173
+ }
174
+ }
175
+
176
+ .animate-wave-color-success {
177
+ --wave-highlight-color: var(--color-success-800);
178
+ animation: waveColor 4s ease-in-out infinite;
179
+ }
180
+
181
+ .animate-wave-color-error {
182
+ --wave-highlight-color: var(--color-error-600);
183
+ animation: waveColor 4s ease-in-out infinite;
184
+ }