@wikicasa-dev/components 2.0.54 → 2.1.0

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 (165) hide show
  1. package/dist/UIKit/{AccessibleSelect.vue.d.ts → AccessibleSelect.d.ts} +5 -10
  2. package/dist/UIKit/AccessibleSelect.js +4 -0
  3. package/dist/UIKit/Accordion/{BaseAccordion.vue.d.ts → BaseAccordion.d.ts} +9 -12
  4. package/dist/UIKit/Accordion/BaseAccordion.js +4 -0
  5. package/dist/UIKit/Accordion/{BaseAccordionBtn.vue.d.ts → BaseAccordionBtn.d.ts} +12 -17
  6. package/dist/UIKit/Accordion/BaseAccordionBtn.js +4 -0
  7. package/dist/UIKit/Accordion/{BaseAccordionContent.vue.d.ts → BaseAccordionContent.d.ts} +10 -14
  8. package/dist/UIKit/Accordion/BaseAccordionContent.js +4 -0
  9. package/dist/UIKit/Accordion/{BaseAccordionItem.vue.d.ts → BaseAccordionItem.d.ts} +20 -33
  10. package/dist/UIKit/Accordion/BaseAccordionItem.js +4 -0
  11. package/dist/UIKit/{BaseAlert.vue.d.ts → BaseAlert.d.ts} +7 -7
  12. package/dist/UIKit/BaseAlert.js +4 -0
  13. package/dist/UIKit/{BaseAutocomplete.vue.d.ts → BaseAutocomplete.d.ts} +4 -8
  14. package/dist/UIKit/BaseAutocomplete.js +4 -0
  15. package/dist/UIKit/{BaseBadge.vue.d.ts → BaseBadge.d.ts} +6 -6
  16. package/dist/UIKit/BaseBadge.js +4 -0
  17. package/dist/UIKit/{BaseBreadcrumb.vue.d.ts → BaseBreadcrumb.d.ts} +8 -10
  18. package/dist/UIKit/BaseBreadcrumb.js +4 -0
  19. package/dist/UIKit/{BaseButton.vue.d.ts → BaseButton.d.ts} +17 -30
  20. package/dist/UIKit/BaseButton.js +4 -0
  21. package/dist/UIKit/{BaseCard.vue.d.ts → BaseCard.d.ts} +12 -15
  22. package/dist/{BaseCard.js → UIKit/BaseCard.js} +4 -4
  23. package/dist/UIKit/{BaseComplexToggle.vue.d.ts → BaseComplexToggle.d.ts} +7 -6
  24. package/dist/{BaseComplexToggle.js → UIKit/BaseComplexToggle.js} +6 -6
  25. package/dist/UIKit/{BaseDropDown.vue.d.ts → BaseDropDown.d.ts} +9 -6
  26. package/dist/UIKit/BaseDropDown.js +4 -0
  27. package/dist/UIKit/{BaseFloatingLabel.vue.d.ts → BaseFloatingLabel.d.ts} +5 -11
  28. package/dist/{BaseFloatingLabel.js → UIKit/BaseFloatingLabel.js} +5 -5
  29. package/dist/UIKit/BaseIcon.d.ts +11 -0
  30. package/dist/{BaseIcon.js → UIKit/BaseIcon.js} +6 -6
  31. package/dist/UIKit/{BaseInput.vue.d.ts → BaseInput.d.ts} +10 -7
  32. package/dist/{BaseInput.js → UIKit/BaseInput.js} +12 -12
  33. package/dist/UIKit/{BaseModal.vue.d.ts → BaseModal.d.ts} +25 -44
  34. package/dist/UIKit/BaseModal.js +4 -0
  35. package/dist/UIKit/{BasePagination.vue.d.ts → BasePagination.d.ts} +5 -5
  36. package/dist/UIKit/BasePagination.js +4 -0
  37. package/dist/{BasePaper.js → UIKit/BasePaper.js} +4 -4
  38. package/dist/UIKit/BaseSelect/{SelectItem.vue.d.ts → SelectItem.d.ts} +10 -12
  39. package/dist/UIKit/BaseSelect/SelectItem.js +4 -0
  40. package/dist/UIKit/{BaseSlider.vue.d.ts → BaseSlider.d.ts} +10 -7
  41. package/dist/{BaseSlider.js → UIKit/BaseSlider.js} +4 -4
  42. package/dist/UIKit/{BaseSnackbar.vue.d.ts → BaseSnackbar.d.ts} +7 -14
  43. package/dist/{BaseSnackbar.js → UIKit/BaseSnackbar.js} +5 -5
  44. package/dist/UIKit/{BaseTextarea.vue.d.ts → BaseTextarea.d.ts} +7 -5
  45. package/dist/{BaseTextarea.js → UIKit/BaseTextarea.js} +7 -7
  46. package/dist/UIKit/{BaseToggle.vue.d.ts → BaseToggle.d.ts} +6 -5
  47. package/dist/{BaseToggle.js → UIKit/BaseToggle.js} +6 -6
  48. package/dist/UIKit/{BaseTooltip.vue.d.ts → BaseTooltip.d.ts} +13 -20
  49. package/dist/{BaseTooltip.js → UIKit/BaseTooltip.js} +5 -5
  50. package/dist/UIKit/{BaseUploadFile.vue.d.ts → BaseUploadFile.d.ts} +13 -19
  51. package/dist/UIKit/BaseUploadFile.js +4 -0
  52. package/dist/UIKit/Checkbox/{CheckboxBtn.vue.d.ts → CheckboxBtn.d.ts} +18 -31
  53. package/dist/{CheckboxBtn.js → UIKit/Checkbox/CheckboxBtn.js} +7 -7
  54. package/dist/UIKit/Checkbox/{CheckboxGroup.vue.d.ts → CheckboxGroup.d.ts} +23 -43
  55. package/dist/UIKit/Checkbox/CheckboxGroup.js +4 -0
  56. package/dist/UIKit/Radio/{RadioButton.vue.d.ts → RadioButton.d.ts} +7 -11
  57. package/dist/UIKit/Radio/RadioButton.js +4 -0
  58. package/dist/UIKit/Radio/{RadioGroup.vue.d.ts → RadioGroup.d.ts} +8 -7
  59. package/dist/UIKit/Radio/RadioGroup.js +4 -0
  60. package/dist/UIKit/ShimmerLoader/{BaseShimmerLoader.vue.d.ts → BaseShimmerLoader.d.ts} +6 -6
  61. package/dist/{BaseShimmerLoader.js → UIKit/ShimmerLoader/BaseShimmerLoader.js} +4 -4
  62. package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.d.ts +63 -0
  63. package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.js +4 -0
  64. package/dist/UIKit/Slider/{SimpleSlider.vue.d.ts → SimpleSlider.d.ts} +7 -5
  65. package/dist/{SimpleSlider.js → UIKit/Slider/SimpleSlider.js} +4 -4
  66. package/dist/UIKit/StaticSpinner.d.ts +6 -0
  67. package/dist/{StaticSpinner.js → UIKit/StaticSpinner.js} +4 -4
  68. package/dist/UIKit/Tab/{BaseTab.vue.d.ts → BaseTab.d.ts} +8 -10
  69. package/dist/UIKit/Tab/BaseTab.js +4 -0
  70. package/dist/UIKit/Tab/{BaseTabList.vue.d.ts → BaseTabList.d.ts} +5 -7
  71. package/dist/UIKit/Tab/BaseTabList.js +4 -0
  72. package/dist/UIKit/Tab/{BaseTabPanel.vue.d.ts → BaseTabPanel.d.ts} +9 -11
  73. package/dist/UIKit/Tab/BaseTabPanel.js +4 -0
  74. package/dist/UIKit/Tab/{BaseTabView.vue.d.ts → BaseTabView.d.ts} +7 -5
  75. package/dist/UIKit/Tab/BaseTabView.js +4 -0
  76. package/dist/UIKit/types.js +1 -0
  77. package/dist/assets/SwiperCarousel.css +1 -1
  78. package/dist/chart/DoughnutChart.d.ts +7 -0
  79. package/dist/chart/DoughnutChart.js +4 -0
  80. package/dist/chart/{LineChart.vue.d.ts → LineChart.d.ts} +4 -6
  81. package/dist/chart/LineChart.js +4 -0
  82. package/dist/chart/composables/useChartjsModules.d.ts +1 -1
  83. package/dist/{useChartjsModules.js → chart/composables/useChartjsModules.js} +5 -5
  84. package/dist/chunks/{AccessibleSelect.vue_vue_type_script_setup_true_lang.tcyWuhKm.js → AccessibleSelect.vue_vue_type_script_setup_true_lang.gRPd8LaO.js} +4 -4
  85. package/dist/chunks/{ArrowIcon.CCFMdsq6.js → ArrowIcon.Bq6Xr3uH.js} +1 -1
  86. package/dist/chunks/{BaseAccordion.vue_vue_type_script_setup_true_lang.R7qkuKlw.js → BaseAccordion.vue_vue_type_script_setup_true_lang.BJW28Y_i.js} +2 -2
  87. package/dist/chunks/{BaseAccordionBtn.vue_vue_type_script_setup_true_lang.DsDqk9iP.js → BaseAccordionBtn.vue_vue_type_script_setup_true_lang.APN3hif2.js} +4 -4
  88. package/dist/chunks/{BaseAccordionContent.vue_vue_type_script_setup_true_lang.C0aiiljz.js → BaseAccordionContent.vue_vue_type_script_setup_true_lang.Dn4qNu2R.js} +2 -2
  89. package/dist/chunks/{BaseAccordionItem.vue_vue_type_script_setup_true_lang.Caagpb9M.js → BaseAccordionItem.vue_vue_type_script_setup_true_lang.Dpjir3yq.js} +8 -8
  90. package/dist/chunks/{BaseAlert.vue_vue_type_style_index_0_lang.BtqP_iYL.js → BaseAlert.vue_vue_type_style_index_0_lang.DUWb9d9_.js} +2 -2
  91. package/dist/chunks/{BaseAutocomplete.vue_vue_type_script_setup_true_lang.B31Vyyn6.js → BaseAutocomplete.vue_vue_type_script_setup_true_lang.Ol7Hmb-E.js} +10 -10
  92. package/dist/chunks/{BaseBadge.vue_vue_type_style_index_0_lang.BOA1gBKu.js → BaseBadge.vue_vue_type_style_index_0_lang.D2PAy8_x.js} +2 -2
  93. package/dist/chunks/{BaseBreadcrumb.vue_vue_type_script_setup_true_lang.BAE3i6sW.js → BaseBreadcrumb.vue_vue_type_script_setup_true_lang.DlSPjwQe.js} +7 -7
  94. package/dist/chunks/{BaseButton.vue_vue_type_script_setup_true_lang.BWZPE2Gf.js → BaseButton.vue_vue_type_script_setup_true_lang.BPSr-Zxr.js} +5 -5
  95. package/dist/chunks/{BaseDropDown.vue_vue_type_script_setup_true_lang.CpbjEyOl.js → BaseDropDown.vue_vue_type_script_setup_true_lang.Cb0-JXG0.js} +9 -9
  96. package/dist/chunks/{BaseModal.vue_vue_type_style_index_0_lang.CeKWAwpg.js → BaseModal.vue_vue_type_style_index_0_lang.CCb032YN.js} +4 -4
  97. package/dist/chunks/{BasePagination.vue_vue_type_script_setup_true_lang.Cb6fEMc-.js → BasePagination.vue_vue_type_script_setup_true_lang.Cbo8eLhz.js} +20 -19
  98. package/dist/chunks/{BaseTabList.vue_vue_type_script_setup_true_lang.CohlLou1.js → BaseTabList.vue_vue_type_script_setup_true_lang.CHOGs5d-.js} +2 -2
  99. package/dist/chunks/{BaseTabPanel.vue_vue_type_script_setup_true_lang.DoZHWHt1.js → BaseTabPanel.vue_vue_type_script_setup_true_lang.CVJUssBq.js} +2 -2
  100. package/dist/chunks/{BaseTabView.vue_vue_type_script_setup_true_lang.DTPN9Rg-.js → BaseTabView.vue_vue_type_script_setup_true_lang.CUgJNst9.js} +3 -3
  101. package/dist/chunks/{BaseUploadFile.vue_vue_type_script_setup_true_lang.2elmVcZt.js → BaseUploadFile.vue_vue_type_script_setup_true_lang.CdwKhQoc.js} +2 -2
  102. package/dist/chunks/{CheckboxGroup.vue_vue_type_script_setup_true_lang.BC3hlJfx.js → CheckboxGroup.vue_vue_type_script_setup_true_lang.C9gKO-hI.js} +6 -6
  103. package/dist/chunks/{CloseIcon.DIkr4soH.js → CloseIcon.BZ4U3aiI.js} +1 -1
  104. package/dist/chunks/{DoughnutChart.vue_vue_type_script_setup_true_lang.C4QPaUsI.js → DoughnutChart.vue_vue_type_script_setup_true_lang.M0NEigw0.js} +4 -4
  105. package/dist/chunks/{IntersectionObservable.vue_vue_type_script_setup_true_lang.BBMxY-re.js → IntersectionObservable.vue_vue_type_script_setup_true_lang.DC17cx-h.js} +2 -2
  106. package/dist/chunks/{IntersectionObserver.vue_vue_type_script_setup_true_lang.CQHjzQc3.js → IntersectionObserver.vue_vue_type_script_setup_true_lang.BKewKDXG.js} +2 -2
  107. package/dist/chunks/{LineChart.vue_vue_type_script_setup_true_lang.iRZ_Q6nK.js → LineChart.vue_vue_type_script_setup_true_lang.ByrHxeZr.js} +4 -4
  108. package/dist/chunks/ObjectUtils.DwkJjVq1.js +10 -0
  109. package/dist/chunks/PharmacyIcon.DEQ8mOEJ.js +11 -0
  110. package/dist/chunks/{RadioButton.vue_vue_type_script_setup_true_lang.CiJAhkRj.js → RadioButton.vue_vue_type_script_setup_true_lang.DRQnjRA7.js} +2 -2
  111. package/dist/chunks/{RadioGroup.vue_vue_type_script_setup_true_lang.DdmSUyxZ.js → RadioGroup.vue_vue_type_script_setup_true_lang.CpsMf2PN.js} +2 -2
  112. package/dist/chunks/{SelectItem.vue_vue_type_script_setup_true_lang.GPFf7fjA.js → SelectItem.vue_vue_type_script_setup_true_lang.Drq_K7Vx.js} +2 -2
  113. package/dist/chunks/{ShimmerMultiLine.vue_vue_type_script_setup_true_lang.DuLXZx8X.js → ShimmerMultiLine.vue_vue_type_script_setup_true_lang.BoEMYLem.js} +4 -4
  114. package/dist/chunks/polyline.tNTK3v2u.js +129 -0
  115. package/dist/chunks/useKeyboardController.Cs_5GQTJ.js +41 -0
  116. package/dist/components/IntersectionObserver/{IntersectionObservable.vue.d.ts → IntersectionObservable.d.ts} +10 -9
  117. package/dist/components/IntersectionObserver/IntersectionObservable.js +4 -0
  118. package/dist/components/IntersectionObserver/{IntersectionObserver.vue.d.ts → IntersectionObserver.d.ts} +5 -2
  119. package/dist/components/IntersectionObserver/IntersectionObserver.js +4 -0
  120. package/dist/components/carousel/{SwiperCarousel.vue.d.ts → SwiperCarousel.d.ts} +6 -2
  121. package/dist/components/carousel/SwiperCarousel.js +1595 -0
  122. package/dist/components/carousel/{SwiperSlide.vue.d.ts → SwiperSlide.d.ts} +3 -2
  123. package/dist/{SwiperSlide.js → components/carousel/SwiperSlide.js} +3 -3
  124. package/dist/index.d.ts +42 -42
  125. package/dist/index.js +41 -41
  126. package/package.json +19 -6
  127. package/dist/AccessibleSelect.js +0 -4
  128. package/dist/BaseAccordion.js +0 -4
  129. package/dist/BaseAccordionBtn.js +0 -4
  130. package/dist/BaseAccordionContent.js +0 -4
  131. package/dist/BaseAccordionItem.js +0 -4
  132. package/dist/BaseAlert.js +0 -4
  133. package/dist/BaseAutocomplete.js +0 -4
  134. package/dist/BaseBadge.js +0 -4
  135. package/dist/BaseBreadcrumb.js +0 -4
  136. package/dist/BaseButton.js +0 -4
  137. package/dist/BaseDropDown.js +0 -4
  138. package/dist/BaseModal.js +0 -4
  139. package/dist/BasePagination.js +0 -4
  140. package/dist/BaseTab.js +0 -4
  141. package/dist/BaseTabList.js +0 -4
  142. package/dist/BaseTabPanel.js +0 -4
  143. package/dist/BaseTabView.js +0 -4
  144. package/dist/BaseUploadFile.js +0 -4
  145. package/dist/CheckboxGroup.js +0 -4
  146. package/dist/DoughnutChart.js +0 -4
  147. package/dist/IntersectionObservable.js +0 -4
  148. package/dist/IntersectionObserver.js +0 -4
  149. package/dist/LineChart.js +0 -4
  150. package/dist/RadioButton.js +0 -4
  151. package/dist/RadioGroup.js +0 -4
  152. package/dist/SelectItem.js +0 -4
  153. package/dist/ShimmerMultiLine.js +0 -4
  154. package/dist/SwiperCarousel.js +0 -1563
  155. package/dist/UIKit/BaseIcon.vue.d.ts +0 -17
  156. package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.vue.d.ts +0 -17
  157. package/dist/UIKit/StaticSpinner.vue.d.ts +0 -8
  158. package/dist/chart/DoughnutChart.vue.d.ts +0 -9
  159. package/dist/chunks/ObjectUtils.BOUbloeg.js +0 -10
  160. package/dist/chunks/PharmacyIcon.56ql_DYl.js +0 -19
  161. package/dist/chunks/types-B0dZ7OiV.D29wNgoj.js +0 -3209
  162. package/dist/chunks/useKeyboardController.CutKeclN.js +0 -41
  163. /package/dist/UIKit/{BasePaper.vue.d.ts → BasePaper.d.ts} +0 -0
  164. /package/dist/{useFloatingLabel.js → composables/useFloatingLabel.js} +0 -0
  165. /package/dist/{useValidator.js → composables/useValidator.js} +0 -0
