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.
Files changed (147) hide show
  1. package/dist/ActionCardList/ActionCardList.js +28 -5
  2. package/dist/ActionCardList/index.js +1 -1
  3. package/dist/ActionCardList/info.js +1 -1
  4. package/dist/ActionCardSecondaryList/ActionCardSecondaryList.js +32 -0
  5. package/dist/ActionCardSecondaryList/index.js +6 -0
  6. package/dist/ActionCardSecondaryList/info.js +11 -0
  7. package/dist/ActionCardSecondaryList/schema.js +51 -0
  8. package/dist/ActionCardSecondaryList/types.js +4 -0
  9. package/dist/ActionIconList/ActionIconList.js +25 -2
  10. package/dist/AllComponents.js +28 -5
  11. package/dist/AllComponentsInfo.js +111 -95
  12. package/dist/AnimatedSwiper/index.js +40 -38
  13. package/dist/CardImageList/CardImageList.js +122 -81
  14. package/dist/CardImageList/schema.js +17 -12
  15. package/dist/Cards/ActionSecondaryCard/ActionSecondaryCard.js +77 -0
  16. package/dist/Cards/ActionSecondaryCard/index.js +6 -0
  17. package/dist/Cards/ActionSecondaryCard/info.js +11 -0
  18. package/dist/Cards/ActionSecondaryCard/types.js +4 -0
  19. package/dist/Cards/CardImage/CardImage.js +48 -50
  20. package/dist/Cards/InfoCard/InfoCard.js +114 -0
  21. package/dist/Cards/InfoCard/index.js +9 -0
  22. package/dist/Cards/InfoCard/info.js +11 -0
  23. package/dist/Cards/InfoCard/schema.js +60 -0
  24. package/dist/Cards/InfoCard/types.js +4 -0
  25. package/dist/Cards/PostCard/PostCard.js +60 -0
  26. package/dist/Cards/PostCard/index.js +6 -0
  27. package/dist/Cards/PostCard/info.js +11 -0
  28. package/dist/Cards/PostCard/types.js +4 -0
  29. package/dist/Cards/WarningCard/WarningCard.js +27 -4
  30. package/dist/Cards/WarningCard/index.js +1 -1
  31. package/dist/Cards/WarningCard/info.js +1 -1
  32. package/dist/Cards/WarningCard/model.js +1 -1
  33. package/dist/CurrencyRates/CurrencyRates.js +78 -0
  34. package/dist/CurrencyRates/components/Calculator.js +101 -0
  35. package/dist/CurrencyRates/components/RateCell.js +15 -0
  36. package/dist/CurrencyRates/components/RatesTable.js +134 -0
  37. package/dist/CurrencyRates/components/index.js +6 -0
  38. package/dist/CurrencyRates/index.js +8 -0
  39. package/dist/CurrencyRates/info.js +11 -0
  40. package/dist/CurrencyRates/schema.js +63 -0
  41. package/dist/CurrencyRates/types.js +4 -0
  42. package/dist/DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js +1 -1
  43. package/dist/DownloadFile/components/DownloadFileFull/DownloadFileFull.js +1 -1
  44. package/dist/DownloadFile/components/DownloadFileHalf/DownloadFileHalf.js +1 -1
  45. package/dist/DownloadFile/components/DownloadFileMini/DownloadFileMini.js +1 -1
  46. package/dist/DownloadFile/components/FileBannerSecondary/FileBannerSecondary.js +1 -1
  47. package/dist/Faq/Faq.js +1 -1
  48. package/dist/Faq/components/FeedbackForm/FeedbackForm.js +55 -6
  49. package/dist/Faq/components/FeedbackForm/index.js +1 -1
  50. package/dist/FieldInput-ef2a18d4.js +2743 -0
  51. package/dist/Forms/FormDefault/FormDefault.js +12 -0
  52. package/dist/Forms/FormDefault/components/FieldCustom.js +11 -0
  53. package/dist/Forms/FormDefault/components/FieldInput.js +11 -0
  54. package/dist/Forms/FormDefault/components/FieldSection.js +10 -0
  55. package/dist/Forms/FormDefault/components/FormContent.js +10 -0
  56. package/dist/Forms/FormDefault/components/FormFields.js +7 -0
  57. package/dist/Forms/FormDefault/components/FormSuccessMessage.js +49 -0
  58. package/dist/Forms/FormDefault/components/index.js +6 -0
  59. package/dist/Forms/FormDefault/hooks/index.js +10 -0
  60. package/dist/Forms/FormDefault/hooks/useFieldOptions.js +32 -0
  61. package/dist/Forms/FormDefault/hooks/useFieldValidation.js +33 -0
  62. package/dist/Forms/FormDefault/hooks/useFieldVisibility.js +24 -0
  63. package/dist/Forms/FormDefault/hooks/useFormSubmission.js +64 -0
  64. package/dist/Forms/FormDefault/index.js +6 -12
  65. package/dist/Forms/FormDefault/info.js +3 -115
  66. package/dist/Forms/FormDefault/model/componentRegistry.js +134 -0
  67. package/dist/Forms/FormDefault/model/fieldTypes.js +18 -0
  68. package/dist/Forms/FormDefault/model/formElementTypes.js +18 -0
  69. package/dist/Forms/FormDefault/model/index.js +13 -0
  70. package/dist/Forms/FormDefault/model/requestForm.js +4 -0
  71. package/dist/Forms/{model/components.js → FormDefault/schema.js} +32 -5
  72. package/dist/Forms/FormDefault/utils.js +20 -0
  73. package/dist/Grid-331af266.js +80 -0
  74. package/dist/Header/Header.js +54 -42
  75. package/dist/Header/components/HeaderMainMobile/HeaderMainMobile.js +21 -19
  76. package/dist/Header/components/HeaderMobile/HeaderMobile.js +67 -52
  77. package/dist/Header/components/HeaderTab/HeaderTab.js +17 -15
  78. package/dist/Header/components/HeaderTabsMobile/HeaderTabsMobile.js +8 -7
  79. package/dist/Header/components/HeaderWeb/HeaderWeb.js +134 -114
  80. package/dist/Header/components/TabsOutlined/TabsOutlined.js +8 -7
  81. package/dist/HeroIconsBanner/HeroIconsBanner.js +25 -25
  82. package/dist/IconList/IconList.js +60 -54
  83. package/dist/InfoCardList/InfoCardList.js +100 -0
  84. package/dist/InfoCardList/index.js +6 -0
  85. package/dist/InfoCardList/info.js +11 -0
  86. package/dist/InfoCardList/schema.js +39 -0
  87. package/dist/InfoCardList/types.js +1 -0
  88. package/dist/PageViewer/renderComponents.js +1 -1
  89. package/dist/PostsList/PostsList.js +78 -0
  90. package/dist/PostsList/index.js +4 -0
  91. package/dist/PostsList/info.js +11 -0
  92. package/dist/PostsList/schema.js +49 -0
  93. package/dist/PostsList/types.js +1 -0
  94. package/dist/PostsSlider/PostsSlider.js +78 -0
  95. package/dist/PostsSlider/index.js +4 -0
  96. package/dist/PostsSlider/info.js +11 -0
  97. package/dist/PostsSlider/schema.js +49 -0
  98. package/dist/PostsSlider/types.js +1 -0
  99. package/dist/RenderAllComponents/RenderAllComponents.js +1 -1
  100. package/dist/RenderAllComponents/const.js +1 -1
  101. package/dist/SearchBlock/SearchBlock.js +36 -37
  102. package/dist/SegmentedContent/SegmentedContent.js +160 -0
  103. package/dist/SegmentedContent/components/ContentCard.js +50 -0
  104. package/dist/SegmentedContent/components/index.js +4 -0
  105. package/dist/SegmentedContent/index.js +8 -0
  106. package/dist/SegmentedContent/info.js +12 -0
  107. package/dist/SegmentedContent/schema.js +108 -0
  108. package/dist/SegmentedContent/types.js +1 -0
  109. package/dist/Segments/Segments.js +36 -28
  110. package/dist/Segments/index.js +8 -2
  111. package/dist/Segments/info.js +1 -1
  112. package/dist/Segments/schema.js +21 -0
  113. package/dist/Segments/types.js +4 -1
  114. package/dist/SegmentsIcons/SegmentsIcons.js +92 -0
  115. package/dist/SegmentsIcons/index.js +8 -0
  116. package/dist/SegmentsIcons/info.js +11 -0
  117. package/dist/SegmentsIcons/schema.js +14 -0
  118. package/dist/SegmentsIcons/types.js +1 -0
  119. package/dist/SwiperList/SwiperList.js +13 -11
  120. package/dist/assets/index.css +1 -1
  121. package/dist/{componentsMap-cac6c316.js → componentsMap-29ccdfcc.js} +5 -3
  122. package/dist/{data.mock-ebc679ec.js → data.mock-bb32e8ee.js} +420 -148
  123. package/dist/index-0791c17f.js +56 -0
  124. package/dist/index-2ec92a04.js +32 -0
  125. package/dist/index.esm-0558519f.js +1171 -0
  126. package/dist/info-72904479.js +791 -0
  127. package/dist/main.js +151 -119
  128. package/dist/{mousewheel-865ae601.js → mousewheel-afbc6d42.js} +1 -1
  129. package/dist/navigation-266856e7.js +136 -0
  130. package/dist/navigation-cd786a0d.js +133 -0
  131. package/dist/{palette-c2fe86ec.js → palette-256cf77a.js} +3 -1
  132. package/dist/{swiper-react-90953710.js → swiper-react-3c2710e8.js} +695 -825
  133. package/dist/types-c3843cc0.js +4 -0
  134. package/dist/useDraggableScroll-440da9b7.js +29 -0
  135. package/dist/useTranslation-d7a3ca6f.js +298 -0
  136. package/package.json +1 -1
  137. package/dist/FileLoader/fileLoader.js +0 -22
  138. package/dist/FileLoader/index.js +0 -8
  139. package/dist/Forms/FormDefault/componentTypes.js +0 -31
  140. package/dist/Forms/FormDefault/fieldTypesList.js +0 -45
  141. package/dist/Forms/helpers/renderFormFields.js +0 -7
  142. package/dist/Forms/model/requestForm.js +0 -4
  143. package/dist/index-6686852d.js +0 -1794
  144. package/dist/index-a0ed2e4a.js +0 -1221
  145. package/dist/info-d05a1f02.js +0 -1547
  146. package/dist/navigation-b894d0cd.js +0 -183
  147. /package/dist/Forms/{types/formItems.js → FormDefault/model/types.js} +0 -0
