@gearbox-protocol/permissionless-ui 1.24.2 → 1.26.0

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.
@@ -1,6 +1,6 @@
1
1
  import { jsx as f, jsxs as T, Fragment as S } from "react/jsx-runtime";
2
2
  import { useRef as b, useState as v, useCallback as p, useMemo as w, useEffect as N } from "react";
3
- import { useNavigationAdapter as y } from "../navigation-context/navigation-context.js";
3
+ import { useNavigationAdapter as C } from "../navigation-context/navigation-context.js";
4
4
  import "@gearbox-protocol/sdk";
5
5
  import { cn as m } from "../../utils/cn.js";
6
6
  import "sonner";
@@ -8,26 +8,26 @@ import "luxon";
8
8
  import "../../utils/z-index.js";
9
9
  function U(n) {
10
10
  if (!n) return null;
11
- const { width: r = 0, height: s = 0 } = n?.getBoundingClientRect() || {}, i = n?.offsetTop || 0, o = n?.offsetLeft || 0;
12
- return { width: r, height: s, left: o, top: i };
11
+ const { width: r = 0, height: s = 0 } = n?.getBoundingClientRect() || {}, a = n?.offsetTop || 0, o = n?.offsetLeft || 0;
12
+ return { width: r, height: s, left: o, top: a };
13
13
  }
