@anywayseo/tools 5.6.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 (92) 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/index.d.ts +3 -0
  10. package/dist/components/base/rating/index.d.ts +10 -0
  11. package/dist/components/bonus-card-grid/index.d.ts +2 -4
  12. package/dist/components/casino-table/index.d.ts +8 -0
  13. package/dist/components/casino-table/row/casino-actions/index.d.ts +8 -0
  14. package/dist/components/casino-table/row/casino-bonus/index.d.ts +8 -0
  15. package/dist/components/casino-table/row/casino-info/index.d.ts +7 -0
  16. package/dist/components/casino-table/row/casino-info/item/index.d.ts +7 -0
  17. package/dist/components/casino-table/row/casino-info/utils.d.ts +2 -0
  18. package/dist/components/casino-table/row/casino-license/index.d.ts +5 -0
  19. package/dist/components/casino-table/row/casino-logo/index.d.ts +9 -0
  20. package/dist/components/casino-table/row/casino-name/index.d.ts +8 -0
  21. package/dist/components/casino-table/row/cell/index.d.ts +7 -0
  22. package/dist/components/casino-table/row/index.d.ts +7 -0
  23. package/dist/components/feature-card-grid/index.d.ts +2 -4
  24. package/dist/components/game-card-grid/index.d.ts +2 -4
  25. package/dist/components/game-demo/content/index.d.ts +1 -1
  26. package/dist/components/game-demo/index.d.ts +2 -2
  27. package/dist/components/game-demo/preview/alert/index.d.ts +3 -0
  28. package/dist/components/game-demo/preview/index.d.ts +2 -1
  29. package/dist/components/index.cjs +12 -3
  30. package/dist/components/index.d.ts +6 -0
  31. package/dist/components/index.mjs +32 -23
  32. package/dist/components/informer/index.d.ts +9 -0
  33. package/dist/components/informer/utils.d.ts +5 -0
  34. package/dist/components/tip/index.d.ts +3 -0
  35. package/dist/hooks/index.cjs +2 -2
  36. package/dist/hooks/index.mjs +2 -2
  37. package/dist/i18n/index.cjs +1 -1
  38. package/dist/i18n/index.mjs +1 -1
  39. package/dist/i18n/resources/bg/index.d.ts +51 -0
  40. package/dist/i18n/resources/da/index.d.ts +51 -0
  41. package/dist/i18n/resources/de/index.d.ts +51 -0
  42. package/dist/i18n/resources/en/index.d.ts +51 -0
  43. package/dist/i18n/resources/fi/index.d.ts +51 -0
  44. package/dist/i18n/resources/fr/index.d.ts +51 -0
  45. package/dist/i18n/resources/it/index.d.ts +51 -0
  46. package/dist/i18n/resources/ka/index.d.ts +51 -0
  47. package/dist/i18n/resources/pt/index.d.ts +51 -0
  48. package/dist/i18n/resources/ru/index.d.ts +51 -0
  49. package/dist/{index-DMR4Ptkt.js → index-B-k9oWE7.js} +606 -10
  50. package/dist/{index-CyuHme_p.js → index-B71VkIfX.js} +403 -234
  51. package/dist/index-BTpEZIok.js +401 -0
  52. package/dist/index-BeJTy4iY.mjs +26 -0
  53. package/dist/index-BfITsKAr.js +25 -0
  54. package/dist/{index-Drz_7u2p.mjs → index-C7z5qqm_.mjs} +21 -23
  55. package/dist/{index-DYS7zQW4.mjs → index-CB0JfZMx.mjs} +1 -1
  56. package/dist/{index-JUwyHkmj.mjs → index-CEqTLcAR.mjs} +238 -69
  57. package/dist/{index-CWMHJGbL.mjs → index-CVN8I7r9.mjs} +616 -20
  58. package/dist/{index-5J1CqqcW.js → index-D15SAjJc.js} +1 -1
  59. package/dist/{index-BzbpMLDD.mjs → index-DHURrUMW.mjs} +1 -1
  60. package/dist/{index-C2T70CMa.mjs → index-FfZIjQy3.mjs} +5 -4
  61. package/dist/index-Lln67Kfn.mjs +402 -0
  62. package/dist/{index-CR5rM7at.js → index-QPgJfbrC.js} +36 -35
  63. package/dist/{index-D4zJ5RBA.js → index-TxqSZvgf.js} +5 -4
  64. package/dist/{index-HLGPI9-S.mjs → index-ksqN4RPm.mjs} +29 -28
  65. package/dist/{index-WFgDSB1A.js → index-ma-iV7GU.js} +1 -1
  66. package/dist/{index-CkRY_NXp.js → index-qR3kVjjs.js} +20 -22
  67. package/dist/index.cjs +24 -12
  68. package/dist/index.mjs +53 -41
  69. package/dist/layout/index.cjs +13 -12
  70. package/dist/layout/index.mjs +13 -12
  71. package/dist/providers/index.cjs +2 -2
  72. package/dist/providers/index.mjs +2 -2
  73. package/dist/types/components/article-card/index.d.ts +9 -0
  74. package/dist/types/components/button/index.d.ts +1 -1
  75. package/dist/types/components/casino/index.d.ts +32 -0
  76. package/dist/types/components/casino-info/index.d.ts +12 -0
  77. package/dist/types/components/common/index.d.ts +1 -1
  78. package/dist/types/components/game-info/index.d.ts +4 -8
  79. package/dist/types/components/grid/index.d.ts +4 -0
  80. package/dist/types/components/index.d.ts +4 -0
  81. package/dist/types/components/informer/index.d.ts +5 -0
  82. package/dist/types/components/strapi-component/index.d.ts +1 -1
  83. package/dist/types/content/article/index.d.ts +12 -0
  84. package/dist/types/content/index.d.ts +1 -0
  85. package/dist/types/i18n/index.d.ts +1 -1
  86. package/dist/utils/index.cjs +5 -5
  87. package/dist/utils/index.mjs +7 -7
  88. package/package.json +1 -1
  89. package/dist/index-B1PwYYQt.mjs +0 -24
  90. package/dist/index-B6wz_B9_.js +0 -145
  91. package/dist/index-C-ri0Fgy.js +0 -23
  92. package/dist/index-COv56GyV.mjs +0 -146
