@opexa/portal-components 0.0.17 → 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 +7 -7
  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 +123 -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 -4
  246. package/dist/components/Promos/PromosContent.d.ts +0 -2
@@ -1,12 +1,13 @@
1
1
  "use client";
2
- import { jsxs as i, Fragment as y, jsx as e } from "react/jsx-runtime";
3
- import { Portal as p } from "@ark-ui/react";
4
- import N from "next/link";
5
- import { useShallow as d } from "zustand/shallow";
6
- import { useAccountQuery as w } from "../../client/hooks/useAccountQuery.mjs";
2
+ import { jsxs as i, Fragment as P, jsx as e } from "react/jsx-runtime";
3
+ import { Portal as u } from "@ark-ui/react";
4
+ import m from "next/image";
5
+ import v from "next/link";
6
+ import { useShallow as p } from "zustand/shallow";
7
+ import { useAccountQuery as C } from "../../client/hooks/useAccountQuery.mjs";
7
8
  import "@tanstack/react-query";
8
9
  import "../../utils/capitalize.mjs";
9
- import { formatNumber as O } from "../../utils/formatNumber.mjs";
10
+ import { formatNumber as d } from "../../utils/formatNumber.mjs";
10
11
  import "../../constants/index.mjs";
11
12
  import "../../utils/getLocaleInfo.mjs";
12
13
  import "../../utils/getQueryClient.mjs";
@@ -17,177 +18,243 @@ import "tiny-invariant";
17
18
  import "react";
18
19
  import "lodash-es";
19
20
  import "@opexa/portal-sdk-core/object-id";
20
- import { useGlobalStore as c } from "../../client/hooks/useGlobalStore.mjs";
21
+ import { useGlobalStore as f } from "../../client/hooks/useGlobalStore.mjs";
21
22
  import "../../client/hooks/useInfiniteQueryHelper.mjs";
22
- import { useLocaleInfo as P } from "../../client/hooks/useLocaleInfo.mjs";
23
+ import { useLocaleInfo as I } from "../../client/hooks/useLocaleInfo.mjs";
23
24
  import "usehooks-ts";
24
- import { useSignOutMutation as v } from "../../client/hooks/useSignOutMutation.mjs";
25
- import { useWalletQuery as k } from "../../client/hooks/useWalletQuery.mjs";
26
- import { ChevronRightIcon as f } from "../../icons/ChevronRightIcon.mjs";
27
- import { Logout01Icon as C } from "../../icons/Logout01Icon.mjs";
28
- import { User01Icon as a } from "../../icons/User01Icon.mjs";
25
+ import { useSignOutMutation as z } from "../../client/hooks/useSignOutMutation.mjs";
26
+ import { useUnreadMessagesCountQuery as T } from "../../client/hooks/useUnreadMessagesCountQuery.mjs";
27
+ import { useWalletQuery as A } from "../../client/hooks/useWalletQuery.mjs";
28
+ import { AlertCircleIcon as W } from "../../icons/AlertCircleIcon.mjs";
29
+ import { ChevronRightIcon as h } from "../../icons/ChevronRightIcon.mjs";
30
+ import { Logout01Icon as S } from "../../icons/Logout01Icon.mjs";
31
+ import { XIcon as k } from "../../icons/XIcon.mjs";
32
+ import c from "../../images/placeholder-avatar.png.mjs";
29
33
  import "../../ui/AlertDialog/AlertDialog.mjs";
30
- import { Root as s, Fallback as m } from "../../ui/Avatar/Avatar.mjs";
31
- import "../../ui/Badge/Badge.mjs";
32
- import { Button as u } from "../../ui/Button/Button.mjs";
34
+ import "../../ui/Avatar/Avatar.mjs";
35
+ import { Root as R, Indicator as D, Label as L } from "../../ui/Badge/Badge.mjs";
36
+ import { Button as x } from "../../ui/Button/Button.mjs";
33
37
  import "../../ui/Checkbox/Checkbox.mjs";
34
38
  import "../../ui/Clipboard/Clipboard.mjs";
39
+ import "../../ui/Collapsible/Collapsible.mjs";
35
40
  import "../../ui/DatePicker/DatePicker.mjs";
36
41
  import "../../ui/Dialog/Dialog.mjs";
37
- import { Root as W, Trigger as z, Backdrop as S, Positioner as T, Content as A } from "../../ui/Drawer/Drawer.mjs";
42
+ import { Root as Q, Trigger as U, Positioner as E, Content as M } from "../../ui/Drawer/Drawer.mjs";
38
43
  import "../../ui/Field/Field.mjs";
39
- import "../../ui/IconButton/iconButton.recipe.mjs";
44
+ import { IconButton as b } from "../../ui/IconButton/IconButton.mjs";
40
45
  import "../../ui/NumberInput/NumberInput.mjs";
46
+ import "../../ui/PasswordInput/PasswordInput.mjs";
41
47
  import "../../ui/PinInput/PinInput.mjs";
42
- import { Root as R, Trigger as I, Positioner as L, Content as M } from "../../ui/Popover/Popover.mjs";
48
+ import { Root as j, Trigger as B, Positioner as _, Content as $ } from "../../ui/Popover/Popover.mjs";
43
49
  import "tailwind-merge";
50
+ import "../../ui/Progress/Progress.mjs";
44
51
  import "../../ui/SegmentGroup/SegmentGroup.mjs";
45
52
  import "../../ui/Select/Select.mjs";
46
53
  import "../../ui/Table/Table.mjs";
47
54
  import "../../ui/Tabs/Tabs.mjs";
