@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
@@ -1,417 +1,473 @@
1
1
  "use client";
2
- import { jsxs as r, jsx as e, Fragment as pe } from "react/jsx-runtime";
3
- import { createListCollection as w, Portal as p, parseDate as ge } from "@ark-ui/react";
4
- import { TZDateMini as $, tz as _ } from "@date-fns/tz";
5
- import { endOfDay as A, startOfDay as H, format as L } from "date-fns";
6
- import { useState as ve, useReducer as ye } from "react";
7
- import { z as T } from "zod";
2
+ import { jsxs as r, jsx as e, Fragment as g } from "react/jsx-runtime";
3
+ import { createListCollection as $, Portal as y, parseDate as fe } from "@ark-ui/react";
4
+ import { TZDateMini as H, tz as f } from "@date-fns/tz";
5
+ import { endOfDay as j, startOfDay as F, format as v } from "date-fns";
6
+ import { useState as ve, useReducer as Ce } from "react";
7
+ import { twMerge as Ne } from "tailwind-merge";
8
+ import { z as x } from "zod";
8
9
  import "@opexa/portal-sdk-core";
9
10
  import "@tanstack/react-query";
10
11
  import "tiny-invariant";
11
12
  import "../../constants/index.mjs";
12
13
  import { capitalize as c } from "../../utils/capitalize.mjs";
13
- import { formatNumber as g } from "../../utils/formatNumber.mjs";
14
+ import { formatNumber as p } from "../../utils/formatNumber.mjs";
14
15
  import "../../utils/getLocaleInfo.mjs";
15
16
  import "../../utils/getQueryClient.mjs";
16
17
  import "../../utils/isMobile.mjs";
17
18
  import "../../utils/parseDecimal.mjs";
18
- import { useBetRecordsQuery as fe } from "../../client/hooks/useBetRecordsQuery.mjs";
19
+ import "../../client/services/getSession.mjs";
20
+ import { useBetRecordsQuery as Te } from "../../client/hooks/useBetRecordsQuery.mjs";
19
21
  import "lodash-es";
20
22
  import "@opexa/portal-sdk-core/object-id";
21
23
  import "../../client/hooks/useGlobalStore.mjs";
22
- import { useInfiniteQueryHelper as re } from "../../client/hooks/useInfiniteQueryHelper.mjs";
23
- import { useLocaleInfo as Ce } from "../../client/hooks/useLocaleInfo.mjs";
24
+ import { useInfiniteQueryHelper as ne } from "../../client/hooks/useInfiniteQueryHelper.mjs";
25
+ import { useLocaleInfo as be } from "../../client/hooks/useLocaleInfo.mjs";
24
26
  import "usehooks-ts";
25
- import { CheckIcon as U } from "../../icons/CheckIcon.mjs";
26
- import { ChevronDownIcon as I } from "../../icons/ChevronDownIcon.mjs";
27
- import { ChevronLeftIcon as q } from "../../icons/ChevronLeftIcon.mjs";
28
- import { ChevronRightIcon as j } from "../../icons/ChevronRightIcon.mjs";
29
- import { File02Icon as Te } from "../../icons/File02Icon.mjs";
27
+ import { CheckIcon as w } from "../../icons/CheckIcon.mjs";
28
+ import { ChevronDownIcon as R } from "../../icons/ChevronDownIcon.mjs";
29
+ import { ChevronLeftIcon as G } from "../../icons/ChevronLeftIcon.mjs";
30
+ import { ChevronRightIcon as J } from "../../icons/ChevronRightIcon.mjs";
31
+ import { File02Icon as xe } from "../../icons/File02Icon.mjs";
30
32
  import { SpinnerIcon as Se } from "../../icons/SpinnerIcon.mjs";
31
33
  import "../../ui/AlertDialog/AlertDialog.mjs";
32
34
  import "../../ui/Avatar/Avatar.mjs";
33
- import "../../ui/Badge/Badge.mjs";
35
+ import { Root as we, Label as Re } from "../../ui/Badge/Badge.mjs";
34
36
  import "../../ui/Button/button.recipe.mjs";
35
37
  import "../../ui/Checkbox/Checkbox.mjs";
36
38
  import "../../ui/Clipboard/Clipboard.mjs";
37
- import { Root as Ie, Context as F, Control as be, Positioner as Ne, Content as Re, View as xe, ViewControl as De, PrevTrigger as Ee, ViewTrigger as Pe, RangeText as ze, NextTrigger as we, Table as Oe, TableHead as Ve, TableRow as G, TableHeader as Be, TableBody as Me, TableCell as ke, TableCellTrigger as $e } from "../../ui/DatePicker/DatePicker.mjs";
39
+ import "../../ui/Collapsible/Collapsible.mjs";
40
+ import "../../ui/Combobox/Combobox.mjs";
41
+ import { Root as Ie, Context as W, Control as Ee, Positioner as De, Content as Pe, View as ze, ViewControl as Oe, PrevTrigger as Ve, ViewTrigger as ke, RangeText as Be, NextTrigger as Me, Table as $e, TableHead as Le, TableRow as Z, TableHeader as Ae, TableBody as Ue, TableCell as _e, TableCellTrigger as qe } from "../../ui/DatePicker/DatePicker.mjs";
38
42
  import "../../ui/Dialog/Dialog.mjs";
39
43
  import "../../ui/Drawer/Drawer.mjs";
