@opexa/portal-components 0.0.438 → 0.0.440

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 (256) hide show
  1. package/dist/client/hooks/useAccountQuery.js +6 -2
  2. package/dist/client/hooks/useApproveMemberVerification.d.ts +1 -3
  3. package/dist/client/hooks/useApproveMemberVerification.js +3 -6
  4. package/dist/client/hooks/useAvailablePromosQuery.js +6 -2
  5. package/dist/client/hooks/useAvailableQuestsCountQuery.js +6 -2
  6. package/dist/client/hooks/useAvailableQuestsQuery.js +5 -2
  7. package/dist/client/hooks/useBetRecordsQuery.js +6 -2
  8. package/dist/client/hooks/useBonusQuery.js +6 -2
  9. package/dist/client/hooks/useBonusesCountQuery.js +6 -2
  10. package/dist/client/hooks/useBonusesQuery.js +5 -2
  11. package/dist/client/hooks/useCashbackBonusQuery.js +6 -2
  12. package/dist/client/hooks/useCashbackBonusesCountQuery.js +6 -2
  13. package/dist/client/hooks/useCashbackBonusesQuery.js +5 -2
  14. package/dist/client/hooks/useControllableState.d.ts +8 -5
  15. package/dist/client/hooks/useControllableState.js +6 -27
  16. package/dist/client/hooks/useDepositQuery.js +6 -2
  17. package/dist/client/hooks/useDepositRecordsQuery.js +6 -2
  18. package/dist/client/hooks/useDepositsCountQuery.js +6 -2
  19. package/dist/client/hooks/useFavoriteGamesQuery.js +6 -2
  20. package/dist/client/hooks/useFileQuery.js +6 -2
  21. package/dist/client/hooks/useInstapayBankListQuery.js +6 -2
  22. package/dist/client/hooks/useIsMayaSessionValidQuery.js +6 -2
  23. package/dist/client/hooks/useMayaAuth.d.ts +6 -0
  24. package/dist/client/hooks/useMayaAuth.js +43 -0
  25. package/dist/client/hooks/useMemberVerificationQuery.js +6 -2
  26. package/dist/client/hooks/useMessagesQuery.js +6 -2
  27. package/dist/client/hooks/useOnboardingStatusQuery.js +6 -2
  28. package/dist/client/hooks/usePaymentSettingsQuery.js +6 -2
  29. package/dist/client/hooks/useProfileCompletionQuery.js +6 -2
  30. package/dist/client/hooks/useRecommendedGamesQuery.js +6 -2
  31. package/dist/client/hooks/useSessionHealthQuery.js +6 -2
  32. package/dist/client/hooks/useTransactionRecordsQuery.js +6 -2
  33. package/dist/client/hooks/useUnreadMessagesCountQuery.js +6 -2
  34. package/dist/client/hooks/useWalletQuery.js +6 -2
  35. package/dist/client/hooks/useWithdrawalRecordsQuery.js +6 -2
  36. package/dist/components/AccountInfo/GoogleDisconnect.d.ts +7 -0
  37. package/dist/components/AccountInfo/GoogleDisconnect.js +11 -0
  38. package/dist/components/DigitainLauncher/Loading.js +1 -1
  39. package/dist/components/FavoriteGames/FavoriteGames.client.js +11 -1
  40. package/dist/components/GameLaunch/GameLaunchTrigger.js +10 -3
  41. package/dist/components/Games/Game.js +11 -1
  42. package/dist/components/Jackpots/Jackpots.module.css +184 -184
  43. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.module.css +184 -184
  44. package/dist/components/Jackpots/JackpotsList/JackpotsListItem.module.css +184 -184
  45. package/dist/components/KYC/BasicInformation.js +1 -1
  46. package/dist/components/KYC/IdentityVerification.js +1 -1
  47. package/dist/components/KYC/KYC.lazy.js +1 -1
  48. package/dist/components/KYC/KYCDefault/PersonalInformation.js +1 -4
  49. package/dist/components/KYC/PersonalInformation.js +1 -1
  50. package/dist/components/Maya/Maya.d.ts +1 -0
  51. package/dist/components/Maya/Maya.js +90 -0
  52. package/dist/components/Maya/index.d.ts +1 -0
  53. package/dist/components/Maya/index.js +1 -0
  54. package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarouselItem.module.css +184 -184
  55. package/dist/components/Tournaments/TournamentsList/TournamentItem.module.css +184 -184
  56. package/dist/constants/EnvVar.d.ts +1 -1
  57. package/dist/icons/LinkBrokenIcon.d.ts +2 -0
  58. package/dist/icons/LinkBrokenIcon.js +4 -0
  59. package/dist/services/queries.js +2687 -2687
  60. package/dist/styles/theme.css +719 -719
  61. package/dist/ui/AlertDialog/AlertDialog.d.ts +88 -88
  62. package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +8 -8
  63. package/dist/ui/Badge/Badge.d.ts +12 -12
  64. package/dist/ui/Badge/badge.anatomy.d.ts +1 -1
  65. package/dist/ui/Badge/badge.recipe.d.ts +3 -3
  66. package/dist/ui/Carousel/Carousel.d.ts +99 -99
  67. package/dist/ui/Carousel/carousel.recipe.d.ts +11 -11
  68. package/dist/ui/Checkbox/Checkbox.d.ts +23 -23
  69. package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -3
  70. package/dist/ui/Clipboard/Clipboard.d.ts +18 -18
  71. package/dist/ui/Clipboard/clipboard.recipe.d.ts +3 -3
  72. package/dist/ui/Combobox/Combobox.d.ts +42 -42
  73. package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
  74. package/dist/ui/DatePicker/DatePicker.d.ts +72 -72
  75. package/dist/ui/DatePicker/datePicker.recipe.d.ts +3 -3
  76. package/dist/ui/Drawer/Drawer.d.ts +33 -33
  77. package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
  78. package/dist/ui/Field/Field.d.ts +21 -21
  79. package/dist/ui/Field/field.recipe.d.ts +3 -3
  80. package/dist/ui/Menu/Menu.d.ts +90 -90
  81. package/dist/ui/Menu/menu.recipe.d.ts +5 -5
  82. package/dist/ui/NumberInput/NumberInput.d.ts +24 -24
  83. package/dist/ui/NumberInput/numberInput.recipe.d.ts +3 -3
  84. package/dist/ui/PasswordInput/PasswordInput.d.ts +18 -18
  85. package/dist/ui/PasswordInput/passwordInput.recipe.d.ts +3 -3
  86. package/dist/ui/PinInput/PinInput.d.ts +12 -12
  87. package/dist/ui/PinInput/pinInput.recipe.d.ts +3 -3
  88. package/dist/ui/Popover/Popover.d.ts +55 -55
  89. package/dist/ui/Popover/popover.recipe.d.ts +5 -5
  90. package/dist/ui/Progress/Progress.d.ts +27 -27
  91. package/dist/ui/Progress/progress.recipe.d.ts +3 -3
  92. package/dist/ui/QrCode/QrCode.d.ts +25 -25
  93. package/dist/ui/QrCode/qrCode.recipe.d.ts +5 -5
  94. package/dist/ui/SegmentGroup/SegmentGroup.d.ts +18 -18
  95. package/dist/ui/SegmentGroup/segmentGroup.recipe.d.ts +3 -3
  96. package/dist/ui/Select/Select.d.ts +45 -45
  97. package/dist/ui/Select/select.recipe.d.ts +3 -3
  98. package/dist/ui/Table/Table.d.ts +21 -21
  99. package/dist/ui/Table/table.anatomy.d.ts +1 -1
  100. package/dist/ui/Table/table.recipe.d.ts +3 -3
  101. package/dist/ui/Tabs/Tabs.d.ts +15 -15
  102. package/dist/ui/Tabs/tabs.recipe.d.ts +3 -3
  103. package/dist/utils/getQueryClient.js +2 -1
  104. package/package.json +162 -161
  105. package/dist/components/Disclaimer/ResponsibleGaming.d.ts +0 -10
  106. package/dist/components/Disclaimer/ResponsibleGaming.js +0 -13
  107. package/dist/components/Disclaimer/TermsOfUse.d.ts +0 -11
  108. package/dist/components/Disclaimer/TermsOfUse.js +0 -13
  109. package/dist/components/FeatureFlag/FeatureFlag.d.ts +0 -1
  110. package/dist/components/FeatureFlag/FeatureFlag.js +0 -29
  111. package/dist/components/FeatureFlag/index.d.ts +0 -1
  112. package/dist/components/FeatureFlag/index.js +0 -1
  113. package/dist/components/KYC/AutoOpen.d.ts +0 -1
  114. package/dist/components/KYC/AutoOpen.js +0 -40
  115. package/dist/components/KYC/CaptureIdDocument.d.ts +0 -1
  116. package/dist/components/KYC/CaptureIdDocument.js +0 -219
  117. package/dist/components/KYC/CaptureSelfie.d.ts +0 -1
  118. package/dist/components/KYC/CaptureSelfie.js +0 -285
  119. package/dist/components/KYC/DisplayImage.d.ts +0 -5
  120. package/dist/components/KYC/DisplayImage.js +0 -8
  121. package/dist/components/KYC/FileUpload.d.ts +0 -10
  122. package/dist/components/KYC/FileUpload.js +0 -72
  123. package/dist/components/KYC/NoCameraError.d.ts +0 -7
  124. package/dist/components/KYC/NoCameraError.js +0 -6
  125. package/dist/components/KYC/PersonOverlayDesktop.d.ts +0 -7
  126. package/dist/components/KYC/PersonOverlayDesktop.js +0 -9
  127. package/dist/components/KYC/backup/Header.d.ts +0 -1
  128. package/dist/components/KYC/backup/Header.js +0 -8
  129. package/dist/components/KYC/backup/Indicator.d.ts +0 -1
  130. package/dist/components/KYC/backup/Indicator.js +0 -9
  131. package/dist/components/KYC/backup/KYC.d.ts +0 -1
  132. package/dist/components/KYC/backup/KYC.js +0 -14
  133. package/dist/components/KYC/backup/KYC.lazy.d.ts +0 -1
  134. package/dist/components/KYC/backup/KYC.lazy.js +0 -26
  135. package/dist/components/KYC/backup/KYCContext.d.ts +0 -6
  136. package/dist/components/KYC/backup/KYCContext.js +0 -2
  137. package/dist/components/KYC/backup/Step1.d.ts +0 -1
  138. package/dist/components/KYC/backup/Step1.js +0 -13
  139. package/dist/components/KYC/backup/Step2.d.ts +0 -1
  140. package/dist/components/KYC/backup/Step2.js +0 -13
  141. package/dist/components/KYC/backup/Step3.d.ts +0 -1
  142. package/dist/components/KYC/backup/Step3.js +0 -13
  143. package/dist/components/KYC/backup/Step4.d.ts +0 -1
  144. package/dist/components/KYC/backup/Step4.js +0 -7
  145. package/dist/components/KYC/backup/useKYC.d.ts +0 -10
  146. package/dist/components/KYC/backup/useKYC.js +0 -8
  147. package/dist/components/KYC/loadModels.d.ts +0 -1
  148. package/dist/components/KYC/loadModels.js +0 -9
  149. package/dist/components/KYC/utils.d.ts +0 -9
  150. package/dist/components/KYC/utils.js +0 -79
  151. package/dist/components/Messages/Message.d.ts +0 -1
  152. package/dist/components/Messages/Message.js +0 -35
  153. package/dist/components/Messages/MessageContext.d.ts +0 -6
  154. package/dist/components/Messages/MessageContext.js +0 -2
  155. package/dist/components/Messages/MessagePopup.d.ts +0 -1
  156. package/dist/components/Messages/MessagePopup.js +0 -20
  157. package/dist/components/Messages/MessageTrigger.d.ts +0 -8
  158. package/dist/components/Messages/MessageTrigger.js +0 -19
  159. package/dist/components/Quests/CountdownTimer.d.ts +0 -15
  160. package/dist/components/Quests/CountdownTimer.js +0 -33
  161. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.d.ts +0 -4
  162. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.js +0 -78
  163. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.d.ts +0 -8
  164. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.js +0 -9
  165. package/dist/components/Quests/OnboardingQuest/OnboardingQuest.d.ts +0 -4
  166. package/dist/components/Quests/OnboardingQuest/OnboardingQuest.js +0 -4
  167. package/dist/components/Quests/WageringQuest/WageringQuest.d.ts +0 -4
  168. package/dist/components/Quests/WageringQuest/WageringQuest.js +0 -20
  169. package/dist/components/Quests/WageringQuest/WageringQuestModal.d.ts +0 -9
  170. package/dist/components/Quests/WageringQuest/WageringQuestModal.js +0 -9
  171. package/dist/components/SignIn/utils.d.ts +0 -8
  172. package/dist/components/SignIn/utils.js +0 -26
  173. package/dist/components/SignUp/SignUp.lazy.d.ts +0 -12
  174. package/dist/components/SignUp/SignUp.lazy.js +0 -18
  175. package/dist/components/SignUp/SignUpContext.d.ts +0 -6
  176. package/dist/components/SignUp/SignUpContext.js +0 -2
  177. package/dist/components/SignUp/SignUpDefault/SignUp.lazy.d.ts +0 -17
  178. package/dist/components/SignUp/SignUpDefault/SignUp.lazy.js +0 -18
  179. package/dist/components/SignUp/SignUpDefault/SignUpContext.d.ts +0 -6
  180. package/dist/components/SignUp/SignUpDefault/SignUpContext.js +0 -2
  181. package/dist/components/SignUp/SignUpDefault/SignUpForm.d.ts +0 -1
  182. package/dist/components/SignUp/SignUpDefault/SignUpForm.js +0 -310
  183. package/dist/components/SignUp/SignUpForm.d.ts +0 -1
  184. package/dist/components/SignUp/SignUpForm.js +0 -284
  185. package/dist/components/SignUp/SignUpKYC/CaptureIdDocument.d.ts +0 -1
  186. package/dist/components/SignUp/SignUpKYC/CaptureIdDocument.js +0 -198
  187. package/dist/components/SignUp/SignUpKYC/CaptureSelfie.d.ts +0 -1
  188. package/dist/components/SignUp/SignUpKYC/CaptureSelfie.js +0 -251
  189. package/dist/components/SignUp/SignUpKYC/ImageUploader.d.ts +0 -10
  190. package/dist/components/SignUp/SignUpKYC/ImageUploader.js +0 -42
  191. package/dist/components/SignUp/SignUpKYC/PersonOverlayDesktop.d.ts +0 -7
  192. package/dist/components/SignUp/SignUpKYC/PersonOverlayDesktop.js +0 -9
  193. package/dist/components/SignUp/SignUpKYC/SignUpFormKYC.d.ts +0 -1
  194. package/dist/components/SignUp/SignUpKYC/SignUpFormKYC.js +0 -464
  195. package/dist/components/SignUp/SignUpKYC/useImageUploader.d.ts +0 -11
  196. package/dist/components/SignUp/SignUpKYC/useImageUploader.js +0 -20
  197. package/dist/components/SignUp/SignUpKYC/utils.d.ts +0 -9
  198. package/dist/components/SignUp/SignUpKYC/utils.js +0 -79
  199. package/dist/components/SignUp/SignUpPagcor/CaptureIdDocument.d.ts +0 -1
  200. package/dist/components/SignUp/SignUpPagcor/CaptureIdDocument.js +0 -198
  201. package/dist/components/SignUp/SignUpPagcor/CaptureSelfie.d.ts +0 -1
  202. package/dist/components/SignUp/SignUpPagcor/CaptureSelfie.js +0 -251
  203. package/dist/components/SignUp/SignUpPagcor/ImageUploader.d.ts +0 -10
  204. package/dist/components/SignUp/SignUpPagcor/ImageUploader.js +0 -41
  205. package/dist/components/SignUp/SignUpPagcor/SignUpFormPagcor.d.ts +0 -1
  206. package/dist/components/SignUp/SignUpPagcor/SignUpFormPagcor.js +0 -429
  207. package/dist/components/SignUp/SignUpPagcor/SignUpPagcor.lazy.d.ts +0 -13
  208. package/dist/components/SignUp/SignUpPagcor/SignUpPagcor.lazy.js +0 -26
  209. package/dist/components/SignUp/SignUpPagcor/SignUpPagcorContext.d.ts +0 -7
  210. package/dist/components/SignUp/SignUpPagcor/SignUpPagcorContext.js +0 -2
  211. package/dist/components/SignUp/SignUpPagcor/useImageUploader.d.ts +0 -11
  212. package/dist/components/SignUp/SignUpPagcor/useImageUploader.js +0 -20
  213. package/dist/components/shared/IdDocumentField.client.d.ts +0 -25
  214. package/dist/components/shared/IdDocumentField.client.js +0 -204
  215. package/dist/components/shared/IdDocumentField.d.ts +0 -2
  216. package/dist/components/shared/IdDocumentField.js +0 -11
  217. package/dist/components/shared/SelfieField.client.d.ts +0 -20
  218. package/dist/components/shared/SelfieField.client.js +0 -327
  219. package/dist/components/shared/SelfieField.d.ts +0 -2
  220. package/dist/components/shared/SelfieField.js +0 -11
  221. package/dist/constants/BranchCode.d.ts +0 -4
  222. package/dist/constants/BranchCode.js +0 -42
  223. package/dist/constants/Branches.d.ts +0 -2
  224. package/dist/constants/Branches.js +0 -42
  225. package/dist/handlers/postTransformIdFrontImage.d.ts +0 -3
  226. package/dist/handlers/postTransformIdFrontImage.js +0 -67
  227. package/dist/handlers/postTransformSelfieImage.d.ts +0 -3
  228. package/dist/handlers/postTransformSelfieImage.js +0 -71
  229. package/dist/handlers.d.ts +0 -43
  230. package/dist/handlers.js +0 -297
  231. package/dist/icons/BellRingIcon.d.ts +0 -2
  232. package/dist/icons/BellRingIcon.js +0 -4
  233. package/dist/third-parties/FacebookPixel/FacebookPixel.d.ts +0 -4
  234. package/dist/third-parties/FacebookPixel/FacebookPixel.js +0 -4
  235. package/dist/third-parties/FacebookPixel/api.d.ts +0 -0
  236. package/dist/third-parties/FacebookPixel/api.js +0 -1
  237. package/dist/third-parties/FacebookPixel/index.d.ts +0 -1
  238. package/dist/third-parties/FacebookPixel/index.js +0 -1
  239. package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.d.ts +0 -4
  240. package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.js +0 -4
  241. package/dist/third-parties/GoogleRecaptcha/api.d.ts +0 -0
  242. package/dist/third-parties/GoogleRecaptcha/api.js +0 -1
  243. package/dist/third-parties/GoogleRecaptcha/index.d.ts +0 -1
  244. package/dist/third-parties/GoogleRecaptcha/index.js +0 -1
  245. package/dist/third-parties/index.d.ts +0 -2
  246. package/dist/third-parties/index.js +0 -2
  247. package/dist/utils/dataUrlToBlob.d.ts +0 -1
  248. package/dist/utils/dataUrlToBlob.js +0 -11
  249. package/dist/utils/gamesAvailable3pmTo3am.d.ts +0 -1
  250. package/dist/utils/gamesAvailable3pmTo3am.js +0 -1
  251. package/dist/utils/getGameName.d.ts +0 -1
  252. package/dist/utils/getGameName.js +0 -6
  253. package/dist/utils/isBetween3amAnd3pm.d.ts +0 -1
  254. package/dist/utils/isBetween3amAnd3pm.js +0 -5
  255. package/dist/utils/resizeImageSize.d.ts +0 -2
  256. package/dist/utils/resizeImageSize.js +0 -11
