@opexa/portal-components 0.0.635 → 0.0.636

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 (95) 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/Deposit/GCashDeposit/GCashDeposit.js +4 -7
  4. package/dist/components/DepositWithdrawal/Deposit/LibanganDeposit/LibanganDeposit.js +4 -7
  5. package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.js +4 -7
  6. package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.js +4 -7
  7. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.js +4 -7
  8. package/dist/components/DepositWithdrawal/Deposit/PisoPayDeposit/PisoPayDeposit.js +4 -7
  9. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.js +4 -7
  10. package/dist/components/DigitainLauncher/Loading.d.ts +1 -0
  11. package/dist/components/DigitainLauncher/Loading.js +5 -0
  12. package/dist/components/GameLaunch/GameLaunchTrigger.js +4 -7
  13. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.module.css +184 -0
  14. package/dist/components/Jackpots/JackpotsList/JackpotsListItem.module.css +184 -0
  15. package/dist/components/KYC/BasicInformation.d.ts +1 -0
  16. package/dist/components/KYC/BasicInformation.js +101 -0
  17. package/dist/components/KYC/IdentityVerification.d.ts +1 -0
  18. package/dist/components/KYC/IdentityVerification.js +120 -0
  19. package/dist/components/KYC/Indicator.d.ts +1 -0
  20. package/dist/components/KYC/Indicator.js +8 -0
  21. package/dist/components/KYC/KYC.lazy.d.ts +6 -0
  22. package/dist/components/KYC/KYC.lazy.js +45 -0
  23. package/dist/components/KYC/KYCContext.d.ts +6 -0
  24. package/dist/components/KYC/KYCContext.js +2 -0
  25. package/dist/components/KYC/KYCVerificationStatus.lazy.js +7 -4
  26. package/dist/components/KYC/PersonalInformation.d.ts +1 -0
  27. package/dist/components/KYC/PersonalInformation.js +122 -0
  28. package/dist/components/KYC/useKYC.d.ts +25 -0
  29. package/dist/components/KYC/useKYC.js +38 -0
  30. package/dist/components/PortalProvider/CXDTokenObserver.d.ts +1 -0
  31. package/dist/components/PortalProvider/CXDTokenObserver.js +30 -0
  32. package/dist/components/PortalProvider/LinkGoogleAccountObserver.d.ts +1 -0
  33. package/dist/components/PortalProvider/LinkGoogleAccountObserver.js +29 -0
  34. package/dist/components/SessionWatcher/SessionWatcher.d.ts +1 -0
  35. package/dist/components/SessionWatcher/SessionWatcher.js +20 -0
  36. package/dist/components/SessionWatcher/index.d.ts +1 -0
  37. package/dist/components/SessionWatcher/index.js +1 -0
  38. package/dist/components/SignIn/utils.d.ts +8 -0
  39. package/dist/components/SignIn/utils.js +26 -0
  40. package/dist/constants/Branches.d.ts +2 -0
  41. package/dist/constants/Branches.js +42 -0
  42. package/dist/images/responsible-gaming-yellow.png +0 -0
  43. package/dist/third-parties/FacebookPixel/FacebookPixel.d.ts +4 -0
  44. package/dist/third-parties/FacebookPixel/FacebookPixel.js +4 -0
  45. package/dist/third-parties/FacebookPixel/api.d.ts +0 -0
  46. package/dist/third-parties/FacebookPixel/api.js +1 -0
  47. package/dist/third-parties/FacebookPixel/index.d.ts +1 -0
  48. package/dist/third-parties/FacebookPixel/index.js +1 -0
  49. package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.d.ts +4 -0
  50. package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.js +4 -0
  51. package/dist/third-parties/GoogleRecaptcha/api.d.ts +0 -0
  52. package/dist/third-parties/GoogleRecaptcha/api.js +1 -0
  53. package/dist/third-parties/GoogleRecaptcha/index.d.ts +1 -0
  54. package/dist/third-parties/GoogleRecaptcha/index.js +1 -0
  55. package/dist/third-parties/index.d.ts +2 -0
  56. package/dist/third-parties/index.js +2 -0
  57. package/dist/ui/AlertDialog/AlertDialog.d.ts +88 -88
  58. package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +8 -8
  59. package/dist/ui/Badge/Badge.d.ts +12 -12
  60. package/dist/ui/Badge/badge.anatomy.d.ts +1 -1
  61. package/dist/ui/Badge/badge.recipe.d.ts +3 -3
  62. package/dist/ui/Checkbox/Checkbox.d.ts +23 -23
  63. package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -3
  64. package/dist/ui/Clipboard/Clipboard.d.ts +18 -18
  65. package/dist/ui/Clipboard/clipboard.recipe.d.ts +3 -3
  66. package/dist/ui/Combobox/Combobox.d.ts +42 -42
  67. package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
  68. package/dist/ui/DatePicker/DatePicker.d.ts +72 -72
  69. package/dist/ui/DatePicker/datePicker.recipe.d.ts +3 -3
  70. package/dist/ui/Dialog/Dialog.d.ts +33 -33
  71. package/dist/ui/Dialog/dialog.recipe.d.ts +3 -3
  72. package/dist/ui/Drawer/Drawer.d.ts +33 -33
  73. package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
  74. package/dist/ui/Field/Field.d.ts +21 -21
  75. package/dist/ui/Field/field.recipe.d.ts +3 -3
  76. package/dist/ui/Menu/Menu.d.ts +90 -90
  77. package/dist/ui/Menu/menu.recipe.d.ts +5 -5
  78. package/dist/ui/NumberInput/NumberInput.d.ts +24 -24
  79. package/dist/ui/NumberInput/numberInput.recipe.d.ts +3 -3
  80. package/dist/ui/PasswordInput/PasswordInput.d.ts +18 -18
  81. package/dist/ui/PasswordInput/passwordInput.recipe.d.ts +3 -3
  82. package/dist/ui/PinInput/PinInput.d.ts +12 -12
  83. package/dist/ui/PinInput/pinInput.recipe.d.ts +3 -3
  84. package/dist/ui/Progress/Progress.d.ts +27 -27
  85. package/dist/ui/Progress/progress.recipe.d.ts +3 -3
  86. package/dist/ui/QrCode/QrCode.d.ts +40 -40
  87. package/dist/ui/QrCode/qrCode.recipe.d.ts +8 -8
  88. package/dist/ui/SegmentGroup/SegmentGroup.d.ts +18 -18
  89. package/dist/ui/SegmentGroup/segmentGroup.recipe.d.ts +3 -3
  90. package/dist/ui/Select/Select.d.ts +45 -45
  91. package/dist/ui/Select/select.recipe.d.ts +3 -3
  92. package/dist/ui/Table/Table.d.ts +21 -21
  93. package/dist/ui/Table/table.anatomy.d.ts +1 -1
  94. package/dist/ui/Table/table.recipe.d.ts +3 -3
  95. package/package.json +1 -1
