@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,5 +1,6 @@
1
1
  "use client";
2
2
  import { jsxs as r, jsx as t } from "react/jsx-runtime";
3
+ import { twMerge as a } from "tailwind-merge";
3
4
  import "../../ui/AlertDialog/AlertDialog.mjs";
4
5
  import "../../ui/Avatar/Avatar.mjs";
5
6
  import "../../ui/Badge/Badge.mjs";
@@ -13,48 +14,52 @@ import "../../utils/isMobile.mjs";
13
14
  import "../../ui/Button/button.recipe.mjs";
14
15
  import "../../ui/Checkbox/Checkbox.mjs";
15
16
  import "../../ui/Clipboard/Clipboard.mjs";
17
+ import "../../ui/Collapsible/Collapsible.mjs";
18
+ import "../../ui/Combobox/Combobox.mjs";
16
19
  import "../../ui/DatePicker/DatePicker.mjs";
17
20
  import "../../ui/Dialog/Dialog.mjs";
18
21
  import "../../ui/Drawer/Drawer.mjs";
19
22
  import "../../ui/Field/Field.mjs";
20
23
  import "../../ui/IconButton/iconButton.recipe.mjs";
21
24
  import "../../ui/NumberInput/NumberInput.mjs";
25
+ import "../../ui/PasswordInput/PasswordInput.mjs";
22
26
  import "../../ui/PinInput/PinInput.mjs";
23
27
  import "../../ui/Popover/Popover.mjs";
24
- import "tailwind-merge";
28
+ import "../../ui/Progress/Progress.mjs";
25
29
  import "../../ui/SegmentGroup/SegmentGroup.mjs";
26
30
  import "../../ui/Select/Select.mjs";
27
31
  import "../../ui/Table/Table.mjs";
28
- import { Root as e, List as s, Trigger as i, Indicator as m, Content as o } from "../../ui/Tabs/Tabs.mjs";
29
- import { DepositRecordsTable as l } from "./DepositRecordsTable.mjs";
30
- import { TransactionRecordsTable as n } from "./TransactionRecordsTable.mjs";
32
+ import { Root as m, List as s, Trigger as i, Indicator as l, Content as o } from "../../ui/Tabs/Tabs.mjs";
33
+ import { DepositRecordsTable as n } from "./DepositRecordsTable.mjs";
34
+ import { TransactionRecordsTable as p } from "./TransactionRecordsTable.mjs";
31
35
  import { WithdrawalRecordsTable as c } from "./WithdrawalRecordsTable.mjs";
