@opexa/portal-components 0.0.304 → 0.0.306

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 (125) hide show
  1. package/dist/components/DepositWithdrawal/DepositWithdrawal.lazy.js +1 -1
  2. package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.js +13 -40
  3. package/dist/components/Disclaimer/DisclaimerV2.js +1 -1
  4. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.module.css +184 -184
  5. package/dist/components/Jackpots/JackpotsList/JackpotsListItem.module.css +184 -184
  6. package/dist/components/Messages/Messages.lazy.js +1 -1
  7. package/dist/components/Messages/MessagesPopup.js +3 -3
  8. package/dist/components/ResponsibleGaming/ResponsibleGaming.lazy.js +1 -1
  9. package/dist/components/SignUp/SignUpDefault/SignUpDefault.lazy.d.ts +1 -2
  10. package/dist/components/SignUp/SignUpDefault/SignUpDefault.lazy.js +1 -1
  11. package/dist/components/SignUp/SignUpDefault/SignUpDefaultForm.js +6 -4
  12. package/dist/components/SignUp/SignUpKYC/SignUpKYC.lazy.d.ts +1 -1
  13. package/dist/components/SignUp/SignUpKYC/SignUpKYC.lazy.js +1 -1
  14. package/dist/components/SignUp/SignUpKYC/SignUpKYCForm.js +7 -5
  15. package/dist/components/TermsAndConditions/TermsAndConditions.lazy.js +1 -1
  16. package/dist/components/TermsOfUse/TermsOfUse.lazy.js +1 -1
  17. package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarouselItem.module.css +184 -184
  18. package/dist/components/Tournaments/TournamentsList/TournamentItem.module.css +184 -184
  19. package/dist/constants/index.d.ts +0 -1
  20. package/dist/constants/index.js +0 -1
  21. package/dist/services/queries.js +2639 -2639
  22. package/dist/styles/theme.css +706 -706
  23. package/dist/ui/AlertDialog/AlertDialog.d.ts +88 -88
  24. package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +8 -8
  25. package/dist/ui/Badge/Badge.d.ts +12 -12
  26. package/dist/ui/Badge/badge.anatomy.d.ts +1 -1
  27. package/dist/ui/Badge/badge.recipe.d.ts +3 -3
  28. package/dist/ui/Carousel/Carousel.d.ts +72 -72
  29. package/dist/ui/Carousel/carousel.recipe.d.ts +8 -8
  30. package/dist/ui/Checkbox/Checkbox.d.ts +23 -23
  31. package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -3
  32. package/dist/ui/Clipboard/Clipboard.d.ts +18 -18
  33. package/dist/ui/Clipboard/clipboard.recipe.d.ts +3 -3
  34. package/dist/ui/Collapsible/Collapsible.d.ts +20 -20
  35. package/dist/ui/Collapsible/collapsible.recipe.d.ts +5 -5
  36. package/dist/ui/Combobox/Combobox.d.ts +42 -42
  37. package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
  38. package/dist/ui/DatePicker/DatePicker.d.ts +72 -72
  39. package/dist/ui/DatePicker/datePicker.recipe.d.ts +3 -3
  40. package/dist/ui/Dialog/Dialog.d.ts +88 -88
  41. package/dist/ui/Dialog/dialog.recipe.d.ts +8 -8
  42. package/dist/ui/Drawer/Drawer.d.ts +33 -33
  43. package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
  44. package/dist/ui/Field/Field.d.ts +21 -21
  45. package/dist/ui/Field/field.recipe.d.ts +3 -3
  46. package/dist/ui/Menu/Menu.d.ts +198 -198
  47. package/dist/ui/Menu/menu.recipe.d.ts +11 -11
  48. package/dist/ui/PasswordInput/PasswordInput.d.ts +18 -18
  49. package/dist/ui/PasswordInput/passwordInput.recipe.d.ts +3 -3
  50. package/dist/ui/Popover/Popover.d.ts +121 -121
  51. package/dist/ui/Popover/popover.recipe.d.ts +11 -11
  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 +164 -164
  62. package/dist/components/Banner/Banner.client.d.ts +0 -12
  63. package/dist/components/Banner/Banner.client.js +0 -49
  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/KYC/CaptureIdDocument.d.ts +0 -1
  69. package/dist/components/KYC/CaptureIdDocument.js +0 -219
  70. package/dist/components/KYC/CaptureSelfie.d.ts +0 -1
  71. package/dist/components/KYC/CaptureSelfie.js +0 -285
  72. package/dist/components/KYC/DisplayImage.d.ts +0 -5
  73. package/dist/components/KYC/DisplayImage.js +0 -8
  74. package/dist/components/KYC/FileUpload.d.ts +0 -10
  75. package/dist/components/KYC/FileUpload.js +0 -72
  76. package/dist/components/KYC/NoCameraError.d.ts +0 -7
  77. package/dist/components/KYC/NoCameraError.js +0 -6
  78. package/dist/components/KYC/PersonOverlayDesktop.d.ts +0 -7
  79. package/dist/components/KYC/PersonOverlayDesktop.js +0 -9
  80. package/dist/components/KYC/utils.d.ts +0 -9
  81. package/dist/components/KYC/utils.js +0 -79
  82. package/dist/components/SignUp/SignUpDefault/SignUp.lazy.d.ts +0 -17
  83. package/dist/components/SignUp/SignUpDefault/SignUp.lazy.js +0 -18
  84. package/dist/components/SignUp/SignUpDefault/SignUpContext.d.ts +0 -6
  85. package/dist/components/SignUp/SignUpDefault/SignUpContext.js +0 -2
  86. package/dist/components/SignUp/SignUpDefault/SignUpForm.d.ts +0 -1
  87. package/dist/components/SignUp/SignUpDefault/SignUpForm.js +0 -310
  88. package/dist/components/SignUp/SignUpKYC/CaptureIdDocument.d.ts +0 -1
  89. package/dist/components/SignUp/SignUpKYC/CaptureIdDocument.js +0 -198
  90. package/dist/components/SignUp/SignUpKYC/CaptureSelfie.d.ts +0 -1
  91. package/dist/components/SignUp/SignUpKYC/CaptureSelfie.js +0 -251
  92. package/dist/components/SignUp/SignUpKYC/ImageUploader.d.ts +0 -10
  93. package/dist/components/SignUp/SignUpKYC/ImageUploader.js +0 -42
  94. package/dist/components/SignUp/SignUpKYC/PersonOverlayDesktop.d.ts +0 -7
  95. package/dist/components/SignUp/SignUpKYC/PersonOverlayDesktop.js +0 -9
  96. package/dist/components/SignUp/SignUpKYC/SignUpFormKYC.d.ts +0 -1
  97. package/dist/components/SignUp/SignUpKYC/SignUpFormKYC.js +0 -464
  98. package/dist/components/SignUp/SignUpKYC/useImageUploader.d.ts +0 -11
  99. package/dist/components/SignUp/SignUpKYC/useImageUploader.js +0 -20
  100. package/dist/components/SignUp/SignUpKYC/utils.d.ts +0 -9
  101. package/dist/components/SignUp/SignUpKYC/utils.js +0 -79
  102. package/dist/handlers/postTransformIdFrontImage.d.ts +0 -3
  103. package/dist/handlers/postTransformIdFrontImage.js +0 -82
  104. package/dist/handlers/postTransformSelfieImage.d.ts +0 -3
  105. package/dist/handlers/postTransformSelfieImage.js +0 -82
  106. package/dist/third-parties/FacebookPixel/FacebookPixel.d.ts +0 -4
  107. package/dist/third-parties/FacebookPixel/FacebookPixel.js +0 -4
  108. package/dist/third-parties/FacebookPixel/api.d.ts +0 -0
  109. package/dist/third-parties/FacebookPixel/api.js +0 -1
  110. package/dist/third-parties/FacebookPixel/index.d.ts +0 -1
  111. package/dist/third-parties/FacebookPixel/index.js +0 -1
  112. package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.d.ts +0 -4
  113. package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.js +0 -4
  114. package/dist/third-parties/GoogleRecaptcha/api.d.ts +0 -0
  115. package/dist/third-parties/GoogleRecaptcha/api.js +0 -1
  116. package/dist/third-parties/GoogleRecaptcha/index.d.ts +0 -1
  117. package/dist/third-parties/GoogleRecaptcha/index.js +0 -1
  118. package/dist/third-parties/index.d.ts +0 -2
  119. package/dist/third-parties/index.js +0 -2
  120. package/dist/utils/gamesAvailable3pmTo3am.d.ts +0 -1
  121. package/dist/utils/gamesAvailable3pmTo3am.js +0 -1
  122. package/dist/utils/getGameName.d.ts +0 -1
  123. package/dist/utils/getGameName.js +0 -6
  124. package/dist/utils/isBetween3amAnd3pm.d.ts +0 -1
  125. package/dist/utils/isBetween3amAnd3pm.js +0 -5
