highsoft-ui 1.0.79 → 1.0.81

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.
@@ -0,0 +1,234 @@
1
+ import * as i from "react";
2
+ import { e as H, c as V, b as R, u as _, P as p, d as g, g as h, i as q, R as K, a as U, j as Y, k as Z, F as z, D as J, l as Q } from "./index-CMU31gjG.js";
3
+ import { jsx as s, jsxs as N, Fragment as O } from "react/jsx-runtime";
4
+ var v = "Dialog", [I] = V(v), [X, u] = I(v), x = (e) => {
5
+ const {
6
+ __scopeDialog: o,
7
+ children: r,
8
+ open: a,
9
+ defaultOpen: n,
10
+ onOpenChange: t,
11
+ modal: l = !0
12
+ } = e, c = i.useRef(null), f = i.useRef(null), [m, C] = H({
13
+ prop: a,
14
+ defaultProp: n ?? !1,
15
+ onChange: t,
16
+ caller: v
17
+ });
18
+ return /* @__PURE__ */ s(
19
+ X,
20
+ {
21
+ scope: o,
22
+ triggerRef: c,
23
+ contentRef: f,
24
+ contentId: R(),
25
+ titleId: R(),
26
+ descriptionId: R(),
27
+ open: m,
28
+ onOpenChange: C,
29
+ onOpenToggle: i.useCallback(() => C((B) => !B), [C]),
30
+ modal: l,
31
+ children: r
32
+ }
33
+ );
34
+ };
35
+ x.displayName = v;
36
+ var A = "DialogTrigger", T = i.forwardRef(
37
+ (e, o) => {
38
+ const { __scopeDialog: r, ...a } = e, n = u(A, r), t = _(o, n.triggerRef);
39
+ return /* @__PURE__ */ s(
40
+ p.button,
41
+ {
42
+ type: "button",
43
+ "aria-haspopup": "dialog",
44
+ "aria-expanded": n.open,
45
+ "aria-controls": n.contentId,
46
+ "data-state": y(n.open),
47
+ ...a,
48
+ ref: t,
49
+ onClick: g(e.onClick, n.onOpenToggle)
50
+ }
51
+ );
52
+ }
53
+ );
54
+ T.displayName = A;
55
+ var E = "DialogPortal", [ee, b] = I(E, {
56
+ forceMount: void 0
57
+ }), M = (e) => {
58
+ const { __scopeDialog: o, forceMount: r, children: a, container: n } = e, t = u(E, o);
59
+ return /* @__PURE__ */ s(ee, { scope: o, forceMount: r, children: i.Children.map(a, (l) => /* @__PURE__ */ s(h, { present: r || t.open, children: /* @__PURE__ */ s(q, { asChild: !0, container: n, children: l }) })) });
60
+ };
61
+ M.displayName = E;
62
+ var D = "DialogOverlay", w = i.forwardRef(
63
+ (e, o) => {
64
+ const r = b(D, e.__scopeDialog), { forceMount: a = r.forceMount, ...n } = e, t = u(D, e.__scopeDialog);
65
+ return t.modal ? /* @__PURE__ */ s(h, { present: a || t.open, children: /* @__PURE__ */ s(oe, { ...n, ref: o }) }) : null;
66
+ }
67
+ );
68
+ w.displayName = D;
69
+ var te = U("DialogOverlay.RemoveScroll"), oe = i.forwardRef(
70
+ (e, o) => {
71
+ const { __scopeDialog: r, ...a } = e, n = u(D, r);
72
+ return (
73
+ // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
74
+ // ie. when `Overlay` and `Content` are siblings
75
+ /* @__PURE__ */ s(K, { as: te, allowPinchZoom: !0, shards: [n.contentRef], children: /* @__PURE__ */ s(
76
+ p.div,
77
+ {
78
+ "data-state": y(n.open),
79
+ ...a,
80
+ ref: o,
81
+ style: { pointerEvents: "auto", ...a.style }
82
+ }
83
+ ) })
84
+ );
85
+ }
86
+ ), d = "DialogContent", F = i.forwardRef(
87
+ (e, o) => {
88
+ const r = b(d, e.__scopeDialog), { forceMount: a = r.forceMount, ...n } = e, t = u(d, e.__scopeDialog);
89
+ return /* @__PURE__ */ s(h, { present: a || t.open, children: t.modal ? /* @__PURE__ */ s(ne, { ...n, ref: o }) : /* @__PURE__ */ s(re, { ...n, ref: o }) });
90
+ }
91
+ );
92
+ F.displayName = d;
93
+ var ne = i.forwardRef(
94
+ (e, o) => {
95
+ const r = u(d, e.__scopeDialog), a = i.useRef(null), n = _(o, r.contentRef, a);
96
+ return i.useEffect(() => {
97
+ const t = a.current;
98
+ if (t) return Y(t);
99
+ }, []), /* @__PURE__ */ s(
100
+ S,
101
+ {
102
+ ...e,
103
+ ref: n,
104
+ trapFocus: r.open,
105
+ disableOutsidePointerEvents: !0,
106
+ onCloseAutoFocus: g(e.onCloseAutoFocus, (t) => {
107
+ t.preventDefault(), r.triggerRef.current?.focus();
108
+ }),
109
+ onPointerDownOutside: g(e.onPointerDownOutside, (t) => {
110
+ const l = t.detail.originalEvent, c = l.button === 0 && l.ctrlKey === !0;
111
+ (l.button === 2 || c) && t.preventDefault();
112
+ }),
113
+ onFocusOutside: g(
114
+ e.onFocusOutside,
115
+ (t) => t.preventDefault()
116
+ )
117
+ }
118
+ );
119
+ }
120
+ ), re = i.forwardRef(
121
+ (e, o) => {
122
+ const r = u(d, e.__scopeDialog), a = i.useRef(!1), n = i.useRef(!1);
123
+ return /* @__PURE__ */ s(
124
+ S,
125
+ {
126
+ ...e,
127
+ ref: o,
128
+ trapFocus: !1,
129
+ disableOutsidePointerEvents: !1,
130
+ onCloseAutoFocus: (t) => {
131
+ e.onCloseAutoFocus?.(t), t.defaultPrevented || (a.current || r.triggerRef.current?.focus(), t.preventDefault()), a.current = !1, n.current = !1;
132
+ },
133
+ onInteractOutside: (t) => {
134
+ e.onInteractOutside?.(t), t.defaultPrevented || (a.current = !0, t.detail.originalEvent.type === "pointerdown" && (n.current = !0));
135
+ const l = t.target;
136
+ r.triggerRef.current?.contains(l) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && n.current && t.preventDefault();
137
+ }
138
+ }
139
+ );
140
+ }
141
+ ), S = i.forwardRef(
142
+ (e, o) => {
143
+ const { __scopeDialog: r, trapFocus: a, onOpenAutoFocus: n, onCloseAutoFocus: t, ...l } = e, c = u(d, r), f = i.useRef(null), m = _(o, f);
144
+ return Z(), /* @__PURE__ */ N(O, { children: [
145
+ /* @__PURE__ */ s(
146
+ z,
147
+ {
148
+ asChild: !0,
149
+ loop: !0,
150
+ trapped: a,
151
+ onMountAutoFocus: n,
152
+ onUnmountAutoFocus: t,
153
+ children: /* @__PURE__ */ s(
154
+ J,
155
+ {
156
+ role: "dialog",
157
+ id: c.contentId,
158
+ "aria-describedby": c.descriptionId,
159
+ "aria-labelledby": c.titleId,
160
+ "data-state": y(c.open),
161
+ ...l,
162
+ ref: m,
163
+ onDismiss: () => c.onOpenChange(!1)
164
+ }
165
+ )
166
+ }
167
+ ),
168
+ /* @__PURE__ */ N(O, { children: [
169
+ /* @__PURE__ */ s(se, { titleId: c.titleId }),
170
+ /* @__PURE__ */ s(ce, { contentRef: f, descriptionId: c.descriptionId })
171
+ ] })
172
+ ] });
173
+ }
174
+ ), P = "DialogTitle", W = i.forwardRef(
175
+ (e, o) => {
176
+ const { __scopeDialog: r, ...a } = e, n = u(P, r);
177
+ return /* @__PURE__ */ s(p.h2, { id: n.titleId, ...a, ref: o });
178
+ }
179
+ );
180
+ W.displayName = P;
181
+ var k = "DialogDescription", ae = i.forwardRef(
182
+ (e, o) => {
183
+ const { __scopeDialog: r, ...a } = e, n = u(k, r);
184
+ return /* @__PURE__ */ s(p.p, { id: n.descriptionId, ...a, ref: o });
185
+ }
186
+ );
187
+ ae.displayName = k;
188
+ var G = "DialogClose", L = i.forwardRef(
189
+ (e, o) => {
190
+ const { __scopeDialog: r, ...a } = e, n = u(G, r);
191
+ return /* @__PURE__ */ s(
192
+ p.button,
193
+ {
194
+ type: "button",
195
+ ...a,
196
+ ref: o,
197
+ onClick: g(e.onClick, () => n.onOpenChange(!1))
198
+ }
199
+ );
200
+ }
201
+ );
202
+ L.displayName = G;
203
+ function y(e) {
204
+ return e ? "open" : "closed";
205
+ }
206
+ var $ = "DialogTitleWarning", [de, j] = Q($, {
207
+ contentName: d,
208
+ titleName: P,
209
+ docsSlug: "dialog"
210
+ }), se = ({ titleId: e }) => {
211
+ const o = j($), r = `\`${o.contentName}\` requires a \`${o.titleName}\` for the component to be accessible for screen reader users.
212
+
213
+ If you want to hide the \`${o.titleName}\`, you can wrap it with our VisuallyHidden component.
214
+
215
+ For more information, see https://radix-ui.com/primitives/docs/components/${o.docsSlug}`;
216
+ return i.useEffect(() => {
217
+ e && (document.getElementById(e) || console.error(r));
218
+ }, [r, e]), null;
219
+ }, ie = "DialogDescriptionWarning", ce = ({ contentRef: e, descriptionId: o }) => {
220
+ const a = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${j(ie).contentName}}.`;
221
+ return i.useEffect(() => {
222
+ const n = e.current?.getAttribute("aria-describedby");
223
+ o && n && (document.getElementById(o) || console.warn(a));
224
+ }, [a, e, o]), null;
225
+ }, fe = x, ge = T, pe = M, De = w, ve = F, me = W, Ce = L;
226
+ export {
227
+ ve as C,
228
+ De as O,
229
+ pe as P,
230
+ fe as R,
231
+ ge as T,
232
+ me as a,
233
+ Ce as b
234
+ };
@@ -1091,17 +1091,17 @@ export {
1091
1091
  at as F,
1092
1092
  V as P,
1093
1093
  Zt as R,
1094
- H as a,
1095
- k as b,
1094
+ Me as a,
1095
+ cn as b,
1096
1096
  on as c,
1097
- an as d,
1098
- cn as e,
1099
- Y as f,
1097
+ Y as d,
1098
+ an as e,
1099
+ k as f,
1100
1100
  Ve as g,
1101
- vt as h,
1102
- un as i,
1103
- Me as j,
1101
+ x as h,
1102
+ vt as i,
1103
+ un as j,
1104
1104
  sn as k,
1105
1105
  rn as l,
1106
- x as u
1106
+ H as u
1107
1107
  };
@@ -0,0 +1,30 @@
1
+ import * as i from "react";
2
+ import { P as o } from "./index-CMU31gjG.js";
3
+ import { jsx as t } from "react/jsx-runtime";
4
+ var d = Object.freeze({
5
+ // See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
6
+ position: "absolute",
7
+ border: 0,
8
+ width: 1,
9
+ height: 1,
10
+ padding: 0,
11
+ margin: -1,
12
+ overflow: "hidden",
13
+ clip: "rect(0, 0, 0, 0)",
14
+ whiteSpace: "nowrap",
15
+ wordWrap: "normal"
16
+ }), l = "VisuallyHidden", e = i.forwardRef(
17
+ (r, a) => /* @__PURE__ */ t(
18
+ o.span,
19
+ {
20
+ ...r,
21
+ ref: a,
22
+ style: { ...d, ...r.style }
23
+ }
24
+ )
25
+ );
26
+ e.displayName = l;
27
+ var n = e;
28
+ export {
29
+ n as R
30
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "highsoft-ui",
3
- "version": "1.0.79",
3
+ "version": "1.0.81",
4
4
  "description": "Highsoft UI",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
@@ -49,6 +49,7 @@
49
49
  "license": "ISC",
50
50
  "dependencies": {
51
51
  "@untitled-ui/icons-react": "^0.1.4",
52
+ "addsearch-js-client": "^1.2.1",
52
53
  "clsx": "^2.1.0",
53
54
  "highsoft-design-tokens": "^2.2.1",
54
55
  "modern-normalize": "^3.0.1",
@@ -1,310 +0,0 @@
1
- import { jsx as a, jsxs as f, Fragment as G } from "react/jsx-runtime";
2
- import * as c from "react";
3
- import { useState as q, useRef as H, useEffect as E } from "react";
4
- import { X as V } from "./XClose-CCu1vrNS.js";
5
- import { Button as X } from "./components/Button/index.js";
6
- import { d as K, c as Y, e as y, a as x, P as _, f as g, g as D, h as Z, R as z, j as Q, i as ee, k as oe, F as te, D as ne, l as se } from "./index-DdHkr4BN.js";
7
- var m = "Dialog", [O] = Y(m), [re, d] = O(m), U = (e) => {
8
- const {
9
- __scopeDialog: o,
10
- children: s,
11
- open: t,
12
- defaultOpen: r,
13
- onOpenChange: n,
14
- modal: l = !0
15
- } = e, i = c.useRef(null), p = c.useRef(null), [C, v] = K({
16
- prop: t,
17
- defaultProp: r ?? !1,
18
- onChange: n,
19
- caller: m
20
- });
21
- return /* @__PURE__ */ a(
22
- re,
23
- {
24
- scope: o,
25
- triggerRef: i,
26
- contentRef: p,
27
- contentId: y(),
28
- titleId: y(),
29
- descriptionId: y(),
30
- open: C,
31
- onOpenChange: v,
32
- onOpenToggle: c.useCallback(() => v((J) => !J), [v]),
33
- modal: l,
34
- children: s
35
- }
36
- );
37
- };
38
- U.displayName = m;
39
- var N = "DialogTrigger", I = c.forwardRef(
40
- (e, o) => {
41
- const { __scopeDialog: s, ...t } = e, r = d(N, s), n = x(o, r.triggerRef);
42
- return /* @__PURE__ */ a(
43
- _.button,
44
- {
45
- type: "button",
46
- "aria-haspopup": "dialog",
47
- "aria-expanded": r.open,
48
- "aria-controls": r.contentId,
49
- "data-state": R(r.open),
50
- ...t,
51
- ref: n,
52
- onClick: g(e.onClick, r.onOpenToggle)
53
- }
54
- );
55
- }
56
- );
57
- I.displayName = N;
58
- var b = "DialogPortal", [ae, k] = O(b, {
59
- forceMount: void 0
60
- }), A = (e) => {
61
- const { __scopeDialog: o, forceMount: s, children: t, container: r } = e, n = d(b, o);
62
- return /* @__PURE__ */ a(ae, { scope: o, forceMount: s, children: c.Children.map(t, (l) => /* @__PURE__ */ a(D, { present: s || n.open, children: /* @__PURE__ */ a(Z, { asChild: !0, container: r, children: l }) })) });
63
- };
64
- A.displayName = b;
65
- var h = "DialogOverlay", M = c.forwardRef(
66
- (e, o) => {
67
- const s = k(h, e.__scopeDialog), { forceMount: t = s.forceMount, ...r } = e, n = d(h, e.__scopeDialog);
68
- return n.modal ? /* @__PURE__ */ a(D, { present: t || n.open, children: /* @__PURE__ */ a(ie, { ...r, ref: o }) }) : null;
69
- }
70
- );
71
- M.displayName = h;
72
- var ce = Q("DialogOverlay.RemoveScroll"), ie = c.forwardRef(
73
- (e, o) => {
74
- const { __scopeDialog: s, ...t } = e, r = d(h, s);
75
- return (
76
- // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
77
- // ie. when `Overlay` and `Content` are siblings
78
- /* @__PURE__ */ a(z, { as: ce, allowPinchZoom: !0, shards: [r.contentRef], children: /* @__PURE__ */ a(
79
- _.div,
80
- {
81
- "data-state": R(r.open),
82
- ...t,
83
- ref: o,
84
- style: { pointerEvents: "auto", ...t.style }
85
- }
86
- ) })
87
- );
88
- }
89
- ), u = "DialogContent", T = c.forwardRef(
90
- (e, o) => {
91
- const s = k(u, e.__scopeDialog), { forceMount: t = s.forceMount, ...r } = e, n = d(u, e.__scopeDialog);
92
- return /* @__PURE__ */ a(D, { present: t || n.open, children: n.modal ? /* @__PURE__ */ a(le, { ...r, ref: o }) : /* @__PURE__ */ a(de, { ...r, ref: o }) });
93
- }
94
- );
95
- T.displayName = u;
96
- var le = c.forwardRef(
97
- (e, o) => {
98
- const s = d(u, e.__scopeDialog), t = c.useRef(null), r = x(o, s.contentRef, t);
99
- return c.useEffect(() => {
100
- const n = t.current;
101
- if (n) return ee(n);
102
- }, []), /* @__PURE__ */ a(
103
- S,
104
- {
105
- ...e,
106
- ref: r,
107
- trapFocus: s.open,
108
- disableOutsidePointerEvents: !0,
109
- onCloseAutoFocus: g(e.onCloseAutoFocus, (n) => {
110
- n.preventDefault(), s.triggerRef.current?.focus();
111
- }),
112
- onPointerDownOutside: g(e.onPointerDownOutside, (n) => {
113
- const l = n.detail.originalEvent, i = l.button === 0 && l.ctrlKey === !0;
114
- (l.button === 2 || i) && n.preventDefault();
115
- }),
116
- onFocusOutside: g(
117
- e.onFocusOutside,
118
- (n) => n.preventDefault()
119
- )
120
- }
121
- );
122
- }
123
- ), de = c.forwardRef(
124
- (e, o) => {
125
- const s = d(u, e.__scopeDialog), t = c.useRef(!1), r = c.useRef(!1);
126
- return /* @__PURE__ */ a(
127
- S,
128
- {
129
- ...e,
130
- ref: o,
131
- trapFocus: !1,
132
- disableOutsidePointerEvents: !1,
133
- onCloseAutoFocus: (n) => {
134
- e.onCloseAutoFocus?.(n), n.defaultPrevented || (t.current || s.triggerRef.current?.focus(), n.preventDefault()), t.current = !1, r.current = !1;
135
- },
136
- onInteractOutside: (n) => {
137
- e.onInteractOutside?.(n), n.defaultPrevented || (t.current = !0, n.detail.originalEvent.type === "pointerdown" && (r.current = !0));
138
- const l = n.target;
139
- s.triggerRef.current?.contains(l) && n.preventDefault(), n.detail.originalEvent.type === "focusin" && r.current && n.preventDefault();
140
- }
141
- }
142
- );
143
- }
144
- ), S = c.forwardRef(
145
- (e, o) => {
146
- const { __scopeDialog: s, trapFocus: t, onOpenAutoFocus: r, onCloseAutoFocus: n, ...l } = e, i = d(u, s), p = c.useRef(null), C = x(o, p);
147
- return oe(), /* @__PURE__ */ f(G, { children: [
148
- /* @__PURE__ */ a(
149
- te,
150
- {
151
- asChild: !0,
152
- loop: !0,
153
- trapped: t,
154
- onMountAutoFocus: r,
155
- onUnmountAutoFocus: n,
156
- children: /* @__PURE__ */ a(
157
- ne,
158
- {
159
- role: "dialog",
160
- id: i.contentId,
161
- "aria-describedby": i.descriptionId,
162
- "aria-labelledby": i.titleId,
163
- "data-state": R(i.open),
164
- ...l,
165
- ref: C,
166
- onDismiss: () => i.onOpenChange(!1)
167
- }
168
- )
169
- }
170
- ),
171
- /* @__PURE__ */ f(G, { children: [
172
- /* @__PURE__ */ a(fe, { titleId: i.titleId }),
173
- /* @__PURE__ */ a(ge, { contentRef: p, descriptionId: i.descriptionId })
174
- ] })
175
- ] });
176
- }
177
- ), P = "DialogTitle", F = c.forwardRef(
178
- (e, o) => {
179
- const { __scopeDialog: s, ...t } = e, r = d(P, s);
180
- return /* @__PURE__ */ a(_.h2, { id: r.titleId, ...t, ref: o });
181
- }
182
- );
183
- F.displayName = P;
184
- var L = "DialogDescription", ue = c.forwardRef(
185
- (e, o) => {
186
- const { __scopeDialog: s, ...t } = e, r = d(L, s);
187
- return /* @__PURE__ */ a(_.p, { id: r.descriptionId, ...t, ref: o });
188
- }
189
- );
190
- ue.displayName = L;
191
- var W = "DialogClose", B = c.forwardRef(
192
- (e, o) => {
193
- const { __scopeDialog: s, ...t } = e, r = d(W, s);
194
- return /* @__PURE__ */ a(
195
- _.button,
196
- {
197
- type: "button",
198
- ...t,
199
- ref: o,
200
- onClick: g(e.onClick, () => r.onOpenChange(!1))
201
- }
202
- );
203
- }
204
- );
205
- B.displayName = W;
206
- function R(e) {
207
- return e ? "open" : "closed";
208
- }
209
- var $ = "DialogTitleWarning", [lo, j] = se($, {
210
- contentName: u,
211
- titleName: P,
212
- docsSlug: "dialog"
213
- }), fe = ({ titleId: e }) => {
214
- const o = j($), s = `\`${o.contentName}\` requires a \`${o.titleName}\` for the component to be accessible for screen reader users.
215
-
216
- If you want to hide the \`${o.titleName}\`, you can wrap it with our VisuallyHidden component.
217
-
218
- For more information, see https://radix-ui.com/primitives/docs/components/${o.docsSlug}`;
219
- return c.useEffect(() => {
220
- e && (document.getElementById(e) || console.error(s));
221
- }, [s, e]), null;
222
- }, pe = "DialogDescriptionWarning", ge = ({ contentRef: e, descriptionId: o }) => {
223
- const t = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${j(pe).contentName}}.`;
224
- return c.useEffect(() => {
225
- const r = e.current?.getAttribute("aria-describedby");
226
- o && r && (document.getElementById(o) || console.warn(t));
227
- }, [t, e, o]), null;
228
- }, _e = U, he = I, me = A, Ce = M, ve = T, ye = F, we = B;
229
- const xe = "wUsx_G_bottom", De = "wUsx_G_bottomLinks", be = "wUsx_G_cookiePolicy", Pe = "wUsx_G_cookiePolicyClose", Re = "wUsx_G_copyright", Ge = "wUsx_G_discord", Ee = "wUsx_G_discordAvatars", Oe = "wUsx_G_discordAvatarStatus", Ue = "wUsx_G_discordContent", Ne = "wUsx_G_discordJoin", Ie = "wUsx_G_discordMembers", ke = "wUsx_G_discordPlus", Ae = "wUsx_G_error", Me = "wUsx_G_footer", Te = "wUsx_G_help", Se = "wUsx_G_helpBall", Fe = "wUsx_G_helpContent", Le = "wUsx_G_helpItem", We = "wUsx_G_helpWays", Be = "wUsx_G_highcharts", $e = "wUsx_G_links", je = "wUsx_G_logo", Je = "wUsx_G_newsletter", qe = "wUsx_G_newsletterContent", He = "wUsx_G_newsletterError", Ve = "wUsx_G_norway", Xe = "wUsx_G_notCharts", Ke = "wUsx_G_online", Ye = "wUsx_G_socials", Ze = "wUsx_G_success", ze = "wUsx_G_tabletBottomLeft", Qe = "wUsx_G_tagged", eo = "wUsx_G_top", oo = "wUsx_G_youtube", to = "wUsx_G_youtubeContent", no = "wUsx_G_youtubeOverlay", w = {
230
- bottom: xe,
231
- bottomLinks: De,
232
- cookiePolicy: be,
233
- cookiePolicyClose: Pe,
234
- copyright: Re,
235
- discord: Ge,
236
- discordAvatars: Ee,
237
- discordAvatarStatus: Oe,
238
- discordContent: Ue,
239
- discordJoin: Ne,
240
- discordMembers: Ie,
241
- discordPlus: ke,
242
- error: Ae,
243
- footer: Me,
244
- help: Te,
245
- helpBall: Se,
246
- helpContent: Fe,
247
- helpItem: Le,
248
- helpWays: We,
249
- highcharts: Be,
250
- links: $e,
251
- logo: je,
252
- newsletter: Je,
253
- newsletterContent: qe,
254
- newsletterError: He,
255
- norway: Ve,
256
- notCharts: Xe,
257
- online: Ke,
258
- socials: Ye,
259
- success: Ze,
260
- tabletBottomLeft: ze,
261
- tagged: Qe,
262
- top: eo,
263
- youtube: oo,
264
- youtubeContent: to,
265
- youtubeOverlay: no
266
- };
267
- function uo() {
268
- const [e, o] = q(!1), s = H(null);
269
- return E(() => {
270
- const t = () => o(!0);
271
- return document.addEventListener("hcCookiePolicy", t), () => document.removeEventListener("hcCookiePolicy", t);
272
- }, []), E(() => {
273
- queueMicrotask(() => {
274
- if (e && s.current) {
275
- const t = document.createElement("script");
276
- t.src = "https://consent.cookiebot.com/8be0770c-8b7f-4e2d-aeb5-2cfded81e177/cd.js", s.current.appendChild(t);
277
- }
278
- });
279
- }, [e]), /* @__PURE__ */ f(_e, { open: e, onOpenChange: o, children: [
280
- /* @__PURE__ */ a(he, { asChild: !0, children: /* @__PURE__ */ a("button", { id: "cookiePolicyModal", children: "Cookie Policy" }) }),
281
- /* @__PURE__ */ f(me, { children: [
282
- /* @__PURE__ */ a(Ce, { className: w.youtubeOverlay }),
283
- /* @__PURE__ */ f(
284
- ve,
285
- {
286
- className: w.cookiePolicy,
287
- "aria-describedby": void 0,
288
- children: [
289
- /* @__PURE__ */ a(we, { asChild: !0, children: /* @__PURE__ */ f(X, { className: w.cookiePolicyClose, children: [
290
- "Close",
291
- /* @__PURE__ */ a(V, {})
292
- ] }) }),
293
- /* @__PURE__ */ a(ye, { id: "cookiePolicyModalLabel", children: "Cookie Policy" }),
294
- /* @__PURE__ */ a("div", { ref: s })
295
- ]
296
- }
297
- )
298
- ] })
299
- ] });
300
- }
301
- export {
302
- uo as C,
303
- Ce as O,
304
- me as P,
305
- _e as R,
306
- he as T,
307
- ve as a,
308
- ye as b,
309
- w as s
310
- };