@opexa/portal-components 0.0.498 → 0.0.499

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 (165) hide show
  1. package/dist/components/Banner/Banner.client.d.ts +12 -0
  2. package/dist/components/Banner/Banner.client.js +49 -0
  3. package/dist/components/DigitainLauncher/Loading.js +1 -1
  4. package/dist/components/ForgotPassword/ForgotPasswordForm.js +1 -1
  5. package/dist/components/Jackpots/Jackpots.module.css +184 -184
  6. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.module.css +184 -184
  7. package/dist/components/Jackpots/JackpotsList/JackpotsListItem.module.css +184 -184
  8. package/dist/components/KYC/BasicInformation.js +1 -1
  9. package/dist/components/KYC/IdentityVerification.js +1 -1
  10. package/dist/components/KYC/KYC.lazy.js +1 -1
  11. package/dist/components/KYC/KYCDefault/IdentityVerification.js +3 -5
  12. package/dist/components/KYC/KYCDefault/Indicator.js +2 -1
  13. package/dist/components/KYC/KYCDefault/KYCDefault.js +10 -8
  14. package/dist/components/KYC/KYCReminder.lazy.js +4 -4
  15. package/dist/components/KYC/KycOpenOnHomeMount.js +18 -25
  16. package/dist/components/KYC/PersonalInformation.js +1 -1
  17. package/dist/components/PortalProvider/CXDTokenObserver.js +11 -11
  18. package/dist/components/SignIn/MobileNumberSignIn.js +1 -1
  19. package/dist/components/SignUp/SignUpDefault/SignUpDefaultForm.js +1 -1
  20. package/dist/components/SignUp/SignUpKYC/SignUpKYCForm.js +1 -1
  21. package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarouselItem.module.css +184 -184
  22. package/dist/components/Tournaments/TournamentsList/TournamentItem.module.css +184 -184
  23. package/dist/services/queries.js +2755 -2755
  24. package/dist/styles/theme.css +731 -731
  25. package/dist/ui/Carousel/Carousel.d.ts +45 -45
  26. package/dist/ui/Carousel/carousel.recipe.d.ts +5 -5
  27. package/dist/ui/DatePicker/DatePicker.d.ts +72 -72
  28. package/dist/ui/DatePicker/datePicker.recipe.d.ts +3 -3
  29. package/dist/ui/Menu/Menu.d.ts +198 -198
  30. package/dist/ui/Menu/menu.recipe.d.ts +11 -11
  31. package/package.json +162 -162
  32. package/dist/components/Disclaimer/ResponsibleGaming.d.ts +0 -10
  33. package/dist/components/Disclaimer/ResponsibleGaming.js +0 -13
  34. package/dist/components/Disclaimer/TermsOfUse.d.ts +0 -11
  35. package/dist/components/Disclaimer/TermsOfUse.js +0 -13
  36. package/dist/components/FeatureFlag/FeatureFlag.d.ts +0 -1
  37. package/dist/components/FeatureFlag/FeatureFlag.js +0 -29
  38. package/dist/components/FeatureFlag/index.d.ts +0 -1
  39. package/dist/components/FeatureFlag/index.js +0 -1
  40. package/dist/components/KYC/AutoOpen.d.ts +0 -1
  41. package/dist/components/KYC/AutoOpen.js +0 -40
  42. package/dist/components/KYC/CaptureIdDocument.d.ts +0 -1
  43. package/dist/components/KYC/CaptureIdDocument.js +0 -219
  44. package/dist/components/KYC/CaptureSelfie.d.ts +0 -1
  45. package/dist/components/KYC/CaptureSelfie.js +0 -285
  46. package/dist/components/KYC/DisplayImage.d.ts +0 -5
  47. package/dist/components/KYC/DisplayImage.js +0 -8
  48. package/dist/components/KYC/FileUpload.d.ts +0 -10
  49. package/dist/components/KYC/FileUpload.js +0 -72
  50. package/dist/components/KYC/NoCameraError.d.ts +0 -7
  51. package/dist/components/KYC/NoCameraError.js +0 -6
  52. package/dist/components/KYC/PersonOverlayDesktop.d.ts +0 -7
  53. package/dist/components/KYC/PersonOverlayDesktop.js +0 -9
  54. package/dist/components/KYC/backup/Header.d.ts +0 -1
  55. package/dist/components/KYC/backup/Header.js +0 -8
  56. package/dist/components/KYC/backup/Indicator.d.ts +0 -1
  57. package/dist/components/KYC/backup/Indicator.js +0 -9
  58. package/dist/components/KYC/backup/KYC.d.ts +0 -1
  59. package/dist/components/KYC/backup/KYC.js +0 -14
  60. package/dist/components/KYC/backup/KYC.lazy.d.ts +0 -1
  61. package/dist/components/KYC/backup/KYC.lazy.js +0 -26
  62. package/dist/components/KYC/backup/KYCContext.d.ts +0 -6
  63. package/dist/components/KYC/backup/KYCContext.js +0 -2
  64. package/dist/components/KYC/backup/Step1.d.ts +0 -1
  65. package/dist/components/KYC/backup/Step1.js +0 -13
  66. package/dist/components/KYC/backup/Step2.d.ts +0 -1
  67. package/dist/components/KYC/backup/Step2.js +0 -13
  68. package/dist/components/KYC/backup/Step3.d.ts +0 -1
  69. package/dist/components/KYC/backup/Step3.js +0 -13
  70. package/dist/components/KYC/backup/Step4.d.ts +0 -1
  71. package/dist/components/KYC/backup/Step4.js +0 -7
  72. package/dist/components/KYC/backup/useKYC.d.ts +0 -10
  73. package/dist/components/KYC/backup/useKYC.js +0 -8
  74. package/dist/components/KYC/loadModels.d.ts +0 -1
  75. package/dist/components/KYC/loadModels.js +0 -9
  76. package/dist/components/KYC/utils.d.ts +0 -9
  77. package/dist/components/KYC/utils.js +0 -79
  78. package/dist/components/Messages/Message.d.ts +0 -1
  79. package/dist/components/Messages/Message.js +0 -35
  80. package/dist/components/Messages/MessageContext.d.ts +0 -6
  81. package/dist/components/Messages/MessageContext.js +0 -2
  82. package/dist/components/Messages/MessagePopup.d.ts +0 -1
  83. package/dist/components/Messages/MessagePopup.js +0 -20
  84. package/dist/components/Messages/MessageTrigger.d.ts +0 -8
  85. package/dist/components/Messages/MessageTrigger.js +0 -19
  86. package/dist/components/Quests/CountdownTimer.d.ts +0 -15
  87. package/dist/components/Quests/CountdownTimer.js +0 -33
  88. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.d.ts +0 -4
  89. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.js +0 -78
  90. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.d.ts +0 -8
  91. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.js +0 -9
  92. package/dist/components/Quests/OnboardingQuest/OnboardingQuest.d.ts +0 -4
  93. package/dist/components/Quests/OnboardingQuest/OnboardingQuest.js +0 -4
  94. package/dist/components/Quests/WageringQuest/WageringQuest.d.ts +0 -4
  95. package/dist/components/Quests/WageringQuest/WageringQuest.js +0 -20
  96. package/dist/components/Quests/WageringQuest/WageringQuestModal.d.ts +0 -9
  97. package/dist/components/Quests/WageringQuest/WageringQuestModal.js +0 -9
  98. package/dist/components/SignUp/SignUp.lazy.d.ts +0 -12
  99. package/dist/components/SignUp/SignUp.lazy.js +0 -18
  100. package/dist/components/SignUp/SignUpContext.d.ts +0 -6
  101. package/dist/components/SignUp/SignUpContext.js +0 -2
  102. package/dist/components/SignUp/SignUpDefault/SignUp.lazy.d.ts +0 -17
  103. package/dist/components/SignUp/SignUpDefault/SignUp.lazy.js +0 -18
  104. package/dist/components/SignUp/SignUpDefault/SignUpContext.d.ts +0 -6
  105. package/dist/components/SignUp/SignUpDefault/SignUpContext.js +0 -2
  106. package/dist/components/SignUp/SignUpDefault/SignUpForm.d.ts +0 -1
  107. package/dist/components/SignUp/SignUpDefault/SignUpForm.js +0 -310
  108. package/dist/components/SignUp/SignUpForm.d.ts +0 -1
  109. package/dist/components/SignUp/SignUpForm.js +0 -284
  110. package/dist/components/SignUp/SignUpKYC/CaptureIdDocument.d.ts +0 -1
  111. package/dist/components/SignUp/SignUpKYC/CaptureIdDocument.js +0 -198
  112. package/dist/components/SignUp/SignUpKYC/CaptureSelfie.d.ts +0 -1
  113. package/dist/components/SignUp/SignUpKYC/CaptureSelfie.js +0 -251
  114. package/dist/components/SignUp/SignUpKYC/ImageUploader.d.ts +0 -10
  115. package/dist/components/SignUp/SignUpKYC/ImageUploader.js +0 -42
  116. package/dist/components/SignUp/SignUpKYC/PersonOverlayDesktop.d.ts +0 -7
  117. package/dist/components/SignUp/SignUpKYC/PersonOverlayDesktop.js +0 -9
  118. package/dist/components/SignUp/SignUpKYC/SignUpFormKYC.d.ts +0 -1
  119. package/dist/components/SignUp/SignUpKYC/SignUpFormKYC.js +0 -464
  120. package/dist/components/SignUp/SignUpKYC/useImageUploader.d.ts +0 -11
  121. package/dist/components/SignUp/SignUpKYC/useImageUploader.js +0 -20
  122. package/dist/components/SignUp/SignUpKYC/utils.d.ts +0 -9
  123. package/dist/components/SignUp/SignUpKYC/utils.js +0 -79
  124. package/dist/components/SignUp/SignUpPagcor/CaptureIdDocument.d.ts +0 -1
  125. package/dist/components/SignUp/SignUpPagcor/CaptureIdDocument.js +0 -198
  126. package/dist/components/SignUp/SignUpPagcor/CaptureSelfie.d.ts +0 -1
  127. package/dist/components/SignUp/SignUpPagcor/CaptureSelfie.js +0 -251
  128. package/dist/components/SignUp/SignUpPagcor/ImageUploader.d.ts +0 -10
  129. package/dist/components/SignUp/SignUpPagcor/ImageUploader.js +0 -41
  130. package/dist/components/SignUp/SignUpPagcor/SignUpFormPagcor.d.ts +0 -1
  131. package/dist/components/SignUp/SignUpPagcor/SignUpFormPagcor.js +0 -429
  132. package/dist/components/SignUp/SignUpPagcor/SignUpPagcor.lazy.d.ts +0 -13
  133. package/dist/components/SignUp/SignUpPagcor/SignUpPagcor.lazy.js +0 -26
  134. package/dist/components/SignUp/SignUpPagcor/SignUpPagcorContext.d.ts +0 -7
  135. package/dist/components/SignUp/SignUpPagcor/SignUpPagcorContext.js +0 -2
  136. package/dist/components/SignUp/SignUpPagcor/useImageUploader.d.ts +0 -11
  137. package/dist/components/SignUp/SignUpPagcor/useImageUploader.js +0 -20
  138. package/dist/components/shared/IdDocumentField.client.d.ts +0 -25
  139. package/dist/components/shared/IdDocumentField.client.js +0 -204
  140. package/dist/components/shared/IdDocumentField.d.ts +0 -2
  141. package/dist/components/shared/IdDocumentField.js +0 -11
  142. package/dist/components/shared/SelfieField.client.d.ts +0 -20
  143. package/dist/components/shared/SelfieField.client.js +0 -327
  144. package/dist/components/shared/SelfieField.d.ts +0 -2
  145. package/dist/components/shared/SelfieField.js +0 -11
  146. package/dist/constants/BranchCode.d.ts +0 -4
  147. package/dist/constants/BranchCode.js +0 -42
  148. package/dist/handlers/postTransformIdFrontImage.d.ts +0 -3
  149. package/dist/handlers/postTransformIdFrontImage.js +0 -67
  150. package/dist/handlers/postTransformSelfieImage.d.ts +0 -3
  151. package/dist/handlers/postTransformSelfieImage.js +0 -71
  152. package/dist/handlers.d.ts +0 -43
  153. package/dist/handlers.js +0 -297
  154. package/dist/icons/BellRingIcon.d.ts +0 -2
  155. package/dist/icons/BellRingIcon.js +0 -4
  156. package/dist/utils/dataUrlToBlob.d.ts +0 -1
  157. package/dist/utils/dataUrlToBlob.js +0 -11
  158. package/dist/utils/gamesAvailable3pmTo3am.d.ts +0 -1
  159. package/dist/utils/gamesAvailable3pmTo3am.js +0 -1
  160. package/dist/utils/getGameName.d.ts +0 -1
  161. package/dist/utils/getGameName.js +0 -6
  162. package/dist/utils/isBetween3amAnd3pm.d.ts +0 -1
  163. package/dist/utils/isBetween3amAnd3pm.js +0 -5
  164. package/dist/utils/resizeImageSize.d.ts +0 -2
  165. 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
  }
