md-components-mdigial-azamat 0.0.99 → 0.0.100

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,67 +1,68 @@
1
- import { C as ee } from "./index-0a5f313c.js";
2
- import { jsx as e, jsxs as c, Fragment as Q } from "react/jsx-runtime";
3
- import { warningCardVariant as ge, WarningCardVariant as A, WarningCardVariantKey as be } from "./Cards/WarningCard/model.js";
1
+ import { C as q } from "./index-0a5f313c.js";
2
+ import { jsx as e, jsxs as c, Fragment as R } from "react/jsx-runtime";
3
+ import { warningCardVariant as xe, WarningCardVariant as G, WarningCardVariantKey as ye } from "./Cards/WarningCard/model.js";
4
4
  import "./ConfigProvider/index.js";
5
- import { Banner as xe } from "./Banner/Banner.js";
5
+ import { Banner as we } from "./Banner/Banner.js";
6
6
  import "./BannerAndText/index.js";
7
- import { forwardRef as P, useState as T, useMemo as $, useEffect as ye, useRef as we, useImperativeHandle as te, useCallback as ke } from "react";
7
+ import { forwardRef as E, useState as T, useMemo as Z, useEffect as ke, useRef as Ce, useImperativeHandle as re, useCallback as ve } 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 Ce } from "./HtmlContent/HtmlContent.js";
11
+ import { HtmlContent as De } from "./HtmlContent/HtmlContent.js";
12
12
  import "./Header/components/TabsOutlined/TabsOutlined.js";
13
- import { B as R } from "./index-875e92ce.js";
14
- import { B as ve, a as De, b as Ne } from "./const-53dff524.js";
15
- import { Stepper as Le } from "./Stepper/Stepper.js";
16
- import { Segments as _e } from "./Segments/Segments.js";
17
- import { VideoFull as Be } from "./Video/VideoFull/VideoFull.js";
18
- import { VideoList as Se } from "./Video/VideoList/VideoList.js";
19
- import { VideoListMini as Me } from "./Video/VideoListMini/VideoListMini.js";
20
- import { ContentCardList as Fe } from "./ContentCardList/ContentCardList.js";
21
- import { CardIconList as Ve } from "./CardIconList/CardIconList.js";
22
- import { MultiCards as Ie } from "./MultiCards/index.js";
23
- import { Partners as Te } from "./Partners/Partners.js";
24
- import { CardImageList as He } from "./CardImageList/CardImageList.js";
25
- import { MainBanner as Pe } from "./MainBanner/MainBanner.js";
26
- import { Faq as Ee } from "./Faq/Faq.js";
27
- import { InstructionList as We } from "./InstructionList/InstructionList.js";
13
+ import { B as X } from "./index-875e92ce.js";
14
+ import { B as Le, a as Ne, b as _e } from "./const-53dff524.js";
15
+ import { Stepper as Be } from "./Stepper/Stepper.js";
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";
21
+ import { CardIconList as Te } from "./CardIconList/CardIconList.js";
22
+ import { MultiCards as He } from "./MultiCards/index.js";
23
+ import { Partners as Pe } from "./Partners/Partners.js";
24
+ import { CardImageList as Ee } from "./CardImageList/CardImageList.js";
25
+ import { MainBanner as We } from "./MainBanner/MainBanner.js";
26
+ import { Faq as Ae } from "./Faq/Faq.js";
27
+ import { InstructionList as je } from "./InstructionList/InstructionList.js";
28
28
  import "./HeroPossibilityBanner/index.js";
29
29
  import { PartnersColors as Oe } from "./PartnersColors/PartnersColors.js";
30
- import { PreviewList as je } from "./PreviewList/PreviewList.js";
30
+ import { PreviewList as Ge } 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 Ge } from "./DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js";
36
- import { DownloadFileFull as Ae } from "./DownloadFile/components/DownloadFileFull/DownloadFileFull.js";
37
- import { DownloadFileHalf as Ze } from "./DownloadFile/components/DownloadFileHalf/DownloadFileHalf.js";
38
- import { DownloadFileMini as $e } from "./DownloadFile/components/DownloadFileMini/DownloadFileMini.js";
35
+ import { DownloadFileBanner as $e } from "./DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js";
36
+ import { DownloadFileFull as Ze } from "./DownloadFile/components/DownloadFileFull/DownloadFileFull.js";
37
+ import { DownloadFileHalf as Re } from "./DownloadFile/components/DownloadFileHalf/DownloadFileHalf.js";
38
+ import { DownloadFileMini as Xe } 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 { ActionCard as ze } from "./ActionCard/ActionCard.js";
42
+ import { TitleBlock as Y } from "./TitleBlock/TitleBlock.js";
43
+ import qe from "./AnimatedSwiper/index.js";
42
44
  import "./CardImageSecondary/CardImageSecondary.js";
43
- import { CardImageSecondaryList as Xe } from "./CardImageSecondaryList/CardImageSecondaryList.js";
44
- import { CardInfoTable as ze } from "./CardInfoTable/index.js";
45
- import { DownloadFileBright as qe } from "./DownloadFile/components/DownloadFileBright/index.js";
45
+ import { CardImageSecondaryList as Ye } from "./CardImageSecondaryList/CardImageSecondaryList.js";
46
+ import { CardInfoTable as Ke } from "./CardInfoTable/index.js";
47
+ import { DownloadFileBright as Ue } from "./DownloadFile/components/DownloadFileBright/index.js";
46
48
  import "./DownloadFile/components/FileBannerSecondary/FileBannerSecondary.js";
47
- import { C as Ye, u as Ke } from "./index-a0ed2e4a.js";
48
- import { C as re } from "./ComponentContainer-dca711c6.js";
49
- import { u as Ue } from "./useScreenSize-c1b64c02.js";
50
- import { u as oe, F as Qe } from "./index-6686852d.js";
51
- import { u as z } from "./useClickOutside-197b0df2.js";
52
- import { TitleBlock as ae } from "./TitleBlock/TitleBlock.js";
49
+ import { C as Qe, u as Je } from "./index-a0ed2e4a.js";
50
+ import { C as oe } from "./ComponentContainer-dca711c6.js";
51
+ import { u as et } from "./useScreenSize-c1b64c02.js";
52
+ import { u as ae, F as tt } from "./index-6686852d.js";
53
+ import { u as K } from "./useClickOutside-197b0df2.js";
53
54
  import "./InfoBanner/index.js";
54
- import { InfoBannerList as Je } from "./InfoBannerList/InfoBannerList.js";
55
- import { IntroBanner as et } from "./IntroBanner/IntroBanner.js";
56
- import { PromoPoster as tt } from "./PromoPoster/PromoPoster.js";
57
- import { Space as rt } from "./Space/Space.js";
58
- import { StandartTable as ot } from "./StandartTable/index.js";
59
- import { SwiperList as at } from "./SwiperList/SwiperList.js";
55
+ import { InfoBannerList as rt } from "./InfoBannerList/InfoBannerList.js";
56
+ import { IntroBanner as ot } from "./IntroBanner/IntroBanner.js";
57
+ import { PromoPoster as at } from "./PromoPoster/PromoPoster.js";
58
+ import { Space as nt } from "./Space/Space.js";
59
+ import { StandartTable as st } from "./StandartTable/index.js";
60
+ import { SwiperList as it } from "./SwiperList/SwiperList.js";
60
61
  import "./TasksBanner/TasksBanner.js";
61
- import { TasksBannerList as nt } from "./TasksBannerList/TasksBannerList.js";
62
- import { VideoMainBanner as st } from "./VideoMainBanner/VideoMainBanner.js";
63
- import { M as lt, B as it, C as ct, S as dt, b as pt, V as mt, c as ut, d as ft, e as ht, f as gt, g as bt, P as xt, h as yt, W as wt, F as kt, k as Ct, D as vt, l as Dt, m as Nt, I as Lt, o as _t, p as Bt, A as St, q as Mt, T as Ft, r as Vt, E as It, s as Tt, t as Ht, u as Pt, v as Et, w as Wt, x as Ot, y as jt } from "./data.mock-f00bb32c.js";
64
- import { DataTypesEnum as X, FieldTypes as G } from "./Types/FiledTypes.js";
62
+ import { TasksBannerList as lt } from "./TasksBannerList/TasksBannerList.js";
63
+ 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 Dt, k as Lt, 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 Wt, u as At, v as jt, w as Ot, x as Gt, y as $t } from "./data.mock-f00bb32c.js";
65
+ import { FieldTypes as P, DataTypesEnum as z } from "./Types/FiledTypes.js";
65
66
  import "react-dom";
66
67
  import "./AnimatedSwiper/info.js";
67
68
  import "./Banner/info.js";