32
- function G(a) {
33
- return /* @__PURE__ */ r("div", { className: a.className, children: [
34
- /* @__PURE__ */ t("h2", { className: "text-lg font-semibold", children: "Transaction Records" }),
35
- /* @__PURE__ */ t("p", { className: "text-gray-600 mt-xs text-xs", children: "View your transaction records" }),
36
+ function Q(e) {
37
+ return /* @__PURE__ */ r("div", { className: a("px-4 pb-3xl pt-4", e.className), children: [
38
+ /* @__PURE__ */ t("h2", { className: "text-text-secondary-700 text-sm font-semibold leading-tight", children: "Transaction Records" }),
39
+ /* @__PURE__ */ t("p", { className: "text-text-tertiary-600 mt-xs text-sm leading-tight", children: "View your transaction records" }),
36
40
  /* @__PURE__ */ r(
37
- e,
41
+ m,
38
42
  {
39
- className: "mt-2xl",
43
+ className: "mt-lg",
40
44
  defaultValue: "transactions",
41
45
  lazyMount: !0,
42
46
  unmountOnExit: !0,
43
47
  children: [
44
- /* @__PURE__ */ t("div", { className: "pb-2xl", children: /* @__PURE__ */ r(s, { children: [
48
+ /* @__PURE__ */ r(s, { children: [
45
49
  /* @__PURE__ */ t(i, { value: "transactions", children: "Transactions" }),
46
50
  /* @__PURE__ */ t(i, { value: "deposits", children: "Deposits" }),
47
51
  /* @__PURE__ */ t(i, { value: "withdrawals", children: "Withdrawals" }),
48
- /* @__PURE__ */ t(m, {})
49
- ] }) }),
50
- /* @__PURE__ */ t(o, { value: "transactions", className: "mt-4xl", children: /* @__PURE__ */ t(n, {}) }),
51
- /* @__PURE__ */ t(o, { value: "deposits", className: "mt-4xl", children: /* @__PURE__ */ t(l, {}) }),
52
- /* @__PURE__ */ t(o, { value: "withdrawals", className: "mt-4xl", children: /* @__PURE__ */ t(c, {}) })
52
+ /* @__PURE__ */ t(l, {})
53
+ ] }),
54
+ /* @__PURE__ */ t("h3", { className: "text-text-secondary-700 mt-3xl text-sm font-semibold", children: "Table" }),
55
+ /* @__PURE__ */ t(o, { value: "transactions", className: "mt-xl", children: /* @__PURE__ */ t(p, {}) }),
56
+ /* @__PURE__ */ t(o, { value: "deposits", className: "mt-xl", children: /* @__PURE__ */ t(n, {}) }),
57
+ /* @__PURE__ */ t(o, { value: "withdrawals", className: "mt-xl", children: /* @__PURE__ */ t(c, {}) })
53
58
  ]
54
59
  }
55
60
  )
56
61
  ] });
57
62
  }
58
63
  export {
59
- G as TransactionRecords
64
+ Q as TransactionRecords
60
65
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),g=require("@ark-ui/react"),a=require("@date-fns/tz"),l=require("date-fns"),z=require("react");require("@opexa/portal-sdk-core");require("@tanstack/react-query");require("tiny-invariant");require("../../constants/index.js");const m=require("../../utils/capitalize.js"),h=require("../../utils/formatNumber.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");require("../../utils/parseDecimal.js");require("lodash-es");require("@opexa/portal-sdk-core/object-id");require("../../client/hooks/useGlobalStore.js");const x=require("../../client/hooks/useInfiniteQueryHelper.js"),R=require("../../client/hooks/useLocaleInfo.js");require("usehooks-ts");const P=require("../../client/hooks/useTransactionRecordsQuery.js"),w=require("../../icons/ChevronDownIcon.js"),H=require("../../icons/ChevronLeftIcon.js"),D=require("../../icons/ChevronRightIcon.js"),O=require("../../icons/File02Icon.js"),F=require("../../icons/SpinnerIcon.js");require("../../ui/AlertDialog/AlertDialog.js");require("../../ui/Avatar/Avatar.js");require("../../ui/Badge/Badge.js");require("../../ui/Button/button.recipe.js");require("../../ui/Checkbox/Checkbox.js");require("../../ui/Clipboard/Clipboard.js");require("../../ui/DatePicker/DatePicker.js");require("../../ui/Dialog/Dialog.js");require("../../ui/Drawer/Drawer.js");require("../../ui/Field/Field.js");const q=require("../../ui/IconButton/IconButton.js");require("../../ui/NumberInput/NumberInput.js");require("../../ui/PinInput/PinInput.js");require("../../ui/Popover/Popover.js");require("tailwind-merge");require("../../ui/SegmentGroup/SegmentGroup.js");const s=require("../../ui/Select/Select.js"),r=require("../../ui/Table/Table.js");require("../../ui/Tabs/Tabs.js");const M=require("../Empty/Empty.js"),B=require("./TableFilters.js");function E(){const[i,j]=z.useState(),t=R.useLocaleInfo(),{page:p,pageSize:y,hasNextPage:f,hasPrevPage:C,next:I,prev:T,rows:c,setPageSize:v,totalPages:b,loading:o,firstPage:N}=x.useInfiniteQueryHelper(P.useTransactionRecordsQuery,{filter:{...i&&{dateTimeCreated:{...i.start&&{greaterThanOrEqual:new a.TZDateMini(l.startOfDay(i.start),t.timezone).toISOString()},...i.end&&{lesserThanOrEqual:new a.TZDateMini(l.endOfDay(i.end),t.timezone).toISOString()}}}}});return e.jsxs(e.Fragment,{children:[e.jsx(B.TableFilters,{value:{timestamp:i},onChange:n=>{j(n.timestamp),N()}}),c.length<=0&&e.jsx(M.Empty,{icon:o?F.SpinnerIcon:O.File02Icon,title:o?"Just a moment":"No data",message:o?"Fetching latest transaction records...":"No data is currently available.",className:"mt-8 lg:mt-16"}),c.length>=1&&e.jsxs("div",{className:"border-gray-200 mt-lg rounded-xl border",children:[e.jsx("div",{className:"border-gray-200 overflow-hidden overflow-x-auto rounded-xl border-b",children:e.jsxs(r.Root,{className:"border-0",children:[e.jsx(r.Header,{children:e.jsxs(r.Row,{children:[e.jsx(r.Heading,{children:"Transaction Type"}),e.jsx(r.Heading,{children:"Transaction Time"}),e.jsx(r.Heading,{children:"Amount"}),e.jsx(r.Heading,{children:"Current Balance"}),e.jsx(r.Heading,{children:"Reference Number"}),e.jsx(r.Heading,{children:"Content"})]})}),e.jsx(r.Body,{children:c.map(n=>e.jsxs(r.Row,{children:[e.jsx(r.Cell,{children:m.capitalize(n.type,{delimiter:m.capitalize.delimiters.UNDERSCORE})}),e.jsx(r.Cell,{children:l.format(n.dateTimeCreated,"yyyy MMM dd hh:mma",{in:a.tz(t.timezone)})}),e.jsx(r.Cell,{children:h.formatNumber(n.amount,{currency:t.currency.code,minDecimalPlaces:2})}),e.jsx(r.Cell,{children:h.formatNumber(n.currentBalance,{currency:t.currency.code,minDecimalPlaces:2})}),e.jsx(r.Cell,{children:n.referenceNumber}),e.jsx(r.Cell,{children:n.content})]},n.id))})]})}),e.jsxs("div",{className:"flex items-center gap-lg px-4 py-3",children:[e.jsxs("p",{children:["Page ",p," of ",b]}),e.jsx("div",{className:"grow"}),e.jsx(s.Root,{size:"sm",value:[y.toString()],onValueChange:n=>{const d=parseInt(n.value[0]),S=isNaN(d)?10:d;v(S)},collection:u,lazyMount:!0,children:e.jsxs(s.Trigger,{children:[e.jsx(s.ValueText,{}),e.jsx(s.Indicator,{asChild:!0,children:e.jsx(w.ChevronDownIcon,{})}),e.jsx(g.Portal,{children:e.jsx(s.Positioner,{children:e.jsx(s.Content,{children:u.items.map(n=>e.jsx(s.Item,{item:n,children:u.stringifyItem(n)},n))})})})]})}),e.jsxs("div",{children:[e.jsx(q.IconButton,{size:"sm",variant:"outline",colorScheme:"gray",className:"rounded-r-none border-r-0",disabled:!C||o,onClick:()=>T(),children:e.jsx(H.ChevronLeftIcon,{className:"size-5"})}),e.jsx(q.IconButton,{size:"sm",variant:"outline",colorScheme:"gray",className:"rounded-l-none",disabled:!f||o,onClick:()=>I(),children:e.jsx(D.ChevronRightIcon,{className:"size-5"})})]})]})]})]})}const u=g.createListCollection({items:x.useInfiniteQueryHelper.config.pageSizes,itemToValue:i=>i.toString(),itemToString:i=>`${i} items per page`});exports.TransactionRecordsTable=E;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),x=require("@ark-ui/react"),l=require("@date-fns/tz"),a=require("date-fns"),S=require("react");require("@opexa/portal-sdk-core");require("@tanstack/react-query");require("tiny-invariant");require("../../constants/index.js");const m=require("../../utils/capitalize.js"),h=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("lodash-es");require("@opexa/portal-sdk-core/object-id");require("../../client/hooks/useGlobalStore.js");const q=require("../../client/hooks/useInfiniteQueryHelper.js"),w=require("../../client/hooks/useLocaleInfo.js");require("usehooks-ts");const R=require("../../client/hooks/useTransactionRecordsQuery.js"),P=require("../../icons/CheckIcon.js"),H=require("../../icons/ChevronDownIcon.js"),D=require("../../icons/ChevronLeftIcon.js"),F=require("../../icons/ChevronRightIcon.js"),O=require("../../icons/File02Icon.js"),k=require("../../icons/SpinnerIcon.js");require("../../ui/AlertDialog/AlertDialog.js");require("../../ui/Avatar/Avatar.js");require("../../ui/Badge/Badge.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");require("../../ui/Dialog/Dialog.js");require("../../ui/Drawer/Drawer.js");require("../../ui/Field/Field.js");const g=require("../../ui/IconButton/IconButton.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");const t=require("../../ui/Select/Select.js"),r=require("../../ui/Table/Table.js");require("../../ui/Tabs/Tabs.js");const B=require("../Empty.js"),E=require("./TableFilters.js");function M(){const[i,j]=S.useState(),s=w.useLocaleInfo(),{page:p,pageSize:y,hasNextPage:b,hasPrevPage:N,next:f,prev:I,rows:c,setPageSize:C,totalPages:T,loading:o,firstPage:v}=q.useInfiniteQueryHelper(R.useTransactionRecordsQuery,{filter:{...i&&{dateTimeCreated:{...i.start&&{greaterThanOrEqual:new l.TZDateMini(a.startOfDay(i.start),s.timezone).toISOString()},...i.end&&{lesserThanOrEqual:new l.TZDateMini(a.endOfDay(i.end),s.timezone).toISOString()}}}}});return e.jsxs(e.Fragment,{children:[e.jsx(E.TableFilters,{value:{timestamp:i},onChange:n=>{j(n.timestamp),v()},enabledFilters:{transactionType:!0}}),c.length<=0&&e.jsx(B.Empty,{icon:o?k.SpinnerIcon:O.File02Icon,title:o?"Just a moment":"No data",message:o?"Fetching latest transaction records...":"No data is currently available.",className:"mt-5xl"}),c.length>=1&&e.jsxs("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:[e.jsx("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:e.jsxs(r.Root,{className:"border-0",children:[e.jsx(r.Header,{children:e.jsxs(r.Row,{children:[e.jsx(r.Heading,{children:"Transaction Type"}),e.jsx(r.Heading,{children:"Transaction Time"}),e.jsx(r.Heading,{children:"Amount"}),e.jsx(r.Heading,{children:"Current Balance"}),e.jsx(r.Heading,{children:"Reference Number"}),e.jsx(r.Heading,{children:"Content"})]})}),e.jsx(r.Body,{children:c.map(n=>e.jsxs(r.Row,{children:[e.jsx(r.Cell,{className:"!py-1",children:m.capitalize(n.type,{delimiter:m.capitalize.delimiters.UNDERSCORE})}),e.jsxs(r.Cell,{className:"!py-1",children:[e.jsx("div",{className:"leading-tight",children:a.format(n.dateTimeCreated,"MM/dd/yyyy",{in:l.tz(s.timezone)})}),e.jsx("div",{className:"text-text-tertiary-600 leading-tight",children:a.format(n.dateTimeCreated,"hh:mm a",{in:l.tz(s.timezone)})})]}),e.jsx(r.Cell,{className:"!py-1",children:h.formatNumber(n.amount,{currency:s.currency.code,minDecimalPlaces:2})}),e.jsx(r.Cell,{className:"!py-1",children:h.formatNumber(n.currentBalance,{currency:s.currency.code,minDecimalPlaces:2})}),e.jsx(r.Cell,{className:"!py-1",children:n.referenceNumber}),e.jsx(r.Cell,{className:"!py-1",children:n.content||"/"})]},n.id))})]})}),e.jsxs("div",{className:"flex items-center gap-lg px-4 py-3",children:[e.jsxs("p",{className:"text-text-secondary-700 order-2 grow text-center text-sm font-medium lg:order-none lg:grow-0",children:["Page ",p," of ",T]}),e.jsx("div",{className:"hidden grow lg:block"}),e.jsx(t.Root,{size:"sm",value:[y.toString()],onValueChange:n=>{const d=parseInt(n.value[0]),z=isNaN(d)?10:d;C(z)},collection:u,lazyMount:!0,className:"hidden lg:block",positioning:{sameWidth:!0},children:e.jsxs(t.Trigger,{children:[e.jsx(t.ValueText,{}),e.jsx(t.Indicator,{asChild:!0,children:e.jsx(H.ChevronDownIcon,{})}),e.jsx(x.Portal,{children:e.jsx(t.Positioner,{children:e.jsx(t.Content,{children:u.items.map(n=>e.jsxs(t.Item,{item:n,children:[e.jsx(t.ItemText,{children:u.stringifyItem(n)}),e.jsx(t.ItemIndicator,{asChild:!0,children:e.jsx(P.CheckIcon,{})})]},n))})})})]})}),e.jsxs("div",{className:"contents lg:flex",children:[e.jsx(g.IconButton,{size:"sm",variant:"outline",colorScheme:"gray",className:"order-1 lg:order-none lg:rounded-r-none lg:border-r-0",disabled:!N||o,onClick:()=>I(),children:e.jsx(D.ChevronLeftIcon,{className:"size-5"})}),e.jsx(g.IconButton,{size:"sm",variant:"outline",colorScheme:"gray",className:"order-3 lg:order-none lg:rounded-l-none",disabled:!b||o,onClick:()=>f(),children:e.jsx(F.ChevronRightIcon,{className:"size-5"})})]})]})]})]})}const u=x.createListCollection({items:q.useInfiniteQueryHelper.config.pageSizes,itemToValue:i=>i.toString(),itemToString:i=>`${i} items per page`});exports.TransactionRecordsTable=M;
@@ -1,183 +1,204 @@
1
- import { jsxs as i, Fragment as R, jsx as e } from "react/jsx-runtime";
2
- import { createListCollection as w, Portal as D } from "@ark-ui/react";
3
- import { TZDateMini as d, tz as O } from "@date-fns/tz";
4
- import { endOfDay as E, startOfDay as M, format as B } from "date-fns";
5
- import { useState as F } from "react";
1
+ import { jsxs as o, Fragment as D, jsx as e } from "react/jsx-runtime";
2
+ import { createListCollection as O, Portal as k } from "@ark-ui/react";
3
+ import { TZDateMini as d, tz as p } from "@date-fns/tz";
4
+ import { endOfDay as E, startOfDay as F, format as h } from "date-fns";
5
+ import { useState as B } from "react";
6
6
  import "@opexa/portal-sdk-core";