@@ -5,7 +5,9 @@ import { useEffect } from 'react';
5
5
  import { Controller, useForm } from 'react-hook-form';
6
6
  import { z } from 'zod';
7
7
  import { useShallow } from 'zustand/shallow';
8
+ import { useAccountQuery } from '../../../client/hooks/useAccountQuery.js';
8
9
  import { useCreateMemberVerificationMutation } from '../../../client/hooks/useCreateMemberVerificationMutation.js';
10
+ import { useFeatureFlag } from '../../../client/hooks/useFeatureFlag.js';
9
11
  import { useGlobalStore } from '../../../client/hooks/useGlobalStore.js';
10
12
  import { useMemberVerificationQuery } from '../../../client/hooks/useMemberVerificationQuery.js';
11
13
  import { useUpdateMemberVerificationMutation } from '../../../client/hooks/useUpdateMemberVerificationMutation.js';
@@ -18,8 +20,6 @@ import { getMemberVerificationQueryKey } from '../../../utils/queryKeys.js';
18
20
  import { IdFrontImageField } from '../../shared/IdFrontImageField/index.js';
19
21
  import { SelfieImageField } from '../../shared/SelfieImageField/index.js';
20
22
  import { useKYCDefaultContext } from './KYCDefaultContext.js';
21
- import { useAccountQuery } from '../../../client/hooks/useAccountQuery.js';
22
- import { useFeatureFlag } from '../../../client/hooks/useFeatureFlag.js';
23
23
  const formSchema = z.object({
24
24
  selfieImage: z.string().min(1, 'Selfie image is required.'),
25
25
  idFrontImage: z.string().min(1, 'Front image of ID is required.'),
@@ -119,7 +119,5 @@ export function IdentityVerification() {
119
119
  type: 'validate',
120
120
  message: error.message,
121
121
  });
122
- } }), _jsx(Field.ErrorText, { children: o.fieldState.error?.message })] })) }), _jsx(Button, { type: "submit", className: "mt-6", disabled: createPending || updatePending, children: "Continue" }), !(featureFlag.enabled && isVerificationLocked) && (_jsx(Button, { variant: "outline", colorScheme: "gray", className: "mt-lg", type: "button", onClick: () => {
123
- globalStore.kyc.setOpen(false);
124
- }, children: "Skip for now" }))] })] }));
122
+ } }), _jsx(Field.ErrorText, { children: o.fieldState.error?.message })] })) }), _jsx(Button, { type: "submit", className: "mt-6", disabled: createPending || updatePending, children: "Continue" })] })] }));
125
123
  }
