@anywayseo/tools 5.5.0 → 5.6.0
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/components/base/h1/index.d.ts +4 -0
- package/dist/components/base/h2/index.d.ts +4 -0
- package/dist/components/base/h3/index.d.ts +4 -0
- package/dist/components/base/index.d.ts +8 -0
- package/dist/components/base/link/index.d.ts +5 -1
- package/dist/components/base/link/utils.d.ts +1 -0
- package/dist/components/base/ol/index.d.ts +4 -0
- package/dist/components/base/p/index.d.ts +4 -0
- package/dist/components/base/ul/index.d.ts +4 -0
- package/dist/components/index.cjs +21 -9
- package/dist/components/index.d.ts +1 -3
- package/dist/components/index.mjs +27 -15
- package/dist/components/{contact-form → pages/contacts/contact-form}/index.d.ts +1 -1
- package/dist/components/pages/contacts/index.d.ts +3 -0
- package/dist/components/pages/cookie-policy/index.d.ts +3 -0
- package/dist/components/pages/index.d.ts +5 -0
- package/dist/components/pages/privacy-policy/index.d.ts +6 -0
- package/dist/components/pages/terms-and-conditions/index.d.ts +6 -0
- package/dist/hooks/index.cjs +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/i18n/index.cjs +10 -5
- package/dist/i18n/index.mjs +10 -5
- package/dist/i18n/resources/bg/index.d.ts +280 -0
- package/dist/i18n/resources/da/index.d.ts +280 -0
- package/dist/i18n/resources/de/index.d.ts +168 -0
- package/dist/i18n/resources/en/index.d.ts +168 -0
- package/dist/i18n/resources/fi/index.d.ts +280 -0
- package/dist/i18n/resources/fr/index.d.ts +168 -0
- package/dist/i18n/resources/it/index.d.ts +168 -0
- package/dist/i18n/resources/ka/index.d.ts +280 -0
- package/dist/i18n/resources/pt/index.d.ts +280 -0
- package/dist/i18n/resources/ru/index.d.ts +168 -0
- package/dist/{index-CAfBnNV6.js → index-5J1CqqcW.js} +1 -1
- package/dist/index-B1PwYYQt.mjs +24 -0
- package/dist/index-B6wz_B9_.js +145 -0
- package/dist/index-BEjKnOZA.mjs +28 -0
- package/dist/{index-BmaWfWLV.mjs → index-Bph7a3PR.mjs} +4 -0
- package/dist/index-C-ri0Fgy.js +23 -0
- package/dist/index-C2T70CMa.mjs +44 -0
- package/dist/index-COv56GyV.mjs +146 -0
- package/dist/{index-DZBLiQFh.js → index-CR5rM7at.js} +21 -6
- package/dist/index-CWMHJGbL.mjs +2957 -0
- package/dist/{index-BICcOaT7.js → index-CkRY_NXp.js} +0 -21
- package/dist/index-CyuHme_p.js +1059 -0
- package/dist/{index-BcFDxh8P.js → index-D4zJ5RBA.js} +13 -26
- package/dist/index-DDg_PkD2.js +27 -0
- package/dist/index-DMR4Ptkt.js +2956 -0
- package/dist/{index-tj12BA6U.mjs → index-DYS7zQW4.mjs} +1 -1
- package/dist/{index-At00w6EN.js → index-DgrIJs-a.js} +4 -0
- package/dist/{index-BCK4kr6V.mjs → index-Drz_7u2p.mjs} +3 -24
- package/dist/{index-8_-KtKsW.mjs → index-HLGPI9-S.mjs} +23 -8
- package/dist/{index-cEaX-HbN.mjs → index-JUwyHkmj.mjs} +222 -691
- package/dist/index.cjs +61 -45
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +52 -36
- package/dist/{components/layout → layout}/footer/navigation/index.d.ts +1 -1
- package/dist/layout/header/locale-switcher/icons/brazil/index.d.ts +2 -0
- package/dist/layout/header/locale-switcher/icons/bulgaria/index.d.ts +2 -0
- package/dist/layout/header/locale-switcher/icons/denmark/index.d.ts +2 -0
- package/dist/layout/header/locale-switcher/icons/finland/index.d.ts +2 -0
- package/dist/layout/header/locale-switcher/icons/france/index.d.ts +2 -0
- package/dist/layout/header/locale-switcher/icons/georgia/index.d.ts +2 -0
- package/dist/layout/header/locale-switcher/icons/germany/index.d.ts +2 -0
- package/dist/layout/header/locale-switcher/icons/globe/index.d.ts +2 -0
- package/dist/layout/header/locale-switcher/icons/index.d.ts +10 -0
- package/dist/layout/header/locale-switcher/icons/italy/index.d.ts +2 -0
- package/dist/layout/header/locale-switcher/icons/russia/index.d.ts +2 -0
- package/dist/{components/layout → layout}/header/locale-switcher/index.d.ts +1 -1
- package/dist/{components/layout → layout}/header/locale-switcher/utils.d.ts +1 -1
- package/dist/{components/layout → layout}/header/navigation/desktop/index.d.ts +1 -1
- package/dist/{components/layout → layout}/header/navigation/desktop/nav-list/index.d.ts +1 -1
- package/dist/{components/layout → layout}/header/navigation/index.d.ts +1 -1
- package/dist/{components/layout → layout}/header/navigation/mobile/index.d.ts +1 -1
- package/dist/{components/layout → layout}/header/navigation/mobile/nav-list/index.d.ts +1 -1
- package/dist/{components/layout → layout}/header/navigation/nav-link/index.d.ts +1 -1
- package/dist/{components/layout → layout}/hero/index.d.ts +1 -1
- package/dist/layout/index.cjs +596 -0
- package/dist/layout/index.mjs +597 -0
- package/dist/providers/index.cjs +2 -2
- package/dist/providers/index.mjs +2 -2
- package/dist/providers/mdx-provider/types.d.ts +3 -1
- package/dist/providers/mdx-provider/utils.d.ts +1 -2
- package/dist/types/components/strapi-component/index.d.ts +1 -1
- package/dist/types/i18n/index.d.ts +1 -1
- package/dist/utils/index.cjs +12 -10
- package/dist/utils/index.mjs +10 -8
- package/dist/utils/navigation/index.d.ts +1 -0
- package/package.json +7 -1
- package/dist/components/layout/header/locale-switcher/icons/earth/index.d.ts +0 -2
- package/dist/components/layout/header/locale-switcher/icons/france/index.d.ts +0 -2
- package/dist/components/layout/header/locale-switcher/icons/germany/index.d.ts +0 -2
- package/dist/components/layout/header/locale-switcher/icons/globe/index.d.ts +0 -2
- package/dist/components/layout/header/locale-switcher/icons/index.d.ts +0 -6
- package/dist/components/layout/header/locale-switcher/icons/italy/index.d.ts +0 -2
- package/dist/components/layout/header/locale-switcher/icons/russia/index.d.ts +0 -2
- package/dist/index-Bts2DBYS.mjs +0 -637
- package/dist/index-CJVr79Z2.js +0 -636
- package/dist/index-C_FekfFC.mjs +0 -57
- package/dist/index-D86anUPd.js +0 -1528
- /package/dist/components/{layout → base}/container/index.d.ts +0 -0
- /package/dist/components/{layout → base}/logo/index.d.ts +0 -0
- /package/dist/components/{not-found → pages/not-found}/index.d.ts +0 -0
- /package/dist/{components/layout → layout}/content/index.d.ts +0 -0
- /package/dist/{components/layout → layout}/footer/brand/index.d.ts +0 -0
- /package/dist/{components/layout → layout}/footer/copyright/index.d.ts +0 -0
- /package/dist/{components/layout → layout}/footer/disclaimer/index.d.ts +0 -0
- /package/dist/{components/layout → layout}/footer/extra/index.d.ts +0 -0
- /package/dist/{components/layout → layout}/footer/index.d.ts +0 -0
- /package/dist/{components/layout → layout}/header/brand/index.d.ts +0 -0
- /package/dist/{components/layout → layout}/header/index.d.ts +0 -0
- /package/dist/{components/layout → layout}/header/theme-toggler/index.d.ts +0 -0
- /package/dist/{components/layout → layout}/index.d.ts +0 -0
- /package/dist/{components/layout → layout}/main/index.d.ts +0 -0
- /package/dist/{components/layout → layout}/scroll-to-top/index.d.ts +0 -0
|
@@ -1,101 +1,20 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Box, Collapse, Text, Button, Flex, Stack, Center as Center$1, SimpleGrid, Card, CardHeader, Heading, CardBody, Popover, PopoverTrigger, Portal, PopoverContent, PopoverBody, CardFooter, Accordion, AccordionItem, AccordionButton, AccordionIcon, AccordionPanel, LinkBox, LinkOverlay, IconButton, AbsoluteCenter, Spinner, useDisclosure, Divider, Circle, List as List$1, ListItem, useToast, useColorModeValue, VStack, FormControl, FormLabel, InputGroup, InputLeftElement, Input, Textarea, ListIcon, TableContainer, Table as Table$1, Thead, Tr, Th, Tbody, Td, TableCaption, Tabs as Tabs$1, TabList, Tab, TabPanels, TabPanel } from "@chakra-ui/react";
|
|
3
3
|
import { useTranslation } from "react-i18next";
|
|
4
4
|
import "react-medium-image-zoom";
|
|
5
|
-
import { I as Image,
|
|
6
|
-
import { useRef, useState, useLayoutEffect, Fragment as Fragment$1, useMemo, forwardRef, useEffect } from "react";
|
|
7
|
-
import { A as Animation } from "./index-BJRvnR8Q.mjs";
|
|
8
|
-
import { a as GameCharacteristic } from "./index-Bts2DBYS.mjs";
|
|
5
|
+
import { I as Image, L as Link, u as usePageContext, a as useSiteContext } from "./index-HLGPI9-S.mjs";
|
|
9
6
|
import { useMDXComponents } from "@mdx-js/react";
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
7
|
+
import { useRef, useState, useLayoutEffect, Fragment as Fragment$1, useMemo } from "react";
|
|
8
|
+
import "./index-BJRvnR8Q.mjs";
|
|
9
|
+
import { a as GameCharacteristic, G as GameVolatility } from "./index-CWMHJGbL.mjs";
|
|
10
|
+
import { b as SocialNetworks, L as LinkButton } from "./index-COv56GyV.mjs";
|
|
11
|
+
import { H as Heading1, P as Paragraph, a as Heading2, U as Unordered, O as Ordered } from "./index-BEjKnOZA.mjs";
|
|
12
|
+
import { f as formatDate, a as getCurrentMonth, g as getCurrentYear } from "./index-B1PwYYQt.mjs";
|
|
13
|
+
import { StarIcon, CloseIcon, ViewOffIcon, ViewIcon, EmailIcon, WarningIcon, CheckCircleIcon } from "@chakra-ui/icons";
|
|
14
|
+
import { u as usePrimaryColors } from "./index-DYS7zQW4.mjs";
|
|
15
|
+
import { b as getSeededRandomComparator, a as randomComparator, g as getCurrencySymbol, f as formatNumber } from "./index-Drz_7u2p.mjs";
|
|
14
16
|
import { t } from "i18next";
|
|
15
17
|
import Markdown from "react-markdown";
|
|
16
|
-
const FacebookIcon = (props) => {
|
|
17
|
-
return /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", "aria-label": "Facebook", ...props, children: [
|
|
18
|
-
/* @__PURE__ */ jsx("rect", { x: "1", y: "1", width: "22", height: "22", rx: "5", fill: "none", stroke: "currentColor", strokeWidth: "2" }),
|
|
19
|
-
/* @__PURE__ */ jsx(
|
|
20
|
-
"path",
|
|
21
|
-
{
|
|
22
|
-
d: "M13.5 8h2V6h-2c-2.2 0-3.5 1.3-3.5 3.5V11H8v2h2v5h2v-5h2l.5-2h-2v-1.3c0-.5.2-.7 1-.7Z",
|
|
23
|
-
fill: "currentColor"
|
|
24
|
-
}
|
|
25
|
-
)
|
|
26
|
-
] });
|
|
27
|
-
};
|
|
28
|
-
const InstagramIcon = (props) => {
|
|
29
|
-
return /* @__PURE__ */ jsxs(
|
|
30
|
-
"svg",
|
|
31
|
-
{
|
|
32
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
33
|
-
width: "24",
|
|
34
|
-
height: "24",
|
|
35
|
-
viewBox: "0 0 24 24",
|
|
36
|
-
"aria-label": "Instagram",
|
|
37
|
-
...props,
|
|
38
|
-
children: [
|
|
39
|
-
/* @__PURE__ */ jsx("rect", { x: "1", y: "1", width: "22", height: "22", rx: "5", fill: "none", stroke: "currentColor", strokeWidth: "2" }),
|
|
40
|
-
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "4", fill: "none", stroke: "currentColor", strokeWidth: "2" }),
|
|
41
|
-
/* @__PURE__ */ jsx("circle", { cx: "17", cy: "7", r: "1.25", fill: "currentColor" })
|
|
42
|
-
]
|
|
43
|
-
}
|
|
44
|
-
);
|
|
45
|
-
};
|
|
46
|
-
const PinterestIcon = (props) => {
|
|
47
|
-
return /* @__PURE__ */ jsx(
|
|
48
|
-
"svg",
|
|
49
|
-
{
|
|
50
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
51
|
-
width: "24",
|
|
52
|
-
height: "24",
|
|
53
|
-
viewBox: "0 0 24 24",
|
|
54
|
-
"aria-label": "Pinterest",
|
|
55
|
-
...props,
|
|
56
|
-
children: /* @__PURE__ */ jsx(
|
|
57
|
-
"path",
|
|
58
|
-
{
|
|
59
|
-
fill: "currentColor",
|
|
60
|
-
d: "M12 0C5.373 0 0 5.373 0 12c0 4.99 3.657 9.128 8.438 10.122-.117-.858-.222-2.178.047-3.116.242-.83 1.557-5.288 1.557-5.288s-.396-.792-.396-1.963c0-1.84 1.067-3.215 2.395-3.215 1.13 0 1.675.848 1.675 1.866 0 1.138-.724 2.842-1.097 4.421-.312 1.319.663 2.395 1.965 2.395 2.358 0 3.947-3.032 3.947-6.617 0-2.727-1.84-4.769-5.178-4.769-3.774 0-6.134 2.822-6.134 5.97 0 1.086.322 1.852.827 2.443.232.274.264.384.18.698-.06.23-.197.786-.256 1.007-.084.322-.34.437-.628.318-1.75-.714-2.564-2.63-2.564-4.785 0-3.555 2.998-7.817 8.946-7.817 4.782 0 7.923 3.454 7.923 7.168 0 4.924-2.74 8.6-6.781 8.6-1.356 0-2.63-.73-3.066-1.565l-.833 3.173c-.301 1.147-1.118 2.582-1.667 3.455C9.708 23.812 10.828 24 12 24c6.627 0 12-5.373 12-12S18.627 0 12 0z"
|
|
61
|
-
}
|
|
62
|
-
)
|
|
63
|
-
}
|
|
64
|
-
);
|
|
65
|
-
};
|
|
66
|
-
const XcomIcon = (props) => {
|
|
67
|
-
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", "aria-label": "X", ...props, children: /* @__PURE__ */ jsx(
|
|
68
|
-
"path",
|
|
69
|
-
{
|
|
70
|
-
fill: "currentColor",
|
|
71
|
-
d: "M18.244 2H21l-6.57 7.498L22 22h-5.657l-4.403-5.808L6.06 22H3.302l7.02-8.006L2 2h5.822l3.983 5.293L18.244 2zM16.97 20h1.9L8.153 4h-1.9L16.97 20z"
|
|
72
|
-
}
|
|
73
|
-
) });
|
|
74
|
-
};
|
|
75
|
-
const YoutubeIcon = (props) => {
|
|
76
|
-
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", "aria-label": "YouTube", ...props, children: /* @__PURE__ */ jsx(
|
|
77
|
-
"path",
|
|
78
|
-
{
|
|
79
|
-
fill: "currentColor",
|
|
80
|
-
d: "M23.498 6.186a2.974 2.974 0 0 0-2.095-2.107C19.505 3.5 12 3.5 12 3.5s-7.505 0-9.403.579A2.974 2.974 0 0 0 .502 6.186C0 8.09 0 12 0 12s0 3.91.502 5.814a2.974 2.974 0 0 0 2.095 2.107C4.495 20.5 12 20.5 12 20.5s7.505 0 9.403-.579a2.974 2.974 0 0 0 2.095-2.107C24 15.91 24 12 24 12s0-3.91-.502-5.814zM9.75 15.02V8.98L15.5 12l-5.75 3.02z"
|
|
81
|
-
}
|
|
82
|
-
) });
|
|
83
|
-
};
|
|
84
|
-
const SocialNetworkMap = {
|
|
85
|
-
facebook: FacebookIcon,
|
|
86
|
-
instagram: InstagramIcon,
|
|
87
|
-
pinterest: PinterestIcon,
|
|
88
|
-
x: XcomIcon,
|
|
89
|
-
youtube: YoutubeIcon
|
|
90
|
-
};
|
|
91
|
-
const SocialNetwork = ({ kind, url }) => {
|
|
92
|
-
const Icon2 = SocialNetworkMap[kind];
|
|
93
|
-
return /* @__PURE__ */ jsx(Link, { href: url, target: "_blank", rel: "noopener noreferrer nofollow", children: /* @__PURE__ */ jsx(Icon2, {}) });
|
|
94
|
-
};
|
|
95
|
-
const SocialNetworks = ({ socialNetworks, ...flexProps }) => {
|
|
96
|
-
const uniqueSocialNetworks = [...new Map(socialNetworks.map((item) => [item.kind, item])).values()];
|
|
97
|
-
return /* @__PURE__ */ jsx(Flex, { gap: 2, ...flexProps, children: uniqueSocialNetworks.map((socialNetwork) => /* @__PURE__ */ jsx(SocialNetwork, { ...socialNetwork }, socialNetwork.kind)) });
|
|
98
|
-
};
|
|
99
18
|
const ONE_LINE_HEIGHT = 24;
|
|
100
19
|
const Bio = ({ content, maxLines = 1 }) => {
|
|
101
20
|
const ref = useRef(null);
|
|
@@ -150,50 +69,6 @@ const defaultColumns = { base: 1, sm: 2, md: 3, lg: 4, xl: 5 };
|
|
|
150
69
|
const Grid = ({ items, columns = defaultColumns, gap, render, getKey, ...boxProps }) => {
|
|
151
70
|
return /* @__PURE__ */ jsx(SimpleGrid, { as: "ul", columns, spacing: gap, p: 0, m: 0, listStyleType: "none", ...boxProps, children: items.map((item, index) => /* @__PURE__ */ jsx(Box, { as: "li", children: render(item) }, getKey ? getKey(item) : index)) });
|
|
152
71
|
};
|
|
153
|
-
const LinkButton = ({
|
|
154
|
-
label,
|
|
155
|
-
href,
|
|
156
|
-
linkType = "redirect",
|
|
157
|
-
size = "auto",
|
|
158
|
-
width = "auto",
|
|
159
|
-
textTransform,
|
|
160
|
-
textDecoration,
|
|
161
|
-
animation,
|
|
162
|
-
onClick,
|
|
163
|
-
...boxProps
|
|
164
|
-
}) => {
|
|
165
|
-
var _a;
|
|
166
|
-
const { config } = useSiteContext();
|
|
167
|
-
const { color, invertedColor } = usePrimaryColors();
|
|
168
|
-
const isInvertedColor = (_a = config == null ? void 0 : config.theme) == null ? void 0 : _a.isInvertedColor;
|
|
169
|
-
const isRedirectLink = linkType === "redirect";
|
|
170
|
-
const isInternalLink = isRelativePath(href);
|
|
171
|
-
const LinkComponent = isInternalLink ? Link$1 : Link;
|
|
172
|
-
const hrefKey = isInternalLink ? "to" : "href";
|
|
173
|
-
const hrefValue = isRedirectLink ? `/follow?to=${href}` : href;
|
|
174
|
-
return /* @__PURE__ */ jsx(
|
|
175
|
-
Button,
|
|
176
|
-
{
|
|
177
|
-
w: width,
|
|
178
|
-
size: size === "auto" ? { base: "sm", md: "lg" } : size,
|
|
179
|
-
bg: "brand.500",
|
|
180
|
-
color: isInvertedColor ? invertedColor : color,
|
|
181
|
-
animation: animation ? Animation[animation.type](animation.params) : void 0,
|
|
182
|
-
textTransform,
|
|
183
|
-
_hover: { textDecoration, bg: "brand.200" },
|
|
184
|
-
_active: { transform: "scale(0.95)" },
|
|
185
|
-
onClick,
|
|
186
|
-
...boxProps,
|
|
187
|
-
...href ? {
|
|
188
|
-
as: LinkComponent,
|
|
189
|
-
[hrefKey]: hrefValue,
|
|
190
|
-
target: isRedirectLink ? "_blank" : "_self",
|
|
191
|
-
rel: isInternalLink ? "" : "noopener noreferrer nofollow"
|
|
192
|
-
} : {},
|
|
193
|
-
children: label
|
|
194
|
-
}
|
|
195
|
-
);
|
|
196
|
-
};
|
|
197
72
|
const AuthorCard = ({ author, ...boxProps }) => {
|
|
198
73
|
const { t: t2 } = useTranslation("author");
|
|
199
74
|
return /* @__PURE__ */ jsxs(Card, { as: "article", variant: "filled", ...boxProps, children: [
|
|
@@ -287,76 +162,6 @@ const BonusCardGrid = ({
|
|
|
287
162
|
}
|
|
288
163
|
);
|
|
289
164
|
};
|
|
290
|
-
const ContactForm = ({ ...boxProps }) => {
|
|
291
|
-
const toast = useToast();
|
|
292
|
-
const { t: t2 } = useTranslation("contactForm");
|
|
293
|
-
function handleSubmit(event) {
|
|
294
|
-
event.preventDefault();
|
|
295
|
-
const form = event.currentTarget;
|
|
296
|
-
const formData = new FormData(form);
|
|
297
|
-
const name = formData.get("name");
|
|
298
|
-
const email = formData.get("email");
|
|
299
|
-
const message = formData.get("message");
|
|
300
|
-
if (name && email && message) {
|
|
301
|
-
form.reset();
|
|
302
|
-
toast({
|
|
303
|
-
title: t2("notification.title", { name }),
|
|
304
|
-
description: t2("notification.description", { email }),
|
|
305
|
-
colorScheme: "brand",
|
|
306
|
-
status: "success",
|
|
307
|
-
duration: 5e3,
|
|
308
|
-
isClosable: true
|
|
309
|
-
});
|
|
310
|
-
} else {
|
|
311
|
-
console.error("Please fill out both fields");
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
return /* @__PURE__ */ jsx(
|
|
315
|
-
Box,
|
|
316
|
-
{
|
|
317
|
-
as: "form",
|
|
318
|
-
borderRadius: "lg",
|
|
319
|
-
p: 8,
|
|
320
|
-
color: useColorModeValue("gray.700", "whiteAlpha.900"),
|
|
321
|
-
bg: useColorModeValue("white", "gray.700"),
|
|
322
|
-
shadow: "base",
|
|
323
|
-
onSubmit: handleSubmit,
|
|
324
|
-
...boxProps,
|
|
325
|
-
children: /* @__PURE__ */ jsxs(VStack, { spacing: 4, children: [
|
|
326
|
-
/* @__PURE__ */ jsxs(FormControl, { isRequired: true, children: [
|
|
327
|
-
/* @__PURE__ */ jsx(FormLabel, { children: t2("field.name.label") }),
|
|
328
|
-
/* @__PURE__ */ jsxs(InputGroup, { children: [
|
|
329
|
-
/* @__PURE__ */ jsx(InputLeftElement, { children: /* @__PURE__ */ jsx(
|
|
330
|
-
"svg",
|
|
331
|
-
{
|
|
332
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
333
|
-
width: "16",
|
|
334
|
-
height: "16",
|
|
335
|
-
fill: "currentColor",
|
|
336
|
-
className: "bi bi-person-fill",
|
|
337
|
-
viewBox: "0 0 16 16",
|
|
338
|
-
children: /* @__PURE__ */ jsx("path", { d: "M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6" })
|
|
339
|
-
}
|
|
340
|
-
) }),
|
|
341
|
-
/* @__PURE__ */ jsx(Input, { type: "text", name: "name", placeholder: t2("field.name.placeholder") })
|
|
342
|
-
] })
|
|
343
|
-
] }),
|
|
344
|
-
/* @__PURE__ */ jsxs(FormControl, { isRequired: true, children: [
|
|
345
|
-
/* @__PURE__ */ jsx(FormLabel, { children: t2("field.email.label") }),
|
|
346
|
-
/* @__PURE__ */ jsxs(InputGroup, { children: [
|
|
347
|
-
/* @__PURE__ */ jsx(InputLeftElement, { children: /* @__PURE__ */ jsx(EmailIcon, {}) }),
|
|
348
|
-
/* @__PURE__ */ jsx(Input, { type: "email", name: "email", placeholder: t2("field.email.placeholder") })
|
|
349
|
-
] })
|
|
350
|
-
] }),
|
|
351
|
-
/* @__PURE__ */ jsxs(FormControl, { isRequired: true, children: [
|
|
352
|
-
/* @__PURE__ */ jsx(FormLabel, { children: t2("field.message.label") }),
|
|
353
|
-
/* @__PURE__ */ jsx(Textarea, { name: "message", placeholder: t2("field.message.placeholder"), rows: 6, resize: "none" })
|
|
354
|
-
] }),
|
|
355
|
-
/* @__PURE__ */ jsx(Button, { type: "submit", colorScheme: "brand", width: "full", children: t2("action.send") })
|
|
356
|
-
] })
|
|
357
|
-
}
|
|
358
|
-
);
|
|
359
|
-
};
|
|
360
165
|
const Faq = ({ items, ...boxProps }) => {
|
|
361
166
|
const { bgColor, invertedColor } = usePrimaryColors();
|
|
362
167
|
return /* @__PURE__ */ jsx(Accordion, { allowToggle: true, ...boxProps, children: items.map(({ question, answer }) => {
|
|
@@ -413,7 +218,7 @@ const GameCard = ({ name, description, image, url, height = "auto" }) => {
|
|
|
413
218
|
children: [
|
|
414
219
|
/* @__PURE__ */ jsx(Image, { src: image, alt: name, mode: "thumbnail" }),
|
|
415
220
|
/* @__PURE__ */ jsxs(Box, { as: "section", rounded: "md", p: 4, children: [
|
|
416
|
-
/* @__PURE__ */ jsx(Text, { as: "span", children: url ? /* @__PURE__ */ jsx(LinkOverlay, {
|
|
221
|
+
/* @__PURE__ */ jsx(Text, { as: "span", children: url ? /* @__PURE__ */ jsx(LinkOverlay, { as: Link, to: url, children: name }) : name }),
|
|
417
222
|
!!description && /* @__PURE__ */ jsx(Text, { fontSize: "sm", color: "gray.600", children: description })
|
|
418
223
|
] })
|
|
419
224
|
]
|
|
@@ -623,7 +428,7 @@ function getGameInfoItemValue(key, value, locale) {
|
|
|
623
428
|
if (key === GameCharacteristic.ReleaseDate) {
|
|
624
429
|
formattedValue = formatDate({ value, locale, options: { year: "numeric", month: "long" } });
|
|
625
430
|
}
|
|
626
|
-
if (key === GameCharacteristic.Volatility) {
|
|
431
|
+
if (key === GameCharacteristic.Volatility && Object.values(GameVolatility).includes(value)) {
|
|
627
432
|
formattedValue = stringifyVolatility(value);
|
|
628
433
|
}
|
|
629
434
|
if (!formattedValue) {
|
|
@@ -677,497 +482,216 @@ const HowTo = ({ steps, ...boxProps }) => {
|
|
|
677
482
|
] })
|
|
678
483
|
] }, index)) });
|
|
679
484
|
};
|
|
680
|
-
const
|
|
681
|
-
return /* @__PURE__ */ jsx(
|
|
682
|
-
}
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
};
|
|
686
|
-
const Logo = () => {
|
|
687
|
-
const { metadata } = useSiteContext();
|
|
688
|
-
const { logo } = metadata;
|
|
689
|
-
return /* @__PURE__ */ jsx(Box, { display: "flex", h: { base: 10, md: 14 }, overflow: "hidden", children: /* @__PURE__ */ jsx(Image, { src: logo, alt: "Logo", objectFit: "contain" }) });
|
|
485
|
+
const List = ({ items, bullet = "—", render, ...boxProps }) => {
|
|
486
|
+
return /* @__PURE__ */ jsx(List$1, { pl: 0, ml: 2, ...boxProps, children: items.map((item, index) => /* @__PURE__ */ jsxs(ListItem, { display: "flex", gap: 1, children: [
|
|
487
|
+
/* @__PURE__ */ jsx(Box, { children: bullet }),
|
|
488
|
+
render ? render(item) : item
|
|
489
|
+
] }, index)) });
|
|
690
490
|
};
|
|
691
|
-
const
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
/* @__PURE__ */ jsx(
|
|
491
|
+
const NotFound = () => {
|
|
492
|
+
const { t: t2 } = useTranslation("pageNotFound");
|
|
493
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
494
|
+
/* @__PURE__ */ jsx(Heading1, { children: t2("title") }),
|
|
495
|
+
/* @__PURE__ */ jsxs(Paragraph, { fontSize: "xl", children: [
|
|
496
|
+
t2("description"),
|
|
497
|
+
" ",
|
|
498
|
+
/* @__PURE__ */ jsx(Button, { as: Link, to: "/", variant: "link", colorScheme: "brand", fontSize: "xl", children: t2("action") })
|
|
499
|
+
] })
|
|
695
500
|
] });
|
|
696
501
|
};
|
|
697
|
-
const
|
|
502
|
+
const CookiePolicy = () => {
|
|
503
|
+
const { t: t2 } = useTranslation("pageCookiePolicy");
|
|
698
504
|
const { metadata } = useSiteContext();
|
|
699
|
-
const {
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
505
|
+
const { name: siteName } = metadata;
|
|
506
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
507
|
+
/* @__PURE__ */ jsx(Heading1, { children: t2("title") }),
|
|
508
|
+
/* @__PURE__ */ jsx(Paragraph, { children: t2("text", { siteName }) }),
|
|
509
|
+
/* @__PURE__ */ jsx(Heading2, { children: t2("sectionOne.title", { siteName }) }),
|
|
510
|
+
/* @__PURE__ */ jsx(Paragraph, { children: t2("sectionOne.textOne", { siteName }) }),
|
|
511
|
+
/* @__PURE__ */ jsx(Paragraph, { children: t2("sectionOne.textTwo") }),
|
|
512
|
+
/* @__PURE__ */ jsx(Heading2, { children: t2("sectionTwo.title") }),
|
|
513
|
+
/* @__PURE__ */ jsx(Paragraph, { children: t2("sectionTwo.textOne", { siteName }) }),
|
|
514
|
+
/* @__PURE__ */ jsxs(Unordered, { children: [
|
|
515
|
+
/* @__PURE__ */ jsx("li", { children: t2("sectionTwo.list.itemOne") }),
|
|
516
|
+
/* @__PURE__ */ jsx("li", { children: t2("sectionTwo.list.itemTwo") }),
|
|
517
|
+
/* @__PURE__ */ jsx("li", { children: t2("sectionTwo.list.itemThree") })
|
|
518
|
+
] }),
|
|
519
|
+
/* @__PURE__ */ jsx(Paragraph, { children: t2("sectionTwo.textTwo") }),
|
|
520
|
+
/* @__PURE__ */ jsx(Heading2, { children: t2("sectionThree.title") }),
|
|
521
|
+
/* @__PURE__ */ jsxs(Ordered, { children: [
|
|
522
|
+
/* @__PURE__ */ jsx("li", { children: t2("sectionThree.list.itemOne") }),
|
|
523
|
+
/* @__PURE__ */ jsx("li", { children: t2("sectionThree.list.itemTwo") }),
|
|
524
|
+
/* @__PURE__ */ jsx("li", { children: t2("sectionThree.list.itemThree") }),
|
|
525
|
+
/* @__PURE__ */ jsx("li", { children: t2("sectionThree.list.itemFour") })
|
|
526
|
+
] }),
|
|
527
|
+
/* @__PURE__ */ jsx(Paragraph, { children: t2("sectionThree.text", { siteName }) })
|
|
711
528
|
] });
|
|
712
529
|
};
|
|
713
|
-
const
|
|
714
|
-
|
|
715
|
-
};
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
colorScheme: "gray",
|
|
736
|
-
_hover: { textDecoration: "none", color: "brand.400" },
|
|
737
|
-
children: label
|
|
738
|
-
}
|
|
739
|
-
) }, index))
|
|
530
|
+
const ContactForm = ({ ...boxProps }) => {
|
|
531
|
+
const toast = useToast();
|
|
532
|
+
const { t: t2 } = useTranslation("contactForm");
|
|
533
|
+
function handleSubmit(event) {
|
|
534
|
+
event.preventDefault();
|
|
535
|
+
const form = event.currentTarget;
|
|
536
|
+
const formData = new FormData(form);
|
|
537
|
+
const name = formData.get("name");
|
|
538
|
+
const email = formData.get("email");
|
|
539
|
+
const message = formData.get("message");
|
|
540
|
+
if (name && email && message) {
|
|
541
|
+
form.reset();
|
|
542
|
+
toast({
|
|
543
|
+
title: t2("notification.title", { name }),
|
|
544
|
+
description: t2("notification.description", { email }),
|
|
545
|
+
colorScheme: "brand",
|
|
546
|
+
status: "success",
|
|
547
|
+
duration: 5e3,
|
|
548
|
+
isClosable: true
|
|
549
|
+
});
|
|
550
|
+
} else {
|
|
551
|
+
console.error("Please fill out both fields");
|
|
740
552
|
}
|
|
741
|
-
|
|
742
|
-
};
|
|
743
|
-
const Footer = () => {
|
|
744
|
-
const { metadata, navigation, config } = useSiteContext();
|
|
745
|
-
const { currentLocale } = usePageContext();
|
|
746
|
-
const menu = navigation.footer[currentLocale.code] ?? [];
|
|
747
|
-
const socialNetworks = metadata.socialNetworks ?? [];
|
|
748
|
-
const { extra, showDisclaimer = true } = (config == null ? void 0 : config.footer) ?? {};
|
|
749
|
-
const hasNavigation = !!menu.length;
|
|
750
|
-
const hasSocialNetworks = !!socialNetworks.length;
|
|
751
|
-
const hasExtra = !!extra;
|
|
553
|
+
}
|
|
752
554
|
return /* @__PURE__ */ jsx(
|
|
753
555
|
Box,
|
|
754
556
|
{
|
|
755
|
-
as: "
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
557
|
+
as: "form",
|
|
558
|
+
borderRadius: "lg",
|
|
559
|
+
p: 8,
|
|
560
|
+
color: useColorModeValue("gray.700", "whiteAlpha.900"),
|
|
561
|
+
bg: useColorModeValue("white", "gray.700"),
|
|
562
|
+
shadow: "base",
|
|
563
|
+
onSubmit: handleSubmit,
|
|
564
|
+
...boxProps,
|
|
565
|
+
children: /* @__PURE__ */ jsxs(VStack, { spacing: 4, children: [
|
|
566
|
+
/* @__PURE__ */ jsxs(FormControl, { isRequired: true, children: [
|
|
567
|
+
/* @__PURE__ */ jsx(FormLabel, { children: t2("field.name.label") }),
|
|
568
|
+
/* @__PURE__ */ jsxs(InputGroup, { children: [
|
|
569
|
+
/* @__PURE__ */ jsx(InputLeftElement, { children: /* @__PURE__ */ jsx(
|
|
570
|
+
"svg",
|
|
571
|
+
{
|
|
572
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
573
|
+
width: "16",
|
|
574
|
+
height: "16",
|
|
575
|
+
fill: "currentColor",
|
|
576
|
+
className: "bi bi-person-fill",
|
|
577
|
+
viewBox: "0 0 16 16",
|
|
578
|
+
children: /* @__PURE__ */ jsx("path", { d: "M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6" })
|
|
579
|
+
}
|
|
580
|
+
) }),
|
|
581
|
+
/* @__PURE__ */ jsx(Input, { type: "text", name: "name", placeholder: t2("field.name.placeholder") })
|
|
582
|
+
] })
|
|
583
|
+
] }),
|
|
584
|
+
/* @__PURE__ */ jsxs(FormControl, { isRequired: true, children: [
|
|
585
|
+
/* @__PURE__ */ jsx(FormLabel, { children: t2("field.email.label") }),
|
|
586
|
+
/* @__PURE__ */ jsxs(InputGroup, { children: [
|
|
587
|
+
/* @__PURE__ */ jsx(InputLeftElement, { children: /* @__PURE__ */ jsx(EmailIcon, {}) }),
|
|
588
|
+
/* @__PURE__ */ jsx(Input, { type: "email", name: "email", placeholder: t2("field.email.placeholder") })
|
|
589
|
+
] })
|
|
590
|
+
] }),
|
|
591
|
+
/* @__PURE__ */ jsxs(FormControl, { isRequired: true, children: [
|
|
592
|
+
/* @__PURE__ */ jsx(FormLabel, { children: t2("field.message.label") }),
|
|
593
|
+
/* @__PURE__ */ jsx(Textarea, { name: "message", placeholder: t2("field.message.placeholder"), rows: 6, resize: "none" })
|
|
594
|
+
] }),
|
|
595
|
+
/* @__PURE__ */ jsx(Button, { type: "submit", colorScheme: "brand", width: "full", children: t2("action.send") })
|
|
766
596
|
] })
|
|
767
597
|
}
|
|
768
598
|
);
|
|
769
599
|
};
|
|
770
|
-
const
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
/* @__PURE__ */ jsx(
|
|
776
|
-
/* @__PURE__ */ jsxs("g", { mask: "url(#circleFlagsFr0)", children: [
|
|
777
|
-
/* @__PURE__ */ jsx("path", { fill: "#eee", d: "M167 0h178l25.9 252.3L345 512H167l-29.8-253.4z" }),
|
|
778
|
-
/* @__PURE__ */ jsx("path", { fill: "#0052b4", d: "M0 0h167v512H0z" }),
|
|
779
|
-
/* @__PURE__ */ jsx("path", { fill: "#d80027", d: "M345 0h167v512H345z" })
|
|
780
|
-
] })
|
|
781
|
-
] });
|
|
782
|
-
};
|
|
783
|
-
const GermanyIcon = (props) => {
|
|
784
|
-
return /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", width: "1em", height: "1em", ...props, children: [
|
|
785
|
-
/* @__PURE__ */ jsx("mask", { id: "circleFlagsDe0", children: /* @__PURE__ */ jsx("circle", { cx: "256", cy: "256", r: "256", fill: "#fff" }) }),
|
|
786
|
-
/* @__PURE__ */ jsxs("g", { mask: "url(#circleFlagsDe0)", children: [
|
|
787
|
-
/* @__PURE__ */ jsx("path", { fill: "#ffda44", d: "m0 345l256.7-25.5L512 345v167H0z" }),
|
|
788
|
-
/* @__PURE__ */ jsx("path", { fill: "#d80027", d: "m0 167l255-23l257 23v178H0z" }),
|
|
789
|
-
/* @__PURE__ */ jsx("path", { fill: "#333", d: "M0 0h512v167H0z" })
|
|
790
|
-
] })
|
|
791
|
-
] });
|
|
792
|
-
};
|
|
793
|
-
const GlobeIcon = (props) => {
|
|
794
|
-
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 496", width: "1em", height: "1em", ...props, children: /* @__PURE__ */ jsx(
|
|
795
|
-
"path",
|
|
796
|
-
{
|
|
797
|
-
fill: "currentColor",
|
|
798
|
-
d: "M336.5 160C322 70.7 287.8 8 248 8s-74 62.7-88.5 152zM152 256c0 22.2 1.2 43.5 3.3 64h185.3c2.1-20.5 3.3-41.8 3.3-64s-1.2-43.5-3.3-64H155.3c-2.1 20.5-3.3 41.8-3.3 64m324.7-96c-28.6-67.9-86.5-120.4-158-141.6c24.4 33.8 41.2 84.7 50 141.6zM177.2 18.4C105.8 39.6 47.8 92.1 19.3 160h108c8.7-56.9 25.5-107.8 49.9-141.6M487.4 192H372.7c2.1 21 3.3 42.5 3.3 64s-1.2 43-3.3 64h114.6c5.5-20.5 8.6-41.8 8.6-64s-3.1-43.5-8.5-64M120 256c0-21.5 1.2-43 3.3-64H8.6C3.2 212.5 0 233.8 0 256s3.2 43.5 8.6 64h114.6c-2-21-3.2-42.5-3.2-64m39.5 96c14.5 89.3 48.7 152 88.5 152s74-62.7 88.5-152zm159.3 141.6c71.4-21.2 129.4-73.7 158-141.6h-108c-8.8 56.9-25.6 107.8-50 141.6M19.3 352c28.6 67.9 86.5 120.4 158 141.6c-24.4-33.8-41.2-84.7-50-141.6z"
|
|
799
|
-
}
|
|
800
|
-
) });
|
|
801
|
-
};
|
|
802
|
-
const ItalyIcon = (props) => {
|
|
803
|
-
return /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", width: "1em", height: "1em", ...props, children: [
|
|
804
|
-
/* @__PURE__ */ jsx("mask", { id: "circleFlagsIt0", children: /* @__PURE__ */ jsx("circle", { cx: "256", cy: "256", r: "256", fill: "#fff" }) }),
|
|
805
|
-
/* @__PURE__ */ jsxs("g", { mask: "url(#circleFlagsIt0)", children: [
|
|
806
|
-
/* @__PURE__ */ jsx("path", { fill: "#eee", d: "M167 0h178l25.9 252.3L345 512H167l-29.8-253.4z" }),
|
|
807
|
-
/* @__PURE__ */ jsx("path", { fill: "#6da544", d: "M0 0h167v512H0z" }),
|
|
808
|
-
/* @__PURE__ */ jsx("path", { fill: "#d80027", d: "M345 0h167v512H345z" })
|
|
809
|
-
] })
|
|
810
|
-
] });
|
|
811
|
-
};
|
|
812
|
-
const RussiaIcon = (props) => {
|
|
813
|
-
return /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", width: "1em", height: "1em", ...props, children: [
|
|
814
|
-
/* @__PURE__ */ jsx("mask", { id: "circleFlagsRu0", children: /* @__PURE__ */ jsx("circle", { cx: "256", cy: "256", r: "256", fill: "#fff" }) }),
|
|
815
|
-
/* @__PURE__ */ jsxs("g", { mask: "url(#circleFlagsRu0)", children: [
|
|
816
|
-
/* @__PURE__ */ jsx("path", { fill: "#0052b4", d: "M512 170v172l-256 32L0 342V170l256-32z" }),
|
|
817
|
-
/* @__PURE__ */ jsx("path", { fill: "#eee", d: "M512 0v170H0V0Z" }),
|
|
818
|
-
/* @__PURE__ */ jsx("path", { fill: "#d80027", d: "M512 342v170H0V342Z" })
|
|
819
|
-
] })
|
|
820
|
-
] });
|
|
821
|
-
};
|
|
822
|
-
function getMappedIcon(code) {
|
|
823
|
-
let icon = GlobeIcon;
|
|
824
|
-
switch (code) {
|
|
825
|
-
case "de":
|
|
826
|
-
icon = GermanyIcon;
|
|
827
|
-
break;
|
|
828
|
-
case "it":
|
|
829
|
-
icon = ItalyIcon;
|
|
830
|
-
break;
|
|
831
|
-
case "ru":
|
|
832
|
-
icon = RussiaIcon;
|
|
833
|
-
break;
|
|
834
|
-
case "fr":
|
|
835
|
-
icon = FranceIcon;
|
|
836
|
-
break;
|
|
837
|
-
case "en":
|
|
838
|
-
default:
|
|
839
|
-
icon = GlobeIcon;
|
|
840
|
-
break;
|
|
841
|
-
}
|
|
842
|
-
return icon;
|
|
843
|
-
}
|
|
844
|
-
const LocaleSwitcher = ({ currentLocale, locales }) => {
|
|
845
|
-
const localeCode = currentLocale.code;
|
|
846
|
-
const localeIcon = getMappedIcon(localeCode);
|
|
847
|
-
const localeMenuItems = useMemo(
|
|
848
|
-
() => locales.map((locale) => ({ ...locale, icon: getMappedIcon(locale.code) })),
|
|
849
|
-
[locales]
|
|
850
|
-
);
|
|
851
|
-
return /* @__PURE__ */ jsxs(Menu, { placement: "bottom-end", children: [
|
|
852
|
-
/* @__PURE__ */ jsx(
|
|
853
|
-
MenuButton,
|
|
854
|
-
{
|
|
855
|
-
as: Button,
|
|
856
|
-
rightIcon: /* @__PURE__ */ jsx(ChevronDownIcon, {}),
|
|
857
|
-
w: { base: 20, md: "28" },
|
|
858
|
-
px: { base: 1, md: 4 },
|
|
859
|
-
size: { base: "sm", md: "lg" },
|
|
860
|
-
children: /* @__PURE__ */ jsxs(HStack, { children: [
|
|
861
|
-
/* @__PURE__ */ jsx(Icon, { as: localeIcon }),
|
|
862
|
-
/* @__PURE__ */ jsx("span", { children: localeCode.toUpperCase() })
|
|
863
|
-
] })
|
|
864
|
-
}
|
|
865
|
-
),
|
|
866
|
-
/* @__PURE__ */ jsx(MenuList, { minW: "fit-content", children: localeMenuItems.map(({ code, name, icon }) => /* @__PURE__ */ jsx(MenuItem, { as: Link$1, to: `/${code}`, icon: /* @__PURE__ */ jsx(Icon, { as: icon, w: 4, h: 4 }), children: name }, code)) })
|
|
867
|
-
] });
|
|
868
|
-
};
|
|
869
|
-
const NavLink = forwardRef(({ slug, label }, ref) => {
|
|
870
|
-
return /* @__PURE__ */ jsx(
|
|
871
|
-
Text,
|
|
872
|
-
{
|
|
873
|
-
ref,
|
|
874
|
-
as: Link$1,
|
|
875
|
-
to: slug,
|
|
876
|
-
p: 2,
|
|
877
|
-
fontWeight: "semibold",
|
|
878
|
-
_hover: { textDecoration: "none", color: "brand.400" },
|
|
879
|
-
children: label
|
|
880
|
-
}
|
|
881
|
-
);
|
|
882
|
-
});
|
|
883
|
-
NavLink.displayName = "NavLink";
|
|
884
|
-
const NavList$1 = ({ slug, label, children }) => {
|
|
885
|
-
const background = useColorModeValue("white", "gray.800");
|
|
886
|
-
const backgroundHover = useColorModeValue("brand.50", "gray.900");
|
|
887
|
-
return /* @__PURE__ */ jsxs(Popover, { trigger: "hover", placement: "bottom-start", children: [
|
|
888
|
-
/* @__PURE__ */ jsx(PopoverTrigger, { children: /* @__PURE__ */ jsx(
|
|
889
|
-
Text,
|
|
890
|
-
{
|
|
891
|
-
p: 2,
|
|
892
|
-
fontWeight: "semibold",
|
|
893
|
-
cursor: "pointer",
|
|
894
|
-
tabIndex: 0,
|
|
895
|
-
_hover: { textDecoration: "none", color: "brand.400" },
|
|
896
|
-
children: label
|
|
897
|
-
}
|
|
898
|
-
) }),
|
|
899
|
-
/* @__PURE__ */ jsx(
|
|
900
|
-
PopoverContent,
|
|
901
|
-
{
|
|
902
|
-
p: 2,
|
|
903
|
-
border: 0,
|
|
904
|
-
minW: "sm",
|
|
905
|
-
maxH: 300,
|
|
906
|
-
overflowY: "auto",
|
|
907
|
-
rounded: "xl",
|
|
908
|
-
boxShadow: "xl",
|
|
909
|
-
bg: background,
|
|
910
|
-
children: /* @__PURE__ */ jsx(List$1, { spacing: 2, p: 0, children: children == null ? void 0 : children.map((child, index) => {
|
|
911
|
-
return /* @__PURE__ */ jsx(ListItem, { rounded: "md", _hover: { bg: backgroundHover }, children: /* @__PURE__ */ jsxs(Flex, { as: Link$1, to: buildPath(child.slug, slug), p: 2, role: "group", children: [
|
|
912
|
-
/* @__PURE__ */ jsx(Text, { fontWeight: 500, transition: "all .3s ease", _groupHover: { color: "brand.400" }, children: child.label }),
|
|
913
|
-
/* @__PURE__ */ jsx(
|
|
914
|
-
Flex,
|
|
915
|
-
{
|
|
916
|
-
flex: 1,
|
|
917
|
-
justify: "flex-end",
|
|
918
|
-
align: "center",
|
|
919
|
-
opacity: 0,
|
|
920
|
-
transition: "all .3s ease",
|
|
921
|
-
transform: "translateX(-10px)",
|
|
922
|
-
_groupHover: { opacity: 1, transform: "translateX(0)" },
|
|
923
|
-
children: /* @__PURE__ */ jsx(Icon, { as: ChevronRightIcon, color: "brand.400", w: 5, h: 5 })
|
|
924
|
-
}
|
|
925
|
-
)
|
|
926
|
-
] }) }, index);
|
|
927
|
-
}) })
|
|
928
|
-
}
|
|
929
|
-
)
|
|
930
|
-
] });
|
|
931
|
-
};
|
|
932
|
-
const DesktopNavigation = ({ menu }) => {
|
|
933
|
-
return /* @__PURE__ */ jsx(Flex, { as: "ul", role: "list", gap: 2, p: 0, display: { base: "none", md: "flex" }, children: menu.map((item, index) => {
|
|
934
|
-
var _a;
|
|
935
|
-
return /* @__PURE__ */ jsx(Flex, { as: "li", role: "listitem", children: ((_a = item.children) == null ? void 0 : _a.length) ? /* @__PURE__ */ jsx(NavList$1, { ...item }) : /* @__PURE__ */ jsx(NavLink, { ...item }) }, index);
|
|
936
|
-
}) });
|
|
937
|
-
};
|
|
938
|
-
const CHEVRON_DOWN_ICON_SIZE = "1.5rem";
|
|
939
|
-
const NavList = ({ slug, label, children, isExpanded, onExpand }) => {
|
|
940
|
-
return /* @__PURE__ */ jsxs(Stack, { flex: 1, children: [
|
|
941
|
-
/* @__PURE__ */ jsxs(
|
|
942
|
-
Flex,
|
|
943
|
-
{
|
|
944
|
-
as: "button",
|
|
945
|
-
p: 2,
|
|
946
|
-
pr: "3px",
|
|
947
|
-
align: "center",
|
|
948
|
-
justifyContent: "space-between",
|
|
949
|
-
_hover: { textDecoration: "none", color: "brand.400" },
|
|
950
|
-
onClick: onExpand,
|
|
951
|
-
children: [
|
|
952
|
-
/* @__PURE__ */ jsx(Text, { isTruncated: true, fontWeight: 600, children: label }),
|
|
953
|
-
/* @__PURE__ */ jsx(
|
|
954
|
-
ChevronDownIcon,
|
|
955
|
-
{
|
|
956
|
-
w: CHEVRON_DOWN_ICON_SIZE,
|
|
957
|
-
h: CHEVRON_DOWN_ICON_SIZE,
|
|
958
|
-
transform: isExpanded ? "rotate(180deg)" : "",
|
|
959
|
-
transition: "all .25s ease-in-out"
|
|
960
|
-
}
|
|
961
|
-
)
|
|
962
|
-
]
|
|
963
|
-
}
|
|
964
|
-
),
|
|
965
|
-
/* @__PURE__ */ jsx(Collapse, { in: isExpanded, transition: { enter: { ease: "easeIn" }, exit: { duration: 0.2 } }, children: /* @__PURE__ */ jsx(
|
|
966
|
-
List$1,
|
|
967
|
-
{
|
|
968
|
-
ml: 2,
|
|
969
|
-
pl: 0,
|
|
970
|
-
maxH: 300,
|
|
971
|
-
overflowY: "auto",
|
|
972
|
-
borderLeft: 1,
|
|
973
|
-
borderStyle: "solid",
|
|
974
|
-
borderColor: useColorModeValue("gray.200", "gray.700"),
|
|
975
|
-
children: children == null ? void 0 : children.map((child, index) => /* @__PURE__ */ jsx(Flex, { as: "li", role: "listitem", children: /* @__PURE__ */ jsx(Text, { as: Link$1, to: buildPath(child.slug, slug), p: 2, fontSize: "sm", children: child.label }) }, index))
|
|
976
|
-
}
|
|
977
|
-
) })
|
|
978
|
-
] });
|
|
979
|
-
};
|
|
980
|
-
const CLOSE_ICON_SIZE = "0.75rem";
|
|
981
|
-
const HAMBURGER_ICON_SIZE = "1rem";
|
|
982
|
-
const MobileNavigation = ({ menu }) => {
|
|
983
|
-
const [expanded, setExpanded] = useState(null);
|
|
984
|
-
const { isOpen, onToggle } = useDisclosure();
|
|
985
|
-
const background = useColorModeValue("gray.50", "gray.900");
|
|
986
|
-
function handleExpand(index) {
|
|
987
|
-
return () => {
|
|
988
|
-
setExpanded((prev) => prev === index ? null : index);
|
|
989
|
-
};
|
|
990
|
-
}
|
|
991
|
-
function handleClick() {
|
|
992
|
-
setExpanded(null);
|
|
993
|
-
onToggle();
|
|
994
|
-
}
|
|
995
|
-
return /* @__PURE__ */ jsxs(Box, { display: { base: "block", md: "none" }, children: [
|
|
996
|
-
/* @__PURE__ */ jsx(
|
|
997
|
-
IconButton,
|
|
998
|
-
{
|
|
999
|
-
icon: isOpen ? /* @__PURE__ */ jsx(CloseIcon, { w: CLOSE_ICON_SIZE, h: CLOSE_ICON_SIZE }) : /* @__PURE__ */ jsx(HamburgerIcon, { w: HAMBURGER_ICON_SIZE, h: HAMBURGER_ICON_SIZE }),
|
|
1000
|
-
size: "sm",
|
|
1001
|
-
variant: "ghost",
|
|
1002
|
-
"aria-label": `${isOpen ? "Close" : "Open"} navigation menu`,
|
|
1003
|
-
"aria-expanded": isOpen,
|
|
1004
|
-
onClick: handleClick
|
|
1005
|
-
}
|
|
1006
|
-
),
|
|
1007
|
-
/* @__PURE__ */ jsx(Collapse, { in: isOpen, animateOpacity: true, children: /* @__PURE__ */ jsx(Box, { position: "absolute", top: 16, left: 0, right: 0, w: "100vw", px: 2, children: /* @__PURE__ */ jsx(
|
|
1008
|
-
List$1,
|
|
1009
|
-
{
|
|
1010
|
-
spacing: 2,
|
|
1011
|
-
p: 2,
|
|
1012
|
-
boxShadow: "md",
|
|
1013
|
-
borderWidth: "1px",
|
|
1014
|
-
borderColor: useColorModeValue("gray.200", "gray.700"),
|
|
1015
|
-
borderRadius: "md",
|
|
1016
|
-
bg: background,
|
|
1017
|
-
children: menu.map((item, index) => {
|
|
1018
|
-
var _a;
|
|
1019
|
-
return /* @__PURE__ */ jsx(Flex, { as: "li", role: "listitem", children: ((_a = item.children) == null ? void 0 : _a.length) ? /* @__PURE__ */ jsx(NavList, { ...item, isExpanded: index === expanded, onExpand: handleExpand(index) }) : /* @__PURE__ */ jsx(NavLink, { ...item }) }, index);
|
|
1020
|
-
})
|
|
1021
|
-
}
|
|
1022
|
-
) }) })
|
|
600
|
+
const Contacts = () => {
|
|
601
|
+
const { t: t2 } = useTranslation("pageContacts");
|
|
602
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
603
|
+
/* @__PURE__ */ jsx(Heading1, { children: t2("title") }),
|
|
604
|
+
/* @__PURE__ */ jsx(Paragraph, { children: t2("text") }),
|
|
605
|
+
/* @__PURE__ */ jsx(ContactForm, {})
|
|
1023
606
|
] });
|
|
1024
607
|
};
|
|
1025
|
-
const
|
|
608
|
+
const PrivacyPolicy = ({ contactsSlug }) => {
|
|
609
|
+
const { t: t2 } = useTranslation("pagePrivacyPolicy");
|
|
610
|
+
const { metadata } = useSiteContext();
|
|
611
|
+
const { name: siteName } = metadata;
|
|
1026
612
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1027
|
-
/* @__PURE__ */ jsx(
|
|
1028
|
-
/* @__PURE__ */ jsx(
|
|
613
|
+
/* @__PURE__ */ jsx(Heading1, { children: t2("title") }),
|
|
614
|
+
/* @__PURE__ */ jsx(Paragraph, { children: t2("text") }),
|
|
615
|
+
/* @__PURE__ */ jsx(Heading2, { children: t2("sectionOne.title", { siteName }) }),
|
|
616
|
+
/* @__PURE__ */ jsx(Paragraph, { children: t2("sectionOne.text", { siteName }) }),
|
|
617
|
+
/* @__PURE__ */ jsx(Heading2, { children: t2("sectionTwo.title") }),
|
|
618
|
+
/* @__PURE__ */ jsx(Paragraph, { children: t2("sectionTwo.textOne") }),
|
|
619
|
+
/* @__PURE__ */ jsxs(Unordered, { children: [
|
|
620
|
+
/* @__PURE__ */ jsx("li", { children: t2("sectionTwo.list.itemOne") }),
|
|
621
|
+
/* @__PURE__ */ jsx("li", { children: t2("sectionTwo.list.itemTwo") })
|
|
622
|
+
] }),
|
|
623
|
+
/* @__PURE__ */ jsx(Paragraph, { children: t2("sectionTwo.textTwo") }),
|
|
624
|
+
/* @__PURE__ */ jsx(Heading2, { children: t2("sectionThree.title") }),
|
|
625
|
+
/* @__PURE__ */ jsx(Paragraph, { children: t2("sectionThree.text") }),
|
|
626
|
+
/* @__PURE__ */ jsx(Heading2, { children: t2("sectionFour.title") }),
|
|
627
|
+
/* @__PURE__ */ jsx(Paragraph, { children: t2("sectionFour.text") }),
|
|
628
|
+
/* @__PURE__ */ jsx(Heading2, { children: t2("sectionFive.title") }),
|
|
629
|
+
/* @__PURE__ */ jsx(Paragraph, { children: t2("sectionFive.text", { siteName }) }),
|
|
630
|
+
/* @__PURE__ */ jsx(Heading2, { children: t2("sectionSix.title") }),
|
|
631
|
+
contactsSlug ? /* @__PURE__ */ jsxs(Paragraph, { children: [
|
|
632
|
+
t2("sectionSix.textWithLink.contentStart"),
|
|
633
|
+
/* @__PURE__ */ jsx(Link, { color: "brand.400", to: contactsSlug, children: t2("sectionSix.textWithLink.link") }),
|
|
634
|
+
t2("sectionSix.textWithLink.contentEnd", { siteName })
|
|
635
|
+
] }) : /* @__PURE__ */ jsx(Paragraph, { children: t2("sectionSix.text", { siteName }) })
|
|
1029
636
|
] });
|
|
1030
637
|
};
|
|
1031
|
-
const
|
|
1032
|
-
|
|
1033
|
-
const {
|
|
1034
|
-
const {
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
as: "header",
|
|
1045
|
-
position: "sticky",
|
|
1046
|
-
top: 0,
|
|
1047
|
-
bg: useColorModeValue("white", "gray.900"),
|
|
1048
|
-
color: useColorModeValue("gray.700", "gray.200"),
|
|
1049
|
-
boxShadow: "sm",
|
|
1050
|
-
zIndex: 100,
|
|
1051
|
-
children: /* @__PURE__ */ jsx(Container, { children: /* @__PURE__ */ jsxs(Flex, { as: "nav", gap: 2, py: 2, children: [
|
|
1052
|
-
/* @__PURE__ */ jsx(Brand, { brand: /* @__PURE__ */ jsx(Logo, {}) }),
|
|
1053
|
-
(hasNavigation || hasToolbar) && /* @__PURE__ */ jsxs(
|
|
1054
|
-
Flex,
|
|
1055
|
-
{
|
|
1056
|
-
as: "section",
|
|
1057
|
-
flex: 1,
|
|
1058
|
-
flexDir: { base: "row-reverse", md: "row" },
|
|
1059
|
-
justifyContent: "end",
|
|
1060
|
-
align: "center",
|
|
1061
|
-
gap: 2,
|
|
1062
|
-
children: [
|
|
1063
|
-
hasNavigation && /* @__PURE__ */ jsx(Flex, { flex: { base: 0, md: 1 }, children: /* @__PURE__ */ jsx(Navigation, { menu }) }),
|
|
1064
|
-
hasToolbar && /* @__PURE__ */ jsxs(Flex, { gap: 2, flex: { base: 1, md: 0 }, justifyContent: "flex-end", children: [
|
|
1065
|
-
!!toolbar && toolbar,
|
|
1066
|
-
isMultiLanguage && /* @__PURE__ */ jsx(LocaleSwitcher, { currentLocale, locales })
|
|
1067
|
-
] })
|
|
1068
|
-
]
|
|
1069
|
-
}
|
|
1070
|
-
)
|
|
1071
|
-
] }) })
|
|
1072
|
-
}
|
|
1073
|
-
);
|
|
1074
|
-
};
|
|
1075
|
-
const Hero = ({ title, subtitle, content, link, image }) => {
|
|
1076
|
-
return /* @__PURE__ */ jsx(Box, { as: "section", bg: "gray.900", children: /* @__PURE__ */ jsx(Container, { children: /* @__PURE__ */ jsxs(Flex, { direction: { base: "column", md: "row" }, children: [
|
|
1077
|
-
/* @__PURE__ */ jsx(Flex, { align: "center", justify: { base: "center", md: "flex-start" }, flex: 1, py: 8, pe: 8, children: /* @__PURE__ */ jsxs(Stack, { spacing: 6, w: "full", maxW: "lg", children: [
|
|
1078
|
-
/* @__PURE__ */ jsxs(Heading, { as: "h1", fontSize: { base: "3xl", md: "4xl", lg: "5xl" }, children: [
|
|
1079
|
-
/* @__PURE__ */ jsxs(Text, { as: "span", display: "block", children: [
|
|
1080
|
-
title,
|
|
1081
|
-
" —"
|
|
1082
|
-
] }),
|
|
1083
|
-
/* @__PURE__ */ jsx(Text, { as: "span", display: "block", color: "brand.400", children: subtitle })
|
|
638
|
+
const TermsAndConditions = ({ privacyPolicySlug }) => {
|
|
639
|
+
const { t: t2 } = useTranslation("pageTermsAndConditions");
|
|
640
|
+
const { metadata } = useSiteContext();
|
|
641
|
+
const { name: siteName } = metadata;
|
|
642
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
643
|
+
/* @__PURE__ */ jsx(Heading1, { children: t2("title") }),
|
|
644
|
+
/* @__PURE__ */ jsx(Paragraph, { children: t2("text", { siteName }) }),
|
|
645
|
+
/* @__PURE__ */ jsx(Heading2, { children: t2("sectionOne.title") }),
|
|
646
|
+
/* @__PURE__ */ jsx(Paragraph, { children: t2("sectionOne.text", { siteName }) }),
|
|
647
|
+
/* @__PURE__ */ jsx(Unordered, { children: ["One", "Two", "Three", "Four"].map((i, index) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(Paragraph, { children: [
|
|
648
|
+
/* @__PURE__ */ jsxs("strong", { children: [
|
|
649
|
+
t2(`sectionOne.list.item${i}.title`),
|
|
650
|
+
":"
|
|
1084
651
|
] }),
|
|
1085
|
-
/* @__PURE__ */ jsx(
|
|
1086
|
-
|
|
1087
|
-
] }) }),
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
}
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
}
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
}
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
})
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
opacity: isVisible ? 1 : 0,
|
|
1129
|
-
transform: isVisible ? "translateY(0)" : "translateY(0.5rem)",
|
|
1130
|
-
transition: "opacity 0.4s ease, transform 0.4s ease",
|
|
1131
|
-
pointerEvents: isVisible ? "auto" : "none",
|
|
1132
|
-
children: /* @__PURE__ */ jsx(
|
|
1133
|
-
IconButton,
|
|
1134
|
-
{
|
|
1135
|
-
"aria-label": "Scroll to top",
|
|
1136
|
-
icon: /* @__PURE__ */ jsx(ChevronUpIcon, { w: 6, h: 6 }),
|
|
1137
|
-
size: "lg",
|
|
1138
|
-
shadow: "lg",
|
|
1139
|
-
colorScheme: "brand",
|
|
1140
|
-
isRound: true,
|
|
1141
|
-
onClick: handleClick
|
|
1142
|
-
}
|
|
1143
|
-
)
|
|
1144
|
-
}
|
|
1145
|
-
);
|
|
1146
|
-
};
|
|
1147
|
-
const Layout = ({ children }) => {
|
|
1148
|
-
const content = typeof children === "function" ? children({ Hero, Content }) : /* @__PURE__ */ jsx(Content, { children });
|
|
1149
|
-
return /* @__PURE__ */ jsxs(Stack, { spacing: 0, position: "relative", w: "100%", minH: "100dvh", children: [
|
|
1150
|
-
/* @__PURE__ */ jsx(Header, {}),
|
|
1151
|
-
/* @__PURE__ */ jsx(Main, { children: content }),
|
|
1152
|
-
/* @__PURE__ */ jsx(Footer, {}),
|
|
1153
|
-
/* @__PURE__ */ jsx(ScrollToTop, {})
|
|
1154
|
-
] });
|
|
1155
|
-
};
|
|
1156
|
-
const List = ({ items, bullet = "—", render, ...boxProps }) => {
|
|
1157
|
-
return /* @__PURE__ */ jsx(List$1, { pl: 0, ml: 2, ...boxProps, children: items.map((item, index) => /* @__PURE__ */ jsxs(ListItem, { display: "flex", gap: 1, children: [
|
|
1158
|
-
/* @__PURE__ */ jsx(Box, { children: bullet }),
|
|
1159
|
-
render ? render(item) : item
|
|
1160
|
-
] }, index)) });
|
|
1161
|
-
};
|
|
1162
|
-
const NotFound = () => {
|
|
1163
|
-
const { t: t2 } = useTranslation("pageNotFound");
|
|
1164
|
-
return /* @__PURE__ */ jsxs(Stack, { gap: 4, children: [
|
|
1165
|
-
/* @__PURE__ */ jsx(Heading, { as: "h1", children: t2("title") }),
|
|
1166
|
-
/* @__PURE__ */ jsxs(Text, { fontSize: "xl", children: [
|
|
1167
|
-
t2("description"),
|
|
1168
|
-
" ",
|
|
1169
|
-
/* @__PURE__ */ jsx(Button, { as: Link$1, to: "/", variant: "link", colorScheme: "brand", fontSize: "xl", children: t2("action") })
|
|
1170
|
-
] })
|
|
652
|
+
/* @__PURE__ */ jsx("br", {}),
|
|
653
|
+
t2(`sectionOne.list.item${i}.description`, { siteName })
|
|
654
|
+
] }) }, index)) }),
|
|
655
|
+
/* @__PURE__ */ jsx(Heading2, { children: t2("sectionTwo.title") }),
|
|
656
|
+
/* @__PURE__ */ jsx(Ordered, { children: ["One", "Two", "Three", "Four"].map((i, index) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(Paragraph, { children: [
|
|
657
|
+
/* @__PURE__ */ jsxs("strong", { children: [
|
|
658
|
+
t2(`sectionTwo.list.item${i}.title`),
|
|
659
|
+
":"
|
|
660
|
+
] }),
|
|
661
|
+
/* @__PURE__ */ jsx("br", {}),
|
|
662
|
+
t2(`sectionTwo.list.item${i}.description`, { siteName })
|
|
663
|
+
] }) }, index)) }),
|
|
664
|
+
/* @__PURE__ */ jsx(Heading2, { children: t2("sectionThree.title") }),
|
|
665
|
+
/* @__PURE__ */ jsx(Paragraph, { children: t2("sectionThree.text", { siteName }) }),
|
|
666
|
+
/* @__PURE__ */ jsx(Heading2, { children: t2("sectionFour.title") }),
|
|
667
|
+
/* @__PURE__ */ jsx(Paragraph, { children: t2("sectionFour.text", { siteName }) }),
|
|
668
|
+
/* @__PURE__ */ jsx(Unordered, { children: ["One", "Two"].map((i, index) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(Paragraph, { children: [
|
|
669
|
+
/* @__PURE__ */ jsxs("strong", { children: [
|
|
670
|
+
t2(`sectionFour.list.item${i}.title`),
|
|
671
|
+
":"
|
|
672
|
+
] }),
|
|
673
|
+
/* @__PURE__ */ jsx("br", {}),
|
|
674
|
+
t2(`sectionFour.list.item${i}.description`, { siteName })
|
|
675
|
+
] }) }, index)) }),
|
|
676
|
+
/* @__PURE__ */ jsx(Heading2, { children: t2("sectionFive.title") }),
|
|
677
|
+
/* @__PURE__ */ jsx(Paragraph, { children: t2("sectionFive.text", { siteName }) }),
|
|
678
|
+
/* @__PURE__ */ jsx(Heading2, { children: t2("sectionSix.title") }),
|
|
679
|
+
/* @__PURE__ */ jsx(Paragraph, { children: t2("sectionSix.textOne") }),
|
|
680
|
+
/* @__PURE__ */ jsx(Unordered, { children: ["One", "Two", "Three"].map((i, index) => /* @__PURE__ */ jsx("li", { children: t2(`sectionSix.list.item${i}`) }, index)) }),
|
|
681
|
+
privacyPolicySlug ? /* @__PURE__ */ jsxs(Paragraph, { children: [
|
|
682
|
+
t2("sectionSix.textTwoWithLink.contentStart"),
|
|
683
|
+
/* @__PURE__ */ jsx(Link, { color: "brand.400", to: privacyPolicySlug, children: t2("sectionSix.textTwoWithLink.link") }),
|
|
684
|
+
t2("sectionSix.textTwoWithLink.contentEnd")
|
|
685
|
+
] }) : /* @__PURE__ */ jsx(Paragraph, { children: t2("sectionSix.textTwo") }),
|
|
686
|
+
/* @__PURE__ */ jsx(Heading2, { children: t2("sectionSeven.title") }),
|
|
687
|
+
/* @__PURE__ */ jsx(Ordered, { children: ["One", "Two"].map((i, index) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(Paragraph, { children: [
|
|
688
|
+
/* @__PURE__ */ jsxs("strong", { children: [
|
|
689
|
+
t2(`sectionSeven.list.item${i}.title`),
|
|
690
|
+
":"
|
|
691
|
+
] }),
|
|
692
|
+
/* @__PURE__ */ jsx("br", {}),
|
|
693
|
+
t2(`sectionSeven.list.item${i}.description`, { siteName })
|
|
694
|
+
] }) }, index)) })
|
|
1171
695
|
] });
|
|
1172
696
|
};
|
|
1173
697
|
const TitleMap = {
|
|
@@ -1483,6 +1007,14 @@ const StrapiComponent = ({ type, props, imageComponent }) => {
|
|
|
1483
1007
|
mb: 4
|
|
1484
1008
|
}
|
|
1485
1009
|
);
|
|
1010
|
+
case "STRAPI__COMPONENT_CONTENT_CONTACTS_PAGE":
|
|
1011
|
+
return /* @__PURE__ */ jsx(Contacts, { ...props });
|
|
1012
|
+
case "STRAPI__COMPONENT_CONTENT_COOKIE_POLICY_PAGE":
|
|
1013
|
+
return /* @__PURE__ */ jsx(CookiePolicy, { ...props });
|
|
1014
|
+
case "STRAPI__COMPONENT_CONTENT_PRIVACY_POLICY_PAGE":
|
|
1015
|
+
return /* @__PURE__ */ jsx(PrivacyPolicy, { ...props });
|
|
1016
|
+
case "STRAPI__COMPONENT_CONTENT_TERMS_CONDITIONS_PAGE":
|
|
1017
|
+
return /* @__PURE__ */ jsx(TermsAndConditions, { ...props });
|
|
1486
1018
|
default:
|
|
1487
1019
|
return null;
|
|
1488
1020
|
}
|
|
@@ -1501,11 +1033,11 @@ const StrapiContentRenderer = ({ content, imageComponent }) => {
|
|
|
1501
1033
|
export {
|
|
1502
1034
|
AuthorCard as A,
|
|
1503
1035
|
BonusCard as B,
|
|
1504
|
-
|
|
1036
|
+
Center as C,
|
|
1505
1037
|
Faq as F,
|
|
1506
1038
|
GameCard as G,
|
|
1507
1039
|
HowTo as H,
|
|
1508
|
-
|
|
1040
|
+
List as L,
|
|
1509
1041
|
NotFound as N,
|
|
1510
1042
|
ProsCons as P,
|
|
1511
1043
|
Seo as S,
|
|
@@ -1516,14 +1048,13 @@ export {
|
|
|
1516
1048
|
GameCardGrid as d,
|
|
1517
1049
|
GameDemo as e,
|
|
1518
1050
|
GameInfo as f,
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
SocialNetworks as p
|
|
1051
|
+
StrapiContentRenderer as g,
|
|
1052
|
+
Tabs as h,
|
|
1053
|
+
Tip as i,
|
|
1054
|
+
Author as j,
|
|
1055
|
+
Grid as k,
|
|
1056
|
+
CookiePolicy as l,
|
|
1057
|
+
Contacts as m,
|
|
1058
|
+
PrivacyPolicy as n,
|
|
1059
|
+
TermsAndConditions as o
|
|
1529
1060
|
};
|