@opexa/portal-components 0.0.28 → 0.0.30

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 (747) hide show
  1. package/dist/client/hooks/index.js +54 -54
  2. package/dist/client/hooks/useAccountQuery.d.ts +1 -1
  3. package/dist/client/hooks/useAccountQuery.js +4 -4
  4. package/dist/client/hooks/useAuthenticateMutation.d.ts +1 -1
  5. package/dist/client/hooks/useAuthenticateMutation.js +2 -2
  6. package/dist/client/hooks/useAvailablePromosQuery.d.ts +1 -1
  7. package/dist/client/hooks/useAvailablePromosQuery.js +4 -4
  8. package/dist/client/hooks/useBetRecordsQuery.d.ts +1 -1
  9. package/dist/client/hooks/useBetRecordsQuery.js +4 -4
  10. package/dist/client/hooks/useBonusesQuery.d.ts +1 -1
  11. package/dist/client/hooks/useBonusesQuery.js +4 -4
  12. package/dist/client/hooks/useCashbacksQuery.d.ts +1 -1
  13. package/dist/client/hooks/useCashbacksQuery.js +2 -2
  14. package/dist/client/hooks/useCreateGCashDepositMutation.d.ts +1 -1
  15. package/dist/client/hooks/useCreateGCashDepositMutation.js +3 -3
  16. package/dist/client/hooks/useCreateGCashWithdrawalMutation.d.ts +1 -1
  17. package/dist/client/hooks/useCreateGCashWithdrawalMutation.js +3 -3
  18. package/dist/client/hooks/useCreateGameSessionMutation.d.ts +1 -1
  19. package/dist/client/hooks/useCreateGameSessionMutation.js +3 -3
  20. package/dist/client/hooks/useCreateInstapayWithdrawalMutation.d.ts +1 -1
  21. package/dist/client/hooks/useCreateInstapayWithdrawalMutation.js +3 -3
  22. package/dist/client/hooks/useCreateMayaAppDepositMutation.d.ts +1 -1
  23. package/dist/client/hooks/useCreateMayaAppDepositMutation.js +3 -3
  24. package/dist/client/hooks/useCreateMayaAppWithdrawalMutation.d.ts +1 -1
  25. package/dist/client/hooks/useCreateMayaAppWithdrawalMutation.js +3 -3
  26. package/dist/client/hooks/useCreateMayaDepositMutation.d.ts +1 -1
  27. package/dist/client/hooks/useCreateMayaDepositMutation.js +3 -3
  28. package/dist/client/hooks/useCreateMayaWithdrawalMutation.d.ts +1 -1
  29. package/dist/client/hooks/useCreateMayaWithdrawalMutation.js +3 -3
  30. package/dist/client/hooks/useCreateOnlineBankDepositMutation.d.ts +1 -1
  31. package/dist/client/hooks/useCreateOnlineBankDepositMutation.js +3 -3
  32. package/dist/client/hooks/useCreateQRPHDepositMutation.d.ts +1 -1
  33. package/dist/client/hooks/useCreateQRPHDepositMutation.js +3 -3
  34. package/dist/client/hooks/useDepositQuery.d.ts +1 -1
  35. package/dist/client/hooks/useDepositQuery.js +4 -4
  36. package/dist/client/hooks/useDepositRecordsQuery.d.ts +1 -1
  37. package/dist/client/hooks/useDepositRecordsQuery.js +4 -4
  38. package/dist/client/hooks/useDepositsCountQuery.d.ts +1 -1
  39. package/dist/client/hooks/useDepositsCountQuery.js +4 -4
  40. package/dist/client/hooks/useDisclosure.js +1 -1
  41. package/dist/client/hooks/useEndGameSessionMutation.d.ts +1 -1
  42. package/dist/client/hooks/useEndGameSessionMutation.js +3 -3
  43. package/dist/client/hooks/useFavoriteGamesQuery.d.ts +1 -1
  44. package/dist/client/hooks/useFavoriteGamesQuery.js +4 -4
  45. package/dist/client/hooks/useGamesQuery.d.ts +1 -1
  46. package/dist/client/hooks/useGamesQuery.js +2 -2
  47. package/dist/client/hooks/useInfiniteQueryHelper.d.ts +1 -1
  48. package/dist/client/hooks/useInstapayBankListQuery.d.ts +1 -1
  49. package/dist/client/hooks/useInstapayBankListQuery.js +4 -4
  50. package/dist/client/hooks/useIsMayaSessionValidQuery.d.ts +1 -1
  51. package/dist/client/hooks/useIsMayaSessionValidQuery.js +4 -4
  52. package/dist/client/hooks/useJackpotPayoutsQuery.d.ts +1 -1
  53. package/dist/client/hooks/useJackpotPayoutsQuery.js +2 -2
  54. package/dist/client/hooks/useJackpotsQuery.d.ts +1 -1
  55. package/dist/client/hooks/useJackpotsQuery.js +2 -2
  56. package/dist/client/hooks/useLocaleInfo.d.ts +1 -1
  57. package/dist/client/hooks/useLocaleInfo.js +2 -2
  58. package/dist/client/hooks/useMarkGameAsFavoriteMutation.d.ts +1 -1
  59. package/dist/client/hooks/useMarkGameAsFavoriteMutation.js +3 -3
  60. package/dist/client/hooks/useMarkMessageAsReadMutation.d.ts +1 -1
  61. package/dist/client/hooks/useMarkMessageAsReadMutation.js +3 -3
  62. package/dist/client/hooks/useMemberVerificationQuery.d.ts +1 -1
  63. package/dist/client/hooks/useMemberVerificationQuery.js +4 -4
  64. package/dist/client/hooks/useMessagesQuery.d.ts +1 -1
  65. package/dist/client/hooks/useMessagesQuery.js +4 -4
  66. package/dist/client/hooks/useMobileNumberParser.js +1 -1
  67. package/dist/client/hooks/usePaymentSettingsQuery.d.ts +1 -1
  68. package/dist/client/hooks/usePaymentSettingsQuery.js +4 -4
  69. package/dist/client/hooks/usePlatformQuery.d.ts +1 -1
  70. package/dist/client/hooks/usePlatformQuery.js +2 -2
  71. package/dist/client/hooks/useProfileCompletionQuery.d.ts +1 -1
  72. package/dist/client/hooks/useProfileCompletionQuery.js +4 -4
  73. package/dist/client/hooks/usePromoQuery.d.ts +1 -1
  74. package/dist/client/hooks/usePromoQuery.js +2 -2
  75. package/dist/client/hooks/usePromosQuery.d.ts +1 -1
  76. package/dist/client/hooks/usePromosQuery.js +2 -2
  77. package/dist/client/hooks/useSendVerificationCodeMutation.d.ts +1 -1
  78. package/dist/client/hooks/useSendVerificationCodeMutation.js +2 -2
  79. package/dist/client/hooks/useSessionQuery.d.ts +1 -1
  80. package/dist/client/hooks/useSessionQuery.js +2 -2
  81. package/dist/client/hooks/useSignInMutation.d.ts +1 -1
  82. package/dist/client/hooks/useSignInMutation.js +2 -2
  83. package/dist/client/hooks/useSignOutMutation.d.ts +1 -1
  84. package/dist/client/hooks/useSignOutMutation.js +2 -2
  85. package/dist/client/hooks/useSignUpMutation.d.ts +1 -1
  86. package/dist/client/hooks/useSignUpMutation.js +2 -2
  87. package/dist/client/hooks/useTopWinsQuery.d.ts +1 -1
  88. package/dist/client/hooks/useTopWinsQuery.js +2 -2
  89. package/dist/client/hooks/useTournamentsQuery.d.ts +1 -1
  90. package/dist/client/hooks/useTournamentsQuery.js +2 -2
  91. package/dist/client/hooks/useTransactionRecordsQuery.d.ts +1 -1
  92. package/dist/client/hooks/useTransactionRecordsQuery.js +4 -4
  93. package/dist/client/hooks/useUnmarkGameAsFavoriteMutation.d.ts +1 -1
  94. package/dist/client/hooks/useUnmarkGameAsFavoriteMutation.js +3 -3
  95. package/dist/client/hooks/useUnreadMessagesCountQuery.d.ts +1 -1
  96. package/dist/client/hooks/useUnreadMessagesCountQuery.js +4 -4
  97. package/dist/client/hooks/useWalletQuery.d.ts +1 -1
  98. package/dist/client/hooks/useWalletQuery.js +4 -4
  99. package/dist/client/hooks/useWithdrawalRecordsQuery.d.ts +1 -1
  100. package/dist/client/hooks/useWithdrawalRecordsQuery.js +4 -4
  101. package/dist/client/services/authenticate.js +1 -1
  102. package/dist/client/services/getSession.d.ts +1 -1
  103. package/dist/client/services/index.js +4 -4
  104. package/dist/client/services/signIn.js +1 -1
  105. package/dist/client/utils/{createRecipeContext.jsx → createRecipeContext.js} +5 -8
  106. package/dist/client/utils/index.js +2 -2
  107. package/dist/components/Account/Account.d.ts +1 -1
  108. package/dist/components/Account/Account.js +127 -0
  109. package/dist/components/Account/index.js +1 -1
  110. package/dist/components/AccountInfo/AccountInfo.d.ts +1 -1
  111. package/dist/components/AccountInfo/AccountInfo.js +18 -0
  112. package/dist/components/AccountInfo/index.js +1 -1
  113. package/dist/components/AccountPaymentMethods/index.js +1 -1
  114. package/dist/components/AccountSecurity/AccountSecurity.d.ts +1 -1
  115. package/dist/components/AccountSecurity/AccountSecurity.js +47 -0
  116. package/dist/components/AccountSecurity/index.js +1 -1
  117. package/dist/components/AccountVerification/index.js +1 -1
  118. package/dist/components/Banner/Banner.d.ts +1 -1
  119. package/dist/components/Banner/Banner.js +38 -0
  120. package/dist/components/Banner/index.js +1 -1
  121. package/dist/components/BetRecords/BetRecords.d.ts +1 -1
  122. package/dist/components/BetRecords/BetRecords.js +192 -0
  123. package/dist/components/BetRecords/index.js +1 -1
  124. package/dist/components/Bonus/Bonus.client.d.ts +1 -1
  125. package/dist/components/Bonus/Bonus.client.js +9 -0
  126. package/dist/components/Bonus/Bonus.d.ts +1 -1
  127. package/dist/components/Bonus/Bonus.js +5 -0
  128. package/dist/components/Bonus/index.js +1 -1
  129. package/dist/components/Bonuses/Bonuses.d.ts +1 -1
  130. package/dist/components/Bonuses/Bonuses.js +15 -0
  131. package/dist/components/Bonuses/index.js +1 -1
  132. package/dist/components/DepositWithdrawal/AmountChoices.d.ts +1 -1
  133. package/dist/components/DepositWithdrawal/{AmountChoices.jsx → AmountChoices.js} +7 -10
  134. package/dist/components/DepositWithdrawal/Deposit/AvailablePromos.d.ts +1 -1
  135. package/dist/components/DepositWithdrawal/Deposit/AvailablePromos.js +26 -0
  136. package/dist/components/DepositWithdrawal/Deposit/Deposit.d.ts +1 -1
  137. package/dist/components/DepositWithdrawal/Deposit/{Deposit.jsx → Deposit.js} +13 -23
  138. package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.d.ts +1 -1
  139. package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.js +141 -0
  140. package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.d.ts +1 -1
  141. package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.js +147 -0
  142. package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.d.ts +1 -1
  143. package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.js +141 -0
  144. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDeposit.d.ts +1 -1
  145. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDeposit.js +11 -0
  146. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.d.ts +1 -1
  147. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.js +129 -0
  148. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositLoading.d.ts +1 -1
  149. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositLoading.js +5 -0
  150. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositSuccess.d.ts +1 -1
  151. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositSuccess.js +5 -0
  152. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.d.ts +1 -1
  153. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.js +14 -0
  154. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/{useOnlineBankDeposit.jsx → useOnlineBankDeposit.js} +2 -2
  155. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDeposit.d.ts +1 -1
  156. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDeposit.js +11 -0
  157. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.d.ts +1 -1
  158. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.js +128 -0
  159. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositLoading.d.ts +1 -1
  160. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositLoading.js +5 -0
  161. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.d.ts +1 -1
  162. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.js +18 -0
  163. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.d.ts +1 -1
  164. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.js +8 -0
  165. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/{useQRPHDeposit.jsx → useQRPHDeposit.js} +2 -2
  166. package/dist/components/DepositWithdrawal/DepositWithdrawal.d.ts +1 -1
  167. package/dist/components/DepositWithdrawal/DepositWithdrawal.js +39 -0
  168. package/dist/components/DepositWithdrawal/DepositWithdrawalTrigger.d.ts +1 -1
  169. package/dist/components/DepositWithdrawal/{DepositWithdrawalTrigger.jsx → DepositWithdrawalTrigger.js} +4 -3
  170. package/dist/components/DepositWithdrawal/MayaSessionExpired.d.ts +1 -1
  171. package/dist/components/DepositWithdrawal/MayaSessionExpired.js +5 -0
  172. package/dist/components/DepositWithdrawal/PaymentMethods.d.ts +1 -1
  173. package/dist/components/DepositWithdrawal/PaymentMethods.js +59 -0
  174. package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/GCashWithdrawal.d.ts +1 -1
  175. package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/GCashWithdrawal.js +105 -0
  176. package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.d.ts +1 -1
  177. package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.js +128 -0
  178. package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/MayaAppWithdrawal.d.ts +1 -1
  179. package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/{MayaAppWithdrawal.jsx → MayaAppWithdrawal.js} +21 -74
  180. package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal/MayaWithdrawal.d.ts +1 -1
  181. package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal/MayaWithdrawal.js +105 -0
  182. package/dist/components/DepositWithdrawal/Withdrawal/Withdrawal.d.ts +1 -1
  183. package/dist/components/DepositWithdrawal/Withdrawal/{Withdrawal.jsx → Withdrawal.js} +17 -40
  184. package/dist/components/DepositWithdrawal/index.js +1 -1
  185. package/dist/components/Disclaimer/Disclaimer.d.ts +1 -1
  186. package/dist/components/Disclaimer/Disclaimer.js +14 -0
  187. package/dist/components/Disclaimer/index.js +1 -1
  188. package/dist/components/Disclaimer/{useDisclaimer.jsx → useDisclaimer.js} +2 -2
  189. package/dist/components/Empty.d.ts +1 -1
  190. package/dist/components/Empty.js +7 -0
  191. package/dist/components/FavoriteGames/FavoriteGames.client.d.ts +1 -1
  192. package/dist/components/FavoriteGames/FavoriteGames.client.js +31 -0
  193. package/dist/components/FavoriteGames/FavoriteGames.d.ts +1 -1
  194. package/dist/components/FavoriteGames/FavoriteGames.js +7 -0
  195. package/dist/components/FavoriteGames/index.js +1 -1
  196. package/dist/components/GameLaunch/GameLaunch.d.ts +1 -1
  197. package/dist/components/GameLaunch/GameLaunch.js +99 -0
  198. package/dist/components/GameLaunch/GameLaunchTrigger.d.ts +1 -1
  199. package/dist/components/GameLaunch/{GameLaunchTrigger.jsx → GameLaunchTrigger.js} +6 -5
  200. package/dist/components/GameLaunch/index.js +2 -2
  201. package/dist/components/GameProviders/GameProviders.d.ts +2 -2
  202. package/dist/components/GameProviders/GameProviders.js +32 -0
  203. package/dist/components/GameProviders/index.js +1 -1
  204. package/dist/components/Games/Games.client.d.ts +1 -1
  205. package/dist/components/Games/Games.client.js +84 -0
  206. package/dist/components/Games/Games.d.ts +1 -1
  207. package/dist/components/Games/Games.js +11 -0
  208. package/dist/components/Games/index.js +1 -1
  209. package/dist/components/GamesSearch/GamesSearch.d.ts +1 -1
  210. package/dist/components/GamesSearch/GamesSearch.js +38 -0
  211. package/dist/components/GamesSearch/GamesSearchTrigger.d.ts +1 -1
  212. package/dist/components/GamesSearch/{GamesSearchTrigger.jsx → GamesSearchTrigger.js} +4 -3
  213. package/dist/components/GamesSearch/index.js +2 -2
  214. package/dist/components/InfiniteScroll.d.ts +1 -1
  215. package/dist/components/{InfiniteScroll.jsx → InfiniteScroll.js} +2 -7
  216. package/dist/components/JackpotCounter/JackpotCounter.client.d.ts +1 -1
  217. package/dist/components/JackpotCounter/JackpotCounter.client.js +57 -0
  218. package/dist/components/JackpotCounter/JackpotCounter.d.ts +1 -1
  219. package/dist/components/JackpotCounter/{JackpotCounter.jsx → JackpotCounter.js} +4 -3
  220. package/dist/components/JackpotCounter/JackpotCounterItem.d.ts +1 -1
  221. package/dist/components/JackpotCounter/JackpotCounterItem.js +114 -0
  222. package/dist/components/JackpotCounter/index.js +1 -1
  223. package/dist/components/Jackpots/JackpotGameProviders.d.ts +2 -2
  224. package/dist/components/Jackpots/JackpotGameProviders.js +38 -0
  225. package/dist/components/Jackpots/JackpotItemDesktop.d.ts +2 -2
  226. package/dist/components/Jackpots/JackpotItemDesktop.js +44 -0
  227. package/dist/components/Jackpots/JackpotItemMobile.d.ts +2 -2
  228. package/dist/components/Jackpots/JackpotItemMobile.js +48 -0
  229. package/dist/components/Jackpots/JackpotRules.d.ts +1 -1
  230. package/dist/components/Jackpots/JackpotRules.js +9 -0
  231. package/dist/components/Jackpots/Jackpots.d.ts +2 -2
  232. package/dist/components/Jackpots/Jackpots.js +26 -0
  233. package/dist/components/Jackpots/index.js +1 -1
  234. package/dist/components/Jackpots/useJackpotItemData.d.ts +2 -2
  235. package/dist/components/Jackpots/{useJackpotItemData.jsx → useJackpotItemData.js} +8 -7
  236. package/dist/components/KYC/KYC.d.ts +1 -1
  237. package/dist/components/KYC/KYC.js +19 -0
  238. package/dist/components/KYC/KYCTrigger.d.ts +1 -1
  239. package/dist/components/KYC/{KYCTrigger.jsx → KYCTrigger.js} +4 -3
  240. package/dist/components/KYC/Step1.d.ts +1 -1
  241. package/dist/components/KYC/Step1.js +10 -0
  242. package/dist/components/KYC/Step2.d.ts +1 -1
  243. package/dist/components/KYC/Step2.js +15 -0
  244. package/dist/components/KYC/Step3.d.ts +1 -1
  245. package/dist/components/KYC/Step3.js +11 -0
  246. package/dist/components/KYC/StepIndicator.d.ts +1 -1
  247. package/dist/components/KYC/StepIndicator.js +13 -0
  248. package/dist/components/KYC/UploadDocument.d.ts +1 -1
  249. package/dist/components/KYC/UploadDocument.js +8 -0
  250. package/dist/components/KYC/UploadSelfie.d.ts +1 -1
  251. package/dist/components/KYC/UploadSelfie.js +8 -0
  252. package/dist/components/KYC/index.js +2 -2
  253. package/dist/components/KYC/useKYC.js +1 -1
  254. package/dist/components/Marquee/Marquee.d.ts +1 -1
  255. package/dist/components/Marquee/Marquee.js +5 -0
  256. package/dist/components/Marquee/index.js +1 -1
  257. package/dist/components/Messages/MessageItem.d.ts +1 -1
  258. package/dist/components/Messages/MessageItem.js +28 -0
  259. package/dist/components/Messages/MessagePopup.d.ts +1 -1
  260. package/dist/components/Messages/MessagePopup.js +18 -0
  261. package/dist/components/Messages/Messages.d.ts +1 -1
  262. package/dist/components/Messages/Messages.js +31 -0
  263. package/dist/components/Messages/MessagesTrigger.d.ts +1 -1
  264. package/dist/components/Messages/{MessagesTrigger.jsx → MessagesTrigger.js} +4 -3
  265. package/dist/components/Messages/index.js +2 -2
  266. package/dist/components/Messages/utils.d.ts +1 -1
  267. package/dist/components/Messages/utils.js +1 -1
  268. package/dist/components/PortalProvider/PortalProvider.client.d.ts +1 -1
  269. package/dist/components/PortalProvider/PortalProvider.client.js +26 -0
  270. package/dist/components/PortalProvider/PortalProvider.d.ts +1 -1
  271. package/dist/components/PortalProvider/{PortalProvider.jsx → PortalProvider.js} +5 -8
  272. package/dist/components/PortalProvider/index.js +1 -1
  273. package/dist/components/Promo/Promo.d.ts +1 -1
  274. package/dist/components/Promo/Promo.js +8 -0
  275. package/dist/components/Promo/PromoContent.d.ts +1 -1
  276. package/dist/components/Promo/PromoContent.js +9 -0
  277. package/dist/components/Promo/index.js +1 -1
  278. package/dist/components/Promos/PromoCarousel.d.ts +1 -1
  279. package/dist/components/Promos/PromoCarousel.js +41 -0
  280. package/dist/components/Promos/PromoGrid.d.ts +1 -1
  281. package/dist/components/Promos/PromoGrid.js +12 -0
  282. package/dist/components/Promos/PromoItem.d.ts +1 -1
  283. package/dist/components/Promos/PromoItem.js +10 -0
  284. package/dist/components/Promos/Promos.d.ts +1 -1
  285. package/dist/components/Promos/Promos.js +11 -0
  286. package/dist/components/Promos/index.js +1 -1
  287. package/dist/components/Protected/{Protected.jsx → Protected.js} +1 -1
  288. package/dist/components/Protected/index.js +1 -1
  289. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.d.ts +1 -1
  290. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.js +58 -0
  291. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.d.ts +1 -1
  292. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.js +8 -0
  293. package/dist/components/Quests/Quests.d.ts +1 -1
  294. package/dist/components/Quests/Quests.js +6 -0
  295. package/dist/components/Quests/WageringQuest/WageringQuest.d.ts +1 -1
  296. package/dist/components/Quests/WageringQuest/WageringQuest.js +16 -0
  297. package/dist/components/Quests/WageringQuest/WageringQuestModal.d.ts +1 -1
  298. package/dist/components/Quests/WageringQuest/WageringQuestModal.js +8 -0
  299. package/dist/components/Quests/index.js +1 -1
  300. package/dist/components/SignIn/SignIn.d.ts +1 -1
  301. package/dist/components/SignIn/SignIn.js +15 -0
  302. package/dist/components/SignIn/SignInForm.d.ts +1 -1
  303. package/dist/components/SignIn/SignInForm.js +118 -0
  304. package/dist/components/SignIn/SignInTrigger.d.ts +1 -1
  305. package/dist/components/SignIn/{SignInTrigger.jsx → SignInTrigger.js} +4 -3
  306. package/dist/components/SignIn/index.js +2 -2
  307. package/dist/components/SignUp/SignUp.d.ts +1 -1
  308. package/dist/components/SignUp/SignUp.js +16 -0
  309. package/dist/components/SignUp/SignUpForm.d.ts +1 -1
  310. package/dist/components/SignUp/SignUpForm.js +133 -0
  311. package/dist/components/SignUp/SignUpTrigger.d.ts +1 -1
  312. package/dist/components/SignUp/{SignUpTrigger.jsx → SignUpTrigger.js} +4 -3
  313. package/dist/components/SignUp/index.js +2 -2
  314. package/dist/components/TopWins/TopWins.client.d.ts +1 -1
  315. package/dist/components/TopWins/TopWins.client.js +23 -0
  316. package/dist/components/TopWins/TopWins.d.ts +1 -1
  317. package/dist/components/TopWins/TopWins.js +7 -0
  318. package/dist/components/TopWins/index.js +1 -1
  319. package/dist/components/TournamentCounter/TournamentCounter.client.d.ts +1 -1
  320. package/dist/components/TournamentCounter/TournamentCounter.client.js +57 -0
  321. package/dist/components/TournamentCounter/TournamentCounter.d.ts +1 -1
  322. package/dist/components/TournamentCounter/{TournamentCounter.jsx → TournamentCounter.js} +4 -3
  323. package/dist/components/TournamentCounter/TournamentCounterItem.d.ts +1 -2
  324. package/dist/components/TournamentCounter/TournamentCounterItem.js +96 -0
  325. package/dist/components/TournamentCounter/index.js +1 -1
  326. package/dist/components/Tournaments/TournamentGameProviders.d.ts +1 -1
  327. package/dist/components/Tournaments/TournamentGameProviders.js +39 -0
  328. package/dist/components/Tournaments/TournamentItem.d.ts +1 -2
  329. package/dist/components/Tournaments/TournamentItem.js +97 -0
  330. package/dist/components/Tournaments/TournamentItemMobile.d.ts +1 -2
  331. package/dist/components/Tournaments/TournamentItemMobile.js +99 -0
  332. package/dist/components/Tournaments/TournamentRules.d.ts +1 -1
  333. package/dist/components/Tournaments/TournamentRules.js +9 -0
  334. package/dist/components/Tournaments/Tournaments.d.ts +1 -1
  335. package/dist/components/Tournaments/Tournaments.js +26 -0
  336. package/dist/components/Tournaments/index.js +1 -1
  337. package/dist/components/TransactionRecords/DepositRecordsTable.d.ts +1 -1
  338. package/dist/components/TransactionRecords/DepositRecordsTable.js +87 -0
  339. package/dist/components/TransactionRecords/TableFilters.d.ts +2 -2
  340. package/dist/components/TransactionRecords/TableFilters.js +212 -0
  341. package/dist/components/TransactionRecords/TransactionRecords.d.ts +1 -1
  342. package/dist/components/TransactionRecords/TransactionRecords.js +10 -0
  343. package/dist/components/TransactionRecords/TransactionRecordsTable.d.ts +1 -1
  344. package/dist/components/TransactionRecords/TransactionRecordsTable.js +62 -0
  345. package/dist/components/TransactionRecords/WithdrawalRecordsTable.d.ts +1 -1
  346. package/dist/components/TransactionRecords/WithdrawalRecordsTable.js +81 -0
  347. package/dist/components/TransactionRecords/index.js +1 -1
  348. package/dist/components/index.js +32 -32
  349. package/dist/handlers.js +1 -1
  350. package/dist/icons/AlertCircleIcon.d.ts +1 -1
  351. package/dist/icons/AlertCircleIcon.js +4 -0
  352. package/dist/icons/AlertTriangle.d.ts +1 -1
  353. package/dist/icons/AlertTriangle.js +4 -0
  354. package/dist/icons/Announcement01Icon.d.ts +1 -1
  355. package/dist/icons/Announcement01Icon.js +4 -0
  356. package/dist/icons/ArrowLeftIcon.d.ts +1 -1
  357. package/dist/icons/ArrowLeftIcon.js +4 -0
  358. package/dist/icons/ArrowNarrowDownIcon.d.ts +1 -1
  359. package/dist/icons/ArrowNarrowDownIcon.js +4 -0
  360. package/dist/icons/ArrowNarrowUpIcon.d.ts +1 -1
  361. package/dist/icons/ArrowNarrowUpIcon.js +4 -0
  362. package/dist/icons/ArrowNarrowUpRightIcon.d.ts +1 -1
  363. package/dist/icons/ArrowNarrowUpRightIcon.js +4 -0
  364. package/dist/icons/ArrowRightIcon.d.ts +1 -1
  365. package/dist/icons/ArrowRightIcon.js +4 -0
  366. package/dist/icons/Award01Icon.d.ts +1 -1
  367. package/dist/icons/Award01Icon.js +4 -0
  368. package/dist/icons/Award02Icon.d.ts +1 -1
  369. package/dist/icons/Award02Icon.js +4 -0
  370. package/dist/icons/BankIcon.d.ts +1 -1
  371. package/dist/icons/BankIcon.js +4 -0
  372. package/dist/icons/Bell01Icon.d.ts +1 -1
  373. package/dist/icons/Bell01Icon.js +4 -0
  374. package/dist/icons/BellRingIcon.d.ts +1 -1
  375. package/dist/icons/BellRingIcon.js +4 -0
  376. package/dist/icons/CalendarIcon.d.ts +1 -1
  377. package/dist/icons/CalendarIcon.js +4 -0
  378. package/dist/icons/Camera01Icon.d.ts +1 -1
  379. package/dist/icons/Camera01Icon.js +4 -0
  380. package/dist/icons/CheckCircleBrokenIcon.d.ts +1 -1
  381. package/dist/icons/CheckCircleBrokenIcon.js +4 -0
  382. package/dist/icons/CheckCircleIcon.d.ts +1 -1
  383. package/dist/icons/CheckCircleIcon.js +4 -0
  384. package/dist/icons/CheckIcon.d.ts +1 -1
  385. package/dist/icons/CheckIcon.js +4 -0
  386. package/dist/icons/CheckVerified02Icon.d.ts +1 -1
  387. package/dist/icons/CheckVerified02Icon.js +4 -0
  388. package/dist/icons/ChevronDownIcon.d.ts +1 -1
  389. package/dist/icons/ChevronDownIcon.js +4 -0
  390. package/dist/icons/ChevronLeftIcon.d.ts +1 -1
  391. package/dist/icons/ChevronLeftIcon.js +4 -0
  392. package/dist/icons/ChevronRightIcon.d.ts +1 -1
  393. package/dist/icons/ChevronRightIcon.js +4 -0
  394. package/dist/icons/ChevronUpIcon.d.ts +1 -1
  395. package/dist/icons/ChevronUpIcon.js +4 -0
  396. package/dist/icons/ClockStopWatchIcon.d.ts +1 -1
  397. package/dist/icons/ClockStopWatchIcon.js +4 -0
  398. package/dist/icons/CoinsHandIcon.d.ts +1 -1
  399. package/dist/icons/CoinsHandIcon.js +4 -0
  400. package/dist/icons/CoinsStacked02Icon.d.ts +1 -1
  401. package/dist/icons/CoinsStacked02Icon.js +4 -0
  402. package/dist/icons/CoinsSwap02Icon.d.ts +1 -1
  403. package/dist/icons/CoinsSwap02Icon.js +4 -0
  404. package/dist/icons/CreditCard02Icon.d.ts +1 -1
  405. package/dist/icons/CreditCard02Icon.js +4 -0
  406. package/dist/icons/Diamond01Icon.d.ts +1 -1
  407. package/dist/icons/Diamond01Icon.js +4 -0
  408. package/dist/icons/Expand03Icon.d.ts +1 -1
  409. package/dist/icons/Expand03Icon.js +4 -0
  410. package/dist/icons/EyeIcon.d.ts +1 -1
  411. package/dist/icons/EyeIcon.js +4 -0
  412. package/dist/icons/EyeOffIcon.d.ts +1 -1
  413. package/dist/icons/EyeOffIcon.js +4 -0
  414. package/dist/icons/FacebookIcon.d.ts +1 -1
  415. package/dist/icons/FacebookIcon.js +4 -0
  416. package/dist/icons/File02Icon.d.ts +1 -1
  417. package/dist/icons/File02Icon.js +4 -0
  418. package/dist/icons/FileCheck02Icon.d.ts +1 -1
  419. package/dist/icons/FileCheck02Icon.js +4 -0
  420. package/dist/icons/Flag06Icon.d.ts +1 -1
  421. package/dist/icons/Flag06Icon.js +4 -0
  422. package/dist/icons/Gift01Icon.d.ts +1 -1
  423. package/dist/icons/Gift01Icon.js +4 -0
  424. package/dist/icons/GoogleIcon.d.ts +1 -1
  425. package/dist/icons/GoogleIcon.js +4 -0
  426. package/dist/icons/HelpCircleIcon.d.ts +1 -1
  427. package/dist/icons/HelpCircleIcon.js +4 -0
  428. package/dist/icons/InfoCircleIcon.d.ts +1 -1
  429. package/dist/icons/InfoCircleIcon.js +4 -0
  430. package/dist/icons/Lock01Icon.d.ts +1 -1
  431. package/dist/icons/Lock01Icon.js +4 -0
  432. package/dist/icons/Logout01Icon.d.ts +1 -1
  433. package/dist/icons/Logout01Icon.js +4 -0
  434. package/dist/icons/MarkerPin06Icon.d.ts +1 -1
  435. package/dist/icons/MarkerPin06Icon.js +4 -0
  436. package/dist/icons/Menu01Icon.d.ts +1 -1
  437. package/dist/icons/Menu01Icon.js +4 -0
  438. package/dist/icons/Menu03Icon.d.ts +1 -1
  439. package/dist/icons/Menu03Icon.js +4 -0
  440. package/dist/icons/PiggyBank02Icon.d.ts +1 -1
  441. package/dist/icons/PiggyBank02Icon.js +4 -0
  442. package/dist/icons/QrCode02Icon.d.ts +1 -1
  443. package/dist/icons/QrCode02Icon.js +4 -0
  444. package/dist/icons/SearchLgIcon.d.ts +1 -1
  445. package/dist/icons/SearchLgIcon.js +4 -0
  446. package/dist/icons/SearchRefractionIcon.d.ts +1 -1
  447. package/dist/icons/SearchRefractionIcon.js +4 -0
  448. package/dist/icons/Settings02Icon.d.ts +1 -1
  449. package/dist/icons/Settings02Icon.js +4 -0
  450. package/dist/icons/SpinnerIcon.d.ts +1 -1
  451. package/dist/icons/SpinnerIcon.js +5 -0
  452. package/dist/icons/Star01Icon.d.ts +1 -1
  453. package/dist/icons/Star01Icon.js +4 -0
  454. package/dist/icons/StarIcon.d.ts +1 -1
  455. package/dist/icons/StarIcon.js +4 -0
  456. package/dist/icons/StopWatchIcon.d.ts +1 -1
  457. package/dist/icons/StopWatchIcon.js +4 -0
  458. package/dist/icons/Target04Icon.d.ts +1 -1
  459. package/dist/icons/Target04Icon.js +4 -0
  460. package/dist/icons/Trophy01Icon.d.ts +1 -1
  461. package/dist/icons/Trophy01Icon.js +4 -0
  462. package/dist/icons/UploadCloud02Icon.d.ts +1 -1
  463. package/dist/icons/UploadCloud02Icon.js +4 -0
  464. package/dist/icons/User01Icon.d.ts +1 -1
  465. package/dist/icons/User01Icon.js +4 -0
  466. package/dist/icons/Wallet02Icon.d.ts +1 -1
  467. package/dist/icons/Wallet02Icon.js +4 -0
  468. package/dist/icons/XIcon.d.ts +1 -1
  469. package/dist/icons/XIcon.js +4 -0
  470. package/dist/icons/index.js +56 -56
  471. package/dist/middleware.js +1 -1
  472. package/dist/server/services/authenticate.js +1 -1
  473. package/dist/server/services/getSession.d.ts +1 -1
  474. package/dist/server/services/getSession.js +1 -1
  475. package/dist/server/services/index.js +4 -4
  476. package/dist/server/services/signIn.js +1 -1
  477. package/dist/server/services/signOut.js +1 -1
  478. package/dist/server/utils/index.js +24 -24
  479. package/dist/server/utils/prefetchAccountQuery.js +3 -3
  480. package/dist/server/utils/prefetchAvailablePromosQuery.js +3 -3
  481. package/dist/server/utils/prefetchBetRecordsQuery.js +3 -3
  482. package/dist/server/utils/prefetchBonusesQuery.js +3 -3
  483. package/dist/server/utils/prefetchCashbacksQuery.js +2 -2
  484. package/dist/server/utils/prefetchDepositQuery.js +3 -3
  485. package/dist/server/utils/prefetchDepositRecordsQuery.js +3 -3
  486. package/dist/server/utils/prefetchDepositsCountQuery.js +3 -3
  487. package/dist/server/utils/prefetchFavoriteGamesQuery.js +3 -3
  488. package/dist/server/utils/prefetchGamesQuery.js +2 -2
  489. package/dist/server/utils/prefetchInstapayBankListQuery.js +3 -3
  490. package/dist/server/utils/prefetchIsMayaSessionValidQuery.js +3 -3
  491. package/dist/server/utils/prefetchJackpotsQuery.js +2 -2
  492. package/dist/server/utils/prefetchMemberVerificationQuery.js +3 -3
  493. package/dist/server/utils/prefetchPaymentSettingsQuery.js +3 -3
  494. package/dist/server/utils/prefetchPlatformQuery.js +2 -2
  495. package/dist/server/utils/prefetchProfileCompletionQuery.js +3 -3
  496. package/dist/server/utils/prefetchPromoQuery.js +2 -2
  497. package/dist/server/utils/prefetchPromosQuery.js +2 -2
  498. package/dist/server/utils/prefetchSessionQuery.js +2 -2
  499. package/dist/server/utils/prefetchTopWinsQuery.js +2 -2
  500. package/dist/server/utils/prefetchTournamentsQuery.js +2 -2
  501. package/dist/server/utils/prefetchTransactionRecordsQuery.js +3 -3
  502. package/dist/server/utils/prefetchUnreadMessagesCountQuery.js +3 -3
  503. package/dist/server/utils/prefetchWalletQuery.js +3 -3
  504. package/dist/server/utils/prefetchWithdrawalRecordsQuery.js +3 -3
  505. package/dist/third-parties/FacebookPixel/index.js +1 -1
  506. package/dist/third-parties/GoogleRecaptcha/index.js +1 -1
  507. package/dist/third-parties/index.js +2 -2
  508. package/dist/tsconfig.build.tsbuildinfo +1 -1
  509. package/dist/ui/AlertDialog/{AlertDialog.jsx → AlertDialog.js} +2 -2
  510. package/dist/ui/AlertDialog/alertDialog.recipe.js +1 -1
  511. package/dist/ui/AlertDialog/index.js +1 -1
  512. package/dist/ui/Avatar/{Avatar.jsx → Avatar.js} +2 -2
  513. package/dist/ui/Avatar/avatar.recipe.js +1 -1
  514. package/dist/ui/Avatar/index.js +1 -1
  515. package/dist/ui/Badge/Badge.js +12 -0
  516. package/dist/ui/Badge/badge.recipe.js +2 -2
  517. package/dist/ui/Badge/index.js +1 -1
  518. package/dist/ui/Button/Button.d.ts +1 -1
  519. package/dist/ui/Button/Button.js +12 -0
  520. package/dist/ui/Button/index.js +1 -1
  521. package/dist/ui/Checkbox/{Checkbox.jsx → Checkbox.js} +2 -2
  522. package/dist/ui/Checkbox/checkbox.recipe.js +1 -1
  523. package/dist/ui/Checkbox/index.js +1 -1
  524. package/dist/ui/Clipboard/{Clipboard.jsx → Clipboard.js} +2 -2
  525. package/dist/ui/Clipboard/clipboard.recipe.js +1 -1
  526. package/dist/ui/Clipboard/index.js +1 -1
  527. package/dist/ui/Collapsible/{Collapsible.jsx → Collapsible.js} +2 -2
  528. package/dist/ui/Collapsible/collapsible.recipe.js +1 -1
  529. package/dist/ui/Collapsible/index.js +1 -1
  530. package/dist/ui/Combobox/{Combobox.jsx → Combobox.js} +2 -2
  531. package/dist/ui/Combobox/combobox.recipe.js +1 -1
  532. package/dist/ui/Combobox/index.js +1 -1
  533. package/dist/ui/DatePicker/{DatePicker.jsx → DatePicker.js} +2 -2
  534. package/dist/ui/DatePicker/datePicker.recipe.js +1 -1
  535. package/dist/ui/DatePicker/index.js +1 -1
  536. package/dist/ui/Dialog/{Dialog.jsx → Dialog.js} +2 -2
  537. package/dist/ui/Dialog/dialog.recipe.js +1 -1
  538. package/dist/ui/Dialog/index.js +1 -1
  539. package/dist/ui/Drawer/{Drawer.jsx → Drawer.js} +2 -2
  540. package/dist/ui/Drawer/drawer.recipe.js +1 -1
  541. package/dist/ui/Drawer/index.js +1 -1
  542. package/dist/ui/Field/{Field.jsx → Field.js} +2 -2
  543. package/dist/ui/Field/field.recipe.js +1 -1
  544. package/dist/ui/Field/index.js +1 -1
  545. package/dist/ui/IconButton/IconButton.d.ts +1 -1
  546. package/dist/ui/IconButton/IconButton.js +12 -0
  547. package/dist/ui/IconButton/iconButton.recipe.js +1 -1
  548. package/dist/ui/IconButton/index.js +1 -1
  549. package/dist/ui/Menu/index.js +1 -1
  550. package/dist/ui/NumberInput/{NumberInput.jsx → NumberInput.js} +2 -2
  551. package/dist/ui/NumberInput/index.js +1 -1
  552. package/dist/ui/NumberInput/numberInput.recipe.js +1 -1
  553. package/dist/ui/PasswordInput/{PasswordInput.jsx → PasswordInput.js} +2 -2
  554. package/dist/ui/PasswordInput/index.js +1 -1
  555. package/dist/ui/PasswordInput/passwordInput.recipe.js +1 -1
  556. package/dist/ui/PinInput/{PinInput.jsx → PinInput.js} +2 -2
  557. package/dist/ui/PinInput/index.js +1 -1
  558. package/dist/ui/PinInput/pinInput.recipe.js +1 -1
  559. package/dist/ui/Popover/{Popover.jsx → Popover.js} +2 -2
  560. package/dist/ui/Popover/index.js +1 -1
  561. package/dist/ui/Popover/popover.recipe.js +1 -1
  562. package/dist/ui/Presence.d.ts +1 -1
  563. package/dist/ui/Presence.js +7 -0
  564. package/dist/ui/Progress/{Progress.jsx → Progress.js} +2 -2
  565. package/dist/ui/Progress/index.js +1 -1
  566. package/dist/ui/Progress/progress.recipe.js +1 -1
  567. package/dist/ui/Prose.d.ts +1 -1
  568. package/dist/ui/Prose.js +5 -0
  569. package/dist/ui/SegmentGroup/{SegmentGroup.jsx → SegmentGroup.js} +2 -2
  570. package/dist/ui/SegmentGroup/index.js +1 -1
  571. package/dist/ui/SegmentGroup/segmentGroup.recipe.js +1 -1
  572. package/dist/ui/Select/{Select.jsx → Select.js} +2 -2
  573. package/dist/ui/Select/index.js +1 -1
  574. package/dist/ui/Select/select.recipe.js +1 -1
  575. package/dist/ui/Table/{Table.jsx → Table.js} +2 -2
  576. package/dist/ui/Table/index.js +1 -1
  577. package/dist/ui/Table/table.recipe.js +2 -2
  578. package/dist/ui/Tabs/{Tabs.jsx → Tabs.js} +2 -2
  579. package/dist/ui/Tabs/index.js +1 -1
  580. package/dist/ui/Tabs/tabs.recipe.js +1 -1
  581. package/dist/ui/Tooltip/index.js +1 -1
  582. package/dist/ui/index.js +26 -26
  583. package/dist/utils/formatNumber.js +1 -1
  584. package/dist/utils/getGameImageUrl.js +1 -1
  585. package/dist/utils/getLocaleInfo.js +175 -0
  586. package/dist/utils/index.js +12 -12
  587. package/package.json +2 -7
  588. package/dist/components/Account/Account.jsx +0 -313
  589. package/dist/components/AccountInfo/AccountInfo.jsx +0 -113
  590. package/dist/components/AccountSecurity/AccountSecurity.jsx +0 -142
  591. package/dist/components/Banner/Banner.jsx +0 -51
  592. package/dist/components/BetRecords/BetRecords.jsx +0 -470
  593. package/dist/components/Bonus/Bonus.client.jsx +0 -144
  594. package/dist/components/Bonus/Bonus.jsx +0 -4
  595. package/dist/components/Bonuses/Bonuses.jsx +0 -87
  596. package/dist/components/DepositWithdrawal/Deposit/AvailablePromos.jsx +0 -73
  597. package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.jsx +0 -213
  598. package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.jsx +0 -219
  599. package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.jsx +0 -213
  600. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDeposit.jsx +0 -15
  601. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.jsx +0 -203
  602. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositLoading.jsx +0 -15
  603. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositSuccess.jsx +0 -13
  604. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.jsx +0 -90
  605. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDeposit.jsx +0 -15
  606. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.jsx +0 -197
  607. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositLoading.jsx +0 -14
  608. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.jsx +0 -104
  609. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.jsx +0 -19
  610. package/dist/components/DepositWithdrawal/DepositWithdrawal.jsx +0 -95
  611. package/dist/components/DepositWithdrawal/MayaSessionExpired.jsx +0 -13
  612. package/dist/components/DepositWithdrawal/PaymentMethods.jsx +0 -75
  613. package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/GCashWithdrawal.jsx +0 -169
  614. package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.jsx +0 -218
  615. package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal/MayaWithdrawal.jsx +0 -169
  616. package/dist/components/Disclaimer/Disclaimer.jsx +0 -45
  617. package/dist/components/Empty.jsx +0 -62
  618. package/dist/components/FavoriteGames/FavoriteGames.client.jsx +0 -63
  619. package/dist/components/FavoriteGames/FavoriteGames.jsx +0 -6
  620. package/dist/components/GameLaunch/GameLaunch.jsx +0 -188
  621. package/dist/components/GameProviders/GameProviders.jsx +0 -60
  622. package/dist/components/Games/Games.client.jsx +0 -118
  623. package/dist/components/Games/Games.jsx +0 -10
  624. package/dist/components/GamesSearch/GamesSearch.jsx +0 -110
  625. package/dist/components/JackpotCounter/JackpotCounter.client.jsx +0 -84
  626. package/dist/components/JackpotCounter/JackpotCounterItem.jsx +0 -317
  627. package/dist/components/Jackpots/JackpotGameProviders.jsx +0 -59
  628. package/dist/components/Jackpots/JackpotItemDesktop.jsx +0 -251
  629. package/dist/components/Jackpots/JackpotItemMobile.jsx +0 -271
  630. package/dist/components/Jackpots/JackpotRules.jsx +0 -43
  631. package/dist/components/Jackpots/Jackpots.jsx +0 -37
  632. package/dist/components/KYC/KYC.jsx +0 -39
  633. package/dist/components/KYC/Step1.jsx +0 -37
  634. package/dist/components/KYC/Step2.jsx +0 -86
  635. package/dist/components/KYC/Step3.jsx +0 -68
  636. package/dist/components/KYC/StepIndicator.jsx +0 -22
  637. package/dist/components/KYC/UploadDocument.jsx +0 -30
  638. package/dist/components/KYC/UploadSelfie.jsx +0 -28
  639. package/dist/components/Marquee/Marquee.jsx +0 -20
  640. package/dist/components/Messages/MessageItem.jsx +0 -47
  641. package/dist/components/Messages/MessagePopup.jsx +0 -43
  642. package/dist/components/Messages/Messages.jsx +0 -87
  643. package/dist/components/PortalProvider/PortalProvider.client.jsx +0 -54
  644. package/dist/components/Promo/Promo.jsx +0 -7
  645. package/dist/components/Promo/PromoContent.jsx +0 -104
  646. package/dist/components/Promos/PromoCarousel.jsx +0 -69
  647. package/dist/components/Promos/PromoGrid.jsx +0 -24
  648. package/dist/components/Promos/PromoItem.jsx +0 -24
  649. package/dist/components/Promos/Promos.jsx +0 -10
  650. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.jsx +0 -104
  651. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.jsx +0 -46
  652. package/dist/components/Quests/Quests.jsx +0 -12
  653. package/dist/components/Quests/WageringQuest/WageringQuest.jsx +0 -58
  654. package/dist/components/Quests/WageringQuest/WageringQuestModal.jsx +0 -38
  655. package/dist/components/SignIn/SignIn.jsx +0 -29
  656. package/dist/components/SignIn/SignInForm.jsx +0 -233
  657. package/dist/components/SignUp/SignUp.jsx +0 -32
  658. package/dist/components/SignUp/SignUpForm.jsx +0 -230
  659. package/dist/components/TopWins/TopWins.client.jsx +0 -48
  660. package/dist/components/TopWins/TopWins.jsx +0 -6
  661. package/dist/components/TournamentCounter/TournamentCounter.client.jsx +0 -84
  662. package/dist/components/TournamentCounter/TournamentCounterItem.jsx +0 -233
  663. package/dist/components/Tournaments/TournamentGameProviders.jsx +0 -60
  664. package/dist/components/Tournaments/TournamentItem.jsx +0 -224
  665. package/dist/components/Tournaments/TournamentItemMobile.jsx +0 -242
  666. package/dist/components/Tournaments/TournamentRules.jsx +0 -43
  667. package/dist/components/Tournaments/Tournaments.jsx +0 -37
  668. package/dist/components/TransactionRecords/DepositRecordsTable.jsx +0 -193
  669. package/dist/components/TransactionRecords/TableFilters.jsx +0 -446
  670. package/dist/components/TransactionRecords/TransactionRecords.jsx +0 -39
  671. package/dist/components/TransactionRecords/TransactionRecordsTable.jsx +0 -147
  672. package/dist/components/TransactionRecords/WithdrawalRecordsTable.jsx +0 -182
  673. package/dist/icons/AlertCircleIcon.jsx +0 -5
  674. package/dist/icons/AlertTriangle.jsx +0 -5
  675. package/dist/icons/Announcement01Icon.jsx +0 -5
  676. package/dist/icons/ArrowLeftIcon.jsx +0 -5
  677. package/dist/icons/ArrowNarrowDownIcon.jsx +0 -5
  678. package/dist/icons/ArrowNarrowUpIcon.jsx +0 -5
  679. package/dist/icons/ArrowNarrowUpRightIcon.jsx +0 -5
  680. package/dist/icons/ArrowRightIcon.jsx +0 -5
  681. package/dist/icons/Award01Icon.jsx +0 -5
  682. package/dist/icons/Award02Icon.jsx +0 -5
  683. package/dist/icons/BankIcon.jsx +0 -5
  684. package/dist/icons/Bell01Icon.jsx +0 -5
  685. package/dist/icons/BellRingIcon.jsx +0 -5
  686. package/dist/icons/CalendarIcon.jsx +0 -5
  687. package/dist/icons/Camera01Icon.jsx +0 -6
  688. package/dist/icons/CheckCircleBrokenIcon.jsx +0 -5
  689. package/dist/icons/CheckCircleIcon.jsx +0 -5
  690. package/dist/icons/CheckIcon.jsx +0 -5
  691. package/dist/icons/CheckVerified02Icon.jsx +0 -5
  692. package/dist/icons/ChevronDownIcon.jsx +0 -5
  693. package/dist/icons/ChevronLeftIcon.jsx +0 -5
  694. package/dist/icons/ChevronRightIcon.jsx +0 -5
  695. package/dist/icons/ChevronUpIcon.jsx +0 -5
  696. package/dist/icons/ClockStopWatchIcon.jsx +0 -5
  697. package/dist/icons/CoinsHandIcon.jsx +0 -5
  698. package/dist/icons/CoinsStacked02Icon.jsx +0 -5
  699. package/dist/icons/CoinsSwap02Icon.jsx +0 -5
  700. package/dist/icons/CreditCard02Icon.jsx +0 -5
  701. package/dist/icons/Diamond01Icon.jsx +0 -5
  702. package/dist/icons/Expand03Icon.jsx +0 -5
  703. package/dist/icons/EyeIcon.jsx +0 -6
  704. package/dist/icons/EyeOffIcon.jsx +0 -5
  705. package/dist/icons/FacebookIcon.jsx +0 -6
  706. package/dist/icons/File02Icon.jsx +0 -5
  707. package/dist/icons/FileCheck02Icon.jsx +0 -5
  708. package/dist/icons/Flag06Icon.jsx +0 -5
  709. package/dist/icons/Gift01Icon.jsx +0 -5
  710. package/dist/icons/GoogleIcon.jsx +0 -9
  711. package/dist/icons/HelpCircleIcon.jsx +0 -5
  712. package/dist/icons/InfoCircleIcon.jsx +0 -5
  713. package/dist/icons/Lock01Icon.jsx +0 -5
  714. package/dist/icons/Logout01Icon.jsx +0 -5
  715. package/dist/icons/MarkerPin06Icon.jsx +0 -5
  716. package/dist/icons/Menu01Icon.jsx +0 -5
  717. package/dist/icons/Menu03Icon.jsx +0 -5
  718. package/dist/icons/PiggyBank02Icon.jsx +0 -5
  719. package/dist/icons/QrCode02Icon.jsx +0 -5
  720. package/dist/icons/SearchLgIcon.jsx +0 -5
  721. package/dist/icons/SearchRefractionIcon.jsx +0 -5
  722. package/dist/icons/Settings02Icon.jsx +0 -6
  723. package/dist/icons/SpinnerIcon.jsx +0 -9
  724. package/dist/icons/Star01Icon.jsx +0 -5
  725. package/dist/icons/StarIcon.jsx +0 -5
  726. package/dist/icons/StopWatchIcon.jsx +0 -5
  727. package/dist/icons/Target04Icon.jsx +0 -5
  728. package/dist/icons/Trophy01Icon.jsx +0 -5
  729. package/dist/icons/UploadCloud02Icon.jsx +0 -5
  730. package/dist/icons/User01Icon.jsx +0 -5
  731. package/dist/icons/Wallet02Icon.jsx +0 -5
  732. package/dist/icons/XIcon.jsx +0 -5
  733. package/dist/ui/Badge/Badge.jsx +0 -11
  734. package/dist/ui/Button/Button.jsx +0 -11
  735. package/dist/ui/IconButton/IconButton.jsx +0 -11
  736. package/dist/ui/Presence.jsx +0 -6
  737. package/dist/ui/Prose.jsx +0 -4
  738. package/dist/utils/getLocaleInfo.jsx +0 -237
  739. /package/dist/components/AccountPaymentMethods/{AccountPaymentMethods.jsx → AccountPaymentMethods.js} +0 -0
  740. /package/dist/components/AccountVerification/{AccountVerification.jsx → AccountVerification.js} +0 -0
  741. /package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/{OnlineBankDepositContext.jsx → OnlineBankDepositContext.js} +0 -0
  742. /package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/{QRPHDepositContext.jsx → QRPHDepositContext.js} +0 -0
  743. /package/dist/components/KYC/{KYCContext.jsx → KYCContext.js} +0 -0
  744. /package/dist/third-parties/FacebookPixel/{FacebookPixel.jsx → FacebookPixel.js} +0 -0
  745. /package/dist/third-parties/GoogleRecaptcha/{GoogleRecaptcha.jsx → GoogleRecaptcha.js} +0 -0
  746. /package/dist/ui/Menu/{Menu.jsx → Menu.js} +0 -0
  747. /package/dist/ui/Tooltip/{Tooltip.jsx → Tooltip.js} +0 -0