@@ -1,13 +1,22 @@
1
1
  "use strict";
2
2
  const i18n = require("./i18n/index.cjs");
3
- function getCurrencySymbol(currencyCode, locale = i18n.DEFAULT_LANGUAGE) {
4
- const symbol = 0 .toLocaleString(locale, {
5
- style: "currency",
6
- currency: currencyCode,
7
- minimumFractionDigits: 0,
8
- maximumFractionDigits: 0
9
- }).replace(/\d/g, "").trim();
10
- return symbol;
3
+ function getCurrentYear(locale = i18n.DEFAULT_LANGUAGE) {
4
+ const currentDate = /* @__PURE__ */ new Date();
5
+ const currentYear = new Intl.DateTimeFormat(locale, { year: "numeric" }).format(currentDate);
6
+ return currentYear;
7
+ }
8
+ function getCurrentMonth(locale = i18n.DEFAULT_LANGUAGE) {
9
+ const currentDate = /* @__PURE__ */ new Date();
10
+ const currentMonth = new Intl.DateTimeFormat(locale, { month: "long" }).format(currentDate);
11
+ return currentMonth;
12
+ }
13
+ function formatDate({ value, locale = i18n.DEFAULT_LANGUAGE, options }) {
14
+ const date = typeof value === "string" || typeof value === "number" ? new Date(value) : value;
15
+ if (isNaN(date.getTime())) {
16
+ throw new Error("Invalid date provided");
17
+ }
18
+ const formatter = new Intl.DateTimeFormat(locale, options);
19
+ return formatter.format(date);
11
20
  }
12
21
  const DEFAULT_PRECISION = 2;
13
22
  function round(number, precision) {
@@ -46,20 +55,9 @@ function formatNumber(number, options) {
46
55
  const formatter = new Intl.NumberFormat(locale, formatOptions);
47
56
  return `${formatter.format(round(number, precision))}${postfix}`;
48
57
  }
49
- function randomComparator() {
50
- return Math.random() - 0.5;
51
- }
52
- function seededRandom(seed) {
53
- return Math.abs(Math.sin(seed));
54
- }
55
- function getSeededRandomComparator(seed) {
56
- const safeSeed = Math.abs(seed) % Number.MAX_SAFE_INTEGER;
57
- let index = 0;
58
- return () => seededRandom(safeSeed + index++) - 0.5;
59
- }
58
+ exports.formatDate = formatDate;
60
59
  exports.formatNumber = formatNumber;
61
- exports.getCurrencySymbol = getCurrencySymbol;
62
- exports.getSeededRandomComparator = getSeededRandomComparator;
63
- exports.randomComparator = randomComparator;
60
+ exports.getCurrentMonth = getCurrentMonth;
61
+ exports.getCurrentYear = getCurrentYear;
64
62
  exports.round = round;
65
63
  exports.toFixedTwo = toFixedTwo;
package/dist/index.cjs CHANGED
@@ -1,21 +1,26 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("./index-CyuHme_p.js");
4
- const index$1 = require("./index-B6wz_B9_.js");
3
+ const index = require("./index-B71VkIfX.js");
4
+ const index$1 = require("./index-BTpEZIok.js");
5
5
  const index$2 = require("./index-DDg_PkD2.js");
6
- const index$3 = require("./index-CR5rM7at.js");
7
- const index$4 = require("./index-WFgDSB1A.js");
8
- const index$5 = require("./index-5J1CqqcW.js");
6
+ const index$3 = require("./index-QPgJfbrC.js");
7
+ const index$4 = require("./index-ma-iV7GU.js");
8
+ const index$5 = require("./index-D15SAjJc.js");
9
9
  const i18n = require("./i18n/index.cjs");
10
10
  const layout = require("./layout/index.cjs");
11
- const index$6 = require("./index-D4zJ5RBA.js");
12
- const index$7 = require("./index-DMR4Ptkt.js");
11
+ const index$6 = require("./index-TxqSZvgf.js");
12
+ const index$7 = require("./index-B-k9oWE7.js");
13
13
  const index$8 = require("./index-C6MG_f24.js");
14
14
  const index$9 = require("./index-CYr1ct1t.js");
15
- const index$a = require("./index-CkRY_NXp.js");
16
- const index$b = require("./index-C-ri0Fgy.js");
15
+ const index$a = require("./index-BfITsKAr.js");
16
+ const index$b = require("./index-qR3kVjjs.js");
17
17
  const index$c = require("./index-DgrIJs-a.js");
18
18
  const index$d = require("./index-CbuiYkSg.js");
19
+ exports.ActionButton = index.ActionButton;
20
+ exports.ArticleCard = index.ArticleCard;
21
+ exports.ArticleCardGrid = index.ArticleCardGrid;
22
+ exports.ArticleInfoCard = index.ArticleInfoCard;
23
+ exports.ArticleMeta = index.ArticleMeta;
19
24
  exports.Author = index.Author;
20
25
  exports.AuthorCard = index.AuthorCard;
21
26
  exports.BonusCard = index.BonusCard;
@@ -32,6 +37,7 @@ exports.GameDemo = index.GameDemo;
32
37
  exports.GameInfo = index.GameInfo;
33
38
  exports.Grid = index.Grid;
34
39
  exports.HowTo = index.HowTo;
40
+ exports.Informer = index.Informer;
35
41
  exports.List = index.List;
36
42
  exports.NotFound = index.NotFound;
37
43
  exports.PrivacyPolicy = index.PrivacyPolicy;
@@ -42,9 +48,12 @@ exports.Table = index.Table;
42
48
  exports.Tabs = index.Tabs;
43
49
  exports.TermsAndConditions = index.TermsAndConditions;
44
50
  exports.Tip = index.Tip;
51
+ exports.CasinoTable = index$1.CasinoTable;
45
52
  exports.Container = index$1.Container;
53
+ exports.CopyText = index$1.CopyText;
46
54
  exports.LinkButton = index$1.LinkButton;
47
55
  exports.Logo = index$1.Logo;
56
+ exports.Rating = index$1.Rating;
48
57
  exports.SocialNetwork = index$1.SocialNetwork;
49
58
  exports.SocialNetworks = index$1.SocialNetworks;
50
59
  exports.H1 = index$2.Heading1;
@@ -65,22 +74,25 @@ exports.DEFAULT_LANGUAGE = i18n.DEFAULT_LANGUAGE;
65
74
  exports.resources = i18n.resources;
66
75
  exports.Layout = layout;
67
76
  exports.MdxProvider = index$6.MdxProvider;
77
+ exports.CasinoCharacteristic = index$7.CasinoCharacteristic;
78
+ exports.CasinoTableColumn = index$7.CasinoTableColumn;
68
79
  exports.GameCharacteristic = index$7.GameCharacteristic;
69
80
  exports.GameVolatility = index$7.GameVolatility;
81
+ exports.InformerType = index$7.InformerType;
70
82
  exports.Animation = index$8.Animation;
71
83
  exports.getLocale = index$9.getLocale;
72
84
  exports.getLocales = index$9.getLocales;
73
85
  exports.getNavigation = index$9.getNavigation;
74
86
  exports.getSiteName = index$9.getSiteName;
75
- exports.formatNumber = index$a.formatNumber;
76
87
  exports.getCurrencySymbol = index$a.getCurrencySymbol;
77
88
  exports.getSeededRandomComparator = index$a.getSeededRandomComparator;
78
89
  exports.randomComparator = index$a.randomComparator;
79
- exports.round = index$a.round;
80
- exports.toFixedTwo = index$a.toFixedTwo;
81
90
  exports.formatDate = index$b.formatDate;
91
+ exports.formatNumber = index$b.formatNumber;
82
92
  exports.getCurrentMonth = index$b.getCurrentMonth;
83
93
  exports.getCurrentYear = index$b.getCurrentYear;
94
+ exports.round = index$b.round;
95
+ exports.toFixedTwo = index$b.toFixedTwo;
84
96
  exports.buildPath = index$c.buildPath;
85
97
  exports.isAbsolutePath = index$c.isAbsolutePath;
86
98
  exports.isRelativePath = index$c.isRelativePath;
package/dist/index.mjs CHANGED
@@ -1,86 +1,98 @@
1
- import { j, A, B, a, C, m, l, F, b, c, G, d, e, f, k, H, L, N, n, P, S, g, T, h, o, i } from "./index-JUwyHkmj.mjs";
2
- import { C as C2, L as L2, a as a2, S as S2, b as b2 } from "./index-COv56GyV.mjs";
1
+ import { A, a, b, c, n, o, d, B, e, C, r, q, F, f, g, G, h, i, j, p, H, I, L, N, s, P, S, k, T, l, t, m } from "./index-CEqTLcAR.mjs";
2
+ import { C as C2, a as a2, b as b2, L as L2, c as c2, R, S as S2, d as d2 } from "./index-Lln67Kfn.mjs";
3
3
  import { H as H2, a as a3, b as b3, O, P as P2, U } from "./index-BEjKnOZA.mjs";
4
- import { I, L as L3, P as P3, S as S3, u, a as a4 } from "./index-HLGPI9-S.mjs";
5
- import { u as u2 } from "./index-BzbpMLDD.mjs";
6
- import { u as u3 } from "./index-DYS7zQW4.mjs";
4
+ import { I as I2, L as L3, P as P3, S as S3, u, a as a4 } from "./index-ksqN4RPm.mjs";
5
+ import { u as u2 } from "./index-DHURrUMW.mjs";
6
+ import { u as u3 } from "./index-CB0JfZMx.mjs";
7
7
  import { DEFAULT_LANGUAGE, resources } from "./i18n/index.mjs";
8
8
  import { default as default2 } from "./layout/index.mjs";
9
- import { M } from "./index-C2T70CMa.mjs";
10
- import { a as a5, G as G2 } from "./index-CWMHJGbL.mjs";
9
+ import { M } from "./index-FfZIjQy3.mjs";
10
+ import { a as a5, C as C3, b as b4, G as G2, I as I3 } from "./index-CVN8I7r9.mjs";
11
11
  import { A as A2 } from "./index-BJRvnR8Q.mjs";
12
- import { b as b4, c as c2, g as g2, a as a6 } from "./index-cQqALZIW.mjs";
13
- import { f as f2, g as g3, b as b5, a as a7, r, t } from "./index-Drz_7u2p.mjs";
14
- import { f as f3, a as a8, g as g4 } from "./index-B1PwYYQt.mjs";
15
- import { b as b6, a as a9, i as i2 } from "./index-Bph7a3PR.mjs";
12
+ import { b as b5, c as c3, g as g2, a as a6 } from "./index-cQqALZIW.mjs";
13
+ import { g as g3, a as a7, r as r2 } from "./index-BeJTy4iY.mjs";
14
+ import { f as f2, b as b6, a as a8, g as g4, r as r3, t as t2 } from "./index-C7z5qqm_.mjs";
15
+ import { b as b7, a as a9, i as i2 } from "./index-Bph7a3PR.mjs";
16
16
  import { D, L as L4 } from "./index-BRVKhbs6.mjs";
17
17
  export {
18
+ A as ActionButton,
18
19
  A2 as Animation,
19
- j as Author,
20
- A as AuthorCard,
20
+ a as ArticleCard,
21
+ b as ArticleCardGrid,
22
+ c as ArticleInfoCard,
23
+ n as ArticleMeta,
24
+ o as Author,
25
+ d as AuthorCard,
21
26
  B as BonusCard,
22
- a as BonusCardGrid,
27
+ e as BonusCardGrid,
28
+ a5 as CasinoCharacteristic,
29
+ C2 as CasinoTable,
30
+ C3 as CasinoTableColumn,
23
31
  C as Center,
24
- m as Contacts,
25
- C2 as Container,
26
- l as CookiePolicy,
32
+ r as Contacts,
33
+ a2 as Container,
34
+ q as CookiePolicy,
35
+ b2 as CopyText,
27
36
  D as DARK_THEME_COLOR,
28
37
  DEFAULT_LANGUAGE,
29
38
  F as Faq,
30
- b as FeatureCard,
31
- c as FeatureCardGrid,
39
+ f as FeatureCard,
40
+ g as FeatureCardGrid,
32
41
  G as GameCard,
33
- d as GameCardGrid,
34
- a5 as GameCharacteristic,
35
- e as GameDemo,
36
- f as GameInfo,
42
+ h as GameCardGrid,
43
+ b4 as GameCharacteristic,
44
+ i as GameDemo,
45
+ j as GameInfo,
37
46
  G2 as GameVolatility,
38
- k as Grid,
47
+ p as Grid,
39
48
  H2 as H1,
40
49
  a3 as H2,
41
50
  b3 as H3,
42
51
  H as HowTo,
43
- I as Image,
52
+ I2 as Image,
53
+ I as Informer,
54
+ I3 as InformerType,
44
55
  L4 as LIGHT_THEME_COLOR,
45
56
  default2 as Layout,
46
57
  L3 as Link,
47
58
  L2 as LinkButton,
48
59
  L as List,
49
- a2 as Logo,
60
+ c2 as Logo,
50
61
  M as MdxProvider,
51
62
  N as NotFound,
52
63
  O as OL,
53
64
  P2 as P,
54
65
  P3 as PageProvider,
55
- n as PrivacyPolicy,
66
+ s as PrivacyPolicy,
56
67
  P as ProsCons,
68
+ R as Rating,
57
69
  S as Seo,
58
70
  S3 as SiteProvider,
59
71
  S2 as SocialNetwork,
60
- b2 as SocialNetworks,
61
- g as StrapiContentRenderer,
72
+ d2 as SocialNetworks,
73
+ k as StrapiContentRenderer,
62
74
  T as Table,
63
- h as Tabs,
64
- o as TermsAndConditions,
65
- i as Tip,
75
+ l as Tabs,
76
+ t as TermsAndConditions,
77
+ m as Tip,
66
78
  U as UL,
67
- b6 as buildPath,
68
- f3 as formatDate,
69
- f2 as formatNumber,
79
+ b7 as buildPath,
80
+ f2 as formatDate,
81
+ b6 as formatNumber,
70
82
  g3 as getCurrencySymbol,
71
83
  a8 as getCurrentMonth,
72
84
  g4 as getCurrentYear,
73
- b4 as getLocale,
74
- c2 as getLocales,
85
+ b5 as getLocale,
86
+ c3 as getLocales,
75
87
  g2 as getNavigation,
76
- b5 as getSeededRandomComparator,
88
+ a7 as getSeededRandomComparator,
77
89
  a6 as getSiteName,
78
90
  a9 as isAbsolutePath,
79
91
  i2 as isRelativePath,
80
- a7 as randomComparator,
92
+ r2 as randomComparator,
81
93
  resources,
82
- r as round,
83
- t as toFixedTwo,
94
+ r3 as round,
95
+ t2 as toFixedTwo,
84
96
  u2 as useLocalization,
85
97
  u as usePageContext,
86
98
  u3 as usePrimaryColors,
@@ -1,18 +1,18 @@
1
1
  "use strict";
2
2
  const jsxRuntime = require("react/jsx-runtime");
3
3
  const react = require("@chakra-ui/react");
4
- require("react-medium-image-zoom");
5
- const index$1 = require("../index-CR5rM7at.js");
6
- const react$1 = require("react");
7
4
  const reactI18next = require("react-i18next");
8
- const index = require("../index-B6wz_B9_.js");
9
5
  require("@mdx-js/react");
6
+ const index$1 = require("../index-QPgJfbrC.js");
10
7
  require("../index-C6MG_f24.js");
11
- require("../index-DMR4Ptkt.js");
8
+ require("../index-B-k9oWE7.js");
9
+ require("react-medium-image-zoom");
10
+ const react$1 = require("react");
11
+ const index = require("../index-BTpEZIok.js");
12
12
  const icons = require("@chakra-ui/icons");
13
13
  require("i18next");
14
14
  require("react-markdown");
15
- const index$2 = require("../index-C-ri0Fgy.js");
15
+ const index$2 = require("../index-qR3kVjjs.js");
16
16
  const index$3 = require("../index-DgrIJs-a.js");
17
17
  const Content = ({ children }) => {
18
18
  return /* @__PURE__ */ jsxRuntime.jsx(react.Box, { as: "section", py: 4, children: /* @__PURE__ */ jsxRuntime.jsx(index.Container, { children }) });
@@ -284,8 +284,9 @@ function getMappedIcon(code) {
284
284
  const LocaleSwitcher = ({ currentLocale, locales }) => {
285
285
  const localeCode = currentLocale.code;
286
286
  const localeIcon = getMappedIcon(localeCode);
287
+ const localeLabel = localeCode.split("-")[0].toUpperCase();
287
288
  const localeMenuItems = react$1.useMemo(
288
- () => locales.map((locale) => ({ ...locale, icon: getMappedIcon(locale.code) })),
289
+ () => locales.map((locale) => ({ ...locale, code: locale.code.toLowerCase(), icon: getMappedIcon(locale.code) })),
289
290
  [locales]
290
291
  );
291
292
  return /* @__PURE__ */ jsxRuntime.jsxs(react.Menu, { placement: "bottom-end", children: [
@@ -294,12 +295,12 @@ const LocaleSwitcher = ({ currentLocale, locales }) => {
294
295
  {
295
296
  as: react.Button,
296
297
  rightIcon: /* @__PURE__ */ jsxRuntime.jsx(icons.ChevronDownIcon, {}),
297
- w: { base: 20, md: "28" },
298
- px: { base: 1, md: 4 },
298
+ w: { base: 20, md: 24 },
299
+ px: { base: 1, md: 3 },
299
300
  size: { base: "sm", md: "lg" },
300
301
  children: /* @__PURE__ */ jsxRuntime.jsxs(react.HStack, { children: [
301
302
  /* @__PURE__ */ jsxRuntime.jsx(react.Icon, { as: localeIcon }),
302
- /* @__PURE__ */ jsxRuntime.jsx("span", { children: localeCode.toUpperCase() })
303
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: localeLabel })
303
304
  ] })
304
305
  }
305
306
  ),
@@ -348,7 +349,7 @@ const NavList$1 = ({ slug, label, children }) => {
348
349
  boxShadow: "xl",
349
350
  bg: background,
350
351
  children: /* @__PURE__ */ jsxRuntime.jsx(react.List, { spacing: 2, p: 0, children: children == null ? void 0 : children.map((child, index2) => {
351
- return /* @__PURE__ */ jsxRuntime.jsx(react.ListItem, { rounded: "md", _hover: { bg: backgroundHover }, children: /* @__PURE__ */ jsxRuntime.jsxs(react.Flex, { as: index$1.Link, to: index$3.buildPath(child.slug, slug), p: 2, role: "group", children: [
352
+ return /* @__PURE__ */ jsxRuntime.jsx(react.ListItem, { rounded: "md", _hover: { bg: backgroundHover }, children: /* @__PURE__ */ jsxRuntime.jsxs(react.Flex, { as: index$1.Link, to: index$3.buildPath(child.slug, slug), p: 2, role: "group", textDecoration: "none", children: [
352
353
  /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontWeight: 500, transition: "all .3s ease", _groupHover: { color: "brand.400" }, children: child.label }),
353
354
  /* @__PURE__ */ jsxRuntime.jsx(
354
355
  react.Flex,
@@ -412,7 +413,7 @@ const NavList = ({ slug, label, children, isExpanded, onExpand }) => {
412
413
  borderLeft: 1,
413
414
  borderStyle: "solid",
414
415
  borderColor: react.useColorModeValue("gray.200", "gray.700"),
415
- children: children == null ? void 0 : children.map((child, index2) => /* @__PURE__ */ jsxRuntime.jsx(react.Flex, { as: "li", role: "listitem", children: /* @__PURE__ */ jsxRuntime.jsx(react.Text, { as: index$1.Link, to: index$3.buildPath(child.slug, slug), p: 2, fontSize: "sm", children: child.label }) }, index2))
416
+ children: children == null ? void 0 : children.map((child, index2) => /* @__PURE__ */ jsxRuntime.jsx(react.Flex, { as: "li", role: "listitem", children: /* @__PURE__ */ jsxRuntime.jsx(react.Text, { as: index$1.Link, to: index$3.buildPath(child.slug, slug), p: 2, fontSize: "sm", textDecoration: "none", children: child.label }) }, index2))
416
417
  }
417
418
  ) })
418
419
  ] });
@@ -1,17 +1,17 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import { Box, Divider, AbsoluteCenter, useColorModeValue, Text, SimpleGrid, Flex, Menu, MenuButton, Button, HStack, Icon, MenuList, MenuItem, Popover, PopoverTrigger, PopoverContent, List, ListItem, Stack, Collapse, useDisclosure, IconButton, Heading } from "@chakra-ui/react";
3
- import "react-medium-image-zoom";
4
- import { L as Link, a as useSiteContext, u as usePageContext } from "../index-HLGPI9-S.mjs";
5
- import { useMemo, forwardRef, useState, useEffect } from "react";
6
3
  import { useTranslation } from "react-i18next";
7
- import { C as Container, a as Logo, b as SocialNetworks, L as LinkButton } from "../index-COv56GyV.mjs";
8
4
  import "@mdx-js/react";
5
+ import { L as Link, a as useSiteContext, u as usePageContext } from "../index-ksqN4RPm.mjs";
9
6
  import "../index-BJRvnR8Q.mjs";
10
- import "../index-CWMHJGbL.mjs";
7
+ import "../index-CVN8I7r9.mjs";
8
+ import "react-medium-image-zoom";
9
+ import { useMemo, forwardRef, useState, useEffect } from "react";
10
+ import { a as Container, c as Logo, d as SocialNetworks, L as LinkButton } from "../index-Lln67Kfn.mjs";
11
11
  import { ChevronDownIcon, ChevronRightIcon, CloseIcon, HamburgerIcon, ChevronUpIcon } from "@chakra-ui/icons";
12
12
  import "i18next";
13
13
  import "react-markdown";
14
- import { g as getCurrentYear } from "../index-B1PwYYQt.mjs";
14
+ import { g as getCurrentYear } from "../index-C7z5qqm_.mjs";
15
15
  import { b as buildPath } from "../index-Bph7a3PR.mjs";
16
16
  const Content = ({ children }) => {
17
17
  return /* @__PURE__ */ jsx(Box, { as: "section", py: 4, children: /* @__PURE__ */ jsx(Container, { children }) });
@@ -283,8 +283,9 @@ function getMappedIcon(code) {
283
283
  const LocaleSwitcher = ({ currentLocale, locales }) => {
284
284
  const localeCode = currentLocale.code;
285
285
  const localeIcon = getMappedIcon(localeCode);
286
+ const localeLabel = localeCode.split("-")[0].toUpperCase();
286
287
  const localeMenuItems = useMemo(
287
- () => locales.map((locale) => ({ ...locale, icon: getMappedIcon(locale.code) })),
288
+ () => locales.map((locale) => ({ ...locale, code: locale.code.toLowerCase(), icon: getMappedIcon(locale.code) })),
288
289
  [locales]
289
290
  );
290
291
  return /* @__PURE__ */ jsxs(Menu, { placement: "bottom-end", children: [
@@ -293,12 +294,12 @@ const LocaleSwitcher = ({ currentLocale, locales }) => {
293
294
  {
294
295
  as: Button,
295
296
  rightIcon: /* @__PURE__ */ jsx(ChevronDownIcon, {}),
296
- w: { base: 20, md: "28" },
297
- px: { base: 1, md: 4 },
297
+ w: { base: 20, md: 24 },
298
+ px: { base: 1, md: 3 },
298
299
  size: { base: "sm", md: "lg" },
299
300
  children: /* @__PURE__ */ jsxs(HStack, { children: [
300
301
  /* @__PURE__ */ jsx(Icon, { as: localeIcon }),
301
- /* @__PURE__ */ jsx("span", { children: localeCode.toUpperCase() })
302
+ /* @__PURE__ */ jsx("span", { children: localeLabel })
302
303
  ] })
303
304
  }
304
305
  ),
@@ -347,7 +348,7 @@ const NavList$1 = ({ slug, label, children }) => {
347
348
  boxShadow: "xl",
348
349
  bg: background,
349
350
  children: /* @__PURE__ */ jsx(List, { spacing: 2, p: 0, children: children == null ? void 0 : children.map((child, index) => {
350
- return /* @__PURE__ */ jsx(ListItem, { rounded: "md", _hover: { bg: backgroundHover }, children: /* @__PURE__ */ jsxs(Flex, { as: Link, to: buildPath(child.slug, slug), p: 2, role: "group", children: [
351
+ return /* @__PURE__ */ jsx(ListItem, { rounded: "md", _hover: { bg: backgroundHover }, children: /* @__PURE__ */ jsxs(Flex, { as: Link, to: buildPath(child.slug, slug), p: 2, role: "group", textDecoration: "none", children: [
351
352
  /* @__PURE__ */ jsx(Text, { fontWeight: 500, transition: "all .3s ease", _groupHover: { color: "brand.400" }, children: child.label }),
352
353
  /* @__PURE__ */ jsx(
353
354
  Flex,
@@ -411,7 +412,7 @@ const NavList = ({ slug, label, children, isExpanded, onExpand }) => {
411
412
  borderLeft: 1,
412
413
  borderStyle: "solid",
413
414
  borderColor: useColorModeValue("gray.200", "gray.700"),
414
- children: children == null ? void 0 : children.map((child, index) => /* @__PURE__ */ jsx(Flex, { as: "li", role: "listitem", children: /* @__PURE__ */ jsx(Text, { as: Link, to: buildPath(child.slug, slug), p: 2, fontSize: "sm", children: child.label }) }, index))
415
+ children: children == null ? void 0 : children.map((child, index) => /* @__PURE__ */ jsx(Flex, { as: "li", role: "listitem", children: /* @__PURE__ */ jsx(Text, { as: Link, to: buildPath(child.slug, slug), p: 2, fontSize: "sm", textDecoration: "none", children: child.label }) }, index))
415
416
  }
416
417
  ) })
417
418
  ] });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("../index-D4zJ5RBA.js");
4
- const index$1 = require("../index-CR5rM7at.js");
3
+ const index = require("../index-TxqSZvgf.js");
4
+ const index$1 = require("../index-QPgJfbrC.js");
5
5
  exports.MdxProvider = index.MdxProvider;
6
6
  exports.PageProvider = index$1.PageProvider;
7
7
  exports.SiteProvider = index$1.SiteProvider;
@@ -1,5 +1,5 @@
1
- import { M } from "../index-C2T70CMa.mjs";
2
- import { P, S, u, a } from "../index-HLGPI9-S.mjs";
1
+ import { M } from "../index-FfZIjQy3.mjs";
2
+ import { P, S, u, a } from "../index-ksqN4RPm.mjs";
3
3
  export {
4
4
  M as MdxProvider,
5
5
  P as PageProvider,
@@ -0,0 +1,9 @@
1
+ import { IArticleMeta } from '../../content';
2
+ import { ImageType } from '../image';
3
+ import { ILink } from '../link';
4
+ export interface IArticlePreviewCard {
5
+ title: string;
6
+ url: ILink['href'];
7
+ image?: ImageType;
8
+ meta?: IArticleMeta;
9
+ }
@@ -1,6 +1,6 @@
1
1
  import { ButtonProps } from '@chakra-ui/react';
2
2
  import { BaseSize, IAnimation } from '../common';
3
3
  export type BaseButtonProps = Pick<ButtonProps, 'width' | 'textTransform' | 'textDecoration' | 'onClick'> & {
4
- size?: 'xs' | BaseSize | 'auto';
4
+ size?: 'xs' | BaseSize | 'auto' | ButtonProps['size'];
5
5
  animation?: IAnimation;
6
6
  };
@@ -0,0 +1,32 @@
1
+ import { ICasinoInfo, ImageType } from '..';
2
+ export interface IPaymentSystem {
3
+ name: string;
4
+ image: ImageType;
5
+ }
6
+ export interface ICasinoLicense {
7
+ name: string;
8
+ image: ImageType;
9
+ }
10
+ export interface ICasino {
11
+ id: string;
12
+ image?: ImageType;
13
+ casinoUrl?: string;
14
+ name: string;
15
+ rating: number;
16
+ bonus: string;
17
+ promoCode?: string;
18
+ license?: ICasinoLicense;
19
+ paymentSystems?: IPaymentSystem[];
20
+ info?: Partial<ICasinoInfo>;
21
+ referralUrl?: string;
22
+ reviewUrl?: string;
23
+ }
24
+ export declare enum CasinoTableColumn {
25
+ ID = "ID",
26
+ Logo = "LOGO",
27
+ Name = "NAME",
28
+ License = "LICENSE",
29
+ Bonus = "BONUS",
30
+ Info = "INFO",
31
+ Actions = "ACTIONS"
32
+ }
@@ -0,0 +1,12 @@
1
+ export declare enum CasinoCharacteristic {
2
+ Rtp = "RTP",
3
+ GamesCount = "GAMES_COUNT",
4
+ MidDeposit = "MIN_DEPOSIT",
5
+ PayoutSpeed = "PAYOUT_SPEED"
6
+ }
7
+ export interface ICasinoInfo {
8
+ [CasinoCharacteristic.Rtp]: number;
9
+ [CasinoCharacteristic.GamesCount]: number | string;
10
+ [CasinoCharacteristic.MidDeposit]: number | string;
11
+ [CasinoCharacteristic.PayoutSpeed]: string;
12
+ }
@@ -1,6 +1,6 @@
1
1
  import { Key, ReactElement } from 'react';
2
2
  import { BoxProps, ColorProps } from '@chakra-ui/react';
3
- export type KeyGetter<T> = (item: T) => Key;
3
+ export type KeyGetter<T> = (item: T, index: number) => Key;
4
4
  export type RenderFunction<T> = (item: T) => ReactElement;
5
5
  type BoxPaddingProps = Pick<BoxProps, 'p' | 'pt' | 'pr' | 'pb' | 'pl' | 'px' | 'py' | 'ps' | 'pe'>;
6
6
  type BoxMarginProps = Pick<BoxProps, 'm' | 'mt' | 'mr' | 'mb' | 'ml' | 'mx' | 'my' | 'ms' | 'me'>;
@@ -1,8 +1,4 @@
1
- type GameType = string;
2
- type GameTheme = string;
3
1
  type GamePlatform = 'iOS' | 'Android' | 'Windows' | 'Web';
4
- type GameLanguage = string;
5
- type GameFeature = 'multipliers' | 'wild-symbol' | 'scatter-symbol' | 'tumble' | 'free spins';
6
2
  export declare enum GameVolatility {
7
3
  High = "HIGH",
8
4
  Medium = "MEDIUM",
@@ -39,8 +35,8 @@ export interface IGameInfo {
39
35
  [GameCharacteristic.Name]: string;
40
36
  [GameCharacteristic.Developer]: string;
41
37
  [GameCharacteristic.ReleaseDate]: string;
42
- [GameCharacteristic.Theme]: GameTheme;
43
- [GameCharacteristic.Type]: GameType;
38
+ [GameCharacteristic.Theme]: string;
39
+ [GameCharacteristic.Type]: string;
44
40
  [GameCharacteristic.Rtp]: number;
45
41
  [GameCharacteristic.Volatility]: GameVolatility;
46
42
  [GameCharacteristic.ReelsNumber]: number | string;
@@ -59,8 +55,8 @@ export interface IGameInfo {
59
55
  [GameCharacteristic.HasBonusPurchase]: boolean;
60
56
  [GameCharacteristic.HasCollectionSymbols]: boolean;
61
57
  [GameCharacteristic.HasProgressiveJackpot]: boolean;
62
- [GameCharacteristic.BonusFeatures]: GameFeature[] | string;
63
- [GameCharacteristic.Languages]: GameLanguage[];
58
+ [GameCharacteristic.BonusFeatures]: string[] | string;
59
+ [GameCharacteristic.Languages]: string[];
64
60
  [GameCharacteristic.Functions]: string;
65
61
  }>;
66
62
  }
@@ -1,3 +1,7 @@
1
1
  import { ResponsiveObject } from '@chakra-ui/react';
2
2
  export type GridColumns = ResponsiveObject<number>;
3
3
  export type GridGap = ResponsiveObject<number> | number;
4
+ export type GridConfigProps = {
5
+ columns?: GridColumns;
6
+ gap?: GridGap;
7
+ };
@@ -1,5 +1,8 @@
1
+ export * from './article-card';
1
2
  export * from './bonus-card';
2
3
  export * from './button';
4
+ export * from './casino';
5
+ export * from './casino-info';
3
6
  export * from './common';
4
7
  export * from './external-image';
5
8
  export * from './faq';
@@ -9,6 +12,7 @@ export * from './grid';
9
12
  export * from './how-to';
10
13
  export * from './icon';
11
14
  export * from './image';
15
+ export * from './informer';
12
16
  export * from './link';
13
17
  export * from './locale-switcher';
14
18
  export * from './navigation';
@@ -0,0 +1,5 @@
1
+ export declare enum InformerType {
2
+ Advice = "ADVICE",
3
+ Fact = "FACT",
4
+ Quote = "QUOTE"
5
+ }
@@ -1,4 +1,4 @@
1
- export type StrapiComponentType = 'STRAPI__COMPONENT_CONTENT_CONTACTS_PAGE' | 'STRAPI__COMPONENT_CONTENT_COOKIE_POLICY_PAGE' | 'STRAPI__COMPONENT_CONTENT_FAQ' | 'STRAPI__COMPONENT_CONTENT_FEATURES' | 'STRAPI__COMPONENT_CONTENT_GAME_CARDS' | 'STRAPI__COMPONENT_CONTENT_GAME_CARD_TABS' | 'STRAPI__COMPONENT_CONTENT_GAME_DEMO' | 'STRAPI__COMPONENT_CONTENT_GAME_INFO' | 'STRAPI__COMPONENT_CONTENT_HOW_TO' | 'STRAPI__COMPONENT_CONTENT_LIST' | 'STRAPI__COMPONENT_CONTENT_MEDIA' | 'STRAPI__COMPONENT_CONTENT_PRIVACY_POLICY_PAGE' | 'STRAPI__COMPONENT_CONTENT_PROS_CONS' | 'STRAPI__COMPONENT_CONTENT_RICH_TEXT' | 'STRAPI__COMPONENT_CONTENT_TABLE' | 'STRAPI__COMPONENT_CONTENT_TERMS_CONDITIONS_PAGE' | 'STRAPI__COMPONENT_CONTENT_TIP';
1
+ export type StrapiComponentType = 'STRAPI__COMPONENT_CONTENT_ACTION_BUTTON' | 'STRAPI__COMPONENT_CONTENT_CONTACTS_PAGE' | 'STRAPI__COMPONENT_CONTENT_COOKIE_POLICY_PAGE' | 'STRAPI__COMPONENT_CONTENT_FAQ' | 'STRAPI__COMPONENT_CONTENT_FEATURES' | 'STRAPI__COMPONENT_CONTENT_GAME_CARDS' | 'STRAPI__COMPONENT_CONTENT_GAME_CARD_TABS' | 'STRAPI__COMPONENT_CONTENT_GAME_DEMO' | 'STRAPI__COMPONENT_CONTENT_GAME_INFO' | 'STRAPI__COMPONENT_CONTENT_HOW_TO' | 'STRAPI__COMPONENT_CONTENT_INFORMER' | 'STRAPI__COMPONENT_CONTENT_LIST' | 'STRAPI__COMPONENT_CONTENT_MEDIA' | 'STRAPI__COMPONENT_CONTENT_PRIVACY_POLICY_PAGE' | 'STRAPI__COMPONENT_CONTENT_PROS_CONS' | 'STRAPI__COMPONENT_CONTENT_RICH_TEXT' | 'STRAPI__COMPONENT_CONTENT_TABLE' | 'STRAPI__COMPONENT_CONTENT_TERMS_CONDITIONS_PAGE' | 'STRAPI__COMPONENT_CONTENT_TIP';
2
2
  export interface IStrapiComponentFragment {
3
3
  __typename: StrapiComponentType;
4
4
  [prop: string]: unknown;
@@ -0,0 +1,12 @@
1
+ import { IAuthor } from '../author';
2
+ export interface IArticleMeta {
3
+ createdAt: string;
4
+ updatedAt?: string;
5
+ minutesToRead?: number;
6
+ author?: IAuthor;
7
+ }
8
+ export interface IArticleInfo {
9
+ title: string;
10
+ description?: string;
11
+ meta?: IArticleMeta;
12
+ }
@@ -1,3 +1,4 @@
1
+ export * from './article';
1
2
  export * from './author';
2
3
  export * from './bonus';
3
4
  export * from './feature';
@@ -1,5 +1,5 @@
1
1
  export type LanguageCode = 'en' | 'it' | 'de' | 'fr' | 'ru' | 'pt' | 'ka' | 'fi' | 'bg' | 'da';
2
- export type Currency = 'USD' | 'EUR' | 'GBP' | 'RUB';
2
+ export type Currency = 'USD' | 'EUR' | 'GBP' | 'RUB' | 'BRL';
3
3
  type LocaleCode = string;
4
4
  export interface ILocale {
5
5
  code: LocaleCode;
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const index = require("../index-C6MG_f24.js");
4
4
  const index$1 = require("../index-CYr1ct1t.js");
5
- const index$2 = require("../index-CkRY_NXp.js");
6
- const index$3 = require("../index-C-ri0Fgy.js");
5
+ const index$2 = require("../index-BfITsKAr.js");
6
+ const index$3 = require("../index-qR3kVjjs.js");
7
7
  const index$4 = require("../index-DgrIJs-a.js");
8
8
  const index$5 = require("../index-CbuiYkSg.js");
9
9
  exports.Animation = index.Animation;
@@ -11,15 +11,15 @@ exports.getLocale = index$1.getLocale;
11
11
  exports.getLocales = index$1.getLocales;
12
12
  exports.getNavigation = index$1.getNavigation;
13
13
  exports.getSiteName = index$1.getSiteName;
14
- exports.formatNumber = index$2.formatNumber;
15
14
  exports.getCurrencySymbol = index$2.getCurrencySymbol;
16
15
  exports.getSeededRandomComparator = index$2.getSeededRandomComparator;
17
16
  exports.randomComparator = index$2.randomComparator;
18
- exports.round = index$2.round;
19
- exports.toFixedTwo = index$2.toFixedTwo;
20
17
  exports.formatDate = index$3.formatDate;
18
+ exports.formatNumber = index$3.formatNumber;
21
19
  exports.getCurrentMonth = index$3.getCurrentMonth;
22
20
  exports.getCurrentYear = index$3.getCurrentYear;
21
+ exports.round = index$3.round;
22
+ exports.toFixedTwo = index$3.toFixedTwo;
23
23
  exports.buildPath = index$4.buildPath;
24
24
  exports.isAbsolutePath = index$4.isAbsolutePath;
25
25
  exports.isRelativePath = index$4.isRelativePath;