highsoft-ui 1.0.78 → 1.0.80

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,23 @@
1
+ import { _ as t } from "./extends-hS2Bh-Yp.js";
2
+ import "react";
3
+ import { jsx as r } from "react/jsx-runtime";
4
+ var h = function(o) {
5
+ return /* @__PURE__ */ r("svg", t({
6
+ xmlns: "http://www.w3.org/2000/svg",
7
+ width: 24,
8
+ height: 24,
9
+ fill: "none",
10
+ viewBox: "0 0 24 24"
11
+ }, o, {
12
+ children: /* @__PURE__ */ r("path", {
13
+ stroke: "currentColor",
14
+ strokeLinecap: "round",
15
+ strokeLinejoin: "round",
16
+ strokeWidth: 2,
17
+ d: "M20 6 9 17l-5-5"
18
+ })
19
+ }));
20
+ };
21
+ export {
22
+ h as C
23
+ };
@@ -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
+ };
@@ -0,0 +1,23 @@
1
+ import { _ as t } from "./extends-hS2Bh-Yp.js";
2
+ import "react";
3
+ import { jsx as o } from "react/jsx-runtime";
4
+ var l = function(r) {
5
+ return /* @__PURE__ */ o("svg", t({
6
+ xmlns: "http://www.w3.org/2000/svg",
7
+ width: 24,
8
+ height: 24,
9
+ fill: "none",
10
+ viewBox: "0 0 24 24"
11
+ }, r, {
12
+ children: /* @__PURE__ */ o("path", {
13
+ stroke: "currentColor",
14
+ strokeLinecap: "round",
15
+ strokeLinejoin: "round",
16
+ strokeWidth: 2,
17
+ d: "M18 6 6 18M6 6l12 12"
18
+ })
19
+ }));
20
+ };
21
+ export {
22
+ l as X
23
+ };
@@ -0,0 +1 @@
1
+ export default function CookiePolicy(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import "react/jsx-runtime";
2
+ import "react";
3
+ import "../../XClose-CCu1vrNS.js";
4
+ import "../Button/index.js";
5
+ import { C as e } from "../../CookiePolicyModal-ChXNzv49.js";
6
+ import "../../index-BSgacgd-.js";
7
+ export {
8
+ e as default
9
+ };