@anywayseo/tools 5.5.0 → 5.7.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.
Files changed (156) hide show
  1. package/dist/components/action-button/index.d.ts +5 -0
  2. package/dist/components/article-card/index.d.ts +7 -0
  3. package/dist/components/article-card-grid/index.d.ts +7 -0
  4. package/dist/components/article-info-card/index.d.ts +5 -0
  5. package/dist/components/base/article-meta/index.d.ts +7 -0
  6. package/dist/components/base/article-meta/item/index.d.ts +7 -0
  7. package/dist/components/base/copy-text/index.d.ts +6 -0
  8. package/dist/components/base/grid/index.d.ts +2 -4
  9. package/dist/components/base/h1/index.d.ts +4 -0
  10. package/dist/components/base/h2/index.d.ts +4 -0
  11. package/dist/components/base/h3/index.d.ts +4 -0
  12. package/dist/components/base/index.d.ts +11 -0
  13. package/dist/components/base/link/index.d.ts +5 -1
  14. package/dist/components/base/link/utils.d.ts +1 -0
  15. package/dist/components/base/ol/index.d.ts +4 -0
  16. package/dist/components/base/p/index.d.ts +4 -0
  17. package/dist/components/base/rating/index.d.ts +10 -0
  18. package/dist/components/base/ul/index.d.ts +4 -0
  19. package/dist/components/bonus-card-grid/index.d.ts +2 -4
  20. package/dist/components/casino-table/index.d.ts +8 -0
  21. package/dist/components/casino-table/row/casino-actions/index.d.ts +8 -0
  22. package/dist/components/casino-table/row/casino-bonus/index.d.ts +8 -0
  23. package/dist/components/casino-table/row/casino-info/index.d.ts +7 -0
  24. package/dist/components/casino-table/row/casino-info/item/index.d.ts +7 -0
  25. package/dist/components/casino-table/row/casino-info/utils.d.ts +2 -0
  26. package/dist/components/casino-table/row/casino-license/index.d.ts +5 -0
  27. package/dist/components/casino-table/row/casino-logo/index.d.ts +9 -0
  28. package/dist/components/casino-table/row/casino-name/index.d.ts +8 -0
  29. package/dist/components/casino-table/row/cell/index.d.ts +7 -0
  30. package/dist/components/casino-table/row/index.d.ts +7 -0
  31. package/dist/components/feature-card-grid/index.d.ts +2 -4
  32. package/dist/components/game-card-grid/index.d.ts +2 -4
  33. package/dist/components/game-demo/content/index.d.ts +1 -1
  34. package/dist/components/game-demo/index.d.ts +2 -2
  35. package/dist/components/game-demo/preview/alert/index.d.ts +3 -0
  36. package/dist/components/game-demo/preview/index.d.ts +2 -1
  37. package/dist/components/index.cjs +30 -9
  38. package/dist/components/index.d.ts +7 -3
  39. package/dist/components/index.mjs +44 -23
  40. package/dist/components/informer/index.d.ts +9 -0
  41. package/dist/components/informer/utils.d.ts +5 -0
  42. package/dist/components/{contact-form → pages/contacts/contact-form}/index.d.ts +1 -1
  43. package/dist/components/pages/contacts/index.d.ts +3 -0
  44. package/dist/components/pages/cookie-policy/index.d.ts +3 -0
  45. package/dist/components/pages/index.d.ts +5 -0
  46. package/dist/components/pages/privacy-policy/index.d.ts +6 -0
  47. package/dist/components/pages/terms-and-conditions/index.d.ts +6 -0
  48. package/dist/components/tip/index.d.ts +3 -0
  49. package/dist/hooks/index.cjs +2 -2
  50. package/dist/hooks/index.mjs +2 -2
  51. package/dist/i18n/index.cjs +10 -5
  52. package/dist/i18n/index.mjs +10 -5
  53. package/dist/i18n/resources/bg/index.d.ts +331 -0
  54. package/dist/i18n/resources/da/index.d.ts +331 -0
  55. package/dist/i18n/resources/de/index.d.ts +219 -0
  56. package/dist/i18n/resources/en/index.d.ts +219 -0
  57. package/dist/i18n/resources/fi/index.d.ts +331 -0
  58. package/dist/i18n/resources/fr/index.d.ts +219 -0
  59. package/dist/i18n/resources/it/index.d.ts +219 -0
  60. package/dist/i18n/resources/ka/index.d.ts +331 -0
  61. package/dist/i18n/resources/pt/index.d.ts +331 -0
  62. package/dist/i18n/resources/ru/index.d.ts +219 -0
  63. package/dist/index-B-k9oWE7.js +3552 -0
  64. package/dist/{index-D86anUPd.js → index-B71VkIfX.js} +426 -726
  65. package/dist/index-BEjKnOZA.mjs +28 -0
  66. package/dist/index-BTpEZIok.js +401 -0
  67. package/dist/index-BeJTy4iY.mjs +26 -0
  68. package/dist/index-BfITsKAr.js +25 -0
  69. package/dist/{index-BmaWfWLV.mjs → index-Bph7a3PR.mjs} +4 -0
  70. package/dist/{index-BCK4kr6V.mjs → index-C7z5qqm_.mjs} +3 -26
  71. package/dist/{index-tj12BA6U.mjs → index-CB0JfZMx.mjs} +1 -1
  72. package/dist/{index-cEaX-HbN.mjs → index-CEqTLcAR.mjs} +427 -727
  73. package/dist/index-CVN8I7r9.mjs +3553 -0
  74. package/dist/{index-CAfBnNV6.js → index-D15SAjJc.js} +1 -1
  75. package/dist/index-DDg_PkD2.js +27 -0
  76. package/dist/{index-BzbpMLDD.mjs → index-DHURrUMW.mjs} +1 -1
  77. package/dist/{index-At00w6EN.js → index-DgrIJs-a.js} +4 -0
  78. package/dist/index-FfZIjQy3.mjs +45 -0
  79. package/dist/index-Lln67Kfn.mjs +402 -0
  80. package/dist/{index-DZBLiQFh.js → index-QPgJfbrC.js} +52 -36
  81. package/dist/{index-BcFDxh8P.js → index-TxqSZvgf.js} +15 -27
  82. package/dist/{index-8_-KtKsW.mjs → index-ksqN4RPm.mjs} +50 -34
  83. package/dist/{index-WFgDSB1A.js → index-ma-iV7GU.js} +1 -1
  84. package/dist/{index-BICcOaT7.js → index-qR3kVjjs.js} +0 -23
  85. package/dist/index.cjs +73 -45
  86. package/dist/index.d.ts +1 -0
  87. package/dist/index.mjs +75 -47
  88. package/dist/{components/layout → layout}/footer/navigation/index.d.ts +1 -1
  89. package/dist/layout/header/locale-switcher/icons/brazil/index.d.ts +2 -0
  90. package/dist/layout/header/locale-switcher/icons/bulgaria/index.d.ts +2 -0
  91. package/dist/layout/header/locale-switcher/icons/denmark/index.d.ts +2 -0
  92. package/dist/layout/header/locale-switcher/icons/finland/index.d.ts +2 -0
  93. package/dist/layout/header/locale-switcher/icons/france/index.d.ts +2 -0
  94. package/dist/layout/header/locale-switcher/icons/georgia/index.d.ts +2 -0
  95. package/dist/layout/header/locale-switcher/icons/germany/index.d.ts +2 -0
  96. package/dist/layout/header/locale-switcher/icons/globe/index.d.ts +2 -0
  97. package/dist/layout/header/locale-switcher/icons/index.d.ts +10 -0
  98. package/dist/layout/header/locale-switcher/icons/italy/index.d.ts +2 -0
  99. package/dist/layout/header/locale-switcher/icons/russia/index.d.ts +2 -0
  100. package/dist/{components/layout → layout}/header/locale-switcher/index.d.ts +1 -1
  101. package/dist/{components/layout → layout}/header/locale-switcher/utils.d.ts +1 -1
  102. package/dist/{components/layout → layout}/header/navigation/desktop/index.d.ts +1 -1
  103. package/dist/{components/layout → layout}/header/navigation/desktop/nav-list/index.d.ts +1 -1
  104. package/dist/{components/layout → layout}/header/navigation/index.d.ts +1 -1
  105. package/dist/{components/layout → layout}/header/navigation/mobile/index.d.ts +1 -1
  106. package/dist/{components/layout → layout}/header/navigation/mobile/nav-list/index.d.ts +1 -1
  107. package/dist/{components/layout → layout}/header/navigation/nav-link/index.d.ts +1 -1
  108. package/dist/{components/layout → layout}/hero/index.d.ts +1 -1
  109. package/dist/layout/index.cjs +597 -0
  110. package/dist/layout/index.mjs +598 -0
  111. package/dist/providers/index.cjs +2 -2
  112. package/dist/providers/index.mjs +2 -2
  113. package/dist/providers/mdx-provider/types.d.ts +3 -1
  114. package/dist/providers/mdx-provider/utils.d.ts +1 -2
  115. package/dist/types/components/article-card/index.d.ts +9 -0
  116. package/dist/types/components/button/index.d.ts +1 -1
  117. package/dist/types/components/casino/index.d.ts +32 -0
  118. package/dist/types/components/casino-info/index.d.ts +12 -0
  119. package/dist/types/components/common/index.d.ts +1 -1
  120. package/dist/types/components/game-info/index.d.ts +4 -8
  121. package/dist/types/components/grid/index.d.ts +4 -0
  122. package/dist/types/components/index.d.ts +4 -0
  123. package/dist/types/components/informer/index.d.ts +5 -0
  124. package/dist/types/components/strapi-component/index.d.ts +1 -1
  125. package/dist/types/content/article/index.d.ts +12 -0
  126. package/dist/types/content/index.d.ts +1 -0
  127. package/dist/types/i18n/index.d.ts +2 -2
  128. package/dist/utils/index.cjs +15 -13
  129. package/dist/utils/index.mjs +10 -8
  130. package/dist/utils/navigation/index.d.ts +1 -0
  131. package/package.json +7 -1
  132. package/dist/components/layout/header/locale-switcher/icons/earth/index.d.ts +0 -2
  133. package/dist/components/layout/header/locale-switcher/icons/france/index.d.ts +0 -2
  134. package/dist/components/layout/header/locale-switcher/icons/germany/index.d.ts +0 -2
  135. package/dist/components/layout/header/locale-switcher/icons/globe/index.d.ts +0 -2
  136. package/dist/components/layout/header/locale-switcher/icons/index.d.ts +0 -6
  137. package/dist/components/layout/header/locale-switcher/icons/italy/index.d.ts +0 -2
  138. package/dist/components/layout/header/locale-switcher/icons/russia/index.d.ts +0 -2
  139. package/dist/index-Bts2DBYS.mjs +0 -637
  140. package/dist/index-CJVr79Z2.js +0 -636
  141. package/dist/index-C_FekfFC.mjs +0 -57
  142. /package/dist/components/{layout → base}/container/index.d.ts +0 -0
  143. /package/dist/components/{layout → base}/logo/index.d.ts +0 -0
  144. /package/dist/components/{not-found → pages/not-found}/index.d.ts +0 -0
  145. /package/dist/{components/layout → layout}/content/index.d.ts +0 -0
  146. /package/dist/{components/layout → layout}/footer/brand/index.d.ts +0 -0
  147. /package/dist/{components/layout → layout}/footer/copyright/index.d.ts +0 -0
  148. /package/dist/{components/layout → layout}/footer/disclaimer/index.d.ts +0 -0
  149. /package/dist/{components/layout → layout}/footer/extra/index.d.ts +0 -0
  150. /package/dist/{components/layout → layout}/footer/index.d.ts +0 -0
  151. /package/dist/{components/layout → layout}/header/brand/index.d.ts +0 -0
  152. /package/dist/{components/layout → layout}/header/index.d.ts +0 -0
  153. /package/dist/{components/layout → layout}/header/theme-toggler/index.d.ts +0 -0
  154. /package/dist/{components/layout → layout}/index.d.ts +0 -0
  155. /package/dist/{components/layout → layout}/main/index.d.ts +0 -0
  156. /package/dist/{components/layout → layout}/scroll-to-top/index.d.ts +0 -0
