@opexa/portal-components 0.0.204 → 0.0.206

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 (200) hide show
  1. package/dist/client/hooks/useCreatePisoPayDepositMutation.d.ts +4 -0
  2. package/dist/client/hooks/useCreatePisoPayDepositMutation.js +73 -0
  3. package/dist/client/hooks/useCreatePisoPayWithdrawalMutation.d.ts +4 -0
  4. package/dist/client/hooks/useCreatePisoPayWithdrawalMutation.js +28 -0
  5. package/dist/client/hooks/useGlobalStore.d.ts +2 -5
  6. package/dist/client/hooks/useGlobalStore.js +10 -3
  7. package/dist/components/Bonus/Bonus.client.js +1 -1
  8. package/dist/components/Cashback/Cashback.client.js +1 -1
  9. package/dist/components/CustomPromo/CustomPromo.js +1 -1
  10. package/dist/components/DepositWithdrawal/Deposit/Deposit.js +8 -1
  11. package/dist/components/DepositWithdrawal/Deposit/PisoPayDeposit/PisoPayDeposit.d.ts +1 -0
  12. package/dist/components/DepositWithdrawal/Deposit/PisoPayDeposit/PisoPayDeposit.js +182 -0
  13. package/dist/components/DepositWithdrawal/PaymentMethods.js +6 -0
  14. package/dist/components/DepositWithdrawal/Withdrawal/PisoPayWithdrawal/PisoPayWithdrawal.d.ts +1 -0
  15. package/dist/components/DepositWithdrawal/Withdrawal/PisoPayWithdrawal/PisoPayWithdrawal.js +151 -0
  16. package/dist/components/DepositWithdrawal/Withdrawal/Withdrawal.js +8 -1
  17. package/dist/components/DepositWithdrawal/utils.d.ts +1 -1
  18. package/dist/components/DepositWithdrawal/utils.js +1 -0
  19. package/dist/components/GameLaunch/GameLaunch.lazy.js +1 -1
  20. package/dist/components/GamesSearch/GamesSearch.js +1 -1
  21. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.module.css +184 -184
  22. package/dist/components/Jackpots/JackpotsList/JackpotsListItem.module.css +184 -184
  23. package/dist/components/KYC/AutoOpen.js +3 -8
  24. package/dist/components/KYC/BasicInformation.js +16 -12
  25. package/dist/components/KYC/IdentityVerification.js +2 -2
  26. package/dist/components/KYC/Indicator.js +3 -6
  27. package/dist/components/KYC/KYC.js +1 -2
  28. package/dist/components/KYC/KYC.lazy.d.ts +2 -1
  29. package/dist/components/KYC/KYC.lazy.js +16 -11
  30. package/dist/components/KYC/KYCReminder.d.ts +2 -0
  31. package/dist/components/KYC/KYCReminder.js +14 -0
  32. package/dist/components/KYC/KYCReminder.lazy.d.ts +4 -0
  33. package/dist/components/KYC/KYCReminder.lazy.js +30 -0
  34. package/dist/components/KYC/backup/KYCContext.d.ts +5 -1
  35. package/dist/components/KYC/index.d.ts +1 -0
  36. package/dist/components/KYC/index.js +1 -0
  37. package/dist/components/KYC/loadModels.d.ts +1 -0
  38. package/dist/components/KYC/loadModels.js +9 -0
  39. package/dist/components/KYC/utils.js +18 -18
  40. package/dist/components/Messages/MessageContext.d.ts +5 -1
  41. package/dist/components/News/News.js +1 -1
  42. package/dist/components/Promo/Promo.client.js +1 -1
  43. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.d.ts +1 -1
  44. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.js +10 -5
  45. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.js +4 -3
  46. package/dist/components/Quests/OnboardingQuest/OnboardingQuest.d.ts +1 -1
  47. package/dist/components/Quests/WageringQuest/WageringQuest.d.ts +1 -1
  48. package/dist/components/Quests/WageringQuest/WageringQuest.js +3 -2
  49. package/dist/components/Quests/WageringQuest/WageringQuestModal.js +4 -3
  50. package/dist/components/Search/Search.lazy.js +1 -1
  51. package/dist/components/SignIn/MobileNumberSignIn.js +6 -5
  52. package/dist/components/SignIn/NameAndPasswordSignIn.js +2 -0
  53. package/dist/components/SignUp/SignUpDefault/SignUpForm.js +11 -8
  54. package/dist/components/SignUp/SignUpForm.js +2 -1
  55. package/dist/components/SignUp/SignUpPagcor/CaptureIdDocument.d.ts +1 -0
  56. package/dist/components/SignUp/SignUpPagcor/CaptureIdDocument.js +198 -0
  57. package/dist/components/SignUp/SignUpPagcor/CaptureSelfie.d.ts +1 -0
  58. package/dist/components/SignUp/SignUpPagcor/CaptureSelfie.js +251 -0
  59. package/dist/components/SignUp/SignUpPagcor/ImageUploader.d.ts +10 -0
  60. package/dist/components/SignUp/SignUpPagcor/ImageUploader.js +41 -0
  61. package/dist/components/SignUp/SignUpPagcor/SignUpFormPagcor.d.ts +1 -0
  62. package/dist/components/SignUp/SignUpPagcor/SignUpFormPagcor.js +429 -0
  63. package/dist/components/SignUp/SignUpPagcor/SignUpPagcor.lazy.d.ts +13 -0
  64. package/dist/components/SignUp/SignUpPagcor/SignUpPagcor.lazy.js +26 -0
  65. package/dist/components/SignUp/SignUpPagcor/SignUpPagcorContext.d.ts +7 -0
  66. package/dist/components/SignUp/SignUpPagcor/SignUpPagcorContext.js +2 -0
  67. package/dist/components/SignUp/SignUpPagcor/useImageUploader.d.ts +11 -0
  68. package/dist/components/SignUp/SignUpPagcor/useImageUploader.js +20 -0
  69. package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarouselItem.module.css +184 -184
  70. package/dist/components/Tournaments/TournamentsList/TournamentItem.module.css +184 -184
  71. package/dist/constants/BranchCode.d.ts +4 -0
  72. package/dist/constants/BranchCode.js +42 -0
  73. package/dist/constants/PisoPayBanks.d.ts +4 -0
  74. package/dist/constants/PisoPayBanks.js +45 -0
  75. package/dist/constants/StorageKey.d.ts +0 -1
  76. package/dist/constants/StorageKey.js +0 -1
  77. package/dist/images/piso-pay.png +0 -0
  78. package/dist/services/queries.d.ts +2 -0
  79. package/dist/services/queries.js +2504 -2436
  80. package/dist/services/wallet.d.ts +27 -0
  81. package/dist/services/wallet.js +26 -1
  82. package/dist/styles/theme.css +693 -693
  83. package/dist/types/index.d.ts +2 -0
  84. package/dist/utils/mutationKeys.d.ts +2 -0
  85. package/dist/utils/mutationKeys.js +8 -0
  86. package/dist/utils/resizeImageSize.d.ts +1 -0
  87. package/dist/utils/resizeImageSize.js +5 -0
  88. package/package.json +164 -164
  89. package/dist/client/hooks/index.d.ts +0 -65
  90. package/dist/client/hooks/index.js +0 -65
  91. package/dist/client/services/index.d.ts +0 -4
  92. package/dist/client/services/index.js +0 -4
  93. package/dist/client/utils/index.d.ts +0 -3
  94. package/dist/client/utils/index.js +0 -3
  95. package/dist/components/Empty.d.ts +0 -10
  96. package/dist/components/Empty.js +0 -7
  97. package/dist/components/Games/GameContext.d.ts +0 -2
  98. package/dist/components/Games/GameContext.js +0 -2
  99. package/dist/components/InfiniteScroll.d.ts +0 -10
  100. package/dist/components/InfiniteScroll.js +0 -25
  101. package/dist/components/JackpotCounter/JackpotCounter.client.d.ts +0 -2
  102. package/dist/components/JackpotCounter/JackpotCounter.client.js +0 -66
  103. package/dist/components/JackpotCounter/JackpotCounter.d.ts +0 -17
  104. package/dist/components/JackpotCounter/JackpotCounter.js +0 -21
  105. package/dist/components/JackpotCounter/JackpotCounterItem.d.ts +0 -18
  106. package/dist/components/JackpotCounter/JackpotCounterItem.js +0 -109
  107. package/dist/components/JackpotCounter/JackpotCounterItem.module.css +0 -184
  108. package/dist/components/JackpotCounter/index.d.ts +0 -1
  109. package/dist/components/JackpotCounter/index.js +0 -1
  110. package/dist/components/Jackpots/JackpotDesktop.d.ts +0 -1
  111. package/dist/components/Jackpots/JackpotDesktop.js +0 -45
  112. package/dist/components/Jackpots/JackpotGameProviders.d.ts +0 -5
  113. package/dist/components/Jackpots/JackpotGameProviders.js +0 -41
  114. package/dist/components/Jackpots/JackpotItemDesktop.d.ts +0 -9
  115. package/dist/components/Jackpots/JackpotItemDesktop.js +0 -43
  116. package/dist/components/Jackpots/JackpotItemMobile.d.ts +0 -9
  117. package/dist/components/Jackpots/JackpotItemMobile.js +0 -44
  118. package/dist/components/Jackpots/JackpotMobile.d.ts +0 -1
  119. package/dist/components/Jackpots/JackpotMobile.js +0 -46
  120. package/dist/components/Jackpots/JackpotRules.d.ts +0 -5
  121. package/dist/components/Jackpots/JackpotRules.js +0 -11
  122. package/dist/components/Jackpots/Jackpots.client.d.ts +0 -2
  123. package/dist/components/Jackpots/Jackpots.client.js +0 -29
  124. package/dist/components/Jackpots/JackpotsContext.d.ts +0 -4
  125. package/dist/components/Jackpots/JackpotsContext.js +0 -3
  126. package/dist/components/Jackpots/useJackpotData.d.ts +0 -14
  127. package/dist/components/Jackpots/useJackpotData.js +0 -93
  128. package/dist/components/Jackpots/useJackpotItemData.d.ts +0 -20
  129. package/dist/components/Jackpots/useJackpotItemData.js +0 -87
  130. package/dist/components/KYC/Header.d.ts +0 -1
  131. package/dist/components/KYC/Header.js +0 -6
  132. package/dist/components/KYC/Step1.d.ts +0 -1
  133. package/dist/components/KYC/Step1.js +0 -12
  134. package/dist/components/KYC/Step2.d.ts +0 -1
  135. package/dist/components/KYC/Step2.js +0 -12
  136. package/dist/components/KYC/Step3.d.ts +0 -1
  137. package/dist/components/KYC/Step3.js +0 -11
  138. package/dist/components/KYC/Step4.d.ts +0 -1
  139. package/dist/components/KYC/Step4.js +0 -6
  140. package/dist/components/Messages/MessageItem.d.ts +0 -4
  141. package/dist/components/Messages/MessageItem.js +0 -34
  142. package/dist/components/TournamentCounter/TournamentCounter.client.d.ts +0 -2
  143. package/dist/components/TournamentCounter/TournamentCounter.client.js +0 -50
  144. package/dist/components/TournamentCounter/TournamentCounter.d.ts +0 -8
  145. package/dist/components/TournamentCounter/TournamentCounter.js +0 -21
  146. package/dist/components/TournamentCounter/TournamentCounterItem.d.ts +0 -8
  147. package/dist/components/TournamentCounter/TournamentCounterItem.js +0 -106
  148. package/dist/components/TournamentCounter/index.d.ts +0 -1
  149. package/dist/components/TournamentCounter/index.js +0 -1
  150. package/dist/components/Tournaments/TournamentDesktop.d.ts +0 -1
  151. package/dist/components/Tournaments/TournamentDesktop.js +0 -57
  152. package/dist/components/Tournaments/TournamentGameProviders.d.ts +0 -5
  153. package/dist/components/Tournaments/TournamentGameProviders.js +0 -38
  154. package/dist/components/Tournaments/TournamentItemDesktop.d.ts +0 -7
  155. package/dist/components/Tournaments/TournamentItemDesktop.js +0 -56
  156. package/dist/components/Tournaments/TournamentItemMobile.d.ts +0 -7
  157. package/dist/components/Tournaments/TournamentItemMobile.js +0 -54
  158. package/dist/components/Tournaments/TournamentMobile.d.ts +0 -1
  159. package/dist/components/Tournaments/TournamentMobile.js +0 -55
  160. package/dist/components/Tournaments/TournamentRules.d.ts +0 -5
  161. package/dist/components/Tournaments/TournamentRules.js +0 -11
  162. package/dist/components/Tournaments/Tournaments.client.d.ts +0 -2
  163. package/dist/components/Tournaments/Tournaments.client.js +0 -20
  164. package/dist/components/Tournaments/TournamentsContext.d.ts +0 -4
  165. package/dist/components/Tournaments/TournamentsContext.js +0 -3
  166. package/dist/components/Tournaments/useTournamentData.d.ts +0 -10
  167. package/dist/components/Tournaments/useTournamentData.js +0 -72
  168. package/dist/components/Tournaments/useTournamentItemData.d.ts +0 -16
  169. package/dist/components/Tournaments/useTournamentItemData.js +0 -64
  170. package/dist/components/index.d.ts +0 -33
  171. package/dist/components/index.js +0 -33
  172. package/dist/constants/envVars.d.ts +0 -5
  173. package/dist/constants/envVars.js +0 -28
  174. package/dist/constants/gameProviders.d.ts +0 -5
  175. package/dist/constants/gameProviders.js +0 -362
  176. package/dist/constants/gameTypes.d.ts +0 -4
  177. package/dist/constants/gameTypes.js +0 -64
  178. package/dist/constants/headerKeys.d.ts +0 -1
  179. package/dist/constants/headerKeys.js +0 -1
  180. package/dist/constants/secretQuestions.d.ts +0 -3
  181. package/dist/constants/secretQuestions.js +0 -24
  182. package/dist/constants/storageKeys.d.ts +0 -2
  183. package/dist/constants/storageKeys.js +0 -2
  184. package/dist/icons/index.d.ts +0 -65
  185. package/dist/icons/index.js +0 -65
  186. package/dist/images/hacksaw-gaming.png +0 -0
  187. package/dist/server/services/index.d.ts +0 -4
  188. package/dist/server/services/index.js +0 -4
  189. package/dist/server/utils/index.d.ts +0 -29
  190. package/dist/server/utils/index.js +0 -29
  191. package/dist/ui/Presence.d.ts +0 -2
  192. package/dist/ui/Presence.js +0 -7
  193. package/dist/ui/Prose.d.ts +0 -2
  194. package/dist/ui/Prose.js +0 -5
  195. package/dist/ui/index.d.ts +0 -26
  196. package/dist/ui/index.js +0 -26
  197. package/dist/utils/index.d.ts +0 -17
  198. package/dist/utils/index.js +0 -17
  199. package/dist/utils/isMobile.d.ts +0 -5
  200. package/dist/utils/isMobile.js +0 -9