@@ -1,184 +1,184 @@
1
- @keyframes arrow-green-flash {
2
- 0% {
3
- color: #abefc6;
4
- }
5
- 100% {
6
- color: #079455;
7
- }
8
- }
9
-
10
- .animate-arrow-green-flash-1 {
11
- animation: arrow-green-flash 0.4s infinite;
12
- animation-delay: -0.2s;
13
- }
14
-
15
- .animate-arrow-green-flash-2 {
16
- animation: arrow-green-flash 0.4s infinite;
17
- animation-delay: -0.1s;
18
- }
19
-
20
- .animate-arrow-green-flash-3 {
21
- animation: arrow-green-flash 0.4s infinite;
22
- }
23
-
24
- @keyframes arrow-red-flash {
25
- 0%,
26
- 100% {
27
- color: #f97066;
28
- }
29
- 50% {
30
- color: #fecdca;
31
- }
32
- }
33
-
34
- .animate-arrow-red-flash-1 {
35
- animation: arrow-red-flash 0.4s infinite;
36
- }
37
-
38
- .animate-arrow-red-flash-2 {
39
- animation: arrow-red-flash 0.4s infinite;
40
- animation-delay: -0.1s;
41
- }
42
-
43
- .animate-arrow-red-flash-3 {
44
- animation: arrow-red-flash 0.4s infinite;
45
- animation-delay: -0.2s;
46
- }
47
-
48
- /* Animated BG */
49
- @keyframes rotate {
50
- to {
51
- transform: rotate(1turn);
52
- }
53
- }
54
-
55
- .light-rays {
56
- position: absolute;
57
- top: 0;
58
- left: 0;
59
- right: 0;
60
- bottom: 0;
61
- overflow: hidden;
62
-
63
- --first: var(--color-bg-tertiary);
64
- --second: var(--color-bg-quaternary);
65
- }
66
-
67
- .light-rays::before,
68
- .light-rays::after {
69
- content: '';
70
- position: absolute;
71
- top: var(--light-rays-top, 150px);
72
- left: calc(50% - 90px);
73
- margin: -100vmax;
74
- width: 200vmax;
75
- height: 200vmax;
76
- opacity: 0.6;
77
- transform-origin: center;
78
- }
79
-
80
- .light-rays::before {
81
- background: conic-gradient(
82
- var(--first) 0deg 7.2deg,
83
- var(--second) 7.2deg 14.4deg,
84
- var(--first) 14.4deg 21.6deg,
85
- var(--second) 21.6deg 28.8deg,
86
- var(--first) 28.8deg 36deg,
87
- var(--second) 36deg 43.2deg,
88
- var(--first) 43.2deg 50.4deg,
89
- var(--second) 50.4deg 57.6deg,
90
- var(--first) 57.6deg 64.8deg,
91
- var(--second) 64.8deg 72deg,
92
- var(--first) 72deg 79.2deg,
93
- var(--second) 79.2deg 86.4deg,
94
- var(--first) 86.4deg 93.6deg,
95
- var(--second) 93.6deg 100.8deg,
96
- var(--first) 100.8deg 108deg,
97
- var(--second) 108deg 115.2deg,
98
- var(--first) 115.2deg 122.4deg,
99
- var(--second) 122.4deg 129.6deg,
100
- var(--first) 129.6deg 136.8deg,
101
- var(--second) 136.8deg 144deg,
102
- var(--first) 144deg 151.2deg,
103
- var(--second) 151.2deg 158.4deg,
104
- var(--first) 158.4deg 165.6deg,
105
- var(--second) 165.6deg 172.8deg,
106
- var(--first) 172.8deg 180deg,
107
- var(--second) 180deg 187.2deg,
108
- var(--first) 187.2deg 194.4deg,
109
- var(--second) 194.4deg 201.6deg,
110
- var(--first) 201.6deg 208.8deg,
111
- var(--second) 208.8deg 216deg,
112
- var(--first) 216deg 223.2deg,
113
- var(--second) 223.2deg 230.4deg,
114
- var(--first) 230.4deg 237.6deg,
115
- var(--second) 237.6deg 244.8deg,
116
- var(--first) 244.8deg 252deg,
117
- var(--second) 252deg 259.2deg,
118
- var(--first) 259.2deg 266.4deg,
119
- var(--second) 266.4deg 273.6deg,
120
- var(--first) 273.6deg 280.8deg,
121
- var(--second) 280.8deg 288deg,
122
- var(--first) 288deg 295.2deg,
123
- var(--second) 295.2deg 302.4deg,
124
- var(--first) 302.4deg 309.6deg,
125
- var(--second) 309.6deg 316.8deg,
126
- var(--first) 316.8deg 324deg,
127
- var(--second) 324deg 331.2deg,
128
- var(--first) 331.2deg 338.4deg,
129
- var(--second) 338.4deg 345.6deg,
130
- var(--first) 345.6deg 352.8deg,
131
- var(--second) 352.8deg 360deg
132
- );
133
- animation: rotate 20s linear infinite;
134
- }
135
-
136
- @media (max-width: 1024px) {
137
- .light-rays::before,
138
- .light-rays::after {
139
- left: auto;
140
- right: 11%;
141
- }
142
- }
143
-
144
- /* ScrollArea.module.css */
145
- .scrollArea {
146
- overflow-y: scroll;
147
- padding-right: 4px;
148
- }
149
-
150
- /* WebKit-based browsers */
151
- .scrollArea::-webkit-scrollbar {
152
- width: 8px;
153
- }
154
-
155
- .scrollArea::-webkit-scrollbar-track {
156
- background: var(--color-bg-primary-alt);
157
- border-radius: 9999px;
158
- }
159
-
160
- .scrollArea::-webkit-scrollbar-thumb {
161
- background-color: var(--color-bg-quaternary);
162
- border-radius: 9999px;
163
- }
164
-
165
- @keyframes waveColor {
166
- 0%,
167
- 2.5% {
168
- color: var(--wave-highlight-color);
169
- }
170
- 2.51%,
171
- 100% {
172
- color: var(--color-brand-300);
173
- }
174
- }
175
-
176
- .animate-wave-color-success {
177
- --wave-highlight-color: var(--color-success-800);
178
- animation: waveColor 4s ease-in-out infinite;
179
- }
180
-
181
- .animate-wave-color-error {
182
- --wave-highlight-color: var(--color-error-600);
183
- animation: waveColor 4s ease-in-out infinite;
184
- }
1
+ @keyframes arrow-green-flash {
2
+ 0% {
3
+ color: #abefc6;
4
+ }
5
+ 100% {
6
+ color: #079455;
7
+ }
8
+ }
9
+
10
+ .animate-arrow-green-flash-1 {
11
+ animation: arrow-green-flash 0.4s infinite;
12
+ animation-delay: -0.2s;
13
+ }
14
+
15
+ .animate-arrow-green-flash-2 {
16
+ animation: arrow-green-flash 0.4s infinite;
17
+ animation-delay: -0.1s;
18
+ }
19
+
20
+ .animate-arrow-green-flash-3 {
21
+ animation: arrow-green-flash 0.4s infinite;
22
+ }
23
+
24
+ @keyframes arrow-red-flash {
25
+ 0%,
26
+ 100% {
27
+ color: #f97066;
28
+ }
29
+ 50% {
30
+ color: #fecdca;
31
+ }
32
+ }
33
+
34
+ .animate-arrow-red-flash-1 {
35
+ animation: arrow-red-flash 0.4s infinite;
36
+ }
37
+
38
+ .animate-arrow-red-flash-2 {
39
+ animation: arrow-red-flash 0.4s infinite;
40
+ animation-delay: -0.1s;
41
+ }
42
+
43
+ .animate-arrow-red-flash-3 {
44
+ animation: arrow-red-flash 0.4s infinite;
45
+ animation-delay: -0.2s;
46
+ }
47
+
48
+ /* Animated BG */
49
+ @keyframes rotate {
50
+ to {
51
+ transform: rotate(1turn);
52
+ }
53
+ }
54
+
55
+ .light-rays {
56
+ position: absolute;
57
+ top: 0;
58
+ left: 0;
59
+ right: 0;
60
+ bottom: 0;
61
+ overflow: hidden;
62
+
63
+ --first: var(--color-bg-tertiary);
64
+ --second: var(--color-bg-quaternary);
65
+ }
66
+
67
+ .light-rays::before,
68
+ .light-rays::after {
69
+ content: '';
70
+ position: absolute;
71
+ top: var(--light-rays-top, 150px);
72
+ left: calc(50% - 90px);
73
+ margin: -100vmax;
74
+ width: 200vmax;
75
+ height: 200vmax;
76
+ opacity: 0.6;
77
+ transform-origin: center;
78
+ }
79
+
80
+ .light-rays::before {
81
+ background: conic-gradient(
82
+ var(--first) 0deg 7.2deg,
83
+ var(--second) 7.2deg 14.4deg,
84
+ var(--first) 14.4deg 21.6deg,
85
+ var(--second) 21.6deg 28.8deg,
86
+ var(--first) 28.8deg 36deg,
87
+ var(--second) 36deg 43.2deg,
88
+ var(--first) 43.2deg 50.4deg,
89
+ var(--second) 50.4deg 57.6deg,
90
+ var(--first) 57.6deg 64.8deg,
91
+ var(--second) 64.8deg 72deg,
92
+ var(--first) 72deg 79.2deg,
93
+ var(--second) 79.2deg 86.4deg,
94
+ var(--first) 86.4deg 93.6deg,
95
+ var(--second) 93.6deg 100.8deg,
96
+ var(--first) 100.8deg 108deg,
97
+ var(--second) 108deg 115.2deg,
98
+ var(--first) 115.2deg 122.4deg,
99
+ var(--second) 122.4deg 129.6deg,
100
+ var(--first) 129.6deg 136.8deg,
101
+ var(--second) 136.8deg 144deg,
102
+ var(--first) 144deg 151.2deg,
103
+ var(--second) 151.2deg 158.4deg,
104
+ var(--first) 158.4deg 165.6deg,
105
+ var(--second) 165.6deg 172.8deg,
106
+ var(--first) 172.8deg 180deg,
107
+ var(--second) 180deg 187.2deg,
108
+ var(--first) 187.2deg 194.4deg,
109
+ var(--second) 194.4deg 201.6deg,
110
+ var(--first) 201.6deg 208.8deg,
111
+ var(--second) 208.8deg 216deg,
112
+ var(--first) 216deg 223.2deg,
113
+ var(--second) 223.2deg 230.4deg,
114
+ var(--first) 230.4deg 237.6deg,
115
+ var(--second) 237.6deg 244.8deg,
116
+ var(--first) 244.8deg 252deg,
117
+ var(--second) 252deg 259.2deg,
118
+ var(--first) 259.2deg 266.4deg,
119
+ var(--second) 266.4deg 273.6deg,
120
+ var(--first) 273.6deg 280.8deg,
121
+ var(--second) 280.8deg 288deg,
122
+ var(--first) 288deg 295.2deg,
123
+ var(--second) 295.2deg 302.4deg,
124
+ var(--first) 302.4deg 309.6deg,
125
+ var(--second) 309.6deg 316.8deg,
126
+ var(--first) 316.8deg 324deg,
127
+ var(--second) 324deg 331.2deg,
128
+ var(--first) 331.2deg 338.4deg,
129
+ var(--second) 338.4deg 345.6deg,
130
+ var(--first) 345.6deg 352.8deg,
131
+ var(--second) 352.8deg 360deg
132
+ );
133
+ animation: rotate 20s linear infinite;
134
+ }
135
+
136
+ @media (max-width: 1024px) {
137
+ .light-rays::before,
138
+ .light-rays::after {
139
+ left: auto;
140
+ right: 11%;
141
+ }
142
+ }
143
+
144
+ /* ScrollArea.module.css */
145
+ .scrollArea {
146
+ overflow-y: scroll;
147
+ padding-right: 4px;
148
+ }
149
+
150
+ /* WebKit-based browsers */
151
+ .scrollArea::-webkit-scrollbar {
152
+ width: 8px;
153
+ }
154
+
155
+ .scrollArea::-webkit-scrollbar-track {
156
+ background: var(--color-bg-primary-alt);
157
+ border-radius: 9999px;
158
+ }
159
+
160
+ .scrollArea::-webkit-scrollbar-thumb {
161
+ background-color: var(--color-bg-quaternary);
162
+ border-radius: 9999px;
163
+ }
164
+
165
+ @keyframes waveColor {
166
+ 0%,
167
+ 2.5% {
168
+ color: var(--wave-highlight-color);
169
+ }
170
+ 2.51%,
171
+ 100% {
172
+ color: var(--color-brand-300);
173
+ }
174
+ }
175
+
176
+ .animate-wave-color-success {
177
+ --wave-highlight-color: var(--color-success-800);
178
+ animation: waveColor 4s ease-in-out infinite;
179
+ }
180
+
181
+ .animate-wave-color-error {
182
+ --wave-highlight-color: var(--color-error-600);
183
+ animation: waveColor 4s ease-in-out infinite;
184
+ }
@@ -84,7 +84,7 @@ export function BasicInformation() {
84
84
  });
