@opexa/portal-components 0.0.101 → 0.0.103

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 (218) hide show
  1. package/dist/components/Account/Account.lazy.js +1 -1
  2. package/dist/components/Account/AccountTrigger.js +1 -1
  3. package/dist/components/AccountSecurity/AccountSecurity.js +3 -1
  4. package/dist/components/AccountVerification/AccountVerification.js +1 -1
  5. package/dist/components/BetRecords/BetRecords.client.js +3 -1
  6. package/dist/components/Bonus/Bonus.client.js +1 -1
  7. package/dist/components/Cashback/Cashback.client.js +1 -1
  8. package/dist/components/DepositWithdrawal/Deposit/AvailablePromos.js +1 -1
  9. package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.js +1 -1
  10. package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.js +1 -1
  11. package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.js +1 -1
  12. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositAlert.js +1 -1
  13. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositDetails.js +1 -1
  14. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositAlert.js +1 -1
  15. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositDetails.js +2 -1
  16. package/dist/components/DepositWithdrawal/DepositWithdrawal.lazy.js +1 -1
  17. package/dist/components/DepositWithdrawal/DepositWithdrawalTrigger.js +1 -1
  18. package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/GCashWithdrawal.js +1 -1
  19. package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.js +2 -1
  20. package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/MayaAppWithdrawal.js +1 -1
  21. package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal/MayaWithdrawal.js +1 -1
  22. package/dist/components/Disclaimer/DisclaimerV1.js +1 -1
  23. package/dist/components/Disclaimer/DisclaimerV2.js +1 -1
  24. package/dist/components/Disclaimer/ResponsibleGaming.js +1 -1
  25. package/dist/components/Disclaimer/TermsOfUse.js +1 -1
  26. package/dist/components/GameLaunch/GameLaunch.lazy.js +3 -2
  27. package/dist/components/GameLaunch/GameLaunchTrigger.d.ts +1 -1
  28. package/dist/components/GameLaunch/GameLaunchTrigger.js +1 -1
  29. package/dist/components/GamesSearch/GamesSearch.js +3 -2
  30. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.js +1 -23
  31. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.module.css +184 -184
  32. package/dist/components/Jackpots/JackpotsList/JackpotsListItem.module.css +184 -184
  33. package/dist/components/Jackpots/JackpotsList/JackpotsListItemDesktop.js +1 -1
  34. package/dist/components/Jackpots/JackpotsList/JackpotsListItemMobile.js +1 -1
  35. package/dist/components/Jackpots/JackpotsList/JackpotsListItemRules.js +1 -1
  36. package/dist/components/KYC/BasicInformation.d.ts +1 -0
  37. package/dist/components/KYC/BasicInformation.js +12 -0
  38. package/dist/components/KYC/IdentityVerification.d.ts +1 -0
  39. package/dist/components/KYC/IdentityVerification.js +20 -0
  40. package/dist/components/KYC/Indicator.js +2 -3
  41. package/dist/components/KYC/KYC.d.ts +3 -1
  42. package/dist/components/KYC/KYC.js +2 -2
  43. package/dist/components/KYC/KYC.lazy.d.ts +5 -1
  44. package/dist/components/KYC/KYC.lazy.js +10 -14
  45. package/dist/components/KYC/KYCTrigger.js +1 -1
  46. package/dist/components/KYC/PersonalInformation.d.ts +1 -0
  47. package/dist/components/KYC/PersonalInformation.js +20 -0
  48. package/dist/components/KYC/{Header.js → backup/Header.js} +4 -4
  49. package/dist/components/KYC/backup/Indicator.d.ts +1 -0
  50. package/dist/components/KYC/backup/Indicator.js +9 -0
  51. package/dist/components/KYC/backup/KYC.d.ts +1 -0
  52. package/dist/components/KYC/backup/KYC.js +14 -0
  53. package/dist/components/KYC/backup/KYC.lazy.d.ts +1 -0
  54. package/dist/components/KYC/backup/KYC.lazy.js +26 -0
  55. package/dist/components/KYC/backup/KYCContext.d.ts +2 -0
  56. package/dist/components/KYC/backup/KYCContext.js +2 -0
  57. package/dist/components/KYC/{Step1.js → backup/Step1.js} +4 -4
  58. package/dist/components/KYC/{Step2.js → backup/Step2.js} +4 -4
  59. package/dist/components/KYC/{Step3.js → backup/Step3.js} +4 -4
  60. package/dist/components/KYC/{Step4.js → backup/Step4.js} +3 -3
  61. package/dist/components/KYC/backup/useKYC.d.ts +10 -0
  62. package/dist/components/KYC/backup/useKYC.js +8 -0
  63. package/dist/components/KYC/useKYC.d.ts +5 -8
  64. package/dist/components/KYC/useKYC.js +3 -0
  65. package/dist/components/Messages/MessagePopup.js +1 -1
  66. package/dist/components/Messages/MessageTrigger.js +1 -1
  67. package/dist/components/Messages/Messages.lazy.js +1 -1
  68. package/dist/components/Messages/MessagesTrigger.js +1 -1
  69. package/dist/components/Promo/Promo.client.js +1 -1
  70. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.js +1 -1
  71. package/dist/components/Quests/WageringQuest/WageringQuestModal.js +1 -1
  72. package/dist/components/Search/Search.lazy.js +2 -2
  73. package/dist/components/Search/SearchTrigger.js +1 -1
  74. package/dist/components/SignIn/MobileNumberSignIn.js +1 -1
  75. package/dist/components/SignIn/NameAndPasswordSignIn.js +1 -1
  76. package/dist/components/SignIn/SignIn.lazy.js +1 -1
  77. package/dist/components/SignIn/SignInTrigger.js +1 -1
  78. package/dist/components/SignUp/SignUp.lazy.js +1 -1
  79. package/dist/components/SignUp/SignUpForm.js +1 -1
  80. package/dist/components/SignUp/SignUpTrigger.js +1 -1
  81. package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarouselItem.module.css +184 -184
  82. package/dist/components/Tournaments/TournamentsList/TournamentItem.module.css +184 -184
  83. package/dist/components/Tournaments/TournamentsList/TournamentsListItemRules.js +1 -1
  84. package/dist/components/TransactionRecords/TableFilters.js +3 -1
  85. package/dist/services/queries.js +2351 -2351
  86. package/dist/styles/theme.css +698 -697
  87. package/dist/ui/Menu/Menu.d.ts +1047 -1
  88. package/dist/ui/Menu/Menu.js +24 -1
  89. package/dist/ui/Menu/menu.recipe.d.ts +58 -0
  90. package/dist/ui/Menu/menu.recipe.js +6 -1
  91. package/dist/ui/Portal/Portal.d.ts +7 -0
  92. package/dist/ui/Portal/Portal.js +5 -0
  93. package/dist/ui/Portal/index.d.ts +1 -0
  94. package/dist/ui/Portal/index.js +1 -0
  95. package/dist/ui/Presence/index.d.ts +1 -0
  96. package/dist/ui/Presence/index.js +1 -0
  97. package/dist/ui/Prose/Prose.d.ts +6 -0
  98. package/dist/ui/Prose/Prose.js +7 -0
  99. package/dist/ui/Prose/index.d.ts +1 -0
  100. package/dist/ui/Prose/index.js +1 -0
  101. package/dist/ui/QrCode/QrCode.d.ts +157 -0
  102. package/dist/ui/QrCode/QrCode.js +11 -0
  103. package/dist/ui/QrCode/index.d.ts +1 -0
  104. package/dist/ui/QrCode/index.js +1 -0
  105. package/dist/ui/QrCode/qrCode.recipe.d.ts +31 -0
  106. package/dist/ui/QrCode/qrCode.recipe.js +6 -0
  107. package/dist/ui/Tooltip/Tooltip.d.ts +188 -1
  108. package/dist/ui/Tooltip/Tooltip.js +11 -1
  109. package/dist/ui/Tooltip/tooltip.recipe.d.ts +31 -0
  110. package/dist/ui/Tooltip/tooltip.recipe.js +6 -1
  111. package/package.json +162 -162
  112. package/dist/client/hooks/index.d.ts +0 -65
  113. package/dist/client/hooks/index.js +0 -65
  114. package/dist/client/services/index.d.ts +0 -4
  115. package/dist/client/services/index.js +0 -4
  116. package/dist/client/utils/index.d.ts +0 -3
  117. package/dist/client/utils/index.js +0 -3
  118. package/dist/components/CashbackBonus/CashbackBonus.client.d.ts +0 -2
  119. package/dist/components/CashbackBonus/CashbackBonus.client.js +0 -9
  120. package/dist/components/CashbackBonus/CashbackBonus.d.ts +0 -10
  121. package/dist/components/CashbackBonus/CashbackBonus.js +0 -5
  122. package/dist/components/CashbackBonus/index.d.ts +0 -1
  123. package/dist/components/CashbackBonus/index.js +0 -1
  124. package/dist/components/Games/GameContext.d.ts +0 -2
  125. package/dist/components/Games/GameContext.js +0 -2
  126. package/dist/components/JackpotCounter/JackpotCounter.client.d.ts +0 -2
  127. package/dist/components/JackpotCounter/JackpotCounter.client.js +0 -66
  128. package/dist/components/JackpotCounter/JackpotCounter.d.ts +0 -17
  129. package/dist/components/JackpotCounter/JackpotCounter.js +0 -21
  130. package/dist/components/JackpotCounter/JackpotCounterItem.d.ts +0 -18
  131. package/dist/components/JackpotCounter/JackpotCounterItem.js +0 -109
  132. package/dist/components/JackpotCounter/JackpotCounterItem.module.css +0 -184
  133. package/dist/components/JackpotCounter/index.d.ts +0 -1
  134. package/dist/components/JackpotCounter/index.js +0 -1
  135. package/dist/components/Jackpots/JackpotDesktop.d.ts +0 -1
  136. package/dist/components/Jackpots/JackpotDesktop.js +0 -45
  137. package/dist/components/Jackpots/JackpotGameProviders.d.ts +0 -5
  138. package/dist/components/Jackpots/JackpotGameProviders.js +0 -41
  139. package/dist/components/Jackpots/JackpotItemDesktop.d.ts +0 -9
  140. package/dist/components/Jackpots/JackpotItemDesktop.js +0 -43
  141. package/dist/components/Jackpots/JackpotItemMobile.d.ts +0 -9
  142. package/dist/components/Jackpots/JackpotItemMobile.js +0 -44
  143. package/dist/components/Jackpots/JackpotMobile.d.ts +0 -1
  144. package/dist/components/Jackpots/JackpotMobile.js +0 -46
  145. package/dist/components/Jackpots/JackpotRules.d.ts +0 -5
  146. package/dist/components/Jackpots/JackpotRules.js +0 -11
  147. package/dist/components/Jackpots/Jackpots.client.d.ts +0 -2
  148. package/dist/components/Jackpots/Jackpots.client.js +0 -29
  149. package/dist/components/Jackpots/JackpotsContext.d.ts +0 -4
  150. package/dist/components/Jackpots/JackpotsContext.js +0 -3
  151. package/dist/components/Jackpots/useJackpotData.d.ts +0 -14
  152. package/dist/components/Jackpots/useJackpotData.js +0 -93
  153. package/dist/components/Jackpots/useJackpotItemData.d.ts +0 -20
  154. package/dist/components/Jackpots/useJackpotItemData.js +0 -87
  155. package/dist/components/Messages/MessageItem.d.ts +0 -4
  156. package/dist/components/Messages/MessageItem.js +0 -34
  157. package/dist/components/PortalProvider/WebVitals.d.ts +0 -1
  158. package/dist/components/PortalProvider/WebVitals.js +0 -8
  159. package/dist/components/Promo/PromoContent.d.ts +0 -2
  160. package/dist/components/Promo/PromoContent.js +0 -9
  161. package/dist/components/Promos/PromoCarousel.d.ts +0 -2
  162. package/dist/components/Promos/PromoCarousel.js +0 -41
  163. package/dist/components/Promos/PromoGrid.d.ts +0 -2
  164. package/dist/components/Promos/PromoGrid.js +0 -12
  165. package/dist/components/Promos/PromoItem.d.ts +0 -7
  166. package/dist/components/Promos/PromoItem.js +0 -10
  167. package/dist/components/TournamentCounter/TournamentCounter.client.d.ts +0 -2
  168. package/dist/components/TournamentCounter/TournamentCounter.client.js +0 -50
  169. package/dist/components/TournamentCounter/TournamentCounter.d.ts +0 -8
  170. package/dist/components/TournamentCounter/TournamentCounter.js +0 -21
  171. package/dist/components/TournamentCounter/TournamentCounterItem.d.ts +0 -8
  172. package/dist/components/TournamentCounter/TournamentCounterItem.js +0 -106
  173. package/dist/components/TournamentCounter/index.d.ts +0 -1
  174. package/dist/components/TournamentCounter/index.js +0 -1
  175. package/dist/components/Tournaments/TournamentDesktop.d.ts +0 -1
  176. package/dist/components/Tournaments/TournamentDesktop.js +0 -57
  177. package/dist/components/Tournaments/TournamentGameProviders.d.ts +0 -5
  178. package/dist/components/Tournaments/TournamentGameProviders.js +0 -38
  179. package/dist/components/Tournaments/TournamentItemDesktop.d.ts +0 -7
  180. package/dist/components/Tournaments/TournamentItemDesktop.js +0 -56
  181. package/dist/components/Tournaments/TournamentItemMobile.d.ts +0 -7
  182. package/dist/components/Tournaments/TournamentItemMobile.js +0 -54
  183. package/dist/components/Tournaments/TournamentMobile.d.ts +0 -1
  184. package/dist/components/Tournaments/TournamentMobile.js +0 -55
  185. package/dist/components/Tournaments/TournamentRules.d.ts +0 -5
  186. package/dist/components/Tournaments/TournamentRules.js +0 -11
  187. package/dist/components/Tournaments/Tournaments.client.d.ts +0 -2
  188. package/dist/components/Tournaments/Tournaments.client.js +0 -20
  189. package/dist/components/Tournaments/TournamentsContext.d.ts +0 -4
  190. package/dist/components/Tournaments/TournamentsContext.js +0 -3
  191. package/dist/components/Tournaments/useTournamentData.d.ts +0 -10
  192. package/dist/components/Tournaments/useTournamentData.js +0 -72
  193. package/dist/components/Tournaments/useTournamentItemData.d.ts +0 -16
  194. package/dist/components/Tournaments/useTournamentItemData.js +0 -64
  195. package/dist/components/index.d.ts +0 -33
  196. package/dist/components/index.js +0 -33
  197. package/dist/icons/index.d.ts +0 -65
  198. package/dist/icons/index.js +0 -65
  199. package/dist/images/hacksaw-gaming.png +0 -0
  200. package/dist/server/services/index.d.ts +0 -4
  201. package/dist/server/services/index.js +0 -4
  202. package/dist/server/utils/index.d.ts +0 -29
  203. package/dist/server/utils/index.js +0 -29
  204. package/dist/ui/Prose.d.ts +0 -2
  205. package/dist/ui/Prose.js +0 -5
  206. package/dist/ui/index.d.ts +0 -26
  207. package/dist/ui/index.js +0 -26
  208. package/dist/utils/index.d.ts +0 -17
  209. package/dist/utils/index.js +0 -17
  210. package/dist/utils/isMobile.d.ts +0 -5
  211. package/dist/utils/isMobile.js +0 -9
  212. /package/dist/components/KYC/{Header.d.ts → backup/Header.d.ts} +0 -0
  213. /package/dist/components/KYC/{Step1.d.ts → backup/Step1.d.ts} +0 -0
  214. /package/dist/components/KYC/{Step2.d.ts → backup/Step2.d.ts} +0 -0
  215. /package/dist/components/KYC/{Step3.d.ts → backup/Step3.d.ts} +0 -0
  216. /package/dist/components/KYC/{Step4.d.ts → backup/Step4.d.ts} +0 -0
  217. /package/dist/ui/{Presence.d.ts → Presence/Presence.d.ts} +0 -0
  218. /package/dist/ui/{Presence.js → Presence/Presence.js} +0 -0