@@ -4,5 +4,6 @@ import { Progress } from '../../../ui/Progress/index.js';
4
4
  import { useKYCDefaultContext } from './KYCDefaultContext.js';
5
5
  export function Indicator() {
6
6
  const kyc = useKYCDefaultContext();
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, {}) }) })] }));
7
+ console.log(kyc.step);
8
+ 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, {}) }) })] }));
8
9
  }
@@ -3,8 +3,10 @@ import Image from 'next/image';
3
3
  import { useEffect } from 'react';
4
4
  import { useShallow } from 'zustand/shallow';
5
5
  import { useAccountQuery } from '../../../client/hooks/useAccountQuery.js';
6
+ import { useFeatureFlag } from '../../../client/hooks/useFeatureFlag.js';
6
7
  import { useGlobalStore } from '../../../client/hooks/useGlobalStore.js';
7
8
  import { useMemberVerificationQuery } from '../../../client/hooks/useMemberVerificationQuery.js';
9
+ import { useSessionQuery } from '../../../client/hooks/useSessionQuery.js';
8
10
  import { XIcon } from '../../../icons/XIcon.js';
9
11
  import { Dialog } from '../../../ui/Dialog/index.js';
10
12
  import { Portal } from '../../../ui/Portal/index.js';
@@ -15,8 +17,6 @@ import { Indicator } from './Indicator.js';
15
17
  import { KYCDefaultContext } from './KYCDefaultContext.js';
