@opexa/portal-components 0.0.909 → 0.0.911

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 (65) hide show
  1. package/dist/client/hooks/useCreateAurixPayGCashDepositMutation.js +1 -1
  2. package/dist/components/DepositWithdrawal/Deposit/AurixPayGCashDeposit/AurixPayGCashDeposit.js +21 -2
  3. package/dist/components/DepositWithdrawal/Deposit/AurixPayGrabPayDeposit/AurixPayGrabPayDeposit.js +1 -1
  4. package/dist/components/DepositWithdrawal/Deposit/AurixPayPayMayaDeposit/AurixPayGrabPayDeposit.js +1 -1
  5. package/dist/components/DepositWithdrawal/Deposit/AurixPayQRPHDeposit/AurixPayQRPHDepositContext.d.ts +2 -2
  6. package/dist/components/DepositWithdrawal/Deposit/AurixPayQRPHDeposit/Form.js +2 -1
  7. package/dist/components/DepositWithdrawal/Deposit/AurixPayQRPHDeposit/useAurixPayQRPHDeposit.d.ts +1 -1
  8. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositContext.d.ts +2 -2
  9. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.d.ts +1 -1
  10. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositContext.d.ts +2 -2
  11. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.d.ts +1 -1
  12. package/dist/components/DepositWithdrawal/Withdrawal/Withdrawal.js +1 -1
  13. package/dist/components/Disclaimer/useDisclaimer.js +5 -2
  14. package/dist/components/Jackpots/JackpotsList/JackpotsList.js +6 -5
  15. package/dist/components/Jackpots/JackpotsListNext/JackpotsList.js +5 -4
  16. package/dist/components/Quests/Quests.client.d.ts +4 -4
  17. package/dist/components/Quests/Quests.client.js +10 -9
  18. package/dist/components/SingleSignOn/SingleSignOn.d.ts +1 -1
  19. package/dist/components/SingleSignOn/SingleSignOn.js +7 -15
  20. package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarousel.js +4 -3
  21. package/dist/components/Tournaments/TournamentsList/TournamentsList.js +5 -4
  22. package/dist/components/TransactionRecords/TableFilters.js +4 -0
  23. package/dist/schemas/forgotPasswordSchema.d.ts +4 -4
  24. package/dist/types/index.d.ts +1 -1
  25. package/dist/ui/AlertDialog/AlertDialog.d.ts +88 -88
  26. package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +8 -8
  27. package/dist/ui/Badge/Badge.d.ts +12 -12
  28. package/dist/ui/Badge/badge.anatomy.d.ts +1 -1
  29. package/dist/ui/Badge/badge.recipe.d.ts +3 -3
  30. package/dist/ui/Carousel/Carousel.d.ts +72 -72
  31. package/dist/ui/Carousel/carousel.recipe.d.ts +8 -8
  32. package/dist/ui/Checkbox/Checkbox.d.ts +23 -23
  33. package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -3
  34. package/dist/ui/Clipboard/Clipboard.d.ts +18 -18
  35. package/dist/ui/Clipboard/clipboard.recipe.d.ts +3 -3
  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 +33 -33
  41. package/dist/ui/Dialog/dialog.recipe.d.ts +3 -3
  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 +360 -360
  47. package/dist/ui/Menu/menu.recipe.d.ts +20 -20
  48. package/dist/ui/Popover/Popover.d.ts +55 -55
  49. package/dist/ui/Popover/popover.recipe.d.ts +5 -5
  50. package/dist/ui/Progress/Progress.d.ts +27 -27
  51. package/dist/ui/Progress/progress.recipe.d.ts +3 -3
  52. package/dist/ui/QrCode/QrCode.d.ts +25 -25
  53. package/dist/ui/QrCode/qrCode.recipe.d.ts +5 -5
  54. package/dist/ui/SegmentGroup/SegmentGroup.d.ts +18 -18
  55. package/dist/ui/SegmentGroup/segmentGroup.recipe.d.ts +3 -3
  56. package/dist/ui/Select/Select.d.ts +45 -45
  57. package/dist/ui/Select/select.recipe.d.ts +3 -3
  58. package/dist/ui/Table/Table.d.ts +21 -21
  59. package/dist/ui/Table/table.anatomy.d.ts +1 -1
  60. package/dist/ui/Table/table.recipe.d.ts +3 -3
  61. package/dist/ui/Tabs/Tabs.d.ts +15 -15
  62. package/dist/ui/Tabs/tabs.recipe.d.ts +3 -3
  63. package/dist/ui/Tooltip/Tooltip.d.ts +30 -30
  64. package/dist/ui/Tooltip/tooltip.recipe.d.ts +5 -5
  65. package/package.json +2 -1
@@ -45,7 +45,7 @@ export const useCreateAurixPayGCashDepositMutation = (config) => {
45
45
  maxAttempt: 20,
46
46
  });
47
47
  // Sleep for 3.5 seconds before polling
48
- await new Promise((resolve) => setTimeout(resolve, 3500));
48
+ await new Promise((resolve) => setTimeout(resolve, 6000));
49
49
  const res = await poll();