@@ -1,101 +1,48 @@
1
1
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
- import { Link, Flex, Box, Collapse, Text, Button, Stack, Center as Center$1, SimpleGrid, Card, CardHeader, Heading, CardBody, Popover, PopoverTrigger, Portal, PopoverContent, PopoverBody, CardFooter, useToast, useColorModeValue, VStack, FormControl, FormLabel, InputGroup, InputLeftElement, Input, Textarea, Accordion, AccordionItem, AccordionButton, AccordionIcon, AccordionPanel, LinkBox, LinkOverlay, IconButton, AbsoluteCenter, Spinner, useDisclosure, Divider, Circle, Container as Container$1, Menu, MenuButton, HStack, Icon, MenuList, MenuItem, List as List$1, ListItem, ListIcon, TableContainer, Table as Table$1, Thead, Tr, Th, Tbody, Td, TableCaption, Tabs as Tabs$1, TabList, Tab, TabPanels, TabPanel } from "@chakra-ui/react";
2
+ import { useColorModeValue, Box, Text, Flex, Collapse, Button, Stack, Center as Center$1, SimpleGrid, Card, CardBody, CardFooter, CardHeader, Heading, Popover, PopoverTrigger, Portal, PopoverContent, PopoverBody, Accordion, AccordionItem, AccordionButton, AccordionIcon, AccordionPanel, LinkBox, LinkOverlay, IconButton, AbsoluteCenter, Spinner, Alert, AlertIcon, AlertTitle, AlertDescription, useDisclosure, Divider, Circle, List as List$1, ListItem, useToast, 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
- import "react-medium-image-zoom";
5
- import { I as Image, a as useSiteContext, L as Link$1, u as usePageContext } from "./index-8_-KtKsW.mjs";
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";
9
4
  import { useMDXComponents } from "@mdx-js/react";
10
- import { EmailIcon, StarIcon, CloseIcon, ViewOffIcon, ViewIcon, ChevronDownIcon, ChevronRightIcon, HamburgerIcon, ChevronUpIcon, WarningIcon, CheckCircleIcon } from "@chakra-ui/icons";
11
- import { e as getSeededRandomComparator, d as randomComparator, g as getCurrencySymbol, c as formatNumber, f as formatDate, a as getCurrentYear, b as getCurrentMonth } from "./index-BCK4kr6V.mjs";
12
- import { i as isRelativePath, b as buildPath } from "./index-BmaWfWLV.mjs";
13
- import { u as usePrimaryColors } from "./index-tj12BA6U.mjs";
5
+ import { u as usePageContext, I as Image, L as Link, a as useSiteContext } from "./index-ksqN4RPm.mjs";
6
+ import "./index-BJRvnR8Q.mjs";
7
+ import { b as GameCharacteristic, G as GameVolatility } from "./index-CVN8I7r9.mjs";
8
+ import "react-medium-image-zoom";
9
+ import { useRef, useState, useLayoutEffect, Fragment as Fragment$1, useMemo } from "react";
10
+ import { StarIcon, CloseIcon, ViewOffIcon, ViewIcon, EmailIcon, WarningIcon, CheckCircleIcon } from "@chakra-ui/icons";
11
+ import { a as Heading2, H as Heading1, P as Paragraph, U as Unordered, O as Ordered } from "./index-BEjKnOZA.mjs";
12
+ import { f as formatDate, b as formatNumber, a as getCurrentMonth, g as getCurrentYear } from "./index-C7z5qqm_.mjs";
13
+ import { d as SocialNetworks, L as LinkButton } from "./index-Lln67Kfn.mjs";
14
+ import { u as usePrimaryColors } from "./index-CB0JfZMx.mjs";
15
+ import { a as getSeededRandomComparator, r as randomComparator, g as getCurrencySymbol } from "./index-BeJTy4iY.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" }),
18
+ const ArticleMetaItem = ({ label, value }) => {
19
+ const color = useColorModeValue("gray.600", "gray.400");
20
+ return /* @__PURE__ */ jsxs(Box, { children: [
21
+ /* @__PURE__ */ jsx(Text, { as: "span", color, children: label }),
22
+ value
23
+ ] });
24
+ };
25
+ const ArticleMeta = ({ createdAt, updatedAt, minutesToRead, author, variant = "full" }) => {
26
+ const { currentLocale } = usePageContext();
27
+ const { t: t2 } = useTranslation("article");
28
+ return /* @__PURE__ */ jsxs(Flex, { columnGap: 4, rowGap: 2, wrap: "wrap", children: [
19
29
  /* @__PURE__ */ jsx(
20
- "path",
30
+ ArticleMetaItem,
21
31
  {
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"
32
+ label: variant === "full" ? `📅 ${t2("meta.publicationDate")}` : "📅 ",
33
+ value: formatDate({ value: updatedAt ?? createdAt, locale: currentLocale.code })
24
34
  }
25
- )
35
+ ),
36
+ !!minutesToRead && /* @__PURE__ */ jsx(
37
+ ArticleMetaItem,
38
+ {
39
+ label: variant === "full" ? `⏳ ${t2("meta.readingTime.label")}` : "⏳ ",
40
+ value: t2("meta.readingTime.count", { count: minutesToRead })
41
+ }
42
+ ),
43
+ !!author && /* @__PURE__ */ jsx(ArticleMetaItem, { label: variant === "full" ? `🧑🏻‍💻 ${t2("meta.author")}` : "🧑🏻‍💻 ", value: author.name })
26
44
  ] });
