@wikicasa-dev/components 1.7.26 → 1.7.28
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/AccessibleSelect.js +1 -1
- package/dist/BaseAutocomplete.js +1 -1
- package/dist/BaseComplexToggle.js +1 -2
- package/dist/BaseFloatingLabel.js +1 -2
- package/dist/BaseIcon.js +1 -2
- package/dist/BaseInput.js +1 -2
- package/dist/BaseModal.js +1 -1
- package/dist/BaseNavItem.js +1 -2
- package/dist/BasePagination.js +1 -1
- package/dist/BasePaper.js +1 -2
- package/dist/BaseShimmerLoader.js +13 -0
- package/dist/BaseSlider.js +6 -7
- package/dist/BaseSnackbar.js +1 -2
- package/dist/BaseTextarea.js +1 -2
- package/dist/BaseToggle.js +1 -2
- package/dist/BaseTooltip.js +1 -2
- package/dist/CheckboxBtn.js +1 -2
- package/dist/CheckboxGroup.js +1 -1
- package/dist/LineChart.js +1 -1
- package/dist/ShimmerMultiLine.js +24 -0
- package/dist/StaticSpinner.js +1 -2
- package/dist/SwiperCarousel.js +1 -1
- package/dist/UIKit/AccessibleSelect.vue.d.ts +10 -4
- package/dist/UIKit/Accordion/BaseAccordion.vue.d.ts +4 -3
- package/dist/UIKit/Accordion/BaseAccordionBtn.vue.d.ts +3 -3
- package/dist/UIKit/Accordion/BaseAccordionContent.vue.d.ts +2 -2
- package/dist/UIKit/Accordion/BaseAccordionItem.vue.d.ts +5 -4
- package/dist/UIKit/BaseAlert.vue.d.ts +4 -3
- package/dist/UIKit/BaseAutocomplete.vue.d.ts +29 -28
- package/dist/UIKit/BaseBadge.vue.d.ts +2 -2
- package/dist/UIKit/BaseButton.vue.d.ts +5 -4
- package/dist/UIKit/BaseCard.vue.d.ts +3 -3
- package/dist/UIKit/BaseComplexToggle.vue.d.ts +18 -17
- package/dist/UIKit/BaseDropDown.vue.d.ts +3 -3
- package/dist/UIKit/BaseFloatingLabel.vue.d.ts +4 -3
- package/dist/UIKit/BaseIcon.vue.d.ts +2 -2
- package/dist/UIKit/BaseInput.vue.d.ts +19 -18
- package/dist/UIKit/BaseModal.vue.d.ts +3 -3
- package/dist/UIKit/BaseNavItem.vue.d.ts +2 -2
- package/dist/UIKit/BasePagination.vue.d.ts +2 -2
- package/dist/UIKit/BasePaper.vue.d.ts +1 -1
- package/dist/UIKit/BaseSelect/SelectItem.vue.d.ts +3 -3
- package/dist/UIKit/BaseSlider.vue.d.ts +4 -3
- package/dist/UIKit/BaseSnackbar.vue.d.ts +5 -4
- package/dist/UIKit/BaseTextarea.vue.d.ts +15 -14
- package/dist/UIKit/BaseToggle.vue.d.ts +8 -8
- package/dist/UIKit/BaseTooltip.vue.d.ts +2 -2
- package/dist/UIKit/BaseUploadFile.vue.d.ts +5 -4
- package/dist/UIKit/Checkbox/CheckboxBtn.vue.d.ts +5 -4
- package/dist/UIKit/Checkbox/CheckboxGroup.vue.d.ts +5 -4
- package/dist/UIKit/Radio/RadioButton.vue.d.ts +3 -3
- package/dist/UIKit/Radio/RadioGroup.vue.d.ts +5 -5
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.vue.d.ts +9 -0
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.vue.d.ts +38 -0
- package/dist/UIKit/StaticSpinner.vue.d.ts +2 -2
- package/dist/UIKit/Tab/BaseTab.vue.d.ts +2 -2
- package/dist/UIKit/Tab/BaseTabPanel.vue.d.ts +2 -2
- package/dist/UIKit/Tab/BaseTabView.vue.d.ts +10 -9
- package/dist/assets/BaseCard.css +1 -1
- package/dist/assets/BaseShimmerLoader.css +1 -0
- package/dist/assets/BaseSlider.css +1 -1
- package/dist/assets/BaseTooltip.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/chart/DoughnutChart.vue.d.ts +4 -3
- package/dist/chart/LineChart.vue.d.ts +4 -3
- package/dist/chart/composables/useChartjsModules.d.ts +4 -3
- package/dist/chunks/{AccessibleSelect.vue_vue_type_script_setup_true_lang.5pqk7vlZ.js → AccessibleSelect.vue_vue_type_script_setup_true_lang.BQ4qQ7zr.js} +97 -86
- package/dist/chunks/BaseAlert.vue_vue_type_style_index_0_lang.BtqP_iYL.js +1 -2
- package/dist/chunks/{BaseAutocomplete.vue_vue_type_script_setup_true_lang.CVffB0Ai.js → BaseAutocomplete.vue_vue_type_script_setup_true_lang.CoHhyD4i.js} +1 -1
- package/dist/chunks/BaseBadge.vue_vue_type_style_index_0_lang.BOA1gBKu.js +1 -2
- package/dist/chunks/BaseCard.vue_vue_type_style_index_0_lang.w5aEohzG.js +1 -2
- package/dist/chunks/{BaseModal.vue_vue_type_style_index_0_lang.Cz2Kd5zD.js → BaseModal.vue_vue_type_style_index_0_lang.DmbmvbJg.js} +2 -3
- package/dist/chunks/{CheckboxGroup.vue_vue_type_script_setup_true_lang.DDtN9_Bg.js → CheckboxGroup.vue_vue_type_script_setup_true_lang.TNbYVnnF.js} +1 -1
- package/dist/chunks/LineChart.vue_vue_type_script_setup_true_lang.CNkvmtfq.js +37 -0
- package/dist/chunks/{SwiperCarousel.vue_vue_type_style_index_0_lang.DDYbH2A1.js → SwiperCarousel.vue_vue_type_style_index_0_lang.DydGEHWv.js} +162 -155
- package/dist/chunks/{index.DXfsARH3.js → index.C2AlqfUw.js} +316 -311
- package/dist/chunks/js.cookie.CkZE2oaL.js +95 -0
- package/dist/components/IntersectionObserver/IntersectionObservable.vue.d.ts +2 -2
- package/dist/components/IntersectionObserver/IntersectionObserver.vue.d.ts +3 -3
- package/dist/components/carousel/SwiperCarousel.vue.d.ts +6 -7
- package/dist/components/carousel/SwiperSlide.vue.d.ts +1 -1
- package/dist/composables/useFloatingLabel.d.ts +3 -2
- package/dist/composables/useKeyboardController.d.ts +2 -1
- package/dist/composables/useValidator.d.ts +2 -1
- package/dist/index.d.ts +40 -39
- package/dist/index.js +7 -8
- package/package.json +3 -3
- package/dist/chunks/LineChart.vue_vue_type_script_setup_true_lang.D1HsyTJq.js +0 -36
- package/dist/chunks/js.cookie.BQua9eWh.js +0 -101
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
function Ee(r) {
|
|
1
|
+
import { defineComponent as Ye, reactive as Me, ref as we, computed as k, onMounted as $e, openBlock as Y, createElementBlock as M, normalizeClass as $, createElementVNode as D, renderSlot as Te, Fragment as re, renderList as Ee, mergeProps as ye, createCommentVNode as J, withModifiers as ne, nextTick as We } from "vue";
|
|
2
|
+
import { Swiper as be } from "swiper";
|
|
3
|
+
import { r as Pe } from "./ObjectUtils.B1Dk4qsM.js";
|
|
4
|
+
import "./js.cookie.CkZE2oaL.js";
|
|
5
|
+
import '../assets/SwiperCarousel.css';function Se(r) {
|
|
7
6
|
return r !== null && typeof r == "object" && "constructor" in r && r.constructor === Object;
|
|
8
7
|
}
|
|
9
8
|
function ae(r, e) {
|
|
10
9
|
r === void 0 && (r = {}), e === void 0 && (e = {}), Object.keys(e).forEach((u) => {
|
|
11
|
-
typeof r[u] > "u" ? r[u] = e[u] :
|
|
10
|
+
typeof r[u] > "u" ? r[u] = e[u] : Se(e[u]) && Se(r[u]) && Object.keys(e[u]).length > 0 && ae(r[u], e[u]);
|
|
12
11
|
});
|
|
13
12
|
}
|
|
14
|
-
const
|
|
13
|
+
const Xe = {
|
|
15
14
|
body: {},
|
|
16
15
|
addEventListener() {
|
|
17
16
|
},
|
|
@@ -66,12 +65,12 @@ const xe = {
|
|
|
66
65
|
search: ""
|
|
67
66
|
}
|
|
68
67
|
};
|
|
69
|
-
function
|
|
68
|
+
function Le() {
|
|
70
69
|
const r = typeof document < "u" ? document : {};
|
|
71
|
-
return ae(r,
|
|
70
|
+
return ae(r, Xe), r;
|
|
72
71
|
}
|
|
73
|
-
const
|
|
74
|
-
document:
|
|
72
|
+
const Oe = {
|
|
73
|
+
document: Xe,
|
|
75
74
|
navigator: {
|
|
76
75
|
userAgent: ""
|
|
77
76
|
},
|
|
@@ -128,50 +127,50 @@ const We = {
|
|
|
128
127
|
typeof setTimeout > "u" || clearTimeout(r);
|
|
129
128
|
}
|
|
130
129
|
};
|
|
131
|
-
function
|
|
130
|
+
function V() {
|
|
132
131
|
const r = typeof window < "u" ? window : {};
|
|
133
|
-
return ae(r,
|
|
132
|
+
return ae(r, Oe), r;
|
|
134
133
|
}
|
|
135
|
-
function
|
|
134
|
+
function ke(r) {
|
|
136
135
|
return r === void 0 && (r = ""), r.trim().split(" ").filter((e) => !!e.trim());
|
|
137
136
|
}
|
|
138
|
-
function
|
|
137
|
+
function Ge(r, e) {
|
|
139
138
|
return e === void 0 && (e = 0), setTimeout(r, e);
|
|
140
139
|
}
|
|
141
|
-
function
|
|
140
|
+
function Ke() {
|
|
142
141
|
return Date.now();
|
|
143
142
|
}
|
|
144
|
-
function
|
|
145
|
-
const e =
|
|
143
|
+
function De(r) {
|
|
144
|
+
const e = V();
|
|
146
145
|
let u;
|
|
147
146
|
return e.getComputedStyle && (u = e.getComputedStyle(r, null)), !u && r.currentStyle && (u = r.currentStyle), u || (u = r.style), u;
|
|
148
147
|
}
|
|
149
|
-
function
|
|
148
|
+
function xe(r, e) {
|
|
150
149
|
e === void 0 && (e = "x");
|
|
151
|
-
const u =
|
|
150
|
+
const u = V();
|
|
152
151
|
let o, v, d;
|
|
153
|
-
const g =
|
|
152
|
+
const g = De(r);
|
|
154
153
|
return u.WebKitCSSMatrix ? (v = g.transform || g.webkitTransform, v.split(",").length > 6 && (v = v.split(", ").map((y) => y.replace(",", ".")).join(", ")), d = new u.WebKitCSSMatrix(v === "none" ? "" : v)) : (d = g.MozTransform || g.OTransform || g.MsTransform || g.msTransform || g.transform || g.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), o = d.toString().split(",")), e === "x" && (u.WebKitCSSMatrix ? v = d.m41 : o.length === 16 ? v = parseFloat(o[12]) : v = parseFloat(o[4])), e === "y" && (u.WebKitCSSMatrix ? v = d.m42 : o.length === 16 ? v = parseFloat(o[13]) : v = parseFloat(o[5])), v || 0;
|
|
155
154
|
}
|
|
156
|
-
function
|
|
155
|
+
function Ze(r) {
|
|
157
156
|
return typeof r == "object" && r !== null && r.constructor && Object.prototype.toString.call(r).slice(8, -1) === "Object";
|
|
158
157
|
}
|
|
159
|
-
function
|
|
158
|
+
function Ce(r, e) {
|
|
160
159
|
return e === void 0 && (e = ""), [...r.children].filter((u) => u.matches(e));
|
|
161
160
|
}
|
|
162
|
-
function
|
|
161
|
+
function Je(r, e) {
|
|
163
162
|
e === void 0 && (e = []);
|
|
164
163
|
const u = document.createElement(r);
|
|
165
|
-
return u.classList.add(...Array.isArray(e) ? e :
|
|
164
|
+
return u.classList.add(...Array.isArray(e) ? e : ke(e)), u;
|
|
166
165
|
}
|
|
167
|
-
function
|
|
168
|
-
const e =
|
|
166
|
+
function ze(r) {
|
|
167
|
+
const e = V(), u = Le(), o = r.getBoundingClientRect(), v = u.body, d = r.clientTop || v.clientTop || 0, g = r.clientLeft || v.clientLeft || 0, y = r === e ? e.scrollY : r.scrollTop, T = r === e ? e.scrollX : r.scrollLeft;
|
|
169
168
|
return {
|
|
170
169
|
top: o.top + y - d,
|
|
171
170
|
left: o.left + T - g
|
|
172
171
|
};
|
|
173
172
|
}
|
|
174
|
-
function
|
|
173
|
+
function Qe(r) {
|
|
175
174
|
let e = r, u;
|
|
176
175
|
if (e) {
|
|
177
176
|
for (u = 0; (e = e.previousSibling) !== null; )
|
|
@@ -186,27 +185,27 @@ function se(r, e) {
|
|
|
186
185
|
e ? o.matches(e) && u.push(o) : u.push(o), o = o.parentElement;
|
|
187
186
|
return u;
|
|
188
187
|
}
|
|
189
|
-
function
|
|
188
|
+
function Ue(r, e) {
|
|
190
189
|
function u(o) {
|
|
191
190
|
o.target === r && (e.call(r, o), r.removeEventListener("transitionend", u));
|
|
192
191
|
}
|
|
193
192
|
e && r.addEventListener("transitionend", u);
|
|
194
193
|
}
|
|
195
|
-
function
|
|
196
|
-
const o =
|
|
197
|
-
return
|
|
194
|
+
function _e(r, e, u) {
|
|
195
|
+
const o = V();
|
|
196
|
+
return r[e === "width" ? "offsetWidth" : "offsetHeight"] + parseFloat(o.getComputedStyle(r, null).getPropertyValue(e === "width" ? "margin-right" : "margin-top")) + parseFloat(o.getComputedStyle(r, null).getPropertyValue(e === "width" ? "margin-left" : "margin-bottom"));
|
|
198
197
|
}
|
|
199
|
-
function
|
|
198
|
+
function et(r) {
|
|
200
199
|
return (Array.isArray(r) ? r : [r]).filter((e) => !!e);
|
|
201
200
|
}
|
|
202
|
-
function
|
|
201
|
+
function Ie(r) {
|
|
203
202
|
let {
|
|
204
203
|
swiper: e,
|
|
205
204
|
extendParams: u,
|
|
206
205
|
on: o,
|
|
207
206
|
emit: v
|
|
208
207
|
} = r;
|
|
209
|
-
const d =
|
|
208
|
+
const d = V();
|
|
210
209
|
u({
|
|
211
210
|
zoom: {
|
|
212
211
|
enabled: !1,
|
|
@@ -265,7 +264,7 @@ function Oe(r) {
|
|
|
265
264
|
H = n;
|
|
266
265
|
}
|
|
267
266
|
});
|
|
268
|
-
function
|
|
267
|
+
function F() {
|
|
269
268
|
if (m.length < 2)
|
|
270
269
|
return 1;
|
|
271
270
|
const n = m[0].pageX, s = m[0].pageY, a = m[1].pageX, w = m[1].pageY;
|
|
@@ -288,11 +287,11 @@ function Oe(r) {
|
|
|
288
287
|
const n = t.imageEl.getBoundingClientRect();
|
|
289
288
|
return [(m[0].pageX + (m[1].pageX - m[0].pageX) / 2 - n.x - d.scrollX) / g, (m[0].pageY + (m[1].pageY - m[0].pageY) / 2 - n.y - d.scrollY) / g];
|
|
290
289
|
}
|
|
291
|
-
function
|
|
290
|
+
function N() {
|
|
292
291
|
return e.isElement ? "swiper-slide" : `.${e.params.slideClass}`;
|
|
293
292
|
}
|
|
294
293
|
function R(n) {
|
|
295
|
-
const s =
|
|
294
|
+
const s = N();
|
|
296
295
|
return !!(n.target.matches(s) || e.slides.filter((a) => a.contains(n.target)).length > 0);
|
|
297
296
|
}
|
|
298
297
|
function l(n) {
|
|
@@ -304,7 +303,7 @@ function Oe(r) {
|
|
|
304
303
|
return;
|
|
305
304
|
const s = e.params.zoom;
|
|
306
305
|
if (T = !1, I = !1, m.push(n), !(m.length < 2)) {
|
|
307
|
-
if (T = !0, t.scaleStart =
|
|
306
|
+
if (T = !0, t.scaleStart = F(), !t.slideEl) {
|
|
308
307
|
t.slideEl = n.target.closest(`.${e.params.slideClass}, swiper-slide`), t.slideEl || (t.slideEl = e.slides[e.activeIndex]);
|
|
309
308
|
let a = t.slideEl.querySelector(`.${s.containerClass}`);
|
|
310
309
|
if (a && (a = a.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), t.imageEl = a, a ? t.imageWrapEl = se(t.imageEl, `.${s.containerClass}`)[0] : t.imageWrapEl = void 0, !t.imageWrapEl) {
|
|
@@ -324,7 +323,7 @@ function Oe(r) {
|
|
|
324
323
|
if (!R(n))
|
|
325
324
|
return;
|
|
326
325
|
const s = e.params.zoom, a = e.zoom, w = m.findIndex((S) => S.pointerId === n.pointerId);
|
|
327
|
-
w >= 0 && (m[w] = n), !(m.length < 2) && (I = !0, t.scaleMove =
|
|
326
|
+
w >= 0 && (m[w] = n), !(m.length < 2) && (I = !0, t.scaleMove = F(), t.imageEl && (a.scale = t.scaleMove / t.scaleStart * g, a.scale > t.maxRatio && (a.scale = t.maxRatio - 1 + (a.scale - t.maxRatio + 1) ** 0.5), a.scale < s.minRatio && (a.scale = s.minRatio + 1 - (s.minRatio - a.scale + 1) ** 0.5), t.imageEl.style.transform = `translate3d(0,0,0) scale(${a.scale})`));
|
|
328
327
|
}
|
|
329
328
|
function h(n) {
|
|
330
329
|
if (!R(n) || n.pointerType === "mouse" && n.type === "pointerout")
|
|
@@ -332,6 +331,15 @@ function Oe(r) {
|
|
|
332
331
|
const s = e.params.zoom, a = e.zoom, w = m.findIndex((S) => S.pointerId === n.pointerId);
|
|
333
332
|
w >= 0 && m.splice(w, 1), !(!T || !I) && (T = !1, I = !1, t.imageEl && (a.scale = Math.max(Math.min(a.scale, t.maxRatio), s.minRatio), t.imageEl.style.transitionDuration = `${e.params.speed}ms`, t.imageEl.style.transform = `translate3d(0,0,0) scale(${a.scale})`, g = a.scale, y = !1, a.scale > 1 && t.slideEl ? t.slideEl.classList.add(`${s.zoomedSlideClass}`) : a.scale <= 1 && t.slideEl && t.slideEl.classList.remove(`${s.zoomedSlideClass}`), a.scale === 1 && (t.originX = 0, t.originY = 0, t.slideEl = void 0)));
|
|
334
333
|
}
|
|
334
|
+
let E;
|
|
335
|
+
function j() {
|
|
336
|
+
e.touchEventsData.preventTouchMoveFromPointerMove = !1;
|
|
337
|
+
}
|
|
338
|
+
function U() {
|
|
339
|
+
clearTimeout(E), e.touchEventsData.preventTouchMoveFromPointerMove = !0, E = setTimeout(() => {
|
|
340
|
+
j();
|
|
341
|
+
});
|
|
342
|
+
}
|
|
335
343
|
function b(n) {
|
|
336
344
|
const s = e.device;
|
|
337
345
|
if (!t.imageEl || i.isTouched)
|
|
@@ -340,34 +348,32 @@ function Oe(r) {
|
|
|
340
348
|
const a = m.length > 0 ? m[0] : n;
|
|
341
349
|
i.touchesStart.x = a.pageX, i.touchesStart.y = a.pageY;
|
|
342
350
|
}
|
|
343
|
-
function
|
|
351
|
+
function x(n) {
|
|
344
352
|
if (!R(n) || !l(n))
|
|
345
353
|
return;
|
|
346
354
|
const s = e.zoom;
|
|
347
355
|
if (!t.imageEl || !i.isTouched || !t.slideEl)
|
|
348
356
|
return;
|
|
349
|
-
i.isMoved || (i.width = t.imageEl.offsetWidth, i.height = t.imageEl.offsetHeight, i.startX =
|
|
357
|
+
i.isMoved || (i.width = t.imageEl.offsetWidth || t.imageEl.clientWidth, i.height = t.imageEl.offsetHeight || t.imageEl.clientHeight, i.startX = xe(t.imageWrapEl, "x") || 0, i.startY = xe(t.imageWrapEl, "y") || 0, t.slideWidth = t.slideEl.offsetWidth, t.slideHeight = t.slideEl.offsetHeight, t.imageWrapEl.style.transitionDuration = "0ms");
|
|
350
358
|
const a = i.width * s.scale, w = i.height * s.scale;
|
|
351
|
-
if (a < t.slideWidth && w < t.slideHeight)
|
|
352
|
-
return;
|
|
353
359
|
if (i.minX = Math.min(t.slideWidth / 2 - a / 2, 0), i.maxX = -i.minX, i.minY = Math.min(t.slideHeight / 2 - w / 2, 0), i.maxY = -i.minY, i.touchesCurrent.x = m.length > 0 ? m[0].pageX : n.pageX, i.touchesCurrent.y = m.length > 0 ? m[0].pageY : n.pageY, Math.max(Math.abs(i.touchesCurrent.x - i.touchesStart.x), Math.abs(i.touchesCurrent.y - i.touchesStart.y)) > 5 && (e.allowClick = !1), !i.isMoved && !y) {
|
|
354
360
|
if (e.isHorizontal() && (Math.floor(i.minX) === Math.floor(i.startX) && i.touchesCurrent.x < i.touchesStart.x || Math.floor(i.maxX) === Math.floor(i.startX) && i.touchesCurrent.x > i.touchesStart.x)) {
|
|
355
|
-
i.isTouched = !1;
|
|
361
|
+
i.isTouched = !1, j();
|
|
356
362
|
return;
|
|
357
363
|
}
|
|
358
364
|
if (!e.isHorizontal() && (Math.floor(i.minY) === Math.floor(i.startY) && i.touchesCurrent.y < i.touchesStart.y || Math.floor(i.maxY) === Math.floor(i.startY) && i.touchesCurrent.y > i.touchesStart.y)) {
|
|
359
|
-
i.isTouched = !1;
|
|
365
|
+
i.isTouched = !1, j();
|
|
360
366
|
return;
|
|
361
367
|
}
|
|
362
368
|
}
|
|
363
|
-
n.cancelable && n.preventDefault(), n.stopPropagation(), i.isMoved = !0;
|
|
369
|
+
n.cancelable && n.preventDefault(), n.stopPropagation(), U(), i.isMoved = !0;
|
|
364
370
|
const P = (s.scale - g) / (t.maxRatio - e.params.zoom.minRatio), {
|
|
365
371
|
originX: L,
|
|
366
372
|
originY: A
|
|
367
373
|
} = t;
|
|
368
374
|
i.currentX = i.touchesCurrent.x - i.touchesStart.x + i.startX + P * (i.width - L * 2), i.currentY = i.touchesCurrent.y - i.touchesStart.y + i.startY + P * (i.height - A * 2), i.currentX < i.minX && (i.currentX = i.minX + 1 - (i.minX - i.currentX + 1) ** 0.8), i.currentX > i.maxX && (i.currentX = i.maxX - 1 + (i.currentX - i.maxX + 1) ** 0.8), i.currentY < i.minY && (i.currentY = i.minY + 1 - (i.minY - i.currentY + 1) ** 0.8), i.currentY > i.maxY && (i.currentY = i.maxY - 1 + (i.currentY - i.maxY + 1) ** 0.8), p.prevPositionX || (p.prevPositionX = i.touchesCurrent.x), p.prevPositionY || (p.prevPositionY = i.touchesCurrent.y), p.prevTime || (p.prevTime = Date.now()), p.x = (i.touchesCurrent.x - p.prevPositionX) / (Date.now() - p.prevTime) / 2, p.y = (i.touchesCurrent.y - p.prevPositionY) / (Date.now() - p.prevTime) / 2, Math.abs(i.touchesCurrent.x - p.prevPositionX) < 2 && (p.x = 0), Math.abs(i.touchesCurrent.y - p.prevPositionY) < 2 && (p.y = 0), p.prevPositionX = i.touchesCurrent.x, p.prevPositionY = i.touchesCurrent.y, p.prevTime = Date.now(), t.imageWrapEl.style.transform = `translate3d(${i.currentX}px, ${i.currentY}px,0)`;
|
|
369
375
|
}
|
|
370
|
-
function
|
|
376
|
+
function z() {
|
|
371
377
|
const n = e.zoom;
|
|
372
378
|
if (!t.imageEl)
|
|
373
379
|
return;
|
|
@@ -384,41 +390,41 @@ function Oe(r) {
|
|
|
384
390
|
const G = i.width * n.scale, X = i.height * n.scale;
|
|
385
391
|
i.minX = Math.min(t.slideWidth / 2 - G / 2, 0), i.maxX = -i.minX, i.minY = Math.min(t.slideHeight / 2 - X / 2, 0), i.maxY = -i.minY, i.currentX = Math.max(Math.min(i.currentX, i.maxX), i.minX), i.currentY = Math.max(Math.min(i.currentY, i.maxY), i.minY), t.imageWrapEl.style.transitionDuration = `${A}ms`, t.imageWrapEl.style.transform = `translate3d(${i.currentX}px, ${i.currentY}px,0)`;
|
|
386
392
|
}
|
|
387
|
-
function
|
|
393
|
+
function C() {
|
|
388
394
|
const n = e.zoom;
|
|
389
395
|
t.slideEl && e.activeIndex !== e.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(`${e.params.zoom.zoomedSlideClass}`), n.scale = 1, g = 1, t.slideEl = void 0, t.imageEl = void 0, t.imageWrapEl = void 0, t.originX = 0, t.originY = 0);
|
|
390
396
|
}
|
|
391
|
-
function
|
|
397
|
+
function oe(n) {
|
|
392
398
|
const s = e.zoom, a = e.params.zoom;
|
|
393
399
|
if (!t.slideEl) {
|
|
394
|
-
n && n.target && (t.slideEl = n.target.closest(`.${e.params.slideClass}, swiper-slide`)), t.slideEl || (e.params.virtual && e.params.virtual.enabled && e.virtual ? t.slideEl =
|
|
395
|
-
let
|
|
396
|
-
|
|
400
|
+
n && n.target && (t.slideEl = n.target.closest(`.${e.params.slideClass}, swiper-slide`)), t.slideEl || (e.params.virtual && e.params.virtual.enabled && e.virtual ? t.slideEl = Ce(e.slidesEl, `.${e.params.slideActiveClass}`)[0] : t.slideEl = e.slides[e.activeIndex]);
|
|
401
|
+
let B = t.slideEl.querySelector(`.${a.containerClass}`);
|
|
402
|
+
B && (B = B.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), t.imageEl = B, B ? t.imageWrapEl = se(t.imageEl, `.${a.containerClass}`)[0] : t.imageWrapEl = void 0;
|
|
397
403
|
}
|
|
398
404
|
if (!t.imageEl || !t.imageWrapEl)
|
|
399
405
|
return;
|
|
400
406
|
e.params.cssMode && (e.wrapperEl.style.overflow = "hidden", e.wrapperEl.style.touchAction = "none"), t.slideEl.classList.add(`${a.zoomedSlideClass}`);
|
|
401
|
-
let w, S, P, L, A, G, X, O,
|
|
407
|
+
let w, S, P, L, A, G, X, O, pe, fe, ge, he, K, Z, _, ee, te, ie;
|
|
402
408
|
typeof i.touchesStart.x > "u" && n ? (w = n.pageX, S = n.pageY) : (w = i.touchesStart.x, S = i.touchesStart.y);
|
|
403
|
-
const
|
|
404
|
-
g === 1 &&
|
|
405
|
-
const
|
|
406
|
-
s.scale =
|
|
409
|
+
const q = typeof n == "number" ? n : null;
|
|
410
|
+
g === 1 && q && (w = void 0, S = void 0);
|
|
411
|
+
const ve = W();
|
|
412
|
+
s.scale = q || ve, g = q || ve, n && !(g === 1 && q) ? (te = t.slideEl.offsetWidth, ie = t.slideEl.offsetHeight, P = ze(t.slideEl).left + d.scrollX, L = ze(t.slideEl).top + d.scrollY, A = P + te / 2 - w, G = L + ie / 2 - S, pe = t.imageEl.offsetWidth || t.imageEl.clientWidth, fe = t.imageEl.offsetHeight || t.imageEl.clientHeight, ge = pe * s.scale, he = fe * s.scale, K = Math.min(te / 2 - ge / 2, 0), Z = Math.min(ie / 2 - he / 2, 0), _ = -K, ee = -Z, X = A * s.scale, O = G * s.scale, X < K && (X = K), X > _ && (X = _), O < Z && (O = Z), O > ee && (O = ee)) : (X = 0, O = 0), q && s.scale === 1 && (t.originX = 0, t.originY = 0), t.imageWrapEl.style.transitionDuration = "300ms", t.imageWrapEl.style.transform = `translate3d(${X}px, ${O}px,0)`, t.imageEl.style.transitionDuration = "300ms", t.imageEl.style.transform = `translate3d(0,0,0) scale(${s.scale})`;
|
|
407
413
|
}
|
|
408
|
-
function
|
|
414
|
+
function le() {
|
|
409
415
|
const n = e.zoom, s = e.params.zoom;
|
|
410
416
|
if (!t.slideEl) {
|
|
411
|
-
e.params.virtual && e.params.virtual.enabled && e.virtual ? t.slideEl =
|
|
417
|
+
e.params.virtual && e.params.virtual.enabled && e.virtual ? t.slideEl = Ce(e.slidesEl, `.${e.params.slideActiveClass}`)[0] : t.slideEl = e.slides[e.activeIndex];
|
|
412
418
|
let a = t.slideEl.querySelector(`.${s.containerClass}`);
|
|
413
419
|
a && (a = a.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), t.imageEl = a, a ? t.imageWrapEl = se(t.imageEl, `.${s.containerClass}`)[0] : t.imageWrapEl = void 0;
|
|
414
420
|
}
|
|
415
421
|
!t.imageEl || !t.imageWrapEl || (e.params.cssMode && (e.wrapperEl.style.overflow = "", e.wrapperEl.style.touchAction = ""), n.scale = 1, g = 1, 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(`${s.zoomedSlideClass}`), t.slideEl = void 0, t.originX = 0, t.originY = 0);
|
|
416
422
|
}
|
|
417
|
-
function
|
|
423
|
+
function ue(n) {
|
|
418
424
|
const s = e.zoom;
|
|
419
|
-
s.scale && s.scale !== 1 ?
|
|
425
|
+
s.scale && s.scale !== 1 ? le() : oe(n);
|
|
420
426
|
}
|
|
421
|
-
function
|
|
427
|
+
function ce() {
|
|
422
428
|
const n = e.params.passiveListeners ? {
|
|
423
429
|
passive: !0,
|
|
424
430
|
capture: !1
|
|
@@ -431,7 +437,7 @@ function Oe(r) {
|
|
|
431
437
|
activeListenerWithCapture: s
|
|
432
438
|
};
|
|
433
439
|
}
|
|
434
|
-
function
|
|
440
|
+
function de() {
|
|
435
441
|
const n = e.zoom;
|
|
436
442
|
if (n.enabled)
|
|
437
443
|
return;
|
|
@@ -439,12 +445,12 @@ function Oe(r) {
|
|
|
439
445
|
const {
|
|
440
446
|
passiveListener: s,
|
|
441
447
|
activeListenerWithCapture: a
|
|
442
|
-
} =
|
|
448
|
+
} = ce();
|
|
443
449
|
e.wrapperEl.addEventListener("pointerdown", f, s), e.wrapperEl.addEventListener("pointermove", c, a), ["pointerup", "pointercancel", "pointerout"].forEach((w) => {
|
|
444
450
|
e.wrapperEl.addEventListener(w, h, s);
|
|
445
|
-
}), e.wrapperEl.addEventListener("pointermove",
|
|
451
|
+
}), e.wrapperEl.addEventListener("pointermove", x, a);
|
|
446
452
|
}
|
|
447
|
-
function
|
|
453
|
+
function me() {
|
|
448
454
|
const n = e.zoom;
|
|
449
455
|
if (!n.enabled)
|
|
450
456
|
return;
|
|
@@ -452,34 +458,34 @@ function Oe(r) {
|
|
|
452
458
|
const {
|
|
453
459
|
passiveListener: s,
|
|
454
460
|
activeListenerWithCapture: a
|
|
455
|
-
} =
|
|
461
|
+
} = ce();
|
|
456
462
|
e.wrapperEl.removeEventListener("pointerdown", f, s), e.wrapperEl.removeEventListener("pointermove", c, a), ["pointerup", "pointercancel", "pointerout"].forEach((w) => {
|
|
457
463
|
e.wrapperEl.removeEventListener(w, h, s);
|
|
458
|
-
}), e.wrapperEl.removeEventListener("pointermove",
|
|
464
|
+
}), e.wrapperEl.removeEventListener("pointermove", x, a);
|
|
459
465
|
}
|
|
460
466
|
o("init", () => {
|
|
461
|
-
e.params.zoom.enabled &&
|
|
467
|
+
e.params.zoom.enabled && de();
|
|
462
468
|
}), o("destroy", () => {
|
|
463
|
-
|
|
469
|
+
me();
|
|
464
470
|
}), o("touchStart", (n, s) => {
|
|
465
471
|
e.zoom.enabled && b(s);
|
|
466
472
|
}), o("touchEnd", (n, s) => {
|
|
467
|
-
e.zoom.enabled &&
|
|
473
|
+
e.zoom.enabled && z();
|
|
468
474
|
}), o("doubleTap", (n, s) => {
|
|
469
|
-
!e.animating && e.params.zoom.enabled && e.zoom.enabled && e.params.zoom.toggle &&
|
|
475
|
+
!e.animating && e.params.zoom.enabled && e.zoom.enabled && e.params.zoom.toggle && ue(s);
|
|
470
476
|
}), o("transitionEnd", () => {
|
|
471
|
-
e.zoom.enabled && e.params.zoom.enabled &&
|
|
477
|
+
e.zoom.enabled && e.params.zoom.enabled && C();
|
|
472
478
|
}), o("slideChange", () => {
|
|
473
|
-
e.zoom.enabled && e.params.zoom.enabled && e.params.cssMode &&
|
|
479
|
+
e.zoom.enabled && e.params.zoom.enabled && e.params.cssMode && C();
|
|
474
480
|
}), Object.assign(e.zoom, {
|
|
475
|
-
enable:
|
|
476
|
-
disable:
|
|
477
|
-
in:
|
|
478
|
-
out:
|
|
479
|
-
toggle:
|
|
481
|
+
enable: de,
|
|
482
|
+
disable: me,
|
|
483
|
+
in: oe,
|
|
484
|
+
out: le,
|
|
485
|
+
toggle: ue
|
|
480
486
|
});
|
|
481
487
|
}
|
|
482
|
-
const
|
|
488
|
+
const Re = ["id"], Ae = ["id", "data-cy"], He = ["data-idx", "loading", "alt", "width", "height", "onLoad"], Fe = ["id"], je = ["loading", "alt"], tt = /* @__PURE__ */ Ye({
|
|
483
489
|
inheritAttrs: !1,
|
|
484
490
|
__name: "SwiperCarousel",
|
|
485
491
|
props: {
|
|
@@ -494,11 +500,11 @@ const ke = ["id"], De = ["id", "data-cy"], Ie = ["data-idx", "loading", "alt", "
|
|
|
494
500
|
},
|
|
495
501
|
emits: ["moved", "click", "firstSlideLoaded"],
|
|
496
502
|
setup(r, { expose: e, emit: u }) {
|
|
497
|
-
const o = r, v = u, d =
|
|
498
|
-
swiperParams: { modules: [
|
|
503
|
+
const o = r, v = u, d = Me({
|
|
504
|
+
swiperParams: { modules: [Ie] },
|
|
499
505
|
swiper: null,
|
|
500
506
|
initCarousel: !1
|
|
501
|
-
}), g =
|
|
507
|
+
}), g = we(), y = k(() => o.swiperOptions?.slidesPerView || 1), T = k(() => o.thumbSwiperOptions?.slidesPerView || 1), I = k(() => !!o.swiperOptions?.keyboard), m = k(() => {
|
|
502
508
|
const l = o.swiperOptions;
|
|
503
509
|
return l ? !!l.navigation : !1;
|
|
504
510
|
}), t = k(() => {
|
|
@@ -510,26 +516,26 @@ const ke = ["id"], De = ["id", "data-cy"], Ie = ["data-idx", "loading", "alt", "
|
|
|
510
516
|
}), p = k(
|
|
511
517
|
() => o.swiperOptions?.effect || "slider"
|
|
512
518
|
), H = () => {
|
|
513
|
-
o.swiperOptions &&
|
|
514
|
-
},
|
|
519
|
+
o.swiperOptions && Pe(o.swiperOptions, d.swiperParams);
|
|
520
|
+
}, F = (l, f = -1) => {
|
|
515
521
|
if (!l.images)
|
|
516
522
|
return { src: l.src || "" };
|
|
517
|
-
let c = "", h = "",
|
|
523
|
+
let c = "", h = "", E = "";
|
|
518
524
|
if (o.artDirection) {
|
|
519
|
-
for (const
|
|
520
|
-
const { mq: x, width:
|
|
521
|
-
|
|
525
|
+
for (const b in o.artDirection) {
|
|
526
|
+
const { mq: x, width: z } = o.artDirection[b];
|
|
527
|
+
z && (E += E ? `,${x} ${parseInt(z)}px` : `${x} ${parseInt(z)}px`);
|
|
522
528
|
}
|
|
523
|
-
h = l.images.reduce((
|
|
524
|
-
const
|
|
525
|
-
return !
|
|
529
|
+
h = l.images.reduce((b, x, z) => {
|
|
530
|
+
const C = Object.values(o.artDirection)[z];
|
|
531
|
+
return !C || !C.width || (b += b ? `, ${x.storagePath} ${C.width}` : `${x.storagePath} ${C.width}`), b;
|
|
526
532
|
}, ""), c = l.images[0].storagePath;
|
|
527
533
|
} else {
|
|
528
|
-
let
|
|
529
|
-
l.images.length > 3 ?
|
|
534
|
+
let b = l.images;
|
|
535
|
+
l.images.length > 3 ? b = l.images.slice(2, 5) : o.shiftFirstImage && (b[0] = b[1]), h = b.reduce((x, z, C) => (C === 0 && (c = `${z.storagePath}`), C > 0 && (x += ", "), `${x}${z.storagePath} ${C + 1}x`), "");
|
|
530
536
|
}
|
|
531
|
-
const
|
|
532
|
-
return typeof y.value == "number" && f > y.value ? (c = "", h = "", { sizes:
|
|
537
|
+
const j = c, U = h;
|
|
538
|
+
return typeof y.value == "number" && f > y.value ? (c = "", h = "", { sizes: E, "data-src": j, "data-srcset": U }) : { src: c, srcset: h, sizes: E };
|
|
533
539
|
}, W = [], Q = (l) => {
|
|
534
540
|
if (typeof y.value == "string")
|
|
535
541
|
return;
|
|
@@ -544,30 +550,30 @@ const ke = ["id"], De = ["id", "data-cy"], Ie = ["data-idx", "loading", "alt", "
|
|
|
544
550
|
d.swiper && d.swiper.slideTo(l, f, c);
|
|
545
551
|
}
|
|
546
552
|
});
|
|
547
|
-
const
|
|
548
|
-
l === 0 && W && W[l] &&
|
|
549
|
-
|
|
553
|
+
const N = we(null), R = (l) => {
|
|
554
|
+
l === 0 && W && W[l] && We(() => {
|
|
555
|
+
N.value?.setAttribute("data-first-slide-loaded", "true"), v("firstSlideLoaded");
|
|
550
556
|
});
|
|
551
557
|
};
|
|
552
|
-
return
|
|
558
|
+
return $e(async () => {
|
|
553
559
|
if (H(), I.value) {
|
|
554
|
-
const { Keyboard: c } = await import("./index.
|
|
560
|
+
const { Keyboard: c } = await import("./index.C2AlqfUw.js");
|
|
555
561
|
d.swiperParams.modules?.push(c), d.swiperParams.keyboard = o.swiperOptions.keyboard;
|
|
556
562
|
}
|
|
557
563
|
if (t.value) {
|
|
558
|
-
const { Pagination: c } = await import("./index.
|
|
564
|
+
const { Pagination: c } = await import("./index.C2AlqfUw.js");
|
|
559
565
|
d.swiperParams.modules?.push(c), d.swiperParams.pagination = {
|
|
560
566
|
el: ".swiper-pagination",
|
|
561
|
-
renderFraction: (h,
|
|
567
|
+
renderFraction: (h, E) => `<div class="uikit-rounded-xs uikit-border-w-black uikit-border uikit-border-solid uikit-px-3 uikit-bg-white uikit-pt-[3px] uikit-pb-[3px]">
|
|
562
568
|
<span data-cy="swiper-pagination-current" class="${h}"></span>
|
|
563
569
|
/
|
|
564
|
-
<span data-cy="swiper-pagination-total" class="${
|
|
570
|
+
<span data-cy="swiper-pagination-total" class="${E}"></span>
|
|
565
571
|
</div>`,
|
|
566
572
|
...typeof d.swiperParams.pagination == "boolean" ? {} : d.swiperParams.pagination
|
|
567
573
|
};
|
|
568
574
|
}
|
|
569
575
|
if (m.value) {
|
|
570
|
-
const { Navigation: c } = await import("./index.
|
|
576
|
+
const { Navigation: c } = await import("./index.C2AlqfUw.js");
|
|
571
577
|
d.swiperParams.modules?.push(c);
|
|
572
578
|
const h = {
|
|
573
579
|
...o.swiperOptions.navigation.nextEl ?? {
|
|
@@ -583,7 +589,7 @@ const ke = ["id"], De = ["id", "data-cy"], Ie = ["data-idx", "loading", "alt", "
|
|
|
583
589
|
};
|
|
584
590
|
}
|
|
585
591
|
if (i.value) {
|
|
586
|
-
const { Autoplay: c } = await import("./index.
|
|
592
|
+
const { Autoplay: c } = await import("./index.C2AlqfUw.js");
|
|
587
593
|
d.swiperParams.modules?.push(c), d.swiperParams.autoplay = o.swiperOptions.autoplay;
|
|
588
594
|
}
|
|
589
595
|
const l = {
|
|
@@ -596,70 +602,70 @@ const ke = ["id"], De = ["id", "data-cy"], Ie = ["data-idx", "loading", "alt", "
|
|
|
596
602
|
};
|
|
597
603
|
let f = null;
|
|
598
604
|
if (o.thumbSwiperOptions) {
|
|
599
|
-
const { Thumbs: c, FreeMode: h, Controller:
|
|
600
|
-
d.swiperParams.modules?.push(c), d.swiperParams.modules?.push(
|
|
605
|
+
const { Thumbs: c, FreeMode: h, Controller: E } = await import("./index.C2AlqfUw.js");
|
|
606
|
+
d.swiperParams.modules?.push(c), d.swiperParams.modules?.push(E), f = new be(`#thumb_${o.id}`, {
|
|
601
607
|
...o.thumbSwiperOptions,
|
|
602
608
|
modules: [h]
|
|
603
609
|
}), l.thumbs = {
|
|
604
610
|
swiper: f
|
|
605
611
|
};
|
|
606
612
|
}
|
|
607
|
-
l.lazyPreloadPrevNext = 1, d.swiper = new
|
|
608
|
-
}), (l, f) => (Y(),
|
|
613
|
+
l.lazyPreloadPrevNext = 1, d.swiper = new be(`#${o.id}`, l), g.value?.classList.remove("uikit-hidden");
|
|
614
|
+
}), (l, f) => (Y(), M("div", {
|
|
609
615
|
id: `root-${l.id}`,
|
|
610
616
|
ref_key: "root",
|
|
611
|
-
ref:
|
|
612
|
-
class:
|
|
617
|
+
ref: N,
|
|
618
|
+
class: $(["swiper-carousel-root", l.$attrs["root-classes"]])
|
|
613
619
|
}, [
|
|
614
620
|
D("div", {
|
|
615
621
|
id: l.id,
|
|
616
622
|
"data-cy": l.$attrs["data-cy"],
|
|
617
|
-
class:
|
|
623
|
+
class: $(["swiper", l.$attrs["swiper-classes"]])
|
|
618
624
|
}, [
|
|
619
625
|
D("div", {
|
|
620
626
|
ref_key: "swiperWrapper",
|
|
621
627
|
ref: g,
|
|
622
|
-
class:
|
|
628
|
+
class: $(["swiper-wrapper", [
|
|
623
629
|
l.$attrs["swiper-wrapper-classes"],
|
|
624
630
|
p.value === "none" && "no-transition"
|
|
625
631
|
]]),
|
|
626
632
|
onClick: f[0] || (f[0] = (c) => v("click"))
|
|
627
633
|
}, [
|
|
628
|
-
|
|
629
|
-
(Y(!0),
|
|
634
|
+
Te(l.$slots, "default", {}, () => [
|
|
635
|
+
(Y(!0), M(re, null, Ee(l.images, (c, h) => (Y(), M("div", {
|
|
630
636
|
key: `swiper_${l.id}_${h}`,
|
|
631
|
-
class:
|
|
637
|
+
class: $(["swiper-slide", l.$attrs["swiper-slide-classes"]])
|
|
632
638
|
}, [
|
|
633
639
|
D("div", {
|
|
634
|
-
class:
|
|
640
|
+
class: $(["swiper-zoom-container", l.$attrs["swiper-zoom-container-classes"]])
|
|
635
641
|
}, [
|
|
636
|
-
l.backgroundImage ? J("", !0) : (Y(),
|
|
642
|
+
l.backgroundImage ? J("", !0) : (Y(), M("img", ye({
|
|
637
643
|
key: 0,
|
|
638
644
|
ref_for: !0,
|
|
639
|
-
ref: (
|
|
640
|
-
W.push(
|
|
645
|
+
ref: (E) => {
|
|
646
|
+
W.push(E);
|
|
641
647
|
},
|
|
642
648
|
class: ["disable-select", [l.$attrs["slide-img-classes"] || c.classes]],
|
|
643
649
|
"data-idx": `${l.id}-slide-img-${h}`
|
|
644
|
-
},
|
|
650
|
+
}, F(c, h), {
|
|
645
651
|
loading: l.lazyLoadImages || h >= y.value ? "lazy" : void 0,
|
|
646
652
|
alt: c.alt,
|
|
647
653
|
itemprop: "image",
|
|
648
654
|
width: c.width,
|
|
649
655
|
height: c.height,
|
|
650
|
-
onLoad: (
|
|
651
|
-
}), null, 16,
|
|
656
|
+
onLoad: (E) => R(h)
|
|
657
|
+
}), null, 16, He))
|
|
652
658
|
], 2)
|
|
653
659
|
], 2))), 128))
|
|
654
660
|
])
|
|
655
661
|
], 2),
|
|
656
|
-
t.value ? (Y(),
|
|
662
|
+
t.value ? (Y(), M("div", {
|
|
657
663
|
key: 0,
|
|
658
|
-
class:
|
|
664
|
+
class: $([l.$attrs["swiper-pagination-classes"], "swiper-pagination [&.swiper-pagination-fraction]:uikit-flex [&.swiper-pagination-fraction]:uikit-justify-center"]),
|
|
659
665
|
onClick: f[1] || (f[1] = ne(() => {
|
|
660
666
|
}, ["stop"]))
|
|
661
667
|
}, null, 2)) : J("", !0),
|
|
662
|
-
m.value ? (Y(),
|
|
668
|
+
m.value ? (Y(), M(re, { key: 1 }, [
|
|
663
669
|
D("div", {
|
|
664
670
|
class: "swiper-button-prev",
|
|
665
671
|
"data-cy": "swiper-button-prev",
|
|
@@ -673,46 +679,47 @@ const ke = ["id"], De = ["id", "data-cy"], Ie = ["data-idx", "loading", "alt", "
|
|
|
673
679
|
}, ["stop"]))
|
|
674
680
|
})
|
|
675
681
|
], 64)) : J("", !0)
|
|
676
|
-
], 10,
|
|
677
|
-
l.thumbSwiperOptions ? (Y(),
|
|
682
|
+
], 10, Ae),
|
|
683
|
+
l.thumbSwiperOptions ? (Y(), M("div", {
|
|
678
684
|
key: 0,
|
|
679
685
|
id: `thumb_${l.id}`,
|
|
680
686
|
thumbsSlider: "",
|
|
681
|
-
class:
|
|
687
|
+
class: $(["swiper", l.$attrs["thumb-swiper-classes"]])
|
|
682
688
|
}, [
|
|
683
689
|
D("div", {
|
|
684
|
-
class:
|
|
690
|
+
class: $(["swiper-wrapper", l.$attrs["thumb-swiper-wrapper-classes"]])
|
|
685
691
|
}, [
|
|
686
|
-
(Y(!0),
|
|
692
|
+
(Y(!0), M(re, null, Ee(l.images, (c, h) => (Y(), M("div", {
|
|
687
693
|
key: `thumb_${l.id}_${h}`,
|
|
688
|
-
class:
|
|
694
|
+
class: $(["swiper-slide", l.$attrs["thumb-img-wrapper-classes"]])
|
|
689
695
|
}, [
|
|
690
|
-
D("img",
|
|
691
|
-
class: l.$attrs["thumb-img-classes"]
|
|
692
|
-
|
|
696
|
+
D("img", ye({
|
|
697
|
+
class: l.$attrs["thumb-img-classes"],
|
|
698
|
+
ref_for: !0
|
|
699
|
+
}, F(c), {
|
|
693
700
|
loading: h >= T.value ? "lazy" : void 0,
|
|
694
701
|
alt: c.alt
|
|
695
|
-
}), null, 16,
|
|
702
|
+
}), null, 16, je)
|
|
696
703
|
], 2))), 128))
|
|
697
704
|
], 2)
|
|
698
|
-
], 10,
|
|
699
|
-
], 10,
|
|
705
|
+
], 10, Fe)) : J("", !0)
|
|
706
|
+
], 10, Re));
|
|
700
707
|
}
|
|
701
708
|
});
|
|
702
709
|
export {
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
710
|
+
Ie as Z,
|
|
711
|
+
tt as _,
|
|
712
|
+
V as a,
|
|
713
|
+
ze as b,
|
|
714
|
+
Ce as c,
|
|
715
|
+
Je as d,
|
|
709
716
|
se as e,
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
717
|
+
_e as f,
|
|
718
|
+
Le as g,
|
|
719
|
+
Qe as h,
|
|
720
|
+
Ue as i,
|
|
721
|
+
Ze as j,
|
|
722
|
+
Ke as k,
|
|
723
|
+
et as m,
|
|
724
|
+
Ge as n
|
|
718
725
|
};
|