@voidzero-dev/vitepress-theme 0.1.38 → 0.1.43

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 (172) hide show
  1. package/dist/assets/social/bluesky-light.svg +10 -0
  2. package/dist/assets/social/github-light.svg +3 -0
  3. package/dist/assets/social/twitter-light.svg +3 -0
  4. package/dist/assets/voidzero/animations/343_x_148_homepage_mobile.riv +0 -0
  5. package/dist/assets/voidzero/footer-logo.svg +5 -0
  6. package/dist/assets/voidzero/footer.jpg +0 -0
  7. package/dist/assets/voidzero/investors/accel.svg +9 -0
  8. package/dist/assets/voidzero/investors/amplify.svg +3 -0
  9. package/dist/assets/voidzero/investors/resend.svg +3 -0
  10. package/dist/assets/voidzero/investors/sentry.svg +10 -0
  11. package/dist/assets/voidzero/logo-light.svg +3 -0
  12. package/dist/index.css +1 -1
  13. package/dist/index10.js +4 -4
  14. package/dist/index100.js +26 -7
  15. package/dist/index101.js +197 -5
  16. package/dist/index102.js +1014 -4
  17. package/dist/index103.js +34 -7
  18. package/dist/index104.js +2 -33
  19. package/dist/index105.js +2 -57
  20. package/dist/index106.js +2 -9
  21. package/dist/index107.js +2 -14
  22. package/dist/index108.js +2 -58
  23. package/dist/index109.js +2 -6
  24. package/dist/index11.js +5 -11
  25. package/dist/index110.js +2 -39
  26. package/dist/index111.js +5324 -21
  27. package/dist/index112.js +2 -25
  28. package/dist/index113.js +2 -10
  29. package/dist/index114.js +2 -57
  30. package/dist/index115.js +2 -36
  31. package/dist/index116.js +2 -119
  32. package/dist/index117.js +2 -92
  33. package/dist/index118.js +2 -8
  34. package/dist/index119.js +2 -439
  35. package/dist/index12.js +9 -9
  36. package/dist/index120.js +10 -5
  37. package/dist/index121.js +7 -2
  38. package/dist/index122.js +4 -1734
  39. package/dist/index123.js +4 -315
  40. package/dist/index124.js +7 -2
  41. package/dist/index125.js +29 -442
  42. package/dist/index126.js +59 -0
  43. package/dist/index127.js +11 -0
  44. package/dist/index128.js +16 -0
  45. package/dist/index129.js +60 -0
  46. package/dist/index13.js +9 -9
  47. package/dist/index130.js +8 -0
  48. package/dist/index131.js +41 -0
  49. package/dist/index132.js +23 -0
  50. package/dist/index133.js +27 -0
  51. package/dist/index134.js +12 -0
  52. package/dist/index135.js +59 -0
  53. package/dist/index136.js +38 -0
  54. package/dist/index137.js +121 -0
  55. package/dist/index138.js +94 -0
  56. package/dist/index139.js +10 -0
  57. package/dist/index14.js +11 -5
  58. package/dist/index140.js +6 -0
  59. package/dist/index141.js +5 -0
  60. package/dist/index142.js +7209 -0
  61. package/dist/index143.js +1737 -0
  62. package/dist/index144.js +441 -0
  63. package/dist/index145.js +16 -0
  64. package/dist/index146.js +35 -0
  65. package/dist/index147.js +1204 -0
  66. package/dist/index148.js +64841 -0
  67. package/dist/index149.js +7 -0
  68. package/dist/index15.js +5 -10
  69. package/dist/index150.js +4 -0
  70. package/dist/index151.js +448 -0
  71. package/dist/index152.js +317 -0
  72. package/dist/index153.js +4 -0
  73. package/dist/index16.js +10 -5
  74. package/dist/index17.js +4 -9
  75. package/dist/index18.js +10 -5
  76. package/dist/index19.js +5 -20
  77. package/dist/index2.js +15 -10
  78. package/dist/index20.js +22 -0
  79. package/dist/index21.js +28 -2
  80. package/dist/index22.js +7 -1
  81. package/dist/index23.js +114 -2
  82. package/dist/index26.js +1 -1
  83. package/dist/index27.js +2 -21
  84. package/dist/index28.js +4 -0
  85. package/dist/index29.js +115 -7
  86. package/dist/index3.js +155 -68
  87. package/dist/index31.js +9 -0
  88. package/dist/index32.js +2 -2
  89. package/dist/index33.js +2 -2
  90. package/dist/index34.js +2 -295
  91. package/dist/index35.js +24 -0
  92. package/dist/{index30.js → index37.js} +22 -22
  93. package/dist/index39.js +4 -0
  94. package/dist/index4.js +11 -156
  95. package/dist/index40.js +2 -84
  96. package/dist/index41.js +293 -64
  97. package/dist/index43.js +156 -75
  98. package/dist/index45.js +322 -26
  99. package/dist/index47.js +2 -26
  100. package/dist/index48.js +3 -26
  101. package/dist/index49.js +2 -26
  102. package/dist/index5.js +69 -9
  103. package/dist/index50.js +2 -2
  104. package/dist/index51.js +2 -25
  105. package/dist/index52.js +2 -22
  106. package/dist/index53.js +2 -124
  107. package/dist/index54.js +3 -2
  108. package/dist/index55.js +2 -2
  109. package/dist/index56.js +2 -2
  110. package/dist/index57.js +2 -2
  111. package/dist/index59.js +135 -2
  112. package/dist/index6.js +5 -73
  113. package/dist/index61.js +2 -2
  114. package/dist/index62.js +2 -2
  115. package/dist/index63.js +2 -2
  116. package/dist/index64.js +2 -2
  117. package/dist/index65.js +2 -2
  118. package/dist/index66.js +2 -2
  119. package/dist/index67.js +2 -18
  120. package/dist/index68.js +2 -18
  121. package/dist/index69.js +2 -18
  122. package/dist/index7.js +2 -2
  123. package/dist/index70.js +2 -2
  124. package/dist/index71.js +2 -2
  125. package/dist/index72.js +2 -2
  126. package/dist/index73.js +2 -34
  127. package/dist/index74.js +2 -2
  128. package/dist/index75.js +1 -1
  129. package/dist/index76.js +52 -2
  130. package/dist/index77.js +44 -3
  131. package/dist/index78.js +53 -2
  132. package/dist/index79.js +2587 -2
  133. package/dist/index8.js +31 -30
  134. package/dist/index80.js +2 -2
  135. package/dist/index81.js +1 -1
  136. package/dist/index82.js +2 -49
  137. package/dist/index83.js +3 -44
  138. package/dist/index84.js +22 -2587
  139. package/dist/index85.js +124 -51
  140. package/dist/index86.js +2 -7207
  141. package/dist/index87.js +2 -14
  142. package/dist/index88.js +2 -5324
  143. package/dist/index89.js +2 -2
  144. package/dist/index9.js +354 -4
  145. package/dist/index90.js +2 -2
  146. package/dist/index91.js +84 -2
  147. package/dist/index92.js +66 -2
  148. package/dist/index93.js +53 -2
  149. package/dist/index94.js +76 -2
  150. package/dist/index95.js +25 -1
  151. package/dist/index96.js +30 -33
  152. package/dist/index97.js +26 -1202
  153. package/dist/index98.js +26 -4
  154. package/dist/index99.js +26 -10
  155. package/dist/vitepress/components/shared/LogoGrid.vue.d.ts +11 -0
  156. package/dist/vitepress/components/shared/ShaderBackground.vue.d.ts +2 -0
  157. package/dist/vitepress/components/shared/Spacer.vue.d.ts +2 -0
  158. package/dist/vitepress/components/voidzero/Header.vue.d.ts +22 -1
  159. package/dist/vitepress/components/voidzero/Investors.vue.d.ts +2 -0
  160. package/dist/vitepress/components/voidzero/Megamenu.vue.d.ts +16 -0
  161. package/dist/vitepress/components/voidzero/Resources.vue.d.ts +31 -0
  162. package/dist/vitepress/components/voidzero/Statistics.vue.d.ts +10 -1
  163. package/package.json +4 -2
  164. package/dist/index24.js +0 -4
  165. package/dist/index25.js +0 -4
  166. package/dist/index36.js +0 -149
  167. package/dist/index38.js +0 -116
  168. package/dist/index42.js +0 -55
  169. package/dist/index44.js +0 -28
  170. package/dist/index46.js +0 -28
  171. package/dist/index58.js +0 -4
  172. package/dist/index60.js +0 -4