27
45
  };
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
46
  const ONE_LINE_HEIGHT = 24;
100
47
  const Bio = ({ content, maxLines = 1 }) => {
101
48
  const ref = useRef(null);
@@ -148,52 +95,45 @@ const Center = ({ children, ...boxProps }) => {
148
95
  };
149
96
  const defaultColumns = { base: 1, sm: 2, md: 3, lg: 4, xl: 5 };
150
97
  const Grid = ({ items, columns = defaultColumns, gap, render, getKey, ...boxProps }) => {
151
- 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)) });
98
+ 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) : index)) });
99
+ };
100
+ const ActionButton = ({ label, href, ...boxProps }) => {
101
+ return /* @__PURE__ */ jsx(Flex, { justifyContent: "center", ...boxProps, children: /* @__PURE__ */ jsx(LinkButton, { label, href, textDecoration: "none" }) });
102
+ };
103
+ const ArticleCard = ({ title, image, meta, url }) => {
104
+ return /* @__PURE__ */ jsxs(Card, { as: Link, to: url, overflow: "hidden", _hover: { transform: "scale(1.02)", textDecoration: "none" }, children: [
105
+ /* @__PURE__ */ jsxs(CardBody, { as: "section", p: 0, children: [
106
+ !!image && /* @__PURE__ */ jsx(Image, { src: image, alt: title, mode: "thumbnail" }),
107
+ /* @__PURE__ */ jsx(Heading2, { size: "md", px: 4, children: title })
108
+ ] }),
109
+ !!meta && /* @__PURE__ */ jsx(CardFooter, { as: "footer", fontSize: "sm", pt: 0, px: 4, children: /* @__PURE__ */ jsx(ArticleMeta, { ...meta, variant: "short" }) })
110
+ ] });
152
111
  };
