@wikicasa-dev/components 2.1.23 → 2.1.24-alpha.1

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 (204) hide show
  1. package/dist/UIKit/AccessibleSelect.js +1 -1
  2. package/dist/UIKit/Accordion/BaseAccordion.js +1 -1
  3. package/dist/UIKit/Accordion/BaseAccordionBtn.js +1 -1
  4. package/dist/UIKit/Accordion/BaseAccordionContent.js +1 -1
  5. package/dist/UIKit/Accordion/BaseAccordionItem.js +1 -1
  6. package/dist/UIKit/BaseAlert.js +2 -2
  7. package/dist/UIKit/BaseAutocomplete.js +1 -1
  8. package/dist/UIKit/BaseBadge.js +2 -2
  9. package/dist/UIKit/BaseBreadcrumb.js +1 -1
  10. package/dist/UIKit/BaseButton.js +1 -1
  11. package/dist/UIKit/BaseCard.js +2 -2
  12. package/dist/UIKit/BaseComplexToggle.js +2 -2
  13. package/dist/UIKit/BaseDropDown.js +1 -1
  14. package/dist/UIKit/BaseFloatingLabel.js +2 -2
  15. package/dist/UIKit/BaseIcon.js +2 -2
  16. package/dist/UIKit/BaseInput.js +2 -2
  17. package/dist/UIKit/BaseModal.js +2 -2
  18. package/dist/UIKit/BasePagination.js +1 -1
  19. package/dist/UIKit/BasePaper.js +2 -2
  20. package/dist/UIKit/BaseSelect/SelectItem.js +1 -1
  21. package/dist/UIKit/BaseSlider.js +2 -2
  22. package/dist/UIKit/BaseSnackbar.d.ts +40 -20
  23. package/dist/UIKit/BaseSnackbar.js +3 -5
  24. package/dist/UIKit/BaseTextarea.js +2 -2
  25. package/dist/UIKit/BaseToggle.js +2 -2
  26. package/dist/UIKit/BaseTooltip.js +2 -2
  27. package/dist/UIKit/BaseUploadFile.js +1 -1
  28. package/dist/UIKit/Checkbox/CheckboxBtn.js +2 -2
  29. package/dist/UIKit/Checkbox/CheckboxGroup.js +1 -1
  30. package/dist/UIKit/Radio/RadioButton.js +1 -1
  31. package/dist/UIKit/Radio/RadioGroup.js +1 -1
  32. package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.js +2 -2
  33. package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.js +1 -1
  34. package/dist/UIKit/Slider/SimpleSlider.js +2 -2
  35. package/dist/UIKit/StaticSpinner.js +2 -2
  36. package/dist/UIKit/Tab/BaseTab.js +1 -1
  37. package/dist/UIKit/Tab/BaseTabList.js +1 -1
  38. package/dist/UIKit/Tab/BaseTabPanel.js +1 -1
  39. package/dist/UIKit/Tab/BaseTabView.js +1 -1
  40. package/dist/UIKit/types.d.ts +1 -0
  41. package/dist/_virtual/polyline.js +1 -1
  42. package/dist/assets/{packages/components/lib → lib}/UIKit/BaseBadge.css +1 -1
  43. package/dist/assets/lib/UIKit/BaseCard.css +1 -0
  44. package/dist/assets/lib/UIKit/BaseComplexToggle.css +1 -0
  45. package/dist/assets/lib/UIKit/BaseModal.css +1 -0
  46. package/dist/assets/lib/UIKit/BaseSnackbar.css +1 -0
  47. package/dist/assets/lib/UIKit/Slider/SimpleSlider.css +1 -0
  48. package/dist/assets/node_modules/swiper/modules/autoplay.css +0 -0
  49. package/dist/assets/node_modules/swiper/modules/navigation.css +1 -0
  50. package/dist/assets/node_modules/swiper/swiper.css +1 -0
  51. package/dist/assets/src/tailwind.css +1 -0
  52. package/dist/chart/DoughnutChart.js +1 -1
  53. package/dist/chart/LineChart.js +1 -1
  54. package/dist/components/IntersectionObserver/IntersectionObservable.js +1 -1
  55. package/dist/components/IntersectionObserver/IntersectionObserver.js +1 -1
  56. package/dist/components/carousel/SwiperCarousel.d.ts +11 -4
  57. package/dist/components/carousel/SwiperCarousel.js +3 -3
  58. package/dist/index.js +89 -88
  59. package/dist/lazyModules/Swiper/autoplay.js +5 -0
  60. package/dist/lazyModules/Swiper/controller.js +5 -0
  61. package/dist/lazyModules/Swiper/free-mode.js +5 -0
  62. package/dist/lazyModules/Swiper/keyboard.js +5 -0
  63. package/dist/lazyModules/Swiper/navigation.js +5 -0
  64. package/dist/lazyModules/Swiper/pagination.js +5 -0
  65. package/dist/lazyModules/Swiper/thumbs.js +5 -0
  66. package/dist/lib/UIKit/AccessibleSelect.vue.js +211 -0
  67. package/dist/{packages/components/lib → lib}/UIKit/Accordion/BaseAccordion.vue.js +3 -3
  68. package/dist/lib/UIKit/Accordion/BaseAccordionBtn.vue.js +60 -0
  69. package/dist/{packages/components/lib → lib}/UIKit/Accordion/BaseAccordionContent.vue.js +10 -10
  70. package/dist/{packages/components/lib → lib}/UIKit/Accordion/BaseAccordionItem.vue.js +54 -54
  71. package/dist/lib/UIKit/BaseAlert.vue.js +19 -0
  72. package/dist/lib/UIKit/BaseAutocomplete.vue.js +192 -0
  73. package/dist/lib/UIKit/BaseBadge.vue.js +19 -0
  74. package/dist/lib/UIKit/BaseBreadcrumb.vue.js +58 -0
  75. package/dist/{packages/components/lib → lib}/UIKit/BaseButton.vue.js +18 -18
  76. package/dist/lib/UIKit/BaseCard.vue.js +37 -0
  77. package/dist/{packages/components/lib → lib}/UIKit/BaseComplexToggle.vue.js +29 -29
  78. package/dist/lib/UIKit/BaseDropDown.vue.js +135 -0
  79. package/dist/{packages/components/lib → lib}/UIKit/BaseFloatingLabel.vue.js +14 -14
  80. package/dist/lib/UIKit/BaseIcon.vue.js +27 -0
  81. package/dist/{packages/components/lib → lib}/UIKit/BaseInput.vue.js +86 -86
  82. package/dist/{packages/components/lib → lib}/UIKit/BaseModal.vue.js +61 -61
  83. package/dist/{packages/components/lib → lib}/UIKit/BasePagination.vue.js +93 -95
  84. package/dist/lib/UIKit/BaseSelect/SelectItem.vue.js +41 -0
  85. package/dist/{packages/components/lib → lib}/UIKit/BaseSlider.vue.js +45 -45
  86. package/dist/lib/UIKit/BaseSnackbar.vue.js +119 -0
  87. package/dist/{packages/components/lib → lib}/UIKit/BaseTextarea.vue.js +57 -57
  88. package/dist/{packages/components/lib → lib}/UIKit/BaseToggle.vue.js +15 -15
  89. package/dist/lib/UIKit/BaseTooltip.vue.js +41 -0
  90. package/dist/lib/UIKit/BaseUploadFile.vue.js +71 -0
  91. package/dist/{packages/components/lib → lib}/UIKit/Checkbox/CheckboxBtn.vue.js +26 -26
  92. package/dist/lib/UIKit/Checkbox/CheckboxGroup.vue.js +112 -0
  93. package/dist/lib/UIKit/Radio/RadioButton.vue.js +58 -0
  94. package/dist/lib/UIKit/Radio/RadioGroup.vue.js +60 -0
  95. package/dist/{packages/components/lib → lib}/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +7 -7
  96. package/dist/{packages/components/lib → lib}/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js +8 -8
  97. package/dist/{packages/components/lib → lib}/UIKit/Slider/SimpleSlider.vue.js +7 -7
  98. package/dist/{packages/components/lib → lib}/UIKit/StaticSpinner.vue.js +3 -3
  99. package/dist/lib/UIKit/Tab/BaseTabList.vue.js +45 -0
  100. package/dist/lib/UIKit/Tab/BaseTabPanel.vue.js +25 -0
  101. package/dist/lib/UIKit/Tab/BaseTabView.vue.js +107 -0
  102. package/dist/lib/chart/DoughnutChart.vue.js +27 -0
  103. package/dist/lib/chart/LineChart.vue.js +42 -0
  104. package/dist/lib/components/IntersectionObserver/IntersectionObservable.vue.js +24 -0
  105. package/dist/{packages/components/lib → lib}/components/carousel/SwiperCarousel.vue.js +26 -27
  106. package/dist/node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js +41 -0
  107. package/dist/node_modules/{.pnpm/js-cookie@3.0.5/node_modules/js-cookie → js-cookie}/dist/js.cookie.js +0 -1
  108. package/dist/node_modules/swiper/modules/autoplay.js +128 -0
  109. package/dist/node_modules/swiper/modules/controller.js +100 -0
  110. package/dist/node_modules/swiper/modules/free-mode.js +123 -0
  111. package/dist/node_modules/swiper/modules/keyboard.js +66 -0
  112. package/dist/node_modules/swiper/modules/navigation.js +136 -0
  113. package/dist/node_modules/swiper/modules/pagination.js +226 -0
  114. package/dist/node_modules/{.pnpm/swiper@11.2.6/node_modules/swiper → swiper}/modules/thumbs.js +33 -34
  115. package/dist/node_modules/swiper/modules/zoom.js +309 -0
  116. package/dist/node_modules/swiper/shared/classes-to-selector.js +6 -0
  117. package/dist/node_modules/{.pnpm/swiper@11.2.6/node_modules/swiper → swiper}/shared/ssr-window.esm.js +9 -10
  118. package/dist/node_modules/{.pnpm/swiper@11.2.6/node_modules/swiper → swiper}/shared/utils.js +42 -39
  119. package/package.json +34 -30
  120. package/dist/assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/navigation.css +0 -1
  121. package/dist/assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/swiper.css +0 -1
  122. package/dist/assets/packages/components/lib/UIKit/BaseCard.css +0 -1
  123. package/dist/assets/packages/components/lib/UIKit/BaseComplexToggle.css +0 -1
  124. package/dist/assets/packages/components/lib/UIKit/BaseModal.css +0 -1
  125. package/dist/assets/packages/components/lib/UIKit/BaseSnackbar.css +0 -1
  126. package/dist/assets/packages/components/lib/UIKit/Slider/SimpleSlider.css +0 -1
  127. package/dist/assets/packages/components/src/tailwind.css +0 -1
  128. package/dist/node_modules/.pnpm/@wikicasa-dev_vue-composables@0.0.23_typescript@5.8.3/node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js +0 -41
  129. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/autoplay.css.js +0 -1
  130. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/autoplay.js +0 -129
  131. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/controller.css.js +0 -1
  132. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/controller.js +0 -101
  133. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/free-mode.js +0 -125
  134. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/keyboard.css.js +0 -1
  135. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/keyboard.js +0 -67
  136. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/navigation.js +0 -127
  137. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/pagination.js +0 -227
  138. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/thumbs.css.js +0 -1
  139. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/zoom.js +0 -310
  140. package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/shared/classes-to-selector.js +0 -6
  141. package/dist/packages/components/lazyModules/Swiper/autoplay.js +0 -5
  142. package/dist/packages/components/lazyModules/Swiper/controller.js +0 -5
  143. package/dist/packages/components/lazyModules/Swiper/free-mode.js +0 -5
  144. package/dist/packages/components/lazyModules/Swiper/keyboard.js +0 -5
  145. package/dist/packages/components/lazyModules/Swiper/navigation.js +0 -5
  146. package/dist/packages/components/lazyModules/Swiper/pagination.js +0 -5
  147. package/dist/packages/components/lazyModules/Swiper/thumbs.js +0 -5
  148. package/dist/packages/components/lib/UIKit/AccessibleSelect.vue.js +0 -213
  149. package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionBtn.vue.js +0 -60
  150. package/dist/packages/components/lib/UIKit/BaseAlert.vue.js +0 -19
  151. package/dist/packages/components/lib/UIKit/BaseAutocomplete.vue.js +0 -192
  152. package/dist/packages/components/lib/UIKit/BaseBadge.vue.js +0 -19
  153. package/dist/packages/components/lib/UIKit/BaseBreadcrumb.vue.js +0 -58
  154. package/dist/packages/components/lib/UIKit/BaseCard.vue.js +0 -37
  155. package/dist/packages/components/lib/UIKit/BaseDropDown.vue.js +0 -137
  156. package/dist/packages/components/lib/UIKit/BaseIcon.vue.js +0 -27
  157. package/dist/packages/components/lib/UIKit/BaseSelect/SelectItem.vue.js +0 -41
  158. package/dist/packages/components/lib/UIKit/BaseSnackbar.vue.js +0 -81
  159. package/dist/packages/components/lib/UIKit/BaseTooltip.vue.js +0 -41
  160. package/dist/packages/components/lib/UIKit/BaseUploadFile.vue.js +0 -71
  161. package/dist/packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js +0 -114
  162. package/dist/packages/components/lib/UIKit/Radio/RadioButton.vue.js +0 -58
  163. package/dist/packages/components/lib/UIKit/Radio/RadioGroup.vue.js +0 -62
  164. package/dist/packages/components/lib/UIKit/Tab/BaseTabList.vue.js +0 -45
  165. package/dist/packages/components/lib/UIKit/Tab/BaseTabPanel.vue.js +0 -25
  166. package/dist/packages/components/lib/UIKit/Tab/BaseTabView.vue.js +0 -107
  167. package/dist/packages/components/lib/chart/DoughnutChart.vue.js +0 -27
  168. package/dist/packages/components/lib/chart/LineChart.vue.js +0 -42
  169. package/dist/packages/components/lib/components/IntersectionObserver/IntersectionObservable.vue.js +0 -24
  170. /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseAlert.css +0 -0
  171. /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseFloatingLabel.css +0 -0
  172. /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseIcon.css +0 -0
  173. /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseInput.css +0 -0
  174. /package/dist/assets/{packages/components/lib → lib}/UIKit/BasePaper.css +0 -0
  175. /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseSlider.css +0 -0
  176. /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseTextarea.css +0 -0
  177. /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseToggle.css +0 -0
  178. /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseTooltip.css +0 -0
  179. /package/dist/assets/{packages/components/lib → lib}/UIKit/Checkbox/CheckboxBtn.css +0 -0
  180. /package/dist/assets/{packages/components/lib → lib}/UIKit/ShimmerLoader/BaseShimmerLoader.css +0 -0
  181. /package/dist/assets/{packages/components/lib → lib}/UIKit/StaticSpinner.css +0 -0
  182. /package/dist/assets/{packages/components/lib → lib}/components/carousel/SwiperCarousel.css +0 -0
  183. /package/dist/assets/{packages/components/lib → lib}/components/carousel/SwiperCarousel2.css +0 -0
  184. /package/dist/assets/node_modules/{.pnpm/swiper@11.2.6/node_modules/swiper → swiper}/modules/free-mode.css +0 -0
  185. /package/dist/assets/node_modules/{.pnpm/swiper@11.2.6/node_modules/swiper → swiper}/modules/pagination.css +0 -0
  186. /package/dist/assets/node_modules/{.pnpm/swiper@11.2.6/node_modules/swiper → swiper}/modules/zoom.css +0 -0
  187. /package/dist/{packages/components/lib → lib}/UIKit/BasePaper.vue.js +0 -0
  188. /package/dist/{packages/components/lib → lib}/UIKit/Tab/BaseTab.vue.js +0 -0
  189. /package/dist/{packages/components/lib → lib}/components/IntersectionObserver/IntersectionObserver.vue.js +0 -0
  190. /package/dist/node_modules/{.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev → @wikicasa-dev}/svg-icons/dist/ArrowIcon.js +0 -0
  191. /package/dist/node_modules/{.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev → @wikicasa-dev}/svg-icons/dist/CloseIcon.js +0 -0
  192. /package/dist/node_modules/{.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev → @wikicasa-dev}/svg-icons/dist/DefaultValues-CpabIgVz.js +0 -0
  193. /package/dist/node_modules/{.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev → @wikicasa-dev}/svg-icons/dist/PharmacyIcon.js +0 -0
  194. /package/dist/node_modules/{.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev → @wikicasa-dev}/svg-icons/dist/WarningIconRounded.js +0 -0
  195. /package/dist/node_modules/{.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev → @wikicasa-dev}/utilities/dist/utils/ArrayUtils.js +0 -0
  196. /package/dist/node_modules/{.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev → @wikicasa-dev}/utilities/dist/utils/DeviceDetectionUtils.js +0 -0
  197. /package/dist/node_modules/{.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev → @wikicasa-dev}/utilities/dist/utils/FunctionUtils.js +0 -0
  198. /package/dist/node_modules/{.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev → @wikicasa-dev}/utilities/dist/utils/GenericUtils.js +0 -0
  199. /package/dist/node_modules/{.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev → @wikicasa-dev}/utilities/dist/utils/ObjectUtils.js +0 -0
  200. /package/dist/node_modules/{.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev → @wikicasa-dev}/utilities/dist/utils/StringUtils.js +0 -0
  201. /package/dist/node_modules/{.pnpm/google-polyline@1.0.3/node_modules/google-polyline → google-polyline}/lib/decode.js +0 -0
  202. /package/dist/node_modules/{.pnpm/google-polyline@1.0.3/node_modules/google-polyline → google-polyline}/lib/encode.js +0 -0
  203. /package/dist/node_modules/{.pnpm/google-polyline@1.0.3/node_modules/google-polyline → google-polyline}/lib/polyline.js +0 -0
  204. /package/dist/node_modules/{.pnpm/swiper@11.2.6/node_modules/swiper → swiper}/shared/create-element-if-not-defined.js +0 -0
