@gearbox-protocol/ui-kit 3.13.0 → 3.14.0-next.1
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/cjs/components/composites/pool-table/columns.cjs +1 -1
- package/dist/cjs/components/composites/pool-table/pool-table.cjs +1 -1
- package/dist/cjs/components/composites/strategies-table/columns.cjs +1 -1
- package/dist/cjs/components/composites/strategies-table/components/cells/cells.cjs +1 -1
- package/dist/cjs/components/composites/strategies-table/components/rewards-tooltip/tooltip-content.cjs +1 -1
- package/dist/cjs/components/graph/graph.cjs +1 -1
- package/dist/cjs/components/layout/main-aside-layout/main-aside-layout.cjs +1 -1
- package/dist/cjs/locale/en.json.cjs +1 -1
- package/dist/esm/components/composites/pool-table/columns.js +344 -207
- package/dist/esm/components/composites/pool-table/pool-table.js +94 -102
- package/dist/esm/components/composites/strategies-table/columns.js +1 -1
- package/dist/esm/components/composites/strategies-table/components/cells/cells.js +31 -28
- package/dist/esm/components/composites/strategies-table/components/rewards-tooltip/tooltip-content.js +131 -122
- package/dist/esm/components/graph/graph.js +339 -293
- package/dist/esm/components/layout/main-aside-layout/main-aside-layout.js +70 -22
- package/dist/esm/locale/en.json.js +1 -0
- package/dist/globals.css +1 -1
- package/dist/types/components/composites/pool-table/columns.d.ts +0 -2
- package/dist/types/components/composites/strategies-table/components/cells/cells.d.ts +2 -1
- package/dist/types/components/graph/graph.d.ts +8 -1
- package/dist/types/components/layout/main-aside-layout/main-aside-layout.d.ts +46 -5
- package/dist/types/components/trading-view/trading-view.d.ts +7 -0
- package/dist/types/locale/en.json.d.ts +1 -0
- package/package.json +3 -3
- package/src/styles/base.css +4 -2
|
@@ -1,79 +1,78 @@
|
|
|
1
|
-
import { jsx as t, Fragment as
|
|
2
|
-
import * as
|
|
3
|
-
import { HeadCell as
|
|
4
|
-
import { HelpTip as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { TableLoaderGuard as U } from "../../table/table-loader-guard.js";
|
|
1
|
+
import { jsx as t, Fragment as I, jsxs as N } from "react/jsx-runtime";
|
|
2
|
+
import * as C from "react";
|
|
3
|
+
import { HeadCell as q } from "../../head-cell/head-cell.js";
|
|
4
|
+
import { HelpTip as R } from "../../help-tip/help-tip.js";
|
|
5
|
+
import { GridLoadingLine as J } from "../../table/grid-loading-line.js";
|
|
6
|
+
import { GridTable as K, GridTableHeader as Q, GridTableBody as U, GridTableRow as O, GridTableHead as V, GridTableCell as j } from "../../table/grid-table.js";
|
|
7
|
+
import { TableLoaderGuard as W } from "../../table/table-loader-guard.js";
|
|
9
8
|
import { TableLineSm as Y, TableCellSm as Z } from "../../table/table-sm.js";
|
|
10
9
|
import "@gearbox-protocol/sdk/common-utils";
|
|
11
10
|
import "@gearbox-protocol/sdk";
|
|
12
|
-
import { useIsMobile as
|
|
13
|
-
import { poolTableTestIds as
|
|
14
|
-
import { cn as
|
|
15
|
-
function
|
|
11
|
+
import { useIsMobile as _, useIsMedium as w } from "../../../hooks/use-media-query.js";
|
|
12
|
+
import { poolTableTestIds as k } from "../../../test-ids/pool-table.js";
|
|
13
|
+
import { cn as L } from "../../../utils/cn.js";
|
|
14
|
+
function H({
|
|
16
15
|
last: e,
|
|
17
16
|
className: l,
|
|
18
17
|
...d
|
|
19
18
|
}) {
|
|
20
19
|
return /* @__PURE__ */ t(
|
|
21
|
-
|
|
20
|
+
O,
|
|
22
21
|
{
|
|
23
|
-
className:
|
|
22
|
+
className: L(e && "*:after:hidden", l),
|
|
24
23
|
...d
|
|
25
24
|
}
|
|
26
25
|
);
|
|
27
26
|
}
|
|
28
|
-
function
|
|
27
|
+
function ee({
|
|
29
28
|
columns: e,
|
|
30
29
|
sort: l,
|
|
31
30
|
isMedium: d
|
|
32
31
|
}) {
|
|
33
|
-
return /* @__PURE__ */ t(
|
|
32
|
+
return /* @__PURE__ */ t(O, { noHover: !0, height: "35px", children: e.map((i) => {
|
|
34
33
|
if (i.hideOnMedium && d) return null;
|
|
35
34
|
const s = i.sort, a = s && l ? {
|
|
36
35
|
direction: l.state?.field === s.field ? l.state.sort : null,
|
|
37
36
|
onSort: () => l.set(s.field, s.defaultDirection ?? "desc")
|
|
38
|
-
} : void 0,
|
|
37
|
+
} : void 0, p = typeof i.header == "function" ? i.header(a) : i.header;
|
|
39
38
|
return /* @__PURE__ */ t(
|
|
40
|
-
|
|
39
|
+
V,
|
|
41
40
|
{
|
|
42
41
|
justify: i.align === "right" ? "end" : i.align === "center" ? "center" : "start",
|
|
43
42
|
size: "sm",
|
|
44
43
|
gapBefore: i.gapBefore,
|
|
45
|
-
className:
|
|
46
|
-
children: a ? /* @__PURE__ */ N(
|
|
44
|
+
className: L(i.className, i.headerClassName),
|
|
45
|
+
children: a ? /* @__PURE__ */ N(I, { children: [
|
|
47
46
|
/* @__PURE__ */ t(
|
|
48
|
-
|
|
47
|
+
q,
|
|
49
48
|
{
|
|
50
|
-
title:
|
|
49
|
+
title: p,
|
|
51
50
|
sortDirection: a.direction ?? void 0,
|
|
52
51
|
onSort: a.onSort
|
|
53
52
|
}
|
|
54
53
|
),
|
|
55
|
-
i.headerTip && /* @__PURE__ */ t(
|
|
56
|
-
] }) : /* @__PURE__ */ N(
|
|
57
|
-
|
|
58
|
-
i.headerTip && /* @__PURE__ */ t(
|
|
54
|
+
i.headerTip && /* @__PURE__ */ t(R, { className: "ml-1.5", children: i.headerTip })
|
|
55
|
+
] }) : /* @__PURE__ */ N(I, { children: [
|
|
56
|
+
p,
|
|
57
|
+
i.headerTip && /* @__PURE__ */ t(R, { className: "ml-1.5", children: i.headerTip })
|
|
59
58
|
] })
|
|
60
59
|
},
|
|
61
60
|
i.id
|
|
62
61
|
);
|
|
63
62
|
}) });
|
|
64
63
|
}
|
|
65
|
-
function
|
|
64
|
+
function ie({
|
|
66
65
|
row: e,
|
|
67
66
|
columns: l,
|
|
68
67
|
last: d,
|
|
69
68
|
rowHeight: i,
|
|
70
69
|
isSmall: s,
|
|
71
70
|
isMedium: a,
|
|
72
|
-
mobileColumnsXs:
|
|
73
|
-
mobileColumnsMd:
|
|
74
|
-
rowTestId:
|
|
71
|
+
mobileColumnsXs: p,
|
|
72
|
+
mobileColumnsMd: c,
|
|
73
|
+
rowTestId: u
|
|
75
74
|
}) {
|
|
76
|
-
const
|
|
75
|
+
const f = C.useMemo(
|
|
77
76
|
() => ({
|
|
78
77
|
pool: e.pool,
|
|
79
78
|
tokensList: e.tokensList,
|
|
@@ -85,120 +84,113 @@ function te({
|
|
|
85
84
|
isMobile: s
|
|
86
85
|
}),
|
|
87
86
|
[e, s]
|
|
88
|
-
), M = a ? l.filter((
|
|
87
|
+
), M = a ? l.filter((n) => !n.hideOnMedium) : l;
|
|
89
88
|
if (s) {
|
|
90
|
-
const
|
|
91
|
-
return /* @__PURE__ */ t(
|
|
89
|
+
const n = l.filter((r) => !r.hideOnMobile), [g, ...x] = n, T = (r) => r.mobileCell ? r.mobileCell(f) : r.cell(f);
|
|
90
|
+
return /* @__PURE__ */ t(H, { last: d, href: e.href, "data-testid": u, children: /* @__PURE__ */ t(j, { span: "full", size: "sm", className: "px-3 py-0!", children: /* @__PURE__ */ t(
|
|
92
91
|
Y,
|
|
93
92
|
{
|
|
94
|
-
title:
|
|
95
|
-
columnsXs:
|
|
96
|
-
columnsMd:
|
|
93
|
+
title: g ? T(g) : void 0,
|
|
94
|
+
columnsXs: p,
|
|
95
|
+
columnsMd: c,
|
|
97
96
|
className: "w-full",
|
|
98
|
-
children: x.map((
|
|
97
|
+
children: x.map((r) => /* @__PURE__ */ t(Z, { title: r.mobileTitle, children: T(r) }, r.id))
|
|
99
98
|
}
|
|
100
99
|
) }) });
|
|
101
100
|
}
|
|
102
101
|
return /* @__PURE__ */ t(
|
|
103
|
-
|
|
102
|
+
H,
|
|
104
103
|
{
|
|
105
|
-
className: u(
|
|
106
|
-
e.pool.poolType === "rwa" && "[&>*]:before:bg-[#7fc8ea]/40"
|
|
107
|
-
),
|
|
108
104
|
last: d,
|
|
109
105
|
href: e.href,
|
|
110
106
|
height: `${i}px`,
|
|
111
|
-
"data-testid":
|
|
112
|
-
children: M.map((
|
|
113
|
-
|
|
107
|
+
"data-testid": u,
|
|
108
|
+
children: M.map((n) => /* @__PURE__ */ t(
|
|
109
|
+
j,
|
|
114
110
|
{
|
|
115
|
-
textAlign:
|
|
111
|
+
textAlign: n.align ?? "left",
|
|
116
112
|
size: "sm",
|
|
117
|
-
gapBefore:
|
|
118
|
-
className:
|
|
119
|
-
children:
|
|
113
|
+
gapBefore: n.gapBefore,
|
|
114
|
+
className: n.className,
|
|
115
|
+
children: n.cell(f)
|
|
120
116
|
},
|
|
121
|
-
|
|
117
|
+
n.id
|
|
122
118
|
))
|
|
123
119
|
}
|
|
124
120
|
);
|
|
125
121
|
}
|
|
126
|
-
function
|
|
122
|
+
function fe({
|
|
127
123
|
columns: e,
|
|
128
124
|
rows: l,
|
|
129
125
|
loading: d = !1,
|
|
130
126
|
partialLoading: i = !1,
|
|
131
127
|
error: s,
|
|
132
128
|
emptyContent: a,
|
|
133
|
-
skeletonRows:
|
|
134
|
-
rowHeight:
|
|
135
|
-
size:
|
|
136
|
-
mobileColumnsXs:
|
|
129
|
+
skeletonRows: p = 5,
|
|
130
|
+
rowHeight: c = 75,
|
|
131
|
+
size: u = "lg",
|
|
132
|
+
mobileColumnsXs: f = 3,
|
|
137
133
|
mobileColumnsMd: M = 3,
|
|
138
|
-
className:
|
|
139
|
-
wrapperClassName:
|
|
134
|
+
className: n,
|
|
135
|
+
wrapperClassName: g,
|
|
140
136
|
sort: x,
|
|
141
137
|
rowTestId: T,
|
|
142
|
-
loaderTestId:
|
|
138
|
+
loaderTestId: r
|
|
143
139
|
}) {
|
|
144
|
-
const
|
|
145
|
-
() =>
|
|
146
|
-
[e,
|
|
147
|
-
),
|
|
148
|
-
const o =
|
|
149
|
-
const
|
|
150
|
-
if (!
|
|
151
|
-
const
|
|
152
|
-
return `[&:nth-child(${
|
|
153
|
-
}).filter(Boolean).join(" "),
|
|
154
|
-
return
|
|
155
|
-
}, [
|
|
156
|
-
return s ? null :
|
|
157
|
-
|
|
140
|
+
const z = T ?? k.poolLine, B = r ?? k.poolLineLoading, h = _(), b = w(), m = C.useMemo(
|
|
141
|
+
() => b ? e.filter((o) => !o.hideOnMedium) : e,
|
|
142
|
+
[e, b]
|
|
143
|
+
), D = C.useMemo(() => h ? "1fr" : m.map((o) => o.width ?? "1fr").join(" "), [h, m]), S = C.useMemo(() => {
|
|
144
|
+
const o = m.map((E, F) => {
|
|
145
|
+
const G = E.gapBefore;
|
|
146
|
+
if (!G || G === "none") return null;
|
|
147
|
+
const X = G === "md" ? "pl-10" : "pl-5";
|
|
148
|
+
return `[&:nth-child(${F + 1})]:${X}`;
|
|
149
|
+
}).filter(Boolean).join(" "), v = m[m.length - 1]?.className?.includes("pr-4") ? "last:pr-4" : "";
|
|
150
|
+
return L("px-1 py-2 first:pl-4", v, o);
|
|
151
|
+
}, [m]), y = d || !l, A = !y && l && l.length === 0, $ = i && !y;
|
|
152
|
+
return s ? null : A && a ? /* @__PURE__ */ t(I, { children: a }) : /* @__PURE__ */ N(
|
|
153
|
+
K,
|
|
158
154
|
{
|
|
159
|
-
cols:
|
|
155
|
+
cols: D,
|
|
160
156
|
gap: 0,
|
|
161
|
-
size:
|
|
162
|
-
wrapperClassName:
|
|
163
|
-
|
|
164
|
-
V,
|
|
165
|
-
b
|
|
166
|
-
),
|
|
167
|
-
className: r,
|
|
157
|
+
size: u,
|
|
158
|
+
wrapperClassName: L("overflow-visible", g),
|
|
159
|
+
className: n,
|
|
168
160
|
children: [
|
|
169
|
-
!
|
|
161
|
+
!h && /* @__PURE__ */ t(Q, { children: /* @__PURE__ */ t(ee, { columns: e, sort: x, isMedium: b }) }),
|
|
170
162
|
/* @__PURE__ */ t(
|
|
171
|
-
|
|
163
|
+
W,
|
|
172
164
|
{
|
|
173
165
|
showGuard: y,
|
|
174
|
-
rows:
|
|
175
|
-
columns:
|
|
176
|
-
height: `${
|
|
177
|
-
"data-testid":
|
|
178
|
-
cellClassName:
|
|
179
|
-
children: /* @__PURE__ */ N(
|
|
180
|
-
l?.map((o,
|
|
181
|
-
|
|
166
|
+
rows: p,
|
|
167
|
+
columns: h ? 1 : m.length,
|
|
168
|
+
height: `${c}px`,
|
|
169
|
+
"data-testid": B,
|
|
170
|
+
cellClassName: h ? "px-1 py-2 first:pl-4 last:pr-4" : S,
|
|
171
|
+
children: /* @__PURE__ */ N(U, { children: [
|
|
172
|
+
l?.map((o, P, v) => /* @__PURE__ */ t(
|
|
173
|
+
ie,
|
|
182
174
|
{
|
|
183
175
|
row: o,
|
|
184
176
|
columns: e,
|
|
185
|
-
last:
|
|
186
|
-
rowHeight:
|
|
187
|
-
isSmall:
|
|
188
|
-
isMedium:
|
|
189
|
-
mobileColumnsXs:
|
|
177
|
+
last: P === v.length - 1 && !$,
|
|
178
|
+
rowHeight: c,
|
|
179
|
+
isSmall: h,
|
|
180
|
+
isMedium: b,
|
|
181
|
+
mobileColumnsXs: f,
|
|
190
182
|
mobileColumnsMd: M,
|
|
191
|
-
rowTestId:
|
|
183
|
+
rowTestId: z
|
|
192
184
|
},
|
|
193
185
|
`${o.chainId}-${o.pool.address}`
|
|
194
186
|
)),
|
|
195
|
-
|
|
196
|
-
|
|
187
|
+
$ && /* @__PURE__ */ t(
|
|
188
|
+
J,
|
|
197
189
|
{
|
|
198
|
-
height: `${
|
|
199
|
-
columns:
|
|
190
|
+
height: `${c}px`,
|
|
191
|
+
columns: m.length,
|
|
200
192
|
cellClassName: S,
|
|
201
|
-
"data-testid":
|
|
193
|
+
"data-testid": B,
|
|
202
194
|
last: !0
|
|
203
195
|
}
|
|
204
196
|
)
|
|
@@ -210,5 +202,5 @@ function ge({
|
|
|
210
202
|
);
|
|
211
203
|
}
|
|
212
204
|
export {
|
|
213
|
-
|
|
205
|
+
fe as PoolTable
|
|
214
206
|
};
|
|
@@ -59,7 +59,7 @@ function S({ ctx: e }) {
|
|
|
59
59
|
) }),
|
|
60
60
|
/* @__PURE__ */ t(g, { disabled: d, children: /* @__PURE__ */ t(b, { token: r, size: 24 }) })
|
|
61
61
|
] }),
|
|
62
|
-
/* @__PURE__ */ o("div", { className: "flex items-center gap-x-
|
|
62
|
+
/* @__PURE__ */ o("div", { className: "flex items-center gap-x-2", children: [
|
|
63
63
|
/* @__PURE__ */ t(w, { maxLength: l, children: i.name }),
|
|
64
64
|
s && /* @__PURE__ */ t(T, { disabledStyle: d }),
|
|
65
65
|
a.isZeroSlippagePair && /* @__PURE__ */ t(
|
|
@@ -15,46 +15,49 @@ import { APYFeature as b } from "../apy-feature/apy-feature.js";
|
|
|
15
15
|
import { PointsFeature as T } from "../points-feature/points-feature.js";
|
|
16
16
|
import { Plus as v, DisabledWrap as L } from "./cells.styles.js";
|
|
17
17
|
function K({
|
|
18
|
-
token:
|
|
18
|
+
token: i,
|
|
19
19
|
disabledStyle: r
|
|
20
20
|
}) {
|
|
21
|
-
const
|
|
22
|
-
return /* @__PURE__ */ e(N, { children: r ?
|
|
21
|
+
const n = () => /* @__PURE__ */ e("span", { className: R(r && "opacity-60 pointer-events-none"), children: /* @__PURE__ */ e(b, { children: /* @__PURE__ */ e(m, { messageId: "components.strategiesTable.line.0slippage" }) }) });
|
|
22
|
+
return /* @__PURE__ */ e(N, { children: r ? n() : /* @__PURE__ */ e(
|
|
23
23
|
F,
|
|
24
24
|
{
|
|
25
25
|
placement: "top",
|
|
26
26
|
triangle: !1,
|
|
27
|
-
title:
|
|
27
|
+
title: n(),
|
|
28
28
|
children: /* @__PURE__ */ e(
|
|
29
29
|
m,
|
|
30
30
|
{
|
|
31
31
|
messageId: "components.strategiesTable.line.0slippage.tip",
|
|
32
32
|
values: {
|
|
33
|
-
symbol:
|
|
33
|
+
symbol: i?.title || ""
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
)
|
|
37
37
|
}
|
|
38
38
|
) });
|
|
39
39
|
}
|
|
40
|
-
function Q({
|
|
41
|
-
|
|
40
|
+
function Q({
|
|
41
|
+
disabledStyle: i,
|
|
42
|
+
tooltip: r = /* @__PURE__ */ e(m, { messageId: "components.strategiesTable.line.rwa.tip" })
|
|
43
|
+
}) {
|
|
44
|
+
const n = /* @__PURE__ */ e(
|
|
42
45
|
"span",
|
|
43
46
|
{
|
|
44
47
|
className: R(
|
|
45
|
-
"rounded-xl px-[
|
|
48
|
+
"rounded-xl px-[6px] py-1 text-xs leading-none",
|
|
46
49
|
S,
|
|
47
|
-
|
|
50
|
+
i && "opacity-60 pointer-events-none"
|
|
48
51
|
),
|
|
49
52
|
children: /* @__PURE__ */ e(m, { messageId: "components.strategiesTable.line.rwa" })
|
|
50
53
|
}
|
|
51
54
|
);
|
|
52
|
-
return /* @__PURE__ */ e(N, { children:
|
|
55
|
+
return /* @__PURE__ */ e(N, { children: i ? n : /* @__PURE__ */ e(F, { placement: "top", triangle: !1, title: n, children: r }) });
|
|
53
56
|
}
|
|
54
57
|
function U({
|
|
55
|
-
maxAPY:
|
|
58
|
+
maxAPY: i,
|
|
56
59
|
bonusAPY: r,
|
|
57
|
-
rewards:
|
|
60
|
+
rewards: n,
|
|
58
61
|
rewardRates: d,
|
|
59
62
|
debtRewards: u,
|
|
60
63
|
debtRewardRates: f,
|
|
@@ -65,31 +68,31 @@ function U({
|
|
|
65
68
|
apyLoading: h,
|
|
66
69
|
apyFormat: t = "feature"
|
|
67
70
|
}) {
|
|
68
|
-
const
|
|
69
|
-
c(
|
|
71
|
+
const o = (l) => t === "feature" ? /* @__PURE__ */ x(b, { children: [
|
|
72
|
+
c(l),
|
|
70
73
|
"% APR"
|
|
71
|
-
] }) : `${c(
|
|
74
|
+
] }) : `${c(l)}%`, I = (l) => t === "feature" ? /* @__PURE__ */ x(b, { children: [
|
|
72
75
|
"exp. ",
|
|
73
|
-
c(
|
|
76
|
+
c(l),
|
|
74
77
|
"% APR"
|
|
75
|
-
] }) : `exp. ${c(
|
|
78
|
+
] }) : `exp. ${c(l)}%`;
|
|
76
79
|
return /* @__PURE__ */ x("div", { className: "flex-row-row items-center gap-2", children: [
|
|
77
80
|
(() => {
|
|
78
|
-
const
|
|
81
|
+
const l = [
|
|
79
82
|
a ? /* @__PURE__ */ e(
|
|
80
83
|
P,
|
|
81
84
|
{
|
|
82
85
|
className: "inline-block align-text-bottom",
|
|
83
86
|
width: 50,
|
|
84
87
|
loading: h,
|
|
85
|
-
children: i
|
|
88
|
+
children: o(i)
|
|
86
89
|
},
|
|
87
90
|
"apy"
|
|
88
91
|
) : void 0,
|
|
89
92
|
s || g ? /* @__PURE__ */ e(
|
|
90
93
|
j,
|
|
91
94
|
{
|
|
92
|
-
rewards:
|
|
95
|
+
rewards: n,
|
|
93
96
|
rewardRates: d,
|
|
94
97
|
debtRewards: u,
|
|
95
98
|
debtRewardRates: f,
|
|
@@ -100,7 +103,7 @@ function U({
|
|
|
100
103
|
"points"
|
|
101
104
|
) : void 0
|
|
102
105
|
].filter(Boolean);
|
|
103
|
-
return
|
|
106
|
+
return l.flatMap((w, A) => A === l.length - 1 ? [w] : [w, /* @__PURE__ */ e(v, { children: "+" }, `plus-${A}`)]);
|
|
104
107
|
})(),
|
|
105
108
|
r && /* @__PURE__ */ e(v, { children: ":" }),
|
|
106
109
|
r && /* @__PURE__ */ e(
|
|
@@ -115,9 +118,9 @@ function U({
|
|
|
115
118
|
] });
|
|
116
119
|
}
|
|
117
120
|
function j({
|
|
118
|
-
rewards:
|
|
121
|
+
rewards: i,
|
|
119
122
|
rewardRates: r,
|
|
120
|
-
debtRewards:
|
|
123
|
+
debtRewards: n,
|
|
121
124
|
debtRewardRates: d,
|
|
122
125
|
hasRewards: u,
|
|
123
126
|
hasDebtRewards: f,
|
|
@@ -126,28 +129,28 @@ function j({
|
|
|
126
129
|
}) {
|
|
127
130
|
return (() => {
|
|
128
131
|
const p = [
|
|
129
|
-
u ?
|
|
132
|
+
u ? i.map((t, o) => /* @__PURE__ */ e(
|
|
130
133
|
"span",
|
|
131
134
|
{
|
|
132
135
|
children: /* @__PURE__ */ e(L, { disabled: a, children: /* @__PURE__ */ e(
|
|
133
136
|
T,
|
|
134
137
|
{
|
|
135
138
|
reward: t,
|
|
136
|
-
points: r?.[
|
|
139
|
+
points: r?.[o] || 0n,
|
|
137
140
|
theme: s
|
|
138
141
|
}
|
|
139
142
|
) })
|
|
140
143
|
},
|
|
141
144
|
["base", t.multiplier, t.name, t.type, t.units].join("-")
|
|
142
145
|
)) : void 0,
|
|
143
|
-
f ?
|
|
146
|
+
f ? n.map((t, o) => /* @__PURE__ */ e(
|
|
144
147
|
"span",
|
|
145
148
|
{
|
|
146
149
|
children: /* @__PURE__ */ e(L, { disabled: a, children: /* @__PURE__ */ e(
|
|
147
150
|
T,
|
|
148
151
|
{
|
|
149
152
|
reward: t,
|
|
150
|
-
points: d?.[
|
|
153
|
+
points: d?.[o] || 0n,
|
|
151
154
|
theme: s
|
|
152
155
|
}
|
|
153
156
|
) })
|
|
@@ -157,7 +160,7 @@ function j({
|
|
|
157
160
|
)
|
|
158
161
|
)) : void 0
|
|
159
162
|
].filter(Boolean);
|
|
160
|
-
return p.flatMap((t,
|
|
163
|
+
return p.flatMap((t, o) => o === p.length - 1 ? [t] : [t, /* @__PURE__ */ e(v, { children: "+" }, `plus-points-${o}`)]);
|
|
161
164
|
})();
|
|
162
165
|
}
|
|
163
166
|
export {
|