@opexa/portal-components 0.0.650 → 0.0.651

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/components/Account/Wallet.js +23 -9
  2. package/dist/components/DepositWithdrawal/Withdrawal/ActiveTurnoverRequirement.d.ts +1 -0
  3. package/dist/components/DepositWithdrawal/Withdrawal/ActiveTurnoverRequirement.js +27 -0
  4. package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/GCashWithdrawal.js +2 -1
  5. package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.js +2 -1
  6. package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/MayaAppWithdrawal.js +2 -1
  7. package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal/MayaWithdrawal.js +2 -1
  8. package/dist/components/DepositWithdrawal/Withdrawal/PisoPayWithdrawal/PisoPayWithdrawal.js +2 -1
  9. package/dist/components/DepositWithdrawal/Withdrawal/VentajaWithdrawal/VentajaWithdrawal.js +2 -1
  10. package/dist/components/Jackpots/Jackpots.module.css +184 -184
  11. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.module.css +184 -184
  12. package/dist/components/Jackpots/JackpotsList/JackpotsListItem.module.css +184 -184
  13. package/dist/components/KYC/KYCDefault/KYCVerificationStatus.lazy.js +2 -2
  14. package/dist/components/KYC/KYCVerificationStatus.lazy.js +7 -13
  15. package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarouselItem.module.css +184 -184
  16. package/dist/components/Tournaments/TournamentsList/TournamentItem.module.css +184 -184
  17. package/dist/handlers/postToken.d.ts +6 -6
  18. package/dist/icons/BankNote01Icon.d.ts +2 -0
  19. package/dist/icons/BankNote01Icon.js +4 -0
  20. package/dist/services/queries.d.ts +1 -1
  21. package/dist/services/queries.js +2759 -2758
  22. package/dist/services/wallet.d.ts +1 -0
  23. package/dist/services/wallet.js +3 -0
  24. package/dist/styles/theme.css +773 -773
  25. package/dist/types/index.d.ts +1 -0
  26. package/dist/ui/AlertDialog/AlertDialog.d.ts +55 -55
  27. package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +5 -5
  28. package/dist/ui/Badge/Badge.d.ts +12 -12
  29. package/dist/ui/Badge/badge.anatomy.d.ts +1 -1
  30. package/dist/ui/Badge/badge.recipe.d.ts +3 -3
  31. package/dist/ui/Checkbox/Checkbox.d.ts +23 -23
  32. package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -3
  33. package/dist/ui/Clipboard/Clipboard.d.ts +18 -18
  34. package/dist/ui/Clipboard/clipboard.recipe.d.ts +3 -3
  35. package/dist/ui/Combobox/Combobox.d.ts +42 -42
  36. package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
  37. package/dist/ui/DatePicker/DatePicker.d.ts +72 -72
  38. package/dist/ui/DatePicker/datePicker.recipe.d.ts +3 -3
  39. package/dist/ui/Dialog/Dialog.d.ts +33 -33
  40. package/dist/ui/Dialog/dialog.recipe.d.ts +3 -3
  41. package/dist/ui/Drawer/Drawer.d.ts +33 -33
  42. package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
  43. package/dist/ui/Field/Field.d.ts +21 -21
  44. package/dist/ui/Field/field.recipe.d.ts +3 -3
  45. package/dist/ui/NumberInput/NumberInput.d.ts +24 -24
  46. package/dist/ui/NumberInput/numberInput.recipe.d.ts +3 -3
  47. package/dist/ui/PasswordInput/PasswordInput.d.ts +18 -18
  48. package/dist/ui/PasswordInput/passwordInput.recipe.d.ts +3 -3
  49. package/dist/ui/PinInput/PinInput.d.ts +12 -12
  50. package/dist/ui/PinInput/pinInput.recipe.d.ts +3 -3
  51. package/dist/ui/Popover/Popover.d.ts +55 -55
  52. package/dist/ui/Popover/popover.recipe.d.ts +5 -5
  53. package/dist/ui/Progress/Progress.d.ts +27 -27
  54. package/dist/ui/Progress/progress.recipe.d.ts +3 -3
  55. package/dist/ui/QrCode/QrCode.d.ts +25 -25
  56. package/dist/ui/QrCode/qrCode.recipe.d.ts +5 -5
  57. package/dist/ui/SegmentGroup/SegmentGroup.d.ts +18 -18
  58. package/dist/ui/SegmentGroup/segmentGroup.recipe.d.ts +3 -3
  59. package/dist/ui/Select/Select.d.ts +45 -45
  60. package/dist/ui/Select/select.recipe.d.ts +3 -3
  61. package/package.json +171 -171
  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
