@wikicasa-dev/components 2.1.1 → 2.1.2-alpha.2

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