@opexa/portal-components 0.0.7 → 0.0.9

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 (339) hide show
  1. package/dist/_virtual/jsx-runtime.js +1 -1
  2. package/dist/_virtual/jsx-runtime.mjs +3 -2
  3. package/dist/_virtual/jsx-runtime2.js +1 -0
  4. package/dist/_virtual/jsx-runtime2.mjs +4 -0
  5. package/dist/components/Account/Account.js +1 -1
  6. package/dist/components/Account/Account.mjs +159 -117
  7. package/dist/components/Banner/Banner.js +1 -1
  8. package/dist/components/Banner/Banner.mjs +49 -45
  9. package/dist/components/BetRecords/BetRecords.js +1 -1
  10. package/dist/components/BetRecords/BetRecords.mjs +344 -232
  11. package/dist/components/DepositWithdrawal/AmountChoices.js +1 -1
  12. package/dist/components/DepositWithdrawal/AmountChoices.mjs +20 -19
  13. package/dist/components/DepositWithdrawal/AvailablePromos.js +1 -1
  14. package/dist/components/DepositWithdrawal/AvailablePromos.mjs +98 -80
  15. package/dist/components/DepositWithdrawal/Deposit/Deposit.js +1 -1
  16. package/dist/components/DepositWithdrawal/Deposit/Deposit.mjs +38 -27
  17. package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.js +1 -1
  18. package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.mjs +189 -148
  19. package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.js +1 -1
  20. package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.mjs +181 -140
  21. package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/SessionExpired.js +1 -1
  22. package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/SessionExpired.mjs +9 -4
  23. package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.js +1 -1
  24. package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.mjs +187 -146
  25. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDeposit.js +1 -1
  26. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDeposit.mjs +16 -10
  27. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.js +1 -1
  28. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.mjs +198 -151
  29. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositLoading.js +1 -1
  30. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositLoading.mjs +9 -4
  31. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositSuccess.js +1 -1
  32. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositSuccess.mjs +9 -4
  33. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.js +1 -1
  34. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.mjs +65 -29
  35. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.js +1 -1
  36. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.mjs +8 -7
  37. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDeposit.js +1 -1
  38. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDeposit.mjs +14 -8
  39. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.js +1 -1
  40. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.mjs +179 -141
  41. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositLoading.js +1 -1
  42. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositLoading.mjs +9 -4
  43. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.js +1 -1
  44. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.mjs +103 -55
  45. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.js +1 -1
  46. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.mjs +22 -16
  47. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.js +1 -1
  48. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.mjs +7 -6
  49. package/dist/components/DepositWithdrawal/DepositWithdrawal.js +1 -1
  50. package/dist/components/DepositWithdrawal/DepositWithdrawal.mjs +87 -59
  51. package/dist/components/DepositWithdrawal/PaymentMethods.js +1 -1
  52. package/dist/components/DepositWithdrawal/PaymentMethods.mjs +57 -51
  53. package/dist/components/Disclaimer/Disclaimer.js +1 -1
  54. package/dist/components/Disclaimer/Disclaimer.mjs +77 -58
  55. package/dist/components/Empty/CloudIcon.js +1 -1
  56. package/dist/components/Empty/CloudIcon.mjs +189 -168
  57. package/dist/components/Empty/Empty.js +1 -1
  58. package/dist/components/Empty/Empty.mjs +13 -4
  59. package/dist/components/FeatureFlagProvider/FeatureFlagContext.d.ts +4 -1
  60. package/dist/components/FeatureFlagProvider/FeatureFlagContext.js +1 -1
  61. package/dist/components/FeatureFlagProvider/FeatureFlagContext.mjs +8 -7
  62. package/dist/components/FeatureFlagProvider/FeatureFlagProvider.js +1 -1
  63. package/dist/components/FeatureFlagProvider/FeatureFlagProvider.mjs +33 -27
  64. package/dist/components/GameLaunch/GameLaunch.js +1 -1
  65. package/dist/components/GameLaunch/GameLaunch.mjs +216 -170
  66. package/dist/components/GameLaunch/GameLaunchTrigger.js +1 -1
  67. package/dist/components/GameLaunch/GameLaunchTrigger.mjs +20 -19
  68. package/dist/components/Games/Games.js +1 -1
  69. package/dist/components/Games/Games.mjs +102 -84
  70. package/dist/components/JackpotCounter/JackpotCounter.js +1 -1
  71. package/dist/components/JackpotCounter/JackpotCounter.mjs +80 -63
  72. package/dist/components/JackpotCounter/JackpotCounterItem.js +1 -1
  73. package/dist/components/JackpotCounter/JackpotCounterItem.mjs +144 -114
  74. package/dist/components/Marquee/Marquee.js +1 -1
  75. package/dist/components/Marquee/Marquee.mjs +19 -10
  76. package/dist/components/PortalProvider/PortalProvider.js +1 -1
  77. package/dist/components/PortalProvider/PortalProvider.mjs +53 -46
  78. package/dist/components/Promos/PromoCarousel.js +1 -1
  79. package/dist/components/Promos/PromoCarousel.mjs +93 -76
  80. package/dist/components/Promos/PromoGrid.js +1 -1
  81. package/dist/components/Promos/PromoGrid.mjs +37 -29
  82. package/dist/components/Promos/PromoItem.js +1 -1
  83. package/dist/components/Promos/PromoItem.mjs +51 -44
  84. package/dist/components/Promos/Promos.js +1 -1
  85. package/dist/components/Promos/Promos.mjs +5 -4
  86. package/dist/components/Protected/Protected.js +1 -1
  87. package/dist/components/Protected/Protected.mjs +3 -2
  88. package/dist/components/SignIn/SignIn.js +1 -1
  89. package/dist/components/SignIn/SignIn.mjs +49 -36
  90. package/dist/components/SignIn/SignInForm.js +1 -1
  91. package/dist/components/SignIn/SignInForm.mjs +261 -198
  92. package/dist/components/SignUp/SignUp.js +1 -1
  93. package/dist/components/SignUp/SignUp.mjs +51 -38
  94. package/dist/components/SignUp/SignUpForm.js +1 -1
  95. package/dist/components/SignUp/SignUpForm.mjs +240 -189
  96. package/dist/components/TopWins/TopWins.js +1 -1
  97. package/dist/components/TopWins/TopWins.mjs +39 -29
  98. package/dist/components/TournamentCounter/TournamentCounter.js +1 -1
  99. package/dist/components/TournamentCounter/TournamentCounter.mjs +72 -57
  100. package/dist/components/TournamentCounter/TournamentCounterItem.js +1 -1
  101. package/dist/components/TournamentCounter/TournamentCounterItem.mjs +92 -66
  102. package/dist/components/TransactionRecords/DepositRecordsTable.js +1 -1
  103. package/dist/components/TransactionRecords/DepositRecordsTable.mjs +163 -115
  104. package/dist/components/TransactionRecords/TableFilters.js +1 -1
  105. package/dist/components/TransactionRecords/TableFilters.mjs +252 -186
  106. package/dist/components/TransactionRecords/TransactionRecords.js +1 -1
  107. package/dist/components/TransactionRecords/TransactionRecords.mjs +31 -19
  108. package/dist/components/TransactionRecords/TransactionRecordsTable.js +1 -1
  109. package/dist/components/TransactionRecords/TransactionRecordsTable.mjs +143 -101
  110. package/dist/components/TransactionRecords/WithdrawalRecordsTable.js +1 -1
  111. package/dist/components/TransactionRecords/WithdrawalRecordsTable.mjs +164 -114
  112. package/dist/components.d.ts +2 -0
  113. package/dist/hooks/useAccountQuery.js +1 -1
  114. package/dist/hooks/useAccountQuery.mjs +8 -7
  115. package/dist/hooks/useAuthenticateMutation.js +1 -1
  116. package/dist/hooks/useAuthenticateMutation.mjs +6 -5
  117. package/dist/hooks/useAvailablePromosQuery.js +1 -1
  118. package/dist/hooks/useAvailablePromosQuery.mjs +3 -2
  119. package/dist/hooks/useBetRecordsQuery.js +1 -1
  120. package/dist/hooks/useBetRecordsQuery.mjs +3 -2
  121. package/dist/hooks/useCashbacksQuery.js +1 -1
  122. package/dist/hooks/useCashbacksQuery.mjs +3 -2
  123. package/dist/hooks/useCreateGCashDepositMutation.js +1 -1
  124. package/dist/hooks/useCreateGCashDepositMutation.mjs +10 -9
  125. package/dist/hooks/useCreateGameSessionMutation.js +1 -1
  126. package/dist/hooks/useCreateGameSessionMutation.mjs +8 -7
  127. package/dist/hooks/useCreateMayaAppDepositMutation.js +1 -1
  128. package/dist/hooks/useCreateMayaAppDepositMutation.mjs +9 -8
  129. package/dist/hooks/useCreateMayaDepositMutation.js +1 -1
  130. package/dist/hooks/useCreateMayaDepositMutation.mjs +10 -9
  131. package/dist/hooks/useCreateOnlineBankDepositMutation.js +1 -1
  132. package/dist/hooks/useCreateOnlineBankDepositMutation.mjs +4 -3
  133. package/dist/hooks/useCreateQRPHDepositMutation.js +1 -1
  134. package/dist/hooks/useCreateQRPHDepositMutation.mjs +4 -3
  135. package/dist/hooks/useDepositQuery.js +1 -1
  136. package/dist/hooks/useDepositQuery.mjs +7 -6
  137. package/dist/hooks/useDepositRecordsQuery.js +1 -1
  138. package/dist/hooks/useDepositRecordsQuery.mjs +10 -9
  139. package/dist/hooks/useDepositsCountQuery.js +1 -1
  140. package/dist/hooks/useDepositsCountQuery.mjs +3 -2
  141. package/dist/hooks/useEndGameSessionMutation.js +1 -1
  142. package/dist/hooks/useEndGameSessionMutation.mjs +3 -2
  143. package/dist/hooks/useGamesQuery.js +1 -1
  144. package/dist/hooks/useGamesQuery.mjs +3 -2
  145. package/dist/hooks/useInstapayBankListQuery.js +1 -1
  146. package/dist/hooks/useInstapayBankListQuery.mjs +10 -9
  147. package/dist/hooks/useIsMayaSessionValidQuery.js +1 -1
  148. package/dist/hooks/useIsMayaSessionValidQuery.mjs +3 -2
  149. package/dist/hooks/useJackpotsQuery.js +1 -1
  150. package/dist/hooks/useJackpotsQuery.mjs +6 -5
  151. package/dist/hooks/useLocaleInfo.js +1 -1
  152. package/dist/hooks/useLocaleInfo.mjs +3 -2
  153. package/dist/hooks/useMemberVerificationQuery.js +1 -1
  154. package/dist/hooks/useMemberVerificationQuery.mjs +7 -6
  155. package/dist/hooks/usePaymentSettingsQuery.js +1 -1
  156. package/dist/hooks/usePaymentSettingsQuery.mjs +7 -6
  157. package/dist/hooks/usePlatformQuery.js +1 -1
  158. package/dist/hooks/usePlatformQuery.mjs +3 -2
  159. package/dist/hooks/usePromoQuery.js +1 -1
  160. package/dist/hooks/usePromoQuery.mjs +3 -2
  161. package/dist/hooks/usePromosQuery.js +1 -1
  162. package/dist/hooks/usePromosQuery.mjs +3 -2
  163. package/dist/hooks/useSendVerificationCodeMutation.js +1 -1
  164. package/dist/hooks/useSendVerificationCodeMutation.mjs +3 -2
  165. package/dist/hooks/useSessionQuery.js +1 -1
  166. package/dist/hooks/useSessionQuery.mjs +3 -2
  167. package/dist/hooks/useSignInMutation.js +1 -1
  168. package/dist/hooks/useSignInMutation.mjs +3 -2
  169. package/dist/hooks/useSignOutMutation.js +1 -1
  170. package/dist/hooks/useSignOutMutation.mjs +3 -2
  171. package/dist/hooks/useSignUpMutation.js +1 -1
  172. package/dist/hooks/useSignUpMutation.mjs +3 -2
  173. package/dist/hooks/useSiteQuery.js +1 -1
  174. package/dist/hooks/useSiteQuery.mjs +3 -2
  175. package/dist/hooks/useTopWinsQuery.js +1 -1
  176. package/dist/hooks/useTopWinsQuery.mjs +3 -2
  177. package/dist/hooks/useTournamentsQuery.js +1 -1
  178. package/dist/hooks/useTournamentsQuery.mjs +6 -5
  179. package/dist/hooks/useTransactionRecordsQuery.js +1 -1
  180. package/dist/hooks/useTransactionRecordsQuery.mjs +3 -2
  181. package/dist/hooks/useWalletQuery.js +1 -1
  182. package/dist/hooks/useWalletQuery.mjs +3 -2
  183. package/dist/hooks/useWithdrawalRecordsQuery.js +1 -1
  184. package/dist/hooks/useWithdrawalRecordsQuery.mjs +9 -8
  185. package/dist/hooks.d.ts +2 -0
  186. package/dist/icons/AlertCircleIcon.js +1 -1
  187. package/dist/icons/AlertCircleIcon.mjs +7 -6
  188. package/dist/icons/AlertTriangle.js +1 -1
  189. package/dist/icons/AlertTriangle.mjs +7 -6
  190. package/dist/icons/ArrowLeftIcon.js +1 -1
  191. package/dist/icons/ArrowLeftIcon.mjs +7 -6
  192. package/dist/icons/ArrowNarrowUpRightIcon.js +1 -1
  193. package/dist/icons/ArrowNarrowUpRightIcon.mjs +7 -6
  194. package/dist/icons/ArrowRightIcon.js +1 -1
  195. package/dist/icons/ArrowRightIcon.mjs +7 -6
  196. package/dist/icons/Award02Icon.js +1 -1
  197. package/dist/icons/Award02Icon.mjs +7 -6
  198. package/dist/icons/BankIcon.js +1 -1
  199. package/dist/icons/BankIcon.mjs +7 -6
  200. package/dist/icons/CheckCircleBrokenIcon.js +1 -1
  201. package/dist/icons/CheckCircleBrokenIcon.mjs +6 -5
  202. package/dist/icons/CheckIcon.js +1 -1
  203. package/dist/icons/CheckIcon.mjs +7 -6
  204. package/dist/icons/ChevronDownIcon.js +1 -1
  205. package/dist/icons/ChevronDownIcon.mjs +6 -5
  206. package/dist/icons/ChevronLeftIcon.js +1 -1
  207. package/dist/icons/ChevronLeftIcon.mjs +7 -6
  208. package/dist/icons/ChevronRightIcon.js +1 -1
  209. package/dist/icons/ChevronRightIcon.mjs +7 -6
  210. package/dist/icons/ChevronUpIcon.js +1 -1
  211. package/dist/icons/ChevronUpIcon.mjs +7 -6
  212. package/dist/icons/Expand03Icon.js +1 -1
  213. package/dist/icons/Expand03Icon.mjs +7 -6
  214. package/dist/icons/FacebookIcon.js +1 -1
  215. package/dist/icons/FacebookIcon.mjs +22 -19
  216. package/dist/icons/File02Icon.js +1 -1
  217. package/dist/icons/File02Icon.mjs +7 -6
  218. package/dist/icons/Gift01Icon.js +1 -1
  219. package/dist/icons/Gift01Icon.mjs +7 -6
  220. package/dist/icons/GoogleIcon.js +1 -1
  221. package/dist/icons/GoogleIcon.mjs +43 -40
  222. package/dist/icons/Logout01Icon.js +1 -1
  223. package/dist/icons/Logout01Icon.mjs +7 -6
  224. package/dist/icons/QrCode02Icon.js +1 -1
  225. package/dist/icons/QrCode02Icon.mjs +7 -6
  226. package/dist/icons/SpinnerIcon.js +1 -1
  227. package/dist/icons/SpinnerIcon.mjs +33 -30
  228. package/dist/icons/User01Icon.js +1 -1
  229. package/dist/icons/User01Icon.mjs +7 -6
  230. package/dist/icons/Wallet02Icon.js +1 -1
  231. package/dist/icons/Wallet02Icon.mjs +7 -6
  232. package/dist/icons/XIcon.js +1 -1
  233. package/dist/icons/XIcon.mjs +7 -6
  234. package/dist/node_modules/.pnpm/buffer@6.0.3/node_modules/buffer/index.js +6 -0
  235. package/dist/node_modules/.pnpm/buffer@6.0.3/node_modules/buffer/index.mjs +953 -0
  236. package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/jsx-runtime.js +1 -1
  237. package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/jsx-runtime.mjs +1 -1
  238. package/dist/node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.js +1 -1
  239. package/dist/node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.mjs +1 -1
  240. package/dist/server/utils/prefetchAccountQuery.js +1 -1
  241. package/dist/server/utils/prefetchAccountQuery.mjs +7 -6
  242. package/dist/server/utils/prefetchAvailablePromosQuery.js +1 -1
  243. package/dist/server/utils/prefetchAvailablePromosQuery.mjs +11 -10
  244. package/dist/server/utils/prefetchBetRecordsQuery.js +1 -1
  245. package/dist/server/utils/prefetchBetRecordsQuery.mjs +9 -8
  246. package/dist/server/utils/prefetchCashbacksQuery.js +1 -1
  247. package/dist/server/utils/prefetchCashbacksQuery.mjs +9 -8
  248. package/dist/server/utils/prefetchDepositQuery.js +1 -1
  249. package/dist/server/utils/prefetchDepositQuery.mjs +11 -10
  250. package/dist/server/utils/prefetchDepositRecordsQuery.js +1 -1
  251. package/dist/server/utils/prefetchDepositRecordsQuery.mjs +11 -10
  252. package/dist/server/utils/prefetchGamesQuery.js +1 -1
  253. package/dist/server/utils/prefetchGamesQuery.mjs +3 -2
  254. package/dist/server/utils/prefetchInstapayBankListQuery.js +1 -1
  255. package/dist/server/utils/prefetchInstapayBankListQuery.mjs +3 -2
  256. package/dist/server/utils/prefetchIsMayaSessionValidQuery.js +1 -1
  257. package/dist/server/utils/prefetchIsMayaSessionValidQuery.mjs +3 -2
  258. package/dist/server/utils/prefetchJackpotsQuery.js +1 -1
  259. package/dist/server/utils/prefetchJackpotsQuery.mjs +5 -4
  260. package/dist/server/utils/prefetchMemberVerificationQuery.js +1 -1
  261. package/dist/server/utils/prefetchMemberVerificationQuery.mjs +6 -5
  262. package/dist/server/utils/prefetchPaymentSettingsQuery.js +1 -1
  263. package/dist/server/utils/prefetchPaymentSettingsQuery.mjs +3 -2
  264. package/dist/server/utils/prefetchPlatformQuery.js +1 -1
  265. package/dist/server/utils/prefetchPlatformQuery.mjs +3 -2
  266. package/dist/server/utils/prefetchPromoQuery.js +1 -1
  267. package/dist/server/utils/prefetchPromoQuery.mjs +7 -6
  268. package/dist/server/utils/prefetchPromosQuery.js +1 -1
  269. package/dist/server/utils/prefetchPromosQuery.mjs +6 -5
  270. package/dist/server/utils/prefetchSessionQuery.js +1 -1
  271. package/dist/server/utils/prefetchSessionQuery.mjs +3 -2
  272. package/dist/server/utils/prefetchSiteQuery.js +1 -1
  273. package/dist/server/utils/prefetchSiteQuery.mjs +3 -2
  274. package/dist/server/utils/prefetchTopWinsQuery.js +1 -1
  275. package/dist/server/utils/prefetchTopWinsQuery.mjs +7 -6
  276. package/dist/server/utils/prefetchTournamentsQuery.js +1 -1
  277. package/dist/server/utils/prefetchTournamentsQuery.mjs +3 -2
  278. package/dist/server/utils/prefetchTransactionRecordsQuery.js +1 -1
  279. package/dist/server/utils/prefetchTransactionRecordsQuery.mjs +3 -2
  280. package/dist/server/utils/prefetchWalletQuery.js +1 -1
  281. package/dist/server/utils/prefetchWalletQuery.mjs +10 -9
  282. package/dist/server/utils/prefetchWithdrawalRecordsQuery.js +1 -1
  283. package/dist/server/utils/prefetchWithdrawalRecordsQuery.mjs +3 -2
  284. package/dist/server-services.d.ts +2 -0
  285. package/dist/server-utils.d.ts +2 -0
  286. package/dist/services.d.ts +2 -0
  287. package/dist/services.js +1 -0
  288. package/dist/services.mjs +10 -0
  289. package/dist/ui/AlertDialog/alertDialog.recipe.js +1 -1
  290. package/dist/ui/AlertDialog/alertDialog.recipe.mjs +3 -2
  291. package/dist/ui/Avatar/avatar.recipe.js +1 -1
  292. package/dist/ui/Avatar/avatar.recipe.mjs +6 -5
  293. package/dist/ui/Badge/Badge.js +1 -1
  294. package/dist/ui/Badge/Badge.mjs +13 -12
  295. package/dist/ui/Badge/badge.recipe.js +1 -1
  296. package/dist/ui/Badge/badge.recipe.mjs +3 -2
  297. package/dist/ui/Button/Button.js +1 -1
  298. package/dist/ui/Button/Button.mjs +14 -13
  299. package/dist/ui/Checkbox/checkbox.recipe.js +1 -1
  300. package/dist/ui/Checkbox/checkbox.recipe.mjs +3 -2
  301. package/dist/ui/Clipboard/clipboard.recipe.js +1 -1
  302. package/dist/ui/Clipboard/clipboard.recipe.mjs +3 -2
  303. package/dist/ui/DatePicker/datePicker.recipe.js +1 -1
  304. package/dist/ui/DatePicker/datePicker.recipe.mjs +3 -2
  305. package/dist/ui/Dialog/dialog.recipe.js +1 -1
  306. package/dist/ui/Dialog/dialog.recipe.mjs +3 -2
  307. package/dist/ui/Drawer/drawer.recipe.js +1 -1
  308. package/dist/ui/Drawer/drawer.recipe.mjs +3 -2
  309. package/dist/ui/Field/field.recipe.js +1 -1
  310. package/dist/ui/Field/field.recipe.mjs +3 -2
  311. package/dist/ui/IconButton/IconButton.js +1 -1
  312. package/dist/ui/IconButton/IconButton.mjs +9 -8
  313. package/dist/ui/NumberInput/numberInput.recipe.js +1 -1
  314. package/dist/ui/NumberInput/numberInput.recipe.mjs +3 -2
  315. package/dist/ui/PinInput/pinInput.recipe.js +1 -1
  316. package/dist/ui/PinInput/pinInput.recipe.mjs +3 -2
  317. package/dist/ui/Popover/popover.recipe.js +1 -1
  318. package/dist/ui/Popover/popover.recipe.mjs +6 -5
  319. package/dist/ui/Presence.js +1 -1
  320. package/dist/ui/Presence.mjs +8 -7
  321. package/dist/ui/SegmentGroup/segmentGroup.recipe.js +1 -1
  322. package/dist/ui/SegmentGroup/segmentGroup.recipe.mjs +3 -2
  323. package/dist/ui/Select/select.recipe.js +1 -1
  324. package/dist/ui/Select/select.recipe.mjs +3 -2
  325. package/dist/ui/Table/table.recipe.js +1 -1
  326. package/dist/ui/Table/table.recipe.mjs +3 -2
  327. package/dist/ui/Tabs/tabs.recipe.js +1 -1
  328. package/dist/ui/Tabs/tabs.recipe.mjs +3 -2
  329. package/dist/ui.d.ts +2 -0
  330. package/dist/utils/createRecipeContext.js +1 -1
  331. package/dist/utils/createRecipeContext.mjs +30 -29
  332. package/dist/utils/getLocaleInfo.js +1 -1
  333. package/dist/utils/getLocaleInfo.mjs +212 -173
  334. package/dist/utils.d.ts +2 -0
  335. package/package.json +18 -36
  336. package/dist/node_modules/.pnpm/buffer@5.6.0/node_modules/buffer/index.js +0 -6
  337. package/dist/node_modules/.pnpm/buffer@5.6.0/node_modules/buffer/index.mjs +0 -790
  338. /package/dist/node_modules/.pnpm/{@opexa_portal-sdk-core@0.0.19 → @opexa_portal-sdk-core@0.0.21}/node_modules/@opexa/portal-sdk-core/dist/object-id.js +0 -0
  339. /package/dist/node_modules/.pnpm/{@opexa_portal-sdk-core@0.0.19 → @opexa_portal-sdk-core@0.0.21}/node_modules/@opexa/portal-sdk-core/dist/object-id.mjs +0 -0
