@gearbox-protocol/ui-kit 3.13.0-next.1 → 3.13.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.
Files changed (34) hide show
  1. package/dist/cjs/components/composites/pool-table/columns.cjs +1 -1
  2. package/dist/cjs/components/composites/pool-table/pool-table.cjs +1 -1
  3. package/dist/cjs/components/composites/strategies-table/columns.cjs +1 -1
  4. package/dist/cjs/components/composites/strategies-table/components/cells/cells.cjs +1 -1
  5. package/dist/cjs/components/compound-apy/compound-apy.cjs +1 -1
  6. package/dist/cjs/components/layout/main-aside-layout/main-aside-layout.cjs +1 -1
  7. package/dist/cjs/components/rounded-image/rounded-image.cjs +1 -1
  8. package/dist/cjs/components/token-icon/token-icon.cjs +1 -1
  9. package/dist/cjs/components/token-symbol/token-symbol.cjs +1 -1
  10. package/dist/cjs/locale/en.json.cjs +1 -1
  11. package/dist/cjs/types/common.cjs +1 -1
  12. package/dist/esm/components/composites/pool-table/columns.js +344 -207
  13. package/dist/esm/components/composites/pool-table/pool-table.js +94 -102
  14. package/dist/esm/components/composites/strategies-table/columns.js +1 -1
  15. package/dist/esm/components/composites/strategies-table/components/cells/cells.js +31 -28
  16. package/dist/esm/components/compound-apy/compound-apy.js +71 -68
  17. package/dist/esm/components/layout/main-aside-layout/main-aside-layout.js +22 -70
  18. package/dist/esm/components/rounded-image/rounded-image.js +16 -16
  19. package/dist/esm/components/token-icon/token-icon.js +134 -44
  20. package/dist/esm/components/token-symbol/token-symbol.js +55 -46
  21. package/dist/esm/locale/en.json.js +1 -0
  22. package/dist/esm/types/common.js +6 -1
  23. package/dist/globals.css +1 -1
  24. package/dist/types/components/composites/pool-table/columns.d.ts +0 -2
  25. package/dist/types/components/composites/strategies-table/components/cells/cells.d.ts +2 -1
  26. package/dist/types/components/compound-apy/compound-apy.d.ts +1 -3
  27. package/dist/types/components/help-tip/help-tip.d.ts +2 -2
  28. package/dist/types/components/layout/main-aside-layout/main-aside-layout.d.ts +5 -46
  29. package/dist/types/components/token-icon/index.d.ts +1 -1
  30. package/dist/types/components/token-icon/token-icon.d.ts +8 -3
  31. package/dist/types/locale/en.json.d.ts +1 -0
  32. package/dist/types/types/common.d.ts +11 -1
  33. package/package.json +4 -4
  34. package/src/styles/base.css +2 -4
@@ -1,79 +1,78 @@
1
- import { jsx as t, Fragment as G, jsxs as N } from "react/jsx-runtime";
2
- import * as L from "react";
3
- import { HeadCell as F } from "../../head-cell/head-cell.js";
4
- import { HelpTip as B } from "../../help-tip/help-tip.js";
5
- import { RWA_POOL_ROW_HOVER_WRAPPER_CLASS as V } from "../../rwa-styles/index.js";
6
- import { GridLoadingLine as X } from "../../table/grid-loading-line.js";
7
- import { GridTable as q, GridTableHeader as J, GridTableBody as K, GridTableRow as H, GridTableHead as Q, GridTableCell as $ } from "../../table/grid-table.js";
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 w, useIsMedium as ee } from "../../../hooks/use-media-query.js";
13
- import { poolTableTestIds as j } from "../../../test-ids/pool-table.js";
14
- import { cn as u } from "../../../utils/cn.js";
15
- function k({
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
- H,
20
+ O,
22
21
  {
23
- className: u(e && "*:after:hidden", l),
22
+ className: L(e && "*:after:hidden", l),
24
23
  ...d
25
24
  }
26
25
  );
27
26
  }