153
- const LinkButton = ({
154
- label,
155
- href,
156
- linkType = "redirect",
157
- size = "auto",
158
- width = "auto",
159
- textTransform,
160
- textDecoration,
161
- animation,
162
- onClick,
112
+ const ArticleCardGrid = ({
113
+ items,
114
+ columns = { base: 1, md: 2, lg: 3 },
115
+ gap = 4,
163
116
  ...boxProps
164
117
  }) => {
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
118
  return /* @__PURE__ */ jsx(
175
- Button,
119
+ Grid,
176
120
  {
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
121
+ items,
122
+ columns,
123
+ gap,
124
+ getKey: (_, index) => index,
125
+ render: (item) => /* @__PURE__ */ jsx(ArticleCard, { ...item }),
126
+ ...boxProps
194
127
  }
195
128
  );
196
129
  };
130
+ const ArticleInfoCard = ({ title, description, meta, ...boxProps }) => {
131
+ return /* @__PURE__ */ jsxs(Card, { as: "article", variant: "filled", ...boxProps, children: [
132
+ /* @__PURE__ */ jsx(CardHeader, { as: "header", pb: 0, children: /* @__PURE__ */ jsx(Heading1, { children: title }) }),
133
+ /* @__PURE__ */ jsx(CardBody, { as: "section", py: 0, children: description }),
134
+ !!meta && /* @__PURE__ */ jsx(CardFooter, { as: "footer", children: /* @__PURE__ */ jsx(ArticleMeta, { ...meta }) })
135
+ ] });
136
+ };
197
137
  const AuthorCard = ({ author, ...boxProps }) => {
198
138
  const { t: t2 } = useTranslation("author");
199
139
  return /* @__PURE__ */ jsxs(Card, { as: "article", variant: "filled", ...boxProps, children: [
@@ -287,76 +227,6 @@ const BonusCardGrid = ({
287
227
  }
288
228
  );
289
229
  };
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
230
  const Faq = ({ items, ...boxProps }) => {
361
231
  const { bgColor, invertedColor } = usePrimaryColors();
362
232
  return /* @__PURE__ */ jsx(Accordion, { allowToggle: true, ...boxProps, children: items.map(({ question, answer }) => {
@@ -391,7 +261,7 @@ const FeatureCardGrid = ({
391
261
  items,
392
262
  columns,
393
263
  gap,
394
- getKey: ({ title }) => title,
264
+ getKey: (_, index) => index,
395
265
  render: (item) => /* @__PURE__ */ jsx(FeatureCard, { ...item }),
396
266
  ...boxProps
397
267
  }
@@ -413,7 +283,7 @@ const GameCard = ({ name, description, image, url, height = "auto" }) => {
413
283
  children: [
414
284
  /* @__PURE__ */ jsx(Image, { src: image, alt: name, mode: "thumbnail" }),
415
285
  /* @__PURE__ */ jsxs(Box, { as: "section", rounded: "md", p: 4, children: [
416
- /* @__PURE__ */ jsx(Text, { as: "span", children: url ? /* @__PURE__ */ jsx(LinkOverlay, { href: url, target: "_blank", rel: "noopener noreferrer nofollow", children: name }) : name }),
286
+ /* @__PURE__ */ jsx(Text, { as: "span", children: url ? /* @__PURE__ */ jsx(LinkOverlay, { as: Link, to: url, children: name }) : name }),
417
287
  !!description && /* @__PURE__ */ jsx(Text, { fontSize: "sm", color: "gray.600", children: description })
418
288
  ] })
419
289
  ]
@@ -501,19 +371,54 @@ const GameDemoContent = ({
501
371
  /* @__PURE__ */ jsx(AbsoluteCenter, { children: /* @__PURE__ */ jsx(Spinner, { size: "xl", thickness: "0.6rem", display: isLoaded ? "none" : "block", color: "brand.100" }) })
502
372
  ] });
503
373
  };
504
- const GameDemoPreview = ({ image, alt, href, imageFit = "contain", onPlayDemo }) => {
374
+ const GameDemoAlert = () => {
505
375
  const { t: t2 } = useTranslation("gameDemo");
506
- return /* @__PURE__ */ jsxs(Fragment, { children: [
507
- /* @__PURE__ */ jsx(Image, { src: image, alt, objectFit: imageFit, w: "100%", h: "100%" }),
508
- /* @__PURE__ */ jsx(AbsoluteCenter, { children: /* @__PURE__ */ jsxs(Stack, { spacing: 4, children: [
509
- /* @__PURE__ */ jsx(
510
- LinkButton,
511
- {
512
- animation: { type: "pulse", params: { duration: 2, timingFunction: "ease-out", isInfinite: true } },
513
- ...href ? { label: t2("action.playForReal"), href } : { label: t2("action.playForFree"), onClick: onPlayDemo }
514
- }
515
- ),
516
- !!href && /* @__PURE__ */ jsx(
376
+ return /* @__PURE__ */ jsxs(
377
+ Alert,
378
+ {
379
+ status: "warning",
380
+ flexDirection: { base: "column", md: "row" },
381
+ justifyContent: { base: "center", md: "flex-start" },
382
+ alignItems: "center",
383
+ rounded: "lg",
384
+ children: [
385
+ /* @__PURE__ */ jsx(AlertIcon, {}),
386
+ /* @__PURE__ */ jsxs(
387
+ Flex,
388
+ {
389
+ direction: { base: "column", md: "row" },
390
+ justifyContent: { base: "center", md: "flex-start" },
391
+ alignItems: { base: "center", md: "baseline" },
392
+ wrap: "wrap",
393
+ textAlign: { base: "center", md: "start" },
394
+ children: [
395
+ /* @__PURE__ */ jsx(AlertTitle, { my: 1, fontSize: { base: "sm", sm: "md", md: "lg" }, lineHeight: "short", children: t2("alert.title") }),
396
+ /* @__PURE__ */ jsx(AlertDescription, { fontSize: { base: "sm", sm: "md", md: "lg" }, lineHeight: "short", children: t2("alert.description") })
397
+ ]
398
+ }
399
+ )
400
+ ]
401
+ }
402
+ );
403
+ };
404
+ const buttonAnimationProps = {
405
+ type: "pulse",
406
+ params: { duration: 2, timingFunction: "ease-out", isInfinite: true }
407
+ };
408
+ const GameDemoPreview = ({ image, alt, src, refLink, imageFit = "contain", onPlayDemo }) => {
409
+ const { t: t2 } = useTranslation("gameDemo");
410
+ function getPrimaryButton() {
411
+ if (refLink) {
412
+ return /* @__PURE__ */ jsx(LinkButton, { animation: buttonAnimationProps, label: t2("action.playForReal"), href: refLink });
413
+ } else if (src) {
414
+ return /* @__PURE__ */ jsx(LinkButton, { animation: buttonAnimationProps, label: t2("action.playForFree"), onClick: onPlayDemo });
415
+ } else {
416
+ return null;
417
+ }
418
+ }
419
+ function getSecondaryButton() {
420
+ if (refLink && src) {
421
+ return /* @__PURE__ */ jsx(
517
422
  Button,
518
423
  {
519
424
  variant: "solid",
@@ -523,11 +428,23 @@ const GameDemoPreview = ({ image, alt, href, imageFit = "contain", onPlayDemo })
523
428
  onClick: onPlayDemo,
524
429
  children: t2("action.playForFree")
525
430
  }
526
- )
527
- ] }) })
431
+ );
432
+ } else {
433
+ return null;
434
+ }
435
+ }
436
+ return /* @__PURE__ */ jsxs(Stack, { children: [
437
+ !src && /* @__PURE__ */ jsx(GameDemoAlert, {}),
438
+ /* @__PURE__ */ jsxs(Box, { position: "relative", children: [
439
+ /* @__PURE__ */ jsx(Image, { src: image, alt, objectFit: imageFit, w: "100%", h: "100%" }),
440
+ /* @__PURE__ */ jsx(AbsoluteCenter, { children: /* @__PURE__ */ jsxs(Stack, { spacing: 4, children: [
441
+ getPrimaryButton(),
442
+ getSecondaryButton()
443
+ ] }) })
444
+ ] })
528
445
  ] });
529
446
  };
530
- const GameDemo = ({ name, src, href, previewImage, previewImageFit, ...boxProps }) => {
447
+ const GameDemo = ({ name, src, refLink, previewImage, previewImageFit, ...boxProps }) => {
531
448
  const [isRunning, setIsRunning] = useState(false);
532
449
  const [isLoaded, setIsLoaded] = useState(false);
533
450
  const { isOpen: isFullscreen, onToggle, onClose } = useDisclosure({ defaultIsOpen: false });
@@ -570,7 +487,8 @@ const GameDemo = ({ name, src, href, previewImage, previewImageFit, ...boxProps
570
487
  {
571
488
  image: previewImage,
572
489
  alt: name,
573
- href,
490
+ src,
491
+ refLink,
574
492
  imageFit: previewImageFit,
575
493
  onPlayDemo: handlePlayDemo
576
494
  }
@@ -623,7 +541,7 @@ function getGameInfoItemValue(key, value, locale) {
623
541
  if (key === GameCharacteristic.ReleaseDate) {
624
542
  formattedValue = formatDate({ value, locale, options: { year: "numeric", month: "long" } });
625
543
  }
626
- if (key === GameCharacteristic.Volatility) {
544
+ if (key === GameCharacteristic.Volatility && Object.values(GameVolatility).includes(value)) {
627
545
  formattedValue = stringifyVolatility(value);
628
546
  }
629
547
  if (!formattedValue) {
@@ -677,497 +595,264 @@ const HowTo = ({ steps, ...boxProps }) => {
677
595
  ] })
678
596
  ] }, index)) });
679
597
  };
680
- const Container = ({ children }) => {
681
- return /* @__PURE__ */ jsx(Container$1, { maxW: "container.xl", children });
682
- };
683
- const Content = ({ children }) => {
684
- return /* @__PURE__ */ jsx(Box, { as: "section", py: 4, children: /* @__PURE__ */ jsx(Container, { children }) });
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" }) });
690
- };
691
- const Brand$1 = ({ brand }) => {
692
- return /* @__PURE__ */ jsxs(Box, { position: "relative", my: 2, py: 8, children: [
693
- /* @__PURE__ */ jsx(Divider, {}),
694
- /* @__PURE__ */ jsx(AbsoluteCenter, { display: "flex", bgColor: useColorModeValue("gray.50", "gray.900"), children: /* @__PURE__ */ jsx(Link$1, { to: "/", children: brand }) })
695
- ] });
696
- };
697
- const Copyright = () => {
698
- const { metadata } = useSiteContext();
699
- const { t: t2 } = useTranslation("footer");
700
- const siteName = metadata.name;
701
- const lang = metadata.lang;
702
- return /* @__PURE__ */ jsx(Text, { as: "small", colorScheme: "gray", display: "flex", align: "center", justifyContent: "center", children: t2("copyright", { year: getCurrentYear(lang), siteName }) });
703
- };
704
- const Disclaimer = () => {
705
- const { metadata } = useSiteContext();
706
- const { t: t2 } = useTranslation("footer");
707
- const siteName = metadata.name;
708
- return /* @__PURE__ */ jsxs(Text, { as: "small", colorScheme: "gray", fontSize: "sm", children: [
709
- /* @__PURE__ */ jsx(Text, { as: "span", fontWeight: "bold", color: "red.600", children: t2("disclaimer.title") }),
710
- t2("disclaimer.description", { siteName })
711
- ] });
712
- };
713
- const Extra = ({ children }) => {
714
- return /* @__PURE__ */ jsx(Box, { as: "section", my: 2, children });
715
- };
716
- const Navigation$1 = ({ menu }) => {
717
- return /* @__PURE__ */ jsx(
718
- SimpleGrid,
719
- {
720
- as: "ul",
721
- columns: { base: 1, sm: 2, md: 4 },
722
- mt: 4,
723
- mb: 6,
724
- p: 0,
725
- spacing: 4,
726
- justifyItems: { base: "flex-start", md: "center" },
727
- justifyContent: "space-between",
728
- children: menu.map(({ slug, label }, index) => /* @__PURE__ */ jsx(Flex, { as: "li", children: /* @__PURE__ */ jsx(
729
- Text,
730
- {
731
- as: Link$1,
732
- to: slug,
733
- fontSize: "md",
734
- fontWeight: "semibold",
735
- colorScheme: "gray",
736
- _hover: { textDecoration: "none", color: "brand.400" },
737
- children: label
738
- }
739
- ) }, index))
740
- }
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;
752
- return /* @__PURE__ */ jsx(
753
- Box,
598
+ function getQuotePseudoElement(color) {
599
+ return {
600
+ content: '"❛❛"',
601
+ position: "absolute",
602
+ top: -8,
603
+ left: -2,
604
+ fontSize: "6rem",
605
+ fontStyle: "italic",
606
+ color
607
+ };
608
+ }
609
+ const PrefixMap = {
610
+ advice: "🚀",
611
+ fact: "💡",
612
+ quote: ""
613
+ };
614
+ const BorderColorMap = {
615
+ advice: "red.400",
616
+ fact: "yellow.400",
617
+ quote: "gray"
618
+ };
619
+ const Informer = ({ type, text, author = null, ...boxProps }) => {
620
+ const { t: t2 } = useTranslation("informer");
621
+ const quotePseudoElementColor = useColorModeValue("blackAlpha.300", "whiteAlpha.300");
622
+ return /* @__PURE__ */ jsxs(
623
+ Card,
754
624
  {
755
- as: "footer",
756
- bg: useColorModeValue("gray.50", "gray.900"),
757
- color: useColorModeValue("gray.700", "gray.200"),
758
- py: 4,
759
- children: /* @__PURE__ */ jsxs(Container, { children: [
760
- hasNavigation && /* @__PURE__ */ jsx(Navigation$1, { menu }),
761
- hasExtra && /* @__PURE__ */ jsx(Extra, { children: extra }),
762
- showDisclaimer && /* @__PURE__ */ jsx(Disclaimer, {}),
763
- /* @__PURE__ */ jsx(Brand$1, { brand: /* @__PURE__ */ jsx(Logo, {}) }),
764
- hasSocialNetworks && /* @__PURE__ */ jsx(SocialNetworks, { socialNetworks, justify: "center", my: 2 }),
765
- /* @__PURE__ */ jsx(Copyright, {})
766
- ] })
625
+ variant: "filled",
626
+ p: 4,
627
+ borderLeft: "4px solid",
628
+ borderLeftColor: BorderColorMap[type],
629
+ gap: 4,
630
+ ...type === "quote" && { _before: getQuotePseudoElement(quotePseudoElementColor) },
631
+ ...boxProps,
632
+ children: [
633
+ /* @__PURE__ */ jsxs(CardBody, { as: "blockquote", p: 0, fontStyle: "italic", children: [
634
+ type !== "quote" && /* @__PURE__ */ jsxs(Text, { as: "span", fontStyle: "normal", fontWeight: "semibold", mr: 2, children: [
635
+ PrefixMap[type],
636
+ t2(type),
637
+ ":"
638
+ ] }),
639
+ text
640
+ ] }),
641
+ !!author && /* @__PURE__ */ jsx(CardFooter, { alignItems: "center", justify: "flex-end", p: 0, children: /* @__PURE__ */ jsx(Author, { author, variant: "short" }) })
642
+ ]
767
643
  }
768
644
  );
769
645
  };
770
- const Brand = ({ brand }) => {
771
- return /* @__PURE__ */ jsx(Link$1, { to: "/", children: brand });
646
+ const List = ({ items, bullet = "—", render, ...boxProps }) => {
647
+ return /* @__PURE__ */ jsx(List$1, { pl: 0, ml: 2, ...boxProps, children: items.map((item, index) => /* @__PURE__ */ jsxs(ListItem, { display: "flex", gap: 1, children: [
648
+ /* @__PURE__ */ jsx(Box, { children: bullet }),
649
+ render ? render(item) : item
650
+ ] }, index)) });
772
651
  };
773
- const FranceIcon = (props) => {
774
- return /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", width: "1em", height: "1em", ...props, children: [
775
- /* @__PURE__ */ jsx("mask", { id: "circleFlagsFr0", children: /* @__PURE__ */ jsx("circle", { cx: "256", cy: "256", r: "256", fill: "#fff" }) }),
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" })
652
+ const NotFound = () => {
653
+ const { t: t2 } = useTranslation("pageNotFound");
654
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
655
+ /* @__PURE__ */ jsx(Heading1, { children: t2("title") }),
656
+ /* @__PURE__ */ jsxs(Paragraph, { fontSize: "xl", children: [
657
+ t2("description"),
658
+ " ",
659
+ /* @__PURE__ */ jsx(Button, { as: Link, to: "/", variant: "link", colorScheme: "brand", fontSize: "xl", children: t2("action") })
780
660
  ] })
781
661
  ] });
782
662
  };
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
- ] })
663
+ const CookiePolicy = () => {
664
+ const { t: t2 } = useTranslation("pageCookiePolicy");
665
+ const { metadata } = useSiteContext();
666
+ const { name: siteName } = metadata;
667
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
668
+ /* @__PURE__ */ jsx(Heading1, { children: t2("title") }),
669
+ /* @__PURE__ */ jsx(Paragraph, { children: t2("text", { siteName }) }),
670
+ /* @__PURE__ */ jsx(Heading2, { children: t2("sectionOne.title", { siteName }) }),
671
+ /* @__PURE__ */ jsx(Paragraph, { children: t2("sectionOne.textOne", { siteName }) }),
672
+ /* @__PURE__ */ jsx(Paragraph, { children: t2("sectionOne.textTwo") }),
673
+ /* @__PURE__ */ jsx(Heading2, { children: t2("sectionTwo.title") }),
674
+ /* @__PURE__ */ jsx(Paragraph, { children: t2("sectionTwo.textOne", { siteName }) }),
675
+ /* @__PURE__ */ jsxs(Unordered, { children: [
676
+ /* @__PURE__ */ jsx("li", { children: t2("sectionTwo.list.itemOne") }),
677
+ /* @__PURE__ */ jsx("li", { children: t2("sectionTwo.list.itemTwo") }),
678
+ /* @__PURE__ */ jsx("li", { children: t2("sectionTwo.list.itemThree") })
679
+ ] }),
680
+ /* @__PURE__ */ jsx(Paragraph, { children: t2("sectionTwo.textTwo") }),
681
+ /* @__PURE__ */ jsx(Heading2, { children: t2("sectionThree.title") }),
682
+ /* @__PURE__ */ jsxs(Ordered, { children: [
683
+ /* @__PURE__ */ jsx("li", { children: t2("sectionThree.list.itemOne") }),
684
+ /* @__PURE__ */ jsx("li", { children: t2("sectionThree.list.itemTwo") }),
685
+ /* @__PURE__ */ jsx("li", { children: t2("sectionThree.list.itemThree") }),
686
+ /* @__PURE__ */ jsx("li", { children: t2("sectionThree.list.itemFour") })
687
+ ] }),
688
+ /* @__PURE__ */ jsx(Paragraph, { children: t2("sectionThree.text", { siteName }) })
791
689
  ] });
792
690
  };
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"
691
+ const ContactForm = ({ ...boxProps }) => {
692
+ const toast = useToast();
693
+ const { t: t2 } = useTranslation("contactForm");
694
+ function handleSubmit(event) {
695
+ event.preventDefault();
696
+ const form = event.currentTarget;
697
+ const formData = new FormData(form);
698
+ const name = formData.get("name");
699
+ const email = formData.get("email");
700
+ const message = formData.get("message");
701
+ if (name && email && message) {
702
+ form.reset();
703
+ toast({
704
+ title: t2("notification.title", { name }),
705
+ description: t2("notification.description", { email }),
706
+ colorScheme: "brand",
707
+ status: "success",
708
+ duration: 5e3,
709
+ isClosable: true
710
+ });
711
+ } else {
712
+ console.error("Please fill out both fields");
799
713
  }
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
714
  }
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
715
  return /* @__PURE__ */ jsx(
871
- Text,
716
+ Box,
872
717
  {
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,
718
+ as: "form",
719
+ borderRadius: "lg",
720
+ p: 8,
721
+ color: useColorModeValue("gray.700", "whiteAlpha.900"),
722
+ bg: useColorModeValue("white", "gray.700"),
723
+ shadow: "base",
724
+ onSubmit: handleSubmit,
725
+ ...boxProps,
726
+ children: /* @__PURE__ */ jsxs(VStack, { spacing: 4, children: [
727
+ /* @__PURE__ */ jsxs(FormControl, { isRequired: true, children: [
728
+ /* @__PURE__ */ jsx(FormLabel, { children: t2("field.name.label") }),
729
+ /* @__PURE__ */ jsxs(InputGroup, { children: [
730
+ /* @__PURE__ */ jsx(InputLeftElement, { children: /* @__PURE__ */ jsx(
731
+ "svg",
915
732
  {
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 })
733
+ xmlns: "http://www.w3.org/2000/svg",
734
+ width: "16",
735
+ height: "16",
736
+ fill: "currentColor",
737
+ className: "bi bi-person-fill",
738
+ viewBox: "0 0 16 16",
739
+ 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" })
924
740
  }
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
- ) }) })
1023
- ] });
1024
- };
1025
- const Navigation = ({ menu }) => {
1026
- return /* @__PURE__ */ jsxs(Fragment, { children: [
1027
- /* @__PURE__ */ jsx(DesktopNavigation, { menu }),
1028
- /* @__PURE__ */ jsx(MobileNavigation, { menu })
1029
- ] });
1030
- };
1031
- const Header = () => {
1032
- var _a;
1033
- const { navigation, localization, config } = useSiteContext();
1034
- const { currentLocale } = usePageContext();
1035
- const locales = localization.locales;
1036
- const menu = navigation.header[currentLocale.code] ?? [];
1037
- const toolbar = (_a = config == null ? void 0 : config.header) == null ? void 0 : _a.toolbar;
1038
- const isMultiLanguage = locales.length > 1;
1039
- const hasNavigation = !!menu.length;
1040
- const hasToolbar = !!toolbar || isMultiLanguage;
1041
- return /* @__PURE__ */ jsx(
1042
- Box,
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
- " —"
741
+ ) }),
742
+ /* @__PURE__ */ jsx(Input, { type: "text", name: "name", placeholder: t2("field.name.placeholder") })
743
+ ] })
1082
744
  ] }),
1083
- /* @__PURE__ */ jsx(Text, { as: "span", display: "block", color: "brand.400", children: subtitle })
1084
- ] }),
1085
- /* @__PURE__ */ jsx(Text, { fontSize: { base: "md", lg: "lg" }, color: "gray.500", children: content }),
1086
- !!link && /* @__PURE__ */ jsx(Flex, { direction: { base: "column", md: "row" }, children: /* @__PURE__ */ jsx(LinkButton, { ...link, size: "md", textDecoration: "none" }) })
1087
- ] }) }),
1088
- image && /* @__PURE__ */ jsx(Flex, { display: { base: "none", md: "flex" }, flex: 1, children: image })
1089
- ] }) }) });
1090
- };
1091
- const Main = ({ children }) => {
1092
- return /* @__PURE__ */ jsx(
1093
- Flex,
1094
- {
1095
- as: "main",
1096
- direction: "column",
1097
- flexGrow: 1,
1098
- bg: useColorModeValue("white", "gray.800"),
1099
- color: useColorModeValue("gray.700", "gray.200"),
1100
- children
1101
- }
1102
- );
1103
- };
1104
- const ScrollToTop = () => {
1105
- const [isVisible, setIsVisible] = useState(false);
1106
- useEffect(() => {
1107
- const toggleVisibility = () => {
1108
- setIsVisible(window.scrollY > 300);
1109
- };
1110
- window.addEventListener("scroll", toggleVisibility);
1111
- return () => {
1112
- window.removeEventListener("scroll", toggleVisibility);
1113
- };
1114
- }, []);
1115
- function handleClick() {
1116
- window.scrollTo({
1117
- top: 0,
1118
- behavior: "smooth"
1119
- });
1120
- }
1121
- return /* @__PURE__ */ jsx(
1122
- Box,
1123
- {
1124
- position: "fixed",
1125
- bottom: { base: 4, md: 8, lg: 16 },
1126
- right: { base: 4, md: 8, lg: 16 },
1127
- zIndex: "1000",
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
- )
745
+ /* @__PURE__ */ jsxs(FormControl, { isRequired: true, children: [
746
+ /* @__PURE__ */ jsx(FormLabel, { children: t2("field.email.label") }),
747
+ /* @__PURE__ */ jsxs(InputGroup, { children: [
748
+ /* @__PURE__ */ jsx(InputLeftElement, { children: /* @__PURE__ */ jsx(EmailIcon, {}) }),
749
+ /* @__PURE__ */ jsx(Input, { type: "email", name: "email", placeholder: t2("field.email.placeholder") })
750
+ ] })
751
+ ] }),
752
+ /* @__PURE__ */ jsxs(FormControl, { isRequired: true, children: [
753
+ /* @__PURE__ */ jsx(FormLabel, { children: t2("field.message.label") }),
754
+ /* @__PURE__ */ jsx(Textarea, { name: "message", placeholder: t2("field.message.placeholder"), rows: 6, resize: "none" })
755
+ ] }),
756
+ /* @__PURE__ */ jsx(Button, { type: "submit", colorScheme: "brand", width: "full", children: t2("action.send") })
757
+ ] })
1144
758
  }
