@opexa/portal-components 0.0.414 → 0.0.416

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 (102) hide show
  1. package/dist/components/Banner/Banner.client.d.ts +12 -0
  2. package/dist/components/Banner/Banner.client.js +49 -0
  3. package/dist/components/DepositWithdrawal/Withdrawal/VentajaWithdrawal/VentajaWithdrawal.js +0 -1
  4. package/dist/components/DigitainLauncher/Loading.d.ts +1 -0
  5. package/dist/components/DigitainLauncher/Loading.js +5 -0
  6. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.module.css +184 -0
  7. package/dist/components/Jackpots/JackpotsList/JackpotsListItem.module.css +184 -0
  8. package/dist/components/KYC/BasicInformation.d.ts +1 -0
  9. package/dist/components/KYC/BasicInformation.js +101 -0
  10. package/dist/components/KYC/IdentityVerification.d.ts +1 -0
  11. package/dist/components/KYC/IdentityVerification.js +120 -0
  12. package/dist/components/KYC/Indicator.d.ts +1 -0
  13. package/dist/components/KYC/Indicator.js +8 -0
  14. package/dist/components/KYC/KYC.lazy.d.ts +6 -0
  15. package/dist/components/KYC/KYC.lazy.js +45 -0
  16. package/dist/components/KYC/KYCContext.d.ts +6 -0
  17. package/dist/components/KYC/KYCContext.js +2 -0
  18. package/dist/components/KYC/PersonalInformation.d.ts +1 -0
  19. package/dist/components/KYC/PersonalInformation.js +122 -0
  20. package/dist/components/KYC/useKYC.d.ts +25 -0
  21. package/dist/components/KYC/useKYC.js +38 -0
  22. package/dist/components/News/News.d.ts +1 -1
  23. package/dist/components/News/News.js +1 -1
  24. package/dist/components/NewsFeed/News.d.ts +1 -1
  25. package/dist/components/NewsFeed/News.js +1 -1
  26. package/dist/components/PortalProvider/LinkGoogleAccountObserver.d.ts +1 -0
  27. package/dist/components/PortalProvider/LinkGoogleAccountObserver.js +29 -0
  28. package/dist/components/SessionWatcher/SessionWatcher.d.ts +1 -0
  29. package/dist/components/SessionWatcher/SessionWatcher.js +20 -0
  30. package/dist/components/SessionWatcher/index.d.ts +1 -0
  31. package/dist/components/SessionWatcher/index.js +1 -0
  32. package/dist/components/SignIn/utils.d.ts +8 -0
  33. package/dist/components/SignIn/utils.js +26 -0
  34. package/dist/components/SignUp/SignUpDefault/SignUpDefaultForm.js +3 -1
  35. package/dist/components/TransactionRecords/DepositRecordsTable.js +3 -1
  36. package/dist/components/TransactionRecords/TableFilters.js +36 -21
  37. package/dist/components/TransactionRecords/TransactionContext.d.ts +6 -0
  38. package/dist/components/TransactionRecords/TransactionContext.js +2 -0
  39. package/dist/components/TransactionRecords/TransactionRecords.suspense.d.ts +3 -0
  40. package/dist/components/TransactionRecords/TransactionRecords.suspense.js +2 -1
  41. package/dist/components/TransactionRecords/WithdrawalRecordsTable.js +5 -1
  42. package/dist/constants/Branches.d.ts +2 -0
  43. package/dist/constants/Branches.js +42 -0
  44. package/dist/constants/EnvVar.d.ts +1 -1
  45. package/dist/handlers/index.d.ts +7 -7
  46. package/dist/images/responsible-gaming-yellow.png +0 -0
  47. package/dist/third-parties/FacebookPixel/FacebookPixel.d.ts +4 -0
  48. package/dist/third-parties/FacebookPixel/FacebookPixel.js +4 -0
  49. package/dist/third-parties/FacebookPixel/api.d.ts +0 -0
  50. package/dist/third-parties/FacebookPixel/api.js +1 -0
  51. package/dist/third-parties/FacebookPixel/index.d.ts +1 -0
  52. package/dist/third-parties/FacebookPixel/index.js +1 -0
  53. package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.d.ts +4 -0
  54. package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.js +4 -0
  55. package/dist/third-parties/GoogleRecaptcha/api.d.ts +0 -0
  56. package/dist/third-parties/GoogleRecaptcha/api.js +1 -0
  57. package/dist/third-parties/GoogleRecaptcha/index.d.ts +1 -0
  58. package/dist/third-parties/GoogleRecaptcha/index.js +1 -0
  59. package/dist/third-parties/index.d.ts +2 -0
  60. package/dist/third-parties/index.js +2 -0
  61. package/dist/types/index.d.ts +2 -2
  62. package/dist/ui/AlertDialog/AlertDialog.d.ts +121 -121
  63. package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +11 -11
  64. package/dist/ui/Badge/Badge.d.ts +12 -12
  65. package/dist/ui/Badge/badge.anatomy.d.ts +1 -1
  66. package/dist/ui/Badge/badge.recipe.d.ts +3 -3
  67. package/dist/ui/Carousel/Carousel.d.ts +45 -45
  68. package/dist/ui/Carousel/carousel.recipe.d.ts +5 -5
  69. package/dist/ui/Checkbox/Checkbox.d.ts +23 -23
  70. package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -3
  71. package/dist/ui/Clipboard/Clipboard.d.ts +18 -18
  72. package/dist/ui/Clipboard/clipboard.recipe.d.ts +3 -3
  73. package/dist/ui/Combobox/Combobox.d.ts +42 -42
  74. package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
  75. package/dist/ui/DatePicker/DatePicker.d.ts +72 -72
  76. package/dist/ui/DatePicker/datePicker.recipe.d.ts +3 -3
  77. package/dist/ui/Dialog/Dialog.d.ts +121 -121
  78. package/dist/ui/Dialog/dialog.recipe.d.ts +11 -11
  79. package/dist/ui/Drawer/Drawer.d.ts +33 -33
  80. package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
  81. package/dist/ui/Menu/Menu.d.ts +252 -252
  82. package/dist/ui/Menu/menu.recipe.d.ts +14 -14
  83. package/dist/ui/NumberInput/NumberInput.d.ts +24 -24
  84. package/dist/ui/NumberInput/numberInput.recipe.d.ts +3 -3
  85. package/dist/ui/PasswordInput/PasswordInput.d.ts +18 -18
  86. package/dist/ui/PasswordInput/passwordInput.recipe.d.ts +3 -3
  87. package/dist/ui/PinInput/PinInput.d.ts +12 -12
  88. package/dist/ui/PinInput/pinInput.recipe.d.ts +3 -3
  89. package/dist/ui/Popover/Popover.d.ts +55 -55
  90. package/dist/ui/Popover/popover.recipe.d.ts +5 -5
  91. package/dist/ui/Progress/Progress.d.ts +27 -27
  92. package/dist/ui/Progress/progress.recipe.d.ts +3 -3
  93. package/dist/ui/SegmentGroup/SegmentGroup.d.ts +18 -18
  94. package/dist/ui/SegmentGroup/segmentGroup.recipe.d.ts +3 -3
  95. package/dist/ui/Select/Select.d.ts +45 -45
  96. package/dist/ui/Select/select.recipe.d.ts +3 -3
  97. package/dist/ui/Table/Table.d.ts +21 -21
  98. package/dist/ui/Table/table.anatomy.d.ts +1 -1
  99. package/dist/ui/Table/table.recipe.d.ts +3 -3
  100. package/dist/ui/Tabs/Tabs.d.ts +15 -15
  101. package/dist/ui/Tabs/tabs.recipe.d.ts +3 -3
  102. package/package.json +1 -1