@@ -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
+ }
@@ -22,17 +22,12 @@ export function AutoOpen() {
22
22
  : isUploadCompleted
23
23
  ? 3
24
24
  : 2;
25
- const shouldOpen = !account?.realName ||
26
- !account?.birthDay ||
27
- !verification ||
28
- verification.status === 'REJECTED' ||
29
- verification.status === 'UNVERIFIED';
25
+ const shouldOpen = !isBasicInfoCompleted || !isUploadCompleted || isRejected;
30
26
  useEffect(() => {
31
27
  if (session?.status == 'authenticated' &&
32
- !kycStore['~touched'] &&
33
28
  shouldOpen &&
34
- localStorage.getItem(KYC_PROMPT_LOCALSTORAGE_KEY) == null) {
35
- kycStore.setOpen(true);
29
+ localStorage.getItem(KYC_PROMPT_LOCALSTORAGE_KEY) === null) {
30
+ kycStore.setKycReminder(true);
36
31
  return;
37
32
  }
38
33
  }, [kycStore, session?.status, shouldOpen]);
@@ -54,7 +54,21 @@ export function BasicInformation() {
54
54
  });
55
55
  const accountQuery = useAccountQuery();
56
56
  const account = accountQuery.data;
57
- const completed = account != null && account.realName != null && account.birthDay != null;
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]);
58
72
  const updateAccountMutation = useUpdateAccountMutation({
59
73
  onError(error) {
60
74
  toaster.error({
@@ -70,16 +84,6 @@ export function BasicInformation() {
70
84
  });
71
85
  },
72
86
  });
73
- useEffect(() => {
74
- if (account) {
75
- form.reset({
76
- realName: account.realName ?? '',
77
- birthDay: account.birthDay
78
- ? format(account.birthDay, 'yyyy-MM-dd')
79
- : '',
80
- });
81
- }
82
- }, [account, form, kyc]);
83
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) => {
84
88
  invariant(account);
85
89
  const input = omitBy({
@@ -93,5 +97,5 @@ export function BasicInformation() {
93
97
  updateAccountMutation.mutate(input);
94
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 ||
95
99
  updateAccountMutation.isPending ||
96
- completed, children: completed ? (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", className: "size-5", children: [_jsx("path", { fill: "currentColor", d: "M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z", opacity: ".25" }), _jsx("path", { fill: "currentColor", d: "M10.14,1.16a11,11,0,0,0-9,8.92A1.59,1.59,0,0,0,2.46,12,1.52,1.52,0,0,0,4.11,10.7a8,8,0,0,1,6.66-6.61A1.42,1.42,0,0,0,12,2.69h0A1.57,1.57,0,0,0,10.14,1.16Z", children: _jsx("animateTransform", { attributeName: "transform", dur: "0.75s", repeatCount: "indefinite", type: "rotate", values: "0 12 12;360 12 12" }) })] })) : ('Continue') })] })] }));
100
+ stepCompleted, children: "Continue" })] })] }));
97
101
  }