48
- function ze(t) {
49
- const l = c(
50
- d((r) => ({
55
+ function $e(l) {
56
+ const t = f(
57
+ p((r) => ({
51
58
  profile: r.profile,
52
59
  mobileProfile: r.mobileProfile
53
60
  }))
54
61
  );
55
- return /* @__PURE__ */ i(y, { children: [
62
+ return /* @__PURE__ */ i(P, { children: [
56
63
  /* @__PURE__ */ i(
57
- W,
64
+ Q,
58
65
  {
59
- open: l.profile.open,
66
+ open: t.mobileProfile.open,
60
67
  onOpenChange: (r) => {
61
- l.profile.setOpen(r.open);
68
+ t.mobileProfile.setOpen(r.open);
62
69
  },
63
70
  lazyMount: !0,
64
71
  unmountOnExit: !0,
65
72
  children: [
66
- /* @__PURE__ */ e(z, { asChild: !0, className: "lg:hidden", children: t.children ?? /* @__PURE__ */ e("button", { type: "button", children: /* @__PURE__ */ e(s, { children: /* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(a, {}) }) }) }) }),
67
- /* @__PURE__ */ i(p, { children: [
68
- /* @__PURE__ */ e(S, {}),
69
- /* @__PURE__ */ e(T, { children: /* @__PURE__ */ i(A, { className: "bg-gray-50 flex w-[316px] flex-col px-xl py-6", children: [
70
- /* @__PURE__ */ e(b, {}),
71
- /* @__PURE__ */ e(x, {}),
72
- /* @__PURE__ */ e(g, { links: t.links ?? [] }),
73
- /* @__PURE__ */ e("div", { className: "grow" }),
74
- /* @__PURE__ */ e(h, {})
75
- ] }) })
76
- ] })
73
+ /* @__PURE__ */ e(U, { asChild: !0, className: "lg:hidden", children: l.children ?? /* @__PURE__ */ e(b, { size: "sm", colorScheme: "gray", children: t.mobileProfile.open ? /* @__PURE__ */ e(k, {}) : /* @__PURE__ */ e(
74
+ m,
75
+ {
76
+ src: c,
77
+ alt: "",
78
+ width: 100,
79
+ height: 100,
80
+ className: "size-10"
81
+ }
82
+ ) }) }),
83
+ /* @__PURE__ */ e(u, { children: /* @__PURE__ */ e(E, { children: /* @__PURE__ */ i(
84
+ M,
85
+ {
86
+ className: "top-[var(--top,0px)] flex h-[calc(100%-var(--top,0px))] w-full flex-col px-xl py-6",
87
+ style: {
88
+ "--top": l.offsetTop ?? "0px"
89
+ },
90
+ children: [
91
+ /* @__PURE__ */ e(g, {}),
92
+ /* @__PURE__ */ e(N, {}),
93
+ /* @__PURE__ */ e(y, { links: l.links })
94
+ ]
95
+ }
96
+ ) }) })
77
97
  ]
78
98
  }
79
99
  ),
80
100
  /* @__PURE__ */ i(
81
- R,
101
+ j,
82
102
  {
83
- open: l.mobileProfile.open,
103
+ open: t.profile.open,
84
104
  onOpenChange: (r) => {
85
- l.mobileProfile.setOpen(r.open);
105
+ t.profile.setOpen(r.open);
86
106
  },
87
107
  lazyMount: !0,
88
108
  unmountOnExit: !0,
89
109
  positioning: {
90
- placement: "bottom"
110
+ placement: "bottom",
111
+ strategy: "fixed"
91
112
  },
92
113
  children: [
93
- /* @__PURE__ */ e(I, { className: "hidden lg:flex", asChild: !0, children: t.children ?? /* @__PURE__ */ e("button", { type: "button", children: /* @__PURE__ */ e(s, { children: /* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(a, {}) }) }) }) }),
94
- /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(L, { children: /* @__PURE__ */ i(M, { className: "border-gray-200 z-popover w-[316px] rounded-xl border bg-white p-xl ui-open:animate-fade-in ui-closed:animate-fade-out", children: [
95
- /* @__PURE__ */ e(b, {}),
96
- /* @__PURE__ */ e(x, {}),
97
- /* @__PURE__ */ e(g, { links: t.links ?? [] }),
98
- /* @__PURE__ */ e(h, {})
114
+ /* @__PURE__ */ e(B, { className: "hidden lg:flex", asChild: !0, children: l.children ?? /* @__PURE__ */ e(b, { size: "sm", colorScheme: "gray", children: /* @__PURE__ */ e(
115
+ m,
116
+ {
117
+ src: c,
118
+ alt: "",
119
+ width: 48,
120
+ height: 48,
121
+ className: "size-10"
122
+ }
123
+ ) }) }),
124
+ /* @__PURE__ */ e(u, { children: /* @__PURE__ */ e(_, { children: /* @__PURE__ */ i($, { className: "border-border-primary bg-bg-primary z-popover w-[23.438rem] rounded-xl border p-xl ui-open:animate-fade-in ui-closed:animate-fade-out", children: [
125
+ /* @__PURE__ */ e(g, {}),
126
+ /* @__PURE__ */ e(N, {}),
127
+ /* @__PURE__ */ e(y, { links: l.links })
99
128
  ] }) }) })
100
129
  ]
101
130
  }
102
131
  )
103
132
  ] });
104
133
  }
105
- function h() {
106
- return /* @__PURE__ */ e("div", { className: "text-gray-400 mt-xl text-center text-2xs", children: "© 2025 HappyBingo All rights reserved" });
107
- }
108
- function b() {
109
- var l, r, o, n;
110
- const t = w();
111
- return /* @__PURE__ */ i("div", { className: "flex items-center gap-3", children: [
112
- /* @__PURE__ */ e(s, { children: /* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(a, {}) }) }),
113
- /* @__PURE__ */ i("div", { children: [
114
- /* @__PURE__ */ e("p", { className: "text-sm font-semibold", children: (l = t.data) == null ? void 0 : l.name }),
115
- /* @__PURE__ */ e("p", { className: "text-gray-400 text-xs", children: ((r = t.data) == null ? void 0 : r.nickName) ?? ((o = t.data) == null ? void 0 : o.emailAddress) ?? ((n = t.data) == null ? void 0 : n.realName) })
116
- ] })
134
+ function g() {
135
+ const t = C().data;
136
+ return /* @__PURE__ */ i("div", { className: "flex shrink-0 items-center gap-lg", children: [
137
+ /* @__PURE__ */ e(
138
+ m,
139
+ {
140
+ src: c,
141
+ alt: "",
142
+ width: 48,
143
+ height: 48,
144
+ className: "size-12"
145
+ }
146
+ ),
147
+ /* @__PURE__ */ i("div", { className: "grow", children: [
148
+ /* @__PURE__ */ e("p", { className: "text-text-secondary-700 font-semibold leading-tight", children: t == null ? void 0 : t.name }),
149
+ /* @__PURE__ */ e("p", { className: "text-text-tertiary-600 leading-tight", children: (t == null ? void 0 : t.nickName) ?? (t == null ? void 0 : t.emailAddress) ?? (t == null ? void 0 : t.realName) })
150
+ ] }),
151
+ /* @__PURE__ */ i(
152
+ R,
153
+ {
154
+ colorScheme: t != null && t.verified ? "success" : "danger",
155
+ className: "self-start",
156
+ children: [
157
+ /* @__PURE__ */ e(D, {}),
158
+ /* @__PURE__ */ e(L, { children: t != null && t.verified ? "Verified" : "Unverified" })
159
+ ]
160
+ }
161
+ )
117
162
  ] });
118
163
  }
119
- function g(t) {
120
- const l = v(), r = c(
121
- d((o) => ({
122
- profile: o.profile,
123
- mobileProfile: o.mobileProfile
164
+ function y(l) {
165
+ const t = z(), r = f(
166
+ p((n) => ({
167
+ profile: n.profile,
168
+ mobileProfile: n.mobileProfile
124
169
  }))
170
+ ), s = Array.isArray(l.links[0]) ? l.links : [l.links], a = T(
171
+ {},
172
+ {
173
+ enabled: l.links.flat().some((n) => n.badge === "UNREAD_NOTIFICATIONS_COUNT"),
174
+ refetchInterval: 5e3
175
+ }
125
176
  );
126
177
  return /* @__PURE__ */ i("nav", { className: "mt-xl space-y-xl", children: [
127
- /* @__PURE__ */ e("ul", { children: t.links.map((o, n) => /* @__PURE__ */ e(
178
+ s.map((n, O) => /* @__PURE__ */ e("ul", { children: n.map((o, w) => /* @__PURE__ */ e(
128
179
  "li",
129
180
  {
130
- className: "border-gray-200 block border-x border-b bg-white first:rounded-t-xl first:border-t last:rounded-b-xl",
181
+ className: "bg-bg-primary-alt block first:rounded-t-xl last:rounded-b-xl",
131
182
  children: /* @__PURE__ */ i(
132
- N,
183
+ v,
133
184
  {
134
185
  href: o.href,
135
186
  onClick: () => {
136
187
  r.profile.setOpen(!1), r.mobileProfile.setOpen(!1);
137
188
  },
138
- className: "flex w-full items-center gap-lg px-xl py-xl text-left text-sm font-semibold",
189
+ className: "flex w-full items-center px-xl py-xl text-left text-sm font-semibold",
139
190
  children: [
140
- /* @__PURE__ */ e(o.icon, { className: "size-5" }),
141
- /* @__PURE__ */ e("span", { className: "grow", children: o.label }),
142
- /* @__PURE__ */ e(f, { className: "text-gray-400 size-5" })
191
+ /* @__PURE__ */ e(o.icon, { className: "text-text-quarterary-500 size-5" }),
192
+ /* @__PURE__ */ e("span", { className: "ml-lg grow", children: o.label }),
193
+ o.badge === "UNREAD_NOTIFICATIONS_COUNT" && /* @__PURE__ */ e("span", { className: "border-utility-brand-200 bg-utility-brand-50 text-utility-brand-700 mr-md flex h-5.5 min-w-6 items-center justify-center rounded-full border text-xs font-medium leading-tight", children: d(a.data, {
194
+ compact: !0
195
+ }) }),
196
+ o.badge === "REWARDS_COUNT" && /* @__PURE__ */ e("span", { className: "border-utility-brand-200 bg-utility-brand-50 text-utility-brand-700 mr-md flex h-5.5 min-w-6 items-center justify-center rounded-full border text-xs font-medium leading-tight", children: d(a.data, {
197
+ compact: !0
198
+ }) }),
199
+ o.badge === "WARNING" && /* @__PURE__ */ e("span", { className: "border-utility-warning-200 bg-utility-warning-50 text-utility-warning-500 mr-md flex size-5.5 items-center justify-center rounded-full border", children: /* @__PURE__ */ e(W, { className: "size-3" }) }),
200
+ /* @__PURE__ */ e(h, { className: "text-text-quarterary-500 size-5" })
143
201
  ]
144
202
  }
145
203
  )
146
204
  },
147
- o.href + n
148
- )) }),
149
- /* @__PURE__ */ e("ul", { children: /* @__PURE__ */ e("li", { className: "border-gray-200 block rounded-xl border bg-white", children: /* @__PURE__ */ i(
205
+ o.href + w
206
+ )) }, O)),
207
+ /* @__PURE__ */ e("ul", { children: /* @__PURE__ */ e("li", { className: "bg-bg-primary-alt block first:rounded-t-xl last:rounded-b-xl", children: /* @__PURE__ */ i(
150
208
  "button",
151
209
  {
152
210
  type: "button",
153
- className: "flex w-full items-center gap-lg px-xl py-xl text-left text-sm font-semibold",
154
- disabled: l.isPending,
211
+ className: "flex w-full items-center px-xl py-xl text-left text-sm font-semibold",
212
+ disabled: t.isPending,
155
213
  onClick: () => {
156
- l.mutate(), r.profile.setOpen(!1), r.mobileProfile.setOpen(!1);
214
+ t.mutate(), r.profile.setOpen(!1), r.mobileProfile.setOpen(!1);
157
215
  },
158
216
  children: [
159
- /* @__PURE__ */ e(C, { className: "size-5" }),
160
- /* @__PURE__ */ e("span", { className: "grow", children: "Log Out" }),
161
- /* @__PURE__ */ e(f, { className: "text-gray-400 size-5" })
217
+ /* @__PURE__ */ e(S, { className: "text-text-quarterary-500 size-5" }),
218
+ /* @__PURE__ */ e("span", { className: "ml-lg grow", children: "Log Out" }),
219
+ /* @__PURE__ */ e(h, { className: "text-gray-400 text-text-quarterary-500 size-5" })
162
220
  ]
163
221
  }
164
222
  ) }) })
165
223
  ] });
166
224
  }
167
- function x() {
168
- var o;
169
- const t = P(), l = k({
225
+ function N() {
226
+ var s;
227
+ const l = I(), t = A({
170
228
  refetchInterval: 1e3
171
- }), r = c(
172
- d((n) => ({
173
- profile: n.profile,
174
- mobileProfile: n.mobileProfile,
175
- depositWithdrawal: n.depositWithdrawal
229
+ }), r = f(
230
+ p((a) => ({
231
+ profile: a.profile,
232
+ mobileProfile: a.mobileProfile,
233
+ depositWithdrawal: a.depositWithdrawal
176
234
  }))
177
235
  );
178
- return /* @__PURE__ */ i("div", { className: "border-gray-200 mt-3 rounded-lg border bg-white p-xl", children: [
179
- /* @__PURE__ */ e("div", { className: "border-gray-200 bg-gray-50 text-gray-600 w-fit rounded-sm border px-1.5 py-0.5 text-xs font-medium", children: "Available Balance" }),
180
- /* @__PURE__ */ e("div", { className: "mt-2 text-3xl font-semibold", children: O((o = l.data) == null ? void 0 : o.balance, {
181
- currency: t == null ? void 0 : t.currency.code,
236
+ return /* @__PURE__ */ i("div", { className: "border-border-primary bg-bg-tertiary mt-3 rounded-xl border p-xl", children: [
237
+ /* @__PURE__ */ e("div", { className: "text-text-secondary-700 text-sm", children: "Total Balance" }),
238
+ /* @__PURE__ */ e("div", { className: "text-3xl font-bold", children: d((s = t.data) == null ? void 0 : s.balance, {
239
+ currency: l == null ? void 0 : l.currency.code,
182
240
  minDecimalPlaces: 2
183
241
  }) }),
242
+ /* @__PURE__ */ i("div", { className: "mt-1.5 flex gap-7xl", children: [
243
+ /* @__PURE__ */ i("div", { children: [
244
+ /* @__PURE__ */ e("p", { className: "text-text-secondary-700 text-2xs", children: "Deposit Balance" }),
245
+ /* @__PURE__ */ e("p", { className: "text-medium text-text-primary-brand", children: "₱70.00" })
246
+ ] }),
247
+ /* @__PURE__ */ i("div", { children: [
248
+ /* @__PURE__ */ e("p", { className: "text-text-secondary-700 text-2xs", children: "Wallet Balance" }),
249
+ /* @__PURE__ */ e("p", { className: "text-medium text-text-primary-brand", children: "₱70.00" })
250
+ ] })
251
+ ] }),
184
252
  /* @__PURE__ */ i("div", { className: "mt-3 flex gap-lg", children: [
185
253
  /* @__PURE__ */ e(
186
- u,
254
+ x,
187
255
  {
188
256
  size: "xs",
189
257
  variant: "outline",
190
- colorScheme: "gray",
191
258
  onClick: () => {
192
259
  r.depositWithdrawal.setOpen(!0), r.depositWithdrawal.setTab("WITHDRAWAL"), r.profile.setOpen(!1), r.mobileProfile.setOpen(!1);
193
260
  },
@@ -195,7 +262,7 @@ function x() {
195
262
  }
196
263
  ),
197
264
  /* @__PURE__ */ e(
198
- u,
265
+ x,
199
266
  {
200
267
  size: "xs",
201
268
  onClick: () => {
@@ -208,5 +275,5 @@ function x() {
208
275
  ] });
209
276
  }
210
277
  export {
211
- ze as Account
278
+ $e as Account
212
279
  };
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),u=require("embla-carousel-autoplay"),d=require("embla-carousel-react"),f=require("next/image"),g=require("next/link"),l=require("react"),h=require("tailwind-merge");require("../../utils/capitalize.js");const q=require("../../utils/dataAttr.js");require("../../utils/parseDecimal.js");require("../../constants/index.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");function x(n){const[c,e]=d({loop:!0,align:"start"},[u({playOnInit:!0,delay:5e3})]),[i,o]=l.useState(0);return l.useEffect(()=>{function t(r){o((r==null?void 0:r.selectedScrollSnap())??0)}return e==null||e.on("scroll",t),e==null||e.on("init",t),()=>{e==null||e.on("init",t),e==null||e.off("scroll",t)}},[e]),s.jsxs("div",{className:h.twMerge("relative",n.className),children:[s.jsx("div",{ref:c,className:"overflow-hidden",children:s.jsx("div",{className:"flex gap-2",children:n.banners.map((t,r)=>{const a=s.jsx(f,{src:t.src,alt:"",width:1200,height:300,className:"block h-auto w-full rounded-xl",priority:r===0});return s.jsx(l.Fragment,{children:t.redirectUrl?s.jsx(g,{href:t.redirectUrl,className:"block w-full shrink-0",children:a}):s.jsx("div",{className:"w-full shrink-0",children:a})},r)})})}),s.jsx("div",{className:"absolute bottom-lg left-1/2 flex w-fit -translate-x-1/2 gap-2",children:n.banners.map((t,r)=>s.jsx("button",{type:"button",className:"border-gray-200 ui-active:bg-gray-800 bg-gray-400 size-3 shrink-0 rounded-full border transition-all duration-300 ui-active:w-9",onClick:()=>{e==null||e.scrollTo(r)},"aria-label":`Go to slide ${r+1}`,"data-active":q.dataAttr(r===i)},r))})]})}exports.Banner=x;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),u=require("embla-carousel-autoplay"),d=require("embla-carousel-react"),f=require("next/image"),h=require("next/link"),l=require("react"),g=require("tailwind-merge");require("../../utils/capitalize.js");const q=require("../../utils/dataAttr.js");require("../../utils/parseDecimal.js");require("../../constants/index.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");function x(n){const[i,e]=d({loop:!0,align:"start"},[u({playOnInit:!0,delay:5e3})]),[c,o]=l.useState(0);return l.useEffect(()=>{function t(r){o((r==null?void 0:r.selectedScrollSnap())??0)}return e==null||e.on("scroll",t),e==null||e.on("init",t),()=>{e==null||e.on("init",t),e==null||e.off("scroll",t)}},[e]),s.jsxs("div",{className:g.twMerge("relative",n.className),children:[s.jsx("div",{ref:i,className:"overflow-hidden",children:s.jsx("div",{className:"flex gap-2",children:n.banners.map((t,r)=>{const a=s.jsx(f,{src:t.src,alt:"",width:1200,height:300,className:"block h-auto w-full rounded-xl",priority:r===0});return s.jsx(l.Fragment,{children:t.redirectUrl?s.jsx(h,{href:t.redirectUrl,className:"block w-full shrink-0",children:a}):s.jsx("div",{className:"w-full shrink-0",children:a})},r)})})}),s.jsx("div",{className:"absolute bottom-lg left-1/2 flex w-fit -translate-x-1/2 gap-2",children:n.banners.map((t,r)=>s.jsx("button",{type:"button",className:"ui-active:bg-brand-500 bg-gray-300 size-3 shrink-0 rounded-full border border-white transition-all duration-300 ui-active:w-9",onClick:()=>{e==null||e.scrollTo(r)},"aria-label":`Go to slide ${r+1}`,"data-active":q.dataAttr(r===c)},r))})]})}exports.Banner=x;
@@ -7,14 +7,14 @@ import d from "next/link";
7
7
  import { useState as h, useEffect as g, Fragment as p } from "react";
8
8
  import { twMerge as v } from "tailwind-merge";
9
9
  import "../../utils/capitalize.mjs";
10
- import { dataAttr as N } from "../../utils/dataAttr.mjs";
10
+ import { dataAttr as w } from "../../utils/dataAttr.mjs";
11
11
  import "../../utils/parseDecimal.mjs";
12
12
  import "../../constants/index.mjs";
13
13
  import "../../utils/getLocaleInfo.mjs";
14
14
  import "../../utils/getQueryClient.mjs";
15
15
  import "../../utils/isMobile.mjs";
16
16
  function G(l) {
17
- const [s, r] = u(
17
+ const [n, r] = u(
18
18
  {
19
19
  loop: !0,
20
20
  align: "start"
@@ -25,7 +25,7 @@ function G(l) {
25
25
  delay: 5e3
26
26
  })
27
27
  ]
28
- ), [n, i] = h(0);
28
+ ), [s, i] = h(0);
29
29
  return g(() => {
30
30
  function e(t) {
31
31
  i((t == null ? void 0 : t.selectedScrollSnap()) ?? 0);
@@ -34,7 +34,7 @@ function G(l) {
34
34
  r == null || r.on("init", e), r == null || r.off("scroll", e);
35
35
  };
36
36
  }, [r]), /* @__PURE__ */ c("div", { className: v("relative", l.className), children: [
37
- /* @__PURE__ */ o("div", { ref: s, className: "overflow-hidden", children: /* @__PURE__ */ o("div", { className: "flex gap-2", children: l.banners.map((e, t) => {
37
+ /* @__PURE__ */ o("div", { ref: n, className: "overflow-hidden", children: /* @__PURE__ */ o("div", { className: "flex gap-2", children: l.banners.map((e, t) => {
38
38
  const a = /* @__PURE__ */ o(
39
39
  f,
40
40
  {
@@ -59,12 +59,12 @@ function G(l) {
59
59
  "button",
60
60
  {
61
61
  type: "button",
62
- className: "border-gray-200 ui-active:bg-gray-800 bg-gray-400 size-3 shrink-0 rounded-full border transition-all duration-300 ui-active:w-9",
62
+ className: "ui-active:bg-brand-500 bg-gray-300 size-3 shrink-0 rounded-full border border-white transition-all duration-300 ui-active:w-9",
63
63
  onClick: () => {
64
64
  r == null || r.scrollTo(t);
65
65
  },
66
66
  "aria-label": `Go to slide ${t + 1}`,
67
- "data-active": N(t === n)
67
+ "data-active": w(t === s)
68
68
  },
69
69
  t
70
70
  )) })
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),m=require("@ark-ui/react"),p=require("@date-fns/tz"),h=require("date-fns"),z=require("react"),I=require("zod");require("@opexa/portal-sdk-core");require("@tanstack/react-query");require("tiny-invariant");require("../../constants/index.js");const d=require("../../utils/capitalize.js"),C=require("../../utils/formatNumber.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");require("../../utils/parseDecimal.js");const Z=require("../../client/hooks/useBetRecordsQuery.js");require("lodash-es");require("@opexa/portal-sdk-core/object-id");require("../../client/hooks/useGlobalStore.js");const O=require("../../client/hooks/useInfiniteQueryHelper.js"),J=require("../../client/hooks/useLocaleInfo.js");require("usehooks-ts");const N=require("../../icons/CheckIcon.js"),y=require("../../icons/ChevronDownIcon.js"),D=require("../../icons/ChevronLeftIcon.js"),P=require("../../icons/ChevronRightIcon.js"),$=require("../../icons/File02Icon.js"),K=require("../../icons/SpinnerIcon.js");require("../../ui/AlertDialog/AlertDialog.js");require("../../ui/Avatar/Avatar.js");require("../../ui/Badge/Badge.js");require("../../ui/Button/button.recipe.js");require("../../ui/Checkbox/Checkbox.js");require("../../ui/Clipboard/Clipboard.js");const s=require("../../ui/DatePicker/DatePicker.js");require("../../ui/Dialog/Dialog.js");require("../../ui/Drawer/Drawer.js");require("../../ui/Field/Field.js");const E=require("../../ui/IconButton/IconButton.js");require("../../ui/NumberInput/NumberInput.js");require("../../ui/PinInput/PinInput.js");require("../../ui/Popover/Popover.js");require("tailwind-merge");const l=require("../../ui/SegmentGroup/SegmentGroup.js"),i=require("../../ui/Select/Select.js"),r=require("../../ui/Table/Table.js");require("../../ui/Tabs/Tabs.js");const W=require("../Empty/Empty.js");function X(o){var f,S;const[B,q]=z.useState("all"),[a,x]=z.useReducer((t,n)=>({...t,...n}),{page:1,pageSize:10,type:o.gameTypes[0]}),u=J.useLocaleInfo(),b=m.createListCollection({items:o.gameProviders,itemToValue:t=>t,itemToString:t=>d.capitalize(t,{delimiter:d.capitalize.delimiters.UNDERSCORE})}),{page:M,pageSize:k,hasNextPage:L,hasPrevPage:_,next:A,prev:F,rows:v,setPageSize:U,totalPages:G,loading:j,firstPage:g}=O.useInfiniteQueryHelper(Z.useBetRecordsQuery,{filter:{...a.type&&{game__type:{equal:a.type}},...a.provider&&{game__provider:{equal:a.provider}},...a.status&&{status:{equal:a.status}},...a.timestamp&&{dateTimeCreated:{...a.timestamp.start&&{greaterThanOrEqual:new p.TZDateMini(h.startOfDay(a.timestamp.start),u.timezone).toISOString()},...a.timestamp.end&&{lesserThanOrEqual:new p.TZDateMini(h.endOfDay(a.timestamp.end),u.timezone).toISOString()}}}}});return e.jsxs("div",{className:o.className,children:[e.jsx("h2",{className:"text-lg font-semibold",children:"Bet Records"}),e.jsx("p",{className:"text-gray-600 mt-xs text-xs",children:"View your bet records"}),e.jsx("div",{className:"mt-2xl pb-2xl",children:e.jsxs(l.Root,{value:a.type,onValueChange:t=>{g(),x({type:I.z.enum(o.gameTypes??[]).safeParse(t.value).data??null})},children:[o.gameTypes.map(t=>e.jsxs(l.Item,{value:t,children:[e.jsx(l.ItemText,{children:d.capitalize(t,{delimiter:d.capitalize.delimiters.UNDERSCORE})}),e.jsx(l.ItemControl,{}),e.jsx(l.ItemHiddenInput,{})]},t)),e.jsx(l.Indicator,{})]})}),e.jsxs("div",{className:"mt-4xl",children:[e.jsxs("div",{className:"flex items-center gap-lg",children:[e.jsxs(s.Root,{lazyMount:!0,unmountOnExit:!0,value:[(f=a.timestamp)==null?void 0:f.start,(S=a.timestamp)==null?void 0:S.end].filter(Boolean).map(t=>m.parseDate(t)),onValueChange:t=>{var n,c;g(),x({timestamp:{start:(n=t.value.at(0))==null?void 0:n.toDate(H),end:(c=t.value.at(1))==null?void 0:c.toDate(H)}})},onOpenChange:t=>{t.open||a.timestamp||q("all")},selectionMode:"range",closeOnSelect:!1,positioning:{gutter:20,placement:"bottom"},children:[e.jsxs(l.Root,{value:B,onValueChange:t=>{const n=Y.parse(t.value);if(n==="today"){const c=new Date;x({timestamp:{start:h.startOfDay(c),end:h.endOfDay(c)}})}else x({timestamp:null});g(),q(n)},children:[e.jsxs(l.Item,{value:"all",children:[e.jsx(l.ItemText,{children:"All"}),e.jsx(l.ItemControl,{}),e.jsx(l.ItemHiddenInput,{})]}),e.jsxs(l.Item,{value:"today",children:[e.jsx(l.ItemText,{children:"Today"}),e.jsx(l.ItemControl,{}),e.jsx(l.ItemHiddenInput,{})]}),e.jsx(s.Context,{children:t=>e.jsx(l.Item,{value:"custom",onClick:()=>t.setOpen(!0),children:e.jsxs(s.Control,{children:[e.jsx(l.ItemText,{children:"Custom"}),e.jsx(l.ItemControl,{}),e.jsx(l.ItemHiddenInput,{})]})})}),e.jsx(l.Indicator,{})]}),e.jsx(m.Portal,{children:e.jsx(s.Positioner,{children:e.jsx(s.Content,{children:e.jsx(s.View,{view:"day",children:e.jsx(s.Context,{children:t=>e.jsxs(e.Fragment,{children:[e.jsxs(s.ViewControl,{children:[e.jsx(s.PrevTrigger,{children:e.jsx(D.ChevronLeftIcon,{})}),e.jsx(s.ViewTrigger,{children:e.jsx(s.RangeText,{})}),e.jsx(s.NextTrigger,{children:e.jsx(P.ChevronRightIcon,{})})]}),e.jsxs(s.Table,{children:[e.jsx(s.TableHead,{children:e.jsx(s.TableRow,{children:t.weekDays.map((n,c)=>e.jsx(s.TableHeader,{children:n.short.substring(0,2)},c))})}),e.jsx(s.TableBody,{children:t.weeks.map((n,c)=>e.jsx(s.TableRow,{children:n.map((R,Q)=>e.jsx(s.TableCell,{value:R,children:e.jsx(s.TableCellTrigger,{children:R.day})},Q))},c))})]})]})})})})})})]}),e.jsx("div",{className:"grow"}),e.jsxs(i.Root,{collection:b,value:a.provider?[a.provider]:[],onValueChange:t=>{const n=I.z.enum(o.gameProviders??[]).safeParse(t.value.at(0)).data;g(),x({provider:n??null})},lazyMount:!0,deselectable:!0,children:[e.jsxs(i.Trigger,{children:[e.jsx(i.ValueText,{placeholder:"Game Vendor"}),e.jsx(i.Indicator,{asChild:!0,children:e.jsx(y.ChevronDownIcon,{})})]}),e.jsx(m.Portal,{children:e.jsx(i.Positioner,{children:e.jsx(i.Content,{children:e.jsx(i.ItemGroup,{children:b.items.map(t=>e.jsxs(i.Item,{item:t,children:[e.jsx(i.ItemText,{children:d.capitalize(t,{delimiter:d.capitalize.delimiters.UNDERSCORE})}),e.jsx(i.ItemIndicator,{asChild:!0,children:e.jsx(N.CheckIcon,{})})]},t))})})})})]}),e.jsxs(i.Root,{collection:w,value:a.status?[a.status]:[],onValueChange:t=>{const n=I.z.enum(V).safeParse(t.value.at(0)).data;g(),x({status:n??null})},lazyMount:!0,deselectable:!0,children:[e.jsxs(i.Trigger,{children:[e.jsx(i.ValueText,{placeholder:"Status"}),e.jsx(i.Indicator,{asChild:!0,children:e.jsx(y.ChevronDownIcon,{})})]}),e.jsx(m.Portal,{children:e.jsx(i.Positioner,{children:e.jsx(i.Content,{children:e.jsx(i.ItemGroup,{children:w.items.map(t=>e.jsxs(i.Item,{item:t,children:[e.jsx(i.ItemText,{children:d.capitalize(t,{delimiter:d.capitalize.delimiters.UNDERSCORE})}),e.jsx(i.ItemIndicator,{asChild:!0,children:e.jsx(N.CheckIcon,{})})]},t))})})})})]})]}),v.length<=0&&e.jsx(W.Empty,{icon:j?K.SpinnerIcon:$.File02Icon,title:j?"Just a moment":"No data",message:j?"Fetching latest bet records...":"No data is currently available.",className:"mt-8 lg:mt-16"}),v.length>=1&&e.jsxs("div",{className:"border-gray-200 mt-lg rounded-xl border",children:[e.jsx("div",{className:"border-gray-200 overflow-hidden overflow-x-auto rounded-xl border-b",children:e.jsxs(r.Root,{className:"border-0",children:[e.jsx(r.Header,{children:e.jsxs(r.Row,{children:[e.jsx(r.Heading,{children:"Bet Time"}),e.jsx(r.Heading,{children:"Settlement Time"}),e.jsx(r.Heading,{children:"Bet Content"}),e.jsx(r.Heading,{children:"Odds"}),e.jsx(r.Heading,{children:"Bet Amount"}),e.jsx(r.Heading,{children:"Valid Bet"}),e.jsx(r.Heading,{children:"Settled Amount"}),e.jsx(r.Heading,{children:"Jackpot Contribution"}),e.jsx(r.Heading,{children:"Jackpot Payout"}),e.jsx(r.Heading,{children:"Bet Status"}),e.jsx(r.Heading,{children:"Game Name"}),e.jsx(r.Heading,{children:"Vendor Round ID"})]})}),e.jsx(r.Body,{children:v.map(t=>{var n;return e.jsxs(r.Row,{children:[e.jsx(r.Cell,{children:h.format(t.dateTimeCreated,"yyyy MMM dd hh:mma",{in:p.tz(u.timezone)})}),e.jsx(r.Cell,{children:!!t.dateTimeSettled&&h.format(t.dateTimeSettled,"yyyy MMM dd hh:mma",{in:p.tz(u.timezone)})}),e.jsx(r.Cell,{children:t==null?void 0:t.betContent}),e.jsx(r.Cell,{children:(n=t.metadata)==null?void 0:n.odds}),e.jsx(r.Cell,{children:C.formatNumber(t.bet,{currency:u.currency.code,minDecimalPlaces:2})}),e.jsx(r.Cell,{children:t.validBet}),e.jsx(r.Cell,{children:C.formatNumber(t.payout,{currency:u.currency.code,minDecimalPlaces:2})}),e.jsx(r.Cell,{children:C.formatNumber(t.jackpotContribution,{currency:u.currency.code,minDecimalPlaces:2})}),e.jsx(r.Cell,{children:C.formatNumber(t.jackpotPayout,{currency:u.currency.code,minDecimalPlaces:2})}),e.jsx(r.Cell,{children:t.status}),e.jsx(r.Cell,{children:t.game.name}),e.jsx(r.Cell,{children:t.vendorRoundId})]},t.id)})})]})}),e.jsxs("div",{className:"flex items-center gap-lg px-4 py-3",children:[e.jsxs("p",{children:["Page ",M," of ",G]}),e.jsx("div",{className:"grow"}),e.jsx(i.Root,{size:"sm",value:[k.toString()],onValueChange:t=>{const n=parseInt(t.value[0]),c=isNaN(n)?10:n;U(c)},collection:T,lazyMount:!0,children:e.jsxs(i.Trigger,{children:[e.jsx(i.ValueText,{}),e.jsx(i.Indicator,{asChild:!0,children:e.jsx(y.ChevronDownIcon,{})}),e.jsx(m.Portal,{children:e.jsx(i.Positioner,{children:e.jsx(i.Content,{children:T.items.map(t=>e.jsx(i.Item,{item:t,children:T.stringifyItem(t)},t))})})})]})}),e.jsxs("div",{children:[e.jsx(E.IconButton,{size:"sm",variant:"outline",colorScheme:"gray",className:"rounded-r-none border-r-0",disabled:!_||j,onClick:()=>F(),children:e.jsx(D.ChevronLeftIcon,{className:"size-5"})}),e.jsx(E.IconButton,{size:"sm",variant:"outline",colorScheme:"gray",className:"rounded-l-none",disabled:!L||j,onClick:()=>A(),children:e.jsx(P.ChevronRightIcon,{className:"size-5"})})]})]})]})]})]})}const V=["CANCELLED","SETTLED","STARTED"],T=m.createListCollection({items:O.useInfiniteQueryHelper.config.pageSizes,itemToValue:o=>o.toString(),itemToString:o=>`${o} items per page`}),w=m.createListCollection({items:V,itemToValue:o=>o,itemToString:o=>d.capitalize(o,{delimiter:d.capitalize.delimiters.UNDERSCORE})}),Y=I.z.enum(["all","today","custom"]),H=Intl.DateTimeFormat().resolvedOptions().timeZone;exports.BetRecords=X;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),x=require("@ark-ui/react"),g=require("@date-fns/tz"),u=require("date-fns"),w=require("react"),J=require("tailwind-merge"),C=require("zod");require("@opexa/portal-sdk-core");require("@tanstack/react-query");require("tiny-invariant");require("../../constants/index.js");const c=require("../../utils/capitalize.js"),y=require("../../utils/formatNumber.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");require("../../utils/parseDecimal.js");const W=require("../../client/hooks/useBetRecordsQuery.js");require("lodash-es");require("@opexa/portal-sdk-core/object-id");require("../../client/hooks/useGlobalStore.js");const B=require("../../client/hooks/useInfiniteQueryHelper.js"),$=require("../../client/hooks/useLocaleInfo.js");require("usehooks-ts");const z=require("../../icons/CheckIcon.js"),v=require("../../icons/ChevronDownIcon.js"),R=require("../../icons/ChevronLeftIcon.js"),D=require("../../icons/ChevronRightIcon.js"),K=require("../../icons/File02Icon.js"),X=require("../../icons/SpinnerIcon.js");require("../../ui/AlertDialog/AlertDialog.js");require("../../ui/Avatar/Avatar.js");const E=require("../../ui/Badge/Badge.js");require("../../ui/Button/button.recipe.js");require("../../ui/Checkbox/Checkbox.js");require("../../ui/Clipboard/Clipboard.js");require("../../ui/Collapsible/Collapsible.js");const s=require("../../ui/DatePicker/DatePicker.js");require("../../ui/Dialog/Dialog.js");require("../../ui/Drawer/Drawer.js");require("../../ui/Field/Field.js");const P=require("../../ui/IconButton/IconButton.js");require("../../ui/NumberInput/NumberInput.js");require("../../ui/PasswordInput/PasswordInput.js");require("../../ui/PinInput/PinInput.js");require("../../ui/Popover/Popover.js");require("../../ui/Progress/Progress.js");const n=require("../../ui/SegmentGroup/SegmentGroup.js"),i=require("../../ui/Select/Select.js"),r=require("../../ui/Table/Table.js");require("../../ui/Tabs/Tabs.js");const Y=require("../Empty/Empty.js");function ee(o){var f,q;const[k,N]=w.useState("all"),[a,h]=w.useReducer((t,l)=>({...t,...l}),{page:1,pageSize:10,type:o.gameTypes[0]}),d=$.useLocaleInfo(),b=x.createListCollection({items:o.gameProviders,itemToValue:t=>t,itemToString:t=>c.capitalize(t,{delimiter:c.capitalize.delimiters.UNDERSCORE})}),{page:M,pageSize:L,hasNextPage:A,hasPrevPage:F,next:U,prev:_,rows:I,setPageSize:G,totalPages:Q,loading:j,firstPage:p}=B.useInfiniteQueryHelper(W.useBetRecordsQuery,{filter:{...a.type&&{game__type:{equal:a.type}},...a.provider&&{game__provider:{equal:a.provider}},...a.status&&{status:{equal:a.status}},...a.timestamp&&{dateTimeCreated:{...a.timestamp.start&&{greaterThanOrEqual:new g.TZDateMini(u.startOfDay(a.timestamp.start),d.timezone).toISOString()},...a.timestamp.end&&{lesserThanOrEqual:new g.TZDateMini(u.endOfDay(a.timestamp.end),d.timezone).toISOString()}}}}});return e.jsxs("div",{className:J.twMerge("px-4 pb-3xl pt-4",o.className),children:[e.jsx("h2",{className:"text-text-secondary-700 text-sm font-semibold leading-tight",children:"Bet Records"}),e.jsx("p",{className:"text-text-tertiary-600 mt-xs text-sm leading-tight",children:"Review your betting history"}),e.jsx("div",{className:"mt-lg",children:e.jsxs(n.Root,{value:a.type,onValueChange:t=>{p(),h({type:C.z.enum(o.gameTypes??[]).safeParse(t.value).data??null})},children:[o.gameTypes.map(t=>e.jsxs(n.Item,{value:t,children:[e.jsx(n.ItemText,{children:c.capitalize(t,{delimiter:c.capitalize.delimiters.UNDERSCORE})}),e.jsx(n.ItemControl,{}),e.jsx(n.ItemHiddenInput,{})]},t)),e.jsx(n.Indicator,{})]})}),e.jsx("h3",{className:"text-text-secondary-700 mt-3xl text-sm font-semibold",children:"Table"}),e.jsxs("div",{className:"mt-xl flex flex-col gap-lg lg:flex-row lg:items-center",children:[e.jsxs(s.Root,{lazyMount:!0,unmountOnExit:!0,value:[(f=a.timestamp)==null?void 0:f.start,(q=a.timestamp)==null?void 0:q.end].filter(Boolean).map(t=>x.parseDate(t)),onValueChange:t=>{var l,m;p(),h({timestamp:{start:(l=t.value.at(0))==null?void 0:l.toDate(H),end:(m=t.value.at(1))==null?void 0:m.toDate(H)}})},onOpenChange:t=>{t.open||a.timestamp||N("all")},selectionMode:"range",closeOnSelect:!1,positioning:{gutter:20,placement:"bottom"},children:[e.jsxs(n.Root,{value:k,onValueChange:t=>{const l=te.parse(t.value);if(l==="today"){const m=new Date;h({timestamp:{start:u.startOfDay(m),end:u.endOfDay(m)}})}else h({timestamp:null});p(),N(l)},className:"w-full lg:w-fit",children:[e.jsxs(n.Item,{value:"all",className:"w-full lg:w-auto",children:[e.jsx(n.ItemText,{children:"All"}),e.jsx(n.ItemControl,{}),e.jsx(n.ItemHiddenInput,{})]}),e.jsxs(n.Item,{value:"today",className:"w-full lg:w-auto",children:[e.jsx(n.ItemText,{children:"Today"}),e.jsx(n.ItemControl,{}),e.jsx(n.ItemHiddenInput,{})]}),e.jsx(s.Context,{children:t=>e.jsx(n.Item,{value:"custom",onClick:()=>t.setOpen(!0),className:"w-full lg:w-auto",children:e.jsxs(s.Control,{children:[e.jsx(n.ItemText,{children:"Custom"}),e.jsx(n.ItemControl,{}),e.jsx(n.ItemHiddenInput,{})]})})}),e.jsx(n.Indicator,{})]}),e.jsx(x.Portal,{children:e.jsx(s.Positioner,{children:e.jsx(s.Content,{children:e.jsx(s.View,{view:"day",children:e.jsx(s.Context,{children:t=>e.jsxs(e.Fragment,{children:[e.jsxs(s.ViewControl,{children:[e.jsx(s.PrevTrigger,{children:e.jsx(R.ChevronLeftIcon,{})}),e.jsx(s.ViewTrigger,{children:e.jsx(s.RangeText,{})}),e.jsx(s.NextTrigger,{children:e.jsx(D.ChevronRightIcon,{})})]}),e.jsxs(s.Table,{children:[e.jsx(s.TableHead,{children:e.jsx(s.TableRow,{children:t.weekDays.map((l,m)=>e.jsx(s.TableHeader,{children:l.short.substring(0,2)},m))})}),e.jsx(s.TableBody,{children:t.weeks.map((l,m)=>e.jsx(s.TableRow,{children:l.map((S,Z)=>e.jsx(s.TableCell,{value:S,children:e.jsx(s.TableCellTrigger,{children:S.day})},Z))},m))})]})]})})})})})})]}),e.jsx("div",{className:"hidden grow lg:block"}),e.jsxs(i.Root,{collection:b,value:a.provider?[a.provider]:[],onValueChange:t=>{const l=C.z.enum(o.gameProviders??[]).safeParse(t.value.at(0)).data;p(),h({provider:l??null})},lazyMount:!0,deselectable:!0,positioning:{sameWidth:!0},children:[e.jsxs(i.Trigger,{className:"w-full lg:w-[14rem]",children:[e.jsx(i.ValueText,{placeholder:"Game Vendor"}),e.jsx(i.Indicator,{asChild:!0,children:e.jsx(v.ChevronDownIcon,{})})]}),e.jsx(x.Portal,{children:e.jsx(i.Positioner,{children:e.jsx(i.Content,{children:e.jsx(i.ItemGroup,{children:b.items.map(t=>e.jsxs(i.Item,{item:t,children:[e.jsx(i.ItemText,{children:c.capitalize(t,{delimiter:c.capitalize.delimiters.UNDERSCORE})}),e.jsx(i.ItemIndicator,{asChild:!0,children:e.jsx(z.CheckIcon,{})})]},t))})})})})]}),e.jsxs(i.Root,{collection:O,value:a.status?[a.status]:[],onValueChange:t=>{const l=C.z.enum(V).safeParse(t.value.at(0)).data;p(),h({status:l??null})},lazyMount:!0,deselectable:!0,positioning:{sameWidth:!0},children:[e.jsxs(i.Trigger,{className:"w-full lg:w-[14rem]",children:[e.jsx(i.ValueText,{placeholder:"Status"}),e.jsx(i.Indicator,{asChild:!0,children:e.jsx(v.ChevronDownIcon,{})})]}),e.jsx(x.Portal,{children:e.jsx(i.Positioner,{children:e.jsx(i.Content,{children:e.jsx(i.ItemGroup,{children:O.items.map(t=>e.jsxs(i.Item,{item:t,children:[e.jsx(i.ItemText,{children:c.capitalize(t,{delimiter:c.capitalize.delimiters.UNDERSCORE})}),e.jsx(i.ItemIndicator,{asChild:!0,children:e.jsx(z.CheckIcon,{})})]},t))})})})})]})]}),I.length<=0&&e.jsx(Y.Empty,{icon:j?X.SpinnerIcon:K.File02Icon,title:j?"Just a moment":"No data",message:j?"Fetching latest bet records...":"No data is currently available.",className:"mt-5xl"}),I.length>=1&&e.jsxs("div",{className:"border-border-primary -ml-4 mt-3xl w-dvw border-y lg:-ml-0 lg:w-full lg:rounded-xl lg:border-x",children:[e.jsx("div",{className:"border-border-primary scrollbar-thumb:bg-bg-quaternary scrollbar-track:bg-transparent scrollbar:h-2 scrollbar-thumb:rounded-full overflow-hidden overflow-x-auto rounded-xl rounded-b-none border-b",children:e.jsxs(r.Root,{className:"border-0",children:[e.jsx(r.Header,{children:e.jsxs(r.Row,{children:[e.jsx(r.Heading,{children:"Bet Time"}),e.jsx(r.Heading,{children:"Settlement Time"}),e.jsx(r.Heading,{children:"Bet Content"}),e.jsx(r.Heading,{children:"Odds"}),e.jsx(r.Heading,{children:"Bet Amount"}),e.jsx(r.Heading,{children:"Valid Bet"}),e.jsx(r.Heading,{children:"Settled Amount"}),e.jsx(r.Heading,{children:"Jackpot Contribution"}),e.jsx(r.Heading,{children:"Jackpot Payout"}),e.jsx(r.Heading,{children:"Bet Status"}),e.jsx(r.Heading,{children:"Game Name"}),e.jsx(r.Heading,{children:"Vendor Round ID"})]})}),e.jsx(r.Body,{children:I.map(t=>{var l;return e.jsxs(r.Row,{children:[e.jsxs(r.Cell,{className:"!py-1",children:[e.jsx("div",{className:"leading-tight",children:u.format(t.dateTimeCreated,"MM/dd/yyyy",{in:g.tz(d.timezone)})}),e.jsx("div",{className:"text-text-tertiary-600 leading-tight",children:u.format(t.dateTimeCreated,"hh:mm a",{in:g.tz(d.timezone)})})]}),e.jsx(r.Cell,{className:"!py-1",children:!!t.dateTimeSettled&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"leading-tight",children:u.format(t.dateTimeSettled,"MM/dd/yyyy",{in:g.tz(d.timezone)})}),e.jsx("div",{className:"text-text-tertiary-600 leading-tight",children:u.format(t.dateTimeSettled,"hh:mm a",{in:g.tz(d.timezone)})})]})}),e.jsx(r.Cell,{className:"!py-1",children:(t==null?void 0:t.betContent)||"/"}),e.jsx(r.Cell,{className:"!py-1",children:((l=t.metadata)==null?void 0:l.odds)||"/"}),e.jsx(r.Cell,{className:"!py-1",children:y.formatNumber(t.bet,{currency:d.currency.code,minDecimalPlaces:2})}),e.jsx(r.Cell,{className:"!py-1",children:y.formatNumber(t.validBet,{currency:d.currency.code,minDecimalPlaces:2})}),e.jsx(r.Cell,{className:"!py-1",children:y.formatNumber(t.payout,{currency:d.currency.code,minDecimalPlaces:2})}),e.jsx(r.Cell,{className:"!py-1",children:y.formatNumber(t.jackpotContribution,{currency:d.currency.code,minDecimalPlaces:2})}),e.jsx(r.Cell,{className:"!py-1",children:y.formatNumber(t.jackpotPayout,{currency:d.currency.code,minDecimalPlaces:2})}),e.jsx(r.Cell,{className:"!py-1",children:e.jsx(E.Root,{colorScheme:t.status==="SETTLED"?"success":t.status==="STARTED"?"blue":"danger",children:e.jsx(E.Label,{children:c.capitalize(t.status,{delimiter:c.capitalize.delimiters.UNDERSCORE})})})}),e.jsx(r.Cell,{className:"!py-1",children:t.game.name}),e.jsx(r.Cell,{className:"!py-1",children:t.vendorRoundId})]},t.id)})})]})}),e.jsxs("div",{className:"flex items-center gap-lg px-4 py-3",children:[e.jsxs("p",{className:"text-text-secondary-700 order-2 grow text-center text-sm font-medium lg:order-none lg:grow-0",children:["Page ",M," of ",Q]}),e.jsx("div",{className:"hidden grow lg:block"}),e.jsx(i.Root,{size:"sm",value:[L.toString()],onValueChange:t=>{const l=parseInt(t.value[0]),m=isNaN(l)?10:l;G(m)},collection:T,lazyMount:!0,className:"hidden lg:block",children:e.jsxs(i.Trigger,{children:[e.jsx(i.ValueText,{}),e.jsx(i.Indicator,{asChild:!0,children:e.jsx(v.ChevronDownIcon,{})}),e.jsx(x.Portal,{children:e.jsx(i.Positioner,{children:e.jsx(i.Content,{children:T.items.map(t=>e.jsx(i.Item,{item:t,children:T.stringifyItem(t)},t))})})})]})}),e.jsxs("div",{className:"contents lg:flex",children:[e.jsx(P.IconButton,{size:"sm",variant:"outline",colorScheme:"gray",className:"order-1 lg:order-none lg:rounded-r-none lg:border-r-0",disabled:!F||j,onClick:()=>_(),children:e.jsx(R.ChevronLeftIcon,{className:"size-5"})}),e.jsx(P.IconButton,{size:"sm",variant:"outline",colorScheme:"gray",className:"order-3 lg:order-none lg:rounded-l-none",disabled:!A||j,onClick:()=>U(),children:e.jsx(D.ChevronRightIcon,{className:"size-5"})})]})]})]})]})}const V=["CANCELLED","SETTLED","STARTED"],T=x.createListCollection({items:B.useInfiniteQueryHelper.config.pageSizes,itemToValue:o=>o.toString(),itemToString:o=>`${o} items per page`}),O=x.createListCollection({items:V,itemToValue:o=>o,itemToString:o=>c.capitalize(o,{delimiter:c.capitalize.delimiters.UNDERSCORE})}),te=C.z.enum(["all","today","custom"]),H=Intl.DateTimeFormat().resolvedOptions().timeZone;exports.BetRecords=ee;