28
- function ie({
27
+ function ee({
29
28
  columns: e,
30
29
  sort: l,
31
30
  isMedium: d
32
31
  }) {
33
- return /* @__PURE__ */ t(H, { noHover: !0, height: "35px", children: e.map((i) => {
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, m = typeof i.header == "function" ? i.header(a) : i.header;
37
+ } : void 0, p = typeof i.header == "function" ? i.header(a) : i.header;
39
38
  return /* @__PURE__ */ t(
40
- Q,
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: u(i.className, i.headerClassName),
46
- children: a ? /* @__PURE__ */ N(G, { children: [
44
+ className: L(i.className, i.headerClassName),
45
+ children: a ? /* @__PURE__ */ N(I, { children: [
47
46
  /* @__PURE__ */ t(
48
- F,
47
+ q,
49
48
  {
50
- title: m,
49
+ title: p,
51
50
  sortDirection: a.direction ?? void 0,
52
51
  onSort: a.onSort
53
52
  }
54
53
  ),
55
- i.headerTip && /* @__PURE__ */ t(B, { className: "ml-1.5", children: i.headerTip })
56
- ] }) : /* @__PURE__ */ N(G, { children: [
57
- m,
58
- i.headerTip && /* @__PURE__ */ t(B, { className: "ml-1.5", children: i.headerTip })
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 te({
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: m,
73
- mobileColumnsMd: h,
74
- rowTestId: g
71
+ mobileColumnsXs: p,
72
+ mobileColumnsMd: c,
73
+ rowTestId: u
75
74
  }) {
76
- const c = L.useMemo(
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((r) => !r.hideOnMedium) : l;
87
+ ), M = a ? l.filter((n) => !n.hideOnMedium) : l;
89
88
  if (s) {
90
- const r = l.filter((n) => !n.hideOnMobile), [b, ...x] = r, T = (n) => n.mobileCell ? n.mobileCell(c) : n.cell(c);
91
- return /* @__PURE__ */ t(k, { last: d, href: e.href, "data-testid": g, children: /* @__PURE__ */ t($, { span: "full", size: "sm", className: "px-3 py-0!", children: /* @__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: b ? T(b) : void 0,
95
- columnsXs: m,
96
- columnsMd: h,
93
+ title: g ? T(g) : void 0,
94
+ columnsXs: p,
95
+ columnsMd: c,
97
96
  className: "w-full",
98
- children: x.map((n) => /* @__PURE__ */ t(Z, { title: n.mobileTitle, children: T(n) }, n.id))
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
- k,
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": g,
112
- children: M.map((r) => /* @__PURE__ */ t(
113
- $,
107
+ "data-testid": u,
108
+ children: M.map((n) => /* @__PURE__ */ t(
109
+ j,
114
110
  {
115
- textAlign: r.align ?? "left",
111
+ textAlign: n.align ?? "left",
116
112
  size: "sm",
117
- gapBefore: r.gapBefore,
118
- className: r.className,
119
- children: r.cell(c)
113
+ gapBefore: n.gapBefore,
114
+ className: n.className,
115
+ children: n.cell(f)
120
116
  },
121
- r.id
117
+ n.id
122
118
  ))
123
119
  }
124
120
  );
125
121
  }
126
- function ge({
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: m = 5,
134
- rowHeight: h = 75,
135
- size: g = "lg",
136
- mobileColumnsXs: c = 3,
129
+ skeletonRows: p = 5,
130
+ rowHeight: c = 75,
131
+ size: u = "lg",
132
+ mobileColumnsXs: f = 3,
137
133
  mobileColumnsMd: M = 3,
138
- className: r,
139
- wrapperClassName: b,
134
+ className: n,
135
+ wrapperClassName: g,
140
136
  sort: x,
141
137
  rowTestId: T,
142
- loaderTestId: n
138
+ loaderTestId: r
143
139
  }) {
144
- const _ = T ?? j.poolLine, P = n ?? j.poolLineLoading, f = w(), C = ee(), p = L.useMemo(
145
- () => C ? e.filter((o) => !o.hideOnMedium) : e,
146
- [e, C]
147
- ), A = L.useMemo(() => f ? "1fr" : p.map((o) => o.width ?? "1fr").join(" "), [f, p]), S = L.useMemo(() => {
148
- const o = p.map((E, W) => {
149
- const v = E.gapBefore;
150
- if (!v || v === "none") return null;
151
- const D = v === "md" ? "pl-10" : "pl-5";
152
- return `[&:nth-child(${W + 1})]:${D}`;
153
- }).filter(Boolean).join(" "), R = p[p.length - 1]?.className?.includes("pr-4") ? "last:pr-4" : "";
154
- return u("px-1 py-2 first:pl-4", R, o);
155
- }, [p]), y = d || !l, z = !y && l && l.length === 0, I = i && !y;
156
- return s ? null : z && a ? /* @__PURE__ */ t(G, { children: a }) : /* @__PURE__ */ N(
157
- q,
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: A,
155
+ cols: D,
160
156
  gap: 0,
161
- size: g,
162
- wrapperClassName: u(
163
- "overflow-visible",
164
- V,
165
- b
166
- ),
167
- className: r,
157
+ size: u,
158
+ wrapperClassName: L("overflow-visible", g),
159
+ className: n,
168
160
  children: [
169
- !f && /* @__PURE__ */ t(J, { children: /* @__PURE__ */ t(ie, { columns: e, sort: x, isMedium: C }) }),
161
+ !h && /* @__PURE__ */ t(Q, { children: /* @__PURE__ */ t(ee, { columns: e, sort: x, isMedium: b }) }),
170
162
  /* @__PURE__ */ t(
171
- U,
163
+ W,
172
164
  {
173
165
  showGuard: y,
174
- rows: m,
175
- columns: f ? 1 : p.length,
176
- height: `${h}px`,
177
- "data-testid": P,
178
- cellClassName: f ? "px-1 py-2 first:pl-4 last:pr-4" : S,
179
- children: /* @__PURE__ */ N(K, { children: [
180
- l?.map((o, O, R) => /* @__PURE__ */ t(
181
- te,
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: O === R.length - 1 && !I,
186
- rowHeight: h,
187
- isSmall: f,
188
- isMedium: C,
189
- mobileColumnsXs: c,
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
- I && /* @__PURE__ */ t(
196
- X,
187
+ $ && /* @__PURE__ */ t(
188
+ J,
197
189
  {
198
- height: `${h}px`,
199
- columns: p.length,
190
+ height: `${c}px`,
191
+ columns: m.length,
200
192
  cellClassName: S,
201
- "data-testid": P,
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
- ge as PoolTable
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-3", children: [
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: n,
18
+ token: i,
19
19
  disabledStyle: r
20
20
  }) {
21
- const l = () => /* @__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 ? l() : /* @__PURE__ */ e(
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: l(),
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: n?.title || ""
33
+ symbol: i?.title || ""
34
34
  }
35
35
  }
36
36
  )
37
37
  }
38
38
  ) });
39
39
  }
40
- function Q({ disabledStyle: n }) {
41
- const r = /* @__PURE__ */ e(
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-[10px] py-1 text-xs leading-none",
48
+ "rounded-xl px-[6px] py-1 text-xs leading-none",
46
49
  S,
47
- n && "opacity-60 pointer-events-none"
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: n ? r : /* @__PURE__ */ e(F, { placement: "top", triangle: !1, title: r, children: /* @__PURE__ */ e(m, { messageId: "components.strategiesTable.line.rwa.tip" }) }) });
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: n,
58
+ maxAPY: i,
56
59
  bonusAPY: r,
57
- rewards: l,
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 i = (o) => t === "feature" ? /* @__PURE__ */ x(b, { children: [
69
- c(o),
71
+ const o = (l) => t === "feature" ? /* @__PURE__ */ x(b, { children: [
72
+ c(l),
70
73
  "% APR"
71
- ] }) : `${c(o)}%`, I = (o) => t === "feature" ? /* @__PURE__ */ x(b, { children: [
74
+ ] }) : `${c(l)}%`, I = (l) => t === "feature" ? /* @__PURE__ */ x(b, { children: [
72
75
  "exp. ",
73
- c(o),
76
+ c(l),
74
77
  "% APR"
75
- ] }) : `exp. ${c(o)}%`;
78
+ ] }) : `exp. ${c(l)}%`;
76
79
  return /* @__PURE__ */ x("div", { className: "flex-row-row items-center gap-2", children: [
77
80
  (() => {
78
- const o = [
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(n)
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: l,
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 o.flatMap((w, A) => A === o.length - 1 ? [w] : [w, /* @__PURE__ */ e(v, { children: "+" }, `plus-${A}`)]);
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: n,
121
+ rewards: i,
119
122
  rewardRates: r,
120
- debtRewards: l,
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 ? n.map((t, i) => /* @__PURE__ */ e(
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?.[i] || 0n,
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 ? l.map((t, i) => /* @__PURE__ */ e(
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?.[i] || 0n,
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, i) => i === p.length - 1 ? [t] : [t, /* @__PURE__ */ e(v, { children: "+" }, `plus-points-${i}`)]);
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 {