@opexa/portal-components 0.0.526 → 0.0.528

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 (160) 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/Jackpots/Jackpots.module.css +184 -184
  5. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.module.css +184 -184
  6. package/dist/components/Jackpots/JackpotsList/JackpotsListItem.module.css +184 -184
  7. package/dist/components/KYC/BasicInformation.js +1 -1
  8. package/dist/components/KYC/IdentityVerification.js +1 -1
  9. package/dist/components/KYC/KYC.lazy.js +1 -1
  10. package/dist/components/KYC/KYCDefault/PersonalInformation.js +1 -1
  11. package/dist/components/KYC/PersonalInformation.js +1 -1
  12. package/dist/components/PortalProvider/CXDTokenObserver.js +11 -11
  13. package/dist/components/SignIn/MobileNumberSignIn.js +0 -2
  14. package/dist/components/SignIn/NameAndPasswordSignIn.js +1 -3
  15. package/dist/components/SignUp/SignUpDefault/SignUpDefaultForm.js +7 -5
  16. package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarouselItem.module.css +184 -184
  17. package/dist/components/Tournaments/TournamentsList/TournamentItem.module.css +184 -184
  18. package/dist/services/queries.js +2755 -2755
  19. package/dist/styles/theme.css +731 -731
  20. package/dist/ui/Carousel/Carousel.d.ts +45 -45
  21. package/dist/ui/Carousel/carousel.recipe.d.ts +5 -5
  22. package/dist/ui/DatePicker/DatePicker.d.ts +72 -72
  23. package/dist/ui/DatePicker/datePicker.recipe.d.ts +3 -3
  24. package/dist/ui/Menu/Menu.d.ts +198 -198
  25. package/dist/ui/Menu/menu.recipe.d.ts +11 -11
  26. package/package.json +163 -163
  27. package/dist/components/Disclaimer/ResponsibleGaming.d.ts +0 -10
  28. package/dist/components/Disclaimer/ResponsibleGaming.js +0 -13
  29. package/dist/components/Disclaimer/TermsOfUse.d.ts +0 -11
  30. package/dist/components/Disclaimer/TermsOfUse.js +0 -13
  31. package/dist/components/FeatureFlag/FeatureFlag.d.ts +0 -1
  32. package/dist/components/FeatureFlag/FeatureFlag.js +0 -29
  33. package/dist/components/FeatureFlag/index.d.ts +0 -1
  34. package/dist/components/FeatureFlag/index.js +0 -1
  35. package/dist/components/KYC/AutoOpen.d.ts +0 -1
  36. package/dist/components/KYC/AutoOpen.js +0 -40
  37. package/dist/components/KYC/CaptureIdDocument.d.ts +0 -1
  38. package/dist/components/KYC/CaptureIdDocument.js +0 -219
  39. package/dist/components/KYC/CaptureSelfie.d.ts +0 -1
  40. package/dist/components/KYC/CaptureSelfie.js +0 -285
  41. package/dist/components/KYC/DisplayImage.d.ts +0 -5
  42. package/dist/components/KYC/DisplayImage.js +0 -8
  43. package/dist/components/KYC/FileUpload.d.ts +0 -10
  44. package/dist/components/KYC/FileUpload.js +0 -72
  45. package/dist/components/KYC/NoCameraError.d.ts +0 -7
  46. package/dist/components/KYC/NoCameraError.js +0 -6
  47. package/dist/components/KYC/PersonOverlayDesktop.d.ts +0 -7
  48. package/dist/components/KYC/PersonOverlayDesktop.js +0 -9
  49. package/dist/components/KYC/backup/Header.d.ts +0 -1
  50. package/dist/components/KYC/backup/Header.js +0 -8
  51. package/dist/components/KYC/backup/Indicator.d.ts +0 -1
  52. package/dist/components/KYC/backup/Indicator.js +0 -9
  53. package/dist/components/KYC/backup/KYC.d.ts +0 -1
  54. package/dist/components/KYC/backup/KYC.js +0 -14
  55. package/dist/components/KYC/backup/KYC.lazy.d.ts +0 -1
  56. package/dist/components/KYC/backup/KYC.lazy.js +0 -26
  57. package/dist/components/KYC/backup/KYCContext.d.ts +0 -6
  58. package/dist/components/KYC/backup/KYCContext.js +0 -2
  59. package/dist/components/KYC/backup/Step1.d.ts +0 -1
  60. package/dist/components/KYC/backup/Step1.js +0 -13
  61. package/dist/components/KYC/backup/Step2.d.ts +0 -1
  62. package/dist/components/KYC/backup/Step2.js +0 -13
  63. package/dist/components/KYC/backup/Step3.d.ts +0 -1
  64. package/dist/components/KYC/backup/Step3.js +0 -13
  65. package/dist/components/KYC/backup/Step4.d.ts +0 -1
  66. package/dist/components/KYC/backup/Step4.js +0 -7
  67. package/dist/components/KYC/backup/useKYC.d.ts +0 -10
  68. package/dist/components/KYC/backup/useKYC.js +0 -8
  69. package/dist/components/KYC/loadModels.d.ts +0 -1
  70. package/dist/components/KYC/loadModels.js +0 -9
  71. package/dist/components/KYC/utils.d.ts +0 -9
  72. package/dist/components/KYC/utils.js +0 -79
  73. package/dist/components/Messages/Message.d.ts +0 -1
  74. package/dist/components/Messages/Message.js +0 -35
  75. package/dist/components/Messages/MessageContext.d.ts +0 -6
  76. package/dist/components/Messages/MessageContext.js +0 -2
  77. package/dist/components/Messages/MessagePopup.d.ts +0 -1
  78. package/dist/components/Messages/MessagePopup.js +0 -20
  79. package/dist/components/Messages/MessageTrigger.d.ts +0 -8
  80. package/dist/components/Messages/MessageTrigger.js +0 -19
  81. package/dist/components/Quests/CountdownTimer.d.ts +0 -15
  82. package/dist/components/Quests/CountdownTimer.js +0 -33
  83. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.d.ts +0 -4
  84. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.js +0 -78
  85. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.d.ts +0 -8
  86. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.js +0 -9
  87. package/dist/components/Quests/OnboardingQuest/OnboardingQuest.d.ts +0 -4
  88. package/dist/components/Quests/OnboardingQuest/OnboardingQuest.js +0 -4
  89. package/dist/components/Quests/WageringQuest/WageringQuest.d.ts +0 -4
  90. package/dist/components/Quests/WageringQuest/WageringQuest.js +0 -20
  91. package/dist/components/Quests/WageringQuest/WageringQuestModal.d.ts +0 -9
  92. package/dist/components/Quests/WageringQuest/WageringQuestModal.js +0 -9
  93. package/dist/components/SignUp/SignUp.lazy.d.ts +0 -12
  94. package/dist/components/SignUp/SignUp.lazy.js +0 -18
  95. package/dist/components/SignUp/SignUpContext.d.ts +0 -6
  96. package/dist/components/SignUp/SignUpContext.js +0 -2
  97. package/dist/components/SignUp/SignUpDefault/SignUp.lazy.d.ts +0 -17
  98. package/dist/components/SignUp/SignUpDefault/SignUp.lazy.js +0 -18
  99. package/dist/components/SignUp/SignUpDefault/SignUpContext.d.ts +0 -6
  100. package/dist/components/SignUp/SignUpDefault/SignUpContext.js +0 -2
  101. package/dist/components/SignUp/SignUpDefault/SignUpForm.d.ts +0 -1
  102. package/dist/components/SignUp/SignUpDefault/SignUpForm.js +0 -310
  103. package/dist/components/SignUp/SignUpForm.d.ts +0 -1
  104. package/dist/components/SignUp/SignUpForm.js +0 -284
  105. package/dist/components/SignUp/SignUpKYC/CaptureIdDocument.d.ts +0 -1
  106. package/dist/components/SignUp/SignUpKYC/CaptureIdDocument.js +0 -198
  107. package/dist/components/SignUp/SignUpKYC/CaptureSelfie.d.ts +0 -1
  108. package/dist/components/SignUp/SignUpKYC/CaptureSelfie.js +0 -251
  109. package/dist/components/SignUp/SignUpKYC/ImageUploader.d.ts +0 -10
  110. package/dist/components/SignUp/SignUpKYC/ImageUploader.js +0 -42
  111. package/dist/components/SignUp/SignUpKYC/PersonOverlayDesktop.d.ts +0 -7
  112. package/dist/components/SignUp/SignUpKYC/PersonOverlayDesktop.js +0 -9
  113. package/dist/components/SignUp/SignUpKYC/SignUpFormKYC.d.ts +0 -1
  114. package/dist/components/SignUp/SignUpKYC/SignUpFormKYC.js +0 -464
  115. package/dist/components/SignUp/SignUpKYC/useImageUploader.d.ts +0 -11
  116. package/dist/components/SignUp/SignUpKYC/useImageUploader.js +0 -20
  117. package/dist/components/SignUp/SignUpKYC/utils.d.ts +0 -9
  118. package/dist/components/SignUp/SignUpKYC/utils.js +0 -79
  119. package/dist/components/SignUp/SignUpPagcor/CaptureIdDocument.d.ts +0 -1
  120. package/dist/components/SignUp/SignUpPagcor/CaptureIdDocument.js +0 -198
  121. package/dist/components/SignUp/SignUpPagcor/CaptureSelfie.d.ts +0 -1
  122. package/dist/components/SignUp/SignUpPagcor/CaptureSelfie.js +0 -251
  123. package/dist/components/SignUp/SignUpPagcor/ImageUploader.d.ts +0 -10
  124. package/dist/components/SignUp/SignUpPagcor/ImageUploader.js +0 -41
  125. package/dist/components/SignUp/SignUpPagcor/SignUpFormPagcor.d.ts +0 -1
  126. package/dist/components/SignUp/SignUpPagcor/SignUpFormPagcor.js +0 -429
  127. package/dist/components/SignUp/SignUpPagcor/SignUpPagcor.lazy.d.ts +0 -13
  128. package/dist/components/SignUp/SignUpPagcor/SignUpPagcor.lazy.js +0 -26
  129. package/dist/components/SignUp/SignUpPagcor/SignUpPagcorContext.d.ts +0 -7
  130. package/dist/components/SignUp/SignUpPagcor/SignUpPagcorContext.js +0 -2
  131. package/dist/components/SignUp/SignUpPagcor/useImageUploader.d.ts +0 -11
  132. package/dist/components/SignUp/SignUpPagcor/useImageUploader.js +0 -20
  133. package/dist/components/shared/IdDocumentField.client.d.ts +0 -25
  134. package/dist/components/shared/IdDocumentField.client.js +0 -204
  135. package/dist/components/shared/IdDocumentField.d.ts +0 -2
  136. package/dist/components/shared/IdDocumentField.js +0 -11
  137. package/dist/components/shared/SelfieField.client.d.ts +0 -20
  138. package/dist/components/shared/SelfieField.client.js +0 -327
  139. package/dist/components/shared/SelfieField.d.ts +0 -2
  140. package/dist/components/shared/SelfieField.js +0 -11
  141. package/dist/constants/BranchCode.d.ts +0 -4
  142. package/dist/constants/BranchCode.js +0 -42
  143. package/dist/handlers/postTransformIdFrontImage.d.ts +0 -3
  144. package/dist/handlers/postTransformIdFrontImage.js +0 -67
  145. package/dist/handlers/postTransformSelfieImage.d.ts +0 -3
  146. package/dist/handlers/postTransformSelfieImage.js +0 -71
  147. package/dist/handlers.d.ts +0 -43
  148. package/dist/handlers.js +0 -297
  149. package/dist/icons/BellRingIcon.d.ts +0 -2
  150. package/dist/icons/BellRingIcon.js +0 -4
  151. package/dist/utils/dataUrlToBlob.d.ts +0 -1
  152. package/dist/utils/dataUrlToBlob.js +0 -11
  153. package/dist/utils/gamesAvailable3pmTo3am.d.ts +0 -1
  154. package/dist/utils/gamesAvailable3pmTo3am.js +0 -1
  155. package/dist/utils/getGameName.d.ts +0 -1
  156. package/dist/utils/getGameName.js +0 -6
  157. package/dist/utils/isBetween3amAnd3pm.d.ts +0 -1
  158. package/dist/utils/isBetween3amAnd3pm.js +0 -5
  159. package/dist/utils/resizeImageSize.d.ts +0 -2
  160. 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
  }
