highsoft-ui 1.0.58 → 1.0.60

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.
@@ -1,17 +1,33 @@
1
- import { jsx as r, jsxs as a, Fragment as O } from "react/jsx-runtime";
1
+ import { jsx as r, jsxs as s, Fragment as j } from "react/jsx-runtime";
2
2
  import * as l from "react";
3
- import y, { useRef as gt, useState as B, useEffect as wt } from "react";
4
- import { A as mt } from "../../Announcement03-obPaH4LK.js";
5
- import { P as D, d as ft, c as vt, e as I, a as L, f as x, g as T, h as bt, R as yt, j as _t, i as Ct, k as Dt, F as Pt, D as Nt, l as Ot, C as xt } from "../../index-CM3YgRXK.js";
6
- import { _ as j } from "../../extends-hS2Bh-Yp.js";
7
- import { c as zt } from "../../clsx-OuTLNxxd.js";
8
- import { Button as $ } from "../Button/index.js";
9
- import { Container as St } from "../Container/index.js";
10
- import { ThemedLogo as Mt } from "../Logo/index.js";
11
- import { NewTag as Rt } from "../NewTag/index.js";
12
- import { a as H, c as Et } from "../../utils-CzQFvGG2.js";
13
- var At = function(e) {
14
- return /* @__PURE__ */ r("svg", j({
3
+ import _, { useRef as jt, useState as O, useEffect as Dt } from "react";
4
+ import { A as Nt } from "../../Announcement03-obPaH4LK.js";
5
+ import { P as D, d as Pt, c as Ot, e as k, a as z, f as S, g as F, h as St, R as xt, j as Mt, i as At, k as Et, F as Rt, D as It, l as Lt, C as kt } from "../../index-CM3YgRXK.js";
6
+ import { _ as R } from "../../extends-hS2Bh-Yp.js";
7
+ import { c as T } from "../../clsx-OuTLNxxd.js";
8
+ import { Button as U } from "../Button/index.js";
9
+ import { Container as Tt } from "../Container/index.js";
10
+ import { ThemedLogo as zt } from "../Logo/index.js";
11
+ import { NewTag as Ft } from "../NewTag/index.js";
12
+ import { a as J, c as Wt } from "../../utils-CzQFvGG2.js";
13
+ var Bt = function(e) {
14
+ return /* @__PURE__ */ r("svg", R({
15
+ xmlns: "http://www.w3.org/2000/svg",
16
+ width: 24,
17
+ height: 24,
18
+ fill: "none",
19
+ viewBox: "0 0 24 24"
20
+ }, e, {
21
+ children: /* @__PURE__ */ r("path", {
22
+ stroke: "currentColor",
23
+ strokeLinecap: "round",
24
+ strokeLinejoin: "round",
25
+ strokeWidth: 2,
26
+ d: "m7.5 12 3 3 6-6m5.5 3c0 5.5228-4.4772 10-10 10S2 17.5228 2 12 6.4772 2 12 2s10 4.4772 10 10"
27
+ })
28
+ }));
29
+ }, Ht = function(e) {
30
+ return /* @__PURE__ */ r("svg", R({
15
31
  xmlns: "http://www.w3.org/2000/svg",
16
32
  width: 24,
17
33
  height: 24,
@@ -26,8 +42,8 @@ var At = function(e) {
26
42
  d: "M5 15c-.9319 0-1.3978 0-1.7654-.1522a2 2 0 0 1-1.0824-1.0824C2 13.3978 2 12.9319 2 12V5.2c0-1.1201 0-1.6802.218-2.108a2 2 0 0 1 .874-.874C3.5198 2 4.08 2 5.2 2H12c.9319 0 1.3978 0 1.7654.1522.49.203.8794.5924 1.0824 1.0824C15 3.6022 15 4.0681 15 5m-2.8 17h6.6c1.1201 0 1.6802 0 2.108-.218a2 2 0 0 0 .874-.874C22 20.4802 22 19.9201 22 18.8v-6.6c0-1.1201 0-1.6802-.218-2.108a2 2 0 0 0-.874-.874C20.4802 9 19.9201 9 18.8 9h-6.6c-1.1201 0-1.6802 0-2.108.218a2 2 0 0 0-.874.874C9 10.5198 9 11.0799 9 12.2v6.6c0 1.1201 0 1.6802.218 2.108.1917.3763.4977.6823.874.874.4278.218.9879.218 2.108.218"
27
43
  })
28
44
  }));
29
- }, It = function(e) {
30
- return /* @__PURE__ */ r("svg", j({
45
+ }, Vt = function(e) {
46
+ return /* @__PURE__ */ r("svg", R({
31
47
  xmlns: "http://www.w3.org/2000/svg",
32
48
  width: 24,
33
49
  height: 24,
@@ -42,8 +58,8 @@ var At = function(e) {
42
58
  d: "m10.4995 13.5001 10.5-10.5M10.6271 13.828l2.6281 6.758c.2315.5954.3473.893.5141.9799a.5.5 0 0 0 .4615.0003c.1669-.0867.2831-.3842.5153-.9793l6.5903-16.8877c.2097-.5372.3145-.8058.2571-.9775a.5.5 0 0 0-.3158-.3158c-.1716-.0573-.4402.0475-.9774.2571L3.4126 9.2536c-.5951.2322-.8926.3483-.9793.5152a.5.5 0 0 0 .0002.4616c.087.1668.3846.2825.98.5141l6.758 2.6281c.1208.047.1812.0705.2321.1068a.5.5 0 0 1 .1167.1167c.0363.0508.0598.1113.1068.2321"
43
59
  })
44
60
  }));
45
- }, Lt = function(e) {
46
- return /* @__PURE__ */ r("svg", j({
61
+ }, Gt = function(e) {
62
+ return /* @__PURE__ */ r("svg", R({
47
63
  xmlns: "http://www.w3.org/2000/svg",
48
64
  width: 24,
49
65
  height: 24,
@@ -58,7 +74,7 @@ var At = function(e) {
58
74
  d: "m6.5 13 .7845 1.5689c.2654.531.3982.7965.5755 1.0265a3 3 0 0 0 .5446.5446c.23.1773.4955.3101 1.0265.5755L11 17.5l-1.569.7845c-.5309.2654-.7964.3982-1.0264.5755a3 3 0 0 0-.5446.5446c-.1773.23-.31.4955-.5755 1.0265L6.5 22l-.7845-1.5689c-.2654-.531-.3982-.7965-.5755-1.0265a3 3 0 0 0-.5446-.5446c-.23-.1773-.4955-.3101-1.0265-.5755L2 17.5l1.569-.7845c.5309-.2654.7964-.3982 1.0264-.5755a3 3 0 0 0 .5446-.5446c.1773-.23.31-.4955.5755-1.0265zM15 2l1.1786 3.0644c.282.7333.423 1.0999.6423 1.4082.1944.2733.4331.5122.7065.7065.3083.2193.675.3603 1.4082.6423L22 9l-3.0644 1.1786c-.7332.282-1.0999.423-1.4082.6423a3 3 0 0 0-.7065.7065c-.2193.3083-.3603.675-.6423 1.4082L15 16l-1.1786-3.0644c-.282-.7332-.423-1.0999-.6423-1.4082a3 3 0 0 0-.7065-.7065c-.3083-.2193-.675-.3603-1.4082-.6423L8 9l3.0644-1.1786c.7332-.282 1.0999-.423 1.4082-.6423a3 3 0 0 0 .7065-.7065c.2193-.3083.3603-.675.6423-1.4082z"
59
75
  })
60
76
  }));
61
- }, Tt = Object.freeze({
77
+ }, $t = Object.freeze({
62
78
  // See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
63
79
  position: "absolute",
64
80
  border: 0,
@@ -70,225 +86,225 @@ var At = function(e) {
70
86
  clip: "rect(0, 0, 0, 0)",
71
87
  whiteSpace: "nowrap",
72
88
  wordWrap: "normal"
73
- }), jt = "VisuallyHidden", J = l.forwardRef(
89
+ }), Jt = "VisuallyHidden", K = l.forwardRef(
74
90
  (t, e) => /* @__PURE__ */ r(
75
91
  D.span,
76
92
  {
77
93
  ...t,
78
94
  ref: e,
79
- style: { ...Tt, ...t.style }
95
+ style: { ...$t, ...t.style }
80
96
  }
81
97
  )
82
98
  );
83
- J.displayName = jt;
84
- var kt = J, A = "Dialog", [Y, er] = vt(A), [Ft, g] = Y(A), q = (t) => {
99
+ K.displayName = Jt;
100
+ var Yt = K, I = "Dialog", [X, pr] = Ot(I), [qt, m] = X(I), Z = (t) => {
85
101
  const {
86
102
  __scopeDialog: e,
87
103
  children: o,
88
- open: i,
89
- defaultOpen: s,
104
+ open: a,
105
+ defaultOpen: i,
90
106
  onOpenChange: n,
91
107
  modal: d = !0
92
- } = t, h = l.useRef(null), u = l.useRef(null), [P, C] = ft({
93
- prop: i,
94
- defaultProp: s ?? !1,
108
+ } = t, h = l.useRef(null), u = l.useRef(null), [C, N] = Pt({
109
+ prop: a,
110
+ defaultProp: i ?? !1,
95
111
  onChange: n,
96
- caller: A
112
+ caller: I
97
113
  });
98
114
  return /* @__PURE__ */ r(
99
- Ft,
115
+ qt,
100
116
  {
101
117
  scope: e,
102
118
  triggerRef: h,
103
119
  contentRef: u,
104
- contentId: I(),
105
- titleId: I(),
106
- descriptionId: I(),
107
- open: P,
108
- onOpenChange: C,
109
- onOpenToggle: l.useCallback(() => C((z) => !z), [C]),
120
+ contentId: k(),
121
+ titleId: k(),
122
+ descriptionId: k(),
123
+ open: C,
124
+ onOpenChange: N,
125
+ onOpenToggle: l.useCallback(() => N((L) => !L), [N]),
110
126
  modal: d,
111
127
  children: o
112
128
  }
113
129
  );
114
130
  };
115
- q.displayName = A;
116
- var U = "DialogTrigger", K = l.forwardRef(
131
+ Z.displayName = I;
132
+ var Q = "DialogTrigger", tt = l.forwardRef(
117
133
  (t, e) => {
118
- const { __scopeDialog: o, ...i } = t, s = g(U, o), n = L(e, s.triggerRef);
134
+ const { __scopeDialog: o, ...a } = t, i = m(Q, o), n = z(e, i.triggerRef);
119
135
  return /* @__PURE__ */ r(
120
136
  D.button,
121
137
  {
122
138
  type: "button",
123
139
  "aria-haspopup": "dialog",
124
- "aria-expanded": s.open,
125
- "aria-controls": s.contentId,
126
- "data-state": W(s.open),
127
- ...i,
140
+ "aria-expanded": i.open,
141
+ "aria-controls": i.contentId,
142
+ "data-state": H(i.open),
143
+ ...a,
128
144
  ref: n,
129
- onClick: x(t.onClick, s.onOpenToggle)
145
+ onClick: S(t.onClick, i.onOpenToggle)
130
146
  }
131
147
  );
132
148
  }
133
149
  );
134
- K.displayName = U;
135
- var k = "DialogPortal", [Wt, X] = Y(k, {
150
+ tt.displayName = Q;
151
+ var W = "DialogPortal", [Ut, et] = X(W, {
136
152
  forceMount: void 0
137
- }), Z = (t) => {
138
- const { __scopeDialog: e, forceMount: o, children: i, container: s } = t, n = g(k, e);
139
- return /* @__PURE__ */ r(Wt, { scope: e, forceMount: o, children: l.Children.map(i, (d) => /* @__PURE__ */ r(T, { present: o || n.open, children: /* @__PURE__ */ r(bt, { asChild: !0, container: s, children: d }) })) });
153
+ }), rt = (t) => {
154
+ const { __scopeDialog: e, forceMount: o, children: a, container: i } = t, n = m(W, e);
155
+ return /* @__PURE__ */ r(Ut, { scope: e, forceMount: o, children: l.Children.map(a, (d) => /* @__PURE__ */ r(F, { present: o || n.open, children: /* @__PURE__ */ r(St, { asChild: !0, container: i, children: d }) })) });
140
156
  };
141
- Z.displayName = k;
142
- var M = "DialogOverlay", Q = l.forwardRef(
157
+ rt.displayName = W;
158
+ var M = "DialogOverlay", ot = l.forwardRef(
143
159
  (t, e) => {
144
- const o = X(M, t.__scopeDialog), { forceMount: i = o.forceMount, ...s } = t, n = g(M, t.__scopeDialog);
145
- return n.modal ? /* @__PURE__ */ r(T, { present: i || n.open, children: /* @__PURE__ */ r(Ht, { ...s, ref: e }) }) : null;
160
+ const o = et(M, t.__scopeDialog), { forceMount: a = o.forceMount, ...i } = t, n = m(M, t.__scopeDialog);
161
+ return n.modal ? /* @__PURE__ */ r(F, { present: a || n.open, children: /* @__PURE__ */ r(Xt, { ...i, ref: e }) }) : null;
146
162
  }
147
163
  );
148
- Q.displayName = M;
149
- var Bt = _t("DialogOverlay.RemoveScroll"), Ht = l.forwardRef(
164
+ ot.displayName = M;
165
+ var Kt = Mt("DialogOverlay.RemoveScroll"), Xt = l.forwardRef(
150
166
  (t, e) => {
151
- const { __scopeDialog: o, ...i } = t, s = g(M, o);
167
+ const { __scopeDialog: o, ...a } = t, i = m(M, o);
152
168
  return (
153
169
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
154
170
  // ie. when `Overlay` and `Content` are siblings
155
- /* @__PURE__ */ r(yt, { as: Bt, allowPinchZoom: !0, shards: [s.contentRef], children: /* @__PURE__ */ r(
171
+ /* @__PURE__ */ r(xt, { as: Kt, allowPinchZoom: !0, shards: [i.contentRef], children: /* @__PURE__ */ r(
156
172
  D.div,
157
173
  {
158
- "data-state": W(s.open),
159
- ...i,
174
+ "data-state": H(i.open),
175
+ ...a,
160
176
  ref: e,
161
- style: { pointerEvents: "auto", ...i.style }
177
+ style: { pointerEvents: "auto", ...a.style }
162
178
  }
163
179
  ) })
164
180
  );
165
181
  }
166
- ), _ = "DialogContent", tt = l.forwardRef(
182
+ ), y = "DialogContent", at = l.forwardRef(
167
183
  (t, e) => {
168
- const o = X(_, t.__scopeDialog), { forceMount: i = o.forceMount, ...s } = t, n = g(_, t.__scopeDialog);
169
- return /* @__PURE__ */ r(T, { present: i || n.open, children: n.modal ? /* @__PURE__ */ r(Vt, { ...s, ref: e }) : /* @__PURE__ */ r(Gt, { ...s, ref: e }) });
184
+ const o = et(y, t.__scopeDialog), { forceMount: a = o.forceMount, ...i } = t, n = m(y, t.__scopeDialog);
185
+ return /* @__PURE__ */ r(F, { present: a || n.open, children: n.modal ? /* @__PURE__ */ r(Zt, { ...i, ref: e }) : /* @__PURE__ */ r(Qt, { ...i, ref: e }) });
170
186
  }
171
187
  );
172
- tt.displayName = _;
173
- var Vt = l.forwardRef(
188
+ at.displayName = y;
189
+ var Zt = l.forwardRef(
174
190
  (t, e) => {
175
- const o = g(_, t.__scopeDialog), i = l.useRef(null), s = L(e, o.contentRef, i);
191
+ const o = m(y, t.__scopeDialog), a = l.useRef(null), i = z(e, o.contentRef, a);
176
192
  return l.useEffect(() => {
177
- const n = i.current;
178
- if (n) return Ct(n);
193
+ const n = a.current;
194
+ if (n) return At(n);
179
195
  }, []), /* @__PURE__ */ r(
180
- et,
196
+ nt,
181
197
  {
182
198
  ...t,
183
- ref: s,
199
+ ref: i,
184
200
  trapFocus: o.open,
185
201
  disableOutsidePointerEvents: !0,
186
- onCloseAutoFocus: x(t.onCloseAutoFocus, (n) => {
202
+ onCloseAutoFocus: S(t.onCloseAutoFocus, (n) => {
187
203
  n.preventDefault(), o.triggerRef.current?.focus();
188
204
  }),
189
- onPointerDownOutside: x(t.onPointerDownOutside, (n) => {
205
+ onPointerDownOutside: S(t.onPointerDownOutside, (n) => {
190
206
  const d = n.detail.originalEvent, h = d.button === 0 && d.ctrlKey === !0;
191
207
  (d.button === 2 || h) && n.preventDefault();
192
208
  }),
193
- onFocusOutside: x(
209
+ onFocusOutside: S(
194
210
  t.onFocusOutside,
195
211
  (n) => n.preventDefault()
196
212
  )
197
213
  }
198
214
  );
199
215
  }
200
- ), Gt = l.forwardRef(
216
+ ), Qt = l.forwardRef(
201
217
  (t, e) => {
202
- const o = g(_, t.__scopeDialog), i = l.useRef(!1), s = l.useRef(!1);
218
+ const o = m(y, t.__scopeDialog), a = l.useRef(!1), i = l.useRef(!1);
203
219
  return /* @__PURE__ */ r(
204
- et,
220
+ nt,
205
221
  {
206
222
  ...t,
207
223
  ref: e,
208
224
  trapFocus: !1,
209
225
  disableOutsidePointerEvents: !1,
210
226
  onCloseAutoFocus: (n) => {
211
- t.onCloseAutoFocus?.(n), n.defaultPrevented || (i.current || o.triggerRef.current?.focus(), n.preventDefault()), i.current = !1, s.current = !1;
227
+ t.onCloseAutoFocus?.(n), n.defaultPrevented || (a.current || o.triggerRef.current?.focus(), n.preventDefault()), a.current = !1, i.current = !1;
212
228
  },
213
229
  onInteractOutside: (n) => {
214
- t.onInteractOutside?.(n), n.defaultPrevented || (i.current = !0, n.detail.originalEvent.type === "pointerdown" && (s.current = !0));
230
+ t.onInteractOutside?.(n), n.defaultPrevented || (a.current = !0, n.detail.originalEvent.type === "pointerdown" && (i.current = !0));
215
231
  const d = n.target;
216
- o.triggerRef.current?.contains(d) && n.preventDefault(), n.detail.originalEvent.type === "focusin" && s.current && n.preventDefault();
232
+ o.triggerRef.current?.contains(d) && n.preventDefault(), n.detail.originalEvent.type === "focusin" && i.current && n.preventDefault();
217
233
  }
218
234
  }
219
235
  );
220
236
  }
221
- ), et = l.forwardRef(
237
+ ), nt = l.forwardRef(
222
238
  (t, e) => {
223
- const { __scopeDialog: o, trapFocus: i, onOpenAutoFocus: s, onCloseAutoFocus: n, ...d } = t, h = g(_, o), u = l.useRef(null), P = L(e, u);
224
- return Dt(), /* @__PURE__ */ a(O, { children: [
239
+ const { __scopeDialog: o, trapFocus: a, onOpenAutoFocus: i, onCloseAutoFocus: n, ...d } = t, h = m(y, o), u = l.useRef(null), C = z(e, u);
240
+ return Et(), /* @__PURE__ */ s(j, { children: [
225
241
  /* @__PURE__ */ r(
226
- Pt,
242
+ Rt,
227
243
  {
228
244
  asChild: !0,
229
245
  loop: !0,
230
- trapped: i,
231
- onMountAutoFocus: s,
246
+ trapped: a,
247
+ onMountAutoFocus: i,
232
248
  onUnmountAutoFocus: n,
233
249
  children: /* @__PURE__ */ r(
234
- Nt,
250
+ It,
235
251
  {
236
252
  role: "dialog",
237
253
  id: h.contentId,
238
254
  "aria-describedby": h.descriptionId,
239
255
  "aria-labelledby": h.titleId,
240
- "data-state": W(h.open),
256
+ "data-state": H(h.open),
241
257
  ...d,
242
- ref: P,
258
+ ref: C,
243
259
  onDismiss: () => h.onOpenChange(!1)
244
260
  }
245
261
  )
246
262
  }
247
263
  ),
248
- /* @__PURE__ */ a(O, { children: [
249
- /* @__PURE__ */ r(Yt, { titleId: h.titleId }),
250
- /* @__PURE__ */ r(Ut, { contentRef: u, descriptionId: h.descriptionId })
264
+ /* @__PURE__ */ s(j, { children: [
265
+ /* @__PURE__ */ r(re, { titleId: h.titleId }),
266
+ /* @__PURE__ */ r(ae, { contentRef: u, descriptionId: h.descriptionId })
251
267
  ] })
252
268
  ] });
253
269
  }
254
- ), F = "DialogTitle", rt = l.forwardRef(
270
+ ), B = "DialogTitle", it = l.forwardRef(
255
271
  (t, e) => {
256
- const { __scopeDialog: o, ...i } = t, s = g(F, o);
257
- return /* @__PURE__ */ r(D.h2, { id: s.titleId, ...i, ref: e });
272
+ const { __scopeDialog: o, ...a } = t, i = m(B, o);
273
+ return /* @__PURE__ */ r(D.h2, { id: i.titleId, ...a, ref: e });
258
274
  }
259
275
  );
260
- rt.displayName = F;
261
- var ot = "DialogDescription", $t = l.forwardRef(
276
+ it.displayName = B;
277
+ var st = "DialogDescription", te = l.forwardRef(
262
278
  (t, e) => {
263
- const { __scopeDialog: o, ...i } = t, s = g(ot, o);
264
- return /* @__PURE__ */ r(D.p, { id: s.descriptionId, ...i, ref: e });
279
+ const { __scopeDialog: o, ...a } = t, i = m(st, o);
280
+ return /* @__PURE__ */ r(D.p, { id: i.descriptionId, ...a, ref: e });
265
281
  }
266
282
  );
267
- $t.displayName = ot;
268
- var it = "DialogClose", Jt = l.forwardRef(
283
+ te.displayName = st;
284
+ var ct = "DialogClose", ee = l.forwardRef(
269
285
  (t, e) => {
270
- const { __scopeDialog: o, ...i } = t, s = g(it, o);
286
+ const { __scopeDialog: o, ...a } = t, i = m(ct, o);
271
287
  return /* @__PURE__ */ r(
272
288
  D.button,
273
289
  {
274
290
  type: "button",
275
- ...i,
291
+ ...a,
276
292
  ref: e,
277
- onClick: x(t.onClick, () => s.onOpenChange(!1))
293
+ onClick: S(t.onClick, () => i.onOpenChange(!1))
278
294
  }
279
295
  );
280
296
  }
281
297
  );
282
- Jt.displayName = it;
283
- function W(t) {
298
+ ee.displayName = ct;
299
+ function H(t) {
284
300
  return t ? "open" : "closed";
285
301
  }
286
- var st = "DialogTitleWarning", [rr, nt] = Ot(st, {
287
- contentName: _,
288
- titleName: F,
302
+ var lt = "DialogTitleWarning", [gr, ht] = Lt(lt, {
303
+ contentName: y,
304
+ titleName: B,
289
305
  docsSlug: "dialog"
290
- }), Yt = ({ titleId: t }) => {
291
- const e = nt(st), o = `\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
306
+ }), re = ({ titleId: t }) => {
307
+ const e = ht(lt), o = `\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
292
308
 
293
309
  If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
294
310
 
@@ -296,109 +312,109 @@ For more information, see https://radix-ui.com/primitives/docs/components/${e.do
296
312
  return l.useEffect(() => {
297
313
  t && (document.getElementById(t) || console.error(o));
298
314
  }, [o, t]), null;
299
- }, qt = "DialogDescriptionWarning", Ut = ({ contentRef: t, descriptionId: e }) => {
300
- const i = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${nt(qt).contentName}}.`;
315
+ }, oe = "DialogDescriptionWarning", ae = ({ contentRef: t, descriptionId: e }) => {
316
+ const a = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ht(oe).contentName}}.`;
301
317
  return l.useEffect(() => {
302
- const s = t.current?.getAttribute("aria-describedby");
303
- e && s && (document.getElementById(e) || console.warn(i));
304
- }, [i, t, e]), null;
305
- }, Kt = q, Xt = K, Zt = Z, Qt = Q, te = tt, ee = rt, at = {
318
+ const i = t.current?.getAttribute("aria-describedby");
319
+ e && i && (document.getElementById(e) || console.warn(a));
320
+ }, [a, t, e]), null;
321
+ }, ne = Z, ie = tt, se = rt, ce = ot, le = at, he = it, dt = {
306
322
  color: void 0,
307
323
  size: void 0,
308
324
  className: void 0,
309
325
  style: void 0,
310
326
  attr: void 0
311
- }, V = y.createContext && /* @__PURE__ */ y.createContext(at), re = ["attr", "size", "title"];
312
- function oe(t, e) {
327
+ }, Y = _.createContext && /* @__PURE__ */ _.createContext(dt), de = ["attr", "size", "title"];
328
+ function ue(t, e) {
313
329
  if (t == null) return {};
314
- var o = ie(t, e), i, s;
330
+ var o = pe(t, e), a, i;
315
331
  if (Object.getOwnPropertySymbols) {
316
332
  var n = Object.getOwnPropertySymbols(t);
317
- for (s = 0; s < n.length; s++)
318
- i = n[s], !(e.indexOf(i) >= 0) && Object.prototype.propertyIsEnumerable.call(t, i) && (o[i] = t[i]);
333
+ for (i = 0; i < n.length; i++)
334
+ a = n[i], !(e.indexOf(a) >= 0) && Object.prototype.propertyIsEnumerable.call(t, a) && (o[a] = t[a]);
319
335
  }
320
336
  return o;
321
337
  }
322
- function ie(t, e) {
338
+ function pe(t, e) {
323
339
  if (t == null) return {};
324
340
  var o = {};
325
- for (var i in t)
326
- if (Object.prototype.hasOwnProperty.call(t, i)) {
327
- if (e.indexOf(i) >= 0) continue;
328
- o[i] = t[i];
341
+ for (var a in t)
342
+ if (Object.prototype.hasOwnProperty.call(t, a)) {
343
+ if (e.indexOf(a) >= 0) continue;
344
+ o[a] = t[a];
329
345
  }
330
346
  return o;
331
347
  }
332
- function R() {
333
- return R = Object.assign ? Object.assign.bind() : function(t) {
348
+ function A() {
349
+ return A = Object.assign ? Object.assign.bind() : function(t) {
334
350
  for (var e = 1; e < arguments.length; e++) {
335
351
  var o = arguments[e];
336
- for (var i in o)
337
- Object.prototype.hasOwnProperty.call(o, i) && (t[i] = o[i]);
352
+ for (var a in o)
353
+ Object.prototype.hasOwnProperty.call(o, a) && (t[a] = o[a]);
338
354
  }
339
355
  return t;
340
- }, R.apply(this, arguments);
356
+ }, A.apply(this, arguments);
341
357
  }
342
- function G(t, e) {
358
+ function q(t, e) {
343
359
  var o = Object.keys(t);
344
360
  if (Object.getOwnPropertySymbols) {
345
- var i = Object.getOwnPropertySymbols(t);
346
- e && (i = i.filter(function(s) {
347
- return Object.getOwnPropertyDescriptor(t, s).enumerable;
348
- })), o.push.apply(o, i);
361
+ var a = Object.getOwnPropertySymbols(t);
362
+ e && (a = a.filter(function(i) {
363
+ return Object.getOwnPropertyDescriptor(t, i).enumerable;
364
+ })), o.push.apply(o, a);
349
365
  }
350
366
  return o;
351
367
  }
352
368
  function E(t) {
353
369
  for (var e = 1; e < arguments.length; e++) {
354
370
  var o = arguments[e] != null ? arguments[e] : {};
355
- e % 2 ? G(Object(o), !0).forEach(function(i) {
356
- se(t, i, o[i]);
357
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(o)) : G(Object(o)).forEach(function(i) {
358
- Object.defineProperty(t, i, Object.getOwnPropertyDescriptor(o, i));
371
+ e % 2 ? q(Object(o), !0).forEach(function(a) {
372
+ ge(t, a, o[a]);
373
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(o)) : q(Object(o)).forEach(function(a) {
374
+ Object.defineProperty(t, a, Object.getOwnPropertyDescriptor(o, a));
359
375
  });
360
376
  }
361
377
  return t;
362
378
  }
363
- function se(t, e, o) {
364
- return e = ne(e), e in t ? Object.defineProperty(t, e, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = o, t;
379
+ function ge(t, e, o) {
380
+ return e = me(e), e in t ? Object.defineProperty(t, e, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = o, t;
365
381
  }
366
- function ne(t) {
367
- var e = ae(t, "string");
382
+ function me(t) {
383
+ var e = we(t, "string");
368
384
  return typeof e == "symbol" ? e : e + "";
369
385
  }
370
- function ae(t, e) {
386
+ function we(t, e) {
371
387
  if (typeof t != "object" || !t) return t;
372
388
  var o = t[Symbol.toPrimitive];
373
389
  if (o !== void 0) {
374
- var i = o.call(t, e);
375
- if (typeof i != "object") return i;
390
+ var a = o.call(t, e);
391
+ if (typeof a != "object") return a;
376
392
  throw new TypeError("@@toPrimitive must return a primitive value.");
377
393
  }
378
394
  return (e === "string" ? String : Number)(t);
379
395
  }
380
- function ct(t) {
381
- return t && t.map((e, o) => /* @__PURE__ */ y.createElement(e.tag, E({
396
+ function ut(t) {
397
+ return t && t.map((e, o) => /* @__PURE__ */ _.createElement(e.tag, E({
382
398
  key: o
383
- }, e.attr), ct(e.child)));
399
+ }, e.attr), ut(e.child)));
384
400
  }
385
401
  function b(t) {
386
- return (e) => /* @__PURE__ */ y.createElement(ce, R({
402
+ return (e) => /* @__PURE__ */ _.createElement(fe, A({
387
403
  attr: E({}, t.attr)
388
- }, e), ct(t.child));
404
+ }, e), ut(t.child));
389
405
  }
390
- function ce(t) {
406
+ function fe(t) {
391
407
  var e = (o) => {
392
408
  var {
393
- attr: i,
394
- size: s,
409
+ attr: a,
410
+ size: i,
395
411
  title: n
396
- } = t, d = oe(t, re), h = s || o.size || "1em", u;
397
- return o.className && (u = o.className), t.className && (u = (u ? u + " " : "") + t.className), /* @__PURE__ */ y.createElement("svg", R({
412
+ } = t, d = ue(t, de), h = i || o.size || "1em", u;
413
+ return o.className && (u = o.className), t.className && (u = (u ? u + " " : "") + t.className), /* @__PURE__ */ _.createElement("svg", A({
398
414
  stroke: "currentColor",
399
415
  fill: "currentColor",
400
416
  strokeWidth: "0"
401
- }, o.attr, i, d, {
417
+ }, o.attr, a, d, {
402
418
  className: u,
403
419
  style: E(E({
404
420
  color: t.color || o.color
@@ -406,92 +422,95 @@ function ce(t) {
406
422
  height: h,
407
423
  width: h,
408
424
  xmlns: "http://www.w3.org/2000/svg"
409
- }), n && /* @__PURE__ */ y.createElement("title", null, n), t.children);
425
+ }), n && /* @__PURE__ */ _.createElement("title", null, n), t.children);
410
426
  };
411
- return V !== void 0 ? /* @__PURE__ */ y.createElement(V.Consumer, null, (o) => e(o)) : e(at);
427
+ return Y !== void 0 ? /* @__PURE__ */ _.createElement(Y.Consumer, null, (o) => e(o)) : e(dt);
412
428
  }
413
- function lt(t) {
429
+ function pt(t) {
414
430
  return b({ attr: { viewBox: "0 0 640 512" }, child: [{ tag: "path", attr: { d: "M524.531,69.836a1.5,1.5,0,0,0-.764-.7A485.065,485.065,0,0,0,404.081,32.03a1.816,1.816,0,0,0-1.923.91,337.461,337.461,0,0,0-14.9,30.6,447.848,447.848,0,0,0-134.426,0,309.541,309.541,0,0,0-15.135-30.6,1.89,1.89,0,0,0-1.924-.91A483.689,483.689,0,0,0,116.085,69.137a1.712,1.712,0,0,0-.788.676C39.068,183.651,18.186,294.69,28.43,404.354a2.016,2.016,0,0,0,.765,1.375A487.666,487.666,0,0,0,176.02,479.918a1.9,1.9,0,0,0,2.063-.676A348.2,348.2,0,0,0,208.12,430.4a1.86,1.86,0,0,0-1.019-2.588,321.173,321.173,0,0,1-45.868-21.853,1.885,1.885,0,0,1-.185-3.126c3.082-2.309,6.166-4.711,9.109-7.137a1.819,1.819,0,0,1,1.9-.256c96.229,43.917,200.41,43.917,295.5,0a1.812,1.812,0,0,1,1.924.233c2.944,2.426,6.027,4.851,9.132,7.16a1.884,1.884,0,0,1-.162,3.126,301.407,301.407,0,0,1-45.89,21.83,1.875,1.875,0,0,0-1,2.611,391.055,391.055,0,0,0,30.014,48.815,1.864,1.864,0,0,0,2.063.7A486.048,486.048,0,0,0,610.7,405.729a1.882,1.882,0,0,0,.765-1.352C623.729,277.594,590.933,167.465,524.531,69.836ZM222.491,337.58c-28.972,0-52.844-26.587-52.844-59.239S193.056,219.1,222.491,219.1c29.665,0,53.306,26.82,52.843,59.239C275.334,310.993,251.924,337.58,222.491,337.58Zm195.38,0c-28.971,0-52.843-26.587-52.843-59.239S388.437,219.1,417.871,219.1c29.667,0,53.307,26.82,52.844,59.239C470.715,310.993,447.538,337.58,417.871,337.58Z" }, child: [] }] })(t);
415
431
  }
416
- function le(t) {
432
+ function ve(t) {
417
433
  return b({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M504 256C504 119 393 8 256 8S8 119 8 256c0 123.78 90.69 226.38 209.25 245V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.28c-30.8 0-40.41 19.12-40.41 38.73V256h68.78l-11 71.69h-57.78V501C413.31 482.38 504 379.78 504 256z" }, child: [] }] })(t);
418
434
  }
419
- function ht(t) {
435
+ function gt(t) {
420
436
  return b({ attr: { viewBox: "0 0 496 512" }, child: [{ tag: "path", attr: { d: "M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z" }, child: [] }] })(t);
421
437
  }
422
- function he(t) {
438
+ function be(t) {
423
439
  return b({ attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z" }, child: [] }] })(t);
424
440
  }
425
- function de(t) {
441
+ function _e(t) {
426
442
  return b({ attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z" }, child: [] }] })(t);
427
443
  }
428
- function dt(t) {
444
+ function mt(t) {
429
445
  return b({ attr: { viewBox: "0 0 384 512" }, child: [{ tag: "path", attr: { d: "M290.7 311L95 269.7 86.8 309l195.7 41zm51-87L188.2 95.7l-25.5 30.8 153.5 128.3zm-31.2 39.7L129.2 179l-16.7 36.5L293.7 300zM262 32l-32 24 119.3 160.3 32-24zm20.5 328h-200v39.7h200zm39.7 80H42.7V320h-40v160h359.5V320h-40z" }, child: [] }] })(t);
430
446
  }
431
- function ut(t) {
447
+ function wt(t) {
432
448
  return b({ attr: { viewBox: "0 0 576 512" }, child: [{ tag: "path", attr: { d: "M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z" }, child: [] }] })(t);
433
449
  }
434
- function ue(t) {
450
+ function ye(t) {
435
451
  return b({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z" }, child: [] }] })(t);
436
452
  }
437
- const pe = "_footer_izwsw_321", ge = "_top_izwsw_343", we = "_highcharts_izwsw_349", me = "_logo_izwsw_358", fe = "_youtube_izwsw_372", ve = "_youtubeOverlay_izwsw_442", be = "_youtubeContent_izwsw_454", ye = "_notCharts_izwsw_471", _e = "_newsletter_izwsw_504", Ce = "_discord_izwsw_561", De = "_discordPlus_izwsw_570", Pe = "_discordJoin_izwsw_574", Ne = "_discordMembers_izwsw_578", Oe = "_discordContent_izwsw_601", xe = "_discordAvatars_izwsw_618", ze = "_help_izwsw_649", Se = "_helpWays_izwsw_657", Me = "_helpItem_izwsw_670", Re = "_helpContent_izwsw_675", Ee = "_helpBall_izwsw_678", Ae = "_links_izwsw_717", Ie = "_tagged_izwsw_747", Le = "_norway_izwsw_751", Te = "_bottom_izwsw_761", je = "_bottomLinks_izwsw_771", ke = "_tabletBottomLeft_izwsw_779", Fe = "_socials_izwsw_785", c = {
438
- footer: pe,
439
- top: ge,
440
- highcharts: we,
441
- logo: me,
442
- youtube: fe,
443
- youtubeOverlay: ve,
444
- youtubeContent: be,
445
- notCharts: ye,
446
- newsletter: _e,
447
- discord: Ce,
448
- discordPlus: De,
449
- discordJoin: Pe,
450
- discordMembers: Ne,
451
- discordContent: Oe,
452
- discordAvatars: xe,
453
- help: ze,
454
- helpWays: Se,
455
- helpItem: Me,
456
- helpContent: Re,
457
- helpBall: Ee,
458
- links: Ae,
459
- tagged: Ie,
460
- norway: Le,
461
- bottom: Te,
462
- bottomLinks: je,
463
- tabletBottomLeft: ke,
464
- socials: Fe
453
+ const Ce = "_footer_ajhpj_321", je = "_top_ajhpj_343", De = "_highcharts_ajhpj_349", Ne = "_logo_ajhpj_358", Pe = "_youtube_ajhpj_372", Oe = "_youtubeOverlay_ajhpj_442", Se = "_youtubeContent_ajhpj_454", xe = "_notCharts_ajhpj_471", Me = "_newsletter_ajhpj_504", Ae = "_error_ajhpj_540", Ee = "_discord_ajhpj_576", Re = "_discordPlus_ajhpj_585", Ie = "_discordJoin_ajhpj_589", Le = "_discordMembers_ajhpj_593", ke = "_discordContent_ajhpj_616", Te = "_discordAvatars_ajhpj_633", ze = "_discordAvatarStatus_ajhpj_660", Fe = "_online_ajhpj_671", We = "_help_ajhpj_685", Be = "_helpWays_ajhpj_694", He = "_helpItem_ajhpj_707", Ve = "_helpBall_ajhpj_720", Ge = "_helpContent_ajhpj_737", $e = "_links_ajhpj_755", Je = "_tagged_ajhpj_785", Ye = "_norway_ajhpj_789", qe = "_bottom_ajhpj_799", Ue = "_bottomLinks_ajhpj_809", Ke = "_tabletBottomLeft_ajhpj_818", Xe = "_socials_ajhpj_824", c = {
454
+ footer: Ce,
455
+ top: je,
456
+ highcharts: De,
457
+ logo: Ne,
458
+ youtube: Pe,
459
+ youtubeOverlay: Oe,
460
+ youtubeContent: Se,
461
+ notCharts: xe,
462
+ newsletter: Me,
463
+ error: Ae,
464
+ discord: Ee,
465
+ discordPlus: Re,
466
+ discordJoin: Ie,
467
+ discordMembers: Le,
468
+ discordContent: ke,
469
+ discordAvatars: Te,
470
+ discordAvatarStatus: ze,
471
+ online: Fe,
472
+ help: We,
473
+ helpWays: Be,
474
+ helpItem: He,
475
+ helpBall: Ve,
476
+ helpContent: Ge,
477
+ links: $e,
478
+ tagged: Je,
479
+ norway: Ye,
480
+ bottom: qe,
481
+ bottomLinks: Ue,
482
+ tabletBottomLeft: Ke,
483
+ socials: Xe
465
484
  };
466
- function S(t, e) {
485
+ function x(t, e) {
467
486
  return e ? t.replace(e, "") : t;
468
487
  }
469
- const We = [
488
+ const Ze = [
470
489
  {
471
- icon: /* @__PURE__ */ r(Lt, {}),
490
+ icon: /* @__PURE__ */ r(Gt, {}),
472
491
  subtitle: "Ask tech and sales questions with",
473
492
  title: "Highcharts GPT",
474
493
  url: "https://www.highcharts.com/chat/gpt/"
475
494
  },
476
495
  {
477
- icon: /* @__PURE__ */ r(dt, {}),
496
+ icon: /* @__PURE__ */ r(mt, {}),
478
497
  subtitle: "Search answers on",
479
498
  title: "StackOverflow",
480
499
  url: "https://stackoverflow.com/questions/tagged/highcharts"
481
500
  },
482
501
  {
483
- icon: /* @__PURE__ */ r(ht, {}),
502
+ icon: /* @__PURE__ */ r(gt, {}),
484
503
  subtitle: "Report issues on",
485
504
  title: "GitHub",
486
505
  url: "https://github.com/highcharts/highcharts/issues"
487
506
  },
488
507
  {
489
- icon: /* @__PURE__ */ r(It, {}),
508
+ icon: /* @__PURE__ */ r(Vt, {}),
490
509
  subtitle: "Contact sales about",
491
510
  title: "Licensing Options",
492
511
  url: "https://shop.highcharts.com/contact"
493
512
  }
494
- ], Be = {
513
+ ], Qe = {
495
514
  Products: [
496
515
  {
497
516
  title: "Core",
@@ -710,61 +729,61 @@ const We = [
710
729
  url: "https://www.highcharts.com/chat/gpt/"
711
730
  }
712
731
  ]
713
- }, He = [
732
+ }, tr = [
714
733
  {
715
- icon: /* @__PURE__ */ r(dt, {}),
734
+ icon: /* @__PURE__ */ r(mt, {}),
716
735
  url: "https://stackoverflow.com/questions/tagged/highcharts",
717
736
  label: "StackOverlow"
718
737
  },
719
738
  {
720
- icon: /* @__PURE__ */ r(ht, {}),
739
+ icon: /* @__PURE__ */ r(gt, {}),
721
740
  url: "https://github.com/highcharts/highcharts",
722
741
  label: "GitHub"
723
742
  },
724
743
  {
725
- icon: /* @__PURE__ */ r(ue, {}),
744
+ icon: /* @__PURE__ */ r(ye, {}),
726
745
  url: "https://twitter.com/Highcharts",
727
746
  label: "X"
728
747
  },
729
748
  {
730
- icon: /* @__PURE__ */ r(le, {}),
749
+ icon: /* @__PURE__ */ r(ve, {}),
731
750
  url: "https://www.facebook.com/Highcharts",
732
751
  label: "Facebook"
733
752
  },
734
753
  {
735
- icon: /* @__PURE__ */ r(he, {}),
754
+ icon: /* @__PURE__ */ r(be, {}),
736
755
  url: "https://www.instagram.com/highcharts",
737
756
  label: "Instagram"
738
757
  },
739
758
  {
740
- icon: /* @__PURE__ */ r(de, {}),
759
+ icon: /* @__PURE__ */ r(_e, {}),
741
760
  url: "https://www.linkedin.com/company/highsoft",
742
761
  label: "LinkedIn"
743
762
  },
744
763
  {
745
- icon: /* @__PURE__ */ r(lt, {}),
764
+ icon: /* @__PURE__ */ r(pt, {}),
746
765
  url: "https://www.highcharts.com/highcharts-discord/",
747
766
  label: "Discord"
748
767
  },
749
768
  {
750
- icon: /* @__PURE__ */ r(ut, {}),
769
+ icon: /* @__PURE__ */ r(wt, {}),
751
770
  url: "https://www.youtube.com/channel/UCzxXofPTQ0DoT7uIy3Fxw7A",
752
771
  label: "Youtube"
753
772
  }
754
773
  ];
755
- function Ve() {
756
- const [t, e] = Et(), o = "npm install highcharts --save";
757
- return /* @__PURE__ */ a($, { variant: "neutral", onClick: () => t(o), children: [
774
+ function er() {
775
+ const [t, e] = Wt(), o = "npm install highcharts --save";
776
+ return /* @__PURE__ */ s(U, { variant: "neutral", onClick: () => t(o), children: [
758
777
  o,
759
- e ? /* @__PURE__ */ r(xt, {}) : /* @__PURE__ */ r(At, {})
778
+ e ? /* @__PURE__ */ r(kt, {}) : /* @__PURE__ */ r(Ht, {})
760
779
  ] });
761
780
  }
762
- function or({
781
+ function mr({
763
782
  link: t = "a",
764
783
  host: e = "https://www.highcharts.com"
765
784
  }) {
766
- const o = gt(null), [i, s] = B(0), [n, d] = B(), h = H("(max-width: 849px)"), u = H("(min-width: 850px) and (max-width: 999px)");
767
- wt(() => {
785
+ const o = jt(null), [a, i] = O(!1), [n, d] = O(!1), [h, u] = O(""), [C, N] = O(0), [L, ft] = O(), vt = J("(max-width: 849px)"), bt = J("(min-width: 850px) and (max-width: 999px)");
786
+ Dt(() => {
768
787
  if (o.current) {
769
788
  const p = async () => {
770
789
  try {
@@ -774,72 +793,76 @@ function or({
774
793
  } catch {
775
794
  return 0;
776
795
  }
777
- }, f = async () => {
796
+ }, v = async () => {
778
797
  try {
779
- const m = await (await fetch(
798
+ const f = await (await fetch(
780
799
  "https://discord.com/api/guilds/1318933807059042305/widget.json"
781
800
  )).json() || {};
782
- return m.members = m.members || [], m;
801
+ return f.members = f.members || [], f;
783
802
  } catch {
784
803
  }
785
- }, v = new IntersectionObserver(
804
+ }, g = new IntersectionObserver(
786
805
  async (w) => {
787
806
  if (w[0].isIntersecting) {
788
- v.disconnect();
789
- const [m, N] = await Promise.all([
807
+ g.disconnect();
808
+ const [f, P] = await Promise.all([
790
809
  p(),
791
- f()
810
+ v()
792
811
  ]);
793
- s(m), d(N);
812
+ N(f), ft(P);
794
813
  }
795
814
  },
796
815
  { rootMargin: "100px" }
797
816
  );
798
- return v.observe(o.current), () => v.disconnect();
817
+ return g.observe(o.current), () => g.disconnect();
799
818
  }
800
819
  }, [o.current]);
801
- const P = (p) => {
802
- p.preventDefault();
803
- }, C = /* @__PURE__ */ a(O, { children: [
804
- /* @__PURE__ */ a("span", { children: [
820
+ const V = h && h !== "Something went wrong", _t = (p) => {
821
+ V && p.target.value === "foo" && u("");
822
+ }, yt = (p) => {
823
+ p.preventDefault(), !(n || V) && (u(""), i(!0), setTimeout(() => {
824
+ Math.random() > 0.5 ? d(!0) : u("Something went wrong"), i(!1);
825
+ }, 1e3));
826
+ }, G = /* @__PURE__ */ s(j, { children: [
827
+ /* @__PURE__ */ s("span", { children: [
805
828
  "© ",
806
829
  (/* @__PURE__ */ new Date()).getFullYear(),
807
830
  " Highsoft. All rights reserved."
808
831
  ] }),
809
- /* @__PURE__ */ a("div", { className: c.bottomLinks, children: [
832
+ /* @__PURE__ */ s("div", { className: c.bottomLinks, children: [
810
833
  /* @__PURE__ */ r(t, { href: "#", children: "Privacy & Legal Policies" }),
811
834
  /* @__PURE__ */ r(t, { href: "#", children: "Accessibility Statement" }),
812
835
  /* @__PURE__ */ r(t, { href: "#", children: "Sitemap" })
813
836
  ] })
814
- ] }), z = /* @__PURE__ */ r("ul", { className: c.socials, children: He.map(({ icon: p, url: f, label: v }, w) => /* @__PURE__ */ r("li", { children: /* @__PURE__ */ r("a", { href: f, "aria-label": v, children: p }) }, w)) });
815
- return /* @__PURE__ */ a(St, { as: "footer", className: c.footer, children: [
816
- /* @__PURE__ */ a("div", { className: c.top, children: [
817
- /* @__PURE__ */ a("div", { className: c.highcharts, children: [
837
+ ] }), $ = /* @__PURE__ */ r("ul", { className: c.socials, children: tr.map(({ icon: p, url: v, label: g }, w) => /* @__PURE__ */ r("li", { children: /* @__PURE__ */ r("a", { href: v, "aria-label": g, children: p }) }, w)) });
838
+ return /* @__PURE__ */ s(Tt, { as: "footer", className: c.footer, children: [
839
+ /* @__PURE__ */ s("div", { className: c.top, children: [
840
+ /* @__PURE__ */ s("div", { className: c.highcharts, children: [
818
841
  /* @__PURE__ */ r(
819
842
  t,
820
843
  {
821
844
  className: c.logo,
822
- href: S("https://www.highcharts.com/", e),
823
- children: /* @__PURE__ */ r(Mt, {})
845
+ href: x("https://www.highcharts.com/", e),
846
+ children: /* @__PURE__ */ r(zt, {})
824
847
  }
825
848
  ),
826
849
  /* @__PURE__ */ r("p", { children: "We make it easy for developers to create charts and dashboards for web and mobile platforms." }),
827
- /* @__PURE__ */ r(Ve, {})
850
+ /* @__PURE__ */ r(er, {})
828
851
  ] }),
829
- /* @__PURE__ */ a(Kt, { children: [
830
- /* @__PURE__ */ r(Xt, { asChild: !0, children: /* @__PURE__ */ a("button", { className: c.youtube, children: [
831
- /* @__PURE__ */ r(ut, {}),
852
+ /* @__PURE__ */ s(ne, { children: [
853
+ /* @__PURE__ */ r(ie, { asChild: !0, children: /* @__PURE__ */ s("button", { className: c.youtube, children: [
854
+ /* @__PURE__ */ r(wt, {}),
832
855
  /* @__PURE__ */ r("p", { children: "Meet the team behind the charts" })
833
856
  ] }) }),
834
- /* @__PURE__ */ a(Zt, { children: [
835
- /* @__PURE__ */ r(Qt, { className: c.youtubeOverlay }),
836
- /* @__PURE__ */ a(
837
- te,
857
+ /* @__PURE__ */ s(se, { children: [
858
+ /* @__PURE__ */ r(ce, { className: c.youtubeOverlay }),
859
+ /* @__PURE__ */ s(
860
+ le,
838
861
  {
839
862
  className: c.youtubeContent,
840
863
  "aria-describedby": void 0,
841
864
  children: [
842
- /* @__PURE__ */ r(kt, { asChild: !0, children: /* @__PURE__ */ r(ee, { children: "Video: Meet the team behind the charts" }) }),
865
+ /* @__PURE__ */ r(Yt, { asChild: !0, children: /* @__PURE__ */ r(he, { children: "Video: Meet the team behind the charts" }) }),
843
866
  /* @__PURE__ */ r(
844
867
  "iframe",
845
868
  {
@@ -855,48 +878,76 @@ function or({
855
878
  )
856
879
  ] })
857
880
  ] }),
858
- /* @__PURE__ */ a("div", { className: c.notCharts, children: [
859
- /* @__PURE__ */ a("div", { className: c.newsletter, children: [
860
- /* @__PURE__ */ a("h2", { children: [
861
- /* @__PURE__ */ r(mt, {}),
881
+ /* @__PURE__ */ s("div", { className: c.notCharts, children: [
882
+ /* @__PURE__ */ s("div", { className: c.newsletter, children: [
883
+ /* @__PURE__ */ s("h2", { children: [
884
+ /* @__PURE__ */ r(Nt, {}),
862
885
  "Stay in the Loop"
863
886
  ] }),
864
- /* @__PURE__ */ a("form", { onSubmit: P, children: [
865
- /* @__PURE__ */ r("input", { placeholder: "Email address" }),
866
- /* @__PURE__ */ r($, { variant: "brand", children: "Sign up" })
887
+ /* @__PURE__ */ s("form", { onSubmit: yt, children: [
888
+ /* @__PURE__ */ r(
889
+ "input",
890
+ {
891
+ className: T({ [c.error]: h }),
892
+ placeholder: "Email address",
893
+ disabled: n,
894
+ onChange: _t
895
+ }
896
+ ),
897
+ /* @__PURE__ */ r(
898
+ U,
899
+ {
900
+ variant: n ? "success" : h ? "danger" : "brand",
901
+ loading: a,
902
+ children: n ? /* @__PURE__ */ s(j, { children: [
903
+ /* @__PURE__ */ r(Bt, {}),
904
+ "You're in"
905
+ ] }) : "Sign up"
906
+ }
907
+ )
867
908
  ] }),
868
- /* @__PURE__ */ a("p", { children: [
909
+ /* @__PURE__ */ s("p", { children: [
869
910
  "By signing up, you agree to the",
870
911
  " ",
871
- /* @__PURE__ */ r(t, { href: S("https://www.highcharts.com/", e), children: "Privacy Policy" })
912
+ /* @__PURE__ */ r(t, { href: x("https://www.highcharts.com/", e), children: "Privacy Policy" })
872
913
  ] })
873
914
  ] }),
874
- /* @__PURE__ */ a(
915
+ /* @__PURE__ */ s(
875
916
  "a",
876
917
  {
877
918
  className: c.discord,
878
919
  href: "https://discord.com/invite/xHxxcyyy6K",
879
920
  ref: o,
880
921
  children: [
881
- /* @__PURE__ */ a("h2", { children: [
882
- /* @__PURE__ */ r(lt, {}),
922
+ /* @__PURE__ */ s("h2", { children: [
923
+ /* @__PURE__ */ r(pt, {}),
883
924
  "Discord ",
884
925
  /* @__PURE__ */ r("span", { children: "/ Total" })
885
926
  ] }),
886
- /* @__PURE__ */ a("p", { className: c.discordContent, children: [
927
+ /* @__PURE__ */ s("p", { className: c.discordContent, children: [
887
928
  /* @__PURE__ */ r("span", { className: c.discordJoin, children: "Join us" }),
888
929
  " ",
889
- !!i && /* @__PURE__ */ a("span", { className: c.discordMembers, children: [
890
- i,
930
+ !!C && /* @__PURE__ */ s("span", { className: c.discordMembers, children: [
931
+ C,
891
932
  " members"
892
933
  ] })
893
934
  ] }),
894
- /* @__PURE__ */ a("ul", { className: c.discordAvatars, children: [
895
- n?.members.slice(0, 5).map(
935
+ /* @__PURE__ */ s("ul", { className: c.discordAvatars, children: [
936
+ L?.members.slice(0, 5).map(
896
937
  ({
897
- //status,
898
- avatar_url: p
899
- }, f) => /* @__PURE__ */ r("li", { children: /* @__PURE__ */ r("img", { src: p }) }, f)
938
+ status: p,
939
+ avatar_url: v
940
+ }, g) => /* @__PURE__ */ s("li", { children: [
941
+ /* @__PURE__ */ r("img", { src: v }),
942
+ /* @__PURE__ */ r(
943
+ "span",
944
+ {
945
+ className: T(c.discordAvatarStatus, {
946
+ [c.online]: p === "online"
947
+ })
948
+ }
949
+ )
950
+ ] }, g)
900
951
  ),
901
952
  /* @__PURE__ */ r("li", { className: c.discordPlus, children: "+" })
902
953
  ] })
@@ -905,46 +956,46 @@ function or({
905
956
  )
906
957
  ] })
907
958
  ] }),
908
- /* @__PURE__ */ a("div", { className: c.help, children: [
909
- /* @__PURE__ */ a("div", { className: c.helpWays, children: [
959
+ /* @__PURE__ */ s("div", { className: c.help, children: [
960
+ /* @__PURE__ */ s("div", { className: c.helpWays, children: [
910
961
  /* @__PURE__ */ r("span", { children: "Ways to get help" }),
911
- /* @__PURE__ */ a("p", { children: [
962
+ /* @__PURE__ */ s("p", { children: [
912
963
  "We operate in CET",
913
- h ? " " : /* @__PURE__ */ r("br", {}),
964
+ vt ? " " : /* @__PURE__ */ r("br", {}),
914
965
  "Monday - Friday"
915
966
  ] })
916
967
  ] }),
917
- We.map(({ icon: p, subtitle: f, title: v, url: w }, m) => /* @__PURE__ */ a(
968
+ Ze.map(({ icon: p, subtitle: v, title: g, url: w }, f) => /* @__PURE__ */ s(
918
969
  t,
919
970
  {
920
- href: S(w, e),
971
+ href: x(w, e),
921
972
  className: c.helpItem,
922
973
  children: [
923
974
  /* @__PURE__ */ r("div", { className: c.helpBall, children: p }),
924
- /* @__PURE__ */ a("div", { className: c.helpContent, children: [
925
- /* @__PURE__ */ r("span", { children: f }),
926
- /* @__PURE__ */ r("span", { children: v })
975
+ /* @__PURE__ */ s("div", { className: c.helpContent, children: [
976
+ /* @__PURE__ */ r("span", { children: v }),
977
+ /* @__PURE__ */ r("span", { children: g })
927
978
  ] })
928
979
  ]
929
980
  },
930
- m
981
+ f
931
982
  ))
932
983
  ] }),
933
- /* @__PURE__ */ a("div", { className: c.links, children: [
934
- Object.entries(Be).map(([p, f], v) => /* @__PURE__ */ a("div", { children: [
984
+ /* @__PURE__ */ s("div", { className: c.links, children: [
985
+ Object.entries(Qe).map(([p, v], g) => /* @__PURE__ */ s("div", { children: [
935
986
  /* @__PURE__ */ r("h2", { children: p }),
936
- /* @__PURE__ */ r("ul", { children: f.map(({ title: w, url: m, tag: N }, pt) => /* @__PURE__ */ r("li", { children: /* @__PURE__ */ a(
987
+ /* @__PURE__ */ r("ul", { children: v.map(({ title: w, url: f, tag: P }, Ct) => /* @__PURE__ */ r("li", { children: /* @__PURE__ */ s(
937
988
  t,
938
989
  {
939
- href: S(m, e),
940
- className: zt({ [c.tagged]: N }),
990
+ href: x(f, e),
991
+ className: T({ [c.tagged]: P }),
941
992
  children: [
942
- N ? /* @__PURE__ */ r("span", { children: w }) : w,
943
- N && /* @__PURE__ */ r(Rt, { variant: "brand", icon: !1, border: !0 })
993
+ P ? /* @__PURE__ */ r("span", { children: w }) : w,
994
+ P && /* @__PURE__ */ r(Ft, { variant: "brand", icon: !1, border: !0 })
944
995
  ]
945
996
  }
946
- ) }, pt)) })
947
- ] }, v)),
997
+ ) }, Ct)) })
998
+ ] }, g)),
948
999
  /* @__PURE__ */ r("div", { className: c.norway, children: /* @__PURE__ */ r(
949
1000
  "img",
950
1001
  {
@@ -953,15 +1004,15 @@ function or({
953
1004
  }
954
1005
  ) })
955
1006
  ] }),
956
- /* @__PURE__ */ r("div", { className: c.bottom, children: u ? /* @__PURE__ */ a(O, { children: [
957
- /* @__PURE__ */ r("div", { className: c.tabletBottomLeft, children: C }),
958
- z
959
- ] }) : /* @__PURE__ */ a(O, { children: [
960
- C,
961
- z
1007
+ /* @__PURE__ */ r("div", { className: c.bottom, children: bt ? /* @__PURE__ */ s(j, { children: [
1008
+ /* @__PURE__ */ r("div", { className: c.tabletBottomLeft, children: G }),
1009
+ $
1010
+ ] }) : /* @__PURE__ */ s(j, { children: [
1011
+ G,
1012
+ $
962
1013
  ] }) })
963
1014
  ] });
964
1015
  }
965
1016
  export {
966
- or as Footer
1017
+ mr as Footer
967
1018
  };