@wikicasa-dev/components 1.7.36 → 1.7.38

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 (65) hide show
  1. package/dist/AccessibleSelect.js +1 -1
  2. package/dist/BaseAccordionBtn.js +1 -1
  3. package/dist/BaseAccordionItem.js +1 -1
  4. package/dist/BaseAutocomplete.js +1 -1
  5. package/dist/BaseDropDown.js +1 -1
  6. package/dist/BaseModal.js +1 -1
  7. package/dist/BasePagination.js +1 -1
  8. package/dist/BaseSlider.js +4 -8
  9. package/dist/BaseSnackbar.js +56 -53
  10. package/dist/BaseUploadFile.js +1 -1
  11. package/dist/CheckboxGroup.js +1 -1
  12. package/dist/SwiperCarousel.js +1 -1
  13. package/dist/UIKit/AccessibleSelect.vue.d.ts +21 -19
  14. package/dist/UIKit/Accordion/BaseAccordion.vue.d.ts +15 -13
  15. package/dist/UIKit/Accordion/BaseAccordionBtn.vue.d.ts +17 -15
  16. package/dist/UIKit/Accordion/BaseAccordionContent.vue.d.ts +10 -8
  17. package/dist/UIKit/Accordion/BaseAccordionItem.vue.d.ts +26 -24
  18. package/dist/UIKit/BaseAlert.vue.d.ts +8 -6
  19. package/dist/UIKit/BaseAutocomplete.vue.d.ts +11 -9
  20. package/dist/UIKit/BaseBadge.vue.d.ts +6 -4
  21. package/dist/UIKit/BaseButton.vue.d.ts +32 -30
  22. package/dist/UIKit/BaseCard.vue.d.ts +17 -15
  23. package/dist/UIKit/BaseComplexToggle.vue.d.ts +13 -9
  24. package/dist/UIKit/BaseDropDown.vue.d.ts +47 -45
  25. package/dist/UIKit/BaseInput.vue.d.ts +17 -15
  26. package/dist/UIKit/BaseModal.vue.d.ts +43 -41
  27. package/dist/UIKit/BaseSelect/SelectItem.vue.d.ts +14 -12
  28. package/dist/UIKit/BaseSnackbar.vue.d.ts +8 -8
  29. package/dist/UIKit/BaseToggle.vue.d.ts +7 -5
  30. package/dist/UIKit/BaseTooltip.vue.d.ts +19 -17
  31. package/dist/UIKit/BaseUploadFile.vue.d.ts +20 -18
  32. package/dist/UIKit/Checkbox/CheckboxBtn.vue.d.ts +24 -22
  33. package/dist/UIKit/Checkbox/CheckboxGroup.vue.d.ts +31 -29
  34. package/dist/UIKit/Radio/RadioButton.vue.d.ts +2 -2
  35. package/dist/UIKit/Radio/RadioGroup.vue.d.ts +26 -24
  36. package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.vue.d.ts +6 -4
  37. package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.vue.d.ts +8 -8
  38. package/dist/UIKit/StaticSpinner.vue.d.ts +4 -4
  39. package/dist/UIKit/Tab/BaseTab.vue.d.ts +10 -8
  40. package/dist/UIKit/Tab/BaseTabPanel.vue.d.ts +8 -6
  41. package/dist/assets/BaseSnackbar.css +1 -1
  42. package/dist/chart/composables/useChartjsModules.d.ts +2 -2
  43. package/dist/chunks/{AccessibleSelect.vue_vue_type_script_setup_true_lang.DNBb2t-b.js → AccessibleSelect.vue_vue_type_script_setup_true_lang._TveE6SF.js} +2 -2
  44. package/dist/chunks/{ArrowIcon.CklBXJPN.js → ArrowIcon.GDkXwpPs.js} +1 -1
  45. package/dist/chunks/{BaseAccordionBtn.vue_vue_type_script_setup_true_lang.DcXCqpQX.js → BaseAccordionBtn.vue_vue_type_script_setup_true_lang.0xIiFb9q.js} +12 -11
  46. package/dist/chunks/{BaseAccordionItem.vue_vue_type_script_setup_true_lang.CjpJs5H1.js → BaseAccordionItem.vue_vue_type_script_setup_true_lang.6bQhmpuN.js} +5 -4
  47. package/dist/chunks/{BaseAutocomplete.vue_vue_type_script_setup_true_lang.4ohb2aKU.js → BaseAutocomplete.vue_vue_type_script_setup_true_lang.D_AZtW3a.js} +2 -3
  48. package/dist/chunks/{BaseDropDown.vue_vue_type_script_setup_true_lang.DK5S2KCI.js → BaseDropDown.vue_vue_type_script_setup_true_lang.CLzTJaGp.js} +4 -3
  49. package/dist/chunks/{BaseModal.vue_vue_type_style_index_0_lang.ToBCHvLi.js → BaseModal.vue_vue_type_style_index_0_lang.DR4KeMEv.js} +4 -3
  50. package/dist/chunks/{BasePagination.vue_vue_type_script_setup_true_lang.DnuvQIWk.js → BasePagination.vue_vue_type_script_setup_true_lang.m1hcl9Ft.js} +5 -5
  51. package/dist/chunks/{BaseUploadFile.vue_vue_type_script_setup_true_lang.1Uo4HnFM.js → BaseUploadFile.vue_vue_type_script_setup_true_lang.Dj2egDaT.js} +1 -2
  52. package/dist/chunks/{CheckboxGroup.vue_vue_type_script_setup_true_lang.TNbYVnnF.js → CheckboxGroup.vue_vue_type_script_setup_true_lang.Bn9HoCj4.js} +1 -2
  53. package/dist/chunks/{CloseIcon.DiRdm5zi.js → CloseIcon._moEkaop.js} +1 -1
  54. package/dist/chunks/DownloadIcon.DHCHRETy.js +41 -0
  55. package/dist/chunks/{SwiperCarousel.vue_vue_type_style_index_0_lang.DydGEHWv.js → SwiperCarousel.vue_vue_type_style_index_0_lang.7z9WGfLj.js} +19 -30
  56. package/dist/chunks/{index.C2AlqfUw.js → index.DUnHxi5U.js} +30 -58
  57. package/dist/components/IntersectionObserver/IntersectionObservable.vue.d.ts +10 -8
  58. package/dist/components/IntersectionObserver/IntersectionObserver.vue.d.ts +9 -7
  59. package/dist/components/carousel/SwiperCarousel.vue.d.ts +6 -4
  60. package/dist/components/carousel/SwiperSlide.vue.d.ts +4 -2
  61. package/dist/index.js +10 -10
  62. package/dist/useChartjsModules.js +5 -10
  63. package/dist/useKeyboardController.js +2 -4
  64. package/package.json +15 -15
  65. package/dist/chunks/DefaultValues-k7iQWtC2.CPFgoBrE.js +0 -9