@@ -1,7 +1,9 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
+ import { isNil } from 'lodash-es';
3
4
  import { twMerge } from 'tailwind-merge';
4
5
  import { useShallow } from 'zustand/shallow';
6
+ import { useFeatureFlag } from '../../client/hooks/useFeatureFlag.js';
5
7
  import { useGlobalStore } from '../../client/hooks/useGlobalStore.js';
6
8
  import { useLocaleInfo } from '../../client/hooks/useLocaleInfo.js';
7
9
  import { useWalletQuery } from '../../client/hooks/useWalletQuery.js';
@@ -9,6 +11,7 @@ import { Button } from '../../ui/Button/index.js';
9
11
  import { formatNumber } from '../../utils/formatNumber.js';
10
12
  import { parseDecimal } from '../../utils/parseDecimal.js';
11
13
  export function Wallet({ classNames = {} }) {
14
+ const featureFlag = useFeatureFlag();
12
15
  const localeInfo = useLocaleInfo();
13
16
  const walletQuery = useWalletQuery({
14
17
  refetchInterval: 1000,
@@ -21,16 +24,27 @@ export function Wallet({ classNames = {} }) {
21
24
  const depositBalance = parseDecimal(walletQuery.data?.balance, 0);
22
25
  const bonusBalance = parseDecimal(walletQuery.data?.bonus, 0);
23
26
  const totalBalance = depositBalance + bonusBalance;
24
- return (_jsxs(_Fragment, { children: [_jsxs("div", { className: twMerge('mt-3 rounded-xl border border-border-primary bg-bg-tertiary p-xl', classNames.walletBalanceContainer), children: [_jsx("div", { className: twMerge('text-sm text-text-secondary-700', classNames.totalBalanceLabel), children: "Total Balance" }), _jsx("div", { className: twMerge('font-bold text-3xl', classNames.totalBalanceAmount), children: formatNumber(totalBalance, {
25
- currency: localeInfo?.currency.code,
26
- minDecimalPlaces: 2,
27
- }) }), _jsxs("div", { className: twMerge('mt-1.5 flex gap-7xl', classNames.balanceDetailsContainer), children: [_jsxs("div", { children: [_jsx("p", { className: twMerge('text-2xs text-text-secondary-700', classNames.depositBalanceLabel), children: "Deposit Balance" }), _jsx("p", { className: twMerge('text-medium text-text-primary-brand', classNames.depositBalanceAmount), children: formatNumber(depositBalance, {
27
+ const turnoverRequirement = parseDecimal(walletQuery.data?.turnoverRequirement);
28
+ return (_jsxs(_Fragment, { children: [_jsxs("div", { className: twMerge('mt-3 overflow-hidden rounded-xl border border-border-primary', classNames.walletBalanceContainer), children: [_jsxs("div", { className: "bg-bg-tertiary p-xl", children: [_jsx("div", { className: twMerge('text-sm text-text-secondary-700', classNames.totalBalanceLabel), children: "Total Balance" }), _jsx("div", { className: twMerge('font-bold text-3xl', classNames.totalBalanceAmount), children: formatNumber(totalBalance, {
29
+ currency: localeInfo?.currency.code,
30
+ minDecimalPlaces: 2,
31
+ }) }), _jsxs("div", { className: twMerge('mt-1.5 flex gap-7xl', classNames.balanceDetailsContainer), children: [_jsxs("div", { children: [_jsx("p", { className: twMerge('text-2xs text-text-secondary-700', classNames.depositBalanceLabel), children: "Deposit Balance" }), _jsx("p", { className: twMerge('text-medium text-text-primary-brand', classNames.depositBalanceAmount), children: formatNumber(depositBalance, {
32
+ currency: localeInfo?.currency.code,
33
+ minDecimalPlaces: 2,
34
+ }) })] }), _jsxs("div", { children: [_jsx("p", { className: twMerge('text-2xs text-text-secondary-700', classNames.bonusBalanceLabel), children: "Bonus Balance" }), _jsx("p", { className: twMerge('text-medium text-text-primary-brand', classNames.bonusBalanceAmount), children: formatNumber(bonusBalance, {
35
+ currency: localeInfo?.currency.code,
36
+ minDecimalPlaces: 2,
37
+ }) })] })] })] }), featureFlag.enabled &&
38
+ !isNil(turnoverRequirement) &&
39
+ turnoverRequirement > 0 && (_jsxs("div", { className: "border-border-primary border-t bg-bg-quaternary px-xl py-2", children: [_jsx("p", { className: "text-2xs leading-tight", children: "Deposit Turnover Requirement" }), _jsx("p", { className: "mt-1 font-medium text-xs leading-tight", children: formatNumber(turnoverRequirement, {
40
+ currency: localeInfo?.currency.code,
41
+ minDecimalPlaces: 1,
42
+ maxDecimalPlaces: 2,
43
+ }) }), _jsxs("p", { className: "mt-0.5 text-2xs text-text-tertiary-600 leading-tight", children: ["You need to wager", ' ', _jsx("span", { className: "font-medium text-text-warning-primary-600 leading-tight", children: formatNumber(turnoverRequirement, {
28
44
  currency: localeInfo?.currency.code,
29
- minDecimalPlaces: 2,
30
- }) })] }), _jsxs("div", { children: [_jsx("p", { className: twMerge('text-2xs text-text-secondary-700', classNames.bonusBalanceLabel), children: "Bonus Balance" }), _jsx("p", { className: twMerge('text-medium text-text-primary-brand', classNames.bonusBalanceAmount), children: formatNumber(bonusBalance, {
31
- currency: localeInfo?.currency.code,
32
- minDecimalPlaces: 2,
33
- }) })] })] })] }), _jsxs("div", { className: twMerge('mt-3 flex gap-lg', classNames.walletActions), children: [_jsx(Button, { size: "xs", variant: "outline", className: classNames.withdrawButton, onClick: () => {
45
+ minDecimalPlaces: 1,
46
+ maxDecimalPlaces: 2,
47
+ }) }), ' ', "to meet this requirement before you can withdraw."] })] }))] }), _jsxs("div", { className: twMerge('mt-3 flex gap-lg', classNames.walletActions), children: [_jsx(Button, { size: "xs", variant: "outline", className: classNames.withdrawButton, onClick: () => {
34
48
  globalStore.depositWithdrawal.setOpen(true);
35
49
  globalStore.depositWithdrawal.setTab('WITHDRAWAL');
36
50
  globalStore.profile.setOpen(false);
@@ -0,0 +1 @@
1
+ export declare function ActiveTurnoverRequirement(): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,27 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { isNil } from 'lodash-es';
3
+ import { useFeatureFlag } from '../../../client/hooks/useFeatureFlag.js';
4
+ import { useLocaleInfo } from '../../../client/hooks/useLocaleInfo.js';
5
+ import { useWalletQuery } from '../../../client/hooks/useWalletQuery.js';
6
+ import { BankNote01Icon } from '../../../icons/BankNote01Icon.js';
7
+ import { formatNumber } from '../../../utils/formatNumber.js';
8
+ import { parseDecimal } from '../../../utils/parseDecimal.js';
9
+ export function ActiveTurnoverRequirement() {
10
+ const featureFlag = useFeatureFlag();
11
+ const walletQuery = useWalletQuery();
12
+ const localeInfo = useLocaleInfo();
13
+ const turnoverRequirement = parseDecimal(walletQuery.data?.turnoverRequirement);
14
+ if (!featureFlag.enabled ||
15
+ isNil(turnoverRequirement) ||
16
+ turnoverRequirement <= 0)
17
+ return null;
18
+ return (_jsxs("div", { className: "mt-lg overflow-hidden rounded-xl border border-border-primary", children: [_jsxs("div", { className: "bg-bg-primary-alt p-xl", children: [_jsx("div", { className: "flex size-8.5 items-center justify-center rounded-full border-[1.667px] border-text-warning-primary/10", children: _jsx("div", { className: "flex size-6.5 items-center justify-center rounded-full border-[1.667px] border-text-warning-primary/30", children: _jsx(BankNote01Icon, { className: "size-5 text-text-warning-primary" }) }) }), _jsx("p", { className: "mt-lg text-sm text-text-tertiary-600", children: "It looks like you still need to complete your turnover requirement before you can withdraw funds." })] }), _jsxs("div", { className: "border-border-primary border-t bg-bg-quaternary px-xl py-2", children: [_jsx("p", { className: "text-2xs leading-tight", children: "Deposit Turnover Requirement" }), _jsx("p", { className: "mt-1 font-medium text-xs leading-tight", children: formatNumber(turnoverRequirement, {
19
+ currency: localeInfo?.currency.code,
20
+ minDecimalPlaces: 1,
21
+ maxDecimalPlaces: 2,
22
+ }) }), _jsxs("p", { className: "mt-0.5 text-2xs text-text-tertiary-600 leading-tight", children: ["You need to wager", ' ', _jsx("span", { className: "font-medium text-text-warning-primary-600 leading-tight", children: formatNumber(turnoverRequirement, {
23
+ currency: localeInfo?.currency.code,
24
+ minDecimalPlaces: 1,
25
+ maxDecimalPlaces: 2,
26
+ }) }), ' ', "to meet this requirement before you can withdraw."] })] })] }));
27
+ }
@@ -29,6 +29,7 @@ import { parseDecimal } from '../../../../utils/parseDecimal.js';
29
29
  import { AmountChoices } from '../../AmountChoices.js';
30
30
  import { useDepositWithdrawalPropsContext } from '../../DepositWithdrawalContext.js';
31
31
  import { explainError } from '../../utils.js';
32
+ import { ActiveTurnoverRequirement } from '../ActiveTurnoverRequirement.js';
32
33
  import { TransactionPasswordNotSet } from '../TransactionPasswordNotSet.js';
33
34
  export function GCashWithdrawal() {
34
35
  const depositWithdrawalProps = useDepositWithdrawalPropsContext();
@@ -148,7 +149,7 @@ export function GCashWithdrawal() {
148
149
  shouldDirty: true,
149
150
  shouldValidate: true,
150
151
  });
151
- }, 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(Button, { type: "submit", className: "mt-6", disabled: createWithdrawalMutation.isPending, children: "Withdraw" }), _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) => {
152
+ }, 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, children: "Withdraw" }), _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) => {
152
153
  if (!details.open) {
153
154
  setStatus('waiting');
154
155
  }
@@ -28,6 +28,7 @@ import { parseDecimal } from '../../../../utils/parseDecimal.js';
28
28
  import { AmountChoices } from '../../AmountChoices.js';
29
29
  import { useDepositWithdrawalPropsContext } from '../../DepositWithdrawalContext.js';
30
30
  import { explainError } from '../../utils.js';
31
+ import { ActiveTurnoverRequirement } from '../ActiveTurnoverRequirement.js';
31
32
  import { TransactionPasswordNotSet } from '../TransactionPasswordNotSet.js';
32
33
  export function InstapayWithdrawal() {
33
34
  const depositWithdrawalProps = useDepositWithdrawalPropsContext();
@@ -154,7 +155,7 @@ export function InstapayWithdrawal() {
154
155
  shouldDirty: true,
155
156
  shouldValidate: true,
156
157
  });
157
- }, 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(Button, { type: "submit", className: "mt-6", disabled: createWithdrawalMutation.isPending, children: "Withdraw" }), _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) => {
158
+ }, 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, children: "Withdraw" }), _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) => {
158
159
  if (!details.open) {
159
160
  setStatus('waiting');
160
161
  }
@@ -25,6 +25,7 @@ import { parseDecimal } from '../../../../utils/parseDecimal.js';
25
25
  import { AmountChoices } from '../../AmountChoices.js';
26
26
  import { useDepositWithdrawalPropsContext } from '../../DepositWithdrawalContext.js';
27
27
  import { explainError } from '../../utils.js';
28
+ import { ActiveTurnoverRequirement } from '../ActiveTurnoverRequirement.js';
28
29
  import { TransactionPasswordNotSet } from '../TransactionPasswordNotSet.js';
29
30
  export function MayaAppWithdrawal() {
30
31
  const depositWithdrawalProps = useDepositWithdrawalPropsContext();
@@ -114,7 +115,7 @@ export function MayaAppWithdrawal() {
114
115
  shouldDirty: true,
115
116
  shouldValidate: true,
116
117
  });
117
- }, 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(Button, { type: "submit", className: "mt-6", disabled: createWithdrawalMutation.isPending, children: "Withdraw" }), _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) => {
118
+ }, 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, children: "Withdraw" }), _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) => {
118
119
  if (!details.open) {
119
120
  setStatus('waiting');
120
121
  }
@@ -27,6 +27,7 @@ import { parseDecimal } from '../../../../utils/parseDecimal.js';
27
27
  import { AmountChoices } from '../../AmountChoices.js';
28
28
  import { useDepositWithdrawalPropsContext } from '../../DepositWithdrawalContext.js';
29
29
  import { explainError } from '../../utils.js';
30
+ import { ActiveTurnoverRequirement } from '../ActiveTurnoverRequirement.js';
30
31
  import { TransactionPasswordNotSet } from '../TransactionPasswordNotSet.js';
31
32
  export function MayaWithdrawal() {
32
33
  const depositWithdrawalProps = useDepositWithdrawalPropsContext();
@@ -124,7 +125,7 @@ export function MayaWithdrawal() {
124
125
  shouldDirty: true,
125
126
  shouldValidate: true,
126
127
  });
127
- }, 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(Button, { type: "submit", className: "mt-6", disabled: createWithdrawalMutation.isPending, children: "Withdraw" }), _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) => {
128
+ }, 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, children: "Withdraw" }), _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) => {
128
129
  if (!details.open) {
129
130
  setStatus('waiting');
130
131
  }
@@ -29,6 +29,7 @@ import { parseDecimal } from '../../../../utils/parseDecimal.js';
29
29
  import { AmountChoices } from '../../AmountChoices.js';
30
30
  import { useDepositWithdrawalPropsContext } from '../../DepositWithdrawalContext.js';
31
31
  import { explainError } from '../../utils.js';
32
+ import { ActiveTurnoverRequirement } from '../ActiveTurnoverRequirement.js';
32
33
  import { TransactionPasswordNotSet } from '../TransactionPasswordNotSet.js';
33
34
  export function PisoPayWithdrawal() {
34
35
  const depositWithdrawalProps = useDepositWithdrawalPropsContext();
@@ -148,7 +149,7 @@ export function PisoPayWithdrawal() {
148
149
  shouldDirty: true,
149
150
  shouldValidate: true,
150
151
  });
151
- }, 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(Button, { type: "submit", className: "mt-6", disabled: createWithdrawalMutation.isPending, children: "Withdraw" }), _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) => {
152
+ }, 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, children: "Withdraw" }), _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) => {
152
153
  if (!details.open) {
153
154
  setStatus('waiting');
154
155
  }
@@ -29,6 +29,7 @@ import { parseDecimal } from '../../../../utils/parseDecimal.js';
29
29
  import { AmountChoices } from '../../AmountChoices.js';
30
30
  import { useDepositWithdrawalPropsContext } from '../../DepositWithdrawalContext.js';
31
31
  import { explainError } from '../../utils.js';
32
+ import { ActiveTurnoverRequirement } from '../ActiveTurnoverRequirement.js';
32
33
  import { TransactionPasswordNotSet } from '../TransactionPasswordNotSet.js';
33
34
  export function VentajaWithdrawal() {
34
35
  const depositWithdrawalProps = useDepositWithdrawalPropsContext();
@@ -150,7 +151,7 @@ export function VentajaWithdrawal() {
150
151
  shouldDirty: true,
151
152
  shouldValidate: true,
152
153
  });
153
- }, 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(Button, { type: "submit", className: "mt-6", disabled: createWithdrawalMutation.isPending, children: "Withdraw" }), _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) => {
154
+ }, 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, children: "Withdraw" }), _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) => {
154
155
  if (!details.open) {
155
156
  setStatus('waiting');
156
157
  }
@@ -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
+ }