7
7
  import "@tanstack/react-query";
8
8
  import "tiny-invariant";
9
9
  import "../../constants/index.mjs";
10
- import { capitalize as p } from "../../utils/capitalize.mjs";
11
- import { formatNumber as h } from "../../utils/formatNumber.mjs";
10
+ import { capitalize as g } from "../../utils/capitalize.mjs";
11
+ import { formatNumber as u } from "../../utils/formatNumber.mjs";
12
12
  import "../../utils/getLocaleInfo.mjs";
13
13
  import "../../utils/getQueryClient.mjs";
14
14
  import "../../utils/isMobile.mjs";
15
15
  import "../../utils/parseDecimal.mjs";
16
+ import "../../client/services/getSession.mjs";
16
17
  import "lodash-es";
17
18
  import "@opexa/portal-sdk-core/object-id";
18
19
  import "../../client/hooks/useGlobalStore.mjs";
19
- import { useInfiniteQueryHelper as f } from "../../client/hooks/useInfiniteQueryHelper.mjs";
20
- import { useLocaleInfo as H } from "../../client/hooks/useLocaleInfo.mjs";
20
+ import { useInfiniteQueryHelper as b } from "../../client/hooks/useInfiniteQueryHelper.mjs";
21
+ import { useLocaleInfo as M } from "../../client/hooks/useLocaleInfo.mjs";
21
22
  import "usehooks-ts";