@@ -0,0 +1,12 @@
1
+ import type { ImageProps } from 'next/image';
2
+ export interface BannerEntry {
3
+ src: ImageProps['src'];
4
+ redirectUrl?: string;
5
+ }
6
+ export interface BannerProps {
7
+ banners: BannerEntry[];
8
+ imageWidth?: number | [mobile: number, desktop: number];
9
+ imageHeight?: number | [mobile: number, desktop: number];
10
+ className?: string;
11
+ }
12
+ export declare function Banner__client(props: BannerProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,49 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import emblaCarouselAutoplay from 'embla-carousel-autoplay';
4
+ import useEmblaCarousel, {} from 'embla-carousel-react';
5
+ import isMobile from 'is-mobile';
6
+ import Image from 'next/image';
7
+ import Link from 'next/link';
8
+ import { Fragment, useEffect, useState } from 'react';
9
+ import { twMerge } from 'tailwind-merge';
10
+ import { dataAttr } from '../../utils/dataAttr.js';
11
+ export function Banner__client(props) {
12
+ const [emblaRef, emblaApi] = useEmblaCarousel({
13
+ loop: true,
14
+ align: 'start',
15
+ }, [
16
+ emblaCarouselAutoplay({
17
+ playOnInit: true,
18
+ delay: 5000,
19
+ }),
20
+ ]);
21
+ const [currentIndex, setCurrentIndex] = useState(0);
22
+ useEffect(() => {
23
+ function handler(detail) {
24
+ setCurrentIndex(detail?.selectedScrollSnap() ?? 0);
25
+ }
26
+ emblaApi?.on('scroll', handler);
27
+ emblaApi?.on('init', handler);
28
+ return () => {
29
+ emblaApi?.on('init', handler);
30
+ emblaApi?.off('scroll', handler);
31
+ };
32
+ }, [emblaApi]);
33
+ const imageWidth = !props.imageWidth
34
+ ? [400, 1200]
35
+ : Array.isArray(props.imageWidth)
36
+ ? props.imageWidth
37
+ : [props.imageWidth, props.imageWidth];
38
+ const imageHeight = !props.imageHeight
39
+ ? [225, 300]
40
+ : Array.isArray(props.imageHeight)
41
+ ? props.imageHeight
42
+ : [props.imageHeight, props.imageHeight];
43
+ return (_jsxs("div", { className: twMerge('relative', props.className), children: [_jsx("div", { ref: emblaRef, className: "overflow-hidden", children: _jsx("div", { className: "flex gap-2", children: props.banners.map((banner, index) => {
44
+ const img = (_jsx(Image, { src: banner.src, alt: "", width: isMobile() ? imageWidth[0] : imageWidth[1], height: isMobile() ? imageHeight[0] : imageHeight[1], className: "block h-auto w-full", priority: index === 0 }));
45
+ return (_jsx(Fragment, { children: !banner.redirectUrl ? (_jsx("div", { className: "w-full shrink-0", children: img })) : (_jsx(Link, { href: banner.redirectUrl, className: "block w-full shrink-0", "aria-label": `Open ${banner.redirectUrl}`, children: img })) }, index));
46
+ }) }) }), _jsx("div", { className: "absolute bottom-lg left-1/2 flex w-fit -translate-x-1/2 gap-2", children: props.banners.map((_, index) => (_jsx("button", { type: "button", className: "ui-active:bg-brand-500 bg-gray-300 size-3 shrink-0 rounded-full border border-white transition-all duration-300 ui-active:w-9", onClick: () => {
47
+ emblaApi?.scrollTo(index);
48
+ }, "aria-label": `Go to slide ${index + 1}`, "data-active": dataAttr(index === currentIndex) }, index))) })] }));
49
+ }
@@ -11,7 +11,6 @@ import { useCreateGCashDepositMutation } from '../../../../client/hooks/useCreat
11
11
  import { useDepositQuery } from '../../../../client/hooks/useDepositQuery.js';
12
12
  import { useDepositsCountQuery } from '../../../../client/hooks/useDepositsCountQuery.js';
13
13
  import { useDisclosure } from '../../../../client/hooks/useDisclosure.js';
14
- import { useFeatureFlag } from '../../../../client/hooks/useFeatureFlag.js';
15
14
  import { useGlobalStore } from '../../../../client/hooks/useGlobalStore.js';
16
15
  import { useMemberVerificationQuery } from '../../../../client/hooks/useMemberVerificationQuery.js';
17
16
  import { usePaymentSettingsQuery } from '../../../../client/hooks/usePaymentSettingsQuery.js';
@@ -30,7 +29,6 @@ import { AmountChoices } from '../../AmountChoices.js';
30
29
  import { useDepositWithdrawalPropsContext } from '../../DepositWithdrawalContext.js';
31
30
  import { AvailablePromos } from '../AvailablePromos.js';
32
31
  export function GCashDeposit() {
33
- const { enabled } = useFeatureFlag();
34
32
  const depositWithdrawalProps = useDepositWithdrawalPropsContext();
35
33
  const disclosure = useDisclosure();
36
34
  const globalStore = useGlobalStore(useShallow((ctx) => ({
@@ -152,11 +150,10 @@ export function GCashDeposit() {
152
150
  }, [form, minimumAmount]);
153
151
  return (_jsxs("form", { onSubmit: form.handleSubmit(async (data) => {
154
152
  //handle new kyc process
155
- if (enabled &&
156
- (verificationStatus === 'PENDING' ||
157
- verificationStatus === 'UNVERIFIED' ||
158
- verificationStatus === 'REJECTED' ||
159
- verificationStatus === 'CREATED')) {
153
+ if (verificationStatus === 'PENDING' ||
154
+ verificationStatus === 'UNVERIFIED' ||
155
+ verificationStatus === 'REJECTED' ||
156
+ verificationStatus === 'CREATED') {
160
157
  globalStore.kycVerificationStatus.setOpen(true);
161
158
  return;
162
159
  }
@@ -11,7 +11,6 @@ import { useCreateLibanganDepositMutation } from '../../../../client/hooks/useCr
11
11
  import { useDepositQuery } from '../../../../client/hooks/useDepositQuery.js';
12
12
  import { useDepositsCountQuery } from '../../../../client/hooks/useDepositsCountQuery.js';
13
13
  import { useDisclosure } from '../../../../client/hooks/useDisclosure.js';
14
- import { useFeatureFlag } from '../../../../client/hooks/useFeatureFlag.js';
15
14
  import { useGlobalStore } from '../../../../client/hooks/useGlobalStore.js';
16
15
  import { useMemberVerificationQuery } from '../../../../client/hooks/useMemberVerificationQuery.js';
17
16
  import { usePaymentSettingsQuery } from '../../../../client/hooks/usePaymentSettingsQuery.js';
@@ -30,7 +29,6 @@ import { AmountChoices } from '../../AmountChoices.js';
30
29
  import { useDepositWithdrawalPropsContext } from '../../DepositWithdrawalContext.js';
31
30
  import { AvailablePromos } from '../AvailablePromos.js';
32
31
  export function LibanganDeposit() {
33
- const { enabled } = useFeatureFlag();
34
32
  const depositWithdrawalProps = useDepositWithdrawalPropsContext();
35
33
  const disclosure = useDisclosure();
36
34
  const globalStore = useGlobalStore(useShallow((ctx) => ({
@@ -152,11 +150,10 @@ export function LibanganDeposit() {
152
150
  }, [form, minimumAmount]);
153
151
  return (_jsxs("form", { onSubmit: form.handleSubmit(async (data) => {
154
152
  //handle new kyc process
155
- if (enabled &&
156
- (verificationStatus === 'PENDING' ||
157
- verificationStatus === 'UNVERIFIED' ||
158
- verificationStatus === 'REJECTED' ||
159
- verificationStatus === 'CREATED')) {
153
+ if (verificationStatus === 'PENDING' ||
154
+ verificationStatus === 'UNVERIFIED' ||
155
+ verificationStatus === 'REJECTED' ||
156
+ verificationStatus === 'CREATED') {
160
157
  globalStore.kycVerificationStatus.setOpen(true);
161
158
  return;
162
159
  }
@@ -8,7 +8,6 @@ import { useShallow } from 'zustand/shallow';
8
8
  import { useAvailablePromosQuery } from '../../../../client/hooks/useAvailablePromosQuery.js';
9
9
  import { useCreateMayaAppDepositMutation } from '../../../../client/hooks/useCreateMayaAppDepositMutation.js';
10
10
  import { useDepositsCountQuery } from '../../../../client/hooks/useDepositsCountQuery.js';
11
- import { useFeatureFlag } from '../../../../client/hooks/useFeatureFlag.js';
12
11
  import { useGlobalStore } from '../../../../client/hooks/useGlobalStore.js';
13
12
  import { useMemberVerificationQuery } from '../../../../client/hooks/useMemberVerificationQuery.js';
14
13
  import { usePaymentSettingsQuery } from '../../../../client/hooks/usePaymentSettingsQuery.js';
@@ -27,7 +26,6 @@ import { AmountChoices } from '../../AmountChoices.js';
27
26
  import { useDepositWithdrawalPropsContext } from '../../DepositWithdrawalContext.js';
28
27
  import { AvailablePromos } from '../AvailablePromos.js';
29
28
  export function MayaAppDeposit() {
30
- const { enabled } = useFeatureFlag();
31
29
  const depositWithdrawalProps = useDepositWithdrawalPropsContext();
32
30
  const globalStore = useGlobalStore(useShallow((ctx) => ({
33
31
  depositWithdrawal: ctx.depositWithdrawal,
@@ -122,11 +120,10 @@ export function MayaAppDeposit() {
122
120
  }, [form, minimumAmount]);
123
121
  const handleSubmit = form.handleSubmit(async (data) => {
124
122
  //handle new kyc process
125
- if (enabled &&
126
- (verificationStatus === 'PENDING' ||
127
- verificationStatus === 'UNVERIFIED' ||
128
- verificationStatus === 'REJECTED' ||
129
- verificationStatus === 'CREATED')) {
123
+ if (verificationStatus === 'PENDING' ||
124
+ verificationStatus === 'UNVERIFIED' ||
125
+ verificationStatus === 'REJECTED' ||
126
+ verificationStatus === 'CREATED') {
130
127
  globalStore.kycVerificationStatus.setOpen(true);
131
128
  return;
132
129
  }
@@ -11,7 +11,6 @@ import { useCreateMayaDepositMutation } from '../../../../client/hooks/useCreate
11
11
  import { useDepositQuery } from '../../../../client/hooks/useDepositQuery.js';
12
12
  import { useDepositsCountQuery } from '../../../../client/hooks/useDepositsCountQuery.js';
13
13
  import { useDisclosure } from '../../../../client/hooks/useDisclosure.js';
14
- import { useFeatureFlag } from '../../../../client/hooks/useFeatureFlag.js';
15
14
  import { useGlobalStore } from '../../../../client/hooks/useGlobalStore.js';
16
15
  import { useMemberVerificationQuery } from '../../../../client/hooks/useMemberVerificationQuery.js';
17
16
  import { usePaymentSettingsQuery } from '../../../../client/hooks/usePaymentSettingsQuery.js';
@@ -30,7 +29,6 @@ import { AmountChoices } from '../../AmountChoices.js';
30
29
  import { useDepositWithdrawalPropsContext } from '../../DepositWithdrawalContext.js';
31
30
  import { AvailablePromos } from '../AvailablePromos.js';
32
31
  export function MayaDeposit() {
33
- const { enabled } = useFeatureFlag();
34
32
  const depositWithdrawalProps = useDepositWithdrawalPropsContext();
35
33
  const disclosure = useDisclosure();
36
34
  const globalStore = useGlobalStore(useShallow((ctx) => ({
@@ -152,11 +150,10 @@ export function MayaDeposit() {
152
150
  }, [form, minimumAmount]);
153
151
  return (_jsxs("form", { onSubmit: form.handleSubmit(async (data) => {
154
152
  //handle new kyc process
155
- if (enabled &&
156
- (verificationStatus === 'PENDING' ||
157
- verificationStatus === 'UNVERIFIED' ||
158
- verificationStatus === 'REJECTED' ||
159
- verificationStatus === 'CREATED')) {
153
+ if (verificationStatus === 'PENDING' ||
154
+ verificationStatus === 'UNVERIFIED' ||
155
+ verificationStatus === 'REJECTED' ||
156
+ verificationStatus === 'CREATED') {
160
157
  globalStore.kycVerificationStatus.setOpen(true);
161
158
  return;
162
159
  }
@@ -3,11 +3,9 @@ import invariant from 'tiny-invariant';
3
3
  import { useShallow } from 'zustand/shallow';
4
4
  import { useCreateOnlineBankDepositMutation } from '../../../../client/hooks/useCreateOnlineBankDepositMutation.js';
5
5
  import { useDepositQuery } from '../../../../client/hooks/useDepositQuery.js';
6
- import { useFeatureFlag } from '../../../../client/hooks/useFeatureFlag.js';
7
6
  import { useGlobalStore } from '../../../../client/hooks/useGlobalStore.js';
8
7
  import { useMemberVerificationQuery } from '../../../../client/hooks/useMemberVerificationQuery.js';
9
8
  export function useOnlineBankDeposit() {
10
- const { enabled } = useFeatureFlag();
11
9
  const globalStore = useGlobalStore(useShallow((ctx) => ({
12
10
  kycVerificationStatus: ctx.kycVerificationStatus,
13
11
  })));
@@ -36,11 +34,10 @@ export function useOnlineBankDeposit() {
36
34
  });
37
35
  const generateVCA = (input) => {
38
36
  //handle new kyc process
39
- if (enabled &&
40
- (verificationStatus === 'PENDING' ||
41
- verificationStatus === 'UNVERIFIED' ||
42
- verificationStatus === 'REJECTED' ||
43
- verificationStatus === 'CREATED')) {
37
+ if (verificationStatus === 'PENDING' ||
38
+ verificationStatus === 'UNVERIFIED' ||
39
+ verificationStatus === 'REJECTED' ||
40
+ verificationStatus === 'CREATED') {
44
41
  globalStore.kycVerificationStatus.setOpen(true);
45
42
  return;
46
43
  }
@@ -12,7 +12,6 @@ import { useCreatePisoPayDepositMutation } from '../../../../client/hooks/useCre
12
12
  import { useDepositQuery } from '../../../../client/hooks/useDepositQuery.js';
13
13
  import { useDepositsCountQuery } from '../../../../client/hooks/useDepositsCountQuery.js';
14
14
  import { useDisclosure } from '../../../../client/hooks/useDisclosure.js';
15
- import { useFeatureFlag } from '../../../../client/hooks/useFeatureFlag.js';
16
15
  import { useGlobalStore } from '../../../../client/hooks/useGlobalStore.js';
17
16
  import { useMemberVerificationQuery } from '../../../../client/hooks/useMemberVerificationQuery.js';
18
17
  import { usePaymentSettingsQuery } from '../../../../client/hooks/usePaymentSettingsQuery.js';
@@ -29,7 +28,6 @@ import { AmountChoices } from '../../AmountChoices.js';
29
28
  import { useDepositWithdrawalPropsContext } from '../../DepositWithdrawalContext.js';
30
29
  import { AvailablePromos } from '../AvailablePromos.js';
31
30
  export function PisoPayDeposit() {
32
- const { enabled } = useFeatureFlag();
33
31
  const depositWithdrawalProps = useDepositWithdrawalPropsContext();
34
32
  const disclosure = useDisclosure();
35
33
  const globalStore = useGlobalStore(useShallow((ctx) => ({
@@ -158,11 +156,10 @@ export function PisoPayDeposit() {
158
156
  }, [form, minimumAmount]);
159
157
  return (_jsxs("form", { onSubmit: form.handleSubmit(async (data) => {
160
158
  //handle new kyc process
161
- if (enabled &&
162
- (verificationStatus === 'PENDING' ||
163
- verificationStatus === 'UNVERIFIED' ||
164
- verificationStatus === 'REJECTED' ||
165
- verificationStatus === 'CREATED')) {
159
+ if (verificationStatus === 'PENDING' ||
160
+ verificationStatus === 'UNVERIFIED' ||
161
+ verificationStatus === 'REJECTED' ||
162
+ verificationStatus === 'CREATED') {
166
163
  globalStore.kycVerificationStatus.setOpen(true);
167
164
  return;
168
165
  }
@@ -3,11 +3,9 @@ import invariant from 'tiny-invariant';
3
3
  import { useShallow } from 'zustand/shallow';
4
4
  import { useCreateQRPHDepositMutation } from '../../../../client/hooks/useCreateQRPHDepositMutation.js';
5
5
  import { useDepositQuery } from '../../../../client/hooks/useDepositQuery.js';
6
- import { useFeatureFlag } from '../../../../client/hooks/useFeatureFlag.js';
7
6
  import { useGlobalStore } from '../../../../client/hooks/useGlobalStore.js';
8
7
  import { useMemberVerificationQuery } from '../../../../client/hooks/useMemberVerificationQuery.js';
9
8
  export function useQRPHDeposit() {
10
- const { enabled } = useFeatureFlag();
11
9
  const globalStore = useGlobalStore(useShallow((ctx) => ({
12
10
  kycVerificationStatus: ctx.kycVerificationStatus,
13
11
  })));
@@ -36,11 +34,10 @@ export function useQRPHDeposit() {
36
34
  });
37
35
  const generateQRCode = (input) => {
38
36
  //handle new kyc process
39
- if (enabled &&
40
- (verificationStatus === 'PENDING' ||
41
- verificationStatus === 'UNVERIFIED' ||
42
- verificationStatus === 'REJECTED' ||
43
- verificationStatus === 'CREATED')) {
37
+ if (verificationStatus === 'PENDING' ||
38
+ verificationStatus === 'UNVERIFIED' ||
39
+ verificationStatus === 'REJECTED' ||
40
+ verificationStatus === 'CREATED') {
44
41
  globalStore.kycVerificationStatus.setOpen(true);
45
42
  return;
46
43
  }
@@ -0,0 +1 @@
1
+ export declare function Loading(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ export function Loading() {
4
+ return (_jsx("div", { className: "flex h-[calc(100vh-400px)] w-full items-center justify-center px-4", children: _jsxs("div", { className: "flex flex-col items-center space-y-4", children: [_jsx("div", { className: "h-10 w-10 animate-spin rounded-full border-4 border-blue-500 border-t-transparent" }), _jsx("p", { className: "font-medium text-gray-700 text-lg", children: "Loading Sports Book\u2026" })] }) }));
5
+ }
@@ -3,13 +3,11 @@ import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import { ark } from '@ark-ui/react/factory';
4
4
  import { useShallow } from 'zustand/shallow';
5
5
  import { useCreateGameSessionMutation } from '../../client/hooks/useCreateGameSessionMutation.js';
6
- import { useFeatureFlag } from '../../client/hooks/useFeatureFlag.js';
7
6
  import { useGlobalStore } from '../../client/hooks/useGlobalStore.js';
8
7
  import { useMemberVerificationQuery } from '../../client/hooks/useMemberVerificationQuery.js';
9
8
  import { useSessionQuery } from '../../client/hooks/useSessionQuery.js';
10
9
  import { toaster } from '../../client/utils/toaster.js';
11
10
  export function GameLaunchTrigger(props) {
12
- const featureFlag = useFeatureFlag();
13
11
  const sessionQuery = useSessionQuery();
14
12
  const verificationQuery = useMemberVerificationQuery();
15
13
  const createGameSessionMutation = useCreateGameSessionMutation();
@@ -43,11 +41,10 @@ export function GameLaunchTrigger(props) {
43
41
  return;
44
42
  }
45
43
  //handle new kyc process to play only on verified members only
46
- if (featureFlag.enabled &&
47
- (verificationStatus === 'PENDING' ||
48
- verificationStatus === 'REJECTED' ||
49
- verificationStatus === 'UNVERIFIED' ||
50
- verificationStatus === 'CREATED')) {
44
+ if (verificationStatus === 'PENDING' ||
45
+ verificationStatus === 'REJECTED' ||
46
+ verificationStatus === 'UNVERIFIED' ||
47
+ verificationStatus === 'CREATED') {
51
48
  globalStore.kycVerificationStatus.setOpen(true);
52
49
  return;
53
50
  }
@@ -0,0 +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
+ }