@@ -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
+ }
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { Progress } from '@ark-ui/react';
2
+ import { Progress } from '@ark-ui/react/progress';
3
3
  import Image from 'next/image';
4
4
  import { twMerge } from 'tailwind-merge';
5
5
  import { ArrowNarrowUpRightIcon } from '../../../icons/ArrowNarrowUpRightIcon.js';
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { Progress } from '@ark-ui/react';
2
+ import { Progress } from '@ark-ui/react/progress';
3
3
  import Image from 'next/image';
4
4
  import { useState } from 'react';
5
5
  import { twMerge } from 'tailwind-merge';
@@ -1,8 +1,8 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Portal } from '@ark-ui/react';
3
2
  import { Flag06Icon } from '../../../icons/Flag06Icon.js';
4
3
  import { XIcon } from '../../../icons/XIcon.js';
5
4
  import { Dialog } from '../../../ui/Dialog/index.js';
5
+ import { Portal } from '../../../ui/Portal/index.js';
6
6
  import { useJackpotsListItemContext } from './JackpotsListContext.js';
7
7
  export function JackpotsListItemRules(props) {
8
8
  const jackpot = useJackpotsListItemContext();
@@ -0,0 +1 @@
1
+ export declare function BasicInformation(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,12 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Button } from '../../ui/Button/index.js';
3
+ import { Dialog } from '../../ui/Dialog/index.js';
4
+ import { Field } from '../../ui/Field/index.js';
5
+ import { useKYCContext } from './KYCContext.js';
6
+ export function BasicInformation() {
7
+ const kyc = useKYCContext();
8
+ 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: (e) => {
9
+ e.preventDefault();
10
+ kyc.setStep(2);
11
+ }, children: [_jsxs(Field.Root, { children: [_jsx(Field.Label, { children: "Real Name" }), _jsx(Field.Input, { placeholder: "Enter your real name" })] }), _jsxs(Field.Root, { className: "mt-3", children: [_jsx(Field.Label, { children: "Date of Birth" }), _jsx(Field.Input, { type: "date" })] }), _jsx(Button, { type: "submit", className: "mt-8", children: "Continue" })] })] }));
12
+ }
@@ -0,0 +1 @@
1
+ export declare function IdentityVerification(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,20 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { HelpCircleIcon } from '../../icons/HelpCircleIcon.js';
3
+ import { UploadCloud02Icon } from '../../icons/UploadCloud02Icon.js';
4
+ import { Button } from '../../ui/Button/index.js';
5
+ import { Dialog } from '../../ui/Dialog/index.js';
6
+ import { Field } from '../../ui/Field/index.js';
7
+ import { useKYCContext } from './KYCContext.js';
8
+ export function IdentityVerification() {
9
+ const kyc = useKYCContext();
10
+ 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-2xs 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: (e) => {
11
+ e.preventDefault();
12
+ kyc.setStep(3);
13
+ }, children: [_jsxs(Field.Root, { children: [_jsxs(Field.Label, { className: "flex items-center gap-1.5", children: [_jsx("span", { children: "Front of your ID" }), _jsx(HelpCircleIcon, { className: "text-text-quinary size-4" })] }), _jsx(UploadIdDocument, {})] }), _jsxs(Field.Root, { className: "mt-3", children: [_jsxs(Field.Label, { className: "flex items-center gap-1.5", children: [_jsx("span", { children: "Selfie holding your ID" }), _jsx(HelpCircleIcon, { className: "text-text-quinary size-4" })] }), _jsx(UploadSelfie, {})] }), _jsx(Button, { type: "submit", className: "mt-6", children: "Continue" }), _jsx(Button, { variant: "outline", colorScheme: "gray", className: "mt-lg", children: "Skip for now" })] })] }));
14
+ }
15
+ function UploadIdDocument() {
16
+ return (_jsxs("div", { className: "border-border-primary bg-bg-primary flex min-h-[11.25rem] flex-col justify-center gap-lg rounded-xl border px-3xl py-xl", children: [_jsx("div", { className: "border-border-primary shadow-xs mx-auto flex size-8 items-center justify-center rounded-sm border", children: _jsx(UploadCloud02Icon, { className: "text-text-quinary size-4" }) }), _jsxs("p", { className: "text-text-tertiary-600 text-center text-sm", children: [_jsx("span", { className: "text-button-secondary-fg font-semibold", children: "Click to upload" }), ' ', "or drag and drop", _jsx("br", {}), "PNG, JPG or JPEG (max. 10mb)", _jsx("br", {}), "or"] }), _jsx(Button, { size: "xs", variant: "outline", className: "mx-auto w-fit", children: "Take a photo" })] }));
17
+ }
18
+ function UploadSelfie() {
19
+ return (_jsxs("div", { className: "border-border-primary bg-bg-primary flex min-h-[11.25rem] flex-col justify-center gap-lg rounded-xl border px-3xl py-xl", children: [_jsx("div", { className: "border-border-primary shadow-xs mx-auto flex size-8 items-center justify-center rounded-sm border", children: _jsx(UploadCloud02Icon, { className: "text-text-quinary size-4" }) }), _jsx(Button, { size: "xs", variant: "outline", className: "mx-auto w-fit", children: "Take a photo" })] }));
20
+ }
@@ -1,9 +1,8 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { noop } from 'lodash-es';
3
- import { ArrowLeftIcon } from '../../icons/ArrowLeftIcon.js';
4
3
  import { Progress } from '../../ui/Progress/index.js';