@@ -1,40 +1,41 @@
1
1
  "use client";
2
- import { createListCollection as P, parseDate as Re, Portal as R } from "@ark-ui/react";
3
- import { TZDateMini as B, tz as M } from "@date-fns/tz";
2
+ import { j as e } from "../../_virtual/jsx-runtime.mjs";
3
+ import { createListCollection as P, Portal as h, parseDate as he } from "@ark-ui/react";
4
+ import { TZDateMini as M, tz as k } from "@date-fns/tz";
4
5
  import { endOfDay as $, startOfDay as _, format as A } from "date-fns";
5
- import { useState as Ee, useReducer as pe } from "react";
6
- import { z as v } from "zod";
6
+ import { useState as je, useReducer as ue } from "react";
7
+ import { z as y } from "zod";
7
8
  import "@opexa/portal-sdk-core";
8
9
  import "@tanstack/react-query";
9
10
  import "tiny-invariant";
10
11
  import "../../constants/index.mjs";
11
- import { capitalize as m } from "../../utils/capitalize.mjs";
12
- import { formatNumber as E } from "../../utils/formatNumber.mjs";
12
+ import { capitalize as a } from "../../utils/capitalize.mjs";
13
+ import { formatNumber as j } from "../../utils/formatNumber.mjs";
13
14
  import "../../utils/getLocaleInfo.mjs";
