md-components-mdigial-azamat 0.0.11 → 0.0.13

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 (112) hide show
  1. package/README.md +1 -1
  2. package/dist/AllComponents.js +130 -0
  3. package/dist/AnimatedSwiper/Slide/Slide.js +57 -0
  4. package/dist/AnimatedSwiper/Slide/index.js +4 -0
  5. package/dist/AnimatedSwiper/index.js +117 -0
  6. package/dist/AnimatedSwiper/types.js +1 -0
  7. package/dist/Banner/Banner.js +34 -48
  8. package/dist/BannerAndText/index.js +4 -8
  9. package/dist/CardIconList/CardIconList.js +4 -10
  10. package/dist/CardImageList/CardImageList.js +4 -9
  11. package/dist/CardImageSecondary/CardImageSecondary.js +50 -0
  12. package/dist/CardImageSecondary/index.js +4 -0
  13. package/dist/CardImageSecondary/types.js +1 -0
  14. package/dist/CardImageSecondaryList/CardImageSecondaryList.js +21 -0
  15. package/dist/CardImageSecondaryList/index.js +4 -0
  16. package/dist/CardImageSecondaryList/types.js +1 -0
  17. package/dist/CardInfoTable/index.js +153 -0
  18. package/dist/CardInfoTable/types.js +1 -0
  19. package/dist/Cards/CardImage/CardImage.js +3 -5
  20. package/dist/Cards/ColoredCard/index.js +3 -7
  21. package/dist/Cards/ContentCard/ContentCard.js +12 -13
  22. package/dist/Cards/FeaturesCard/index.js +3 -3
  23. package/dist/Cards/WarningCard/WarningCard.js +16 -20
  24. package/dist/Cards/WarningCard/model.js +1 -1
  25. package/dist/ComponentContainer-0fcc2695.js +16 -0
  26. package/dist/ConfigProvider/index.js +1 -3
  27. package/dist/ContentCardList/ContentCardList.js +2 -4
  28. package/dist/DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js +22 -19
  29. package/dist/DownloadFile/components/DownloadFileBright/index.js +103 -0
  30. package/dist/DownloadFile/components/DownloadFileBright/types.js +1 -0
  31. package/dist/DownloadFile/components/DownloadFileFull/DownloadFileFull.js +15 -16
  32. package/dist/DownloadFile/components/DownloadFileHalf/DownloadFileHalf.js +14 -15
  33. package/dist/DownloadFile/components/DownloadFileMini/DownloadFileMini.js +12 -13
  34. package/dist/EmptyBox/EmptyBox.js +5 -0
  35. package/dist/EmptyBox/types.js +1 -0
  36. package/dist/Faq/Faq.js +2 -5
  37. package/dist/Faq/components/Collapse/Collapse.js +1 -4
  38. package/dist/Faq/components/FeedbackForm/FeedbackForm.js +95 -94
  39. package/dist/Faq/components/PlusMinusIcon/PlusMinusIcon.js +1 -1
  40. package/dist/HeroPossibilityBanner/index.js +1 -1
  41. package/dist/HtmlContent/HtmlContent.js +2 -5
  42. package/dist/InfoBanner/index.js +73 -0
  43. package/dist/InfoBanner/types.js +1 -0
  44. package/dist/InfoBannerList/InfoBannerList.js +37 -0
  45. package/dist/InfoBannerList/index.js +4 -0
  46. package/dist/InfoBannerList/types.js +1 -0
  47. package/dist/InstructionList/InstructionList.js +3 -7
  48. package/dist/InstructionList/components/InstructionCard/InstructionCard.js +2 -4
  49. package/dist/InstructionList/components/InstructionModal/InstructionModal.js +2 -2
  50. package/dist/IntroBanner/IntroBanner.js +60 -0
  51. package/dist/IntroBanner/index.js +4 -0
  52. package/dist/IntroBanner/types.js +1 -0
  53. package/dist/MainBanner/MainBanner.js +4 -4
  54. package/dist/MultiCards/index.js +1 -1
  55. package/dist/PageViewer/ComponentsView.js +9 -0
  56. package/dist/PageViewer/PageViewer.js +6 -0
  57. package/dist/PageViewer/index.js +4 -0
  58. package/dist/PageViewer/renderComponents.js +26 -0
  59. package/dist/Partners/Partners.js +3 -5
  60. package/dist/PartnersColors/PartnersColors.js +2 -7
  61. package/dist/PartnersColors/components/PartnerCard/PartnerCard.js +1 -1
  62. package/dist/PartnersColors/components/PartnerTab/PartnerTab.js +2 -2
  63. package/dist/PreviewList/PreviewList.js +3 -9
  64. package/dist/PreviewList/components/PreviewCard/PreviewCard.js +13 -14
  65. package/dist/PromoPoster/PromoPoster.js +36 -0
  66. package/dist/PromoPoster/types.js +1 -0
  67. package/dist/RenderAllComponents/RenderAllComponents.js +16 -0
  68. package/dist/RenderAllComponents/const.js +43 -0
  69. package/dist/RenderAllComponents/index.js +4 -0
  70. package/dist/Segments/Segments.js +2 -5
  71. package/dist/StandartTable/components/CardMarkedRow/index.js +75 -0
  72. package/dist/StandartTable/components/CardMarkedRow/types.js +1 -0
  73. package/dist/StandartTable/components/CardWarning/index.js +89 -0
  74. package/dist/StandartTable/components/CardWarning/types.js +1 -0
  75. package/dist/StandartTable/index.js +48 -0
  76. package/dist/StandartTable/types.js +1 -0
  77. package/dist/Stepper/Stepper.js +4 -8
  78. package/dist/SwiperList/SwiperList.js +44 -3191
  79. package/dist/SwiperList/components/Bullet/Bullet.js +1 -1
  80. package/dist/SwiperList/components/Slide/Slide.js +2 -2
  81. package/dist/TasksBanner/TasksBanner.js +108 -0
  82. package/dist/TasksBanner/index.js +4 -0
  83. package/dist/TasksBanner/types.js +1 -0
  84. package/dist/TasksBannerList/TasksBannerList.js +17 -0
  85. package/dist/TasksBannerList/index.js +4 -0
  86. package/dist/TasksBannerList/types.js +1 -0
  87. package/dist/Video/VideoFull/VideoFull.js +2 -4
  88. package/dist/Video/VideoList/VideoList.js +2 -4
  89. package/dist/Video/VideoListMini/VideoListMini.js +2 -4
  90. package/dist/Video/components/VideoPlayer/VideoPlayer.js +1 -1
  91. package/dist/VideoMainBanner/VideoMainBanner.js +148 -0
  92. package/dist/VideoMainBanner/index.js +4 -0
  93. package/dist/VideoMainBanner/types.js +1 -0
  94. package/dist/assets/TasksBanner.css +1 -0
  95. package/dist/assets/index.css +1 -1
  96. package/dist/{cn-eacd4725.js → cn-d8c04b28.js} +1 -0
  97. package/dist/componentsMap-8af3b722.js +71 -0
  98. package/dist/const-9041b93a.js +5 -0
  99. package/dist/data.mock-741c2220.js +1714 -0
  100. package/dist/{index-fb8c9446.js → index-60dfa873.js} +1 -1
  101. package/dist/{index-b52a1a9d.js → index-6e0f7db0.js} +3 -7
  102. package/dist/index-b3d6aed3.js +52 -0
  103. package/dist/main.js +1 -1
  104. package/dist/{palette-52b06a82.js → palette-ac8c8a5f.js} +7 -2
  105. package/dist/swiper-react-c049ea66.js +3158 -0
  106. package/dist/trash/HeroLargeCards/index.js +1 -1
  107. package/dist/useScreenSize-c1b64c02.js +19 -0
  108. package/package.json +1 -1
  109. package/dist/ComponentContainer-41408843.js +0 -15
  110. package/dist/index-89dcf24f.js +0 -54
  111. /package/dist/assets/{SwiperList.css → swiper-react.css} +0 -0
  112. /package/dist/assets/{Slide.css → swiper.css} +0 -0