5
4
  import { useKYCContext } from './KYCContext.js';
6
5
  export function Indicator() {
7
- const context = useKYCContext();
8
- return (_jsxs("div", { className: "mt-xl grid grid-cols-[max-content_auto_auto] items-center px-xl lg:mt-md lg:px-0", children: [_jsxs("button", { className: "text-text-tertiary-600 flex items-center gap-sm text-sm font-semibold", children: [_jsx(ArrowLeftIcon, { className: "size-5" }), "Back"] }), _jsxs("div", { className: "flex justify-center gap-2", children: [_jsx(Progress.Root, { className: "w-[5.625rem] shrink-0", value: context.step >= 2 ? 100 : 50, onValueChange: noop, children: _jsx(Progress.Track, { children: _jsx(Progress.Range, {}) }) }), _jsx(Progress.Root, { className: "w-[5.625rem] shrink-0", value: context.step >= 3 ? 50 : 0, onValueChange: noop, children: _jsx(Progress.Track, { children: _jsx(Progress.Range, {}) }) })] })] }));
6
+ const kyc = useKYCContext();
7
+ return (_jsxs("div", { className: "flex items-center justify-center gap-1.5 py-3", children: [_jsx(Progress.Root, { className: "w-10 shrink-0", value: kyc.step <= 1 ? 50 : 100, onValueChange: noop, children: _jsx(Progress.Track, { className: "bg-bg-primary-hover", children: _jsx(Progress.Range, {}) }) }), _jsx(Progress.Root, { className: "w-10 shrink-0", value: kyc.step < 2 ? 0 : kyc.step === 2 ? 50 : 100, onValueChange: noop, children: _jsx(Progress.Track, { className: "bg-bg-primary-hover", children: _jsx(Progress.Range, {}) }) }), _jsx(Progress.Root, { className: "w-10 shrink-0", value: kyc.done ? 100 : kyc.step < 3 ? 0 : 50, onValueChange: noop, children: _jsx(Progress.Track, { className: "bg-bg-primary-hover", children: _jsx(Progress.Range, {}) }) })] }));
9
8
  }
