md-components-mdigial-azamat 0.0.96 → 0.0.98
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.
- package/dist/ActionIconList/ActionIconList.js +1 -1
- package/dist/AllComponents.js +1 -1
- package/dist/AllComponentsInfo.js +1 -1
- package/dist/Cards/WarningCard/WarningCard.js +1 -1
- package/dist/Cards/WarningCard/index.js +1 -1
- package/dist/Cards/WarningCard/info.js +1 -1
- package/dist/Forms/FormDefault/index.js +1 -1
- package/dist/Forms/FormDefault/info.js +1 -1
- package/dist/Forms/helpers/renderFormFields.js +1 -1
- package/dist/Forms/model/components.js +1 -1
- package/dist/PageViewer/renderComponents.js +1 -1
- package/dist/RenderAllComponents/RenderAllComponents.js +1 -1
- package/dist/{componentsMap-6f54f1c8.js → componentsMap-12ca184c.js} +1 -1
- package/dist/{info-90d541ed.js → info-e9389d85.js} +360 -351
- package/dist/main.js +1 -1
- package/package.json +1 -1
|
@@ -1,66 +1,66 @@
|
|
|
1
1
|
import { C as ee } from "./index-0a5f313c.js";
|
|
2
2
|
import { jsx as t, jsxs as i, Fragment as U } from "react/jsx-runtime";
|
|
3
|
-
import { warningCardVariant as
|
|
3
|
+
import { warningCardVariant as ge, WarningCardVariant as j, WarningCardVariantKey as be } from "./Cards/WarningCard/model.js";
|
|
4
4
|
import "./ConfigProvider/index.js";
|
|
5
|
-
import { Banner as
|
|
5
|
+
import { Banner as xe } from "./Banner/Banner.js";
|
|
6
6
|
import "./BannerAndText/index.js";
|
|
7
|
-
import { forwardRef as P, useState as I, useMemo as A, useEffect as
|
|
7
|
+
import { forwardRef as P, useState as I, useMemo as A, useEffect as ye, useRef as we, useImperativeHandle as te, useCallback as ke } from "react";
|
|
8
8
|
import { c as b } from "./cn-6a4bf187.js";
|
|
9
9
|
import "./Faq/components/Collapse/Collapse.js";
|
|
10
10
|
import "./Header/components/HeaderTabsMobile/HeaderTabsMobile.js";
|
|
11
|
-
import { HtmlContent as
|
|
11
|
+
import { HtmlContent as Ce } from "./HtmlContent/HtmlContent.js";
|
|
12
12
|
import "./Header/components/TabsOutlined/TabsOutlined.js";
|
|
13
13
|
import { B as R } from "./index-875e92ce.js";
|
|
14
|
-
import { B as ve, a as
|
|
15
|
-
import { Stepper as
|
|
16
|
-
import { Segments as
|
|
17
|
-
import { VideoFull as
|
|
18
|
-
import { VideoList as
|
|
19
|
-
import { VideoListMini as
|
|
20
|
-
import { ContentCardList as
|
|
21
|
-
import { CardIconList as
|
|
22
|
-
import { MultiCards as
|
|
23
|
-
import { Partners as
|
|
24
|
-
import { CardImageList as
|
|
25
|
-
import { MainBanner as
|
|
26
|
-
import { Faq as
|
|
27
|
-
import { InstructionList as
|
|
14
|
+
import { B as ve, a as De, b as Ne } from "./const-53dff524.js";
|
|
15
|
+
import { Stepper as Le } from "./Stepper/Stepper.js";
|
|
16
|
+
import { Segments as _e } from "./Segments/Segments.js";
|
|
17
|
+
import { VideoFull as Be } from "./Video/VideoFull/VideoFull.js";
|
|
18
|
+
import { VideoList as Me } from "./Video/VideoList/VideoList.js";
|
|
19
|
+
import { VideoListMini as Se } from "./Video/VideoListMini/VideoListMini.js";
|
|
20
|
+
import { ContentCardList as Fe } from "./ContentCardList/ContentCardList.js";
|
|
21
|
+
import { CardIconList as Ve } from "./CardIconList/CardIconList.js";
|
|
22
|
+
import { MultiCards as Ie } from "./MultiCards/index.js";
|
|
23
|
+
import { Partners as Te } from "./Partners/Partners.js";
|
|
24
|
+
import { CardImageList as He } from "./CardImageList/CardImageList.js";
|
|
25
|
+
import { MainBanner as Pe } from "./MainBanner/MainBanner.js";
|
|
26
|
+
import { Faq as We } from "./Faq/Faq.js";
|
|
27
|
+
import { InstructionList as Ge } from "./InstructionList/InstructionList.js";
|
|
28
28
|
import "./HeroPossibilityBanner/index.js";
|
|
29
|
-
import { PartnersColors as
|
|
30
|
-
import { PreviewList as
|
|
29
|
+
import { PartnersColors as Oe } from "./PartnersColors/PartnersColors.js";
|
|
30
|
+
import { PreviewList as je } from "./PreviewList/PreviewList.js";
|
|
31
31
|
import "./Cards/CardImage/CardImage.js";
|
|
32
32
|
import "./Cards/ContentCard/ContentCard.js";
|
|
33
33
|
import "./Cards/ColoredCard/index.js";
|
|
34
34
|
import "./Cards/FeaturesCard/index.js";
|
|
35
|
-
import { DownloadFileBanner as
|
|
36
|
-
import { DownloadFileFull as
|
|
37
|
-
import { DownloadFileHalf as
|
|
38
|
-
import { DownloadFileMini as
|
|
35
|
+
import { DownloadFileBanner as Ee } from "./DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js";
|
|
36
|
+
import { DownloadFileFull as Ae } from "./DownloadFile/components/DownloadFileFull/DownloadFileFull.js";
|
|
37
|
+
import { DownloadFileHalf as Ze } from "./DownloadFile/components/DownloadFileHalf/DownloadFileHalf.js";
|
|
38
|
+
import { DownloadFileMini as $e } from "./DownloadFile/components/DownloadFileMini/DownloadFileMini.js";
|
|
39
39
|
import "./InstructionList/components/InstructionCard/InstructionCard.js";
|
|
40
40
|
import "./PreviewList/components/PreviewCard/PreviewCard.js";
|
|
41
|
-
import
|
|
41
|
+
import Re from "./AnimatedSwiper/index.js";
|
|
42
42
|
import "./CardImageSecondary/CardImageSecondary.js";
|
|
43
|
-
import { CardImageSecondaryList as
|
|
44
|
-
import { CardInfoTable as
|
|
45
|
-
import { DownloadFileBright as
|
|
43
|
+
import { CardImageSecondaryList as Xe } from "./CardImageSecondaryList/CardImageSecondaryList.js";
|
|
44
|
+
import { CardInfoTable as qe } from "./CardInfoTable/index.js";
|
|
45
|
+
import { DownloadFileBright as ze } from "./DownloadFile/components/DownloadFileBright/index.js";
|
|
46
46
|
import "./DownloadFile/components/FileBannerSecondary/FileBannerSecondary.js";
|
|
47
|
-
import { C as
|
|
47
|
+
import { C as Ye, u as Ke } from "./index-a0ed2e4a.js";
|
|
48
48
|
import { C as re } from "./ComponentContainer-dca711c6.js";
|
|
49
|
-
import { u as
|
|
50
|
-
import
|
|
49
|
+
import { u as Qe } from "./useScreenSize-c1b64c02.js";
|
|
50
|
+
import Ue from "./FileLoader/index.js";
|
|
51
51
|
import { u as q } from "./useClickOutside-197b0df2.js";
|
|
52
52
|
import { TitleBlock as oe } from "./TitleBlock/TitleBlock.js";
|
|
53
53
|
import "./InfoBanner/index.js";
|
|
54
|
-
import { InfoBannerList as
|
|
55
|
-
import { IntroBanner as
|
|
56
|
-
import { PromoPoster as
|
|
57
|
-
import { Space as
|
|
58
|
-
import { StandartTable as
|
|
59
|
-
import { SwiperList as
|
|
54
|
+
import { InfoBannerList as Je } from "./InfoBannerList/InfoBannerList.js";
|
|
55
|
+
import { IntroBanner as et } from "./IntroBanner/IntroBanner.js";
|
|
56
|
+
import { PromoPoster as tt } from "./PromoPoster/PromoPoster.js";
|
|
57
|
+
import { Space as rt } from "./Space/Space.js";
|
|
58
|
+
import { StandartTable as ot } from "./StandartTable/index.js";
|
|
59
|
+
import { SwiperList as at } from "./SwiperList/SwiperList.js";
|
|
60
60
|
import "./TasksBanner/TasksBanner.js";
|
|
61
|
-
import { TasksBannerList as
|
|
62
|
-
import { VideoMainBanner as
|
|
63
|
-
import { M as
|
|
61
|
+
import { TasksBannerList as nt } from "./TasksBannerList/TasksBannerList.js";
|
|
62
|
+
import { VideoMainBanner as st } from "./VideoMainBanner/VideoMainBanner.js";
|
|
63
|
+
import { M as lt, B as it, C as ct, S as dt, b as pt, V as mt, c as ut, d as ft, e as ht, f as gt, g as bt, P as xt, h as yt, W as wt, F as kt, k as Ct, D as vt, l as Dt, m as Nt, I as Lt, o as _t, p as Bt, A as Mt, q as St, T as Ft, r as Vt, E as It, s as Tt, t as Ht, u as Pt, v as Wt, w as Gt, x as Ot, y as jt } from "./data.mock-f00bb32c.js";
|
|
64
64
|
import { DataTypesEnum as X, FieldTypes as G } from "./Types/FiledTypes.js";
|
|
65
65
|
import "react-dom";
|
|
66
66
|
import "./AnimatedSwiper/info.js";
|
|
@@ -107,11 +107,11 @@ import "./Video/VideoList/info.js";
|
|
|
107
107
|
import "./Video/VideoListMini/info.js";
|
|
108
108
|
import "./VideoMainBanner/info.js";
|
|
109
109
|
import "./Actions/types.js";
|
|
110
|
-
import { componentTypes as
|
|
111
|
-
import { fieldTypesList as
|
|
112
|
-
import { Header as
|
|
113
|
-
import { Footer as
|
|
114
|
-
import { I as
|
|
110
|
+
import { componentTypes as Et } from "./Forms/FormDefault/componentTypes.js";
|
|
111
|
+
import { fieldTypesList as At } from "./Forms/FormDefault/fieldTypesList.js";
|
|
112
|
+
import { Header as Zt } from "./Header/Header.js";
|
|
113
|
+
import { Footer as $t } from "./Footer/Footer.js";
|
|
114
|
+
import { I as Rt } from "./Icon-70ea6cb8.js";
|
|
115
115
|
const ae = [
|
|
116
116
|
"title",
|
|
117
117
|
"title_color",
|
|
@@ -119,20 +119,20 @@ const ae = [
|
|
|
119
119
|
"description_color",
|
|
120
120
|
"html_content",
|
|
121
121
|
ve,
|
|
122
|
-
|
|
122
|
+
ge
|
|
123
123
|
], z = ({
|
|
124
124
|
title: a,
|
|
125
125
|
description: r,
|
|
126
126
|
button: o,
|
|
127
|
-
html_content:
|
|
128
|
-
variant: e =
|
|
127
|
+
html_content: s,
|
|
128
|
+
variant: e = be.Orange
|
|
129
129
|
}) => {
|
|
130
|
-
var
|
|
130
|
+
var l, m, k, y;
|
|
131
131
|
return /* @__PURE__ */ t(re, { children: /* @__PURE__ */ t(
|
|
132
132
|
"div",
|
|
133
133
|
{
|
|
134
134
|
className: "rounded-[24px] p-6",
|
|
135
|
-
style: { background: (
|
|
135
|
+
style: { background: (l = j[e]) == null ? void 0 : l.background },
|
|
136
136
|
children: /* @__PURE__ */ i("div", { className: "flex gap-4 items-center justify-between", children: [
|
|
137
137
|
/* @__PURE__ */ i(
|
|
138
138
|
"div",
|
|
@@ -140,7 +140,7 @@ const ae = [
|
|
|
140
140
|
className: "flex gap-[16px] items-center max-tablet:flex-col max-tablet:items-start max-tablet:gap-[12px]",
|
|
141
141
|
children: [
|
|
142
142
|
/* @__PURE__ */ t(
|
|
143
|
-
|
|
143
|
+
Rt,
|
|
144
144
|
{
|
|
145
145
|
name: (m = j[e]) == null ? void 0 : m.icon,
|
|
146
146
|
size: 40
|
|
@@ -163,7 +163,7 @@ const ae = [
|
|
|
163
163
|
children: r
|
|
164
164
|
}
|
|
165
165
|
),
|
|
166
|
-
|
|
166
|
+
s && /* @__PURE__ */ t(Ce, { data: s })
|
|
167
167
|
] })
|
|
168
168
|
]
|
|
169
169
|
}
|
|
@@ -177,24 +177,24 @@ z.propsToEdit = ae;
|
|
|
177
177
|
const ne = P(
|
|
178
178
|
({
|
|
179
179
|
label: a,
|
|
180
|
-
options: r,
|
|
180
|
+
options: r = [],
|
|
181
181
|
value: o = [],
|
|
182
|
-
onChange:
|
|
182
|
+
onChange: s,
|
|
183
183
|
error: e,
|
|
184
|
-
className:
|
|
184
|
+
className: l,
|
|
185
185
|
direction: m = "column"
|
|
186
186
|
}, k) => {
|
|
187
|
-
const y = (
|
|
188
|
-
if (!
|
|
187
|
+
const y = (n) => {
|
|
188
|
+
if (!s)
|
|
189
189
|
return;
|
|
190
|
-
const N = o.includes(
|
|
191
|
-
|
|
190
|
+
const N = o.includes(n) ? o.filter((C) => C !== n) : [...o, n];
|
|
191
|
+
s(N);
|
|
192
192
|
};
|
|
193
193
|
return /* @__PURE__ */ i(
|
|
194
194
|
"div",
|
|
195
195
|
{
|
|
196
196
|
ref: k,
|
|
197
|
-
className: b("flex flex-col gap-2",
|
|
197
|
+
className: b("flex flex-col gap-2", l),
|
|
198
198
|
children: [
|
|
199
199
|
a && /* @__PURE__ */ t("label", { className: "text-sm font-medium text-blackBG mb-1", children: a }),
|
|
200
200
|
/* @__PURE__ */ t(
|
|
@@ -204,15 +204,15 @@ const ne = P(
|
|
|
204
204
|
"flex gap-4",
|
|
205
205
|
m === "column" ? "flex-col" : "flex-row flex-wrap"
|
|
206
206
|
),
|
|
207
|
-
children: r.map((
|
|
207
|
+
children: r == null ? void 0 : r.map((n) => /* @__PURE__ */ t(
|
|
208
208
|
Y,
|
|
209
209
|
{
|
|
210
|
-
label:
|
|
211
|
-
checked: o.includes(
|
|
212
|
-
onChange: () => y(
|
|
213
|
-
error: e && o.length === 0 ? e : void 0
|
|
210
|
+
label: n == null ? void 0 : n.label,
|
|
211
|
+
checked: o.includes(n == null ? void 0 : n.value),
|
|
212
|
+
onChange: () => y(n == null ? void 0 : n.value),
|
|
213
|
+
error: e && (o == null ? void 0 : o.length) === 0 ? e : void 0
|
|
214
214
|
},
|
|
215
|
-
|
|
215
|
+
n == null ? void 0 : n.value
|
|
216
216
|
))
|
|
217
217
|
}
|
|
218
218
|
),
|
|
@@ -224,7 +224,7 @@ const ne = P(
|
|
|
224
224
|
);
|
|
225
225
|
ne.displayName = "CheckboxGroup";
|
|
226
226
|
const Y = P(
|
|
227
|
-
({ className: a, label: r, error: o, ...
|
|
227
|
+
({ className: a, label: r, error: o, ...s }, e) => /* @__PURE__ */ i("div", { className: "w-full", children: [
|
|
228
228
|
/* @__PURE__ */ i("label", { className: "flex items-start gap-3 cursor-pointer group", children: [
|
|
229
229
|
/* @__PURE__ */ i("div", { className: "relative flex items-center justify-center mt-0.5", children: [
|
|
230
230
|
/* @__PURE__ */ t(
|
|
@@ -233,7 +233,7 @@ const Y = P(
|
|
|
233
233
|
type: "checkbox",
|
|
234
234
|
className: "peer sr-only",
|
|
235
235
|
ref: e,
|
|
236
|
-
...
|
|
236
|
+
...s
|
|
237
237
|
}
|
|
238
238
|
),
|
|
239
239
|
/* @__PURE__ */ t(
|
|
@@ -273,8 +273,8 @@ const Y = P(
|
|
|
273
273
|
);
|
|
274
274
|
Y.displayName = "Checkbox";
|
|
275
275
|
const se = P(
|
|
276
|
-
({ className: a, type: r, error: o, label:
|
|
277
|
-
|
|
276
|
+
({ className: a, type: r, error: o, label: s, ...e }, l) => /* @__PURE__ */ i("div", { className: "w-full", children: [
|
|
277
|
+
s && /* @__PURE__ */ t("label", { className: "block text-sm font-medium text-blackBG mb-2", children: s }),
|
|
278
278
|
/* @__PURE__ */ t(
|
|
279
279
|
"input",
|
|
280
280
|
{
|
|
@@ -289,7 +289,7 @@ const se = P(
|
|
|
289
289
|
o && "border-red-500 hover:border-red-500 focus:border-red-500 focus:shadow-[0_0_0_4px_rgba(239,68,68,0.15)]",
|
|
290
290
|
a
|
|
291
291
|
),
|
|
292
|
-
ref:
|
|
292
|
+
ref: l,
|
|
293
293
|
...e
|
|
294
294
|
}
|
|
295
295
|
),
|
|
@@ -297,7 +297,7 @@ const se = P(
|
|
|
297
297
|
] })
|
|
298
298
|
);
|
|
299
299
|
se.displayName = "Input";
|
|
300
|
-
const
|
|
300
|
+
const Xt = () => /* @__PURE__ */ t(
|
|
301
301
|
"svg",
|
|
302
302
|
{
|
|
303
303
|
width: "20",
|
|
@@ -313,43 +313,43 @@ const Rt = () => /* @__PURE__ */ t(
|
|
|
313
313
|
}
|
|
314
314
|
)
|
|
315
315
|
}
|
|
316
|
-
),
|
|
316
|
+
), qt = (a) => {
|
|
317
317
|
if (!a)
|
|
318
318
|
return "";
|
|
319
|
-
const r = String(a.getDate()).padStart(2, "0"), o = String(a.getMonth() + 1).padStart(2, "0"),
|
|
320
|
-
return `${r}.${o}.${
|
|
321
|
-
},
|
|
319
|
+
const r = String(a.getDate()).padStart(2, "0"), o = String(a.getMonth() + 1).padStart(2, "0"), s = a.getFullYear();
|
|
320
|
+
return `${r}.${o}.${s}`;
|
|
321
|
+
}, zt = (a) => {
|
|
322
322
|
if (!a)
|
|
323
323
|
return null;
|
|
324
324
|
const r = a.split(".");
|
|
325
325
|
if (r.length === 3) {
|
|
326
|
-
const o = parseInt(r[0], 10),
|
|
327
|
-
if (!isNaN(o) && !isNaN(
|
|
328
|
-
const
|
|
329
|
-
if (
|
|
330
|
-
return
|
|
326
|
+
const o = parseInt(r[0], 10), s = parseInt(r[1], 10) - 1, e = parseInt(r[2], 10);
|
|
327
|
+
if (!isNaN(o) && !isNaN(s) && !isNaN(e)) {
|
|
328
|
+
const l = new Date(e, s, o);
|
|
329
|
+
if (l.getDate() === o && l.getMonth() === s && l.getFullYear() === e)
|
|
330
|
+
return l;
|
|
331
331
|
}
|
|
332
332
|
}
|
|
333
333
|
return null;
|
|
334
|
-
},
|
|
334
|
+
}, Yt = (a, r) => new Date(r, a, 1).toLocaleDateString("ru-RU", { month: "long", year: "numeric" }), Kt = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], le = P(
|
|
335
335
|
({
|
|
336
336
|
className: a,
|
|
337
337
|
error: r,
|
|
338
338
|
label: o,
|
|
339
|
-
value:
|
|
339
|
+
value: s,
|
|
340
340
|
onChange: e,
|
|
341
|
-
placeholder:
|
|
341
|
+
placeholder: l = "Дата обращения в Контакт-центр",
|
|
342
342
|
...m
|
|
343
343
|
}, k) => {
|
|
344
|
-
const [y,
|
|
345
|
-
|
|
346
|
-
}), B = A(() =>
|
|
347
|
-
|
|
348
|
-
B && (S(B),
|
|
344
|
+
const [y, n] = I(""), [N, C] = I(!1), [c, v] = I((/* @__PURE__ */ new Date()).getMonth()), [h, x] = I((/* @__PURE__ */ new Date()).getFullYear()), [u, S] = I(null), F = s !== void 0, w = F ? s : y, { ref: L } = q(N, () => {
|
|
345
|
+
C(!1);
|
|
346
|
+
}), B = A(() => zt(w), [w]);
|
|
347
|
+
ye(() => {
|
|
348
|
+
B && (S(B), v(B.getMonth()), x(B.getFullYear()));
|
|
349
349
|
}, [B]);
|
|
350
350
|
const T = A(() => {
|
|
351
|
-
const f = new Date(h, c, 1), V = new Date(h, c + 1, 0).getDate(),
|
|
352
|
-
for (let M =
|
|
351
|
+
const f = new Date(h, c, 1), V = new Date(h, c + 1, 0).getDate(), p = f.getDay(), D = [], W = new Date(h, c, 0).getDate();
|
|
352
|
+
for (let M = p - 1; M >= 0; M--)
|
|
353
353
|
D.push(W - M);
|
|
354
354
|
for (let M = 1; M <= V; M++)
|
|
355
355
|
D.push(M);
|
|
@@ -358,24 +358,24 @@ const Rt = () => /* @__PURE__ */ t(
|
|
|
358
358
|
D.push(M);
|
|
359
359
|
return D;
|
|
360
360
|
}, [c, h]), O = (f) => {
|
|
361
|
-
const
|
|
362
|
-
F ||
|
|
363
|
-
}, Z = (f,
|
|
361
|
+
const d = f.target.value;
|
|
362
|
+
F || n(d), e == null || e(d);
|
|
363
|
+
}, Z = (f, d, V) => {
|
|
364
364
|
if (f === null)
|
|
365
365
|
return;
|
|
366
|
-
let
|
|
367
|
-
|
|
368
|
-
const W = new Date(D,
|
|
369
|
-
S(W),
|
|
366
|
+
let p = c, D = h;
|
|
367
|
+
d ? (p = p - 1, p < 0 && (p = 11, D = D - 1)) : V && (p = p + 1, p > 11 && (p = 0, D = D + 1));
|
|
368
|
+
const W = new Date(D, p, f), H = qt(W);
|
|
369
|
+
S(W), v(p), x(D), F || n(H), e == null || e(H), C(!1);
|
|
370
370
|
}, $ = () => {
|
|
371
|
-
c === 0 ? (
|
|
371
|
+
c === 0 ? (v(11), x(h - 1)) : v(c - 1);
|
|
372
372
|
}, g = () => {
|
|
373
|
-
c === 11 ? (
|
|
374
|
-
}, _ = (f,
|
|
373
|
+
c === 11 ? (v(0), x(h + 1)) : v(c + 1);
|
|
374
|
+
}, _ = (f, d, V) => {
|
|
375
375
|
if (!u || f === null)
|
|
376
376
|
return !1;
|
|
377
|
-
let
|
|
378
|
-
return
|
|
377
|
+
let p = c, D = h;
|
|
378
|
+
return d ? (p = p - 1, p < 0 && (p = 11, D = D - 1)) : V && (p = p + 1, p > 11 && (p = 0, D = D + 1)), u.getDate() === f && u.getMonth() === p && u.getFullYear() === D;
|
|
379
379
|
};
|
|
380
380
|
return /* @__PURE__ */ i("div", { className: "w-full", children: [
|
|
381
381
|
o && /* @__PURE__ */ t("label", { className: "block text-sm font-medium text-blackBG mb-2", children: o }),
|
|
@@ -396,10 +396,10 @@ const Rt = () => /* @__PURE__ */ t(
|
|
|
396
396
|
"button",
|
|
397
397
|
{
|
|
398
398
|
type: "button",
|
|
399
|
-
onClick: () =>
|
|
399
|
+
onClick: () => C(!N),
|
|
400
400
|
className: "absolute left-4 flex items-center justify-center cursor-pointer",
|
|
401
401
|
tabIndex: -1,
|
|
402
|
-
children: /* @__PURE__ */ t(
|
|
402
|
+
children: /* @__PURE__ */ t(Xt, {})
|
|
403
403
|
}
|
|
404
404
|
),
|
|
405
405
|
/* @__PURE__ */ t(
|
|
@@ -416,8 +416,8 @@ const Rt = () => /* @__PURE__ */ t(
|
|
|
416
416
|
ref: k,
|
|
417
417
|
value: w,
|
|
418
418
|
onChange: O,
|
|
419
|
-
placeholder:
|
|
420
|
-
onClick: () =>
|
|
419
|
+
placeholder: l,
|
|
420
|
+
onClick: () => C(!0),
|
|
421
421
|
readOnly: !0,
|
|
422
422
|
...m
|
|
423
423
|
}
|
|
@@ -460,7 +460,7 @@ const Rt = () => /* @__PURE__ */ t(
|
|
|
460
460
|
)
|
|
461
461
|
}
|
|
462
462
|
),
|
|
463
|
-
/* @__PURE__ */ t("h3", { className: "text-base font-semibold text-blackBG", children:
|
|
463
|
+
/* @__PURE__ */ t("h3", { className: "text-base font-semibold text-blackBG", children: Yt(c, h) }),
|
|
464
464
|
/* @__PURE__ */ t(
|
|
465
465
|
"button",
|
|
466
466
|
{
|
|
@@ -490,7 +490,7 @@ const Rt = () => /* @__PURE__ */ t(
|
|
|
490
490
|
}
|
|
491
491
|
)
|
|
492
492
|
] }),
|
|
493
|
-
/* @__PURE__ */ t("div", { className: "grid grid-cols-7 gap-1 mb-2", children:
|
|
493
|
+
/* @__PURE__ */ t("div", { className: "grid grid-cols-7 gap-1 mb-2", children: Kt.map((f) => /* @__PURE__ */ t(
|
|
494
494
|
"div",
|
|
495
495
|
{
|
|
496
496
|
className: "text-center text-xs font-medium text-grayBlue5 py-2",
|
|
@@ -498,12 +498,12 @@ const Rt = () => /* @__PURE__ */ t(
|
|
|
498
498
|
},
|
|
499
499
|
f
|
|
500
500
|
)) }),
|
|
501
|
-
/* @__PURE__ */ t("div", { className: "grid grid-cols-7 gap-1", children: T.map((f,
|
|
502
|
-
const
|
|
501
|
+
/* @__PURE__ */ t("div", { className: "grid grid-cols-7 gap-1", children: T.map((f, d) => {
|
|
502
|
+
const p = new Date(h, c, 1).getDay(), D = new Date(
|
|
503
503
|
h,
|
|
504
504
|
c + 1,
|
|
505
505
|
0
|
|
506
|
-
).getDate(), W =
|
|
506
|
+
).getDate(), W = d < p, H = d >= p + D, M = !W && !H, he = _(
|
|
507
507
|
f,
|
|
508
508
|
W,
|
|
509
509
|
H
|
|
@@ -518,11 +518,11 @@ const Rt = () => /* @__PURE__ */ t(
|
|
|
518
518
|
"w-10 h-10 rounded-lg text-sm font-medium transition-colors",
|
|
519
519
|
"hover:bg-[#E8F4FD] focus:outline-none focus:bg-[#E8F4FD]",
|
|
520
520
|
M ? "text-blackBG" : "text-grayBlue5 opacity-50",
|
|
521
|
-
|
|
521
|
+
he && "bg-[#16A34A] text-white hover:bg-[#16A34A] focus:bg-[#16A34A]"
|
|
522
522
|
),
|
|
523
523
|
children: f
|
|
524
524
|
},
|
|
525
|
-
|
|
525
|
+
d
|
|
526
526
|
);
|
|
527
527
|
}) })
|
|
528
528
|
]
|
|
@@ -533,40 +533,40 @@ const Rt = () => /* @__PURE__ */ t(
|
|
|
533
533
|
] });
|
|
534
534
|
}
|
|
535
535
|
);
|
|
536
|
-
|
|
537
|
-
const
|
|
536
|
+
le.displayName = "DateInput";
|
|
537
|
+
const ie = P(
|
|
538
538
|
({
|
|
539
539
|
className: a,
|
|
540
540
|
isFormatted: r,
|
|
541
541
|
isReadable: o,
|
|
542
|
-
error:
|
|
542
|
+
error: s,
|
|
543
543
|
label: e,
|
|
544
|
-
onChange:
|
|
544
|
+
onChange: l,
|
|
545
545
|
value: m,
|
|
546
546
|
defaultValue: k,
|
|
547
547
|
...y
|
|
548
|
-
},
|
|
549
|
-
const N =
|
|
550
|
-
te(
|
|
551
|
-
const
|
|
548
|
+
}, n) => {
|
|
549
|
+
const N = we(null);
|
|
550
|
+
te(n, () => N.current);
|
|
551
|
+
const C = !!o || !!r, c = ke(
|
|
552
552
|
(x) => {
|
|
553
553
|
if (x == null || x === "")
|
|
554
554
|
return "";
|
|
555
555
|
const u = Array.isArray(x) ? x.join("").replace(/\D/g, "") : x.toString().replace(/\D/g, "");
|
|
556
|
-
return
|
|
556
|
+
return C ? u.replace(/\B(?=(\d{3})+(?!\d))/g, " ") : u;
|
|
557
557
|
},
|
|
558
|
-
[
|
|
558
|
+
[C]
|
|
559
559
|
), h = {
|
|
560
560
|
...y,
|
|
561
561
|
type: "text",
|
|
562
562
|
inputMode: "numeric",
|
|
563
563
|
onChange: (x) => {
|
|
564
564
|
const u = x.target, S = u.value, F = S.replace(/\D/g, ""), w = u.selectionStart || 0, L = S.slice(0, w).replace(/\D/g, "").length, B = c(F);
|
|
565
|
-
if (u.value = B,
|
|
565
|
+
if (u.value = B, l) {
|
|
566
566
|
const T = u.value;
|
|
567
|
-
u.value = F,
|
|
567
|
+
u.value = F, l(x), u.value = T;
|
|
568
568
|
}
|
|
569
|
-
if (
|
|
569
|
+
if (C) {
|
|
570
570
|
let T = 0, O = 0;
|
|
571
571
|
for (; O < L && T < u.value.length; )
|
|
572
572
|
/\d/.test(u.value[T]) && O++, T++;
|
|
@@ -581,7 +581,7 @@ const le = P(
|
|
|
581
581
|
"focus:border-greenLight focus:outline-none focus:ring-0 focus:shadow-[0_0_0_4px_rgba(22,163,74,0.15)]",
|
|
582
582
|
"disabled:cursor-not-allowed disabled:bg-lightGray disabled:opacity-50",
|
|
583
583
|
"[appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",
|
|
584
|
-
|
|
584
|
+
s && "border-red-500 hover:border-red-500 focus:border-red-500 focus:shadow-[0_0_0_4px_rgba(239,68,68,0.15)]",
|
|
585
585
|
a
|
|
586
586
|
)
|
|
587
587
|
};
|
|
@@ -594,43 +594,43 @@ const le = P(
|
|
|
594
594
|
ref: N
|
|
595
595
|
}
|
|
596
596
|
) }),
|
|
597
|
-
|
|
597
|
+
s && /* @__PURE__ */ t("p", { className: "mt-2 text-sm text-red-500", children: s })
|
|
598
598
|
] });
|
|
599
599
|
}
|
|
600
600
|
);
|
|
601
|
-
|
|
602
|
-
const
|
|
601
|
+
ie.displayName = "NumberField";
|
|
602
|
+
const Qt = {
|
|
603
603
|
96: { name: "Кыргызстан", short: "KG", mask: "+996", length: 9 }
|
|
604
|
-
},
|
|
604
|
+
}, Ut = (a) => {
|
|
605
605
|
const r = a.toUpperCase().split("").map((o) => 127397 + o.charCodeAt(0));
|
|
606
606
|
return String.fromCodePoint(...r);
|
|
607
|
-
}, K = () => Object.entries(
|
|
607
|
+
}, K = () => Object.entries(Qt).map(([a, r]) => ({
|
|
608
608
|
id: a,
|
|
609
609
|
name: r.name,
|
|
610
610
|
short: r.short,
|
|
611
611
|
mask: r.mask,
|
|
612
612
|
dialCode: r.mask.replace("+", ""),
|
|
613
613
|
length: r.length,
|
|
614
|
-
flag:
|
|
614
|
+
flag: Ut(r.short)
|
|
615
615
|
})), E = (a) => K().find((o) => o.id === a), J = (a, r) => {
|
|
616
|
-
const o = r.dialCode,
|
|
616
|
+
const o = r.dialCode, s = r.length;
|
|
617
617
|
let e = a;
|
|
618
618
|
a.startsWith(o) && (e = a.slice(o.length));
|
|
619
|
-
const
|
|
620
|
-
if (
|
|
619
|
+
const l = e.slice(0, s);
|
|
620
|
+
if (l.length === 0)
|
|
621
621
|
return r.mask;
|
|
622
|
-
let m =
|
|
623
|
-
return
|
|
624
|
-
},
|
|
622
|
+
let m = l;
|
|
623
|
+
return l.length > 6 ? m = `${l.slice(0, 3)} ${l.slice(3, 6)} ${l.slice(6)}` : l.length > 3 && (m = `${l.slice(0, 3)} ${l.slice(3)}`), `${r.mask} ${m}`;
|
|
624
|
+
}, Jt = (a, r) => {
|
|
625
625
|
if (!a)
|
|
626
626
|
return null;
|
|
627
|
-
const o = a.replace(/\D/g, ""),
|
|
627
|
+
const o = a.replace(/\D/g, ""), s = K();
|
|
628
628
|
if (a.startsWith("+")) {
|
|
629
|
-
for (const e of
|
|
629
|
+
for (const e of s)
|
|
630
630
|
if (a.startsWith(e.mask))
|
|
631
631
|
return e;
|
|
632
632
|
}
|
|
633
|
-
for (const e of
|
|
633
|
+
for (const e of s)
|
|
634
634
|
if (o.startsWith(e.dialCode))
|
|
635
635
|
return e;
|
|
636
636
|
return o.startsWith("0") && E("96") || null;
|
|
@@ -639,13 +639,13 @@ const Kt = {
|
|
|
639
639
|
className: a,
|
|
640
640
|
error: r,
|
|
641
641
|
label: o,
|
|
642
|
-
value:
|
|
642
|
+
value: s,
|
|
643
643
|
onChange: e,
|
|
644
|
-
defaultCountry:
|
|
644
|
+
defaultCountry: l = "996",
|
|
645
645
|
...m
|
|
646
646
|
}, k) => {
|
|
647
|
-
const [y,
|
|
648
|
-
|
|
647
|
+
const [y, n] = I(""), [N, C] = I(l), [c, v] = I(!1), [h, x] = I(""), u = s !== void 0, S = u ? s : y, { ref: F } = q(c, () => {
|
|
648
|
+
v(!1), x("");
|
|
649
649
|
}), w = A(() => K(), []), L = E(N) || w[0], B = A(() => {
|
|
650
650
|
if (!h)
|
|
651
651
|
return w;
|
|
@@ -659,24 +659,24 @@ const Kt = {
|
|
|
659
659
|
const _ = g.replace(/\D/g, "");
|
|
660
660
|
let f = _;
|
|
661
661
|
(_.startsWith(L.dialCode) || g.startsWith(L.mask)) && (f = _.slice(L.dialCode.length));
|
|
662
|
-
const
|
|
663
|
-
return
|
|
662
|
+
const d = f.slice(0, L.length);
|
|
663
|
+
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)}`;
|
|
664
664
|
})(S), Z = (g) => {
|
|
665
|
-
|
|
665
|
+
C(g), v(!1), x("");
|
|
666
666
|
const _ = S.replace(/\D/g, ""), f = E(g);
|
|
667
667
|
if (!f)
|
|
668
668
|
return;
|
|
669
|
-
let
|
|
670
|
-
_.startsWith(L.dialCode) && (
|
|
671
|
-
const V = J(
|
|
672
|
-
u ||
|
|
669
|
+
let d = _;
|
|
670
|
+
_.startsWith(L.dialCode) && (d = _.slice(L.dialCode.length));
|
|
671
|
+
const V = J(d, f);
|
|
672
|
+
u || n(V), e == null || e(V);
|
|
673
673
|
}, $ = (g) => {
|
|
674
|
-
const _ = g.target.value, f = _.replace(/\D/g, ""),
|
|
674
|
+
const _ = g.target.value, f = _.replace(/\D/g, ""), d = Jt(
|
|
675
675
|
_
|
|
676
676
|
);
|
|
677
|
-
|
|
678
|
-
const V =
|
|
679
|
-
u ||
|
|
677
|
+
d && d.id !== N && C(d.id);
|
|
678
|
+
const V = d || E(N) || L, p = J(f, V);
|
|
679
|
+
u || n(p), e == null || e(p);
|
|
680
680
|
};
|
|
681
681
|
return /* @__PURE__ */ i("div", { className: "w-full", children: [
|
|
682
682
|
o && /* @__PURE__ */ t("label", { className: "block text-sm font-medium text-blackBG mb-2", children: o }),
|
|
@@ -704,7 +704,7 @@ const Kt = {
|
|
|
704
704
|
"button",
|
|
705
705
|
{
|
|
706
706
|
type: "button",
|
|
707
|
-
onClick: () =>
|
|
707
|
+
onClick: () => v(!c),
|
|
708
708
|
className: b(
|
|
709
709
|
"flex h-14 w-[120px] rounded-2xl px-3 py-2 items-center justify-center cursor-pointer shrink-0",
|
|
710
710
|
"transition-all duration-300 ease-in-out",
|
|
@@ -809,45 +809,52 @@ const Kt = {
|
|
|
809
809
|
}
|
|
810
810
|
);
|
|
811
811
|
ce.displayName = "PhoneInput";
|
|
812
|
-
const
|
|
812
|
+
const de = P(
|
|
813
813
|
({
|
|
814
814
|
label: a,
|
|
815
|
-
options: r,
|
|
816
|
-
value: o,
|
|
817
|
-
name:
|
|
815
|
+
options: r = [],
|
|
816
|
+
value: o = [],
|
|
817
|
+
name: s,
|
|
818
818
|
onChange: e,
|
|
819
|
-
error:
|
|
819
|
+
error: l,
|
|
820
820
|
className: m,
|
|
821
821
|
direction: k = "column"
|
|
822
|
-
}, y) => /* @__PURE__ */ i(
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
children: r.map((l) => /* @__PURE__ */ t(
|
|
832
|
-
de,
|
|
822
|
+
}, y) => /* @__PURE__ */ i(
|
|
823
|
+
"div",
|
|
824
|
+
{
|
|
825
|
+
ref: y,
|
|
826
|
+
className: b("flex flex-col gap-2", m),
|
|
827
|
+
children: [
|
|
828
|
+
a && /* @__PURE__ */ t("label", { className: "text-sm font-medium text-blackBG mb-1", children: a }),
|
|
829
|
+
/* @__PURE__ */ t(
|
|
830
|
+
"div",
|
|
833
831
|
{
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
832
|
+
className: b(
|
|
833
|
+
"flex gap-4",
|
|
834
|
+
k === "column" ? "flex-col" : "flex-row flex-wrap"
|
|
835
|
+
),
|
|
836
|
+
children: r == null ? void 0 : r.map((n) => /* @__PURE__ */ t(
|
|
837
|
+
pe,
|
|
838
|
+
{
|
|
839
|
+
name: s,
|
|
840
|
+
label: n == null ? void 0 : n.label,
|
|
841
|
+
value: n == null ? void 0 : n.value,
|
|
842
|
+
checked: o === (n == null ? void 0 : n.value),
|
|
843
|
+
onChange: () => e == null ? void 0 : e(n == null ? void 0 : n.value),
|
|
844
|
+
error: l && !o ? l : void 0
|
|
845
|
+
},
|
|
846
|
+
n == null ? void 0 : n.value
|
|
847
|
+
))
|
|
848
|
+
}
|
|
849
|
+
),
|
|
850
|
+
l && /* @__PURE__ */ t("p", { className: "mt-1 text-sm text-red-500", children: l })
|
|
851
|
+
]
|
|
852
|
+
}
|
|
853
|
+
)
|
|
847
854
|
);
|
|
848
|
-
|
|
849
|
-
const
|
|
850
|
-
({ className: a, label: r, error: o, ...
|
|
855
|
+
de.displayName = "RadioGroup";
|
|
856
|
+
const pe = P(
|
|
857
|
+
({ className: a, label: r, error: o, ...s }, e) => /* @__PURE__ */ i("div", { className: "w-full", children: [
|
|
851
858
|
/* @__PURE__ */ i("label", { className: "flex items-start gap-3 cursor-pointer group", children: [
|
|
852
859
|
/* @__PURE__ */ i("div", { className: "relative flex items-center justify-center mt-0.5", children: [
|
|
853
860
|
/* @__PURE__ */ t(
|
|
@@ -856,7 +863,7 @@ const de = P(
|
|
|
856
863
|
type: "radio",
|
|
857
864
|
className: "peer sr-only",
|
|
858
865
|
ref: e,
|
|
859
|
-
...
|
|
866
|
+
...s
|
|
860
867
|
}
|
|
861
868
|
),
|
|
862
869
|
/* @__PURE__ */ t(
|
|
@@ -894,29 +901,29 @@ const de = P(
|
|
|
894
901
|
o && /* @__PURE__ */ t("p", { className: "mt-2 text-sm text-red-500", children: o })
|
|
895
902
|
] })
|
|
896
903
|
);
|
|
897
|
-
|
|
904
|
+
pe.displayName = "Radio";
|
|
898
905
|
const me = P(
|
|
899
906
|
({
|
|
900
907
|
className: a,
|
|
901
908
|
error: r,
|
|
902
909
|
label: o,
|
|
903
|
-
options:
|
|
910
|
+
options: s = [],
|
|
904
911
|
placeholder: e = "Выберите категорию",
|
|
905
|
-
value:
|
|
912
|
+
value: l,
|
|
906
913
|
onChange: m,
|
|
907
914
|
onBlur: k,
|
|
908
915
|
name: y,
|
|
909
|
-
disabled:
|
|
916
|
+
disabled: n,
|
|
910
917
|
...N
|
|
911
|
-
},
|
|
918
|
+
}, C) => {
|
|
912
919
|
const {
|
|
913
920
|
ref: c,
|
|
914
|
-
isShow:
|
|
921
|
+
isShow: v,
|
|
915
922
|
setIsShow: h
|
|
916
923
|
} = q(!1);
|
|
917
|
-
te(
|
|
918
|
-
const x =
|
|
919
|
-
|
|
924
|
+
te(C, () => c.current);
|
|
925
|
+
const x = s.find((w) => w.value === l), u = () => {
|
|
926
|
+
n || h(!v);
|
|
920
927
|
}, S = (w) => {
|
|
921
928
|
m && m({
|
|
922
929
|
target: {
|
|
@@ -928,7 +935,7 @@ const me = P(
|
|
|
928
935
|
k && k({
|
|
929
936
|
target: {
|
|
930
937
|
name: y,
|
|
931
|
-
value:
|
|
938
|
+
value: l
|
|
932
939
|
}
|
|
933
940
|
});
|
|
934
941
|
};
|
|
@@ -947,13 +954,13 @@ const me = P(
|
|
|
947
954
|
{
|
|
948
955
|
type: "button",
|
|
949
956
|
onClick: u,
|
|
950
|
-
disabled:
|
|
957
|
+
disabled: n,
|
|
951
958
|
className: b(
|
|
952
959
|
"flex h-14 w-full items-center justify-between rounded-2xl border-[1px] border-grayBlue bg-white px-[20px] text-base text-blackBG",
|
|
953
960
|
"transition-all duration-300 ease-in-out",
|
|
954
961
|
"hover:border-greenLight hover:shadow-[0_0_0_4px_rgba(22,163,74,0.1)]",
|
|
955
|
-
|
|
956
|
-
|
|
962
|
+
v && "border-greenLight shadow-[0_0_0_4px_rgba(22,163,74,0.15)] ring-0 outline-none",
|
|
963
|
+
n && "cursor-not-allowed bg-lightGray opacity-50",
|
|
957
964
|
r && "border-red-500 hover:border-red-500 focus:border-red-500 focus:shadow-[0_0_0_4px_rgba(239,68,68,0.15)]",
|
|
958
965
|
!x && "text-gray2 opacity-60"
|
|
959
966
|
),
|
|
@@ -964,7 +971,7 @@ const me = P(
|
|
|
964
971
|
{
|
|
965
972
|
className: b(
|
|
966
973
|
"ml-2 h-5 w-5 text-gray2 transition-transform duration-300",
|
|
967
|
-
|
|
974
|
+
v && "rotate-180"
|
|
968
975
|
),
|
|
969
976
|
fill: "none",
|
|
970
977
|
stroke: "currentColor",
|
|
@@ -983,14 +990,14 @@ const me = P(
|
|
|
983
990
|
]
|
|
984
991
|
}
|
|
985
992
|
),
|
|
986
|
-
|
|
993
|
+
v && /* @__PURE__ */ t(
|
|
987
994
|
"div",
|
|
988
995
|
{
|
|
989
996
|
className: b(
|
|
990
997
|
"absolute left-0 z-[100] mt-2 w-full overflow-hidden rounded-2xl border-[1px] border-grayBlue bg-white shadow-xl",
|
|
991
998
|
"transition-all duration-200 ease-in-out"
|
|
992
999
|
),
|
|
993
|
-
children: /* @__PURE__ */ t("div", { className: "max-h-[280px] overflow-y-auto py-2", children:
|
|
1000
|
+
children: /* @__PURE__ */ t("div", { className: "max-h-[280px] overflow-y-auto py-2", children: s.length > 0 ? s.map((w) => /* @__PURE__ */ t(
|
|
994
1001
|
"button",
|
|
995
1002
|
{
|
|
996
1003
|
type: "button",
|
|
@@ -998,7 +1005,7 @@ const me = P(
|
|
|
998
1005
|
className: b(
|
|
999
1006
|
"flex w-full items-center px-5 py-3 text-left text-base transition-colors",
|
|
1000
1007
|
"hover:bg-green-50 active:bg-green-100",
|
|
1001
|
-
w.value ===
|
|
1008
|
+
w.value === l && "bg-green-50 font-medium text-greenLight",
|
|
1002
1009
|
// Мобильные отступы чуть больше для удобства тапа
|
|
1003
1010
|
"max-tablet:py-4"
|
|
1004
1011
|
),
|
|
@@ -1016,10 +1023,10 @@ const me = P(
|
|
|
1016
1023
|
}
|
|
1017
1024
|
);
|
|
1018
1025
|
me.displayName = "Select";
|
|
1019
|
-
const
|
|
1026
|
+
const er = {
|
|
1020
1027
|
TitleBlock: oe,
|
|
1021
1028
|
WarningCard: z
|
|
1022
|
-
},
|
|
1029
|
+
}, tr = [
|
|
1023
1030
|
{
|
|
1024
1031
|
label: "TitleBlock",
|
|
1025
1032
|
value: "TitleBlock"
|
|
@@ -1028,56 +1035,56 @@ const Jt = {
|
|
|
1028
1035
|
label: "WarningCard",
|
|
1029
1036
|
value: "WarningCard"
|
|
1030
1037
|
}
|
|
1031
|
-
],
|
|
1038
|
+
], rr = {
|
|
1032
1039
|
text: se,
|
|
1033
|
-
number:
|
|
1040
|
+
number: ie,
|
|
1034
1041
|
phone: ce,
|
|
1035
1042
|
select: me,
|
|
1036
|
-
date:
|
|
1037
|
-
radio:
|
|
1043
|
+
date: le,
|
|
1044
|
+
radio: de,
|
|
1038
1045
|
checkbox: ne,
|
|
1039
|
-
file:
|
|
1040
|
-
},
|
|
1046
|
+
file: Ue
|
|
1047
|
+
}, or = (a, {
|
|
1041
1048
|
register: r,
|
|
1042
1049
|
errors: o,
|
|
1043
|
-
control:
|
|
1044
|
-
}) => a.map((e,
|
|
1050
|
+
control: s
|
|
1051
|
+
}) => a.map((e, l) => {
|
|
1045
1052
|
var k;
|
|
1046
1053
|
if ((e == null ? void 0 : e.componentType) === "component") {
|
|
1047
|
-
const y =
|
|
1054
|
+
const y = er[e == null ? void 0 : e.key];
|
|
1048
1055
|
if (y)
|
|
1049
1056
|
return /* @__PURE__ */ t(
|
|
1050
1057
|
y,
|
|
1051
1058
|
{
|
|
1052
1059
|
...e == null ? void 0 : e.props
|
|
1053
1060
|
},
|
|
1054
|
-
|
|
1061
|
+
l
|
|
1055
1062
|
);
|
|
1056
1063
|
}
|
|
1057
|
-
const m =
|
|
1064
|
+
const m = rr[e == null ? void 0 : e.type];
|
|
1058
1065
|
if (m) {
|
|
1059
1066
|
const y = ["select", "radio", "checkbox", "file"].includes(
|
|
1060
1067
|
e.type
|
|
1061
|
-
),
|
|
1062
|
-
return y &&
|
|
1063
|
-
|
|
1068
|
+
), n = e != null && e.name ? (k = o[e == null ? void 0 : e.name]) == null ? void 0 : k.message : void 0;
|
|
1069
|
+
return y && s && (e != null && e.name) ? /* @__PURE__ */ t(
|
|
1070
|
+
Ye,
|
|
1064
1071
|
{
|
|
1065
1072
|
name: e.name,
|
|
1066
|
-
control:
|
|
1073
|
+
control: s,
|
|
1067
1074
|
rules: { validate: e.validate },
|
|
1068
|
-
render: ({ field: { onChange: N, value:
|
|
1075
|
+
render: ({ field: { onChange: N, value: C, name: c, ref: v } }) => /* @__PURE__ */ t(
|
|
1069
1076
|
m,
|
|
1070
1077
|
{
|
|
1071
1078
|
...e.field_props,
|
|
1072
1079
|
onChange: N,
|
|
1073
|
-
value:
|
|
1080
|
+
value: C,
|
|
1074
1081
|
name: c,
|
|
1075
|
-
ref:
|
|
1076
|
-
error:
|
|
1082
|
+
ref: v,
|
|
1083
|
+
error: n
|
|
1077
1084
|
}
|
|
1078
1085
|
)
|
|
1079
1086
|
},
|
|
1080
|
-
|
|
1087
|
+
l
|
|
1081
1088
|
) : e.name ? /* @__PURE__ */ t(
|
|
1082
1089
|
m,
|
|
1083
1090
|
{
|
|
@@ -1085,16 +1092,16 @@ const Jt = {
|
|
|
1085
1092
|
...r(e == null ? void 0 : e.name, {
|
|
1086
1093
|
validate: e == null ? void 0 : e.validate
|
|
1087
1094
|
}),
|
|
1088
|
-
error:
|
|
1095
|
+
error: n
|
|
1089
1096
|
},
|
|
1090
|
-
|
|
1097
|
+
l
|
|
1091
1098
|
) : /* @__PURE__ */ t(
|
|
1092
1099
|
m,
|
|
1093
1100
|
{
|
|
1094
1101
|
...e == null ? void 0 : e.field_props,
|
|
1095
|
-
error:
|
|
1102
|
+
error: n
|
|
1096
1103
|
},
|
|
1097
|
-
|
|
1104
|
+
l
|
|
1098
1105
|
);
|
|
1099
1106
|
}
|
|
1100
1107
|
return null;
|
|
@@ -1113,81 +1120,83 @@ const Jt = {
|
|
|
1113
1120
|
}, ba = {
|
|
1114
1121
|
title: "Форма заявки",
|
|
1115
1122
|
description: "Форма заявки ",
|
|
1116
|
-
types: [ee.form]
|
|
1117
|
-
|
|
1118
|
-
},
|
|
1123
|
+
types: [ee.form],
|
|
1124
|
+
propsToEdit: ue
|
|
1125
|
+
}, ar = {
|
|
1119
1126
|
title: "Оставьте заявку, чтобы подключить MKassa",
|
|
1120
1127
|
description: "с Вами свяжется наш специалист и поможет с подключением сервиса",
|
|
1121
1128
|
color: "#45464b"
|
|
1122
|
-
},
|
|
1129
|
+
}, nr = Q({
|
|
1123
1130
|
label: "Тип поля",
|
|
1124
1131
|
type: "componentType",
|
|
1125
|
-
options:
|
|
1126
|
-
}),
|
|
1132
|
+
options: Et
|
|
1133
|
+
}), sr = Q({
|
|
1127
1134
|
label: "Компонент",
|
|
1128
1135
|
type: "componentType",
|
|
1129
|
-
options:
|
|
1130
|
-
}),
|
|
1136
|
+
options: tr
|
|
1137
|
+
}), lr = Q({
|
|
1131
1138
|
label: "Тип поля",
|
|
1132
1139
|
type: "fieldType",
|
|
1133
|
-
options:
|
|
1140
|
+
options: At
|
|
1134
1141
|
}), ir = {
|
|
1135
1142
|
type: "fields",
|
|
1136
1143
|
dataType: "array",
|
|
1137
1144
|
label: "Поля для формы",
|
|
1138
1145
|
data: {
|
|
1139
|
-
componentType:
|
|
1140
|
-
type:
|
|
1141
|
-
key:
|
|
1146
|
+
componentType: nr,
|
|
1147
|
+
type: lr,
|
|
1148
|
+
key: sr,
|
|
1142
1149
|
name: G.STRING,
|
|
1143
1150
|
props: {
|
|
1151
|
+
label: "Свойства компонента",
|
|
1144
1152
|
dataType: X.object,
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1153
|
+
data: {
|
|
1154
|
+
keys: {
|
|
1155
|
+
title: G.TITLE,
|
|
1156
|
+
description: G.DESCRIPTION,
|
|
1157
|
+
html_content: G.HTML_CONTENT
|
|
1158
|
+
}
|
|
1159
|
+
},
|
|
1160
|
+
field_props: {
|
|
1161
|
+
label: "Свойства поля",
|
|
1162
|
+
dataType: X.object,
|
|
1163
|
+
data: {
|
|
1164
|
+
keys: {
|
|
1165
|
+
label: G.TITLE,
|
|
1166
|
+
placeholder: G.DESCRIPTION,
|
|
1167
|
+
is_required: G.BOOLEAN
|
|
1168
|
+
}
|
|
1169
|
+
}
|
|
1157
1170
|
}
|
|
1158
1171
|
}
|
|
1159
|
-
// form_item_props: {
|
|
1160
|
-
// label: FieldTypes.STRING,
|
|
1161
|
-
// placeholder: FieldTypes.STRING,
|
|
1162
|
-
// },
|
|
1163
1172
|
}
|
|
1164
|
-
},
|
|
1173
|
+
}, ue = ["title", "subtitle", "color", ir], fe = ({
|
|
1165
1174
|
title: a,
|
|
1166
1175
|
subtitle: r,
|
|
1167
1176
|
color: o,
|
|
1168
|
-
gridCols:
|
|
1177
|
+
gridCols: s = 1,
|
|
1169
1178
|
gridRow: e = 2,
|
|
1170
|
-
fields:
|
|
1179
|
+
fields: l = []
|
|
1171
1180
|
}) => {
|
|
1172
1181
|
var L;
|
|
1173
|
-
const [m, k] = I(!1), [y,
|
|
1174
|
-
register:
|
|
1182
|
+
const [m, k] = I(!1), [y, n] = I(!1), N = Qe(960), {
|
|
1183
|
+
register: C,
|
|
1175
1184
|
handleSubmit: c,
|
|
1176
|
-
watch:
|
|
1185
|
+
watch: v,
|
|
1177
1186
|
reset: h,
|
|
1178
1187
|
control: x,
|
|
1179
1188
|
formState: { errors: u }
|
|
1180
|
-
} =
|
|
1189
|
+
} = Ke({
|
|
1181
1190
|
defaultValues: {
|
|
1182
1191
|
fio: "",
|
|
1183
1192
|
phone: "",
|
|
1184
1193
|
business_category: "",
|
|
1185
1194
|
agreement: !1
|
|
1186
1195
|
}
|
|
1187
|
-
}), S =
|
|
1196
|
+
}), S = v("agreement"), F = async (B) => {
|
|
1188
1197
|
console.log("Form submitted:", B);
|
|
1189
|
-
}, w =
|
|
1190
|
-
register:
|
|
1198
|
+
}, w = or(l || [], {
|
|
1199
|
+
register: C,
|
|
1191
1200
|
errors: u,
|
|
1192
1201
|
control: x
|
|
1193
1202
|
});
|
|
@@ -1248,7 +1257,7 @@ const Jt = {
|
|
|
1248
1257
|
{
|
|
1249
1258
|
className: "w-[640px] mb-8 max-tablet:w-full grid gap-6",
|
|
1250
1259
|
style: {
|
|
1251
|
-
gridTemplateColumns: `repeat(${N ? 1 :
|
|
1260
|
+
gridTemplateColumns: `repeat(${N ? 1 : s}, 1fr)`,
|
|
1252
1261
|
gridTemplateRows: `repeat(${e}, auto)`
|
|
1253
1262
|
},
|
|
1254
1263
|
children: w
|
|
@@ -1257,7 +1266,7 @@ const Jt = {
|
|
|
1257
1266
|
/* @__PURE__ */ t("div", { className: "pt-2", children: /* @__PURE__ */ t(
|
|
1258
1267
|
Y,
|
|
1259
1268
|
{
|
|
1260
|
-
...
|
|
1269
|
+
...C("agreement", {
|
|
1261
1270
|
required: "Необходимо согласие на обработку персональных данных"
|
|
1262
1271
|
}),
|
|
1263
1272
|
error: (L = u.agreement) == null ? void 0 : L.message,
|
|
@@ -1284,8 +1293,8 @@ const Jt = {
|
|
|
1284
1293
|
loading: y,
|
|
1285
1294
|
className: "w-full whitespace-nowrap transition-all duration-200 hover:scale-[1.02] active:scale-[0.98]",
|
|
1286
1295
|
type: "submit",
|
|
1287
|
-
size:
|
|
1288
|
-
variant:
|
|
1296
|
+
size: De.XL,
|
|
1297
|
+
variant: Ne.Primary,
|
|
1289
1298
|
disabled: !S || y,
|
|
1290
1299
|
children: "Отправить заявку"
|
|
1291
1300
|
}
|
|
@@ -1297,93 +1306,93 @@ const Jt = {
|
|
|
1297
1306
|
}
|
|
1298
1307
|
) });
|
|
1299
1308
|
};
|
|
1300
|
-
|
|
1309
|
+
fe.propsToEdit = ue;
|
|
1301
1310
|
const xa = {
|
|
1302
|
-
MainBanner: { key: "MainBanner", component:
|
|
1303
|
-
Banner: { key: "Banner", component:
|
|
1304
|
-
CardImageList: { key: "CardImageList", component:
|
|
1305
|
-
Stepper: { key: "Stepper", component:
|
|
1306
|
-
Segments: { key: "Segments", component:
|
|
1307
|
-
VideoFull: { key: "VideoFull", component:
|
|
1308
|
-
VideoList: { key: "VideoList", component:
|
|
1309
|
-
VideoListMini: { key: "VideoListMini", component:
|
|
1310
|
-
ContentCardList: { key: "ContentCardList", component:
|
|
1311
|
-
CardIconList: { key: "CardIconList", component:
|
|
1312
|
-
MultiCards: { key: "MultiCards", component:
|
|
1313
|
-
Partners: { key: "Partners", component:
|
|
1314
|
-
PartnersColors: { key: "PartnersColors", component:
|
|
1311
|
+
MainBanner: { key: "MainBanner", component: Pe },
|
|
1312
|
+
Banner: { key: "Banner", component: xe },
|
|
1313
|
+
CardImageList: { key: "CardImageList", component: He },
|
|
1314
|
+
Stepper: { key: "Stepper", component: Le },
|
|
1315
|
+
Segments: { key: "Segments", component: _e },
|
|
1316
|
+
VideoFull: { key: "VideoFull", component: Be },
|
|
1317
|
+
VideoList: { key: "VideoList", component: Me },
|
|
1318
|
+
VideoListMini: { key: "VideoListMini", component: Se },
|
|
1319
|
+
ContentCardList: { key: "ContentCardList", component: Fe },
|
|
1320
|
+
CardIconList: { key: "CardIconList", component: Ve },
|
|
1321
|
+
MultiCards: { key: "MultiCards", component: Ie },
|
|
1322
|
+
Partners: { key: "Partners", component: Te },
|
|
1323
|
+
PartnersColors: { key: "PartnersColors", component: Oe },
|
|
1315
1324
|
WarningCard: { key: "WarningCard", component: z },
|
|
1316
|
-
Faq: { key: "Faq", component:
|
|
1325
|
+
Faq: { key: "Faq", component: We },
|
|
1317
1326
|
DownloadFileBanner: {
|
|
1318
1327
|
key: "DownloadFileBanner",
|
|
1319
|
-
component:
|
|
1328
|
+
component: Ee
|
|
1320
1329
|
},
|
|
1321
|
-
DownloadFileHalf: { key: "DownloadFileHalf", component:
|
|
1322
|
-
DownloadFileFull: { key: "DownloadFileFull", component:
|
|
1323
|
-
DownloadFileMini: { key: "DownloadFileMini", component:
|
|
1324
|
-
InstructionList: { key: "InstructionList", component:
|
|
1325
|
-
PreviewList: { key: "PreviewList", component:
|
|
1326
|
-
SwiperList: { key: "SwiperList", component:
|
|
1327
|
-
AnimatedSwiper: { key: "AnimatedSwiper", component:
|
|
1328
|
-
InfoBannerList: { key: "InfoBannerList", component:
|
|
1329
|
-
TasksBannerList: { key: "TasksBannerList", component:
|
|
1330
|
-
VideoMainBanner: { key: "VideoMainBanner", component:
|
|
1331
|
-
Space: { key: "Space", component:
|
|
1332
|
-
PromoPoster: { key: "PromoPoster", component:
|
|
1330
|
+
DownloadFileHalf: { key: "DownloadFileHalf", component: Ze },
|
|
1331
|
+
DownloadFileFull: { key: "DownloadFileFull", component: Ae },
|
|
1332
|
+
DownloadFileMini: { key: "DownloadFileMini", component: $e },
|
|
1333
|
+
InstructionList: { key: "InstructionList", component: Ge },
|
|
1334
|
+
PreviewList: { key: "PreviewList", component: je },
|
|
1335
|
+
SwiperList: { key: "SwiperList", component: at },
|
|
1336
|
+
AnimatedSwiper: { key: "AnimatedSwiper", component: Re },
|
|
1337
|
+
InfoBannerList: { key: "InfoBannerList", component: Je },
|
|
1338
|
+
TasksBannerList: { key: "TasksBannerList", component: nt },
|
|
1339
|
+
VideoMainBanner: { key: "VideoMainBanner", component: st },
|
|
1340
|
+
Space: { key: "Space", component: rt },
|
|
1341
|
+
PromoPoster: { key: "PromoPoster", component: tt },
|
|
1333
1342
|
CardImageSecondaryList: {
|
|
1334
1343
|
key: "CardImageSecondaryList",
|
|
1335
|
-
component:
|
|
1344
|
+
component: Xe
|
|
1336
1345
|
},
|
|
1337
|
-
CardInfoTable: { key: "CardInfoTable", component:
|
|
1338
|
-
StandartTable: { key: "StandartTable", component:
|
|
1339
|
-
IntroBanner: { key: "IntroBanner", component:
|
|
1346
|
+
CardInfoTable: { key: "CardInfoTable", component: qe },
|
|
1347
|
+
StandartTable: { key: "StandartTable", component: ot },
|
|
1348
|
+
IntroBanner: { key: "IntroBanner", component: et },
|
|
1340
1349
|
DownloadFileBright: {
|
|
1341
1350
|
key: "DownloadFileBright",
|
|
1342
|
-
component:
|
|
1351
|
+
component: ze
|
|
1343
1352
|
},
|
|
1344
1353
|
FormDefault: {
|
|
1345
1354
|
key: "FormDefault",
|
|
1346
|
-
component:
|
|
1355
|
+
component: fe
|
|
1347
1356
|
},
|
|
1348
|
-
Header: { key: "Header", component:
|
|
1349
|
-
Footer: { key: "Footer", component:
|
|
1357
|
+
Header: { key: "Header", component: Zt },
|
|
1358
|
+
Footer: { key: "Footer", component: $t },
|
|
1350
1359
|
TitleBlock: { key: "TitleBlock", component: oe }
|
|
1351
1360
|
}, ya = {
|
|
1352
|
-
MainBanner:
|
|
1361
|
+
MainBanner: lt.component_props,
|
|
1353
1362
|
Banner: it.component_props,
|
|
1354
|
-
CardImageList:
|
|
1355
|
-
Stepper:
|
|
1363
|
+
CardImageList: ct.component_props,
|
|
1364
|
+
Stepper: dt.component_props,
|
|
1356
1365
|
Segments: pt.component_props,
|
|
1357
|
-
VideoFull:
|
|
1358
|
-
VideoList:
|
|
1359
|
-
VideoListMini:
|
|
1360
|
-
ContentCardList:
|
|
1361
|
-
CardIconList:
|
|
1362
|
-
MultiCards:
|
|
1363
|
-
Partners:
|
|
1364
|
-
PartnersColors:
|
|
1365
|
-
WarningCard:
|
|
1366
|
-
Faq:
|
|
1367
|
-
DownloadFileBanner:
|
|
1366
|
+
VideoFull: mt.component_props,
|
|
1367
|
+
VideoList: ut.component_props,
|
|
1368
|
+
VideoListMini: ft.component_props,
|
|
1369
|
+
ContentCardList: ht.component_props,
|
|
1370
|
+
CardIconList: gt.component_props,
|
|
1371
|
+
MultiCards: bt.component_props,
|
|
1372
|
+
Partners: xt.component_props,
|
|
1373
|
+
PartnersColors: yt.component_props,
|
|
1374
|
+
WarningCard: wt.component_props,
|
|
1375
|
+
Faq: kt.component_props,
|
|
1376
|
+
DownloadFileBanner: Ct.component_props,
|
|
1368
1377
|
DownloadFileHalf: vt.component_props,
|
|
1369
|
-
DownloadFileFull:
|
|
1370
|
-
DownloadFileMini:
|
|
1371
|
-
InstructionList:
|
|
1372
|
-
PreviewList:
|
|
1373
|
-
SwiperList:
|
|
1374
|
-
AnimatedSwiper:
|
|
1375
|
-
InfoBannerList:
|
|
1376
|
-
TasksBannerList:
|
|
1377
|
-
VideoMainBanner:
|
|
1378
|
-
EmptyBox:
|
|
1379
|
-
PromoPoster:
|
|
1380
|
-
CardImageSecondaryList:
|
|
1381
|
-
CardInfoTable:
|
|
1382
|
-
StandartTable:
|
|
1383
|
-
IntroBanner:
|
|
1384
|
-
DownloadFileBright:
|
|
1385
|
-
FormDefault:
|
|
1386
|
-
TitleBlock:
|
|
1378
|
+
DownloadFileFull: Dt.component_props,
|
|
1379
|
+
DownloadFileMini: Nt.component_props,
|
|
1380
|
+
InstructionList: Lt.component_props,
|
|
1381
|
+
PreviewList: _t.component_props,
|
|
1382
|
+
SwiperList: Bt.component_props,
|
|
1383
|
+
AnimatedSwiper: Mt.component_props,
|
|
1384
|
+
InfoBannerList: St.component_props,
|
|
1385
|
+
TasksBannerList: Ft.component_props,
|
|
1386
|
+
VideoMainBanner: Vt.component_props,
|
|
1387
|
+
EmptyBox: It.component_props,
|
|
1388
|
+
PromoPoster: Tt.component_props,
|
|
1389
|
+
CardImageSecondaryList: Ht.component_props,
|
|
1390
|
+
CardInfoTable: Pt.component_props,
|
|
1391
|
+
StandartTable: Wt.component_props,
|
|
1392
|
+
IntroBanner: Gt.component_props,
|
|
1393
|
+
DownloadFileBright: Ot.component_props,
|
|
1394
|
+
FormDefault: ar,
|
|
1395
|
+
TitleBlock: jt.component_props
|
|
1387
1396
|
}, wa = {
|
|
1388
1397
|
title: "Предупреждающая карточка",
|
|
1389
1398
|
description: "Компонент для отображения предупреждающей информации в виде карточки с иконкой, заголовком и описанием. Используется для привлечения внимания к важной информации или предупреждениям.",
|
|
@@ -1392,17 +1401,17 @@ const xa = {
|
|
|
1392
1401
|
};
|
|
1393
1402
|
export {
|
|
1394
1403
|
ya as A,
|
|
1395
|
-
|
|
1404
|
+
fe as F,
|
|
1396
1405
|
z as W,
|
|
1397
1406
|
xa as a,
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1407
|
+
tr as b,
|
|
1408
|
+
er as c,
|
|
1409
|
+
ar as d,
|
|
1401
1410
|
ir as e,
|
|
1402
1411
|
ba as f,
|
|
1403
|
-
|
|
1412
|
+
ue as g,
|
|
1404
1413
|
ga as i,
|
|
1405
1414
|
ae as p,
|
|
1406
|
-
|
|
1415
|
+
or as r,
|
|
1407
1416
|
wa as w
|
|
1408
1417
|
};
|