md-components-mdigial-azamat 0.0.109 → 0.0.112

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 (52) hide show
  1. package/dist/ActionCardList/ActionCardList.js +8 -6
  2. package/dist/ActionCardList/index.js +1 -1
  3. package/dist/ActionCardList/info.js +1 -1
  4. package/dist/ActionIconList/ActionIconList.js +5 -3
  5. package/dist/AllComponents.js +11 -8
  6. package/dist/AllComponentsInfo.js +83 -81
  7. package/dist/ButtonsList/ButtonsList.js +25 -19
  8. package/dist/CardImageList/CardImageList.js +87 -71
  9. package/dist/CardImageList/info.js +1 -1
  10. package/dist/CardImageList/schema.js +57 -0
  11. package/dist/Cards/CardImage/CardImage.js +102 -55
  12. package/dist/Cards/CardImage/index.js +6 -1
  13. package/dist/Cards/CardImage/info.js +1 -1
  14. package/dist/Cards/CardImage/schema.js +32 -0
  15. package/dist/Cards/CardImage/types.js +3 -2
  16. package/dist/Cards/WarningCard/WarningCard.js +7 -5
  17. package/dist/Cards/WarningCard/index.js +1 -1
  18. package/dist/Cards/WarningCard/info.js +1 -1
  19. package/dist/Flex-86aee720.js +78 -0
  20. package/dist/Footer/Footer.js +5 -5
  21. package/dist/Forms/FormDefault/index.js +1 -1
  22. package/dist/Forms/FormDefault/info.js +9 -7
  23. package/dist/Forms/helpers/renderFormFields.js +1 -1
  24. package/dist/Forms/model/components.js +7 -5
  25. package/dist/Header/Header.js +1 -1
  26. package/dist/Header/components/HeaderMainMobile/HeaderMainMobile.js +12 -12
  27. package/dist/Header/components/HeaderMobile/HeaderMobile.js +1 -1
  28. package/dist/Header/components/HeaderSearch/HeaderSearch.js +1 -1
  29. package/dist/Header/components/HeaderTabsMobile/HeaderTabsMobile.js +10 -10
  30. package/dist/Header/components/HeaderWeb/HeaderWeb.js +15 -15
  31. package/dist/HeroIconsBanner/HeroIconsBanner.js +73 -56
  32. package/dist/IconList/IconList.js +53 -33
  33. package/dist/ModalBody/index.js +1 -1
  34. package/dist/PageViewer/renderComponents.js +1 -1
  35. package/dist/PreviewList/PreviewList.js +19 -19
  36. package/dist/PreviewList/components/PreviewCard/PreviewCard.js +29 -29
  37. package/dist/RenderAllComponents/RenderAllComponents.js +1 -1
  38. package/dist/RenderAllComponents/const.js +1 -1
  39. package/dist/SearchBlock/SearchBlock.js +102 -0
  40. package/dist/SearchBlock/index.js +4 -0
  41. package/dist/SearchBlock/info.js +11 -0
  42. package/dist/SearchBlock/schema.js +36 -0
  43. package/dist/assets/index.css +1 -1
  44. package/dist/{clientApi-642fea4b.js → clientApi-ccb08ba6.js} +7 -7
  45. package/dist/{componentsMap-855b1df7.js → componentsMap-cac6c316.js} +4 -3
  46. package/dist/{data.mock-182979d1.js → data.mock-ebc679ec.js} +107 -27
  47. package/dist/{index-497f59a8.js → index-b795390d.js} +23 -20
  48. package/dist/{index.module-c8833286.js → index.module-8835bf96.js} +1 -1
  49. package/dist/{info-34fbb2a8.js → info-d05a1f02.js} +171 -158
  50. package/dist/main.js +107 -104
  51. package/dist/trash/HeroLargeCards/index.js +7 -6
  52. package/package.json +1 -1