1145
759
  );
1146
760
  };
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, {})
761
+ const Contacts = () => {
762
+ const { t: t2 } = useTranslation("pageContacts");
763
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
764
+ /* @__PURE__ */ jsx(Heading1, { children: t2("title") }),
765
+ /* @__PURE__ */ jsx(Paragraph, { children: t2("text") }),
766
+ /* @__PURE__ */ jsx(ContactForm, {})
1154
767
  ] });
1155
768
  };
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)) });
769
+ const PrivacyPolicy = ({ contactsSlug }) => {
770
+ const { t: t2 } = useTranslation("pagePrivacyPolicy");
771
+ const { metadata } = useSiteContext();
772
+ const { name: siteName } = metadata;
773
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
774
+ /* @__PURE__ */ jsx(Heading1, { children: t2("title") }),
775
+ /* @__PURE__ */ jsx(Paragraph, { children: t2("text") }),
776
+ /* @__PURE__ */ jsx(Heading2, { children: t2("sectionOne.title", { siteName }) }),
777
+ /* @__PURE__ */ jsx(Paragraph, { children: t2("sectionOne.text", { siteName }) }),
778
+ /* @__PURE__ */ jsx(Heading2, { children: t2("sectionTwo.title") }),
779
+ /* @__PURE__ */ jsx(Paragraph, { children: t2("sectionTwo.textOne") }),
780
+ /* @__PURE__ */ jsxs(Unordered, { children: [
781
+ /* @__PURE__ */ jsx("li", { children: t2("sectionTwo.list.itemOne") }),
782
+ /* @__PURE__ */ jsx("li", { children: t2("sectionTwo.list.itemTwo") })
783
+ ] }),
784
+ /* @__PURE__ */ jsx(Paragraph, { children: t2("sectionTwo.textTwo") }),
785
+ /* @__PURE__ */ jsx(Heading2, { children: t2("sectionThree.title") }),
786
+ /* @__PURE__ */ jsx(Paragraph, { children: t2("sectionThree.text") }),
787
+ /* @__PURE__ */ jsx(Heading2, { children: t2("sectionFour.title") }),
788
+ /* @__PURE__ */ jsx(Paragraph, { children: t2("sectionFour.text") }),
789
+ /* @__PURE__ */ jsx(Heading2, { children: t2("sectionFive.title") }),
790
+ /* @__PURE__ */ jsx(Paragraph, { children: t2("sectionFive.text", { siteName }) }),
791
+ /* @__PURE__ */ jsx(Heading2, { children: t2("sectionSix.title") }),
792
+ contactsSlug ? /* @__PURE__ */ jsxs(Paragraph, { children: [
793
+ t2("sectionSix.textWithLink.contentStart"),
794
+ /* @__PURE__ */ jsx(Link, { color: "brand.400", to: contactsSlug, children: t2("sectionSix.textWithLink.link") }),
795
+ t2("sectionSix.textWithLink.contentEnd", { siteName })
796
+ ] }) : /* @__PURE__ */ jsx(Paragraph, { children: t2("sectionSix.text", { siteName }) })
797
+ ] });
1161
798
  };
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
- ] })
799
+ const TermsAndConditions = ({ privacyPolicySlug }) => {
800
+ const { t: t2 } = useTranslation("pageTermsAndConditions");
801
+ const { metadata } = useSiteContext();
802
+ const { name: siteName } = metadata;
803
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
804
+ /* @__PURE__ */ jsx(Heading1, { children: t2("title") }),
805
+ /* @__PURE__ */ jsx(Paragraph, { children: t2("text", { siteName }) }),
806
+ /* @__PURE__ */ jsx(Heading2, { children: t2("sectionOne.title") }),
807
+ /* @__PURE__ */ jsx(Paragraph, { children: t2("sectionOne.text", { siteName }) }),
808
+ /* @__PURE__ */ jsx(Unordered, { children: ["One", "Two", "Three", "Four"].map((i, index) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(Paragraph, { children: [
809
+ /* @__PURE__ */ jsxs("strong", { children: [
810
+ t2(`sectionOne.list.item${i}.title`),
811
+ ":"
812
+ ] }),
813
+ /* @__PURE__ */ jsx("br", {}),
814
+ t2(`sectionOne.list.item${i}.description`, { siteName })
815
+ ] }) }, index)) }),
816
+ /* @__PURE__ */ jsx(Heading2, { children: t2("sectionTwo.title") }),
817
+ /* @__PURE__ */ jsx(Ordered, { children: ["One", "Two", "Three", "Four"].map((i, index) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(Paragraph, { children: [
818
+ /* @__PURE__ */ jsxs("strong", { children: [
819
+ t2(`sectionTwo.list.item${i}.title`),
820
+ ":"
821
+ ] }),
822
+ /* @__PURE__ */ jsx("br", {}),
823
+ t2(`sectionTwo.list.item${i}.description`, { siteName })
824
+ ] }) }, index)) }),
825
+ /* @__PURE__ */ jsx(Heading2, { children: t2("sectionThree.title") }),
826
+ /* @__PURE__ */ jsx(Paragraph, { children: t2("sectionThree.text", { siteName }) }),
827
+ /* @__PURE__ */ jsx(Heading2, { children: t2("sectionFour.title") }),
828
+ /* @__PURE__ */ jsx(Paragraph, { children: t2("sectionFour.text", { siteName }) }),
829
+ /* @__PURE__ */ jsx(Unordered, { children: ["One", "Two"].map((i, index) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(Paragraph, { children: [
830
+ /* @__PURE__ */ jsxs("strong", { children: [
831
+ t2(`sectionFour.list.item${i}.title`),
832
+ ":"
833
+ ] }),
834
+ /* @__PURE__ */ jsx("br", {}),
835
+ t2(`sectionFour.list.item${i}.description`, { siteName })
836
+ ] }) }, index)) }),
837
+ /* @__PURE__ */ jsx(Heading2, { children: t2("sectionFive.title") }),
838
+ /* @__PURE__ */ jsx(Paragraph, { children: t2("sectionFive.text", { siteName }) }),
839
+ /* @__PURE__ */ jsx(Heading2, { children: t2("sectionSix.title") }),
840
+ /* @__PURE__ */ jsx(Paragraph, { children: t2("sectionSix.textOne") }),
841
+ /* @__PURE__ */ jsx(Unordered, { children: ["One", "Two", "Three"].map((i, index) => /* @__PURE__ */ jsx("li", { children: t2(`sectionSix.list.item${i}`) }, index)) }),
842
+ privacyPolicySlug ? /* @__PURE__ */ jsxs(Paragraph, { children: [
843
+ t2("sectionSix.textTwoWithLink.contentStart"),
844
+ /* @__PURE__ */ jsx(Link, { color: "brand.400", to: privacyPolicySlug, children: t2("sectionSix.textTwoWithLink.link") }),
845
+ t2("sectionSix.textTwoWithLink.contentEnd")
846
+ ] }) : /* @__PURE__ */ jsx(Paragraph, { children: t2("sectionSix.textTwo") }),
847
+ /* @__PURE__ */ jsx(Heading2, { children: t2("sectionSeven.title") }),
848
+ /* @__PURE__ */ jsx(Ordered, { children: ["One", "Two"].map((i, index) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(Paragraph, { children: [
849
+ /* @__PURE__ */ jsxs("strong", { children: [
850
+ t2(`sectionSeven.list.item${i}.title`),
851
+ ":"
852
+ ] }),
853
+ /* @__PURE__ */ jsx("br", {}),
854
+ t2(`sectionSeven.list.item${i}.description`, { siteName })
855
+ ] }) }, index)) })
1171
856
  ] });