@@ -19,14 +19,18 @@ import { capitalize } from '../../utils/capitalize.js';
19
19
  import { formatNumber } from '../../utils/formatNumber.js';
20
20
  import { Empty } from '../shared/Empty.js';
21
21
  import { TableFilters } from './TableFilters.js';
22
+ import { useTransactionPropsContext } from './TransactionContext.js';
22
23
  export function WithdrawalRecordsTable() {
23
24
  const router = useRouter();
24
25
  const pathname = usePathname();
25
26
  const searchParams = useSearchParams();
27
+ const { enabledWithdrawalTypes } = useTransactionPropsContext();
26
28
  const [state, setState] = useReducer((prev, next) => ({
27
29
  ...prev,
28
30
  ...next,
29
- }), {});
31
+ }), {
32
+ type: enabledWithdrawalTypes?.length === 1 ? enabledWithdrawalTypes[0] : null,
33
+ });
30
34
  const localeInfo = useLocaleInfo();
31
35
  const { page, hasNextPage, hasPrevPage, next, prev, rows, totalPages, loading, firstPage, } = useInfiniteQueryHelper(useWithdrawalRecordsQuery, {
32
36
  filter: {
@@ -0,0 +1,2 @@
1
+ import type { Branch } from '../types';
2
+ export declare const BRANCHES: Branch[];
@@ -0,0 +1,42 @@
1
+ export const BRANCHES = [
2
+ {
3
+ code: 'BRCAL',
4
+ name: 'Bingo Republic 2nd floor Primark Center Deparo St., Caloocan City',
5
+ },
6
+ {
7
+ code: 'BRNAG',
8
+ name: 'Bingo Republic 3rd floor Robinsons Mall, Naga City, Camarines Sur',
9
+ },
10
+ {
11
+ code: 'BRANT',
12
+ name: 'Bingo Republic 2nd floor Robinsons Mall, San Vicente,Antique',
13
+ },
14
+ {
15
+ code: 'BRCLA',
16
+ name: 'Clark',
17
+ },
18
+ {
19
+ code: 'BRLAG',
20
+ name: 'Laguna',
21
+ },
22
+ {
23
+ code: 'BREAS',
24
+ name: 'Eastwood City, Quezon City',
25
+ },
26
+ {
27
+ code: 'BRMAR',
28
+ name: 'Bingo ng Bayan 4th floor Marikina Public Market, Marikina City',
29
+ },
30
+ {
31
+ code: 'BRILO',
32
+ name: 'Iloilo',
33
+ },
34
+ {
35
+ code: 'BRFIM',
36
+ name: 'Fisher Mall,Quezon City',
37
+ },
38
+ {
39
+ code: 'BRCAC',
40
+ name: 'Villa Caceres Hotel, Naga City,Camsur',
41
+ },
42
+ ];
@@ -1,5 +1,5 @@
1
1
  export declare const SITE_ID: string;
2
2
  export declare const PLATFORM_ID: string;
3
3
  export declare const PLATFORM_CODE: string;
4
- export declare const ENVIRONMENT: "production" | "development";
4
+ export declare const ENVIRONMENT: "development" | "production";
5
5
  export declare const INTERNALS__REPORT_WEB_VITALS: boolean;
@@ -6,13 +6,6 @@ interface Context {
6
6
  params: Promise<Params>;
7
7
  }
8
8
  export declare const GET: (req: NextRequest, { params }: Context) => Promise<NextResponse<{
9
- ok: false;
10
- message: string;
11
- __error?: unknown;
12
- } | {
13
- ok: true;
14
- data: import("../types").Session;
15
- }> | NextResponse<{
16
9
  ok: true;
17
10
  data?: never;
18
11
  } | {
@@ -26,6 +19,13 @@ export declare const GET: (req: NextRequest, { params }: Context) => Promise<Nex
26
19
  } | {
27
20
  ok: true;
28
21
  data: Record<string, unknown>;
22
+ }> | NextResponse<{
23
+ ok: false;
24
+ message: string;
25
+ __error?: unknown;
26
+ } | {
27
+ ok: true;
28
+ data: import("../types").Session;
29
29
  }>>;
30
30
  export declare const DELETE: (req: NextRequest, { params }: Context) => Promise<NextResponse<{
31
31
  ok: true;
@@ -0,0 +1,4 @@
1
+ export interface FacebookPixelProps {
2
+ fbId: string;
3
+ }
4
+ export declare function FacebookPixel(props: FacebookPixelProps): null;
@@ -0,0 +1,4 @@
1
+ export function FacebookPixel(props) {
2
+ console.log(props);
3
+ return null;
4
+ }
File without changes
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ export * from './FacebookPixel';
@@ -0,0 +1 @@
1
+ export * from './FacebookPixel.js';
@@ -0,0 +1,4 @@
1
+ export interface GoogleRecaptchaProps {
2
+ siteKey: string;
3
+ }
4
+ export declare function GoogleRecaptcha(props: GoogleRecaptchaProps): null;
@@ -0,0 +1,4 @@
1
+ export function GoogleRecaptcha(props) {
2
+ console.log(props);
3
+ return null;
4
+ }
File without changes
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ export * from './GoogleRecaptcha';
@@ -0,0 +1 @@
1
+ export * from './GoogleRecaptcha.js';
@@ -0,0 +1,2 @@
1
+ export * from './FacebookPixel';
2
+ export * from './GoogleRecaptcha';
@@ -0,0 +1,2 @@
1
+ export * from './FacebookPixel/index.js';
2
+ export * from './GoogleRecaptcha/index.js';
@@ -246,7 +246,7 @@ export interface LatestBetRecord {
246
246
  dateTimeSettled: string;
247
247
  dateTimeCreated: string;
248
248
  }
249
- export type DepositType = 'BANK' | 'GCASH' | 'MANUAL' | 'MAYA' | 'MAYA_APP' | 'QR_PH' | 'ONLINE_BANK' | 'MANUAL_BANK' | 'MANUAL_UPI' | 'GCASH_DIRECT_WEBPAY';
249
+ export type DepositType = 'BANK' | 'GCASH' | 'MANUAL' | 'MAYA' | 'MAYA_APP' | 'QR_PH' | 'ONLINE_BANK' | 'MANUAL_BANK' | 'MANUAL_UPI' | 'PISO_PAY_CHECKOUT' | 'LIBANGAN_PAY_IN';
250
250
  export type DepositStatus = 'PENDING' | 'ACCEPTED' | 'APPROVED' | 'REJECTED' | 'CONFIRMED' | 'CANCELLED' | 'FAILED';
251
251
  export type KnownDepositError = 'INSUFFICIENT_BALANCE' | 'DEPOSIT_CREATION_REQUEST_FAILED' | 'DEPOSIT_EXECUTION_REQUEST_FAILED' | 'REQUEST_SESSION_EXPIRED' | 'REQUEST_TIMEOUT' | 'SYSTEM_CANCELLATION' | 'UNEXPECTED_ERROR' | 'FAILED_TO_PROCESS_PAYMENT' | 'MINIMUM_DEPOSIT_AMOUNT_NOT_MET' | 'UNTOUCHED';
252
252
  export interface DepositRecord {
@@ -273,7 +273,7 @@ export interface Deposit {
273
273
  error?: KnownDepositError;
274
274
  }
275
275
  export type Bank = 'AUBKPHMM' | 'MBTCPHMM' | 'BNORPHMM' | 'MKRUPHM1';
276
- export type WithdrawalType = 'MANUAL' | 'BANK' | 'GCASH' | 'MAYA_APP' | 'INSTAPAY' | 'MANUAL_UPI' | 'MANUAL_BANK';
276
+ export type WithdrawalType = 'MANUAL' | 'BANK' | 'GCASH' | 'MAYA_APP' | 'INSTAPAY' | 'MANUAL_UPI' | 'VENTAJA_DISBURSEMENT' | 'PISO_PAY_REMITTANCE' | 'MANUAL_BANK';
277
277
  export type WithdrawalStatus = 'PENDING' | 'ACCEPTED' | 'APPROVED' | 'REJECTED' | 'CONFIRMED' | 'CANCELLED' | 'FAILED';
278
278
  export type WithdrawalError = 'WITHDRAWAL_CREATION_REQUEST_FAILED' | 'WITHDRAWAL_EXECUTION_REQUEST_FAILED' | 'REQUEST_SESSION_EXPIRED' | 'REQUEST_TIMEOUT' | 'SYSTEM_CANCELLATION' | 'UNEXPECTED_ERROR' | 'DAILY_PURCHASE_OR_DEPOSIT_LIMIT_EXCEEDED' | 'WITHDRAWAL_ACCOUNT_EMPTY' | 'FAILED_TO_PROCESS_PAYMENT';
279
279
  export type KnownWithdrawalError = 'AccountNotVerifiedError' | 'InvalidWithdrawalAmountError' | 'WithdrawalDailyLimitExceededError' | 'InvalidTransactionPasswordError' | 'NotEnoughBalanceError' | 'WalletDoesNotExistError' | 'TransactionPasswordNotSetError' | 'MobileNumberNotVerifiedError' | 'ReCAPTCHAVerificationFailedError';