22
- import { useTransactionRecordsQuery as L } from "../../client/hooks/useTransactionRecordsQuery.mjs";
23
- import { ChevronDownIcon as V } from "../../icons/ChevronDownIcon.mjs";
24
- import { ChevronLeftIcon as j } from "../../icons/ChevronLeftIcon.mjs";
25
- import { ChevronRightIcon as k } from "../../icons/ChevronRightIcon.mjs";
26
- import { File02Icon as q } from "../../icons/File02Icon.mjs";
27
- import { SpinnerIcon as Q } from "../../icons/SpinnerIcon.mjs";
23
+ import { useTransactionRecordsQuery as q } from "../../client/hooks/useTransactionRecordsQuery.mjs";
24
+ import { CheckIcon as H } from "../../icons/CheckIcon.mjs";
25
+ import { ChevronDownIcon as L } from "../../icons/ChevronDownIcon.mjs";
26
+ import { ChevronLeftIcon as V } from "../../icons/ChevronLeftIcon.mjs";
27
+ import { ChevronRightIcon as j } from "../../icons/ChevronRightIcon.mjs";
28
+ import { File02Icon as Q } from "../../icons/File02Icon.mjs";
29
+ import { SpinnerIcon as $ } from "../../icons/SpinnerIcon.mjs";
28
30
  import "../../ui/AlertDialog/AlertDialog.mjs";
29
31
  import "../../ui/Avatar/Avatar.mjs";
30
32
  import "../../ui/Badge/Badge.mjs";
31
33
  import "../../ui/Button/button.recipe.mjs";
32
34
  import "../../ui/Checkbox/Checkbox.mjs";
33
35
  import "../../ui/Clipboard/Clipboard.mjs";
36
+ import "../../ui/Collapsible/Collapsible.mjs";
37
+ import "../../ui/Combobox/Combobox.mjs";
34
38
  import "../../ui/DatePicker/DatePicker.mjs";
35
39
  import "../../ui/Dialog/Dialog.mjs";
36
40
  import "../../ui/Drawer/Drawer.mjs";
37
41
  import "../../ui/Field/Field.mjs";
38
- import { IconButton as g } from "../../ui/IconButton/IconButton.mjs";
42
+ import { IconButton as f } from "../../ui/IconButton/IconButton.mjs";
39
43
  import "../../ui/NumberInput/NumberInput.mjs";
44
+ import "../../ui/PasswordInput/PasswordInput.mjs";
40
45
  import "../../ui/PinInput/PinInput.mjs";
41
46
  import "../../ui/Popover/Popover.mjs";
42
47
  import "tailwind-merge";
48
+ import "../../ui/Progress/Progress.mjs";
43
49
  import "../../ui/SegmentGroup/SegmentGroup.mjs";
44
- import { Root as $, Trigger as A, ValueText as J, Indicator as U, Positioner as Z, Content as G, Item as K } from "../../ui/Select/Select.mjs";
45
- import { Root as W, Header as X, Row as u, Heading as t, Body as Y, Cell as n } from "../../ui/Table/Table.mjs";
50
+ import { Root as A, Trigger as J, ValueText as U, Indicator as W, Positioner as Z, Content as G, Item as K, ItemText as X, ItemIndicator as Y } from "../../ui/Select/Select.mjs";
51
+ import { Root as _, Header as ee, Row as y, Heading as n, Body as re, Cell as l } from "../../ui/Table/Table.mjs";
46
52
  import "../../ui/Tabs/Tabs.mjs";
