highsoft-ui 1.0.102 → 1.0.103
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/components/Header/index.js +131 -131
- package/package.json +1 -1
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as t, jsxs as i, Fragment as nt } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as U, useState as P, useEffect as A } from "react";
|
|
3
|
-
import { a as T, b as W, J as
|
|
4
|
-
import { A as
|
|
3
|
+
import { a as T, b as W, J as ot, c as rt, z as st } from "../../utils-BKDJp1i0.js";
|
|
4
|
+
import { A as it } from "../../Announcement03-obPaH4LK.js";
|
|
5
5
|
import { _ as w } from "../../extends-hS2Bh-Yp.js";
|
|
6
6
|
import { S as j, a as $ } from "../../index-9MgBElwS.js";
|
|
7
|
-
import { X as
|
|
7
|
+
import { X as ct } from "../../XClose-CCu1vrNS.js";
|
|
8
8
|
import { c as b } from "../../clsx-OuTLNxxd.js";
|
|
9
9
|
import { Button as m } from "../Button/index.js";
|
|
10
10
|
import { Container as G } from "../Container/index.js";
|
|
11
11
|
import { Logo as R } from "../Logo/index.js";
|
|
12
|
-
import { NewTag as
|
|
13
|
-
import { Notification as
|
|
12
|
+
import { NewTag as at } from "../NewTag/index.js";
|
|
13
|
+
import { Notification as lt } from "../Notification/index.js";
|
|
14
14
|
import { PrefPanel as F } from "../PrefPanel/index.js";
|
|
15
|
-
var
|
|
16
|
-
return /* @__PURE__ */
|
|
15
|
+
var ht = function(n) {
|
|
16
|
+
return /* @__PURE__ */ t("svg", w({
|
|
17
17
|
xmlns: "http://www.w3.org/2000/svg",
|
|
18
18
|
width: 24,
|
|
19
19
|
height: 24,
|
|
20
20
|
fill: "none",
|
|
21
21
|
viewBox: "0 0 24 24"
|
|
22
22
|
}, n, {
|
|
23
|
-
children: /* @__PURE__ */
|
|
23
|
+
children: /* @__PURE__ */ t("path", {
|
|
24
24
|
stroke: "currentColor",
|
|
25
25
|
strokeLinecap: "round",
|
|
26
26
|
strokeLinejoin: "round",
|
|
@@ -28,15 +28,15 @@ var he = function(n) {
|
|
|
28
28
|
d: "M6 11v4m12-6v4m-1-9c2.4487 0 3.7731.3748 4.4321.6654.0878.0388.1317.0581.2583.179.0759.0724.2145.285.2501.3837.0595.1646.0595.2546.0595.4346v10.7484c0 .9088 0 1.3632-.1363 1.5968-.1386.2375-.2723.348-.5318.4393-.255.0897-.7699-.0092-1.7997-.2071A13.45 13.45 0 0 0 17 18c-3 0-6 2-10 2-2.4487 0-3.7731-.3748-4.4321-.6654-.0878-.0388-.1317-.0581-.2583-.179-.076-.0724-.2145-.285-.2501-.3837C2 18.6073 2 18.5173 2 18.3373V7.5889c0-.9088 0-1.3632.1363-1.5968.1386-.2375.2723-.348.5318-.4393.255-.0898.77.0092 1.7997.207A13.44 13.44 0 0 0 7 6c3 0 6-2 10-2m-2.5 8c0 1.3807-1.1193 2.5-2.5 2.5S9.5 13.3807 9.5 12s1.1193-2.5 2.5-2.5 2.5 1.1193 2.5 2.5"
|
|
29
29
|
})
|
|
30
30
|
}));
|
|
31
|
-
},
|
|
32
|
-
return /* @__PURE__ */
|
|
31
|
+
}, dt = function(n) {
|
|
32
|
+
return /* @__PURE__ */ t("svg", w({
|
|
33
33
|
xmlns: "http://www.w3.org/2000/svg",
|
|
34
34
|
width: 24,
|
|
35
35
|
height: 24,
|
|
36
36
|
fill: "none",
|
|
37
37
|
viewBox: "0 0 24 24"
|
|
38
38
|
}, n, {
|
|
39
|
-
children: /* @__PURE__ */
|
|
39
|
+
children: /* @__PURE__ */ t("path", {
|
|
40
40
|
stroke: "currentColor",
|
|
41
41
|
strokeLinecap: "round",
|
|
42
42
|
strokeLinejoin: "round",
|
|
@@ -44,15 +44,15 @@ var he = function(n) {
|
|
|
44
44
|
d: "M11 3H7.8c-1.6802 0-2.5202 0-3.162.327a3 3 0 0 0-1.311 1.311C3 5.2798 3 6.1198 3 7.8v8.4c0 1.6802 0 2.5202.327 3.162a3 3 0 0 0 1.311 1.311C5.2798 21 6.1198 21 7.8 21h8.4c1.6802 0 2.5202 0 3.162-.327a3 3 0 0 0 1.311-1.311C21 18.7202 21 17.8802 21 16.2V13m-9-5h4v4m-.5-8.5V2m3.9393 2.5607L20.5 3.5m.0103 5h1.5M3 13.3471c.652.1007 1.3199.1529 2 .1529 4.3864 0 8.2653-2.1724 10.6197-5.5"
|
|
45
45
|
})
|
|
46
46
|
}));
|
|
47
|
-
},
|
|
48
|
-
return /* @__PURE__ */
|
|
47
|
+
}, mt = function(n) {
|
|
48
|
+
return /* @__PURE__ */ t("svg", w({
|
|
49
49
|
xmlns: "http://www.w3.org/2000/svg",
|
|
50
50
|
width: 24,
|
|
51
51
|
height: 24,
|
|
52
52
|
fill: "none",
|
|
53
53
|
viewBox: "0 0 24 24"
|
|
54
54
|
}, n, {
|
|
55
|
-
children: /* @__PURE__ */
|
|
55
|
+
children: /* @__PURE__ */ t("path", {
|
|
56
56
|
stroke: "currentColor",
|
|
57
57
|
strokeLinecap: "round",
|
|
58
58
|
strokeLinejoin: "round",
|
|
@@ -60,15 +60,15 @@ var he = function(n) {
|
|
|
60
60
|
d: "M14 2.2695v4.1306c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C14.7599 8 15.0399 8 15.6 8h4.1305M16 13H8m8 4H8m2-8H8m6-7H8.8c-1.6802 0-2.5202 0-3.162.327a3 3 0 0 0-1.311 1.311C4 4.2798 4 5.1198 4 6.8v10.4c0 1.6802 0 2.5202.327 3.162a3 3 0 0 0 1.311 1.311C6.2798 22 7.1198 22 8.8 22h6.4c1.6802 0 2.5202 0 3.162-.327a3 3 0 0 0 1.311-1.311C20 19.7202 20 18.8802 20 17.2V8z"
|
|
61
61
|
})
|
|
62
62
|
}));
|
|
63
|
-
},
|
|
64
|
-
return /* @__PURE__ */
|
|
63
|
+
}, ut = function(n) {
|
|
64
|
+
return /* @__PURE__ */ t("svg", w({
|
|
65
65
|
xmlns: "http://www.w3.org/2000/svg",
|
|
66
66
|
width: 24,
|
|
67
67
|
height: 24,
|
|
68
68
|
fill: "none",
|
|
69
69
|
viewBox: "0 0 24 24"
|
|
70
70
|
}, n, {
|
|
71
|
-
children: /* @__PURE__ */
|
|
71
|
+
children: /* @__PURE__ */ t("path", {
|
|
72
72
|
stroke: "currentColor",
|
|
73
73
|
strokeLinecap: "round",
|
|
74
74
|
strokeLinejoin: "round",
|
|
@@ -76,15 +76,15 @@ var he = function(n) {
|
|
|
76
76
|
d: "M3 12h12M3 6h18M3 18h18"
|
|
77
77
|
})
|
|
78
78
|
}));
|
|
79
|
-
},
|
|
80
|
-
return /* @__PURE__ */
|
|
79
|
+
}, pt = function(n) {
|
|
80
|
+
return /* @__PURE__ */ t("svg", w({
|
|
81
81
|
xmlns: "http://www.w3.org/2000/svg",
|
|
82
82
|
width: 24,
|
|
83
83
|
height: 24,
|
|
84
84
|
fill: "none",
|
|
85
85
|
viewBox: "0 0 24 24"
|
|
86
86
|
}, n, {
|
|
87
|
-
children: /* @__PURE__ */
|
|
87
|
+
children: /* @__PURE__ */ t("path", {
|
|
88
88
|
stroke: "currentColor",
|
|
89
89
|
strokeLinecap: "round",
|
|
90
90
|
strokeLinejoin: "round",
|
|
@@ -92,15 +92,15 @@ var he = function(n) {
|
|
|
92
92
|
d: "M10 8.0022a2.2485 2.2485 0 0 1 2.501-1.4698 2.248 2.248 0 0 1 1.8682 2.2193c0 1.4989-2.2483 2.2483-2.2483 2.2483m.029 3h.01M7 18v2.3355c0 .5329 0 .7993.1092.9361a.5.5 0 0 0 .3913.1881c.1751-.0002.3832-.1666.7993-.4995l2.3854-1.9084c.4873-.3898.731-.5847 1.0023-.7233a3 3 0 0 1 .7617-.2672C12.7477 18 13.0597 18 13.6837 18H16.2c1.6802 0 2.5202 0 3.162-.327a3 3 0 0 0 1.311-1.311C21 15.7202 21 14.8802 21 13.2V7.8c0-1.6802 0-2.5202-.327-3.162a3 3 0 0 0-1.311-1.311C18.7202 3 17.8802 3 16.2 3H7.8c-1.6802 0-2.5202 0-3.162.327a3 3 0 0 0-1.311 1.311C3 5.2798 3 6.1198 3 7.8V14c0 .93 0 1.395.1022 1.7765a3 3 0 0 0 2.1213 2.1213C5.605 18 6.07 18 7 18"
|
|
93
93
|
})
|
|
94
94
|
}));
|
|
95
|
-
},
|
|
96
|
-
return /* @__PURE__ */
|
|
95
|
+
}, wt = function(n) {
|
|
96
|
+
return /* @__PURE__ */ t("svg", w({
|
|
97
97
|
xmlns: "http://www.w3.org/2000/svg",
|
|
98
98
|
width: 24,
|
|
99
99
|
height: 24,
|
|
100
100
|
fill: "none",
|
|
101
101
|
viewBox: "0 0 24 24"
|
|
102
102
|
}, n, {
|
|
103
|
-
children: /* @__PURE__ */
|
|
103
|
+
children: /* @__PURE__ */ t("path", {
|
|
104
104
|
stroke: "currentColor",
|
|
105
105
|
strokeLinecap: "round",
|
|
106
106
|
strokeLinejoin: "round",
|
|
@@ -109,14 +109,14 @@ var he = function(n) {
|
|
|
109
109
|
})
|
|
110
110
|
}));
|
|
111
111
|
}, D = function(n) {
|
|
112
|
-
return /* @__PURE__ */
|
|
112
|
+
return /* @__PURE__ */ t("svg", w({
|
|
113
113
|
xmlns: "http://www.w3.org/2000/svg",
|
|
114
114
|
width: 24,
|
|
115
115
|
height: 24,
|
|
116
116
|
fill: "none",
|
|
117
117
|
viewBox: "0 0 24 24"
|
|
118
118
|
}, n, {
|
|
119
|
-
children: /* @__PURE__ */
|
|
119
|
+
children: /* @__PURE__ */ t("path", {
|
|
120
120
|
stroke: "currentColor",
|
|
121
121
|
strokeLinecap: "round",
|
|
122
122
|
strokeLinejoin: "round",
|
|
@@ -125,14 +125,14 @@ var he = function(n) {
|
|
|
125
125
|
})
|
|
126
126
|
}));
|
|
127
127
|
}, V = function(n) {
|
|
128
|
-
return /* @__PURE__ */
|
|
128
|
+
return /* @__PURE__ */ t("svg", w({
|
|
129
129
|
xmlns: "http://www.w3.org/2000/svg",
|
|
130
130
|
width: 24,
|
|
131
131
|
height: 24,
|
|
132
132
|
fill: "none",
|
|
133
133
|
viewBox: "0 0 24 24"
|
|
134
134
|
}, n, {
|
|
135
|
-
children: /* @__PURE__ */
|
|
135
|
+
children: /* @__PURE__ */ t("path", {
|
|
136
136
|
stroke: "currentColor",
|
|
137
137
|
strokeLinecap: "round",
|
|
138
138
|
strokeLinejoin: "round",
|
|
@@ -141,61 +141,61 @@ var he = function(n) {
|
|
|
141
141
|
})
|
|
142
142
|
}));
|
|
143
143
|
};
|
|
144
|
-
const
|
|
145
|
-
buttons:
|
|
146
|
-
container:
|
|
147
|
-
content:
|
|
148
|
-
cta:
|
|
149
|
-
gpt:
|
|
150
|
-
header:
|
|
151
|
-
icon:
|
|
152
|
-
icons:
|
|
153
|
-
links:
|
|
154
|
-
logo:
|
|
155
|
-
main:
|
|
156
|
-
menu:
|
|
157
|
-
mobile:
|
|
158
|
-
mobileOverlay:
|
|
159
|
-
open:
|
|
160
|
-
outer:
|
|
161
|
-
selectableIcon:
|
|
162
|
-
selected:
|
|
163
|
-
selectedIcon:
|
|
164
|
-
skip:
|
|
165
|
-
sub:
|
|
166
|
-
subContainer:
|
|
167
|
-
subTitle:
|
|
168
|
-
}, Y = "notifications", J = "theme",
|
|
144
|
+
const ft = "m_QBtq_buttons", gt = "m_QBtq_container", vt = "m_QBtq_content", _t = "m_QBtq_cta", Ct = "m_QBtq_gpt", kt = "m_QBtq_header", bt = "m_QBtq_icon", xt = "m_QBtq_icons", Bt = "m_QBtq_links", Nt = "m_QBtq_logo", yt = "m_QBtq_main", qt = "m_QBtq_menu", St = "m_QBtq_mobile", Mt = "m_QBtq_mobileOverlay", Qt = "m_QBtq_open", Tt = "m_QBtq_outer", Et = "m_QBtq_selectableIcon", Ht = "m_QBtq_selected", Lt = "m_QBtq_selectedIcon", It = "m_QBtq_skip", Ot = "m_QBtq_sub", Pt = "m_QBtq_subContainer", At = "m_QBtq_subTitle", o = {
|
|
145
|
+
buttons: ft,
|
|
146
|
+
container: gt,
|
|
147
|
+
content: vt,
|
|
148
|
+
cta: _t,
|
|
149
|
+
gpt: Ct,
|
|
150
|
+
header: kt,
|
|
151
|
+
icon: bt,
|
|
152
|
+
icons: xt,
|
|
153
|
+
links: Bt,
|
|
154
|
+
logo: Nt,
|
|
155
|
+
main: yt,
|
|
156
|
+
menu: qt,
|
|
157
|
+
mobile: St,
|
|
158
|
+
mobileOverlay: Mt,
|
|
159
|
+
open: Qt,
|
|
160
|
+
outer: Tt,
|
|
161
|
+
selectableIcon: Et,
|
|
162
|
+
selected: Ht,
|
|
163
|
+
selectedIcon: Lt,
|
|
164
|
+
skip: It,
|
|
165
|
+
sub: Ot,
|
|
166
|
+
subContainer: Pt,
|
|
167
|
+
subTitle: At
|
|
168
|
+
}, Y = "notifications", J = "theme", Wt = 365 * 20, jt = (e) => /^\d{1,3}(?:\.\d{1,3}){3}$/.test(e), $t = () => {
|
|
169
169
|
if (typeof window > "u") return;
|
|
170
|
-
const
|
|
171
|
-
if (!
|
|
170
|
+
const e = window.location.hostname;
|
|
171
|
+
if (!e || e === "localhost" || jt(e))
|
|
172
172
|
return;
|
|
173
|
-
const n =
|
|
173
|
+
const n = e.replace(/^www\./, ""), l = n.split(".");
|
|
174
174
|
return l.length <= 2 ? `.${n}` : `.${l.slice(-2).join(".")}`;
|
|
175
175
|
}, z = () => {
|
|
176
176
|
if (typeof document > "u") return null;
|
|
177
|
-
const
|
|
178
|
-
if (!
|
|
177
|
+
const e = document.cookie.split("; ").find((n) => n.startsWith(`${Y}=`));
|
|
178
|
+
if (!e) return null;
|
|
179
179
|
try {
|
|
180
|
-
return JSON.parse(decodeURIComponent(
|
|
180
|
+
return JSON.parse(decodeURIComponent(e.split("=")[1]));
|
|
181
181
|
} catch {
|
|
182
182
|
return null;
|
|
183
183
|
}
|
|
184
|
-
},
|
|
184
|
+
}, Rt = () => {
|
|
185
185
|
if (typeof document > "u") return null;
|
|
186
|
-
const
|
|
187
|
-
if (!
|
|
186
|
+
const e = document.cookie.split("; ").find((n) => n.startsWith(`${J}=`));
|
|
187
|
+
if (!e) return null;
|
|
188
188
|
try {
|
|
189
|
-
return decodeURIComponent(
|
|
189
|
+
return decodeURIComponent(e.split("=")[1]);
|
|
190
190
|
} catch {
|
|
191
191
|
return null;
|
|
192
192
|
}
|
|
193
|
-
}, X = (
|
|
193
|
+
}, X = (e, n) => {
|
|
194
194
|
if (typeof document > "u") return;
|
|
195
195
|
const l = new Date(
|
|
196
|
-
Date.now() +
|
|
197
|
-
).toUTCString(), s = $
|
|
198
|
-
`${
|
|
196
|
+
Date.now() + Wt * 24 * 60 * 60 * 1e3
|
|
197
|
+
).toUTCString(), s = $t(), a = [
|
|
198
|
+
`${e}=${encodeURIComponent(n)}`,
|
|
199
199
|
"path=/",
|
|
200
200
|
"SameSite=Lax",
|
|
201
201
|
`expires=${l}`
|
|
@@ -205,45 +205,45 @@ const fe = "m_QBtq_buttons", ge = "m_QBtq_container", ve = "m_QBtq_content", _e
|
|
|
205
205
|
{
|
|
206
206
|
title: "Products",
|
|
207
207
|
url: "https://www.highcharts.com/products/",
|
|
208
|
-
icon: /* @__PURE__ */
|
|
208
|
+
icon: /* @__PURE__ */ t(dt, {})
|
|
209
209
|
},
|
|
210
210
|
{
|
|
211
211
|
title: "Demos",
|
|
212
212
|
url: "https://www.highcharts.com/demo",
|
|
213
|
-
icon: /* @__PURE__ */
|
|
213
|
+
icon: /* @__PURE__ */ t(wt, {})
|
|
214
214
|
},
|
|
215
215
|
{
|
|
216
216
|
title: "Support",
|
|
217
217
|
url: "https://www.highcharts.com/support/",
|
|
218
|
-
icon: /* @__PURE__ */
|
|
218
|
+
icon: /* @__PURE__ */ t(pt, {})
|
|
219
219
|
},
|
|
220
220
|
{
|
|
221
221
|
title: "Resources",
|
|
222
222
|
url: "https://www.highcharts.com/resources/",
|
|
223
|
-
icon: /* @__PURE__ */
|
|
223
|
+
icon: /* @__PURE__ */ t(mt, {})
|
|
224
224
|
},
|
|
225
225
|
{
|
|
226
226
|
title: "Pricing",
|
|
227
227
|
url: "https://shop.highcharts.com/",
|
|
228
|
-
icon: /* @__PURE__ */
|
|
228
|
+
icon: /* @__PURE__ */ t(ht, {})
|
|
229
229
|
},
|
|
230
230
|
{
|
|
231
231
|
title: "Blog",
|
|
232
232
|
url: "https://www.highcharts.com/blog/home/",
|
|
233
|
-
icon: /* @__PURE__ */
|
|
233
|
+
icon: /* @__PURE__ */ t(it, {})
|
|
234
234
|
}
|
|
235
235
|
];
|
|
236
|
-
function d(
|
|
237
|
-
return n ?
|
|
236
|
+
function d(e, n) {
|
|
237
|
+
return n ? e.replace(n, "") : e;
|
|
238
238
|
}
|
|
239
|
-
function
|
|
240
|
-
items:
|
|
239
|
+
function Ft({
|
|
240
|
+
items: e,
|
|
241
241
|
link: n = "a",
|
|
242
242
|
host: l = "https://www.highcharts.com",
|
|
243
243
|
pathname: s
|
|
244
244
|
}) {
|
|
245
|
-
const a =
|
|
246
|
-
return /* @__PURE__ */
|
|
245
|
+
const a = rt();
|
|
246
|
+
return /* @__PURE__ */ t("div", { className: b(o.sub, o.outer), children: /* @__PURE__ */ t(G, { className: o.subContainer, as: "ul", children: e.map(
|
|
247
247
|
({
|
|
248
248
|
title: S,
|
|
249
249
|
url: f,
|
|
@@ -254,7 +254,7 @@ function Fe({
|
|
|
254
254
|
tagVariant: p = "success"
|
|
255
255
|
}, M) => {
|
|
256
256
|
const u = s || typeof window < "u" && window.location.pathname, g = typeof window < "u" && window.location.origin || "http://example.com", v = new URL(f, g), q = u && (!!s || a) && v.origin === g && (x ? u.startsWith(v.pathname) : v.pathname === u);
|
|
257
|
-
return /* @__PURE__ */
|
|
257
|
+
return /* @__PURE__ */ t("li", { children: /* @__PURE__ */ i(
|
|
258
258
|
n,
|
|
259
259
|
{
|
|
260
260
|
href: d(f, l),
|
|
@@ -264,12 +264,12 @@ function Fe({
|
|
|
264
264
|
}),
|
|
265
265
|
children: [
|
|
266
266
|
/* @__PURE__ */ i("span", { className: o.icons, children: [
|
|
267
|
-
/* @__PURE__ */
|
|
268
|
-
/* @__PURE__ */
|
|
267
|
+
/* @__PURE__ */ t("span", { className: o.selectedIcon, children: N }),
|
|
268
|
+
/* @__PURE__ */ t("span", { className: o.icon, children: B })
|
|
269
269
|
] }),
|
|
270
270
|
/* @__PURE__ */ i("span", { className: o.subTitle, children: [
|
|
271
271
|
S,
|
|
272
|
-
y && /* @__PURE__ */
|
|
272
|
+
y && /* @__PURE__ */ t(at, { variant: p, icon: !1 })
|
|
273
273
|
] })
|
|
274
274
|
]
|
|
275
275
|
}
|
|
@@ -277,7 +277,7 @@ function Fe({
|
|
|
277
277
|
}
|
|
278
278
|
) }) });
|
|
279
279
|
}
|
|
280
|
-
const
|
|
280
|
+
const Dt = [
|
|
281
281
|
{
|
|
282
282
|
id: "whats-new",
|
|
283
283
|
content: [
|
|
@@ -290,7 +290,7 @@ const De = [
|
|
|
290
290
|
{
|
|
291
291
|
title: "React",
|
|
292
292
|
description: "Our improved React integration",
|
|
293
|
-
url: "https://www.highcharts.com/blog/
|
|
293
|
+
url: "https://www.highcharts.com/blog/integrations-posts/how-to-migrate-to-the-new-highcharts-for-react/",
|
|
294
294
|
tag: "new"
|
|
295
295
|
},
|
|
296
296
|
{
|
|
@@ -302,24 +302,24 @@ const De = [
|
|
|
302
302
|
]
|
|
303
303
|
}
|
|
304
304
|
];
|
|
305
|
-
function
|
|
306
|
-
const { theme:
|
|
305
|
+
function Vt() {
|
|
306
|
+
const { theme: e, setTheme: n } = st(), l = U(!1);
|
|
307
307
|
return A(() => {
|
|
308
308
|
if (l.current) return;
|
|
309
|
-
const s =
|
|
310
|
-
if (s && s !==
|
|
309
|
+
const s = Rt();
|
|
310
|
+
if (s && s !== e) {
|
|
311
311
|
n(s), l.current = !0;
|
|
312
312
|
return;
|
|
313
313
|
}
|
|
314
314
|
l.current = !0;
|
|
315
|
-
}, [n,
|
|
316
|
-
|
|
317
|
-
}, [
|
|
315
|
+
}, [n, e]), A(() => {
|
|
316
|
+
e && X(J, e);
|
|
317
|
+
}, [e]), null;
|
|
318
318
|
}
|
|
319
|
-
function
|
|
320
|
-
subItems:
|
|
319
|
+
function ie({
|
|
320
|
+
subItems: e,
|
|
321
321
|
children: n,
|
|
322
|
-
notifications: l =
|
|
322
|
+
notifications: l = Dt,
|
|
323
323
|
// TODO: Fetch these from the internets
|
|
324
324
|
link: s = "a",
|
|
325
325
|
host: a = "https://www.highcharts.com",
|
|
@@ -330,7 +330,7 @@ function it({
|
|
|
330
330
|
W(() => {
|
|
331
331
|
const r = y.current;
|
|
332
332
|
if (!r) return;
|
|
333
|
-
const c = 48, h = 82, C =
|
|
333
|
+
const c = 48, h = 82, C = e?.length ? 72 : 0, Q = h + u.length * c + C, tt = -(h + u.length * c);
|
|
334
334
|
let E = window.scrollY, _ = 0, H = null, k = null;
|
|
335
335
|
const L = () => {
|
|
336
336
|
k = null, !(!r || H === _) && (r.style.transform = `translate3d(0, ${_}px, 0)`, f && document.documentElement.style.setProperty(
|
|
@@ -340,13 +340,13 @@ function it({
|
|
|
340
340
|
};
|
|
341
341
|
L();
|
|
342
342
|
const I = () => {
|
|
343
|
-
const O = window.scrollY,
|
|
344
|
-
E = O, _ = Math.min(0, Math.max(
|
|
343
|
+
const O = window.scrollY, et = O - E;
|
|
344
|
+
E = O, _ = Math.min(0, Math.max(tt, _ - et)), k === null && (k = window.requestAnimationFrame(L));
|
|
345
345
|
};
|
|
346
346
|
return window.addEventListener("scroll", I, { passive: !0 }), () => {
|
|
347
347
|
window.removeEventListener("scroll", I), k !== null && cancelAnimationFrame(k), r.style.transform = "", f && document.documentElement.style.removeProperty("--header-bottom");
|
|
348
348
|
};
|
|
349
|
-
}, [f, u.length,
|
|
349
|
+
}, [f, u.length, e?.length]), W(() => {
|
|
350
350
|
if (!l.length) return;
|
|
351
351
|
const r = z();
|
|
352
352
|
g(
|
|
@@ -374,12 +374,12 @@ function it({
|
|
|
374
374
|
})
|
|
375
375
|
);
|
|
376
376
|
};
|
|
377
|
-
return /* @__PURE__ */ i(
|
|
378
|
-
/* @__PURE__ */
|
|
377
|
+
return /* @__PURE__ */ i(ot, { children: [
|
|
378
|
+
/* @__PURE__ */ t(Vt, {}),
|
|
379
379
|
/* @__PURE__ */ i("header", { className: o.header, children: [
|
|
380
380
|
/* @__PURE__ */ i("div", { className: o.content, ref: y, children: [
|
|
381
|
-
u?.map(({ id: r, content: c, variant: h, closable: C }, Q) => /* @__PURE__ */
|
|
382
|
-
|
|
381
|
+
u?.map(({ id: r, content: c, variant: h, closable: C }, Q) => /* @__PURE__ */ t(
|
|
382
|
+
lt,
|
|
383
383
|
{
|
|
384
384
|
id: r,
|
|
385
385
|
content: c,
|
|
@@ -389,8 +389,8 @@ function it({
|
|
|
389
389
|
},
|
|
390
390
|
Q
|
|
391
391
|
)),
|
|
392
|
-
/* @__PURE__ */
|
|
393
|
-
/* @__PURE__ */
|
|
392
|
+
/* @__PURE__ */ t("div", { className: b(o.main, o.outer), children: /* @__PURE__ */ i(G, { as: "nav", className: o.container, children: [
|
|
393
|
+
/* @__PURE__ */ t(
|
|
394
394
|
m,
|
|
395
395
|
{
|
|
396
396
|
as: "a",
|
|
@@ -402,15 +402,15 @@ function it({
|
|
|
402
402
|
children: "Skip to content"
|
|
403
403
|
}
|
|
404
404
|
),
|
|
405
|
-
/* @__PURE__ */
|
|
405
|
+
/* @__PURE__ */ t(
|
|
406
406
|
s,
|
|
407
407
|
{
|
|
408
408
|
className: o.logo,
|
|
409
409
|
href: d("https://www.highcharts.com/", a),
|
|
410
|
-
children: /* @__PURE__ */
|
|
410
|
+
children: /* @__PURE__ */ t(R, { showText: !N || B && !x })
|
|
411
411
|
}
|
|
412
412
|
),
|
|
413
|
-
/* @__PURE__ */
|
|
413
|
+
/* @__PURE__ */ t("ul", { className: o.links, children: K.map(({ title: r, url: c }, h) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(
|
|
414
414
|
m,
|
|
415
415
|
{
|
|
416
416
|
variant: "plain",
|
|
@@ -431,13 +431,13 @@ function it({
|
|
|
431
431
|
a
|
|
432
432
|
),
|
|
433
433
|
children: [
|
|
434
|
-
/* @__PURE__ */
|
|
435
|
-
/* @__PURE__ */
|
|
434
|
+
/* @__PURE__ */ t("span", { className: o.gpt, children: "Highcharts GPT" }),
|
|
435
|
+
/* @__PURE__ */ t(D, {})
|
|
436
436
|
]
|
|
437
437
|
}
|
|
438
438
|
),
|
|
439
|
-
/* @__PURE__ */
|
|
440
|
-
/* @__PURE__ */
|
|
439
|
+
/* @__PURE__ */ t(j, {}),
|
|
440
|
+
/* @__PURE__ */ t(F, {}),
|
|
441
441
|
/* @__PURE__ */ i(
|
|
442
442
|
m,
|
|
443
443
|
{
|
|
@@ -447,7 +447,7 @@ function it({
|
|
|
447
447
|
href: d("https://shop.highcharts.com/", a),
|
|
448
448
|
"aria-label": "Buy Now",
|
|
449
449
|
children: [
|
|
450
|
-
/* @__PURE__ */
|
|
450
|
+
/* @__PURE__ */ t($, {}),
|
|
451
451
|
"Buy Now"
|
|
452
452
|
]
|
|
453
453
|
}
|
|
@@ -463,7 +463,7 @@ function it({
|
|
|
463
463
|
a
|
|
464
464
|
),
|
|
465
465
|
children: [
|
|
466
|
-
/* @__PURE__ */
|
|
466
|
+
/* @__PURE__ */ t(V, {}),
|
|
467
467
|
"Try for Free"
|
|
468
468
|
]
|
|
469
469
|
}
|
|
@@ -476,16 +476,16 @@ function it({
|
|
|
476
476
|
onClick: q,
|
|
477
477
|
children: [
|
|
478
478
|
p ? "Close" : "Menu",
|
|
479
|
-
p ? /* @__PURE__ */
|
|
479
|
+
p ? /* @__PURE__ */ t(ct, {}) : /* @__PURE__ */ t(ut, {})
|
|
480
480
|
]
|
|
481
481
|
}
|
|
482
482
|
)
|
|
483
483
|
] })
|
|
484
484
|
] }) }),
|
|
485
|
-
!!
|
|
486
|
-
|
|
485
|
+
!!e?.length && /* @__PURE__ */ t(
|
|
486
|
+
Ft,
|
|
487
487
|
{
|
|
488
|
-
items:
|
|
488
|
+
items: e,
|
|
489
489
|
link: s,
|
|
490
490
|
host: a,
|
|
491
491
|
pathname: S
|
|
@@ -493,8 +493,8 @@ function it({
|
|
|
493
493
|
),
|
|
494
494
|
n
|
|
495
495
|
] }),
|
|
496
|
-
B && /* @__PURE__ */ i(
|
|
497
|
-
/* @__PURE__ */
|
|
496
|
+
B && /* @__PURE__ */ i(nt, { children: [
|
|
497
|
+
/* @__PURE__ */ t(
|
|
498
498
|
"div",
|
|
499
499
|
{
|
|
500
500
|
className: b(o.mobileOverlay, { [o.open]: p }),
|
|
@@ -509,12 +509,12 @@ function it({
|
|
|
509
509
|
}),
|
|
510
510
|
children: [
|
|
511
511
|
/* @__PURE__ */ i("div", { className: o.container, children: [
|
|
512
|
-
/* @__PURE__ */
|
|
512
|
+
/* @__PURE__ */ t(
|
|
513
513
|
s,
|
|
514
514
|
{
|
|
515
515
|
className: o.logo,
|
|
516
516
|
href: d("https://www.highcharts.com/", a),
|
|
517
|
-
children: /* @__PURE__ */
|
|
517
|
+
children: /* @__PURE__ */ t(R, { showText: !x })
|
|
518
518
|
}
|
|
519
519
|
),
|
|
520
520
|
/* @__PURE__ */ i("div", { className: o.buttons, children: [
|
|
@@ -528,13 +528,13 @@ function it({
|
|
|
528
528
|
a
|
|
529
529
|
),
|
|
530
530
|
children: [
|
|
531
|
-
/* @__PURE__ */
|
|
532
|
-
/* @__PURE__ */
|
|
531
|
+
/* @__PURE__ */ t("span", { className: o.gpt, children: "Highcharts GPT" }),
|
|
532
|
+
/* @__PURE__ */ t(D, {})
|
|
533
533
|
]
|
|
534
534
|
}
|
|
535
535
|
),
|
|
536
|
-
/* @__PURE__ */
|
|
537
|
-
/* @__PURE__ */
|
|
536
|
+
/* @__PURE__ */ t(j, {}),
|
|
537
|
+
/* @__PURE__ */ t(F, {})
|
|
538
538
|
] })
|
|
539
539
|
] }),
|
|
540
540
|
/* @__PURE__ */ i("div", { className: o.buttons, children: [
|
|
@@ -546,7 +546,7 @@ function it({
|
|
|
546
546
|
as: s,
|
|
547
547
|
href: d("https://shop.highcharts.com/", a),
|
|
548
548
|
children: [
|
|
549
|
-
/* @__PURE__ */
|
|
549
|
+
/* @__PURE__ */ t($, {}),
|
|
550
550
|
"Buy Now"
|
|
551
551
|
]
|
|
552
552
|
}
|
|
@@ -562,13 +562,13 @@ function it({
|
|
|
562
562
|
a
|
|
563
563
|
),
|
|
564
564
|
children: [
|
|
565
|
-
/* @__PURE__ */
|
|
565
|
+
/* @__PURE__ */ t(V, {}),
|
|
566
566
|
"Try for Free"
|
|
567
567
|
]
|
|
568
568
|
}
|
|
569
569
|
)
|
|
570
570
|
] }),
|
|
571
|
-
/* @__PURE__ */
|
|
571
|
+
/* @__PURE__ */ t("ul", { className: o.links, children: K.map(({ title: r, url: c, icon: h }, C) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ i(
|
|
572
572
|
m,
|
|
573
573
|
{
|
|
574
574
|
variant: "plain",
|
|
@@ -590,6 +590,6 @@ function it({
|
|
|
590
590
|
] });
|
|
591
591
|
}
|
|
592
592
|
export {
|
|
593
|
-
|
|
594
|
-
|
|
593
|
+
ie as Header,
|
|
594
|
+
Ft as SubHeader
|
|
595
595
|
};
|