md-components-mdigial-azamat 0.0.88 → 0.0.91

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.
@@ -1,55 +1,55 @@
1
1
  import { C as U } from "./index-0a5f313c.js";
2
2
  import { jsx as t, jsxs as i, Fragment as K } from "react/jsx-runtime";
3
- import { warningCardVariant as ue, WarningCardVariant as O, WarningCardVariantKey as fe } from "./Cards/WarningCard/model.js";
3
+ import { warningCardVariant as fe, WarningCardVariant as O, WarningCardVariantKey as he } from "./Cards/WarningCard/model.js";
4
4
  import "./ConfigProvider/index.js";
5
- import { Banner as he } from "./Banner/Banner.js";
5
+ import { Banner as ge } from "./Banner/Banner.js";
6
6
  import "./BannerAndText/index.js";
7
- import { forwardRef as P, useState as I, useMemo as R, useEffect as ge, useRef as xe, useImperativeHandle as J, useCallback as be } from "react";
7
+ import { forwardRef as P, useState as I, useMemo as R, useEffect as xe, useRef as be, useImperativeHandle as J, useCallback as ye } from "react";
8
8
  import { c as x } from "./cn-6a4bf187.js";
9
9
  import "./Faq/components/Collapse/Collapse.js";
10
10
  import "./Header/components/HeaderTabsMobile/HeaderTabsMobile.js";
11
- import { HtmlContent as ye } from "./HtmlContent/HtmlContent.js";
11
+ import { HtmlContent as we } from "./HtmlContent/HtmlContent.js";
12
12
  import "./Header/components/TabsOutlined/TabsOutlined.js";
13
13
  import { B as E } from "./index-875e92ce.js";
14
- import { B as we, a as ve, b as ke } from "./const-53dff524.js";
15
- import { Stepper as Ce } from "./Stepper/Stepper.js";
16
- import { Segments as De } from "./Segments/Segments.js";
17
- import { VideoFull as Ne } from "./Video/VideoFull/VideoFull.js";
18
- import { VideoList as Le } from "./Video/VideoList/VideoList.js";
19
- import { VideoListMini as _e } from "./Video/VideoListMini/VideoListMini.js";
20
- import { ContentCardList as Be } from "./ContentCardList/ContentCardList.js";
21
- import { CardIconList as Se } from "./CardIconList/CardIconList.js";
22
- import { MultiCards as Fe } from "./MultiCards/index.js";
23
- import { Partners as Me } from "./Partners/Partners.js";
24
- import { CardImageList as Ve } from "./CardImageList/CardImageList.js";
25
- import { MainBanner as Ie } from "./MainBanner/MainBanner.js";
26
- import { Faq as He } from "./Faq/Faq.js";
27
- import { InstructionList as Te } from "./InstructionList/InstructionList.js";
14
+ import { B as ke, a as ve, b as Ce } from "./const-53dff524.js";
15
+ import { Stepper as De } from "./Stepper/Stepper.js";
16
+ import { Segments as Ne } from "./Segments/Segments.js";
17
+ import { VideoFull as Le } from "./Video/VideoFull/VideoFull.js";
18
+ import { VideoList as _e } from "./Video/VideoList/VideoList.js";
19
+ import { VideoListMini as Be } from "./Video/VideoListMini/VideoListMini.js";
20
+ import { ContentCardList as Se } from "./ContentCardList/ContentCardList.js";
21
+ import { CardIconList as Fe } from "./CardIconList/CardIconList.js";
22
+ import { MultiCards as Me } from "./MultiCards/index.js";
23
+ import { Partners as Ve } from "./Partners/Partners.js";
24
+ import { CardImageList as Ie } from "./CardImageList/CardImageList.js";
25
+ import { MainBanner as He } from "./MainBanner/MainBanner.js";
26
+ import { Faq as Te } from "./Faq/Faq.js";
27
+ import { InstructionList as Pe } from "./InstructionList/InstructionList.js";
28
28
  import "./HeroPossibilityBanner/index.js";
29
- import { PartnersColors as Pe } from "./PartnersColors/PartnersColors.js";
30
- import { PreviewList as Ge } from "./PreviewList/PreviewList.js";
29
+ import { PartnersColors as Ge } from "./PartnersColors/PartnersColors.js";
30
+ import { PreviewList as We } from "./PreviewList/PreviewList.js";
31
31
  import "./Cards/CardImage/CardImage.js";
32
32
  import "./Cards/ContentCard/ContentCard.js";
33
33
  import "./Cards/ColoredCard/index.js";
34
34
  import "./Cards/FeaturesCard/index.js";
35
- import { DownloadFileBanner as We } from "./DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js";
36
- import { DownloadFileFull as je } from "./DownloadFile/components/DownloadFileFull/DownloadFileFull.js";
37
- import { DownloadFileHalf as Oe } from "./DownloadFile/components/DownloadFileHalf/DownloadFileHalf.js";
38
- import { DownloadFileMini as Ze } from "./DownloadFile/components/DownloadFileMini/DownloadFileMini.js";
35
+ import { DownloadFileBanner as je } from "./DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js";
36
+ import { DownloadFileFull as Oe } from "./DownloadFile/components/DownloadFileFull/DownloadFileFull.js";
37
+ import { DownloadFileHalf as Ze } from "./DownloadFile/components/DownloadFileHalf/DownloadFileHalf.js";
38
+ import { DownloadFileMini as Re } from "./DownloadFile/components/DownloadFileMini/DownloadFileMini.js";
39
39
  import "./InstructionList/components/InstructionCard/InstructionCard.js";
40
40
  import "./PreviewList/components/PreviewCard/PreviewCard.js";
41
- import Re from "./AnimatedSwiper/index.js";
41
+ import $e from "./AnimatedSwiper/index.js";
42
42
  import "./CardImageSecondary/CardImageSecondary.js";
43
- import { CardImageSecondaryList as $e } from "./CardImageSecondaryList/CardImageSecondaryList.js";
44
- import { CardInfoTable as Ae } from "./CardInfoTable/index.js";
45
- import { DownloadFileBright as Ee } from "./DownloadFile/components/DownloadFileBright/index.js";
43
+ import { CardImageSecondaryList as Ae } from "./CardImageSecondaryList/CardImageSecondaryList.js";
44
+ import { CardInfoTable as Ee } from "./CardInfoTable/index.js";
45
+ import { DownloadFileBright as Xe } from "./DownloadFile/components/DownloadFileBright/index.js";
46
46
  import "./DownloadFile/components/FileBannerSecondary/FileBannerSecondary.js";