@@ -1,1563 +0,0 @@
1
- import { defineComponent as Xe, reactive as Ye, ref as ge, useId as We, computed as j, onMounted as Be, watch as He, nextTick as Me, openBlock as N, createElementBlock as q, normalizeClass as V, createElementVNode as Z, renderSlot as Le, Fragment as he, renderList as $e, mergeProps as Pe, createCommentVNode as le, withModifiers as ve } from "vue";
2
- import { Swiper as ze } from "swiper";
3
- import "./chunks/types-B0dZ7OiV.D29wNgoj.js";
4
- import { i as Re } from "./chunks/ObjectUtils.BOUbloeg.js";
5
- import { _ as Fe } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
6
- import './assets/SwiperCarousel.css';function ke(r) {
7
- return r !== null && typeof r == "object" && "constructor" in r && r.constructor === Object;
8
- }
9
- function be(r, e) {
10
- r === void 0 && (r = {}), e === void 0 && (e = {}), Object.keys(e).forEach((y) => {
11
- typeof r[y] > "u" ? r[y] = e[y] : ke(e[y]) && ke(r[y]) && Object.keys(e[y]).length > 0 && be(r[y], e[y]);
12
- });
13
- }
14
- const Oe = {
15
- body: {},
16
- addEventListener() {
17
- },
18
- removeEventListener() {
19
- },
20
- activeElement: {
21
- blur() {
22
- },
23
- nodeName: ""
24
- },
25
- querySelector() {
26
- return null;
27
- },
28
- querySelectorAll() {
29
- return [];
30
- },
31
- getElementById() {
32
- return null;
33
- },
34
- createEvent() {
35
- return {
36
- initEvent() {
37
- }
38
- };
39
- },
40
- createElement() {
41
- return {
42
- children: [],
43
- childNodes: [],
44
- style: {},
45
- setAttribute() {
46
- },
47
- getElementsByTagName() {
48
- return [];
49
- }
50
- };
51
- },
52
- createElementNS() {
53
- return {};
54
- },
55
- importNode() {
56
- return null;
57
- },
58
- location: {
59
- hash: "",
60
- host: "",
61
- hostname: "",
62
- href: "",
63
- origin: "",
64
- pathname: "",
65
- protocol: "",
66
- search: ""
67
- }
68
- };
69
- function Q() {
70
- const r = typeof document < "u" ? document : {};
71
- return be(r, Oe), r;
72
- }
73
- const Ne = {
74
- document: Oe,
75
- navigator: {
76
- userAgent: ""
77
- },
78
- location: {
79
- hash: "",
80
- host: "",
81
- hostname: "",
82
- href: "",
83
- origin: "",
84
- pathname: "",
85
- protocol: "",
86
- search: ""
87
- },
88
- history: {
89
- replaceState() {
90
- },
91
- pushState() {
92
- },
93
- go() {
94
- },
95
- back() {
96
- }
97
- },
98
- CustomEvent: function() {
99
- return this;
100
- },
101
- addEventListener() {
102
- },
103
- removeEventListener() {
104
- },
105
- getComputedStyle() {
106
- return {
107
- getPropertyValue() {
108
- return "";
109
- }
110
- };
111
- },
112
- Image() {
113
- },
114
- Date() {
115
- },
116
- screen: {},
117
- setTimeout() {
118
- },
119
- clearTimeout() {
120
- },
121
- matchMedia() {
122
- return {};
123
- },
124
- requestAnimationFrame(r) {
125
- return typeof setTimeout > "u" ? (r(), null) : setTimeout(r, 0);
126
- },
127
- cancelAnimationFrame(r) {
128
- typeof setTimeout > "u" || clearTimeout(r);
129
- }
130
- };
131
- function ee() {
132
- const r = typeof window < "u" ? window : {};
133
- return be(r, Ne), r;
134
- }
135
- function qe(r) {
136
- return r === void 0 && (r = ""), r.trim().split(" ").filter((e) => !!e.trim());
137
- }
138
- function Ve(r, e) {
139
- return e === void 0 && (e = 0), setTimeout(r, e);
140
- }
141
- function ye() {
142
- return Date.now();
143
- }
144
- function je(r) {
145
- const e = ee();
146
- let y;
147
- return e.getComputedStyle && (y = e.getComputedStyle(r, null)), !y && r.currentStyle && (y = r.currentStyle), y || (y = r.style), y;
148
- }
149
- function De(r, e) {
150
- e === void 0 && (e = "x");
151
- const y = ee();
152
- let l, m, E;
153
- const T = je(r);
154
- return y.WebKitCSSMatrix ? (m = T.transform || T.webkitTransform, m.split(",").length > 6 && (m = m.split(", ").map(($) => $.replace(",", ".")).join(", ")), E = new y.WebKitCSSMatrix(m === "none" ? "" : m)) : (E = T.MozTransform || T.OTransform || T.MsTransform || T.msTransform || T.transform || T.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), l = E.toString().split(",")), e === "x" && (y.WebKitCSSMatrix ? m = E.m41 : l.length === 16 ? m = parseFloat(l[12]) : m = parseFloat(l[4])), e === "y" && (y.WebKitCSSMatrix ? m = E.m42 : l.length === 16 ? m = parseFloat(l[13]) : m = parseFloat(l[5])), m || 0;
155
- }
156
- function Ge(r) {
157
- return typeof r == "object" && r !== null && r.constructor && Object.prototype.toString.call(r).slice(8, -1) === "Object";
158
- }
159
- function ce(r, e) {
160
- e === void 0 && (e = "");
161
- const y = [...r.children];
162
- return r instanceof HTMLSlotElement && y.push(...r.assignedElements()), e ? y.filter((l) => l.matches(e)) : y;
163
- }
164
- function Ke(r, e) {
165
- e === void 0 && (e = []);
166
- const y = document.createElement(r);
167
- return y.classList.add(...Array.isArray(e) ? e : qe(e)), y;
168
- }
169
- function we(r) {
170
- const e = ee(), y = Q(), l = r.getBoundingClientRect(), m = y.body, E = r.clientTop || m.clientTop || 0, T = r.clientLeft || m.clientLeft || 0, $ = r === e ? e.scrollY : r.scrollTop, M = r === e ? e.scrollX : r.scrollLeft;
171
- return {
172
- top: l.top + $ - E,
173
- left: l.left + M - T
174
- };
175
- }
176
- function Ie(r) {
177
- let e = r, y;
178
- if (e) {
179
- for (y = 0; (e = e.previousSibling) !== null; )
180
- e.nodeType === 1 && (y += 1);
181
- return y;
182
- }
183
- }
184
- function _(r, e) {
185
- const y = [];
186
- let l = r.parentElement;
187
- for (; l; )
188
- e ? l.matches(e) && y.push(l) : y.push(l), l = l.parentElement;
189
- return y;
190
- }
191
- function ue(r, e) {
192
- function y(l) {
193
- l.target === r && (e.call(r, l), r.removeEventListener("transitionend", y));
194
- }
195
- e && r.addEventListener("transitionend", y);
196
- }
197
- function Ue(r, e, y) {
198
- const l = ee();
199
- return r[e === "width" ? "offsetWidth" : "offsetHeight"] + parseFloat(l.getComputedStyle(r, null).getPropertyValue(e === "width" ? "margin-right" : "margin-top")) + parseFloat(l.getComputedStyle(r, null).getPropertyValue(e === "width" ? "margin-left" : "margin-bottom"));
200
- }
201
- function Y(r) {
202
- return (Array.isArray(r) ? r : [r]).filter((e) => !!e);
203
- }
204
- function Ze(r) {
205
- let {
206
- swiper: e,
207
- extendParams: y,
208
- on: l,
209
- emit: m
210
- } = r;
211
- const E = Q(), T = ee();
212
- e.keyboard = {
213
- enabled: !1
214
- }, y({
215
- keyboard: {
216
- enabled: !1,
217
- onlyInViewport: !0,
218
- pageUpDown: !0
219
- }
220
- });
221
- function $(s) {
222
- if (!e.enabled) return;
223
- const {
224
- rtlTranslate: i
225
- } = e;
226
- let t = s;
227
- t.originalEvent && (t = t.originalEvent);
228
- const o = t.keyCode || t.charCode, c = e.params.keyboard.pageUpDown, u = c && o === 33, d = c && o === 34, f = o === 37, a = o === 39, n = o === 38, v = o === 40;
229
- if (!e.allowSlideNext && (e.isHorizontal() && a || e.isVertical() && v || d) || !e.allowSlidePrev && (e.isHorizontal() && f || e.isVertical() && n || u))
230
- return !1;
231
- if (!(t.shiftKey || t.altKey || t.ctrlKey || t.metaKey) && !(E.activeElement && E.activeElement.nodeName && (E.activeElement.nodeName.toLowerCase() === "input" || E.activeElement.nodeName.toLowerCase() === "textarea"))) {
232
- if (e.params.keyboard.onlyInViewport && (u || d || f || a || n || v)) {
233
- let S = !1;
234
- if (_(e.el, `.${e.params.slideClass}, swiper-slide`).length > 0 && _(e.el, `.${e.params.slideActiveClass}`).length === 0)
235
- return;
236
- const h = e.el, L = h.clientWidth, C = h.clientHeight, w = T.innerWidth, D = T.innerHeight, k = we(h);
237
- i && (k.left -= h.scrollLeft);
238
- const W = [[k.left, k.top], [k.left + L, k.top], [k.left, k.top + C], [k.left + L, k.top + C]];
239
- for (let P = 0; P < W.length; P += 1) {
240
- const z = W[P];
241
- if (z[0] >= 0 && z[0] <= w && z[1] >= 0 && z[1] <= D) {
242
- if (z[0] === 0 && z[1] === 0) continue;
243
- S = !0;
244
- }
245
- }
246
- if (!S) return;
247
- }
248
- e.isHorizontal() ? ((u || d || f || a) && (t.preventDefault ? t.preventDefault() : t.returnValue = !1), ((d || a) && !i || (u || f) && i) && e.slideNext(), ((u || f) && !i || (d || a) && i) && e.slidePrev()) : ((u || d || n || v) && (t.preventDefault ? t.preventDefault() : t.returnValue = !1), (d || v) && e.slideNext(), (u || n) && e.slidePrev()), m("keyPress", o);
249
- }
250
- }
251
- function M() {
252
- e.keyboard.enabled || (E.addEventListener("keydown", $), e.keyboard.enabled = !0);
253
- }
254
- function g() {
255
- e.keyboard.enabled && (E.removeEventListener("keydown", $), e.keyboard.enabled = !1);
256
- }
257
- l("init", () => {
258
- e.params.keyboard.enabled && M();
259
- }), l("destroy", () => {
260
- e.keyboard.enabled && g();
261
- }), Object.assign(e.keyboard, {
262
- enable: M,
263
- disable: g
264
- });
265
- }
266
- function Ae(r, e, y, l) {
267
- return r.params.createElements && Object.keys(l).forEach((m) => {
268
- if (!y[m] && y.auto === !0) {
269
- let E = ce(r.el, `.${l[m]}`)[0];
270
- E || (E = Ke("div", l[m]), E.className = l[m], r.el.append(E)), y[m] = E, e[m] = E;
271
- }
272
- }), y;
273
- }
274
- function Je(r) {
275
- let {
276
- swiper: e,
277
- extendParams: y,
278
- on: l,
279
- emit: m
280
- } = r;
281
- y({
282
- navigation: {
283
- nextEl: null,
284
- prevEl: null,
285
- hideOnClick: !1,
286
- disabledClass: "swiper-button-disabled",
287
- hiddenClass: "swiper-button-hidden",
288
- lockClass: "swiper-button-lock",
289
- navigationDisabledClass: "swiper-navigation-disabled"
290
- }
291
- }), e.navigation = {
292
- nextEl: null,
293
- prevEl: null
294
- };
295
- function E(c) {
296
- let u;
297
- return c && typeof c == "string" && e.isElement && (u = e.el.querySelector(c) || e.hostEl.querySelector(c), u) ? u : (c && (typeof c == "string" && (u = [...document.querySelectorAll(c)]), e.params.uniqueNavElements && typeof c == "string" && u && u.length > 1 && e.el.querySelectorAll(c).length === 1 ? u = e.el.querySelector(c) : u && u.length === 1 && (u = u[0])), c && !u ? c : u);
298
- }
299
- function T(c, u) {
300
- const d = e.params.navigation;
301
- c = Y(c), c.forEach((f) => {
302
- f && (f.classList[u ? "add" : "remove"](...d.disabledClass.split(" ")), f.tagName === "BUTTON" && (f.disabled = u), e.params.watchOverflow && e.enabled && f.classList[e.isLocked ? "add" : "remove"](d.lockClass));
303
- });
304
- }
305
- function $() {
306
- const {
307
- nextEl: c,
308
- prevEl: u
309
- } = e.navigation;
310
- if (e.params.loop) {
311
- T(u, !1), T(c, !1);
312
- return;
313
- }
314
- T(u, e.isBeginning && !e.params.rewind), T(c, e.isEnd && !e.params.rewind);
315
- }
316
- function M(c) {
317
- c.preventDefault(), !(e.isBeginning && !e.params.loop && !e.params.rewind) && (e.slidePrev(), m("navigationPrev"));
318
- }
319
- function g(c) {
320
- c.preventDefault(), !(e.isEnd && !e.params.loop && !e.params.rewind) && (e.slideNext(), m("navigationNext"));
321
- }
322
- function s() {
323
- const c = e.params.navigation;
324
- if (e.params.navigation = Ae(e, e.originalParams.navigation, e.params.navigation, {
325
- nextEl: "swiper-button-next",
326
- prevEl: "swiper-button-prev"
327
- }), !(c.nextEl || c.prevEl)) return;
328
- let u = E(c.nextEl), d = E(c.prevEl);
329
- Object.assign(e.navigation, {
330
- nextEl: u,
331
- prevEl: d
332
- }), u = Y(u), d = Y(d);
333
- const f = (a, n) => {
334
- a && a.addEventListener("click", n === "next" ? g : M), !e.enabled && a && a.classList.add(...c.lockClass.split(" "));
335
- };
336
- u.forEach((a) => f(a, "next")), d.forEach((a) => f(a, "prev"));
337
- }
338
- function i() {
339
- let {
340
- nextEl: c,
341
- prevEl: u
342
- } = e.navigation;
343
- c = Y(c), u = Y(u);
344
- const d = (f, a) => {
345
- f.removeEventListener("click", a === "next" ? g : M), f.classList.remove(...e.params.navigation.disabledClass.split(" "));
346
- };
347
- c.forEach((f) => d(f, "next")), u.forEach((f) => d(f, "prev"));
348
- }
349
- l("init", () => {
350
- e.params.navigation.enabled === !1 ? o() : (s(), $());
351
- }), l("toEdge fromEdge lock unlock", () => {
352
- $();
353
- }), l("destroy", () => {
354
- i();
355
- }), l("enable disable", () => {
356
- let {
357
- nextEl: c,
358
- prevEl: u
359
- } = e.navigation;
360
- if (c = Y(c), u = Y(u), e.enabled) {
361
- $();
362
- return;
363
- }
364
- [...c, ...u].filter((d) => !!d).forEach((d) => d.classList.add(e.params.navigation.lockClass));
365
- }), l("click", (c, u) => {
366
- let {
367
- nextEl: d,
368
- prevEl: f
369
- } = e.navigation;
370
- d = Y(d), f = Y(f);
371
- const a = u.target;
372
- let n = f.includes(a) || d.includes(a);
373
- if (e.isElement && !n) {
374
- const v = u.path || u.composedPath && u.composedPath();
375
- v && (n = v.find((S) => d.includes(S) || f.includes(S)));
376
- }
377
- if (e.params.navigation.hideOnClick && !n) {
378
- if (e.pagination && e.params.pagination && e.params.pagination.clickable && (e.pagination.el === a || e.pagination.el.contains(a))) return;
379
- let v;
380
- d.length ? v = d[0].classList.contains(e.params.navigation.hiddenClass) : f.length && (v = f[0].classList.contains(e.params.navigation.hiddenClass)), m(v === !0 ? "navigationShow" : "navigationHide"), [...d, ...f].filter((S) => !!S).forEach((S) => S.classList.toggle(e.params.navigation.hiddenClass));
381
- }
382
- });
383
- const t = () => {
384
- e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")), s(), $();
385
- }, o = () => {
386
- e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")), i();
387
- };
388
- Object.assign(e.navigation, {
389
- enable: t,
390
- disable: o,
391
- update: $,
392
- init: s,
393
- destroy: i
394
- });
395
- }
396
- function ae(r) {
397
- return r === void 0 && (r = ""), `.${r.trim().replace(/([\.:!+\/])/g, "\\$1").replace(/ /g, ".")}`;
398
- }
399
- function Qe(r) {
400
- let {
401
- swiper: e,
402
- extendParams: y,
403
- on: l,
404
- emit: m
405
- } = r;
406
- const E = "swiper-pagination";
407
- y({
408
- pagination: {
409
- el: null,
410
- bulletElement: "span",
411
- clickable: !1,
412
- hideOnClick: !1,
413
- renderBullet: null,
414
- renderProgressbar: null,
415
- renderFraction: null,
416
- renderCustom: null,
417
- progressbarOpposite: !1,
418
- type: "bullets",
419
- // 'bullets' or 'progressbar' or 'fraction' or 'custom'
420
- dynamicBullets: !1,
421
- dynamicMainBullets: 1,
422
- formatFractionCurrent: (a) => a,
423
- formatFractionTotal: (a) => a,
424
- bulletClass: `${E}-bullet`,
425
- bulletActiveClass: `${E}-bullet-active`,
426
- modifierClass: `${E}-`,
427
- currentClass: `${E}-current`,
428
- totalClass: `${E}-total`,
429
- hiddenClass: `${E}-hidden`,
430
- progressbarFillClass: `${E}-progressbar-fill`,
431
- progressbarOppositeClass: `${E}-progressbar-opposite`,
432
- clickableClass: `${E}-clickable`,
433
- lockClass: `${E}-lock`,
434
- horizontalClass: `${E}-horizontal`,
435
- verticalClass: `${E}-vertical`,
436
- paginationDisabledClass: `${E}-disabled`
437
- }
438
- }), e.pagination = {
439
- el: null,
440
- bullets: []
441
- };
442
- let T, $ = 0;
443
- function M() {
444
- return !e.params.pagination.el || !e.pagination.el || Array.isArray(e.pagination.el) && e.pagination.el.length === 0;
445
- }
446
- function g(a, n) {
447
- const {
448
- bulletActiveClass: v
449
- } = e.params.pagination;
450
- a && (a = a[`${n === "prev" ? "previous" : "next"}ElementSibling`], a && (a.classList.add(`${v}-${n}`), a = a[`${n === "prev" ? "previous" : "next"}ElementSibling`], a && a.classList.add(`${v}-${n}-${n}`)));
451
- }
452
- function s(a, n, v) {
453
- if (a = a % v, n = n % v, n === a + 1)
454
- return "next";
455
- if (n === a - 1)
456
- return "previous";
457
- }
458
- function i(a) {
459
- const n = a.target.closest(ae(e.params.pagination.bulletClass));
460
- if (!n)
461
- return;
462
- a.preventDefault();
463
- const v = Ie(n) * e.params.slidesPerGroup;
464
- if (e.params.loop) {
465
- if (e.realIndex === v) return;
466
- const S = s(e.realIndex, v, e.slides.length);
467
- S === "next" ? e.slideNext() : S === "previous" ? e.slidePrev() : e.slideToLoop(v);
468
- } else
469
- e.slideTo(v);
470
- }
471
- function t() {
472
- const a = e.rtl, n = e.params.pagination;
473
- if (M()) return;
474
- let v = e.pagination.el;
475
- v = Y(v);
476
- let S, h;
477
- const L = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : e.slides.length, C = e.params.loop ? Math.ceil(L / e.params.slidesPerGroup) : e.snapGrid.length;
478
- if (e.params.loop ? (h = e.previousRealIndex || 0, S = e.params.slidesPerGroup > 1 ? Math.floor(e.realIndex / e.params.slidesPerGroup) : e.realIndex) : typeof e.snapIndex < "u" ? (S = e.snapIndex, h = e.previousSnapIndex) : (h = e.previousIndex || 0, S = e.activeIndex || 0), n.type === "bullets" && e.pagination.bullets && e.pagination.bullets.length > 0) {
479
- const w = e.pagination.bullets;
480
- let D, k, W;
481
- if (n.dynamicBullets && (T = Ue(w[0], e.isHorizontal() ? "width" : "height"), v.forEach((P) => {
482
- P.style[e.isHorizontal() ? "width" : "height"] = `${T * (n.dynamicMainBullets + 4)}px`;
483
- }), n.dynamicMainBullets > 1 && h !== void 0 && ($ += S - (h || 0), $ > n.dynamicMainBullets - 1 ? $ = n.dynamicMainBullets - 1 : $ < 0 && ($ = 0)), D = Math.max(S - $, 0), k = D + (Math.min(w.length, n.dynamicMainBullets) - 1), W = (k + D) / 2), w.forEach((P) => {
484
- const z = [...["", "-next", "-next-next", "-prev", "-prev-prev", "-main"].map((O) => `${n.bulletActiveClass}${O}`)].map((O) => typeof O == "string" && O.includes(" ") ? O.split(" ") : O).flat();
485
- P.classList.remove(...z);
486
- }), v.length > 1)
487
- w.forEach((P) => {
488
- const z = Ie(P);
489
- z === S ? P.classList.add(...n.bulletActiveClass.split(" ")) : e.isElement && P.setAttribute("part", "bullet"), n.dynamicBullets && (z >= D && z <= k && P.classList.add(...`${n.bulletActiveClass}-main`.split(" ")), z === D && g(P, "prev"), z === k && g(P, "next"));
490
- });
491
- else {
492
- const P = w[S];
493
- if (P && P.classList.add(...n.bulletActiveClass.split(" ")), e.isElement && w.forEach((z, O) => {
494
- z.setAttribute("part", O === S ? "bullet-active" : "bullet");
495
- }), n.dynamicBullets) {
496
- const z = w[D], O = w[k];
497
- for (let X = D; X <= k; X += 1)
498
- w[X] && w[X].classList.add(...`${n.bulletActiveClass}-main`.split(" "));
499
- g(z, "prev"), g(O, "next");
500
- }
501
- }
502
- if (n.dynamicBullets) {
503
- const P = Math.min(w.length, n.dynamicMainBullets + 4), z = (T * P - T) / 2 - W * T, O = a ? "right" : "left";
504
- w.forEach((X) => {
505
- X.style[e.isHorizontal() ? O : "top"] = `${z}px`;
506
- });
507
- }
508
- }
509
- v.forEach((w, D) => {
510
- if (n.type === "fraction" && (w.querySelectorAll(ae(n.currentClass)).forEach((k) => {
511
- k.textContent = n.formatFractionCurrent(S + 1);
512
- }), w.querySelectorAll(ae(n.totalClass)).forEach((k) => {
513
- k.textContent = n.formatFractionTotal(C);
514
- })), n.type === "progressbar") {
515
- let k;
516
- n.progressbarOpposite ? k = e.isHorizontal() ? "vertical" : "horizontal" : k = e.isHorizontal() ? "horizontal" : "vertical";
517
- const W = (S + 1) / C;
518
- let P = 1, z = 1;
519
- k === "horizontal" ? P = W : z = W, w.querySelectorAll(ae(n.progressbarFillClass)).forEach((O) => {
520
- O.style.transform = `translate3d(0,0,0) scaleX(${P}) scaleY(${z})`, O.style.transitionDuration = `${e.params.speed}ms`;
521
- });
522
- }
523
- n.type === "custom" && n.renderCustom ? (w.innerHTML = n.renderCustom(e, S + 1, C), D === 0 && m("paginationRender", w)) : (D === 0 && m("paginationRender", w), m("paginationUpdate", w)), e.params.watchOverflow && e.enabled && w.classList[e.isLocked ? "add" : "remove"](n.lockClass);
524
- });
525
- }
526
- function o() {
527
- const a = e.params.pagination;
528
- if (M()) return;
529
- const n = 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;
530
- let v = e.pagination.el;
531
- v = Y(v);
532
- let S = "";
533
- if (a.type === "bullets") {
534
- let h = e.params.loop ? Math.ceil(n / e.params.slidesPerGroup) : e.snapGrid.length;
535
- e.params.freeMode && e.params.freeMode.enabled && h > n && (h = n);
536
- for (let L = 0; L < h; L += 1)
537
- a.renderBullet ? S += a.renderBullet.call(e, L, a.bulletClass) : S += `<${a.bulletElement} ${e.isElement ? 'part="bullet"' : ""} class="${a.bulletClass}"></${a.bulletElement}>`;
538
- }
539
- a.type === "fraction" && (a.renderFraction ? S = a.renderFraction.call(e, a.currentClass, a.totalClass) : S = `<span class="${a.currentClass}"></span> / <span class="${a.totalClass}"></span>`), a.type === "progressbar" && (a.renderProgressbar ? S = a.renderProgressbar.call(e, a.progressbarFillClass) : S = `<span class="${a.progressbarFillClass}"></span>`), e.pagination.bullets = [], v.forEach((h) => {
540
- a.type !== "custom" && (h.innerHTML = S || ""), a.type === "bullets" && e.pagination.bullets.push(...h.querySelectorAll(ae(a.bulletClass)));
541
- }), a.type !== "custom" && m("paginationRender", v[0]);
542
- }
543
- function c() {
544
- e.params.pagination = Ae(e, e.originalParams.pagination, e.params.pagination, {
545
- el: "swiper-pagination"
546
- });
547
- const a = e.params.pagination;
548
- if (!a.el) return;
549
- let n;
550
- typeof a.el == "string" && e.isElement && (n = e.el.querySelector(a.el)), !n && typeof a.el == "string" && (n = [...document.querySelectorAll(a.el)]), n || (n = a.el), !(!n || n.length === 0) && (e.params.uniqueNavElements && typeof a.el == "string" && Array.isArray(n) && n.length > 1 && (n = [...e.el.querySelectorAll(a.el)], n.length > 1 && (n = n.filter((v) => _(v, ".swiper")[0] === e.el)[0])), Array.isArray(n) && n.length === 1 && (n = n[0]), Object.assign(e.pagination, {
551
- el: n
552
- }), n = Y(n), n.forEach((v) => {
553
- a.type === "bullets" && a.clickable && v.classList.add(...(a.clickableClass || "").split(" ")), v.classList.add(a.modifierClass + a.type), v.classList.add(e.isHorizontal() ? a.horizontalClass : a.verticalClass), a.type === "bullets" && a.dynamicBullets && (v.classList.add(`${a.modifierClass}${a.type}-dynamic`), $ = 0, a.dynamicMainBullets < 1 && (a.dynamicMainBullets = 1)), a.type === "progressbar" && a.progressbarOpposite && v.classList.add(a.progressbarOppositeClass), a.clickable && v.addEventListener("click", i), e.enabled || v.classList.add(a.lockClass);
554
- }));
555
- }
556
- function u() {
557
- const a = e.params.pagination;
558
- if (M()) return;
559
- let n = e.pagination.el;
560
- n && (n = Y(n), n.forEach((v) => {
561
- v.classList.remove(a.hiddenClass), v.classList.remove(a.modifierClass + a.type), v.classList.remove(e.isHorizontal() ? a.horizontalClass : a.verticalClass), a.clickable && (v.classList.remove(...(a.clickableClass || "").split(" ")), v.removeEventListener("click", i));
562
- })), e.pagination.bullets && e.pagination.bullets.forEach((v) => v.classList.remove(...a.bulletActiveClass.split(" ")));
563
- }
564
- l("changeDirection", () => {
565
- if (!e.pagination || !e.pagination.el) return;
566
- const a = e.params.pagination;
567
- let {
568
- el: n
569
- } = e.pagination;
570
- n = Y(n), n.forEach((v) => {
571
- v.classList.remove(a.horizontalClass, a.verticalClass), v.classList.add(e.isHorizontal() ? a.horizontalClass : a.verticalClass);
572
- });
573
- }), l("init", () => {
574
- e.params.pagination.enabled === !1 ? f() : (c(), o(), t());
575
- }), l("activeIndexChange", () => {
576
- typeof e.snapIndex > "u" && t();
577
- }), l("snapIndexChange", () => {
578
- t();
579
- }), l("snapGridLengthChange", () => {
580
- o(), t();
581
- }), l("destroy", () => {
582
- u();
583
- }), l("enable disable", () => {
584
- let {
585
- el: a
586
- } = e.pagination;
587
- a && (a = Y(a), a.forEach((n) => n.classList[e.enabled ? "remove" : "add"](e.params.pagination.lockClass)));
588
- }), l("lock unlock", () => {
589
- t();
590
- }), l("click", (a, n) => {
591
- const v = n.target, S = Y(e.pagination.el);
592
- if (e.params.pagination.el && e.params.pagination.hideOnClick && S && S.length > 0 && !v.classList.contains(e.params.pagination.bulletClass)) {
593
- if (e.navigation && (e.navigation.nextEl && v === e.navigation.nextEl || e.navigation.prevEl && v === e.navigation.prevEl)) return;
594
- const h = S[0].classList.contains(e.params.pagination.hiddenClass);
595
- m(h === !0 ? "paginationShow" : "paginationHide"), S.forEach((L) => L.classList.toggle(e.params.pagination.hiddenClass));
596
- }
597
- });
598
- const d = () => {
599
- e.el.classList.remove(e.params.pagination.paginationDisabledClass);
600
- let {
601
- el: a
602
- } = e.pagination;
603
- a && (a = Y(a), a.forEach((n) => n.classList.remove(e.params.pagination.paginationDisabledClass))), c(), o(), t();
604
- }, f = () => {
605
- e.el.classList.add(e.params.pagination.paginationDisabledClass);
606
- let {
607
- el: a
608
- } = e.pagination;
609
- a && (a = Y(a), a.forEach((n) => n.classList.add(e.params.pagination.paginationDisabledClass))), u();
610
- };
611
- Object.assign(e.pagination, {
612
- enable: d,
613
- disable: f,
614
- render: o,
615
- update: t,
616
- init: c,
617
- destroy: u
618
- });
619
- }
620
- function _e(r) {
621
- let {
622
- swiper: e,
623
- extendParams: y,
624
- on: l,
625
- emit: m
626
- } = r;
627
- const E = ee();
628
- y({
629
- zoom: {
630
- enabled: !1,
631
- limitToOriginalSize: !1,
632
- maxRatio: 3,
633
- minRatio: 1,
634
- toggle: !0,
635
- containerClass: "swiper-zoom-container",
636
- zoomedSlideClass: "swiper-slide-zoomed"
637
- }
638
- }), e.zoom = {
639
- enabled: !1
640
- };
641
- let T = 1, $ = !1, M, g;
642
- const s = [], i = {
643
- originX: 0,
644
- originY: 0,
645
- slideEl: void 0,
646
- slideWidth: void 0,
647
- slideHeight: void 0,
648
- imageEl: void 0,
649
- imageWrapEl: void 0,
650
- maxRatio: 3
651
- }, t = {
652
- isTouched: void 0,
653
- isMoved: void 0,
654
- currentX: void 0,
655
- currentY: void 0,
656
- minX: void 0,
657
- minY: void 0,
658
- maxX: void 0,
659
- maxY: void 0,
660
- width: void 0,
661
- height: void 0,
662
- startX: void 0,
663
- startY: void 0,
664
- touchesStart: {},
665
- touchesCurrent: {}
666
- }, o = {
667
- x: void 0,
668
- y: void 0,
669
- prevPositionX: void 0,
670
- prevPositionY: void 0,
671
- prevTime: void 0
672
- };
673
- let c = 1;
674
- Object.defineProperty(e.zoom, "scale", {
675
- get() {
676
- return c;
677
- },
678
- set(p) {
679
- if (c !== p) {
680
- const b = i.imageEl, x = i.slideEl;
681
- m("zoomChange", p, b, x);
682
- }
683
- c = p;
684
- }
685
- });
686
- function u() {
687
- if (s.length < 2) return 1;
688
- const p = s[0].pageX, b = s[0].pageY, x = s[1].pageX, A = s[1].pageY;
689
- return Math.sqrt((x - p) ** 2 + (A - b) ** 2);
690
- }
691
- function d() {
692
- const p = e.params.zoom, b = i.imageWrapEl.getAttribute("data-swiper-zoom") || p.maxRatio;
693
- if (p.limitToOriginalSize && i.imageEl && i.imageEl.naturalWidth) {
694
- const x = i.imageEl.naturalWidth / i.imageEl.offsetWidth;
695
- return Math.min(x, b);
696
- }
697
- return b;
698
- }
699
- function f() {
700
- if (s.length < 2) return {
701
- x: null,
702
- y: null
703
- };
704
- const p = i.imageEl.getBoundingClientRect();
705
- return [(s[0].pageX + (s[1].pageX - s[0].pageX) / 2 - p.x - E.scrollX) / T, (s[0].pageY + (s[1].pageY - s[0].pageY) / 2 - p.y - E.scrollY) / T];
706
- }
707
- function a() {
708
- return e.isElement ? "swiper-slide" : `.${e.params.slideClass}`;
709
- }
710
- function n(p) {
711
- const b = a();
712
- return !!(p.target.matches(b) || e.slides.filter((x) => x.contains(p.target)).length > 0);
713
- }
714
- function v(p) {
715
- const b = `.${e.params.zoom.containerClass}`;
716
- return !!(p.target.matches(b) || [...e.hostEl.querySelectorAll(b)].filter((x) => x.contains(p.target)).length > 0);
717
- }
718
- function S(p) {
719
- if (p.pointerType === "mouse" && s.splice(0, s.length), !n(p)) return;
720
- const b = e.params.zoom;
721
- if (M = !1, g = !1, s.push(p), !(s.length < 2)) {
722
- if (M = !0, i.scaleStart = u(), !i.slideEl) {
723
- i.slideEl = p.target.closest(`.${e.params.slideClass}, swiper-slide`), i.slideEl || (i.slideEl = e.slides[e.activeIndex]);
724
- let x = i.slideEl.querySelector(`.${b.containerClass}`);
725
- if (x && (x = x.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), i.imageEl = x, x ? i.imageWrapEl = _(i.imageEl, `.${b.containerClass}`)[0] : i.imageWrapEl = void 0, !i.imageWrapEl) {
726
- i.imageEl = void 0;
727
- return;
728
- }
729
- i.maxRatio = d();
730
- }
731
- if (i.imageEl) {
732
- const [x, A] = f();
733
- i.originX = x, i.originY = A, i.imageEl.style.transitionDuration = "0ms";
734
- }
735
- $ = !0;
736
- }
737
- }
738
- function h(p) {
739
- if (!n(p)) return;
740
- const b = e.params.zoom, x = e.zoom, A = s.findIndex((H) => H.pointerId === p.pointerId);
741
- A >= 0 && (s[A] = p), !(s.length < 2) && (g = !0, i.scaleMove = u(), i.imageEl && (x.scale = i.scaleMove / i.scaleStart * T, x.scale > i.maxRatio && (x.scale = i.maxRatio - 1 + (x.scale - i.maxRatio + 1) ** 0.5), x.scale < b.minRatio && (x.scale = b.minRatio + 1 - (b.minRatio - x.scale + 1) ** 0.5), i.imageEl.style.transform = `translate3d(0,0,0) scale(${x.scale})`));
742
- }
743
- function L(p) {
744
- if (!n(p) || p.pointerType === "mouse" && p.type === "pointerout") return;
745
- const b = e.params.zoom, x = e.zoom, A = s.findIndex((H) => H.pointerId === p.pointerId);
746
- A >= 0 && s.splice(A, 1), !(!M || !g) && (M = !1, g = !1, i.imageEl && (x.scale = Math.max(Math.min(x.scale, i.maxRatio), b.minRatio), i.imageEl.style.transitionDuration = `${e.params.speed}ms`, i.imageEl.style.transform = `translate3d(0,0,0) scale(${x.scale})`, T = x.scale, $ = !1, x.scale > 1 && i.slideEl ? i.slideEl.classList.add(`${b.zoomedSlideClass}`) : x.scale <= 1 && i.slideEl && i.slideEl.classList.remove(`${b.zoomedSlideClass}`), x.scale === 1 && (i.originX = 0, i.originY = 0, i.slideEl = void 0)));
747
- }
748
- let C;
749
- function w() {
750
- e.touchEventsData.preventTouchMoveFromPointerMove = !1;
751
- }
752
- function D() {
753
- clearTimeout(C), e.touchEventsData.preventTouchMoveFromPointerMove = !0, C = setTimeout(() => {
754
- e.destroyed || w();
755
- });
756
- }
757
- function k(p) {
758
- const b = e.device;
759
- if (!i.imageEl || t.isTouched) return;
760
- b.android && p.cancelable && p.preventDefault(), t.isTouched = !0;
761
- const x = s.length > 0 ? s[0] : p;
762
- t.touchesStart.x = x.pageX, t.touchesStart.y = x.pageY;
763
- }
764
- function W(p) {
765
- if (!n(p) || !v(p))
766
- return;
767
- const b = e.zoom;
768
- if (!i.imageEl || !t.isTouched || !i.slideEl)
769
- return;
770
- t.isMoved || (t.width = i.imageEl.offsetWidth || i.imageEl.clientWidth, t.height = i.imageEl.offsetHeight || i.imageEl.clientHeight, t.startX = De(i.imageWrapEl, "x") || 0, t.startY = De(i.imageWrapEl, "y") || 0, i.slideWidth = i.slideEl.offsetWidth, i.slideHeight = i.slideEl.offsetHeight, i.imageWrapEl.style.transitionDuration = "0ms");
771
- const x = t.width * b.scale, A = t.height * b.scale;
772
- if (t.minX = Math.min(i.slideWidth / 2 - x / 2, 0), t.maxX = -t.minX, t.minY = Math.min(i.slideHeight / 2 - A / 2, 0), t.maxY = -t.minY, t.touchesCurrent.x = s.length > 0 ? s[0].pageX : p.pageX, t.touchesCurrent.y = s.length > 0 ? s[0].pageY : p.pageY, Math.max(Math.abs(t.touchesCurrent.x - t.touchesStart.x), Math.abs(t.touchesCurrent.y - t.touchesStart.y)) > 5 && (e.allowClick = !1), !t.isMoved && !$) {
773
- if (e.isHorizontal() && (Math.floor(t.minX) === Math.floor(t.startX) && t.touchesCurrent.x < t.touchesStart.x || Math.floor(t.maxX) === Math.floor(t.startX) && t.touchesCurrent.x > t.touchesStart.x)) {
774
- t.isTouched = !1, w();
775
- return;
776
- }
777
- if (!e.isHorizontal() && (Math.floor(t.minY) === Math.floor(t.startY) && t.touchesCurrent.y < t.touchesStart.y || Math.floor(t.maxY) === Math.floor(t.startY) && t.touchesCurrent.y > t.touchesStart.y)) {
778
- t.isTouched = !1, w();
779
- return;
780
- }
781
- }
782
- p.cancelable && p.preventDefault(), p.stopPropagation(), D(), t.isMoved = !0;
783
- const G = (b.scale - T) / (i.maxRatio - e.params.zoom.minRatio), {
784
- originX: K,
785
- originY: J
786
- } = i;
787
- t.currentX = t.touchesCurrent.x - t.touchesStart.x + t.startX + G * (t.width - K * 2), t.currentY = t.touchesCurrent.y - t.touchesStart.y + t.startY + G * (t.height - J * 2), t.currentX < t.minX && (t.currentX = t.minX + 1 - (t.minX - t.currentX + 1) ** 0.8), t.currentX > t.maxX && (t.currentX = t.maxX - 1 + (t.currentX - t.maxX + 1) ** 0.8), t.currentY < t.minY && (t.currentY = t.minY + 1 - (t.minY - t.currentY + 1) ** 0.8), t.currentY > t.maxY && (t.currentY = t.maxY - 1 + (t.currentY - t.maxY + 1) ** 0.8), o.prevPositionX || (o.prevPositionX = t.touchesCurrent.x), o.prevPositionY || (o.prevPositionY = t.touchesCurrent.y), o.prevTime || (o.prevTime = Date.now()), o.x = (t.touchesCurrent.x - o.prevPositionX) / (Date.now() - o.prevTime) / 2, o.y = (t.touchesCurrent.y - o.prevPositionY) / (Date.now() - o.prevTime) / 2, Math.abs(t.touchesCurrent.x - o.prevPositionX) < 2 && (o.x = 0), Math.abs(t.touchesCurrent.y - o.prevPositionY) < 2 && (o.y = 0), o.prevPositionX = t.touchesCurrent.x, o.prevPositionY = t.touchesCurrent.y, o.prevTime = Date.now(), i.imageWrapEl.style.transform = `translate3d(${t.currentX}px, ${t.currentY}px,0)`;
788
- }
789
- function P() {
790
- const p = e.zoom;
791
- if (!i.imageEl) return;
792
- if (!t.isTouched || !t.isMoved) {
793
- t.isTouched = !1, t.isMoved = !1;
794
- return;
795
- }
796
- t.isTouched = !1, t.isMoved = !1;
797
- let b = 300, x = 300;
798
- const A = o.x * b, H = t.currentX + A, G = o.y * x, K = t.currentY + G;
799
- o.x !== 0 && (b = Math.abs((H - t.currentX) / o.x)), o.y !== 0 && (x = Math.abs((K - t.currentY) / o.y));
800
- const J = Math.max(b, x);
801
- t.currentX = H, t.currentY = K;
802
- const se = t.width * p.scale, F = t.height * p.scale;
803
- t.minX = Math.min(i.slideWidth / 2 - se / 2, 0), t.maxX = -t.minX, t.minY = Math.min(i.slideHeight / 2 - F / 2, 0), t.maxY = -t.minY, t.currentX = Math.max(Math.min(t.currentX, t.maxX), t.minX), t.currentY = Math.max(Math.min(t.currentY, t.maxY), t.minY), i.imageWrapEl.style.transitionDuration = `${J}ms`, i.imageWrapEl.style.transform = `translate3d(${t.currentX}px, ${t.currentY}px,0)`;
804
- }
805
- function z() {
806
- const p = e.zoom;
807
- i.slideEl && e.activeIndex !== e.slides.indexOf(i.slideEl) && (i.imageEl && (i.imageEl.style.transform = "translate3d(0,0,0) scale(1)"), i.imageWrapEl && (i.imageWrapEl.style.transform = "translate3d(0,0,0)"), i.slideEl.classList.remove(`${e.params.zoom.zoomedSlideClass}`), p.scale = 1, T = 1, i.slideEl = void 0, i.imageEl = void 0, i.imageWrapEl = void 0, i.originX = 0, i.originY = 0);
808
- }
809
- function O(p) {
810
- const b = e.zoom, x = e.params.zoom;
811
- if (!i.slideEl) {
812
- p && p.target && (i.slideEl = p.target.closest(`.${e.params.slideClass}, swiper-slide`)), i.slideEl || (e.params.virtual && e.params.virtual.enabled && e.virtual ? i.slideEl = ce(e.slidesEl, `.${e.params.slideActiveClass}`)[0] : i.slideEl = e.slides[e.activeIndex]);
813
- let ie = i.slideEl.querySelector(`.${x.containerClass}`);
814
- ie && (ie = ie.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), i.imageEl = ie, ie ? i.imageWrapEl = _(i.imageEl, `.${x.containerClass}`)[0] : i.imageWrapEl = void 0;
815
- }
816
- if (!i.imageEl || !i.imageWrapEl) return;
817
- e.params.cssMode && (e.wrapperEl.style.overflow = "hidden", e.wrapperEl.style.touchAction = "none"), i.slideEl.classList.add(`${x.zoomedSlideClass}`);
818
- let A, H, G, K, J, se, F, U, Ee, Ce, xe, Te, re, oe, de, pe, fe, me;
819
- typeof t.touchesStart.x > "u" && p ? (A = p.pageX, H = p.pageY) : (A = t.touchesStart.x, H = t.touchesStart.y);
820
- const te = typeof p == "number" ? p : null;
821
- T === 1 && te && (A = void 0, H = void 0, t.touchesStart.x = void 0, t.touchesStart.y = void 0);
822
- const Se = d();
823
- b.scale = te || Se, T = te || Se, p && !(T === 1 && te) ? (fe = i.slideEl.offsetWidth, me = i.slideEl.offsetHeight, G = we(i.slideEl).left + E.scrollX, K = we(i.slideEl).top + E.scrollY, J = G + fe / 2 - A, se = K + me / 2 - H, Ee = i.imageEl.offsetWidth || i.imageEl.clientWidth, Ce = i.imageEl.offsetHeight || i.imageEl.clientHeight, xe = Ee * b.scale, Te = Ce * b.scale, re = Math.min(fe / 2 - xe / 2, 0), oe = Math.min(me / 2 - Te / 2, 0), de = -re, pe = -oe, F = J * b.scale, U = se * b.scale, F < re && (F = re), F > de && (F = de), U < oe && (U = oe), U > pe && (U = pe)) : (F = 0, U = 0), te && b.scale === 1 && (i.originX = 0, i.originY = 0), i.imageWrapEl.style.transitionDuration = "300ms", i.imageWrapEl.style.transform = `translate3d(${F}px, ${U}px,0)`, i.imageEl.style.transitionDuration = "300ms", i.imageEl.style.transform = `translate3d(0,0,0) scale(${b.scale})`;
824
- }
825
- function X() {
826
- const p = e.zoom, b = e.params.zoom;
827
- if (!i.slideEl) {
828
- e.params.virtual && e.params.virtual.enabled && e.virtual ? i.slideEl = ce(e.slidesEl, `.${e.params.slideActiveClass}`)[0] : i.slideEl = e.slides[e.activeIndex];
829
- let x = i.slideEl.querySelector(`.${b.containerClass}`);
830
- x && (x = x.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), i.imageEl = x, x ? i.imageWrapEl = _(i.imageEl, `.${b.containerClass}`)[0] : i.imageWrapEl = void 0;
831
- }
832
- !i.imageEl || !i.imageWrapEl || (e.params.cssMode && (e.wrapperEl.style.overflow = "", e.wrapperEl.style.touchAction = ""), p.scale = 1, T = 1, t.touchesStart.x = void 0, t.touchesStart.y = void 0, i.imageWrapEl.style.transitionDuration = "300ms", i.imageWrapEl.style.transform = "translate3d(0,0,0)", i.imageEl.style.transitionDuration = "300ms", i.imageEl.style.transform = "translate3d(0,0,0) scale(1)", i.slideEl.classList.remove(`${b.zoomedSlideClass}`), i.slideEl = void 0, i.originX = 0, i.originY = 0);
833
- }
834
- function ne(p) {
835
- const b = e.zoom;
836
- b.scale && b.scale !== 1 ? X() : O(p);
837
- }
838
- function I() {
839
- const p = e.params.passiveListeners ? {
840
- passive: !0,
841
- capture: !1
842
- } : !1, b = e.params.passiveListeners ? {
843
- passive: !1,
844
- capture: !0
845
- } : !0;
846
- return {
847
- passiveListener: p,
848
- activeListenerWithCapture: b
849
- };
850
- }
851
- function R() {
852
- const p = e.zoom;
853
- if (p.enabled) return;
854
- p.enabled = !0;
855
- const {
856
- passiveListener: b,
857
- activeListenerWithCapture: x
858
- } = I();
859
- e.wrapperEl.addEventListener("pointerdown", S, b), e.wrapperEl.addEventListener("pointermove", h, x), ["pointerup", "pointercancel", "pointerout"].forEach((A) => {
860
- e.wrapperEl.addEventListener(A, L, b);
861
- }), e.wrapperEl.addEventListener("pointermove", W, x);
862
- }
863
- function B() {
864
- const p = e.zoom;
865
- if (!p.enabled) return;
866
- p.enabled = !1;
867
- const {
868
- passiveListener: b,
869
- activeListenerWithCapture: x
870
- } = I();
871
- e.wrapperEl.removeEventListener("pointerdown", S, b), e.wrapperEl.removeEventListener("pointermove", h, x), ["pointerup", "pointercancel", "pointerout"].forEach((A) => {
872
- e.wrapperEl.removeEventListener(A, L, b);
873
- }), e.wrapperEl.removeEventListener("pointermove", W, x);
874
- }
875
- l("init", () => {
876
- e.params.zoom.enabled && R();
877
- }), l("destroy", () => {
878
- B();
879
- }), l("touchStart", (p, b) => {
880
- e.zoom.enabled && k(b);
881
- }), l("touchEnd", (p, b) => {
882
- e.zoom.enabled && P();
883
- }), l("doubleTap", (p, b) => {
884
- !e.animating && e.params.zoom.enabled && e.zoom.enabled && e.params.zoom.toggle && ne(b);
885
- }), l("transitionEnd", () => {
886
- e.zoom.enabled && e.params.zoom.enabled && z();
887
- }), l("slideChange", () => {
888
- e.zoom.enabled && e.params.zoom.enabled && e.params.cssMode && z();
889
- }), Object.assign(e.zoom, {
890
- enable: R,
891
- disable: B,
892
- in: O,
893
- out: X,
894
- toggle: ne
895
- });
896
- }
897
- function et(r) {
898
- let {
899
- swiper: e,
900
- extendParams: y,
901
- on: l
902
- } = r;
903
- y({
904
- controller: {
905
- control: void 0,
906
- inverse: !1,
907
- by: "slide"
908
- // or 'container'
909
- }
910
- }), e.controller = {
911
- control: void 0
912
- };
913
- function m(g, s) {
914
- const i = /* @__PURE__ */ function() {
915
- let u, d, f;
916
- return (a, n) => {
917
- for (d = -1, u = a.length; u - d > 1; )
918
- f = u + d >> 1, a[f] <= n ? d = f : u = f;
919
- return u;
920
- };
921
- }();
922
- this.x = g, this.y = s, this.lastIndex = g.length - 1;
923
- let t, o;
924
- return this.interpolate = function(u) {
925
- return u ? (o = i(this.x, u), t = o - 1, (u - this.x[t]) * (this.y[o] - this.y[t]) / (this.x[o] - this.x[t]) + this.y[t]) : 0;
926
- }, this;
927
- }
928
- function E(g) {
929
- e.controller.spline = e.params.loop ? new m(e.slidesGrid, g.slidesGrid) : new m(e.snapGrid, g.snapGrid);
930
- }
931
- function T(g, s) {
932
- const i = e.controller.control;
933
- let t, o;
934
- const c = e.constructor;
935
- function u(d) {
936
- if (d.destroyed) return;
937
- const f = e.rtlTranslate ? -e.translate : e.translate;
938
- e.params.controller.by === "slide" && (E(d), o = -e.controller.spline.interpolate(-f)), (!o || e.params.controller.by === "container") && (t = (d.maxTranslate() - d.minTranslate()) / (e.maxTranslate() - e.minTranslate()), (Number.isNaN(t) || !Number.isFinite(t)) && (t = 1), o = (f - e.minTranslate()) * t + d.minTranslate()), e.params.controller.inverse && (o = d.maxTranslate() - o), d.updateProgress(o), d.setTranslate(o, e), d.updateActiveIndex(), d.updateSlidesClasses();
939
- }
940
- if (Array.isArray(i))
941
- for (let d = 0; d < i.length; d += 1)
942
- i[d] !== s && i[d] instanceof c && u(i[d]);
943
- else i instanceof c && s !== i && u(i);
944
- }
945
- function $(g, s) {
946
- const i = e.constructor, t = e.controller.control;
947
- let o;
948
- function c(u) {
949
- u.destroyed || (u.setTransition(g, e), g !== 0 && (u.transitionStart(), u.params.autoHeight && Ve(() => {
950
- u.updateAutoHeight();
951
- }), ue(u.wrapperEl, () => {
952
- t && u.transitionEnd();
953
- })));
954
- }
955
- if (Array.isArray(t))
956
- for (o = 0; o < t.length; o += 1)
957
- t[o] !== s && t[o] instanceof i && c(t[o]);
958
- else t instanceof i && s !== t && c(t);
959
- }
960
- function M() {
961
- e.controller.control && e.controller.spline && (e.controller.spline = void 0, delete e.controller.spline);
962
- }
963
- l("beforeInit", () => {
964
- if (typeof window < "u" && // eslint-disable-line
965
- (typeof e.params.controller.control == "string" || e.params.controller.control instanceof HTMLElement)) {
966
- (typeof e.params.controller.control == "string" ? [...document.querySelectorAll(e.params.controller.control)] : [e.params.controller.control]).forEach((s) => {
967
- if (e.controller.control || (e.controller.control = []), s && s.swiper)
968
- e.controller.control.push(s.swiper);
969
- else if (s) {
970
- const i = `${e.params.eventsPrefix}init`, t = (o) => {
971
- e.controller.control.push(o.detail[0]), e.update(), s.removeEventListener(i, t);
972
- };
973
- s.addEventListener(i, t);
974
- }
975
- });
976
- return;
977
- }
978
- e.controller.control = e.params.controller.control;
979
- }), l("update", () => {
980
- M();
981
- }), l("resize", () => {
982
- M();
983
- }), l("observerUpdate", () => {
984
- M();
985
- }), l("setTranslate", (g, s, i) => {
986
- !e.controller.control || e.controller.control.destroyed || e.controller.setTranslate(s, i);
987
- }), l("setTransition", (g, s, i) => {
988
- !e.controller.control || e.controller.control.destroyed || e.controller.setTransition(s, i);
989
- }), Object.assign(e.controller, {
990
- setTranslate: T,
991
- setTransition: $
992
- });
993
- }
994
- function tt(r) {
995
- let {
996
- swiper: e,
997
- extendParams: y,
998
- on: l,
999
- emit: m,
1000
- params: E
1001
- } = r;
1002
- e.autoplay = {
1003
- running: !1,
1004
- paused: !1,
1005
- timeLeft: 0
1006
- }, y({
1007
- autoplay: {
1008
- enabled: !1,
1009
- delay: 3e3,
1010
- waitForTransition: !0,
1011
- disableOnInteraction: !1,
1012
- stopOnLastSlide: !1,
1013
- reverseDirection: !1,
1014
- pauseOnMouseEnter: !1
1015
- }
1016
- });
1017
- let T, $, M = E && E.autoplay ? E.autoplay.delay : 3e3, g = E && E.autoplay ? E.autoplay.delay : 3e3, s, i = (/* @__PURE__ */ new Date()).getTime(), t, o, c, u, d, f, a;
1018
- function n(I) {
1019
- !e || e.destroyed || !e.wrapperEl || I.target === e.wrapperEl && (e.wrapperEl.removeEventListener("transitionend", n), !(a || I.detail && I.detail.bySwiperTouchMove) && D());
1020
- }
1021
- const v = () => {
1022
- if (e.destroyed || !e.autoplay.running) return;
1023
- e.autoplay.paused ? t = !0 : t && (g = s, t = !1);
1024
- const I = e.autoplay.paused ? s : i + g - (/* @__PURE__ */ new Date()).getTime();
1025
- e.autoplay.timeLeft = I, m("autoplayTimeLeft", I, I / M), $ = requestAnimationFrame(() => {
1026
- v();
1027
- });
1028
- }, S = () => {
1029
- let I;
1030
- return e.virtual && e.params.virtual.enabled ? I = e.slides.filter((B) => B.classList.contains("swiper-slide-active"))[0] : I = e.slides[e.activeIndex], I ? parseInt(I.getAttribute("data-swiper-autoplay"), 10) : void 0;
1031
- }, h = (I) => {
1032
- if (e.destroyed || !e.autoplay.running) return;
1033
- cancelAnimationFrame($), v();
1034
- let R = typeof I > "u" ? e.params.autoplay.delay : I;
1035
- M = e.params.autoplay.delay, g = e.params.autoplay.delay;
1036
- const B = S();
1037
- !Number.isNaN(B) && B > 0 && typeof I > "u" && (R = B, M = B, g = B), s = R;
1038
- const p = e.params.speed, b = () => {
1039
- !e || e.destroyed || (e.params.autoplay.reverseDirection ? !e.isBeginning || e.params.loop || e.params.rewind ? (e.slidePrev(p, !0, !0), m("autoplay")) : e.params.autoplay.stopOnLastSlide || (e.slideTo(e.slides.length - 1, p, !0, !0), m("autoplay")) : !e.isEnd || e.params.loop || e.params.rewind ? (e.slideNext(p, !0, !0), m("autoplay")) : e.params.autoplay.stopOnLastSlide || (e.slideTo(0, p, !0, !0), m("autoplay")), e.params.cssMode && (i = (/* @__PURE__ */ new Date()).getTime(), requestAnimationFrame(() => {
1040
- h();
1041
- })));
1042
- };
1043
- return R > 0 ? (clearTimeout(T), T = setTimeout(() => {
1044
- b();
1045
- }, R)) : requestAnimationFrame(() => {
1046
- b();
1047
- }), R;
1048
- }, L = () => {
1049
- i = (/* @__PURE__ */ new Date()).getTime(), e.autoplay.running = !0, h(), m("autoplayStart");
1050
- }, C = () => {
1051
- e.autoplay.running = !1, clearTimeout(T), cancelAnimationFrame($), m("autoplayStop");
1052
- }, w = (I, R) => {
1053
- if (e.destroyed || !e.autoplay.running) return;
1054
- clearTimeout(T), I || (f = !0);
1055
- const B = () => {
1056
- m("autoplayPause"), e.params.autoplay.waitForTransition ? e.wrapperEl.addEventListener("transitionend", n) : D();
1057
- };
1058
- if (e.autoplay.paused = !0, R) {
1059
- d && (s = e.params.autoplay.delay), d = !1, B();
1060
- return;
1061
- }
1062
- s = (s || e.params.autoplay.delay) - ((/* @__PURE__ */ new Date()).getTime() - i), !(e.isEnd && s < 0 && !e.params.loop) && (s < 0 && (s = 0), B());
1063
- }, D = () => {
1064
- e.isEnd && s < 0 && !e.params.loop || e.destroyed || !e.autoplay.running || (i = (/* @__PURE__ */ new Date()).getTime(), f ? (f = !1, h(s)) : h(), e.autoplay.paused = !1, m("autoplayResume"));
1065
- }, k = () => {
1066
- if (e.destroyed || !e.autoplay.running) return;
1067
- const I = Q();
1068
- I.visibilityState === "hidden" && (f = !0, w(!0)), I.visibilityState === "visible" && D();
1069
- }, W = (I) => {
1070
- I.pointerType === "mouse" && (f = !0, a = !0, !(e.animating || e.autoplay.paused) && w(!0));
1071
- }, P = (I) => {
1072
- I.pointerType === "mouse" && (a = !1, e.autoplay.paused && D());
1073
- }, z = () => {
1074
- e.params.autoplay.pauseOnMouseEnter && (e.el.addEventListener("pointerenter", W), e.el.addEventListener("pointerleave", P));
1075
- }, O = () => {
1076
- e.el && typeof e.el != "string" && (e.el.removeEventListener("pointerenter", W), e.el.removeEventListener("pointerleave", P));
1077
- }, X = () => {
1078
- Q().addEventListener("visibilitychange", k);
1079
- }, ne = () => {
1080
- Q().removeEventListener("visibilitychange", k);
1081
- };
1082
- l("init", () => {
1083
- e.params.autoplay.enabled && (z(), X(), L());
1084
- }), l("destroy", () => {
1085
- O(), ne(), e.autoplay.running && C();
1086
- }), l("_freeModeStaticRelease", () => {
1087
- (c || f) && D();
1088
- }), l("_freeModeNoMomentumRelease", () => {
1089
- e.params.autoplay.disableOnInteraction ? C() : w(!0, !0);
1090
- }), l("beforeTransitionStart", (I, R, B) => {
1091
- e.destroyed || !e.autoplay.running || (B || !e.params.autoplay.disableOnInteraction ? w(!0, !0) : C());
1092
- }), l("sliderFirstMove", () => {
1093
- if (!(e.destroyed || !e.autoplay.running)) {
1094
- if (e.params.autoplay.disableOnInteraction) {
1095
- C();
1096
- return;
1097
- }
1098
- o = !0, c = !1, f = !1, u = setTimeout(() => {
1099
- f = !0, c = !0, w(!0);
1100
- }, 200);
1101
- }
1102
- }), l("touchEnd", () => {
1103
- if (!(e.destroyed || !e.autoplay.running || !o)) {
1104
- if (clearTimeout(u), clearTimeout(T), e.params.autoplay.disableOnInteraction) {
1105
- c = !1, o = !1;
1106
- return;
1107
- }
1108
- c && e.params.cssMode && D(), c = !1, o = !1;
1109
- }
1110
- }), l("slideChange", () => {
1111
- e.destroyed || !e.autoplay.running || (d = !0);
1112
- }), Object.assign(e.autoplay, {
1113
- start: L,
1114
- stop: C,
1115
- pause: w,
1116
- resume: D
1117
- });
1118
- }
1119
- function it(r) {
1120
- let {
1121
- swiper: e,
1122
- extendParams: y,
1123
- on: l
1124
- } = r;
1125
- y({
1126
- thumbs: {
1127
- swiper: null,
1128
- multipleActiveThumbs: !0,
1129
- autoScrollOffset: 0,
1130
- slideThumbActiveClass: "swiper-slide-thumb-active",
1131
- thumbsContainerClass: "swiper-thumbs"
1132
- }
1133
- });
1134
- let m = !1, E = !1;
1135
- e.thumbs = {
1136
- swiper: null
1137
- };
1138
- function T() {
1139
- const g = e.thumbs.swiper;
1140
- if (!g || g.destroyed) return;
1141
- const s = g.clickedIndex, i = g.clickedSlide;
1142
- if (i && i.classList.contains(e.params.thumbs.slideThumbActiveClass) || typeof s > "u" || s === null) return;
1143
- let t;
1144
- g.params.loop ? t = parseInt(g.clickedSlide.getAttribute("data-swiper-slide-index"), 10) : t = s, e.params.loop ? e.slideToLoop(t) : e.slideTo(t);
1145
- }
1146
- function $() {
1147
- const {
1148
- thumbs: g
1149
- } = e.params;
1150
- if (m) return !1;
1151
- m = !0;
1152
- const s = e.constructor;
1153
- if (g.swiper instanceof s)
1154
- e.thumbs.swiper = g.swiper, Object.assign(e.thumbs.swiper.originalParams, {
1155
- watchSlidesProgress: !0,
1156
- slideToClickedSlide: !1
1157
- }), Object.assign(e.thumbs.swiper.params, {
1158
- watchSlidesProgress: !0,
1159
- slideToClickedSlide: !1
1160
- }), e.thumbs.swiper.update();
1161
- else if (Ge(g.swiper)) {
1162
- const i = Object.assign({}, g.swiper);
1163
- Object.assign(i, {
1164
- watchSlidesProgress: !0,
1165
- slideToClickedSlide: !1
1166
- }), e.thumbs.swiper = new s(i), E = !0;
1167
- }
1168
- return e.thumbs.swiper.el.classList.add(e.params.thumbs.thumbsContainerClass), e.thumbs.swiper.on("tap", T), !0;
1169
- }
1170
- function M(g) {
1171
- const s = e.thumbs.swiper;
1172
- if (!s || s.destroyed) return;
1173
- const i = s.params.slidesPerView === "auto" ? s.slidesPerViewDynamic() : s.params.slidesPerView;
1174
- let t = 1;
1175
- const o = e.params.thumbs.slideThumbActiveClass;
1176
- if (e.params.slidesPerView > 1 && !e.params.centeredSlides && (t = e.params.slidesPerView), e.params.thumbs.multipleActiveThumbs || (t = 1), t = Math.floor(t), s.slides.forEach((d) => d.classList.remove(o)), s.params.loop || s.params.virtual && s.params.virtual.enabled)
1177
- for (let d = 0; d < t; d += 1)
1178
- ce(s.slidesEl, `[data-swiper-slide-index="${e.realIndex + d}"]`).forEach((f) => {
1179
- f.classList.add(o);
1180
- });
1181
- else
1182
- for (let d = 0; d < t; d += 1)
1183
- s.slides[e.realIndex + d] && s.slides[e.realIndex + d].classList.add(o);
1184
- const c = e.params.thumbs.autoScrollOffset, u = c && !s.params.loop;
1185
- if (e.realIndex !== s.realIndex || u) {
1186
- const d = s.activeIndex;
1187
- let f, a;
1188
- if (s.params.loop) {
1189
- const n = s.slides.filter((v) => v.getAttribute("data-swiper-slide-index") === `${e.realIndex}`)[0];
1190
- f = s.slides.indexOf(n), a = e.activeIndex > e.previousIndex ? "next" : "prev";
1191
- } else
1192
- f = e.realIndex, a = f > e.previousIndex ? "next" : "prev";
1193
- u && (f += a === "next" ? c : -1 * c), s.visibleSlidesIndexes && s.visibleSlidesIndexes.indexOf(f) < 0 && (s.params.centeredSlides ? f > d ? f = f - Math.floor(i / 2) + 1 : f = f + Math.floor(i / 2) - 1 : f > d && s.params.slidesPerGroup, s.slideTo(f, g ? 0 : void 0));
1194
- }
1195
- }
1196
- l("beforeInit", () => {
1197
- const {
1198
- thumbs: g
1199
- } = e.params;
1200
- if (!(!g || !g.swiper))
1201
- if (typeof g.swiper == "string" || g.swiper instanceof HTMLElement) {
1202
- const s = Q(), i = () => {
1203
- const o = typeof g.swiper == "string" ? s.querySelector(g.swiper) : g.swiper;
1204
- if (o && o.swiper)
1205
- g.swiper = o.swiper, $(), M(!0);
1206
- else if (o) {
1207
- const c = `${e.params.eventsPrefix}init`, u = (d) => {
1208
- g.swiper = d.detail[0], o.removeEventListener(c, u), $(), M(!0), g.swiper.update(), e.update();
1209
- };
1210
- o.addEventListener(c, u);
1211
- }
1212
- return o;
1213
- }, t = () => {
1214
- if (e.destroyed) return;
1215
- i() || requestAnimationFrame(t);
1216
- };
1217
- requestAnimationFrame(t);
1218
- } else
1219
- $(), M(!0);
1220
- }), l("slideChange update resize observerUpdate", () => {
1221
- M();
1222
- }), l("setTransition", (g, s) => {
1223
- const i = e.thumbs.swiper;
1224
- !i || i.destroyed || i.setTransition(s);
1225
- }), l("beforeDestroy", () => {
1226
- const g = e.thumbs.swiper;
1227
- !g || g.destroyed || E && g.destroy();
1228
- }), Object.assign(e.thumbs, {
1229
- init: $,
1230
- update: M
1231
- });
1232
- }
1233
- function at(r) {
1234
- let {
1235
- swiper: e,
1236
- extendParams: y,
1237
- emit: l,
1238
- once: m
1239
- } = r;
1240
- y({
1241
- freeMode: {
1242
- enabled: !1,
1243
- momentum: !0,
1244
- momentumRatio: 1,
1245
- momentumBounce: !0,
1246
- momentumBounceRatio: 1,
1247
- momentumVelocityRatio: 1,
1248
- sticky: !1,
1249
- minimumVelocity: 0.02
1250
- }
1251
- });
1252
- function E() {
1253
- if (e.params.cssMode) return;
1254
- const M = e.getTranslate();
1255
- e.setTranslate(M), e.setTransition(0), e.touchEventsData.velocities.length = 0, e.freeMode.onTouchEnd({
1256
- currentPos: e.rtl ? e.translate : -e.translate
1257
- });
1258
- }
1259
- function T() {
1260
- if (e.params.cssMode) return;
1261
- const {
1262
- touchEventsData: M,
1263
- touches: g
1264
- } = e;
1265
- M.velocities.length === 0 && M.velocities.push({
1266
- position: g[e.isHorizontal() ? "startX" : "startY"],
1267
- time: M.touchStartTime
1268
- }), M.velocities.push({
1269
- position: g[e.isHorizontal() ? "currentX" : "currentY"],
1270
- time: ye()
1271
- });
1272
- }
1273
- function $(M) {
1274
- let {
1275
- currentPos: g
1276
- } = M;
1277
- if (e.params.cssMode) return;
1278
- const {
1279
- params: s,
1280
- wrapperEl: i,
1281
- rtlTranslate: t,
1282
- snapGrid: o,
1283
- touchEventsData: c
1284
- } = e, d = ye() - c.touchStartTime;
1285
- if (g < -e.minTranslate()) {
1286
- e.slideTo(e.activeIndex);
1287
- return;
1288
- }
1289
- if (g > -e.maxTranslate()) {
1290
- e.slides.length < o.length ? e.slideTo(o.length - 1) : e.slideTo(e.slides.length - 1);
1291
- return;
1292
- }
1293
- if (s.freeMode.momentum) {
1294
- if (c.velocities.length > 1) {
1295
- const C = c.velocities.pop(), w = c.velocities.pop(), D = C.position - w.position, k = C.time - w.time;
1296
- e.velocity = D / k, e.velocity /= 2, Math.abs(e.velocity) < s.freeMode.minimumVelocity && (e.velocity = 0), (k > 150 || ye() - C.time > 300) && (e.velocity = 0);
1297
- } else
1298
- e.velocity = 0;
1299
- e.velocity *= s.freeMode.momentumVelocityRatio, c.velocities.length = 0;
1300
- let f = 1e3 * s.freeMode.momentumRatio;
1301
- const a = e.velocity * f;
1302
- let n = e.translate + a;
1303
- t && (n = -n);
1304
- let v = !1, S;
1305
- const h = Math.abs(e.velocity) * 20 * s.freeMode.momentumBounceRatio;
1306
- let L;
1307
- if (n < e.maxTranslate())
1308
- s.freeMode.momentumBounce ? (n + e.maxTranslate() < -h && (n = e.maxTranslate() - h), S = e.maxTranslate(), v = !0, c.allowMomentumBounce = !0) : n = e.maxTranslate(), s.loop && s.centeredSlides && (L = !0);
1309
- else if (n > e.minTranslate())
1310
- s.freeMode.momentumBounce ? (n - e.minTranslate() > h && (n = e.minTranslate() + h), S = e.minTranslate(), v = !0, c.allowMomentumBounce = !0) : n = e.minTranslate(), s.loop && s.centeredSlides && (L = !0);
1311
- else if (s.freeMode.sticky) {
1312
- let C;
1313
- for (let w = 0; w < o.length; w += 1)
1314
- if (o[w] > -n) {
1315
- C = w;
1316
- break;
1317
- }
1318
- Math.abs(o[C] - n) < Math.abs(o[C - 1] - n) || e.swipeDirection === "next" ? n = o[C] : n = o[C - 1], n = -n;
1319
- }
1320
- if (L && m("transitionEnd", () => {
1321
- e.loopFix();
1322
- }), e.velocity !== 0) {
1323
- if (t ? f = Math.abs((-n - e.translate) / e.velocity) : f = Math.abs((n - e.translate) / e.velocity), s.freeMode.sticky) {
1324
- const C = Math.abs((t ? -n : n) - e.translate), w = e.slidesSizesGrid[e.activeIndex];
1325
- C < w ? f = s.speed : C < 2 * w ? f = s.speed * 1.5 : f = s.speed * 2.5;
1326
- }
1327
- } else if (s.freeMode.sticky) {
1328
- e.slideToClosest();
1329
- return;
1330
- }
1331
- s.freeMode.momentumBounce && v ? (e.updateProgress(S), e.setTransition(f), e.setTranslate(n), e.transitionStart(!0, e.swipeDirection), e.animating = !0, ue(i, () => {
1332
- !e || e.destroyed || !c.allowMomentumBounce || (l("momentumBounce"), e.setTransition(s.speed), setTimeout(() => {
1333
- e.setTranslate(S), ue(i, () => {
1334
- !e || e.destroyed || e.transitionEnd();
1335
- });
1336
- }, 0));
1337
- })) : e.velocity ? (l("_freeModeNoMomentumRelease"), e.updateProgress(n), e.setTransition(f), e.setTranslate(n), e.transitionStart(!0, e.swipeDirection), e.animating || (e.animating = !0, ue(i, () => {
1338
- !e || e.destroyed || e.transitionEnd();
1339
- }))) : e.updateProgress(n), e.updateActiveIndex(), e.updateSlidesClasses();
1340
- } else if (s.freeMode.sticky) {
1341
- e.slideToClosest();
1342
- return;
1343
- } else s.freeMode && l("_freeModeNoMomentumRelease");
1344
- (!s.freeMode.momentum || d >= s.longSwipesMs) && (l("_freeModeStaticRelease"), e.updateProgress(), e.updateActiveIndex(), e.updateSlidesClasses());
1345
- }
1346
- Object.assign(e, {
1347
- freeMode: {
1348
- onTouchStart: E,
1349
- onTouchMove: T,
1350
- onTouchEnd: $
1351
- }
1352
- });
1353
- }
1354
- const nt = ["id"], st = ["id", "data-cy"], rt = ["data-idx", "loading", "fetchpriority", "alt", "width", "height", "onLoad"], ot = ["id"], lt = ["loading", "alt"], ut = /* @__PURE__ */ Xe({
1355
- inheritAttrs: !1,
1356
- __name: "SwiperCarousel",
1357
- props: {
1358
- id: {},
1359
- swiperOptions: {},
1360
- thumbSwiperOptions: {},
1361
- lazyLoadImages: { type: Boolean, default: !0 },
1362
- backgroundImage: { type: Boolean, default: !1 },
1363
- images: { default: () => [] },
1364
- artDirection: {},
1365
- shiftFirstImage: { type: Boolean, default: !1 }
1366
- },
1367
- emits: ["moved", "click", "firstSlideLoaded"],
1368
- setup(r, { expose: e, emit: y }) {
1369
- const l = y, m = Ye({
1370
- swiperParams: { modules: [_e] },
1371
- swiper: null,
1372
- initCarousel: !1
1373
- }), E = ge(), T = ge(!1), $ = We(), M = j(() => r.id ?? $), g = j(() => r.swiperOptions?.slidesPerView || 1), s = j(() => r.thumbSwiperOptions?.slidesPerView || 1), i = j(() => !!r.swiperOptions?.keyboard), t = j(() => !!r.swiperOptions.navigation), o = j(() => !!r.swiperOptions.pagination), c = j(() => !!r.swiperOptions.autoplay), u = j(
1374
- () => r.swiperOptions?.effect || "slider"
1375
- ), d = () => {
1376
- r.swiperOptions && Re(r.swiperOptions, m.swiperParams);
1377
- }, f = (h, L = -1) => {
1378
- if (!h.images)
1379
- return { src: h.src || "" };
1380
- let C = "", w = "", D = "";
1381
- if (r.artDirection) {
1382
- for (const P in r.artDirection) {
1383
- const { mq: z, width: O } = r.artDirection[P];
1384
- O && (D += D ? `,${z} ${parseInt(O)}px` : `${z} ${parseInt(O)}px`);
1385
- }
1386
- w = h.images.reduce((P, z, O) => {
1387
- const X = Object.values(r.artDirection)[O];
1388
- return !X || !X.width || (P += P ? `, ${z.storagePath} ${X.width}` : `${z.storagePath} ${X.width}`), P;
1389
- }, ""), C = h.images[0].storagePath;
1390
- } else {
1391
- let P = h.images;
1392
- h.images.length > 3 ? P = h.images.slice(2, 5) : r.shiftFirstImage && (P[0] = P[1]), w = P.reduce((z, O, X) => (X === 0 && (C = `${O.storagePath}`), X > 0 && (z += ", "), `${z}${O.storagePath} ${X + 1}x`), "");
1393
- }
1394
- const k = C, W = w;
1395
- return typeof g.value == "number" && L > g.value ? (C = "", w = "", { sizes: D, "data-src": k, "data-srcset": W }) : { src: C, srcset: w, sizes: D };
1396
- }, a = [], n = (h) => {
1397
- if (typeof g.value == "string") return;
1398
- const L = a[h];
1399
- if (L && !L.src && (L.src = L.dataset.src || "", L.srcset = L.dataset.srcset || ""), h < g.value || h + 1 >= (r.images ?? []).length)
1400
- return;
1401
- const C = a[h + 1];
1402
- C && !C.src && (C.src = C?.dataset.src || "", C.srcset = C?.dataset.srcset || "");
1403
- };
1404
- e({
1405
- moveTo(h, L = 0, C = !0) {
1406
- m.swiper?.slideTo(h, L, C);
1407
- }
1408
- });
1409
- const v = ge(null), S = (h) => {
1410
- h === 0 && a && a[h] && Me(() => {
1411
- v.value?.setAttribute("data-first-slide-loaded", "true"), l("firstSlideLoaded");
1412
- });
1413
- };
1414
- return Be(async () => {
1415
- if (d(), i.value && (m.swiperParams.modules?.push(Ze), m.swiperParams.keyboard = r.swiperOptions.keyboard), o.value && (m.swiperParams.modules?.push(Qe), m.swiperParams.pagination = {
1416
- el: ".swiper-pagination",
1417
- renderFraction: (C, w) => `<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]">
1418
- <span data-cy="swiper-pagination-current" class="${C}"></span>
1419
- /
1420
- <span data-cy="swiper-pagination-total" class="${w}"></span>
1421
- </div>`,
1422
- ...typeof m.swiperParams.pagination == "boolean" ? {} : m.swiperParams.pagination
1423
- }), t.value) {
1424
- m.swiperParams.modules?.push(Je);
1425
- const C = {
1426
- ...r.swiperOptions.navigation.nextEl ?? {
1427
- nextEl: ".swiper-button-next"
1428
- },
1429
- ...r.swiperOptions.navigation.prevEl ?? {
1430
- prevEl: ".swiper-button-prev"
1431
- }
1432
- };
1433
- m.swiperParams.navigation = {
1434
- ...typeof r.swiperOptions.navigation == "object" ? r.swiperOptions.navigation : {},
1435
- ...C
1436
- };
1437
- }
1438
- c.value && (m.swiperParams.modules?.push(tt), m.swiperParams.autoplay = r.swiperOptions.autoplay);
1439
- const h = {
1440
- ...m.swiperParams,
1441
- on: {
1442
- init: () => {
1443
- T.value = !0;
1444
- },
1445
- slideChange: (C) => {
1446
- n(C.activeIndex), l("moved", { activeIndex: C.activeIndex });
1447
- }
1448
- }
1449
- };
1450
- let L = null;
1451
- r.thumbSwiperOptions && (m.swiperParams.modules?.push(it), m.swiperParams.modules?.push(et), L = new ze(`#thumb_${M.value}`, {
1452
- ...r.thumbSwiperOptions,
1453
- modules: [at]
1454
- }), h.thumbs = {
1455
- swiper: L
1456
- }), h.lazyPreloadPrevNext = 1, m.swiper = new ze(`#${M.value}`, h), E.value?.classList.remove("uikit-hidden");
1457
- }), He(
1458
- () => r.images,
1459
- () => {
1460
- Me(() => {
1461
- m.swiper?.update();
1462
- });
1463
- }
1464
- ), (h, L) => (N(), q("div", {
1465
- id: `root-${M.value}`,
1466
- ref_key: "root",
1467
- ref: v,
1468
- class: V(["swiper-carousel-root", h.$attrs["root-classes"]])
1469
- }, [
1470
- Z("div", {
1471
- id: M.value,
1472
- "data-cy": h.$attrs["data-cy"],
1473
- class: V(["swiper", h.$attrs["swiper-classes"]])
1474
- }, [
1475
- Z("div", {
1476
- ref_key: "swiperWrapper",
1477
- ref: E,
1478
- class: V(["swiper-wrapper", [
1479
- h.$attrs["swiper-wrapper-classes"],
1480
- u.value === "none" && "no-transition"
1481
- ]]),
1482
- onClick: L[0] || (L[0] = (C) => l("click"))
1483
- }, [
1484
- Le(h.$slots, "default", {}, () => [
1485
- (N(!0), q(he, null, $e(h.images, (C, w) => (N(), q("div", {
1486
- key: `swiper_${M.value}_${w}`,
1487
- class: V(["swiper-slide", h.$attrs["swiper-slide-classes"]])
1488
- }, [
1489
- Z("div", {
1490
- class: V(["swiper-zoom-container", h.$attrs["swiper-zoom-container-classes"]])
1491
- }, [
1492
- h.backgroundImage ? le("", !0) : (N(), q("img", Pe({
1493
- key: 0,
1494
- ref_for: !0,
1495
- ref: (D) => {
1496
- a.push(D);
1497
- },
1498
- class: ["disable-select", [h.$attrs["slide-img-classes"] || C.classes]],
1499
- "data-idx": `${M.value}-slide-img-${w}`
1500
- }, f(C, w), {
1501
- loading: h.lazyLoadImages || w >= g.value ? "lazy" : void 0,
1502
- fetchpriority: !h.lazyLoadImages && w === 0 ? "high" : "low",
1503
- alt: C.alt,
1504
- itemprop: "image",
1505
- width: C.width,
1506
- height: C.height,
1507
- onLoad: (D) => S(w)
1508
- }), null, 16, rt))
1509
- ], 2)
1510
- ], 2))), 128)),
1511
- Le(h.$slots, "last_slide", {}, void 0, !0)
1512
- ], !0)
1513
- ], 2),
1514
- o.value ? (N(), q("div", {
1515
- key: 0,
1516
- class: V([h.$attrs["swiper-pagination-classes"], "swiper-pagination [&.swiper-pagination-fraction]:uikit-flex [&.swiper-pagination-fraction]:uikit-justify-center"]),
1517
- onClick: L[1] || (L[1] = ve(() => {
1518
- }, ["stop"]))
1519
- }, null, 2)) : le("", !0),
1520
- t.value ? (N(), q(he, { key: 1 }, [
1521
- Z("div", {
1522
- class: "swiper-button-prev",
1523
- "data-cy": "swiper-button-prev",
1524
- onClick: L[2] || (L[2] = ve(() => {
1525
- }, ["stop"]))
1526
- }),
1527
- Z("div", {
1528
- class: "swiper-button-next",
1529
- "data-cy": "swiper-button-next",
1530
- onClick: L[3] || (L[3] = ve(() => {
1531
- }, ["stop"]))
1532
- })
1533
- ], 64)) : le("", !0)
1534
- ], 10, st),
1535
- h.thumbSwiperOptions ? (N(), q("div", {
1536
- key: 0,
1537
- id: `thumb_${M.value}`,
1538
- thumbsSlider: "",
1539
- class: V(["swiper", h.$attrs["thumb-swiper-classes"]])
1540
- }, [
1541
- Z("div", {
1542
- class: V(["swiper-wrapper", h.$attrs["thumb-swiper-wrapper-classes"]])
1543
- }, [
1544
- (N(!0), q(he, null, $e(h.images, (C, w) => (N(), q("div", {
1545
- key: `thumb_${M.value}_${w}`,
1546
- class: V(["swiper-slide", h.$attrs["thumb-img-wrapper-classes"]])
1547
- }, [
1548
- Z("img", Pe({
1549
- class: h.$attrs["thumb-img-classes"],
1550
- ref_for: !0
1551
- }, f(C), {
1552
- loading: w >= s.value ? "lazy" : void 0,
1553
- alt: C.alt
1554
- }), null, 16, lt)
1555
- ], 2))), 128))
1556
- ], 2)
1557
- ], 10, ot)) : le("", !0)
1558
- ], 10, nt));
1559
- }
1560
- }), gt = /* @__PURE__ */ Fe(ut, [["__scopeId", "data-v-09ecb9f6"]]);
1561
- export {
1562
- gt as default
1563
- };