@@ -0,0 +1,114 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
+ import { Progress } from '@ark-ui/react';
4
+ import Image from 'next/image';
5
+ import Link from 'next/link';
6
+ import { useCallback, useMemo } from 'react';
7
+ import { twMerge } from 'tailwind-merge';
8
+ import { useLocaleInfo } from '../../client/hooks/index.js';
9
+ import { useJackpotPayoutsQuery } from '../../client/hooks/useJackpotPayoutsQuery.js';
10
+ import { ArrowNarrowUpRightIcon, ChevronLeftIcon, ChevronRightIcon, Trophy01Icon, } from '../../icons/index.js';
11
+ import { StarIcon } from '../../icons/StarIcon.js';
12
+ import closeChest from '../../images/close-chest.png';
13
+ import firstPlace from '../../images/first-place.png';
14
+ import leaderboard from '../../images/leaderboard.png';
15
+ import openChest from '../../images/open-chest.png';
16
+ import { formatNumber } from '../../utils/index.js';
17
+ import styles from './JackpotCounterItem.module.css';
18
+ export function JackpotCounterItem({ jackpot, className, viewAllUrl, }) {
19
+ const jackpotPayoutsQuery = useJackpotPayoutsQuery({
20
+ first: 30,
21
+ filter: {
22
+ jackpot: {
23
+ equal: jackpot.id,
24
+ },
25
+ },
26
+ sort: {
27
+ cursor: 'AMOUNT',
28
+ order: 'DESC',
29
+ },
30
+ });
31
+ const jackpotPayouts = jackpotPayoutsQuery.data?.pages[0].edges.map((edge) => edge.node) ?? [];
32
+ const topJackpotPayout = jackpotPayouts[0] ?? [];
33
+ const localeInfo = useLocaleInfo();
34
+ const isPayingOut = jackpot.drawing;
35
+ const jackpotAmount = isPayingOut
36
+ ? jackpot.maximumJackpotPoolLimit
37
+ : jackpot.pool;
38
+ const Arrow = useCallback(({ index }) => {
39
+ const Icon = isPayingOut ? ChevronLeftIcon : ChevronRightIcon;
40
+ return (_jsx(Icon, { className: twMerge('scale-400 lg:scale-250 text-brand-300 min-w-2.5 lg:min-w-4', isPayingOut
41
+ ? styles['animate-wave-color-error']
42
+ : styles['animate-wave-color-success']), style: {
43
+ animationDelay: isPayingOut
44
+ ? `${(40 - index - 1) * 0.1}s`
45
+ : `${index * 0.1}s`,
46
+ } }));
47
+ }, [isPayingOut]);
48
+ const arrowImages = useMemo(() => Array.from({ length: 40 }, (_, i) => (_jsx(Arrow, { isFirst: i === 0, index: i }, i))), [Arrow]);
49
+ return (_jsxs("div", { className: twMerge('bg-bg-tertiary border-border-primary relative flex shrink-0 rounded-2xl border p-3 text-center lg:gap-4 lg:p-5', className), children: [_jsxs("div", { className: "z-1 relative flex flex-1 flex-col", children: [_jsx("div", { className: "flex h-full flex-col justify-between", children: _jsx("div", { className: "flex w-full justify-between", children: _jsxs("div", { className: "flex w-full flex-col", children: [_jsxs("div", { className: "relative flex w-full justify-between", children: [_jsxs("div", { children: [isPayingOut ? (_jsxs("div", { className: "border-utility-success-200 bg-utility-success-50 text-utility-success-700 flex w-fit items-center gap-1 rounded-full border px-2 py-0.5 text-xs font-medium", children: [_jsx("span", { className: "full bg-utility-success-500 size-1.5 animate-pulse rounded" }), "Paying Out"] })) : (_jsxs("div", { className: "border-utility-blue-200 bg-utility-blue-50 text-utility-blue-700 flex w-fit items-center gap-1 rounded-full border px-2 py-0.5 text-xs font-medium", children: [_jsx(ArrowNarrowUpRightIcon, { className: "text-utility-blue-500 size-3.5" }), "Accumulating"] })), _jsx("div", { className: "text-text-primary-900 mt-1 text-left text-lg font-medium lg:mt-5 lg:text-2xl", children: jackpot.name }), _jsx("div", { className: "bg-bg-primary text-brand-400 mt-1.5 w-fit rounded-md px-2 py-1 text-2xl font-bold lg:mt-2 lg:text-4xl", children: formatNumber(jackpotAmount, {
50
+ currency: localeInfo.currency.code,
51
+ minDecimalPlaces: 2,
52
+ maxDecimalPlaces: 2,
53
+ }) })] }), _jsx("div", { className: "z-1 bottom-[-60] right-0 lg:absolute", children: _jsx(Image, { width: 150, height: 150, src: isPayingOut ? openChest : closeChest, alt: "closeChest", quality: 100, className: "h-25 w-25 lg:h-37.5 lg:w-37.5 size-full p-2" }) })] }), topJackpotPayout.amount ? (_jsx("div", { children: _jsxs("div", { className: "bg-bg-primary relative mt-4 hidden w-full gap-4 rounded-lg p-4 lg:flex", children: [_jsx("div", { className: "border-yellow-400 relative h-18 w-18 rounded-full border", children: _jsx("div", { className: "bg-yellow-400 text-brand-950 border-bg-primary absolute bottom-0 right-0 flex h-6 w-6 items-center justify-center rounded-full border-[1.5px] text-xs font-bold", children: "1st" }) }), _jsxs("div", { className: "flex flex-col gap-1 text-left", children: [_jsxs("div", { className: "border-utility-brand-200 bg-utility-brand-50 text-utility-brand-700 flex h-fit w-fit items-center gap-1 rounded-sm border px-2 py-0.5 text-xs font-medium", children: [_jsx(Trophy01Icon, { className: "text-utility-brand-600 size-3.5" }), "Top Payout"] }), _jsx("div", { className: "font-semibold", children: maskName(topJackpotPayout.member.name) }), _jsx("div", { className: "text-brand-400 text-2xl", children: formatNumber(topJackpotPayout.amount, {
54
+ currency: localeInfo.currency.code,
55
+ minDecimalPlaces: 2,
56
+ maxDecimalPlaces: 2,
57
+ }) })] })] }) })) : (_jsxs("div", { className: "bg-bg-primary relative mt-4 hidden w-full gap-4 rounded-lg p-4 lg:flex", children: [_jsx(Image, { width: 66, height: 87, src: firstPlace, alt: "closeChest", className: "size-full h-auto w-[66px] mix-blend-luminosity" }), _jsxs("div", { className: "flex flex-col gap-1 text-left", children: [_jsxs("div", { className: "border-utility-brand-200 bg-utility-brand-50 text-utility-brand-700 flex h-fit w-fit items-center gap-1 rounded-sm border px-2 py-0.5 text-xs font-medium", children: [_jsx(Trophy01Icon, { className: "text-utility-brand-600 size-3.5" }), "Top Payout"] }), _jsx("div", { className: "font-semibold", children: "No winners yet" }), _jsx("div", { className: "text-text-secondary-700 text-xs", children: "You could be the first to win the tournament!" })] })] }))] }) }) }), _jsxs("div", { className: "mt-3 lg:mt-4", children: [_jsxs("div", { className: "mb-1 flex justify-between", children: [_jsx("div", { className: "text-text-primary-900 text-xs font-semibold", children: formatNumber(0, {
58
+ currency: localeInfo.currency.code,
59
+ compact: true,
60
+ }) }), _jsxs("div", { className: "relative flex items-center justify-end gap-1.5", children: [isPayingOut ? (_jsxs("div", { className: "flex w-6 items-center", children: [_jsx("div", { className: twMerge('absolute left-0', styles['animate-arrow-red-flash-1']), children: _jsx(ChevronLeftIcon, { className: "size-4.5" }) }), _jsx("div", { className: twMerge('absolute left-1.5', styles['animate-arrow-red-flash-2']), children: _jsx(ChevronLeftIcon, { className: "size-4.5" }) }), _jsx("div", { className: twMerge('absolute left-3', styles['animate-arrow-red-flash-3']), children: _jsx(ChevronLeftIcon, { className: "size-4.5" }) })] })) : (_jsxs("div", { className: "flex w-6 items-center", children: [_jsx("div", { className: twMerge('absolute left-0', styles['animate-arrow-green-flash-1']), children: _jsx(ChevronRightIcon, { className: "size-4.5" }) }), _jsx("div", { className: twMerge('absolute left-1.5', styles['animate-arrow-green-flash-2']), children: _jsx(ChevronRightIcon, { className: "size-4.5" }) }), _jsx("div", { className: twMerge('absolute left-3', styles['animate-arrow-green-flash-3']), children: _jsx(ChevronRightIcon, { className: "size-4.5" }) })] })), _jsx("div", { className: "text-text-primary-900 text-xs font-semibold", children: formatNumber(jackpot?.maximumJackpotPoolLimit, {
61
+ currency: localeInfo.currency.code,
62
+ compact: true,
63
+ }) })] })] }), _jsx(Progress.Root, { className: "bg-bg-primary h-2 w-full rounded-full lg:h-4", max: 100, value: calculatePercentage(Number(jackpot.pool), Number(jackpot.maximumJackpotPoolLimit)), children: _jsx(Progress.Track, { className: "bg-bg-primary h-full overflow-hidden rounded-full", children: _jsx(Progress.Range, { className: "bg-brand-500 relative h-full overflow-hidden rounded-full pl-1.5", children: _jsx("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-start pl-1.5", "aria-hidden": "true", children: arrowImages }) }) }) }), _jsx("div", { className: "mt-1 block text-start text-2xs lg:hidden", children: isPayingOut
64
+ ? `The pot has hit ${formatNumber(jackpot?.maximumJackpotPoolLimit, {
65
+ currency: localeInfo.currency.code,
66
+ compact: true,
67
+ })} Play now for your chance to win big! 🔥`
68
+ : getAccumulatingJackpotDescription(Number(jackpot?.pool) ?? 0, Number(jackpot?.maximumJackpotPoolLimit) ?? 0) })] })] }), _jsxs("div", { className: "z-1 hidden flex-1 space-y-4 lg:block", children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("div", { className: "flex gap-2", children: [_jsx(Image, { width: 24, height: 24, src: leaderboard, quality: 100, alt: "leaderboardIcon", className: "size-full h-auto w-6" }), _jsx("div", { className: "text-text-primary-900 text-lg font-semibold", children: jackpotPayouts.length ? 'Leaderboard' : 'Starting soon!' })] }), _jsxs(Link, { className: "text-button-tertiary-fg flex text-sm font-semibold", href: viewAllUrl ?? '/jackpots', children: ["See details", _jsx(ChevronRightIcon, { className: "size-5" })] })] }), _jsx("div", { className: twMerge('max-h-[272px] overflow-y-scroll', styles['scrollArea']), children: _jsx("div", { className: "border-gray-200 overflow-hidden rounded-xl", children: _jsxs("table", { className: "w-full", children: [_jsx("thead", { children: _jsxs("tr", { className: "bg-bg-secondary text-text-tertiary-600 h-8 text-xs font-medium", children: [_jsx("th", { className: "w-[52px]", children: "#" }), _jsx("th", { children: "Player" }), _jsx("th", { children: "Multiplier" }), _jsx("th", { children: "Prize" })] }) }), _jsx("tbody", { children: jackpotPayouts.length ? (_jsx(_Fragment, { children: jackpotPayouts.map((jackpotPayout, i) => (_jsxs("tr", { className: "bg-bg-primary text-text-secondary-700 text-sm", children: [_jsx("td", { className: "border-border-secondary h-12 w-[52px] border-t-2", children: i + 1 < 6 ? (_jsxs("div", { className: "relative", children: [_jsx(StarIcon, { className: twMerge('mx-auto size-6.5', starTierStyles[i].starColor) }), _jsx("span", { className: twMerge('absolute inset-0 mt-0.5 flex items-center justify-center text-2xs font-bold', starTierStyles[i].numberColor), children: i + 1 })] })) : (i + 1) }), _jsx("td", { className: "border-border-secondary h-12 border-t-2", children: maskName(jackpotPayout.member.name) }), _jsxs("td", { className: "border-border-secondary h-12 border-t-2", children: [jackpotPayout.multiplier, "x"] }), _jsx("td", { className: "border-border-secondary text-brand-400 h-12 border-t-2", children: formatNumber(jackpotPayout.amount, {
69
+ currency: localeInfo.currency.code,
70
+ minDecimalPlaces: 2,
71
+ maxDecimalPlaces: 2,
72
+ }) })] }, i))) })) : (_jsx(_Fragment, { children: Array.from({ length: 10 }).map((_, i) => (_jsxs("tr", { className: "bg-bg-primary text-text-secondary-700 text-sm", children: [_jsx("td", { className: "border-border-secondary h-12 w-[52px] border-t-2", children: i + 1 < 6 ? (_jsxs("div", { className: "relative", children: [_jsx(StarIcon, { className: twMerge('mx-auto size-6.5', starTierStyles[i].starColor) }), _jsx("span", { className: twMerge('absolute inset-0 mt-0.5 flex items-center justify-center text-2xs font-bold', starTierStyles[i].numberColor), children: i + 1 })] })) : (i + 1) }), _jsx("td", { className: "border-border-secondary h-12 border-t-2", children: "-" }), _jsx("td", { className: "border-border-secondary h-12 border-t-2", children: "-" }), _jsx("td", { className: "border-border-secondary h-12 border-t-2", children: "-" })] }, i))) })) })] }) }) })] }), isPayingOut && (_jsx("div", { className: twMerge(styles['light-rays'], 'absolute right-0 top-0 rounded-2xl [--light-rays-top:25%] lg:[--light-rays-top:150px]') }))] }));
73
+ }
74
+ export function maskName(name) {
75
+ if (name.length <= 7) {
76
+ return '*'.repeat(name.length);
77
+ }
78
+ const visiblePart = name.slice(0, 3);
79
+ const maskedPart = '*'.repeat(7);
80
+ return visiblePart + maskedPart;
81
+ }
82
+ const calculatePercentage = (part, total) => {
83
+ if (total === 0)
84
+ return 0;
85
+ return (part / total) * 100;
86
+ };
87
+ const getAccumulatingJackpotDescription = (part, total) => {
88
+ const percentage = total === 0 ? 0 : (part / total) * 100;
89
+ return percentage <= 90
90
+ ? 'The jackpot is heating up! Keep playing to stay in the action and watch it grow!'
91
+ : '🔥 It’s about to pop! Stay in the game for your shot at the prize!';
92
+ };
93
+ const starTierStyles = [
94
+ {
95
+ starColor: 'text-yellow-400',
96
+ numberColor: 'text-bg-primary',
97
+ },
98
+ {
99
+ starColor: 'text-utility-gray-700',
100
+ numberColor: 'text-bg-primary',
101
+ },
102
+ {
103
+ starColor: 'text-yellow-700',
104
+ numberColor: 'text-bg-primary',
105
+ },
106
+ {
107
+ starColor: 'text-bg-quaternary',
108
+ numberColor: 'text-text-primary-900',
109
+ },
110
+ {
111
+ starColor: 'text-bg-quaternary',
112
+ numberColor: 'text-text-primary-900',
113
+ },
114
+ ];
@@ -1 +1 @@
1
- export * from './JackpotCounter';
1
+ export * from './JackpotCounter.js';
@@ -1,5 +1,5 @@
1
- import type { GameProviderData } from '../../types';
1
+ import type { GameProviderData } from '~/types';
2
2
  export interface JackpotGameProvidersProps {
3
3
  gameProviders: GameProviderData[];
4
4
  }