14
15
  import "../../utils/getQueryClient.mjs";
15
16
  import "../../utils/isMobile.mjs";
16
17
  import "../../utils/parseDecimal.mjs";
17
18
  import "../../utils/toaster.mjs";
18
- import { useBetRecordsQuery as de } from "../../hooks/useBetRecordsQuery.mjs";
19
+ import { useBetRecordsQuery as pe } from "../../hooks/useBetRecordsQuery.mjs";
19
20
  import "lodash-es";
20
21
  import "../../_virtual/index.cjs.mjs";
21
22
  import "../../hooks/useGlobalStore.mjs";
22
- import { useInfiniteQueryHelper as ee } from "../../hooks/useInfiniteQueryHelper.mjs";
23
+ import { useInfiniteQueryHelper as te } from "../../hooks/useInfiniteQueryHelper.mjs";
23
24
  import { useLocaleInfo as ge } from "../../hooks/useLocaleInfo.mjs";
24
25
  import "usehooks-ts";
25
26
  import { CheckIcon as H } from "../../icons/CheckIcon.mjs";
26
27
  import { ChevronDownIcon as C } from "../../icons/ChevronDownIcon.mjs";
27
28
  import { ChevronLeftIcon as L } from "../../icons/ChevronLeftIcon.mjs";