@@ -107,33 +108,33 @@ import "./Video/VideoList/info.js";
107
108
  import "./Video/VideoListMini/info.js";
108
109
  import "./VideoMainBanner/info.js";
109
110
  import "./Actions/types.js";
110
- import { c as Gt, R as At } from "./requestForm-23442a57.js";
111
- import { componentTypes as Zt } from "./Forms/FormDefault/componentTypes.js";
112
- import { fieldTypesList as $t } from "./Forms/FormDefault/fieldTypesList.js";
113
- import { Header as Rt } from "./Header/Header.js";
114
- import { Footer as Xt } from "./Footer/Footer.js";
115
- import { I as zt } from "./Icon-70ea6cb8.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
117
  const ne = [
117
118
  "title",
118
119
  "title_color",
119
120
  "description",
120
121
  "description_color",
121
122
  "html_content",
122
- ve,
123
- ge
124
- ], q = ({
123
+ Le,
124
+ xe
125
+ ], U = ({
125
126
  title: n,
126
127
  description: o,
127
128
  button: a,
128
- html_content: l,
129
- variant: r = be.Orange
129
+ html_content: i,
130
+ variant: r = ye.Orange
130
131
  }) => {
131
- var t, f, p, N;
132
- return /* @__PURE__ */ e(re, { children: /* @__PURE__ */ e(
132
+ var t, f, p, L;
133
+ return /* @__PURE__ */ e(oe, { children: /* @__PURE__ */ e(
133
134
  "div",
134
135
  {
135
136
  className: "rounded-[24px] p-6",
136
- style: { background: (t = A[r]) == null ? void 0 : t.background },
137
+ style: { background: (t = G[r]) == null ? void 0 : t.background },
137
138
  children: /* @__PURE__ */ c("div", { className: "flex gap-4 items-center justify-between", children: [
138
139
  /* @__PURE__ */ c(
139
140
  "div",
@@ -141,9 +142,9 @@ const ne = [
141
142
  className: "flex gap-[16px] items-center max-tablet:flex-col max-tablet:items-start max-tablet:gap-[12px]",
142
143
  children: [
143
144
  /* @__PURE__ */ e(
144
- zt,
145
+ Kt,
145
146
  {
146
- name: (f = A[r]) == null ? void 0 : f.icon,
147
+ name: (f = G[r]) == null ? void 0 : f.icon,
147
148
  size: 40
148
149
  }
149
150
  ),
@@ -152,7 +153,7 @@ const ne = [
152
153
  "p",
153
154
  {
154
155
  className: y("text-[24px] leading-8 font-bold"),
155
- style: { color: (p = A[r]) == null ? void 0 : p.textColor },
156
+ style: { color: (p = G[r]) == null ? void 0 : p.textColor },
156
157
  children: n
157
158
  }
158
159
  ),
@@ -160,36 +161,70 @@ const ne = [
160
161
  "p",
161
162
  {
162
163
  className: "text-[16px] leading-6",
163
- style: { color: (N = A[r]) == null ? void 0 : N.textColor },
164
+ style: { color: (L = G[r]) == null ? void 0 : L.textColor },
164
165
  children: o
165
166
  }
166
167
  ),
167
- l && /* @__PURE__ */ e(Ce, { data: l })
168
+ i && /* @__PURE__ */ e(De, { data: i })
168
169
  ] })
169
170
  ]
170
171
  }
171
172
  ),
172
- /* @__PURE__ */ e(R, { ...a })
173
+ /* @__PURE__ */ e(X, { ...a })
173
174
  ] })
174
175
  }
175
176
  ) });
176
177
  };
177
- q.propsToEdit = ne;
178
- const se = P(
178
+ U.propsToEdit = ne;
179
+ const Ut = {
180
+ type: "cards",
181
+ label: "Карточки действий",
182
+ dataType: "array",
183
+ data: {
184
+ title: P.TITLE,
185
+ icon: P.FILE,
186
+ link: P.LINK
187
+ }
188
+ }, se = ["title", "description", "marginBottom", Ut], ie = ({
189
+ title: n,
190
+ description: o,
191
+ marginBottom: a,
192
+ cards: i
193
+ }) => /* @__PURE__ */ c(R, { children: [
194
+ /* @__PURE__ */ e(
195
+ Y,
196
+ {
197
+ title: n,
198
+ description: o,
199
+ marginBottom: a
200
+ }
201
+ ),
202
+ /* @__PURE__ */ e("div", { className: "grid grid-cols-3 gap-x-[24px] gap-y-[40px] max-tablet:grid-cols-1 max-tablet:gap-y-[24px]", children: i == null ? void 0 : i.map((r, t) => /* @__PURE__ */ e(
203
+ ze,
204
+ {
205
+ title: r.title,
206
+ icon: r.icon,
207
+ link: r.link
208
+ },
209
+ r.id ?? t
210
+ )) })
211
+ ] });
212
+ ie.propsToEdit = se;
213
+ const le = E(
179
214
  ({
180
215
  label: n,
181
216
  options: o = [],
182
217
  value: a = [],
183
- onChange: l,
218
+ onChange: i,
184
219
  error: r,
185
220
  className: t,
186
221
  direction: f = "column"
187
222
  }, p) => {
188
- const N = (s) => {
189
- if (!l)
223
+ const L = (s) => {
224
+ if (!i)
190
225
  return;
191
226
  const D = a.includes(s) ? a.filter((w) => w !== s) : [...a, s];
192
- l(D);
227
+ i(D);
193
228
  };
194
229
  return /* @__PURE__ */ c(
195
230
  "div",
@@ -206,11 +241,11 @@ const se = P(
206
241
  f === "column" ? "flex-col" : "flex-row flex-wrap"
207
242
  ),
208
243
  children: o == null ? void 0 : o.map((s) => /* @__PURE__ */ e(
209
- Y,
244
+ Q,
210
245
  {
211
246
  label: s == null ? void 0 : s.label,
212
247
  checked: a.includes(s == null ? void 0 : s.value),
213
- onChange: () => N(s == null ? void 0 : s.value),
248
+ onChange: () => L(s == null ? void 0 : s.value),
214
249
  error: r && (a == null ? void 0 : a.length) === 0 ? r : void 0
215
250
  },
216
251
  s == null ? void 0 : s.value
@@ -223,9 +258,9 @@ const se = P(
223
258
  );
224
259
  }
225
260
  );
226
- se.displayName = "CheckboxGroup";
227
- const Y = P(
228
- ({ className: n, label: o, error: a, ...l }, r) => /* @__PURE__ */ c("div", { className: "w-full", children: [
261
+ le.displayName = "CheckboxGroup";
262
+ const Q = E(
263
+ ({ className: n, label: o, error: a, ...i }, r) => /* @__PURE__ */ c("div", { className: "w-full", children: [
229
264
  /* @__PURE__ */ c("label", { className: "flex items-start gap-3 cursor-pointer group", children: [
230
265
  /* @__PURE__ */ c("div", { className: "relative flex items-center justify-center mt-0.5", children: [
231
266
  /* @__PURE__ */ e(
@@ -234,7 +269,7 @@ const Y = P(
234
269
  type: "checkbox",
235
270
  className: "peer sr-only",
236
271
  ref: r,
237
- ...l
272
+ ...i
238
273
  }
239
274
  ),
240
275
  /* @__PURE__ */ e(
@@ -272,10 +307,10 @@ const Y = P(
272
307
  a && /* @__PURE__ */ e("p", { className: "mt-2 text-sm text-red-500", children: a })
273
308
  ] })
274
309
  );
275
- Y.displayName = "Checkbox";
276
- const le = P(
277
- ({ className: n, type: o, error: a, label: l, ...r }, t) => /* @__PURE__ */ c("div", { className: "w-full", children: [
278
- l && /* @__PURE__ */ e("label", { className: "block text-sm font-medium text-blackBG mb-2", children: l }),
310
+ Q.displayName = "Checkbox";
311
+ const ce = E(
312
+ ({ className: n, type: o, error: a, label: i, ...r }, t) => /* @__PURE__ */ c("div", { className: "w-full", children: [
313
+ i && /* @__PURE__ */ e("label", { className: "block text-sm font-medium text-blackBG mb-2", children: i }),
279
314
  /* @__PURE__ */ e(
280
315
  "input",
281
316
  {
@@ -297,8 +332,8 @@ const le = P(
297
332
  a && /* @__PURE__ */ e("p", { className: "mt-2 text-sm text-red-500", children: a })
298
333
  ] })
299
334
  );
300
- le.displayName = "Input";
301
- const qt = () => /* @__PURE__ */ e(
335
+ ce.displayName = "Input";
336
+ const Qt = () => /* @__PURE__ */ e(
302
337
  "svg",
303
338
  {
304
339
  width: "20",
@@ -314,69 +349,69 @@ const qt = () => /* @__PURE__ */ e(
314
349
  }
315
350
  )
316
351
  }
317
- ), Yt = (n) => {
352
+ ), Jt = (n) => {
318
353
  if (!n)
319
354
  return "";
320
- const o = String(n.getDate()).padStart(2, "0"), a = String(n.getMonth() + 1).padStart(2, "0"), l = n.getFullYear();
321
- return `${o}.${a}.${l}`;
322
- }, Kt = (n) => {
355
+ const o = String(n.getDate()).padStart(2, "0"), a = String(n.getMonth() + 1).padStart(2, "0"), i = n.getFullYear();
356
+ return `${o}.${a}.${i}`;
357
+ }, er = (n) => {
323
358
  if (!n)
324
359
  return null;
325
360
  const o = n.split(".");
326
361
  if (o.length === 3) {
327
- const a = parseInt(o[0], 10), l = parseInt(o[1], 10) - 1, r = parseInt(o[2], 10);
328
- if (!isNaN(a) && !isNaN(l) && !isNaN(r)) {
329
- const t = new Date(r, l, a);
330
- if (t.getDate() === a && t.getMonth() === l && t.getFullYear() === r)
362
+ const a = parseInt(o[0], 10), i = parseInt(o[1], 10) - 1, r = parseInt(o[2], 10);
363
+ if (!isNaN(a) && !isNaN(i) && !isNaN(r)) {
364
+ const t = new Date(r, i, a);
365
+ if (t.getDate() === a && t.getMonth() === i && t.getFullYear() === r)
331
366
  return t;
332
367
  }
333
368
  }
334
369
  return null;
335
- }, Ut = (n, o) => new Date(o, n, 1).toLocaleDateString("ru-RU", { month: "long", year: "numeric" }), Qt = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], ie = P(
370
+ }, tr = (n, o) => new Date(o, n, 1).toLocaleDateString("ru-RU", { month: "long", year: "numeric" }), rr = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], de = E(
336
371
  ({
337
372
  className: n,
338
373
  error: o,
339
374
  label: a,
340
- value: l,
375
+ value: i,
341
376
  onChange: r,
342
377
  placeholder: t = "Дата обращения в Контакт-центр",
343
378
  ...f
344
379
  }, p) => {
345
- const [N, s] = T(""), [D, w] = T(!1), [d, k] = T((/* @__PURE__ */ new Date()).getMonth()), [h, b] = T((/* @__PURE__ */ new Date()).getFullYear()), [x, M] = T(null), S = l !== void 0, C = S ? l : N, { ref: B } = z(D, () => {
380
+ const [L, s] = T(""), [D, w] = T(!1), [d, k] = T((/* @__PURE__ */ new Date()).getMonth()), [h, b] = T((/* @__PURE__ */ new Date()).getFullYear()), [x, F] = T(null), S = i !== void 0, C = S ? i : L, { ref: B } = K(D, () => {
346
381
  w(!1);
347
- }), V = $(() => Kt(C), [C]);
348
- ye(() => {
349
- V && (M(V), k(V.getMonth()), b(V.getFullYear()));
382
+ }), V = Z(() => er(C), [C]);
383
+ ke(() => {
384
+ V && (F(V), k(V.getMonth()), b(V.getFullYear()));
350
385
  }, [V]);
351
- const I = $(() => {
352
- const g = new Date(h, d, 1), _ = new Date(h, d + 1, 0).getDate(), u = g.getDay(), L = [], W = new Date(h, d, 0).getDate();
353
- for (let F = u - 1; F >= 0; F--)
354
- L.push(W - F);
355
- for (let F = 1; F <= _; F++)
356
- L.push(F);
357
- const H = 42 - L.length;
358
- for (let F = 1; F <= H; F++)
359
- L.push(F);
360
- return L;
361
- }, [d, h]), E = (g) => {
362
- const i = g.target.value;
363
- S || s(i), r == null || r(i);
364
- }, j = (g, i, _) => {
386
+ const I = Z(() => {
387
+ const g = new Date(h, d, 1), _ = new Date(h, d + 1, 0).getDate(), u = g.getDay(), N = [], A = new Date(h, d, 0).getDate();
388
+ for (let M = u - 1; M >= 0; M--)
389
+ N.push(A - M);
390
+ for (let M = 1; M <= _; M++)
391
+ N.push(M);
392
+ const H = 42 - N.length;
393
+ for (let M = 1; M <= H; M++)
394
+ N.push(M);
395
+ return N;
396
+ }, [d, h]), W = (g) => {
397
+ const l = g.target.value;
398
+ S || s(l), r == null || r(l);
399
+ }, O = (g, l, _) => {
365
400
  if (g === null)
366
401
  return;
367
- let u = d, L = h;
368
- i ? (u = u - 1, u < 0 && (u = 11, L = L - 1)) : _ && (u = u + 1, u > 11 && (u = 0, L = L + 1));
369
- const W = new Date(L, u, g), H = Yt(W);
370
- M(W), k(u), b(L), S || s(H), r == null || r(H), w(!1);
371
- }, O = () => {
402
+ let u = d, N = h;
403
+ l ? (u = u - 1, u < 0 && (u = 11, N = N - 1)) : _ && (u = u + 1, u > 11 && (u = 0, N = N + 1));
404
+ const A = new Date(N, u, g), H = Jt(A);
405
+ F(A), k(u), b(N), S || s(H), r == null || r(H), w(!1);
406
+ }, j = () => {
372
407
  d === 0 ? (k(11), b(h - 1)) : k(d - 1);
373
408
  }, m = () => {
374
409
  d === 11 ? (k(0), b(h + 1)) : k(d + 1);
375
- }, v = (g, i, _) => {
410
+ }, v = (g, l, _) => {
376
411
  if (!x || g === null)
377
412
  return !1;
378
- let u = d, L = h;
379
- return i ? (u = u - 1, u < 0 && (u = 11, L = L - 1)) : _ && (u = u + 1, u > 11 && (u = 0, L = L + 1)), x.getDate() === g && x.getMonth() === u && x.getFullYear() === L;
413
+ let u = d, N = h;
414
+ return l ? (u = u - 1, u < 0 && (u = 11, N = N - 1)) : _ && (u = u + 1, u > 11 && (u = 0, N = N + 1)), x.getDate() === g && x.getMonth() === u && x.getFullYear() === N;
380
415
  };
381
416
  return /* @__PURE__ */ c("div", { className: "w-full", children: [
382
417
  a && /* @__PURE__ */ e("label", { className: "block text-sm font-medium text-blackBG mb-2", children: a }),
@@ -400,7 +435,7 @@ const qt = () => /* @__PURE__ */ e(
400
435
  onClick: () => w(!D),
401
436
  className: "absolute left-4 flex items-center justify-center cursor-pointer",
402
437
  tabIndex: -1,
403
- children: /* @__PURE__ */ e(qt, {})
438
+ children: /* @__PURE__ */ e(Qt, {})
404
439
  }
405
440
  ),
406
441
  /* @__PURE__ */ e(
@@ -416,7 +451,7 @@ const qt = () => /* @__PURE__ */ e(
416
451
  ),
417
452
  ref: p,
418
453
  value: C,
419
- onChange: E,
454
+ onChange: W,
420
455
  placeholder: t,
421
456
  onClick: () => w(!0),
422
457
  readOnly: !0,
@@ -437,7 +472,7 @@ const qt = () => /* @__PURE__ */ e(
437
472
  "button",
438
473
  {
439
474
  type: "button",
440
- onClick: O,
475
+ onClick: j,
441
476
  className: "p-2 hover:bg-grayBlue rounded-lg transition-colors",
442
477
  children: /* @__PURE__ */ e(
443
478
  "svg",
@@ -461,7 +496,7 @@ const qt = () => /* @__PURE__ */ e(
461
496
  )
462
497
  }
463
498
  ),
464
- /* @__PURE__ */ e("h3", { className: "text-base font-semibold text-blackBG", children: Ut(d, h) }),
499
+ /* @__PURE__ */ e("h3", { className: "text-base font-semibold text-blackBG", children: tr(d, h) }),
465
500
  /* @__PURE__ */ e(
466
501
  "button",
467
502
  {
@@ -491,7 +526,7 @@ const qt = () => /* @__PURE__ */ e(
491
526
  }
492
527
  )
493
528
  ] }),
494
- /* @__PURE__ */ e("div", { className: "grid grid-cols-7 gap-1 mb-2", children: Qt.map((g) => /* @__PURE__ */ e(
529
+ /* @__PURE__ */ e("div", { className: "grid grid-cols-7 gap-1 mb-2", children: rr.map((g) => /* @__PURE__ */ e(
495
530
  "div",
496
531
  {
497
532
  className: "text-center text-xs font-medium text-grayBlue5 py-2",
@@ -499,31 +534,31 @@ const qt = () => /* @__PURE__ */ e(
499
534
  },
500
535
  g
501
536
  )) }),
502
- /* @__PURE__ */ e("div", { className: "grid grid-cols-7 gap-1", children: I.map((g, i) => {
503
- const u = new Date(h, d, 1).getDay(), L = new Date(
537
+ /* @__PURE__ */ e("div", { className: "grid grid-cols-7 gap-1", children: I.map((g, l) => {
538
+ const u = new Date(h, d, 1).getDay(), N = new Date(
504
539
  h,
505
540
  d + 1,
506
541
  0
507
- ).getDate(), W = i < u, H = i >= u + L, F = !W && !H, he = v(
542
+ ).getDate(), A = l < u, H = l >= u + N, M = !A && !H, be = v(
508
543
  g,
509
- W,
544
+ A,
510
545
  H
511
546
  );
512
547
  return /* @__PURE__ */ e(
513
548
  "button",
514
549
  {
515
550
  type: "button",
516
- onClick: () => j(g, W, H),
551
+ onClick: () => O(g, A, H),
517
552
  disabled: g === null,
518
553
  className: y(
519
554
  "w-10 h-10 rounded-lg text-sm font-medium transition-colors",
520
555
  "hover:bg-[#E8F4FD] focus:outline-none focus:bg-[#E8F4FD]",
521
- F ? "text-blackBG" : "text-grayBlue5 opacity-50",
522
- he && "bg-[#16A34A] text-white hover:bg-[#16A34A] focus:bg-[#16A34A]"
556
+ M ? "text-blackBG" : "text-grayBlue5 opacity-50",
557
+ be && "bg-[#16A34A] text-white hover:bg-[#16A34A] focus:bg-[#16A34A]"
523
558
  ),
524
559
  children: g
525
560
  },
526
- i
561
+ l
527
562
  );
528
563
  }) })
529
564
  ]
@@ -534,22 +569,22 @@ const qt = () => /* @__PURE__ */ e(
534
569
  ] });
535
570
  }
536
571
  );
537
- ie.displayName = "DateInput";
538
- const ce = P(
572
+ de.displayName = "DateInput";
573
+ const pe = E(
539
574
  ({
540
575
  className: n,
541
576
  isFormatted: o,
542
577
  isReadable: a,
543
- error: l,
578
+ error: i,
544
579
  label: r,
545
580
  onChange: t,
546
581
  value: f,
547
582
  defaultValue: p,
548
- ...N
583
+ ...L
549
584
  }, s) => {
550
- const D = we(null);
551
- te(s, () => D.current);
552
- const w = !!a || !!o, d = ke(
585
+ const D = Ce(null);
586
+ re(s, () => D.current);
587
+ const w = !!a || !!o, d = ve(
553
588
  (b) => {
554
589
  if (b == null || b === "")
555
590
  return "";
@@ -558,19 +593,19 @@ const ce = P(
558
593
  },
559
594
  [w]
560
595
  ), h = {
561
- ...N,
596
+ ...L,
562
597
  type: "text",
563
598
  inputMode: "numeric",
564
599
  onChange: (b) => {
565
- const x = b.target, M = x.value, S = M.replace(/\D/g, ""), C = x.selectionStart || 0, B = M.slice(0, C).replace(/\D/g, "").length, V = d(S);
600
+ const x = b.target, F = x.value, S = F.replace(/\D/g, ""), C = x.selectionStart || 0, B = F.slice(0, C).replace(/\D/g, "").length, V = d(S);
566
601
  if (x.value = V, t) {
567
602
  const I = x.value;
568
603
  x.value = S, t(b), x.value = I;
569
604
  }
570
605
  if (w) {
571
- let I = 0, E = 0;
572
- for (; E < B && I < x.value.length; )
573
- /\d/.test(x.value[I]) && E++, I++;
606
+ let I = 0, W = 0;
607
+ for (; W < B && I < x.value.length; )
608
+ /\d/.test(x.value[I]) && W++, I++;
574
609
  x.setSelectionRange(I, I);
575
610
  }
576
611
  },
@@ -582,7 +617,7 @@ const ce = P(
582
617
  "focus:border-greenLight focus:outline-none focus:ring-0 focus:shadow-[0_0_0_4px_rgba(22,163,74,0.15)]",
583
618
  "disabled:cursor-not-allowed disabled:bg-lightGray disabled:opacity-50",
584
619
  "[appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",
585
- l && "border-red-500 hover:border-red-500 focus:border-red-500 focus:shadow-[0_0_0_4px_rgba(239,68,68,0.15)]",
620
+ i && "border-red-500 hover:border-red-500 focus:border-red-500 focus:shadow-[0_0_0_4px_rgba(239,68,68,0.15)]",
586
621
  n
587
622
  )
588
623
  };
@@ -595,88 +630,88 @@ const ce = P(
595
630
  ref: D
596
631
  }
597
632
  ) }),
598
- l && /* @__PURE__ */ e("p", { className: "mt-2 text-sm text-red-500", children: l })
633
+ i && /* @__PURE__ */ e("p", { className: "mt-2 text-sm text-red-500", children: i })
599
634
  ] });
600
635
  }
601
636
  );
602
- ce.displayName = "NumberField";
603
- const Jt = {
637
+ pe.displayName = "NumberField";
638
+ const or = {
604
639
  96: { name: "Кыргызстан", short: "KG", mask: "+996", length: 9 }
605
- }, er = (n) => {
640
+ }, ar = (n) => {
606
641
  const o = n.toUpperCase().split("").map((a) => 127397 + a.charCodeAt(0));
607
642
  return String.fromCodePoint(...o);
608
- }, K = () => Object.entries(Jt).map(([n, o]) => ({
643
+ }, J = () => Object.entries(or).map(([n, o]) => ({
609
644
  id: n,
610
645
  name: o.name,
611
646
  short: o.short,
612
647
  mask: o.mask,
613
648
  dialCode: o.mask.replace("+", ""),
614
649
  length: o.length,
615
- flag: er(o.short)
616
- })), Z = (n) => K().find((a) => a.id === n), J = (n, o) => {
617
- const a = o.dialCode, l = o.length;
650
+ flag: ar(o.short)
651
+ })), $ = (n) => J().find((a) => a.id === n), te = (n, o) => {
652
+ const a = o.dialCode, i = o.length;
618
653
  let r = n;
619
654
  n.startsWith(a) && (r = n.slice(a.length));
620
- const t = r.slice(0, l);
655
+ const t = r.slice(0, i);
621
656
  if (t.length === 0)
622
657
  return o.mask;
623
658
  let f = t;
624
659
  return t.length > 6 ? f = `${t.slice(0, 3)} ${t.slice(3, 6)} ${t.slice(6)}` : t.length > 3 && (f = `${t.slice(0, 3)} ${t.slice(3)}`), `${o.mask} ${f}`;
625
- }, tr = (n, o) => {
660
+ }, nr = (n, o) => {
626
661
  if (!n)
627
662
  return null;
628
- const a = n.replace(/\D/g, ""), l = K();
663
+ const a = n.replace(/\D/g, ""), i = J();
629
664
  if (n.startsWith("+")) {
630
- for (const r of l)
665
+ for (const r of i)
631
666
  if (n.startsWith(r.mask))
632
667
  return r;
633
668
  }
634
- for (const r of l)
669
+ for (const r of i)
635
670
  if (a.startsWith(r.dialCode))
636
671
  return r;
637
- return a.startsWith("0") && Z("96") || null;
638
- }, de = P(
672
+ return a.startsWith("0") && $("96") || null;
673
+ }, me = E(
639
674
  ({
640
675
  className: n,
641
676
  error: o,
642
677
  label: a,
643
- value: l,
678
+ value: i,
644
679
  onChange: r,
645
680
  defaultCountry: t = "996",
646
681
  ...f
647
682
  }, p) => {
648
- const [N, s] = T(""), [D, w] = T(t), [d, k] = T(!1), [h, b] = T(""), x = l !== void 0, M = x ? l : N, { ref: S } = z(d, () => {
683
+ const [L, s] = T(""), [D, w] = T(t), [d, k] = T(!1), [h, b] = T(""), x = i !== void 0, F = x ? i : L, { ref: S } = K(d, () => {
649
684
  k(!1), b("");
650
- }), C = $(() => K(), []), B = Z(D) || C[0], V = $(() => {
685
+ }), C = Z(() => J(), []), B = $(D) || C[0], V = Z(() => {
651
686
  if (!h)
652
687
  return C;
653
688
  const m = h.toLowerCase();
654
689
  return C.filter(
655
690
  (v) => v.name.toLowerCase().includes(m) || v.mask.toLowerCase().includes(m) || v.short.toLowerCase().includes(m)
656
691
  );
657
- }, [C, h]), E = ((m) => {
692
+ }, [C, h]), W = ((m) => {
658
693
  if (!m)
659
694
  return "";
660
695
  const v = m.replace(/\D/g, "");
661
696
  let g = v;
662
697
  (v.startsWith(B.dialCode) || m.startsWith(B.mask)) && (g = v.slice(B.dialCode.length));
663
- const i = g.slice(0, B.length);
664
- return i.length === 0 ? "" : i.length <= 3 ? i : i.length <= 6 ? `${i.slice(0, 3)} ${i.slice(3)}` : `${i.slice(0, 3)} ${i.slice(3, 6)} ${i.slice(6)}`;
665
- })(M), j = (m) => {
698
+ const l = g.slice(0, B.length);
699
+ return l.length === 0 ? "" : l.length <= 3 ? l : l.length <= 6 ? `${l.slice(0, 3)} ${l.slice(3)}` : `${l.slice(0, 3)} ${l.slice(3, 6)} ${l.slice(6)}`;
700
+ })(F), O = (m) => {
666
701
  w(m), k(!1), b("");
667
- const v = M.replace(/\D/g, ""), g = Z(m);
702
+ const v = F.replace(/\D/g, ""), g = $(m);
668
703
  if (!g)
669
704
  return;
670
- let i = v;
671
- v.startsWith(B.dialCode) && (i = v.slice(B.dialCode.length));
672
- const _ = J(i, g);
705
+ let l = v;
706
+ v.startsWith(B.dialCode) && (l = v.slice(B.dialCode.length));
707
+ const _ = te(l, g);
673
708
  x || s(_), r == null || r(_);
674
- }, O = (m) => {
675
- const v = m.target.value, g = v.replace(/\D/g, ""), i = tr(
709
+ }, j = (m) => {
710
+ const v = m.target.value, g = v.replace(/\D/g, ""), l = nr(
676
711
  v
677
712
  );
678
- i && i.id !== D && w(i.id);
679
- const _ = i || Z(D) || B, u = J(g, _);
713
+ l && l.id !== D && w(l.id);
714
+ const _ = l || $(D) || B, u = te(g, _);
680
715
  x || s(u), r == null || r(u);
681
716
  };
682
717
  return /* @__PURE__ */ c("div", { className: "w-full", children: [
@@ -761,7 +796,7 @@ const Jt = {
761
796
  "button",
762
797
  {
763
798
  type: "button",
764
- onClick: () => j(m.id),
799
+ onClick: () => O(m.id),
765
800
  className: y(
766
801
  "w-full px-4 py-3 text-left cursor-pointer text-base text-blackBG transition-colors",
767
802
  "hover:bg-[#E8F4FD] focus:bg-[#E8F4FD] focus:outline-none",
@@ -796,8 +831,8 @@ const Jt = {
796
831
  n
797
832
  ),
798
833
  ref: p,
799
- value: E,
800
- onChange: O,
834
+ value: W,
835
+ onChange: j,
801
836
  placeholder: "XXX XXX XXX",
802
837
  ...f
803
838
  }
@@ -809,21 +844,21 @@ const Jt = {
809
844
  ] });
810
845
  }
811
846
  );
812
- de.displayName = "PhoneInput";
813
- const pe = P(
847
+ me.displayName = "PhoneInput";
848
+ const ue = E(
814
849
  ({
815
850
  label: n,
816
851
  options: o = [],
817
852
  value: a = [],
818
- name: l,
853
+ name: i,
819
854
  onChange: r,
820
855
  error: t,
821
856
  className: f,
822
857
  direction: p = "column"
823
- }, N) => /* @__PURE__ */ c(
858
+ }, L) => /* @__PURE__ */ c(
824
859
  "div",
825
860
  {
826
- ref: N,
861
+ ref: L,
827
862
  className: y("flex flex-col gap-2", f),
828
863
  children: [
829
864
  n && /* @__PURE__ */ e("label", { className: "text-sm font-medium text-blackBG mb-1", children: n }),
@@ -835,9 +870,9 @@ const pe = P(
835
870
  p === "column" ? "flex-col" : "flex-row flex-wrap"
836
871
  ),
837
872
  children: o == null ? void 0 : o.map((s) => /* @__PURE__ */ e(
838
- me,
873
+ fe,
839
874
  {
840
- name: l,
875
+ name: i,
841
876
  label: s == null ? void 0 : s.label,
842
877
  value: s == null ? void 0 : s.value,
843
878
  checked: a === (s == null ? void 0 : s.value),
@@ -853,9 +888,9 @@ const pe = P(
853
888
  }
854
889
  )
855
890
  );
856
- pe.displayName = "RadioGroup";
857
- const me = P(
858
- ({ className: n, label: o, error: a, ...l }, r) => /* @__PURE__ */ c("div", { className: "w-full", children: [
891
+ ue.displayName = "RadioGroup";
892
+ const fe = E(
893
+ ({ className: n, label: o, error: a, ...i }, r) => /* @__PURE__ */ c("div", { className: "w-full", children: [
859
894
  /* @__PURE__ */ c("label", { className: "flex items-start gap-3 cursor-pointer group", children: [
860
895
  /* @__PURE__ */ c("div", { className: "relative flex items-center justify-center mt-0.5", children: [
861
896
  /* @__PURE__ */ e(
@@ -864,7 +899,7 @@ const me = P(
864
899
  type: "radio",
865
900
  className: "peer sr-only",
866
901
  ref: r,
867
- ...l
902
+ ...i
868
903
  }
869
904
  ),
870
905
  /* @__PURE__ */ e(
@@ -902,18 +937,18 @@ const me = P(
902
937
  a && /* @__PURE__ */ e("p", { className: "mt-2 text-sm text-red-500", children: a })
903
938
  ] })
904
939
  );
905
- me.displayName = "Radio";
906
- const ue = P(
940
+ fe.displayName = "Radio";
941
+ const he = E(
907
942
  ({
908
943
  className: n,
909
944
  error: o,
910
945
  label: a,
911
- options: l = [],
946
+ options: i = [],
912
947
  placeholder: r = "Выберите категорию",
913
948
  value: t,
914
949
  onChange: f,
915
950
  onBlur: p,
916
- name: N,
951
+ name: L,
917
952
  disabled: s,
918
953
  ...D
919
954
  }, w) => {
@@ -921,21 +956,21 @@ const ue = P(
921
956
  ref: d,
922
957
  isShow: k,
923
958
  setIsShow: h
924
- } = z(!1);
925
- te(w, () => d.current);
926
- const b = l.find((C) => C.value === t), x = () => {
959
+ } = K(!1);
960
+ re(w, () => d.current);
961
+ const b = i.find((C) => C.value === t), x = () => {
927
962
  s || h(!k);
928
- }, M = (C) => {
963
+ }, F = (C) => {
929
964
  f && f({
930
965
  target: {
931
- name: N,
966
+ name: L,
932
967
  value: C.value
933
968
  }
934
969
  }), h(!1);
935
970
  }, S = (C) => {
936
971
  p && p({
937
972
  target: {
938
- name: N,
973
+ name: L,
939
974
  value: t
940
975
  }
941
976
  });
@@ -998,11 +1033,11 @@ const ue = P(
998
1033
  "absolute left-0 z-[100] mt-2 w-full overflow-hidden rounded-2xl border-[1px] border-grayBlue bg-white shadow-xl",
999
1034
  "transition-all duration-200 ease-in-out"
1000
1035
  ),
1001
- children: /* @__PURE__ */ e("div", { className: "max-h-[280px] overflow-y-auto py-2", children: l.length > 0 ? l.map((C) => /* @__PURE__ */ e(
1036
+ children: /* @__PURE__ */ e("div", { className: "max-h-[280px] overflow-y-auto py-2", children: i.length > 0 ? i.map((C) => /* @__PURE__ */ e(
1002
1037
  "button",
1003
1038
  {
1004
1039
  type: "button",
1005
- onClick: () => M(C),
1040
+ onClick: () => F(C),
1006
1041
  className: y(
1007
1042
  "flex w-full items-center px-5 py-3 text-left text-base transition-colors",
1008
1043
  "hover:bg-green-50 active:bg-green-100",
@@ -1023,11 +1058,11 @@ const ue = P(
1023
1058
  );
1024
1059
  }
1025
1060
  );
1026
- ue.displayName = "Select";
1027
- const rr = {
1028
- TitleBlock: ae,
1029
- WarningCard: q
1030
- }, or = [
1061
+ he.displayName = "Select";
1062
+ const sr = {
1063
+ TitleBlock: Y,
1064
+ WarningCard: U
1065
+ }, ir = [
1031
1066
  {
1032
1067
  label: "TitleBlock",
1033
1068
  value: "TitleBlock"
@@ -1036,25 +1071,25 @@ const rr = {
1036
1071
  label: "WarningCard",
1037
1072
  value: "WarningCard"
1038
1073
  }
1039
- ], ar = {
1040
- text: le,
1041
- number: ce,
1042
- phone: de,
1043
- select: ue,
1044
- date: ie,
1045
- radio: pe,
1046
- checkbox: se,
1047
- file: Qe
1048
- }, nr = (n, {
1074
+ ], lr = {
1075
+ text: ce,
1076
+ number: pe,
1077
+ phone: me,
1078
+ select: he,
1079
+ date: de,
1080
+ radio: ue,
1081
+ checkbox: le,
1082
+ file: tt
1083
+ }, cr = (n, {
1049
1084
  register: o,
1050
1085
  errors: a,
1051
- control: l
1086
+ control: i
1052
1087
  }) => {
1053
- const { t: r } = oe();
1088
+ const { t: r } = ae();
1054
1089
  return n.map((t, f) => {
1055
- var N, s, D;
1090
+ var L, s, D;
1056
1091
  if ((t == null ? void 0 : t.componentType) === "component") {
1057
- const w = rr[t == null ? void 0 : t.key];
1092
+ const w = sr[t == null ? void 0 : t.key];
1058
1093
  if (w)
1059
1094
  return /* @__PURE__ */ e(
1060
1095
  w,
@@ -1064,28 +1099,28 @@ const rr = {
1064
1099
  f
1065
1100
  );
1066
1101
  }
1067
- const p = ar[t == null ? void 0 : t.type];
1102
+ const p = lr[t == null ? void 0 : t.type];
1068
1103
  if (p) {
1069
1104
  const w = ["select", "radio", "checkbox", "file"].includes(
1070
1105
  t.type
1071
- ), d = t != null && t.name ? (N = a[t == null ? void 0 : t.name]) == null ? void 0 : N.message : void 0, k = d ? r(d, d) : void 0, h = {
1106
+ ), d = t != null && t.name ? (L = a[t == null ? void 0 : t.name]) == null ? void 0 : L.message : void 0, k = d ? r(d, d) : void 0, h = {
1072
1107
  ...t.field_props,
1073
1108
  label: (s = t.field_props) != null && s.label ? r(t.field_props.label, t.field_props.label) : void 0,
1074
1109
  placeholder: (D = t.field_props) != null && D.placeholder ? r(t.field_props.placeholder, t.field_props.placeholder) : void 0
1075
1110
  };
1076
- return w && l && (t != null && t.name) ? /* @__PURE__ */ e(
1077
- Ye,
1111
+ return w && i && (t != null && t.name) ? /* @__PURE__ */ e(
1112
+ Qe,
1078
1113
  {
1079
1114
  name: t.name,
1080
- control: l,
1115
+ control: i,
1081
1116
  rules: { validate: t.validate },
1082
- render: ({ field: { onChange: b, value: x, name: M, ref: S } }) => /* @__PURE__ */ e(
1117
+ render: ({ field: { onChange: b, value: x, name: F, ref: S } }) => /* @__PURE__ */ e(
1083
1118
  p,
1084
1119
  {
1085
1120
  ...h,
1086
1121
  onChange: b,
1087
1122
  value: x,
1088
- name: M,
1123
+ name: F,
1089
1124
  ref: S,
1090
1125
  error: k
1091
1126
  }
@@ -1113,105 +1148,105 @@ const rr = {
1113
1148
  }
1114
1149
  return null;
1115
1150
  });
1116
- }, U = ({
1151
+ }, ee = ({
1117
1152
  label: n,
1118
1153
  type: o,
1119
1154
  options: a
1120
1155
  }) => ({
1121
- dataType: X.select,
1156
+ dataType: z.select,
1122
1157
  label: n,
1123
1158
  type: o,
1124
1159
  options: a
1125
- }), ka = {
1160
+ }), Na = {
1126
1161
  title: "Оставьте заявку, чтобы подключить MKassa",
1127
1162
  subtitle: "с Вами свяжется наш специалист и поможет с подключением сервиса"
1128
- }, Ca = {
1163
+ }, _a = {
1129
1164
  title: "Форма заявки",
1130
1165
  description: "Форма заявки ",
1131
- types: [ee.form]
1166
+ types: [q.form]
1132
1167
  // propsToEdit: propsToEdit,
1133
- }, sr = {
1168
+ }, dr = {
1134
1169
  title: "Оставьте заявку, чтобы подключить MKassa",
1135
1170
  description: "с Вами свяжется наш специалист и поможет с подключением сервиса",
1136
1171
  color: "#45464b"
1137
- }, lr = U({
1172
+ }, pr = ee({
1138
1173
  label: "Тип поля",
1139
1174
  type: "componentType",
1140
- options: Zt
1141
- }), ir = U({
1175
+ options: Xt
1176
+ }), mr = ee({
1142
1177
  label: "Компонент",
1143
1178
  type: "componentType",
1144
- options: or
1145
- }), cr = U({
1179
+ options: ir
1180
+ }), ur = ee({
1146
1181
  label: "Тип поля",
1147
1182
  type: "fieldType",
1148
- options: $t
1149
- }), dr = Gt({
1183
+ options: zt
1184
+ }), fr = Zt({
1150
1185
  label: "Имя поля",
1151
1186
  type: "name"
1152
- }), pr = {
1187
+ }), hr = {
1153
1188
  type: "fields",
1154
1189
  dataType: "array",
1155
1190
  label: "Поля для формы",
1156
1191
  data: {
1157
- componentType: lr,
1158
- type: cr,
1159
- key: ir,
1160
- name: dr,
1192
+ componentType: pr,
1193
+ type: ur,
1194
+ key: mr,
1195
+ name: fr,
1161
1196
  props: {
1162
1197
  label: "Свойства компонента",
1163
- dataType: X.object,
1198
+ dataType: z.object,
1164
1199
  data: {
1165
1200
  keys: {
1166
- title: G.TITLE,
1167
- description: G.DESCRIPTION,
1168
- html_content: G.HTML_CONTENT
1201
+ title: P.TITLE,
1202
+ description: P.DESCRIPTION,
1203
+ html_content: P.HTML_CONTENT
1169
1204
  }
1170
1205
  }
1171
1206
  },
1172
1207
  field_props: {
1173
1208
  label: "Свойства поля",
1174
- dataType: X.object,
1209
+ dataType: z.object,
1175
1210
  data: {
1176
1211
  keys: {
1177
- label: G.TITLE,
1178
- placeholder: G.DESCRIPTION,
1179
- is_required: G.BOOLEAN
1212
+ label: P.TITLE,
1213
+ placeholder: P.DESCRIPTION,
1214
+ is_required: P.BOOLEAN
1180
1215
  }
1181
1216
  }
1182
1217
  }
1183
1218
  }
1184
- }, mr = [
1219
+ }, gr = [
1185
1220
  "title",
1186
1221
  "subtitle",
1187
1222
  "color",
1188
- pr,
1189
- At
1190
- ], fe = ({
1223
+ hr,
1224
+ Rt
1225
+ ], ge = ({
1191
1226
  title: n,
1192
1227
  subtitle: o,
1193
1228
  color: a,
1194
- gridCols: l = 1,
1229
+ gridCols: i = 1,
1195
1230
  gridRow: r = 2,
1196
1231
  fields: t = [],
1197
1232
  requestForm: f
1198
1233
  }) => {
1199
- var j;
1200
- const { t: p } = oe(), [N, s] = T(!1), [D, w] = T(!1), [d, k] = T(null), h = Ue(960), {
1234
+ var O;
1235
+ const { t: p } = ae(), [L, s] = T(!1), [D, w] = T(!1), [d, k] = T(null), h = et(960), {
1201
1236
  register: b,
1202
1237
  handleSubmit: x,
1203
- watch: M,
1238
+ watch: F,
1204
1239
  reset: S,
1205
1240
  control: C,
1206
1241
  formState: { errors: B }
1207
- } = Ke({
1242
+ } = Je({
1208
1243
  defaultValues: {
1209
1244
  fio: "",
1210
1245
  phone: "",
1211
1246
  business_category: "",
1212
1247
  agreement: !1
1213
1248
  }
1214
- }), V = M("agreement"), I = async (O) => {
1249
+ }), V = F("agreement"), I = async (j) => {
1215
1250
  if (!(f != null && f.api_url)) {
1216
1251
  console.warn("API URL is not defined in requestForm props");
1217
1252
  return;
@@ -1219,10 +1254,10 @@ const rr = {
1219
1254
  w(!0), k(null);
1220
1255
  try {
1221
1256
  const m = new FormData();
1222
- Object.entries(O).forEach(([i, _]) => {
1257
+ Object.entries(j).forEach(([l, _]) => {
1223
1258
  _ != null && (Array.isArray(_) ? _.forEach((u) => {
1224
- m.append(i, u);
1225
- }) : m.append(i, _));
1259
+ m.append(l, u);
1260
+ }) : m.append(l, _));
1226
1261
  });
1227
1262
  const v = await fetch(f.api_url, {
1228
1263
  method: "POST",
@@ -1234,8 +1269,8 @@ const rr = {
1234
1269
  throw new Error(`HTTP error! status: ${v.status}`);
1235
1270
  const g = v.headers.get("content-type");
1236
1271
  if (g && g.includes("application/json")) {
1237
- const i = await v.json();
1238
- console.log("Success:", i);
1272
+ const l = await v.json();
1273
+ console.log("Success:", l);
1239
1274
  }
1240
1275
  s(!0), S();
1241
1276
  } catch (m) {
@@ -1248,12 +1283,12 @@ const rr = {
1248
1283
  } finally {
1249
1284
  w(!1);
1250
1285
  }
1251
- }, E = nr(t || [], {
1286
+ }, W = cr(t || [], {
1252
1287
  register: b,
1253
1288
  errors: B,
1254
1289
  control: C
1255
1290
  });
1256
- return /* @__PURE__ */ e(re, { children: /* @__PURE__ */ e(
1291
+ return /* @__PURE__ */ e(oe, { children: /* @__PURE__ */ e(
1257
1292
  "form",
1258
1293
  {
1259
1294
  onSubmit: x(I),
@@ -1271,7 +1306,7 @@ const rr = {
1271
1306
  /* @__PURE__ */ e("h2", { className: "text-[36px] leading-[44px] font-semibold m-0 mb-3 text-blackBG max-tablet:text-[28px] max-tablet:leading-[36px]", children: p(n || "", n) }),
1272
1307
  /* @__PURE__ */ e("span", { className: "text-[18px] leading-[26px] text-graySoft max-tablet:text-[16px] max-tablet:leading-[24px]", children: p(o || "", o) })
1273
1308
  ] }),
1274
- N ? /* @__PURE__ */ e("div", { className: "flex flex-col items-center w-[640px] gap-8 max-tablet:w-full animate-in fade-in duration-500", children: /* @__PURE__ */ c("div", { className: "text-center", children: [
1309
+ L ? /* @__PURE__ */ e("div", { className: "flex flex-col items-center w-[640px] gap-8 max-tablet:w-full animate-in fade-in duration-500", children: /* @__PURE__ */ c("div", { className: "text-center", children: [
1275
1310
  /* @__PURE__ */ e("div", { className: "w-20 h-20 rounded-full bg-gradient-to-br from-greenLight to-green flex items-center justify-center mx-auto mb-6 shadow-lg animate-in zoom-in duration-500", children: /* @__PURE__ */ e(
1276
1311
  "svg",
1277
1312
  {
@@ -1297,7 +1332,7 @@ const rr = {
1297
1332
  "С Вами свяжется наш специалист и поможет с подключением сервиса"
1298
1333
  ) }),
1299
1334
  /* @__PURE__ */ e(
1300
- R,
1335
+ X,
1301
1336
  {
1302
1337
  className: "justify-center m-auto mt-6",
1303
1338
  title: p("form.close", "Закрыть"),
@@ -1307,20 +1342,20 @@ const rr = {
1307
1342
  }
1308
1343
  )
1309
1344
  ] })
1310
- ] }) }) : /* @__PURE__ */ c(Q, { children: [
1345
+ ] }) }) : /* @__PURE__ */ c(R, { children: [
1311
1346
  /* @__PURE__ */ e(
1312
1347
  "div",
1313
1348
  {
1314
1349
  className: "w-[640px] mb-8 max-tablet:w-full grid gap-6",
1315
1350
  style: {
1316
- gridTemplateColumns: `repeat(${h ? 1 : l}, 1fr)`,
1351
+ gridTemplateColumns: `repeat(${h ? 1 : i}, 1fr)`,
1317
1352
  gridTemplateRows: `repeat(${r}, auto)`
1318
1353
  },
1319
- children: E
1354
+ children: W
1320
1355
  }
1321
1356
  ),
1322
1357
  /* @__PURE__ */ e("div", { className: "pt-2", children: /* @__PURE__ */ e(
1323
- Y,
1358
+ Q,
1324
1359
  {
1325
1360
  ...b("agreement", {
1326
1361
  required: p(
@@ -1328,8 +1363,8 @@ const rr = {
1328
1363
  "Необходимо согласие на обработку персональных данных"
1329
1364
  )
1330
1365
  }),
1331
- error: (j = B.agreement) == null ? void 0 : j.message,
1332
- label: /* @__PURE__ */ c(Q, { children: [
1366
+ error: (O = B.agreement) == null ? void 0 : O.message,
1367
+ label: /* @__PURE__ */ c(R, { children: [
1333
1368
  p("form.i_agree", "Я соглашаюсь с"),
1334
1369
  " ",
1335
1370
  /* @__PURE__ */ e(
@@ -1337,8 +1372,8 @@ const rr = {
1337
1372
  {
1338
1373
  type: "button",
1339
1374
  className: "text-greenLight hover:text-green underline transition-colors duration-200 bg-transparent border-0 p-0 cursor-pointer",
1340
- onClick: (O) => {
1341
- O.preventDefault();
1375
+ onClick: (j) => {
1376
+ j.preventDefault();
1342
1377
  },
1343
1378
  children: p(
1344
1379
  "form.agreement_link",
@@ -1351,13 +1386,13 @@ const rr = {
1351
1386
  ) }),
1352
1387
  d && /* @__PURE__ */ e("div", { className: "mt-4 p-4 bg-red-50 border border-red-200 text-red-600 rounded-xl text-sm w-[640px] max-tablet:w-full animate-in fade-in slide-in-from-top-1", children: d }),
1353
1388
  /* @__PURE__ */ e("div", { className: "mt-6 w-[640px] max-tablet:w-full", children: /* @__PURE__ */ e(
1354
- R,
1389
+ X,
1355
1390
  {
1356
1391
  loading: D,
1357
1392
  className: "w-full whitespace-nowrap transition-all duration-200 hover:scale-[1.02] active:scale-[0.98]",
1358
1393
  type: "submit",
1359
- size: De.XL,
1360
- variant: Ne.Primary,
1394
+ size: Ne.XL,
1395
+ variant: _e.Primary,
1361
1396
  disabled: !V || D,
1362
1397
  children: p("form.submit", "Отправить заявку")
1363
1398
  }
@@ -1369,112 +1404,123 @@ const rr = {
1369
1404
  }
1370
1405
  ) });
1371
1406
  };
1372
- fe.propsToEdit = mr;
1373
- const va = {
1374
- MainBanner: { key: "MainBanner", component: Pe },
1375
- Banner: { key: "Banner", component: xe },
1376
- CardImageList: { key: "CardImageList", component: He },
1377
- Stepper: { key: "Stepper", component: Le },
1378
- Segments: { key: "Segments", component: _e },
1379
- VideoFull: { key: "VideoFull", component: Be },
1380
- VideoList: { key: "VideoList", component: Se },
1381
- VideoListMini: { key: "VideoListMini", component: Me },
1382
- ContentCardList: { key: "ContentCardList", component: Fe },
1383
- CardIconList: { key: "CardIconList", component: Ve },
1384
- MultiCards: { key: "MultiCards", component: Ie },
1385
- Partners: { key: "Partners", component: Te },
1407
+ ge.propsToEdit = gr;
1408
+ const Ba = {
1409
+ MainBanner: { key: "MainBanner", component: We },
1410
+ Banner: { key: "Banner", component: we },
1411
+ CardImageList: { key: "CardImageList", component: Ee },
1412
+ Stepper: { key: "Stepper", component: Be },
1413
+ Segments: { key: "Segments", component: Se },
1414
+ VideoFull: { key: "VideoFull", component: Fe },
1415
+ VideoList: { key: "VideoList", component: Me },
1416
+ VideoListMini: { key: "VideoListMini", component: Ve },
1417
+ ContentCardList: { key: "ContentCardList", component: Ie },
1418
+ CardIconList: { key: "CardIconList", component: Te },
1419
+ MultiCards: { key: "MultiCards", component: He },
1420
+ Partners: { key: "Partners", component: Pe },
1386
1421
  PartnersColors: { key: "PartnersColors", component: Oe },
1387
- WarningCard: { key: "WarningCard", component: q },
1388
- Faq: { key: "Faq", component: Ee },
1422
+ WarningCard: { key: "WarningCard", component: U },
1423
+ Faq: { key: "Faq", component: Ae },
1389
1424
  DownloadFileBanner: {
1390
1425
  key: "DownloadFileBanner",
1391
- component: Ge
1426
+ component: $e
1392
1427
  },
1393
- DownloadFileHalf: { key: "DownloadFileHalf", component: Ze },
1394
- DownloadFileFull: { key: "DownloadFileFull", component: Ae },
1395
- DownloadFileMini: { key: "DownloadFileMini", component: $e },
1396
- InstructionList: { key: "InstructionList", component: We },
1397
- PreviewList: { key: "PreviewList", component: je },
1398
- SwiperList: { key: "SwiperList", component: at },
1399
- AnimatedSwiper: { key: "AnimatedSwiper", component: Re },
1400
- InfoBannerList: { key: "InfoBannerList", component: Je },
1401
- TasksBannerList: { key: "TasksBannerList", component: nt },
1402
- VideoMainBanner: { key: "VideoMainBanner", component: st },
1403
- Space: { key: "Space", component: rt },
1404
- PromoPoster: { key: "PromoPoster", component: tt },
1428
+ DownloadFileHalf: { key: "DownloadFileHalf", component: Re },
1429
+ DownloadFileFull: { key: "DownloadFileFull", component: Ze },
1430
+ DownloadFileMini: { key: "DownloadFileMini", component: Xe },
1431
+ InstructionList: { key: "InstructionList", component: je },
1432
+ PreviewList: { key: "PreviewList", component: Ge },
1433
+ SwiperList: { key: "SwiperList", component: it },
1434
+ AnimatedSwiper: { key: "AnimatedSwiper", component: qe },
1435
+ InfoBannerList: { key: "InfoBannerList", component: rt },
1436
+ TasksBannerList: { key: "TasksBannerList", component: lt },
1437
+ VideoMainBanner: { key: "VideoMainBanner", component: ct },
1438
+ Space: { key: "Space", component: nt },
1439
+ PromoPoster: { key: "PromoPoster", component: at },
1405
1440
  CardImageSecondaryList: {
1406
1441
  key: "CardImageSecondaryList",
1407
- component: Xe
1442
+ component: Ye
1408
1443
  },
1409
- CardInfoTable: { key: "CardInfoTable", component: ze },
1410
- StandartTable: { key: "StandartTable", component: ot },
1411
- IntroBanner: { key: "IntroBanner", component: et },
1444
+ CardInfoTable: { key: "CardInfoTable", component: Ke },
1445
+ StandartTable: { key: "StandartTable", component: st },
1446
+ IntroBanner: { key: "IntroBanner", component: ot },
1412
1447
  DownloadFileBright: {
1413
1448
  key: "DownloadFileBright",
1414
- component: qe
1449
+ component: Ue
1415
1450
  },
1416
1451
  FormDefault: {
1417
1452
  key: "FormDefault",
1418
- component: fe
1453
+ component: ge
1419
1454
  },
1420
- Header: { key: "Header", component: Rt },
1421
- Footer: { key: "Footer", component: Xt },
1422
- TitleBlock: { key: "TitleBlock", component: ae }
1423
- }, Da = {
1424
- MainBanner: lt.component_props,
1425
- Banner: it.component_props,
1426
- CardImageList: ct.component_props,
1427
- Stepper: dt.component_props,
1428
- Segments: pt.component_props,
1429
- VideoFull: mt.component_props,
1430
- VideoList: ut.component_props,
1431
- VideoListMini: ft.component_props,
1432
- ContentCardList: ht.component_props,
1433
- CardIconList: gt.component_props,
1434
- MultiCards: bt.component_props,
1435
- Partners: xt.component_props,
1436
- PartnersColors: yt.component_props,
1437
- WarningCard: wt.component_props,
1438
- Faq: kt.component_props,
1439
- DownloadFileBanner: Ct.component_props,
1440
- DownloadFileHalf: vt.component_props,
1441
- DownloadFileFull: Dt.component_props,
1442
- DownloadFileMini: Nt.component_props,
1443
- InstructionList: Lt.component_props,
1444
- PreviewList: _t.component_props,
1445
- SwiperList: Bt.component_props,
1446
- AnimatedSwiper: St.component_props,
1447
- InfoBannerList: Mt.component_props,
1448
- TasksBannerList: Ft.component_props,
1449
- VideoMainBanner: Vt.component_props,
1450
- EmptyBox: It.component_props,
1451
- PromoPoster: Tt.component_props,
1452
- CardImageSecondaryList: Ht.component_props,
1453
- CardInfoTable: Pt.component_props,
1454
- StandartTable: Et.component_props,
1455
- IntroBanner: Wt.component_props,
1456
- DownloadFileBright: Ot.component_props,
1457
- FormDefault: sr,
1458
- TitleBlock: jt.component_props
1459
- }, Na = {
1455
+ Header: { key: "Header", component: qt },
1456
+ Footer: { key: "Footer", component: Yt },
1457
+ TitleBlock: { key: "TitleBlock", component: Y },
1458
+ ActionCardList: { key: "ActionCardList", component: ie }
1459
+ }, Sa = {
1460
+ MainBanner: dt.component_props,
1461
+ Banner: pt.component_props,
1462
+ CardImageList: mt.component_props,
1463
+ Stepper: ut.component_props,
1464
+ Segments: ft.component_props,
1465
+ VideoFull: ht.component_props,
1466
+ VideoList: gt.component_props,
1467
+ VideoListMini: bt.component_props,
1468
+ ContentCardList: xt.component_props,
1469
+ CardIconList: yt.component_props,
1470
+ MultiCards: wt.component_props,
1471
+ Partners: kt.component_props,
1472
+ PartnersColors: Ct.component_props,
1473
+ WarningCard: vt.component_props,
1474
+ Faq: Dt.component_props,
1475
+ DownloadFileBanner: Lt.component_props,
1476
+ DownloadFileHalf: Nt.component_props,
1477
+ DownloadFileFull: _t.component_props,
1478
+ DownloadFileMini: Bt.component_props,
1479
+ InstructionList: St.component_props,
1480
+ PreviewList: Ft.component_props,
1481
+ SwiperList: Mt.component_props,
1482
+ AnimatedSwiper: Vt.component_props,
1483
+ InfoBannerList: It.component_props,
1484
+ TasksBannerList: Tt.component_props,
1485
+ VideoMainBanner: Ht.component_props,
1486
+ EmptyBox: Pt.component_props,
1487
+ PromoPoster: Et.component_props,
1488
+ CardImageSecondaryList: Wt.component_props,
1489
+ CardInfoTable: At.component_props,
1490
+ StandartTable: jt.component_props,
1491
+ IntroBanner: Ot.component_props,
1492
+ DownloadFileBright: Gt.component_props,
1493
+ FormDefault: dr,
1494
+ TitleBlock: $t.component_props,
1495
+ ActionCardList: {}
1496
+ }, Fa = {
1497
+ title: "Список карточек действий",
1498
+ description: "Компонент для отображения списка карточек действий с иконками и ссылками. Используется для представления различных действий или ссылок в виде сетки карточек.",
1499
+ types: [q.lists],
1500
+ propsToEdit: se
1501
+ }, Ma = {
1460
1502
  title: "Предупреждающая карточка",
1461
1503
  description: "Компонент для отображения предупреждающей информации в виде карточки с иконкой, заголовком и описанием. Используется для привлечения внимания к важной информации или предупреждениям.",
1462
- types: [ee.cards],
1504
+ types: [q.cards],
1463
1505
  propsToEdit: ne
1464
1506
  };
1465
1507
  export {
1466
- Da as A,
1467
- fe as F,
1468
- q as W,
1469
- va as a,
1470
- or as b,
1471
- rr as c,
1472
- sr as d,
1473
- pr as e,
1474
- Ca as f,
1475
- mr as g,
1476
- ka as i,
1508
+ Sa as A,
1509
+ ge as F,
1510
+ U as W,
1511
+ ie as a,
1512
+ Ba as b,
1513
+ Fa as c,
1514
+ Ut as d,
1515
+ se as e,
1516
+ _a as f,
1517
+ sr as g,
1518
+ ir as h,
1519
+ Na as i,
1520
+ dr as j,
1521
+ hr as k,
1522
+ gr as l,
1477
1523
  ne as p,
1478
- nr as r,
1479
- Na as w
1524
+ cr as r,
1525
+ Ma as w
1480
1526
  };