@wikicasa-dev/components 1.9.1 → 1.9.3

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 (58) hide show
  1. package/dist/AccessibleSelect.js +1 -1
  2. package/dist/BaseShimmerLoader.js +20 -11
  3. package/dist/BaseTabView.js +1 -1
  4. package/dist/BaseToggle.js +17 -17
  5. package/dist/SwiperCarousel.js +1 -1
  6. package/dist/UIKit/AccessibleSelect.vue.d.ts +5 -5
  7. package/dist/UIKit/Accordion/BaseAccordion.vue.d.ts +4 -4
  8. package/dist/UIKit/Accordion/BaseAccordionBtn.vue.d.ts +5 -5
  9. package/dist/UIKit/Accordion/BaseAccordionContent.vue.d.ts +3 -3
  10. package/dist/UIKit/Accordion/BaseAccordionItem.vue.d.ts +5 -5
  11. package/dist/UIKit/BaseAlert.vue.d.ts +4 -4
  12. package/dist/UIKit/BaseAutocomplete.vue.d.ts +7 -7
  13. package/dist/UIKit/BaseBadge.vue.d.ts +4 -4
  14. package/dist/UIKit/BaseButton.vue.d.ts +5 -5
  15. package/dist/UIKit/BaseCard.vue.d.ts +5 -5
  16. package/dist/UIKit/BaseComplexToggle.vue.d.ts +4 -4
  17. package/dist/UIKit/BaseDropDown.vue.d.ts +5 -5
  18. package/dist/UIKit/BaseFloatingLabel.vue.d.ts +5 -5
  19. package/dist/UIKit/BaseIcon.vue.d.ts +4 -4
  20. package/dist/UIKit/BaseInput.vue.d.ts +7 -7
  21. package/dist/UIKit/BaseModal.vue.d.ts +5 -5
  22. package/dist/UIKit/BaseNavItem.vue.d.ts +55 -5
  23. package/dist/UIKit/BasePagination.vue.d.ts +4 -4
  24. package/dist/UIKit/BasePaper.vue.d.ts +1 -1
  25. package/dist/UIKit/BaseSelect/SelectItem.vue.d.ts +5 -5
  26. package/dist/UIKit/BaseSlider.vue.d.ts +182 -5
  27. package/dist/UIKit/BaseSnackbar.vue.d.ts +5 -5
  28. package/dist/UIKit/BaseTextarea.vue.d.ts +7 -7
  29. package/dist/UIKit/BaseToggle.vue.d.ts +4 -4
  30. package/dist/UIKit/BaseTooltip.vue.d.ts +4 -4
  31. package/dist/UIKit/BaseUploadFile.vue.d.ts +5 -5
  32. package/dist/UIKit/Checkbox/CheckboxBtn.vue.d.ts +6 -6
  33. package/dist/UIKit/Checkbox/CheckboxGroup.vue.d.ts +5 -5
  34. package/dist/UIKit/Radio/RadioButton.vue.d.ts +5 -5
  35. package/dist/UIKit/Radio/RadioGroup.vue.d.ts +5 -5
  36. package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.vue.d.ts +16 -1
  37. package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.vue.d.ts +4 -4
  38. package/dist/UIKit/StaticSpinner.vue.d.ts +4 -4
  39. package/dist/UIKit/Tab/BaseTab.vue.d.ts +3 -3
  40. package/dist/UIKit/Tab/BaseTabList.vue.d.ts +5 -5
  41. package/dist/UIKit/Tab/BaseTabPanel.vue.d.ts +4 -4
  42. package/dist/UIKit/Tab/BaseTabView.vue.d.ts +4 -8
  43. package/dist/assets/BaseShimmerLoader.css +1 -1
  44. package/dist/assets/SwiperCarousel.css +1 -1
  45. package/dist/chart/DoughnutChart.vue.d.ts +3 -3
  46. package/dist/chart/LineChart.vue.d.ts +3 -3
  47. package/dist/chart/composables/useChartjsModules.d.ts +1 -1
  48. package/dist/chunks/{AccessibleSelect.vue_vue_type_script_setup_true_lang.CM86-jVN.js → AccessibleSelect.vue_vue_type_script_setup_true_lang.B6xZ5URR.js} +46 -41
  49. package/dist/chunks/{BaseTabView.vue_vue_type_script_setup_true_lang.Cs-5T5J3.js → BaseTabView.vue_vue_type_script_setup_true_lang.DSlvTOkB.js} +21 -21
  50. package/dist/chunks/{SwiperCarousel.vue_vue_type_style_index_0_lang.BiS3BhWj.js → SwiperCarousel.vue_vue_type_style_index_0_lang.PH6iC0qV.js} +8 -8
  51. package/dist/chunks/index.BbdLcPJo.js +885 -0
  52. package/dist/components/IntersectionObserver/IntersectionObservable.vue.d.ts +4 -4
  53. package/dist/components/IntersectionObserver/IntersectionObserver.vue.d.ts +5 -5
  54. package/dist/components/carousel/SwiperCarousel.vue.d.ts +7 -7
  55. package/dist/components/carousel/SwiperSlide.vue.d.ts +1 -1
  56. package/dist/index.js +3 -3
  57. package/package.json +19 -19
  58. package/dist/chunks/index.C70510OV.js +0 -878
