@opexa/portal-components 0.0.17 → 0.0.19

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 (542) hide show
  1. package/dist/client/hooks/index.d.ts +7 -1
  2. package/dist/client/hooks/useAuthenticateMutation.js +1 -1
  3. package/dist/client/hooks/useAuthenticateMutation.mjs +5 -4
  4. package/dist/client/hooks/useBonusesQuery.d.ts +3 -0
  5. package/dist/client/hooks/useBonusesQuery.js +1 -0
  6. package/dist/client/hooks/useBonusesQuery.mjs +38 -0
  7. package/dist/client/hooks/useCreateGameSessionMutation.d.ts +2 -2
  8. package/dist/client/hooks/useCreateGameSessionMutation.js +1 -1
  9. package/dist/client/hooks/useCreateGameSessionMutation.mjs +22 -22
  10. package/dist/client/hooks/useEndGameSessionMutation.d.ts +2 -2
  11. package/dist/client/hooks/useEndGameSessionMutation.js +1 -1
  12. package/dist/client/hooks/useEndGameSessionMutation.mjs +18 -18
  13. package/dist/client/hooks/useFavoriteGamesQuery.d.ts +3 -0
  14. package/dist/client/hooks/useFavoriteGamesQuery.js +1 -0
  15. package/dist/client/hooks/useFavoriteGamesQuery.mjs +38 -0
  16. package/dist/client/hooks/useGlobalStore.d.ts +34 -14
  17. package/dist/client/hooks/useGlobalStore.js +1 -1
  18. package/dist/client/hooks/useGlobalStore.mjs +113 -34
  19. package/dist/client/hooks/useJackpotPayoutsQuery.d.ts +3 -0
  20. package/dist/client/hooks/useJackpotPayoutsQuery.js +1 -0
  21. package/dist/client/hooks/useJackpotPayoutsQuery.mjs +31 -0
  22. package/dist/client/hooks/useMarkGameAsFavoriteMutation.d.ts +2 -0
  23. package/dist/client/hooks/useMarkGameAsFavoriteMutation.js +1 -0
  24. package/dist/client/hooks/useMarkGameAsFavoriteMutation.mjs +37 -0
  25. package/dist/client/hooks/useMarkMessageAsReadMutation.d.ts +2 -0
  26. package/dist/client/hooks/useMarkMessageAsReadMutation.js +1 -0
  27. package/dist/client/hooks/useMarkMessageAsReadMutation.mjs +39 -0
  28. package/dist/client/hooks/useMessagesQuery.d.ts +3 -0
  29. package/dist/client/hooks/useMessagesQuery.js +1 -0
  30. package/dist/client/hooks/useMessagesQuery.mjs +47 -0
  31. package/dist/client/hooks/useSignInMutation.js +1 -1
  32. package/dist/client/hooks/useSignInMutation.mjs +3 -2
  33. package/dist/client/hooks/useSignOutMutation.js +1 -1
  34. package/dist/client/hooks/useSignOutMutation.mjs +11 -10
  35. package/dist/client/hooks/useUnmarkGameAsFavoriteMutation.d.ts +2 -0
  36. package/dist/client/hooks/useUnmarkGameAsFavoriteMutation.js +1 -0
  37. package/dist/client/hooks/useUnmarkGameAsFavoriteMutation.mjs +37 -0
  38. package/dist/client/hooks/useUnreadMessagesCountQuery.d.ts +3 -0
  39. package/dist/client/hooks/useUnreadMessagesCountQuery.js +1 -0
  40. package/dist/client/hooks/useUnreadMessagesCountQuery.mjs +38 -0
  41. package/dist/client/services/getSession.d.ts +1 -1
  42. package/dist/client/services/getSession.js +1 -1
  43. package/dist/client/services/getSession.mjs +4 -3
  44. package/dist/client-hooks.js +1 -1
  45. package/dist/client-hooks.mjs +92 -80
  46. package/dist/components/Account/Account.d.ts +17 -8
  47. package/dist/components/Account/Account.js +1 -1
  48. package/dist/components/Account/Account.mjs +253 -130
  49. package/dist/components/Account/account.recipe.d.ts +61 -0
  50. package/dist/components/Account/account.recipe.js +1 -0
  51. package/dist/components/Account/account.recipe.mjs +35 -0
  52. package/dist/components/Banner/Banner.js +1 -1
  53. package/dist/components/Banner/Banner.mjs +6 -6
  54. package/dist/components/BetRecords/BetRecords.js +1 -1
  55. package/dist/components/BetRecords/BetRecords.mjs +375 -319
  56. package/dist/components/Bonus/Bonus.client.d.ts +2 -0
  57. package/dist/components/Bonus/Bonus.client.js +1 -0
  58. package/dist/components/Bonus/Bonus.client.mjs +143 -0
  59. package/dist/components/Bonus/Bonus.d.ts +10 -0
  60. package/dist/components/Bonus/Bonus.js +1 -0
  61. package/dist/components/Bonus/Bonus.mjs +8 -0
  62. package/dist/components/Bonus/index.d.ts +1 -0
  63. package/dist/components/Bonuses/Bonuses.d.ts +15 -0
  64. package/dist/components/Bonuses/Bonuses.js +1 -0
  65. package/dist/components/Bonuses/Bonuses.mjs +126 -0
  66. package/dist/components/Bonuses/index.d.ts +1 -0
  67. package/dist/components/DepositWithdrawal/AmountChoices.js +1 -1
  68. package/dist/components/DepositWithdrawal/AmountChoices.mjs +11 -6
  69. package/dist/components/DepositWithdrawal/Deposit/AvailablePromos.js +1 -1
  70. package/dist/components/DepositWithdrawal/Deposit/AvailablePromos.mjs +32 -27
  71. package/dist/components/DepositWithdrawal/Deposit/Deposit.js +1 -1
  72. package/dist/components/DepositWithdrawal/Deposit/Deposit.mjs +3 -2
  73. package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.js +1 -1
  74. package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.mjs +18 -13
  75. package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.js +1 -1
  76. package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.mjs +7 -2
  77. package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.js +1 -1
  78. package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.mjs +18 -13
  79. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.js +1 -1
  80. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.mjs +7 -2
  81. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.js +1 -1
  82. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.mjs +10 -6
  83. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.js +1 -1
  84. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.mjs +9 -8
  85. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.js +1 -1
  86. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.mjs +43 -38
  87. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.js +1 -1
  88. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.mjs +10 -6
  89. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.js +1 -1
  90. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.mjs +12 -8
  91. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.js +1 -1
  92. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.mjs +9 -8
  93. package/dist/components/DepositWithdrawal/DepositWithdrawal.js +1 -1
  94. package/dist/components/DepositWithdrawal/DepositWithdrawal.mjs +50 -48
  95. package/dist/components/DepositWithdrawal/PaymentMethods.js +1 -1
  96. package/dist/components/DepositWithdrawal/PaymentMethods.mjs +28 -23
  97. package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/GCashWithdrawal.js +1 -1
  98. package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/GCashWithdrawal.mjs +86 -74
  99. package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.js +1 -1
  100. package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.mjs +120 -108
  101. package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/MayaAppWithdrawal.js +1 -1
  102. package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/MayaAppWithdrawal.mjs +77 -65
  103. package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal/MayaWithdrawal.js +1 -1
  104. package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal/MayaWithdrawal.mjs +96 -84
  105. package/dist/components/DepositWithdrawal/Withdrawal/Withdrawal.js +1 -1
  106. package/dist/components/DepositWithdrawal/Withdrawal/Withdrawal.mjs +3 -2
  107. package/dist/components/Disclaimer/Disclaimer.js +1 -1
  108. package/dist/components/Disclaimer/Disclaimer.mjs +16 -12
  109. package/dist/components/Empty.js +1 -0
  110. package/dist/components/{Empty/CloudIcon.mjs → Empty.mjs} +26 -11
  111. package/dist/components/FavoriteGames/FavoriteGames.client.d.ts +2 -0
  112. package/dist/components/FavoriteGames/FavoriteGames.client.js +1 -0
  113. package/dist/components/FavoriteGames/FavoriteGames.client.mjs +132 -0
  114. package/dist/components/FavoriteGames/FavoriteGames.d.ts +6 -0
  115. package/dist/components/FavoriteGames/FavoriteGames.js +1 -0
  116. package/dist/components/FavoriteGames/FavoriteGames.mjs +17 -0
  117. package/dist/components/FavoriteGames/index.d.ts +1 -0
  118. package/dist/components/GameLaunch/GameLaunch.d.ts +1 -5
  119. package/dist/components/GameLaunch/GameLaunch.js +1 -1
  120. package/dist/components/GameLaunch/GameLaunch.mjs +151 -124
  121. package/dist/components/GameLaunch/GameLaunchTrigger.d.ts +2 -2
  122. package/dist/components/GameLaunch/GameLaunchTrigger.js +1 -1
  123. package/dist/components/GameLaunch/GameLaunchTrigger.mjs +7 -6
  124. package/dist/components/GameProviders/GameProviders.d.ts +7 -10
  125. package/dist/components/GameProviders/GameProviders.js +1 -0
  126. package/dist/components/GameProviders/GameProviders.mjs +122 -0
  127. package/dist/components/GameProviders/index.d.ts +1 -0
  128. package/dist/components/Games/Games.client.js +1 -1
  129. package/dist/components/Games/Games.client.mjs +96 -68
  130. package/dist/components/Games/Games.d.ts +7 -2
  131. package/dist/components/Games/Games.js +1 -1
  132. package/dist/components/Games/Games.mjs +4 -2
  133. package/dist/components/GamesSearch/GamesSearch.d.ts +6 -0
  134. package/dist/components/GamesSearch/GamesSearch.js +1 -0
  135. package/dist/components/GamesSearch/GamesSearch.mjs +199 -0
  136. package/dist/components/GamesSearch/GamesSearchTrigger.d.ts +4 -0
  137. package/dist/components/GamesSearch/GamesSearchTrigger.js +1 -0
  138. package/dist/components/GamesSearch/GamesSearchTrigger.mjs +50 -0
  139. package/dist/components/GamesSearch/index.d.ts +2 -0
  140. package/dist/components/InfiniteScroll.d.ts +10 -0
  141. package/dist/components/InfiniteScroll.js +1 -0
  142. package/dist/components/InfiniteScroll.mjs +30 -0
  143. package/dist/components/JackpotCounter/JackpotCounter.client.d.ts +2 -0
  144. package/dist/components/JackpotCounter/JackpotCounter.client.js +1 -0
  145. package/dist/components/JackpotCounter/JackpotCounter.client.mjs +139 -0
  146. package/dist/components/JackpotCounter/JackpotCounter.d.ts +5 -3
  147. package/dist/components/JackpotCounter/JackpotCounter.js +1 -1
  148. package/dist/components/JackpotCounter/JackpotCounter.mjs +10 -110
  149. package/dist/components/JackpotCounter/JackpotCounterItem.d.ts +4 -1
  150. package/dist/components/JackpotCounter/JackpotCounterItem.js +1 -1
  151. package/dist/components/JackpotCounter/JackpotCounterItem.mjs +370 -125
  152. package/dist/components/JackpotCounter/JackpotCounterItem.module.css.js +1 -1
  153. package/dist/components/JackpotCounter/JackpotCounterItem.module.css.mjs +13 -8
  154. package/dist/components/Jackpots/JackpotGameProviders.d.ts +1 -0
  155. package/dist/components/Jackpots/JackpotGameProviders.js +1 -0
  156. package/dist/components/Jackpots/JackpotGameProviders.mjs +105 -0
  157. package/dist/components/Jackpots/JackpotItem.d.ts +7 -0
  158. package/dist/components/Jackpots/JackpotItem.js +1 -0
  159. package/dist/components/Jackpots/JackpotItem.mjs +408 -0
  160. package/dist/components/Jackpots/JackpotItemMobile.d.ts +7 -0
  161. package/dist/components/Jackpots/JackpotItemMobile.js +1 -0
  162. package/dist/components/Jackpots/JackpotItemMobile.mjs +427 -0
  163. package/dist/components/Jackpots/JackpotRules.d.ts +6 -0
  164. package/dist/components/Jackpots/JackpotRules.js +1 -0
  165. package/dist/components/Jackpots/JackpotRules.mjs +78 -0
  166. package/dist/components/Jackpots/Jackpots.d.ts +8 -0
  167. package/dist/components/Jackpots/Jackpots.js +1 -0
  168. package/dist/components/Jackpots/Jackpots.mjs +61 -0
  169. package/dist/components/Jackpots/index.d.ts +1 -0
  170. package/dist/components/KYC/KYC.d.ts +5 -0
  171. package/dist/components/KYC/KYC.js +1 -0
  172. package/dist/components/KYC/KYC.mjs +84 -0
  173. package/dist/components/KYC/KYCContext.d.ts +3 -0
  174. package/dist/components/KYC/KYCContext.js +1 -0
  175. package/dist/components/KYC/KYCContext.mjs +11 -0
  176. package/dist/components/KYC/KYCTrigger.d.ts +5 -0
  177. package/dist/components/KYC/KYCTrigger.js +1 -0
  178. package/dist/components/KYC/KYCTrigger.mjs +42 -0
  179. package/dist/components/KYC/Step1.d.ts +1 -0
  180. package/dist/components/KYC/Step1.js +1 -0
  181. package/dist/components/KYC/Step1.mjs +67 -0
  182. package/dist/components/KYC/Step2.d.ts +1 -0
  183. package/dist/components/KYC/Step2.js +1 -0
  184. package/dist/components/KYC/Step2.mjs +126 -0
  185. package/dist/components/KYC/Step3.d.ts +1 -0
  186. package/dist/components/KYC/Step3.js +1 -0
  187. package/dist/components/KYC/Step3.mjs +98 -0
  188. package/dist/components/KYC/StepIndicator.d.ts +1 -0
  189. package/dist/components/KYC/StepIndicator.js +1 -0
  190. package/dist/components/KYC/StepIndicator.mjs +42 -0
  191. package/dist/components/KYC/UploadDocument.d.ts +1 -0
  192. package/dist/components/KYC/UploadDocument.js +1 -0
  193. package/dist/components/KYC/UploadDocument.mjs +69 -0
  194. package/dist/components/KYC/UploadSelfie.d.ts +1 -0
  195. package/dist/components/KYC/UploadSelfie.js +1 -0
  196. package/dist/components/KYC/UploadSelfie.mjs +65 -0
  197. package/dist/components/KYC/index.d.ts +2 -0
  198. package/dist/components/KYC/useKYC.d.ts +14 -0
  199. package/dist/components/KYC/useKYC.js +1 -0
  200. package/dist/components/KYC/useKYC.mjs +43 -0
  201. package/dist/components/KYC/utils.d.ts +1 -0
  202. package/dist/components/Marquee/Marquee.js +1 -1
  203. package/dist/components/Marquee/Marquee.mjs +7 -7
  204. package/dist/components/Messages/MessageItem.d.ts +4 -0
  205. package/dist/components/Messages/MessageItem.js +1 -0
  206. package/dist/components/Messages/MessageItem.mjs +75 -0
  207. package/dist/components/Messages/MessagePopup.d.ts +1 -0
  208. package/dist/components/Messages/MessagePopup.js +1 -0
  209. package/dist/components/Messages/MessagePopup.mjs +95 -0
  210. package/dist/components/Messages/Messages.d.ts +1 -0
  211. package/dist/components/Messages/Messages.js +1 -0
  212. package/dist/components/Messages/Messages.mjs +166 -0
  213. package/dist/components/Messages/index.d.ts +1 -0
  214. package/dist/components/Messages/utils.d.ts +3 -0
  215. package/dist/components/Messages/utils.js +1 -0
  216. package/dist/components/Messages/utils.mjs +16 -0
  217. package/dist/components/PortalProvider/PortalProvider.client.d.ts +2 -0
  218. package/dist/components/PortalProvider/{Providers.js → PortalProvider.client.js} +1 -1
  219. package/dist/components/PortalProvider/{Providers.mjs → PortalProvider.client.mjs} +28 -15
  220. package/dist/components/PortalProvider/PortalProvider.d.ts +9 -2
  221. package/dist/components/PortalProvider/PortalProvider.js +1 -1
  222. package/dist/components/PortalProvider/PortalProvider.mjs +17 -11
  223. package/dist/components/Promo/Promo.d.ts +4 -1
  224. package/dist/components/Promo/Promo.js +1 -1
  225. package/dist/components/Promo/Promo.mjs +2 -2
  226. package/dist/components/Promo/PromoContent.js +1 -1
  227. package/dist/components/Promo/PromoContent.mjs +75 -22
  228. package/dist/components/Promos/PromoCarousel.js +1 -1
  229. package/dist/components/Promos/PromoCarousel.mjs +30 -25
  230. package/dist/components/Promos/PromoGrid.js +1 -1
  231. package/dist/components/Promos/PromoGrid.mjs +14 -13
  232. package/dist/components/Promos/PromoItem.js +1 -1
  233. package/dist/components/Promos/PromoItem.mjs +11 -7
  234. package/dist/components/Promos/Promos.d.ts +4 -2
  235. package/dist/components/Protected/Protected.js +1 -1
  236. package/dist/components/Protected/Protected.mjs +3 -2
  237. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.d.ts +1 -0
  238. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.js +1 -0
  239. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.mjs +154 -0
  240. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.d.ts +8 -0
  241. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.js +1 -0
  242. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.mjs +66 -0
  243. package/dist/components/Quests/Quests.d.ts +1 -0
  244. package/dist/components/Quests/Quests.js +1 -0
  245. package/dist/components/Quests/Quests.mjs +15 -0
  246. package/dist/components/Quests/WageringQuest/WageringQuest.d.ts +1 -0
  247. package/dist/components/Quests/WageringQuest/WageringQuest.js +1 -0
  248. package/dist/components/Quests/WageringQuest/WageringQuest.mjs +109 -0
  249. package/dist/components/Quests/WageringQuest/WageringQuestModal.d.ts +8 -0
  250. package/dist/components/Quests/WageringQuest/WageringQuestModal.js +1 -0
  251. package/dist/components/Quests/WageringQuest/WageringQuestModal.mjs +63 -0
  252. package/dist/components/Quests/index.d.ts +1 -0
  253. package/dist/components/SignIn/SignIn.d.ts +0 -1
  254. package/dist/components/SignIn/SignIn.js +1 -1
  255. package/dist/components/SignIn/SignIn.mjs +34 -41
  256. package/dist/components/SignIn/SignInForm.js +1 -1
  257. package/dist/components/SignIn/SignInForm.mjs +169 -160
  258. package/dist/components/SignUp/SignUp.d.ts +0 -1
  259. package/dist/components/SignUp/SignUp.js +1 -1
  260. package/dist/components/SignUp/SignUp.mjs +34 -41
  261. package/dist/components/SignUp/SignUpForm.js +1 -1
  262. package/dist/components/SignUp/SignUpForm.mjs +125 -116
  263. package/dist/components/TopWins/TopWins.client.js +1 -1
  264. package/dist/components/TopWins/TopWins.client.mjs +15 -14
  265. package/dist/components/TopWins/TopWins.d.ts +2 -1
  266. package/dist/components/TopWins/TopWins.js +1 -1
  267. package/dist/components/TopWins/TopWins.mjs +4 -2
  268. package/dist/components/TournamentCounter/TournamentCounter.client.d.ts +2 -0
  269. package/dist/components/TournamentCounter/TournamentCounter.client.js +1 -0
  270. package/dist/components/TournamentCounter/TournamentCounter.client.mjs +139 -0
  271. package/dist/components/TournamentCounter/TournamentCounter.d.ts +5 -3
  272. package/dist/components/TournamentCounter/TournamentCounter.js +1 -1
  273. package/dist/components/TournamentCounter/TournamentCounter.mjs +17 -108
  274. package/dist/components/TournamentCounter/TournamentCounterItem.d.ts +7 -5
  275. package/dist/components/TournamentCounter/TournamentCounterItem.js +1 -1
  276. package/dist/components/TournamentCounter/TournamentCounterItem.mjs +225 -86
  277. package/dist/components/Tournaments/TournamentGameProviders.d.ts +1 -0
  278. package/dist/components/Tournaments/TournamentGameProviders.js +1 -0
  279. package/dist/components/Tournaments/TournamentGameProviders.mjs +105 -0
  280. package/dist/components/Tournaments/TournamentItem.d.ts +6 -0
  281. package/dist/components/Tournaments/TournamentItem.js +2 -0
  282. package/dist/components/Tournaments/TournamentItem.mjs +262 -0
  283. package/dist/components/Tournaments/TournamentItemMobile.d.ts +8 -0
  284. package/dist/components/Tournaments/TournamentItemMobile.js +2 -0
  285. package/dist/components/Tournaments/TournamentItemMobile.mjs +285 -0
  286. package/dist/components/Tournaments/TournamentRules.d.ts +6 -0
  287. package/dist/components/Tournaments/TournamentRules.js +1 -0
  288. package/dist/components/Tournaments/TournamentRules.mjs +78 -0
  289. package/dist/components/Tournaments/Tournaments.d.ts +8 -0
  290. package/dist/components/Tournaments/Tournaments.js +1 -0
  291. package/dist/components/Tournaments/Tournaments.mjs +47 -0
  292. package/dist/components/Tournaments/index.d.ts +1 -0
  293. package/dist/components/TransactionRecords/DepositRecordsTable.js +1 -1
  294. package/dist/components/TransactionRecords/DepositRecordsTable.mjs +123 -100
  295. package/dist/components/TransactionRecords/TableFilters.d.ts +3 -1
  296. package/dist/components/TransactionRecords/TableFilters.js +1 -1
  297. package/dist/components/TransactionRecords/TableFilters.mjs +282 -179
  298. package/dist/components/TransactionRecords/TransactionRecords.js +1 -1
  299. package/dist/components/TransactionRecords/TransactionRecords.mjs +22 -17
  300. package/dist/components/TransactionRecords/TransactionRecordsTable.js +1 -1
  301. package/dist/components/TransactionRecords/TransactionRecordsTable.mjs +118 -97
  302. package/dist/components/TransactionRecords/WithdrawalRecordsTable.js +1 -1
  303. package/dist/components/TransactionRecords/WithdrawalRecordsTable.mjs +120 -102
  304. package/dist/components/index.d.ts +10 -0
  305. package/dist/components.js +1 -1
  306. package/dist/components.mjs +56 -32
  307. package/dist/icons/ArrowNarrowDownIcon.d.ts +2 -0
  308. package/dist/icons/ArrowNarrowDownIcon.js +1 -0
  309. package/dist/icons/ArrowNarrowDownIcon.mjs +22 -0
  310. package/dist/icons/ArrowNarrowUpIcon.d.ts +2 -0
  311. package/dist/icons/ArrowNarrowUpIcon.js +1 -0
  312. package/dist/icons/ArrowNarrowUpIcon.mjs +22 -0
  313. package/dist/icons/Award01Icon.d.ts +2 -0
  314. package/dist/icons/Award01Icon.js +1 -0
  315. package/dist/icons/Award01Icon.mjs +22 -0
  316. package/dist/icons/Bell01Icon.d.ts +2 -0
  317. package/dist/icons/Bell01Icon.js +1 -0
  318. package/dist/icons/Bell01Icon.mjs +27 -0
  319. package/dist/icons/BellRingIcon.d.ts +2 -0
  320. package/dist/icons/BellRingIcon.js +1 -0
  321. package/dist/icons/BellRingIcon.mjs +27 -0
  322. package/dist/icons/CalendarIcon.d.ts +2 -0
  323. package/dist/icons/CalendarIcon.js +1 -0
  324. package/dist/icons/CalendarIcon.mjs +26 -0
  325. package/dist/icons/Camera01Icon.d.ts +2 -0
  326. package/dist/icons/Camera01Icon.js +1 -0
  327. package/dist/icons/Camera01Icon.mjs +25 -0
  328. package/dist/icons/CheckCircleIcon.d.ts +2 -0
  329. package/dist/icons/CheckCircleIcon.js +1 -0
  330. package/dist/icons/CheckCircleIcon.mjs +22 -0
  331. package/dist/icons/ClockStopWatchIcon.d.ts +2 -0
  332. package/dist/icons/ClockStopWatchIcon.js +1 -0
  333. package/dist/icons/ClockStopWatchIcon.mjs +26 -0
  334. package/dist/icons/CoinsHandIcon.d.ts +2 -0
  335. package/dist/icons/CoinsHandIcon.js +1 -0
  336. package/dist/icons/CoinsHandIcon.mjs +22 -0
  337. package/dist/icons/CoinsStacked02Icon.d.ts +2 -0
  338. package/dist/icons/CoinsStacked02Icon.js +1 -0
  339. package/dist/icons/CoinsStacked02Icon.mjs +22 -0
  340. package/dist/icons/CoinsSwap02Icon.d.ts +2 -0
  341. package/dist/icons/CoinsSwap02Icon.js +1 -0
  342. package/dist/icons/CoinsSwap02Icon.mjs +22 -0
  343. package/dist/icons/EyeIcon.d.ts +2 -0
  344. package/dist/icons/EyeIcon.js +1 -0
  345. package/dist/icons/EyeIcon.mjs +25 -0
  346. package/dist/icons/EyeOffIcon.d.ts +2 -0
  347. package/dist/icons/EyeOffIcon.js +1 -0
  348. package/dist/icons/EyeOffIcon.mjs +22 -0
  349. package/dist/icons/Flag06Icon.d.ts +2 -0
  350. package/dist/icons/Flag06Icon.js +1 -0
  351. package/dist/icons/Flag06Icon.mjs +22 -0
  352. package/dist/icons/HelpCircleIcon.d.ts +2 -0
  353. package/dist/icons/HelpCircleIcon.js +1 -0
  354. package/dist/icons/HelpCircleIcon.mjs +22 -0
  355. package/dist/icons/InfoCircleIcon.d.ts +2 -0
  356. package/dist/icons/InfoCircleIcon.js +1 -0
  357. package/dist/icons/InfoCircleIcon.mjs +27 -0
  358. package/dist/icons/Menu01Icon.d.ts +2 -0
  359. package/dist/icons/Menu01Icon.js +1 -0
  360. package/dist/icons/Menu01Icon.mjs +22 -0
  361. package/dist/icons/Menu03Icon.d.ts +2 -0
  362. package/dist/icons/Menu03Icon.js +1 -0
  363. package/dist/icons/Menu03Icon.mjs +22 -0
  364. package/dist/icons/SearchLgIcon.d.ts +2 -0
  365. package/dist/icons/SearchLgIcon.js +1 -0
  366. package/dist/icons/SearchLgIcon.mjs +22 -0
  367. package/dist/icons/Settings02Icon.d.ts +2 -0
  368. package/dist/icons/Settings02Icon.js +1 -0
  369. package/dist/icons/Settings02Icon.mjs +25 -0
  370. package/dist/icons/Star01Icon.d.ts +2 -0
  371. package/dist/icons/Star01Icon.js +1 -0
  372. package/dist/icons/Star01Icon.mjs +22 -0
  373. package/dist/icons/StarIcon.d.ts +2 -0
  374. package/dist/icons/StarIcon.js +1 -0
  375. package/dist/icons/StarIcon.mjs +18 -0
  376. package/dist/icons/StopWatchIcon.d.ts +2 -0
  377. package/dist/icons/StopWatchIcon.js +1 -0
  378. package/dist/icons/StopWatchIcon.mjs +22 -0
  379. package/dist/icons/Trophy01Icon.d.ts +2 -0
  380. package/dist/icons/Trophy01Icon.js +1 -0
  381. package/dist/icons/Trophy01Icon.mjs +22 -0
  382. package/dist/icons/UploadCloud02Icon.d.ts +2 -0
  383. package/dist/icons/UploadCloud02Icon.js +1 -0
  384. package/dist/icons/UploadCloud02Icon.mjs +22 -0
  385. package/dist/icons/index.d.ts +22 -0
  386. package/dist/icons.d.ts +2 -0
  387. package/dist/icons.js +1 -0
  388. package/dist/icons.mjs +94 -0
  389. package/dist/images/fantasma-games.png.js +1 -0
  390. package/dist/images/fantasma-games.png.mjs +4 -0
  391. package/dist/images/first-place.png.js +1 -0
  392. package/dist/images/first-place.png.mjs +4 -0
  393. package/dist/images/hacksaw-gaming.png.js +1 -0
  394. package/dist/images/hacksaw-gaming.png.mjs +4 -0
  395. package/dist/images/leaderboard.png.js +1 -0
  396. package/dist/images/leaderboard.png.mjs +4 -0
  397. package/dist/images/placeholder-avatar.png.js +1 -0
  398. package/dist/images/placeholder-avatar.png.mjs +4 -0
  399. package/dist/images/responsible-gaming.png.js +1 -1
  400. package/dist/images/responsible-gaming.png.mjs +2 -2
  401. package/dist/images/trophy-two.png.js +1 -0
  402. package/dist/images/trophy-two.png.mjs +4 -0
  403. package/dist/portal-components.css +1 -1
  404. package/dist/server/services/getSession.d.ts +1 -1
  405. package/dist/server/services/getSession.js +1 -1
  406. package/dist/server/services/getSession.mjs +6 -5
  407. package/dist/server/utils/index.d.ts +2 -1
  408. package/dist/server/utils/prefetchBonusesQuery.d.ts +1 -0
  409. package/dist/server/utils/prefetchBonusesQuery.js +1 -0
  410. package/dist/server/utils/prefetchBonusesQuery.mjs +26 -0
  411. package/dist/server/utils/prefetchFavoriteGamesQuery.d.ts +1 -0
  412. package/dist/server/utils/prefetchFavoriteGamesQuery.js +1 -0
  413. package/dist/server/utils/prefetchFavoriteGamesQuery.mjs +28 -0
  414. package/dist/server/utils/prefetchUnreadMessagesCountQuery.d.ts +2 -0
  415. package/dist/server-utils.js +1 -1
  416. package/dist/server-utils.mjs +38 -36
  417. package/dist/theme.css +131 -5
  418. package/dist/third-parties/FacebookPixel/FacebookPixel.d.ts +4 -0
  419. package/dist/third-parties/FacebookPixel/FacebookPixel.js +1 -0
  420. package/dist/third-parties/FacebookPixel/FacebookPixel.mjs +6 -0
  421. package/dist/third-parties/FacebookPixel/api.d.ts +1 -0
  422. package/dist/third-parties/FacebookPixel/index.d.ts +1 -0
  423. package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.d.ts +4 -0
  424. package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.js +1 -0
  425. package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.mjs +6 -0
  426. package/dist/third-parties/GoogleRecaptcha/api.d.ts +1 -0
  427. package/dist/third-parties/GoogleRecaptcha/index.d.ts +1 -0
  428. package/dist/third-parties/index.d.ts +2 -0
  429. package/dist/types/index.d.ts +8 -0
  430. package/dist/types.d.ts +1 -0
  431. package/dist/types.js +1 -0
  432. package/dist/types.mjs +1 -0
  433. package/dist/ui/AlertDialog/AlertDialog.d.ts +88 -88
  434. package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +8 -8
  435. package/dist/ui/AlertDialog/alertDialog.recipe.js +1 -1
  436. package/dist/ui/AlertDialog/alertDialog.recipe.mjs +6 -6
  437. package/dist/ui/Badge/Badge.d.ts +274 -27
  438. package/dist/ui/Badge/Badge.js +1 -1
  439. package/dist/ui/Badge/Badge.mjs +14 -10
  440. package/dist/ui/Badge/badge.anatomy.d.ts +1 -1
  441. package/dist/ui/Badge/badge.anatomy.js +1 -1
  442. package/dist/ui/Badge/badge.anatomy.mjs +1 -0
  443. package/dist/ui/Badge/badge.recipe.d.ts +57 -9
  444. package/dist/ui/Badge/badge.recipe.js +1 -1
  445. package/dist/ui/Badge/badge.recipe.mjs +57 -21
  446. package/dist/ui/Button/button.recipe.d.ts +2 -2
  447. package/dist/ui/Button/button.recipe.js +1 -1
  448. package/dist/ui/Button/button.recipe.mjs +17 -7
  449. package/dist/ui/Checkbox/checkbox.recipe.js +1 -1
  450. package/dist/ui/Checkbox/checkbox.recipe.mjs +8 -8
  451. package/dist/ui/Collapsible/Collapsible.d.ts +114 -0
  452. package/dist/ui/Collapsible/Collapsible.js +1 -0
  453. package/dist/ui/Collapsible/Collapsible.mjs +13 -0
  454. package/dist/ui/Collapsible/collapsible.recipe.d.ts +28 -0
  455. package/dist/ui/Collapsible/collapsible.recipe.js +1 -0
  456. package/dist/ui/Collapsible/collapsible.recipe.mjs +18 -0
  457. package/dist/ui/Collapsible/index.d.ts +1 -0
  458. package/dist/ui/Combobox/Combobox.d.ts +815 -1
  459. package/dist/ui/Combobox/Combobox.js +1 -1
  460. package/dist/ui/Combobox/Combobox.mjs +27 -2
  461. package/dist/ui/Combobox/combobox.recipe.d.ts +58 -1
  462. package/dist/ui/Combobox/combobox.recipe.js +1 -0
  463. package/dist/ui/Combobox/combobox.recipe.mjs +15 -0
  464. package/dist/ui/DatePicker/DatePicker.d.ts +192 -192
  465. package/dist/ui/DatePicker/datePicker.recipe.d.ts +8 -8
  466. package/dist/ui/DatePicker/datePicker.recipe.js +1 -1
  467. package/dist/ui/DatePicker/datePicker.recipe.mjs +37 -6
  468. package/dist/ui/Dialog/Dialog.d.ts +88 -88
  469. package/dist/ui/Dialog/dialog.recipe.d.ts +8 -8
  470. package/dist/ui/Dialog/dialog.recipe.js +1 -1
  471. package/dist/ui/Dialog/dialog.recipe.mjs +5 -5
  472. package/dist/ui/Drawer/Drawer.d.ts +33 -33
  473. package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
  474. package/dist/ui/Drawer/drawer.recipe.js +1 -1
  475. package/dist/ui/Drawer/drawer.recipe.mjs +6 -6
  476. package/dist/ui/Field/field.recipe.js +1 -1
  477. package/dist/ui/Field/field.recipe.mjs +10 -12
  478. package/dist/ui/IconButton/iconButton.recipe.d.ts +3 -2
  479. package/dist/ui/IconButton/iconButton.recipe.js +1 -1
  480. package/dist/ui/IconButton/iconButton.recipe.mjs +7 -6
  481. package/dist/ui/NumberInput/numberInput.recipe.js +1 -1
  482. package/dist/ui/NumberInput/numberInput.recipe.mjs +8 -8
  483. package/dist/ui/PasswordInput/PasswordInput.d.ts +242 -1
  484. package/dist/ui/PasswordInput/PasswordInput.js +1 -0
  485. package/dist/ui/PasswordInput/PasswordInput.mjs +18 -0
  486. package/dist/ui/PasswordInput/passwordInput.recipe.d.ts +6 -18
  487. package/dist/ui/PasswordInput/passwordInput.recipe.js +1 -0
  488. package/dist/ui/PasswordInput/passwordInput.recipe.mjs +48 -0
  489. package/dist/ui/PinInput/pinInput.recipe.js +1 -1
  490. package/dist/ui/PinInput/pinInput.recipe.mjs +3 -3
  491. package/dist/ui/Popover/Popover.d.ts +55 -55
  492. package/dist/ui/Popover/popover.recipe.d.ts +5 -5
  493. package/dist/ui/Popover/popover.recipe.js +1 -1
  494. package/dist/ui/Popover/popover.recipe.mjs +1 -1
  495. package/dist/ui/Progress/Progress.d.ts +335 -1
  496. package/dist/ui/Progress/Progress.js +1 -1
  497. package/dist/ui/Progress/Progress.mjs +15 -2
  498. package/dist/ui/Progress/progress.recipe.d.ts +37 -1
  499. package/dist/ui/Progress/progress.recipe.js +1 -0
  500. package/dist/ui/Progress/progress.recipe.mjs +41 -0
  501. package/dist/ui/Prose.d.ts +2 -0
  502. package/dist/ui/Prose.js +1 -0
  503. package/dist/ui/Prose.mjs +47 -0
  504. package/dist/ui/SegmentGroup/SegmentGroup.d.ts +18 -18
  505. package/dist/ui/SegmentGroup/segmentGroup.recipe.d.ts +3 -3
  506. package/dist/ui/SegmentGroup/segmentGroup.recipe.js +1 -1
  507. package/dist/ui/SegmentGroup/segmentGroup.recipe.mjs +3 -3
  508. package/dist/ui/Select/Select.d.ts +45 -45
  509. package/dist/ui/Select/select.recipe.d.ts +3 -3
  510. package/dist/ui/Select/select.recipe.js +1 -1
  511. package/dist/ui/Select/select.recipe.mjs +7 -6
  512. package/dist/ui/Table/table.recipe.js +1 -1
  513. package/dist/ui/Table/table.recipe.mjs +4 -4
  514. package/dist/ui/Tabs/tabs.recipe.js +1 -1
  515. package/dist/ui/Tabs/tabs.recipe.mjs +3 -3
  516. package/dist/ui/index.d.ts +3 -0
  517. package/dist/ui.js +1 -1
  518. package/dist/ui.mjs +36 -30
  519. package/dist/utils/queryKeys.d.ts +9 -2
  520. package/dist/utils/queryKeys.js +1 -1
  521. package/dist/utils/queryKeys.mjs +56 -38
  522. package/dist/utils.js +1 -1
  523. package/dist/utils.mjs +48 -41
  524. package/package.json +24 -12
  525. package/dist/client/hooks/useSiteQuery.d.ts +0 -3
  526. package/dist/client/hooks/useSiteQuery.js +0 -1
  527. package/dist/client/hooks/useSiteQuery.mjs +0 -23
  528. package/dist/components/Empty/CloudIcon.d.ts +0 -2
  529. package/dist/components/Empty/CloudIcon.js +0 -1
  530. package/dist/components/Empty/Empty.js +0 -1
  531. package/dist/components/Empty/Empty.mjs +0 -16
  532. package/dist/components/Empty/index.d.ts +0 -1
  533. package/dist/components/PortalProvider/Providers.d.ts +0 -2
  534. package/dist/components/Promos/PromosContent.d.ts +0 -2
  535. package/dist/images/ball.png.js +0 -1
  536. package/dist/images/ball.png.mjs +0 -4
  537. package/dist/images/card.png.js +0 -1
  538. package/dist/images/card.png.mjs +0 -4
  539. package/dist/server/utils/prefetchSiteQuery.d.ts +0 -1
  540. package/dist/server/utils/prefetchSiteQuery.js +0 -1
  541. package/dist/server/utils/prefetchSiteQuery.mjs +0 -23
  542. /package/dist/components/{Empty/Empty.d.ts → Empty.d.ts} +0 -0
