@opexa/portal-components 0.0.683 → 0.0.684

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 (230) hide show
  1. package/dist/components/Jackpots/Jackpots.module.css +184 -184
  2. package/dist/components/KYC/KYCDefault/KYCVerificationStatus.lazy.js +2 -2
  3. package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarouselItem.module.css +184 -184
  4. package/dist/components/Tournaments/TournamentsList/TournamentItem.module.css +184 -184
  5. package/dist/components/TransactionRecords/WithdrawalRecordsTable.js +1 -1
  6. package/dist/services/queries.d.ts +1 -1
  7. package/dist/services/queries.js +2988 -2979
  8. package/dist/styles/theme.css +773 -773
  9. package/dist/tsconfig.build.tsbuildinfo +1 -0
  10. package/dist/types/index.d.ts +1 -0
  11. package/dist/ui/AlertDialog/AlertDialog.d.ts +55 -55
  12. package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +5 -5
  13. package/dist/ui/Badge/Badge.d.ts +12 -12
  14. package/dist/ui/Badge/badge.anatomy.d.ts +1 -1
  15. package/dist/ui/Badge/badge.recipe.d.ts +3 -3
  16. package/dist/ui/Carousel/Carousel.d.ts +45 -45
  17. package/dist/ui/Carousel/carousel.recipe.d.ts +5 -5
  18. package/dist/ui/Checkbox/Checkbox.d.ts +23 -23
  19. package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -3
  20. package/dist/ui/Clipboard/Clipboard.d.ts +18 -18
  21. package/dist/ui/Clipboard/clipboard.recipe.d.ts +3 -3
  22. package/dist/ui/Combobox/Combobox.d.ts +42 -42
  23. package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
  24. package/dist/ui/DatePicker/DatePicker.d.ts +72 -72
  25. package/dist/ui/DatePicker/datePicker.recipe.d.ts +3 -3
  26. package/dist/ui/Dialog/Dialog.d.ts +33 -33
  27. package/dist/ui/Dialog/dialog.recipe.d.ts +3 -3
  28. package/dist/ui/Drawer/Drawer.d.ts +33 -33
  29. package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
  30. package/dist/ui/Menu/Menu.d.ts +144 -144
  31. package/dist/ui/Menu/menu.recipe.d.ts +8 -8
  32. package/dist/ui/PasswordInput/PasswordInput.d.ts +18 -18
  33. package/dist/ui/PasswordInput/passwordInput.recipe.d.ts +3 -3
  34. package/dist/ui/Popover/Popover.d.ts +55 -55
  35. package/dist/ui/Popover/popover.recipe.d.ts +5 -5
  36. package/dist/ui/Progress/Progress.d.ts +27 -27
  37. package/dist/ui/Progress/progress.recipe.d.ts +3 -3
  38. package/dist/ui/QrCode/QrCode.d.ts +25 -25
  39. package/dist/ui/QrCode/qrCode.recipe.d.ts +5 -5
  40. package/dist/ui/Select/Select.d.ts +45 -45
  41. package/dist/ui/Select/select.recipe.d.ts +3 -3
  42. package/dist/ui/Table/Table.d.ts +21 -21
  43. package/dist/ui/Table/table.anatomy.d.ts +1 -1
  44. package/dist/ui/Table/table.recipe.d.ts +3 -3
  45. package/package.json +176 -176
  46. package/dist/components/DigitainLauncher/Loading.d.ts +0 -1
  47. package/dist/components/DigitainLauncher/Loading.js +0 -5
  48. package/dist/components/Disclaimer/ResponsibleGaming.d.ts +0 -10
  49. package/dist/components/Disclaimer/ResponsibleGaming.js +0 -13
  50. package/dist/components/Disclaimer/TermsOfUse.d.ts +0 -11
  51. package/dist/components/Disclaimer/TermsOfUse.js +0 -13
  52. package/dist/components/FeatureFlag/FeatureFlag.d.ts +0 -1
  53. package/dist/components/FeatureFlag/FeatureFlag.js +0 -29
  54. package/dist/components/FeatureFlag/index.d.ts +0 -1
  55. package/dist/components/FeatureFlag/index.js +0 -1
  56. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.module.css +0 -184
  57. package/dist/components/Jackpots/JackpotsList/JackpotsListItem.module.css +0 -184
  58. package/dist/components/KYC/AutoOpen.d.ts +0 -1
  59. package/dist/components/KYC/AutoOpen.js +0 -40
  60. package/dist/components/KYC/BasicInformation.d.ts +0 -1
  61. package/dist/components/KYC/BasicInformation.js +0 -101
  62. package/dist/components/KYC/CaptureIdDocument.d.ts +0 -1
  63. package/dist/components/KYC/CaptureIdDocument.js +0 -219
  64. package/dist/components/KYC/CaptureSelfie.d.ts +0 -1
  65. package/dist/components/KYC/CaptureSelfie.js +0 -285
  66. package/dist/components/KYC/DisplayImage.d.ts +0 -5
  67. package/dist/components/KYC/DisplayImage.js +0 -8
  68. package/dist/components/KYC/FileUpload.d.ts +0 -10
  69. package/dist/components/KYC/FileUpload.js +0 -72
  70. package/dist/components/KYC/IdentityVerification.d.ts +0 -1
  71. package/dist/components/KYC/IdentityVerification.js +0 -120
  72. package/dist/components/KYC/Indicator.d.ts +0 -1
  73. package/dist/components/KYC/Indicator.js +0 -8
  74. package/dist/components/KYC/KYC.lazy.d.ts +0 -6
  75. package/dist/components/KYC/KYC.lazy.js +0 -45
  76. package/dist/components/KYC/KYCContext.d.ts +0 -6
  77. package/dist/components/KYC/KYCContext.js +0 -2
  78. package/dist/components/KYC/KYCDefault/BasicInformation.d.ts +0 -1
  79. package/dist/components/KYC/KYCDefault/BasicInformation.js +0 -101
  80. package/dist/components/KYC/KYCVerificationStatus.d.ts +0 -1
  81. package/dist/components/KYC/KYCVerificationStatus.js +0 -10
  82. package/dist/components/KYC/KYCVerificationStatus.lazy.d.ts +0 -1
  83. package/dist/components/KYC/KYCVerificationStatus.lazy.js +0 -39
  84. package/dist/components/KYC/NoCameraError.d.ts +0 -7
  85. package/dist/components/KYC/NoCameraError.js +0 -6
  86. package/dist/components/KYC/PersonOverlayDesktop.d.ts +0 -7
  87. package/dist/components/KYC/PersonOverlayDesktop.js +0 -9
  88. package/dist/components/KYC/PersonalInformation.d.ts +0 -1
  89. package/dist/components/KYC/PersonalInformation.js +0 -122
  90. package/dist/components/KYC/backup/Header.d.ts +0 -1
  91. package/dist/components/KYC/backup/Header.js +0 -8
  92. package/dist/components/KYC/backup/Indicator.d.ts +0 -1
  93. package/dist/components/KYC/backup/Indicator.js +0 -9
  94. package/dist/components/KYC/backup/KYC.d.ts +0 -1
  95. package/dist/components/KYC/backup/KYC.js +0 -14
  96. package/dist/components/KYC/backup/KYC.lazy.d.ts +0 -1
  97. package/dist/components/KYC/backup/KYC.lazy.js +0 -26
  98. package/dist/components/KYC/backup/KYCContext.d.ts +0 -6
  99. package/dist/components/KYC/backup/KYCContext.js +0 -2
  100. package/dist/components/KYC/backup/Step1.d.ts +0 -1
  101. package/dist/components/KYC/backup/Step1.js +0 -13
  102. package/dist/components/KYC/backup/Step2.d.ts +0 -1
  103. package/dist/components/KYC/backup/Step2.js +0 -13
  104. package/dist/components/KYC/backup/Step3.d.ts +0 -1
  105. package/dist/components/KYC/backup/Step3.js +0 -13
  106. package/dist/components/KYC/backup/Step4.d.ts +0 -1
  107. package/dist/components/KYC/backup/Step4.js +0 -7
  108. package/dist/components/KYC/backup/useKYC.d.ts +0 -10
  109. package/dist/components/KYC/backup/useKYC.js +0 -8
  110. package/dist/components/KYC/loadModels.d.ts +0 -1
  111. package/dist/components/KYC/loadModels.js +0 -9
  112. package/dist/components/KYC/useKYC.d.ts +0 -25
  113. package/dist/components/KYC/useKYC.js +0 -38
  114. package/dist/components/KYC/utils.d.ts +0 -9
  115. package/dist/components/KYC/utils.js +0 -79
  116. package/dist/components/Messages/Message.d.ts +0 -1
  117. package/dist/components/Messages/Message.js +0 -35
  118. package/dist/components/Messages/MessageContext.d.ts +0 -6
  119. package/dist/components/Messages/MessageContext.js +0 -2
  120. package/dist/components/Messages/MessagePopup.d.ts +0 -1
  121. package/dist/components/Messages/MessagePopup.js +0 -20
  122. package/dist/components/Messages/MessageTrigger.d.ts +0 -8
  123. package/dist/components/Messages/MessageTrigger.js +0 -19
  124. package/dist/components/PortalProvider/CXDTokenObserver.d.ts +0 -1
  125. package/dist/components/PortalProvider/CXDTokenObserver.js +0 -30
  126. package/dist/components/PortalProvider/LinkGoogleAccountObserver.d.ts +0 -1
  127. package/dist/components/PortalProvider/LinkGoogleAccountObserver.js +0 -29
  128. package/dist/components/Quests/CountdownTimer.d.ts +0 -15
  129. package/dist/components/Quests/CountdownTimer.js +0 -33
  130. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.d.ts +0 -4
  131. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.js +0 -78
  132. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.d.ts +0 -8
  133. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.js +0 -9
  134. package/dist/components/Quests/OnboardingQuest/OnboardingQuest.d.ts +0 -4
  135. package/dist/components/Quests/OnboardingQuest/OnboardingQuest.js +0 -4
  136. package/dist/components/Quests/WageringQuest/WageringQuest.d.ts +0 -4
  137. package/dist/components/Quests/WageringQuest/WageringQuest.js +0 -20
  138. package/dist/components/Quests/WageringQuest/WageringQuestModal.d.ts +0 -9
  139. package/dist/components/Quests/WageringQuest/WageringQuestModal.js +0 -9
  140. package/dist/components/SessionWatcher/SessionWatcher.d.ts +0 -1
  141. package/dist/components/SessionWatcher/SessionWatcher.js +0 -20
  142. package/dist/components/SessionWatcher/index.d.ts +0 -1
  143. package/dist/components/SessionWatcher/index.js +0 -1
  144. package/dist/components/SignIn/utils.d.ts +0 -8
  145. package/dist/components/SignIn/utils.js +0 -26
  146. package/dist/components/SignUp/SignUp.lazy.d.ts +0 -12
  147. package/dist/components/SignUp/SignUp.lazy.js +0 -18
  148. package/dist/components/SignUp/SignUpContext.d.ts +0 -6
  149. package/dist/components/SignUp/SignUpContext.js +0 -2
  150. package/dist/components/SignUp/SignUpDefault/SignUp.lazy.d.ts +0 -17
  151. package/dist/components/SignUp/SignUpDefault/SignUp.lazy.js +0 -18
  152. package/dist/components/SignUp/SignUpDefault/SignUpContext.d.ts +0 -6
  153. package/dist/components/SignUp/SignUpDefault/SignUpContext.js +0 -2
  154. package/dist/components/SignUp/SignUpDefault/SignUpForm.d.ts +0 -1
  155. package/dist/components/SignUp/SignUpDefault/SignUpForm.js +0 -310
  156. package/dist/components/SignUp/SignUpForm.d.ts +0 -1
  157. package/dist/components/SignUp/SignUpForm.js +0 -284
  158. package/dist/components/SignUp/SignUpKYC/CaptureIdDocument.d.ts +0 -1
  159. package/dist/components/SignUp/SignUpKYC/CaptureIdDocument.js +0 -198
  160. package/dist/components/SignUp/SignUpKYC/CaptureSelfie.d.ts +0 -1
  161. package/dist/components/SignUp/SignUpKYC/CaptureSelfie.js +0 -251
  162. package/dist/components/SignUp/SignUpKYC/ImageUploader.d.ts +0 -10
  163. package/dist/components/SignUp/SignUpKYC/ImageUploader.js +0 -42
  164. package/dist/components/SignUp/SignUpKYC/PersonOverlayDesktop.d.ts +0 -7
  165. package/dist/components/SignUp/SignUpKYC/PersonOverlayDesktop.js +0 -9
  166. package/dist/components/SignUp/SignUpKYC/SignUpFormKYC.d.ts +0 -1
  167. package/dist/components/SignUp/SignUpKYC/SignUpFormKYC.js +0 -464
  168. package/dist/components/SignUp/SignUpKYC/useImageUploader.d.ts +0 -11
  169. package/dist/components/SignUp/SignUpKYC/useImageUploader.js +0 -20
  170. package/dist/components/SignUp/SignUpKYC/utils.d.ts +0 -9
  171. package/dist/components/SignUp/SignUpKYC/utils.js +0 -79
  172. package/dist/components/SignUp/SignUpPagcor/CaptureIdDocument.d.ts +0 -1
  173. package/dist/components/SignUp/SignUpPagcor/CaptureIdDocument.js +0 -198
  174. package/dist/components/SignUp/SignUpPagcor/CaptureSelfie.d.ts +0 -1
  175. package/dist/components/SignUp/SignUpPagcor/CaptureSelfie.js +0 -251
  176. package/dist/components/SignUp/SignUpPagcor/ImageUploader.d.ts +0 -10
  177. package/dist/components/SignUp/SignUpPagcor/ImageUploader.js +0 -41
  178. package/dist/components/SignUp/SignUpPagcor/SignUpFormPagcor.d.ts +0 -1
  179. package/dist/components/SignUp/SignUpPagcor/SignUpFormPagcor.js +0 -429
  180. package/dist/components/SignUp/SignUpPagcor/SignUpPagcor.lazy.d.ts +0 -13
  181. package/dist/components/SignUp/SignUpPagcor/SignUpPagcor.lazy.js +0 -26
  182. package/dist/components/SignUp/SignUpPagcor/SignUpPagcorContext.d.ts +0 -7
  183. package/dist/components/SignUp/SignUpPagcor/SignUpPagcorContext.js +0 -2
  184. package/dist/components/SignUp/SignUpPagcor/useImageUploader.d.ts +0 -11
  185. package/dist/components/SignUp/SignUpPagcor/useImageUploader.js +0 -20
  186. package/dist/components/shared/IdDocumentField.client.d.ts +0 -25
  187. package/dist/components/shared/IdDocumentField.client.js +0 -204
  188. package/dist/components/shared/IdDocumentField.d.ts +0 -2
  189. package/dist/components/shared/IdDocumentField.js +0 -11
  190. package/dist/components/shared/SelfieField.client.d.ts +0 -20
  191. package/dist/components/shared/SelfieField.client.js +0 -327
  192. package/dist/components/shared/SelfieField.d.ts +0 -2
  193. package/dist/components/shared/SelfieField.js +0 -11
  194. package/dist/constants/BranchCode.d.ts +0 -4
  195. package/dist/constants/BranchCode.js +0 -42
  196. package/dist/constants/Branches.d.ts +0 -2
  197. package/dist/constants/Branches.js +0 -42
  198. package/dist/handlers/postTransformIdFrontImage.d.ts +0 -3
  199. package/dist/handlers/postTransformIdFrontImage.js +0 -67
  200. package/dist/handlers/postTransformSelfieImage.d.ts +0 -3
  201. package/dist/handlers/postTransformSelfieImage.js +0 -71
  202. package/dist/handlers.d.ts +0 -43
  203. package/dist/handlers.js +0 -297
  204. package/dist/icons/BellRingIcon.d.ts +0 -2
  205. package/dist/icons/BellRingIcon.js +0 -4
  206. package/dist/images/responsible-gaming-yellow.png +0 -0
  207. package/dist/third-parties/FacebookPixel/FacebookPixel.d.ts +0 -4
  208. package/dist/third-parties/FacebookPixel/FacebookPixel.js +0 -4
  209. package/dist/third-parties/FacebookPixel/api.d.ts +0 -0
  210. package/dist/third-parties/FacebookPixel/api.js +0 -1
  211. package/dist/third-parties/FacebookPixel/index.d.ts +0 -1
  212. package/dist/third-parties/FacebookPixel/index.js +0 -1
  213. package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.d.ts +0 -4
  214. package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.js +0 -4
  215. package/dist/third-parties/GoogleRecaptcha/api.d.ts +0 -0
  216. package/dist/third-parties/GoogleRecaptcha/api.js +0 -1
  217. package/dist/third-parties/GoogleRecaptcha/index.d.ts +0 -1
  218. package/dist/third-parties/GoogleRecaptcha/index.js +0 -1
  219. package/dist/third-parties/index.d.ts +0 -2
  220. package/dist/third-parties/index.js +0 -2
  221. package/dist/utils/dataUrlToBlob.d.ts +0 -1
  222. package/dist/utils/dataUrlToBlob.js +0 -11
  223. package/dist/utils/gamesAvailable3pmTo3am.d.ts +0 -1
  224. package/dist/utils/gamesAvailable3pmTo3am.js +0 -1
  225. package/dist/utils/getGameName.d.ts +0 -1
  226. package/dist/utils/getGameName.js +0 -6
  227. package/dist/utils/isBetween3amAnd3pm.d.ts +0 -1
  228. package/dist/utils/isBetween3amAnd3pm.js +0 -5
  229. package/dist/utils/resizeImageSize.d.ts +0 -2
  230. package/dist/utils/resizeImageSize.js +0 -11