@@ -4,20 +4,20 @@ import { warningCardVariant as xe, WarningCardVariant as G, WarningCardVariantKe
4
4
  import "./ConfigProvider/index.js";
5
5
  import { Banner as we } from "./Banner/Banner.js";
6
6
  import "./BannerAndText/index.js";
7
- import { forwardRef as j, useState as T, useMemo as Z, useEffect as ke, useRef as Ce, useImperativeHandle as re, useCallback as ve } from "react";
7
+ import { forwardRef as j, useState as T, useMemo as Z, useEffect as ke, useRef as Ce, useImperativeHandle as re, useCallback as Le } from "react";
8
8
  import { c as y } from "./cn-6a4bf187.js";
9
9
  import "./Faq/components/Collapse/Collapse.js";
10
10
  import "./Header/components/HeaderTabsMobile/HeaderTabsMobile.js";
11
- import { HtmlContent as Le } from "./HtmlContent/HtmlContent.js";
11
+ import { HtmlContent as ve } from "./HtmlContent/HtmlContent.js";
12
12
  import "./Header/components/TabsOutlined/TabsOutlined.js";
13
13
  import { B as X } from "./index-875e92ce.js";
14
14
  import { B as De, a as Ne, b as _e } from "./const-53dff524.js";
15
15
  import { Stepper as Be } from "./Stepper/Stepper.js";
16
16
  import { Segments as Se } from "./Segments/Segments.js";
17
- import { VideoFull as Fe } from "./Video/VideoFull/VideoFull.js";
18
- import { VideoList as Me } from "./Video/VideoList/VideoList.js";
19
- import { VideoListMini as Ve } from "./Video/VideoListMini/VideoListMini.js";
20
- import { ContentCardList as Ie } from "./ContentCardList/ContentCardList.js";
17
+ import { VideoFull as Ie } from "./Video/VideoFull/VideoFull.js";
18
+ import { VideoList as Fe } from "./Video/VideoList/VideoList.js";
19
+ import { VideoListMini as Me } from "./Video/VideoListMini/VideoListMini.js";
20
+ import { ContentCardList as Ve } from "./ContentCardList/ContentCardList.js";
21
21
  import { CardIconList as Te } from "./CardIconList/CardIconList.js";
22
22
  import { MultiCards as He } from "./MultiCards/index.js";
23
23
  import { Partners as Pe } from "./Partners/Partners.js";
@@ -29,6 +29,7 @@ import "./HeroPossibilityBanner/index.js";
29
29
  import { PartnersColors as Oe } from "./PartnersColors/PartnersColors.js";
30
30
  import { PreviewList as Ge } from "./PreviewList/PreviewList.js";
31
31
  import "./Cards/CardImage/CardImage.js";
32
+ import "./Cards/CardImage/info.js";
32
33
  import "./Cards/ContentCard/ContentCard.js";
33
34
  import "./Cards/ColoredCard/index.js";
34
35
  import "./Cards/FeaturesCard/index.js";
@@ -61,20 +62,19 @@ import { SwiperList as it } from "./SwiperList/SwiperList.js";
61
62
  import "./TasksBanner/TasksBanner.js";
62
63
  import { TasksBannerList as lt } from "./TasksBannerList/TasksBannerList.js";
63
64
  import { VideoMainBanner as ct } from "./VideoMainBanner/VideoMainBanner.js";
64
- import { M as dt, B as pt, C as mt, S as ut, b as ft, V as ht, c as gt, d as bt, e as xt, f as yt, g as wt, P as kt, h as Ct, W as vt, F as Lt, k as Dt, D as Nt, l as _t, m as Bt, I as St, o as Ft, p as Mt, A as Vt, q as It, T as Tt, r as Ht, E as Pt, s as Et, t as jt, u as Wt, v as At, w as Ot, x as Gt, y as $t } from "./data.mock-182979d1.js";
65
+ import { M as dt, B as pt, C as mt, S as ut, b as ft, V as ht, c as gt, d as bt, e as xt, f as yt, g as wt, P as kt, h as Ct, W as Lt, F as vt, k as Dt, D as Nt, l as _t, m as Bt, I as St, o as It, p as Ft, A as Mt, q as Vt, T as Tt, r as Ht, E as Pt, s as Et, t as jt, u as Wt, v as At, w as Ot, x as Gt, y as $t, z as Zt, H as Rt, G as Xt, J as zt } from "./data.mock-ebc679ec.js";
66
+ import { ButtonsList as qt } from "./ButtonsList/ButtonsList.js";
65
67
  import { FieldTypes as E, DataTypesEnum as z } from "./Types/FiledTypes.js";
66
68
  import "react-dom";
67
69
  import "./AnimatedSwiper/info.js";
68
70
  import "./Banner/info.js";
69
71
  import "./BannerAndText/info.js";
70
- import "./HeroIconsBanner/info.js";
71
72
  import "./ButtonsList/info.js";
72
73
  import "./CardIconList/info.js";
73
74
  import "./CardImageList/info.js";
74
75
  import "./CardImageSecondary/info.js";
75
76
  import "./CardImageSecondaryList/info.js";
76
77
  import "./CardInfoTable/info.js";
77
- import "./Cards/CardImage/info.js";
78
78
  import "./Cards/ColoredCard/info.js";
79
79
  import "./Cards/ContentCard/info.js";
80
80
  import "./Cards/FeaturesCard/info.js";
@@ -87,6 +87,7 @@ import "./DownloadFile/components/DownloadFileMini/info.js";
87
87
  import "./Faq/info.js";
88
88
  import "./Footer/info.js";
89
89
  import "./Header/info.js";
90
+ import "./HeroIconsBanner/info.js";
90
91
  import "./HeroPossibilityBanner/info.js";
91
92
  import "./IconList/info.js";
92
93
  import "./InfoBanner/info.js";
@@ -99,6 +100,7 @@ import "./Partners/info.js";
99
100
  import "./PartnersColors/info.js";
100
101
  import "./PreviewList/info.js";
101
102
  import "./PromoPoster/info.js";
103
+ import "./SearchBlock/info.js";
102
104
  import "./Segments/info.js";
103
105
  import "./Space/info.js";
104
106
  import "./StandartTable/info.js";
@@ -112,13 +114,16 @@ import "./Video/VideoListMini/info.js";
112
114
  import "./VideoMainBanner/info.js";
113
115
  import "./Actions/types.js";
114
116
  import "./Actions/projectActions.js";
115
- import "./HeroIconsBanner/HeroIconsBanner.js";
116
- import { c as Zt, R as Rt } from "./requestForm-23442a57.js";
117
- import { componentTypes as Xt } from "./Forms/FormDefault/componentTypes.js";
118
- import { fieldTypesList as zt } from "./Forms/FormDefault/fieldTypesList.js";
119
- import { Header as qt } from "./Header/Header.js";
120
- import { Footer as Yt } from "./Footer/Footer.js";
121
- import { I as Kt } from "./Icon-70ea6cb8.js";
117
+ import "./Flex-86aee720.js";
118
+ import { HeroIconsBanner as Yt } from "./HeroIconsBanner/HeroIconsBanner.js";
119
+ import { c as Kt, R as Ut } from "./requestForm-23442a57.js";
120
+ import { componentTypes as Qt } from "./Forms/FormDefault/componentTypes.js";
121
+ import { fieldTypesList as Jt } from "./Forms/FormDefault/fieldTypesList.js";
122
+ import { IconList as er } from "./IconList/IconList.js";
123
+ import { SearchBlock as tr } from "./SearchBlock/SearchBlock.js";
124
+ import { Header as rr } from "./Header/Header.js";
125
+ import { Footer as or } from "./Footer/Footer.js";
126
+ import { I as ar } from "./Icon-70ea6cb8.js";
122
127
  const ne = [
123
128
  "title",
124
129
  "title_color",
@@ -147,7 +152,7 @@ const ne = [
147
152
  className: "flex gap-[16px] items-center max-tablet:flex-col max-tablet:items-start max-tablet:gap-[12px]",
148
153
  children: [
149
154
  /* @__PURE__ */ e(
150
- Kt,
155
+ ar,
151
156
  {
152
157
  name: (u = G[r]) == null ? void 0 : u.icon,
153
158
  size: 40
@@ -170,7 +175,7 @@ const ne = [
170
175
  children: o
171
176
  }
172
177
  ),
173
- i && /* @__PURE__ */ e(Le, { data: i })
178
+ i && /* @__PURE__ */ e(ve, { data: i })
174
179
  ] })
175
180
  ]
176
181
  }
