md-components-mdigial-azamat 0.0.17 → 0.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AllComponents.js +2 -2
- package/dist/Banner/Banner.js +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/CardImageList/CardImageList.js +1 -1
- package/dist/CardImageList/index.js +1 -1
- package/dist/CardInfoTable/index.js +1 -1
- package/dist/Cards/ContentCard/ContentCard.js +2 -3
- package/dist/Cards/ContentCard/index.js +1 -1
- package/dist/Cards/WarningCard/WarningCard.js +2 -3
- package/dist/Cards/WarningCard/index.js +1 -1
- package/dist/ContentCardList/ContentCardList.js +1 -1
- package/dist/ContentCardList/index.js +1 -1
- package/dist/DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js +1 -1
- package/dist/DownloadFile/components/DownloadFileBanner/index.js +1 -1
- package/dist/DownloadFile/components/DownloadFileBright/index.js +10 -11
- package/dist/DownloadFile/components/DownloadFileFull/DownloadFileFull.js +2 -3
- package/dist/DownloadFile/components/DownloadFileFull/index.js +1 -1
- package/dist/DownloadFile/components/DownloadFileHalf/DownloadFileHalf.js +2 -3
- package/dist/DownloadFile/components/DownloadFileHalf/index.js +1 -1
- package/dist/DownloadFile/components/DownloadFileMini/DownloadFileMini.js +2 -3
- package/dist/DownloadFile/components/DownloadFileMini/index.js +1 -1
- package/dist/Faq/Faq.js +1 -1
- package/dist/Faq/components/FeedbackForm/FeedbackForm.js +2 -3
- package/dist/Faq/components/FeedbackForm/index.js +1 -1
- package/dist/Faq/index.js +1 -1
- package/dist/InfoBanner/index.js +1 -1
- package/dist/InstructionList/InstructionList.js +1 -1
- package/dist/InstructionList/index.js +1 -1
- package/dist/IntroBanner/IntroBanner.js +1 -1
- package/dist/MainBanner/MainBanner.js +1 -1
- package/dist/MainBanner/index.js +1 -1
- package/dist/PageViewer/PageViewer.js +1 -1
- package/dist/PageViewer/renderComponents.js +1 -1
- package/dist/PreviewList/PreviewList.js +1 -1
- package/dist/PreviewList/components/PreviewCard/PreviewCard.js +2 -3
- package/dist/PreviewList/components/PreviewCard/index.js +1 -1
- package/dist/PreviewList/index.js +1 -1
- package/dist/RenderAllComponents/RenderAllComponents.js +1 -1
- package/dist/RenderAllComponents/const.js +1 -1
- package/dist/StandartTable/components/CardWarning/index.js +9 -10
- package/dist/Stepper/Stepper.js +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/Types/FiledTypes.js +1 -1
- package/dist/VideoMainBanner/VideoMainBanner.js +1 -1
- package/dist/{componentsMap-fc5d3ce6.js → componentsMap-fac339bd.js} +1 -1
- package/dist/{data.mock-97df7aa8.js → data.mock-05e024fc.js} +5 -5
- package/dist/{index-3d4883ec.js → index-3327c6b5.js} +229 -226
- package/dist/main.js +5 -5
- package/package.json +1 -1
- package/dist/const-fcf5d36a.js +0 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as b, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import * as rt from "react";
|
|
3
|
-
import
|
|
3
|
+
import W, { forwardRef as mt, useState as Ut } from "react";
|
|
4
4
|
import { C as $ } from "./ComponentContainer-0fcc2695.js";
|
|
5
5
|
import { c as D } from "./cn-d8c04b28.js";
|
|
6
6
|
import "./ConfigProvider/index.js";
|
|
@@ -13,15 +13,14 @@ import "./Video/VideoFull/VideoFull.js";
|
|
|
13
13
|
import "./Video/VideoList/VideoList.js";
|
|
14
14
|
import "./Video/VideoListMini/VideoListMini.js";
|
|
15
15
|
import { HtmlContent as yt } from "./HtmlContent/HtmlContent.js";
|
|
16
|
-
import { a as se, B as O } from "./const-fcf5d36a.js";
|
|
17
16
|
import "./CardIconList/CardIconList.js";
|
|
18
17
|
import "./MultiCards/index.js";
|
|
19
18
|
import "./Partners/Partners.js";
|
|
20
19
|
import { CardImage as jt } from "./Cards/CardImage/CardImage.js";
|
|
21
20
|
import { CardImageVariant as lt } from "./Cards/CardImage/types.js";
|
|
22
|
-
import { FieldTypes as
|
|
21
|
+
import { FieldTypes as K } from "./Types/FiledTypes.js";
|
|
23
22
|
import { Collapse as $t } from "./Faq/components/Collapse/Collapse.js";
|
|
24
|
-
import { InstructionCard as
|
|
23
|
+
import { InstructionCard as Gt } from "./InstructionList/components/InstructionCard/InstructionCard.js";
|
|
25
24
|
import "./HeroPossibilityBanner/index.js";
|
|
26
25
|
import "./PartnersColors/PartnersColors.js";
|
|
27
26
|
import { W as Le, p as ue } from "./model-bc7ae7c3.js";
|
|
@@ -29,18 +28,21 @@ import "./Cards/ColoredCard/index.js";
|
|
|
29
28
|
import "./index-6e0f7db0.js";
|
|
30
29
|
import "./swiper-react-c049ea66.js";
|
|
31
30
|
import './assets/InfoBanner.css';import './assets/swiper.css';/* empty css */import "./SwiperList/SwiperList.js";
|
|
32
|
-
/* empty css */
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
31
|
+
/* empty css */var te = /* @__PURE__ */ ((e) => (e.S = "s", e.M = "m", e.L = "l", e.XL = "xl", e))(te || {}), I = /* @__PURE__ */ ((e) => (e.Primary = "primary", e.Secondary = "secondary", e.SecondaryBlue = "secondaryBlue", e.Grey = "grey", e.Static = "static", e.Brand = "brand", e))(I || {});
|
|
32
|
+
const vt = {
|
|
33
|
+
size: te,
|
|
34
|
+
variant: I,
|
|
35
|
+
loading: K.BOOLEAN,
|
|
36
|
+
iconRight: K.COMPONENT,
|
|
37
|
+
iconLeft: K.COMPONENT,
|
|
38
|
+
className: K.CLASSNAME,
|
|
39
|
+
button_hex: K.COLOR,
|
|
40
|
+
link: K.LINK
|
|
41
|
+
}, O = mt(
|
|
40
42
|
({
|
|
41
43
|
children: e,
|
|
42
|
-
size: r =
|
|
43
|
-
variant: t =
|
|
44
|
+
size: r = te.XL,
|
|
45
|
+
variant: t = I.Primary,
|
|
44
46
|
loading: l = !1,
|
|
45
47
|
iconRight: o,
|
|
46
48
|
iconLeft: n,
|
|
@@ -48,17 +50,17 @@ import './assets/InfoBanner.css';import './assets/swiper.css';/* empty css
|
|
|
48
50
|
...d
|
|
49
51
|
}, w) => {
|
|
50
52
|
const F = {
|
|
51
|
-
[
|
|
52
|
-
[
|
|
53
|
-
[
|
|
54
|
-
[
|
|
53
|
+
[te.S]: "",
|
|
54
|
+
[te.M]: "px-[12px] py-[8px] rounded-[12px] text-[14px] h-[36px]",
|
|
55
|
+
[te.L]: "px-[16px] py-[10px] rounded-[16px] text-[16px] h-[44px]",
|
|
56
|
+
[te.XL]: "px-[20px] py-[16px] rounded-[16px] text-[16px] h-[56px]"
|
|
55
57
|
}, y = {
|
|
56
|
-
[
|
|
57
|
-
[
|
|
58
|
-
[
|
|
59
|
-
[
|
|
60
|
-
[
|
|
61
|
-
[
|
|
58
|
+
[I.Primary]: "bg-yellowLight hover:bg-yellowSaturated disabled:bg-yellowLight2 disabled:cursor-not-allowed",
|
|
59
|
+
[I.Secondary]: "bg-lightBlue hover:bg-grayBlue disabled:bg-white disabled:cursor-not-allowed",
|
|
60
|
+
[I.SecondaryBlue]: "bg-lightBlue text-blue hover:bg-grayBlue disabled:bg-white disabled:text-lightBlue5 disabled:cursor-not-allowed",
|
|
61
|
+
[I.Static]: "bg-white hover:bg-grayBlue disabled:bg-white disabled:cursor-not-allowed",
|
|
62
|
+
[I.Brand]: "bg-greenLight text-white hover:bg-green disabled:bg-lightGray5 disabled:cursor-not-allowed",
|
|
63
|
+
[I.Grey]: "bg-greyLight text-blackBG"
|
|
62
64
|
};
|
|
63
65
|
return /* @__PURE__ */ b(
|
|
64
66
|
"button",
|
|
@@ -80,8 +82,8 @@ import './assets/InfoBanner.css';import './assets/swiper.css';/* empty css
|
|
|
80
82
|
);
|
|
81
83
|
}
|
|
82
84
|
);
|
|
83
|
-
|
|
84
|
-
const
|
|
85
|
+
O.displayName = "AppButton";
|
|
86
|
+
const Wt = [
|
|
85
87
|
"bg_image",
|
|
86
88
|
"image",
|
|
87
89
|
"title",
|
|
@@ -90,7 +92,7 @@ const Gt = [
|
|
|
90
92
|
"buttons",
|
|
91
93
|
"variant",
|
|
92
94
|
"qr"
|
|
93
|
-
],
|
|
95
|
+
], zt = ({
|
|
94
96
|
bg_image: e,
|
|
95
97
|
image: r,
|
|
96
98
|
title: t,
|
|
@@ -133,19 +135,19 @@ const Gt = [
|
|
|
133
135
|
children: o
|
|
134
136
|
}
|
|
135
137
|
),
|
|
136
|
-
F && /* @__PURE__ */ a("div", { className: "flex items-center gap-4 mt-6 max-tablet:flex-col max-tablet:gap-[10px] max-tablet:mt-[5px]", children: n == null ? void 0 : n.map((
|
|
138
|
+
F && /* @__PURE__ */ a("div", { className: "flex items-center gap-4 mt-6 max-tablet:flex-col max-tablet:gap-[10px] max-tablet:mt-[5px]", children: n == null ? void 0 : n.map((U, E) => /* @__PURE__ */ a(
|
|
137
139
|
"a",
|
|
138
140
|
{
|
|
139
|
-
href: (
|
|
141
|
+
href: (U == null ? void 0 : U.link) || "#",
|
|
140
142
|
className: D("w-fit z-10 max-tablet:w-full"),
|
|
141
143
|
target: "_blank",
|
|
142
144
|
rel: "noopener noreferrer",
|
|
143
145
|
children: /* @__PURE__ */ a(
|
|
144
|
-
|
|
146
|
+
O,
|
|
145
147
|
{
|
|
146
|
-
variant:
|
|
148
|
+
variant: U.variant,
|
|
147
149
|
className: "w-[200px] max-tablet:w-full",
|
|
148
|
-
children:
|
|
150
|
+
children: U.text
|
|
149
151
|
}
|
|
150
152
|
)
|
|
151
153
|
},
|
|
@@ -159,7 +161,7 @@ const Gt = [
|
|
|
159
161
|
target: "_blank",
|
|
160
162
|
rel: "noopener noreferrer",
|
|
161
163
|
children: /* @__PURE__ */ a(
|
|
162
|
-
|
|
164
|
+
O,
|
|
163
165
|
{
|
|
164
166
|
variant: (m = d == null ? void 0 : d.button) == null ? void 0 : m.variant,
|
|
165
167
|
className: "w-[200px] max-tablet:w-full",
|
|
@@ -212,8 +214,8 @@ const Gt = [
|
|
|
212
214
|
}
|
|
213
215
|
) });
|
|
214
216
|
};
|
|
215
|
-
|
|
216
|
-
const Kt = ["data", "title", "button"],
|
|
217
|
+
zt.propsToEdit = Wt;
|
|
218
|
+
const Kt = ["data", "title", "button"], Xt = ({ data: e, title: r, button: t }) => /* @__PURE__ */ a($, { children: /* @__PURE__ */ b("div", { className: "flex items-center flex-col", children: [
|
|
217
219
|
r && /* @__PURE__ */ a("p", { className: "font-bold max-tablet:text-[26px] text-[44px] mb-12 max-tablet:leading-[32px] leading-[42px] font-variant-numeric font-feature-settings", children: r }),
|
|
218
220
|
/* @__PURE__ */ a("div", { className: "grid grid-cols-3 gap-6 max-tablet:grid-cols-1", children: e == null ? void 0 : e.map((l, o) => {
|
|
219
221
|
const n = o + 1;
|
|
@@ -242,13 +244,13 @@ const Kt = ["data", "title", "button"], Qt = ({ data: e, title: r, button: t })
|
|
|
242
244
|
className: "w-fit z-10 max-tablet:w-full",
|
|
243
245
|
target: "_blank",
|
|
244
246
|
rel: "noopener noreferrer",
|
|
245
|
-
children: /* @__PURE__ */ a(
|
|
247
|
+
children: /* @__PURE__ */ a(O, { variant: l.variant, children: l.text })
|
|
246
248
|
},
|
|
247
249
|
o
|
|
248
250
|
)) })
|
|
249
251
|
] }) });
|
|
250
|
-
|
|
251
|
-
const
|
|
252
|
+
Xt.propsToEdit = Kt;
|
|
253
|
+
const Qt = ["data"], wt = ({ data: e }) => {
|
|
252
254
|
var r;
|
|
253
255
|
return /* @__PURE__ */ b("div", { className: "rounded-[20px] overflow-hidden", children: [
|
|
254
256
|
/* @__PURE__ */ a(
|
|
@@ -273,13 +275,13 @@ const Xt = ["data"], wt = ({ data: e }) => {
|
|
|
273
275
|
{
|
|
274
276
|
href: (t == null ? void 0 : t.link) || "#",
|
|
275
277
|
target: "_blank",
|
|
276
|
-
children: /* @__PURE__ */ a(
|
|
278
|
+
children: /* @__PURE__ */ a(O, { variant: I.Grey, children: t == null ? void 0 : t.text })
|
|
277
279
|
}
|
|
278
280
|
)) })
|
|
279
281
|
] })
|
|
280
282
|
] });
|
|
281
283
|
};
|
|
282
|
-
wt.propsToEdit =
|
|
284
|
+
wt.propsToEdit = Qt;
|
|
283
285
|
const Yt = ["data"], Jt = ({ data: e }) => {
|
|
284
286
|
var r;
|
|
285
287
|
return /* @__PURE__ */ a($, { children: /* @__PURE__ */ b("div", { className: "w-full flex flex-col items-center justify-center", children: [
|
|
@@ -306,10 +308,10 @@ const qt = {
|
|
|
306
308
|
dataType: "array",
|
|
307
309
|
label: "Карточки",
|
|
308
310
|
data: {
|
|
309
|
-
title:
|
|
310
|
-
description:
|
|
311
|
-
image:
|
|
312
|
-
is_black:
|
|
311
|
+
title: K.TITLE,
|
|
312
|
+
description: K.DESCRIPTION,
|
|
313
|
+
image: K.FILE,
|
|
314
|
+
is_black: K.BOOLEAN,
|
|
313
315
|
variant: {
|
|
314
316
|
options: [
|
|
315
317
|
{
|
|
@@ -321,7 +323,7 @@ const qt = {
|
|
|
321
323
|
value: lt.SMALL
|
|
322
324
|
}
|
|
323
325
|
],
|
|
324
|
-
type:
|
|
326
|
+
type: K.VARIANT
|
|
325
327
|
}
|
|
326
328
|
}
|
|
327
329
|
}, er = [qt, "title", "grid", vt], tr = ({
|
|
@@ -361,7 +363,7 @@ const qt = {
|
|
|
361
363
|
className: D("w-fit z-10 max-tablet:w-full"),
|
|
362
364
|
target: "_blank",
|
|
363
365
|
rel: "noopener noreferrer",
|
|
364
|
-
children: /* @__PURE__ */ a(
|
|
366
|
+
children: /* @__PURE__ */ a(O, { variant: o.variant, children: o.text })
|
|
365
367
|
},
|
|
366
368
|
n
|
|
367
369
|
)) })
|
|
@@ -371,7 +373,6 @@ const rr = {
|
|
|
371
373
|
type: "buttons",
|
|
372
374
|
dataType: "array",
|
|
373
375
|
label: "Кнопки",
|
|
374
|
-
component: I,
|
|
375
376
|
data: vt
|
|
376
377
|
}, sr = [
|
|
377
378
|
"title",
|
|
@@ -413,12 +414,12 @@ const rr = {
|
|
|
413
414
|
children: t == null ? void 0 : t.map((w, F) => /* @__PURE__ */ a(
|
|
414
415
|
"a",
|
|
415
416
|
{
|
|
416
|
-
href: w == null ? void 0 : w.
|
|
417
|
+
href: w == null ? void 0 : w.link,
|
|
417
418
|
className: D("flex items-center", {
|
|
418
419
|
[`col-span-${u}`]: d(F, t)
|
|
419
420
|
}),
|
|
420
421
|
target: "_blank",
|
|
421
|
-
children: /* @__PURE__ */ a(
|
|
422
|
+
children: /* @__PURE__ */ a(O, { className: "font-[Inter] h-[56px] mx-auto px-[32px] py-[12px] max-tablet:px-[32px] max-tablet:py-[12px]", children: w == null ? void 0 : w.title })
|
|
422
423
|
}
|
|
423
424
|
))
|
|
424
425
|
}
|
|
@@ -445,12 +446,12 @@ const rr = {
|
|
|
445
446
|
] });
|
|
446
447
|
};
|
|
447
448
|
lr.propsToEdit = sr;
|
|
448
|
-
var _e = (e) => e.type === "checkbox", pe = (e) => e instanceof Date,
|
|
449
|
+
var _e = (e) => e.type === "checkbox", pe = (e) => e instanceof Date, P = (e) => e == null;
|
|
449
450
|
const _t = (e) => typeof e == "object";
|
|
450
|
-
var S = (e) => !
|
|
451
|
+
var S = (e) => !P(e) && !Array.isArray(e) && _t(e) && !pe(e), ir = (e) => S(e) && e.target ? _e(e.target) ? e.target.checked : e.target.value : e, ar = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, nr = (e, r) => e.has(ar(r)), or = (e) => {
|
|
451
452
|
const r = e.constructor && e.constructor.prototype;
|
|
452
453
|
return S(r) && r.hasOwnProperty("isPrototypeOf");
|
|
453
|
-
},
|
|
454
|
+
}, Ue = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
|
|
454
455
|
function R(e) {
|
|
455
456
|
let r;
|
|
456
457
|
const t = Array.isArray(e), l = typeof FileList < "u" ? e instanceof FileList : !1;
|
|
@@ -458,7 +459,7 @@ function R(e) {
|
|
|
458
459
|
r = new Date(e);
|
|
459
460
|
else if (e instanceof Set)
|
|
460
461
|
r = new Set(e);
|
|
461
|
-
else if (!(
|
|
462
|
+
else if (!(Ue && (e instanceof Blob || l)) && (t || S(e)))
|
|
462
463
|
if (r = t ? [] : {}, !t && !or(e))
|
|
463
464
|
r = e;
|
|
464
465
|
else
|
|
@@ -471,9 +472,9 @@ function R(e) {
|
|
|
471
472
|
var Se = (e) => /^\w*$/.test(e), T = (e) => e === void 0, Ze = (e) => Array.isArray(e) ? e.filter(Boolean) : [], je = (e) => Ze(e.replace(/["|']|\]/g, "").split(/\.|\[/)), h = (e, r, t) => {
|
|
472
473
|
if (!r || !S(e))
|
|
473
474
|
return t;
|
|
474
|
-
const l = (Se(r) ? [r] : je(r)).reduce((o, n) =>
|
|
475
|
+
const l = (Se(r) ? [r] : je(r)).reduce((o, n) => P(o) ? o : o[n], e);
|
|
475
476
|
return T(l) || l === e ? T(e[r]) ? t : e[r] : l;
|
|
476
|
-
},
|
|
477
|
+
}, ee = (e) => typeof e == "boolean", k = (e, r, t) => {
|
|
477
478
|
let l = -1;
|
|
478
479
|
const o = Se(r) ? [r] : je(r), n = o.length, u = n - 1;
|
|
479
480
|
for (; ++l < n; ) {
|
|
@@ -492,13 +493,13 @@ const it = {
|
|
|
492
493
|
BLUR: "blur",
|
|
493
494
|
FOCUS_OUT: "focusout",
|
|
494
495
|
CHANGE: "change"
|
|
495
|
-
},
|
|
496
|
+
}, X = {
|
|
496
497
|
onBlur: "onBlur",
|
|
497
498
|
onChange: "onChange",
|
|
498
499
|
onSubmit: "onSubmit",
|
|
499
500
|
onTouched: "onTouched",
|
|
500
501
|
all: "all"
|
|
501
|
-
},
|
|
502
|
+
}, le = {
|
|
502
503
|
max: "max",
|
|
503
504
|
min: "min",
|
|
504
505
|
maxLength: "maxLength",
|
|
@@ -506,11 +507,11 @@ const it = {
|
|
|
506
507
|
pattern: "pattern",
|
|
507
508
|
required: "required",
|
|
508
509
|
validate: "validate"
|
|
509
|
-
}, Ct =
|
|
510
|
+
}, Ct = W.createContext(null);
|
|
510
511
|
Ct.displayName = "HookFormContext";
|
|
511
512
|
const cr = (e) => {
|
|
512
513
|
const { children: r, ...t } = e;
|
|
513
|
-
return
|
|
514
|
+
return W.createElement(Ct.Provider, { value: t }, r);
|
|
514
515
|
};
|
|
515
516
|
var dr = (e, r, t, l = !0) => {
|
|
516
517
|
const o = {
|
|
@@ -520,13 +521,13 @@ var dr = (e, r, t, l = !0) => {
|
|
|
520
521
|
Object.defineProperty(o, n, {
|
|
521
522
|
get: () => {
|
|
522
523
|
const u = n;
|
|
523
|
-
return r._proxyFormState[u] !==
|
|
524
|
+
return r._proxyFormState[u] !== X.all && (r._proxyFormState[u] = !l || X.all), t && (t[u] = !0), e[u];
|
|
524
525
|
}
|
|
525
526
|
});
|
|
526
527
|
return o;
|
|
527
528
|
};
|
|
528
529
|
const fr = typeof window < "u" ? rt.useLayoutEffect : rt.useEffect;
|
|
529
|
-
var
|
|
530
|
+
var re = (e) => typeof e == "string", ur = (e, r, t, l, o) => re(e) ? (l && r.watch.add(e), h(t, e, o)) : Array.isArray(e) ? e.map((n) => (l && r.watch.add(n), h(t, n))) : (l && (r.watchAll = !0), t), xr = (e, r, t, l, o) => r ? {
|
|
530
531
|
...t[e],
|
|
531
532
|
types: {
|
|
532
533
|
...t[e] && t[e].types ? t[e].types : {},
|
|
@@ -551,9 +552,9 @@ var ee = (e) => typeof e == "string", ur = (e, r, t, l, o) => ee(e) ? (l && r.wa
|
|
|
551
552
|
e = [];
|
|
552
553
|
}
|
|
553
554
|
};
|
|
554
|
-
},
|
|
555
|
+
}, Pe = (e) => P(e) || !_t(e);
|
|
555
556
|
function fe(e, r) {
|
|
556
|
-
if (
|
|
557
|
+
if (Pe(e) || Pe(r))
|
|
557
558
|
return e === r;
|
|
558
559
|
if (pe(e) && pe(r))
|
|
559
560
|
return e.getTime() === r.getTime();
|
|
@@ -573,11 +574,11 @@ function fe(e, r) {
|
|
|
573
574
|
return !0;
|
|
574
575
|
}
|
|
575
576
|
var j = (e) => S(e) && !Object.keys(e).length, $e = (e) => e.type === "file", Q = (e) => typeof e == "function", Fe = (e) => {
|
|
576
|
-
if (!
|
|
577
|
+
if (!Ue)
|
|
577
578
|
return !1;
|
|
578
579
|
const r = e ? e.ownerDocument : 0;
|
|
579
580
|
return e instanceof (r && r.defaultView ? r.defaultView.HTMLElement : HTMLElement);
|
|
580
|
-
}, Nt = (e) => e.type === "select-multiple",
|
|
581
|
+
}, Nt = (e) => e.type === "select-multiple", Ge = (e) => e.type === "radio", pr = (e) => Ge(e) || _e(e), He = (e) => Fe(e) && e.isConnected;
|
|
581
582
|
function hr(e, r) {
|
|
582
583
|
const t = r.slice(0, -1).length;
|
|
583
584
|
let l = 0;
|
|
@@ -605,14 +606,14 @@ function Ee(e, r = {}) {
|
|
|
605
606
|
const t = Array.isArray(e);
|
|
606
607
|
if (S(e) || t)
|
|
607
608
|
for (const l in e)
|
|
608
|
-
Array.isArray(e[l]) || S(e[l]) && !Vt(e[l]) ? (r[l] = Array.isArray(e[l]) ? [] : {}, Ee(e[l], r[l])) :
|
|
609
|
+
Array.isArray(e[l]) || S(e[l]) && !Vt(e[l]) ? (r[l] = Array.isArray(e[l]) ? [] : {}, Ee(e[l], r[l])) : P(e[l]) || (r[l] = !0);
|
|
609
610
|
return r;
|
|
610
611
|
}
|
|
611
612
|
function Lt(e, r, t) {
|
|
612
613
|
const l = Array.isArray(e);
|
|
613
614
|
if (S(e) || l)
|
|
614
615
|
for (const o in e)
|
|
615
|
-
Array.isArray(e[o]) || S(e[o]) && !Vt(e[o]) ? T(r) ||
|
|
616
|
+
Array.isArray(e[o]) || S(e[o]) && !Vt(e[o]) ? T(r) || Pe(t[o]) ? t[o] = Array.isArray(e[o]) ? Ee(e[o], []) : { ...Ee(e[o]) } : Lt(e[o], P(r) ? {} : r[o], t[o]) : t[o] = !fe(e[o], r[o]);
|
|
616
617
|
return t;
|
|
617
618
|
}
|
|
618
619
|
var me = (e, r) => Lt(e, r, Ee(r));
|
|
@@ -632,7 +633,7 @@ var kt = (e) => {
|
|
|
632
633
|
) : nt;
|
|
633
634
|
}
|
|
634
635
|
return nt;
|
|
635
|
-
}, Ft = (e, { valueAsNumber: r, valueAsDate: t, setValueAs: l }) => T(e) ? e : r ? e === "" ? NaN : e && +e : t &&
|
|
636
|
+
}, Ft = (e, { valueAsNumber: r, valueAsDate: t, setValueAs: l }) => T(e) ? e : r ? e === "" ? NaN : e && +e : t && re(e) ? new Date(e) : l ? l(e) : e;
|
|
636
637
|
const ct = {
|
|
637
638
|
isValid: !1,
|
|
638
639
|
value: null
|
|
@@ -643,7 +644,7 @@ var Et = (e) => Array.isArray(e) ? e.reduce((r, t) => t && t.checked && !t.disab
|
|
|
643
644
|
} : r, ct) : ct;
|
|
644
645
|
function dt(e) {
|
|
645
646
|
const r = e.ref;
|
|
646
|
-
return $e(r) ? r.files :
|
|
647
|
+
return $e(r) ? r.files : Ge(r) ? Et(e.refs).value : Nt(r) ? [...r.selectedOptions].map(({ value: t }) => t) : _e(r) ? kt(e.refs).value : Ft(T(r.value) ? e.ref.value : r.value, e);
|
|
647
648
|
}
|
|
648
649
|
var br = (e, r, t, l) => {
|
|
649
650
|
const o = {};
|
|
@@ -658,11 +659,11 @@ var br = (e, r, t, l) => {
|
|
|
658
659
|
shouldUseNativeValidation: l
|
|
659
660
|
};
|
|
660
661
|
}, Ae = (e) => e instanceof RegExp, ye = (e) => T(e) ? e : Ae(e) ? e.source : S(e) ? Ae(e.value) ? e.value.source : e.value : e, ft = (e) => ({
|
|
661
|
-
isOnSubmit: !e || e ===
|
|
662
|
-
isOnBlur: e ===
|
|
663
|
-
isOnChange: e ===
|
|
664
|
-
isOnAll: e ===
|
|
665
|
-
isOnTouch: e ===
|
|
662
|
+
isOnSubmit: !e || e === X.onSubmit,
|
|
663
|
+
isOnBlur: e === X.onBlur,
|
|
664
|
+
isOnChange: e === X.onChange,
|
|
665
|
+
isOnAll: e === X.all,
|
|
666
|
+
isOnTouch: e === X.onTouched
|
|
666
667
|
});
|
|
667
668
|
const ut = "AsyncFunction";
|
|
668
669
|
var mr = (e) => !!e && !!e.validate && !!(Q(e.validate) && e.validate.constructor.name === ut || S(e.validate) && Object.values(e.validate).find((r) => r.constructor.name === ut)), yr = (e) => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate), xt = (e, r, t) => !t && (r.watchAll || r.watch.has(e) || [...r.watch].some((l) => e.startsWith(l) && /^\.\w+/.test(e.slice(l.length))));
|
|
@@ -714,13 +715,13 @@ function pt(e, r, t) {
|
|
|
714
715
|
var vr = (e, r, t, l) => {
|
|
715
716
|
t(e);
|
|
716
717
|
const { name: o, ...n } = e;
|
|
717
|
-
return j(n) || Object.keys(n).length >= Object.keys(r).length || Object.keys(n).find((u) => r[u] === (!l ||
|
|
718
|
+
return j(n) || Object.keys(n).length >= Object.keys(r).length || Object.keys(n).find((u) => r[u] === (!l || X.all));
|
|
718
719
|
}, wr = (e, r, t) => !e || !r || e === r || ve(e).some((l) => l && (t ? l === r : l.startsWith(r) || r.startsWith(l))), _r = (e, r, t, l, o) => o.isOnAll ? !1 : !t && o.isOnTouch ? !(r || e) : (t ? l.isOnBlur : o.isOnBlur) ? !e : (t ? l.isOnChange : o.isOnChange) ? e : !0, Cr = (e, r) => !Ze(h(e, r)).length && B(e, r), Nr = (e, r, t) => {
|
|
719
720
|
const l = ve(h(e, t));
|
|
720
721
|
return k(l, "root", r[t]), k(e, t, l), e;
|
|
721
|
-
}, ke = (e) =>
|
|
722
|
+
}, ke = (e) => re(e);
|
|
722
723
|
function ht(e, r, t = "validate") {
|
|
723
|
-
if (ke(e) || Array.isArray(e) && e.every(ke) ||
|
|
724
|
+
if (ke(e) || Array.isArray(e) && e.every(ke) || ee(e) && !e)
|
|
724
725
|
return {
|
|
725
726
|
type: t,
|
|
726
727
|
message: ke(e) ? e : "",
|
|
@@ -731,89 +732,89 @@ var ge = (e) => S(e) && !Ae(e) ? e : {
|
|
|
731
732
|
value: e,
|
|
732
733
|
message: ""
|
|
733
734
|
}, gt = async (e, r, t, l, o, n) => {
|
|
734
|
-
const { ref: u, refs: d, required: w, maxLength: F, minLength: y, min: V, max: m, pattern: ne, validate:
|
|
735
|
+
const { ref: u, refs: d, required: w, maxLength: F, minLength: y, min: V, max: m, pattern: ne, validate: U, name: E, valueAsNumber: oe, mount: De } = e._f, _ = h(t, E);
|
|
735
736
|
if (!De || r.has(E))
|
|
736
737
|
return {};
|
|
737
|
-
const
|
|
738
|
-
o &&
|
|
739
|
-
}, M = {}, Ce =
|
|
740
|
-
const
|
|
738
|
+
const se = d ? d[0] : u, Y = (v) => {
|
|
739
|
+
o && se.reportValidity && (se.setCustomValidity(ee(v) ? "" : v || ""), se.reportValidity());
|
|
740
|
+
}, M = {}, Ce = Ge(u), ce = _e(u), Te = Ce || ce, z = (oe || $e(u)) && T(u.value) && T(_) || Fe(u) && u.value === "" || _ === "" || Array.isArray(_) && !_.length, xe = xr.bind(null, E, l, M), J = (v, N, A, H = le.maxLength, Z = le.minLength) => {
|
|
741
|
+
const q = v ? N : A;
|
|
741
742
|
M[E] = {
|
|
742
743
|
type: v ? H : Z,
|
|
743
|
-
message:
|
|
744
|
+
message: q,
|
|
744
745
|
ref: u,
|
|
745
|
-
...xe(v ? H : Z,
|
|
746
|
+
...xe(v ? H : Z, q)
|
|
746
747
|
};
|
|
747
748
|
};
|
|
748
|
-
if (n ? !Array.isArray(_) || !_.length : w && (!Te && (
|
|
749
|
+
if (n ? !Array.isArray(_) || !_.length : w && (!Te && (z || P(_)) || ee(_) && !_ || ce && !kt(d).isValid || Ce && !Et(d).isValid)) {
|
|
749
750
|
const { value: v, message: N } = ke(w) ? { value: !!w, message: w } : ge(w);
|
|
750
751
|
if (v && (M[E] = {
|
|
751
|
-
type:
|
|
752
|
+
type: le.required,
|
|
752
753
|
message: N,
|
|
753
|
-
ref:
|
|
754
|
-
...xe(
|
|
754
|
+
ref: se,
|
|
755
|
+
...xe(le.required, N)
|
|
755
756
|
}, !l))
|
|
756
|
-
return
|
|
757
|
+
return Y(N), M;
|
|
757
758
|
}
|
|
758
|
-
if (!
|
|
759
|
+
if (!z && (!P(V) || !P(m))) {
|
|
759
760
|
let v, N;
|
|
760
761
|
const A = ge(m), H = ge(V);
|
|
761
|
-
if (!
|
|
762
|
+
if (!P(_) && !isNaN(_)) {
|
|
762
763
|
const Z = u.valueAsNumber || _ && +_;
|
|
763
|
-
|
|
764
|
+
P(A.value) || (v = Z > A.value), P(H.value) || (N = Z < H.value);
|
|
764
765
|
} else {
|
|
765
|
-
const Z = u.valueAsDate || new Date(_),
|
|
766
|
-
|
|
766
|
+
const Z = u.valueAsDate || new Date(_), q = (Ne) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + Ne), be = u.type == "time", he = u.type == "week";
|
|
767
|
+
re(A.value) && _ && (v = be ? q(_) > q(A.value) : he ? _ > A.value : Z > new Date(A.value)), re(H.value) && _ && (N = be ? q(_) < q(H.value) : he ? _ < H.value : Z < new Date(H.value));
|
|
767
768
|
}
|
|
768
|
-
if ((v || N) && (
|
|
769
|
-
return
|
|
769
|
+
if ((v || N) && (J(!!v, A.message, H.message, le.max, le.min), !l))
|
|
770
|
+
return Y(M[E].message), M;
|
|
770
771
|
}
|
|
771
|
-
if ((F || y) && !
|
|
772
|
-
const v = ge(F), N = ge(y), A = !
|
|
773
|
-
if ((A || H) && (
|
|
774
|
-
return
|
|
772
|
+
if ((F || y) && !z && (re(_) || n && Array.isArray(_))) {
|
|
773
|
+
const v = ge(F), N = ge(y), A = !P(v.value) && _.length > +v.value, H = !P(N.value) && _.length < +N.value;
|
|
774
|
+
if ((A || H) && (J(A, v.message, N.message), !l))
|
|
775
|
+
return Y(M[E].message), M;
|
|
775
776
|
}
|
|
776
|
-
if (ne && !
|
|
777
|
+
if (ne && !z && re(_)) {
|
|
777
778
|
const { value: v, message: N } = ge(ne);
|
|
778
779
|
if (Ae(v) && !_.match(v) && (M[E] = {
|
|
779
|
-
type:
|
|
780
|
+
type: le.pattern,
|
|
780
781
|
message: N,
|
|
781
782
|
ref: u,
|
|
782
|
-
...xe(
|
|
783
|
+
...xe(le.pattern, N)
|
|
783
784
|
}, !l))
|
|
784
|
-
return
|
|
785
|
+
return Y(N), M;
|
|
785
786
|
}
|
|
786
|
-
if (
|
|
787
|
-
if (Q(
|
|
788
|
-
const v = await
|
|
787
|
+
if (U) {
|
|
788
|
+
if (Q(U)) {
|
|
789
|
+
const v = await U(_, t), N = ht(v, se);
|
|
789
790
|
if (N && (M[E] = {
|
|
790
791
|
...N,
|
|
791
|
-
...xe(
|
|
792
|
+
...xe(le.validate, N.message)
|
|
792
793
|
}, !l))
|
|
793
|
-
return
|
|
794
|
-
} else if (S(
|
|
794
|
+
return Y(N.message), M;
|
|
795
|
+
} else if (S(U)) {
|
|
795
796
|
let v = {};
|
|
796
|
-
for (const N in
|
|
797
|
+
for (const N in U) {
|
|
797
798
|
if (!j(v) && !l)
|
|
798
799
|
break;
|
|
799
|
-
const A = ht(await
|
|
800
|
+
const A = ht(await U[N](_, t), se, N);
|
|
800
801
|
A && (v = {
|
|
801
802
|
...A,
|
|
802
803
|
...xe(N, A.message)
|
|
803
|
-
},
|
|
804
|
+
}, Y(A.message), l && (M[E] = v));
|
|
804
805
|
}
|
|
805
806
|
if (!j(v) && (M[E] = {
|
|
806
|
-
ref:
|
|
807
|
+
ref: se,
|
|
807
808
|
...v
|
|
808
809
|
}, !l))
|
|
809
810
|
return M;
|
|
810
811
|
}
|
|
811
812
|
}
|
|
812
|
-
return
|
|
813
|
+
return Y(!0), M;
|
|
813
814
|
};
|
|
814
815
|
const Vr = {
|
|
815
|
-
mode:
|
|
816
|
-
reValidateMode:
|
|
816
|
+
mode: X.onSubmit,
|
|
817
|
+
reValidateMode: X.onChange,
|
|
817
818
|
shouldFocusError: !0
|
|
818
819
|
};
|
|
819
820
|
function Lr(e = {}) {
|
|
@@ -863,11 +864,11 @@ function Lr(e = {}) {
|
|
|
863
864
|
const m = {
|
|
864
865
|
array: at(),
|
|
865
866
|
state: at()
|
|
866
|
-
}, ne = r.criteriaMode ===
|
|
867
|
+
}, ne = r.criteriaMode === X.all, U = (s) => (i) => {
|
|
867
868
|
clearTimeout(F), F = setTimeout(s, i);
|
|
868
869
|
}, E = async (s) => {
|
|
869
870
|
if (!r.disabled && (y.isValid || V.isValid || s)) {
|
|
870
|
-
const i = r.resolver ? j((await ce()).errors) : await
|
|
871
|
+
const i = r.resolver ? j((await ce()).errors) : await z(l, !0);
|
|
871
872
|
i !== t.isValid && m.state.next({
|
|
872
873
|
isValid: i
|
|
873
874
|
});
|
|
@@ -895,7 +896,7 @@ function Lr(e = {}) {
|
|
|
895
896
|
}
|
|
896
897
|
(y.dirtyFields || V.dirtyFields) && (t.dirtyFields = me(o, n)), m.state.next({
|
|
897
898
|
name: s,
|
|
898
|
-
isDirty:
|
|
899
|
+
isDirty: J(s, i),
|
|
899
900
|
dirtyFields: t.dirtyFields,
|
|
900
901
|
errors: t.errors,
|
|
901
902
|
isValid: t.isValid
|
|
@@ -906,12 +907,12 @@ function Lr(e = {}) {
|
|
|
906
907
|
k(t.errors, s, i), m.state.next({
|
|
907
908
|
errors: t.errors
|
|
908
909
|
});
|
|
909
|
-
},
|
|
910
|
+
}, se = (s) => {
|
|
910
911
|
t.errors = s, m.state.next({
|
|
911
912
|
errors: t.errors,
|
|
912
913
|
isValid: !1
|
|
913
914
|
});
|
|
914
|
-
},
|
|
915
|
+
}, Y = (s, i, c, p) => {
|
|
915
916
|
const x = h(l, s);
|
|
916
917
|
if (x) {
|
|
917
918
|
const f = h(n, s, T(c) ? h(o, s) : c);
|
|
@@ -924,7 +925,7 @@ function Lr(e = {}) {
|
|
|
924
925
|
};
|
|
925
926
|
if (!r.disabled) {
|
|
926
927
|
if (!c || p) {
|
|
927
|
-
(y.isDirty || V.isDirty) && (g = t.isDirty, t.isDirty = C.isDirty =
|
|
928
|
+
(y.isDirty || V.isDirty) && (g = t.isDirty, t.isDirty = C.isDirty = J(), f = g !== C.isDirty);
|
|
928
929
|
const L = fe(h(o, s), i);
|
|
929
930
|
g = !!h(t.dirtyFields, s), L ? B(t.dirtyFields, s) : k(t.dirtyFields, s, !0), C.dirtyFields = t.dirtyFields, f = f || (y.dirtyFields || V.dirtyFields) && g !== !L;
|
|
930
931
|
}
|
|
@@ -936,11 +937,11 @@ function Lr(e = {}) {
|
|
|
936
937
|
}
|
|
937
938
|
return f ? C : {};
|
|
938
939
|
}, Ce = (s, i, c, p) => {
|
|
939
|
-
const x = h(t.errors, s), f = (y.isValid || V.isValid) &&
|
|
940
|
-
if (r.delayError && c ? (w =
|
|
940
|
+
const x = h(t.errors, s), f = (y.isValid || V.isValid) && ee(i) && t.isValid !== i;
|
|
941
|
+
if (r.delayError && c ? (w = U(() => _(s, c)), w(r.delayError)) : (clearTimeout(F), w = null, c ? k(t.errors, s, c) : B(t.errors, s)), (c ? !fe(x, c) : x) || !j(p) || f) {
|
|
941
942
|
const g = {
|
|
942
943
|
...p,
|
|
943
|
-
...f &&
|
|
944
|
+
...f && ee(i) ? { isValid: i } : {},
|
|
944
945
|
errors: t.errors,
|
|
945
946
|
name: s
|
|
946
947
|
};
|
|
@@ -963,7 +964,7 @@ function Lr(e = {}) {
|
|
|
963
964
|
else
|
|
964
965
|
t.errors = i;
|
|
965
966
|
return i;
|
|
966
|
-
},
|
|
967
|
+
}, z = async (s, i, c = {
|
|
967
968
|
valid: !0
|
|
968
969
|
}) => {
|
|
969
970
|
for (const p in s) {
|
|
@@ -973,12 +974,12 @@ function Lr(e = {}) {
|
|
|
973
974
|
if (f) {
|
|
974
975
|
const C = d.array.has(f.name), L = x._f && mr(x._f);
|
|
975
976
|
L && y.validatingFields && oe([p], !0);
|
|
976
|
-
const
|
|
977
|
-
if (L && y.validatingFields && oe([p]),
|
|
977
|
+
const G = await gt(x, d.disabled, n, ne, r.shouldUseNativeValidation && !i, C);
|
|
978
|
+
if (L && y.validatingFields && oe([p]), G[f.name] && (c.valid = !1, i))
|
|
978
979
|
break;
|
|
979
|
-
!i && (h(
|
|
980
|
+
!i && (h(G, f.name) ? C ? Nr(t.errors, G, f.name) : k(t.errors, f.name, G[f.name]) : B(t.errors, f.name));
|
|
980
981
|
}
|
|
981
|
-
!j(g) && await
|
|
982
|
+
!j(g) && await z(g, i, c);
|
|
982
983
|
}
|
|
983
984
|
}
|
|
984
985
|
return c.valid;
|
|
@@ -988,14 +989,14 @@ function Lr(e = {}) {
|
|
|
988
989
|
i && (i._f.refs ? i._f.refs.every((c) => !He(c)) : !He(i._f.ref)) && Me(s);
|
|
989
990
|
}
|
|
990
991
|
d.unMount = /* @__PURE__ */ new Set();
|
|
991
|
-
},
|
|
992
|
-
...u.mount ? n : T(i) ? o :
|
|
992
|
+
}, J = (s, i) => !r.disabled && (s && i && k(n, s, i), !fe(Ne(), o)), v = (s, i, c) => ur(s, d, {
|
|
993
|
+
...u.mount ? n : T(i) ? o : re(s) ? { [s]: i } : i
|
|
993
994
|
}, c, i), N = (s) => Ze(h(u.mount ? n : o, s, r.shouldUnregister ? h(o, s, []) : [])), A = (s, i, c = {}) => {
|
|
994
995
|
const p = h(l, s);
|
|
995
996
|
let x = i;
|
|
996
997
|
if (p) {
|
|
997
998
|
const f = p._f;
|
|
998
|
-
f && (!f.disabled && k(n, s, Ft(i, f)), x = Fe(f.ref) &&
|
|
999
|
+
f && (!f.disabled && k(n, s, Ft(i, f)), x = Fe(f.ref) && P(i) ? "" : i, Nt(f.ref) ? [...f.ref.options].forEach((g) => g.selected = x.includes(g.value)) : f.refs ? _e(f.ref) ? f.refs.forEach((g) => {
|
|
999
1000
|
(!g.defaultChecked || !g.disabled) && (Array.isArray(x) ? g.checked = !!x.find((C) => C === g.value) : g.checked = x === g.value || !!x);
|
|
1000
1001
|
}) : f.refs.forEach((g) => g.checked = g.value === x) : $e(f.ref) ? f.ref.value = "" : (f.ref.value = x, f.ref.type || m.state.next({
|
|
1001
1002
|
name: s,
|
|
@@ -1018,12 +1019,12 @@ function Lr(e = {}) {
|
|
|
1018
1019
|
}), (y.isDirty || y.dirtyFields || V.isDirty || V.dirtyFields) && c.shouldDirty && m.state.next({
|
|
1019
1020
|
name: s,
|
|
1020
1021
|
dirtyFields: me(o, n),
|
|
1021
|
-
isDirty:
|
|
1022
|
-
})) : p && !p._f && !
|
|
1022
|
+
isDirty: J(s, f)
|
|
1023
|
+
})) : p && !p._f && !P(f) ? H(s, f, c) : A(s, f, c), xt(s, d) && m.state.next({ ...t }), m.state.next({
|
|
1023
1024
|
name: u.mount ? s : void 0,
|
|
1024
1025
|
values: R(n)
|
|
1025
1026
|
});
|
|
1026
|
-
},
|
|
1027
|
+
}, q = async (s) => {
|
|
1027
1028
|
u.mount = !0;
|
|
1028
1029
|
const i = s.target;
|
|
1029
1030
|
let c = i.name, p = !0;
|
|
@@ -1031,7 +1032,7 @@ function Lr(e = {}) {
|
|
|
1031
1032
|
p = Number.isNaN(L) || pe(L) && isNaN(L.getTime()) || fe(L, h(n, c, L));
|
|
1032
1033
|
}, g = ft(r.mode), C = ft(r.reValidateMode);
|
|
1033
1034
|
if (x) {
|
|
1034
|
-
let L,
|
|
1035
|
+
let L, G;
|
|
1035
1036
|
const Ve = i.type ? dt(x._f) : ir(s), de = s.type === it.BLUR || s.type === it.FOCUS_OUT, Rt = !yr(x._f) && !r.resolver && !h(t.errors, c) && !x._f.deps || _r(de, h(t.touchedFields, c), t.isSubmitted, C, g), Oe = xt(c, d, de);
|
|
1036
1037
|
k(n, c, Ve), de ? (x._f.onBlur && x._f.onBlur(s), w && w(0)) : x._f.onChange && x._f.onChange(s);
|
|
1037
1038
|
const Re = M(c, Ve, de), Ht = !j(Re) || Oe;
|
|
@@ -1044,12 +1045,12 @@ function Lr(e = {}) {
|
|
|
1044
1045
|
if (!de && Oe && m.state.next({ ...t }), r.resolver) {
|
|
1045
1046
|
const { errors: et } = await ce([c]);
|
|
1046
1047
|
if (f(Ve), p) {
|
|
1047
|
-
const
|
|
1048
|
-
L = tt.error, c = tt.name,
|
|
1048
|
+
const Pt = pt(t.errors, l, c), tt = pt(et, l, Pt.name || c);
|
|
1049
|
+
L = tt.error, c = tt.name, G = j(et);
|
|
1049
1050
|
}
|
|
1050
1051
|
} else
|
|
1051
|
-
oe([c], !0), L = (await gt(x, d.disabled, n, ne, r.shouldUseNativeValidation))[c], oe([c]), f(Ve), p && (L ?
|
|
1052
|
-
p && (x._f.deps && he(x._f.deps), Ce(c,
|
|
1052
|
+
oe([c], !0), L = (await gt(x, d.disabled, n, ne, r.shouldUseNativeValidation))[c], oe([c]), f(Ve), p && (L ? G = !1 : (y.isValid || V.isValid) && (G = await z(l, !0)));
|
|
1053
|
+
p && (x._f.deps && he(x._f.deps), Ce(c, G, L, Re));
|
|
1053
1054
|
}
|
|
1054
1055
|
}, be = (s, i) => {
|
|
1055
1056
|
if (h(t.errors, i) && s.focus)
|
|
@@ -1063,10 +1064,10 @@ function Lr(e = {}) {
|
|
|
1063
1064
|
} else
|
|
1064
1065
|
s ? (p = (await Promise.all(x.map(async (f) => {
|
|
1065
1066
|
const g = h(l, f);
|
|
1066
|
-
return await
|
|
1067
|
-
}))).every(Boolean), !(!p && !t.isValid) && E()) : p = c = await
|
|
1067
|
+
return await z(g && g._f ? { [f]: g } : g);
|
|
1068
|
+
}))).every(Boolean), !(!p && !t.isValid) && E()) : p = c = await z(l);
|
|
1068
1069
|
return m.state.next({
|
|
1069
|
-
...!
|
|
1070
|
+
...!re(s) || (y.isValid || V.isValid) && c !== t.isValid ? {} : { name: s },
|
|
1070
1071
|
...r.resolver || !s ? { isValid: c } : {},
|
|
1071
1072
|
errors: t.errors
|
|
1072
1073
|
}), i.shouldFocus && !p && we(l, be, s ? x : d.mount), p;
|
|
@@ -1074,8 +1075,8 @@ function Lr(e = {}) {
|
|
|
1074
1075
|
const i = {
|
|
1075
1076
|
...u.mount ? n : o
|
|
1076
1077
|
};
|
|
1077
|
-
return T(s) ? i :
|
|
1078
|
-
},
|
|
1078
|
+
return T(s) ? i : re(s) ? h(i, s) : s.map((c) => h(i, c));
|
|
1079
|
+
}, We = (s, i) => ({
|
|
1079
1080
|
invalid: !!h((i || t).errors, s),
|
|
1080
1081
|
isDirty: !!h((i || t).dirtyFields, s),
|
|
1081
1082
|
error: h((i || t).errors, s),
|
|
@@ -1085,7 +1086,7 @@ function Lr(e = {}) {
|
|
|
1085
1086
|
s && ve(s).forEach((i) => B(t.errors, i)), m.state.next({
|
|
1086
1087
|
errors: s ? t.errors : {}
|
|
1087
1088
|
});
|
|
1088
|
-
},
|
|
1089
|
+
}, ze = (s, i, c) => {
|
|
1089
1090
|
const p = (h(l, s, { _f: {} })._f || {}).ref, x = h(t.errors, s) || {}, { ref: f, message: g, type: C, ...L } = x;
|
|
1090
1091
|
k(t.errors, s, {
|
|
1091
1092
|
...L,
|
|
@@ -1119,13 +1120,13 @@ function Lr(e = {}) {
|
|
|
1119
1120
|
values: R(n)
|
|
1120
1121
|
}), m.state.next({
|
|
1121
1122
|
...t,
|
|
1122
|
-
...i.keepDirty ? { isDirty:
|
|
1123
|
+
...i.keepDirty ? { isDirty: J() } : {}
|
|
1123
1124
|
}), !i.keepIsValid && E();
|
|
1124
|
-
},
|
|
1125
|
-
(
|
|
1125
|
+
}, Xe = ({ disabled: s, name: i }) => {
|
|
1126
|
+
(ee(s) && u.mount || s || d.disabled.has(i)) && (s ? d.disabled.add(i) : d.disabled.delete(i));
|
|
1126
1127
|
}, Be = (s, i = {}) => {
|
|
1127
1128
|
let c = h(l, s);
|
|
1128
|
-
const p =
|
|
1129
|
+
const p = ee(i.disabled) || ee(r.disabled);
|
|
1129
1130
|
return k(l, s, {
|
|
1130
1131
|
...c || {},
|
|
1131
1132
|
_f: {
|
|
@@ -1134,10 +1135,10 @@ function Lr(e = {}) {
|
|
|
1134
1135
|
mount: !0,
|
|
1135
1136
|
...i
|
|
1136
1137
|
}
|
|
1137
|
-
}), d.mount.add(s), c ?
|
|
1138
|
-
disabled:
|
|
1138
|
+
}), d.mount.add(s), c ? Xe({
|
|
1139
|
+
disabled: ee(i.disabled) ? i.disabled : r.disabled,
|
|
1139
1140
|
name: s
|
|
1140
|
-
}) :
|
|
1141
|
+
}) : Y(s, !0, i.value), {
|
|
1141
1142
|
...p ? { disabled: i.disabled || r.disabled } : {},
|
|
1142
1143
|
...r.progressive ? {
|
|
1143
1144
|
required: !!i.required,
|
|
@@ -1148,8 +1149,8 @@ function Lr(e = {}) {
|
|
|
1148
1149
|
pattern: ye(i.pattern)
|
|
1149
1150
|
} : {},
|
|
1150
1151
|
name: s,
|
|
1151
|
-
onChange:
|
|
1152
|
-
onBlur:
|
|
1152
|
+
onChange: q,
|
|
1153
|
+
onBlur: q,
|
|
1153
1154
|
ref: (x) => {
|
|
1154
1155
|
if (x) {
|
|
1155
1156
|
Be(s, i), c = h(l, s);
|
|
@@ -1168,19 +1169,19 @@ function Lr(e = {}) {
|
|
|
1168
1169
|
ref: { type: f.type, name: s }
|
|
1169
1170
|
} : { ref: f }
|
|
1170
1171
|
}
|
|
1171
|
-
}),
|
|
1172
|
+
}), Y(s, !1, void 0, f);
|
|
1172
1173
|
} else
|
|
1173
1174
|
c = h(l, s, {}), c._f && (c._f.mount = !1), (r.shouldUnregister || i.shouldUnregister) && !(nr(d.array, s) && u.action) && d.unMount.add(s);
|
|
1174
1175
|
}
|
|
1175
1176
|
};
|
|
1176
1177
|
}, Ie = () => r.shouldFocusError && we(l, be, d.mount), Mt = (s) => {
|
|
1177
|
-
|
|
1178
|
+
ee(s) && (m.state.next({ disabled: s }), we(l, (i, c) => {
|
|
1178
1179
|
const p = h(l, c);
|
|
1179
1180
|
p && (i.disabled = p._f.disabled || s, Array.isArray(p._f.refs) && p._f.refs.forEach((x) => {
|
|
1180
1181
|
x.disabled = p._f.disabled || s;
|
|
1181
1182
|
}));
|
|
1182
1183
|
}, 0, !1));
|
|
1183
|
-
},
|
|
1184
|
+
}, Qe = (s, i) => async (c) => {
|
|
1184
1185
|
let p;
|
|
1185
1186
|
c && (c.preventDefault && c.preventDefault(), c.persist && c.persist());
|
|
1186
1187
|
let x = R(n);
|
|
@@ -1190,7 +1191,7 @@ function Lr(e = {}) {
|
|
|
1190
1191
|
const { errors: f, values: g } = await ce();
|
|
1191
1192
|
t.errors = f, x = g;
|
|
1192
1193
|
} else
|
|
1193
|
-
await
|
|
1194
|
+
await z(l);
|
|
1194
1195
|
if (d.disabled.size)
|
|
1195
1196
|
for (const f of d.disabled)
|
|
1196
1197
|
k(x, f, void 0);
|
|
@@ -1214,7 +1215,7 @@ function Lr(e = {}) {
|
|
|
1214
1215
|
}), p)
|
|
1215
1216
|
throw p;
|
|
1216
1217
|
}, Bt = (s, i = {}) => {
|
|
1217
|
-
h(l, s) && (T(i.defaultValue) ? Z(s, R(h(o, s))) : (Z(s, i.defaultValue), k(o, s, R(i.defaultValue))), i.keepTouched || B(t.touchedFields, s), i.keepDirty || (B(t.dirtyFields, s), t.isDirty = i.defaultValue ?
|
|
1218
|
+
h(l, s) && (T(i.defaultValue) ? Z(s, R(h(o, s))) : (Z(s, i.defaultValue), k(o, s, R(i.defaultValue))), i.keepTouched || B(t.touchedFields, s), i.keepDirty || (B(t.dirtyFields, s), t.isDirty = i.defaultValue ? J(s, R(h(o, s))) : J()), i.keepError || (B(t.errors, s), y.isValid && E()), m.state.next({ ...t }));
|
|
1218
1219
|
}, Ye = (s, i = {}) => {
|
|
1219
1220
|
const c = s ? R(s) : o, p = R(c), x = j(s), f = x ? o : p;
|
|
1220
1221
|
if (i.keepDefaultValues || (o = c), !i.keepValues) {
|
|
@@ -1226,15 +1227,15 @@ function Lr(e = {}) {
|
|
|
1226
1227
|
for (const C of Array.from(g))
|
|
1227
1228
|
h(t.dirtyFields, C) ? k(f, C, h(n, C)) : Z(C, h(f, C));
|
|
1228
1229
|
} else {
|
|
1229
|
-
if (
|
|
1230
|
+
if (Ue && T(s))
|
|
1230
1231
|
for (const g of d.mount) {
|
|
1231
1232
|
const C = h(l, g);
|
|
1232
1233
|
if (C && C._f) {
|
|
1233
1234
|
const L = Array.isArray(C._f.refs) ? C._f.refs[0] : C._f.ref;
|
|
1234
1235
|
if (Fe(L)) {
|
|
1235
|
-
const
|
|
1236
|
-
if (
|
|
1237
|
-
|
|
1236
|
+
const G = L.closest("form");
|
|
1237
|
+
if (G) {
|
|
1238
|
+
G.reset();
|
|
1238
1239
|
break;
|
|
1239
1240
|
}
|
|
1240
1241
|
}
|
|
@@ -1282,18 +1283,18 @@ function Lr(e = {}) {
|
|
|
1282
1283
|
control: {
|
|
1283
1284
|
register: Be,
|
|
1284
1285
|
unregister: Me,
|
|
1285
|
-
getFieldState:
|
|
1286
|
-
handleSubmit:
|
|
1287
|
-
setError:
|
|
1286
|
+
getFieldState: We,
|
|
1287
|
+
handleSubmit: Qe,
|
|
1288
|
+
setError: ze,
|
|
1288
1289
|
_subscribe: Ke,
|
|
1289
1290
|
_runSchema: ce,
|
|
1290
1291
|
_focusError: Ie,
|
|
1291
1292
|
_getWatch: v,
|
|
1292
|
-
_getDirty:
|
|
1293
|
+
_getDirty: J,
|
|
1293
1294
|
_setValid: E,
|
|
1294
1295
|
_setFieldArray: De,
|
|
1295
|
-
_setDisabledField:
|
|
1296
|
-
_setErrors:
|
|
1296
|
+
_setDisabledField: Xe,
|
|
1297
|
+
_setErrors: se,
|
|
1297
1298
|
_getFieldArray: N,
|
|
1298
1299
|
_reset: Ye,
|
|
1299
1300
|
_resetDefaultValues: () => Q(r.defaultValues) && r.defaultValues().then((s) => {
|
|
@@ -1342,7 +1343,7 @@ function Lr(e = {}) {
|
|
|
1342
1343
|
subscribe: Tt,
|
|
1343
1344
|
trigger: he,
|
|
1344
1345
|
register: Be,
|
|
1345
|
-
handleSubmit:
|
|
1346
|
+
handleSubmit: Qe,
|
|
1346
1347
|
watch: Dt,
|
|
1347
1348
|
setValue: Z,
|
|
1348
1349
|
getValues: Ne,
|
|
@@ -1350,9 +1351,9 @@ function Lr(e = {}) {
|
|
|
1350
1351
|
resetField: Bt,
|
|
1351
1352
|
clearErrors: St,
|
|
1352
1353
|
unregister: Me,
|
|
1353
|
-
setError:
|
|
1354
|
+
setError: ze,
|
|
1354
1355
|
setFocus: It,
|
|
1355
|
-
getFieldState:
|
|
1356
|
+
getFieldState: We
|
|
1356
1357
|
};
|
|
1357
1358
|
return {
|
|
1358
1359
|
...qe,
|
|
@@ -1360,7 +1361,7 @@ function Lr(e = {}) {
|
|
|
1360
1361
|
};
|
|
1361
1362
|
}
|
|
1362
1363
|
function kr(e = {}) {
|
|
1363
|
-
const r =
|
|
1364
|
+
const r = W.useRef(void 0), t = W.useRef(void 0), [l, o] = W.useState({
|
|
1364
1365
|
isDirty: !1,
|
|
1365
1366
|
isValidating: !1,
|
|
1366
1367
|
isLoading: Q(e.defaultValues),
|
|
@@ -1401,29 +1402,29 @@ function kr(e = {}) {
|
|
|
1401
1402
|
...d,
|
|
1402
1403
|
isReady: !0
|
|
1403
1404
|
})), n._formState.isReady = !0, u;
|
|
1404
|
-
}, [n]),
|
|
1405
|
+
}, [n]), W.useEffect(() => n._disableForm(e.disabled), [n, e.disabled]), W.useEffect(() => {
|
|
1405
1406
|
e.mode && (n._options.mode = e.mode), e.reValidateMode && (n._options.reValidateMode = e.reValidateMode);
|
|
1406
|
-
}, [n, e.mode, e.reValidateMode]),
|
|
1407
|
+
}, [n, e.mode, e.reValidateMode]), W.useEffect(() => {
|
|
1407
1408
|
e.errors && (n._setErrors(e.errors), n._focusError());
|
|
1408
|
-
}, [n, e.errors]),
|
|
1409
|
+
}, [n, e.errors]), W.useEffect(() => {
|
|
1409
1410
|
e.shouldUnregister && n._subjects.state.next({
|
|
1410
1411
|
values: n._getWatch()
|
|
1411
1412
|
});
|
|
1412
|
-
}, [n, e.shouldUnregister]),
|
|
1413
|
+
}, [n, e.shouldUnregister]), W.useEffect(() => {
|
|
1413
1414
|
if (n._proxyFormState.isDirty) {
|
|
1414
1415
|
const u = n._getDirty();
|
|
1415
1416
|
u !== l.isDirty && n._subjects.state.next({
|
|
1416
1417
|
isDirty: u
|
|
1417
1418
|
});
|
|
1418
1419
|
}
|
|
1419
|
-
}, [n, l.isDirty]),
|
|
1420
|
+
}, [n, l.isDirty]), W.useEffect(() => {
|
|
1420
1421
|
e.values && !fe(e.values, t.current) ? (n._reset(e.values, n._options.resetOptions), t.current = e.values, o((u) => ({ ...u }))) : n._resetDefaultValues();
|
|
1421
|
-
}, [n, e.values]),
|
|
1422
|
+
}, [n, e.values]), W.useEffect(() => {
|
|
1422
1423
|
n._state.mount || (n._setValid(), n._state.mount = !0), n._state.watch && (n._state.watch = !1, n._subjects.state.next({ ...n._formState })), n._removeUnmounted();
|
|
1423
1424
|
}), r.current.formState = dr(l, n), r.current;
|
|
1424
1425
|
}
|
|
1425
1426
|
const Fr = ({ faqId: e, percent: r }) => {
|
|
1426
|
-
const [t, l] =
|
|
1427
|
+
const [t, l] = Ut(!1), o = kr({
|
|
1427
1428
|
defaultValues: {
|
|
1428
1429
|
faq: e
|
|
1429
1430
|
}
|
|
@@ -1445,10 +1446,10 @@ const Fr = ({ faqId: e, percent: r }) => {
|
|
|
1445
1446
|
] }),
|
|
1446
1447
|
/* @__PURE__ */ b("div", { className: "flex items-center gap-4 w-full max-tablet::pt-4", children: [
|
|
1447
1448
|
/* @__PURE__ */ a(
|
|
1448
|
-
|
|
1449
|
+
O,
|
|
1449
1450
|
{
|
|
1450
|
-
size:
|
|
1451
|
-
variant:
|
|
1451
|
+
size: te.M,
|
|
1452
|
+
variant: I.Secondary,
|
|
1452
1453
|
className: "w-[125px]",
|
|
1453
1454
|
disabled: t,
|
|
1454
1455
|
onClick: () => F("yes"),
|
|
@@ -1457,10 +1458,10 @@ const Fr = ({ faqId: e, percent: r }) => {
|
|
|
1457
1458
|
}
|
|
1458
1459
|
),
|
|
1459
1460
|
/* @__PURE__ */ a(
|
|
1460
|
-
|
|
1461
|
+
O,
|
|
1461
1462
|
{
|
|
1462
|
-
size:
|
|
1463
|
-
variant:
|
|
1463
|
+
size: te.M,
|
|
1464
|
+
variant: I.Secondary,
|
|
1464
1465
|
className: "w-[125px]",
|
|
1465
1466
|
disabled: t,
|
|
1466
1467
|
onClick: () => F("no"),
|
|
@@ -1505,7 +1506,7 @@ const Sr = ["title", "cards", "button"], Dr = ({
|
|
|
1505
1506
|
}) => /* @__PURE__ */ b($, { className: "flex flex-col items-center", children: [
|
|
1506
1507
|
e && /* @__PURE__ */ a("p", { className: "text-[44px] leading-[54px] font-bold text-center mb-[48px]", children: e }),
|
|
1507
1508
|
/* @__PURE__ */ a("div", { className: "flex items-stretch gap-[24px]", children: r == null ? void 0 : r.map((l) => /* @__PURE__ */ a(
|
|
1508
|
-
|
|
1509
|
+
Gt,
|
|
1509
1510
|
{
|
|
1510
1511
|
data: l
|
|
1511
1512
|
},
|
|
@@ -1517,7 +1518,7 @@ const Sr = ["title", "cards", "button"], Dr = ({
|
|
|
1517
1518
|
href: t == null ? void 0 : t.link,
|
|
1518
1519
|
target: "_blank",
|
|
1519
1520
|
className: "mt-[24px]",
|
|
1520
|
-
children: /* @__PURE__ */ a(
|
|
1521
|
+
children: /* @__PURE__ */ a(O, { children: t == null ? void 0 : t.text })
|
|
1521
1522
|
}
|
|
1522
1523
|
)
|
|
1523
1524
|
] });
|
|
@@ -1542,7 +1543,7 @@ const Tr = ["item"], At = ({ item: e }) => {
|
|
|
1542
1543
|
{
|
|
1543
1544
|
href: (t = e == null ? void 0 : e.button) == null ? void 0 : t.button_link,
|
|
1544
1545
|
className: "mt-[24px]",
|
|
1545
|
-
children: /* @__PURE__ */ a(
|
|
1546
|
+
children: /* @__PURE__ */ a(O, { variant: I.SecondaryBlue, children: (l = e == null ? void 0 : e.button) == null ? void 0 : l.button_text })
|
|
1546
1547
|
}
|
|
1547
1548
|
)
|
|
1548
1549
|
] })
|
|
@@ -1564,7 +1565,7 @@ const Mr = ["title", "cards", "button_link", "button_text", "grid"], Br = ({
|
|
|
1564
1565
|
href: t,
|
|
1565
1566
|
target: "_blank",
|
|
1566
1567
|
className: "mt-[24px]",
|
|
1567
|
-
children: /* @__PURE__ */ a(
|
|
1568
|
+
children: /* @__PURE__ */ a(O, { children: l })
|
|
1568
1569
|
}
|
|
1569
1570
|
)
|
|
1570
1571
|
] });
|
|
@@ -1712,7 +1713,7 @@ const Ir = ({ size: e, ...r }) => /* @__PURE__ */ b(
|
|
|
1712
1713
|
}
|
|
1713
1714
|
)
|
|
1714
1715
|
}
|
|
1715
|
-
),
|
|
1716
|
+
), Pr = ({ size: e, ...r }) => /* @__PURE__ */ a(
|
|
1716
1717
|
"svg",
|
|
1717
1718
|
{
|
|
1718
1719
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1732,10 +1733,10 @@ const Ir = ({ size: e, ...r }) => /* @__PURE__ */ b(
|
|
|
1732
1733
|
), bt = {
|
|
1733
1734
|
infoDark: Hr,
|
|
1734
1735
|
infoCrown: Ir,
|
|
1735
|
-
infoLight:
|
|
1736
|
+
infoLight: Pr,
|
|
1736
1737
|
download: Or,
|
|
1737
1738
|
file: Rr
|
|
1738
|
-
},
|
|
1739
|
+
}, Ur = {
|
|
1739
1740
|
sm: 12,
|
|
1740
1741
|
mx: 16,
|
|
1741
1742
|
lx: 20,
|
|
@@ -1747,7 +1748,7 @@ const Ir = ({ size: e, ...r }) => /* @__PURE__ */ b(
|
|
|
1747
1748
|
size: t = "sm",
|
|
1748
1749
|
...l
|
|
1749
1750
|
}) => bt[e] && bt[e]({
|
|
1750
|
-
size: typeof t == "string" ?
|
|
1751
|
+
size: typeof t == "string" ? Ur[t] : t,
|
|
1751
1752
|
color: r,
|
|
1752
1753
|
name: e,
|
|
1753
1754
|
...l
|
|
@@ -1789,12 +1790,12 @@ const Ir = ({ size: e, ...r }) => /* @__PURE__ */ b(
|
|
|
1789
1790
|
)
|
|
1790
1791
|
] })
|
|
1791
1792
|
] }),
|
|
1792
|
-
/* @__PURE__ */ a(
|
|
1793
|
+
/* @__PURE__ */ a(O, { variant: I.Static, children: t })
|
|
1793
1794
|
] })
|
|
1794
1795
|
}
|
|
1795
1796
|
) });
|
|
1796
1797
|
jr.propsToEdit = Zr;
|
|
1797
|
-
const $r = ["data"],
|
|
1798
|
+
const $r = ["data"], Gr = ({
|
|
1798
1799
|
id: e,
|
|
1799
1800
|
title: r,
|
|
1800
1801
|
text: t,
|
|
@@ -1804,7 +1805,7 @@ const $r = ["data"], zr = ({
|
|
|
1804
1805
|
/* @__PURE__ */ a("p", { className: "text-[32px] leading-10 font-bold mb-4", children: r }),
|
|
1805
1806
|
/* @__PURE__ */ a("p", { className: "text-[16px] leading-6", children: t }),
|
|
1806
1807
|
/* @__PURE__ */ a("a", { href: l, children: /* @__PURE__ */ a(
|
|
1807
|
-
|
|
1808
|
+
O,
|
|
1808
1809
|
{
|
|
1809
1810
|
iconRight: /* @__PURE__ */ a(
|
|
1810
1811
|
ae,
|
|
@@ -1829,8 +1830,8 @@ const $r = ["data"], zr = ({
|
|
|
1829
1830
|
}
|
|
1830
1831
|
)
|
|
1831
1832
|
] }) });
|
|
1832
|
-
|
|
1833
|
-
const
|
|
1833
|
+
Gr.propsToEdit = $r;
|
|
1834
|
+
const Wr = ["data"], zr = ({ data: e }) => /* @__PURE__ */ a($, { children: /* @__PURE__ */ a("div", { className: "flex flex-col gap-2", children: e == null ? void 0 : e.map((r) => /* @__PURE__ */ b("div", { className: "px-[48px] py-8 bg-white rounded-[20px] flex justify-between items-center gap-[64px]", children: [
|
|
1834
1835
|
/* @__PURE__ */ b("div", { className: "flex items-center gap-4 max-tablet:flex-col max-tablet:items-start", children: [
|
|
1835
1836
|
/* @__PURE__ */ a(
|
|
1836
1837
|
ae,
|
|
@@ -1847,9 +1848,9 @@ const Gr = ["data"], Wr = ({ data: e }) => /* @__PURE__ */ a($, { children: /* @
|
|
|
1847
1848
|
] })
|
|
1848
1849
|
] }),
|
|
1849
1850
|
/* @__PURE__ */ a(
|
|
1850
|
-
|
|
1851
|
+
O,
|
|
1851
1852
|
{
|
|
1852
|
-
variant:
|
|
1853
|
+
variant: I.Secondary,
|
|
1853
1854
|
iconRight: /* @__PURE__ */ a(
|
|
1854
1855
|
ae,
|
|
1855
1856
|
{
|
|
@@ -1861,8 +1862,8 @@ const Gr = ["data"], Wr = ({ data: e }) => /* @__PURE__ */ a($, { children: /* @
|
|
|
1861
1862
|
}
|
|
1862
1863
|
)
|
|
1863
1864
|
] })) }) });
|
|
1864
|
-
|
|
1865
|
-
const Kr = ["data"],
|
|
1865
|
+
zr.propsToEdit = Wr;
|
|
1866
|
+
const Kr = ["data"], Xr = ({ data: e }) => /* @__PURE__ */ a($, { children: /* @__PURE__ */ a("div", { className: "grid grid-cols-2 gap-6 max-tablet:grid-cols-1", children: e == null ? void 0 : e.map((r) => /* @__PURE__ */ b(
|
|
1866
1867
|
"div",
|
|
1867
1868
|
{
|
|
1868
1869
|
className: "p-[32px] bg-white rounded-[20px] flex justify-between gap-[40px]",
|
|
@@ -1871,7 +1872,7 @@ const Kr = ["data"], Qr = ({ data: e }) => /* @__PURE__ */ a($, { children: /* @
|
|
|
1871
1872
|
/* @__PURE__ */ a("p", { className: "text-[24px] leading-8 font-bold mb-4", children: r == null ? void 0 : r.title }),
|
|
1872
1873
|
/* @__PURE__ */ a("p", { className: "text-[16px] leading-6", children: r == null ? void 0 : r.text }),
|
|
1873
1874
|
/* @__PURE__ */ a(
|
|
1874
|
-
|
|
1875
|
+
O,
|
|
1875
1876
|
{
|
|
1876
1877
|
iconRight: /* @__PURE__ */ a(
|
|
1877
1878
|
ae,
|
|
@@ -1882,7 +1883,7 @@ const Kr = ["data"], Qr = ({ data: e }) => /* @__PURE__ */ a($, { children: /* @
|
|
|
1882
1883
|
}
|
|
1883
1884
|
),
|
|
1884
1885
|
className: "mt-8",
|
|
1885
|
-
variant:
|
|
1886
|
+
variant: I.Secondary,
|
|
1886
1887
|
children: "Скачать"
|
|
1887
1888
|
}
|
|
1888
1889
|
)
|
|
@@ -1900,8 +1901,8 @@ const Kr = ["data"], Qr = ({ data: e }) => /* @__PURE__ */ a($, { children: /* @
|
|
|
1900
1901
|
},
|
|
1901
1902
|
r == null ? void 0 : r.id
|
|
1902
1903
|
)) }) });
|
|
1903
|
-
|
|
1904
|
-
const
|
|
1904
|
+
Xr.propsToEdit = Kr;
|
|
1905
|
+
const Qr = ["data"], Yr = ({ data: e }) => /* @__PURE__ */ a($, { children: /* @__PURE__ */ a("div", { className: "grid grid-cols-4 gap-6 max-tablet:grid-cols-1", children: e == null ? void 0 : e.map((r) => /* @__PURE__ */ b(
|
|
1905
1906
|
"div",
|
|
1906
1907
|
{
|
|
1907
1908
|
className: "p-[24px] bg-white rounded-[20px] flex flex-col gap-8",
|
|
@@ -1919,7 +1920,7 @@ const Xr = ["data"], Yr = ({ data: e }) => /* @__PURE__ */ a($, { children: /* @
|
|
|
1919
1920
|
/* @__PURE__ */ a("p", { className: "text-[16px] leading-6", children: r == null ? void 0 : r.text })
|
|
1920
1921
|
] }),
|
|
1921
1922
|
/* @__PURE__ */ a(
|
|
1922
|
-
|
|
1923
|
+
O,
|
|
1923
1924
|
{
|
|
1924
1925
|
iconRight: /* @__PURE__ */ a(
|
|
1925
1926
|
ae,
|
|
@@ -1930,7 +1931,7 @@ const Xr = ["data"], Yr = ({ data: e }) => /* @__PURE__ */ a($, { children: /* @
|
|
|
1930
1931
|
}
|
|
1931
1932
|
),
|
|
1932
1933
|
className: "w-full",
|
|
1933
|
-
variant:
|
|
1934
|
+
variant: I.Secondary,
|
|
1934
1935
|
children: "Скачать"
|
|
1935
1936
|
}
|
|
1936
1937
|
)
|
|
@@ -1938,7 +1939,7 @@ const Xr = ["data"], Yr = ({ data: e }) => /* @__PURE__ */ a($, { children: /* @
|
|
|
1938
1939
|
},
|
|
1939
1940
|
r == null ? void 0 : r.id
|
|
1940
1941
|
)) }) });
|
|
1941
|
-
Yr.propsToEdit =
|
|
1942
|
+
Yr.propsToEdit = Qr;
|
|
1942
1943
|
const Jr = ({ data: e, className: r }) => {
|
|
1943
1944
|
var t;
|
|
1944
1945
|
return /* @__PURE__ */ b(
|
|
@@ -2030,10 +2031,10 @@ const Jr = ({ data: e, className: r }) => {
|
|
|
2030
2031
|
href: e == null ? void 0 : e.necessary_button_link,
|
|
2031
2032
|
target: "_blank",
|
|
2032
2033
|
children: /* @__PURE__ */ a(
|
|
2033
|
-
|
|
2034
|
+
O,
|
|
2034
2035
|
{
|
|
2035
|
-
variant:
|
|
2036
|
-
size:
|
|
2036
|
+
variant: I.Static,
|
|
2037
|
+
size: te.L,
|
|
2037
2038
|
className: "text-[15px] font-medium leading-[24px] px-[16px] py-[8px] rounded-[8px] bg-[#FDDB2B] text-black border-none cursor-pointer transition-colors duration-300 hover:bg-[#F7C21C] max-tablet:w-full max-tablet:h-[56px]",
|
|
2038
2039
|
children: e == null ? void 0 : e.necessary_button_text
|
|
2039
2040
|
}
|
|
@@ -2083,24 +2084,26 @@ const Jr = ({ data: e, className: r }) => {
|
|
|
2083
2084
|
);
|
|
2084
2085
|
es.displayName = "CardInfoTable";
|
|
2085
2086
|
export {
|
|
2086
|
-
|
|
2087
|
+
zt as B,
|
|
2087
2088
|
tr as C,
|
|
2088
|
-
|
|
2089
|
+
Gr as D,
|
|
2089
2090
|
Ar as F,
|
|
2090
2091
|
Dr as I,
|
|
2091
2092
|
lr as M,
|
|
2092
2093
|
Br as P,
|
|
2093
|
-
|
|
2094
|
+
Xt as S,
|
|
2094
2095
|
jr as W,
|
|
2095
2096
|
Jt as a,
|
|
2096
|
-
|
|
2097
|
-
|
|
2097
|
+
Xr as b,
|
|
2098
|
+
zr as c,
|
|
2098
2099
|
Yr as d,
|
|
2099
2100
|
es as e,
|
|
2100
2101
|
I as f,
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2102
|
+
O as g,
|
|
2103
|
+
ae as h,
|
|
2104
|
+
te as i,
|
|
2105
|
+
wt as j,
|
|
2106
|
+
Fr as k,
|
|
2107
|
+
At as l,
|
|
2108
|
+
vt as m
|
|
2106
2109
|
};
|