highsoft-ui 1.0.96 → 1.0.98
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 +292 -280
- package/dist/highsoft-ui.css +1 -1
- package/package.json +1 -1
|
@@ -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
|
|
7
|
-
import { X as
|
|
8
|
-
import { c as
|
|
9
|
-
import { Button as
|
|
10
|
-
import { Container as
|
|
11
|
-
import { Logo as
|
|
12
|
-
import { NewTag as
|
|
13
|
-
import { Notification as
|
|
14
|
-
import { PrefPanel as
|
|
15
|
-
var
|
|
16
|
-
return /* @__PURE__ */ e("svg",
|
|
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 A } from "react";
|
|
3
|
+
import { a as T, b as W, 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 w } from "../../extends-hS2Bh-Yp.js";
|
|
6
|
+
import { S as j, a as $ } from "../../index-ClA5awl_.js";
|
|
7
|
+
import { X as ce } from "../../XClose-CCu1vrNS.js";
|
|
8
|
+
import { c as b } from "../../clsx-OuTLNxxd.js";
|
|
9
|
+
import { Button as m } from "../Button/index.js";
|
|
10
|
+
import { Container as G } from "../Container/index.js";
|
|
11
|
+
import { Logo as R } from "../Logo/index.js";
|
|
12
|
+
import { NewTag as ae } from "../NewTag/index.js";
|
|
13
|
+
import { Notification as le } from "../Notification/index.js";
|
|
14
|
+
import { PrefPanel as F } from "../PrefPanel/index.js";
|
|
15
|
+
var he = function(n) {
|
|
16
|
+
return /* @__PURE__ */ e("svg", w({
|
|
17
17
|
xmlns: "http://www.w3.org/2000/svg",
|
|
18
18
|
width: 24,
|
|
19
19
|
height: 24,
|
|
@@ -28,8 +28,8 @@ var re = 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__ */ e("svg",
|
|
31
|
+
}, de = function(n) {
|
|
32
|
+
return /* @__PURE__ */ e("svg", w({
|
|
33
33
|
xmlns: "http://www.w3.org/2000/svg",
|
|
34
34
|
width: 24,
|
|
35
35
|
height: 24,
|
|
@@ -44,8 +44,8 @@ var re = 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__ */ e("svg",
|
|
47
|
+
}, me = function(n) {
|
|
48
|
+
return /* @__PURE__ */ e("svg", w({
|
|
49
49
|
xmlns: "http://www.w3.org/2000/svg",
|
|
50
50
|
width: 24,
|
|
51
51
|
height: 24,
|
|
@@ -60,8 +60,8 @@ var re = 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__ */ e("svg",
|
|
63
|
+
}, ue = function(n) {
|
|
64
|
+
return /* @__PURE__ */ e("svg", w({
|
|
65
65
|
xmlns: "http://www.w3.org/2000/svg",
|
|
66
66
|
width: 24,
|
|
67
67
|
height: 24,
|
|
@@ -76,8 +76,8 @@ var re = function(n) {
|
|
|
76
76
|
d: "M3 12h12M3 6h18M3 18h18"
|
|
77
77
|
})
|
|
78
78
|
}));
|
|
79
|
-
},
|
|
80
|
-
return /* @__PURE__ */ e("svg",
|
|
79
|
+
}, pe = function(n) {
|
|
80
|
+
return /* @__PURE__ */ e("svg", w({
|
|
81
81
|
xmlns: "http://www.w3.org/2000/svg",
|
|
82
82
|
width: 24,
|
|
83
83
|
height: 24,
|
|
@@ -92,8 +92,8 @@ var re = 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__ */ e("svg",
|
|
95
|
+
}, we = function(n) {
|
|
96
|
+
return /* @__PURE__ */ e("svg", w({
|
|
97
97
|
xmlns: "http://www.w3.org/2000/svg",
|
|
98
98
|
width: 24,
|
|
99
99
|
height: 24,
|
|
@@ -108,8 +108,8 @@ var re = function(n) {
|
|
|
108
108
|
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
109
|
})
|
|
110
110
|
}));
|
|
111
|
-
},
|
|
112
|
-
return /* @__PURE__ */ e("svg",
|
|
111
|
+
}, D = function(n) {
|
|
112
|
+
return /* @__PURE__ */ e("svg", w({
|
|
113
113
|
xmlns: "http://www.w3.org/2000/svg",
|
|
114
114
|
width: 24,
|
|
115
115
|
height: 24,
|
|
@@ -124,8 +124,8 @@ var re = function(n) {
|
|
|
124
124
|
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
125
|
})
|
|
126
126
|
}));
|
|
127
|
-
},
|
|
128
|
-
return /* @__PURE__ */ e("svg",
|
|
127
|
+
}, V = function(n) {
|
|
128
|
+
return /* @__PURE__ */ e("svg", w({
|
|
129
129
|
xmlns: "http://www.w3.org/2000/svg",
|
|
130
130
|
width: 24,
|
|
131
131
|
height: 24,
|
|
@@ -141,141 +141,143 @@ var re = function(n) {
|
|
|
141
141
|
})
|
|
142
142
|
}));
|
|
143
143
|
};
|
|
144
|
-
const
|
|
145
|
-
buttons:
|
|
146
|
-
container:
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
144
|
+
const fe = "m_QBtq_buttons", ge = "m_QBtq_container", ve = "m_QBtq_content", _e = "m_QBtq_cta", Ce = "m_QBtq_gpt", ke = "m_QBtq_header", be = "m_QBtq_icon", xe = "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", Ae = "m_QBtq_subTitle", o = {
|
|
145
|
+
buttons: fe,
|
|
146
|
+
container: ge,
|
|
147
|
+
content: ve,
|
|
148
|
+
cta: _e,
|
|
149
|
+
gpt: Ce,
|
|
150
|
+
header: ke,
|
|
151
|
+
icon: be,
|
|
152
|
+
icons: xe,
|
|
153
|
+
links: Be,
|
|
154
|
+
logo: Ne,
|
|
155
|
+
main: ye,
|
|
156
|
+
menu: qe,
|
|
157
|
+
mobile: Se,
|
|
158
|
+
mobileOverlay: Me,
|
|
159
|
+
open: Qe,
|
|
160
|
+
outer: Te,
|
|
161
|
+
selectableIcon: Ee,
|
|
162
|
+
selected: He,
|
|
163
|
+
selectedIcon: Le,
|
|
164
|
+
skip: Ie,
|
|
165
|
+
sub: Oe,
|
|
166
|
+
subContainer: Pe,
|
|
167
|
+
subTitle: Ae
|
|
168
|
+
}, Y = "notifications", J = "theme", We = 365 * 20, je = (t) => /^\d{1,3}(?:\.\d{1,3}){3}$/.test(t), $e = () => {
|
|
167
169
|
if (typeof window > "u") return;
|
|
168
170
|
const t = window.location.hostname;
|
|
169
|
-
if (!t || t === "localhost" ||
|
|
171
|
+
if (!t || t === "localhost" || je(t))
|
|
170
172
|
return;
|
|
171
|
-
const n = t.replace(/^www\./, ""),
|
|
172
|
-
return
|
|
173
|
-
},
|
|
173
|
+
const n = t.replace(/^www\./, ""), l = n.split(".");
|
|
174
|
+
return l.length <= 2 ? `.${n}` : `.${l.slice(-2).join(".")}`;
|
|
175
|
+
}, z = () => {
|
|
174
176
|
if (typeof document > "u") return null;
|
|
175
|
-
const t = document.cookie.split("; ").find((n) => n.startsWith(`${
|
|
177
|
+
const t = document.cookie.split("; ").find((n) => n.startsWith(`${Y}=`));
|
|
176
178
|
if (!t) return null;
|
|
177
179
|
try {
|
|
178
180
|
return JSON.parse(decodeURIComponent(t.split("=")[1]));
|
|
179
181
|
} catch {
|
|
180
182
|
return null;
|
|
181
183
|
}
|
|
182
|
-
},
|
|
184
|
+
}, Re = () => {
|
|
183
185
|
if (typeof document > "u") return null;
|
|
184
|
-
const t = document.cookie.split("; ").find((n) => n.startsWith(`${
|
|
186
|
+
const t = document.cookie.split("; ").find((n) => n.startsWith(`${J}=`));
|
|
185
187
|
if (!t) return null;
|
|
186
188
|
try {
|
|
187
189
|
return decodeURIComponent(t.split("=")[1]);
|
|
188
190
|
} catch {
|
|
189
191
|
return null;
|
|
190
192
|
}
|
|
191
|
-
},
|
|
193
|
+
}, X = (t, n) => {
|
|
192
194
|
if (typeof document > "u") return;
|
|
193
|
-
const
|
|
194
|
-
Date.now() +
|
|
195
|
-
).toUTCString(), s =
|
|
195
|
+
const l = new Date(
|
|
196
|
+
Date.now() + We * 24 * 60 * 60 * 1e3
|
|
197
|
+
).toUTCString(), s = $e(), a = [
|
|
196
198
|
`${t}=${encodeURIComponent(n)}`,
|
|
197
199
|
"path=/",
|
|
198
200
|
"SameSite=Lax",
|
|
199
|
-
`expires=${
|
|
201
|
+
`expires=${l}`
|
|
200
202
|
];
|
|
201
203
|
s && a.push(`domain=${s}`), document.cookie = a.join("; ");
|
|
202
|
-
},
|
|
204
|
+
}, K = [
|
|
203
205
|
{
|
|
204
206
|
title: "Products",
|
|
205
207
|
url: "https://www.highcharts.com/products/",
|
|
206
|
-
icon: /* @__PURE__ */ e(
|
|
208
|
+
icon: /* @__PURE__ */ e(de, {})
|
|
207
209
|
},
|
|
208
210
|
{
|
|
209
211
|
title: "Demos",
|
|
210
212
|
url: "https://www.highcharts.com/demo",
|
|
211
|
-
icon: /* @__PURE__ */ e(
|
|
213
|
+
icon: /* @__PURE__ */ e(we, {})
|
|
212
214
|
},
|
|
213
215
|
{
|
|
214
216
|
title: "Support",
|
|
215
217
|
url: "https://www.highcharts.com/support/",
|
|
216
|
-
icon: /* @__PURE__ */ e(
|
|
218
|
+
icon: /* @__PURE__ */ e(pe, {})
|
|
217
219
|
},
|
|
218
220
|
{
|
|
219
221
|
title: "Resources",
|
|
220
222
|
url: "https://www.highcharts.com/resources/",
|
|
221
|
-
icon: /* @__PURE__ */ e(
|
|
223
|
+
icon: /* @__PURE__ */ e(me, {})
|
|
222
224
|
},
|
|
223
225
|
{
|
|
224
226
|
title: "Pricing",
|
|
225
227
|
url: "https://shop.highcharts.com/",
|
|
226
|
-
icon: /* @__PURE__ */ e(
|
|
228
|
+
icon: /* @__PURE__ */ e(he, {})
|
|
227
229
|
},
|
|
228
230
|
{
|
|
229
231
|
title: "Blog",
|
|
230
232
|
url: "https://www.highcharts.com/blog/home/",
|
|
231
|
-
icon: /* @__PURE__ */ e(
|
|
233
|
+
icon: /* @__PURE__ */ e(ie, {})
|
|
232
234
|
}
|
|
233
235
|
];
|
|
234
|
-
function
|
|
236
|
+
function d(t, n) {
|
|
235
237
|
return n ? t.replace(n, "") : t;
|
|
236
238
|
}
|
|
237
|
-
function
|
|
239
|
+
function Fe({
|
|
238
240
|
items: t,
|
|
239
241
|
link: n = "a",
|
|
240
|
-
host:
|
|
242
|
+
host: l = "https://www.highcharts.com",
|
|
241
243
|
pathname: s
|
|
242
244
|
}) {
|
|
243
|
-
const a =
|
|
244
|
-
return /* @__PURE__ */ e("div", { className:
|
|
245
|
+
const a = re();
|
|
246
|
+
return /* @__PURE__ */ e("div", { className: b(o.sub, o.outer), children: /* @__PURE__ */ e(G, { className: o.subContainer, as: "ul", children: t.map(
|
|
245
247
|
({
|
|
246
|
-
title:
|
|
247
|
-
url:
|
|
248
|
+
title: S,
|
|
249
|
+
url: f,
|
|
248
250
|
prefixMatch: x,
|
|
249
|
-
icon:
|
|
250
|
-
selectedIcon:
|
|
251
|
-
tag:
|
|
252
|
-
tagVariant:
|
|
253
|
-
},
|
|
254
|
-
const
|
|
255
|
-
return /* @__PURE__ */ e("li", { children: /* @__PURE__ */
|
|
251
|
+
icon: B,
|
|
252
|
+
selectedIcon: N,
|
|
253
|
+
tag: y,
|
|
254
|
+
tagVariant: p = "success"
|
|
255
|
+
}, M) => {
|
|
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__ */ e("li", { children: /* @__PURE__ */ i(
|
|
256
258
|
n,
|
|
257
259
|
{
|
|
258
|
-
href:
|
|
259
|
-
className:
|
|
260
|
-
[o.selectableIcon]:
|
|
261
|
-
[o.selected]:
|
|
260
|
+
href: d(f, l),
|
|
261
|
+
className: b({
|
|
262
|
+
[o.selectableIcon]: N,
|
|
263
|
+
[o.selected]: q
|
|
262
264
|
}),
|
|
263
265
|
children: [
|
|
264
|
-
/* @__PURE__ */
|
|
265
|
-
/* @__PURE__ */ e("span", { className: o.selectedIcon, children:
|
|
266
|
-
/* @__PURE__ */ e("span", { className: o.icon, children:
|
|
266
|
+
/* @__PURE__ */ i("span", { className: o.icons, children: [
|
|
267
|
+
/* @__PURE__ */ e("span", { className: o.selectedIcon, children: N }),
|
|
268
|
+
/* @__PURE__ */ e("span", { className: o.icon, children: B })
|
|
267
269
|
] }),
|
|
268
|
-
/* @__PURE__ */
|
|
269
|
-
|
|
270
|
-
|
|
270
|
+
/* @__PURE__ */ i("span", { className: o.subTitle, children: [
|
|
271
|
+
S,
|
|
272
|
+
y && /* @__PURE__ */ e(ae, { variant: p, icon: !1 })
|
|
271
273
|
] })
|
|
272
274
|
]
|
|
273
275
|
}
|
|
274
|
-
) },
|
|
276
|
+
) }, M);
|
|
275
277
|
}
|
|
276
278
|
) }) });
|
|
277
279
|
}
|
|
278
|
-
const
|
|
280
|
+
const De = [
|
|
279
281
|
{
|
|
280
282
|
id: "whats-new",
|
|
281
283
|
content: [
|
|
@@ -300,276 +302,286 @@ const Oe = [
|
|
|
300
302
|
]
|
|
301
303
|
}
|
|
302
304
|
];
|
|
303
|
-
function
|
|
304
|
-
const { theme: t, setTheme: n } =
|
|
305
|
-
return
|
|
306
|
-
if (
|
|
307
|
-
const s =
|
|
305
|
+
function Ve() {
|
|
306
|
+
const { theme: t, setTheme: n } = se(), l = U(!1);
|
|
307
|
+
return A(() => {
|
|
308
|
+
if (l.current) return;
|
|
309
|
+
const s = Re();
|
|
308
310
|
if (s && s !== t) {
|
|
309
|
-
n(s),
|
|
311
|
+
n(s), l.current = !0;
|
|
310
312
|
return;
|
|
311
313
|
}
|
|
312
|
-
|
|
313
|
-
}, [n, t]),
|
|
314
|
-
t &&
|
|
314
|
+
l.current = !0;
|
|
315
|
+
}, [n, t]), A(() => {
|
|
316
|
+
t && X(J, t);
|
|
315
317
|
}, [t]), null;
|
|
316
318
|
}
|
|
317
|
-
function
|
|
319
|
+
function it({
|
|
318
320
|
subItems: t,
|
|
319
321
|
children: n,
|
|
320
|
-
notifications:
|
|
322
|
+
notifications: l = De,
|
|
321
323
|
// TODO: Fetch these from the internets
|
|
322
324
|
link: s = "a",
|
|
323
325
|
host: a = "https://www.highcharts.com",
|
|
324
|
-
pathname:
|
|
325
|
-
cssVariable:
|
|
326
|
+
pathname: S,
|
|
327
|
+
cssVariable: f
|
|
326
328
|
}) {
|
|
327
|
-
const x =
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
);
|
|
336
|
-
const Q = () => {
|
|
337
|
-
const L = window.scrollY, U = L - r;
|
|
338
|
-
l -= U, l < d ? l = d : l > 0 && (l = 0), g.current && l !== N && (g.current.style.top = `${l}px`, v && document.documentElement.style.setProperty(
|
|
329
|
+
const x = T("(max-width: 374px)"), B = T("(max-width: 849px)"), N = T("(max-width: 1300px)"), y = U(null), [p, M] = P(!1), [u, g] = P([]);
|
|
330
|
+
W(() => {
|
|
331
|
+
const r = y.current;
|
|
332
|
+
if (!r) return;
|
|
333
|
+
const c = 48, h = 82, C = t?.length ? 72 : 0, Q = h + u.length * c + C, ee = -(h + u.length * c);
|
|
334
|
+
let E = window.scrollY, _ = 0, H = null, k = null;
|
|
335
|
+
const L = () => {
|
|
336
|
+
k = null, !(!r || H === _) && (r.style.transform = `translate3d(0, ${_}px, 0)`, f && document.documentElement.style.setProperty(
|
|
339
337
|
"--header-bottom",
|
|
340
|
-
`${
|
|
341
|
-
)
|
|
338
|
+
`${Q + _}px`
|
|
339
|
+
), H = _);
|
|
340
|
+
};
|
|
341
|
+
L();
|
|
342
|
+
const I = () => {
|
|
343
|
+
const O = window.scrollY, te = O - E;
|
|
344
|
+
E = O, _ = Math.min(0, Math.max(ee, _ - te)), k === null && (k = window.requestAnimationFrame(L));
|
|
342
345
|
};
|
|
343
|
-
return window.addEventListener("scroll",
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
346
|
+
return window.addEventListener("scroll", I, { passive: !0 }), () => {
|
|
347
|
+
window.removeEventListener("scroll", I), k !== null && cancelAnimationFrame(k), r.style.transform = "", f && document.documentElement.style.removeProperty("--header-bottom");
|
|
348
|
+
};
|
|
349
|
+
}, [f, u.length, t?.length]), W(() => {
|
|
350
|
+
if (!l.length) return;
|
|
351
|
+
const r = z();
|
|
352
|
+
g(
|
|
353
|
+
r ? l.filter(
|
|
354
|
+
(c) => !c.id || !r.closed.includes(c.id)
|
|
355
|
+
) : l
|
|
351
356
|
);
|
|
352
|
-
}, [a,
|
|
353
|
-
const
|
|
357
|
+
}, [a, l]);
|
|
358
|
+
const v = (r) => {
|
|
354
359
|
if (r.preventDefault(), !(r.nativeEvent instanceof KeyboardEvent) || r.nativeEvent.code === "Enter" || r.nativeEvent.code === "Space") {
|
|
355
|
-
const
|
|
356
|
-
|
|
360
|
+
const c = document.querySelector("main");
|
|
361
|
+
c && (c.scrollIntoView(), c.getAttribute("tabindex") !== "-1" && c.setAttribute("tabindex", "-1"), c.focus());
|
|
357
362
|
}
|
|
358
|
-
},
|
|
359
|
-
|
|
360
|
-
},
|
|
361
|
-
if (
|
|
362
|
-
const
|
|
363
|
+
}, q = () => {
|
|
364
|
+
M(!p);
|
|
365
|
+
}, Z = (r) => {
|
|
366
|
+
if (g(u.filter((h) => !h.id || h.id !== r)), !r) return;
|
|
367
|
+
const c = z() ?? {
|
|
363
368
|
closed: []
|
|
364
369
|
};
|
|
365
|
-
|
|
366
|
-
|
|
370
|
+
c.closed.includes(r) || X(
|
|
371
|
+
Y,
|
|
367
372
|
JSON.stringify({
|
|
368
|
-
closed: [...
|
|
373
|
+
closed: [...c.closed, r]
|
|
369
374
|
})
|
|
370
375
|
);
|
|
371
376
|
};
|
|
372
|
-
return /* @__PURE__ */
|
|
373
|
-
/* @__PURE__ */ e(
|
|
374
|
-
/* @__PURE__ */
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
id: r,
|
|
379
|
-
content: i,
|
|
380
|
-
variant: d,
|
|
381
|
-
closable: l,
|
|
382
|
-
onClose: () => K(r)
|
|
383
|
-
},
|
|
384
|
-
N
|
|
385
|
-
)),
|
|
386
|
-
/* @__PURE__ */ e("div", { className: _(o.main, o.outer), children: /* @__PURE__ */ c(D, { as: "nav", className: o.container, children: [
|
|
387
|
-
/* @__PURE__ */ e(
|
|
388
|
-
u,
|
|
377
|
+
return /* @__PURE__ */ i(oe, { children: [
|
|
378
|
+
/* @__PURE__ */ e(Ve, {}),
|
|
379
|
+
/* @__PURE__ */ i("header", { className: o.header, children: [
|
|
380
|
+
/* @__PURE__ */ i("div", { className: o.content, ref: y, children: [
|
|
381
|
+
u?.map(({ id: r, content: c, variant: h, closable: C }, Q) => /* @__PURE__ */ e(
|
|
382
|
+
le,
|
|
389
383
|
{
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
),
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
{
|
|
402
|
-
className: o.logo,
|
|
403
|
-
href: m("https://www.highcharts.com/", a),
|
|
404
|
-
children: /* @__PURE__ */ e(O, { showText: !b && !x })
|
|
405
|
-
}
|
|
406
|
-
),
|
|
407
|
-
/* @__PURE__ */ e("ul", { className: o.links, children: A.map(({ title: r, url: i }, d) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(
|
|
408
|
-
u,
|
|
409
|
-
{
|
|
410
|
-
variant: "plain",
|
|
411
|
-
size: 300,
|
|
412
|
-
as: s,
|
|
413
|
-
href: m(i, a),
|
|
414
|
-
children: r
|
|
415
|
-
}
|
|
416
|
-
) }, d)) }),
|
|
417
|
-
/* @__PURE__ */ c("div", { className: o.buttons, children: [
|
|
418
|
-
/* @__PURE__ */ c(
|
|
419
|
-
u,
|
|
384
|
+
id: r,
|
|
385
|
+
content: c,
|
|
386
|
+
variant: h,
|
|
387
|
+
closable: C,
|
|
388
|
+
onClose: () => Z(r)
|
|
389
|
+
},
|
|
390
|
+
Q
|
|
391
|
+
)),
|
|
392
|
+
/* @__PURE__ */ e("div", { className: b(o.main, o.outer), children: /* @__PURE__ */ i(G, { as: "nav", className: o.container, children: [
|
|
393
|
+
/* @__PURE__ */ e(
|
|
394
|
+
m,
|
|
420
395
|
{
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
children:
|
|
428
|
-
/* @__PURE__ */ e("span", { className: o.gpt, children: "Highcharts GPT" }),
|
|
429
|
-
/* @__PURE__ */ e(W, {})
|
|
430
|
-
]
|
|
396
|
+
as: "a",
|
|
397
|
+
className: o.skip,
|
|
398
|
+
size: 500,
|
|
399
|
+
tabIndex: "0",
|
|
400
|
+
onClick: v,
|
|
401
|
+
onKeyPress: v,
|
|
402
|
+
children: "Skip to content"
|
|
431
403
|
}
|
|
432
404
|
),
|
|
433
|
-
/* @__PURE__ */ e(I, {}),
|
|
434
|
-
/* @__PURE__ */ e(P, {}),
|
|
435
405
|
/* @__PURE__ */ e(
|
|
436
|
-
|
|
406
|
+
s,
|
|
437
407
|
{
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
"aria-label": "Login",
|
|
442
|
-
children: /* @__PURE__ */ e(H, {})
|
|
408
|
+
className: o.logo,
|
|
409
|
+
href: d("https://www.highcharts.com/", a),
|
|
410
|
+
children: /* @__PURE__ */ e(R, { showText: !N || B && !x })
|
|
443
411
|
}
|
|
444
412
|
),
|
|
445
|
-
/* @__PURE__ */ c(
|
|
446
|
-
|
|
413
|
+
/* @__PURE__ */ e("ul", { className: o.links, children: K.map(({ title: r, url: c }, h) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(
|
|
414
|
+
m,
|
|
447
415
|
{
|
|
448
|
-
variant: "
|
|
416
|
+
variant: "plain",
|
|
417
|
+
size: 300,
|
|
449
418
|
as: s,
|
|
450
|
-
href:
|
|
451
|
-
|
|
452
|
-
a
|
|
453
|
-
),
|
|
454
|
-
children: [
|
|
455
|
-
/* @__PURE__ */ e($, {}),
|
|
456
|
-
"Get started"
|
|
457
|
-
]
|
|
458
|
-
}
|
|
459
|
-
),
|
|
460
|
-
/* @__PURE__ */ c(
|
|
461
|
-
u,
|
|
462
|
-
{
|
|
463
|
-
variant: w ? "white" : "transparent",
|
|
464
|
-
className: o.menu,
|
|
465
|
-
onClick: B,
|
|
466
|
-
children: [
|
|
467
|
-
w ? "Close" : "Menu",
|
|
468
|
-
w ? /* @__PURE__ */ e(te, {}) : /* @__PURE__ */ e(ce, {})
|
|
469
|
-
]
|
|
419
|
+
href: d(c, a),
|
|
420
|
+
children: r
|
|
470
421
|
}
|
|
471
|
-
)
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
422
|
+
) }, h)) }),
|
|
423
|
+
/* @__PURE__ */ i("div", { className: o.buttons, children: [
|
|
424
|
+
/* @__PURE__ */ i(
|
|
425
|
+
m,
|
|
426
|
+
{
|
|
427
|
+
variant: "transparent",
|
|
428
|
+
as: s,
|
|
429
|
+
href: d(
|
|
430
|
+
"https://www.highcharts.com/chat/gpt/",
|
|
431
|
+
a
|
|
432
|
+
),
|
|
433
|
+
children: [
|
|
434
|
+
/* @__PURE__ */ e("span", { className: o.gpt, children: "Highcharts GPT" }),
|
|
435
|
+
/* @__PURE__ */ e(D, {})
|
|
436
|
+
]
|
|
437
|
+
}
|
|
438
|
+
),
|
|
439
|
+
/* @__PURE__ */ e(j, {}),
|
|
440
|
+
/* @__PURE__ */ e(F, {}),
|
|
441
|
+
/* @__PURE__ */ i(
|
|
442
|
+
m,
|
|
443
|
+
{
|
|
444
|
+
className: o.cta,
|
|
445
|
+
variant: "brand",
|
|
446
|
+
as: s,
|
|
447
|
+
href: d("https://shop.highcharts.com/", a),
|
|
448
|
+
"aria-label": "Buy Now",
|
|
449
|
+
children: [
|
|
450
|
+
/* @__PURE__ */ e($, {}),
|
|
451
|
+
"Buy Now"
|
|
452
|
+
]
|
|
453
|
+
}
|
|
454
|
+
),
|
|
455
|
+
/* @__PURE__ */ i(
|
|
456
|
+
m,
|
|
457
|
+
{
|
|
458
|
+
className: o.cta,
|
|
459
|
+
variant: "success",
|
|
460
|
+
as: s,
|
|
461
|
+
href: d(
|
|
462
|
+
"https://www.highcharts.com/download/",
|
|
463
|
+
a
|
|
464
|
+
),
|
|
465
|
+
children: [
|
|
466
|
+
/* @__PURE__ */ e(V, {}),
|
|
467
|
+
"Try for Free"
|
|
468
|
+
]
|
|
469
|
+
}
|
|
470
|
+
),
|
|
471
|
+
/* @__PURE__ */ i(
|
|
472
|
+
m,
|
|
473
|
+
{
|
|
474
|
+
variant: p ? "white" : "transparent",
|
|
475
|
+
className: o.menu,
|
|
476
|
+
onClick: q,
|
|
477
|
+
children: [
|
|
478
|
+
p ? "Close" : "Menu",
|
|
479
|
+
p ? /* @__PURE__ */ e(ce, {}) : /* @__PURE__ */ e(ue, {})
|
|
480
|
+
]
|
|
481
|
+
}
|
|
482
|
+
)
|
|
483
|
+
] })
|
|
484
|
+
] }) }),
|
|
485
|
+
!!t?.length && /* @__PURE__ */ e(
|
|
486
|
+
Fe,
|
|
487
|
+
{
|
|
488
|
+
items: t,
|
|
489
|
+
link: s,
|
|
490
|
+
host: a,
|
|
491
|
+
pathname: S
|
|
492
|
+
}
|
|
493
|
+
),
|
|
494
|
+
n
|
|
495
|
+
] }),
|
|
496
|
+
B && /* @__PURE__ */ i(ne, { children: [
|
|
485
497
|
/* @__PURE__ */ e(
|
|
486
498
|
"div",
|
|
487
499
|
{
|
|
488
|
-
className:
|
|
489
|
-
onClick:
|
|
500
|
+
className: b(o.mobileOverlay, { [o.open]: p }),
|
|
501
|
+
onClick: q
|
|
490
502
|
}
|
|
491
503
|
),
|
|
492
|
-
/* @__PURE__ */
|
|
504
|
+
/* @__PURE__ */ i(
|
|
493
505
|
"nav",
|
|
494
506
|
{
|
|
495
|
-
className:
|
|
496
|
-
[o.open]:
|
|
507
|
+
className: b(o.mobile, {
|
|
508
|
+
[o.open]: p
|
|
497
509
|
}),
|
|
498
510
|
children: [
|
|
499
|
-
/* @__PURE__ */
|
|
511
|
+
/* @__PURE__ */ i("div", { className: o.container, children: [
|
|
500
512
|
/* @__PURE__ */ e(
|
|
501
513
|
s,
|
|
502
514
|
{
|
|
503
515
|
className: o.logo,
|
|
504
|
-
href:
|
|
505
|
-
children: /* @__PURE__ */ e(
|
|
516
|
+
href: d("https://www.highcharts.com/", a),
|
|
517
|
+
children: /* @__PURE__ */ e(R, { showText: !x })
|
|
506
518
|
}
|
|
507
519
|
),
|
|
508
|
-
/* @__PURE__ */
|
|
509
|
-
/* @__PURE__ */
|
|
510
|
-
|
|
520
|
+
/* @__PURE__ */ i("div", { className: o.buttons, children: [
|
|
521
|
+
/* @__PURE__ */ i(
|
|
522
|
+
m,
|
|
511
523
|
{
|
|
512
524
|
variant: "transparent",
|
|
513
525
|
as: s,
|
|
514
|
-
href:
|
|
526
|
+
href: d(
|
|
515
527
|
"https://www.highcharts.com/chat/gpt/",
|
|
516
528
|
a
|
|
517
529
|
),
|
|
518
530
|
children: [
|
|
519
531
|
/* @__PURE__ */ e("span", { className: o.gpt, children: "Highcharts GPT" }),
|
|
520
|
-
/* @__PURE__ */ e(
|
|
532
|
+
/* @__PURE__ */ e(D, {})
|
|
521
533
|
]
|
|
522
534
|
}
|
|
523
535
|
),
|
|
524
|
-
/* @__PURE__ */ e(
|
|
525
|
-
/* @__PURE__ */ e(
|
|
536
|
+
/* @__PURE__ */ e(j, {}),
|
|
537
|
+
/* @__PURE__ */ e(F, {})
|
|
526
538
|
] })
|
|
527
539
|
] }),
|
|
528
|
-
/* @__PURE__ */
|
|
529
|
-
/* @__PURE__ */
|
|
530
|
-
|
|
540
|
+
/* @__PURE__ */ i("div", { className: o.buttons, children: [
|
|
541
|
+
/* @__PURE__ */ i(
|
|
542
|
+
m,
|
|
531
543
|
{
|
|
532
544
|
variant: "brand",
|
|
533
545
|
fullWidth: !0,
|
|
534
546
|
as: s,
|
|
535
|
-
href:
|
|
547
|
+
href: d("https://shop.highcharts.com/", a),
|
|
536
548
|
children: [
|
|
537
|
-
/* @__PURE__ */ e(
|
|
538
|
-
"
|
|
549
|
+
/* @__PURE__ */ e($, {}),
|
|
550
|
+
"Buy Now"
|
|
539
551
|
]
|
|
540
552
|
}
|
|
541
553
|
),
|
|
542
|
-
/* @__PURE__ */
|
|
543
|
-
|
|
554
|
+
/* @__PURE__ */ i(
|
|
555
|
+
m,
|
|
544
556
|
{
|
|
545
557
|
variant: "success",
|
|
546
558
|
fullWidth: !0,
|
|
547
559
|
as: s,
|
|
548
|
-
href:
|
|
560
|
+
href: d(
|
|
549
561
|
"https://www.highcharts.com/download/",
|
|
550
562
|
a
|
|
551
563
|
),
|
|
552
564
|
children: [
|
|
553
|
-
/* @__PURE__ */ e(
|
|
554
|
-
"
|
|
565
|
+
/* @__PURE__ */ e(V, {}),
|
|
566
|
+
"Try for Free"
|
|
555
567
|
]
|
|
556
568
|
}
|
|
557
569
|
)
|
|
558
570
|
] }),
|
|
559
|
-
/* @__PURE__ */ e("ul", { className: o.links, children:
|
|
560
|
-
|
|
571
|
+
/* @__PURE__ */ e("ul", { className: o.links, children: K.map(({ title: r, url: c, icon: h }, C) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ i(
|
|
572
|
+
m,
|
|
561
573
|
{
|
|
562
574
|
variant: "plain",
|
|
563
575
|
size: 500,
|
|
564
576
|
fullWidth: !0,
|
|
565
577
|
as: s,
|
|
566
|
-
href:
|
|
578
|
+
href: d(c, a),
|
|
567
579
|
children: [
|
|
568
|
-
|
|
580
|
+
h,
|
|
569
581
|
r
|
|
570
582
|
]
|
|
571
583
|
}
|
|
572
|
-
) },
|
|
584
|
+
) }, C)) })
|
|
573
585
|
]
|
|
574
586
|
}
|
|
575
587
|
)
|
|
@@ -578,6 +590,6 @@ function Xe({
|
|
|
578
590
|
] });
|
|
579
591
|
}
|
|
580
592
|
export {
|
|
581
|
-
|
|
582
|
-
|
|
593
|
+
it as Header,
|
|
594
|
+
Fe as SubHeader
|
|
583
595
|
};
|