@wikicasa-dev/components 2.0.49 → 2.0.51

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 (128) hide show
  1. package/dist/AccessibleSelect.js +1 -1
  2. package/dist/BaseAccordion.js +1 -1
  3. package/dist/BaseAccordionBtn.js +1 -1
  4. package/dist/BaseAccordionContent.js +1 -1
  5. package/dist/BaseAccordionItem.js +1 -1
  6. package/dist/BaseAlert.js +1 -1
  7. package/dist/BaseAutocomplete.js +1 -1
  8. package/dist/BaseBadge.js +1 -1
  9. package/dist/BaseBreadcrumb.js +1 -1
  10. package/dist/BaseButton.js +1 -1
  11. package/dist/BaseCard.js +2 -2
  12. package/dist/BaseComplexToggle.js +4 -4
  13. package/dist/BaseDropDown.js +1 -1
  14. package/dist/BaseFloatingLabel.js +3 -3
  15. package/dist/BaseIcon.js +4 -4
  16. package/dist/BaseInput.js +9 -9
  17. package/dist/BaseModal.js +1 -1
  18. package/dist/BasePagination.js +1 -1
  19. package/dist/BasePaper.js +2 -2
  20. package/dist/BaseShimmerLoader.js +2 -2
  21. package/dist/BaseSlider.js +2 -2
  22. package/dist/BaseSnackbar.js +3 -3
  23. package/dist/BaseTabList.js +1 -1
  24. package/dist/BaseTabPanel.js +1 -1
  25. package/dist/BaseTabView.js +1 -1
  26. package/dist/BaseTextarea.js +4 -4
  27. package/dist/BaseToggle.js +4 -4
  28. package/dist/BaseTooltip.js +3 -3
  29. package/dist/BaseUploadFile.js +1 -1
  30. package/dist/CheckboxBtn.js +5 -5
  31. package/dist/CheckboxGroup.js +1 -1
  32. package/dist/DoughnutChart.js +1 -1
  33. package/dist/IntersectionObservable.js +1 -1
  34. package/dist/IntersectionObserver.js +1 -1
  35. package/dist/LineChart.js +1 -1
  36. package/dist/RadioButton.js +1 -1
  37. package/dist/RadioGroup.js +1 -1
  38. package/dist/SelectItem.js +1 -1
  39. package/dist/ShimmerMultiLine.js +1 -1
  40. package/dist/SimpleSlider.js +2 -2
  41. package/dist/StaticSpinner.js +2 -2
  42. package/dist/SwiperCarousel.js +1 -1
  43. package/dist/SwiperSlide.js +2 -2
  44. package/dist/UIKit/AccessibleSelect.vue.d.ts +7 -11
  45. package/dist/UIKit/Accordion/BaseAccordion.vue.d.ts +9 -12
  46. package/dist/UIKit/Accordion/BaseAccordionBtn.vue.d.ts +12 -17
  47. package/dist/UIKit/Accordion/BaseAccordionContent.vue.d.ts +10 -14
  48. package/dist/UIKit/Accordion/BaseAccordionItem.vue.d.ts +20 -33
  49. package/dist/UIKit/BaseAlert.vue.d.ts +7 -7
  50. package/dist/UIKit/BaseAutocomplete.vue.d.ts +6 -10
  51. package/dist/UIKit/BaseBadge.vue.d.ts +6 -6
  52. package/dist/UIKit/BaseBreadcrumb.vue.d.ts +8 -10
  53. package/dist/UIKit/BaseButton.vue.d.ts +17 -30
  54. package/dist/UIKit/BaseCard.vue.d.ts +12 -15
  55. package/dist/UIKit/BaseComplexToggle.vue.d.ts +7 -6
  56. package/dist/UIKit/BaseDropDown.vue.d.ts +9 -6
  57. package/dist/UIKit/BaseFloatingLabel.vue.d.ts +5 -11
  58. package/dist/UIKit/BaseIcon.vue.d.ts +3 -9
  59. package/dist/UIKit/BaseInput.vue.d.ts +10 -7
  60. package/dist/UIKit/BaseModal.vue.d.ts +25 -44
  61. package/dist/UIKit/BasePagination.vue.d.ts +5 -5
  62. package/dist/UIKit/BaseSelect/SelectItem.vue.d.ts +10 -12
  63. package/dist/UIKit/BaseSlider.vue.d.ts +10 -7
  64. package/dist/UIKit/BaseSnackbar.vue.d.ts +7 -14
  65. package/dist/UIKit/BaseTextarea.vue.d.ts +7 -5
  66. package/dist/UIKit/BaseToggle.vue.d.ts +6 -5
  67. package/dist/UIKit/BaseTooltip.vue.d.ts +13 -20
  68. package/dist/UIKit/BaseUploadFile.vue.d.ts +13 -19
  69. package/dist/UIKit/Checkbox/CheckboxBtn.vue.d.ts +18 -31
  70. package/dist/UIKit/Checkbox/CheckboxGroup.vue.d.ts +23 -43
  71. package/dist/UIKit/Radio/RadioButton.vue.d.ts +7 -11
  72. package/dist/UIKit/Radio/RadioGroup.vue.d.ts +8 -7
  73. package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.vue.d.ts +6 -6
  74. package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.vue.d.ts +54 -8
  75. package/dist/UIKit/Slider/SimpleSlider.vue.d.ts +7 -5
  76. package/dist/UIKit/StaticSpinner.vue.d.ts +3 -5
  77. package/dist/UIKit/Tab/BaseTab.vue.d.ts +8 -10
  78. package/dist/UIKit/Tab/BaseTabList.vue.d.ts +5 -7
  79. package/dist/UIKit/Tab/BaseTabPanel.vue.d.ts +9 -11
  80. package/dist/UIKit/Tab/BaseTabView.vue.d.ts +7 -5
  81. package/dist/assets/SwiperCarousel.css +1 -1
  82. package/dist/chart/DoughnutChart.vue.d.ts +3 -5
  83. package/dist/chart/LineChart.vue.d.ts +4 -6
  84. package/dist/chart/composables/useChartjsModules.d.ts +1 -1
  85. package/dist/chunks/{AccessibleSelect.vue_vue_type_script_setup_true_lang.Dpwbklqk.js → AccessibleSelect.vue_vue_type_script_setup_true_lang.aBS46udY.js} +89 -87
  86. package/dist/chunks/{ArrowIcon.CCFMdsq6.js → ArrowIcon.Bq6Xr3uH.js} +1 -1
  87. package/dist/chunks/{BaseAccordion.vue_vue_type_script_setup_true_lang.R7qkuKlw.js → BaseAccordion.vue_vue_type_script_setup_true_lang.C34SZThb.js} +2 -2
  88. package/dist/chunks/{BaseAccordionBtn.vue_vue_type_script_setup_true_lang.DsDqk9iP.js → BaseAccordionBtn.vue_vue_type_script_setup_true_lang.APN3hif2.js} +4 -4
  89. package/dist/chunks/{BaseAccordionContent.vue_vue_type_script_setup_true_lang.C0aiiljz.js → BaseAccordionContent.vue_vue_type_script_setup_true_lang.Dn4qNu2R.js} +2 -2
  90. package/dist/chunks/{BaseAccordionItem.vue_vue_type_script_setup_true_lang.Caagpb9M.js → BaseAccordionItem.vue_vue_type_script_setup_true_lang.Dpjir3yq.js} +8 -8
  91. package/dist/chunks/{BaseAlert.vue_vue_type_style_index_0_lang.BtqP_iYL.js → BaseAlert.vue_vue_type_style_index_0_lang.DUWb9d9_.js} +2 -2
  92. package/dist/chunks/{BaseAutocomplete.vue_vue_type_script_setup_true_lang.B31Vyyn6.js → BaseAutocomplete.vue_vue_type_script_setup_true_lang.C64T2OK4.js} +9 -9
  93. package/dist/chunks/{BaseBadge.vue_vue_type_style_index_0_lang.BOA1gBKu.js → BaseBadge.vue_vue_type_style_index_0_lang.D2PAy8_x.js} +2 -2
  94. package/dist/chunks/{BaseBreadcrumb.vue_vue_type_script_setup_true_lang.BAE3i6sW.js → BaseBreadcrumb.vue_vue_type_script_setup_true_lang.DlSPjwQe.js} +7 -7
  95. package/dist/chunks/{BaseButton.vue_vue_type_script_setup_true_lang.BWZPE2Gf.js → BaseButton.vue_vue_type_script_setup_true_lang.ChUdDzP1.js} +4 -4
  96. package/dist/chunks/{BaseDropDown.vue_vue_type_script_setup_true_lang.CpbjEyOl.js → BaseDropDown.vue_vue_type_script_setup_true_lang.DoEvtblv.js} +9 -9
  97. package/dist/chunks/{BaseModal.vue_vue_type_style_index_0_lang.CeKWAwpg.js → BaseModal.vue_vue_type_style_index_0_lang.Cy2ThBHM.js} +4 -4
  98. package/dist/chunks/{BasePagination.vue_vue_type_script_setup_true_lang.Cb6fEMc-.js → BasePagination.vue_vue_type_script_setup_true_lang.D_X7MS6X.js} +20 -19
  99. package/dist/chunks/{BaseTabList.vue_vue_type_script_setup_true_lang.CohlLou1.js → BaseTabList.vue_vue_type_script_setup_true_lang.CHOGs5d-.js} +2 -2
  100. package/dist/chunks/{BaseTabPanel.vue_vue_type_script_setup_true_lang.DoZHWHt1.js → BaseTabPanel.vue_vue_type_script_setup_true_lang.CVJUssBq.js} +2 -2
  101. package/dist/chunks/{BaseTabView.vue_vue_type_script_setup_true_lang.DTPN9Rg-.js → BaseTabView.vue_vue_type_script_setup_true_lang.CUgJNst9.js} +3 -3
  102. package/dist/chunks/{BaseUploadFile.vue_vue_type_script_setup_true_lang.2elmVcZt.js → BaseUploadFile.vue_vue_type_script_setup_true_lang.Cgu0FMFv.js} +1 -1
  103. package/dist/chunks/{CheckboxGroup.vue_vue_type_script_setup_true_lang.Cf8YnCGf.js → CheckboxGroup.vue_vue_type_script_setup_true_lang.CAO5UUO3.js} +15 -15
  104. package/dist/chunks/{CloseIcon.DIkr4soH.js → CloseIcon.BZ4U3aiI.js} +1 -1
  105. package/dist/chunks/{DoughnutChart.vue_vue_type_script_setup_true_lang.C4QPaUsI.js → DoughnutChart.vue_vue_type_script_setup_true_lang.B8wxbJBV.js} +3 -3
  106. package/dist/chunks/{IntersectionObservable.vue_vue_type_script_setup_true_lang.BBMxY-re.js → IntersectionObservable.vue_vue_type_script_setup_true_lang.DC17cx-h.js} +2 -2
  107. package/dist/chunks/{IntersectionObserver.vue_vue_type_script_setup_true_lang.CQHjzQc3.js → IntersectionObserver.vue_vue_type_script_setup_true_lang.BKewKDXG.js} +2 -2
  108. package/dist/chunks/{LineChart.vue_vue_type_script_setup_true_lang.iRZ_Q6nK.js → LineChart.vue_vue_type_script_setup_true_lang.CXNsFiyD.js} +3 -3
  109. package/dist/chunks/ObjectUtils.DwkJjVq1.js +10 -0
  110. package/dist/chunks/PharmacyIcon.DEQ8mOEJ.js +11 -0
  111. package/dist/chunks/{RadioButton.vue_vue_type_script_setup_true_lang.CiJAhkRj.js → RadioButton.vue_vue_type_script_setup_true_lang.DRQnjRA7.js} +2 -2
  112. package/dist/chunks/{RadioGroup.vue_vue_type_script_setup_true_lang.DdmSUyxZ.js → RadioGroup.vue_vue_type_script_setup_true_lang.CpsMf2PN.js} +2 -2
  113. package/dist/chunks/{SelectItem.vue_vue_type_script_setup_true_lang.GPFf7fjA.js → SelectItem.vue_vue_type_script_setup_true_lang.Drq_K7Vx.js} +2 -2
  114. package/dist/chunks/{ShimmerMultiLine.vue_vue_type_script_setup_true_lang.DuLXZx8X.js → ShimmerMultiLine.vue_vue_type_script_setup_true_lang.CF7CkxXk.js} +3 -3
  115. package/dist/chunks/SwiperCarousel.D_wjYYan.js +749 -0
  116. package/dist/chunks/{index.D6IWh9UY.js → index.B8665G6v.js} +9 -7
  117. package/dist/chunks/polyline.DjpLdMaW.js +5256 -0
  118. package/dist/chunks/{types-B0dZ7OiV.D29wNgoj.js → useBreakpoints.BXk8Xcw3.js} +2854 -874
  119. package/dist/components/IntersectionObserver/IntersectionObservable.vue.d.ts +10 -9
  120. package/dist/components/IntersectionObserver/IntersectionObserver.vue.d.ts +5 -2
  121. package/dist/components/carousel/SwiperCarousel.vue.d.ts +9 -9
  122. package/dist/components/carousel/SwiperSlide.vue.d.ts +3 -2
  123. package/dist/index.js +25 -25
  124. package/package.json +28 -27
  125. package/dist/chunks/ObjectUtils.BOUbloeg.js +0 -10
  126. package/dist/chunks/PharmacyIcon.56ql_DYl.js +0 -19
  127. package/dist/chunks/SwiperCarousel.DWUl3bgn.js +0 -718
  128. package/dist/chunks/useKeyboardController.CutKeclN.js +0 -41
