@opexa/portal-components 0.0.408 → 0.0.410

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 (195) hide show
  1. package/dist/components/AccountInfo/GoogleDisconnect.d.ts +7 -0
  2. package/dist/components/AccountInfo/GoogleDisconnect.js +11 -0
  3. package/dist/components/DigitainLauncher/Loading.js +1 -1
  4. package/dist/components/Disclaimer/DisclaimerV2.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/PersonalInformation.js +1 -1
  12. package/dist/components/Quests/DailyCheckInQuest.d.ts +13 -1
  13. package/dist/components/Quests/DailyCheckInQuest.js +7 -4
  14. package/dist/components/Quests/Quests.client.d.ts +8 -1
  15. package/dist/components/Quests/Quests.client.js +14 -6
  16. package/dist/components/Quests/WageringQuest.d.ts +11 -1
  17. package/dist/components/Quests/WageringQuest.js +7 -5
  18. package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarouselItem.module.css +184 -184
  19. package/dist/components/Tournaments/TournamentsList/TournamentItem.module.css +184 -184
  20. package/dist/icons/LinkBrokenIcon.d.ts +2 -0
  21. package/dist/icons/LinkBrokenIcon.js +4 -0
  22. package/dist/services/queries.js +2674 -2674
  23. package/dist/styles/theme.css +719 -719
  24. package/dist/ui/Carousel/Carousel.d.ts +45 -45
  25. package/dist/ui/Carousel/carousel.recipe.d.ts +5 -5
  26. package/dist/ui/Checkbox/Checkbox.d.ts +23 -23
  27. package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -3
  28. package/dist/ui/Combobox/Combobox.d.ts +42 -42
  29. package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
  30. package/dist/ui/Menu/Menu.d.ts +90 -90
  31. package/dist/ui/Menu/menu.recipe.d.ts +5 -5
  32. package/dist/ui/NumberInput/NumberInput.d.ts +24 -24
  33. package/dist/ui/NumberInput/numberInput.recipe.d.ts +3 -3
  34. package/dist/ui/QrCode/QrCode.d.ts +25 -25
  35. package/dist/ui/QrCode/qrCode.recipe.d.ts +5 -5
  36. package/dist/ui/SegmentGroup/SegmentGroup.d.ts +18 -18
  37. package/dist/ui/SegmentGroup/segmentGroup.recipe.d.ts +3 -3
  38. package/dist/ui/Select/Select.d.ts +45 -45
  39. package/dist/ui/Select/select.recipe.d.ts +3 -3
  40. package/dist/ui/Table/Table.d.ts +21 -21
  41. package/dist/ui/Table/table.anatomy.d.ts +1 -1
  42. package/dist/ui/Table/table.recipe.d.ts +3 -3
  43. package/package.json +161 -161
  44. package/dist/components/Disclaimer/ResponsibleGaming.d.ts +0 -10
  45. package/dist/components/Disclaimer/ResponsibleGaming.js +0 -13
  46. package/dist/components/Disclaimer/TermsOfUse.d.ts +0 -11
  47. package/dist/components/Disclaimer/TermsOfUse.js +0 -13
  48. package/dist/components/FeatureFlag/FeatureFlag.d.ts +0 -1
  49. package/dist/components/FeatureFlag/FeatureFlag.js +0 -29
  50. package/dist/components/FeatureFlag/index.d.ts +0 -1
  51. package/dist/components/FeatureFlag/index.js +0 -1
  52. package/dist/components/KYC/AutoOpen.d.ts +0 -1
  53. package/dist/components/KYC/AutoOpen.js +0 -40
  54. package/dist/components/KYC/CaptureIdDocument.d.ts +0 -1
  55. package/dist/components/KYC/CaptureIdDocument.js +0 -219
  56. package/dist/components/KYC/CaptureSelfie.d.ts +0 -1
  57. package/dist/components/KYC/CaptureSelfie.js +0 -285
  58. package/dist/components/KYC/DisplayImage.d.ts +0 -5
  59. package/dist/components/KYC/DisplayImage.js +0 -8
  60. package/dist/components/KYC/FileUpload.d.ts +0 -10
  61. package/dist/components/KYC/FileUpload.js +0 -72
  62. package/dist/components/KYC/NoCameraError.d.ts +0 -7
  63. package/dist/components/KYC/NoCameraError.js +0 -6
  64. package/dist/components/KYC/PersonOverlayDesktop.d.ts +0 -7
  65. package/dist/components/KYC/PersonOverlayDesktop.js +0 -9
  66. package/dist/components/KYC/backup/Header.d.ts +0 -1
  67. package/dist/components/KYC/backup/Header.js +0 -8
  68. package/dist/components/KYC/backup/Indicator.d.ts +0 -1
  69. package/dist/components/KYC/backup/Indicator.js +0 -9
  70. package/dist/components/KYC/backup/KYC.d.ts +0 -1
  71. package/dist/components/KYC/backup/KYC.js +0 -14
  72. package/dist/components/KYC/backup/KYC.lazy.d.ts +0 -1
  73. package/dist/components/KYC/backup/KYC.lazy.js +0 -26
  74. package/dist/components/KYC/backup/KYCContext.d.ts +0 -6
  75. package/dist/components/KYC/backup/KYCContext.js +0 -2
  76. package/dist/components/KYC/backup/Step1.d.ts +0 -1
  77. package/dist/components/KYC/backup/Step1.js +0 -13
  78. package/dist/components/KYC/backup/Step2.d.ts +0 -1
  79. package/dist/components/KYC/backup/Step2.js +0 -13
  80. package/dist/components/KYC/backup/Step3.d.ts +0 -1
  81. package/dist/components/KYC/backup/Step3.js +0 -13
  82. package/dist/components/KYC/backup/Step4.d.ts +0 -1
  83. package/dist/components/KYC/backup/Step4.js +0 -7
  84. package/dist/components/KYC/backup/useKYC.d.ts +0 -10
  85. package/dist/components/KYC/backup/useKYC.js +0 -8
  86. package/dist/components/KYC/loadModels.d.ts +0 -1
  87. package/dist/components/KYC/loadModels.js +0 -9
  88. package/dist/components/KYC/utils.d.ts +0 -9
  89. package/dist/components/KYC/utils.js +0 -79
  90. package/dist/components/Messages/Message.d.ts +0 -1
  91. package/dist/components/Messages/Message.js +0 -35
  92. package/dist/components/Messages/MessageContext.d.ts +0 -6
  93. package/dist/components/Messages/MessageContext.js +0 -2
  94. package/dist/components/Messages/MessagePopup.d.ts +0 -1
  95. package/dist/components/Messages/MessagePopup.js +0 -20
  96. package/dist/components/Messages/MessageTrigger.d.ts +0 -8
  97. package/dist/components/Messages/MessageTrigger.js +0 -19
  98. package/dist/components/Quests/CountdownTimer.d.ts +0 -15
  99. package/dist/components/Quests/CountdownTimer.js +0 -33
  100. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.d.ts +0 -4
  101. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.js +0 -78
  102. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.d.ts +0 -8
  103. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.js +0 -9
  104. package/dist/components/Quests/OnboardingQuest/OnboardingQuest.d.ts +0 -4
  105. package/dist/components/Quests/OnboardingQuest/OnboardingQuest.js +0 -4
  106. package/dist/components/Quests/WageringQuest/WageringQuest.d.ts +0 -4
  107. package/dist/components/Quests/WageringQuest/WageringQuest.js +0 -20
  108. package/dist/components/Quests/WageringQuest/WageringQuestModal.d.ts +0 -9
  109. package/dist/components/Quests/WageringQuest/WageringQuestModal.js +0 -9
  110. package/dist/components/SignIn/utils.d.ts +0 -8
  111. package/dist/components/SignIn/utils.js +0 -26
  112. package/dist/components/SignUp/SignUp.lazy.d.ts +0 -12
  113. package/dist/components/SignUp/SignUp.lazy.js +0 -18
  114. package/dist/components/SignUp/SignUpContext.d.ts +0 -6
  115. package/dist/components/SignUp/SignUpContext.js +0 -2
  116. package/dist/components/SignUp/SignUpDefault/SignUp.lazy.d.ts +0 -17
  117. package/dist/components/SignUp/SignUpDefault/SignUp.lazy.js +0 -18
  118. package/dist/components/SignUp/SignUpDefault/SignUpContext.d.ts +0 -6
  119. package/dist/components/SignUp/SignUpDefault/SignUpContext.js +0 -2
  120. package/dist/components/SignUp/SignUpDefault/SignUpForm.d.ts +0 -1
  121. package/dist/components/SignUp/SignUpDefault/SignUpForm.js +0 -310
  122. package/dist/components/SignUp/SignUpForm.d.ts +0 -1
  123. package/dist/components/SignUp/SignUpForm.js +0 -284
  124. package/dist/components/SignUp/SignUpKYC/CaptureIdDocument.d.ts +0 -1
  125. package/dist/components/SignUp/SignUpKYC/CaptureIdDocument.js +0 -198
  126. package/dist/components/SignUp/SignUpKYC/CaptureSelfie.d.ts +0 -1
  127. package/dist/components/SignUp/SignUpKYC/CaptureSelfie.js +0 -251
  128. package/dist/components/SignUp/SignUpKYC/ImageUploader.d.ts +0 -10
  129. package/dist/components/SignUp/SignUpKYC/ImageUploader.js +0 -42
  130. package/dist/components/SignUp/SignUpKYC/PersonOverlayDesktop.d.ts +0 -7
  131. package/dist/components/SignUp/SignUpKYC/PersonOverlayDesktop.js +0 -9
  132. package/dist/components/SignUp/SignUpKYC/SignUpFormKYC.d.ts +0 -1
  133. package/dist/components/SignUp/SignUpKYC/SignUpFormKYC.js +0 -464
  134. package/dist/components/SignUp/SignUpKYC/useImageUploader.d.ts +0 -11
  135. package/dist/components/SignUp/SignUpKYC/useImageUploader.js +0 -20
  136. package/dist/components/SignUp/SignUpKYC/utils.d.ts +0 -9
  137. package/dist/components/SignUp/SignUpKYC/utils.js +0 -79
  138. package/dist/components/SignUp/SignUpPagcor/CaptureIdDocument.d.ts +0 -1
  139. package/dist/components/SignUp/SignUpPagcor/CaptureIdDocument.js +0 -198
  140. package/dist/components/SignUp/SignUpPagcor/CaptureSelfie.d.ts +0 -1
  141. package/dist/components/SignUp/SignUpPagcor/CaptureSelfie.js +0 -251
  142. package/dist/components/SignUp/SignUpPagcor/ImageUploader.d.ts +0 -10
  143. package/dist/components/SignUp/SignUpPagcor/ImageUploader.js +0 -41
  144. package/dist/components/SignUp/SignUpPagcor/SignUpFormPagcor.d.ts +0 -1
  145. package/dist/components/SignUp/SignUpPagcor/SignUpFormPagcor.js +0 -429
  146. package/dist/components/SignUp/SignUpPagcor/SignUpPagcor.lazy.d.ts +0 -13
  147. package/dist/components/SignUp/SignUpPagcor/SignUpPagcor.lazy.js +0 -26
  148. package/dist/components/SignUp/SignUpPagcor/SignUpPagcorContext.d.ts +0 -7
  149. package/dist/components/SignUp/SignUpPagcor/SignUpPagcorContext.js +0 -2
  150. package/dist/components/SignUp/SignUpPagcor/useImageUploader.d.ts +0 -11
  151. package/dist/components/SignUp/SignUpPagcor/useImageUploader.js +0 -20
  152. package/dist/components/shared/IdDocumentField.client.d.ts +0 -25
  153. package/dist/components/shared/IdDocumentField.client.js +0 -204
  154. package/dist/components/shared/IdDocumentField.d.ts +0 -2
  155. package/dist/components/shared/IdDocumentField.js +0 -11
  156. package/dist/components/shared/SelfieField.client.d.ts +0 -20
  157. package/dist/components/shared/SelfieField.client.js +0 -327
  158. package/dist/components/shared/SelfieField.d.ts +0 -2
  159. package/dist/components/shared/SelfieField.js +0 -11
  160. package/dist/constants/BranchCode.d.ts +0 -4
  161. package/dist/constants/BranchCode.js +0 -42
  162. package/dist/constants/Branches.d.ts +0 -2
  163. package/dist/constants/Branches.js +0 -42
  164. package/dist/handlers/postTransformIdFrontImage.d.ts +0 -3
  165. package/dist/handlers/postTransformIdFrontImage.js +0 -67
  166. package/dist/handlers/postTransformSelfieImage.d.ts +0 -3
  167. package/dist/handlers/postTransformSelfieImage.js +0 -71
  168. package/dist/handlers.d.ts +0 -43
  169. package/dist/handlers.js +0 -297
  170. package/dist/icons/BellRingIcon.d.ts +0 -2
  171. package/dist/icons/BellRingIcon.js +0 -4
  172. package/dist/third-parties/FacebookPixel/FacebookPixel.d.ts +0 -4
  173. package/dist/third-parties/FacebookPixel/FacebookPixel.js +0 -4
  174. package/dist/third-parties/FacebookPixel/api.d.ts +0 -0
  175. package/dist/third-parties/FacebookPixel/api.js +0 -1
  176. package/dist/third-parties/FacebookPixel/index.d.ts +0 -1
  177. package/dist/third-parties/FacebookPixel/index.js +0 -1
  178. package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.d.ts +0 -4
  179. package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.js +0 -4
  180. package/dist/third-parties/GoogleRecaptcha/api.d.ts +0 -0
  181. package/dist/third-parties/GoogleRecaptcha/api.js +0 -1
  182. package/dist/third-parties/GoogleRecaptcha/index.d.ts +0 -1
  183. package/dist/third-parties/GoogleRecaptcha/index.js +0 -1
  184. package/dist/third-parties/index.d.ts +0 -2
  185. package/dist/third-parties/index.js +0 -2
  186. package/dist/utils/dataUrlToBlob.d.ts +0 -1
  187. package/dist/utils/dataUrlToBlob.js +0 -11
  188. package/dist/utils/gamesAvailable3pmTo3am.d.ts +0 -1
  189. package/dist/utils/gamesAvailable3pmTo3am.js +0 -1
  190. package/dist/utils/getGameName.d.ts +0 -1
  191. package/dist/utils/getGameName.js +0 -6
  192. package/dist/utils/isBetween3amAnd3pm.d.ts +0 -1
  193. package/dist/utils/isBetween3amAnd3pm.js +0 -5
  194. package/dist/utils/resizeImageSize.d.ts +0 -2
  195. 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
  }