package/dist/index102.js CHANGED
@@ -1,6 +1,1016 @@
1
- import { createContext as o } from "./index99.js";
2
- import "vue";
3
- const [e] = o("ConfigProvider");
1
+ import { defineComponent as U, inject as J, h as A, computed as h, ref as N, shallowReactive as me, watch as ae, watchEffect as ge, onMounted as Be, onBeforeUnmount as st, reactive as oe, provide as je, toRefs as ut, useId as ct, getCurrentInstance as dt, onUnmounted as vt, onUpdated as ft, cloneVNode as gt } from "vue";
2
+ /**
3
+ * Vue 3 Carousel 0.16.0
4
+ * (c) 2025
5
+ * @license MIT
6
+ */
7
+ const Pe = ["viewport", "carousel"], re = {
8
+ "bottom-to-top": "btt",
9
+ "left-to-right": "ltr",
10
+ "right-to-left": "rtl",
11
+ "top-to-bottom": "ttb"
12
+ }, Ve = [
13
+ "ltr",
14
+ "left-to-right",
15
+ "rtl",
16
+ "right-to-left",
17
+ "ttb",
18
+ "top-to-bottom",
19
+ "btt",
20
+ "bottom-to-top"
21
+ ], mt = {
22
+ ariaGallery: "Gallery",
23
+ ariaNavigateToPage: "Navigate to page {slideNumber}",
24
+ ariaNavigateToSlide: "Navigate to slide {slideNumber}",
25
+ ariaNextSlide: "Navigate to next slide",
26
+ ariaPreviousSlide: "Navigate to previous slide",
27
+ iconArrowDown: "Arrow pointing downwards",
28
+ iconArrowLeft: "Arrow pointing to the left",
29
+ iconArrowRight: "Arrow pointing to the right",
30
+ iconArrowUp: "Arrow pointing upwards",
31
+ itemXofY: "Item {currentSlide} of {slidesCount}"
32
+ }, Fe = ["slide", "fade"], ze = [
33
+ "center",
34
+ "start",
35
+ "end",
36
+ "center-even",
37
+ "center-odd"
38
+ ], Oe = 10, ie = 0.08, y = {
39
+ autoplay: 0,
40
+ breakpointMode: Pe[0],
41
+ breakpoints: void 0,
42
+ dir: Ve[0],
43
+ enabled: !0,
44
+ gap: 0,
45
+ height: "auto",
46
+ i18n: mt,
47
+ ignoreAnimations: !1,
48
+ itemsToScroll: 1,
49
+ itemsToShow: 1,
50
+ modelValue: 0,
51
+ mouseDrag: !0,
52
+ mouseWheel: !1,
53
+ pauseAutoplayOnHover: !1,
54
+ preventExcessiveDragging: !1,
55
+ slideEffect: Fe[0],
56
+ snapAlign: ze[0],
57
+ touchDrag: !0,
58
+ transition: 300,
59
+ wrapAround: !1
60
+ }, j = Symbol("carousel"), ht = (e) => {
61
+ const t = me([]), n = (i) => {
62
+ i !== void 0 ? t.slice(i).forEach((l, d) => {
63
+ var u;
64
+ (u = l.exposed) === null || u === void 0 || u.setIndex(i + d);
65
+ }) : t.forEach((l, d) => {
66
+ var u;
67
+ (u = l.exposed) === null || u === void 0 || u.setIndex(d);
68
+ });
69
+ };
70
+ return {
71
+ cleanup: () => {
72
+ t.splice(0, t.length);
73
+ },
74
+ getSlides: () => t,
75
+ registerSlide: (i, l) => {
76
+ if (!i || i.props.isClone)
77
+ return;
78
+ const d = l ?? t.length;
79
+ t.splice(d, 0, i), n(d), e("slide-registered", { slide: i, index: d });
80
+ },
81
+ unregisterSlide: (i) => {
82
+ const l = t.indexOf(i);
83
+ l !== -1 && (e("slide-unregistered", { slide: i, index: l }), t.splice(l, 1), n(l));
84
+ }
85
+ };
86
+ };
87
+ function pt(e) {
88
+ return e.length === 0 ? 0 : e.reduce((n, i) => n + i, 0) / e.length;
89
+ }
90
+ function Ie({ slides: e, position: t, toShow: n }) {
91
+ const i = [], l = t === "before", d = l ? -n : 0, u = l ? 0 : n;
92
+ if (e.length <= 0)
93
+ return i;
94
+ for (let s = d; s < u; s++) {
95
+ const w = {
96
+ index: l ? s : s + e.length,
97
+ isClone: !0,
98
+ id: void 0,
99
+ // Make sure we don't duplicate the id which would be invalid html
100
+ key: `clone-${t}-${s}`
101
+ }, c = e[(s % e.length + e.length) % e.length].vnode, g = gt(c, w);
102
+ g.el = null, i.push(g);
103
+ }
104
+ return i;
105
+ }
106
+ const bt = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])';
107
+ function Me(e) {
108
+ if (!e.el || !(e.el instanceof Element))
109
+ return;
110
+ const t = e.el.querySelectorAll(bt);
111
+ for (const n of t)
112
+ n instanceof HTMLElement && !n.hasAttribute("disabled") && n.getAttribute("aria-hidden") !== "true" && n.setAttribute("tabindex", "-1");
113
+ }
114
+ function St(e, t) {
115
+ return Object.keys(e).filter((n) => !t.includes(n)).reduce((n, i) => (n[i] = e[i], n), {});
116
+ }
117
+ function wt(e) {
118
+ const { isVertical: t, isReversed: n, dragged: i, effectiveSlideSize: l, threshold: d } = e, u = t ? i.y : i.x;
119
+ if (u === 0)
120
+ return 0;
121
+ const s = u / l, m = Math.abs(s);
122
+ if (m < d)
123
+ return 0;
124
+ const w = m < 1 ? Math.sign(s) : Math.round(s);
125
+ return n ? w : -w;
126
+ }
127
+ function I({ val: e, max: t, min: n }) {
128
+ return t < n ? e : Math.min(Math.max(e, isNaN(n) ? e : n), isNaN(t) ? e : t);
129
+ }
130
+ function yt(e) {
131
+ const { transform: t } = window.getComputedStyle(e);
132
+ return t.split(/[(,)]/).slice(1, -1).map((n) => parseFloat(n));
133
+ }
134
+ function xt(e) {
135
+ let t = 1, n = 1;
136
+ return e.forEach((i) => {
137
+ const l = yt(i);
138
+ l.length === 6 && (t /= l[0], n /= l[3]);
139
+ }), { widthMultiplier: t, heightMultiplier: n };
140
+ }
141
+ function At(e, t) {
142
+ switch (e) {
143
+ case "start":
144
+ return 0;
145
+ case "center":
146
+ case "center-odd":
147
+ return (t - 1) / 2;
148
+ case "center-even":
149
+ return (t - 2) / 2;
150
+ case "end":
151
+ return t - 1;
152
+ default:
153
+ return 0;
154
+ }
155
+ }
156
+ function _t(e, t, n) {
157
+ switch (e) {
158
+ case "start":
159
+ return 0;
160
+ case "center":
161
+ case "center-odd":
162
+ return (n - t) / 2;
163
+ case "center-even":
164
+ return n / 2 - t;
165
+ case "end":
166
+ return n - t;
167
+ default:
168
+ return 0;
169
+ }
170
+ }
171
+ function he({ slideSize: e, viewportSize: t, align: n, itemsToShow: i }) {
172
+ return i !== void 0 ? At(n, i) : e !== void 0 && t !== void 0 ? _t(n, e, t) : 0;
173
+ }
174
+ function Ue(e = "", t = {}) {
175
+ return Object.entries(t).reduce((n, [i, l]) => n.replace(`{${i}}`, String(l)), e);
176
+ }
177
+ function We({ val: e, max: t, min: n = 0 }) {
178
+ const i = t - n + 1;
179
+ return ((e - n) % i + i) % i + n;
180
+ }
181
+ function pe(e, t = 0) {
182
+ let n = !1, i = 0, l = null;
183
+ function d(...u) {
184
+ if (n)
185
+ return;
186
+ n = !0;
187
+ const s = () => {
188
+ l = requestAnimationFrame((m) => {
189
+ m - i > t ? (i = m, e(...u), n = !1) : s();
190
+ });
191
+ };
192
+ s();
193
+ }
194
+ return d.cancel = () => {
195
+ l && (cancelAnimationFrame(l), l = null, n = !1);
196
+ }, d;
197
+ }
198
+ function le(e, t = "px") {
199
+ if (!(e == null || e === ""))
200
+ return typeof e == "number" || parseFloat(e).toString() === e ? `${e}${t}` : e;
201
+ }
202
+ const Tt = U({
203
+ name: "CarouselAria",
204
+ setup() {
205
+ const e = J(j);
206
+ return e ? () => A("div", {
207
+ class: ["carousel__liveregion", "carousel__sr-only"],
208
+ "aria-live": "polite",
209
+ "aria-atomic": "true"
210
+ }, Ue(e.config.i18n.itemXofY, {
211
+ currentSlide: e.currentSlide + 1,
212
+ slidesCount: e.slidesCount
213
+ })) : () => "";
214
+ }
215
+ });
216
+ function Et(e) {
217
+ let t = !1;
218
+ const n = { x: 0, y: 0 }, i = oe({ x: 0, y: 0 }), l = N(!1), { isSliding: d } = e, u = h(() => typeof d == "boolean" ? d : d.value), s = (c) => {
219
+ var g;
220
+ const a = c.target.tagName;
221
+ if (["INPUT", "TEXTAREA", "SELECT"].includes(a) || u.value || (t = c.type === "touchstart", t && c.touches.length > 1))
222
+ return;
223
+ if (!t && (c.preventDefault(), c.button !== 0))
224
+ return;
225
+ n.x = t ? c.touches[0].clientX : c.clientX, n.y = t ? c.touches[0].clientY : c.clientY;
226
+ const f = t ? "touchmove" : "mousemove", S = t ? "touchend" : "mouseup";
227
+ document.addEventListener(f, m, { passive: !1 }), document.addEventListener(S, w, { passive: !0 }), (g = e.onDragStart) === null || g === void 0 || g.call(e);
228
+ }, m = pe((c) => {
229
+ var g;
230
+ if (t && c.touches.length > 1)
231
+ return;
232
+ l.value = !0;
233
+ const a = t ? c.touches[0].clientX : c.clientX, f = t ? c.touches[0].clientY : c.clientY;
234
+ i.x = a - n.x, i.y = f - n.y, (g = e.onDrag) === null || g === void 0 || g.call(e, { deltaX: i.x, deltaY: i.y, isTouch: t });
235
+ }), w = () => {
236
+ var c;
237
+ m.cancel();
238
+ const g = Math.abs(i.x) + Math.abs(i.y);
239
+ !t && g > 10 && window.addEventListener("click", (S) => {
240
+ S.preventDefault(), S.stopPropagation();
241
+ }, { once: !0, capture: !0 }), (c = e.onDragEnd) === null || c === void 0 || c.call(e), i.x = 0, i.y = 0, l.value = !1;
242
+ const a = t ? "touchmove" : "mousemove", f = t ? "touchend" : "mouseup";
243
+ document.removeEventListener(a, m), document.removeEventListener(f, w);
244
+ };
245
+ return {
246
+ dragged: i,
247
+ isDragging: l,
248
+ handleDragStart: s
249
+ };
250
+ }
251
+ function Dt() {
252
+ const e = N(!1);
253
+ return {
254
+ isHover: e,
255
+ handleMouseEnter: () => {
256
+ e.value = !0;
257
+ },
258
+ handleMouseLeave: () => {
259
+ e.value = !1;
260
+ }
261
+ };
262
+ }
263
+ function Nt(e) {
264
+ const { isVertical: t, isSliding: n, config: i } = e, l = h(() => typeof t == "boolean" ? t : t.value), d = h(() => typeof n == "boolean" ? n : n.value);
265
+ return {
266
+ handleScroll: (s) => {
267
+ var m, w;
268
+ if (s.preventDefault(), !i.mouseWheel || d.value)
269
+ return;
270
+ const c = typeof i.mouseWheel == "object" && (m = i.mouseWheel.threshold) !== null && m !== void 0 ? m : Oe, g = Math.abs(s.deltaY) > c ? s.deltaY : 0, a = Math.abs(s.deltaX) > c ? s.deltaX : 0;
271
+ if (g === 0 && a === 0)
272
+ return;
273
+ const f = l.value ? g : a, E = (f !== 0 ? f : l.value ? a : g) > 0;
274
+ (w = e.onWheel) === null || w === void 0 || w.call(e, { deltaX: a, deltaY: g, isScrollingForward: E });
275
+ }
276
+ };
277
+ }
278
+ const Ct = {
279
+ // time to auto advance slides in ms
280
+ autoplay: {
281
+ default: y.autoplay,
282
+ type: Number
283
+ },
284
+ // an object to store breakpoints
285
+ breakpoints: {
286
+ default: y.breakpoints,
287
+ type: Object
288
+ },
289
+ // controls the breakpoint mode relative to the carousel container or the viewport
290
+ breakpointMode: {
291
+ default: y.breakpointMode,
292
+ validator(e) {
293
+ return Pe.includes(e);
294
+ }
295
+ },
296
+ clamp: {
297
+ type: Boolean
298
+ },
299
+ // control the direction of the carousel
300
+ dir: {
301
+ type: String,
302
+ default: y.dir,
303
+ validator(e, t) {
304
+ if (!Ve.includes(e))
305
+ return !1;
306
+ const n = e in re ? re[e] : e;
307
+ return ["ttb", "btt"].includes(n) && (!t.height || t.height === "auto") && console.warn(`[vue3-carousel]: The dir "${e}" is not supported with height "auto".`), !0;
308
+ }
309
+ },
310
+ // enable/disable the carousel component
311
+ enabled: {
312
+ default: y.enabled,
313
+ type: Boolean
314
+ },
315
+ // control the gap between slides
316
+ gap: {
317
+ default: y.gap,
318
+ type: Number
319
+ },
320
+ // set carousel height
321
+ height: {
322
+ default: y.height,
323
+ type: [Number, String]
324
+ },
325
+ // aria-labels and additional text labels
326
+ i18n: {
327
+ default: y.i18n,
328
+ type: Object
329
+ },
330
+ ignoreAnimations: {
331
+ default: !1,
332
+ type: [Array, Boolean, String]
333
+ },
334
+ // count of items to be scrolled
335
+ itemsToScroll: {
336
+ default: y.itemsToScroll,
337
+ type: Number
338
+ },
339
+ // count of items to showed per view
340
+ itemsToShow: {
341
+ default: y.itemsToShow,
342
+ type: [Number, String]
343
+ },
344
+ // slide number number of initial slide
345
+ modelValue: {
346
+ default: void 0,
347
+ type: Number
348
+ },
349
+ // toggle mouse dragging
350
+ mouseDrag: {
351
+ default: y.mouseDrag,
352
+ type: [Boolean, Object]
353
+ },
354
+ // toggle mouse wheel scrolling
355
+ mouseWheel: {
356
+ default: y.mouseWheel,
357
+ type: [Boolean, Object]
358
+ },
359
+ // control mouse scroll threshold
360
+ mouseScrollThreshold: {
361
+ default: y.mouseScrollThreshold,
362
+ type: Number
363
+ },
364
+ pauseAutoplayOnHover: {
365
+ default: y.pauseAutoplayOnHover,
366
+ type: Boolean
367
+ },
368
+ preventExcessiveDragging: {
369
+ default: !1,
370
+ type: Boolean,
371
+ validator(e, t) {
372
+ return e && t.wrapAround && console.warn('[vue3-carousel]: "preventExcessiveDragging" cannot be used with wrapAround. The setting will be ignored.'), !0;
373
+ }
374
+ },
375
+ slideEffect: {
376
+ type: String,
377
+ default: y.slideEffect,
378
+ validator(e) {
379
+ return Fe.includes(e);
380
+ }
381
+ },
382
+ // control snap position alignment
383
+ snapAlign: {
384
+ default: y.snapAlign,
385
+ validator(e) {
386
+ return ze.includes(e);
387
+ }
388
+ },
389
+ // toggle touch dragging
390
+ touchDrag: {
391
+ default: y.touchDrag,
392
+ type: [Boolean, Object]
393
+ },
394
+ // sliding transition time in ms
395
+ transition: {
396
+ default: y.transition,
397
+ type: Number
398
+ },
399
+ // control infinite scrolling mode
400
+ wrapAround: {
401
+ default: y.wrapAround,
402
+ type: Boolean
403
+ }
404
+ }, Rt = U({
405
+ name: "VueCarousel",
406
+ props: Ct,
407
+ emits: [
408
+ "before-init",
409
+ "drag",
410
+ "init",
411
+ "loop",
412
+ "slide-end",
413
+ "slide-registered",
414
+ "slide-start",
415
+ "slide-unregistered",
416
+ "update:modelValue",
417
+ "wheel"
418
+ ],
419
+ setup(e, { slots: t, emit: n, expose: i }) {
420
+ var l;
421
+ const d = ht(n), u = d.getSlides(), s = h(() => u.length), m = N(null), w = N(null), c = N(0), g = h(() => Object.assign(Object.assign(Object.assign({}, y), St(e, ["breakpoints", "modelValue"])), { i18n: Object.assign(Object.assign({}, y.i18n), e.i18n) })), a = me(Object.assign({}, g.value)), f = N((l = e.modelValue) !== null && l !== void 0 ? l : 0), S = N(f.value);
422
+ ae(f, (o) => S.value = o);
423
+ const E = N(0), $e = h(() => Math.ceil((s.value - 1) / 2)), W = h(() => s.value - 1), $ = h(() => 0);
424
+ let P = null, se = null, H = null;
425
+ const Q = h(() => c.value + a.gap), X = h(() => {
426
+ const o = a.dir || "ltr";
427
+ return o in re ? re[o] : o;
428
+ }), M = h(() => ["rtl", "btt"].includes(X.value)), O = h(() => ["ttb", "btt"].includes(X.value)), L = h(() => a.itemsToShow === "auto"), _ = h(() => O.value ? "height" : "width");
429
+ function Y() {
430
+ var o;
431
+ if (!te.value)
432
+ return;
433
+ const r = (g.value.breakpointMode === "carousel" ? (o = m.value) === null || o === void 0 ? void 0 : o.getBoundingClientRect().width : typeof window < "u" ? window.innerWidth : 0) || 0, v = Object.keys(e.breakpoints || {}).map((p) => Number(p)).sort((p, x) => +x - +p), b = {};
434
+ v.some((p) => r >= p ? (Object.assign(b, e.breakpoints[p]), b.i18n && Object.assign(b.i18n, g.value.i18n, e.breakpoints[p].i18n), !0) : !1), Object.assign(a, g.value, b), L.value || (a.itemsToShow = I({
435
+ val: Number(a.itemsToShow),
436
+ max: e.clamp ? s.value : 1 / 0,
437
+ min: 1
438
+ }));
439
+ }
440
+ const He = pe(() => {
441
+ Y(), ee(), R();
442
+ }), Z = me(/* @__PURE__ */ new Set()), C = N([]);
443
+ function Xe({ widthMultiplier: o, heightMultiplier: r }) {
444
+ C.value = u.map((v) => {
445
+ var b;
446
+ const p = (b = v.exposed) === null || b === void 0 ? void 0 : b.getBoundingRect();
447
+ return {
448
+ width: p.width * o,
449
+ height: p.height * r
450
+ };
451
+ });
452
+ }
453
+ const G = N({
454
+ width: 0,
455
+ height: 0
456
+ });
457
+ function Ye({ widthMultiplier: o, heightMultiplier: r }) {
458
+ var v;
459
+ const b = ((v = w.value) === null || v === void 0 ? void 0 : v.getBoundingClientRect()) || { width: 0, height: 0 };
460
+ G.value = {
461
+ width: b.width * o,
462
+ height: b.height * r
463
+ };
464
+ }
465
+ function R() {
466
+ if (!w.value)
467
+ return;
468
+ const o = xt(Z);
469
+ if (Ye(o), Xe(o), L.value)
470
+ c.value = pt(C.value.map((r) => r[_.value]));
471
+ else {
472
+ const r = Number(a.itemsToShow), v = (r - 1) * a.gap;
473
+ c.value = (G.value[_.value] - v) / r;
474
+ }
475
+ }
476
+ function ee() {
477
+ !a.wrapAround && s.value > 0 && (f.value = I({
478
+ val: f.value,
479
+ max: W.value,
480
+ min: $.value
481
+ }));
482
+ }
483
+ const ue = h(() => typeof e.ignoreAnimations == "string" ? e.ignoreAnimations.split(",") : Array.isArray(e.ignoreAnimations) ? e.ignoreAnimations : e.ignoreAnimations ? !1 : []);
484
+ ge(() => ee()), ge(() => {
485
+ R();
486
+ });
487
+ let V;
488
+ const Se = (o) => {
489
+ const r = o.target;
490
+ if (!(!r?.contains(m.value) || Array.isArray(ue.value) && ue.value.includes(o.animationName)) && (Z.add(r), !V)) {
491
+ const v = () => {
492
+ V = requestAnimationFrame(() => {
493
+ R(), v();
494
+ });
495
+ };
496
+ v();
497
+ }
498
+ }, we = (o) => {
499
+ const r = o.target;
500
+ r && Z.delete(r), V && Z.size === 0 && (cancelAnimationFrame(V), R());
501
+ }, te = N(!1);
502
+ typeof document < "u" && ge(() => {
503
+ te.value && ue.value !== !1 ? (document.addEventListener("animationstart", Se), document.addEventListener("animationend", we)) : (document.removeEventListener("animationstart", Se), document.removeEventListener("animationend", we));
504
+ }), Be(() => {
505
+ te.value = !0, Y(), _e(), m.value && (H = new ResizeObserver(He), H.observe(m.value)), n("init");
506
+ }), st(() => {
507
+ te.value = !1, d.cleanup(), se && clearTimeout(se), V && cancelAnimationFrame(V), P && clearInterval(P), H && (H.disconnect(), H = null), typeof document < "u" && Ae(), m.value && (m.value.removeEventListener("transitionend", R), m.value.removeEventListener("animationiteration", R));
508
+ });
509
+ const { isHover: ye, handleMouseEnter: Ge, handleMouseLeave: qe } = Dt(), xe = pe((o) => {
510
+ if (!o.ctrlKey)
511
+ switch (o.key) {
512
+ case "ArrowLeft":
513
+ case "ArrowUp":
514
+ O.value === o.key.endsWith("Up") && (M.value ? B(!0) : F(!0));
515
+ break;
516
+ case "ArrowRight":
517
+ case "ArrowDown":
518
+ O.value === o.key.endsWith("Down") && (M.value ? F(!0) : B(!0));
519
+ break;
520
+ }
521
+ }, 200), Ae = () => {
522
+ document.removeEventListener("keydown", xe);
523
+ }, Ke = () => {
524
+ document.addEventListener("keydown", xe);
525
+ };
526
+ function _e() {
527
+ !a.autoplay || a.autoplay <= 0 || (P = setInterval(() => {
528
+ a.pauseAutoplayOnHover && ye.value || B();
529
+ }, a.autoplay));
530
+ }
531
+ function ce() {
532
+ Te(), _e();
533
+ }
534
+ function Te() {
535
+ P && (clearInterval(P), P = null);
536
+ }
537
+ const k = N(!1), Je = ({ deltaX: o, deltaY: r, isTouch: v }) => {
538
+ var b, p, x, T;
539
+ n("drag", { deltaX: o, deltaY: r });
540
+ const D = v ? typeof a.touchDrag == "object" && (p = (b = a.touchDrag) === null || b === void 0 ? void 0 : b.threshold) !== null && p !== void 0 ? p : ie : typeof a.mouseDrag == "object" && (T = (x = a.mouseDrag) === null || x === void 0 ? void 0 : x.threshold) !== null && T !== void 0 ? T : ie, K = wt({
541
+ isVertical: O.value,
542
+ isReversed: M.value,
543
+ dragged: { x: o, y: r },
544
+ effectiveSlideSize: Q.value,
545
+ threshold: D
546
+ });
547
+ K !== 0 && (S.value = a.wrapAround ? f.value + K : I({
548
+ val: f.value + K,
549
+ max: W.value,
550
+ min: $.value
551
+ }));
552
+ }, Qe = () => z(S.value), { dragged: Ee, isDragging: Ze, handleDragStart: De } = Et({
553
+ isSliding: k,
554
+ onDrag: Je,
555
+ onDragEnd: Qe
556
+ }), et = ({ deltaX: o, deltaY: r, isScrollingForward: v }) => {
557
+ n("wheel", { deltaX: o, deltaY: r }), v ? M.value ? F() : B() : M.value ? B() : F();
558
+ }, { handleScroll: tt } = Nt({
559
+ isVertical: O,
560
+ isSliding: k,
561
+ config: a,
562
+ onWheel: et
563
+ });
564
+ function B(o = !1) {
565
+ z(f.value + a.itemsToScroll, o);
566
+ }
567
+ function F(o = !1) {
568
+ z(f.value - a.itemsToScroll, o);
569
+ }
570
+ function z(o, r = !1) {
571
+ if (!r && k.value)
572
+ return;
573
+ const v = (a.wrapAround ? We : I)({
574
+ val: o,
575
+ max: W.value,
576
+ min: $.value
577
+ });
578
+ if (f.value === v)
579
+ return;
580
+ E.value = f.value, n("slide-start", {
581
+ slidingToIndex: o,
582
+ currentSlideIndex: f.value,
583
+ prevSlideIndex: E.value,
584
+ slidesCount: s.value
585
+ }), Te(), k.value = !0, f.value = o, v !== o && Ne.pause(), n("update:modelValue", v), se = setTimeout(() => {
586
+ a.wrapAround && v !== o && (Ne.resume(), f.value = v, n("loop", {
587
+ currentSlideIndex: f.value,
588
+ slidingToIndex: o
589
+ })), n("slide-end", {
590
+ currentSlideIndex: f.value,
591
+ prevSlideIndex: E.value,
592
+ slidesCount: s.value
593
+ }), k.value = !1, ce();
594
+ }, a.transition);
595
+ }
596
+ function nt() {
597
+ Y(), ee(), R(), ce();
598
+ }
599
+ ae(() => [g.value, e.breakpoints], () => Y(), { deep: !0 }), ae(() => e.autoplay, () => ce());
600
+ const Ne = ae(() => e.modelValue, (o) => {
601
+ o !== f.value && z(Number(o), !0);
602
+ });
603
+ n("before-init");
604
+ const q = h(() => {
605
+ if (!a.wrapAround)
606
+ return { before: 0, after: 0 };
607
+ if (L.value)
608
+ return { before: u.length, after: u.length };
609
+ const o = Number(a.itemsToShow), r = Math.ceil(o + (a.itemsToScroll - 1)), v = r - S.value, b = r - (s.value - (S.value + 1));
610
+ return {
611
+ before: Math.max(0, v),
612
+ after: Math.max(0, b)
613
+ };
614
+ }), de = h(() => q.value.before ? L.value ? C.value.slice(-1 * q.value.before).reduce((o, r) => o + r[_.value] + a.gap, 0) * -1 : q.value.before * Q.value * -1 : 0), ve = h(() => {
615
+ var o;
616
+ if (L.value) {
617
+ const r = (f.value % u.length + u.length) % u.length;
618
+ return he({
619
+ slideSize: (o = C.value[r]) === null || o === void 0 ? void 0 : o[_.value],
620
+ viewportSize: G.value[_.value],
621
+ align: a.snapAlign
622
+ });
623
+ }
624
+ return he({
625
+ align: a.snapAlign,
626
+ itemsToShow: +a.itemsToShow
627
+ });
628
+ }), ne = h(() => {
629
+ let o = 0;
630
+ if (L.value) {
631
+ if (f.value < 0 ? o = C.value.slice(f.value).reduce((r, v) => r + v[_.value] + a.gap, 0) * -1 : o = C.value.slice(0, f.value).reduce((r, v) => r + v[_.value] + a.gap, 0), o -= ve.value, !a.wrapAround) {
632
+ const r = C.value.reduce((v, b) => v + b[_.value] + a.gap, 0) - G.value[_.value] - a.gap;
633
+ o = I({
634
+ val: o,
635
+ max: r,
636
+ min: 0
637
+ });
638
+ }
639
+ } else {
640
+ let r = f.value - ve.value;
641
+ a.wrapAround || (r = I({
642
+ val: r,
643
+ max: s.value - +a.itemsToShow,
644
+ min: 0
645
+ })), o = r * Q.value;
646
+ }
647
+ return o * (M.value ? 1 : -1);
648
+ }), at = h(() => {
649
+ var o, r;
650
+ if (!L.value) {
651
+ const p = f.value - ve.value;
652
+ return a.wrapAround ? {
653
+ min: Math.floor(p),
654
+ max: Math.ceil(p + Number(a.itemsToShow) - 1)
655
+ } : {
656
+ min: Math.floor(I({
657
+ val: p,
658
+ max: s.value - Number(a.itemsToShow),
659
+ min: 0
660
+ })),
661
+ max: Math.ceil(I({
662
+ val: p + Number(a.itemsToShow) - 1,
663
+ max: s.value - 1,
664
+ min: 0
665
+ }))
666
+ };
667
+ }
668
+ let v = 0;
669
+ {
670
+ let p = 0, x = 0 - q.value.before;
671
+ const T = Math.abs(ne.value + de.value);
672
+ for (; p <= T; ) {
673
+ const D = (x % u.length + u.length) % u.length;
674
+ p += ((o = C.value[D]) === null || o === void 0 ? void 0 : o[_.value]) + a.gap, x++;
675
+ }
676
+ v = x - 1;
677
+ }
678
+ let b = 0;
679
+ {
680
+ let p = v, x = 0;
681
+ for (p < 0 ? x = C.value.slice(0, p).reduce((T, D) => T + D[_.value] + a.gap, 0) - Math.abs(ne.value + de.value) : x = C.value.slice(0, p).reduce((T, D) => T + D[_.value] + a.gap, 0) - Math.abs(ne.value); x < G.value[_.value]; ) {
682
+ const T = (p % u.length + u.length) % u.length;
683
+ x += ((r = C.value[T]) === null || r === void 0 ? void 0 : r[_.value]) + a.gap, p++;
684
+ }
685
+ b = p - 1;
686
+ }
687
+ return {
688
+ min: Math.floor(v),
689
+ max: Math.ceil(b)
690
+ };
691
+ }), it = h(() => {
692
+ if (a.slideEffect === "fade")
693
+ return;
694
+ const o = O.value ? "Y" : "X", r = O.value ? Ee.y : Ee.x;
695
+ let v = ne.value + r;
696
+ if (!a.wrapAround && a.preventExcessiveDragging) {
697
+ let b = 0;
698
+ L.value ? b = C.value.reduce((T, D) => T + D[_.value], 0) : b = (s.value - Number(a.itemsToShow)) * Q.value;
699
+ const p = M.value ? 0 : -1 * b, x = M.value ? b : 0;
700
+ v = I({
701
+ val: v,
702
+ min: p,
703
+ max: x
704
+ });
705
+ }
706
+ return `translate${o}(${v}px)`;
707
+ }), lt = h(() => ({
708
+ "--vc-carousel-height": le(a.height),
709
+ "--vc-cloned-offset": le(de.value),
710
+ "--vc-slide-gap": le(a.gap),
711
+ "--vc-transition-duration": k.value ? le(a.transition, "ms") : void 0
712
+ })), Ce = oe({
713
+ activeSlide: S,
714
+ config: a,
715
+ currentSlide: f,
716
+ isSliding: k,
717
+ isVertical: O,
718
+ maxSlide: W,
719
+ minSlide: $,
720
+ nav: { slideTo: z, next: B, prev: F },
721
+ normalizedDir: X,
722
+ slideRegistry: d,
723
+ slideSize: c,
724
+ slides: u,
725
+ slidesCount: s,
726
+ viewport: w,
727
+ visibleRange: at
728
+ });
729
+ je(j, Ce);
730
+ const fe = oe({
731
+ config: a,
732
+ currentSlide: f,
733
+ maxSlide: W,
734
+ middleSlide: $e,
735
+ minSlide: $,
736
+ slideSize: c,
737
+ slidesCount: s
738
+ });
739
+ return i(oe(Object.assign({
740
+ data: fe,
741
+ next: B,
742
+ prev: F,
743
+ restartCarousel: nt,
744
+ slideTo: z,
745
+ updateBreakpointsConfig: Y,
746
+ updateSlideSize: R,
747
+ updateSlidesData: ee
748
+ }, ut(Ce)))), () => {
749
+ var o;
750
+ const r = t.default || t.slides, v = r?.(fe) || [], { before: b, after: p } = q.value, x = Ie({
751
+ slides: u,
752
+ position: "before",
753
+ toShow: b
754
+ }), T = Ie({
755
+ slides: u,
756
+ position: "after",
757
+ toShow: p
758
+ }), D = [...x, ...v, ...T];
759
+ if (!a.enabled || !D.length)
760
+ return A("section", {
761
+ ref: m,
762
+ class: ["carousel", "is-disabled"]
763
+ }, D);
764
+ const K = ((o = t.addons) === null || o === void 0 ? void 0 : o.call(t, fe)) || [], ot = A("ol", {
765
+ class: "carousel__track",
766
+ onMousedownCapture: a.mouseDrag ? De : null,
767
+ onTouchstartPassiveCapture: a.touchDrag ? De : null,
768
+ onWheel: a.mouseWheel ? tt : null,
769
+ style: { transform: it.value }
770
+ }, D), rt = A("div", { class: "carousel__viewport", ref: w }, ot);
771
+ return A("section", {
772
+ ref: m,
773
+ class: [
774
+ "carousel",
775
+ `is-${X.value}`,
776
+ `is-effect-${a.slideEffect}`,
777
+ {
778
+ "is-dragging": Ze.value,
779
+ "is-hover": ye.value,
780
+ "is-sliding": k.value,
781
+ "is-vertical": O.value
782
+ }
783
+ ],
784
+ dir: X.value,
785
+ style: lt.value,
786
+ "aria-label": a.i18n.ariaGallery,
787
+ tabindex: "0",
788
+ onBlur: Ae,
789
+ onFocus: Ke,
790
+ onMouseenter: Ge,
791
+ onMouseleave: qe
792
+ }, [rt, K, A(Tt)]);
793
+ };
794
+ }
795
+ });
796
+ var be;
797
+ (function(e) {
798
+ e.arrowDown = "arrowDown", e.arrowLeft = "arrowLeft", e.arrowRight = "arrowRight", e.arrowUp = "arrowUp";
799
+ })(be || (be = {}));
800
+ const Le = (e) => `icon${e.charAt(0).toUpperCase() + e.slice(1)}`, Ot = {
801
+ arrowDown: "M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",
802
+ arrowLeft: "M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z",
803
+ arrowRight: "M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",
804
+ arrowUp: "M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"
805
+ };
806
+ function It(e) {
807
+ return e in be;
808
+ }
809
+ const Re = (e) => e && It(e), ke = U({
810
+ props: {
811
+ name: {
812
+ type: String,
813
+ required: !0,
814
+ validator: Re
815
+ },
816
+ title: {
817
+ type: String,
818
+ default: (e) => e.name ? y.i18n[Le(e.name)] : ""
819
+ }
820
+ },
821
+ setup(e) {
822
+ const t = J(j, null);
823
+ return () => {
824
+ const n = e.name;
825
+ if (!n || !Re(n))
826
+ return;
827
+ const i = Ot[n], l = A("path", { d: i }), d = t?.config.i18n[Le(n)] || e.title, u = A("title", d);
828
+ return A("svg", {
829
+ class: "carousel__icon",
830
+ viewBox: "0 0 24 24",
831
+ role: "img",
832
+ "aria-label": d
833
+ }, [u, l]);
834
+ };
835
+ }
836
+ }), kt = U({
837
+ name: "CarouselNavigation",
838
+ inheritAttrs: !1,
839
+ props: {
840
+ carousel: {
841
+ type: Object
842
+ }
843
+ },
844
+ setup(e, { slots: t, attrs: n }) {
845
+ let i = J(j, null);
846
+ const { next: l, prev: d } = t, u = () => ({
847
+ btt: "arrowDown",
848
+ ltr: "arrowLeft",
849
+ rtl: "arrowRight",
850
+ ttb: "arrowUp"
851
+ })[i.normalizedDir], s = () => ({
852
+ btt: "arrowUp",
853
+ ltr: "arrowRight",
854
+ rtl: "arrowLeft",
855
+ ttb: "arrowDown"
856
+ })[i.normalizedDir], m = h(() => !i.config.wrapAround && i.currentSlide <= i.minSlide), w = h(() => !i.config.wrapAround && i.currentSlide >= i.maxSlide);
857
+ return () => {
858
+ if (e.carousel && (i = e.carousel), !i)
859
+ return console.warn("[vue3-carousel]: A carousel component must be provided for the navigation component to display"), "";
860
+ const { i18n: c } = i.config, g = A("button", Object.assign(Object.assign({ type: "button", disabled: m.value, "aria-label": c.ariaPreviousSlide, title: c.ariaPreviousSlide, onClick: i.nav.prev }, n), { class: [
861
+ "carousel__prev",
862
+ { "carousel__prev--disabled": m.value },
863
+ n.class
864
+ ] }), d?.() || A(ke, { name: u() })), a = A("button", Object.assign(Object.assign({ type: "button", disabled: w.value, "aria-label": c.ariaNextSlide, title: c.ariaNextSlide, onClick: i.nav.next }, n), { class: [
865
+ "carousel__next",
866
+ { "carousel__next--disabled": w.value },
867
+ n.class
868
+ ] }), l?.() || A(ke, { name: s() }));
869
+ return [g, a];
870
+ };
871
+ }
872
+ }), Bt = U({
873
+ name: "CarouselPagination",
874
+ props: {
875
+ disableOnClick: {
876
+ type: Boolean
877
+ },
878
+ paginateByItemsToShow: {
879
+ type: Boolean
880
+ },
881
+ carousel: {
882
+ type: Object
883
+ }
884
+ },
885
+ setup(e) {
886
+ let t = J(j, null);
887
+ const n = h(() => t.config.itemsToShow), i = h(() => he({
888
+ align: t.config.snapAlign,
889
+ itemsToShow: n.value
890
+ })), l = h(() => e.paginateByItemsToShow && n.value > 1), d = h(() => Math.ceil((t.activeSlide - i.value) / n.value)), u = h(() => Math.ceil(t.slidesCount / n.value)), s = (m) => We(l.value ? {
891
+ val: d.value,
892
+ max: u.value - 1,
893
+ min: 0
894
+ } : {
895
+ val: t.activeSlide,
896
+ max: t.maxSlide,
897
+ min: t.minSlide
898
+ }) === m;
899
+ return () => {
900
+ var m, w;
901
+ if (e.carousel && (t = e.carousel), !t)
902
+ return console.warn("[vue3-carousel]: A carousel component must be provided for the pagination component to display"), "";
903
+ const c = [];
904
+ for (let g = l.value ? 0 : t.minSlide; g <= (l.value ? u.value - 1 : t.maxSlide); g++) {
905
+ const a = Ue(t.config.i18n[l.value ? "ariaNavigateToPage" : "ariaNavigateToSlide"], {
906
+ slideNumber: g + 1
907
+ }), f = s(g), S = A("button", {
908
+ type: "button",
909
+ class: {
910
+ "carousel__pagination-button": !0,
911
+ "carousel__pagination-button--active": f
912
+ },
913
+ "aria-label": a,
914
+ "aria-pressed": f,
915
+ "aria-controls": (w = (m = t.slides[g]) === null || m === void 0 ? void 0 : m.exposed) === null || w === void 0 ? void 0 : w.id,
916
+ title: a,
917
+ disabled: e.disableOnClick,
918
+ onClick: () => t.nav.slideTo(l.value ? Math.floor(g * +t.config.itemsToShow + i.value) : g)
919
+ }), E = A("li", { class: "carousel__pagination-item", key: g }, S);
920
+ c.push(E);
921
+ }
922
+ return A("ol", { class: "carousel__pagination" }, c);
923
+ };
924
+ }
925
+ }), jt = U({
926
+ name: "CarouselSlide",
927
+ props: {
928
+ id: {
929
+ type: String,
930
+ default: (e) => e.isClone ? void 0 : ct()
931
+ },
932
+ index: {
933
+ type: Number,
934
+ default: void 0
935
+ },
936
+ isClone: {
937
+ type: Boolean,
938
+ default: !1
939
+ }
940
+ },
941
+ setup(e, { attrs: t, slots: n, expose: i }) {
942
+ const l = J(j);
943
+ if (je(j, void 0), !l)
944
+ return () => "";
945
+ const d = N(e.index), u = (S) => {
946
+ d.value = S;
947
+ }, s = dt(), m = () => {
948
+ const S = s.vnode.el;
949
+ return S ? S.getBoundingClientRect() : { width: 0, height: 0 };
950
+ };
951
+ i({
952
+ id: e.id,
953
+ setIndex: u,
954
+ getBoundingRect: m
955
+ });
956
+ const w = h(() => d.value === l.activeSlide), c = h(() => d.value === l.activeSlide - 1), g = h(() => d.value === l.activeSlide + 1), a = h(() => d.value >= l.visibleRange.min && d.value <= l.visibleRange.max), f = h(() => {
957
+ if (l.config.itemsToShow === "auto")
958
+ return;
959
+ const S = l.config.itemsToShow, E = l.config.gap > 0 && S > 1 ? `calc(${100 / S}% - ${l.config.gap * (S - 1) / S}px)` : `${100 / S}%`;
960
+ return l.isVertical ? { height: E } : { width: E };
961
+ });
962
+ return l.slideRegistry.registerSlide(s, e.index), vt(() => {
963
+ l.slideRegistry.unregisterSlide(s);
964
+ }), e.isClone && (Be(() => {
965
+ Me(s.vnode);
966
+ }), ft(() => {
967
+ Me(s.vnode);
968
+ })), () => {
969
+ var S, E;
970
+ return l.config.enabled ? A("li", {
971
+ style: [t.style, Object.assign({}, f.value)],
972
+ class: {
973
+ carousel__slide: !0,
974
+ "carousel__slide--clone": e.isClone,
975
+ "carousel__slide--visible": a.value,
976
+ "carousel__slide--active": w.value,
977
+ "carousel__slide--prev": c.value,
978
+ "carousel__slide--next": g.value,
979
+ "carousel__slide--sliding": l.isSliding
980
+ },
981
+ onFocusin: () => {
982
+ l.viewport && (l.viewport.scrollLeft = 0), l.nav.slideTo(d.value);
983
+ },
984
+ id: e.isClone ? void 0 : e.id,
985
+ "aria-hidden": e.isClone || void 0
986
+ }, (E = n.default) === null || E === void 0 ? void 0 : E.call(n, {
987
+ currentIndex: d.value,
988
+ isActive: w.value,
989
+ isClone: e.isClone,
990
+ isPrev: c.value,
991
+ isNext: g.value,
992
+ isSliding: l.isSliding,
993
+ isVisible: a.value
994
+ })) : (S = n.default) === null || S === void 0 ? void 0 : S.call(n);
995
+ };
996
+ }
997
+ });
4
998
  export {
5
- e as injectConfigProviderContext
999
+ Pe as BREAKPOINT_MODE_OPTIONS,
1000
+ Rt as Carousel,
1001
+ y as DEFAULT_CONFIG,
1002
+ ie as DEFAULT_DRAG_THRESHOLD,
1003
+ Oe as DEFAULT_MOUSE_WHEEL_THRESHOLD,
1004
+ re as DIR_MAP,
1005
+ Ve as DIR_OPTIONS,
1006
+ mt as I18N_DEFAULT_CONFIG,
1007
+ ke as Icon,
1008
+ kt as Navigation,
1009
+ Bt as Pagination,
1010
+ Fe as SLIDE_EFFECTS,
1011
+ ze as SNAP_ALIGN_OPTIONS,
1012
+ jt as Slide,
1013
+ ht as createSlideRegistry,
1014
+ Ot as icons,
1015
+ j as injectCarousel
6
1016
  };