@@ -0,0 +1,749 @@
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.DjpLdMaW.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 st() {
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 rt(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(s) {
271
+ if (j !== s) {
272
+ const a = i.imageEl, r = i.slideEl;
273
+ c("zoomChange", s, a, r);
274
+ }
275
+ j = s;
276
+ }
277
+ });
278
+ function O() {
279
+ if (m.length < 2) return 1;
280
+ const s = m[0].pageX, a = m[0].pageY, r = m[1].pageX, g = m[1].pageY;
281
+ return Math.sqrt((r - s) ** 2 + (g - a) ** 2);
282
+ }
283
+ function Q() {
284
+ const s = t.params.zoom, a = i.imageWrapEl.getAttribute("data-swiper-zoom") || s.maxRatio;
285
+ if (s.limitToOriginalSize && i.imageEl && i.imageEl.naturalWidth) {
286
+ const r = i.imageEl.naturalWidth / i.imageEl.offsetWidth;
287
+ return Math.min(r, a);
288
+ }
289
+ return a;
290
+ }
291
+ function U() {
292
+ if (m.length < 2) return {
293
+ x: null,
294
+ y: null
295
+ };
296
+ const s = i.imageEl.getBoundingClientRect();
297
+ return [(m[0].pageX + (m[1].pageX - m[0].pageX) / 2 - s.x - E.scrollX) / f, (m[0].pageY + (m[1].pageY - m[0].pageY) / 2 - s.y - E.scrollY) / f];
298
+ }
299
+ function se() {
300
+ return t.isElement ? "swiper-slide" : `.${t.params.slideClass}`;
301
+ }
302
+ function l(s) {
303
+ const a = se();
304
+ return !!(s.target.matches(a) || t.slides.filter((r) => r.contains(s.target)).length > 0);
305
+ }
306
+ function h(s) {
307
+ const a = `.${t.params.zoom.containerClass}`;
308
+ return !!(s.target.matches(a) || [...t.hostEl.querySelectorAll(a)].filter((r) => r.contains(s.target)).length > 0);
309
+ }
310
+ function u(s) {
311
+ if (s.pointerType === "mouse" && m.splice(0, m.length), !l(s)) return;
312
+ const a = t.params.zoom;
313
+ if (F = !1, R = !1, m.push(s), !(m.length < 2)) {
314
+ if (F = !0, i.scaleStart = O(), !i.slideEl) {
315
+ i.slideEl = s.target.closest(`.${t.params.slideClass}, swiper-slide`), i.slideEl || (i.slideEl = t.slides[t.activeIndex]);
316
+ let r = i.slideEl.querySelector(`.${a.containerClass}`);
317
+ if (r && (r = r.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), i.imageEl = r, r ? 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 [r, g] = U();
325
+ i.originX = r, i.originY = g, i.imageEl.style.transitionDuration = "0ms";
326
+ }
327
+ $ = !0;
328
+ }
329
+ }
330
+ function v(s) {
331
+ if (!l(s)) return;
332
+ const a = t.params.zoom, r = t.zoom, g = m.findIndex((w) => w.pointerId === s.pointerId);
333
+ g >= 0 && (m[g] = s), !(m.length < 2) && (R = !0, i.scaleMove = O(), i.imageEl && (r.scale = i.scaleMove / i.scaleStart * f, r.scale > i.maxRatio && (r.scale = i.maxRatio - 1 + (r.scale - i.maxRatio + 1) ** 0.5), r.scale < a.minRatio && (r.scale = a.minRatio + 1 - (a.minRatio - r.scale + 1) ** 0.5), i.imageEl.style.transform = `translate3d(0,0,0) scale(${r.scale})`));
334
+ }
335
+ function b(s) {
336
+ if (!l(s) || s.pointerType === "mouse" && s.type === "pointerout") return;
337
+ const a = t.params.zoom, r = t.zoom, g = m.findIndex((w) => w.pointerId === s.pointerId);
338
+ g >= 0 && m.splice(g, 1), !(!F || !R) && (F = !1, R = !1, i.imageEl && (r.scale = Math.max(Math.min(r.scale, i.maxRatio), a.minRatio), i.imageEl.style.transitionDuration = `${t.params.speed}ms`, i.imageEl.style.transform = `translate3d(0,0,0) scale(${r.scale})`, f = r.scale, $ = !1, r.scale > 1 && i.slideEl ? i.slideEl.classList.add(`${a.zoomedSlideClass}`) : r.scale <= 1 && i.slideEl && i.slideEl.classList.remove(`${a.zoomedSlideClass}`), r.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(s) {
350
+ const a = t.device;
351
+ if (!i.imageEl || e.isTouched) return;
352
+ a.android && s.cancelable && s.preventDefault(), e.isTouched = !0;
353
+ const r = m.length > 0 ? m[0] : s;
354
+ e.touchesStart.x = r.pageX, e.touchesStart.y = r.pageY;
355
+ }
356
+ function X(s) {
357
+ const r = s.pointerType === "mouse" && t.params.zoom.panOnMouseMove;
358
+ if (!l(s) || !h(s))
359
+ return;
360
+ const g = t.zoom;
361
+ if (!i.imageEl)
362
+ return;
363
+ if (!e.isTouched || !i.slideEl) {
364
+ r && he(s);
365
+ return;
366
+ }
367
+ if (r) {
368
+ he(s);
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 * g.scale, k = e.height * g.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 : s.pageX, e.touchesCurrent.y = m.length > 0 ? m[0].pageY : s.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
+ s.cancelable && s.preventDefault(), s.stopPropagation(), M(), e.isMoved = !0;
384
+ const T = (g.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 s = 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, r = 300;
399
+ const g = p.x * a, w = e.currentX + g, k = p.y * r, D = e.currentY + k;
400
+ p.x !== 0 && (a = Math.abs((w - e.currentX) / p.x)), p.y !== 0 && (r = Math.abs((D - e.currentY) / p.y));
401
+ const T = Math.max(a, r);
402
+ e.currentX = w, e.currentY = D;
403
+ const I = e.width * s.scale, y = e.height * s.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 s = 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}`), s.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(s) {
411
+ if (f <= 1 || !i.imageWrapEl || !l(s) || !h(s)) return;
412
+ const a = E.getComputedStyle(i.imageWrapEl).transform, r = new E.DOMMatrix(a);
413
+ if (!x) {
414
+ x = !0, S.x = s.clientX, S.y = s.clientY, e.startX = r.e, e.startY = r.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 g = (s.clientX - S.x) * J, w = (s.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 + g, 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 = s.clientX, S.y = s.clientY, e.startX = q, e.startY = B, e.currentX = q, e.currentY = B;
419
+ }
420
+ function ve(s) {
421
+ const a = t.zoom, r = t.params.zoom;
422
+ if (!i.slideEl) {
423
+ s && s.target && (i.slideEl = s.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(`.${r.containerClass}`);
425
+ Z && (Z = Z.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), i.imageEl = Z, Z ? i.imageWrapEl = fe(i.imageEl, `.${r.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(`${r.zoomedSlideClass}`);
429
+ let g, w, k, D, T, I, y, Y, K, ee, q, B, te, ie, re, ae, oe, le;
430
+ typeof e.touchesStart.x > "u" && s ? (g = s.pageX, w = s.pageY) : (g = e.touchesStart.x, w = e.touchesStart.y);
431
+ const ue = f, V = typeof s == "number" ? s : null;
432
+ f === 1 && V && (g = 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, s && !(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 - g, 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), re = -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 > re && (y = re), 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 s = 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 r = i.slideEl.querySelector(`.${a.containerClass}`);
441
+ r && (r = r.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), i.imageEl = r, r ? 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 = ""), s.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(s) {
449
+ const a = t.zoom;
450
+ a.scale && a.scale !== 1 ? Ee() : ve(s);
451
+ }
452
+ function ye() {
453
+ const s = 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: s,
462
+ activeListenerWithCapture: a
463
+ };
464
+ }
465
+ function xe() {
466
+ const s = t.zoom;
467
+ if (s.enabled) return;
468
+ s.enabled = !0;
469
+ const {
470
+ passiveListener: a,
471
+ activeListenerWithCapture: r
472
+ } = ye();
473
+ t.wrapperEl.addEventListener("pointerdown", u, a), t.wrapperEl.addEventListener("pointermove", v, r), ["pointerup", "pointercancel", "pointerout"].forEach((g) => {
474
+ t.wrapperEl.addEventListener(g, b, a);
475
+ }), t.wrapperEl.addEventListener("pointermove", X, r);
476
+ }
477
+ function be() {
478
+ const s = t.zoom;
479
+ if (!s.enabled) return;
480
+ s.enabled = !1;
481
+ const {
482
+ passiveListener: a,
483
+ activeListenerWithCapture: r
484
+ } = ye();
485
+ t.wrapperEl.removeEventListener("pointerdown", u, a), t.wrapperEl.removeEventListener("pointermove", v, r), ["pointerup", "pointercancel", "pointerout"].forEach((g) => {
486
+ t.wrapperEl.removeEventListener(g, b, a);
487
+ }), t.wrapperEl.removeEventListener("pointermove", X, r);
488
+ }
489
+ o("init", () => {
490
+ t.params.zoom.enabled && xe();
491
+ }), o("destroy", () => {
492
+ be();
493
+ }), o("touchStart", (s, a) => {
494
+ t.zoom.enabled && C(a);
495
+ }), o("touchEnd", (s, a) => {
496
+ t.zoom.enabled && z();
497
+ }), o("doubleTap", (s, 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", "loading", "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, h = -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" && h > S.value ? (u = "", v = "", { sizes: b, "data-src": _, "data-srcset": G }) : { src: u, srcset: v, sizes: b };
553
+ }, O = [], Q = (l) => {
554
+ if (typeof S.value == "string") return;
555
+ const h = O[l];
556
+ if (h && !h.src && (h.src = h.dataset.src || "", h.srcset = h.dataset.srcset || ""), l < S.value || l + 1 >= (n.images ?? []).length)
557
+ return;
558
+ const u = O[l + 1];
559
+ u && !u.src && (u.src = u?.dataset.src || "", u.srcset = u?.dataset.srcset || "");
560
+ };
561
+ t({
562
+ moveTo(l, h = 0, u = !0) {
563
+ c.swiper?.slideTo(l, h, u);
564
+ }
565
+ });
566
+ const U = ce(null), se = (l) => {
567
+ l === 0 && O && O[l] && Me(() => {
568
+ U.value?.setAttribute("data-first-slide-loaded", "true"), o("firstSlideLoaded");
569
+ });
570
+ };
571
+ return Ie(async () => {
572
+ if (p(), F.value) {
573
+ const { Keyboard: u } = await import("./index.B8665G6v.js");
574
+ c.swiperParams.modules?.push(u), c.swiperParams.keyboard = n.swiperOptions.keyboard;
575
+ }
576
+ if (m.value) {
577
+ const { Pagination: u } = await import("./index.B8665G6v.js");
578
+ c.swiperParams.modules?.push(u), c.swiperParams.pagination = {
579
+ el: ".swiper-pagination",
580
+ 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]">
581
+ <span data-cy="swiper-pagination-current" class="${v}"></span>
582
+ /
583
+ <span data-cy="swiper-pagination-total" class="${b}"></span>
584
+ </div>`,
585
+ ...typeof c.swiperParams.pagination == "boolean" ? {} : c.swiperParams.pagination
586
+ };
587
+ }
588
+ if (R.value) {
589
+ const { Navigation: u } = await import("./index.B8665G6v.js");
590
+ c.swiperParams.modules?.push(u);
591
+ const v = {
592
+ ...n.swiperOptions.navigation.nextEl ?? {
593
+ nextEl: ".swiper-button-next"
594
+ },
595
+ ...n.swiperOptions.navigation.prevEl ?? {
596
+ prevEl: ".swiper-button-prev"
597
+ }
598
+ };
599
+ c.swiperParams.navigation = {
600
+ ...typeof n.swiperOptions.navigation == "object" ? n.swiperOptions.navigation : {},
601
+ ...v
602
+ };
603
+ }
604
+ if (i.value) {
605
+ const { Autoplay: u } = await import("./index.B8665G6v.js");
606
+ c.swiperParams.modules?.push(u), c.swiperParams.autoplay = n.swiperOptions.autoplay;
607
+ }
608
+ const l = {
609
+ ...c.swiperParams,
610
+ on: {
611
+ init: () => {
612
+ f.value = !0;
613
+ },
614
+ slideChange: (u) => {
615
+ Q(u.activeIndex), o("moved", { activeIndex: u.activeIndex });
616
+ }
617
+ }
618
+ };
619
+ let h = null;
620
+ if (n.thumbSwiperOptions) {
621
+ const { Thumbs: u, FreeMode: v, Controller: b } = await import("./index.B8665G6v.js");
622
+ c.swiperParams.modules?.push(u), c.swiperParams.modules?.push(b), h = new ze(`#thumb_${x.value}`, {
623
+ ...n.thumbSwiperOptions,
624
+ modules: [v]
625
+ }), l.thumbs = {
626
+ swiper: h
627
+ };
628
+ }
629
+ l.lazyPreloadPrevNext = 1, c.swiper = new ze(`#${x.value}`, l), E.value?.classList.remove("uikit-hidden");
630
+ }), He(
631
+ () => n.images,
632
+ () => {
633
+ Me(() => {
634
+ c.swiper?.update();
635
+ });
636
+ }
637
+ ), (l, h) => (P(), W("div", {
638
+ id: `root-${x.value}`,
639
+ ref_key: "root",
640
+ ref: U,
641
+ class: L(["swiper-carousel-root", l.$attrs["root-classes"]])
642
+ }, [
643
+ A("div", {
644
+ id: x.value,
645
+ "data-cy": l.$attrs["data-cy"],
646
+ class: L(["swiper", l.$attrs["swiper-classes"]])
647
+ }, [
648
+ A("div", {
649
+ ref_key: "swiperWrapper",
650
+ ref: E,
651
+ class: L(["swiper-wrapper", [
652
+ l.$attrs["swiper-wrapper-classes"],
653
+ e.value === "none" && "no-transition"
654
+ ]]),
655
+ onClick: h[0] || (h[0] = (u) => o("click"))
656
+ }, [
657
+ Xe(l.$slots, "default", {}, () => [
658
+ (P(!0), W(de, null, Ye(l.images, (u, v) => (P(), W("div", {
659
+ key: `swiper_${x.value}_${v}`,
660
+ class: L(["swiper-slide", l.$attrs["swiper-slide-classes"]])
661
+ }, [
662
+ A("div", {
663
+ class: L(["swiper-zoom-container", l.$attrs["swiper-zoom-container-classes"]])
664
+ }, [
665
+ l.backgroundImage ? ne("", !0) : (P(), W("img", Ce({
666
+ key: 0,
667
+ ref_for: !0,
668
+ ref: (b) => {
669
+ O.push(b);
670
+ },
671
+ class: ["disable-select", [l.$attrs["slide-img-classes"] || u.classes]],
672
+ "data-idx": `${x.value}-slide-img-${v}`
673
+ }, j(u, v), {
674
+ loading: l.lazyLoadImages || v >= S.value ? "lazy" : void 0,
675
+ alt: u.alt,
676
+ itemprop: "image",
677
+ width: u.width,
678
+ height: u.height,
679
+ onLoad: (b) => se(v)
680
+ }), null, 16, Ke))
681
+ ], 2)
682
+ ], 2))), 128)),
683
+ Xe(l.$slots, "last_slide", {}, void 0, !0)
684
+ ], !0)
685
+ ], 2),
686
+ m.value ? (P(), W("div", {
687
+ key: 0,
688
+ class: L([l.$attrs["swiper-pagination-classes"], "swiper-pagination [&.swiper-pagination-fraction]:uikit-flex [&.swiper-pagination-fraction]:uikit-justify-center"]),
689
+ onClick: h[1] || (h[1] = me(() => {
690
+ }, ["stop"]))
691
+ }, null, 2)) : ne("", !0),
692
+ R.value ? (P(), W(de, { key: 1 }, [
693
+ A("div", {
694
+ class: "swiper-button-prev",
695
+ "data-cy": "swiper-button-prev",
696
+ onClick: h[2] || (h[2] = me(() => {
697
+ }, ["stop"]))
698
+ }),
699
+ A("div", {
700
+ class: "swiper-button-next",
701
+ "data-cy": "swiper-button-next",
702
+ onClick: h[3] || (h[3] = me(() => {
703
+ }, ["stop"]))
704
+ })
705
+ ], 64)) : ne("", !0)
706
+ ], 10, Ge),
707
+ l.thumbSwiperOptions ? (P(), W("div", {
708
+ key: 0,
709
+ id: `thumb_${x.value}`,
710
+ thumbsSlider: "",
711
+ class: L(["swiper", l.$attrs["thumb-swiper-classes"]])
712
+ }, [
713
+ A("div", {
714
+ class: L(["swiper-wrapper", l.$attrs["thumb-swiper-wrapper-classes"]])
715
+ }, [
716
+ (P(!0), W(de, null, Ye(l.images, (u, v) => (P(), W("div", {
717
+ key: `thumb_${x.value}_${v}`,
718
+ class: L(["swiper-slide", l.$attrs["thumb-img-wrapper-classes"]])
719
+ }, [
720
+ A("img", Ce({
721
+ class: l.$attrs["thumb-img-classes"],
722
+ ref_for: !0
723
+ }, j(u), {
724
+ loading: v >= J.value ? "lazy" : void 0,
725
+ alt: u.alt
726
+ }), null, 16, Je)
727
+ ], 2))), 128))
728
+ ], 2)
729
+ ], 10, Ze)) : ne("", !0)
730
+ ], 10, Ne));
731
+ }
732
+ }), dt = /* @__PURE__ */ Ae(Qe, [["__scopeId", "data-v-0547e28a"]]);
733
+ export {
734
+ dt as S,
735
+ Ve as Z,
736
+ N as a,
737
+ Pe as b,
738
+ We as c,
739
+ at as d,
740
+ fe as e,
741
+ ut as f,
742
+ Fe as g,
743
+ ot as h,
744
+ lt as i,
745
+ rt as j,
746
+ st as k,
747
+ ct as m,
748
+ nt as n
749
+ };