md-components-mdigial-azamat 0.0.96 → 0.0.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ActionIconList/ActionIconList.js +1 -1
- package/dist/AllComponents.js +1 -1
- package/dist/AllComponentsInfo.js +1 -1
- package/dist/Cards/WarningCard/WarningCard.js +1 -1
- package/dist/Cards/WarningCard/index.js +1 -1
- package/dist/Cards/WarningCard/info.js +1 -1
- package/dist/Forms/FormDefault/index.js +1 -1
- package/dist/Forms/FormDefault/info.js +1 -1
- package/dist/Forms/helpers/renderFormFields.js +1 -1
- package/dist/Forms/model/components.js +1 -1
- package/dist/PageViewer/renderComponents.js +1 -1
- package/dist/RenderAllComponents/RenderAllComponents.js +1 -1
- package/dist/{componentsMap-6f54f1c8.js → componentsMap-280a0148.js} +1 -1
- package/dist/{info-90d541ed.js → info-085c4fc3.js} +196 -189
- package/dist/main.js +1 -1
- package/package.json +1 -1
|
@@ -31,7 +31,7 @@ import "../PartnersColors/PartnersColors.js";
|
|
|
31
31
|
import "../PreviewList/PreviewList.js";
|
|
32
32
|
import "../Cards/CardImage/CardImage.js";
|
|
33
33
|
import "../Cards/ContentCard/ContentCard.js";
|
|
34
|
-
import "../info-
|
|
34
|
+
import "../info-085c4fc3.js";
|
|
35
35
|
import "../Cards/ColoredCard/index.js";
|
|
36
36
|
import "../Cards/FeaturesCard/index.js";
|
|
37
37
|
import "../DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js";
|
package/dist/AllComponents.js
CHANGED
|
@@ -8,7 +8,7 @@ import "./CardInfoTable/index.js";
|
|
|
8
8
|
import "./ContentCardList/ContentCardList.js";
|
|
9
9
|
import "./DownloadFile/components/DownloadFileBright/index.js";
|
|
10
10
|
import "./Faq/Faq.js";
|
|
11
|
-
import { a as Xo, A as Yo } from "./info-
|
|
11
|
+
import { a as Xo, A as Yo } from "./info-085c4fc3.js";
|
|
12
12
|
import "./InfoBannerList/InfoBannerList.js";
|
|
13
13
|
import "./IntroBanner/IntroBanner.js";
|
|
14
14
|
import "./MainBanner/MainBanner.js";
|
|
@@ -10,7 +10,7 @@ import { cardImageInfo as f } from "./Cards/CardImage/info.js";
|
|
|
10
10
|
import { coloredCardInfo as I } from "./Cards/ColoredCard/info.js";
|
|
11
11
|
import { contentCardInfo as d } from "./Cards/ContentCard/info.js";
|
|
12
12
|
import { featuresCardInfo as p } from "./Cards/FeaturesCard/info.js";
|
|
13
|
-
import { w as s, f as l } from "./info-
|
|
13
|
+
import { w as s, f as l } from "./info-085c4fc3.js";
|
|
14
14
|
import { contentCardListInfo as C } from "./ContentCardList/info.js";
|
|
15
15
|
import { downloadFileBannerInfo as B } from "./DownloadFile/components/DownloadFileBanner/info.js";
|
|
16
16
|
import { downloadFileBrightInfo as L } from "./DownloadFile/components/DownloadFileBright/info.js";
|
|
@@ -29,7 +29,7 @@ import "../../PartnersColors/PartnersColors.js";
|
|
|
29
29
|
import "../../PreviewList/PreviewList.js";
|
|
30
30
|
import "../CardImage/CardImage.js";
|
|
31
31
|
import "../ContentCard/ContentCard.js";
|
|
32
|
-
import { W as Zr, p as _r } from "../../info-
|
|
32
|
+
import { W as Zr, p as _r } from "../../info-085c4fc3.js";
|
|
33
33
|
import "../ColoredCard/index.js";
|
|
34
34
|
import "../FeaturesCard/index.js";
|
|
35
35
|
import "../../DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js";
|
|
@@ -3,7 +3,7 @@ import "react";
|
|
|
3
3
|
import "../../index-a0ed2e4a.js";
|
|
4
4
|
import "../../index-875e92ce.js";
|
|
5
5
|
import "../../const-53dff524.js";
|
|
6
|
-
import { F as f, g as F } from "../../info-
|
|
6
|
+
import { F as f, g as F } from "../../info-085c4fc3.js";
|
|
7
7
|
import "../../ComponentContainer-dca711c6.js";
|
|
8
8
|
import "../../useScreenSize-c1b64c02.js";
|
|
9
9
|
export {
|
|
@@ -28,7 +28,7 @@ import "../../PartnersColors/PartnersColors.js";
|
|
|
28
28
|
import "../../PreviewList/PreviewList.js";
|
|
29
29
|
import "../../Cards/CardImage/CardImage.js";
|
|
30
30
|
import "../../Cards/ContentCard/ContentCard.js";
|
|
31
|
-
import { e as _o, f as $o, d as or, i as rr } from "../../info-
|
|
31
|
+
import { e as _o, f as $o, d as or, i as rr } from "../../info-085c4fc3.js";
|
|
32
32
|
import "../../Cards/ColoredCard/index.js";
|
|
33
33
|
import "../../Cards/FeaturesCard/index.js";
|
|
34
34
|
import "../../DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js";
|
|
@@ -28,7 +28,7 @@ import "../../PartnersColors/PartnersColors.js";
|
|
|
28
28
|
import "../../PreviewList/PreviewList.js";
|
|
29
29
|
import "../../Cards/CardImage/CardImage.js";
|
|
30
30
|
import "../../Cards/ContentCard/ContentCard.js";
|
|
31
|
-
import { b as Wo, c as Xo } from "../../info-
|
|
31
|
+
import { b as Wo, c as Xo } from "../../info-085c4fc3.js";
|
|
32
32
|
import "../../Cards/ColoredCard/index.js";
|
|
33
33
|
import "../../Cards/FeaturesCard/index.js";
|
|
34
34
|
import "../../DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as n, Fragment as t } from "react/jsx-runtime";
|
|
2
|
-
import { c as i } from "../componentsMap-
|
|
2
|
+
import { c as i } from "../componentsMap-280a0148.js";
|
|
3
3
|
const d = ({ components: o, device: p }) => /* @__PURE__ */ n(t, { children: o.map((r) => {
|
|
4
4
|
const e = i[r.key];
|
|
5
5
|
return e ? /* @__PURE__ */ n(
|
|
@@ -10,7 +10,7 @@ import { CardImage as p } from "./Cards/CardImage/CardImage.js";
|
|
|
10
10
|
import { ColoredCard as f } from "./Cards/ColoredCard/index.js";
|
|
11
11
|
import { ContentCard as s } from "./Cards/ContentCard/ContentCard.js";
|
|
12
12
|
import { FeaturesCard as d } from "./Cards/FeaturesCard/index.js";
|
|
13
|
-
import { W as l, F as C } from "./info-
|
|
13
|
+
import { W as l, F as C } from "./info-085c4fc3.js";
|
|
14
14
|
import { ContentCardList as B } from "./ContentCardList/ContentCardList.js";
|
|
15
15
|
import { DownloadFileBanner as F } from "./DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js";
|
|
16
16
|
import { DownloadFileBright as L } from "./DownloadFile/components/DownloadFileBright/index.js";
|
|
@@ -11,7 +11,7 @@ import "./Header/components/HeaderTabsMobile/HeaderTabsMobile.js";
|
|
|
11
11
|
import { HtmlContent as ke } from "./HtmlContent/HtmlContent.js";
|
|
12
12
|
import "./Header/components/TabsOutlined/TabsOutlined.js";
|
|
13
13
|
import { B as R } from "./index-875e92ce.js";
|
|
14
|
-
import { B as
|
|
14
|
+
import { B as Ce, a as ve, b as De } from "./const-53dff524.js";
|
|
15
15
|
import { Stepper as Ne } from "./Stepper/Stepper.js";
|
|
16
16
|
import { Segments as Le } from "./Segments/Segments.js";
|
|
17
17
|
import { VideoFull as _e } from "./Video/VideoFull/VideoFull.js";
|
|
@@ -60,7 +60,7 @@ import { SwiperList as ot } from "./SwiperList/SwiperList.js";
|
|
|
60
60
|
import "./TasksBanner/TasksBanner.js";
|
|
61
61
|
import { TasksBannerList as at } from "./TasksBannerList/TasksBannerList.js";
|
|
62
62
|
import { VideoMainBanner as nt } from "./VideoMainBanner/VideoMainBanner.js";
|
|
63
|
-
import { M as st, B as
|
|
63
|
+
import { M as st, B as lt, C as it, S as ct, b as dt, V as pt, c as mt, d as ut, e as ft, f as ht, g as gt, P as bt, h as xt, W as yt, F as wt, k as kt, D as Ct, l as vt, m as Dt, I as Nt, o as Lt, p as _t, A as Bt, q as Mt, T as St, r as Ft, E as Vt, s as It, t as Tt, u as Ht, v as Pt, w as Wt, x as Gt, y as Ot } from "./data.mock-f00bb32c.js";
|
|
64
64
|
import { DataTypesEnum as X, FieldTypes as G } from "./Types/FiledTypes.js";
|
|
65
65
|
import "react-dom";
|
|
66
66
|
import "./AnimatedSwiper/info.js";
|
|
@@ -118,21 +118,21 @@ const ae = [
|
|
|
118
118
|
"description",
|
|
119
119
|
"description_color",
|
|
120
120
|
"html_content",
|
|
121
|
-
|
|
121
|
+
Ce,
|
|
122
122
|
he
|
|
123
123
|
], z = ({
|
|
124
124
|
title: a,
|
|
125
125
|
description: r,
|
|
126
126
|
button: o,
|
|
127
|
-
html_content:
|
|
127
|
+
html_content: s,
|
|
128
128
|
variant: e = ge.Orange
|
|
129
129
|
}) => {
|
|
130
|
-
var
|
|
130
|
+
var l, m, k, y;
|
|
131
131
|
return /* @__PURE__ */ t(re, { children: /* @__PURE__ */ t(
|
|
132
132
|
"div",
|
|
133
133
|
{
|
|
134
134
|
className: "rounded-[24px] p-6",
|
|
135
|
-
style: { background: (
|
|
135
|
+
style: { background: (l = j[e]) == null ? void 0 : l.background },
|
|
136
136
|
children: /* @__PURE__ */ i("div", { className: "flex gap-4 items-center justify-between", children: [
|
|
137
137
|
/* @__PURE__ */ i(
|
|
138
138
|
"div",
|
|
@@ -163,7 +163,7 @@ const ae = [
|
|
|
163
163
|
children: r
|
|
164
164
|
}
|
|
165
165
|
),
|
|
166
|
-
|
|
166
|
+
s && /* @__PURE__ */ t(ke, { data: s })
|
|
167
167
|
] })
|
|
168
168
|
]
|
|
169
169
|
}
|
|
@@ -177,24 +177,24 @@ z.propsToEdit = ae;
|
|
|
177
177
|
const ne = P(
|
|
178
178
|
({
|
|
179
179
|
label: a,
|
|
180
|
-
options: r,
|
|
180
|
+
options: r = [],
|
|
181
181
|
value: o = [],
|
|
182
|
-
onChange:
|
|
182
|
+
onChange: s,
|
|
183
183
|
error: e,
|
|
184
|
-
className:
|
|
184
|
+
className: l,
|
|
185
185
|
direction: m = "column"
|
|
186
186
|
}, k) => {
|
|
187
|
-
const y = (
|
|
188
|
-
if (!
|
|
187
|
+
const y = (n) => {
|
|
188
|
+
if (!s)
|
|
189
189
|
return;
|
|
190
|
-
const N = o.includes(
|
|
191
|
-
|
|
190
|
+
const N = o.includes(n) ? o.filter((C) => C !== n) : [...o, n];
|
|
191
|
+
s(N);
|
|
192
192
|
};
|
|
193
193
|
return /* @__PURE__ */ i(
|
|
194
194
|
"div",
|
|
195
195
|
{
|
|
196
196
|
ref: k,
|
|
197
|
-
className: b("flex flex-col gap-2",
|
|
197
|
+
className: b("flex flex-col gap-2", l),
|
|
198
198
|
children: [
|
|
199
199
|
a && /* @__PURE__ */ t("label", { className: "text-sm font-medium text-blackBG mb-1", children: a }),
|
|
200
200
|
/* @__PURE__ */ t(
|
|
@@ -204,15 +204,15 @@ const ne = P(
|
|
|
204
204
|
"flex gap-4",
|
|
205
205
|
m === "column" ? "flex-col" : "flex-row flex-wrap"
|
|
206
206
|
),
|
|
207
|
-
children: r.map((
|
|
207
|
+
children: r == null ? void 0 : r.map((n) => /* @__PURE__ */ t(
|
|
208
208
|
Y,
|
|
209
209
|
{
|
|
210
|
-
label:
|
|
211
|
-
checked: o.includes(
|
|
212
|
-
onChange: () => y(
|
|
213
|
-
error: e && o.length === 0 ? e : void 0
|
|
210
|
+
label: n == null ? void 0 : n.label,
|
|
211
|
+
checked: o.includes(n == null ? void 0 : n.value),
|
|
212
|
+
onChange: () => y(n == null ? void 0 : n.value),
|
|
213
|
+
error: e && (o == null ? void 0 : o.length) === 0 ? e : void 0
|
|
214
214
|
},
|
|
215
|
-
|
|
215
|
+
n == null ? void 0 : n.value
|
|
216
216
|
))
|
|
217
217
|
}
|
|
218
218
|
),
|
|
@@ -224,7 +224,7 @@ const ne = P(
|
|
|
224
224
|
);
|
|
225
225
|
ne.displayName = "CheckboxGroup";
|
|
226
226
|
const Y = P(
|
|
227
|
-
({ className: a, label: r, error: o, ...
|
|
227
|
+
({ className: a, label: r, error: o, ...s }, e) => /* @__PURE__ */ i("div", { className: "w-full", children: [
|
|
228
228
|
/* @__PURE__ */ i("label", { className: "flex items-start gap-3 cursor-pointer group", children: [
|
|
229
229
|
/* @__PURE__ */ i("div", { className: "relative flex items-center justify-center mt-0.5", children: [
|
|
230
230
|
/* @__PURE__ */ t(
|
|
@@ -233,7 +233,7 @@ const Y = P(
|
|
|
233
233
|
type: "checkbox",
|
|
234
234
|
className: "peer sr-only",
|
|
235
235
|
ref: e,
|
|
236
|
-
...
|
|
236
|
+
...s
|
|
237
237
|
}
|
|
238
238
|
),
|
|
239
239
|
/* @__PURE__ */ t(
|
|
@@ -273,8 +273,8 @@ const Y = P(
|
|
|
273
273
|
);
|
|
274
274
|
Y.displayName = "Checkbox";
|
|
275
275
|
const se = P(
|
|
276
|
-
({ className: a, type: r, error: o, label:
|
|
277
|
-
|
|
276
|
+
({ className: a, type: r, error: o, label: s, ...e }, l) => /* @__PURE__ */ i("div", { className: "w-full", children: [
|
|
277
|
+
s && /* @__PURE__ */ t("label", { className: "block text-sm font-medium text-blackBG mb-2", children: s }),
|
|
278
278
|
/* @__PURE__ */ t(
|
|
279
279
|
"input",
|
|
280
280
|
{
|
|
@@ -289,7 +289,7 @@ const se = P(
|
|
|
289
289
|
o && "border-red-500 hover:border-red-500 focus:border-red-500 focus:shadow-[0_0_0_4px_rgba(239,68,68,0.15)]",
|
|
290
290
|
a
|
|
291
291
|
),
|
|
292
|
-
ref:
|
|
292
|
+
ref: l,
|
|
293
293
|
...e
|
|
294
294
|
}
|
|
295
295
|
),
|
|
@@ -316,40 +316,40 @@ const Rt = () => /* @__PURE__ */ t(
|
|
|
316
316
|
), Xt = (a) => {
|
|
317
317
|
if (!a)
|
|
318
318
|
return "";
|
|
319
|
-
const r = String(a.getDate()).padStart(2, "0"), o = String(a.getMonth() + 1).padStart(2, "0"),
|
|
320
|
-
return `${r}.${o}.${
|
|
319
|
+
const r = String(a.getDate()).padStart(2, "0"), o = String(a.getMonth() + 1).padStart(2, "0"), s = a.getFullYear();
|
|
320
|
+
return `${r}.${o}.${s}`;
|
|
321
321
|
}, qt = (a) => {
|
|
322
322
|
if (!a)
|
|
323
323
|
return null;
|
|
324
324
|
const r = a.split(".");
|
|
325
325
|
if (r.length === 3) {
|
|
326
|
-
const o = parseInt(r[0], 10),
|
|
327
|
-
if (!isNaN(o) && !isNaN(
|
|
328
|
-
const
|
|
329
|
-
if (
|
|
330
|
-
return
|
|
326
|
+
const o = parseInt(r[0], 10), s = parseInt(r[1], 10) - 1, e = parseInt(r[2], 10);
|
|
327
|
+
if (!isNaN(o) && !isNaN(s) && !isNaN(e)) {
|
|
328
|
+
const l = new Date(e, s, o);
|
|
329
|
+
if (l.getDate() === o && l.getMonth() === s && l.getFullYear() === e)
|
|
330
|
+
return l;
|
|
331
331
|
}
|
|
332
332
|
}
|
|
333
333
|
return null;
|
|
334
|
-
}, zt = (a, r) => new Date(r, a, 1).toLocaleDateString("ru-RU", { month: "long", year: "numeric" }), Yt = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
334
|
+
}, zt = (a, r) => new Date(r, a, 1).toLocaleDateString("ru-RU", { month: "long", year: "numeric" }), Yt = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], le = P(
|
|
335
335
|
({
|
|
336
336
|
className: a,
|
|
337
337
|
error: r,
|
|
338
338
|
label: o,
|
|
339
|
-
value:
|
|
339
|
+
value: s,
|
|
340
340
|
onChange: e,
|
|
341
|
-
placeholder:
|
|
341
|
+
placeholder: l = "Дата обращения в Контакт-центр",
|
|
342
342
|
...m
|
|
343
343
|
}, k) => {
|
|
344
|
-
const [y,
|
|
345
|
-
|
|
344
|
+
const [y, n] = I(""), [N, C] = I(!1), [c, v] = I((/* @__PURE__ */ new Date()).getMonth()), [h, x] = I((/* @__PURE__ */ new Date()).getFullYear()), [u, S] = I(null), F = s !== void 0, w = F ? s : y, { ref: L } = q(N, () => {
|
|
345
|
+
C(!1);
|
|
346
346
|
}), B = A(() => qt(w), [w]);
|
|
347
347
|
xe(() => {
|
|
348
|
-
B && (S(B),
|
|
348
|
+
B && (S(B), v(B.getMonth()), x(B.getFullYear()));
|
|
349
349
|
}, [B]);
|
|
350
350
|
const T = A(() => {
|
|
351
|
-
const f = new Date(h, c, 1), V = new Date(h, c + 1, 0).getDate(),
|
|
352
|
-
for (let M =
|
|
351
|
+
const f = new Date(h, c, 1), V = new Date(h, c + 1, 0).getDate(), p = f.getDay(), D = [], W = new Date(h, c, 0).getDate();
|
|
352
|
+
for (let M = p - 1; M >= 0; M--)
|
|
353
353
|
D.push(W - M);
|
|
354
354
|
for (let M = 1; M <= V; M++)
|
|
355
355
|
D.push(M);
|
|
@@ -358,24 +358,24 @@ const Rt = () => /* @__PURE__ */ t(
|
|
|
358
358
|
D.push(M);
|
|
359
359
|
return D;
|
|
360
360
|
}, [c, h]), O = (f) => {
|
|
361
|
-
const
|
|
362
|
-
F ||
|
|
363
|
-
}, Z = (f,
|
|
361
|
+
const d = f.target.value;
|
|
362
|
+
F || n(d), e == null || e(d);
|
|
363
|
+
}, Z = (f, d, V) => {
|
|
364
364
|
if (f === null)
|
|
365
365
|
return;
|
|
366
|
-
let
|
|
367
|
-
|
|
368
|
-
const W = new Date(D,
|
|
369
|
-
S(W),
|
|
366
|
+
let p = c, D = h;
|
|
367
|
+
d ? (p = p - 1, p < 0 && (p = 11, D = D - 1)) : V && (p = p + 1, p > 11 && (p = 0, D = D + 1));
|
|
368
|
+
const W = new Date(D, p, f), H = Xt(W);
|
|
369
|
+
S(W), v(p), x(D), F || n(H), e == null || e(H), C(!1);
|
|
370
370
|
}, $ = () => {
|
|
371
|
-
c === 0 ? (
|
|
371
|
+
c === 0 ? (v(11), x(h - 1)) : v(c - 1);
|
|
372
372
|
}, g = () => {
|
|
373
|
-
c === 11 ? (
|
|
374
|
-
}, _ = (f,
|
|
373
|
+
c === 11 ? (v(0), x(h + 1)) : v(c + 1);
|
|
374
|
+
}, _ = (f, d, V) => {
|
|
375
375
|
if (!u || f === null)
|
|
376
376
|
return !1;
|
|
377
|
-
let
|
|
378
|
-
return
|
|
377
|
+
let p = c, D = h;
|
|
378
|
+
return d ? (p = p - 1, p < 0 && (p = 11, D = D - 1)) : V && (p = p + 1, p > 11 && (p = 0, D = D + 1)), u.getDate() === f && u.getMonth() === p && u.getFullYear() === D;
|
|
379
379
|
};
|
|
380
380
|
return /* @__PURE__ */ i("div", { className: "w-full", children: [
|
|
381
381
|
o && /* @__PURE__ */ t("label", { className: "block text-sm font-medium text-blackBG mb-2", children: o }),
|
|
@@ -396,7 +396,7 @@ const Rt = () => /* @__PURE__ */ t(
|
|
|
396
396
|
"button",
|
|
397
397
|
{
|
|
398
398
|
type: "button",
|
|
399
|
-
onClick: () =>
|
|
399
|
+
onClick: () => C(!N),
|
|
400
400
|
className: "absolute left-4 flex items-center justify-center cursor-pointer",
|
|
401
401
|
tabIndex: -1,
|
|
402
402
|
children: /* @__PURE__ */ t(Rt, {})
|
|
@@ -416,8 +416,8 @@ const Rt = () => /* @__PURE__ */ t(
|
|
|
416
416
|
ref: k,
|
|
417
417
|
value: w,
|
|
418
418
|
onChange: O,
|
|
419
|
-
placeholder:
|
|
420
|
-
onClick: () =>
|
|
419
|
+
placeholder: l,
|
|
420
|
+
onClick: () => C(!0),
|
|
421
421
|
readOnly: !0,
|
|
422
422
|
...m
|
|
423
423
|
}
|
|
@@ -498,12 +498,12 @@ const Rt = () => /* @__PURE__ */ t(
|
|
|
498
498
|
},
|
|
499
499
|
f
|
|
500
500
|
)) }),
|
|
501
|
-
/* @__PURE__ */ t("div", { className: "grid grid-cols-7 gap-1", children: T.map((f,
|
|
502
|
-
const
|
|
501
|
+
/* @__PURE__ */ t("div", { className: "grid grid-cols-7 gap-1", children: T.map((f, d) => {
|
|
502
|
+
const p = new Date(h, c, 1).getDay(), D = new Date(
|
|
503
503
|
h,
|
|
504
504
|
c + 1,
|
|
505
505
|
0
|
|
506
|
-
).getDate(), W =
|
|
506
|
+
).getDate(), W = d < p, H = d >= p + D, M = !W && !H, fe = _(
|
|
507
507
|
f,
|
|
508
508
|
W,
|
|
509
509
|
H
|
|
@@ -522,7 +522,7 @@ const Rt = () => /* @__PURE__ */ t(
|
|
|
522
522
|
),
|
|
523
523
|
children: f
|
|
524
524
|
},
|
|
525
|
-
|
|
525
|
+
d
|
|
526
526
|
);
|
|
527
527
|
}) })
|
|
528
528
|
]
|
|
@@ -533,40 +533,40 @@ const Rt = () => /* @__PURE__ */ t(
|
|
|
533
533
|
] });
|
|
534
534
|
}
|
|
535
535
|
);
|
|
536
|
-
|
|
537
|
-
const
|
|
536
|
+
le.displayName = "DateInput";
|
|
537
|
+
const ie = P(
|
|
538
538
|
({
|
|
539
539
|
className: a,
|
|
540
540
|
isFormatted: r,
|
|
541
541
|
isReadable: o,
|
|
542
|
-
error:
|
|
542
|
+
error: s,
|
|
543
543
|
label: e,
|
|
544
|
-
onChange:
|
|
544
|
+
onChange: l,
|
|
545
545
|
value: m,
|
|
546
546
|
defaultValue: k,
|
|
547
547
|
...y
|
|
548
|
-
},
|
|
548
|
+
}, n) => {
|
|
549
549
|
const N = ye(null);
|
|
550
|
-
te(
|
|
551
|
-
const
|
|
550
|
+
te(n, () => N.current);
|
|
551
|
+
const C = !!o || !!r, c = we(
|
|
552
552
|
(x) => {
|
|
553
553
|
if (x == null || x === "")
|
|
554
554
|
return "";
|
|
555
555
|
const u = Array.isArray(x) ? x.join("").replace(/\D/g, "") : x.toString().replace(/\D/g, "");
|
|
556
|
-
return
|
|
556
|
+
return C ? u.replace(/\B(?=(\d{3})+(?!\d))/g, " ") : u;
|
|
557
557
|
},
|
|
558
|
-
[
|
|
558
|
+
[C]
|
|
559
559
|
), h = {
|
|
560
560
|
...y,
|
|
561
561
|
type: "text",
|
|
562
562
|
inputMode: "numeric",
|
|
563
563
|
onChange: (x) => {
|
|
564
564
|
const u = x.target, S = u.value, F = S.replace(/\D/g, ""), w = u.selectionStart || 0, L = S.slice(0, w).replace(/\D/g, "").length, B = c(F);
|
|
565
|
-
if (u.value = B,
|
|
565
|
+
if (u.value = B, l) {
|
|
566
566
|
const T = u.value;
|
|
567
|
-
u.value = F,
|
|
567
|
+
u.value = F, l(x), u.value = T;
|
|
568
568
|
}
|
|
569
|
-
if (
|
|
569
|
+
if (C) {
|
|
570
570
|
let T = 0, O = 0;
|
|
571
571
|
for (; O < L && T < u.value.length; )
|
|
572
572
|
/\d/.test(u.value[T]) && O++, T++;
|
|
@@ -581,7 +581,7 @@ const le = P(
|
|
|
581
581
|
"focus:border-greenLight focus:outline-none focus:ring-0 focus:shadow-[0_0_0_4px_rgba(22,163,74,0.15)]",
|
|
582
582
|
"disabled:cursor-not-allowed disabled:bg-lightGray disabled:opacity-50",
|
|
583
583
|
"[appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",
|
|
584
|
-
|
|
584
|
+
s && "border-red-500 hover:border-red-500 focus:border-red-500 focus:shadow-[0_0_0_4px_rgba(239,68,68,0.15)]",
|
|
585
585
|
a
|
|
586
586
|
)
|
|
587
587
|
};
|
|
@@ -594,11 +594,11 @@ const le = P(
|
|
|
594
594
|
ref: N
|
|
595
595
|
}
|
|
596
596
|
) }),
|
|
597
|
-
|
|
597
|
+
s && /* @__PURE__ */ t("p", { className: "mt-2 text-sm text-red-500", children: s })
|
|
598
598
|
] });
|
|
599
599
|
}
|
|
600
600
|
);
|
|
601
|
-
|
|
601
|
+
ie.displayName = "NumberField";
|
|
602
602
|
const Kt = {
|
|
603
603
|
96: { name: "Кыргызстан", short: "KG", mask: "+996", length: 9 }
|
|
604
604
|
}, Qt = (a) => {
|
|
@@ -613,24 +613,24 @@ const Kt = {
|
|
|
613
613
|
length: r.length,
|
|
614
614
|
flag: Qt(r.short)
|
|
615
615
|
})), E = (a) => K().find((o) => o.id === a), J = (a, r) => {
|
|
616
|
-
const o = r.dialCode,
|
|
616
|
+
const o = r.dialCode, s = r.length;
|
|
617
617
|
let e = a;
|
|
618
618
|
a.startsWith(o) && (e = a.slice(o.length));
|
|
619
|
-
const
|
|
620
|
-
if (
|
|
619
|
+
const l = e.slice(0, s);
|
|
620
|
+
if (l.length === 0)
|
|
621
621
|
return r.mask;
|
|
622
|
-
let m =
|
|
623
|
-
return
|
|
622
|
+
let m = l;
|
|
623
|
+
return l.length > 6 ? m = `${l.slice(0, 3)} ${l.slice(3, 6)} ${l.slice(6)}` : l.length > 3 && (m = `${l.slice(0, 3)} ${l.slice(3)}`), `${r.mask} ${m}`;
|
|
624
624
|
}, Ut = (a, r) => {
|
|
625
625
|
if (!a)
|
|
626
626
|
return null;
|
|
627
|
-
const o = a.replace(/\D/g, ""),
|
|
627
|
+
const o = a.replace(/\D/g, ""), s = K();
|
|
628
628
|
if (a.startsWith("+")) {
|
|
629
|
-
for (const e of
|
|
629
|
+
for (const e of s)
|
|
630
630
|
if (a.startsWith(e.mask))
|
|
631
631
|
return e;
|
|
632
632
|
}
|
|
633
|
-
for (const e of
|
|
633
|
+
for (const e of s)
|
|
634
634
|
if (o.startsWith(e.dialCode))
|
|
635
635
|
return e;
|
|
636
636
|
return o.startsWith("0") && E("96") || null;
|
|
@@ -639,13 +639,13 @@ const Kt = {
|
|
|
639
639
|
className: a,
|
|
640
640
|
error: r,
|
|
641
641
|
label: o,
|
|
642
|
-
value:
|
|
642
|
+
value: s,
|
|
643
643
|
onChange: e,
|
|
644
|
-
defaultCountry:
|
|
644
|
+
defaultCountry: l = "996",
|
|
645
645
|
...m
|
|
646
646
|
}, k) => {
|
|
647
|
-
const [y,
|
|
648
|
-
|
|
647
|
+
const [y, n] = I(""), [N, C] = I(l), [c, v] = I(!1), [h, x] = I(""), u = s !== void 0, S = u ? s : y, { ref: F } = q(c, () => {
|
|
648
|
+
v(!1), x("");
|
|
649
649
|
}), w = A(() => K(), []), L = E(N) || w[0], B = A(() => {
|
|
650
650
|
if (!h)
|
|
651
651
|
return w;
|
|
@@ -659,24 +659,24 @@ const Kt = {
|
|
|
659
659
|
const _ = g.replace(/\D/g, "");
|
|
660
660
|
let f = _;
|
|
661
661
|
(_.startsWith(L.dialCode) || g.startsWith(L.mask)) && (f = _.slice(L.dialCode.length));
|
|
662
|
-
const
|
|
663
|
-
return
|
|
662
|
+
const d = f.slice(0, L.length);
|
|
663
|
+
return d.length === 0 ? "" : d.length <= 3 ? d : d.length <= 6 ? `${d.slice(0, 3)} ${d.slice(3)}` : `${d.slice(0, 3)} ${d.slice(3, 6)} ${d.slice(6)}`;
|
|
664
664
|
})(S), Z = (g) => {
|
|
665
|
-
|
|
665
|
+
C(g), v(!1), x("");
|
|
666
666
|
const _ = S.replace(/\D/g, ""), f = E(g);
|
|
667
667
|
if (!f)
|
|
668
668
|
return;
|
|
669
|
-
let
|
|
670
|
-
_.startsWith(L.dialCode) && (
|
|
671
|
-
const V = J(
|
|
672
|
-
u ||
|
|
669
|
+
let d = _;
|
|
670
|
+
_.startsWith(L.dialCode) && (d = _.slice(L.dialCode.length));
|
|
671
|
+
const V = J(d, f);
|
|
672
|
+
u || n(V), e == null || e(V);
|
|
673
673
|
}, $ = (g) => {
|
|
674
|
-
const _ = g.target.value, f = _.replace(/\D/g, ""),
|
|
674
|
+
const _ = g.target.value, f = _.replace(/\D/g, ""), d = Ut(
|
|
675
675
|
_
|
|
676
676
|
);
|
|
677
|
-
|
|
678
|
-
const V =
|
|
679
|
-
u ||
|
|
677
|
+
d && d.id !== N && C(d.id);
|
|
678
|
+
const V = d || E(N) || L, p = J(f, V);
|
|
679
|
+
u || n(p), e == null || e(p);
|
|
680
680
|
};
|
|
681
681
|
return /* @__PURE__ */ i("div", { className: "w-full", children: [
|
|
682
682
|
o && /* @__PURE__ */ t("label", { className: "block text-sm font-medium text-blackBG mb-2", children: o }),
|
|
@@ -704,7 +704,7 @@ const Kt = {
|
|
|
704
704
|
"button",
|
|
705
705
|
{
|
|
706
706
|
type: "button",
|
|
707
|
-
onClick: () =>
|
|
707
|
+
onClick: () => v(!c),
|
|
708
708
|
className: b(
|
|
709
709
|
"flex h-14 w-[120px] rounded-2xl px-3 py-2 items-center justify-center cursor-pointer shrink-0",
|
|
710
710
|
"transition-all duration-300 ease-in-out",
|
|
@@ -809,45 +809,52 @@ const Kt = {
|
|
|
809
809
|
}
|
|
810
810
|
);
|
|
811
811
|
ce.displayName = "PhoneInput";
|
|
812
|
-
const
|
|
812
|
+
const de = P(
|
|
813
813
|
({
|
|
814
814
|
label: a,
|
|
815
|
-
options: r,
|
|
816
|
-
value: o,
|
|
817
|
-
name:
|
|
815
|
+
options: r = [],
|
|
816
|
+
value: o = [],
|
|
817
|
+
name: s,
|
|
818
818
|
onChange: e,
|
|
819
|
-
error:
|
|
819
|
+
error: l,
|
|
820
820
|
className: m,
|
|
821
821
|
direction: k = "column"
|
|
822
|
-
}, y) => /* @__PURE__ */ i(
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
children: r.map((l) => /* @__PURE__ */ t(
|
|
832
|
-
de,
|
|
822
|
+
}, y) => /* @__PURE__ */ i(
|
|
823
|
+
"div",
|
|
824
|
+
{
|
|
825
|
+
ref: y,
|
|
826
|
+
className: b("flex flex-col gap-2", m),
|
|
827
|
+
children: [
|
|
828
|
+
a && /* @__PURE__ */ t("label", { className: "text-sm font-medium text-blackBG mb-1", children: a }),
|
|
829
|
+
/* @__PURE__ */ t(
|
|
830
|
+
"div",
|
|
833
831
|
{
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
832
|
+
className: b(
|
|
833
|
+
"flex gap-4",
|
|
834
|
+
k === "column" ? "flex-col" : "flex-row flex-wrap"
|
|
835
|
+
),
|
|
836
|
+
children: r == null ? void 0 : r.map((n) => /* @__PURE__ */ t(
|
|
837
|
+
pe,
|
|
838
|
+
{
|
|
839
|
+
name: s,
|
|
840
|
+
label: n == null ? void 0 : n.label,
|
|
841
|
+
value: n == null ? void 0 : n.value,
|
|
842
|
+
checked: o === (n == null ? void 0 : n.value),
|
|
843
|
+
onChange: () => e == null ? void 0 : e(n == null ? void 0 : n.value),
|
|
844
|
+
error: l && !o ? l : void 0
|
|
845
|
+
},
|
|
846
|
+
n == null ? void 0 : n.value
|
|
847
|
+
))
|
|
848
|
+
}
|
|
849
|
+
),
|
|
850
|
+
l && /* @__PURE__ */ t("p", { className: "mt-1 text-sm text-red-500", children: l })
|
|
851
|
+
]
|
|
852
|
+
}
|
|
853
|
+
)
|
|
847
854
|
);
|
|
848
|
-
|
|
849
|
-
const
|
|
850
|
-
({ className: a, label: r, error: o, ...
|
|
855
|
+
de.displayName = "RadioGroup";
|
|
856
|
+
const pe = P(
|
|
857
|
+
({ className: a, label: r, error: o, ...s }, e) => /* @__PURE__ */ i("div", { className: "w-full", children: [
|
|
851
858
|
/* @__PURE__ */ i("label", { className: "flex items-start gap-3 cursor-pointer group", children: [
|
|
852
859
|
/* @__PURE__ */ i("div", { className: "relative flex items-center justify-center mt-0.5", children: [
|
|
853
860
|
/* @__PURE__ */ t(
|
|
@@ -856,7 +863,7 @@ const de = P(
|
|
|
856
863
|
type: "radio",
|
|
857
864
|
className: "peer sr-only",
|
|
858
865
|
ref: e,
|
|
859
|
-
...
|
|
866
|
+
...s
|
|
860
867
|
}
|
|
861
868
|
),
|
|
862
869
|
/* @__PURE__ */ t(
|
|
@@ -894,29 +901,29 @@ const de = P(
|
|
|
894
901
|
o && /* @__PURE__ */ t("p", { className: "mt-2 text-sm text-red-500", children: o })
|
|
895
902
|
] })
|
|
896
903
|
);
|
|
897
|
-
|
|
904
|
+
pe.displayName = "Radio";
|
|
898
905
|
const me = P(
|
|
899
906
|
({
|
|
900
907
|
className: a,
|
|
901
908
|
error: r,
|
|
902
909
|
label: o,
|
|
903
|
-
options:
|
|
910
|
+
options: s = [],
|
|
904
911
|
placeholder: e = "Выберите категорию",
|
|
905
|
-
value:
|
|
912
|
+
value: l,
|
|
906
913
|
onChange: m,
|
|
907
914
|
onBlur: k,
|
|
908
915
|
name: y,
|
|
909
|
-
disabled:
|
|
916
|
+
disabled: n,
|
|
910
917
|
...N
|
|
911
|
-
},
|
|
918
|
+
}, C) => {
|
|
912
919
|
const {
|
|
913
920
|
ref: c,
|
|
914
|
-
isShow:
|
|
921
|
+
isShow: v,
|
|
915
922
|
setIsShow: h
|
|
916
923
|
} = q(!1);
|
|
917
|
-
te(
|
|
918
|
-
const x =
|
|
919
|
-
|
|
924
|
+
te(C, () => c.current);
|
|
925
|
+
const x = s.find((w) => w.value === l), u = () => {
|
|
926
|
+
n || h(!v);
|
|
920
927
|
}, S = (w) => {
|
|
921
928
|
m && m({
|
|
922
929
|
target: {
|
|
@@ -928,7 +935,7 @@ const me = P(
|
|
|
928
935
|
k && k({
|
|
929
936
|
target: {
|
|
930
937
|
name: y,
|
|
931
|
-
value:
|
|
938
|
+
value: l
|
|
932
939
|
}
|
|
933
940
|
});
|
|
934
941
|
};
|
|
@@ -947,13 +954,13 @@ const me = P(
|
|
|
947
954
|
{
|
|
948
955
|
type: "button",
|
|
949
956
|
onClick: u,
|
|
950
|
-
disabled:
|
|
957
|
+
disabled: n,
|
|
951
958
|
className: b(
|
|
952
959
|
"flex h-14 w-full items-center justify-between rounded-2xl border-[1px] border-grayBlue bg-white px-[20px] text-base text-blackBG",
|
|
953
960
|
"transition-all duration-300 ease-in-out",
|
|
954
961
|
"hover:border-greenLight hover:shadow-[0_0_0_4px_rgba(22,163,74,0.1)]",
|
|
955
|
-
|
|
956
|
-
|
|
962
|
+
v && "border-greenLight shadow-[0_0_0_4px_rgba(22,163,74,0.15)] ring-0 outline-none",
|
|
963
|
+
n && "cursor-not-allowed bg-lightGray opacity-50",
|
|
957
964
|
r && "border-red-500 hover:border-red-500 focus:border-red-500 focus:shadow-[0_0_0_4px_rgba(239,68,68,0.15)]",
|
|
958
965
|
!x && "text-gray2 opacity-60"
|
|
959
966
|
),
|
|
@@ -964,7 +971,7 @@ const me = P(
|
|
|
964
971
|
{
|
|
965
972
|
className: b(
|
|
966
973
|
"ml-2 h-5 w-5 text-gray2 transition-transform duration-300",
|
|
967
|
-
|
|
974
|
+
v && "rotate-180"
|
|
968
975
|
),
|
|
969
976
|
fill: "none",
|
|
970
977
|
stroke: "currentColor",
|
|
@@ -983,14 +990,14 @@ const me = P(
|
|
|
983
990
|
]
|
|
984
991
|
}
|
|
985
992
|
),
|
|
986
|
-
|
|
993
|
+
v && /* @__PURE__ */ t(
|
|
987
994
|
"div",
|
|
988
995
|
{
|
|
989
996
|
className: b(
|
|
990
997
|
"absolute left-0 z-[100] mt-2 w-full overflow-hidden rounded-2xl border-[1px] border-grayBlue bg-white shadow-xl",
|
|
991
998
|
"transition-all duration-200 ease-in-out"
|
|
992
999
|
),
|
|
993
|
-
children: /* @__PURE__ */ t("div", { className: "max-h-[280px] overflow-y-auto py-2", children:
|
|
1000
|
+
children: /* @__PURE__ */ t("div", { className: "max-h-[280px] overflow-y-auto py-2", children: s.length > 0 ? s.map((w) => /* @__PURE__ */ t(
|
|
994
1001
|
"button",
|
|
995
1002
|
{
|
|
996
1003
|
type: "button",
|
|
@@ -998,7 +1005,7 @@ const me = P(
|
|
|
998
1005
|
className: b(
|
|
999
1006
|
"flex w-full items-center px-5 py-3 text-left text-base transition-colors",
|
|
1000
1007
|
"hover:bg-green-50 active:bg-green-100",
|
|
1001
|
-
w.value ===
|
|
1008
|
+
w.value === l && "bg-green-50 font-medium text-greenLight",
|
|
1002
1009
|
// Мобильные отступы чуть больше для удобства тапа
|
|
1003
1010
|
"max-tablet:py-4"
|
|
1004
1011
|
),
|
|
@@ -1030,18 +1037,18 @@ const Jt = {
|
|
|
1030
1037
|
}
|
|
1031
1038
|
], tr = {
|
|
1032
1039
|
text: se,
|
|
1033
|
-
number:
|
|
1040
|
+
number: ie,
|
|
1034
1041
|
phone: ce,
|
|
1035
1042
|
select: me,
|
|
1036
|
-
date:
|
|
1037
|
-
radio:
|
|
1043
|
+
date: le,
|
|
1044
|
+
radio: de,
|
|
1038
1045
|
checkbox: ne,
|
|
1039
1046
|
file: Qe
|
|
1040
1047
|
}, rr = (a, {
|
|
1041
1048
|
register: r,
|
|
1042
1049
|
errors: o,
|
|
1043
|
-
control:
|
|
1044
|
-
}) => a.map((e,
|
|
1050
|
+
control: s
|
|
1051
|
+
}) => a.map((e, l) => {
|
|
1045
1052
|
var k;
|
|
1046
1053
|
if ((e == null ? void 0 : e.componentType) === "component") {
|
|
1047
1054
|
const y = Jt[e == null ? void 0 : e.key];
|
|
@@ -1051,33 +1058,33 @@ const Jt = {
|
|
|
1051
1058
|
{
|
|
1052
1059
|
...e == null ? void 0 : e.props
|
|
1053
1060
|
},
|
|
1054
|
-
|
|
1061
|
+
l
|
|
1055
1062
|
);
|
|
1056
1063
|
}
|
|
1057
1064
|
const m = tr[e == null ? void 0 : e.type];
|
|
1058
1065
|
if (m) {
|
|
1059
1066
|
const y = ["select", "radio", "checkbox", "file"].includes(
|
|
1060
1067
|
e.type
|
|
1061
|
-
),
|
|
1062
|
-
return y &&
|
|
1068
|
+
), n = e != null && e.name ? (k = o[e == null ? void 0 : e.name]) == null ? void 0 : k.message : void 0;
|
|
1069
|
+
return y && s && (e != null && e.name) ? /* @__PURE__ */ t(
|
|
1063
1070
|
ze,
|
|
1064
1071
|
{
|
|
1065
1072
|
name: e.name,
|
|
1066
|
-
control:
|
|
1073
|
+
control: s,
|
|
1067
1074
|
rules: { validate: e.validate },
|
|
1068
|
-
render: ({ field: { onChange: N, value:
|
|
1075
|
+
render: ({ field: { onChange: N, value: C, name: c, ref: v } }) => /* @__PURE__ */ t(
|
|
1069
1076
|
m,
|
|
1070
1077
|
{
|
|
1071
1078
|
...e.field_props,
|
|
1072
1079
|
onChange: N,
|
|
1073
|
-
value:
|
|
1080
|
+
value: C,
|
|
1074
1081
|
name: c,
|
|
1075
|
-
ref:
|
|
1076
|
-
error:
|
|
1082
|
+
ref: v,
|
|
1083
|
+
error: n
|
|
1077
1084
|
}
|
|
1078
1085
|
)
|
|
1079
1086
|
},
|
|
1080
|
-
|
|
1087
|
+
l
|
|
1081
1088
|
) : e.name ? /* @__PURE__ */ t(
|
|
1082
1089
|
m,
|
|
1083
1090
|
{
|
|
@@ -1085,16 +1092,16 @@ const Jt = {
|
|
|
1085
1092
|
...r(e == null ? void 0 : e.name, {
|
|
1086
1093
|
validate: e == null ? void 0 : e.validate
|
|
1087
1094
|
}),
|
|
1088
|
-
error:
|
|
1095
|
+
error: n
|
|
1089
1096
|
},
|
|
1090
|
-
|
|
1097
|
+
l
|
|
1091
1098
|
) : /* @__PURE__ */ t(
|
|
1092
1099
|
m,
|
|
1093
1100
|
{
|
|
1094
1101
|
...e == null ? void 0 : e.field_props,
|
|
1095
|
-
error:
|
|
1102
|
+
error: n
|
|
1096
1103
|
},
|
|
1097
|
-
|
|
1104
|
+
l
|
|
1098
1105
|
);
|
|
1099
1106
|
}
|
|
1100
1107
|
return null;
|
|
@@ -1131,7 +1138,7 @@ const Jt = {
|
|
|
1131
1138
|
label: "Тип поля",
|
|
1132
1139
|
type: "fieldType",
|
|
1133
1140
|
options: Et
|
|
1134
|
-
}),
|
|
1141
|
+
}), lr = {
|
|
1135
1142
|
type: "fields",
|
|
1136
1143
|
dataType: "array",
|
|
1137
1144
|
label: "Поля для формы",
|
|
@@ -1161,19 +1168,19 @@ const Jt = {
|
|
|
1161
1168
|
// placeholder: FieldTypes.STRING,
|
|
1162
1169
|
// },
|
|
1163
1170
|
}
|
|
1164
|
-
},
|
|
1171
|
+
}, ir = ["title", "subtitle", "color", lr], ue = ({
|
|
1165
1172
|
title: a,
|
|
1166
1173
|
subtitle: r,
|
|
1167
1174
|
color: o,
|
|
1168
|
-
gridCols:
|
|
1175
|
+
gridCols: s = 1,
|
|
1169
1176
|
gridRow: e = 2,
|
|
1170
|
-
fields:
|
|
1177
|
+
fields: l = []
|
|
1171
1178
|
}) => {
|
|
1172
1179
|
var L;
|
|
1173
|
-
const [m, k] = I(!1), [y,
|
|
1174
|
-
register:
|
|
1180
|
+
const [m, k] = I(!1), [y, n] = I(!1), N = Ke(960), {
|
|
1181
|
+
register: C,
|
|
1175
1182
|
handleSubmit: c,
|
|
1176
|
-
watch:
|
|
1183
|
+
watch: v,
|
|
1177
1184
|
reset: h,
|
|
1178
1185
|
control: x,
|
|
1179
1186
|
formState: { errors: u }
|
|
@@ -1184,10 +1191,10 @@ const Jt = {
|
|
|
1184
1191
|
business_category: "",
|
|
1185
1192
|
agreement: !1
|
|
1186
1193
|
}
|
|
1187
|
-
}), S =
|
|
1194
|
+
}), S = v("agreement"), F = async (B) => {
|
|
1188
1195
|
console.log("Form submitted:", B);
|
|
1189
|
-
}, w = rr(
|
|
1190
|
-
register:
|
|
1196
|
+
}, w = rr(l || [], {
|
|
1197
|
+
register: C,
|
|
1191
1198
|
errors: u,
|
|
1192
1199
|
control: x
|
|
1193
1200
|
});
|
|
@@ -1248,7 +1255,7 @@ const Jt = {
|
|
|
1248
1255
|
{
|
|
1249
1256
|
className: "w-[640px] mb-8 max-tablet:w-full grid gap-6",
|
|
1250
1257
|
style: {
|
|
1251
|
-
gridTemplateColumns: `repeat(${N ? 1 :
|
|
1258
|
+
gridTemplateColumns: `repeat(${N ? 1 : s}, 1fr)`,
|
|
1252
1259
|
gridTemplateRows: `repeat(${e}, auto)`
|
|
1253
1260
|
},
|
|
1254
1261
|
children: w
|
|
@@ -1257,7 +1264,7 @@ const Jt = {
|
|
|
1257
1264
|
/* @__PURE__ */ t("div", { className: "pt-2", children: /* @__PURE__ */ t(
|
|
1258
1265
|
Y,
|
|
1259
1266
|
{
|
|
1260
|
-
...
|
|
1267
|
+
...C("agreement", {
|
|
1261
1268
|
required: "Необходимо согласие на обработку персональных данных"
|
|
1262
1269
|
}),
|
|
1263
1270
|
error: (L = u.agreement) == null ? void 0 : L.message,
|
|
@@ -1284,7 +1291,7 @@ const Jt = {
|
|
|
1284
1291
|
loading: y,
|
|
1285
1292
|
className: "w-full whitespace-nowrap transition-all duration-200 hover:scale-[1.02] active:scale-[0.98]",
|
|
1286
1293
|
type: "submit",
|
|
1287
|
-
size:
|
|
1294
|
+
size: ve.XL,
|
|
1288
1295
|
variant: De.Primary,
|
|
1289
1296
|
disabled: !S || y,
|
|
1290
1297
|
children: "Отправить заявку"
|
|
@@ -1297,7 +1304,7 @@ const Jt = {
|
|
|
1297
1304
|
}
|
|
1298
1305
|
) });
|
|
1299
1306
|
};
|
|
1300
|
-
ue.propsToEdit =
|
|
1307
|
+
ue.propsToEdit = ir;
|
|
1301
1308
|
const xa = {
|
|
1302
1309
|
MainBanner: { key: "MainBanner", component: He },
|
|
1303
1310
|
Banner: { key: "Banner", component: be },
|
|
@@ -1350,11 +1357,11 @@ const xa = {
|
|
|
1350
1357
|
TitleBlock: { key: "TitleBlock", component: oe }
|
|
1351
1358
|
}, ya = {
|
|
1352
1359
|
MainBanner: st.component_props,
|
|
1353
|
-
Banner:
|
|
1354
|
-
CardImageList:
|
|
1360
|
+
Banner: lt.component_props,
|
|
1361
|
+
CardImageList: it.component_props,
|
|
1355
1362
|
Stepper: ct.component_props,
|
|
1356
|
-
Segments:
|
|
1357
|
-
VideoFull:
|
|
1363
|
+
Segments: dt.component_props,
|
|
1364
|
+
VideoFull: pt.component_props,
|
|
1358
1365
|
VideoList: mt.component_props,
|
|
1359
1366
|
VideoListMini: ut.component_props,
|
|
1360
1367
|
ContentCardList: ft.component_props,
|
|
@@ -1365,8 +1372,8 @@ const xa = {
|
|
|
1365
1372
|
WarningCard: yt.component_props,
|
|
1366
1373
|
Faq: wt.component_props,
|
|
1367
1374
|
DownloadFileBanner: kt.component_props,
|
|
1368
|
-
DownloadFileHalf:
|
|
1369
|
-
DownloadFileFull:
|
|
1375
|
+
DownloadFileHalf: Ct.component_props,
|
|
1376
|
+
DownloadFileFull: vt.component_props,
|
|
1370
1377
|
DownloadFileMini: Dt.component_props,
|
|
1371
1378
|
InstructionList: Nt.component_props,
|
|
1372
1379
|
PreviewList: Lt.component_props,
|
|
@@ -1398,9 +1405,9 @@ export {
|
|
|
1398
1405
|
er as b,
|
|
1399
1406
|
Jt as c,
|
|
1400
1407
|
or as d,
|
|
1401
|
-
|
|
1408
|
+
lr as e,
|
|
1402
1409
|
ba as f,
|
|
1403
|
-
|
|
1410
|
+
ir as g,
|
|
1404
1411
|
ga as i,
|
|
1405
1412
|
ae as p,
|
|
1406
1413
|
rr as r,
|
package/dist/main.js
CHANGED
|
@@ -22,7 +22,7 @@ import { PartnersColors as $ } from "./PartnersColors/PartnersColors.js";
|
|
|
22
22
|
import { PreviewList as ro } from "./PreviewList/PreviewList.js";
|
|
23
23
|
import { CardImage as to } from "./Cards/CardImage/CardImage.js";
|
|
24
24
|
import { ContentCard as po } from "./Cards/ContentCard/ContentCard.js";
|
|
25
|
-
import { a as mo, A as fo, F as xo, W as so } from "./info-
|
|
25
|
+
import { a as mo, A as fo, F as xo, W as so } from "./info-085c4fc3.js";
|
|
26
26
|
import { ColoredCard as io } from "./Cards/ColoredCard/index.js";
|
|
27
27
|
import { FeaturesCard as co } from "./Cards/FeaturesCard/index.js";
|
|
28
28
|
import { DownloadFileBanner as Fo } from "./DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js";
|