highsoft-ui 1.0.76 → 1.0.77

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.
@@ -8,11 +8,12 @@ export interface SubHeaderItem {
8
8
  tag?: ReactNode;
9
9
  tagVariant?: 'success' | 'brand';
10
10
  }
11
- export declare function SubHeader({ items, link: Link, host, pathname }: {
11
+ export declare function SubHeader({ items, link: Link, host, pathname, waitForMount }: {
12
12
  items: Array<SubHeaderItem>;
13
13
  link?: ElementType;
14
14
  host?: string;
15
15
  pathname?: string;
16
+ waitForMount?: boolean;
16
17
  }): import("react/jsx-runtime").JSX.Element;
17
18
  export interface Notification {
18
19
  id?: string;
@@ -1,16 +1,16 @@
1
- import { jsx as e, jsxs as i, Fragment as A } from "react/jsx-runtime";
2
- import { useRef as J, useState as L, useEffect as T } from "react";
3
- import { a as M, J as U } from "../../utils-C7rfowvr.js";
4
- import { A as G } from "../../Announcement03-obPaH4LK.js";
1
+ import { jsx as e, jsxs as i, Fragment as J } from "react/jsx-runtime";
2
+ import { useRef as U, useState as T, useEffect as H } from "react";
3
+ import { a as Q, J as F, b as G } from "../../utils-C7rfowvr.js";
4
+ import { A as R } from "../../Announcement03-obPaH4LK.js";
5
5
  import { _ as m } from "../../extends-hS2Bh-Yp.js";
6
- import { N as R, X as $ } from "../../index-pnL-sAld.js";
7
- import { c as k } from "../../clsx-OuTLNxxd.js";
6
+ import { N as $, X as Y } from "../../index-pnL-sAld.js";
7
+ import { c as b } from "../../clsx-OuTLNxxd.js";
8
8
  import { Button as h } from "../Button/index.js";
9
- import { Container as V } from "../Container/index.js";
10
- import { ThemedLogo as H } from "../Logo/index.js";
11
- import { NewTag as F } from "../NewTag/index.js";
12
- import { PrefPanel as I } from "../PrefPanel/index.js";
13
- var Y = function(o) {
9
+ import { Container as z } from "../Container/index.js";
10
+ import { ThemedLogo as I } from "../Logo/index.js";
11
+ import { NewTag as D } from "../NewTag/index.js";
12
+ import { PrefPanel as W } from "../PrefPanel/index.js";
13
+ var K = function(o) {
14
14
  return /* @__PURE__ */ e("svg", m({
15
15
  xmlns: "http://www.w3.org/2000/svg",
16
16
  width: 24,
@@ -26,7 +26,7 @@ var Y = function(o) {
26
26
  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"
27
27
  })
28
28
  }));
29
- }, D = function(o) {
29
+ }, X = function(o) {
30
30
  return /* @__PURE__ */ e("svg", m({
31
31
  xmlns: "http://www.w3.org/2000/svg",
32
32
  width: 24,
@@ -42,7 +42,7 @@ var Y = function(o) {
42
42
  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"
43
43
  })
44
44
  }));
45
- }, K = function(o) {
45
+ }, Z = function(o) {
46
46
  return /* @__PURE__ */ e("svg", m({
47
47
  xmlns: "http://www.w3.org/2000/svg",
48
48
  width: 24,
@@ -58,7 +58,7 @@ var Y = function(o) {
58
58
  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"
59
59
  })
60
60
  }));
61
- }, X = function(o) {
61
+ }, ee = function(o) {
62
62
  return /* @__PURE__ */ e("svg", m({
63
63
  xmlns: "http://www.w3.org/2000/svg",
64
64
  width: 24,
@@ -74,7 +74,7 @@ var Y = function(o) {
74
74
  d: "M3 12h12M3 6h18M3 18h18"
75
75
  })
76
76
  }));
77
- }, Z = function(o) {
77
+ }, te = function(o) {
78
78
  return /* @__PURE__ */ e("svg", m({
79
79
  xmlns: "http://www.w3.org/2000/svg",
80
80
  width: 24,
@@ -90,7 +90,7 @@ var Y = function(o) {
90
90
  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"
91
91
  })
92
92
  }));