40
44
  import "../../ui/Field/Field.mjs";
41
- import { IconButton as J } from "../../ui/IconButton/IconButton.mjs";
45
+ import { IconButton as Q } from "../../ui/IconButton/IconButton.mjs";
42
46
  import "../../ui/NumberInput/NumberInput.mjs";
47
+ import "../../ui/PasswordInput/PasswordInput.mjs";
43
48
  import "../../ui/PinInput/PinInput.mjs";
44
49
  import "../../ui/Popover/Popover.mjs";
45
- import "tailwind-merge";
46
- import { Root as Z, Item as v, ItemText as y, ItemControl as f, ItemHiddenInput as C, Indicator as Q } from "../../ui/SegmentGroup/SegmentGroup.mjs";
47
- import { Root as b, Trigger as N, ValueText as R, Indicator as x, Positioner as D, Content as E, ItemGroup as K, Item as P, ItemText as W, ItemIndicator as X } from "../../ui/Select/Select.mjs";
48
- import { Root as _e, Header as Ae, Row as Y, Heading as o, Body as He, Cell as a } from "../../ui/Table/Table.mjs";
50
+ import "../../ui/Progress/Progress.mjs";
51
+ import { Root as K, Item as C, ItemText as N, ItemControl as T, ItemHiddenInput as b, Indicator as X } from "../../ui/SegmentGroup/SegmentGroup.mjs";
52
+ import { Root as I, Trigger as E, ValueText as D, Context as Y, ClearTrigger as ee, Indicator as P, Positioner as z, Content as O, ItemGroup as te, Item as V, ItemText as k, ItemIndicator as B } from "../../ui/Select/Select.mjs";
53
+ import { Root as He, Header as je, Row as re, Heading as o, Body as Fe, Cell as a } from "../../ui/Table/Table.mjs";
49
54
  import "../../ui/Tabs/Tabs.mjs";
