@gv-tech/ui-web 2.29.2 → 2.29.4
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.
- package/dist/accordion.cjs +1 -1
- package/dist/accordion.mjs +53 -1
- package/dist/alert-dialog.cjs +1 -1
- package/dist/alert-dialog.mjs +99 -1
- package/dist/alert.cjs +1 -1
- package/dist/alert.mjs +1 -1
- package/dist/aspect-ratio.cjs +1 -1
- package/dist/aspect-ratio.mjs +10 -1
- package/dist/attachment.cjs +1 -1
- package/dist/attachment.mjs +25 -24
- package/dist/avatar.cjs +1 -1
- package/dist/avatar.mjs +49 -1
- package/dist/badge.cjs +1 -1
- package/dist/badge.mjs +5 -4
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.mjs +12 -11
- package/dist/bubble.cjs +1 -1
- package/dist/bubble.mjs +4 -3
- package/dist/button-group.cjs +1 -1
- package/dist/button-group.mjs +12 -11
- package/dist/button.cjs +1 -1
- package/dist/button.mjs +4 -3
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.mjs +97 -1
- package/dist/card.cjs +1 -1
- package/dist/card.mjs +1 -1
- package/dist/carousel.cjs +1 -1
- package/dist/carousel.mjs +107 -1
- package/dist/chart.cjs +2 -2
- package/dist/chart.mjs +1 -1
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.mjs +19 -1
- package/dist/collapsible.cjs +1 -1
- package/dist/collapsible.mjs +12 -12
- package/dist/combobox.cjs +1 -1
- package/dist/combobox.mjs +161 -1
- package/dist/command.cjs +1 -1
- package/dist/command.mjs +89 -1
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.mjs +123 -1
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.mjs +40 -40
- package/dist/direction.cjs +1 -1
- package/dist/direction.mjs +7 -7
- package/dist/drawer.cjs +1 -1
- package/dist/drawer.mjs +1 -1
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.mjs +126 -1
- package/dist/empty.cjs +1 -1
- package/dist/empty.mjs +1 -1
- package/dist/field.cjs +1 -1
- package/dist/field.mjs +36 -36
- package/dist/form.cjs +1 -1
- package/dist/form.mjs +36 -36
- package/dist/hover-card.cjs +1 -1
- package/dist/hover-card.mjs +30 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +36 -36
- package/dist/input-group.cjs +1 -1
- package/dist/input-group.mjs +26 -26
- package/dist/input-otp.cjs +1 -1
- package/dist/input-otp.mjs +45 -1
- package/dist/input.cjs +1 -1
- package/dist/input.mjs +1 -1
- package/dist/item.cjs +1 -1
- package/dist/item.mjs +28 -27
- package/dist/kbd.cjs +1 -1
- package/dist/kbd.mjs +1 -1
- package/dist/label.cjs +1 -1
- package/dist/label.mjs +13 -1
- package/dist/marker.cjs +1 -1
- package/dist/marker.mjs +4 -3
- package/dist/menubar.cjs +1 -1
- package/dist/menubar.mjs +133 -1
- package/dist/message-scroller.cjs +1 -1
- package/dist/message-scroller.mjs +59 -1
- package/dist/message.cjs +1 -1
- package/dist/message.mjs +1 -1
- package/dist/native-select.cjs +1 -1
- package/dist/native-select.mjs +1 -1
- package/dist/navigation-menu.cjs +1 -1
- package/dist/navigation-menu.mjs +79 -1
- package/dist/pagination.cjs +1 -1
- package/dist/pagination.mjs +14 -14
- package/dist/popover.cjs +1 -1
- package/dist/popover.mjs +54 -1
- package/dist/progress.cjs +1 -1
- package/dist/progress.mjs +19 -1
- package/dist/questionnaire.cjs +1 -1
- package/dist/questionnaire.mjs +168 -1
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.mjs +25 -1
- package/dist/resizable.cjs +1 -1
- package/dist/resizable.mjs +26 -1
- package/dist/rolldown-runtime-BocRIvOZ.js +1 -0
- package/dist/scroll-area.cjs +1 -1
- package/dist/scroll-area.mjs +35 -1
- package/dist/scroll-to-top.cjs +1 -1
- package/dist/search.cjs +1 -1
- package/dist/search.mjs +1 -1
- package/dist/select.cjs +1 -1
- package/dist/select.mjs +98 -1
- package/dist/separator.cjs +1 -1
- package/dist/separator.mjs +15 -1
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.mjs +38 -38
- package/dist/{sidebar-C2ax_A0G.mjs → sidebar-DrU3nKaL.mjs} +138 -134
- package/dist/sidebar-uOtFHnBs.js +1 -0
- package/dist/sidebar.cjs +1 -1
- package/dist/sidebar.mjs +3 -1
- package/dist/skeleton.cjs +1 -1
- package/dist/skeleton.mjs +1 -1
- package/dist/slider.cjs +1 -1
- package/dist/slider.mjs +34 -1
- package/dist/spinner.cjs +1 -1
- package/dist/spinner.mjs +1 -1
- package/dist/support-fab.cjs +1 -1
- package/dist/switch.cjs +1 -1
- package/dist/switch.mjs +18 -1
- package/dist/table-of-contents.cjs +1 -1
- package/dist/table.cjs +1 -1
- package/dist/table.mjs +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.mjs +44 -1
- package/dist/text.cjs +1 -1
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.mjs +1 -1
- package/dist/{theme-toggle-BSMwXb8o.mjs → theme-toggle-9KtAIRxy.mjs} +6 -6
- package/dist/theme-toggle-DkNI3bfh.js +1 -0
- package/dist/theme-toggle.cjs +1 -1
- package/dist/theme-toggle.mjs +2 -1
- package/dist/toast.cjs +1 -1
- package/dist/toast.mjs +52 -1
- package/dist/{toaster-D2BV6jez.mjs → toaster-8RrHPtlc.mjs} +8 -8
- package/dist/toaster-AFud4l6l.js +1 -0
- package/dist/toaster.cjs +1 -1
- package/dist/toaster.mjs +2 -1
- package/dist/toggle-group.cjs +1 -1
- package/dist/toggle-group.mjs +49 -1
- package/dist/toggle.cjs +1 -1
- package/dist/toggle.mjs +35 -1
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.mjs +34 -1
- package/package.json +2 -1
- package/dist/accordion-Bd0-CZQn.js +0 -1
- package/dist/accordion-Cf6DNbLH.mjs +0 -244
- package/dist/alert-dialog-BxFH0Lwn.mjs +0 -180
- package/dist/alert-dialog-C6vNmGBL.js +0 -1
- package/dist/aspect-ratio-CdQevcDV.mjs +0 -38
- package/dist/aspect-ratio-Z4Nkc56X.js +0 -1
- package/dist/avatar-B5PWwGhY.mjs +0 -136
- package/dist/avatar-CFhYRM52.js +0 -1
- package/dist/calendar-D5qgt2o2.js +0 -1
- package/dist/calendar-DIqXNjOR.mjs +0 -3029
- package/dist/carousel-D-xEqRCX.js +0 -1
- package/dist/carousel-DPjWmM_A.mjs +0 -1169
- package/dist/checkbox-DEPm1BBc.mjs +0 -184
- package/dist/checkbox-DI9Hn_e_.js +0 -1
- package/dist/chunk-HBS6WEDP-D2-yWzIN.js +0 -1
- package/dist/chunk-HBS6WEDP-DD8ZmxRM.mjs +0 -62
- package/dist/combobox-C4y8AbZX.mjs +0 -5644
- package/dist/combobox-boXp-mix.js +0 -3
- package/dist/command-BnW6UIVk.js +0 -1
- package/dist/command-Cbsp7PBx.mjs +0 -542
- package/dist/context-menu-CwsdFpx1.js +0 -1
- package/dist/context-menu-FNgV55ZV.mjs +0 -315
- package/dist/dist-7YyzJonC.mjs +0 -39
- package/dist/dist-AlmToDtO.mjs +0 -17
- package/dist/dist-B76UOZbx.mjs +0 -40
- package/dist/dist-B7Ph9-T6.mjs +0 -44
- package/dist/dist-B7jnFMko.js +0 -1
- package/dist/dist-BOiFyvyS.mjs +0 -10
- package/dist/dist-BQkDLAY7.js +0 -1
- package/dist/dist-Bal96K8t.js +0 -1
- package/dist/dist-Blgp9lfa.js +0 -1
- package/dist/dist-BnlI08Je.mjs +0 -96
- package/dist/dist-Bu-uFV1C.mjs +0 -191
- package/dist/dist-C2BHd5i1.mjs +0 -460
- package/dist/dist-C516Vwxy.mjs +0 -116
- package/dist/dist-CBlqVBTk.js +0 -1
- package/dist/dist-CDcZ8WMF.js +0 -1
- package/dist/dist-CDksSmTD.mjs +0 -189
- package/dist/dist-CF-qVmmV.js +0 -1
- package/dist/dist-CIgGRTmJ.js +0 -1
- package/dist/dist-CJqVmdrU.js +0 -1
- package/dist/dist-COqM3IM6.mjs +0 -89
- package/dist/dist-CbWpCWog.mjs +0 -180
- package/dist/dist-CcGLWbPa.mjs +0 -19
- package/dist/dist-Cn4F8XlY.mjs +0 -220
- package/dist/dist-CoTs6T03.js +0 -1
- package/dist/dist-Co_xSt6d.js +0 -1
- package/dist/dist-Cu0GG-3j.mjs +0 -15
- package/dist/dist-DJqkhIXb.js +0 -1
- package/dist/dist-DKI-XYwI.mjs +0 -98
- package/dist/dist-DQeXXRYL.mjs +0 -201
- package/dist/dist-DW2ltK5-.js +0 -1
- package/dist/dist-DWcKY_sJ.js +0 -1
- package/dist/dist-DZiOPWLp.js +0 -1
- package/dist/dist-DdAeWIwf.js +0 -1
- package/dist/dist-DhubV_gU.mjs +0 -4
- package/dist/dist-DmY7elIQ.js +0 -1
- package/dist/dist-DoWtzxYc.mjs +0 -684
- package/dist/dist-DuQlxGyN.js +0 -1
- package/dist/dist-KFF7QKuL.js +0 -1
- package/dist/dist-RXrZgzkO.js +0 -1
- package/dist/dist-R_G5UQRm.js +0 -1
- package/dist/dist-dwRwxUPt.mjs +0 -22
- package/dist/dist-fzmUl3YX.mjs +0 -553
- package/dist/dist-hBsne-A2.mjs +0 -92
- package/dist/dist-ljiGYyay.mjs +0 -29
- package/dist/dist-pqMcQ1Nk.js +0 -1
- package/dist/dist-zmnQp5Xf.js +0 -1
- package/dist/dropdown-menu-ChuqZeix.js +0 -1
- package/dist/dropdown-menu-DU7KNoXP.mjs +0 -311
- package/dist/es2015-BooeZGhO.mjs +0 -554
- package/dist/es2015-Dggv0vx3.js +0 -41
- package/dist/floating-ui.react-dom-2hihjuTL.mjs +0 -1057
- package/dist/floating-ui.react-dom-BtFIezY4.js +0 -1
- package/dist/hover-card-BeqCs_2R.js +0 -1
- package/dist/hover-card-w8PmCyw2.mjs +0 -176
- package/dist/input-otp-Bn_Uy1mR.mjs +0 -398
- package/dist/input-otp-CTRB_0Xp.js +0 -20
- package/dist/label-Da0kELfR.mjs +0 -26
- package/dist/label-JMa1tFfC.js +0 -1
- package/dist/menubar-B7sRxpE4.mjs +0 -405
- package/dist/menubar-Bd-QKMcw.js +0 -1
- package/dist/message-scroller-B8AU0v3Y.mjs +0 -805
- package/dist/message-scroller-BJb4Mh_I.js +0 -1
- package/dist/navigation-menu-B-RwfscB.mjs +0 -638
- package/dist/navigation-menu-kPwxYZCR.js +0 -1
- package/dist/popover-Cq5cTNtC.js +0 -1
- package/dist/popover-T6Ra737i.mjs +0 -241
- package/dist/progress-e9YzxvRo.mjs +0 -90
- package/dist/progress-iUSEI7J9.js +0 -6
- package/dist/questionnaire-BLCvUX1C.mjs +0 -1137
- package/dist/questionnaire-CcymIPae.js +0 -1
- package/dist/radio-group-BKpiDcIb.mjs +0 -264
- package/dist/radio-group-DPEzCmxe.js +0 -1
- package/dist/resizable-ByF0NmN9.mjs +0 -2153
- package/dist/resizable-oL3v42zT.js +0 -1
- package/dist/rolldown-runtime-D7yIeQp2.mjs +0 -13
- package/dist/rolldown-runtime-DbbDpzbe.js +0 -1
- package/dist/scroll-area-BzNeOQ6C.mjs +0 -568
- package/dist/scroll-area-s4_ZJK59.js +0 -1
- package/dist/select-B_nRxX2Y.mjs +0 -831
- package/dist/select-j5_dph9S.js +0 -1
- package/dist/separator-Bn-3XUSJ.js +0 -1
- package/dist/separator-CCcMNS78.mjs +0 -38
- package/dist/sidebar-Cnem2n5A.js +0 -1
- package/dist/slider-B2PUTc7W.mjs +0 -484
- package/dist/slider-wZuXwuib.js +0 -1
- package/dist/switch-CD675xU7.js +0 -1
- package/dist/switch-ikzIzrme.mjs +0 -172
- package/dist/tabs-DCm5zOYB.mjs +0 -158
- package/dist/tabs-fcahDQDp.js +0 -1
- package/dist/theme-toggle-BGTJsIA-.js +0 -1
- package/dist/toast-C31v9P1K.js +0 -1
- package/dist/toast-vU5ISM03.mjs +0 -445
- package/dist/toaster-CaJyOCyC.js +0 -1
- package/dist/toggle-CSZdCCwX.js +0 -1
- package/dist/toggle-Cv9YYwLI.mjs +0 -58
- package/dist/toggle-group-RT8wyBwK.js +0 -1
- package/dist/toggle-group-qvjasXS-.mjs +0 -166
- package/dist/tooltip-7ERoN5mV.mjs +0 -386
- package/dist/tooltip-CC9_spXT.js +0 -1
|
@@ -1,1169 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./dist-DoWtzxYc.mjs";
|
|
2
|
-
import { Button as t } from "./button.mjs";
|
|
3
|
-
import { ChevronLeftIcon as n, ChevronRightIcon as r } from "lucide-react";
|
|
4
|
-
import * as i from "react";
|
|
5
|
-
import { useCallback as a, useEffect as o, useRef as s, useState as c } from "react";
|
|
6
|
-
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
7
|
-
// ../../node_modules/.bun/embla-carousel-reactive-utils@8.6.0+3dde5556684c958d/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js
|
|
8
|
-
function d(e) {
|
|
9
|
-
return Object.prototype.toString.call(e) === "[object Object]";
|
|
10
|
-
}
|
|
11
|
-
function f(e) {
|
|
12
|
-
return d(e) || Array.isArray(e);
|
|
13
|
-
}
|
|
14
|
-
function p() {
|
|
15
|
-
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
16
|
-
}
|
|
17
|
-
function m(e, t) {
|
|
18
|
-
let n = Object.keys(e), r = Object.keys(t);
|
|
19
|
-
return n.length !== r.length || JSON.stringify(Object.keys(e.breakpoints || {})) !== JSON.stringify(Object.keys(t.breakpoints || {})) ? !1 : n.every((n) => {
|
|
20
|
-
let r = e[n], i = t[n];
|
|
21
|
-
return typeof r == "function" ? `${r}` == `${i}` : !f(r) || !f(i) ? r === i : m(r, i);
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
function h(e) {
|
|
25
|
-
return e.concat().sort((e, t) => e.name > t.name ? 1 : -1).map((e) => e.options);
|
|
26
|
-
}
|
|
27
|
-
function g(e, t) {
|
|
28
|
-
if (e.length !== t.length) return !1;
|
|
29
|
-
let n = h(e), r = h(t);
|
|
30
|
-
return n.every((e, t) => {
|
|
31
|
-
let n = r[t];
|
|
32
|
-
return m(e, n);
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
// ../../node_modules/.bun/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.js
|
|
36
|
-
function _(e) {
|
|
37
|
-
return typeof e == "number";
|
|
38
|
-
}
|
|
39
|
-
function v(e) {
|
|
40
|
-
return typeof e == "string";
|
|
41
|
-
}
|
|
42
|
-
function y(e) {
|
|
43
|
-
return typeof e == "boolean";
|
|
44
|
-
}
|
|
45
|
-
function b(e) {
|
|
46
|
-
return Object.prototype.toString.call(e) === "[object Object]";
|
|
47
|
-
}
|
|
48
|
-
function x(e) {
|
|
49
|
-
return Math.abs(e);
|
|
50
|
-
}
|
|
51
|
-
function S(e) {
|
|
52
|
-
return Math.sign(e);
|
|
53
|
-
}
|
|
54
|
-
function C(e, t) {
|
|
55
|
-
return x(e - t);
|
|
56
|
-
}
|
|
57
|
-
function w(e, t) {
|
|
58
|
-
return e === 0 || t === 0 || x(e) <= x(t) ? 0 : x(C(x(e), x(t)) / e);
|
|
59
|
-
}
|
|
60
|
-
function T(e) {
|
|
61
|
-
return Math.round(e * 100) / 100;
|
|
62
|
-
}
|
|
63
|
-
function E(e) {
|
|
64
|
-
return j(e).map(Number);
|
|
65
|
-
}
|
|
66
|
-
function D(e) {
|
|
67
|
-
return e[O(e)];
|
|
68
|
-
}
|
|
69
|
-
function O(e) {
|
|
70
|
-
return Math.max(0, e.length - 1);
|
|
71
|
-
}
|
|
72
|
-
function k(e, t) {
|
|
73
|
-
return t === O(e);
|
|
74
|
-
}
|
|
75
|
-
function A(e, t = 0) {
|
|
76
|
-
return Array.from(Array(e), (e, n) => t + n);
|
|
77
|
-
}
|
|
78
|
-
function j(e) {
|
|
79
|
-
return Object.keys(e);
|
|
80
|
-
}
|
|
81
|
-
function M(e, t) {
|
|
82
|
-
return [e, t].reduce((e, t) => (j(t).forEach((n) => {
|
|
83
|
-
let r = e[n], i = t[n];
|
|
84
|
-
e[n] = b(r) && b(i) ? M(r, i) : i;
|
|
85
|
-
}), e), {});
|
|
86
|
-
}
|
|
87
|
-
function N(e, t) {
|
|
88
|
-
return t.MouseEvent !== void 0 && e instanceof t.MouseEvent;
|
|
89
|
-
}
|
|
90
|
-
function ee(e, t) {
|
|
91
|
-
let n = {
|
|
92
|
-
start: r,
|
|
93
|
-
center: i,
|
|
94
|
-
end: a
|
|
95
|
-
};
|
|
96
|
-
function r() {
|
|
97
|
-
return 0;
|
|
98
|
-
}
|
|
99
|
-
function i(e) {
|
|
100
|
-
return a(e) / 2;
|
|
101
|
-
}
|
|
102
|
-
function a(e) {
|
|
103
|
-
return t - e;
|
|
104
|
-
}
|
|
105
|
-
function o(r, i) {
|
|
106
|
-
return v(e) ? n[e](r) : e(t, r, i);
|
|
107
|
-
}
|
|
108
|
-
return { measure: o };
|
|
109
|
-
}
|
|
110
|
-
function P() {
|
|
111
|
-
let e = [];
|
|
112
|
-
function t(t, n, i, a = { passive: !0 }) {
|
|
113
|
-
let o;
|
|
114
|
-
if ("addEventListener" in t) t.addEventListener(n, i, a), o = () => t.removeEventListener(n, i, a);
|
|
115
|
-
else {
|
|
116
|
-
let e = t;
|
|
117
|
-
e.addListener(i), o = () => e.removeListener(i);
|
|
118
|
-
}
|
|
119
|
-
return e.push(o), r;
|
|
120
|
-
}
|
|
121
|
-
function n() {
|
|
122
|
-
e = e.filter((e) => e());
|
|
123
|
-
}
|
|
124
|
-
let r = {
|
|
125
|
-
add: t,
|
|
126
|
-
clear: n
|
|
127
|
-
};
|
|
128
|
-
return r;
|
|
129
|
-
}
|
|
130
|
-
function te(e, t, n, r) {
|
|
131
|
-
let i = P(), a = 1e3 / 60, o = null, s = 0, c = 0;
|
|
132
|
-
function l() {
|
|
133
|
-
i.add(e, "visibilitychange", () => {
|
|
134
|
-
e.hidden && m();
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
function u() {
|
|
138
|
-
p(), i.clear();
|
|
139
|
-
}
|
|
140
|
-
function d(e) {
|
|
141
|
-
if (!c) return;
|
|
142
|
-
o || (o = e, n(), n());
|
|
143
|
-
let i = e - o;
|
|
144
|
-
for (o = e, s += i; s >= a;) n(), s -= a;
|
|
145
|
-
r(s / a), c &&= t.requestAnimationFrame(d);
|
|
146
|
-
}
|
|
147
|
-
function f() {
|
|
148
|
-
c ||= t.requestAnimationFrame(d);
|
|
149
|
-
}
|
|
150
|
-
function p() {
|
|
151
|
-
t.cancelAnimationFrame(c), o = null, s = 0, c = 0;
|
|
152
|
-
}
|
|
153
|
-
function m() {
|
|
154
|
-
o = null, s = 0;
|
|
155
|
-
}
|
|
156
|
-
return {
|
|
157
|
-
init: l,
|
|
158
|
-
destroy: u,
|
|
159
|
-
start: f,
|
|
160
|
-
stop: p,
|
|
161
|
-
update: n,
|
|
162
|
-
render: r
|
|
163
|
-
};
|
|
164
|
-
}
|
|
165
|
-
function ne(e, t) {
|
|
166
|
-
let n = t === "rtl", r = e === "y", i = r ? "y" : "x", a = r ? "x" : "y", o = !r && n ? -1 : 1, s = u(), c = d();
|
|
167
|
-
function l(e) {
|
|
168
|
-
let { height: t, width: n } = e;
|
|
169
|
-
return r ? t : n;
|
|
170
|
-
}
|
|
171
|
-
function u() {
|
|
172
|
-
return r ? "top" : n ? "right" : "left";
|
|
173
|
-
}
|
|
174
|
-
function d() {
|
|
175
|
-
return r ? "bottom" : n ? "left" : "right";
|
|
176
|
-
}
|
|
177
|
-
function f(e) {
|
|
178
|
-
return e * o;
|
|
179
|
-
}
|
|
180
|
-
return {
|
|
181
|
-
scroll: i,
|
|
182
|
-
cross: a,
|
|
183
|
-
startEdge: s,
|
|
184
|
-
endEdge: c,
|
|
185
|
-
measureSize: l,
|
|
186
|
-
direction: f
|
|
187
|
-
};
|
|
188
|
-
}
|
|
189
|
-
function F(e = 0, t = 0) {
|
|
190
|
-
let n = x(e - t);
|
|
191
|
-
function r(t) {
|
|
192
|
-
return t < e;
|
|
193
|
-
}
|
|
194
|
-
function i(e) {
|
|
195
|
-
return e > t;
|
|
196
|
-
}
|
|
197
|
-
function a(e) {
|
|
198
|
-
return r(e) || i(e);
|
|
199
|
-
}
|
|
200
|
-
function o(n) {
|
|
201
|
-
return a(n) ? r(n) ? e : t : n;
|
|
202
|
-
}
|
|
203
|
-
function s(e) {
|
|
204
|
-
return n ? e - n * Math.ceil((e - t) / n) : e;
|
|
205
|
-
}
|
|
206
|
-
return {
|
|
207
|
-
length: n,
|
|
208
|
-
max: t,
|
|
209
|
-
min: e,
|
|
210
|
-
constrain: o,
|
|
211
|
-
reachedAny: a,
|
|
212
|
-
reachedMax: i,
|
|
213
|
-
reachedMin: r,
|
|
214
|
-
removeOffset: s
|
|
215
|
-
};
|
|
216
|
-
}
|
|
217
|
-
function I(e, t, n) {
|
|
218
|
-
let { constrain: r } = F(0, e), i = e + 1, a = o(t);
|
|
219
|
-
function o(e) {
|
|
220
|
-
return n ? x((i + e) % i) : r(e);
|
|
221
|
-
}
|
|
222
|
-
function s() {
|
|
223
|
-
return a;
|
|
224
|
-
}
|
|
225
|
-
function c(e) {
|
|
226
|
-
return a = o(e), d;
|
|
227
|
-
}
|
|
228
|
-
function l(e) {
|
|
229
|
-
return u().set(s() + e);
|
|
230
|
-
}
|
|
231
|
-
function u() {
|
|
232
|
-
return I(e, s(), n);
|
|
233
|
-
}
|
|
234
|
-
let d = {
|
|
235
|
-
get: s,
|
|
236
|
-
set: c,
|
|
237
|
-
add: l,
|
|
238
|
-
clone: u
|
|
239
|
-
};
|
|
240
|
-
return d;
|
|
241
|
-
}
|
|
242
|
-
function L(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _, v) {
|
|
243
|
-
let { cross: b, direction: T } = e, E = [
|
|
244
|
-
"INPUT",
|
|
245
|
-
"SELECT",
|
|
246
|
-
"TEXTAREA"
|
|
247
|
-
], D = { passive: !1 }, O = P(), k = P(), A = F(50, 225).constrain(p.measure(20)), j = {
|
|
248
|
-
mouse: 300,
|
|
249
|
-
touch: 400
|
|
250
|
-
}, M = {
|
|
251
|
-
mouse: 500,
|
|
252
|
-
touch: 600
|
|
253
|
-
}, ee = m ? 43 : 25, te = !1, ne = 0, I = 0, L = !1, R = !1, z = !1, B = !1;
|
|
254
|
-
function re(e) {
|
|
255
|
-
if (!v) return;
|
|
256
|
-
function n(t) {
|
|
257
|
-
(y(v) || v(e, t)) && ce(t);
|
|
258
|
-
}
|
|
259
|
-
let r = t;
|
|
260
|
-
O.add(r, "dragstart", (e) => e.preventDefault(), D).add(r, "touchmove", () => void 0, D).add(r, "touchend", () => void 0).add(r, "touchstart", n).add(r, "mousedown", n).add(r, "touchcancel", H).add(r, "contextmenu", H).add(r, "click", ue, !0);
|
|
261
|
-
}
|
|
262
|
-
function ie() {
|
|
263
|
-
O.clear(), k.clear();
|
|
264
|
-
}
|
|
265
|
-
function ae() {
|
|
266
|
-
let e = B ? n : t;
|
|
267
|
-
k.add(e, "touchmove", le, D).add(e, "touchend", H).add(e, "mousemove", le, D).add(e, "mouseup", H);
|
|
268
|
-
}
|
|
269
|
-
function oe(e) {
|
|
270
|
-
let t = e.nodeName || "";
|
|
271
|
-
return E.includes(t);
|
|
272
|
-
}
|
|
273
|
-
function V() {
|
|
274
|
-
return (m ? M : j)[B ? "mouse" : "touch"];
|
|
275
|
-
}
|
|
276
|
-
function se(e, t) {
|
|
277
|
-
let n = d.add(S(e) * -1), r = u.byDistance(e, !m).distance;
|
|
278
|
-
return m || x(e) < A ? r : g && t ? r * .5 : u.byIndex(n.get(), 0).distance;
|
|
279
|
-
}
|
|
280
|
-
function ce(e) {
|
|
281
|
-
let t = N(e, r);
|
|
282
|
-
B = t, z = m && t && !e.buttons && te, te = C(i.get(), o.get()) >= 2, t && e.button !== 0 || oe(e.target) || (L = !0, a.pointerDown(e), l.useFriction(0).useDuration(0), i.set(o), ae(), ne = a.readPoint(e), I = a.readPoint(e, b), f.emit("pointerDown"));
|
|
283
|
-
}
|
|
284
|
-
function le(e) {
|
|
285
|
-
if (!N(e, r) && e.touches.length >= 2) return H(e);
|
|
286
|
-
let t = a.readPoint(e), n = a.readPoint(e, b), o = C(t, ne), c = C(n, I);
|
|
287
|
-
if (!R && !B && (!e.cancelable || (R = o > c, !R))) return H(e);
|
|
288
|
-
let u = a.pointerMove(e);
|
|
289
|
-
o > h && (z = !0), l.useFriction(.3).useDuration(.75), s.start(), i.add(T(u)), e.preventDefault();
|
|
290
|
-
}
|
|
291
|
-
function H(e) {
|
|
292
|
-
let t = u.byDistance(0, !1).index !== d.get(), n = a.pointerUp(e) * V(), r = se(T(n), t), i = w(n, r), o = ee - 10 * i, s = _ + i / 50;
|
|
293
|
-
R = !1, L = !1, k.clear(), l.useDuration(o).useFriction(s), c.distance(r, !m), B = !1, f.emit("pointerUp");
|
|
294
|
-
}
|
|
295
|
-
function ue(e) {
|
|
296
|
-
z &&= (e.stopPropagation(), e.preventDefault(), !1);
|
|
297
|
-
}
|
|
298
|
-
function de() {
|
|
299
|
-
return L;
|
|
300
|
-
}
|
|
301
|
-
return {
|
|
302
|
-
init: re,
|
|
303
|
-
destroy: ie,
|
|
304
|
-
pointerDown: de
|
|
305
|
-
};
|
|
306
|
-
}
|
|
307
|
-
function R(e, t) {
|
|
308
|
-
let n, r;
|
|
309
|
-
function i(e) {
|
|
310
|
-
return e.timeStamp;
|
|
311
|
-
}
|
|
312
|
-
function a(n, r) {
|
|
313
|
-
let i = `client${(r || e.scroll) === "x" ? "X" : "Y"}`;
|
|
314
|
-
return (N(n, t) ? n : n.touches[0])[i];
|
|
315
|
-
}
|
|
316
|
-
function o(e) {
|
|
317
|
-
return n = e, r = e, a(e);
|
|
318
|
-
}
|
|
319
|
-
function s(e) {
|
|
320
|
-
let t = a(e) - a(r), o = i(e) - i(n) > 170;
|
|
321
|
-
return r = e, o && (n = e), t;
|
|
322
|
-
}
|
|
323
|
-
function c(e) {
|
|
324
|
-
if (!n || !r) return 0;
|
|
325
|
-
let t = a(r) - a(n), o = i(e) - i(n), s = i(e) - i(r) > 170, c = t / o;
|
|
326
|
-
return o && !s && x(c) > .1 ? c : 0;
|
|
327
|
-
}
|
|
328
|
-
return {
|
|
329
|
-
pointerDown: o,
|
|
330
|
-
pointerMove: s,
|
|
331
|
-
pointerUp: c,
|
|
332
|
-
readPoint: a
|
|
333
|
-
};
|
|
334
|
-
}
|
|
335
|
-
function z() {
|
|
336
|
-
function e(e) {
|
|
337
|
-
let { offsetTop: t, offsetLeft: n, offsetWidth: r, offsetHeight: i } = e;
|
|
338
|
-
return {
|
|
339
|
-
top: t,
|
|
340
|
-
right: n + r,
|
|
341
|
-
bottom: t + i,
|
|
342
|
-
left: n,
|
|
343
|
-
width: r,
|
|
344
|
-
height: i
|
|
345
|
-
};
|
|
346
|
-
}
|
|
347
|
-
return { measure: e };
|
|
348
|
-
}
|
|
349
|
-
function B(e) {
|
|
350
|
-
function t(t) {
|
|
351
|
-
return t / 100 * e;
|
|
352
|
-
}
|
|
353
|
-
return { measure: t };
|
|
354
|
-
}
|
|
355
|
-
function re(e, t, n, r, i, a, o) {
|
|
356
|
-
let s = [e].concat(r), c, l, u = [], d = !1;
|
|
357
|
-
function f(e) {
|
|
358
|
-
return i.measureSize(o.measure(e));
|
|
359
|
-
}
|
|
360
|
-
function p(i) {
|
|
361
|
-
if (!a) return;
|
|
362
|
-
l = f(e), u = r.map(f);
|
|
363
|
-
function o(n) {
|
|
364
|
-
for (let a of n) {
|
|
365
|
-
if (d) return;
|
|
366
|
-
let n = a.target === e, o = r.indexOf(a.target), s = n ? l : u[o];
|
|
367
|
-
if (x(f(n ? e : r[o]) - s) >= .5) {
|
|
368
|
-
i.reInit(), t.emit("resize");
|
|
369
|
-
break;
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
c = new ResizeObserver((e) => {
|
|
374
|
-
(y(a) || a(i, e)) && o(e);
|
|
375
|
-
}), n.requestAnimationFrame(() => {
|
|
376
|
-
s.forEach((e) => c.observe(e));
|
|
377
|
-
});
|
|
378
|
-
}
|
|
379
|
-
function m() {
|
|
380
|
-
d = !0, c && c.disconnect();
|
|
381
|
-
}
|
|
382
|
-
return {
|
|
383
|
-
init: p,
|
|
384
|
-
destroy: m
|
|
385
|
-
};
|
|
386
|
-
}
|
|
387
|
-
function ie(e, t, n, r, i, a) {
|
|
388
|
-
let o = 0, s = 0, c = i, l = a, u = e.get(), d = 0;
|
|
389
|
-
function f() {
|
|
390
|
-
let t = r.get() - e.get(), i = !c, a = 0;
|
|
391
|
-
return i ? (o = 0, n.set(r), e.set(r), a = t) : (n.set(e), o += t / c, o *= l, u += o, e.add(o), a = u - d), s = S(a), d = u, C;
|
|
392
|
-
}
|
|
393
|
-
function p() {
|
|
394
|
-
return x(r.get() - t.get()) < .001;
|
|
395
|
-
}
|
|
396
|
-
function m() {
|
|
397
|
-
return c;
|
|
398
|
-
}
|
|
399
|
-
function h() {
|
|
400
|
-
return s;
|
|
401
|
-
}
|
|
402
|
-
function g() {
|
|
403
|
-
return o;
|
|
404
|
-
}
|
|
405
|
-
function _() {
|
|
406
|
-
return y(i);
|
|
407
|
-
}
|
|
408
|
-
function v() {
|
|
409
|
-
return b(a);
|
|
410
|
-
}
|
|
411
|
-
function y(e) {
|
|
412
|
-
return c = e, C;
|
|
413
|
-
}
|
|
414
|
-
function b(e) {
|
|
415
|
-
return l = e, C;
|
|
416
|
-
}
|
|
417
|
-
let C = {
|
|
418
|
-
direction: h,
|
|
419
|
-
duration: m,
|
|
420
|
-
velocity: g,
|
|
421
|
-
seek: f,
|
|
422
|
-
settled: p,
|
|
423
|
-
useBaseFriction: v,
|
|
424
|
-
useBaseDuration: _,
|
|
425
|
-
useFriction: b,
|
|
426
|
-
useDuration: y
|
|
427
|
-
};
|
|
428
|
-
return C;
|
|
429
|
-
}
|
|
430
|
-
function ae(e, t, n, r, i) {
|
|
431
|
-
let a = i.measure(10), o = i.measure(50), s = F(.1, .99), c = !1;
|
|
432
|
-
function l() {
|
|
433
|
-
return !(c || !e.reachedAny(n.get()) || !e.reachedAny(t.get()));
|
|
434
|
-
}
|
|
435
|
-
function u(i) {
|
|
436
|
-
if (!l()) return;
|
|
437
|
-
let c = x(e[e.reachedMin(t.get()) ? "min" : "max"] - t.get()), u = n.get() - t.get(), d = s.constrain(c / o);
|
|
438
|
-
n.subtract(u * d), !i && x(u) < a && (n.set(e.constrain(n.get())), r.useDuration(25).useBaseFriction());
|
|
439
|
-
}
|
|
440
|
-
function d(e) {
|
|
441
|
-
c = !e;
|
|
442
|
-
}
|
|
443
|
-
return {
|
|
444
|
-
shouldConstrain: l,
|
|
445
|
-
constrain: u,
|
|
446
|
-
toggleActive: d
|
|
447
|
-
};
|
|
448
|
-
}
|
|
449
|
-
function oe(e, t, n, r, i) {
|
|
450
|
-
let a = F(-t + e, 0), o = d(), s = u(), c = f();
|
|
451
|
-
function l(e, t) {
|
|
452
|
-
return C(e, t) <= 1;
|
|
453
|
-
}
|
|
454
|
-
function u() {
|
|
455
|
-
let e = o[0], t = D(o);
|
|
456
|
-
return F(o.lastIndexOf(e), o.indexOf(t) + 1);
|
|
457
|
-
}
|
|
458
|
-
function d() {
|
|
459
|
-
return n.map((e, t) => {
|
|
460
|
-
let { min: r, max: i } = a, o = a.constrain(e), s = !t, c = k(n, t);
|
|
461
|
-
return s ? i : c || l(r, o) ? r : l(i, o) ? i : o;
|
|
462
|
-
}).map((e) => parseFloat(e.toFixed(3)));
|
|
463
|
-
}
|
|
464
|
-
function f() {
|
|
465
|
-
if (t <= e + i) return [a.max];
|
|
466
|
-
if (r === "keepSnaps") return o;
|
|
467
|
-
let { min: n, max: c } = s;
|
|
468
|
-
return o.slice(n, c);
|
|
469
|
-
}
|
|
470
|
-
return {
|
|
471
|
-
snapsContained: c,
|
|
472
|
-
scrollContainLimit: s
|
|
473
|
-
};
|
|
474
|
-
}
|
|
475
|
-
function V(e, t, n) {
|
|
476
|
-
let r = t[0];
|
|
477
|
-
return { limit: F(n ? r - e : D(t), r) };
|
|
478
|
-
}
|
|
479
|
-
function se(e, t, n, r) {
|
|
480
|
-
let i = .1, { reachedMin: a, reachedMax: o } = F(t.min + i, t.max + i);
|
|
481
|
-
function s(e) {
|
|
482
|
-
return e === 1 ? o(n.get()) : e === -1 && a(n.get());
|
|
483
|
-
}
|
|
484
|
-
function c(t) {
|
|
485
|
-
if (!s(t)) return;
|
|
486
|
-
let n = t * -1 * e;
|
|
487
|
-
r.forEach((e) => e.add(n));
|
|
488
|
-
}
|
|
489
|
-
return { loop: c };
|
|
490
|
-
}
|
|
491
|
-
function ce(e) {
|
|
492
|
-
let { max: t, length: n } = e;
|
|
493
|
-
function r(e) {
|
|
494
|
-
let r = e - t;
|
|
495
|
-
return n ? r / -n : 0;
|
|
496
|
-
}
|
|
497
|
-
return { get: r };
|
|
498
|
-
}
|
|
499
|
-
function le(e, t, n, r, i) {
|
|
500
|
-
let { startEdge: a, endEdge: o } = e, { groupSlides: s } = i, c = d().map(t.measure), l = f(), u = p();
|
|
501
|
-
function d() {
|
|
502
|
-
return s(r).map((e) => D(e)[o] - e[0][a]).map(x);
|
|
503
|
-
}
|
|
504
|
-
function f() {
|
|
505
|
-
return r.map((e) => n[a] - e[a]).map((e) => -x(e));
|
|
506
|
-
}
|
|
507
|
-
function p() {
|
|
508
|
-
return s(l).map((e) => e[0]).map((e, t) => e + c[t]);
|
|
509
|
-
}
|
|
510
|
-
return {
|
|
511
|
-
snaps: l,
|
|
512
|
-
snapsAligned: u
|
|
513
|
-
};
|
|
514
|
-
}
|
|
515
|
-
function H(e, t, n, r, i, a) {
|
|
516
|
-
let { groupSlides: o } = i, { min: s, max: c } = r, l = u();
|
|
517
|
-
function u() {
|
|
518
|
-
let r = o(a), i = !e || t === "keepSnaps";
|
|
519
|
-
return n.length === 1 ? [a] : i ? r : r.slice(s, c).map((e, t, n) => {
|
|
520
|
-
let r = !t, i = k(n, t);
|
|
521
|
-
return r ? A(D(n[0]) + 1) : i ? A(O(a) - D(n)[0] + 1, D(n)[0]) : e;
|
|
522
|
-
});
|
|
523
|
-
}
|
|
524
|
-
return { slideRegistry: l };
|
|
525
|
-
}
|
|
526
|
-
function ue(e, t, n, r, i) {
|
|
527
|
-
let { reachedAny: a, removeOffset: o, constrain: s } = r;
|
|
528
|
-
function c(e) {
|
|
529
|
-
return e.concat().sort((e, t) => x(e) - x(t))[0];
|
|
530
|
-
}
|
|
531
|
-
function l(n) {
|
|
532
|
-
let r = e ? o(n) : s(n), { index: i } = t.map((e, t) => ({
|
|
533
|
-
diff: u(e - r, 0),
|
|
534
|
-
index: t
|
|
535
|
-
})).sort((e, t) => x(e.diff) - x(t.diff))[0];
|
|
536
|
-
return {
|
|
537
|
-
index: i,
|
|
538
|
-
distance: r
|
|
539
|
-
};
|
|
540
|
-
}
|
|
541
|
-
function u(t, r) {
|
|
542
|
-
let i = [
|
|
543
|
-
t,
|
|
544
|
-
t + n,
|
|
545
|
-
t - n
|
|
546
|
-
];
|
|
547
|
-
if (!e) return t;
|
|
548
|
-
if (!r) return c(i);
|
|
549
|
-
let a = i.filter((e) => S(e) === r);
|
|
550
|
-
return a.length ? c(a) : D(i) - n;
|
|
551
|
-
}
|
|
552
|
-
function d(e, n) {
|
|
553
|
-
return {
|
|
554
|
-
index: e,
|
|
555
|
-
distance: u(t[e] - i.get(), n)
|
|
556
|
-
};
|
|
557
|
-
}
|
|
558
|
-
function f(n, r) {
|
|
559
|
-
let o = i.get() + n, { index: s, distance: c } = l(o), d = !e && a(o);
|
|
560
|
-
return !r || d ? {
|
|
561
|
-
index: s,
|
|
562
|
-
distance: n
|
|
563
|
-
} : {
|
|
564
|
-
index: s,
|
|
565
|
-
distance: n + u(t[s] - c, 0)
|
|
566
|
-
};
|
|
567
|
-
}
|
|
568
|
-
return {
|
|
569
|
-
byDistance: f,
|
|
570
|
-
byIndex: d,
|
|
571
|
-
shortcut: u
|
|
572
|
-
};
|
|
573
|
-
}
|
|
574
|
-
function de(e, t, n, r, i, a, o) {
|
|
575
|
-
function s(i) {
|
|
576
|
-
let s = i.distance, c = i.index !== t.get();
|
|
577
|
-
a.add(s), s && (r.duration() ? e.start() : (e.update(), e.render(1), e.update())), c && (n.set(t.get()), t.set(i.index), o.emit("select"));
|
|
578
|
-
}
|
|
579
|
-
function c(e, t) {
|
|
580
|
-
s(i.byDistance(e, t));
|
|
581
|
-
}
|
|
582
|
-
function l(e, n) {
|
|
583
|
-
let r = t.clone().set(e);
|
|
584
|
-
s(i.byIndex(r.get(), n));
|
|
585
|
-
}
|
|
586
|
-
return {
|
|
587
|
-
distance: c,
|
|
588
|
-
index: l
|
|
589
|
-
};
|
|
590
|
-
}
|
|
591
|
-
function fe(e, t, n, r, i, a, o, s) {
|
|
592
|
-
let c = {
|
|
593
|
-
passive: !0,
|
|
594
|
-
capture: !0
|
|
595
|
-
}, l = 0;
|
|
596
|
-
function u(u) {
|
|
597
|
-
if (!s) return;
|
|
598
|
-
function f(t) {
|
|
599
|
-
if ((/* @__PURE__ */ new Date()).getTime() - l > 10) return;
|
|
600
|
-
o.emit("slideFocusStart"), e.scrollLeft = 0;
|
|
601
|
-
let a = n.findIndex((e) => e.includes(t));
|
|
602
|
-
_(a) && (i.useDuration(0), r.index(a, 0), o.emit("slideFocus"));
|
|
603
|
-
}
|
|
604
|
-
a.add(document, "keydown", d, !1), t.forEach((e, t) => {
|
|
605
|
-
a.add(e, "focus", (e) => {
|
|
606
|
-
(y(s) || s(u, e)) && f(t);
|
|
607
|
-
}, c);
|
|
608
|
-
});
|
|
609
|
-
}
|
|
610
|
-
function d(e) {
|
|
611
|
-
e.code === "Tab" && (l = (/* @__PURE__ */ new Date()).getTime());
|
|
612
|
-
}
|
|
613
|
-
return { init: u };
|
|
614
|
-
}
|
|
615
|
-
function U(e) {
|
|
616
|
-
let t = e;
|
|
617
|
-
function n() {
|
|
618
|
-
return t;
|
|
619
|
-
}
|
|
620
|
-
function r(e) {
|
|
621
|
-
t = o(e);
|
|
622
|
-
}
|
|
623
|
-
function i(e) {
|
|
624
|
-
t += o(e);
|
|
625
|
-
}
|
|
626
|
-
function a(e) {
|
|
627
|
-
t -= o(e);
|
|
628
|
-
}
|
|
629
|
-
function o(e) {
|
|
630
|
-
return _(e) ? e : e.get();
|
|
631
|
-
}
|
|
632
|
-
return {
|
|
633
|
-
get: n,
|
|
634
|
-
set: r,
|
|
635
|
-
add: i,
|
|
636
|
-
subtract: a
|
|
637
|
-
};
|
|
638
|
-
}
|
|
639
|
-
function pe(e, t) {
|
|
640
|
-
let n = e.scroll === "x" ? o : s, r = t.style, i = null, a = !1;
|
|
641
|
-
function o(e) {
|
|
642
|
-
return `translate3d(${e}px,0px,0px)`;
|
|
643
|
-
}
|
|
644
|
-
function s(e) {
|
|
645
|
-
return `translate3d(0px,${e}px,0px)`;
|
|
646
|
-
}
|
|
647
|
-
function c(t) {
|
|
648
|
-
if (a) return;
|
|
649
|
-
let o = T(e.direction(t));
|
|
650
|
-
o !== i && (r.transform = n(o), i = o);
|
|
651
|
-
}
|
|
652
|
-
function l(e) {
|
|
653
|
-
a = !e;
|
|
654
|
-
}
|
|
655
|
-
function u() {
|
|
656
|
-
a || (r.transform = "", t.getAttribute("style") || t.removeAttribute("style"));
|
|
657
|
-
}
|
|
658
|
-
return {
|
|
659
|
-
clear: u,
|
|
660
|
-
to: c,
|
|
661
|
-
toggleActive: l
|
|
662
|
-
};
|
|
663
|
-
}
|
|
664
|
-
function me(e, t, n, r, i, a, o, s, c) {
|
|
665
|
-
let l = .5, u = E(i), d = E(i).reverse(), f = _().concat(v());
|
|
666
|
-
function p(e, t) {
|
|
667
|
-
return e.reduce((e, t) => e - i[t], t);
|
|
668
|
-
}
|
|
669
|
-
function m(e, t) {
|
|
670
|
-
return e.reduce((e, n) => p(e, t) > 0 ? e.concat([n]) : e, []);
|
|
671
|
-
}
|
|
672
|
-
function h(e) {
|
|
673
|
-
return a.map((n, i) => ({
|
|
674
|
-
start: n - r[i] + l + e,
|
|
675
|
-
end: n + t - l + e
|
|
676
|
-
}));
|
|
677
|
-
}
|
|
678
|
-
function g(t, r, i) {
|
|
679
|
-
let a = h(r);
|
|
680
|
-
return t.map((t) => {
|
|
681
|
-
let r = i ? 0 : -n, o = i ? n : 0, l = i ? "end" : "start", u = a[t][l];
|
|
682
|
-
return {
|
|
683
|
-
index: t,
|
|
684
|
-
loopPoint: u,
|
|
685
|
-
slideLocation: U(-1),
|
|
686
|
-
translate: pe(e, c[t]),
|
|
687
|
-
target: () => s.get() > u ? r : o
|
|
688
|
-
};
|
|
689
|
-
});
|
|
690
|
-
}
|
|
691
|
-
function _() {
|
|
692
|
-
let e = o[0];
|
|
693
|
-
return g(m(d, e), n, !1);
|
|
694
|
-
}
|
|
695
|
-
function v() {
|
|
696
|
-
let e = t - o[0] - 1;
|
|
697
|
-
return g(m(u, e), -n, !0);
|
|
698
|
-
}
|
|
699
|
-
function y() {
|
|
700
|
-
return f.every(({ index: e }) => p(u.filter((t) => t !== e), t) <= .1);
|
|
701
|
-
}
|
|
702
|
-
function b() {
|
|
703
|
-
f.forEach((e) => {
|
|
704
|
-
let { target: t, translate: n, slideLocation: r } = e, i = t();
|
|
705
|
-
i !== r.get() && (n.to(i), r.set(i));
|
|
706
|
-
});
|
|
707
|
-
}
|
|
708
|
-
function x() {
|
|
709
|
-
f.forEach((e) => e.translate.clear());
|
|
710
|
-
}
|
|
711
|
-
return {
|
|
712
|
-
canLoop: y,
|
|
713
|
-
clear: x,
|
|
714
|
-
loop: b,
|
|
715
|
-
loopPoints: f
|
|
716
|
-
};
|
|
717
|
-
}
|
|
718
|
-
function he(e, t, n) {
|
|
719
|
-
let r, i = !1;
|
|
720
|
-
function a(a) {
|
|
721
|
-
if (!n) return;
|
|
722
|
-
function o(e) {
|
|
723
|
-
for (let n of e) if (n.type === "childList") {
|
|
724
|
-
a.reInit(), t.emit("slidesChanged");
|
|
725
|
-
break;
|
|
726
|
-
}
|
|
727
|
-
}
|
|
728
|
-
r = new MutationObserver((e) => {
|
|
729
|
-
i || (y(n) || n(a, e)) && o(e);
|
|
730
|
-
}), r.observe(e, { childList: !0 });
|
|
731
|
-
}
|
|
732
|
-
function o() {
|
|
733
|
-
r && r.disconnect(), i = !0;
|
|
734
|
-
}
|
|
735
|
-
return {
|
|
736
|
-
init: a,
|
|
737
|
-
destroy: o
|
|
738
|
-
};
|
|
739
|
-
}
|
|
740
|
-
function ge(e, t, n, r) {
|
|
741
|
-
let i = {}, a = null, o = null, s, c = !1;
|
|
742
|
-
function l() {
|
|
743
|
-
s = new IntersectionObserver((e) => {
|
|
744
|
-
c || (e.forEach((e) => {
|
|
745
|
-
let n = t.indexOf(e.target);
|
|
746
|
-
i[n] = e;
|
|
747
|
-
}), a = null, o = null, n.emit("slidesInView"));
|
|
748
|
-
}, {
|
|
749
|
-
root: e.parentElement,
|
|
750
|
-
threshold: r
|
|
751
|
-
}), t.forEach((e) => s.observe(e));
|
|
752
|
-
}
|
|
753
|
-
function u() {
|
|
754
|
-
s && s.disconnect(), c = !0;
|
|
755
|
-
}
|
|
756
|
-
function d(e) {
|
|
757
|
-
return j(i).reduce((t, n) => {
|
|
758
|
-
let r = parseInt(n), { isIntersecting: a } = i[r];
|
|
759
|
-
return (e && a || !e && !a) && t.push(r), t;
|
|
760
|
-
}, []);
|
|
761
|
-
}
|
|
762
|
-
function f(e = !0) {
|
|
763
|
-
if (e && a) return a;
|
|
764
|
-
if (!e && o) return o;
|
|
765
|
-
let t = d(e);
|
|
766
|
-
return e && (a = t), e || (o = t), t;
|
|
767
|
-
}
|
|
768
|
-
return {
|
|
769
|
-
init: l,
|
|
770
|
-
destroy: u,
|
|
771
|
-
get: f
|
|
772
|
-
};
|
|
773
|
-
}
|
|
774
|
-
function _e(e, t, n, r, i, a) {
|
|
775
|
-
let { measureSize: o, startEdge: s, endEdge: c } = e, l = n[0] && i, u = m(), d = h(), f = n.map(o), p = g();
|
|
776
|
-
function m() {
|
|
777
|
-
if (!l) return 0;
|
|
778
|
-
let e = n[0];
|
|
779
|
-
return x(t[s] - e[s]);
|
|
780
|
-
}
|
|
781
|
-
function h() {
|
|
782
|
-
if (!l) return 0;
|
|
783
|
-
let e = a.getComputedStyle(D(r));
|
|
784
|
-
return parseFloat(e.getPropertyValue(`margin-${c}`));
|
|
785
|
-
}
|
|
786
|
-
function g() {
|
|
787
|
-
return n.map((e, t, n) => {
|
|
788
|
-
let r = !t, i = k(n, t);
|
|
789
|
-
return r ? f[t] + u : i ? f[t] + d : n[t + 1][s] - e[s];
|
|
790
|
-
}).map(x);
|
|
791
|
-
}
|
|
792
|
-
return {
|
|
793
|
-
slideSizes: f,
|
|
794
|
-
slideSizesWithGaps: p,
|
|
795
|
-
startGap: u,
|
|
796
|
-
endGap: d
|
|
797
|
-
};
|
|
798
|
-
}
|
|
799
|
-
function ve(e, t, n, r, i, a, o, s, c) {
|
|
800
|
-
let { startEdge: l, endEdge: u, direction: d } = e, f = _(n);
|
|
801
|
-
function p(e, t) {
|
|
802
|
-
return E(e).filter((e) => e % t === 0).map((n) => e.slice(n, n + t));
|
|
803
|
-
}
|
|
804
|
-
function m(e) {
|
|
805
|
-
return e.length ? E(e).reduce((n, f, p) => {
|
|
806
|
-
let m = D(n) || 0, h = m === 0, g = f === O(e), _ = i[l] - a[m][l], v = i[l] - a[f][u], y = !r && h ? d(o) : 0, b = x(v - (!r && g ? d(s) : 0) - (_ + y));
|
|
807
|
-
return p && b > t + c && n.push(f), g && n.push(e.length), n;
|
|
808
|
-
}, []).map((t, n, r) => {
|
|
809
|
-
let i = Math.max(r[n - 1] || 0);
|
|
810
|
-
return e.slice(i, t);
|
|
811
|
-
}) : [];
|
|
812
|
-
}
|
|
813
|
-
function h(e) {
|
|
814
|
-
return f ? p(e, n) : m(e);
|
|
815
|
-
}
|
|
816
|
-
return { groupSlides: h };
|
|
817
|
-
}
|
|
818
|
-
function ye(e, t, n, r, i, a, o) {
|
|
819
|
-
let { align: s, axis: c, direction: l, startIndex: u, loop: d, duration: f, dragFree: p, dragThreshold: m, inViewThreshold: h, slidesToScroll: g, skipSnaps: _, containScroll: v, watchResize: y, watchSlides: b, watchDrag: x, watchFocus: S } = a, C = z(), w = C.measure(t), T = n.map(C.measure), k = ne(c, l), A = k.measureSize(w), j = B(A), M = ee(s, A), N = !d && !!v, { slideSizes: F, slideSizesWithGaps: ye, startGap: be, endGap: xe } = _e(k, w, T, n, d || !!v, i), Se = ve(k, A, g, d, w, T, be, xe, 2), { snaps: Ce, snapsAligned: W } = le(k, M, w, T, Se), G = -D(Ce) + D(ye), { snapsContained: we, scrollContainLimit: K } = oe(A, G, W, v, 2), q = N ? we : W, { limit: J } = V(G, q, d), Y = I(O(q), u, d), Te = Y.clone(), Ee = E(n), De = ({ dragHandler: e, scrollBody: t, scrollBounds: n, options: { loop: r } }) => {
|
|
820
|
-
r || n.constrain(e.pointerDown()), t.seek();
|
|
821
|
-
}, Oe = ({ scrollBody: e, translate: t, location: n, offsetLocation: r, previousLocation: i, scrollLooper: a, slideLooper: o, dragHandler: s, animation: c, eventHandler: l, scrollBounds: u, options: { loop: d } }, f) => {
|
|
822
|
-
let p = e.settled(), m = !u.shouldConstrain(), h = d ? p : p && m, g = h && !s.pointerDown();
|
|
823
|
-
g && c.stop();
|
|
824
|
-
let _ = n.get() * f + i.get() * (1 - f);
|
|
825
|
-
r.set(_), d && (a.loop(e.direction()), o.loop()), t.to(r.get()), g && l.emit("settle"), h || l.emit("scroll");
|
|
826
|
-
}, ke = te(r, i, () => De(Be), (e) => Oe(Be, e)), Ae = .68, X = q[Y.get()], je = U(X), Me = U(X), Z = U(X), Q = U(X), $ = ie(je, Z, Me, Q, f, Ae), Ne = ue(d, q, G, J, Q), Pe = de(ke, Y, Te, $, Ne, Q, o), Fe = ce(J), Ie = P(), Le = ge(t, n, o, h), { slideRegistry: Re } = H(N, v, q, K, Se, Ee), ze = fe(e, n, Re, Pe, $, Ie, o, S), Be = {
|
|
827
|
-
ownerDocument: r,
|
|
828
|
-
ownerWindow: i,
|
|
829
|
-
eventHandler: o,
|
|
830
|
-
containerRect: w,
|
|
831
|
-
slideRects: T,
|
|
832
|
-
animation: ke,
|
|
833
|
-
axis: k,
|
|
834
|
-
dragHandler: L(k, e, r, i, Q, R(k, i), je, ke, Pe, $, Ne, Y, o, j, p, m, _, Ae, x),
|
|
835
|
-
eventStore: Ie,
|
|
836
|
-
percentOfView: j,
|
|
837
|
-
index: Y,
|
|
838
|
-
indexPrevious: Te,
|
|
839
|
-
limit: J,
|
|
840
|
-
location: je,
|
|
841
|
-
offsetLocation: Z,
|
|
842
|
-
previousLocation: Me,
|
|
843
|
-
options: a,
|
|
844
|
-
resizeHandler: re(t, o, i, n, k, y, C),
|
|
845
|
-
scrollBody: $,
|
|
846
|
-
scrollBounds: ae(J, Z, Q, $, j),
|
|
847
|
-
scrollLooper: se(G, J, Z, [
|
|
848
|
-
je,
|
|
849
|
-
Z,
|
|
850
|
-
Me,
|
|
851
|
-
Q
|
|
852
|
-
]),
|
|
853
|
-
scrollProgress: Fe,
|
|
854
|
-
scrollSnapList: q.map(Fe.get),
|
|
855
|
-
scrollSnaps: q,
|
|
856
|
-
scrollTarget: Ne,
|
|
857
|
-
scrollTo: Pe,
|
|
858
|
-
slideLooper: me(k, A, G, F, ye, Ce, q, Z, n),
|
|
859
|
-
slideFocus: ze,
|
|
860
|
-
slidesHandler: he(t, o, b),
|
|
861
|
-
slidesInView: Le,
|
|
862
|
-
slideIndexes: Ee,
|
|
863
|
-
slideRegistry: Re,
|
|
864
|
-
slidesToScroll: Se,
|
|
865
|
-
target: Q,
|
|
866
|
-
translate: pe(k, t)
|
|
867
|
-
};
|
|
868
|
-
return Be;
|
|
869
|
-
}
|
|
870
|
-
function be() {
|
|
871
|
-
let e = {}, t;
|
|
872
|
-
function n(e) {
|
|
873
|
-
t = e;
|
|
874
|
-
}
|
|
875
|
-
function r(t) {
|
|
876
|
-
return e[t] || [];
|
|
877
|
-
}
|
|
878
|
-
function i(e) {
|
|
879
|
-
return r(e).forEach((n) => n(t, e)), c;
|
|
880
|
-
}
|
|
881
|
-
function a(t, n) {
|
|
882
|
-
return e[t] = r(t).concat([n]), c;
|
|
883
|
-
}
|
|
884
|
-
function o(t, n) {
|
|
885
|
-
return e[t] = r(t).filter((e) => e !== n), c;
|
|
886
|
-
}
|
|
887
|
-
function s() {
|
|
888
|
-
e = {};
|
|
889
|
-
}
|
|
890
|
-
let c = {
|
|
891
|
-
init: n,
|
|
892
|
-
emit: i,
|
|
893
|
-
off: o,
|
|
894
|
-
on: a,
|
|
895
|
-
clear: s
|
|
896
|
-
};
|
|
897
|
-
return c;
|
|
898
|
-
}
|
|
899
|
-
var xe = {
|
|
900
|
-
align: "center",
|
|
901
|
-
axis: "x",
|
|
902
|
-
container: null,
|
|
903
|
-
slides: null,
|
|
904
|
-
containScroll: "trimSnaps",
|
|
905
|
-
direction: "ltr",
|
|
906
|
-
slidesToScroll: 1,
|
|
907
|
-
inViewThreshold: 0,
|
|
908
|
-
breakpoints: {},
|
|
909
|
-
dragFree: !1,
|
|
910
|
-
dragThreshold: 10,
|
|
911
|
-
loop: !1,
|
|
912
|
-
skipSnaps: !1,
|
|
913
|
-
duration: 25,
|
|
914
|
-
startIndex: 0,
|
|
915
|
-
active: !0,
|
|
916
|
-
watchDrag: !0,
|
|
917
|
-
watchResize: !0,
|
|
918
|
-
watchSlides: !0,
|
|
919
|
-
watchFocus: !0
|
|
920
|
-
};
|
|
921
|
-
function Se(e) {
|
|
922
|
-
function t(e, t) {
|
|
923
|
-
return M(e, t || {});
|
|
924
|
-
}
|
|
925
|
-
function n(n) {
|
|
926
|
-
let r = n.breakpoints || {};
|
|
927
|
-
return t(n, j(r).filter((t) => e.matchMedia(t).matches).map((e) => r[e]).reduce((e, n) => t(e, n), {}));
|
|
928
|
-
}
|
|
929
|
-
function r(t) {
|
|
930
|
-
return t.map((e) => j(e.breakpoints || {})).reduce((e, t) => e.concat(t), []).map(e.matchMedia);
|
|
931
|
-
}
|
|
932
|
-
return {
|
|
933
|
-
mergeOptions: t,
|
|
934
|
-
optionsAtMedia: n,
|
|
935
|
-
optionsMediaQueries: r
|
|
936
|
-
};
|
|
937
|
-
}
|
|
938
|
-
function Ce(e) {
|
|
939
|
-
let t = [];
|
|
940
|
-
function n(n, r) {
|
|
941
|
-
return t = r.filter(({ options: t }) => e.optionsAtMedia(t).active !== !1), t.forEach((t) => t.init(n, e)), r.reduce((e, t) => Object.assign(e, { [t.name]: t }), {});
|
|
942
|
-
}
|
|
943
|
-
function r() {
|
|
944
|
-
t = t.filter((e) => e.destroy());
|
|
945
|
-
}
|
|
946
|
-
return {
|
|
947
|
-
init: n,
|
|
948
|
-
destroy: r
|
|
949
|
-
};
|
|
950
|
-
}
|
|
951
|
-
function W(e, t, n) {
|
|
952
|
-
let r = e.ownerDocument, i = r.defaultView, a = Se(i), o = Ce(a), s = P(), c = be(), { mergeOptions: l, optionsAtMedia: u, optionsMediaQueries: d } = a, { on: f, off: p, emit: m } = c, h = O, g = !1, _, y = l(xe, W.globalOptions), b = l(y), x = [], S, C, w;
|
|
953
|
-
function T() {
|
|
954
|
-
let { container: t, slides: n } = b;
|
|
955
|
-
C = (v(t) ? e.querySelector(t) : t) || e.children[0];
|
|
956
|
-
let r = v(n) ? C.querySelectorAll(n) : n;
|
|
957
|
-
w = [].slice.call(r || C.children);
|
|
958
|
-
}
|
|
959
|
-
function E(t) {
|
|
960
|
-
let n = ye(e, C, w, r, i, t, c);
|
|
961
|
-
return t.loop && !n.slideLooper.canLoop() ? E(Object.assign({}, t, { loop: !1 })) : n;
|
|
962
|
-
}
|
|
963
|
-
function D(e, t) {
|
|
964
|
-
g || (y = l(y, e), b = u(y), x = t || x, T(), _ = E(b), d([y, ...x.map(({ options: e }) => e)]).forEach((e) => s.add(e, "change", O)), b.active && (_.translate.to(_.location.get()), _.animation.init(), _.slidesInView.init(), _.slideFocus.init(V), _.eventHandler.init(V), _.resizeHandler.init(V), _.slidesHandler.init(V), _.options.loop && _.slideLooper.loop(), C.offsetParent && w.length && _.dragHandler.init(V), S = o.init(V, x)));
|
|
965
|
-
}
|
|
966
|
-
function O(e, t) {
|
|
967
|
-
let n = I();
|
|
968
|
-
k(), D(l({ startIndex: n }, e), t), c.emit("reInit");
|
|
969
|
-
}
|
|
970
|
-
function k() {
|
|
971
|
-
_.dragHandler.destroy(), _.eventStore.clear(), _.translate.clear(), _.slideLooper.clear(), _.resizeHandler.destroy(), _.slidesHandler.destroy(), _.slidesInView.destroy(), _.animation.destroy(), o.destroy(), s.clear();
|
|
972
|
-
}
|
|
973
|
-
function A() {
|
|
974
|
-
g || (g = !0, s.clear(), k(), c.emit("destroy"), c.clear());
|
|
975
|
-
}
|
|
976
|
-
function j(e, t, n) {
|
|
977
|
-
b.active && !g && (_.scrollBody.useBaseFriction().useDuration(t === !0 ? 0 : b.duration), _.scrollTo.index(e, n || 0));
|
|
978
|
-
}
|
|
979
|
-
function M(e) {
|
|
980
|
-
j(_.index.add(1).get(), e, -1);
|
|
981
|
-
}
|
|
982
|
-
function N(e) {
|
|
983
|
-
j(_.index.add(-1).get(), e, 1);
|
|
984
|
-
}
|
|
985
|
-
function ee() {
|
|
986
|
-
return _.index.add(1).get() !== I();
|
|
987
|
-
}
|
|
988
|
-
function te() {
|
|
989
|
-
return _.index.add(-1).get() !== I();
|
|
990
|
-
}
|
|
991
|
-
function ne() {
|
|
992
|
-
return _.scrollSnapList;
|
|
993
|
-
}
|
|
994
|
-
function F() {
|
|
995
|
-
return _.scrollProgress.get(_.offsetLocation.get());
|
|
996
|
-
}
|
|
997
|
-
function I() {
|
|
998
|
-
return _.index.get();
|
|
999
|
-
}
|
|
1000
|
-
function L() {
|
|
1001
|
-
return _.indexPrevious.get();
|
|
1002
|
-
}
|
|
1003
|
-
function R() {
|
|
1004
|
-
return _.slidesInView.get();
|
|
1005
|
-
}
|
|
1006
|
-
function z() {
|
|
1007
|
-
return _.slidesInView.get(!1);
|
|
1008
|
-
}
|
|
1009
|
-
function B() {
|
|
1010
|
-
return S;
|
|
1011
|
-
}
|
|
1012
|
-
function re() {
|
|
1013
|
-
return _;
|
|
1014
|
-
}
|
|
1015
|
-
function ie() {
|
|
1016
|
-
return e;
|
|
1017
|
-
}
|
|
1018
|
-
function ae() {
|
|
1019
|
-
return C;
|
|
1020
|
-
}
|
|
1021
|
-
function oe() {
|
|
1022
|
-
return w;
|
|
1023
|
-
}
|
|
1024
|
-
let V = {
|
|
1025
|
-
canScrollNext: ee,
|
|
1026
|
-
canScrollPrev: te,
|
|
1027
|
-
containerNode: ae,
|
|
1028
|
-
internalEngine: re,
|
|
1029
|
-
destroy: A,
|
|
1030
|
-
off: p,
|
|
1031
|
-
on: f,
|
|
1032
|
-
emit: m,
|
|
1033
|
-
plugins: B,
|
|
1034
|
-
previousScrollSnap: L,
|
|
1035
|
-
reInit: h,
|
|
1036
|
-
rootNode: ie,
|
|
1037
|
-
scrollNext: M,
|
|
1038
|
-
scrollPrev: N,
|
|
1039
|
-
scrollProgress: F,
|
|
1040
|
-
scrollSnapList: ne,
|
|
1041
|
-
scrollTo: j,
|
|
1042
|
-
selectedScrollSnap: I,
|
|
1043
|
-
slideNodes: oe,
|
|
1044
|
-
slidesInView: R,
|
|
1045
|
-
slidesNotInView: z
|
|
1046
|
-
};
|
|
1047
|
-
return D(t, n), setTimeout(() => c.emit("init"), 0), V;
|
|
1048
|
-
}
|
|
1049
|
-
W.globalOptions = void 0;
|
|
1050
|
-
// ../../node_modules/.bun/embla-carousel-react@8.6.0+62547eec5a2188e3/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.js
|
|
1051
|
-
function G(e = {}, t = []) {
|
|
1052
|
-
let n = s(e), r = s(t), [i, l] = c(), [u, d] = c(), f = a(() => {
|
|
1053
|
-
i && i.reInit(n.current, r.current);
|
|
1054
|
-
}, [i]);
|
|
1055
|
-
return o(() => {
|
|
1056
|
-
m(n.current, e) || (n.current = e, f());
|
|
1057
|
-
}, [e, f]), o(() => {
|
|
1058
|
-
g(r.current, t) || (r.current = t, f());
|
|
1059
|
-
}, [t, f]), o(() => {
|
|
1060
|
-
if (p() && u) {
|
|
1061
|
-
W.globalOptions = G.globalOptions;
|
|
1062
|
-
let e = W(u, n.current, r.current);
|
|
1063
|
-
return l(e), () => e.destroy();
|
|
1064
|
-
}
|
|
1065
|
-
l(void 0);
|
|
1066
|
-
}, [u, l]), [d, i];
|
|
1067
|
-
}
|
|
1068
|
-
G.globalOptions = void 0;
|
|
1069
|
-
// src/carousel.tsx
|
|
1070
|
-
var we = i.createContext(null);
|
|
1071
|
-
function K() {
|
|
1072
|
-
let e = i.useContext(we);
|
|
1073
|
-
if (!e) throw Error("useCarousel must be used within a <Carousel />");
|
|
1074
|
-
return e;
|
|
1075
|
-
}
|
|
1076
|
-
function q({ orientation: t = "horizontal", opts: n, setApi: r, plugins: a, className: o, children: s, ...c }) {
|
|
1077
|
-
let [u, d] = G({
|
|
1078
|
-
...n,
|
|
1079
|
-
axis: t === "horizontal" ? "x" : "y"
|
|
1080
|
-
}, a), [f, p] = i.useState(!1), [m, h] = i.useState(!1), g = i.useCallback((e) => {
|
|
1081
|
-
e && (p(e.canScrollPrev()), h(e.canScrollNext()));
|
|
1082
|
-
}, []), _ = i.useCallback(() => {
|
|
1083
|
-
d?.scrollPrev();
|
|
1084
|
-
}, [d]), v = i.useCallback(() => {
|
|
1085
|
-
d?.scrollNext();
|
|
1086
|
-
}, [d]), y = i.useCallback((e) => {
|
|
1087
|
-
e.key === "ArrowLeft" ? (e.preventDefault(), _()) : e.key === "ArrowRight" && (e.preventDefault(), v());
|
|
1088
|
-
}, [_, v]);
|
|
1089
|
-
return i.useEffect(() => {
|
|
1090
|
-
d && r && r(d);
|
|
1091
|
-
}, [d, r]), i.useEffect(() => {
|
|
1092
|
-
if (d) return g(d), d.on("reInit", g), d.on("select", g), () => {
|
|
1093
|
-
d?.off("select", g);
|
|
1094
|
-
};
|
|
1095
|
-
}, [d, g]), /* @__PURE__ */ l(we.Provider, {
|
|
1096
|
-
value: {
|
|
1097
|
-
carouselRef: u,
|
|
1098
|
-
api: d,
|
|
1099
|
-
opts: n,
|
|
1100
|
-
orientation: t || (n?.axis === "y" ? "vertical" : "horizontal"),
|
|
1101
|
-
scrollPrev: _,
|
|
1102
|
-
scrollNext: v,
|
|
1103
|
-
canScrollPrev: f,
|
|
1104
|
-
canScrollNext: m
|
|
1105
|
-
},
|
|
1106
|
-
children: /* @__PURE__ */ l("section", {
|
|
1107
|
-
onKeyDownCapture: y,
|
|
1108
|
-
className: e("relative", o),
|
|
1109
|
-
"aria-roledescription": "carousel",
|
|
1110
|
-
"data-slot": "carousel",
|
|
1111
|
-
...c,
|
|
1112
|
-
children: s
|
|
1113
|
-
})
|
|
1114
|
-
});
|
|
1115
|
-
}
|
|
1116
|
-
function J({ className: t, ...n }) {
|
|
1117
|
-
let { carouselRef: r, orientation: i } = K();
|
|
1118
|
-
return /* @__PURE__ */ l("div", {
|
|
1119
|
-
ref: r,
|
|
1120
|
-
className: "overflow-hidden",
|
|
1121
|
-
"data-slot": "carousel-content",
|
|
1122
|
-
children: /* @__PURE__ */ l("div", {
|
|
1123
|
-
className: e("flex", i === "horizontal" ? "-ms-4" : "-mt-4 flex-col", t),
|
|
1124
|
-
...n
|
|
1125
|
-
})
|
|
1126
|
-
});
|
|
1127
|
-
}
|
|
1128
|
-
function Y({ className: t, ...n }) {
|
|
1129
|
-
let { orientation: r } = K();
|
|
1130
|
-
return /* @__PURE__ */ l("fieldset", {
|
|
1131
|
-
"aria-roledescription": "slide",
|
|
1132
|
-
"data-slot": "carousel-item",
|
|
1133
|
-
className: e("min-w-0 shrink-0 grow-0 basis-full", r === "horizontal" ? "ps-4" : "pt-4", t),
|
|
1134
|
-
...n
|
|
1135
|
-
});
|
|
1136
|
-
}
|
|
1137
|
-
function Te({ className: r, variant: i = "outline", size: a = "icon-sm", ...o }) {
|
|
1138
|
-
let { orientation: s, scrollPrev: c, canScrollPrev: d } = K();
|
|
1139
|
-
return /* @__PURE__ */ u(t, {
|
|
1140
|
-
"data-slot": "carousel-previous",
|
|
1141
|
-
variant: i,
|
|
1142
|
-
size: a,
|
|
1143
|
-
className: e("absolute touch-manipulation rounded-full", s === "horizontal" ? "inset-y-0 -start-12 my-auto" : "start-1/2 -top-12 -translate-x-1/2 rotate-90 rtl:translate-x-1/2", r),
|
|
1144
|
-
disabled: !d,
|
|
1145
|
-
onClick: c,
|
|
1146
|
-
...o,
|
|
1147
|
-
children: [/* @__PURE__ */ l(n, { className: "rtl:rotate-180" }), /* @__PURE__ */ l("span", {
|
|
1148
|
-
className: "sr-only",
|
|
1149
|
-
children: "Previous slide"
|
|
1150
|
-
})]
|
|
1151
|
-
});
|
|
1152
|
-
}
|
|
1153
|
-
function Ee({ className: n, variant: i = "outline", size: a = "icon-sm", ...o }) {
|
|
1154
|
-
let { orientation: s, scrollNext: c, canScrollNext: d } = K();
|
|
1155
|
-
return /* @__PURE__ */ u(t, {
|
|
1156
|
-
"data-slot": "carousel-next",
|
|
1157
|
-
variant: i,
|
|
1158
|
-
size: a,
|
|
1159
|
-
className: e("absolute touch-manipulation rounded-full", s === "horizontal" ? "inset-y-0 -end-12 my-auto" : "start-1/2 -bottom-12 -translate-x-1/2 rotate-90 rtl:translate-x-1/2", n),
|
|
1160
|
-
disabled: !d,
|
|
1161
|
-
onClick: c,
|
|
1162
|
-
...o,
|
|
1163
|
-
children: [/* @__PURE__ */ l(r, { className: "rtl:rotate-180" }), /* @__PURE__ */ l("span", {
|
|
1164
|
-
className: "sr-only",
|
|
1165
|
-
children: "Next slide"
|
|
1166
|
-
})]
|
|
1167
|
-
});
|
|
1168
|
-
}
|
|
1169
|
-
export { Te as a, Ee as i, J as n, K as o, Y as r, q as t };
|