93
- }, ee = function(o) {
93
+ }, ne = function(o) {
94
94
  return /* @__PURE__ */ e("svg", m({
95
95
  xmlns: "http://www.w3.org/2000/svg",
96
96
  width: 24,
@@ -106,7 +106,7 @@ var Y = function(o) {
106
106
  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"
107
107
  })
108
108
  }));
109
- }, W = function(o) {
109
+ }, j = function(o) {
110
110
  return /* @__PURE__ */ e("svg", m({
111
111
  xmlns: "http://www.w3.org/2000/svg",
112
112
  width: 24,
@@ -122,7 +122,7 @@ var Y = function(o) {
122
122
  d: "m21 21-4.35-4.35M19 11c0 4.4183-3.5817 8-8 8s-8-3.5817-8-8 3.5817-8 8-8 8 3.5817 8 8"
123
123
  })
124
124
  }));
125
- }, j = function(o) {
125
+ }, P = function(o) {
126
126
  return /* @__PURE__ */ e("svg", m({
127
127
  xmlns: "http://www.w3.org/2000/svg",
128
128
  width: 24,
@@ -138,7 +138,7 @@ var Y = function(o) {
138
138
  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"
139
139
  })
140
140
  }));
141
- }, P = function(o) {
141
+ }, E = function(o) {
142
142
  return /* @__PURE__ */ e("svg", m({
143
143
  xmlns: "http://www.w3.org/2000/svg",
144
144
  width: 24,
@@ -154,7 +154,7 @@ var Y = function(o) {
154
154
  d: "m7 15 3-3-3-3m6 6h4m-9.2 6h8.4c1.6802 0 2.5202 0 3.162-.327a3 3 0 0 0 1.311-1.311C21 18.7202 21 17.8802 21 16.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.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 21"
155
155
  })
156
156
  }));
157
- }, E = function(o) {
157
+ }, O = function(o) {
158
158
  return /* @__PURE__ */ e("svg", m({
159
159
  xmlns: "http://www.w3.org/2000/svg",
160
160
  width: 24,
@@ -171,140 +171,144 @@ var Y = function(o) {
171
171
  })
172
172
  }));
173
173
  };
