mimir-ui-kit 1.43.1 → 1.43.2
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/assets/Slider.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@font-face{font-family:swiper-icons;src:url(data:application/font-woff;charset=utf-8;base64,\ d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3Bycf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QBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA);font-weight:400;font-style:normal}:root{--swiper-theme-color: #007aff}:host{position:relative;display:block;margin-left:auto;margin-right:auto;z-index:1}.swiper{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:ease;transition-timing-function:initial;transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);box-sizing:content-box}.swiper-android .swiper-slide,.swiper-ios .swiper-slide,.swiper-wrapper{transform:translateZ(0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-cube-shadow{transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper:before{content:"";flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-left:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-top:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper:before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:#00000026}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,#00000080,#0000)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid #007aff;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color: #fff}.swiper-lazy-preloader-black{--swiper-preloader-color: #000}@keyframes swiper-preloader-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.
|
1
|
+
@font-face{font-family:swiper-icons;src:url(data:application/font-woff;charset=utf-8;base64,\ d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+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ZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA);font-weight:400;font-style:normal}:root{--swiper-theme-color: #007aff}:host{position:relative;display:block;margin-left:auto;margin-right:auto;z-index:1}.swiper{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:ease;transition-timing-function:initial;transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);box-sizing:content-box}.swiper-android .swiper-slide,.swiper-ios .swiper-slide,.swiper-wrapper{transform:translateZ(0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-cube-shadow{transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper:before{content:"";flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-left:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-top:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper:before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:#00000026}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,#00000080,#0000)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid #007aff;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color: #fff}.swiper-lazy-preloader-black{--swiper-preloader-color: #000}@keyframes swiper-preloader-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._swiper_zqjj3_2{position:relative;display:flex;flex-direction:column}._slide_zqjj3_8{position:relative;display:flex;align-items:center;justify-content:center}._link_zqjj3_15{display:block;width:100%;height:100%}._image_zqjj3_21{display:block;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}._navigation_zqjj3_28{display:flex;flex-direction:column;align-items:flex-end;-moz-column-gap:var(--mimir-space-2xl);column-gap:var(--mimir-space-2xl)}._navigation_zqjj3_28:not(:last-child){margin-bottom:var(--mimir-space-xs)}._navigation_zqjj3_28 ._navigation-content_zqjj3_37{display:flex;align-self:stretch;justify-content:space-between}._navigation_zqjj3_28 ._navigation-content_zqjj3_37:not(:last-child){margin-bottom:var(--mimir-space-xs)}._pagination_zqjj3_46{display:flex;align-items:center;-moz-column-gap:var(--mimir-space-4xl);column-gap:var(--mimir-space-4xl)}._pagination_zqjj3_46:not(:last-child){margin-bottom:var(--mimir-space-xl)}@media (max-width: 768px){._pagination_zqjj3_46{justify-content:space-between;width:100%}}._pagination_zqjj3_46._is-full_zqjj3_60{justify-content:space-between;width:100%}._slides_zqjj3_65{display:flex;align-items:center;-moz-column-gap:var(--mimir-space-xs);column-gap:var(--mimir-space-xs)}._separator_zqjj3_71{display:block;width:50px;height:1px;background-color:var(--black-100)}._progress_zqjj3_78{position:relative;width:100%;height:2px;overflow:hidden;background-color:var(--black-20)}._progress_zqjj3_78._progress-bar-bottom_zqjj3_85{margin-top:var(--mimir-space-m)}._progress-bar_zqjj3_85{width:0%;height:100%;background-color:var(--sapphire-100)}._descriptions_zqjj3_95{display:flex;justify-content:space-between;margin-top:var(--mimir-space-m)}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { ReactNode } from 'react';
|
2
2
|
import { SwiperProps } from 'swiper/react';
|
3
3
|
import { EProgressBarPosition } from './constants';
|
4
|
+
import { TButtonPropsWithoutStyles } from '../MergedButton';
|
4
5
|
|
5
6
|
export type TSlideImage = {
|
6
7
|
image?: string;
|
@@ -62,6 +63,10 @@ type TProps = SwiperProps & {
|
|
62
63
|
* Дополнительные классы для нижней панели
|
63
64
|
*/
|
64
65
|
sliderBottomPanelClassName?: string;
|
66
|
+
/**
|
67
|
+
* Дополнительные классы для контента панели навигации.
|
68
|
+
*/
|
69
|
+
navigationContentClassName?: string;
|
65
70
|
/**
|
66
71
|
* Дополнительные классы для описания слайдов
|
67
72
|
*/
|
@@ -70,10 +75,18 @@ type TProps = SwiperProps & {
|
|
70
75
|
* Контент для слайдера.
|
71
76
|
*/
|
72
77
|
children?: ReactNode | ((props: TSlideImage) => ReactNode);
|
78
|
+
/**
|
79
|
+
* Контент для панели навигации.
|
80
|
+
*/
|
81
|
+
navigationContent?: ReactNode;
|
82
|
+
/**
|
83
|
+
* Вариант кнопок навигации.
|
84
|
+
*/
|
85
|
+
buttonsVariant?: TButtonPropsWithoutStyles['variant'];
|
73
86
|
/**
|
74
87
|
* Массив данных для отрисовки слайдов.
|
75
88
|
*/
|
76
89
|
images?: TSlideImage[];
|
77
90
|
};
|
78
|
-
export default function Slider({ images, children, gap, onSlideClick, swiperClassName, slideClassName, imageClassName, navigationClassName, sliderBottomPanelClassName, descriptionsClassName, progressBarPosition, isFullPaginationWidth, needNavigation, leftDescription, rightDescription, delay, ...props }: TProps): import("react/jsx-runtime").JSX.Element;
|
91
|
+
export default function Slider({ images, children, gap, onSlideClick, swiperClassName, slideClassName, imageClassName, navigationClassName, navigationContent, sliderBottomPanelClassName, descriptionsClassName, navigationContentClassName, buttonsVariant, progressBarPosition, isFullPaginationWidth, needNavigation, leftDescription, rightDescription, delay, ...props }: TProps): import("react/jsx-runtime").JSX.Element;
|
79
92
|
export {};
|
@@ -1,203 +1,244 @@
|
|
1
|
-
import { jsx as
|
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
|
10
|
-
swiper:
|
11
|
-
slide:
|
12
|
-
link:
|
13
|
-
image:
|
14
|
-
navigation:
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
"progress-bar": "_progress-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
1
|
+
import { jsx as s, jsxs as o, Fragment as N } from "react/jsx-runtime";
|
2
|
+
import { c as a } from "../../index-DIxK0V-G.js";
|
3
|
+
import { memo as F, useCallback as u, useMemo as X, forwardRef as Z, useRef as B, useState as V, Children as I } from "react";
|
4
|
+
import { u as W, S as ee, A as se, a as T } from "../../swiper-react-BvAw14a4.js";
|
5
|
+
import { EProgressBarPosition as S } from "./constants.js";
|
6
|
+
import { formatSlideNumber as O } from "./utils.js";
|
7
|
+
import { AppImage as P } from "../Image/Image.js";
|
8
|
+
import { MergedButton as re } from "../MergedButton/MergedButton.js";
|
9
|
+
import '../../assets/Slider.css';const te = "_swiper_zqjj3_2", ne = "_slide_zqjj3_8", ae = "_link_zqjj3_15", oe = "_image_zqjj3_21", ie = "_navigation_zqjj3_28", le = "_pagination_zqjj3_46", ce = "_slides_zqjj3_65", de = "_separator_zqjj3_71", pe = "_progress_zqjj3_78", ue = "_descriptions_zqjj3_95", e = {
|
10
|
+
swiper: te,
|
11
|
+
slide: ne,
|
12
|
+
link: ae,
|
13
|
+
image: oe,
|
14
|
+
navigation: ie,
|
15
|
+
"navigation-content": "_navigation-content_zqjj3_37",
|
16
|
+
pagination: le,
|
17
|
+
"is-full": "_is-full_zqjj3_60",
|
18
|
+
slides: ce,
|
19
|
+
separator: de,
|
20
|
+
progress: pe,
|
21
|
+
"progress-bar-bottom": "_progress-bar-bottom_zqjj3_85",
|
22
|
+
"progress-bar": "_progress-bar_zqjj3_85",
|
23
|
+
descriptions: ue
|
24
|
+
}, me = 15e3, E = F(
|
25
|
+
({
|
26
|
+
variant: t = "white"
|
27
|
+
}) => {
|
28
|
+
const n = W(), p = u(() => {
|
29
|
+
n.slideNext();
|
30
|
+
}, [n]), c = u(() => {
|
31
|
+
n.slidePrev();
|
32
|
+
}, [n]), m = X(
|
33
|
+
() => [
|
34
|
+
{
|
35
|
+
isIconButton: !0,
|
36
|
+
iconName: "ArrowLeft16px",
|
37
|
+
variant: t,
|
38
|
+
onClick: c
|
39
|
+
},
|
40
|
+
{
|
41
|
+
isIconButton: !0,
|
42
|
+
iconName: "ArrowRight16px",
|
43
|
+
variant: t,
|
44
|
+
onClick: p
|
45
|
+
}
|
46
|
+
],
|
47
|
+
[c, t, p]
|
48
|
+
);
|
49
|
+
return /* @__PURE__ */ s(re, { buttons: m });
|
50
|
+
}
|
51
|
+
), b = F(
|
52
|
+
Z((t, n) => /* @__PURE__ */ s(
|
48
53
|
"div",
|
49
54
|
{
|
50
55
|
"data-testid": "progress-bar-wrapper",
|
51
|
-
className:
|
52
|
-
children: /* @__PURE__ */
|
56
|
+
className: a(e.progress, t == null ? void 0 : t.className),
|
57
|
+
children: /* @__PURE__ */ s(
|
53
58
|
"div",
|
54
59
|
{
|
55
|
-
ref:
|
56
|
-
className:
|
60
|
+
ref: n,
|
61
|
+
className: e["progress-bar"],
|
57
62
|
"data-testid": "progress-bar"
|
58
63
|
}
|
59
64
|
)
|
60
65
|
}
|
61
66
|
))
|
62
67
|
);
|
63
|
-
function
|
64
|
-
images:
|
65
|
-
children:
|
66
|
-
gap:
|
67
|
-
onSlideClick:
|
68
|
-
swiperClassName:
|
69
|
-
slideClassName:
|
70
|
-
imageClassName:
|
71
|
-
navigationClassName:
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
68
|
+
function qe({
|
69
|
+
images: t,
|
70
|
+
children: n,
|
71
|
+
gap: p,
|
72
|
+
onSlideClick: c,
|
73
|
+
swiperClassName: m,
|
74
|
+
slideClassName: q,
|
75
|
+
imageClassName: z,
|
76
|
+
navigationClassName: L,
|
77
|
+
navigationContent: _,
|
78
|
+
sliderBottomPanelClassName: M,
|
79
|
+
descriptionsClassName: R,
|
80
|
+
navigationContentClassName: $,
|
81
|
+
buttonsVariant: v,
|
82
|
+
progressBarPosition: f = "top",
|
83
|
+
isFullPaginationWidth: k = !1,
|
84
|
+
needNavigation: i = !0,
|
85
|
+
leftDescription: C,
|
86
|
+
rightDescription: y,
|
87
|
+
delay: D = me,
|
88
|
+
...U
|
81
89
|
}) {
|
82
|
-
const
|
83
|
-
|
84
|
-
),
|
85
|
-
if (
|
86
|
-
const r =
|
87
|
-
|
90
|
+
const d = B(null), h = B(null), [Y, G] = V(1), j = !(typeof n == "function") && !!n, H = j ? I.count(n) : 0, J = (t == null ? void 0 : t.length) ?? 0, A = O(Y), x = O(
|
91
|
+
j ? H : J
|
92
|
+
), K = u(() => {
|
93
|
+
if (h.current && i) {
|
94
|
+
const r = h.current.swiper;
|
95
|
+
G(r.realIndex + 1);
|
88
96
|
}
|
89
|
-
}, [
|
90
|
-
(r,
|
91
|
-
if (
|
92
|
-
const
|
93
|
-
|
97
|
+
}, [i]), Q = u(
|
98
|
+
(r, l) => {
|
99
|
+
if (d.current && i) {
|
100
|
+
const g = r.params.autoplay.delay, w = l / g * 100;
|
101
|
+
d.current.style.width = `${100 - w}%`;
|
94
102
|
}
|
95
103
|
},
|
96
|
-
[
|
104
|
+
[i]
|
97
105
|
);
|
98
|
-
return /* @__PURE__ */
|
99
|
-
|
106
|
+
return /* @__PURE__ */ o(
|
107
|
+
ee,
|
100
108
|
{
|
101
|
-
...
|
102
|
-
ref:
|
103
|
-
className:
|
109
|
+
...U,
|
110
|
+
ref: h,
|
111
|
+
className: a(e.swiper, m),
|
104
112
|
loop: !0,
|
105
|
-
spaceBetween:
|
113
|
+
spaceBetween: p,
|
106
114
|
autoplay: {
|
107
|
-
delay:
|
115
|
+
delay: D,
|
108
116
|
disableOnInteraction: !1
|
109
117
|
},
|
110
118
|
fadeEffect: {
|
111
119
|
crossFade: !0
|
112
120
|
},
|
113
|
-
modules: [
|
114
|
-
onAutoplayTimeLeft:
|
115
|
-
onSlideChange:
|
121
|
+
modules: [se],
|
122
|
+
onAutoplayTimeLeft: Q,
|
123
|
+
onSlideChange: K,
|
116
124
|
children: [
|
117
|
-
/* @__PURE__ */
|
125
|
+
/* @__PURE__ */ s(
|
118
126
|
"div",
|
119
127
|
{
|
120
|
-
className:
|
128
|
+
className: a(e.navigation, L, {
|
129
|
+
[e["navigation-with-content"]]: !!_
|
130
|
+
}),
|
121
131
|
slot: "container-start",
|
122
|
-
children:
|
123
|
-
/* @__PURE__ */
|
132
|
+
children: _ ? /* @__PURE__ */ o(N, { children: [
|
133
|
+
/* @__PURE__ */ o(
|
134
|
+
"div",
|
135
|
+
{
|
136
|
+
className: a(
|
137
|
+
e["navigation-content"],
|
138
|
+
$
|
139
|
+
),
|
140
|
+
children: [
|
141
|
+
_,
|
142
|
+
i && /* @__PURE__ */ o(
|
143
|
+
"div",
|
144
|
+
{
|
145
|
+
"data-testid": "pagination",
|
146
|
+
className: a(e.pagination, {
|
147
|
+
[e["is-full"]]: k
|
148
|
+
}),
|
149
|
+
children: [
|
150
|
+
/* @__PURE__ */ o("h2", { className: e.slides, children: [
|
151
|
+
A,
|
152
|
+
/* @__PURE__ */ s("span", { className: e.separator }),
|
153
|
+
x
|
154
|
+
] }),
|
155
|
+
/* @__PURE__ */ s(E, { variant: v })
|
156
|
+
]
|
157
|
+
}
|
158
|
+
)
|
159
|
+
]
|
160
|
+
}
|
161
|
+
),
|
162
|
+
f === S.TOP && i && /* @__PURE__ */ s(b, { ref: d })
|
163
|
+
] }) : /* @__PURE__ */ s(N, { children: i && /* @__PURE__ */ o(N, { children: [
|
164
|
+
/* @__PURE__ */ o(
|
124
165
|
"div",
|
125
166
|
{
|
126
167
|
"data-testid": "pagination",
|
127
|
-
className:
|
128
|
-
[
|
168
|
+
className: a(e.pagination, {
|
169
|
+
[e["is-full"]]: k
|
129
170
|
}),
|
130
171
|
children: [
|
131
|
-
/* @__PURE__ */
|
132
|
-
|
133
|
-
/* @__PURE__ */
|
134
|
-
|
172
|
+
/* @__PURE__ */ o("h2", { className: e.slides, children: [
|
173
|
+
A,
|
174
|
+
/* @__PURE__ */ s("span", { className: e.separator }),
|
175
|
+
x
|
135
176
|
] }),
|
136
|
-
/* @__PURE__ */
|
177
|
+
/* @__PURE__ */ s(E, { variant: v })
|
137
178
|
]
|
138
179
|
}
|
139
180
|
),
|
140
|
-
|
141
|
-
] })
|
181
|
+
f === S.TOP && /* @__PURE__ */ s(b, { ref: d })
|
182
|
+
] }) })
|
142
183
|
}
|
143
184
|
),
|
144
|
-
|
145
|
-
|
185
|
+
j ? I.map(n, (r, l) => /* @__PURE__ */ s(
|
186
|
+
T,
|
146
187
|
{
|
147
|
-
onClick:
|
148
|
-
"data-testid": `slide-${
|
149
|
-
className:
|
188
|
+
onClick: c,
|
189
|
+
"data-testid": `slide-${l}`,
|
190
|
+
className: a(e.slide, q),
|
150
191
|
children: r
|
151
192
|
},
|
152
|
-
|
153
|
-
)) :
|
193
|
+
l
|
194
|
+
)) : t == null ? void 0 : t.map((r, l) => {
|
154
195
|
if (!r) return null;
|
155
|
-
const
|
196
|
+
const g = /* @__PURE__ */ s(
|
156
197
|
"a",
|
157
198
|
{
|
158
|
-
className:
|
199
|
+
className: e.link,
|
159
200
|
href: r.url,
|
160
201
|
rel: "noopener noreferrer",
|
161
202
|
target: "_blank",
|
162
|
-
children: /* @__PURE__ */
|
163
|
-
|
203
|
+
children: /* @__PURE__ */ s(
|
204
|
+
P,
|
164
205
|
{
|
165
|
-
className:
|
206
|
+
className: a(e.image, z),
|
166
207
|
src: r.image
|
167
208
|
}
|
168
209
|
)
|
169
210
|
}
|
170
|
-
),
|
171
|
-
|
211
|
+
), w = () => typeof n == "function" ? n(r) : r.url ? g : /* @__PURE__ */ s(
|
212
|
+
P,
|
172
213
|
{
|
173
|
-
className:
|
214
|
+
className: a(e.image, z),
|
174
215
|
src: r.image,
|
175
216
|
desktopImage: r.imageDesktop,
|
176
217
|
mobileImage: r.imageMobile
|
177
218
|
}
|
178
219
|
);
|
179
|
-
return /* @__PURE__ */
|
180
|
-
|
220
|
+
return /* @__PURE__ */ s(
|
221
|
+
T,
|
181
222
|
{
|
182
|
-
"data-testid": `slide-${
|
183
|
-
onClick:
|
184
|
-
className:
|
185
|
-
children:
|
223
|
+
"data-testid": `slide-${l}`,
|
224
|
+
onClick: c,
|
225
|
+
className: a(e.slide, q),
|
226
|
+
children: w()
|
186
227
|
},
|
187
228
|
r.id
|
188
229
|
);
|
189
230
|
}),
|
190
|
-
|
191
|
-
/* @__PURE__ */
|
192
|
-
|
231
|
+
f === S.BOTTOM && /* @__PURE__ */ o("div", { className: M, children: [
|
232
|
+
/* @__PURE__ */ s(
|
233
|
+
b,
|
193
234
|
{
|
194
|
-
ref:
|
195
|
-
className:
|
235
|
+
ref: d,
|
236
|
+
className: e["progress-bar-bottom"]
|
196
237
|
}
|
197
238
|
),
|
198
|
-
/* @__PURE__ */
|
199
|
-
|
200
|
-
|
239
|
+
/* @__PURE__ */ o("div", { className: a(e.descriptions, R), children: [
|
240
|
+
C && /* @__PURE__ */ s("div", { "data-testid": "slider-left-description", children: C }),
|
241
|
+
y && /* @__PURE__ */ s("div", { "data-testid": "slider-right-description", children: y })
|
201
242
|
] })
|
202
243
|
] })
|
203
244
|
]
|
@@ -205,5 +246,5 @@ function Se({
|
|
205
246
|
);
|
206
247
|
}
|
207
248
|
export {
|
208
|
-
|
249
|
+
qe as default
|
209
250
|
};
|