@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.
- package/dist/client/hooks/index.d.ts +3 -0
- package/dist/client/hooks/useGlobalStore.d.ts +11 -1
- package/dist/client/hooks/useGlobalStore.js +1 -1
- package/dist/client/hooks/useGlobalStore.mjs +81 -35
- package/dist/client/hooks/useMarkMessageAsReadMutation.d.ts +6 -0
- package/dist/client/hooks/useMarkMessageAsReadMutation.js +1 -0
- package/dist/client/hooks/useMarkMessageAsReadMutation.mjs +39 -0
- package/dist/client/hooks/useMessagesQuery.d.ts +3 -0
- package/dist/client/hooks/useMessagesQuery.js +1 -0
- package/dist/client/hooks/useMessagesQuery.mjs +47 -0
- package/dist/client/hooks/useUnreadMessagesCountQuery.d.ts +3 -0
- package/dist/client/hooks/useUnreadMessagesCountQuery.js +1 -0
- package/dist/client/hooks/useUnreadMessagesCountQuery.mjs +38 -0
- package/dist/client-hooks.js +1 -1
- package/dist/client-hooks.mjs +38 -32
- package/dist/components/Account/Account.d.ts +3 -1
- package/dist/components/Account/Account.js +1 -1
- package/dist/components/Account/Account.mjs +163 -96
- package/dist/components/Banner/Banner.js +1 -1
- package/dist/components/Banner/Banner.mjs +6 -6
- package/dist/components/BetRecords/BetRecords.js +1 -1
- package/dist/components/BetRecords/BetRecords.mjs +357 -325
- package/dist/components/Bonus/Bonus.client.d.ts +2 -0
- package/dist/components/Bonus/Bonus.d.ts +10 -0
- package/dist/components/Bonus/index.d.ts +1 -0
- package/dist/components/Bonuses/Bonuses.d.ts +15 -0
- package/dist/components/Bonuses/Bonuses.js +1 -0
- package/dist/components/Bonuses/Bonuses.mjs +125 -0
- package/dist/components/Bonuses/index.d.ts +1 -0
- package/dist/components/DepositWithdrawal/AmountChoices.js +1 -1
- package/dist/components/DepositWithdrawal/AmountChoices.mjs +9 -6
- package/dist/components/DepositWithdrawal/Deposit/AvailablePromos.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/AvailablePromos.mjs +11 -8
- package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.mjs +5 -2
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.mjs +5 -2
- package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.mjs +16 -13
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.mjs +5 -2
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.mjs +9 -6
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.mjs +18 -15
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.mjs +9 -6
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.mjs +9 -6
- package/dist/components/DepositWithdrawal/DepositWithdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/DepositWithdrawal.mjs +46 -46
- package/dist/components/DepositWithdrawal/PaymentMethods.js +1 -1
- package/dist/components/DepositWithdrawal/PaymentMethods.mjs +26 -23
- package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/GCashWithdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/GCashWithdrawal.mjs +86 -76
- package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.mjs +118 -108
- package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/MayaAppWithdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/MayaAppWithdrawal.mjs +75 -65
- package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal/MayaWithdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal/MayaWithdrawal.mjs +96 -86
- package/dist/components/Disclaimer/Disclaimer.js +1 -1
- package/dist/components/Disclaimer/Disclaimer.mjs +11 -8
- package/dist/components/Empty/Empty.js +1 -1
- package/dist/components/Empty/Empty.mjs +14 -10
- package/dist/components/GameLaunch/GameLaunch.js +1 -1
- package/dist/components/GameLaunch/GameLaunch.mjs +42 -39
- package/dist/components/Games/Games.client.js +1 -1
- package/dist/components/Games/Games.client.mjs +47 -44
- package/dist/components/Games/Games.d.ts +7 -2
- package/dist/components/JackpotCounter/JackpotCounter.d.ts +4 -2
- package/dist/components/JackpotCounter/JackpotCounter.js +1 -1
- package/dist/components/JackpotCounter/JackpotCounter.mjs +38 -34
- package/dist/components/JackpotCounter/JackpotCounterItem.d.ts +3 -1
- package/dist/components/JackpotCounter/JackpotCounterItem.js +1 -1
- package/dist/components/JackpotCounter/JackpotCounterItem.mjs +282 -124
- package/dist/components/JackpotCounter/JackpotCounterItem.module.css.js +1 -1
- package/dist/components/JackpotCounter/JackpotCounterItem.module.css.mjs +11 -8
- package/dist/components/Jackpots/JackpotGameProviders.d.ts +1 -0
- package/dist/components/Jackpots/JackpotItem.d.ts +7 -0
- package/dist/components/Jackpots/JackpotItemMobile.d.ts +7 -0
- package/dist/components/Jackpots/Jackpots.d.ts +8 -0
- package/dist/components/Jackpots/index.d.ts +1 -0
- package/dist/components/Marquee/Marquee.js +1 -1
- package/dist/components/Marquee/Marquee.mjs +12 -14
- package/dist/components/Messages/MessageItem.d.ts +4 -0
- package/dist/components/Messages/MessageItem.js +1 -0
- package/dist/components/Messages/MessageItem.mjs +66 -0
- package/dist/components/Messages/MessagePopup.d.ts +1 -0
- package/dist/components/Messages/MessagePopup.js +1 -0
- package/dist/components/Messages/MessagePopup.mjs +89 -0
- package/dist/components/Messages/Messages.d.ts +1 -0
- package/dist/components/Messages/Messages.js +1 -0
- package/dist/components/Messages/Messages.mjs +147 -0
- package/dist/components/Messages/index.d.ts +1 -0
- package/dist/components/Messages/utils.d.ts +3 -0
- package/dist/components/Messages/utils.js +1 -0
- package/dist/components/Messages/utils.mjs +16 -0
- package/dist/components/Promos/PromoCarousel.js +1 -1
- package/dist/components/Promos/PromoCarousel.mjs +27 -24
- package/dist/components/Promos/PromoGrid.js +1 -1
- package/dist/components/Promos/PromoGrid.mjs +7 -7
- package/dist/components/Promos/PromoItem.js +1 -1
- package/dist/components/Promos/PromoItem.mjs +10 -7
- package/dist/components/Promos/Promos.d.ts +4 -2
- package/dist/components/SignIn/SignIn.d.ts +0 -1
- package/dist/components/SignIn/SignIn.js +1 -1
- package/dist/components/SignIn/SignIn.mjs +32 -41
- package/dist/components/SignIn/SignInForm.js +1 -1
- package/dist/components/SignIn/SignInForm.mjs +167 -160
- package/dist/components/SignUp/SignUp.d.ts +0 -1
- package/dist/components/SignUp/SignUp.js +1 -1
- package/dist/components/SignUp/SignUp.mjs +32 -41
- package/dist/components/SignUp/SignUpForm.js +1 -1
- package/dist/components/SignUp/SignUpForm.mjs +123 -116
- package/dist/components/TopWins/TopWins.client.js +1 -1
- package/dist/components/TopWins/TopWins.client.mjs +14 -14
- package/dist/components/TopWins/TopWins.d.ts +2 -1
- package/dist/components/TournamentCounter/TournamentCounter.d.ts +4 -2
- package/dist/components/TournamentCounter/TournamentCounter.js +1 -1
- package/dist/components/TournamentCounter/TournamentCounter.mjs +27 -24
- package/dist/components/TransactionRecords/DepositRecordsTable.js +1 -1
- package/dist/components/TransactionRecords/DepositRecordsTable.mjs +113 -99
- package/dist/components/TransactionRecords/TableFilters.d.ts +3 -1
- package/dist/components/TransactionRecords/TableFilters.js +1 -1
- package/dist/components/TransactionRecords/TableFilters.mjs +193 -132
- package/dist/components/TransactionRecords/TransactionRecords.js +1 -1
- package/dist/components/TransactionRecords/TransactionRecords.mjs +21 -17
- package/dist/components/TransactionRecords/TransactionRecordsTable.js +1 -1
- package/dist/components/TransactionRecords/TransactionRecordsTable.mjs +89 -77
- package/dist/components/TransactionRecords/WithdrawalRecordsTable.js +1 -1
- package/dist/components/TransactionRecords/WithdrawalRecordsTable.mjs +105 -96
- package/dist/components/index.d.ts +2 -0
- package/dist/components.js +1 -1
- package/dist/components.mjs +36 -32
- package/dist/icons/ArrowNarrowDownIcon.d.ts +2 -0
- package/dist/icons/ArrowNarrowUpIcon.d.ts +2 -0
- package/dist/icons/Bell01Icon.d.ts +2 -0
- package/dist/icons/Bell01Icon.js +1 -0
- package/dist/icons/Bell01Icon.mjs +27 -0
- package/dist/icons/BellRingIcon.d.ts +2 -0
- package/dist/icons/BellRingIcon.js +1 -0
- package/dist/icons/BellRingIcon.mjs +27 -0
- package/dist/icons/EyeIcon.d.ts +2 -0
- package/dist/icons/EyeIcon.js +1 -0
- package/dist/icons/EyeIcon.mjs +25 -0
- package/dist/icons/EyeOffIcon.d.ts +2 -0
- package/dist/icons/EyeOffIcon.js +1 -0
- package/dist/icons/EyeOffIcon.mjs +22 -0
- package/dist/icons/StarIcon.d.ts +2 -0
- package/dist/icons/StarIcon.js +1 -0
- package/dist/icons/StarIcon.mjs +19 -0
- package/dist/icons/StopWatchIcon.d.ts +2 -0
- package/dist/icons/StopWatchIcon.js +1 -0
- package/dist/icons/StopWatchIcon.mjs +22 -0
- package/dist/icons/Trophy01Icon.d.ts +2 -0
- package/dist/icons/Trophy01Icon.js +1 -0
- package/dist/icons/Trophy01Icon.mjs +22 -0
- package/dist/icons/index.d.ts +6 -0
- package/dist/icons.d.ts +2 -0
- package/dist/icons.js +1 -0
- package/dist/icons.mjs +62 -0
- package/dist/images/first-place.png.js +1 -0
- package/dist/images/first-place.png.mjs +4 -0
- package/dist/images/leaderboard.png.js +1 -0
- package/dist/images/leaderboard.png.mjs +4 -0
- package/dist/images/placeholder-avatar.png.js +1 -0
- package/dist/images/placeholder-avatar.png.mjs +4 -0
- package/dist/images/responsible-gaming.png.js +1 -1
- package/dist/images/responsible-gaming.png.mjs +2 -2
- package/dist/portal-components.css +1 -1
- package/dist/server/utils/prefetchUnreadMessagesCountQuery.d.ts +2 -0
- package/dist/theme.css +130 -4
- package/dist/ui/AlertDialog/alertDialog.recipe.js +1 -1
- package/dist/ui/AlertDialog/alertDialog.recipe.mjs +6 -6
- package/dist/ui/Badge/Badge.d.ts +274 -27
- package/dist/ui/Badge/Badge.js +1 -1
- package/dist/ui/Badge/Badge.mjs +14 -10
- package/dist/ui/Badge/badge.anatomy.d.ts +1 -1
- package/dist/ui/Badge/badge.anatomy.js +1 -1
- package/dist/ui/Badge/badge.anatomy.mjs +1 -0
- package/dist/ui/Badge/badge.recipe.d.ts +57 -9
- package/dist/ui/Badge/badge.recipe.js +1 -1
- package/dist/ui/Badge/badge.recipe.mjs +57 -21
- package/dist/ui/Button/button.recipe.d.ts +2 -2
- package/dist/ui/Button/button.recipe.js +1 -1
- package/dist/ui/Button/button.recipe.mjs +17 -7
- package/dist/ui/Checkbox/checkbox.recipe.js +1 -1
- package/dist/ui/Checkbox/checkbox.recipe.mjs +6 -6
- package/dist/ui/Collapsible/Collapsible.d.ts +114 -0
- package/dist/ui/Collapsible/Collapsible.js +1 -0
- package/dist/ui/Collapsible/Collapsible.mjs +13 -0
- package/dist/ui/Collapsible/collapsible.recipe.d.ts +28 -0
- package/dist/ui/Collapsible/collapsible.recipe.js +1 -0
- package/dist/ui/Collapsible/collapsible.recipe.mjs +18 -0
- package/dist/ui/Collapsible/index.d.ts +1 -0
- package/dist/ui/DatePicker/datePicker.recipe.js +1 -1
- package/dist/ui/DatePicker/datePicker.recipe.mjs +37 -6
- package/dist/ui/Dialog/dialog.recipe.js +1 -1
- package/dist/ui/Dialog/dialog.recipe.mjs +3 -3
- package/dist/ui/Drawer/drawer.recipe.js +1 -1
- package/dist/ui/Drawer/drawer.recipe.mjs +6 -6
- package/dist/ui/Field/field.recipe.js +1 -1
- package/dist/ui/Field/field.recipe.mjs +10 -12
- package/dist/ui/IconButton/iconButton.recipe.d.ts +2 -2
- package/dist/ui/IconButton/iconButton.recipe.js +1 -1
- package/dist/ui/IconButton/iconButton.recipe.mjs +6 -6
- package/dist/ui/NumberInput/numberInput.recipe.js +1 -1
- package/dist/ui/NumberInput/numberInput.recipe.mjs +8 -8
- package/dist/ui/PasswordInput/PasswordInput.d.ts +242 -1
- package/dist/ui/PasswordInput/PasswordInput.js +1 -0
- package/dist/ui/PasswordInput/PasswordInput.mjs +18 -0
- package/dist/ui/PasswordInput/passwordInput.recipe.d.ts +6 -18
- package/dist/ui/PasswordInput/passwordInput.recipe.js +1 -0
- package/dist/ui/PasswordInput/passwordInput.recipe.mjs +48 -0
- package/dist/ui/PinInput/pinInput.recipe.js +1 -1
- package/dist/ui/PinInput/pinInput.recipe.mjs +3 -3
- package/dist/ui/Popover/popover.recipe.js +1 -1
- package/dist/ui/Popover/popover.recipe.mjs +1 -1
- package/dist/ui/Progress/Progress.d.ts +335 -1
- package/dist/ui/Progress/Progress.js +1 -1
- package/dist/ui/Progress/Progress.mjs +15 -2
- package/dist/ui/Progress/progress.recipe.d.ts +37 -1
- package/dist/ui/Progress/progress.recipe.js +1 -0
- package/dist/ui/Progress/progress.recipe.mjs +41 -0
- package/dist/ui/Prose.d.ts +2 -0
- package/dist/ui/Prose.js +1 -0
- package/dist/ui/Prose.mjs +47 -0
- package/dist/ui/SegmentGroup/segmentGroup.recipe.js +1 -1
- package/dist/ui/SegmentGroup/segmentGroup.recipe.mjs +3 -3
- package/dist/ui/Select/select.recipe.js +1 -1
- package/dist/ui/Select/select.recipe.mjs +6 -6
- package/dist/ui/Table/table.recipe.js +1 -1
- package/dist/ui/Table/table.recipe.mjs +4 -4
- package/dist/ui/Tabs/tabs.recipe.js +1 -1
- package/dist/ui/Tabs/tabs.recipe.mjs +3 -3
- package/dist/ui/index.d.ts +3 -0
- package/dist/ui.js +1 -1
- package/dist/ui.mjs +36 -30
- package/dist/utils/queryKeys.d.ts +4 -1
- package/dist/utils/queryKeys.js +1 -1
- package/dist/utils/queryKeys.mjs +34 -26
- package/dist/utils.js +1 -1
- package/dist/utils.mjs +35 -32
- package/package.json +11 -5
- 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
|
|
3
|
-
import { createListCollection as
|
|
4
|
-
import { TZDateMini as
|
|
5
|
-
import { endOfDay as
|
|
6
|
-
import { useState as
|
|
7
|
-
import {
|
|
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
|
|
13
|
-
import { formatNumber as
|
|
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
|
|
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
|
|
23
|
-
import { useLocaleInfo as
|
|
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
|
|
26
|
-
import { ChevronDownIcon as
|
|
27
|
-
import { ChevronLeftIcon as
|
|
28
|
-
import { ChevronRightIcon as
|
|
29
|
-
import { File02Icon as
|
|
30
|
-
import { SpinnerIcon as
|
|
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
|
|
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
|
|
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 "
|
|
46
|
-
import { Root as
|
|
47
|
-
import { Root as
|
|
48
|
-
import { Root as _e, Header as
|
|
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
|
|
51
|
-
function
|
|
52
|
-
var
|
|
53
|
-
const [ne,
|
|
54
|
-
(t,
|
|
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
|
-
...
|
|
59
|
+
...l
|
|
57
60
|
}),
|
|
58
61
|
{
|
|
59
62
|
page: 1,
|
|
60
63
|
pageSize: 10,
|
|
61
|
-
type:
|
|
64
|
+
type: n.gameTypes[0]
|
|
62
65
|
}
|
|
63
|
-
),
|
|
64
|
-
items:
|
|
66
|
+
), c = Te(), B = V({
|
|
67
|
+
items: n.gameProviders,
|
|
65
68
|
itemToValue: (t) => t,
|
|
66
|
-
itemToString: (t) =>
|
|
67
|
-
delimiter:
|
|
69
|
+
itemToString: (t) => m(t, {
|
|
70
|
+
delimiter: m.delimiters.UNDERSCORE
|
|
68
71
|
})
|
|
69
72
|
}), {
|
|
70
|
-
page:
|
|
71
|
-
pageSize:
|
|
72
|
-
hasNextPage:
|
|
73
|
-
hasPrevPage:
|
|
74
|
-
next:
|
|
73
|
+
page: oe,
|
|
74
|
+
pageSize: ae,
|
|
75
|
+
hasNextPage: me,
|
|
76
|
+
hasPrevPage: ce,
|
|
77
|
+
next: se,
|
|
75
78
|
prev: de,
|
|
76
|
-
rows:
|
|
77
|
-
setPageSize:
|
|
78
|
-
totalPages:
|
|
79
|
+
rows: x,
|
|
80
|
+
setPageSize: he,
|
|
81
|
+
totalPages: ue,
|
|
79
82
|
loading: h,
|
|
80
83
|
firstPage: u
|
|
81
|
-
} =
|
|
84
|
+
} = le(Ne, {
|
|
82
85
|
filter: {
|
|
83
|
-
...
|
|
86
|
+
...i.type && {
|
|
84
87
|
game__type: {
|
|
85
|
-
equal:
|
|
88
|
+
equal: i.type
|
|
86
89
|
}
|
|
87
90
|
},
|
|
88
|
-
...
|
|
91
|
+
...i.provider && {
|
|
89
92
|
game__provider: {
|
|
90
|
-
equal:
|
|
93
|
+
equal: i.provider
|
|
91
94
|
}
|
|
92
95
|
},
|
|
93
|
-
...
|
|
96
|
+
...i.status && {
|
|
94
97
|
status: {
|
|
95
|
-
equal:
|
|
98
|
+
equal: i.status
|
|
96
99
|
}
|
|
97
100
|
},
|
|
98
|
-
...
|
|
101
|
+
...i.timestamp && {
|
|
99
102
|
dateTimeCreated: {
|
|
100
|
-
...
|
|
101
|
-
greaterThanOrEqual: new
|
|
102
|
-
|
|
103
|
-
|
|
103
|
+
...i.timestamp.start && {
|
|
104
|
+
greaterThanOrEqual: new U(
|
|
105
|
+
q(i.timestamp.start),
|
|
106
|
+
c.timezone
|
|
104
107
|
).toISOString()
|
|
105
108
|
},
|
|
106
|
-
...
|
|
107
|
-
lesserThanOrEqual: new
|
|
108
|
-
|
|
109
|
-
|
|
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:
|
|
117
|
-
/* @__PURE__ */ e("h2", { className: "text-
|
|
118
|
-
/* @__PURE__ */ e("p", { className: "text-
|
|
119
|
-
/* @__PURE__ */ e("div", { className: "mt-
|
|
120
|
-
|
|
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:
|
|
125
|
+
value: i.type,
|
|
123
126
|
onValueChange: (t) => {
|
|
124
|
-
u(),
|
|
125
|
-
type:
|
|
127
|
+
u(), d({
|
|
128
|
+
type: C.enum(n.gameTypes ?? []).safeParse(t.value).data ?? null
|
|
126
129
|
});
|
|
127
130
|
},
|
|
128
131
|
children: [
|
|
129
|
-
|
|
130
|
-
/* @__PURE__ */ e(
|
|
131
|
-
delimiter:
|
|
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(
|
|
134
|
-
/* @__PURE__ */ e(
|
|
136
|
+
/* @__PURE__ */ e(T, {}),
|
|
137
|
+
/* @__PURE__ */ e(b, {})
|
|
135
138
|
] }, t)),
|
|
136
|
-
/* @__PURE__ */ e(
|
|
139
|
+
/* @__PURE__ */ e(W, {})
|
|
137
140
|
]
|
|
138
141
|
}
|
|
139
142
|
) }),
|
|
140
|
-
/* @__PURE__ */
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
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
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
/* @__PURE__ */
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
/* @__PURE__ */ e(
|
|
249
|
-
|
|
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__ */
|
|
275
|
-
/* @__PURE__ */ e(
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
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
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
/* @__PURE__ */ e(
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
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(
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
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(
|
|
330
|
-
|
|
331
|
-
|
|
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(
|
|
334
|
-
|
|
335
|
-
|
|
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(
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
] }
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
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
|
-
|
|
404
|
+
Z,
|
|
353
405
|
{
|
|
354
406
|
size: "sm",
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
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__ */
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
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
|
-
],
|
|
405
|
-
items:
|
|
406
|
-
itemToValue: (
|
|
407
|
-
itemToString: (
|
|
408
|
-
}),
|
|
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: (
|
|
411
|
-
itemToString: (
|
|
412
|
-
delimiter:
|
|
442
|
+
itemToValue: (n) => n,
|
|
443
|
+
itemToString: (n) => m(n, {
|
|
444
|
+
delimiter: m.delimiters.UNDERSCORE
|
|
413
445
|
})
|
|
414
|
-
}),
|
|
446
|
+
}), Fe = C.enum(["all", "today", "custom"]), re = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
415
447
|
export {
|
|
416
|
-
|
|
448
|
+
jt as BetRecords
|
|
417
449
|
};
|