md-components-mdigial-azamat 0.0.100 → 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, f, p, L;
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]",
@@ -144,28 +144,28 @@ const ne = [
144
144
  /* @__PURE__ */ e(
145
145
  Kt,
146
146
  {
147
- name: (f = G[r]) == null ? void 0 : f.icon,
147
+ name: (u = G[r]) == null ? void 0 : u.icon,
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
- style: { color: (p = G[r]) == null ? void 0 : p.textColor },
157
- children: n
156
+ style: { color: (w = G[r]) == null ? void 0 : w.textColor },
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: (L = G[r]) == null ? void 0 : L.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,45 +210,45 @@ 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,
219
219
  error: r,
220
220
  className: t,
221
- direction: f = "column"
222
- }, p) => {
223
- const L = (s) => {
221
+ direction: u = "column"
222
+ }, w) => {
223
+ const D = (n) => {
224
224
  if (!i)
225
225
  return;
226
- const D = a.includes(s) ? a.filter((w) => w !== s) : [...a, s];
227
- i(D);
226
+ const N = a.includes(n) ? a.filter((k) => k !== n) : [...a, n];
227
+ i(N);
228
228
  };
229
- return /* @__PURE__ */ c(
229
+ return /* @__PURE__ */ p(
230
230
  "div",
231
231
  {
232
- ref: p,
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
  {
239
239
  className: y(
240
240
  "flex gap-4",
241
- f === "column" ? "flex-col" : "flex-row flex-wrap"
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: () => L(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,56 +367,56 @@ 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,
376
376
  onChange: r,
377
377
  placeholder: t = "Дата обращения в Контакт-центр",
378
- ...f
379
- }, p) => {
380
- const [L, s] = T(""), [D, w] = T(!1), [d, k] = T((/* @__PURE__ */ new Date()).getMonth()), [h, b] = T((/* @__PURE__ */ new Date()).getFullYear()), [x, F] = T(null), S = i !== void 0, C = S ? i : L, { ref: B } = K(D, () => {
381
- w(!1);
382
- }), V = Z(() => er(C), [C]);
378
+ ...u
379
+ }, w) => {
380
+ const [D, n] = T(""), [N, k] = T(!1), [m, C] = T((/* @__PURE__ */ new Date()).getMonth()), [f, b] = T((/* @__PURE__ */ new Date()).getFullYear()), [x, B] = T(null), F = i !== void 0, v = F ? i : D, { ref: _ } = K(N, () => {
381
+ k(!1);
382
+ }), I = Z(() => er(v), [v]);
383
383
  ke(() => {
384
- V && (F(V), k(V.getMonth()), b(V.getFullYear()));
385
- }, [V]);
386
- const I = Z(() => {
387
- const g = new Date(h, d, 1), _ = new Date(h, d + 1, 0).getDate(), u = g.getDay(), N = [], A = new Date(h, d, 0).getDate();
388
- for (let M = u - 1; M >= 0; M--)
389
- N.push(A - M);
390
- for (let M = 1; M <= _; M++)
391
- N.push(M);
392
- const H = 42 - N.length;
393
- for (let M = 1; M <= H; M++)
394
- N.push(M);
395
- return N;
396
- }, [d, h]), W = (g) => {
397
- const l = g.target.value;
398
- S || s(l), r == null || r(l);
399
- }, O = (g, l, _) => {
400
- if (g === null)
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
+ for (let V = l - 1; V >= 0; V--)
389
+ g.push(H - V);
390
+ for (let V = 1; V <= S; V++)
391
+ g.push(V);
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 u = d, N = h;
403
- l ? (u = u - 1, u < 0 && (u = 11, N = N - 1)) : _ && (u = u + 1, u > 11 && (u = 0, N = N + 1));
404
- const A = new Date(N, u, g), H = Jt(A);
405
- F(A), k(u), b(N), S || s(H), r == null || r(H), w(!1);
406
- }, j = () => {
407
- d === 0 ? (k(11), b(h - 1)) : k(d - 1);
408
- }, m = () => {
409
- d === 11 ? (k(0), b(h + 1)) : k(d + 1);
410
- }, v = (g, l, _) => {
411
- if (!x || g === 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 u = d, N = h;
414
- return l ? (u = u - 1, u < 0 && (u = 11, N = N - 1)) : _ && (u = u + 1, u > 11 && (u = 0, N = N + 1)), x.getDate() === g && x.getMonth() === u && x.getFullYear() === N;
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,14 +425,14 @@ 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(
432
432
  "button",
433
433
  {
434
434
  type: "button",
435
- onClick: () => w(!D),
435
+ onClick: () => k(!N),
436
436
  className: "absolute left-4 flex items-center justify-center cursor-pointer",
437
437
  tabIndex: -1,
438
438
  children: /* @__PURE__ */ e(Qt, {})
@@ -449,30 +449,30 @@ const Qt = () => /* @__PURE__ */ e(
449
449
  "bg-transparent border-none outline-none",
450
450
  "disabled:cursor-not-allowed disabled:opacity-50"
451
451
  ),
452
- ref: p,
453
- value: C,
452
+ ref: w,
453
+ value: v,
454
454
  onChange: W,
455
455
  placeholder: t,
456
- onClick: () => w(!0),
456
+ onClick: () => k(!0),
457
457
  readOnly: !0,
458
- ...f
458
+ ...u
459
459
  }
460
460
  )
461
461
  ]
462
462
  }
463
463
  ),
464
- D && /* @__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, h) }),
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: m,
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((g) => /* @__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: g
533
+ children: c
534
534
  },
535
- g
535
+ c
536
536
  )) }),
537
- /* @__PURE__ */ e("div", { className: "grid grid-cols-7 gap-1", children: I.map((g, l) => {
538
- const u = new Date(h, d, 1).getDay(), N = new Date(
539
- h,
540
- d + 1,
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
+ f,
540
+ m + 1,
541
541
  0
542
- ).getDate(), A = l < u, H = l >= u + N, M = !A && !H, be = v(
543
- g,
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(g, A, H),
552
- disabled: g === 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
- M ? "text-blackBG" : "text-grayBlue5 opacity-50",
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: g
559
+ children: c
560
560
  },
561
- l
561
+ d
562
562
  );
563
563
  }) })
564
564
  ]
@@ -570,43 +570,43 @@ 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,
579
579
  label: r,
580
580
  onChange: t,
581
- value: f,
582
- defaultValue: p,
583
- ...L
584
- }, s) => {
585
- const D = Ce(null);
586
- re(s, () => D.current);
587
- const w = !!a || !!o, d = ve(
581
+ value: u,
582
+ defaultValue: w,
583
+ ...D
584
+ }, n) => {
585
+ const N = Ce(null);
586
+ re(n, () => N.current);
587
+ const k = !!a || !!o, m = ve(
588
588
  (b) => {
589
589
  if (b == null || b === "")
590
590
  return "";
591
591
  const x = Array.isArray(b) ? b.join("").replace(/\D/g, "") : b.toString().replace(/\D/g, "");
592
- return w ? x.replace(/\B(?=(\d{3})+(?!\d))/g, " ") : x;
592
+ return k ? x.replace(/\B(?=(\d{3})+(?!\d))/g, " ") : x;
593
593
  },
594
- [w]
595
- ), h = {
596
- ...L,
594
+ [k]
595
+ ), f = {
596
+ ...D,
597
597
  type: "text",
598
598
  inputMode: "numeric",
599
599
  onChange: (b) => {
600
- const x = b.target, F = x.value, S = F.replace(/\D/g, ""), C = x.selectionStart || 0, B = F.slice(0, C).replace(/\D/g, "").length, V = d(S);
601
- if (x.value = V, t) {
602
- const I = x.value;
603
- x.value = S, t(b), x.value = I;
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
- if (w) {
606
- let I = 0, W = 0;
607
- for (; W < B && I < x.value.length; )
608
- /\d/.test(x.value[I]) && W++, I++;
609
- x.setSelectionRange(I, I);
605
+ if (k) {
606
+ let M = 0, W = 0;
607
+ for (; W < _ && M < x.value.length; )
608
+ /\d/.test(x.value[M]) && W++, M++;
609
+ x.setSelectionRange(M, M);
610
610
  }
611
611
  },
612
612
  className: y(
@@ -618,16 +618,16 @@ 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 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 = 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",
628
628
  {
629
- ...h,
630
- ref: D
629
+ ...f,
630
+ ref: N
631
631
  }
632
632
  ) }),
633
633
  i && /* @__PURE__ */ e("p", { className: "mt-2 text-sm text-red-500", children: i })
@@ -637,86 +637,86 @@ 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
- let f = t;
659
- return t.length > 6 ? f = `${t.slice(0, 3)} ${t.slice(3, 6)} ${t.slice(6)}` : t.length > 3 && (f = `${t.slice(0, 3)} ${t.slice(3)}`), `${o.mask} ${f}`;
660
- }, nr = (n, o) => {
661
- if (!n)
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 = (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,
679
679
  onChange: r,
680
680
  defaultCountry: t = "996",
681
- ...f
682
- }, p) => {
683
- const [L, s] = T(""), [D, w] = T(t), [d, k] = T(!1), [h, b] = T(""), x = i !== void 0, F = x ? i : L, { ref: S } = K(d, () => {
684
- k(!1), b("");
685
- }), C = Z(() => J(), []), B = $(D) || C[0], V = Z(() => {
686
- if (!h)
687
- return C;
688
- const m = h.toLowerCase();
689
- return C.filter(
690
- (v) => v.name.toLowerCase().includes(m) || v.mask.toLowerCase().includes(m) || v.short.toLowerCase().includes(m)
681
+ ...u
682
+ }, w) => {
683
+ const [D, n] = T(""), [N, k] = T(t), [m, C] = T(!1), [f, b] = T(""), x = i !== void 0, B = x ? i : D, { ref: F } = K(m, () => {
684
+ C(!1), b("");
685
+ }), v = Z(() => J(), []), _ = $(N) || v[0], I = Z(() => {
686
+ if (!f)
687
+ return v;
688
+ const h = f.toLowerCase();
689
+ return v.filter(
690
+ (L) => L.name.toLowerCase().includes(h) || L.mask.toLowerCase().includes(h) || L.short.toLowerCase().includes(h)
691
691
  );
692
- }, [C, h]), W = ((m) => {
693
- if (!m)
692
+ }, [v, f]), W = ((h) => {
693
+ if (!h)
694
694
  return "";
695
- const v = m.replace(/\D/g, "");
696
- let g = v;
697
- (v.startsWith(B.dialCode) || m.startsWith(B.mask)) && (g = v.slice(B.dialCode.length));
698
- const l = g.slice(0, B.length);
699
- return l.length === 0 ? "" : l.length <= 3 ? l : l.length <= 6 ? `${l.slice(0, 3)} ${l.slice(3)}` : `${l.slice(0, 3)} ${l.slice(3, 6)} ${l.slice(6)}`;
700
- })(F), O = (m) => {
701
- w(m), k(!1), b("");
702
- const v = F.replace(/\D/g, ""), g = $(m);
703
- if (!g)
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 l = v;
706
- v.startsWith(B.dialCode) && (l = v.slice(B.dialCode.length));
707
- const _ = te(l, g);
708
- x || s(_), r == null || r(_);
709
- }, j = (m) => {
710
- const v = m.target.value, g = v.replace(/\D/g, ""), l = nr(
711
- v
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
- l && l.id !== D && w(l.id);
714
- const _ = l || $(D) || B, u = te(g, _);
715
- x || s(u), r == null || r(u);
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
- ref: S,
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: () => k(!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
- value: h,
786
- onChange: (m) => b(m.target.value),
785
+ value: f,
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: (m) => m.stopPropagation()
792
+ onClick: (h) => h.stopPropagation()
793
793
  }
794
794
  ) }),
795
- /* @__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: I.length > 0 ? I.map((h) => /* @__PURE__ */ e(
796
796
  "button",
797
797
  {
798
798
  type: "button",
799
- onClick: () => O(m.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
- D === m.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: m.flag }),
808
- /* @__PURE__ */ e("span", { className: "font-medium", children: m.mask }),
809
- /* @__PURE__ */ e("span", { className: "text-sm text-grayBlue5", children: m.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
- m.id
812
+ h.id
813
813
  )) : /* @__PURE__ */ e("div", { className: "px-4 py-3 text-center text-grayBlue5", children: "Страны не найдены" }) })
814
814
  ] })
