highsoft-ui 1.0.95 → 1.0.97
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/Button/index.js +10 -9
- package/dist/components/Header/index.js +255 -230
- package/dist/components/Search/index.js +5546 -7
- package/dist/highsoft-ui.css +1 -1
- package/package.json +1 -1
- package/dist/index-ClA5awl_.js +0 -5549
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { a as
|
|
4
|
-
import { A as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { S as j, a as $ } from "../../index-ClA5awl_.js";
|
|
1
|
+
import { jsx as e, jsxs as i, Fragment as ne } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as U, useState as P, useEffect as W } from "react";
|
|
3
|
+
import { a as T, b as A, J as oe, c as re, z as se } from "../../utils-BKDJp1i0.js";
|
|
4
|
+
import { A as ie } from "../../Announcement03-obPaH4LK.js";
|
|
5
|
+
import { _ as p } from "../../extends-hS2Bh-Yp.js";
|
|
7
6
|
import { X as ce } from "../../XClose-CCu1vrNS.js";
|
|
8
|
-
import { c as
|
|
7
|
+
import { c as x } from "../../clsx-OuTLNxxd.js";
|
|
9
8
|
import { Button as m } from "../Button/index.js";
|
|
10
|
-
import { Container as
|
|
11
|
-
import { Logo as
|
|
9
|
+
import { Container as G } from "../Container/index.js";
|
|
10
|
+
import { Logo as j } from "../Logo/index.js";
|
|
12
11
|
import { NewTag as ae } from "../NewTag/index.js";
|
|
13
12
|
import { Notification as le } from "../Notification/index.js";
|
|
14
|
-
import {
|
|
13
|
+
import { Search as $ } from "../Search/index.js";
|
|
14
|
+
import { PrefPanel as R } from "../PrefPanel/index.js";
|
|
15
15
|
var he = function(n) {
|
|
16
|
-
return /* @__PURE__ */ e("svg",
|
|
16
|
+
return /* @__PURE__ */ e("svg", p({
|
|
17
17
|
xmlns: "http://www.w3.org/2000/svg",
|
|
18
18
|
width: 24,
|
|
19
19
|
height: 24,
|
|
@@ -29,7 +29,7 @@ var he = function(n) {
|
|
|
29
29
|
})
|
|
30
30
|
}));
|
|
31
31
|
}, de = function(n) {
|
|
32
|
-
return /* @__PURE__ */ e("svg",
|
|
32
|
+
return /* @__PURE__ */ e("svg", p({
|
|
33
33
|
xmlns: "http://www.w3.org/2000/svg",
|
|
34
34
|
width: 24,
|
|
35
35
|
height: 24,
|
|
@@ -44,8 +44,24 @@ 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
|
+
}, F = function(n) {
|
|
48
|
+
return /* @__PURE__ */ e("svg", p({
|
|
49
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
50
|
+
width: 24,
|
|
51
|
+
height: 24,
|
|
52
|
+
fill: "none",
|
|
53
|
+
viewBox: "0 0 24 24"
|
|
54
|
+
}, n, {
|
|
55
|
+
children: /* @__PURE__ */ e("path", {
|
|
56
|
+
stroke: "currentColor",
|
|
57
|
+
strokeLinecap: "round",
|
|
58
|
+
strokeLinejoin: "round",
|
|
59
|
+
strokeWidth: 2,
|
|
60
|
+
d: "M13 5c0 1.1046-2.4624 2-5.5 2S2 6.1046 2 5m11 0c0-1.1046-2.4624-2-5.5-2S2 3.8954 2 5m11 0v1.5M2 5v12c0 1.1046 2.4624 2 5.5 2m0-8q-.2528 0-.5-.0082C4.1967 10.9 2 10.0433 2 9m5.5 6C4.4624 15 2 14.1046 2 13m20-1.5c0 1.1046-2.4624 2-5.5 2s-5.5-.8954-5.5-2m11 0c0-1.1046-2.4624-2-5.5-2s-5.5.8954-5.5 2m11 0V19c0 1.1046-2.4624 2-5.5 2s-5.5-.8954-5.5-2v-7.5m11 3.75c0 1.1046-2.4624 2-5.5 2s-5.5-.8954-5.5-2"
|
|
61
|
+
})
|
|
62
|
+
}));
|
|
47
63
|
}, me = function(n) {
|
|
48
|
-
return /* @__PURE__ */ e("svg",
|
|
64
|
+
return /* @__PURE__ */ e("svg", p({
|
|
49
65
|
xmlns: "http://www.w3.org/2000/svg",
|
|
50
66
|
width: 24,
|
|
51
67
|
height: 24,
|
|
@@ -61,7 +77,7 @@ var he = function(n) {
|
|
|
61
77
|
})
|
|
62
78
|
}));
|
|
63
79
|
}, ue = function(n) {
|
|
64
|
-
return /* @__PURE__ */ e("svg",
|
|
80
|
+
return /* @__PURE__ */ e("svg", p({
|
|
65
81
|
xmlns: "http://www.w3.org/2000/svg",
|
|
66
82
|
width: 24,
|
|
67
83
|
height: 24,
|
|
@@ -77,7 +93,7 @@ var he = function(n) {
|
|
|
77
93
|
})
|
|
78
94
|
}));
|
|
79
95
|
}, pe = function(n) {
|
|
80
|
-
return /* @__PURE__ */ e("svg",
|
|
96
|
+
return /* @__PURE__ */ e("svg", p({
|
|
81
97
|
xmlns: "http://www.w3.org/2000/svg",
|
|
82
98
|
width: 24,
|
|
83
99
|
height: 24,
|
|
@@ -93,7 +109,7 @@ var he = function(n) {
|
|
|
93
109
|
})
|
|
94
110
|
}));
|
|
95
111
|
}, we = function(n) {
|
|
96
|
-
return /* @__PURE__ */ e("svg",
|
|
112
|
+
return /* @__PURE__ */ e("svg", p({
|
|
97
113
|
xmlns: "http://www.w3.org/2000/svg",
|
|
98
114
|
width: 24,
|
|
99
115
|
height: 24,
|
|
@@ -108,8 +124,8 @@ var he = function(n) {
|
|
|
108
124
|
d: "M12 16v5m6 0-3.9514-3.2928c-.7288-.6074-1.0932-.911-1.4999-1.0271a2 2 0 0 0-1.0974 0c-.4067.1161-.7711.4197-1.4999 1.0271L6 21m2-10v1m4-3v3m4-5v5m6-9H2m1 0h18v8.2c0 1.6802 0 2.5202-.327 3.162a3 3 0 0 1-1.311 1.311C18.7202 16 17.8802 16 16.2 16H7.8c-1.6802 0-2.5202 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 13.7202 3 12.8802 3 11.2z"
|
|
109
125
|
})
|
|
110
126
|
}));
|
|
111
|
-
},
|
|
112
|
-
return /* @__PURE__ */ e("svg",
|
|
127
|
+
}, D = function(n) {
|
|
128
|
+
return /* @__PURE__ */ e("svg", p({
|
|
113
129
|
xmlns: "http://www.w3.org/2000/svg",
|
|
114
130
|
width: 24,
|
|
115
131
|
height: 24,
|
|
@@ -124,8 +140,8 @@ var he = function(n) {
|
|
|
124
140
|
d: "M4.5 22v-5m0-10V2M2 4.5h5m-5 15h5M13 3l-1.7342 4.5089c-.282.7332-.423 1.0998-.6423 1.4082a3 3 0 0 1-.7064.7064c-.3084.2193-.675.3603-1.4082.6423L4 12l4.5089 1.7342c.7332.282 1.0998.423 1.4082.6423.2733.1943.5121.4331.7064.7064.2193.3084.3603.675.6423 1.4082L13 21l1.7342-4.5089c.282-.7332.423-1.0998.6423-1.4082a3 3 0 0 1 .7064-.7064c.3084-.2193.675-.3603 1.4082-.6423L22 12l-4.5089-1.7342c-.7332-.282-1.0998-.423-1.4082-.6423a3 3 0 0 1-.7064-.7064c-.2193-.3084-.3603-.675-.6423-1.4082z"
|
|
125
141
|
})
|
|
126
142
|
}));
|
|
127
|
-
},
|
|
128
|
-
return /* @__PURE__ */ e("svg",
|
|
143
|
+
}, V = function(n) {
|
|
144
|
+
return /* @__PURE__ */ e("svg", p({
|
|
129
145
|
xmlns: "http://www.w3.org/2000/svg",
|
|
130
146
|
width: 24,
|
|
131
147
|
height: 24,
|
|
@@ -141,36 +157,38 @@ var he = function(n) {
|
|
|
141
157
|
})
|
|
142
158
|
}));
|
|
143
159
|
};
|
|
144
|
-
const fe = "m_QBtq_buttons", ge = "m_QBtq_container", ve = "
|
|
160
|
+
const fe = "m_QBtq_buttons", ge = "m_QBtq_container", ve = "m_QBtq_content", ke = "m_QBtq_cta", Ce = "m_QBtq_gpt", _e = "m_QBtq_header", xe = "m_QBtq_icon", be = "m_QBtq_icons", Be = "m_QBtq_links", Ne = "m_QBtq_logo", ye = "m_QBtq_main", qe = "m_QBtq_menu", Se = "m_QBtq_mobile", Me = "m_QBtq_mobileOverlay", Qe = "m_QBtq_open", Te = "m_QBtq_outer", Ee = "m_QBtq_selectableIcon", He = "m_QBtq_selected", Le = "m_QBtq_selectedIcon", Ie = "m_QBtq_skip", Oe = "m_QBtq_sub", Pe = "m_QBtq_subContainer", We = "m_QBtq_subTitle", o = {
|
|
145
161
|
buttons: fe,
|
|
146
162
|
container: ge,
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
163
|
+
content: ve,
|
|
164
|
+
cta: ke,
|
|
165
|
+
gpt: Ce,
|
|
166
|
+
header: _e,
|
|
167
|
+
icon: xe,
|
|
168
|
+
icons: be,
|
|
169
|
+
links: Be,
|
|
170
|
+
logo: Ne,
|
|
171
|
+
main: ye,
|
|
172
|
+
menu: qe,
|
|
173
|
+
mobile: Se,
|
|
174
|
+
mobileOverlay: Me,
|
|
175
|
+
open: Qe,
|
|
176
|
+
outer: Te,
|
|
177
|
+
selectableIcon: Ee,
|
|
178
|
+
selected: He,
|
|
179
|
+
selectedIcon: Le,
|
|
180
|
+
skip: Ie,
|
|
181
|
+
sub: Oe,
|
|
182
|
+
subContainer: Pe,
|
|
183
|
+
subTitle: We
|
|
184
|
+
}, Y = "notifications", J = "theme", Ae = 365 * 20, je = (t) => /^\d{1,3}(?:\.\d{1,3}){3}$/.test(t), $e = () => {
|
|
167
185
|
if (typeof window > "u") return;
|
|
168
186
|
const t = window.location.hostname;
|
|
169
|
-
if (!t || t === "localhost" ||
|
|
187
|
+
if (!t || t === "localhost" || je(t))
|
|
170
188
|
return;
|
|
171
189
|
const n = t.replace(/^www\./, ""), l = n.split(".");
|
|
172
190
|
return l.length <= 2 ? `.${n}` : `.${l.slice(-2).join(".")}`;
|
|
173
|
-
},
|
|
191
|
+
}, z = () => {
|
|
174
192
|
if (typeof document > "u") return null;
|
|
175
193
|
const t = document.cookie.split("; ").find((n) => n.startsWith(`${Y}=`));
|
|
176
194
|
if (!t) return null;
|
|
@@ -179,7 +197,7 @@ const fe = "m_QBtq_buttons", ge = "m_QBtq_container", ve = "m_QBtq_gpt", Ce = "m
|
|
|
179
197
|
} catch {
|
|
180
198
|
return null;
|
|
181
199
|
}
|
|
182
|
-
},
|
|
200
|
+
}, Re = () => {
|
|
183
201
|
if (typeof document > "u") return null;
|
|
184
202
|
const t = document.cookie.split("; ").find((n) => n.startsWith(`${J}=`));
|
|
185
203
|
if (!t) return null;
|
|
@@ -191,15 +209,15 @@ const fe = "m_QBtq_buttons", ge = "m_QBtq_container", ve = "m_QBtq_gpt", Ce = "m
|
|
|
191
209
|
}, X = (t, n) => {
|
|
192
210
|
if (typeof document > "u") return;
|
|
193
211
|
const l = new Date(
|
|
194
|
-
Date.now() +
|
|
195
|
-
).toUTCString(),
|
|
212
|
+
Date.now() + Ae * 24 * 60 * 60 * 1e3
|
|
213
|
+
).toUTCString(), s = $e(), a = [
|
|
196
214
|
`${t}=${encodeURIComponent(n)}`,
|
|
197
215
|
"path=/",
|
|
198
216
|
"SameSite=Lax",
|
|
199
217
|
`expires=${l}`
|
|
200
218
|
];
|
|
201
|
-
|
|
202
|
-
},
|
|
219
|
+
s && a.push(`domain=${s}`), document.cookie = a.join("; ");
|
|
220
|
+
}, K = [
|
|
203
221
|
{
|
|
204
222
|
title: "Products",
|
|
205
223
|
url: "https://www.highcharts.com/products/",
|
|
@@ -228,46 +246,46 @@ const fe = "m_QBtq_buttons", ge = "m_QBtq_container", ve = "m_QBtq_gpt", Ce = "m
|
|
|
228
246
|
{
|
|
229
247
|
title: "Blog",
|
|
230
248
|
url: "https://www.highcharts.com/blog/home/",
|
|
231
|
-
icon: /* @__PURE__ */ e(
|
|
249
|
+
icon: /* @__PURE__ */ e(ie, {})
|
|
232
250
|
}
|
|
233
251
|
];
|
|
234
252
|
function d(t, n) {
|
|
235
253
|
return n ? t.replace(n, "") : t;
|
|
236
254
|
}
|
|
237
|
-
function
|
|
255
|
+
function Fe({
|
|
238
256
|
items: t,
|
|
239
257
|
link: n = "a",
|
|
240
258
|
host: l = "https://www.highcharts.com",
|
|
241
|
-
pathname:
|
|
259
|
+
pathname: s
|
|
242
260
|
}) {
|
|
243
261
|
const a = re();
|
|
244
|
-
return /* @__PURE__ */ e("div", { className:
|
|
262
|
+
return /* @__PURE__ */ e("div", { className: x(o.sub, o.outer), children: /* @__PURE__ */ e(G, { className: o.subContainer, as: "ul", children: t.map(
|
|
245
263
|
({
|
|
246
|
-
title:
|
|
264
|
+
title: S,
|
|
247
265
|
url: f,
|
|
248
|
-
prefixMatch:
|
|
249
|
-
icon:
|
|
250
|
-
selectedIcon:
|
|
251
|
-
tag:
|
|
252
|
-
tagVariant:
|
|
266
|
+
prefixMatch: b,
|
|
267
|
+
icon: B,
|
|
268
|
+
selectedIcon: N,
|
|
269
|
+
tag: y,
|
|
270
|
+
tagVariant: w = "success"
|
|
253
271
|
}, M) => {
|
|
254
|
-
const u =
|
|
255
|
-
return /* @__PURE__ */ e("li", { children: /* @__PURE__ */
|
|
272
|
+
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 && (b ? u.startsWith(v.pathname) : v.pathname === u);
|
|
273
|
+
return /* @__PURE__ */ e("li", { children: /* @__PURE__ */ i(
|
|
256
274
|
n,
|
|
257
275
|
{
|
|
258
276
|
href: d(f, l),
|
|
259
|
-
className:
|
|
260
|
-
[o.selectableIcon]:
|
|
261
|
-
[o.selected]:
|
|
277
|
+
className: x({
|
|
278
|
+
[o.selectableIcon]: N,
|
|
279
|
+
[o.selected]: q
|
|
262
280
|
}),
|
|
263
281
|
children: [
|
|
264
|
-
/* @__PURE__ */
|
|
265
|
-
/* @__PURE__ */ e("span", { className: o.selectedIcon, children:
|
|
266
|
-
/* @__PURE__ */ e("span", { className: o.icon, children:
|
|
282
|
+
/* @__PURE__ */ i("span", { className: o.icons, children: [
|
|
283
|
+
/* @__PURE__ */ e("span", { className: o.selectedIcon, children: N }),
|
|
284
|
+
/* @__PURE__ */ e("span", { className: o.icon, children: B })
|
|
267
285
|
] }),
|
|
268
|
-
/* @__PURE__ */
|
|
269
|
-
|
|
270
|
-
|
|
286
|
+
/* @__PURE__ */ i("span", { className: o.subTitle, children: [
|
|
287
|
+
S,
|
|
288
|
+
y && /* @__PURE__ */ e(ae, { variant: w, icon: !1 })
|
|
271
289
|
] })
|
|
272
290
|
]
|
|
273
291
|
}
|
|
@@ -275,7 +293,7 @@ function $e({
|
|
|
275
293
|
}
|
|
276
294
|
) }) });
|
|
277
295
|
}
|
|
278
|
-
const
|
|
296
|
+
const De = [
|
|
279
297
|
{
|
|
280
298
|
id: "whats-new",
|
|
281
299
|
content: [
|
|
@@ -300,279 +318,286 @@ const Re = [
|
|
|
300
318
|
]
|
|
301
319
|
}
|
|
302
320
|
];
|
|
303
|
-
function
|
|
304
|
-
const { theme: t, setTheme: n } =
|
|
305
|
-
return
|
|
321
|
+
function Ve() {
|
|
322
|
+
const { theme: t, setTheme: n } = se(), l = U(!1);
|
|
323
|
+
return W(() => {
|
|
306
324
|
if (l.current) return;
|
|
307
|
-
const
|
|
308
|
-
if (
|
|
309
|
-
n(
|
|
325
|
+
const s = Re();
|
|
326
|
+
if (s && s !== t) {
|
|
327
|
+
n(s), l.current = !0;
|
|
310
328
|
return;
|
|
311
329
|
}
|
|
312
330
|
l.current = !0;
|
|
313
|
-
}, [n, t]),
|
|
331
|
+
}, [n, t]), W(() => {
|
|
314
332
|
t && X(J, t);
|
|
315
333
|
}, [t]), null;
|
|
316
334
|
}
|
|
317
|
-
function
|
|
335
|
+
function it({
|
|
318
336
|
subItems: t,
|
|
319
337
|
children: n,
|
|
320
|
-
notifications: l =
|
|
338
|
+
notifications: l = De,
|
|
321
339
|
// TODO: Fetch these from the internets
|
|
322
|
-
link:
|
|
340
|
+
link: s = "a",
|
|
323
341
|
host: a = "https://www.highcharts.com",
|
|
324
|
-
pathname:
|
|
342
|
+
pathname: S,
|
|
325
343
|
cssVariable: f
|
|
326
344
|
}) {
|
|
327
|
-
const
|
|
328
|
-
|
|
329
|
-
const r =
|
|
345
|
+
const b = T("(max-width: 374px)"), B = T("(max-width: 849px)"), N = T("(max-width: 1300px)"), y = U(null), [w, M] = P(!1), [u, g] = P([]);
|
|
346
|
+
A(() => {
|
|
347
|
+
const r = y.current;
|
|
330
348
|
if (!r) return;
|
|
331
|
-
const
|
|
332
|
-
let E = window.scrollY,
|
|
349
|
+
const c = 48, h = 82, C = t?.length ? 72 : 0, Q = h + u.length * c + C, ee = -(h + u.length * c);
|
|
350
|
+
let E = window.scrollY, k = 0, H = null, _ = null;
|
|
333
351
|
const L = () => {
|
|
334
|
-
_ = null, !(!r || H ===
|
|
352
|
+
_ = null, !(!r || H === k) && (r.style.transform = `translate3d(0, ${k}px, 0)`, f && document.documentElement.style.setProperty(
|
|
335
353
|
"--header-bottom",
|
|
336
|
-
`${
|
|
337
|
-
), H =
|
|
354
|
+
`${Q + k}px`
|
|
355
|
+
), H = k);
|
|
338
356
|
};
|
|
339
357
|
L();
|
|
340
358
|
const I = () => {
|
|
341
359
|
const O = window.scrollY, te = O - E;
|
|
342
|
-
E = O,
|
|
360
|
+
E = O, k = Math.min(0, Math.max(ee, k - te)), _ === null && (_ = window.requestAnimationFrame(L));
|
|
343
361
|
};
|
|
344
362
|
return window.addEventListener("scroll", I, { passive: !0 }), () => {
|
|
345
363
|
window.removeEventListener("scroll", I), _ !== null && cancelAnimationFrame(_), r.style.transform = "", f && document.documentElement.style.removeProperty("--header-bottom");
|
|
346
364
|
};
|
|
347
|
-
}, [f, u.length, t?.length]),
|
|
365
|
+
}, [f, u.length, t?.length]), A(() => {
|
|
348
366
|
if (!l.length) return;
|
|
349
|
-
const r =
|
|
367
|
+
const r = z();
|
|
350
368
|
g(
|
|
351
369
|
r ? l.filter(
|
|
352
|
-
(
|
|
370
|
+
(c) => !c.id || !r.closed.includes(c.id)
|
|
353
371
|
) : l
|
|
354
372
|
);
|
|
355
373
|
}, [a, l]);
|
|
356
374
|
const v = (r) => {
|
|
357
375
|
if (r.preventDefault(), !(r.nativeEvent instanceof KeyboardEvent) || r.nativeEvent.code === "Enter" || r.nativeEvent.code === "Space") {
|
|
358
|
-
const
|
|
359
|
-
|
|
376
|
+
const c = document.querySelector("main");
|
|
377
|
+
c && (c.scrollIntoView(), c.getAttribute("tabindex") !== "-1" && c.setAttribute("tabindex", "-1"), c.focus());
|
|
360
378
|
}
|
|
361
|
-
},
|
|
362
|
-
M(!
|
|
379
|
+
}, q = () => {
|
|
380
|
+
M(!w);
|
|
363
381
|
}, Z = (r) => {
|
|
364
382
|
if (g(u.filter((h) => !h.id || h.id !== r)), !r) return;
|
|
365
|
-
const
|
|
383
|
+
const c = z() ?? {
|
|
366
384
|
closed: []
|
|
367
385
|
};
|
|
368
|
-
|
|
386
|
+
c.closed.includes(r) || X(
|
|
369
387
|
Y,
|
|
370
388
|
JSON.stringify({
|
|
371
|
-
closed: [...
|
|
389
|
+
closed: [...c.closed, r]
|
|
372
390
|
})
|
|
373
391
|
);
|
|
374
392
|
};
|
|
375
|
-
return /* @__PURE__ */
|
|
376
|
-
/* @__PURE__ */ e(
|
|
377
|
-
/* @__PURE__ */
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
id: r,
|
|
382
|
-
content: s,
|
|
383
|
-
variant: h,
|
|
384
|
-
closable: k,
|
|
385
|
-
onClose: () => Z(r)
|
|
386
|
-
},
|
|
387
|
-
T
|
|
388
|
-
)),
|
|
389
|
-
/* @__PURE__ */ e("div", { className: b(o.main, o.outer), children: /* @__PURE__ */ c(U, { as: "nav", className: o.container, children: [
|
|
390
|
-
/* @__PURE__ */ e(
|
|
391
|
-
m,
|
|
392
|
-
{
|
|
393
|
-
as: "a",
|
|
394
|
-
className: o.skip,
|
|
395
|
-
size: 500,
|
|
396
|
-
tabIndex: "0",
|
|
397
|
-
onClick: v,
|
|
398
|
-
onKeyPress: v,
|
|
399
|
-
children: "Skip to content"
|
|
400
|
-
}
|
|
401
|
-
),
|
|
402
|
-
/* @__PURE__ */ e(
|
|
403
|
-
i,
|
|
393
|
+
return /* @__PURE__ */ i(oe, { children: [
|
|
394
|
+
/* @__PURE__ */ e(Ve, {}),
|
|
395
|
+
/* @__PURE__ */ i("header", { className: o.header, children: [
|
|
396
|
+
/* @__PURE__ */ i("div", { className: o.content, ref: y, children: [
|
|
397
|
+
u?.map(({ id: r, content: c, variant: h, closable: C }, Q) => /* @__PURE__ */ e(
|
|
398
|
+
le,
|
|
404
399
|
{
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
size: 300,
|
|
415
|
-
as: i,
|
|
416
|
-
href: d(s, a),
|
|
417
|
-
children: r
|
|
418
|
-
}
|
|
419
|
-
) }, h)) }),
|
|
420
|
-
/* @__PURE__ */ c("div", { className: o.buttons, children: [
|
|
421
|
-
/* @__PURE__ */ c(
|
|
422
|
-
m,
|
|
423
|
-
{
|
|
424
|
-
variant: "transparent",
|
|
425
|
-
as: i,
|
|
426
|
-
href: d(
|
|
427
|
-
"https://www.highcharts.com/chat/gpt/",
|
|
428
|
-
a
|
|
429
|
-
),
|
|
430
|
-
children: [
|
|
431
|
-
/* @__PURE__ */ e("span", { className: o.gpt, children: "Highcharts GPT" }),
|
|
432
|
-
/* @__PURE__ */ e(F, {})
|
|
433
|
-
]
|
|
434
|
-
}
|
|
435
|
-
),
|
|
436
|
-
/* @__PURE__ */ e(j, {}),
|
|
437
|
-
/* @__PURE__ */ e(D, {}),
|
|
400
|
+
id: r,
|
|
401
|
+
content: c,
|
|
402
|
+
variant: h,
|
|
403
|
+
closable: C,
|
|
404
|
+
onClose: () => Z(r)
|
|
405
|
+
},
|
|
406
|
+
Q
|
|
407
|
+
)),
|
|
408
|
+
/* @__PURE__ */ e("div", { className: x(o.main, o.outer), children: /* @__PURE__ */ i(G, { as: "nav", className: o.container, children: [
|
|
438
409
|
/* @__PURE__ */ e(
|
|
439
410
|
m,
|
|
440
411
|
{
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
412
|
+
as: "a",
|
|
413
|
+
className: o.skip,
|
|
414
|
+
size: 500,
|
|
415
|
+
tabIndex: "0",
|
|
416
|
+
onClick: v,
|
|
417
|
+
onKeyPress: v,
|
|
418
|
+
children: "Skip to content"
|
|
446
419
|
}
|
|
447
420
|
),
|
|
448
|
-
/* @__PURE__ */
|
|
449
|
-
|
|
421
|
+
/* @__PURE__ */ e(
|
|
422
|
+
s,
|
|
450
423
|
{
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
"https://www.highcharts.com/download/",
|
|
455
|
-
a
|
|
456
|
-
),
|
|
457
|
-
children: [
|
|
458
|
-
/* @__PURE__ */ e(G, {}),
|
|
459
|
-
"Get started"
|
|
460
|
-
]
|
|
424
|
+
className: o.logo,
|
|
425
|
+
href: d("https://www.highcharts.com/", a),
|
|
426
|
+
children: /* @__PURE__ */ e(j, { showText: !N || B && !b })
|
|
461
427
|
}
|
|
462
428
|
),
|
|
463
|
-
/* @__PURE__ */ c(
|
|
429
|
+
/* @__PURE__ */ e("ul", { className: o.links, children: K.map(({ title: r, url: c }, h) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(
|
|
464
430
|
m,
|
|
465
431
|
{
|
|
466
|
-
variant:
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
p ? /* @__PURE__ */ e(ce, {}) : /* @__PURE__ */ e(ue, {})
|
|
472
|
-
]
|
|
432
|
+
variant: "plain",
|
|
433
|
+
size: 300,
|
|
434
|
+
as: s,
|
|
435
|
+
href: d(c, a),
|
|
436
|
+
children: r
|
|
473
437
|
}
|
|
474
|
-
)
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
438
|
+
) }, h)) }),
|
|
439
|
+
/* @__PURE__ */ i("div", { className: o.buttons, children: [
|
|
440
|
+
/* @__PURE__ */ i(
|
|
441
|
+
m,
|
|
442
|
+
{
|
|
443
|
+
variant: "transparent",
|
|
444
|
+
as: s,
|
|
445
|
+
href: d(
|
|
446
|
+
"https://www.highcharts.com/chat/gpt/",
|
|
447
|
+
a
|
|
448
|
+
),
|
|
449
|
+
children: [
|
|
450
|
+
/* @__PURE__ */ e("span", { className: o.gpt, children: "Highcharts GPT" }),
|
|
451
|
+
/* @__PURE__ */ e(D, {})
|
|
452
|
+
]
|
|
453
|
+
}
|
|
454
|
+
),
|
|
455
|
+
/* @__PURE__ */ e($, {}),
|
|
456
|
+
/* @__PURE__ */ e(R, {}),
|
|
457
|
+
/* @__PURE__ */ i(
|
|
458
|
+
m,
|
|
459
|
+
{
|
|
460
|
+
className: o.cta,
|
|
461
|
+
variant: "brand",
|
|
462
|
+
as: s,
|
|
463
|
+
href: d("https://shop.highcharts.com/", a),
|
|
464
|
+
"aria-label": "Buy Now",
|
|
465
|
+
children: [
|
|
466
|
+
/* @__PURE__ */ e(F, {}),
|
|
467
|
+
"Buy Now"
|
|
468
|
+
]
|
|
469
|
+
}
|
|
470
|
+
),
|
|
471
|
+
/* @__PURE__ */ i(
|
|
472
|
+
m,
|
|
473
|
+
{
|
|
474
|
+
className: o.cta,
|
|
475
|
+
variant: "success",
|
|
476
|
+
as: s,
|
|
477
|
+
href: d(
|
|
478
|
+
"https://www.highcharts.com/download/",
|
|
479
|
+
a
|
|
480
|
+
),
|
|
481
|
+
children: [
|
|
482
|
+
/* @__PURE__ */ e(V, {}),
|
|
483
|
+
"Try for Free"
|
|
484
|
+
]
|
|
485
|
+
}
|
|
486
|
+
),
|
|
487
|
+
/* @__PURE__ */ i(
|
|
488
|
+
m,
|
|
489
|
+
{
|
|
490
|
+
variant: w ? "white" : "transparent",
|
|
491
|
+
className: o.menu,
|
|
492
|
+
onClick: q,
|
|
493
|
+
children: [
|
|
494
|
+
w ? "Close" : "Menu",
|
|
495
|
+
w ? /* @__PURE__ */ e(ce, {}) : /* @__PURE__ */ e(ue, {})
|
|
496
|
+
]
|
|
497
|
+
}
|
|
498
|
+
)
|
|
499
|
+
] })
|
|
500
|
+
] }) }),
|
|
501
|
+
!!t?.length && /* @__PURE__ */ e(
|
|
502
|
+
Fe,
|
|
503
|
+
{
|
|
504
|
+
items: t,
|
|
505
|
+
link: s,
|
|
506
|
+
host: a,
|
|
507
|
+
pathname: S
|
|
508
|
+
}
|
|
509
|
+
),
|
|
510
|
+
n
|
|
511
|
+
] }),
|
|
512
|
+
B && /* @__PURE__ */ i(ne, { children: [
|
|
488
513
|
/* @__PURE__ */ e(
|
|
489
514
|
"div",
|
|
490
515
|
{
|
|
491
|
-
className:
|
|
492
|
-
onClick:
|
|
516
|
+
className: x(o.mobileOverlay, { [o.open]: w }),
|
|
517
|
+
onClick: q
|
|
493
518
|
}
|
|
494
519
|
),
|
|
495
|
-
/* @__PURE__ */
|
|
520
|
+
/* @__PURE__ */ i(
|
|
496
521
|
"nav",
|
|
497
522
|
{
|
|
498
|
-
className:
|
|
499
|
-
[o.open]:
|
|
523
|
+
className: x(o.mobile, {
|
|
524
|
+
[o.open]: w
|
|
500
525
|
}),
|
|
501
526
|
children: [
|
|
502
|
-
/* @__PURE__ */
|
|
527
|
+
/* @__PURE__ */ i("div", { className: o.container, children: [
|
|
503
528
|
/* @__PURE__ */ e(
|
|
504
|
-
|
|
529
|
+
s,
|
|
505
530
|
{
|
|
506
531
|
className: o.logo,
|
|
507
532
|
href: d("https://www.highcharts.com/", a),
|
|
508
|
-
children: /* @__PURE__ */ e(
|
|
533
|
+
children: /* @__PURE__ */ e(j, { showText: !b })
|
|
509
534
|
}
|
|
510
535
|
),
|
|
511
|
-
/* @__PURE__ */
|
|
512
|
-
/* @__PURE__ */
|
|
536
|
+
/* @__PURE__ */ i("div", { className: o.buttons, children: [
|
|
537
|
+
/* @__PURE__ */ i(
|
|
513
538
|
m,
|
|
514
539
|
{
|
|
515
540
|
variant: "transparent",
|
|
516
|
-
as:
|
|
541
|
+
as: s,
|
|
517
542
|
href: d(
|
|
518
543
|
"https://www.highcharts.com/chat/gpt/",
|
|
519
544
|
a
|
|
520
545
|
),
|
|
521
546
|
children: [
|
|
522
547
|
/* @__PURE__ */ e("span", { className: o.gpt, children: "Highcharts GPT" }),
|
|
523
|
-
/* @__PURE__ */ e(
|
|
548
|
+
/* @__PURE__ */ e(D, {})
|
|
524
549
|
]
|
|
525
550
|
}
|
|
526
551
|
),
|
|
527
|
-
/* @__PURE__ */ e(
|
|
528
|
-
/* @__PURE__ */ e(
|
|
552
|
+
/* @__PURE__ */ e($, {}),
|
|
553
|
+
/* @__PURE__ */ e(R, {})
|
|
529
554
|
] })
|
|
530
555
|
] }),
|
|
531
|
-
/* @__PURE__ */
|
|
532
|
-
/* @__PURE__ */
|
|
556
|
+
/* @__PURE__ */ i("div", { className: o.buttons, children: [
|
|
557
|
+
/* @__PURE__ */ i(
|
|
533
558
|
m,
|
|
534
559
|
{
|
|
535
560
|
variant: "brand",
|
|
536
561
|
fullWidth: !0,
|
|
537
|
-
as:
|
|
562
|
+
as: s,
|
|
538
563
|
href: d("https://shop.highcharts.com/", a),
|
|
539
564
|
children: [
|
|
540
|
-
/* @__PURE__ */ e(
|
|
541
|
-
"
|
|
565
|
+
/* @__PURE__ */ e(F, {}),
|
|
566
|
+
"Buy Now"
|
|
542
567
|
]
|
|
543
568
|
}
|
|
544
569
|
),
|
|
545
|
-
/* @__PURE__ */
|
|
570
|
+
/* @__PURE__ */ i(
|
|
546
571
|
m,
|
|
547
572
|
{
|
|
548
573
|
variant: "success",
|
|
549
574
|
fullWidth: !0,
|
|
550
|
-
as:
|
|
575
|
+
as: s,
|
|
551
576
|
href: d(
|
|
552
577
|
"https://www.highcharts.com/download/",
|
|
553
578
|
a
|
|
554
579
|
),
|
|
555
580
|
children: [
|
|
556
|
-
/* @__PURE__ */ e(
|
|
557
|
-
"
|
|
581
|
+
/* @__PURE__ */ e(V, {}),
|
|
582
|
+
"Try for Free"
|
|
558
583
|
]
|
|
559
584
|
}
|
|
560
585
|
)
|
|
561
586
|
] }),
|
|
562
|
-
/* @__PURE__ */ e("ul", { className: o.links, children:
|
|
587
|
+
/* @__PURE__ */ e("ul", { className: o.links, children: K.map(({ title: r, url: c, icon: h }, C) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ i(
|
|
563
588
|
m,
|
|
564
589
|
{
|
|
565
590
|
variant: "plain",
|
|
566
591
|
size: 500,
|
|
567
592
|
fullWidth: !0,
|
|
568
|
-
as:
|
|
569
|
-
href: d(
|
|
593
|
+
as: s,
|
|
594
|
+
href: d(c, a),
|
|
570
595
|
children: [
|
|
571
596
|
h,
|
|
572
597
|
r
|
|
573
598
|
]
|
|
574
599
|
}
|
|
575
|
-
) },
|
|
600
|
+
) }, C)) })
|
|
576
601
|
]
|
|
577
602
|
}
|
|
578
603
|
)
|
|
@@ -581,6 +606,6 @@ function rt({
|
|
|
581
606
|
] });
|
|
582
607
|
}
|
|
583
608
|
export {
|
|
584
|
-
|
|
585
|
-
|
|
609
|
+
it as Header,
|
|
610
|
+
Fe as SubHeader
|
|
586
611
|
};
|