@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,13 +1,13 @@
|
|
|
1
|
-
import { jsxs as i, jsx as e, Fragment as
|
|
2
|
-
import { createListCollection as
|
|
3
|
-
import { endOfDay as
|
|
4
|
-
import { useState as
|
|
1
|
+
import { jsxs as i, jsx as e, Fragment as ve } from "react/jsx-runtime";
|
|
2
|
+
import { createListCollection as s, Portal as m, parseDate as pe } from "@ark-ui/react";
|
|
3
|
+
import { endOfDay as Ee, startOfDay as Se } from "date-fns";
|
|
4
|
+
import { useState as we } from "react";
|
|
5
5
|
import { z as u } from "zod";
|
|
6
6
|
import "@opexa/portal-sdk-core";
|
|
7
7
|
import "@tanstack/react-query";
|
|
8
8
|
import "tiny-invariant";
|
|
9
9
|
import "../../constants/index.mjs";
|
|
10
|
-
import { capitalize as
|
|
10
|
+
import { capitalize as n } from "../../utils/capitalize.mjs";
|
|
11
11
|
import "../../utils/parseDecimal.mjs";
|
|
12
12
|
import "../../utils/getLocaleInfo.mjs";
|
|
13
13
|
import "../../utils/getQueryClient.mjs";
|
|
@@ -18,30 +18,33 @@ import "@opexa/portal-sdk-core/object-id";
|
|
|
18
18
|
import "../../client/hooks/useGlobalStore.mjs";
|
|
19
19
|
import "../../client/hooks/useInfiniteQueryHelper.mjs";
|
|
20
20
|
import "usehooks-ts";
|
|
21
|
-
import { CheckIcon as
|
|
22
|
-
import { ChevronDownIcon as
|
|
23
|
-
import { ChevronLeftIcon as
|
|
24
|
-
import { ChevronRightIcon as
|
|
21
|
+
import { CheckIcon as h } from "../../icons/CheckIcon.mjs";
|
|
22
|
+
import { ChevronDownIcon as g } from "../../icons/ChevronDownIcon.mjs";
|
|
23
|
+
import { ChevronLeftIcon as De } from "../../icons/ChevronLeftIcon.mjs";
|
|
24
|
+
import { ChevronRightIcon as Re } from "../../icons/ChevronRightIcon.mjs";
|
|
25
25
|
import "../../ui/AlertDialog/AlertDialog.mjs";
|
|
26
26
|
import "../../ui/Avatar/Avatar.mjs";
|
|
27
27
|
import "../../ui/Badge/Badge.mjs";
|
|
28
28
|
import "../../ui/Button/button.recipe.mjs";
|
|
29
29
|
import "../../ui/Checkbox/Checkbox.mjs";
|
|
30
30
|
import "../../ui/Clipboard/Clipboard.mjs";
|
|
31
|
-
import
|
|
31
|
+
import "../../ui/Collapsible/Collapsible.mjs";
|
|
32
|
+
import { Root as Ne, Context as ne, Control as Ie, Positioner as Ve, Content as Pe, View as ye, ViewControl as Oe, PrevTrigger as be, ViewTrigger as Ae, RangeText as xe, NextTrigger as Fe, Table as Ue, TableHead as Le, TableRow as re, TableHeader as We, TableBody as ze, TableCell as Me, TableCellTrigger as Ge } from "../../ui/DatePicker/DatePicker.mjs";
|
|
32
33
|
import "../../ui/Dialog/Dialog.mjs";
|
|
33
34
|
import "../../ui/Drawer/Drawer.mjs";
|
|
34
35
|
import "../../ui/Field/Field.mjs";
|
|
35
36
|
import "../../ui/IconButton/iconButton.recipe.mjs";
|
|
36
37
|
import "../../ui/NumberInput/NumberInput.mjs";
|
|
38
|
+
import "../../ui/PasswordInput/PasswordInput.mjs";
|
|
37
39
|
import "../../ui/PinInput/PinInput.mjs";
|
|
38
40
|
import "../../ui/Popover/Popover.mjs";
|
|
39
41
|
import "tailwind-merge";
|
|
40
|
-
import
|
|
41
|
-
import { Root as
|
|
42
|
+
import "../../ui/Progress/Progress.mjs";
|
|
43
|
+
import { Root as $e, Item as O, ItemText as b, ItemControl as A, ItemHiddenInput as x, Indicator as ke } from "../../ui/SegmentGroup/SegmentGroup.mjs";
|
|
44
|
+
import { Root as C, Trigger as T, ValueText as f, Indicator as v, Positioner as p, Content as E, ItemGroup as S, Item as w, ItemText as D, ItemIndicator as R } from "../../ui/Select/Select.mjs";
|
|
42
45
|
import "../../ui/Table/Table.mjs";
|
|
43
46
|
import "../../ui/Tabs/Tabs.mjs";
|
|
44
|
-
const
|
|
47
|
+
const He = u.enum(["all", "today", "custom"]).catch("all"), oe = [
|
|
45
48
|
"ACCEPTED",
|
|
46
49
|
"APPROVED",
|
|
47
50
|
"CANCELLED",
|
|
@@ -49,7 +52,7 @@ const Le = u.enum(["all", "today", "custom"]).catch("all"), le = [
|
|
|
49
52
|
"FAILED",
|
|
50
53
|
"PENDING",
|
|
51
54
|
"REJECTED"
|
|
52
|
-
],
|
|
55
|
+
], de = [
|
|
53
56
|
"ACCEPTED",
|
|
54
57
|
"APPROVED",
|
|
55
58
|
"CANCELLED",
|
|
@@ -57,89 +60,105 @@ const Le = u.enum(["all", "today", "custom"]).catch("all"), le = [
|
|
|
57
60
|
"FAILED",
|
|
58
61
|
"PENDING",
|
|
59
62
|
"REJECTED"
|
|
60
|
-
],
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
63
|
+
], me = [
|
|
64
|
+
"DEPOSIT",
|
|
65
|
+
"WITHDRAWAL",
|
|
66
|
+
"BET"
|
|
67
|
+
], ce = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
68
|
+
function Lt(l) {
|
|
69
|
+
var $, k, H, B, _, j, J, Y, Z, q, K, Q, X, ee, te, le, ie;
|
|
70
|
+
const F = s({
|
|
64
71
|
items: l.gameTypeOptions ?? [],
|
|
65
72
|
itemToValue: (t) => t,
|
|
66
|
-
itemToString: (t) =>
|
|
67
|
-
delimiter:
|
|
73
|
+
itemToString: (t) => n(t, {
|
|
74
|
+
delimiter: n.delimiters.UNDERSCORE
|
|
68
75
|
})
|
|
69
|
-
}), U =
|
|
76
|
+
}), U = s({
|
|
70
77
|
items: l.gameProviderOptions ?? [],
|
|
71
78
|
itemToValue: (t) => t,
|
|
72
|
-
itemToString: (t) =>
|
|
73
|
-
delimiter:
|
|
79
|
+
itemToString: (t) => n(t, {
|
|
80
|
+
delimiter: n.delimiters.UNDERSCORE
|
|
74
81
|
})
|
|
75
|
-
}), L =
|
|
76
|
-
items:
|
|
82
|
+
}), L = s({
|
|
83
|
+
items: oe,
|
|
77
84
|
itemToValue: (t) => t,
|
|
78
|
-
itemToString: (t) =>
|
|
79
|
-
delimiter:
|
|
85
|
+
itemToString: (t) => n(t, {
|
|
86
|
+
delimiter: n.delimiters.UNDERSCORE
|
|
80
87
|
})
|
|
81
|
-
}),
|
|
82
|
-
items:
|
|
88
|
+
}), W = s({
|
|
89
|
+
items: de,
|
|
83
90
|
itemToValue: (t) => t,
|
|
84
|
-
itemToString: (t) =>
|
|
85
|
-
delimiter:
|
|
91
|
+
itemToString: (t) => n(t, {
|
|
92
|
+
delimiter: n.delimiters.UNDERSCORE
|
|
86
93
|
})
|
|
87
|
-
}),
|
|
88
|
-
|
|
94
|
+
}), z = s({
|
|
95
|
+
items: me,
|
|
96
|
+
itemToValue: (t) => t,
|
|
97
|
+
itemToString: (t) => n(t, {
|
|
98
|
+
delimiter: n.delimiters.UNDERSCORE
|
|
99
|
+
})
|
|
100
|
+
}), [ue, M] = we("all"), d = (t) => {
|
|
101
|
+
var r;
|
|
89
102
|
const a = {
|
|
90
103
|
timestamp: o,
|
|
91
|
-
gameType:
|
|
92
|
-
gameProvider:
|
|
93
|
-
depositStatus:
|
|
94
|
-
withdrawalStatus:
|
|
104
|
+
gameType: I,
|
|
105
|
+
gameProvider: V,
|
|
106
|
+
depositStatus: P,
|
|
107
|
+
withdrawalStatus: y
|
|
95
108
|
};
|
|
96
|
-
(
|
|
109
|
+
(r = l.onChange) == null || r.call(l, {
|
|
97
110
|
...a,
|
|
98
111
|
...t
|
|
99
112
|
});
|
|
100
|
-
}, [o,
|
|
101
|
-
value: (
|
|
102
|
-
defaultValue: ((
|
|
113
|
+
}, [o, N] = c({
|
|
114
|
+
value: ($ = l.value) == null ? void 0 : $.timestamp,
|
|
115
|
+
defaultValue: ((k = l.defaultValue) == null ? void 0 : k.timestamp) ?? null,
|
|
103
116
|
onChange(t) {
|
|
104
117
|
d({ timestamp: t });
|
|
105
118
|
}
|
|
106
|
-
}), [
|
|
107
|
-
value: (
|
|
108
|
-
defaultValue: ((
|
|
119
|
+
}), [I, se] = c({
|
|
120
|
+
value: (H = l.value) == null ? void 0 : H.gameType,
|
|
121
|
+
defaultValue: ((B = l.defaultValue) == null ? void 0 : B.gameType) ?? null,
|
|
109
122
|
onChange(t) {
|
|
110
123
|
d({ gameType: t });
|
|
111
124
|
}
|
|
112
|
-
}), [
|
|
113
|
-
value: (
|
|
125
|
+
}), [V, he] = c({
|
|
126
|
+
value: (_ = l.value) == null ? void 0 : _.gameProvider,
|
|
114
127
|
defaultValue: ((j = l.defaultValue) == null ? void 0 : j.gameProvider) ?? null,
|
|
115
128
|
onChange(t) {
|
|
116
129
|
d({ gameProvider: t });
|
|
117
130
|
}
|
|
118
|
-
}), [
|
|
119
|
-
value: (
|
|
120
|
-
defaultValue: ((
|
|
131
|
+
}), [P, ge] = c({
|
|
132
|
+
value: (J = l.value) == null ? void 0 : J.depositStatus,
|
|
133
|
+
defaultValue: ((Y = l.defaultValue) == null ? void 0 : Y.depositStatus) ?? null,
|
|
121
134
|
onChange(t) {
|
|
122
135
|
d({ depositStatus: t });
|
|
123
136
|
}
|
|
124
|
-
}), [
|
|
125
|
-
value: (
|
|
126
|
-
defaultValue: ((
|
|
137
|
+
}), [y, Ce] = c({
|
|
138
|
+
value: (Z = l.value) == null ? void 0 : Z.withdrawalStatus,
|
|
139
|
+
defaultValue: ((q = l.defaultValue) == null ? void 0 : q.withdrawalStatus) ?? null,
|
|
127
140
|
onChange(t) {
|
|
128
141
|
d({ withdrawalStatus: t });
|
|
129
142
|
}
|
|
143
|
+
}), [G, Te] = c({
|
|
144
|
+
value: (K = l.value) == null ? void 0 : K.transactionType,
|
|
145
|
+
defaultValue: ((Q = l.defaultValue) == null ? void 0 : Q.transactionType) ?? null,
|
|
146
|
+
onChange(t) {
|
|
147
|
+
d({ transactionType: t });
|
|
148
|
+
}
|
|
130
149
|
});
|
|
131
|
-
return /* @__PURE__ */ i("div", { className: "flex
|
|
150
|
+
return /* @__PURE__ */ i("div", { className: "flex flex-col gap-lg lg:flex-row lg:items-center", children: [
|
|
132
151
|
/* @__PURE__ */ i(
|
|
133
|
-
|
|
152
|
+
Ne,
|
|
134
153
|
{
|
|
135
154
|
lazyMount: !0,
|
|
136
155
|
unmountOnExit: !0,
|
|
137
|
-
value: [o == null ? void 0 : o.start, o == null ? void 0 : o.end].filter(Boolean).map((t) =>
|
|
156
|
+
value: [o == null ? void 0 : o.start, o == null ? void 0 : o.end].filter(Boolean).map((t) => pe(t)),
|
|
138
157
|
onValueChange: (t) => {
|
|
139
|
-
var a,
|
|
140
|
-
|
|
141
|
-
start: (a = t.value.at(0)) == null ? void 0 : a.toDate(
|
|
142
|
-
end: (
|
|
158
|
+
var a, r;
|
|
159
|
+
N({
|
|
160
|
+
start: (a = t.value.at(0)) == null ? void 0 : a.toDate(ce),
|
|
161
|
+
end: (r = t.value.at(1)) == null ? void 0 : r.toDate(ce)
|
|
143
162
|
});
|
|
144
163
|
},
|
|
145
164
|
onOpenChange: (t) => {
|
|
@@ -153,159 +172,201 @@ function Vt(l) {
|
|
|
153
172
|
},
|
|
154
173
|
children: [
|
|
155
174
|
/* @__PURE__ */ i(
|
|
156
|
-
|
|
175
|
+
$e,
|
|
157
176
|
{
|
|
158
|
-
value:
|
|
177
|
+
value: ue,
|
|
159
178
|
onValueChange: (t) => {
|
|
160
|
-
const a =
|
|
179
|
+
const a = He.parse(t.value);
|
|
161
180
|
if (a === "today") {
|
|
162
|
-
const
|
|
163
|
-
|
|
164
|
-
start:
|
|
165
|
-
end:
|
|
181
|
+
const r = /* @__PURE__ */ new Date();
|
|
182
|
+
N({
|
|
183
|
+
start: Se(r),
|
|
184
|
+
end: Ee(r)
|
|
166
185
|
});
|
|
167
186
|
} else
|
|
168
|
-
|
|
187
|
+
N(null);
|
|
169
188
|
M(a);
|
|
170
189
|
},
|
|
190
|
+
className: "w-full lg:w-fit",
|
|
171
191
|
children: [
|
|
172
|
-
/* @__PURE__ */ i(
|
|
173
|
-
/* @__PURE__ */ e(
|
|
192
|
+
/* @__PURE__ */ i(O, { value: "all", className: "w-full lg:w-auto", children: [
|
|
193
|
+
/* @__PURE__ */ e(b, { children: "All" }),
|
|
174
194
|
/* @__PURE__ */ e(A, {}),
|
|
175
195
|
/* @__PURE__ */ e(x, {})
|
|
176
196
|
] }),
|
|
177
|
-
/* @__PURE__ */ i(
|
|
178
|
-
/* @__PURE__ */ e(
|
|
197
|
+
/* @__PURE__ */ i(O, { value: "today", className: "w-full lg:w-auto", children: [
|
|
198
|
+
/* @__PURE__ */ e(b, { children: "Today" }),
|
|
179
199
|
/* @__PURE__ */ e(A, {}),
|
|
180
200
|
/* @__PURE__ */ e(x, {})
|
|
181
201
|
] }),
|
|
182
|
-
/* @__PURE__ */ e(
|
|
183
|
-
|
|
202
|
+
/* @__PURE__ */ e(ne, { children: (t) => /* @__PURE__ */ e(
|
|
203
|
+
O,
|
|
184
204
|
{
|
|
185
205
|
value: "custom",
|
|
186
206
|
onClick: () => t.setOpen(!0),
|
|
187
|
-
|
|
188
|
-
|
|
207
|
+
className: "w-full lg:w-auto",
|
|
208
|
+
children: /* @__PURE__ */ i(Ie, { children: [
|
|
209
|
+
/* @__PURE__ */ e(b, { children: "Custom" }),
|
|
189
210
|
/* @__PURE__ */ e(A, {}),
|
|
190
211
|
/* @__PURE__ */ e(x, {})
|
|
191
212
|
] })
|
|
192
213
|
}
|
|
193
214
|
) }),
|
|
194
|
-
/* @__PURE__ */ e(
|
|
215
|
+
/* @__PURE__ */ e(ke, {})
|
|
195
216
|
]
|
|
196
217
|
}
|
|
197
218
|
),
|
|
198
|
-
/* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(
|
|
199
|
-
/* @__PURE__ */ i(Re, { children: [
|
|
200
|
-
/* @__PURE__ */ e(Ie, { children: /* @__PURE__ */ e(Te, {}) }),
|
|
201
|
-
/* @__PURE__ */ e(Pe, { children: /* @__PURE__ */ e(Ve, {}) }),
|
|
202
|
-
/* @__PURE__ */ e(we, { children: /* @__PURE__ */ e(ve, {}) })
|
|
203
|
-
] }),
|
|
219
|
+
/* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(Ve, { children: /* @__PURE__ */ e(Pe, { children: /* @__PURE__ */ e(ye, { view: "day", children: /* @__PURE__ */ e(ne, { children: (t) => /* @__PURE__ */ i(ve, { children: [
|
|
204
220
|
/* @__PURE__ */ i(Oe, { children: [
|
|
205
|
-
/* @__PURE__ */ e(be, { children: /* @__PURE__ */ e(
|
|
206
|
-
/* @__PURE__ */ e(
|
|
221
|
+
/* @__PURE__ */ e(be, { children: /* @__PURE__ */ e(De, {}) }),
|
|
222
|
+
/* @__PURE__ */ e(Ae, { children: /* @__PURE__ */ e(xe, {}) }),
|
|
223
|
+
/* @__PURE__ */ e(Fe, { children: /* @__PURE__ */ e(Re, {}) })
|
|
224
|
+
] }),
|
|
225
|
+
/* @__PURE__ */ i(Ue, { children: [
|
|
226
|
+
/* @__PURE__ */ e(Le, { children: /* @__PURE__ */ e(re, { children: t.weekDays.map((a, r) => /* @__PURE__ */ e(We, { children: a.short.substring(0, 2) }, r)) }) }),
|
|
227
|
+
/* @__PURE__ */ e(ze, { children: t.weeks.map((a, r) => /* @__PURE__ */ e(re, { children: a.map((ae, fe) => /* @__PURE__ */ e(Me, { value: ae, children: /* @__PURE__ */ e(Ge, { children: ae.day }) }, fe)) }, r)) })
|
|
207
228
|
] })
|
|
208
229
|
] }) }) }) }) }) })
|
|
209
230
|
]
|
|
210
231
|
}
|
|
211
232
|
),
|
|
212
|
-
/* @__PURE__ */ e("div", { className: "grow" }),
|
|
213
|
-
((
|
|
214
|
-
|
|
233
|
+
/* @__PURE__ */ e("div", { className: "hidden grow lg:block" }),
|
|
234
|
+
((X = l.enabledFilters) == null ? void 0 : X.gameType) && /* @__PURE__ */ i(
|
|
235
|
+
C,
|
|
215
236
|
{
|
|
216
237
|
collection: F,
|
|
217
|
-
value:
|
|
238
|
+
value: I ? [I] : [],
|
|
218
239
|
onValueChange: (t) => {
|
|
219
240
|
const a = u.enum(l.gameTypeOptions ?? []).safeParse(t.value.at(0)).data;
|
|
220
|
-
|
|
241
|
+
se(a ?? null);
|
|
221
242
|
},
|
|
222
243
|
lazyMount: !0,
|
|
223
244
|
deselectable: !0,
|
|
245
|
+
positioning: {
|
|
246
|
+
sameWidth: !0
|
|
247
|
+
},
|
|
224
248
|
children: [
|
|
225
|
-
/* @__PURE__ */ i(T, { children: [
|
|
226
|
-
/* @__PURE__ */ e(
|
|
227
|
-
/* @__PURE__ */ e(
|
|
249
|
+
/* @__PURE__ */ i(T, { className: "w-full lg:w-[14rem]", children: [
|
|
250
|
+
/* @__PURE__ */ e(f, { placeholder: "Game Type" }),
|
|
251
|
+
/* @__PURE__ */ e(v, { asChild: !0, children: /* @__PURE__ */ e(g, {}) })
|
|
228
252
|
] }),
|
|
229
|
-
/* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(
|
|
230
|
-
/* @__PURE__ */ e(
|
|
231
|
-
delimiter:
|
|
253
|
+
/* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(E, { children: /* @__PURE__ */ e(S, { children: F.items.map((t) => /* @__PURE__ */ i(w, { item: t, children: [
|
|
254
|
+
/* @__PURE__ */ e(D, { children: n(t, {
|
|
255
|
+
delimiter: n.delimiters.UNDERSCORE
|
|
232
256
|
}) }),
|
|
233
|
-
/* @__PURE__ */ e(
|
|
257
|
+
/* @__PURE__ */ e(R, { asChild: !0, children: /* @__PURE__ */ e(h, {}) })
|
|
234
258
|
] }, t)) }) }) }) })
|
|
235
259
|
]
|
|
236
260
|
}
|
|
237
261
|
),
|
|
238
|
-
((
|
|
239
|
-
|
|
262
|
+
((ee = l.enabledFilters) == null ? void 0 : ee.gameProvider) && /* @__PURE__ */ i(
|
|
263
|
+
C,
|
|
240
264
|
{
|
|
241
265
|
collection: U,
|
|
242
|
-
value:
|
|
266
|
+
value: V ? [V] : [],
|
|
243
267
|
onValueChange: (t) => {
|
|
244
268
|
const a = u.enum(l.gameProviderOptions ?? []).safeParse(t.value.at(0)).data;
|
|
245
|
-
|
|
269
|
+
he(a ?? null);
|
|
246
270
|
},
|
|
247
271
|
lazyMount: !0,
|
|
248
272
|
deselectable: !0,
|
|
273
|
+
positioning: {
|
|
274
|
+
sameWidth: !0
|
|
275
|
+
},
|
|
249
276
|
children: [
|
|
250
|
-
/* @__PURE__ */ i(T, { children: [
|
|
251
|
-
/* @__PURE__ */ e(
|
|
252
|
-
/* @__PURE__ */ e(
|
|
277
|
+
/* @__PURE__ */ i(T, { className: "w-full lg:w-[14rem]", children: [
|
|
278
|
+
/* @__PURE__ */ e(f, { placeholder: "Game Vendor" }),
|
|
279
|
+
/* @__PURE__ */ e(v, { asChild: !0, children: /* @__PURE__ */ e(g, {}) })
|
|
253
280
|
] }),
|
|
254
|
-
/* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(
|
|
255
|
-
/* @__PURE__ */ e(
|
|
256
|
-
delimiter:
|
|
281
|
+
/* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(E, { children: /* @__PURE__ */ e(S, { children: U.items.map((t) => /* @__PURE__ */ i(w, { item: t, children: [
|
|
282
|
+
/* @__PURE__ */ e(D, { children: n(t, {
|
|
283
|
+
delimiter: n.delimiters.UNDERSCORE
|
|
257
284
|
}) }),
|
|
258
|
-
/* @__PURE__ */ e(
|
|
285
|
+
/* @__PURE__ */ e(R, { asChild: !0, children: /* @__PURE__ */ e(h, {}) })
|
|
259
286
|
] }, t)) }) }) }) })
|
|
260
287
|
]
|
|
261
288
|
}
|
|
262
289
|
),
|
|
263
|
-
((
|
|
264
|
-
|
|
290
|
+
((te = l.enabledFilters) == null ? void 0 : te.depositStatus) && /* @__PURE__ */ i(
|
|
291
|
+
C,
|
|
265
292
|
{
|
|
266
293
|
collection: L,
|
|
267
|
-
value:
|
|
294
|
+
value: P ? [P] : [],
|
|
295
|
+
onValueChange: (t) => {
|
|
296
|
+
const a = u.enum(oe).safeParse(t.value.at(0)).data;
|
|
297
|
+
ge(a ?? null);
|
|
298
|
+
},
|
|
299
|
+
lazyMount: !0,
|
|
300
|
+
deselectable: !0,
|
|
301
|
+
positioning: {
|
|
302
|
+
sameWidth: !0
|
|
303
|
+
},
|
|
304
|
+
children: [
|
|
305
|
+
/* @__PURE__ */ i(T, { className: "w-full lg:w-[14rem]", children: [
|
|
306
|
+
/* @__PURE__ */ e(f, { placeholder: "Status" }),
|
|
307
|
+
/* @__PURE__ */ e(v, { asChild: !0, children: /* @__PURE__ */ e(g, {}) })
|
|
308
|
+
] }),
|
|
309
|
+
/* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(E, { children: /* @__PURE__ */ e(S, { children: W.items.map((t) => /* @__PURE__ */ i(w, { item: t, children: [
|
|
310
|
+
/* @__PURE__ */ e(D, { children: n(t, {
|
|
311
|
+
delimiter: n.delimiters.UNDERSCORE
|
|
312
|
+
}) }),
|
|
313
|
+
/* @__PURE__ */ e(R, { asChild: !0, children: /* @__PURE__ */ e(h, {}) })
|
|
314
|
+
] }, t)) }) }) }) })
|
|
315
|
+
]
|
|
316
|
+
}
|
|
317
|
+
),
|
|
318
|
+
((le = l.enabledFilters) == null ? void 0 : le.withdrawalStatus) && /* @__PURE__ */ i(
|
|
319
|
+
C,
|
|
320
|
+
{
|
|
321
|
+
collection: W,
|
|
322
|
+
value: y ? [y] : [],
|
|
268
323
|
onValueChange: (t) => {
|
|
269
|
-
const a = u.enum(
|
|
270
|
-
|
|
324
|
+
const a = u.enum(de).safeParse(t.value.at(0)).data;
|
|
325
|
+
Ce(a ?? null);
|
|
271
326
|
},
|
|
272
327
|
lazyMount: !0,
|
|
273
328
|
deselectable: !0,
|
|
329
|
+
positioning: {
|
|
330
|
+
sameWidth: !0
|
|
331
|
+
},
|
|
274
332
|
children: [
|
|
275
|
-
/* @__PURE__ */ i(T, { children: [
|
|
276
|
-
/* @__PURE__ */ e(
|
|
277
|
-
/* @__PURE__ */ e(
|
|
333
|
+
/* @__PURE__ */ i(T, { className: "w-full lg:w-[14rem]", children: [
|
|
334
|
+
/* @__PURE__ */ e(f, { placeholder: "Status" }),
|
|
335
|
+
/* @__PURE__ */ e(v, { asChild: !0, children: /* @__PURE__ */ e(g, {}) })
|
|
278
336
|
] }),
|
|
279
|
-
/* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(
|
|
280
|
-
/* @__PURE__ */ e(
|
|
281
|
-
delimiter:
|
|
337
|
+
/* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(E, { children: /* @__PURE__ */ e(S, { children: L.items.map((t) => /* @__PURE__ */ i(w, { item: t, children: [
|
|
338
|
+
/* @__PURE__ */ e(D, { children: n(t, {
|
|
339
|
+
delimiter: n.delimiters.UNDERSCORE
|
|
282
340
|
}) }),
|
|
283
|
-
/* @__PURE__ */ e(
|
|
341
|
+
/* @__PURE__ */ e(R, { asChild: !0, children: /* @__PURE__ */ e(h, {}) })
|
|
284
342
|
] }, t)) }) }) }) })
|
|
285
343
|
]
|
|
286
344
|
}
|
|
287
345
|
),
|
|
288
|
-
((
|
|
289
|
-
|
|
346
|
+
((ie = l.enabledFilters) == null ? void 0 : ie.transactionType) && /* @__PURE__ */ i(
|
|
347
|
+
C,
|
|
290
348
|
{
|
|
291
349
|
collection: z,
|
|
292
|
-
value:
|
|
350
|
+
value: G ? [G] : [],
|
|
293
351
|
onValueChange: (t) => {
|
|
294
|
-
const a = u.enum(
|
|
295
|
-
|
|
352
|
+
const a = u.enum(me).safeParse(t.value.at(0)).data;
|
|
353
|
+
Te(a ?? null);
|
|
296
354
|
},
|
|
297
355
|
lazyMount: !0,
|
|
298
356
|
deselectable: !0,
|
|
357
|
+
positioning: {
|
|
358
|
+
sameWidth: !0
|
|
359
|
+
},
|
|
299
360
|
children: [
|
|
300
|
-
/* @__PURE__ */ i(T, { children: [
|
|
301
|
-
/* @__PURE__ */ e(
|
|
302
|
-
/* @__PURE__ */ e(
|
|
361
|
+
/* @__PURE__ */ i(T, { className: "w-full lg:w-[14rem]", children: [
|
|
362
|
+
/* @__PURE__ */ e(f, { placeholder: "Type" }),
|
|
363
|
+
/* @__PURE__ */ e(v, { asChild: !0, children: /* @__PURE__ */ e(g, {}) })
|
|
303
364
|
] }),
|
|
304
|
-
/* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(
|
|
305
|
-
/* @__PURE__ */ e(
|
|
306
|
-
delimiter:
|
|
365
|
+
/* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(E, { children: /* @__PURE__ */ e(S, { children: z.items.map((t) => /* @__PURE__ */ i(w, { item: t, children: [
|
|
366
|
+
/* @__PURE__ */ e(D, { children: n(t, {
|
|
367
|
+
delimiter: n.delimiters.UNDERSCORE
|
|
307
368
|
}) }),
|
|
308
|
-
/* @__PURE__ */ e(
|
|
369
|
+
/* @__PURE__ */ e(R, { asChild: !0, children: /* @__PURE__ */ e(h, {}) })
|
|
309
370
|
] }, t)) }) }) }) })
|
|
310
371
|
]
|
|
311
372
|
}
|
|
@@ -313,5 +374,5 @@ function Vt(l) {
|
|
|
313
374
|
] });
|
|
314
375
|
}
|
|
315
376
|
export {
|
|
316
|
-
|
|
377
|
+
Lt as TableFilters
|
|
317
378
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime");require("../../ui/AlertDialog/AlertDialog.js");require("../../ui/Avatar/Avatar.js");require("../../ui/Badge/Badge.js");require("@ark-ui/react");require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../constants/index.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");require("../../ui/Button/button.recipe.js");require("../../ui/Checkbox/Checkbox.js");require("../../ui/Clipboard/Clipboard.js");require("../../ui/DatePicker/DatePicker.js");require("../../ui/Dialog/Dialog.js");require("../../ui/Drawer/Drawer.js");require("../../ui/Field/Field.js");require("../../ui/IconButton/iconButton.recipe.js");require("../../ui/NumberInput/NumberInput.js");require("../../ui/PinInput/PinInput.js");require("../../ui/Popover/Popover.js");require("
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("tailwind-merge");require("../../ui/AlertDialog/AlertDialog.js");require("../../ui/Avatar/Avatar.js");require("../../ui/Badge/Badge.js");require("@ark-ui/react");require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../constants/index.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");require("../../ui/Button/button.recipe.js");require("../../ui/Checkbox/Checkbox.js");require("../../ui/Clipboard/Clipboard.js");require("../../ui/Collapsible/Collapsible.js");require("../../ui/DatePicker/DatePicker.js");require("../../ui/Dialog/Dialog.js");require("../../ui/Drawer/Drawer.js");require("../../ui/Field/Field.js");require("../../ui/IconButton/iconButton.recipe.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");require("../../ui/SegmentGroup/SegmentGroup.js");require("../../ui/Select/Select.js");require("../../ui/Table/Table.js");const r=require("../../ui/Tabs/Tabs.js"),i=require("./DepositRecordsTable.js"),a=require("./TransactionRecordsTable.js"),n=require("./WithdrawalRecordsTable.js");function l(s){return e.jsxs("div",{className:t.twMerge("px-4 pb-3xl pt-4",s.className),children:[e.jsx("h2",{className:"text-text-secondary-700 text-sm font-semibold leading-tight",children:"Transaction Records"}),e.jsx("p",{className:"text-text-tertiary-600 mt-xs text-sm leading-tight",children:"View your transaction records"}),e.jsxs(r.Root,{className:"mt-lg",defaultValue:"transactions",lazyMount:!0,unmountOnExit:!0,children:[e.jsxs(r.List,{children:[e.jsx(r.Trigger,{value:"transactions",children:"Transactions"}),e.jsx(r.Trigger,{value:"deposits",children:"Deposits"}),e.jsx(r.Trigger,{value:"withdrawals",children:"Withdrawals"}),e.jsx(r.Indicator,{})]}),e.jsx("h3",{className:"text-text-secondary-700 mt-3xl text-sm font-semibold",children:"Table"}),e.jsx(r.Content,{value:"transactions",className:"mt-xl",children:e.jsx(a.TransactionRecordsTable,{})}),e.jsx(r.Content,{value:"deposits",className:"mt-xl",children:e.jsx(i.DepositRecordsTable,{})}),e.jsx(r.Content,{value:"withdrawals",className:"mt-xl",children:e.jsx(n.WithdrawalRecordsTable,{})})]})]})}exports.TransactionRecords=l;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as r, jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import { twMerge as a } from "tailwind-merge";
|
|
3
4
|
import "../../ui/AlertDialog/AlertDialog.mjs";
|
|
4
5
|
import "../../ui/Avatar/Avatar.mjs";
|
|
5
6
|
import "../../ui/Badge/Badge.mjs";
|
|
@@ -13,48 +14,51 @@ import "../../utils/isMobile.mjs";
|
|
|
13
14
|
import "../../ui/Button/button.recipe.mjs";
|
|
14
15
|
import "../../ui/Checkbox/Checkbox.mjs";
|
|
15
16
|
import "../../ui/Clipboard/Clipboard.mjs";
|
|
17
|
+
import "../../ui/Collapsible/Collapsible.mjs";
|
|
16
18
|
import "../../ui/DatePicker/DatePicker.mjs";
|
|
17
19
|
import "../../ui/Dialog/Dialog.mjs";
|
|
18
20
|
import "../../ui/Drawer/Drawer.mjs";
|
|
19
21
|
import "../../ui/Field/Field.mjs";
|
|
20
22
|
import "../../ui/IconButton/iconButton.recipe.mjs";
|
|
21
23
|
import "../../ui/NumberInput/NumberInput.mjs";
|
|
24
|
+
import "../../ui/PasswordInput/PasswordInput.mjs";
|
|
22
25
|
import "../../ui/PinInput/PinInput.mjs";
|
|
23
26
|
import "../../ui/Popover/Popover.mjs";
|
|
24
|
-
import "
|
|
27
|
+
import "../../ui/Progress/Progress.mjs";
|
|
25
28
|
import "../../ui/SegmentGroup/SegmentGroup.mjs";
|
|
26
29
|
import "../../ui/Select/Select.mjs";
|
|
27
30
|
import "../../ui/Table/Table.mjs";
|
|
28
|
-
import { Root as
|
|
29
|
-
import { DepositRecordsTable as
|
|
30
|
-
import { TransactionRecordsTable as
|
|
31
|
+
import { Root as m, List as s, Trigger as i, Indicator as l, Content as o } from "../../ui/Tabs/Tabs.mjs";
|
|
32
|
+
import { DepositRecordsTable as n } from "./DepositRecordsTable.mjs";
|
|
33
|
+
import { TransactionRecordsTable as p } from "./TransactionRecordsTable.mjs";
|
|
31
34
|
import { WithdrawalRecordsTable as c } from "./WithdrawalRecordsTable.mjs";
|
|
32
|
-
function
|
|
33
|
-
return /* @__PURE__ */ r("div", { className: a.className, children: [
|
|
34
|
-
/* @__PURE__ */ t("h2", { className: "text-
|
|
35
|
-
/* @__PURE__ */ t("p", { className: "text-
|
|
35
|
+
function P(e) {
|
|
36
|
+
return /* @__PURE__ */ r("div", { className: a("px-4 pb-3xl pt-4", e.className), children: [
|
|
37
|
+
/* @__PURE__ */ t("h2", { className: "text-text-secondary-700 text-sm font-semibold leading-tight", children: "Transaction Records" }),
|
|
38
|
+
/* @__PURE__ */ t("p", { className: "text-text-tertiary-600 mt-xs text-sm leading-tight", children: "View your transaction records" }),
|
|
36
39
|
/* @__PURE__ */ r(
|
|
37
|
-
|
|
40
|
+
m,
|
|
38
41
|
{
|
|
39
|
-
className: "mt-
|
|
42
|
+
className: "mt-lg",
|
|
40
43
|
defaultValue: "transactions",
|
|
41
44
|
lazyMount: !0,
|
|
42
45
|
unmountOnExit: !0,
|
|
43
46
|
children: [
|
|
44
|
-
/* @__PURE__ */
|
|
47
|
+
/* @__PURE__ */ r(s, { children: [
|
|
45
48
|
/* @__PURE__ */ t(i, { value: "transactions", children: "Transactions" }),
|
|
46
49
|
/* @__PURE__ */ t(i, { value: "deposits", children: "Deposits" }),
|
|
47
50
|
/* @__PURE__ */ t(i, { value: "withdrawals", children: "Withdrawals" }),
|
|
48
|
-
/* @__PURE__ */ t(
|
|
49
|
-
] })
|
|
50
|
-
/* @__PURE__ */ t(
|
|
51
|
-
/* @__PURE__ */ t(o, { value: "
|
|
52
|
-
/* @__PURE__ */ t(o, { value: "
|
|
51
|
+
/* @__PURE__ */ t(l, {})
|
|
52
|
+
] }),
|
|
53
|
+
/* @__PURE__ */ t("h3", { className: "text-text-secondary-700 mt-3xl text-sm font-semibold", children: "Table" }),
|
|
54
|
+
/* @__PURE__ */ t(o, { value: "transactions", className: "mt-xl", children: /* @__PURE__ */ t(p, {}) }),
|
|
55
|
+
/* @__PURE__ */ t(o, { value: "deposits", className: "mt-xl", children: /* @__PURE__ */ t(n, {}) }),
|
|
56
|
+
/* @__PURE__ */ t(o, { value: "withdrawals", className: "mt-xl", children: /* @__PURE__ */ t(c, {}) })
|
|
53
57
|
]
|
|
54
58
|
}
|
|
55
59
|
)
|
|
56
60
|
] });
|
|
57
61
|
}
|
|
58
62
|
export {
|
|
59
|
-
|
|
63
|
+
P as TransactionRecords
|
|
60
64
|
};
|