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