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.
- package/dist/CookiePolicyModal-ChXNzv49.js +81 -0
- package/dist/components/Footer/CookiePolicyModal.js +3 -2
- package/dist/components/Footer/index.js +118 -144
- package/dist/components/Header/index.d.ts +1 -2
- package/dist/components/Header/index.js +123 -142
- package/dist/components/PrefPanel/index.js +1 -1
- package/dist/components/Search/index.d.ts +1 -0
- package/dist/components/Search/index.js +5483 -0
- package/dist/highsoft-ui.css +1 -1
- package/dist/index-BSgacgd-.js +234 -0
- package/dist/{index-DdHkr4BN.js → index-CMU31gjG.js} +9 -9
- package/dist/index-C_wmZvxw.js +30 -0
- package/package.json +2 -1
- package/dist/CookiePolicyModal-B0UcoKfp.js +0 -310
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { jsxs as s, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useState as l, useRef as a, useEffect as i } from "react";
|
|
3
|
+
import { X as d } from "./XClose-CCu1vrNS.js";
|
|
4
|
+
import { Button as _ } from "./components/Button/index.js";
|
|
5
|
+
import { R as w, T as h, P as u, O as y, C as x, b as G, a as U } from "./index-BSgacgd-.js";
|
|
6
|
+
const p = "wUsx_G_bottom", m = "wUsx_G_bottomLinks", C = "wUsx_G_cookiePolicy", b = "wUsx_G_cookiePolicyClose", k = "wUsx_G_copyright", f = "wUsx_G_discord", P = "wUsx_G_discordAvatars", g = "wUsx_G_discordAvatarStatus", v = "wUsx_G_discordContent", L = "wUsx_G_discordJoin", B = "wUsx_G_discordMembers", E = "wUsx_G_discordPlus", O = "wUsx_G_error", A = "wUsx_G_footer", M = "wUsx_G_help", S = "wUsx_G_helpBall", R = "wUsx_G_helpContent", j = "wUsx_G_helpItem", I = "wUsx_G_helpWays", J = "wUsx_G_highcharts", N = "wUsx_G_links", T = "wUsx_G_logo", W = "wUsx_G_newsletter", X = "wUsx_G_newsletterContent", q = "wUsx_G_newsletterError", z = "wUsx_G_norway", D = "wUsx_G_notCharts", F = "wUsx_G_online", H = "wUsx_G_socials", K = "wUsx_G_success", Q = "wUsx_G_tabletBottomLeft", V = "wUsx_G_tagged", Y = "wUsx_G_top", Z = "wUsx_G_youtube", $ = "wUsx_G_youtubeContent", oo = "wUsx_G_youtubeOverlay", n = {
|
|
7
|
+
bottom: p,
|
|
8
|
+
bottomLinks: m,
|
|
9
|
+
cookiePolicy: C,
|
|
10
|
+
cookiePolicyClose: b,
|
|
11
|
+
copyright: k,
|
|
12
|
+
discord: f,
|
|
13
|
+
discordAvatars: P,
|
|
14
|
+
discordAvatarStatus: g,
|
|
15
|
+
discordContent: v,
|
|
16
|
+
discordJoin: L,
|
|
17
|
+
discordMembers: B,
|
|
18
|
+
discordPlus: E,
|
|
19
|
+
error: O,
|
|
20
|
+
footer: A,
|
|
21
|
+
help: M,
|
|
22
|
+
helpBall: S,
|
|
23
|
+
helpContent: R,
|
|
24
|
+
helpItem: j,
|
|
25
|
+
helpWays: I,
|
|
26
|
+
highcharts: J,
|
|
27
|
+
links: N,
|
|
28
|
+
logo: T,
|
|
29
|
+
newsletter: W,
|
|
30
|
+
newsletterContent: X,
|
|
31
|
+
newsletterError: q,
|
|
32
|
+
norway: z,
|
|
33
|
+
notCharts: D,
|
|
34
|
+
online: F,
|
|
35
|
+
socials: H,
|
|
36
|
+
success: K,
|
|
37
|
+
tabletBottomLeft: Q,
|
|
38
|
+
tagged: V,
|
|
39
|
+
top: Y,
|
|
40
|
+
youtube: Z,
|
|
41
|
+
youtubeContent: $,
|
|
42
|
+
youtubeOverlay: oo
|
|
43
|
+
};
|
|
44
|
+
function ro() {
|
|
45
|
+
const [e, r] = l(!1), c = a(null);
|
|
46
|
+
return i(() => {
|
|
47
|
+
const t = () => r(!0);
|
|
48
|
+
return document.addEventListener("hcCookiePolicy", t), () => document.removeEventListener("hcCookiePolicy", t);
|
|
49
|
+
}, []), i(() => {
|
|
50
|
+
queueMicrotask(() => {
|
|
51
|
+
if (e && c.current) {
|
|
52
|
+
const t = document.createElement("script");
|
|
53
|
+
t.src = "https://consent.cookiebot.com/8be0770c-8b7f-4e2d-aeb5-2cfded81e177/cd.js", c.current.appendChild(t);
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
}, [e]), /* @__PURE__ */ s(w, { open: e, onOpenChange: r, children: [
|
|
57
|
+
/* @__PURE__ */ o(h, { asChild: !0, children: /* @__PURE__ */ o("button", { id: "cookiePolicyModal", children: "Cookie Policy" }) }),
|
|
58
|
+
/* @__PURE__ */ s(u, { children: [
|
|
59
|
+
/* @__PURE__ */ o(y, { className: n.youtubeOverlay }),
|
|
60
|
+
/* @__PURE__ */ s(
|
|
61
|
+
x,
|
|
62
|
+
{
|
|
63
|
+
className: n.cookiePolicy,
|
|
64
|
+
"aria-describedby": void 0,
|
|
65
|
+
children: [
|
|
66
|
+
/* @__PURE__ */ o(G, { asChild: !0, children: /* @__PURE__ */ s(_, { className: n.cookiePolicyClose, children: [
|
|
67
|
+
"Close",
|
|
68
|
+
/* @__PURE__ */ o(d, {})
|
|
69
|
+
] }) }),
|
|
70
|
+
/* @__PURE__ */ o(U, { children: /* @__PURE__ */ o("span", { id: "cookiePolicyModalLabel", children: "Cookie Policy" }) }),
|
|
71
|
+
/* @__PURE__ */ o("div", { ref: c })
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
)
|
|
75
|
+
] })
|
|
76
|
+
] });
|
|
77
|
+
}
|
|
78
|
+
export {
|
|
79
|
+
ro as C,
|
|
80
|
+
n as s
|
|
81
|
+
};
|
|
@@ -2,7 +2,8 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import "../../XClose-CCu1vrNS.js";
|
|
4
4
|
import "../Button/index.js";
|
|
5
|
-
import { C as
|
|
5
|
+
import { C as e } from "../../CookiePolicyModal-ChXNzv49.js";
|
|
6
|
+
import "../../index-BSgacgd-.js";
|
|
6
7
|
export {
|
|
7
|
-
|
|
8
|
+
e as default
|
|
8
9
|
};
|