@@ -1 +1,3 @@
1
- export declare function KYC(): import("react/jsx-runtime").JSX.Element | undefined;
1
+ import type { KYCProps } from './KYC.lazy';
2
+ export declare function KYC(props: KYCProps): import("react/jsx-runtime").JSX.Element | undefined;
3
+ export type { KYCProps };
@@ -7,8 +7,8 @@ const Component = dynamic(() => import('./KYC.lazy.js').then((m) => m.KYC), {
7
7
  ssr: false,
8
8
  loading: () => null,
9
9
  });
10
- export function KYC() {
10
+ export function KYC(props) {
11
11
  const touched = useGlobalStore(useShallow((ctx) => ctx.kyc['~touched']));
12
12
  if (touched)
13
- return _jsx(Component, {});
13
+ return _jsx(Component, { ...props });
14
14
  }
@@ -1 +1,5 @@
1
- export declare function KYC(): import("react/jsx-runtime").JSX.Element;
1
+ import type { ImageProps } from 'next/image';
2
+ export interface KYCProps {
3
+ logo: ImageProps['src'];
4
+ }
5
+ export declare function KYC(props: KYCProps): import("react/jsx-runtime").JSX.Element;
@@ -1,26 +1,22 @@
1
- 'use client';
2
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { Portal } from '@ark-ui/react';
4
- import { twMerge } from 'tailwind-merge';
2
+ import Image from 'next/image';
5
3
  import { useShallow } from 'zustand/shallow';
6
4
  import { useGlobalStore } from '../../client/hooks/useGlobalStore.js';
5
+ import { XIcon } from '../../icons/XIcon.js';
7
6
  import { Dialog } from '../../ui/Dialog/index.js';
8
- import { Header } from './Header.js';
7
+ import { Portal } from '../../ui/Portal/index.js';
8
+ import { BasicInformation } from './BasicInformation.js';
9
+ import { IdentityVerification } from './IdentityVerification.js';
9
10
  import { Indicator } from './Indicator.js';
10
11
  import { KYCContext } from './KYCContext.js';
11
- import { Step1 } from './Step1.js';
12
- import { Step2 } from './Step2.js';
13
- import { Step3 } from './Step3.js';
14
- import { Step4 } from './Step4.js';
12
+ import { PersonalInformation } from './PersonalInformation.js';
15
13
  import { useKYC } from './useKYC.js';
16
- export function KYC() {
14
+ export function KYC(props) {
15
+ const kyc = useKYC();
17
16
  const globalStore = useGlobalStore(useShallow((ctx) => ({
18
17
  kyc: ctx.kyc,
19
18
  })));
20
- const context = useKYC();
21
- return (_jsx(KYCContext, { value: context, children: _jsx(Dialog.Root, { open: globalStore.kyc.open, onOpenChange: (details) => {
19
+ return (_jsx(KYCContext, { value: kyc, children: _jsx(Dialog.Root, { open: globalStore.kyc.open, onOpenChange: (details) => {
22
20
  globalStore.kyc.setOpen(details.open);
23
- }, lazyMount: true, unmountOnExit: true, closeOnEscape: false, closeOnInteractOutside: false, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, {}), _jsx(Dialog.Positioner, { className: twMerge(context.step === 4 && 'flex items-center'), children: _jsxs(Dialog.Content, { className: twMerge(context.step < 4
24
- ? 'bg-bg-primary lg:bg-bg-primary-alt mx-auto h-full w-full lg:h-auto lg:w-[400px] lg:p-3xl'
25
- : 'mx-auto w-[25rem] max-w-[calc(100%-2rem)] p-3xl'), children: [context.step < 4 && _jsx(Header, {}), context.step < 4 && _jsx(Indicator, {}), context.step === 1 && _jsx(Step1, {}), context.step === 2 && _jsx(Step2, {}), context.step === 3 && _jsx(Step3, {}), context.step === 4 && _jsx(Step4, {})] }) })] }) }) }));
21
+ }, lazyMount: true, unmountOnExit: true, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, {}), _jsx(Dialog.Positioner, { children: _jsxs(Dialog.Content, { className: "bg-bg-primary-alt mx-auto size-full p-3xl lg:h-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, {})] }) })] }) }) }));
26
22
  }
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
- import { ark } from '@ark-ui/react';
3
+ import { ark } from '@ark-ui/react/factory';
4
4
  import { useShallow } from 'zustand/shallow';
5
5
  import { useGlobalStore } from '../../client/hooks/useGlobalStore.js';
6
6
  export function KYCTrigger(props) {
@@ -0,0 +1 @@
1
+ export declare function PersonalInformation(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,20 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useShallow } from 'zustand/shallow';
3
+ import { useGlobalStore } from '../../client/hooks/useGlobalStore.js';
4
+ import { CheckIcon } from '../../icons/CheckIcon.js';
5
+ import { Button } from '../../ui/Button/index.js';
6
+ import { Checkbox } from '../../ui/Checkbox/index.js';
7
+ import { Dialog } from '../../ui/Dialog/index.js';
8
+ import { Field } from '../../ui/Field/index.js';
9
+ import { useKYCContext } from './KYCContext.js';
10
+ export function PersonalInformation() {
11
+ const kyc = useKYCContext();
12
+ const globalStore = useGlobalStore(useShallow((ctx) => ({
13
+ kyc: ctx.kyc,
14
+ })));
15
+ 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: (e) => {
16
+ e.preventDefault();
17
+ kyc.setDone(true);
18
+ globalStore.kyc.setOpen(false);
19
+ }, children: [_jsxs(Field.Root, { children: [_jsx(Field.Label, { children: "Permanent address" }), _jsx(Field.Input, { placeholder: "Enter your permanent address" })] }), _jsxs(Field.Root, { className: "mt-2xl", children: [_jsx(Field.Label, { children: "Current address" }), _jsx(Field.Input, { placeholder: "Enter your current address" })] }), _jsxs(Checkbox.Root, { className: "mt-md", 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", children: [_jsx(Field.Label, { children: "Source of income" }), _jsx(Field.Input, { placeholder: "Enter your source of income" })] }), _jsxs(Field.Root, { className: "mt-2xl", children: [_jsx(Field.Label, { children: "Work Description" }), _jsx(Field.Input, { placeholder: "Enter your work description" })] }), _jsxs(Field.Root, { className: "mt-2xl", children: [_jsx(Field.Label, { children: "Place of birth" }), _jsx(Field.Input, { placeholder: "Enter your place of birth" })] }), _jsxs(Field.Root, { className: "mt-2xl", children: [_jsx(Field.Label, { children: "Nationality" }), _jsx(Field.Input, { placeholder: "Enter your nationality" })] }), _jsx(Button, { type: "submit", className: "mt-4xl", children: "Continue" }), _jsx(Button, { variant: "outline", colorScheme: "gray", className: "mt-lg", children: "Skip for now" })] })] }));
20
+ }
@@ -1,8 +1,8 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { ChevronLeftIcon } from '../../icons/ChevronLeftIcon.js';
3
- import { XIcon } from '../../icons/XIcon.js';
4
- import { Dialog } from '../../ui/Dialog/index.js';
5
- import { IconButton } from '../../ui/IconButton/index.js';
2
+ import { ChevronLeftIcon } from '../../../icons/ChevronLeftIcon.js';
3
+ import { XIcon } from '../../../icons/XIcon.js';
4
+ import { Dialog } from '../../../ui/Dialog/index.js';
5
+ import { IconButton } from '../../../ui/IconButton/index.js';
6
6
  export function Header() {
7
7
  return (_jsx(Dialog.Context, { children: (api) => (_jsxs("div", { className: "bg-bg-primary-alt relative flex items-center gap-xl px-xl py-md lg:justify-center lg:bg-transparent lg:p-0", children: [_jsx(IconButton, { size: "2xs", variant: "outline", colorScheme: "gray", className: "lg:hidden", onClick: () => api.setOpen(false), children: _jsx(ChevronLeftIcon, {}) }), _jsx(Dialog.Title, { className: "text-lg font-semibold", children: "Personal Verification" }), _jsx("button", { type: "button", className: "text-text-quinary absolute right-0 top-1/2 hidden -translate-y-1/2 lg:block", onClick: () => api.setOpen(false), children: _jsx(XIcon, { className: "size-6" }) })] })) }));
8
8
  }
@@ -0,0 +1 @@
1
+ export declare function Indicator(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { noop } from 'lodash-es';
3
+ import { ArrowLeftIcon } from '../../../icons/ArrowLeftIcon.js';
4
+ import { Progress } from '../../../ui/Progress/index.js';
5
+ import { useKYCContext } from './KYCContext.js';
6
+ export function Indicator() {
7
+ const context = useKYCContext();
8
+ return (_jsxs("div", { className: "mt-xl grid grid-cols-[max-content_auto_auto] items-center px-xl lg:mt-md lg:px-0", children: [_jsxs("button", { className: "text-text-tertiary-600 flex items-center gap-sm text-sm font-semibold", children: [_jsx(ArrowLeftIcon, { className: "size-5" }), "Back"] }), _jsxs("div", { className: "flex justify-center gap-2", children: [_jsx(Progress.Root, { className: "w-[5.625rem] shrink-0", value: context.step >= 2 ? 100 : 50, onValueChange: noop, children: _jsx(Progress.Track, { children: _jsx(Progress.Range, {}) }) }), _jsx(Progress.Root, { className: "w-[5.625rem] shrink-0", value: context.step >= 3 ? 50 : 0, onValueChange: noop, children: _jsx(Progress.Track, { children: _jsx(Progress.Range, {}) }) })] })] }));
9
+ }
@@ -0,0 +1 @@
1
+ export declare function KYC(): import("react/jsx-runtime").JSX.Element | undefined;
@@ -0,0 +1,14 @@
1
+ 'use client';
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import dynamic from 'next/dynamic';
4
+ import { useShallow } from 'zustand/shallow';
5
+ import { useGlobalStore } from '../../../client/hooks/useGlobalStore.js';
6
+ const Component = dynamic(() => import('./KYC.lazy.js').then((m) => m.KYC), {
7
+ ssr: false,
8
+ loading: () => null,
9
+ });
10
+ export function KYC() {
11
+ const touched = useGlobalStore(useShallow((ctx) => ctx.kyc['~touched']));
12
+ if (touched)
13
+ return _jsx(Component, {});
14
+ }
@@ -0,0 +1 @@
1
+ export declare function KYC(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,26 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { twMerge } from 'tailwind-merge';
4
+ import { useShallow } from 'zustand/shallow';
5
+ import { useGlobalStore } from '../../../client/hooks/useGlobalStore.js';
6
+ import { Dialog } from '../../../ui/Dialog/index.js';
7
+ import { Portal } from '../../../ui/Portal/index.js';
8
+ import { Header } from './Header.js';
9
+ import { Indicator } from './Indicator.js';
10
+ import { KYCContext } from './KYCContext.js';
11
+ import { Step1 } from './Step1.js';
12
+ import { Step2 } from './Step2.js';
13
+ import { Step3 } from './Step3.js';
14
+ import { Step4 } from './Step4.js';
15
+ import { useKYC } from './useKYC.js';
16
+ export function KYC() {
17
+ const globalStore = useGlobalStore(useShallow((ctx) => ({
18
+ kyc: ctx.kyc,
19
+ })));
20
+ const context = useKYC();
21
+ return (_jsx(KYCContext, { value: context, children: _jsx(Dialog.Root, { open: globalStore.kyc.open, onOpenChange: (details) => {
22
+ globalStore.kyc.setOpen(details.open);
23
+ }, lazyMount: true, unmountOnExit: true, closeOnEscape: false, closeOnInteractOutside: false, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, {}), _jsx(Dialog.Positioner, { className: twMerge(context.step === 4 && 'flex items-center'), children: _jsxs(Dialog.Content, { className: twMerge(context.step < 4
24
+ ? 'bg-bg-primary lg:bg-bg-primary-alt mx-auto h-full w-full lg:h-auto lg:w-[400px] lg:p-3xl'
25
+ : 'mx-auto w-[25rem] max-w-[calc(100%-2rem)] p-3xl'), children: [context.step < 4 && _jsx(Header, {}), context.step < 4 && _jsx(Indicator, {}), context.step === 1 && _jsx(Step1, {}), context.step === 2 && _jsx(Step2, {}), context.step === 3 && _jsx(Step3, {}), context.step === 4 && _jsx(Step4, {})] }) })] }) }) }));
26
+ }