16
18
  import { PersonalInformation } from './PersonalInformation.js';
17
19
  import { useKYCDefault } from './useKYCDefault.js';
18
- import { useFeatureFlag } from '../../../client/hooks/useFeatureFlag.js';
19
- import { useSessionQuery } from '../../../client/hooks/useSessionQuery.js';
20
20
  export function KYCDefault(props) {
21
21
  const globalStore = useGlobalStore(useShallow((ctx) => ({ kyc: ctx.kyc, kycReminder: ctx.kycReminder })));
22
22
  const featureFlag = useFeatureFlag();
@@ -27,11 +27,7 @@ export function KYCDefault(props) {
27
27
  const isVerificationLocked = account?.status === 'VERIFICATION_LOCKED';
28
28
  const isBasicInfoCompleted = account?.realName !== null && account?.birthDay !== null;
29
29
  const isUploadCompleted = verification?.idFrontImage && verification?.selfieImage;
30
- const isVerified = verification?.status === 'VERIFIED' ||
31
- verification?.status === 'PENDING' ||
32
- verification?.status === 'APPROVED';
33
30
  const isRejected = verification?.status === 'REJECTED';
34
- const hasMissingData = !isBasicInfoCompleted || !isUploadCompleted || !isVerified;
35
31
  const steps = !isBasicInfoCompleted
36
32
  ? 1
37
33
  : !isUploadCompleted
@@ -45,8 +41,14 @@ export function KYCDefault(props) {
45
41
  }
46
42
  }, [steps, kyc]);
