md-components-mdigial-azamat 0.0.99 → 0.0.101

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, u, w, h;
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: (u = G[r]) == null ? void 0 : u.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: (w = G[r]) == null ? void 0 : w.textColor },
156
157
  children: n
157
158
  }
158
159
  ),
@@ -160,41 +161,75 @@ 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: (h = G[r]) == null ? void 0 : h.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
- direction: f = "column"
187
- }, p) => {
188
- const N = (s) => {
189
- if (!l)
221
+ direction: u = "column"
222
+ }, w) => {
223
+ const h = (s) => {
224
+ if (!i)
190
225
  return;
191
- const D = a.includes(s) ? a.filter((w) => w !== s) : [...a, s];
192
- l(D);
226
+ const N = a.includes(s) ? a.filter((k) => k !== s) : [...a, s];
227
+ i(N);
193
228
  };
194
229
  return /* @__PURE__ */ c(
195
230
  "div",
196
231
  {
197
- ref: p,
232
+ ref: w,
198
233
  className: y("flex flex-col gap-2", t),
199
234
  children: [
200
235
  n && /* @__PURE__ */ e("label", { className: "text-sm font-medium text-blackBG mb-1", children: n }),
@@ -203,14 +238,14 @@ const se = P(
203
238
  {
204
239
  className: y(
205
240
  "flex gap-4",
206
- f === "column" ? "flex-col" : "flex-row flex-wrap"
241
+ u === "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: () => h(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
- ...f
344
- }, 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, () => {
346
- w(!1);
347
- }), V = $(() => Kt(C), [C]);
348
- ye(() => {
349
- V && (M(V), k(V.getMonth()), b(V.getFullYear()));
350
- }, [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);
378
+ ...u
379
+ }, w) => {
380
+ const [h, s] = T(""), [N, k] = T(!1), [d, C] = T((/* @__PURE__ */ new Date()).getMonth()), [f, x] = T((/* @__PURE__ */ new Date()).getFullYear()), [b, S] = T(null), F = i !== void 0, v = F ? i : h, { ref: B } = K(N, () => {
381
+ k(!1);
382
+ }), M = Z(() => er(v), [v]);
383
+ ke(() => {
384
+ M && (S(M), C(M.getMonth()), x(M.getFullYear()));
385
+ }, [M]);
386
+ const I = Z(() => {
387
+ const m = new Date(f, d, 1), _ = new Date(f, d + 1, 0).getDate(), l = m.getDay(), L = [], A = new Date(f, d, 0).getDate();
388
+ for (let V = l - 1; V >= 0; V--)
389
+ L.push(A - V);
390
+ for (let V = 1; V <= _; V++)
391
+ L.push(V);
357
392
  const H = 42 - L.length;
358
- for (let F = 1; F <= H; F++)
359
- L.push(F);
393
+ for (let V = 1; V <= H; V++)
394
+ L.push(V);
360
395
  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, _) => {
365
- if (g === null)
396
+ }, [d, f]), W = (m) => {
397
+ const p = m.target.value;
398
+ F || s(p), r == null || r(p);
399
+ }, O = (m, p, _) => {
400
+ if (m === 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 = () => {
372
- d === 0 ? (k(11), b(h - 1)) : k(d - 1);
373
- }, m = () => {
374
- d === 11 ? (k(0), b(h + 1)) : k(d + 1);
375
- }, v = (g, i, _) => {
376
- if (!x || g === null)
402
+ let l = d, L = f;
403
+ p ? (l = l - 1, l < 0 && (l = 11, L = L - 1)) : _ && (l = l + 1, l > 11 && (l = 0, L = L + 1));
404
+ const A = new Date(L, l, m), H = Jt(A);
405
+ S(A), C(l), x(L), F || s(H), r == null || r(H), k(!1);
406
+ }, j = () => {
407
+ d === 0 ? (C(11), x(f - 1)) : C(d - 1);
408
+ }, g = () => {
409
+ d === 11 ? (C(0), x(f + 1)) : C(d + 1);
410
+ }, D = (m, p, _) => {
411
+ if (!b || m === 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 l = d, L = f;
414
+ return p ? (l = l - 1, l < 0 && (l = 11, L = L - 1)) : _ && (l = l + 1, l > 11 && (l = 0, L = L + 1)), b.getDate() === m && b.getMonth() === l && b.getFullYear() === L;
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 }),
@@ -397,10 +432,10 @@ const qt = () => /* @__PURE__ */ e(
397
432
  "button",
398
433
  {
399
434
  type: "button",
400
- onClick: () => w(!D),
435
+ onClick: () => k(!N),
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(
@@ -414,19 +449,19 @@ const qt = () => /* @__PURE__ */ e(
414
449
  "bg-transparent border-none outline-none",
415
450
  "disabled:cursor-not-allowed disabled:opacity-50"
416
451
  ),
417
- ref: p,
418
- value: C,
419
- onChange: E,
452
+ ref: w,
453
+ value: v,
454
+ onChange: W,
420
455
  placeholder: t,
421
- onClick: () => w(!0),
456
+ onClick: () => k(!0),
422
457
  readOnly: !0,
423
- ...f
458
+ ...u
424
459
  }
425
460
  )
426
461
  ]
427
462
  }
428
463
  ),
429
- D && /* @__PURE__ */ c(
464
+ N && /* @__PURE__ */ c(
430
465
  "div",
431
466
  {
432
467
  ref: B,
@@ -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,12 +496,12 @@ 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, f) }),
465
500
  /* @__PURE__ */ e(
466
501
  "button",
467
502
  {
468
503
  type: "button",
469
- onClick: m,
504
+ onClick: g,
470
505
  className: "p-2 hover:bg-grayBlue rounded-lg transition-colors",
471
506
  children: /* @__PURE__ */ e(
472
507
  "svg",
@@ -491,39 +526,39 @@ 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((m) => /* @__PURE__ */ e(
495
530
  "div",
496
531
  {
497
532
  className: "text-center text-xs font-medium text-grayBlue5 py-2",
498
- children: g
533
+ children: m
499
534
  },
500
- g
535
+ m
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(
504
- h,
537
+ /* @__PURE__ */ e("div", { className: "grid grid-cols-7 gap-1", children: I.map((m, p) => {
538
+ const l = new Date(f, d, 1).getDay(), L = new Date(
539
+ f,
505
540
  d + 1,
506
541
  0
507
- ).getDate(), W = i < u, H = i >= u + L, F = !W && !H, he = v(
508
- g,
509
- W,
542
+ ).getDate(), A = p < l, H = p >= l + L, V = !A && !H, be = D(
543
+ m,
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),
517
- disabled: g === null,
551
+ onClick: () => O(m, A, H),
552
+ disabled: m === 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
+ V ? "text-blackBG" : "text-grayBlue5 opacity-50",
557
+ be && "bg-[#16A34A] text-white hover:bg-[#16A34A] focus:bg-[#16A34A]"
523
558
  ),
524
- children: g
559
+ children: m
525
560
  },
526
- i
561
+ p
527
562
  );
528
563
  }) })
529
564
  ]
@@ -534,44 +569,44 @@ 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
- value: f,
547
- defaultValue: p,
548
- ...N
581
+ value: u,
582
+ defaultValue: w,
583
+ ...h
549
584
  }, s) => {
550
- const D = we(null);
551
- te(s, () => D.current);
552
- const w = !!a || !!o, d = ke(
553
- (b) => {
554
- if (b == null || b === "")
585
+ const N = Ce(null);
586
+ re(s, () => N.current);
587
+ const k = !!a || !!o, d = ve(
588
+ (x) => {
589
+ if (x == null || x === "")
555
590
  return "";
556
- const x = Array.isArray(b) ? b.join("").replace(/\D/g, "") : b.toString().replace(/\D/g, "");
557
- return w ? x.replace(/\B(?=(\d{3})+(?!\d))/g, " ") : x;
591
+ const b = Array.isArray(x) ? x.join("").replace(/\D/g, "") : x.toString().replace(/\D/g, "");
592
+ return k ? b.replace(/\B(?=(\d{3})+(?!\d))/g, " ") : b;
558
593
  },
559
- [w]
560
- ), h = {
561
- ...N,
594
+ [k]
595
+ ), f = {
596
+ ...h,
562
597
  type: "text",
563
598
  inputMode: "numeric",
564
- 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);
566
- if (x.value = V, t) {
567
- const I = x.value;
568
- x.value = S, t(b), x.value = I;
599
+ onChange: (x) => {
600
+ const b = x.target, S = b.value, F = S.replace(/\D/g, ""), v = b.selectionStart || 0, B = S.slice(0, v).replace(/\D/g, "").length, M = d(F);
601
+ if (b.value = M, t) {
602
+ const I = b.value;
603
+ b.value = F, t(x), b.value = I;
569
604
  }
570
- if (w) {
571
- let I = 0, E = 0;
572
- for (; E < B && I < x.value.length; )
573
- /\d/.test(x.value[I]) && E++, I++;
574
- x.setSelectionRange(I, I);
605
+ if (k) {
606
+ let I = 0, W = 0;
607
+ for (; W < B && I < b.value.length; )
608
+ /\d/.test(b.value[I]) && W++, I++;
609
+ b.setSelectionRange(I, I);
575
610
  }
576
611
  },
577
612
  className: y(
@@ -582,102 +617,102 @@ 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
  };
589
- return f !== void 0 ? h.value = d(f) : p !== void 0 && (h.defaultValue = d(p)), /* @__PURE__ */ c("div", { className: "w-full", children: [
624
+ return u !== void 0 ? f.value = d(u) : w !== void 0 && (f.defaultValue = d(w)), /* @__PURE__ */ c("div", { className: "w-full", children: [
590
625
  r && /* @__PURE__ */ e("label", { className: "mb-2 block text-sm font-medium text-blackBG", children: r }),
591
626
  /* @__PURE__ */ e("div", { className: "group relative", children: /* @__PURE__ */ e(
592
627
  "input",
593
628
  {
594
- ...h,
595
- ref: D
629
+ ...f,
630
+ ref: N
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
- let f = t;
624
- 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) => {
658
+ let u = t;
659
+ return t.length > 6 ? u = `${t.slice(0, 3)} ${t.slice(3, 6)} ${t.slice(6)}` : t.length > 3 && (u = `${t.slice(0, 3)} ${t.slice(3)}`), `${o.mask} ${u}`;
660
+ }, nr = (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
- ...f
647
- }, 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, () => {
649
- k(!1), b("");
650
- }), C = $(() => K(), []), B = Z(D) || C[0], V = $(() => {
651
- if (!h)
652
- return C;
653
- const m = h.toLowerCase();
654
- return C.filter(
655
- (v) => v.name.toLowerCase().includes(m) || v.mask.toLowerCase().includes(m) || v.short.toLowerCase().includes(m)
681
+ ...u
682
+ }, w) => {
683
+ const [h, s] = T(""), [N, k] = T(t), [d, C] = T(!1), [f, x] = T(""), b = i !== void 0, S = b ? i : h, { ref: F } = K(d, () => {
684
+ C(!1), x("");
685
+ }), v = Z(() => J(), []), B = $(N) || v[0], M = Z(() => {
686
+ if (!f)
687
+ return v;
688
+ const g = f.toLowerCase();
689
+ return v.filter(
690
+ (D) => D.name.toLowerCase().includes(g) || D.mask.toLowerCase().includes(g) || D.short.toLowerCase().includes(g)
656
691
  );
657
- }, [C, h]), E = ((m) => {
658
- if (!m)
659
- return "";
660
- const v = m.replace(/\D/g, "");
661
- let g = v;
662
- (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) => {
666
- w(m), k(!1), b("");
667
- const v = M.replace(/\D/g, ""), g = Z(m);
692
+ }, [v, f]), W = ((g) => {
668
693
  if (!g)
694
+ return "";
695
+ const D = g.replace(/\D/g, "");
696
+ let m = D;
697
+ (D.startsWith(B.dialCode) || g.startsWith(B.mask)) && (m = D.slice(B.dialCode.length));
698
+ const p = m.slice(0, B.length);
699
+ 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)}`;
700
+ })(S), O = (g) => {
701
+ k(g), C(!1), x("");
702
+ const D = S.replace(/\D/g, ""), m = $(g);
703
+ if (!m)
669
704
  return;
670
- let i = v;
671
- v.startsWith(B.dialCode) && (i = v.slice(B.dialCode.length));
672
- const _ = J(i, g);
673
- x || s(_), r == null || r(_);
674
- }, O = (m) => {
675
- const v = m.target.value, g = v.replace(/\D/g, ""), i = tr(
676
- v
705
+ let p = D;
706
+ D.startsWith(B.dialCode) && (p = D.slice(B.dialCode.length));
707
+ const _ = te(p, m);
708
+ b || s(_), r == null || r(_);
709
+ }, j = (g) => {
710
+ const D = g.target.value, m = D.replace(/\D/g, ""), p = nr(
711
+ D
677
712
  );
678
- i && i.id !== D && w(i.id);
679
- const _ = i || Z(D) || B, u = J(g, _);
680
- x || s(u), r == null || r(u);
713
+ p && p.id !== N && k(p.id);
714
+ const _ = p || $(N) || B, l = te(m, _);
715
+ b || s(l), r == null || r(l);
681
716
  };
682
717
  return /* @__PURE__ */ c("div", { className: "w-full", children: [
683
718
  a && /* @__PURE__ */ e("label", { className: "block text-sm font-medium text-blackBG mb-2", children: a }),
@@ -698,14 +733,14 @@ const Jt = {
698
733
  /* @__PURE__ */ c(
699
734
  "div",
700
735
  {
701
- ref: S,
736
+ ref: F,
702
737
  className: "relative",
703
738
  children: [
704
739
  /* @__PURE__ */ c(
705
740
  "button",
706
741
  {
707
742
  type: "button",
708
- onClick: () => k(!d),
743
+ onClick: () => C(!d),
709
744
  className: y(
710
745
  "flex h-14 w-[120px] rounded-2xl px-3 py-2 items-center justify-center cursor-pointer shrink-0",
711
746
  "transition-all duration-300 ease-in-out",
@@ -747,34 +782,34 @@ const Jt = {
747
782
  "input",
748
783
  {
749
784
  type: "text",
750
- value: h,
751
- onChange: (m) => b(m.target.value),
785
+ value: f,
786
+ onChange: (g) => x(g.target.value),
752
787
  placeholder: "Поиск страны...",
753
788
  className: y(
754
789
  "w-full px-3 py-2 rounded-xl border-[1px] border-grayBlue text-sm",
755
790
  "focus:outline-none focus:border-greenLight"
756
791
  ),
757
- onClick: (m) => m.stopPropagation()
792
+ onClick: (g) => g.stopPropagation()
758
793
  }
759
794
  ) }),
760
- /* @__PURE__ */ e("div", { className: "overflow-y-auto max-h-[340px]", children: V.length > 0 ? V.map((m) => /* @__PURE__ */ e(
795
+ /* @__PURE__ */ e("div", { className: "overflow-y-auto max-h-[340px]", children: M.length > 0 ? M.map((g) => /* @__PURE__ */ e(
761
796
  "button",
762
797
  {
763
798
  type: "button",
764
- onClick: () => j(m.id),
799
+ onClick: () => O(g.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",
768
- D === m.id && "bg-[#E8F4FD]",
803
+ N === g.id && "bg-[#E8F4FD]",
769
804
  "first:rounded-t-2xl"
770
805
  ),
771
806
  children: /* @__PURE__ */ c("span", { className: "flex items-center gap-2", children: [
772
- /* @__PURE__ */ e("span", { className: "text-lg", children: m.flag }),
773
- /* @__PURE__ */ e("span", { className: "font-medium", children: m.mask }),
774
- /* @__PURE__ */ e("span", { className: "text-sm text-grayBlue5", children: m.name })
807
+ /* @__PURE__ */ e("span", { className: "text-lg", children: g.flag }),
808
+ /* @__PURE__ */ e("span", { className: "font-medium", children: g.mask }),
809
+ /* @__PURE__ */ e("span", { className: "text-sm text-grayBlue5", children: g.name })
775
810
  ] })
776
811
  },
777
- m.id
812
+ g.id
778
813
  )) : /* @__PURE__ */ e("div", { className: "px-4 py-3 text-center text-grayBlue5", children: "Страны не найдены" }) })
779
814
  ] })
780
815
  ]
@@ -795,11 +830,11 @@ const Jt = {
795
830
  o && "border-red-500 hover:border-red-500 focus:border-red-500 focus:shadow-[0_0_0_4px_rgba(239,68,68,0.15)]",
796
831
  n
797
832
  ),
798
- ref: p,
799
- value: E,
800
- onChange: O,
833
+ ref: w,
834
+ value: W,
835
+ onChange: j,
801
836
  placeholder: "XXX XXX XXX",
802
- ...f
837
+ ...u
803
838
  }
804
839
  )
805
840
  ]
@@ -809,22 +844,22 @@ 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
- className: f,
822
- direction: p = "column"
823
- }, N) => /* @__PURE__ */ c(
856
+ className: u,
857
+ direction: w = "column"
858
+ }, h) => /* @__PURE__ */ c(
824
859
  "div",
825
860
  {
826
- ref: N,
827
- className: y("flex flex-col gap-2", f),
861
+ ref: h,
862
+ className: y("flex flex-col gap-2", u),
828
863
  children: [
829
864
  n && /* @__PURE__ */ e("label", { className: "text-sm font-medium text-blackBG mb-1", children: n }),
830
865
  /* @__PURE__ */ e(
@@ -832,12 +867,12 @@ const pe = P(
832
867
  {
833
868
  className: y(
834
869
  "flex gap-4",
835
- p === "column" ? "flex-col" : "flex-row flex-wrap"
870
+ w === "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,40 +937,40 @@ 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
- onChange: f,
915
- onBlur: p,
916
- name: N,
949
+ onChange: u,
950
+ onBlur: w,
951
+ name: h,
917
952
  disabled: s,
918
- ...D
919
- }, w) => {
953
+ ...N
954
+ }, k) => {
920
955
  const {
921
956
  ref: d,
922
- isShow: k,
923
- setIsShow: h
924
- } = z(!1);
925
- te(w, () => d.current);
926
- const b = l.find((C) => C.value === t), x = () => {
927
- s || h(!k);
928
- }, M = (C) => {
929
- f && f({
957
+ isShow: C,
958
+ setIsShow: f
959
+ } = K(!1);
960
+ re(k, () => d.current);
961
+ const x = i.find((v) => v.value === t), b = () => {
962
+ s || f(!C);
963
+ }, S = (v) => {
964
+ u && u({
930
965
  target: {
931
- name: N,
932
- value: C.value
966
+ name: h,
967
+ value: v.value
933
968
  }
934
- }), h(!1);
935
- }, S = (C) => {
936
- p && p({
969
+ }), f(!1);
970
+ }, F = (v) => {
971
+ w && w({
937
972
  target: {
938
- name: N,
973
+ name: h,
939
974
  value: t
940
975
  }
941
976
  });
@@ -945,8 +980,8 @@ const ue = P(
945
980
  {
946
981
  className: y("w-full", n),
947
982
  ref: d,
948
- onBlur: S,
949
- ...D,
983
+ onBlur: F,
984
+ ...N,
950
985
  children: [
951
986
  a && /* @__PURE__ */ e("label", { className: "mb-2 block text-sm font-medium text-blackBG", children: a }),
952
987
  /* @__PURE__ */ c("div", { className: "relative", children: [
@@ -954,25 +989,25 @@ const ue = P(
954
989
  "button",
955
990
  {
956
991
  type: "button",
957
- onClick: x,
992
+ onClick: b,
958
993
  disabled: s,
959
994
  className: y(
960
995
  "flex h-14 w-full items-center justify-between rounded-2xl border-[1px] border-grayBlue bg-white px-[20px] text-base text-blackBG",
961
996
  "transition-all duration-300 ease-in-out",
962
997
  "hover:border-greenLight hover:shadow-[0_0_0_4px_rgba(22,163,74,0.1)]",
963
- k && "border-greenLight shadow-[0_0_0_4px_rgba(22,163,74,0.15)] ring-0 outline-none",
998
+ C && "border-greenLight shadow-[0_0_0_4px_rgba(22,163,74,0.15)] ring-0 outline-none",
964
999
  s && "cursor-not-allowed bg-lightGray opacity-50",
965
1000
  o && "border-red-500 hover:border-red-500 focus:border-red-500 focus:shadow-[0_0_0_4px_rgba(239,68,68,0.15)]",
966
- !b && "text-gray2 opacity-60"
1001
+ !x && "text-gray2 opacity-60"
967
1002
  ),
968
1003
  children: [
969
- /* @__PURE__ */ e("span", { className: "truncate", children: b ? b.label : r }),
1004
+ /* @__PURE__ */ e("span", { className: "truncate", children: x ? x.label : r }),
970
1005
  /* @__PURE__ */ e(
971
1006
  "svg",
972
1007
  {
973
1008
  className: y(
974
1009
  "ml-2 h-5 w-5 text-gray2 transition-transform duration-300",
975
- k && "rotate-180"
1010
+ C && "rotate-180"
976
1011
  ),
977
1012
  fill: "none",
978
1013
  stroke: "currentColor",
@@ -991,28 +1026,28 @@ const ue = P(
991
1026
  ]
992
1027
  }
993
1028
  ),
994
- k && /* @__PURE__ */ e(
1029
+ C && /* @__PURE__ */ e(
995
1030
  "div",
996
1031
  {
997
1032
  className: y(
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((v) => /* @__PURE__ */ e(
1002
1037
  "button",
1003
1038
  {
1004
1039
  type: "button",
1005
- onClick: () => M(C),
1040
+ onClick: () => S(v),
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",
1009
- C.value === t && "bg-green-50 font-medium text-greenLight",
1044
+ v.value === t && "bg-green-50 font-medium text-greenLight",
1010
1045
  // Мобильные отступы чуть больше для удобства тапа
1011
1046
  "max-tablet:py-4"
1012
1047
  ),
1013
- children: C.label
1048
+ children: v.label
1014
1049
  },
1015
- C.value
1050
+ v.value
1016
1051
  )) : /* @__PURE__ */ e("div", { className: "px-5 py-3 text-sm text-gray2", children: "Нет данных" }) })
1017
1052
  }
1018
1053
  )
@@ -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,227 +1071,226 @@ 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();
1054
- return n.map((t, f) => {
1055
- var N, s, D;
1088
+ const { t: r } = ae();
1089
+ return n.map((t, u) => {
1090
+ var h, s, N;
1056
1091
  if ((t == null ? void 0 : t.componentType) === "component") {
1057
- const w = rr[t == null ? void 0 : t.key];
1058
- if (w)
1092
+ const k = sr[t == null ? void 0 : t.key];
1093
+ if (k)
1059
1094
  return /* @__PURE__ */ e(
1060
- w,
1095
+ k,
1061
1096
  {
1062
1097
  ...t == null ? void 0 : t.props
1063
1098
  },
1064
- f
1099
+ u
1065
1100
  );
1066
1101
  }
1067
- const p = ar[t == null ? void 0 : t.type];
1068
- if (p) {
1069
- const w = ["select", "radio", "checkbox", "file"].includes(
1102
+ const w = lr[t == null ? void 0 : t.type];
1103
+ if (w) {
1104
+ const k = ["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 ? (h = a[t == null ? void 0 : t.name]) == null ? void 0 : h.message : void 0, C = d ? r(d, d) : void 0, f = {
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
- placeholder: (D = t.field_props) != null && D.placeholder ? r(t.field_props.placeholder, t.field_props.placeholder) : void 0
1109
+ placeholder: (N = t.field_props) != null && N.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 k && 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(
1083
- p,
1117
+ render: ({ field: { onChange: x, value: b, name: S, ref: F } }) => /* @__PURE__ */ e(
1118
+ w,
1084
1119
  {
1085
- ...h,
1086
- onChange: b,
1087
- value: x,
1088
- name: M,
1089
- ref: S,
1090
- error: k
1120
+ ...f,
1121
+ onChange: x,
1122
+ value: b,
1123
+ name: S,
1124
+ ref: F,
1125
+ error: C
1091
1126
  }
1092
1127
  )
1093
1128
  },
1094
- f
1129
+ u
1095
1130
  ) : t.name ? /* @__PURE__ */ e(
1096
- p,
1131
+ w,
1097
1132
  {
1098
- ...h,
1133
+ ...f,
1099
1134
  ...o(t == null ? void 0 : t.name, {
1100
1135
  validate: t == null ? void 0 : t.validate
1101
1136
  }),
1102
- error: k
1137
+ error: C
1103
1138
  },
1104
- f
1139
+ u
1105
1140
  ) : /* @__PURE__ */ e(
1106
- p,
1141
+ w,
1107
1142
  {
1108
- ...h,
1109
- error: k
1143
+ ...f,
1144
+ error: C
1110
1145
  },
1111
- f
1146
+ u
1112
1147
  );
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
+ "file"
1226
+ ], ge = ({
1191
1227
  title: n,
1192
1228
  subtitle: o,
1193
1229
  color: a,
1194
- gridCols: l = 1,
1230
+ gridCols: i = 1,
1195
1231
  gridRow: r = 2,
1196
1232
  fields: t = [],
1197
- requestForm: f
1233
+ requestForm: u,
1234
+ file: w
1198
1235
  }) => {
1199
1236
  var j;
1200
- const { t: p } = oe(), [N, s] = T(!1), [D, w] = T(!1), [d, k] = T(null), h = Ue(960), {
1237
+ const { t: h } = ae(), [s, N] = T(!1), [k, d] = T(!1), [C, f] = T(null), x = et(960), {
1201
1238
  register: b,
1202
- handleSubmit: x,
1203
- watch: M,
1204
- reset: S,
1205
- control: C,
1206
- formState: { errors: B }
1207
- } = Ke({
1239
+ handleSubmit: S,
1240
+ watch: F,
1241
+ reset: v,
1242
+ control: B,
1243
+ formState: { errors: M }
1244
+ } = Je({
1208
1245
  defaultValues: {
1209
- fio: "",
1210
- phone: "",
1211
- business_category: "",
1212
1246
  agreement: !1
1213
1247
  }
1214
- }), V = M("agreement"), I = async (O) => {
1215
- if (!(f != null && f.api_url)) {
1248
+ }), I = F("agreement"), W = async (g) => {
1249
+ if (!(u != null && u.api_url)) {
1216
1250
  console.warn("API URL is not defined in requestForm props");
1217
1251
  return;
1218
1252
  }
1219
- w(!0), k(null);
1253
+ d(!0), f(null);
1220
1254
  try {
1221
- const m = new FormData();
1222
- Object.entries(O).forEach(([i, _]) => {
1223
- _ != null && (Array.isArray(_) ? _.forEach((u) => {
1224
- m.append(i, u);
1225
- }) : m.append(i, _));
1255
+ const D = new FormData();
1256
+ Object.entries(g).forEach(([_, l]) => {
1257
+ l != null && (Array.isArray(l) ? l.forEach((L) => {
1258
+ D.append(_, L);
1259
+ }) : D.append(_, l));
1226
1260
  });
1227
- const v = await fetch(f.api_url, {
1261
+ const m = await fetch(u.api_url, {
1228
1262
  method: "POST",
1229
1263
  // При отправке FormData заголовок Content-Type устанавливать НЕ НУЖНО,
1230
1264
  // браузер установит его автоматически вместе с boundary
1231
- body: m
1265
+ body: D
1232
1266
  });
1233
- if (!v.ok)
1234
- throw new Error(`HTTP error! status: ${v.status}`);
1235
- const g = v.headers.get("content-type");
1236
- if (g && g.includes("application/json")) {
1237
- const i = await v.json();
1238
- console.log("Success:", i);
1267
+ if (!m.ok)
1268
+ throw new Error(`HTTP error! status: ${m.status}`);
1269
+ const p = m.headers.get("content-type");
1270
+ if (p && p.includes("application/json")) {
1271
+ const _ = await m.json();
1272
+ console.log("Success:", _);
1239
1273
  }
1240
- s(!0), S();
1241
- } catch (m) {
1242
- console.error("Error submitting form:", m), k(
1243
- p(
1274
+ N(!0), v();
1275
+ } catch (D) {
1276
+ console.error("Error submitting form:", D), f(
1277
+ h(
1244
1278
  "form.submit_error",
1245
1279
  "Произошла ошибка при отправке. Пожалуйста, попробуйте позже."
1246
1280
  )
1247
1281
  );
1248
1282
  } finally {
1249
- w(!1);
1283
+ d(!1);
1250
1284
  }
1251
- }, E = nr(t || [], {
1285
+ }, O = cr(t || [], {
1252
1286
  register: b,
1253
- errors: B,
1254
- control: C
1287
+ errors: M,
1288
+ control: B
1255
1289
  });
1256
- return /* @__PURE__ */ e(re, { children: /* @__PURE__ */ e(
1290
+ return /* @__PURE__ */ e(oe, { children: /* @__PURE__ */ e(
1257
1291
  "form",
1258
1292
  {
1259
- onSubmit: x(I),
1293
+ onSubmit: S(W),
1260
1294
  id: "application_form",
1261
1295
  className: "w-full",
1262
1296
  children: /* @__PURE__ */ c(
@@ -1268,10 +1302,10 @@ const rr = {
1268
1302
  className: "bg-white rounded-[24px] w-full flex flex-col items-center justify-center py-[72px] px-[96px] max-tablet:py-[40px] max-tablet:px-[32px] transition-all duration-300 mt-[8px]",
1269
1303
  children: [
1270
1304
  /* @__PURE__ */ c("div", { className: "text-center mb-10 max-tablet:mb-8", children: [
1271
- /* @__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
- /* @__PURE__ */ e("span", { className: "text-[18px] leading-[26px] text-graySoft max-tablet:text-[16px] max-tablet:leading-[24px]", children: p(o || "", o) })
1305
+ /* @__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: h(n || "", n) }),
1306
+ /* @__PURE__ */ e("span", { className: "text-[18px] leading-[26px] text-graySoft max-tablet:text-[16px] max-tablet:leading-[24px]", children: h(o || "", o) })
1273
1307
  ] }),
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: [
1308
+ s ? /* @__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
1309
  /* @__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
1310
  "svg",
1277
1311
  {
@@ -1291,56 +1325,56 @@ const rr = {
1291
1325
  }
1292
1326
  ) }),
1293
1327
  /* @__PURE__ */ c("div", { className: "text-center", children: [
1294
- /* @__PURE__ */ e("div", { className: "font-semibold text-[24px] leading-[32px] text-blackBG mb-3", children: p("form.success_title", "Заявка успешно отправлена") }),
1295
- /* @__PURE__ */ e("div", { className: "text-[18px] leading-[26px] text-graySoft", children: p(
1328
+ /* @__PURE__ */ e("div", { className: "font-semibold text-[24px] leading-[32px] text-blackBG mb-3", children: h("form.success_title", "Заявка успешно отправлена") }),
1329
+ /* @__PURE__ */ e("div", { className: "text-[18px] leading-[26px] text-graySoft", children: h(
1296
1330
  "form.success_description",
1297
1331
  "С Вами свяжется наш специалист и поможет с подключением сервиса"
1298
1332
  ) }),
1299
1333
  /* @__PURE__ */ e(
1300
- R,
1334
+ X,
1301
1335
  {
1302
1336
  className: "justify-center m-auto mt-6",
1303
- title: p("form.close", "Закрыть"),
1337
+ title: h("form.close", "Закрыть"),
1304
1338
  onClick: () => {
1305
- s(!1), S();
1339
+ N(!1), v();
1306
1340
  }
1307
1341
  }
1308
1342
  )
1309
1343
  ] })
1310
- ] }) }) : /* @__PURE__ */ c(Q, { children: [
1344
+ ] }) }) : /* @__PURE__ */ c(R, { children: [
1311
1345
  /* @__PURE__ */ e(
1312
1346
  "div",
1313
1347
  {
1314
1348
  className: "w-[640px] mb-8 max-tablet:w-full grid gap-6",
1315
1349
  style: {
1316
- gridTemplateColumns: `repeat(${h ? 1 : l}, 1fr)`,
1350
+ gridTemplateColumns: `repeat(${x ? 1 : i}, 1fr)`,
1317
1351
  gridTemplateRows: `repeat(${r}, auto)`
1318
1352
  },
1319
- children: E
1353
+ children: O
1320
1354
  }
1321
1355
  ),
1322
1356
  /* @__PURE__ */ e("div", { className: "pt-2", children: /* @__PURE__ */ e(
1323
- Y,
1357
+ Q,
1324
1358
  {
1325
1359
  ...b("agreement", {
1326
- required: p(
1360
+ required: h(
1327
1361
  "form.agreement_required",
1328
1362
  "Необходимо согласие на обработку персональных данных"
1329
1363
  )
1330
1364
  }),
1331
- error: (j = B.agreement) == null ? void 0 : j.message,
1332
- label: /* @__PURE__ */ c(Q, { children: [
1333
- p("form.i_agree", "Я соглашаюсь с"),
1365
+ error: (j = M.agreement) == null ? void 0 : j.message,
1366
+ label: /* @__PURE__ */ c(R, { children: [
1367
+ h("form.i_agree", "Я соглашаюсь с"),
1334
1368
  " ",
1335
1369
  /* @__PURE__ */ e(
1336
1370
  "button",
1337
1371
  {
1338
1372
  type: "button",
1339
1373
  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();
1374
+ onClick: (g) => {
1375
+ g.preventDefault(), window.open(w || "", "_blank");
1342
1376
  },
1343
- children: p(
1377
+ children: h(
1344
1378
  "form.agreement_link",
1345
1379
  "условиями обработки персональных данных"
1346
1380
  )
@@ -1349,17 +1383,17 @@ const rr = {
1349
1383
  ] })
1350
1384
  }
1351
1385
  ) }),
1352
- 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 }),
1386
+ C && /* @__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: C }),
1353
1387
  /* @__PURE__ */ e("div", { className: "mt-6 w-[640px] max-tablet:w-full", children: /* @__PURE__ */ e(
1354
- R,
1388
+ X,
1355
1389
  {
1356
- loading: D,
1390
+ loading: k,
1357
1391
  className: "w-full whitespace-nowrap transition-all duration-200 hover:scale-[1.02] active:scale-[0.98]",
1358
1392
  type: "submit",
1359
- size: De.XL,
1360
- variant: Ne.Primary,
1361
- disabled: !V || D,
1362
- children: p("form.submit", "Отправить заявку")
1393
+ size: Ne.XL,
1394
+ variant: _e.Primary,
1395
+ disabled: !I || k,
1396
+ children: h("form.submit", "Отправить заявку")
1363
1397
  }
1364
1398
  ) })
1365
1399
  ] })
@@ -1369,112 +1403,123 @@ const rr = {
1369
1403
  }
1370
1404
  ) });
1371
1405
  };
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 },
1406
+ ge.propsToEdit = gr;
1407
+ const Ba = {
1408
+ MainBanner: { key: "MainBanner", component: We },
1409
+ Banner: { key: "Banner", component: we },
1410
+ CardImageList: { key: "CardImageList", component: Ee },
1411
+ Stepper: { key: "Stepper", component: Be },
1412
+ Segments: { key: "Segments", component: Se },
1413
+ VideoFull: { key: "VideoFull", component: Fe },
1414
+ VideoList: { key: "VideoList", component: Me },
1415
+ VideoListMini: { key: "VideoListMini", component: Ve },
1416
+ ContentCardList: { key: "ContentCardList", component: Ie },
1417
+ CardIconList: { key: "CardIconList", component: Te },
1418
+ MultiCards: { key: "MultiCards", component: He },
1419
+ Partners: { key: "Partners", component: Pe },
1386
1420
  PartnersColors: { key: "PartnersColors", component: Oe },
1387
- WarningCard: { key: "WarningCard", component: q },
1388
- Faq: { key: "Faq", component: Ee },
1421
+ WarningCard: { key: "WarningCard", component: U },
1422
+ Faq: { key: "Faq", component: Ae },
1389
1423
  DownloadFileBanner: {
1390
1424
  key: "DownloadFileBanner",
1391
- component: Ge
1425
+ component: $e
1392
1426
  },
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 },
1427
+ DownloadFileHalf: { key: "DownloadFileHalf", component: Re },
1428
+ DownloadFileFull: { key: "DownloadFileFull", component: Ze },
1429
+ DownloadFileMini: { key: "DownloadFileMini", component: Xe },
1430
+ InstructionList: { key: "InstructionList", component: je },
1431
+ PreviewList: { key: "PreviewList", component: Ge },
1432
+ SwiperList: { key: "SwiperList", component: it },
1433
+ AnimatedSwiper: { key: "AnimatedSwiper", component: qe },
1434
+ InfoBannerList: { key: "InfoBannerList", component: rt },
1435
+ TasksBannerList: { key: "TasksBannerList", component: lt },
1436
+ VideoMainBanner: { key: "VideoMainBanner", component: ct },
1437
+ Space: { key: "Space", component: nt },
1438
+ PromoPoster: { key: "PromoPoster", component: at },
1405
1439
  CardImageSecondaryList: {
1406
1440
  key: "CardImageSecondaryList",
1407
- component: Xe
1441
+ component: Ye
1408
1442
  },
1409
- CardInfoTable: { key: "CardInfoTable", component: ze },
1410
- StandartTable: { key: "StandartTable", component: ot },
1411
- IntroBanner: { key: "IntroBanner", component: et },
1443
+ CardInfoTable: { key: "CardInfoTable", component: Ke },
1444
+ StandartTable: { key: "StandartTable", component: st },
1445
+ IntroBanner: { key: "IntroBanner", component: ot },
1412
1446
  DownloadFileBright: {
1413
1447
  key: "DownloadFileBright",
1414
- component: qe
1448
+ component: Ue
1415
1449
  },
1416
1450
  FormDefault: {
1417
1451
  key: "FormDefault",
1418
- component: fe
1452
+ component: ge
1419
1453
  },
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 = {
1454
+ Header: { key: "Header", component: qt },
1455
+ Footer: { key: "Footer", component: Yt },
1456
+ TitleBlock: { key: "TitleBlock", component: Y },
1457
+ ActionCardList: { key: "ActionCardList", component: ie }
1458
+ }, Sa = {
1459
+ MainBanner: dt.component_props,
1460
+ Banner: pt.component_props,
1461
+ CardImageList: mt.component_props,
1462
+ Stepper: ut.component_props,
1463
+ Segments: ft.component_props,
1464
+ VideoFull: ht.component_props,
1465
+ VideoList: gt.component_props,
1466
+ VideoListMini: bt.component_props,
1467
+ ContentCardList: xt.component_props,
1468
+ CardIconList: yt.component_props,
1469
+ MultiCards: wt.component_props,
1470
+ Partners: kt.component_props,
1471
+ PartnersColors: Ct.component_props,
1472
+ WarningCard: vt.component_props,
1473
+ Faq: Dt.component_props,
1474
+ DownloadFileBanner: Lt.component_props,
1475
+ DownloadFileHalf: Nt.component_props,
1476
+ DownloadFileFull: _t.component_props,
1477
+ DownloadFileMini: Bt.component_props,
1478
+ InstructionList: St.component_props,
1479
+ PreviewList: Ft.component_props,
1480
+ SwiperList: Mt.component_props,
1481
+ AnimatedSwiper: Vt.component_props,
1482
+ InfoBannerList: It.component_props,
1483
+ TasksBannerList: Tt.component_props,
1484
+ VideoMainBanner: Ht.component_props,
1485
+ EmptyBox: Pt.component_props,
1486
+ PromoPoster: Et.component_props,
1487
+ CardImageSecondaryList: Wt.component_props,
1488
+ CardInfoTable: At.component_props,
1489
+ StandartTable: jt.component_props,
1490
+ IntroBanner: Ot.component_props,
1491
+ DownloadFileBright: Gt.component_props,
1492
+ FormDefault: dr,
1493
+ TitleBlock: $t.component_props,
1494
+ ActionCardList: {}
1495
+ }, Fa = {
1496
+ title: "Список карточек действий",
1497
+ description: "Компонент для отображения списка карточек действий с иконками и ссылками. Используется для представления различных действий или ссылок в виде сетки карточек.",
1498
+ types: [q.lists],
1499
+ propsToEdit: se
1500
+ }, Ma = {
1460
1501
  title: "Предупреждающая карточка",
1461
1502
  description: "Компонент для отображения предупреждающей информации в виде карточки с иконкой, заголовком и описанием. Используется для привлечения внимания к важной информации или предупреждениям.",
1462
- types: [ee.cards],
1503
+ types: [q.cards],
1463
1504
  propsToEdit: ne
1464
1505
  };
1465
1506
  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,
1507
+ Sa as A,
1508
+ ge as F,
1509
+ U as W,
1510
+ ie as a,
1511
+ Ba as b,
1512
+ Fa as c,
1513
+ Ut as d,
1514
+ se as e,
1515
+ _a as f,
1516
+ sr as g,
1517
+ ir as h,
1518
+ Na as i,
1519
+ dr as j,
1520
+ hr as k,
1521
+ gr as l,
1477
1522
  ne as p,
1478
- nr as r,
1479
- Na as w
1523
+ cr as r,
1524
+ Ma as w
1480
1525
  };