28
29
  import { ChevronRightIcon as U } from "../../icons/ChevronRightIcon.mjs";
29
- import { File02Icon as ye } from "../../icons/File02Icon.mjs";
30
- import { SpinnerIcon as ve } from "../../icons/SpinnerIcon.mjs";
30
+ import { File02Icon as ve } from "../../icons/File02Icon.mjs";
31
+ import { SpinnerIcon as ye } from "../../icons/SpinnerIcon.mjs";
31
32
  import "../../ui/AlertDialog/AlertDialog.mjs";
32
33
  import "../../ui/Avatar/Avatar.mjs";
33
34
  import "../../ui/Badge/Badge.mjs";
34
35
  import "../../ui/Button/button.recipe.mjs";
35
36
  import "../../ui/Checkbox/Checkbox.mjs";
36
37
  import "../../ui/Clipboard/Clipboard.mjs";
37
- import { Root as fe, Context as q, Control as Ce, Positioner as Te, Content as Se, View as he, ViewControl as Ie, PrevTrigger as be, ViewTrigger as Ne, RangeText as De, NextTrigger as xe, Table as Pe, TableHead as ze, TableRow as F, TableHeader as we, TableBody as Oe, TableCell as ke, TableCellTrigger as Ve } from "../../ui/DatePicker/DatePicker.mjs";
38
+ import { Root as fe, Context as q, Control as Ce, Positioner as Te, Content as Se, View as Ie, ViewControl as be, PrevTrigger as Ne, ViewTrigger as Re, RangeText as Ee, NextTrigger as De, Table as Pe, TableHead as ze, TableRow as F, TableHeader as we, TableBody as Oe, TableCell as Ve, TableCellTrigger as Be } from "../../ui/DatePicker/DatePicker.mjs";
38
39
  import "../../ui/Dialog/Dialog.mjs";
39
40
  import "../../ui/Drawer/Drawer.mjs";
40
41
  import "../../ui/Field/Field.mjs";
@@ -43,264 +44,375 @@ import "../../ui/NumberInput/NumberInput.mjs";
43
44
  import "../../ui/PinInput/PinInput.mjs";
44
45
  import "../../ui/Popover/Popover.mjs";
45
46
  import "tailwind-merge";
46
- import { Root as J, Item as p, ItemText as d, ItemControl as g, ItemHiddenInput as y, Indicator as Z } from "../../ui/SegmentGroup/SegmentGroup.mjs";
47
- import { Root as T, Trigger as S, ValueText as h, Indicator as I, Positioner as b, Content as N, ItemGroup as j, Item as D, ItemText as Q, ItemIndicator as K } from "../../ui/Select/Select.mjs";
48
- import { Root as Be, Header as Me, Row as W, Heading as n, Body as $e, Cell as r } from "../../ui/Table/Table.mjs";
47
+ import { Root as J, Item as u, ItemText as p, ItemControl as g, ItemHiddenInput as v, Indicator as Z } from "../../ui/SegmentGroup/SegmentGroup.mjs";
48
+ import { Root as T, Trigger as S, ValueText as I, Indicator as b, Positioner as N, Content as R, ItemGroup as Q, Item as E, ItemText as K, ItemIndicator as W } from "../../ui/Select/Select.mjs";
49
+ import { Root as Me, Header as ke, Row as X, Heading as n, Body as $e, Cell as l } from "../../ui/Table/Table.mjs";
49
50
  import "../../ui/Tabs/Tabs.mjs";
50
51
  import { Empty as _e } from "../Empty/Empty.mjs";
