@equal-experts/kuat-vue 0.9.2 → 0.11.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.
@@ -0,0 +1,1450 @@
1
+ import { isRef as Qt, shallowRef as Jt, onMounted as vn, onBeforeUnmount as Sn, watch as _t, defineComponent as ht, ref as Yt, computed as $, provide as yn, toRef as Zt, createElementBlock as it, openBlock as ct, normalizeClass as vt, createCommentVNode as xn, createElementVNode as Ln, renderSlot as Et, inject as Tt, unref as rt, createVNode as sn } from "vue";
2
+ import { c as St } from "./utils-DLUjLwnh.js";
3
+ import { ChevronLeft as _n, ChevronRight as En } from "lucide-vue-next";
4
+ function In(t) {
5
+ return Object.prototype.toString.call(t) === "[object Object]";
6
+ }
7
+ function Wt(t) {
8
+ return In(t) || Array.isArray(t);
9
+ }
10
+ function Tn() {
11
+ return !!(typeof window < "u" && window.document && window.document.createElement);
12
+ }
13
+ function Bt(t, n) {
14
+ const e = Object.keys(t), r = Object.keys(n);
15
+ if (e.length !== r.length) return !1;
16
+ const c = JSON.stringify(Object.keys(t.breakpoints || {})), o = JSON.stringify(Object.keys(n.breakpoints || {}));
17
+ return c !== o ? !1 : e.every((s) => {
18
+ const u = t[s], i = n[s];
19
+ return typeof u == "function" ? `${u}` == `${i}` : !Wt(u) || !Wt(i) ? u === i : Bt(u, i);
20
+ });
21
+ }
22
+ function tn(t) {
23
+ return t.concat().sort((n, e) => n.name > e.name ? 1 : -1).map((n) => n.options);
24
+ }
25
+ function An(t, n) {
26
+ if (t.length !== n.length) return !1;
27
+ const e = tn(t), r = tn(n);
28
+ return e.every((c, o) => {
29
+ const s = r[o];
30
+ return Bt(c, s);
31
+ });
32
+ }
33
+ function Ft(t) {
34
+ return typeof t == "number";
35
+ }
36
+ function wt(t) {
37
+ return typeof t == "string";
38
+ }
39
+ function At(t) {
40
+ return typeof t == "boolean";
41
+ }
42
+ function nn(t) {
43
+ return Object.prototype.toString.call(t) === "[object Object]";
44
+ }
45
+ function O(t) {
46
+ return Math.abs(t);
47
+ }
48
+ function kt(t) {
49
+ return Math.sign(t);
50
+ }
51
+ function pt(t, n) {
52
+ return O(t - n);
53
+ }
54
+ function Cn(t, n) {
55
+ if (t === 0 || n === 0 || O(t) <= O(n)) return 0;
56
+ const e = pt(O(t), O(n));
57
+ return O(e / t);
58
+ }
59
+ function Mn(t) {
60
+ return Math.round(t * 100) / 100;
61
+ }
62
+ function mt(t) {
63
+ return gt(t).map(Number);
64
+ }
65
+ function z(t) {
66
+ return t[yt(t)];
67
+ }
68
+ function yt(t) {
69
+ return Math.max(0, t.length - 1);
70
+ }
71
+ function $t(t, n) {
72
+ return n === yt(t);
73
+ }
74
+ function en(t, n = 0) {
75
+ return Array.from(Array(t), (e, r) => n + r);
76
+ }
77
+ function gt(t) {
78
+ return Object.keys(t);
79
+ }
80
+ function on(t, n) {
81
+ return [t, n].reduce((e, r) => (gt(r).forEach((c) => {
82
+ const o = e[c], s = r[c], u = nn(o) && nn(s);
83
+ e[c] = u ? on(o, s) : s;
84
+ }), e), {});
85
+ }
86
+ function Nt(t, n) {
87
+ return typeof n.MouseEvent < "u" && t instanceof n.MouseEvent;
88
+ }
89
+ function On(t, n) {
90
+ const e = {
91
+ start: r,
92
+ center: c,
93
+ end: o
94
+ };
95
+ function r() {
96
+ return 0;
97
+ }
98
+ function c(i) {
99
+ return o(i) / 2;
100
+ }
101
+ function o(i) {
102
+ return n - i;
103
+ }
104
+ function s(i, a) {
105
+ return wt(t) ? e[t](i) : t(n, i, a);
106
+ }
107
+ return {
108
+ measure: s
109
+ };
110
+ }
111
+ function bt() {
112
+ let t = [];
113
+ function n(c, o, s, u = {
114
+ passive: !0
115
+ }) {
116
+ let i;
117
+ if ("addEventListener" in c)
118
+ c.addEventListener(o, s, u), i = () => c.removeEventListener(o, s, u);
119
+ else {
120
+ const a = c;
121
+ a.addListener(s), i = () => a.removeListener(s);
122
+ }
123
+ return t.push(i), r;
124
+ }
125
+ function e() {
126
+ t = t.filter((c) => c());
127
+ }
128
+ const r = {
129
+ add: n,
130
+ clear: e
131
+ };
132
+ return r;
133
+ }
134
+ function Pn(t, n, e, r) {
135
+ const c = bt(), o = 1e3 / 60;
136
+ let s = null, u = 0, i = 0;
137
+ function a() {
138
+ c.add(t, "visibilitychange", () => {
139
+ t.hidden && d();
140
+ });
141
+ }
142
+ function b() {
143
+ v(), c.clear();
144
+ }
145
+ function l(g) {
146
+ if (!i) return;
147
+ s || (s = g, e(), e());
148
+ const f = g - s;
149
+ for (s = g, u += f; u >= o; )
150
+ e(), u -= o;
151
+ const h = u / o;
152
+ r(h), i && (i = n.requestAnimationFrame(l));
153
+ }
154
+ function p() {
155
+ i || (i = n.requestAnimationFrame(l));
156
+ }
157
+ function v() {
158
+ n.cancelAnimationFrame(i), s = null, u = 0, i = 0;
159
+ }
160
+ function d() {
161
+ s = null, u = 0;
162
+ }
163
+ return {
164
+ init: a,
165
+ destroy: b,
166
+ start: p,
167
+ stop: v,
168
+ update: e,
169
+ render: r
170
+ };
171
+ }
172
+ function Dn(t, n) {
173
+ const e = n === "rtl", r = t === "y", c = r ? "y" : "x", o = r ? "x" : "y", s = !r && e ? -1 : 1, u = b(), i = l();
174
+ function a(d) {
175
+ const {
176
+ height: m,
177
+ width: g
178
+ } = d;
179
+ return r ? m : g;
180
+ }
181
+ function b() {
182
+ return r ? "top" : e ? "right" : "left";
183
+ }
184
+ function l() {
185
+ return r ? "bottom" : e ? "left" : "right";
186
+ }
187
+ function p(d) {
188
+ return d * s;
189
+ }
190
+ return {
191
+ scroll: c,
192
+ cross: o,
193
+ startEdge: u,
194
+ endEdge: i,
195
+ measureSize: a,
196
+ direction: p
197
+ };
198
+ }
199
+ function nt(t = 0, n = 0) {
200
+ const e = O(t - n);
201
+ function r(a) {
202
+ return a < t;
203
+ }
204
+ function c(a) {
205
+ return a > n;
206
+ }
207
+ function o(a) {
208
+ return r(a) || c(a);
209
+ }
210
+ function s(a) {
211
+ return o(a) ? r(a) ? t : n : a;
212
+ }
213
+ function u(a) {
214
+ return e ? a - e * Math.ceil((a - n) / e) : a;
215
+ }
216
+ return {
217
+ length: e,
218
+ max: n,
219
+ min: t,
220
+ constrain: s,
221
+ reachedAny: o,
222
+ reachedMax: c,
223
+ reachedMin: r,
224
+ removeOffset: u
225
+ };
226
+ }
227
+ function rn(t, n, e) {
228
+ const {
229
+ constrain: r
230
+ } = nt(0, t), c = t + 1;
231
+ let o = s(n);
232
+ function s(p) {
233
+ return e ? O((c + p) % c) : r(p);
234
+ }
235
+ function u() {
236
+ return o;
237
+ }
238
+ function i(p) {
239
+ return o = s(p), l;
240
+ }
241
+ function a(p) {
242
+ return b().set(u() + p);
243
+ }
244
+ function b() {
245
+ return rn(t, u(), e);
246
+ }
247
+ const l = {
248
+ get: u,
249
+ set: i,
250
+ add: a,
251
+ clone: b
252
+ };
253
+ return l;
254
+ }
255
+ function wn(t, n, e, r, c, o, s, u, i, a, b, l, p, v, d, m, g, f, h) {
256
+ const {
257
+ cross: y,
258
+ direction: _
259
+ } = t, C = ["INPUT", "SELECT", "TEXTAREA"], E = {
260
+ passive: !1
261
+ }, x = bt(), L = bt(), I = nt(50, 225).constrain(v.measure(20)), P = {
262
+ mouse: 300,
263
+ touch: 400
264
+ }, T = {
265
+ mouse: 500,
266
+ touch: 600
267
+ }, B = d ? 43 : 25;
268
+ let V = !1, j = 0, R = 0, Z = !1, J = !1, q = !1, U = !1;
269
+ function ut(S) {
270
+ if (!h) return;
271
+ function A(N) {
272
+ (At(h) || h(S, N)) && lt(N);
273
+ }
274
+ const D = n;
275
+ x.add(D, "dragstart", (N) => N.preventDefault(), E).add(D, "touchmove", () => {
276
+ }, E).add(D, "touchend", () => {
277
+ }).add(D, "touchstart", A).add(D, "mousedown", A).add(D, "touchcancel", w).add(D, "contextmenu", w).add(D, "click", K, !0);
278
+ }
279
+ function G() {
280
+ x.clear(), L.clear();
281
+ }
282
+ function et() {
283
+ const S = U ? e : n;
284
+ L.add(S, "touchmove", F, E).add(S, "touchend", w).add(S, "mousemove", F, E).add(S, "mouseup", w);
285
+ }
286
+ function st(S) {
287
+ const A = S.nodeName || "";
288
+ return C.includes(A);
289
+ }
290
+ function X() {
291
+ return (d ? T : P)[U ? "mouse" : "touch"];
292
+ }
293
+ function at(S, A) {
294
+ const D = l.add(kt(S) * -1), N = b.byDistance(S, !d).distance;
295
+ return d || O(S) < I ? N : g && A ? N * 0.5 : b.byIndex(D.get(), 0).distance;
296
+ }
297
+ function lt(S) {
298
+ const A = Nt(S, r);
299
+ U = A, q = d && A && !S.buttons && V, V = pt(c.get(), s.get()) >= 2, !(A && S.button !== 0) && (st(S.target) || (Z = !0, o.pointerDown(S), a.useFriction(0).useDuration(0), c.set(s), et(), j = o.readPoint(S), R = o.readPoint(S, y), p.emit("pointerDown")));
300
+ }
301
+ function F(S) {
302
+ if (!Nt(S, r) && S.touches.length >= 2) return w(S);
303
+ const D = o.readPoint(S), N = o.readPoint(S, y), H = pt(D, j), Q = pt(N, R);
304
+ if (!J && !U && (!S.cancelable || (J = H > Q, !J)))
305
+ return w(S);
306
+ const W = o.pointerMove(S);
307
+ H > m && (q = !0), a.useFriction(0.3).useDuration(0.75), u.start(), c.add(_(W)), S.preventDefault();
308
+ }
309
+ function w(S) {
310
+ const D = b.byDistance(0, !1).index !== l.get(), N = o.pointerUp(S) * X(), H = at(_(N), D), Q = Cn(N, H), W = B - 10 * Q, Y = f + Q / 50;
311
+ J = !1, Z = !1, L.clear(), a.useDuration(W).useFriction(Y), i.distance(H, !d), U = !1, p.emit("pointerUp");
312
+ }
313
+ function K(S) {
314
+ q && (S.stopPropagation(), S.preventDefault(), q = !1);
315
+ }
316
+ function k() {
317
+ return Z;
318
+ }
319
+ return {
320
+ init: ut,
321
+ destroy: G,
322
+ pointerDown: k
323
+ };
324
+ }
325
+ function Nn(t, n) {
326
+ let r, c;
327
+ function o(l) {
328
+ return l.timeStamp;
329
+ }
330
+ function s(l, p) {
331
+ const d = `client${(p || t.scroll) === "x" ? "X" : "Y"}`;
332
+ return (Nt(l, n) ? l : l.touches[0])[d];
333
+ }
334
+ function u(l) {
335
+ return r = l, c = l, s(l);
336
+ }
337
+ function i(l) {
338
+ const p = s(l) - s(c), v = o(l) - o(r) > 170;
339
+ return c = l, v && (r = l), p;
340
+ }
341
+ function a(l) {
342
+ if (!r || !c) return 0;
343
+ const p = s(c) - s(r), v = o(l) - o(r), d = o(l) - o(c) > 170, m = p / v;
344
+ return v && !d && O(m) > 0.1 ? m : 0;
345
+ }
346
+ return {
347
+ pointerDown: u,
348
+ pointerMove: i,
349
+ pointerUp: a,
350
+ readPoint: s
351
+ };
352
+ }
353
+ function Bn() {
354
+ function t(e) {
355
+ const {
356
+ offsetTop: r,
357
+ offsetLeft: c,
358
+ offsetWidth: o,
359
+ offsetHeight: s
360
+ } = e;
361
+ return {
362
+ top: r,
363
+ right: c + o,
364
+ bottom: r + s,
365
+ left: c,
366
+ width: o,
367
+ height: s
368
+ };
369
+ }
370
+ return {
371
+ measure: t
372
+ };
373
+ }
374
+ function Fn(t) {
375
+ function n(r) {
376
+ return t * (r / 100);
377
+ }
378
+ return {
379
+ measure: n
380
+ };
381
+ }
382
+ function kn(t, n, e, r, c, o, s) {
383
+ const u = [t].concat(r);
384
+ let i, a, b = [], l = !1;
385
+ function p(g) {
386
+ return c.measureSize(s.measure(g));
387
+ }
388
+ function v(g) {
389
+ if (!o) return;
390
+ a = p(t), b = r.map(p);
391
+ function f(h) {
392
+ for (const y of h) {
393
+ if (l) return;
394
+ const _ = y.target === t, C = r.indexOf(y.target), E = _ ? a : b[C], x = p(_ ? t : r[C]);
395
+ if (O(x - E) >= 0.5) {
396
+ g.reInit(), n.emit("resize");
397
+ break;
398
+ }
399
+ }
400
+ }
401
+ i = new ResizeObserver((h) => {
402
+ (At(o) || o(g, h)) && f(h);
403
+ }), e.requestAnimationFrame(() => {
404
+ u.forEach((h) => i.observe(h));
405
+ });
406
+ }
407
+ function d() {
408
+ l = !0, i && i.disconnect();
409
+ }
410
+ return {
411
+ init: v,
412
+ destroy: d
413
+ };
414
+ }
415
+ function $n(t, n, e, r, c, o) {
416
+ let s = 0, u = 0, i = c, a = o, b = t.get(), l = 0;
417
+ function p() {
418
+ const E = r.get() - t.get(), x = !i;
419
+ let L = 0;
420
+ return x ? (s = 0, e.set(r), t.set(r), L = E) : (e.set(t), s += E / i, s *= a, b += s, t.add(s), L = b - l), u = kt(L), l = b, C;
421
+ }
422
+ function v() {
423
+ const E = r.get() - n.get();
424
+ return O(E) < 1e-3;
425
+ }
426
+ function d() {
427
+ return i;
428
+ }
429
+ function m() {
430
+ return u;
431
+ }
432
+ function g() {
433
+ return s;
434
+ }
435
+ function f() {
436
+ return y(c);
437
+ }
438
+ function h() {
439
+ return _(o);
440
+ }
441
+ function y(E) {
442
+ return i = E, C;
443
+ }
444
+ function _(E) {
445
+ return a = E, C;
446
+ }
447
+ const C = {
448
+ direction: m,
449
+ duration: d,
450
+ velocity: g,
451
+ seek: p,
452
+ settled: v,
453
+ useBaseFriction: h,
454
+ useBaseDuration: f,
455
+ useFriction: _,
456
+ useDuration: y
457
+ };
458
+ return C;
459
+ }
460
+ function zn(t, n, e, r, c) {
461
+ const o = c.measure(10), s = c.measure(50), u = nt(0.1, 0.99);
462
+ let i = !1;
463
+ function a() {
464
+ return !(i || !t.reachedAny(e.get()) || !t.reachedAny(n.get()));
465
+ }
466
+ function b(v) {
467
+ if (!a()) return;
468
+ const d = t.reachedMin(n.get()) ? "min" : "max", m = O(t[d] - n.get()), g = e.get() - n.get(), f = u.constrain(m / s);
469
+ e.subtract(g * f), !v && O(g) < o && (e.set(t.constrain(e.get())), r.useDuration(25).useBaseFriction());
470
+ }
471
+ function l(v) {
472
+ i = !v;
473
+ }
474
+ return {
475
+ shouldConstrain: a,
476
+ constrain: b,
477
+ toggleActive: l
478
+ };
479
+ }
480
+ function Vn(t, n, e, r, c) {
481
+ const o = nt(-n + t, 0), s = l(), u = b(), i = p();
482
+ function a(d, m) {
483
+ return pt(d, m) <= 1;
484
+ }
485
+ function b() {
486
+ const d = s[0], m = z(s), g = s.lastIndexOf(d), f = s.indexOf(m) + 1;
487
+ return nt(g, f);
488
+ }
489
+ function l() {
490
+ return e.map((d, m) => {
491
+ const {
492
+ min: g,
493
+ max: f
494
+ } = o, h = o.constrain(d), y = !m, _ = $t(e, m);
495
+ return y ? f : _ || a(g, h) ? g : a(f, h) ? f : h;
496
+ }).map((d) => parseFloat(d.toFixed(3)));
497
+ }
498
+ function p() {
499
+ if (n <= t + c) return [o.max];
500
+ if (r === "keepSnaps") return s;
501
+ const {
502
+ min: d,
503
+ max: m
504
+ } = u;
505
+ return s.slice(d, m);
506
+ }
507
+ return {
508
+ snapsContained: i,
509
+ scrollContainLimit: u
510
+ };
511
+ }
512
+ function jn(t, n, e) {
513
+ const r = n[0], c = e ? r - t : z(n);
514
+ return {
515
+ limit: nt(c, r)
516
+ };
517
+ }
518
+ function Rn(t, n, e, r) {
519
+ const o = n.min + 0.1, s = n.max + 0.1, {
520
+ reachedMin: u,
521
+ reachedMax: i
522
+ } = nt(o, s);
523
+ function a(p) {
524
+ return p === 1 ? i(e.get()) : p === -1 ? u(e.get()) : !1;
525
+ }
526
+ function b(p) {
527
+ if (!a(p)) return;
528
+ const v = t * (p * -1);
529
+ r.forEach((d) => d.add(v));
530
+ }
531
+ return {
532
+ loop: b
533
+ };
534
+ }
535
+ function Gn(t) {
536
+ const {
537
+ max: n,
538
+ length: e
539
+ } = t;
540
+ function r(o) {
541
+ const s = o - n;
542
+ return e ? s / -e : 0;
543
+ }
544
+ return {
545
+ get: r
546
+ };
547
+ }
548
+ function Hn(t, n, e, r, c) {
549
+ const {
550
+ startEdge: o,
551
+ endEdge: s
552
+ } = t, {
553
+ groupSlides: u
554
+ } = c, i = l().map(n.measure), a = p(), b = v();
555
+ function l() {
556
+ return u(r).map((m) => z(m)[s] - m[0][o]).map(O);
557
+ }
558
+ function p() {
559
+ return r.map((m) => e[o] - m[o]).map((m) => -O(m));
560
+ }
561
+ function v() {
562
+ return u(a).map((m) => m[0]).map((m, g) => m + i[g]);
563
+ }
564
+ return {
565
+ snaps: a,
566
+ snapsAligned: b
567
+ };
568
+ }
569
+ function qn(t, n, e, r, c, o) {
570
+ const {
571
+ groupSlides: s
572
+ } = c, {
573
+ min: u,
574
+ max: i
575
+ } = r, a = b();
576
+ function b() {
577
+ const p = s(o), v = !t || n === "keepSnaps";
578
+ return e.length === 1 ? [o] : v ? p : p.slice(u, i).map((d, m, g) => {
579
+ const f = !m, h = $t(g, m);
580
+ if (f) {
581
+ const y = z(g[0]) + 1;
582
+ return en(y);
583
+ }
584
+ if (h) {
585
+ const y = yt(o) - z(g)[0] + 1;
586
+ return en(y, z(g)[0]);
587
+ }
588
+ return d;
589
+ });
590
+ }
591
+ return {
592
+ slideRegistry: a
593
+ };
594
+ }
595
+ function Un(t, n, e, r, c) {
596
+ const {
597
+ reachedAny: o,
598
+ removeOffset: s,
599
+ constrain: u
600
+ } = r;
601
+ function i(d) {
602
+ return d.concat().sort((m, g) => O(m) - O(g))[0];
603
+ }
604
+ function a(d) {
605
+ const m = t ? s(d) : u(d), g = n.map((h, y) => ({
606
+ diff: b(h - m, 0),
607
+ index: y
608
+ })).sort((h, y) => O(h.diff) - O(y.diff)), {
609
+ index: f
610
+ } = g[0];
611
+ return {
612
+ index: f,
613
+ distance: m
614
+ };
615
+ }
616
+ function b(d, m) {
617
+ const g = [d, d + e, d - e];
618
+ if (!t) return d;
619
+ if (!m) return i(g);
620
+ const f = g.filter((h) => kt(h) === m);
621
+ return f.length ? i(f) : z(g) - e;
622
+ }
623
+ function l(d, m) {
624
+ const g = n[d] - c.get(), f = b(g, m);
625
+ return {
626
+ index: d,
627
+ distance: f
628
+ };
629
+ }
630
+ function p(d, m) {
631
+ const g = c.get() + d, {
632
+ index: f,
633
+ distance: h
634
+ } = a(g), y = !t && o(g);
635
+ if (!m || y) return {
636
+ index: f,
637
+ distance: d
638
+ };
639
+ const _ = n[f] - h, C = d + b(_, 0);
640
+ return {
641
+ index: f,
642
+ distance: C
643
+ };
644
+ }
645
+ return {
646
+ byDistance: p,
647
+ byIndex: l,
648
+ shortcut: b
649
+ };
650
+ }
651
+ function Xn(t, n, e, r, c, o, s) {
652
+ function u(l) {
653
+ const p = l.distance, v = l.index !== n.get();
654
+ o.add(p), p && (r.duration() ? t.start() : (t.update(), t.render(1), t.update())), v && (e.set(n.get()), n.set(l.index), s.emit("select"));
655
+ }
656
+ function i(l, p) {
657
+ const v = c.byDistance(l, p);
658
+ u(v);
659
+ }
660
+ function a(l, p) {
661
+ const v = n.clone().set(l), d = c.byIndex(v.get(), p);
662
+ u(d);
663
+ }
664
+ return {
665
+ distance: i,
666
+ index: a
667
+ };
668
+ }
669
+ function Kn(t, n, e, r, c, o, s, u) {
670
+ const i = {
671
+ passive: !0,
672
+ capture: !0
673
+ };
674
+ let a = 0;
675
+ function b(v) {
676
+ if (!u) return;
677
+ function d(m) {
678
+ if ((/* @__PURE__ */ new Date()).getTime() - a > 10) return;
679
+ s.emit("slideFocusStart"), t.scrollLeft = 0;
680
+ const h = e.findIndex((y) => y.includes(m));
681
+ Ft(h) && (c.useDuration(0), r.index(h, 0), s.emit("slideFocus"));
682
+ }
683
+ o.add(document, "keydown", l, !1), n.forEach((m, g) => {
684
+ o.add(m, "focus", (f) => {
685
+ (At(u) || u(v, f)) && d(g);
686
+ }, i);
687
+ });
688
+ }
689
+ function l(v) {
690
+ v.code === "Tab" && (a = (/* @__PURE__ */ new Date()).getTime());
691
+ }
692
+ return {
693
+ init: b
694
+ };
695
+ }
696
+ function dt(t) {
697
+ let n = t;
698
+ function e() {
699
+ return n;
700
+ }
701
+ function r(i) {
702
+ n = s(i);
703
+ }
704
+ function c(i) {
705
+ n += s(i);
706
+ }
707
+ function o(i) {
708
+ n -= s(i);
709
+ }
710
+ function s(i) {
711
+ return Ft(i) ? i : i.get();
712
+ }
713
+ return {
714
+ get: e,
715
+ set: r,
716
+ add: c,
717
+ subtract: o
718
+ };
719
+ }
720
+ function cn(t, n) {
721
+ const e = t.scroll === "x" ? s : u, r = n.style;
722
+ let c = null, o = !1;
723
+ function s(p) {
724
+ return `translate3d(${p}px,0px,0px)`;
725
+ }
726
+ function u(p) {
727
+ return `translate3d(0px,${p}px,0px)`;
728
+ }
729
+ function i(p) {
730
+ if (o) return;
731
+ const v = Mn(t.direction(p));
732
+ v !== c && (r.transform = e(v), c = v);
733
+ }
734
+ function a(p) {
735
+ o = !p;
736
+ }
737
+ function b() {
738
+ o || (r.transform = "", n.getAttribute("style") || n.removeAttribute("style"));
739
+ }
740
+ return {
741
+ clear: b,
742
+ to: i,
743
+ toggleActive: a
744
+ };
745
+ }
746
+ function Qn(t, n, e, r, c, o, s, u, i) {
747
+ const b = mt(c), l = mt(c).reverse(), p = f().concat(h());
748
+ function v(x, L) {
749
+ return x.reduce((I, P) => I - c[P], L);
750
+ }
751
+ function d(x, L) {
752
+ return x.reduce((I, P) => v(I, L) > 0 ? I.concat([P]) : I, []);
753
+ }
754
+ function m(x) {
755
+ return o.map((L, I) => ({
756
+ start: L - r[I] + 0.5 + x,
757
+ end: L + n - 0.5 + x
758
+ }));
759
+ }
760
+ function g(x, L, I) {
761
+ const P = m(L);
762
+ return x.map((T) => {
763
+ const B = I ? 0 : -e, V = I ? e : 0, j = I ? "end" : "start", R = P[T][j];
764
+ return {
765
+ index: T,
766
+ loopPoint: R,
767
+ slideLocation: dt(-1),
768
+ translate: cn(t, i[T]),
769
+ target: () => u.get() > R ? B : V
770
+ };
771
+ });
772
+ }
773
+ function f() {
774
+ const x = s[0], L = d(l, x);
775
+ return g(L, e, !1);
776
+ }
777
+ function h() {
778
+ const x = n - s[0] - 1, L = d(b, x);
779
+ return g(L, -e, !0);
780
+ }
781
+ function y() {
782
+ return p.every(({
783
+ index: x
784
+ }) => {
785
+ const L = b.filter((I) => I !== x);
786
+ return v(L, n) <= 0.1;
787
+ });
788
+ }
789
+ function _() {
790
+ p.forEach((x) => {
791
+ const {
792
+ target: L,
793
+ translate: I,
794
+ slideLocation: P
795
+ } = x, T = L();
796
+ T !== P.get() && (I.to(T), P.set(T));
797
+ });
798
+ }
799
+ function C() {
800
+ p.forEach((x) => x.translate.clear());
801
+ }
802
+ return {
803
+ canLoop: y,
804
+ clear: C,
805
+ loop: _,
806
+ loopPoints: p
807
+ };
808
+ }
809
+ function Jn(t, n, e) {
810
+ let r, c = !1;
811
+ function o(i) {
812
+ if (!e) return;
813
+ function a(b) {
814
+ for (const l of b)
815
+ if (l.type === "childList") {
816
+ i.reInit(), n.emit("slidesChanged");
817
+ break;
818
+ }
819
+ }
820
+ r = new MutationObserver((b) => {
821
+ c || (At(e) || e(i, b)) && a(b);
822
+ }), r.observe(t, {
823
+ childList: !0
824
+ });
825
+ }
826
+ function s() {
827
+ r && r.disconnect(), c = !0;
828
+ }
829
+ return {
830
+ init: o,
831
+ destroy: s
832
+ };
833
+ }
834
+ function Yn(t, n, e, r) {
835
+ const c = {};
836
+ let o = null, s = null, u, i = !1;
837
+ function a() {
838
+ u = new IntersectionObserver((d) => {
839
+ i || (d.forEach((m) => {
840
+ const g = n.indexOf(m.target);
841
+ c[g] = m;
842
+ }), o = null, s = null, e.emit("slidesInView"));
843
+ }, {
844
+ root: t.parentElement,
845
+ threshold: r
846
+ }), n.forEach((d) => u.observe(d));
847
+ }
848
+ function b() {
849
+ u && u.disconnect(), i = !0;
850
+ }
851
+ function l(d) {
852
+ return gt(c).reduce((m, g) => {
853
+ const f = parseInt(g), {
854
+ isIntersecting: h
855
+ } = c[f];
856
+ return (d && h || !d && !h) && m.push(f), m;
857
+ }, []);
858
+ }
859
+ function p(d = !0) {
860
+ if (d && o) return o;
861
+ if (!d && s) return s;
862
+ const m = l(d);
863
+ return d && (o = m), d || (s = m), m;
864
+ }
865
+ return {
866
+ init: a,
867
+ destroy: b,
868
+ get: p
869
+ };
870
+ }
871
+ function Zn(t, n, e, r, c, o) {
872
+ const {
873
+ measureSize: s,
874
+ startEdge: u,
875
+ endEdge: i
876
+ } = t, a = e[0] && c, b = d(), l = m(), p = e.map(s), v = g();
877
+ function d() {
878
+ if (!a) return 0;
879
+ const h = e[0];
880
+ return O(n[u] - h[u]);
881
+ }
882
+ function m() {
883
+ if (!a) return 0;
884
+ const h = o.getComputedStyle(z(r));
885
+ return parseFloat(h.getPropertyValue(`margin-${i}`));
886
+ }
887
+ function g() {
888
+ return e.map((h, y, _) => {
889
+ const C = !y, E = $t(_, y);
890
+ return C ? p[y] + b : E ? p[y] + l : _[y + 1][u] - h[u];
891
+ }).map(O);
892
+ }
893
+ return {
894
+ slideSizes: p,
895
+ slideSizesWithGaps: v,
896
+ startGap: b,
897
+ endGap: l
898
+ };
899
+ }
900
+ function Wn(t, n, e, r, c, o, s, u, i) {
901
+ const {
902
+ startEdge: a,
903
+ endEdge: b,
904
+ direction: l
905
+ } = t, p = Ft(e);
906
+ function v(f, h) {
907
+ return mt(f).filter((y) => y % h === 0).map((y) => f.slice(y, y + h));
908
+ }
909
+ function d(f) {
910
+ return f.length ? mt(f).reduce((h, y, _) => {
911
+ const C = z(h) || 0, E = C === 0, x = y === yt(f), L = c[a] - o[C][a], I = c[a] - o[y][b], P = !r && E ? l(s) : 0, T = !r && x ? l(u) : 0, B = O(I - T - (L + P));
912
+ return _ && B > n + i && h.push(y), x && h.push(f.length), h;
913
+ }, []).map((h, y, _) => {
914
+ const C = Math.max(_[y - 1] || 0);
915
+ return f.slice(C, h);
916
+ }) : [];
917
+ }
918
+ function m(f) {
919
+ return p ? v(f, e) : d(f);
920
+ }
921
+ return {
922
+ groupSlides: m
923
+ };
924
+ }
925
+ function te(t, n, e, r, c, o, s) {
926
+ const {
927
+ align: u,
928
+ axis: i,
929
+ direction: a,
930
+ startIndex: b,
931
+ loop: l,
932
+ duration: p,
933
+ dragFree: v,
934
+ dragThreshold: d,
935
+ inViewThreshold: m,
936
+ slidesToScroll: g,
937
+ skipSnaps: f,
938
+ containScroll: h,
939
+ watchResize: y,
940
+ watchSlides: _,
941
+ watchDrag: C,
942
+ watchFocus: E
943
+ } = o, x = 2, L = Bn(), I = L.measure(n), P = e.map(L.measure), T = Dn(i, a), B = T.measureSize(I), V = Fn(B), j = On(u, B), R = !l && !!h, Z = l || !!h, {
944
+ slideSizes: J,
945
+ slideSizesWithGaps: q,
946
+ startGap: U,
947
+ endGap: ut
948
+ } = Zn(T, I, P, e, Z, c), G = Wn(T, B, g, l, I, P, U, ut, x), {
949
+ snaps: et,
950
+ snapsAligned: st
951
+ } = Hn(T, j, I, P, G), X = -z(et) + z(q), {
952
+ snapsContained: at,
953
+ scrollContainLimit: lt
954
+ } = Vn(B, X, st, h, x), F = R ? at : st, {
955
+ limit: w
956
+ } = jn(X, F, l), K = rn(yt(F), b, l), k = K.clone(), M = mt(e), S = ({
957
+ dragHandler: ot,
958
+ scrollBody: Pt,
959
+ scrollBounds: Dt,
960
+ options: {
961
+ loop: Lt
962
+ }
963
+ }) => {
964
+ Lt || Dt.constrain(ot.pointerDown()), Pt.seek();
965
+ }, A = ({
966
+ scrollBody: ot,
967
+ translate: Pt,
968
+ location: Dt,
969
+ offsetLocation: Lt,
970
+ previousLocation: ln,
971
+ scrollLooper: fn,
972
+ slideLooper: dn,
973
+ dragHandler: pn,
974
+ animation: mn,
975
+ eventHandler: Gt,
976
+ scrollBounds: gn,
977
+ options: {
978
+ loop: Ht
979
+ }
980
+ }, qt) => {
981
+ const Ut = ot.settled(), bn = !gn.shouldConstrain(), Xt = Ht ? Ut : Ut && bn, Kt = Xt && !pn.pointerDown();
982
+ Kt && mn.stop();
983
+ const hn = Dt.get() * qt + ln.get() * (1 - qt);
984
+ Lt.set(hn), Ht && (fn.loop(ot.direction()), dn.loop()), Pt.to(Lt.get()), Kt && Gt.emit("settle"), Xt || Gt.emit("scroll");
985
+ }, D = Pn(r, c, () => S(Ot), (ot) => A(Ot, ot)), N = 0.68, H = F[K.get()], Q = dt(H), W = dt(H), Y = dt(H), tt = dt(H), ft = $n(Q, Y, W, tt, p, N), Ct = Un(l, F, X, w, tt), Mt = Xn(D, K, k, ft, Ct, tt, s), Vt = Gn(w), jt = bt(), un = Yn(n, e, s, m), {
986
+ slideRegistry: Rt
987
+ } = qn(R, h, F, lt, G, M), an = Kn(t, e, Rt, Mt, ft, jt, s, E), Ot = {
988
+ ownerDocument: r,
989
+ ownerWindow: c,
990
+ eventHandler: s,
991
+ containerRect: I,
992
+ slideRects: P,
993
+ animation: D,
994
+ axis: T,
995
+ dragHandler: wn(T, t, r, c, tt, Nn(T, c), Q, D, Mt, ft, Ct, K, s, V, v, d, f, N, C),
996
+ eventStore: jt,
997
+ percentOfView: V,
998
+ index: K,
999
+ indexPrevious: k,
1000
+ limit: w,
1001
+ location: Q,
1002
+ offsetLocation: Y,
1003
+ previousLocation: W,
1004
+ options: o,
1005
+ resizeHandler: kn(n, s, c, e, T, y, L),
1006
+ scrollBody: ft,
1007
+ scrollBounds: zn(w, Y, tt, ft, V),
1008
+ scrollLooper: Rn(X, w, Y, [Q, Y, W, tt]),
1009
+ scrollProgress: Vt,
1010
+ scrollSnapList: F.map(Vt.get),
1011
+ scrollSnaps: F,
1012
+ scrollTarget: Ct,
1013
+ scrollTo: Mt,
1014
+ slideLooper: Qn(T, B, X, J, q, et, F, Y, e),
1015
+ slideFocus: an,
1016
+ slidesHandler: Jn(n, s, _),
1017
+ slidesInView: un,
1018
+ slideIndexes: M,
1019
+ slideRegistry: Rt,
1020
+ slidesToScroll: G,
1021
+ target: tt,
1022
+ translate: cn(T, n)
1023
+ };
1024
+ return Ot;
1025
+ }
1026
+ function ne() {
1027
+ let t = {}, n;
1028
+ function e(a) {
1029
+ n = a;
1030
+ }
1031
+ function r(a) {
1032
+ return t[a] || [];
1033
+ }
1034
+ function c(a) {
1035
+ return r(a).forEach((b) => b(n, a)), i;
1036
+ }
1037
+ function o(a, b) {
1038
+ return t[a] = r(a).concat([b]), i;
1039
+ }
1040
+ function s(a, b) {
1041
+ return t[a] = r(a).filter((l) => l !== b), i;
1042
+ }
1043
+ function u() {
1044
+ t = {};
1045
+ }
1046
+ const i = {
1047
+ init: e,
1048
+ emit: c,
1049
+ off: s,
1050
+ on: o,
1051
+ clear: u
1052
+ };
1053
+ return i;
1054
+ }
1055
+ const ee = {
1056
+ align: "center",
1057
+ axis: "x",
1058
+ container: null,
1059
+ slides: null,
1060
+ containScroll: "trimSnaps",
1061
+ direction: "ltr",
1062
+ slidesToScroll: 1,
1063
+ inViewThreshold: 0,
1064
+ breakpoints: {},
1065
+ dragFree: !1,
1066
+ dragThreshold: 10,
1067
+ loop: !1,
1068
+ skipSnaps: !1,
1069
+ duration: 25,
1070
+ startIndex: 0,
1071
+ active: !0,
1072
+ watchDrag: !0,
1073
+ watchResize: !0,
1074
+ watchSlides: !0,
1075
+ watchFocus: !0
1076
+ };
1077
+ function se(t) {
1078
+ function n(o, s) {
1079
+ return on(o, s || {});
1080
+ }
1081
+ function e(o) {
1082
+ const s = o.breakpoints || {}, u = gt(s).filter((i) => t.matchMedia(i).matches).map((i) => s[i]).reduce((i, a) => n(i, a), {});
1083
+ return n(o, u);
1084
+ }
1085
+ function r(o) {
1086
+ return o.map((s) => gt(s.breakpoints || {})).reduce((s, u) => s.concat(u), []).map(t.matchMedia);
1087
+ }
1088
+ return {
1089
+ mergeOptions: n,
1090
+ optionsAtMedia: e,
1091
+ optionsMediaQueries: r
1092
+ };
1093
+ }
1094
+ function oe(t) {
1095
+ let n = [];
1096
+ function e(o, s) {
1097
+ return n = s.filter(({
1098
+ options: u
1099
+ }) => t.optionsAtMedia(u).active !== !1), n.forEach((u) => u.init(o, t)), s.reduce((u, i) => Object.assign(u, {
1100
+ [i.name]: i
1101
+ }), {});
1102
+ }
1103
+ function r() {
1104
+ n = n.filter((o) => o.destroy());
1105
+ }
1106
+ return {
1107
+ init: e,
1108
+ destroy: r
1109
+ };
1110
+ }
1111
+ function It(t, n, e) {
1112
+ const r = t.ownerDocument, c = r.defaultView, o = se(c), s = oe(o), u = bt(), i = ne(), {
1113
+ mergeOptions: a,
1114
+ optionsAtMedia: b,
1115
+ optionsMediaQueries: l
1116
+ } = o, {
1117
+ on: p,
1118
+ off: v,
1119
+ emit: d
1120
+ } = i, m = T;
1121
+ let g = !1, f, h = a(ee, It.globalOptions), y = a(h), _ = [], C, E, x;
1122
+ function L() {
1123
+ const {
1124
+ container: M,
1125
+ slides: S
1126
+ } = y;
1127
+ E = (wt(M) ? t.querySelector(M) : M) || t.children[0];
1128
+ const D = wt(S) ? E.querySelectorAll(S) : S;
1129
+ x = [].slice.call(D || E.children);
1130
+ }
1131
+ function I(M) {
1132
+ const S = te(t, E, x, r, c, M, i);
1133
+ if (M.loop && !S.slideLooper.canLoop()) {
1134
+ const A = Object.assign({}, M, {
1135
+ loop: !1
1136
+ });
1137
+ return I(A);
1138
+ }
1139
+ return S;
1140
+ }
1141
+ function P(M, S) {
1142
+ g || (h = a(h, M), y = b(h), _ = S || _, L(), f = I(y), l([h, ..._.map(({
1143
+ options: A
1144
+ }) => A)]).forEach((A) => u.add(A, "change", T)), y.active && (f.translate.to(f.location.get()), f.animation.init(), f.slidesInView.init(), f.slideFocus.init(k), f.eventHandler.init(k), f.resizeHandler.init(k), f.slidesHandler.init(k), f.options.loop && f.slideLooper.loop(), E.offsetParent && x.length && f.dragHandler.init(k), C = s.init(k, _)));
1145
+ }
1146
+ function T(M, S) {
1147
+ const A = G();
1148
+ B(), P(a({
1149
+ startIndex: A
1150
+ }, M), S), i.emit("reInit");
1151
+ }
1152
+ function B() {
1153
+ f.dragHandler.destroy(), f.eventStore.clear(), f.translate.clear(), f.slideLooper.clear(), f.resizeHandler.destroy(), f.slidesHandler.destroy(), f.slidesInView.destroy(), f.animation.destroy(), s.destroy(), u.clear();
1154
+ }
1155
+ function V() {
1156
+ g || (g = !0, u.clear(), B(), i.emit("destroy"), i.clear());
1157
+ }
1158
+ function j(M, S, A) {
1159
+ !y.active || g || (f.scrollBody.useBaseFriction().useDuration(S === !0 ? 0 : y.duration), f.scrollTo.index(M, A || 0));
1160
+ }
1161
+ function R(M) {
1162
+ const S = f.index.add(1).get();
1163
+ j(S, M, -1);
1164
+ }
1165
+ function Z(M) {
1166
+ const S = f.index.add(-1).get();
1167
+ j(S, M, 1);
1168
+ }
1169
+ function J() {
1170
+ return f.index.add(1).get() !== G();
1171
+ }
1172
+ function q() {
1173
+ return f.index.add(-1).get() !== G();
1174
+ }
1175
+ function U() {
1176
+ return f.scrollSnapList;
1177
+ }
1178
+ function ut() {
1179
+ return f.scrollProgress.get(f.offsetLocation.get());
1180
+ }
1181
+ function G() {
1182
+ return f.index.get();
1183
+ }
1184
+ function et() {
1185
+ return f.indexPrevious.get();
1186
+ }
1187
+ function st() {
1188
+ return f.slidesInView.get();
1189
+ }
1190
+ function X() {
1191
+ return f.slidesInView.get(!1);
1192
+ }
1193
+ function at() {
1194
+ return C;
1195
+ }
1196
+ function lt() {
1197
+ return f;
1198
+ }
1199
+ function F() {
1200
+ return t;
1201
+ }
1202
+ function w() {
1203
+ return E;
1204
+ }
1205
+ function K() {
1206
+ return x;
1207
+ }
1208
+ const k = {
1209
+ canScrollNext: J,
1210
+ canScrollPrev: q,
1211
+ containerNode: w,
1212
+ internalEngine: lt,
1213
+ destroy: V,
1214
+ off: v,
1215
+ on: p,
1216
+ emit: d,
1217
+ plugins: at,
1218
+ previousScrollSnap: et,
1219
+ reInit: m,
1220
+ rootNode: F,
1221
+ scrollNext: R,
1222
+ scrollPrev: Z,
1223
+ scrollProgress: ut,
1224
+ scrollSnapList: U,
1225
+ scrollTo: j,
1226
+ selectedScrollSnap: G,
1227
+ slideNodes: K,
1228
+ slidesInView: st,
1229
+ slidesNotInView: X
1230
+ };
1231
+ return P(n, e), setTimeout(() => i.emit("init"), 0), k;
1232
+ }
1233
+ It.globalOptions = void 0;
1234
+ function zt(t = {}, n = []) {
1235
+ const e = Qt(t), r = Qt(n);
1236
+ let c = e ? t.value : t, o = r ? n.value : n;
1237
+ const s = Jt(), u = Jt();
1238
+ function i() {
1239
+ u.value && u.value.reInit(c, o);
1240
+ }
1241
+ return vn(() => {
1242
+ !Tn() || !s.value || (It.globalOptions = zt.globalOptions, u.value = It(s.value, c, o));
1243
+ }), Sn(() => {
1244
+ u.value && u.value.destroy();
1245
+ }), e && _t(t, (a) => {
1246
+ Bt(c, a) || (c = a, i());
1247
+ }), r && _t(n, (a) => {
1248
+ An(o, a) || (o = a, i());
1249
+ }), [s, u];
1250
+ }
1251
+ zt.globalOptions = void 0;
1252
+ const xt = Symbol("carousel"), re = {
1253
+ key: 0,
1254
+ class: "carousel__controls",
1255
+ "data-slot": "carousel-controls"
1256
+ }, fe = /* @__PURE__ */ ht({
1257
+ __name: "Carousel",
1258
+ props: {
1259
+ class: {},
1260
+ opts: {},
1261
+ basis: { default: 1 },
1262
+ basisSm: {},
1263
+ basisMd: {},
1264
+ basisLg: {},
1265
+ basisXl: {},
1266
+ basis2xl: {},
1267
+ orientation: { default: "horizontal" },
1268
+ plugins: {},
1269
+ setApi: {},
1270
+ events: {}
1271
+ },
1272
+ setup(t) {
1273
+ const n = t, [e, r] = zt(
1274
+ {
1275
+ ...n.opts,
1276
+ axis: n.orientation === "horizontal" ? "x" : "y"
1277
+ },
1278
+ n.plugins
1279
+ ), c = Yt(!1), o = Yt(!1), s = () => {
1280
+ var l;
1281
+ (l = r.value) == null || l.scrollPrev();
1282
+ }, u = () => {
1283
+ var l;
1284
+ (l = r.value) == null || l.scrollNext();
1285
+ }, i = () => {
1286
+ r.value && (c.value = r.value.canScrollPrev(), o.value = r.value.canScrollNext());
1287
+ };
1288
+ _t(
1289
+ r,
1290
+ (l, p, v) => {
1291
+ var d;
1292
+ (d = n.setApi) == null || d.call(n, l), l && (i(), l.on("reInit", i).on("select", i), v(() => {
1293
+ l.off("reInit", i).off("select", i);
1294
+ }));
1295
+ },
1296
+ { immediate: !0 }
1297
+ ), _t(
1298
+ r,
1299
+ (l, p, v) => {
1300
+ if (!l || !n.events) return;
1301
+ const d = Object.entries(n.events).flatMap(([m, g]) => {
1302
+ if (!g) return [];
1303
+ const f = () => g(l, m);
1304
+ return l.on(m, f), [[m, f]];
1305
+ });
1306
+ v(() => {
1307
+ d.forEach(([m, g]) => {
1308
+ l.off(m, g);
1309
+ });
1310
+ });
1311
+ },
1312
+ { immediate: !0 }
1313
+ );
1314
+ const a = $(() => ({
1315
+ sm: n.basisSm,
1316
+ md: n.basisMd,
1317
+ lg: n.basisLg,
1318
+ xl: n.basisXl,
1319
+ "2xl": n.basis2xl
1320
+ }));
1321
+ yn(xt, {
1322
+ api: r,
1323
+ basis: Zt(() => n.basis),
1324
+ responsiveBasis: a,
1325
+ orientation: Zt(() => n.orientation),
1326
+ scrollPrev: s,
1327
+ scrollNext: u,
1328
+ canScrollPrev: c,
1329
+ canScrollNext: o
1330
+ });
1331
+ const b = $(() => St("carousel", n.class));
1332
+ return (l, p) => (ct(), it("div", {
1333
+ class: vt(b.value)
1334
+ }, [
1335
+ l.$slots.controls ? (ct(), it("div", re, [
1336
+ Et(l.$slots, "controls")
1337
+ ])) : xn("", !0),
1338
+ Ln("div", {
1339
+ ref_key: "emblaRef",
1340
+ ref: e,
1341
+ class: "carousel__viewport"
1342
+ }, [
1343
+ Et(l.$slots, "content")
1344
+ ], 512)
1345
+ ], 2));
1346
+ }
1347
+ }), de = /* @__PURE__ */ ht({
1348
+ __name: "CarouselContent",
1349
+ props: {
1350
+ class: {}
1351
+ },
1352
+ setup(t) {
1353
+ const n = t, e = Tt(xt), r = $(
1354
+ () => St(
1355
+ "carousel__content",
1356
+ `carousel__content--${(e == null ? void 0 : e.orientation.value) ?? "horizontal"}`,
1357
+ n.class
1358
+ )
1359
+ );
1360
+ return (c, o) => (ct(), it("div", {
1361
+ class: vt(r.value)
1362
+ }, [
1363
+ Et(c.$slots, "default")
1364
+ ], 2));
1365
+ }
1366
+ }), pe = /* @__PURE__ */ ht({
1367
+ __name: "CarouselItem",
1368
+ props: {
1369
+ class: {},
1370
+ basis: {},
1371
+ basisSm: {},
1372
+ basisMd: {},
1373
+ basisLg: {},
1374
+ basisXl: {},
1375
+ basis2xl: {}
1376
+ },
1377
+ setup(t) {
1378
+ const n = t, e = Tt(xt), r = $(() => n.basis ?? (e == null ? void 0 : e.basis.value) ?? 1), c = $(() => n.basisSm ?? (e == null ? void 0 : e.responsiveBasis.value.sm)), o = $(() => n.basisMd ?? (e == null ? void 0 : e.responsiveBasis.value.md)), s = $(() => n.basisLg ?? (e == null ? void 0 : e.responsiveBasis.value.lg)), u = $(() => n.basisXl ?? (e == null ? void 0 : e.responsiveBasis.value.xl)), i = $(() => n.basis2xl ?? (e == null ? void 0 : e.responsiveBasis.value["2xl"])), a = $(
1379
+ () => St(
1380
+ "carousel__item",
1381
+ `carousel__item--${(e == null ? void 0 : e.orientation.value) ?? "horizontal"}`,
1382
+ `carousel__item--basis-${r.value}`,
1383
+ c.value != null && `carousel__item--basis-sm-${c.value}`,
1384
+ o.value != null && `carousel__item--basis-md-${o.value}`,
1385
+ s.value != null && `carousel__item--basis-lg-${s.value}`,
1386
+ u.value != null && `carousel__item--basis-xl-${u.value}`,
1387
+ i.value != null && `carousel__item--basis-2xl-${i.value}`,
1388
+ n.class
1389
+ )
1390
+ );
1391
+ return (b, l) => (ct(), it("div", {
1392
+ class: vt(a.value)
1393
+ }, [
1394
+ Et(b.$slots, "default")
1395
+ ], 2));
1396
+ }
1397
+ }), ie = ["disabled"], me = /* @__PURE__ */ ht({
1398
+ __name: "CarouselPrevious",
1399
+ props: {
1400
+ class: {}
1401
+ },
1402
+ setup(t) {
1403
+ const n = t, e = Tt(xt), r = $(() => St("carousel__prev", n.class));
1404
+ return (c, o) => {
1405
+ var s;
1406
+ return ct(), it("button", {
1407
+ type: "button",
1408
+ class: vt(r.value),
1409
+ disabled: !(((s = rt(e)) == null ? void 0 : s.canScrollPrev.value) ?? !1),
1410
+ "aria-label": "Previous slide",
1411
+ onClick: o[0] || (o[0] = (u) => {
1412
+ var i;
1413
+ return (i = rt(e)) == null ? void 0 : i.scrollPrev();
1414
+ })
1415
+ }, [
1416
+ sn(rt(_n))
1417
+ ], 10, ie);
1418
+ };
1419
+ }
1420
+ }), ce = ["disabled"], ge = /* @__PURE__ */ ht({
1421
+ __name: "CarouselNext",
1422
+ props: {
1423
+ class: {}
1424
+ },
1425
+ setup(t) {
1426
+ const n = t, e = Tt(xt), r = $(() => St("carousel__next", n.class));
1427
+ return (c, o) => {
1428
+ var s;
1429
+ return ct(), it("button", {
1430
+ type: "button",
1431
+ class: vt(r.value),
1432
+ disabled: !(((s = rt(e)) == null ? void 0 : s.canScrollNext.value) ?? !1),
1433
+ "aria-label": "Next slide",
1434
+ onClick: o[0] || (o[0] = (u) => {
1435
+ var i;
1436
+ return (i = rt(e)) == null ? void 0 : i.scrollNext();
1437
+ })
1438
+ }, [
1439
+ sn(rt(En))
1440
+ ], 10, ce);
1441
+ };
1442
+ }
1443
+ });
1444
+ export {
1445
+ fe as _,
1446
+ de as a,
1447
+ pe as b,
1448
+ me as c,
1449
+ ge as d
1450
+ };