85
85
  },
86
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) => {
87
+ return (_jsxs("div", { children: [_jsx(Dialog.Title, { className: "text-center font-semibold text-lg", children: "Basic Information" }), _jsx(Dialog.Description, { className: "mt-xs text-center text-sm text-text-secondary-700", children: "Enter your basic details for identification and communication." }), _jsxs("form", { className: "mt-3", onSubmit: form.handleSubmit((data) => {
88
88
  invariant(account);
89
89
  const input = omitBy({
90
90
  realName: account.realName === data.realName ? undefined : data.realName,
@@ -102,7 +102,7 @@ export function IdentityVerification() {
102
102
  if (kyc.idFrontImageId)
103
103
  form.setValue('idFrontImage', kyc.idFrontImageId);
104
104
  }, [form, kyc.idFrontImageId, kyc.selfieImageId]);
105
- return (_jsxs("div", { children: [_jsx(Dialog.Title, { className: "text-center text-lg font-semibold", children: "Verify your identity" }), _jsx(Dialog.Description, { className: "text-text-secondary-700 mt-xs text-center text-sm", children: "Verify your details to confirm your identity and secure your access." }), _jsxs("div", { className: "border-border-primary bg-bg-primary text-text-placeholder mt-7 rounded-xl border p-lg text-xs leading-tight", children: [_jsx("h3", { className: "font-semibold", children: "Instructions" }), _jsxs("ol", { className: "mt-2 list-inside list-decimal", children: [_jsx("li", { children: "Upload a full photo of your ID." }), _jsx("li", { children: "Please ensure that all details in the uploaded image are legible." }), _jsx("li", { children: "Please ensure that the ID uploaded is within the validity period." })] })] }), _jsxs("form", { className: "mt-xl", onSubmit: form.handleSubmit(onSubmit), children: [_jsx(Controller, { control: form.control, name: "idFrontImage", render: (o) => (_jsxs(Field.Root, { invalid: o.fieldState.invalid, children: [_jsx(Field.Label, { children: "Front of your ID" }), _jsx(IdFrontImageField, { value: o.field.value, onChange: o.field.onChange, onError: (error) => {
105
+ return (_jsxs("div", { children: [_jsx(Dialog.Title, { className: "text-center font-semibold text-lg", children: "Verify your identity" }), _jsx(Dialog.Description, { className: "mt-xs text-center text-sm text-text-secondary-700", children: "Verify your details to confirm your identity and secure your access." }), _jsxs("div", { className: "mt-7 rounded-xl border border-border-primary bg-bg-primary p-lg text-text-placeholder text-xs leading-tight", children: [_jsx("h3", { className: "font-semibold", children: "Instructions" }), _jsxs("ol", { className: "mt-2 list-inside list-decimal", children: [_jsx("li", { children: "Upload a full photo of your ID." }), _jsx("li", { children: "Please ensure that all details in the uploaded image are legible." }), _jsx("li", { children: "Please ensure that the ID uploaded is within the validity period." })] })] }), _jsxs("form", { className: "mt-xl", onSubmit: form.handleSubmit(onSubmit), children: [_jsx(Controller, { control: form.control, name: "idFrontImage", render: (o) => (_jsxs(Field.Root, { invalid: o.fieldState.invalid, children: [_jsx(Field.Label, { children: "Front of your ID" }), _jsx(IdFrontImageField, { value: o.field.value, onChange: o.field.onChange, onError: (error) => {
106
106
  form.setValue('idFrontImage', '');
107
107
  form.setError('idFrontImage', {
108
108
  type: 'validate',
@@ -41,5 +41,5 @@ export function KYC(props) {
41
41
  }, [steps, kyc]);
42
42
  return (_jsxs(_Fragment, { children: [_jsx(KYCContext, { value: kyc, children: _jsx(Dialog.Root, { open: globalStore.kyc.open && hasMissingData, onOpenChange: (details) => {
43
43
  globalStore.kyc.setOpen(details.open);
44
- }, lazyMount: true, unmountOnExit: true, closeOnEscape: false, closeOnInteractOutside: false, onExitComplete: kyc.reset, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, {}), _jsx(Dialog.Positioner, { children: _jsx(Dialog.Content, { className: "bg-bg-primary-alt lg:min-h-auto mx-auto min-h-full w-full overflow-y-auto lg:w-fit", children: _jsxs("div", { className: "flex h-dvh w-full flex-col overflow-y-auto p-3xl sm:h-fit sm:overflow-auto lg:w-[400px]", children: [_jsx(Dialog.CloseTrigger, { children: _jsx(XIcon, {}) }), _jsx(Image, { src: props.logo, alt: "", width: 200, height: 100, className: "mx-auto mb-5 block h-7.5 w-auto", draggable: false }), _jsx(Indicator, {}), kyc.step === 1 && _jsx(BasicInformation, {}), kyc.step === 2 && _jsx(IdentityVerification, {}), kyc.step === 3 && _jsx(PersonalInformation, {})] }) }) })] }) }) }), _jsx(KYCReminder, { ...props })] }));
44
+ }, lazyMount: true, unmountOnExit: true, closeOnEscape: false, closeOnInteractOutside: false, onExitComplete: kyc.reset, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, {}), _jsx(Dialog.Positioner, { children: _jsx(Dialog.Content, { className: "mx-auto min-h-full w-full overflow-y-auto bg-bg-primary-alt lg:min-h-auto lg:w-fit", children: _jsxs("div", { className: "flex h-dvh w-full flex-col overflow-y-auto p-3xl sm:h-fit sm:overflow-auto lg:w-[400px]", children: [_jsx(Dialog.CloseTrigger, { children: _jsx(XIcon, {}) }), _jsx(Image, { src: props.logo, alt: "", width: 200, height: 100, className: "mx-auto mb-5 block h-7.5 w-auto", draggable: false }), _jsx(Indicator, {}), kyc.step === 1 && _jsx(BasicInformation, {}), kyc.step === 2 && _jsx(IdentityVerification, {}), kyc.step === 3 && _jsx(PersonalInformation, {})] }) }) })] }) }) }), _jsx(KYCReminder, { ...props })] }));
45
45
  }
@@ -96,10 +96,7 @@ export function PersonalInformation() {
96
96
  ...values,
97
97
  },
98
98
  });
99
- //approve status of member to be pending
100
- await approveMemberVerificationMutation.mutateAsync({
101
- id: memberVerificationId,
102
- });
99
+ await approveMemberVerificationMutation.mutateAsync(memberVerificationId);
103
100
  }
104
101
  }
105
102
  const address = form.watch('address');
@@ -104,7 +104,7 @@ export function PersonalInformation() {
104
104
  }
105
105
  const address = form.watch('address');
106
106
  const permanentAddress = form.watch('permanentAddress');
107
- return (_jsxs("div", { children: [_jsx(Dialog.Title, { className: "text-center text-lg font-semibold", children: "Personal Information" }), _jsx(Dialog.Description, { className: "text-text-secondary-700 mt-xs text-center text-sm", children: "Provide your basic details and work info." }), _jsxs("form", { className: "mt-7", onSubmit: form.handleSubmit(onSubmit), children: [_jsxs(Field.Root, { invalid: !!form.formState.errors.permanentAddress, children: [_jsx(Field.Label, { children: "Permanent address" }), _jsx(Field.Input, { placeholder: "Enter your permanent address", ...form.register('permanentAddress') }), _jsx(Field.ErrorText, { children: form.formState.errors.permanentAddress?.message })] }), _jsxs(Field.Root, { className: "mt-2xl", invalid: !!form.formState.errors.address, children: [_jsx(Field.Label, { children: "Current address" }), _jsx(Field.Input, { placeholder: "Enter your current address", ...form.register('address') }), _jsx(Field.ErrorText, { children: form.formState.errors.address?.message })] }), _jsxs(Checkbox.Root, { className: "mt-md", checked: address !== '' &&
107
+ return (_jsxs("div", { children: [_jsx(Dialog.Title, { className: "text-center font-semibold text-lg", children: "Personal Information" }), _jsx(Dialog.Description, { className: "mt-xs text-center text-sm text-text-secondary-700", children: "Provide your basic details and work info." }), _jsxs("form", { className: "mt-7", onSubmit: form.handleSubmit(onSubmit), children: [_jsxs(Field.Root, { invalid: !!form.formState.errors.permanentAddress, children: [_jsx(Field.Label, { children: "Permanent address" }), _jsx(Field.Input, { placeholder: "Enter your permanent address", ...form.register('permanentAddress') }), _jsx(Field.ErrorText, { children: form.formState.errors.permanentAddress?.message })] }), _jsxs(Field.Root, { className: "mt-2xl", invalid: !!form.formState.errors.address, children: [_jsx(Field.Label, { children: "Current address" }), _jsx(Field.Input, { placeholder: "Enter your current address", ...form.register('address') }), _jsx(Field.ErrorText, { children: form.formState.errors.address?.message })] }), _jsxs(Checkbox.Root, { className: "mt-md", checked: address !== '' &&
108
108
  permanentAddress !== '' &&
109
109
  address === permanentAddress, onCheckedChange: (details) => {
110
110
  if (details.checked === true) {
@@ -0,0 +1 @@
1
+ export declare function Maya(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,90 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import Image from 'next/image';
4
+ import { useRouter, useSearchParams } from 'next/navigation';
5
+ import { useEffect, useState } from 'react';
6
+ import { twMerge } from 'tailwind-merge';
7
+ import { useMayaAuth } from '../../client/hooks/useMayaAuth.js';
8
+ import { useSessionQuery } from '../../client/hooks/useSessionQuery.js';
9
+ import { useSignInMutation } from '../../client/hooks/useSignInMutation.js';
10
+ import { signOut } from '../../client/services/signOut.js';
11
+ import { toaster } from '../../client/utils/toaster.js';
12
+ import pagcorLogo from '../../images/pagcor.png';
13
+ export function Maya() {
14
+ const signIn = useSignInMutation();
15
+ const router = useRouter();
16
+ const searchParams = useSearchParams();
17
+ const [progress, setProgress] = useState(0);
18
+ const [complete, setComplete] = useState(false);
19
+ const { setOnMaya, mayaSessIdKey } = useMayaAuth();
20
+ const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
21
+ const session = useSessionQuery();
22
+ const mayaSessionId = searchParams.get('sessionId');
23
+ const init = async () => {
24
+ setProgress(25);
25
+ /* Decide when a session already exists */
26
+ if (session.data) {
27
+ /* Is there a maya session id? */
28
+ if (mayaSessionId) {
29
+ /* Is the maya session id new? */
30
+ if (localStorage.getItem(mayaSessIdKey) === mayaSessionId) {
31
+ setProgress(100);
32
+ return;
33
+ }
34
+ setProgress(50);
35
+ /* Need to remove existing session and create a new one */
36
+ await signOut();
37
+ await sleep(1000);
38
+ }
39
+ else {
40
+ /* No new maya session ID? use existing session */
41
+ setProgress(100);
42
+ return;
43
+ }
44
+ }
45
+ if (!mayaSessionId) {
46
+ setProgress(100);
47
+ throw new Error('Maya session ID is required');
48
+ }
49
+ await new Promise((resolve, reject) => {
50
+ signIn.mutate({
51
+ type: 'MAYA',
52
+ session: mayaSessionId,
53
+ }, {
54
+ onSuccess: () => {
55
+ setProgress(100);
56
+ setComplete(true);
57
+ resolve();
58
+ },
59
+ onError: (error) => {
60
+ setProgress(100);
61
+ setComplete(true);
62
+ reject(error);
63
+ },
64
+ });
65
+ });
66
+ await sleep(1000);
67
+ };
68
+ // biome-ignore lint/correctness/useExhaustiveDependencies: Only run on mount; dependencies intentionally omitted to avoid re-running effect on changes.
69
+ useEffect(() => {
70
+ const runInit = async () => {
71
+ try {
72
+ await init();
73
+ if (mayaSessionId) {
74
+ localStorage.setItem(mayaSessIdKey, mayaSessionId);
75
+ }
76
+ setOnMaya(true);
77
+ router.replace('/');
78
+ }
79
+ catch {
80
+ toaster.error({
81
+ title: 'Login Failed',
82
+ description: 'Failed to login. Please try again.',
83
+ });
84
+ }
85
+ };
86
+ runInit();
87
+ }, []);
88
+ return (_jsx("div", { className: "relative flex min-h-screen flex-col border dark:bg-[#1F242F]", children: _jsxs("div", { className: "absolute bottom-0 w-full shrink-0 bg-[#F9FAFB] p-6 dark:bg-[#161B26]", children: [_jsxs("div", { className: "mt-4", children: [_jsx("div", { className: twMerge('overflow-hidden rounded-full p-px', !complete && 'bg-[#D0D5DD] dark:bg-[#333741]', complete &&
89
+ 'bg-gradient-to-r from-[#FFDE21] via-[#FFD012] to-[#FFBF00]'), id: "progress:root", role: "progressbar", "aria-valuemin": 0, "aria-valuemax": 100, "aria-valuenow": progress, "aria-labelledby": "progress:label", children: _jsx("div", { className: "rounded-full bg-[#F2F4F7] p-px dark:bg-[#1F242F]", children: _jsx("div", { className: "relative h-4 w-full overflow-hidden rounded-full bg-white", children: _jsx("div", { className: twMerge('absolute left-0 h-full rounded-full bg-gradient-to-r from-[#FFDE21] via-[#FFBF00] to-[#FF9442] transition-all duration-150'), style: { width: `${progress}%` } }) }) }) }), _jsxs("span", { id: "progress:label", className: "mt-3 block text-center text-[#344054] text-sm dark:text-[#CECFD2]", children: [progress, "% Loading..."] })] }), _jsxs("div", { className: "mt-7 flex items-center justify-center gap-2", children: [_jsx("span", { className: "text-[#475467] text-xs dark:text-[#94969C]", children: "Officially Licensed by" }), _jsx(Image, { src: pagcorLogo, alt: "Pagcor Logo", height: 30, width: 30, className: "w-auto shrink-0" })] })] }) }));
90
+ }
@@ -0,0 +1 @@
1
+ export * from './Maya';
@@ -0,0 +1 @@
1
+ export * from './Maya.js';