1172
857
  };
1173
858
  const TitleMap = {
@@ -1310,29 +995,7 @@ const Tabs = ({ items, render, ...boxProps }) => {
1310
995
  ] });
1311
996
  };
1312
997
  const Tip = ({ tip, author = null, ...boxProps }) => {
1313
- return /* @__PURE__ */ jsxs(
1314
- Card,
1315
- {
1316
- variant: "filled",
1317
- p: 4,
1318
- borderLeft: "4px solid gray",
1319
- gap: 4,
1320
- _before: {
1321
- content: '"❛❛"',
1322
- position: "absolute",
1323
- top: -8,
1324
- left: -2,
1325
- fontSize: "6rem",
1326
- fontStyle: "italic",
1327
- color: useColorModeValue("blackAlpha.300", "whiteAlpha.300")
1328
- },
1329
- ...boxProps,
1330
- children: [
1331
- /* @__PURE__ */ jsx(CardBody, { as: "blockquote", p: 0, fontStyle: "italic", children: tip }),
1332
- !!author && /* @__PURE__ */ jsx(CardFooter, { alignItems: "center", justify: "flex-end", p: 0, children: /* @__PURE__ */ jsx(Author, { author, variant: "short" }) })
1333
- ]
1334
- }
1335
- );
998
+ return /* @__PURE__ */ jsx(Informer, { type: "quote", text: tip, author, ...boxProps });
1336
999
  };