174
- const te = "m_QBtq_buttons", ne = "m_QBtq_container", oe = "m_QBtq_gpt", re = "m_QBtq_header", se = "m_QBtq_icon", ie = "m_QBtq_icons", ce = "m_QBtq_links", ae = "m_QBtq_logo", le = "m_QBtq_main", he = "m_QBtq_menu", de = "m_QBtq_mobile", me = "m_QBtq_mobileOverlay", ue = "m_QBtq_open", pe = "m_QBtq_outer", we = "m_QBtq_selectableIcon", ge = "m_QBtq_selected", ve = "m_QBtq_selectedIcon", fe = "m_QBtq_skip", ke = "m_QBtq_sub", _e = "m_QBtq_subContainer", Ce = "m_QBtq_subTitle", t = {
175
- buttons: te,
176
- container: ne,
177
- gpt: oe,
178
- header: re,
179
- icon: se,
180
- icons: ie,
181
- links: ce,
182
- logo: ae,
183
- main: le,
184
- menu: he,
185
- mobile: de,
186
- mobileOverlay: me,
187
- open: ue,
188
- outer: pe,
189
- selectableIcon: we,
190
- selected: ge,
191
- selectedIcon: ve,
192
- skip: fe,
193
- sub: ke,
194
- subContainer: _e,
195
- subTitle: Ce
196
- }, O = [
174
+ const oe = "m_QBtq_buttons", re = "m_QBtq_container", se = "m_QBtq_gpt", ie = "m_QBtq_header", ce = "m_QBtq_icon", ae = "m_QBtq_icons", le = "m_QBtq_links", he = "m_QBtq_logo", de = "m_QBtq_main", me = "m_QBtq_menu", ue = "m_QBtq_mobile", pe = "m_QBtq_mobileOverlay", we = "m_QBtq_open", ge = "m_QBtq_outer", ve = "m_QBtq_selectableIcon", fe = "m_QBtq_selected", ke = "m_QBtq_selectedIcon", _e = "m_QBtq_skip", be = "m_QBtq_sub", Ce = "m_QBtq_subContainer", xe = "m_QBtq_subTitle", t = {
175
+ buttons: oe,
176
+ container: re,
177
+ gpt: se,
178
+ header: ie,
179
+ icon: ce,
180
+ icons: ae,
181
+ links: le,
182
+ logo: he,
183
+ main: de,
184
+ menu: me,
185
+ mobile: ue,
186
+ mobileOverlay: pe,
187
+ open: we,
188
+ outer: ge,
189
+ selectableIcon: ve,
190
+ selected: fe,
191
+ selectedIcon: ke,
192
+ skip: _e,
193
+ sub: be,
194
+ subContainer: Ce,
195
+ subTitle: xe
196
+ }, V = [
197
197
  {
198
198
  title: "Products",
199
199
  url: "https://www.highcharts.com/products/",
200
- icon: /* @__PURE__ */ e(D, {})
200
+ icon: /* @__PURE__ */ e(X, {})
201
201
  },
202
202
  {
203
203
  title: "Demos",
204
204
  url: "https://www.highcharts.com/demo",
205
- icon: /* @__PURE__ */ e(ee, {})
205
+ icon: /* @__PURE__ */ e(ne, {})
206
206
  },
207
207
  {
208
208
  title: "Support",
209
209
  url: "https://www.highcharts.com/support/",
210
- icon: /* @__PURE__ */ e(Z, {})
210
+ icon: /* @__PURE__ */ e(te, {})
211
211
  },
212
212
  {
213
213
  title: "Resources",
214
214
  url: "https://www.highcharts.com/resources/",
215
- icon: /* @__PURE__ */ e(K, {})
215
+ icon: /* @__PURE__ */ e(Z, {})
216
216
  },
217
217
  {
218
218
  title: "Pricing",
219
219
  url: "https://shop.highcharts.com/",
220
- icon: /* @__PURE__ */ e(Y, {})
220
+ icon: /* @__PURE__ */ e(K, {})
221
221
  },
222
222
  {
223
223
  title: "Blog",
224
224
  url: "https://www.highcharts.com/blog/home/",
225
- icon: /* @__PURE__ */ e(G, {})
225
+ icon: /* @__PURE__ */ e(R, {})
226
226
  }
227
227
  ];
228
228
  function d(c, o) {
229
229
  return o ? c.replace(o, "") : c;
230
230
  }
231
- function be({
231
+ function Be({
232
232
  items: c,
233
233
  link: o = "a",
234
234
  host: p = "https://www.highcharts.com",
235
- pathname: a = typeof window < "u" ? window.location.pathname : ""
235
+ pathname: a,
236
+ waitForMount: l
236
237
  }) {
237
- return /* @__PURE__ */ e("div", { className: k(t.sub, t.outer), children: /* @__PURE__ */ e(V, { className: t.subContainer, as: "ul", children: c.map(
238
- ({ title: l, url: _, icon: g, selectedIcon: v, tag: B, tagVariant: N = "success" }, f) => {
239
- const u = typeof window < "u" && window.location.origin || "http://example.com", C = new URL(_, u), b = C.origin === u && C.pathname === a;
238
+ const w = G();
239
+ return /* @__PURE__ */ e("div", { className: b(t.sub, t.outer), children: /* @__PURE__ */ e(z, { className: t.subContainer, as: "ul", children: c.map(
240
+ ({ title: v, url: C, icon: x, selectedIcon: B, tag: M, tagVariant: f = "success" }, u) => {
241
+ const N = typeof window < "u" && window.location.origin || "http://example.com", k = new URL(C, N), _ = (!l || w) && k.origin === N && k.pathname === a;
240
242
  return /* @__PURE__ */ e("li", { children: /* @__PURE__ */ i(
241
243
  o,
242
244
  {
243
- href: d(_, p),
244
- className: k({
245
- [t.selectableIcon]: v,
246
- [t.selected]: b
245
+ href: d(C, p),
246
+ className: b({
247
+ [t.selectableIcon]: B,
248
+ [t.selected]: _
247
249
  }),
248
250
  children: [
249
251
  /* @__PURE__ */ i("span", { className: t.icons, children: [
250
- /* @__PURE__ */ e("span", { className: t.selectedIcon, children: v }),
251
- /* @__PURE__ */ e("span", { className: t.icon, children: g })
252
+ /* @__PURE__ */ e("span", { className: t.selectedIcon, children: B }),
253
+ /* @__PURE__ */ e("span", { className: t.icon, children: x })
252
254
  ] }),
253
255
  /* @__PURE__ */ i("span", { className: t.subTitle, children: [
254
- l,
255
- B && /* @__PURE__ */ e(F, { variant: N, icon: !1 })
256
+ v,
257
+ M && /* @__PURE__ */ e(D, { variant: f, icon: !1 })
256
258
  ] })
257
259
  ]
258
260
  }
259
- ) }, f);
261
+ ) }, u);
260
262
  }
261
263
  ) }) });
262
264
  }
263
- function We({
265
+ function Pe({
264
266
  subItems: c,
265
267
  children: o,
266
268
  notifications: p = [],
267
269
  // TODO: Fetch these from the internets
268
270
  link: a = "a",
269
271
  host: l = "https://www.highcharts.com",
270
- pathname: _ = typeof window < "u" ? window.location.pathname : "",
271
- topCssVariable: g
272
+ pathname: w,
273
+ topCssVariable: v
272
274
  }) {
273
- const v = M("(max-width: 374px)"), B = M("(max-width: 849px)"), N = M("(min-width: 850px) and (max-width: 999px)"), f = J(null), [u, C] = L(!1), [b, S] = L([]);
274
- T(() => {
275
+ const C = !!w;
276
+ w = w || (typeof window < "u" ? window.location.pathname : "");
277
+ const x = Q("(max-width: 374px)"), B = Q("(max-width: 849px)"), M = Q("(min-width: 850px) and (max-width: 999px)"), f = U(null), [u, N] = T(!1), [k, _] = T([]);
278
+ H(() => {
275
279
  let r = window.scrollY, n = -82, s = n;
276
- g && document.documentElement.style.setProperty("--header-top", `${n}px`);
277
- const w = () => {
278
- const x = window.scrollY, q = x - r;
279
- n -= q, n < -82 ? n = -82 : n > 0 && (n = 0), f.current && n !== s && (f.current.style.top = `${n}px`, g && document.documentElement.style.setProperty(
280
+ v && document.documentElement.style.setProperty("--header-top", `${n}px`);
281
+ const g = () => {
282
+ const S = window.scrollY, q = S - r;
283
+ n -= q, n < -82 ? n = -82 : n > 0 && (n = 0), f.current && n !== s && (f.current.style.top = `${n}px`, v && document.documentElement.style.setProperty(
280
284
  "--header-top",
281
285
  `${n}px`
282
- )), r = x, s = n;
286
+ )), r = S, s = n;
283
287
  };
284
- return window.addEventListener("scroll", w), () => window.removeEventListener("scroll", w);
285
- }, [g]), T(() => {
288
+ return window.addEventListener("scroll", g), () => window.removeEventListener("scroll", g);
289
+ }, [v]), H(() => {
286
290
  if (p.length) {
287
291
  const r = localStorage.getItem("notifications");
288
292
  if (r) {
289
293
  const n = JSON.parse(r);
290
- S(
294
+ _(
291
295
  p.filter(
292
296
  (s) => !s.id || !n.closed.includes(s.id)
293
297
  )
294
298
  );
295
299
  } else
296
- S(p);
300
+ _(p);
297
301
  }
298
302
  }, [p]);
299
- const Q = (r) => {
303
+ const L = (r) => {
300
304
  if (r.preventDefault(), !(r.nativeEvent instanceof KeyboardEvent) || r.nativeEvent.code === "Enter" || r.nativeEvent.code === "Space") {
301
305
  const n = document.querySelector("main");
302
306
  n && (n.scrollIntoView(), n.getAttribute("tabindex") !== "-1" && n.setAttribute("tabindex", "-1"), n.focus());
303
307
  }
304
308
  }, y = () => {
305
- C(!u);
306
- }, z = (r) => {
307
- S(b.filter((s) => !s.id || s.id !== r));
309
+ N(!u);
310
+ }, A = (r) => {
311
+ _(k.filter((s) => !s.id || s.id !== r));
308
312
  const n = localStorage.getItem("notifications");
309
313
  if (n) {
310
314
  const s = JSON.parse(n);
@@ -317,21 +321,21 @@ function We({
317
321
  })
318
322
  );
319
323
  };
320
- return /* @__PURE__ */ e(U, { children: /* @__PURE__ */ i("header", { className: t.header, ref: f, children: [
321
- b?.map(
322
- ({ id: r, title: n, description: s, variant: w, closable: x }, q) => /* @__PURE__ */ e(
323
- R,
324
+ return /* @__PURE__ */ e(F, { children: /* @__PURE__ */ i("header", { className: t.header, ref: f, children: [
325
+ k?.map(
326
+ ({ id: r, title: n, description: s, variant: g, closable: S }, q) => /* @__PURE__ */ e(
327
+ $,
324
328
  {
325
329
  description: s,
326
- variant: w,
327
- closable: x,
328
- onClose: () => z(r),
330
+ variant: g,
331
+ closable: S,
332
+ onClose: () => A(r),
329
333
  children: n
330
334
  },
331
335
  q
332
336
  )
333
337
  ),
334
- /* @__PURE__ */ e("div", { className: k(t.main, t.outer), children: /* @__PURE__ */ i(V, { as: "nav", className: t.container, children: [
338
+ /* @__PURE__ */ e("div", { className: b(t.main, t.outer), children: /* @__PURE__ */ i(z, { as: "nav", className: t.container, children: [
335
339
  /* @__PURE__ */ e(
336
340
  h,
337
341
  {
@@ -339,8 +343,8 @@ function We({
339
343
  className: t.skip,
340
344
  size: 500,
341
345
  tabIndex: "0",
342
- onClick: Q,
343
- onKeyPress: Q,
346
+ onClick: L,
347
+ onKeyPress: L,
344
348
  children: "Skip to content"
345
349
  }
346
350
  ),
@@ -349,10 +353,10 @@ function We({
349
353
  {
350
354
  className: t.logo,
351
355
  href: d("https://www.highcharts.com/", l),
352
- children: /* @__PURE__ */ e(H, { showText: !N && !v })
356
+ children: /* @__PURE__ */ e(I, { showText: !M && !x })
353
357
  }
354
358
  ),
355
- /* @__PURE__ */ e("ul", { className: t.links, children: O.map(({ title: r, url: n }, s) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(
359
+ /* @__PURE__ */ e("ul", { className: t.links, children: V.map(({ title: r, url: n }, s) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(
356
360
  h,
357
361
  {
358
362
  variant: "plain",
@@ -374,12 +378,12 @@ function We({
374
378
  ),
375
379
  children: [
376
380
  /* @__PURE__ */ e("span", { className: t.gpt, children: "Highcharts GPT" }),
377
- /* @__PURE__ */ e(j, {})
381
+ /* @__PURE__ */ e(P, {})
378
382
  ]
379
383
  }
380
384
  ),
381
- /* @__PURE__ */ e(h, { variant: "transparent", "aria-label": "Search", children: /* @__PURE__ */ e(W, {}) }),
382
- /* @__PURE__ */ e(I, {}),
385
+ /* @__PURE__ */ e(h, { variant: "transparent", "aria-label": "Search", children: /* @__PURE__ */ e(j, {}) }),
386
+ /* @__PURE__ */ e(W, {}),
383
387
  /* @__PURE__ */ e(
384
388
  h,
385
389
  {
@@ -387,7 +391,7 @@ function We({
387
391
  as: a,
388
392
  href: d("https://shop.highcharts.com/account", l),
389
393
  "aria-label": "Login",
390
- children: /* @__PURE__ */ e(E, {})
394
+ children: /* @__PURE__ */ e(O, {})
391
395
  }
392
396
  ),
393
397
  /* @__PURE__ */ i(
@@ -400,7 +404,7 @@ function We({
400
404
  l
401
405
  ),
402
406
  children: [
403
- /* @__PURE__ */ e(P, {}),
407
+ /* @__PURE__ */ e(E, {}),
404
408
  "Get started"
405
409
  ]
406
410
  }
@@ -413,34 +417,35 @@ function We({
413
417
  onClick: y,
414
418
  children: [
415
419
  u ? "Close" : "Menu",
416
- u ? /* @__PURE__ */ e($, {}) : /* @__PURE__ */ e(X, {})
420
+ u ? /* @__PURE__ */ e(Y, {}) : /* @__PURE__ */ e(ee, {})
417
421
  ]
418
422
  }
419
423
  )
420
424
  ] })
421
425
  ] }) }),
422
426
  !!c?.length && /* @__PURE__ */ e(
423
- be,
427
+ Be,
424
428
  {
425
429
  items: c,
426
430
  link: a,
427
431
  host: l,
428
- pathname: _
432
+ pathname: w,
433
+ waitForMount: !C
429
434
  }
430
435
  ),
431
436
  o,
432
- B && /* @__PURE__ */ i(A, { children: [
437
+ B && /* @__PURE__ */ i(J, { children: [
433
438
  /* @__PURE__ */ e(
434
439
  "div",
435
440
  {
436
- className: k(t.mobileOverlay, { [t.open]: u }),
441
+ className: b(t.mobileOverlay, { [t.open]: u }),
437
442
  onClick: y
438
443
  }
439
444
  ),
440
445
  /* @__PURE__ */ i(
441
446
  "nav",
442
447
  {
443
- className: k(t.mobile, {
448
+ className: b(t.mobile, {
444
449
  [t.open]: u
445
450
  }),
446
451
  children: [
@@ -450,7 +455,7 @@ function We({
450
455
  {
451
456
  className: t.logo,
452
457
  href: d("https://www.highcharts.com/", l),
453
- children: /* @__PURE__ */ e(H, { showText: !v })
458
+ children: /* @__PURE__ */ e(I, { showText: !x })
454
459
  }
455
460
  ),
456
461
  /* @__PURE__ */ i("div", { className: t.buttons, children: [
@@ -465,12 +470,12 @@ function We({
465
470
  ),
466
471
  children: [
467
472
  /* @__PURE__ */ e("span", { className: t.gpt, children: "Highcharts GPT" }),
468
- /* @__PURE__ */ e(j, {})
473
+ /* @__PURE__ */ e(P, {})
469
474
  ]
470
475
  }
471
476
  ),
472
- /* @__PURE__ */ e(h, { variant: "transparent", "aria-label": "Search", children: /* @__PURE__ */ e(W, {}) }),
473
- /* @__PURE__ */ e(I, {})
477
+ /* @__PURE__ */ e(h, { variant: "transparent", "aria-label": "Search", children: /* @__PURE__ */ e(j, {}) }),
478
+ /* @__PURE__ */ e(W, {})
474
479
  ] })
475
480
  ] }),
476
481
  /* @__PURE__ */ i("div", { className: t.buttons, children: [
@@ -485,7 +490,7 @@ function We({
485
490
  l
486
491
  ),
487
492
  children: [
488
- /* @__PURE__ */ e(E, {}),
493
+ /* @__PURE__ */ e(O, {}),
489
494
  "Login"
490
495
  ]
491
496
  }
@@ -501,13 +506,13 @@ function We({
501
506
  l
502
507
  ),
503
508
  children: [
504
- /* @__PURE__ */ e(P, {}),
509
+ /* @__PURE__ */ e(E, {}),
505
510
  "Get started"
506
511
  ]
507
512
  }
508
513
  )
509
514
  ] }),
510
- /* @__PURE__ */ e("ul", { className: t.links, children: O.map(({ title: r, url: n, icon: s }, w) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ i(
515
+ /* @__PURE__ */ e("ul", { className: t.links, children: V.map(({ title: r, url: n, icon: s }, g) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ i(
511
516
  h,
512
517
  {
513
518
  variant: "plain",
@@ -520,7 +525,7 @@ function We({
520
525
  r
521
526
  ]
522
527
  }
523
- ) }, w)) })
528
+ ) }, g)) })
524
529
  ]
525
530
  }
526
531
  )
@@ -528,6 +533,6 @@ function We({
528
533
  ] }) });
529
534
  }
530
535
  export {
531
- We as Header,
532
- be as SubHeader
536
+ Pe as Header,
537
+ Be as SubHeader
533
538
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "highsoft-ui",
3
- "version": "1.0.76",
3
+ "version": "1.0.77",
4
4
  "description": "Highsoft UI",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",