@@ -42,7 +42,7 @@ export function DepositWithdrawal(props) {
42
42
  if (!details.open) {
43
43
  globalStore.depositWithdrawal.setPromo(null);
44
44
  }
45
- }, closeOnEscape: false, closeOnInteractOutside: false, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, { className: "!z-[calc(var(--z-dialog)+1)]" }), _jsx(Dialog.Positioner, { className: "!z-[calc(var(--z-dialog)+2)]", children: _jsxs(Dialog.Content, { className: "lg:min-h-auto py-3xl mx-auto min-h-full w-full overflow-y-auto px-4 lg:w-[480px] lg:rounded-xl", children: [_jsxs(Dialog.Header, { className: "gap-xl flex items-center", children: [_jsx("div", { className: "border-border-primary shadow-xs text-text-secondary-700 flex size-10 items-center justify-center rounded-md border text-gray-700", children: _jsx(Wallet02Icon, { className: "size-5" }) }), _jsx(Dialog.Title, { className: "grow text-lg font-semibold", children: "Wallet" }), _jsx(Dialog.Context, { children: (api) => (_jsx(IconButton, { size: "sm", variant: "outline", colorScheme: "gray", onClick: () => api.setOpen(false), children: _jsx(XIcon, {}) })) })] }), _jsxs(Dialog.Body, { className: "mt-3xl", children: [_jsx("p", { className: "text-text-secondary-700 text-center text-sm", children: "Deposit Balance" }), _jsx("p", { className: "text-center text-3xl font-bold leading-tight tracking-tight", children: formatNumber(walletQuery.data?.balance, {
45
+ }, closeOnEscape: false, closeOnInteractOutside: false, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, { className: "!z-[calc(var(--z-dialog)+1)]" }), _jsx(Dialog.Positioner, { className: "!z-[calc(var(--z-dialog)+2)]", children: _jsxs(Dialog.Content, { className: "py-3xl mx-auto h-full w-full overflow-y-auto px-4 lg:h-auto lg:max-h-[80vh] lg:w-[480px] lg:rounded-xl", children: [_jsxs(Dialog.Header, { className: "gap-xl flex items-center", children: [_jsx("div", { className: "border-border-primary shadow-xs text-text-secondary-700 flex size-10 items-center justify-center rounded-md border text-gray-700", children: _jsx(Wallet02Icon, { className: "size-5" }) }), _jsx(Dialog.Title, { className: "grow text-lg font-semibold", children: "Wallet" }), _jsx(Dialog.Context, { children: (api) => (_jsx(IconButton, { size: "sm", variant: "outline", colorScheme: "gray", onClick: () => api.setOpen(false), children: _jsx(XIcon, {}) })) })] }), _jsxs(Dialog.Body, { className: "mt-3xl", children: [_jsx("p", { className: "text-text-secondary-700 text-center text-sm", children: "Deposit Balance" }), _jsx("p", { className: "text-center text-3xl font-bold leading-tight tracking-tight", children: formatNumber(walletQuery.data?.balance, {
46
46
  currency: localeInfo.currency.code,
47
47
  minDecimalPlaces: 2,
48
48
  }) }), _jsxs(Tabs.Root, { value: globalStore.depositWithdrawal.tab, onValueChange: (details) => {
@@ -6,7 +6,6 @@ import { useEffect, useMemo, useState } from 'react';
6
6
  import { Controller, useForm } from 'react-hook-form';
7
7
  import { z } from 'zod';
8
8
  import { useShallow } from 'zustand/shallow';
9
- import { useCreateInstapayWithdrawalMutation } from '../../../../client/hooks/useCreateInstapayWithdrawalMutation.js';
10
9
  import { useCreateInstapayWithdrawalNextMutation } from '../../../../client/hooks/useCreateInstapayWithdrawalNextMutation.js';
11
10
  import { useFeatureFlag } from '../../../../client/hooks/useFeatureFlag.js';
12
11
  import { useGlobalStore } from '../../../../client/hooks/useGlobalStore.js';
@@ -40,18 +39,6 @@ export function InstapayWithdrawal() {
40
39
  hasPendingBonus: ctx.pendingBonus,
41
40
  })));
42
41
  const [status, setStatus] = useState('waiting');
43
- const createWithdrawalMutation = useCreateInstapayWithdrawalMutation({
44
- onMutate() {
45
- setStatus('processing');
46
- },
47
- onSuccess() {
48
- form.reset();
49
- setStatus('success');
50
- },
51
- onError() {
52
- setStatus('failed');
53
- },
54
- });
55
42
  const createWithdrawalNextMutation = useCreateInstapayWithdrawalNextMutation({
56
43
  onMutate() {
57
44
  setStatus('processing');
@@ -98,11 +85,9 @@ export function InstapayWithdrawal() {
98
85
  .min(8, 'Password must be 8 or more characters')
99
86
  .max(64, 'Password must be not be more than 64 characters'),
100
87
  accountNumber: z.string().min(1).trim(),
101
- accountName: enabled
102
- ? z
103
- .string({ required_error: 'Account name is required' })
104
- .min(4, 'Account name must be at least 4 characters')
105
- : z.string().optional().or(z.string().trim()),
88
+ accountName: z
89
+ .string({ required_error: 'Account name is required' })
90
+ .min(4, 'Account name must be at least 4 characters'),
106
91
  bankCode: z.string().min(1, 'Bank is required').trim(),
107
92
  });
108
93
  const form = useForm({
@@ -141,23 +126,13 @@ export function InstapayWithdrawal() {
141
126
  globalStore.hasPendingBonus.setOpen(true);
142
127
  return;
143
128
  }
144
- if (enabled) {
145
- createWithdrawalNextMutation.mutate({
146
- amount: data.amount,
147
- transactionPassword: data.password,
148
- accountNumber: data.accountNumber,
149
- bankCode: data.bankCode,
150
- accountName: data.accountName ?? '',
151
- });
152
- }
153
- else {
154
- createWithdrawalMutation.mutate({
155
- amount: data.amount,
156
- transactionPassword: data.password,
157
- accountNumber: data.accountNumber,
158
- bankCode: data.bankCode,
159
- });
160
- }
129
+ createWithdrawalNextMutation.mutate({
130
+ amount: data.amount,
131
+ transactionPassword: data.password,
132
+ accountNumber: data.accountNumber,
133
+ bankCode: data.bankCode,
134
+ accountName: data.accountName ?? '',
135
+ });
161
136
  });
162
137
  const bankCollection = useMemo(() => createListCollection({
163
138
  items: instapayBankList ?? [],
@@ -168,7 +143,7 @@ export function InstapayWithdrawal() {
168
143
  sameWidth: true,
169
144
  }, value: o.field.value ? [o.field.value] : [], onValueChange: (details) => {
170
145
  o.field.onChange(details.value.at(0) ?? '');
171
- }, children: [_jsx(Select.Label, { children: "Bank" }), _jsx(Select.Control, { children: _jsxs(Select.Trigger, { children: [_jsx(Select.ValueText, {}), _jsx(Select.Indicator, { asChild: true, children: _jsx(ChevronDownIcon, {}) })] }) }), _jsx(Select.Positioner, { children: _jsx(Select.Content, { children: _jsx(Select.ItemGroup, { children: bankCollection.items.map((item) => (_jsxs(Select.Item, { item: item, children: [_jsx(Select.ItemText, { children: item.name }), _jsx(Select.ItemIndicator, { asChild: true, children: _jsx(CheckIcon, {}) })] }, item.id))) }) }) })] }), _jsx(Field.ErrorText, { children: form.formState.errors.bankCode?.message })] })) }), _jsxs(Field.Root, { invalid: !!form.formState.errors.accountNumber, className: "mt-3xl", children: [_jsx(Field.Label, { children: "Bank account number" }), _jsx(Field.Input, { ...form.register('accountNumber') }), _jsx(Field.ErrorText, { children: form.formState.errors.accountNumber?.message })] }), enabled && (_jsxs(Field.Root, { invalid: !!form.formState.errors.accountName, className: "mt-3xl", children: [_jsx(Field.Label, { children: "Account name" }), _jsx(Field.Input, { ...form.register('accountName') }), _jsx(Field.ErrorText, { children: form.formState.errors.accountName?.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) => {
146
+ }, children: [_jsx(Select.Label, { children: "Bank" }), _jsx(Select.Control, { children: _jsxs(Select.Trigger, { children: [_jsx(Select.ValueText, {}), _jsx(Select.Indicator, { asChild: true, children: _jsx(ChevronDownIcon, {}) })] }) }), _jsx(Select.Positioner, { children: _jsx(Select.Content, { children: _jsx(Select.ItemGroup, { children: bankCollection.items.map((item) => (_jsxs(Select.Item, { item: item, children: [_jsx(Select.ItemText, { children: item.name }), _jsx(Select.ItemIndicator, { asChild: true, children: _jsx(CheckIcon, {}) })] }, item.id))) }) }) })] }), _jsx(Field.ErrorText, { children: form.formState.errors.bankCode?.message })] })) }), _jsxs(Field.Root, { invalid: !!form.formState.errors.accountNumber, className: "mt-3xl", children: [_jsx(Field.Label, { children: "Bank account number" }), _jsx(Field.Input, { ...form.register('accountNumber') }), _jsx(Field.ErrorText, { children: form.formState.errors.accountNumber?.message })] }), _jsxs(Field.Root, { invalid: !!form.formState.errors.accountName, className: "mt-3xl", children: [_jsx(Field.Label, { children: "Account name" }), _jsx(Field.Input, { ...form.register('accountName') }), _jsx(Field.ErrorText, { children: form.formState.errors.accountName?.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) => {
172
147
  o.field.onChange(details.value);
173
148
  }, formatOptions: {
174
149
  maximumFractionDigits: 2,
@@ -179,16 +154,14 @@ export function InstapayWithdrawal() {
179
154
  shouldDirty: true,
180
155
  shouldValidate: true,
181
156
  });
182
- }, 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: "text-text-tertiary-600 mt-lg 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) => {
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: createWithdrawalNextMutation.isPending, children: "Withdraw" }), _jsxs("p", { className: "text-text-tertiary-600 mt-lg 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) => {
183
158
  if (!details.open) {
184
159
  setStatus('waiting');
185
160
  }
186
161
  }, 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: "text-text-brand-primary-600 size-12" })), status === 'success' && (_jsx("div", { className: "bg-bg-success-secondary text-text-featured-icon-light-success flex size-12 items-center justify-center rounded-full", children: _jsx(AlertCircleIcon, {}) })), status === 'failed' && (_jsx("div", { className: "bg-bg-error-secondary text-text-featured-icon-light-error flex size-12 items-center justify-center rounded-full", 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' &&
187
162
  "We're verifying your account and amount. Please hold a moment.", status === 'success' &&
188
163
  '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' &&
189
- explainError(enabled
190
- ? createWithdrawalNextMutation.error?.name
191
- : createWithdrawalMutation.error?.name)] })] }), (status === 'failed' || status === 'success') && (_jsx(AlertDialog.Footer, { children: _jsx(AlertDialog.Context, { children: (api) => (_jsx(Button, { onClick: () => {
164
+ explainError(createWithdrawalNextMutation.error?.name)] })] }), (status === 'failed' || status === 'success') && (_jsx(AlertDialog.Footer, { children: _jsx(AlertDialog.Context, { children: (api) => (_jsx(Button, { onClick: () => {
192
165
  api.setOpen(false);
193
166
  }, children: status === 'failed' ? 'Try Again' : 'Ok' })) }) }))] }) })] }) })] }));
