@wikicasa-dev/components 1.9.33 → 1.10.0
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/README.md +4 -18
- package/dist/AccessibleSelect.js +1 -1
- package/dist/BaseAccordion.js +1 -1
- package/dist/BaseAccordionBtn.js +1 -1
- package/dist/BaseAccordionContent.js +1 -1
- package/dist/BaseAccordionItem.js +1 -1
- package/dist/BaseAutocomplete.js +1 -1
- package/dist/BaseBreadcrumb.js +1 -1
- package/dist/BaseDropDown.js +1 -1
- package/dist/BaseModal.js +1 -1
- package/dist/BasePagination.js +1 -1
- package/dist/BaseSnackbar.js +2 -2
- package/dist/BaseTabView.js +1 -1
- package/dist/SwiperCarousel.js +1 -1
- package/dist/UIKit/Accordion/BaseAccordion.vue.d.ts +9 -5
- package/dist/UIKit/Accordion/BaseAccordionBtn.vue.d.ts +3 -5
- package/dist/UIKit/Accordion/BaseAccordionContent.vue.d.ts +7 -0
- package/dist/UIKit/Accordion/BaseAccordionItem.vue.d.ts +26 -6
- package/dist/UIKit/BasePagination.vue.d.ts +1 -1
- package/dist/UIKit/types.d.ts +2 -1
- package/dist/assets/SwiperCarousel.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/chunks/{AccessibleSelect.vue_vue_type_script_setup_true_lang.BZJiuA9q.js → AccessibleSelect.vue_vue_type_script_setup_true_lang.BlYI8zO3.js} +44 -44
- package/dist/chunks/{ArrowIcon.B7Oqov4Y.js → ArrowIcon.CCFMdsq6.js} +9 -9
- package/dist/chunks/BaseAccordion.vue_vue_type_script_setup_true_lang.R7qkuKlw.js +32 -0
- package/dist/chunks/{BaseAccordionBtn.vue_vue_type_script_setup_true_lang.2iAIiz6F.js → BaseAccordionBtn.vue_vue_type_script_setup_true_lang.DsDqk9iP.js} +14 -12
- package/dist/chunks/BaseAccordionContent.vue_vue_type_script_setup_true_lang.C0aiiljz.js +34 -0
- package/dist/chunks/BaseAccordionItem.vue_vue_type_script_setup_true_lang.Caagpb9M.js +143 -0
- package/dist/chunks/{BaseAutocomplete.vue_vue_type_script_setup_true_lang.CuwMDpZt.js → BaseAutocomplete.vue_vue_type_script_setup_true_lang.FVR77AHA.js} +2 -2
- package/dist/chunks/{BaseBreadcrumb.vue_vue_type_script_setup_true_lang.B0owkt0c.js → BaseBreadcrumb.vue_vue_type_script_setup_true_lang.BH2c3gOe.js} +2 -2
- package/dist/chunks/{BaseDropDown.vue_vue_type_script_setup_true_lang.BW53X5Mh.js → BaseDropDown.vue_vue_type_script_setup_true_lang.B6bPMnvl.js} +3 -3
- package/dist/chunks/{BaseModal.vue_vue_type_style_index_0_lang.9RKUM3fd.js → BaseModal.vue_vue_type_style_index_0_lang.Bl0EkSNw.js} +2 -2
- package/dist/chunks/{BasePagination.vue_vue_type_script_setup_true_lang.CC-83EJ7.js → BasePagination.vue_vue_type_script_setup_true_lang.DxPb8OYe.js} +2 -2
- package/dist/chunks/BaseTabView.vue_vue_type_script_setup_true_lang.CrzWV8VV.js +94 -0
- package/dist/chunks/{CloseIcon.YLxieTr1.js → CloseIcon.DIkr4soH.js} +13 -13
- package/dist/chunks/PharmacyIcon.56ql_DYl.js +19 -0
- package/dist/chunks/{SwiperCarousel.BV6QiwmC.js → SwiperCarousel.DWUl3bgn.js} +132 -131
- package/dist/chunks/{index.C7BPB1tC.js → index.D6IWh9UY.js} +2 -2
- package/dist/chunks/{useKeyboardController.CXrrg8Zt.js → useKeyboardController.CutKeclN.js} +3 -6
- package/dist/components/carousel/SwiperCarousel.vue.d.ts +1 -0
- package/dist/index.d.ts +1 -3
- package/dist/index.js +57 -61
- package/package.json +7 -8
- package/dist/BaseNavItem.js +0 -58
- package/dist/UIKit/BaseNavItem.vue.d.ts +0 -93
- package/dist/assets/BaseNavItem.css +0 -1
- package/dist/chunks/BaseAccordion.vue_vue_type_script_setup_true_lang.CoE2D2rV.js +0 -19
- package/dist/chunks/BaseAccordionContent.vue_vue_type_script_setup_true_lang.8ErZghvk.js +0 -30
- package/dist/chunks/BaseAccordionItem.vue_vue_type_script_setup_true_lang.CR-nWss7.js +0 -111
- package/dist/chunks/BaseTabView.vue_vue_type_script_setup_true_lang.RbxW2M0Y.js +0 -85
- package/dist/chunks/PharmacyIcon.qIkuSERu.js +0 -41
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Swiper as
|
|
1
|
+
import { defineComponent as Me, reactive as $e, ref as we, computed as k, onMounted as Te, openBlock as Y, createElementBlock as M, normalizeClass as $, createElementVNode as D, renderSlot as Ee, Fragment as re, renderList as ye, mergeProps as be, createCommentVNode as _, withModifiers as ne, nextTick as We } from "vue";
|
|
2
|
+
import { Swiper as Se } from "swiper";
|
|
3
3
|
import "./types-B0dZ7OiV.D29wNgoj.js";
|
|
4
4
|
import { i as Pe } from "./ObjectUtils.BOUbloeg.js";
|
|
5
5
|
import { _ as Le } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
6
|
-
import '../assets/SwiperCarousel.css';function
|
|
7
|
-
return
|
|
6
|
+
import '../assets/SwiperCarousel.css';function xe(r) {
|
|
7
|
+
return r !== null && typeof r == "object" && "constructor" in r && r.constructor === Object;
|
|
8
8
|
}
|
|
9
|
-
function ae(
|
|
10
|
-
|
|
11
|
-
typeof
|
|
9
|
+
function ae(r, e) {
|
|
10
|
+
r === void 0 && (r = {}), e === void 0 && (e = {}), Object.keys(e).forEach((u) => {
|
|
11
|
+
typeof r[u] > "u" ? r[u] = e[u] : xe(e[u]) && xe(r[u]) && Object.keys(e[u]).length > 0 && ae(r[u], e[u]);
|
|
12
12
|
});
|
|
13
13
|
}
|
|
14
|
-
const
|
|
14
|
+
const Ye = {
|
|
15
15
|
body: {},
|
|
16
16
|
addEventListener() {
|
|
17
17
|
},
|
|
@@ -67,11 +67,11 @@ const Xe = {
|
|
|
67
67
|
}
|
|
68
68
|
};
|
|
69
69
|
function Oe() {
|
|
70
|
-
const
|
|
71
|
-
return ae(
|
|
70
|
+
const r = typeof document < "u" ? document : {};
|
|
71
|
+
return ae(r, Ye), r;
|
|
72
72
|
}
|
|
73
73
|
const ke = {
|
|
74
|
-
document:
|
|
74
|
+
document: Ye,
|
|
75
75
|
navigator: {
|
|
76
76
|
userAgent: ""
|
|
77
77
|
},
|
|
@@ -121,93 +121,93 @@ const ke = {
|
|
|
121
121
|
matchMedia() {
|
|
122
122
|
return {};
|
|
123
123
|
},
|
|
124
|
-
requestAnimationFrame(
|
|
125
|
-
return typeof setTimeout > "u" ? (
|
|
124
|
+
requestAnimationFrame(r) {
|
|
125
|
+
return typeof setTimeout > "u" ? (r(), null) : setTimeout(r, 0);
|
|
126
126
|
},
|
|
127
|
-
cancelAnimationFrame(
|
|
128
|
-
typeof setTimeout > "u" || clearTimeout(
|
|
127
|
+
cancelAnimationFrame(r) {
|
|
128
|
+
typeof setTimeout > "u" || clearTimeout(r);
|
|
129
129
|
}
|
|
130
130
|
};
|
|
131
131
|
function V() {
|
|
132
|
-
const
|
|
133
|
-
return ae(
|
|
132
|
+
const r = typeof window < "u" ? window : {};
|
|
133
|
+
return ae(r, ke), r;
|
|
134
134
|
}
|
|
135
|
-
function De(
|
|
136
|
-
return
|
|
135
|
+
function De(r) {
|
|
136
|
+
return r === void 0 && (r = ""), r.trim().split(" ").filter((e) => !!e.trim());
|
|
137
137
|
}
|
|
138
|
-
function _e(
|
|
139
|
-
return e === void 0 && (e = 0), setTimeout(
|
|
138
|
+
function _e(r, e) {
|
|
139
|
+
return e === void 0 && (e = 0), setTimeout(r, e);
|
|
140
140
|
}
|
|
141
141
|
function Je() {
|
|
142
142
|
return Date.now();
|
|
143
143
|
}
|
|
144
|
-
function Ie(
|
|
144
|
+
function Ie(r) {
|
|
145
145
|
const e = V();
|
|
146
146
|
let u;
|
|
147
|
-
return e.getComputedStyle && (u = e.getComputedStyle(
|
|
147
|
+
return e.getComputedStyle && (u = e.getComputedStyle(r, null)), !u && r.currentStyle && (u = r.currentStyle), u || (u = r.style), u;
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function Ce(r, e) {
|
|
150
150
|
e === void 0 && (e = "x");
|
|
151
151
|
const u = V();
|
|
152
152
|
let a, v, d;
|
|
153
|
-
const g = Ie(
|
|
153
|
+
const g = Ie(r);
|
|
154
154
|
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,"), a = d.toString().split(",")), e === "x" && (u.WebKitCSSMatrix ? v = d.m41 : a.length === 16 ? v = parseFloat(a[12]) : v = parseFloat(a[4])), e === "y" && (u.WebKitCSSMatrix ? v = d.m42 : a.length === 16 ? v = parseFloat(a[13]) : v = parseFloat(a[5])), v || 0;
|
|
155
155
|
}
|
|
156
|
-
function Qe(
|
|
157
|
-
return typeof
|
|
156
|
+
function Qe(r) {
|
|
157
|
+
return typeof r == "object" && r !== null && r.constructor && Object.prototype.toString.call(r).slice(8, -1) === "Object";
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function ze(r, e) {
|
|
160
160
|
e === void 0 && (e = "");
|
|
161
|
-
const u = [...
|
|
162
|
-
return
|
|
161
|
+
const u = [...r.children];
|
|
162
|
+
return r instanceof HTMLSlotElement && u.push(...r.assignedElements()), e ? u.filter((a) => a.matches(e)) : u;
|
|
163
163
|
}
|
|
164
|
-
function Ue(
|
|
164
|
+
function Ue(r, e) {
|
|
165
165
|
e === void 0 && (e = []);
|
|
166
|
-
const u = document.createElement(
|
|
166
|
+
const u = document.createElement(r);
|
|
167
167
|
return u.classList.add(...Array.isArray(e) ? e : De(e)), u;
|
|
168
168
|
}
|
|
169
|
-
function
|
|
170
|
-
const e = V(), u = Oe(), a =
|
|
169
|
+
function Xe(r) {
|
|
170
|
+
const e = V(), u = Oe(), a = 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;
|
|
171
171
|
return {
|
|
172
172
|
top: a.top + y - d,
|
|
173
173
|
left: a.left + T - g
|
|
174
174
|
};
|
|
175
175
|
}
|
|
176
|
-
function et(
|
|
177
|
-
let e =
|
|
176
|
+
function et(r) {
|
|
177
|
+
let e = r, u;
|
|
178
178
|
if (e) {
|
|
179
179
|
for (u = 0; (e = e.previousSibling) !== null; )
|
|
180
180
|
e.nodeType === 1 && (u += 1);
|
|
181
181
|
return u;
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
|
-
function se(
|
|
184
|
+
function se(r, e) {
|
|
185
185
|
const u = [];
|
|
186
|
-
let a =
|
|
186
|
+
let a = r.parentElement;
|
|
187
187
|
for (; a; )
|
|
188
188
|
e ? a.matches(e) && u.push(a) : u.push(a), a = a.parentElement;
|
|
189
189
|
return u;
|
|
190
190
|
}
|
|
191
|
-
function tt(
|
|
191
|
+
function tt(r, e) {
|
|
192
192
|
function u(a) {
|
|
193
|
-
a.target ===
|
|
193
|
+
a.target === r && (e.call(r, a), r.removeEventListener("transitionend", u));
|
|
194
194
|
}
|
|
195
|
-
e &&
|
|
195
|
+
e && r.addEventListener("transitionend", u);
|
|
196
196
|
}
|
|
197
|
-
function it(
|
|
197
|
+
function it(r, e, u) {
|
|
198
198
|
const a = V();
|
|
199
|
-
return
|
|
199
|
+
return r[e === "width" ? "offsetWidth" : "offsetHeight"] + parseFloat(a.getComputedStyle(r, null).getPropertyValue(e === "width" ? "margin-right" : "margin-top")) + parseFloat(a.getComputedStyle(r, null).getPropertyValue(e === "width" ? "margin-left" : "margin-bottom"));
|
|
200
200
|
}
|
|
201
|
-
function
|
|
202
|
-
return (Array.isArray(
|
|
201
|
+
function rt(r) {
|
|
202
|
+
return (Array.isArray(r) ? r : [r]).filter((e) => !!e);
|
|
203
203
|
}
|
|
204
|
-
function Re(
|
|
204
|
+
function Re(r) {
|
|
205
205
|
let {
|
|
206
206
|
swiper: e,
|
|
207
207
|
extendParams: u,
|
|
208
208
|
on: a,
|
|
209
209
|
emit: v
|
|
210
|
-
} =
|
|
210
|
+
} = r;
|
|
211
211
|
const d = V();
|
|
212
212
|
u({
|
|
213
213
|
zoom: {
|
|
@@ -259,22 +259,22 @@ function Re(n) {
|
|
|
259
259
|
get() {
|
|
260
260
|
return H;
|
|
261
261
|
},
|
|
262
|
-
set(
|
|
263
|
-
if (H !==
|
|
262
|
+
set(n) {
|
|
263
|
+
if (H !== n) {
|
|
264
264
|
const s = t.imageEl, o = t.slideEl;
|
|
265
|
-
v("zoomChange",
|
|
265
|
+
v("zoomChange", n, s, o);
|
|
266
266
|
}
|
|
267
|
-
H =
|
|
267
|
+
H = n;
|
|
268
268
|
}
|
|
269
269
|
});
|
|
270
270
|
function F() {
|
|
271
271
|
if (m.length < 2) return 1;
|
|
272
|
-
const
|
|
273
|
-
return Math.sqrt((o -
|
|
272
|
+
const n = m[0].pageX, s = m[0].pageY, o = m[1].pageX, w = m[1].pageY;
|
|
273
|
+
return Math.sqrt((o - n) ** 2 + (w - s) ** 2);
|
|
274
274
|
}
|
|
275
275
|
function W() {
|
|
276
|
-
const
|
|
277
|
-
if (
|
|
276
|
+
const n = e.params.zoom, s = t.imageWrapEl.getAttribute("data-swiper-zoom") || n.maxRatio;
|
|
277
|
+
if (n.limitToOriginalSize && t.imageEl && t.imageEl.naturalWidth) {
|
|
278
278
|
const o = t.imageEl.naturalWidth / t.imageEl.offsetWidth;
|
|
279
279
|
return Math.min(o, s);
|
|
280
280
|
}
|
|
@@ -285,26 +285,26 @@ function Re(n) {
|
|
|
285
285
|
x: null,
|
|
286
286
|
y: null
|
|
287
287
|
};
|
|
288
|
-
const
|
|
289
|
-
return [(m[0].pageX + (m[1].pageX - m[0].pageX) / 2 -
|
|
288
|
+
const n = t.imageEl.getBoundingClientRect();
|
|
289
|
+
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
290
|
}
|
|
291
291
|
function N() {
|
|
292
292
|
return e.isElement ? "swiper-slide" : `.${e.params.slideClass}`;
|
|
293
293
|
}
|
|
294
|
-
function R(
|
|
294
|
+
function R(n) {
|
|
295
295
|
const s = N();
|
|
296
|
-
return !!(
|
|
296
|
+
return !!(n.target.matches(s) || e.slides.filter((o) => o.contains(n.target)).length > 0);
|
|
297
297
|
}
|
|
298
|
-
function l(
|
|
298
|
+
function l(n) {
|
|
299
299
|
const s = `.${e.params.zoom.containerClass}`;
|
|
300
|
-
return !!(
|
|
300
|
+
return !!(n.target.matches(s) || [...e.hostEl.querySelectorAll(s)].filter((o) => o.contains(n.target)).length > 0);
|
|
301
301
|
}
|
|
302
|
-
function f(
|
|
303
|
-
if (
|
|
302
|
+
function f(n) {
|
|
303
|
+
if (n.pointerType === "mouse" && m.splice(0, m.length), !R(n)) return;
|
|
304
304
|
const s = e.params.zoom;
|
|
305
|
-
if (T = !1, I = !1, m.push(
|
|
305
|
+
if (T = !1, I = !1, m.push(n), !(m.length < 2)) {
|
|
306
306
|
if (T = !0, t.scaleStart = F(), !t.slideEl) {
|
|
307
|
-
t.slideEl =
|
|
307
|
+
t.slideEl = n.target.closest(`.${e.params.slideClass}, swiper-slide`), t.slideEl || (t.slideEl = e.slides[e.activeIndex]);
|
|
308
308
|
let o = t.slideEl.querySelector(`.${s.containerClass}`);
|
|
309
309
|
if (o && (o = o.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), t.imageEl = o, o ? t.imageWrapEl = se(t.imageEl, `.${s.containerClass}`)[0] : t.imageWrapEl = void 0, !t.imageWrapEl) {
|
|
310
310
|
t.imageEl = void 0;
|
|
@@ -319,14 +319,14 @@ function Re(n) {
|
|
|
319
319
|
y = !0;
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
|
-
function c(
|
|
323
|
-
if (!R(
|
|
324
|
-
const s = e.params.zoom, o = e.zoom, w = m.findIndex((S) => S.pointerId ===
|
|
325
|
-
w >= 0 && (m[w] =
|
|
322
|
+
function c(n) {
|
|
323
|
+
if (!R(n)) return;
|
|
324
|
+
const s = e.params.zoom, o = e.zoom, w = m.findIndex((S) => S.pointerId === n.pointerId);
|
|
325
|
+
w >= 0 && (m[w] = n), !(m.length < 2) && (I = !0, t.scaleMove = F(), t.imageEl && (o.scale = t.scaleMove / t.scaleStart * g, o.scale > t.maxRatio && (o.scale = t.maxRatio - 1 + (o.scale - t.maxRatio + 1) ** 0.5), o.scale < s.minRatio && (o.scale = s.minRatio + 1 - (s.minRatio - o.scale + 1) ** 0.5), t.imageEl.style.transform = `translate3d(0,0,0) scale(${o.scale})`));
|
|
326
326
|
}
|
|
327
|
-
function h(
|
|
328
|
-
if (!R(
|
|
329
|
-
const s = e.params.zoom, o = e.zoom, w = m.findIndex((S) => S.pointerId ===
|
|
327
|
+
function h(n) {
|
|
328
|
+
if (!R(n) || n.pointerType === "mouse" && n.type === "pointerout") return;
|
|
329
|
+
const s = e.params.zoom, o = e.zoom, w = m.findIndex((S) => S.pointerId === n.pointerId);
|
|
330
330
|
w >= 0 && m.splice(w, 1), !(!T || !I) && (T = !1, I = !1, t.imageEl && (o.scale = Math.max(Math.min(o.scale, t.maxRatio), s.minRatio), t.imageEl.style.transitionDuration = `${e.params.speed}ms`, t.imageEl.style.transform = `translate3d(0,0,0) scale(${o.scale})`, g = o.scale, y = !1, o.scale > 1 && t.slideEl ? t.slideEl.classList.add(`${s.zoomedSlideClass}`) : o.scale <= 1 && t.slideEl && t.slideEl.classList.remove(`${s.zoomedSlideClass}`), o.scale === 1 && (t.originX = 0, t.originY = 0, t.slideEl = void 0)));
|
|
331
331
|
}
|
|
332
332
|
let E;
|
|
@@ -338,22 +338,22 @@ function Re(n) {
|
|
|
338
338
|
e.destroyed || j();
|
|
339
339
|
});
|
|
340
340
|
}
|
|
341
|
-
function b(
|
|
341
|
+
function b(n) {
|
|
342
342
|
const s = e.device;
|
|
343
343
|
if (!t.imageEl || i.isTouched) return;
|
|
344
|
-
s.android &&
|
|
345
|
-
const o = m.length > 0 ? m[0] :
|
|
344
|
+
s.android && n.cancelable && n.preventDefault(), i.isTouched = !0;
|
|
345
|
+
const o = m.length > 0 ? m[0] : n;
|
|
346
346
|
i.touchesStart.x = o.pageX, i.touchesStart.y = o.pageY;
|
|
347
347
|
}
|
|
348
|
-
function x(
|
|
349
|
-
if (!R(
|
|
348
|
+
function x(n) {
|
|
349
|
+
if (!R(n) || !l(n))
|
|
350
350
|
return;
|
|
351
351
|
const s = e.zoom;
|
|
352
352
|
if (!t.imageEl || !i.isTouched || !t.slideEl)
|
|
353
353
|
return;
|
|
354
|
-
i.isMoved || (i.width = t.imageEl.offsetWidth || t.imageEl.clientWidth, i.height = t.imageEl.offsetHeight || t.imageEl.clientHeight, i.startX =
|
|
354
|
+
i.isMoved || (i.width = t.imageEl.offsetWidth || t.imageEl.clientWidth, i.height = t.imageEl.offsetHeight || t.imageEl.clientHeight, i.startX = Ce(t.imageWrapEl, "x") || 0, i.startY = Ce(t.imageWrapEl, "y") || 0, t.slideWidth = t.slideEl.offsetWidth, t.slideHeight = t.slideEl.offsetHeight, t.imageWrapEl.style.transitionDuration = "0ms");
|
|
355
355
|
const o = i.width * s.scale, w = i.height * s.scale;
|
|
356
|
-
if (i.minX = Math.min(t.slideWidth / 2 - o / 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 :
|
|
356
|
+
if (i.minX = Math.min(t.slideWidth / 2 - o / 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) {
|
|
357
357
|
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)) {
|
|
358
358
|
i.isTouched = !1, j();
|
|
359
359
|
return;
|
|
@@ -363,7 +363,7 @@ function Re(n) {
|
|
|
363
363
|
return;
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
|
-
|
|
366
|
+
n.cancelable && n.preventDefault(), n.stopPropagation(), Q(), i.isMoved = !0;
|
|
367
367
|
const P = (s.scale - g) / (t.maxRatio - e.params.zoom.minRatio), {
|
|
368
368
|
originX: L,
|
|
369
369
|
originY: A
|
|
@@ -371,7 +371,7 @@ function Re(n) {
|
|
|
371
371
|
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)`;
|
|
372
372
|
}
|
|
373
373
|
function z() {
|
|
374
|
-
const
|
|
374
|
+
const n = e.zoom;
|
|
375
375
|
if (!t.imageEl) return;
|
|
376
376
|
if (!i.isTouched || !i.isMoved) {
|
|
377
377
|
i.isTouched = !1, i.isMoved = !1;
|
|
@@ -383,44 +383,44 @@ function Re(n) {
|
|
|
383
383
|
p.x !== 0 && (s = Math.abs((S - i.currentX) / p.x)), p.y !== 0 && (o = Math.abs((L - i.currentY) / p.y));
|
|
384
384
|
const A = Math.max(s, o);
|
|
385
385
|
i.currentX = S, i.currentY = L;
|
|
386
|
-
const G = i.width *
|
|
386
|
+
const G = i.width * n.scale, X = i.height * n.scale;
|
|
387
387
|
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)`;
|
|
388
388
|
}
|
|
389
389
|
function C() {
|
|
390
|
-
const
|
|
391
|
-
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}`),
|
|
390
|
+
const n = e.zoom;
|
|
391
|
+
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);
|
|
392
392
|
}
|
|
393
|
-
function oe(
|
|
393
|
+
function oe(n) {
|
|
394
394
|
const s = e.zoom, o = e.params.zoom;
|
|
395
395
|
if (!t.slideEl) {
|
|
396
|
-
|
|
396
|
+
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 = ze(e.slidesEl, `.${e.params.slideActiveClass}`)[0] : t.slideEl = e.slides[e.activeIndex]);
|
|
397
397
|
let B = t.slideEl.querySelector(`.${o.containerClass}`);
|
|
398
398
|
B && (B = B.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), t.imageEl = B, B ? t.imageWrapEl = se(t.imageEl, `.${o.containerClass}`)[0] : t.imageWrapEl = void 0;
|
|
399
399
|
}
|
|
400
400
|
if (!t.imageEl || !t.imageWrapEl) return;
|
|
401
401
|
e.params.cssMode && (e.wrapperEl.style.overflow = "hidden", e.wrapperEl.style.touchAction = "none"), t.slideEl.classList.add(`${o.zoomedSlideClass}`);
|
|
402
402
|
let w, S, P, L, A, G, X, O, pe, fe, ge, he, K, Z, U, ee, te, ie;
|
|
403
|
-
typeof i.touchesStart.x > "u" &&
|
|
404
|
-
const q = typeof
|
|
403
|
+
typeof i.touchesStart.x > "u" && n ? (w = n.pageX, S = n.pageY) : (w = i.touchesStart.x, S = i.touchesStart.y);
|
|
404
|
+
const q = typeof n == "number" ? n : null;
|
|
405
405
|
g === 1 && q && (w = void 0, S = void 0, i.touchesStart.x = void 0, i.touchesStart.y = void 0);
|
|
406
406
|
const ve = W();
|
|
407
|
-
s.scale = q || ve, g = q || ve,
|
|
407
|
+
s.scale = q || ve, g = q || ve, n && !(g === 1 && q) ? (te = t.slideEl.offsetWidth, ie = t.slideEl.offsetHeight, P = Xe(t.slideEl).left + d.scrollX, L = Xe(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), U = -K, ee = -Z, X = A * s.scale, O = G * s.scale, X < K && (X = K), X > U && (X = U), 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})`;
|
|
408
408
|
}
|
|
409
409
|
function le() {
|
|
410
|
-
const
|
|
410
|
+
const n = e.zoom, s = e.params.zoom;
|
|
411
411
|
if (!t.slideEl) {
|
|
412
|
-
e.params.virtual && e.params.virtual.enabled && e.virtual ? t.slideEl =
|
|
412
|
+
e.params.virtual && e.params.virtual.enabled && e.virtual ? t.slideEl = ze(e.slidesEl, `.${e.params.slideActiveClass}`)[0] : t.slideEl = e.slides[e.activeIndex];
|
|
413
413
|
let o = t.slideEl.querySelector(`.${s.containerClass}`);
|
|
414
414
|
o && (o = o.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), t.imageEl = o, o ? t.imageWrapEl = se(t.imageEl, `.${s.containerClass}`)[0] : t.imageWrapEl = void 0;
|
|
415
415
|
}
|
|
416
|
-
!t.imageEl || !t.imageWrapEl || (e.params.cssMode && (e.wrapperEl.style.overflow = "", e.wrapperEl.style.touchAction = ""),
|
|
416
|
+
!t.imageEl || !t.imageWrapEl || (e.params.cssMode && (e.wrapperEl.style.overflow = "", e.wrapperEl.style.touchAction = ""), n.scale = 1, g = 1, i.touchesStart.x = void 0, i.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(`${s.zoomedSlideClass}`), t.slideEl = void 0, t.originX = 0, t.originY = 0);
|
|
417
417
|
}
|
|
418
|
-
function ue(
|
|
418
|
+
function ue(n) {
|
|
419
419
|
const s = e.zoom;
|
|
420
|
-
s.scale && s.scale !== 1 ? le() : oe(
|
|
420
|
+
s.scale && s.scale !== 1 ? le() : oe(n);
|
|
421
421
|
}
|
|
422
422
|
function ce() {
|
|
423
|
-
const
|
|
423
|
+
const n = e.params.passiveListeners ? {
|
|
424
424
|
passive: !0,
|
|
425
425
|
capture: !1
|
|
426
426
|
} : !1, s = e.params.passiveListeners ? {
|
|
@@ -428,14 +428,14 @@ function Re(n) {
|
|
|
428
428
|
capture: !0
|
|
429
429
|
} : !0;
|
|
430
430
|
return {
|
|
431
|
-
passiveListener:
|
|
431
|
+
passiveListener: n,
|
|
432
432
|
activeListenerWithCapture: s
|
|
433
433
|
};
|
|
434
434
|
}
|
|
435
435
|
function de() {
|
|
436
|
-
const
|
|
437
|
-
if (
|
|
438
|
-
|
|
436
|
+
const n = e.zoom;
|
|
437
|
+
if (n.enabled) return;
|
|
438
|
+
n.enabled = !0;
|
|
439
439
|
const {
|
|
440
440
|
passiveListener: s,
|
|
441
441
|
activeListenerWithCapture: o
|
|
@@ -445,9 +445,9 @@ function Re(n) {
|
|
|
445
445
|
}), e.wrapperEl.addEventListener("pointermove", x, o);
|
|
446
446
|
}
|
|
447
447
|
function me() {
|
|
448
|
-
const
|
|
449
|
-
if (!
|
|
450
|
-
|
|
448
|
+
const n = e.zoom;
|
|
449
|
+
if (!n.enabled) return;
|
|
450
|
+
n.enabled = !1;
|
|
451
451
|
const {
|
|
452
452
|
passiveListener: s,
|
|
453
453
|
activeListenerWithCapture: o
|
|
@@ -460,11 +460,11 @@ function Re(n) {
|
|
|
460
460
|
e.params.zoom.enabled && de();
|
|
461
461
|
}), a("destroy", () => {
|
|
462
462
|
me();
|
|
463
|
-
}), a("touchStart", (
|
|
463
|
+
}), a("touchStart", (n, s) => {
|
|
464
464
|
e.zoom.enabled && b(s);
|
|
465
|
-
}), a("touchEnd", (
|
|
465
|
+
}), a("touchEnd", (n, s) => {
|
|
466
466
|
e.zoom.enabled && z();
|
|
467
|
-
}), a("doubleTap", (
|
|
467
|
+
}), a("doubleTap", (n, s) => {
|
|
468
468
|
!e.animating && e.params.zoom.enabled && e.zoom.enabled && e.params.zoom.toggle && ue(s);
|
|
469
469
|
}), a("transitionEnd", () => {
|
|
470
470
|
e.zoom.enabled && e.params.zoom.enabled && C();
|
|
@@ -478,7 +478,7 @@ function Re(n) {
|
|
|
478
478
|
toggle: ue
|
|
479
479
|
});
|
|
480
480
|
}
|
|
481
|
-
const Ae = ["id"], He = ["id", "data-cy"], Fe = ["data-idx", "loading", "alt", "width", "height", "onLoad"], je = ["id"], qe = ["loading", "alt"], Be = /* @__PURE__ */
|
|
481
|
+
const Ae = ["id"], He = ["id", "data-cy"], Fe = ["data-idx", "loading", "alt", "width", "height", "onLoad"], je = ["id"], qe = ["loading", "alt"], Be = /* @__PURE__ */ Me({
|
|
482
482
|
inheritAttrs: !1,
|
|
483
483
|
__name: "SwiperCarousel",
|
|
484
484
|
props: {
|
|
@@ -492,8 +492,8 @@ const Ae = ["id"], He = ["id", "data-cy"], Fe = ["data-idx", "loading", "alt", "
|
|
|
492
492
|
shiftFirstImage: { type: Boolean, default: !1 }
|
|
493
493
|
},
|
|
494
494
|
emits: ["moved", "click", "firstSlideLoaded"],
|
|
495
|
-
setup(
|
|
496
|
-
const a =
|
|
495
|
+
setup(r, { expose: e, emit: u }) {
|
|
496
|
+
const a = r, v = u, d = $e({
|
|
497
497
|
swiperParams: { modules: [Re] },
|
|
498
498
|
swiper: null,
|
|
499
499
|
initCarousel: !1
|
|
@@ -547,13 +547,13 @@ const Ae = ["id"], He = ["id", "data-cy"], Fe = ["data-idx", "loading", "alt", "
|
|
|
547
547
|
N.value?.setAttribute("data-first-slide-loaded", "true"), v("firstSlideLoaded");
|
|
548
548
|
});
|
|
549
549
|
};
|
|
550
|
-
return
|
|
550
|
+
return Te(async () => {
|
|
551
551
|
if (H(), I.value) {
|
|
552
|
-
const { Keyboard: c } = await import("./index.
|
|
552
|
+
const { Keyboard: c } = await import("./index.D6IWh9UY.js");
|
|
553
553
|
d.swiperParams.modules?.push(c), d.swiperParams.keyboard = a.swiperOptions.keyboard;
|
|
554
554
|
}
|
|
555
555
|
if (t.value) {
|
|
556
|
-
const { Pagination: c } = await import("./index.
|
|
556
|
+
const { Pagination: c } = await import("./index.D6IWh9UY.js");
|
|
557
557
|
d.swiperParams.modules?.push(c), d.swiperParams.pagination = {
|
|
558
558
|
el: ".swiper-pagination",
|
|
559
559
|
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]">
|
|
@@ -565,7 +565,7 @@ const Ae = ["id"], He = ["id", "data-cy"], Fe = ["data-idx", "loading", "alt", "
|
|
|
565
565
|
};
|
|
566
566
|
}
|
|
567
567
|
if (m.value) {
|
|
568
|
-
const { Navigation: c } = await import("./index.
|
|
568
|
+
const { Navigation: c } = await import("./index.D6IWh9UY.js");
|
|
569
569
|
d.swiperParams.modules?.push(c);
|
|
570
570
|
const h = {
|
|
571
571
|
...a.swiperOptions.navigation.nextEl ?? {
|
|
@@ -581,7 +581,7 @@ const Ae = ["id"], He = ["id", "data-cy"], Fe = ["data-idx", "loading", "alt", "
|
|
|
581
581
|
};
|
|
582
582
|
}
|
|
583
583
|
if (i.value) {
|
|
584
|
-
const { Autoplay: c } = await import("./index.
|
|
584
|
+
const { Autoplay: c } = await import("./index.D6IWh9UY.js");
|
|
585
585
|
d.swiperParams.modules?.push(c), d.swiperParams.autoplay = a.swiperOptions.autoplay;
|
|
586
586
|
}
|
|
587
587
|
const l = {
|
|
@@ -594,15 +594,15 @@ const Ae = ["id"], He = ["id", "data-cy"], Fe = ["data-idx", "loading", "alt", "
|
|
|
594
594
|
};
|
|
595
595
|
let f = null;
|
|
596
596
|
if (a.thumbSwiperOptions) {
|
|
597
|
-
const { Thumbs: c, FreeMode: h, Controller: E } = await import("./index.
|
|
598
|
-
d.swiperParams.modules?.push(c), d.swiperParams.modules?.push(E), f = new
|
|
597
|
+
const { Thumbs: c, FreeMode: h, Controller: E } = await import("./index.D6IWh9UY.js");
|
|
598
|
+
d.swiperParams.modules?.push(c), d.swiperParams.modules?.push(E), f = new Se(`#thumb_${a.id}`, {
|
|
599
599
|
...a.thumbSwiperOptions,
|
|
600
600
|
modules: [h]
|
|
601
601
|
}), l.thumbs = {
|
|
602
602
|
swiper: f
|
|
603
603
|
};
|
|
604
604
|
}
|
|
605
|
-
l.lazyPreloadPrevNext = 1, d.swiper = new
|
|
605
|
+
l.lazyPreloadPrevNext = 1, d.swiper = new Se(`#${a.id}`, l), g.value?.classList.remove("uikit-hidden");
|
|
606
606
|
}), (l, f) => (Y(), M("div", {
|
|
607
607
|
id: `root-${l.id}`,
|
|
608
608
|
ref_key: "root",
|
|
@@ -623,15 +623,15 @@ const Ae = ["id"], He = ["id", "data-cy"], Fe = ["data-idx", "loading", "alt", "
|
|
|
623
623
|
]]),
|
|
624
624
|
onClick: f[0] || (f[0] = (c) => v("click"))
|
|
625
625
|
}, [
|
|
626
|
-
|
|
627
|
-
(Y(!0), M(
|
|
626
|
+
Ee(l.$slots, "default", {}, () => [
|
|
627
|
+
(Y(!0), M(re, null, ye(l.images, (c, h) => (Y(), M("div", {
|
|
628
628
|
key: `swiper_${l.id}_${h}`,
|
|
629
629
|
class: $(["swiper-slide", l.$attrs["swiper-slide-classes"]])
|
|
630
630
|
}, [
|
|
631
631
|
D("div", {
|
|
632
632
|
class: $(["swiper-zoom-container", l.$attrs["swiper-zoom-container-classes"]])
|
|
633
633
|
}, [
|
|
634
|
-
l.backgroundImage ? _("", !0) : (Y(), M("img",
|
|
634
|
+
l.backgroundImage ? _("", !0) : (Y(), M("img", be({
|
|
635
635
|
key: 0,
|
|
636
636
|
ref_for: !0,
|
|
637
637
|
ref: (E) => {
|
|
@@ -648,26 +648,27 @@ const Ae = ["id"], He = ["id", "data-cy"], Fe = ["data-idx", "loading", "alt", "
|
|
|
648
648
|
onLoad: (E) => R(h)
|
|
649
649
|
}), null, 16, Fe))
|
|
650
650
|
], 2)
|
|
651
|
-
], 2))), 128))
|
|
651
|
+
], 2))), 128)),
|
|
652
|
+
Ee(l.$slots, "last_slide", {}, void 0, !0)
|
|
652
653
|
], !0)
|
|
653
654
|
], 2),
|
|
654
655
|
t.value ? (Y(), M("div", {
|
|
655
656
|
key: 0,
|
|
656
657
|
class: $([l.$attrs["swiper-pagination-classes"], "swiper-pagination [&.swiper-pagination-fraction]:uikit-flex [&.swiper-pagination-fraction]:uikit-justify-center"]),
|
|
657
|
-
onClick: f[1] || (f[1] =
|
|
658
|
+
onClick: f[1] || (f[1] = ne(() => {
|
|
658
659
|
}, ["stop"]))
|
|
659
660
|
}, null, 2)) : _("", !0),
|
|
660
|
-
m.value ? (Y(), M(
|
|
661
|
+
m.value ? (Y(), M(re, { key: 1 }, [
|
|
661
662
|
D("div", {
|
|
662
663
|
class: "swiper-button-prev",
|
|
663
664
|
"data-cy": "swiper-button-prev",
|
|
664
|
-
onClick: f[2] || (f[2] =
|
|
665
|
+
onClick: f[2] || (f[2] = ne(() => {
|
|
665
666
|
}, ["stop"]))
|
|
666
667
|
}),
|
|
667
668
|
D("div", {
|
|
668
669
|
class: "swiper-button-next",
|
|
669
670
|
"data-cy": "swiper-button-next",
|
|
670
|
-
onClick: f[3] || (f[3] =
|
|
671
|
+
onClick: f[3] || (f[3] = ne(() => {
|
|
671
672
|
}, ["stop"]))
|
|
672
673
|
})
|
|
673
674
|
], 64)) : _("", !0)
|
|
@@ -681,11 +682,11 @@ const Ae = ["id"], He = ["id", "data-cy"], Fe = ["data-idx", "loading", "alt", "
|
|
|
681
682
|
D("div", {
|
|
682
683
|
class: $(["swiper-wrapper", l.$attrs["thumb-swiper-wrapper-classes"]])
|
|
683
684
|
}, [
|
|
684
|
-
(Y(!0), M(
|
|
685
|
+
(Y(!0), M(re, null, ye(l.images, (c, h) => (Y(), M("div", {
|
|
685
686
|
key: `thumb_${l.id}_${h}`,
|
|
686
687
|
class: $(["swiper-slide", l.$attrs["thumb-img-wrapper-classes"]])
|
|
687
688
|
}, [
|
|
688
|
-
D("img",
|
|
689
|
+
D("img", be({
|
|
689
690
|
class: l.$attrs["thumb-img-classes"],
|
|
690
691
|
ref_for: !0
|
|
691
692
|
}, F(c), {
|
|
@@ -697,13 +698,13 @@ const Ae = ["id"], He = ["id", "data-cy"], Fe = ["data-idx", "loading", "alt", "
|
|
|
697
698
|
], 10, je)) : _("", !0)
|
|
698
699
|
], 10, Ae));
|
|
699
700
|
}
|
|
700
|
-
}),
|
|
701
|
+
}), nt = /* @__PURE__ */ Le(Be, [["__scopeId", "data-v-78c82660"]]);
|
|
701
702
|
export {
|
|
702
|
-
|
|
703
|
+
nt as S,
|
|
703
704
|
Re as Z,
|
|
704
705
|
V as a,
|
|
705
|
-
|
|
706
|
-
|
|
706
|
+
Xe as b,
|
|
707
|
+
ze as c,
|
|
707
708
|
Ue as d,
|
|
708
709
|
se as e,
|
|
709
710
|
it as f,
|
|
@@ -712,6 +713,6 @@ export {
|
|
|
712
713
|
tt as i,
|
|
713
714
|
Qe as j,
|
|
714
715
|
Je as k,
|
|
715
|
-
|
|
716
|
+
rt as m,
|
|
716
717
|
_e as n
|
|
717
718
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as F, a as W, e as V, b as X, c as _, d as Y, m as P, f as Z, h as G, n as J, i as q, j as Q, k as R } from "./SwiperCarousel.
|
|
2
|
-
import { Z as ce } from "./SwiperCarousel.
|
|
1
|
+
import { g as F, a as W, e as V, b as X, c as _, d as Y, m as P, f as Z, h as G, n as J, i as q, j as Q, k as R } from "./SwiperCarousel.DWUl3bgn.js";
|
|
2
|
+
import { Z as ce } from "./SwiperCarousel.DWUl3bgn.js";
|
|
3
3
|
function te(k) {
|
|
4
4
|
let {
|
|
5
5
|
swiper: e,
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { ref as f, onMounted as w, onUnmounted as E, unref as x } from "vue";
|
|
2
2
|
const D = (o) => {
|
|
3
3
|
const { isDropdownOpen: a, disableSpaceHandler: m } = o, n = f(-1), t = f(-1);
|
|
4
|
-
if (!(o.activate === void 0 || o.activate))
|
|
5
|
-
return { activeIdx: n, selectedIdx: t };
|
|
4
|
+
if (!(o.activate === void 0 || o.activate)) return { activeIdx: n, selectedIdx: t };
|
|
6
5
|
const l = (e) => {
|
|
7
6
|
const v = "ArrowUp", d = "ArrowDown", i = "Enter", c = "Escape", u = " ", s = "PageUp", y = "Home", k = "PageDown", p = "End";
|
|
8
7
|
if (!a.value || ![
|
|
@@ -23,11 +22,9 @@ const D = (o) => {
|
|
|
23
22
|
else if (e.key === d)
|
|
24
23
|
n.value = (n.value + 1) % r;
|
|
25
24
|
else if (e.key === i || e.key === u) {
|
|
26
|
-
if (e.key === u && m)
|
|
27
|
-
return;
|
|
25
|
+
if (e.key === u && m) return;
|
|
28
26
|
t.value = n.value, a.value = !1;
|
|
29
|
-
} else
|
|
30
|
-
e.key === c ? (n.value = t.value, a.value = !1) : e.key === s || e.key === y ? n.value = 0 : (e.key === k || e.key === p) && (n.value = r - 1);
|
|
27
|
+
} else e.key === c ? (n.value = t.value, a.value = !1) : e.key === s || e.key === y ? n.value = 0 : (e.key === k || e.key === p) && (n.value = r - 1);
|
|
31
28
|
e.stopPropagation(), e.preventDefault();
|
|
32
29
|
};
|
|
33
30
|
return w(() => {
|