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