1337
1000
  const ExternalImage = ({ image, component: ImageComponent, alt = "", ...imageProps }) => {
1338
1001
  var _a, _b;
@@ -1353,7 +1016,10 @@ function extractCurrencies(currencyList) {
1353
1016
  return [...new Set(currencyList.items.map(({ code }) => code))];
1354
1017
  }
1355
1018
  const StrapiComponent = ({ type, props, imageComponent }) => {
1019
+ var _a;
1356
1020
  switch (type) {
1021
+ case "STRAPI__COMPONENT_CONTENT_ACTION_BUTTON":
1022
+ return /* @__PURE__ */ jsx(ActionButton, { label: props.label, href: props.url, mb: 4 });
1357
1023
  case "STRAPI__COMPONENT_CONTENT_FAQ":
1358
1024
  return /* @__PURE__ */ jsx(Faq, { items: props.items, mb: 4 });
1359
1025
  case "STRAPI__COMPONENT_CONTENT_FEATURES":
@@ -1408,8 +1074,8 @@ const StrapiComponent = ({ type, props, imageComponent }) => {
1408
1074
  GameDemo,
1409
1075
  {
1410
1076
  name: props.name,
1411
- src: props.src,
1412
- href: props.href,
1077
+ src: props == null ? void 0 : props.src,
1078
+ refLink: ((_a = props == null ? void 0 : props.partner) == null ? void 0 : _a.refLink) ?? (props == null ? void 0 : props.href),
1413
1079
  previewImage: /* @__PURE__ */ jsx(ExternalImage, { image: props.previewImage, alt: props.name, component: imageComponent }),
1414
1080
  mb: 4
1415
1081
  }
@@ -1435,6 +1101,27 @@ const StrapiComponent = ({ type, props, imageComponent }) => {
1435
1101
  mb: 4
1436
1102
  }
1437
1103
  );
1104
+ case "STRAPI__COMPONENT_CONTENT_INFORMER":
1105
+ return /* @__PURE__ */ jsx(
1106
+ Informer,
1107
+ {
1108
+ type: props.type,
1109
+ text: props.text,
1110
+ author: props.author ? {
1111
+ ...props.author,
1112
+ avatar: /* @__PURE__ */ jsx(
1113
+ ExternalImage,
1114
+ {
1115
+ component: imageComponent,
1116
+ image: props.author.avatar,
1117
+ alt: props.author.name,
1118
+ style: { borderRadius: "50%" }
1119
+ }
1120
+ )
1121
+ } : null,
1122
+ mb: 4
1123
+ }
1124
+ );
1438
1125
  case "STRAPI__COMPONENT_CONTENT_LIST":
1439
1126
  return /* @__PURE__ */ jsx(List, { bullet: props.bullet, items: extractItemsFromJson(props.content), mb: 4 });
1440
1127
  case "STRAPI__COMPONENT_CONTENT_MEDIA":
@@ -1483,6 +1170,14 @@ const StrapiComponent = ({ type, props, imageComponent }) => {
1483
1170
  mb: 4
1484
1171
  }
1485
1172
  );
1173
+ case "STRAPI__COMPONENT_CONTENT_CONTACTS_PAGE":
1174
+ return /* @__PURE__ */ jsx(Contacts, { ...props });
1175
+ case "STRAPI__COMPONENT_CONTENT_COOKIE_POLICY_PAGE":
1176
+ return /* @__PURE__ */ jsx(CookiePolicy, { ...props });
1177
+ case "STRAPI__COMPONENT_CONTENT_PRIVACY_POLICY_PAGE":
1178
+ return /* @__PURE__ */ jsx(PrivacyPolicy, { ...props });
1179
+ case "STRAPI__COMPONENT_CONTENT_TERMS_CONDITIONS_PAGE":
1180
+ return /* @__PURE__ */ jsx(TermsAndConditions, { ...props });
1486
1181
  default:
1487
1182
  return null;
1488
1183
  }
@@ -1499,31 +1194,36 @@ const StrapiContentRenderer = ({ content, imageComponent }) => {
1499
1194
  return content.map(({ __typename: type, ...props }, index) => /* @__PURE__ */ jsx(StrapiComponent, { type, props, imageComponent }, index));
1500
1195
  };
1501
1196
  export {
1502
- AuthorCard as A,
1197
+ ActionButton as A,
1503
1198
  BonusCard as B,
1504
- ContactForm as C,
1199
+ Center as C,
1505
1200
  Faq as F,
1506
1201
  GameCard as G,
1507
1202
  HowTo as H,
1508
- Layout as L,
1203
+ Informer as I,
1204
+ List as L,
1509
1205
  NotFound as N,
1510
1206
  ProsCons as P,
1511
1207
  Seo as S,
1512
1208
  Table as T,
1513
- BonusCardGrid as a,
1514
- FeatureCard as b,
1515
- FeatureCardGrid as c,
1516
- GameCardGrid as d,
1517
- GameDemo as e,
1518
- GameInfo as f,
1519
- List as g,
1520
- StrapiContentRenderer as h,
1521
- Tabs as i,
1522
- Tip as j,
1523
- Author as k,
1524
- Center as l,
1525
- Grid as m,
1526
- LinkButton as n,
1527
- SocialNetwork as o,
1528
- SocialNetworks as p
1209
+ ArticleCard as a,
1210
+ ArticleCardGrid as b,
1211
+ ArticleInfoCard as c,
1212
+ AuthorCard as d,
1213
+ BonusCardGrid as e,
1214
+ FeatureCard as f,
1215
+ FeatureCardGrid as g,
1216
+ GameCardGrid as h,
1217
+ GameDemo as i,
1218
+ GameInfo as j,
1219
+ StrapiContentRenderer as k,
1220
+ Tabs as l,
1221
+ Tip as m,
1222
+ ArticleMeta as n,
1223
+ Author as o,
1224
+ Grid as p,
1225
+ CookiePolicy as q,
1226
+ Contacts as r,
1227
+ PrivacyPolicy as s,
1228
+ TermsAndConditions as t
1529
1229
  };