@@ -181,7 +186,7 @@ const ne = [
181
186
  ) });
182
187
  };
183
188
  U.propsToEdit = ne;
184
- const Ut = {
189
+ const nr = {
185
190
  type: "cards",
186
191
  label: "Карточки действий",
187
192
  dataType: "array",
@@ -190,7 +195,7 @@ const Ut = {
190
195
  icon: E.FILE,
191
196
  link: E.LINK
192
197
  }
193
- }, se = ["title", "description", "marginBottom", Ut], ie = ({
198
+ }, se = ["title", "description", "marginBottom", nr], ie = ({
194
199
  title: s,
195
200
  description: o,
196
201
  marginBottom: a,
@@ -338,7 +343,7 @@ const ce = j(
338
343
  ] })
339
344
  );
340
345
  ce.displayName = "Input";
341
- const Qt = () => /* @__PURE__ */ e(
346
+ const sr = () => /* @__PURE__ */ e(
342
347
  "svg",
343
348
  {
344
349
  width: "20",
@@ -354,12 +359,12 @@ const Qt = () => /* @__PURE__ */ e(
354
359
  }
355
360
  )
356
361
  }
357
- ), Jt = (s) => {
362
+ ), ir = (s) => {
358
363
  if (!s)
359
364
  return "";
360
365
  const o = String(s.getDate()).padStart(2, "0"), a = String(s.getMonth() + 1).padStart(2, "0"), i = s.getFullYear();
361
366
  return `${o}.${a}.${i}`;
362
- }, er = (s) => {
367
+ }, lr = (s) => {
363
368
  if (!s)
364
369
  return null;
365
370
  const o = s.split(".");
@@ -372,7 +377,7 @@ const Qt = () => /* @__PURE__ */ e(
372
377
  }
373
378
  }
374
379
  return null;
375
- }, tr = (s, o) => new Date(o, s, 1).toLocaleDateString("ru-RU", { month: "long", year: "numeric" }), rr = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], de = j(
380
+ }, cr = (s, o) => new Date(o, s, 1).toLocaleDateString("ru-RU", { month: "long", year: "numeric" }), dr = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], de = j(
376
381
  ({
377
382
  className: s,
378
383
  error: o,
@@ -382,37 +387,37 @@ const Qt = () => /* @__PURE__ */ e(
382
387
  placeholder: t = "Дата обращения в Контакт-центр",
383
388
  ...u
384
389
  }, w) => {
385
- const [D, n] = T(""), [N, k] = T(!1), [m, C] = T((/* @__PURE__ */ new Date()).getMonth()), [f, b] = T((/* @__PURE__ */ new Date()).getFullYear()), [x, B] = T(null), F = i !== void 0, v = F ? i : D, { ref: _ } = K(N, () => {
390
+ const [D, n] = T(""), [N, k] = T(!1), [m, C] = T((/* @__PURE__ */ new Date()).getMonth()), [f, b] = T((/* @__PURE__ */ new Date()).getFullYear()), [x, B] = T(null), I = i !== void 0, L = I ? i : D, { ref: _ } = K(N, () => {
386
391
  k(!1);
387
- }), I = Z(() => er(v), [v]);
392
+ }), V = Z(() => lr(L), [L]);
388
393
  ke(() => {
389
- I && (B(I), C(I.getMonth()), b(I.getFullYear()));
390
- }, [I]);
391
- const M = Z(() => {
394
+ V && (B(V), C(V.getMonth()), b(V.getFullYear()));
395
+ }, [V]);
396
+ const F = Z(() => {
392
397
  const c = new Date(f, m, 1), S = new Date(f, m + 1, 0).getDate(), l = c.getDay(), g = [], H = new Date(f, m, 0).getDate();
393
- for (let V = l - 1; V >= 0; V--)
394
- g.push(H - V);
395
- for (let V = 1; V <= S; V++)
396
- g.push(V);
398
+ for (let M = l - 1; M >= 0; M--)
399
+ g.push(H - M);
400
+ for (let M = 1; M <= S; M++)
401
+ g.push(M);
397
402
  const P = 42 - g.length;
398
- for (let V = 1; V <= P; V++)
399
- g.push(V);
403
+ for (let M = 1; M <= P; M++)
404
+ g.push(M);
400
405
  return g;
401
406
  }, [m, f]), W = (c) => {
402
407
  const d = c.target.value;
403
- F || n(d), r == null || r(d);
408
+ I || n(d), r == null || r(d);
404
409
  }, A = (c, d, S) => {
405
410
  if (c === null)
406
411
  return;
407
412
  let l = m, g = f;
408
413
  d ? (l = l - 1, l < 0 && (l = 11, g = g - 1)) : S && (l = l + 1, l > 11 && (l = 0, g = g + 1));
409
- const H = new Date(g, l, c), P = Jt(H);
410
- B(H), C(l), b(g), F || n(P), r == null || r(P), k(!1);
414
+ const H = new Date(g, l, c), P = ir(H);
415
+ B(H), C(l), b(g), I || n(P), r == null || r(P), k(!1);
411
416
  }, O = () => {
412
417
  m === 0 ? (C(11), b(f - 1)) : C(m - 1);
413
418
  }, h = () => {
414
419
  m === 11 ? (C(0), b(f + 1)) : C(m + 1);
415
- }, L = (c, d, S) => {
420
+ }, v = (c, d, S) => {
416
421
  if (!x || c === null)
417
422
  return !1;
418
423
  let l = m, g = f;
@@ -440,7 +445,7 @@ const Qt = () => /* @__PURE__ */ e(
440
445
  onClick: () => k(!N),
441
446
  className: "absolute left-4 flex items-center justify-center cursor-pointer",
442
447
  tabIndex: -1,
443
- children: /* @__PURE__ */ e(Qt, {})
448
+ children: /* @__PURE__ */ e(sr, {})
444
449
  }
445
450
  ),
446
451
  /* @__PURE__ */ e(
@@ -455,7 +460,7 @@ const Qt = () => /* @__PURE__ */ e(
455
460
  "disabled:cursor-not-allowed disabled:opacity-50"
456
461
  ),
457
462
  ref: w,
458
- value: v,
463
+ value: L,
459
464
  onChange: W,
460
465
  placeholder: t,
461
466
  onClick: () => k(!0),
@@ -501,7 +506,7 @@ const Qt = () => /* @__PURE__ */ e(
501
506
  )
502
507
  }
503
508
  ),
504
- /* @__PURE__ */ e("h3", { className: "text-base font-semibold text-blackBG", children: tr(m, f) }),
509
+ /* @__PURE__ */ e("h3", { className: "text-base font-semibold text-blackBG", children: cr(m, f) }),
505
510
  /* @__PURE__ */ e(
506
511
  "button",
507
512
  {
@@ -531,7 +536,7 @@ const Qt = () => /* @__PURE__ */ e(
531
536
  }
532
537
  )
533
538
  ] }),