50
- import { Empty as Le } from "../Empty/Empty.mjs";
51
- function _t(l) {
52
- var B, M;
53
- const [ne, O] = ve("all"), [n, s] = ye(
54
- (t, i) => ({
55
+ import { Empty as Ge } from "../Empty.mjs";
56
+ function Wt(n) {
57
+ var U, _;
58
+ const [ae, L] = ve("all"), [i, d] = Ce(
59
+ (t, l) => ({
55
60
  ...t,
56
- ...i
61
+ ...l
57
62
  }),
58
63
  {
59
64
  page: 1,
60
65
  pageSize: 10,
61
- type: l.gameTypes[0]
66
+ type: n.gameTypes[0]
62
67
  }
63
- ), d = Ce(), V = w({
64
- items: l.gameProviders,
68
+ ), m = be(), A = $({
69
+ items: n.gameProviders,
65
70
  itemToValue: (t) => t,
66
71
  itemToString: (t) => c(t, {
67
72
  delimiter: c.delimiters.UNDERSCORE
68
73
  })
69
74
  }), {
70
- page: le,
71
- pageSize: oe,
72
- hasNextPage: ae,
73
- hasPrevPage: me,
74
- next: ce,
75
- prev: de,
75
+ page: ce,
76
+ pageSize: me,
77
+ hasNextPage: se,
78
+ hasPrevPage: de,
79
+ next: he,
80
+ prev: ue,
76
81
  rows: S,
77
- setPageSize: se,
78
- totalPages: he,
82
+ setPageSize: pe,
83
+ totalPages: ge,
79
84
  loading: h,
80
85
  firstPage: u
81
- } = re(fe, {
86
+ } = ne(Te, {
82
87
  filter: {
83
- ...n.type && {
88
+ ...i.type && {
84
89
  game__type: {
85
- equal: n.type
90
+ equal: i.type
86
91
  }
87
92
  },
88
- ...n.provider && {
93
+ ...i.provider && {
89
94
  game__provider: {
90
- equal: n.provider
95
+ equal: i.provider
91
96
  }
92
97
  },
93
- ...n.status && {
98
+ ...i.status && {
94
99
  status: {
95
- equal: n.status
100
+ equal: i.status
96
101
  }
97
102
  },
98
- ...n.timestamp && {
103
+ ...i.timestamp && {
99
104
  dateTimeCreated: {
100
- ...n.timestamp.start && {
101
- greaterThanOrEqual: new $(
102
- H(n.timestamp.start),
103
- d.timezone
105
+ ...i.timestamp.start && {
106
+ greaterThanOrEqual: new H(
107
+ F(i.timestamp.start),
108
+ m.timezone
104
109
  ).toISOString()
105
110
  },
106
- ...n.timestamp.end && {
107
- lesserThanOrEqual: new $(
108
- A(n.timestamp.end),
109
- d.timezone
111
+ ...i.timestamp.end && {
112
+ lesserThanOrEqual: new H(
113
+ j(i.timestamp.end),
114
+ m.timezone
110
115
  ).toISOString()
111
116
  }
112
117
  }
113
118
  }
114
119
  }
115
120
  });
116
- return /* @__PURE__ */ r("div", { className: l.className, children: [
117
- /* @__PURE__ */ e("h2", { className: "text-lg font-semibold", children: "Bet Records" }),
118
- /* @__PURE__ */ e("p", { className: "text-gray-600 mt-xs text-xs", children: "View your bet records" }),
119
- /* @__PURE__ */ e("div", { className: "mt-2xl pb-2xl", children: /* @__PURE__ */ r(
120
- Z,
121
+ return /* @__PURE__ */ r("div", { className: Ne("px-4 pb-3xl pt-4", n.className), children: [
122
+ /* @__PURE__ */ e("h2", { className: "text-text-secondary-700 text-sm font-semibold leading-tight", children: "Bet Records" }),
123
+ /* @__PURE__ */ e("p", { className: "text-text-tertiary-600 mt-xs text-sm leading-tight", children: "Review your betting history" }),
124
+ /* @__PURE__ */ e("div", { className: "mt-lg", children: /* @__PURE__ */ r(
125
+ K,
121
126
  {
122
- value: n.type,
127
+ value: i.type,
123
128
  onValueChange: (t) => {
124
- u(), s({
125
- type: T.enum(l.gameTypes ?? []).safeParse(t.value).data ?? null
129
+ u(), d({
130
+ type: x.enum(n.gameTypes ?? []).safeParse(t.value).data ?? null
126
131
  });
127
132
  },
128
133
  children: [
129
- l.gameTypes.map((t) => /* @__PURE__ */ r(v, { value: t, children: [
130
- /* @__PURE__ */ e(y, { children: c(t, {
134
+ n.gameTypes.map((t) => /* @__PURE__ */ r(C, { value: t, children: [
135
+ /* @__PURE__ */ e(N, { children: c(t, {
131
136
  delimiter: c.delimiters.UNDERSCORE
132
137
  }) }),
133
- /* @__PURE__ */ e(f, {}),
134
- /* @__PURE__ */ e(C, {})
138
+ /* @__PURE__ */ e(T, {}),
139
+ /* @__PURE__ */ e(b, {})
135
140
  ] }, t)),
136
- /* @__PURE__ */ e(Q, {})
141
+ /* @__PURE__ */ e(X, {})
137
142
  ]
138
143
  }
139
144
  ) }),
140
- /* @__PURE__ */ r("div", { className: "mt-4xl", children: [
141
- /* @__PURE__ */ r("div", { className: "flex items-center gap-lg", children: [
142
- /* @__PURE__ */ r(
143
- Ie,
144
- {
145
- lazyMount: !0,
146
- unmountOnExit: !0,
147
- value: [(B = n.timestamp) == null ? void 0 : B.start, (M = n.timestamp) == null ? void 0 : M.end].filter(Boolean).map((t) => ge(t)),
148
- onValueChange: (t) => {
149
- var i, m;
150
- u(), s({
151
- timestamp: {
152
- start: (i = t.value.at(0)) == null ? void 0 : i.toDate(te),
153
- end: (m = t.value.at(1)) == null ? void 0 : m.toDate(te)
145
+ /* @__PURE__ */ e("h3", { className: "text-text-secondary-700 mt-3xl text-sm font-semibold", children: "Table" }),
146
+ /* @__PURE__ */ r("div", { className: "mt-xl flex flex-col gap-lg lg:flex-row lg:items-center", children: [
147
+ /* @__PURE__ */ r(
148
+ Ie,
149
+ {
150
+ lazyMount: !0,
151
+ unmountOnExit: !0,
152
+ value: [(U = i.timestamp) == null ? void 0 : U.start, (_ = i.timestamp) == null ? void 0 : _.end].filter(Boolean).map((t) => fe(t)),
153
+ onValueChange: (t) => {
154
+ var l, s;
155
+ u(), d({
156
+ timestamp: {
157
+ start: (l = t.value.at(0)) == null ? void 0 : l.toDate(ie),
158
+ end: (s = t.value.at(1)) == null ? void 0 : s.toDate(ie)
159
+ }
160
+ });
161
+ },
162
+ onOpenChange: (t) => {
163
+ t.open || i.timestamp || L("all");
164
+ },
165
+ selectionMode: "range",
166
+ closeOnSelect: !1,
167
+ positioning: {
168
+ gutter: 20,
169
+ placement: "bottom"
170
+ },
171
+ children: [
172
+ /* @__PURE__ */ r(
173
+ K,
174
+ {
175
+ value: ae,
176
+ onValueChange: (t) => {
177
+ const l = Je.parse(t.value);
178
+ if (l === "today") {
179
+ const s = /* @__PURE__ */ new Date();
180
+ d({
181
+ timestamp: {
182
+ start: F(s),
183
+ end: j(s)
184
+ }
185
+ });
186
+ } else
187
+ d({
188
+ timestamp: null
189
+ });
190
+ u(), L(l);
191
+ },
192
+ className: "w-full lg:w-fit",
193
+ children: [
194
+ /* @__PURE__ */ r(C, { value: "all", className: "w-full lg:w-auto", children: [
195
+ /* @__PURE__ */ e(N, { children: "All" }),
196
+ /* @__PURE__ */ e(T, {}),
197
+ /* @__PURE__ */ e(b, {})
198
+ ] }),
199
+ /* @__PURE__ */ r(C, { value: "today", className: "w-full lg:w-auto", children: [
200
+ /* @__PURE__ */ e(N, { children: "Today" }),
201
+ /* @__PURE__ */ e(T, {}),
202
+ /* @__PURE__ */ e(b, {})
203
+ ] }),
204
+ /* @__PURE__ */ e(W, { children: (t) => /* @__PURE__ */ e(
205
+ C,
206
+ {
207
+ value: "custom",
208
+ onClick: () => t.setOpen(!0),
209
+ className: "w-full lg:w-auto",
210
+ children: /* @__PURE__ */ r(Ee, { children: [
211
+ /* @__PURE__ */ e(N, { children: "Custom" }),
212
+ /* @__PURE__ */ e(T, {}),
213
+ /* @__PURE__ */ e(b, {})
214
+ ] })
215
+ }
216
+ ) }),
217
+ /* @__PURE__ */ e(X, {})
218
+ ]
219
+ }
220
+ ),
221
+ /* @__PURE__ */ e(y, { children: /* @__PURE__ */ e(De, { children: /* @__PURE__ */ e(Pe, { children: /* @__PURE__ */ e(ze, { view: "day", children: /* @__PURE__ */ e(W, { children: (t) => /* @__PURE__ */ r(g, { children: [
222
+ /* @__PURE__ */ r(Oe, { children: [
223
+ /* @__PURE__ */ e(Ve, { children: /* @__PURE__ */ e(G, {}) }),
224
+ /* @__PURE__ */ e(ke, { children: /* @__PURE__ */ e(Be, {}) }),
225
+ /* @__PURE__ */ e(Me, { children: /* @__PURE__ */ e(J, {}) })
226
+ ] }),
227
+ /* @__PURE__ */ r($e, { children: [
228
+ /* @__PURE__ */ e(Le, { children: /* @__PURE__ */ e(Z, { children: t.weekDays.map((l, s) => /* @__PURE__ */ e(Ae, { children: l.short.substring(0, 2) }, s)) }) }),
229
+ /* @__PURE__ */ e(Ue, { children: t.weeks.map((l, s) => /* @__PURE__ */ e(Z, { children: l.map((q, ye) => /* @__PURE__ */ e(_e, { value: q, children: /* @__PURE__ */ e(qe, { children: q.day }) }, ye)) }, s)) })
230
+ ] })
231
+ ] }) }) }) }) }) })
232
+ ]
233
+ }
234
+ ),
235
+ /* @__PURE__ */ e("div", { className: "hidden grow lg:block" }),
236
+ /* @__PURE__ */ r(
237
+ I,
238
+ {
239
+ collection: A,
240
+ value: i.provider ? [i.provider] : [],
241
+ onValueChange: (t) => {
242
+ const l = x.enum(n.gameProviders ?? []).safeParse(t.value.at(0)).data;
243
+ u(), d({
244
+ provider: l ?? null
245
+ });
246
+ },
247
+ lazyMount: !0,
248
+ deselectable: !0,
249
+ positioning: {
250
+ sameWidth: !0
251
+ },
252
+ children: [
253
+ /* @__PURE__ */ r(E, { className: "w-full lg:w-[14rem]", children: [
254
+ /* @__PURE__ */ e(D, { placeholder: "Game Vendor" }),
255
+ /* @__PURE__ */ e(Y, { children: (t) => /* @__PURE__ */ e(g, { children: t.value.length ? /* @__PURE__ */ e(ee, { asChild: !0, children: /* @__PURE__ */ e(
256
+ "span",
257
+ {
258
+ onClick: (l) => {
259
+ l.stopPropagation();
260
+ },
261
+ children: "Clear"
154
262
  }
155
- });
156
- },
157
- onOpenChange: (t) => {
158
- t.open || n.timestamp || O("all");
159
- },
160
- selectionMode: "range",
161
- closeOnSelect: !1,
162
- positioning: {
163
- gutter: 20,
164
- placement: "bottom"
165
- },
166
- children: [
167
- /* @__PURE__ */ r(
168
- Z,
263
+ ) }) : /* @__PURE__ */ e(P, { asChild: !0, children: /* @__PURE__ */ e(R, {}) }) }) })
264
+ ] }),
265
+ /* @__PURE__ */ e(y, { children: /* @__PURE__ */ e(z, { children: /* @__PURE__ */ e(O, { children: /* @__PURE__ */ e(te, { children: A.items.map((t) => /* @__PURE__ */ r(V, { item: t, children: [
266
+ /* @__PURE__ */ e(k, { children: c(t, {
267
+ delimiter: c.delimiters.UNDERSCORE
268
+ }) }),
269
+ /* @__PURE__ */ e(B, { asChild: !0, children: /* @__PURE__ */ e(w, {}) })
270
+ ] }, t)) }) }) }) })
271
+ ]
272
+ }
273
+ ),
274
+ /* @__PURE__ */ r(
275
+ I,
276
+ {
277
+ collection: le,
278
+ value: i.status ? [i.status] : [],
279
+ onValueChange: (t) => {
280
+ const l = x.enum(oe).safeParse(t.value.at(0)).data;
281
+ u(), d({
282
+ status: l ?? null
283
+ });
284
+ },
285
+ lazyMount: !0,
286
+ deselectable: !0,
287
+ positioning: {
288
+ sameWidth: !0
289
+ },
290
+ children: [
291
+ /* @__PURE__ */ r(E, { className: "w-full lg:w-[14rem]", children: [
292
+ /* @__PURE__ */ e(D, { placeholder: "Status" }),
293
+ /* @__PURE__ */ e(Y, { children: (t) => /* @__PURE__ */ e(g, { children: t.value.length ? /* @__PURE__ */ e(ee, { asChild: !0, children: /* @__PURE__ */ e(
294
+ "span",
169
295
  {
170
- value: ne,
171
- onValueChange: (t) => {
172
- const i = Ue.parse(t.value);
173
- if (i === "today") {
174
- const m = /* @__PURE__ */ new Date();
175
- s({
176
- timestamp: {
177
- start: H(m),
178
- end: A(m)
179
- }
180
- });
181
- } else
182
- s({
183
- timestamp: null
184
- });
185
- u(), O(i);
296
+ onClick: (l) => {
297
+ l.stopPropagation();
186
298
  },
187
- children: [
188
- /* @__PURE__ */ r(v, { value: "all", children: [
189
- /* @__PURE__ */ e(y, { children: "All" }),
190
- /* @__PURE__ */ e(f, {}),
191
- /* @__PURE__ */ e(C, {})
192
- ] }),
193
- /* @__PURE__ */ r(v, { value: "today", children: [
194
- /* @__PURE__ */ e(y, { children: "Today" }),
195
- /* @__PURE__ */ e(f, {}),
196
- /* @__PURE__ */ e(C, {})
197
- ] }),
198
- /* @__PURE__ */ e(F, { children: (t) => /* @__PURE__ */ e(
199
- v,
200
- {
201
- value: "custom",
202
- onClick: () => t.setOpen(!0),
203
- children: /* @__PURE__ */ r(be, { children: [
204
- /* @__PURE__ */ e(y, { children: "Custom" }),
205
- /* @__PURE__ */ e(f, {}),
206
- /* @__PURE__ */ e(C, {})
207
- ] })
208
- }
209
- ) }),
210
- /* @__PURE__ */ e(Q, {})
211
- ]
299
+ children: "Clear"
212
300
  }
213
- ),
214
- /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(Ne, { children: /* @__PURE__ */ e(Re, { children: /* @__PURE__ */ e(xe, { view: "day", children: /* @__PURE__ */ e(F, { children: (t) => /* @__PURE__ */ r(pe, { children: [
215
- /* @__PURE__ */ r(De, { children: [
216
- /* @__PURE__ */ e(Ee, { children: /* @__PURE__ */ e(q, {}) }),
217
- /* @__PURE__ */ e(Pe, { children: /* @__PURE__ */ e(ze, {}) }),
218
- /* @__PURE__ */ e(we, { children: /* @__PURE__ */ e(j, {}) })
219
- ] }),
220
- /* @__PURE__ */ r(Oe, { children: [
221
- /* @__PURE__ */ e(Ve, { children: /* @__PURE__ */ e(G, { children: t.weekDays.map((i, m) => /* @__PURE__ */ e(Be, { children: i.short.substring(0, 2) }, m)) }) }),
222
- /* @__PURE__ */ e(Me, { children: t.weeks.map((i, m) => /* @__PURE__ */ e(G, { children: i.map((k, ue) => /* @__PURE__ */ e(ke, { value: k, children: /* @__PURE__ */ e($e, { children: k.day }) }, ue)) }, m)) })
223
- ] })
224
- ] }) }) }) }) }) })
225
- ]
226
- }
227
- ),
228
- /* @__PURE__ */ e("div", { className: "grow" }),
229
- /* @__PURE__ */ r(
230
- b,
231
- {
232
- collection: V,
233
- value: n.provider ? [n.provider] : [],
234
- onValueChange: (t) => {
235
- const i = T.enum(l.gameProviders ?? []).safeParse(t.value.at(0)).data;
236
- u(), s({
237
- provider: i ?? null
238
- });
239
- },
240
- lazyMount: !0,
241
- deselectable: !0,
242
- children: [
243
- /* @__PURE__ */ r(N, { children: [
244
- /* @__PURE__ */ e(R, { placeholder: "Game Vendor" }),
245
- /* @__PURE__ */ e(x, { asChild: !0, children: /* @__PURE__ */ e(I, {}) })
246
- ] }),
247
- /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(D, { children: /* @__PURE__ */ e(E, { children: /* @__PURE__ */ e(K, { children: V.items.map((t) => /* @__PURE__ */ r(P, { item: t, children: [
248
- /* @__PURE__ */ e(W, { children: c(t, {
301
+ ) }) : /* @__PURE__ */ e(P, { asChild: !0, children: /* @__PURE__ */ e(R, {}) }) }) })
302
+ ] }),
303
+ /* @__PURE__ */ e(y, { children: /* @__PURE__ */ e(z, { children: /* @__PURE__ */ e(O, { children: /* @__PURE__ */ e(te, { children: le.items.map((t) => /* @__PURE__ */ r(V, { item: t, children: [
304
+ /* @__PURE__ */ e(k, { children: c(t, {
305
+ delimiter: c.delimiters.UNDERSCORE
306
+ }) }),
307
+ /* @__PURE__ */ e(B, { asChild: !0, children: /* @__PURE__ */ e(w, {}) })
308
+ ] }, t)) }) }) }) })
309
+ ]
310
+ }
311
+ )
312
+ ] }),
313
+ S.length <= 0 && /* @__PURE__ */ e(
314
+ Ge,
315
+ {
316
+ icon: h ? Se : xe,
317
+ title: h ? "Just a moment" : "No data",
318
+ message: h ? "Fetching latest bet records..." : "No data is currently available.",
319
+ className: "mt-5xl"
320
+ }
321
+ ),
322
+ S.length >= 1 && /* @__PURE__ */ r("div", { className: "border-border-primary -ml-4 mt-3xl w-dvw border-y lg:-ml-0 lg:w-full lg:rounded-xl lg:border-x", children: [
323
+ /* @__PURE__ */ e("div", { className: "border-border-primary scrollbar-thumb:bg-bg-quaternary scrollbar-track:bg-transparent scrollbar:h-2 scrollbar-thumb:rounded-full overflow-hidden overflow-x-auto rounded-xl rounded-b-none border-b", children: /* @__PURE__ */ r(He, { className: "border-0", children: [
324
+ /* @__PURE__ */ e(je, { children: /* @__PURE__ */ r(re, { children: [
325
+ /* @__PURE__ */ e(o, { children: "Bet Time" }),
326
+ /* @__PURE__ */ e(o, { children: "Settlement Time" }),
327
+ /* @__PURE__ */ e(o, { children: "Bet Content" }),
328
+ /* @__PURE__ */ e(o, { children: "Odds" }),
329
+ /* @__PURE__ */ e(o, { children: "Bet Amount" }),
330
+ /* @__PURE__ */ e(o, { children: "Valid Bet" }),
331
+ /* @__PURE__ */ e(o, { children: "Settled Amount" }),
332
+ /* @__PURE__ */ e(o, { children: "Jackpot Contribution" }),
333
+ /* @__PURE__ */ e(o, { children: "Jackpot Payout" }),
334
+ /* @__PURE__ */ e(o, { children: "Bet Status" }),
335
+ /* @__PURE__ */ e(o, { children: "Game Name" }),
336
+ /* @__PURE__ */ e(o, { children: "Vendor Round ID" })
337
+ ] }) }),
338
+ /* @__PURE__ */ e(Fe, { children: S.map((t) => {
339
+ var l;
340
+ return /* @__PURE__ */ r(re, { children: [
341
+ /* @__PURE__ */ r(a, { className: "!py-1", children: [
342
+ /* @__PURE__ */ e("div", { className: "leading-tight", children: v(t.dateTimeCreated, "MM/dd/yyyy", {
343
+ in: f(m.timezone)
344
+ }) }),
345
+ /* @__PURE__ */ e("div", { className: "text-text-tertiary-600 leading-tight", children: v(t.dateTimeCreated, "hh:mm a", {
346
+ in: f(m.timezone)
347
+ }) })
348
+ ] }),
349
+ /* @__PURE__ */ e(a, { className: "!py-1", children: !!t.dateTimeSettled && /* @__PURE__ */ r(g, { children: [
350
+ /* @__PURE__ */ e("div", { className: "leading-tight", children: v(t.dateTimeSettled, "MM/dd/yyyy", {
351
+ in: f(m.timezone)
352
+ }) }),
353
+ /* @__PURE__ */ e("div", { className: "text-text-tertiary-600 leading-tight", children: v(t.dateTimeSettled, "hh:mm a", {
354
+ in: f(m.timezone)
355
+ }) })
356
+ ] }) }),
357
+ /* @__PURE__ */ e(a, { className: "!py-1", children: (t == null ? void 0 : t.betContent) || "/" }),
358
+ /* @__PURE__ */ e(a, { className: "!py-1", children: ((l = t.metadata) == null ? void 0 : l.odds) || "/" }),
359
+ /* @__PURE__ */ e(a, { className: "!py-1", children: p(t.bet, {
360
+ currency: m.currency.code,
361
+ minDecimalPlaces: 2
362
+ }) }),
363
+ /* @__PURE__ */ e(a, { className: "!py-1", children: p(t.validBet, {
364
+ currency: m.currency.code,
365
+ minDecimalPlaces: 2
366
+ }) }),
367
+ /* @__PURE__ */ e(a, { className: "!py-1", children: p(t.payout, {
368
+ currency: m.currency.code,
369
+ minDecimalPlaces: 2
370
+ }) }),
371
+ /* @__PURE__ */ e(a, { className: "!py-1", children: p(t.jackpotContribution, {
372
+ currency: m.currency.code,
373
+ minDecimalPlaces: 2
374
+ }) }),
375
+ /* @__PURE__ */ e(a, { className: "!py-1", children: p(t.jackpotPayout, {
376
+ currency: m.currency.code,
377
+ minDecimalPlaces: 2
378
+ }) }),
379
+ /* @__PURE__ */ e(a, { className: "!py-1", children: /* @__PURE__ */ e(
380
+ we,
381
+ {
382
+ colorScheme: t.status === "SETTLED" ? "success" : t.status === "STARTED" ? "blue" : "danger",
383
+ children: /* @__PURE__ */ e(Re, { children: c(t.status, {
249
384
  delimiter: c.delimiters.UNDERSCORE
250
- }) }),
251
- /* @__PURE__ */ e(X, { asChild: !0, children: /* @__PURE__ */ e(U, {}) })
252
- ] }, t)) }) }) }) })
253
- ]
254
- }
255
- ),
256
- /* @__PURE__ */ r(
257
- b,
385
+ }) })
386
+ }
387
+ ) }),
388
+ /* @__PURE__ */ e(a, { className: "!py-1", children: t.game.name }),
389
+ /* @__PURE__ */ e(a, { className: "!py-1", children: t.vendorRoundId })
390
+ ] }, t.id);
391
+ }) })
392
+ ] }) }),
393
+ /* @__PURE__ */ r("div", { className: "flex items-center gap-lg px-4 py-3", children: [
394
+ /* @__PURE__ */ r("p", { className: "text-text-secondary-700 order-2 grow text-center text-sm font-medium lg:order-none lg:grow-0", children: [
395
+ "Page ",
396
+ ce,
397
+ " of ",
398
+ ge
399
+ ] }),
400
+ /* @__PURE__ */ e("div", { className: "hidden grow lg:block" }),
401
+ /* @__PURE__ */ e(
402
+ I,
258
403
  {
259
- collection: ee,
260
- value: n.status ? [n.status] : [],
404
+ size: "sm",
405
+ value: [me.toString()],
261
406
  onValueChange: (t) => {
262
- const i = T.enum(ie).safeParse(t.value.at(0)).data;
263
- u(), s({
264
- status: i ?? null
265
- });
407
+ const l = parseInt(t.value[0]), s = isNaN(l) ? 10 : l;
408
+ pe(s);
266
409
  },
410
+ collection: M,
267
411
  lazyMount: !0,
268
- deselectable: !0,
269
- children: [
270
- /* @__PURE__ */ r(N, { children: [
271
- /* @__PURE__ */ e(R, { placeholder: "Status" }),
272
- /* @__PURE__ */ e(x, { asChild: !0, children: /* @__PURE__ */ e(I, {}) })
273
- ] }),
274
- /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(D, { children: /* @__PURE__ */ e(E, { children: /* @__PURE__ */ e(K, { children: ee.items.map((t) => /* @__PURE__ */ r(P, { item: t, children: [
275
- /* @__PURE__ */ e(W, { children: c(t, {
276
- delimiter: c.delimiters.UNDERSCORE
277
- }) }),
278
- /* @__PURE__ */ e(X, { asChild: !0, children: /* @__PURE__ */ e(U, {}) })
279
- ] }, t)) }) }) }) })
280
- ]
412
+ className: "hidden lg:block",
413
+ positioning: {
414
+ sameWidth: !0
415
+ },
416
+ children: /* @__PURE__ */ r(E, { children: [
417
+ /* @__PURE__ */ e(D, {}),
418
+ /* @__PURE__ */ e(P, { asChild: !0, children: /* @__PURE__ */ e(R, {}) }),
419
+ /* @__PURE__ */ e(y, { children: /* @__PURE__ */ e(z, { children: /* @__PURE__ */ e(O, { children: M.items.map((t) => /* @__PURE__ */ r(V, { item: t, children: [
420
+ /* @__PURE__ */ e(k, { children: M.stringifyItem(t) }),
421
+ /* @__PURE__ */ e(B, { asChild: !0, children: /* @__PURE__ */ e(w, {}) })
422
+ ] }, t)) }) }) })
423
+ ] })
281
424
  }
282
- )
283
- ] }),
284
- S.length <= 0 && /* @__PURE__ */ e(
285
- Le,
286
- {
287
- icon: h ? Se : Te,
288
- title: h ? "Just a moment" : "No data",
289
- message: h ? "Fetching latest bet records..." : "No data is currently available.",
290
- className: "mt-8 lg:mt-16"
291
- }
292
- ),
293
- S.length >= 1 && /* @__PURE__ */ r("div", { className: "border-gray-200 mt-lg rounded-xl border", children: [
294
- /* @__PURE__ */ e("div", { className: "border-gray-200 overflow-hidden overflow-x-auto rounded-xl border-b", children: /* @__PURE__ */ r(_e, { className: "border-0", children: [
295
- /* @__PURE__ */ e(Ae, { children: /* @__PURE__ */ r(Y, { children: [
296
- /* @__PURE__ */ e(o, { children: "Bet Time" }),
297
- /* @__PURE__ */ e(o, { children: "Settlement Time" }),
298
- /* @__PURE__ */ e(o, { children: "Bet Content" }),
299
- /* @__PURE__ */ e(o, { children: "Odds" }),
300
- /* @__PURE__ */ e(o, { children: "Bet Amount" }),
301
- /* @__PURE__ */ e(o, { children: "Valid Bet" }),
302
- /* @__PURE__ */ e(o, { children: "Settled Amount" }),
303
- /* @__PURE__ */ e(o, { children: "Jackpot Contribution" }),
304
- /* @__PURE__ */ e(o, { children: "Jackpot Payout" }),
305
- /* @__PURE__ */ e(o, { children: "Bet Status" }),
306
- /* @__PURE__ */ e(o, { children: "Game Name" }),
307
- /* @__PURE__ */ e(o, { children: "Vendor Round ID" })
308
- ] }) }),
309
- /* @__PURE__ */ e(He, { children: S.map((t) => {
310
- var i;
311
- return /* @__PURE__ */ r(Y, { children: [
312
- /* @__PURE__ */ e(a, { children: L(t.dateTimeCreated, "yyyy MMM dd hh:mma", {
313
- in: _(d.timezone)
314
- }) }),
315
- /* @__PURE__ */ e(a, { children: !!t.dateTimeSettled && L(t.dateTimeSettled, "yyyy MMM dd hh:mma", {
316
- in: _(d.timezone)
317
- }) }),
318
- /* @__PURE__ */ e(a, { children: t == null ? void 0 : t.betContent }),
319
- /* @__PURE__ */ e(a, { children: (i = t.metadata) == null ? void 0 : i.odds }),
320
- /* @__PURE__ */ e(a, { children: g(t.bet, {
321
- currency: d.currency.code,
322
- minDecimalPlaces: 2
323
- }) }),
324
- /* @__PURE__ */ e(a, { children: t.validBet }),
325
- /* @__PURE__ */ e(a, { children: g(t.payout, {
326
- currency: d.currency.code,
327
- minDecimalPlaces: 2
328
- }) }),
329
- /* @__PURE__ */ e(a, { children: g(t.jackpotContribution, {
330
- currency: d.currency.code,
331
- minDecimalPlaces: 2
332
- }) }),
333
- /* @__PURE__ */ e(a, { children: g(t.jackpotPayout, {
334
- currency: d.currency.code,
335
- minDecimalPlaces: 2
336
- }) }),
337
- /* @__PURE__ */ e(a, { children: t.status }),
338
- /* @__PURE__ */ e(a, { children: t.game.name }),
339
- /* @__PURE__ */ e(a, { children: t.vendorRoundId })
340
- ] }, t.id);
341
- }) })
342
- ] }) }),
343
- /* @__PURE__ */ r("div", { className: "flex items-center gap-lg px-4 py-3", children: [
344
- /* @__PURE__ */ r("p", { children: [
345
- "Page ",
346
- le,
347
- " of ",
348
- he
349
- ] }),
350
- /* @__PURE__ */ e("div", { className: "grow" }),
425
+ ),
426
+ /* @__PURE__ */ r("div", { className: "contents lg:flex", children: [
351
427
  /* @__PURE__ */ e(
352
- b,
428
+ Q,
353
429
  {
354
430
  size: "sm",
355
- value: [oe.toString()],
356
- onValueChange: (t) => {
357
- const i = parseInt(t.value[0]), m = isNaN(i) ? 10 : i;
358
- se(m);
359
- },
360
- collection: z,
361
- lazyMount: !0,
362
- children: /* @__PURE__ */ r(N, { children: [
363
- /* @__PURE__ */ e(R, {}),
364
- /* @__PURE__ */ e(x, { asChild: !0, children: /* @__PURE__ */ e(I, {}) }),
365
- /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(D, { children: /* @__PURE__ */ e(E, { children: z.items.map((t) => /* @__PURE__ */ e(P, { item: t, children: z.stringifyItem(t) }, t)) }) }) })
366
- ] })
431
+ variant: "outline",
432
+ colorScheme: "gray",
433
+ className: "order-1 lg:order-none lg:rounded-r-none lg:border-r-0",
434
+ disabled: !de || h,
435
+ onClick: () => ue(),
436
+ children: /* @__PURE__ */ e(G, { className: "size-5" })
367
437
  }
368
438
  ),
369
- /* @__PURE__ */ r("div", { children: [
370
- /* @__PURE__ */ e(
371
- J,
372
- {
373
- size: "sm",
374
- variant: "outline",
375
- colorScheme: "gray",
376
- className: "rounded-r-none border-r-0",
377
- disabled: !me || h,
378
- onClick: () => de(),
379
- children: /* @__PURE__ */ e(q, { className: "size-5" })
380
- }
381
- ),
382
- /* @__PURE__ */ e(
383
- J,
384
- {
385
- size: "sm",
386
- variant: "outline",
387
- colorScheme: "gray",
388
- className: "rounded-l-none",
389
- disabled: !ae || h,
390
- onClick: () => ce(),
391
- children: /* @__PURE__ */ e(j, { className: "size-5" })
392
- }
393
- )
394
- ] })
439
+ /* @__PURE__ */ e(
440
+ Q,
441
+ {
442
+ size: "sm",
443
+ variant: "outline",
444
+ colorScheme: "gray",
445
+ className: "order-3 lg:order-none lg:rounded-l-none",
446
+ disabled: !se || h,
447
+ onClick: () => he(),
448
+ children: /* @__PURE__ */ e(J, { className: "size-5" })
449
+ }
450
+ )
395
451
  ] })
396
452
  ] })
397
453
  ] })
398
454
  ] });
399
455
  }
400
- const ie = [
456
+ const oe = [
401
457
  "CANCELLED",
402
458
  "SETTLED",
403
459
  "STARTED"
404
- ], z = w({
405
- items: re.config.pageSizes,
406
- itemToValue: (l) => l.toString(),
407
- itemToString: (l) => `${l} items per page`
408
- }), ee = w({
409
- items: ie,
410
- itemToValue: (l) => l,
411
- itemToString: (l) => c(l, {
460
+ ], M = $({
461
+ items: ne.config.pageSizes,
462
+ itemToValue: (n) => n.toString(),
463
+ itemToString: (n) => `${n} items per page`
464
+ }), le = $({
465
+ items: oe,
466
+ itemToValue: (n) => n,
467
+ itemToString: (n) => c(n, {
412
468
  delimiter: c.delimiters.UNDERSCORE
413
469
  })
414
- }), Ue = T.enum(["all", "today", "custom"]), te = Intl.DateTimeFormat().resolvedOptions().timeZone;
470
+ }), Je = x.enum(["all", "today", "custom"]), ie = Intl.DateTimeFormat().resolvedOptions().timeZone;
415
471
  export {
416
- _t as BetRecords
472
+ Wt as BetRecords
417
473
  };