@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,168 +1,326 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { Progress as
|
|
2
|
+
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
3
|
+
import { Progress as h } from "@ark-ui/react";
|
|
4
4
|
import f from "next/image";
|
|
5
|
-
import
|
|
5
|
+
import N from "next/link";
|
|
6
|
+
import { useCallback as v, useMemo as w } from "react";
|
|
7
|
+
import { twMerge as l } from "tailwind-merge";
|
|
6
8
|
import "@opexa/portal-sdk-core";
|
|
7
9
|
import "@tanstack/react-query";
|
|
8
10
|
import "tiny-invariant";
|
|
9
11
|
import "../../constants/index.mjs";
|
|
10
12
|
import "../../utils/capitalize.mjs";
|
|
11
|
-
import { formatNumber as
|
|
13
|
+
import { formatNumber as n } from "../../utils/formatNumber.mjs";
|
|
12
14
|
import "../../utils/getLocaleInfo.mjs";
|
|
13
15
|
import "../../utils/getQueryClient.mjs";
|
|
14
16
|
import "../../utils/isMobile.mjs";
|
|
15
17
|
import "../../utils/parseDecimal.mjs";
|
|
16
|
-
import "react";
|
|
17
18
|
import "lodash-es";
|
|
18
19
|
import "@opexa/portal-sdk-core/object-id";
|
|
19
20
|
import "../../client/hooks/useGlobalStore.mjs";
|
|
20
21
|
import "../../client/hooks/useInfiniteQueryHelper.mjs";
|
|
21
|
-
import { useLocaleInfo as
|
|
22
|
+
import { useLocaleInfo as C } from "../../client/hooks/useLocaleInfo.mjs";
|
|
22
23
|
import "usehooks-ts";
|
|
23
|
-
import { ArrowNarrowUpRightIcon as
|
|
24
|
-
import { ChevronLeftIcon as
|
|
25
|
-
import { ChevronRightIcon as
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
|
|
24
|
+
import { ArrowNarrowUpRightIcon as z } from "../../icons/ArrowNarrowUpRightIcon.mjs";
|
|
25
|
+
import { ChevronLeftIcon as d } from "../../icons/ChevronLeftIcon.mjs";
|
|
26
|
+
import { ChevronRightIcon as m } from "../../icons/ChevronRightIcon.mjs";
|
|
27
|
+
import { Trophy01Icon as P } from "../../icons/Trophy01Icon.mjs";
|
|
28
|
+
import { StarIcon as I } from "../../icons/StarIcon.mjs";
|
|
29
|
+
import A from "../../images/close-chest.png.mjs";
|
|
30
|
+
import L from "../../images/first-place.png.mjs";
|
|
31
|
+
import J from "../../images/leaderboard.png.mjs";
|
|
32
|
+
import T from "../../images/open-chest.png.mjs";
|
|
33
|
+
import s from "./JackpotCounterItem.module.css.mjs";
|
|
34
|
+
function ue({
|
|
30
35
|
jackpot: r,
|
|
31
|
-
className:
|
|
36
|
+
className: o,
|
|
37
|
+
viewAllUrl: x
|
|
32
38
|
}) {
|
|
33
|
-
const
|
|
34
|
-
|
|
39
|
+
const c = C(), i = r.drawing, p = i ? r.maximumJackpotPoolLimit : r.pool, b = v(
|
|
40
|
+
({ isFirst: u }) => /* @__PURE__ */ e(
|
|
41
|
+
i ? d : m,
|
|
42
|
+
{
|
|
43
|
+
className: l(
|
|
44
|
+
"scale-400 lg:scale-250 min-w-2.5 lg:min-w-4",
|
|
45
|
+
u ? i ? "text-error-600" : "text-success-800" : "text-brand-300"
|
|
46
|
+
)
|
|
47
|
+
}
|
|
48
|
+
),
|
|
49
|
+
[i]
|
|
50
|
+
), y = w(
|
|
51
|
+
() => Array.from({ length: 40 }, (u, a) => /* @__PURE__ */ e(b, { isFirst: a === 0 }, a)),
|
|
52
|
+
[b]
|
|
53
|
+
);
|
|
54
|
+
return /* @__PURE__ */ t(
|
|
35
55
|
"div",
|
|
36
56
|
{
|
|
37
|
-
className:
|
|
38
|
-
"bg-
|
|
39
|
-
|
|
57
|
+
className: l(
|
|
58
|
+
"bg-bg-tertiary border-border-primary relative flex shrink-0 rounded-2xl border p-3 text-center lg:gap-4 lg:p-5",
|
|
59
|
+
o
|
|
40
60
|
),
|
|
41
61
|
children: [
|
|
42
|
-
/* @__PURE__ */
|
|
43
|
-
/* @__PURE__ */
|
|
44
|
-
|
|
45
|
-
/* @__PURE__ */
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
height: 100,
|
|
63
|
-
src: s ? x : p,
|
|
64
|
-
alt: "closeChest",
|
|
65
|
-
quality: 100,
|
|
66
|
-
className: "h-25 w-25 size-full"
|
|
67
|
-
}
|
|
68
|
-
) })
|
|
69
|
-
] }),
|
|
70
|
-
/* @__PURE__ */ i("div", { className: "flex justify-between", children: [
|
|
71
|
-
/* @__PURE__ */ e("div", { className: "text-xs font-medium", children: o(0, {
|
|
72
|
-
currency: l.currency.code,
|
|
73
|
-
compact: !0
|
|
74
|
-
}) }),
|
|
75
|
-
/* @__PURE__ */ i("div", { className: "relative flex items-center justify-end gap-1.5", children: [
|
|
76
|
-
s ? /* @__PURE__ */ i("div", { className: "flex w-6 items-center", children: [
|
|
77
|
-
/* @__PURE__ */ e(
|
|
78
|
-
"div",
|
|
62
|
+
/* @__PURE__ */ t("div", { className: "z-1 relative flex flex-1 flex-col", children: [
|
|
63
|
+
/* @__PURE__ */ e("div", { className: "flex h-full flex-col justify-between", children: /* @__PURE__ */ e("div", { className: "flex w-full justify-between", children: /* @__PURE__ */ t("div", { className: "flex w-full flex-col", children: [
|
|
64
|
+
/* @__PURE__ */ t("div", { className: "relative flex w-full justify-between", children: [
|
|
65
|
+
/* @__PURE__ */ t("div", { children: [
|
|
66
|
+
i ? /* @__PURE__ */ t("div", { className: "border-utility-success-200 bg-utility-success-50 text-utility-success-700 flex w-fit items-center gap-1 rounded-full border px-2 py-0.5 text-xs font-medium", children: [
|
|
67
|
+
/* @__PURE__ */ e("span", { className: "full bg-utility-success-500 size-1.5 animate-pulse rounded" }),
|
|
68
|
+
"Paying Out"
|
|
69
|
+
] }) : /* @__PURE__ */ t("div", { className: "border-utility-blue-200 bg-utility-blue-50 text-utility-blue-700 flex w-fit items-center gap-1 rounded-full border px-2 py-0.5 text-xs font-medium", children: [
|
|
70
|
+
/* @__PURE__ */ e(z, { className: "text-utility-blue-500 size-3.5" }),
|
|
71
|
+
"Accumulating"
|
|
72
|
+
] }),
|
|
73
|
+
/* @__PURE__ */ e("div", { className: "text-text-primary-900 mt-1 text-left text-lg font-medium lg:mt-5 lg:text-2xl", children: r.name }),
|
|
74
|
+
/* @__PURE__ */ e("div", { className: "bg-bg-primary text-brand-400 mt-1.5 w-fit rounded-md px-2 py-1 text-2xl font-bold lg:mt-2 lg:text-4xl", children: n(p, {
|
|
75
|
+
currency: c.currency.code,
|
|
76
|
+
minDecimalPlaces: 2,
|
|
77
|
+
maxDecimalPlaces: 2
|
|
78
|
+
}) })
|
|
79
|
+
] }),
|
|
80
|
+
/* @__PURE__ */ e("div", { className: "z-1 bottom-[-60] right-0 block lg:absolute", children: /* @__PURE__ */ e(
|
|
81
|
+
f,
|
|
79
82
|
{
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
width: 150,
|
|
84
|
+
height: 150,
|
|
85
|
+
src: i ? T : A,
|
|
86
|
+
alt: "closeChest",
|
|
87
|
+
quality: 100,
|
|
88
|
+
className: "h-25 w-25 lg:h-37.5 lg:w-37.5 size-full p-2"
|
|
85
89
|
}
|
|
86
|
-
)
|
|
90
|
+
) })
|
|
91
|
+
] }),
|
|
92
|
+
/* @__PURE__ */ t("div", { className: "bg-bg-primary relative mt-4 hidden w-full gap-4 rounded-lg p-4 lg:flex", children: [
|
|
87
93
|
/* @__PURE__ */ e(
|
|
88
|
-
|
|
94
|
+
f,
|
|
89
95
|
{
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
96
|
+
width: 66,
|
|
97
|
+
height: 87,
|
|
98
|
+
src: L,
|
|
99
|
+
alt: "closeChest",
|
|
100
|
+
className: "size-full h-auto w-[66px] mix-blend-luminosity"
|
|
95
101
|
}
|
|
96
102
|
),
|
|
97
|
-
/* @__PURE__ */
|
|
98
|
-
"div",
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
+
/* @__PURE__ */ t("div", { className: "flex flex-col gap-1 text-left", children: [
|
|
104
|
+
/* @__PURE__ */ t("div", { className: "border-utility-brand-200 bg-utility-brand-50 text-utility-brand-700 flex h-fit w-fit items-center gap-1 rounded-sm border px-2 py-0.5 text-xs font-medium", children: [
|
|
105
|
+
/* @__PURE__ */ e(P, { className: "text-utility-brand-600 size-3.5" }),
|
|
106
|
+
"Top Payout"
|
|
107
|
+
] }),
|
|
108
|
+
/* @__PURE__ */ e("div", { className: "font-semibold", children: "No winners yet" }),
|
|
109
|
+
/* @__PURE__ */ e("div", { className: "text-text-secondary-700 text-xs", children: "You could be the first to win the tournament!" })
|
|
110
|
+
] })
|
|
111
|
+
] })
|
|
112
|
+
] }) }) }),
|
|
113
|
+
/* @__PURE__ */ t("div", { className: "mt-3 lg:mt-4", children: [
|
|
114
|
+
/* @__PURE__ */ t("div", { className: "mb-1 flex justify-between", children: [
|
|
115
|
+
/* @__PURE__ */ e("div", { className: "text-text-primary-900 text-xs font-semibold", children: n(0, {
|
|
116
|
+
currency: c.currency.code,
|
|
117
|
+
compact: !0
|
|
118
|
+
}) }),
|
|
119
|
+
/* @__PURE__ */ t("div", { className: "relative flex items-center justify-end gap-1.5", children: [
|
|
120
|
+
i ? /* @__PURE__ */ t("div", { className: "flex w-6 items-center", children: [
|
|
121
|
+
/* @__PURE__ */ e(
|
|
122
|
+
"div",
|
|
123
|
+
{
|
|
124
|
+
className: l(
|
|
125
|
+
"absolute left-0",
|
|
126
|
+
s["animate-arrow-red-flash-1"]
|
|
127
|
+
),
|
|
128
|
+
children: /* @__PURE__ */ e(d, { className: "size-4.5" })
|
|
129
|
+
}
|
|
103
130
|
),
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
a["animate-arrow-green-flash-1"]
|
|
131
|
+
/* @__PURE__ */ e(
|
|
132
|
+
"div",
|
|
133
|
+
{
|
|
134
|
+
className: l(
|
|
135
|
+
"absolute left-1.5",
|
|
136
|
+
s["animate-arrow-red-flash-2"]
|
|
137
|
+
),
|
|
138
|
+
children: /* @__PURE__ */ e(d, { className: "size-4.5" })
|
|
139
|
+
}
|
|
114
140
|
),
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
141
|
+
/* @__PURE__ */ e(
|
|
142
|
+
"div",
|
|
143
|
+
{
|
|
144
|
+
className: l(
|
|
145
|
+
"absolute left-3",
|
|
146
|
+
s["animate-arrow-red-flash-3"]
|
|
147
|
+
),
|
|
148
|
+
children: /* @__PURE__ */ e(d, { className: "size-4.5" })
|
|
149
|
+
}
|
|
150
|
+
)
|
|
151
|
+
] }) : /* @__PURE__ */ t("div", { className: "flex w-6 items-center", children: [
|
|
152
|
+
/* @__PURE__ */ e(
|
|
153
|
+
"div",
|
|
154
|
+
{
|
|
155
|
+
className: l(
|
|
156
|
+
"absolute left-0",
|
|
157
|
+
s["animate-arrow-green-flash-1"]
|
|
158
|
+
),
|
|
159
|
+
children: /* @__PURE__ */ e(m, { className: "size-4.5" })
|
|
160
|
+
}
|
|
124
161
|
),
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
162
|
+
/* @__PURE__ */ e(
|
|
163
|
+
"div",
|
|
164
|
+
{
|
|
165
|
+
className: l(
|
|
166
|
+
"absolute left-1.5",
|
|
167
|
+
s["animate-arrow-green-flash-2"]
|
|
168
|
+
),
|
|
169
|
+
children: /* @__PURE__ */ e(m, { className: "size-4.5" })
|
|
170
|
+
}
|
|
171
|
+
),
|
|
172
|
+
/* @__PURE__ */ e(
|
|
173
|
+
"div",
|
|
174
|
+
{
|
|
175
|
+
className: l(
|
|
176
|
+
"absolute left-3",
|
|
177
|
+
s["animate-arrow-green-flash-3"]
|
|
178
|
+
),
|
|
179
|
+
children: /* @__PURE__ */ e(m, { className: "size-4.5" })
|
|
180
|
+
}
|
|
181
|
+
)
|
|
182
|
+
] }),
|
|
183
|
+
/* @__PURE__ */ e("div", { className: "text-text-primary-900 text-xs font-semibold", children: n(r == null ? void 0 : r.maximumJackpotPoolLimit, {
|
|
184
|
+
currency: c.currency.code,
|
|
185
|
+
compact: !0
|
|
186
|
+
}) })
|
|
187
|
+
] })
|
|
188
|
+
] }),
|
|
189
|
+
/* @__PURE__ */ e(
|
|
190
|
+
h.Root,
|
|
191
|
+
{
|
|
192
|
+
className: "bg-bg-primary h-2 w-full rounded-full lg:h-4",
|
|
193
|
+
max: 100,
|
|
194
|
+
value: S(
|
|
195
|
+
Number(r.pool),
|
|
196
|
+
Number(r.maximumJackpotPoolLimit)
|
|
197
|
+
),
|
|
198
|
+
children: /* @__PURE__ */ e(h.Track, { className: "bg-bg-primary h-full overflow-hidden rounded-full", children: /* @__PURE__ */ e(h.Range, { className: "bg-brand-500 relative h-full overflow-hidden rounded-full pl-1.5", children: /* @__PURE__ */ e(
|
|
199
|
+
"div",
|
|
200
|
+
{
|
|
201
|
+
className: "pointer-events-none absolute inset-0 flex items-center justify-start pl-1.5",
|
|
202
|
+
"aria-hidden": "true",
|
|
203
|
+
children: y
|
|
204
|
+
}
|
|
205
|
+
) }) })
|
|
206
|
+
}
|
|
207
|
+
),
|
|
208
|
+
/* @__PURE__ */ e("div", { className: "mt-1 block text-start text-2xs lg:hidden", children: i ? `The pot has hit ${n(
|
|
209
|
+
r == null ? void 0 : r.maximumJackpotPoolLimit,
|
|
210
|
+
{
|
|
211
|
+
currency: c.currency.code,
|
|
212
|
+
compact: !0
|
|
213
|
+
}
|
|
214
|
+
)} Play now for your chance to win big! 🔥` : q(
|
|
215
|
+
Number(r == null ? void 0 : r.pool) ?? 0,
|
|
216
|
+
Number(r == null ? void 0 : r.maximumJackpotPoolLimit) ?? 0
|
|
217
|
+
) })
|
|
218
|
+
] })
|
|
219
|
+
] }),
|
|
220
|
+
/* @__PURE__ */ t("div", { className: "z-1 hidden flex-1 space-y-4 lg:block", children: [
|
|
221
|
+
/* @__PURE__ */ t("div", { className: "flex items-center justify-between", children: [
|
|
222
|
+
/* @__PURE__ */ t("div", { className: "flex gap-2", children: [
|
|
128
223
|
/* @__PURE__ */ e(
|
|
129
|
-
|
|
224
|
+
f,
|
|
130
225
|
{
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
226
|
+
width: 24,
|
|
227
|
+
height: 24,
|
|
228
|
+
src: J,
|
|
229
|
+
quality: 100,
|
|
230
|
+
alt: "leaderboardIcon",
|
|
231
|
+
className: "size-full h-auto w-6"
|
|
136
232
|
}
|
|
137
|
-
)
|
|
233
|
+
),
|
|
234
|
+
/* @__PURE__ */ e("div", { className: "text-text-primary-900 text-lg font-semibold", children: "Starting soon!" })
|
|
138
235
|
] }),
|
|
139
|
-
/* @__PURE__ */
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
236
|
+
/* @__PURE__ */ t(
|
|
237
|
+
N,
|
|
238
|
+
{
|
|
239
|
+
className: "text-button-tertiary-fg flex text-sm font-semibold",
|
|
240
|
+
href: x ?? "/jackpots",
|
|
241
|
+
children: [
|
|
242
|
+
"See details",
|
|
243
|
+
/* @__PURE__ */ e(m, { className: "size-5" })
|
|
244
|
+
]
|
|
245
|
+
}
|
|
246
|
+
)
|
|
247
|
+
] }),
|
|
248
|
+
/* @__PURE__ */ e(
|
|
249
|
+
"div",
|
|
250
|
+
{
|
|
251
|
+
className: l(
|
|
252
|
+
"max-h-[272px] overflow-y-scroll",
|
|
253
|
+
s.scrollArea
|
|
254
|
+
),
|
|
255
|
+
children: /* @__PURE__ */ e("div", { className: "border-gray-200 overflow-hidden rounded-xl", children: /* @__PURE__ */ t("table", { className: "w-full", children: [
|
|
256
|
+
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ t("tr", { className: "bg-bg-secondary text-text-tertiary-600 h-8 text-xs font-medium", children: [
|
|
257
|
+
/* @__PURE__ */ e("th", { className: "w-[52px]", children: "#" }),
|
|
258
|
+
/* @__PURE__ */ e("th", { children: "Player" }),
|
|
259
|
+
/* @__PURE__ */ e("th", { children: "Multiplier" }),
|
|
260
|
+
/* @__PURE__ */ e("th", { children: "Prize" })
|
|
261
|
+
] }) }),
|
|
262
|
+
/* @__PURE__ */ e("tbody", { children: Array.from({ length: 10 }).map((u, a) => /* @__PURE__ */ t("tr", { className: "bg-bg-primary text-sm text-text-secondary-700", children: [
|
|
263
|
+
/* @__PURE__ */ e("td", { className: "border-border-secondary h-12 w-[52px] border-t-2", children: a + 1 < 6 ? /* @__PURE__ */ t("div", { className: "relative", children: [
|
|
264
|
+
/* @__PURE__ */ e(
|
|
265
|
+
I,
|
|
266
|
+
{
|
|
267
|
+
className: l(
|
|
268
|
+
"mx-auto size-6.5",
|
|
269
|
+
g[a].starColor
|
|
270
|
+
)
|
|
271
|
+
}
|
|
272
|
+
),
|
|
273
|
+
/* @__PURE__ */ e(
|
|
274
|
+
"span",
|
|
275
|
+
{
|
|
276
|
+
className: l(
|
|
277
|
+
"absolute inset-0 mt-0.5 flex items-center justify-center text-2xs font-bold",
|
|
278
|
+
g[a].numberColor
|
|
279
|
+
),
|
|
280
|
+
children: a + 1
|
|
281
|
+
}
|
|
282
|
+
)
|
|
283
|
+
] }) : "-" }),
|
|
284
|
+
/* @__PURE__ */ e("td", { className: "border-border-secondary h-12 border-t-2", children: "-" }),
|
|
285
|
+
/* @__PURE__ */ e("td", { className: "border-border-secondary h-12 border-t-2", children: "-" }),
|
|
286
|
+
/* @__PURE__ */ e("td", { className: "border-border-secondary h-12 border-t-2", children: "-" })
|
|
287
|
+
] }, a)) })
|
|
288
|
+
] }) })
|
|
289
|
+
}
|
|
290
|
+
)
|
|
144
291
|
] }),
|
|
145
|
-
/* @__PURE__ */ e(
|
|
146
|
-
|
|
292
|
+
i && /* @__PURE__ */ e(
|
|
293
|
+
"div",
|
|
147
294
|
{
|
|
148
|
-
className: "
|
|
149
|
-
max: 100,
|
|
150
|
-
value: 33,
|
|
151
|
-
children: /* @__PURE__ */ e(c.Track, { className: "bg-gray-950 h-full rounded-full", children: /* @__PURE__ */ e(c.Range, { className: "bg-gray-300 h-full rounded-full" }) })
|
|
295
|
+
className: l(s["light-rays"], "absolute right-0 top-0 rounded-2xl")
|
|
152
296
|
}
|
|
153
|
-
)
|
|
154
|
-
/* @__PURE__ */ e("div", { className: "mt-1 text-start text-[10px]", children: s ? `The pot has hit ${o(r == null ? void 0 : r.maximumJackpotPoolLimit, {
|
|
155
|
-
currency: l.currency.code,
|
|
156
|
-
compact: !0
|
|
157
|
-
})} Play now for your chance to win big! 🔥` : y(
|
|
158
|
-
Number(r == null ? void 0 : r.pool) ?? 0,
|
|
159
|
-
Number(r == null ? void 0 : r.maximumJackpotPoolLimit) ?? 0
|
|
160
|
-
) })
|
|
297
|
+
)
|
|
161
298
|
]
|
|
162
299
|
}
|
|
163
300
|
);
|
|
164
301
|
}
|
|
165
|
-
const
|
|
302
|
+
const S = (r, o) => o === 0 ? 0 : r / o * 100, q = (r, o) => (o === 0 ? 0 : r / o * 100) <= 90 ? "The jackpot is heating up! Keep playing to stay in the action and watch it grow!" : "🔥 It’s about to pop! Stay in the game for your shot at the prize!", g = [
|
|
303
|
+
{
|
|
304
|
+
starColor: "text-yellow-400",
|
|
305
|
+
numberColor: "text-bg-primary"
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
starColor: "text-utility-gray-700",
|
|
309
|
+
numberColor: "text-bg-primary"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
starColor: "text-yellow-700",
|
|
313
|
+
numberColor: "text-bg-primary"
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
starColor: "text-bg-quaternary",
|
|
317
|
+
numberColor: "text-text-primary-900"
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
starColor: "text-bg-quaternary",
|
|
321
|
+
numberColor: "text-text-primary-900"
|
|
322
|
+
}
|
|
323
|
+
];
|
|
166
324
|
export {
|
|
167
|
-
|
|
325
|
+
ue as JackpotCounterItem
|
|
168
326
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const a={"animate-arrow-green-flash-1":"_animate-arrow-green-flash-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a="_scrollArea_1m8hd_289",r={"animate-arrow-green-flash-1":"_animate-arrow-green-flash-1_1m8hd_19","animate-arrow-green-flash-2":"_animate-arrow-green-flash-2_1m8hd_29","animate-arrow-green-flash-3":"_animate-arrow-green-flash-3_1m8hd_39","animate-arrow-red-flash-1":"_animate-arrow-red-flash-1_1m8hd_67","animate-arrow-red-flash-2":"_animate-arrow-red-flash-2_1m8hd_75","animate-arrow-red-flash-3":"_animate-arrow-red-flash-3_1m8hd_85","light-rays":"_light-rays_1m8hd_107",scrollArea:a};exports.default=r;exports.scrollArea=a;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
const a = {
|
|
2
|
-
"animate-arrow-green-flash-1": "_animate-arrow-green-flash-
|
|
3
|
-
"animate-arrow-green-flash-2": "_animate-arrow-green-flash-
|
|
4
|
-
"animate-arrow-green-flash-3": "_animate-arrow-green-flash-
|
|
5
|
-
"animate-arrow-red-flash-1": "_animate-arrow-red-flash-
|
|
6
|
-
"animate-arrow-red-flash-2": "_animate-arrow-red-flash-
|
|
7
|
-
"animate-arrow-red-flash-3": "_animate-arrow-red-flash-
|
|
1
|
+
const a = "_scrollArea_1m8hd_289", r = {
|
|
2
|
+
"animate-arrow-green-flash-1": "_animate-arrow-green-flash-1_1m8hd_19",
|
|
3
|
+
"animate-arrow-green-flash-2": "_animate-arrow-green-flash-2_1m8hd_29",
|
|
4
|
+
"animate-arrow-green-flash-3": "_animate-arrow-green-flash-3_1m8hd_39",
|
|
5
|
+
"animate-arrow-red-flash-1": "_animate-arrow-red-flash-1_1m8hd_67",
|
|
6
|
+
"animate-arrow-red-flash-2": "_animate-arrow-red-flash-2_1m8hd_75",
|
|
7
|
+
"animate-arrow-red-flash-3": "_animate-arrow-red-flash-3_1m8hd_85",
|
|
8
|
+
"light-rays": "_light-rays_1m8hd_107",
|
|
9
|
+
scrollArea: a
|
|
8
10
|
};
|
|
9
11
|
export {
|
|
10
|
-
|
|
12
|
+
r as default,
|
|
13
|
+
a as scrollArea
|
|
11
14
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function JackpotGameProviders(): import("react").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Jackpot } from '@opexa/portal-sdk-core';
|
|
2
|
+
export interface JackpotCounterCardProps {
|
|
3
|
+
jackpot: Jackpot;
|
|
4
|
+
/** @default "/jackpots" */
|
|
5
|
+
viewAllUrl?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function JackpotItem({ jackpot }: JackpotCounterCardProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Jackpot } from '@opexa/portal-sdk-core';
|
|
2
|
+
export interface JackpotCounterCardProps {
|
|
3
|
+
jackpot: Jackpot;
|
|
4
|
+
/** @default "/jackpots" */
|
|
5
|
+
viewAllUrl?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function JackpotItemMobile({ jackpot }: JackpotCounterCardProps): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Jackpots';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("tailwind-merge");function i(r){return e.jsxs("div",{className:s.twMerge("border-border-primary bg-bg-primary text-text-secondary-700 shadow-xs flex gap-lg rounded-lg border p-1 pr-2.5 text-sm font-medium",r.className),children:[e.jsxs("div",{className:"border-border-primary flex shrink-0 items-center gap-sm rounded-sm border px-2 py-0.5",children:[e.jsx("span",{className:"bg-utility-success-500 outline-utility-success-100 size-2 rounded-full outline-2"}),e.jsx("span",{children:"What's new"})]}),e.jsx("div",{className:"flex grow items-center overflow-hidden",children:e.jsxs("div",{className:"flex items-center whitespace-nowrap",children:[e.jsx("div",{className:"animate-marquee pr-4 [animation-delay:1s]",children:r.children}),e.jsx("div",{className:"animate-marquee pr-4 [animation-delay:1s]",children:r.children})]})})]})}exports.Marquee=i;
|
|
@@ -1,28 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
import { jsxs as e, jsx as n } from "react/jsx-runtime";
|
|
3
|
-
import s from "react-fast-marquee";
|
|
1
|
+
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
4
2
|
import { twMerge as i } from "tailwind-merge";
|
|
5
|
-
function
|
|
6
|
-
return /* @__PURE__ */
|
|
3
|
+
function n(r) {
|
|
4
|
+
return /* @__PURE__ */ a(
|
|
7
5
|
"div",
|
|
8
6
|
{
|
|
9
7
|
className: i(
|
|
10
|
-
"border-
|
|
8
|
+
"border-border-primary bg-bg-primary text-text-secondary-700 shadow-xs flex gap-lg rounded-lg border p-1 pr-2.5 text-sm font-medium",
|
|
11
9
|
r.className
|
|
12
10
|
),
|
|
13
11
|
children: [
|
|
14
|
-
/* @__PURE__ */
|
|
15
|
-
/* @__PURE__ */
|
|
16
|
-
/* @__PURE__ */
|
|
12
|
+
/* @__PURE__ */ a("div", { className: "border-border-primary flex shrink-0 items-center gap-sm rounded-sm border px-2 py-0.5", children: [
|
|
13
|
+
/* @__PURE__ */ e("span", { className: "bg-utility-success-500 outline-utility-success-100 size-2 rounded-full outline-2" }),
|
|
14
|
+
/* @__PURE__ */ e("span", { children: "What's new" })
|
|
17
15
|
] }),
|
|
18
|
-
/* @__PURE__ */ e(
|
|
19
|
-
r.children,
|
|
20
|
-
"
|
|
21
|
-
] })
|
|
16
|
+
/* @__PURE__ */ e("div", { className: "flex grow items-center overflow-hidden", children: /* @__PURE__ */ a("div", { className: "flex items-center whitespace-nowrap", children: [
|
|
17
|
+
/* @__PURE__ */ e("div", { className: "animate-marquee pr-4 [animation-delay:1s]", children: r.children }),
|
|
18
|
+
/* @__PURE__ */ e("div", { className: "animate-marquee pr-4 [animation-delay:1s]", children: r.children })
|
|
19
|
+
] }) })
|
|
22
20
|
]
|
|
23
21
|
}
|
|
24
22
|
);
|
|
25
23
|
}
|
|
26
24
|
export {
|
|
27
|
-
|
|
25
|
+
n as Marquee
|
|
28
26
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),g=require("./utils.js"),q=require("date-fns"),f=require("next/link");require("@opexa/portal-sdk-core");require("@tanstack/react-query");require("tiny-invariant");require("../../constants/index.js");require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");require("react");require("lodash-es");require("@opexa/portal-sdk-core/object-id");const h=require("../../client/hooks/useGlobalStore.js");require("../../client/hooks/useInfiniteQueryHelper.js");require("usehooks-ts");const y=require("../../client/hooks/useMarkMessageAsReadMutation.js"),j=require("zustand/shallow");function M({message:t}){const{id:n,title:i,dateTimeCreated:o,content:c,markedAsRead:l,icon:u,actions:a}=t,{messages:r}=h.useGlobalStore(j.useShallow(s=>({messages:s.messages}))),{mutateAsync:d}=y.useMarkMessageAsReadMutation(),m=g.getMessageIcon(u),x=async()=>{await d({id:n}),r.message.setOpen(!0),r.message.setContent(t),r.setOpen(!1)},b=s=>{s.stopPropagation(),r.setOpen(!1),r.setTab("ALL")};return e.jsxs("div",{role:"button",tabIndex:0,className:"border-border-secondary rounded-xs bg-bg-secondary flex h-auto flex-shrink-0 cursor-pointer flex-col border px-3.5 py-2.5",onClick:x,"aria-pressed":"false",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx("p",{className:"text-text-tertiary-600 text-xs font-normal",children:q.format(new Date(o),"M/d/yyyy - h:mma")}),!l&&e.jsx("div",{className:"bg-utility-success-500 h-2.5 w-2.5 rounded-full"})]}),e.jsxs("div",{className:"mb-2 flex items-center space-x-2",children:[e.jsx(m,{className:"text-brand-400"}),e.jsx("p",{className:"text-text-primary-brand text-sm font-semibold",children:i})]}),e.jsx("p",{className:"text-wrap text-sm font-normal",children:c}),a.length>0&&e.jsx("div",{className:"mt-2 flex flex-wrap items-center justify-end gap-2",children:a.map((s,p)=>e.jsx(f,{className:"border-button-secondary-border text-button-secondary-fg rounded-md border px-3 py-2 text-sm",href:s.url,onClick:b,children:s.name},p))})]})}exports.MessageItem=M;
|