534
- /* @__PURE__ */ e("div", { className: "grid grid-cols-7 gap-1 mb-2", children: rr.map((c) => /* @__PURE__ */ e(
539
+ /* @__PURE__ */ e("div", { className: "grid grid-cols-7 gap-1 mb-2", children: dr.map((c) => /* @__PURE__ */ e(
535
540
  "div",
536
541
  {
537
542
  className: "text-center text-xs font-medium text-grayBlue5 py-2",
@@ -539,12 +544,12 @@ const Qt = () => /* @__PURE__ */ e(
539
544
  },
540
545
  c
541
546
  )) }),
542
- /* @__PURE__ */ e("div", { className: "grid grid-cols-7 gap-1", children: M.map((c, d) => {
547
+ /* @__PURE__ */ e("div", { className: "grid grid-cols-7 gap-1", children: F.map((c, d) => {
543
548
  const l = new Date(f, m, 1).getDay(), g = new Date(
544
549
  f,
545
550
  m + 1,
546
551
  0
547
- ).getDate(), H = d < l, P = d >= l + g, V = !H && !P, be = L(
552
+ ).getDate(), H = d < l, P = d >= l + g, M = !H && !P, be = v(
548
553
  c,
549
554
  H,
550
555
  P
@@ -558,7 +563,7 @@ const Qt = () => /* @__PURE__ */ e(
558
563
  className: y(
559
564
  "w-10 h-10 rounded-lg text-sm font-medium transition-colors",
560
565
  "hover:bg-[#E8F4FD] focus:outline-none focus:bg-[#E8F4FD]",
561
- V ? "text-blackBG" : "text-grayBlue5 opacity-50",
566
+ M ? "text-blackBG" : "text-grayBlue5 opacity-50",
562
567
  be && "bg-[#16A34A] text-white hover:bg-[#16A34A] focus:bg-[#16A34A]"
563
568
  ),
564
569
  children: c
@@ -589,7 +594,7 @@ const pe = j(
589
594
  }, n) => {
590
595
  const N = Ce(null);
591
596
  re(n, () => N.current);
592
- const k = !!a || !!o, m = ve(
597
+ const k = !!a || !!o, m = Le(
593
598
  (b) => {
594
599
  if (b == null || b === "")
595
600
  return "";
@@ -602,16 +607,16 @@ const pe = j(
602
607
  type: "text",
603
608
  inputMode: "numeric",
604
609
  onChange: (b) => {
605
- const x = b.target, B = x.value, F = B.replace(/\D/g, ""), v = x.selectionStart || 0, _ = B.slice(0, v).replace(/\D/g, "").length, I = m(F);
606
- if (x.value = I, t) {
607
- const M = x.value;
608
- x.value = F, t(b), x.value = M;
610
+ const x = b.target, B = x.value, I = B.replace(/\D/g, ""), L = x.selectionStart || 0, _ = B.slice(0, L).replace(/\D/g, "").length, V = m(I);
611
+ if (x.value = V, t) {
612
+ const F = x.value;
613
+ x.value = I, t(b), x.value = F;
609
614
  }
610
615
  if (k) {
611
- let M = 0, W = 0;
612
- for (; W < _ && M < x.value.length; )
613
- /\d/.test(x.value[M]) && W++, M++;
614
- x.setSelectionRange(M, M);
616
+ let F = 0, W = 0;
617
+ for (; W < _ && F < x.value.length; )
618
+ /\d/.test(x.value[F]) && W++, F++;
619
+ x.setSelectionRange(F, F);
615
620
  }
616
621
  },
617
622
  className: y(
@@ -640,19 +645,19 @@ const pe = j(
640
645
  }
641
646
  );
642
647
  pe.displayName = "NumberField";
643
- const or = {
648
+ const pr = {
644
649
  96: { name: "Кыргызстан", short: "KG", mask: "+996", length: 9 }
645
- }, ar = (s) => {
650
+ }, mr = (s) => {
646
651
  const o = s.toUpperCase().split("").map((a) => 127397 + a.charCodeAt(0));
647
652
  return String.fromCodePoint(...o);
648
- }, J = () => Object.entries(or).map(([s, o]) => ({
653
+ }, J = () => Object.entries(pr).map(([s, o]) => ({
649
654
  id: s,
650
655
  name: o.name,
651
656
  short: o.short,
652
657
  mask: o.mask,
653
658
  dialCode: o.mask.replace("+", ""),
654
659
  length: o.length,
655
- flag: ar(o.short)
660
+ flag: mr(o.short)
656
661
  })), $ = (s) => J().find((a) => a.id === s), te = (s, o) => {
657
662
  const a = o.dialCode, i = o.length;
658
663
  let r = s;
@@ -662,7 +667,7 @@ const or = {
662
667
  return o.mask;
663
668
  let u = t;
664
669
  return t.length > 6 ? u = `${t.slice(0, 3)} ${t.slice(3, 6)} ${t.slice(6)}` : t.length > 3 && (u = `${t.slice(0, 3)} ${t.slice(3)}`), `${o.mask} ${u}`;
665
- }, nr = (s, o) => {
670
+ }, ur = (s, o) => {
666
671
  if (!s)
667
672
  return null;
668
673
  const a = s.replace(/\D/g, ""), i = J();
@@ -685,35 +690,35 @@ const or = {
685
690
  defaultCountry: t = "996",
686
691
  ...u
687
692
  }, w) => {
688
- const [D, n] = T(""), [N, k] = T(t), [m, C] = T(!1), [f, b] = T(""), x = i !== void 0, B = x ? i : D, { ref: F } = K(m, () => {
693
+ const [D, n] = T(""), [N, k] = T(t), [m, C] = T(!1), [f, b] = T(""), x = i !== void 0, B = x ? i : D, { ref: I } = K(m, () => {
689
694
  C(!1), b("");
690
- }), v = Z(() => J(), []), _ = $(N) || v[0], I = Z(() => {
695
+ }), L = Z(() => J(), []), _ = $(N) || L[0], V = Z(() => {
691
696
  if (!f)
692
- return v;
697
+ return L;
693
698
  const h = f.toLowerCase();
694
- return v.filter(
695
- (L) => L.name.toLowerCase().includes(h) || L.mask.toLowerCase().includes(h) || L.short.toLowerCase().includes(h)
699
+ return L.filter(
700
+ (v) => v.name.toLowerCase().includes(h) || v.mask.toLowerCase().includes(h) || v.short.toLowerCase().includes(h)
696
701
  );
697
- }, [v, f]), W = ((h) => {
702
+ }, [L, f]), W = ((h) => {
698
703
  if (!h)
699
704
  return "";
700
- const L = h.replace(/\D/g, "");
701
- let c = L;
702
- (L.startsWith(_.dialCode) || h.startsWith(_.mask)) && (c = L.slice(_.dialCode.length));
705
+ const v = h.replace(/\D/g, "");
706
+ let c = v;
707
+ (v.startsWith(_.dialCode) || h.startsWith(_.mask)) && (c = v.slice(_.dialCode.length));
703
708
  const d = c.slice(0, _.length);
704
709
  return d.length === 0 ? "" : d.length <= 3 ? d : d.length <= 6 ? `${d.slice(0, 3)} ${d.slice(3)}` : `${d.slice(0, 3)} ${d.slice(3, 6)} ${d.slice(6)}`;
705
710
  })(B), A = (h) => {
706
711
  k(h), C(!1), b("");
707
- const L = B.replace(/\D/g, ""), c = $(h);
712
+ const v = B.replace(/\D/g, ""), c = $(h);
708
713
  if (!c)
709
714
  return;
710
- let d = L;
711
- L.startsWith(_.dialCode) && (d = L.slice(_.dialCode.length));
715
+ let d = v;
716
+ v.startsWith(_.dialCode) && (d = v.slice(_.dialCode.length));
712
717
  const S = te(d, c);
713
718
  x || n(S), r == null || r(S);
714
719
  }, O = (h) => {
715
- const L = h.target.value, c = L.replace(/\D/g, ""), d = nr(
716
- L
720
+ const v = h.target.value, c = v.replace(/\D/g, ""), d = ur(
721
+ v
717
722
  );
718
723
  d && d.id !== N && k(d.id);
719
724
  const S = d || $(N) || _, l = te(c, S);
@@ -738,7 +743,7 @@ const or = {
738
743
  /* @__PURE__ */ p(
739
744
  "div",
740
745
  {
741
- ref: F,
746
+ ref: I,
742
747
  className: "relative",
743
748
  children: [
744
749
  /* @__PURE__ */ p(
@@ -797,7 +802,7 @@ const or = {
797
802
  onClick: (h) => h.stopPropagation()
798
803
  }
799
804
  ) }),
800
- /* @__PURE__ */ e("div", { className: "overflow-y-auto max-h-[340px]", children: I.length > 0 ? I.map((h) => /* @__PURE__ */ e(
805
+ /* @__PURE__ */ e("div", { className: "overflow-y-auto max-h-[340px]", children: V.length > 0 ? V.map((h) => /* @__PURE__ */ e(
801
806
  "button",
802
807
  {
803
808
  type: "button",
@@ -963,16 +968,16 @@ const he = j(
963
968
  setIsShow: f
964
969
  } = K(!1);
965
970
  re(k, () => m.current);
966
- const b = i.find((v) => v.value === t), x = () => {
971
+ const b = i.find((L) => L.value === t), x = () => {
967
972
  n || f(!C);
968
- }, B = (v) => {
973
+ }, B = (L) => {
969
974
  u && u({
970
975
  target: {
971
976
  name: D,
972
- value: v.value
977
+ value: L.value
973
978
  }
974
979
  }), f(!1);
975
- }, F = (v) => {
980
+ }, I = (L) => {
976
981
  w && w({
977
982
  target: {
978
983
  name: D,
@@ -985,7 +990,7 @@ const he = j(
985
990
  {
986
991
  className: y("w-full", s),
987
992
  ref: m,
988
- onBlur: F,
993
+ onBlur: I,
989
994
  ...N,
990
995
  children: [
991
996
  a && /* @__PURE__ */ e("label", { className: "mb-2 block text-sm font-medium text-blackBG", children: a }),
@@ -1038,21 +1043,21 @@ const he = j(
1038
1043
  "absolute left-0 z-[100] mt-2 w-full overflow-hidden rounded-2xl border-[1px] border-grayBlue bg-white shadow-xl",
1039
1044
  "transition-all duration-200 ease-in-out"
1040
1045
  ),
1041
- children: /* @__PURE__ */ e("div", { className: "max-h-[280px] overflow-y-auto py-2", children: i.length > 0 ? i.map((v) => /* @__PURE__ */ e(
1046
+ children: /* @__PURE__ */ e("div", { className: "max-h-[280px] overflow-y-auto py-2", children: i.length > 0 ? i.map((L) => /* @__PURE__ */ e(
1042
1047
  "button",
1043
1048
  {
1044
1049
  type: "button",
1045
- onClick: () => B(v),
1050
+ onClick: () => B(L),
1046
1051
  className: y(
1047
1052
  "flex w-full items-center px-5 py-3 text-left text-base transition-colors",
1048
1053
  "hover:bg-green-50 active:bg-green-100",
1049
- v.value === t && "bg-green-50 font-medium text-greenLight",
1054
+ L.value === t && "bg-green-50 font-medium text-greenLight",
1050
1055
  // Мобильные отступы чуть больше для удобства тапа
1051
1056
  "max-tablet:py-4"
1052
1057
  ),
1053
- children: v.label
1058
+ children: L.label
1054
1059
  },
1055
- v.value
1060
+ L.value
1056
1061
  )) : /* @__PURE__ */ e("div", { className: "px-5 py-3 text-sm text-gray2", children: "Нет данных" }) })
1057
1062
  }
1058
1063
  )
@@ -1064,10 +1069,10 @@ const he = j(
1064
1069
  }
1065
1070
  );
1066
1071
  he.displayName = "Select";
1067
- const sr = {
1072
+ const fr = {
1068
1073
  TitleBlock: Y,
1069
1074
  WarningCard: U
1070
- }, ir = [
1075
+ }, hr = [
1071
1076
  {
1072
1077
  label: "TitleBlock",
1073
1078
  value: "TitleBlock"
@@ -1076,7 +1081,7 @@ const sr = {
1076
1081
  label: "WarningCard",
1077
1082
  value: "WarningCard"
1078
1083
  }
1079
- ], lr = {
1084
+ ], gr = {
1080
1085
  text: ce,
1081
1086
  number: pe,
1082
1087
  phone: me,
@@ -1085,7 +1090,7 @@ const sr = {
1085
1090
  radio: ue,
1086
1091
  checkbox: le,
1087
1092
  file: tt
1088
- }, cr = (s, {
1093
+ }, br = (s, {
1089
1094
  register: o,
1090
1095
  errors: a,
1091
1096
  control: i
@@ -1094,7 +1099,7 @@ const sr = {
1094
1099
  return s.map((t, u) => {
1095
1100
  var D, n, N;
1096
1101
  if ((t == null ? void 0 : t.componentType) === "component") {
1097
- const k = sr[t == null ? void 0 : t.key];
1102
+ const k = fr[t == null ? void 0 : t.key];
1098
1103
  if (k)
1099
1104
  return /* @__PURE__ */ e(
1100
1105
  k,
@@ -1104,7 +1109,7 @@ const sr = {
1104
1109
  u
1105
1110
  );
1106
1111
  }
1107
- const w = lr[t == null ? void 0 : t.type];
1112
+ const w = gr[t == null ? void 0 : t.type];
1108
1113
  if (w) {
1109
1114
  const k = ["select", "radio", "checkbox", "file"].includes(
1110
1115
  t.type
@@ -1119,14 +1124,14 @@ const sr = {
1119
1124
  name: t.name,
1120
1125
  control: i,
1121
1126
  rules: { validate: t.validate },
1122
- render: ({ field: { onChange: b, value: x, name: B, ref: F } }) => /* @__PURE__ */ e(
1127
+ render: ({ field: { onChange: b, value: x, name: B, ref: I } }) => /* @__PURE__ */ e(
1123
1128
  w,
1124
1129
  {
1125
1130
  ...f,
1126
1131
  onChange: b,
1127
1132
  value: x,
1128
1133
  name: B,
1129
- ref: F,
1134
+ ref: I,
1130
1135
  error: C
1131
1136
  }
1132
1137
  )
@@ -1162,42 +1167,42 @@ const sr = {
1162
1167
  label: s,
1163
1168
  type: o,
1164
1169
  options: a
1165
- }), Ma = {
1170
+ }), Za = {
1166
1171
  title: "Оставьте заявку, чтобы подключить MKassa",
1167
1172
  subtitle: "с Вами свяжется наш специалист и поможет с подключением сервиса"
1168
- }, Va = {
1173
+ }, Ra = {
1169
1174
  title: "Форма заявки",
1170
1175
  description: "Форма заявки ",
1171
1176
  types: [q.form]
1172
1177
  // propsToEdit: propsToEdit,
1173
- }, dr = {
1178
+ }, xr = {
1174
1179
  title: "Оставьте заявку, чтобы подключить MKassa",
1175
1180
  description: "с Вами свяжется наш специалист и поможет с подключением сервиса",
1176
1181
  color: "#45464b"
1177
- }, pr = ee({
1182
+ }, yr = ee({
1178
1183
  label: "Тип поля",
1179
1184
  type: "componentType",
1180
- options: Xt
1181
- }), mr = ee({
1185
+ options: Qt
1186
+ }), wr = ee({
1182
1187
  label: "Компонент",
1183
1188
  type: "componentType",
1184
- options: ir
1185
- }), ur = ee({
1189
+ options: hr
1190
+ }), kr = ee({
1186
1191
  label: "Тип поля",
1187
1192
  type: "fieldType",
1188
- options: zt
1189
- }), fr = Zt({
1193
+ options: Jt
1194
+ }), Cr = Kt({
1190
1195
  label: "Имя поля",
1191
1196
  type: "name"
1192
- }), hr = {
1197
+ }), Lr = {
1193
1198
  type: "fields",
1194
1199
  dataType: "array",
1195
1200
  label: "Поля для формы",
1196
1201
  data: {
1197
- componentType: pr,
1198
- type: ur,
1199
- key: mr,
1200
- name: fr,
1202
+ componentType: yr,
1203
+ type: kr,
1204
+ key: wr,
1205
+ name: Cr,
1201
1206
  props: {
1202
1207
  label: "Свойства компонента",
1203
1208
  dataType: z.object,
@@ -1221,12 +1226,12 @@ const sr = {
1221
1226
  }
1222
1227
  }
1223
1228
  }
1224
- }, gr = [
1229
+ }, vr = [
1225
1230
  "title",
1226
1231
  "subtitle",
1227
1232
  "color",
1228
- hr,
1229
- Rt,
1233
+ Lr,
1234
+ Ut,
1230
1235
  "file",
1231
1236
  "object_data"
1232
1237
  ], ge = ({
@@ -1243,16 +1248,16 @@ const sr = {
1243
1248
  var h;
1244
1249
  const { t: n } = ae(), [N, k] = T(!1), [m, C] = T(!1), [f, b] = T(null), x = et(960), {
1245
1250
  register: B,
1246
- handleSubmit: F,
1247
- watch: v,
1251
+ handleSubmit: I,
1252
+ watch: L,
1248
1253
  reset: _,
1249
- control: I,
1250
- formState: { errors: M }
1254
+ control: V,
1255
+ formState: { errors: F }
1251
1256
  } = Je({
1252
1257
  defaultValues: {
1253
1258
  agreement: !1
1254
1259
  }
1255
- }), W = v("agreement"), A = async (L) => {
1260
+ }), W = L("agreement"), A = async (v) => {
1256
1261
  if (!(u != null && u.api_url)) {
1257
1262
  console.warn("API URL is not defined in requestForm props");
1258
1263
  return;
@@ -1260,7 +1265,7 @@ const sr = {
1260
1265
  C(!0), b(null);
1261
1266
  try {
1262
1267
  const c = new FormData();
1263
- Object.entries(L).forEach(([l, g]) => {
1268
+ Object.entries(v).forEach(([l, g]) => {
1264
1269
  g != null && (Array.isArray(g) ? g.forEach((H) => {
1265
1270
  c.append(l, H);
1266
1271
  }) : c.append(l, g));
@@ -1291,15 +1296,15 @@ const sr = {
1291
1296
  } finally {
1292
1297
  C(!1);
1293
1298
  }
1294
- }, O = cr(t || [], {
1299
+ }, O = br(t || [], {
1295
1300
  register: B,
1296
- errors: M,
1297
- control: I
1301
+ errors: F,
1302
+ control: V
1298
1303
  });
1299
1304
  return /* @__PURE__ */ e(oe, { children: /* @__PURE__ */ e(
1300
1305
  "form",
1301
1306
  {
1302
- onSubmit: F(A),
1307
+ onSubmit: I(A),
1303
1308
  id: "application_form",
1304
1309
  className: "w-full",
1305
1310
  children: /* @__PURE__ */ p(
@@ -1371,7 +1376,7 @@ const sr = {
1371
1376
  "Необходимо согласие на обработку персональных данных"
1372
1377
  )
1373
1378
  }),
1374
- error: (h = M.agreement) == null ? void 0 : h.message,
1379
+ error: (h = F.agreement) == null ? void 0 : h.message,
1375
1380
  label: /* @__PURE__ */ p(R, { children: [
1376
1381
  n("form.i_agree", "Я соглашаюсь с"),
1377
1382
  " ",
@@ -1380,8 +1385,8 @@ const sr = {
1380
1385
  {
1381
1386
  type: "button",
1382
1387
  className: "text-greenLight hover:text-green underline transition-colors duration-200 bg-transparent border-0 p-0 cursor-pointer",
1383
- onClick: (L) => {
1384
- L.preventDefault(), window.open(w || "", "_blank");
1388
+ onClick: (v) => {
1389
+ v.preventDefault(), window.open(w || "", "_blank");
1385
1390
  },
1386
1391
  children: n(
1387
1392
  "form.agreement_link",
@@ -1412,17 +1417,17 @@ const sr = {
1412
1417
  }
1413
1418
  ) });
1414
1419
  };
1415
- ge.propsToEdit = gr;
1416
- const Ia = {
1420
+ ge.propsToEdit = vr;
1421
+ const Xa = {
1417
1422
  MainBanner: { key: "MainBanner", component: je },
1418
1423
  Banner: { key: "Banner", component: we },
1419
1424
  CardImageList: { key: "CardImageList", component: Ee },
1420
1425
  Stepper: { key: "Stepper", component: Be },
1421
1426
  Segments: { key: "Segments", component: Se },
1422
- VideoFull: { key: "VideoFull", component: Fe },
1423
- VideoList: { key: "VideoList", component: Me },
1424
- VideoListMini: { key: "VideoListMini", component: Ve },
1425
- ContentCardList: { key: "ContentCardList", component: Ie },
1427
+ VideoFull: { key: "VideoFull", component: Ie },
1428
+ VideoList: { key: "VideoList", component: Fe },
1429
+ VideoListMini: { key: "VideoListMini", component: Me },
1430
+ ContentCardList: { key: "ContentCardList", component: Ve },
1426
1431
  CardIconList: { key: "CardIconList", component: Te },
1427
1432
  MultiCards: { key: "MultiCards", component: He },
1428
1433
  Partners: { key: "Partners", component: Pe },
@@ -1460,11 +1465,15 @@ const Ia = {
1460
1465
  key: "FormDefault",
1461
1466
  component: ge
1462
1467
  },
1463
- Header: { key: "Header", component: qt },
1464
- Footer: { key: "Footer", component: Yt },
1468
+ Header: { key: "Header", component: rr },
1469
+ Footer: { key: "Footer", component: or },
1465
1470
  TitleBlock: { key: "TitleBlock", component: Y },
1466
- ActionCardList: { key: "ActionCardList", component: ie }
1467
- }, Ta = {
1471
+ ActionCardList: { key: "ActionCardList", component: ie },
1472
+ ButtonsList: { key: "ButtonsList", component: qt },
1473
+ HeroIconsBanner: { key: "HeroIconsBanner", component: Yt },
1474
+ IconList: { key: "IconList", component: er },
1475
+ SearchBlock: { key: "SearchBlock", component: tr }
1476
+ }, za = {
1468
1477
  MainBanner: dt.component_props,
1469
1478
  Banner: pt.component_props,
1470
1479
  CardImageList: mt.component_props,
@@ -1478,17 +1487,17 @@ const Ia = {
1478
1487
  MultiCards: wt.component_props,
1479
1488
  Partners: kt.component_props,
1480
1489
  PartnersColors: Ct.component_props,
1481
- WarningCard: vt.component_props,
1482
- Faq: Lt.component_props,
1490
+ WarningCard: Lt.component_props,
1491
+ Faq: vt.component_props,
1483
1492
  DownloadFileBanner: Dt.component_props,
1484
1493
  DownloadFileHalf: Nt.component_props,
1485
1494
  DownloadFileFull: _t.component_props,
1486
1495
  DownloadFileMini: Bt.component_props,
1487
1496
  InstructionList: St.component_props,
1488
- PreviewList: Ft.component_props,
1489
- SwiperList: Mt.component_props,
1490
- AnimatedSwiper: Vt.component_props,
1491
- InfoBannerList: It.component_props,
1497
+ PreviewList: It.component_props,
1498
+ SwiperList: Ft.component_props,
1499
+ AnimatedSwiper: Mt.component_props,
1500
+ InfoBannerList: Vt.component_props,
1492
1501
  TasksBannerList: Tt.component_props,
1493
1502
  VideoMainBanner: Ht.component_props,
1494
1503
  EmptyBox: Pt.component_props,
@@ -1498,37 +1507,41 @@ const Ia = {
1498
1507
  StandartTable: At.component_props,
1499
1508
  IntroBanner: Ot.component_props,
1500
1509
  DownloadFileBright: Gt.component_props,
1501
- FormDefault: dr,
1510
+ FormDefault: xr,
1502
1511
  TitleBlock: $t.component_props,
1503
- ActionCardList: {}
1504
- }, Ha = {
1512
+ ActionCardList: {},
1513
+ ButtonsList: Zt.component_props,
1514
+ HeroIconsBanner: Rt.component_props,
1515
+ IconList: Xt.component_props,
1516
+ SearchBlock: zt.component_props
1517
+ }, qa = {
1505
1518
  title: "Список карточек действий",
1506
1519
  description: "Компонент для отображения списка карточек действий с иконками и ссылками. Используется для представления различных действий или ссылок в виде сетки карточек.",
1507
1520
  types: [q.lists],
1508
1521
  propsToEdit: se
1509
- }, Pa = {
1522
+ }, Ya = {
1510
1523
  title: "Предупреждающая карточка",
1511
1524
  description: "Компонент для отображения предупреждающей информации в виде карточки с иконкой, заголовком и описанием. Используется для привлечения внимания к важной информации или предупреждениям.",
1512
1525
  types: [q.cards],
1513
1526
  propsToEdit: ne
1514
1527
  };
1515
1528
  export {
1516
- Ta as A,
1529
+ za as A,
1517
1530
  ge as F,
1518
1531
  U as W,
1519
1532
  ie as a,
1520
- Ia as b,
1521
- Ha as c,
1522
- Ut as d,
1533
+ Xa as b,
1534
+ qa as c,
1535
+ nr as d,
1523
1536
  se as e,
1524
- Va as f,
1525
- sr as g,
1526
- ir as h,
1527
- Ma as i,
1528
- dr as j,
1529
- hr as k,
1530
- gr as l,
1537
+ Ra as f,
1538
+ fr as g,
1539
+ hr as h,
1540
+ Za as i,
1541
+ xr as j,
1542
+ Lr as k,
1543
+ vr as l,
1531
1544
  ne as p,
1532
- cr as r,
1533
- Pa as w
1545
+ br as r,
1546
+ Ya as w
1534
1547
  };