md-components-mdigial-azamat 0.0.98 → 0.0.99
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/FileLoader/index.js +6 -1785
- package/dist/Forms/FormDefault/index.js +5 -3
- package/dist/Forms/FormDefault/info.js +6 -5
- package/dist/Forms/helpers/renderFormFields.js +2 -2
- package/dist/Forms/model/components.js +1 -1
- package/dist/Forms/model/requestForm.js +4 -0
- package/dist/PageViewer/renderComponents.js +1 -1
- package/dist/RenderAllComponents/RenderAllComponents.js +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/{componentsMap-12ca184c.js → componentsMap-d3d722b2.js} +1 -1
- package/dist/index-6686852d.js +1794 -0
- package/dist/{info-e9389d85.js → info-14d8693d.js} +717 -654
- package/dist/main.js +1 -1
- package/dist/requestForm-23442a57.js +25 -0
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { C as ee } from "./index-0a5f313c.js";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { warningCardVariant as ge, WarningCardVariant as
|
|
2
|
+
import { jsx as e, jsxs as c, Fragment as Q } from "react/jsx-runtime";
|
|
3
|
+
import { warningCardVariant as ge, WarningCardVariant as A, WarningCardVariantKey as be } from "./Cards/WarningCard/model.js";
|
|
4
4
|
import "./ConfigProvider/index.js";
|
|
5
5
|
import { Banner as xe } from "./Banner/Banner.js";
|
|
6
6
|
import "./BannerAndText/index.js";
|
|
7
|
-
import { forwardRef as P, useState as
|
|
8
|
-
import { c as
|
|
7
|
+
import { forwardRef as P, useState as T, useMemo as $, useEffect as ye, useRef as we, useImperativeHandle as te, useCallback as ke } from "react";
|
|
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
11
|
import { HtmlContent as Ce } from "./HtmlContent/HtmlContent.js";
|
|
@@ -15,16 +15,16 @@ import { B as ve, a as De, b as Ne } from "./const-53dff524.js";
|
|
|
15
15
|
import { Stepper as Le } from "./Stepper/Stepper.js";
|
|
16
16
|
import { Segments as _e } from "./Segments/Segments.js";
|
|
17
17
|
import { VideoFull as Be } from "./Video/VideoFull/VideoFull.js";
|
|
18
|
-
import { VideoList as
|
|
19
|
-
import { VideoListMini as
|
|
18
|
+
import { VideoList as Se } from "./Video/VideoList/VideoList.js";
|
|
19
|
+
import { VideoListMini as Me } from "./Video/VideoListMini/VideoListMini.js";
|
|
20
20
|
import { ContentCardList as Fe } from "./ContentCardList/ContentCardList.js";
|
|
21
21
|
import { CardIconList as Ve } from "./CardIconList/CardIconList.js";
|
|
22
22
|
import { MultiCards as Ie } from "./MultiCards/index.js";
|
|
23
23
|
import { Partners as Te } from "./Partners/Partners.js";
|
|
24
24
|
import { CardImageList as He } from "./CardImageList/CardImageList.js";
|
|
25
25
|
import { MainBanner as Pe } from "./MainBanner/MainBanner.js";
|
|
26
|
-
import { Faq as
|
|
27
|
-
import { InstructionList as
|
|
26
|
+
import { Faq as Ee } from "./Faq/Faq.js";
|
|
27
|
+
import { InstructionList as We } 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 je } from "./PreviewList/PreviewList.js";
|
|
@@ -32,7 +32,7 @@ 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
|
|
35
|
+
import { DownloadFileBanner as Ge } from "./DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js";
|
|
36
36
|
import { DownloadFileFull as Ae } from "./DownloadFile/components/DownloadFileFull/DownloadFileFull.js";
|
|
37
37
|
import { DownloadFileHalf as Ze } from "./DownloadFile/components/DownloadFileHalf/DownloadFileHalf.js";
|
|
38
38
|
import { DownloadFileMini as $e } from "./DownloadFile/components/DownloadFileMini/DownloadFileMini.js";
|
|
@@ -41,15 +41,15 @@ import "./PreviewList/components/PreviewCard/PreviewCard.js";
|
|
|
41
41
|
import Re from "./AnimatedSwiper/index.js";
|
|
42
42
|
import "./CardImageSecondary/CardImageSecondary.js";
|
|
43
43
|
import { CardImageSecondaryList as Xe } from "./CardImageSecondaryList/CardImageSecondaryList.js";
|
|
44
|
-
import { CardInfoTable as
|
|
45
|
-
import { DownloadFileBright as
|
|
44
|
+
import { CardInfoTable as ze } from "./CardInfoTable/index.js";
|
|
45
|
+
import { DownloadFileBright as qe } from "./DownloadFile/components/DownloadFileBright/index.js";
|
|
46
46
|
import "./DownloadFile/components/FileBannerSecondary/FileBannerSecondary.js";
|
|
47
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
|
|
51
|
-
import { u as
|
|
52
|
-
import { TitleBlock as
|
|
49
|
+
import { u as Ue } from "./useScreenSize-c1b64c02.js";
|
|
50
|
+
import { u as oe, F as Qe } from "./index-6686852d.js";
|
|
51
|
+
import { u as z } from "./useClickOutside-197b0df2.js";
|
|
52
|
+
import { TitleBlock as ae } from "./TitleBlock/TitleBlock.js";
|
|
53
53
|
import "./InfoBanner/index.js";
|
|
54
54
|
import { InfoBannerList as Je } from "./InfoBannerList/InfoBannerList.js";
|
|
55
55
|
import { IntroBanner as et } from "./IntroBanner/IntroBanner.js";
|
|
@@ -60,7 +60,7 @@ import { SwiperList as at } from "./SwiperList/SwiperList.js";
|
|
|
60
60
|
import "./TasksBanner/TasksBanner.js";
|
|
61
61
|
import { TasksBannerList as nt } from "./TasksBannerList/TasksBannerList.js";
|
|
62
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
|
|
63
|
+
import { M as lt, B as it, C as ct, S as dt, b as pt, V as mt, c as ut, d as ft, e as ht, f as gt, g as bt, P as xt, h as yt, W as wt, F as kt, k as Ct, D as vt, l as Dt, m as Nt, I as Lt, o as _t, p as Bt, A as St, q as Mt, T as Ft, r as Vt, E as It, s as Tt, t as Ht, u as Pt, v as Et, w as Wt, x as Ot, y as jt } from "./data.mock-f00bb32c.js";
|
|
64
64
|
import { DataTypesEnum as X, FieldTypes as G } from "./Types/FiledTypes.js";
|
|
65
65
|
import "react-dom";
|
|
66
66
|
import "./AnimatedSwiper/info.js";
|
|
@@ -107,12 +107,13 @@ 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 {
|
|
111
|
-
import {
|
|
112
|
-
import {
|
|
113
|
-
import {
|
|
114
|
-
import {
|
|
115
|
-
|
|
110
|
+
import { c as Gt, R as At } from "./requestForm-23442a57.js";
|
|
111
|
+
import { componentTypes as Zt } from "./Forms/FormDefault/componentTypes.js";
|
|
112
|
+
import { fieldTypesList as $t } from "./Forms/FormDefault/fieldTypesList.js";
|
|
113
|
+
import { Header as Rt } from "./Header/Header.js";
|
|
114
|
+
import { Footer as Xt } from "./Footer/Footer.js";
|
|
115
|
+
import { I as zt } from "./Icon-70ea6cb8.js";
|
|
116
|
+
const ne = [
|
|
116
117
|
"title",
|
|
117
118
|
"title_color",
|
|
118
119
|
"description",
|
|
@@ -120,126 +121,126 @@ const ae = [
|
|
|
120
121
|
"html_content",
|
|
121
122
|
ve,
|
|
122
123
|
ge
|
|
123
|
-
],
|
|
124
|
-
title:
|
|
125
|
-
description:
|
|
126
|
-
button:
|
|
127
|
-
html_content:
|
|
128
|
-
variant:
|
|
124
|
+
], q = ({
|
|
125
|
+
title: n,
|
|
126
|
+
description: o,
|
|
127
|
+
button: a,
|
|
128
|
+
html_content: l,
|
|
129
|
+
variant: r = be.Orange
|
|
129
130
|
}) => {
|
|
130
|
-
var
|
|
131
|
-
return /* @__PURE__ */
|
|
131
|
+
var t, f, p, N;
|
|
132
|
+
return /* @__PURE__ */ e(re, { children: /* @__PURE__ */ e(
|
|
132
133
|
"div",
|
|
133
134
|
{
|
|
134
135
|
className: "rounded-[24px] p-6",
|
|
135
|
-
style: { background: (
|
|
136
|
-
children: /* @__PURE__ */
|
|
137
|
-
/* @__PURE__ */
|
|
136
|
+
style: { background: (t = A[r]) == null ? void 0 : t.background },
|
|
137
|
+
children: /* @__PURE__ */ c("div", { className: "flex gap-4 items-center justify-between", children: [
|
|
138
|
+
/* @__PURE__ */ c(
|
|
138
139
|
"div",
|
|
139
140
|
{
|
|
140
141
|
className: "flex gap-[16px] items-center max-tablet:flex-col max-tablet:items-start max-tablet:gap-[12px]",
|
|
141
142
|
children: [
|
|
142
|
-
/* @__PURE__ */
|
|
143
|
-
|
|
143
|
+
/* @__PURE__ */ e(
|
|
144
|
+
zt,
|
|
144
145
|
{
|
|
145
|
-
name: (
|
|
146
|
+
name: (f = A[r]) == null ? void 0 : f.icon,
|
|
146
147
|
size: 40
|
|
147
148
|
}
|
|
148
149
|
),
|
|
149
|
-
/* @__PURE__ */
|
|
150
|
-
/* @__PURE__ */
|
|
150
|
+
/* @__PURE__ */ c("div", { className: "flex flex-col gap-[4px] max-tablet:gap-0", children: [
|
|
151
|
+
/* @__PURE__ */ e(
|
|
151
152
|
"p",
|
|
152
153
|
{
|
|
153
|
-
className:
|
|
154
|
-
style: { color: (
|
|
155
|
-
children:
|
|
154
|
+
className: y("text-[24px] leading-8 font-bold"),
|
|
155
|
+
style: { color: (p = A[r]) == null ? void 0 : p.textColor },
|
|
156
|
+
children: n
|
|
156
157
|
}
|
|
157
158
|
),
|
|
158
|
-
/* @__PURE__ */
|
|
159
|
+
/* @__PURE__ */ e(
|
|
159
160
|
"p",
|
|
160
161
|
{
|
|
161
162
|
className: "text-[16px] leading-6",
|
|
162
|
-
style: { color: (
|
|
163
|
-
children:
|
|
163
|
+
style: { color: (N = A[r]) == null ? void 0 : N.textColor },
|
|
164
|
+
children: o
|
|
164
165
|
}
|
|
165
166
|
),
|
|
166
|
-
|
|
167
|
+
l && /* @__PURE__ */ e(Ce, { data: l })
|
|
167
168
|
] })
|
|
168
169
|
]
|
|
169
170
|
}
|
|
170
171
|
),
|
|
171
|
-
/* @__PURE__ */
|
|
172
|
+
/* @__PURE__ */ e(R, { ...a })
|
|
172
173
|
] })
|
|
173
174
|
}
|
|
174
175
|
) });
|
|
175
176
|
};
|
|
176
|
-
|
|
177
|
-
const
|
|
177
|
+
q.propsToEdit = ne;
|
|
178
|
+
const se = P(
|
|
178
179
|
({
|
|
179
|
-
label:
|
|
180
|
-
options:
|
|
181
|
-
value:
|
|
182
|
-
onChange:
|
|
183
|
-
error:
|
|
184
|
-
className:
|
|
185
|
-
direction:
|
|
186
|
-
},
|
|
187
|
-
const
|
|
188
|
-
if (!
|
|
180
|
+
label: n,
|
|
181
|
+
options: o = [],
|
|
182
|
+
value: a = [],
|
|
183
|
+
onChange: l,
|
|
184
|
+
error: r,
|
|
185
|
+
className: t,
|
|
186
|
+
direction: f = "column"
|
|
187
|
+
}, p) => {
|
|
188
|
+
const N = (s) => {
|
|
189
|
+
if (!l)
|
|
189
190
|
return;
|
|
190
|
-
const
|
|
191
|
-
|
|
191
|
+
const D = a.includes(s) ? a.filter((w) => w !== s) : [...a, s];
|
|
192
|
+
l(D);
|
|
192
193
|
};
|
|
193
|
-
return /* @__PURE__ */
|
|
194
|
+
return /* @__PURE__ */ c(
|
|
194
195
|
"div",
|
|
195
196
|
{
|
|
196
|
-
ref:
|
|
197
|
-
className:
|
|
197
|
+
ref: p,
|
|
198
|
+
className: y("flex flex-col gap-2", t),
|
|
198
199
|
children: [
|
|
199
|
-
|
|
200
|
-
/* @__PURE__ */
|
|
200
|
+
n && /* @__PURE__ */ e("label", { className: "text-sm font-medium text-blackBG mb-1", children: n }),
|
|
201
|
+
/* @__PURE__ */ e(
|
|
201
202
|
"div",
|
|
202
203
|
{
|
|
203
|
-
className:
|
|
204
|
+
className: y(
|
|
204
205
|
"flex gap-4",
|
|
205
|
-
|
|
206
|
+
f === "column" ? "flex-col" : "flex-row flex-wrap"
|
|
206
207
|
),
|
|
207
|
-
children:
|
|
208
|
+
children: o == null ? void 0 : o.map((s) => /* @__PURE__ */ e(
|
|
208
209
|
Y,
|
|
209
210
|
{
|
|
210
|
-
label:
|
|
211
|
-
checked:
|
|
212
|
-
onChange: () =>
|
|
213
|
-
error:
|
|
211
|
+
label: s == null ? void 0 : s.label,
|
|
212
|
+
checked: a.includes(s == null ? void 0 : s.value),
|
|
213
|
+
onChange: () => N(s == null ? void 0 : s.value),
|
|
214
|
+
error: r && (a == null ? void 0 : a.length) === 0 ? r : void 0
|
|
214
215
|
},
|
|
215
|
-
|
|
216
|
+
s == null ? void 0 : s.value
|
|
216
217
|
))
|
|
217
218
|
}
|
|
218
219
|
),
|
|
219
|
-
|
|
220
|
+
r && /* @__PURE__ */ e("p", { className: "mt-1 text-sm text-red-500", children: r })
|
|
220
221
|
]
|
|
221
222
|
}
|
|
222
223
|
);
|
|
223
224
|
}
|
|
224
225
|
);
|
|
225
|
-
|
|
226
|
+
se.displayName = "CheckboxGroup";
|
|
226
227
|
const Y = P(
|
|
227
|
-
({ className:
|
|
228
|
-
/* @__PURE__ */
|
|
229
|
-
/* @__PURE__ */
|
|
230
|
-
/* @__PURE__ */
|
|
228
|
+
({ className: n, label: o, error: a, ...l }, r) => /* @__PURE__ */ c("div", { className: "w-full", children: [
|
|
229
|
+
/* @__PURE__ */ c("label", { className: "flex items-start gap-3 cursor-pointer group", children: [
|
|
230
|
+
/* @__PURE__ */ c("div", { className: "relative flex items-center justify-center mt-0.5", children: [
|
|
231
|
+
/* @__PURE__ */ e(
|
|
231
232
|
"input",
|
|
232
233
|
{
|
|
233
234
|
type: "checkbox",
|
|
234
235
|
className: "peer sr-only",
|
|
235
|
-
ref:
|
|
236
|
-
...
|
|
236
|
+
ref: r,
|
|
237
|
+
...l
|
|
237
238
|
}
|
|
238
239
|
),
|
|
239
|
-
/* @__PURE__ */
|
|
240
|
+
/* @__PURE__ */ e(
|
|
240
241
|
"div",
|
|
241
242
|
{
|
|
242
|
-
className:
|
|
243
|
+
className: y(
|
|
243
244
|
"relative flex items-center justify-center w-5 h-5 rounded-md border-2 transition-all duration-200",
|
|
244
245
|
"border-grayBlue5 bg-white",
|
|
245
246
|
"peer-checked:bg-greenLight peer-checked:border-greenLight",
|
|
@@ -250,54 +251,54 @@ const Y = P(
|
|
|
250
251
|
"after:w-[6px] after:h-[10px] after:border-r-2 after:border-b-2 after:border-white",
|
|
251
252
|
"after:rotate-45 after:-translate-x-[2px] after:translate-y-[-2px] after:top-1/2 after:left-1/2",
|
|
252
253
|
"after:translate-y-[-50%] after:translate-x-[-50%] peer-checked:after:opacity-100",
|
|
253
|
-
|
|
254
|
-
|
|
254
|
+
a && "border-red-500",
|
|
255
|
+
n
|
|
255
256
|
)
|
|
256
257
|
}
|
|
257
258
|
)
|
|
258
259
|
] }),
|
|
259
|
-
|
|
260
|
+
o && /* @__PURE__ */ e(
|
|
260
261
|
"span",
|
|
261
262
|
{
|
|
262
|
-
className:
|
|
263
|
+
className: y(
|
|
263
264
|
"text-sm leading-5 text-graySoft select-none",
|
|
264
265
|
"group-hover:text-blackBG transition-colors duration-200",
|
|
265
|
-
|
|
266
|
+
a && "text-red-500"
|
|
266
267
|
),
|
|
267
|
-
children:
|
|
268
|
+
children: o
|
|
268
269
|
}
|
|
269
270
|
)
|
|
270
271
|
] }),
|
|
271
|
-
|
|
272
|
+
a && /* @__PURE__ */ e("p", { className: "mt-2 text-sm text-red-500", children: a })
|
|
272
273
|
] })
|
|
273
274
|
);
|
|
274
275
|
Y.displayName = "Checkbox";
|
|
275
|
-
const
|
|
276
|
-
({ className:
|
|
277
|
-
|
|
278
|
-
/* @__PURE__ */
|
|
276
|
+
const le = P(
|
|
277
|
+
({ className: n, type: o, error: a, label: l, ...r }, t) => /* @__PURE__ */ c("div", { className: "w-full", children: [
|
|
278
|
+
l && /* @__PURE__ */ e("label", { className: "block text-sm font-medium text-blackBG mb-2", children: l }),
|
|
279
|
+
/* @__PURE__ */ e(
|
|
279
280
|
"input",
|
|
280
281
|
{
|
|
281
|
-
type:
|
|
282
|
-
className:
|
|
282
|
+
type: o,
|
|
283
|
+
className: y(
|
|
283
284
|
"flex h-14 w-full rounded-2xl border-[1px] border-grayBlue bg-white px-[16px] py-[16px] text-base",
|
|
284
285
|
"placeholder:text-gray2 placeholder:opacity-60",
|
|
285
286
|
"transition-all duration-300 ease-in-out",
|
|
286
287
|
"hover:border-greenLight hover:shadow-[0_0_0_4px_rgba(22,163,74,0.1)]",
|
|
287
288
|
"focus:border-greenLight focus:outline-none focus:shadow-[0_0_0_4px_rgba(22,163,74,0.15)] focus:ring-0",
|
|
288
289
|
"disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-lightGray",
|
|
289
|
-
|
|
290
|
-
|
|
290
|
+
a && "border-red-500 hover:border-red-500 focus:border-red-500 focus:shadow-[0_0_0_4px_rgba(239,68,68,0.15)]",
|
|
291
|
+
n
|
|
291
292
|
),
|
|
292
|
-
ref:
|
|
293
|
-
...
|
|
293
|
+
ref: t,
|
|
294
|
+
...r
|
|
294
295
|
}
|
|
295
296
|
),
|
|
296
|
-
|
|
297
|
+
a && /* @__PURE__ */ e("p", { className: "mt-2 text-sm text-red-500", children: a })
|
|
297
298
|
] })
|
|
298
299
|
);
|
|
299
|
-
|
|
300
|
-
const
|
|
300
|
+
le.displayName = "Input";
|
|
301
|
+
const qt = () => /* @__PURE__ */ e(
|
|
301
302
|
"svg",
|
|
302
303
|
{
|
|
303
304
|
width: "20",
|
|
@@ -305,7 +306,7 @@ const Xt = () => /* @__PURE__ */ t(
|
|
|
305
306
|
viewBox: "0 0 20 20",
|
|
306
307
|
fill: "none",
|
|
307
308
|
xmlns: "http://www.w3.org/2000/svg",
|
|
308
|
-
children: /* @__PURE__ */
|
|
309
|
+
children: /* @__PURE__ */ e(
|
|
309
310
|
"path",
|
|
310
311
|
{
|
|
311
312
|
d: "M18.3327 9.16669V10.1667H19.3327V9.16669H18.3327ZM1.66602 9.16669H0.666016V10.1667H1.66602V9.16669ZM4.99935 4.16669V5.16669H14.9993V4.16669V3.16669H4.99935V4.16669ZM18.3327 7.50002H17.3327V14.1667H18.3327H19.3327V7.50002H18.3327ZM14.9993 17.5V16.5H4.99935V17.5V18.5H14.9993V17.5ZM1.66602 14.1667H2.66602V7.50002H1.66602H0.666016V14.1667H1.66602ZM4.99935 17.5V16.5C4.1854 16.5 3.67555 16.4979 3.30381 16.4479C2.96084 16.4018 2.88859 16.3321 2.86128 16.3048L2.15417 17.0119L1.44706 17.719C1.90791 18.1798 2.47257 18.3542 3.03731 18.4301C3.57329 18.5021 4.24194 18.5 4.99935 18.5V17.5ZM1.66602 14.1667H0.666016C0.666016 14.9241 0.663892 15.5927 0.735952 16.1287C0.81188 16.6935 0.986218 17.2581 1.44706 17.719L2.15417 17.0119L2.86128 16.3048C2.83397 16.2774 2.76423 16.2052 2.71812 15.8622C2.66814 15.4905 2.66602 14.9806 2.66602 14.1667H1.66602ZM18.3327 14.1667H17.3327C17.3327 14.9806 17.3306 15.4905 17.2806 15.8622C17.2345 16.2052 17.1647 16.2774 17.1374 16.3048L17.8445 17.0119L18.5516 17.719C19.0125 17.2581 19.1868 16.6935 19.2627 16.1287C19.3348 15.5927 19.3327 14.9241 19.3327 14.1667H18.3327ZM14.9993 17.5V18.5C15.7568 18.5 16.4254 18.5021 16.9614 18.4301C17.5261 18.3542 18.0908 18.1798 18.5516 17.719L17.8445 17.0119L17.1374 16.3048C17.1101 16.3321 17.0379 16.4018 16.6949 16.4479C16.3232 16.4979 15.8133 16.5 14.9993 16.5V17.5ZM14.9993 4.16669V5.16669C15.8133 5.16669 16.3232 5.16881 16.6949 5.21879C17.0379 5.2649 17.1101 5.33464 17.1374 5.36195L17.8445 4.65484L18.5516 3.94774C18.0908 3.48689 17.5261 3.31255 16.9614 3.23662C16.4254 3.16456 15.7568 3.16669 14.9993 3.16669V4.16669ZM18.3327 7.50002H19.3327C19.3327 6.74262 19.3348 6.07396 19.2627 5.53799C19.1868 4.97324 19.0125 4.40858 18.5516 3.94774L17.8445 4.65484L17.1374 5.36195C17.1647 5.38926 17.2345 5.46151 17.2806 5.80448C17.3306 6.17622 17.3327 6.68608 17.3327 7.50002H18.3327ZM4.99935 4.16669V3.16669C4.24194 3.16669 3.57329 3.16456 3.03732 3.23662C2.47257 3.31255 1.90791 3.48689 1.44706 3.94774L2.15417 4.65484L2.86128 5.36195C2.88859 5.33464 2.96084 5.2649 3.30381 5.21879C3.67555 5.16881 4.1854 5.16669 4.99935 5.16669V4.16669ZM1.66602 7.50002H2.66602C2.66602 6.68608 2.66814 6.17622 2.71812 5.80448C2.76423 5.46151 2.83397 5.38926 2.86128 5.36195L2.15417 4.65484L1.44706 3.94774C0.986218 4.40858 0.81188 4.97324 0.735952 5.53799C0.663892 6.07396 0.666016 6.74262 0.666016 7.50002H1.66602ZM18.3327 7.50002H17.3327V9.16669H18.3327H19.3327V7.50002H18.3327ZM18.3327 9.16669V8.16669H1.66602V9.16669V10.1667H18.3327V9.16669ZM1.66602 9.16669H2.66602V7.50002H1.66602H0.666016V9.16669H1.66602ZM5.83268 1.66669H4.83268V4.16669H5.83268H6.83268V1.66669H5.83268ZM14.166 1.66669H13.166V4.16669H14.166H15.166V1.66669H14.166ZM14.166 14.1667V15.1667H15.8327V14.1667V13.1667H14.166V14.1667Z",
|
|
@@ -313,132 +314,132 @@ const Xt = () => /* @__PURE__ */ t(
|
|
|
313
314
|
}
|
|
314
315
|
)
|
|
315
316
|
}
|
|
316
|
-
),
|
|
317
|
-
if (!
|
|
317
|
+
), Yt = (n) => {
|
|
318
|
+
if (!n)
|
|
318
319
|
return "";
|
|
319
|
-
const
|
|
320
|
-
return `${
|
|
321
|
-
},
|
|
322
|
-
if (!
|
|
320
|
+
const o = String(n.getDate()).padStart(2, "0"), a = String(n.getMonth() + 1).padStart(2, "0"), l = n.getFullYear();
|
|
321
|
+
return `${o}.${a}.${l}`;
|
|
322
|
+
}, Kt = (n) => {
|
|
323
|
+
if (!n)
|
|
323
324
|
return null;
|
|
324
|
-
const
|
|
325
|
-
if (
|
|
326
|
-
const
|
|
327
|
-
if (!isNaN(
|
|
328
|
-
const
|
|
329
|
-
if (
|
|
330
|
-
return
|
|
325
|
+
const o = n.split(".");
|
|
326
|
+
if (o.length === 3) {
|
|
327
|
+
const a = parseInt(o[0], 10), l = parseInt(o[1], 10) - 1, r = parseInt(o[2], 10);
|
|
328
|
+
if (!isNaN(a) && !isNaN(l) && !isNaN(r)) {
|
|
329
|
+
const t = new Date(r, l, a);
|
|
330
|
+
if (t.getDate() === a && t.getMonth() === l && t.getFullYear() === r)
|
|
331
|
+
return t;
|
|
331
332
|
}
|
|
332
333
|
}
|
|
333
334
|
return null;
|
|
334
|
-
},
|
|
335
|
+
}, Ut = (n, o) => new Date(o, n, 1).toLocaleDateString("ru-RU", { month: "long", year: "numeric" }), Qt = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], ie = P(
|
|
335
336
|
({
|
|
336
|
-
className:
|
|
337
|
-
error:
|
|
338
|
-
label:
|
|
339
|
-
value:
|
|
340
|
-
onChange:
|
|
341
|
-
placeholder:
|
|
342
|
-
...
|
|
343
|
-
},
|
|
344
|
-
const [
|
|
345
|
-
|
|
346
|
-
}),
|
|
337
|
+
className: n,
|
|
338
|
+
error: o,
|
|
339
|
+
label: a,
|
|
340
|
+
value: l,
|
|
341
|
+
onChange: r,
|
|
342
|
+
placeholder: t = "Дата обращения в Контакт-центр",
|
|
343
|
+
...f
|
|
344
|
+
}, p) => {
|
|
345
|
+
const [N, s] = T(""), [D, w] = T(!1), [d, k] = T((/* @__PURE__ */ new Date()).getMonth()), [h, b] = T((/* @__PURE__ */ new Date()).getFullYear()), [x, M] = T(null), S = l !== void 0, C = S ? l : N, { ref: B } = z(D, () => {
|
|
346
|
+
w(!1);
|
|
347
|
+
}), V = $(() => Kt(C), [C]);
|
|
347
348
|
ye(() => {
|
|
348
|
-
|
|
349
|
-
}, [
|
|
350
|
-
const
|
|
351
|
-
const
|
|
352
|
-
for (let
|
|
353
|
-
|
|
354
|
-
for (let
|
|
355
|
-
|
|
356
|
-
const H = 42 -
|
|
357
|
-
for (let
|
|
358
|
-
|
|
359
|
-
return
|
|
360
|
-
}, [
|
|
361
|
-
const
|
|
362
|
-
|
|
363
|
-
},
|
|
364
|
-
if (
|
|
349
|
+
V && (M(V), k(V.getMonth()), b(V.getFullYear()));
|
|
350
|
+
}, [V]);
|
|
351
|
+
const I = $(() => {
|
|
352
|
+
const g = new Date(h, d, 1), _ = new Date(h, d + 1, 0).getDate(), u = g.getDay(), L = [], W = new Date(h, d, 0).getDate();
|
|
353
|
+
for (let F = u - 1; F >= 0; F--)
|
|
354
|
+
L.push(W - F);
|
|
355
|
+
for (let F = 1; F <= _; F++)
|
|
356
|
+
L.push(F);
|
|
357
|
+
const H = 42 - L.length;
|
|
358
|
+
for (let F = 1; F <= H; F++)
|
|
359
|
+
L.push(F);
|
|
360
|
+
return L;
|
|
361
|
+
}, [d, h]), E = (g) => {
|
|
362
|
+
const i = g.target.value;
|
|
363
|
+
S || s(i), r == null || r(i);
|
|
364
|
+
}, j = (g, i, _) => {
|
|
365
|
+
if (g === null)
|
|
365
366
|
return;
|
|
366
|
-
let
|
|
367
|
-
|
|
368
|
-
const W = new Date(
|
|
369
|
-
|
|
370
|
-
},
|
|
371
|
-
|
|
372
|
-
},
|
|
373
|
-
|
|
374
|
-
},
|
|
375
|
-
if (!
|
|
367
|
+
let u = d, L = h;
|
|
368
|
+
i ? (u = u - 1, u < 0 && (u = 11, L = L - 1)) : _ && (u = u + 1, u > 11 && (u = 0, L = L + 1));
|
|
369
|
+
const W = new Date(L, u, g), H = Yt(W);
|
|
370
|
+
M(W), k(u), b(L), S || s(H), r == null || r(H), w(!1);
|
|
371
|
+
}, O = () => {
|
|
372
|
+
d === 0 ? (k(11), b(h - 1)) : k(d - 1);
|
|
373
|
+
}, m = () => {
|
|
374
|
+
d === 11 ? (k(0), b(h + 1)) : k(d + 1);
|
|
375
|
+
}, v = (g, i, _) => {
|
|
376
|
+
if (!x || g === null)
|
|
376
377
|
return !1;
|
|
377
|
-
let
|
|
378
|
-
return
|
|
378
|
+
let u = d, L = h;
|
|
379
|
+
return i ? (u = u - 1, u < 0 && (u = 11, L = L - 1)) : _ && (u = u + 1, u > 11 && (u = 0, L = L + 1)), x.getDate() === g && x.getMonth() === u && x.getFullYear() === L;
|
|
379
380
|
};
|
|
380
|
-
return /* @__PURE__ */
|
|
381
|
-
|
|
382
|
-
/* @__PURE__ */
|
|
383
|
-
/* @__PURE__ */
|
|
381
|
+
return /* @__PURE__ */ c("div", { className: "w-full", children: [
|
|
382
|
+
a && /* @__PURE__ */ e("label", { className: "block text-sm font-medium text-blackBG mb-2", children: a }),
|
|
383
|
+
/* @__PURE__ */ c("div", { className: "relative", children: [
|
|
384
|
+
/* @__PURE__ */ c(
|
|
384
385
|
"div",
|
|
385
386
|
{
|
|
386
|
-
className:
|
|
387
|
+
className: y(
|
|
387
388
|
"relative flex items-center h-14 w-full rounded-2xl border-[1px] border-grayBlue bg-white",
|
|
388
389
|
"transition-all duration-300 ease-in-out",
|
|
389
390
|
"hover:border-greenLight hover:shadow-[0_0_0_4px_rgba(22,163,74,0.1)]",
|
|
390
391
|
"focus-within:border-greenLight focus-within:shadow-[0_0_0_4px_rgba(22,163,74,0.15)]",
|
|
391
|
-
|
|
392
|
-
|
|
392
|
+
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)]",
|
|
393
|
+
n
|
|
393
394
|
),
|
|
394
395
|
children: [
|
|
395
|
-
/* @__PURE__ */
|
|
396
|
+
/* @__PURE__ */ e(
|
|
396
397
|
"button",
|
|
397
398
|
{
|
|
398
399
|
type: "button",
|
|
399
|
-
onClick: () =>
|
|
400
|
+
onClick: () => w(!D),
|
|
400
401
|
className: "absolute left-4 flex items-center justify-center cursor-pointer",
|
|
401
402
|
tabIndex: -1,
|
|
402
|
-
children: /* @__PURE__ */
|
|
403
|
+
children: /* @__PURE__ */ e(qt, {})
|
|
403
404
|
}
|
|
404
405
|
),
|
|
405
|
-
/* @__PURE__ */
|
|
406
|
+
/* @__PURE__ */ e(
|
|
406
407
|
"input",
|
|
407
408
|
{
|
|
408
409
|
type: "text",
|
|
409
410
|
inputMode: "none",
|
|
410
|
-
className:
|
|
411
|
+
className: y(
|
|
411
412
|
"flex h-full w-full rounded-2xl px-[16px] pl-[48px] py-[16px] text-base",
|
|
412
413
|
"placeholder:text-gray2 placeholder:opacity-60",
|
|
413
414
|
"bg-transparent border-none outline-none",
|
|
414
415
|
"disabled:cursor-not-allowed disabled:opacity-50"
|
|
415
416
|
),
|
|
416
|
-
ref:
|
|
417
|
-
value:
|
|
418
|
-
onChange:
|
|
419
|
-
placeholder:
|
|
420
|
-
onClick: () =>
|
|
417
|
+
ref: p,
|
|
418
|
+
value: C,
|
|
419
|
+
onChange: E,
|
|
420
|
+
placeholder: t,
|
|
421
|
+
onClick: () => w(!0),
|
|
421
422
|
readOnly: !0,
|
|
422
|
-
...
|
|
423
|
+
...f
|
|
423
424
|
}
|
|
424
425
|
)
|
|
425
426
|
]
|
|
426
427
|
}
|
|
427
428
|
),
|
|
428
|
-
|
|
429
|
+
D && /* @__PURE__ */ c(
|
|
429
430
|
"div",
|
|
430
431
|
{
|
|
431
|
-
ref:
|
|
432
|
+
ref: B,
|
|
432
433
|
className: "absolute top-[calc(100%+8px)] left-0 z-50 bg-white rounded-2xl border border-grayBlue shadow-lg p-4 min-w-[320px]",
|
|
433
434
|
children: [
|
|
434
|
-
/* @__PURE__ */
|
|
435
|
-
/* @__PURE__ */
|
|
435
|
+
/* @__PURE__ */ c("div", { className: "flex items-center justify-between mb-4", children: [
|
|
436
|
+
/* @__PURE__ */ e(
|
|
436
437
|
"button",
|
|
437
438
|
{
|
|
438
439
|
type: "button",
|
|
439
|
-
onClick:
|
|
440
|
+
onClick: O,
|
|
440
441
|
className: "p-2 hover:bg-grayBlue rounded-lg transition-colors",
|
|
441
|
-
children: /* @__PURE__ */
|
|
442
|
+
children: /* @__PURE__ */ e(
|
|
442
443
|
"svg",
|
|
443
444
|
{
|
|
444
445
|
width: "16",
|
|
@@ -446,7 +447,7 @@ const Xt = () => /* @__PURE__ */ t(
|
|
|
446
447
|
viewBox: "0 0 16 16",
|
|
447
448
|
fill: "none",
|
|
448
449
|
xmlns: "http://www.w3.org/2000/svg",
|
|
449
|
-
children: /* @__PURE__ */
|
|
450
|
+
children: /* @__PURE__ */ e(
|
|
450
451
|
"path",
|
|
451
452
|
{
|
|
452
453
|
d: "M10 12L6 8L10 4",
|
|
@@ -460,14 +461,14 @@ const Xt = () => /* @__PURE__ */ t(
|
|
|
460
461
|
)
|
|
461
462
|
}
|
|
462
463
|
),
|
|
463
|
-
/* @__PURE__ */
|
|
464
|
-
/* @__PURE__ */
|
|
464
|
+
/* @__PURE__ */ e("h3", { className: "text-base font-semibold text-blackBG", children: Ut(d, h) }),
|
|
465
|
+
/* @__PURE__ */ e(
|
|
465
466
|
"button",
|
|
466
467
|
{
|
|
467
468
|
type: "button",
|
|
468
|
-
onClick:
|
|
469
|
+
onClick: m,
|
|
469
470
|
className: "p-2 hover:bg-grayBlue rounded-lg transition-colors",
|
|
470
|
-
children: /* @__PURE__ */
|
|
471
|
+
children: /* @__PURE__ */ e(
|
|
471
472
|
"svg",
|
|
472
473
|
{
|
|
473
474
|
width: "16",
|
|
@@ -475,7 +476,7 @@ const Xt = () => /* @__PURE__ */ t(
|
|
|
475
476
|
viewBox: "0 0 16 16",
|
|
476
477
|
fill: "none",
|
|
477
478
|
xmlns: "http://www.w3.org/2000/svg",
|
|
478
|
-
children: /* @__PURE__ */
|
|
479
|
+
children: /* @__PURE__ */ e(
|
|
479
480
|
"path",
|
|
480
481
|
{
|
|
481
482
|
d: "M6 4L10 8L6 12",
|
|
@@ -490,90 +491,90 @@ const Xt = () => /* @__PURE__ */ t(
|
|
|
490
491
|
}
|
|
491
492
|
)
|
|
492
493
|
] }),
|
|
493
|
-
/* @__PURE__ */
|
|
494
|
+
/* @__PURE__ */ e("div", { className: "grid grid-cols-7 gap-1 mb-2", children: Qt.map((g) => /* @__PURE__ */ e(
|
|
494
495
|
"div",
|
|
495
496
|
{
|
|
496
497
|
className: "text-center text-xs font-medium text-grayBlue5 py-2",
|
|
497
|
-
children:
|
|
498
|
+
children: g
|
|
498
499
|
},
|
|
499
|
-
|
|
500
|
+
g
|
|
500
501
|
)) }),
|
|
501
|
-
/* @__PURE__ */
|
|
502
|
-
const
|
|
502
|
+
/* @__PURE__ */ e("div", { className: "grid grid-cols-7 gap-1", children: I.map((g, i) => {
|
|
503
|
+
const u = new Date(h, d, 1).getDay(), L = new Date(
|
|
503
504
|
h,
|
|
504
|
-
|
|
505
|
+
d + 1,
|
|
505
506
|
0
|
|
506
|
-
).getDate(), W =
|
|
507
|
-
|
|
507
|
+
).getDate(), W = i < u, H = i >= u + L, F = !W && !H, he = v(
|
|
508
|
+
g,
|
|
508
509
|
W,
|
|
509
510
|
H
|
|
510
511
|
);
|
|
511
|
-
return /* @__PURE__ */
|
|
512
|
+
return /* @__PURE__ */ e(
|
|
512
513
|
"button",
|
|
513
514
|
{
|
|
514
515
|
type: "button",
|
|
515
|
-
onClick: () =>
|
|
516
|
-
disabled:
|
|
517
|
-
className:
|
|
516
|
+
onClick: () => j(g, W, H),
|
|
517
|
+
disabled: g === null,
|
|
518
|
+
className: y(
|
|
518
519
|
"w-10 h-10 rounded-lg text-sm font-medium transition-colors",
|
|
519
520
|
"hover:bg-[#E8F4FD] focus:outline-none focus:bg-[#E8F4FD]",
|
|
520
|
-
|
|
521
|
+
F ? "text-blackBG" : "text-grayBlue5 opacity-50",
|
|
521
522
|
he && "bg-[#16A34A] text-white hover:bg-[#16A34A] focus:bg-[#16A34A]"
|
|
522
523
|
),
|
|
523
|
-
children:
|
|
524
|
+
children: g
|
|
524
525
|
},
|
|
525
|
-
|
|
526
|
+
i
|
|
526
527
|
);
|
|
527
528
|
}) })
|
|
528
529
|
]
|
|
529
530
|
}
|
|
530
531
|
)
|
|
531
532
|
] }),
|
|
532
|
-
|
|
533
|
+
o && /* @__PURE__ */ e("p", { className: "mt-2 text-sm text-red-500", children: o })
|
|
533
534
|
] });
|
|
534
535
|
}
|
|
535
536
|
);
|
|
536
|
-
|
|
537
|
-
const
|
|
537
|
+
ie.displayName = "DateInput";
|
|
538
|
+
const ce = P(
|
|
538
539
|
({
|
|
539
|
-
className:
|
|
540
|
-
isFormatted:
|
|
541
|
-
isReadable:
|
|
542
|
-
error:
|
|
543
|
-
label:
|
|
544
|
-
onChange:
|
|
545
|
-
value:
|
|
546
|
-
defaultValue:
|
|
547
|
-
...
|
|
548
|
-
},
|
|
549
|
-
const
|
|
550
|
-
te(
|
|
551
|
-
const
|
|
552
|
-
(
|
|
553
|
-
if (
|
|
540
|
+
className: n,
|
|
541
|
+
isFormatted: o,
|
|
542
|
+
isReadable: a,
|
|
543
|
+
error: l,
|
|
544
|
+
label: r,
|
|
545
|
+
onChange: t,
|
|
546
|
+
value: f,
|
|
547
|
+
defaultValue: p,
|
|
548
|
+
...N
|
|
549
|
+
}, s) => {
|
|
550
|
+
const D = we(null);
|
|
551
|
+
te(s, () => D.current);
|
|
552
|
+
const w = !!a || !!o, d = ke(
|
|
553
|
+
(b) => {
|
|
554
|
+
if (b == null || b === "")
|
|
554
555
|
return "";
|
|
555
|
-
const
|
|
556
|
-
return
|
|
556
|
+
const x = Array.isArray(b) ? b.join("").replace(/\D/g, "") : b.toString().replace(/\D/g, "");
|
|
557
|
+
return w ? x.replace(/\B(?=(\d{3})+(?!\d))/g, " ") : x;
|
|
557
558
|
},
|
|
558
|
-
[
|
|
559
|
+
[w]
|
|
559
560
|
), h = {
|
|
560
|
-
...
|
|
561
|
+
...N,
|
|
561
562
|
type: "text",
|
|
562
563
|
inputMode: "numeric",
|
|
563
|
-
onChange: (
|
|
564
|
-
const
|
|
565
|
-
if (
|
|
566
|
-
const
|
|
567
|
-
|
|
564
|
+
onChange: (b) => {
|
|
565
|
+
const x = b.target, M = x.value, S = M.replace(/\D/g, ""), C = x.selectionStart || 0, B = M.slice(0, C).replace(/\D/g, "").length, V = d(S);
|
|
566
|
+
if (x.value = V, t) {
|
|
567
|
+
const I = x.value;
|
|
568
|
+
x.value = S, t(b), x.value = I;
|
|
568
569
|
}
|
|
569
|
-
if (
|
|
570
|
-
let
|
|
571
|
-
for (;
|
|
572
|
-
/\d/.test(
|
|
573
|
-
|
|
570
|
+
if (w) {
|
|
571
|
+
let I = 0, E = 0;
|
|
572
|
+
for (; E < B && I < x.value.length; )
|
|
573
|
+
/\d/.test(x.value[I]) && E++, I++;
|
|
574
|
+
x.setSelectionRange(I, I);
|
|
574
575
|
}
|
|
575
576
|
},
|
|
576
|
-
className:
|
|
577
|
+
className: y(
|
|
577
578
|
"flex h-14 w-full rounded-2xl border-[1px] border-grayBlue bg-white px-[16px] py-[16px] text-base text-blackBG",
|
|
578
579
|
"placeholder:text-gray2 placeholder:opacity-60",
|
|
579
580
|
"transition-all duration-300 ease-in-out",
|
|
@@ -581,153 +582,153 @@ const ie = P(
|
|
|
581
582
|
"focus:border-greenLight focus:outline-none focus:ring-0 focus:shadow-[0_0_0_4px_rgba(22,163,74,0.15)]",
|
|
582
583
|
"disabled:cursor-not-allowed disabled:bg-lightGray disabled:opacity-50",
|
|
583
584
|
"[appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",
|
|
584
|
-
|
|
585
|
-
|
|
585
|
+
l && "border-red-500 hover:border-red-500 focus:border-red-500 focus:shadow-[0_0_0_4px_rgba(239,68,68,0.15)]",
|
|
586
|
+
n
|
|
586
587
|
)
|
|
587
588
|
};
|
|
588
|
-
return
|
|
589
|
-
|
|
590
|
-
/* @__PURE__ */
|
|
589
|
+
return f !== void 0 ? h.value = d(f) : p !== void 0 && (h.defaultValue = d(p)), /* @__PURE__ */ c("div", { className: "w-full", children: [
|
|
590
|
+
r && /* @__PURE__ */ e("label", { className: "mb-2 block text-sm font-medium text-blackBG", children: r }),
|
|
591
|
+
/* @__PURE__ */ e("div", { className: "group relative", children: /* @__PURE__ */ e(
|
|
591
592
|
"input",
|
|
592
593
|
{
|
|
593
594
|
...h,
|
|
594
|
-
ref:
|
|
595
|
+
ref: D
|
|
595
596
|
}
|
|
596
597
|
) }),
|
|
597
|
-
|
|
598
|
+
l && /* @__PURE__ */ e("p", { className: "mt-2 text-sm text-red-500", children: l })
|
|
598
599
|
] });
|
|
599
600
|
}
|
|
600
601
|
);
|
|
601
|
-
|
|
602
|
-
const
|
|
602
|
+
ce.displayName = "NumberField";
|
|
603
|
+
const Jt = {
|
|
603
604
|
96: { name: "Кыргызстан", short: "KG", mask: "+996", length: 9 }
|
|
604
|
-
},
|
|
605
|
-
const
|
|
606
|
-
return String.fromCodePoint(...
|
|
607
|
-
}, K = () => Object.entries(
|
|
608
|
-
id:
|
|
609
|
-
name:
|
|
610
|
-
short:
|
|
611
|
-
mask:
|
|
612
|
-
dialCode:
|
|
613
|
-
length:
|
|
614
|
-
flag:
|
|
615
|
-
})),
|
|
616
|
-
const
|
|
617
|
-
let
|
|
618
|
-
|
|
619
|
-
const
|
|
620
|
-
if (
|
|
621
|
-
return
|
|
622
|
-
let
|
|
623
|
-
return
|
|
624
|
-
},
|
|
625
|
-
if (!
|
|
605
|
+
}, er = (n) => {
|
|
606
|
+
const o = n.toUpperCase().split("").map((a) => 127397 + a.charCodeAt(0));
|
|
607
|
+
return String.fromCodePoint(...o);
|
|
608
|
+
}, K = () => Object.entries(Jt).map(([n, o]) => ({
|
|
609
|
+
id: n,
|
|
610
|
+
name: o.name,
|
|
611
|
+
short: o.short,
|
|
612
|
+
mask: o.mask,
|
|
613
|
+
dialCode: o.mask.replace("+", ""),
|
|
614
|
+
length: o.length,
|
|
615
|
+
flag: er(o.short)
|
|
616
|
+
})), Z = (n) => K().find((a) => a.id === n), J = (n, o) => {
|
|
617
|
+
const a = o.dialCode, l = o.length;
|
|
618
|
+
let r = n;
|
|
619
|
+
n.startsWith(a) && (r = n.slice(a.length));
|
|
620
|
+
const t = r.slice(0, l);
|
|
621
|
+
if (t.length === 0)
|
|
622
|
+
return o.mask;
|
|
623
|
+
let f = t;
|
|
624
|
+
return t.length > 6 ? f = `${t.slice(0, 3)} ${t.slice(3, 6)} ${t.slice(6)}` : t.length > 3 && (f = `${t.slice(0, 3)} ${t.slice(3)}`), `${o.mask} ${f}`;
|
|
625
|
+
}, tr = (n, o) => {
|
|
626
|
+
if (!n)
|
|
626
627
|
return null;
|
|
627
|
-
const
|
|
628
|
-
if (
|
|
629
|
-
for (const
|
|
630
|
-
if (
|
|
631
|
-
return
|
|
628
|
+
const a = n.replace(/\D/g, ""), l = K();
|
|
629
|
+
if (n.startsWith("+")) {
|
|
630
|
+
for (const r of l)
|
|
631
|
+
if (n.startsWith(r.mask))
|
|
632
|
+
return r;
|
|
632
633
|
}
|
|
633
|
-
for (const
|
|
634
|
-
if (
|
|
635
|
-
return
|
|
636
|
-
return
|
|
637
|
-
},
|
|
634
|
+
for (const r of l)
|
|
635
|
+
if (a.startsWith(r.dialCode))
|
|
636
|
+
return r;
|
|
637
|
+
return a.startsWith("0") && Z("96") || null;
|
|
638
|
+
}, de = P(
|
|
638
639
|
({
|
|
639
|
-
className:
|
|
640
|
-
error:
|
|
641
|
-
label:
|
|
642
|
-
value:
|
|
643
|
-
onChange:
|
|
644
|
-
defaultCountry:
|
|
645
|
-
...
|
|
646
|
-
},
|
|
647
|
-
const [
|
|
648
|
-
|
|
649
|
-
}),
|
|
640
|
+
className: n,
|
|
641
|
+
error: o,
|
|
642
|
+
label: a,
|
|
643
|
+
value: l,
|
|
644
|
+
onChange: r,
|
|
645
|
+
defaultCountry: t = "996",
|
|
646
|
+
...f
|
|
647
|
+
}, p) => {
|
|
648
|
+
const [N, s] = T(""), [D, w] = T(t), [d, k] = T(!1), [h, b] = T(""), x = l !== void 0, M = x ? l : N, { ref: S } = z(d, () => {
|
|
649
|
+
k(!1), b("");
|
|
650
|
+
}), C = $(() => K(), []), B = Z(D) || C[0], V = $(() => {
|
|
650
651
|
if (!h)
|
|
651
|
-
return
|
|
652
|
-
const
|
|
653
|
-
return
|
|
654
|
-
(
|
|
652
|
+
return C;
|
|
653
|
+
const m = h.toLowerCase();
|
|
654
|
+
return C.filter(
|
|
655
|
+
(v) => v.name.toLowerCase().includes(m) || v.mask.toLowerCase().includes(m) || v.short.toLowerCase().includes(m)
|
|
655
656
|
);
|
|
656
|
-
}, [
|
|
657
|
-
if (!
|
|
657
|
+
}, [C, h]), E = ((m) => {
|
|
658
|
+
if (!m)
|
|
658
659
|
return "";
|
|
659
|
-
const
|
|
660
|
-
let
|
|
661
|
-
(
|
|
662
|
-
const
|
|
663
|
-
return
|
|
664
|
-
})(
|
|
665
|
-
|
|
666
|
-
const
|
|
667
|
-
if (!
|
|
660
|
+
const v = m.replace(/\D/g, "");
|
|
661
|
+
let g = v;
|
|
662
|
+
(v.startsWith(B.dialCode) || m.startsWith(B.mask)) && (g = v.slice(B.dialCode.length));
|
|
663
|
+
const i = g.slice(0, B.length);
|
|
664
|
+
return i.length === 0 ? "" : i.length <= 3 ? i : i.length <= 6 ? `${i.slice(0, 3)} ${i.slice(3)}` : `${i.slice(0, 3)} ${i.slice(3, 6)} ${i.slice(6)}`;
|
|
665
|
+
})(M), j = (m) => {
|
|
666
|
+
w(m), k(!1), b("");
|
|
667
|
+
const v = M.replace(/\D/g, ""), g = Z(m);
|
|
668
|
+
if (!g)
|
|
668
669
|
return;
|
|
669
|
-
let
|
|
670
|
-
|
|
671
|
-
const
|
|
672
|
-
|
|
673
|
-
},
|
|
674
|
-
const
|
|
675
|
-
|
|
670
|
+
let i = v;
|
|
671
|
+
v.startsWith(B.dialCode) && (i = v.slice(B.dialCode.length));
|
|
672
|
+
const _ = J(i, g);
|
|
673
|
+
x || s(_), r == null || r(_);
|
|
674
|
+
}, O = (m) => {
|
|
675
|
+
const v = m.target.value, g = v.replace(/\D/g, ""), i = tr(
|
|
676
|
+
v
|
|
676
677
|
);
|
|
677
|
-
|
|
678
|
-
const
|
|
679
|
-
|
|
678
|
+
i && i.id !== D && w(i.id);
|
|
679
|
+
const _ = i || Z(D) || B, u = J(g, _);
|
|
680
|
+
x || s(u), r == null || r(u);
|
|
680
681
|
};
|
|
681
|
-
return /* @__PURE__ */
|
|
682
|
-
|
|
683
|
-
/* @__PURE__ */
|
|
682
|
+
return /* @__PURE__ */ c("div", { className: "w-full", children: [
|
|
683
|
+
a && /* @__PURE__ */ e("label", { className: "block text-sm font-medium text-blackBG mb-2", children: a }),
|
|
684
|
+
/* @__PURE__ */ c(
|
|
684
685
|
"div",
|
|
685
686
|
{
|
|
686
|
-
className:
|
|
687
|
+
className: y(
|
|
687
688
|
"relative flex gap-2 h-14 flex-1 rounded-2xl border-[1px] border-grayBlue bg-white text-base",
|
|
688
689
|
"placeholder:text-gray2 placeholder:opacity-60",
|
|
689
690
|
"transition-all duration-300 ease-in-out",
|
|
690
691
|
"hover:border-greenLight hover:shadow-[0_0_0_4px_rgba(22,163,74,0.1)]",
|
|
691
692
|
"focus:border-greenLight focus:outline-none focus:shadow-[0_0_0_4px_rgba(22,163,74,0.15)] focus:ring-0",
|
|
692
693
|
"disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-lightGray",
|
|
693
|
-
|
|
694
|
-
|
|
694
|
+
o && "border-red-500 hover:border-red-500 focus:border-red-500 focus:shadow-[0_0_0_4px_rgba(239,68,68,0.15)]",
|
|
695
|
+
n
|
|
695
696
|
),
|
|
696
697
|
children: [
|
|
697
|
-
/* @__PURE__ */
|
|
698
|
+
/* @__PURE__ */ c(
|
|
698
699
|
"div",
|
|
699
700
|
{
|
|
700
|
-
ref:
|
|
701
|
+
ref: S,
|
|
701
702
|
className: "relative",
|
|
702
703
|
children: [
|
|
703
|
-
/* @__PURE__ */
|
|
704
|
+
/* @__PURE__ */ c(
|
|
704
705
|
"button",
|
|
705
706
|
{
|
|
706
707
|
type: "button",
|
|
707
|
-
onClick: () =>
|
|
708
|
-
className:
|
|
708
|
+
onClick: () => k(!d),
|
|
709
|
+
className: y(
|
|
709
710
|
"flex h-14 w-[120px] rounded-2xl px-3 py-2 items-center justify-center cursor-pointer shrink-0",
|
|
710
711
|
"transition-all duration-300 ease-in-out",
|
|
711
|
-
|
|
712
|
-
|
|
712
|
+
o && "border-red-500 hover:border-red-500 focus:border-red-500",
|
|
713
|
+
d && "border-greenLight"
|
|
713
714
|
),
|
|
714
715
|
children: [
|
|
715
|
-
/* @__PURE__ */
|
|
716
|
-
|
|
716
|
+
/* @__PURE__ */ c("span", { className: "text-base font-medium whitespace-nowrap", children: [
|
|
717
|
+
B.flag,
|
|
717
718
|
" ",
|
|
718
|
-
|
|
719
|
+
B.mask
|
|
719
720
|
] }),
|
|
720
|
-
/* @__PURE__ */
|
|
721
|
+
/* @__PURE__ */ e(
|
|
721
722
|
"svg",
|
|
722
723
|
{
|
|
723
|
-
className:
|
|
724
|
+
className: y(
|
|
724
725
|
"w-4 h-4 ml-1 text-grayBlue5 transition-transform duration-200 shrink-0",
|
|
725
|
-
|
|
726
|
+
d && "rotate-180"
|
|
726
727
|
),
|
|
727
728
|
fill: "none",
|
|
728
729
|
stroke: "currentColor",
|
|
729
730
|
viewBox: "0 0 24 24",
|
|
730
|
-
children: /* @__PURE__ */
|
|
731
|
+
children: /* @__PURE__ */ e(
|
|
731
732
|
"path",
|
|
732
733
|
{
|
|
733
734
|
strokeLinecap: "round",
|
|
@@ -741,135 +742,135 @@ const Qt = {
|
|
|
741
742
|
]
|
|
742
743
|
}
|
|
743
744
|
),
|
|
744
|
-
|
|
745
|
-
/* @__PURE__ */
|
|
745
|
+
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: [
|
|
746
|
+
/* @__PURE__ */ e("div", { className: "p-3 border-b border-grayBlue", children: /* @__PURE__ */ e(
|
|
746
747
|
"input",
|
|
747
748
|
{
|
|
748
749
|
type: "text",
|
|
749
750
|
value: h,
|
|
750
|
-
onChange: (
|
|
751
|
+
onChange: (m) => b(m.target.value),
|
|
751
752
|
placeholder: "Поиск страны...",
|
|
752
|
-
className:
|
|
753
|
+
className: y(
|
|
753
754
|
"w-full px-3 py-2 rounded-xl border-[1px] border-grayBlue text-sm",
|
|
754
755
|
"focus:outline-none focus:border-greenLight"
|
|
755
756
|
),
|
|
756
|
-
onClick: (
|
|
757
|
+
onClick: (m) => m.stopPropagation()
|
|
757
758
|
}
|
|
758
759
|
) }),
|
|
759
|
-
/* @__PURE__ */
|
|
760
|
+
/* @__PURE__ */ e("div", { className: "overflow-y-auto max-h-[340px]", children: V.length > 0 ? V.map((m) => /* @__PURE__ */ e(
|
|
760
761
|
"button",
|
|
761
762
|
{
|
|
762
763
|
type: "button",
|
|
763
|
-
onClick: () =>
|
|
764
|
-
className:
|
|
764
|
+
onClick: () => j(m.id),
|
|
765
|
+
className: y(
|
|
765
766
|
"w-full px-4 py-3 text-left cursor-pointer text-base text-blackBG transition-colors",
|
|
766
767
|
"hover:bg-[#E8F4FD] focus:bg-[#E8F4FD] focus:outline-none",
|
|
767
|
-
|
|
768
|
+
D === m.id && "bg-[#E8F4FD]",
|
|
768
769
|
"first:rounded-t-2xl"
|
|
769
770
|
),
|
|
770
|
-
children: /* @__PURE__ */
|
|
771
|
-
/* @__PURE__ */
|
|
772
|
-
/* @__PURE__ */
|
|
773
|
-
/* @__PURE__ */
|
|
771
|
+
children: /* @__PURE__ */ c("span", { className: "flex items-center gap-2", children: [
|
|
772
|
+
/* @__PURE__ */ e("span", { className: "text-lg", children: m.flag }),
|
|
773
|
+
/* @__PURE__ */ e("span", { className: "font-medium", children: m.mask }),
|
|
774
|
+
/* @__PURE__ */ e("span", { className: "text-sm text-grayBlue5", children: m.name })
|
|
774
775
|
] })
|
|
775
776
|
},
|
|
776
|
-
|
|
777
|
-
)) : /* @__PURE__ */
|
|
777
|
+
m.id
|
|
778
|
+
)) : /* @__PURE__ */ e("div", { className: "px-4 py-3 text-center text-grayBlue5", children: "Страны не найдены" }) })
|
|
778
779
|
] })
|
|
779
780
|
]
|
|
780
781
|
}
|
|
781
782
|
),
|
|
782
|
-
/* @__PURE__ */
|
|
783
|
+
/* @__PURE__ */ e(
|
|
783
784
|
"input",
|
|
784
785
|
{
|
|
785
786
|
type: "tel",
|
|
786
787
|
inputMode: "tel",
|
|
787
|
-
className:
|
|
788
|
+
className: y(
|
|
788
789
|
"flex h-full flex-1 rounded-2xl px-[16px] py-[16px] text-base",
|
|
789
790
|
"placeholder:text-gray2 placeholder:opacity-60",
|
|
790
791
|
"transition-all duration-300 ease-in-out",
|
|
791
792
|
"hover:border-none hover:shadow-none",
|
|
792
793
|
"focus:border-none focus:outline-none focus:shadow-none focus:ring-0",
|
|
793
794
|
"disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-lightGray",
|
|
794
|
-
|
|
795
|
-
|
|
795
|
+
o && "border-red-500 hover:border-red-500 focus:border-red-500 focus:shadow-[0_0_0_4px_rgba(239,68,68,0.15)]",
|
|
796
|
+
n
|
|
796
797
|
),
|
|
797
|
-
ref:
|
|
798
|
-
value:
|
|
799
|
-
onChange:
|
|
798
|
+
ref: p,
|
|
799
|
+
value: E,
|
|
800
|
+
onChange: O,
|
|
800
801
|
placeholder: "XXX XXX XXX",
|
|
801
|
-
...
|
|
802
|
+
...f
|
|
802
803
|
}
|
|
803
804
|
)
|
|
804
805
|
]
|
|
805
806
|
}
|
|
806
807
|
),
|
|
807
|
-
|
|
808
|
+
o && /* @__PURE__ */ e("p", { className: "mt-2 text-sm text-red-500", children: o })
|
|
808
809
|
] });
|
|
809
810
|
}
|
|
810
811
|
);
|
|
811
|
-
|
|
812
|
-
const
|
|
812
|
+
de.displayName = "PhoneInput";
|
|
813
|
+
const pe = P(
|
|
813
814
|
({
|
|
814
|
-
label:
|
|
815
|
-
options:
|
|
816
|
-
value:
|
|
817
|
-
name:
|
|
818
|
-
onChange:
|
|
819
|
-
error:
|
|
820
|
-
className:
|
|
821
|
-
direction:
|
|
822
|
-
},
|
|
815
|
+
label: n,
|
|
816
|
+
options: o = [],
|
|
817
|
+
value: a = [],
|
|
818
|
+
name: l,
|
|
819
|
+
onChange: r,
|
|
820
|
+
error: t,
|
|
821
|
+
className: f,
|
|
822
|
+
direction: p = "column"
|
|
823
|
+
}, N) => /* @__PURE__ */ c(
|
|
823
824
|
"div",
|
|
824
825
|
{
|
|
825
|
-
ref:
|
|
826
|
-
className:
|
|
826
|
+
ref: N,
|
|
827
|
+
className: y("flex flex-col gap-2", f),
|
|
827
828
|
children: [
|
|
828
|
-
|
|
829
|
-
/* @__PURE__ */
|
|
829
|
+
n && /* @__PURE__ */ e("label", { className: "text-sm font-medium text-blackBG mb-1", children: n }),
|
|
830
|
+
/* @__PURE__ */ e(
|
|
830
831
|
"div",
|
|
831
832
|
{
|
|
832
|
-
className:
|
|
833
|
+
className: y(
|
|
833
834
|
"flex gap-4",
|
|
834
|
-
|
|
835
|
+
p === "column" ? "flex-col" : "flex-row flex-wrap"
|
|
835
836
|
),
|
|
836
|
-
children:
|
|
837
|
-
|
|
837
|
+
children: o == null ? void 0 : o.map((s) => /* @__PURE__ */ e(
|
|
838
|
+
me,
|
|
838
839
|
{
|
|
839
|
-
name:
|
|
840
|
-
label:
|
|
841
|
-
value:
|
|
842
|
-
checked:
|
|
843
|
-
onChange: () =>
|
|
844
|
-
error:
|
|
840
|
+
name: l,
|
|
841
|
+
label: s == null ? void 0 : s.label,
|
|
842
|
+
value: s == null ? void 0 : s.value,
|
|
843
|
+
checked: a === (s == null ? void 0 : s.value),
|
|
844
|
+
onChange: () => r == null ? void 0 : r(s == null ? void 0 : s.value),
|
|
845
|
+
error: t && !a ? t : void 0
|
|
845
846
|
},
|
|
846
|
-
|
|
847
|
+
s == null ? void 0 : s.value
|
|
847
848
|
))
|
|
848
849
|
}
|
|
849
850
|
),
|
|
850
|
-
|
|
851
|
+
t && /* @__PURE__ */ e("p", { className: "mt-1 text-sm text-red-500", children: t })
|
|
851
852
|
]
|
|
852
853
|
}
|
|
853
854
|
)
|
|
854
855
|
);
|
|
855
|
-
|
|
856
|
-
const
|
|
857
|
-
({ className:
|
|
858
|
-
/* @__PURE__ */
|
|
859
|
-
/* @__PURE__ */
|
|
860
|
-
/* @__PURE__ */
|
|
856
|
+
pe.displayName = "RadioGroup";
|
|
857
|
+
const me = P(
|
|
858
|
+
({ className: n, label: o, error: a, ...l }, r) => /* @__PURE__ */ c("div", { className: "w-full", children: [
|
|
859
|
+
/* @__PURE__ */ c("label", { className: "flex items-start gap-3 cursor-pointer group", children: [
|
|
860
|
+
/* @__PURE__ */ c("div", { className: "relative flex items-center justify-center mt-0.5", children: [
|
|
861
|
+
/* @__PURE__ */ e(
|
|
861
862
|
"input",
|
|
862
863
|
{
|
|
863
864
|
type: "radio",
|
|
864
865
|
className: "peer sr-only",
|
|
865
|
-
ref:
|
|
866
|
-
...
|
|
866
|
+
ref: r,
|
|
867
|
+
...l
|
|
867
868
|
}
|
|
868
869
|
),
|
|
869
|
-
/* @__PURE__ */
|
|
870
|
+
/* @__PURE__ */ e(
|
|
870
871
|
"div",
|
|
871
872
|
{
|
|
872
|
-
className:
|
|
873
|
+
className: y(
|
|
873
874
|
"relative flex items-center justify-center w-5 h-5 rounded-full border-2 transition-all duration-200",
|
|
874
875
|
"border-grayBlue5 bg-white",
|
|
875
876
|
"peer-checked:bg-white peer-checked:border-greenLight",
|
|
@@ -880,103 +881,103 @@ const pe = P(
|
|
|
880
881
|
"after:w-2.5 after:h-2.5 after:rounded-full after:bg-greenLight",
|
|
881
882
|
"after:top-1/2 after:left-1/2 after:-translate-x-1/2 after:-translate-y-1/2",
|
|
882
883
|
"peer-checked:after:opacity-100",
|
|
883
|
-
|
|
884
|
-
|
|
884
|
+
a && "border-red-500",
|
|
885
|
+
n
|
|
885
886
|
)
|
|
886
887
|
}
|
|
887
888
|
)
|
|
888
889
|
] }),
|
|
889
|
-
|
|
890
|
+
o && /* @__PURE__ */ e(
|
|
890
891
|
"span",
|
|
891
892
|
{
|
|
892
|
-
className:
|
|
893
|
+
className: y(
|
|
893
894
|
"text-sm leading-5 text-graySoft select-none",
|
|
894
895
|
"group-hover:text-blackBG transition-colors duration-200",
|
|
895
|
-
|
|
896
|
+
a && "text-red-500"
|
|
896
897
|
),
|
|
897
|
-
children:
|
|
898
|
+
children: o
|
|
898
899
|
}
|
|
899
900
|
)
|
|
900
901
|
] }),
|
|
901
|
-
|
|
902
|
+
a && /* @__PURE__ */ e("p", { className: "mt-2 text-sm text-red-500", children: a })
|
|
902
903
|
] })
|
|
903
904
|
);
|
|
904
|
-
|
|
905
|
-
const
|
|
905
|
+
me.displayName = "Radio";
|
|
906
|
+
const ue = P(
|
|
906
907
|
({
|
|
907
|
-
className:
|
|
908
|
-
error:
|
|
909
|
-
label:
|
|
910
|
-
options:
|
|
911
|
-
placeholder:
|
|
912
|
-
value:
|
|
913
|
-
onChange:
|
|
914
|
-
onBlur:
|
|
915
|
-
name:
|
|
916
|
-
disabled:
|
|
917
|
-
...
|
|
918
|
-
},
|
|
908
|
+
className: n,
|
|
909
|
+
error: o,
|
|
910
|
+
label: a,
|
|
911
|
+
options: l = [],
|
|
912
|
+
placeholder: r = "Выберите категорию",
|
|
913
|
+
value: t,
|
|
914
|
+
onChange: f,
|
|
915
|
+
onBlur: p,
|
|
916
|
+
name: N,
|
|
917
|
+
disabled: s,
|
|
918
|
+
...D
|
|
919
|
+
}, w) => {
|
|
919
920
|
const {
|
|
920
|
-
ref:
|
|
921
|
-
isShow:
|
|
921
|
+
ref: d,
|
|
922
|
+
isShow: k,
|
|
922
923
|
setIsShow: h
|
|
923
|
-
} =
|
|
924
|
-
te(
|
|
925
|
-
const
|
|
926
|
-
|
|
927
|
-
},
|
|
928
|
-
|
|
924
|
+
} = z(!1);
|
|
925
|
+
te(w, () => d.current);
|
|
926
|
+
const b = l.find((C) => C.value === t), x = () => {
|
|
927
|
+
s || h(!k);
|
|
928
|
+
}, M = (C) => {
|
|
929
|
+
f && f({
|
|
929
930
|
target: {
|
|
930
|
-
name:
|
|
931
|
-
value:
|
|
931
|
+
name: N,
|
|
932
|
+
value: C.value
|
|
932
933
|
}
|
|
933
934
|
}), h(!1);
|
|
934
|
-
},
|
|
935
|
-
|
|
935
|
+
}, S = (C) => {
|
|
936
|
+
p && p({
|
|
936
937
|
target: {
|
|
937
|
-
name:
|
|
938
|
-
value:
|
|
938
|
+
name: N,
|
|
939
|
+
value: t
|
|
939
940
|
}
|
|
940
941
|
});
|
|
941
942
|
};
|
|
942
|
-
return /* @__PURE__ */
|
|
943
|
+
return /* @__PURE__ */ c(
|
|
943
944
|
"div",
|
|
944
945
|
{
|
|
945
|
-
className:
|
|
946
|
-
ref:
|
|
947
|
-
onBlur:
|
|
948
|
-
...
|
|
946
|
+
className: y("w-full", n),
|
|
947
|
+
ref: d,
|
|
948
|
+
onBlur: S,
|
|
949
|
+
...D,
|
|
949
950
|
children: [
|
|
950
|
-
|
|
951
|
-
/* @__PURE__ */
|
|
952
|
-
/* @__PURE__ */
|
|
951
|
+
a && /* @__PURE__ */ e("label", { className: "mb-2 block text-sm font-medium text-blackBG", children: a }),
|
|
952
|
+
/* @__PURE__ */ c("div", { className: "relative", children: [
|
|
953
|
+
/* @__PURE__ */ c(
|
|
953
954
|
"button",
|
|
954
955
|
{
|
|
955
956
|
type: "button",
|
|
956
|
-
onClick:
|
|
957
|
-
disabled:
|
|
958
|
-
className:
|
|
957
|
+
onClick: x,
|
|
958
|
+
disabled: s,
|
|
959
|
+
className: y(
|
|
959
960
|
"flex h-14 w-full items-center justify-between rounded-2xl border-[1px] border-grayBlue bg-white px-[20px] text-base text-blackBG",
|
|
960
961
|
"transition-all duration-300 ease-in-out",
|
|
961
962
|
"hover:border-greenLight hover:shadow-[0_0_0_4px_rgba(22,163,74,0.1)]",
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
!
|
|
963
|
+
k && "border-greenLight shadow-[0_0_0_4px_rgba(22,163,74,0.15)] ring-0 outline-none",
|
|
964
|
+
s && "cursor-not-allowed bg-lightGray opacity-50",
|
|
965
|
+
o && "border-red-500 hover:border-red-500 focus:border-red-500 focus:shadow-[0_0_0_4px_rgba(239,68,68,0.15)]",
|
|
966
|
+
!b && "text-gray2 opacity-60"
|
|
966
967
|
),
|
|
967
968
|
children: [
|
|
968
|
-
/* @__PURE__ */
|
|
969
|
-
/* @__PURE__ */
|
|
969
|
+
/* @__PURE__ */ e("span", { className: "truncate", children: b ? b.label : r }),
|
|
970
|
+
/* @__PURE__ */ e(
|
|
970
971
|
"svg",
|
|
971
972
|
{
|
|
972
|
-
className:
|
|
973
|
+
className: y(
|
|
973
974
|
"ml-2 h-5 w-5 text-gray2 transition-transform duration-300",
|
|
974
|
-
|
|
975
|
+
k && "rotate-180"
|
|
975
976
|
),
|
|
976
977
|
fill: "none",
|
|
977
978
|
stroke: "currentColor",
|
|
978
979
|
viewBox: "0 0 24 24",
|
|
979
|
-
children: /* @__PURE__ */
|
|
980
|
+
children: /* @__PURE__ */ e(
|
|
980
981
|
"path",
|
|
981
982
|
{
|
|
982
983
|
strokeLinecap: "round",
|
|
@@ -990,43 +991,43 @@ const me = P(
|
|
|
990
991
|
]
|
|
991
992
|
}
|
|
992
993
|
),
|
|
993
|
-
|
|
994
|
+
k && /* @__PURE__ */ e(
|
|
994
995
|
"div",
|
|
995
996
|
{
|
|
996
|
-
className:
|
|
997
|
+
className: y(
|
|
997
998
|
"absolute left-0 z-[100] mt-2 w-full overflow-hidden rounded-2xl border-[1px] border-grayBlue bg-white shadow-xl",
|
|
998
999
|
"transition-all duration-200 ease-in-out"
|
|
999
1000
|
),
|
|
1000
|
-
children: /* @__PURE__ */
|
|
1001
|
+
children: /* @__PURE__ */ e("div", { className: "max-h-[280px] overflow-y-auto py-2", children: l.length > 0 ? l.map((C) => /* @__PURE__ */ e(
|
|
1001
1002
|
"button",
|
|
1002
1003
|
{
|
|
1003
1004
|
type: "button",
|
|
1004
|
-
onClick: () =>
|
|
1005
|
-
className:
|
|
1005
|
+
onClick: () => M(C),
|
|
1006
|
+
className: y(
|
|
1006
1007
|
"flex w-full items-center px-5 py-3 text-left text-base transition-colors",
|
|
1007
1008
|
"hover:bg-green-50 active:bg-green-100",
|
|
1008
|
-
|
|
1009
|
+
C.value === t && "bg-green-50 font-medium text-greenLight",
|
|
1009
1010
|
// Мобильные отступы чуть больше для удобства тапа
|
|
1010
1011
|
"max-tablet:py-4"
|
|
1011
1012
|
),
|
|
1012
|
-
children:
|
|
1013
|
+
children: C.label
|
|
1013
1014
|
},
|
|
1014
|
-
|
|
1015
|
-
)) : /* @__PURE__ */
|
|
1015
|
+
C.value
|
|
1016
|
+
)) : /* @__PURE__ */ e("div", { className: "px-5 py-3 text-sm text-gray2", children: "Нет данных" }) })
|
|
1016
1017
|
}
|
|
1017
1018
|
)
|
|
1018
1019
|
] }),
|
|
1019
|
-
|
|
1020
|
+
o && /* @__PURE__ */ e("p", { className: "mt-2 text-sm text-red-500", children: o })
|
|
1020
1021
|
]
|
|
1021
1022
|
}
|
|
1022
1023
|
);
|
|
1023
1024
|
}
|
|
1024
1025
|
);
|
|
1025
|
-
|
|
1026
|
-
const
|
|
1027
|
-
TitleBlock:
|
|
1028
|
-
WarningCard:
|
|
1029
|
-
},
|
|
1026
|
+
ue.displayName = "Select";
|
|
1027
|
+
const rr = {
|
|
1028
|
+
TitleBlock: ae,
|
|
1029
|
+
WarningCard: q
|
|
1030
|
+
}, or = [
|
|
1030
1031
|
{
|
|
1031
1032
|
label: "TitleBlock",
|
|
1032
1033
|
value: "TitleBlock"
|
|
@@ -1035,118 +1036,128 @@ const er = {
|
|
|
1035
1036
|
label: "WarningCard",
|
|
1036
1037
|
value: "WarningCard"
|
|
1037
1038
|
}
|
|
1038
|
-
],
|
|
1039
|
-
text:
|
|
1040
|
-
number:
|
|
1041
|
-
phone:
|
|
1042
|
-
select:
|
|
1043
|
-
date:
|
|
1044
|
-
radio:
|
|
1045
|
-
checkbox:
|
|
1046
|
-
file:
|
|
1047
|
-
},
|
|
1048
|
-
register:
|
|
1049
|
-
errors:
|
|
1050
|
-
control:
|
|
1051
|
-
}) =>
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
if (
|
|
1056
|
-
|
|
1057
|
-
|
|
1039
|
+
], ar = {
|
|
1040
|
+
text: le,
|
|
1041
|
+
number: ce,
|
|
1042
|
+
phone: de,
|
|
1043
|
+
select: ue,
|
|
1044
|
+
date: ie,
|
|
1045
|
+
radio: pe,
|
|
1046
|
+
checkbox: se,
|
|
1047
|
+
file: Qe
|
|
1048
|
+
}, nr = (n, {
|
|
1049
|
+
register: o,
|
|
1050
|
+
errors: a,
|
|
1051
|
+
control: l
|
|
1052
|
+
}) => {
|
|
1053
|
+
const { t: r } = oe();
|
|
1054
|
+
return n.map((t, f) => {
|
|
1055
|
+
var N, s, D;
|
|
1056
|
+
if ((t == null ? void 0 : t.componentType) === "component") {
|
|
1057
|
+
const w = rr[t == null ? void 0 : t.key];
|
|
1058
|
+
if (w)
|
|
1059
|
+
return /* @__PURE__ */ e(
|
|
1060
|
+
w,
|
|
1061
|
+
{
|
|
1062
|
+
...t == null ? void 0 : t.props
|
|
1063
|
+
},
|
|
1064
|
+
f
|
|
1065
|
+
);
|
|
1066
|
+
}
|
|
1067
|
+
const p = ar[t == null ? void 0 : t.type];
|
|
1068
|
+
if (p) {
|
|
1069
|
+
const w = ["select", "radio", "checkbox", "file"].includes(
|
|
1070
|
+
t.type
|
|
1071
|
+
), d = t != null && t.name ? (N = a[t == null ? void 0 : t.name]) == null ? void 0 : N.message : void 0, k = d ? r(d, d) : void 0, h = {
|
|
1072
|
+
...t.field_props,
|
|
1073
|
+
label: (s = t.field_props) != null && s.label ? r(t.field_props.label, t.field_props.label) : void 0,
|
|
1074
|
+
placeholder: (D = t.field_props) != null && D.placeholder ? r(t.field_props.placeholder, t.field_props.placeholder) : void 0
|
|
1075
|
+
};
|
|
1076
|
+
return w && l && (t != null && t.name) ? /* @__PURE__ */ e(
|
|
1077
|
+
Ye,
|
|
1078
|
+
{
|
|
1079
|
+
name: t.name,
|
|
1080
|
+
control: l,
|
|
1081
|
+
rules: { validate: t.validate },
|
|
1082
|
+
render: ({ field: { onChange: b, value: x, name: M, ref: S } }) => /* @__PURE__ */ e(
|
|
1083
|
+
p,
|
|
1084
|
+
{
|
|
1085
|
+
...h,
|
|
1086
|
+
onChange: b,
|
|
1087
|
+
value: x,
|
|
1088
|
+
name: M,
|
|
1089
|
+
ref: S,
|
|
1090
|
+
error: k
|
|
1091
|
+
}
|
|
1092
|
+
)
|
|
1093
|
+
},
|
|
1094
|
+
f
|
|
1095
|
+
) : t.name ? /* @__PURE__ */ e(
|
|
1096
|
+
p,
|
|
1097
|
+
{
|
|
1098
|
+
...h,
|
|
1099
|
+
...o(t == null ? void 0 : t.name, {
|
|
1100
|
+
validate: t == null ? void 0 : t.validate
|
|
1101
|
+
}),
|
|
1102
|
+
error: k
|
|
1103
|
+
},
|
|
1104
|
+
f
|
|
1105
|
+
) : /* @__PURE__ */ e(
|
|
1106
|
+
p,
|
|
1058
1107
|
{
|
|
1059
|
-
...
|
|
1108
|
+
...h,
|
|
1109
|
+
error: k
|
|
1060
1110
|
},
|
|
1061
|
-
|
|
1111
|
+
f
|
|
1062
1112
|
);
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
Ye,
|
|
1071
|
-
{
|
|
1072
|
-
name: e.name,
|
|
1073
|
-
control: s,
|
|
1074
|
-
rules: { validate: e.validate },
|
|
1075
|
-
render: ({ field: { onChange: N, value: C, name: c, ref: v } }) => /* @__PURE__ */ t(
|
|
1076
|
-
m,
|
|
1077
|
-
{
|
|
1078
|
-
...e.field_props,
|
|
1079
|
-
onChange: N,
|
|
1080
|
-
value: C,
|
|
1081
|
-
name: c,
|
|
1082
|
-
ref: v,
|
|
1083
|
-
error: n
|
|
1084
|
-
}
|
|
1085
|
-
)
|
|
1086
|
-
},
|
|
1087
|
-
l
|
|
1088
|
-
) : e.name ? /* @__PURE__ */ t(
|
|
1089
|
-
m,
|
|
1090
|
-
{
|
|
1091
|
-
...e == null ? void 0 : e.field_props,
|
|
1092
|
-
...r(e == null ? void 0 : e.name, {
|
|
1093
|
-
validate: e == null ? void 0 : e.validate
|
|
1094
|
-
}),
|
|
1095
|
-
error: n
|
|
1096
|
-
},
|
|
1097
|
-
l
|
|
1098
|
-
) : /* @__PURE__ */ t(
|
|
1099
|
-
m,
|
|
1100
|
-
{
|
|
1101
|
-
...e == null ? void 0 : e.field_props,
|
|
1102
|
-
error: n
|
|
1103
|
-
},
|
|
1104
|
-
l
|
|
1105
|
-
);
|
|
1106
|
-
}
|
|
1107
|
-
return null;
|
|
1108
|
-
}), Q = ({
|
|
1109
|
-
label: a,
|
|
1110
|
-
type: r,
|
|
1111
|
-
options: o
|
|
1113
|
+
}
|
|
1114
|
+
return null;
|
|
1115
|
+
});
|
|
1116
|
+
}, U = ({
|
|
1117
|
+
label: n,
|
|
1118
|
+
type: o,
|
|
1119
|
+
options: a
|
|
1112
1120
|
}) => ({
|
|
1113
1121
|
dataType: X.select,
|
|
1114
|
-
label:
|
|
1115
|
-
type:
|
|
1116
|
-
options:
|
|
1117
|
-
}),
|
|
1122
|
+
label: n,
|
|
1123
|
+
type: o,
|
|
1124
|
+
options: a
|
|
1125
|
+
}), ka = {
|
|
1118
1126
|
title: "Оставьте заявку, чтобы подключить MKassa",
|
|
1119
1127
|
subtitle: "с Вами свяжется наш специалист и поможет с подключением сервиса"
|
|
1120
|
-
},
|
|
1128
|
+
}, Ca = {
|
|
1121
1129
|
title: "Форма заявки",
|
|
1122
1130
|
description: "Форма заявки ",
|
|
1123
|
-
types: [ee.form]
|
|
1124
|
-
propsToEdit:
|
|
1125
|
-
},
|
|
1131
|
+
types: [ee.form]
|
|
1132
|
+
// propsToEdit: propsToEdit,
|
|
1133
|
+
}, sr = {
|
|
1126
1134
|
title: "Оставьте заявку, чтобы подключить MKassa",
|
|
1127
1135
|
description: "с Вами свяжется наш специалист и поможет с подключением сервиса",
|
|
1128
1136
|
color: "#45464b"
|
|
1129
|
-
},
|
|
1137
|
+
}, lr = U({
|
|
1130
1138
|
label: "Тип поля",
|
|
1131
1139
|
type: "componentType",
|
|
1132
|
-
options:
|
|
1133
|
-
}),
|
|
1140
|
+
options: Zt
|
|
1141
|
+
}), ir = U({
|
|
1134
1142
|
label: "Компонент",
|
|
1135
1143
|
type: "componentType",
|
|
1136
|
-
options:
|
|
1137
|
-
}),
|
|
1144
|
+
options: or
|
|
1145
|
+
}), cr = U({
|
|
1138
1146
|
label: "Тип поля",
|
|
1139
1147
|
type: "fieldType",
|
|
1140
|
-
options:
|
|
1141
|
-
}),
|
|
1148
|
+
options: $t
|
|
1149
|
+
}), dr = Gt({
|
|
1150
|
+
label: "Имя поля",
|
|
1151
|
+
type: "name"
|
|
1152
|
+
}), pr = {
|
|
1142
1153
|
type: "fields",
|
|
1143
1154
|
dataType: "array",
|
|
1144
1155
|
label: "Поля для формы",
|
|
1145
1156
|
data: {
|
|
1146
|
-
componentType:
|
|
1147
|
-
type:
|
|
1148
|
-
key:
|
|
1149
|
-
name:
|
|
1157
|
+
componentType: lr,
|
|
1158
|
+
type: cr,
|
|
1159
|
+
key: ir,
|
|
1160
|
+
name: dr,
|
|
1150
1161
|
props: {
|
|
1151
1162
|
label: "Свойства компонента",
|
|
1152
1163
|
dataType: X.object,
|
|
@@ -1156,36 +1167,43 @@ const er = {
|
|
|
1156
1167
|
description: G.DESCRIPTION,
|
|
1157
1168
|
html_content: G.HTML_CONTENT
|
|
1158
1169
|
}
|
|
1159
|
-
}
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1170
|
+
}
|
|
1171
|
+
},
|
|
1172
|
+
field_props: {
|
|
1173
|
+
label: "Свойства поля",
|
|
1174
|
+
dataType: X.object,
|
|
1175
|
+
data: {
|
|
1176
|
+
keys: {
|
|
1177
|
+
label: G.TITLE,
|
|
1178
|
+
placeholder: G.DESCRIPTION,
|
|
1179
|
+
is_required: G.BOOLEAN
|
|
1169
1180
|
}
|
|
1170
1181
|
}
|
|
1171
1182
|
}
|
|
1172
1183
|
}
|
|
1173
|
-
},
|
|
1174
|
-
title
|
|
1175
|
-
subtitle
|
|
1176
|
-
color
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1184
|
+
}, mr = [
|
|
1185
|
+
"title",
|
|
1186
|
+
"subtitle",
|
|
1187
|
+
"color",
|
|
1188
|
+
pr,
|
|
1189
|
+
At
|
|
1190
|
+
], fe = ({
|
|
1191
|
+
title: n,
|
|
1192
|
+
subtitle: o,
|
|
1193
|
+
color: a,
|
|
1194
|
+
gridCols: l = 1,
|
|
1195
|
+
gridRow: r = 2,
|
|
1196
|
+
fields: t = [],
|
|
1197
|
+
requestForm: f
|
|
1180
1198
|
}) => {
|
|
1181
|
-
var
|
|
1182
|
-
const [
|
|
1183
|
-
register:
|
|
1184
|
-
handleSubmit:
|
|
1185
|
-
watch:
|
|
1186
|
-
reset:
|
|
1187
|
-
control:
|
|
1188
|
-
formState: { errors:
|
|
1199
|
+
var j;
|
|
1200
|
+
const { t: p } = oe(), [N, s] = T(!1), [D, w] = T(!1), [d, k] = T(null), h = Ue(960), {
|
|
1201
|
+
register: b,
|
|
1202
|
+
handleSubmit: x,
|
|
1203
|
+
watch: M,
|
|
1204
|
+
reset: S,
|
|
1205
|
+
control: C,
|
|
1206
|
+
formState: { errors: B }
|
|
1189
1207
|
} = Ke({
|
|
1190
1208
|
defaultValues: {
|
|
1191
1209
|
fio: "",
|
|
@@ -1193,40 +1211,75 @@ const er = {
|
|
|
1193
1211
|
business_category: "",
|
|
1194
1212
|
agreement: !1
|
|
1195
1213
|
}
|
|
1196
|
-
}),
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1214
|
+
}), V = M("agreement"), I = async (O) => {
|
|
1215
|
+
if (!(f != null && f.api_url)) {
|
|
1216
|
+
console.warn("API URL is not defined in requestForm props");
|
|
1217
|
+
return;
|
|
1218
|
+
}
|
|
1219
|
+
w(!0), k(null);
|
|
1220
|
+
try {
|
|
1221
|
+
const m = new FormData();
|
|
1222
|
+
Object.entries(O).forEach(([i, _]) => {
|
|
1223
|
+
_ != null && (Array.isArray(_) ? _.forEach((u) => {
|
|
1224
|
+
m.append(i, u);
|
|
1225
|
+
}) : m.append(i, _));
|
|
1226
|
+
});
|
|
1227
|
+
const v = await fetch(f.api_url, {
|
|
1228
|
+
method: "POST",
|
|
1229
|
+
// При отправке FormData заголовок Content-Type устанавливать НЕ НУЖНО,
|
|
1230
|
+
// браузер установит его автоматически вместе с boundary
|
|
1231
|
+
body: m
|
|
1232
|
+
});
|
|
1233
|
+
if (!v.ok)
|
|
1234
|
+
throw new Error(`HTTP error! status: ${v.status}`);
|
|
1235
|
+
const g = v.headers.get("content-type");
|
|
1236
|
+
if (g && g.includes("application/json")) {
|
|
1237
|
+
const i = await v.json();
|
|
1238
|
+
console.log("Success:", i);
|
|
1239
|
+
}
|
|
1240
|
+
s(!0), S();
|
|
1241
|
+
} catch (m) {
|
|
1242
|
+
console.error("Error submitting form:", m), k(
|
|
1243
|
+
p(
|
|
1244
|
+
"form.submit_error",
|
|
1245
|
+
"Произошла ошибка при отправке. Пожалуйста, попробуйте позже."
|
|
1246
|
+
)
|
|
1247
|
+
);
|
|
1248
|
+
} finally {
|
|
1249
|
+
w(!1);
|
|
1250
|
+
}
|
|
1251
|
+
}, E = nr(t || [], {
|
|
1252
|
+
register: b,
|
|
1253
|
+
errors: B,
|
|
1254
|
+
control: C
|
|
1202
1255
|
});
|
|
1203
|
-
return /* @__PURE__ */
|
|
1256
|
+
return /* @__PURE__ */ e(re, { children: /* @__PURE__ */ e(
|
|
1204
1257
|
"form",
|
|
1205
1258
|
{
|
|
1206
|
-
onSubmit:
|
|
1259
|
+
onSubmit: x(I),
|
|
1207
1260
|
id: "application_form",
|
|
1208
1261
|
className: "w-full",
|
|
1209
|
-
children: /* @__PURE__ */
|
|
1262
|
+
children: /* @__PURE__ */ c(
|
|
1210
1263
|
"div",
|
|
1211
1264
|
{
|
|
1212
1265
|
style: {
|
|
1213
|
-
boxShadow: `0px 8px 24px rgba(0,0,0,0.08),0px -8px 0px ${
|
|
1266
|
+
boxShadow: `0px 8px 24px rgba(0,0,0,0.08),0px -8px 0px ${a}`
|
|
1214
1267
|
},
|
|
1215
1268
|
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]",
|
|
1216
1269
|
children: [
|
|
1217
|
-
/* @__PURE__ */
|
|
1218
|
-
/* @__PURE__ */
|
|
1219
|
-
/* @__PURE__ */
|
|
1270
|
+
/* @__PURE__ */ c("div", { className: "text-center mb-10 max-tablet:mb-8", children: [
|
|
1271
|
+
/* @__PURE__ */ e("h2", { className: "text-[36px] leading-[44px] font-semibold m-0 mb-3 text-blackBG max-tablet:text-[28px] max-tablet:leading-[36px]", children: p(n || "", n) }),
|
|
1272
|
+
/* @__PURE__ */ e("span", { className: "text-[18px] leading-[26px] text-graySoft max-tablet:text-[16px] max-tablet:leading-[24px]", children: p(o || "", o) })
|
|
1220
1273
|
] }),
|
|
1221
|
-
|
|
1222
|
-
/* @__PURE__ */
|
|
1274
|
+
N ? /* @__PURE__ */ e("div", { className: "flex flex-col items-center w-[640px] gap-8 max-tablet:w-full animate-in fade-in duration-500", children: /* @__PURE__ */ c("div", { className: "text-center", children: [
|
|
1275
|
+
/* @__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(
|
|
1223
1276
|
"svg",
|
|
1224
1277
|
{
|
|
1225
1278
|
className: "w-10 h-10 text-white",
|
|
1226
1279
|
fill: "none",
|
|
1227
1280
|
stroke: "currentColor",
|
|
1228
1281
|
viewBox: "0 0 24 24",
|
|
1229
|
-
children: /* @__PURE__ */
|
|
1282
|
+
children: /* @__PURE__ */ e(
|
|
1230
1283
|
"path",
|
|
1231
1284
|
{
|
|
1232
1285
|
strokeLinecap: "round",
|
|
@@ -1237,66 +1290,76 @@ const er = {
|
|
|
1237
1290
|
)
|
|
1238
1291
|
}
|
|
1239
1292
|
) }),
|
|
1240
|
-
/* @__PURE__ */
|
|
1241
|
-
/* @__PURE__ */
|
|
1242
|
-
/* @__PURE__ */
|
|
1243
|
-
|
|
1293
|
+
/* @__PURE__ */ c("div", { className: "text-center", children: [
|
|
1294
|
+
/* @__PURE__ */ e("div", { className: "font-semibold text-[24px] leading-[32px] text-blackBG mb-3", children: p("form.success_title", "Заявка успешно отправлена") }),
|
|
1295
|
+
/* @__PURE__ */ e("div", { className: "text-[18px] leading-[26px] text-graySoft", children: p(
|
|
1296
|
+
"form.success_description",
|
|
1297
|
+
"С Вами свяжется наш специалист и поможет с подключением сервиса"
|
|
1298
|
+
) }),
|
|
1299
|
+
/* @__PURE__ */ e(
|
|
1244
1300
|
R,
|
|
1245
1301
|
{
|
|
1246
1302
|
className: "justify-center m-auto mt-6",
|
|
1247
|
-
title: "Закрыть",
|
|
1303
|
+
title: p("form.close", "Закрыть"),
|
|
1248
1304
|
onClick: () => {
|
|
1249
|
-
|
|
1305
|
+
s(!1), S();
|
|
1250
1306
|
}
|
|
1251
1307
|
}
|
|
1252
1308
|
)
|
|
1253
1309
|
] })
|
|
1254
|
-
] }) }) : /* @__PURE__ */
|
|
1255
|
-
/* @__PURE__ */
|
|
1310
|
+
] }) }) : /* @__PURE__ */ c(Q, { children: [
|
|
1311
|
+
/* @__PURE__ */ e(
|
|
1256
1312
|
"div",
|
|
1257
1313
|
{
|
|
1258
1314
|
className: "w-[640px] mb-8 max-tablet:w-full grid gap-6",
|
|
1259
1315
|
style: {
|
|
1260
|
-
gridTemplateColumns: `repeat(${
|
|
1261
|
-
gridTemplateRows: `repeat(${
|
|
1316
|
+
gridTemplateColumns: `repeat(${h ? 1 : l}, 1fr)`,
|
|
1317
|
+
gridTemplateRows: `repeat(${r}, auto)`
|
|
1262
1318
|
},
|
|
1263
|
-
children:
|
|
1319
|
+
children: E
|
|
1264
1320
|
}
|
|
1265
1321
|
),
|
|
1266
|
-
/* @__PURE__ */
|
|
1322
|
+
/* @__PURE__ */ e("div", { className: "pt-2", children: /* @__PURE__ */ e(
|
|
1267
1323
|
Y,
|
|
1268
1324
|
{
|
|
1269
|
-
...
|
|
1270
|
-
required:
|
|
1325
|
+
...b("agreement", {
|
|
1326
|
+
required: p(
|
|
1327
|
+
"form.agreement_required",
|
|
1328
|
+
"Необходимо согласие на обработку персональных данных"
|
|
1329
|
+
)
|
|
1271
1330
|
}),
|
|
1272
|
-
error: (
|
|
1273
|
-
label: /* @__PURE__ */
|
|
1274
|
-
"Я соглашаюсь с",
|
|
1331
|
+
error: (j = B.agreement) == null ? void 0 : j.message,
|
|
1332
|
+
label: /* @__PURE__ */ c(Q, { children: [
|
|
1333
|
+
p("form.i_agree", "Я соглашаюсь с"),
|
|
1275
1334
|
" ",
|
|
1276
|
-
/* @__PURE__ */
|
|
1335
|
+
/* @__PURE__ */ e(
|
|
1277
1336
|
"button",
|
|
1278
1337
|
{
|
|
1279
1338
|
type: "button",
|
|
1280
1339
|
className: "text-greenLight hover:text-green underline transition-colors duration-200 bg-transparent border-0 p-0 cursor-pointer",
|
|
1281
|
-
onClick: (
|
|
1282
|
-
|
|
1340
|
+
onClick: (O) => {
|
|
1341
|
+
O.preventDefault();
|
|
1283
1342
|
},
|
|
1284
|
-
children:
|
|
1343
|
+
children: p(
|
|
1344
|
+
"form.agreement_link",
|
|
1345
|
+
"условиями обработки персональных данных"
|
|
1346
|
+
)
|
|
1285
1347
|
}
|
|
1286
1348
|
)
|
|
1287
1349
|
] })
|
|
1288
1350
|
}
|
|
1289
1351
|
) }),
|
|
1290
|
-
/* @__PURE__ */
|
|
1352
|
+
d && /* @__PURE__ */ e("div", { className: "mt-4 p-4 bg-red-50 border border-red-200 text-red-600 rounded-xl text-sm w-[640px] max-tablet:w-full animate-in fade-in slide-in-from-top-1", children: d }),
|
|
1353
|
+
/* @__PURE__ */ e("div", { className: "mt-6 w-[640px] max-tablet:w-full", children: /* @__PURE__ */ e(
|
|
1291
1354
|
R,
|
|
1292
1355
|
{
|
|
1293
|
-
loading:
|
|
1356
|
+
loading: D,
|
|
1294
1357
|
className: "w-full whitespace-nowrap transition-all duration-200 hover:scale-[1.02] active:scale-[0.98]",
|
|
1295
1358
|
type: "submit",
|
|
1296
1359
|
size: De.XL,
|
|
1297
1360
|
variant: Ne.Primary,
|
|
1298
|
-
disabled: !
|
|
1299
|
-
children: "Отправить заявку"
|
|
1361
|
+
disabled: !V || D,
|
|
1362
|
+
children: p("form.submit", "Отправить заявку")
|
|
1300
1363
|
}
|
|
1301
1364
|
) })
|
|
1302
1365
|
] })
|
|
@@ -1306,31 +1369,31 @@ const er = {
|
|
|
1306
1369
|
}
|
|
1307
1370
|
) });
|
|
1308
1371
|
};
|
|
1309
|
-
fe.propsToEdit =
|
|
1310
|
-
const
|
|
1372
|
+
fe.propsToEdit = mr;
|
|
1373
|
+
const va = {
|
|
1311
1374
|
MainBanner: { key: "MainBanner", component: Pe },
|
|
1312
1375
|
Banner: { key: "Banner", component: xe },
|
|
1313
1376
|
CardImageList: { key: "CardImageList", component: He },
|
|
1314
1377
|
Stepper: { key: "Stepper", component: Le },
|
|
1315
1378
|
Segments: { key: "Segments", component: _e },
|
|
1316
1379
|
VideoFull: { key: "VideoFull", component: Be },
|
|
1317
|
-
VideoList: { key: "VideoList", component:
|
|
1318
|
-
VideoListMini: { key: "VideoListMini", component:
|
|
1380
|
+
VideoList: { key: "VideoList", component: Se },
|
|
1381
|
+
VideoListMini: { key: "VideoListMini", component: Me },
|
|
1319
1382
|
ContentCardList: { key: "ContentCardList", component: Fe },
|
|
1320
1383
|
CardIconList: { key: "CardIconList", component: Ve },
|
|
1321
1384
|
MultiCards: { key: "MultiCards", component: Ie },
|
|
1322
1385
|
Partners: { key: "Partners", component: Te },
|
|
1323
1386
|
PartnersColors: { key: "PartnersColors", component: Oe },
|
|
1324
|
-
WarningCard: { key: "WarningCard", component:
|
|
1325
|
-
Faq: { key: "Faq", component:
|
|
1387
|
+
WarningCard: { key: "WarningCard", component: q },
|
|
1388
|
+
Faq: { key: "Faq", component: Ee },
|
|
1326
1389
|
DownloadFileBanner: {
|
|
1327
1390
|
key: "DownloadFileBanner",
|
|
1328
|
-
component:
|
|
1391
|
+
component: Ge
|
|
1329
1392
|
},
|
|
1330
1393
|
DownloadFileHalf: { key: "DownloadFileHalf", component: Ze },
|
|
1331
1394
|
DownloadFileFull: { key: "DownloadFileFull", component: Ae },
|
|
1332
1395
|
DownloadFileMini: { key: "DownloadFileMini", component: $e },
|
|
1333
|
-
InstructionList: { key: "InstructionList", component:
|
|
1396
|
+
InstructionList: { key: "InstructionList", component: We },
|
|
1334
1397
|
PreviewList: { key: "PreviewList", component: je },
|
|
1335
1398
|
SwiperList: { key: "SwiperList", component: at },
|
|
1336
1399
|
AnimatedSwiper: { key: "AnimatedSwiper", component: Re },
|
|
@@ -1343,21 +1406,21 @@ const xa = {
|
|
|
1343
1406
|
key: "CardImageSecondaryList",
|
|
1344
1407
|
component: Xe
|
|
1345
1408
|
},
|
|
1346
|
-
CardInfoTable: { key: "CardInfoTable", component:
|
|
1409
|
+
CardInfoTable: { key: "CardInfoTable", component: ze },
|
|
1347
1410
|
StandartTable: { key: "StandartTable", component: ot },
|
|
1348
1411
|
IntroBanner: { key: "IntroBanner", component: et },
|
|
1349
1412
|
DownloadFileBright: {
|
|
1350
1413
|
key: "DownloadFileBright",
|
|
1351
|
-
component:
|
|
1414
|
+
component: qe
|
|
1352
1415
|
},
|
|
1353
1416
|
FormDefault: {
|
|
1354
1417
|
key: "FormDefault",
|
|
1355
1418
|
component: fe
|
|
1356
1419
|
},
|
|
1357
|
-
Header: { key: "Header", component:
|
|
1358
|
-
Footer: { key: "Footer", component:
|
|
1359
|
-
TitleBlock: { key: "TitleBlock", component:
|
|
1360
|
-
},
|
|
1420
|
+
Header: { key: "Header", component: Rt },
|
|
1421
|
+
Footer: { key: "Footer", component: Xt },
|
|
1422
|
+
TitleBlock: { key: "TitleBlock", component: ae }
|
|
1423
|
+
}, Da = {
|
|
1361
1424
|
MainBanner: lt.component_props,
|
|
1362
1425
|
Banner: it.component_props,
|
|
1363
1426
|
CardImageList: ct.component_props,
|
|
@@ -1380,38 +1443,38 @@ const xa = {
|
|
|
1380
1443
|
InstructionList: Lt.component_props,
|
|
1381
1444
|
PreviewList: _t.component_props,
|
|
1382
1445
|
SwiperList: Bt.component_props,
|
|
1383
|
-
AnimatedSwiper:
|
|
1384
|
-
InfoBannerList:
|
|
1446
|
+
AnimatedSwiper: St.component_props,
|
|
1447
|
+
InfoBannerList: Mt.component_props,
|
|
1385
1448
|
TasksBannerList: Ft.component_props,
|
|
1386
1449
|
VideoMainBanner: Vt.component_props,
|
|
1387
1450
|
EmptyBox: It.component_props,
|
|
1388
1451
|
PromoPoster: Tt.component_props,
|
|
1389
1452
|
CardImageSecondaryList: Ht.component_props,
|
|
1390
1453
|
CardInfoTable: Pt.component_props,
|
|
1391
|
-
StandartTable:
|
|
1392
|
-
IntroBanner:
|
|
1454
|
+
StandartTable: Et.component_props,
|
|
1455
|
+
IntroBanner: Wt.component_props,
|
|
1393
1456
|
DownloadFileBright: Ot.component_props,
|
|
1394
|
-
FormDefault:
|
|
1457
|
+
FormDefault: sr,
|
|
1395
1458
|
TitleBlock: jt.component_props
|
|
1396
|
-
},
|
|
1459
|
+
}, Na = {
|
|
1397
1460
|
title: "Предупреждающая карточка",
|
|
1398
1461
|
description: "Компонент для отображения предупреждающей информации в виде карточки с иконкой, заголовком и описанием. Используется для привлечения внимания к важной информации или предупреждениям.",
|
|
1399
1462
|
types: [ee.cards],
|
|
1400
|
-
propsToEdit:
|
|
1463
|
+
propsToEdit: ne
|
|
1401
1464
|
};
|
|
1402
1465
|
export {
|
|
1403
|
-
|
|
1466
|
+
Da as A,
|
|
1404
1467
|
fe as F,
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1468
|
+
q as W,
|
|
1469
|
+
va as a,
|
|
1470
|
+
or as b,
|
|
1471
|
+
rr as c,
|
|
1472
|
+
sr as d,
|
|
1473
|
+
pr as e,
|
|
1474
|
+
Ca as f,
|
|
1475
|
+
mr as g,
|
|
1476
|
+
ka as i,
|
|
1477
|
+
ne as p,
|
|
1478
|
+
nr as r,
|
|
1479
|
+
Na as w
|
|
1417
1480
|
};
|