md-components-mdigial-azamat 0.0.101 → 0.0.102

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,17 +1,17 @@
1
1
  import { C as q } from "./index-0a5f313c.js";
2
- import { jsx as e, jsxs as c, Fragment as R } from "react/jsx-runtime";
2
+ import { jsx as e, jsxs as p, Fragment as R } from "react/jsx-runtime";
3
3
  import { warningCardVariant as xe, WarningCardVariant as G, WarningCardVariantKey as ye } from "./Cards/WarningCard/model.js";
4
4
  import "./ConfigProvider/index.js";
5
5
  import { Banner as we } from "./Banner/Banner.js";
6
6
  import "./BannerAndText/index.js";
7
- import { forwardRef as E, useState as T, useMemo as Z, useEffect as ke, useRef as Ce, useImperativeHandle as re, useCallback as ve } from "react";
7
+ import { forwardRef as j, useState as T, useMemo as Z, useEffect as ke, useRef as Ce, useImperativeHandle as re, useCallback as 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 De } from "./HtmlContent/HtmlContent.js";
11
+ import { HtmlContent as Le } from "./HtmlContent/HtmlContent.js";
12
12
  import "./Header/components/TabsOutlined/TabsOutlined.js";
13
13
  import { B as X } from "./index-875e92ce.js";
14
- import { B as Le, a as Ne, b as _e } from "./const-53dff524.js";
14
+ import { B as De, a as Ne, b as _e } from "./const-53dff524.js";
15
15
  import { Stepper as Be } from "./Stepper/Stepper.js";
16
16
  import { Segments as Se } from "./Segments/Segments.js";
17
17
  import { VideoFull as Fe } from "./Video/VideoFull/VideoFull.js";
@@ -22,9 +22,9 @@ import { CardIconList as Te } from "./CardIconList/CardIconList.js";
22
22
  import { MultiCards as He } from "./MultiCards/index.js";
23
23
  import { Partners as Pe } from "./Partners/Partners.js";
24
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";
25
+ import { MainBanner as je } from "./MainBanner/MainBanner.js";
26
+ import { Faq as We } from "./Faq/Faq.js";
27
+ import { InstructionList as Ae } from "./InstructionList/InstructionList.js";
28
28
  import "./HeroPossibilityBanner/index.js";
29
29
  import { PartnersColors as Oe } from "./PartnersColors/PartnersColors.js";
30
30
  import { PreviewList as Ge } from "./PreviewList/PreviewList.js";
@@ -61,8 +61,8 @@ import { SwiperList as it } from "./SwiperList/SwiperList.js";
61
61
  import "./TasksBanner/TasksBanner.js";
62
62
  import { TasksBannerList as lt } from "./TasksBannerList/TasksBannerList.js";
63
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";
64
+ import { M as dt, B as pt, C as mt, S as ut, b as ft, V as ht, c as gt, d as bt, e as xt, f as yt, g as wt, P as kt, h as Ct, W as vt, F as Lt, k as Dt, D as Nt, l as _t, m as Bt, I as St, o as Ft, p as Mt, A as Vt, q as It, T as Tt, r as Ht, E as Pt, s as Et, t as jt, u as Wt, v as At, w as Ot, x as Gt, y as $t } from "./data.mock-f00bb32c.js";
65
+ import { FieldTypes as E, DataTypesEnum as z } from "./Types/FiledTypes.js";
66
66
  import "react-dom";
67
67
  import "./AnimatedSwiper/info.js";
68
68
  import "./Banner/info.js";