194
167
  }
@@ -22,7 +22,7 @@ export function DisclaimerV2(props) {
22
22
  })));
23
23
  const checked = globalStore.termsOfUse.accepted && globalStore.responsibleGaming.accepted;
24
24
  const [showWarning, setShowWarning] = useState(false);
25
- return (_jsx(Dialog.Root, { open: disclaimer.open, lazyMount: true, unmountOnExit: true, closeOnEscape: false, closeOnInteractOutside: false, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, {}), _jsx(Dialog.Positioner, { children: _jsxs(Dialog.Content, { className: "p-3xl lg:min-h-[80vh] flex h-full w-full flex-col items-start gap-y-4 overflow-y-auto lg:mx-auto lg:w-[400px] lg:rounded-xl", children: [_jsx(Image, { src: props.logo, alt: "", width: 200, height: 100, className: "mx-auto h-auto w-[120px]", draggable: false }), _jsxs("div", { className: "gap-3xl flex w-full items-center justify-center", children: [_jsx(Image, { src: pagcorLogo, alt: "", height: 43, width: 88, className: "h-[43px] w-auto shrink-0", draggable: false }), _jsx(Image, { src: props.responsibleGamingLogo ?? responsibleGamingLogo, alt: "", height: 50, width: 186, className: "h-[50px] w-auto shrink-0", draggable: false })] }), _jsx("div", { className: "text-sm", children: "The following individuals are prohibited from registering or participating in this online gaming platform." }), _jsx("div", { className: "w-full grow", children: _jsxs(Dialog.Description, { className: "space-y-4 text-sm", children: [_jsxs("ul", { className: "space-y-1.5 text-left", children: [_jsxs("li", { className: "flex gap-4", children: [_jsx(Circle, {}), "Persons below the legal gambling age of 21."] }), _jsxs("li", { className: "flex gap-4", children: [_jsx(Circle, {}), "Any government official or employee directly involved in the operations of the government or its agencies."] }), _jsxs("li", { className: "flex gap-4", children: [_jsx(Circle, {}), "Member of the Armed Forces of the Philippines, including the Army, Navy, Air Force and the Philippine National Police."] }), _jsxs("li", { className: "flex gap-4", children: [_jsx(Circle, {}), "Individuals listed in PAGCOR's National Database of Restricted Persons (NDRP)"] }), _jsxs("li", { className: "flex gap-4", children: [_jsx(Circle, {}), "Holders of a valid Gaming Employment License (GEL)"] })] }), _jsxs(Checkbox.Root, { checked: checked, onCheckedChange: (e) => {
25
+ return (_jsx(Dialog.Root, { open: disclaimer.open, lazyMount: true, unmountOnExit: true, closeOnEscape: false, closeOnInteractOutside: false, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, {}), _jsx(Dialog.Positioner, { children: _jsxs(Dialog.Content, { className: "p-3xl flex h-full w-full flex-col items-start gap-y-4 overflow-y-auto lg:mx-auto lg:h-auto lg:max-h-[80vh] lg:w-[400px] lg:rounded-xl", children: [_jsx(Image, { src: props.logo, alt: "", width: 200, height: 100, className: "mx-auto h-auto w-[120px]", draggable: false }), _jsxs("div", { className: "gap-3xl flex w-full items-center justify-center", children: [_jsx(Image, { src: pagcorLogo, alt: "", height: 43, width: 88, className: "h-[43px] w-auto shrink-0", draggable: false }), _jsx(Image, { src: props.responsibleGamingLogo ?? responsibleGamingLogo, alt: "", height: 50, width: 186, className: "h-[50px] w-auto shrink-0", draggable: false })] }), _jsx("div", { className: "text-sm", children: "The following individuals are prohibited from registering or participating in this online gaming platform." }), _jsx("div", { className: "w-full grow", children: _jsxs(Dialog.Description, { className: "space-y-4 text-sm", children: [_jsxs("ul", { className: "space-y-1.5 text-left", children: [_jsxs("li", { className: "flex gap-4", children: [_jsx(Circle, {}), "Persons below the legal gambling age of 21."] }), _jsxs("li", { className: "flex gap-4", children: [_jsx(Circle, {}), "Any government official or employee directly involved in the operations of the government or its agencies."] }), _jsxs("li", { className: "flex gap-4", children: [_jsx(Circle, {}), "Member of the Armed Forces of the Philippines, including the Army, Navy, Air Force and the Philippine National Police."] }), _jsxs("li", { className: "flex gap-4", children: [_jsx(Circle, {}), "Individuals listed in PAGCOR's National Database of Restricted Persons (NDRP)"] }), _jsxs("li", { className: "flex gap-4", children: [_jsx(Circle, {}), "Holders of a valid Gaming Employment License (GEL)"] })] }), _jsxs(Checkbox.Root, { checked: checked, onCheckedChange: (e) => {
26
26
  if (e.checked === 'indeterminate')
27
27
  return;
28
28
  globalStore.termsOfUse.setAccepted(e.checked);
@@ -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-bg-tertiary);
64
- --second: var(--color-bg-quaternary);
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-bg-primary-alt);
157
- border-radius: 9999px;
158
- }
159
-
160
- .scrollArea::-webkit-scrollbar-thumb {
161
- background-color: var(--color-bg-quaternary);
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-bg-tertiary);
64
+ --second: var(--color-bg-quaternary);
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-bg-primary-alt);
157
+ border-radius: 9999px;
158
+ }
159
+
160
+ .scrollArea::-webkit-scrollbar-thumb {
161
+ background-color: var(--color-bg-quaternary);
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
+ }