5
- export declare function JackpotGameProviders({ gameProviders, }: JackpotGameProvidersProps): import("react").JSX.Element;
5
+ export declare function JackpotGameProviders({ gameProviders, }: JackpotGameProvidersProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,38 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import useEmblaCarousel from 'embla-carousel-react';
4
+ import Image from 'next/image';
5
+ import Link from 'next/link';
6
+ import { useCallback, useEffect, useState } from 'react';
7
+ import { ArrowLeftIcon, ArrowRightIcon } from '../../icons/index.js';
8
+ import { Button } from '../../ui/index.js';
9
+ export function JackpotGameProviders({ gameProviders, }) {
10
+ const [emblaRef, emblaApi] = useEmblaCarousel({
11
+ align: 'start',
12
+ slidesToScroll: 1,
13
+ });
14
+ const scrollPrev = useCallback(() => {
15
+ if (emblaApi)
16
+ emblaApi.scrollPrev();
17
+ }, [emblaApi]);
18
+ const scrollNext = useCallback(() => {
19
+ if (emblaApi)
20
+ emblaApi.scrollNext();
21
+ }, [emblaApi]);
22
+ const [canScrollPrev, setCanScrollPrev] = useState(false);
23
+ const [canScrollNext, setCanScrollNext] = useState(false);
24
+ const onSelect = useCallback(() => {
25
+ if (!emblaApi)
26
+ return;
27
+ setCanScrollPrev(emblaApi.canScrollPrev());
28
+ setCanScrollNext(emblaApi.canScrollNext());
29
+ }, [emblaApi]);
30
+ useEffect(() => {
31
+ if (!emblaApi)
32
+ return;
33
+ onSelect();
34
+ emblaApi.on('select', onSelect);
35
+ emblaApi.on('reInit', onSelect);
36
+ }, [emblaApi, onSelect]);
37
+ return (_jsxs("div", { className: "p-4 pb-8", children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsx("div", { className: "text-text-primary-900 text-lg font-semibold", children: "Jackpot Game Providers" }), _jsxs("div", { className: "hidden lg:flex", children: [_jsx(Button, { disabled: !canScrollPrev, onClick: scrollPrev, variant: "outline", colorScheme: "gray", className: "rounded-r-none border-r-0", "aria-label": "Previous", children: _jsx(ArrowLeftIcon, { className: "size-5" }) }), _jsxs(Button, { disabled: !canScrollNext, onClick: scrollNext, variant: "outline", colorScheme: "gray", className: "rounded-l-none", "aria-label": "Next", children: [_jsx("span", { className: "sr-only", children: "Next" }), _jsx(ArrowRightIcon, { className: "size-5" })] })] })] }), _jsx("div", { className: "relative mt-3 overflow-hidden", ref: emblaRef, children: _jsx("div", { className: "flex gap-3.5", children: gameProviders.map((provider, i) => (_jsx(Link, { href: `/${provider.slug}`, className: "bg-gray-800 lg:bg-bg-primary-900 min-w-27.5 rounded-md", children: _jsx(Image, { src: provider.logo, alt: "provider", className: "size-full" }) }, i))) }) })] }));
38
+ }
@@ -1,9 +1,9 @@
1
1
  import type { Jackpot } from '@opexa/portal-sdk-core';