@@ -120,23 +120,23 @@ const ne = [
120
120
  "description",
121
121
  "description_color",
122
122
  "html_content",
123
- Le,
123
+ De,
124
124
  xe
125
125
  ], U = ({
126
- title: n,
126
+ title: s,
127
127
  description: o,
128
128
  button: a,
129
129
  html_content: i,
130
130
  variant: r = ye.Orange
131
131
  }) => {
132
- var t, u, w, h;
132
+ var t, u, w, D;
133
133
  return /* @__PURE__ */ e(oe, { children: /* @__PURE__ */ e(
134
134
  "div",
135
135
  {
136
136
  className: "rounded-[24px] p-6",
137
137
  style: { background: (t = G[r]) == null ? void 0 : t.background },
138
- children: /* @__PURE__ */ c("div", { className: "flex gap-4 items-center justify-between", children: [
139
- /* @__PURE__ */ c(
138
+ children: /* @__PURE__ */ p("div", { className: "flex gap-4 items-center justify-between", children: [
139
+ /* @__PURE__ */ p(
140
140
  "div",
141
141
  {
142
142
  className: "flex gap-[16px] items-center max-tablet:flex-col max-tablet:items-start max-tablet:gap-[12px]",
@@ -148,24 +148,24 @@ const ne = [
148
148
  size: 40
149
149
  }
150
150
  ),
151
- /* @__PURE__ */ c("div", { className: "flex flex-col gap-[4px] max-tablet:gap-0", children: [
151
+ /* @__PURE__ */ p("div", { className: "flex flex-col gap-[4px] max-tablet:gap-0", children: [
152
152
  /* @__PURE__ */ e(
153
153
  "p",
154
154
  {
155
155
  className: y("text-[24px] leading-8 font-bold"),
156
156
  style: { color: (w = G[r]) == null ? void 0 : w.textColor },
157
- children: n
157
+ children: s
158
158
  }
159
159
  ),
160
160
  /* @__PURE__ */ e(
161
161
  "p",
162
162
  {
163
163
  className: "text-[16px] leading-6",
164
- style: { color: (h = G[r]) == null ? void 0 : h.textColor },
164
+ style: { color: (D = G[r]) == null ? void 0 : D.textColor },
165
165
  children: o
166
166
  }
167
167
  ),
168
- i && /* @__PURE__ */ e(De, { data: i })
168
+ i && /* @__PURE__ */ e(Le, { data: i })
169
169
  ] })
170
170
  ]
171
171
  }
@@ -181,20 +181,20 @@ const Ut = {
181
181
  label: "Карточки действий",
182
182
  dataType: "array",
183
183
  data: {
184
- title: P.TITLE,
185
- icon: P.FILE,
186
- link: P.LINK
184
+ title: E.TITLE,
185
+ icon: E.FILE,
186
+ link: E.LINK
187
187
  }
188
188
  }, se = ["title", "description", "marginBottom", Ut], ie = ({
189
- title: n,
189
+ title: s,
190
190
  description: o,
191
191
  marginBottom: a,
192
192
  cards: i
193
- }) => /* @__PURE__ */ c(R, { children: [
193
+ }) => /* @__PURE__ */ p(R, { children: [
194
194
  /* @__PURE__ */ e(
195
195
  Y,
196
196
  {
197
- title: n,
197
+ title: s,
198
198
  description: o,
199
199
  marginBottom: a
200
200
  }
@@ -210,9 +210,9 @@ const Ut = {
210
210
  )) })
211
211
  ] });
212
212
  ie.propsToEdit = se;
213
- const le = E(
213
+ const le = j(
214
214
  ({
215
- label: n,
215
+ label: s,
216
216
  options: o = [],
217
217
  value: a = [],
218
218
  onChange: i,
@@ -220,19 +220,19 @@ const le = E(
220
220
  className: t,
221
221
  direction: u = "column"
222
222
  }, w) => {
223
- const h = (s) => {
223
+ const D = (n) => {
224
224
  if (!i)
225
225
  return;
226
- const N = a.includes(s) ? a.filter((k) => k !== s) : [...a, s];
226
+ const N = a.includes(n) ? a.filter((k) => k !== n) : [...a, n];
227
227
  i(N);
228
228
  };
229
- return /* @__PURE__ */ c(
229
+ return /* @__PURE__ */ p(
230
230
  "div",
231
231
  {
232
232
  ref: w,
233
233
  className: y("flex flex-col gap-2", t),
234
234
  children: [
235
- n && /* @__PURE__ */ e("label", { className: "text-sm font-medium text-blackBG mb-1", children: n }),
235
+ s && /* @__PURE__ */ e("label", { className: "text-sm font-medium text-blackBG mb-1", children: s }),
236
236
  /* @__PURE__ */ e(
237
237
  "div",
238
238
  {
@@ -240,15 +240,15 @@ const le = E(
240
240
  "flex gap-4",
241
241
  u === "column" ? "flex-col" : "flex-row flex-wrap"
242
242
  ),
243
- children: o == null ? void 0 : o.map((s) => /* @__PURE__ */ e(
243
+ children: o == null ? void 0 : o.map((n) => /* @__PURE__ */ e(
244
244
  Q,
245
245
  {
246
- label: s == null ? void 0 : s.label,
247
- checked: a.includes(s == null ? void 0 : s.value),
248
- onChange: () => h(s == null ? void 0 : s.value),
246
+ label: n == null ? void 0 : n.label,
247
+ checked: a.includes(n == null ? void 0 : n.value),
248
+ onChange: () => D(n == null ? void 0 : n.value),
249
249
  error: r && (a == null ? void 0 : a.length) === 0 ? r : void 0
250
250
  },
251
- s == null ? void 0 : s.value
251
+ n == null ? void 0 : n.value
252
252
  ))
253
253
  }
254
254
  ),
@@ -259,10 +259,10 @@ const le = E(
259
259
  }
260
260
  );
261
261
  le.displayName = "CheckboxGroup";
262
- const Q = E(
263
- ({ className: n, label: o, error: a, ...i }, r) => /* @__PURE__ */ c("div", { className: "w-full", children: [
264
- /* @__PURE__ */ c("label", { className: "flex items-start gap-3 cursor-pointer group", children: [
265
- /* @__PURE__ */ c("div", { className: "relative flex items-center justify-center mt-0.5", children: [
262
+ const Q = j(
263
+ ({ className: s, label: o, error: a, ...i }, r) => /* @__PURE__ */ p("div", { className: "w-full", children: [
264
+ /* @__PURE__ */ p("label", { className: "flex items-start gap-3 cursor-pointer group", children: [
265
+ /* @__PURE__ */ p("div", { className: "relative flex items-center justify-center mt-0.5", children: [
266
266
  /* @__PURE__ */ e(
267
267
  "input",
268
268
  {
@@ -287,7 +287,7 @@ const Q = E(
287
287
  "after:rotate-45 after:-translate-x-[2px] after:translate-y-[-2px] after:top-1/2 after:left-1/2",
288
288
  "after:translate-y-[-50%] after:translate-x-[-50%] peer-checked:after:opacity-100",
289
289
  a && "border-red-500",
290
- n
290
+ s
291
291
  )
292
292
  }
293
293
  )
@@ -308,8 +308,8 @@ const Q = E(
308
308
  ] })
309
309
  );
310
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: [
311
+ const ce = j(
312
+ ({ className: s, type: o, error: a, label: i, ...r }, t) => /* @__PURE__ */ p("div", { className: "w-full", children: [
313
313
  i && /* @__PURE__ */ e("label", { className: "block text-sm font-medium text-blackBG mb-2", children: i }),
314
314
  /* @__PURE__ */ e(
315
315
  "input",
@@ -323,7 +323,7 @@ const ce = E(
323
323
  "focus:border-greenLight focus:outline-none focus:shadow-[0_0_0_4px_rgba(22,163,74,0.15)] focus:ring-0",
324
324
  "disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-lightGray",
325
325
  a && "border-red-500 hover:border-red-500 focus:border-red-500 focus:shadow-[0_0_0_4px_rgba(239,68,68,0.15)]",
326
- n
326
+ s
327
327
  ),
328
328
  ref: t,
329
329
  ...r
@@ -349,15 +349,15 @@ const Qt = () => /* @__PURE__ */ e(
349
349
  }
350
350
  )
351
351
  }
352
- ), Jt = (n) => {
353
- if (!n)
352
+ ), Jt = (s) => {
353
+ if (!s)
354
354
  return "";
355
- const o = String(n.getDate()).padStart(2, "0"), a = String(n.getMonth() + 1).padStart(2, "0"), i = n.getFullYear();
355
+ const o = String(s.getDate()).padStart(2, "0"), a = String(s.getMonth() + 1).padStart(2, "0"), i = s.getFullYear();
356
356
  return `${o}.${a}.${i}`;
357
- }, er = (n) => {
358
- if (!n)
357
+ }, er = (s) => {
358
+ if (!s)
359
359
  return null;
360
- const o = n.split(".");
360
+ const o = s.split(".");
361
361
  if (o.length === 3) {
362
362
  const a = parseInt(o[0], 10), i = parseInt(o[1], 10) - 1, r = parseInt(o[2], 10);
363
363
  if (!isNaN(a) && !isNaN(i) && !isNaN(r)) {
@@ -367,9 +367,9 @@ const Qt = () => /* @__PURE__ */ e(
367
367
  }
368
368
  }
369
369
  return null;
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(
370
+ }, tr = (s, o) => new Date(o, s, 1).toLocaleDateString("ru-RU", { month: "long", year: "numeric" }), rr = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], de = j(
371
371
  ({
372
- className: n,
372
+ className: s,
373
373
  error: o,
374
374
  label: a,
375
375
  value: i,
@@ -377,46 +377,46 @@ const Qt = () => /* @__PURE__ */ e(
377
377
  placeholder: t = "Дата обращения в Контакт-центр",
378
378
  ...u
379
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, () => {
380
+ const [D, n] = T(""), [N, k] = T(!1), [m, C] = T((/* @__PURE__ */ new Date()).getMonth()), [f, b] = T((/* @__PURE__ */ new Date()).getFullYear()), [x, B] = T(null), F = i !== void 0, v = F ? i : D, { ref: _ } = K(N, () => {
381
381
  k(!1);
382
- }), M = Z(() => er(v), [v]);
382
+ }), I = Z(() => er(v), [v]);
383
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();
384
+ I && (B(I), C(I.getMonth()), b(I.getFullYear()));
385
+ }, [I]);
386
+ const M = Z(() => {
387
+ const c = new Date(f, m, 1), S = new Date(f, m + 1, 0).getDate(), l = c.getDay(), g = [], H = new Date(f, m, 0).getDate();
388
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);
392
- const H = 42 - L.length;
393
- for (let V = 1; V <= H; V++)
394
- L.push(V);
395
- return L;
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)
389
+ g.push(H - V);
390
+ for (let V = 1; V <= S; V++)
391
+ g.push(V);
392
+ const P = 42 - g.length;
393
+ for (let V = 1; V <= P; V++)
394
+ g.push(V);
395
+ return g;
396
+ }, [m, f]), W = (c) => {
397
+ const d = c.target.value;
398
+ F || n(d), r == null || r(d);
399
+ }, A = (c, d, S) => {
400
+ if (c === null)
401
401
  return;
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)
402
+ let l = m, g = f;
403
+ d ? (l = l - 1, l < 0 && (l = 11, g = g - 1)) : S && (l = l + 1, l > 11 && (l = 0, g = g + 1));
404
+ const H = new Date(g, l, c), P = Jt(H);
405
+ B(H), C(l), b(g), F || n(P), r == null || r(P), k(!1);
406
+ }, O = () => {
407
+ m === 0 ? (C(11), b(f - 1)) : C(m - 1);
408
+ }, h = () => {
409
+ m === 11 ? (C(0), b(f + 1)) : C(m + 1);
410
+ }, L = (c, d, S) => {
411
+ if (!x || c === null)
412
412
  return !1;
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;
413
+ let l = m, g = f;
414
+ return d ? (l = l - 1, l < 0 && (l = 11, g = g - 1)) : S && (l = l + 1, l > 11 && (l = 0, g = g + 1)), x.getDate() === c && x.getMonth() === l && x.getFullYear() === g;
415
415
  };
416
- return /* @__PURE__ */ c("div", { className: "w-full", children: [
416
+ return /* @__PURE__ */ p("div", { className: "w-full", children: [
417
417
  a && /* @__PURE__ */ e("label", { className: "block text-sm font-medium text-blackBG mb-2", children: a }),
418
- /* @__PURE__ */ c("div", { className: "relative", children: [
419
- /* @__PURE__ */ c(
418
+ /* @__PURE__ */ p("div", { className: "relative", children: [
419
+ /* @__PURE__ */ p(
420
420
  "div",
421
421
  {
422
422
  className: y(
@@ -425,7 +425,7 @@ const Qt = () => /* @__PURE__ */ e(
425
425
  "hover:border-greenLight hover:shadow-[0_0_0_4px_rgba(22,163,74,0.1)]",
426
426
  "focus-within:border-greenLight focus-within:shadow-[0_0_0_4px_rgba(22,163,74,0.15)]",
427
427
  o && "border-red-500 hover:border-red-500 focus-within:border-red-500 focus-within:shadow-[0_0_0_4px_rgba(239,68,68,0.15)]",
428
- n
428
+ s
429
429
  ),
430
430
  children: [
431
431
  /* @__PURE__ */ e(
@@ -461,18 +461,18 @@ const Qt = () => /* @__PURE__ */ e(
461
461
  ]
462
462
  }
463
463
  ),
464
- N && /* @__PURE__ */ c(
464
+ N && /* @__PURE__ */ p(
465
465
  "div",
466
466
  {
467
- ref: B,
467
+ ref: _,
468
468
  className: "absolute top-[calc(100%+8px)] left-0 z-50 bg-white rounded-2xl border border-grayBlue shadow-lg p-4 min-w-[320px]",
469
469
  children: [
470
- /* @__PURE__ */ c("div", { className: "flex items-center justify-between mb-4", children: [
470
+ /* @__PURE__ */ p("div", { className: "flex items-center justify-between mb-4", children: [
471
471
  /* @__PURE__ */ e(
472
472
  "button",
473
473
  {
474
474
  type: "button",
475
- onClick: j,
475
+ onClick: O,
476
476
  className: "p-2 hover:bg-grayBlue rounded-lg transition-colors",
477
477
  children: /* @__PURE__ */ e(
478
478
  "svg",
@@ -496,12 +496,12 @@ const Qt = () => /* @__PURE__ */ e(
496
496
  )
497
497
  }
498
498
  ),
499
- /* @__PURE__ */ e("h3", { className: "text-base font-semibold text-blackBG", children: tr(d, f) }),
499
+ /* @__PURE__ */ e("h3", { className: "text-base font-semibold text-blackBG", children: tr(m, f) }),
500
500
  /* @__PURE__ */ e(
501
501
  "button",
502
502
  {
503
503
  type: "button",
504
- onClick: g,
504
+ onClick: h,
505
505
  className: "p-2 hover:bg-grayBlue rounded-lg transition-colors",
506
506
  children: /* @__PURE__ */ e(
507
507
  "svg",
@@ -526,39 +526,39 @@ const Qt = () => /* @__PURE__ */ e(
526
526
  }
527
527
  )
528
528
  ] }),
529
- /* @__PURE__ */ e("div", { className: "grid grid-cols-7 gap-1 mb-2", children: rr.map((m) => /* @__PURE__ */ e(
529
+ /* @__PURE__ */ e("div", { className: "grid grid-cols-7 gap-1 mb-2", children: rr.map((c) => /* @__PURE__ */ e(
530
530
  "div",
531
531
  {
532
532
  className: "text-center text-xs font-medium text-grayBlue5 py-2",
533
- children: m
533
+ children: c
534
534
  },
535
- m
535
+ c
536
536
  )) }),
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(
537
+ /* @__PURE__ */ e("div", { className: "grid grid-cols-7 gap-1", children: M.map((c, d) => {
538
+ const l = new Date(f, m, 1).getDay(), g = new Date(
539
539
  f,
540
- d + 1,
540
+ m + 1,
541
541
  0
542
- ).getDate(), A = p < l, H = p >= l + L, V = !A && !H, be = D(
543
- m,
544
- A,
545
- H
542
+ ).getDate(), H = d < l, P = d >= l + g, V = !H && !P, be = L(
543
+ c,
544
+ H,
545
+ P
546
546
  );
547
547
  return /* @__PURE__ */ e(
548
548
  "button",
549
549
  {
550
550
  type: "button",
551
- onClick: () => O(m, A, H),
552
- disabled: m === null,
551
+ onClick: () => A(c, H, P),
552
+ disabled: c === null,
553
553
  className: y(
554
554
  "w-10 h-10 rounded-lg text-sm font-medium transition-colors",
555
555
  "hover:bg-[#E8F4FD] focus:outline-none focus:bg-[#E8F4FD]",
556
556
  V ? "text-blackBG" : "text-grayBlue5 opacity-50",
557
557
  be && "bg-[#16A34A] text-white hover:bg-[#16A34A] focus:bg-[#16A34A]"
558
558
  ),
559
- children: m
559
+ children: c
560
560
  },
561
- p
561
+ d
562
562
  );
563
563
  }) })
564
564
  ]
@@ -570,9 +570,9 @@ const Qt = () => /* @__PURE__ */ e(
570
570
  }
571
571
  );
572
572
  de.displayName = "DateInput";
573
- const pe = E(
573
+ const pe = j(
574
574
  ({
575
- className: n,
575
+ className: s,
576
576
  isFormatted: o,
577
577
  isReadable: a,
578
578
  error: i,
@@ -580,33 +580,33 @@ const pe = E(
580
580
  onChange: t,
581
581
  value: u,
582
582
  defaultValue: w,
583
- ...h
584
- }, s) => {
583
+ ...D
584
+ }, n) => {
585
585
  const N = Ce(null);
586
- re(s, () => N.current);
587
- const k = !!a || !!o, d = ve(
588
- (x) => {
589
- if (x == null || x === "")
586
+ re(n, () => N.current);
587
+ const k = !!a || !!o, m = ve(
588
+ (b) => {
589
+ if (b == null || b === "")
590
590
  return "";
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;
591
+ const x = Array.isArray(b) ? b.join("").replace(/\D/g, "") : b.toString().replace(/\D/g, "");
592
+ return k ? x.replace(/\B(?=(\d{3})+(?!\d))/g, " ") : x;
593
593
  },
594
594
  [k]
595
595
  ), f = {
596
- ...h,
596
+ ...D,
597
597
  type: "text",
598
598
  inputMode: "numeric",
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;
599
+ onChange: (b) => {
600
+ const x = b.target, B = x.value, F = B.replace(/\D/g, ""), v = x.selectionStart || 0, _ = B.slice(0, v).replace(/\D/g, "").length, I = m(F);
601
+ if (x.value = I, t) {
602
+ const M = x.value;
603
+ x.value = F, t(b), x.value = M;
604
604
  }
605
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);
606
+ let M = 0, W = 0;
607
+ for (; W < _ && M < x.value.length; )
608
+ /\d/.test(x.value[M]) && W++, M++;
609
+ x.setSelectionRange(M, M);
610
610
  }
611
611
  },
612
612
  className: y(
@@ -618,10 +618,10 @@ const pe = E(
618
618
  "disabled:cursor-not-allowed disabled:bg-lightGray disabled:opacity-50",
619
619
  "[appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",
620
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)]",
621
- n
621
+ s
622
622
  )
623
623
  };
624
- return u !== void 0 ? f.value = d(u) : w !== void 0 && (f.defaultValue = d(w)), /* @__PURE__ */ c("div", { className: "w-full", children: [
624
+ return u !== void 0 ? f.value = m(u) : w !== void 0 && (f.defaultValue = m(w)), /* @__PURE__ */ p("div", { className: "w-full", children: [
625
625
  r && /* @__PURE__ */ e("label", { className: "mb-2 block text-sm font-medium text-blackBG", children: r }),
626
626
  /* @__PURE__ */ e("div", { className: "group relative", children: /* @__PURE__ */ e(
627
627
  "input",
@@ -637,42 +637,42 @@ const pe = E(
637
637
  pe.displayName = "NumberField";
638
638
  const or = {
639
639
  96: { name: "Кыргызстан", short: "KG", mask: "+996", length: 9 }
640
- }, ar = (n) => {
641
- const o = n.toUpperCase().split("").map((a) => 127397 + a.charCodeAt(0));
640
+ }, ar = (s) => {
641
+ const o = s.toUpperCase().split("").map((a) => 127397 + a.charCodeAt(0));
642
642
  return String.fromCodePoint(...o);
643
- }, J = () => Object.entries(or).map(([n, o]) => ({
644
- id: n,
643
+ }, J = () => Object.entries(or).map(([s, o]) => ({
644
+ id: s,
645
645
  name: o.name,
646
646
  short: o.short,
647
647
  mask: o.mask,
648
648
  dialCode: o.mask.replace("+", ""),
649
649
  length: o.length,
650
650
  flag: ar(o.short)
651
- })), $ = (n) => J().find((a) => a.id === n), te = (n, o) => {
651
+ })), $ = (s) => J().find((a) => a.id === s), te = (s, o) => {
652
652
  const a = o.dialCode, i = o.length;
653
- let r = n;
654
- n.startsWith(a) && (r = n.slice(a.length));
653
+ let r = s;
654
+ s.startsWith(a) && (r = s.slice(a.length));
655
655
  const t = r.slice(0, i);
656
656
  if (t.length === 0)
657
657
  return o.mask;
658
658
  let u = t;
659
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) => {
661
- if (!n)
660
+ }, nr = (s, o) => {
661
+ if (!s)
662
662
  return null;
663
- const a = n.replace(/\D/g, ""), i = J();
664
- if (n.startsWith("+")) {
663
+ const a = s.replace(/\D/g, ""), i = J();
664
+ if (s.startsWith("+")) {
665
665
  for (const r of i)
666
- if (n.startsWith(r.mask))
666
+ if (s.startsWith(r.mask))
667
667
  return r;
668
668
  }
669
669
  for (const r of i)
670
670
  if (a.startsWith(r.dialCode))
671
671
  return r;
672
672
  return a.startsWith("0") && $("96") || null;
673
- }, me = E(
673
+ }, me = j(
674
674
  ({
675
- className: n,
675
+ className: s,
676
676
  error: o,
677
677
  label: a,
678
678
  value: i,
@@ -680,43 +680,43 @@ const or = {
680
680
  defaultCountry: t = "996",
681
681
  ...u
682
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(() => {
683
+ const [D, n] = T(""), [N, k] = T(t), [m, C] = T(!1), [f, b] = T(""), x = i !== void 0, B = x ? i : D, { ref: F } = K(m, () => {
684
+ C(!1), b("");
685
+ }), v = Z(() => J(), []), _ = $(N) || v[0], I = Z(() => {
686
686
  if (!f)
687
687
  return v;
688
- const g = f.toLowerCase();
688
+ const h = f.toLowerCase();
689
689
  return v.filter(
690
- (D) => D.name.toLowerCase().includes(g) || D.mask.toLowerCase().includes(g) || D.short.toLowerCase().includes(g)
690
+ (L) => L.name.toLowerCase().includes(h) || L.mask.toLowerCase().includes(h) || L.short.toLowerCase().includes(h)
691
691
  );
692
- }, [v, f]), W = ((g) => {
693
- if (!g)
692
+ }, [v, f]), W = ((h) => {
693
+ if (!h)
694
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)
695
+ const L = h.replace(/\D/g, "");
696
+ let c = L;
697
+ (L.startsWith(_.dialCode) || h.startsWith(_.mask)) && (c = L.slice(_.dialCode.length));
698
+ const d = c.slice(0, _.length);
699
+ return d.length === 0 ? "" : d.length <= 3 ? d : d.length <= 6 ? `${d.slice(0, 3)} ${d.slice(3)}` : `${d.slice(0, 3)} ${d.slice(3, 6)} ${d.slice(6)}`;
700
+ })(B), A = (h) => {
701
+ k(h), C(!1), b("");
702
+ const L = B.replace(/\D/g, ""), c = $(h);
703
+ if (!c)
704
704
  return;
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
705
+ let d = L;
706
+ L.startsWith(_.dialCode) && (d = L.slice(_.dialCode.length));
707
+ const S = te(d, c);
708
+ x || n(S), r == null || r(S);
709
+ }, O = (h) => {
710
+ const L = h.target.value, c = L.replace(/\D/g, ""), d = nr(
711
+ L
712
712
  );
713
- p && p.id !== N && k(p.id);
714
- const _ = p || $(N) || B, l = te(m, _);
715
- b || s(l), r == null || r(l);
713
+ d && d.id !== N && k(d.id);
714
+ const S = d || $(N) || _, l = te(c, S);
715
+ x || n(l), r == null || r(l);
716
716
  };
717
- return /* @__PURE__ */ c("div", { className: "w-full", children: [
717
+ return /* @__PURE__ */ p("div", { className: "w-full", children: [
718
718
  a && /* @__PURE__ */ e("label", { className: "block text-sm font-medium text-blackBG mb-2", children: a }),
719
- /* @__PURE__ */ c(
719
+ /* @__PURE__ */ p(
720
720
  "div",
721
721
  {
722
722
  className: y(
@@ -727,38 +727,38 @@ const or = {
727
727
  "focus:border-greenLight focus:outline-none focus:shadow-[0_0_0_4px_rgba(22,163,74,0.15)] focus:ring-0",
728
728
  "disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-lightGray",
729
729
  o && "border-red-500 hover:border-red-500 focus:border-red-500 focus:shadow-[0_0_0_4px_rgba(239,68,68,0.15)]",
730
- n
730
+ s
731
731
  ),
732
732
  children: [
733
- /* @__PURE__ */ c(
733
+ /* @__PURE__ */ p(
734
734
  "div",
735
735
  {
736
736
  ref: F,
737
737
  className: "relative",
738
738
  children: [
739
- /* @__PURE__ */ c(
739
+ /* @__PURE__ */ p(
740
740
  "button",
741
741
  {
742
742
  type: "button",
743
- onClick: () => C(!d),
743
+ onClick: () => C(!m),
744
744
  className: y(
745
745
  "flex h-14 w-[120px] rounded-2xl px-3 py-2 items-center justify-center cursor-pointer shrink-0",
746
746
  "transition-all duration-300 ease-in-out",
747
747
  o && "border-red-500 hover:border-red-500 focus:border-red-500",
748
- d && "border-greenLight"
748
+ m && "border-greenLight"
749
749
  ),
750
750
  children: [
751
- /* @__PURE__ */ c("span", { className: "text-base font-medium whitespace-nowrap", children: [
752
- B.flag,
751
+ /* @__PURE__ */ p("span", { className: "text-base font-medium whitespace-nowrap", children: [
752
+ _.flag,
753
753
  " ",
754
- B.mask
754
+ _.mask
755
755
  ] }),
756
756
  /* @__PURE__ */ e(
757
757
  "svg",
758
758
  {
759
759
  className: y(
760
760
  "w-4 h-4 ml-1 text-grayBlue5 transition-transform duration-200 shrink-0",
761
- d && "rotate-180"
761
+ m && "rotate-180"
762
762
  ),
763
763
  fill: "none",
764
764
  stroke: "currentColor",
@@ -777,39 +777,39 @@ const or = {
777
777
  ]
778
778
  }
779
779
  ),
780
- d && /* @__PURE__ */ c("div", { className: "absolute top-[calc(100%+4px)] left-0 z-50 bg-white rounded-2xl border border-grayBlue shadow-lg max-h-[400px] overflow-hidden flex flex-col min-w-[280px]", children: [
780
+ m && /* @__PURE__ */ p("div", { className: "absolute top-[calc(100%+4px)] left-0 z-50 bg-white rounded-2xl border border-grayBlue shadow-lg max-h-[400px] overflow-hidden flex flex-col min-w-[280px]", children: [
781
781
  /* @__PURE__ */ e("div", { className: "p-3 border-b border-grayBlue", children: /* @__PURE__ */ e(
782
782
  "input",
783
783
  {
784
784
  type: "text",
785
785
  value: f,
786
- onChange: (g) => x(g.target.value),
786
+ onChange: (h) => b(h.target.value),
787
787
  placeholder: "Поиск страны...",
788
788
  className: y(
789
789
  "w-full px-3 py-2 rounded-xl border-[1px] border-grayBlue text-sm",
790
790
  "focus:outline-none focus:border-greenLight"
791
791
  ),
792
- onClick: (g) => g.stopPropagation()
792
+ onClick: (h) => h.stopPropagation()
793
793
  }
794
794
  ) }),
795
- /* @__PURE__ */ e("div", { className: "overflow-y-auto max-h-[340px]", children: M.length > 0 ? M.map((g) => /* @__PURE__ */ e(
795
+ /* @__PURE__ */ e("div", { className: "overflow-y-auto max-h-[340px]", children: I.length > 0 ? I.map((h) => /* @__PURE__ */ e(
796
796
  "button",
797
797
  {
798
798
  type: "button",
799
- onClick: () => O(g.id),
799
+ onClick: () => A(h.id),
800
800
  className: y(
801
801
  "w-full px-4 py-3 text-left cursor-pointer text-base text-blackBG transition-colors",
802
802
  "hover:bg-[#E8F4FD] focus:bg-[#E8F4FD] focus:outline-none",
803
- N === g.id && "bg-[#E8F4FD]",
803
+ N === h.id && "bg-[#E8F4FD]",
804
804
  "first:rounded-t-2xl"
805
805
  ),
806
- children: /* @__PURE__ */ c("span", { className: "flex items-center gap-2", children: [
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 })
806
+ children: /* @__PURE__ */ p("span", { className: "flex items-center gap-2", children: [
807
+ /* @__PURE__ */ e("span", { className: "text-lg", children: h.flag }),
808
+ /* @__PURE__ */ e("span", { className: "font-medium", children: h.mask }),
809
+ /* @__PURE__ */ e("span", { className: "text-sm text-grayBlue5", children: h.name })
810
810
  ] })
811
811
  },
812
- g.id
812
+ h.id
813
813
  )) : /* @__PURE__ */ e("div", { className: "px-4 py-3 text-center text-grayBlue5", children: "Страны не найдены" }) })
814
814
  ] })
815
815
  ]
@@ -828,11 +828,11 @@ const or = {
828
828
  "focus:border-none focus:outline-none focus:shadow-none focus:ring-0",
829
829
  "disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-lightGray",
830
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)]",
831
- n
831
+ s
832
832
  ),
833
833
  ref: w,
834
834
  value: W,
835
- onChange: j,
835
+ onChange: O,
836
836
  placeholder: "XXX XXX XXX",
837
837
  ...u
838
838
  }
@@ -845,9 +845,9 @@ const or = {
845
845
  }
846
846
  );
847
847
  me.displayName = "PhoneInput";
848
- const ue = E(
848
+ const ue = j(
849
849
  ({
850
- label: n,
850
+ label: s,
851
851
  options: o = [],
852
852
  value: a = [],
853
853
  name: i,
@@ -855,13 +855,13 @@ const ue = E(
855
855
  error: t,
856
856
  className: u,
857
857
  direction: w = "column"
858
- }, h) => /* @__PURE__ */ c(
858
+ }, D) => /* @__PURE__ */ p(
859
859
  "div",
860
860
  {
861
- ref: h,
861
+ ref: D,
862
862
  className: y("flex flex-col gap-2", u),
863
863
  children: [
864
- n && /* @__PURE__ */ e("label", { className: "text-sm font-medium text-blackBG mb-1", children: n }),
864
+ s && /* @__PURE__ */ e("label", { className: "text-sm font-medium text-blackBG mb-1", children: s }),
865
865
  /* @__PURE__ */ e(
866
866
  "div",
867
867
  {
@@ -869,17 +869,17 @@ const ue = E(
869
869
  "flex gap-4",
870
870
  w === "column" ? "flex-col" : "flex-row flex-wrap"
871
871
  ),
872
- children: o == null ? void 0 : o.map((s) => /* @__PURE__ */ e(
872
+ children: o == null ? void 0 : o.map((n) => /* @__PURE__ */ e(
873
873
  fe,
874
874
  {
875
875
  name: i,
876
- label: s == null ? void 0 : s.label,
877
- value: s == null ? void 0 : s.value,
878
- checked: a === (s == null ? void 0 : s.value),
879
- onChange: () => r == null ? void 0 : r(s == null ? void 0 : s.value),
876
+ label: n == null ? void 0 : n.label,
877
+ value: n == null ? void 0 : n.value,
878
+ checked: a === (n == null ? void 0 : n.value),
879
+ onChange: () => r == null ? void 0 : r(n == null ? void 0 : n.value),
880
880
  error: t && !a ? t : void 0
881
881
  },
882
- s == null ? void 0 : s.value
882
+ n == null ? void 0 : n.value
883
883
  ))
884
884
  }
885
885
  ),
@@ -889,10 +889,10 @@ const ue = E(
889
889
  )
890
890
  );
891
891
  ue.displayName = "RadioGroup";
892
- const fe = E(
893
- ({ className: n, label: o, error: a, ...i }, r) => /* @__PURE__ */ c("div", { className: "w-full", children: [
894
- /* @__PURE__ */ c("label", { className: "flex items-start gap-3 cursor-pointer group", children: [
895
- /* @__PURE__ */ c("div", { className: "relative flex items-center justify-center mt-0.5", children: [
892
+ const fe = j(
893
+ ({ className: s, label: o, error: a, ...i }, r) => /* @__PURE__ */ p("div", { className: "w-full", children: [
894
+ /* @__PURE__ */ p("label", { className: "flex items-start gap-3 cursor-pointer group", children: [
895
+ /* @__PURE__ */ p("div", { className: "relative flex items-center justify-center mt-0.5", children: [
896
896
  /* @__PURE__ */ e(
897
897
  "input",
898
898
  {
@@ -917,7 +917,7 @@ const fe = E(
917
917
  "after:top-1/2 after:left-1/2 after:-translate-x-1/2 after:-translate-y-1/2",
918
918
  "peer-checked:after:opacity-100",
919
919
  a && "border-red-500",
920
- n
920
+ s
921
921
  )
922
922
  }
923
923
  )
@@ -938,9 +938,9 @@ const fe = E(
938
938
  ] })
939
939
  );
940
940
  fe.displayName = "Radio";
941
- const he = E(
941
+ const he = j(
942
942
  ({
943
- className: n,
943
+ className: s,
944
944
  error: o,
945
945
  label: a,
946
946
  options: i = [],
@@ -948,60 +948,60 @@ const he = E(
948
948
  value: t,
949
949
  onChange: u,
950
950
  onBlur: w,
951
- name: h,
952
- disabled: s,
951
+ name: D,
952
+ disabled: n,
953
953
  ...N
954
954
  }, k) => {
955
955
  const {
956
- ref: d,
956
+ ref: m,
957
957
  isShow: C,
958
958
  setIsShow: f
959
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) => {
960
+ re(k, () => m.current);
961
+ const b = i.find((v) => v.value === t), x = () => {
962
+ n || f(!C);
963
+ }, B = (v) => {
964
964
  u && u({
965
965
  target: {
966
- name: h,
966
+ name: D,
967
967
  value: v.value
968
968
  }
969
969
  }), f(!1);
970
970
  }, F = (v) => {
971
971
  w && w({
972
972
  target: {
973
- name: h,
973
+ name: D,
974
974
  value: t
975
975
  }
976
976
  });
977
977
  };
978
- return /* @__PURE__ */ c(
978
+ return /* @__PURE__ */ p(
979
979
  "div",
980
980
  {
981
- className: y("w-full", n),
982
- ref: d,
981
+ className: y("w-full", s),
982
+ ref: m,
983
983
  onBlur: F,
984
984
  ...N,
985
985
  children: [
986
986
  a && /* @__PURE__ */ e("label", { className: "mb-2 block text-sm font-medium text-blackBG", children: a }),
987
- /* @__PURE__ */ c("div", { className: "relative", children: [
988
- /* @__PURE__ */ c(
987
+ /* @__PURE__ */ p("div", { className: "relative", children: [
988
+ /* @__PURE__ */ p(
989
989
  "button",
990
990
  {
991
991
  type: "button",
992
- onClick: b,
993
- disabled: s,
992
+ onClick: x,
993
+ disabled: n,
994
994
  className: y(
995
995
  "flex h-14 w-full items-center justify-between rounded-2xl border-[1px] border-grayBlue bg-white px-[20px] text-base text-blackBG",
996
996
  "transition-all duration-300 ease-in-out",
997
997
  "hover:border-greenLight hover:shadow-[0_0_0_4px_rgba(22,163,74,0.1)]",
998
998
  C && "border-greenLight shadow-[0_0_0_4px_rgba(22,163,74,0.15)] ring-0 outline-none",
999
- s && "cursor-not-allowed bg-lightGray opacity-50",
999
+ n && "cursor-not-allowed bg-lightGray opacity-50",
1000
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)]",
1001
- !x && "text-gray2 opacity-60"
1001
+ !b && "text-gray2 opacity-60"
1002
1002
  ),
1003
1003
  children: [
1004
- /* @__PURE__ */ e("span", { className: "truncate", children: x ? x.label : r }),
1004
+ /* @__PURE__ */ e("span", { className: "truncate", children: b ? b.label : r }),
1005
1005
  /* @__PURE__ */ e(
1006
1006
  "svg",
1007
1007
  {
@@ -1037,7 +1037,7 @@ const he = E(
1037
1037
  "button",
1038
1038
  {
1039
1039
  type: "button",
1040
- onClick: () => S(v),
1040
+ onClick: () => B(v),
1041
1041
  className: y(
1042
1042
  "flex w-full items-center px-5 py-3 text-left text-base transition-colors",
1043
1043
  "hover:bg-green-50 active:bg-green-100",
@@ -1080,14 +1080,14 @@ const sr = {
1080
1080
  radio: ue,
1081
1081
  checkbox: le,
1082
1082
  file: tt
1083
- }, cr = (n, {
1083
+ }, cr = (s, {
1084
1084
  register: o,
1085
1085
  errors: a,
1086
1086
  control: i
1087
1087
  }) => {
1088
1088
  const { t: r } = ae();
1089
- return n.map((t, u) => {
1090
- var h, s, N;
1089
+ return s.map((t, u) => {
1090
+ var D, n, N;
1091
1091
  if ((t == null ? void 0 : t.componentType) === "component") {
1092
1092
  const k = sr[t == null ? void 0 : t.key];
1093
1093
  if (k)
@@ -1103,9 +1103,9 @@ const sr = {
1103
1103
  if (w) {
1104
1104
  const k = ["select", "radio", "checkbox", "file"].includes(
1105
1105
  t.type
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 = {
1106
+ ), m = t != null && t.name ? (D = a[t == null ? void 0 : t.name]) == null ? void 0 : D.message : void 0, C = m ? r(m, m) : void 0, f = {
1107
1107
  ...t.field_props,
1108
- label: (s = t.field_props) != null && s.label ? r(t.field_props.label, t.field_props.label) : void 0,
1108
+ label: (n = t.field_props) != null && n.label ? r(t.field_props.label, t.field_props.label) : void 0,
1109
1109
  placeholder: (N = t.field_props) != null && N.placeholder ? r(t.field_props.placeholder, t.field_props.placeholder) : void 0
1110
1110
  };
1111
1111
  return k && i && (t != null && t.name) ? /* @__PURE__ */ e(
@@ -1114,13 +1114,13 @@ const sr = {
1114
1114
  name: t.name,
1115
1115
  control: i,
1116
1116
  rules: { validate: t.validate },
1117
- render: ({ field: { onChange: x, value: b, name: S, ref: F } }) => /* @__PURE__ */ e(
1117
+ render: ({ field: { onChange: b, value: x, name: B, ref: F } }) => /* @__PURE__ */ e(
1118
1118
  w,
1119
1119
  {
1120
1120
  ...f,
1121
- onChange: x,
1122
- value: b,
1123
- name: S,
1121
+ onChange: b,
1122
+ value: x,
1123
+ name: B,
1124
1124
  ref: F,
1125
1125
  error: C
1126
1126
  }
@@ -1149,12 +1149,12 @@ const sr = {
1149
1149
  return null;
1150
1150
  });
1151
1151
  }, ee = ({
1152
- label: n,
1152
+ label: s,
1153
1153
  type: o,
1154
1154
  options: a
1155
1155
  }) => ({
1156
1156
  dataType: z.select,
1157
- label: n,
1157
+ label: s,
1158
1158
  type: o,
1159
1159
  options: a
1160
1160
  }), Na = {
@@ -1198,9 +1198,9 @@ const sr = {
1198
1198
  dataType: z.object,
1199
1199
  data: {
1200
1200
  keys: {
1201
- title: P.TITLE,
1202
- description: P.DESCRIPTION,
1203
- html_content: P.HTML_CONTENT
1201
+ title: E.TITLE,
1202
+ description: E.DESCRIPTION,
1203
+ html_content: E.HTML_CONTENT
1204
1204
  }
1205
1205
  }
1206
1206
  },
@@ -1209,9 +1209,9 @@ const sr = {
1209
1209
  dataType: z.object,
1210
1210
  data: {
1211
1211
  keys: {
1212
- label: P.TITLE,
1213
- placeholder: P.DESCRIPTION,
1214
- is_required: P.BOOLEAN
1212
+ label: E.TITLE,
1213
+ placeholder: E.DESCRIPTION,
1214
+ is_required: E.BOOLEAN
1215
1215
  }
1216
1216
  }
1217
1217
  }
@@ -1222,78 +1222,82 @@ const sr = {
1222
1222
  "color",
1223
1223
  hr,
1224
1224
  Rt,
1225
- "file"
1225
+ "file",
1226
+ "object_data"
1226
1227
  ], ge = ({
1227
- title: n,
1228
+ title: s,
1228
1229
  subtitle: o,
1229
1230
  color: a,
1230
1231
  gridCols: i = 1,
1231
1232
  gridRow: r = 2,
1232
1233
  fields: t = [],
1233
1234
  requestForm: u,
1234
- file: w
1235
+ file: w,
1236
+ object_data: D
1235
1237
  }) => {
1236
- var j;
1237
- const { t: h } = ae(), [s, N] = T(!1), [k, d] = T(!1), [C, f] = T(null), x = et(960), {
1238
- register: b,
1239
- handleSubmit: S,
1240
- watch: F,
1241
- reset: v,
1242
- control: B,
1238
+ var h;
1239
+ const { t: n } = ae(), [N, k] = T(!1), [m, C] = T(!1), [f, b] = T(null), x = et(960), {
1240
+ register: B,
1241
+ handleSubmit: F,
1242
+ watch: v,
1243
+ reset: _,
1244
+ control: I,
1243
1245
  formState: { errors: M }
1244
1246
  } = Je({
1245
1247
  defaultValues: {
1246
1248
  agreement: !1
1247
1249
  }
1248
- }), I = F("agreement"), W = async (g) => {
1250
+ }), W = v("agreement"), A = async (L) => {
1249
1251
  if (!(u != null && u.api_url)) {
1250
1252
  console.warn("API URL is not defined in requestForm props");
1251
1253
  return;
1252
1254
  }
1253
- d(!0), f(null);
1255
+ C(!0), b(null);
1254
1256
  try {
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));
1257
+ const c = new FormData();
1258
+ Object.entries(L).forEach(([l, g]) => {
1259
+ g != null && (Array.isArray(g) ? g.forEach((H) => {
1260
+ c.append(l, H);
1261
+ }) : c.append(l, g));
1262
+ }), Object.entries(D).forEach(([l, g]) => {
1263
+ c == null || c.append(l, g);
1260
1264
  });
1261
- const m = await fetch(u.api_url, {
1265
+ const d = await fetch(u.api_url, {
1262
1266
  method: "POST",
1263
1267
  // При отправке FormData заголовок Content-Type устанавливать НЕ НУЖНО,
1264
1268
  // браузер установит его автоматически вместе с boundary
1265
- body: D
1269
+ body: c
1266
1270
  });
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:", _);
1271
+ if (!d.ok)
1272
+ throw new Error(`HTTP error! status: ${d.status}`);
1273
+ const S = d.headers.get("content-type");
1274
+ if (S && S.includes("application/json")) {
1275
+ const l = await d.json();
1276
+ console.log("Success:", l);
1273
1277
  }
1274
- N(!0), v();
1275
- } catch (D) {
1276
- console.error("Error submitting form:", D), f(
1277
- h(
1278
+ k(!0), _();
1279
+ } catch (c) {
1280
+ console.error("Error submitting form:", c), b(
1281
+ n(
1278
1282
  "form.submit_error",
1279
1283
  "Произошла ошибка при отправке. Пожалуйста, попробуйте позже."
1280
1284
  )
1281
1285
  );
1282
1286
  } finally {
1283
- d(!1);
1287
+ C(!1);
1284
1288
  }
1285
1289
  }, O = cr(t || [], {
1286
- register: b,
1290
+ register: B,
1287
1291
  errors: M,
1288
- control: B
1292
+ control: I
1289
1293
  });
1290
1294
  return /* @__PURE__ */ e(oe, { children: /* @__PURE__ */ e(
1291
1295
  "form",
1292
1296
  {
1293
- onSubmit: S(W),
1297
+ onSubmit: F(A),
1294
1298
  id: "application_form",
1295
1299
  className: "w-full",
1296
- children: /* @__PURE__ */ c(
1300
+ children: /* @__PURE__ */ p(
1297
1301
  "div",
1298
1302
  {
1299
1303
  style: {
@@ -1301,11 +1305,11 @@ const sr = {
1301
1305
  },
1302
1306
  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]",
1303
1307
  children: [
1304
- /* @__PURE__ */ c("div", { className: "text-center mb-10 max-tablet:mb-8", children: [
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) })
1308
+ /* @__PURE__ */ p("div", { className: "text-center mb-10 max-tablet:mb-8", children: [
1309
+ /* @__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: n(s || "", s) }),
1310
+ /* @__PURE__ */ e("span", { className: "text-[18px] leading-[26px] text-graySoft max-tablet:text-[16px] max-tablet:leading-[24px]", children: n(o || "", o) })
1307
1311
  ] }),
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: [
1312
+ 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__ */ p("div", { className: "text-center", children: [
1309
1313
  /* @__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(
1310
1314
  "svg",
1311
1315
  {
@@ -1324,9 +1328,9 @@ const sr = {
1324
1328
  )
1325
1329
  }
1326
1330
  ) }),
1327
- /* @__PURE__ */ c("div", { className: "text-center", children: [
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(
1331
+ /* @__PURE__ */ p("div", { className: "text-center", children: [
1332
+ /* @__PURE__ */ e("div", { className: "font-semibold text-[24px] leading-[32px] text-blackBG mb-3", children: n("form.success_title", "Заявка успешно отправлена") }),
1333
+ /* @__PURE__ */ e("div", { className: "text-[18px] leading-[26px] text-graySoft", children: n(
1330
1334
  "form.success_description",
1331
1335
  "С Вами свяжется наш специалист и поможет с подключением сервиса"
1332
1336
  ) }),
@@ -1334,14 +1338,14 @@ const sr = {
1334
1338
  X,
1335
1339
  {
1336
1340
  className: "justify-center m-auto mt-6",
1337
- title: h("form.close", "Закрыть"),
1341
+ title: n("form.close", "Закрыть"),
1338
1342
  onClick: () => {
1339
- N(!1), v();
1343
+ k(!1), _();
1340
1344
  }
1341
1345
  }
1342
1346
  )
1343
1347
  ] })
1344
- ] }) }) : /* @__PURE__ */ c(R, { children: [
1348
+ ] }) }) : /* @__PURE__ */ p(R, { children: [
1345
1349
  /* @__PURE__ */ e(
1346
1350
  "div",
1347
1351
  {
@@ -1356,25 +1360,25 @@ const sr = {
1356
1360
  /* @__PURE__ */ e("div", { className: "pt-2", children: /* @__PURE__ */ e(
1357
1361
  Q,
1358
1362
  {
1359
- ...b("agreement", {
1360
- required: h(
1363
+ ...B("agreement", {
1364
+ required: n(
1361
1365
  "form.agreement_required",
1362
1366
  "Необходимо согласие на обработку персональных данных"
1363
1367
  )
1364
1368
  }),
1365
- error: (j = M.agreement) == null ? void 0 : j.message,
1366
- label: /* @__PURE__ */ c(R, { children: [
1367
- h("form.i_agree", "Я соглашаюсь с"),
1369
+ error: (h = M.agreement) == null ? void 0 : h.message,
1370
+ label: /* @__PURE__ */ p(R, { children: [
1371
+ n("form.i_agree", "Я соглашаюсь с"),
1368
1372
  " ",
1369
1373
  /* @__PURE__ */ e(
1370
1374
  "button",
1371
1375
  {
1372
1376
  type: "button",
1373
1377
  className: "text-greenLight hover:text-green underline transition-colors duration-200 bg-transparent border-0 p-0 cursor-pointer",
1374
- onClick: (g) => {
1375
- g.preventDefault(), window.open(w || "", "_blank");
1378
+ onClick: (L) => {
1379
+ L.preventDefault(), window.open(w || "", "_blank");
1376
1380
  },
1377
- children: h(
1381
+ children: n(
1378
1382
  "form.agreement_link",
1379
1383
  "условиями обработки персональных данных"
1380
1384
  )
@@ -1383,17 +1387,17 @@ const sr = {
1383
1387
  ] })
1384
1388
  }
1385
1389
  ) }),
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 }),
1390
+ f && /* @__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: f }),
1387
1391
  /* @__PURE__ */ e("div", { className: "mt-6 w-[640px] max-tablet:w-full", children: /* @__PURE__ */ e(
1388
1392
  X,
1389
1393
  {
1390
- loading: k,
1394
+ loading: m,
1391
1395
  className: "w-full whitespace-nowrap transition-all duration-200 hover:scale-[1.02] active:scale-[0.98]",
1392
1396
  type: "submit",
1393
1397
  size: Ne.XL,
1394
1398
  variant: _e.Primary,
1395
- disabled: !I || k,
1396
- children: h("form.submit", "Отправить заявку")
1399
+ disabled: !W || m,
1400
+ children: n("form.submit", "Отправить заявку")
1397
1401
  }
1398
1402
  ) })
1399
1403
  ] })
@@ -1405,7 +1409,7 @@ const sr = {
1405
1409
  };
1406
1410
  ge.propsToEdit = gr;
1407
1411
  const Ba = {
1408
- MainBanner: { key: "MainBanner", component: We },
1412
+ MainBanner: { key: "MainBanner", component: je },
1409
1413
  Banner: { key: "Banner", component: we },
1410
1414
  CardImageList: { key: "CardImageList", component: Ee },
1411
1415
  Stepper: { key: "Stepper", component: Be },
@@ -1419,7 +1423,7 @@ const Ba = {
1419
1423
  Partners: { key: "Partners", component: Pe },
1420
1424
  PartnersColors: { key: "PartnersColors", component: Oe },
1421
1425
  WarningCard: { key: "WarningCard", component: U },
1422
- Faq: { key: "Faq", component: Ae },
1426
+ Faq: { key: "Faq", component: We },
1423
1427
  DownloadFileBanner: {
1424
1428
  key: "DownloadFileBanner",
1425
1429
  component: $e
@@ -1427,7 +1431,7 @@ const Ba = {
1427
1431
  DownloadFileHalf: { key: "DownloadFileHalf", component: Re },
1428
1432
  DownloadFileFull: { key: "DownloadFileFull", component: Ze },
1429
1433
  DownloadFileMini: { key: "DownloadFileMini", component: Xe },
1430
- InstructionList: { key: "InstructionList", component: je },
1434
+ InstructionList: { key: "InstructionList", component: Ae },
1431
1435
  PreviewList: { key: "PreviewList", component: Ge },
1432
1436
  SwiperList: { key: "SwiperList", component: it },
1433
1437
  AnimatedSwiper: { key: "AnimatedSwiper", component: qe },
@@ -1470,8 +1474,8 @@ const Ba = {
1470
1474
  Partners: kt.component_props,
1471
1475
  PartnersColors: Ct.component_props,
1472
1476
  WarningCard: vt.component_props,
1473
- Faq: Dt.component_props,
1474
- DownloadFileBanner: Lt.component_props,
1477
+ Faq: Lt.component_props,
1478
+ DownloadFileBanner: Dt.component_props,
1475
1479
  DownloadFileHalf: Nt.component_props,
1476
1480
  DownloadFileFull: _t.component_props,
1477
1481
  DownloadFileMini: Bt.component_props,
@@ -1484,9 +1488,9 @@ const Ba = {
1484
1488
  VideoMainBanner: Ht.component_props,
1485
1489
  EmptyBox: Pt.component_props,
1486
1490
  PromoPoster: Et.component_props,
1487
- CardImageSecondaryList: Wt.component_props,
1488
- CardInfoTable: At.component_props,
1489
- StandartTable: jt.component_props,
1491
+ CardImageSecondaryList: jt.component_props,
1492
+ CardInfoTable: Wt.component_props,
1493
+ StandartTable: At.component_props,
1490
1494
  IntroBanner: Ot.component_props,
1491
1495
  DownloadFileBright: Gt.component_props,
1492
1496
  FormDefault: dr,