@@ -121,7 +121,7 @@ export function PersonalInformation() {
121
121
  address: '',
122
122
  });
123
123
  }
124
- }, disabled: !permanentAddress, children: [_jsx(Checkbox.Control, { children: _jsx(Checkbox.Indicator, { asChild: true, children: _jsx(CheckIcon, {}) }) }), _jsx(Checkbox.Label, { children: "Use permanent address as current address" }), _jsx(Checkbox.HiddenInput, {})] }), _jsxs(Field.Root, { className: "mt-2xl", invalid: !!form.formState.errors.sourceOfIncome, children: [_jsx(Field.Label, { children: "Source of income" }), _jsx(Field.Input, { placeholder: "Enter your source of income", ...form.register('sourceOfIncome') }), _jsx(Field.ErrorText, { children: form.formState.errors.sourceOfIncome?.message })] }), _jsxs(Field.Root, { className: "mt-2xl", invalid: !!form.formState.errors.natureOfWork, children: [_jsx(Field.Label, { children: "Work Description" }), _jsx(Field.Input, { placeholder: "Enter your work description", ...form.register('natureOfWork') }), _jsx(Field.ErrorText, { children: form.formState.errors.natureOfWork?.message })] }), _jsxs(Field.Root, { className: "mt-2xl", invalid: !!form.formState.errors.placeOfBirth, children: [_jsx(Field.Label, { children: "Place of birth" }), _jsx(Field.Input, { placeholder: "Enter your place of birth", ...form.register('placeOfBirth') }), _jsx(Field.ErrorText, { children: form.formState.errors.placeOfBirth?.message })] }), _jsxs(Field.Root, { className: "mt-2xl", invalid: !!form.formState.errors.nationality, children: [_jsx(Field.Label, { children: "Nationality" }), _jsx(Field.Input, { placeholder: "Enter your nationality", ...form.register('nationality') }), _jsx(Field.ErrorText, { children: form.formState.errors.nationality?.message })] }), _jsx(Button, { type: "submit", className: "mt-4xl", disabled: updateMemberVerificationMutation.isPending ||
124
+ }, disabled: !permanentAddress, children: [_jsx(Checkbox.Control, { children: _jsx(Checkbox.Indicator, { asChild: true, children: _jsx(CheckIcon, {}) }) }), _jsx(Checkbox.Label, { children: "Use permanent address as current address" }), _jsx(Checkbox.HiddenInput, {})] }), _jsxs(Field.Root, { className: "mt-2xl", invalid: !!form.formState.errors.sourceOfIncome, children: [_jsx(Field.Label, { children: "Source of income" }), _jsx(Field.Input, { placeholder: "Enter your source of income", ...form.register('sourceOfIncome') }), _jsx(Field.ErrorText, { children: form.formState.errors.sourceOfIncome?.message })] }), _jsxs(Field.Root, { className: "mt-2xl", invalid: !!form.formState.errors.natureOfWork, children: [_jsx(Field.Label, { children: "Nature of Work" }), _jsx(Field.Input, { placeholder: "Enter your nature of work", ...form.register('natureOfWork') }), _jsx(Field.ErrorText, { children: form.formState.errors.natureOfWork?.message })] }), _jsxs(Field.Root, { className: "mt-2xl", invalid: !!form.formState.errors.placeOfBirth, children: [_jsx(Field.Label, { children: "Place of birth" }), _jsx(Field.Input, { placeholder: "Enter your place of birth", ...form.register('placeOfBirth') }), _jsx(Field.ErrorText, { children: form.formState.errors.placeOfBirth?.message })] }), _jsxs(Field.Root, { className: "mt-2xl", invalid: !!form.formState.errors.nationality, children: [_jsx(Field.Label, { children: "Nationality" }), _jsx(Field.Input, { placeholder: "Enter your nationality", ...form.register('nationality') }), _jsx(Field.ErrorText, { children: form.formState.errors.nationality?.message })] }), _jsx(Button, { type: "submit", className: "mt-4xl", disabled: updateMemberVerificationMutation.isPending ||
125
125
  createMemberVerificationMutation.isPending, children: "Continue" }), kyc.isSkippable && (_jsx(Button, { variant: "outline", colorScheme: "gray", className: "mt-lg", onClick: () => {
126
126
  globalStore.kyc.setOpen(false);
127
127
  }, disabled: updateMemberVerificationMutation.isPending ||
@@ -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) {
@@ -1,30 +1,30 @@
1
1
  'use client';
2
2
  import { addHours } from 'date-fns';
3
3
  import { clamp } from 'lodash-es';
4
- import { useSearchParams } from 'next/navigation';
5
4
  import { useLocalStorage, useTimeout } from 'usehooks-ts';
6
5
  import { useAccountQuery } from '../../client/hooks/useAccountQuery.js';
7
6
  export function CXDTokenObserver() {
8
- const searchParams = useSearchParams();
9
- const cxdToken = searchParams.get('cxd');
10
- const accountQuery = useAccountQuery();
11
- const account = accountQuery.data;
12
- const [cxd, setCxd, removeCxd] = useLocalStorage('WebPortalCellxpertCxd', null);
7
+ const { data: account } = useAccountQuery();
8
+ const accountCxd = {
9
+ cxd: account?.cellxpertDetails?.cxd,
10
+ };
11
+ const [cxd, setCxd, removeCxd] = useLocalStorage('cxd', null);
13
12
  const now = new Date();
14
- const shouldTimeoutRun = cxdToken && account;
15
13
  const removeCxdUntilInMs = cxd?.timestamp
16
14
  ? clamp(cxd.timestamp - now.getTime(), 0, Infinity)
17
15
  : 0;
18
16
  useTimeout(() => {
19
- const isSame = cxd?.cxd === cxdToken;
17
+ const isSame = cxd?.cxd === accountCxd.cxd;
20
18
  if (!isSame) {
21
19
  const extendedTimestamp = addHours(new Date(), 6).getTime();
22
20
  setCxd({
23
- cxd: cxdToken,
21
+ cxd: accountCxd.cxd,
24
22
  timestamp: extendedTimestamp,
25
23
  });
26
24
  }
27
- }, shouldTimeoutRun ? 100 : null);
28
- useTimeout(() => removeCxd(), shouldTimeoutRun ? removeCxdUntilInMs : null);
25
+ }, account ? 100 : null);
26
+ useTimeout(() => {
27
+ removeCxd();
28
+ }, account ? removeCxdUntilInMs : null);
29
29
  return null;
30
30
  }
@@ -147,7 +147,6 @@ export function MobileNumberSignIn() {
147
147
  else {
148
148
  globalStore.termsAndConditions.setOpen(true);
149
149
  globalStore.termsAndConditions.setNext('SIGN_IN');
150
- globalStore.signIn.setOpen(false);
151
150
  }
152
151
  }, children: "Terms and Conditions" }), ' ', "and", ' ', _jsx("button", { type: "button", className: "text-brand-400 underline underline-offset-2", onClick: () => {
153
152
  if (signInProps.responsibleGamingUrl) {
@@ -157,7 +156,6 @@ export function MobileNumberSignIn() {
157
156
  else {
158
157
  globalStore.responsibleGaming.setOpen(true);
159
158
  globalStore.responsibleGaming.setNext('SIGN_IN');
160
- globalStore.signIn.setOpen(false);
161
159
  }
162
160
  }, children: "Responsible Gaming" }), ' ', "guidelines."] }), _jsx(Checkbox.HiddenInput, {})] }), _jsx(Field.ErrorText, { className: "ml-6 text-xs", children: o.fieldState.error?.message })] })) })] }), signInProps.showPublicPlayProhibition && (_jsxs("div", { className: twMerge('mt-3xl text-center text-sm', signInProps.className?.publicPlayProhibitionRoot), children: ["Prohibition to play in open and public places", _jsxs("div", { className: twMerge('mx-auto mt-5 flex h-13 w-fit items-center justify-center gap-3xl rounded-[60px] bg-[#1D0201] px-5 py-2', signInProps.className?.publicPlayProhibitionLogoContainer), children: [_jsx(Image, { src: signInProps.pagcorLogo ?? pagcorLogo, alt: "", draggable: false, height: 62, width: 186, className: "h-10 w-auto" }), _jsx(Image, { src: signInProps.responsibleGamingLogo ?? responsibleGamingLogo, alt: "", height: 62, width: 186, className: "h-10 w-auto", draggable: false })] })] })), (signInProps.googleSso || signInProps.facebookSso) && (_jsxs("div", { className: "mt-6 flex items-center gap-2", children: [_jsx("div", { className: "h-px flex-grow bg-text-tertiary-600/50" }), _jsx("span", { className: "font-semibold text-sm text-text-tertiary-600", children: "Log in directly with" }), _jsx("div", { className: "h-px flex-grow bg-text-tertiary-600/50" })] })), _jsxs("div", { className: "mt-6", children: [signInProps.googleSso && _jsx(GoogleSignInButton, {}), signInProps.facebookSso && _jsx(FacebookSignInTrigger, {})] }), _jsxs("div", { className: "mt-6 flex w-full items-center justify-center gap-xs text-sm", children: [_jsx("span", { className: "text-text-tertiary-600", children: "Don't have an account?" }), _jsx("button", { type: "submit", className: "font-semibold text-button-tertiary-fg", onClick: () => {
163
161
  globalStore.signIn.setOpen(false);
@@ -156,13 +156,12 @@ export function NameAndPasswordSignIn() {
156
156
  globalStore.responsibleGaming.setAccepted(details.checked);
157
157
  }, children: [_jsx(Checkbox.Control, { children: _jsx(Checkbox.Indicator, { asChild: true, children: _jsx(CheckIcon, {}) }) }), _jsxs(Checkbox.Label, { children: ["I am at least 21 years of age and I have read and accept the", ' ', _jsx("button", { type: "button", className: "text-brand-400 underline underline-offset-2", onClick: () => {
158
158
  if (signInProps.termsAndConditionsUrl) {
159
- globalStore.signIn.setOpen(true);
159
+ globalStore.signIn.setOpen(false);
160
160
  router.push(signInProps.termsAndConditionsUrl);
161
161
  }
162
162
  else {
163
163
  globalStore.termsAndConditions.setOpen(true);
164
164
  globalStore.termsAndConditions.setNext('SIGN_IN');
165
- globalStore.signIn.setOpen(false);
166
165
  }
167
166
  }, children: "Terms and Conditions" }), ' ', "and", ' ', _jsx("button", { type: "button", className: "text-brand-400 underline underline-offset-2", onClick: () => {
168
167
  if (signInProps.responsibleGamingUrl) {
@@ -172,7 +171,6 @@ export function NameAndPasswordSignIn() {
172
171
  else {
173
172
  globalStore.responsibleGaming.setOpen(true);
174
173
  globalStore.responsibleGaming.setNext('SIGN_IN');
175
- globalStore.signIn.setOpen(false);
176
174
  }
177
175
  }, children: "Responsible Gaming" }), ' ', "guidelines."] }), _jsx(Checkbox.HiddenInput, {})] }), _jsx(Field.ErrorText, { className: "ml-6 text-xs", children: o.fieldState.error?.message })] })) })] }), signInProps.showPublicPlayProhibition && (_jsxs("div", { className: twMerge('mt-3xl text-center text-sm', signInProps.className?.publicPlayProhibitionRoot), children: ["Prohibition to play in open and public places", _jsxs("div", { className: twMerge('mx-auto mt-5 flex h-13 w-fit items-center justify-center gap-3xl rounded-[60px] bg-[#1D0201] px-5 py-2', signInProps.className?.publicPlayProhibitionLogoContainer), children: [_jsx(Image, { src: signInProps.pagcorLogo ?? pagcorLogo, alt: "", draggable: false, height: 62, width: 186, className: "h-10 w-auto" }), _jsx(Image, { src: signInProps.responsibleGamingLogo ?? responsibleGamingLogo, alt: "", height: 62, width: 186, className: "h-10 w-auto", draggable: false })] })] })), (signInProps.googleSso || signInProps.facebookSso) && (_jsxs("div", { className: "mt-6 flex items-center gap-2", children: [_jsx("div", { className: "h-px flex-grow bg-text-tertiary-600/50" }), _jsx("span", { className: "font-semibold text-sm text-text-tertiary-600", children: "Log in directly with" }), _jsx("div", { className: "h-px flex-grow bg-text-tertiary-600/50" })] })), _jsxs("div", { className: "mt-6", children: [signInProps.googleSso && _jsx(GoogleSignInButton, {}), signInProps.facebookSso && _jsx(FacebookSignInTrigger, {})] }), _jsxs("div", { className: "mt-6 flex w-full items-center justify-center gap-xs text-sm", children: [_jsx("span", { className: "text-text-tertiary-600", children: "Don't have an account?" }), _jsx("button", { type: "submit", className: "font-semibold text-button-tertiary-fg", onClick: () => {
178
176
  dialog.setOpen(false);
@@ -216,7 +216,6 @@ export function SignUpDefaultForm() {
216
216
  else {
217
217
  globalStore.termsAndConditions.setOpen(true);
218
218
  globalStore.termsAndConditions.setNext('SIGN_UP');
219
- globalStore.signUp.setOpen(false);
220
219
  }
221
220
  }, children: "Terms and Conditions" }), ' ', "and", ' ', _jsx("button", { type: "button", className: "text-brand-400 underline underline-offset-2", onClick: () => {
222
221
  if (signUpProps.responsibleGamingUrl) {
@@ -226,7 +225,6 @@ export function SignUpDefaultForm() {
226
225
  else {
227
226
  globalStore.responsibleGaming.setOpen(true);
228
227
  globalStore.responsibleGaming.setNext('SIGN_UP');
229
- globalStore.signUp.setOpen(false);
230
228
  }
231
229
  }, children: "Responsible Gaming" }), ' ', "guidelines."] }), _jsx(Checkbox.HiddenInput, {})] }), _jsx(Field.ErrorText, { className: "ml-6 text-xs", children: o.fieldState.error?.message })] })) }), _jsx(Button, { type: "submit", className: "mt-3xl", disabled: step1Form.formState.isSubmitting, children: signUpProps.isRegulated ? 'Continue' : 'Create Account' })] }), signUpProps.showPublicPlayProhibition && (_jsxs("div", { className: twMerge('mt-3xl text-center text-sm', signUpProps.className?.publicPlayProhibitionRoot), children: ["Prohibition to play in open and public places", _jsxs("div", { className: twMerge('mx-auto mt-5 flex h-13 w-fit items-center justify-center gap-3xl rounded-[60px] bg-[#1D0201] px-5 py-2', signUpProps.className?.publicPlayProhibitionLogoContainer), children: [_jsx(Image, { src: signUpProps.pagcorLogo ?? pagcorLogo, alt: "", draggable: false, height: 62, width: 186, className: "h-10 w-auto" }), _jsx(Image, { src: signUpProps.responsibleGamingLogo ?? responsibleGamingLogo, alt: "", height: 62, width: 186, className: "h-10 w-auto", draggable: false })] })] })), _jsxs("div", { className: "mt-6 flex w-full items-center justify-center gap-xs text-sm", children: [_jsx("span", { className: "text-text-tertiary-600", children: "Already have an account?" }), _jsx("button", { type: "submit", className: "font-semibold text-button-tertiary-fg", onClick: () => {
232
230
  globalStore.signUp.setOpen(false);
@@ -339,10 +337,14 @@ function DateOfBirthField(props) {
339
337
  const oldSlashesBeforeCursor = (oldValue.substring(0, oldCursorPosition).match(/\//g) || []).length;
340
338
  // Calculate the number of slashes before the new cursor position in the new formatted value
341
339
  // We take the substring of the new formatted value up to where the cursor *would* be based on the old digits
342
- const digitsBeforeOldCursor = oldValue.substring(0, oldCursorPosition).replace(/\D/g, '').length;
343
- const newSlashesBeforeCursor = (formattedValue.substring(0, digitsBeforeOldCursor + oldSlashesBeforeCursor).match(/\//g) || []).length;
340
+ const digitsBeforeOldCursor = oldValue
341
+ .substring(0, oldCursorPosition)
342
+ .replace(/\D/g, '').length;
343
+ const newSlashesBeforeCursor = (formattedValue
344
+ .substring(0, digitsBeforeOldCursor + oldSlashesBeforeCursor)
345
+ .match(/\//g) || []).length;
344
346
  // Adjust newCursorPosition based on the difference in slash count
345
- newCursorPosition += (newSlashesBeforeCursor - oldSlashesBeforeCursor);
347
+ newCursorPosition += newSlashesBeforeCursor - oldSlashesBeforeCursor;
346
348
  // Ensure cursor stays within bounds
347
349
  newCursorPosition = Math.min(newCursorPosition, formattedValue.length);
348
350
  newCursorPosition = Math.max(0, newCursorPosition);