2
- import type { GameProviderData } from '../../types';
2
+ import type { GameProviderData } from '~/types';
3
3
  export interface JackpotItemProps {
4
4
  jackpot: Jackpot;
5
5
  /** @default "/jackpots" */
6
6
  viewAllUrl?: string;
7
7
  gameProviders: GameProviderData[];
8
8
  }
9
- export declare function JackpotItemDesktop({ jackpot, gameProviders, }: JackpotItemProps): import("react").JSX.Element;
9
+ export declare function JackpotItemDesktop({ jackpot, gameProviders, }: JackpotItemProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,44 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
+ import { Progress } from '@ark-ui/react';
4
+ import Image from 'next/image';
5
+ import { twMerge } from 'tailwind-merge';
6
+ import { ArrowNarrowUpRightIcon, ChevronLeftIcon, ChevronRightIcon, Trophy01Icon, } from '../../icons/index.js';
7
+ import { StarIcon } from '../../icons/StarIcon.js';
8
+ import closeChest from '../../images/close-chest.png';
9
+ import firstPlace from '../../images/first-place.png';
10
+ import leaderboard from '../../images/leaderboard.png';
11
+ import openChest from '../../images/open-chest.png';
12
+ import { formatNumber } from '../../utils/index.js';
13
+ import { maskName } from '../JackpotCounter/JackpotCounterItem.js';
14
+ import styles from '../JackpotCounter/JackpotCounterItem.module.css';
15
+ import { JackpotGameProviders } from './JackpotGameProviders.js';
16
+ import { JackpotRules } from './JackpotRules.js';
17
+ import { useJackpotItemData } from './useJackpotItemData.js';
18
+ export function JackpotItemDesktop({ jackpot, gameProviders, }) {
19
+ const { jackpotPayouts, topJackpotPayout, filteredGameProviders, localeInfo, isPayingOut, jackpotAmount, arrowImages, calculatePercentage, getAccumulatingJackpotDescription, starTierStyles, } = useJackpotItemData({ jackpot, gameProviders });
20
+ return (_jsxs("div", { className: twMerge('bg-bg-tertiary border-border-primary rounded-2xl border'), children: [_jsxs("div", { className: twMerge('relative flex shrink-0 p-3 text-center lg:gap-4 lg:p-5'), children: [_jsxs("div", { className: "z-1 relative flex flex-1 flex-col", children: [_jsx("div", { className: "flex h-full flex-col justify-between", children: _jsx("div", { className: "flex w-full justify-between", children: _jsxs("div", { className: "flex w-full flex-col", children: [_jsxs("div", { className: "relative flex w-full justify-between", children: [_jsxs("div", { children: [isPayingOut ? (_jsxs("div", { className: "border-utility-success-200 bg-utility-success-50 text-utility-success-700 flex w-fit items-center gap-1 rounded-full border px-2 py-0.5 text-xs font-medium", children: [_jsx("span", { className: "full bg-utility-success-500 size-1.5 animate-pulse rounded" }), "Paying Out"] })) : (_jsxs("div", { className: "border-utility-blue-200 bg-utility-blue-50 text-utility-blue-700 flex w-fit items-center gap-1 rounded-full border px-2 py-0.5 text-xs font-medium", children: [_jsx(ArrowNarrowUpRightIcon, { className: "text-utility-blue-500 size-3.5" }), "Accumulating"] })), _jsx("div", { className: "text-text-primary-900 mt-1 text-left text-lg font-medium lg:mt-5 lg:text-2xl", children: jackpot.name }), _jsx("div", { className: "bg-bg-primary text-brand-400 mt-1.5 w-fit rounded-md px-2 py-1 text-2xl font-bold lg:mt-2 lg:text-4xl", children: formatNumber(jackpotAmount, {
21
+ currency: localeInfo.currency.code,
22
+ minDecimalPlaces: 2,
23
+ maxDecimalPlaces: 2,
24
+ }) })] }), _jsx("div", { className: "z-1 bottom-[-60] right-0 block lg:absolute", children: _jsx(Image, { width: 150, height: 150, src: isPayingOut ? openChest : closeChest, alt: "closeChest", quality: 100, className: "h-25 w-25 lg:h-37.5 lg:w-37.5 size-full p-2" }) })] }), topJackpotPayout.amount ? (_jsx("div", { children: _jsxs("div", { className: "bg-bg-primary relative mt-4 hidden w-full gap-4 rounded-lg p-4 lg:flex", children: [_jsx("div", { className: "border-yellow-400 relative h-18 w-18 rounded-full border", children: _jsx("div", { className: "bg-yellow-400 text-brand-950 border-bg-primary absolute bottom-0 right-0 flex h-6 w-6 items-center justify-center rounded-full border-[1.5px] text-xs font-bold", children: "1st" }) }), _jsxs("div", { className: "flex flex-col gap-1 text-left", children: [_jsxs("div", { className: "border-utility-brand-200 bg-utility-brand-50 text-utility-brand-700 flex h-fit w-fit items-center gap-1 rounded-sm border px-2 py-0.5 text-xs font-medium", children: [_jsx(Trophy01Icon, { className: "text-utility-brand-600 size-3.5" }), "Top Payout"] }), _jsx("div", { className: "font-semibold", children: maskName(topJackpotPayout.member.name) }), _jsx("div", { className: "text-brand-400 text-2xl", children: formatNumber(topJackpotPayout.amount, {
25
+ currency: localeInfo.currency.code,
26
+ minDecimalPlaces: 2,
27
+ maxDecimalPlaces: 2,
28
+ }) })] })] }) })) : (_jsxs("div", { className: "bg-bg-primary relative mt-4 hidden w-full gap-4 rounded-lg p-4 lg:flex", children: [_jsx(Image, { width: 66, height: 87, src: firstPlace, alt: "closeChest", className: "size-full h-auto w-[66px] mix-blend-luminosity" }), _jsxs("div", { className: "flex flex-col gap-1 text-left", children: [_jsxs("div", { className: "border-utility-brand-200 bg-utility-brand-50 text-utility-brand-700 flex h-fit w-fit items-center gap-1 rounded-sm border px-2 py-0.5 text-xs font-medium", children: [_jsx(Trophy01Icon, { className: "text-utility-brand-600 size-3.5" }), "Top Payout"] }), _jsx("div", { className: "font-semibold", children: "No winners yet" }), _jsx("div", { className: "text-text-secondary-700 text-xs", children: "You could be the first to win the tournament!" })] })] }))] }) }) }), _jsxs("div", { className: "mt-3 lg:mt-4", children: [_jsxs("div", { className: "mb-1 flex justify-between", children: [_jsx("div", { className: "text-text-primary-900 text-xs font-semibold", children: formatNumber(0, {
29
+ currency: localeInfo.currency.code,
30
+ compact: true,
31
+ }) }), _jsxs("div", { className: "relative flex items-center justify-end gap-1.5", children: [isPayingOut ? (_jsxs("div", { className: "flex w-6 items-center", children: [_jsx("div", { className: twMerge('absolute left-0', styles['animate-arrow-red-flash-1']), children: _jsx(ChevronLeftIcon, { className: "size-4.5" }) }), _jsx("div", { className: twMerge('absolute left-1.5', styles['animate-arrow-red-flash-2']), children: _jsx(ChevronLeftIcon, { className: "size-4.5" }) }), _jsx("div", { className: twMerge('absolute left-3', styles['animate-arrow-red-flash-3']), children: _jsx(ChevronLeftIcon, { className: "size-4.5" }) })] })) : (_jsxs("div", { className: "flex w-6 items-center", children: [_jsx("div", { className: twMerge('absolute left-0', styles['animate-arrow-green-flash-1']), children: _jsx(ChevronRightIcon, { className: "size-4.5" }) }), _jsx("div", { className: twMerge('absolute left-1.5', styles['animate-arrow-green-flash-2']), children: _jsx(ChevronRightIcon, { className: "size-4.5" }) }), _jsx("div", { className: twMerge('absolute left-3', styles['animate-arrow-green-flash-3']), children: _jsx(ChevronRightIcon, { className: "size-4.5" }) })] })), _jsx("div", { className: "text-text-primary-900 text-xs font-semibold", children: formatNumber(jackpot?.maximumJackpotPoolLimit, {
32
+ currency: localeInfo.currency.code,
33
+ compact: true,
34
+ }) })] })] }), _jsx(Progress.Root, { className: "bg-bg-primary h-2 w-full rounded-full lg:h-4", max: 100, value: calculatePercentage(Number(jackpot.pool), Number(jackpot.maximumJackpotPoolLimit)), children: _jsx(Progress.Track, { className: "bg-bg-primary h-full overflow-hidden rounded-full", children: _jsx(Progress.Range, { className: "bg-brand-500 relative h-full overflow-hidden rounded-full pl-1.5", children: _jsx("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-start pl-1.5", "aria-hidden": "true", children: arrowImages }) }) }) }), _jsx("div", { className: "mt-1 block text-start text-2xs lg:hidden", children: isPayingOut
35
+ ? `The pot has hit ${formatNumber(jackpot?.maximumJackpotPoolLimit, {
36
+ currency: localeInfo.currency.code,
37
+ compact: true,
38
+ })} Play now for your chance to win big! 🔥`
39
+ : getAccumulatingJackpotDescription(Number(jackpot?.pool) ?? 0, Number(jackpot?.maximumJackpotPoolLimit) ?? 0) })] })] }), _jsxs("div", { className: "z-1 hidden flex-1 space-y-4 lg:block", children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("div", { className: "flex gap-2", children: [_jsx(Image, { width: 24, height: 24, src: leaderboard, quality: 100, alt: "leaderboardIcon", className: "size-full h-auto w-6" }), _jsx("div", { className: "text-text-primary-900 text-lg font-semibold", children: jackpotPayouts.length ? 'Leaderboard' : 'Starting soon!' })] }), _jsx(JackpotRules, { jackpotRules: jackpot.description })] }), _jsx("div", { className: twMerge('max-h-[272px] overflow-y-scroll', styles['scrollArea']), children: _jsx("div", { className: "border-gray-200 overflow-hidden rounded-xl", children: _jsxs("table", { className: "w-full", children: [_jsx("thead", { children: _jsxs("tr", { className: "bg-bg-secondary text-text-tertiary-600 h-8 text-xs font-medium", children: [_jsx("th", { className: "w-[52px]", children: "#" }), _jsx("th", { children: "Player" }), _jsx("th", { children: "Multiplier" }), _jsx("th", { children: "Prize" })] }) }), _jsx("tbody", { children: jackpotPayouts.length ? (_jsx(_Fragment, { children: jackpotPayouts.map((jackpotPayout, i) => (_jsxs("tr", { className: "bg-bg-primary text-text-secondary-700 text-sm", children: [_jsx("td", { className: "border-border-secondary h-12 w-[52px] border-t-2", children: i + 1 < 6 ? (_jsxs("div", { className: "relative", children: [_jsx(StarIcon, { className: twMerge('mx-auto size-6.5', starTierStyles[i].starColor) }), _jsx("span", { className: twMerge('absolute inset-0 mt-0.5 flex items-center justify-center text-2xs font-bold', starTierStyles[i].numberColor), children: i + 1 })] })) : (i + 1) }), _jsx("td", { className: "border-border-secondary h-12 border-t-2", children: maskName(jackpotPayout.member.name) }), _jsxs("td", { className: "border-border-secondary h-12 border-t-2", children: [jackpotPayout.multiplier, "x"] }), _jsx("td", { className: "border-border-secondary text-brand-400 h-12 border-t-2", children: formatNumber(jackpotPayout.amount, {
40
+ currency: localeInfo.currency.code,
41
+ minDecimalPlaces: 2,
42
+ maxDecimalPlaces: 2,
43
+ }) })] }, i))) })) : (_jsx(_Fragment, { children: Array.from({ length: 10 }).map((_, i) => (_jsxs("tr", { className: "bg-bg-primary text-text-secondary-700 text-sm", children: [_jsx("td", { className: "border-border-secondary h-12 w-[52px] border-t-2", children: i + 1 < 6 ? (_jsxs("div", { className: "relative", children: [_jsx(StarIcon, { className: twMerge('mx-auto size-6.5', starTierStyles[i].starColor) }), _jsx("span", { className: twMerge('absolute inset-0 mt-0.5 flex items-center justify-center text-2xs font-bold', starTierStyles[i].numberColor), children: i + 1 })] })) : (i + 1) }), _jsx("td", { className: "border-border-secondary h-12 border-t-2", children: "-" }), _jsx("td", { className: "border-border-secondary h-12 border-t-2", children: "-" }), _jsx("td", { className: "border-border-secondary h-12 border-t-2", children: "-" })] }, i))) })) })] }) }) })] }), isPayingOut && (_jsx("div", { className: twMerge(styles['light-rays'], 'absolute right-0 top-0 rounded-2xl') }))] }), Boolean(filteredGameProviders.length) && (_jsx(JackpotGameProviders, { gameProviders: gameProviders }))] }));
44
+ }
@@ -1,9 +1,9 @@
1
1
  import type { Jackpot } from '@opexa/portal-sdk-core';