47
- import { C as Xe, u as qe } from "./index-a0ed2e4a.js";
47
+ import { C as qe, u as ze } from "./index-a0ed2e4a.js";
48
48
  import { C as ee } from "./ComponentContainer-05e27e82.js";
49
- import { u as ze } from "./useScreenSize-c1b64c02.js";
50
- import Ye from "./FileLoader/index.js";
49
+ import { u as Ye } from "./useScreenSize-c1b64c02.js";
50
+ import Ke from "./FileLoader/index.js";
51
51
  import { u as X } from "./useClickOutside-197b0df2.js";
52
- import { TitleBlock as Ke } from "./TitleBlock/TitleBlock.js";
52
+ import { TitleBlock as te } from "./TitleBlock/TitleBlock.js";
53
53
  import "./InfoBanner/index.js";
54
54
  import { InfoBannerList as Qe } from "./InfoBannerList/InfoBannerList.js";
55
55
  import { IntroBanner as Ue } from "./IntroBanner/IntroBanner.js";
@@ -60,8 +60,8 @@ import { SwiperList as rt } from "./SwiperList/SwiperList.js";
60
60
  import "./TasksBanner/TasksBanner.js";
61
61
  import { TasksBannerList as ot } from "./TasksBannerList/TasksBannerList.js";
62
62
  import { VideoMainBanner as at } from "./VideoMainBanner/VideoMainBanner.js";
63
- import { M as nt, B as st, C as it, S as lt, b as ct, V as dt, c as pt, d as mt, e as ut, f as ft, g as ht, P as gt, h as xt, W as bt, F as yt, k as wt, D as vt, l as kt, m as Ct, I as Dt, o as Nt, p as Lt, A as _t, q as Bt, T as St, r as Ft, E as Mt, s as Vt, t as It, u as Ht, v as Tt, w as Pt, x as Gt } from "./data.mock-9071e4ea.js";
64
- import { DataTypesEnum as Wt, FieldTypes as j } from "./Types/FiledTypes.js";
63
+ import { M as nt, B as st, C as it, S as lt, b as ct, V as pt, c as dt, d as mt, e as ut, f as ft, g as ht, P as gt, h as xt, W as bt, F as yt, k as wt, D as kt, l as vt, m as Ct, I as Dt, o as Nt, p as Lt, A as _t, q as Bt, T as St, r as Ft, E as Mt, s as Vt, t as It, u as Ht, v as Tt, w as Pt, x as Gt, y as Wt } from "./data.mock-f00bb32c.js";
64
+ import { DataTypesEnum as jt, FieldTypes as j } from "./Types/FiledTypes.js";
65
65
  import "react-dom";
66
66
  import "./AnimatedSwiper/info.js";
67
67
  import "./Banner/info.js";
@@ -107,26 +107,26 @@ import "./Video/VideoList/info.js";
107
107
  import "./Video/VideoListMini/info.js";
108
108
  import "./VideoMainBanner/info.js";
109
109
  import "./Actions/types.js";
110
- import { componentTypes as jt } from "./Forms/FormDefault/componentTypes.js";
111
- import { Header as Ot } from "./Header/Header.js";
112
- import { Footer as Zt } from "./Footer/Footer.js";
113
- import { I as Rt } from "./Icon-70ea6cb8.js";
114
- const te = [
110
+ import { componentTypes as Ot } from "./Forms/FormDefault/componentTypes.js";
111
+ import { Header as Zt } from "./Header/Header.js";
112
+ import { Footer as Rt } from "./Footer/Footer.js";
113
+ import { I as $t } from "./Icon-70ea6cb8.js";
114
+ const re = [
115
115
  "title",
116
116
  "title_color",
117
117
  "description",
118
118
  "description_color",
119
119
  "html_content",
120
- we,
121
- ue
120
+ ke,
121
+ fe
122
122
  ], q = ({
123
123
  title: a,
124
124
  description: r,
125
125
  button: o,
126
126
  html_content: n,
127
- variant: e = fe.Orange
127
+ variant: e = he.Orange
128
128
  }) => {
129
- var s, m, v, y;
129
+ var s, m, k, y;
130
130
  return /* @__PURE__ */ t(ee, { children: /* @__PURE__ */ t(
131
131
  "div",
132
132
  {
@@ -139,7 +139,7 @@ const te = [
139
139
  className: "flex gap-[16px] items-center max-tablet:flex-col max-tablet:items-start max-tablet:gap-[12px]",
140
140
  children: [
141
141
  /* @__PURE__ */ t(
142
- Rt,
142
+ $t,
143
143
  {
144
144
  name: (m = O[e]) == null ? void 0 : m.icon,
145
145
  size: 40
@@ -150,7 +150,7 @@ const te = [
150
150
  "p",
151
151
  {
152
152
  className: x("text-[24px] leading-8 font-bold"),
153
- style: { color: (v = O[e]) == null ? void 0 : v.textColor },
153
+ style: { color: (k = O[e]) == null ? void 0 : k.textColor },
154
154
  children: a
155
155
  }
156
156
  ),
@@ -162,7 +162,7 @@ const te = [
162
162
  children: r
163
163
  }
164
164
  ),
165
- n && /* @__PURE__ */ t(ye, { data: n })
165
+ n && /* @__PURE__ */ t(we, { data: n })
166
166
  ] })
167
167
  ]
168
168
  }
@@ -172,8 +172,8 @@ const te = [
172
172
  }
173
173
  ) });
174
174
  };