50
50
  if (res?.error) {
51
51
  const error = new Error();
@@ -97,7 +97,7 @@ export function AurixPayGCashDeposit() {
97
97
  const depositsCount = depositsCountQuery.data ?? 0;
98
98
  const paymentSettingsQuery = usePaymentSettingsQuery();
99
99
  const paymentSettings = paymentSettingsQuery.data;
100
- const gatewaySettings = paymentSettings?.aioGCashDepositGatewaySettings;
100
+ const gatewaySettings = paymentSettings?.aurixPayGCashDepositGatewaySettings;
101
101
  const maximumAmount = parseDecimal(gatewaySettings?.maximumAmount, 0);
102
102
  const minimumAmount = depositsCount <= 0
103
103
  ? parseDecimal(paymentSettingsQuery.data?.minimumFirstDepositAmount, 0)
@@ -200,7 +200,26 @@ export function AurixPayGCashDeposit() {
200
200
  accountNumber: data.accountNumber,
201
201
  });
202
202
  }
203
- }), noValidate: true, children: [_jsxs(Field.Root, { invalid: !!form.formState.errors.accountNumber, children: [_jsx(Field.Label, { children: "Account number" }), _jsx(Field.Input, { ...form.register('accountNumber') }), _jsx(Field.ErrorText, { children: form.formState.errors.accountNumber?.message })] }), _jsx(Controller, { control: form.control, name: "amount", render: (o) => (_jsxs(Field.Root, { invalid: !!form.formState.errors.amount, className: "mt-lg", children: [_jsxs(NumberInput.Root, { min: 0, step: 1, value: o.field.value, onValueChange: (details) => {
203
+ }), noValidate: true, children: [_jsxs(Field.Root, { invalid: !!form.formState.errors.accountNumber, children: [_jsx(Field.Label, { children: "Account number" }), _jsx(Field.Input, { ...form.register('accountNumber', {
204
+ onChange: (e) => {
205
+ // Allow only digits and leading +
206
+ let value = e.target.value;
207
+ // Remove all non-digit except leading +
208
+ value = value.replace(/(?!^)\D/g, '');
209
+ if (value.startsWith('+')) {
210
+ // keep leading +
211
+ value = '+' + value.slice(1).replace(/\D/g, '');
212
+ }
213
+ else {
214
+ // remove all non-digits
215
+ value = value.replace(/\D/g, '');
216
+ }
217
+ e.target.value = value;
218
+ form.setValue('accountNumber', value, {
219
+ shouldValidate: true,
220
+ });
221
+ },
222
+ }), inputMode: "tel", pattern: "^\\+?[0-9]*$", autoComplete: "tel" }), _jsx(Field.ErrorText, { children: form.formState.errors.accountNumber?.message })] }), _jsx(Controller, { control: form.control, name: "amount", render: (o) => (_jsxs(Field.Root, { invalid: !!form.formState.errors.amount, className: "mt-lg", children: [_jsxs(NumberInput.Root, { min: 0, step: 1, value: o.field.value, onValueChange: (details) => {
204
223
  o.field.onChange(details.value);
205
224
  }, allowMouseWheel: true, children: [_jsx(NumberInput.Label, { children: "Enter amount you want to deposit" }), _jsxs(NumberInput.Control, { children: [_jsx(NumberInput.Input, {}), _jsx(NumberInput.IncrementTrigger, { children: _jsx(ChevronUpIcon, {}) }), _jsx(NumberInput.DecrementTrigger, { children: _jsx(ChevronDownIcon, {}) })] })] }), _jsx(Field.ErrorText, { children: form.formState.errors.amount?.message })] })) }), _jsx(AmountChoices, { value: parseDecimal(form.watch('amount'), 0), onChange: (value) => {
206
225
  form.setValue('amount', value.toString(), {
@@ -97,7 +97,7 @@ export function AurixPayPayMayaDeposit() {
97
97
  const depositsCount = depositsCountQuery.data ?? 0;
98
98
  const paymentSettingsQuery = usePaymentSettingsQuery();
99
99
  const paymentSettings = paymentSettingsQuery.data;
100
- const gatewaySettings = paymentSettings?.aioGCashDepositGatewaySettings;
100
+ const gatewaySettings = paymentSettings?.aurixPayGrabPayDepositGatewaySettings;
101
101
  const maximumAmount = parseDecimal(gatewaySettings?.maximumAmount, 0);
102
102
  const minimumAmount = depositsCount <= 0
103
103
  ? parseDecimal(paymentSettingsQuery.data?.minimumFirstDepositAmount, 0)
@@ -97,7 +97,7 @@ export function AurixPayGrabPayDeposit() {
97
97
  const depositsCount = depositsCountQuery.data ?? 0;
98
98
  const paymentSettingsQuery = usePaymentSettingsQuery();
99
99
  const paymentSettings = paymentSettingsQuery.data;
100
- const gatewaySettings = paymentSettings?.aioGCashDepositGatewaySettings;
100
+ const gatewaySettings = paymentSettings?.aurixPayGrabPayDepositGatewaySettings;
101
101
  const maximumAmount = parseDecimal(gatewaySettings?.maximumAmount, 0);
102
102
  const minimumAmount = depositsCount <= 0
103
103
  ? parseDecimal(paymentSettingsQuery.data?.minimumFirstDepositAmount, 0)
@@ -1,6 +1,6 @@
1
1
  export declare const AurixPayQRPHDepositContext: (props: {
2
2
  value: {
3
- status: "idle" | "generating-qr-code" | "qr-code-generated" | "failed" | "confirmed";
3
+ status: "confirmed" | "failed" | "idle" | "generating-qr-code" | "qr-code-generated";
4
4
  deposit: import("../../../../types").Deposit | null;
5
5
  errorMessage: {
6
6
  name: string;
@@ -13,7 +13,7 @@ export declare const AurixPayQRPHDepositContext: (props: {
13
13
  } & {
14
14
  children?: import("react").ReactNode | undefined;
15
15
  }) => React.ReactNode, useAurixPayQRPHDepositContext: () => {
16
- status: "idle" | "generating-qr-code" | "qr-code-generated" | "failed" | "confirmed";
16
+ status: "confirmed" | "failed" | "idle" | "generating-qr-code" | "qr-code-generated";
17
17
  deposit: import("../../../../types").Deposit | null;
18
18
  errorMessage: {
19
19
  name: string;
@@ -31,11 +31,12 @@ export function Form() {
31
31
  const depositsCount = depositsCountQuery.data ?? 0;
32
32
  const paymentSettingsQuery = usePaymentSettingsQuery();
33
33
  const paymentSettings = paymentSettingsQuery.data;
34
- const gatewaySettings = paymentSettings?.qrphDepositGatewaySettings;
34
+ const gatewaySettings = paymentSettings?.aurixPayQrphDepositGatewaySettings;
35
35
  const maximumAmount = parseDecimal(gatewaySettings?.maximumAmount, 0);
36
36
  const minimumAmount = depositsCount <= 0
37
37
  ? parseDecimal(paymentSettingsQuery.data?.minimumFirstDepositAmount, 0)
38
38
  : parseDecimal(gatewaySettings?.minimumAmount, 0);
39
+ console.log(gatewaySettings, 'maximumAmount');
39
40
  const promosQuery = useAvailablePromosQuery();
40
41
  const promos = promosQuery.data ?? [];
41
42
  const definition = z
@@ -5,7 +5,7 @@ export interface GenerateQRCodeInput {
5
5
  promo?: string | null;
6
6
  }
7
7
  export declare function useAurixPayQRPHDeposit(): {
8
- status: "idle" | "generating-qr-code" | "qr-code-generated" | "failed" | "confirmed";
8
+ status: "confirmed" | "failed" | "idle" | "generating-qr-code" | "qr-code-generated";
9
9
  deposit: Deposit | null;
10
10
  errorMessage: {
11
11
  name: string;
@@ -1,7 +1,7 @@
1
1
  export declare const OnlineBankDepositContext: (props: {
2
2
  value: {
3
3
  view: "form" | "vca";
4
- status: "waiting" | "failed" | "processing" | "verification-waiting" | "verification-processing" | "verification-failed" | "verification-success";
4
+ status: "waiting" | "processing" | "failed" | "verification-waiting" | "verification-processing" | "verification-failed" | "verification-success";
5
5
  verify: () => void;
6
6
  reset: () => void;
7
7
  deposit: import("../../../../types").Deposit | null;
@@ -14,7 +14,7 @@ export declare const OnlineBankDepositContext: (props: {
14
14
  children?: import("react").ReactNode | undefined;
15
15
  }) => React.ReactNode, useOnlineBankDepositContext: () => {
16
16
  view: "form" | "vca";
17
- status: "waiting" | "failed" | "processing" | "verification-waiting" | "verification-processing" | "verification-failed" | "verification-success";
17
+ status: "waiting" | "processing" | "failed" | "verification-waiting" | "verification-processing" | "verification-failed" | "verification-success";
18
18
  verify: () => void;
19
19
  reset: () => void;
20
20
  deposit: import("../../../../types").Deposit | null;
@@ -2,7 +2,7 @@ import type { Deposit } from '../../../../types';
2
2
  export type UseOnlineBankDepositReturn = ReturnType<typeof useOnlineBankDeposit>;
3
3
  export declare function useOnlineBankDeposit(): {
4
4
  view: "form" | "vca";
5
- status: "waiting" | "failed" | "processing" | "verification-waiting" | "verification-processing" | "verification-failed" | "verification-success";
5
+ status: "waiting" | "processing" | "failed" | "verification-waiting" | "verification-processing" | "verification-failed" | "verification-success";
6
6
  verify: () => void;
7
7
  reset: () => void;
8
8
  deposit: Deposit | null;
@@ -1,6 +1,6 @@
1
1
  export declare const QRPHDepositContext: (props: {
2
2
  value: {
3
- status: "idle" | "generating-qr-code" | "qr-code-generated" | "failed" | "confirmed";
3
+ status: "confirmed" | "failed" | "idle" | "generating-qr-code" | "qr-code-generated";
4
4
  deposit: import("../../../../types").Deposit | null;
5
5
  errorMessage: {
6
6
  name: string;
@@ -13,7 +13,7 @@ export declare const QRPHDepositContext: (props: {
13
13
  } & {
14
14
  children?: import("react").ReactNode | undefined;
15
15
  }) => React.ReactNode, useQRPHDepositContext: () => {
16
- status: "idle" | "generating-qr-code" | "qr-code-generated" | "failed" | "confirmed";
16
+ status: "confirmed" | "failed" | "idle" | "generating-qr-code" | "qr-code-generated";
17
17
  deposit: import("../../../../types").Deposit | null;
18
18
  errorMessage: {
19
19
  name: string;
@@ -5,7 +5,7 @@ export interface GenerateQRCodeInput {
5
5
  promo?: string | null;
6
6
  }
7
7
  export declare function useQRPHDeposit(): {
8
- status: "idle" | "generating-qr-code" | "qr-code-generated" | "failed" | "confirmed";
8
+ status: "confirmed" | "failed" | "idle" | "generating-qr-code" | "qr-code-generated";
9
9
  deposit: Deposit | null;
10
10
  errorMessage: {
11
11
  name: string;
@@ -120,7 +120,7 @@ export function Withdrawal() {
120
120
  if (enabledPaymentMethods.length <= 0) {
121
121
  return _jsx(NoAvailablePaymentMethods, {});
122
122
  }
123
- return (_jsxs(_Fragment, { children: [_jsx(PaymentMethods, { value: paymentMethod, onChange: setPaymentMethod, options: enabledPaymentMethods }), paymentMethod === 'GCASH' && _jsx(GCashWithdrawal, {}), paymentMethod === 'MAYA' && _jsx(MayaWithdrawal, {}), paymentMethod === 'MAYA_APP' && _jsx(MayaAppWithdrawal, {}), paymentMethod === 'INSTAPAY' && _jsx(InstapayWithdrawal, {}), paymentMethod === 'INSTAPAY_GCASH' && _jsx(InstapayGCashWithdrawal, {}), paymentMethod === 'INSTAPAY_PAYMAYA' && _jsx(InstapayPaymayaWithdrawal, {}), paymentMethod === 'VENTAJA_DISBURSEMENT' && _jsx(VentajaWithdrawal, {}), paymentMethod === 'PISO_PAY' && _jsx(PisoPayWithdrawal, {}), paymentMethod === 'GCASH_STANDARD_CASH_IN' && (_jsx(GCashStandardCashInWithdrawal, {}))] }));
123
+ return (_jsxs(_Fragment, { children: [enabledPaymentMethods.length > 1 && (_jsx(PaymentMethods, { value: paymentMethod, onChange: setPaymentMethod, options: enabledPaymentMethods })), paymentMethod === 'GCASH' && _jsx(GCashWithdrawal, {}), paymentMethod === 'MAYA' && _jsx(MayaWithdrawal, {}), paymentMethod === 'MAYA_APP' && _jsx(MayaAppWithdrawal, {}), paymentMethod === 'INSTAPAY' && _jsx(InstapayWithdrawal, {}), paymentMethod === 'INSTAPAY_GCASH' && _jsx(InstapayGCashWithdrawal, {}), paymentMethod === 'INSTAPAY_PAYMAYA' && _jsx(InstapayPaymayaWithdrawal, {}), paymentMethod === 'VENTAJA_DISBURSEMENT' && _jsx(VentajaWithdrawal, {}), paymentMethod === 'PISO_PAY' && _jsx(PisoPayWithdrawal, {}), paymentMethod === 'GCASH_STANDARD_CASH_IN' && (_jsx(GCashStandardCashInWithdrawal, {}))] }));
124
124
  }
125
125
  function AccountVerificationRequired() {
126
126
  const globalStore = useGlobalStore(useShallow((ctx) => ({
@@ -1,4 +1,4 @@
1
- import { useSearchParams } from 'next/navigation';
1
+ import { usePathname, useSearchParams } from 'next/navigation';
2
2
  import { useTimeout } from 'usehooks-ts';
3
3
  import { useShallow } from 'zustand/shallow';
4
4
  import { useGlobalStore } from '../../client/hooks/useGlobalStore.js';
@@ -7,8 +7,11 @@ export function useDisclaimer({ showInLogin = false, } = {}) {
7
7
  'use no memo';
8
8
  const sessionQuery = useSessionQuery();
9
9
  const searchParams = useSearchParams();
10
+ const pathname = usePathname();
10
11
  const disclaimerStore = useGlobalStore(useShallow((state) => state.disclaimer));
11
- const shouldShowDisclaimer = searchParams.get('game-exit') !== 'true';
12
+ // Check if we're on an SSO route (like /login/[partnerId])
13
+ const isSsoRoute = pathname?.startsWith('/login/') && pathname.includes('/');
14
+ const shouldShowDisclaimer = searchParams.get('game-exit') !== 'true' && !isSsoRoute;
12
15
  const isAuthenticated = sessionQuery.data?.status === 'authenticated';
13
16
  // Auto-open only for guest flow (original behavior)
14
17
  useTimeout(() => {
@@ -1,18 +1,19 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { isString } from 'lodash-es';
4
+ import dynamic from 'next/dynamic';
4
5
  import Image, {} from 'next/image';
5
6
  import { useIntersectionObserver } from 'usehooks-ts';
6
7
  import { useFeatureFlag } from '../../../client/hooks/useFeatureFlag.js';
7
8
  import { useJackpotsQuery } from '../../../client/hooks/useJackpotsQuery.js';
8
9
  import closeChest from '../../../images/close-chest.png';
9
10
  import { isStyleEntries } from '../../../utils/isStyleEntries.js';
10
- import { JackpotsListNext } from '../JackpotsListNext/JackpotsList.js';
11
11
  import { JackpotsListItemContext, JackpotsListPropsContext, } from './JackpotsListContext.js';
12
- import { JackpotsListItemCrazyWin } from './JackpotsListItem.CrazyWin.js';
13
- import { JackpotsListItemHappyBingo } from './JackpotsListItem.HappyBingo.js';
14
- import { JackpotsListItemDesktop } from './JackpotsListItemDesktop.js';
15
- import { JackpotsListItemMobile } from './JackpotsListItemMobile.js';
12
+ const JackpotsListNext = dynamic(() => import('../JackpotsListNext/JackpotsList.js').then((mod) => mod.JackpotsListNext));
13
+ const JackpotsListItemCrazyWin = dynamic(() => import('./JackpotsListItem.CrazyWin.js').then((mod) => mod.JackpotsListItemCrazyWin));
14
+ const JackpotsListItemHappyBingo = dynamic(() => import('./JackpotsListItem.HappyBingo.js').then((mod) => mod.JackpotsListItemHappyBingo));
15
+ const JackpotsListItemDesktop = dynamic(() => import('./JackpotsListItemDesktop.js').then((mod) => mod.JackpotsListItemDesktop));
16
+ const JackpotsListItemMobile = dynamic(() => import('./JackpotsListItemMobile.js').then((mod) => mod.JackpotsListItemMobile));
16
17
  export function JackpotsList(props) {
17
18
  const [ref, inView] = useIntersectionObserver({
18
19
  threshold: 0.25,
@@ -1,15 +1,16 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { isString } from 'lodash-es';
4
+ import dynamic from 'next/dynamic';
4
5
  import Image, {} from 'next/image';
5
6
  import { useJackpotsNextQuery } from '../../../client/hooks/useJackpotsNextQuery.js';
6
7
  import closeChest from '../../../images/close-chest.png';
7
8
  import { isStyleEntries } from '../../../utils/isStyleEntries.js';
8
- import { JackpotMultiStageDesktop } from './JackpotMultiStageDesktop.js';
9
- import { JackpotMultiStageMobile } from './JackpotMultiStageMobile.js';
10
9
  import { JackpotsListItemContext, JackpotsListPropsContext, } from './JackpotsListContext.js';
11
- import { JackpotsListItemDesktop } from './JackpotsListItemDesktop.js';
12
- import { JackpotsListItemMobile } from './JackpotsListItemMobile.js';
10
+ const JackpotMultiStageDesktop = dynamic(() => import('./JackpotMultiStageDesktop.js').then((mod) => mod.JackpotMultiStageDesktop));
11
+ const JackpotMultiStageMobile = dynamic(() => import('./JackpotMultiStageMobile.js').then((mod) => mod.JackpotMultiStageMobile));
12
+ const JackpotsListItemDesktop = dynamic(() => import('./JackpotsListItemDesktop.js').then((mod) => mod.JackpotsListItemDesktop));
13
+ const JackpotsListItemMobile = dynamic(() => import('./JackpotsListItemMobile.js').then((mod) => mod.JackpotsListItemMobile));
13
14
  export function JackpotsListNext(props) {
14
15
  const jackpotsNextQuery = useJackpotsNextQuery({
15
16
  first: 25,
@@ -1,10 +1,10 @@
1
1
  import { type ImageProps } from 'next/image';
2
2
  import { type CSSProperties, type ReactNode } from 'react';
3
3
  import type { GameProvider } from '../../types';
4
- import { type ClassNameEntries as DailyCheckInQuestClassNameEntries } from './DailyCheckInQuest';
5
- import { type ClassNameEntries as JourneyQuestClassNameEntries } from './JourneyQuest';
6
- import { type WageringClassNameEntries, type ClassNameEntries as WageringQuestClassNameEntries } from './WageringQuest';
7
- import { type ClassNameEntries as WageringQuestNextClassNameEntries } from './WageringQuest__next';
4
+ import type { ClassNameEntries as DailyCheckInQuestClassNameEntries } from './DailyCheckInQuest';
5
+ import type { ClassNameEntries as JourneyQuestClassNameEntries } from './JourneyQuest';
6
+ import type { WageringClassNameEntries, ClassNameEntries as WageringQuestClassNameEntries } from './WageringQuest';
7
+ import type { ClassNameEntries as WageringQuestNextClassNameEntries } from './WageringQuest__next';
8
8
  export interface ClassNameEntries {
9
9
  root?: string;
10
10
  wageringQuest?: string | WageringQuestClassNameEntries;
@@ -1,6 +1,7 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { isString } from 'lodash-es';
4
+ import dynamic from 'next/dynamic';
4
5
  import Image, {} from 'next/image';
5
6
  import { Suspense, useEffect, useState, } from 'react';
6
7
  import { twMerge } from 'tailwind-merge';
@@ -11,17 +12,17 @@ import { useFeatureFlag } from '../../client/hooks/useFeatureFlag.js';
11
12
  import { SpinnerIcon } from '../../icons/SpinnerIcon.js';
12
13
  import closeChest from '../../images/close-chest.png';
13
14
  import { SegmentGroup } from '../../ui/SegmentGroup/index.js';
14
- import CWDailyCheckInQuest from './Crazywin/CWDailyCheckInQuest.js';
15
- import CWJourneyQuest from './Crazywin/CWJourneyQuest.js';
16
- import CWOnboardingQuest from './Crazywin/CWOnboardingQuest.js';
17
- import CWWageringQuestNext from './Crazywin/CWWageringQuestNext.js';
18
- import { DailyCheckInQuest, } from './DailyCheckInQuest.js';
19
- import { JourneyQuest, } from './JourneyQuest.js';
15
+ const CWDailyCheckInQuest = dynamic(() => import('./Crazywin/CWDailyCheckInQuest.js').then((mod) => mod.default), { ssr: false, loading: () => null });
16
+ const CWJourneyQuest = dynamic(() => import('./Crazywin/CWJourneyQuest.js').then((mod) => mod.default), { ssr: false, loading: () => null });
17
+ const CWOnboardingQuest = dynamic(() => import('./Crazywin/CWOnboardingQuest.js').then((mod) => mod.default), { ssr: false, loading: () => null });
18
+ const CWWageringQuestNext = dynamic(() => import('./Crazywin/CWWageringQuestNext.js').then((mod) => mod.default), { ssr: false, loading: () => null });
19
+ const DailyCheckInQuest = dynamic(() => import('./DailyCheckInQuest.js').then((mod) => mod.DailyCheckInQuest), { ssr: false, loading: () => null });
20
+ const JourneyQuest = dynamic(() => import('./JourneyQuest.js').then((mod) => mod.JourneyQuest), { ssr: false, loading: () => null });
21
+ const OnboardingQuest = dynamic(() => import('./OnboardingQuest.js').then((mod) => mod.OnboardingQuest), { ssr: false, loading: () => null });
22
+ const WageringQuest = dynamic(() => import('./WageringQuest.js').then((mod) => mod.WageringQuest), { ssr: false, loading: () => null });
23
+ const WageringQuestNext = dynamic(() => import('./WageringQuest__next.js').then((mod) => mod.WageringQuestNext), { ssr: false, loading: () => null });
20
24
  import { NoQuests } from './NoQuests.js';
21
- import { OnboardingQuest } from './OnboardingQuest.js';
22
25
  import { QuestContext } from './QuestsContext.js';
23
- import { WageringQuest, } from './WageringQuest.js';
24
- import { WageringQuestNext, } from './WageringQuest__next.js';
25
26
  const TabDefinition = z.enum(['AVAILABLE', 'COMPLETED', 'FAILED']);
26
27
  export function Quests__client(props) {
27
28
  const featureFlag = useFeatureFlag();
@@ -1,4 +1,4 @@
1
- export declare function SingleSignOn(): import("react/jsx-runtime").JSX.Element | null;
1
+ export declare function SingleSignOn(): import("react/jsx-runtime").JSX.Element;
2
2
  export declare function VerifyMobileNumber({ onClose }: {
3
3
  onClose?: () => void;
4
4
  }): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { zodResolver } from '@hookform/resolvers/zod';
4
4
  import Image from 'next/image';
5
5
  import { useParams, useRouter, useSearchParams } from 'next/navigation';
@@ -45,8 +45,6 @@ export function SingleSignOn() {
45
45
  toaster.error({
46
46
  description: 'Account creation failed',
47
47
  });
48
- setIsSsoOpen(false);
49
- router.push('/');
50
48
  },
51
49
  });
52
50
  // biome-ignore lint/correctness/useExhaustiveDependencies: We only want to trigger the mutation when the URL parameters change.
@@ -56,18 +54,12 @@ export function SingleSignOn() {
56
54
  ssoMutation.mutate({ partnerId, token });
57
55
  }
58
56
  }, [partnerId, token]);
59
- if (ssoMutation.isPending) {
60
- return (_jsx(Dialog.Root, { open: isSsoOpen, lazyMount: true, unmountOnExit: true, closeOnEscape: false, closeOnInteractOutside: false, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, {}), _jsx(Dialog.Positioner, { className: "flex items-center", children: _jsxs(Dialog.Content, { className: "flex h-[333px] w-[375px] flex-col items-center space-y-4 bg-[#111827] p-6 text-center", style: {
61
- backgroundImage: `url(${lightBg.src})`,
62
- }, children: [_jsx(Image, { src: inplayLogo, alt: "inplay logo", width: 82, height: 34, className: "h-auto w-[82px]" }), _jsx("div", { className: "mb-4 h-7 w-7 animate-spin rounded-full border-4 border-[#101730] border-t-[#F05027]" }), _jsx("div", { className: "text-[#CECFD2] text-sm", children: "We\u2019re creating an account for you..." }), _jsx("div", { className: "text-[#CECFD2] text-sm", children: "In the meantime, you can watch your favorite series on CinePop!" }), _jsxs("div", { className: "pt-3", children: [_jsx(Image, { src: cinePopLogo, alt: "cine poplogo", width: 151, height: 24, className: "mx-auto mb-2 h-auto w-[151px]" }), _jsxs("div", { className: "flex gap-2", children: [_jsx(Image, { src: secretConfessionsLogo, alt: "secret confessions logo", width: 104, height: 53, className: "h-auto w-[104px]" }), _jsx(Image, { src: dearUtolLogo, alt: "dear utol logo", width: 105, height: 53, className: "h-auto w-[105px]" }), _jsx(Image, { src: mariasDiary, alt: "maria's diary logo", width: 104, height: 53, className: "h-auto w-[104px]" })] })] })] }) })] }) }));
63
- }
64
- if (showVerifyDialog) {
65
- return (_jsx(VerifyMobileNumber, { onClose: () => {
66
- setShowVerifyDialog(false);
67
- router.push('/');
68
- } }));
69
- }
70
- return null;
57
+ return (_jsxs(_Fragment, { children: [_jsx(Dialog.Root, { open: isSsoOpen, lazyMount: true, unmountOnExit: true, closeOnEscape: false, closeOnInteractOutside: false, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, {}), _jsx(Dialog.Positioner, { className: "flex items-center", children: _jsxs(Dialog.Content, { className: "flex h-[333px] w-[375px] flex-col items-center space-y-4 bg-[#111827] p-6 text-center justify-between", style: {
58
+ backgroundImage: `url(${lightBg.src})`,
59
+ }, children: [_jsxs("div", { className: 'flex flex-col items-center', children: [_jsx(Image, { src: inplayLogo, alt: "inplay logo", width: 82, height: 34, className: "h-auto w-[82px] " }), ssoMutation.isError ? (_jsxs(_Fragment, { children: [_jsx("div", { className: "text-[#CECFD2] text-sm mt-4", children: "Account creation failed. Please try again." }), _jsx(Button, { type: "button", className: 'mt-4', onClick: () => router.push('/'), children: "Back to home page" })] })) : (_jsxs(_Fragment, { children: [_jsx("div", { className: "mb-4 h-7 w-7 animate-spin rounded-full border-4 border-[#101730] border-t-[#F05027]" }), _jsx("div", { className: "text-[#CECFD2] text-sm", children: "We're creating an account for you..." }), _jsx("div", { className: "text-[#CECFD2] text-sm", children: "In the meantime, you can watch your favorite series on CinePop!" })] }))] }), _jsxs("div", { className: "pt-3", children: [_jsx(Image, { src: cinePopLogo, alt: "cine poplogo", width: 151, height: 24, className: "mx-auto mb-2 h-auto w-[151px]" }), _jsxs("div", { className: "flex gap-2", children: [_jsx(Image, { src: secretConfessionsLogo, alt: "secret confessions logo", width: 104, height: 53, className: "h-auto w-[104px]" }), _jsx(Image, { src: dearUtolLogo, alt: "dear utol logo", width: 105, height: 53, className: "h-auto w-[105px]" }), _jsx(Image, { src: mariasDiary, alt: "maria's diary logo", width: 104, height: 53, className: "h-auto w-[104px]" })] })] })] }) })] }) }), showVerifyDialog && (_jsx(VerifyMobileNumber, { onClose: () => {
60
+ setShowVerifyDialog(false);
61
+ router.push('/');
62
+ } }))] }));
71
63
  }
72
64
  export function VerifyMobileNumber({ onClose }) {
73
65
  const [step, setStep] = useState(1);
@@ -2,6 +2,7 @@
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import useEmblaCarousel from 'embla-carousel-react';
4
4
  import { isString } from 'lodash-es';
5
+ import dynamic from 'next/dynamic';
5
6
  import Image from 'next/image';
6
7
  import Link from 'next/link';
7
8
  import { useCallback, useEffect, useState, } from 'react';
@@ -13,10 +14,10 @@ import { ChevronRightIcon } from '../../../icons/ChevronRightIcon.js';
13
14
  import tournamentIcon from '../../../images/tourna-icon.webp';
14
15
  import { Button } from '../../../ui/Button/index.js';
15
16
  import { isStyleEntries } from '../../../utils/isStyleEntries.js';
16
- import { TournamentsCarouselItemCrazywin } from './TournamentCarouselItem.Crazywin.js';
17
17
  import { TournamentsCarouselItemContext } from './TournamentsCarouselContext.js';
18
- import { TournamentsCarouselItem } from './TournamentsCarouselItem.js';
19
- import { TournamentsCarouselItemHappyBingo } from './TournamentsCarouselItem.HappyBingo.js';
18
+ const TournamentsCarouselItemCrazywin = dynamic(() => import('./TournamentCarouselItem.Crazywin.js').then((mod) => mod.TournamentsCarouselItemCrazywin), { ssr: false, loading: () => null });
19
+ const TournamentsCarouselItemHappyBingo = dynamic(() => import('./TournamentsCarouselItem.HappyBingo.js').then((mod) => mod.TournamentsCarouselItemHappyBingo), { ssr: false, loading: () => null });
20
+ const TournamentsCarouselItem = dynamic(() => import('./TournamentsCarouselItem.js').then((mod) => mod.TournamentsCarouselItem), { ssr: false, loading: () => null });
20
21
  export function TournamentsCarousel({ style, className, ...props }) {
21
22
  const [emblaRef, emblaApi] = useEmblaCarousel({
22
23
  align: 'start',
@@ -1,15 +1,16 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { isString } from 'lodash-es';
4
+ import dynamic from 'next/dynamic';
4
5
  import Image from 'next/image';
5
6
  import { useTournamentsQuery } from '../../../client/hooks/useTournamentsQuery.js';
6
7
  import closeChest from '../../../images/close-chest.png';
7
8
  import { isStyleEntries } from '../../../utils/isStyleEntries.js';
8
9
  import { TournamentsListItemContext, TournamentsListPropsContext, } from './TournamentsListContext.js';
9
- import { TournamentsListItemCrazyWin } from './TournamentsListItem.CrazyWin.js';
10
- import { TournamentsListItemHappyBingo } from './TournamentsListItem.HappyBingo.js';
11
- import { TournamentsListItemDesktop } from './TournamentsListItemDesktop.js';
12
- import { TournamentsListItemMobile } from './TournamentsListItemMobile.js';
10
+ const TournamentsListItemCrazyWin = dynamic(() => import('./TournamentsListItem.CrazyWin.js').then((mod) => mod.TournamentsListItemCrazyWin), { ssr: false, loading: () => null });
11
+ const TournamentsListItemHappyBingo = dynamic(() => import('./TournamentsListItem.HappyBingo.js').then((mod) => mod.TournamentsListItemHappyBingo), { ssr: false, loading: () => null });
12
+ const TournamentsListItemDesktop = dynamic(() => import('./TournamentsListItemDesktop.js').then((mod) => mod.TournamentsListItemDesktop), { ssr: false, loading: () => null });
13
+ const TournamentsListItemMobile = dynamic(() => import('./TournamentsListItemMobile.js').then((mod) => mod.TournamentsListItemMobile), { ssr: false, loading: () => null });
13
14
  export function TournamentsList({ style, className, ...props }) {
14
15
  const tournamentsQuery = useTournamentsQuery({
15
16
  first: 100,
@@ -42,6 +42,10 @@ const DEPOSIT_TYPES_MAP = {
42
42
  AIO_PAY_MAYA: 'AiO Maya',
43
43
  AIO_GRAB_PAY: 'AiO Grab Pay',
44
44
  AIO_PALAWAN_PAY: 'AiO Palawan Pay',
45
+ AURIX_PAY_QRPH: 'Aurix QRPH',
46
+ AURIX_PAY_GCASH: 'Aurix GCash',
47
+ AURIX_PAY_PAYMAYA: 'Aurix Maya',
48
+ AURIX_PAY_GRAB_PAY: 'Aurix GrabPay',
45
49
  MAYA_WEBPAY: 'Maya WebPay',
46
50
  TEST: 'Test',
47
51
  };
@@ -8,24 +8,24 @@ export declare const createForgotPasswordSchema: (mobileNumberParser: MobileNumb
8
8
  mobileNumber: z.ZodEffects<z.ZodString, string, string>;
9
9
  verificationCode: z.ZodEffects<z.ZodString, string, string>;
10
10
  }, "strip", z.ZodTypeAny, {
11
- verificationCode: string;
12
11
  password: string;
13
12
  mobileNumber: string;
13
+ verificationCode: string;
14
14
  confirmPassword: string;
15
15
  }, {
16
- verificationCode: string;
17
16
  password: string;
18
17
  mobileNumber: string;
18
+ verificationCode: string;
19
19
  confirmPassword: string;
20
20
  }>, {
21
- verificationCode: string;
22
21
  password: string;
23
22
  mobileNumber: string;
23
+ verificationCode: string;
24
24
  confirmPassword: string;
25
25
  }, {
26
- verificationCode: string;
27
26
  password: string;
28
27
  mobileNumber: string;
28
+ verificationCode: string;
29
29
  confirmPassword: string;
30
30
  }>;
31
31
  export type ForgotPasswordSchema = z.infer<ReturnType<typeof createForgotPasswordSchema>>;
@@ -255,7 +255,7 @@ export interface LatestBetRecord {
255
255
  dateTimeSettled: string;
256
256
  dateTimeCreated: string;
257
257
  }
258
- export type DepositType = 'BANK' | 'GCASH' | 'MANUAL' | 'MAYA' | 'MAYA_APP' | 'MAYA_WEBPAY' | 'QR_PH' | 'ONLINE_BANK' | 'MANUAL_BANK' | 'MANUAL_UPI' | 'PISO_PAY_CHECKOUT' | 'AIO_GCASH' | 'AIO_PAY_MAYA' | 'AIO_GRAB_PAY' | 'AIO_PALAWAN_PAY' | 'LIBANGAN_PAY_IN' | 'TEST';
258
+ export type DepositType = 'BANK' | 'GCASH' | 'MANUAL' | 'MAYA' | 'MAYA_APP' | 'MAYA_WEBPAY' | 'QR_PH' | 'ONLINE_BANK' | 'MANUAL_BANK' | 'MANUAL_UPI' | 'PISO_PAY_CHECKOUT' | 'AIO_GCASH' | 'AIO_PAY_MAYA' | 'AIO_GRAB_PAY' | 'AIO_PALAWAN_PAY' | 'LIBANGAN_PAY_IN' | 'AURIX_PAY_QRPH' | 'AURIX_PAY_GCASH' | 'AURIX_PAY_PAYMAYA' | 'AURIX_PAY_GRAB_PAY' | 'TEST';
259
259
  export type DepositStatus = 'PENDING' | 'ACCEPTED' | 'APPROVED' | 'REJECTED' | 'CONFIRMED' | 'CANCELLED' | 'FAILED';
260
260
  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';
261
261
  export interface DepositRecord {