815
815
  ]
@@ -828,13 +828,13 @@ 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
- ref: p,
833
+ ref: w,
834
834
  value: W,
835
- onChange: j,
835
+ onChange: O,
836
836
  placeholder: "XXX XXX XXX",
837
- ...f
837
+ ...u
838
838
  }
839
839
  )
840
840
  ]
@@ -845,41 +845,41 @@ 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,
854
854
  onChange: r,
855
855
  error: t,
856
- className: f,
857
- direction: p = "column"
858
- }, L) => /* @__PURE__ */ c(
856
+ className: u,
857
+ direction: w = "column"
858
+ }, D) => /* @__PURE__ */ p(
859
859
  "div",
860
860
  {
861
- ref: L,
862
- className: y("flex flex-col gap-2", f),
861
+ ref: D,
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
  {
868
868
  className: y(
869
869
  "flex gap-4",
870
- p === "column" ? "flex-col" : "flex-row flex-wrap"
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,65 +938,65 @@ 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 = [],
947
947
  placeholder: r = "Выберите категорию",
948
948
  value: t,
949
- onChange: f,
950
- onBlur: p,
951
- name: L,
952
- disabled: s,
953
- ...D
954
- }, w) => {
949
+ onChange: u,
950
+ onBlur: w,
951
+ name: D,
952
+ disabled: n,
953
+ ...N
954
+ }, k) => {
955
955
  const {
956
- ref: d,
957
- isShow: k,
958
- setIsShow: h
956
+ ref: m,
957
+ isShow: C,
958
+ setIsShow: f
959
959
  } = K(!1);
960
- re(w, () => d.current);
961
- const b = i.find((C) => C.value === t), x = () => {
962
- s || h(!k);
963
- }, F = (C) => {
964
- f && f({
960
+ re(k, () => m.current);
961
+ const b = i.find((v) => v.value === t), x = () => {
962
+ n || f(!C);
963
+ }, B = (v) => {
964
+ u && u({
965
965
  target: {
966
- name: L,
967
- value: C.value
966
+ name: D,
967
+ value: v.value
968
968
  }
969
- }), h(!1);
970
- }, S = (C) => {
971
- p && p({
969
+ }), f(!1);
970
+ }, F = (v) => {
971
+ w && w({
972
972
  target: {
973
- name: L,
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,
983
- onBlur: S,
984
- ...D,
981
+ className: y("w-full", s),
982
+ ref: m,
983
+ onBlur: F,
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
992
  onClick: x,
993
- disabled: s,
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
- k && "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",
998
+ C && "border-greenLight shadow-[0_0_0_4px_rgba(22,163,74,0.15)] ring-0 outline-none",
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
1001
  !b && "text-gray2 opacity-60"
1002
1002
  ),
@@ -1007,7 +1007,7 @@ const he = E(
1007
1007
  {
1008
1008
  className: y(
1009
1009
  "ml-2 h-5 w-5 text-gray2 transition-transform duration-300",
1010
- k && "rotate-180"
1010
+ C && "rotate-180"
1011
1011
  ),
1012
1012
  fill: "none",
1013
1013
  stroke: "currentColor",
@@ -1026,28 +1026,28 @@ const he = E(
1026
1026
  ]
1027
1027
  }
1028
1028
  ),
1029
- k && /* @__PURE__ */ e(
1029
+ C && /* @__PURE__ */ e(
1030
1030
  "div",
1031
1031
  {
1032
1032
  className: y(
1033
1033
  "absolute left-0 z-[100] mt-2 w-full overflow-hidden rounded-2xl border-[1px] border-grayBlue bg-white shadow-xl",
1034
1034
  "transition-all duration-200 ease-in-out"
1035
1035
  ),
1036
- children: /* @__PURE__ */ e("div", { className: "max-h-[280px] overflow-y-auto py-2", children: i.length > 0 ? i.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(
1037
1037
  "button",
1038
1038
  {
1039
1039
  type: "button",
1040
- onClick: () => F(C),
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",
1044
- C.value === t && "bg-green-50 font-medium text-greenLight",
1044
+ v.value === t && "bg-green-50 font-medium text-greenLight",
1045
1045
  // Мобильные отступы чуть больше для удобства тапа
1046
1046
  "max-tablet:py-4"
1047
1047
  ),
1048
- children: C.label
1048
+ children: v.label
1049
1049
  },
1050
- C.value
1050
+ v.value
1051
1051
  )) : /* @__PURE__ */ e("div", { className: "px-5 py-3 text-sm text-gray2", children: "Нет данных" }) })
1052
1052
  }
1053
1053
  )
@@ -1080,81 +1080,81 @@ 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, f) => {
1090
- var L, s, D;
1089
+ return s.map((t, u) => {
1090
+ var D, n, N;
1091
1091
  if ((t == null ? void 0 : t.componentType) === "component") {
1092
- const w = sr[t == null ? void 0 : t.key];
1093
- if (w)
1092
+ const k = sr[t == null ? void 0 : t.key];
1093
+ if (k)
1094
1094
  return /* @__PURE__ */ e(
1095
- w,
1095
+ k,
1096
1096
  {
1097
1097
  ...t == null ? void 0 : t.props
1098
1098
  },
1099
- f
1099
+ u
1100
1100
  );
1101
1101
  }
1102
- const p = lr[t == null ? void 0 : t.type];
1103
- if (p) {
1104
- 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(
1105
1105
  t.type
1106
- ), d = t != null && t.name ? (L = a[t == null ? void 0 : t.name]) == null ? void 0 : L.message : void 0, k = d ? r(d, d) : void 0, h = {
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,
1109
- placeholder: (D = t.field_props) != null && D.placeholder ? r(t.field_props.placeholder, t.field_props.placeholder) : void 0
1108
+ label: (n = t.field_props) != null && n.label ? r(t.field_props.label, t.field_props.label) : void 0,
1109
+ placeholder: (N = t.field_props) != null && N.placeholder ? r(t.field_props.placeholder, t.field_props.placeholder) : void 0
1110
1110
  };
1111
- return w && i && (t != null && t.name) ? /* @__PURE__ */ e(
1111
+ return k && i && (t != null && t.name) ? /* @__PURE__ */ e(
1112
1112
  Qe,
1113
1113
  {
1114
1114
  name: t.name,
1115
1115
  control: i,
1116
1116
  rules: { validate: t.validate },
1117
- render: ({ field: { onChange: b, value: x, name: F, ref: S } }) => /* @__PURE__ */ e(
1118
- p,
1117
+ render: ({ field: { onChange: b, value: x, name: B, ref: F } }) => /* @__PURE__ */ e(
1118
+ w,
1119
1119
  {
1120
- ...h,
1120
+ ...f,
1121
1121
  onChange: b,
1122
1122
  value: x,
1123
- name: F,
1124
- ref: S,
1125
- error: k
1123
+ name: B,
1124
+ ref: F,
1125
+ error: C
1126
1126
  }
1127
1127
  )
1128
1128
  },
1129
- f
1129
+ u
1130
1130
  ) : t.name ? /* @__PURE__ */ e(
1131
- p,
1131
+ w,
1132
1132
  {
1133
- ...h,
1133
+ ...f,
1134
1134
  ...o(t == null ? void 0 : t.name, {
1135
1135
  validate: t == null ? void 0 : t.validate
1136
1136
  }),
1137
- error: k
1137
+ error: C
1138
1138
  },
1139
- f
1139
+ u
1140
1140
  ) : /* @__PURE__ */ e(
1141
- p,
1141
+ w,
1142
1142
  {
1143
- ...h,
1144
- error: k
1143
+ ...f,
1144
+ error: C
1145
1145
  },
1146
- f
1146
+ u
1147
1147
  );
1148
1148
  }
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
  }
@@ -1221,80 +1221,83 @@ const sr = {
1221
1221
  "subtitle",
1222
1222
  "color",
1223
1223
  hr,
1224
- Rt
1224
+ Rt,
1225
+ "file",
1226
+ "object_data"
1225
1227
  ], ge = ({
1226
- title: n,
1228
+ title: s,
1227
1229
  subtitle: o,
1228
1230
  color: a,
1229
1231
  gridCols: i = 1,
1230
1232
  gridRow: r = 2,
1231
1233
  fields: t = [],
1232
- requestForm: f
1234
+ requestForm: u,
1235
+ file: w,
1236
+ object_data: D
1233
1237
  }) => {
1234
- var O;
1235
- const { t: p } = ae(), [L, s] = T(!1), [D, w] = T(!1), [d, k] = T(null), h = et(960), {
1236
- register: b,
1237
- handleSubmit: x,
1238
- watch: F,
1239
- reset: S,
1240
- control: C,
1241
- formState: { errors: 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,
1245
+ formState: { errors: M }
1242
1246
  } = Je({
1243
1247
  defaultValues: {
1244
- fio: "",
1245
- phone: "",
1246
- business_category: "",
1247
1248
  agreement: !1
1248
1249
  }
1249
- }), V = F("agreement"), I = async (j) => {
1250
- if (!(f != null && f.api_url)) {
1250
+ }), W = v("agreement"), A = async (L) => {
1251
+ if (!(u != null && u.api_url)) {
1251
1252
  console.warn("API URL is not defined in requestForm props");
1252
1253
  return;
1253
1254
  }
1254
- w(!0), k(null);
1255
+ C(!0), b(null);
1255
1256
  try {
1256
- const m = new FormData();
1257
- Object.entries(j).forEach(([l, _]) => {
1258
- _ != null && (Array.isArray(_) ? _.forEach((u) => {
1259
- m.append(l, u);
1260
- }) : m.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);
1261
1264
  });
1262
- const v = await fetch(f.api_url, {
1265
+ const d = await fetch(u.api_url, {
1263
1266
  method: "POST",
1264
1267
  // При отправке FormData заголовок Content-Type устанавливать НЕ НУЖНО,
1265
1268
  // браузер установит его автоматически вместе с boundary
1266
- body: m
1269
+ body: c
1267
1270
  });
1268
- if (!v.ok)
1269
- throw new Error(`HTTP error! status: ${v.status}`);
1270
- const g = v.headers.get("content-type");
1271
- if (g && g.includes("application/json")) {
1272
- const l = await v.json();
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();
1273
1276
  console.log("Success:", l);
1274
1277
  }
1275
- s(!0), S();
1276
- } catch (m) {
1277
- console.error("Error submitting form:", m), k(
1278
- p(
1278
+ k(!0), _();
1279
+ } catch (c) {
1280
+ console.error("Error submitting form:", c), b(
1281
+ n(
1279
1282
  "form.submit_error",
1280
1283
  "Произошла ошибка при отправке. Пожалуйста, попробуйте позже."
1281
1284
  )
1282
1285
  );
1283
1286
  } finally {
1284
- w(!1);
1287
+ C(!1);
1285
1288
  }
1286
- }, W = cr(t || [], {
1287
- register: b,
1288
- errors: B,
1289
- control: C
1289
+ }, O = cr(t || [], {
1290
+ register: B,
1291
+ errors: M,
1292
+ control: I
1290
1293
  });
1291
1294
  return /* @__PURE__ */ e(oe, { children: /* @__PURE__ */ e(
1292
1295
  "form",
1293
1296
  {
1294
- onSubmit: x(I),
1297
+ onSubmit: F(A),
1295
1298
  id: "application_form",
1296
1299
  className: "w-full",
1297
- children: /* @__PURE__ */ c(
1300
+ children: /* @__PURE__ */ p(
1298
1301
  "div",
1299
1302
  {
1300
1303
  style: {
@@ -1302,11 +1305,11 @@ const sr = {
1302
1305
  },
1303
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]",
1304
1307
  children: [
1305
- /* @__PURE__ */ c("div", { className: "text-center mb-10 max-tablet:mb-8", children: [
1306
- /* @__PURE__ */ e("h2", { className: "text-[36px] leading-[44px] font-semibold m-0 mb-3 text-blackBG max-tablet:text-[28px] max-tablet:leading-[36px]", children: p(n || "", n) }),
1307
- /* @__PURE__ */ e("span", { className: "text-[18px] leading-[26px] text-graySoft max-tablet:text-[16px] max-tablet:leading-[24px]", children: p(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) })
1308
1311
  ] }),
1309
- L ? /* @__PURE__ */ e("div", { className: "flex flex-col items-center w-[640px] gap-8 max-tablet:w-full animate-in fade-in duration-500", children: /* @__PURE__ */ c("div", { className: "text-center", children: [
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: [
1310
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(
1311
1314
  "svg",
1312
1315
  {
@@ -1325,9 +1328,9 @@ const sr = {
1325
1328
  )
1326
1329
  }
1327
1330
  ) }),
1328
- /* @__PURE__ */ c("div", { className: "text-center", children: [
1329
- /* @__PURE__ */ e("div", { className: "font-semibold text-[24px] leading-[32px] text-blackBG mb-3", children: p("form.success_title", "Заявка успешно отправлена") }),
1330
- /* @__PURE__ */ e("div", { className: "text-[18px] leading-[26px] text-graySoft", children: p(
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(
1331
1334
  "form.success_description",
1332
1335
  "С Вами свяжется наш специалист и поможет с подключением сервиса"
1333
1336
  ) }),
@@ -1335,47 +1338,47 @@ const sr = {
1335
1338
  X,
1336
1339
  {
1337
1340
  className: "justify-center m-auto mt-6",
1338
- title: p("form.close", "Закрыть"),
1341
+ title: n("form.close", "Закрыть"),
1339
1342
  onClick: () => {
1340
- s(!1), S();
1343
+ k(!1), _();
1341
1344
  }
1342
1345
  }
1343
1346
  )
1344
1347
  ] })
1345
- ] }) }) : /* @__PURE__ */ c(R, { children: [
1348
+ ] }) }) : /* @__PURE__ */ p(R, { children: [
1346
1349
  /* @__PURE__ */ e(
1347
1350
  "div",
1348
1351
  {
1349
1352
  className: "w-[640px] mb-8 max-tablet:w-full grid gap-6",
1350
1353
  style: {
1351
- gridTemplateColumns: `repeat(${h ? 1 : i}, 1fr)`,
1354
+ gridTemplateColumns: `repeat(${x ? 1 : i}, 1fr)`,
1352
1355
  gridTemplateRows: `repeat(${r}, auto)`
1353
1356
  },
1354
- children: W
1357
+ children: O
1355
1358
  }
1356
1359
  ),
1357
1360
  /* @__PURE__ */ e("div", { className: "pt-2", children: /* @__PURE__ */ e(
1358
1361
  Q,
1359
1362
  {
1360
- ...b("agreement", {
1361
- required: p(
1363
+ ...B("agreement", {
1364
+ required: n(
1362
1365
  "form.agreement_required",
1363
1366
  "Необходимо согласие на обработку персональных данных"
1364
1367
  )
1365
1368
  }),
1366
- error: (O = B.agreement) == null ? void 0 : O.message,
1367
- label: /* @__PURE__ */ c(R, { children: [
1368
- p("form.i_agree", "Я соглашаюсь с"),
1369
+ error: (h = M.agreement) == null ? void 0 : h.message,
1370
+ label: /* @__PURE__ */ p(R, { children: [
1371
+ n("form.i_agree", "Я соглашаюсь с"),
1369
1372
  " ",
1370
1373
  /* @__PURE__ */ e(
1371
1374
  "button",
1372
1375
  {
1373
1376
  type: "button",
1374
1377
  className: "text-greenLight hover:text-green underline transition-colors duration-200 bg-transparent border-0 p-0 cursor-pointer",
1375
- onClick: (j) => {
1376
- j.preventDefault();
1378
+ onClick: (L) => {
1379
+ L.preventDefault(), window.open(w || "", "_blank");
1377
1380
  },
1378
- children: p(
1381
+ children: n(
1379
1382
  "form.agreement_link",
1380
1383
  "условиями обработки персональных данных"
1381
1384
  )
@@ -1384,17 +1387,17 @@ const sr = {
1384
1387
  ] })
1385
1388
  }
1386
1389
  ) }),
1387
- d && /* @__PURE__ */ e("div", { className: "mt-4 p-4 bg-red-50 border border-red-200 text-red-600 rounded-xl text-sm w-[640px] max-tablet:w-full animate-in fade-in slide-in-from-top-1", children: d }),
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 }),
1388
1391
  /* @__PURE__ */ e("div", { className: "mt-6 w-[640px] max-tablet:w-full", children: /* @__PURE__ */ e(
1389
1392
  X,
1390
1393
  {
1391
- loading: D,
1394
+ loading: m,
1392
1395
  className: "w-full whitespace-nowrap transition-all duration-200 hover:scale-[1.02] active:scale-[0.98]",
1393
1396
  type: "submit",
1394
1397
  size: Ne.XL,
1395
1398
  variant: _e.Primary,
1396
- disabled: !V || D,
1397
- children: p("form.submit", "Отправить заявку")
1399
+ disabled: !W || m,
1400
+ children: n("form.submit", "Отправить заявку")
1398
1401
  }
1399
1402
  ) })
1400
1403
  ] })
@@ -1406,7 +1409,7 @@ const sr = {
1406
1409
  };
1407
1410
  ge.propsToEdit = gr;
1408
1411
  const Ba = {
1409
- MainBanner: { key: "MainBanner", component: We },
1412
+ MainBanner: { key: "MainBanner", component: je },
1410
1413
  Banner: { key: "Banner", component: we },
1411
1414
  CardImageList: { key: "CardImageList", component: Ee },
1412
1415
  Stepper: { key: "Stepper", component: Be },
@@ -1420,7 +1423,7 @@ const Ba = {
1420
1423
  Partners: { key: "Partners", component: Pe },
1421
1424
  PartnersColors: { key: "PartnersColors", component: Oe },
1422
1425
  WarningCard: { key: "WarningCard", component: U },
1423
- Faq: { key: "Faq", component: Ae },
1426
+ Faq: { key: "Faq", component: We },
1424
1427
  DownloadFileBanner: {
1425
1428
  key: "DownloadFileBanner",
1426
1429
  component: $e
@@ -1428,7 +1431,7 @@ const Ba = {
1428
1431
  DownloadFileHalf: { key: "DownloadFileHalf", component: Re },
1429
1432
  DownloadFileFull: { key: "DownloadFileFull", component: Ze },
1430
1433
  DownloadFileMini: { key: "DownloadFileMini", component: Xe },
1431
- InstructionList: { key: "InstructionList", component: je },
1434
+ InstructionList: { key: "InstructionList", component: Ae },
1432
1435
  PreviewList: { key: "PreviewList", component: Ge },
1433
1436
  SwiperList: { key: "SwiperList", component: it },
1434
1437
  AnimatedSwiper: { key: "AnimatedSwiper", component: qe },
@@ -1471,8 +1474,8 @@ const Ba = {
1471
1474
  Partners: kt.component_props,
1472
1475
  PartnersColors: Ct.component_props,
1473
1476
  WarningCard: vt.component_props,
1474
- Faq: Dt.component_props,
1475
- DownloadFileBanner: Lt.component_props,
1477
+ Faq: Lt.component_props,
1478
+ DownloadFileBanner: Dt.component_props,
1476
1479
  DownloadFileHalf: Nt.component_props,
1477
1480
  DownloadFileFull: _t.component_props,
1478
1481
  DownloadFileMini: Bt.component_props,
@@ -1485,9 +1488,9 @@ const Ba = {
1485
1488
  VideoMainBanner: Ht.component_props,
1486
1489
  EmptyBox: Pt.component_props,
1487
1490
  PromoPoster: Et.component_props,
1488
- CardImageSecondaryList: Wt.component_props,
1489
- CardInfoTable: At.component_props,
1490
- StandartTable: jt.component_props,
1491
+ CardImageSecondaryList: jt.component_props,
1492
+ CardInfoTable: Wt.component_props,
1493
+ StandartTable: At.component_props,
1491
1494
  IntroBanner: Ot.component_props,
1492
1495
  DownloadFileBright: Gt.component_props,
1493
1496
  FormDefault: dr,