175
- q.propsToEdit = te;
176
- const re = P(
175
+ q.propsToEdit = re;
176
+ const oe = P(
177
177
  ({
178
178
  label: a,
179
179
  options: r,
@@ -182,17 +182,17 @@ const re = P(
182
182
  error: e,
183
183
  className: s,
184
184
  direction: m = "column"
185
- }, v) => {
185
+ }, k) => {
186
186
  const y = (l) => {
187
187
  if (!n)
188
188
  return;
189
- const N = o.includes(l) ? o.filter((k) => k !== l) : [...o, l];
189
+ const N = o.includes(l) ? o.filter((v) => v !== l) : [...o, l];
190
190
  n(N);
191
191
  };
192
192
  return /* @__PURE__ */ i(
193
193
  "div",
194
194
  {
195
- ref: v,
195
+ ref: k,
196
196
  className: x("flex flex-col gap-2", s),
197
197
  children: [
198
198
  a && /* @__PURE__ */ t("label", { className: "text-sm font-medium text-blackBG mb-1", children: a }),
@@ -221,7 +221,7 @@ const re = P(
221
221
  );
222
222
  }
223
223
  );
224
- re.displayName = "CheckboxGroup";
224
+ oe.displayName = "CheckboxGroup";
225
225
  const z = P(
226
226
  ({ className: a, label: r, error: o, ...n }, e) => /* @__PURE__ */ i("div", { className: "w-full", children: [
227
227
  /* @__PURE__ */ i("label", { className: "flex items-start gap-3 cursor-pointer group", children: [
@@ -271,7 +271,7 @@ const z = P(
271
271
  ] })
272
272
  );
273
273
  z.displayName = "Checkbox";
274
- const oe = P(
274
+ const ae = P(
275
275
  ({ className: a, type: r, error: o, label: n, ...e }, s) => /* @__PURE__ */ i("div", { className: "w-full", children: [
276
276
  n && /* @__PURE__ */ t("label", { className: "block text-sm font-medium text-blackBG mb-2", children: n }),
277
277
  /* @__PURE__ */ t(
@@ -295,8 +295,8 @@ const oe = P(
295
295
  o && /* @__PURE__ */ t("p", { className: "mt-2 text-sm text-red-500", children: o })
296
296
  ] })
297
297
  );
298
- oe.displayName = "Input";
299
- const $t = () => /* @__PURE__ */ t(
298
+ ae.displayName = "Input";
299
+ const At = () => /* @__PURE__ */ t(
300
300
  "svg",
301
301
  {
302
302
  width: "20",
@@ -312,12 +312,12 @@ const $t = () => /* @__PURE__ */ t(
312
312
  }
313
313
  )
314
314
  }
315
- ), At = (a) => {
315
+ ), Et = (a) => {
316
316
  if (!a)
317
317
  return "";
318
318
  const r = String(a.getDate()).padStart(2, "0"), o = String(a.getMonth() + 1).padStart(2, "0"), n = a.getFullYear();
319
319
  return `${r}.${o}.${n}`;
320
- }, Et = (a) => {
320
+ }, Xt = (a) => {
321
321
  if (!a)
322
322
  return null;
323
323
  const r = a.split(".");
@@ -330,7 +330,7 @@ const $t = () => /* @__PURE__ */ t(
330
330
  }
331
331
  }
332
332
  return null;
333
- }, Xt = (a, r) => new Date(r, a, 1).toLocaleDateString("ru-RU", { month: "long", year: "numeric" }), qt = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], ae = P(
333
+ }, qt = (a, r) => new Date(r, a, 1).toLocaleDateString("ru-RU", { month: "long", year: "numeric" }), zt = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], ne = P(
334
334
  ({
335
335
  className: a,
336
336
  error: r,
@@ -339,16 +339,16 @@ const $t = () => /* @__PURE__ */ t(
339
339
  onChange: e,
340
340
  placeholder: s = "Дата обращения в Контакт-центр",
341
341
  ...m
342
- }, v) => {
343
- const [y, l] = I(""), [N, k] = I(!1), [c, C] = I((/* @__PURE__ */ new Date()).getMonth()), [h, b] = I((/* @__PURE__ */ new Date()).getFullYear()), [u, F] = I(null), M = n !== void 0, w = M ? n : y, { ref: L } = X(N, () => {
344
- k(!1);
345
- }), B = R(() => Et(w), [w]);
346
- ge(() => {
342
+ }, k) => {
343
+ const [y, l] = I(""), [N, v] = I(!1), [c, C] = I((/* @__PURE__ */ new Date()).getMonth()), [h, b] = I((/* @__PURE__ */ new Date()).getFullYear()), [u, F] = I(null), M = n !== void 0, w = M ? n : y, { ref: L } = X(N, () => {
344
+ v(!1);
345
+ }), B = R(() => Xt(w), [w]);
346
+ xe(() => {
347
347
  B && (F(B), C(B.getMonth()), b(B.getFullYear()));
348
348
  }, [B]);
349
349
  const H = R(() => {
350
- const f = new Date(h, c, 1), V = new Date(h, c + 1, 0).getDate(), p = f.getDay(), D = [], G = new Date(h, c, 0).getDate();
351
- for (let S = p - 1; S >= 0; S--)
350
+ const f = new Date(h, c, 1), V = new Date(h, c + 1, 0).getDate(), d = f.getDay(), D = [], G = new Date(h, c, 0).getDate();
351
+ for (let S = d - 1; S >= 0; S--)
352
352
  D.push(G - S);
353
353
  for (let S = 1; S <= V; S++)
354
354
  D.push(S);
@@ -357,24 +357,24 @@ const $t = () => /* @__PURE__ */ t(
357
357
  D.push(S);
358
358
  return D;
359
359
  }, [c, h]), W = (f) => {
360
- const d = f.target.value;
361
- M || l(d), e == null || e(d);
362
- }, $ = (f, d, V) => {
360
+ const p = f.target.value;
361
+ M || l(p), e == null || e(p);
362
+ }, $ = (f, p, V) => {
363
363
  if (f === null)
364
364
  return;
365
- let p = c, D = h;
366
- d ? (p = p - 1, p < 0 && (p = 11, D = D - 1)) : V && (p = p + 1, p > 11 && (p = 0, D = D + 1));
367
- const G = new Date(D, p, f), T = At(G);
368
- F(G), C(p), b(D), M || l(T), e == null || e(T), k(!1);
365
+ let d = c, D = h;
366
+ p ? (d = d - 1, d < 0 && (d = 11, D = D - 1)) : V && (d = d + 1, d > 11 && (d = 0, D = D + 1));
367
+ const G = new Date(D, d, f), T = Et(G);
368
+ F(G), C(d), b(D), M || l(T), e == null || e(T), v(!1);
369
369
  }, A = () => {
370
370
  c === 0 ? (C(11), b(h - 1)) : C(c - 1);
371
371
  }, g = () => {
372
372
  c === 11 ? (C(0), b(h + 1)) : C(c + 1);
373
- }, _ = (f, d, V) => {
373
+ }, _ = (f, p, V) => {
374
374
  if (!u || f === null)
375
375
  return !1;
376
- let p = c, D = h;
377
- return d ? (p = p - 1, p < 0 && (p = 11, D = D - 1)) : V && (p = p + 1, p > 11 && (p = 0, D = D + 1)), u.getDate() === f && u.getMonth() === p && u.getFullYear() === D;
376
+ let d = c, D = h;
377
+ return p ? (d = d - 1, d < 0 && (d = 11, D = D - 1)) : V && (d = d + 1, d > 11 && (d = 0, D = D + 1)), u.getDate() === f && u.getMonth() === d && u.getFullYear() === D;
378
378
  };
379
379
  return /* @__PURE__ */ i("div", { className: "w-full", children: [
380
380
  o && /* @__PURE__ */ t("label", { className: "block text-sm font-medium text-blackBG mb-2", children: o }),
@@ -395,10 +395,10 @@ const $t = () => /* @__PURE__ */ t(
395
395
  "button",
396
396
  {
397
397
  type: "button",
398
- onClick: () => k(!N),
398
+ onClick: () => v(!N),
399
399
  className: "absolute left-4 flex items-center justify-center cursor-pointer",
400
400
  tabIndex: -1,
401
- children: /* @__PURE__ */ t($t, {})
401
+ children: /* @__PURE__ */ t(At, {})
402
402
  }
403
403
  ),
404
404
  /* @__PURE__ */ t(
@@ -412,11 +412,11 @@ const $t = () => /* @__PURE__ */ t(
412
412
  "bg-transparent border-none outline-none",
413
413
  "disabled:cursor-not-allowed disabled:opacity-50"
414
414
  ),
415
- ref: v,
415
+ ref: k,
416
416
  value: w,
417
417
  onChange: W,
418
418
  placeholder: s,
419
- onClick: () => k(!0),
419
+ onClick: () => v(!0),
420
420
  readOnly: !0,
421
421
  ...m
422
422
  }
@@ -459,7 +459,7 @@ const $t = () => /* @__PURE__ */ t(
459
459
  )
460
460
  }
461
461
  ),
462
- /* @__PURE__ */ t("h3", { className: "text-base font-semibold text-blackBG", children: Xt(c, h) }),
462
+ /* @__PURE__ */ t("h3", { className: "text-base font-semibold text-blackBG", children: qt(c, h) }),
463
463
  /* @__PURE__ */ t(
464
464
  "button",
465
465
  {
@@ -489,7 +489,7 @@ const $t = () => /* @__PURE__ */ t(
489
489
  }
490
490
  )
491
491
  ] }),
492
- /* @__PURE__ */ t("div", { className: "grid grid-cols-7 gap-1 mb-2", children: qt.map((f) => /* @__PURE__ */ t(
492
+ /* @__PURE__ */ t("div", { className: "grid grid-cols-7 gap-1 mb-2", children: zt.map((f) => /* @__PURE__ */ t(
493
493
  "div",
494
494
  {
495
495
  className: "text-center text-xs font-medium text-grayBlue5 py-2",
@@ -497,12 +497,12 @@ const $t = () => /* @__PURE__ */ t(
497
497
  },
498
498
  f
499
499
  )) }),
500
- /* @__PURE__ */ t("div", { className: "grid grid-cols-7 gap-1", children: H.map((f, d) => {
501
- const p = new Date(h, c, 1).getDay(), D = new Date(
500
+ /* @__PURE__ */ t("div", { className: "grid grid-cols-7 gap-1", children: H.map((f, p) => {
501
+ const d = new Date(h, c, 1).getDay(), D = new Date(
502
502
  h,
503
503
  c + 1,
504
504
  0
505
- ).getDate(), G = d < p, T = d >= p + D, S = !G && !T, me = _(
505
+ ).getDate(), G = p < d, T = p >= d + D, S = !G && !T, ue = _(
506
506
  f,
507
507
  G,
508
508
  T
@@ -517,11 +517,11 @@ const $t = () => /* @__PURE__ */ t(
517
517
  "w-10 h-10 rounded-lg text-sm font-medium transition-colors",
518
518
  "hover:bg-[#E8F4FD] focus:outline-none focus:bg-[#E8F4FD]",
519
519
  S ? "text-blackBG" : "text-grayBlue5 opacity-50",
520
- me && "bg-[#16A34A] text-white hover:bg-[#16A34A] focus:bg-[#16A34A]"
520
+ ue && "bg-[#16A34A] text-white hover:bg-[#16A34A] focus:bg-[#16A34A]"
521
521
  ),
522
522
  children: f
523
523
  },
524
- d
524
+ p
525
525
  );
526
526
  }) })
527
527
  ]
@@ -532,8 +532,8 @@ const $t = () => /* @__PURE__ */ t(
532
532
  ] });
533
533
  }
534
534
  );
535
- ae.displayName = "DateInput";
536
- const ne = P(
535
+ ne.displayName = "DateInput";
536
+ const se = P(
537
537
  ({
538
538
  className: a,
539
539
  isFormatted: r,
@@ -542,19 +542,19 @@ const ne = P(
542
542
  label: e,
543
543
  onChange: s,
544
544
  value: m,
545
- defaultValue: v,
545
+ defaultValue: k,
546
546
  ...y
547
547
  }, l) => {
548
- const N = xe(null);
548
+ const N = be(null);
549
549
  J(l, () => N.current);
550
- const k = !!o || !!r, c = be(
550
+ const v = !!o || !!r, c = ye(
551
551
  (b) => {
552
552
  if (b == null || b === "")
553
553
  return "";
554
554
  const u = Array.isArray(b) ? b.join("").replace(/\D/g, "") : b.toString().replace(/\D/g, "");
555
- return k ? u.replace(/\B(?=(\d{3})+(?!\d))/g, " ") : u;
555
+ return v ? u.replace(/\B(?=(\d{3})+(?!\d))/g, " ") : u;
556
556
  },
557
- [k]
557
+ [v]
558
558
  ), h = {
559
559
  ...y,
560
560
  type: "text",
@@ -565,7 +565,7 @@ const ne = P(
565
565
  const H = u.value;
566
566
  u.value = M, s(b), u.value = H;
567
567
  }
568
- if (k) {
568
+ if (v) {
569
569
  let H = 0, W = 0;
570
570
  for (; W < L && H < u.value.length; )
571
571
  /\d/.test(u.value[H]) && W++, H++;
@@ -584,7 +584,7 @@ const ne = P(
584
584
  a
585
585
  )
586
586
  };
587
- return m !== void 0 ? h.value = c(m) : v !== void 0 && (h.defaultValue = c(v)), /* @__PURE__ */ i("div", { className: "w-full", children: [
587
+ return m !== void 0 ? h.value = c(m) : k !== void 0 && (h.defaultValue = c(k)), /* @__PURE__ */ i("div", { className: "w-full", children: [
588
588
  e && /* @__PURE__ */ t("label", { className: "mb-2 block text-sm font-medium text-blackBG", children: e }),
589
589
  /* @__PURE__ */ t("div", { className: "group relative", children: /* @__PURE__ */ t(
590
590
  "input",
@@ -597,20 +597,20 @@ const ne = P(
597
597
  ] });
598
598
  }
599
599
  );
600
- ne.displayName = "NumberField";
601
- const zt = {
600
+ se.displayName = "NumberField";
601
+ const Yt = {
602
602
  96: { name: "Кыргызстан", short: "KG", mask: "+996", length: 9 }
603
- }, Yt = (a) => {
603
+ }, Kt = (a) => {
604
604
  const r = a.toUpperCase().split("").map((o) => 127397 + o.charCodeAt(0));
605
605
  return String.fromCodePoint(...r);
606
- }, Y = () => Object.entries(zt).map(([a, r]) => ({
606
+ }, Y = () => Object.entries(Yt).map(([a, r]) => ({
607
607
  id: a,
608
608
  name: r.name,
609
609
  short: r.short,
610
610
  mask: r.mask,
611
611
  dialCode: r.mask.replace("+", ""),
612
612
  length: r.length,
613
- flag: Yt(r.short)
613
+ flag: Kt(r.short)
614
614
  })), Z = (a) => Y().find((o) => o.id === a), Q = (a, r) => {
615
615
  const o = r.dialCode, n = r.length;
616
616
  let e = a;
@@ -620,7 +620,7 @@ const zt = {
620
620
  return r.mask;
621
621
  let m = s;
622
622
  return s.length > 6 ? m = `${s.slice(0, 3)} ${s.slice(3, 6)} ${s.slice(6)}` : s.length > 3 && (m = `${s.slice(0, 3)} ${s.slice(3)}`), `${r.mask} ${m}`;
623
- }, Kt = (a, r) => {
623
+ }, Qt = (a, r) => {
624
624
  if (!a)
625
625
  return null;
626
626
  const o = a.replace(/\D/g, ""), n = Y();
@@ -633,7 +633,7 @@ const zt = {
633
633
  if (o.startsWith(e.dialCode))
634
634
  return e;
635
635
  return o.startsWith("0") && Z("96") || null;
636
- }, se = P(
636
+ }, ie = P(
637
637
  ({
638
638
  className: a,
639
639
  error: r,
@@ -642,8 +642,8 @@ const zt = {
642
642
  onChange: e,
643
643
  defaultCountry: s = "996",
644
644
  ...m
645
- }, v) => {
646
- const [y, l] = I(""), [N, k] = I(s), [c, C] = I(!1), [h, b] = I(""), u = n !== void 0, F = u ? n : y, { ref: M } = X(c, () => {
645
+ }, k) => {
646
+ const [y, l] = I(""), [N, v] = I(s), [c, C] = I(!1), [h, b] = I(""), u = n !== void 0, F = u ? n : y, { ref: M } = X(c, () => {
647
647
  C(!1), b("");
648
648
  }), w = R(() => Y(), []), L = Z(N) || w[0], B = R(() => {
649
649
  if (!h)
@@ -658,24 +658,24 @@ const zt = {
658
658
  const _ = g.replace(/\D/g, "");
659
659
  let f = _;
660
660
  (_.startsWith(L.dialCode) || g.startsWith(L.mask)) && (f = _.slice(L.dialCode.length));
661
- const d = f.slice(0, L.length);
662
- 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)}`;
661
+ const p = f.slice(0, L.length);
662
+ return p.length === 0 ? "" : p.length <= 3 ? p : p.length <= 6 ? `${p.slice(0, 3)} ${p.slice(3)}` : `${p.slice(0, 3)} ${p.slice(3, 6)} ${p.slice(6)}`;
663
663
  })(F), $ = (g) => {
664
- k(g), C(!1), b("");
664
+ v(g), C(!1), b("");
665
665
  const _ = F.replace(/\D/g, ""), f = Z(g);
666
666
  if (!f)
667
667
  return;
668
- let d = _;
669
- _.startsWith(L.dialCode) && (d = _.slice(L.dialCode.length));
670
- const V = Q(d, f);
668
+ let p = _;
669
+ _.startsWith(L.dialCode) && (p = _.slice(L.dialCode.length));
670
+ const V = Q(p, f);
671
671
  u || l(V), e == null || e(V);
672
672
  }, A = (g) => {
673
- const _ = g.target.value, f = _.replace(/\D/g, ""), d = Kt(
673
+ const _ = g.target.value, f = _.replace(/\D/g, ""), p = Qt(
674
674
  _
675
675
  );
676
- d && d.id !== N && k(d.id);
677
- const V = d || Z(N) || L, p = Q(f, V);
678
- u || l(p), e == null || e(p);
676
+ p && p.id !== N && v(p.id);
677
+ const V = p || Z(N) || L, d = Q(f, V);
678
+ u || l(d), e == null || e(d);
679
679
  };
680
680
  return /* @__PURE__ */ i("div", { className: "w-full", children: [
681
681
  o && /* @__PURE__ */ t("label", { className: "block text-sm font-medium text-blackBG mb-2", children: o }),
@@ -793,7 +793,7 @@ const zt = {
793
793
  r && "border-red-500 hover:border-red-500 focus:border-red-500 focus:shadow-[0_0_0_4px_rgba(239,68,68,0.15)]",
794
794
  a
795
795
  ),
796
- ref: v,
796
+ ref: k,
797
797
  value: W,
798
798
  onChange: A,
799
799
  placeholder: "XXX XXX XXX",
@@ -807,8 +807,8 @@ const zt = {
807
807
  ] });
808
808
  }
809
809
  );
810
- se.displayName = "PhoneInput";
811
- const ie = P(
810
+ ie.displayName = "PhoneInput";
811
+ const le = P(
812
812
  ({
813
813
  label: a,
814
814
  options: r,
@@ -817,7 +817,7 @@ const ie = P(
817
817
  onChange: e,
818
818
  error: s,
819
819
  className: m,
820
- direction: v = "column"
820
+ direction: k = "column"
821
821
  }, y) => /* @__PURE__ */ i("div", { ref: y, className: x("flex flex-col gap-2", m), children: [
822
822
  a && /* @__PURE__ */ t("label", { className: "text-sm font-medium text-blackBG mb-1", children: a }),
823
823
  /* @__PURE__ */ t(
@@ -825,10 +825,10 @@ const ie = P(
825
825
  {
826
826
  className: x(
827
827
  "flex gap-4",
828
- v === "column" ? "flex-col" : "flex-row flex-wrap"
828
+ k === "column" ? "flex-col" : "flex-row flex-wrap"
829
829
  ),
830
830
  children: r.map((l) => /* @__PURE__ */ t(
831
- le,
831
+ ce,
832
832
  {
833
833
  name: n,
834
834
  label: l.label,
@@ -844,8 +844,8 @@ const ie = P(
844
844
  s && /* @__PURE__ */ t("p", { className: "mt-1 text-sm text-red-500", children: s })
845
845
  ] })
846
846
  );
847
- ie.displayName = "RadioGroup";
848
- const le = P(
847
+ le.displayName = "RadioGroup";
848
+ const ce = P(
849
849
  ({ className: a, label: r, error: o, ...n }, e) => /* @__PURE__ */ i("div", { className: "w-full", children: [
850
850
  /* @__PURE__ */ i("label", { className: "flex items-start gap-3 cursor-pointer group", children: [
851
851
  /* @__PURE__ */ i("div", { className: "relative flex items-center justify-center mt-0.5", children: [
@@ -893,8 +893,8 @@ const le = P(
893
893
  o && /* @__PURE__ */ t("p", { className: "mt-2 text-sm text-red-500", children: o })
894
894
  ] })
895
895
  );
896
- le.displayName = "Radio";
897
- const ce = P(
896
+ ce.displayName = "Radio";
897
+ const pe = P(
898
898
  ({
899
899
  className: a,
900
900
  error: r,
@@ -903,17 +903,17 @@ const ce = P(
903
903
  placeholder: e = "Выберите категорию",
904
904
  value: s,
905
905
  onChange: m,
906
- onBlur: v,
906
+ onBlur: k,
907
907
  name: y,
908
908
  disabled: l,
909
909
  ...N
910
- }, k) => {
910
+ }, v) => {
911
911
  const {
912
912
  ref: c,
913
913
  isShow: C,
914
914
  setIsShow: h
915
915
  } = X(!1);
916
- J(k, () => c.current);
916
+ J(v, () => c.current);
917
917
  const b = n.find((w) => w.value === s), u = () => {
918
918
  l || h(!C);
919
919
  }, F = (w) => {
@@ -924,7 +924,7 @@ const ce = P(
924
924
  }
925
925
  }), h(!1);
926
926
  }, M = (w) => {
927
- v && v({
927
+ k && k({
928
928
  target: {
929
929
  name: y,
930
930
  value: s
@@ -1014,11 +1014,11 @@ const ce = P(
1014
1014
  );
1015
1015
  }
1016
1016
  );
1017
- ce.displayName = "Select";
1018
- const Qt = {
1019
- TitleBlock: Ke,
1017
+ pe.displayName = "Select";
1018
+ const Ut = {
1019
+ TitleBlock: te,
1020
1020
  WarningCard: q
1021
- }, Ut = [
1021
+ }, Jt = [
1022
1022
  {
1023
1023
  label: "TitleBlock",
1024
1024
  value: "TitleBlock"
@@ -1027,23 +1027,23 @@ const Qt = {
1027
1027
  label: "WarningCard",
1028
1028
  value: "WarningCard"
1029
1029
  }
1030
- ], Jt = {
1031
- text: oe,
1032
- number: ne,
1033
- phone: se,
1034
- select: ce,
1035
- date: ae,
1036
- radio: ie,
1037
- checkbox: re,
1038
- file: Ye
1039
- }, er = (a, {
1030
+ ], er = {
1031
+ text: ae,
1032
+ number: se,
1033
+ phone: ie,
1034
+ select: pe,
1035
+ date: ne,
1036
+ radio: le,
1037
+ checkbox: oe,
1038
+ file: Ke
1039
+ }, tr = (a, {
1040
1040
  register: r,
1041
1041
  errors: o,
1042
1042
  control: n
1043
1043
  }) => a.map((e, s) => {
1044
- var v;
1044
+ var k;
1045
1045
  if ((e == null ? void 0 : e.componentType) === "component") {
1046
- const y = Qt[e == null ? void 0 : e.key];
1046
+ const y = Ut[e == null ? void 0 : e.key];
1047
1047
  if (y)
1048
1048
  return /* @__PURE__ */ t(
1049
1049
  y,
@@ -1053,23 +1053,23 @@ const Qt = {
1053
1053
  s
1054
1054
  );
1055
1055
  }
1056
- const m = Jt[e == null ? void 0 : e.type];
1056
+ const m = er[e == null ? void 0 : e.type];
1057
1057
  if (m) {
1058
1058
  const y = ["select", "radio", "checkbox", "file"].includes(
1059
1059
  e.type
1060
- ), l = (v = o[e.name]) == null ? void 0 : v.message;
1060
+ ), l = (k = o[e.name]) == null ? void 0 : k.message;
1061
1061
  return y && n ? /* @__PURE__ */ t(
1062
- Xe,
1062
+ qe,
1063
1063
  {
1064
1064
  name: e.name,
1065
1065
  control: n,
1066
1066
  rules: { validate: e.validate },
1067
- render: ({ field: { onChange: N, value: k, name: c, ref: C } }) => /* @__PURE__ */ t(
1067
+ render: ({ field: { onChange: N, value: v, name: c, ref: C } }) => /* @__PURE__ */ t(
1068
1068
  m,
1069
1069
  {
1070
1070
  ...e.field_props,
1071
1071
  onChange: N,
1072
- value: k,
1072
+ value: v,
1073
1073
  name: c,
1074
1074
  ref: C,
1075
1075
  error: l
@@ -1095,38 +1095,38 @@ const Qt = {
1095
1095
  type: r,
1096
1096
  options: o
1097
1097
  }) => ({
1098
- dataType: Wt.select,
1098
+ dataType: jt.select,
1099
1099
  label: a,
1100
1100
  type: r,
1101
1101
  options: o
1102
- }), ma = {
1102
+ }), ua = {
1103
1103
  title: "Оставьте заявку, чтобы подключить MKassa",
1104
1104
  subtitle: "с Вами свяжется наш специалист и поможет с подключением сервиса"
1105
- }, ua = {
1105
+ }, fa = {
1106
1106
  title: "Форма заявки",
1107
1107
  description: "Форма заявки ",
1108
1108
  types: [U.form]
1109
1109
  // propsToEdit: propsToEdit,
1110
- }, tr = {
1110
+ }, rr = {
1111
1111
  title: "Оставьте заявку, чтобы подключить MKassa",
1112
1112
  description: "с Вами свяжется наш специалист и поможет с подключением сервиса",
1113
1113
  color: "#45464b"
1114
- }, rr = de({
1114
+ }, or = de({
1115
1115
  label: "Тип поля",
1116
1116
  type: "componentType",
1117
- options: jt
1118
- }), or = de({
1117
+ options: Ot
1118
+ }), ar = de({
1119
1119
  label: "Компонент",
1120
1120
  type: "componentType",
1121
- options: Ut
1122
- }), ar = {
1121
+ options: Jt
1122
+ }), nr = {
1123
1123
  type: "fields",
1124
1124
  dataType: "array",
1125
1125
  label: "Поля для формы",
1126
1126
  data: {
1127
- componentType: rr,
1127
+ componentType: or,
1128
1128
  type: j.STRING,
1129
- key: or,
1129
+ key: ar,
1130
1130
  name: j.STRING,
1131
1131
  field_props: {
1132
1132
  label: j.STRING,
@@ -1137,7 +1137,7 @@ const Qt = {
1137
1137
  placeholder: j.STRING
1138
1138
  }
1139
1139
  }
1140
- }, nr = ["title", "subtitle", "color", ar], pe = ({
1140
+ }, sr = ["title", "subtitle", "color", nr], me = ({
1141
1141
  title: a,
1142
1142
  subtitle: r,
1143
1143
  color: o,
@@ -1146,14 +1146,14 @@ const Qt = {
1146
1146
  fields: s = []
1147
1147
  }) => {
1148
1148
  var L;
1149
- const [m, v] = I(!1), [y, l] = I(!1), N = ze(960), {
1150
- register: k,
1149
+ const [m, k] = I(!1), [y, l] = I(!1), N = Ye(960), {
1150
+ register: v,
1151
1151
  handleSubmit: c,
1152
1152
  watch: C,
1153
1153
  reset: h,
1154
1154
  control: b,
1155
1155
  formState: { errors: u }
1156
- } = qe({
1156
+ } = ze({
1157
1157
  defaultValues: {
1158
1158
  fio: "",
1159
1159
  phone: "",
@@ -1162,8 +1162,8 @@ const Qt = {
1162
1162
  }
1163
1163
  }), F = C("agreement"), M = async (B) => {
1164
1164
  console.log("Form submitted:", B);
1165
- }, w = er(s || [], {
1166
- register: k,
1165
+ }, w = tr(s || [], {
1166
+ register: v,
1167
1167
  errors: u,
1168
1168
  control: b
1169
1169
  });
@@ -1213,7 +1213,7 @@ const Qt = {
1213
1213
  className: "justify-center m-auto mt-6",
1214
1214
  title: "Закрыть",
1215
1215
  onClick: () => {
1216
- v(!1), h();
1216
+ k(!1), h();
1217
1217
  }
1218
1218
  }
1219
1219
  )
@@ -1233,7 +1233,7 @@ const Qt = {
1233
1233
  /* @__PURE__ */ t("div", { className: "pt-2", children: /* @__PURE__ */ t(
1234
1234
  z,
1235
1235
  {
1236
- ...k("agreement", {
1236
+ ...v("agreement", {
1237
1237
  required: "Необходимо согласие на обработку персональных данных"
1238
1238
  }),
1239
1239
  error: (L = u.agreement) == null ? void 0 : L.message,
@@ -1261,7 +1261,7 @@ const Qt = {
1261
1261
  className: "w-full whitespace-nowrap transition-all duration-200 hover:scale-[1.02] active:scale-[0.98]",
1262
1262
  type: "submit",
1263
1263
  size: ve.XL,
1264
- variant: ke.Primary,
1264
+ variant: Ce.Primary,
1265
1265
  disabled: !F || y,
1266
1266
  children: "Отправить заявку"
1267
1267
  }
@@ -1273,34 +1273,34 @@ const Qt = {
1273
1273
  }
1274
1274
  ) });
1275
1275
  };
1276
- pe.propsToEdit = nr;
1277
- const fa = {
1278
- MainBanner: { key: "MainBanner", component: Ie },
1279
- Banner: { key: "Banner", component: he },
1280
- CardImageList: { key: "CardImageList", component: Ve },
1281
- Stepper: { key: "Stepper", component: Ce },
1282
- Segments: { key: "Segments", component: De },
1283
- VideoFull: { key: "VideoFull", component: Ne },
1284
- VideoList: { key: "VideoList", component: Le },
1285
- VideoListMini: { key: "VideoListMini", component: _e },
1286
- ContentCardList: { key: "ContentCardList", component: Be },
1287
- CardIconList: { key: "CardIconList", component: Se },
1288
- MultiCards: { key: "MultiCards", component: Fe },
1289
- Partners: { key: "Partners", component: Me },
1290
- PartnersColors: { key: "PartnersColors", component: Pe },
1276
+ me.propsToEdit = sr;
1277
+ const ha = {
1278
+ MainBanner: { key: "MainBanner", component: He },
1279
+ Banner: { key: "Banner", component: ge },
1280
+ CardImageList: { key: "CardImageList", component: Ie },
1281
+ Stepper: { key: "Stepper", component: De },
1282
+ Segments: { key: "Segments", component: Ne },
1283
+ VideoFull: { key: "VideoFull", component: Le },
1284
+ VideoList: { key: "VideoList", component: _e },
1285
+ VideoListMini: { key: "VideoListMini", component: Be },
1286
+ ContentCardList: { key: "ContentCardList", component: Se },
1287
+ CardIconList: { key: "CardIconList", component: Fe },
1288
+ MultiCards: { key: "MultiCards", component: Me },
1289
+ Partners: { key: "Partners", component: Ve },
1290
+ PartnersColors: { key: "PartnersColors", component: Ge },
1291
1291
  WarningCard: { key: "WarningCard", component: q },
1292
- Faq: { key: "Faq", component: He },
1292
+ Faq: { key: "Faq", component: Te },
1293
1293
  DownloadFileBanner: {
1294
1294
  key: "DownloadFileBanner",
1295
- component: We
1295
+ component: je
1296
1296
  },
1297
- DownloadFileHalf: { key: "DownloadFileHalf", component: Oe },
1298
- DownloadFileFull: { key: "DownloadFileFull", component: je },
1299
- DownloadFileMini: { key: "DownloadFileMini", component: Ze },
1300
- InstructionList: { key: "InstructionList", component: Te },
1301
- PreviewList: { key: "PreviewList", component: Ge },
1297
+ DownloadFileHalf: { key: "DownloadFileHalf", component: Ze },
1298
+ DownloadFileFull: { key: "DownloadFileFull", component: Oe },
1299
+ DownloadFileMini: { key: "DownloadFileMini", component: Re },
1300
+ InstructionList: { key: "InstructionList", component: Pe },
1301
+ PreviewList: { key: "PreviewList", component: We },
1302
1302
  SwiperList: { key: "SwiperList", component: rt },
1303
- AnimatedSwiper: { key: "AnimatedSwiper", component: Re },
1303
+ AnimatedSwiper: { key: "AnimatedSwiper", component: $e },
1304
1304
  InfoBannerList: { key: "InfoBannerList", component: Qe },
1305
1305
  TasksBannerList: { key: "TasksBannerList", component: ot },
1306
1306
  VideoMainBanner: { key: "VideoMainBanner", component: at },
@@ -1308,29 +1308,30 @@ const fa = {
1308
1308
  PromoPoster: { key: "PromoPoster", component: Je },
1309
1309
  CardImageSecondaryList: {
1310
1310
  key: "CardImageSecondaryList",
1311
- component: $e
1311
+ component: Ae
1312
1312
  },
1313
- CardInfoTable: { key: "CardInfoTable", component: Ae },
1313
+ CardInfoTable: { key: "CardInfoTable", component: Ee },
1314
1314
  StandartTable: { key: "StandartTable", component: tt },
1315
1315
  IntroBanner: { key: "IntroBanner", component: Ue },
1316
1316
  DownloadFileBright: {
1317
1317
  key: "DownloadFileBright",
1318
- component: Ee
1318
+ component: Xe
1319
1319
  },
1320
1320
  FormDefault: {
1321
1321
  key: "FormDefault",
1322
- component: pe
1322
+ component: me
1323
1323
  },
1324
- Header: { key: "Header", component: Ot },
1325
- Footer: { key: "Footer", component: Zt }
1326
- }, ha = {
1324
+ Header: { key: "Header", component: Zt },
1325
+ Footer: { key: "Footer", component: Rt },
1326
+ TitleBlock: { key: "TitleBlock", component: te }
1327
+ }, ga = {
1327
1328
  MainBanner: nt.component_props,
1328
1329
  Banner: st.component_props,
1329
1330
  CardImageList: it.component_props,
1330
1331
  Stepper: lt.component_props,
1331
1332
  Segments: ct.component_props,
1332
- VideoFull: dt.component_props,
1333
- VideoList: pt.component_props,
1333
+ VideoFull: pt.component_props,
1334
+ VideoList: dt.component_props,
1334
1335
  VideoListMini: mt.component_props,
1335
1336
  ContentCardList: ut.component_props,
1336
1337
  CardIconList: ft.component_props,
@@ -1340,8 +1341,8 @@ const fa = {
1340
1341
  WarningCard: bt.component_props,
1341
1342
  Faq: yt.component_props,
1342
1343
  DownloadFileBanner: wt.component_props,
1343
- DownloadFileHalf: vt.component_props,
1344
- DownloadFileFull: kt.component_props,
1344
+ DownloadFileHalf: kt.component_props,
1345
+ DownloadFileFull: vt.component_props,
1345
1346
  DownloadFileMini: Ct.component_props,
1346
1347
  InstructionList: Dt.component_props,
1347
1348
  PreviewList: Nt.component_props,
@@ -1357,26 +1358,27 @@ const fa = {
1357
1358
  StandartTable: Tt.component_props,
1358
1359
  IntroBanner: Pt.component_props,
1359
1360
  DownloadFileBright: Gt.component_props,
1360
- FormDefault: tr
1361
- }, ga = {
1361
+ FormDefault: rr,
1362
+ TitleBlock: Wt.component_props
1363
+ }, xa = {
1362
1364
  title: "Предупреждающая карточка",
1363
1365
  description: "Компонент для отображения предупреждающей информации в виде карточки с иконкой, заголовком и описанием. Используется для привлечения внимания к важной информации или предупреждениям.",
1364
1366
  types: [U.cards],
1365
- propsToEdit: te
1367
+ propsToEdit: re
1366
1368
  };
1367
1369
  export {
1368
- ha as A,
1369
- pe as F,
1370
+ ga as A,
1371
+ me as F,
1370
1372
  q as W,
1371
- fa as a,
1372
- Ut as b,
1373
- Qt as c,
1374
- tr as d,
1375
- ar as e,
1376
- ua as f,
1377
- nr as g,
1378
- ma as i,
1379
- te as p,
1380
- er as r,
1381
- ga as w
1373
+ ha as a,
1374
+ Jt as b,
1375
+ Ut as c,
1376
+ rr as d,
1377
+ nr as e,
1378
+ fa as f,
1379
+ sr as g,
1380
+ ua as i,
1381
+ re as p,
1382
+ tr as r,
1383
+ xa as w
1382
1384
  };