2
- import type { GameProviderData } from '../../types';
2
+ import type { GameProviderData } from '~/types';
3
3
  export interface JackpotItemMobileProps {
4
4
  jackpot: Jackpot;
5
5
  /** @default "/jackpots" */
6
6
  viewAllUrl?: string;
7
7
  gameProviders: GameProviderData[];
8
8
  }
9
- export declare function JackpotItemMobile({ jackpot, gameProviders, }: JackpotItemMobileProps): import("react").JSX.Element;
9
+ export declare function JackpotItemMobile({ jackpot, gameProviders, }: JackpotItemMobileProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,48 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
+ import { Progress } from '@ark-ui/react';
4
+ import Image from 'next/image';
5
+ import { useState } from 'react';
6
+ import { twMerge } from 'tailwind-merge';
7
+ import { ArrowNarrowUpRightIcon, ChevronLeftIcon, ChevronRightIcon, Trophy01Icon, } from '../../icons/index.js';
8
+ import { ArrowNarrowDownIcon } from '../../icons/ArrowNarrowDownIcon.js';
9
+ import { ArrowNarrowUpIcon } from '../../icons/ArrowNarrowUpIcon.js';
10
+ import { StarIcon } from '../../icons/StarIcon.js';
11
+ import closeChest from '../../images/close-chest.png';
12
+ import firstPlace from '../../images/first-place.png';
13
+ import openChest from '../../images/open-chest.png';
14
+ import { Button } from '../../ui/index.js';
15
+ import { formatNumber } from '../../utils/index.js';
16
+ import { maskName } from '../JackpotCounter/JackpotCounterItem.js';
17
+ import styles from '../JackpotCounter/JackpotCounterItem.module.css';
18
+ import { JackpotGameProviders } from './JackpotGameProviders.js';
19
+ import { JackpotRules } from './JackpotRules.js';
20
+ import { useJackpotItemData } from './useJackpotItemData.js';
21
+ export function JackpotItemMobile({ jackpot, gameProviders, }) {
22
+ const { jackpotPayouts, topJackpotPayout, filteredGameProviders, localeInfo, isPayingOut, jackpotAmount, arrowImages, calculatePercentage, getAccumulatingJackpotDescription, starTierStyles, } = useJackpotItemData({ jackpot, gameProviders });
23
+ const [isDetailsVisible, setIsDetailsVisible] = useState(false);
24
+ return (_jsxs("div", { className: "bg-bg-primary border-border-primary rounded-2xl border", children: [_jsxs("div", { className: twMerge('bg-bg-tertiary relative flex shrink-0 rounded-2xl p-3 text-center lg:gap-4 lg:p-5'), children: [_jsxs("div", { className: "z-1 relative flex flex-1 flex-col", children: [_jsx("div", { className: "flex h-full flex-col justify-between", children: _jsx("div", { className: "flex w-full justify-between", children: _jsx("div", { className: "flex w-full flex-col", children: _jsxs("div", { className: "relative flex w-full justify-between", children: [_jsxs("div", { children: [isPayingOut ? (_jsxs("div", { className: "border-utility-success-200 bg-utility-success-50 text-utility-success-700 flex w-fit items-center gap-1 rounded-full border px-2 py-0.5 text-xs font-medium", children: [_jsx("span", { className: "full bg-utility-success-500 size-1.5 animate-pulse rounded" }), "Paying Out"] })) : (_jsxs("div", { className: "border-utility-blue-200 bg-utility-blue-50 text-utility-blue-700 flex w-fit items-center gap-1 rounded-full border px-2 py-0.5 text-xs font-medium", children: [_jsx(ArrowNarrowUpRightIcon, { className: "text-utility-blue-500 size-3.5" }), "Accumulating"] })), _jsx("div", { className: "text-text-primary-900 mt-1 text-left text-lg font-medium lg:mt-5 lg:text-2xl", children: jackpot.name }), _jsx("div", { className: "bg-bg-primary text-brand-400 mt-1.5 w-fit rounded-md px-2 py-1 text-2xl font-bold lg:mt-2 lg:text-4xl", children: formatNumber(jackpotAmount, {
25
+ currency: localeInfo.currency.code,
26
+ minDecimalPlaces: 2,
27
+ maxDecimalPlaces: 2,
28
+ }) })] }), _jsx("div", { className: "z-1 bottom-[-60] right-0 block lg:absolute", children: _jsx(Image, { width: 100, height: 100, src: isPayingOut ? openChest : closeChest, alt: "closeChest", quality: 100, className: "size-full h-auto w-[100px]" }) })] }) }) }) }), _jsxs("div", { className: "mt-3 lg:mt-4", children: [_jsxs("div", { className: "mb-1 flex justify-between", children: [_jsx("div", { className: "text-text-primary-900 text-xs font-semibold", children: formatNumber(0, {
29
+ currency: localeInfo.currency.code,
30
+ compact: true,
31
+ }) }), _jsxs("div", { className: "relative flex items-center justify-end gap-1.5", children: [isPayingOut ? (_jsxs("div", { className: "flex w-6 items-center", children: [_jsx("div", { className: twMerge('absolute left-0', styles['animate-arrow-red-flash-1']), children: _jsx(ChevronLeftIcon, { className: "size-4.5" }) }), _jsx("div", { className: twMerge('absolute left-1.5', styles['animate-arrow-red-flash-2']), children: _jsx(ChevronLeftIcon, { className: "size-4.5" }) }), _jsx("div", { className: twMerge('absolute left-3', styles['animate-arrow-red-flash-3']), children: _jsx(ChevronLeftIcon, { className: "size-4.5" }) })] })) : (_jsxs("div", { className: "flex w-6 items-center", children: [_jsx("div", { className: twMerge('absolute left-0', styles['animate-arrow-green-flash-1']), children: _jsx(ChevronRightIcon, { className: "size-4.5" }) }), _jsx("div", { className: twMerge('absolute left-1.5', styles['animate-arrow-green-flash-2']), children: _jsx(ChevronRightIcon, { className: "size-4.5" }) }), _jsx("div", { className: twMerge('absolute left-3', styles['animate-arrow-green-flash-3']), children: _jsx(ChevronRightIcon, { className: "size-4.5" }) })] })), _jsx("div", { className: "text-text-primary-900 text-xs font-semibold", children: formatNumber(jackpot?.maximumJackpotPoolLimit, {
32
+ currency: localeInfo.currency.code,
33
+ compact: true,
34
+ }) })] })] }), _jsx(Progress.Root, { className: "bg-bg-primary h-2 w-full rounded-full lg:h-4", max: 100, value: calculatePercentage(Number(jackpot.pool), Number(jackpot.maximumJackpotPoolLimit)), children: _jsx(Progress.Track, { className: "bg-bg-primary h-full overflow-hidden rounded-full", children: _jsx(Progress.Range, { className: "bg-brand-500 relative h-full overflow-hidden rounded-full pl-1.5", children: _jsx("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-start pl-1.5", "aria-hidden": "true", children: arrowImages }) }) }) }), _jsx("div", { className: "mt-1 block text-start text-2xs lg:hidden", children: isPayingOut
35
+ ? `The pot has hit ${formatNumber(jackpot?.maximumJackpotPoolLimit, {
36
+ currency: localeInfo.currency.code,
37
+ compact: true,
38
+ })} Play now for your chance to win big! 🔥`
39
+ : getAccumulatingJackpotDescription(Number(jackpot?.pool) ?? 0, Number(jackpot?.maximumJackpotPoolLimit) ?? 0) })] }), topJackpotPayout.amount ? (_jsx("div", { children: _jsxs("div", { className: "bg-bg-primary relative mt-4 flex w-full gap-4 rounded-lg p-4", children: [_jsx("div", { className: "border-yellow-400 relative h-18 w-18 rounded-full border", children: _jsx("div", { className: "bg-yellow-400 text-brand-950 border-bg-primary absolute bottom-0 right-0 flex h-6 w-6 items-center justify-center rounded-full border-[1.5px] text-xs font-bold", children: "1st" }) }), _jsxs("div", { className: "flex flex-col gap-1 text-left", children: [_jsxs("div", { className: "border-utility-brand-200 bg-utility-brand-50 text-utility-brand-700 flex h-fit w-fit items-center gap-1 rounded-sm border px-2 py-0.5 text-xs font-medium", children: [_jsx(Trophy01Icon, { className: "text-utility-brand-600 size-3.5" }), "Top Payout"] }), _jsx("div", { className: "font-semibold", children: maskName(topJackpotPayout.member.name) }), _jsx("div", { className: "text-brand-400 text-2xl", children: formatNumber(topJackpotPayout.amount, {
40
+ currency: localeInfo.currency.code,
41
+ minDecimalPlaces: 2,
42
+ maxDecimalPlaces: 2,
43
+ }) })] })] }) })) : (_jsxs("div", { className: "bg-bg-primary relative mt-4 flex w-full gap-4 rounded-lg p-4", children: [_jsx(Image, { width: 66, height: 87, src: firstPlace, alt: "closeChest", className: "size-full h-auto w-[66px] mix-blend-luminosity" }), _jsxs("div", { className: "flex flex-col gap-1 text-left", children: [_jsxs("div", { className: "border-utility-brand-200 bg-utility-brand-50 text-utility-brand-700 flex h-fit w-fit items-center gap-1 rounded-sm border px-2 py-0.5 text-xs font-medium", children: [_jsx(Trophy01Icon, { className: "text-utility-brand-600 size-3.5" }), "Top Payout"] }), _jsx("div", { className: "font-semibold", children: "No winners yet" }), _jsx("div", { className: "text-text-secondary-700 text-xs", children: "You could be the first to win the tournament!" })] })] })), _jsx(Button, { variant: "outline", className: twMerge('mt-5.5 px-3.5 py-2.5 text-sm', isDetailsVisible ? 'hidden' : 'flex'), onClick: () => setIsDetailsVisible(!isDetailsVisible), children: _jsxs("div", { className: "flex gap-1.5", children: ["See Details", _jsx(ArrowNarrowDownIcon, { className: "size-5" })] }) })] }), isPayingOut && (_jsx("div", { className: twMerge(styles['light-rays'], 'absolute right-0 top-0 rounded-2xl [--light-rays-top:15%] lg:[--light-rays-top:150px]') }))] }), isDetailsVisible && (_jsxs("div", { children: [_jsxs("div", { className: "z-1 flex-1", children: [_jsxs("div", { className: "flex items-center justify-between p-3", children: [_jsx("div", { className: "flex gap-2", children: _jsx("div", { className: "text-text-primary-900 text-lg font-semibold", children: jackpotPayouts.length ? 'Leaderboard' : 'Starting soon!' }) }), _jsx(JackpotRules, { jackpotRules: jackpot.description })] }), _jsx("div", { children: _jsx("div", { className: "border-gray-200 overflow-hidden", children: _jsxs("table", { className: "w-full", children: [_jsx("thead", { children: _jsxs("tr", { className: "bg-bg-secondary text-text-tertiary-600 h-8 text-center text-xs font-medium", children: [_jsx("th", { className: "w-[52px]", children: "#" }), _jsx("th", { children: "Player" }), _jsx("th", { children: "Multiplier" }), _jsx("th", { children: "Prize" })] }) }), _jsx("tbody", { children: jackpotPayouts.length ? (_jsx(_Fragment, { children: jackpotPayouts.map((jackpotPayout, i) => (_jsxs("tr", { className: "bg-bg-primary text-text-secondary-700 text-center text-sm", children: [_jsx("td", { className: "border-border-secondary h-12 w-[52px] border-t-2", children: i + 1 < 6 ? (_jsxs("div", { className: "relative", children: [_jsx(StarIcon, { className: twMerge('mx-auto size-6.5', starTierStyles[i].starColor) }), _jsx("span", { className: twMerge('absolute inset-0 mt-0.5 flex items-center justify-center text-2xs font-bold', starTierStyles[i].numberColor), children: i + 1 })] })) : (i + 1) }), _jsx("td", { className: "border-border-secondary h-12 border-t-2", children: maskName(jackpotPayout.member.name) }), _jsxs("td", { className: "border-border-secondary h-12 border-t-2", children: [jackpotPayout.multiplier, "x"] }), _jsx("td", { className: "border-border-secondary text-brand-400 h-12 border-t-2", children: formatNumber(jackpotPayout.amount, {
44
+ currency: localeInfo.currency.code,
45
+ minDecimalPlaces: 2,
46
+ maxDecimalPlaces: 2,
47
+ }) })] }, i))) })) : (_jsx(_Fragment, { children: Array.from({ length: 10 }).map((_, i) => (_jsxs("tr", { className: "bg-bg-primary text-text-secondary-700 text-center text-sm", children: [_jsx("td", { className: "border-border-secondary h-12 w-[52px] border-t-2", children: i + 1 < 6 ? (_jsxs("div", { className: "relative", children: [_jsx(StarIcon, { className: twMerge('mx-auto size-6.5', starTierStyles[i].starColor) }), _jsx("span", { className: twMerge('absolute inset-0 mt-0.5 flex items-center justify-center text-2xs font-bold', starTierStyles[i].numberColor), children: i + 1 })] })) : (i + 1) }), _jsx("td", { className: "border-border-secondary h-12 border-t-2", children: "-" }), _jsx("td", { className: "border-border-secondary h-12 border-t-2", children: "-" }), _jsx("td", { className: "border-border-secondary h-12 border-t-2", children: "-" })] }, i))) })) })] }) }) })] }), Boolean(filteredGameProviders.length) && (_jsx(JackpotGameProviders, { gameProviders: gameProviders })), _jsx("div", { className: "m-3", children: _jsx(Button, { variant: "outline", className: twMerge('px-3.5 py-2.5 text-sm', !isDetailsVisible ? 'hidden' : 'flex'), onClick: () => setIsDetailsVisible(!isDetailsVisible), children: _jsxs("div", { className: "flex gap-1.5", children: ["Hide", _jsx(ArrowNarrowUpIcon, { className: "size-5" })] }) }) })] }))] }));
48
+ }
@@ -3,4 +3,4 @@ export interface JackpotRulesProps {
3
3
  children?: ReactNode;
4
4
  jackpotRules: string;
5
5
  }