@@ -1,13 +0,0 @@
1
- 'use client';
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import Image, {} from 'next/image';
4
- import pagcorLogo from '../../images/pagcor.png';
5
- import responsibleGamingLogo from '../../images/responsible-gaming.png';
6
- import { Button } from '../../ui/Button/index.js';
7
- import { Dialog } from '../../ui/Dialog/index.js';
8
- import { Portal } from '../../ui/Portal/index.js';
9
- export function TermsOfUse({ logo, open, onCloseAction, siteName, termsOfUseContent, ...props }) {
10
- return (_jsx(Dialog.Root, { open: open, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, { className: "z-popover" }), _jsx(Dialog.Positioner, { className: "z-popover", children: _jsxs(Dialog.Content, { className: "flex h-full w-full flex-col items-start overflow-y-auto p-3xl lg:mx-auto lg:h-auto lg:w-[400px] lg:rounded-xl", children: [_jsx(Image, { src: logo, alt: "", width: 200, height: 100, className: "mx-auto h-auto w-[120px]", draggable: false }), _jsxs("div", { className: "w-full grow", children: [_jsxs(Dialog.Title, { className: "text-brand-400 mt-3xl text-center text-lg font-semibold", children: [siteName, " Terms of Use"] }), _jsx(Dialog.Description, { className: "leading-2xl mt-xs text-sm", children: termsOfUseContent }), _jsxs("div", { className: "mt-5 flex items-center justify-center gap-3xl", children: [_jsx(Image, { src: pagcorLogo, alt: "", height: 75, width: 88, className: "h-[88px] w-auto shrink-0", draggable: false }), _jsx(Image, { src: props.responsibleGamingLogo ?? responsibleGamingLogo, alt: "", height: 62, width: 186, className: "h-[62px] w-auto shrink-0", draggable: false })] })] }), _jsx("div", { className: "w-full", children: _jsx(Button, { type: "button", className: "mt-3", onClick: () => {
11
- onCloseAction();
12
- }, children: "I Agree" }) })] }) })] }) }));
13
- }
@@ -1 +0,0 @@
1
- export declare function FeatureFlag(): import("react/jsx-runtime").JSX.Element | null;
@@ -1,29 +0,0 @@
1
- 'use client';
2
- import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
3
- import { useRouter, useSearchParams } from 'next/navigation';
4
- import { useEffect } from 'react';
5
- import { FEATURE_FLAG_KEY, useFeatureFlag, } from '../../client/hooks/useFeatureFlag.js';
6
- export function FeatureFlag() {
7
- const { featureFlagEnabled, setFeatureFlagEnabled } = useFeatureFlag();
8
- const searchParams = useSearchParams();
9
- const router = useRouter();
10
- useEffect(() => {
11
- const futureFlagParam = searchParams.get('future');
12
- if (futureFlagParam !== null) {
13
- const isEnabled = futureFlagParam === 'true';
14
- setFeatureFlagEnabled(isEnabled);
15
- localStorage.setItem(FEATURE_FLAG_KEY, isEnabled.toString());
16
- }
17
- }, [searchParams, setFeatureFlagEnabled]);
18
- function disableFeatureFlag() {
19
- setFeatureFlagEnabled(false);
20
- localStorage.removeItem(FEATURE_FLAG_KEY);
21
- const params = new URLSearchParams(searchParams.toString());
22
- params.delete('future');
23
- router.replace(`?${params.toString()}`, { scroll: false });
24
- }
25
- if (!featureFlagEnabled) {
26
- return null;
27
- }
28
- return (_jsx("div", { className: "fixed bottom-3 flex w-full flex-col items-center justify-center", children: _jsxs("div", { className: "bg-black/70 p-1", children: ["Experimental features are enabled.", ' ', _jsxs("button", { onClick: () => disableFeatureFlag(), className: "cursor-pointer underline", children: [' ', "Disable"] })] }) }));
29
- }
@@ -1 +0,0 @@
1
- export * from './FeatureFlag';
@@ -1 +0,0 @@
1
- export * from './FeatureFlag.js';
@@ -1,184 +0,0 @@
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,184 +0,0 @@
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 +0,0 @@
1
- export declare function AutoOpen(): null;
@@ -1,40 +0,0 @@
1
- import { useEffect } from 'react';
2
- import { useShallow } from 'zustand/shallow';
3
- import { useAccountQuery } from '../../client/hooks/useAccountQuery.js';
4
- import { useGlobalStore } from '../../client/hooks/useGlobalStore.js';
5
- import { useMemberVerificationQuery } from '../../client/hooks/useMemberVerificationQuery.js';
6
- import { useSessionQuery } from '../../client/hooks/useSessionQuery.js';
7
- import { KYC_PROMPT_LOCALSTORAGE_KEY } from '../../constants/index.js';
8
- export function AutoOpen() {
9
- const kycStore = useGlobalStore(useShallow((ctx) => ctx.kyc));
10
- const { data: session } = useSessionQuery();
11
- const { data: account } = useAccountQuery();
12
- const { data: verification } = useMemberVerificationQuery();
13
- const isBasicInfoCompleted = account?.realName !== null && account?.birthDay !== null;
14
- const isUploadCompleted = verification &&
15
- verification.idFrontImage !== null &&
16
- verification.selfieImage !== null;
17
- const isRejected = Boolean(verification?.status === 'REJECTED');
18
- const step = !isBasicInfoCompleted
19
- ? 1
20
- : isRejected
21
- ? 2
22
- : isUploadCompleted
23
- ? 3
24
- : 2;
25
- const shouldOpen = !isBasicInfoCompleted || !isUploadCompleted || isRejected;
26
- useEffect(() => {
27
- if (session?.status == 'authenticated' &&
28
- shouldOpen &&
29
- localStorage.getItem(KYC_PROMPT_LOCALSTORAGE_KEY) === null) {
30
- kycStore.setKycReminder(true);
31
- return;
32
- }
33
- }, [kycStore, session?.status, shouldOpen]);
34
- useEffect(() => {
35
- if (step) {
36
- kycStore.setStep(step);
37
- }
38
- }, [kycStore, step]);
39
- return null;
40
- }
@@ -1 +0,0 @@
1
- export declare function BasicInformation(): import("react/jsx-runtime").JSX.Element;
@@ -1,101 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { zodResolver } from '@hookform/resolvers/zod';
3
- import { differenceInYears, format, isSameDay, isValid, parse } from 'date-fns';
4
- import { isNil, omitBy, size } from 'lodash-es';
5
- import { useEffect } from 'react';
6
- import { useForm } from 'react-hook-form';
7
- import invariant from 'tiny-invariant';
8
- import { z } from 'zod';
9
- import { useAccountQuery } from '../../client/hooks/useAccountQuery.js';
10
- import { useUpdateAccountMutation } from '../../client/hooks/useUpdateAccountMutation.js';
11
- import { toaster } from '../../client/utils/toaster.js';
12
- import { Button } from '../../ui/Button/index.js';
13
- import { Dialog } from '../../ui/Dialog/index.js';
14
- import { Field } from '../../ui/Field/index.js';
15
- import { useKYCContext } from './KYCContext.js';
16
- const definition = z.object({
17
- realName: z
18
- .string()
19
- .min(3, 'Name must be 3 or more characters')
20
- .max(50, 'Name must not be more than 50 characters')
21
- .regex(/^[a-z0-9 ]+$/gi, 'Name must not contain special characters')
22
- .trim(),
23
- birthDay: z
24
- .string()
25
- .min(1, 'Date of birth is required')
26
- .superRefine((value, ctx) => {
27
- const dob = parse(value, 'yyyy-MM-dd', new Date());
28
- if (!isValid(dob)) {
29
- return ctx.addIssue({
30
- code: z.ZodIssueCode.invalid_date,
31
- });
32
- }
33
- const now = new Date();
34
- const age = differenceInYears(now, dob);
35
- if (age < 21) {
36
- return ctx.addIssue({
37
- code: z.ZodIssueCode.custom,
38
- message: 'You must be at least 21 years old',
39
- });
40
- }
41
- }),
42
- branchCode: z.string().min(4).max(10).optional().or(z.literal('')),
43
- });
44
- export function BasicInformation() {
45
- const kyc = useKYCContext();
46
- const form = useForm({
47
- resolver: zodResolver(definition),
48
- mode: 'all',
49
- defaultValues: {
50
- birthDay: '',
51
- branchCode: '',
52
- realName: '',
53
- },
54
- });
55
- const accountQuery = useAccountQuery();
56
- const account = accountQuery.data;
57
- const stepCompleted = account != null && account.realName != null && account.birthDay != null;
58
- useEffect(() => {
59
- if (stepCompleted)
60
- kyc.setStep(2);
61
- }, [stepCompleted, kyc]);
62
- useEffect(() => {
63
- if (account) {
64
- form.reset({
65
- realName: account.realName ?? '',
66
- birthDay: account.birthDay
67
- ? format(account.birthDay, 'yyyy-MM-dd')
68
- : '',
69
- });
70
- }
71
- }, [account, form]);
72
- const updateAccountMutation = useUpdateAccountMutation({
73
- onError(error) {
74
- toaster.error({
75
- title: 'Error',
76
- description: error.message,
77
- });
78
- },
79
- onSuccess() {
80
- kyc.setStep(2);
81
- toaster.success({
82
- title: 'Success',
83
- description: 'Basic information has been set successfully.',
84
- });
85
- },
86
- });
87
- return (_jsxs("div", { children: [_jsx(Dialog.Title, { className: "text-center text-lg font-semibold", children: "Basic Information" }), _jsx(Dialog.Description, { className: "text-text-secondary-700 mt-xs text-center text-sm", children: "Enter your basic details for identification and communication." }), _jsxs("form", { className: "mt-3", onSubmit: form.handleSubmit((data) => {
88
- invariant(account);
89
- const input = omitBy({
90
- realName: account.realName === data.realName ? undefined : data.realName,
91
- birthDay: account.birthDay && isSameDay(data.birthDay, account.birthDay)
92
- ? undefined
93
- : format(data.birthDay, 'yyyy-MM-dd'),
94
- }, isNil);
95
- if (size(input) === 0)
96
- return kyc.setStep(2);
97
- updateAccountMutation.mutate(input);
98
- }), children: [_jsxs(Field.Root, { invalid: !!form.formState.errors.realName, readOnly: !!accountQuery.data?.realName, children: [_jsx(Field.Label, { children: "Real Name" }), _jsx(Field.Input, { placeholder: "Enter your real name", ...form.register('realName') }), _jsx(Field.ErrorText, { children: form.formState.errors.realName?.message })] }), _jsxs(Field.Root, { className: "mt-3", invalid: !!form.formState.errors.branchCode, readOnly: !!accountQuery.data?.birthDay, children: [_jsx(Field.Label, { children: "Date of Birth" }), _jsx(Field.Input, { type: "date", ...form.register('birthDay') }), _jsx(Field.ErrorText, { children: form.formState.errors.birthDay?.message })] }), _jsx(Button, { type: "submit", className: "mt-8", disabled: accountQuery.isLoading ||
99
- updateAccountMutation.isPending ||
100
- stepCompleted, children: "Continue" })] })] }));
101
- }
@@ -1 +0,0 @@
1
- export declare function CaptureIdDocument(): import("react/jsx-runtime").JSX.Element;