@opexa/portal-components 0.0.26 β 0.0.27
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 +1 -0
- package/dist/client/hooks/useGlobalStore.d.ts +5 -4
- package/dist/client/hooks/useGlobalStore.js +1 -1
- package/dist/client/hooks/useGlobalStore.mjs +20 -9
- package/dist/client/hooks/useProfileCompletionQuery.d.ts +3 -0
- package/dist/client/hooks/useProfileCompletionQuery.js +1 -0
- package/dist/client/hooks/useProfileCompletionQuery.mjs +38 -0
- package/dist/client-hooks.js +1 -1
- package/dist/client-hooks.mjs +34 -32
- package/dist/components/Account/Account.d.ts +8 -0
- package/dist/components/Account/Account.js +1 -1
- package/dist/components/Account/Account.mjs +346 -201
- package/dist/components/Account/account.recipe.js +1 -1
- package/dist/components/Account/account.recipe.mjs +4 -4
- package/dist/components/AccountInfo/AccountInfo.d.ts +4 -0
- package/dist/components/AccountInfo/AccountInfo.js +1 -0
- package/dist/components/AccountInfo/AccountInfo.mjs +148 -0
- package/dist/components/AccountInfo/index.d.ts +1 -0
- package/dist/components/AccountPaymentMethods/AccountPaymentMethods.d.ts +1 -0
- package/dist/components/AccountPaymentMethods/AccountPaymentMethods.js +1 -0
- package/dist/components/AccountPaymentMethods/AccountPaymentMethods.mjs +6 -0
- package/dist/components/AccountPaymentMethods/index.d.ts +1 -0
- package/dist/components/AccountSecurity/AccountSecurity.d.ts +4 -0
- package/dist/components/AccountSecurity/AccountSecurity.js +1 -0
- package/dist/components/AccountSecurity/AccountSecurity.mjs +159 -0
- package/dist/components/AccountSecurity/index.d.ts +1 -0
- package/dist/components/AccountVerification/AccountVerification.d.ts +1 -0
- package/dist/components/AccountVerification/AccountVerification.js +1 -0
- package/dist/components/AccountVerification/AccountVerification.mjs +6 -0
- package/dist/components/AccountVerification/index.d.ts +1 -0
- package/dist/components/JackpotCounter/JackpotCounterItem.js +1 -1
- package/dist/components/JackpotCounter/JackpotCounterItem.mjs +36 -36
- package/dist/components/Jackpots/JackpotGameProviders.d.ts +5 -1
- package/dist/components/Jackpots/JackpotGameProviders.js +1 -1
- package/dist/components/Jackpots/JackpotGameProviders.mjs +33 -31
- package/dist/components/Jackpots/JackpotItemDesktop.d.ts +9 -0
- package/dist/components/Jackpots/JackpotItemDesktop.js +1 -0
- package/dist/components/Jackpots/{JackpotItem.mjs β JackpotItemDesktop.mjs} +121 -173
- package/dist/components/Jackpots/JackpotItemMobile.d.ts +3 -1
- package/dist/components/Jackpots/JackpotItemMobile.js +1 -1
- package/dist/components/Jackpots/JackpotItemMobile.mjs +133 -180
- package/dist/components/Jackpots/Jackpots.d.ts +2 -0
- package/dist/components/Jackpots/Jackpots.js +1 -1
- package/dist/components/Jackpots/Jackpots.mjs +15 -13
- package/dist/components/Jackpots/useJackpotItemData.d.ts +21 -0
- package/dist/components/Jackpots/useJackpotItemData.js +1 -0
- package/dist/components/Jackpots/useJackpotItemData.mjs +100 -0
- package/dist/components/index.d.ts +4 -0
- package/dist/components.js +1 -1
- package/dist/components.mjs +74 -66
- package/dist/icons/CheckVerified02Icon.d.ts +2 -0
- package/dist/icons/CheckVerified02Icon.js +1 -0
- package/dist/icons/CheckVerified02Icon.mjs +22 -0
- package/dist/icons/CreditCard02Icon.d.ts +2 -0
- package/dist/icons/CreditCard02Icon.js +1 -0
- package/dist/icons/CreditCard02Icon.mjs +22 -0
- package/dist/icons/FileCheck02Icon.d.ts +2 -0
- package/dist/icons/FileCheck02Icon.js +1 -0
- package/dist/icons/FileCheck02Icon.mjs +22 -0
- package/dist/icons/Lock01Icon.d.ts +2 -0
- package/dist/icons/Lock01Icon.js +1 -0
- package/dist/icons/Lock01Icon.mjs +22 -0
- package/dist/icons/index.d.ts +4 -0
- package/dist/icons.js +1 -1
- package/dist/icons.mjs +92 -84
- package/dist/server/utils/index.d.ts +1 -0
- package/dist/server/utils/prefetchProfileCompletionQuery.d.ts +1 -0
- package/dist/server/utils/prefetchProfileCompletionQuery.js +1 -0
- package/dist/server/utils/prefetchProfileCompletionQuery.mjs +26 -0
- package/dist/server-utils.js +1 -1
- package/dist/server-utils.mjs +28 -26
- package/dist/theme.css +49 -0
- package/dist/ui/Checkbox/checkbox.recipe.js +1 -1
- package/dist/ui/Checkbox/checkbox.recipe.mjs +3 -3
- package/dist/ui/Clipboard/clipboard.recipe.js +1 -1
- package/dist/ui/Clipboard/clipboard.recipe.mjs +8 -8
- package/dist/ui/Field/field.recipe.js +1 -1
- package/dist/ui/Field/field.recipe.mjs +4 -2
- package/dist/ui/IconButton/iconButton.recipe.d.ts +1 -0
- package/dist/ui/IconButton/iconButton.recipe.js +1 -1
- package/dist/ui/IconButton/iconButton.recipe.mjs +1 -0
- package/dist/ui/NumberInput/numberInput.recipe.js +1 -1
- package/dist/ui/NumberInput/numberInput.recipe.mjs +3 -3
- package/dist/ui/PasswordInput/passwordInput.recipe.js +1 -1
- package/dist/ui/PasswordInput/passwordInput.recipe.mjs +3 -3
- package/dist/ui/PinInput/pinInput.recipe.js +1 -1
- package/dist/ui/PinInput/pinInput.recipe.mjs +1 -1
- package/dist/ui/Select/select.recipe.js +1 -1
- package/dist/ui/Select/select.recipe.mjs +3 -3
- package/dist/utils/queryKeys.d.ts +1 -0
- package/dist/utils/queryKeys.js +1 -1
- package/dist/utils/queryKeys.mjs +71 -68
- package/dist/utils.js +1 -1
- package/dist/utils.mjs +20 -19
- package/package.json +1 -1
- package/dist/components/Jackpots/JackpotItem.d.ts +0 -7
- package/dist/components/Jackpots/JackpotItem.js +0 -1
|
@@ -1,41 +1,23 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { Progress as
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import { twMerge as
|
|
7
|
-
import "
|
|
8
|
-
import "
|
|
9
|
-
import "
|
|
10
|
-
import "../../
|
|
11
|
-
import "../../
|
|
12
|
-
import {
|
|
13
|
-
import "../../
|
|
14
|
-
import "../../
|
|
15
|
-
import "../../
|
|
16
|
-
import "../../
|
|
17
|
-
import "../../client/services/getSession.mjs";
|
|
18
|
-
import "lodash-es";
|
|
19
|
-
import "@opexa/portal-sdk-core/object-id";
|
|
20
|
-
import "../../client/hooks/useGlobalStore.mjs";
|
|
21
|
-
import "../../client/hooks/useInfiniteQueryHelper.mjs";
|
|
22
|
-
import { useLocaleInfo as S } from "../../client/hooks/useLocaleInfo.mjs";
|
|
23
|
-
import "usehooks-ts";
|
|
24
|
-
import { useJackpotPayoutsQuery as R } from "../../client/hooks/useJackpotPayoutsQuery.mjs";
|
|
25
|
-
import { ArrowNarrowUpRightIcon as M } from "../../icons/ArrowNarrowUpRightIcon.mjs";
|
|
26
|
-
import { ChevronLeftIcon as x } from "../../icons/ChevronLeftIcon.mjs";
|
|
27
|
-
import { ChevronRightIcon as p } from "../../icons/ChevronRightIcon.mjs";
|
|
28
|
-
import { StarIcon as P } from "../../icons/StarIcon.mjs";
|
|
29
|
-
import { Trophy01Icon as C } from "../../icons/Trophy01Icon.mjs";
|
|
30
|
-
import { ArrowNarrowDownIcon as q } from "../../icons/ArrowNarrowDownIcon.mjs";
|
|
31
|
-
import { ArrowNarrowUpIcon as O } from "../../icons/ArrowNarrowUpIcon.mjs";
|
|
32
|
-
import Q from "../../images/close-chest.png.mjs";
|
|
33
|
-
import U from "../../images/first-place.png.mjs";
|
|
34
|
-
import $ from "../../images/open-chest.png.mjs";
|
|
2
|
+
import { jsxs as r, jsx as e, Fragment as y } from "react/jsx-runtime";
|
|
3
|
+
import { Progress as x } from "@ark-ui/react";
|
|
4
|
+
import g from "next/image";
|
|
5
|
+
import { useState as L } from "react";
|
|
6
|
+
import { twMerge as l } from "tailwind-merge";
|
|
7
|
+
import { ArrowNarrowUpRightIcon as R } from "../../icons/ArrowNarrowUpRightIcon.mjs";
|
|
8
|
+
import { ChevronLeftIcon as f } from "../../icons/ChevronLeftIcon.mjs";
|
|
9
|
+
import { ChevronRightIcon as b } from "../../icons/ChevronRightIcon.mjs";
|
|
10
|
+
import { StarIcon as v } from "../../icons/StarIcon.mjs";
|
|
11
|
+
import { Trophy01Icon as w } from "../../icons/Trophy01Icon.mjs";
|
|
12
|
+
import { ArrowNarrowDownIcon as T } from "../../icons/ArrowNarrowDownIcon.mjs";
|
|
13
|
+
import { ArrowNarrowUpIcon as S } from "../../icons/ArrowNarrowUpIcon.mjs";
|
|
14
|
+
import M from "../../images/close-chest.png.mjs";
|
|
15
|
+
import B from "../../images/first-place.png.mjs";
|
|
16
|
+
import G from "../../images/open-chest.png.mjs";
|
|
35
17
|
import "../../ui/AlertDialog/AlertDialog.mjs";
|
|
36
18
|
import "../../ui/Avatar/Avatar.mjs";
|
|
37
19
|
import "../../ui/Badge/Badge.mjs";
|
|
38
|
-
import { Button as
|
|
20
|
+
import { Button as P } from "../../ui/Button/Button.mjs";
|
|
39
21
|
import "../../ui/Checkbox/Checkbox.mjs";
|
|
40
22
|
import "../../ui/Clipboard/Clipboard.mjs";
|
|
41
23
|
import "../../ui/Collapsible/Collapsible.mjs";
|
|
@@ -44,6 +26,13 @@ import "../../ui/DatePicker/DatePicker.mjs";
|
|
|
44
26
|
import "../../ui/Dialog/Dialog.mjs";
|
|
45
27
|
import "../../ui/Drawer/Drawer.mjs";
|
|
46
28
|
import "../../ui/Field/Field.mjs";
|
|
29
|
+
import "../../utils/capitalize.mjs";
|
|
30
|
+
import { formatNumber as m } from "../../utils/formatNumber.mjs";
|
|
31
|
+
import "../../constants/index.mjs";
|
|
32
|
+
import "../../utils/getLocaleInfo.mjs";
|
|
33
|
+
import "../../utils/getQueryClient.mjs";
|
|
34
|
+
import "../../utils/isMobile.mjs";
|
|
35
|
+
import "../../utils/parseDecimal.mjs";
|
|
47
36
|
import "../../ui/IconButton/iconButton.recipe.mjs";
|
|
48
37
|
import "../../ui/NumberInput/NumberInput.mjs";
|
|
49
38
|
import "../../ui/PasswordInput/PasswordInput.mjs";
|
|
@@ -54,72 +43,58 @@ import "../../ui/SegmentGroup/SegmentGroup.mjs";
|
|
|
54
43
|
import "../../ui/Select/Select.mjs";
|
|
55
44
|
import "../../ui/Table/Table.mjs";
|
|
56
45
|
import "../../ui/Tabs/Tabs.mjs";
|
|
57
|
-
import { maskName as
|
|
58
|
-
import
|
|
59
|
-
import { JackpotGameProviders as
|
|
60
|
-
import { JackpotRules as
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
className: i(
|
|
79
|
-
"scale-400 lg:scale-250 text-brand-300 min-w-2.5 lg:min-w-4",
|
|
80
|
-
a ? o["animate-wave-color-error"] : o["animate-wave-color-success"]
|
|
81
|
-
),
|
|
82
|
-
style: {
|
|
83
|
-
animationDelay: a ? `${(40 - s - 1) * 0.1}s` : `${s * 0.1}s`
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
),
|
|
87
|
-
[a]
|
|
88
|
-
), J = L(
|
|
89
|
-
() => Array.from({ length: 40 }, (s, l) => /* @__PURE__ */ e(y, { isFirst: l === 0, index: l }, l)),
|
|
90
|
-
[y]
|
|
91
|
-
), [u, g] = T(!1);
|
|
46
|
+
import { maskName as z } from "../JackpotCounter/JackpotCounterItem.mjs";
|
|
47
|
+
import a from "../JackpotCounter/JackpotCounterItem.module.css.mjs";
|
|
48
|
+
import { JackpotGameProviders as O } from "./JackpotGameProviders.mjs";
|
|
49
|
+
import { JackpotRules as U } from "./JackpotRules.mjs";
|
|
50
|
+
import { useJackpotItemData as V } from "./useJackpotItemData.mjs";
|
|
51
|
+
function Be({
|
|
52
|
+
jackpot: t,
|
|
53
|
+
gameProviders: p
|
|
54
|
+
}) {
|
|
55
|
+
const {
|
|
56
|
+
jackpotPayouts: u,
|
|
57
|
+
topJackpotPayout: h,
|
|
58
|
+
filteredGameProviders: I,
|
|
59
|
+
localeInfo: s,
|
|
60
|
+
isPayingOut: o,
|
|
61
|
+
jackpotAmount: C,
|
|
62
|
+
arrowImages: D,
|
|
63
|
+
calculatePercentage: J,
|
|
64
|
+
getAccumulatingJackpotDescription: A,
|
|
65
|
+
starTierStyles: c
|
|
66
|
+
} = V({ jackpot: t, gameProviders: p }), [d, N] = L(!1);
|
|
92
67
|
return /* @__PURE__ */ r("div", { className: "bg-bg-primary border-border-primary rounded-2xl border", children: [
|
|
93
68
|
/* @__PURE__ */ r(
|
|
94
69
|
"div",
|
|
95
70
|
{
|
|
96
|
-
className:
|
|
71
|
+
className: l(
|
|
97
72
|
"bg-bg-tertiary relative flex shrink-0 rounded-2xl p-3 text-center lg:gap-4 lg:p-5"
|
|
98
73
|
),
|
|
99
74
|
children: [
|
|
100
75
|
/* @__PURE__ */ r("div", { className: "z-1 relative flex flex-1 flex-col", children: [
|
|
101
76
|
/* @__PURE__ */ e("div", { className: "flex h-full flex-col justify-between", children: /* @__PURE__ */ e("div", { className: "flex w-full justify-between", children: /* @__PURE__ */ e("div", { className: "flex w-full flex-col", children: /* @__PURE__ */ r("div", { className: "relative flex w-full justify-between", children: [
|
|
102
77
|
/* @__PURE__ */ r("div", { children: [
|
|
103
|
-
|
|
78
|
+
o ? /* @__PURE__ */ r("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: [
|
|
104
79
|
/* @__PURE__ */ e("span", { className: "full bg-utility-success-500 size-1.5 animate-pulse rounded" }),
|
|
105
80
|
"Paying Out"
|
|
106
81
|
] }) : /* @__PURE__ */ r("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: [
|
|
107
|
-
/* @__PURE__ */ e(
|
|
82
|
+
/* @__PURE__ */ e(R, { className: "text-utility-blue-500 size-3.5" }),
|
|
108
83
|
"Accumulating"
|
|
109
84
|
] }),
|
|
110
85
|
/* @__PURE__ */ e("div", { className: "text-text-primary-900 mt-1 text-left text-lg font-medium lg:mt-5 lg:text-2xl", children: t.name }),
|
|
111
|
-
/* @__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:
|
|
112
|
-
currency:
|
|
86
|
+
/* @__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: m(C, {
|
|
87
|
+
currency: s.currency.code,
|
|
113
88
|
minDecimalPlaces: 2,
|
|
114
89
|
maxDecimalPlaces: 2
|
|
115
90
|
}) })
|
|
116
91
|
] }),
|
|
117
92
|
/* @__PURE__ */ e("div", { className: "z-1 bottom-[-60] right-0 block lg:absolute", children: /* @__PURE__ */ e(
|
|
118
|
-
|
|
93
|
+
g,
|
|
119
94
|
{
|
|
120
95
|
width: 100,
|
|
121
96
|
height: 100,
|
|
122
|
-
src:
|
|
97
|
+
src: o ? G : M,
|
|
123
98
|
alt: "closeChest",
|
|
124
99
|
quality: 100,
|
|
125
100
|
className: "size-full h-auto w-[100px]"
|
|
@@ -128,106 +103,106 @@ function We({ jackpot: t }) {
|
|
|
128
103
|
] }) }) }) }),
|
|
129
104
|
/* @__PURE__ */ r("div", { className: "mt-3 lg:mt-4", children: [
|
|
130
105
|
/* @__PURE__ */ r("div", { className: "mb-1 flex justify-between", children: [
|
|
131
|
-
/* @__PURE__ */ e("div", { className: "text-text-primary-900 text-xs font-semibold", children:
|
|
132
|
-
currency:
|
|
106
|
+
/* @__PURE__ */ e("div", { className: "text-text-primary-900 text-xs font-semibold", children: m(0, {
|
|
107
|
+
currency: s.currency.code,
|
|
133
108
|
compact: !0
|
|
134
109
|
}) }),
|
|
135
110
|
/* @__PURE__ */ r("div", { className: "relative flex items-center justify-end gap-1.5", children: [
|
|
136
|
-
|
|
111
|
+
o ? /* @__PURE__ */ r("div", { className: "flex w-6 items-center", children: [
|
|
137
112
|
/* @__PURE__ */ e(
|
|
138
113
|
"div",
|
|
139
114
|
{
|
|
140
|
-
className:
|
|
115
|
+
className: l(
|
|
141
116
|
"absolute left-0",
|
|
142
|
-
|
|
117
|
+
a["animate-arrow-red-flash-1"]
|
|
143
118
|
),
|
|
144
|
-
children: /* @__PURE__ */ e(
|
|
119
|
+
children: /* @__PURE__ */ e(f, { className: "size-4.5" })
|
|
145
120
|
}
|
|
146
121
|
),
|
|
147
122
|
/* @__PURE__ */ e(
|
|
148
123
|
"div",
|
|
149
124
|
{
|
|
150
|
-
className:
|
|
125
|
+
className: l(
|
|
151
126
|
"absolute left-1.5",
|
|
152
|
-
|
|
127
|
+
a["animate-arrow-red-flash-2"]
|
|
153
128
|
),
|
|
154
|
-
children: /* @__PURE__ */ e(
|
|
129
|
+
children: /* @__PURE__ */ e(f, { className: "size-4.5" })
|
|
155
130
|
}
|
|
156
131
|
),
|
|
157
132
|
/* @__PURE__ */ e(
|
|
158
133
|
"div",
|
|
159
134
|
{
|
|
160
|
-
className:
|
|
135
|
+
className: l(
|
|
161
136
|
"absolute left-3",
|
|
162
|
-
|
|
137
|
+
a["animate-arrow-red-flash-3"]
|
|
163
138
|
),
|
|
164
|
-
children: /* @__PURE__ */ e(
|
|
139
|
+
children: /* @__PURE__ */ e(f, { className: "size-4.5" })
|
|
165
140
|
}
|
|
166
141
|
)
|
|
167
142
|
] }) : /* @__PURE__ */ r("div", { className: "flex w-6 items-center", children: [
|
|
168
143
|
/* @__PURE__ */ e(
|
|
169
144
|
"div",
|
|
170
145
|
{
|
|
171
|
-
className:
|
|
146
|
+
className: l(
|
|
172
147
|
"absolute left-0",
|
|
173
|
-
|
|
148
|
+
a["animate-arrow-green-flash-1"]
|
|
174
149
|
),
|
|
175
|
-
children: /* @__PURE__ */ e(
|
|
150
|
+
children: /* @__PURE__ */ e(b, { className: "size-4.5" })
|
|
176
151
|
}
|
|
177
152
|
),
|
|
178
153
|
/* @__PURE__ */ e(
|
|
179
154
|
"div",
|
|
180
155
|
{
|
|
181
|
-
className:
|
|
156
|
+
className: l(
|
|
182
157
|
"absolute left-1.5",
|
|
183
|
-
|
|
158
|
+
a["animate-arrow-green-flash-2"]
|
|
184
159
|
),
|
|
185
|
-
children: /* @__PURE__ */ e(
|
|
160
|
+
children: /* @__PURE__ */ e(b, { className: "size-4.5" })
|
|
186
161
|
}
|
|
187
162
|
),
|
|
188
163
|
/* @__PURE__ */ e(
|
|
189
164
|
"div",
|
|
190
165
|
{
|
|
191
|
-
className:
|
|
166
|
+
className: l(
|
|
192
167
|
"absolute left-3",
|
|
193
|
-
|
|
168
|
+
a["animate-arrow-green-flash-3"]
|
|
194
169
|
),
|
|
195
|
-
children: /* @__PURE__ */ e(
|
|
170
|
+
children: /* @__PURE__ */ e(b, { className: "size-4.5" })
|
|
196
171
|
}
|
|
197
172
|
)
|
|
198
173
|
] }),
|
|
199
|
-
/* @__PURE__ */ e("div", { className: "text-text-primary-900 text-xs font-semibold", children:
|
|
200
|
-
currency:
|
|
174
|
+
/* @__PURE__ */ e("div", { className: "text-text-primary-900 text-xs font-semibold", children: m(t == null ? void 0 : t.maximumJackpotPoolLimit, {
|
|
175
|
+
currency: s.currency.code,
|
|
201
176
|
compact: !0
|
|
202
177
|
}) })
|
|
203
178
|
] })
|
|
204
179
|
] }),
|
|
205
180
|
/* @__PURE__ */ e(
|
|
206
|
-
|
|
181
|
+
x.Root,
|
|
207
182
|
{
|
|
208
183
|
className: "bg-bg-primary h-2 w-full rounded-full lg:h-4",
|
|
209
184
|
max: 100,
|
|
210
|
-
value:
|
|
185
|
+
value: J(
|
|
211
186
|
Number(t.pool),
|
|
212
187
|
Number(t.maximumJackpotPoolLimit)
|
|
213
188
|
),
|
|
214
|
-
children: /* @__PURE__ */ e(
|
|
189
|
+
children: /* @__PURE__ */ e(x.Track, { className: "bg-bg-primary h-full overflow-hidden rounded-full", children: /* @__PURE__ */ e(x.Range, { className: "bg-brand-500 relative h-full overflow-hidden rounded-full pl-1.5", children: /* @__PURE__ */ e(
|
|
215
190
|
"div",
|
|
216
191
|
{
|
|
217
192
|
className: "pointer-events-none absolute inset-0 flex items-center justify-start pl-1.5",
|
|
218
193
|
"aria-hidden": "true",
|
|
219
|
-
children:
|
|
194
|
+
children: D
|
|
220
195
|
}
|
|
221
196
|
) }) })
|
|
222
197
|
}
|
|
223
198
|
),
|
|
224
|
-
/* @__PURE__ */ e("div", { className: "mt-1 block text-start text-2xs lg:hidden", children:
|
|
199
|
+
/* @__PURE__ */ e("div", { className: "mt-1 block text-start text-2xs lg:hidden", children: o ? `The pot has hit ${m(
|
|
225
200
|
t == null ? void 0 : t.maximumJackpotPoolLimit,
|
|
226
201
|
{
|
|
227
|
-
currency:
|
|
202
|
+
currency: s.currency.code,
|
|
228
203
|
compact: !0
|
|
229
204
|
}
|
|
230
|
-
)} Play now for your chance to win big! π₯` :
|
|
205
|
+
)} Play now for your chance to win big! π₯` : A(
|
|
231
206
|
Number(t == null ? void 0 : t.pool) ?? 0,
|
|
232
207
|
Number(t == null ? void 0 : t.maximumJackpotPoolLimit) ?? 0
|
|
233
208
|
) })
|
|
@@ -236,30 +211,30 @@ function We({ jackpot: t }) {
|
|
|
236
211
|
/* @__PURE__ */ e("div", { className: "border-yellow-400 relative h-18 w-18 rounded-full border", children: /* @__PURE__ */ e("div", { className: "bg-yellow-400 text-brand-950 border-bg-primary absolute bottom-0 right-0 flex h-6 w-6 items-center justify-center rounded-full border-[1.5px] text-xs font-bold", children: "1st" }) }),
|
|
237
212
|
/* @__PURE__ */ r("div", { className: "flex flex-col gap-1 text-left", children: [
|
|
238
213
|
/* @__PURE__ */ r("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: [
|
|
239
|
-
/* @__PURE__ */ e(
|
|
214
|
+
/* @__PURE__ */ e(w, { className: "text-utility-brand-600 size-3.5" }),
|
|
240
215
|
"Top Payout"
|
|
241
216
|
] }),
|
|
242
|
-
/* @__PURE__ */ e("div", { className: "font-semibold", children:
|
|
243
|
-
/* @__PURE__ */ e("div", { className: "text-brand-400 text-2xl", children:
|
|
244
|
-
currency:
|
|
217
|
+
/* @__PURE__ */ e("div", { className: "font-semibold", children: z(h.member.name) }),
|
|
218
|
+
/* @__PURE__ */ e("div", { className: "text-brand-400 text-2xl", children: m(h.amount, {
|
|
219
|
+
currency: s.currency.code,
|
|
245
220
|
minDecimalPlaces: 2,
|
|
246
221
|
maxDecimalPlaces: 2
|
|
247
222
|
}) })
|
|
248
223
|
] })
|
|
249
224
|
] }) }) : /* @__PURE__ */ r("div", { className: "bg-bg-primary relative mt-4 flex w-full gap-4 rounded-lg p-4", children: [
|
|
250
225
|
/* @__PURE__ */ e(
|
|
251
|
-
|
|
226
|
+
g,
|
|
252
227
|
{
|
|
253
228
|
width: 66,
|
|
254
229
|
height: 87,
|
|
255
|
-
src:
|
|
230
|
+
src: B,
|
|
256
231
|
alt: "closeChest",
|
|
257
232
|
className: "size-full h-auto w-[66px] mix-blend-luminosity"
|
|
258
233
|
}
|
|
259
234
|
),
|
|
260
235
|
/* @__PURE__ */ r("div", { className: "flex flex-col gap-1 text-left", children: [
|
|
261
236
|
/* @__PURE__ */ r("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: [
|
|
262
|
-
/* @__PURE__ */ e(
|
|
237
|
+
/* @__PURE__ */ e(w, { className: "text-utility-brand-600 size-3.5" }),
|
|
263
238
|
"Top Payout"
|
|
264
239
|
] }),
|
|
265
240
|
/* @__PURE__ */ e("div", { className: "font-semibold", children: "No winners yet" }),
|
|
@@ -267,26 +242,26 @@ function We({ jackpot: t }) {
|
|
|
267
242
|
] })
|
|
268
243
|
] }),
|
|
269
244
|
/* @__PURE__ */ e(
|
|
270
|
-
|
|
245
|
+
P,
|
|
271
246
|
{
|
|
272
247
|
variant: "outline",
|
|
273
|
-
className:
|
|
248
|
+
className: l(
|
|
274
249
|
"mt-5.5 px-3.5 py-2.5 text-sm",
|
|
275
|
-
|
|
250
|
+
d ? "hidden" : "flex"
|
|
276
251
|
),
|
|
277
|
-
onClick: () =>
|
|
252
|
+
onClick: () => N(!d),
|
|
278
253
|
children: /* @__PURE__ */ r("div", { className: "flex gap-1.5", children: [
|
|
279
254
|
"See Details",
|
|
280
|
-
/* @__PURE__ */ e(
|
|
255
|
+
/* @__PURE__ */ e(T, { className: "size-5" })
|
|
281
256
|
] })
|
|
282
257
|
}
|
|
283
258
|
)
|
|
284
259
|
] }),
|
|
285
|
-
|
|
260
|
+
o && /* @__PURE__ */ e(
|
|
286
261
|
"div",
|
|
287
262
|
{
|
|
288
|
-
className:
|
|
289
|
-
|
|
263
|
+
className: l(
|
|
264
|
+
a["light-rays"],
|
|
290
265
|
"absolute right-0 top-0 rounded-2xl [--light-rays-top:15%] lg:[--light-rays-top:150px]"
|
|
291
266
|
)
|
|
292
267
|
}
|
|
@@ -294,11 +269,11 @@ function We({ jackpot: t }) {
|
|
|
294
269
|
]
|
|
295
270
|
}
|
|
296
271
|
),
|
|
297
|
-
|
|
272
|
+
d && /* @__PURE__ */ r("div", { children: [
|
|
298
273
|
/* @__PURE__ */ r("div", { className: "z-1 flex-1", children: [
|
|
299
274
|
/* @__PURE__ */ r("div", { className: "flex items-center justify-between p-3", children: [
|
|
300
|
-
/* @__PURE__ */ e("div", { className: "flex gap-2", children: /* @__PURE__ */ e("div", { className: "text-text-primary-900 text-lg font-semibold", children:
|
|
301
|
-
/* @__PURE__ */ e(
|
|
275
|
+
/* @__PURE__ */ e("div", { className: "flex gap-2", children: /* @__PURE__ */ e("div", { className: "text-text-primary-900 text-lg font-semibold", children: u.length ? "Leaderboard" : "Starting soon!" }) }),
|
|
276
|
+
/* @__PURE__ */ e(U, { jackpotRules: t.description })
|
|
302
277
|
] }),
|
|
303
278
|
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("div", { className: "border-gray-200 overflow-hidden", children: /* @__PURE__ */ r("table", { className: "w-full", children: [
|
|
304
279
|
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ r("tr", { className: "bg-bg-secondary text-text-tertiary-600 h-8 text-center text-xs font-medium", children: [
|
|
@@ -307,121 +282,99 @@ function We({ jackpot: t }) {
|
|
|
307
282
|
/* @__PURE__ */ e("th", { children: "Multiplier" }),
|
|
308
283
|
/* @__PURE__ */ e("th", { children: "Prize" })
|
|
309
284
|
] }) }),
|
|
310
|
-
/* @__PURE__ */ e("tbody", { children:
|
|
285
|
+
/* @__PURE__ */ e("tbody", { children: u.length ? /* @__PURE__ */ e(y, { children: u.map((n, i) => /* @__PURE__ */ r(
|
|
311
286
|
"tr",
|
|
312
287
|
{
|
|
313
|
-
className: "bg-bg-primary text-text-secondary-700 text-sm",
|
|
288
|
+
className: "bg-bg-primary text-text-secondary-700 text-center text-sm",
|
|
314
289
|
children: [
|
|
315
|
-
/* @__PURE__ */ e("td", { className: "border-border-secondary h-12 w-[52px] border-t-2
|
|
290
|
+
/* @__PURE__ */ e("td", { className: "border-border-secondary h-12 w-[52px] border-t-2", children: i + 1 < 6 ? /* @__PURE__ */ r("div", { className: "relative", children: [
|
|
316
291
|
/* @__PURE__ */ e(
|
|
317
|
-
|
|
292
|
+
v,
|
|
318
293
|
{
|
|
319
|
-
className:
|
|
294
|
+
className: l(
|
|
320
295
|
"mx-auto size-6.5",
|
|
321
|
-
|
|
296
|
+
c[i].starColor
|
|
322
297
|
)
|
|
323
298
|
}
|
|
324
299
|
),
|
|
325
300
|
/* @__PURE__ */ e(
|
|
326
301
|
"span",
|
|
327
302
|
{
|
|
328
|
-
className:
|
|
303
|
+
className: l(
|
|
329
304
|
"absolute inset-0 mt-0.5 flex items-center justify-center text-2xs font-bold",
|
|
330
|
-
|
|
305
|
+
c[i].numberColor
|
|
331
306
|
),
|
|
332
|
-
children:
|
|
307
|
+
children: i + 1
|
|
333
308
|
}
|
|
334
309
|
)
|
|
335
|
-
] }) :
|
|
336
|
-
/* @__PURE__ */ e("td", { className: "border-border-secondary h-12 border-t-2
|
|
337
|
-
/* @__PURE__ */ r("td", { className: "border-border-secondary h-12 border-t-2
|
|
338
|
-
|
|
310
|
+
] }) : i + 1 }),
|
|
311
|
+
/* @__PURE__ */ e("td", { className: "border-border-secondary h-12 border-t-2", children: z(n.member.name) }),
|
|
312
|
+
/* @__PURE__ */ r("td", { className: "border-border-secondary h-12 border-t-2", children: [
|
|
313
|
+
n.multiplier,
|
|
339
314
|
"x"
|
|
340
315
|
] }),
|
|
341
|
-
/* @__PURE__ */ e("td", { className: "border-border-secondary text-brand-400 h-12 border-t-2
|
|
342
|
-
currency:
|
|
316
|
+
/* @__PURE__ */ e("td", { className: "border-border-secondary text-brand-400 h-12 border-t-2", children: m(n.amount, {
|
|
317
|
+
currency: s.currency.code,
|
|
343
318
|
minDecimalPlaces: 2,
|
|
344
319
|
maxDecimalPlaces: 2
|
|
345
320
|
}) })
|
|
346
321
|
]
|
|
347
322
|
},
|
|
348
|
-
|
|
349
|
-
)) }) : /* @__PURE__ */ e(
|
|
323
|
+
i
|
|
324
|
+
)) }) : /* @__PURE__ */ e(y, { children: Array.from({ length: 10 }).map((n, i) => /* @__PURE__ */ r(
|
|
350
325
|
"tr",
|
|
351
326
|
{
|
|
352
|
-
className: "bg-bg-primary text-text-secondary-700 text-sm",
|
|
327
|
+
className: "bg-bg-primary text-text-secondary-700 text-center text-sm",
|
|
353
328
|
children: [
|
|
354
|
-
/* @__PURE__ */ e("td", { className: "border-border-secondary h-12 w-[52px] border-t-2", children:
|
|
329
|
+
/* @__PURE__ */ e("td", { className: "border-border-secondary h-12 w-[52px] border-t-2", children: i + 1 < 6 ? /* @__PURE__ */ r("div", { className: "relative", children: [
|
|
355
330
|
/* @__PURE__ */ e(
|
|
356
|
-
|
|
331
|
+
v,
|
|
357
332
|
{
|
|
358
|
-
className:
|
|
333
|
+
className: l(
|
|
359
334
|
"mx-auto size-6.5",
|
|
360
|
-
|
|
335
|
+
c[i].starColor
|
|
361
336
|
)
|
|
362
337
|
}
|
|
363
338
|
),
|
|
364
339
|
/* @__PURE__ */ e(
|
|
365
340
|
"span",
|
|
366
341
|
{
|
|
367
|
-
className:
|
|
342
|
+
className: l(
|
|
368
343
|
"absolute inset-0 mt-0.5 flex items-center justify-center text-2xs font-bold",
|
|
369
|
-
|
|
344
|
+
c[i].numberColor
|
|
370
345
|
),
|
|
371
|
-
children:
|
|
346
|
+
children: i + 1
|
|
372
347
|
}
|
|
373
348
|
)
|
|
374
|
-
] }) :
|
|
349
|
+
] }) : i + 1 }),
|
|
375
350
|
/* @__PURE__ */ e("td", { className: "border-border-secondary h-12 border-t-2", children: "-" }),
|
|
376
351
|
/* @__PURE__ */ e("td", { className: "border-border-secondary h-12 border-t-2", children: "-" }),
|
|
377
352
|
/* @__PURE__ */ e("td", { className: "border-border-secondary h-12 border-t-2", children: "-" })
|
|
378
353
|
]
|
|
379
354
|
},
|
|
380
|
-
|
|
355
|
+
i
|
|
381
356
|
)) }) })
|
|
382
357
|
] }) }) })
|
|
383
358
|
] }),
|
|
384
|
-
/* @__PURE__ */ e(
|
|
359
|
+
!!I.length && /* @__PURE__ */ e(O, { gameProviders: p }),
|
|
385
360
|
/* @__PURE__ */ e("div", { className: "m-3", children: /* @__PURE__ */ e(
|
|
386
|
-
|
|
361
|
+
P,
|
|
387
362
|
{
|
|
388
363
|
variant: "outline",
|
|
389
|
-
className:
|
|
364
|
+
className: l(
|
|
390
365
|
"px-3.5 py-2.5 text-sm",
|
|
391
|
-
|
|
366
|
+
d ? "flex" : "hidden"
|
|
392
367
|
),
|
|
393
|
-
onClick: () =>
|
|
368
|
+
onClick: () => N(!d),
|
|
394
369
|
children: /* @__PURE__ */ r("div", { className: "flex gap-1.5", children: [
|
|
395
370
|
"Hide",
|
|
396
|
-
/* @__PURE__ */ e(
|
|
371
|
+
/* @__PURE__ */ e(S, { className: "size-5" })
|
|
397
372
|
] })
|
|
398
373
|
}
|
|
399
374
|
) })
|
|
400
375
|
] })
|
|
401
376
|
] });
|
|
402
377
|
}
|
|
403
|
-
const _ = (t, m) => m === 0 ? 0 : t / m * 100, B = (t, m) => (m === 0 ? 0 : t / m * 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!", b = [
|
|
404
|
-
{
|
|
405
|
-
starColor: "text-yellow-400",
|
|
406
|
-
numberColor: "text-bg-primary"
|
|
407
|
-
},
|
|
408
|
-
{
|
|
409
|
-
starColor: "text-utility-gray-700",
|
|
410
|
-
numberColor: "text-bg-primary"
|
|
411
|
-
},
|
|
412
|
-
{
|
|
413
|
-
starColor: "text-yellow-700",
|
|
414
|
-
numberColor: "text-bg-primary"
|
|
415
|
-
},
|
|
416
|
-
{
|
|
417
|
-
starColor: "text-bg-quaternary",
|
|
418
|
-
numberColor: "text-text-primary-900"
|
|
419
|
-
},
|
|
420
|
-
{
|
|
421
|
-
starColor: "text-bg-quaternary",
|
|
422
|
-
numberColor: "text-text-primary-900"
|
|
423
|
-
}
|
|
424
|
-
];
|
|
425
378
|
export {
|
|
426
|
-
|
|
379
|
+
Be as JackpotItemMobile
|
|
427
380
|
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { GameProviderData } from '../../types';
|
|
1
2
|
export interface JackpotsProps {
|
|
2
3
|
/** @default "Promos" */
|
|
3
4
|
heading?: string;
|
|
4
5
|
/** @default "/jackpots" */
|
|
5
6
|
viewAllUrl?: string;
|
|
6
7
|
className?: string;
|
|
8
|
+
gameProviders: GameProviderData[];
|
|
7
9
|
}
|
|
8
10
|
export declare function Jackpots(props: JackpotsProps): import("react").JSX.Element | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime");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("../../client/services/getSession.js");require("react");require("lodash-es");require("@opexa/portal-sdk-core/object-id");require("../../client/hooks/useGlobalStore.js");require("../../client/hooks/useInfiniteQueryHelper.js");const t=require("../../client/hooks/useJackpotsQuery.js");require("usehooks-ts");const a=require("./JackpotItemDesktop.js"),u=require("./JackpotItemMobile.js");function c(r){var l;const s=((l=t.useJackpotsQuery({first:100,filter:{status:{equal:"ACTIVE"},deleted:{equal:!1}},sort:{cursor:"POOL",order:"DESC"}}).data)==null?void 0:l.pages[0].edges.map(e=>e.node))??[];return s.length<=0?null:i.jsxs("div",{className:r.className,children:[i.jsx("div",{className:"mb-3 text-lg font-semibold lg:mb-4.5",children:r.heading??"Jackpots"}),i.jsx("div",{className:"hidden flex-col gap-6 lg:flex",children:s.map(e=>i.jsx(a.JackpotItemDesktop,{gameProviders:r.gameProviders,jackpot:e,viewAllUrl:r.viewAllUrl},e.id))}),i.jsx("div",{className:"flex flex-col gap-6 lg:hidden",children:s.map(e=>i.jsx(u.JackpotItemMobile,{gameProviders:r.gameProviders,jackpot:e,viewAllUrl:r.viewAllUrl},e.id))})]})}exports.Jackpots=c;
|