@@ -0,0 +1,791 @@
1
+ import { FieldTypeOptions as H } from "./Forms/FormDefault/model/fieldTypes.js";
2
+ import { FormElementTypeOptions as j } from "./Forms/FormDefault/model/formElementTypes.js";
3
+ import { c as u, R as q } from "./requestForm-23442a57.js";
4
+ import { FormSuccessMessage as O } from "./Forms/FormDefault/components/FormSuccessMessage.js";
5
+ import { C as k } from "./index-0a5f313c.js";
6
+ import { jsx as o, jsxs as l, Fragment as B } from "react/jsx-runtime";
7
+ import { warningCardVariant as W, WarningCardVariant as b, WarningCardVariantKey as U } from "./Cards/WarningCard/model.js";
8
+ import "./ConfigProvider/index.js";
9
+ import { Banner as $ } from "./Banner/Banner.js";
10
+ import "./BannerAndText/index.js";
11
+ import { memo as z } from "react";
12
+ import { c as K } from "./cn-6a4bf187.js";
13
+ import "./Faq/components/Collapse/Collapse.js";
14
+ import "./Header/components/HeaderTabsMobile/HeaderTabsMobile.js";
15
+ import { HtmlContent as J } from "./HtmlContent/HtmlContent.js";
16
+ import "./Header/components/TabsOutlined/TabsOutlined.js";
17
+ import { B as x } from "./index-875e92ce.js";
18
+ import { B as X, a as Q, b as Y } from "./const-53dff524.js";
19
+ import { Stepper as Z } from "./Stepper/Stepper.js";
20
+ import { Segments as oo } from "./Segments/Segments.js";
21
+ import "./Segments/info.js";
22
+ import "./Segments/schema.js";
23
+ import { VideoFull as to } from "./Video/VideoFull/VideoFull.js";
24
+ import { VideoList as eo } from "./Video/VideoList/VideoList.js";
25
+ import { VideoListMini as no } from "./Video/VideoListMini/VideoListMini.js";
26
+ import { ContentCardList as ro } from "./ContentCardList/ContentCardList.js";
27
+ import { CardIconList as ao } from "./CardIconList/CardIconList.js";
28
+ import { MultiCards as io } from "./MultiCards/index.js";
29
+ import { Partners as po } from "./Partners/Partners.js";
30
+ import { CardImageList as so } from "./CardImageList/CardImageList.js";
31
+ import { MainBanner as mo } from "./MainBanner/MainBanner.js";
32
+ import { Faq as lo } from "./Faq/Faq.js";
33
+ import { InstructionList as co } from "./InstructionList/InstructionList.js";
34
+ import "./HeroPossibilityBanner/index.js";
35
+ import { PartnersColors as yo } from "./PartnersColors/PartnersColors.js";
36
+ import { PreviewList as uo } from "./PreviewList/PreviewList.js";
37
+ import "./Cards/CardImage/CardImage.js";
38
+ import "./Cards/CardImage/info.js";
39
+ import "./Cards/ContentCard/ContentCard.js";
40
+ import "./Cards/ColoredCard/index.js";
41
+ import "./Cards/FeaturesCard/index.js";
42
+ import { DownloadFileBanner as fo } from "./DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js";
43
+ import { DownloadFileFull as go } from "./DownloadFile/components/DownloadFileFull/DownloadFileFull.js";
44
+ import { DownloadFileHalf as bo } from "./DownloadFile/components/DownloadFileHalf/DownloadFileHalf.js";
45
+ import { DownloadFileMini as Co } from "./DownloadFile/components/DownloadFileMini/DownloadFileMini.js";
46
+ import "./InstructionList/components/InstructionCard/InstructionCard.js";
47
+ import "./PreviewList/components/PreviewCard/PreviewCard.js";
48
+ import { ActionCard as Lo } from "./ActionCard/ActionCard.js";
49
+ import { TitleBlock as I } from "./TitleBlock/TitleBlock.js";
50
+ import So from "./AnimatedSwiper/index.js";
51
+ import "./CardImageSecondary/CardImageSecondary.js";
52
+ import { CardImageSecondaryList as To } from "./CardImageSecondaryList/CardImageSecondaryList.js";
53
+ import { CardInfoTable as ko } from "./CardInfoTable/index.js";
54
+ import { DownloadFileBright as Bo } from "./DownloadFile/components/DownloadFileBright/index.js";
55
+ import "./DownloadFile/components/FileBannerSecondary/FileBannerSecondary.js";
56
+ import { b as h, F as Io } from "./index.esm-0558519f.js";
57
+ import { C as w } from "./ComponentContainer-dca711c6.js";
58
+ import { F as C } from "./Flex-86aee720.js";
59
+ import { F as Do, C as Fo } from "./FieldInput-ef2a18d4.js";
60
+ import { u as xo } from "./useScreenSize-c1b64c02.js";
61
+ import { useFieldVisibility as _ } from "./Forms/FormDefault/hooks/useFieldVisibility.js";
62
+ import { FieldTypes as e, DataTypesEnum as p } from "./Types/FiledTypes.js";
63
+ import "./InfoBanner/index.js";
64
+ import { InfoBannerList as ho } from "./InfoBannerList/InfoBannerList.js";
65
+ import { IntroBanner as wo } from "./IntroBanner/IntroBanner.js";
66
+ import { PromoPoster as _o } from "./PromoPoster/PromoPoster.js";
67
+ import { Space as vo } from "./Space/Space.js";
68
+ import { StandartTable as No } from "./StandartTable/index.js";
69
+ import { SwiperList as Po } from "./SwiperList/SwiperList.js";
70
+ import "./TasksBanner/TasksBanner.js";
71
+ import { TasksBannerList as Mo } from "./TasksBannerList/TasksBannerList.js";
72
+ import { VideoMainBanner as Vo } from "./VideoMainBanner/VideoMainBanner.js";
73
+ import { M as Eo, B as Ro, C as Ao, S as Go, b as Ho, V as jo, c as qo, d as Oo, e as Wo, f as Uo, g as $o, P as zo, h as Ko, W as Jo, F as Xo, k as Qo, D as Yo, l as Zo, m as ot, I as tt, o as et, p as nt, A as rt, q as at, T as it, r as pt, E as st, s as mt, t as lt, u as ct, v as dt, w as yt, x as ut, y as ft, z as gt, H as bt, G as Ct, J as Lt, K as St, L as Tt, N as kt } from "./data.mock-bb32e8ee.js";
74
+ import { ActionCardSecondaryList as Bt } from "./ActionCardSecondaryList/ActionCardSecondaryList.js";
75
+ import { ButtonsList as It } from "./ButtonsList/ButtonsList.js";
76
+ import { PostCard as Dt } from "./Cards/PostCard/PostCard.js";
77
+ import { HeroIconsBanner as Ft } from "./HeroIconsBanner/HeroIconsBanner.js";
78
+ import { IconList as xt } from "./IconList/IconList.js";
79
+ import { InfoCardList as ht } from "./InfoCardList/InfoCardList.js";
80
+ import "./InfoCardList/schema.js";
81
+ import { PostsSlider as wt } from "./PostsSlider/PostsSlider.js";
82
+ import { SearchBlock as _t } from "./SearchBlock/SearchBlock.js";
83
+ import { SegmentedContent as vt } from "./SegmentedContent/SegmentedContent.js";
84
+ import "./SegmentedContent/info.js";
85
+ import "./SegmentedContent/schema.js";
86
+ import { SegmentsIcons as Nt } from "./SegmentsIcons/SegmentsIcons.js";
87
+ import "./SegmentsIcons/schema.js";
88
+ import "./SegmentsIcons/info.js";
89
+ import { Header as Pt } from "./Header/Header.js";
90
+ import { Footer as Mt } from "./Footer/Footer.js";
91
+ import "react-dom";
92
+ import "./ActionCardSecondaryList/info.js";
93
+ import "./AnimatedSwiper/info.js";
94
+ import "./Banner/info.js";
95
+ import "./BannerAndText/info.js";
96
+ import "./ButtonsList/info.js";
97
+ import "./CardIconList/info.js";
98
+ import "./CardImageList/info.js";
99
+ import "./CardImageSecondary/info.js";
100
+ import "./CardImageSecondaryList/info.js";
101
+ import "./CardInfoTable/info.js";
102
+ import "./Cards/ColoredCard/info.js";
103
+ import "./Cards/ContentCard/info.js";
104
+ import "./Cards/FeaturesCard/info.js";
105
+ import "./Cards/InfoCard/info.js";
106
+ import "./Cards/PostCard/info.js";
107
+ import "./ContentCardList/info.js";
108
+ import "./CurrencyRates/info.js";
109
+ import "./DownloadFile/components/DownloadFileBanner/info.js";
110
+ import "./DownloadFile/components/DownloadFileBright/info.js";
111
+ import "./DownloadFile/components/DownloadFileFull/info.js";
112
+ import "./DownloadFile/components/DownloadFileHalf/info.js";
113
+ import "./DownloadFile/components/DownloadFileMini/info.js";
114
+ import "./Faq/info.js";
115
+ import "./Footer/info.js";
116
+ import "./Header/info.js";
117
+ import "./HeroIconsBanner/info.js";
118
+ import "./HeroPossibilityBanner/info.js";
119
+ import "./IconList/info.js";
120
+ import "./InfoBanner/info.js";
121
+ import "./InfoBannerList/info.js";
122
+ import "./InfoCardList/info.js";
123
+ import "./InstructionList/info.js";
124
+ import "./IntroBanner/info.js";
125
+ import "./MainBanner/info.js";
126
+ import "./MultiCards/info.js";
127
+ import "./Partners/info.js";
128
+ import "./PartnersColors/info.js";
129
+ import "./PostsSlider/info.js";
130
+ import "./PreviewList/info.js";
131
+ import "./PromoPoster/info.js";
132
+ import "./SearchBlock/info.js";
133
+ import "./Space/info.js";
134
+ import "./StandartTable/info.js";
135
+ import "./Stepper/info.js";
136
+ import "./SwiperList/info.js";
137
+ import "./TasksBanner/info.js";
138
+ import "./TasksBannerList/info.js";
139
+ import "./Video/VideoFull/info.js";
140
+ import "./Video/VideoList/info.js";
141
+ import "./Video/VideoListMini/info.js";
142
+ import "./VideoMainBanner/info.js";
143
+ import "./Actions/types.js";
144
+ import "./Cards/InfoCard/InfoCard.js";
145
+ import "./Cards/InfoCard/schema.js";
146
+ import "./CurrencyRates/CurrencyRates.js";
147
+ import "./CurrencyRates/schema.js";
148
+ import "./Cards/ActionSecondaryCard/ActionSecondaryCard.js";
149
+ import "./Actions/projectActions.js";
150
+ import { u as D } from "./useTranslation-d7a3ca6f.js";
151
+ import { useFormSubmission as Vt } from "./Forms/FormDefault/hooks/useFormSubmission.js";
152
+ import { I as Et } from "./Icon-70ea6cb8.js";
153
+ const v = [
154
+ "title",
155
+ "title_color",
156
+ "description",
157
+ "description_color",
158
+ "html_content",
159
+ X,
160
+ W
161
+ ], F = ({
162
+ title: t,
163
+ description: n,
164
+ button: r,
165
+ html_content: a,
166
+ variant: i = U.Orange
167
+ }) => {
168
+ var s, m, d, c;
169
+ return /* @__PURE__ */ o(w, { children: /* @__PURE__ */ o(
170
+ "div",
171
+ {
172
+ className: "rounded-[24px] p-6",
173
+ style: { background: (s = b[i]) == null ? void 0 : s.background },
174
+ children: /* @__PURE__ */ l("div", { className: "flex gap-4 items-center justify-between", children: [
175
+ /* @__PURE__ */ l(
176
+ "div",
177
+ {
178
+ className: "flex gap-[16px] items-center max-tablet:flex-col max-tablet:items-start max-tablet:gap-[12px]",
179
+ children: [
180
+ /* @__PURE__ */ o(
181
+ Et,
182
+ {
183
+ name: (m = b[i]) == null ? void 0 : m.icon,
184
+ size: 40
185
+ }
186
+ ),
187
+ /* @__PURE__ */ l("div", { className: "flex flex-col gap-[4px] max-tablet:gap-0", children: [
188
+ /* @__PURE__ */ o(
189
+ "p",
190
+ {
191
+ className: K("text-[24px] leading-8 font-bold"),
192
+ style: { color: (d = b[i]) == null ? void 0 : d.textColor },
193
+ children: t
194
+ }
195
+ ),
196
+ /* @__PURE__ */ o(
197
+ "p",
198
+ {
199
+ className: "text-[16px] leading-6",
200
+ style: { color: (c = b[i]) == null ? void 0 : c.textColor },
201
+ children: n
202
+ }
203
+ ),
204
+ a && /* @__PURE__ */ o(J, { data: a })
205
+ ] })
206
+ ]
207
+ }
208
+ ),
209
+ /* @__PURE__ */ o(x, { ...r })
210
+ ] })
211
+ }
212
+ ) });
213
+ };
214
+ F.propsToEdit = v;
215
+ const Rt = {
216
+ type: "cards",
217
+ label: "Карточки действий",
218
+ dataType: "array",
219
+ data: {
220
+ title: e.TITLE,
221
+ icon: e.FILE,
222
+ link: e.LINK
223
+ }
224
+ }, N = ["title", "description", "marginBottom", Rt], P = ({
225
+ title: t,
226
+ description: n,
227
+ marginBottom: r,
228
+ cards: a
229
+ }) => /* @__PURE__ */ l(B, { children: [
230
+ /* @__PURE__ */ o(
231
+ I,
232
+ {
233
+ title: t,
234
+ description: n,
235
+ marginBottom: r
236
+ }
237
+ ),
238
+ /* @__PURE__ */ o("div", { className: "grid grid-cols-3 gap-x-[24px] gap-y-[40px] max-tablet:grid-cols-1 max-tablet:gap-y-[24px]", children: a == null ? void 0 : a.map((i, s) => /* @__PURE__ */ o(
239
+ Lo,
240
+ {
241
+ title: i.title,
242
+ icon: i.icon,
243
+ link: i.link
244
+ },
245
+ i.id ?? s
246
+ )) })
247
+ ] });
248
+ P.propsToEdit = N;
249
+ const At = {
250
+ TitleBlock: I,
251
+ WarningCard: F
252
+ }, Gt = [
253
+ {
254
+ label: "TitleBlock",
255
+ value: "TitleBlock"
256
+ },
257
+ {
258
+ label: "WarningCard",
259
+ value: "WarningCard"
260
+ }
261
+ ], Ht = ({ field: t }) => {
262
+ const n = h(), r = _(t.visibility, n.control), a = At[t.key];
263
+ return r && a ? /* @__PURE__ */ o(
264
+ a,
265
+ {
266
+ ...n,
267
+ ...t.props
268
+ }
269
+ ) : null;
270
+ }, jt = ({ field: t }) => {
271
+ var m;
272
+ const { t: n } = D(), { control: r } = h();
273
+ if (!_(t.visibility, r))
274
+ return null;
275
+ const s = { gridColumn: `span ${((m = t.layout) == null ? void 0 : m.colSpan) || 1}` };
276
+ return /* @__PURE__ */ o("div", { style: s, children: /* @__PURE__ */ l(
277
+ C,
278
+ {
279
+ vertical: !0,
280
+ gap: 16,
281
+ children: [
282
+ (t.title || t.description) && /* @__PURE__ */ l(
283
+ C,
284
+ {
285
+ vertical: !0,
286
+ gap: 4,
287
+ children: [
288
+ t.title && /* @__PURE__ */ o("h4", { className: "text-lg font-medium text-blackBG", children: n(t.title, t.title) }),
289
+ t.description && /* @__PURE__ */ o("p", { className: "text-base text-gray2", children: n(t.description, t.description) })
290
+ ]
291
+ }
292
+ ),
293
+ /* @__PURE__ */ o("div", { className: "grid gap-6 w-full grid-cols-1", children: /* @__PURE__ */ o(M, { fields: t.children }) })
294
+ ]
295
+ }
296
+ ) });
297
+ }, M = z(({ fields: t }) => /* @__PURE__ */ o(B, { children: t.map((n, r) => n.componentType === "section" ? /* @__PURE__ */ o(
298
+ jt,
299
+ {
300
+ field: n
301
+ },
302
+ r
303
+ ) : n.componentType === "component" ? /* @__PURE__ */ o(
304
+ Ht,
305
+ {
306
+ field: n
307
+ },
308
+ r
309
+ ) : n.componentType === "field" ? /* @__PURE__ */ o(
310
+ Do,
311
+ {
312
+ field: n
313
+ },
314
+ r
315
+ ) : null) })), qt = ({
316
+ fields: t,
317
+ gridCols: n = 1,
318
+ gridRow: r = 2,
319
+ file: a,
320
+ form: i,
321
+ isLoading: s,
322
+ submitError: m,
323
+ agreementChecked: d
324
+ }) => {
325
+ var g;
326
+ const { t: c } = D(), f = xo(960), {
327
+ register: y,
328
+ formState: { errors: S }
329
+ } = i;
330
+ return /* @__PURE__ */ l("div", { children: [
331
+ /* @__PURE__ */ o(
332
+ "div",
333
+ {
334
+ className: "w-full grid gap-6",
335
+ style: {
336
+ gridTemplateColumns: `repeat(${f ? 1 : n}, minmax(0, 1fr))`,
337
+ gridTemplateRows: `repeat(${r}, auto)`
338
+ },
339
+ "aria-live": "polite",
340
+ children: /* @__PURE__ */ o(M, { fields: t })
341
+ }
342
+ ),
343
+ /* @__PURE__ */ o("div", { className: "mt-8", children: /* @__PURE__ */ o(
344
+ Fo,
345
+ {
346
+ ...y("agreement", {
347
+ required: c(
348
+ "form.agreement_required",
349
+ "Необходимо согласие на обработку персональных данных"
350
+ )
351
+ }),
352
+ error: (g = S.agreement) == null ? void 0 : g.message,
353
+ label: /* @__PURE__ */ l(B, { children: [
354
+ c("form.i_agree", "Я соглашаюсь с"),
355
+ " ",
356
+ /* @__PURE__ */ o(
357
+ "span",
358
+ {
359
+ className: "text-deepBlue hover:text-blue underline transition-colors duration-200 cursor-pointer",
360
+ onClick: (T) => {
361
+ T.preventDefault(), window.open(a || "", "_blank");
362
+ },
363
+ children: c(
364
+ "form.agreement_link",
365
+ "условиями обработки персональных данных"
366
+ )
367
+ }
368
+ )
369
+ ] })
370
+ }
371
+ ) }),
372
+ m && /* @__PURE__ */ o("div", { className: "mt-4 p-4 bg-red-50 border border-red-200 text-red-600 rounded-xl text-sm w-full animate-in fade-in slide-in-from-top-1", children: m }),
373
+ /* @__PURE__ */ o(
374
+ x,
375
+ {
376
+ loading: s,
377
+ type: "submit",
378
+ size: Q.XL,
379
+ variant: Y.Primary,
380
+ disabled: !d || s,
381
+ className: "w-full mt-6",
382
+ children: c("form.submit", "Отправить заявку")
383
+ }
384
+ )
385
+ ] });
386
+ }, L = ({
387
+ label: t,
388
+ type: n,
389
+ options: r
390
+ }) => ({
391
+ dataType: p.select,
392
+ label: t,
393
+ type: n,
394
+ options: r
395
+ }), Ot = L({
396
+ label: "Тип поля",
397
+ type: "componentType",
398
+ options: j
399
+ }), Wt = L({
400
+ label: "Компонент",
401
+ type: "componentType",
402
+ options: Gt
403
+ }), Ut = L({
404
+ label: "Тип поля",
405
+ type: "fieldType",
406
+ options: H
407
+ }), $t = u({
408
+ label: "Имя поля",
409
+ type: "name"
410
+ }), zt = {
411
+ type: "fields",
412
+ dataType: "array",
413
+ label: "Поля для формы",
414
+ data: {
415
+ componentType: Ot,
416
+ type: Ut,
417
+ key: Wt,
418
+ name: $t,
419
+ title: u({ label: "Заголовок (Section)", type: "title" }),
420
+ description: u({
421
+ label: "Описание (Section)",
422
+ type: "description"
423
+ }),
424
+ innerGridCols: u({
425
+ label: "Колонки (Section)",
426
+ type: "innerGridCols"
427
+ }),
428
+ visibility: {
429
+ type: "visibility",
430
+ label: "Условия видимости",
431
+ dataType: p.array,
432
+ data: {
433
+ name: u({
434
+ label: "Имя поля (зависимость)",
435
+ type: "name"
436
+ }),
437
+ operator: L({
438
+ label: "Оператор",
439
+ type: "operator",
440
+ options: [
441
+ { label: "Равно", value: "eq" },
442
+ { label: "Не равно", value: "neq" },
443
+ { label: "Существует", value: "exists" },
444
+ { label: "Не существует", value: "not_exists" },
445
+ { label: "Содержит", value: "includes" }
446
+ ]
447
+ }),
448
+ value: u({
449
+ label: "Значение",
450
+ type: "value"
451
+ })
452
+ }
453
+ },
454
+ children: {
455
+ label: "Дочерние элементы (Section)",
456
+ type: "fields",
457
+ dataType: "array"
458
+ },
459
+ props: {
460
+ label: "Свойства компонента",
461
+ dataType: p.object,
462
+ data: {
463
+ keys: {
464
+ title: e.TITLE,
465
+ description: e.DESCRIPTION,
466
+ html_content: e.HTML_CONTENT
467
+ }
468
+ }
469
+ },
470
+ field_props: {
471
+ label: "Свойства поля",
472
+ dataType: p.object,
473
+ data: {
474
+ keys: {
475
+ label: e.TITLE,
476
+ placeholder: e.DESCRIPTION,
477
+ maxLength: e.NUMBER,
478
+ minLength: e.NUMBER,
479
+ multiple: e.BOOLEAN,
480
+ fileTypes: {
481
+ label: "Типы файлов",
482
+ type: "array",
483
+ dataType: p.array,
484
+ data: {
485
+ value: e.STRING
486
+ }
487
+ },
488
+ optionsUrl: e.STRING,
489
+ validation: {
490
+ label: "Валидация",
491
+ type: "validation",
492
+ dataType: p.object,
493
+ data: {
494
+ keys: {
495
+ required: {
496
+ label: "Обязательно",
497
+ type: "validation_rule",
498
+ dataType: p.object,
499
+ data: {
500
+ value: e.BOOLEAN,
501
+ message: e.STRING
502
+ }
503
+ },
504
+ min: {
505
+ label: "Мин. значение",
506
+ type: "validation_rule",
507
+ dataType: p.object,
508
+ data: {
509
+ value: e.NUMBER,
510
+ message: e.STRING
511
+ }
512
+ },
513
+ max: {
514
+ label: "Макс. значение",
515
+ type: "validation_rule",
516
+ dataType: p.object,
517
+ data: {
518
+ value: e.NUMBER,
519
+ message: e.STRING
520
+ }
521
+ },
522
+ minLength: {
523
+ label: "Мин. длина",
524
+ type: "validation_rule",
525
+ dataType: p.object,
526
+ data: {
527
+ value: e.NUMBER,
528
+ message: e.STRING
529
+ }
530
+ },
531
+ maxLength: {
532
+ label: "Макс. длина",
533
+ type: "validation_rule",
534
+ dataType: p.object,
535
+ data: {
536
+ value: e.NUMBER,
537
+ message: e.STRING
538
+ }
539
+ },
540
+ pattern: {
541
+ label: "Регулярное выражение",
542
+ type: "validation_rule",
543
+ dataType: p.object,
544
+ data: {
545
+ value: e.STRING,
546
+ message: e.STRING
547
+ }
548
+ }
549
+ }
550
+ }
551
+ },
552
+ options: {
553
+ label: "Опции (Select/Radio)",
554
+ type: "array",
555
+ dataType: "array",
556
+ data: {
557
+ label: e.STRING,
558
+ value: e.STRING
559
+ }
560
+ }
561
+ }
562
+ }
563
+ }
564
+ }
565
+ }, V = [
566
+ "title",
567
+ "subtitle",
568
+ "color",
569
+ zt,
570
+ q,
571
+ "file",
572
+ "object_data"
573
+ ], E = ({
574
+ title: t,
575
+ subtitle: n,
576
+ color: r,
577
+ gridCols: a = 1,
578
+ gridRow: i = 2,
579
+ fields: s = [],
580
+ requestForm: m,
581
+ file: d,
582
+ object_data: c
583
+ }) => {
584
+ const { t: f } = D(), {
585
+ form: y,
586
+ successSent: S,
587
+ isLoading: g,
588
+ submitError: T,
589
+ onSubmit: R,
590
+ handleCloseSuccess: A
591
+ } = Vt({ requestForm: m, object_data: c }), G = y.watch("agreement");
592
+ return /* @__PURE__ */ o(w, { children: /* @__PURE__ */ o(Io, { ...y, children: /* @__PURE__ */ o(
593
+ "form",
594
+ {
595
+ onSubmit: y.handleSubmit(R),
596
+ id: "application_form",
597
+ className: "w-full",
598
+ children: /* @__PURE__ */ l(
599
+ C,
600
+ {
601
+ vertical: !0,
602
+ align: "center",
603
+ justify: "center",
604
+ gap: 24,
605
+ style: {
606
+ boxShadow: `0px 8px 24px rgba(0,0,0,0.08),0px -8px 0px ${r}`
607
+ },
608
+ className: "bg-white rounded-2xl w-full py-[64px] max-tablet:p-6 transition-all duration-300 mt-2",
609
+ children: [
610
+ /* @__PURE__ */ l(
611
+ C,
612
+ {
613
+ vertical: !0,
614
+ align: "center",
615
+ gap: 16,
616
+ children: [
617
+ /* @__PURE__ */ o("h2", { className: "text-center text-[32px] leading-10 font-bold text-blackBG max-tablet:text-2xl", children: f(t || "", t || "") }),
618
+ /* @__PURE__ */ o("span", { className: "text-lg text-graySoft text-center max-tablet:text-base", children: f(n || "", n || "") })
619
+ ]
620
+ }
621
+ ),
622
+ /* @__PURE__ */ o("div", { className: "w-full max-w-[624px]", children: S ? /* @__PURE__ */ o(O, { onClose: A }) : /* @__PURE__ */ o(
623
+ qt,
624
+ {
625
+ fields: s,
626
+ gridCols: a,
627
+ gridRow: i,
628
+ file: d,
629
+ form: y,
630
+ isLoading: g,
631
+ submitError: T,
632
+ agreementChecked: G
633
+ }
634
+ ) })
635
+ ]
636
+ }
637
+ )
638
+ }
639
+ ) }) });
640
+ };
641
+ E.propsToEdit = V;
642
+ const Hr = {
643
+ title: "Форма заявки",
644
+ description: "Форма заявки ",
645
+ types: [k.form],
646
+ propsToEdit: V
647
+ }, Kt = {
648
+ title: "Оставьте заявку, чтобы подключить MKassa",
649
+ description: "с Вами свяжется наш специалист и поможет с подключением сервиса",
650
+ color: "#45464b"
651
+ }, jr = {
652
+ MainBanner: { key: "MainBanner", component: mo },
653
+ Banner: { key: "Banner", component: $ },
654
+ CardImageList: { key: "CardImageList", component: so },
655
+ Stepper: { key: "Stepper", component: Z },
656
+ Segments: { key: "Segments", component: oo },
657
+ VideoFull: { key: "VideoFull", component: to },
658
+ VideoList: { key: "VideoList", component: eo },
659
+ VideoListMini: { key: "VideoListMini", component: no },
660
+ ContentCardList: { key: "ContentCardList", component: ro },
661
+ CardIconList: { key: "CardIconList", component: ao },
662
+ MultiCards: { key: "MultiCards", component: io },
663
+ Partners: { key: "Partners", component: po },
664
+ PartnersColors: { key: "PartnersColors", component: yo },
665
+ WarningCard: { key: "WarningCard", component: F },
666
+ Faq: { key: "Faq", component: lo },
667
+ DownloadFileBanner: {
668
+ key: "DownloadFileBanner",
669
+ component: fo
670
+ },
671
+ DownloadFileHalf: { key: "DownloadFileHalf", component: bo },
672
+ DownloadFileFull: { key: "DownloadFileFull", component: go },
673
+ DownloadFileMini: { key: "DownloadFileMini", component: Co },
674
+ InstructionList: { key: "InstructionList", component: co },
675
+ PreviewList: { key: "PreviewList", component: uo },
676
+ SwiperList: { key: "SwiperList", component: Po },
677
+ AnimatedSwiper: { key: "AnimatedSwiper", component: So },
678
+ InfoBannerList: { key: "InfoBannerList", component: ho },
679
+ TasksBannerList: { key: "TasksBannerList", component: Mo },
680
+ VideoMainBanner: { key: "VideoMainBanner", component: Vo },
681
+ Space: { key: "Space", component: vo },
682
+ PromoPoster: { key: "PromoPoster", component: _o },
683
+ CardImageSecondaryList: {
684
+ key: "CardImageSecondaryList",
685
+ component: To
686
+ },
687
+ CardInfoTable: { key: "CardInfoTable", component: ko },
688
+ StandartTable: { key: "StandartTable", component: No },
689
+ IntroBanner: { key: "IntroBanner", component: wo },
690
+ DownloadFileBright: {
691
+ key: "DownloadFileBright",
692
+ component: Bo
693
+ },
694
+ FormDefault: {
695
+ key: "FormDefault",
696
+ component: E
697
+ },
698
+ Header: { key: "Header", component: Pt },
699
+ Footer: { key: "Footer", component: Mt },
700
+ TitleBlock: { key: "TitleBlock", component: I },
701
+ ActionCardList: { key: "ActionCardList", component: P },
702
+ ActionCardSecondaryList: {
703
+ key: "ActionCardSecondaryList",
704
+ component: Bt
705
+ },
706
+ PostCard: { key: "PostCard", component: Dt },
707
+ PostsSlider: { key: "PostsSlider", component: wt },
708
+ ButtonsList: { key: "ButtonsList", component: It },
709
+ HeroIconsBanner: { key: "HeroIconsBanner", component: Ft },
710
+ IconList: { key: "IconList", component: xt },
711
+ SearchBlock: { key: "SearchBlock", component: _t },
712
+ SegmentsIcons: { key: "SegmentsIcons", component: Nt },
713
+ SegmentedContent: { key: "SegmentedContent", component: vt },
714
+ InfoCardList: { key: "InfoCardList", component: ht }
715
+ }, qr = {
716
+ MainBanner: Eo.component_props,
717
+ Banner: Ro.component_props,
718
+ CardImageList: Ao.component_props,
719
+ Stepper: Go.component_props,
720
+ Segments: Ho.component_props,
721
+ VideoFull: jo.component_props,
722
+ VideoList: qo.component_props,
723
+ VideoListMini: Oo.component_props,
724
+ ContentCardList: Wo.component_props,
725
+ CardIconList: Uo.component_props,
726
+ MultiCards: $o.component_props,
727
+ Partners: zo.component_props,
728
+ PartnersColors: Ko.component_props,
729
+ WarningCard: Jo.component_props,
730
+ Faq: Xo.component_props,
731
+ DownloadFileBanner: Qo.component_props,
732
+ DownloadFileHalf: Yo.component_props,
733
+ DownloadFileFull: Zo.component_props,
734
+ DownloadFileMini: ot.component_props,
735
+ InstructionList: tt.component_props,
736
+ PreviewList: et.component_props,
737
+ SwiperList: nt.component_props,
738
+ AnimatedSwiper: rt.component_props,
739
+ InfoBannerList: at.component_props,
740
+ TasksBannerList: it.component_props,
741
+ VideoMainBanner: pt.component_props,
742
+ EmptyBox: st.component_props,
743
+ PromoPoster: mt.component_props,
744
+ CardImageSecondaryList: lt.component_props,
745
+ CardInfoTable: ct.component_props,
746
+ StandartTable: dt.component_props,
747
+ IntroBanner: yt.component_props,
748
+ DownloadFileBright: ut.component_props,
749
+ FormDefault: Kt,
750
+ TitleBlock: ft.component_props,
751
+ ActionCardList: {},
752
+ ButtonsList: gt.component_props,
753
+ HeroIconsBanner: bt.component_props,
754
+ IconList: Ct.component_props,
755
+ SearchBlock: Lt.component_props,
756
+ SegmentsIcons: St.component_props,
757
+ SegmentedContent: Tt.component_props,
758
+ InfoCardList: kt.component_props
759
+ }, Or = {
760
+ title: "Список карточек действий",
761
+ description: "Компонент для отображения списка карточек действий с иконками и ссылками. Используется для представления различных действий или ссылок в виде сетки карточек.",
762
+ types: [k.lists],
763
+ propsToEdit: N
764
+ }, Wr = {
765
+ title: "Предупреждающая карточка",
766
+ description: "Компонент для отображения предупреждающей информации в виде карточки с иконкой, заголовком и описанием. Используется для привлечения внимания к важной информации или предупреждениям.",
767
+ types: [k.cards],
768
+ propsToEdit: v
769
+ };
770
+ export {
771
+ qr as A,
772
+ E as F,
773
+ F as W,
774
+ P as a,
775
+ jr as b,
776
+ Or as c,
777
+ Rt as d,
778
+ N as e,
779
+ Hr as f,
780
+ At as g,
781
+ Gt as h,
782
+ Ht as i,
783
+ jt as j,
784
+ M as k,
785
+ qt as l,
786
+ zt as m,
787
+ V as n,
788
+ Kt as o,
789
+ v as p,
790
+ Wr as w
791
+ };