@@ -83,7 +83,7 @@ export function IdentityVerification() {
83
83
  placeOfBirth: '',
84
84
  sourceOfIncome: '',
85
85
  });
86
- globalStore.kyc.setStep(3);
86
+ kyc.setStep(3);
87
87
  }
88
88
  else {
89
89
  updateMemberVerification({
@@ -93,7 +93,7 @@ export function IdentityVerification() {
93
93
  idFrontImage: values.idFrontImage,
94
94
  },
95
95
  });
96
- globalStore.kyc.setStep(3);
96
+ kyc.setStep(3);
97
97
  }
98
98
  }
99
99
  useEffect(() => {
@@ -1,11 +1,8 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { noop } from 'lodash-es';
3
- import { useShallow } from 'zustand/shallow';
4
- import { useGlobalStore } from '../../client/hooks/useGlobalStore.js';
5
3
  import { Progress } from '../../ui/Progress/index.js';
4
+ import { useKYCContext } from './KYCContext.js';
6
5
  export function Indicator() {
7
- const globalStore = useGlobalStore(useShallow((ctx) => ({
8
- kyc: ctx.kyc,
9
- })));
10
- return (_jsxs("div", { className: "flex items-center justify-center gap-1.5 py-3", children: [_jsx(Progress.Root, { className: "w-10 shrink-0", value: globalStore.kyc.step > 1 ? 100 : 0, onValueChange: noop, children: _jsx(Progress.Track, { className: "bg-bg-primary-hover", children: _jsx(Progress.Range, {}) }) }), _jsx(Progress.Root, { className: "w-10 shrink-0", value: globalStore.kyc.step > 2 ? 100 : 0, onValueChange: noop, children: _jsx(Progress.Track, { className: "bg-bg-primary-hover", children: _jsx(Progress.Range, {}) }) }), _jsx(Progress.Root, { className: "w-10 shrink-0", value: globalStore.kyc.step === 3 ? 100 : 0, onValueChange: noop, children: _jsx(Progress.Track, { className: "bg-bg-primary-hover", children: _jsx(Progress.Range, {}) }) })] }));
6
+ const kyc = useKYCContext();
7
+ return (_jsxs("div", { className: "flex items-center justify-center gap-1.5 py-3", children: [_jsx(Progress.Root, { className: "w-10 shrink-0", value: kyc.step > 1 ? 100 : 0, onValueChange: noop, children: _jsx(Progress.Track, { className: "bg-bg-primary-hover", children: _jsx(Progress.Range, {}) }) }), _jsx(Progress.Root, { className: "w-10 shrink-0", value: kyc.step > 2 ? 100 : 0, onValueChange: noop, children: _jsx(Progress.Track, { className: "bg-bg-primary-hover", children: _jsx(Progress.Range, {}) }) }), _jsx(Progress.Root, { className: "w-10 shrink-0", value: kyc.step === 3 ? 100 : 0, onValueChange: noop, children: _jsx(Progress.Track, { className: "bg-bg-primary-hover", children: _jsx(Progress.Range, {}) }) })] }));
11
8
  }
@@ -4,12 +4,11 @@ import dynamic from 'next/dynamic';
4
4
  import Script from 'next/script';
5
5
  import { useShallow } from 'zustand/shallow';
6
6
  import { useGlobalStore } from '../../client/hooks/useGlobalStore.js';
7
- import { AutoOpen } from './AutoOpen.js';
8
7
  const Component = dynamic(() => import('./KYC.lazy.js').then((m) => m.KYC), {
9
8
  ssr: false,
10
9
  loading: () => null,
11
10
  });
12
11
  export function KYC(props) {
13
12
  const touched = useGlobalStore(useShallow((ctx) => ctx.kyc['~touched']));
14
- return (_jsxs(_Fragment, { children: [touched && _jsx(Component, { ...props }), _jsx(AutoOpen, {}), _jsx(Script, { src: "https://docs.opencv.org/4.7.0/opencv.js", defer: true }), _jsx(Script, { src: "https://cdn.jsdelivr.net/gh/ColonelParrot/jscanify@master/src/jscanify.min.js", defer: true })] }));
13
+ return (_jsxs(_Fragment, { children: [touched && _jsx(Component, { ...props }), _jsx(Script, { src: "https://docs.opencv.org/4.7.0/opencv.js", defer: true }), _jsx(Script, { src: "https://cdn.jsdelivr.net/gh/ColonelParrot/jscanify@master/src/jscanify.min.js", defer: true })] }));
15
14
  }
@@ -1,5 +1,6 @@
1
1
  import type { ImageProps } from 'next/image';
2
- export interface KYCProps {
2
+ import { type KYCReminderProps } from './KYCReminder.lazy';
3
+ export interface KYCProps extends KYCReminderProps {
3
4
  logo: ImageProps['src'];
4
5
  }
5
6
  export declare function KYC(props: KYCProps): import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,9 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import Image from 'next/image';
3
3
  import { useShallow } from 'zustand/shallow';
4
+ import { useAccountQuery } from '../../client/hooks/useAccountQuery.js';
4
5
  import { useGlobalStore } from '../../client/hooks/useGlobalStore.js';
5
- import { KYC_PROMPT_LOCALSTORAGE_KEY } from '../../constants/index.js';
6
+ import { useMemberVerificationQuery } from '../../client/hooks/useMemberVerificationQuery.js';
6
7
  import { XIcon } from '../../icons/XIcon.js';
7
8
  import { Dialog } from '../../ui/Dialog/index.js';
8
9
  import { Portal } from '../../ui/Portal/index.js';
@@ -12,17 +13,21 @@ import { CaptureSelfie } from './CaptureSelfie.js';
12
13
  import { IdentityVerification } from './IdentityVerification.js';
13
14
  import { Indicator } from './Indicator.js';
14
15
  import { KYCContext } from './KYCContext.js';
16
+ import { KYCReminder } from './KYCReminder.lazy.js';
15
17
  import { PersonalInformation } from './PersonalInformation.js';
16
18
  import { useKYC } from './useKYC.js';
17
19
  export function KYC(props) {
18
- const globalStore = useGlobalStore(useShallow((ctx) => ({
19
- kyc: ctx.kyc,
20
- })));
20
+ const globalStore = useGlobalStore(useShallow((ctx) => ({ kyc: ctx.kyc })));
21
21
  const kyc = useKYC();
22
- return (_jsx(KYCContext, { value: kyc, children: _jsx(Dialog.Root, { open: globalStore.kyc.open, onOpenChange: (details) => {
23
- globalStore.kyc.setOpen(details.open);
24
- if (!details.open) {
25
- localStorage.setItem(KYC_PROMPT_LOCALSTORAGE_KEY, '');
26
- }
27
- }, lazyMount: true, unmountOnExit: true, onExitComplete: kyc.reset, closeOnEscape: true, closeOnInteractOutside: false, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, {}), _jsx(Dialog.Positioner, { children: _jsxs(Dialog.Content, { className: "bg-bg-primary-alt lg:min-h-auto mx-auto min-h-full w-full lg:w-fit", children: [kyc.capturing === 'SELFIE' && _jsx(CaptureSelfie, {}), kyc.capturing === 'ID_DOCUMENT' && _jsx(CaptureIdDocument, {}), !kyc.capturing && (_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, {}), globalStore.kyc.step === 1 && _jsx(BasicInformation, {}), globalStore.kyc.step === 2 && _jsx(IdentityVerification, {}), globalStore.kyc.step === 3 && _jsx(PersonalInformation, {})] }))] }) })] }) }) }));
22
+ const { data: account } = useAccountQuery();
23
+ const { data: verification } = useMemberVerificationQuery();
24
+ const isBasicInfoCompleted = account?.realName !== null && account?.birthDay !== null;
25
+ const isUploadCompleted = verification &&
26
+ verification.idFrontImage !== null &&
27
+ verification.selfieImage !== null;
28
+ const isRejected = Boolean(verification?.status === 'REJECTED');
29
+ const hasMissingData = !isBasicInfoCompleted || !isUploadCompleted || isRejected;
30
+ return (_jsxs(_Fragment, { children: [_jsx(KYCContext, { value: kyc, children: _jsx(Dialog.Root, { open: globalStore.kyc.open && hasMissingData, onOpenChange: (details) => {
31
+ globalStore.kyc.setOpen(details.open);
32
+ }, lazyMount: true, unmountOnExit: true, closeOnEscape: false, closeOnInteractOutside: false, onExitComplete: kyc.reset, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, {}), _jsx(Dialog.Positioner, { children: _jsxs(Dialog.Content, { className: "bg-bg-primary-alt lg:min-h-auto mx-auto min-h-full w-full lg:w-fit", children: [kyc.capturing === 'SELFIE' && _jsx(CaptureSelfie, {}), kyc.capturing === 'ID_DOCUMENT' && _jsx(CaptureIdDocument, {}), !kyc.capturing && (_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 })] }));
28
33
  }
@@ -0,0 +1,2 @@
1
+ import type { KYCReminderProps } from './KYCReminder.lazy';
2
+ export declare function KYCReminder(props: KYCReminderProps): import("react/jsx-runtime").JSX.Element | undefined;
@@ -0,0 +1,14 @@
1
+ 'use client';
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import dynamic from 'next/dynamic';
4
+ import { useShallow } from 'zustand/shallow';
5
+ import { useGlobalStore } from '../../client/hooks/useGlobalStore.js';
6
+ const Component = dynamic(() => import('./KYCReminder.lazy.js').then((m) => m.KYCReminder), {
7
+ ssr: false,
8
+ loading: () => null,
9
+ });
10
+ export function KYCReminder(props) {
11
+ const touched = useGlobalStore(useShallow((ctx) => ctx.kycReminder['~touched']));
12
+ if (touched)
13
+ return _jsx(Component, { ...props });
14
+ }
@@ -0,0 +1,4 @@
1
+ export interface KYCReminderProps {
2
+ siteName: string;
3
+ }
4
+ export declare function KYCReminder(props: KYCReminderProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,30 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
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 { FileCheck02Icon } from '../../icons/FileCheck02Icon.js';
7
+ import { XIcon } from '../../icons/XIcon.js';
8
+ import { Button } from '../../ui/Button/index.js';
9
+ import { Dialog } from '../../ui/Dialog/index.js';
10
+ import { Portal } from '../../ui/Portal/index.js';
11
+ export function KYCReminder(props) {
12
+ const globalStore = useGlobalStore(useShallow((ctx) => ({
13
+ kyc: ctx.kyc,
14
+ kycReminder: ctx.kycReminder,
15
+ })));
16
+ const { data: account } = useAccountQuery();
17
+ const { data: verification } = useMemberVerificationQuery();
18
+ const isBasicInfoCompleted = account?.realName !== null && account?.birthDay !== null;
19
+ const isUploadCompleted = verification &&
20
+ verification.idFrontImage !== null &&
21
+ verification.selfieImage !== null;
22
+ const isRejected = Boolean(verification?.status === 'REJECTED');
23
+ const hasMissingData = !isBasicInfoCompleted || !isUploadCompleted || isRejected;
24
+ return (_jsx(Dialog.Root, { open: globalStore.kycReminder.open && hasMissingData, onOpenChange: (details) => {
25
+ globalStore.kycReminder.setOpen(details.open);
26
+ }, closeOnEscape: false, closeOnInteractOutside: false, lazyMount: true, unmountOnExit: true, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, { className: "!z-[calc(var(--z-dialog)+3)]" }), _jsx(Dialog.Positioner, { className: "!z-[calc(var(--z-dialog)+4)] flex items-center justify-center", children: _jsxs(Dialog.Content, { className: "bg-bg-primary-alt mx-auto h-fit max-w-[400px]", children: [_jsx(Dialog.CloseTrigger, { children: _jsx(XIcon, {}) }), _jsxs("div", { className: "p-3xl text-center", children: [_jsx("div", { className: "bg-bg-warning-secondary mx-auto w-fit rounded-full p-2", children: _jsx(FileCheck02Icon, { className: "text-[#FEDF89]" }) }), _jsx("h2", { className: "text-lg text-white", children: "Personal Verification" }), _jsxs("p", { className: "text-text-tertiary-600 mt-xs text-sm", children: ["All new users are required to complete identity verification to access the full range of ", props.siteName, " services, including withdrawals."] }), _jsx(Dialog.Context, { children: (api) => (_jsxs("div", { className: "mt-3xl space-y-lg", children: [_jsx(Button, { onClick: () => {
27
+ api.setOpen(false);
28
+ globalStore.kyc.setOpen(true);
29
+ }, children: "Verify Now" }), _jsx(Button, { type: "button", variant: "outline", fullWidth: true, onClick: () => api.setOpen(false), children: "Do it later" })] })) })] })] }) })] }) }));
30
+ }
@@ -1,2 +1,6 @@
1
1
  import type { UseKYCReturn } from './useKYC';
2
- export declare const KYCContext: import("react").Context<UseKYCReturn>, useKYCContext: () => UseKYCReturn;
2
+ export declare const KYCContext: (props: {
3
+ value: UseKYCReturn;
4
+ } & {
5
+ children?: import("react").ReactNode | undefined;
6
+ }) => React.ReactNode, useKYCContext: () => UseKYCReturn;
@@ -1,2 +1,3 @@
1
1
  export * from './KYC';
2
+ export * from './KYCReminder';
2
3
  export * from './KYCTrigger';
@@ -1,2 +1,3 @@
1
1
  export * from './KYC.js';
2
+ export * from './KYCReminder.js';
2
3
  export * from './KYCTrigger.js';
@@ -0,0 +1 @@
1
+ export declare function loadFaceApiModels(): Promise<void>;
@@ -0,0 +1,9 @@
1
+ import * as faceapi from 'face-api.js';
2
+ export async function loadFaceApiModels() {
3
+ const MODEL_URL = '/models';
4
+ await Promise.all([
5
+ faceapi.nets.tinyFaceDetector.loadFromUri(MODEL_URL),
6
+ faceapi.nets.faceLandmark68Net.loadFromUri(MODEL_URL),
7
+ faceapi.nets.faceRecognitionNet.loadFromUri(MODEL_URL),
8
+ ]);
9
+ }