@@ -1,6 +1,7 @@
1
1
  import { defineComponent as P, mergeModels as S, useModel as $, computed as k, openBlock as r, createElementBlock as n, createElementVNode as h, normalizeClass as g, createVNode as y, unref as p, toDisplayString as v, createCommentVNode as a, Fragment as m, renderList as C } from "vue";
2
2
  import "./js.cookie.CkZE2oaL.js";
3
- import { d as N } from "./ArrowIcon.CklBXJPN.js";
3
+ import { d as N } from "./ArrowIcon.GDkXwpPs.js";
4
+ import "./DownloadIcon.DHCHRETy.js";
4
5
  function d(s, l = !1) {
5
6
  return s == null ? "" : B(l ? Math.round(s) : Math.floor(s), 0);
6
7
  }
@@ -32,7 +33,7 @@ const F = {
32
33
  }, z = {
33
34
  key: 0,
34
35
  class: "uikit-mx-10px uikit-select-none"
35
- }, H = /* @__PURE__ */ P({
36
+ }, J = /* @__PURE__ */ P({
36
37
  __name: "BasePagination",
37
38
  props: /* @__PURE__ */ S({
38
39
  count: { default: 0 },
@@ -72,8 +73,7 @@ const F = {
72
73
  new Number(u.value === o.value).valueOf();
73
74
  let i = Math.max((u.value || 0) - e, 2);
74
75
  const t = [];
75
- for (i; i < (u.value || 0); i++)
76
- t.push(i);
76
+ for (i; i < (u.value || 0); i++) t.push(i);
77
77
  return t;
78
78
  }), L = k(() => {
79
79
  const e = x.value + /* Filling with the remaining left siblings */
@@ -159,5 +159,5 @@ const F = {
159
159
  }
160
160
  });
161
161
  export {
162
- H as _
162
+ J as _
163
163
  };
@@ -22,8 +22,7 @@ const C = ["innerHTML"], g = ["for"], y = ["id", "multiple", "accept"], T = /* @
22
22
  }
23
23
  );
24
24
  const d = ({ target: e }) => {
25
- if (!e)
26
- return;
25
+ if (!e) return;
27
26
  const i = e.files;
28
27
  i?.length && (s.value = i[0].name, a("uploaded", i[0]));
29
28
  };
@@ -26,8 +26,7 @@ const D = (l = "") => !l || !l.trim() ? "" : (l = l.trim(), l.replace(" ", "-").
26
26
  }), c = d(() => {
27
27
  for (const e in t.valuesObj) {
28
28
  const a = t.valuesObj[e];
29
- if (a.reset)
30
- return a;
29
+ if (a.reset) return a;
31
30
  }
32
31
  return null;
33
32
  }), p = d(
@@ -1,5 +1,5 @@
1
1
  import { h as o } from "vue";
2
- import { o as e } from "./DefaultValues-k7iQWtC2.CPFgoBrE.js";
2
+ import { o as e } from "./DownloadIcon.DHCHRETy.js";
3
3
  const d = (r, { attrs: t }) => {
4
4
  r = { ...e(), ...r };
5
5
  const { width: i, height: s } = r;
@@ -0,0 +1,41 @@
1
+ import { h as o } from "vue";
2
+ const r = () => ({
3
+ width: 20,
4
+ height: 20,
5
+ color: "#222",
6
+ strokeColor: "#222",
7
+ fillColor: "none"
8
+ });
9
+ o("svg", { xmlns: "http://www.w3.org/2000/svg" });
10
+ o(
11
+ "svg",
12
+ { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 28.5 20.243" },
13
+ o("g", { fill: "none", stroke: "#222", "stroke-linecap": "round", "stroke-width": "3" }, [
14
+ o("path", { "stroke-linejoin": "round", d: "m9.501 2.121-8 8 8 8" }),
15
+ o("path", { d: "M2 10.121h25" })
16
+ ])
17
+ );
18
+ o(
19
+ "svg",
20
+ { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 13.504 13.504" },
21
+ o(
22
+ "g",
23
+ o(
24
+ "g",
25
+ {
26
+ fill: "none",
27
+ stroke: "#2b5dff",
28
+ "stroke-linecap": "round",
29
+ "stroke-linejoin": "round",
30
+ "stroke-width": "1.5"
31
+ },
32
+ [
33
+ o("path", { d: "m4.301 6.809 2.45 2.451 2.451-2.451L6.751 9.26V.745" }),
34
+ o("path", { d: "M.75 12.754h12.004" })
35
+ ]
36
+ )
37
+ )
38
+ );
39
+ export {
40
+ r as o
41
+ };
@@ -265,8 +265,7 @@ function Ie(r) {
265
265
  }
266
266
  });
267
267
  function F() {
268
- if (m.length < 2)
269
- return 1;
268
+ if (m.length < 2) return 1;
270
269
  const n = m[0].pageX, s = m[0].pageY, a = m[1].pageX, w = m[1].pageY;
271
270
  return Math.sqrt((a - n) ** 2 + (w - s) ** 2);
272
271
  }
@@ -279,11 +278,10 @@ function Ie(r) {
279
278
  return s;
280
279
  }
281
280
  function Q() {
282
- if (m.length < 2)
283
- return {
284
- x: null,
285
- y: null
286
- };
281
+ if (m.length < 2) return {
282
+ x: null,
283
+ y: null
284
+ };
287
285
  const n = t.imageEl.getBoundingClientRect();
288
286
  return [(m[0].pageX + (m[1].pageX - m[0].pageX) / 2 - n.x - d.scrollX) / g, (m[0].pageY + (m[1].pageY - m[0].pageY) / 2 - n.y - d.scrollY) / g];
289
287
  }
@@ -299,8 +297,7 @@ function Ie(r) {
299
297
  return !!(n.target.matches(s) || [...e.hostEl.querySelectorAll(s)].filter((a) => a.contains(n.target)).length > 0);
300
298
  }
301
299
  function f(n) {
302
- if (n.pointerType === "mouse" && m.splice(0, m.length), !R(n))
303
- return;
300
+ if (n.pointerType === "mouse" && m.splice(0, m.length), !R(n)) return;
304
301
  const s = e.params.zoom;
305
302
  if (T = !1, I = !1, m.push(n), !(m.length < 2)) {
306
303
  if (T = !0, t.scaleStart = F(), !t.slideEl) {
@@ -320,14 +317,12 @@ function Ie(r) {
320
317
  }
321
318
  }
322
319
  function c(n) {
323
- if (!R(n))
324
- return;
320
+ if (!R(n)) return;
325
321
  const s = e.params.zoom, a = e.zoom, w = m.findIndex((S) => S.pointerId === n.pointerId);
326
322
  w >= 0 && (m[w] = n), !(m.length < 2) && (I = !0, t.scaleMove = F(), t.imageEl && (a.scale = t.scaleMove / t.scaleStart * g, a.scale > t.maxRatio && (a.scale = t.maxRatio - 1 + (a.scale - t.maxRatio + 1) ** 0.5), a.scale < s.minRatio && (a.scale = s.minRatio + 1 - (s.minRatio - a.scale + 1) ** 0.5), t.imageEl.style.transform = `translate3d(0,0,0) scale(${a.scale})`));
327
323
  }
328
324
  function h(n) {
329
- if (!R(n) || n.pointerType === "mouse" && n.type === "pointerout")
330
- return;
325
+ if (!R(n) || n.pointerType === "mouse" && n.type === "pointerout") return;
331
326
  const s = e.params.zoom, a = e.zoom, w = m.findIndex((S) => S.pointerId === n.pointerId);
332
327
  w >= 0 && m.splice(w, 1), !(!T || !I) && (T = !1, I = !1, t.imageEl && (a.scale = Math.max(Math.min(a.scale, t.maxRatio), s.minRatio), t.imageEl.style.transitionDuration = `${e.params.speed}ms`, t.imageEl.style.transform = `translate3d(0,0,0) scale(${a.scale})`, g = a.scale, y = !1, a.scale > 1 && t.slideEl ? t.slideEl.classList.add(`${s.zoomedSlideClass}`) : a.scale <= 1 && t.slideEl && t.slideEl.classList.remove(`${s.zoomedSlideClass}`), a.scale === 1 && (t.originX = 0, t.originY = 0, t.slideEl = void 0)));
333
328
  }
@@ -342,8 +337,7 @@ function Ie(r) {
342
337
  }
343
338
  function b(n) {
344
339
  const s = e.device;
345
- if (!t.imageEl || i.isTouched)
346
- return;
340
+ if (!t.imageEl || i.isTouched) return;
347
341
  s.android && n.cancelable && n.preventDefault(), i.isTouched = !0;
348
342
  const a = m.length > 0 ? m[0] : n;
349
343
  i.touchesStart.x = a.pageX, i.touchesStart.y = a.pageY;
@@ -375,8 +369,7 @@ function Ie(r) {
375
369
  }
376
370
  function z() {
377
371
  const n = e.zoom;
378
- if (!t.imageEl)
379
- return;
372
+ if (!t.imageEl) return;
380
373
  if (!i.isTouched || !i.isMoved) {
381
374
  i.isTouched = !1, i.isMoved = !1;
382
375
  return;
@@ -401,8 +394,7 @@ function Ie(r) {
401
394
  let B = t.slideEl.querySelector(`.${a.containerClass}`);
402
395
  B && (B = B.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), t.imageEl = B, B ? t.imageWrapEl = se(t.imageEl, `.${a.containerClass}`)[0] : t.imageWrapEl = void 0;
403
396
  }
404
- if (!t.imageEl || !t.imageWrapEl)
405
- return;
397
+ if (!t.imageEl || !t.imageWrapEl) return;
406
398
  e.params.cssMode && (e.wrapperEl.style.overflow = "hidden", e.wrapperEl.style.touchAction = "none"), t.slideEl.classList.add(`${a.zoomedSlideClass}`);
407
399
  let w, S, P, L, A, G, X, O, pe, fe, ge, he, K, Z, _, ee, te, ie;
408
400
  typeof i.touchesStart.x > "u" && n ? (w = n.pageX, S = n.pageY) : (w = i.touchesStart.x, S = i.touchesStart.y);
@@ -439,8 +431,7 @@ function Ie(r) {
439
431
  }
440
432
  function de() {
441
433
  const n = e.zoom;
442
- if (n.enabled)
443
- return;
434
+ if (n.enabled) return;
444
435
  n.enabled = !0;
445
436
  const {
446
437
  passiveListener: s,
@@ -452,8 +443,7 @@ function Ie(r) {
452
443
  }
453
444
  function me() {
454
445
  const n = e.zoom;
455
- if (!n.enabled)
456
- return;
446
+ if (!n.enabled) return;
457
447
  n.enabled = !1;
458
448
  const {
459
449
  passiveListener: s,
@@ -537,8 +527,7 @@ const Re = ["id"], Ae = ["id", "data-cy"], He = ["data-idx", "loading", "alt", "
537
527
  const j = c, U = h;
538
528
  return typeof y.value == "number" && f > y.value ? (c = "", h = "", { sizes: E, "data-src": j, "data-srcset": U }) : { src: c, srcset: h, sizes: E };
539
529
  }, W = [], Q = (l) => {
540
- if (typeof y.value == "string")
541
- return;
530
+ if (typeof y.value == "string") return;
542
531
  const f = W[l];
543
532
  if (f && !f.src && (f.src = f.dataset.src || "", f.srcset = f.dataset.srcset || ""), l < y.value || l + 1 >= (o.images ?? []).length)
544
533
  return;
@@ -557,11 +546,11 @@ const Re = ["id"], Ae = ["id", "data-cy"], He = ["data-idx", "loading", "alt", "
557
546
  };
558
547
  return $e(async () => {
559
548
  if (H(), I.value) {
560
- const { Keyboard: c } = await import("./index.C2AlqfUw.js");
549
+ const { Keyboard: c } = await import("./index.DUnHxi5U.js");
561
550
  d.swiperParams.modules?.push(c), d.swiperParams.keyboard = o.swiperOptions.keyboard;
562
551
  }
563
552
  if (t.value) {
564
- const { Pagination: c } = await import("./index.C2AlqfUw.js");
553
+ const { Pagination: c } = await import("./index.DUnHxi5U.js");
565
554
  d.swiperParams.modules?.push(c), d.swiperParams.pagination = {
566
555
  el: ".swiper-pagination",
567
556
  renderFraction: (h, E) => `<div class="uikit-rounded-xs uikit-border-w-black uikit-border uikit-border-solid uikit-px-3 uikit-bg-white uikit-pt-[3px] uikit-pb-[3px]">
@@ -573,7 +562,7 @@ const Re = ["id"], Ae = ["id", "data-cy"], He = ["data-idx", "loading", "alt", "
573
562
  };
574
563
  }
575
564
  if (m.value) {
576
- const { Navigation: c } = await import("./index.C2AlqfUw.js");
565
+ const { Navigation: c } = await import("./index.DUnHxi5U.js");
577
566
  d.swiperParams.modules?.push(c);
578
567
  const h = {
579
568
  ...o.swiperOptions.navigation.nextEl ?? {
@@ -589,7 +578,7 @@ const Re = ["id"], Ae = ["id", "data-cy"], He = ["data-idx", "loading", "alt", "
589
578
  };
590
579
  }
591
580
  if (i.value) {
592
- const { Autoplay: c } = await import("./index.C2AlqfUw.js");
581
+ const { Autoplay: c } = await import("./index.DUnHxi5U.js");
593
582
  d.swiperParams.modules?.push(c), d.swiperParams.autoplay = o.swiperOptions.autoplay;
594
583
  }
595
584
  const l = {
@@ -602,7 +591,7 @@ const Re = ["id"], Ae = ["id", "data-cy"], He = ["data-idx", "loading", "alt", "
602
591
  };
603
592
  let f = null;
604
593
  if (o.thumbSwiperOptions) {
605
- const { Thumbs: c, FreeMode: h, Controller: E } = await import("./index.C2AlqfUw.js");
594
+ const { Thumbs: c, FreeMode: h, Controller: E } = await import("./index.DUnHxi5U.js");
606
595
  d.swiperParams.modules?.push(c), d.swiperParams.modules?.push(E), f = new be(`#thumb_${o.id}`, {
607
596
  ...o.thumbSwiperOptions,
608
597
  modules: [h]
@@ -1,5 +1,5 @@
1
- import { g as N, 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.DydGEHWv.js";
2
- import { Z as ce } from "./SwiperCarousel.vue_vue_type_style_index_0_lang.DydGEHWv.js";
1
+ import { g as N, 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.7z9WGfLj.js";
2
+ import { Z as ce } from "./SwiperCarousel.vue_vue_type_style_index_0_lang.7z9WGfLj.js";
3
3
  function te(k) {
4
4
  let {
5
5
  swiper: e,
@@ -18,8 +18,7 @@ function te(k) {
18
18
  }
19
19
  });
20
20
  function w(i) {
21
- if (!e.enabled)
22
- return;
21
+ if (!e.enabled) return;
23
22
  const {
24
23
  rtlTranslate: c
25
24
  } = e;
@@ -39,13 +38,11 @@ function te(k) {
39
38
  for (let S = 0; S < E.length; S += 1) {
40
39
  const L = E[S];
41
40
  if (L[0] >= 0 && L[0] <= b && L[1] >= 0 && L[1] <= C) {
42
- if (L[0] === 0 && L[1] === 0)
43
- continue;
41
+ if (L[0] === 0 && L[1] === 0) continue;
44
42
  v = !0;
45
43
  }
46
44
  }
47
- if (!v)
48
- return;
45
+ if (!v) return;
49
46
  }
50
47
  e.isHorizontal() ? ((n || l || t || a) && (d.preventDefault ? d.preventDefault() : d.returnValue = !1), ((l || a) && !c || (n || t) && c) && e.slideNext(), ((n || t) && !c || (l || a) && c) && e.slidePrev()) : ((n || l || s || f) && (d.preventDefault ? d.preventDefault() : d.returnValue = !1), (l || f) && e.slideNext(), (n || s) && e.slidePrev()), y("keyPress", u);
51
48
  }
@@ -126,8 +123,7 @@ function ae(k) {
126
123
  if (e.params.navigation = _(e, e.originalParams.navigation, e.params.navigation, {
127
124
  nextEl: "swiper-button-next",
128
125
  prevEl: "swiper-button-prev"
129
- }), !(r.nextEl || r.prevEl))
130
- return;
126
+ }), !(r.nextEl || r.prevEl)) return;
131
127
  let n = m(r.nextEl), l = m(r.prevEl);
132
128
  Object.assign(e.navigation, {
133
129
  nextEl: n,
@@ -178,8 +174,7 @@ function ae(k) {
178
174
  f && (s = f.find((v) => l.includes(v) || t.includes(v)));
179
175
  }
180
176
  if (e.params.navigation.hideOnClick && !s) {
181
- if (e.pagination && e.params.pagination && e.params.pagination.clickable && (e.pagination.el === a || e.pagination.el.contains(a)))
182
- return;
177
+ if (e.pagination && e.params.pagination && e.params.pagination.clickable && (e.pagination.el === a || e.pagination.el.contains(a))) return;
183
178
  let f;
184
179
  l.length ? f = l[0].classList.contains(e.params.navigation.hiddenClass) : t.length && (f = t[0].classList.contains(e.params.navigation.hiddenClass)), y(f === !0 ? "navigationShow" : "navigationHide"), [...l, ...t].filter((v) => !!v).forEach((v) => v.classList.toggle(e.params.navigation.hiddenClass));
185
180
  }
@@ -260,16 +255,14 @@ function ie(k) {
260
255
  t.preventDefault();
261
256
  const s = j(a) * e.params.slidesPerGroup;
262
257
  if (e.params.loop) {
263
- if (e.realIndex === s)
264
- return;
258
+ if (e.realIndex === s) return;
265
259
  e.slideToLoop(s);
266
260
  } else
267
261
  e.slideTo(s);
268
262
  }
269
263
  function c() {
270
264
  const t = e.rtl, a = e.params.pagination;
271
- if (h())
272
- return;
265
+ if (h()) return;
273
266
  let s = e.pagination.el;
274
267
  s = P(s);
275
268
  let f, v;
@@ -324,8 +317,7 @@ function ie(k) {
324
317
  }
325
318
  function d() {
326
319
  const t = e.params.pagination;
327
- if (h())
328
- return;
320
+ if (h()) return;
329
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;
330
322
  let s = e.pagination.el;
331
323
  s = P(s);
@@ -345,8 +337,7 @@ function ie(k) {
345
337
  el: "swiper-pagination"
346
338
  });
347
339
  const t = e.params.pagination;
348
- if (!t.el)
349
- return;
340
+ if (!t.el) return;
350
341
  let a;
351
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, {
352
343
  el: a
@@ -356,16 +347,14 @@ function ie(k) {
356
347
  }
357
348
  function r() {
358
349
  const t = e.params.pagination;
359
- if (h())
360
- return;
350
+ if (h()) return;
361
351
  let a = e.pagination.el;
362
352
  a && (a = P(a), a.forEach((s) => {
363
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));
364
354
  })), e.pagination.bullets && e.pagination.bullets.forEach((s) => s.classList.remove(...t.bulletActiveClass.split(" ")));
365
355
  }
366
356
  p("changeDirection", () => {
367
- if (!e.pagination || !e.pagination.el)
368
- return;
357
+ if (!e.pagination || !e.pagination.el) return;
369
358
  const t = e.params.pagination;
370
359
  let {
371
360
  el: a
@@ -393,8 +382,7 @@ function ie(k) {
393
382
  }), p("click", (t, a) => {
394
383
  const s = a.target, f = P(e.pagination.el);
395
384
  if (e.params.pagination.el && e.params.pagination.hideOnClick && f && f.length > 0 && !s.classList.contains(e.params.pagination.bulletClass)) {
396
- if (e.navigation && (e.navigation.nextEl && s === e.navigation.nextEl || e.navigation.prevEl && s === e.navigation.prevEl))
397
- return;
385
+ if (e.navigation && (e.navigation.nextEl && s === e.navigation.nextEl || e.navigation.prevEl && s === e.navigation.prevEl)) return;
398
386
  const v = f[0].classList.contains(e.params.pagination.hiddenClass);
399
387
  y(v === !0 ? "paginationShow" : "paginationHide"), f.forEach((M) => M.classList.toggle(e.params.pagination.hiddenClass));
400
388
  }
@@ -460,16 +448,14 @@ function se(k) {
460
448
  let d, u;
461
449
  const r = e.constructor;
462
450
  function n(l) {
463
- if (l.destroyed)
464
- return;
451
+ if (l.destroyed) return;
465
452
  const t = e.rtlTranslate ? -e.translate : e.translate;
466
453
  e.params.controller.by === "slide" && (m(l), u = -e.controller.spline.interpolate(-t)), (!u || e.params.controller.by === "container") && (d = (l.maxTranslate() - l.minTranslate()) / (e.maxTranslate() - e.minTranslate()), (Number.isNaN(d) || !Number.isFinite(d)) && (d = 1), u = (t - e.minTranslate()) * d + l.minTranslate()), e.params.controller.inverse && (u = l.maxTranslate() - u), l.updateProgress(u), l.setTranslate(u, e), l.updateActiveIndex(), l.updateSlidesClasses();
467
454
  }
468
455
  if (Array.isArray(c))
469
456
  for (let l = 0; l < c.length; l += 1)
470
457
  c[l] !== i && c[l] instanceof r && n(c[l]);
471
- else
472
- c instanceof r && i !== c && n(c);
458
+ else c instanceof r && i !== c && n(c);
473
459
  }
474
460
  function w(o, i) {
475
461
  const c = e.constructor, d = e.controller.control;
@@ -484,8 +470,7 @@ function se(k) {
484
470
  if (Array.isArray(d))
485
471
  for (u = 0; u < d.length; u += 1)
486
472
  d[u] !== i && d[u] instanceof c && r(d[u]);
487
- else
488
- d instanceof c && i !== d && r(d);
473
+ else d instanceof c && i !== d && r(d);
489
474
  }
490
475
  function h() {
491
476
  e.controller.control && e.controller.spline && (e.controller.spline = void 0, delete e.controller.spline);
@@ -548,8 +533,7 @@ function ne(k) {
548
533
  !e || e.destroyed || !e.wrapperEl || T.target === e.wrapperEl && (e.wrapperEl.removeEventListener("transitionend", s), !(a || T.detail && T.detail.bySwiperTouchMove) && C());
549
534
  }
550
535
  const f = () => {
551
- if (e.destroyed || !e.autoplay.running)
552
- return;
536
+ if (e.destroyed || !e.autoplay.running) return;
553
537
  e.autoplay.paused ? d = !0 : d && (o = i, d = !1);
554
538
  const T = e.autoplay.paused ? i : c + o - (/* @__PURE__ */ new Date()).getTime();
555
539
  e.autoplay.timeLeft = T, y("autoplayTimeLeft", T, T / h), w = requestAnimationFrame(() => {
@@ -559,8 +543,7 @@ function ne(k) {
559
543
  let T;
560
544
  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;
561
545
  }, M = (T) => {
562
- if (e.destroyed || !e.autoplay.running)
563
- return;
546
+ if (e.destroyed || !e.autoplay.running) return;
564
547
  cancelAnimationFrame(w), f();
565
548
  let B = typeof T > "u" ? e.params.autoplay.delay : T;
566
549
  h = e.params.autoplay.delay, o = e.params.autoplay.delay;
@@ -581,8 +564,7 @@ function ne(k) {
581
564
  }, g = () => {
582
565
  e.autoplay.running = !1, clearTimeout(x), cancelAnimationFrame(w), y("autoplayStop");
583
566
  }, b = (T, B) => {
584
- if (e.destroyed || !e.autoplay.running)
585
- return;
567
+ if (e.destroyed || !e.autoplay.running) return;
586
568
  clearTimeout(x), T || (t = !0);
587
569
  const O = () => {
588
570
  y("autoplayPause"), e.params.autoplay.waitForTransition ? e.wrapperEl.addEventListener("transitionend", s) : C();
@@ -595,8 +577,7 @@ function ne(k) {
595
577
  }, C = () => {
596
578
  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, y("autoplayResume"));
597
579
  }, I = () => {
598
- if (e.destroyed || !e.autoplay.running)
599
- return;
580
+ if (e.destroyed || !e.autoplay.running) return;
600
581
  const T = N();
601
582
  T.visibilityState === "hidden" && (t = !0, b(!0)), T.visibilityState === "visible" && C();
602
583
  }, E = (T) => {
@@ -670,11 +651,9 @@ function re(k) {
670
651
  };
671
652
  function x() {
672
653
  const o = e.thumbs.swiper;
673
- if (!o || o.destroyed)
674
- return;
654
+ if (!o || o.destroyed) return;
675
655
  const i = o.clickedIndex, c = o.clickedSlide;
676
- if (c && c.classList.contains(e.params.thumbs.slideThumbActiveClass) || typeof i > "u" || i === null)
677
- return;
656
+ if (c && c.classList.contains(e.params.thumbs.slideThumbActiveClass) || typeof i > "u" || i === null) return;
678
657
  let d;
679
658
  o.params.loop ? d = parseInt(o.clickedSlide.getAttribute("data-swiper-slide-index"), 10) : d = i, e.params.loop ? e.slideToLoop(d) : e.slideTo(d);
680
659
  }
@@ -682,8 +661,7 @@ function re(k) {
682
661
  const {
683
662
  thumbs: o
684
663
  } = e.params;
685
- if (y)
686
- return !1;
664
+ if (y) return !1;
687
665
  y = !0;
688
666
  const i = e.constructor;
689
667
  if (o.swiper instanceof i)
@@ -705,8 +683,7 @@ function re(k) {
705
683
  }
706
684
  function h(o) {
707
685
  const i = e.thumbs.swiper;
708
- if (!i || i.destroyed)
709
- return;
686
+ if (!i || i.destroyed) return;
710
687
  const c = i.params.slidesPerView === "auto" ? i.slidesPerViewDynamic() : i.params.slidesPerView;
711
688
  let d = 1;
712
689
  const u = e.params.thumbs.slideThumbActiveClass;
@@ -748,8 +725,7 @@ function re(k) {
748
725
  }
749
726
  return u;
750
727
  }, d = () => {
751
- if (e.destroyed)
752
- return;
728
+ if (e.destroyed) return;
753
729
  c() || requestAnimationFrame(d);
754
730
  };
755
731
  requestAnimationFrame(d);
@@ -788,16 +764,14 @@ function le(k) {
788
764
  }
789
765
  });
790
766
  function m() {
791
- if (e.params.cssMode)
792
- return;
767
+ if (e.params.cssMode) return;
793
768
  const h = e.getTranslate();
794
769
  e.setTranslate(h), e.setTransition(0), e.touchEventsData.velocities.length = 0, e.freeMode.onTouchEnd({
795
770
  currentPos: e.rtl ? e.translate : -e.translate
796
771
  });
797
772
  }
798
773
  function x() {
799
- if (e.params.cssMode)
800
- return;
774
+ if (e.params.cssMode) return;
801
775
  const {
802
776
  touchEventsData: h,
803
777
  touches: o
@@ -814,8 +788,7 @@ function le(k) {
814
788
  let {
815
789
  currentPos: o
816
790
  } = h;
817
- if (e.params.cssMode)
818
- return;
791
+ if (e.params.cssMode) return;
819
792
  const {
820
793
  params: i,
821
794
  wrapperEl: c,
@@ -881,8 +854,7 @@ function le(k) {
881
854
  } else if (i.freeMode.sticky) {
882
855
  e.slideToClosest();
883
856
  return;
884
- } else
885
- i.freeMode && p("_freeModeNoMomentumRelease");
857
+ } else i.freeMode && p("_freeModeNoMomentumRelease");
886
858
  (!i.freeMode.momentum || l >= i.longSwipesMs) && (p("_freeModeStaticRelease"), e.updateProgress(), e.updateActiveIndex(), e.updateSlidesClasses());
887
859
  }
888
860
  Object.assign(e, {
@@ -1,21 +1,23 @@
1
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
- observer?: IntersectionObserver | null | undefined;
3
- isVisible?: boolean | undefined;
1
+ declare function __VLS_template(): {
2
+ default?(_: {}): any;
3
+ };
4
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
5
+ observer?: IntersectionObserver | null;
6
+ isVisible?: boolean;
4
7
  }>, {
5
8
  isVisible: boolean;
6
9
  observer: null;
7
10
  }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
8
- observer?: IntersectionObserver | null | undefined;
9
- isVisible?: boolean | undefined;
11
+ observer?: IntersectionObserver | null;
12
+ isVisible?: boolean;
10
13
  }>, {
11
14
  isVisible: boolean;
12
15
  observer: null;
13
16
  }>>>, {
14
17
  observer: IntersectionObserver | null;
15
18
  isVisible: boolean;
16
- }, {}>, {
17
- default?(_: {}): any;
18
- }>;
19
+ }, {}>;
20
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
19
21
  export default _default;
20
22
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
21
23
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -3,7 +3,13 @@ interface IntersectionObserverProps {
3
3
  skip?: boolean;
4
4
  threshold?: number;
5
5
  }
6
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IntersectionObserverProps>, {
6
+ declare function __VLS_template(): {
7
+ observer?(_: {
8
+ observer: any;
9
+ isVisible: true;
10
+ }): any;
11
+ };
12
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IntersectionObserverProps>, {
7
13
  observeOnce: boolean;
8
14
  skip: boolean;
9
15
  threshold: number;
@@ -19,12 +25,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
19
25
  threshold: number;
20
26
  observeOnce: boolean;
21
27
  skip: boolean;
22
- }, {}>, {
23
- observer?(_: {
24
- observer: any;
25
- isVisible: true;
26
- }): any;
27
- }>;
28
+ }, {}>;
29
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
28
30
  export default _default;
29
31
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
30
32
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -14,7 +14,10 @@ interface SwiperCarouselProps {
14
14
  }>;
15
15
  shiftFirstImage?: boolean;
16
16
  }
17
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SwiperCarouselProps>, {
17
+ declare function __VLS_template(): {
18
+ default?(_: {}): any;
19
+ };
20
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SwiperCarouselProps>, {
18
21
  lazyLoadImages: boolean;
19
22
  backgroundImage: boolean;
20
23
  shiftFirstImage: boolean;
@@ -40,9 +43,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
40
43
  lazyLoadImages: boolean;
41
44
  backgroundImage: boolean;
42
45
  shiftFirstImage: boolean;
43
- }, {}>, {
44
- default?(_: {}): any;
45
- }>;
46
+ }, {}>;
47
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
46
48
  export default _default;
47
49
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
48
50
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1,6 +1,8 @@
1
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>, {
1
+ declare function __VLS_template(): {
2
2
  default?(_: {}): any;
3
- }>;
3
+ };
4
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
5
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
4
6
  export default _default;
5
7
  type __VLS_WithTemplateSlots<T, S> = T & {
6
8
  new (): {