mimir-ui-kit 1.65.5 → 1.65.7
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/components/AnchorLink/Link.js +18 -18
- package/dist/components/OtpInput/OtpInput.d.ts +4 -0
- package/dist/components/OtpInput/OtpInput.js +44 -37
- package/dist/components/OtpInput/utils.d.ts +2 -0
- package/dist/components/OtpInput/utils.js +9 -0
- package/dist/components/Slider/Slider.d.ts +5 -1
- package/dist/components/Slider/Slider.js +100 -99
- package/dist/components/UploaderFiles/UploaderFiles.js +33 -31
- package/dist/components/UploaderFiles/types.d.ts +1 -0
- package/dist/components/UploaderPhotos/UploaderPhotos.d.ts +1 -0
- package/dist/components/UploaderPhotos/UploaderPhotos.js +32 -30
- package/dist/icons/Icon.js +1 -1
- package/dist/icons/components/16px/Like16px.js +30 -0
- package/dist/icons/components/index.js +400 -399
- package/dist/{index-CQCTAWGm.js → index-BBLWWBmN.js} +1115 -1109
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as k, jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as o } from "../../index-DIxK0V-G.js";
|
|
3
3
|
import { forwardRef as x } from "react";
|
|
4
|
-
import { ELinkSize as L, ELinkVariant as
|
|
5
|
-
import { Icon as
|
|
6
|
-
import '../../assets/Link.css';const
|
|
7
|
-
link:
|
|
4
|
+
import { ELinkSize as L, ELinkVariant as I } from "./constants.js";
|
|
5
|
+
import { Icon as t } from "../../icons/Icon.js";
|
|
6
|
+
import '../../assets/Link.css';const g = "_link_1bc9a_2", j = "_sample_1bc9a_20", u = "_anchor_1bc9a_24", z = "_disabled_1bc9a_28", C = "_icon_1bc9a_38", E = "_xs_1bc9a_47", R = "_s_1bc9a_20", v = "_m_1bc9a_59", w = "_l_1bc9a_2", s = {
|
|
7
|
+
link: g,
|
|
8
8
|
sample: j,
|
|
9
9
|
anchor: u,
|
|
10
10
|
disabled: z,
|
|
@@ -14,24 +14,24 @@ import '../../assets/Link.css';const I = "_link_1bc9a_2", j = "_sample_1bc9a_20"
|
|
|
14
14
|
m: v,
|
|
15
15
|
l: w
|
|
16
16
|
}, V = x(
|
|
17
|
-
(
|
|
17
|
+
(i, e) => {
|
|
18
18
|
const {
|
|
19
|
-
as:
|
|
19
|
+
as: l = "button",
|
|
20
20
|
disabled: r,
|
|
21
21
|
leftIcon: c,
|
|
22
22
|
children: _,
|
|
23
|
-
rightIcon:
|
|
23
|
+
rightIcon: a,
|
|
24
24
|
className: m,
|
|
25
25
|
size: b = L.L,
|
|
26
|
-
variant: d =
|
|
26
|
+
variant: d = I.ANCHOR,
|
|
27
27
|
rel: p,
|
|
28
28
|
target: f,
|
|
29
29
|
...N
|
|
30
|
-
} =
|
|
30
|
+
} = i, h = o(s.link, m, s[d], s[b], {
|
|
31
31
|
[s.disabled]: r
|
|
32
32
|
});
|
|
33
|
-
return
|
|
34
|
-
|
|
33
|
+
return /* @__PURE__ */ k(
|
|
34
|
+
l,
|
|
35
35
|
{
|
|
36
36
|
ref: e,
|
|
37
37
|
className: h,
|
|
@@ -40,18 +40,18 @@ import '../../assets/Link.css';const I = "_link_1bc9a_2", j = "_sample_1bc9a_20"
|
|
|
40
40
|
...N,
|
|
41
41
|
children: [
|
|
42
42
|
c && /* @__PURE__ */ n(
|
|
43
|
-
|
|
43
|
+
t,
|
|
44
44
|
{
|
|
45
45
|
...c,
|
|
46
|
-
className:
|
|
46
|
+
className: o(s.icon, c.className)
|
|
47
47
|
}
|
|
48
48
|
),
|
|
49
49
|
_,
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
a && /* @__PURE__ */ n(
|
|
51
|
+
t,
|
|
52
52
|
{
|
|
53
|
-
...
|
|
54
|
-
className:
|
|
53
|
+
...a,
|
|
54
|
+
className: o(s.icon, a.className)
|
|
55
55
|
}
|
|
56
56
|
)
|
|
57
57
|
]
|
|
@@ -20,4 +20,8 @@ export declare const OtpInput: import('react').ForwardRefExoticComponent<Omit<TI
|
|
|
20
20
|
* Флаг, показывающий нужно ли отображать разделитель между вводами.
|
|
21
21
|
*/
|
|
22
22
|
needSeparator?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Позиции полей, после которых отображаются разделители.
|
|
25
|
+
*/
|
|
26
|
+
separatorPositions?: number[];
|
|
23
27
|
} & import('react').RefAttributes<unknown>>;
|
|
@@ -1,62 +1,69 @@
|
|
|
1
|
-
import { jsx as r, jsxs as
|
|
1
|
+
import { jsx as r, jsxs as v } from "react/jsx-runtime";
|
|
2
2
|
import { c as u } from "../../index-DIxK0V-G.js";
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import {
|
|
5
|
-
import { useOTPInput as
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
|
|
3
|
+
import { forwardRef as R, useImperativeHandle as T, Fragment as y } from "react";
|
|
4
|
+
import { DEFAULT_VALUE_LENGTH as z, ITEMS_PER_SEPARATOR as A } from "./constants.js";
|
|
5
|
+
import { useOTPInput as C } from "./hooks.js";
|
|
6
|
+
import { getValidSeparatorPositions as D, getDefaultSeparatorPositions as F } from "./utils.js";
|
|
7
|
+
import { I as L } from "../../Input-JwHUiwVK.js";
|
|
8
|
+
import '../../assets/OtpInput.css';const O = "_otp_1ncuz_2", j = "_input_1ncuz_13", x = "_separator_1ncuz_27", o = {
|
|
9
|
+
otp: O,
|
|
9
10
|
"input-wrapper": "_input-wrapper_1ncuz_13",
|
|
10
|
-
input:
|
|
11
|
-
separator:
|
|
12
|
-
},
|
|
11
|
+
input: j,
|
|
12
|
+
separator: x
|
|
13
|
+
}, H = R(
|
|
13
14
|
({
|
|
14
15
|
value: c = "",
|
|
15
|
-
valueLength:
|
|
16
|
-
needSeparator:
|
|
17
|
-
onChange:
|
|
18
|
-
className:
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
valueLength: i = z,
|
|
17
|
+
needSeparator: m = !0,
|
|
18
|
+
onChange: l,
|
|
19
|
+
className: d,
|
|
20
|
+
separatorPositions: _,
|
|
21
|
+
...f
|
|
22
|
+
}, h) => {
|
|
21
23
|
const {
|
|
22
|
-
data: { inputRefs:
|
|
23
|
-
handlers: { handleChange:
|
|
24
|
-
} =
|
|
25
|
-
onChange:
|
|
24
|
+
data: { inputRefs: s, valueItems: n },
|
|
25
|
+
handlers: { handleChange: g, handleFocus: I, handleKeyDown: P, handlePaste: w }
|
|
26
|
+
} = C({
|
|
27
|
+
onChange: l,
|
|
26
28
|
value: c,
|
|
27
|
-
valueLength:
|
|
29
|
+
valueLength: i
|
|
28
30
|
});
|
|
29
|
-
|
|
31
|
+
T(h, () => ({
|
|
30
32
|
focus: () => {
|
|
31
33
|
var a;
|
|
32
|
-
(a =
|
|
34
|
+
(a = s.current[0]) == null || a.focus();
|
|
33
35
|
}
|
|
34
|
-
}))
|
|
35
|
-
|
|
36
|
-
|
|
36
|
+
}));
|
|
37
|
+
const p = D(
|
|
38
|
+
_,
|
|
39
|
+
n.length
|
|
40
|
+
), N = p.length ? p : F(n.length, A);
|
|
41
|
+
return /* @__PURE__ */ r("div", { className: u(o.otp, d), children: n.map((a, e) => {
|
|
42
|
+
const S = e + 1, E = m && N.includes(S);
|
|
43
|
+
return /* @__PURE__ */ v(y, { children: [
|
|
37
44
|
/* @__PURE__ */ r(
|
|
38
|
-
|
|
45
|
+
L,
|
|
39
46
|
{
|
|
40
|
-
ref: (t) =>
|
|
47
|
+
ref: (t) => s.current[e] = t,
|
|
41
48
|
type: "text",
|
|
42
49
|
inputMode: "numeric",
|
|
43
50
|
autoComplete: "one-time-code",
|
|
44
51
|
pattern: "\\d{1}",
|
|
45
52
|
maxLength: 1,
|
|
46
53
|
value: a,
|
|
47
|
-
className:
|
|
48
|
-
wrapperClassName:
|
|
49
|
-
onChange: (t) =>
|
|
50
|
-
onKeyDown: (t) =>
|
|
54
|
+
className: o.input,
|
|
55
|
+
wrapperClassName: o["input-wrapper"],
|
|
56
|
+
onChange: (t) => g(t, e),
|
|
57
|
+
onKeyDown: (t) => P(t, e),
|
|
51
58
|
onFocus: (t) => I(t, e),
|
|
52
|
-
onPaste:
|
|
53
|
-
...
|
|
59
|
+
onPaste: w,
|
|
60
|
+
...f
|
|
54
61
|
}
|
|
55
62
|
),
|
|
56
63
|
E && /* @__PURE__ */ r(
|
|
57
64
|
"span",
|
|
58
65
|
{
|
|
59
|
-
className: u(
|
|
66
|
+
className: u(o.separator),
|
|
60
67
|
"data-testid": "separator"
|
|
61
68
|
}
|
|
62
69
|
)
|
|
@@ -64,7 +71,7 @@ import '../../assets/OtpInput.css';const C = "_otp_1ncuz_2", F = "_input_1ncuz_1
|
|
|
64
71
|
}) });
|
|
65
72
|
}
|
|
66
73
|
);
|
|
67
|
-
|
|
74
|
+
H.displayName = "OtpInput";
|
|
68
75
|
export {
|
|
69
|
-
|
|
76
|
+
H as OtpInput
|
|
70
77
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const f = (e, t) => Array.isArray(e) ? e.filter(
|
|
2
|
+
(r) => typeof r == "number" && Number.isInteger(r) && r > 0 && r < t
|
|
3
|
+
) : [], l = (e, t) => Array.from({ length: e }, (r, a) => a + 1).filter(
|
|
4
|
+
(r) => r % t === 0 && r !== e
|
|
5
|
+
);
|
|
6
|
+
export {
|
|
7
|
+
l as getDefaultSeparatorPositions,
|
|
8
|
+
f as getValidSeparatorPositions
|
|
9
|
+
};
|
|
@@ -27,6 +27,10 @@ type TProps = SwiperProps & {
|
|
|
27
27
|
* Показывать стрелки навигации и количество слайдов.
|
|
28
28
|
*/
|
|
29
29
|
needNavigation?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Показывать количество слайдов.
|
|
32
|
+
*/
|
|
33
|
+
needSlidesCount?: boolean;
|
|
30
34
|
/**
|
|
31
35
|
* Приостанавливать автопрокрутку при наведении на слайдер.
|
|
32
36
|
*/
|
|
@@ -92,5 +96,5 @@ type TProps = SwiperProps & {
|
|
|
92
96
|
*/
|
|
93
97
|
images?: TSlideImage[];
|
|
94
98
|
};
|
|
95
|
-
export default function Slider({ images, children, gap, onSlideClick, swiperClassName, slideClassName, imageClassName, navigationClassName, navigationContent, sliderBottomPanelClassName, descriptionsClassName, navigationContentClassName, buttonsVariant, progressBarPosition, isFullPaginationWidth, needNavigation, leftDescription, rightDescription, delay, pauseOnMouseEnter, ...props }: TProps): import("react/jsx-runtime").JSX.Element;
|
|
99
|
+
export default function Slider({ images, children, gap, onSlideClick, swiperClassName, slideClassName, imageClassName, navigationClassName, navigationContent, sliderBottomPanelClassName, descriptionsClassName, navigationContentClassName, buttonsVariant, progressBarPosition, isFullPaginationWidth, needNavigation, needSlidesCount, leftDescription, rightDescription, delay, pauseOnMouseEnter, ...props }: TProps): import("react/jsx-runtime").JSX.Element;
|
|
96
100
|
export {};
|
|
@@ -1,63 +1,63 @@
|
|
|
1
1
|
import { jsx as s, jsxs as o, Fragment as N } from "react/jsx-runtime";
|
|
2
|
-
import { c as
|
|
3
|
-
import { memo as
|
|
4
|
-
import { u as
|
|
5
|
-
import { EProgressBarPosition as
|
|
6
|
-
import { formatSlideNumber as
|
|
7
|
-
import { AppImage as
|
|
8
|
-
import { MergedButton as
|
|
9
|
-
import '../../assets/Slider.css';const ne = "_swiper_zqjj3_2",
|
|
2
|
+
import { c as n } from "../../index-DIxK0V-G.js";
|
|
3
|
+
import { memo as L, useCallback as u, useMemo as V, forwardRef as W, useRef as I, useState as ee, Children as T } from "react";
|
|
4
|
+
import { u as se, S as te, A as re, a as O } from "../../swiper-react-BvAw14a4.js";
|
|
5
|
+
import { EProgressBarPosition as b } from "./constants.js";
|
|
6
|
+
import { formatSlideNumber as P } from "./utils.js";
|
|
7
|
+
import { AppImage as E } from "../Image/Image.js";
|
|
8
|
+
import { MergedButton as ae } from "../MergedButton/MergedButton.js";
|
|
9
|
+
import '../../assets/Slider.css';const ne = "_swiper_zqjj3_2", oe = "_slide_zqjj3_8", ie = "_link_zqjj3_15", le = "_image_zqjj3_21", ce = "_navigation_zqjj3_28", de = "_pagination_zqjj3_46", pe = "_slides_zqjj3_65", ue = "_separator_zqjj3_71", me = "_progress_zqjj3_78", _e = "_descriptions_zqjj3_95", e = {
|
|
10
10
|
swiper: ne,
|
|
11
|
-
slide:
|
|
12
|
-
link:
|
|
13
|
-
image:
|
|
14
|
-
navigation:
|
|
11
|
+
slide: oe,
|
|
12
|
+
link: ie,
|
|
13
|
+
image: le,
|
|
14
|
+
navigation: ce,
|
|
15
15
|
"navigation-content": "_navigation-content_zqjj3_37",
|
|
16
|
-
pagination:
|
|
16
|
+
pagination: de,
|
|
17
17
|
"is-full": "_is-full_zqjj3_60",
|
|
18
|
-
slides:
|
|
19
|
-
separator:
|
|
20
|
-
progress:
|
|
18
|
+
slides: pe,
|
|
19
|
+
separator: ue,
|
|
20
|
+
progress: me,
|
|
21
21
|
"progress-bar-bottom": "_progress-bar-bottom_zqjj3_85",
|
|
22
22
|
"progress-bar": "_progress-bar_zqjj3_85",
|
|
23
|
-
descriptions:
|
|
24
|
-
},
|
|
23
|
+
descriptions: _e
|
|
24
|
+
}, fe = 15e3, F = L(
|
|
25
25
|
({
|
|
26
|
-
variant:
|
|
26
|
+
variant: r = "white"
|
|
27
27
|
}) => {
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
}, [
|
|
31
|
-
|
|
32
|
-
}, [
|
|
28
|
+
const a = se(), p = u(() => {
|
|
29
|
+
a.slideNext();
|
|
30
|
+
}, [a]), c = u(() => {
|
|
31
|
+
a.slidePrev();
|
|
32
|
+
}, [a]), m = V(
|
|
33
33
|
() => [
|
|
34
34
|
{
|
|
35
35
|
isIconButton: !0,
|
|
36
36
|
iconName: "ArrowLeft16px",
|
|
37
|
-
variant:
|
|
37
|
+
variant: r,
|
|
38
38
|
onClick: c
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
isIconButton: !0,
|
|
42
42
|
iconName: "ArrowRight16px",
|
|
43
|
-
variant:
|
|
43
|
+
variant: r,
|
|
44
44
|
onClick: p
|
|
45
45
|
}
|
|
46
46
|
],
|
|
47
|
-
[c,
|
|
47
|
+
[c, r, p]
|
|
48
48
|
);
|
|
49
|
-
return /* @__PURE__ */ s(
|
|
49
|
+
return /* @__PURE__ */ s(ae, { buttons: m });
|
|
50
50
|
}
|
|
51
|
-
),
|
|
52
|
-
|
|
51
|
+
), S = L(
|
|
52
|
+
W((r, a) => /* @__PURE__ */ s(
|
|
53
53
|
"div",
|
|
54
54
|
{
|
|
55
55
|
"data-testid": "progress-bar-wrapper",
|
|
56
|
-
className:
|
|
56
|
+
className: n(e.progress, r == null ? void 0 : r.className),
|
|
57
57
|
children: /* @__PURE__ */ s(
|
|
58
58
|
"div",
|
|
59
59
|
{
|
|
60
|
-
ref:
|
|
60
|
+
ref: a,
|
|
61
61
|
className: e["progress-bar"],
|
|
62
62
|
"data-testid": "progress-bar"
|
|
63
63
|
}
|
|
@@ -65,69 +65,70 @@ import '../../assets/Slider.css';const ne = "_swiper_zqjj3_2", ae = "_slide_zqjj
|
|
|
65
65
|
}
|
|
66
66
|
))
|
|
67
67
|
);
|
|
68
|
-
function
|
|
69
|
-
images:
|
|
70
|
-
children:
|
|
68
|
+
function ve({
|
|
69
|
+
images: r,
|
|
70
|
+
children: a,
|
|
71
71
|
gap: p,
|
|
72
72
|
onSlideClick: c,
|
|
73
73
|
swiperClassName: m,
|
|
74
74
|
slideClassName: q,
|
|
75
75
|
imageClassName: z,
|
|
76
|
-
navigationClassName:
|
|
76
|
+
navigationClassName: M,
|
|
77
77
|
navigationContent: _,
|
|
78
|
-
sliderBottomPanelClassName:
|
|
79
|
-
descriptionsClassName:
|
|
80
|
-
navigationContentClassName:
|
|
78
|
+
sliderBottomPanelClassName: R,
|
|
79
|
+
descriptionsClassName: $,
|
|
80
|
+
navigationContentClassName: D,
|
|
81
81
|
buttonsVariant: v,
|
|
82
82
|
progressBarPosition: f = "top",
|
|
83
83
|
isFullPaginationWidth: k = !1,
|
|
84
84
|
needNavigation: i = !0,
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
85
|
+
needSlidesCount: C = !0,
|
|
86
|
+
leftDescription: y,
|
|
87
|
+
rightDescription: A,
|
|
88
|
+
delay: U = fe,
|
|
89
|
+
pauseOnMouseEnter: Y = !1,
|
|
90
|
+
...G
|
|
90
91
|
}) {
|
|
91
|
-
const d =
|
|
92
|
-
j ?
|
|
93
|
-
),
|
|
92
|
+
const d = I(null), h = I(null), [H, J] = ee(1), j = !(typeof a == "function") && !!a, K = j ? T.count(a) : 0, Q = (r == null ? void 0 : r.length) ?? 0, x = P(H), B = P(
|
|
93
|
+
j ? K : Q
|
|
94
|
+
), X = u(() => {
|
|
94
95
|
if (h.current && i) {
|
|
95
|
-
const
|
|
96
|
-
|
|
96
|
+
const t = h.current.swiper;
|
|
97
|
+
J(t.realIndex + 1);
|
|
97
98
|
}
|
|
98
|
-
}, [i]),
|
|
99
|
-
(
|
|
99
|
+
}, [i]), Z = u(
|
|
100
|
+
(t, l) => {
|
|
100
101
|
if (d.current && i) {
|
|
101
|
-
const g =
|
|
102
|
+
const g = t.params.autoplay.delay, w = l / g * 100;
|
|
102
103
|
d.current.style.width = `${100 - w}%`;
|
|
103
104
|
}
|
|
104
105
|
},
|
|
105
106
|
[i]
|
|
106
107
|
);
|
|
107
108
|
return /* @__PURE__ */ o(
|
|
108
|
-
|
|
109
|
+
te,
|
|
109
110
|
{
|
|
110
|
-
...
|
|
111
|
+
...G,
|
|
111
112
|
ref: h,
|
|
112
|
-
className:
|
|
113
|
+
className: n(e.swiper, m),
|
|
113
114
|
loop: !0,
|
|
114
115
|
spaceBetween: p,
|
|
115
116
|
autoplay: {
|
|
116
|
-
delay:
|
|
117
|
+
delay: U,
|
|
117
118
|
disableOnInteraction: !1,
|
|
118
|
-
pauseOnMouseEnter:
|
|
119
|
+
pauseOnMouseEnter: Y
|
|
119
120
|
},
|
|
120
121
|
fadeEffect: {
|
|
121
122
|
crossFade: !0
|
|
122
123
|
},
|
|
123
124
|
modules: [re],
|
|
124
|
-
onAutoplayTimeLeft:
|
|
125
|
-
onSlideChange:
|
|
125
|
+
onAutoplayTimeLeft: Z,
|
|
126
|
+
onSlideChange: X,
|
|
126
127
|
children: [
|
|
127
128
|
/* @__PURE__ */ s(
|
|
128
129
|
"div",
|
|
129
130
|
{
|
|
130
|
-
className:
|
|
131
|
+
className: n(e.navigation, M, {
|
|
131
132
|
[e["navigation-with-content"]]: !!_
|
|
132
133
|
}),
|
|
133
134
|
slot: "container-start",
|
|
@@ -135,9 +136,9 @@ function ze({
|
|
|
135
136
|
/* @__PURE__ */ o(
|
|
136
137
|
"div",
|
|
137
138
|
{
|
|
138
|
-
className:
|
|
139
|
+
className: n(
|
|
139
140
|
e["navigation-content"],
|
|
140
|
-
|
|
141
|
+
D
|
|
141
142
|
),
|
|
142
143
|
children: [
|
|
143
144
|
_,
|
|
@@ -145,102 +146,102 @@ function ze({
|
|
|
145
146
|
"div",
|
|
146
147
|
{
|
|
147
148
|
"data-testid": "pagination",
|
|
148
|
-
className:
|
|
149
|
+
className: n(e.pagination, {
|
|
149
150
|
[e["is-full"]]: k
|
|
150
151
|
}),
|
|
151
152
|
children: [
|
|
152
|
-
/* @__PURE__ */ o("h2", { className: e.slides, children: [
|
|
153
|
-
|
|
153
|
+
C && /* @__PURE__ */ o("h2", { "data-testid": "slides-count", className: e.slides, children: [
|
|
154
|
+
x,
|
|
154
155
|
/* @__PURE__ */ s("span", { className: e.separator }),
|
|
155
|
-
|
|
156
|
+
B
|
|
156
157
|
] }),
|
|
157
|
-
/* @__PURE__ */ s(
|
|
158
|
+
/* @__PURE__ */ s(F, { variant: v })
|
|
158
159
|
]
|
|
159
160
|
}
|
|
160
161
|
)
|
|
161
162
|
]
|
|
162
163
|
}
|
|
163
164
|
),
|
|
164
|
-
f ===
|
|
165
|
+
f === b.TOP && i && /* @__PURE__ */ s(S, { ref: d })
|
|
165
166
|
] }) : /* @__PURE__ */ s(N, { children: i && /* @__PURE__ */ o(N, { children: [
|
|
166
167
|
/* @__PURE__ */ o(
|
|
167
168
|
"div",
|
|
168
169
|
{
|
|
169
170
|
"data-testid": "pagination",
|
|
170
|
-
className:
|
|
171
|
+
className: n(e.pagination, {
|
|
171
172
|
[e["is-full"]]: k
|
|
172
173
|
}),
|
|
173
174
|
children: [
|
|
174
|
-
/* @__PURE__ */ o("h2", { className: e.slides, children: [
|
|
175
|
-
|
|
175
|
+
C && /* @__PURE__ */ o("h2", { "data-testid": "slides-count", className: e.slides, children: [
|
|
176
|
+
x,
|
|
176
177
|
/* @__PURE__ */ s("span", { className: e.separator }),
|
|
177
|
-
|
|
178
|
+
B
|
|
178
179
|
] }),
|
|
179
|
-
/* @__PURE__ */ s(
|
|
180
|
+
/* @__PURE__ */ s(F, { variant: v })
|
|
180
181
|
]
|
|
181
182
|
}
|
|
182
183
|
),
|
|
183
|
-
f ===
|
|
184
|
+
f === b.TOP && /* @__PURE__ */ s(S, { ref: d })
|
|
184
185
|
] }) })
|
|
185
186
|
}
|
|
186
187
|
),
|
|
187
|
-
j ?
|
|
188
|
-
|
|
188
|
+
j ? T.map(a, (t, l) => /* @__PURE__ */ s(
|
|
189
|
+
O,
|
|
189
190
|
{
|
|
190
191
|
onClick: c,
|
|
191
192
|
"data-testid": `slide-${l}`,
|
|
192
|
-
className:
|
|
193
|
-
children:
|
|
193
|
+
className: n(e.slide, q),
|
|
194
|
+
children: t
|
|
194
195
|
},
|
|
195
196
|
l
|
|
196
|
-
)) :
|
|
197
|
-
if (!
|
|
197
|
+
)) : r == null ? void 0 : r.map((t, l) => {
|
|
198
|
+
if (!t) return null;
|
|
198
199
|
const g = /* @__PURE__ */ s(
|
|
199
200
|
"a",
|
|
200
201
|
{
|
|
201
202
|
className: e.link,
|
|
202
|
-
href:
|
|
203
|
+
href: t.url,
|
|
203
204
|
rel: "noopener noreferrer",
|
|
204
205
|
target: "_blank",
|
|
205
206
|
children: /* @__PURE__ */ s(
|
|
206
|
-
|
|
207
|
+
E,
|
|
207
208
|
{
|
|
208
|
-
className:
|
|
209
|
-
src:
|
|
209
|
+
className: n(e.image, z),
|
|
210
|
+
src: t.image
|
|
210
211
|
}
|
|
211
212
|
)
|
|
212
213
|
}
|
|
213
|
-
), w = () => typeof
|
|
214
|
-
|
|
214
|
+
), w = () => typeof a == "function" ? a(t) : t.url ? g : /* @__PURE__ */ s(
|
|
215
|
+
E,
|
|
215
216
|
{
|
|
216
|
-
className:
|
|
217
|
-
src:
|
|
218
|
-
desktopImage:
|
|
219
|
-
mobileImage:
|
|
217
|
+
className: n(e.image, z),
|
|
218
|
+
src: t.image,
|
|
219
|
+
desktopImage: t.imageDesktop,
|
|
220
|
+
mobileImage: t.imageMobile
|
|
220
221
|
}
|
|
221
222
|
);
|
|
222
223
|
return /* @__PURE__ */ s(
|
|
223
|
-
|
|
224
|
+
O,
|
|
224
225
|
{
|
|
225
226
|
"data-testid": `slide-${l}`,
|
|
226
227
|
onClick: c,
|
|
227
|
-
className:
|
|
228
|
+
className: n(e.slide, q),
|
|
228
229
|
children: w()
|
|
229
230
|
},
|
|
230
|
-
|
|
231
|
+
t.id
|
|
231
232
|
);
|
|
232
233
|
}),
|
|
233
|
-
f ===
|
|
234
|
+
f === b.BOTTOM && /* @__PURE__ */ o("div", { className: R, children: [
|
|
234
235
|
/* @__PURE__ */ s(
|
|
235
|
-
|
|
236
|
+
S,
|
|
236
237
|
{
|
|
237
238
|
ref: d,
|
|
238
239
|
className: e["progress-bar-bottom"]
|
|
239
240
|
}
|
|
240
241
|
),
|
|
241
|
-
/* @__PURE__ */ o("div", { className:
|
|
242
|
-
|
|
243
|
-
|
|
242
|
+
/* @__PURE__ */ o("div", { className: n(e.descriptions, $), children: [
|
|
243
|
+
y && /* @__PURE__ */ s("div", { "data-testid": "slider-left-description", children: y }),
|
|
244
|
+
A && /* @__PURE__ */ s("div", { "data-testid": "slider-right-description", children: A })
|
|
244
245
|
] })
|
|
245
246
|
] })
|
|
246
247
|
]
|
|
@@ -248,5 +249,5 @@ function ze({
|
|
|
248
249
|
);
|
|
249
250
|
}
|
|
250
251
|
export {
|
|
251
|
-
|
|
252
|
+
ve as default
|
|
252
253
|
};
|