@@ -1,12 +1,11 @@
1
1
  import { g as T } from "../shared/ssr-window.esm.js";
2
- import { l as I, e as g } from "../shared/utils.js";
3
- function y(h) {
4
- let {
5
- swiper: e,
6
- extendParams: w,
7
- on: m
8
- } = h;
9
- w({
2
+ import { p as I, e as g } from "../shared/utils.js";
3
+ function P({
4
+ swiper: e,
5
+ extendParams: p,
6
+ on: m
7
+ }) {
8
+ p({
10
9
  thumbs: {
11
10
  swiper: null,
12
11
  multipleActiveThumbs: !0,
@@ -15,7 +14,7 @@ function y(h) {
15
14
  thumbsContainerClass: "swiper-thumbs"
16
15
  }
17
16
  });
18
- let c = !1, b = !1;
17
+ let f = !1, h = !1;
19
18
  e.thumbs = {
20
19
  swiper: null
21
20
  };
@@ -27,16 +26,16 @@ function y(h) {
27
26
  let a;
28
27
  t.params.loop ? a = parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"), 10) : a = s, e.params.loop ? e.slideToLoop(a) : e.slideTo(a);
29
28
  }
30
- function p() {
29
+ function c() {
31
30
  const {
32
31
  thumbs: t
33
32
  } = e.params;
34
- if (c) return !1;
35
- c = !0;
33
+ if (f) return !1;
34
+ f = !0;
36
35
  const s = e.constructor;
37
36
  if (t.swiper instanceof s) {
38
37
  if (t.swiper.destroyed)
39
- return c = !1, !1;
38
+ return f = !1, !1;
40
39
  e.thumbs.swiper = t.swiper, Object.assign(e.thumbs.swiper.originalParams, {
41
40
  watchSlidesProgress: !0,
42
41
  slideToClickedSlide: !1
@@ -49,7 +48,7 @@ function y(h) {
49
48
  Object.assign(r, {
50
49
  watchSlidesProgress: !0,
51
50
  slideToClickedSlide: !1
52
- }), e.thumbs.swiper = new s(r), b = !0;
51
+ }), e.thumbs.swiper = new s(r), h = !0;
53
52
  }
54
53
  return e.thumbs.swiper.el.classList.add(e.params.thumbs.thumbsContainerClass), e.thumbs.swiper.on("tap", x), !0;
55
54
  }
@@ -58,25 +57,25 @@ function y(h) {
58
57
  if (!s || s.destroyed) return;
59
58
  const r = s.params.slidesPerView === "auto" ? s.slidesPerViewDynamic() : s.params.slidesPerView;
60
59
  let a = 1;
61
- const l = e.params.thumbs.slideThumbActiveClass;
62
- if (e.params.slidesPerView > 1 && !e.params.centeredSlides && (a = e.params.slidesPerView), e.params.thumbs.multipleActiveThumbs || (a = 1), a = Math.floor(a), s.slides.forEach((i) => i.classList.remove(l)), s.params.loop || s.params.virtual && s.params.virtual.enabled)
60
+ const n = e.params.thumbs.slideThumbActiveClass;
61
+ if (e.params.slidesPerView > 1 && !e.params.centeredSlides && (a = e.params.slidesPerView), e.params.thumbs.multipleActiveThumbs || (a = 1), a = Math.floor(a), s.slides.forEach((i) => i.classList.remove(n)), s.params.loop || s.params.virtual && s.params.virtual.enabled)
63
62
  for (let i = 0; i < a; i += 1)
64
- g(s.slidesEl, `[data-swiper-slide-index="${e.realIndex + i}"]`).forEach((n) => {
65
- n.classList.add(l);
63
+ g(s.slidesEl, `[data-swiper-slide-index="${e.realIndex + i}"]`).forEach((l) => {
64
+ l.classList.add(n);
66
65
  });
67
66
  else
68
67
  for (let i = 0; i < a; i += 1)
69
- s.slides[e.realIndex + i] && s.slides[e.realIndex + i].classList.add(l);
68
+ s.slides[e.realIndex + i] && s.slides[e.realIndex + i].classList.add(n);
70
69
  const d = e.params.thumbs.autoScrollOffset, u = d && !s.params.loop;
71
70
  if (e.realIndex !== s.realIndex || u) {
72
71
  const i = s.activeIndex;
73
- let n, f;
72
+ let l, b;
74
73
  if (s.params.loop) {
75
74
  const v = s.slides.find((S) => S.getAttribute("data-swiper-slide-index") === `${e.realIndex}`);
76
- n = s.slides.indexOf(v), f = e.activeIndex > e.previousIndex ? "next" : "prev";
75
+ l = s.slides.indexOf(v), b = e.activeIndex > e.previousIndex ? "next" : "prev";
77
76
  } else
78
- n = e.realIndex, f = n > e.previousIndex ? "next" : "prev";
79
- u && (n += f === "next" ? d : -1 * d), s.visibleSlidesIndexes && s.visibleSlidesIndexes.indexOf(n) < 0 && (s.params.centeredSlides ? n > i ? n = n - Math.floor(r / 2) + 1 : n = n + Math.floor(r / 2) - 1 : n > i && s.params.slidesPerGroup, s.slideTo(n, t ? 0 : void 0));
77
+ l = e.realIndex, b = l > e.previousIndex ? "next" : "prev";
78
+ u && (l += b === "next" ? d : -1 * d), s.visibleSlidesIndexes && s.visibleSlidesIndexes.indexOf(l) < 0 && (s.params.centeredSlides ? l > i ? l = l - Math.floor(r / 2) + 1 : l = l + Math.floor(r / 2) - 1 : l > i && s.params.slidesPerGroup, s.slideTo(l, t ? 0 : void 0));
80
79
  }
81
80
  }
82
81
  m("beforeInit", () => {
@@ -86,23 +85,23 @@ function y(h) {
86
85
  if (!(!t || !t.swiper))
87
86
  if (typeof t.swiper == "string" || t.swiper instanceof HTMLElement) {
88
87
  const s = T(), r = () => {
89
- const l = typeof t.swiper == "string" ? s.querySelector(t.swiper) : t.swiper;
90
- if (l && l.swiper)
91
- t.swiper = l.swiper, p(), o(!0);
92
- else if (l) {
88
+ const n = typeof t.swiper == "string" ? s.querySelector(t.swiper) : t.swiper;
89
+ if (n && n.swiper)
90
+ t.swiper = n.swiper, c(), o(!0);
91
+ else if (n) {
93
92
  const d = `${e.params.eventsPrefix}init`, u = (i) => {
94
- t.swiper = i.detail[0], l.removeEventListener(d, u), p(), o(!0), t.swiper.update(), e.update();
93
+ t.swiper = i.detail[0], n.removeEventListener(d, u), c(), o(!0), t.swiper.update(), e.update();
95
94
  };
96
- l.addEventListener(d, u);
95
+ n.addEventListener(d, u);
97
96
  }
98
- return l;
97
+ return n;
99
98
  }, a = () => {
100
99
  if (e.destroyed) return;
101
100
  r() || requestAnimationFrame(a);
102
101
  };
103
102
  requestAnimationFrame(a);
104
103
  } else
105
- p(), o(!0);
104
+ c(), o(!0);
106
105
  }), m("slideChange update resize observerUpdate", () => {
107
106
  o();
108
107
  }), m("setTransition", (t, s) => {
@@ -110,12 +109,12 @@ function y(h) {
110
109
  !r || r.destroyed || r.setTransition(s);
111
110
  }), m("beforeDestroy", () => {
112
111
  const t = e.thumbs.swiper;
113
- !t || t.destroyed || b && t.destroy();
112
+ !t || t.destroyed || h && t.destroy();
114
113
  }), Object.assign(e.thumbs, {
115
- init: p,
114
+ init: c,
116
115
  update: o
117
116
  });
118
117
  }
119
118
  export {
120
- y as default
119
+ P as default
121
120
  };
@@ -0,0 +1,309 @@
1
+ import { a as he } from "../shared/ssr-window.esm.js";
2
+ import { e as oe, d as G, f as se, l as re } from "../shared/utils.js";
3
+ function ve({
4
+ swiper: n,
5
+ extendParams: le,
6
+ on: p,
7
+ emit: ce
8
+ }) {
9
+ const x = he();
10
+ le({
11
+ zoom: {
12
+ enabled: !1,
13
+ limitToOriginalSize: !1,
14
+ maxRatio: 3,
15
+ minRatio: 1,
16
+ panOnMouseMove: !1,
17
+ toggle: !0,
18
+ containerClass: "swiper-zoom-container",
19
+ zoomedSlideClass: "swiper-slide-zoomed"
20
+ }
21
+ }), n.zoom = {
22
+ enabled: !1
23
+ };
24
+ let u = 1, H = !1, C = !1, v = {
25
+ x: 0,
26
+ y: 0
27
+ };
28
+ const k = -3;
29
+ let S, T;
30
+ const s = [], t = {
31
+ originX: 0,
32
+ originY: 0,
33
+ slideEl: void 0,
34
+ slideWidth: void 0,
35
+ slideHeight: void 0,
36
+ imageEl: void 0,
37
+ imageWrapEl: void 0,
38
+ maxRatio: 3
39
+ }, e = {
40
+ isTouched: void 0,
41
+ isMoved: void 0,
42
+ currentX: void 0,
43
+ currentY: void 0,
44
+ minX: void 0,
45
+ minY: void 0,
46
+ maxX: void 0,
47
+ maxY: void 0,
48
+ width: void 0,
49
+ height: void 0,
50
+ startX: void 0,
51
+ startY: void 0,
52
+ touchesStart: {},
53
+ touchesCurrent: {}
54
+ }, l = {
55
+ x: void 0,
56
+ y: void 0,
57
+ prevPositionX: void 0,
58
+ prevPositionY: void 0,
59
+ prevTime: void 0
60
+ };
61
+ let P = 1;
62
+ Object.defineProperty(n.zoom, "scale", {
63
+ get() {
64
+ return P;
65
+ },
66
+ set(a) {
67
+ if (P !== a) {
68
+ const o = t.imageEl, i = t.slideEl;
69
+ ce("zoomChange", a, o, i);
70
+ }
71
+ P = a;
72
+ }
73
+ });
74
+ function Z() {
75
+ if (s.length < 2) return 1;
76
+ const a = s[0].pageX, o = s[0].pageY, i = s[1].pageX, r = s[1].pageY;
77
+ return Math.sqrt((i - a) ** 2 + (r - o) ** 2);
78
+ }
79
+ function _() {
80
+ const a = n.params.zoom, o = t.imageWrapEl.getAttribute("data-swiper-zoom") || a.maxRatio;
81
+ if (a.limitToOriginalSize && t.imageEl && t.imageEl.naturalWidth) {
82
+ const i = t.imageEl.naturalWidth / t.imageEl.offsetWidth;
83
+ return Math.min(i, o);
84
+ }
85
+ return o;
86
+ }
87
+ function me() {
88
+ if (s.length < 2) return {
89
+ x: null,
90
+ y: null
91
+ };
92
+ const a = t.imageEl.getBoundingClientRect();
93
+ return [(s[0].pageX + (s[1].pageX - s[0].pageX) / 2 - a.x - x.scrollX) / u, (s[0].pageY + (s[1].pageY - s[0].pageY) / 2 - a.y - x.scrollY) / u];
94
+ }
95
+ function ue() {
96
+ return n.isElement ? "swiper-slide" : `.${n.params.slideClass}`;
97
+ }
98
+ function M(a) {
99
+ const o = ue();
100
+ return !!(a.target.matches(o) || n.slides.filter((i) => i.contains(a.target)).length > 0);
101
+ }
102
+ function j(a) {
103
+ const o = `.${n.params.zoom.containerClass}`;
104
+ return !!(a.target.matches(o) || [...n.hostEl.querySelectorAll(o)].filter((i) => i.contains(a.target)).length > 0);
105
+ }
106
+ function B(a) {
107
+ if (a.pointerType === "mouse" && s.splice(0, s.length), !M(a)) return;
108
+ const o = n.params.zoom;
109
+ if (S = !1, T = !1, s.push(a), !(s.length < 2)) {
110
+ if (S = !0, t.scaleStart = Z(), !t.slideEl) {
111
+ t.slideEl = a.target.closest(`.${n.params.slideClass}, swiper-slide`), t.slideEl || (t.slideEl = n.slides[n.activeIndex]);
112
+ let i = t.slideEl.querySelector(`.${o.containerClass}`);
113
+ if (i && (i = i.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), t.imageEl = i, i ? t.imageWrapEl = G(t.imageEl, `.${o.containerClass}`)[0] : t.imageWrapEl = void 0, !t.imageWrapEl) {
114
+ t.imageEl = void 0;
115
+ return;
116
+ }
117
+ t.maxRatio = _();
118
+ }
119
+ if (t.imageEl) {
120
+ const [i, r] = me();
121
+ t.originX = i, t.originY = r, t.imageEl.style.transitionDuration = "0ms";
122
+ }
123
+ H = !0;
124
+ }
125
+ }
126
+ function F(a) {
127
+ if (!M(a)) return;
128
+ const o = n.params.zoom, i = n.zoom, r = s.findIndex((c) => c.pointerId === a.pointerId);
129
+ r >= 0 && (s[r] = a), !(s.length < 2) && (T = !0, t.scaleMove = Z(), t.imageEl && (i.scale = t.scaleMove / t.scaleStart * u, i.scale > t.maxRatio && (i.scale = t.maxRatio - 1 + (i.scale - t.maxRatio + 1) ** 0.5), i.scale < o.minRatio && (i.scale = o.minRatio + 1 - (o.minRatio - i.scale + 1) ** 0.5), t.imageEl.style.transform = `translate3d(0,0,0) scale(${i.scale})`));
130
+ }
131
+ function J(a) {
132
+ if (!M(a) || a.pointerType === "mouse" && a.type === "pointerout") return;
133
+ const o = n.params.zoom, i = n.zoom, r = s.findIndex((c) => c.pointerId === a.pointerId);
134
+ r >= 0 && s.splice(r, 1), !(!S || !T) && (S = !1, T = !1, t.imageEl && (i.scale = Math.max(Math.min(i.scale, t.maxRatio), o.minRatio), t.imageEl.style.transitionDuration = `${n.params.speed}ms`, t.imageEl.style.transform = `translate3d(0,0,0) scale(${i.scale})`, u = i.scale, H = !1, i.scale > 1 && t.slideEl ? t.slideEl.classList.add(`${o.zoomedSlideClass}`) : i.scale <= 1 && t.slideEl && t.slideEl.classList.remove(`${o.zoomedSlideClass}`), i.scale === 1 && (t.originX = 0, t.originY = 0, t.slideEl = void 0)));
135
+ }
136
+ let K;
137
+ function L() {
138
+ n.touchEventsData.preventTouchMoveFromPointerMove = !1;
139
+ }
140
+ function de() {
141
+ clearTimeout(K), n.touchEventsData.preventTouchMoveFromPointerMove = !0, K = setTimeout(() => {
142
+ n.destroyed || L();
143
+ });
144
+ }
145
+ function fe(a) {
146
+ const o = n.device;
147
+ if (!t.imageEl || e.isTouched) return;
148
+ o.android && a.cancelable && a.preventDefault(), e.isTouched = !0;
149
+ const i = s.length > 0 ? s[0] : a;
150
+ e.touchesStart.x = i.pageX, e.touchesStart.y = i.pageY;
151
+ }
152
+ function N(a) {
153
+ const i = a.pointerType === "mouse" && n.params.zoom.panOnMouseMove;
154
+ if (!M(a) || !j(a))
155
+ return;
156
+ const r = n.zoom;
157
+ if (!t.imageEl)
158
+ return;
159
+ if (!e.isTouched || !t.slideEl) {
160
+ i && U(a);
161
+ return;
162
+ }
163
+ if (i) {
164
+ U(a);
165
+ return;
166
+ }
167
+ e.isMoved || (e.width = t.imageEl.offsetWidth || t.imageEl.clientWidth, e.height = t.imageEl.offsetHeight || t.imageEl.clientHeight, e.startX = re(t.imageWrapEl, "x") || 0, e.startY = re(t.imageWrapEl, "y") || 0, t.slideWidth = t.slideEl.offsetWidth, t.slideHeight = t.slideEl.offsetHeight, t.imageWrapEl.style.transitionDuration = "0ms");
168
+ const c = e.width * r.scale, g = e.height * r.scale;
169
+ if (e.minX = Math.min(t.slideWidth / 2 - c / 2, 0), e.maxX = -e.minX, e.minY = Math.min(t.slideHeight / 2 - g / 2, 0), e.maxY = -e.minY, e.touchesCurrent.x = s.length > 0 ? s[0].pageX : a.pageX, e.touchesCurrent.y = s.length > 0 ? s[0].pageY : a.pageY, Math.max(Math.abs(e.touchesCurrent.x - e.touchesStart.x), Math.abs(e.touchesCurrent.y - e.touchesStart.y)) > 5 && (n.allowClick = !1), !e.isMoved && !H) {
170
+ if (n.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)) {
171
+ e.isTouched = !1, L();
172
+ return;
173
+ }
174
+ if (!n.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)) {
175
+ e.isTouched = !1, L();
176
+ return;
177
+ }
178
+ }
179
+ a.cancelable && a.preventDefault(), a.stopPropagation(), de(), e.isMoved = !0;
180
+ const f = (r.scale - u) / (t.maxRatio - n.params.zoom.minRatio), {
181
+ originX: E,
182
+ originY: m
183
+ } = t;
184
+ e.currentX = e.touchesCurrent.x - e.touchesStart.x + e.startX + f * (e.width - E * 2), e.currentY = e.touchesCurrent.y - e.touchesStart.y + e.startY + f * (e.height - m * 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), l.prevPositionX || (l.prevPositionX = e.touchesCurrent.x), l.prevPositionY || (l.prevPositionY = e.touchesCurrent.y), l.prevTime || (l.prevTime = Date.now()), l.x = (e.touchesCurrent.x - l.prevPositionX) / (Date.now() - l.prevTime) / 2, l.y = (e.touchesCurrent.y - l.prevPositionY) / (Date.now() - l.prevTime) / 2, Math.abs(e.touchesCurrent.x - l.prevPositionX) < 2 && (l.x = 0), Math.abs(e.touchesCurrent.y - l.prevPositionY) < 2 && (l.y = 0), l.prevPositionX = e.touchesCurrent.x, l.prevPositionY = e.touchesCurrent.y, l.prevTime = Date.now(), t.imageWrapEl.style.transform = `translate3d(${e.currentX}px, ${e.currentY}px,0)`;
185
+ }
186
+ function ge() {
187
+ const a = n.zoom;
188
+ if (s.length = 0, !t.imageEl) return;
189
+ if (!e.isTouched || !e.isMoved) {
190
+ e.isTouched = !1, e.isMoved = !1;
191
+ return;
192
+ }
193
+ e.isTouched = !1, e.isMoved = !1;
194
+ let o = 300, i = 300;
195
+ const r = l.x * o, c = e.currentX + r, g = l.y * i, h = e.currentY + g;
196
+ l.x !== 0 && (o = Math.abs((c - e.currentX) / l.x)), l.y !== 0 && (i = Math.abs((h - e.currentY) / l.y));
197
+ const f = Math.max(o, i);
198
+ e.currentX = c, e.currentY = h;
199
+ const E = e.width * a.scale, m = e.height * a.scale;
200
+ e.minX = Math.min(t.slideWidth / 2 - E / 2, 0), e.maxX = -e.minX, e.minY = Math.min(t.slideHeight / 2 - m / 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), t.imageWrapEl.style.transitionDuration = `${f}ms`, t.imageWrapEl.style.transform = `translate3d(${e.currentX}px, ${e.currentY}px,0)`;
201
+ }
202
+ function Q() {
203
+ const a = n.zoom;
204
+ t.slideEl && n.activeIndex !== n.slides.indexOf(t.slideEl) && (t.imageEl && (t.imageEl.style.transform = "translate3d(0,0,0) scale(1)"), t.imageWrapEl && (t.imageWrapEl.style.transform = "translate3d(0,0,0)"), t.slideEl.classList.remove(`${n.params.zoom.zoomedSlideClass}`), a.scale = 1, u = 1, t.slideEl = void 0, t.imageEl = void 0, t.imageWrapEl = void 0, t.originX = 0, t.originY = 0);
205
+ }
206
+ function U(a) {
207
+ if (u <= 1 || !t.imageWrapEl || !M(a) || !j(a)) return;
208
+ const o = x.getComputedStyle(t.imageWrapEl).transform, i = new x.DOMMatrix(o);
209
+ if (!C) {
210
+ C = !0, v.x = a.clientX, v.y = a.clientY, e.startX = i.e, e.startY = i.f, e.width = t.imageEl.offsetWidth || t.imageEl.clientWidth, e.height = t.imageEl.offsetHeight || t.imageEl.clientHeight, t.slideWidth = t.slideEl.offsetWidth, t.slideHeight = t.slideEl.offsetHeight;
211
+ return;
212
+ }
213
+ const r = (a.clientX - v.x) * k, c = (a.clientY - v.y) * k, g = e.width * u, h = e.height * u, f = t.slideWidth, E = t.slideHeight, m = Math.min(f / 2 - g / 2, 0), d = -m, z = Math.min(E / 2 - h / 2, 0), b = -z, X = Math.max(Math.min(e.startX + r, d), m), Y = Math.max(Math.min(e.startY + c, b), z);
214
+ t.imageWrapEl.style.transitionDuration = "0ms", t.imageWrapEl.style.transform = `translate3d(${X}px, ${Y}px, 0)`, v.x = a.clientX, v.y = a.clientY, e.startX = X, e.startY = Y, e.currentX = X, e.currentY = Y;
215
+ }
216
+ function V(a) {
217
+ const o = n.zoom, i = n.params.zoom;
218
+ if (!t.slideEl) {
219
+ a && a.target && (t.slideEl = a.target.closest(`.${n.params.slideClass}, swiper-slide`)), t.slideEl || (n.params.virtual && n.params.virtual.enabled && n.virtual ? t.slideEl = oe(n.slidesEl, `.${n.params.slideActiveClass}`)[0] : t.slideEl = n.slides[n.activeIndex]);
220
+ let W = t.slideEl.querySelector(`.${i.containerClass}`);
221
+ W && (W = W.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), t.imageEl = W, W ? t.imageWrapEl = G(t.imageEl, `.${i.containerClass}`)[0] : t.imageWrapEl = void 0;
222
+ }
223
+ if (!t.imageEl || !t.imageWrapEl) return;
224
+ n.params.cssMode && (n.wrapperEl.style.overflow = "hidden", n.wrapperEl.style.touchAction = "none"), t.slideEl.classList.add(`${i.zoomedSlideClass}`);
225
+ let r, c, g, h, f, E, m, d, z, b, X, Y, $, D, R, I, O, A;
226
+ typeof e.touchesStart.x > "u" && a ? (r = a.pageX, c = a.pageY) : (r = e.touchesStart.x, c = e.touchesStart.y);
227
+ const q = u, y = typeof a == "number" ? a : null;
228
+ u === 1 && y && (r = void 0, c = void 0, e.touchesStart.x = void 0, e.touchesStart.y = void 0);
229
+ const ie = _();
230
+ o.scale = y || ie, u = y || ie, a && !(u === 1 && y) ? (O = t.slideEl.offsetWidth, A = t.slideEl.offsetHeight, g = se(t.slideEl).left + x.scrollX, h = se(t.slideEl).top + x.scrollY, f = g + O / 2 - r, E = h + A / 2 - c, z = t.imageEl.offsetWidth || t.imageEl.clientWidth, b = t.imageEl.offsetHeight || t.imageEl.clientHeight, X = z * o.scale, Y = b * o.scale, $ = Math.min(O / 2 - X / 2, 0), D = Math.min(A / 2 - Y / 2, 0), R = -$, I = -D, q > 0 && y && typeof e.currentX == "number" && typeof e.currentY == "number" ? (m = e.currentX * o.scale / q, d = e.currentY * o.scale / q) : (m = f * o.scale, d = E * o.scale), m < $ && (m = $), m > R && (m = R), d < D && (d = D), d > I && (d = I)) : (m = 0, d = 0), y && o.scale === 1 && (t.originX = 0, t.originY = 0), e.currentX = m, e.currentY = d, t.imageWrapEl.style.transitionDuration = "300ms", t.imageWrapEl.style.transform = `translate3d(${m}px, ${d}px,0)`, t.imageEl.style.transitionDuration = "300ms", t.imageEl.style.transform = `translate3d(0,0,0) scale(${o.scale})`;
231
+ }
232
+ function w() {
233
+ const a = n.zoom, o = n.params.zoom;
234
+ if (!t.slideEl) {
235
+ n.params.virtual && n.params.virtual.enabled && n.virtual ? t.slideEl = oe(n.slidesEl, `.${n.params.slideActiveClass}`)[0] : t.slideEl = n.slides[n.activeIndex];
236
+ let i = t.slideEl.querySelector(`.${o.containerClass}`);
237
+ i && (i = i.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), t.imageEl = i, i ? t.imageWrapEl = G(t.imageEl, `.${o.containerClass}`)[0] : t.imageWrapEl = void 0;
238
+ }
239
+ !t.imageEl || !t.imageWrapEl || (n.params.cssMode && (n.wrapperEl.style.overflow = "", n.wrapperEl.style.touchAction = ""), a.scale = 1, u = 1, e.currentX = void 0, e.currentY = void 0, e.touchesStart.x = void 0, e.touchesStart.y = void 0, t.imageWrapEl.style.transitionDuration = "300ms", t.imageWrapEl.style.transform = "translate3d(0,0,0)", t.imageEl.style.transitionDuration = "300ms", t.imageEl.style.transform = "translate3d(0,0,0) scale(1)", t.slideEl.classList.remove(`${o.zoomedSlideClass}`), t.slideEl = void 0, t.originX = 0, t.originY = 0, n.params.zoom.panOnMouseMove && (v = {
240
+ x: 0,
241
+ y: 0
242
+ }, C && (C = !1, e.startX = 0, e.startY = 0)));
243
+ }
244
+ function ee(a) {
245
+ const o = n.zoom;
246
+ o.scale && o.scale !== 1 ? w() : V(a);
247
+ }
248
+ function te() {
249
+ const a = n.params.passiveListeners ? {
250
+ passive: !0,
251
+ capture: !1
252
+ } : !1, o = n.params.passiveListeners ? {
253
+ passive: !1,
254
+ capture: !0
255
+ } : !0;
256
+ return {
257
+ passiveListener: a,
258
+ activeListenerWithCapture: o
259
+ };
260
+ }
261
+ function ae() {
262
+ const a = n.zoom;
263
+ if (a.enabled) return;
264
+ a.enabled = !0;
265
+ const {
266
+ passiveListener: o,
267
+ activeListenerWithCapture: i
268
+ } = te();
269
+ n.wrapperEl.addEventListener("pointerdown", B, o), n.wrapperEl.addEventListener("pointermove", F, i), ["pointerup", "pointercancel", "pointerout"].forEach((r) => {
270
+ n.wrapperEl.addEventListener(r, J, o);
271
+ }), n.wrapperEl.addEventListener("pointermove", N, i);
272
+ }
273
+ function ne() {
274
+ const a = n.zoom;
275
+ if (!a.enabled) return;
276
+ a.enabled = !1;
277
+ const {
278
+ passiveListener: o,
279
+ activeListenerWithCapture: i
280
+ } = te();
281
+ n.wrapperEl.removeEventListener("pointerdown", B, o), n.wrapperEl.removeEventListener("pointermove", F, i), ["pointerup", "pointercancel", "pointerout"].forEach((r) => {
282
+ n.wrapperEl.removeEventListener(r, J, o);
283
+ }), n.wrapperEl.removeEventListener("pointermove", N, i);
284
+ }
285
+ p("init", () => {
286
+ n.params.zoom.enabled && ae();
287
+ }), p("destroy", () => {
288
+ ne();
289
+ }), p("touchStart", (a, o) => {
290
+ n.zoom.enabled && fe(o);
291
+ }), p("touchEnd", (a, o) => {
292
+ n.zoom.enabled && ge();
293
+ }), p("doubleTap", (a, o) => {
294
+ !n.animating && n.params.zoom.enabled && n.zoom.enabled && n.params.zoom.toggle && ee(o);
295
+ }), p("transitionEnd", () => {
296
+ n.zoom.enabled && n.params.zoom.enabled && Q();
297
+ }), p("slideChange", () => {
298
+ n.zoom.enabled && n.params.zoom.enabled && n.params.cssMode && Q();
299
+ }), Object.assign(n.zoom, {
300
+ enable: ae,
301
+ disable: ne,
302
+ in: V,
303
+ out: w,
304
+ toggle: ee
305
+ });
306
+ }
307
+ export {
308
+ ve as default
309
+ };
@@ -0,0 +1,6 @@
1
+ function r(e = "") {
2
+ return `.${e.trim().replace(/([\.:!+\/()[\]])/g, "\\$1").replace(/ /g, ".")}`;
3
+ }
4
+ export {
5
+ r as c
6
+ };
@@ -1,14 +1,13 @@
1
- function r(e) {
1
+ function o(e) {
2
2
  return e !== null && typeof e == "object" && "constructor" in e && e.constructor === Object;
3
3
  }
4
- function o(e, n) {
5
- e === void 0 && (e = {}), n === void 0 && (n = {});
6
- const u = ["__proto__", "constructor", "prototype"];
7
- Object.keys(n).filter((t) => u.indexOf(t) < 0).forEach((t) => {
8
- typeof e[t] > "u" ? e[t] = n[t] : r(n[t]) && r(e[t]) && Object.keys(n[t]).length > 0 && o(e[t], n[t]);
4
+ function r(e = {}, n = {}) {
5
+ const i = ["__proto__", "constructor", "prototype"];
6
+ Object.keys(n).filter((t) => i.indexOf(t) < 0).forEach((t) => {
7
+ typeof e[t] > "u" ? e[t] = n[t] : o(n[t]) && o(e[t]) && Object.keys(n[t]).length > 0 && r(e[t], n[t]);
9
8
  });
10
9
  }
11
- const i = {
10
+ const u = {
12
11
  body: {},
13
12
  addEventListener() {
14
13
  },
@@ -65,10 +64,10 @@ const i = {
65
64
  };
66
65
  function s() {
67
66
  const e = typeof document < "u" ? document : {};
68
- return o(e, i), e;
67
+ return r(e, u), e;
69
68
  }
70
69
  const c = {
71
- document: i,
70
+ document: u,
72
71
  navigator: {
73
72
  userAgent: ""
74
73
  },
@@ -127,7 +126,7 @@ const c = {
127
126
  };
128
127
  function a() {
129
128
  const e = typeof window < "u" ? window : {};
130
- return o(e, c), e;
129
+ return r(e, c), e;
131
130
  }
132
131
  export {
133
132
  a,
@@ -1,46 +1,43 @@
1
- import { a, g as c } from "./ssr-window.esm.js";
2
- function u(t) {
3
- return t === void 0 && (t = ""), t.trim().split(" ").filter((e) => !!e.trim());
1
+ import { a as l, g as f } from "./ssr-window.esm.js";
2
+ function u(t = "") {
3
+ return t.trim().split(" ").filter((e) => !!e.trim());
4
4
  }
5
- function d(t, e) {
6
- return e === void 0 && (e = 0), setTimeout(t, e);
5
+ function d(t, e = 0) {
6
+ return setTimeout(t, e);
7
7
  }
8
8
  function g() {
9
9
  return Date.now();
10
10
  }
11
11
  function m(t) {
12
- const e = a();
12
+ const e = l();
13
13
  let n;
14
14
  return e.getComputedStyle && (n = e.getComputedStyle(t, null)), !n && t.currentStyle && (n = t.currentStyle), n || (n = t.style), n;
15
15
  }
16
- function y(t, e) {
17
- e === void 0 && (e = "x");
18
- const n = a();
19
- let r, i, l;
16
+ function y(t, e = "x") {
17
+ const n = l();
18
+ let r, i, s;
20
19
  const o = m(t);
21
- return n.WebKitCSSMatrix ? (i = o.transform || o.webkitTransform, i.split(",").length > 6 && (i = i.split(", ").map((s) => s.replace(",", ".")).join(", ")), l = new n.WebKitCSSMatrix(i === "none" ? "" : i)) : (l = o.MozTransform || o.OTransform || o.MsTransform || o.msTransform || o.transform || o.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), r = l.toString().split(",")), e === "x" && (n.WebKitCSSMatrix ? i = l.m41 : r.length === 16 ? i = parseFloat(r[12]) : i = parseFloat(r[4])), e === "y" && (n.WebKitCSSMatrix ? i = l.m42 : r.length === 16 ? i = parseFloat(r[13]) : i = parseFloat(r[5])), i || 0;
20
+ return n.WebKitCSSMatrix ? (i = o.transform || o.webkitTransform, i.split(",").length > 6 && (i = i.split(", ").map((a) => a.replace(",", ".")).join(", ")), s = new n.WebKitCSSMatrix(i === "none" ? "" : i)) : (s = o.MozTransform || o.OTransform || o.MsTransform || o.msTransform || o.transform || o.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), r = s.toString().split(",")), e === "x" && (n.WebKitCSSMatrix ? i = s.m41 : r.length === 16 ? i = parseFloat(r[12]) : i = parseFloat(r[4])), e === "y" && (n.WebKitCSSMatrix ? i = s.m42 : r.length === 16 ? i = parseFloat(r[13]) : i = parseFloat(r[5])), i || 0;
22
21
  }
23
- function S(t) {
22
+ function T(t) {
24
23
  return typeof t == "object" && t !== null && t.constructor && Object.prototype.toString.call(t).slice(8, -1) === "Object";
25
24
  }
26
- function h(t, e) {
27
- e === void 0 && (e = "");
28
- const n = a(), r = [...t.children];
25
+ function S(t, e = "") {
26
+ const n = l(), r = [...t.children];
29
27
  return n.HTMLSlotElement && t instanceof HTMLSlotElement && r.push(...t.assignedElements()), e ? r.filter((i) => i.matches(e)) : r;
30
28
  }
31
- function w(t, e) {
32
- e === void 0 && (e = []);
29
+ function h(t, e = []) {
33
30
  const n = document.createElement(t);
34
31
  return n.classList.add(...Array.isArray(e) ? e : u(e)), n;
35
32
  }
36
- function T(t) {
37
- const e = a(), n = c(), r = t.getBoundingClientRect(), i = n.body, l = t.clientTop || i.clientTop || 0, o = t.clientLeft || i.clientLeft || 0, s = t === e ? e.scrollY : t.scrollTop, f = t === e ? e.scrollX : t.scrollLeft;
33
+ function w(t) {
34
+ const e = l(), n = f(), r = t.getBoundingClientRect(), i = n.body, s = t.clientTop || i.clientTop || 0, o = t.clientLeft || i.clientLeft || 0, a = t === e ? e.scrollY : t.scrollTop, c = t === e ? e.scrollX : t.scrollLeft;
38
35
  return {
39
- top: r.top + s - l,
40
- left: r.left + f - o
36
+ top: r.top + a - s,
37
+ left: r.left + c - o
41
38
  };
42
39
  }
43
- function b(t) {
40
+ function L(t) {
44
41
  let e = t, n;
45
42
  if (e) {
46
43
  for (n = 0; (e = e.previousSibling) !== null; )
@@ -48,38 +45,44 @@ function b(t) {
48
45
  return n;
49
46
  }
50
47
  }
51
- function C(t, e) {
48
+ function M(t, e) {
52
49
  const n = [];
53
50
  let r = t.parentElement;
54
51
  for (; r; )
55
52
  e ? r.matches(e) && n.push(r) : n.push(r), r = r.parentElement;
56
53
  return n;
57
54
  }
58
- function E(t, e) {
55
+ function b(t, e) {
59
56
  function n(r) {
60
57
  r.target === t && (e.call(t, r), t.removeEventListener("transitionend", n));
61
58
  }
62
59
  e && t.addEventListener("transitionend", n);
63
60
  }
64
61
  function x(t, e, n) {
65
- const r = a();
62
+ const r = l();
66
63
  return t[e === "width" ? "offsetWidth" : "offsetHeight"] + parseFloat(r.getComputedStyle(t, null).getPropertyValue(e === "width" ? "margin-right" : "margin-top")) + parseFloat(r.getComputedStyle(t, null).getPropertyValue(e === "width" ? "margin-left" : "margin-bottom"));
67
64
  }
68
- function L(t) {
65
+ function C(t) {
69
66
  return (Array.isArray(t) ? t : [t]).filter((e) => !!e);
70
67
  }
68
+ function E(t, e = "") {
69
+ typeof trustedTypes < "u" ? t.innerHTML = trustedTypes.createPolicy("html", {
70
+ createHTML: (n) => n
71
+ }).createHTML(e) : t.innerHTML = e;
72
+ }
71
73
  export {
72
- C as a,
73
- T as b,
74
- w as c,
75
- g as d,
76
- h as e,
77
- x as f,
78
- b as h,
79
- u as i,
80
- y as j,
81
- E as k,
82
- S as l,
83
- L as m,
84
- d as n
74
+ h as c,
75
+ M as d,
76
+ S as e,
77
+ w as f,
78
+ g as h,
79
+ x as i,
80
+ L as j,
81
+ u as k,
82
+ y as l,
83
+ C as m,
84
+ d as n,
85
+ b as o,
86
+ T as p,
87
+ E as s
85
88
  };