47
- import { Empty as _ } from "../Empty/Empty.mjs";
48
- import { TableFilters as ee } from "./TableFilters.mjs";
49
- function Ke() {
50
- const [o, y] = F(), m = H(), {
53
+ import { Empty as oe } from "../Empty.mjs";
54
+ import { TableFilters as te } from "./TableFilters.mjs";
55
+ function ir() {
56
+ const [t, N] = B(), i = M(), {
51
57
  page: v,
52
- pageSize: N,
58
+ pageSize: x,
53
59
  hasNextPage: T,
54
60
  hasPrevPage: C,
55
- next: S,
56
- prev: b,
57
- rows: l,
58
- setPageSize: z,
59
- totalPages: I,
60
- loading: a,
61
- firstPage: x
62
- } = f(L, {
61
+ next: I,
62
+ prev: z,
63
+ rows: a,
64
+ setPageSize: S,
65
+ totalPages: w,
66
+ loading: m,
67
+ firstPage: P
68
+ } = b(q, {
63
69
  filter: {
64
- ...o && {
70
+ ...t && {
65
71
  dateTimeCreated: {
66
- ...o.start && {
72
+ ...t.start && {
67
73
  greaterThanOrEqual: new d(
68
- M(o.start),
69
- m.timezone
74
+ F(t.start),
75
+ i.timezone
70
76
  ).toISOString()
71
77
  },
72
- ...o.end && {
78
+ ...t.end && {
73
79
  lesserThanOrEqual: new d(
74
- E(o.end),
75
- m.timezone
80
+ E(t.end),
81
+ i.timezone
76
82
  ).toISOString()
77
83
  }
78
84
  }
79
85
  }
80
86
  }
81
87
  });
82
- return /* @__PURE__ */ i(R, { children: [
88
+ return /* @__PURE__ */ o(D, { children: [
83
89
  /* @__PURE__ */ e(
84
- ee,
90
+ te,
85
91
  {
86
92
  value: {
87
- timestamp: o
93
+ timestamp: t
88
94
  },
89
95
  onChange: (r) => {
90
- y(r.timestamp), x();
96
+ N(r.timestamp), P();
97
+ },
98
+ enabledFilters: {
99
+ transactionType: !0
91
100
  }
92
101
  }
93
102
  ),
94
- l.length <= 0 && /* @__PURE__ */ e(
95
- _,
103
+ a.length <= 0 && /* @__PURE__ */ e(
104
+ oe,
96
105
  {
97
- icon: a ? Q : q,
98
- title: a ? "Just a moment" : "No data",
99
- message: a ? "Fetching latest transaction records..." : "No data is currently available.",
100
- className: "mt-8 lg:mt-16"
106
+ icon: m ? $ : Q,
107
+ title: m ? "Just a moment" : "No data",
108
+ message: m ? "Fetching latest transaction records..." : "No data is currently available.",
109
+ className: "mt-5xl"
101
110
  }
102
111
  ),
103
- l.length >= 1 && /* @__PURE__ */ i("div", { className: "border-gray-200 mt-lg rounded-xl border", children: [
104
- /* @__PURE__ */ e("div", { className: "border-gray-200 overflow-hidden overflow-x-auto rounded-xl border-b", children: /* @__PURE__ */ i(W, { className: "border-0", children: [
105
- /* @__PURE__ */ e(X, { children: /* @__PURE__ */ i(u, { children: [
106
- /* @__PURE__ */ e(t, { children: "Transaction Type" }),
107
- /* @__PURE__ */ e(t, { children: "Transaction Time" }),
108
- /* @__PURE__ */ e(t, { children: "Amount" }),
109
- /* @__PURE__ */ e(t, { children: "Current Balance" }),
110
- /* @__PURE__ */ e(t, { children: "Reference Number" }),
111
- /* @__PURE__ */ e(t, { children: "Content" })
112
+ a.length >= 1 && /* @__PURE__ */ o("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: [
113
+ /* @__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__ */ o(_, { className: "border-0", children: [
114
+ /* @__PURE__ */ e(ee, { children: /* @__PURE__ */ o(y, { children: [
115
+ /* @__PURE__ */ e(n, { children: "Transaction Type" }),
116
+ /* @__PURE__ */ e(n, { children: "Transaction Time" }),
117
+ /* @__PURE__ */ e(n, { children: "Amount" }),
118
+ /* @__PURE__ */ e(n, { children: "Current Balance" }),
119
+ /* @__PURE__ */ e(n, { children: "Reference Number" }),
120
+ /* @__PURE__ */ e(n, { children: "Content" })
112
121
  ] }) }),
113
- /* @__PURE__ */ e(Y, { children: l.map((r) => /* @__PURE__ */ i(u, { children: [
114
- /* @__PURE__ */ e(n, { children: p(r.type, {
115
- delimiter: p.delimiters.UNDERSCORE
116
- }) }),
117
- /* @__PURE__ */ e(n, { children: B(r.dateTimeCreated, "yyyy MMM dd hh:mma", {
118
- in: O(m.timezone)
122
+ /* @__PURE__ */ e(re, { children: a.map((r) => /* @__PURE__ */ o(y, { children: [
123
+ /* @__PURE__ */ e(l, { className: "!py-1", children: g(r.type, {
124
+ delimiter: g.delimiters.UNDERSCORE
119
125
  }) }),
120
- /* @__PURE__ */ e(n, { children: h(r.amount, {
121
- currency: m.currency.code,
126
+ /* @__PURE__ */ o(l, { className: "!py-1", children: [
127
+ /* @__PURE__ */ e("div", { className: "leading-tight", children: h(r.dateTimeCreated, "MM/dd/yyyy", {
128
+ in: p(i.timezone)
129
+ }) }),
130
+ /* @__PURE__ */ e("div", { className: "text-text-tertiary-600 leading-tight", children: h(r.dateTimeCreated, "hh:mm a", {
131
+ in: p(i.timezone)
132
+ }) })
133
+ ] }),
134
+ /* @__PURE__ */ e(l, { className: "!py-1", children: u(r.amount, {
135
+ currency: i.currency.code,
122
136
  minDecimalPlaces: 2
123
137
  }) }),
124
- /* @__PURE__ */ e(n, { children: h(r.currentBalance, {
125
- currency: m.currency.code,
138
+ /* @__PURE__ */ e(l, { className: "!py-1", children: u(r.currentBalance, {
139
+ currency: i.currency.code,
126
140
  minDecimalPlaces: 2
127
141
  }) }),
128
- /* @__PURE__ */ e(n, { children: r.referenceNumber }),
129
- /* @__PURE__ */ e(n, { children: r.content })
142
+ /* @__PURE__ */ e(l, { className: "!py-1", children: r.referenceNumber }),
143
+ /* @__PURE__ */ e(l, { className: "!py-1", children: r.content || "/" })
130
144
  ] }, r.id)) })
131
145
  ] }) }),
132
- /* @__PURE__ */ i("div", { className: "flex items-center gap-lg px-4 py-3", children: [
133
- /* @__PURE__ */ i("p", { children: [
146
+ /* @__PURE__ */ o("div", { className: "flex items-center gap-lg px-4 py-3", children: [
147
+ /* @__PURE__ */ o("p", { className: "text-text-secondary-700 order-2 grow text-center text-sm font-medium lg:order-none lg:grow-0", children: [
134
148
  "Page ",
135
149
  v,
136
150
  " of ",
137
- I
151
+ w
138
152
  ] }),
139
- /* @__PURE__ */ e("div", { className: "grow" }),
153
+ /* @__PURE__ */ e("div", { className: "hidden grow lg:block" }),
140
154
  /* @__PURE__ */ e(
141
- $,
155
+ A,
142
156
  {
143
157
  size: "sm",
144
- value: [N.toString()],
158
+ value: [x.toString()],
145
159
  onValueChange: (r) => {
146
- const s = parseInt(r.value[0]), P = isNaN(s) ? 10 : s;
147
- z(P);
160
+ const s = parseInt(r.value[0]), R = isNaN(s) ? 10 : s;
161
+ S(R);
148
162
  },
149
163
  collection: c,
150
164
  lazyMount: !0,
151
- children: /* @__PURE__ */ i(A, { children: [
152
- /* @__PURE__ */ e(J, {}),
153
- /* @__PURE__ */ e(U, { asChild: !0, children: /* @__PURE__ */ e(V, {}) }),
154
- /* @__PURE__ */ e(D, { children: /* @__PURE__ */ e(Z, { children: /* @__PURE__ */ e(G, { children: c.items.map((r) => /* @__PURE__ */ e(K, { item: r, children: c.stringifyItem(r) }, r)) }) }) })
165
+ className: "hidden lg:block",
166
+ positioning: {
167
+ sameWidth: !0
168
+ },
169
+ children: /* @__PURE__ */ o(J, { children: [
170
+ /* @__PURE__ */ e(U, {}),
171
+ /* @__PURE__ */ e(W, { asChild: !0, children: /* @__PURE__ */ e(L, {}) }),
172
+ /* @__PURE__ */ e(k, { children: /* @__PURE__ */ e(Z, { children: /* @__PURE__ */ e(G, { children: c.items.map((r) => /* @__PURE__ */ o(K, { item: r, children: [
173
+ /* @__PURE__ */ e(X, { children: c.stringifyItem(r) }),
174
+ /* @__PURE__ */ e(Y, { asChild: !0, children: /* @__PURE__ */ e(H, {}) })
175
+ ] }, r)) }) }) })
155
176
  ] })
156
177
  }
157
178
  ),
158
- /* @__PURE__ */ i("div", { children: [
179
+ /* @__PURE__ */ o("div", { className: "contents lg:flex", children: [
159
180
  /* @__PURE__ */ e(
160
- g,
181
+ f,
161
182
  {
162
183
  size: "sm",
163
184
  variant: "outline",
164
185
  colorScheme: "gray",
165
- className: "rounded-r-none border-r-0",
166
- disabled: !C || a,
167
- onClick: () => b(),
168
- children: /* @__PURE__ */ e(j, { className: "size-5" })
186
+ className: "order-1 lg:order-none lg:rounded-r-none lg:border-r-0",
187
+ disabled: !C || m,
188
+ onClick: () => z(),
189
+ children: /* @__PURE__ */ e(V, { className: "size-5" })
169
190
  }
170
191
  ),
171
192
  /* @__PURE__ */ e(
172
- g,
193
+ f,
173
194
  {
174
195
  size: "sm",
175
196
  variant: "outline",
176
197
  colorScheme: "gray",
177
- className: "rounded-l-none",
178
- disabled: !T || a,
179
- onClick: () => S(),
180
- children: /* @__PURE__ */ e(k, { className: "size-5" })
198
+ className: "order-3 lg:order-none lg:rounded-l-none",
199
+ disabled: !T || m,
200
+ onClick: () => I(),
201
+ children: /* @__PURE__ */ e(j, { className: "size-5" })
181
202
  }
182
203
  )
183
204
  ] })
@@ -185,11 +206,11 @@ function Ke() {
185
206
  ] })
186
207
  ] });
187
208
  }
188
- const c = w({
189
- items: f.config.pageSizes,
190
- itemToValue: (o) => o.toString(),
191
- itemToString: (o) => `${o} items per page`
209
+ const c = O({
210
+ items: b.config.pageSizes,
211
+ itemToValue: (t) => t.toString(),
212
+ itemToString: (t) => `${t} items per page`
192
213
  });
193
214
  export {
194
- Ke as TransactionRecordsTable
215
+ ir as TransactionRecordsTable
195
216
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),p=require("@ark-ui/react"),u=require("@date-fns/tz"),d=require("date-fns"),g=require("react");require("@opexa/portal-sdk-core");require("@tanstack/react-query");require("tiny-invariant");require("../../constants/index.js");const a=require("../../utils/capitalize.js"),h=require("../../utils/formatNumber.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");require("../../utils/parseDecimal.js");require("lodash-es");require("@opexa/portal-sdk-core/object-id");require("../../client/hooks/useGlobalStore.js");const y=require("../../client/hooks/useInfiniteQueryHelper.js"),E=require("../../client/hooks/useLocaleInfo.js");require("usehooks-ts");const H=require("../../client/hooks/useWithdrawalRecordsQuery.js"),P=require("../../icons/ChevronDownIcon.js"),F=require("../../icons/ChevronLeftIcon.js"),M=require("../../icons/ChevronRightIcon.js"),L=require("../../icons/File02Icon.js"),O=require("../../icons/SpinnerIcon.js");require("../../ui/AlertDialog/AlertDialog.js");require("../../ui/Avatar/Avatar.js");const j=require("../../ui/Badge/Badge.js");require("../../ui/Button/button.recipe.js");require("../../ui/Checkbox/Checkbox.js");require("../../ui/Clipboard/Clipboard.js");require("../../ui/DatePicker/DatePicker.js");require("../../ui/Dialog/Dialog.js");require("../../ui/Drawer/Drawer.js");require("../../ui/Field/Field.js");const q=require("../../ui/IconButton/IconButton.js");require("../../ui/NumberInput/NumberInput.js");require("../../ui/PinInput/PinInput.js");require("../../ui/Popover/Popover.js");require("tailwind-merge");require("../../ui/SegmentGroup/SegmentGroup.js");const t=require("../../ui/Select/Select.js"),r=require("../../ui/Table/Table.js");require("../../ui/Tabs/Tabs.js");const W=require("../Empty/Empty.js"),B=require("./TableFilters.js");function A(){const[n,C]=g.useState(),[c,b]=g.useState(),s=E.useLocaleInfo(),{page:w,pageSize:N,hasNextPage:f,hasPrevPage:S,next:I,prev:v,rows:o,setPageSize:z,totalPages:T,loading:l,firstPage:R}=y.useInfiniteQueryHelper(H.useWithdrawalRecordsQuery,{filter:{...c&&{status:{equal:c}},...n&&{dateTimeCreated:{...n.start&&{greaterThanOrEqual:new u.TZDateMini(d.startOfDay(n.start),s.timezone).toISOString()},...n.end&&{lesserThanOrEqual:new u.TZDateMini(d.endOfDay(n.end),s.timezone).toISOString()}}}}});return e.jsxs(e.Fragment,{children:[e.jsx(B.TableFilters,{enabledFilters:{withdrawalStatus:!0},value:{timestamp:n,withdrawalStatus:c},onChange:i=>{R(),C(i.timestamp),b(i.withdrawalStatus)}}),o.length<=0&&e.jsx(W.Empty,{icon:l?O.SpinnerIcon:L.File02Icon,title:l?"Just a moment":"No data",message:l?"Fetching latest withdrawal records...":"No data is currently available.",className:"mt-8 lg:mt-16"}),o.length>=1&&e.jsxs("div",{className:"border-gray-200 mt-lg rounded-xl border",children:[e.jsx("div",{className:"border-gray-200 overflow-hidden overflow-x-auto rounded-xl border-b",children:e.jsxs(r.Root,{className:"border-0",children:[e.jsx(r.Header,{children:e.jsxs(r.Row,{children:[e.jsx(r.Heading,{children:"Withdrawal No."}),e.jsx(r.Heading,{children:"Reference"}),e.jsx(r.Heading,{children:"Withdrawal Method"}),e.jsx(r.Heading,{children:"Mobile Number"}),e.jsx(r.Heading,{children:"Withdrawal Amount"}),e.jsx(r.Heading,{children:"Net Amount"}),e.jsx(r.Heading,{children:"Transaction Fee"}),e.jsx(r.Heading,{children:"Bank Name"}),e.jsx(r.Heading,{children:"Withdrawal Time"}),e.jsx(r.Heading,{children:"Status"})]})}),e.jsx(r.Body,{children:o.map(i=>e.jsxs(r.Row,{children:[e.jsx(r.Cell,{children:i.withdrawalNumber}),e.jsx(r.Cell,{children:i.reference}),e.jsx(r.Cell,{children:a.capitalize(i.type,{delimiter:a.capitalize.delimiters.UNDERSCORE})}),e.jsx(r.Cell,{children:i.recipientMobileNumber}),e.jsx(r.Cell,{children:h.formatNumber(i.amount,{currency:s.currency.code,minDecimalPlaces:2})}),e.jsx(r.Cell,{children:h.formatNumber(i.netAmount,{currency:s.currency.code,minDecimalPlaces:2})}),e.jsx(r.Cell,{children:h.formatNumber(i.fee,{currency:s.currency.code,minDecimalPlaces:2})}),e.jsx(r.Cell,{children:i.bank}),e.jsx(r.Cell,{children:d.format(i.dateTimeCreated,"yyyy MMM dd hh:mma",{in:u.tz(s.timezone)})}),e.jsx(r.Cell,{children:e.jsx(j.Root,{variant:"subtle",colorScheme:i.status==="FAILED"||i.status==="REJECTED"||i.status==="CANCELLED"?"danger":i.status==="PENDING"?"warning":"success",children:e.jsx(j.Label,{children:a.capitalize(i.status,{delimiter:a.capitalize.delimiters.UNDERSCORE})})})})]},i.id))})]})}),e.jsxs("div",{className:"flex items-center gap-lg px-4 py-3",children:[e.jsxs("p",{children:["Page ",w," of ",T]}),e.jsx("div",{className:"grow"}),e.jsx(t.Root,{size:"sm",value:[N.toString()],onValueChange:i=>{const x=parseInt(i.value[0]),D=isNaN(x)?10:x;z(D)},collection:m,lazyMount:!0,children:e.jsxs(t.Trigger,{children:[e.jsx(t.ValueText,{}),e.jsx(t.Indicator,{asChild:!0,children:e.jsx(P.ChevronDownIcon,{})}),e.jsx(p.Portal,{children:e.jsx(t.Positioner,{children:e.jsx(t.Content,{children:m.items.map(i=>e.jsx(t.Item,{item:i,children:m.stringifyItem(i)},i))})})})]})}),e.jsxs("div",{children:[e.jsx(q.IconButton,{size:"sm",variant:"outline",colorScheme:"gray",className:"rounded-r-none border-r-0",disabled:!S||l,onClick:()=>v(),children:e.jsx(F.ChevronLeftIcon,{className:"size-5"})}),e.jsx(q.IconButton,{size:"sm",variant:"outline",colorScheme:"gray",className:"rounded-l-none",disabled:!f||l,onClick:()=>I(),children:e.jsx(M.ChevronRightIcon,{className:"size-5"})})]})]})]})]})}const m=p.createListCollection({items:y.useInfiniteQueryHelper.config.pageSizes,itemToValue:n=>n.toString(),itemToString:n=>`${n} items per page`});exports.WithdrawalRecordsTable=A;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),p=require("@ark-ui/react"),a=require("@date-fns/tz"),c=require("date-fns"),x=require("react");require("@opexa/portal-sdk-core");require("@tanstack/react-query");require("tiny-invariant");require("../../constants/index.js");const o=require("../../utils/capitalize.js"),m=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("lodash-es");require("@opexa/portal-sdk-core/object-id");require("../../client/hooks/useGlobalStore.js");const b=require("../../client/hooks/useInfiniteQueryHelper.js"),E=require("../../client/hooks/useLocaleInfo.js");require("usehooks-ts");const H=require("../../client/hooks/useWithdrawalRecordsQuery.js"),P=require("../../icons/CheckIcon.js"),F=require("../../icons/ChevronDownIcon.js"),W=require("../../icons/ChevronLeftIcon.js"),k=require("../../icons/ChevronRightIcon.js"),L=require("../../icons/File02Icon.js"),M=require("../../icons/SpinnerIcon.js");require("../../ui/AlertDialog/AlertDialog.js");require("../../ui/Avatar/Avatar.js");const q=require("../../ui/Badge/Badge.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");require("../../ui/Dialog/Dialog.js");require("../../ui/Drawer/Drawer.js");require("../../ui/Field/Field.js");const j=require("../../ui/IconButton/IconButton.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");const n=require("../../ui/Select/Select.js"),i=require("../../ui/Table/Table.js");require("../../ui/Tabs/Tabs.js");const O=require("../Empty.js"),B=require("./TableFilters.js");function A(){const[s,y]=x.useState(),[d,N]=x.useState(),t=E.useLocaleInfo(),{page:w,pageSize:C,hasNextPage:f,hasPrevPage:I,next:S,prev:v,rows:u,setPageSize:z,totalPages:T,loading:l,firstPage:R}=b.useInfiniteQueryHelper(H.useWithdrawalRecordsQuery,{filter:{...d&&{status:{equal:d}},...s&&{dateTimeCreated:{...s.start&&{greaterThanOrEqual:new a.TZDateMini(c.startOfDay(s.start),t.timezone).toISOString()},...s.end&&{lesserThanOrEqual:new a.TZDateMini(c.endOfDay(s.end),t.timezone).toISOString()}}}}});return e.jsxs(e.Fragment,{children:[e.jsx(B.TableFilters,{enabledFilters:{withdrawalStatus:!0},value:{timestamp:s,withdrawalStatus:d},onChange:r=>{R(),y(r.timestamp),N(r.withdrawalStatus)}}),u.length<=0&&e.jsx(O.Empty,{icon:l?M.SpinnerIcon:L.File02Icon,title:l?"Just a moment":"No data",message:l?"Fetching latest withdrawal records...":"No data is currently available.",className:"mt-5xl"}),u.length>=1&&e.jsxs("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:[e.jsx("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:e.jsxs(i.Root,{className:"border-0",children:[e.jsx(i.Header,{children:e.jsxs(i.Row,{children:[e.jsx(i.Heading,{children:"Withdrawal No."}),e.jsx(i.Heading,{children:"Reference"}),e.jsx(i.Heading,{children:"Withdrawal Method"}),e.jsx(i.Heading,{children:"Mobile Number"}),e.jsx(i.Heading,{children:"Withdrawal Amount"}),e.jsx(i.Heading,{children:"Net Amount"}),e.jsx(i.Heading,{children:"Transaction Fee"}),e.jsx(i.Heading,{children:"Bank Name"}),e.jsx(i.Heading,{children:"Withdrawal Time"}),e.jsx(i.Heading,{children:"Status"})]})}),e.jsx(i.Body,{children:u.map(r=>e.jsxs(i.Row,{children:[e.jsx(i.Cell,{className:"!py-1",children:r.withdrawalNumber}),e.jsx(i.Cell,{className:"!py-1",children:r.reference}),e.jsx(i.Cell,{className:"!py-1",children:o.capitalize(r.type,{delimiter:o.capitalize.delimiters.UNDERSCORE})}),e.jsx(i.Cell,{className:"!py-1",children:r.recipientMobileNumber}),e.jsx(i.Cell,{className:"!py-1",children:m.formatNumber(r.amount,{currency:t.currency.code,minDecimalPlaces:2})}),e.jsx(i.Cell,{className:"!py-1",children:m.formatNumber(r.netAmount,{currency:t.currency.code,minDecimalPlaces:2})}),e.jsx(i.Cell,{className:"!py-1",children:m.formatNumber(r.fee,{currency:t.currency.code,minDecimalPlaces:2})}),e.jsx(i.Cell,{className:"!py-1",children:r.bank}),e.jsxs(i.Cell,{className:"!py-1",children:[e.jsx("div",{className:"leading-tight",children:c.format(r.dateTimeCreated,"MM/dd/yyyy",{in:a.tz(t.timezone)})}),e.jsx("div",{className:"text-text-tertiary-600 leading-tight",children:c.format(r.dateTimeCreated,"hh:mm a",{in:a.tz(t.timezone)})})]}),e.jsx(i.Cell,{className:"!py-1",children:e.jsx(q.Root,{variant:"subtle",colorScheme:r.status==="FAILED"||r.status==="REJECTED"||r.status==="CANCELLED"?"danger":r.status==="PENDING"?"warning":"success",children:e.jsx(q.Label,{children:o.capitalize(r.status,{delimiter:o.capitalize.delimiters.UNDERSCORE})})})})]},r.id))})]})}),e.jsxs("div",{className:"flex items-center gap-lg px-4 py-3",children:[e.jsxs("p",{className:"text-text-secondary-700 order-2 grow text-center text-sm font-medium lg:order-none lg:grow-0",children:["Page ",w," of ",T]}),e.jsx("div",{className:"hidden grow lg:block"}),e.jsx(n.Root,{size:"sm",value:[C.toString()],onValueChange:r=>{const g=parseInt(r.value[0]),D=isNaN(g)?10:g;z(D)},collection:h,lazyMount:!0,className:"hidden lg:block",positioning:{sameWidth:!0},children:e.jsxs(n.Trigger,{children:[e.jsx(n.ValueText,{}),e.jsx(n.Indicator,{asChild:!0,children:e.jsx(F.ChevronDownIcon,{})}),e.jsx(p.Portal,{children:e.jsx(n.Positioner,{children:e.jsx(n.Content,{children:h.items.map(r=>e.jsxs(n.Item,{item:r,children:[e.jsx(n.ItemText,{children:h.stringifyItem(r)}),e.jsx(n.ItemIndicator,{asChild:!0,children:e.jsx(P.CheckIcon,{})})]},r))})})})]})}),e.jsxs("div",{className:"contents lg:flex",children:[e.jsx(j.IconButton,{size:"sm",variant:"outline",colorScheme:"gray",className:"order-1 lg:order-none lg:rounded-r-none lg:border-r-0",disabled:!I||l,onClick:()=>v(),children:e.jsx(W.ChevronLeftIcon,{className:"size-5"})}),e.jsx(j.IconButton,{size:"sm",variant:"outline",colorScheme:"gray",className:"order-3 lg:order-none lg:rounded-l-none",disabled:!f||l,onClick:()=>S(),children:e.jsx(k.ChevronRightIcon,{className:"size-5"})})]})]})]})]})}const h=p.createListCollection({items:b.useInfiniteQueryHelper.config.pageSizes,itemToValue:s=>s.toString(),itemToString:s=>`${s} items per page`});exports.WithdrawalRecordsTable=A;