@@ -0,0 +1,262 @@
1
+ "use client";
2
+ import { jsxs as t, jsx as e } from "react/jsx-runtime";
3
+ import { pick as v } from "lodash-es";
4
+ import d from "next/image";
5
+ import h, { useState as w, useMemo as C, useEffect as T } from "react";
6
+ import { twMerge as a } from "tailwind-merge";
7
+ import "@opexa/portal-sdk-core";
8
+ import "@tanstack/react-query";
9
+ import "tiny-invariant";
10
+ import "../../constants/index.mjs";
11
+ import "../../utils/capitalize.mjs";
12
+ import { formatNumber as P } from "../../utils/formatNumber.mjs";
13
+ import "../../utils/getLocaleInfo.mjs";
14
+ import "../../utils/getQueryClient.mjs";
15
+ import "../../utils/isMobile.mjs";
16
+ import "../../utils/parseDecimal.mjs";
17
+ import "../../client/services/getSession.mjs";
18
+ import "@opexa/portal-sdk-core/object-id";
19
+ import "../../client/hooks/useGlobalStore.mjs";
20
+ import "../../client/hooks/useInfiniteQueryHelper.mjs";
21
+ import { useLocaleInfo as z } from "../../client/hooks/useLocaleInfo.mjs";
22
+ import "usehooks-ts";
23
+ import { StarIcon as I } from "../../icons/StarIcon.mjs";
24
+ import { Trophy01Icon as M } from "../../icons/Trophy01Icon.mjs";
25
+ import { Award01Icon as S } from "../../icons/Award01Icon.mjs";
26
+ import j from "../../images/first-place.png.mjs";
27
+ import k from "../../images/trophy-two.png.mjs";
28
+ import D from "../../images/trophy.png.mjs";
29
+ import R from "../JackpotCounter/JackpotCounterItem.module.css.mjs";
30
+ import { TournamentGameProviders as q } from "./TournamentGameProviders.mjs";
31
+ import { TournamentRules as A } from "./TournamentRules.mjs";
32
+ function ue({ jackpot: m }) {
33
+ const x = z(), [i, c] = w({
34
+ days: 0,
35
+ hours: 0,
36
+ minutes: 0,
37
+ seconds: 0,
38
+ isPast: !1
39
+ }), o = C(() => {
40
+ const r = /* @__PURE__ */ new Date();
41
+ return new Date(r.setSeconds(r.getSeconds() + 2 * 24 * 60 * 60));
42
+ }, []), n = h.useCallback(() => {
43
+ const r = /* @__PURE__ */ new Date(), l = o.getTime() - r.getTime();
44
+ if (l <= 0) {
45
+ c({
46
+ days: 0,
47
+ hours: 0,
48
+ minutes: 0,
49
+ seconds: 0,
50
+ isPast: !0
51
+ });
52
+ return;
53
+ }
54
+ const s = Math.floor(l / 1e3), p = Math.floor(s / (3600 * 24)), b = Math.floor(s % (3600 * 24) / 3600), y = Math.floor(s % 3600 / 60), g = s % 60, N = v({ days: p, hours: b, minutes: y, seconds: g, isPast: !1 }, [
55
+ "days",
56
+ "hours",
57
+ "minutes",
58
+ "seconds",
59
+ "isPast"
60
+ ]);
61
+ c(N);
62
+ }, [o]);
63
+ T(() => {
64
+ n();
65
+ const r = setInterval(n, 1e3);
66
+ return () => clearInterval(r);
67
+ }, [o, n]);
68
+ const u = [
69
+ { label: "Day", value: i.days },
70
+ { label: "Hour", value: i.hours },
71
+ { label: "Min", value: i.minutes },
72
+ { label: "Sec", value: i.seconds }
73
+ ];
74
+ return /* @__PURE__ */ t(
75
+ "div",
76
+ {
77
+ className: a(
78
+ "bg-bg-tertiary border-border-primary rounded-2xl border"
79
+ ),
80
+ children: [
81
+ /* @__PURE__ */ t(
82
+ "div",
83
+ {
84
+ className: a(
85
+ "relative flex shrink-0 p-3 text-center lg:gap-6 lg:p-5"
86
+ ),
87
+ children: [
88
+ /* @__PURE__ */ e("div", { className: "z-1 relative flex flex-1 flex-col", children: /* @__PURE__ */ e("div", { className: "flex h-full flex-col justify-between", children: /* @__PURE__ */ e("div", { className: "flex w-full justify-between", children: /* @__PURE__ */ t("div", { className: "flex w-full flex-col", children: [
89
+ /* @__PURE__ */ t("div", { className: "relative flex w-full justify-between", children: [
90
+ /* @__PURE__ */ t("div", { className: "w-full", children: [
91
+ /* @__PURE__ */ t("div", { className: "flex w-full justify-between", children: [
92
+ /* @__PURE__ */ t("div", { className: "border-utility-brand-200 bg-utility-brand-50 text-utility-brand-700 flex h-fit w-fit items-center gap-1 rounded-full border px-2 py-0.5 text-xs font-medium", children: [
93
+ /* @__PURE__ */ e(S, { className: "text-utility-brand-500 size-3.5" }),
94
+ "Multiplier"
95
+ ] }),
96
+ /* @__PURE__ */ e("div", { className: "flex h-fit", children: u.map((r, l) => /* @__PURE__ */ t(h.Fragment, { children: [
97
+ /* @__PURE__ */ t(
98
+ "div",
99
+ {
100
+ className: a(
101
+ "bg-bg-primary text-text-primary-900 flex h-fit w-8 flex-col items-center rounded-[4px] pb-1.5"
102
+ ),
103
+ children: [
104
+ /* @__PURE__ */ e("span", { className: "text-base font-medium", children: String(r.value).padStart(2, "0") }),
105
+ /* @__PURE__ */ e("span", { className: "text-[8px]", children: r.label })
106
+ ]
107
+ }
108
+ ),
109
+ l < u.length - 1 && /* @__PURE__ */ t("div", { className: "flex flex-col justify-center gap-[6px] px-[6px]", children: [
110
+ /* @__PURE__ */ e("div", { className: "bg-bg-primary h-1 w-1 rounded-full" }),
111
+ /* @__PURE__ */ e("div", { className: "bg-bg-primary h-1 w-1 rounded-full" })
112
+ ] })
113
+ ] }, r.label)) })
114
+ ] }),
115
+ /* @__PURE__ */ e("div", { className: "text-text-primary-900 mt-1 text-left text-lg font-medium lg:mt-5 lg:text-2xl", children: m.name }),
116
+ /* @__PURE__ */ e("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: P(m.pool, {
117
+ currency: x.currency.code,
118
+ minDecimalPlaces: 2,
119
+ maxDecimalPlaces: 2
120
+ }) })
121
+ ] }),
122
+ /* @__PURE__ */ e("div", { className: "z-1 bottom-[-60] right-0 block lg:absolute", children: /* @__PURE__ */ e("div", { className: "h-[155px] w-auto shrink-0", children: /* @__PURE__ */ e(
123
+ d,
124
+ {
125
+ quality: 100,
126
+ width: 155,
127
+ height: 155,
128
+ src: D,
129
+ alt: "trophy",
130
+ className: "px-6 py-2.5"
131
+ }
132
+ ) }) })
133
+ ] }),
134
+ /* @__PURE__ */ t("div", { className: "bg-bg-primary relative mt-4 hidden w-full gap-4 rounded-lg p-4 lg:flex", children: [
135
+ /* @__PURE__ */ e(
136
+ d,
137
+ {
138
+ width: 66,
139
+ height: 87,
140
+ src: j,
141
+ alt: "closeChest",
142
+ className: "size-full h-auto w-[66px] mix-blend-luminosity"
143
+ }
144
+ ),
145
+ /* @__PURE__ */ t("div", { className: "flex flex-col gap-1 text-left", children: [
146
+ /* @__PURE__ */ t("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: [
147
+ /* @__PURE__ */ e(M, { className: "text-utility-brand-600 size-3.5" }),
148
+ "Top Payout"
149
+ ] }),
150
+ /* @__PURE__ */ e("div", { className: "font-semibold", children: "No winners yet" }),
151
+ /* @__PURE__ */ e("div", { className: "text-text-secondary-700 text-xs", children: "You could be the first to win the tournament!" })
152
+ ] })
153
+ ] })
154
+ ] }) }) }) }),
155
+ /* @__PURE__ */ t("div", { className: "z-1 hidden flex-1 space-y-4 lg:block", children: [
156
+ /* @__PURE__ */ t("div", { className: "flex items-center justify-between", children: [
157
+ /* @__PURE__ */ t("div", { className: "flex items-center gap-2", children: [
158
+ /* @__PURE__ */ e(
159
+ d,
160
+ {
161
+ width: 24,
162
+ height: 24,
163
+ src: k,
164
+ quality: 100,
165
+ alt: "leaderboardIcon",
166
+ className: "size-full w-6"
167
+ }
168
+ ),
169
+ /* @__PURE__ */ e("div", { className: "text-text-primary-900 text-lg font-semibold", children: "Starting soon!" })
170
+ ] }),
171
+ /* @__PURE__ */ e(
172
+ A,
173
+ {
174
+ jackpotRules: `<strong>Rules and guidelines <br> 1/20/2025 ~ 1/21/2025</strong><br><br>\r
175
+ <p>1. The contest prize pool closely depends on the bankroll — the more players bet, the bigger it grows.</p>`
176
+ }
177
+ )
178
+ ] }),
179
+ /* @__PURE__ */ e(
180
+ "div",
181
+ {
182
+ className: a(
183
+ "max-h-[272px] overflow-y-scroll",
184
+ R.scrollArea
185
+ ),
186
+ children: /* @__PURE__ */ e("div", { className: "border-gray-200 overflow-hidden rounded-xl", children: /* @__PURE__ */ t("table", { className: "w-full", children: [
187
+ /* @__PURE__ */ e("thead", { children: /* @__PURE__ */ t("tr", { className: "bg-bg-secondary text-text-tertiary-600 h-8 text-xs font-medium", children: [
188
+ /* @__PURE__ */ e("th", { className: "w-[52px]", children: "#" }),
189
+ /* @__PURE__ */ e("th", { children: "Player" }),
190
+ /* @__PURE__ */ e("th", { children: "Multiplier" }),
191
+ /* @__PURE__ */ e("th", { children: "Prize" })
192
+ ] }) }),
193
+ /* @__PURE__ */ e("tbody", { children: Array.from({ length: 10 }).map((r, l) => /* @__PURE__ */ t(
194
+ "tr",
195
+ {
196
+ className: "bg-bg-primary text-text-secondary-700 text-sm",
197
+ children: [
198
+ /* @__PURE__ */ e("td", { className: "border-border-secondary h-12 w-[52px] border-t-2", children: l + 1 < 6 ? /* @__PURE__ */ t("div", { className: "relative", children: [
199
+ /* @__PURE__ */ e(
200
+ I,
201
+ {
202
+ className: a(
203
+ "mx-auto size-6.5",
204
+ f[l].starColor
205
+ )
206
+ }
207
+ ),
208
+ /* @__PURE__ */ e(
209
+ "span",
210
+ {
211
+ className: a(
212
+ "absolute inset-0 mt-0.5 flex items-center justify-center text-2xs font-bold",
213
+ f[l].numberColor
214
+ ),
215
+ children: l + 1
216
+ }
217
+ )
218
+ ] }) : "-" }),
219
+ /* @__PURE__ */ e("td", { className: "border-border-secondary h-12 border-t-2", children: "-" }),
220
+ /* @__PURE__ */ e("td", { className: "border-border-secondary h-12 border-t-2", children: "-" }),
221
+ /* @__PURE__ */ e("td", { className: "border-border-secondary h-12 border-t-2", children: "-" })
222
+ ]
223
+ },
224
+ l
225
+ )) })
226
+ ] }) })
227
+ }
228
+ )
229
+ ] })
230
+ ]
231
+ }
232
+ ),
233
+ /* @__PURE__ */ e(q, {})
234
+ ]
235
+ }
236
+ );
237
+ }
238
+ const f = [
239
+ {
240
+ starColor: "text-yellow-400",
241
+ numberColor: "text-bg-primary"
242
+ },
243
+ {
244
+ starColor: "text-utility-gray-700",
245
+ numberColor: "text-bg-primary"
246
+ },
247
+ {
248
+ starColor: "text-yellow-700",
249
+ numberColor: "text-bg-primary"
250
+ },
251
+ {
252
+ starColor: "text-bg-quaternary",
253
+ numberColor: "text-text-primary-900"
254
+ },
255
+ {
256
+ starColor: "text-bg-quaternary",
257
+ numberColor: "text-text-primary-900"
258
+ }
259
+ ];
260
+ export {
261
+ ue as TournamentItem
262
+ };
@@ -0,0 +1,8 @@
1
+ import { Jackpot } from '@opexa/portal-sdk-core';
2
+ import { default as React } from 'react';
3
+ export interface JackpotCounterCardProps {
4
+ jackpot: Jackpot;
5
+ /** @default "/jackpots" */
6
+ viewAllUrl?: string;
7
+ }
8
+ export declare function TournamentItemMobile({ jackpot }: JackpotCounterCardProps): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),v=require("lodash-es"),h=require("next/image"),s=require("react"),l=require("tailwind-merge");require("@opexa/portal-sdk-core");require("@tanstack/react-query");require("tiny-invariant");require("../../constants/index.js");require("../../utils/capitalize.js");const w=require("../../utils/formatNumber.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");require("../../utils/parseDecimal.js");require("../../client/services/getSession.js");require("@opexa/portal-sdk-core/object-id");require("../../client/hooks/useGlobalStore.js");require("../../client/hooks/useInfiniteQueryHelper.js");const I=require("../../client/hooks/useLocaleInfo.js");require("usehooks-ts");const M=require("../../icons/StarIcon.js"),T=require("../../icons/Trophy01Icon.js"),C=require("../../icons/ArrowNarrowDownIcon.js"),S=require("../../icons/ArrowNarrowUpIcon.js"),P=require("../../icons/Award01Icon.js"),z=require("../../images/first-place.png.js"),D=require("../../images/trophy.png.js");require("../../ui/AlertDialog/AlertDialog.js");require("../../ui/Avatar/Avatar.js");require("../../ui/Badge/Badge.js");const b=require("../../ui/Button/Button.js");require("../../ui/Checkbox/Checkbox.js");require("../../ui/Clipboard/Clipboard.js");require("../../ui/Collapsible/Collapsible.js");require("../../ui/Combobox/Combobox.js");require("../../ui/DatePicker/DatePicker.js");require("../../ui/Dialog/Dialog.js");require("../../ui/Drawer/Drawer.js");require("../../ui/Field/Field.js");require("@ark-ui/react");require("../../ui/IconButton/iconButton.recipe.js");require("../../ui/NumberInput/NumberInput.js");require("../../ui/PasswordInput/PasswordInput.js");require("../../ui/PinInput/PinInput.js");require("../../ui/Popover/Popover.js");require("../../ui/Progress/Progress.js");require("../../ui/SegmentGroup/SegmentGroup.js");require("../../ui/Select/Select.js");require("../../ui/Table/Table.js");require("../../ui/Tabs/Tabs.js");const R=require("./TournamentGameProviders.js"),A=require("./TournamentRules.js");function k({jackpot:d}){const g=I.useLocaleInfo(),[i,u]=s.useState(!1),[a,x]=s.useState({days:0,hours:0,minutes:0,seconds:0,isPast:!1}),o=s.useMemo(()=>{const r=new Date;return new Date(r.setSeconds(r.getSeconds()+2*24*60*60))},[]),c=s.useCallback(()=>{const r=new Date,t=o.getTime()-r.getTime();if(t<=0){x({days:0,hours:0,minutes:0,seconds:0,isPast:!0});return}const n=Math.floor(t/1e3),y=Math.floor(n/(3600*24)),j=Math.floor(n%(3600*24)/3600),p=Math.floor(n%3600/60),N=n%60,q=v.pick({days:y,hours:j,minutes:p,seconds:N,isPast:!1},["days","hours","minutes","seconds","isPast"]);x(q)},[o]);s.useEffect(()=>{c();const r=setInterval(c,1e3);return()=>clearInterval(r)},[o,c]);const m=[{label:"Day",value:a.days},{label:"Hour",value:a.hours},{label:"Min",value:a.minutes},{label:"Sec",value:a.seconds}];return e.jsxs("div",{className:"bg-bg-primary border-border-primary rounded-2xl border",children:[e.jsx("div",{className:l.twMerge("bg-bg-tertiary relative flex shrink-0 rounded-2xl p-3 text-center lg:gap-4 lg:p-5"),children:e.jsxs("div",{className:"z-1 relative flex flex-1 flex-col",children:[e.jsx("div",{className:"flex h-full flex-col justify-between",children:e.jsx("div",{className:"flex w-full justify-between",children:e.jsx("div",{className:"flex w-full flex-col",children:e.jsxs("div",{className:"relative flex w-full justify-between",children:[e.jsxs("div",{className:"w-full",children:[e.jsxs("div",{className:"flex w-full justify-between",children:[e.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-full border px-2 py-0.5 text-xs font-medium",children:[e.jsx(P.Award01Icon,{className:"text-utility-brand-500 size-3.5"}),"Multiplier"]}),e.jsx("div",{className:"flex h-fit",children:m.map((r,t)=>e.jsxs(s.Fragment,{children:[e.jsxs("div",{className:l.twMerge("bg-bg-primary text-text-primary-900 flex h-fit w-8 flex-col items-center rounded-[4px] pb-1.5"),children:[e.jsx("span",{className:"text-base font-medium",children:String(r.value).padStart(2,"0")}),e.jsx("span",{className:"text-[8px]",children:r.label})]}),t<m.length-1&&e.jsxs("div",{className:"flex flex-col justify-center gap-[6px] px-[6px]",children:[e.jsx("div",{className:"bg-bg-primary h-1 w-1 rounded-full"}),e.jsx("div",{className:"bg-bg-primary h-1 w-1 rounded-full"})]})]},r.label))})]}),e.jsx("div",{className:"text-text-primary-900 mt-2.5 text-left text-lg font-medium lg:mt-5 lg:text-2xl",children:d.name}),e.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:w.formatNumber(d.pool,{currency:g.currency.code,minDecimalPlaces:2,maxDecimalPlaces:2})})]}),e.jsx("div",{className:"z-1 absolute bottom-[-60] right-0",children:e.jsx(h,{width:72.94,height:93,src:D,alt:"trophy",quality:100,className:"size-full"})})]})})})}),e.jsxs("div",{className:"bg-bg-primary relative mt-4 flex w-full gap-4 rounded-lg p-4 lg:hidden",children:[e.jsx("div",{className:"h-[87px] min-w-[66px]",children:e.jsx(h,{width:66,height:87,src:z,alt:"closeChest",className:"size-full mix-blend-luminosity"})}),e.jsxs("div",{className:"flex flex-col gap-1 text-left",children:[e.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:[e.jsx(T.Trophy01Icon,{className:"text-utility-brand-600 size-3.5"}),"Top Payout"]}),e.jsx("div",{className:"font-semibold",children:"No winners yet"}),e.jsx("div",{className:"text-text-secondary-700 text-xs",children:"You could be the first to win the tournament!"})]})]}),e.jsx(b.Button,{variant:"outline",className:l.twMerge("mt-5.5 px-3.5 py-2.5 text-sm",i?"hidden":"flex"),onClick:()=>u(!i),children:e.jsxs("div",{className:"flex gap-1.5",children:["See Details",e.jsx(C.ArrowNarrowDownIcon,{className:"size-5"})]})})]})}),i&&e.jsxs("div",{children:[e.jsxs("div",{className:"z-1 flex-1",children:[e.jsxs("div",{className:"flex items-center justify-between p-3",children:[e.jsx("div",{className:"flex gap-2",children:e.jsx("div",{className:"text-text-primary-900 text-lg font-semibold",children:"Starting soon!"})}),e.jsx(A.TournamentRules,{jackpotRules:`<strong>Rules and guidelines <br> 1/20/2025 ~ 1/21/2025</strong><br><br>\r
2
+ <p>1. The contest prize pool closely depends on the bankroll — the more players bet, the bigger it grows.</p>`})]}),e.jsx("div",{children:e.jsx("div",{className:"border-gray-200 overflow-hidden",children:e.jsxs("table",{className:"w-full",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"bg-bg-secondary text-text-tertiary-600 h-8 text-center text-xs font-medium",children:[e.jsx("th",{className:"w-[52px]",children:"#"}),e.jsx("th",{children:"Player"}),e.jsx("th",{children:"Multiplier"}),e.jsx("th",{children:"Prize"})]})}),e.jsx("tbody",{children:Array.from({length:5}).map((r,t)=>e.jsxs("tr",{className:"bg-bg-primary text-text-secondary-700 text-center text-sm",children:[e.jsx("td",{className:"border-border-secondary h-12 w-[52px] border-t-2",children:t+1<6?e.jsxs("div",{className:"relative",children:[e.jsx(M.StarIcon,{className:l.twMerge("mx-auto size-6.5",f[t].starColor)}),e.jsx("span",{className:l.twMerge("absolute inset-0 mt-0.5 flex items-center justify-center text-2xs font-bold",f[t].numberColor),children:t+1})]}):"-"}),e.jsx("td",{className:"border-border-secondary h-12 border-t-2",children:"-"}),e.jsx("td",{className:"border-border-secondary h-12 border-t-2",children:"-"}),e.jsx("td",{className:"border-border-secondary h-12 border-t-2",children:"-"})]},t))})]})})})]}),e.jsx(R.TournamentGameProviders,{}),e.jsx("div",{className:"m-3",children:e.jsx(b.Button,{variant:"outline",className:l.twMerge("px-3.5 py-2.5 text-sm",i?"flex":"hidden"),onClick:()=>u(!i),children:e.jsxs("div",{className:"flex gap-1.5",children:["Hide",e.jsx(S.ArrowNarrowUpIcon,{className:"size-5"})]})})})]})]})}const f=[{starColor:"text-yellow-400",numberColor:"text-bg-primary"},{starColor:"text-utility-gray-700",numberColor:"text-bg-primary"},{starColor:"text-yellow-700",numberColor:"text-bg-primary"},{starColor:"text-bg-quaternary",numberColor:"text-text-primary-900"},{starColor:"text-bg-quaternary",numberColor:"text-text-primary-900"}];exports.TournamentItemMobile=k;
@@ -0,0 +1,285 @@
1
+ "use client";
2
+ import { jsxs as t, jsx as e } from "react/jsx-runtime";
3
+ import { pick as I } from "lodash-es";
4
+ import f from "next/image";
5
+ import u, { useState as h, useMemo as P, useEffect as T } from "react";
6
+ import { twMerge as i } from "tailwind-merge";
7
+ import "@opexa/portal-sdk-core";
8
+ import "@tanstack/react-query";
9
+ import "tiny-invariant";
10
+ import "../../constants/index.mjs";
11
+ import "../../utils/capitalize.mjs";
12
+ import { formatNumber as D } from "../../utils/formatNumber.mjs";
13
+ import "../../utils/getLocaleInfo.mjs";
14
+ import "../../utils/getQueryClient.mjs";
15
+ import "../../utils/isMobile.mjs";
16
+ import "../../utils/parseDecimal.mjs";
17
+ import "../../client/services/getSession.mjs";
18
+ import "@opexa/portal-sdk-core/object-id";
19
+ import "../../client/hooks/useGlobalStore.mjs";
20
+ import "../../client/hooks/useInfiniteQueryHelper.mjs";
21
+ import { useLocaleInfo as M } from "../../client/hooks/useLocaleInfo.mjs";
22
+ import "usehooks-ts";
23
+ import { StarIcon as S } from "../../icons/StarIcon.mjs";
24
+ import { Trophy01Icon as j } from "../../icons/Trophy01Icon.mjs";
25
+ import { ArrowNarrowDownIcon as R } from "../../icons/ArrowNarrowDownIcon.mjs";
26
+ import { ArrowNarrowUpIcon as k } from "../../icons/ArrowNarrowUpIcon.mjs";
27
+ import { Award01Icon as A } from "../../icons/Award01Icon.mjs";
28
+ import q from "../../images/first-place.png.mjs";
29
+ import _ from "../../images/trophy.png.mjs";
30
+ import "../../ui/AlertDialog/AlertDialog.mjs";
31
+ import "../../ui/Avatar/Avatar.mjs";
32
+ import "../../ui/Badge/Badge.mjs";
33
+ import { Button as b } from "../../ui/Button/Button.mjs";
34
+ import "../../ui/Checkbox/Checkbox.mjs";
35
+ import "../../ui/Clipboard/Clipboard.mjs";
36
+ import "../../ui/Collapsible/Collapsible.mjs";
37
+ import "../../ui/Combobox/Combobox.mjs";
38
+ import "../../ui/DatePicker/DatePicker.mjs";
39
+ import "../../ui/Dialog/Dialog.mjs";
40
+ import "../../ui/Drawer/Drawer.mjs";
41
+ import "../../ui/Field/Field.mjs";
42
+ import "@ark-ui/react";
43
+ import "../../ui/IconButton/iconButton.recipe.mjs";
44
+ import "../../ui/NumberInput/NumberInput.mjs";
45
+ import "../../ui/PasswordInput/PasswordInput.mjs";
46
+ import "../../ui/PinInput/PinInput.mjs";
47
+ import "../../ui/Popover/Popover.mjs";
48
+ import "../../ui/Progress/Progress.mjs";
49
+ import "../../ui/SegmentGroup/SegmentGroup.mjs";
50
+ import "../../ui/Select/Select.mjs";
51
+ import "../../ui/Table/Table.mjs";
52
+ import "../../ui/Tabs/Tabs.mjs";
53
+ import { TournamentGameProviders as E } from "./TournamentGameProviders.mjs";
54
+ import { TournamentRules as H } from "./TournamentRules.mjs";
55
+ function He({ jackpot: d }) {
56
+ const g = M(), [a, c] = h(!1), [s, p] = h({
57
+ days: 0,
58
+ hours: 0,
59
+ minutes: 0,
60
+ seconds: 0,
61
+ isPast: !1
62
+ }), n = P(() => {
63
+ const r = /* @__PURE__ */ new Date();
64
+ return new Date(r.setSeconds(r.getSeconds() + 2 * 24 * 60 * 60));
65
+ }, []), m = u.useCallback(() => {
66
+ const r = /* @__PURE__ */ new Date(), l = n.getTime() - r.getTime();
67
+ if (l <= 0) {
68
+ p({
69
+ days: 0,
70
+ hours: 0,
71
+ minutes: 0,
72
+ seconds: 0,
73
+ isPast: !0
74
+ });
75
+ return;
76
+ }
77
+ const o = Math.floor(l / 1e3), N = Math.floor(o / (3600 * 24)), v = Math.floor(o % (3600 * 24) / 3600), w = Math.floor(o % 3600 / 60), C = o % 60, z = I({ days: N, hours: v, minutes: w, seconds: C, isPast: !1 }, [
78
+ "days",
79
+ "hours",
80
+ "minutes",
81
+ "seconds",
82
+ "isPast"
83
+ ]);
84
+ p(z);
85
+ }, [n]);
86
+ T(() => {
87
+ m();
88
+ const r = setInterval(m, 1e3);
89
+ return () => clearInterval(r);
90
+ }, [n, m]);
91
+ const x = [
92
+ { label: "Day", value: s.days },
93
+ { label: "Hour", value: s.hours },
94
+ { label: "Min", value: s.minutes },
95
+ { label: "Sec", value: s.seconds }
96
+ ];
97
+ return /* @__PURE__ */ t("div", { className: "bg-bg-primary border-border-primary rounded-2xl border", children: [
98
+ /* @__PURE__ */ e(
99
+ "div",
100
+ {
101
+ className: i(
102
+ "bg-bg-tertiary relative flex shrink-0 rounded-2xl p-3 text-center lg:gap-4 lg:p-5"
103
+ ),
104
+ children: /* @__PURE__ */ t("div", { className: "z-1 relative flex flex-1 flex-col", children: [
105
+ /* @__PURE__ */ e("div", { className: "flex h-full flex-col justify-between", children: /* @__PURE__ */ e("div", { className: "flex w-full justify-between", children: /* @__PURE__ */ e("div", { className: "flex w-full flex-col", children: /* @__PURE__ */ t("div", { className: "relative flex w-full justify-between", children: [
106
+ /* @__PURE__ */ t("div", { className: "w-full", children: [
107
+ /* @__PURE__ */ t("div", { className: "flex w-full justify-between", children: [
108
+ /* @__PURE__ */ t("div", { className: "border-utility-brand-200 bg-utility-brand-50 text-utility-brand-700 flex h-fit w-fit items-center gap-1 rounded-full border px-2 py-0.5 text-xs font-medium", children: [
109
+ /* @__PURE__ */ e(A, { className: "text-utility-brand-500 size-3.5" }),
110
+ "Multiplier"
111
+ ] }),
112
+ /* @__PURE__ */ e("div", { className: "flex h-fit", children: x.map((r, l) => /* @__PURE__ */ t(u.Fragment, { children: [
113
+ /* @__PURE__ */ t(
114
+ "div",
115
+ {
116
+ className: i(
117
+ "bg-bg-primary text-text-primary-900 flex h-fit w-8 flex-col items-center rounded-[4px] pb-1.5"
118
+ ),
119
+ children: [
120
+ /* @__PURE__ */ e("span", { className: "text-base font-medium", children: String(r.value).padStart(2, "0") }),
121
+ /* @__PURE__ */ e("span", { className: "text-[8px]", children: r.label })
122
+ ]
123
+ }
124
+ ),
125
+ l < x.length - 1 && /* @__PURE__ */ t("div", { className: "flex flex-col justify-center gap-[6px] px-[6px]", children: [
126
+ /* @__PURE__ */ e("div", { className: "bg-bg-primary h-1 w-1 rounded-full" }),
127
+ /* @__PURE__ */ e("div", { className: "bg-bg-primary h-1 w-1 rounded-full" })
128
+ ] })
129
+ ] }, r.label)) })
130
+ ] }),
131
+ /* @__PURE__ */ e("div", { className: "text-text-primary-900 mt-2.5 text-left text-lg font-medium lg:mt-5 lg:text-2xl", children: d.name }),
132
+ /* @__PURE__ */ e("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: D(d.pool, {
133
+ currency: g.currency.code,
134
+ minDecimalPlaces: 2,
135
+ maxDecimalPlaces: 2
136
+ }) })
137
+ ] }),
138
+ /* @__PURE__ */ e("div", { className: "z-1 absolute bottom-[-60] right-0", children: /* @__PURE__ */ e(
139
+ f,
140
+ {
141
+ width: 72.94,
142
+ height: 93,
143
+ src: _,
144
+ alt: "trophy",
145
+ quality: 100,
146
+ className: "size-full"
147
+ }
148
+ ) })
149
+ ] }) }) }) }),
150
+ /* @__PURE__ */ t("div", { className: "bg-bg-primary relative mt-4 flex w-full gap-4 rounded-lg p-4 lg:hidden", children: [
151
+ /* @__PURE__ */ e("div", { className: "h-[87px] min-w-[66px]", children: /* @__PURE__ */ e(
152
+ f,
153
+ {
154
+ width: 66,
155
+ height: 87,
156
+ src: q,
157
+ alt: "closeChest",
158
+ className: "size-full mix-blend-luminosity"
159
+ }
160
+ ) }),
161
+ /* @__PURE__ */ t("div", { className: "flex flex-col gap-1 text-left", children: [
162
+ /* @__PURE__ */ t("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: [
163
+ /* @__PURE__ */ e(j, { className: "text-utility-brand-600 size-3.5" }),
164
+ "Top Payout"
165
+ ] }),
166
+ /* @__PURE__ */ e("div", { className: "font-semibold", children: "No winners yet" }),
167
+ /* @__PURE__ */ e("div", { className: "text-text-secondary-700 text-xs", children: "You could be the first to win the tournament!" })
168
+ ] })
169
+ ] }),
170
+ /* @__PURE__ */ e(
171
+ b,
172
+ {
173
+ variant: "outline",
174
+ className: i(
175
+ "mt-5.5 px-3.5 py-2.5 text-sm",
176
+ a ? "hidden" : "flex"
177
+ ),
178
+ onClick: () => c(!a),
179
+ children: /* @__PURE__ */ t("div", { className: "flex gap-1.5", children: [
180
+ "See Details",
181
+ /* @__PURE__ */ e(R, { className: "size-5" })
182
+ ] })
183
+ }
184
+ )
185
+ ] })
186
+ }
187
+ ),
188
+ a && /* @__PURE__ */ t("div", { children: [
189
+ /* @__PURE__ */ t("div", { className: "z-1 flex-1", children: [
190
+ /* @__PURE__ */ t("div", { className: "flex items-center justify-between p-3", children: [
191
+ /* @__PURE__ */ e("div", { className: "flex gap-2", children: /* @__PURE__ */ e("div", { className: "text-text-primary-900 text-lg font-semibold", children: "Starting soon!" }) }),
192
+ /* @__PURE__ */ e(
193
+ H,
194
+ {
195
+ jackpotRules: `<strong>Rules and guidelines <br> 1/20/2025 ~ 1/21/2025</strong><br><br>\r
196
+ <p>1. The contest prize pool closely depends on the bankroll — the more players bet, the bigger it grows.</p>`
197
+ }
198
+ )
199
+ ] }),
200
+ /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("div", { className: "border-gray-200 overflow-hidden", children: /* @__PURE__ */ t("table", { className: "w-full", children: [
201
+ /* @__PURE__ */ e("thead", { children: /* @__PURE__ */ t("tr", { className: "bg-bg-secondary text-text-tertiary-600 h-8 text-center text-xs font-medium", children: [
202
+ /* @__PURE__ */ e("th", { className: "w-[52px]", children: "#" }),
203
+ /* @__PURE__ */ e("th", { children: "Player" }),
204
+ /* @__PURE__ */ e("th", { children: "Multiplier" }),
205
+ /* @__PURE__ */ e("th", { children: "Prize" })
206
+ ] }) }),
207
+ /* @__PURE__ */ e("tbody", { children: Array.from({ length: 5 }).map((r, l) => /* @__PURE__ */ t(
208
+ "tr",
209
+ {
210
+ className: "bg-bg-primary text-text-secondary-700 text-center text-sm",
211
+ children: [
212
+ /* @__PURE__ */ e("td", { className: "border-border-secondary h-12 w-[52px] border-t-2", children: l + 1 < 6 ? /* @__PURE__ */ t("div", { className: "relative", children: [
213
+ /* @__PURE__ */ e(
214
+ S,
215
+ {
216
+ className: i(
217
+ "mx-auto size-6.5",
218
+ y[l].starColor
219
+ )
220
+ }
221
+ ),
222
+ /* @__PURE__ */ e(
223
+ "span",
224
+ {
225
+ className: i(
226
+ "absolute inset-0 mt-0.5 flex items-center justify-center text-2xs font-bold",
227
+ y[l].numberColor
228
+ ),
229
+ children: l + 1
230
+ }
231
+ )
232
+ ] }) : "-" }),
233
+ /* @__PURE__ */ e("td", { className: "border-border-secondary h-12 border-t-2", children: "-" }),
234
+ /* @__PURE__ */ e("td", { className: "border-border-secondary h-12 border-t-2", children: "-" }),
235
+ /* @__PURE__ */ e("td", { className: "border-border-secondary h-12 border-t-2", children: "-" })
236
+ ]
237
+ },
238
+ l
239
+ )) })
240
+ ] }) }) })
241
+ ] }),
242
+ /* @__PURE__ */ e(E, {}),
243
+ /* @__PURE__ */ e("div", { className: "m-3", children: /* @__PURE__ */ e(
244
+ b,
245
+ {
246
+ variant: "outline",
247
+ className: i(
248
+ "px-3.5 py-2.5 text-sm",
249
+ a ? "flex" : "hidden"
250
+ ),
251
+ onClick: () => c(!a),
252
+ children: /* @__PURE__ */ t("div", { className: "flex gap-1.5", children: [
253
+ "Hide",
254
+ /* @__PURE__ */ e(k, { className: "size-5" })
255
+ ] })
256
+ }
257
+ ) })
258
+ ] })
259
+ ] });
260
+ }
261
+ const y = [
262
+ {
263
+ starColor: "text-yellow-400",
264
+ numberColor: "text-bg-primary"
265
+ },
266
+ {
267
+ starColor: "text-utility-gray-700",
268
+ numberColor: "text-bg-primary"
269
+ },
270
+ {
271
+ starColor: "text-yellow-700",
272
+ numberColor: "text-bg-primary"
273
+ },
274
+ {
275
+ starColor: "text-bg-quaternary",
276
+ numberColor: "text-text-primary-900"
277
+ },
278
+ {
279
+ starColor: "text-bg-quaternary",
280
+ numberColor: "text-text-primary-900"
281
+ }
282
+ ];
283
+ export {
284
+ He as TournamentItemMobile
285
+ };
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from 'react';
2
+ export interface TournamentRulesProps {
3
+ children?: ReactNode;
4
+ jackpotRules: string;
5
+ }
6
+ export declare function TournamentRules(props: TournamentRulesProps): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("@ark-ui/react"),s=require("../../icons/XIcon.js"),u=require("../../icons/Flag06Icon.js");require("../../ui/AlertDialog/AlertDialog.js");require("../../ui/Avatar/Avatar.js");require("../../ui/Badge/Badge.js");require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../constants/index.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");require("../../ui/Button/button.recipe.js");require("../../ui/Checkbox/Checkbox.js");require("../../ui/Clipboard/Clipboard.js");require("../../ui/Collapsible/Collapsible.js");require("../../ui/Combobox/Combobox.js");require("../../ui/DatePicker/DatePicker.js");const r=require("../../ui/Dialog/Dialog.js");require("../../ui/Drawer/Drawer.js");require("../../ui/Field/Field.js");require("../../ui/IconButton/iconButton.recipe.js");require("../../ui/NumberInput/NumberInput.js");require("../../ui/PasswordInput/PasswordInput.js");require("../../ui/PinInput/PinInput.js");require("../../ui/Popover/Popover.js");require("tailwind-merge");require("../../ui/Progress/Progress.js");require("../../ui/SegmentGroup/SegmentGroup.js");require("../../ui/Select/Select.js");require("../../ui/Table/Table.js");require("../../ui/Tabs/Tabs.js");function l(t){return e.jsxs(r.Root,{lazyMount:!0,unmountOnExit:!0,closeOnEscape:!1,closeOnInteractOutside:!1,children:[e.jsx(r.Trigger,{asChild:!0,children:t.children??e.jsx("button",{type:"button",className:"text-button-tertiary-fg flex text-sm font-semibold",children:"Tournament Rules"})}),e.jsxs(i.Portal,{children:[e.jsx(r.Backdrop,{}),e.jsx(r.Positioner,{children:e.jsxs(r.Content,{className:"bg-bg-primary-alt mx-auto h-full w-full items-start lg:h-auto lg:w-[640px] lg:rounded-xl",children:[e.jsxs("div",{className:"p-3xl",children:[e.jsxs("div",{className:"mb-3 flex justify-between",children:[e.jsx("div",{className:"bg-bg-tertiary border-border-primary flex h-12 w-12 items-center justify-center rounded-lg border",children:e.jsx(u.Flag06Icon,{className:"text-text-tertiary-600 size-full p-3"})}),e.jsx(r.CloseTrigger,{children:e.jsx(s.XIcon,{})})]}),e.jsx("div",{className:"text-text-primary-900 text-lg font-semibold",children:"Tournament Rules"}),e.jsx("div",{className:"text-text-tertiary-600 mt-1 text-sm",children:"Terms and Conditions"})]}),e.jsx("div",{className:"border-gray-800 border-t-1 pb-3",children:e.jsx("div",{dangerouslySetInnerHTML:{__html:t.jackpotRules},className:"px-3xl py-3"})})]})})]})]})}exports.TournamentRules=l;