md-components-mdigial-azamat 0.0.13 → 0.0.17
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/AllComponents.js +70 -86
- package/dist/Banner/Banner.js +8 -140
- package/dist/Banner/index.js +2 -2
- package/dist/CardImageList/CardImageList.js +8 -49
- package/dist/CardImageList/index.js +1 -1
- package/dist/CardInfoTable/index.js +6 -151
- package/dist/Cards/CardImage/types.js +4 -1
- package/dist/Cards/ContentCard/ContentCard.js +6 -38
- package/dist/Cards/ContentCard/index.js +1 -1
- package/dist/Cards/WarningCard/WarningCard.js +7 -51
- package/dist/Cards/WarningCard/index.js +1 -1
- package/dist/Cards/WarningCard/model.js +2 -22
- package/dist/ContentCardList/ContentCardList.js +4 -25
- package/dist/ContentCardList/index.js +2 -2
- package/dist/DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js +5 -42
- package/dist/DownloadFile/components/DownloadFileBanner/index.js +2 -2
- package/dist/DownloadFile/components/DownloadFileBright/index.js +7 -8
- package/dist/DownloadFile/components/DownloadFileFull/DownloadFileFull.js +6 -39
- package/dist/DownloadFile/components/DownloadFileFull/index.js +2 -2
- package/dist/DownloadFile/components/DownloadFileHalf/DownloadFileHalf.js +6 -46
- package/dist/DownloadFile/components/DownloadFileHalf/index.js +2 -2
- package/dist/DownloadFile/components/DownloadFileMini/DownloadFileMini.js +6 -45
- package/dist/DownloadFile/components/DownloadFileMini/index.js +2 -2
- package/dist/Faq/Faq.js +6 -34
- package/dist/Faq/components/FeedbackForm/FeedbackForm.js +5 -1032
- package/dist/Faq/components/FeedbackForm/index.js +1 -1
- package/dist/Faq/index.js +2 -2
- package/dist/InfoBanner/index.js +1 -1
- package/dist/InstructionList/InstructionList.js +5 -29
- package/dist/InstructionList/index.js +1 -1
- package/dist/IntroBanner/IntroBanner.js +1 -1
- package/dist/MainBanner/MainBanner.js +6 -77
- package/dist/MainBanner/index.js +2 -2
- package/dist/PageViewer/PageViewer.js +28 -4
- package/dist/PageViewer/renderComponents.js +1 -1
- package/dist/PreviewList/PreviewList.js +4 -25
- package/dist/PreviewList/components/PreviewCard/PreviewCard.js +5 -32
- package/dist/PreviewList/components/PreviewCard/index.js +2 -2
- package/dist/PreviewList/index.js +1 -1
- package/dist/RenderAllComponents/RenderAllComponents.js +1 -1
- package/dist/RenderAllComponents/const.js +1 -1
- package/dist/StandartTable/components/CardWarning/index.js +2 -2
- package/dist/Stepper/Stepper.js +5 -40
- package/dist/Stepper/index.js +1 -1
- package/dist/TasksBanner/TasksBanner.js +12 -13
- package/dist/Types/CustomType.js +1 -0
- package/dist/Types/FiledTypes.js +4 -0
- package/dist/VideoMainBanner/VideoMainBanner.js +3 -3
- package/dist/componentsMap-fc5d3ce6.js +58 -0
- package/dist/{const-9041b93a.js → const-fcf5d36a.js} +2 -2
- package/dist/{data.mock-741c2220.js → data.mock-97df7aa8.js} +1 -1
- package/dist/index-3d4883ec.js +2106 -0
- package/dist/main.js +64 -74
- package/dist/model-bc7ae7c3.js +51 -0
- package/package.json +1 -1
- package/dist/Icon-70ea6cb8.js +0 -187
- package/dist/componentsMap-8af3b722.js +0 -71
- package/dist/index-b3d6aed3.js +0 -52
- package/dist/palette-ac8c8a5f.js +0 -31
- /package/dist/assets/{TasksBanner.css → InfoBanner.css} +0 -0
|
@@ -0,0 +1,2106 @@
|
|
|
1
|
+
import { jsxs as b, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import * as rt from "react";
|
|
3
|
+
import G, { forwardRef as mt, useState as Pt } from "react";
|
|
4
|
+
import { C as $ } from "./ComponentContainer-0fcc2695.js";
|
|
5
|
+
import { c as D } from "./cn-d8c04b28.js";
|
|
6
|
+
import "./ConfigProvider/index.js";
|
|
7
|
+
import { BannerVariant as st } from "./Banner/types.js";
|
|
8
|
+
import { I as ie } from "./index-60dfa873.js";
|
|
9
|
+
import { u as Zt } from "./useScreenSize-c1b64c02.js";
|
|
10
|
+
import "./BannerAndText/index.js";
|
|
11
|
+
import "./Segments/Segments.js";
|
|
12
|
+
import "./Video/VideoFull/VideoFull.js";
|
|
13
|
+
import "./Video/VideoList/VideoList.js";
|
|
14
|
+
import "./Video/VideoListMini/VideoListMini.js";
|
|
15
|
+
import { HtmlContent as yt } from "./HtmlContent/HtmlContent.js";
|
|
16
|
+
import { a as se, B as O } from "./const-fcf5d36a.js";
|
|
17
|
+
import "./CardIconList/CardIconList.js";
|
|
18
|
+
import "./MultiCards/index.js";
|
|
19
|
+
import "./Partners/Partners.js";
|
|
20
|
+
import { CardImage as jt } from "./Cards/CardImage/CardImage.js";
|
|
21
|
+
import { CardImageVariant as lt } from "./Cards/CardImage/types.js";
|
|
22
|
+
import { FieldTypes as le } from "./Types/FiledTypes.js";
|
|
23
|
+
import { Collapse as $t } from "./Faq/components/Collapse/Collapse.js";
|
|
24
|
+
import { InstructionCard as zt } from "./InstructionList/components/InstructionCard/InstructionCard.js";
|
|
25
|
+
import "./HeroPossibilityBanner/index.js";
|
|
26
|
+
import "./PartnersColors/PartnersColors.js";
|
|
27
|
+
import { W as Le, p as ue } from "./model-bc7ae7c3.js";
|
|
28
|
+
import "./Cards/ColoredCard/index.js";
|
|
29
|
+
import "./index-6e0f7db0.js";
|
|
30
|
+
import "./swiper-react-c049ea66.js";
|
|
31
|
+
import './assets/InfoBanner.css';import './assets/swiper.css';/* empty css */import "./SwiperList/SwiperList.js";
|
|
32
|
+
/* empty css */const vt = {
|
|
33
|
+
size: se,
|
|
34
|
+
variant: O,
|
|
35
|
+
loading: le.BOOLEAN,
|
|
36
|
+
iconRight: le.COMPONENT,
|
|
37
|
+
iconLeft: le.COMPONENT,
|
|
38
|
+
className: le.CLASSNAME
|
|
39
|
+
}, I = mt(
|
|
40
|
+
({
|
|
41
|
+
children: e,
|
|
42
|
+
size: r = se.XL,
|
|
43
|
+
variant: t = O.Primary,
|
|
44
|
+
loading: l = !1,
|
|
45
|
+
iconRight: o,
|
|
46
|
+
iconLeft: n,
|
|
47
|
+
className: u,
|
|
48
|
+
...d
|
|
49
|
+
}, w) => {
|
|
50
|
+
const F = {
|
|
51
|
+
[se.S]: "",
|
|
52
|
+
[se.M]: "px-[12px] py-[8px] rounded-[12px] text-[14px] h-[36px]",
|
|
53
|
+
[se.L]: "px-[16px] py-[10px] rounded-[16px] text-[16px] h-[44px]",
|
|
54
|
+
[se.XL]: "px-[20px] py-[16px] rounded-[16px] text-[16px] h-[56px]"
|
|
55
|
+
}, y = {
|
|
56
|
+
[O.Primary]: "bg-yellowLight hover:bg-yellowSaturated disabled:bg-yellowLight2 disabled:cursor-not-allowed",
|
|
57
|
+
[O.Secondary]: "bg-lightBlue hover:bg-grayBlue disabled:bg-white disabled:cursor-not-allowed",
|
|
58
|
+
[O.SecondaryBlue]: "bg-lightBlue text-blue hover:bg-grayBlue disabled:bg-white disabled:text-lightBlue5 disabled:cursor-not-allowed",
|
|
59
|
+
[O.Static]: "bg-white hover:bg-grayBlue disabled:bg-white disabled:cursor-not-allowed",
|
|
60
|
+
[O.Brand]: "bg-greenLight text-white hover:bg-green disabled:bg-lightGray5 disabled:cursor-not-allowed",
|
|
61
|
+
[O.Grey]: "bg-greyLight text-blackBG"
|
|
62
|
+
};
|
|
63
|
+
return /* @__PURE__ */ b(
|
|
64
|
+
"button",
|
|
65
|
+
{
|
|
66
|
+
className: D(
|
|
67
|
+
"flex items-center justify-center gap-2 border-none font-i font-medium cursor-pointer w-fit ",
|
|
68
|
+
F[r],
|
|
69
|
+
y[t],
|
|
70
|
+
u
|
|
71
|
+
),
|
|
72
|
+
ref: w,
|
|
73
|
+
...d,
|
|
74
|
+
children: [
|
|
75
|
+
l ? /* @__PURE__ */ a("span", { className: "flex justify-center items-center w-[22px] h-[22px] p-[2px] bg-transparent rounded-full border-2 border-[#0e0f11] border-t-transparent animate-spin" }) : n && /* @__PURE__ */ a("span", { className: "flex items-center", children: n }),
|
|
76
|
+
e,
|
|
77
|
+
o && /* @__PURE__ */ a("span", { className: "flex items-center", children: o })
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
);
|
|
83
|
+
I.displayName = "AppButton";
|
|
84
|
+
const Gt = [
|
|
85
|
+
"bg_image",
|
|
86
|
+
"image",
|
|
87
|
+
"title",
|
|
88
|
+
"text_color",
|
|
89
|
+
"description",
|
|
90
|
+
"buttons",
|
|
91
|
+
"variant",
|
|
92
|
+
"qr"
|
|
93
|
+
], Wt = ({
|
|
94
|
+
bg_image: e,
|
|
95
|
+
image: r,
|
|
96
|
+
title: t,
|
|
97
|
+
text_color: l = "inherit",
|
|
98
|
+
description: o,
|
|
99
|
+
buttons: n,
|
|
100
|
+
variant: u,
|
|
101
|
+
qr: d
|
|
102
|
+
}) => {
|
|
103
|
+
var V, m, ne;
|
|
104
|
+
const w = Zt(960), F = u === st.Buttons, y = u === st.Qr;
|
|
105
|
+
return /* @__PURE__ */ a($, { children: /* @__PURE__ */ b(
|
|
106
|
+
"div",
|
|
107
|
+
{
|
|
108
|
+
className: D(
|
|
109
|
+
"relative w-full h-fit flex max-tablet:flex-col justify-between gap-4 bg-cover bg-center rounded-[20px] overflow-hidden max-tablet:justify-start max-tablet:items-center"
|
|
110
|
+
),
|
|
111
|
+
style: {
|
|
112
|
+
backgroundImage: `url(${e})`
|
|
113
|
+
},
|
|
114
|
+
children: [
|
|
115
|
+
/* @__PURE__ */ b("div", { className: " flex flex-col gap-4 w-[40%] max-tablet:w-full justify-center p-12 max-tablet:p-8", children: [
|
|
116
|
+
t && /* @__PURE__ */ a(
|
|
117
|
+
"p",
|
|
118
|
+
{
|
|
119
|
+
className: D(
|
|
120
|
+
"text-[32px] font-bold leading-[40px] text-left text-black m-0 max-tablet:text-center max-tablet:text-[24px] max-tablet:leading-[28px]"
|
|
121
|
+
),
|
|
122
|
+
style: { color: l },
|
|
123
|
+
children: t
|
|
124
|
+
}
|
|
125
|
+
),
|
|
126
|
+
o && /* @__PURE__ */ a(
|
|
127
|
+
"p",
|
|
128
|
+
{
|
|
129
|
+
className: D(
|
|
130
|
+
"text-[18px] font-normal leading-[26px] text-left m-0 max-tablet:px-[24px] max-tablet:text-center max-tablet:text-[15px] max-tablet:leading-[22px]"
|
|
131
|
+
),
|
|
132
|
+
style: { color: l },
|
|
133
|
+
children: o
|
|
134
|
+
}
|
|
135
|
+
),
|
|
136
|
+
F && /* @__PURE__ */ a("div", { className: "flex items-center gap-4 mt-6 max-tablet:flex-col max-tablet:gap-[10px] max-tablet:mt-[5px]", children: n == null ? void 0 : n.map((P, E) => /* @__PURE__ */ a(
|
|
137
|
+
"a",
|
|
138
|
+
{
|
|
139
|
+
href: (P == null ? void 0 : P.link) || "#",
|
|
140
|
+
className: D("w-fit z-10 max-tablet:w-full"),
|
|
141
|
+
target: "_blank",
|
|
142
|
+
rel: "noopener noreferrer",
|
|
143
|
+
children: /* @__PURE__ */ a(
|
|
144
|
+
I,
|
|
145
|
+
{
|
|
146
|
+
variant: P.variant,
|
|
147
|
+
className: "w-[200px] max-tablet:w-full",
|
|
148
|
+
children: P.text
|
|
149
|
+
}
|
|
150
|
+
)
|
|
151
|
+
},
|
|
152
|
+
E
|
|
153
|
+
)) }),
|
|
154
|
+
y && (w ? /* @__PURE__ */ a("div", { className: "flex items-center gap-4 mt-6 max-tablet:flex-col max-tablet:gap-[10px] max-tablet:mt-[5px]", children: /* @__PURE__ */ a(
|
|
155
|
+
"a",
|
|
156
|
+
{
|
|
157
|
+
href: ((V = d == null ? void 0 : d.button) == null ? void 0 : V.link) || "#",
|
|
158
|
+
className: D("w-fit z-10 max-tablet:w-full"),
|
|
159
|
+
target: "_blank",
|
|
160
|
+
rel: "noopener noreferrer",
|
|
161
|
+
children: /* @__PURE__ */ a(
|
|
162
|
+
I,
|
|
163
|
+
{
|
|
164
|
+
variant: (m = d == null ? void 0 : d.button) == null ? void 0 : m.variant,
|
|
165
|
+
className: "w-[200px] max-tablet:w-full",
|
|
166
|
+
children: (ne = d == null ? void 0 : d.button) == null ? void 0 : ne.text
|
|
167
|
+
}
|
|
168
|
+
)
|
|
169
|
+
}
|
|
170
|
+
) }) : /* @__PURE__ */ b(
|
|
171
|
+
"div",
|
|
172
|
+
{
|
|
173
|
+
className: D(
|
|
174
|
+
"bg-white rounded-[15px] items-center gap-[12px] p-[12px] flex w-[282px] mt-6"
|
|
175
|
+
),
|
|
176
|
+
children: [
|
|
177
|
+
/* @__PURE__ */ a(
|
|
178
|
+
ie,
|
|
179
|
+
{
|
|
180
|
+
src: d == null ? void 0 : d.banner_qr,
|
|
181
|
+
alt: d == null ? void 0 : d.banner_qr_text,
|
|
182
|
+
width: 101,
|
|
183
|
+
height: 101
|
|
184
|
+
}
|
|
185
|
+
),
|
|
186
|
+
/* @__PURE__ */ a(
|
|
187
|
+
"p",
|
|
188
|
+
{
|
|
189
|
+
className: D(
|
|
190
|
+
"text-[15px] font-medium leading-[22px] text-center w-[60%] text-graySoft"
|
|
191
|
+
),
|
|
192
|
+
style: { color: d == null ? void 0 : d.color_text },
|
|
193
|
+
children: d == null ? void 0 : d.banner_qr_text
|
|
194
|
+
}
|
|
195
|
+
)
|
|
196
|
+
]
|
|
197
|
+
}
|
|
198
|
+
))
|
|
199
|
+
] }),
|
|
200
|
+
r && /* @__PURE__ */ a(
|
|
201
|
+
ie,
|
|
202
|
+
{
|
|
203
|
+
src: r,
|
|
204
|
+
alt: t,
|
|
205
|
+
width: w ? 312 : 588,
|
|
206
|
+
height: w ? 218 : 400,
|
|
207
|
+
className: D("max-tablet:!w-full align-bottom items-end mt-auto"),
|
|
208
|
+
imageStyles: "object-contain object-bottom"
|
|
209
|
+
}
|
|
210
|
+
)
|
|
211
|
+
]
|
|
212
|
+
}
|
|
213
|
+
) });
|
|
214
|
+
};
|
|
215
|
+
Wt.propsToEdit = Gt;
|
|
216
|
+
const Kt = ["data", "title", "button"], Qt = ({ data: e, title: r, button: t }) => /* @__PURE__ */ a($, { children: /* @__PURE__ */ b("div", { className: "flex items-center flex-col", children: [
|
|
217
|
+
r && /* @__PURE__ */ a("p", { className: "font-bold max-tablet:text-[26px] text-[44px] mb-12 max-tablet:leading-[32px] leading-[42px] font-variant-numeric font-feature-settings", children: r }),
|
|
218
|
+
/* @__PURE__ */ a("div", { className: "grid grid-cols-3 gap-6 max-tablet:grid-cols-1", children: e == null ? void 0 : e.map((l, o) => {
|
|
219
|
+
const n = o + 1;
|
|
220
|
+
return /* @__PURE__ */ b(
|
|
221
|
+
"div",
|
|
222
|
+
{
|
|
223
|
+
className: "p-8 bg-white rounded-[20px] flex flex-col gap-6 items-center",
|
|
224
|
+
children: [
|
|
225
|
+
l.icon ? /* @__PURE__ */ a(
|
|
226
|
+
ie,
|
|
227
|
+
{
|
|
228
|
+
src: l.icon,
|
|
229
|
+
className: "w-[72px] h-[72px] rounded-full overflow-hidden"
|
|
230
|
+
}
|
|
231
|
+
) : /* @__PURE__ */ a("span", { className: "w-[72px] h-[72px] rounded-full bg-greenLight font-bold overflow-hidden flex items-center justify-center text-white text-[24px] leading-8 ", children: n }),
|
|
232
|
+
/* @__PURE__ */ a("p", { className: "text-blackBG text-[18px] leading-[26px] text-center", children: l.text })
|
|
233
|
+
]
|
|
234
|
+
},
|
|
235
|
+
o
|
|
236
|
+
);
|
|
237
|
+
}) }),
|
|
238
|
+
!!(t != null && t.length) && /* @__PURE__ */ a("div", { className: "flex items-center gap-4 mt-6", children: t.map((l, o) => /* @__PURE__ */ a(
|
|
239
|
+
"a",
|
|
240
|
+
{
|
|
241
|
+
href: (l == null ? void 0 : l.link) || "#",
|
|
242
|
+
className: "w-fit z-10 max-tablet:w-full",
|
|
243
|
+
target: "_blank",
|
|
244
|
+
rel: "noopener noreferrer",
|
|
245
|
+
children: /* @__PURE__ */ a(I, { variant: l.variant, children: l.text })
|
|
246
|
+
},
|
|
247
|
+
o
|
|
248
|
+
)) })
|
|
249
|
+
] }) });
|
|
250
|
+
Qt.propsToEdit = Kt;
|
|
251
|
+
const Xt = ["data"], wt = ({ data: e }) => {
|
|
252
|
+
var r;
|
|
253
|
+
return /* @__PURE__ */ b("div", { className: "rounded-[20px] overflow-hidden", children: [
|
|
254
|
+
/* @__PURE__ */ a(
|
|
255
|
+
ie,
|
|
256
|
+
{
|
|
257
|
+
src: e == null ? void 0 : e.image,
|
|
258
|
+
alt: e == null ? void 0 : e.title,
|
|
259
|
+
className: "w-full h-auto"
|
|
260
|
+
}
|
|
261
|
+
),
|
|
262
|
+
/* @__PURE__ */ b("div", { className: "flex flex-col gap-[24px] bg-white p-[32px]", children: [
|
|
263
|
+
/* @__PURE__ */ a("p", { className: "text-[24px] leading-[32px] font-semibold", children: e == null ? void 0 : e.title }),
|
|
264
|
+
/* @__PURE__ */ a(
|
|
265
|
+
yt,
|
|
266
|
+
{
|
|
267
|
+
data: e == null ? void 0 : e.description,
|
|
268
|
+
className: "text-graySoft text-[15px] leading-[22px]"
|
|
269
|
+
}
|
|
270
|
+
),
|
|
271
|
+
/* @__PURE__ */ a("div", { className: "flex gap-12px items-center max-tablet:flex-col", children: (r = e == null ? void 0 : e.button) == null ? void 0 : r.map((t) => /* @__PURE__ */ a(
|
|
272
|
+
"a",
|
|
273
|
+
{
|
|
274
|
+
href: (t == null ? void 0 : t.link) || "#",
|
|
275
|
+
target: "_blank",
|
|
276
|
+
children: /* @__PURE__ */ a(I, { variant: O.Grey, children: t == null ? void 0 : t.text })
|
|
277
|
+
}
|
|
278
|
+
)) })
|
|
279
|
+
] })
|
|
280
|
+
] });
|
|
281
|
+
};
|
|
282
|
+
wt.propsToEdit = Xt;
|
|
283
|
+
const Yt = ["data"], Jt = ({ data: e }) => {
|
|
284
|
+
var r;
|
|
285
|
+
return /* @__PURE__ */ a($, { children: /* @__PURE__ */ b("div", { className: "w-full flex flex-col items-center justify-center", children: [
|
|
286
|
+
(e == null ? void 0 : e.title) && /* @__PURE__ */ a(
|
|
287
|
+
"p",
|
|
288
|
+
{
|
|
289
|
+
className: `font-bold max-tablet:text-[26px] text-[44px] max-tablet:leading-[32px] leading-[42px]
|
|
290
|
+
mb-[24px] font-variant-numeric font-feature-settings`,
|
|
291
|
+
children: e == null ? void 0 : e.title
|
|
292
|
+
}
|
|
293
|
+
),
|
|
294
|
+
/* @__PURE__ */ a("div", { className: "flex flex-row max-tablet:flex-col gap-[24px]", children: (r = e == null ? void 0 : e.cards) == null ? void 0 : r.map((t) => /* @__PURE__ */ a(
|
|
295
|
+
wt,
|
|
296
|
+
{
|
|
297
|
+
data: t
|
|
298
|
+
},
|
|
299
|
+
t.id
|
|
300
|
+
)) })
|
|
301
|
+
] }) });
|
|
302
|
+
};
|
|
303
|
+
Jt.propsToEdit = Yt;
|
|
304
|
+
const qt = {
|
|
305
|
+
type: "cards",
|
|
306
|
+
dataType: "array",
|
|
307
|
+
label: "Карточки",
|
|
308
|
+
data: {
|
|
309
|
+
title: le.TITLE,
|
|
310
|
+
description: le.DESCRIPTION,
|
|
311
|
+
image: le.FILE,
|
|
312
|
+
is_black: le.BOOLEAN,
|
|
313
|
+
variant: {
|
|
314
|
+
options: [
|
|
315
|
+
{
|
|
316
|
+
label: "Large",
|
|
317
|
+
value: lt.LARGE
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
label: "Small",
|
|
321
|
+
value: lt.SMALL
|
|
322
|
+
}
|
|
323
|
+
],
|
|
324
|
+
type: le.VARIANT
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
}, er = [qt, "title", "grid", vt], tr = ({
|
|
328
|
+
cards: e,
|
|
329
|
+
title: r,
|
|
330
|
+
grid: t,
|
|
331
|
+
button: l
|
|
332
|
+
}) => /* @__PURE__ */ a($, { children: /* @__PURE__ */ b("div", { className: "w-full flex flex-col items-center gap-6", children: [
|
|
333
|
+
r && /* @__PURE__ */ a(
|
|
334
|
+
"p",
|
|
335
|
+
{
|
|
336
|
+
className: `font-bold max-tablet:text-[26px] text-[44px] max-tablet:leading-[32px] leading-[42px]
|
|
337
|
+
mb-[24px] font-variant-numeric font-feature-settings`,
|
|
338
|
+
children: r
|
|
339
|
+
}
|
|
340
|
+
),
|
|
341
|
+
/* @__PURE__ */ a(
|
|
342
|
+
"div",
|
|
343
|
+
{
|
|
344
|
+
className: D(
|
|
345
|
+
`grid grid-cols-${t} items-stretch gap-6`,
|
|
346
|
+
"max-tablet:grid-cols-1"
|
|
347
|
+
),
|
|
348
|
+
children: e == null ? void 0 : e.map((o) => /* @__PURE__ */ a(
|
|
349
|
+
jt,
|
|
350
|
+
{
|
|
351
|
+
data: o
|
|
352
|
+
},
|
|
353
|
+
o == null ? void 0 : o.id
|
|
354
|
+
))
|
|
355
|
+
}
|
|
356
|
+
),
|
|
357
|
+
!!(l != null && l.length) && /* @__PURE__ */ a("div", { className: "flex flex-wrap gap-4", children: l.map((o, n) => /* @__PURE__ */ a(
|
|
358
|
+
"a",
|
|
359
|
+
{
|
|
360
|
+
href: (o == null ? void 0 : o.link) || "#",
|
|
361
|
+
className: D("w-fit z-10 max-tablet:w-full"),
|
|
362
|
+
target: "_blank",
|
|
363
|
+
rel: "noopener noreferrer",
|
|
364
|
+
children: /* @__PURE__ */ a(I, { variant: o.variant, children: o.text })
|
|
365
|
+
},
|
|
366
|
+
n
|
|
367
|
+
)) })
|
|
368
|
+
] }) });
|
|
369
|
+
tr.propsToEdit = er;
|
|
370
|
+
const rr = {
|
|
371
|
+
type: "buttons",
|
|
372
|
+
dataType: "array",
|
|
373
|
+
label: "Кнопки",
|
|
374
|
+
component: I,
|
|
375
|
+
data: vt
|
|
376
|
+
}, sr = [
|
|
377
|
+
"title",
|
|
378
|
+
"description",
|
|
379
|
+
"buttons",
|
|
380
|
+
"image",
|
|
381
|
+
"image_mob",
|
|
382
|
+
"logo",
|
|
383
|
+
"grid",
|
|
384
|
+
rr
|
|
385
|
+
], lr = ({
|
|
386
|
+
title: e,
|
|
387
|
+
description: r,
|
|
388
|
+
buttons: t,
|
|
389
|
+
image: l,
|
|
390
|
+
image_mob: o,
|
|
391
|
+
logo: n,
|
|
392
|
+
grid: u
|
|
393
|
+
}) => {
|
|
394
|
+
const d = (w, F) => F.length % 2 !== 0 && w === F.length - 1;
|
|
395
|
+
return /* @__PURE__ */ b("section", { children: [
|
|
396
|
+
/* @__PURE__ */ b($, { className: "flex flex-col items-center", children: [
|
|
397
|
+
n && /* @__PURE__ */ a(
|
|
398
|
+
ie,
|
|
399
|
+
{
|
|
400
|
+
src: n,
|
|
401
|
+
alt: e,
|
|
402
|
+
className: "mb-[36px] mt-[40px] w-[427px] flex items-center h-[94px] max-tablet:w-[100%] max-tablet:h-[45px] max-tablet:my-[12px] max-tablet:mb-[24px]",
|
|
403
|
+
imageStyles: "h-full w-full max-tablet:object-contain"
|
|
404
|
+
}
|
|
405
|
+
),
|
|
406
|
+
/* @__PURE__ */ a("h1", { className: "text-black2 text-[40px] font-bold leading-[50px] mb-[24px] text-center max-tablet:text-[26px] max-tablet:leading-[32px] max-tablet:mb-[20px]", children: e }),
|
|
407
|
+
r && /* @__PURE__ */ a("p", { className: "text-black2 text-center text-[20px] font-normal leading-[25px] mb-[32px] w-[75%] max-tablet:text-[16px] max-tablet:leading-[20px] max-tablet:w-full", children: r }),
|
|
408
|
+
/* @__PURE__ */ a(
|
|
409
|
+
"div",
|
|
410
|
+
{
|
|
411
|
+
className: `grid grid-cols-${u} items-center gap-[16px] mb-[60px]
|
|
412
|
+
max-tablet:grid-cols-1 max-tablet:w-full max-tablet:mb-[40px]`,
|
|
413
|
+
children: t == null ? void 0 : t.map((w, F) => /* @__PURE__ */ a(
|
|
414
|
+
"a",
|
|
415
|
+
{
|
|
416
|
+
href: w == null ? void 0 : w.button_link,
|
|
417
|
+
className: D("flex items-center", {
|
|
418
|
+
[`col-span-${u}`]: d(F, t)
|
|
419
|
+
}),
|
|
420
|
+
target: "_blank",
|
|
421
|
+
children: /* @__PURE__ */ a(I, { className: "font-[Inter] h-[56px] mx-auto px-[32px] py-[12px] max-tablet:px-[32px] max-tablet:py-[12px]", children: w == null ? void 0 : w.button_text })
|
|
422
|
+
}
|
|
423
|
+
))
|
|
424
|
+
}
|
|
425
|
+
)
|
|
426
|
+
] }),
|
|
427
|
+
l && /* @__PURE__ */ a(
|
|
428
|
+
ie,
|
|
429
|
+
{
|
|
430
|
+
src: l,
|
|
431
|
+
alt: e,
|
|
432
|
+
className: "w-full h-[450px] max-mobile:h-[320px] mb-[64px] block max-mobile::block",
|
|
433
|
+
imageStyles: "w-full h-full object-contain max-mobile:object-cover"
|
|
434
|
+
}
|
|
435
|
+
),
|
|
436
|
+
o && /* @__PURE__ */ a(
|
|
437
|
+
ie,
|
|
438
|
+
{
|
|
439
|
+
src: o,
|
|
440
|
+
alt: e,
|
|
441
|
+
className: "w-full h-[280px] hidden max-mobile::block",
|
|
442
|
+
imageStyles: "w-full h-full object-contain max-mobile:object-cover"
|
|
443
|
+
}
|
|
444
|
+
)
|
|
445
|
+
] });
|
|
446
|
+
};
|
|
447
|
+
lr.propsToEdit = sr;
|
|
448
|
+
var _e = (e) => e.type === "checkbox", pe = (e) => e instanceof Date, U = (e) => e == null;
|
|
449
|
+
const _t = (e) => typeof e == "object";
|
|
450
|
+
var S = (e) => !U(e) && !Array.isArray(e) && _t(e) && !pe(e), ir = (e) => S(e) && e.target ? _e(e.target) ? e.target.checked : e.target.value : e, ar = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, nr = (e, r) => e.has(ar(r)), or = (e) => {
|
|
451
|
+
const r = e.constructor && e.constructor.prototype;
|
|
452
|
+
return S(r) && r.hasOwnProperty("isPrototypeOf");
|
|
453
|
+
}, Pe = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
|
|
454
|
+
function R(e) {
|
|
455
|
+
let r;
|
|
456
|
+
const t = Array.isArray(e), l = typeof FileList < "u" ? e instanceof FileList : !1;
|
|
457
|
+
if (e instanceof Date)
|
|
458
|
+
r = new Date(e);
|
|
459
|
+
else if (e instanceof Set)
|
|
460
|
+
r = new Set(e);
|
|
461
|
+
else if (!(Pe && (e instanceof Blob || l)) && (t || S(e)))
|
|
462
|
+
if (r = t ? [] : {}, !t && !or(e))
|
|
463
|
+
r = e;
|
|
464
|
+
else
|
|
465
|
+
for (const o in e)
|
|
466
|
+
e.hasOwnProperty(o) && (r[o] = R(e[o]));
|
|
467
|
+
else
|
|
468
|
+
return e;
|
|
469
|
+
return r;
|
|
470
|
+
}
|
|
471
|
+
var Se = (e) => /^\w*$/.test(e), T = (e) => e === void 0, Ze = (e) => Array.isArray(e) ? e.filter(Boolean) : [], je = (e) => Ze(e.replace(/["|']|\]/g, "").split(/\.|\[/)), h = (e, r, t) => {
|
|
472
|
+
if (!r || !S(e))
|
|
473
|
+
return t;
|
|
474
|
+
const l = (Se(r) ? [r] : je(r)).reduce((o, n) => U(o) ? o : o[n], e);
|
|
475
|
+
return T(l) || l === e ? T(e[r]) ? t : e[r] : l;
|
|
476
|
+
}, q = (e) => typeof e == "boolean", k = (e, r, t) => {
|
|
477
|
+
let l = -1;
|
|
478
|
+
const o = Se(r) ? [r] : je(r), n = o.length, u = n - 1;
|
|
479
|
+
for (; ++l < n; ) {
|
|
480
|
+
const d = o[l];
|
|
481
|
+
let w = t;
|
|
482
|
+
if (l !== u) {
|
|
483
|
+
const F = e[d];
|
|
484
|
+
w = S(F) || Array.isArray(F) ? F : isNaN(+o[l + 1]) ? {} : [];
|
|
485
|
+
}
|
|
486
|
+
if (d === "__proto__" || d === "constructor" || d === "prototype")
|
|
487
|
+
return;
|
|
488
|
+
e[d] = w, e = e[d];
|
|
489
|
+
}
|
|
490
|
+
};
|
|
491
|
+
const it = {
|
|
492
|
+
BLUR: "blur",
|
|
493
|
+
FOCUS_OUT: "focusout",
|
|
494
|
+
CHANGE: "change"
|
|
495
|
+
}, K = {
|
|
496
|
+
onBlur: "onBlur",
|
|
497
|
+
onChange: "onChange",
|
|
498
|
+
onSubmit: "onSubmit",
|
|
499
|
+
onTouched: "onTouched",
|
|
500
|
+
all: "all"
|
|
501
|
+
}, re = {
|
|
502
|
+
max: "max",
|
|
503
|
+
min: "min",
|
|
504
|
+
maxLength: "maxLength",
|
|
505
|
+
minLength: "minLength",
|
|
506
|
+
pattern: "pattern",
|
|
507
|
+
required: "required",
|
|
508
|
+
validate: "validate"
|
|
509
|
+
}, Ct = G.createContext(null);
|
|
510
|
+
Ct.displayName = "HookFormContext";
|
|
511
|
+
const cr = (e) => {
|
|
512
|
+
const { children: r, ...t } = e;
|
|
513
|
+
return G.createElement(Ct.Provider, { value: t }, r);
|
|
514
|
+
};
|
|
515
|
+
var dr = (e, r, t, l = !0) => {
|
|
516
|
+
const o = {
|
|
517
|
+
defaultValues: r._defaultValues
|
|
518
|
+
};
|
|
519
|
+
for (const n in e)
|
|
520
|
+
Object.defineProperty(o, n, {
|
|
521
|
+
get: () => {
|
|
522
|
+
const u = n;
|
|
523
|
+
return r._proxyFormState[u] !== K.all && (r._proxyFormState[u] = !l || K.all), t && (t[u] = !0), e[u];
|
|
524
|
+
}
|
|
525
|
+
});
|
|
526
|
+
return o;
|
|
527
|
+
};
|
|
528
|
+
const fr = typeof window < "u" ? rt.useLayoutEffect : rt.useEffect;
|
|
529
|
+
var ee = (e) => typeof e == "string", ur = (e, r, t, l, o) => ee(e) ? (l && r.watch.add(e), h(t, e, o)) : Array.isArray(e) ? e.map((n) => (l && r.watch.add(n), h(t, n))) : (l && (r.watchAll = !0), t), xr = (e, r, t, l, o) => r ? {
|
|
530
|
+
...t[e],
|
|
531
|
+
types: {
|
|
532
|
+
...t[e] && t[e].types ? t[e].types : {},
|
|
533
|
+
[l]: o || !0
|
|
534
|
+
}
|
|
535
|
+
} : {}, ve = (e) => Array.isArray(e) ? e : [e], at = () => {
|
|
536
|
+
let e = [];
|
|
537
|
+
return {
|
|
538
|
+
get observers() {
|
|
539
|
+
return e;
|
|
540
|
+
},
|
|
541
|
+
next: (o) => {
|
|
542
|
+
for (const n of e)
|
|
543
|
+
n.next && n.next(o);
|
|
544
|
+
},
|
|
545
|
+
subscribe: (o) => (e.push(o), {
|
|
546
|
+
unsubscribe: () => {
|
|
547
|
+
e = e.filter((n) => n !== o);
|
|
548
|
+
}
|
|
549
|
+
}),
|
|
550
|
+
unsubscribe: () => {
|
|
551
|
+
e = [];
|
|
552
|
+
}
|
|
553
|
+
};
|
|
554
|
+
}, Ue = (e) => U(e) || !_t(e);
|
|
555
|
+
function fe(e, r) {
|
|
556
|
+
if (Ue(e) || Ue(r))
|
|
557
|
+
return e === r;
|
|
558
|
+
if (pe(e) && pe(r))
|
|
559
|
+
return e.getTime() === r.getTime();
|
|
560
|
+
const t = Object.keys(e), l = Object.keys(r);
|
|
561
|
+
if (t.length !== l.length)
|
|
562
|
+
return !1;
|
|
563
|
+
for (const o of t) {
|
|
564
|
+
const n = e[o];
|
|
565
|
+
if (!l.includes(o))
|
|
566
|
+
return !1;
|
|
567
|
+
if (o !== "ref") {
|
|
568
|
+
const u = r[o];
|
|
569
|
+
if (pe(n) && pe(u) || S(n) && S(u) || Array.isArray(n) && Array.isArray(u) ? !fe(n, u) : n !== u)
|
|
570
|
+
return !1;
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
return !0;
|
|
574
|
+
}
|
|
575
|
+
var j = (e) => S(e) && !Object.keys(e).length, $e = (e) => e.type === "file", Q = (e) => typeof e == "function", Fe = (e) => {
|
|
576
|
+
if (!Pe)
|
|
577
|
+
return !1;
|
|
578
|
+
const r = e ? e.ownerDocument : 0;
|
|
579
|
+
return e instanceof (r && r.defaultView ? r.defaultView.HTMLElement : HTMLElement);
|
|
580
|
+
}, Nt = (e) => e.type === "select-multiple", ze = (e) => e.type === "radio", pr = (e) => ze(e) || _e(e), He = (e) => Fe(e) && e.isConnected;
|
|
581
|
+
function hr(e, r) {
|
|
582
|
+
const t = r.slice(0, -1).length;
|
|
583
|
+
let l = 0;
|
|
584
|
+
for (; l < t; )
|
|
585
|
+
e = T(e) ? l++ : e[r[l++]];
|
|
586
|
+
return e;
|
|
587
|
+
}
|
|
588
|
+
function gr(e) {
|
|
589
|
+
for (const r in e)
|
|
590
|
+
if (e.hasOwnProperty(r) && !T(e[r]))
|
|
591
|
+
return !1;
|
|
592
|
+
return !0;
|
|
593
|
+
}
|
|
594
|
+
function B(e, r) {
|
|
595
|
+
const t = Array.isArray(r) ? r : Se(r) ? [r] : je(r), l = t.length === 1 ? e : hr(e, t), o = t.length - 1, n = t[o];
|
|
596
|
+
return l && delete l[n], o !== 0 && (S(l) && j(l) || Array.isArray(l) && gr(l)) && B(e, t.slice(0, -1)), e;
|
|
597
|
+
}
|
|
598
|
+
var Vt = (e) => {
|
|
599
|
+
for (const r in e)
|
|
600
|
+
if (Q(e[r]))
|
|
601
|
+
return !0;
|
|
602
|
+
return !1;
|
|
603
|
+
};
|
|
604
|
+
function Ee(e, r = {}) {
|
|
605
|
+
const t = Array.isArray(e);
|
|
606
|
+
if (S(e) || t)
|
|
607
|
+
for (const l in e)
|
|
608
|
+
Array.isArray(e[l]) || S(e[l]) && !Vt(e[l]) ? (r[l] = Array.isArray(e[l]) ? [] : {}, Ee(e[l], r[l])) : U(e[l]) || (r[l] = !0);
|
|
609
|
+
return r;
|
|
610
|
+
}
|
|
611
|
+
function Lt(e, r, t) {
|
|
612
|
+
const l = Array.isArray(e);
|
|
613
|
+
if (S(e) || l)
|
|
614
|
+
for (const o in e)
|
|
615
|
+
Array.isArray(e[o]) || S(e[o]) && !Vt(e[o]) ? T(r) || Ue(t[o]) ? t[o] = Array.isArray(e[o]) ? Ee(e[o], []) : { ...Ee(e[o]) } : Lt(e[o], U(r) ? {} : r[o], t[o]) : t[o] = !fe(e[o], r[o]);
|
|
616
|
+
return t;
|
|
617
|
+
}
|
|
618
|
+
var me = (e, r) => Lt(e, r, Ee(r));
|
|
619
|
+
const nt = {
|
|
620
|
+
value: !1,
|
|
621
|
+
isValid: !1
|
|
622
|
+
}, ot = { value: !0, isValid: !0 };
|
|
623
|
+
var kt = (e) => {
|
|
624
|
+
if (Array.isArray(e)) {
|
|
625
|
+
if (e.length > 1) {
|
|
626
|
+
const r = e.filter((t) => t && t.checked && !t.disabled).map((t) => t.value);
|
|
627
|
+
return { value: r, isValid: !!r.length };
|
|
628
|
+
}
|
|
629
|
+
return e[0].checked && !e[0].disabled ? (
|
|
630
|
+
// @ts-expect-error expected to work in the browser
|
|
631
|
+
e[0].attributes && !T(e[0].attributes.value) ? T(e[0].value) || e[0].value === "" ? ot : { value: e[0].value, isValid: !0 } : ot
|
|
632
|
+
) : nt;
|
|
633
|
+
}
|
|
634
|
+
return nt;
|
|
635
|
+
}, Ft = (e, { valueAsNumber: r, valueAsDate: t, setValueAs: l }) => T(e) ? e : r ? e === "" ? NaN : e && +e : t && ee(e) ? new Date(e) : l ? l(e) : e;
|
|
636
|
+
const ct = {
|
|
637
|
+
isValid: !1,
|
|
638
|
+
value: null
|
|
639
|
+
};
|
|
640
|
+
var Et = (e) => Array.isArray(e) ? e.reduce((r, t) => t && t.checked && !t.disabled ? {
|
|
641
|
+
isValid: !0,
|
|
642
|
+
value: t.value
|
|
643
|
+
} : r, ct) : ct;
|
|
644
|
+
function dt(e) {
|
|
645
|
+
const r = e.ref;
|
|
646
|
+
return $e(r) ? r.files : ze(r) ? Et(e.refs).value : Nt(r) ? [...r.selectedOptions].map(({ value: t }) => t) : _e(r) ? kt(e.refs).value : Ft(T(r.value) ? e.ref.value : r.value, e);
|
|
647
|
+
}
|
|
648
|
+
var br = (e, r, t, l) => {
|
|
649
|
+
const o = {};
|
|
650
|
+
for (const n of e) {
|
|
651
|
+
const u = h(r, n);
|
|
652
|
+
u && k(o, n, u._f);
|
|
653
|
+
}
|
|
654
|
+
return {
|
|
655
|
+
criteriaMode: t,
|
|
656
|
+
names: [...e],
|
|
657
|
+
fields: o,
|
|
658
|
+
shouldUseNativeValidation: l
|
|
659
|
+
};
|
|
660
|
+
}, Ae = (e) => e instanceof RegExp, ye = (e) => T(e) ? e : Ae(e) ? e.source : S(e) ? Ae(e.value) ? e.value.source : e.value : e, ft = (e) => ({
|
|
661
|
+
isOnSubmit: !e || e === K.onSubmit,
|
|
662
|
+
isOnBlur: e === K.onBlur,
|
|
663
|
+
isOnChange: e === K.onChange,
|
|
664
|
+
isOnAll: e === K.all,
|
|
665
|
+
isOnTouch: e === K.onTouched
|
|
666
|
+
});
|
|
667
|
+
const ut = "AsyncFunction";
|
|
668
|
+
var mr = (e) => !!e && !!e.validate && !!(Q(e.validate) && e.validate.constructor.name === ut || S(e.validate) && Object.values(e.validate).find((r) => r.constructor.name === ut)), yr = (e) => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate), xt = (e, r, t) => !t && (r.watchAll || r.watch.has(e) || [...r.watch].some((l) => e.startsWith(l) && /^\.\w+/.test(e.slice(l.length))));
|
|
669
|
+
const we = (e, r, t, l) => {
|
|
670
|
+
for (const o of t || Object.keys(e)) {
|
|
671
|
+
const n = h(e, o);
|
|
672
|
+
if (n) {
|
|
673
|
+
const { _f: u, ...d } = n;
|
|
674
|
+
if (u) {
|
|
675
|
+
if (u.refs && u.refs[0] && r(u.refs[0], o) && !l)
|
|
676
|
+
return !0;
|
|
677
|
+
if (u.ref && r(u.ref, u.name) && !l)
|
|
678
|
+
return !0;
|
|
679
|
+
if (we(d, r))
|
|
680
|
+
break;
|
|
681
|
+
} else if (S(d) && we(d, r))
|
|
682
|
+
break;
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
};
|
|
686
|
+
function pt(e, r, t) {
|
|
687
|
+
const l = h(e, t);
|
|
688
|
+
if (l || Se(t))
|
|
689
|
+
return {
|
|
690
|
+
error: l,
|
|
691
|
+
name: t
|
|
692
|
+
};
|
|
693
|
+
const o = t.split(".");
|
|
694
|
+
for (; o.length; ) {
|
|
695
|
+
const n = o.join("."), u = h(r, n), d = h(e, n);
|
|
696
|
+
if (u && !Array.isArray(u) && t !== n)
|
|
697
|
+
return { name: t };
|
|
698
|
+
if (d && d.type)
|
|
699
|
+
return {
|
|
700
|
+
name: n,
|
|
701
|
+
error: d
|
|
702
|
+
};
|
|
703
|
+
if (d && d.root && d.root.type)
|
|
704
|
+
return {
|
|
705
|
+
name: `${n}.root`,
|
|
706
|
+
error: d.root
|
|
707
|
+
};
|
|
708
|
+
o.pop();
|
|
709
|
+
}
|
|
710
|
+
return {
|
|
711
|
+
name: t
|
|
712
|
+
};
|
|
713
|
+
}
|
|
714
|
+
var vr = (e, r, t, l) => {
|
|
715
|
+
t(e);
|
|
716
|
+
const { name: o, ...n } = e;
|
|
717
|
+
return j(n) || Object.keys(n).length >= Object.keys(r).length || Object.keys(n).find((u) => r[u] === (!l || K.all));
|
|
718
|
+
}, wr = (e, r, t) => !e || !r || e === r || ve(e).some((l) => l && (t ? l === r : l.startsWith(r) || r.startsWith(l))), _r = (e, r, t, l, o) => o.isOnAll ? !1 : !t && o.isOnTouch ? !(r || e) : (t ? l.isOnBlur : o.isOnBlur) ? !e : (t ? l.isOnChange : o.isOnChange) ? e : !0, Cr = (e, r) => !Ze(h(e, r)).length && B(e, r), Nr = (e, r, t) => {
|
|
719
|
+
const l = ve(h(e, t));
|
|
720
|
+
return k(l, "root", r[t]), k(e, t, l), e;
|
|
721
|
+
}, ke = (e) => ee(e);
|
|
722
|
+
function ht(e, r, t = "validate") {
|
|
723
|
+
if (ke(e) || Array.isArray(e) && e.every(ke) || q(e) && !e)
|
|
724
|
+
return {
|
|
725
|
+
type: t,
|
|
726
|
+
message: ke(e) ? e : "",
|
|
727
|
+
ref: r
|
|
728
|
+
};
|
|
729
|
+
}
|
|
730
|
+
var ge = (e) => S(e) && !Ae(e) ? e : {
|
|
731
|
+
value: e,
|
|
732
|
+
message: ""
|
|
733
|
+
}, gt = async (e, r, t, l, o, n) => {
|
|
734
|
+
const { ref: u, refs: d, required: w, maxLength: F, minLength: y, min: V, max: m, pattern: ne, validate: P, name: E, valueAsNumber: oe, mount: De } = e._f, _ = h(t, E);
|
|
735
|
+
if (!De || r.has(E))
|
|
736
|
+
return {};
|
|
737
|
+
const te = d ? d[0] : u, X = (v) => {
|
|
738
|
+
o && te.reportValidity && (te.setCustomValidity(q(v) ? "" : v || ""), te.reportValidity());
|
|
739
|
+
}, M = {}, Ce = ze(u), ce = _e(u), Te = Ce || ce, W = (oe || $e(u)) && T(u.value) && T(_) || Fe(u) && u.value === "" || _ === "" || Array.isArray(_) && !_.length, xe = xr.bind(null, E, l, M), Y = (v, N, A, H = re.maxLength, Z = re.minLength) => {
|
|
740
|
+
const J = v ? N : A;
|
|
741
|
+
M[E] = {
|
|
742
|
+
type: v ? H : Z,
|
|
743
|
+
message: J,
|
|
744
|
+
ref: u,
|
|
745
|
+
...xe(v ? H : Z, J)
|
|
746
|
+
};
|
|
747
|
+
};
|
|
748
|
+
if (n ? !Array.isArray(_) || !_.length : w && (!Te && (W || U(_)) || q(_) && !_ || ce && !kt(d).isValid || Ce && !Et(d).isValid)) {
|
|
749
|
+
const { value: v, message: N } = ke(w) ? { value: !!w, message: w } : ge(w);
|
|
750
|
+
if (v && (M[E] = {
|
|
751
|
+
type: re.required,
|
|
752
|
+
message: N,
|
|
753
|
+
ref: te,
|
|
754
|
+
...xe(re.required, N)
|
|
755
|
+
}, !l))
|
|
756
|
+
return X(N), M;
|
|
757
|
+
}
|
|
758
|
+
if (!W && (!U(V) || !U(m))) {
|
|
759
|
+
let v, N;
|
|
760
|
+
const A = ge(m), H = ge(V);
|
|
761
|
+
if (!U(_) && !isNaN(_)) {
|
|
762
|
+
const Z = u.valueAsNumber || _ && +_;
|
|
763
|
+
U(A.value) || (v = Z > A.value), U(H.value) || (N = Z < H.value);
|
|
764
|
+
} else {
|
|
765
|
+
const Z = u.valueAsDate || new Date(_), J = (Ne) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + Ne), be = u.type == "time", he = u.type == "week";
|
|
766
|
+
ee(A.value) && _ && (v = be ? J(_) > J(A.value) : he ? _ > A.value : Z > new Date(A.value)), ee(H.value) && _ && (N = be ? J(_) < J(H.value) : he ? _ < H.value : Z < new Date(H.value));
|
|
767
|
+
}
|
|
768
|
+
if ((v || N) && (Y(!!v, A.message, H.message, re.max, re.min), !l))
|
|
769
|
+
return X(M[E].message), M;
|
|
770
|
+
}
|
|
771
|
+
if ((F || y) && !W && (ee(_) || n && Array.isArray(_))) {
|
|
772
|
+
const v = ge(F), N = ge(y), A = !U(v.value) && _.length > +v.value, H = !U(N.value) && _.length < +N.value;
|
|
773
|
+
if ((A || H) && (Y(A, v.message, N.message), !l))
|
|
774
|
+
return X(M[E].message), M;
|
|
775
|
+
}
|
|
776
|
+
if (ne && !W && ee(_)) {
|
|
777
|
+
const { value: v, message: N } = ge(ne);
|
|
778
|
+
if (Ae(v) && !_.match(v) && (M[E] = {
|
|
779
|
+
type: re.pattern,
|
|
780
|
+
message: N,
|
|
781
|
+
ref: u,
|
|
782
|
+
...xe(re.pattern, N)
|
|
783
|
+
}, !l))
|
|
784
|
+
return X(N), M;
|
|
785
|
+
}
|
|
786
|
+
if (P) {
|
|
787
|
+
if (Q(P)) {
|
|
788
|
+
const v = await P(_, t), N = ht(v, te);
|
|
789
|
+
if (N && (M[E] = {
|
|
790
|
+
...N,
|
|
791
|
+
...xe(re.validate, N.message)
|
|
792
|
+
}, !l))
|
|
793
|
+
return X(N.message), M;
|
|
794
|
+
} else if (S(P)) {
|
|
795
|
+
let v = {};
|
|
796
|
+
for (const N in P) {
|
|
797
|
+
if (!j(v) && !l)
|
|
798
|
+
break;
|
|
799
|
+
const A = ht(await P[N](_, t), te, N);
|
|
800
|
+
A && (v = {
|
|
801
|
+
...A,
|
|
802
|
+
...xe(N, A.message)
|
|
803
|
+
}, X(A.message), l && (M[E] = v));
|
|
804
|
+
}
|
|
805
|
+
if (!j(v) && (M[E] = {
|
|
806
|
+
ref: te,
|
|
807
|
+
...v
|
|
808
|
+
}, !l))
|
|
809
|
+
return M;
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
return X(!0), M;
|
|
813
|
+
};
|
|
814
|
+
const Vr = {
|
|
815
|
+
mode: K.onSubmit,
|
|
816
|
+
reValidateMode: K.onChange,
|
|
817
|
+
shouldFocusError: !0
|
|
818
|
+
};
|
|
819
|
+
function Lr(e = {}) {
|
|
820
|
+
let r = {
|
|
821
|
+
...Vr,
|
|
822
|
+
...e
|
|
823
|
+
}, t = {
|
|
824
|
+
submitCount: 0,
|
|
825
|
+
isDirty: !1,
|
|
826
|
+
isReady: !1,
|
|
827
|
+
isLoading: Q(r.defaultValues),
|
|
828
|
+
isValidating: !1,
|
|
829
|
+
isSubmitted: !1,
|
|
830
|
+
isSubmitting: !1,
|
|
831
|
+
isSubmitSuccessful: !1,
|
|
832
|
+
isValid: !1,
|
|
833
|
+
touchedFields: {},
|
|
834
|
+
dirtyFields: {},
|
|
835
|
+
validatingFields: {},
|
|
836
|
+
errors: r.errors || {},
|
|
837
|
+
disabled: r.disabled || !1
|
|
838
|
+
};
|
|
839
|
+
const l = {};
|
|
840
|
+
let o = S(r.defaultValues) || S(r.values) ? R(r.defaultValues || r.values) || {} : {}, n = r.shouldUnregister ? {} : R(o), u = {
|
|
841
|
+
action: !1,
|
|
842
|
+
mount: !1,
|
|
843
|
+
watch: !1
|
|
844
|
+
}, d = {
|
|
845
|
+
mount: /* @__PURE__ */ new Set(),
|
|
846
|
+
disabled: /* @__PURE__ */ new Set(),
|
|
847
|
+
unMount: /* @__PURE__ */ new Set(),
|
|
848
|
+
array: /* @__PURE__ */ new Set(),
|
|
849
|
+
watch: /* @__PURE__ */ new Set()
|
|
850
|
+
}, w, F = 0;
|
|
851
|
+
const y = {
|
|
852
|
+
isDirty: !1,
|
|
853
|
+
dirtyFields: !1,
|
|
854
|
+
validatingFields: !1,
|
|
855
|
+
touchedFields: !1,
|
|
856
|
+
isValidating: !1,
|
|
857
|
+
isValid: !1,
|
|
858
|
+
errors: !1
|
|
859
|
+
};
|
|
860
|
+
let V = {
|
|
861
|
+
...y
|
|
862
|
+
};
|
|
863
|
+
const m = {
|
|
864
|
+
array: at(),
|
|
865
|
+
state: at()
|
|
866
|
+
}, ne = r.criteriaMode === K.all, P = (s) => (i) => {
|
|
867
|
+
clearTimeout(F), F = setTimeout(s, i);
|
|
868
|
+
}, E = async (s) => {
|
|
869
|
+
if (!r.disabled && (y.isValid || V.isValid || s)) {
|
|
870
|
+
const i = r.resolver ? j((await ce()).errors) : await W(l, !0);
|
|
871
|
+
i !== t.isValid && m.state.next({
|
|
872
|
+
isValid: i
|
|
873
|
+
});
|
|
874
|
+
}
|
|
875
|
+
}, oe = (s, i) => {
|
|
876
|
+
!r.disabled && (y.isValidating || y.validatingFields || V.isValidating || V.validatingFields) && ((s || Array.from(d.mount)).forEach((c) => {
|
|
877
|
+
c && (i ? k(t.validatingFields, c, i) : B(t.validatingFields, c));
|
|
878
|
+
}), m.state.next({
|
|
879
|
+
validatingFields: t.validatingFields,
|
|
880
|
+
isValidating: !j(t.validatingFields)
|
|
881
|
+
}));
|
|
882
|
+
}, De = (s, i = [], c, p, x = !0, f = !0) => {
|
|
883
|
+
if (p && c && !r.disabled) {
|
|
884
|
+
if (u.action = !0, f && Array.isArray(h(l, s))) {
|
|
885
|
+
const g = c(h(l, s), p.argA, p.argB);
|
|
886
|
+
x && k(l, s, g);
|
|
887
|
+
}
|
|
888
|
+
if (f && Array.isArray(h(t.errors, s))) {
|
|
889
|
+
const g = c(h(t.errors, s), p.argA, p.argB);
|
|
890
|
+
x && k(t.errors, s, g), Cr(t.errors, s);
|
|
891
|
+
}
|
|
892
|
+
if ((y.touchedFields || V.touchedFields) && f && Array.isArray(h(t.touchedFields, s))) {
|
|
893
|
+
const g = c(h(t.touchedFields, s), p.argA, p.argB);
|
|
894
|
+
x && k(t.touchedFields, s, g);
|
|
895
|
+
}
|
|
896
|
+
(y.dirtyFields || V.dirtyFields) && (t.dirtyFields = me(o, n)), m.state.next({
|
|
897
|
+
name: s,
|
|
898
|
+
isDirty: Y(s, i),
|
|
899
|
+
dirtyFields: t.dirtyFields,
|
|
900
|
+
errors: t.errors,
|
|
901
|
+
isValid: t.isValid
|
|
902
|
+
});
|
|
903
|
+
} else
|
|
904
|
+
k(n, s, i);
|
|
905
|
+
}, _ = (s, i) => {
|
|
906
|
+
k(t.errors, s, i), m.state.next({
|
|
907
|
+
errors: t.errors
|
|
908
|
+
});
|
|
909
|
+
}, te = (s) => {
|
|
910
|
+
t.errors = s, m.state.next({
|
|
911
|
+
errors: t.errors,
|
|
912
|
+
isValid: !1
|
|
913
|
+
});
|
|
914
|
+
}, X = (s, i, c, p) => {
|
|
915
|
+
const x = h(l, s);
|
|
916
|
+
if (x) {
|
|
917
|
+
const f = h(n, s, T(c) ? h(o, s) : c);
|
|
918
|
+
T(f) || p && p.defaultChecked || i ? k(n, s, i ? f : dt(x._f)) : A(s, f), u.mount && E();
|
|
919
|
+
}
|
|
920
|
+
}, M = (s, i, c, p, x) => {
|
|
921
|
+
let f = !1, g = !1;
|
|
922
|
+
const C = {
|
|
923
|
+
name: s
|
|
924
|
+
};
|
|
925
|
+
if (!r.disabled) {
|
|
926
|
+
if (!c || p) {
|
|
927
|
+
(y.isDirty || V.isDirty) && (g = t.isDirty, t.isDirty = C.isDirty = Y(), f = g !== C.isDirty);
|
|
928
|
+
const L = fe(h(o, s), i);
|
|
929
|
+
g = !!h(t.dirtyFields, s), L ? B(t.dirtyFields, s) : k(t.dirtyFields, s, !0), C.dirtyFields = t.dirtyFields, f = f || (y.dirtyFields || V.dirtyFields) && g !== !L;
|
|
930
|
+
}
|
|
931
|
+
if (c) {
|
|
932
|
+
const L = h(t.touchedFields, s);
|
|
933
|
+
L || (k(t.touchedFields, s, c), C.touchedFields = t.touchedFields, f = f || (y.touchedFields || V.touchedFields) && L !== c);
|
|
934
|
+
}
|
|
935
|
+
f && x && m.state.next(C);
|
|
936
|
+
}
|
|
937
|
+
return f ? C : {};
|
|
938
|
+
}, Ce = (s, i, c, p) => {
|
|
939
|
+
const x = h(t.errors, s), f = (y.isValid || V.isValid) && q(i) && t.isValid !== i;
|
|
940
|
+
if (r.delayError && c ? (w = P(() => _(s, c)), w(r.delayError)) : (clearTimeout(F), w = null, c ? k(t.errors, s, c) : B(t.errors, s)), (c ? !fe(x, c) : x) || !j(p) || f) {
|
|
941
|
+
const g = {
|
|
942
|
+
...p,
|
|
943
|
+
...f && q(i) ? { isValid: i } : {},
|
|
944
|
+
errors: t.errors,
|
|
945
|
+
name: s
|
|
946
|
+
};
|
|
947
|
+
t = {
|
|
948
|
+
...t,
|
|
949
|
+
...g
|
|
950
|
+
}, m.state.next(g);
|
|
951
|
+
}
|
|
952
|
+
}, ce = async (s) => {
|
|
953
|
+
oe(s, !0);
|
|
954
|
+
const i = await r.resolver(n, r.context, br(s || d.mount, l, r.criteriaMode, r.shouldUseNativeValidation));
|
|
955
|
+
return oe(s), i;
|
|
956
|
+
}, Te = async (s) => {
|
|
957
|
+
const { errors: i } = await ce(s);
|
|
958
|
+
if (s)
|
|
959
|
+
for (const c of s) {
|
|
960
|
+
const p = h(i, c);
|
|
961
|
+
p ? k(t.errors, c, p) : B(t.errors, c);
|
|
962
|
+
}
|
|
963
|
+
else
|
|
964
|
+
t.errors = i;
|
|
965
|
+
return i;
|
|
966
|
+
}, W = async (s, i, c = {
|
|
967
|
+
valid: !0
|
|
968
|
+
}) => {
|
|
969
|
+
for (const p in s) {
|
|
970
|
+
const x = s[p];
|
|
971
|
+
if (x) {
|
|
972
|
+
const { _f: f, ...g } = x;
|
|
973
|
+
if (f) {
|
|
974
|
+
const C = d.array.has(f.name), L = x._f && mr(x._f);
|
|
975
|
+
L && y.validatingFields && oe([p], !0);
|
|
976
|
+
const z = await gt(x, d.disabled, n, ne, r.shouldUseNativeValidation && !i, C);
|
|
977
|
+
if (L && y.validatingFields && oe([p]), z[f.name] && (c.valid = !1, i))
|
|
978
|
+
break;
|
|
979
|
+
!i && (h(z, f.name) ? C ? Nr(t.errors, z, f.name) : k(t.errors, f.name, z[f.name]) : B(t.errors, f.name));
|
|
980
|
+
}
|
|
981
|
+
!j(g) && await W(g, i, c);
|
|
982
|
+
}
|
|
983
|
+
}
|
|
984
|
+
return c.valid;
|
|
985
|
+
}, xe = () => {
|
|
986
|
+
for (const s of d.unMount) {
|
|
987
|
+
const i = h(l, s);
|
|
988
|
+
i && (i._f.refs ? i._f.refs.every((c) => !He(c)) : !He(i._f.ref)) && Me(s);
|
|
989
|
+
}
|
|
990
|
+
d.unMount = /* @__PURE__ */ new Set();
|
|
991
|
+
}, Y = (s, i) => !r.disabled && (s && i && k(n, s, i), !fe(Ne(), o)), v = (s, i, c) => ur(s, d, {
|
|
992
|
+
...u.mount ? n : T(i) ? o : ee(s) ? { [s]: i } : i
|
|
993
|
+
}, c, i), N = (s) => Ze(h(u.mount ? n : o, s, r.shouldUnregister ? h(o, s, []) : [])), A = (s, i, c = {}) => {
|
|
994
|
+
const p = h(l, s);
|
|
995
|
+
let x = i;
|
|
996
|
+
if (p) {
|
|
997
|
+
const f = p._f;
|
|
998
|
+
f && (!f.disabled && k(n, s, Ft(i, f)), x = Fe(f.ref) && U(i) ? "" : i, Nt(f.ref) ? [...f.ref.options].forEach((g) => g.selected = x.includes(g.value)) : f.refs ? _e(f.ref) ? f.refs.forEach((g) => {
|
|
999
|
+
(!g.defaultChecked || !g.disabled) && (Array.isArray(x) ? g.checked = !!x.find((C) => C === g.value) : g.checked = x === g.value || !!x);
|
|
1000
|
+
}) : f.refs.forEach((g) => g.checked = g.value === x) : $e(f.ref) ? f.ref.value = "" : (f.ref.value = x, f.ref.type || m.state.next({
|
|
1001
|
+
name: s,
|
|
1002
|
+
values: R(n)
|
|
1003
|
+
})));
|
|
1004
|
+
}
|
|
1005
|
+
(c.shouldDirty || c.shouldTouch) && M(s, x, c.shouldTouch, c.shouldDirty, !0), c.shouldValidate && he(s);
|
|
1006
|
+
}, H = (s, i, c) => {
|
|
1007
|
+
for (const p in i) {
|
|
1008
|
+
if (!i.hasOwnProperty(p))
|
|
1009
|
+
return;
|
|
1010
|
+
const x = i[p], f = s + "." + p, g = h(l, f);
|
|
1011
|
+
(d.array.has(s) || S(x) || g && !g._f) && !pe(x) ? H(f, x, c) : A(f, x, c);
|
|
1012
|
+
}
|
|
1013
|
+
}, Z = (s, i, c = {}) => {
|
|
1014
|
+
const p = h(l, s), x = d.array.has(s), f = R(i);
|
|
1015
|
+
k(n, s, f), x ? (m.array.next({
|
|
1016
|
+
name: s,
|
|
1017
|
+
values: R(n)
|
|
1018
|
+
}), (y.isDirty || y.dirtyFields || V.isDirty || V.dirtyFields) && c.shouldDirty && m.state.next({
|
|
1019
|
+
name: s,
|
|
1020
|
+
dirtyFields: me(o, n),
|
|
1021
|
+
isDirty: Y(s, f)
|
|
1022
|
+
})) : p && !p._f && !U(f) ? H(s, f, c) : A(s, f, c), xt(s, d) && m.state.next({ ...t }), m.state.next({
|
|
1023
|
+
name: u.mount ? s : void 0,
|
|
1024
|
+
values: R(n)
|
|
1025
|
+
});
|
|
1026
|
+
}, J = async (s) => {
|
|
1027
|
+
u.mount = !0;
|
|
1028
|
+
const i = s.target;
|
|
1029
|
+
let c = i.name, p = !0;
|
|
1030
|
+
const x = h(l, c), f = (L) => {
|
|
1031
|
+
p = Number.isNaN(L) || pe(L) && isNaN(L.getTime()) || fe(L, h(n, c, L));
|
|
1032
|
+
}, g = ft(r.mode), C = ft(r.reValidateMode);
|
|
1033
|
+
if (x) {
|
|
1034
|
+
let L, z;
|
|
1035
|
+
const Ve = i.type ? dt(x._f) : ir(s), de = s.type === it.BLUR || s.type === it.FOCUS_OUT, Rt = !yr(x._f) && !r.resolver && !h(t.errors, c) && !x._f.deps || _r(de, h(t.touchedFields, c), t.isSubmitted, C, g), Oe = xt(c, d, de);
|
|
1036
|
+
k(n, c, Ve), de ? (x._f.onBlur && x._f.onBlur(s), w && w(0)) : x._f.onChange && x._f.onChange(s);
|
|
1037
|
+
const Re = M(c, Ve, de), Ht = !j(Re) || Oe;
|
|
1038
|
+
if (!de && m.state.next({
|
|
1039
|
+
name: c,
|
|
1040
|
+
type: s.type,
|
|
1041
|
+
values: R(n)
|
|
1042
|
+
}), Rt)
|
|
1043
|
+
return (y.isValid || V.isValid) && (r.mode === "onBlur" ? de && E() : de || E()), Ht && m.state.next({ name: c, ...Oe ? {} : Re });
|
|
1044
|
+
if (!de && Oe && m.state.next({ ...t }), r.resolver) {
|
|
1045
|
+
const { errors: et } = await ce([c]);
|
|
1046
|
+
if (f(Ve), p) {
|
|
1047
|
+
const Ut = pt(t.errors, l, c), tt = pt(et, l, Ut.name || c);
|
|
1048
|
+
L = tt.error, c = tt.name, z = j(et);
|
|
1049
|
+
}
|
|
1050
|
+
} else
|
|
1051
|
+
oe([c], !0), L = (await gt(x, d.disabled, n, ne, r.shouldUseNativeValidation))[c], oe([c]), f(Ve), p && (L ? z = !1 : (y.isValid || V.isValid) && (z = await W(l, !0)));
|
|
1052
|
+
p && (x._f.deps && he(x._f.deps), Ce(c, z, L, Re));
|
|
1053
|
+
}
|
|
1054
|
+
}, be = (s, i) => {
|
|
1055
|
+
if (h(t.errors, i) && s.focus)
|
|
1056
|
+
return s.focus(), 1;
|
|
1057
|
+
}, he = async (s, i = {}) => {
|
|
1058
|
+
let c, p;
|
|
1059
|
+
const x = ve(s);
|
|
1060
|
+
if (r.resolver) {
|
|
1061
|
+
const f = await Te(T(s) ? s : x);
|
|
1062
|
+
c = j(f), p = s ? !x.some((g) => h(f, g)) : c;
|
|
1063
|
+
} else
|
|
1064
|
+
s ? (p = (await Promise.all(x.map(async (f) => {
|
|
1065
|
+
const g = h(l, f);
|
|
1066
|
+
return await W(g && g._f ? { [f]: g } : g);
|
|
1067
|
+
}))).every(Boolean), !(!p && !t.isValid) && E()) : p = c = await W(l);
|
|
1068
|
+
return m.state.next({
|
|
1069
|
+
...!ee(s) || (y.isValid || V.isValid) && c !== t.isValid ? {} : { name: s },
|
|
1070
|
+
...r.resolver || !s ? { isValid: c } : {},
|
|
1071
|
+
errors: t.errors
|
|
1072
|
+
}), i.shouldFocus && !p && we(l, be, s ? x : d.mount), p;
|
|
1073
|
+
}, Ne = (s) => {
|
|
1074
|
+
const i = {
|
|
1075
|
+
...u.mount ? n : o
|
|
1076
|
+
};
|
|
1077
|
+
return T(s) ? i : ee(s) ? h(i, s) : s.map((c) => h(i, c));
|
|
1078
|
+
}, Ge = (s, i) => ({
|
|
1079
|
+
invalid: !!h((i || t).errors, s),
|
|
1080
|
+
isDirty: !!h((i || t).dirtyFields, s),
|
|
1081
|
+
error: h((i || t).errors, s),
|
|
1082
|
+
isValidating: !!h(t.validatingFields, s),
|
|
1083
|
+
isTouched: !!h((i || t).touchedFields, s)
|
|
1084
|
+
}), St = (s) => {
|
|
1085
|
+
s && ve(s).forEach((i) => B(t.errors, i)), m.state.next({
|
|
1086
|
+
errors: s ? t.errors : {}
|
|
1087
|
+
});
|
|
1088
|
+
}, We = (s, i, c) => {
|
|
1089
|
+
const p = (h(l, s, { _f: {} })._f || {}).ref, x = h(t.errors, s) || {}, { ref: f, message: g, type: C, ...L } = x;
|
|
1090
|
+
k(t.errors, s, {
|
|
1091
|
+
...L,
|
|
1092
|
+
...i,
|
|
1093
|
+
ref: p
|
|
1094
|
+
}), m.state.next({
|
|
1095
|
+
name: s,
|
|
1096
|
+
errors: t.errors,
|
|
1097
|
+
isValid: !1
|
|
1098
|
+
}), c && c.shouldFocus && p && p.focus && p.focus();
|
|
1099
|
+
}, Dt = (s, i) => Q(s) ? m.state.subscribe({
|
|
1100
|
+
next: (c) => s(v(void 0, i), c)
|
|
1101
|
+
}) : v(s, i, !0), Ke = (s) => m.state.subscribe({
|
|
1102
|
+
next: (i) => {
|
|
1103
|
+
wr(s.name, i.name, s.exact) && vr(i, s.formState || y, Ot, s.reRenderRoot) && s.callback({
|
|
1104
|
+
values: { ...n },
|
|
1105
|
+
...t,
|
|
1106
|
+
...i
|
|
1107
|
+
});
|
|
1108
|
+
}
|
|
1109
|
+
}).unsubscribe, Tt = (s) => (u.mount = !0, V = {
|
|
1110
|
+
...V,
|
|
1111
|
+
...s.formState
|
|
1112
|
+
}, Ke({
|
|
1113
|
+
...s,
|
|
1114
|
+
formState: V
|
|
1115
|
+
})), Me = (s, i = {}) => {
|
|
1116
|
+
for (const c of s ? ve(s) : d.mount)
|
|
1117
|
+
d.mount.delete(c), d.array.delete(c), i.keepValue || (B(l, c), B(n, c)), !i.keepError && B(t.errors, c), !i.keepDirty && B(t.dirtyFields, c), !i.keepTouched && B(t.touchedFields, c), !i.keepIsValidating && B(t.validatingFields, c), !r.shouldUnregister && !i.keepDefaultValue && B(o, c);
|
|
1118
|
+
m.state.next({
|
|
1119
|
+
values: R(n)
|
|
1120
|
+
}), m.state.next({
|
|
1121
|
+
...t,
|
|
1122
|
+
...i.keepDirty ? { isDirty: Y() } : {}
|
|
1123
|
+
}), !i.keepIsValid && E();
|
|
1124
|
+
}, Qe = ({ disabled: s, name: i }) => {
|
|
1125
|
+
(q(s) && u.mount || s || d.disabled.has(i)) && (s ? d.disabled.add(i) : d.disabled.delete(i));
|
|
1126
|
+
}, Be = (s, i = {}) => {
|
|
1127
|
+
let c = h(l, s);
|
|
1128
|
+
const p = q(i.disabled) || q(r.disabled);
|
|
1129
|
+
return k(l, s, {
|
|
1130
|
+
...c || {},
|
|
1131
|
+
_f: {
|
|
1132
|
+
...c && c._f ? c._f : { ref: { name: s } },
|
|
1133
|
+
name: s,
|
|
1134
|
+
mount: !0,
|
|
1135
|
+
...i
|
|
1136
|
+
}
|
|
1137
|
+
}), d.mount.add(s), c ? Qe({
|
|
1138
|
+
disabled: q(i.disabled) ? i.disabled : r.disabled,
|
|
1139
|
+
name: s
|
|
1140
|
+
}) : X(s, !0, i.value), {
|
|
1141
|
+
...p ? { disabled: i.disabled || r.disabled } : {},
|
|
1142
|
+
...r.progressive ? {
|
|
1143
|
+
required: !!i.required,
|
|
1144
|
+
min: ye(i.min),
|
|
1145
|
+
max: ye(i.max),
|
|
1146
|
+
minLength: ye(i.minLength),
|
|
1147
|
+
maxLength: ye(i.maxLength),
|
|
1148
|
+
pattern: ye(i.pattern)
|
|
1149
|
+
} : {},
|
|
1150
|
+
name: s,
|
|
1151
|
+
onChange: J,
|
|
1152
|
+
onBlur: J,
|
|
1153
|
+
ref: (x) => {
|
|
1154
|
+
if (x) {
|
|
1155
|
+
Be(s, i), c = h(l, s);
|
|
1156
|
+
const f = T(x.value) && x.querySelectorAll && x.querySelectorAll("input,select,textarea")[0] || x, g = pr(f), C = c._f.refs || [];
|
|
1157
|
+
if (g ? C.find((L) => L === f) : f === c._f.ref)
|
|
1158
|
+
return;
|
|
1159
|
+
k(l, s, {
|
|
1160
|
+
_f: {
|
|
1161
|
+
...c._f,
|
|
1162
|
+
...g ? {
|
|
1163
|
+
refs: [
|
|
1164
|
+
...C.filter(He),
|
|
1165
|
+
f,
|
|
1166
|
+
...Array.isArray(h(o, s)) ? [{}] : []
|
|
1167
|
+
],
|
|
1168
|
+
ref: { type: f.type, name: s }
|
|
1169
|
+
} : { ref: f }
|
|
1170
|
+
}
|
|
1171
|
+
}), X(s, !1, void 0, f);
|
|
1172
|
+
} else
|
|
1173
|
+
c = h(l, s, {}), c._f && (c._f.mount = !1), (r.shouldUnregister || i.shouldUnregister) && !(nr(d.array, s) && u.action) && d.unMount.add(s);
|
|
1174
|
+
}
|
|
1175
|
+
};
|
|
1176
|
+
}, Ie = () => r.shouldFocusError && we(l, be, d.mount), Mt = (s) => {
|
|
1177
|
+
q(s) && (m.state.next({ disabled: s }), we(l, (i, c) => {
|
|
1178
|
+
const p = h(l, c);
|
|
1179
|
+
p && (i.disabled = p._f.disabled || s, Array.isArray(p._f.refs) && p._f.refs.forEach((x) => {
|
|
1180
|
+
x.disabled = p._f.disabled || s;
|
|
1181
|
+
}));
|
|
1182
|
+
}, 0, !1));
|
|
1183
|
+
}, Xe = (s, i) => async (c) => {
|
|
1184
|
+
let p;
|
|
1185
|
+
c && (c.preventDefault && c.preventDefault(), c.persist && c.persist());
|
|
1186
|
+
let x = R(n);
|
|
1187
|
+
if (m.state.next({
|
|
1188
|
+
isSubmitting: !0
|
|
1189
|
+
}), r.resolver) {
|
|
1190
|
+
const { errors: f, values: g } = await ce();
|
|
1191
|
+
t.errors = f, x = g;
|
|
1192
|
+
} else
|
|
1193
|
+
await W(l);
|
|
1194
|
+
if (d.disabled.size)
|
|
1195
|
+
for (const f of d.disabled)
|
|
1196
|
+
k(x, f, void 0);
|
|
1197
|
+
if (B(t.errors, "root"), j(t.errors)) {
|
|
1198
|
+
m.state.next({
|
|
1199
|
+
errors: {}
|
|
1200
|
+
});
|
|
1201
|
+
try {
|
|
1202
|
+
await s(x, c);
|
|
1203
|
+
} catch (f) {
|
|
1204
|
+
p = f;
|
|
1205
|
+
}
|
|
1206
|
+
} else
|
|
1207
|
+
i && await i({ ...t.errors }, c), Ie(), setTimeout(Ie);
|
|
1208
|
+
if (m.state.next({
|
|
1209
|
+
isSubmitted: !0,
|
|
1210
|
+
isSubmitting: !1,
|
|
1211
|
+
isSubmitSuccessful: j(t.errors) && !p,
|
|
1212
|
+
submitCount: t.submitCount + 1,
|
|
1213
|
+
errors: t.errors
|
|
1214
|
+
}), p)
|
|
1215
|
+
throw p;
|
|
1216
|
+
}, Bt = (s, i = {}) => {
|
|
1217
|
+
h(l, s) && (T(i.defaultValue) ? Z(s, R(h(o, s))) : (Z(s, i.defaultValue), k(o, s, R(i.defaultValue))), i.keepTouched || B(t.touchedFields, s), i.keepDirty || (B(t.dirtyFields, s), t.isDirty = i.defaultValue ? Y(s, R(h(o, s))) : Y()), i.keepError || (B(t.errors, s), y.isValid && E()), m.state.next({ ...t }));
|
|
1218
|
+
}, Ye = (s, i = {}) => {
|
|
1219
|
+
const c = s ? R(s) : o, p = R(c), x = j(s), f = x ? o : p;
|
|
1220
|
+
if (i.keepDefaultValues || (o = c), !i.keepValues) {
|
|
1221
|
+
if (i.keepDirtyValues) {
|
|
1222
|
+
const g = /* @__PURE__ */ new Set([
|
|
1223
|
+
...d.mount,
|
|
1224
|
+
...Object.keys(me(o, n))
|
|
1225
|
+
]);
|
|
1226
|
+
for (const C of Array.from(g))
|
|
1227
|
+
h(t.dirtyFields, C) ? k(f, C, h(n, C)) : Z(C, h(f, C));
|
|
1228
|
+
} else {
|
|
1229
|
+
if (Pe && T(s))
|
|
1230
|
+
for (const g of d.mount) {
|
|
1231
|
+
const C = h(l, g);
|
|
1232
|
+
if (C && C._f) {
|
|
1233
|
+
const L = Array.isArray(C._f.refs) ? C._f.refs[0] : C._f.ref;
|
|
1234
|
+
if (Fe(L)) {
|
|
1235
|
+
const z = L.closest("form");
|
|
1236
|
+
if (z) {
|
|
1237
|
+
z.reset();
|
|
1238
|
+
break;
|
|
1239
|
+
}
|
|
1240
|
+
}
|
|
1241
|
+
}
|
|
1242
|
+
}
|
|
1243
|
+
for (const g of d.mount)
|
|
1244
|
+
Z(g, h(f, g));
|
|
1245
|
+
}
|
|
1246
|
+
n = R(f), m.array.next({
|
|
1247
|
+
values: { ...f }
|
|
1248
|
+
}), m.state.next({
|
|
1249
|
+
values: { ...f }
|
|
1250
|
+
});
|
|
1251
|
+
}
|
|
1252
|
+
d = {
|
|
1253
|
+
mount: i.keepDirtyValues ? d.mount : /* @__PURE__ */ new Set(),
|
|
1254
|
+
unMount: /* @__PURE__ */ new Set(),
|
|
1255
|
+
array: /* @__PURE__ */ new Set(),
|
|
1256
|
+
disabled: /* @__PURE__ */ new Set(),
|
|
1257
|
+
watch: /* @__PURE__ */ new Set(),
|
|
1258
|
+
watchAll: !1,
|
|
1259
|
+
focus: ""
|
|
1260
|
+
}, u.mount = !y.isValid || !!i.keepIsValid || !!i.keepDirtyValues, u.watch = !!r.shouldUnregister, m.state.next({
|
|
1261
|
+
submitCount: i.keepSubmitCount ? t.submitCount : 0,
|
|
1262
|
+
isDirty: x ? !1 : i.keepDirty ? t.isDirty : !!(i.keepDefaultValues && !fe(s, o)),
|
|
1263
|
+
isSubmitted: i.keepIsSubmitted ? t.isSubmitted : !1,
|
|
1264
|
+
dirtyFields: x ? {} : i.keepDirtyValues ? i.keepDefaultValues && n ? me(o, n) : t.dirtyFields : i.keepDefaultValues && s ? me(o, s) : i.keepDirty ? t.dirtyFields : {},
|
|
1265
|
+
touchedFields: i.keepTouched ? t.touchedFields : {},
|
|
1266
|
+
errors: i.keepErrors ? t.errors : {},
|
|
1267
|
+
isSubmitSuccessful: i.keepIsSubmitSuccessful ? t.isSubmitSuccessful : !1,
|
|
1268
|
+
isSubmitting: !1
|
|
1269
|
+
});
|
|
1270
|
+
}, Je = (s, i) => Ye(Q(s) ? s(n) : s, i), It = (s, i = {}) => {
|
|
1271
|
+
const c = h(l, s), p = c && c._f;
|
|
1272
|
+
if (p) {
|
|
1273
|
+
const x = p.refs ? p.refs[0] : p.ref;
|
|
1274
|
+
x.focus && (x.focus(), i.shouldSelect && Q(x.select) && x.select());
|
|
1275
|
+
}
|
|
1276
|
+
}, Ot = (s) => {
|
|
1277
|
+
t = {
|
|
1278
|
+
...t,
|
|
1279
|
+
...s
|
|
1280
|
+
};
|
|
1281
|
+
}, qe = {
|
|
1282
|
+
control: {
|
|
1283
|
+
register: Be,
|
|
1284
|
+
unregister: Me,
|
|
1285
|
+
getFieldState: Ge,
|
|
1286
|
+
handleSubmit: Xe,
|
|
1287
|
+
setError: We,
|
|
1288
|
+
_subscribe: Ke,
|
|
1289
|
+
_runSchema: ce,
|
|
1290
|
+
_focusError: Ie,
|
|
1291
|
+
_getWatch: v,
|
|
1292
|
+
_getDirty: Y,
|
|
1293
|
+
_setValid: E,
|
|
1294
|
+
_setFieldArray: De,
|
|
1295
|
+
_setDisabledField: Qe,
|
|
1296
|
+
_setErrors: te,
|
|
1297
|
+
_getFieldArray: N,
|
|
1298
|
+
_reset: Ye,
|
|
1299
|
+
_resetDefaultValues: () => Q(r.defaultValues) && r.defaultValues().then((s) => {
|
|
1300
|
+
Je(s, r.resetOptions), m.state.next({
|
|
1301
|
+
isLoading: !1
|
|
1302
|
+
});
|
|
1303
|
+
}),
|
|
1304
|
+
_removeUnmounted: xe,
|
|
1305
|
+
_disableForm: Mt,
|
|
1306
|
+
_subjects: m,
|
|
1307
|
+
_proxyFormState: y,
|
|
1308
|
+
get _fields() {
|
|
1309
|
+
return l;
|
|
1310
|
+
},
|
|
1311
|
+
get _formValues() {
|
|
1312
|
+
return n;
|
|
1313
|
+
},
|
|
1314
|
+
get _state() {
|
|
1315
|
+
return u;
|
|
1316
|
+
},
|
|
1317
|
+
set _state(s) {
|
|
1318
|
+
u = s;
|
|
1319
|
+
},
|
|
1320
|
+
get _defaultValues() {
|
|
1321
|
+
return o;
|
|
1322
|
+
},
|
|
1323
|
+
get _names() {
|
|
1324
|
+
return d;
|
|
1325
|
+
},
|
|
1326
|
+
set _names(s) {
|
|
1327
|
+
d = s;
|
|
1328
|
+
},
|
|
1329
|
+
get _formState() {
|
|
1330
|
+
return t;
|
|
1331
|
+
},
|
|
1332
|
+
get _options() {
|
|
1333
|
+
return r;
|
|
1334
|
+
},
|
|
1335
|
+
set _options(s) {
|
|
1336
|
+
r = {
|
|
1337
|
+
...r,
|
|
1338
|
+
...s
|
|
1339
|
+
};
|
|
1340
|
+
}
|
|
1341
|
+
},
|
|
1342
|
+
subscribe: Tt,
|
|
1343
|
+
trigger: he,
|
|
1344
|
+
register: Be,
|
|
1345
|
+
handleSubmit: Xe,
|
|
1346
|
+
watch: Dt,
|
|
1347
|
+
setValue: Z,
|
|
1348
|
+
getValues: Ne,
|
|
1349
|
+
reset: Je,
|
|
1350
|
+
resetField: Bt,
|
|
1351
|
+
clearErrors: St,
|
|
1352
|
+
unregister: Me,
|
|
1353
|
+
setError: We,
|
|
1354
|
+
setFocus: It,
|
|
1355
|
+
getFieldState: Ge
|
|
1356
|
+
};
|
|
1357
|
+
return {
|
|
1358
|
+
...qe,
|
|
1359
|
+
formControl: qe
|
|
1360
|
+
};
|
|
1361
|
+
}
|
|
1362
|
+
function kr(e = {}) {
|
|
1363
|
+
const r = G.useRef(void 0), t = G.useRef(void 0), [l, o] = G.useState({
|
|
1364
|
+
isDirty: !1,
|
|
1365
|
+
isValidating: !1,
|
|
1366
|
+
isLoading: Q(e.defaultValues),
|
|
1367
|
+
isSubmitted: !1,
|
|
1368
|
+
isSubmitting: !1,
|
|
1369
|
+
isSubmitSuccessful: !1,
|
|
1370
|
+
isValid: !1,
|
|
1371
|
+
submitCount: 0,
|
|
1372
|
+
dirtyFields: {},
|
|
1373
|
+
touchedFields: {},
|
|
1374
|
+
validatingFields: {},
|
|
1375
|
+
errors: e.errors || {},
|
|
1376
|
+
disabled: e.disabled || !1,
|
|
1377
|
+
isReady: !1,
|
|
1378
|
+
defaultValues: Q(e.defaultValues) ? void 0 : e.defaultValues
|
|
1379
|
+
});
|
|
1380
|
+
if (!r.current)
|
|
1381
|
+
if (e.formControl)
|
|
1382
|
+
r.current = {
|
|
1383
|
+
...e.formControl,
|
|
1384
|
+
formState: l
|
|
1385
|
+
}, e.defaultValues && !Q(e.defaultValues) && e.formControl.reset(e.defaultValues, e.resetOptions);
|
|
1386
|
+
else {
|
|
1387
|
+
const { formControl: u, ...d } = Lr(e);
|
|
1388
|
+
r.current = {
|
|
1389
|
+
...d,
|
|
1390
|
+
formState: l
|
|
1391
|
+
};
|
|
1392
|
+
}
|
|
1393
|
+
const n = r.current.control;
|
|
1394
|
+
return n._options = e, fr(() => {
|
|
1395
|
+
const u = n._subscribe({
|
|
1396
|
+
formState: n._proxyFormState,
|
|
1397
|
+
callback: () => o({ ...n._formState }),
|
|
1398
|
+
reRenderRoot: !0
|
|
1399
|
+
});
|
|
1400
|
+
return o((d) => ({
|
|
1401
|
+
...d,
|
|
1402
|
+
isReady: !0
|
|
1403
|
+
})), n._formState.isReady = !0, u;
|
|
1404
|
+
}, [n]), G.useEffect(() => n._disableForm(e.disabled), [n, e.disabled]), G.useEffect(() => {
|
|
1405
|
+
e.mode && (n._options.mode = e.mode), e.reValidateMode && (n._options.reValidateMode = e.reValidateMode);
|
|
1406
|
+
}, [n, e.mode, e.reValidateMode]), G.useEffect(() => {
|
|
1407
|
+
e.errors && (n._setErrors(e.errors), n._focusError());
|
|
1408
|
+
}, [n, e.errors]), G.useEffect(() => {
|
|
1409
|
+
e.shouldUnregister && n._subjects.state.next({
|
|
1410
|
+
values: n._getWatch()
|
|
1411
|
+
});
|
|
1412
|
+
}, [n, e.shouldUnregister]), G.useEffect(() => {
|
|
1413
|
+
if (n._proxyFormState.isDirty) {
|
|
1414
|
+
const u = n._getDirty();
|
|
1415
|
+
u !== l.isDirty && n._subjects.state.next({
|
|
1416
|
+
isDirty: u
|
|
1417
|
+
});
|
|
1418
|
+
}
|
|
1419
|
+
}, [n, l.isDirty]), G.useEffect(() => {
|
|
1420
|
+
e.values && !fe(e.values, t.current) ? (n._reset(e.values, n._options.resetOptions), t.current = e.values, o((u) => ({ ...u }))) : n._resetDefaultValues();
|
|
1421
|
+
}, [n, e.values]), G.useEffect(() => {
|
|
1422
|
+
n._state.mount || (n._setValid(), n._state.mount = !0), n._state.watch && (n._state.watch = !1, n._subjects.state.next({ ...n._formState })), n._removeUnmounted();
|
|
1423
|
+
}), r.current.formState = dr(l, n), r.current;
|
|
1424
|
+
}
|
|
1425
|
+
const Fr = ({ faqId: e, percent: r }) => {
|
|
1426
|
+
const [t, l] = Pt(!1), o = kr({
|
|
1427
|
+
defaultValues: {
|
|
1428
|
+
faq: e
|
|
1429
|
+
}
|
|
1430
|
+
}), { handleSubmit: n, setValue: u, getValues: d } = o, w = (V) => {
|
|
1431
|
+
try {
|
|
1432
|
+
l(!0), console.log("Submitted:", V);
|
|
1433
|
+
} catch (m) {
|
|
1434
|
+
console.error("Error submitting feedback:", m);
|
|
1435
|
+
} finally {
|
|
1436
|
+
l(!1);
|
|
1437
|
+
}
|
|
1438
|
+
}, F = (V) => {
|
|
1439
|
+
u("rate", V), n(w)();
|
|
1440
|
+
}, y = d("rate");
|
|
1441
|
+
return /* @__PURE__ */ a(cr, { ...o, children: /* @__PURE__ */ a("form", { children: /* @__PURE__ */ b("div", { className: "mt-6 flex items-center gap-6 max-tablet:flex-col max-tablet:items-start", children: [
|
|
1442
|
+
/* @__PURE__ */ b("div", { className: "border-l-2 border-green pl-6 mr-14 shrink-0", children: [
|
|
1443
|
+
/* @__PURE__ */ a("span", { className: "text-gray2 block text-[14px] leading-5", children: `${r}% считают ответ полезным` }),
|
|
1444
|
+
/* @__PURE__ */ a("p", { className: "text-blackBG text-[15px] leading-[22px]", children: "Ответ был полезным?" })
|
|
1445
|
+
] }),
|
|
1446
|
+
/* @__PURE__ */ b("div", { className: "flex items-center gap-4 w-full max-tablet::pt-4", children: [
|
|
1447
|
+
/* @__PURE__ */ a(
|
|
1448
|
+
I,
|
|
1449
|
+
{
|
|
1450
|
+
size: se.M,
|
|
1451
|
+
variant: O.Secondary,
|
|
1452
|
+
className: "w-[125px]",
|
|
1453
|
+
disabled: t,
|
|
1454
|
+
onClick: () => F("yes"),
|
|
1455
|
+
loading: y === "yes" && t,
|
|
1456
|
+
children: "Да"
|
|
1457
|
+
}
|
|
1458
|
+
),
|
|
1459
|
+
/* @__PURE__ */ a(
|
|
1460
|
+
I,
|
|
1461
|
+
{
|
|
1462
|
+
size: se.M,
|
|
1463
|
+
variant: O.Secondary,
|
|
1464
|
+
className: "w-[125px]",
|
|
1465
|
+
disabled: t,
|
|
1466
|
+
onClick: () => F("no"),
|
|
1467
|
+
loading: y === "no" && t,
|
|
1468
|
+
children: "Нет"
|
|
1469
|
+
}
|
|
1470
|
+
)
|
|
1471
|
+
] })
|
|
1472
|
+
] }) }) });
|
|
1473
|
+
}, Er = ["data", "title"], Ar = ({ data: e, title: r }) => e != null && e.length ? /* @__PURE__ */ a($, { children: /* @__PURE__ */ b("div", { className: "w-full mx-auto flex flex-col gap-[48px] transition-all duration-1000 max-tablet:gap-[30px]", children: [
|
|
1474
|
+
r && /* @__PURE__ */ a("p", { className: "text-[44px] leading-[55px] font-bold text-center text-black2 max-tablet:text-[24px] max-tablet:leading-[30px] m-0", children: r }),
|
|
1475
|
+
/* @__PURE__ */ a("div", { className: "flex flex-col bg-white p-12 rounded-[20px] max-tablet:p-6", children: e == null ? void 0 : e.map((t) => /* @__PURE__ */ a(
|
|
1476
|
+
$t,
|
|
1477
|
+
{
|
|
1478
|
+
title: t == null ? void 0 : t.title,
|
|
1479
|
+
children: /* @__PURE__ */ b("div", { children: [
|
|
1480
|
+
/* @__PURE__ */ a(
|
|
1481
|
+
yt,
|
|
1482
|
+
{
|
|
1483
|
+
data: t == null ? void 0 : t.description,
|
|
1484
|
+
className: "text-[18px] leading-[26px] text-blackBG "
|
|
1485
|
+
}
|
|
1486
|
+
),
|
|
1487
|
+
/* @__PURE__ */ a(
|
|
1488
|
+
Fr,
|
|
1489
|
+
{
|
|
1490
|
+
faqId: t == null ? void 0 : t.id,
|
|
1491
|
+
percent: t == null ? void 0 : t.percentage
|
|
1492
|
+
},
|
|
1493
|
+
t == null ? void 0 : t.id
|
|
1494
|
+
)
|
|
1495
|
+
] })
|
|
1496
|
+
},
|
|
1497
|
+
t == null ? void 0 : t.id
|
|
1498
|
+
)) })
|
|
1499
|
+
] }) }) : null;
|
|
1500
|
+
Ar.propsToEdit = Er;
|
|
1501
|
+
const Sr = ["title", "cards", "button"], Dr = ({
|
|
1502
|
+
title: e,
|
|
1503
|
+
cards: r,
|
|
1504
|
+
button: t
|
|
1505
|
+
}) => /* @__PURE__ */ b($, { className: "flex flex-col items-center", children: [
|
|
1506
|
+
e && /* @__PURE__ */ a("p", { className: "text-[44px] leading-[54px] font-bold text-center mb-[48px]", children: e }),
|
|
1507
|
+
/* @__PURE__ */ a("div", { className: "flex items-stretch gap-[24px]", children: r == null ? void 0 : r.map((l) => /* @__PURE__ */ a(
|
|
1508
|
+
zt,
|
|
1509
|
+
{
|
|
1510
|
+
data: l
|
|
1511
|
+
},
|
|
1512
|
+
l == null ? void 0 : l.id
|
|
1513
|
+
)) }),
|
|
1514
|
+
(t == null ? void 0 : t.link) && (t == null ? void 0 : t.text) && /* @__PURE__ */ a(
|
|
1515
|
+
"a",
|
|
1516
|
+
{
|
|
1517
|
+
href: t == null ? void 0 : t.link,
|
|
1518
|
+
target: "_blank",
|
|
1519
|
+
className: "mt-[24px]",
|
|
1520
|
+
children: /* @__PURE__ */ a(I, { children: t == null ? void 0 : t.text })
|
|
1521
|
+
}
|
|
1522
|
+
)
|
|
1523
|
+
] });
|
|
1524
|
+
Dr.propsToEdit = Sr;
|
|
1525
|
+
const Tr = ["item"], At = ({ item: e }) => {
|
|
1526
|
+
var r, t, l;
|
|
1527
|
+
return /* @__PURE__ */ b("div", { className: "w-full flex flex-col rounded-[20px] overflow-hidden", children: [
|
|
1528
|
+
/* @__PURE__ */ a("div", { className: "relative w-full h-[256px]", children: /* @__PURE__ */ a(
|
|
1529
|
+
ie,
|
|
1530
|
+
{
|
|
1531
|
+
src: e == null ? void 0 : e.image,
|
|
1532
|
+
alt: e == null ? void 0 : e.title,
|
|
1533
|
+
className: "w-full h-full",
|
|
1534
|
+
imageStyles: "object-cover"
|
|
1535
|
+
}
|
|
1536
|
+
) }),
|
|
1537
|
+
/* @__PURE__ */ b("div", { className: "bg-white p-[32px] flex flex-col gap-[8px] h-full", children: [
|
|
1538
|
+
(e == null ? void 0 : e.title) && /* @__PURE__ */ a("p", { className: "text-[24px] leading-[32px] font-bold", children: e == null ? void 0 : e.title }),
|
|
1539
|
+
(e == null ? void 0 : e.subtitle) && /* @__PURE__ */ a("p", { className: "text-[14px] leading-[20px] text-graySoft", children: e == null ? void 0 : e.subtitle }),
|
|
1540
|
+
(e == null ? void 0 : e.button.button_link) && ((r = e == null ? void 0 : e.button) == null ? void 0 : r.button_text) && /* @__PURE__ */ a(
|
|
1541
|
+
"a",
|
|
1542
|
+
{
|
|
1543
|
+
href: (t = e == null ? void 0 : e.button) == null ? void 0 : t.button_link,
|
|
1544
|
+
className: "mt-[24px]",
|
|
1545
|
+
children: /* @__PURE__ */ a(I, { variant: O.SecondaryBlue, children: (l = e == null ? void 0 : e.button) == null ? void 0 : l.button_text })
|
|
1546
|
+
}
|
|
1547
|
+
)
|
|
1548
|
+
] })
|
|
1549
|
+
] });
|
|
1550
|
+
};
|
|
1551
|
+
At.propsToEdit = Tr;
|
|
1552
|
+
const Mr = ["title", "cards", "button_link", "button_text", "grid"], Br = ({
|
|
1553
|
+
title: e,
|
|
1554
|
+
cards: r,
|
|
1555
|
+
button_link: t,
|
|
1556
|
+
button_text: l,
|
|
1557
|
+
grid: o = 3
|
|
1558
|
+
}) => /* @__PURE__ */ b($, { className: "flex flex-col items-center", children: [
|
|
1559
|
+
e && /* @__PURE__ */ a("p", { className: "text-[44px] leading-[52px] font-bold text-center mb-[48px]", children: e }),
|
|
1560
|
+
/* @__PURE__ */ a("div", { className: `grid grid-cols-${o} items-stretch gap-[24px]`, children: r == null ? void 0 : r.map((n) => /* @__PURE__ */ a(At, { item: n })) }),
|
|
1561
|
+
t && l && /* @__PURE__ */ a(
|
|
1562
|
+
"a",
|
|
1563
|
+
{
|
|
1564
|
+
href: t,
|
|
1565
|
+
target: "_blank",
|
|
1566
|
+
className: "mt-[24px]",
|
|
1567
|
+
children: /* @__PURE__ */ a(I, { children: l })
|
|
1568
|
+
}
|
|
1569
|
+
)
|
|
1570
|
+
] });
|
|
1571
|
+
Br.propsToEdit = Mr;
|
|
1572
|
+
const Ir = ({ size: e, ...r }) => /* @__PURE__ */ b(
|
|
1573
|
+
"svg",
|
|
1574
|
+
{
|
|
1575
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1576
|
+
width: e,
|
|
1577
|
+
height: e,
|
|
1578
|
+
viewBox: "0 0 48 48",
|
|
1579
|
+
fill: "none",
|
|
1580
|
+
...r,
|
|
1581
|
+
children: [
|
|
1582
|
+
/* @__PURE__ */ a(
|
|
1583
|
+
"path",
|
|
1584
|
+
{
|
|
1585
|
+
d: "M0 24C0 10.7452 10.7452 0 24 0C37.2548 0 48 10.7452 48 24C48 37.2548 37.2548 48 24 48C10.7452 48 0 37.2548 0 24Z",
|
|
1586
|
+
fill: "#1B1E22"
|
|
1587
|
+
}
|
|
1588
|
+
),
|
|
1589
|
+
/* @__PURE__ */ a(
|
|
1590
|
+
"path",
|
|
1591
|
+
{
|
|
1592
|
+
d: "M0 24C0 10.7452 10.7452 0 24 0C37.2548 0 48 10.7452 48 24C48 37.2548 37.2548 48 24 48C10.7452 48 0 37.2548 0 24Z",
|
|
1593
|
+
fill: "url(#paint0_linear_5703_103)",
|
|
1594
|
+
"fill-opacity": "0.2"
|
|
1595
|
+
}
|
|
1596
|
+
),
|
|
1597
|
+
/* @__PURE__ */ a(
|
|
1598
|
+
"path",
|
|
1599
|
+
{
|
|
1600
|
+
"fill-rule": "evenodd",
|
|
1601
|
+
"clip-rule": "evenodd",
|
|
1602
|
+
d: "M24.8137 16.4188C24.626 16.156 24.323 16 24 16C23.6771 16 23.374 16.156 23.1863 16.4188L18.8001 22.5594L14.6247 19.2191C14.3245 18.979 13.9133 18.9322 13.5668 19.0987C13.2203 19.2652 13 19.6156 13 20V23V23.0732V23.0732C13 24.8966 13 26.3664 13.1554 27.5223C13.3167 28.7225 13.6619 29.733 14.4645 30.5355C15.267 31.3381 16.2775 31.6833 17.4777 31.8446C18.6336 32 20.1034 32 21.9268 32H21.9268H22H26H26.0732H26.0732C27.8966 32 29.3664 32 30.5223 31.8446C31.7225 31.6833 32.733 31.3381 33.5355 30.5355C34.3381 29.733 34.6833 28.7225 34.8446 27.5223C35.0001 26.3664 35 24.8966 35 23.0731V23V20C35 19.6156 34.7797 19.2652 34.4332 19.0987C34.0867 18.9322 33.6755 18.979 33.3753 19.2191L29.1999 22.5594L24.8137 16.4188Z",
|
|
1603
|
+
fill: "white"
|
|
1604
|
+
}
|
|
1605
|
+
),
|
|
1606
|
+
/* @__PURE__ */ a(
|
|
1607
|
+
"path",
|
|
1608
|
+
{
|
|
1609
|
+
"fill-rule": "evenodd",
|
|
1610
|
+
"clip-rule": "evenodd",
|
|
1611
|
+
d: "M24.8137 16.4188C24.626 16.156 24.323 16 24 16C23.6771 16 23.374 16.156 23.1863 16.4188L18.8001 22.5594L14.6247 19.2191C14.3245 18.979 13.9133 18.9322 13.5668 19.0987C13.2203 19.2652 13 19.6156 13 20V23V23.0732V23.0732C13 24.8966 13 26.3664 13.1554 27.5223C13.3167 28.7225 13.6619 29.733 14.4645 30.5355C15.267 31.3381 16.2775 31.6833 17.4777 31.8446C18.6336 32 20.1034 32 21.9268 32H21.9268H22H26H26.0732H26.0732C27.8966 32 29.3664 32 30.5223 31.8446C31.7225 31.6833 32.733 31.3381 33.5355 30.5355C34.3381 29.733 34.6833 28.7225 34.8446 27.5223C35.0001 26.3664 35 24.8966 35 23.0731V23V20C35 19.6156 34.7797 19.2652 34.4332 19.0987C34.0867 18.9322 33.6755 18.979 33.3753 19.2191L29.1999 22.5594L24.8137 16.4188Z",
|
|
1612
|
+
fill: "url(#paint1_linear_5703_103)",
|
|
1613
|
+
"fill-opacity": "0.2"
|
|
1614
|
+
}
|
|
1615
|
+
),
|
|
1616
|
+
/* @__PURE__ */ b("defs", { children: [
|
|
1617
|
+
/* @__PURE__ */ b(
|
|
1618
|
+
"linearGradient",
|
|
1619
|
+
{
|
|
1620
|
+
id: "paint0_linear_5703_103",
|
|
1621
|
+
x1: "24",
|
|
1622
|
+
y1: "0",
|
|
1623
|
+
x2: "24",
|
|
1624
|
+
y2: "48",
|
|
1625
|
+
gradientUnits: "userSpaceOnUse",
|
|
1626
|
+
children: [
|
|
1627
|
+
/* @__PURE__ */ a(
|
|
1628
|
+
"stop",
|
|
1629
|
+
{
|
|
1630
|
+
"stop-color": "white",
|
|
1631
|
+
"stop-opacity": "0"
|
|
1632
|
+
}
|
|
1633
|
+
),
|
|
1634
|
+
/* @__PURE__ */ a(
|
|
1635
|
+
"stop",
|
|
1636
|
+
{
|
|
1637
|
+
offset: "1",
|
|
1638
|
+
"stop-color": "white"
|
|
1639
|
+
}
|
|
1640
|
+
)
|
|
1641
|
+
]
|
|
1642
|
+
}
|
|
1643
|
+
),
|
|
1644
|
+
/* @__PURE__ */ b(
|
|
1645
|
+
"linearGradient",
|
|
1646
|
+
{
|
|
1647
|
+
id: "paint1_linear_5703_103",
|
|
1648
|
+
x1: "24",
|
|
1649
|
+
y1: "16",
|
|
1650
|
+
x2: "24",
|
|
1651
|
+
y2: "32",
|
|
1652
|
+
gradientUnits: "userSpaceOnUse",
|
|
1653
|
+
children: [
|
|
1654
|
+
/* @__PURE__ */ a("stop", { "stop-opacity": "0" }),
|
|
1655
|
+
/* @__PURE__ */ a("stop", { offset: "1" })
|
|
1656
|
+
]
|
|
1657
|
+
}
|
|
1658
|
+
)
|
|
1659
|
+
] })
|
|
1660
|
+
]
|
|
1661
|
+
}
|
|
1662
|
+
), Or = ({ size: e, color: r, ...t }) => /* @__PURE__ */ a(
|
|
1663
|
+
"svg",
|
|
1664
|
+
{
|
|
1665
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1666
|
+
width: e,
|
|
1667
|
+
height: e,
|
|
1668
|
+
viewBox: "0 0 20 22",
|
|
1669
|
+
fill: "none",
|
|
1670
|
+
...t,
|
|
1671
|
+
children: /* @__PURE__ */ a(
|
|
1672
|
+
"path",
|
|
1673
|
+
{
|
|
1674
|
+
d: "M1.24254 17.9701L0.272393 18.2127L0.272393 18.2127L1.24254 17.9701ZM18.7575 17.9701L17.7873 17.7276V17.7276L18.7575 17.9701ZM17.6693 20.5764L17.0539 19.7882V19.7882L17.6693 20.5764ZM2.33073 20.5764L2.94614 19.7882H2.94614L2.33073 20.5764ZM7.17157 12.1716L6.46447 12.8787H6.46447L7.17157 12.1716ZM12.8284 12.1716L12.1213 11.4645L12.8284 12.1716ZM0.0298575 17.2425L0.272393 18.2127L2.21268 17.7276L1.97014 16.7575L0.0298575 17.2425ZM5.12311 22H14.8769V20H5.12311V22ZM19.7276 18.2127L19.9701 17.2425L18.0299 16.7575L17.7873 17.7276L19.7276 18.2127ZM14.8769 22C15.6025 22 16.235 22.0017 16.7508 21.94C17.2934 21.8751 17.8165 21.7302 18.2847 21.3646L17.0539 19.7882C16.9796 19.8462 16.8564 19.9131 16.5134 19.9541C16.1436 19.9983 15.6512 20 14.8769 20V22ZM17.7873 17.7276C17.5995 18.4788 17.4785 18.9561 17.3459 19.3041C17.2229 19.6269 17.1281 19.7302 17.0539 19.7882L18.2847 21.3646C18.7529 20.999 19.0203 20.5267 19.2149 20.0161C19.3998 19.5306 19.5516 18.9166 19.7276 18.2127L17.7873 17.7276ZM0.272393 18.2127C0.448378 18.9166 0.600166 19.5306 0.785121 20.0161C0.979652 20.5267 1.24708 20.999 1.71532 21.3646L2.94614 19.7882C2.87185 19.7302 2.77708 19.6269 2.65409 19.3041C2.52152 18.9561 2.40047 18.4788 2.21268 17.7276L0.272393 18.2127ZM5.12311 20C4.34881 20 3.85637 19.9983 3.48663 19.9541C3.14361 19.9131 3.02043 19.8462 2.94614 19.7882L1.71532 21.3646C2.18355 21.7302 2.70661 21.8751 3.24917 21.94C3.76501 22.0017 4.3975 22 5.12311 22V20ZM7.87868 11.4645L4.70711 8.29289L3.29289 9.70711L6.46447 12.8787L7.87868 11.4645ZM13.5355 12.8787L16.7071 9.70711L15.2929 8.29289L12.1213 11.4645L13.5355 12.8787ZM6.46447 12.8787C7.11114 13.5254 7.66578 14.083 8.16855 14.4666C8.69438 14.8678 9.27923 15.1716 10 15.1716V13.1716C9.89234 13.1716 9.72964 13.142 9.38171 12.8766C9.0107 12.5935 8.56534 12.1511 7.87868 11.4645L6.46447 12.8787ZM12.1213 11.4645C11.4347 12.1511 10.9893 12.5935 10.6183 12.8766C10.2704 13.142 10.1077 13.1716 10 13.1716V15.1716C10.7208 15.1716 11.3056 14.8678 11.8315 14.4666C12.3342 14.083 12.8889 13.5254 13.5355 12.8787L12.1213 11.4645ZM9 0V14H11V0H9Z",
|
|
1675
|
+
fill: r || "currentColor"
|
|
1676
|
+
}
|
|
1677
|
+
)
|
|
1678
|
+
}
|
|
1679
|
+
), Rr = ({ size: e, color: r, ...t }) => /* @__PURE__ */ a(
|
|
1680
|
+
"svg",
|
|
1681
|
+
{
|
|
1682
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1683
|
+
width: e,
|
|
1684
|
+
height: e,
|
|
1685
|
+
viewBox: "0 0 66 82",
|
|
1686
|
+
fill: "none",
|
|
1687
|
+
...t,
|
|
1688
|
+
children: /* @__PURE__ */ a(
|
|
1689
|
+
"path",
|
|
1690
|
+
{
|
|
1691
|
+
"fill-rule": "evenodd",
|
|
1692
|
+
"clip-rule": "evenodd",
|
|
1693
|
+
d: "M41.5523 1.66972C39.3438 0.653971 36.8997 0.65809 34.1483 0.662728L33.583 0.663361L18.0873 0.663352C14.8369 0.663169 12.0362 0.663013 9.79348 0.964543C7.38992 1.28769 5.08597 2.01643 3.2172 3.88519C1.34844 5.75395 0.619711 8.0579 0.296561 10.4615C-0.00496937 12.7042 -0.00481243 15.5049 -0.00462973 18.7553V63.2381C-0.00481243 66.4885 -0.00496937 69.2892 0.296561 71.5319C0.619711 73.9355 1.34844 76.2394 3.2172 78.1082C5.08597 79.977 7.38992 80.7057 9.79348 81.0288C12.0363 81.3304 14.8369 81.3302 18.0874 81.33H47.9033C51.1538 81.3302 53.9545 81.3304 56.1973 81.0288C58.6008 80.7057 60.9048 79.977 62.7736 78.1082C64.6423 76.2394 65.371 73.9355 65.6942 71.5319C65.9957 69.2892 65.9956 66.4885 65.9954 63.238L65.9958 34.9677C65.9989 32.736 66.0016 30.757 65.3121 28.8931C64.6226 27.0291 63.3326 25.5283 61.8779 23.8359L47.5027 7.06552L47.1353 6.63593C45.3482 4.54386 43.7607 2.68547 41.5523 1.66972ZM32.9954 7.99669H18.3287C14.7681 7.99669 12.4665 8.00448 10.7706 8.23248C9.18025 8.4463 8.68178 8.79151 8.40265 9.07064C8.12353 9.34976 7.77832 9.84823 7.5645 11.4386C7.3365 13.1345 7.32871 15.4361 7.32871 18.9967V62.9967C7.32871 66.5573 7.3365 68.8589 7.5645 70.5548C7.77832 72.1452 8.12353 72.6436 8.40265 72.9228C8.68178 73.2019 9.18025 73.5471 10.7706 73.7609C12.4665 73.9889 14.7681 73.9967 18.3287 73.9967H47.662C51.2227 73.9967 53.5243 73.9889 55.2201 73.7609C56.8105 73.5471 57.309 73.2019 57.5881 72.9228C57.8672 72.6436 58.2124 72.1452 58.4263 70.5548C58.6543 68.8589 58.662 66.5573 58.662 62.9967V35.4963L43.7959 35.4964C42.241 35.4967 40.7298 35.497 39.4835 35.3294C38.0784 35.1405 36.4751 34.6802 35.1433 33.3484C33.8115 32.0167 33.3513 30.4133 33.1623 29.0082C32.9948 27.7619 32.9951 26.2508 32.9954 24.6959L32.9954 7.99669ZM55.9277 28.163L41.9348 11.838C41.2658 11.0575 40.7447 10.4591 40.3287 9.99626V24.4963C40.3287 26.3285 40.3365 27.3337 40.4303 28.0311L40.434 28.0578L40.4607 28.0615C41.158 28.1552 42.1633 28.163 43.9954 28.163H55.9277Z",
|
|
1694
|
+
fill: r || "currentColor"
|
|
1695
|
+
}
|
|
1696
|
+
)
|
|
1697
|
+
}
|
|
1698
|
+
), Hr = ({ size: e, ...r }) => /* @__PURE__ */ a(
|
|
1699
|
+
"svg",
|
|
1700
|
+
{
|
|
1701
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1702
|
+
width: e,
|
|
1703
|
+
height: e,
|
|
1704
|
+
viewBox: "0 0 38 38",
|
|
1705
|
+
fill: "none",
|
|
1706
|
+
...r,
|
|
1707
|
+
children: /* @__PURE__ */ a(
|
|
1708
|
+
"path",
|
|
1709
|
+
{
|
|
1710
|
+
d: "M19 37.3334C8.88329 37.3334 0.666626 29.1001 0.666626 19.0001C0.666626 8.90008 8.88329 0.666748 19 0.666748C29.1166 0.666748 37.3333 8.88342 37.3333 19.0001C37.3333 29.1167 29.1166 37.3334 19 37.3334ZM20.6666 12.3334H17.3333V15.6667H20.6666V12.3334ZM20.6666 18.1667H17.3333V27.3334H20.6666V18.1667Z",
|
|
1711
|
+
fill: "#0E0F11"
|
|
1712
|
+
}
|
|
1713
|
+
)
|
|
1714
|
+
}
|
|
1715
|
+
), Ur = ({ size: e, ...r }) => /* @__PURE__ */ a(
|
|
1716
|
+
"svg",
|
|
1717
|
+
{
|
|
1718
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1719
|
+
width: e,
|
|
1720
|
+
height: e,
|
|
1721
|
+
viewBox: "0 0 38 38",
|
|
1722
|
+
fill: "none",
|
|
1723
|
+
...r,
|
|
1724
|
+
children: /* @__PURE__ */ a(
|
|
1725
|
+
"path",
|
|
1726
|
+
{
|
|
1727
|
+
d: "M19 37.3334C8.88329 37.3334 0.666626 29.1001 0.666626 19.0001C0.666626 8.90008 8.88329 0.666748 19 0.666748C29.1166 0.666748 37.3333 8.88342 37.3333 19.0001C37.3333 29.1167 29.1166 37.3334 19 37.3334ZM20.6666 12.3334H17.3333V15.6667H20.6666V12.3334ZM20.6666 18.1667H17.3333V27.3334H20.6666V18.1667Z",
|
|
1728
|
+
fill: "#F4F6F7"
|
|
1729
|
+
}
|
|
1730
|
+
)
|
|
1731
|
+
}
|
|
1732
|
+
), bt = {
|
|
1733
|
+
infoDark: Hr,
|
|
1734
|
+
infoCrown: Ir,
|
|
1735
|
+
infoLight: Ur,
|
|
1736
|
+
download: Or,
|
|
1737
|
+
file: Rr
|
|
1738
|
+
}, Pr = {
|
|
1739
|
+
sm: 12,
|
|
1740
|
+
mx: 16,
|
|
1741
|
+
lx: 20,
|
|
1742
|
+
md: 24,
|
|
1743
|
+
lg: 32
|
|
1744
|
+
}, ae = ({
|
|
1745
|
+
name: e,
|
|
1746
|
+
color: r = "currentColor",
|
|
1747
|
+
size: t = "sm",
|
|
1748
|
+
...l
|
|
1749
|
+
}) => bt[e] && bt[e]({
|
|
1750
|
+
size: typeof t == "string" ? Pr[t] : t,
|
|
1751
|
+
color: r,
|
|
1752
|
+
name: e,
|
|
1753
|
+
...l
|
|
1754
|
+
}), Zr = ["title", "description", "button_text", "variant"], jr = ({
|
|
1755
|
+
title: e,
|
|
1756
|
+
description: r,
|
|
1757
|
+
button_text: t,
|
|
1758
|
+
variant: l
|
|
1759
|
+
}) => /* @__PURE__ */ a($, { children: /* @__PURE__ */ a(
|
|
1760
|
+
"div",
|
|
1761
|
+
{
|
|
1762
|
+
className: "rounded-[24px] p-6",
|
|
1763
|
+
style: { background: Le[l].background },
|
|
1764
|
+
children: /* @__PURE__ */ b("div", { className: "flex gap-4 items-center justify-between", children: [
|
|
1765
|
+
/* @__PURE__ */ b("div", { className: "flex gap-4 items-center", children: [
|
|
1766
|
+
/* @__PURE__ */ a(
|
|
1767
|
+
ae,
|
|
1768
|
+
{
|
|
1769
|
+
name: Le[l].icon,
|
|
1770
|
+
size: 40
|
|
1771
|
+
}
|
|
1772
|
+
),
|
|
1773
|
+
/* @__PURE__ */ b("div", { className: "flex flex-col gap-1", children: [
|
|
1774
|
+
/* @__PURE__ */ a(
|
|
1775
|
+
"p",
|
|
1776
|
+
{
|
|
1777
|
+
className: D("text-[24px] leading-8 font-bold"),
|
|
1778
|
+
style: { color: Le[l].textColor },
|
|
1779
|
+
children: e
|
|
1780
|
+
}
|
|
1781
|
+
),
|
|
1782
|
+
/* @__PURE__ */ a(
|
|
1783
|
+
"p",
|
|
1784
|
+
{
|
|
1785
|
+
className: "text-[16px] leading-6",
|
|
1786
|
+
style: { color: Le[l].textColor },
|
|
1787
|
+
children: r
|
|
1788
|
+
}
|
|
1789
|
+
)
|
|
1790
|
+
] })
|
|
1791
|
+
] }),
|
|
1792
|
+
/* @__PURE__ */ a(I, { variant: O.Static, children: t })
|
|
1793
|
+
] })
|
|
1794
|
+
}
|
|
1795
|
+
) });
|
|
1796
|
+
jr.propsToEdit = Zr;
|
|
1797
|
+
const $r = ["data"], zr = ({
|
|
1798
|
+
id: e,
|
|
1799
|
+
title: r,
|
|
1800
|
+
text: t,
|
|
1801
|
+
link: l
|
|
1802
|
+
}) => /* @__PURE__ */ a($, { children: /* @__PURE__ */ b("div", { className: "p-[48px] bg-white rounded-[20px] flex justify-between gap-[64px] max-tablet:flex-col-reverse max-tablet:gap-8", children: [
|
|
1803
|
+
/* @__PURE__ */ a("div", { className: "flex flex-col ", children: /* @__PURE__ */ b("div", { children: [
|
|
1804
|
+
/* @__PURE__ */ a("p", { className: "text-[32px] leading-10 font-bold mb-4", children: r }),
|
|
1805
|
+
/* @__PURE__ */ a("p", { className: "text-[16px] leading-6", children: t }),
|
|
1806
|
+
/* @__PURE__ */ a("a", { href: l, children: /* @__PURE__ */ a(
|
|
1807
|
+
I,
|
|
1808
|
+
{
|
|
1809
|
+
iconRight: /* @__PURE__ */ a(
|
|
1810
|
+
ae,
|
|
1811
|
+
{
|
|
1812
|
+
name: "download",
|
|
1813
|
+
size: 20,
|
|
1814
|
+
color: ue.blackBG
|
|
1815
|
+
}
|
|
1816
|
+
),
|
|
1817
|
+
className: "mt-8",
|
|
1818
|
+
children: "Скачать"
|
|
1819
|
+
}
|
|
1820
|
+
) })
|
|
1821
|
+
] }) }),
|
|
1822
|
+
/* @__PURE__ */ a(
|
|
1823
|
+
ae,
|
|
1824
|
+
{
|
|
1825
|
+
className: "flex-shrink-0",
|
|
1826
|
+
name: "file",
|
|
1827
|
+
color: ue.greenLight,
|
|
1828
|
+
size: 82
|
|
1829
|
+
}
|
|
1830
|
+
)
|
|
1831
|
+
] }) });
|
|
1832
|
+
zr.propsToEdit = $r;
|
|
1833
|
+
const Gr = ["data"], Wr = ({ data: e }) => /* @__PURE__ */ a($, { children: /* @__PURE__ */ a("div", { className: "flex flex-col gap-2", children: e == null ? void 0 : e.map((r) => /* @__PURE__ */ b("div", { className: "px-[48px] py-8 bg-white rounded-[20px] flex justify-between items-center gap-[64px]", children: [
|
|
1834
|
+
/* @__PURE__ */ b("div", { className: "flex items-center gap-4 max-tablet:flex-col max-tablet:items-start", children: [
|
|
1835
|
+
/* @__PURE__ */ a(
|
|
1836
|
+
ae,
|
|
1837
|
+
{
|
|
1838
|
+
className: "flex-shrink-0",
|
|
1839
|
+
name: "file",
|
|
1840
|
+
color: ue.greenLight,
|
|
1841
|
+
size: 44
|
|
1842
|
+
}
|
|
1843
|
+
),
|
|
1844
|
+
/* @__PURE__ */ b("div", { className: "flex flex-col max-tablet:gap-2 ", children: [
|
|
1845
|
+
/* @__PURE__ */ a("p", { className: "text-[20px] leading-7 font-bold", children: r == null ? void 0 : r.title }),
|
|
1846
|
+
/* @__PURE__ */ a("p", { className: "text-[16px] leading-6", children: r == null ? void 0 : r.text })
|
|
1847
|
+
] })
|
|
1848
|
+
] }),
|
|
1849
|
+
/* @__PURE__ */ a(
|
|
1850
|
+
I,
|
|
1851
|
+
{
|
|
1852
|
+
variant: O.Secondary,
|
|
1853
|
+
iconRight: /* @__PURE__ */ a(
|
|
1854
|
+
ae,
|
|
1855
|
+
{
|
|
1856
|
+
name: "download",
|
|
1857
|
+
size: 20,
|
|
1858
|
+
color: ue.blackBG
|
|
1859
|
+
}
|
|
1860
|
+
)
|
|
1861
|
+
}
|
|
1862
|
+
)
|
|
1863
|
+
] })) }) });
|
|
1864
|
+
Wr.propsToEdit = Gr;
|
|
1865
|
+
const Kr = ["data"], Qr = ({ data: e }) => /* @__PURE__ */ a($, { children: /* @__PURE__ */ a("div", { className: "grid grid-cols-2 gap-6 max-tablet:grid-cols-1", children: e == null ? void 0 : e.map((r) => /* @__PURE__ */ b(
|
|
1866
|
+
"div",
|
|
1867
|
+
{
|
|
1868
|
+
className: "p-[32px] bg-white rounded-[20px] flex justify-between gap-[40px]",
|
|
1869
|
+
children: [
|
|
1870
|
+
/* @__PURE__ */ a("div", { className: "flex flex-col ", children: /* @__PURE__ */ b("div", { children: [
|
|
1871
|
+
/* @__PURE__ */ a("p", { className: "text-[24px] leading-8 font-bold mb-4", children: r == null ? void 0 : r.title }),
|
|
1872
|
+
/* @__PURE__ */ a("p", { className: "text-[16px] leading-6", children: r == null ? void 0 : r.text }),
|
|
1873
|
+
/* @__PURE__ */ a(
|
|
1874
|
+
I,
|
|
1875
|
+
{
|
|
1876
|
+
iconRight: /* @__PURE__ */ a(
|
|
1877
|
+
ae,
|
|
1878
|
+
{
|
|
1879
|
+
name: "download",
|
|
1880
|
+
size: 20,
|
|
1881
|
+
color: ue.blackBG
|
|
1882
|
+
}
|
|
1883
|
+
),
|
|
1884
|
+
className: "mt-8",
|
|
1885
|
+
variant: O.Secondary,
|
|
1886
|
+
children: "Скачать"
|
|
1887
|
+
}
|
|
1888
|
+
)
|
|
1889
|
+
] }) }),
|
|
1890
|
+
/* @__PURE__ */ a(
|
|
1891
|
+
ae,
|
|
1892
|
+
{
|
|
1893
|
+
className: "flex-shrink-0",
|
|
1894
|
+
name: "file",
|
|
1895
|
+
color: ue.greenLight,
|
|
1896
|
+
size: 48
|
|
1897
|
+
}
|
|
1898
|
+
)
|
|
1899
|
+
]
|
|
1900
|
+
},
|
|
1901
|
+
r == null ? void 0 : r.id
|
|
1902
|
+
)) }) });
|
|
1903
|
+
Qr.propsToEdit = Kr;
|
|
1904
|
+
const Xr = ["data"], Yr = ({ data: e }) => /* @__PURE__ */ a($, { children: /* @__PURE__ */ a("div", { className: "grid grid-cols-4 gap-6 max-tablet:grid-cols-1", children: e == null ? void 0 : e.map((r) => /* @__PURE__ */ b(
|
|
1905
|
+
"div",
|
|
1906
|
+
{
|
|
1907
|
+
className: "p-[24px] bg-white rounded-[20px] flex flex-col gap-8",
|
|
1908
|
+
children: [
|
|
1909
|
+
/* @__PURE__ */ a(
|
|
1910
|
+
ae,
|
|
1911
|
+
{
|
|
1912
|
+
name: "file",
|
|
1913
|
+
color: ue.greenLight,
|
|
1914
|
+
size: 44
|
|
1915
|
+
}
|
|
1916
|
+
),
|
|
1917
|
+
/* @__PURE__ */ b("div", { className: "flex flex-col gap-4", children: [
|
|
1918
|
+
/* @__PURE__ */ a("p", { className: "text-[20px] leading-[28px] font-bold", children: r == null ? void 0 : r.title }),
|
|
1919
|
+
/* @__PURE__ */ a("p", { className: "text-[16px] leading-6", children: r == null ? void 0 : r.text })
|
|
1920
|
+
] }),
|
|
1921
|
+
/* @__PURE__ */ a(
|
|
1922
|
+
I,
|
|
1923
|
+
{
|
|
1924
|
+
iconRight: /* @__PURE__ */ a(
|
|
1925
|
+
ae,
|
|
1926
|
+
{
|
|
1927
|
+
name: "download",
|
|
1928
|
+
size: 20,
|
|
1929
|
+
color: ue.blackBG
|
|
1930
|
+
}
|
|
1931
|
+
),
|
|
1932
|
+
className: "w-full",
|
|
1933
|
+
variant: O.Secondary,
|
|
1934
|
+
children: "Скачать"
|
|
1935
|
+
}
|
|
1936
|
+
)
|
|
1937
|
+
]
|
|
1938
|
+
},
|
|
1939
|
+
r == null ? void 0 : r.id
|
|
1940
|
+
)) }) });
|
|
1941
|
+
Yr.propsToEdit = Xr;
|
|
1942
|
+
const Jr = ({ data: e, className: r }) => {
|
|
1943
|
+
var t;
|
|
1944
|
+
return /* @__PURE__ */ b(
|
|
1945
|
+
"div",
|
|
1946
|
+
{
|
|
1947
|
+
className: D(
|
|
1948
|
+
"w-full grid grid-cols-[1fr_3fr] gap-[24px] py-[24px] border-b border-lightGray8 first:pt-0 first:pb-[24px] last:pt-[24px] last:pb-0 last:border-b-0",
|
|
1949
|
+
"max-tablet:grid-cols-[140px_1fr] max-tablet:items-start max-tablet:gap-[12px] max-tablet:py-[16px] max-tablet:first:pt-0 max-tablet:first:pb-[16px] max-tablet:last:pt-[16px] max-tablet:last:pb-0 max-tablet:last:border-b-0",
|
|
1950
|
+
r
|
|
1951
|
+
),
|
|
1952
|
+
children: [
|
|
1953
|
+
/* @__PURE__ */ a("p", { className: "text-[18px] leading-[26px] font-medium text-graySoft m-0 max-tablet:text-[13px] max-tablet:leading-[16px] max-tablet:w-[140px] max-tablet:break-words", children: e == null ? void 0 : e.title }),
|
|
1954
|
+
/* @__PURE__ */ a("div", { className: "grid grid-cols-3 gap-[24px] w-full max-tablet:grid-cols-1 max-tablet:gap-0 max-tablet:w-auto", children: (t = e == null ? void 0 : e.columns) == null ? void 0 : t.map((l) => /* @__PURE__ */ b(
|
|
1955
|
+
"div",
|
|
1956
|
+
{
|
|
1957
|
+
className: "w-full flex flex-col gap-[8px] max-tablet:py-[16px] max-tablet:border-b max-tablet:border-lightGray8 first:max-tablet:pt-0 first:max-tablet:pb-[16px] last:max-tablet:pt-[16px] last:max-tablet:pb-0 last:max-tablet:border-b-0",
|
|
1958
|
+
children: [
|
|
1959
|
+
(l == null ? void 0 : l.title) && /* @__PURE__ */ a("p", { className: "text-[18px] leading-[26px] font-medium m-0 break-words whitespace-pre-line", children: l == null ? void 0 : l.title }),
|
|
1960
|
+
(l == null ? void 0 : l.description) && /* @__PURE__ */ a("div", { className: "text-[14px] leading-[20px] text-graySoft whitespace-pre-line max-[420px]:whitespace-normal max-[420px]:break-words max-tablet:text-[13px] max-tablet:leading-[16px]", children: l == null ? void 0 : l.description })
|
|
1961
|
+
]
|
|
1962
|
+
},
|
|
1963
|
+
l == null ? void 0 : l.id
|
|
1964
|
+
)) })
|
|
1965
|
+
]
|
|
1966
|
+
}
|
|
1967
|
+
);
|
|
1968
|
+
}, qr = ({
|
|
1969
|
+
data: e,
|
|
1970
|
+
title: r,
|
|
1971
|
+
description: t,
|
|
1972
|
+
image: l,
|
|
1973
|
+
className: o
|
|
1974
|
+
}) => /* @__PURE__ */ b(
|
|
1975
|
+
"div",
|
|
1976
|
+
{
|
|
1977
|
+
className: D(
|
|
1978
|
+
"w-full flex justify-between gap-[20px] bg-[#5f6e7b10] p-[32px] rounded-[20px]",
|
|
1979
|
+
"max-tablet:flex-col max-tablet:items-stretch max-tablet:gap-[24px] max-tablet:p-[16px] max-tablet:h-fit",
|
|
1980
|
+
o
|
|
1981
|
+
),
|
|
1982
|
+
children: [
|
|
1983
|
+
/* @__PURE__ */ b(
|
|
1984
|
+
"div",
|
|
1985
|
+
{
|
|
1986
|
+
className: D(
|
|
1987
|
+
"flex gap-[16px] items-center justify-center basis-[70%]",
|
|
1988
|
+
"max-tablet:flex-col max-tablet:items-start max-tablet:gap-[12px] max-tablet:basis-full"
|
|
1989
|
+
),
|
|
1990
|
+
children: [
|
|
1991
|
+
((e == null ? void 0 : e.necessary_icon) || l) && /* @__PURE__ */ a(
|
|
1992
|
+
ie,
|
|
1993
|
+
{
|
|
1994
|
+
src: (e == null ? void 0 : e.necessary_icon) ?? l ?? "",
|
|
1995
|
+
alt: (e == null ? void 0 : e.necessary_title) ?? r ?? "",
|
|
1996
|
+
width: 48,
|
|
1997
|
+
height: 48,
|
|
1998
|
+
className: "w-[48px] h-[48px] shrink-0",
|
|
1999
|
+
imageStyles: "w-full h-full object-contain"
|
|
2000
|
+
}
|
|
2001
|
+
),
|
|
2002
|
+
/* @__PURE__ */ b("div", { className: "box-border max-tablet:h-fit", children: [
|
|
2003
|
+
/* @__PURE__ */ a(
|
|
2004
|
+
"p",
|
|
2005
|
+
{
|
|
2006
|
+
className: D(
|
|
2007
|
+
"text-[24px] font-bold leading-[32px] m-0",
|
|
2008
|
+
"max-tablet:text-[18px] max-tablet:font-semibold max-tablet:leading-[26px]"
|
|
2009
|
+
),
|
|
2010
|
+
children: (e == null ? void 0 : e.necessary_title) || r
|
|
2011
|
+
}
|
|
2012
|
+
),
|
|
2013
|
+
((e == null ? void 0 : e.necessary_description) || t) && /* @__PURE__ */ a(
|
|
2014
|
+
"p",
|
|
2015
|
+
{
|
|
2016
|
+
className: D(
|
|
2017
|
+
"text-[15px] font-normal leading-[24px] m-0",
|
|
2018
|
+
"max-tablet:text-[13px] max-tablet:leading-[16px]"
|
|
2019
|
+
),
|
|
2020
|
+
children: (e == null ? void 0 : e.necessary_description) || t
|
|
2021
|
+
}
|
|
2022
|
+
)
|
|
2023
|
+
] })
|
|
2024
|
+
]
|
|
2025
|
+
}
|
|
2026
|
+
),
|
|
2027
|
+
(e == null ? void 0 : e.necessary_button_link) && /* @__PURE__ */ a(
|
|
2028
|
+
"a",
|
|
2029
|
+
{
|
|
2030
|
+
href: e == null ? void 0 : e.necessary_button_link,
|
|
2031
|
+
target: "_blank",
|
|
2032
|
+
children: /* @__PURE__ */ a(
|
|
2033
|
+
I,
|
|
2034
|
+
{
|
|
2035
|
+
variant: O.Static,
|
|
2036
|
+
size: se.L,
|
|
2037
|
+
className: "text-[15px] font-medium leading-[24px] px-[16px] py-[8px] rounded-[8px] bg-[#FDDB2B] text-black border-none cursor-pointer transition-colors duration-300 hover:bg-[#F7C21C] max-tablet:w-full max-tablet:h-[56px]",
|
|
2038
|
+
children: e == null ? void 0 : e.necessary_button_text
|
|
2039
|
+
}
|
|
2040
|
+
)
|
|
2041
|
+
}
|
|
2042
|
+
)
|
|
2043
|
+
]
|
|
2044
|
+
}
|
|
2045
|
+
), es = mt(
|
|
2046
|
+
({ title: e, table: r, rows: t }) => {
|
|
2047
|
+
var l, o, n;
|
|
2048
|
+
return /* @__PURE__ */ b($, { children: [
|
|
2049
|
+
e && /* @__PURE__ */ a(
|
|
2050
|
+
"p",
|
|
2051
|
+
{
|
|
2052
|
+
className: D(
|
|
2053
|
+
"text-[44px] font-bold leading-[52px] mb-[48px] text-black text-center max-tablet:text-[26px] max-tablet:leading-[32px] max-tablet:mb-[32px]"
|
|
2054
|
+
),
|
|
2055
|
+
children: e
|
|
2056
|
+
}
|
|
2057
|
+
),
|
|
2058
|
+
/* @__PURE__ */ b("div", { className: "bg-white p-8 rounded-[20px] md:p-6", children: [
|
|
2059
|
+
t == null ? void 0 : t.map((u) => {
|
|
2060
|
+
var d;
|
|
2061
|
+
return /* @__PURE__ */ a(
|
|
2062
|
+
Jr,
|
|
2063
|
+
{
|
|
2064
|
+
data: u,
|
|
2065
|
+
className: D("border-b border-gray-200 last:border-b-0", {
|
|
2066
|
+
"border-none": (d = r == null ? void 0 : r.warning) == null ? void 0 : d.warning_title
|
|
2067
|
+
})
|
|
2068
|
+
},
|
|
2069
|
+
u == null ? void 0 : u.id
|
|
2070
|
+
);
|
|
2071
|
+
}),
|
|
2072
|
+
((l = r == null ? void 0 : r.warning) == null ? void 0 : l.warning_title) && /* @__PURE__ */ a(
|
|
2073
|
+
qr,
|
|
2074
|
+
{
|
|
2075
|
+
className: "!flex-auto [&_p:first-child]:text-[16px] [&_p:first-child]:leading-[24px] [&_p:last-child]:text-[15px] [&_p:last-child]:leading-[22px]",
|
|
2076
|
+
title: (o = r == null ? void 0 : r.warning) == null ? void 0 : o.warning_title,
|
|
2077
|
+
description: (n = r == null ? void 0 : r.warning) == null ? void 0 : n.warning_description
|
|
2078
|
+
}
|
|
2079
|
+
)
|
|
2080
|
+
] })
|
|
2081
|
+
] });
|
|
2082
|
+
}
|
|
2083
|
+
);
|
|
2084
|
+
es.displayName = "CardInfoTable";
|
|
2085
|
+
export {
|
|
2086
|
+
Wt as B,
|
|
2087
|
+
tr as C,
|
|
2088
|
+
zr as D,
|
|
2089
|
+
Ar as F,
|
|
2090
|
+
Dr as I,
|
|
2091
|
+
lr as M,
|
|
2092
|
+
Br as P,
|
|
2093
|
+
Qt as S,
|
|
2094
|
+
jr as W,
|
|
2095
|
+
Jt as a,
|
|
2096
|
+
Qr as b,
|
|
2097
|
+
Wr as c,
|
|
2098
|
+
Yr as d,
|
|
2099
|
+
es as e,
|
|
2100
|
+
I as f,
|
|
2101
|
+
ae as g,
|
|
2102
|
+
wt as h,
|
|
2103
|
+
Fr as i,
|
|
2104
|
+
At as j,
|
|
2105
|
+
vt as k
|
|
2106
|
+
};
|