@wikicasa-dev/components 2.1.27 → 2.1.28-alpha.1
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/UIKit/AccessibleSelect.js +1 -1
- package/dist/UIKit/Accordion/BaseAccordion.js +1 -1
- package/dist/UIKit/Accordion/BaseAccordionBtn.js +1 -1
- package/dist/UIKit/Accordion/BaseAccordionContent.js +1 -1
- package/dist/UIKit/Accordion/BaseAccordionItem.js +1 -1
- package/dist/UIKit/BaseAlert.d.ts +1 -1
- package/dist/UIKit/BaseAlert.js +2 -2
- package/dist/UIKit/BaseAutocomplete.js +1 -1
- package/dist/UIKit/BaseBadge.js +2 -2
- package/dist/UIKit/BaseBreadcrumb.js +1 -1
- package/dist/UIKit/BaseButton.js +1 -1
- package/dist/UIKit/BaseCard.js +2 -2
- package/dist/UIKit/BaseComplexToggle.d.ts +1 -1
- package/dist/UIKit/BaseComplexToggle.js +5 -5
- package/dist/UIKit/BaseDropDown.js +1 -1
- package/dist/UIKit/BaseFloatingLabel.js +2 -2
- package/dist/UIKit/BaseIcon.js +2 -2
- package/dist/UIKit/BaseInput.js +2 -2
- package/dist/UIKit/BaseModal.js +2 -2
- package/dist/UIKit/BasePagination.js +1 -1
- package/dist/UIKit/BasePaper.js +2 -2
- package/dist/UIKit/BaseSelect/SelectItem.js +1 -1
- package/dist/UIKit/BaseSlider.js +2 -2
- package/dist/UIKit/BaseSnackbar.js +2 -2
- package/dist/UIKit/BaseTextarea.js +2 -2
- package/dist/UIKit/BaseToggle.js +2 -2
- package/dist/UIKit/BaseTooltip.js +2 -2
- package/dist/UIKit/BaseUploadFile.js +1 -1
- package/dist/UIKit/Checkbox/CheckboxBtn.js +2 -2
- package/dist/UIKit/Checkbox/CheckboxGroup.js +1 -1
- package/dist/UIKit/Radio/RadioButton.js +1 -1
- package/dist/UIKit/Radio/RadioGroup.js +1 -1
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.js +2 -2
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.js +1 -1
- package/dist/UIKit/Slider/SimpleSlider.js +2 -2
- package/dist/UIKit/StaticSpinner.js +2 -2
- package/dist/UIKit/Tab/BaseTab.js +1 -1
- package/dist/UIKit/Tab/BaseTabList.js +1 -1
- package/dist/UIKit/Tab/BaseTabPanel.js +1 -1
- package/dist/UIKit/Tab/BaseTabView.js +1 -1
- package/dist/assets/{packages/components/lib → lib}/UIKit/BaseComplexToggle.css +1 -1
- package/dist/chart/DoughnutChart.js +1 -1
- package/dist/chart/LineChart.js +1 -1
- package/dist/components/IntersectionObserver/IntersectionObservable.js +1 -1
- package/dist/components/IntersectionObserver/IntersectionObserver.js +1 -1
- package/dist/components/carousel/SwiperCarousel.js +3 -3
- package/dist/index.js +30 -30
- package/dist/lazyModules/Swiper/autoplay.js +5 -0
- package/dist/lazyModules/Swiper/controller.js +5 -0
- package/dist/lazyModules/Swiper/free-mode.js +5 -0
- package/dist/lazyModules/Swiper/keyboard.js +5 -0
- package/dist/lazyModules/Swiper/navigation.js +5 -0
- package/dist/lazyModules/Swiper/pagination.js +5 -0
- package/dist/lazyModules/Swiper/thumbs.js +5 -0
- package/dist/{packages/components/lib → lib}/UIKit/AccessibleSelect.vue.js +16 -18
- package/dist/lib/UIKit/Accordion/BaseAccordion.vue.js +31 -0
- package/dist/{packages/components/lib → lib}/UIKit/Accordion/BaseAccordionBtn.vue.js +5 -6
- package/dist/{packages/components/lib → lib}/UIKit/Accordion/BaseAccordionItem.vue.js +3 -4
- package/dist/{packages/components/lib → lib}/UIKit/BaseAutocomplete.vue.js +9 -12
- package/dist/{packages/components/lib → lib}/UIKit/BaseBreadcrumb.vue.js +9 -10
- package/dist/{packages/components/lib → lib}/UIKit/BaseButton.vue.js +1 -1
- package/dist/{packages/components/lib → lib}/UIKit/BaseDropDown.vue.js +6 -7
- package/dist/{packages/components/lib → lib}/UIKit/BaseInput.vue.js +2 -2
- package/dist/{packages/components/lib → lib}/UIKit/BaseModal.vue.js +15 -20
- package/dist/{packages/components/lib → lib}/UIKit/BasePagination.vue.js +3 -4
- package/dist/{packages/components/lib → lib}/UIKit/BaseSlider.vue.js +1 -1
- package/dist/{packages/components/lib → lib}/UIKit/BaseSnackbar.vue.js +3 -4
- package/dist/{packages/components/lib → lib}/UIKit/BaseTextarea.vue.js +2 -2
- package/dist/{packages/components/lib → lib}/UIKit/BaseUploadFile.vue.js +1 -1
- package/dist/{packages/components/lib → lib}/UIKit/Checkbox/CheckboxGroup.vue.js +18 -22
- package/dist/{packages/components/lib → lib}/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js +1 -1
- package/dist/{packages/components/lib → lib}/chart/DoughnutChart.vue.js +1 -1
- package/dist/{packages/components/lib → lib}/chart/LineChart.vue.js +1 -1
- package/dist/{packages/components/lib → lib}/components/carousel/SwiperCarousel.vue.js +32 -35
- package/package.json +16 -12
- package/dist/_virtual/polyline.js +0 -2
- package/dist/assets/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/modules/autoplay.css +0 -0
- package/dist/assets/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/modules/free-mode.css +0 -1
- package/dist/assets/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/modules/navigation.css +0 -1
- package/dist/assets/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/modules/pagination.css +0 -1
- package/dist/assets/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/modules/zoom.css +0 -1
- package/dist/assets/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/swiper.css +0 -1
- package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/modules/autoplay.js +0 -128
- package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/modules/controller.js +0 -100
- package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/modules/free-mode.js +0 -123
- package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/modules/keyboard.js +0 -66
- package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/modules/navigation.js +0 -136
- package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/modules/pagination.js +0 -226
- package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/modules/thumbs.js +0 -120
- package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/modules/zoom.js +0 -309
- package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/shared/classes-to-selector.js +0 -6
- package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/shared/create-element-if-not-defined.js +0 -12
- package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/shared/ssr-window.esm.js +0 -134
- package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/shared/utils.js +0 -88
- package/dist/packages/components/lazyModules/Swiper/autoplay.js +0 -5
- package/dist/packages/components/lazyModules/Swiper/controller.js +0 -5
- package/dist/packages/components/lazyModules/Swiper/free-mode.js +0 -5
- package/dist/packages/components/lazyModules/Swiper/keyboard.js +0 -5
- package/dist/packages/components/lazyModules/Swiper/navigation.js +0 -5
- package/dist/packages/components/lazyModules/Swiper/pagination.js +0 -5
- package/dist/packages/components/lazyModules/Swiper/thumbs.js +0 -5
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordion.vue.js +0 -34
- package/dist/packages/components/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js +0 -28
- package/dist/packages/components/node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js +0 -38
- package/dist/packages/components/node_modules/@wikicasa-dev/svg-icons/dist/DefaultValues-CpabIgVz.js +0 -9
- package/dist/packages/components/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js +0 -2
- package/dist/packages/components/node_modules/@wikicasa-dev/svg-icons/dist/WarningIconRounded.js +0 -40
- package/dist/packages/components/node_modules/@wikicasa-dev/utilities/dist/utils/ArrayUtils.js +0 -4
- package/dist/packages/components/node_modules/@wikicasa-dev/utilities/dist/utils/DeviceDetectionUtils.js +0 -4
- package/dist/packages/components/node_modules/@wikicasa-dev/utilities/dist/utils/FunctionUtils.js +0 -15
- package/dist/packages/components/node_modules/@wikicasa-dev/utilities/dist/utils/GenericUtils.js +0 -12
- package/dist/packages/components/node_modules/@wikicasa-dev/utilities/dist/utils/ObjectUtils.js +0 -10
- package/dist/packages/components/node_modules/@wikicasa-dev/utilities/dist/utils/StringUtils.js +0 -4
- package/dist/packages/components/node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js +0 -41
- package/dist/packages/components/node_modules/google-polyline/lib/decode.js +0 -22
- package/dist/packages/components/node_modules/google-polyline/lib/encode.js +0 -34
- package/dist/packages/components/node_modules/google-polyline/lib/polyline.js +0 -12
- package/dist/packages/components/node_modules/js-cookie/dist/js.cookie.js +0 -70
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseAlert.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseBadge.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseCard.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseFloatingLabel.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseIcon.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseInput.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseModal.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BasePaper.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseSlider.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseSnackbar.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseTextarea.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseToggle.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseTooltip.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/Checkbox/CheckboxBtn.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/ShimmerLoader/BaseShimmerLoader.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/Slider/SimpleSlider.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/StaticSpinner.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/components/carousel/SwiperCarousel.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/components/carousel/SwiperCarousel2.css +0 -0
- /package/dist/{packages/components/lib → lib}/UIKit/Accordion/BaseAccordionContent.vue.js +0 -0
- /package/dist/{packages/components/lib → lib}/UIKit/BaseAlert.vue.js +0 -0
- /package/dist/{packages/components/lib → lib}/UIKit/BaseBadge.vue.js +0 -0
- /package/dist/{packages/components/lib → lib}/UIKit/BaseCard.vue.js +0 -0
- /package/dist/{packages/components/lib → lib}/UIKit/BaseComplexToggle.vue.js +0 -0
- /package/dist/{packages/components/lib → lib}/UIKit/BaseFloatingLabel.vue.js +0 -0
- /package/dist/{packages/components/lib → lib}/UIKit/BaseIcon.vue.js +0 -0
- /package/dist/{packages/components/lib → lib}/UIKit/BasePaper.vue.js +0 -0
- /package/dist/{packages/components/lib → lib}/UIKit/BaseSelect/SelectItem.vue.js +0 -0
- /package/dist/{packages/components/lib → lib}/UIKit/BaseToggle.vue.js +0 -0
- /package/dist/{packages/components/lib → lib}/UIKit/BaseTooltip.vue.js +0 -0
- /package/dist/{packages/components/lib → lib}/UIKit/Checkbox/CheckboxBtn.vue.js +0 -0
- /package/dist/{packages/components/lib → lib}/UIKit/Radio/RadioButton.vue.js +0 -0
- /package/dist/{packages/components/lib → lib}/UIKit/Radio/RadioGroup.vue.js +0 -0
- /package/dist/{packages/components/lib → lib}/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +0 -0
- /package/dist/{packages/components/lib → lib}/UIKit/Slider/SimpleSlider.vue.js +0 -0
- /package/dist/{packages/components/lib → lib}/UIKit/StaticSpinner.vue.js +0 -0
- /package/dist/{packages/components/lib → lib}/UIKit/Tab/BaseTab.vue.js +0 -0
- /package/dist/{packages/components/lib → lib}/UIKit/Tab/BaseTabList.vue.js +0 -0
- /package/dist/{packages/components/lib → lib}/UIKit/Tab/BaseTabPanel.vue.js +0 -0
- /package/dist/{packages/components/lib → lib}/UIKit/Tab/BaseTabView.vue.js +0 -0
- /package/dist/{packages/components/lib → lib}/components/IntersectionObserver/IntersectionObservable.vue.js +0 -0
- /package/dist/{packages/components/lib → lib}/components/IntersectionObserver/IntersectionObserver.vue.js +0 -0
|
@@ -1,309 +0,0 @@
|
|
|
1
|
-
import { a as he } from "../shared/ssr-window.esm.js";
|
|
2
|
-
import { e as oe, d as G, f as se, l as re } from "../shared/utils.js";
|
|
3
|
-
function ve({
|
|
4
|
-
swiper: n,
|
|
5
|
-
extendParams: le,
|
|
6
|
-
on: p,
|
|
7
|
-
emit: ce
|
|
8
|
-
}) {
|
|
9
|
-
const x = he();
|
|
10
|
-
le({
|
|
11
|
-
zoom: {
|
|
12
|
-
enabled: !1,
|
|
13
|
-
limitToOriginalSize: !1,
|
|
14
|
-
maxRatio: 3,
|
|
15
|
-
minRatio: 1,
|
|
16
|
-
panOnMouseMove: !1,
|
|
17
|
-
toggle: !0,
|
|
18
|
-
containerClass: "swiper-zoom-container",
|
|
19
|
-
zoomedSlideClass: "swiper-slide-zoomed"
|
|
20
|
-
}
|
|
21
|
-
}), n.zoom = {
|
|
22
|
-
enabled: !1
|
|
23
|
-
};
|
|
24
|
-
let u = 1, H = !1, C = !1, v = {
|
|
25
|
-
x: 0,
|
|
26
|
-
y: 0
|
|
27
|
-
};
|
|
28
|
-
const k = -3;
|
|
29
|
-
let S, T;
|
|
30
|
-
const s = [], t = {
|
|
31
|
-
originX: 0,
|
|
32
|
-
originY: 0,
|
|
33
|
-
slideEl: void 0,
|
|
34
|
-
slideWidth: void 0,
|
|
35
|
-
slideHeight: void 0,
|
|
36
|
-
imageEl: void 0,
|
|
37
|
-
imageWrapEl: void 0,
|
|
38
|
-
maxRatio: 3
|
|
39
|
-
}, e = {
|
|
40
|
-
isTouched: void 0,
|
|
41
|
-
isMoved: void 0,
|
|
42
|
-
currentX: void 0,
|
|
43
|
-
currentY: void 0,
|
|
44
|
-
minX: void 0,
|
|
45
|
-
minY: void 0,
|
|
46
|
-
maxX: void 0,
|
|
47
|
-
maxY: void 0,
|
|
48
|
-
width: void 0,
|
|
49
|
-
height: void 0,
|
|
50
|
-
startX: void 0,
|
|
51
|
-
startY: void 0,
|
|
52
|
-
touchesStart: {},
|
|
53
|
-
touchesCurrent: {}
|
|
54
|
-
}, l = {
|
|
55
|
-
x: void 0,
|
|
56
|
-
y: void 0,
|
|
57
|
-
prevPositionX: void 0,
|
|
58
|
-
prevPositionY: void 0,
|
|
59
|
-
prevTime: void 0
|
|
60
|
-
};
|
|
61
|
-
let P = 1;
|
|
62
|
-
Object.defineProperty(n.zoom, "scale", {
|
|
63
|
-
get() {
|
|
64
|
-
return P;
|
|
65
|
-
},
|
|
66
|
-
set(a) {
|
|
67
|
-
if (P !== a) {
|
|
68
|
-
const o = t.imageEl, i = t.slideEl;
|
|
69
|
-
ce("zoomChange", a, o, i);
|
|
70
|
-
}
|
|
71
|
-
P = a;
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
function Z() {
|
|
75
|
-
if (s.length < 2) return 1;
|
|
76
|
-
const a = s[0].pageX, o = s[0].pageY, i = s[1].pageX, r = s[1].pageY;
|
|
77
|
-
return Math.sqrt((i - a) ** 2 + (r - o) ** 2);
|
|
78
|
-
}
|
|
79
|
-
function _() {
|
|
80
|
-
const a = n.params.zoom, o = t.imageWrapEl.getAttribute("data-swiper-zoom") || a.maxRatio;
|
|
81
|
-
if (a.limitToOriginalSize && t.imageEl && t.imageEl.naturalWidth) {
|
|
82
|
-
const i = t.imageEl.naturalWidth / t.imageEl.offsetWidth;
|
|
83
|
-
return Math.min(i, o);
|
|
84
|
-
}
|
|
85
|
-
return o;
|
|
86
|
-
}
|
|
87
|
-
function me() {
|
|
88
|
-
if (s.length < 2) return {
|
|
89
|
-
x: null,
|
|
90
|
-
y: null
|
|
91
|
-
};
|
|
92
|
-
const a = t.imageEl.getBoundingClientRect();
|
|
93
|
-
return [(s[0].pageX + (s[1].pageX - s[0].pageX) / 2 - a.x - x.scrollX) / u, (s[0].pageY + (s[1].pageY - s[0].pageY) / 2 - a.y - x.scrollY) / u];
|
|
94
|
-
}
|
|
95
|
-
function ue() {
|
|
96
|
-
return n.isElement ? "swiper-slide" : `.${n.params.slideClass}`;
|
|
97
|
-
}
|
|
98
|
-
function M(a) {
|
|
99
|
-
const o = ue();
|
|
100
|
-
return !!(a.target.matches(o) || n.slides.filter((i) => i.contains(a.target)).length > 0);
|
|
101
|
-
}
|
|
102
|
-
function j(a) {
|
|
103
|
-
const o = `.${n.params.zoom.containerClass}`;
|
|
104
|
-
return !!(a.target.matches(o) || [...n.hostEl.querySelectorAll(o)].filter((i) => i.contains(a.target)).length > 0);
|
|
105
|
-
}
|
|
106
|
-
function B(a) {
|
|
107
|
-
if (a.pointerType === "mouse" && s.splice(0, s.length), !M(a)) return;
|
|
108
|
-
const o = n.params.zoom;
|
|
109
|
-
if (S = !1, T = !1, s.push(a), !(s.length < 2)) {
|
|
110
|
-
if (S = !0, t.scaleStart = Z(), !t.slideEl) {
|
|
111
|
-
t.slideEl = a.target.closest(`.${n.params.slideClass}, swiper-slide`), t.slideEl || (t.slideEl = n.slides[n.activeIndex]);
|
|
112
|
-
let i = t.slideEl.querySelector(`.${o.containerClass}`);
|
|
113
|
-
if (i && (i = i.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), t.imageEl = i, i ? t.imageWrapEl = G(t.imageEl, `.${o.containerClass}`)[0] : t.imageWrapEl = void 0, !t.imageWrapEl) {
|
|
114
|
-
t.imageEl = void 0;
|
|
115
|
-
return;
|
|
116
|
-
}
|
|
117
|
-
t.maxRatio = _();
|
|
118
|
-
}
|
|
119
|
-
if (t.imageEl) {
|
|
120
|
-
const [i, r] = me();
|
|
121
|
-
t.originX = i, t.originY = r, t.imageEl.style.transitionDuration = "0ms";
|
|
122
|
-
}
|
|
123
|
-
H = !0;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
function F(a) {
|
|
127
|
-
if (!M(a)) return;
|
|
128
|
-
const o = n.params.zoom, i = n.zoom, r = s.findIndex((c) => c.pointerId === a.pointerId);
|
|
129
|
-
r >= 0 && (s[r] = a), !(s.length < 2) && (T = !0, t.scaleMove = Z(), t.imageEl && (i.scale = t.scaleMove / t.scaleStart * u, i.scale > t.maxRatio && (i.scale = t.maxRatio - 1 + (i.scale - t.maxRatio + 1) ** 0.5), i.scale < o.minRatio && (i.scale = o.minRatio + 1 - (o.minRatio - i.scale + 1) ** 0.5), t.imageEl.style.transform = `translate3d(0,0,0) scale(${i.scale})`));
|
|
130
|
-
}
|
|
131
|
-
function J(a) {
|
|
132
|
-
if (!M(a) || a.pointerType === "mouse" && a.type === "pointerout") return;
|
|
133
|
-
const o = n.params.zoom, i = n.zoom, r = s.findIndex((c) => c.pointerId === a.pointerId);
|
|
134
|
-
r >= 0 && s.splice(r, 1), !(!S || !T) && (S = !1, T = !1, t.imageEl && (i.scale = Math.max(Math.min(i.scale, t.maxRatio), o.minRatio), t.imageEl.style.transitionDuration = `${n.params.speed}ms`, t.imageEl.style.transform = `translate3d(0,0,0) scale(${i.scale})`, u = i.scale, H = !1, i.scale > 1 && t.slideEl ? t.slideEl.classList.add(`${o.zoomedSlideClass}`) : i.scale <= 1 && t.slideEl && t.slideEl.classList.remove(`${o.zoomedSlideClass}`), i.scale === 1 && (t.originX = 0, t.originY = 0, t.slideEl = void 0)));
|
|
135
|
-
}
|
|
136
|
-
let K;
|
|
137
|
-
function L() {
|
|
138
|
-
n.touchEventsData.preventTouchMoveFromPointerMove = !1;
|
|
139
|
-
}
|
|
140
|
-
function de() {
|
|
141
|
-
clearTimeout(K), n.touchEventsData.preventTouchMoveFromPointerMove = !0, K = setTimeout(() => {
|
|
142
|
-
n.destroyed || L();
|
|
143
|
-
});
|
|
144
|
-
}
|
|
145
|
-
function fe(a) {
|
|
146
|
-
const o = n.device;
|
|
147
|
-
if (!t.imageEl || e.isTouched) return;
|
|
148
|
-
o.android && a.cancelable && a.preventDefault(), e.isTouched = !0;
|
|
149
|
-
const i = s.length > 0 ? s[0] : a;
|
|
150
|
-
e.touchesStart.x = i.pageX, e.touchesStart.y = i.pageY;
|
|
151
|
-
}
|
|
152
|
-
function N(a) {
|
|
153
|
-
const i = a.pointerType === "mouse" && n.params.zoom.panOnMouseMove;
|
|
154
|
-
if (!M(a) || !j(a))
|
|
155
|
-
return;
|
|
156
|
-
const r = n.zoom;
|
|
157
|
-
if (!t.imageEl)
|
|
158
|
-
return;
|
|
159
|
-
if (!e.isTouched || !t.slideEl) {
|
|
160
|
-
i && U(a);
|
|
161
|
-
return;
|
|
162
|
-
}
|
|
163
|
-
if (i) {
|
|
164
|
-
U(a);
|
|
165
|
-
return;
|
|
166
|
-
}
|
|
167
|
-
e.isMoved || (e.width = t.imageEl.offsetWidth || t.imageEl.clientWidth, e.height = t.imageEl.offsetHeight || t.imageEl.clientHeight, e.startX = re(t.imageWrapEl, "x") || 0, e.startY = re(t.imageWrapEl, "y") || 0, t.slideWidth = t.slideEl.offsetWidth, t.slideHeight = t.slideEl.offsetHeight, t.imageWrapEl.style.transitionDuration = "0ms");
|
|
168
|
-
const c = e.width * r.scale, g = e.height * r.scale;
|
|
169
|
-
if (e.minX = Math.min(t.slideWidth / 2 - c / 2, 0), e.maxX = -e.minX, e.minY = Math.min(t.slideHeight / 2 - g / 2, 0), e.maxY = -e.minY, e.touchesCurrent.x = s.length > 0 ? s[0].pageX : a.pageX, e.touchesCurrent.y = s.length > 0 ? s[0].pageY : a.pageY, Math.max(Math.abs(e.touchesCurrent.x - e.touchesStart.x), Math.abs(e.touchesCurrent.y - e.touchesStart.y)) > 5 && (n.allowClick = !1), !e.isMoved && !H) {
|
|
170
|
-
if (n.isHorizontal() && (Math.floor(e.minX) === Math.floor(e.startX) && e.touchesCurrent.x < e.touchesStart.x || Math.floor(e.maxX) === Math.floor(e.startX) && e.touchesCurrent.x > e.touchesStart.x)) {
|
|
171
|
-
e.isTouched = !1, L();
|
|
172
|
-
return;
|
|
173
|
-
}
|
|
174
|
-
if (!n.isHorizontal() && (Math.floor(e.minY) === Math.floor(e.startY) && e.touchesCurrent.y < e.touchesStart.y || Math.floor(e.maxY) === Math.floor(e.startY) && e.touchesCurrent.y > e.touchesStart.y)) {
|
|
175
|
-
e.isTouched = !1, L();
|
|
176
|
-
return;
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
a.cancelable && a.preventDefault(), a.stopPropagation(), de(), e.isMoved = !0;
|
|
180
|
-
const f = (r.scale - u) / (t.maxRatio - n.params.zoom.minRatio), {
|
|
181
|
-
originX: E,
|
|
182
|
-
originY: m
|
|
183
|
-
} = t;
|
|
184
|
-
e.currentX = e.touchesCurrent.x - e.touchesStart.x + e.startX + f * (e.width - E * 2), e.currentY = e.touchesCurrent.y - e.touchesStart.y + e.startY + f * (e.height - m * 2), e.currentX < e.minX && (e.currentX = e.minX + 1 - (e.minX - e.currentX + 1) ** 0.8), e.currentX > e.maxX && (e.currentX = e.maxX - 1 + (e.currentX - e.maxX + 1) ** 0.8), e.currentY < e.minY && (e.currentY = e.minY + 1 - (e.minY - e.currentY + 1) ** 0.8), e.currentY > e.maxY && (e.currentY = e.maxY - 1 + (e.currentY - e.maxY + 1) ** 0.8), l.prevPositionX || (l.prevPositionX = e.touchesCurrent.x), l.prevPositionY || (l.prevPositionY = e.touchesCurrent.y), l.prevTime || (l.prevTime = Date.now()), l.x = (e.touchesCurrent.x - l.prevPositionX) / (Date.now() - l.prevTime) / 2, l.y = (e.touchesCurrent.y - l.prevPositionY) / (Date.now() - l.prevTime) / 2, Math.abs(e.touchesCurrent.x - l.prevPositionX) < 2 && (l.x = 0), Math.abs(e.touchesCurrent.y - l.prevPositionY) < 2 && (l.y = 0), l.prevPositionX = e.touchesCurrent.x, l.prevPositionY = e.touchesCurrent.y, l.prevTime = Date.now(), t.imageWrapEl.style.transform = `translate3d(${e.currentX}px, ${e.currentY}px,0)`;
|
|
185
|
-
}
|
|
186
|
-
function ge() {
|
|
187
|
-
const a = n.zoom;
|
|
188
|
-
if (s.length = 0, !t.imageEl) return;
|
|
189
|
-
if (!e.isTouched || !e.isMoved) {
|
|
190
|
-
e.isTouched = !1, e.isMoved = !1;
|
|
191
|
-
return;
|
|
192
|
-
}
|
|
193
|
-
e.isTouched = !1, e.isMoved = !1;
|
|
194
|
-
let o = 300, i = 300;
|
|
195
|
-
const r = l.x * o, c = e.currentX + r, g = l.y * i, h = e.currentY + g;
|
|
196
|
-
l.x !== 0 && (o = Math.abs((c - e.currentX) / l.x)), l.y !== 0 && (i = Math.abs((h - e.currentY) / l.y));
|
|
197
|
-
const f = Math.max(o, i);
|
|
198
|
-
e.currentX = c, e.currentY = h;
|
|
199
|
-
const E = e.width * a.scale, m = e.height * a.scale;
|
|
200
|
-
e.minX = Math.min(t.slideWidth / 2 - E / 2, 0), e.maxX = -e.minX, e.minY = Math.min(t.slideHeight / 2 - m / 2, 0), e.maxY = -e.minY, e.currentX = Math.max(Math.min(e.currentX, e.maxX), e.minX), e.currentY = Math.max(Math.min(e.currentY, e.maxY), e.minY), t.imageWrapEl.style.transitionDuration = `${f}ms`, t.imageWrapEl.style.transform = `translate3d(${e.currentX}px, ${e.currentY}px,0)`;
|
|
201
|
-
}
|
|
202
|
-
function Q() {
|
|
203
|
-
const a = n.zoom;
|
|
204
|
-
t.slideEl && n.activeIndex !== n.slides.indexOf(t.slideEl) && (t.imageEl && (t.imageEl.style.transform = "translate3d(0,0,0) scale(1)"), t.imageWrapEl && (t.imageWrapEl.style.transform = "translate3d(0,0,0)"), t.slideEl.classList.remove(`${n.params.zoom.zoomedSlideClass}`), a.scale = 1, u = 1, t.slideEl = void 0, t.imageEl = void 0, t.imageWrapEl = void 0, t.originX = 0, t.originY = 0);
|
|
205
|
-
}
|
|
206
|
-
function U(a) {
|
|
207
|
-
if (u <= 1 || !t.imageWrapEl || !M(a) || !j(a)) return;
|
|
208
|
-
const o = x.getComputedStyle(t.imageWrapEl).transform, i = new x.DOMMatrix(o);
|
|
209
|
-
if (!C) {
|
|
210
|
-
C = !0, v.x = a.clientX, v.y = a.clientY, e.startX = i.e, e.startY = i.f, e.width = t.imageEl.offsetWidth || t.imageEl.clientWidth, e.height = t.imageEl.offsetHeight || t.imageEl.clientHeight, t.slideWidth = t.slideEl.offsetWidth, t.slideHeight = t.slideEl.offsetHeight;
|
|
211
|
-
return;
|
|
212
|
-
}
|
|
213
|
-
const r = (a.clientX - v.x) * k, c = (a.clientY - v.y) * k, g = e.width * u, h = e.height * u, f = t.slideWidth, E = t.slideHeight, m = Math.min(f / 2 - g / 2, 0), d = -m, z = Math.min(E / 2 - h / 2, 0), b = -z, X = Math.max(Math.min(e.startX + r, d), m), Y = Math.max(Math.min(e.startY + c, b), z);
|
|
214
|
-
t.imageWrapEl.style.transitionDuration = "0ms", t.imageWrapEl.style.transform = `translate3d(${X}px, ${Y}px, 0)`, v.x = a.clientX, v.y = a.clientY, e.startX = X, e.startY = Y, e.currentX = X, e.currentY = Y;
|
|
215
|
-
}
|
|
216
|
-
function V(a) {
|
|
217
|
-
const o = n.zoom, i = n.params.zoom;
|
|
218
|
-
if (!t.slideEl) {
|
|
219
|
-
a && a.target && (t.slideEl = a.target.closest(`.${n.params.slideClass}, swiper-slide`)), t.slideEl || (n.params.virtual && n.params.virtual.enabled && n.virtual ? t.slideEl = oe(n.slidesEl, `.${n.params.slideActiveClass}`)[0] : t.slideEl = n.slides[n.activeIndex]);
|
|
220
|
-
let W = t.slideEl.querySelector(`.${i.containerClass}`);
|
|
221
|
-
W && (W = W.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), t.imageEl = W, W ? t.imageWrapEl = G(t.imageEl, `.${i.containerClass}`)[0] : t.imageWrapEl = void 0;
|
|
222
|
-
}
|
|
223
|
-
if (!t.imageEl || !t.imageWrapEl) return;
|
|
224
|
-
n.params.cssMode && (n.wrapperEl.style.overflow = "hidden", n.wrapperEl.style.touchAction = "none"), t.slideEl.classList.add(`${i.zoomedSlideClass}`);
|
|
225
|
-
let r, c, g, h, f, E, m, d, z, b, X, Y, $, D, R, I, O, A;
|
|
226
|
-
typeof e.touchesStart.x > "u" && a ? (r = a.pageX, c = a.pageY) : (r = e.touchesStart.x, c = e.touchesStart.y);
|
|
227
|
-
const q = u, y = typeof a == "number" ? a : null;
|
|
228
|
-
u === 1 && y && (r = void 0, c = void 0, e.touchesStart.x = void 0, e.touchesStart.y = void 0);
|
|
229
|
-
const ie = _();
|
|
230
|
-
o.scale = y || ie, u = y || ie, a && !(u === 1 && y) ? (O = t.slideEl.offsetWidth, A = t.slideEl.offsetHeight, g = se(t.slideEl).left + x.scrollX, h = se(t.slideEl).top + x.scrollY, f = g + O / 2 - r, E = h + A / 2 - c, z = t.imageEl.offsetWidth || t.imageEl.clientWidth, b = t.imageEl.offsetHeight || t.imageEl.clientHeight, X = z * o.scale, Y = b * o.scale, $ = Math.min(O / 2 - X / 2, 0), D = Math.min(A / 2 - Y / 2, 0), R = -$, I = -D, q > 0 && y && typeof e.currentX == "number" && typeof e.currentY == "number" ? (m = e.currentX * o.scale / q, d = e.currentY * o.scale / q) : (m = f * o.scale, d = E * o.scale), m < $ && (m = $), m > R && (m = R), d < D && (d = D), d > I && (d = I)) : (m = 0, d = 0), y && o.scale === 1 && (t.originX = 0, t.originY = 0), e.currentX = m, e.currentY = d, t.imageWrapEl.style.transitionDuration = "300ms", t.imageWrapEl.style.transform = `translate3d(${m}px, ${d}px,0)`, t.imageEl.style.transitionDuration = "300ms", t.imageEl.style.transform = `translate3d(0,0,0) scale(${o.scale})`;
|
|
231
|
-
}
|
|
232
|
-
function w() {
|
|
233
|
-
const a = n.zoom, o = n.params.zoom;
|
|
234
|
-
if (!t.slideEl) {
|
|
235
|
-
n.params.virtual && n.params.virtual.enabled && n.virtual ? t.slideEl = oe(n.slidesEl, `.${n.params.slideActiveClass}`)[0] : t.slideEl = n.slides[n.activeIndex];
|
|
236
|
-
let i = t.slideEl.querySelector(`.${o.containerClass}`);
|
|
237
|
-
i && (i = i.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), t.imageEl = i, i ? t.imageWrapEl = G(t.imageEl, `.${o.containerClass}`)[0] : t.imageWrapEl = void 0;
|
|
238
|
-
}
|
|
239
|
-
!t.imageEl || !t.imageWrapEl || (n.params.cssMode && (n.wrapperEl.style.overflow = "", n.wrapperEl.style.touchAction = ""), a.scale = 1, u = 1, e.currentX = void 0, e.currentY = void 0, e.touchesStart.x = void 0, e.touchesStart.y = void 0, t.imageWrapEl.style.transitionDuration = "300ms", t.imageWrapEl.style.transform = "translate3d(0,0,0)", t.imageEl.style.transitionDuration = "300ms", t.imageEl.style.transform = "translate3d(0,0,0) scale(1)", t.slideEl.classList.remove(`${o.zoomedSlideClass}`), t.slideEl = void 0, t.originX = 0, t.originY = 0, n.params.zoom.panOnMouseMove && (v = {
|
|
240
|
-
x: 0,
|
|
241
|
-
y: 0
|
|
242
|
-
}, C && (C = !1, e.startX = 0, e.startY = 0)));
|
|
243
|
-
}
|
|
244
|
-
function ee(a) {
|
|
245
|
-
const o = n.zoom;
|
|
246
|
-
o.scale && o.scale !== 1 ? w() : V(a);
|
|
247
|
-
}
|
|
248
|
-
function te() {
|
|
249
|
-
const a = n.params.passiveListeners ? {
|
|
250
|
-
passive: !0,
|
|
251
|
-
capture: !1
|
|
252
|
-
} : !1, o = n.params.passiveListeners ? {
|
|
253
|
-
passive: !1,
|
|
254
|
-
capture: !0
|
|
255
|
-
} : !0;
|
|
256
|
-
return {
|
|
257
|
-
passiveListener: a,
|
|
258
|
-
activeListenerWithCapture: o
|
|
259
|
-
};
|
|
260
|
-
}
|
|
261
|
-
function ae() {
|
|
262
|
-
const a = n.zoom;
|
|
263
|
-
if (a.enabled) return;
|
|
264
|
-
a.enabled = !0;
|
|
265
|
-
const {
|
|
266
|
-
passiveListener: o,
|
|
267
|
-
activeListenerWithCapture: i
|
|
268
|
-
} = te();
|
|
269
|
-
n.wrapperEl.addEventListener("pointerdown", B, o), n.wrapperEl.addEventListener("pointermove", F, i), ["pointerup", "pointercancel", "pointerout"].forEach((r) => {
|
|
270
|
-
n.wrapperEl.addEventListener(r, J, o);
|
|
271
|
-
}), n.wrapperEl.addEventListener("pointermove", N, i);
|
|
272
|
-
}
|
|
273
|
-
function ne() {
|
|
274
|
-
const a = n.zoom;
|
|
275
|
-
if (!a.enabled) return;
|
|
276
|
-
a.enabled = !1;
|
|
277
|
-
const {
|
|
278
|
-
passiveListener: o,
|
|
279
|
-
activeListenerWithCapture: i
|
|
280
|
-
} = te();
|
|
281
|
-
n.wrapperEl.removeEventListener("pointerdown", B, o), n.wrapperEl.removeEventListener("pointermove", F, i), ["pointerup", "pointercancel", "pointerout"].forEach((r) => {
|
|
282
|
-
n.wrapperEl.removeEventListener(r, J, o);
|
|
283
|
-
}), n.wrapperEl.removeEventListener("pointermove", N, i);
|
|
284
|
-
}
|
|
285
|
-
p("init", () => {
|
|
286
|
-
n.params.zoom.enabled && ae();
|
|
287
|
-
}), p("destroy", () => {
|
|
288
|
-
ne();
|
|
289
|
-
}), p("touchStart", (a, o) => {
|
|
290
|
-
n.zoom.enabled && fe(o);
|
|
291
|
-
}), p("touchEnd", (a, o) => {
|
|
292
|
-
n.zoom.enabled && ge();
|
|
293
|
-
}), p("doubleTap", (a, o) => {
|
|
294
|
-
!n.animating && n.params.zoom.enabled && n.zoom.enabled && n.params.zoom.toggle && ee(o);
|
|
295
|
-
}), p("transitionEnd", () => {
|
|
296
|
-
n.zoom.enabled && n.params.zoom.enabled && Q();
|
|
297
|
-
}), p("slideChange", () => {
|
|
298
|
-
n.zoom.enabled && n.params.zoom.enabled && n.params.cssMode && Q();
|
|
299
|
-
}), Object.assign(n.zoom, {
|
|
300
|
-
enable: ae,
|
|
301
|
-
disable: ne,
|
|
302
|
-
in: V,
|
|
303
|
-
out: w,
|
|
304
|
-
toggle: ee
|
|
305
|
-
});
|
|
306
|
-
}
|
|
307
|
-
export {
|
|
308
|
-
ve as default
|
|
309
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { e as i, c as m } from "./utils.js";
|
|
2
|
-
function o(f, a, n, l) {
|
|
3
|
-
return f.params.createElements && Object.keys(l).forEach((e) => {
|
|
4
|
-
if (!n[e] && n.auto === !0) {
|
|
5
|
-
let t = i(f.el, `.${l[e]}`)[0];
|
|
6
|
-
t || (t = m("div", l[e]), t.className = l[e], f.el.append(t)), n[e] = t, a[e] = t;
|
|
7
|
-
}
|
|
8
|
-
}), n;
|
|
9
|
-
}
|
|
10
|
-
export {
|
|
11
|
-
o as c
|
|
12
|
-
};
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
function o(e) {
|
|
2
|
-
return e !== null && typeof e == "object" && "constructor" in e && e.constructor === Object;
|
|
3
|
-
}
|
|
4
|
-
function r(e = {}, n = {}) {
|
|
5
|
-
const i = ["__proto__", "constructor", "prototype"];
|
|
6
|
-
Object.keys(n).filter((t) => i.indexOf(t) < 0).forEach((t) => {
|
|
7
|
-
typeof e[t] > "u" ? e[t] = n[t] : o(n[t]) && o(e[t]) && Object.keys(n[t]).length > 0 && r(e[t], n[t]);
|
|
8
|
-
});
|
|
9
|
-
}
|
|
10
|
-
const u = {
|
|
11
|
-
body: {},
|
|
12
|
-
addEventListener() {
|
|
13
|
-
},
|
|
14
|
-
removeEventListener() {
|
|
15
|
-
},
|
|
16
|
-
activeElement: {
|
|
17
|
-
blur() {
|
|
18
|
-
},
|
|
19
|
-
nodeName: ""
|
|
20
|
-
},
|
|
21
|
-
querySelector() {
|
|
22
|
-
return null;
|
|
23
|
-
},
|
|
24
|
-
querySelectorAll() {
|
|
25
|
-
return [];
|
|
26
|
-
},
|
|
27
|
-
getElementById() {
|
|
28
|
-
return null;
|
|
29
|
-
},
|
|
30
|
-
createEvent() {
|
|
31
|
-
return {
|
|
32
|
-
initEvent() {
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
},
|
|
36
|
-
createElement() {
|
|
37
|
-
return {
|
|
38
|
-
children: [],
|
|
39
|
-
childNodes: [],
|
|
40
|
-
style: {},
|
|
41
|
-
setAttribute() {
|
|
42
|
-
},
|
|
43
|
-
getElementsByTagName() {
|
|
44
|
-
return [];
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
},
|
|
48
|
-
createElementNS() {
|
|
49
|
-
return {};
|
|
50
|
-
},
|
|
51
|
-
importNode() {
|
|
52
|
-
return null;
|
|
53
|
-
},
|
|
54
|
-
location: {
|
|
55
|
-
hash: "",
|
|
56
|
-
host: "",
|
|
57
|
-
hostname: "",
|
|
58
|
-
href: "",
|
|
59
|
-
origin: "",
|
|
60
|
-
pathname: "",
|
|
61
|
-
protocol: "",
|
|
62
|
-
search: ""
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
function s() {
|
|
66
|
-
const e = typeof document < "u" ? document : {};
|
|
67
|
-
return r(e, u), e;
|
|
68
|
-
}
|
|
69
|
-
const c = {
|
|
70
|
-
document: u,
|
|
71
|
-
navigator: {
|
|
72
|
-
userAgent: ""
|
|
73
|
-
},
|
|
74
|
-
location: {
|
|
75
|
-
hash: "",
|
|
76
|
-
host: "",
|
|
77
|
-
hostname: "",
|
|
78
|
-
href: "",
|
|
79
|
-
origin: "",
|
|
80
|
-
pathname: "",
|
|
81
|
-
protocol: "",
|
|
82
|
-
search: ""
|
|
83
|
-
},
|
|
84
|
-
history: {
|
|
85
|
-
replaceState() {
|
|
86
|
-
},
|
|
87
|
-
pushState() {
|
|
88
|
-
},
|
|
89
|
-
go() {
|
|
90
|
-
},
|
|
91
|
-
back() {
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
CustomEvent: function() {
|
|
95
|
-
return this;
|
|
96
|
-
},
|
|
97
|
-
addEventListener() {
|
|
98
|
-
},
|
|
99
|
-
removeEventListener() {
|
|
100
|
-
},
|
|
101
|
-
getComputedStyle() {
|
|
102
|
-
return {
|
|
103
|
-
getPropertyValue() {
|
|
104
|
-
return "";
|
|
105
|
-
}
|
|
106
|
-
};
|
|
107
|
-
},
|
|
108
|
-
Image() {
|
|
109
|
-
},
|
|
110
|
-
Date() {
|
|
111
|
-
},
|
|
112
|
-
screen: {},
|
|
113
|
-
setTimeout() {
|
|
114
|
-
},
|
|
115
|
-
clearTimeout() {
|
|
116
|
-
},
|
|
117
|
-
matchMedia() {
|
|
118
|
-
return {};
|
|
119
|
-
},
|
|
120
|
-
requestAnimationFrame(e) {
|
|
121
|
-
return typeof setTimeout > "u" ? (e(), null) : setTimeout(e, 0);
|
|
122
|
-
},
|
|
123
|
-
cancelAnimationFrame(e) {
|
|
124
|
-
typeof setTimeout > "u" || clearTimeout(e);
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
function a() {
|
|
128
|
-
const e = typeof window < "u" ? window : {};
|
|
129
|
-
return r(e, c), e;
|
|
130
|
-
}
|
|
131
|
-
export {
|
|
132
|
-
a,
|
|
133
|
-
s as g
|
|
134
|
-
};
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { a as l, g as f } from "./ssr-window.esm.js";
|
|
2
|
-
function u(t = "") {
|
|
3
|
-
return t.trim().split(" ").filter((e) => !!e.trim());
|
|
4
|
-
}
|
|
5
|
-
function d(t, e = 0) {
|
|
6
|
-
return setTimeout(t, e);
|
|
7
|
-
}
|
|
8
|
-
function g() {
|
|
9
|
-
return Date.now();
|
|
10
|
-
}
|
|
11
|
-
function m(t) {
|
|
12
|
-
const e = l();
|
|
13
|
-
let n;
|
|
14
|
-
return e.getComputedStyle && (n = e.getComputedStyle(t, null)), !n && t.currentStyle && (n = t.currentStyle), n || (n = t.style), n;
|
|
15
|
-
}
|
|
16
|
-
function y(t, e = "x") {
|
|
17
|
-
const n = l();
|
|
18
|
-
let r, i, s;
|
|
19
|
-
const o = m(t);
|
|
20
|
-
return n.WebKitCSSMatrix ? (i = o.transform || o.webkitTransform, i.split(",").length > 6 && (i = i.split(", ").map((a) => a.replace(",", ".")).join(", ")), s = new n.WebKitCSSMatrix(i === "none" ? "" : i)) : (s = o.MozTransform || o.OTransform || o.MsTransform || o.msTransform || o.transform || o.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), r = s.toString().split(",")), e === "x" && (n.WebKitCSSMatrix ? i = s.m41 : r.length === 16 ? i = parseFloat(r[12]) : i = parseFloat(r[4])), e === "y" && (n.WebKitCSSMatrix ? i = s.m42 : r.length === 16 ? i = parseFloat(r[13]) : i = parseFloat(r[5])), i || 0;
|
|
21
|
-
}
|
|
22
|
-
function T(t) {
|
|
23
|
-
return typeof t == "object" && t !== null && t.constructor && Object.prototype.toString.call(t).slice(8, -1) === "Object";
|
|
24
|
-
}
|
|
25
|
-
function S(t, e = "") {
|
|
26
|
-
const n = l(), r = [...t.children];
|
|
27
|
-
return n.HTMLSlotElement && t instanceof HTMLSlotElement && r.push(...t.assignedElements()), e ? r.filter((i) => i.matches(e)) : r;
|
|
28
|
-
}
|
|
29
|
-
function h(t, e = []) {
|
|
30
|
-
const n = document.createElement(t);
|
|
31
|
-
return n.classList.add(...Array.isArray(e) ? e : u(e)), n;
|
|
32
|
-
}
|
|
33
|
-
function w(t) {
|
|
34
|
-
const e = l(), n = f(), r = t.getBoundingClientRect(), i = n.body, s = t.clientTop || i.clientTop || 0, o = t.clientLeft || i.clientLeft || 0, a = t === e ? e.scrollY : t.scrollTop, c = t === e ? e.scrollX : t.scrollLeft;
|
|
35
|
-
return {
|
|
36
|
-
top: r.top + a - s,
|
|
37
|
-
left: r.left + c - o
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
function L(t) {
|
|
41
|
-
let e = t, n;
|
|
42
|
-
if (e) {
|
|
43
|
-
for (n = 0; (e = e.previousSibling) !== null; )
|
|
44
|
-
e.nodeType === 1 && (n += 1);
|
|
45
|
-
return n;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
function M(t, e) {
|
|
49
|
-
const n = [];
|
|
50
|
-
let r = t.parentElement;
|
|
51
|
-
for (; r; )
|
|
52
|
-
e ? r.matches(e) && n.push(r) : n.push(r), r = r.parentElement;
|
|
53
|
-
return n;
|
|
54
|
-
}
|
|
55
|
-
function b(t, e) {
|
|
56
|
-
function n(r) {
|
|
57
|
-
r.target === t && (e.call(t, r), t.removeEventListener("transitionend", n));
|
|
58
|
-
}
|
|
59
|
-
e && t.addEventListener("transitionend", n);
|
|
60
|
-
}
|
|
61
|
-
function x(t, e, n) {
|
|
62
|
-
const r = l();
|
|
63
|
-
return t[e === "width" ? "offsetWidth" : "offsetHeight"] + parseFloat(r.getComputedStyle(t, null).getPropertyValue(e === "width" ? "margin-right" : "margin-top")) + parseFloat(r.getComputedStyle(t, null).getPropertyValue(e === "width" ? "margin-left" : "margin-bottom"));
|
|
64
|
-
}
|
|
65
|
-
function C(t) {
|
|
66
|
-
return (Array.isArray(t) ? t : [t]).filter((e) => !!e);
|
|
67
|
-
}
|
|
68
|
-
function E(t, e = "") {
|
|
69
|
-
typeof trustedTypes < "u" ? t.innerHTML = trustedTypes.createPolicy("html", {
|
|
70
|
-
createHTML: (n) => n
|
|
71
|
-
}).createHTML(e) : t.innerHTML = e;
|
|
72
|
-
}
|
|
73
|
-
export {
|
|
74
|
-
h as c,
|
|
75
|
-
M as d,
|
|
76
|
-
S as e,
|
|
77
|
-
w as f,
|
|
78
|
-
g as h,
|
|
79
|
-
x as i,
|
|
80
|
-
L as j,
|
|
81
|
-
u as k,
|
|
82
|
-
y as l,
|
|
83
|
-
C as m,
|
|
84
|
-
d as n,
|
|
85
|
-
b as o,
|
|
86
|
-
T as p,
|
|
87
|
-
E as s
|
|
88
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { default as e } from "../../../../node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/modules/controller.js";
|
|
2
|
-
import '../../../../assets/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/modules/autoplay.css';/* empty css */
|
|
3
|
-
export {
|
|
4
|
-
e as Controller
|
|
5
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { default as i } from "../../../../node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/modules/navigation.js";
|
|
2
|
-
import '../../../../assets/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/modules/navigation.css';/* empty css */
|
|
3
|
-
export {
|
|
4
|
-
i as Navigation
|
|
5
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { default as i } from "../../../../node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/modules/pagination.js";
|
|
2
|
-
import '../../../../assets/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/modules/pagination.css';/* empty css */
|
|
3
|
-
export {
|
|
4
|
-
i as Pagination
|
|
5
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { defineComponent as s, ref as u, provide as i, renderSlot as d } from "vue";
|
|
2
|
-
import "../../../node_modules/js-cookie/dist/js.cookie.js";
|
|
3
|
-
import { isEmptyObject as f } from "../../../node_modules/@wikicasa-dev/utilities/dist/utils/ObjectUtils.js";
|
|
4
|
-
import "date-fns";
|
|
5
|
-
import "../../../../../_virtual/polyline.js";
|
|
6
|
-
const y = /* @__PURE__ */ s({
|
|
7
|
-
__name: "BaseAccordion",
|
|
8
|
-
props: {
|
|
9
|
-
autoClose: { type: Boolean, default: !0 },
|
|
10
|
-
autoUpdate: { type: Boolean, default: !0 }
|
|
11
|
-
},
|
|
12
|
-
setup(l) {
|
|
13
|
-
const n = u(null), o = u(
|
|
14
|
-
{}
|
|
15
|
-
), c = (e, t) => {
|
|
16
|
-
if (l.autoClose && t && !f(t))
|
|
17
|
-
for (const a in t)
|
|
18
|
-
a !== `${e}` && (t[a].active = !1);
|
|
19
|
-
}, p = (e, t) => {
|
|
20
|
-
t && (t[e].active = !(t[e].active ?? !1));
|
|
21
|
-
}, r = (e, t) => {
|
|
22
|
-
c(e.id, t ?? o.value), n.value = e, p(e.id, t ?? o.value);
|
|
23
|
-
};
|
|
24
|
-
return i("handleClick", (e) => {
|
|
25
|
-
l.autoUpdate && r(e);
|
|
26
|
-
}), i("accordionItems", o), (e, t) => d(e.$slots, "default", {
|
|
27
|
-
updatePrev: r,
|
|
28
|
-
prev: n.value
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
export {
|
|
33
|
-
y as default
|
|
34
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { h as o } from "vue";
|
|
2
|
-
import { g as s } from "./DefaultValues-CpabIgVz.js";
|
|
3
|
-
const a = (r, { attrs: t }) => {
|
|
4
|
-
r = { ...s(), ...r };
|
|
5
|
-
const { width: e, height: i } = r;
|
|
6
|
-
return o(
|
|
7
|
-
"svg",
|
|
8
|
-
{
|
|
9
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
10
|
-
viewBox: "0 0 20.243 11.621",
|
|
11
|
-
width: `${e}`,
|
|
12
|
-
height: `${i}`,
|
|
13
|
-
class: r.class ?? "",
|
|
14
|
-
"aria-hidden": t["aria-hidden"] ?? "true"
|
|
15
|
-
},
|
|
16
|
-
o("path", {
|
|
17
|
-
fill: "none",
|
|
18
|
-
stroke: `${r["stroke-color"] ?? "#222"}`,
|
|
19
|
-
"stroke-linecap": "round",
|
|
20
|
-
"stroke-linejoin": "round",
|
|
21
|
-
"stroke-width": `${r["stroke-width"] ?? "3"}`,
|
|
22
|
-
d: "m18.121 2.121-8 8-8-8"
|
|
23
|
-
})
|
|
24
|
-
);
|
|
25
|
-
};
|
|
26
|
-
export {
|
|
27
|
-
a as ArrowIcon
|
|
28
|
-
};
|