@opexa/portal-components 0.0.16 → 0.0.18

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