6
- export declare function JackpotRules(props: JackpotRulesProps): import("react").JSX.Element;
6
+ export declare function JackpotRules(props: JackpotRulesProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { Portal } from '@ark-ui/react';
4
+ import { XIcon } from '../../icons/index.js';
5
+ import { Flag06Icon } from '../../icons/Flag06Icon.js';
6
+ import { Dialog } from '../../ui/index.js';
7
+ export function JackpotRules(props) {
8
+ return (_jsxs(Dialog.Root, { lazyMount: true, unmountOnExit: true, closeOnEscape: false, closeOnInteractOutside: false, children: [_jsx(Dialog.Trigger, { asChild: true, children: props.children ?? (_jsx("button", { type: "button", className: "text-button-tertiary-fg flex text-sm font-semibold", children: "Jackpot Rules" })) }), _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, {}), _jsx(Dialog.Positioner, { children: _jsxs(Dialog.Content, { className: "bg-bg-primary-alt mx-auto h-full w-full items-start lg:h-auto lg:w-[640px] lg:rounded-xl", children: [_jsxs("div", { className: "p-3xl", children: [_jsxs("div", { className: "mb-3 flex justify-between", children: [_jsx("div", { className: "bg-bg-tertiary border-border-primary flex h-12 w-12 items-center justify-center rounded-lg border", children: _jsx(Flag06Icon, { className: "text-text-tertiary-600 size-full p-3" }) }), _jsx(Dialog.CloseTrigger, { children: _jsx(XIcon, {}) })] }), _jsx("div", { className: "text-text-primary-900 text-lg font-semibold", children: "Jackpot Rules" }), _jsx("div", { className: "text-text-tertiary-600 mt-1 text-sm", children: "Terms and Conditions" })] }), _jsx("div", { className: "border-gray-800 border-t-1 pb-3", children: _jsx("div", { dangerouslySetInnerHTML: { __html: props.jackpotRules }, className: "px-3xl py-3" }) })] }) })] })] }));
9
+ }
@@ -1,4 +1,4 @@
1
- import type { GameProviderData } from '../../types';
1
+ import type { GameProviderData } from '~/types';
2
2
  export interface JackpotsProps {
3
3
  /** @default "Promos" */
4
4
  heading?: string;
@@ -7,4 +7,4 @@ export interface JackpotsProps {
7
7
  className?: string;
8
8
  gameProviders: GameProviderData[];
9
9
  }
10
- export declare function Jackpots(props: JackpotsProps): import("react").JSX.Element | null;
10
+ export declare function Jackpots(props: JackpotsProps): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,26 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { useJackpotsQuery } from '../../client/hooks/index.js';
4
+ import { JackpotItemDesktop } from './JackpotItemDesktop.js';
5
+ import { JackpotItemMobile } from './JackpotItemMobile.js';
6
+ export function Jackpots(props) {
7
+ const jackpotsQuery = useJackpotsQuery({
8
+ first: 100,
9
+ filter: {
10
+ status: {
11
+ equal: 'ACTIVE',
12
+ },
13
+ deleted: {
14
+ equal: false,
15
+ },
16
+ },
17
+ sort: {
18
+ cursor: 'POOL',
19
+ order: 'DESC',
20
+ },
21
+ });
22
+ const jackpots = jackpotsQuery.data?.pages[0].edges.map((edge) => edge.node) ?? [];
23
+ if (jackpots.length <= 0)
24
+ return null;
25
+ return (_jsxs("div", { className: props.className, children: [_jsx("div", { className: "mb-3 text-lg font-semibold lg:mb-4.5", children: props.heading ?? 'Jackpots' }), _jsx("div", { className: "hidden flex-col gap-6 lg:flex", children: jackpots.map((jackpot) => (_jsx(JackpotItemDesktop, { gameProviders: props.gameProviders, jackpot: jackpot, viewAllUrl: props.viewAllUrl }, jackpot.id))) }), _jsx("div", { className: "flex flex-col gap-6 lg:hidden", children: jackpots.map((jackpot) => (_jsx(JackpotItemMobile, { gameProviders: props.gameProviders, jackpot: jackpot, viewAllUrl: props.viewAllUrl }, jackpot.id))) })] }));
26
+ }
@@ -1 +1 @@
1
- export * from './Jackpots';
1
+ export * from './Jackpots.js';
@@ -1,5 +1,5 @@
1
1
  import type { Jackpot } from '@opexa/portal-sdk-core';
2
- import type { GameProviderData } from '../../types';
2
+ import type { GameProviderData } from '~/types';
3
3
  export interface JackpotItemProps {
4
4
  jackpot: Jackpot;
5
5
  gameProviders: GameProviderData[];
@@ -11,7 +11,7 @@ export declare function useJackpotItemData({ jackpot, gameProviders, }: JackpotI
11
11
  localeInfo: import("../../utils").LocaleInfo;
12
12
  isPayingOut: boolean;
13
13
  jackpotAmount: string;
14
- arrowImages: import("react").JSX.Element[];
14
+ arrowImages: import("react/jsx-runtime").JSX.Element[];
15
15
  calculatePercentage: (part: number, total: number) => number;
16
16
  getAccumulatingJackpotDescription: (part: number, total: number) => string;
17
17
  starTierStyles: {
@@ -1,8 +1,9 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
1
2
  import { useCallback, useMemo } from 'react';
2
3
  import { twMerge } from 'tailwind-merge';
3
- import { useLocaleInfo } from '../../client/hooks';
4
- import { useJackpotPayoutsQuery } from '../../client/hooks/useJackpotPayoutsQuery';
5
- import { ChevronLeftIcon, ChevronRightIcon } from '../../icons';
4
+ import { useLocaleInfo } from '../../client/hooks/index.js';
5
+ import { useJackpotPayoutsQuery } from '../../client/hooks/useJackpotPayoutsQuery.js';
6
+ import { ChevronLeftIcon, ChevronRightIcon } from '../../icons/index.js';
6
7
  import styles from '../JackpotCounter/JackpotCounterItem.module.css';
7
8
  export function useJackpotItemData({ jackpot, gameProviders, }) {
8
9
  const jackpotPayoutsQuery = useJackpotPayoutsQuery({
@@ -34,15 +35,15 @@ export function useJackpotItemData({ jackpot, gameProviders, }) {
34
35
  : jackpot.pool;
35
36
  const Arrow = useCallback(({ index }) => {
36
37
  const Icon = isPayingOut ? ChevronLeftIcon : ChevronRightIcon;
37
- return (<Icon className={twMerge('scale-400 lg:scale-250 text-brand-300 min-w-2.5 lg:min-w-4', isPayingOut
38
+ return (_jsx(Icon, { className: twMerge('scale-400 lg:scale-250 text-brand-300 min-w-2.5 lg:min-w-4', isPayingOut
38
39
  ? styles['animate-wave-color-error']
39
- : styles['animate-wave-color-success'])} style={{
40
+ : styles['animate-wave-color-success']), style: {
40
41
  animationDelay: isPayingOut
41
42
  ? `${(40 - index - 1) * 0.1}s`
42
43
  : `${index * 0.1}s`,
43
- }}/>);
44
+ } }));
44
45
  }, [isPayingOut]);
45
- const arrowImages = useMemo(() => Array.from({ length: 40 }, (_, i) => (<Arrow key={i} isFirst={i === 0} index={i}/>)), [Arrow]);
46
+ const arrowImages = useMemo(() => Array.from({ length: 40 }, (_, i) => (_jsx(Arrow, { isFirst: i === 0, index: i }, i))), [Arrow]);
46
47
  const calculatePercentage = (part, total) => {
47
48
  if (total === 0)
48
49
  return 0;
@@ -2,4 +2,4 @@ import type { ImageProps } from 'next/image';
2
2
  export interface KYCProps {
3
3
  logo: ImageProps['src'];
4
4
  }
5
- export declare function KYC(props: KYCProps): import("react").JSX.Element;
5
+ export declare function KYC(props: KYCProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,19 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { Portal } from '@ark-ui/react';
4
+ import Image from 'next/image';
5
+ import { Dialog } from '../../ui/index.js';
6
+ import { KYCContext } from './KYCContext.js';
7
+ import { Step1 } from './Step1.js';
8
+ import { Step2 } from './Step2.js';
9
+ import { Step3 } from './Step3.js';
10
+ import { StepIndicator } from './StepIndicator.js';
11
+ import { UploadDocument } from './UploadDocument.js';
12
+ import { UploadSelfie } from './UploadSelfie.js';
13
+ import { useKYC } from './useKYC.js';
14
+ export function KYC(props) {
15
+ const context = useKYC();
16
+ return (_jsx(KYCContext, { value: context, children: _jsx(Dialog.Root, { open: context.open, onOpenChange: (details) => {
17
+ context.setOpen(details.open);
18
+ }, lazyMount: true, unmountOnExit: true, closeOnEscape: false, closeOnInteractOutside: false, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, {}), _jsx(Dialog.Positioner, { children: _jsxs(Dialog.Content, { className: "mx-auto w-fit", children: [context.uploadingSelfie && _jsx(UploadSelfie, {}), context.uploadingDocument && _jsx(UploadDocument, {}), !context.uploadingSelfie && !context.uploadingDocument && (_jsxs("div", { className: "bg-bg-primary-alt flex h-full w-full flex-col p-3xl lg:h-[800px] lg:w-[400px] lg:rounded-xl", children: [_jsx(Image, { src: props.logo, alt: "", width: 200, height: 100, className: "mx-auto h-auto w-[120px]", draggable: false }), _jsx(StepIndicator, {}), context.step === 1 && _jsx(Step1, {}), context.step === 2 && _jsx(Step2, {}), context.step === 3 && _jsx(Step3, {})] }))] }) })] }) }) }));
19
+ }
@@ -2,4 +2,4 @@ import type { ComponentPropsWithRef } from 'react';
2
2
  export interface KYCTriggerProps extends ComponentPropsWithRef<'button'> {
3
3
  asChild?: boolean;
4
4
  }
5
- export declare function KYCTrigger(props: KYCTriggerProps): import("react").JSX.Element;
5
+ export declare function KYCTrigger(props: KYCTriggerProps): import("react/jsx-runtime").JSX.Element;
@@ -1,13 +1,14 @@
1
1
  'use client';
2
+ import { jsx as _jsx } from "react/jsx-runtime";
2
3
  import { ark } from '@ark-ui/react';
3
4
  import { useShallow } from 'zustand/shallow';
4
- import { useGlobalStore } from '../../client/hooks';
5
+ import { useGlobalStore } from '../../client/hooks/index.js';
5
6
  export function KYCTrigger(props) {
6
7
  const globalStore = useGlobalStore(useShallow((ctx) => ({
7
8
  kyc: ctx.kyc,
8
9
  })));
9
- return (<ark.button type="button" {...props} onClick={(e) => {
10
+ return (_jsx(ark.button, { type: "button", ...props, onClick: (e) => {
10
11
  globalStore.kyc.setOpen(true);
11
12
  return props.onClick?.(e);
12
- }} data-state={globalStore.kyc.open ? 'open' : 'closed'}/>);
13
+ }, "data-state": globalStore.kyc.open ? 'open' : 'closed' }));
13
14
  }
@@ -1 +1 @@
1
- export declare function Step1(): import("react").JSX.Element;
1
+ export declare function Step1(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Button, Field } from '../../ui/index.js';
3
+ import { useKYCContext } from './KYCContext.js';
4
+ export function Step1() {
5
+ const context = useKYCContext();
6
+ return (_jsxs("form", { className: "mt-3xl flex grow flex-col", onSubmit: (e) => {
7
+ e.preventDefault();
8
+ context.setStep(2);
9
+ }, children: [_jsx("h2", { className: "text-text-primary-900 text-center text-lg", children: "Basic Information" }), _jsx("p", { className: "text-text-tertiary-600 text-center text-sm", children: "Enter your basic details for identification and communication." }), _jsxs("div", { className: "mt-9 grow", children: [_jsxs(Field.Root, { children: [_jsx(Field.Label, { children: "Real name" }), _jsx(Field.Input, {})] }), _jsxs(Field.Root, { className: "mt-xl", children: [_jsx(Field.Label, { children: "Date of birth" }), _jsx(Field.Input, { type: "date" })] }), _jsx(Button, { type: "submit", className: "mt-xl", children: "Continue" })] }), _jsxs("div", { className: "text-text-tertiary-600 mt-3xl w-full text-center text-sm", children: ["Use another account.", ' ', _jsx("button", { type: "button", className: "text-button-tertiary-fg font-semibold", children: "Log out" })] })] }));
10
+ }
@@ -1 +1 @@
1
- export declare function Step2(): import("react").JSX.Element;
1
+ export declare function Step2(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,15 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { HelpCircleIcon, UploadCloud02Icon } from '../../icons/index.js';
3
+ import { Button, Field } from '../../ui/index.js';
4
+ import { useKYCContext } from './KYCContext.js';
5
+ export function Step2() {
6
+ const context = useKYCContext();
7
+ return (_jsxs("form", { className: "mt-3xl flex grow flex-col items-start justify-start overflow-y-auto", onSubmit: (e) => {
8
+ e.preventDefault();
9
+ context.setStep(3);
10
+ }, children: [_jsx("h2", { className: "text-text-primary-900 w-full text-center text-lg", children: "Verify Your Identity" }), _jsx("p", { className: "text-text-tertiary-600 w-full text-center text-sm", children: "Verify your details to confirm your identity and secure your access." }), _jsxs("div", { className: "border-border-secondary bg-bg-brand-secondary-alt text-text-tertiary-600 mt-xl w-full rounded-xl border p-3 text-2xs leading-tight", children: [_jsx("h4", { 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("div", { className: "scrollbar:w-2 scrollbar-track:bg-bg-primary-alt scrollbar-track:rounded-full scrollbar-thumb:bg-bg-quaternary scrollbar-thumb:rounded-full mt-xl w-full grow overflow-y-auto", children: [_jsxs(Field.Root, { children: [_jsxs(Field.Label, { className: "flex items-center gap-1.5", children: ["Front of your ID", ' ', _jsx(HelpCircleIcon, { className: "text-text-quinary size-4" })] }), _jsxs("div", { className: "border-border-secondary bg-bg-primary rounded-xl border px-3xl py-xl", children: [_jsx("div", { className: "border-border-secondary shadow-xs text-text-secondary-700 mx-auto flex size-8 items-center justify-center rounded-sm border", children: _jsx(UploadCloud02Icon, { className: "size-4" }) }), _jsxs("p", { className: "text-text-tertiary-600 mt-lg text-center text-xs", children: [_jsx("span", { className: "text-button-tertiary-fg font-semibold", children: "Click to upload" }), ' ', "or drag and drop"] }), _jsx("p", { className: "text-text-tertiary-600 mt-xs text-center text-xs", children: "PNG, JPG or JPEG (max. 10mb)" }), _jsx("p", { className: "text-text-tertiary-600 mt-xs text-center text-xs", children: "or" }), _jsx(Button, { size: "xs", variant: "outline", className: "mx-auto mt-xs w-fit", onClick: () => {
11
+ context.setUploadingDocument(true);
12
+ }, children: "Take a photo" })] })] }), _jsxs(Field.Root, { className: "mt-3", children: [_jsxs(Field.Label, { className: "flex items-center gap-1.5", children: ["Selfie holding your ID", ' ', _jsx(HelpCircleIcon, { className: "text-text-quinary size-4" })] }), _jsx("div", { className: "border-border-secondary bg-bg-primary flex h-[180px] items-center justify-center rounded-xl border px-3xl py-xl", children: _jsx(Button, { size: "xs", variant: "outline", className: "w-fit", onClick: () => {
13
+ context.setUploadingDocument(true);
14
+ }, children: "Take a photo" }) })] })] }), _jsxs("div", { className: "mt-xl w-full", children: [_jsx(Button, { type: "submit", children: "Continue" }), _jsxs("div", { className: "text-text-tertiary-600 mt-3xl w-full text-center text-sm", children: ["Use another account.", ' ', _jsx("button", { type: "button", className: "text-button-tertiary-fg font-semibold", children: "Log out" })] })] })] }));
15
+ }
@@ -1 +1 @@
1
- export declare function Step3(): import("react").JSX.Element;
1
+ export declare function Step3(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { CheckIcon } from '../../icons/index.js';
3
+ import { Button, Checkbox, Field } from '../../ui/index.js';
4
+ import { useKYCContext } from './KYCContext.js';
5
+ export function Step3() {
6
+ const context = useKYCContext();
7
+ return (_jsxs("form", { className: "mt-3xl flex grow flex-col items-start justify-start overflow-y-auto", onSubmit: (e) => {
8
+ e.preventDefault();
9
+ context.setOpen(false);
10
+ }, children: [_jsx("h2", { className: "text-text-primary-900 w-full text-center text-lg", children: "Personal Information" }), _jsx("p", { className: "text-text-tertiary-600 w-full text-center text-sm", children: "Provide your basic details and work info." }), _jsxs("div", { className: "scrollbar:w-2 scrollbar-track:bg-bg-primary-alt scrollbar-track:rounded-full scrollbar-thumb:bg-bg-quaternary scrollbar-thumb:rounded-full mt-4 w-full grow overflow-y-auto", children: [_jsxs(Field.Root, { children: [_jsx(Field.Label, { children: "Permanent address" }), _jsx(Field.Input, {})] }), _jsxs(Checkbox.Root, { className: "mt-lg", 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-xl", children: [_jsx(Field.Label, { children: "Current address" }), _jsx(Field.Input, {})] }), _jsxs(Field.Root, { className: "mt-xl", children: [_jsx(Field.Label, { children: "Source of income" }), _jsx(Field.Input, {})] }), _jsxs(Field.Root, { className: "mt-xl", children: [_jsx(Field.Label, { children: "Nature of work" }), _jsx(Field.Input, {})] }), _jsxs(Field.Root, { className: "mt-xl", children: [_jsx(Field.Label, { children: "Place of birth" }), _jsx(Field.Input, {})] }), _jsxs(Field.Root, { className: "mt-xl", children: [_jsx(Field.Label, { children: "Nationality" }), _jsx(Field.Input, {})] })] }), _jsxs("div", { className: "mt-xl w-full", children: [_jsx(Button, { type: "submit", children: "Submit and Play" }), _jsxs("div", { className: "text-text-tertiary-600 mt-3xl w-full text-center text-sm", children: ["Use another account.", ' ', _jsx("button", { type: "button", className: "text-button-tertiary-fg font-semibold", children: "Log out" })] })] })] }));
11
+ }
@@ -1 +1 @@
1
- export declare function StepIndicator(): import("react").JSX.Element;
1
+ export declare function StepIndicator(): import("react/jsx-runtime").JSX.Element;