14
14
  function $(n, r, s) {
15
- const i = b(null), [o, u] = v(null), l = b(null), c = p((e) => {
15
+ const a = b(null), [o, u] = v(null), l = b(null), c = p((e) => {
16
16
  u(e), l.current = e;
17
17
  }, []);
18
18
  return N(() => {
19
19
  const e = s.current[n], d = () => {
20
- const a = U(e), h = a?.height !== l.current?.height, x = a?.width !== l.current?.width, g = a?.left !== l.current?.left, C = a?.top !== l.current?.top;
21
- (h || x || g || C) && c(a);
20
+ const i = U(e), h = i?.height !== l.current?.height, x = i?.width !== l.current?.width, g = i?.left !== l.current?.left, y = i?.top !== l.current?.top;
21
+ (h || x || g || y) && c(i);
22
22
  };
23
- i.current = d, d();
23
+ a.current = d, d();
24
24
  const t = e ? new ResizeObserver(d) : null;
25
25
  return e && t?.observe(e), () => {
26
26
  e && t?.unobserve(e);
27
27
  };
28
28
  }, [n, s, c]), N(() => {
29
29
  const e = r ? new ResizeObserver(() => {
30
- i.current?.();
30
+ a.current?.();
31
31
  }) : null;
32
32
  return r && e?.observe(r), () => {
33
33
  r && e?.unobserve(r);
@@ -38,7 +38,7 @@ function A({
38
38
  className: n,
39
39
  tabs: r,
40
40
  state: s,
41
- showBorder: i = !0,
41
+ showBorder: a = !0,
42
42
  tabItemWrapPadding: o,
43
43
  variant: u = "auto"
44
44
  }) {
@@ -46,70 +46,61 @@ function A({
46
46
  s.id,
47
47
  l.current,
48
48
  c
49
- ), d = (t, a) => () => s.handleTabChange(t, a);
50
- return /* @__PURE__ */ f(
49
+ ), d = (t, i) => () => s.handleTabChange(t, i);
50
+ return /* @__PURE__ */ f("div", { className: m("relative w-full flex flex-col flex-wrap", n), children: /* @__PURE__ */ T(
51
51
  "div",
52
52
  {
53
+ ref: l,
53
54
  className: m(
54
- "relative w-full flex flex-col flex-wrap overflow-y-hidden",
55
- n
55
+ "relative w-full max-w-full grow-0 shrink-0 basis-full flex items-stretch overflow-x-auto overflow-y-hidden",
56
+ "scrollbar-hidden",
57
+ a && "after:content-[''] after:absolute after:bottom-0 after:left-0 after:right-0 after:h-px after:bg-border"
56
58
  ),
57
- children: /* @__PURE__ */ T(
58
- "div",
59
- {
60
- ref: l,
61
- className: m(
62
- "relative w-full max-w-full grow-0 shrink-0 basis-full flex items-stretch overflow-x-auto overflow-y-hidden",
63
- "scrollbar-hidden",
64
- i && "after:content-[''] after:absolute after:bottom-0 after:left-0 after:right-0 after:h-px after:bg-border"
65
- ),
66
- children: [
67
- e && /* @__PURE__ */ f(
68
- "div",
69
- {
70
- className: "absolute left-0 h-[3px] bg-accent transition-[transform] duration-200 ease-in-out pointer-events-none bottom-[-1px]",
71
- style: {
72
- width: `${e.width}px`,
73
- transform: `translate(${e.left}px)`
74
- }
75
- }
76
- ),
77
- r.map((t, a, h) => {
78
- const x = a === h.length - 1;
79
- return /* @__PURE__ */ f(
80
- "button",
81
- {
82
- ref: (g) => {
83
- c.current[t.id] = g;
84
- },
85
- type: "button",
86
- onClick: t.disabled ? void 0 : d(t.id, a),
87
- disabled: t.disabled,
88
- className: m(
89
- "flex items-center bg-transparent border-none shrink-0 text-foreground",
90
- o ? "" : "p-0 pb-3.5",
91
- u === "equal" ? "grow shrink-0 basis-[0%] justify-center min-w-0" : !x && "mr-10 max-[500px]:mr-8",
92
- t.disabled && "cursor-not-allowed",
93
- !t.disabled && "cursor-pointer",
94
- !t.disabled && "hover:text-foreground hover:[&>*]:text-foreground"
95
- ),
96
- style: o ? { padding: o } : void 0,
97
- children: t.item
98
- },
99
- `tab-item-${t.id}`
100
- );
101
- })
102
- ]
103
- }
104
- )
59
+ children: [
60
+ e && /* @__PURE__ */ f(
61
+ "div",
62
+ {
63
+ className: "absolute left-0 h-[3px] bg-accent transition-[transform] duration-200 ease-in-out pointer-events-none bottom-[-1px]",
64
+ style: {
65
+ width: `${e.width}px`,
66
+ transform: `translate(${e.left}px)`
67
+ }
68
+ }
69
+ ),
70
+ r.map((t, i, h) => {
71
+ const x = i === h.length - 1;
72
+ return /* @__PURE__ */ f(
73
+ "button",
74
+ {
75
+ ref: (g) => {
76
+ c.current[t.id] = g;
77
+ },
78
+ type: "button",
79
+ onClick: t.disabled ? void 0 : d(t.id, i),
80
+ disabled: t.disabled,
81
+ className: m(
82
+ "flex items-center bg-transparent border-none shrink-0 text-foreground",
83
+ o ? "" : "p-0 pb-3.5",
84
+ u === "equal" ? "grow shrink-0 basis-[0%] justify-center min-w-0" : !x && "mr-10 max-[500px]:mr-8",
85
+ t.disabled && "cursor-not-allowed",
86
+ !t.disabled && "cursor-pointer",
87
+ !t.disabled && "hover:text-foreground hover:[&>*]:text-foreground"
88
+ ),
89
+ style: o ? { padding: o } : void 0,
90
+ children: t.item
91
+ },
92
+ `tab-item-${t.id}`
93
+ );
94
+ })
95
+ ]
105
96
  }
106
- );
97
+ ) });
107
98
  }
108
99
  function B({
109
100
  icon: n,
110
101
  label: r,
111
102
  selected: s,
112
- textSize: i = "default",
103
+ textSize: a = "default",
113
104
  amount: o
114
105
  }) {
115
106
  return /* @__PURE__ */ T(S, { children: [
@@ -128,8 +119,8 @@ function B({
128
119
  {
129
120
  className: m(
130
121
  "m-0 p-0 whitespace-nowrap",
131
- i === "default" && "text-sm leading-[17px] font-normal",
132
- i === "unset" && "text-[unset] leading-[unset] font-[unset]",
122
+ a === "default" && "text-sm leading-[17px] font-normal",
123
+ a === "unset" && "text-[unset] leading-[unset] font-[unset]",
133
124
  s ? "text-foreground" : "text-secondary-foreground"
134
125
  ),
135
126
  children: r
@@ -139,19 +130,19 @@ function B({
139
130
  ] });
140
131
  }
141
132
  function F(n, r = 0) {
142
- const [s, i] = v(n), [o, u] = v(r), l = p((c, e) => {
143
- i(c), u(e);
133
+ const [s, a] = v(n), [o, u] = v(r), l = p((c, e) => {
134
+ a(c), u(e);
144
135
  }, []);
145
136
  return { id: s, index: o, handleTabChange: l };
146
137
  }
147
138
  function I(n) {
148
- const { useLocation: r, useNavigate: s } = y(), { hash: i } = r(), o = s(), u = w(
139
+ const { useLocation: r, useNavigate: s } = C(), { hash: a } = r(), o = s(), u = w(
149
140
  () => n.reduce(
150
- (t, a, h) => (t[a.id] = { id: a.id, index: h }, t),
141
+ (t, i, h) => (t[i.id] = { id: i.id, index: h }, t),
151
142
  {}
152
143
  ),
153
144
  [n]
154
- ), l = w(() => i.slice(1).toLowerCase(), [i]), { id: c, index: e } = u[l] || {}, d = p(
145
+ ), l = w(() => a.slice(1).toLowerCase(), [a]), { id: c, index: e } = u[l] || {}, d = p(
155
146
  (t) => {
156
147
  o(`#${t}`);
157
148
  },
@@ -168,9 +159,9 @@ function M({
168
159
  pathRoot: r,
169
160
  selectedSection: s
170
161
  }) {
171
- const { useNavigate: i } = y(), o = i(), u = w(
162
+ const { useNavigate: a } = C(), o = a(), u = w(
172
163
  () => n.reduce(
173
- (d, t, a) => (d[t.id] = { id: t.id, index: a }, d),
164
+ (d, t, i) => (d[t.id] = { id: t.id, index: i }, d),
174
165
  {}
175
166
  ),
176
167
  [n]
@@ -1,16 +1,16 @@
1
- import { jsxs as d, jsx as t } from "react/jsx-runtime";
2
- import { useMemo as u, useCallback as q, useRef as I } from "react";
3
- import { toast as J } from "sonner";
4
- import { useIsMobile as K } from "../../hooks/use-media-query.js";
1
+ import { jsxs as y, jsx as r } from "react/jsx-runtime";
2
+ import { useMemo as v, useCallback as ee, useRef as L } from "react";
3
+ import { toast as te } from "sonner";
4
+ import { useIsMobile as oe } from "../../hooks/use-media-query.js";
5
5
  import "@gearbox-protocol/sdk";
6
- import { cn as Q } from "../../utils/cn.js";
6
+ import { cn as re } from "../../utils/cn.js";
7
7
  import "luxon";
8
8
  import "../../utils/z-index.js";
9
- import { RangeButtons as X } from "../buttons/range-buttons/range-buttons.js";
10
- import { DEFAULT_SERIES_COLORS as N, getSeriesColorPalette as Y } from "../graph/graph.js";
11
- import { GraphViewWithData as Z } from "../graph/graph-view.js";
12
- import { GraphDropdown as G } from "./graph-dropdown.js";
13
- const U = ({ size: e = 16 }) => /* @__PURE__ */ d(
9
+ import { RangeButtons as ne } from "../buttons/range-buttons/range-buttons.js";
10
+ import { DEFAULT_SERIES_COLORS as A, getSeriesColorPalette as ie } from "../graph/graph.js";
11
+ import { GraphViewWithData as le } from "../graph/graph-view.js";
12
+ import { GraphDropdown as se } from "./graph-dropdown.js";
13
+ const ce = ({ size: e = 16 }) => /* @__PURE__ */ y(
14
14
  "svg",
15
15
  {
16
16
  width: e,
@@ -23,11 +23,11 @@ const U = ({ size: e = 16 }) => /* @__PURE__ */ d(
23
23
  strokeLinejoin: "round",
24
24
  "aria-label": "Expand fullscreen",
25
25
  children: [
26
- /* @__PURE__ */ t("title", { children: "Expand fullscreen" }),
27
- /* @__PURE__ */ t("path", { d: "M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3" })
26
+ /* @__PURE__ */ r("title", { children: "Expand fullscreen" }),
27
+ /* @__PURE__ */ r("path", { d: "M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3" })
28
28
  ]
29
29
  }
30
- ), ee = ({ size: e = 16 }) => /* @__PURE__ */ d(
30
+ ), ue = ({ size: e = 16 }) => /* @__PURE__ */ y(
31
31
  "svg",
32
32
  {
33
33
  width: e,
@@ -40,134 +40,202 @@ const U = ({ size: e = 16 }) => /* @__PURE__ */ d(
40
40
  strokeLinejoin: "round",
41
41
  "aria-label": "Exit fullscreen",
42
42
  children: [
43
- /* @__PURE__ */ t("title", { children: "Exit fullscreen" }),
44
- /* @__PURE__ */ t("path", { d: "M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3" })
43
+ /* @__PURE__ */ r("title", { children: "Exit fullscreen" }),
44
+ /* @__PURE__ */ r("path", { d: "M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3" })
45
45
  ]
46
46
  }
47
- );
48
- function xe({
47
+ ), R = "permissionless-ui:tradingview-series-colors:";
48
+ function O(e) {
49
+ if (typeof window > "u" || !window.localStorage)
50
+ return /* @__PURE__ */ new Map();
51
+ try {
52
+ const t = window.localStorage.getItem(R + e);
53
+ if (!t) return /* @__PURE__ */ new Map();
54
+ const i = JSON.parse(t);
55
+ return i == null || typeof i != "object" ? /* @__PURE__ */ new Map() : new Map(
56
+ Object.entries(i).filter(
57
+ ([, s]) => typeof s == "number" && s >= 0 && s < A.length
58
+ )
59
+ );
60
+ } catch {
61
+ return /* @__PURE__ */ new Map();
62
+ }
63
+ }
64
+ function ae(e, t) {
65
+ if (!(typeof window > "u" || !window.localStorage))
66
+ try {
67
+ window.localStorage.setItem(
68
+ R + e,
69
+ JSON.stringify(Object.fromEntries(t))
70
+ );
71
+ } catch {
72
+ }
73
+ }
74
+ function me(e, t) {
75
+ if (t.size === 0) return;
76
+ const i = O(e);
77
+ for (const [s, w] of t)
78
+ i.set(s, w);
79
+ ae(e, i);
80
+ }
81
+ function Me({
49
82
  data: e,
50
- yMeasureUnit: n,
51
- height: f = 306,
52
- defaultGraph: h,
53
- onGraphSelected: p,
54
- graphs: x,
55
- isMultipleSelect: L,
56
- range: S,
57
- rangeList: y,
58
- setRange: j,
59
- onGraphExpanded: v,
60
- isGraphExpanded: E,
61
- onUnselectSeries: R,
62
- graphsWithNoData: V,
63
- loadingGraphs: B,
64
- noDataMessage: A = "No data available for this graph",
65
- currentValueDecimals: M,
66
- containerClassName: _,
67
- useSharedPriceScale: F,
68
- ...T
83
+ yMeasureUnit: t,
84
+ height: i = 306,
85
+ defaultGraph: s,
86
+ onGraphSelected: w,
87
+ graphs: S,
88
+ isMultipleSelect: _,
89
+ range: V,
90
+ rangeList: I,
91
+ setRange: z,
92
+ onGraphExpanded: C,
93
+ isGraphExpanded: B,
94
+ onUnselectSeries: D,
95
+ graphsWithNoData: F,
96
+ loadingGraphs: T,
97
+ noDataMessage: E = "No data available for this graph",
98
+ currentValueDecimals: W,
99
+ containerClassName: H,
100
+ useSharedPriceScale: J,
101
+ showCurrentValue: $,
102
+ yScaleMin: X,
103
+ yScaleMinMultiple: q,
104
+ seriesColorPersistenceKey: h,
105
+ ...Q
69
106
  }) {
70
- const l = u(() => Array.isArray(e) ? e : e ? [e] : [], [e]), C = u(() => Array.isArray(e) && e.length > 1, [e]), k = K(), W = q(
71
- (a, g) => {
72
- J.error(A);
107
+ const f = v(() => Array.isArray(e) ? e : e ? [e] : [], [e]), M = v(() => Array.isArray(e) && e.length > 1, [e]), N = oe(), Y = ee(
108
+ (b, j) => {
109
+ te.error(E);
73
110
  },
74
- [A]
75
- ), z = u(() => {
76
- if (n)
77
- return Array.isArray(n) ? n[0] : n;
78
- }, [n]), H = (!k && v || y.length > 0 || p && x && h) && /* @__PURE__ */ d("div", { className: "z-10 w-full flex flex-row flex-wrap sm:flex-nowrap items-center gap-2", children: [
79
- /* @__PURE__ */ t("div", { children: p && x && h && /* @__PURE__ */ t(
80
- G,
111
+ [E]
112
+ ), Z = v(() => {
113
+ if (t)
114
+ return Array.isArray(t) ? t[0] : t;
115
+ }, [t]), P = (!N && C || I.length > 0 || w && S && s) && /* @__PURE__ */ y("div", { className: "z-10 w-full flex flex-row flex-wrap sm:flex-nowrap items-center gap-2", children: [
116
+ /* @__PURE__ */ r("div", { children: w && S && s && /* @__PURE__ */ r(
117
+ se,
81
118
  {
82
- onSelected: p,
83
- items: x,
84
- defaultItem: h,
85
- multiple: L,
86
- graphsWithNoData: V,
87
- loadingGraphs: B,
88
- onNoDataSelected: W
119
+ onSelected: w,
120
+ items: S,
121
+ defaultItem: s,
122
+ multiple: _,
123
+ graphsWithNoData: F,
124
+ loadingGraphs: T,
125
+ onNoDataSelected: Y
89
126
  }
90
127
  ) }),
91
- /* @__PURE__ */ d("div", { className: "flex flex-row flex-nowrap justify-start sm:justify-end items-center flex-1", children: [
92
- /* @__PURE__ */ t(X, { range: S, rangeList: y, setRange: j }),
93
- !k && v && /* @__PURE__ */ t(
128
+ /* @__PURE__ */ y("div", { className: "flex flex-row flex-nowrap justify-start sm:justify-end items-center flex-1", children: [
129
+ /* @__PURE__ */ r(ne, { range: V, rangeList: I, setRange: z }),
130
+ !N && C && /* @__PURE__ */ r(
94
131
  "button",
95
132
  {
96
133
  type: "button",
97
134
  className: "px-2.5 py-1.5 flex min-w-[44px] min-h-[26px] justify-center items-center text-xs leading-[14px] font-medium text-center rounded-md border cursor-pointer transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring bg-muted border-muted text-muted-foreground hover:border-secondary ml-1.5",
98
- onClick: v,
99
- children: E ? /* @__PURE__ */ t(ee, { size: 16 }) : /* @__PURE__ */ t(U, { size: 16 })
135
+ onClick: C,
136
+ children: B ? /* @__PURE__ */ r(ue, { size: 16 }) : /* @__PURE__ */ r(ce, { size: 16 })
100
137
  }
101
138
  )
102
139
  ] })
103
- ] }), s = I(/* @__PURE__ */ new Map()), b = I(0), O = u(() => {
104
- const a = Array.isArray(n) ? n : void 0;
105
- return l.map((g, D) => {
106
- const m = g?.title || `Series ${D + 1}`;
107
- if (!s.current.has(m)) {
108
- const r = new Set(
109
- Array.from(s.current.values())
140
+ ] }), u = L(/* @__PURE__ */ new Map()), x = L(0), G = v(() => {
141
+ const b = Array.isArray(t) ? t : void 0;
142
+ if (h && f.length > 0) {
143
+ const l = O(h);
144
+ let m = -1;
145
+ for (const d of f) {
146
+ const p = d?.title || "";
147
+ if (!p) continue;
148
+ const a = l.get(p);
149
+ !u.current.has(p) && a !== void 0 && (u.current.set(p, a), a > m && (m = a));
150
+ }
151
+ m >= 0 && (x.current = Math.max(
152
+ x.current,
153
+ m + 1
154
+ ));
155
+ }
156
+ const j = f.map((l, m) => {
157
+ const d = l?.title || `Series ${m + 1}`;
158
+ if (!u.current.has(d)) {
159
+ const o = new Set(
160
+ Array.from(u.current.values())
110
161
  );
111
- let o = b.current;
112
- for (let i = 0; i < N.length; i++) {
113
- const c = (b.current + i) % N.length;
114
- if (!r.has(c)) {
115
- o = c;
162
+ let n = x.current;
163
+ for (let c = 0; c < A.length; c++) {
164
+ const g = (x.current + c) % A.length;
165
+ if (!o.has(g)) {
166
+ n = g;
116
167
  break;
117
168
  }
118
169
  }
119
- s.current.set(m, o), b.current = o + 1;
170
+ u.current.set(d, n), x.current = n + 1;
120
171
  }
121
- const $ = s.current.get(m) ?? 0, w = Y($);
172
+ const p = u.current.get(d) ?? 0, a = ie(p), U = [...l?.data || []].sort((o, n) => {
173
+ const c = typeof o.time == "number" ? o.time : Number(o.time), g = typeof n.time == "number" ? n.time : Number(n.time);
174
+ return c - g;
175
+ }).reduce((o, n) => {
176
+ const c = n.time;
177
+ return o.length === 0 || o[o.length - 1].time !== c ? o.push({
178
+ time: c,
179
+ value: n.value
180
+ }) : o[o.length - 1] = {
181
+ time: c,
182
+ value: n.value
183
+ }, o;
184
+ }, []), k = l?.lineColor ?? l?.color ?? void 0;
122
185
  return {
123
- data: [...g?.data || []].sort((r, o) => {
124
- const i = typeof r.time == "number" ? r.time : Number(r.time), c = typeof o.time == "number" ? o.time : Number(o.time);
125
- return i - c;
126
- }).reduce((r, o) => {
127
- const i = o.time;
128
- return r.length === 0 || r[r.length - 1].time !== i ? r.push({
129
- time: i,
130
- value: o.value
131
- }) : r[r.length - 1] = {
132
- time: i,
133
- value: o.value
134
- }, r;
135
- }, []),
136
- label: m,
137
- yMeasureUnit: a?.[D] ?? (Array.isArray(n) ? void 0 : n),
138
- color: w.line,
139
- topColor: w.top,
140
- bottomColor: w.bottom
186
+ data: U,
187
+ label: d,
188
+ yMeasureUnit: b?.[m] ?? (Array.isArray(t) ? void 0 : t),
189
+ ...k != null ? {
190
+ lineColor: k,
191
+ ...l?.topColor != null && {
192
+ topColor: l.topColor
193
+ },
194
+ ...l?.bottomColor != null && {
195
+ bottomColor: l.bottomColor
196
+ }
197
+ } : {
198
+ color: a.line,
199
+ topColor: a.top,
200
+ bottomColor: a.bottom
201
+ }
141
202
  };
142
203
  });
143
- }, [l, n]), P = C && l.length > 0 ? l.some((a) => !a) : !e;
144
- return /* @__PURE__ */ t(
204
+ return h && u.current.size > 0 && me(
205
+ h,
206
+ u.current
207
+ ), j;
208
+ }, [f, t, h]), K = M && f.length > 0 ? f.some((b) => !b) : !e;
209
+ return /* @__PURE__ */ r(
145
210
  "div",
146
211
  {
147
212
  style: {
148
213
  width: "100%",
149
- height: f ? `${f}px` : void 0
214
+ height: i ? `${i}px` : void 0
150
215
  },
151
216
  className: "w-full",
152
- children: /* @__PURE__ */ t(
153
- Z,
217
+ children: /* @__PURE__ */ r(
218
+ le,
154
219
  {
155
- series: O,
156
- loading: P,
157
- toolbar: H,
158
- size: f ? "full" : "default",
159
- containerClassName: Q("h-full", _),
160
- showLegend: C,
161
- onUnselectSeries: R,
162
- yMeasureUnit: z,
163
- currentValueDecimals: M,
164
- useSharedPriceScale: F,
165
- ...T
220
+ series: G,
221
+ loading: K,
222
+ toolbar: P,
223
+ size: i ? "full" : "default",
224
+ containerClassName: re("h-full", H),
225
+ showLegend: M,
226
+ onUnselectSeries: D,
227
+ yMeasureUnit: Z,
228
+ currentValueDecimals: W,
229
+ useSharedPriceScale: J,
230
+ showCurrentValue: $,
231
+ yScaleMin: X,
232
+ yScaleMinMultiple: q,
233
+ ...Q
166
234
  }
167
235
  )
168
236
  }
169
237
  );
170
238
  }
171
239
  export {
172
- xe as TradingView
240
+ Me as TradingView
173
241
  };