@@ -1,16 +1,15 @@
1
- import { jsx as l, jsxs as a } from "react/jsx-runtime";
1
+ import { jsx as r, jsxs as a } from "react/jsx-runtime";
2
2
  import { I as n } from "../../../Icon-70ea6cb8.js";
3
- import { p as e } from "../../../palette-52b06a82.js";
4
- import { B as s, a as c } from "../../../index-89dcf24f.js";
5
- import { C as p } from "../../../ComponentContainer-41408843.js";
6
- const i = [
7
- "data"
8
- ], d = ({ data: r }) => /* @__PURE__ */ l(p, { children: /* @__PURE__ */ l("div", { className: "grid grid-cols-4 gap-6 max-tablet:grid-cols-1", children: r == null ? void 0 : r.map((o) => /* @__PURE__ */ a(
3
+ import { p as e } from "../../../palette-ac8c8a5f.js";
4
+ import { B as s } from "../../../index-b3d6aed3.js";
5
+ import { a as p } from "../../../const-9041b93a.js";
6
+ import { C as c } from "../../../ComponentContainer-0fcc2695.js";
7
+ const i = ["data"], d = ({ data: l }) => /* @__PURE__ */ r(c, { children: /* @__PURE__ */ r("div", { className: "grid grid-cols-4 gap-6 max-tablet:grid-cols-1", children: l == null ? void 0 : l.map((o) => /* @__PURE__ */ a(
9
8
  "div",
10
9
  {
11
10
  className: "p-[24px] bg-white rounded-[20px] flex flex-col gap-8",
12
11
  children: [
13
- /* @__PURE__ */ l(
12
+ /* @__PURE__ */ r(
14
13
  n,
15
14
  {
16
15
  name: "file",
@@ -19,13 +18,13 @@ const i = [
19
18
  }
20
19
  ),
21
20
  /* @__PURE__ */ a("div", { className: "flex flex-col gap-4", children: [
22
- /* @__PURE__ */ l("p", { className: "text-[20px] leading-[28px] font-bold", children: o == null ? void 0 : o.title }),
23
- /* @__PURE__ */ l("p", { className: "text-[16px] leading-6", children: o == null ? void 0 : o.text })
21
+ /* @__PURE__ */ r("p", { className: "text-[20px] leading-[28px] font-bold", children: o == null ? void 0 : o.title }),
22
+ /* @__PURE__ */ r("p", { className: "text-[16px] leading-6", children: o == null ? void 0 : o.text })
24
23
  ] }),
25
- /* @__PURE__ */ l(
24
+ /* @__PURE__ */ r(
26
25
  s,
27
26
  {
28
- iconRight: /* @__PURE__ */ l(
27
+ iconRight: /* @__PURE__ */ r(
29
28
  n,
30
29
  {
31
30
  name: "download",
@@ -34,7 +33,7 @@ const i = [
34
33
  }
35
34
  ),
36
35
  className: "w-full",
37
- variant: c.Secondary,
36
+ variant: p.Secondary,
38
37
  children: "Скачать"
39
38
  }
40
39
  )
@@ -0,0 +1,5 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ const r = ({ size: t }) => /* @__PURE__ */ o("div", { style: { height: `${t}px`, width: `${t}px` } });
3
+ export {
4
+ r as EmptyBox
5
+ };
@@ -0,0 +1 @@
1
+
package/dist/Faq/Faq.js CHANGED
@@ -2,11 +2,8 @@ import { jsx as r, jsxs as p } from "react/jsx-runtime";
2
2
  import { Collapse as x } from "./components/Collapse/Collapse.js";
3
3
  import { FeedbackForm as a } from "./components/FeedbackForm/FeedbackForm.js";
4
4
  import { HtmlContent as c } from "../HtmlContent/HtmlContent.js";
5
- import { C as e } from "../ComponentContainer-41408843.js";
6
- const s = [
7
- "data",
8
- "title"
9
- ], d = ({ data: o, title: n }) => o != null && o.length ? /* @__PURE__ */ r(e, { children: /* @__PURE__ */ p("div", { className: "w-full mx-auto flex flex-col gap-[48px] transition-all duration-1000 max-tablet:gap-[30px]", children: [
5
+ import { C as e } from "../ComponentContainer-0fcc2695.js";
6
+ const s = ["data", "title"], d = ({ data: o, title: n }) => o != null && o.length ? /* @__PURE__ */ r(e, { children: /* @__PURE__ */ p("div", { className: "w-full mx-auto flex flex-col gap-[48px] transition-all duration-1000 max-tablet:gap-[30px]", children: [
10
7
  n && /* @__PURE__ */ r("p", { className: "text-[44px] leading-[55px] font-bold text-center text-black2 max-tablet:text-[24px] max-tablet:leading-[30px] m-0", children: n }),
11
8
  /* @__PURE__ */ r("div", { className: "flex flex-col bg-white p-12 rounded-[20px] max-tablet:p-6", children: o == null ? void 0 : o.map((l) => /* @__PURE__ */ r(
12
9
  x,
@@ -1,10 +1,7 @@
1
1
  import { jsxs as i, jsx as t } from "react/jsx-runtime";
2
2
  import { useRef as m, useState as o, useEffect as u } from "react";
3
3
  import { PlusMinusIcon as h } from "../PlusMinusIcon/PlusMinusIcon.js";
4
- const x = [
5
- "title",
6
- "children"
7
- ], b = ({ title: l, children: n }) => {
4
+ const x = ["title", "children"], b = ({ title: l, children: n }) => {
8
5
  var r;
9
6
  const e = m(null), [s, c] = o(!1), [a, p] = o("0px"), d = () => c((f) => !f);
10
7
  return u(() => {
@@ -1,7 +1,8 @@
1
1
  import { jsx as ie, jsxs as Ee } from "react/jsx-runtime";
2
2
  import * as je from "react";
3
3
  import P, { useState as kt } from "react";
4
- import { B as Ke, b as Ge, a as Ye } from "../../../index-89dcf24f.js";
4
+ import { B as Ke } from "../../../index-b3d6aed3.js";
5
+ import { B as Ge, a as Ye } from "../../../const-9041b93a.js";
5
6
  var ce = (e) => e.type === "checkbox", re = (e) => e instanceof Date, N = (e) => e == null;
6
7
  const ut = (e) => typeof e == "object";
7
8
  var k = (e) => !N(e) && !Array.isArray(e) && ut(e) && !re(e), St = (e) => k(e) && e.target ? ce(e.target) ? e.target.checked : e.target.value : e, Et = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, Ct = (e, s) => e.has(Et(s)), Lt = (e) => {
@@ -25,20 +26,20 @@ function T(e) {
25
26
  return e;
26
27
  return s;
27
28
  }
28
- var me = (e) => /^\w*$/.test(e), S = (e) => e === void 0, Te = (e) => Array.isArray(e) ? e.filter(Boolean) : [], Re = (e) => Te(e.replace(/["|']|\]/g, "").split(/\.|\[/)), h = (e, s, r) => {
29
+ var Ve = (e) => /^\w*$/.test(e), S = (e) => e === void 0, Te = (e) => Array.isArray(e) ? e.filter(Boolean) : [], Re = (e) => Te(e.replace(/["|']|\]/g, "").split(/\.|\[/)), h = (e, s, r) => {
29
30
  if (!s || !k(e))
30
31
  return r;
31
- const a = (me(s) ? [s] : Re(s)).reduce((u, n) => N(u) ? u : u[n], e);
32
+ const a = (Ve(s) ? [s] : Re(s)).reduce((u, n) => N(u) ? u : u[n], e);
32
33
  return S(a) || a === e ? S(e[s]) ? r : e[s] : a;
33
34
  }, j = (e) => typeof e == "boolean", A = (e, s, r) => {
34
35
  let a = -1;
35
- const u = me(s) ? [s] : Re(s), n = u.length, c = n - 1;
36
+ const u = Ve(s) ? [s] : Re(s), n = u.length, c = n - 1;
36
37
  for (; ++a < n; ) {
37
38
  const y = u[a];
38
39
  let O = r;
39
40
  if (a !== c) {
40
- const B = e[y];
41
- O = k(B) || Array.isArray(B) ? B : isNaN(+u[a + 1]) ? {} : [];
41
+ const U = e[y];
42
+ O = k(U) || Array.isArray(U) ? U : isNaN(+u[a + 1]) ? {} : [];
42
43
  }
43
44
  if (y === "__proto__" || y === "constructor" || y === "prototype")
44
45
  return;
@@ -129,13 +130,13 @@ function ee(e, s) {
129
130
  }
130
131
  return !0;
131
132
  }
132
- var U = (e) => k(e) && !Object.keys(e).length, Ne = (e) => e.type === "file", W = (e) => typeof e == "function", be = (e) => {
133
+ var B = (e) => k(e) && !Object.keys(e).length, Ne = (e) => e.type === "file", W = (e) => typeof e == "function", be = (e) => {
133
134
  if (!Oe)
134
135
  return !1;
135
136
  const s = e ? e.ownerDocument : 0;
136
137
  return e instanceof (s && s.defaultView ? s.defaultView.HTMLElement : HTMLElement);
137
- }, dt = (e) => e.type === "select-multiple", Me = (e) => e.type === "radio", Ut = (e) => Me(e) || ce(e), Ce = (e) => be(e) && e.isConnected;
138
- function Bt(e, s) {
138
+ }, dt = (e) => e.type === "select-multiple", Me = (e) => e.type === "radio", Bt = (e) => Me(e) || ce(e), Ce = (e) => be(e) && e.isConnected;
139
+ function Ut(e, s) {
139
140
  const r = s.slice(0, -1).length;
140
141
  let a = 0;
141
142
  for (; a < r; )
@@ -149,8 +150,8 @@ function It(e) {
149
150
  return !0;
150
151
  }
151
152
  function L(e, s) {
152
- const r = Array.isArray(s) ? s : me(s) ? [s] : Re(s), a = r.length === 1 ? e : Bt(e, r), u = r.length - 1, n = r[u];
153
- return a && delete a[n], u !== 0 && (k(a) && U(a) || Array.isArray(a) && It(a)) && L(e, r.slice(0, -1)), e;
153
+ const r = Array.isArray(s) ? s : Ve(s) ? [s] : Re(s), a = r.length === 1 ? e : Ut(e, r), u = r.length - 1, n = r[u];
154
+ return a && delete a[n], u !== 0 && (k(a) && B(a) || Array.isArray(a) && It(a)) && L(e, r.slice(0, -1)), e;
154
155
  }
155
156
  var ft = (e) => {
156
157
  for (const s in e)
@@ -214,7 +215,7 @@ var Pt = (e, s, r, a) => {
214
215
  fields: u,
215
216
  shouldUseNativeValidation: a
216
217
  };
217
- }, Ve = (e) => e instanceof RegExp, oe = (e) => S(e) ? e : Ve(e) ? e.source : k(e) ? Ve(e.value) ? e.value.source : e.value : e, rt = (e) => ({
218
+ }, me = (e) => e instanceof RegExp, oe = (e) => S(e) ? e : me(e) ? e.source : k(e) ? me(e.value) ? e.value.source : e.value : e, rt = (e) => ({
218
219
  isOnSubmit: !e || e === q.onSubmit,
219
220
  isOnBlur: e === q.onBlur,
220
221
  isOnChange: e === q.onChange,
@@ -242,7 +243,7 @@ const fe = (e, s, r, a) => {
242
243
  };
243
244
  function at(e, s, r) {
244
245
  const a = h(e, r);
245
- if (a || me(r))
246
+ if (a || Ve(r))
246
247
  return {
247
248
  error: a,
248
249
  name: r
@@ -271,7 +272,7 @@ function at(e, s, r) {
271
272
  var Wt = (e, s, r, a) => {
272
273
  r(e);
273
274
  const { name: u, ...n } = e;
274
- return U(n) || Object.keys(n).length >= Object.keys(s).length || Object.keys(n).find((c) => s[c] === (!a || q.all));
275
+ return B(n) || Object.keys(n).length >= Object.keys(s).length || Object.keys(n).find((c) => s[c] === (!a || q.all));
275
276
  }, Ht = (e, s, r) => !e || !s || e === s || de(e).some((a) => a && (r ? a === s : a.startsWith(s) || s.startsWith(a))), zt = (e, s, r, a, u) => u.isOnAll ? !1 : !r && u.isOnTouch ? !(s || e) : (r ? a.isOnBlur : u.isOnBlur) ? !e : (r ? a.isOnChange : u.isOnChange) ? e : !0, $t = (e, s) => !Te(h(e, s)).length && L(e, s), jt = (e, s, r) => {
276
277
  const a = de(h(e, r));
277
278
  return A(a, "root", s[r]), A(e, r, a), e;
@@ -284,17 +285,17 @@ function lt(e, s, r = "validate") {
284
285
  ref: s
285
286
  };
286
287
  }
287
- var ae = (e) => k(e) && !Ve(e) ? e : {
288
+ var ae = (e) => k(e) && !me(e) ? e : {
288
289
  value: e,
289
290
  message: ""
290
291
  }, nt = async (e, s, r, a, u, n) => {
291
- const { ref: c, refs: y, required: O, maxLength: B, minLength: F, min: w, max: v, pattern: le, validate: J, name: E, valueAsNumber: Q, mount: Fe } = e._f, _ = h(r, E);
292
+ const { ref: c, refs: y, required: O, maxLength: U, minLength: F, min: w, max: v, pattern: le, validate: J, name: E, valueAsNumber: Q, mount: Fe } = e._f, _ = h(r, E);
292
293
  if (!Fe || s.has(E))
293
294
  return {};
294
295
  const G = y ? y[0] : c, H = (b) => {
295
296
  u && G.reportValidity && (G.setCustomValidity(j(b) ? "" : b || ""), G.reportValidity());
296
- }, C = {}, ye = Me(c), X = ce(c), xe = ye || X, p = (Q || Ne(c)) && S(c.value) && S(_) || be(c) && c.value === "" || _ === "" || Array.isArray(_) && !_.length, te = Mt.bind(null, E, a, C), z = (b, m, D, R = Y.maxLength, M = Y.minLength) => {
297
- const $ = b ? m : D;
297
+ }, C = {}, ye = Me(c), X = ce(c), xe = ye || X, p = (Q || Ne(c)) && S(c.value) && S(_) || be(c) && c.value === "" || _ === "" || Array.isArray(_) && !_.length, te = Mt.bind(null, E, a, C), z = (b, V, D, R = Y.maxLength, M = Y.minLength) => {
298
+ const $ = b ? V : D;
298
299
  C[E] = {
299
300
  type: b ? R : M,
300
301
  message: $,
@@ -303,63 +304,63 @@ var ae = (e) => k(e) && !Ve(e) ? e : {
303
304
  };
304
305
  };
305
306
  if (n ? !Array.isArray(_) || !_.length : O && (!xe && (p || N(_)) || j(_) && !_ || X && !yt(y).isValid || ye && !gt(y).isValid)) {
306
- const { value: b, message: m } = ve(O) ? { value: !!O, message: O } : ae(O);
307
+ const { value: b, message: V } = ve(O) ? { value: !!O, message: O } : ae(O);
307
308
  if (b && (C[E] = {
308
309
  type: Y.required,
309
- message: m,
310
+ message: V,
310
311
  ref: G,
311
- ...te(Y.required, m)
312
+ ...te(Y.required, V)
312
313
  }, !a))
313
- return H(m), C;
314
+ return H(V), C;
314
315
  }
315
316
  if (!p && (!N(w) || !N(v))) {
316
- let b, m;
317
+ let b, V;
317
318
  const D = ae(v), R = ae(w);
318
319
  if (!N(_) && !isNaN(_)) {
319
320
  const M = c.valueAsNumber || _ && +_;
320
- N(D.value) || (b = M > D.value), N(R.value) || (m = M < R.value);
321
+ N(D.value) || (b = M > D.value), N(R.value) || (V = M < R.value);
321
322
  } else {
322
323
  const M = c.valueAsDate || new Date(_), $ = (he) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + he), ne = c.type == "time", se = c.type == "week";
323
- K(D.value) && _ && (b = ne ? $(_) > $(D.value) : se ? _ > D.value : M > new Date(D.value)), K(R.value) && _ && (m = ne ? $(_) < $(R.value) : se ? _ < R.value : M < new Date(R.value));
324
+ K(D.value) && _ && (b = ne ? $(_) > $(D.value) : se ? _ > D.value : M > new Date(D.value)), K(R.value) && _ && (V = ne ? $(_) < $(R.value) : se ? _ < R.value : M < new Date(R.value));
324
325
  }
325
- if ((b || m) && (z(!!b, D.message, R.message, Y.max, Y.min), !a))
326
+ if ((b || V) && (z(!!b, D.message, R.message, Y.max, Y.min), !a))
326
327
  return H(C[E].message), C;
327
328
  }
328
- if ((B || F) && !p && (K(_) || n && Array.isArray(_))) {
329
- const b = ae(B), m = ae(F), D = !N(b.value) && _.length > +b.value, R = !N(m.value) && _.length < +m.value;
330
- if ((D || R) && (z(D, b.message, m.message), !a))
329
+ if ((U || F) && !p && (K(_) || n && Array.isArray(_))) {
330
+ const b = ae(U), V = ae(F), D = !N(b.value) && _.length > +b.value, R = !N(V.value) && _.length < +V.value;
331
+ if ((D || R) && (z(D, b.message, V.message), !a))
331
332
  return H(C[E].message), C;
332
333
  }
333
334
  if (le && !p && K(_)) {
334
- const { value: b, message: m } = ae(le);
335
- if (Ve(b) && !_.match(b) && (C[E] = {
335
+ const { value: b, message: V } = ae(le);
336
+ if (me(b) && !_.match(b) && (C[E] = {
336
337
  type: Y.pattern,
337
- message: m,
338
+ message: V,
338
339
  ref: c,
339
- ...te(Y.pattern, m)
340
+ ...te(Y.pattern, V)
340
341
  }, !a))
341
- return H(m), C;
342
+ return H(V), C;
342
343
  }
343
344
  if (J) {
344
345
  if (W(J)) {
345
- const b = await J(_, r), m = lt(b, G);
346
- if (m && (C[E] = {
347
- ...m,
348
- ...te(Y.validate, m.message)
346
+ const b = await J(_, r), V = lt(b, G);
347
+ if (V && (C[E] = {
348
+ ...V,
349
+ ...te(Y.validate, V.message)
349
350
  }, !a))
350
- return H(m.message), C;
351
+ return H(V.message), C;
351
352
  } else if (k(J)) {
352
353
  let b = {};
353
- for (const m in J) {
354
- if (!U(b) && !a)
354
+ for (const V in J) {
355
+ if (!B(b) && !a)
355
356
  break;
356
- const D = lt(await J[m](_, r), G, m);
357
+ const D = lt(await J[V](_, r), G, V);
357
358
  D && (b = {
358
359
  ...D,
359
- ...te(m, D.message)
360
+ ...te(V, D.message)
360
361
  }, H(D.message), a && (C[E] = b));
361
362
  }
362
- if (!U(b) && (C[E] = {
363
+ if (!B(b) && (C[E] = {
363
364
  ref: G,
364
365
  ...b
365
366
  }, !a))
@@ -404,7 +405,7 @@ function Gt(e = {}) {
404
405
  unMount: /* @__PURE__ */ new Set(),
405
406
  array: /* @__PURE__ */ new Set(),
406
407
  watch: /* @__PURE__ */ new Set()
407
- }, O, B = 0;
408
+ }, O, U = 0;
408
409
  const F = {
409
410
  isDirty: !1,
410
411
  dirtyFields: !1,
@@ -421,10 +422,10 @@ function Gt(e = {}) {
421
422
  array: Qe(),
422
423
  state: Qe()
423
424
  }, le = s.criteriaMode === q.all, J = (t) => (i) => {
424
- clearTimeout(B), B = setTimeout(t, i);
425
+ clearTimeout(U), U = setTimeout(t, i);
425
426
  }, E = async (t) => {
426
427
  if (!s.disabled && (F.isValid || w.isValid || t)) {
427
- const i = s.resolver ? U((await X()).errors) : await p(a, !0);
428
+ const i = s.resolver ? B((await X()).errors) : await p(a, !0);
428
429
  i !== r.isValid && v.state.next({
429
430
  isValid: i
430
431
  });
@@ -434,7 +435,7 @@ function Gt(e = {}) {
434
435
  l && (i ? A(r.validatingFields, l, i) : L(r.validatingFields, l));
435
436
  }), v.state.next({
436
437
  validatingFields: r.validatingFields,
437
- isValidating: !U(r.validatingFields)
438
+ isValidating: !B(r.validatingFields)
438
439
  }));
439
440
  }, Fe = (t, i = [], l, f, d = !0, o = !0) => {
440
441
  if (f && l && !s.disabled) {
@@ -476,25 +477,25 @@ function Gt(e = {}) {
476
477
  }
477
478
  }, C = (t, i, l, f, d) => {
478
479
  let o = !1, g = !1;
479
- const V = {
480
+ const m = {
480
481
  name: t
481
482
  };
482
483
  if (!s.disabled) {
483
484
  if (!l || f) {
484
- (F.isDirty || w.isDirty) && (g = r.isDirty, r.isDirty = V.isDirty = z(), o = g !== V.isDirty);
485
+ (F.isDirty || w.isDirty) && (g = r.isDirty, r.isDirty = m.isDirty = z(), o = g !== m.isDirty);
485
486
  const x = ee(h(u, t), i);
486
- g = !!h(r.dirtyFields, t), x ? L(r.dirtyFields, t) : A(r.dirtyFields, t, !0), V.dirtyFields = r.dirtyFields, o = o || (F.dirtyFields || w.dirtyFields) && g !== !x;
487
+ g = !!h(r.dirtyFields, t), x ? L(r.dirtyFields, t) : A(r.dirtyFields, t, !0), m.dirtyFields = r.dirtyFields, o = o || (F.dirtyFields || w.dirtyFields) && g !== !x;
487
488
  }
488
489
  if (l) {
489
490
  const x = h(r.touchedFields, t);
490
- x || (A(r.touchedFields, t, l), V.touchedFields = r.touchedFields, o = o || (F.touchedFields || w.touchedFields) && x !== l);
491
+ x || (A(r.touchedFields, t, l), m.touchedFields = r.touchedFields, o = o || (F.touchedFields || w.touchedFields) && x !== l);
491
492
  }
492
- o && d && v.state.next(V);
493
+ o && d && v.state.next(m);
493
494
  }
494
- return o ? V : {};
495
+ return o ? m : {};
495
496
  }, ye = (t, i, l, f) => {
496
497
  const d = h(r.errors, t), o = (F.isValid || w.isValid) && j(i) && r.isValid !== i;
497
- if (s.delayError && l ? (O = J(() => _(t, l)), O(s.delayError)) : (clearTimeout(B), O = null, l ? A(r.errors, t, l) : L(r.errors, t)), (l ? !ee(d, l) : d) || !U(f) || o) {
498
+ if (s.delayError && l ? (O = J(() => _(t, l)), O(s.delayError)) : (clearTimeout(U), O = null, l ? A(r.errors, t, l) : L(r.errors, t)), (l ? !ee(d, l) : d) || !B(f) || o) {
498
499
  const g = {
499
500
  ...f,
500
501
  ...o && j(i) ? { isValid: i } : {},
@@ -528,14 +529,14 @@ function Gt(e = {}) {
528
529
  if (d) {
529
530
  const { _f: o, ...g } = d;
530
531
  if (o) {
531
- const V = y.array.has(o.name), x = d._f && pt(d._f);
532
+ const m = y.array.has(o.name), x = d._f && pt(d._f);
532
533
  x && F.validatingFields && Q([f], !0);
533
- const I = await nt(d, y.disabled, n, le, s.shouldUseNativeValidation && !i, V);
534
+ const I = await nt(d, y.disabled, n, le, s.shouldUseNativeValidation && !i, m);
534
535
  if (x && F.validatingFields && Q([f]), I[o.name] && (l.valid = !1, i))
535
536
  break;
536
- !i && (h(I, o.name) ? V ? jt(r.errors, I, o.name) : A(r.errors, o.name, I[o.name]) : L(r.errors, o.name));
537
+ !i && (h(I, o.name) ? m ? jt(r.errors, I, o.name) : A(r.errors, o.name, I[o.name]) : L(r.errors, o.name));
537
538
  }
538
- !U(g) && await p(g, i, l);
539
+ !B(g) && await p(g, i, l);
539
540
  }
540
541
  }
541
542
  return l.valid;
@@ -547,13 +548,13 @@ function Gt(e = {}) {
547
548
  y.unMount = /* @__PURE__ */ new Set();
548
549
  }, z = (t, i) => !s.disabled && (t && i && A(n, t, i), !ee(he(), u)), b = (t, i, l) => Nt(t, y, {
549
550
  ...c.mount ? n : S(i) ? u : K(t) ? { [t]: i } : i
550
- }, l, i), m = (t) => Te(h(c.mount ? n : u, t, s.shouldUnregister ? h(u, t, []) : [])), D = (t, i, l = {}) => {
551
+ }, l, i), V = (t) => Te(h(c.mount ? n : u, t, s.shouldUnregister ? h(u, t, []) : [])), D = (t, i, l = {}) => {
551
552
  const f = h(a, t);
552
553
  let d = i;
553
554
  if (f) {
554
555
  const o = f._f;
555
556
  o && (!o.disabled && A(n, t, ht(i, o)), d = be(o.ref) && N(i) ? "" : i, dt(o.ref) ? [...o.ref.options].forEach((g) => g.selected = d.includes(g.value)) : o.refs ? ce(o.ref) ? o.refs.forEach((g) => {
556
- (!g.defaultChecked || !g.disabled) && (Array.isArray(d) ? g.checked = !!d.find((V) => V === g.value) : g.checked = d === g.value || !!d);
557
+ (!g.defaultChecked || !g.disabled) && (Array.isArray(d) ? g.checked = !!d.find((m) => m === g.value) : g.checked = d === g.value || !!d);
557
558
  }) : o.refs.forEach((g) => g.checked = g.value === d) : Ne(o.ref) ? o.ref.value = "" : (o.ref.value = d, o.ref.type || v.state.next({
558
559
  name: t,
559
560
  values: T(n)
@@ -586,12 +587,12 @@ function Gt(e = {}) {
586
587
  let l = i.name, f = !0;
587
588
  const d = h(a, l), o = (x) => {
588
589
  f = Number.isNaN(x) || re(x) && isNaN(x.getTime()) || ee(x, h(n, l, x));
589
- }, g = rt(s.mode), V = rt(s.reValidateMode);
590
+ }, g = rt(s.mode), m = rt(s.reValidateMode);
590
591
  if (d) {
591
592
  let x, I;
592
- const ge = i.type ? tt(d._f) : St(t), Z = t.type === Je.BLUR || t.type === Je.FOCUS_OUT, At = !qt(d._f) && !s.resolver && !h(r.errors, l) && !d._f.deps || zt(Z, h(r.touchedFields, l), r.isSubmitted, V, g), ke = it(l, y, Z);
593
+ const ge = i.type ? tt(d._f) : St(t), Z = t.type === Je.BLUR || t.type === Je.FOCUS_OUT, At = !qt(d._f) && !s.resolver && !h(r.errors, l) && !d._f.deps || zt(Z, h(r.touchedFields, l), r.isSubmitted, m, g), ke = it(l, y, Z);
593
594
  A(n, l, ge), Z ? (d._f.onBlur && d._f.onBlur(t), O && O(0)) : d._f.onChange && d._f.onChange(t);
594
- const Se = C(l, ge, Z), wt = !U(Se) || ke;
595
+ const Se = C(l, ge, Z), wt = !B(Se) || ke;
595
596
  if (!Z && v.state.next({
596
597
  name: l,
597
598
  type: t.type,
@@ -602,7 +603,7 @@ function Gt(e = {}) {
602
603
  const { errors: ze } = await X([l]);
603
604
  if (o(ge), f) {
604
605
  const Dt = at(r.errors, a, l), $e = at(ze, a, Dt.name || l);
605
- x = $e.error, l = $e.name, I = U(ze);
606
+ x = $e.error, l = $e.name, I = B(ze);
606
607
  }
607
608
  } else
608
609
  Q([l], !0), x = (await nt(d, y.disabled, n, le, s.shouldUseNativeValidation))[l], Q([l]), o(ge), f && (x ? I = !1 : (F.isValid || w.isValid) && (I = await p(a, !0)));
@@ -616,7 +617,7 @@ function Gt(e = {}) {
616
617
  const d = de(t);
617
618
  if (s.resolver) {
618
619
  const o = await xe(S(t) ? t : d);
619
- l = U(o), f = t ? !d.some((g) => h(o, g)) : l;
620
+ l = B(o), f = t ? !d.some((g) => h(o, g)) : l;
620
621
  } else
621
622
  t ? (f = (await Promise.all(d.map(async (o) => {
622
623
  const g = h(a, o);
@@ -632,7 +633,7 @@ function Gt(e = {}) {
632
633
  ...c.mount ? n : u
633
634
  };
634
635
  return S(t) ? i : K(t) ? h(i, t) : t.map((l) => h(i, l));
635
- }, Ue = (t, i) => ({
636
+ }, Be = (t, i) => ({
636
637
  invalid: !!h((i || r).errors, t),
637
638
  isDirty: !!h((i || r).dirtyFields, t),
638
639
  error: h((i || r).errors, t),
@@ -642,8 +643,8 @@ function Gt(e = {}) {
642
643
  t && de(t).forEach((i) => L(r.errors, i)), v.state.next({
643
644
  errors: t ? r.errors : {}
644
645
  });
645
- }, Be = (t, i, l) => {
646
- const f = (h(a, t, { _f: {} })._f || {}).ref, d = h(r.errors, t) || {}, { ref: o, message: g, type: V, ...x } = d;
646
+ }, Ue = (t, i, l) => {
647
+ const f = (h(a, t, { _f: {} })._f || {}).ref, d = h(r.errors, t) || {}, { ref: o, message: g, type: m, ...x } = d;
647
648
  A(r.errors, t, {
648
649
  ...x,
649
650
  ...i,
@@ -710,15 +711,15 @@ function Gt(e = {}) {
710
711
  ref: (d) => {
711
712
  if (d) {
712
713
  we(t, i), l = h(a, t);
713
- const o = S(d.value) && d.querySelectorAll && d.querySelectorAll("input,select,textarea")[0] || d, g = Ut(o), V = l._f.refs || [];
714
- if (g ? V.find((x) => x === o) : o === l._f.ref)
714
+ const o = S(d.value) && d.querySelectorAll && d.querySelectorAll("input,select,textarea")[0] || d, g = Bt(o), m = l._f.refs || [];
715
+ if (g ? m.find((x) => x === o) : o === l._f.ref)
715
716
  return;
716
717
  A(a, t, {
717
718
  _f: {
718
719
  ...l._f,
719
720
  ...g ? {
720
721
  refs: [
721
- ...V.filter(Ce),
722
+ ...m.filter(Ce),
722
723
  o,
723
724
  ...Array.isArray(h(u, t)) ? [{}] : []
724
725
  ],
@@ -730,7 +731,7 @@ function Gt(e = {}) {
730
731
  l = h(a, t, {}), l._f && (l._f.mount = !1), (s.shouldUnregister || i.shouldUnregister) && !(Ct(y.array, t) && c.action) && y.unMount.add(t);
731
732
  }
732
733
  };
733
- }, De = () => s.shouldFocusError && fe(a, ne, y.mount), Vt = (t) => {
734
+ }, De = () => s.shouldFocusError && fe(a, ne, y.mount), mt = (t) => {
734
735
  j(t) && (v.state.next({ disabled: t }), fe(a, (i, l) => {
735
736
  const f = h(a, l);
736
737
  f && (i.disabled = f._f.disabled || t, Array.isArray(f._f.refs) && f._f.refs.forEach((d) => {
@@ -751,7 +752,7 @@ function Gt(e = {}) {
751
752
  if (y.disabled.size)
752
753
  for (const o of y.disabled)
753
754
  A(d, o, void 0);
754
- if (L(r.errors, "root"), U(r.errors)) {
755
+ if (L(r.errors, "root"), B(r.errors)) {
755
756
  v.state.next({
756
757
  errors: {}
757
758
  });
@@ -765,29 +766,29 @@ function Gt(e = {}) {
765
766
  if (v.state.next({
766
767
  isSubmitted: !0,
767
768
  isSubmitting: !1,
768
- isSubmitSuccessful: U(r.errors) && !f,
769
+ isSubmitSuccessful: B(r.errors) && !f,
769
770
  submitCount: r.submitCount + 1,
770
771
  errors: r.errors
771
772
  }), f)
772
773
  throw f;
773
- }, mt = (t, i = {}) => {
774
+ }, Vt = (t, i = {}) => {
774
775
  h(a, t) && (S(i.defaultValue) ? M(t, T(h(u, t))) : (M(t, i.defaultValue), A(u, t, T(i.defaultValue))), i.keepTouched || L(r.touchedFields, t), i.keepDirty || (L(r.dirtyFields, t), r.isDirty = i.defaultValue ? z(t, T(h(u, t))) : z()), i.keepError || (L(r.errors, t), F.isValid && E()), v.state.next({ ...r }));
775
776
  }, qe = (t, i = {}) => {
776
- const l = t ? T(t) : u, f = T(l), d = U(t), o = d ? u : f;
777
+ const l = t ? T(t) : u, f = T(l), d = B(t), o = d ? u : f;
777
778
  if (i.keepDefaultValues || (u = l), !i.keepValues) {
778
779
  if (i.keepDirtyValues) {
779
780
  const g = /* @__PURE__ */ new Set([
780
781
  ...y.mount,
781
782
  ...Object.keys(ue(u, n))
782
783
  ]);
783
- for (const V of Array.from(g))
784
- h(r.dirtyFields, V) ? A(o, V, h(n, V)) : M(V, h(o, V));
784
+ for (const m of Array.from(g))
785
+ h(r.dirtyFields, m) ? A(o, m, h(n, m)) : M(m, h(o, m));
785
786
  } else {
786
787
  if (Oe && S(t))
787
788
  for (const g of y.mount) {
788
- const V = h(a, g);
789
- if (V && V._f) {
790
- const x = Array.isArray(V._f.refs) ? V._f.refs[0] : V._f.ref;
789
+ const m = h(a, g);
790
+ if (m && m._f) {
791
+ const x = Array.isArray(m._f.refs) ? m._f.refs[0] : m._f.ref;
791
792
  if (be(x)) {
792
793
  const I = x.closest("form");
793
794
  if (I) {
@@ -839,9 +840,9 @@ function Gt(e = {}) {
839
840
  control: {
840
841
  register: we,
841
842
  unregister: Ae,
842
- getFieldState: Ue,
843
+ getFieldState: Be,
843
844
  handleSubmit: pe,
844
- setError: Be,
845
+ setError: Ue,
845
846
  _subscribe: Ie,
846
847
  _runSchema: X,
847
848
  _focusError: De,
@@ -851,7 +852,7 @@ function Gt(e = {}) {
851
852
  _setFieldArray: Fe,
852
853
  _setDisabledField: Pe,
853
854
  _setErrors: G,
854
- _getFieldArray: m,
855
+ _getFieldArray: V,
855
856
  _reset: qe,
856
857
  _resetDefaultValues: () => W(s.defaultValues) && s.defaultValues().then((t) => {
857
858
  We(t, s.resetOptions), v.state.next({
@@ -859,7 +860,7 @@ function Gt(e = {}) {
859
860
  });
860
861
  }),
861
862
  _removeUnmounted: te,
862
- _disableForm: Vt,
863
+ _disableForm: mt,
863
864
  _subjects: v,
864
865
  _proxyFormState: F,
865
866
  get _fields() {
@@ -904,12 +905,12 @@ function Gt(e = {}) {
904
905
  setValue: M,
905
906
  getValues: he,
906
907
  reset: We,
907
- resetField: mt,
908
+ resetField: Vt,
908
909
  clearErrors: vt,
909
910
  unregister: Ae,
910
- setError: Be,
911
+ setError: Ue,
911
912
  setFocus: Ft,
912
- getFieldState: Ue
913
+ getFieldState: Be
913
914
  };
914
915
  return {
915
916
  ...He,
@@ -979,7 +980,7 @@ function Yt(e = {}) {
979
980
  n._state.mount || (n._setValid(), n._state.mount = !0), n._state.watch && (n._state.watch = !1, n._subjects.state.next({ ...n._formState })), n._removeUnmounted();
980
981
  }), s.current.formState = Tt(a, n), s.current;
981
982
  }
982
- const er = ({ faqId: e, percent: s }) => {
983
+ const tr = ({ faqId: e, percent: s }) => {
983
984
  const [r, a] = kt(!1), u = Yt({
984
985
  defaultValues: {
985
986
  faq: e
@@ -992,7 +993,7 @@ const er = ({ faqId: e, percent: s }) => {
992
993
  } finally {
993
994
  a(!1);
994
995
  }
995
- }, B = (w) => {
996
+ }, U = (w) => {
996
997
  c("rate", w), n(O)();
997
998
  }, F = y("rate");
998
999
  return /* @__PURE__ */ ie(Ot, { ...u, children: /* @__PURE__ */ ie("form", { children: /* @__PURE__ */ Ee("div", { className: "mt-6 flex items-center gap-6 max-tablet:flex-col max-tablet:items-start", children: [
@@ -1008,7 +1009,7 @@ const er = ({ faqId: e, percent: s }) => {
1008
1009
  variant: Ye.Secondary,
1009
1010
  className: "w-[125px]",
1010
1011
  disabled: r,
1011
- onClick: () => B("yes"),
1012
+ onClick: () => U("yes"),
1012
1013
  loading: F === "yes" && r,
1013
1014
  children: "Да"
1014
1015
  }
@@ -1020,7 +1021,7 @@ const er = ({ faqId: e, percent: s }) => {
1020
1021
  variant: Ye.Secondary,
1021
1022
  className: "w-[125px]",
1022
1023
  disabled: r,
1023
- onClick: () => B("no"),
1024
+ onClick: () => U("no"),
1024
1025
  loading: F === "no" && r,
1025
1026
  children: "Нет"
1026
1027
  }
@@ -1029,5 +1030,5 @@ const er = ({ faqId: e, percent: s }) => {
1029
1030
  ] }) }) });
1030
1031
  };
1031
1032
  export {
1032
- er as FeedbackForm
1033
+ tr as FeedbackForm
1033
1034
  };
@@ -1,5 +1,5 @@
1
1
  import { jsxs as i, jsx as t } from "react/jsx-runtime";
2
- import { c as e } from "../../../cn-eacd4725.js";
2
+ import { c as e } from "../../../cn-d8c04b28.js";
3
3
  const a = ({ isActive: o = !1, className: r }) => /* @__PURE__ */ i(
4
4
  "div",
5
5
  {
@@ -1,6 +1,6 @@
1
1
  import { jsxs as n, jsx as r } from "react/jsx-runtime";
2
2
  import { ColoredCard as p } from "../Cards/ColoredCard/index.js";
3
- import { c as m } from "../cn-eacd4725.js";
3
+ import { c as m } from "../cn-d8c04b28.js";
4
4
  const x = [
5
5
  "data",
6
6
  "title",
@@ -1,9 +1,6 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { c as s } from "../cn-eacd4725.js";
3
- const n = [
4
- "data",
5
- "className"
6
- ], a = ({ data: t, className: o }) => /* @__PURE__ */ r(
2
+ import { c as s } from "../cn-d8c04b28.js";
3
+ const n = ["data", "className"], a = ({ data: t, className: o }) => /* @__PURE__ */ r(
7
4
  "div",
8
5
  {
9
6
  className: s(o),