47
43
  const isDialogOpen = featureFlag.enabled
48
- ? !globalStore.kycReminder.open && globalStore.kyc.open && hasMissingData && !sessionLoading && !accountLoading
49
- : globalStore.kyc.open && hasMissingData && !sessionLoading && !accountLoading && session?.status !== 'unauthenticated';
44
+ ? !globalStore.kycReminder.open &&
45
+ globalStore.kyc.open &&
46
+ !sessionLoading &&
47
+ !accountLoading
48
+ : globalStore.kyc.open &&
49
+ !sessionLoading &&
50
+ !accountLoading &&
51
+ session?.status !== 'unauthenticated';
50
52
  return (_jsxs(_Fragment, { children: [_jsx(KYCDefaultContext, { value: kyc, children: _jsx(Dialog.Root, { open: isDialogOpen, onOpenChange: (details) => {
51
53
  globalStore.kyc.setOpen(details.open);
52
54
  }, 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: [!(featureFlag.enabled && isVerificationLocked) && (_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 })] }));
@@ -19,7 +19,7 @@ export function KYCReminder(props) {
19
19
  kyc: ctx.kyc,
20
20
  kycReminder: ctx.kycReminder,
21
21
  })));
22
- const { enabled } = useFeatureFlag();
22
+ const featureFlag = useFeatureFlag();
23
23
  const { data: session, isLoading: sessionLoading } = useSessionQuery();
24
24
  const { data: account, isLoading: accountLoading } = useAccountQuery();
25
25
  const isVerificationLocked = account?.status === 'VERIFICATION_LOCKED';
@@ -34,13 +34,13 @@ export function KYCReminder(props) {
34
34
  !accountLoading &&
35
35
  globalStore.kycReminder.open &&
36
36
  !globalStore.kyc.open &&
37
- (enabled ? true : !isVerificationLocked) &&
37
+ (featureFlag.enabled ? true : !isVerificationLocked) &&
38
38
  session?.status === 'authenticated', onOpenChange: (details) => {
39
39
  globalStore.kycReminder.setOpen(details.open);
40
- }, 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: _jsx(Dialog.Content, { className: "mx-auto h-fit max-w-[calc(100dvw-1rem)] overflow-y-auto rounded-lg bg-bg-primary lg:max-w-[400px]", children: isVerificationLocked && enabled ? (_jsxs("div", { className: "p-3xl text-center", children: [_jsx("div", { className: "mx-auto mb-4 w-fit rounded-full p-2", children: _jsx(Image, { src: props.logo, alt: `${props.siteName} logo`, width: 200, height: 100, className: "mx-auto h-auto w-[120px]", draggable: false }) }), _jsx("h2", { className: `mt-4 font-semibold text-lg ${props.titleBgColor}`, children: "Temporarily Locked" }), _jsx("p", { className: "mt-xs text-sm text-text-tertiary-600", children: "Your account has been locked due to incomplete verification. Please complete your verification to restore full access." }), _jsxs("div", { className: "mt-6 flex w-full items-center justify-center gap-3xl", children: [_jsx(Image, { src: pagcorLogo, alt: "PAGCOR logo", height: 43, width: 88, className: "h-[43px] w-auto shrink-0", draggable: false, unoptimized: true }), _jsx(Image, { src: props.responsibleGamingLogo ?? responsibleGamingLogo, alt: "Responsible Gaming logo", height: 50, width: 186, className: "h-[50px] w-auto shrink-0", draggable: false, unoptimized: true })] }), _jsx(Dialog.Context, { children: (api) => (_jsx("div", { className: "mt-6 space-y-lg", children: _jsx(Button, { onClick: () => {
40
+ }, 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: _jsx(Dialog.Content, { className: "mx-auto h-fit max-w-[calc(100dvw-1rem)] overflow-y-auto rounded-lg bg-bg-primary lg:max-w-[400px]", children: isVerificationLocked && featureFlag.enabled ? (_jsxs("div", { className: "p-3xl text-center", children: [_jsx("div", { className: "mx-auto mb-4 w-fit rounded-full p-2", children: _jsx(Image, { src: props.logo, alt: `${props.siteName} logo`, width: 200, height: 100, className: "mx-auto h-auto w-[120px]", draggable: false }) }), _jsx("h2", { className: `mt-4 font-semibold text-lg ${props.titleBgColor}`, children: "Temporarily Locked" }), _jsx("p", { className: "mt-xs text-sm text-text-tertiary-600", children: "Your account has been locked due to incomplete verification. Please complete your verification to restore full access." }), _jsxs("div", { className: "mt-6 flex w-full items-center justify-center gap-3xl", children: [_jsx(Image, { src: pagcorLogo, alt: "PAGCOR logo", height: 43, width: 88, className: "h-[43px] w-auto shrink-0", draggable: false, unoptimized: true }), _jsx(Image, { src: props.responsibleGamingLogo ?? responsibleGamingLogo, alt: "Responsible Gaming logo", height: 50, width: 186, className: "h-[50px] w-auto shrink-0", draggable: false, unoptimized: true })] }), _jsx(Dialog.Context, { children: (api) => (_jsx("div", { className: "mt-6 space-y-lg", children: _jsx(Button, { onClick: () => {
41
41
  api.setOpen(false);
42
42
  globalStore.kyc.setOpen(true);
43
- }, children: "Complete KYC" }) })) })] })) : enabled &&
43
+ }, children: "Complete KYC" }) })) })] })) : featureFlag.enabled &&
44
44
  daysFromCreationToNow <= 3 &&
45
45
  daysFromCreationToNow >= 1 ? (_jsxs(_Fragment, { children: [_jsx(Dialog.CloseTrigger, { children: _jsx(XIcon, {}) }), _jsxs("div", { className: "p-3xl text-center", children: [_jsx("div", { className: "mx-auto mb-4 w-fit rounded-full bg-bg-warning-secondary p-2", children: _jsx(Image, { src: props.logo, alt: `${props.siteName} logo`, width: 200, height: 100, className: "mx-auto h-auto w-[120px]", draggable: false }) }), _jsx("h2", { className: `mt-4 font-semibold text-lg ${props.titleBgColor}`, children: "JUST A FRIENDLY REMINDER" }), _jsxs("p", { className: "mt-xs text-sm text-text-tertiary-600", children: ["Please complete your KYC information within", ' ', _jsx("span", { className: "font-semibold text-[#FF0000]", children: "3 days" }), ' ', "to avoid temporary lock on your account."] }), _jsxs("div", { className: "mt-6 flex w-full items-center justify-center gap-3xl", children: [_jsx(Image, { src: pagcorLogo, alt: "PAGCOR logo", height: 43, width: 88, className: "h-[43px] w-auto shrink-0", draggable: false, unoptimized: true }), _jsx(Image, { src: props.responsibleGamingLogo ?? responsibleGamingLogo, alt: "Responsible Gaming logo", height: 50, width: 186, className: "h-[50px] w-auto shrink-0", draggable: false, unoptimized: true })] }), _jsx(Dialog.Context, { children: (api) => (_jsx("div", { className: "mt-6 space-y-lg", children: _jsx(Button, { onClick: () => {
46
46
  api.setOpen(false);
@@ -1,5 +1,4 @@
1
1
  'use client';
2
- import { isEmpty, isNil } from 'lodash-es';
3
2
  import { usePathname } from 'next/navigation';
4
3
  import { useEffect } from 'react';
5
4
  import { useAccountQuery } from '../../client/hooks/useAccountQuery.js';
@@ -9,39 +8,30 @@ export function KycOpenOnHomeMount() {
9
8
  const setkycReminderOpen = useGlobalStore((s) => s.kycReminder.setOpen);
10
9
  const setkycOpen = useGlobalStore((s) => s.kyc.setOpen);
11
10
  const pathname = usePathname();
12
- const { data: verification } = useMemberVerificationQuery();
13
- const { data: account } = useAccountQuery();
11
+ const { data: verification, isLoading: verificationLoading } = useMemberVerificationQuery();
12
+ const { data: account, isLoading: accountLoading } = useAccountQuery();
14
13
  const isVerificationLocked = account?.status === 'VERIFICATION_LOCKED';
15
14
  const hasntSubmittedCompliantDocs = account?.verified || verification?.sumsubVerified
16
15
  ? false
17
- : isNil(account?.realName) ||
18
- isEmpty(account?.realName) ||
19
- isNil(account?.birthDay) ||
20
- isEmpty(account?.birthDay) ||
21
- isNil(verification?.selfieImage) ||
22
- isEmpty(verification?.selfieImage) ||
23
- isNil(verification?.idFrontImage) ||
24
- isEmpty(verification?.idFrontImage) ||
25
- isNil(verification?.address) ||
26
- isEmpty(verification?.address) ||
27
- isNil(verification?.permanentAddress) ||
28
- isEmpty(verification?.permanentAddress) ||
29
- !isVerificationLocked;
16
+ : !account?.realName ||
17
+ !account?.birthDay ||
18
+ !verification?.selfieImage ||
19
+ !verification?.idFrontImage;
30
20
  const hasntCompletedKYC = account?.verified || verification?.sumsubVerified
31
21
  ? false
32
- : isNil(verification?.nationality) ||
33
- isEmpty(verification?.nationality) ||
34
- isNil(verification?.natureOfWork) ||
35
- isEmpty(verification?.natureOfWork) ||
36
- isNil(verification?.sourceOfIncome) ||
37
- isEmpty(verification?.sourceOfIncome) ||
38
- !isVerificationLocked;
22
+ : !!verification?.nationality ||
23
+ !!verification?.natureOfWork ||
24
+ !!verification?.sourceOfIncome ||
25
+ !!verification?.permanentAddress ||
26
+ !!verification?.placeOfBirth ||
27
+ !!verification?.address;
39
28
  useEffect(() => {
40
- if (pathname === '/') {
29
+ if (pathname === '/' && !verificationLoading && !accountLoading) {
41
30
  if (hasntSubmittedCompliantDocs) {
42
31
  setkycOpen(true);
43
32
  }
44
- if (!hasntSubmittedCompliantDocs && hasntCompletedKYC) {
33
+ if ((!hasntSubmittedCompliantDocs && !hasntCompletedKYC) ||
34
+ isVerificationLocked) {
45
35
  setkycReminderOpen(true);
46
36
  }
47
37
  }
@@ -50,7 +40,10 @@ export function KycOpenOnHomeMount() {
50
40
  setkycReminderOpen,
51
41
  setkycOpen,
52
42
  hasntSubmittedCompliantDocs,
43
+ verificationLoading,
44
+ accountLoading,
53
45
  hasntCompletedKYC,
46
+ isVerificationLocked,
54
47
  ]);
55
48
  return null;
56
49
  }
@@ -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) {