md-components-mdigial-azamat 0.0.112 → 0.0.113
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/ActionCardList/ActionCardList.js +28 -5
- package/dist/ActionCardList/index.js +1 -1
- package/dist/ActionCardList/info.js +1 -1
- package/dist/ActionCardSecondaryList/ActionCardSecondaryList.js +32 -0
- package/dist/ActionCardSecondaryList/index.js +6 -0
- package/dist/ActionCardSecondaryList/info.js +11 -0
- package/dist/ActionCardSecondaryList/schema.js +51 -0
- package/dist/ActionCardSecondaryList/types.js +4 -0
- package/dist/ActionIconList/ActionIconList.js +25 -2
- package/dist/AllComponents.js +28 -5
- package/dist/AllComponentsInfo.js +111 -95
- package/dist/AnimatedSwiper/index.js +40 -38
- package/dist/CardImageList/CardImageList.js +122 -81
- package/dist/CardImageList/schema.js +17 -12
- package/dist/Cards/ActionSecondaryCard/ActionSecondaryCard.js +77 -0
- package/dist/Cards/ActionSecondaryCard/index.js +6 -0
- package/dist/Cards/ActionSecondaryCard/info.js +11 -0
- package/dist/Cards/ActionSecondaryCard/types.js +4 -0
- package/dist/Cards/CardImage/CardImage.js +48 -50
- package/dist/Cards/InfoCard/InfoCard.js +114 -0
- package/dist/Cards/InfoCard/index.js +9 -0
- package/dist/Cards/InfoCard/info.js +11 -0
- package/dist/Cards/InfoCard/schema.js +60 -0
- package/dist/Cards/InfoCard/types.js +4 -0
- package/dist/Cards/PostCard/PostCard.js +60 -0
- package/dist/Cards/PostCard/index.js +6 -0
- package/dist/Cards/PostCard/info.js +11 -0
- package/dist/Cards/PostCard/types.js +4 -0
- package/dist/Cards/WarningCard/WarningCard.js +27 -4
- package/dist/Cards/WarningCard/index.js +1 -1
- package/dist/Cards/WarningCard/info.js +1 -1
- package/dist/Cards/WarningCard/model.js +1 -1
- package/dist/CurrencyRates/CurrencyRates.js +78 -0
- package/dist/CurrencyRates/components/Calculator.js +101 -0
- package/dist/CurrencyRates/components/RateCell.js +15 -0
- package/dist/CurrencyRates/components/RatesTable.js +134 -0
- package/dist/CurrencyRates/components/index.js +6 -0
- package/dist/CurrencyRates/index.js +8 -0
- package/dist/CurrencyRates/info.js +11 -0
- package/dist/CurrencyRates/schema.js +63 -0
- package/dist/CurrencyRates/types.js +4 -0
- package/dist/DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js +1 -1
- package/dist/DownloadFile/components/DownloadFileFull/DownloadFileFull.js +1 -1
- package/dist/DownloadFile/components/DownloadFileHalf/DownloadFileHalf.js +1 -1
- package/dist/DownloadFile/components/DownloadFileMini/DownloadFileMini.js +1 -1
- package/dist/DownloadFile/components/FileBannerSecondary/FileBannerSecondary.js +1 -1
- package/dist/Faq/Faq.js +1 -1
- package/dist/Faq/components/FeedbackForm/FeedbackForm.js +55 -6
- package/dist/Faq/components/FeedbackForm/index.js +1 -1
- package/dist/FieldInput-ef2a18d4.js +2743 -0
- package/dist/Forms/FormDefault/FormDefault.js +12 -0
- package/dist/Forms/FormDefault/components/FieldCustom.js +11 -0
- package/dist/Forms/FormDefault/components/FieldInput.js +11 -0
- package/dist/Forms/FormDefault/components/FieldSection.js +10 -0
- package/dist/Forms/FormDefault/components/FormContent.js +10 -0
- package/dist/Forms/FormDefault/components/FormFields.js +7 -0
- package/dist/Forms/FormDefault/components/FormSuccessMessage.js +49 -0
- package/dist/Forms/FormDefault/components/index.js +6 -0
- package/dist/Forms/FormDefault/hooks/index.js +10 -0
- package/dist/Forms/FormDefault/hooks/useFieldOptions.js +32 -0
- package/dist/Forms/FormDefault/hooks/useFieldValidation.js +33 -0
- package/dist/Forms/FormDefault/hooks/useFieldVisibility.js +24 -0
- package/dist/Forms/FormDefault/hooks/useFormSubmission.js +64 -0
- package/dist/Forms/FormDefault/index.js +6 -12
- package/dist/Forms/FormDefault/info.js +3 -115
- package/dist/Forms/FormDefault/model/componentRegistry.js +134 -0
- package/dist/Forms/FormDefault/model/fieldTypes.js +18 -0
- package/dist/Forms/FormDefault/model/formElementTypes.js +18 -0
- package/dist/Forms/FormDefault/model/index.js +13 -0
- package/dist/Forms/FormDefault/model/requestForm.js +4 -0
- package/dist/Forms/{model/components.js → FormDefault/schema.js} +32 -5
- package/dist/Forms/FormDefault/utils.js +20 -0
- package/dist/Grid-331af266.js +80 -0
- package/dist/Header/Header.js +54 -42
- package/dist/Header/components/HeaderMainMobile/HeaderMainMobile.js +21 -19
- package/dist/Header/components/HeaderMobile/HeaderMobile.js +67 -52
- package/dist/Header/components/HeaderTab/HeaderTab.js +17 -15
- package/dist/Header/components/HeaderTabsMobile/HeaderTabsMobile.js +8 -7
- package/dist/Header/components/HeaderWeb/HeaderWeb.js +134 -114
- package/dist/Header/components/TabsOutlined/TabsOutlined.js +8 -7
- package/dist/HeroIconsBanner/HeroIconsBanner.js +25 -25
- package/dist/IconList/IconList.js +60 -54
- package/dist/InfoCardList/InfoCardList.js +100 -0
- package/dist/InfoCardList/index.js +6 -0
- package/dist/InfoCardList/info.js +11 -0
- package/dist/InfoCardList/schema.js +39 -0
- package/dist/InfoCardList/types.js +1 -0
- package/dist/PageViewer/renderComponents.js +1 -1
- package/dist/PostsList/PostsList.js +78 -0
- package/dist/PostsList/index.js +4 -0
- package/dist/PostsList/info.js +11 -0
- package/dist/PostsList/schema.js +49 -0
- package/dist/PostsList/types.js +1 -0
- package/dist/PostsSlider/PostsSlider.js +78 -0
- package/dist/PostsSlider/index.js +4 -0
- package/dist/PostsSlider/info.js +11 -0
- package/dist/PostsSlider/schema.js +49 -0
- package/dist/PostsSlider/types.js +1 -0
- package/dist/RenderAllComponents/RenderAllComponents.js +1 -1
- package/dist/RenderAllComponents/const.js +1 -1
- package/dist/SearchBlock/SearchBlock.js +36 -37
- package/dist/SegmentedContent/SegmentedContent.js +160 -0
- package/dist/SegmentedContent/components/ContentCard.js +50 -0
- package/dist/SegmentedContent/components/index.js +4 -0
- package/dist/SegmentedContent/index.js +8 -0
- package/dist/SegmentedContent/info.js +12 -0
- package/dist/SegmentedContent/schema.js +108 -0
- package/dist/SegmentedContent/types.js +1 -0
- package/dist/Segments/Segments.js +36 -28
- package/dist/Segments/index.js +8 -2
- package/dist/Segments/info.js +1 -1
- package/dist/Segments/schema.js +21 -0
- package/dist/Segments/types.js +4 -1
- package/dist/SegmentsIcons/SegmentsIcons.js +92 -0
- package/dist/SegmentsIcons/index.js +8 -0
- package/dist/SegmentsIcons/info.js +11 -0
- package/dist/SegmentsIcons/schema.js +14 -0
- package/dist/SegmentsIcons/types.js +1 -0
- package/dist/SwiperList/SwiperList.js +13 -11
- package/dist/assets/index.css +1 -1
- package/dist/{componentsMap-cac6c316.js → componentsMap-29ccdfcc.js} +5 -3
- package/dist/{data.mock-ebc679ec.js → data.mock-bb32e8ee.js} +420 -148
- package/dist/index-0791c17f.js +56 -0
- package/dist/index-2ec92a04.js +32 -0
- package/dist/index.esm-0558519f.js +1171 -0
- package/dist/info-72904479.js +791 -0
- package/dist/main.js +151 -119
- package/dist/{mousewheel-865ae601.js → mousewheel-afbc6d42.js} +1 -1
- package/dist/navigation-266856e7.js +136 -0
- package/dist/navigation-cd786a0d.js +133 -0
- package/dist/{palette-c2fe86ec.js → palette-256cf77a.js} +3 -1
- package/dist/{swiper-react-90953710.js → swiper-react-3c2710e8.js} +695 -825
- package/dist/types-c3843cc0.js +4 -0
- package/dist/useDraggableScroll-440da9b7.js +29 -0
- package/dist/useTranslation-d7a3ca6f.js +298 -0
- package/package.json +1 -1
- package/dist/FileLoader/fileLoader.js +0 -22
- package/dist/FileLoader/index.js +0 -8
- package/dist/Forms/FormDefault/componentTypes.js +0 -31
- package/dist/Forms/FormDefault/fieldTypesList.js +0 -45
- package/dist/Forms/helpers/renderFormFields.js +0 -7
- package/dist/Forms/model/requestForm.js +0 -4
- package/dist/index-6686852d.js +0 -1794
- package/dist/index-a0ed2e4a.js +0 -1221
- package/dist/info-d05a1f02.js +0 -1547
- package/dist/navigation-b894d0cd.js +0 -183
- /package/dist/Forms/{types/formItems.js → FormDefault/model/types.js} +0 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "../../index.esm-0558519f.js";
|
|
3
|
+
import "../../ComponentContainer-dca711c6.js";
|
|
4
|
+
import "../../Flex-86aee720.js";
|
|
5
|
+
import { F as l } from "../../info-72904479.js";
|
|
6
|
+
import "./components/FormSuccessMessage.js";
|
|
7
|
+
import "./hooks/useFormSubmission.js";
|
|
8
|
+
import "react";
|
|
9
|
+
import "../../useTranslation-d7a3ca6f.js";
|
|
10
|
+
export {
|
|
11
|
+
l as FormDefault
|
|
12
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "../../../index.esm-0558519f.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "../hooks/useFieldVisibility.js";
|
|
5
|
+
import { i as d } from "../../../info-72904479.js";
|
|
6
|
+
import "../model/fieldTypes.js";
|
|
7
|
+
import "../model/formElementTypes.js";
|
|
8
|
+
import "../../../requestForm-23442a57.js";
|
|
9
|
+
export {
|
|
10
|
+
d as FieldCustom
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "../../../index.esm-0558519f.js";
|
|
3
|
+
import { F as d } from "../../../FieldInput-ef2a18d4.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "../hooks/useFieldVisibility.js";
|
|
6
|
+
import "../hooks/useFieldOptions.js";
|
|
7
|
+
import "../hooks/useFieldValidation.js";
|
|
8
|
+
import "../../../useTranslation-d7a3ca6f.js";
|
|
9
|
+
export {
|
|
10
|
+
d as FieldInput
|
|
11
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "../../../index.esm-0558519f.js";
|
|
3
|
+
import "../../../Flex-86aee720.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "../hooks/useFieldVisibility.js";
|
|
6
|
+
import { j as c } from "../../../info-72904479.js";
|
|
7
|
+
import "../../../useTranslation-d7a3ca6f.js";
|
|
8
|
+
export {
|
|
9
|
+
c as FieldSection
|
|
10
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "../../../index-875e92ce.js";
|
|
3
|
+
import "../../../const-53dff524.js";
|
|
4
|
+
import "../../../FieldInput-ef2a18d4.js";
|
|
5
|
+
import "../../../useScreenSize-c1b64c02.js";
|
|
6
|
+
import { l as a } from "../../../info-72904479.js";
|
|
7
|
+
import "../../../useTranslation-d7a3ca6f.js";
|
|
8
|
+
export {
|
|
9
|
+
a as FormContent
|
|
10
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { B as i } from "../../../index-875e92ce.js";
|
|
3
|
+
import { F as r } from "../../../Flex-86aee720.js";
|
|
4
|
+
import { C as n } from "../../../index-2ec92a04.js";
|
|
5
|
+
import { u as a } from "../../../useTranslation-d7a3ca6f.js";
|
|
6
|
+
const f = ({ onClose: o }) => {
|
|
7
|
+
const { t } = a();
|
|
8
|
+
return /* @__PURE__ */ s(
|
|
9
|
+
r,
|
|
10
|
+
{
|
|
11
|
+
vertical: !0,
|
|
12
|
+
align: "center",
|
|
13
|
+
className: "animate-in fade-in duration-500",
|
|
14
|
+
children: [
|
|
15
|
+
/* @__PURE__ */ e(
|
|
16
|
+
r,
|
|
17
|
+
{
|
|
18
|
+
align: "center",
|
|
19
|
+
justify: "center",
|
|
20
|
+
className: "w-20 h-20 rounded-full bg-gradient-to-br from-greenLight to-green mx-auto mb-6 shadow-lg animate-in zoom-in duration-500",
|
|
21
|
+
children: /* @__PURE__ */ e(
|
|
22
|
+
n,
|
|
23
|
+
{
|
|
24
|
+
size: 40,
|
|
25
|
+
color: "white"
|
|
26
|
+
}
|
|
27
|
+
)
|
|
28
|
+
}
|
|
29
|
+
),
|
|
30
|
+
/* @__PURE__ */ e("div", { className: "font-semibold text-2xl text-center text-blackBG mb-3", children: t("form.success_title", "Заявка успешно отправлена") }),
|
|
31
|
+
/* @__PURE__ */ e("div", { className: "text-lg text-center text-graySoft", children: t(
|
|
32
|
+
"form.success_description",
|
|
33
|
+
"С Вами свяжется наш специалист и поможет с подключением сервиса"
|
|
34
|
+
) }),
|
|
35
|
+
/* @__PURE__ */ e(
|
|
36
|
+
i,
|
|
37
|
+
{
|
|
38
|
+
className: "justify-center m-auto mt-6",
|
|
39
|
+
title: t("form.close", "Закрыть"),
|
|
40
|
+
onClick: o
|
|
41
|
+
}
|
|
42
|
+
)
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
};
|
|
47
|
+
export {
|
|
48
|
+
f as FormSuccessMessage
|
|
49
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { useFormSubmission as e } from "./useFormSubmission.js";
|
|
2
|
+
import { useFieldVisibility as s } from "./useFieldVisibility.js";
|
|
3
|
+
import { useFieldOptions as m } from "./useFieldOptions.js";
|
|
4
|
+
import { useFieldValidation as p } from "./useFieldValidation.js";
|
|
5
|
+
export {
|
|
6
|
+
m as useFieldOptions,
|
|
7
|
+
p as useFieldValidation,
|
|
8
|
+
s as useFieldVisibility,
|
|
9
|
+
e as useFormSubmission
|
|
10
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { useState as m, useEffect as b } from "react";
|
|
2
|
+
import { b as v } from "../../../index.esm-0558519f.js";
|
|
3
|
+
const U = (e) => {
|
|
4
|
+
var c, i, u;
|
|
5
|
+
const [d, l] = m([]), { watch: _ } = v(), a = (((i = (c = e.field_props) == null ? void 0 : c.optionsUrl) == null ? void 0 : i.match(/{([^}]+)}/g)) || []).map(
|
|
6
|
+
(t) => t.replace(/[{}]/g, "")
|
|
7
|
+
), n = _(a);
|
|
8
|
+
return b(() => {
|
|
9
|
+
var t;
|
|
10
|
+
if (e.type === "select" && ((t = e.field_props) != null && t.optionsUrl)) {
|
|
11
|
+
let p = e.field_props.optionsUrl, f = !0;
|
|
12
|
+
a.forEach((s, r) => {
|
|
13
|
+
const o = n[r];
|
|
14
|
+
o || (f = !1), p = p.replace(`{${s}}`, String(o));
|
|
15
|
+
}), f ? fetch(p).then((s) => s.json()).then((s) => {
|
|
16
|
+
if (Array.isArray(s)) {
|
|
17
|
+
const r = s.map((o) => {
|
|
18
|
+
var h, y;
|
|
19
|
+
return {
|
|
20
|
+
label: (h = e.field_props) != null && h.labelKey ? o[e.field_props.labelKey] : o.title || o.label,
|
|
21
|
+
value: (y = e.field_props) != null && y.valueKey ? o[e.field_props.valueKey] : o.id || o.value
|
|
22
|
+
};
|
|
23
|
+
});
|
|
24
|
+
l(r);
|
|
25
|
+
}
|
|
26
|
+
}).catch((s) => console.error("Failed to fetch options", s)) : l([]);
|
|
27
|
+
}
|
|
28
|
+
}, [(u = e.field_props) == null ? void 0 : u.optionsUrl, e.type, ...n]), d;
|
|
29
|
+
};
|
|
30
|
+
export {
|
|
31
|
+
U as useFieldOptions
|
|
32
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
const p = (i, t) => {
|
|
2
|
+
var m, s, o;
|
|
3
|
+
const e = ((m = i.field_props) == null ? void 0 : m.validation) || {}, r = i.rules || {};
|
|
4
|
+
if (e.required && !r.required)
|
|
5
|
+
if (i.type === "radio") {
|
|
6
|
+
const a = e.required === !0 ? t("form.required_field", "Обязательное поле") : e.required;
|
|
7
|
+
r.validate = {
|
|
8
|
+
required: (n) => n != null && n !== "" || a
|
|
9
|
+
};
|
|
10
|
+
} else if (["checkbox", "file"].includes(i.type)) {
|
|
11
|
+
const a = e.required === !0 ? t("form.required_field", "Обязательное поле") : e.required;
|
|
12
|
+
r.validate = {
|
|
13
|
+
required: (n) => Array.isArray(n) && n.length > 0 || a
|
|
14
|
+
};
|
|
15
|
+
} else
|
|
16
|
+
r.required = e.required === !0 ? t("form.required_field", "Обязательное поле") : e.required;
|
|
17
|
+
return e.min && (r.min = e.min), e.max && (r.max = e.max), e.minLength && (r.minLength = e.minLength), e.maxLength && (r.maxLength = e.maxLength), e.pattern && (typeof e.pattern == "string" ? r.pattern = {
|
|
18
|
+
value: new RegExp(e.pattern),
|
|
19
|
+
message: t("form.invalid_format", "Неверный формат")
|
|
20
|
+
} : typeof e.pattern == "object" && e.pattern.value && (r.pattern = {
|
|
21
|
+
value: new RegExp(e.pattern.value),
|
|
22
|
+
message: e.pattern.message
|
|
23
|
+
})), (s = i.field_props) != null && s.maxLength && !r.maxLength && (r.maxLength = i.field_props.maxLength), (o = i.field_props) != null && o.minLength && !r.minLength && (r.minLength = {
|
|
24
|
+
value: i.field_props.minLength,
|
|
25
|
+
message: t(
|
|
26
|
+
"form.min_length",
|
|
27
|
+
`Минимальная длина ${i.field_props.minLength} символов`
|
|
28
|
+
)
|
|
29
|
+
}), r;
|
|
30
|
+
};
|
|
31
|
+
export {
|
|
32
|
+
p as useFieldValidation
|
|
33
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { a as s } from "../../../index.esm-0558519f.js";
|
|
2
|
+
const u = (r, i) => {
|
|
3
|
+
const n = s({ control: i });
|
|
4
|
+
return !r || r.length === 0 ? !0 : r.every((t) => {
|
|
5
|
+
const e = n == null ? void 0 : n[t.name];
|
|
6
|
+
switch (t.operator) {
|
|
7
|
+
case "eq":
|
|
8
|
+
return String(e) === String(t.value);
|
|
9
|
+
case "neq":
|
|
10
|
+
return String(e) !== String(t.value);
|
|
11
|
+
case "exists":
|
|
12
|
+
return e != null && e !== "";
|
|
13
|
+
case "not_exists":
|
|
14
|
+
return e == null || e === "";
|
|
15
|
+
case "includes":
|
|
16
|
+
return Array.isArray(e) && e.includes(t.value);
|
|
17
|
+
default:
|
|
18
|
+
return !0;
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
u as useFieldVisibility
|
|
24
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { useState as r } from "react";
|
|
2
|
+
import { u as y } from "../../../index.esm-0558519f.js";
|
|
3
|
+
import { u as E } from "../../../useTranslation-d7a3ca6f.js";
|
|
4
|
+
const O = ({
|
|
5
|
+
requestForm: t,
|
|
6
|
+
object_data: c
|
|
7
|
+
}) => {
|
|
8
|
+
const { t: d } = E(), [S, i] = r(!1), [b, a] = r(!1), [h, l] = r(null), u = y({
|
|
9
|
+
defaultValues: {
|
|
10
|
+
agreement: !1
|
|
11
|
+
}
|
|
12
|
+
}), { reset: f } = u;
|
|
13
|
+
return {
|
|
14
|
+
form: u,
|
|
15
|
+
successSent: S,
|
|
16
|
+
isLoading: b,
|
|
17
|
+
submitError: h,
|
|
18
|
+
onSubmit: async (p) => {
|
|
19
|
+
if (!(t != null && t.api_url)) {
|
|
20
|
+
console.warn("API URL is not defined in requestForm props");
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
console.log("Submit: ", p), a(!0), l(null);
|
|
24
|
+
try {
|
|
25
|
+
const s = new FormData();
|
|
26
|
+
Object.entries(p).forEach(([e, o]) => {
|
|
27
|
+
o != null && (Array.isArray(o) ? o.forEach((g) => {
|
|
28
|
+
s.append(e, g);
|
|
29
|
+
}) : s.append(e, o));
|
|
30
|
+
}), c && Object.entries(c).forEach(([e, o]) => {
|
|
31
|
+
s == null || s.append(e, o);
|
|
32
|
+
});
|
|
33
|
+
const n = await fetch(t.api_url, {
|
|
34
|
+
method: "POST",
|
|
35
|
+
// При отправке FormData заголовок Content-Type устанавливать НЕ НУЖНО
|
|
36
|
+
body: s
|
|
37
|
+
});
|
|
38
|
+
if (!n.ok)
|
|
39
|
+
throw new Error(`HTTP error! status: ${n.status}`);
|
|
40
|
+
const m = n.headers.get("content-type");
|
|
41
|
+
if (m && m.includes("application/json")) {
|
|
42
|
+
const e = await n.json();
|
|
43
|
+
console.log("Success:", e);
|
|
44
|
+
}
|
|
45
|
+
i(!0), f();
|
|
46
|
+
} catch (s) {
|
|
47
|
+
console.error("Error submitting form:", s), l(
|
|
48
|
+
d(
|
|
49
|
+
"form.submit_error",
|
|
50
|
+
"Произошла ошибка при отправке. Пожалуйста, попробуйте позже."
|
|
51
|
+
)
|
|
52
|
+
);
|
|
53
|
+
} finally {
|
|
54
|
+
a(!1);
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
handleCloseSuccess: () => {
|
|
58
|
+
i(!1), f();
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
export {
|
|
63
|
+
O as useFormSubmission
|
|
64
|
+
};
|
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import "react";
|
|
3
|
-
import "../../index-a0ed2e4a.js";
|
|
4
|
-
import "../../index-875e92ce.js";
|
|
5
|
-
import "../../const-53dff524.js";
|
|
6
|
-
import { F, l as d } from "../../info-d05a1f02.js";
|
|
7
|
-
import "../../ComponentContainer-dca711c6.js";
|
|
8
|
-
import "../../useScreenSize-c1b64c02.js";
|
|
9
|
-
import "../../requestForm-23442a57.js";
|
|
10
|
-
import "../../index-6686852d.js";
|
|
1
|
+
import { F as s, m as a, f, o as m, n as e } from "../../info-72904479.js";
|
|
11
2
|
export {
|
|
12
|
-
|
|
13
|
-
|
|
3
|
+
s as FormDefault,
|
|
4
|
+
a as FormFieldsProps,
|
|
5
|
+
f as formDefaultInfo,
|
|
6
|
+
m as formDefaultProps,
|
|
7
|
+
e as propsToEdit
|
|
14
8
|
};
|
|
@@ -1,118 +1,6 @@
|
|
|
1
|
-
import "../../Types/FiledTypes.js";
|
|
2
|
-
import "../../ConfigProvider/index.js";
|
|
3
|
-
import "../../Banner/Banner.js";
|
|
4
|
-
import "../../BannerAndText/index.js";
|
|
5
|
-
import "react/jsx-runtime";
|
|
6
|
-
import "react";
|
|
7
|
-
import "../../Faq/components/Collapse/Collapse.js";
|
|
8
|
-
import "../../Header/components/HeaderTabsMobile/HeaderTabsMobile.js";
|
|
9
|
-
import "../../HtmlContent/HtmlContent.js";
|
|
10
|
-
import "../../Header/components/TabsOutlined/TabsOutlined.js";
|
|
11
|
-
import "../../index-875e92ce.js";
|
|
12
|
-
import "../../const-53dff524.js";
|
|
13
|
-
import "../../Stepper/Stepper.js";
|
|
14
|
-
import "../../Segments/Segments.js";
|
|
15
|
-
import "../../Video/VideoFull/VideoFull.js";
|
|
16
|
-
import "../../Video/VideoList/VideoList.js";
|
|
17
|
-
import "../../Video/VideoListMini/VideoListMini.js";
|
|
18
|
-
import "../../ContentCardList/ContentCardList.js";
|
|
19
|
-
import "../../CardIconList/CardIconList.js";
|
|
20
|
-
import "../../MultiCards/index.js";
|
|
21
|
-
import "../../Partners/Partners.js";
|
|
22
|
-
import "../../CardImageList/CardImageList.js";
|
|
23
|
-
import "../../MainBanner/MainBanner.js";
|
|
24
|
-
import "../../Faq/Faq.js";
|
|
25
|
-
import "../../InstructionList/InstructionList.js";
|
|
26
|
-
import "../../HeroPossibilityBanner/index.js";
|
|
27
|
-
import "../../PartnersColors/PartnersColors.js";
|
|
28
|
-
import "../../PreviewList/PreviewList.js";
|
|
29
|
-
import "../../Cards/CardImage/CardImage.js";
|
|
30
|
-
import "../../Cards/CardImage/info.js";
|
|
31
|
-
import "../../Cards/ContentCard/ContentCard.js";
|
|
32
|
-
import { k as fr, f as sr, j as ar, i as er } from "../../info-d05a1f02.js";
|
|
33
|
-
import "../../Cards/ColoredCard/index.js";
|
|
34
|
-
import "../../Cards/FeaturesCard/index.js";
|
|
35
|
-
import "../../DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js";
|
|
36
|
-
import "../../DownloadFile/components/DownloadFileFull/DownloadFileFull.js";
|
|
37
|
-
import "../../DownloadFile/components/DownloadFileHalf/DownloadFileHalf.js";
|
|
38
|
-
import "../../DownloadFile/components/DownloadFileMini/DownloadFileMini.js";
|
|
39
|
-
import "../../InstructionList/components/InstructionCard/InstructionCard.js";
|
|
40
|
-
import "../../PreviewList/components/PreviewCard/PreviewCard.js";
|
|
41
|
-
import "../../AnimatedSwiper/index.js";
|
|
42
|
-
import "../../CardImageSecondary/CardImageSecondary.js";
|
|
43
|
-
import "../../CardImageSecondaryList/CardImageSecondaryList.js";
|
|
44
|
-
import "../../CardInfoTable/index.js";
|
|
45
|
-
import "../../DownloadFile/components/DownloadFileBright/index.js";
|
|
46
|
-
import "../../DownloadFile/components/FileBannerSecondary/FileBannerSecondary.js";
|
|
47
|
-
import "../../InfoBanner/index.js";
|
|
48
|
-
import "../../InfoBannerList/InfoBannerList.js";
|
|
49
|
-
import "../../IntroBanner/IntroBanner.js";
|
|
50
|
-
import "../../PromoPoster/PromoPoster.js";
|
|
51
|
-
import "../../Space/Space.js";
|
|
52
|
-
import "../../StandartTable/index.js";
|
|
53
|
-
import "../../SwiperList/SwiperList.js";
|
|
54
|
-
import "../../TasksBanner/TasksBanner.js";
|
|
55
|
-
import "../../TasksBannerList/TasksBannerList.js";
|
|
56
|
-
import "../../TitleBlock/TitleBlock.js";
|
|
57
|
-
import "../../VideoMainBanner/VideoMainBanner.js";
|
|
58
|
-
import "react-dom";
|
|
59
|
-
import "../../AnimatedSwiper/info.js";
|
|
60
|
-
import "../../Banner/info.js";
|
|
61
|
-
import "../../BannerAndText/info.js";
|
|
62
|
-
import "../../ButtonsList/info.js";
|
|
63
|
-
import "../../CardIconList/info.js";
|
|
64
|
-
import "../../CardImageList/info.js";
|
|
65
|
-
import "../../CardImageSecondary/info.js";
|
|
66
|
-
import "../../CardImageSecondaryList/info.js";
|
|
67
|
-
import "../../CardInfoTable/info.js";
|
|
68
|
-
import "../../Cards/ColoredCard/info.js";
|
|
69
|
-
import "../../Cards/ContentCard/info.js";
|
|
70
|
-
import "../../Cards/FeaturesCard/info.js";
|
|
71
|
-
import "../../ContentCardList/info.js";
|
|
72
|
-
import "../../DownloadFile/components/DownloadFileBanner/info.js";
|
|
73
|
-
import "../../DownloadFile/components/DownloadFileBright/info.js";
|
|
74
|
-
import "../../DownloadFile/components/DownloadFileFull/info.js";
|
|
75
|
-
import "../../DownloadFile/components/DownloadFileHalf/info.js";
|
|
76
|
-
import "../../DownloadFile/components/DownloadFileMini/info.js";
|
|
77
|
-
import "../../Faq/info.js";
|
|
78
|
-
import "../../Footer/info.js";
|
|
79
|
-
import "../../Header/info.js";
|
|
80
|
-
import "../../HeroIconsBanner/info.js";
|
|
81
|
-
import "../../HeroPossibilityBanner/info.js";
|
|
82
|
-
import "../../IconList/info.js";
|
|
83
|
-
import "../../InfoBanner/info.js";
|
|
84
|
-
import "../../InfoBannerList/info.js";
|
|
85
|
-
import "../../InstructionList/info.js";
|
|
86
|
-
import "../../IntroBanner/info.js";
|
|
87
|
-
import "../../MainBanner/info.js";
|
|
88
|
-
import "../../MultiCards/info.js";
|
|
89
|
-
import "../../Partners/info.js";
|
|
90
|
-
import "../../PartnersColors/info.js";
|
|
91
|
-
import "../../PreviewList/info.js";
|
|
92
|
-
import "../../PromoPoster/info.js";
|
|
93
|
-
import "../../SearchBlock/info.js";
|
|
94
|
-
import "../../Segments/info.js";
|
|
95
|
-
import "../../Space/info.js";
|
|
96
|
-
import "../../StandartTable/info.js";
|
|
97
|
-
import "../../Stepper/info.js";
|
|
98
|
-
import "../../SwiperList/info.js";
|
|
99
|
-
import "../../TasksBanner/info.js";
|
|
100
|
-
import "../../TasksBannerList/info.js";
|
|
101
|
-
import "../../Video/VideoFull/info.js";
|
|
102
|
-
import "../../Video/VideoList/info.js";
|
|
103
|
-
import "../../Video/VideoListMini/info.js";
|
|
104
|
-
import "../../VideoMainBanner/info.js";
|
|
105
|
-
import "../../Actions/types.js";
|
|
106
|
-
import "../../Actions/projectActions.js";
|
|
107
|
-
import "../../Flex-86aee720.js";
|
|
108
|
-
import "../../HeroIconsBanner/HeroIconsBanner.js";
|
|
109
|
-
import "../../requestForm-23442a57.js";
|
|
110
1
|
import "../../index-0a5f313c.js";
|
|
111
|
-
import "
|
|
112
|
-
import "./fieldTypesList.js";
|
|
2
|
+
import { f as a, o as m } from "../../info-72904479.js";
|
|
113
3
|
export {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
ar as formDefaultProps,
|
|
117
|
-
er as info
|
|
4
|
+
a as formDefaultInfo,
|
|
5
|
+
m as formDefaultProps
|
|
118
6
|
};
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import "../../../TitleBlock/TitleBlock.js";
|
|
2
|
+
import "../../../ConfigProvider/index.js";
|
|
3
|
+
import "../../../Banner/Banner.js";
|
|
4
|
+
import "../../../BannerAndText/index.js";
|
|
5
|
+
import "react/jsx-runtime";
|
|
6
|
+
import "react";
|
|
7
|
+
import "../../../Faq/components/Collapse/Collapse.js";
|
|
8
|
+
import "../../../Header/components/HeaderTabsMobile/HeaderTabsMobile.js";
|
|
9
|
+
import "../../../HtmlContent/HtmlContent.js";
|
|
10
|
+
import "../../../Header/components/TabsOutlined/TabsOutlined.js";
|
|
11
|
+
import "../../../index-875e92ce.js";
|
|
12
|
+
import "../../../const-53dff524.js";
|
|
13
|
+
import "../../../Stepper/Stepper.js";
|
|
14
|
+
import "../../../Segments/Segments.js";
|
|
15
|
+
import "../../../Segments/info.js";
|
|
16
|
+
import "../../../Segments/schema.js";
|
|
17
|
+
import "../../../Video/VideoFull/VideoFull.js";
|
|
18
|
+
import "../../../Video/VideoList/VideoList.js";
|
|
19
|
+
import "../../../Video/VideoListMini/VideoListMini.js";
|
|
20
|
+
import "../../../ContentCardList/ContentCardList.js";
|
|
21
|
+
import "../../../CardIconList/CardIconList.js";
|
|
22
|
+
import "../../../MultiCards/index.js";
|
|
23
|
+
import "../../../Partners/Partners.js";
|
|
24
|
+
import "../../../CardImageList/CardImageList.js";
|
|
25
|
+
import "../../../MainBanner/MainBanner.js";
|
|
26
|
+
import "../../../Faq/Faq.js";
|
|
27
|
+
import "../../../InstructionList/InstructionList.js";
|
|
28
|
+
import "../../../HeroPossibilityBanner/index.js";
|
|
29
|
+
import "../../../PartnersColors/PartnersColors.js";
|
|
30
|
+
import "../../../PreviewList/PreviewList.js";
|
|
31
|
+
import "../../../Cards/CardImage/CardImage.js";
|
|
32
|
+
import "../../../Cards/CardImage/info.js";
|
|
33
|
+
import "../../../Cards/ContentCard/ContentCard.js";
|
|
34
|
+
import { h as vp, g as wp } from "../../../info-72904479.js";
|
|
35
|
+
import "../../../Cards/ColoredCard/index.js";
|
|
36
|
+
import "../../../Cards/FeaturesCard/index.js";
|
|
37
|
+
import "../../../DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js";
|
|
38
|
+
import "../../../DownloadFile/components/DownloadFileFull/DownloadFileFull.js";
|
|
39
|
+
import "../../../DownloadFile/components/DownloadFileHalf/DownloadFileHalf.js";
|
|
40
|
+
import "../../../DownloadFile/components/DownloadFileMini/DownloadFileMini.js";
|
|
41
|
+
import "../../../InstructionList/components/InstructionCard/InstructionCard.js";
|
|
42
|
+
import "../../../PreviewList/components/PreviewCard/PreviewCard.js";
|
|
43
|
+
import "../../../AnimatedSwiper/index.js";
|
|
44
|
+
import "../../../CardImageSecondary/CardImageSecondary.js";
|
|
45
|
+
import "../../../CardImageSecondaryList/CardImageSecondaryList.js";
|
|
46
|
+
import "../../../CardInfoTable/index.js";
|
|
47
|
+
import "../../../DownloadFile/components/DownloadFileBright/index.js";
|
|
48
|
+
import "../../../DownloadFile/components/FileBannerSecondary/FileBannerSecondary.js";
|
|
49
|
+
import "../../../InfoBanner/index.js";
|
|
50
|
+
import "../../../InfoBannerList/InfoBannerList.js";
|
|
51
|
+
import "../../../IntroBanner/IntroBanner.js";
|
|
52
|
+
import "../../../PromoPoster/PromoPoster.js";
|
|
53
|
+
import "../../../Space/Space.js";
|
|
54
|
+
import "../../../StandartTable/index.js";
|
|
55
|
+
import "../../../SwiperList/SwiperList.js";
|
|
56
|
+
import "../../../TasksBanner/TasksBanner.js";
|
|
57
|
+
import "../../../TasksBannerList/TasksBannerList.js";
|
|
58
|
+
import "../../../VideoMainBanner/VideoMainBanner.js";
|
|
59
|
+
import "react-dom";
|
|
60
|
+
import "../../../ActionCardSecondaryList/info.js";
|
|
61
|
+
import "../../../AnimatedSwiper/info.js";
|
|
62
|
+
import "../../../Banner/info.js";
|
|
63
|
+
import "../../../BannerAndText/info.js";
|
|
64
|
+
import "../../../ButtonsList/info.js";
|
|
65
|
+
import "../../../CardIconList/info.js";
|
|
66
|
+
import "../../../CardImageList/info.js";
|
|
67
|
+
import "../../../CardImageSecondary/info.js";
|
|
68
|
+
import "../../../CardImageSecondaryList/info.js";
|
|
69
|
+
import "../../../CardInfoTable/info.js";
|
|
70
|
+
import "../../../Cards/ColoredCard/info.js";
|
|
71
|
+
import "../../../Cards/ContentCard/info.js";
|
|
72
|
+
import "../../../Cards/FeaturesCard/info.js";
|
|
73
|
+
import "../../../Cards/InfoCard/info.js";
|
|
74
|
+
import "../../../Cards/PostCard/info.js";
|
|
75
|
+
import "../../../ContentCardList/info.js";
|
|
76
|
+
import "../../../CurrencyRates/info.js";
|
|
77
|
+
import "../../../DownloadFile/components/DownloadFileBanner/info.js";
|
|
78
|
+
import "../../../DownloadFile/components/DownloadFileBright/info.js";
|
|
79
|
+
import "../../../DownloadFile/components/DownloadFileFull/info.js";
|
|
80
|
+
import "../../../DownloadFile/components/DownloadFileHalf/info.js";
|
|
81
|
+
import "../../../DownloadFile/components/DownloadFileMini/info.js";
|
|
82
|
+
import "../../../Faq/info.js";
|
|
83
|
+
import "../../../Footer/info.js";
|
|
84
|
+
import "../../../Header/info.js";
|
|
85
|
+
import "../../../HeroIconsBanner/info.js";
|
|
86
|
+
import "../../../HeroPossibilityBanner/info.js";
|
|
87
|
+
import "../../../IconList/info.js";
|
|
88
|
+
import "../../../InfoBanner/info.js";
|
|
89
|
+
import "../../../InfoBannerList/info.js";
|
|
90
|
+
import "../../../InfoCardList/info.js";
|
|
91
|
+
import "../../../InstructionList/info.js";
|
|
92
|
+
import "../../../IntroBanner/info.js";
|
|
93
|
+
import "../../../MainBanner/info.js";
|
|
94
|
+
import "../../../MultiCards/info.js";
|
|
95
|
+
import "../../../Partners/info.js";
|
|
96
|
+
import "../../../PartnersColors/info.js";
|
|
97
|
+
import "../../../PostsSlider/info.js";
|
|
98
|
+
import "../../../PreviewList/info.js";
|
|
99
|
+
import "../../../PromoPoster/info.js";
|
|
100
|
+
import "../../../SearchBlock/info.js";
|
|
101
|
+
import "../../../SegmentedContent/info.js";
|
|
102
|
+
import "../../../SegmentsIcons/info.js";
|
|
103
|
+
import "../../../Space/info.js";
|
|
104
|
+
import "../../../StandartTable/info.js";
|
|
105
|
+
import "../../../Stepper/info.js";
|
|
106
|
+
import "../../../SwiperList/info.js";
|
|
107
|
+
import "../../../TasksBanner/info.js";
|
|
108
|
+
import "../../../TasksBannerList/info.js";
|
|
109
|
+
import "../../../Video/VideoFull/info.js";
|
|
110
|
+
import "../../../Video/VideoList/info.js";
|
|
111
|
+
import "../../../Video/VideoListMini/info.js";
|
|
112
|
+
import "../../../VideoMainBanner/info.js";
|
|
113
|
+
import "../../../Actions/types.js";
|
|
114
|
+
import "../../../Actions/projectActions.js";
|
|
115
|
+
import "../../../Flex-86aee720.js";
|
|
116
|
+
import "../../../HeroIconsBanner/HeroIconsBanner.js";
|
|
117
|
+
import "../../../SegmentsIcons/SegmentsIcons.js";
|
|
118
|
+
import "../../../SegmentsIcons/schema.js";
|
|
119
|
+
import "../../../SegmentedContent/SegmentedContent.js";
|
|
120
|
+
import "../../../SegmentedContent/schema.js";
|
|
121
|
+
import "../../../InfoCardList/InfoCardList.js";
|
|
122
|
+
import "../../../InfoCardList/schema.js";
|
|
123
|
+
import "../../../Cards/InfoCard/InfoCard.js";
|
|
124
|
+
import "../../../Cards/InfoCard/schema.js";
|
|
125
|
+
import "../../../CurrencyRates/CurrencyRates.js";
|
|
126
|
+
import "../../../CurrencyRates/schema.js";
|
|
127
|
+
import "../../../ActionCardSecondaryList/ActionCardSecondaryList.js";
|
|
128
|
+
import "../../../Cards/ActionSecondaryCard/ActionSecondaryCard.js";
|
|
129
|
+
import "../../../Cards/PostCard/PostCard.js";
|
|
130
|
+
import "../../../PostsSlider/PostsSlider.js";
|
|
131
|
+
export {
|
|
132
|
+
vp as componentsList,
|
|
133
|
+
wp as componentsMap
|
|
134
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
text: { value: "text", label: "Text" },
|
|
3
|
+
number: { value: "number", label: "Number" },
|
|
4
|
+
phone: { value: "phone", label: "Phone" },
|
|
5
|
+
email: { value: "email", label: "Email" },
|
|
6
|
+
password: { value: "password", label: "Password" },
|
|
7
|
+
textarea: { value: "textarea", label: "Textarea" },
|
|
8
|
+
select: { value: "select", label: "Select" },
|
|
9
|
+
radio: { value: "radio", label: "Radio" },
|
|
10
|
+
checkbox: { value: "checkbox", label: "Checkbox" },
|
|
11
|
+
date: { value: "date", label: "Date" },
|
|
12
|
+
time: { value: "time", label: "Time" },
|
|
13
|
+
file: { value: "file", label: "File" }
|
|
14
|
+
}, l = Object.values(e);
|
|
15
|
+
export {
|
|
16
|
+
l as FieldTypeOptions,
|
|
17
|
+
e as FieldTypeParams
|
|
18
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
field: {
|
|
3
|
+
value: "field",
|
|
4
|
+
label: "Поле"
|
|
5
|
+
},
|
|
6
|
+
component: {
|
|
7
|
+
value: "component",
|
|
8
|
+
label: "Компонент"
|
|
9
|
+
},
|
|
10
|
+
section: {
|
|
11
|
+
value: "section",
|
|
12
|
+
label: "Секция"
|
|
13
|
+
}
|
|
14
|
+
}, l = Object.values(e);
|
|
15
|
+
export {
|
|
16
|
+
l as FormElementTypeOptions,
|
|
17
|
+
e as FormElementTypeParams
|
|
18
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { h as m, g as p } from "../../../info-72904479.js";
|
|
2
|
+
import { FieldTypeOptions as t, FieldTypeParams as s } from "./fieldTypes.js";
|
|
3
|
+
import { FormElementTypeOptions as n, FormElementTypeParams as i } from "./formElementTypes.js";
|
|
4
|
+
import { R as f } from "../../../requestForm-23442a57.js";
|
|
5
|
+
export {
|
|
6
|
+
t as FieldTypeOptions,
|
|
7
|
+
s as FieldTypeParams,
|
|
8
|
+
n as FormElementTypeOptions,
|
|
9
|
+
i as FormElementTypeParams,
|
|
10
|
+
f as RequestForm,
|
|
11
|
+
m as componentsList,
|
|
12
|
+
p as componentsMap
|
|
13
|
+
};
|