51
- function Bt(l) {
52
- var O, k;
53
- const [ae, z] = Ee("all"), [a, i] = pe(
54
- (e, t) => ({
55
- ...e,
56
- ...t
52
+ function kt(i) {
53
+ var O, V;
54
+ const [se, z] = je("all"), [s, c] = ue(
55
+ (t, r) => ({
56
+ ...t,
57
+ ...r
57
58
  }),
58
59
  {
59
60
  page: 1,
60
61
  pageSize: 10,
61
- type: l.gameTypes[0]
62
+ type: i.gameTypes[0]
62
63
  }
63
- ), o = ge(), w = P({
64
- items: l.gameProviders,
65
- itemToValue: (e) => e,
66
- itemToString: (e) => m(e, {
67
- delimiter: m.delimiters.UNDERSCORE
64
+ ), m = ge(), w = P({
65
+ items: i.gameProviders,
66
+ itemToValue: (t) => t,
67
+ itemToString: (t) => a(t, {
68
+ delimiter: a.delimiters.UNDERSCORE
68
69
  })
69
70
  }), {
70
- page: le,
71
+ page: ie,
71
72
  pageSize: ne,
72
- hasNextPage: re,
73
- hasPrevPage: ce,
74
- next: me,
75
- prev: oe,
73
+ hasNextPage: le,
74
+ hasPrevPage: oe,
75
+ next: ae,
76
+ prev: me,
76
77
  rows: f,
77
- setPageSize: ie,
78
- totalPages: ue,
79
- loading: u,
80
- firstPage: s
81
- } = ee(de, {
78
+ setPageSize: ce,
79
+ totalPages: de,
80
+ loading: d,
81
+ firstPage: x
82
+ } = te(pe, {
82
83
  filter: {
83
- ...a.type && {
84
+ ...s.type && {
84
85
  game__type: {
85
- equal: a.type
86
+ equal: s.type
86
87
  }
87
88
  },
88
- ...a.provider && {
89
+ ...s.provider && {
89
90
  game__provider: {
90
- equal: a.provider
91
+ equal: s.provider
91
92
  }
92
93
  },
93
- ...a.status && {
94
+ ...s.status && {
94
95
  status: {
95
- equal: a.status
96
+ equal: s.status
96
97
  }
97
98
  },
98
- ...a.timestamp && {
99
+ ...s.timestamp && {
99
100
  dateTimeCreated: {
100
- ...a.timestamp.start && {
101
- greaterThanOrEqual: new B(
102
- _(a.timestamp.start),
103
- o.timezone
101
+ ...s.timestamp.start && {
102
+ greaterThanOrEqual: new M(
103
+ _(s.timestamp.start),
104
+ m.timezone
104
105
  ).toISOString()
105
106
  },
106
- ...a.timestamp.end && {
107
- lesserThanOrEqual: new B(
108
- $(a.timestamp.end),
109
- o.timezone
107
+ ...s.timestamp.end && {
108
+ lesserThanOrEqual: new M(
109
+ $(s.timestamp.end),
110
+ m.timezone
110
111
  ).toISOString()
111
112
  }
112
113
  }
113
114
  }
114
115
  }
115
116
  });
116
- return /* @__PURE__ */ React.createElement("div", { className: l.className }, /* @__PURE__ */ React.createElement("h2", { className: "text-lg font-semibold" }, "Bet Records"), /* @__PURE__ */ React.createElement("p", { className: "text-gray-600 mt-xs text-xs" }, "View your bet records"), /* @__PURE__ */ React.createElement("div", { className: "mt-2xl pb-2xl" }, /* @__PURE__ */ React.createElement(
117
- J,
118
- {
119
- value: a.type,
120
- onValueChange: (e) => {
121
- s(), i({
122
- type: v.enum(l.gameTypes ?? []).safeParse(e.value).data ?? null
123
- });
124
- }
125
- },
126
- l.gameTypes.map((e) => /* @__PURE__ */ React.createElement(p, { key: e, value: e }, /* @__PURE__ */ React.createElement(d, null, m(e, {
127
- delimiter: m.delimiters.UNDERSCORE
128
- })), /* @__PURE__ */ React.createElement(g, null), /* @__PURE__ */ React.createElement(y, null))),
129
- /* @__PURE__ */ React.createElement(Z, null)
130
- )), /* @__PURE__ */ React.createElement("div", { className: "mt-4xl" }, /* @__PURE__ */ React.createElement("div", { className: "flex items-center gap-lg" }, /* @__PURE__ */ React.createElement(
131
- fe,
132
- {
133
- lazyMount: !0,
134
- unmountOnExit: !0,
135
- value: [(O = a.timestamp) == null ? void 0 : O.start, (k = a.timestamp) == null ? void 0 : k.end].filter(Boolean).map((e) => Re(e)),
136
- onValueChange: (e) => {
137
- var t, c;
138
- s(), i({
139
- timestamp: {
140
- start: (t = e.value.at(0)) == null ? void 0 : t.toDate(Y),
141
- end: (c = e.value.at(1)) == null ? void 0 : c.toDate(Y)
142
- }
143
- });
144
- },
145
- onOpenChange: (e) => {
146
- e.open || a.timestamp || z("all");
147
- },
148
- selectionMode: "range",
149
- closeOnSelect: !1,
150
- positioning: {
151
- gutter: 20,
152
- placement: "bottom"
153
- }
154
- },
155
- /* @__PURE__ */ React.createElement(
117
+ return /* @__PURE__ */ e.jsxs("div", { className: i.className, children: [
118
+ /* @__PURE__ */ e.jsx("h2", { className: "text-lg font-semibold", children: "Bet Records" }),
119
+ /* @__PURE__ */ e.jsx("p", { className: "text-gray-600 mt-xs text-xs", children: "View your bet records" }),
120
+ /* @__PURE__ */ e.jsx("div", { className: "mt-2xl pb-2xl", children: /* @__PURE__ */ e.jsxs(
156
121
  J,
157
122
  {
158
- value: ae,
159
- onValueChange: (e) => {
160
- const t = Ae.parse(e.value);
161
- if (t === "today") {
162
- const c = /* @__PURE__ */ new Date();
163
- i({
164
- timestamp: {
165
- start: _(c),
166
- end: $(c)
167
- }
168
- });
169
- } else
170
- i({
171
- timestamp: null
172
- });
173
- s(), z(t);
174
- }
175
- },
176
- /* @__PURE__ */ React.createElement(p, { value: "all" }, /* @__PURE__ */ React.createElement(d, null, "All"), /* @__PURE__ */ React.createElement(g, null), /* @__PURE__ */ React.createElement(y, null)),
177
- /* @__PURE__ */ React.createElement(p, { value: "today" }, /* @__PURE__ */ React.createElement(d, null, "Today"), /* @__PURE__ */ React.createElement(g, null), /* @__PURE__ */ React.createElement(y, null)),
178
- /* @__PURE__ */ React.createElement(q, null, (e) => /* @__PURE__ */ React.createElement(
179
- p,
180
- {
181
- value: "custom",
182
- onClick: () => e.setOpen(!0)
123
+ value: s.type,
124
+ onValueChange: (t) => {
125
+ x(), c({
126
+ type: y.enum(i.gameTypes ?? []).safeParse(t.value).data ?? null
127
+ });
183
128
  },
184
- /* @__PURE__ */ React.createElement(Ce, null, /* @__PURE__ */ React.createElement(d, null, "Custom"), /* @__PURE__ */ React.createElement(g, null), /* @__PURE__ */ React.createElement(y, null))
185
- )),
186
- /* @__PURE__ */ React.createElement(Z, null)
187
- ),
188
- /* @__PURE__ */ React.createElement(R, null, /* @__PURE__ */ React.createElement(Te, null, /* @__PURE__ */ React.createElement(Se, null, /* @__PURE__ */ React.createElement(he, { view: "day" }, /* @__PURE__ */ React.createElement(q, null, (e) => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Ie, null, /* @__PURE__ */ React.createElement(be, null, /* @__PURE__ */ React.createElement(L, null)), /* @__PURE__ */ React.createElement(Ne, null, /* @__PURE__ */ React.createElement(De, null)), /* @__PURE__ */ React.createElement(xe, null, /* @__PURE__ */ React.createElement(U, null))), /* @__PURE__ */ React.createElement(Pe, null, /* @__PURE__ */ React.createElement(ze, null, /* @__PURE__ */ React.createElement(F, null, e.weekDays.map((t, c) => /* @__PURE__ */ React.createElement(we, { key: c }, t.short.substring(0, 2))))), /* @__PURE__ */ React.createElement(Oe, null, e.weeks.map((t, c) => /* @__PURE__ */ React.createElement(F, { key: c }, t.map((V, se) => /* @__PURE__ */ React.createElement(ke, { key: se, value: V }, /* @__PURE__ */ React.createElement(Ve, null, V.day)))))))))))))
189
- ), /* @__PURE__ */ React.createElement("div", { className: "grow" }), /* @__PURE__ */ React.createElement(
190
- T,
191
- {
192
- collection: w,
193
- value: a.provider ? [a.provider] : [],
194
- onValueChange: (e) => {
195
- const t = v.enum(l.gameProviders ?? []).safeParse(e.value.at(0)).data;
196
- s(), i({
197
- provider: t ?? null
198
- });
199
- },
200
- lazyMount: !0,
201
- deselectable: !0
202
- },
203
- /* @__PURE__ */ React.createElement(S, null, /* @__PURE__ */ React.createElement(h, { placeholder: "Game Vendor" }), /* @__PURE__ */ React.createElement(I, { asChild: !0 }, /* @__PURE__ */ React.createElement(C, null))),
204
- /* @__PURE__ */ React.createElement(R, null, /* @__PURE__ */ React.createElement(b, null, /* @__PURE__ */ React.createElement(N, null, /* @__PURE__ */ React.createElement(j, null, w.items.map((e) => /* @__PURE__ */ React.createElement(D, { key: e, item: e }, /* @__PURE__ */ React.createElement(Q, null, m(e, {
205
- delimiter: m.delimiters.UNDERSCORE
206
- })), /* @__PURE__ */ React.createElement(K, { asChild: !0 }, /* @__PURE__ */ React.createElement(H, null))))))))
207
- ), /* @__PURE__ */ React.createElement(
208
- T,
209
- {
210
- collection: X,
211
- value: a.status ? [a.status] : [],
212
- onValueChange: (e) => {
213
- const t = v.enum(te).safeParse(e.value.at(0)).data;
214
- s(), i({
215
- status: t ?? null
216
- });
217
- },
218
- lazyMount: !0,
219
- deselectable: !0
220
- },
221
- /* @__PURE__ */ React.createElement(S, null, /* @__PURE__ */ React.createElement(h, { placeholder: "Status" }), /* @__PURE__ */ React.createElement(I, { asChild: !0 }, /* @__PURE__ */ React.createElement(C, null))),
222
- /* @__PURE__ */ React.createElement(R, null, /* @__PURE__ */ React.createElement(b, null, /* @__PURE__ */ React.createElement(N, null, /* @__PURE__ */ React.createElement(j, null, X.items.map((e) => /* @__PURE__ */ React.createElement(D, { key: e, item: e }, /* @__PURE__ */ React.createElement(Q, null, m(e, {
223
- delimiter: m.delimiters.UNDERSCORE
224
- })), /* @__PURE__ */ React.createElement(K, { asChild: !0 }, /* @__PURE__ */ React.createElement(H, null))))))))
225
- )), f.length <= 0 && /* @__PURE__ */ React.createElement(
226
- _e,
227
- {
228
- icon: u ? ve : ye,
229
- title: u ? "Just a moment" : "No data",
230
- message: u ? "Fetching latest bet records..." : "No data is currently available.",
231
- className: "mt-8 lg:mt-16"
232
- }
233
- ), f.length >= 1 && /* @__PURE__ */ React.createElement("div", { className: "border-gray-200 mt-lg rounded-xl border" }, /* @__PURE__ */ React.createElement("div", { className: "border-gray-200 overflow-hidden overflow-x-auto rounded-xl border-b" }, /* @__PURE__ */ React.createElement(Be, { className: "border-0" }, /* @__PURE__ */ React.createElement(Me, null, /* @__PURE__ */ React.createElement(W, null, /* @__PURE__ */ React.createElement(n, null, "Bet Time"), /* @__PURE__ */ React.createElement(n, null, "Settlement Time"), /* @__PURE__ */ React.createElement(n, null, "Bet Content"), /* @__PURE__ */ React.createElement(n, null, "Odds"), /* @__PURE__ */ React.createElement(n, null, "Bet Amount"), /* @__PURE__ */ React.createElement(n, null, "Valid Bet"), /* @__PURE__ */ React.createElement(n, null, "Settled Amount"), /* @__PURE__ */ React.createElement(n, null, "Jackpot Contribution"), /* @__PURE__ */ React.createElement(n, null, "Jackpot Payout"), /* @__PURE__ */ React.createElement(n, null, "Bet Status"), /* @__PURE__ */ React.createElement(n, null, "Game Name"), /* @__PURE__ */ React.createElement(n, null, "Vendor Round ID"))), /* @__PURE__ */ React.createElement($e, null, f.map((e) => {
234
- var t;
235
- return /* @__PURE__ */ React.createElement(W, { key: e.id }, /* @__PURE__ */ React.createElement(r, null, A(e.dateTimeCreated, "yyyy MMM dd hh:mma", {
236
- in: M(o.timezone)
237
- })), /* @__PURE__ */ React.createElement(r, null, !!e.dateTimeSettled && A(e.dateTimeSettled, "yyyy MMM dd hh:mma", {
238
- in: M(o.timezone)
239
- })), /* @__PURE__ */ React.createElement(r, null, e == null ? void 0 : e.betContent), /* @__PURE__ */ React.createElement(r, null, (t = e.metadata) == null ? void 0 : t.odds), /* @__PURE__ */ React.createElement(r, null, E(e.bet, {
240
- currency: o.currency.code,
241
- minDecimalPlaces: 2
242
- })), /* @__PURE__ */ React.createElement(r, null, e.validBet), /* @__PURE__ */ React.createElement(r, null, E(e.payout, {
243
- currency: o.currency.code,
244
- minDecimalPlaces: 2
245
- })), /* @__PURE__ */ React.createElement(r, null, E(e.jackpotContribution, {
246
- currency: o.currency.code,
247
- minDecimalPlaces: 2
248
- })), /* @__PURE__ */ React.createElement(r, null, E(e.jackpotPayout, {
249
- currency: o.currency.code,
250
- minDecimalPlaces: 2
251
- })), /* @__PURE__ */ React.createElement(r, null, e.status), /* @__PURE__ */ React.createElement(r, null, e.game.name), /* @__PURE__ */ React.createElement(r, null, e.vendorRoundId));
252
- })))), /* @__PURE__ */ React.createElement("div", { className: "flex items-center gap-lg px-4 py-3" }, /* @__PURE__ */ React.createElement("p", null, "Page ", le, " of ", ue), /* @__PURE__ */ React.createElement("div", { className: "grow" }), /* @__PURE__ */ React.createElement(
253
- T,
254
- {
255
- size: "sm",
256
- value: [ne.toString()],
257
- onValueChange: (e) => {
258
- const t = parseInt(e.value[0]), c = isNaN(t) ? 10 : t;
259
- ie(c);
260
- },
261
- collection: x,
262
- lazyMount: !0
263
- },
264
- /* @__PURE__ */ React.createElement(S, null, /* @__PURE__ */ React.createElement(h, null), /* @__PURE__ */ React.createElement(I, { asChild: !0 }, /* @__PURE__ */ React.createElement(C, null)), /* @__PURE__ */ React.createElement(R, null, /* @__PURE__ */ React.createElement(b, null, /* @__PURE__ */ React.createElement(N, null, x.items.map((e) => /* @__PURE__ */ React.createElement(D, { key: e, item: e }, x.stringifyItem(e)))))))
265
- ), /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(
266
- G,
267
- {
268
- size: "sm",
269
- variant: "outline",
270
- colorScheme: "gray",
271
- className: "rounded-r-none border-r-0",
272
- disabled: !ce || u,
273
- onClick: () => oe()
274
- },
275
- /* @__PURE__ */ React.createElement(L, { className: "size-5" })
276
- ), /* @__PURE__ */ React.createElement(
277
- G,
278
- {
279
- size: "sm",
280
- variant: "outline",
281
- colorScheme: "gray",
282
- className: "rounded-l-none",
283
- disabled: !re || u,
284
- onClick: () => me()
285
- },
286
- /* @__PURE__ */ React.createElement(U, { className: "size-5" })
287
- ))))));
129
+ children: [
130
+ i.gameTypes.map((t) => /* @__PURE__ */ e.jsxs(u, { value: t, children: [
131
+ /* @__PURE__ */ e.jsx(p, { children: a(t, {
132
+ delimiter: a.delimiters.UNDERSCORE
133
+ }) }),
134
+ /* @__PURE__ */ e.jsx(g, {}),
135
+ /* @__PURE__ */ e.jsx(v, {})
136
+ ] }, t)),
137
+ /* @__PURE__ */ e.jsx(Z, {})
138
+ ]
139
+ }
140
+ ) }),
141
+ /* @__PURE__ */ e.jsxs("div", { className: "mt-4xl", children: [
142
+ /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-lg", children: [
143
+ /* @__PURE__ */ e.jsxs(
144
+ fe,
145
+ {
146
+ lazyMount: !0,
147
+ unmountOnExit: !0,
148
+ value: [(O = s.timestamp) == null ? void 0 : O.start, (V = s.timestamp) == null ? void 0 : V.end].filter(Boolean).map((t) => he(t)),
149
+ onValueChange: (t) => {
150
+ var r, o;
151
+ x(), c({
152
+ timestamp: {
153
+ start: (r = t.value.at(0)) == null ? void 0 : r.toDate(ee),
154
+ end: (o = t.value.at(1)) == null ? void 0 : o.toDate(ee)
155
+ }
156
+ });
157
+ },
158
+ onOpenChange: (t) => {
159
+ t.open || s.timestamp || z("all");
160
+ },
161
+ selectionMode: "range",
162
+ closeOnSelect: !1,
163
+ positioning: {
164
+ gutter: 20,
165
+ placement: "bottom"
166
+ },
167
+ children: [
168
+ /* @__PURE__ */ e.jsxs(
169
+ J,
170
+ {
171
+ value: se,
172
+ onValueChange: (t) => {
173
+ const r = Ae.parse(t.value);
174
+ if (r === "today") {
175
+ const o = /* @__PURE__ */ new Date();
176
+ c({
177
+ timestamp: {
178
+ start: _(o),
179
+ end: $(o)
180
+ }
181
+ });
182
+ } else
183
+ c({
184
+ timestamp: null
185
+ });
186
+ x(), z(r);
187
+ },
188
+ children: [
189
+ /* @__PURE__ */ e.jsxs(u, { value: "all", children: [
190
+ /* @__PURE__ */ e.jsx(p, { children: "All" }),
191
+ /* @__PURE__ */ e.jsx(g, {}),
192
+ /* @__PURE__ */ e.jsx(v, {})
193
+ ] }),
194
+ /* @__PURE__ */ e.jsxs(u, { value: "today", children: [
195
+ /* @__PURE__ */ e.jsx(p, { children: "Today" }),
196
+ /* @__PURE__ */ e.jsx(g, {}),
197
+ /* @__PURE__ */ e.jsx(v, {})
198
+ ] }),
199
+ /* @__PURE__ */ e.jsx(q, { children: (t) => /* @__PURE__ */ e.jsx(
200
+ u,
201
+ {
202
+ value: "custom",
203
+ onClick: () => t.setOpen(!0),
204
+ children: /* @__PURE__ */ e.jsxs(Ce, { children: [
205
+ /* @__PURE__ */ e.jsx(p, { children: "Custom" }),
206
+ /* @__PURE__ */ e.jsx(g, {}),
207
+ /* @__PURE__ */ e.jsx(v, {})
208
+ ] })
209
+ }
210
+ ) }),
211
+ /* @__PURE__ */ e.jsx(Z, {})
212
+ ]
213
+ }
214
+ ),
215
+ /* @__PURE__ */ e.jsx(h, { children: /* @__PURE__ */ e.jsx(Te, { children: /* @__PURE__ */ e.jsx(Se, { children: /* @__PURE__ */ e.jsx(Ie, { view: "day", children: /* @__PURE__ */ e.jsx(q, { children: (t) => /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
216
+ /* @__PURE__ */ e.jsxs(be, { children: [
217
+ /* @__PURE__ */ e.jsx(Ne, { children: /* @__PURE__ */ e.jsx(L, {}) }),
218
+ /* @__PURE__ */ e.jsx(Re, { children: /* @__PURE__ */ e.jsx(Ee, {}) }),
219
+ /* @__PURE__ */ e.jsx(De, { children: /* @__PURE__ */ e.jsx(U, {}) })
220
+ ] }),
221
+ /* @__PURE__ */ e.jsxs(Pe, { children: [
222
+ /* @__PURE__ */ e.jsx(ze, { children: /* @__PURE__ */ e.jsx(F, { children: t.weekDays.map((r, o) => /* @__PURE__ */ e.jsx(we, { children: r.short.substring(0, 2) }, o)) }) }),
223
+ /* @__PURE__ */ e.jsx(Oe, { children: t.weeks.map((r, o) => /* @__PURE__ */ e.jsx(F, { children: r.map((B, xe) => /* @__PURE__ */ e.jsx(Ve, { value: B, children: /* @__PURE__ */ e.jsx(Be, { children: B.day }) }, xe)) }, o)) })
224
+ ] })
225
+ ] }) }) }) }) }) })
226
+ ]
227
+ }
228
+ ),
229
+ /* @__PURE__ */ e.jsx("div", { className: "grow" }),
230
+ /* @__PURE__ */ e.jsxs(
231
+ T,
232
+ {
233
+ collection: w,
234
+ value: s.provider ? [s.provider] : [],
235
+ onValueChange: (t) => {
236
+ const r = y.enum(i.gameProviders ?? []).safeParse(t.value.at(0)).data;
237
+ x(), c({
238
+ provider: r ?? null
239
+ });
240
+ },
241
+ lazyMount: !0,
242
+ deselectable: !0,
243
+ children: [
244
+ /* @__PURE__ */ e.jsxs(S, { children: [
245
+ /* @__PURE__ */ e.jsx(I, { placeholder: "Game Vendor" }),
246
+ /* @__PURE__ */ e.jsx(b, { asChild: !0, children: /* @__PURE__ */ e.jsx(C, {}) })
247
+ ] }),
248
+ /* @__PURE__ */ e.jsx(h, { children: /* @__PURE__ */ e.jsx(N, { children: /* @__PURE__ */ e.jsx(R, { children: /* @__PURE__ */ e.jsx(Q, { children: w.items.map((t) => /* @__PURE__ */ e.jsxs(E, { item: t, children: [
249
+ /* @__PURE__ */ e.jsx(K, { children: a(t, {
250
+ delimiter: a.delimiters.UNDERSCORE
251
+ }) }),
252
+ /* @__PURE__ */ e.jsx(W, { asChild: !0, children: /* @__PURE__ */ e.jsx(H, {}) })
253
+ ] }, t)) }) }) }) })
254
+ ]
255
+ }
256
+ ),
257
+ /* @__PURE__ */ e.jsxs(
258
+ T,
259
+ {
260
+ collection: Y,
261
+ value: s.status ? [s.status] : [],
262
+ onValueChange: (t) => {
263
+ const r = y.enum(re).safeParse(t.value.at(0)).data;
264
+ x(), c({
265
+ status: r ?? null
266
+ });
267
+ },
268
+ lazyMount: !0,
269
+ deselectable: !0,
270
+ children: [
271
+ /* @__PURE__ */ e.jsxs(S, { children: [
272
+ /* @__PURE__ */ e.jsx(I, { placeholder: "Status" }),
273
+ /* @__PURE__ */ e.jsx(b, { asChild: !0, children: /* @__PURE__ */ e.jsx(C, {}) })
274
+ ] }),
275
+ /* @__PURE__ */ e.jsx(h, { children: /* @__PURE__ */ e.jsx(N, { children: /* @__PURE__ */ e.jsx(R, { children: /* @__PURE__ */ e.jsx(Q, { children: Y.items.map((t) => /* @__PURE__ */ e.jsxs(E, { item: t, children: [
276
+ /* @__PURE__ */ e.jsx(K, { children: a(t, {
277
+ delimiter: a.delimiters.UNDERSCORE
278
+ }) }),
279
+ /* @__PURE__ */ e.jsx(W, { asChild: !0, children: /* @__PURE__ */ e.jsx(H, {}) })
280
+ ] }, t)) }) }) }) })
281
+ ]
282
+ }
283
+ )
284
+ ] }),
285
+ f.length <= 0 && /* @__PURE__ */ e.jsx(
286
+ _e,
287
+ {
288
+ icon: d ? ye : ve,
289
+ title: d ? "Just a moment" : "No data",
290
+ message: d ? "Fetching latest bet records..." : "No data is currently available.",
291
+ className: "mt-8 lg:mt-16"
292
+ }
293
+ ),
294
+ f.length >= 1 && /* @__PURE__ */ e.jsxs("div", { className: "border-gray-200 mt-lg rounded-xl border", children: [
295
+ /* @__PURE__ */ e.jsx("div", { className: "border-gray-200 overflow-hidden overflow-x-auto rounded-xl border-b", children: /* @__PURE__ */ e.jsxs(Me, { className: "border-0", children: [
296
+ /* @__PURE__ */ e.jsx(ke, { children: /* @__PURE__ */ e.jsxs(X, { children: [
297
+ /* @__PURE__ */ e.jsx(n, { children: "Bet Time" }),
298
+ /* @__PURE__ */ e.jsx(n, { children: "Settlement Time" }),
299
+ /* @__PURE__ */ e.jsx(n, { children: "Bet Content" }),
300
+ /* @__PURE__ */ e.jsx(n, { children: "Odds" }),
301
+ /* @__PURE__ */ e.jsx(n, { children: "Bet Amount" }),
302
+ /* @__PURE__ */ e.jsx(n, { children: "Valid Bet" }),
303
+ /* @__PURE__ */ e.jsx(n, { children: "Settled Amount" }),
304
+ /* @__PURE__ */ e.jsx(n, { children: "Jackpot Contribution" }),
305
+ /* @__PURE__ */ e.jsx(n, { children: "Jackpot Payout" }),
306
+ /* @__PURE__ */ e.jsx(n, { children: "Bet Status" }),
307
+ /* @__PURE__ */ e.jsx(n, { children: "Game Name" }),
308
+ /* @__PURE__ */ e.jsx(n, { children: "Vendor Round ID" })
309
+ ] }) }),
310
+ /* @__PURE__ */ e.jsx($e, { children: f.map((t) => {
311
+ var r;
312
+ return /* @__PURE__ */ e.jsxs(X, { children: [
313
+ /* @__PURE__ */ e.jsx(l, { children: A(t.dateTimeCreated, "yyyy MMM dd hh:mma", {
314
+ in: k(m.timezone)
315
+ }) }),
316
+ /* @__PURE__ */ e.jsx(l, { children: !!t.dateTimeSettled && A(t.dateTimeSettled, "yyyy MMM dd hh:mma", {
317
+ in: k(m.timezone)
318
+ }) }),
319
+ /* @__PURE__ */ e.jsx(l, { children: t == null ? void 0 : t.betContent }),
320
+ /* @__PURE__ */ e.jsx(l, { children: (r = t.metadata) == null ? void 0 : r.odds }),
321
+ /* @__PURE__ */ e.jsx(l, { children: j(t.bet, {
322
+ currency: m.currency.code,
323
+ minDecimalPlaces: 2
324
+ }) }),
325
+ /* @__PURE__ */ e.jsx(l, { children: t.validBet }),
326
+ /* @__PURE__ */ e.jsx(l, { children: j(t.payout, {
327
+ currency: m.currency.code,
328
+ minDecimalPlaces: 2
329
+ }) }),
330
+ /* @__PURE__ */ e.jsx(l, { children: j(t.jackpotContribution, {
331
+ currency: m.currency.code,
332
+ minDecimalPlaces: 2
333
+ }) }),
334
+ /* @__PURE__ */ e.jsx(l, { children: j(t.jackpotPayout, {
335
+ currency: m.currency.code,
336
+ minDecimalPlaces: 2
337
+ }) }),
338
+ /* @__PURE__ */ e.jsx(l, { children: t.status }),
339
+ /* @__PURE__ */ e.jsx(l, { children: t.game.name }),
340
+ /* @__PURE__ */ e.jsx(l, { children: t.vendorRoundId })
341
+ ] }, t.id);
342
+ }) })
343
+ ] }) }),
344
+ /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-lg px-4 py-3", children: [
345
+ /* @__PURE__ */ e.jsxs("p", { children: [
346
+ "Page ",
347
+ ie,
348
+ " of ",
349
+ de
350
+ ] }),
351
+ /* @__PURE__ */ e.jsx("div", { className: "grow" }),
352
+ /* @__PURE__ */ e.jsx(
353
+ T,
354
+ {
355
+ size: "sm",
356
+ value: [ne.toString()],
357
+ onValueChange: (t) => {
358
+ const r = parseInt(t.value[0]), o = isNaN(r) ? 10 : r;
359
+ ce(o);
360
+ },
361
+ collection: D,
362
+ lazyMount: !0,
363
+ children: /* @__PURE__ */ e.jsxs(S, { children: [
364
+ /* @__PURE__ */ e.jsx(I, {}),
365
+ /* @__PURE__ */ e.jsx(b, { asChild: !0, children: /* @__PURE__ */ e.jsx(C, {}) }),
366
+ /* @__PURE__ */ e.jsx(h, { children: /* @__PURE__ */ e.jsx(N, { children: /* @__PURE__ */ e.jsx(R, { children: D.items.map((t) => /* @__PURE__ */ e.jsx(E, { item: t, children: D.stringifyItem(t) }, t)) }) }) })
367
+ ] })
368
+ }
369
+ ),
370
+ /* @__PURE__ */ e.jsxs("div", { children: [
371
+ /* @__PURE__ */ e.jsx(
372
+ G,
373
+ {
374
+ size: "sm",
375
+ variant: "outline",
376
+ colorScheme: "gray",
377
+ className: "rounded-r-none border-r-0",
378
+ disabled: !oe || d,
379
+ onClick: () => me(),
380
+ children: /* @__PURE__ */ e.jsx(L, { className: "size-5" })
381
+ }
382
+ ),
383
+ /* @__PURE__ */ e.jsx(
384
+ G,
385
+ {
386
+ size: "sm",
387
+ variant: "outline",
388
+ colorScheme: "gray",
389
+ className: "rounded-l-none",
390
+ disabled: !le || d,
391
+ onClick: () => ae(),
392
+ children: /* @__PURE__ */ e.jsx(U, { className: "size-5" })
393
+ }
394
+ )
395
+ ] })
396
+ ] })
397
+ ] })
398
+ ] })
399
+ ] });
288
400
  }
289
- const te = [
401
+ const re = [
290
402
  "CANCELLED",
291
403
  "SETTLED",
292
404
  "STARTED"
293
- ], x = P({
294
- items: ee.config.pageSizes,
295
- itemToValue: (l) => l.toString(),
296
- itemToString: (l) => `${l} items per page`
297
- }), X = P({
298
- items: te,
299
- itemToValue: (l) => l,
300
- itemToString: (l) => m(l, {
301
- delimiter: m.delimiters.UNDERSCORE
405
+ ], D = P({
406
+ items: te.config.pageSizes,
407
+ itemToValue: (i) => i.toString(),
408
+ itemToString: (i) => `${i} items per page`
409
+ }), Y = P({
410
+ items: re,
411
+ itemToValue: (i) => i,
412
+ itemToString: (i) => a(i, {
413
+ delimiter: a.delimiters.UNDERSCORE
302
414
  })
303
- }), Ae = v.enum(["all", "today", "custom"]), Y = Intl.DateTimeFormat().resolvedOptions().timeZone;
415
+ }), Ae = y.enum(["all", "today", "custom"]), ee = Intl.DateTimeFormat().resolvedOptions().timeZone;
304
416
  export {
305
- Bt as BetRecords
417
+ kt as BetRecords
306
418
  };