@@ -1,878 +0,0 @@
1
- import { g as H, a as W, e as R, b as X, c as G, d as Y, m as P, f as Z, h as j, n as J, i as F, j as Q, k as q } from "./SwiperCarousel.vue_vue_type_style_index_0_lang.BiS3BhWj.js";
2
- import { Z as ce } from "./SwiperCarousel.vue_vue_type_style_index_0_lang.BiS3BhWj.js";
3
- function te(k) {
4
- let {
5
- swiper: e,
6
- extendParams: A,
7
- on: u,
8
- emit: h
9
- } = k;
10
- const m = H(), x = W();
11
- e.keyboard = {
12
- enabled: !1
13
- }, A({
14
- keyboard: {
15
- enabled: !1,
16
- onlyInViewport: !0,
17
- pageUpDown: !0
18
- }
19
- });
20
- function w(i) {
21
- if (!e.enabled) return;
22
- const {
23
- rtlTranslate: c
24
- } = e;
25
- let o = i;
26
- o.originalEvent && (o = o.originalEvent);
27
- const p = o.keyCode || o.charCode, l = e.params.keyboard.pageUpDown, n = l && p === 33, r = l && p === 34, t = p === 37, a = p === 39, s = p === 38, f = p === 40;
28
- if (!e.allowSlideNext && (e.isHorizontal() && a || e.isVertical() && f || r) || !e.allowSlidePrev && (e.isHorizontal() && t || e.isVertical() && s || n))
29
- return !1;
30
- if (!(o.shiftKey || o.altKey || o.ctrlKey || o.metaKey) && !(m.activeElement && m.activeElement.nodeName && (m.activeElement.nodeName.toLowerCase() === "input" || m.activeElement.nodeName.toLowerCase() === "textarea"))) {
31
- if (e.params.keyboard.onlyInViewport && (n || r || t || a || s || f)) {
32
- let y = !1;
33
- if (R(e.el, `.${e.params.slideClass}, swiper-slide`).length > 0 && R(e.el, `.${e.params.slideActiveClass}`).length === 0)
34
- return;
35
- const M = e.el, D = M.clientWidth, g = M.clientHeight, b = x.innerWidth, C = x.innerHeight, I = X(M);
36
- c && (I.left -= M.scrollLeft);
37
- const E = [[I.left, I.top], [I.left + D, I.top], [I.left, I.top + g], [I.left + D, I.top + g]];
38
- for (let S = 0; S < E.length; S += 1) {
39
- const L = E[S];
40
- if (L[0] >= 0 && L[0] <= b && L[1] >= 0 && L[1] <= C) {
41
- if (L[0] === 0 && L[1] === 0) continue;
42
- y = !0;
43
- }
44
- }
45
- if (!y) return;
46
- }
47
- e.isHorizontal() ? ((n || r || t || a) && (o.preventDefault ? o.preventDefault() : o.returnValue = !1), ((r || a) && !c || (n || t) && c) && e.slideNext(), ((n || t) && !c || (r || a) && c) && e.slidePrev()) : ((n || r || s || f) && (o.preventDefault ? o.preventDefault() : o.returnValue = !1), (r || f) && e.slideNext(), (n || s) && e.slidePrev()), h("keyPress", p);
48
- }
49
- }
50
- function v() {
51
- e.keyboard.enabled || (m.addEventListener("keydown", w), e.keyboard.enabled = !0);
52
- }
53
- function d() {
54
- e.keyboard.enabled && (m.removeEventListener("keydown", w), e.keyboard.enabled = !1);
55
- }
56
- u("init", () => {
57
- e.params.keyboard.enabled && v();
58
- }), u("destroy", () => {
59
- e.keyboard.enabled && d();
60
- }), Object.assign(e.keyboard, {
61
- enable: v,
62
- disable: d
63
- });
64
- }
65
- function _(k, e, A, u) {
66
- return k.params.createElements && Object.keys(u).forEach((h) => {
67
- if (!A[h] && A.auto === !0) {
68
- let m = G(k.el, `.${u[h]}`)[0];
69
- m || (m = Y("div", u[h]), m.className = u[h], k.el.append(m)), A[h] = m, e[h] = m;
70
- }
71
- }), A;
72
- }
73
- function ae(k) {
74
- let {
75
- swiper: e,
76
- extendParams: A,
77
- on: u,
78
- emit: h
79
- } = k;
80
- A({
81
- navigation: {
82
- nextEl: null,
83
- prevEl: null,
84
- hideOnClick: !1,
85
- disabledClass: "swiper-button-disabled",
86
- hiddenClass: "swiper-button-hidden",
87
- lockClass: "swiper-button-lock",
88
- navigationDisabledClass: "swiper-navigation-disabled"
89
- }
90
- }), e.navigation = {
91
- nextEl: null,
92
- prevEl: null
93
- };
94
- function m(l) {
95
- let n;
96
- return l && typeof l == "string" && e.isElement && (n = e.el.querySelector(l), n) ? n : (l && (typeof l == "string" && (n = [...document.querySelectorAll(l)]), e.params.uniqueNavElements && typeof l == "string" && n && n.length > 1 && e.el.querySelectorAll(l).length === 1 ? n = e.el.querySelector(l) : n && n.length === 1 && (n = n[0])), l && !n ? l : n);
97
- }
98
- function x(l, n) {
99
- const r = e.params.navigation;
100
- l = P(l), l.forEach((t) => {
101
- t && (t.classList[n ? "add" : "remove"](...r.disabledClass.split(" ")), t.tagName === "BUTTON" && (t.disabled = n), e.params.watchOverflow && e.enabled && t.classList[e.isLocked ? "add" : "remove"](r.lockClass));
102
- });
103
- }
104
- function w() {
105
- const {
106
- nextEl: l,
107
- prevEl: n
108
- } = e.navigation;
109
- if (e.params.loop) {
110
- x(n, !1), x(l, !1);
111
- return;
112
- }
113
- x(n, e.isBeginning && !e.params.rewind), x(l, e.isEnd && !e.params.rewind);
114
- }
115
- function v(l) {
116
- l.preventDefault(), !(e.isBeginning && !e.params.loop && !e.params.rewind) && (e.slidePrev(), h("navigationPrev"));
117
- }
118
- function d(l) {
119
- l.preventDefault(), !(e.isEnd && !e.params.loop && !e.params.rewind) && (e.slideNext(), h("navigationNext"));
120
- }
121
- function i() {
122
- const l = e.params.navigation;
123
- if (e.params.navigation = _(e, e.originalParams.navigation, e.params.navigation, {
124
- nextEl: "swiper-button-next",
125
- prevEl: "swiper-button-prev"
126
- }), !(l.nextEl || l.prevEl)) return;
127
- let n = m(l.nextEl), r = m(l.prevEl);
128
- Object.assign(e.navigation, {
129
- nextEl: n,
130
- prevEl: r
131
- }), n = P(n), r = P(r);
132
- const t = (a, s) => {
133
- a && a.addEventListener("click", s === "next" ? d : v), !e.enabled && a && a.classList.add(...l.lockClass.split(" "));
134
- };
135
- n.forEach((a) => t(a, "next")), r.forEach((a) => t(a, "prev"));
136
- }
137
- function c() {
138
- let {
139
- nextEl: l,
140
- prevEl: n
141
- } = e.navigation;
142
- l = P(l), n = P(n);
143
- const r = (t, a) => {
144
- t.removeEventListener("click", a === "next" ? d : v), t.classList.remove(...e.params.navigation.disabledClass.split(" "));
145
- };
146
- l.forEach((t) => r(t, "next")), n.forEach((t) => r(t, "prev"));
147
- }
148
- u("init", () => {
149
- e.params.navigation.enabled === !1 ? p() : (i(), w());
150
- }), u("toEdge fromEdge lock unlock", () => {
151
- w();
152
- }), u("destroy", () => {
153
- c();
154
- }), u("enable disable", () => {
155
- let {
156
- nextEl: l,
157
- prevEl: n
158
- } = e.navigation;
159
- if (l = P(l), n = P(n), e.enabled) {
160
- w();
161
- return;
162
- }
163
- [...l, ...n].filter((r) => !!r).forEach((r) => r.classList.add(e.params.navigation.lockClass));
164
- }), u("click", (l, n) => {
165
- let {
166
- nextEl: r,
167
- prevEl: t
168
- } = e.navigation;
169
- r = P(r), t = P(t);
170
- const a = n.target;
171
- let s = t.includes(a) || r.includes(a);
172
- if (e.isElement && !s) {
173
- const f = n.path || n.composedPath && n.composedPath();
174
- f && (s = f.find((y) => r.includes(y) || t.includes(y)));
175
- }
176
- if (e.params.navigation.hideOnClick && !s) {
177
- if (e.pagination && e.params.pagination && e.params.pagination.clickable && (e.pagination.el === a || e.pagination.el.contains(a))) return;
178
- let f;
179
- r.length ? f = r[0].classList.contains(e.params.navigation.hiddenClass) : t.length && (f = t[0].classList.contains(e.params.navigation.hiddenClass)), h(f === !0 ? "navigationShow" : "navigationHide"), [...r, ...t].filter((y) => !!y).forEach((y) => y.classList.toggle(e.params.navigation.hiddenClass));
180
- }
181
- });
182
- const o = () => {
183
- e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")), i(), w();
184
- }, p = () => {
185
- e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")), c();
186
- };
187
- Object.assign(e.navigation, {
188
- enable: o,
189
- disable: p,
190
- update: w,
191
- init: i,
192
- destroy: c
193
- });
194
- }
195
- function N(k) {
196
- return k === void 0 && (k = ""), `.${k.trim().replace(/([\.:!+\/])/g, "\\$1").replace(/ /g, ".")}`;
197
- }
198
- function ie(k) {
199
- let {
200
- swiper: e,
201
- extendParams: A,
202
- on: u,
203
- emit: h
204
- } = k;
205
- const m = "swiper-pagination";
206
- A({
207
- pagination: {
208
- el: null,
209
- bulletElement: "span",
210
- clickable: !1,
211
- hideOnClick: !1,
212
- renderBullet: null,
213
- renderProgressbar: null,
214
- renderFraction: null,
215
- renderCustom: null,
216
- progressbarOpposite: !1,
217
- type: "bullets",
218
- // 'bullets' or 'progressbar' or 'fraction' or 'custom'
219
- dynamicBullets: !1,
220
- dynamicMainBullets: 1,
221
- formatFractionCurrent: (t) => t,
222
- formatFractionTotal: (t) => t,
223
- bulletClass: `${m}-bullet`,
224
- bulletActiveClass: `${m}-bullet-active`,
225
- modifierClass: `${m}-`,
226
- currentClass: `${m}-current`,
227
- totalClass: `${m}-total`,
228
- hiddenClass: `${m}-hidden`,
229
- progressbarFillClass: `${m}-progressbar-fill`,
230
- progressbarOppositeClass: `${m}-progressbar-opposite`,
231
- clickableClass: `${m}-clickable`,
232
- lockClass: `${m}-lock`,
233
- horizontalClass: `${m}-horizontal`,
234
- verticalClass: `${m}-vertical`,
235
- paginationDisabledClass: `${m}-disabled`
236
- }
237
- }), e.pagination = {
238
- el: null,
239
- bullets: []
240
- };
241
- let x, w = 0;
242
- function v() {
243
- return !e.params.pagination.el || !e.pagination.el || Array.isArray(e.pagination.el) && e.pagination.el.length === 0;
244
- }
245
- function d(t, a) {
246
- const {
247
- bulletActiveClass: s
248
- } = e.params.pagination;
249
- t && (t = t[`${a === "prev" ? "previous" : "next"}ElementSibling`], t && (t.classList.add(`${s}-${a}`), t = t[`${a === "prev" ? "previous" : "next"}ElementSibling`], t && t.classList.add(`${s}-${a}-${a}`)));
250
- }
251
- function i(t) {
252
- const a = t.target.closest(N(e.params.pagination.bulletClass));
253
- if (!a)
254
- return;
255
- t.preventDefault();
256
- const s = j(a) * e.params.slidesPerGroup;
257
- if (e.params.loop) {
258
- if (e.realIndex === s) return;
259
- e.slideToLoop(s);
260
- } else
261
- e.slideTo(s);
262
- }
263
- function c() {
264
- const t = e.rtl, a = e.params.pagination;
265
- if (v()) return;
266
- let s = e.pagination.el;
267
- s = P(s);
268
- let f, y;
269
- const M = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : e.slides.length, D = e.params.loop ? Math.ceil(M / e.params.slidesPerGroup) : e.snapGrid.length;
270
- if (e.params.loop ? (y = e.previousRealIndex || 0, f = e.params.slidesPerGroup > 1 ? Math.floor(e.realIndex / e.params.slidesPerGroup) : e.realIndex) : typeof e.snapIndex < "u" ? (f = e.snapIndex, y = e.previousSnapIndex) : (y = e.previousIndex || 0, f = e.activeIndex || 0), a.type === "bullets" && e.pagination.bullets && e.pagination.bullets.length > 0) {
271
- const g = e.pagination.bullets;
272
- let b, C, I;
273
- if (a.dynamicBullets && (x = Z(g[0], e.isHorizontal() ? "width" : "height"), s.forEach((E) => {
274
- E.style[e.isHorizontal() ? "width" : "height"] = `${x * (a.dynamicMainBullets + 4)}px`;
275
- }), a.dynamicMainBullets > 1 && y !== void 0 && (w += f - (y || 0), w > a.dynamicMainBullets - 1 ? w = a.dynamicMainBullets - 1 : w < 0 && (w = 0)), b = Math.max(f - w, 0), C = b + (Math.min(g.length, a.dynamicMainBullets) - 1), I = (C + b) / 2), g.forEach((E) => {
276
- const S = [...["", "-next", "-next-next", "-prev", "-prev-prev", "-main"].map((L) => `${a.bulletActiveClass}${L}`)].map((L) => typeof L == "string" && L.includes(" ") ? L.split(" ") : L).flat();
277
- E.classList.remove(...S);
278
- }), s.length > 1)
279
- g.forEach((E) => {
280
- const S = j(E);
281
- S === f ? E.classList.add(...a.bulletActiveClass.split(" ")) : e.isElement && E.setAttribute("part", "bullet"), a.dynamicBullets && (S >= b && S <= C && E.classList.add(...`${a.bulletActiveClass}-main`.split(" ")), S === b && d(E, "prev"), S === C && d(E, "next"));
282
- });
283
- else {
284
- const E = g[f];
285
- if (E && E.classList.add(...a.bulletActiveClass.split(" ")), e.isElement && g.forEach((S, L) => {
286
- S.setAttribute("part", L === f ? "bullet-active" : "bullet");
287
- }), a.dynamicBullets) {
288
- const S = g[b], L = g[C];
289
- for (let $ = b; $ <= C; $ += 1)
290
- g[$] && g[$].classList.add(...`${a.bulletActiveClass}-main`.split(" "));
291
- d(S, "prev"), d(L, "next");
292
- }
293
- }
294
- if (a.dynamicBullets) {
295
- const E = Math.min(g.length, a.dynamicMainBullets + 4), S = (x * E - x) / 2 - I * x, L = t ? "right" : "left";
296
- g.forEach(($) => {
297
- $.style[e.isHorizontal() ? L : "top"] = `${S}px`;
298
- });
299
- }
300
- }
301
- s.forEach((g, b) => {
302
- if (a.type === "fraction" && (g.querySelectorAll(N(a.currentClass)).forEach((C) => {
303
- C.textContent = a.formatFractionCurrent(f + 1);
304
- }), g.querySelectorAll(N(a.totalClass)).forEach((C) => {
305
- C.textContent = a.formatFractionTotal(D);
306
- })), a.type === "progressbar") {
307
- let C;
308
- a.progressbarOpposite ? C = e.isHorizontal() ? "vertical" : "horizontal" : C = e.isHorizontal() ? "horizontal" : "vertical";
309
- const I = (f + 1) / D;
310
- let E = 1, S = 1;
311
- C === "horizontal" ? E = I : S = I, g.querySelectorAll(N(a.progressbarFillClass)).forEach((L) => {
312
- L.style.transform = `translate3d(0,0,0) scaleX(${E}) scaleY(${S})`, L.style.transitionDuration = `${e.params.speed}ms`;
313
- });
314
- }
315
- a.type === "custom" && a.renderCustom ? (g.innerHTML = a.renderCustom(e, f + 1, D), b === 0 && h("paginationRender", g)) : (b === 0 && h("paginationRender", g), h("paginationUpdate", g)), e.params.watchOverflow && e.enabled && g.classList[e.isLocked ? "add" : "remove"](a.lockClass);
316
- });
317
- }
318
- function o() {
319
- const t = e.params.pagination;
320
- if (v()) return;
321
- const a = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : e.grid && e.params.grid.rows > 1 ? e.slides.length / Math.ceil(e.params.grid.rows) : e.slides.length;
322
- let s = e.pagination.el;
323
- s = P(s);
324
- let f = "";
325
- if (t.type === "bullets") {
326
- let y = e.params.loop ? Math.ceil(a / e.params.slidesPerGroup) : e.snapGrid.length;
327
- e.params.freeMode && e.params.freeMode.enabled && y > a && (y = a);
328
- for (let M = 0; M < y; M += 1)
329
- t.renderBullet ? f += t.renderBullet.call(e, M, t.bulletClass) : f += `<${t.bulletElement} ${e.isElement ? 'part="bullet"' : ""} class="${t.bulletClass}"></${t.bulletElement}>`;
330
- }
331
- t.type === "fraction" && (t.renderFraction ? f = t.renderFraction.call(e, t.currentClass, t.totalClass) : f = `<span class="${t.currentClass}"></span> / <span class="${t.totalClass}"></span>`), t.type === "progressbar" && (t.renderProgressbar ? f = t.renderProgressbar.call(e, t.progressbarFillClass) : f = `<span class="${t.progressbarFillClass}"></span>`), e.pagination.bullets = [], s.forEach((y) => {
332
- t.type !== "custom" && (y.innerHTML = f || ""), t.type === "bullets" && e.pagination.bullets.push(...y.querySelectorAll(N(t.bulletClass)));
333
- }), t.type !== "custom" && h("paginationRender", s[0]);
334
- }
335
- function p() {
336
- e.params.pagination = _(e, e.originalParams.pagination, e.params.pagination, {
337
- el: "swiper-pagination"
338
- });
339
- const t = e.params.pagination;
340
- if (!t.el) return;
341
- let a;
342
- typeof t.el == "string" && e.isElement && (a = e.el.querySelector(t.el)), !a && typeof t.el == "string" && (a = [...document.querySelectorAll(t.el)]), a || (a = t.el), !(!a || a.length === 0) && (e.params.uniqueNavElements && typeof t.el == "string" && Array.isArray(a) && a.length > 1 && (a = [...e.el.querySelectorAll(t.el)], a.length > 1 && (a = a.filter((s) => R(s, ".swiper")[0] === e.el)[0])), Array.isArray(a) && a.length === 1 && (a = a[0]), Object.assign(e.pagination, {
343
- el: a
344
- }), a = P(a), a.forEach((s) => {
345
- t.type === "bullets" && t.clickable && s.classList.add(...(t.clickableClass || "").split(" ")), s.classList.add(t.modifierClass + t.type), s.classList.add(e.isHorizontal() ? t.horizontalClass : t.verticalClass), t.type === "bullets" && t.dynamicBullets && (s.classList.add(`${t.modifierClass}${t.type}-dynamic`), w = 0, t.dynamicMainBullets < 1 && (t.dynamicMainBullets = 1)), t.type === "progressbar" && t.progressbarOpposite && s.classList.add(t.progressbarOppositeClass), t.clickable && s.addEventListener("click", i), e.enabled || s.classList.add(t.lockClass);
346
- }));
347
- }
348
- function l() {
349
- const t = e.params.pagination;
350
- if (v()) return;
351
- let a = e.pagination.el;
352
- a && (a = P(a), a.forEach((s) => {
353
- s.classList.remove(t.hiddenClass), s.classList.remove(t.modifierClass + t.type), s.classList.remove(e.isHorizontal() ? t.horizontalClass : t.verticalClass), t.clickable && (s.classList.remove(...(t.clickableClass || "").split(" ")), s.removeEventListener("click", i));
354
- })), e.pagination.bullets && e.pagination.bullets.forEach((s) => s.classList.remove(...t.bulletActiveClass.split(" ")));
355
- }
356
- u("changeDirection", () => {
357
- if (!e.pagination || !e.pagination.el) return;
358
- const t = e.params.pagination;
359
- let {
360
- el: a
361
- } = e.pagination;
362
- a = P(a), a.forEach((s) => {
363
- s.classList.remove(t.horizontalClass, t.verticalClass), s.classList.add(e.isHorizontal() ? t.horizontalClass : t.verticalClass);
364
- });
365
- }), u("init", () => {
366
- e.params.pagination.enabled === !1 ? r() : (p(), o(), c());
367
- }), u("activeIndexChange", () => {
368
- typeof e.snapIndex > "u" && c();
369
- }), u("snapIndexChange", () => {
370
- c();
371
- }), u("snapGridLengthChange", () => {
372
- o(), c();
373
- }), u("destroy", () => {
374
- l();
375
- }), u("enable disable", () => {
376
- let {
377
- el: t
378
- } = e.pagination;
379
- t && (t = P(t), t.forEach((a) => a.classList[e.enabled ? "remove" : "add"](e.params.pagination.lockClass)));
380
- }), u("lock unlock", () => {
381
- c();
382
- }), u("click", (t, a) => {
383
- const s = a.target, f = P(e.pagination.el);
384
- if (e.params.pagination.el && e.params.pagination.hideOnClick && f && f.length > 0 && !s.classList.contains(e.params.pagination.bulletClass)) {
385
- if (e.navigation && (e.navigation.nextEl && s === e.navigation.nextEl || e.navigation.prevEl && s === e.navigation.prevEl)) return;
386
- const y = f[0].classList.contains(e.params.pagination.hiddenClass);
387
- h(y === !0 ? "paginationShow" : "paginationHide"), f.forEach((M) => M.classList.toggle(e.params.pagination.hiddenClass));
388
- }
389
- });
390
- const n = () => {
391
- e.el.classList.remove(e.params.pagination.paginationDisabledClass);
392
- let {
393
- el: t
394
- } = e.pagination;
395
- t && (t = P(t), t.forEach((a) => a.classList.remove(e.params.pagination.paginationDisabledClass))), p(), o(), c();
396
- }, r = () => {
397
- e.el.classList.add(e.params.pagination.paginationDisabledClass);
398
- let {
399
- el: t
400
- } = e.pagination;
401
- t && (t = P(t), t.forEach((a) => a.classList.add(e.params.pagination.paginationDisabledClass))), l();
402
- };
403
- Object.assign(e.pagination, {
404
- enable: n,
405
- disable: r,
406
- render: o,
407
- update: c,
408
- init: p,
409
- destroy: l
410
- });
411
- }
412
- function se(k) {
413
- let {
414
- swiper: e,
415
- extendParams: A,
416
- on: u
417
- } = k;
418
- A({
419
- controller: {
420
- control: void 0,
421
- inverse: !1,
422
- by: "slide"
423
- // or 'container'
424
- }
425
- }), e.controller = {
426
- control: void 0
427
- };
428
- function h(d, i) {
429
- const c = /* @__PURE__ */ function() {
430
- let n, r, t;
431
- return (a, s) => {
432
- for (r = -1, n = a.length; n - r > 1; )
433
- t = n + r >> 1, a[t] <= s ? r = t : n = t;
434
- return n;
435
- };
436
- }();
437
- this.x = d, this.y = i, this.lastIndex = d.length - 1;
438
- let o, p;
439
- return this.interpolate = function(n) {
440
- return n ? (p = c(this.x, n), o = p - 1, (n - this.x[o]) * (this.y[p] - this.y[o]) / (this.x[p] - this.x[o]) + this.y[o]) : 0;
441
- }, this;
442
- }
443
- function m(d) {
444
- e.controller.spline = e.params.loop ? new h(e.slidesGrid, d.slidesGrid) : new h(e.snapGrid, d.snapGrid);
445
- }
446
- function x(d, i) {
447
- const c = e.controller.control;
448
- let o, p;
449
- const l = e.constructor;
450
- function n(r) {
451
- if (r.destroyed) return;
452
- const t = e.rtlTranslate ? -e.translate : e.translate;
453
- e.params.controller.by === "slide" && (m(r), p = -e.controller.spline.interpolate(-t)), (!p || e.params.controller.by === "container") && (o = (r.maxTranslate() - r.minTranslate()) / (e.maxTranslate() - e.minTranslate()), (Number.isNaN(o) || !Number.isFinite(o)) && (o = 1), p = (t - e.minTranslate()) * o + r.minTranslate()), e.params.controller.inverse && (p = r.maxTranslate() - p), r.updateProgress(p), r.setTranslate(p, e), r.updateActiveIndex(), r.updateSlidesClasses();
454
- }
455
- if (Array.isArray(c))
456
- for (let r = 0; r < c.length; r += 1)
457
- c[r] !== i && c[r] instanceof l && n(c[r]);
458
- else c instanceof l && i !== c && n(c);
459
- }
460
- function w(d, i) {
461
- const c = e.constructor, o = e.controller.control;
462
- let p;
463
- function l(n) {
464
- n.destroyed || (n.setTransition(d, e), d !== 0 && (n.transitionStart(), n.params.autoHeight && J(() => {
465
- n.updateAutoHeight();
466
- }), F(n.wrapperEl, () => {
467
- o && n.transitionEnd();
468
- })));
469
- }
470
- if (Array.isArray(o))
471
- for (p = 0; p < o.length; p += 1)
472
- o[p] !== i && o[p] instanceof c && l(o[p]);
473
- else o instanceof c && i !== o && l(o);
474
- }
475
- function v() {
476
- e.controller.control && e.controller.spline && (e.controller.spline = void 0, delete e.controller.spline);
477
- }
478
- u("beforeInit", () => {
479
- if (typeof window < "u" && // eslint-disable-line
480
- (typeof e.params.controller.control == "string" || e.params.controller.control instanceof HTMLElement)) {
481
- (typeof e.params.controller.control == "string" ? [...document.querySelectorAll(e.params.controller.control)] : [e.params.controller.control]).forEach((i) => {
482
- if (e.controller.control || (e.controller.control = []), i && i.swiper)
483
- e.controller.control.push(i.swiper);
484
- else if (i) {
485
- const c = `${e.params.eventsPrefix}init`, o = (p) => {
486
- e.controller.control.push(p.detail[0]), e.update(), i.removeEventListener(c, o);
487
- };
488
- i.addEventListener(c, o);
489
- }
490
- });
491
- return;
492
- }
493
- e.controller.control = e.params.controller.control;
494
- }), u("update", () => {
495
- v();
496
- }), u("resize", () => {
497
- v();
498
- }), u("observerUpdate", () => {
499
- v();
500
- }), u("setTranslate", (d, i, c) => {
501
- !e.controller.control || e.controller.control.destroyed || e.controller.setTranslate(i, c);
502
- }), u("setTransition", (d, i, c) => {
503
- !e.controller.control || e.controller.control.destroyed || e.controller.setTransition(i, c);
504
- }), Object.assign(e.controller, {
505
- setTranslate: x,
506
- setTransition: w
507
- });
508
- }
509
- function ne(k) {
510
- let {
511
- swiper: e,
512
- extendParams: A,
513
- on: u,
514
- emit: h,
515
- params: m
516
- } = k;
517
- e.autoplay = {
518
- running: !1,
519
- paused: !1,
520
- timeLeft: 0
521
- }, A({
522
- autoplay: {
523
- enabled: !1,
524
- delay: 3e3,
525
- waitForTransition: !0,
526
- disableOnInteraction: !1,
527
- stopOnLastSlide: !1,
528
- reverseDirection: !1,
529
- pauseOnMouseEnter: !1
530
- }
531
- });
532
- let x, w, v = m && m.autoplay ? m.autoplay.delay : 3e3, d = m && m.autoplay ? m.autoplay.delay : 3e3, i, c = (/* @__PURE__ */ new Date()).getTime(), o, p, l, n, r, t, a;
533
- function s(T) {
534
- !e || e.destroyed || !e.wrapperEl || T.target === e.wrapperEl && (e.wrapperEl.removeEventListener("transitionend", s), !(a || T.detail && T.detail.bySwiperTouchMove) && C());
535
- }
536
- const f = () => {
537
- if (e.destroyed || !e.autoplay.running) return;
538
- e.autoplay.paused ? o = !0 : o && (d = i, o = !1);
539
- const T = e.autoplay.paused ? i : c + d - (/* @__PURE__ */ new Date()).getTime();
540
- e.autoplay.timeLeft = T, h("autoplayTimeLeft", T, T / v), w = requestAnimationFrame(() => {
541
- f();
542
- });
543
- }, y = () => {
544
- let T;
545
- return e.virtual && e.params.virtual.enabled ? T = e.slides.filter((O) => O.classList.contains("swiper-slide-active"))[0] : T = e.slides[e.activeIndex], T ? parseInt(T.getAttribute("data-swiper-autoplay"), 10) : void 0;
546
- }, M = (T) => {
547
- if (e.destroyed || !e.autoplay.running) return;
548
- cancelAnimationFrame(w), f();
549
- let B = typeof T > "u" ? e.params.autoplay.delay : T;
550
- v = e.params.autoplay.delay, d = e.params.autoplay.delay;
551
- const O = y();
552
- !Number.isNaN(O) && O > 0 && typeof T > "u" && (B = O, v = O, d = O), i = B;
553
- const z = e.params.speed, V = () => {
554
- !e || e.destroyed || (e.params.autoplay.reverseDirection ? !e.isBeginning || e.params.loop || e.params.rewind ? (e.slidePrev(z, !0, !0), h("autoplay")) : e.params.autoplay.stopOnLastSlide || (e.slideTo(e.slides.length - 1, z, !0, !0), h("autoplay")) : !e.isEnd || e.params.loop || e.params.rewind ? (e.slideNext(z, !0, !0), h("autoplay")) : e.params.autoplay.stopOnLastSlide || (e.slideTo(0, z, !0, !0), h("autoplay")), e.params.cssMode && (c = (/* @__PURE__ */ new Date()).getTime(), requestAnimationFrame(() => {
555
- M();
556
- })));
557
- };
558
- return B > 0 ? (clearTimeout(x), x = setTimeout(() => {
559
- V();
560
- }, B)) : requestAnimationFrame(() => {
561
- V();
562
- }), B;
563
- }, D = () => {
564
- c = (/* @__PURE__ */ new Date()).getTime(), e.autoplay.running = !0, M(), h("autoplayStart");
565
- }, g = () => {
566
- e.autoplay.running = !1, clearTimeout(x), cancelAnimationFrame(w), h("autoplayStop");
567
- }, b = (T, B) => {
568
- if (e.destroyed || !e.autoplay.running) return;
569
- clearTimeout(x), T || (t = !0);
570
- const O = () => {
571
- h("autoplayPause"), e.params.autoplay.waitForTransition ? e.wrapperEl.addEventListener("transitionend", s) : C();
572
- };
573
- if (e.autoplay.paused = !0, B) {
574
- r && (i = e.params.autoplay.delay), r = !1, O();
575
- return;
576
- }
577
- i = (i || e.params.autoplay.delay) - ((/* @__PURE__ */ new Date()).getTime() - c), !(e.isEnd && i < 0 && !e.params.loop) && (i < 0 && (i = 0), O());
578
- }, C = () => {
579
- e.isEnd && i < 0 && !e.params.loop || e.destroyed || !e.autoplay.running || (c = (/* @__PURE__ */ new Date()).getTime(), t ? (t = !1, M(i)) : M(), e.autoplay.paused = !1, h("autoplayResume"));
580
- }, I = () => {
581
- if (e.destroyed || !e.autoplay.running) return;
582
- const T = H();
583
- T.visibilityState === "hidden" && (t = !0, b(!0)), T.visibilityState === "visible" && C();
584
- }, E = (T) => {
585
- T.pointerType === "mouse" && (t = !0, a = !0, !(e.animating || e.autoplay.paused) && b(!0));
586
- }, S = (T) => {
587
- T.pointerType === "mouse" && (a = !1, e.autoplay.paused && C());
588
- }, L = () => {
589
- e.params.autoplay.pauseOnMouseEnter && (e.el.addEventListener("pointerenter", E), e.el.addEventListener("pointerleave", S));
590
- }, $ = () => {
591
- e.el && typeof e.el != "string" && (e.el.removeEventListener("pointerenter", E), e.el.removeEventListener("pointerleave", S));
592
- }, U = () => {
593
- H().addEventListener("visibilitychange", I);
594
- }, K = () => {
595
- H().removeEventListener("visibilitychange", I);
596
- };
597
- u("init", () => {
598
- e.params.autoplay.enabled && (L(), U(), D());
599
- }), u("destroy", () => {
600
- $(), K(), e.autoplay.running && g();
601
- }), u("_freeModeStaticRelease", () => {
602
- (l || t) && C();
603
- }), u("_freeModeNoMomentumRelease", () => {
604
- e.params.autoplay.disableOnInteraction ? g() : b(!0, !0);
605
- }), u("beforeTransitionStart", (T, B, O) => {
606
- e.destroyed || !e.autoplay.running || (O || !e.params.autoplay.disableOnInteraction ? b(!0, !0) : g());
607
- }), u("sliderFirstMove", () => {
608
- if (!(e.destroyed || !e.autoplay.running)) {
609
- if (e.params.autoplay.disableOnInteraction) {
610
- g();
611
- return;
612
- }
613
- p = !0, l = !1, t = !1, n = setTimeout(() => {
614
- t = !0, l = !0, b(!0);
615
- }, 200);
616
- }
617
- }), u("touchEnd", () => {
618
- if (!(e.destroyed || !e.autoplay.running || !p)) {
619
- if (clearTimeout(n), clearTimeout(x), e.params.autoplay.disableOnInteraction) {
620
- l = !1, p = !1;
621
- return;
622
- }
623
- l && e.params.cssMode && C(), l = !1, p = !1;
624
- }
625
- }), u("slideChange", () => {
626
- e.destroyed || !e.autoplay.running || (r = !0);
627
- }), Object.assign(e.autoplay, {
628
- start: D,
629
- stop: g,
630
- pause: b,
631
- resume: C
632
- });
633
- }
634
- function re(k) {
635
- let {
636
- swiper: e,
637
- extendParams: A,
638
- on: u
639
- } = k;
640
- A({
641
- thumbs: {
642
- swiper: null,
643
- multipleActiveThumbs: !0,
644
- autoScrollOffset: 0,
645
- slideThumbActiveClass: "swiper-slide-thumb-active",
646
- thumbsContainerClass: "swiper-thumbs"
647
- }
648
- });
649
- let h = !1, m = !1;
650
- e.thumbs = {
651
- swiper: null
652
- };
653
- function x() {
654
- const d = e.thumbs.swiper;
655
- if (!d || d.destroyed) return;
656
- const i = d.clickedIndex, c = d.clickedSlide;
657
- if (c && c.classList.contains(e.params.thumbs.slideThumbActiveClass) || typeof i > "u" || i === null) return;
658
- let o;
659
- d.params.loop ? o = parseInt(d.clickedSlide.getAttribute("data-swiper-slide-index"), 10) : o = i, e.params.loop ? e.slideToLoop(o) : e.slideTo(o);
660
- }
661
- function w() {
662
- const {
663
- thumbs: d
664
- } = e.params;
665
- if (h) return !1;
666
- h = !0;
667
- const i = e.constructor;
668
- if (d.swiper instanceof i)
669
- e.thumbs.swiper = d.swiper, Object.assign(e.thumbs.swiper.originalParams, {
670
- watchSlidesProgress: !0,
671
- slideToClickedSlide: !1
672
- }), Object.assign(e.thumbs.swiper.params, {
673
- watchSlidesProgress: !0,
674
- slideToClickedSlide: !1
675
- }), e.thumbs.swiper.update();
676
- else if (Q(d.swiper)) {
677
- const c = Object.assign({}, d.swiper);
678
- Object.assign(c, {
679
- watchSlidesProgress: !0,
680
- slideToClickedSlide: !1
681
- }), e.thumbs.swiper = new i(c), m = !0;
682
- }
683
- return e.thumbs.swiper.el.classList.add(e.params.thumbs.thumbsContainerClass), e.thumbs.swiper.on("tap", x), !0;
684
- }
685
- function v(d) {
686
- const i = e.thumbs.swiper;
687
- if (!i || i.destroyed) return;
688
- const c = i.params.slidesPerView === "auto" ? i.slidesPerViewDynamic() : i.params.slidesPerView;
689
- let o = 1;
690
- const p = e.params.thumbs.slideThumbActiveClass;
691
- if (e.params.slidesPerView > 1 && !e.params.centeredSlides && (o = e.params.slidesPerView), e.params.thumbs.multipleActiveThumbs || (o = 1), o = Math.floor(o), i.slides.forEach((r) => r.classList.remove(p)), i.params.loop || i.params.virtual && i.params.virtual.enabled)
692
- for (let r = 0; r < o; r += 1)
693
- G(i.slidesEl, `[data-swiper-slide-index="${e.realIndex + r}"]`).forEach((t) => {
694
- t.classList.add(p);
695
- });
696
- else
697
- for (let r = 0; r < o; r += 1)
698
- i.slides[e.realIndex + r] && i.slides[e.realIndex + r].classList.add(p);
699
- const l = e.params.thumbs.autoScrollOffset, n = l && !i.params.loop;
700
- if (e.realIndex !== i.realIndex || n) {
701
- const r = i.activeIndex;
702
- let t, a;
703
- if (i.params.loop) {
704
- const s = i.slides.filter((f) => f.getAttribute("data-swiper-slide-index") === `${e.realIndex}`)[0];
705
- t = i.slides.indexOf(s), a = e.activeIndex > e.previousIndex ? "next" : "prev";
706
- } else
707
- t = e.realIndex, a = t > e.previousIndex ? "next" : "prev";
708
- n && (t += a === "next" ? l : -1 * l), i.visibleSlidesIndexes && i.visibleSlidesIndexes.indexOf(t) < 0 && (i.params.centeredSlides ? t > r ? t = t - Math.floor(c / 2) + 1 : t = t + Math.floor(c / 2) - 1 : t > r && i.params.slidesPerGroup, i.slideTo(t, d ? 0 : void 0));
709
- }
710
- }
711
- u("beforeInit", () => {
712
- const {
713
- thumbs: d
714
- } = e.params;
715
- if (!(!d || !d.swiper))
716
- if (typeof d.swiper == "string" || d.swiper instanceof HTMLElement) {
717
- const i = H(), c = () => {
718
- const p = typeof d.swiper == "string" ? i.querySelector(d.swiper) : d.swiper;
719
- if (p && p.swiper)
720
- d.swiper = p.swiper, w(), v(!0);
721
- else if (p) {
722
- const l = `${e.params.eventsPrefix}init`, n = (r) => {
723
- d.swiper = r.detail[0], p.removeEventListener(l, n), w(), v(!0), d.swiper.update(), e.update();
724
- };
725
- p.addEventListener(l, n);
726
- }
727
- return p;
728
- }, o = () => {
729
- if (e.destroyed) return;
730
- c() || requestAnimationFrame(o);
731
- };
732
- requestAnimationFrame(o);
733
- } else
734
- w(), v(!0);
735
- }), u("slideChange update resize observerUpdate", () => {
736
- v();
737
- }), u("setTransition", (d, i) => {
738
- const c = e.thumbs.swiper;
739
- !c || c.destroyed || c.setTransition(i);
740
- }), u("beforeDestroy", () => {
741
- const d = e.thumbs.swiper;
742
- !d || d.destroyed || m && d.destroy();
743
- }), Object.assign(e.thumbs, {
744
- init: w,
745
- update: v
746
- });
747
- }
748
- function le(k) {
749
- let {
750
- swiper: e,
751
- extendParams: A,
752
- emit: u,
753
- once: h
754
- } = k;
755
- A({
756
- freeMode: {
757
- enabled: !1,
758
- momentum: !0,
759
- momentumRatio: 1,
760
- momentumBounce: !0,
761
- momentumBounceRatio: 1,
762
- momentumVelocityRatio: 1,
763
- sticky: !1,
764
- minimumVelocity: 0.02
765
- }
766
- });
767
- function m() {
768
- if (e.params.cssMode) return;
769
- const v = e.getTranslate();
770
- e.setTranslate(v), e.setTransition(0), e.touchEventsData.velocities.length = 0, e.freeMode.onTouchEnd({
771
- currentPos: e.rtl ? e.translate : -e.translate
772
- });
773
- }
774
- function x() {
775
- if (e.params.cssMode) return;
776
- const {
777
- touchEventsData: v,
778
- touches: d
779
- } = e;
780
- v.velocities.length === 0 && v.velocities.push({
781
- position: d[e.isHorizontal() ? "startX" : "startY"],
782
- time: v.touchStartTime
783
- }), v.velocities.push({
784
- position: d[e.isHorizontal() ? "currentX" : "currentY"],
785
- time: q()
786
- });
787
- }
788
- function w(v) {
789
- let {
790
- currentPos: d
791
- } = v;
792
- if (e.params.cssMode) return;
793
- const {
794
- params: i,
795
- wrapperEl: c,
796
- rtlTranslate: o,
797
- snapGrid: p,
798
- touchEventsData: l
799
- } = e, r = q() - l.touchStartTime;
800
- if (d < -e.minTranslate()) {
801
- e.slideTo(e.activeIndex);
802
- return;
803
- }
804
- if (d > -e.maxTranslate()) {
805
- e.slides.length < p.length ? e.slideTo(p.length - 1) : e.slideTo(e.slides.length - 1);
806
- return;
807
- }
808
- if (i.freeMode.momentum) {
809
- if (l.velocities.length > 1) {
810
- const g = l.velocities.pop(), b = l.velocities.pop(), C = g.position - b.position, I = g.time - b.time;
811
- e.velocity = C / I, e.velocity /= 2, Math.abs(e.velocity) < i.freeMode.minimumVelocity && (e.velocity = 0), (I > 150 || q() - g.time > 300) && (e.velocity = 0);
812
- } else
813
- e.velocity = 0;
814
- e.velocity *= i.freeMode.momentumVelocityRatio, l.velocities.length = 0;
815
- let t = 1e3 * i.freeMode.momentumRatio;
816
- const a = e.velocity * t;
817
- let s = e.translate + a;
818
- o && (s = -s);
819
- let f = !1, y;
820
- const M = Math.abs(e.velocity) * 20 * i.freeMode.momentumBounceRatio;
821
- let D;
822
- if (s < e.maxTranslate())
823
- i.freeMode.momentumBounce ? (s + e.maxTranslate() < -M && (s = e.maxTranslate() - M), y = e.maxTranslate(), f = !0, l.allowMomentumBounce = !0) : s = e.maxTranslate(), i.loop && i.centeredSlides && (D = !0);
824
- else if (s > e.minTranslate())
825
- i.freeMode.momentumBounce ? (s - e.minTranslate() > M && (s = e.minTranslate() + M), y = e.minTranslate(), f = !0, l.allowMomentumBounce = !0) : s = e.minTranslate(), i.loop && i.centeredSlides && (D = !0);
826
- else if (i.freeMode.sticky) {
827
- let g;
828
- for (let b = 0; b < p.length; b += 1)
829
- if (p[b] > -s) {
830
- g = b;
831
- break;
832
- }
833
- Math.abs(p[g] - s) < Math.abs(p[g - 1] - s) || e.swipeDirection === "next" ? s = p[g] : s = p[g - 1], s = -s;
834
- }
835
- if (D && h("transitionEnd", () => {
836
- e.loopFix();
837
- }), e.velocity !== 0) {
838
- if (o ? t = Math.abs((-s - e.translate) / e.velocity) : t = Math.abs((s - e.translate) / e.velocity), i.freeMode.sticky) {
839
- const g = Math.abs((o ? -s : s) - e.translate), b = e.slidesSizesGrid[e.activeIndex];
840
- g < b ? t = i.speed : g < 2 * b ? t = i.speed * 1.5 : t = i.speed * 2.5;
841
- }
842
- } else if (i.freeMode.sticky) {
843
- e.slideToClosest();
844
- return;
845
- }
846
- i.freeMode.momentumBounce && f ? (e.updateProgress(y), e.setTransition(t), e.setTranslate(s), e.transitionStart(!0, e.swipeDirection), e.animating = !0, F(c, () => {
847
- !e || e.destroyed || !l.allowMomentumBounce || (u("momentumBounce"), e.setTransition(i.speed), setTimeout(() => {
848
- e.setTranslate(y), F(c, () => {
849
- !e || e.destroyed || e.transitionEnd();
850
- });
851
- }, 0));
852
- })) : e.velocity ? (u("_freeModeNoMomentumRelease"), e.updateProgress(s), e.setTransition(t), e.setTranslate(s), e.transitionStart(!0, e.swipeDirection), e.animating || (e.animating = !0, F(c, () => {
853
- !e || e.destroyed || e.transitionEnd();
854
- }))) : e.updateProgress(s), e.updateActiveIndex(), e.updateSlidesClasses();
855
- } else if (i.freeMode.sticky) {
856
- e.slideToClosest();
857
- return;
858
- } else i.freeMode && u("_freeModeNoMomentumRelease");
859
- (!i.freeMode.momentum || r >= i.longSwipesMs) && (u("_freeModeStaticRelease"), e.updateProgress(), e.updateActiveIndex(), e.updateSlidesClasses());
860
- }
861
- Object.assign(e, {
862
- freeMode: {
863
- onTouchStart: m,
864
- onTouchMove: x,
865
- onTouchEnd: w
866
- }
867
- });
868
- }
869
- export {
870
- ne as Autoplay,
871
- se as Controller,
872
- le as FreeMode,
873
- te as Keyboard,
874
- ae as Navigation,
875
- ie as Pagination,
876
- re as Thumbs,
877
- ce as Zoom
878
- };