@@ -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 +1,13 @@
1
- export declare function DailyCheckInQuest(): import("react/jsx-runtime").JSX.Element;
1
+ export interface ClassNameEntries {
2
+ root?: string;
3
+ rewardContainer?: string;
4
+ progressBarContainer?: string;
5
+ progressBar?: string;
6
+ calendarIconContainer?: string;
7
+ calendarIcon?: string;
8
+ calendarDayText?: string;
9
+ checkInButton?: string;
10
+ }
11
+ export declare function DailyCheckInQuest(props: {
12
+ className?: string | ClassNameEntries;
13
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,7 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
3
  import { addDays, isEqual, startOfDay } from 'date-fns';
4
+ import { isString } from 'lodash-es';
4
5
  import { twMerge } from 'tailwind-merge';
5
6
  import { useCheckInDailyCheckInQuestMutation } from '../../client/hooks/useCheckInDailyCheckInQuestMutation.js';
6
7
  import { useControllableState } from '../../client/hooks/useControllableState.js';
@@ -22,7 +23,9 @@ import { parseDecimal } from '../../utils/parseDecimal.js';
22
23
  import { getAvailableQuestsQueryKey } from '../../utils/queryKeys.js';
23
24
  import { useQuestContext } from './QuestsContext.js';
24
25
  import { RemainingTime } from './RemainingTime.js';
25
- export function DailyCheckInQuest() {
26
+ export function DailyCheckInQuest(props) {
27
+ const { className } = props;
28
+ const classNames = isString(className) ? { root: className } : className;
26
29
  const quest = useQuestContext();
27
30
  const disclosure = useDisclosure();
28
31
  const localeInfo = useLocaleInfo();
@@ -58,15 +61,15 @@ export function DailyCheckInQuest() {
58
61
  },
59
62
  });
60
63
  const remainingTime = useRemainingTime(endDateTime);
61
- return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "flex h-full w-full flex-col space-y-6 rounded-2xl border border-border-primary bg-bg-tertiary px-4 pt-5 pb-6", children: [_jsxs("div", { className: "flex flex-col space-y-2", children: [_jsxs("div", { className: "flex max-h-7.5 items-start justify-between", children: [_jsx(RemainingTime, {}), _jsx("button", { type: "button", className: "flex size-9 cursor-pointer items-center justify-center rounded-md border border-border-secondary bg-bg-primary", onClick: () => disclosure.setOpen(true), "aria-label": "View Rules", children: _jsx(InfoCircleIcon, { className: "size-5 text-text-disabled" }) })] }), _jsx("p", { className: "font-semibold text-xl", children: name }), _jsx(Prose, { className: "text-wrap font-normal text-sm text-text-secondary-700", dangerouslySetInnerHTML: { __html: description } })] }), _jsxs("div", { className: "flex w-full flex-col space-y-2", children: [_jsx("div", { className: "grid grid-cols-7", children: dailyCheckedInData.map((item) => {
64
+ return (_jsxs(_Fragment, { children: [_jsxs("div", { className: twMerge('flex h-full w-full flex-col space-y-6 rounded-2xl border border-border-primary bg-bg-tertiary px-4 pt-5 pb-6', classNames?.root), children: [_jsxs("div", { className: "flex flex-col space-y-2", children: [_jsxs("div", { className: "flex max-h-7.5 items-start justify-between", children: [_jsx(RemainingTime, {}), _jsx("button", { type: "button", className: "flex size-9 cursor-pointer items-center justify-center rounded-md border border-border-secondary bg-bg-primary", onClick: () => disclosure.setOpen(true), "aria-label": "View Rules", children: _jsx(InfoCircleIcon, { className: "size-5 text-text-disabled" }) })] }), _jsx("p", { className: "font-semibold text-xl", children: name }), _jsx(Prose, { className: "text-wrap font-normal text-sm text-text-secondary-700", dangerouslySetInnerHTML: { __html: description } })] }), _jsxs("div", { className: "flex w-full flex-col space-y-2", children: [_jsx("div", { className: "grid grid-cols-7", children: dailyCheckedInData.map((item) => {
62
65
  const done = item.day <= (checkInStreak ?? 0);
63
66
  const reward = item.reward ? (`+${formatNumber(item.reward, {
64
67
  currency: localeInfo.currency.code,
65
68
  minDecimalPlaces: 0,
66
69
  maxDecimalPlaces: 0,
67
70
  })}`) : done ? (_jsx(CheckIcon, { className: "size-4" })) : (_jsx(XIcon, { className: "size-4" }));
68
- return (_jsx("div", { className: twMerge('flex items-center justify-center', done ? 'text-brand-400' : 'text-text-secondary-700'), children: _jsx("p", { children: reward }) }, item.day));
69
- }) }), _jsx("div", { className: "h-2 w-full overflow-hidden rounded-full bg-bg-primary", children: _jsx("div", { className: "h-full rounded-full bg-utility-brand-600 transition-all duration-300", style: { width: `${progressPercentage}%` } }) }), _jsx("div", { className: "grid grid-cols-7 place-items-center", children: dailyCheckedInData.map((item) => (_jsxs("div", { className: "group relative size-fit text-text-secondary-700 ui-active:text-brand-400", "data-active": dataAttr(item.day <= (checkInStreak ?? 0)), children: [_jsx(CalendarIcon, { className: "h-4.5 w-auto" }), _jsx("p", { className: "-translate-x-1/2 -translate-y-1/2 absolute top-1/2 left-1/2 text-2xs leading-none", children: item.day })] }, item.day))) })] }), _jsx(Button, { onClick: () => checkInDailyQuestMutation.mutate(id), className: "disabled:bg-bg-primary disabled:text-text-disabled", disabled: status === 'COMPLETED' ||
71
+ return (_jsx("div", { className: twMerge('flex items-center justify-center', done ? 'text-brand-400' : 'text-text-secondary-700', classNames?.rewardContainer), children: _jsx("p", { children: reward }) }, item.day));
72
+ }) }), _jsx("div", { className: twMerge('h-2 w-full overflow-hidden rounded-full bg-bg-primary', classNames?.progressBarContainer), children: _jsx("div", { className: twMerge('h-full rounded-full bg-utility-brand-600 transition-all duration-300', classNames?.progressBar), style: { width: `${progressPercentage}%` } }) }), _jsx("div", { className: "grid grid-cols-7 place-items-center", children: dailyCheckedInData.map((item) => (_jsxs("div", { className: twMerge('group relative size-fit text-text-secondary-700 ui-active:text-brand-400', classNames?.calendarIconContainer), "data-active": dataAttr(item.day <= (checkInStreak ?? 0)), children: [_jsx(CalendarIcon, { className: twMerge('h-4.5 w-auto', classNames?.calendarIcon) }), _jsx("p", { className: twMerge('-translate-x-1/2 -translate-y-1/2 absolute top-1/2 left-1/2 text-2xs leading-none', classNames?.calendarDayText), children: item.day })] }, item.day))) })] }), _jsx(Button, { onClick: () => checkInDailyQuestMutation.mutate(id), className: twMerge('disabled:bg-bg-primary disabled:text-text-disabled', classNames?.checkInButton), disabled: status === 'COMPLETED' ||
70
73
  status === 'FAILED' ||
71
74
  remainingTime.expired ||
72
75
  hasCheckedInToday ||
@@ -1,8 +1,15 @@
1
1
  import { type CSSProperties, type ReactNode } from 'react';
2
+ import { type ClassNameEntries as DailyCheckInQuestClassNameEntries } from './DailyCheckInQuest';
3
+ import { type ClassNameEntries as WageringQuestClassNameEntries } from './WageringQuest';
4
+ export interface ClassNameEntries {
5
+ root?: string;
6
+ wageringQuest?: string | WageringQuestClassNameEntries;
7
+ dailyCheckInQuest?: string | DailyCheckInQuestClassNameEntries;
8
+ }
2
9
  export interface QuestsProps {
3
10
  /** @default "Quests" */
4
11
  heading?: string | ReactNode;
5
- className?: string;
12
+ className?: string | ClassNameEntries;
6
13
  style?: CSSProperties;
7
14
  }
8
15
  export declare function Quests__client(props: QuestsProps): import("react/jsx-runtime").JSX.Element;
@@ -1,17 +1,19 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { isString } from 'lodash-es';
3
4
  import Image from 'next/image';
4
5
  import { useState } from 'react';
6
+ import { twMerge } from 'tailwind-merge';
5
7
  import { z } from 'zod';
6
8
  import { useAvailableQuestsQuery } from '../../client/hooks/useAvailableQuestsQuery.js';
7
9
  import { SpinnerIcon } from '../../icons/SpinnerIcon.js';
8
10
  import closeChest from '../../images/close-chest.png';
9
11
  import { SegmentGroup } from '../../ui/SegmentGroup/index.js';
10
- import { DailyCheckInQuest } from './DailyCheckInQuest.js';
12
+ import { DailyCheckInQuest, } from './DailyCheckInQuest.js';
11
13
  import { JourneyQuest } from './JourneyQuest.js';
12
14
  import { OnboardingQuest } from './OnboardingQuest.js';
13
15
  import { QuestContext } from './QuestsContext.js';
14
- import { WageringQuest } from './WageringQuest.js';
16
+ import { WageringQuest, } from './WageringQuest.js';
15
17
  const QUEST_COMPONENT_MAP = {
16
18
  DAILY_CHECKIN: DailyCheckInQuest,
17
19
  ONBOARDING: OnboardingQuest,
@@ -20,6 +22,8 @@ const QUEST_COMPONENT_MAP = {
20
22
  };
21
23
  const TabDefinition = z.enum(['AVAILABLE', 'COMPLETED', 'FAILED']);
22
24
  export function Quests__client(props) {
25
+ const { className, style, heading } = props;
26
+ const classNames = isString(className) ? { root: className } : className;
23
27
  const [tab, setTab] = useState('AVAILABLE');
24
28
  const questsQuery = useAvailableQuestsQuery({
25
29
  refetchInterval: 10000,
@@ -39,15 +43,19 @@ export function Quests__client(props) {
39
43
  return false;
40
44
  });
41
45
  if (questsQuery.isLoading) {
42
- return (_jsxs("div", { style: props.style, className: props.className, children: [_jsx("h2", { className: "mb-3 font-semibold text-lg", children: props.heading ?? 'Quests' }), _jsx(SpinnerIcon, { className: "mx-auto size-5 h-[50vh]" })] }));
46
+ return (_jsxs("div", { style: style, className: classNames?.root, children: [_jsx("h2", { className: "mb-3 font-semibold text-lg", children: heading ?? 'Quests' }), _jsx(SpinnerIcon, { className: "mx-auto size-5 h-[50vh]" })] }));
43
47
  }
44
48
  if (!questsQuery.data?.length) {
45
- return (_jsxs("div", { style: props.style, className: props.className, children: [_jsx("h2", { className: "mb-3 font-semibold text-lg", children: props.heading ?? 'Quests' }), _jsxs("div", { className: "mt-11 flex flex-col items-center justify-center", children: [_jsx(Image, { src: closeChest, width: 100, height: 100, alt: "No Quests Available", className: "mix-blend-luminosity" }), _jsx("div", { className: "mt-4 font-semibold text-base text-text-primary-900", children: props.heading ?? 'Quests' }), _jsx("div", { className: "mt-1 text-center text-sm text-text-tertiary-600", children: "No available quests. Please check back later!" })] })] }));
49
+ return (_jsxs("div", { style: style, className: classNames?.root, children: [_jsx("h2", { className: "mb-3 font-semibold text-lg", children: heading ?? 'Quests' }), _jsxs("div", { className: "mt-11 flex flex-col items-center justify-center", children: [_jsx(Image, { src: closeChest, width: 100, height: 100, alt: "No Quests Available", className: "mix-blend-luminosity" }), _jsx("div", { className: "mt-4 font-semibold text-base text-text-primary-900", children: heading ?? 'Quests' }), _jsx("div", { className: "mt-1 text-center text-sm text-text-tertiary-600", children: "No available quests. Please check back later!" })] })] }));
46
50
  }
47
- return (_jsxs("div", { style: props.style, className: props.className, children: [_jsx("h2", { className: "font-semibold text-lg", children: props.heading ?? 'Quests' }), _jsxs(SegmentGroup.Root, { value: tab, onValueChange: (details) => {
51
+ return (_jsxs("div", { style: style, className: twMerge(classNames?.root), children: [_jsx("h2", { className: "font-semibold text-lg", children: heading ?? 'Quests' }), _jsxs(SegmentGroup.Root, { value: tab, onValueChange: (details) => {
48
52
  setTab(TabDefinition.catch('AVAILABLE').parse(details.value));
49
53
  }, className: "mt-3 w-full overflow-x-auto lg:mt-4.5 lg:w-fit", children: [_jsxs(SegmentGroup.Item, { value: "AVAILABLE", className: "w-full lg:w-fit", children: [_jsx(SegmentGroup.ItemText, { children: "Available" }), _jsx(SegmentGroup.ItemControl, {}), _jsx(SegmentGroup.ItemHiddenInput, {})] }), _jsxs(SegmentGroup.Item, { value: "COMPLETED", className: "w-full lg:w-fit", children: [_jsx(SegmentGroup.ItemText, { children: "Completed" }), _jsx(SegmentGroup.ItemControl, {}), _jsx(SegmentGroup.ItemHiddenInput, {})] }), _jsxs(SegmentGroup.Item, { value: "FAILED", className: "w-full lg:w-fit", children: [_jsx(SegmentGroup.ItemText, { children: "Failed" }), _jsx(SegmentGroup.ItemControl, {}), _jsx(SegmentGroup.ItemHiddenInput, {})] }), _jsx(SegmentGroup.Indicator, {})] }), _jsx("div", { className: "mt-3xl grid gap-3xl lg:mt-lg lg:grid-cols-3", children: quests.map((quest) => {
50
54
  const Quest = QUEST_COMPONENT_MAP[quest.type];
51
- return (_jsx(QuestContext, { value: quest, children: _jsx(Quest, {}) }, quest.id));
55
+ return (_jsx(QuestContext, { value: quest, children: _jsx(Quest, { className: quest.type === 'WAGERING'
56
+ ? classNames?.wageringQuest
57
+ : quest.type === 'DAILY_CHECKIN'
58
+ ? classNames?.dailyCheckInQuest
59
+ : '' }) }, quest.id));
52
60
  }) })] }));
53
61
  }
@@ -1 +1,11 @@
1
- export declare function WageringQuest(): import("react/jsx-runtime").JSX.Element;
1
+ export interface ClassNameEntries {
2
+ root?: string;
3
+ progressBarContainer?: string;
4
+ progressBar?: string;
5
+ bonusText?: string;
6
+ bonusAmount?: string;
7
+ bonusContainer?: string;
8
+ }
9
+ export declare function WageringQuest(props: {
10
+ className?: string | ClassNameEntries;
11
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,6 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
+ import { isString } from 'lodash-es';
3
4
  import { twMerge } from 'tailwind-merge';
4
5
  import { useControllableState } from '../../client/hooks/useControllableState.js';
5
6
  import { useDisclosure } from '../../client/hooks/useDisclosure.js';
@@ -14,17 +15,18 @@ import { Prose } from '../../ui/Prose/index.js';
14
15
  import { parseDecimal } from '../../utils/parseDecimal.js';
15
16
  import { useQuestContext } from './QuestsContext.js';
16
17
  import { RemainingTime } from './RemainingTime.js';
17
- export function WageringQuest() {
18
+ export function WageringQuest(props) {
19
+ const { className } = props;
20
+ const classNames = isString(className) ? { root: className } : className;
18
21
  const quest = useQuestContext();
19
22
  const disclosure = useDisclosure();
20
23
  const localeInfo = useLocaleInfo();
21
24
  const { progressPercentage, turnover, targetTurnover, name, description, endDateTime, bonus, status, } = quest;
22
25
  const remainingTime = useRemainingTime(endDateTime);
23
- return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "flex h-full w-full flex-col space-y-6 rounded-2xl border border-border-primary bg-bg-tertiary px-4 pt-5 pb-6", children: [_jsxs("div", { className: "flex flex-col space-y-2", children: [_jsxs("div", { className: "flex max-h-7.5 items-start justify-between", children: [_jsx(RemainingTime, {}), _jsx("button", { type: "button", className: "flex size-9 cursor-pointer items-center justify-center rounded-md border border-border-secondary bg-bg-primary", onClick: () => disclosure.setOpen(true), "aria-label": "View Rules", children: _jsx(InfoCircleIcon, { className: "size-5 text-text-disabled" }) })] }), _jsx("p", { className: "font-semibold text-xl", children: name }), _jsx(Prose, { className: "text-wrap font-normal text-sm text-text-secondary-700", dangerouslySetInnerHTML: { __html: description } })] }), _jsxs("div", { className: "flex w-full flex-col space-y-2", children: [_jsxs("div", { className: "group flex items-center justify-between text-text-primary-brand", children: [_jsxs("p", { children: ["Progress ", parseDecimal(progressPercentage, 0).toFixed(2), "%"] }), _jsxs("p", { children: [turnover, _jsxs("span", { className: "text-text-quarterary-brand", children: ["/", targetTurnover, " ", localeInfo.currency.code] })] })] }), _jsx("div", { className: "h-2 w-full overflow-hidden rounded-full bg-bg-primary", children: _jsx("div", { className: "h-full rounded-full bg-utility-brand-600 transition-all duration-300", style: { width: `${progressPercentage}%` } }) })] }), _jsx("div", { className: "flex h-full items-end", children: _jsx("div", { className: "w-full rounded-md border border-bg-primary-hover bg-button-secondary-bg px-3.5 py-2.5 text-center", children: _jsxs("p", { className: twMerge(remainingTime.expired ||
26
+ return (_jsxs(_Fragment, { children: [_jsxs("div", { className: twMerge('flex h-full w-full flex-col space-y-6 rounded-2xl border border-border-primary bg-bg-tertiary px-4 pt-5 pb-6', classNames?.root), children: [_jsxs("div", { className: "flex flex-col space-y-2", children: [_jsxs("div", { className: "flex max-h-7.5 items-start justify-between", children: [_jsx(RemainingTime, {}), _jsx("button", { type: "button", className: "flex size-9 cursor-pointer items-center justify-center rounded-md border border-border-secondary bg-bg-primary", onClick: () => disclosure.setOpen(true), "aria-label": "View Rules", children: _jsx(InfoCircleIcon, { className: "size-5 text-text-disabled" }) })] }), _jsx("p", { className: "font-semibold text-xl", children: name }), _jsx(Prose, { className: "text-wrap font-normal text-sm text-text-secondary-700", dangerouslySetInnerHTML: { __html: description } })] }), _jsxs("div", { className: "flex w-full flex-col space-y-2", children: [_jsxs("div", { className: "group flex items-center justify-between text-text-primary-brand", children: [_jsxs("p", { children: ["Progress ", parseDecimal(progressPercentage, 0).toFixed(2), "%"] }), _jsxs("p", { children: [turnover, _jsxs("span", { className: "text-text-quarterary-brand", children: ["/", targetTurnover, " ", localeInfo.currency.code] })] })] }), _jsx("div", { className: twMerge('h-2 w-full overflow-hidden rounded-full bg-bg-primary', classNames?.progressBarContainer), children: _jsx("div", { className: twMerge('h-full rounded-full bg-utility-brand-600 transition-all duration-300', classNames?.progressBar), style: { width: `${progressPercentage}%` } }) })] }), _jsx("div", { className: "flex h-full items-end", children: _jsx("div", { className: twMerge('w-full rounded-md border border-bg-primary-hover bg-button-secondary-bg px-3.5 py-2.5 text-center', classNames?.bonusContainer), children: _jsxs("p", { className: twMerge((remainingTime.expired ||
24
27
  status === 'COMPLETED' ||
25
- status === 'FAILED'
26
- ? 'opacity-50 grayscale'
27
- : ''), children: ["Complete to get ", _jsxs("span", { className: "text-brand-400", children: ["\u20B1", bonus] }), ' ', "bonus!"] }) }) })] }), _jsx(Rules, { open: disclosure.open, onOpenChange: disclosure.setOpen })] }));
28
+ status === 'FAILED') &&
29
+ 'opacity-50 grayscale', classNames?.bonusText), children: ["Complete to get", ' ', _jsxs("span", { className: twMerge('text-brand-400', classNames?.bonusAmount), children: ["\u20B1", bonus] }), ' ', "bonus!"] }) }) })] }), _jsx(Rules, { open: disclosure.open, onOpenChange: disclosure.setOpen })] }));
28
30
  }
29
31
  function Rules(props) {
30
32
  const quest = useQuestContext();