@wikicasa-dev/components 2.0.50 → 2.0.52
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/CheckboxGroup.js +1 -1
- package/dist/SwiperCarousel.js +1 -1
- package/dist/assets/SwiperCarousel.css +1 -1
- package/dist/chunks/{CheckboxGroup.vue_vue_type_script_setup_true_lang.Cf8YnCGf.js → CheckboxGroup.vue_vue_type_script_setup_true_lang.BC3hlJfx.js} +14 -14
- package/dist/chunks/SwiperCarousel.ZCDTriDD.js +720 -0
- package/dist/chunks/{index.D6IWh9UY.js → index.DzeXT3uf.js} +2 -2
- package/dist/components/carousel/SwiperCarousel.vue.d.ts +4 -8
- package/dist/index.js +2 -2
- package/package.json +28 -27
- package/dist/chunks/SwiperCarousel.DWUl3bgn.js +0 -718
|
@@ -0,0 +1,720 @@
|
|
|
1
|
+
import { defineComponent as $e, reactive as Te, ref as se, useId as We, computed as P, onMounted as Pe, watch as Le, nextTick as Ee, openBlock as $, createElementBlock as T, normalizeClass as W, createElementVNode as I, renderSlot as ye, Fragment as ae, renderList as be, mergeProps as Se, createCommentVNode as _, withModifiers as oe } from "vue";
|
|
2
|
+
import { Swiper as xe } from "swiper";
|
|
3
|
+
import "./types-B0dZ7OiV.D29wNgoj.js";
|
|
4
|
+
import { i as ke } from "./ObjectUtils.BOUbloeg.js";
|
|
5
|
+
import { _ as Oe } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
6
|
+
import '../assets/SwiperCarousel.css';function Ce(n) {
|
|
7
|
+
return n !== null && typeof n == "object" && "constructor" in n && n.constructor === Object;
|
|
8
|
+
}
|
|
9
|
+
function ue(n, e) {
|
|
10
|
+
n === void 0 && (n = {}), e === void 0 && (e = {}), Object.keys(e).forEach((o) => {
|
|
11
|
+
typeof n[o] > "u" ? n[o] = e[o] : Ce(e[o]) && Ce(n[o]) && Object.keys(e[o]).length > 0 && ue(n[o], e[o]);
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
const Me = {
|
|
15
|
+
body: {},
|
|
16
|
+
addEventListener() {
|
|
17
|
+
},
|
|
18
|
+
removeEventListener() {
|
|
19
|
+
},
|
|
20
|
+
activeElement: {
|
|
21
|
+
blur() {
|
|
22
|
+
},
|
|
23
|
+
nodeName: ""
|
|
24
|
+
},
|
|
25
|
+
querySelector() {
|
|
26
|
+
return null;
|
|
27
|
+
},
|
|
28
|
+
querySelectorAll() {
|
|
29
|
+
return [];
|
|
30
|
+
},
|
|
31
|
+
getElementById() {
|
|
32
|
+
return null;
|
|
33
|
+
},
|
|
34
|
+
createEvent() {
|
|
35
|
+
return {
|
|
36
|
+
initEvent() {
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
},
|
|
40
|
+
createElement() {
|
|
41
|
+
return {
|
|
42
|
+
children: [],
|
|
43
|
+
childNodes: [],
|
|
44
|
+
style: {},
|
|
45
|
+
setAttribute() {
|
|
46
|
+
},
|
|
47
|
+
getElementsByTagName() {
|
|
48
|
+
return [];
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
},
|
|
52
|
+
createElementNS() {
|
|
53
|
+
return {};
|
|
54
|
+
},
|
|
55
|
+
importNode() {
|
|
56
|
+
return null;
|
|
57
|
+
},
|
|
58
|
+
location: {
|
|
59
|
+
hash: "",
|
|
60
|
+
host: "",
|
|
61
|
+
hostname: "",
|
|
62
|
+
href: "",
|
|
63
|
+
origin: "",
|
|
64
|
+
pathname: "",
|
|
65
|
+
protocol: "",
|
|
66
|
+
search: ""
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
function De() {
|
|
70
|
+
const n = typeof document < "u" ? document : {};
|
|
71
|
+
return ue(n, Me), n;
|
|
72
|
+
}
|
|
73
|
+
const Ie = {
|
|
74
|
+
document: Me,
|
|
75
|
+
navigator: {
|
|
76
|
+
userAgent: ""
|
|
77
|
+
},
|
|
78
|
+
location: {
|
|
79
|
+
hash: "",
|
|
80
|
+
host: "",
|
|
81
|
+
hostname: "",
|
|
82
|
+
href: "",
|
|
83
|
+
origin: "",
|
|
84
|
+
pathname: "",
|
|
85
|
+
protocol: "",
|
|
86
|
+
search: ""
|
|
87
|
+
},
|
|
88
|
+
history: {
|
|
89
|
+
replaceState() {
|
|
90
|
+
},
|
|
91
|
+
pushState() {
|
|
92
|
+
},
|
|
93
|
+
go() {
|
|
94
|
+
},
|
|
95
|
+
back() {
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
CustomEvent: function() {
|
|
99
|
+
return this;
|
|
100
|
+
},
|
|
101
|
+
addEventListener() {
|
|
102
|
+
},
|
|
103
|
+
removeEventListener() {
|
|
104
|
+
},
|
|
105
|
+
getComputedStyle() {
|
|
106
|
+
return {
|
|
107
|
+
getPropertyValue() {
|
|
108
|
+
return "";
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
},
|
|
112
|
+
Image() {
|
|
113
|
+
},
|
|
114
|
+
Date() {
|
|
115
|
+
},
|
|
116
|
+
screen: {},
|
|
117
|
+
setTimeout() {
|
|
118
|
+
},
|
|
119
|
+
clearTimeout() {
|
|
120
|
+
},
|
|
121
|
+
matchMedia() {
|
|
122
|
+
return {};
|
|
123
|
+
},
|
|
124
|
+
requestAnimationFrame(n) {
|
|
125
|
+
return typeof setTimeout > "u" ? (n(), null) : setTimeout(n, 0);
|
|
126
|
+
},
|
|
127
|
+
cancelAnimationFrame(n) {
|
|
128
|
+
typeof setTimeout > "u" || clearTimeout(n);
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
function q() {
|
|
132
|
+
const n = typeof window < "u" ? window : {};
|
|
133
|
+
return ue(n, Ie), n;
|
|
134
|
+
}
|
|
135
|
+
function Re(n) {
|
|
136
|
+
return n === void 0 && (n = ""), n.trim().split(" ").filter((e) => !!e.trim());
|
|
137
|
+
}
|
|
138
|
+
function Ue(n, e) {
|
|
139
|
+
return e === void 0 && (e = 0), setTimeout(n, e);
|
|
140
|
+
}
|
|
141
|
+
function _e() {
|
|
142
|
+
return Date.now();
|
|
143
|
+
}
|
|
144
|
+
function Ae(n) {
|
|
145
|
+
const e = q();
|
|
146
|
+
let o;
|
|
147
|
+
return e.getComputedStyle && (o = e.getComputedStyle(n, null)), !o && n.currentStyle && (o = n.currentStyle), o || (o = n.style), o;
|
|
148
|
+
}
|
|
149
|
+
function ze(n, e) {
|
|
150
|
+
e === void 0 && (e = "x");
|
|
151
|
+
const o = q();
|
|
152
|
+
let c, d, w;
|
|
153
|
+
const h = Ae(n);
|
|
154
|
+
return o.WebKitCSSMatrix ? (d = h.transform || h.webkitTransform, d.split(",").length > 6 && (d = d.split(", ").map((Y) => Y.replace(",", ".")).join(", ")), w = new o.WebKitCSSMatrix(d === "none" ? "" : d)) : (w = h.MozTransform || h.OTransform || h.MsTransform || h.msTransform || h.transform || h.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), c = w.toString().split(",")), e === "x" && (o.WebKitCSSMatrix ? d = w.m41 : c.length === 16 ? d = parseFloat(c[12]) : d = parseFloat(c[4])), e === "y" && (o.WebKitCSSMatrix ? d = w.m42 : c.length === 16 ? d = parseFloat(c[13]) : d = parseFloat(c[5])), d || 0;
|
|
155
|
+
}
|
|
156
|
+
function et(n) {
|
|
157
|
+
return typeof n == "object" && n !== null && n.constructor && Object.prototype.toString.call(n).slice(8, -1) === "Object";
|
|
158
|
+
}
|
|
159
|
+
function Xe(n, e) {
|
|
160
|
+
e === void 0 && (e = "");
|
|
161
|
+
const o = [...n.children];
|
|
162
|
+
return n instanceof HTMLSlotElement && o.push(...n.assignedElements()), e ? o.filter((c) => c.matches(e)) : o;
|
|
163
|
+
}
|
|
164
|
+
function tt(n, e) {
|
|
165
|
+
e === void 0 && (e = []);
|
|
166
|
+
const o = document.createElement(n);
|
|
167
|
+
return o.classList.add(...Array.isArray(e) ? e : Re(e)), o;
|
|
168
|
+
}
|
|
169
|
+
function Ye(n) {
|
|
170
|
+
const e = q(), o = De(), c = n.getBoundingClientRect(), d = o.body, w = n.clientTop || d.clientTop || 0, h = n.clientLeft || d.clientLeft || 0, Y = n === e ? e.scrollY : n.scrollTop, E = n === e ? e.scrollX : n.scrollLeft;
|
|
171
|
+
return {
|
|
172
|
+
top: c.top + Y - w,
|
|
173
|
+
left: c.left + E - h
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
function it(n) {
|
|
177
|
+
let e = n, o;
|
|
178
|
+
if (e) {
|
|
179
|
+
for (o = 0; (e = e.previousSibling) !== null; )
|
|
180
|
+
e.nodeType === 1 && (o += 1);
|
|
181
|
+
return o;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
function le(n, e) {
|
|
185
|
+
const o = [];
|
|
186
|
+
let c = n.parentElement;
|
|
187
|
+
for (; c; )
|
|
188
|
+
e ? c.matches(e) && o.push(c) : o.push(c), c = c.parentElement;
|
|
189
|
+
return o;
|
|
190
|
+
}
|
|
191
|
+
function nt(n, e) {
|
|
192
|
+
function o(c) {
|
|
193
|
+
c.target === n && (e.call(n, c), n.removeEventListener("transitionend", o));
|
|
194
|
+
}
|
|
195
|
+
e && n.addEventListener("transitionend", o);
|
|
196
|
+
}
|
|
197
|
+
function rt(n, e, o) {
|
|
198
|
+
const c = q();
|
|
199
|
+
return n[e === "width" ? "offsetWidth" : "offsetHeight"] + parseFloat(c.getComputedStyle(n, null).getPropertyValue(e === "width" ? "margin-right" : "margin-top")) + parseFloat(c.getComputedStyle(n, null).getPropertyValue(e === "width" ? "margin-left" : "margin-bottom"));
|
|
200
|
+
}
|
|
201
|
+
function st(n) {
|
|
202
|
+
return (Array.isArray(n) ? n : [n]).filter((e) => !!e);
|
|
203
|
+
}
|
|
204
|
+
function He(n) {
|
|
205
|
+
let {
|
|
206
|
+
swiper: e,
|
|
207
|
+
extendParams: o,
|
|
208
|
+
on: c,
|
|
209
|
+
emit: d
|
|
210
|
+
} = n;
|
|
211
|
+
const w = q();
|
|
212
|
+
o({
|
|
213
|
+
zoom: {
|
|
214
|
+
enabled: !1,
|
|
215
|
+
limitToOriginalSize: !1,
|
|
216
|
+
maxRatio: 3,
|
|
217
|
+
minRatio: 1,
|
|
218
|
+
toggle: !0,
|
|
219
|
+
containerClass: "swiper-zoom-container",
|
|
220
|
+
zoomedSlideClass: "swiper-slide-zoomed"
|
|
221
|
+
}
|
|
222
|
+
}), e.zoom = {
|
|
223
|
+
enabled: !1
|
|
224
|
+
};
|
|
225
|
+
let h = 1, Y = !1, E, X;
|
|
226
|
+
const m = [], i = {
|
|
227
|
+
originX: 0,
|
|
228
|
+
originY: 0,
|
|
229
|
+
slideEl: void 0,
|
|
230
|
+
slideWidth: void 0,
|
|
231
|
+
slideHeight: void 0,
|
|
232
|
+
imageEl: void 0,
|
|
233
|
+
imageWrapEl: void 0,
|
|
234
|
+
maxRatio: 3
|
|
235
|
+
}, t = {
|
|
236
|
+
isTouched: void 0,
|
|
237
|
+
isMoved: void 0,
|
|
238
|
+
currentX: void 0,
|
|
239
|
+
currentY: void 0,
|
|
240
|
+
minX: void 0,
|
|
241
|
+
minY: void 0,
|
|
242
|
+
maxX: void 0,
|
|
243
|
+
maxY: void 0,
|
|
244
|
+
width: void 0,
|
|
245
|
+
height: void 0,
|
|
246
|
+
startX: void 0,
|
|
247
|
+
startY: void 0,
|
|
248
|
+
touchesStart: {},
|
|
249
|
+
touchesCurrent: {}
|
|
250
|
+
}, f = {
|
|
251
|
+
x: void 0,
|
|
252
|
+
y: void 0,
|
|
253
|
+
prevPositionX: void 0,
|
|
254
|
+
prevPositionY: void 0,
|
|
255
|
+
prevTime: void 0
|
|
256
|
+
};
|
|
257
|
+
let H = 1;
|
|
258
|
+
Object.defineProperty(e.zoom, "scale", {
|
|
259
|
+
get() {
|
|
260
|
+
return H;
|
|
261
|
+
},
|
|
262
|
+
set(r) {
|
|
263
|
+
if (H !== r) {
|
|
264
|
+
const s = i.imageEl, a = i.slideEl;
|
|
265
|
+
d("zoomChange", r, s, a);
|
|
266
|
+
}
|
|
267
|
+
H = r;
|
|
268
|
+
}
|
|
269
|
+
});
|
|
270
|
+
function B() {
|
|
271
|
+
if (m.length < 2) return 1;
|
|
272
|
+
const r = m[0].pageX, s = m[0].pageY, a = m[1].pageX, v = m[1].pageY;
|
|
273
|
+
return Math.sqrt((a - r) ** 2 + (v - s) ** 2);
|
|
274
|
+
}
|
|
275
|
+
function V() {
|
|
276
|
+
const r = e.params.zoom, s = i.imageWrapEl.getAttribute("data-swiper-zoom") || r.maxRatio;
|
|
277
|
+
if (r.limitToOriginalSize && i.imageEl && i.imageEl.naturalWidth) {
|
|
278
|
+
const a = i.imageEl.naturalWidth / i.imageEl.offsetWidth;
|
|
279
|
+
return Math.min(a, s);
|
|
280
|
+
}
|
|
281
|
+
return s;
|
|
282
|
+
}
|
|
283
|
+
function N() {
|
|
284
|
+
if (m.length < 2) return {
|
|
285
|
+
x: null,
|
|
286
|
+
y: null
|
|
287
|
+
};
|
|
288
|
+
const r = i.imageEl.getBoundingClientRect();
|
|
289
|
+
return [(m[0].pageX + (m[1].pageX - m[0].pageX) / 2 - r.x - w.scrollX) / h, (m[0].pageY + (m[1].pageY - m[0].pageY) / 2 - r.y - w.scrollY) / h];
|
|
290
|
+
}
|
|
291
|
+
function L() {
|
|
292
|
+
return e.isElement ? "swiper-slide" : `.${e.params.slideClass}`;
|
|
293
|
+
}
|
|
294
|
+
function R(r) {
|
|
295
|
+
const s = L();
|
|
296
|
+
return !!(r.target.matches(s) || e.slides.filter((a) => a.contains(r.target)).length > 0);
|
|
297
|
+
}
|
|
298
|
+
function G(r) {
|
|
299
|
+
const s = `.${e.params.zoom.containerClass}`;
|
|
300
|
+
return !!(r.target.matches(s) || [...e.hostEl.querySelectorAll(s)].filter((a) => a.contains(r.target)).length > 0);
|
|
301
|
+
}
|
|
302
|
+
function K(r) {
|
|
303
|
+
if (r.pointerType === "mouse" && m.splice(0, m.length), !R(r)) return;
|
|
304
|
+
const s = e.params.zoom;
|
|
305
|
+
if (E = !1, X = !1, m.push(r), !(m.length < 2)) {
|
|
306
|
+
if (E = !0, i.scaleStart = B(), !i.slideEl) {
|
|
307
|
+
i.slideEl = r.target.closest(`.${e.params.slideClass}, swiper-slide`), i.slideEl || (i.slideEl = e.slides[e.activeIndex]);
|
|
308
|
+
let a = i.slideEl.querySelector(`.${s.containerClass}`);
|
|
309
|
+
if (a && (a = a.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), i.imageEl = a, a ? i.imageWrapEl = le(i.imageEl, `.${s.containerClass}`)[0] : i.imageWrapEl = void 0, !i.imageWrapEl) {
|
|
310
|
+
i.imageEl = void 0;
|
|
311
|
+
return;
|
|
312
|
+
}
|
|
313
|
+
i.maxRatio = V();
|
|
314
|
+
}
|
|
315
|
+
if (i.imageEl) {
|
|
316
|
+
const [a, v] = N();
|
|
317
|
+
i.originX = a, i.originY = v, i.imageEl.style.transitionDuration = "0ms";
|
|
318
|
+
}
|
|
319
|
+
Y = !0;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
function l(r) {
|
|
323
|
+
if (!R(r)) return;
|
|
324
|
+
const s = e.params.zoom, a = e.zoom, v = m.findIndex((S) => S.pointerId === r.pointerId);
|
|
325
|
+
v >= 0 && (m[v] = r), !(m.length < 2) && (X = !0, i.scaleMove = B(), i.imageEl && (a.scale = i.scaleMove / i.scaleStart * h, a.scale > i.maxRatio && (a.scale = i.maxRatio - 1 + (a.scale - i.maxRatio + 1) ** 0.5), a.scale < s.minRatio && (a.scale = s.minRatio + 1 - (s.minRatio - a.scale + 1) ** 0.5), i.imageEl.style.transform = `translate3d(0,0,0) scale(${a.scale})`));
|
|
326
|
+
}
|
|
327
|
+
function p(r) {
|
|
328
|
+
if (!R(r) || r.pointerType === "mouse" && r.type === "pointerout") return;
|
|
329
|
+
const s = e.params.zoom, a = e.zoom, v = m.findIndex((S) => S.pointerId === r.pointerId);
|
|
330
|
+
v >= 0 && m.splice(v, 1), !(!E || !X) && (E = !1, X = !1, i.imageEl && (a.scale = Math.max(Math.min(a.scale, i.maxRatio), s.minRatio), i.imageEl.style.transitionDuration = `${e.params.speed}ms`, i.imageEl.style.transform = `translate3d(0,0,0) scale(${a.scale})`, h = a.scale, Y = !1, a.scale > 1 && i.slideEl ? i.slideEl.classList.add(`${s.zoomedSlideClass}`) : a.scale <= 1 && i.slideEl && i.slideEl.classList.remove(`${s.zoomedSlideClass}`), a.scale === 1 && (i.originX = 0, i.originY = 0, i.slideEl = void 0)));
|
|
331
|
+
}
|
|
332
|
+
let u;
|
|
333
|
+
function g() {
|
|
334
|
+
e.touchEventsData.preventTouchMoveFromPointerMove = !1;
|
|
335
|
+
}
|
|
336
|
+
function y() {
|
|
337
|
+
clearTimeout(u), e.touchEventsData.preventTouchMoveFromPointerMove = !0, u = setTimeout(() => {
|
|
338
|
+
e.destroyed || g();
|
|
339
|
+
});
|
|
340
|
+
}
|
|
341
|
+
function ee(r) {
|
|
342
|
+
const s = e.device;
|
|
343
|
+
if (!i.imageEl || t.isTouched) return;
|
|
344
|
+
s.android && r.cancelable && r.preventDefault(), t.isTouched = !0;
|
|
345
|
+
const a = m.length > 0 ? m[0] : r;
|
|
346
|
+
t.touchesStart.x = a.pageX, t.touchesStart.y = a.pageY;
|
|
347
|
+
}
|
|
348
|
+
function Z(r) {
|
|
349
|
+
if (!R(r) || !G(r))
|
|
350
|
+
return;
|
|
351
|
+
const s = e.zoom;
|
|
352
|
+
if (!i.imageEl || !t.isTouched || !i.slideEl)
|
|
353
|
+
return;
|
|
354
|
+
t.isMoved || (t.width = i.imageEl.offsetWidth || i.imageEl.clientWidth, t.height = i.imageEl.offsetHeight || i.imageEl.clientHeight, t.startX = ze(i.imageWrapEl, "x") || 0, t.startY = ze(i.imageWrapEl, "y") || 0, i.slideWidth = i.slideEl.offsetWidth, i.slideHeight = i.slideEl.offsetHeight, i.imageWrapEl.style.transitionDuration = "0ms");
|
|
355
|
+
const a = t.width * s.scale, v = t.height * s.scale;
|
|
356
|
+
if (t.minX = Math.min(i.slideWidth / 2 - a / 2, 0), t.maxX = -t.minX, t.minY = Math.min(i.slideHeight / 2 - v / 2, 0), t.maxY = -t.minY, t.touchesCurrent.x = m.length > 0 ? m[0].pageX : r.pageX, t.touchesCurrent.y = m.length > 0 ? m[0].pageY : r.pageY, Math.max(Math.abs(t.touchesCurrent.x - t.touchesStart.x), Math.abs(t.touchesCurrent.y - t.touchesStart.y)) > 5 && (e.allowClick = !1), !t.isMoved && !Y) {
|
|
357
|
+
if (e.isHorizontal() && (Math.floor(t.minX) === Math.floor(t.startX) && t.touchesCurrent.x < t.touchesStart.x || Math.floor(t.maxX) === Math.floor(t.startX) && t.touchesCurrent.x > t.touchesStart.x)) {
|
|
358
|
+
t.isTouched = !1, g();
|
|
359
|
+
return;
|
|
360
|
+
}
|
|
361
|
+
if (!e.isHorizontal() && (Math.floor(t.minY) === Math.floor(t.startY) && t.touchesCurrent.y < t.touchesStart.y || Math.floor(t.maxY) === Math.floor(t.startY) && t.touchesCurrent.y > t.touchesStart.y)) {
|
|
362
|
+
t.isTouched = !1, g();
|
|
363
|
+
return;
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
r.cancelable && r.preventDefault(), r.stopPropagation(), y(), t.isMoved = !0;
|
|
367
|
+
const k = (s.scale - h) / (i.maxRatio - e.params.zoom.minRatio), {
|
|
368
|
+
originX: O,
|
|
369
|
+
originY: A
|
|
370
|
+
} = i;
|
|
371
|
+
t.currentX = t.touchesCurrent.x - t.touchesStart.x + t.startX + k * (t.width - O * 2), t.currentY = t.touchesCurrent.y - t.touchesStart.y + t.startY + k * (t.height - A * 2), t.currentX < t.minX && (t.currentX = t.minX + 1 - (t.minX - t.currentX + 1) ** 0.8), t.currentX > t.maxX && (t.currentX = t.maxX - 1 + (t.currentX - t.maxX + 1) ** 0.8), t.currentY < t.minY && (t.currentY = t.minY + 1 - (t.minY - t.currentY + 1) ** 0.8), t.currentY > t.maxY && (t.currentY = t.maxY - 1 + (t.currentY - t.maxY + 1) ** 0.8), f.prevPositionX || (f.prevPositionX = t.touchesCurrent.x), f.prevPositionY || (f.prevPositionY = t.touchesCurrent.y), f.prevTime || (f.prevTime = Date.now()), f.x = (t.touchesCurrent.x - f.prevPositionX) / (Date.now() - f.prevTime) / 2, f.y = (t.touchesCurrent.y - f.prevPositionY) / (Date.now() - f.prevTime) / 2, Math.abs(t.touchesCurrent.x - f.prevPositionX) < 2 && (f.x = 0), Math.abs(t.touchesCurrent.y - f.prevPositionY) < 2 && (f.y = 0), f.prevPositionX = t.touchesCurrent.x, f.prevPositionY = t.touchesCurrent.y, f.prevTime = Date.now(), i.imageWrapEl.style.transform = `translate3d(${t.currentX}px, ${t.currentY}px,0)`;
|
|
372
|
+
}
|
|
373
|
+
function b() {
|
|
374
|
+
const r = e.zoom;
|
|
375
|
+
if (!i.imageEl) return;
|
|
376
|
+
if (!t.isTouched || !t.isMoved) {
|
|
377
|
+
t.isTouched = !1, t.isMoved = !1;
|
|
378
|
+
return;
|
|
379
|
+
}
|
|
380
|
+
t.isTouched = !1, t.isMoved = !1;
|
|
381
|
+
let s = 300, a = 300;
|
|
382
|
+
const v = f.x * s, S = t.currentX + v, k = f.y * a, O = t.currentY + k;
|
|
383
|
+
f.x !== 0 && (s = Math.abs((S - t.currentX) / f.x)), f.y !== 0 && (a = Math.abs((O - t.currentY) / f.y));
|
|
384
|
+
const A = Math.max(s, a);
|
|
385
|
+
t.currentX = S, t.currentY = O;
|
|
386
|
+
const J = t.width * r.scale, M = t.height * r.scale;
|
|
387
|
+
t.minX = Math.min(i.slideWidth / 2 - J / 2, 0), t.maxX = -t.minX, t.minY = Math.min(i.slideHeight / 2 - M / 2, 0), t.maxY = -t.minY, t.currentX = Math.max(Math.min(t.currentX, t.maxX), t.minX), t.currentY = Math.max(Math.min(t.currentY, t.maxY), t.minY), i.imageWrapEl.style.transitionDuration = `${A}ms`, i.imageWrapEl.style.transform = `translate3d(${t.currentX}px, ${t.currentY}px,0)`;
|
|
388
|
+
}
|
|
389
|
+
function x() {
|
|
390
|
+
const r = e.zoom;
|
|
391
|
+
i.slideEl && e.activeIndex !== e.slides.indexOf(i.slideEl) && (i.imageEl && (i.imageEl.style.transform = "translate3d(0,0,0) scale(1)"), i.imageWrapEl && (i.imageWrapEl.style.transform = "translate3d(0,0,0)"), i.slideEl.classList.remove(`${e.params.zoom.zoomedSlideClass}`), r.scale = 1, h = 1, i.slideEl = void 0, i.imageEl = void 0, i.imageWrapEl = void 0, i.originX = 0, i.originY = 0);
|
|
392
|
+
}
|
|
393
|
+
function C(r) {
|
|
394
|
+
const s = e.zoom, a = e.params.zoom;
|
|
395
|
+
if (!i.slideEl) {
|
|
396
|
+
r && r.target && (i.slideEl = r.target.closest(`.${e.params.slideClass}, swiper-slide`)), i.slideEl || (e.params.virtual && e.params.virtual.enabled && e.virtual ? i.slideEl = Xe(e.slidesEl, `.${e.params.slideActiveClass}`)[0] : i.slideEl = e.slides[e.activeIndex]);
|
|
397
|
+
let j = i.slideEl.querySelector(`.${a.containerClass}`);
|
|
398
|
+
j && (j = j.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), i.imageEl = j, j ? i.imageWrapEl = le(i.imageEl, `.${a.containerClass}`)[0] : i.imageWrapEl = void 0;
|
|
399
|
+
}
|
|
400
|
+
if (!i.imageEl || !i.imageWrapEl) return;
|
|
401
|
+
e.params.cssMode && (e.wrapperEl.style.overflow = "hidden", e.wrapperEl.style.touchAction = "none"), i.slideEl.classList.add(`${a.zoomedSlideClass}`);
|
|
402
|
+
let v, S, k, O, A, J, M, D, pe, ge, he, ve, Q, U, te, ie, ne, re;
|
|
403
|
+
typeof t.touchesStart.x > "u" && r ? (v = r.pageX, S = r.pageY) : (v = t.touchesStart.x, S = t.touchesStart.y);
|
|
404
|
+
const F = typeof r == "number" ? r : null;
|
|
405
|
+
h === 1 && F && (v = void 0, S = void 0, t.touchesStart.x = void 0, t.touchesStart.y = void 0);
|
|
406
|
+
const we = V();
|
|
407
|
+
s.scale = F || we, h = F || we, r && !(h === 1 && F) ? (ne = i.slideEl.offsetWidth, re = i.slideEl.offsetHeight, k = Ye(i.slideEl).left + w.scrollX, O = Ye(i.slideEl).top + w.scrollY, A = k + ne / 2 - v, J = O + re / 2 - S, pe = i.imageEl.offsetWidth || i.imageEl.clientWidth, ge = i.imageEl.offsetHeight || i.imageEl.clientHeight, he = pe * s.scale, ve = ge * s.scale, Q = Math.min(ne / 2 - he / 2, 0), U = Math.min(re / 2 - ve / 2, 0), te = -Q, ie = -U, M = A * s.scale, D = J * s.scale, M < Q && (M = Q), M > te && (M = te), D < U && (D = U), D > ie && (D = ie)) : (M = 0, D = 0), F && s.scale === 1 && (i.originX = 0, i.originY = 0), i.imageWrapEl.style.transitionDuration = "300ms", i.imageWrapEl.style.transform = `translate3d(${M}px, ${D}px,0)`, i.imageEl.style.transitionDuration = "300ms", i.imageEl.style.transform = `translate3d(0,0,0) scale(${s.scale})`;
|
|
408
|
+
}
|
|
409
|
+
function z() {
|
|
410
|
+
const r = e.zoom, s = e.params.zoom;
|
|
411
|
+
if (!i.slideEl) {
|
|
412
|
+
e.params.virtual && e.params.virtual.enabled && e.virtual ? i.slideEl = Xe(e.slidesEl, `.${e.params.slideActiveClass}`)[0] : i.slideEl = e.slides[e.activeIndex];
|
|
413
|
+
let a = i.slideEl.querySelector(`.${s.containerClass}`);
|
|
414
|
+
a && (a = a.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), i.imageEl = a, a ? i.imageWrapEl = le(i.imageEl, `.${s.containerClass}`)[0] : i.imageWrapEl = void 0;
|
|
415
|
+
}
|
|
416
|
+
!i.imageEl || !i.imageWrapEl || (e.params.cssMode && (e.wrapperEl.style.overflow = "", e.wrapperEl.style.touchAction = ""), r.scale = 1, h = 1, t.touchesStart.x = void 0, t.touchesStart.y = void 0, i.imageWrapEl.style.transitionDuration = "300ms", i.imageWrapEl.style.transform = "translate3d(0,0,0)", i.imageEl.style.transitionDuration = "300ms", i.imageEl.style.transform = "translate3d(0,0,0) scale(1)", i.slideEl.classList.remove(`${s.zoomedSlideClass}`), i.slideEl = void 0, i.originX = 0, i.originY = 0);
|
|
417
|
+
}
|
|
418
|
+
function ce(r) {
|
|
419
|
+
const s = e.zoom;
|
|
420
|
+
s.scale && s.scale !== 1 ? z() : C(r);
|
|
421
|
+
}
|
|
422
|
+
function de() {
|
|
423
|
+
const r = e.params.passiveListeners ? {
|
|
424
|
+
passive: !0,
|
|
425
|
+
capture: !1
|
|
426
|
+
} : !1, s = e.params.passiveListeners ? {
|
|
427
|
+
passive: !1,
|
|
428
|
+
capture: !0
|
|
429
|
+
} : !0;
|
|
430
|
+
return {
|
|
431
|
+
passiveListener: r,
|
|
432
|
+
activeListenerWithCapture: s
|
|
433
|
+
};
|
|
434
|
+
}
|
|
435
|
+
function me() {
|
|
436
|
+
const r = e.zoom;
|
|
437
|
+
if (r.enabled) return;
|
|
438
|
+
r.enabled = !0;
|
|
439
|
+
const {
|
|
440
|
+
passiveListener: s,
|
|
441
|
+
activeListenerWithCapture: a
|
|
442
|
+
} = de();
|
|
443
|
+
e.wrapperEl.addEventListener("pointerdown", K, s), e.wrapperEl.addEventListener("pointermove", l, a), ["pointerup", "pointercancel", "pointerout"].forEach((v) => {
|
|
444
|
+
e.wrapperEl.addEventListener(v, p, s);
|
|
445
|
+
}), e.wrapperEl.addEventListener("pointermove", Z, a);
|
|
446
|
+
}
|
|
447
|
+
function fe() {
|
|
448
|
+
const r = e.zoom;
|
|
449
|
+
if (!r.enabled) return;
|
|
450
|
+
r.enabled = !1;
|
|
451
|
+
const {
|
|
452
|
+
passiveListener: s,
|
|
453
|
+
activeListenerWithCapture: a
|
|
454
|
+
} = de();
|
|
455
|
+
e.wrapperEl.removeEventListener("pointerdown", K, s), e.wrapperEl.removeEventListener("pointermove", l, a), ["pointerup", "pointercancel", "pointerout"].forEach((v) => {
|
|
456
|
+
e.wrapperEl.removeEventListener(v, p, s);
|
|
457
|
+
}), e.wrapperEl.removeEventListener("pointermove", Z, a);
|
|
458
|
+
}
|
|
459
|
+
c("init", () => {
|
|
460
|
+
e.params.zoom.enabled && me();
|
|
461
|
+
}), c("destroy", () => {
|
|
462
|
+
fe();
|
|
463
|
+
}), c("touchStart", (r, s) => {
|
|
464
|
+
e.zoom.enabled && ee(s);
|
|
465
|
+
}), c("touchEnd", (r, s) => {
|
|
466
|
+
e.zoom.enabled && b();
|
|
467
|
+
}), c("doubleTap", (r, s) => {
|
|
468
|
+
!e.animating && e.params.zoom.enabled && e.zoom.enabled && e.params.zoom.toggle && ce(s);
|
|
469
|
+
}), c("transitionEnd", () => {
|
|
470
|
+
e.zoom.enabled && e.params.zoom.enabled && x();
|
|
471
|
+
}), c("slideChange", () => {
|
|
472
|
+
e.zoom.enabled && e.params.zoom.enabled && e.params.cssMode && x();
|
|
473
|
+
}), Object.assign(e.zoom, {
|
|
474
|
+
enable: me,
|
|
475
|
+
disable: fe,
|
|
476
|
+
in: C,
|
|
477
|
+
out: z,
|
|
478
|
+
toggle: ce
|
|
479
|
+
});
|
|
480
|
+
}
|
|
481
|
+
const Fe = ["id"], je = ["id", "data-cy"], qe = ["data-idx", "loading", "fetchpriority", "alt", "width", "height", "onLoad"], Be = ["id"], Ve = ["loading", "alt"], Ne = /* @__PURE__ */ $e({
|
|
482
|
+
inheritAttrs: !1,
|
|
483
|
+
__name: "SwiperCarousel",
|
|
484
|
+
props: {
|
|
485
|
+
id: {},
|
|
486
|
+
swiperOptions: {},
|
|
487
|
+
thumbSwiperOptions: {},
|
|
488
|
+
lazyLoadImages: { type: Boolean, default: !0 },
|
|
489
|
+
backgroundImage: { type: Boolean, default: !1 },
|
|
490
|
+
images: { default: () => [] },
|
|
491
|
+
artDirection: {},
|
|
492
|
+
shiftFirstImage: { type: Boolean, default: !1 }
|
|
493
|
+
},
|
|
494
|
+
emits: ["moved", "click", "firstSlideLoaded"],
|
|
495
|
+
setup(n, { expose: e, emit: o }) {
|
|
496
|
+
const c = o, d = Te({
|
|
497
|
+
swiperParams: { modules: [He] },
|
|
498
|
+
swiper: null,
|
|
499
|
+
initCarousel: !1
|
|
500
|
+
}), w = se(), h = se(!1), Y = We(), E = P(() => n.id ?? Y), X = P(() => n.swiperOptions?.slidesPerView || 1), m = P(() => n.thumbSwiperOptions?.slidesPerView || 1), i = P(() => !!n.swiperOptions?.keyboard), t = P(() => !!n.swiperOptions.navigation), f = P(() => !!n.swiperOptions.pagination), H = P(() => !!n.swiperOptions.autoplay), B = P(
|
|
501
|
+
() => n.swiperOptions?.effect || "slider"
|
|
502
|
+
), V = () => {
|
|
503
|
+
n.swiperOptions && ke(n.swiperOptions, d.swiperParams);
|
|
504
|
+
}, N = (l, p = -1) => {
|
|
505
|
+
if (!l.images)
|
|
506
|
+
return { src: l.src || "" };
|
|
507
|
+
let u = "", g = "", y = "";
|
|
508
|
+
if (n.artDirection) {
|
|
509
|
+
for (const b in n.artDirection) {
|
|
510
|
+
const { mq: x, width: C } = n.artDirection[b];
|
|
511
|
+
C && (y += y ? `,${x} ${parseInt(C)}px` : `${x} ${parseInt(C)}px`);
|
|
512
|
+
}
|
|
513
|
+
g = l.images.reduce((b, x, C) => {
|
|
514
|
+
const z = Object.values(n.artDirection)[C];
|
|
515
|
+
return !z || !z.width || (b += b ? `, ${x.storagePath} ${z.width}` : `${x.storagePath} ${z.width}`), b;
|
|
516
|
+
}, ""), u = l.images[0].storagePath;
|
|
517
|
+
} else {
|
|
518
|
+
let b = l.images;
|
|
519
|
+
l.images.length > 3 ? b = l.images.slice(2, 5) : n.shiftFirstImage && (b[0] = b[1]), g = b.reduce((x, C, z) => (z === 0 && (u = `${C.storagePath}`), z > 0 && (x += ", "), `${x}${C.storagePath} ${z + 1}x`), "");
|
|
520
|
+
}
|
|
521
|
+
const ee = u, Z = g;
|
|
522
|
+
return typeof X.value == "number" && p > X.value ? (u = "", g = "", { sizes: y, "data-src": ee, "data-srcset": Z }) : { src: u, srcset: g, sizes: y };
|
|
523
|
+
}, L = [], R = (l) => {
|
|
524
|
+
if (typeof X.value == "string") return;
|
|
525
|
+
const p = L[l];
|
|
526
|
+
if (p && !p.src && (p.src = p.dataset.src || "", p.srcset = p.dataset.srcset || ""), l < X.value || l + 1 >= (n.images ?? []).length)
|
|
527
|
+
return;
|
|
528
|
+
const u = L[l + 1];
|
|
529
|
+
u && !u.src && (u.src = u?.dataset.src || "", u.srcset = u?.dataset.srcset || "");
|
|
530
|
+
};
|
|
531
|
+
e({
|
|
532
|
+
moveTo(l, p = 0, u = !0) {
|
|
533
|
+
d.swiper?.slideTo(l, p, u);
|
|
534
|
+
}
|
|
535
|
+
});
|
|
536
|
+
const G = se(null), K = (l) => {
|
|
537
|
+
l === 0 && L && L[l] && Ee(() => {
|
|
538
|
+
G.value?.setAttribute("data-first-slide-loaded", "true"), c("firstSlideLoaded");
|
|
539
|
+
});
|
|
540
|
+
};
|
|
541
|
+
return Pe(async () => {
|
|
542
|
+
if (V(), i.value) {
|
|
543
|
+
const { Keyboard: u } = await import("./index.DzeXT3uf.js");
|
|
544
|
+
d.swiperParams.modules?.push(u), d.swiperParams.keyboard = n.swiperOptions.keyboard;
|
|
545
|
+
}
|
|
546
|
+
if (f.value) {
|
|
547
|
+
const { Pagination: u } = await import("./index.DzeXT3uf.js");
|
|
548
|
+
d.swiperParams.modules?.push(u), d.swiperParams.pagination = {
|
|
549
|
+
el: ".swiper-pagination",
|
|
550
|
+
renderFraction: (g, y) => `<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]">
|
|
551
|
+
<span data-cy="swiper-pagination-current" class="${g}"></span>
|
|
552
|
+
/
|
|
553
|
+
<span data-cy="swiper-pagination-total" class="${y}"></span>
|
|
554
|
+
</div>`,
|
|
555
|
+
...typeof d.swiperParams.pagination == "boolean" ? {} : d.swiperParams.pagination
|
|
556
|
+
};
|
|
557
|
+
}
|
|
558
|
+
if (t.value) {
|
|
559
|
+
const { Navigation: u } = await import("./index.DzeXT3uf.js");
|
|
560
|
+
d.swiperParams.modules?.push(u);
|
|
561
|
+
const g = {
|
|
562
|
+
...n.swiperOptions.navigation.nextEl ?? {
|
|
563
|
+
nextEl: ".swiper-button-next"
|
|
564
|
+
},
|
|
565
|
+
...n.swiperOptions.navigation.prevEl ?? {
|
|
566
|
+
prevEl: ".swiper-button-prev"
|
|
567
|
+
}
|
|
568
|
+
};
|
|
569
|
+
d.swiperParams.navigation = {
|
|
570
|
+
...typeof n.swiperOptions.navigation == "object" ? n.swiperOptions.navigation : {},
|
|
571
|
+
...g
|
|
572
|
+
};
|
|
573
|
+
}
|
|
574
|
+
if (H.value) {
|
|
575
|
+
const { Autoplay: u } = await import("./index.DzeXT3uf.js");
|
|
576
|
+
d.swiperParams.modules?.push(u), d.swiperParams.autoplay = n.swiperOptions.autoplay;
|
|
577
|
+
}
|
|
578
|
+
const l = {
|
|
579
|
+
...d.swiperParams,
|
|
580
|
+
on: {
|
|
581
|
+
init: () => {
|
|
582
|
+
h.value = !0;
|
|
583
|
+
},
|
|
584
|
+
slideChange: (u) => {
|
|
585
|
+
R(u.activeIndex), c("moved", { activeIndex: u.activeIndex });
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
};
|
|
589
|
+
let p = null;
|
|
590
|
+
if (n.thumbSwiperOptions) {
|
|
591
|
+
const { Thumbs: u, FreeMode: g, Controller: y } = await import("./index.DzeXT3uf.js");
|
|
592
|
+
d.swiperParams.modules?.push(u), d.swiperParams.modules?.push(y), p = new xe(`#thumb_${E.value}`, {
|
|
593
|
+
...n.thumbSwiperOptions,
|
|
594
|
+
modules: [g]
|
|
595
|
+
}), l.thumbs = {
|
|
596
|
+
swiper: p
|
|
597
|
+
};
|
|
598
|
+
}
|
|
599
|
+
l.lazyPreloadPrevNext = 1, d.swiper = new xe(`#${E.value}`, l), w.value?.classList.remove("uikit-hidden");
|
|
600
|
+
}), Le(
|
|
601
|
+
() => n.images,
|
|
602
|
+
() => {
|
|
603
|
+
Ee(() => {
|
|
604
|
+
d.swiper?.update();
|
|
605
|
+
});
|
|
606
|
+
}
|
|
607
|
+
), (l, p) => ($(), T("div", {
|
|
608
|
+
id: `root-${E.value}`,
|
|
609
|
+
ref_key: "root",
|
|
610
|
+
ref: G,
|
|
611
|
+
class: W(["swiper-carousel-root", l.$attrs["root-classes"]])
|
|
612
|
+
}, [
|
|
613
|
+
I("div", {
|
|
614
|
+
id: E.value,
|
|
615
|
+
"data-cy": l.$attrs["data-cy"],
|
|
616
|
+
class: W(["swiper", l.$attrs["swiper-classes"]])
|
|
617
|
+
}, [
|
|
618
|
+
I("div", {
|
|
619
|
+
ref_key: "swiperWrapper",
|
|
620
|
+
ref: w,
|
|
621
|
+
class: W(["swiper-wrapper", [
|
|
622
|
+
l.$attrs["swiper-wrapper-classes"],
|
|
623
|
+
B.value === "none" && "no-transition"
|
|
624
|
+
]]),
|
|
625
|
+
onClick: p[0] || (p[0] = (u) => c("click"))
|
|
626
|
+
}, [
|
|
627
|
+
ye(l.$slots, "default", {}, () => [
|
|
628
|
+
($(!0), T(ae, null, be(l.images, (u, g) => ($(), T("div", {
|
|
629
|
+
key: `swiper_${E.value}_${g}`,
|
|
630
|
+
class: W(["swiper-slide", l.$attrs["swiper-slide-classes"]])
|
|
631
|
+
}, [
|
|
632
|
+
I("div", {
|
|
633
|
+
class: W(["swiper-zoom-container", l.$attrs["swiper-zoom-container-classes"]])
|
|
634
|
+
}, [
|
|
635
|
+
l.backgroundImage ? _("", !0) : ($(), T("img", Se({
|
|
636
|
+
key: 0,
|
|
637
|
+
ref_for: !0,
|
|
638
|
+
ref: (y) => {
|
|
639
|
+
L.push(y);
|
|
640
|
+
},
|
|
641
|
+
class: ["disable-select", [l.$attrs["slide-img-classes"] || u.classes]],
|
|
642
|
+
"data-idx": `${E.value}-slide-img-${g}`
|
|
643
|
+
}, N(u, g), {
|
|
644
|
+
loading: l.lazyLoadImages || g >= X.value ? "lazy" : void 0,
|
|
645
|
+
fetchpriority: !l.lazyLoadImages && g === 0 ? "high" : "low",
|
|
646
|
+
alt: u.alt,
|
|
647
|
+
itemprop: "image",
|
|
648
|
+
width: u.width,
|
|
649
|
+
height: u.height,
|
|
650
|
+
onLoad: (y) => K(g)
|
|
651
|
+
}), null, 16, qe))
|
|
652
|
+
], 2)
|
|
653
|
+
], 2))), 128)),
|
|
654
|
+
ye(l.$slots, "last_slide", {}, void 0, !0)
|
|
655
|
+
], !0)
|
|
656
|
+
], 2),
|
|
657
|
+
f.value ? ($(), T("div", {
|
|
658
|
+
key: 0,
|
|
659
|
+
class: W([l.$attrs["swiper-pagination-classes"], "swiper-pagination [&.swiper-pagination-fraction]:uikit-flex [&.swiper-pagination-fraction]:uikit-justify-center"]),
|
|
660
|
+
onClick: p[1] || (p[1] = oe(() => {
|
|
661
|
+
}, ["stop"]))
|
|
662
|
+
}, null, 2)) : _("", !0),
|
|
663
|
+
t.value ? ($(), T(ae, { key: 1 }, [
|
|
664
|
+
I("div", {
|
|
665
|
+
class: "swiper-button-prev",
|
|
666
|
+
"data-cy": "swiper-button-prev",
|
|
667
|
+
onClick: p[2] || (p[2] = oe(() => {
|
|
668
|
+
}, ["stop"]))
|
|
669
|
+
}),
|
|
670
|
+
I("div", {
|
|
671
|
+
class: "swiper-button-next",
|
|
672
|
+
"data-cy": "swiper-button-next",
|
|
673
|
+
onClick: p[3] || (p[3] = oe(() => {
|
|
674
|
+
}, ["stop"]))
|
|
675
|
+
})
|
|
676
|
+
], 64)) : _("", !0)
|
|
677
|
+
], 10, je),
|
|
678
|
+
l.thumbSwiperOptions ? ($(), T("div", {
|
|
679
|
+
key: 0,
|
|
680
|
+
id: `thumb_${E.value}`,
|
|
681
|
+
thumbsSlider: "",
|
|
682
|
+
class: W(["swiper", l.$attrs["thumb-swiper-classes"]])
|
|
683
|
+
}, [
|
|
684
|
+
I("div", {
|
|
685
|
+
class: W(["swiper-wrapper", l.$attrs["thumb-swiper-wrapper-classes"]])
|
|
686
|
+
}, [
|
|
687
|
+
($(!0), T(ae, null, be(l.images, (u, g) => ($(), T("div", {
|
|
688
|
+
key: `thumb_${E.value}_${g}`,
|
|
689
|
+
class: W(["swiper-slide", l.$attrs["thumb-img-wrapper-classes"]])
|
|
690
|
+
}, [
|
|
691
|
+
I("img", Se({
|
|
692
|
+
class: l.$attrs["thumb-img-classes"],
|
|
693
|
+
ref_for: !0
|
|
694
|
+
}, N(u), {
|
|
695
|
+
loading: g >= m.value ? "lazy" : void 0,
|
|
696
|
+
alt: u.alt
|
|
697
|
+
}), null, 16, Ve)
|
|
698
|
+
], 2))), 128))
|
|
699
|
+
], 2)
|
|
700
|
+
], 10, Be)) : _("", !0)
|
|
701
|
+
], 10, Fe));
|
|
702
|
+
}
|
|
703
|
+
}), at = /* @__PURE__ */ Oe(Ne, [["__scopeId", "data-v-fd5c0255"]]);
|
|
704
|
+
export {
|
|
705
|
+
at as S,
|
|
706
|
+
He as Z,
|
|
707
|
+
q as a,
|
|
708
|
+
Ye as b,
|
|
709
|
+
Xe as c,
|
|
710
|
+
tt as d,
|
|
711
|
+
le as e,
|
|
712
|
+
rt as f,
|
|
713
|
+
De as g,
|
|
714
|
+
it as h,
|
|
715
|
+
nt as i,
|
|
716
|
+
et as j,
|
|
717
|
+
_e as k,
|
|
718
|
+
st as m,
|
|
719
|
+
Ue as n
|
|
720
|
+
};
|