@equal-experts/kuat-react 0.4.1 → 0.4.2
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/README.md +13 -28
- package/dist/accordion-DwQCxX_5.js +43 -0
- package/dist/accordion.css +1 -0
- package/dist/accordion.js +7 -6
- package/dist/alert-dialog-CT9DCCMH.js +96 -0
- package/dist/alert-dialog.css +1 -0
- package/dist/alert-dialog.js +14 -13
- package/dist/badge-Yftb6Tdy.js +22 -0
- package/dist/badge.css +1 -0
- package/dist/badge.js +5 -4
- package/dist/button-DqdoNQqx.js +69 -0
- package/dist/button-group-BNfxHMty.js +80 -0
- package/dist/button-group.css +1 -0
- package/dist/button-group.js +7 -6
- package/dist/button.css +1 -0
- package/dist/button.js +5 -4
- package/dist/components/ui/accordion/index.d.ts +1 -0
- package/dist/components/ui/alert-dialog/index.d.ts +1 -0
- package/dist/components/ui/badge/badge.d.ts +16 -0
- package/dist/components/ui/badge/index.d.ts +2 -0
- package/dist/components/ui/breadcrumb/Breadcrumb.d.ts +29 -0
- package/dist/components/ui/breadcrumb/breadcrumb-primitives.d.ts +19 -0
- package/dist/components/ui/breadcrumb/index.d.ts +4 -0
- package/dist/components/ui/button/button.d.ts +27 -0
- package/dist/components/ui/button/index.d.ts +2 -0
- package/dist/components/ui/button-group/button-group.d.ts +23 -0
- package/dist/components/ui/button-group/index.d.ts +2 -0
- package/dist/components/ui/content-card/content-card.d.ts +25 -0
- package/dist/components/ui/content-card/index.d.ts +2 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts +27 -0
- package/dist/components/ui/dropdown-menu/index.d.ts +1 -0
- package/dist/components/ui/ee-logo-icon/ee-logo-icon.d.ts +11 -0
- package/dist/components/ui/ee-logo-icon/index.d.ts +2 -0
- package/dist/components/ui/kuat-carousel/index.d.ts +2 -0
- package/dist/components/ui/kuat-carousel/kuat-carousel.d.ts +32 -0
- package/dist/components/ui/kuat-header/index.d.ts +2 -0
- package/dist/components/ui/kuat-header/kuat-header.d.ts +38 -0
- package/dist/components/ui/kuat-logo-lockup/index.d.ts +2 -0
- package/dist/components/ui/kuat-logo-lockup/kuat-logo-lockup.d.ts +17 -0
- package/dist/components/ui/kuat-radial-progress/index.d.ts +2 -0
- package/dist/components/ui/kuat-radial-progress/kuat-radial-progress.d.ts +16 -0
- package/dist/components/ui/separator/index.d.ts +2 -0
- package/dist/components/ui/separator/separator.d.ts +9 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +32 -23
- package/dist/index.js +2000 -30
- package/dist/kuat-radial-progress-B3nQqPFW.js +105 -0
- package/dist/kuat-radial-progress.css +1 -0
- package/dist/kuat-radial-progress.d.ts +7 -0
- package/dist/kuat-radial-progress.js +6 -0
- package/dist/lib/react-node-compat.d.ts +7 -0
- package/dist/styles.css +1 -0
- package/dist/test/setup.d.ts +1 -0
- package/dist/{utils-qaFjX9_3.js → utils-DLUjLwnh.js} +0 -1
- package/package.json +21 -9
- package/dist/accordion-CQDgmmJ5.js +0 -46
- package/dist/alert-dialog-CzXLOFRG.js +0 -113
- package/dist/badge-DRUd-ban.js +0 -26
- package/dist/button-CPn6T5-L.js +0 -44
- package/dist/button-group-DUSbG9lE.js +0 -93
- package/dist/components/ui/badge.d.ts +0 -9
- package/dist/components/ui/button-group.d.ts +0 -12
- package/dist/components/ui/button.d.ts +0 -11
- package/dist/components/ui/separator.d.ts +0 -4
- package/dist/index-DACAHwoB.js +0 -34
- package/dist/style.css +0 -1
- /package/dist/components/ui/{accordion.d.ts → accordion/accordion.d.ts} +0 -0
- /package/dist/components/ui/{alert-dialog.d.ts → alert-dialog/alert-dialog.d.ts} +0 -0
package/dist/index.js
CHANGED
|
@@ -1,32 +1,2002 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import {
|
|
3
|
-
import { B as
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
1
|
+
import { c as x } from "./utils-DLUjLwnh.js";
|
|
2
|
+
import { S as st } from "./button-group-BNfxHMty.js";
|
|
3
|
+
import { d as Gn, B as zn, a as jn, b as Un, c as $n } from "./button-group-BNfxHMty.js";
|
|
4
|
+
import { jsxs as V, jsx as u, Fragment as Se } from "react/jsx-runtime";
|
|
5
|
+
import * as w from "react";
|
|
6
|
+
import { useRef as We, useState as et, useCallback as kt, useEffect as Ee } from "react";
|
|
7
|
+
import { ChevronLeft as Ht, ChevronRight as Oe, MoreHorizontal as Et, ChevronDown as Vt } from "lucide-react";
|
|
8
|
+
import { b as Qn, a as Jn, K as Xn } from "./kuat-radial-progress-B3nQqPFW.js";
|
|
9
|
+
import { A as Wn, c as er, a as tr, b as nr } from "./accordion-DwQCxX_5.js";
|
|
10
|
+
import { A as or, i as sr, j as cr, d as ir, h as ar, f as lr, e as ur, b as dr, a as fr, g as mr, c as pr } from "./alert-dialog-CT9DCCMH.js";
|
|
11
|
+
import { c as gr, a as br, B as Cr, b as Nr } from "./badge-Yftb6Tdy.js";
|
|
12
|
+
import * as R from "@radix-ui/react-dropdown-menu";
|
|
13
|
+
import { d as Sr, c as wr, a as vr, B as _r, b as xr } from "./button-DqdoNQqx.js";
|
|
14
|
+
const On = w.forwardRef(function({
|
|
15
|
+
className: t,
|
|
16
|
+
asChild: n = !1,
|
|
17
|
+
imageSrc: r = null,
|
|
18
|
+
imageAlt: s = "",
|
|
19
|
+
contentText: c = null,
|
|
20
|
+
headerAccessory: o = null,
|
|
21
|
+
customContent: l = null,
|
|
22
|
+
footer: i = null,
|
|
23
|
+
badge: a,
|
|
24
|
+
category: b,
|
|
25
|
+
title: p,
|
|
26
|
+
titleHeadingLevel: f = 3,
|
|
27
|
+
children: N,
|
|
28
|
+
...m
|
|
29
|
+
}, h) {
|
|
30
|
+
const g = `h${f}`, d = /* @__PURE__ */ V(Se, { children: [
|
|
31
|
+
r !== null ? /* @__PURE__ */ u("div", { className: "content-card__media", children: /* @__PURE__ */ u("img", { className: "content-card__media-img", alt: s, src: r }) }) : null,
|
|
32
|
+
/* @__PURE__ */ V("div", { className: "content-card__body", children: [
|
|
33
|
+
/* @__PURE__ */ V("div", { className: "content-card__heading-row", children: [
|
|
34
|
+
/* @__PURE__ */ V("div", { className: "content-card__heading-left", children: [
|
|
35
|
+
/* @__PURE__ */ V("div", { className: "content-card__heading-meta", children: [
|
|
36
|
+
/* @__PURE__ */ u("div", { "data-slot": "badge", className: "content-card__badge", children: a }),
|
|
37
|
+
/* @__PURE__ */ u("p", { className: "content-card__category", children: b })
|
|
38
|
+
] }),
|
|
39
|
+
/* @__PURE__ */ u(g, { className: "content-card__title", children: p })
|
|
40
|
+
] }),
|
|
41
|
+
/* @__PURE__ */ u(
|
|
42
|
+
"div",
|
|
43
|
+
{
|
|
44
|
+
"data-slot": "header-accessory",
|
|
45
|
+
className: "content-card__header-accessory",
|
|
46
|
+
children: o ?? null
|
|
47
|
+
}
|
|
48
|
+
)
|
|
49
|
+
] }),
|
|
50
|
+
c != null ? /* @__PURE__ */ u("div", { "data-slot": "content", className: "content-card__content", children: /* @__PURE__ */ u("p", { className: "content-card__content-text", children: c }) }) : null,
|
|
51
|
+
/* @__PURE__ */ u("div", { "data-slot": "custom-content", className: "content-card__custom-content", children: l ?? null }),
|
|
52
|
+
/* @__PURE__ */ u("div", { "data-slot": "footer", className: "content-card__footer", children: i ?? null })
|
|
53
|
+
] })
|
|
54
|
+
] });
|
|
55
|
+
if (n) {
|
|
56
|
+
const C = w.Children.only(N);
|
|
57
|
+
if (!w.isValidElement(C))
|
|
58
|
+
throw new Error("ContentCard: when `asChild` is true, provide a single React element child.");
|
|
59
|
+
const y = C;
|
|
60
|
+
return w.cloneElement(
|
|
61
|
+
y,
|
|
62
|
+
{
|
|
63
|
+
...m,
|
|
64
|
+
ref: h,
|
|
65
|
+
"data-slot": "content-card",
|
|
66
|
+
className: x("content-card", y.props.className, t)
|
|
67
|
+
},
|
|
68
|
+
d
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
return /* @__PURE__ */ u(
|
|
72
|
+
"div",
|
|
73
|
+
{
|
|
74
|
+
ref: h,
|
|
75
|
+
"data-slot": "content-card",
|
|
76
|
+
className: x("content-card", t),
|
|
77
|
+
...m,
|
|
78
|
+
children: d
|
|
79
|
+
}
|
|
80
|
+
);
|
|
81
|
+
});
|
|
82
|
+
function Ve({ className: e, textColor: t = "grey" }) {
|
|
83
|
+
return /* @__PURE__ */ V(
|
|
84
|
+
"svg",
|
|
85
|
+
{
|
|
86
|
+
className: x("ee-logo", `ee-logo--${t}`, e),
|
|
87
|
+
viewBox: "0 0 500 133",
|
|
88
|
+
fill: "none",
|
|
89
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
90
|
+
"aria-label": "Equal Experts logo",
|
|
91
|
+
children: [
|
|
92
|
+
/* @__PURE__ */ V("g", { clipPath: "url(#ee-logo-clip)", children: [
|
|
93
|
+
/* @__PURE__ */ V("g", { className: "ee-logo__text", fill: "currentColor", children: [
|
|
94
|
+
/* @__PURE__ */ u("path", { d: "M220.235 1.45712L219.413 13.0751H197.72V23.2946H216.859V34.844H197.72V45.3862H219.667V57.0237H184.687V1.45712H220.235Z" }),
|
|
95
|
+
/* @__PURE__ */ u("path", { d: "M227.495 29.0742C227.495 11.6766 233.601 0.136902 250.675 0.136902C267.75 0.136902 273.855 11.6766 273.855 29.0742V29.3382C273.855 41.4549 270.92 50.6084 263.454 55.2243L271.869 65.0037L260.568 70.7736L252.446 58.256C251.872 58.3312 251.293 58.3606 250.714 58.344C233.64 58.344 227.534 46.7945 227.534 29.3187L227.495 29.0742ZM241.194 29.2307C241.194 40.6921 243.669 46.55 250.685 46.55C257.701 46.55 260.254 40.6823 260.254 29.2307C260.254 17.779 257.691 11.9211 250.685 11.9211C243.679 11.9211 241.194 17.8572 241.194 29.2307Z" }),
|
|
96
|
+
/* @__PURE__ */ u("path", { d: "M295.871 1.36911V35.2059C295.871 42.7947 297.436 46.5891 304.119 46.5891C310.802 46.5891 312.368 42.7947 312.368 35.2059V1.36911H325.401V35.8318C325.401 50.5009 320.284 58.3244 304.119 58.3244C287.955 58.3244 282.847 50.5009 282.847 35.8318V1.36911H295.871Z" }),
|
|
97
|
+
/* @__PURE__ */ u("path", { d: "M361.282 1.45712C365.734 13.0751 373.493 37.0737 378.894 57.014H365.656L363.258 46.462H346.38L343.982 57.014H330.724C335.651 38.2094 341.53 19.6666 348.337 1.45712H361.282ZM354.599 16.7032C352.544 22.8838 350.89 28.9079 349.315 34.844H360.294C358.562 28.9079 356.996 22.8838 355.01 16.7032H354.599Z" }),
|
|
98
|
+
/* @__PURE__ */ u("path", { d: "M399.139 1.45712V45.3862H421.076V57.0237H386.106V1.45712H399.139Z" })
|
|
99
|
+
] }),
|
|
100
|
+
/* @__PURE__ */ u("path", { d: "M102.74 38.8927H40.5969V57.5323H102.74V38.8927Z", fill: "#1795D4" }),
|
|
101
|
+
/* @__PURE__ */ u("path", { d: "M102.74 75.3895H40.5969V93.029H102.74V75.3895Z", fill: "#1795D4" }),
|
|
102
|
+
/* @__PURE__ */ u("path", { d: "M0.489227 2.44485V20.7938V110.382V128.741H19.1389H56.6732V110.382H19.1389V20.7938H56.6732V2.44485H19.1389H0.489227Z", fill: "#1795D4" }),
|
|
103
|
+
/* @__PURE__ */ u("path", { d: "M124.198 2.44485H85.6262V21.0844H124.198V112.092H85.6262V130.741H124.198H142.847V112.092V21.0844V2.44485H124.198Z", fill: "#1795D4" }),
|
|
104
|
+
/* @__PURE__ */ V("g", { className: "ee-logo__text", fill: "currentColor", children: [
|
|
105
|
+
/* @__PURE__ */ u("path", { d: "M220.235 75.2819L219.413 86.9096H197.72V97.1291H216.859V108.679H197.72V119.231H219.667V130.849H184.687V75.2819H220.235Z" }),
|
|
106
|
+
/* @__PURE__ */ u("path", { d: "M240.773 75.3015C243.17 80.1912 246.712 87.0368 249.677 92.2101H249.931C252.984 87.2519 256.614 80.1716 258.924 75.3015H273.601C269.687 83.2228 263.63 93.6868 258.014 102.928L274.765 130.868H259.168L250.088 113.969H249.853L240.616 130.868H225.264L241.683 102.821C236.487 94.0193 229.941 82.1275 226.174 75.2819L240.773 75.3015Z" }),
|
|
107
|
+
/* @__PURE__ */ u("path", { d: "M296.204 75.3015C301.096 75.3015 305.939 75.634 309.648 76.8759C315.842 79.0959 319.873 85.1982 319.873 93.7748C319.873 106.39 311.879 112.649 298.425 112.649H294.804V130.849H281.8V75.3015H296.204ZM294.804 101.021H297.358C302.965 101.021 306.164 100.366 306.164 93.7748C306.164 91.3006 305.254 89.1589 303.767 88.1614C302.28 87.1639 300.313 86.9292 297.505 86.9292H294.785L294.804 101.021Z" }),
|
|
108
|
+
/* @__PURE__ */ u("path", { d: "M363.924 75.2819L363.092 86.9096H341.399V97.1291H360.538V108.679H341.399V119.231H363.346V130.849H328.366V75.2819H363.924Z" }),
|
|
109
|
+
/* @__PURE__ */ u("path", { d: "M387.593 75.3015C392.485 75.3015 397.329 75.634 401.037 76.8759C407.221 79.0959 411.262 85.1884 411.262 93.7748C411.262 101.442 408.327 106.801 402.935 109.764L412.994 130.868H399.472L391.468 112.571C390.558 112.649 389.325 112.649 388.17 112.649H386.213V130.849H373.151V75.3015H387.593ZM386.194 101.276H388.748C394.354 101.276 397.554 100.366 397.554 93.7748C397.554 91.3006 396.644 88.9926 395.166 87.9951C393.689 86.9976 391.859 86.7629 388.885 86.7629H386.174L386.194 101.276Z" }),
|
|
110
|
+
/* @__PURE__ */ u("path", { d: "M456.957 75.2819L456.135 86.9096H442.857V130.849H429.824V86.9096H416.213V75.2819H456.957Z" }),
|
|
111
|
+
/* @__PURE__ */ u("path", { d: "M495.978 89.1393C492.031 87.0587 487.652 85.93 483.19 85.8437C481.553 85.7535 479.918 86.0343 478.405 86.6651C477.672 86.9348 477.045 87.4311 476.613 88.0819C476.182 88.7326 475.97 89.5039 476.008 90.2835C476.008 93.2174 478.943 94.9874 483.024 96.6401L487.642 98.4493C495.89 101.755 499.765 106.204 499.765 114.282C499.765 127.142 490.362 132.169 479.061 132.169C473.816 132.084 468.616 131.197 463.64 129.538L464.217 117.001C468.488 119.008 473.113 120.154 477.828 120.375C483.767 120.375 486.076 118.888 486.076 115.485C486.076 112.277 483.933 110.869 479.227 108.972L474.609 107.163C467.926 104.522 462.319 99.8282 462.319 90.5965C462.319 81.3647 469.002 73.9715 482.524 73.9715C487.385 74.0422 492.192 74.9931 496.712 76.7782L495.978 89.1393Z" })
|
|
112
|
+
] })
|
|
113
|
+
] }),
|
|
114
|
+
/* @__PURE__ */ u("defs", { children: /* @__PURE__ */ u("clipPath", { id: "ee-logo-clip", children: /* @__PURE__ */ u("rect", { width: "500", height: "133", fill: "white" }) }) })
|
|
115
|
+
]
|
|
116
|
+
}
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
const At = w.forwardRef(
|
|
120
|
+
({
|
|
121
|
+
className: e,
|
|
122
|
+
variant: t = "default",
|
|
123
|
+
logo: n,
|
|
124
|
+
title: r,
|
|
125
|
+
navigation: s,
|
|
126
|
+
actions: c,
|
|
127
|
+
mobileMenuTrigger: o,
|
|
128
|
+
mobileMenu: l,
|
|
129
|
+
hideLogo: i,
|
|
130
|
+
children: a,
|
|
131
|
+
...b
|
|
132
|
+
}, p) => {
|
|
133
|
+
const f = n !== void 0 ? n : !i && /* @__PURE__ */ u(
|
|
134
|
+
Ve,
|
|
135
|
+
{
|
|
136
|
+
className: "ee-logo--desktop shrink-0",
|
|
137
|
+
textColor: t === "bold" ? "white" : "grey"
|
|
138
|
+
}
|
|
139
|
+
), N = n !== void 0 ? n : !i && /* @__PURE__ */ u(
|
|
140
|
+
Ve,
|
|
141
|
+
{
|
|
142
|
+
className: "ee-logo--mobile shrink-0",
|
|
143
|
+
textColor: t === "bold" ? "white" : "grey"
|
|
144
|
+
}
|
|
145
|
+
);
|
|
146
|
+
return /* @__PURE__ */ V(
|
|
147
|
+
"header",
|
|
148
|
+
{
|
|
149
|
+
ref: p,
|
|
150
|
+
className: x(
|
|
151
|
+
"kuat-header",
|
|
152
|
+
`kuat-header--${t}`,
|
|
153
|
+
e
|
|
154
|
+
),
|
|
155
|
+
...b,
|
|
156
|
+
children: [
|
|
157
|
+
/* @__PURE__ */ V("div", { className: "kuat-header__desktop", children: [
|
|
158
|
+
/* @__PURE__ */ V("div", { className: "kuat-header__desktop-left", children: [
|
|
159
|
+
f && /* @__PURE__ */ V(Se, { children: [
|
|
160
|
+
/* @__PURE__ */ u("div", { className: "shrink-0", children: f }),
|
|
161
|
+
/* @__PURE__ */ u(
|
|
162
|
+
st,
|
|
163
|
+
{
|
|
164
|
+
orientation: "vertical",
|
|
165
|
+
className: "kuat-header__separator"
|
|
166
|
+
}
|
|
167
|
+
)
|
|
168
|
+
] }),
|
|
169
|
+
r && /* @__PURE__ */ u("h1", { className: "kuat-header__desktop-title", children: r })
|
|
170
|
+
] }),
|
|
171
|
+
/* @__PURE__ */ V("div", { className: "kuat-header__desktop-right", children: [
|
|
172
|
+
s && /* @__PURE__ */ u("nav", { className: "flex items-center", children: s }),
|
|
173
|
+
c && /* @__PURE__ */ u("div", { className: "flex items-center gap-2", children: c })
|
|
174
|
+
] })
|
|
175
|
+
] }),
|
|
176
|
+
/* @__PURE__ */ V("div", { className: "kuat-header__mobile", children: [
|
|
177
|
+
/* @__PURE__ */ V("div", { className: "kuat-header__mobile-left", children: [
|
|
178
|
+
N && /* @__PURE__ */ u("div", { className: "shrink-0", children: N }),
|
|
179
|
+
r && /* @__PURE__ */ u("p", { className: "kuat-header__mobile-title", children: r })
|
|
180
|
+
] }),
|
|
181
|
+
o && /* @__PURE__ */ u("div", { className: "shrink-0", children: o })
|
|
182
|
+
] }),
|
|
183
|
+
l,
|
|
184
|
+
a
|
|
185
|
+
]
|
|
186
|
+
}
|
|
187
|
+
);
|
|
188
|
+
}
|
|
189
|
+
);
|
|
190
|
+
At.displayName = "KuatHeader";
|
|
191
|
+
function Rn(e) {
|
|
192
|
+
const t = (e == null ? void 0 : e.variant) ?? "default";
|
|
193
|
+
return x("kuat-header", `kuat-header--${t}`);
|
|
194
|
+
}
|
|
195
|
+
function Mt(e) {
|
|
196
|
+
return Object.prototype.toString.call(e) === "[object Object]";
|
|
197
|
+
}
|
|
198
|
+
function tt(e) {
|
|
199
|
+
return Mt(e) || Array.isArray(e);
|
|
200
|
+
}
|
|
201
|
+
function It() {
|
|
202
|
+
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
203
|
+
}
|
|
204
|
+
function Re(e, t) {
|
|
205
|
+
const n = Object.keys(e), r = Object.keys(t);
|
|
206
|
+
if (n.length !== r.length) return !1;
|
|
207
|
+
const s = JSON.stringify(Object.keys(e.breakpoints || {})), c = JSON.stringify(Object.keys(t.breakpoints || {}));
|
|
208
|
+
return s !== c ? !1 : n.every((o) => {
|
|
209
|
+
const l = e[o], i = t[o];
|
|
210
|
+
return typeof l == "function" ? `${l}` == `${i}` : !tt(l) || !tt(i) ? l === i : Re(l, i);
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
function nt(e) {
|
|
214
|
+
return e.concat().sort((t, n) => t.name > n.name ? 1 : -1).map((t) => t.options);
|
|
215
|
+
}
|
|
216
|
+
function Dt(e, t) {
|
|
217
|
+
if (e.length !== t.length) return !1;
|
|
218
|
+
const n = nt(e), r = nt(t);
|
|
219
|
+
return n.every((s, c) => {
|
|
220
|
+
const o = r[c];
|
|
221
|
+
return Re(s, o);
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
function Be(e) {
|
|
225
|
+
return typeof e == "number";
|
|
226
|
+
}
|
|
227
|
+
function Ae(e) {
|
|
228
|
+
return typeof e == "string";
|
|
229
|
+
}
|
|
230
|
+
function we(e) {
|
|
231
|
+
return typeof e == "boolean";
|
|
232
|
+
}
|
|
233
|
+
function rt(e) {
|
|
234
|
+
return Object.prototype.toString.call(e) === "[object Object]";
|
|
235
|
+
}
|
|
236
|
+
function D(e) {
|
|
237
|
+
return Math.abs(e);
|
|
238
|
+
}
|
|
239
|
+
function Pe(e) {
|
|
240
|
+
return Math.sign(e);
|
|
241
|
+
}
|
|
242
|
+
function pe(e, t) {
|
|
243
|
+
return D(e - t);
|
|
244
|
+
}
|
|
245
|
+
function Tt(e, t) {
|
|
246
|
+
if (e === 0 || t === 0 || D(e) <= D(t)) return 0;
|
|
247
|
+
const n = pe(D(e), D(t));
|
|
248
|
+
return D(n / e);
|
|
249
|
+
}
|
|
250
|
+
function Ot(e) {
|
|
251
|
+
return Math.round(e * 100) / 100;
|
|
252
|
+
}
|
|
253
|
+
function he(e) {
|
|
254
|
+
return ge(e).map(Number);
|
|
255
|
+
}
|
|
256
|
+
function G(e) {
|
|
257
|
+
return e[Ce(e)];
|
|
258
|
+
}
|
|
259
|
+
function Ce(e) {
|
|
260
|
+
return Math.max(0, e.length - 1);
|
|
261
|
+
}
|
|
262
|
+
function Fe(e, t) {
|
|
263
|
+
return t === Ce(e);
|
|
264
|
+
}
|
|
265
|
+
function ot(e, t = 0) {
|
|
266
|
+
return Array.from(Array(e), (n, r) => t + r);
|
|
267
|
+
}
|
|
268
|
+
function ge(e) {
|
|
269
|
+
return Object.keys(e);
|
|
270
|
+
}
|
|
271
|
+
function ct(e, t) {
|
|
272
|
+
return [e, t].reduce((n, r) => (ge(r).forEach((s) => {
|
|
273
|
+
const c = n[s], o = r[s], l = rt(c) && rt(o);
|
|
274
|
+
n[s] = l ? ct(c, o) : o;
|
|
275
|
+
}), n), {});
|
|
276
|
+
}
|
|
277
|
+
function Me(e, t) {
|
|
278
|
+
return typeof t.MouseEvent < "u" && e instanceof t.MouseEvent;
|
|
279
|
+
}
|
|
280
|
+
function Rt(e, t) {
|
|
281
|
+
const n = {
|
|
282
|
+
start: r,
|
|
283
|
+
center: s,
|
|
284
|
+
end: c
|
|
285
|
+
};
|
|
286
|
+
function r() {
|
|
287
|
+
return 0;
|
|
288
|
+
}
|
|
289
|
+
function s(i) {
|
|
290
|
+
return c(i) / 2;
|
|
291
|
+
}
|
|
292
|
+
function c(i) {
|
|
293
|
+
return t - i;
|
|
294
|
+
}
|
|
295
|
+
function o(i, a) {
|
|
296
|
+
return Ae(e) ? n[e](i) : e(t, i, a);
|
|
297
|
+
}
|
|
298
|
+
return {
|
|
299
|
+
measure: o
|
|
300
|
+
};
|
|
301
|
+
}
|
|
302
|
+
function be() {
|
|
303
|
+
let e = [];
|
|
304
|
+
function t(s, c, o, l = {
|
|
305
|
+
passive: !0
|
|
306
|
+
}) {
|
|
307
|
+
let i;
|
|
308
|
+
if ("addEventListener" in s)
|
|
309
|
+
s.addEventListener(c, o, l), i = () => s.removeEventListener(c, o, l);
|
|
310
|
+
else {
|
|
311
|
+
const a = s;
|
|
312
|
+
a.addListener(o), i = () => a.removeListener(o);
|
|
313
|
+
}
|
|
314
|
+
return e.push(i), r;
|
|
315
|
+
}
|
|
316
|
+
function n() {
|
|
317
|
+
e = e.filter((s) => s());
|
|
318
|
+
}
|
|
319
|
+
const r = {
|
|
320
|
+
add: t,
|
|
321
|
+
clear: n
|
|
322
|
+
};
|
|
323
|
+
return r;
|
|
324
|
+
}
|
|
325
|
+
function Bt(e, t, n, r) {
|
|
326
|
+
const s = be(), c = 1e3 / 60;
|
|
327
|
+
let o = null, l = 0, i = 0;
|
|
328
|
+
function a() {
|
|
329
|
+
s.add(e, "visibilitychange", () => {
|
|
330
|
+
e.hidden && m();
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
function b() {
|
|
334
|
+
N(), s.clear();
|
|
335
|
+
}
|
|
336
|
+
function p(g) {
|
|
337
|
+
if (!i) return;
|
|
338
|
+
o || (o = g, n(), n());
|
|
339
|
+
const d = g - o;
|
|
340
|
+
for (o = g, l += d; l >= c; )
|
|
341
|
+
n(), l -= c;
|
|
342
|
+
const C = l / c;
|
|
343
|
+
r(C), i && (i = t.requestAnimationFrame(p));
|
|
344
|
+
}
|
|
345
|
+
function f() {
|
|
346
|
+
i || (i = t.requestAnimationFrame(p));
|
|
347
|
+
}
|
|
348
|
+
function N() {
|
|
349
|
+
t.cancelAnimationFrame(i), o = null, l = 0, i = 0;
|
|
350
|
+
}
|
|
351
|
+
function m() {
|
|
352
|
+
o = null, l = 0;
|
|
353
|
+
}
|
|
354
|
+
return {
|
|
355
|
+
init: a,
|
|
356
|
+
destroy: b,
|
|
357
|
+
start: f,
|
|
358
|
+
stop: N,
|
|
359
|
+
update: n,
|
|
360
|
+
render: r
|
|
361
|
+
};
|
|
362
|
+
}
|
|
363
|
+
function Pt(e, t) {
|
|
364
|
+
const n = t === "rtl", r = e === "y", s = r ? "y" : "x", c = r ? "x" : "y", o = !r && n ? -1 : 1, l = b(), i = p();
|
|
365
|
+
function a(m) {
|
|
366
|
+
const {
|
|
367
|
+
height: h,
|
|
368
|
+
width: g
|
|
369
|
+
} = m;
|
|
370
|
+
return r ? h : g;
|
|
371
|
+
}
|
|
372
|
+
function b() {
|
|
373
|
+
return r ? "top" : n ? "right" : "left";
|
|
374
|
+
}
|
|
375
|
+
function p() {
|
|
376
|
+
return r ? "bottom" : n ? "left" : "right";
|
|
377
|
+
}
|
|
378
|
+
function f(m) {
|
|
379
|
+
return m * o;
|
|
380
|
+
}
|
|
381
|
+
return {
|
|
382
|
+
scroll: s,
|
|
383
|
+
cross: c,
|
|
384
|
+
startEdge: l,
|
|
385
|
+
endEdge: i,
|
|
386
|
+
measureSize: a,
|
|
387
|
+
direction: f
|
|
388
|
+
};
|
|
389
|
+
}
|
|
390
|
+
function se(e = 0, t = 0) {
|
|
391
|
+
const n = D(e - t);
|
|
392
|
+
function r(a) {
|
|
393
|
+
return a < e;
|
|
394
|
+
}
|
|
395
|
+
function s(a) {
|
|
396
|
+
return a > t;
|
|
397
|
+
}
|
|
398
|
+
function c(a) {
|
|
399
|
+
return r(a) || s(a);
|
|
400
|
+
}
|
|
401
|
+
function o(a) {
|
|
402
|
+
return c(a) ? r(a) ? e : t : a;
|
|
403
|
+
}
|
|
404
|
+
function l(a) {
|
|
405
|
+
return n ? a - n * Math.ceil((a - t) / n) : a;
|
|
406
|
+
}
|
|
407
|
+
return {
|
|
408
|
+
length: n,
|
|
409
|
+
max: t,
|
|
410
|
+
min: e,
|
|
411
|
+
constrain: o,
|
|
412
|
+
reachedAny: c,
|
|
413
|
+
reachedMax: s,
|
|
414
|
+
reachedMin: r,
|
|
415
|
+
removeOffset: l
|
|
416
|
+
};
|
|
417
|
+
}
|
|
418
|
+
function it(e, t, n) {
|
|
419
|
+
const {
|
|
420
|
+
constrain: r
|
|
421
|
+
} = se(0, e), s = e + 1;
|
|
422
|
+
let c = o(t);
|
|
423
|
+
function o(f) {
|
|
424
|
+
return n ? D((s + f) % s) : r(f);
|
|
425
|
+
}
|
|
426
|
+
function l() {
|
|
427
|
+
return c;
|
|
428
|
+
}
|
|
429
|
+
function i(f) {
|
|
430
|
+
return c = o(f), p;
|
|
431
|
+
}
|
|
432
|
+
function a(f) {
|
|
433
|
+
return b().set(l() + f);
|
|
434
|
+
}
|
|
435
|
+
function b() {
|
|
436
|
+
return it(e, l(), n);
|
|
437
|
+
}
|
|
438
|
+
const p = {
|
|
439
|
+
get: l,
|
|
440
|
+
set: i,
|
|
441
|
+
add: a,
|
|
442
|
+
clone: b
|
|
443
|
+
};
|
|
444
|
+
return p;
|
|
445
|
+
}
|
|
446
|
+
function Ft(e, t, n, r, s, c, o, l, i, a, b, p, f, N, m, h, g, d, C) {
|
|
447
|
+
const {
|
|
448
|
+
cross: y,
|
|
449
|
+
direction: L
|
|
450
|
+
} = e, k = ["INPUT", "SELECT", "TEXTAREA"], H = {
|
|
451
|
+
passive: !1
|
|
452
|
+
}, v = be(), _ = be(), E = se(50, 225).constrain(N.measure(20)), T = {
|
|
453
|
+
mouse: 300,
|
|
454
|
+
touch: 400
|
|
455
|
+
}, A = {
|
|
456
|
+
mouse: 500,
|
|
457
|
+
touch: 600
|
|
458
|
+
}, F = m ? 43 : 25;
|
|
459
|
+
let z = !1, j = 0, U = 0, ne = !1, ee = !1, Q = !1, J = !1;
|
|
460
|
+
function le(S) {
|
|
461
|
+
if (!C) return;
|
|
462
|
+
function M(P) {
|
|
463
|
+
(we(C) || C(S, P)) && de(P);
|
|
464
|
+
}
|
|
465
|
+
const O = t;
|
|
466
|
+
v.add(O, "dragstart", (P) => P.preventDefault(), H).add(O, "touchmove", () => {
|
|
467
|
+
}, H).add(O, "touchend", () => {
|
|
468
|
+
}).add(O, "touchstart", M).add(O, "mousedown", M).add(O, "touchcancel", B).add(O, "contextmenu", B).add(O, "click", Y, !0);
|
|
469
|
+
}
|
|
470
|
+
function $() {
|
|
471
|
+
v.clear(), _.clear();
|
|
472
|
+
}
|
|
473
|
+
function ce() {
|
|
474
|
+
const S = J ? n : t;
|
|
475
|
+
_.add(S, "touchmove", K, H).add(S, "touchend", B).add(S, "mousemove", K, H).add(S, "mouseup", B);
|
|
476
|
+
}
|
|
477
|
+
function ie(S) {
|
|
478
|
+
const M = S.nodeName || "";
|
|
479
|
+
return k.includes(M);
|
|
480
|
+
}
|
|
481
|
+
function X() {
|
|
482
|
+
return (m ? A : T)[J ? "mouse" : "touch"];
|
|
483
|
+
}
|
|
484
|
+
function ue(S, M) {
|
|
485
|
+
const O = p.add(Pe(S) * -1), P = b.byDistance(S, !m).distance;
|
|
486
|
+
return m || D(S) < E ? P : g && M ? P * 0.5 : b.byIndex(O.get(), 0).distance;
|
|
487
|
+
}
|
|
488
|
+
function de(S) {
|
|
489
|
+
const M = Me(S, r);
|
|
490
|
+
J = M, Q = m && M && !S.buttons && z, z = pe(s.get(), o.get()) >= 2, !(M && S.button !== 0) && (ie(S.target) || (ne = !0, c.pointerDown(S), a.useFriction(0).useDuration(0), s.set(o), ce(), j = c.readPoint(S), U = c.readPoint(S, y), f.emit("pointerDown")));
|
|
491
|
+
}
|
|
492
|
+
function K(S) {
|
|
493
|
+
if (!Me(S, r) && S.touches.length >= 2) return B(S);
|
|
494
|
+
const O = c.readPoint(S), P = c.readPoint(S, y), q = pe(O, j), W = pe(P, U);
|
|
495
|
+
if (!ee && !J && (!S.cancelable || (ee = q > W, !ee)))
|
|
496
|
+
return B(S);
|
|
497
|
+
const re = c.pointerMove(S);
|
|
498
|
+
q > h && (Q = !0), a.useFriction(0.3).useDuration(0.75), l.start(), s.add(L(re)), S.preventDefault();
|
|
499
|
+
}
|
|
500
|
+
function B(S) {
|
|
501
|
+
const O = b.byDistance(0, !1).index !== p.get(), P = c.pointerUp(S) * X(), q = ue(L(P), O), W = Tt(P, q), re = F - 10 * W, te = d + W / 50;
|
|
502
|
+
ee = !1, ne = !1, _.clear(), a.useDuration(re).useFriction(te), i.distance(q, !m), J = !1, f.emit("pointerUp");
|
|
503
|
+
}
|
|
504
|
+
function Y(S) {
|
|
505
|
+
Q && (S.stopPropagation(), S.preventDefault(), Q = !1);
|
|
506
|
+
}
|
|
507
|
+
function Z() {
|
|
508
|
+
return ne;
|
|
509
|
+
}
|
|
510
|
+
return {
|
|
511
|
+
init: le,
|
|
512
|
+
destroy: $,
|
|
513
|
+
pointerDown: Z
|
|
514
|
+
};
|
|
515
|
+
}
|
|
516
|
+
function Kt(e, t) {
|
|
517
|
+
let r, s;
|
|
518
|
+
function c(p) {
|
|
519
|
+
return p.timeStamp;
|
|
520
|
+
}
|
|
521
|
+
function o(p, f) {
|
|
522
|
+
const m = `client${(f || e.scroll) === "x" ? "X" : "Y"}`;
|
|
523
|
+
return (Me(p, t) ? p : p.touches[0])[m];
|
|
524
|
+
}
|
|
525
|
+
function l(p) {
|
|
526
|
+
return r = p, s = p, o(p);
|
|
527
|
+
}
|
|
528
|
+
function i(p) {
|
|
529
|
+
const f = o(p) - o(s), N = c(p) - c(r) > 170;
|
|
530
|
+
return s = p, N && (r = p), f;
|
|
531
|
+
}
|
|
532
|
+
function a(p) {
|
|
533
|
+
if (!r || !s) return 0;
|
|
534
|
+
const f = o(s) - o(r), N = c(p) - c(r), m = c(p) - c(s) > 170, h = f / N;
|
|
535
|
+
return N && !m && D(h) > 0.1 ? h : 0;
|
|
536
|
+
}
|
|
537
|
+
return {
|
|
538
|
+
pointerDown: l,
|
|
539
|
+
pointerMove: i,
|
|
540
|
+
pointerUp: a,
|
|
541
|
+
readPoint: o
|
|
542
|
+
};
|
|
543
|
+
}
|
|
544
|
+
function Zt() {
|
|
545
|
+
function e(n) {
|
|
546
|
+
const {
|
|
547
|
+
offsetTop: r,
|
|
548
|
+
offsetLeft: s,
|
|
549
|
+
offsetWidth: c,
|
|
550
|
+
offsetHeight: o
|
|
551
|
+
} = n;
|
|
552
|
+
return {
|
|
553
|
+
top: r,
|
|
554
|
+
right: s + c,
|
|
555
|
+
bottom: r + o,
|
|
556
|
+
left: s,
|
|
557
|
+
width: c,
|
|
558
|
+
height: o
|
|
559
|
+
};
|
|
560
|
+
}
|
|
561
|
+
return {
|
|
562
|
+
measure: e
|
|
563
|
+
};
|
|
564
|
+
}
|
|
565
|
+
function Gt(e) {
|
|
566
|
+
function t(r) {
|
|
567
|
+
return e * (r / 100);
|
|
568
|
+
}
|
|
569
|
+
return {
|
|
570
|
+
measure: t
|
|
571
|
+
};
|
|
572
|
+
}
|
|
573
|
+
function zt(e, t, n, r, s, c, o) {
|
|
574
|
+
const l = [e].concat(r);
|
|
575
|
+
let i, a, b = [], p = !1;
|
|
576
|
+
function f(g) {
|
|
577
|
+
return s.measureSize(o.measure(g));
|
|
578
|
+
}
|
|
579
|
+
function N(g) {
|
|
580
|
+
if (!c) return;
|
|
581
|
+
a = f(e), b = r.map(f);
|
|
582
|
+
function d(C) {
|
|
583
|
+
for (const y of C) {
|
|
584
|
+
if (p) return;
|
|
585
|
+
const L = y.target === e, k = r.indexOf(y.target), H = L ? a : b[k], v = f(L ? e : r[k]);
|
|
586
|
+
if (D(v - H) >= 0.5) {
|
|
587
|
+
g.reInit(), t.emit("resize");
|
|
588
|
+
break;
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
i = new ResizeObserver((C) => {
|
|
593
|
+
(we(c) || c(g, C)) && d(C);
|
|
594
|
+
}), n.requestAnimationFrame(() => {
|
|
595
|
+
l.forEach((C) => i.observe(C));
|
|
596
|
+
});
|
|
597
|
+
}
|
|
598
|
+
function m() {
|
|
599
|
+
p = !0, i && i.disconnect();
|
|
600
|
+
}
|
|
601
|
+
return {
|
|
602
|
+
init: N,
|
|
603
|
+
destroy: m
|
|
604
|
+
};
|
|
605
|
+
}
|
|
606
|
+
function jt(e, t, n, r, s, c) {
|
|
607
|
+
let o = 0, l = 0, i = s, a = c, b = e.get(), p = 0;
|
|
608
|
+
function f() {
|
|
609
|
+
const H = r.get() - e.get(), v = !i;
|
|
610
|
+
let _ = 0;
|
|
611
|
+
return v ? (o = 0, n.set(r), e.set(r), _ = H) : (n.set(e), o += H / i, o *= a, b += o, e.add(o), _ = b - p), l = Pe(_), p = b, k;
|
|
612
|
+
}
|
|
613
|
+
function N() {
|
|
614
|
+
const H = r.get() - t.get();
|
|
615
|
+
return D(H) < 1e-3;
|
|
616
|
+
}
|
|
617
|
+
function m() {
|
|
618
|
+
return i;
|
|
619
|
+
}
|
|
620
|
+
function h() {
|
|
621
|
+
return l;
|
|
622
|
+
}
|
|
623
|
+
function g() {
|
|
624
|
+
return o;
|
|
625
|
+
}
|
|
626
|
+
function d() {
|
|
627
|
+
return y(s);
|
|
628
|
+
}
|
|
629
|
+
function C() {
|
|
630
|
+
return L(c);
|
|
631
|
+
}
|
|
632
|
+
function y(H) {
|
|
633
|
+
return i = H, k;
|
|
634
|
+
}
|
|
635
|
+
function L(H) {
|
|
636
|
+
return a = H, k;
|
|
637
|
+
}
|
|
638
|
+
const k = {
|
|
639
|
+
direction: h,
|
|
640
|
+
duration: m,
|
|
641
|
+
velocity: g,
|
|
642
|
+
seek: f,
|
|
643
|
+
settled: N,
|
|
644
|
+
useBaseFriction: C,
|
|
645
|
+
useBaseDuration: d,
|
|
646
|
+
useFriction: L,
|
|
647
|
+
useDuration: y
|
|
648
|
+
};
|
|
649
|
+
return k;
|
|
650
|
+
}
|
|
651
|
+
function Ut(e, t, n, r, s) {
|
|
652
|
+
const c = s.measure(10), o = s.measure(50), l = se(0.1, 0.99);
|
|
653
|
+
let i = !1;
|
|
654
|
+
function a() {
|
|
655
|
+
return !(i || !e.reachedAny(n.get()) || !e.reachedAny(t.get()));
|
|
656
|
+
}
|
|
657
|
+
function b(N) {
|
|
658
|
+
if (!a()) return;
|
|
659
|
+
const m = e.reachedMin(t.get()) ? "min" : "max", h = D(e[m] - t.get()), g = n.get() - t.get(), d = l.constrain(h / o);
|
|
660
|
+
n.subtract(g * d), !N && D(g) < c && (n.set(e.constrain(n.get())), r.useDuration(25).useBaseFriction());
|
|
661
|
+
}
|
|
662
|
+
function p(N) {
|
|
663
|
+
i = !N;
|
|
664
|
+
}
|
|
665
|
+
return {
|
|
666
|
+
shouldConstrain: a,
|
|
667
|
+
constrain: b,
|
|
668
|
+
toggleActive: p
|
|
669
|
+
};
|
|
670
|
+
}
|
|
671
|
+
function $t(e, t, n, r, s) {
|
|
672
|
+
const c = se(-t + e, 0), o = p(), l = b(), i = f();
|
|
673
|
+
function a(m, h) {
|
|
674
|
+
return pe(m, h) <= 1;
|
|
675
|
+
}
|
|
676
|
+
function b() {
|
|
677
|
+
const m = o[0], h = G(o), g = o.lastIndexOf(m), d = o.indexOf(h) + 1;
|
|
678
|
+
return se(g, d);
|
|
679
|
+
}
|
|
680
|
+
function p() {
|
|
681
|
+
return n.map((m, h) => {
|
|
682
|
+
const {
|
|
683
|
+
min: g,
|
|
684
|
+
max: d
|
|
685
|
+
} = c, C = c.constrain(m), y = !h, L = Fe(n, h);
|
|
686
|
+
return y ? d : L || a(g, C) ? g : a(d, C) ? d : C;
|
|
687
|
+
}).map((m) => parseFloat(m.toFixed(3)));
|
|
688
|
+
}
|
|
689
|
+
function f() {
|
|
690
|
+
if (t <= e + s) return [c.max];
|
|
691
|
+
if (r === "keepSnaps") return o;
|
|
692
|
+
const {
|
|
693
|
+
min: m,
|
|
694
|
+
max: h
|
|
695
|
+
} = l;
|
|
696
|
+
return o.slice(m, h);
|
|
697
|
+
}
|
|
698
|
+
return {
|
|
699
|
+
snapsContained: i,
|
|
700
|
+
scrollContainLimit: l
|
|
701
|
+
};
|
|
702
|
+
}
|
|
703
|
+
function qt(e, t, n) {
|
|
704
|
+
const r = t[0], s = n ? r - e : G(t);
|
|
705
|
+
return {
|
|
706
|
+
limit: se(s, r)
|
|
707
|
+
};
|
|
708
|
+
}
|
|
709
|
+
function Qt(e, t, n, r) {
|
|
710
|
+
const c = t.min + 0.1, o = t.max + 0.1, {
|
|
711
|
+
reachedMin: l,
|
|
712
|
+
reachedMax: i
|
|
713
|
+
} = se(c, o);
|
|
714
|
+
function a(f) {
|
|
715
|
+
return f === 1 ? i(n.get()) : f === -1 ? l(n.get()) : !1;
|
|
716
|
+
}
|
|
717
|
+
function b(f) {
|
|
718
|
+
if (!a(f)) return;
|
|
719
|
+
const N = e * (f * -1);
|
|
720
|
+
r.forEach((m) => m.add(N));
|
|
721
|
+
}
|
|
722
|
+
return {
|
|
723
|
+
loop: b
|
|
724
|
+
};
|
|
725
|
+
}
|
|
726
|
+
function Jt(e) {
|
|
727
|
+
const {
|
|
728
|
+
max: t,
|
|
729
|
+
length: n
|
|
730
|
+
} = e;
|
|
731
|
+
function r(c) {
|
|
732
|
+
const o = c - t;
|
|
733
|
+
return n ? o / -n : 0;
|
|
734
|
+
}
|
|
735
|
+
return {
|
|
736
|
+
get: r
|
|
737
|
+
};
|
|
738
|
+
}
|
|
739
|
+
function Xt(e, t, n, r, s) {
|
|
740
|
+
const {
|
|
741
|
+
startEdge: c,
|
|
742
|
+
endEdge: o
|
|
743
|
+
} = e, {
|
|
744
|
+
groupSlides: l
|
|
745
|
+
} = s, i = p().map(t.measure), a = f(), b = N();
|
|
746
|
+
function p() {
|
|
747
|
+
return l(r).map((h) => G(h)[o] - h[0][c]).map(D);
|
|
748
|
+
}
|
|
749
|
+
function f() {
|
|
750
|
+
return r.map((h) => n[c] - h[c]).map((h) => -D(h));
|
|
751
|
+
}
|
|
752
|
+
function N() {
|
|
753
|
+
return l(a).map((h) => h[0]).map((h, g) => h + i[g]);
|
|
754
|
+
}
|
|
755
|
+
return {
|
|
756
|
+
snaps: a,
|
|
757
|
+
snapsAligned: b
|
|
758
|
+
};
|
|
759
|
+
}
|
|
760
|
+
function Yt(e, t, n, r, s, c) {
|
|
761
|
+
const {
|
|
762
|
+
groupSlides: o
|
|
763
|
+
} = s, {
|
|
764
|
+
min: l,
|
|
765
|
+
max: i
|
|
766
|
+
} = r, a = b();
|
|
767
|
+
function b() {
|
|
768
|
+
const f = o(c), N = !e || t === "keepSnaps";
|
|
769
|
+
return n.length === 1 ? [c] : N ? f : f.slice(l, i).map((m, h, g) => {
|
|
770
|
+
const d = !h, C = Fe(g, h);
|
|
771
|
+
if (d) {
|
|
772
|
+
const y = G(g[0]) + 1;
|
|
773
|
+
return ot(y);
|
|
774
|
+
}
|
|
775
|
+
if (C) {
|
|
776
|
+
const y = Ce(c) - G(g)[0] + 1;
|
|
777
|
+
return ot(y, G(g)[0]);
|
|
778
|
+
}
|
|
779
|
+
return m;
|
|
780
|
+
});
|
|
781
|
+
}
|
|
782
|
+
return {
|
|
783
|
+
slideRegistry: a
|
|
784
|
+
};
|
|
785
|
+
}
|
|
786
|
+
function Wt(e, t, n, r, s) {
|
|
787
|
+
const {
|
|
788
|
+
reachedAny: c,
|
|
789
|
+
removeOffset: o,
|
|
790
|
+
constrain: l
|
|
791
|
+
} = r;
|
|
792
|
+
function i(m) {
|
|
793
|
+
return m.concat().sort((h, g) => D(h) - D(g))[0];
|
|
794
|
+
}
|
|
795
|
+
function a(m) {
|
|
796
|
+
const h = e ? o(m) : l(m), g = t.map((C, y) => ({
|
|
797
|
+
diff: b(C - h, 0),
|
|
798
|
+
index: y
|
|
799
|
+
})).sort((C, y) => D(C.diff) - D(y.diff)), {
|
|
800
|
+
index: d
|
|
801
|
+
} = g[0];
|
|
802
|
+
return {
|
|
803
|
+
index: d,
|
|
804
|
+
distance: h
|
|
805
|
+
};
|
|
806
|
+
}
|
|
807
|
+
function b(m, h) {
|
|
808
|
+
const g = [m, m + n, m - n];
|
|
809
|
+
if (!e) return m;
|
|
810
|
+
if (!h) return i(g);
|
|
811
|
+
const d = g.filter((C) => Pe(C) === h);
|
|
812
|
+
return d.length ? i(d) : G(g) - n;
|
|
813
|
+
}
|
|
814
|
+
function p(m, h) {
|
|
815
|
+
const g = t[m] - s.get(), d = b(g, h);
|
|
816
|
+
return {
|
|
817
|
+
index: m,
|
|
818
|
+
distance: d
|
|
819
|
+
};
|
|
820
|
+
}
|
|
821
|
+
function f(m, h) {
|
|
822
|
+
const g = s.get() + m, {
|
|
823
|
+
index: d,
|
|
824
|
+
distance: C
|
|
825
|
+
} = a(g), y = !e && c(g);
|
|
826
|
+
if (!h || y) return {
|
|
827
|
+
index: d,
|
|
828
|
+
distance: m
|
|
829
|
+
};
|
|
830
|
+
const L = t[d] - C, k = m + b(L, 0);
|
|
831
|
+
return {
|
|
832
|
+
index: d,
|
|
833
|
+
distance: k
|
|
834
|
+
};
|
|
835
|
+
}
|
|
836
|
+
return {
|
|
837
|
+
byDistance: f,
|
|
838
|
+
byIndex: p,
|
|
839
|
+
shortcut: b
|
|
840
|
+
};
|
|
841
|
+
}
|
|
842
|
+
function en(e, t, n, r, s, c, o) {
|
|
843
|
+
function l(p) {
|
|
844
|
+
const f = p.distance, N = p.index !== t.get();
|
|
845
|
+
c.add(f), f && (r.duration() ? e.start() : (e.update(), e.render(1), e.update())), N && (n.set(t.get()), t.set(p.index), o.emit("select"));
|
|
846
|
+
}
|
|
847
|
+
function i(p, f) {
|
|
848
|
+
const N = s.byDistance(p, f);
|
|
849
|
+
l(N);
|
|
850
|
+
}
|
|
851
|
+
function a(p, f) {
|
|
852
|
+
const N = t.clone().set(p), m = s.byIndex(N.get(), f);
|
|
853
|
+
l(m);
|
|
854
|
+
}
|
|
855
|
+
return {
|
|
856
|
+
distance: i,
|
|
857
|
+
index: a
|
|
858
|
+
};
|
|
859
|
+
}
|
|
860
|
+
function tn(e, t, n, r, s, c, o, l) {
|
|
861
|
+
const i = {
|
|
862
|
+
passive: !0,
|
|
863
|
+
capture: !0
|
|
864
|
+
};
|
|
865
|
+
let a = 0;
|
|
866
|
+
function b(N) {
|
|
867
|
+
if (!l) return;
|
|
868
|
+
function m(h) {
|
|
869
|
+
if ((/* @__PURE__ */ new Date()).getTime() - a > 10) return;
|
|
870
|
+
o.emit("slideFocusStart"), e.scrollLeft = 0;
|
|
871
|
+
const C = n.findIndex((y) => y.includes(h));
|
|
872
|
+
Be(C) && (s.useDuration(0), r.index(C, 0), o.emit("slideFocus"));
|
|
873
|
+
}
|
|
874
|
+
c.add(document, "keydown", p, !1), t.forEach((h, g) => {
|
|
875
|
+
c.add(h, "focus", (d) => {
|
|
876
|
+
(we(l) || l(N, d)) && m(g);
|
|
877
|
+
}, i);
|
|
878
|
+
});
|
|
879
|
+
}
|
|
880
|
+
function p(N) {
|
|
881
|
+
N.code === "Tab" && (a = (/* @__PURE__ */ new Date()).getTime());
|
|
882
|
+
}
|
|
883
|
+
return {
|
|
884
|
+
init: b
|
|
885
|
+
};
|
|
886
|
+
}
|
|
887
|
+
function me(e) {
|
|
888
|
+
let t = e;
|
|
889
|
+
function n() {
|
|
890
|
+
return t;
|
|
891
|
+
}
|
|
892
|
+
function r(i) {
|
|
893
|
+
t = o(i);
|
|
894
|
+
}
|
|
895
|
+
function s(i) {
|
|
896
|
+
t += o(i);
|
|
897
|
+
}
|
|
898
|
+
function c(i) {
|
|
899
|
+
t -= o(i);
|
|
900
|
+
}
|
|
901
|
+
function o(i) {
|
|
902
|
+
return Be(i) ? i : i.get();
|
|
903
|
+
}
|
|
904
|
+
return {
|
|
905
|
+
get: n,
|
|
906
|
+
set: r,
|
|
907
|
+
add: s,
|
|
908
|
+
subtract: c
|
|
909
|
+
};
|
|
910
|
+
}
|
|
911
|
+
function at(e, t) {
|
|
912
|
+
const n = e.scroll === "x" ? o : l, r = t.style;
|
|
913
|
+
let s = null, c = !1;
|
|
914
|
+
function o(f) {
|
|
915
|
+
return `translate3d(${f}px,0px,0px)`;
|
|
916
|
+
}
|
|
917
|
+
function l(f) {
|
|
918
|
+
return `translate3d(0px,${f}px,0px)`;
|
|
919
|
+
}
|
|
920
|
+
function i(f) {
|
|
921
|
+
if (c) return;
|
|
922
|
+
const N = Ot(e.direction(f));
|
|
923
|
+
N !== s && (r.transform = n(N), s = N);
|
|
924
|
+
}
|
|
925
|
+
function a(f) {
|
|
926
|
+
c = !f;
|
|
927
|
+
}
|
|
928
|
+
function b() {
|
|
929
|
+
c || (r.transform = "", t.getAttribute("style") || t.removeAttribute("style"));
|
|
930
|
+
}
|
|
931
|
+
return {
|
|
932
|
+
clear: b,
|
|
933
|
+
to: i,
|
|
934
|
+
toggleActive: a
|
|
935
|
+
};
|
|
936
|
+
}
|
|
937
|
+
function nn(e, t, n, r, s, c, o, l, i) {
|
|
938
|
+
const b = he(s), p = he(s).reverse(), f = d().concat(C());
|
|
939
|
+
function N(v, _) {
|
|
940
|
+
return v.reduce((E, T) => E - s[T], _);
|
|
941
|
+
}
|
|
942
|
+
function m(v, _) {
|
|
943
|
+
return v.reduce((E, T) => N(E, _) > 0 ? E.concat([T]) : E, []);
|
|
944
|
+
}
|
|
945
|
+
function h(v) {
|
|
946
|
+
return c.map((_, E) => ({
|
|
947
|
+
start: _ - r[E] + 0.5 + v,
|
|
948
|
+
end: _ + t - 0.5 + v
|
|
949
|
+
}));
|
|
950
|
+
}
|
|
951
|
+
function g(v, _, E) {
|
|
952
|
+
const T = h(_);
|
|
953
|
+
return v.map((A) => {
|
|
954
|
+
const F = E ? 0 : -n, z = E ? n : 0, j = E ? "end" : "start", U = T[A][j];
|
|
955
|
+
return {
|
|
956
|
+
index: A,
|
|
957
|
+
loopPoint: U,
|
|
958
|
+
slideLocation: me(-1),
|
|
959
|
+
translate: at(e, i[A]),
|
|
960
|
+
target: () => l.get() > U ? F : z
|
|
961
|
+
};
|
|
962
|
+
});
|
|
963
|
+
}
|
|
964
|
+
function d() {
|
|
965
|
+
const v = o[0], _ = m(p, v);
|
|
966
|
+
return g(_, n, !1);
|
|
967
|
+
}
|
|
968
|
+
function C() {
|
|
969
|
+
const v = t - o[0] - 1, _ = m(b, v);
|
|
970
|
+
return g(_, -n, !0);
|
|
971
|
+
}
|
|
972
|
+
function y() {
|
|
973
|
+
return f.every(({
|
|
974
|
+
index: v
|
|
975
|
+
}) => {
|
|
976
|
+
const _ = b.filter((E) => E !== v);
|
|
977
|
+
return N(_, t) <= 0.1;
|
|
978
|
+
});
|
|
979
|
+
}
|
|
980
|
+
function L() {
|
|
981
|
+
f.forEach((v) => {
|
|
982
|
+
const {
|
|
983
|
+
target: _,
|
|
984
|
+
translate: E,
|
|
985
|
+
slideLocation: T
|
|
986
|
+
} = v, A = _();
|
|
987
|
+
A !== T.get() && (E.to(A), T.set(A));
|
|
988
|
+
});
|
|
989
|
+
}
|
|
990
|
+
function k() {
|
|
991
|
+
f.forEach((v) => v.translate.clear());
|
|
992
|
+
}
|
|
993
|
+
return {
|
|
994
|
+
canLoop: y,
|
|
995
|
+
clear: k,
|
|
996
|
+
loop: L,
|
|
997
|
+
loopPoints: f
|
|
998
|
+
};
|
|
999
|
+
}
|
|
1000
|
+
function rn(e, t, n) {
|
|
1001
|
+
let r, s = !1;
|
|
1002
|
+
function c(i) {
|
|
1003
|
+
if (!n) return;
|
|
1004
|
+
function a(b) {
|
|
1005
|
+
for (const p of b)
|
|
1006
|
+
if (p.type === "childList") {
|
|
1007
|
+
i.reInit(), t.emit("slidesChanged");
|
|
1008
|
+
break;
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
r = new MutationObserver((b) => {
|
|
1012
|
+
s || (we(n) || n(i, b)) && a(b);
|
|
1013
|
+
}), r.observe(e, {
|
|
1014
|
+
childList: !0
|
|
1015
|
+
});
|
|
1016
|
+
}
|
|
1017
|
+
function o() {
|
|
1018
|
+
r && r.disconnect(), s = !0;
|
|
1019
|
+
}
|
|
1020
|
+
return {
|
|
1021
|
+
init: c,
|
|
1022
|
+
destroy: o
|
|
1023
|
+
};
|
|
1024
|
+
}
|
|
1025
|
+
function on(e, t, n, r) {
|
|
1026
|
+
const s = {};
|
|
1027
|
+
let c = null, o = null, l, i = !1;
|
|
1028
|
+
function a() {
|
|
1029
|
+
l = new IntersectionObserver((m) => {
|
|
1030
|
+
i || (m.forEach((h) => {
|
|
1031
|
+
const g = t.indexOf(h.target);
|
|
1032
|
+
s[g] = h;
|
|
1033
|
+
}), c = null, o = null, n.emit("slidesInView"));
|
|
1034
|
+
}, {
|
|
1035
|
+
root: e.parentElement,
|
|
1036
|
+
threshold: r
|
|
1037
|
+
}), t.forEach((m) => l.observe(m));
|
|
1038
|
+
}
|
|
1039
|
+
function b() {
|
|
1040
|
+
l && l.disconnect(), i = !0;
|
|
1041
|
+
}
|
|
1042
|
+
function p(m) {
|
|
1043
|
+
return ge(s).reduce((h, g) => {
|
|
1044
|
+
const d = parseInt(g), {
|
|
1045
|
+
isIntersecting: C
|
|
1046
|
+
} = s[d];
|
|
1047
|
+
return (m && C || !m && !C) && h.push(d), h;
|
|
1048
|
+
}, []);
|
|
1049
|
+
}
|
|
1050
|
+
function f(m = !0) {
|
|
1051
|
+
if (m && c) return c;
|
|
1052
|
+
if (!m && o) return o;
|
|
1053
|
+
const h = p(m);
|
|
1054
|
+
return m && (c = h), m || (o = h), h;
|
|
1055
|
+
}
|
|
1056
|
+
return {
|
|
1057
|
+
init: a,
|
|
1058
|
+
destroy: b,
|
|
1059
|
+
get: f
|
|
1060
|
+
};
|
|
1061
|
+
}
|
|
1062
|
+
function sn(e, t, n, r, s, c) {
|
|
1063
|
+
const {
|
|
1064
|
+
measureSize: o,
|
|
1065
|
+
startEdge: l,
|
|
1066
|
+
endEdge: i
|
|
1067
|
+
} = e, a = n[0] && s, b = m(), p = h(), f = n.map(o), N = g();
|
|
1068
|
+
function m() {
|
|
1069
|
+
if (!a) return 0;
|
|
1070
|
+
const C = n[0];
|
|
1071
|
+
return D(t[l] - C[l]);
|
|
1072
|
+
}
|
|
1073
|
+
function h() {
|
|
1074
|
+
if (!a) return 0;
|
|
1075
|
+
const C = c.getComputedStyle(G(r));
|
|
1076
|
+
return parseFloat(C.getPropertyValue(`margin-${i}`));
|
|
1077
|
+
}
|
|
1078
|
+
function g() {
|
|
1079
|
+
return n.map((C, y, L) => {
|
|
1080
|
+
const k = !y, H = Fe(L, y);
|
|
1081
|
+
return k ? f[y] + b : H ? f[y] + p : L[y + 1][l] - C[l];
|
|
1082
|
+
}).map(D);
|
|
1083
|
+
}
|
|
1084
|
+
return {
|
|
1085
|
+
slideSizes: f,
|
|
1086
|
+
slideSizesWithGaps: N,
|
|
1087
|
+
startGap: b,
|
|
1088
|
+
endGap: p
|
|
1089
|
+
};
|
|
1090
|
+
}
|
|
1091
|
+
function cn(e, t, n, r, s, c, o, l, i) {
|
|
1092
|
+
const {
|
|
1093
|
+
startEdge: a,
|
|
1094
|
+
endEdge: b,
|
|
1095
|
+
direction: p
|
|
1096
|
+
} = e, f = Be(n);
|
|
1097
|
+
function N(d, C) {
|
|
1098
|
+
return he(d).filter((y) => y % C === 0).map((y) => d.slice(y, y + C));
|
|
1099
|
+
}
|
|
1100
|
+
function m(d) {
|
|
1101
|
+
return d.length ? he(d).reduce((C, y, L) => {
|
|
1102
|
+
const k = G(C) || 0, H = k === 0, v = y === Ce(d), _ = s[a] - c[k][a], E = s[a] - c[y][b], T = !r && H ? p(o) : 0, A = !r && v ? p(l) : 0, F = D(E - A - (_ + T));
|
|
1103
|
+
return L && F > t + i && C.push(y), v && C.push(d.length), C;
|
|
1104
|
+
}, []).map((C, y, L) => {
|
|
1105
|
+
const k = Math.max(L[y - 1] || 0);
|
|
1106
|
+
return d.slice(k, C);
|
|
1107
|
+
}) : [];
|
|
1108
|
+
}
|
|
1109
|
+
function h(d) {
|
|
1110
|
+
return f ? N(d, n) : m(d);
|
|
1111
|
+
}
|
|
1112
|
+
return {
|
|
1113
|
+
groupSlides: h
|
|
1114
|
+
};
|
|
1115
|
+
}
|
|
1116
|
+
function an(e, t, n, r, s, c, o) {
|
|
1117
|
+
const {
|
|
1118
|
+
align: l,
|
|
1119
|
+
axis: i,
|
|
1120
|
+
direction: a,
|
|
1121
|
+
startIndex: b,
|
|
1122
|
+
loop: p,
|
|
1123
|
+
duration: f,
|
|
1124
|
+
dragFree: N,
|
|
1125
|
+
dragThreshold: m,
|
|
1126
|
+
inViewThreshold: h,
|
|
1127
|
+
slidesToScroll: g,
|
|
1128
|
+
skipSnaps: d,
|
|
1129
|
+
containScroll: C,
|
|
1130
|
+
watchResize: y,
|
|
1131
|
+
watchSlides: L,
|
|
1132
|
+
watchDrag: k,
|
|
1133
|
+
watchFocus: H
|
|
1134
|
+
} = c, v = 2, _ = Zt(), E = _.measure(t), T = n.map(_.measure), A = Pt(i, a), F = A.measureSize(E), z = Gt(F), j = Rt(l, F), U = !p && !!C, ne = p || !!C, {
|
|
1135
|
+
slideSizes: ee,
|
|
1136
|
+
slideSizesWithGaps: Q,
|
|
1137
|
+
startGap: J,
|
|
1138
|
+
endGap: le
|
|
1139
|
+
} = sn(A, E, T, n, ne, s), $ = cn(A, F, g, p, E, T, J, le, v), {
|
|
1140
|
+
snaps: ce,
|
|
1141
|
+
snapsAligned: ie
|
|
1142
|
+
} = Xt(A, j, E, T, $), X = -G(ce) + G(Q), {
|
|
1143
|
+
snapsContained: ue,
|
|
1144
|
+
scrollContainLimit: de
|
|
1145
|
+
} = $t(F, X, ie, C, v), K = U ? ue : ie, {
|
|
1146
|
+
limit: B
|
|
1147
|
+
} = qt(X, K, p), Y = it(Ce(K), b, p), Z = Y.clone(), I = he(n), S = ({
|
|
1148
|
+
dragHandler: ae,
|
|
1149
|
+
scrollBody: ke,
|
|
1150
|
+
scrollBounds: He,
|
|
1151
|
+
options: {
|
|
1152
|
+
loop: Ne
|
|
1153
|
+
}
|
|
1154
|
+
}) => {
|
|
1155
|
+
Ne || He.constrain(ae.pointerDown()), ke.seek();
|
|
1156
|
+
}, M = ({
|
|
1157
|
+
scrollBody: ae,
|
|
1158
|
+
translate: ke,
|
|
1159
|
+
location: He,
|
|
1160
|
+
offsetLocation: Ne,
|
|
1161
|
+
previousLocation: Nt,
|
|
1162
|
+
scrollLooper: yt,
|
|
1163
|
+
slideLooper: St,
|
|
1164
|
+
dragHandler: wt,
|
|
1165
|
+
animation: vt,
|
|
1166
|
+
eventHandler: $e,
|
|
1167
|
+
scrollBounds: _t,
|
|
1168
|
+
options: {
|
|
1169
|
+
loop: qe
|
|
1170
|
+
}
|
|
1171
|
+
}, Qe) => {
|
|
1172
|
+
const Je = ae.settled(), xt = !_t.shouldConstrain(), Xe = qe ? Je : Je && xt, Ye = Xe && !wt.pointerDown();
|
|
1173
|
+
Ye && vt.stop();
|
|
1174
|
+
const Lt = He.get() * Qe + Nt.get() * (1 - Qe);
|
|
1175
|
+
Ne.set(Lt), qe && (yt.loop(ae.direction()), St.loop()), ke.to(Ne.get()), Ye && $e.emit("settle"), Xe || $e.emit("scroll");
|
|
1176
|
+
}, O = Bt(r, s, () => S(Le), (ae) => M(Le, ae)), P = 0.68, q = K[Y.get()], W = me(q), re = me(q), te = me(q), oe = me(q), fe = jt(W, te, re, oe, f, P), _e = Wt(p, K, X, B, oe), xe = en(O, Y, Z, fe, _e, oe, o), ze = Jt(B), je = be(), bt = on(t, n, o, h), {
|
|
1177
|
+
slideRegistry: Ue
|
|
1178
|
+
} = Yt(U, C, K, de, $, I), Ct = tn(e, n, Ue, xe, fe, je, o, H), Le = {
|
|
1179
|
+
ownerDocument: r,
|
|
1180
|
+
ownerWindow: s,
|
|
1181
|
+
eventHandler: o,
|
|
1182
|
+
containerRect: E,
|
|
1183
|
+
slideRects: T,
|
|
1184
|
+
animation: O,
|
|
1185
|
+
axis: A,
|
|
1186
|
+
dragHandler: Ft(A, e, r, s, oe, Kt(A, s), W, O, xe, fe, _e, Y, o, z, N, m, d, P, k),
|
|
1187
|
+
eventStore: je,
|
|
1188
|
+
percentOfView: z,
|
|
1189
|
+
index: Y,
|
|
1190
|
+
indexPrevious: Z,
|
|
1191
|
+
limit: B,
|
|
1192
|
+
location: W,
|
|
1193
|
+
offsetLocation: te,
|
|
1194
|
+
previousLocation: re,
|
|
1195
|
+
options: c,
|
|
1196
|
+
resizeHandler: zt(t, o, s, n, A, y, _),
|
|
1197
|
+
scrollBody: fe,
|
|
1198
|
+
scrollBounds: Ut(B, te, oe, fe, z),
|
|
1199
|
+
scrollLooper: Qt(X, B, te, [W, te, re, oe]),
|
|
1200
|
+
scrollProgress: ze,
|
|
1201
|
+
scrollSnapList: K.map(ze.get),
|
|
1202
|
+
scrollSnaps: K,
|
|
1203
|
+
scrollTarget: _e,
|
|
1204
|
+
scrollTo: xe,
|
|
1205
|
+
slideLooper: nn(A, F, X, ee, Q, ce, K, te, n),
|
|
1206
|
+
slideFocus: Ct,
|
|
1207
|
+
slidesHandler: rn(t, o, L),
|
|
1208
|
+
slidesInView: bt,
|
|
1209
|
+
slideIndexes: I,
|
|
1210
|
+
slideRegistry: Ue,
|
|
1211
|
+
slidesToScroll: $,
|
|
1212
|
+
target: oe,
|
|
1213
|
+
translate: at(A, t)
|
|
1214
|
+
};
|
|
1215
|
+
return Le;
|
|
1216
|
+
}
|
|
1217
|
+
function ln() {
|
|
1218
|
+
let e = {}, t;
|
|
1219
|
+
function n(a) {
|
|
1220
|
+
t = a;
|
|
1221
|
+
}
|
|
1222
|
+
function r(a) {
|
|
1223
|
+
return e[a] || [];
|
|
1224
|
+
}
|
|
1225
|
+
function s(a) {
|
|
1226
|
+
return r(a).forEach((b) => b(t, a)), i;
|
|
1227
|
+
}
|
|
1228
|
+
function c(a, b) {
|
|
1229
|
+
return e[a] = r(a).concat([b]), i;
|
|
1230
|
+
}
|
|
1231
|
+
function o(a, b) {
|
|
1232
|
+
return e[a] = r(a).filter((p) => p !== b), i;
|
|
1233
|
+
}
|
|
1234
|
+
function l() {
|
|
1235
|
+
e = {};
|
|
1236
|
+
}
|
|
1237
|
+
const i = {
|
|
1238
|
+
init: n,
|
|
1239
|
+
emit: s,
|
|
1240
|
+
off: o,
|
|
1241
|
+
on: c,
|
|
1242
|
+
clear: l
|
|
1243
|
+
};
|
|
1244
|
+
return i;
|
|
1245
|
+
}
|
|
1246
|
+
const un = {
|
|
1247
|
+
align: "center",
|
|
1248
|
+
axis: "x",
|
|
1249
|
+
container: null,
|
|
1250
|
+
slides: null,
|
|
1251
|
+
containScroll: "trimSnaps",
|
|
1252
|
+
direction: "ltr",
|
|
1253
|
+
slidesToScroll: 1,
|
|
1254
|
+
inViewThreshold: 0,
|
|
1255
|
+
breakpoints: {},
|
|
1256
|
+
dragFree: !1,
|
|
1257
|
+
dragThreshold: 10,
|
|
1258
|
+
loop: !1,
|
|
1259
|
+
skipSnaps: !1,
|
|
1260
|
+
duration: 25,
|
|
1261
|
+
startIndex: 0,
|
|
1262
|
+
active: !0,
|
|
1263
|
+
watchDrag: !0,
|
|
1264
|
+
watchResize: !0,
|
|
1265
|
+
watchSlides: !0,
|
|
1266
|
+
watchFocus: !0
|
|
1267
|
+
};
|
|
1268
|
+
function dn(e) {
|
|
1269
|
+
function t(c, o) {
|
|
1270
|
+
return ct(c, o || {});
|
|
1271
|
+
}
|
|
1272
|
+
function n(c) {
|
|
1273
|
+
const o = c.breakpoints || {}, l = ge(o).filter((i) => e.matchMedia(i).matches).map((i) => o[i]).reduce((i, a) => t(i, a), {});
|
|
1274
|
+
return t(c, l);
|
|
1275
|
+
}
|
|
1276
|
+
function r(c) {
|
|
1277
|
+
return c.map((o) => ge(o.breakpoints || {})).reduce((o, l) => o.concat(l), []).map(e.matchMedia);
|
|
1278
|
+
}
|
|
1279
|
+
return {
|
|
1280
|
+
mergeOptions: t,
|
|
1281
|
+
optionsAtMedia: n,
|
|
1282
|
+
optionsMediaQueries: r
|
|
1283
|
+
};
|
|
1284
|
+
}
|
|
1285
|
+
function fn(e) {
|
|
1286
|
+
let t = [];
|
|
1287
|
+
function n(c, o) {
|
|
1288
|
+
return t = o.filter(({
|
|
1289
|
+
options: l
|
|
1290
|
+
}) => e.optionsAtMedia(l).active !== !1), t.forEach((l) => l.init(c, e)), o.reduce((l, i) => Object.assign(l, {
|
|
1291
|
+
[i.name]: i
|
|
1292
|
+
}), {});
|
|
1293
|
+
}
|
|
1294
|
+
function r() {
|
|
1295
|
+
t = t.filter((c) => c.destroy());
|
|
1296
|
+
}
|
|
1297
|
+
return {
|
|
1298
|
+
init: n,
|
|
1299
|
+
destroy: r
|
|
1300
|
+
};
|
|
1301
|
+
}
|
|
1302
|
+
function ye(e, t, n) {
|
|
1303
|
+
const r = e.ownerDocument, s = r.defaultView, c = dn(s), o = fn(c), l = be(), i = ln(), {
|
|
1304
|
+
mergeOptions: a,
|
|
1305
|
+
optionsAtMedia: b,
|
|
1306
|
+
optionsMediaQueries: p
|
|
1307
|
+
} = c, {
|
|
1308
|
+
on: f,
|
|
1309
|
+
off: N,
|
|
1310
|
+
emit: m
|
|
1311
|
+
} = i, h = A;
|
|
1312
|
+
let g = !1, d, C = a(un, ye.globalOptions), y = a(C), L = [], k, H, v;
|
|
1313
|
+
function _() {
|
|
1314
|
+
const {
|
|
1315
|
+
container: I,
|
|
1316
|
+
slides: S
|
|
1317
|
+
} = y;
|
|
1318
|
+
H = (Ae(I) ? e.querySelector(I) : I) || e.children[0];
|
|
1319
|
+
const O = Ae(S) ? H.querySelectorAll(S) : S;
|
|
1320
|
+
v = [].slice.call(O || H.children);
|
|
1321
|
+
}
|
|
1322
|
+
function E(I) {
|
|
1323
|
+
const S = an(e, H, v, r, s, I, i);
|
|
1324
|
+
if (I.loop && !S.slideLooper.canLoop()) {
|
|
1325
|
+
const M = Object.assign({}, I, {
|
|
1326
|
+
loop: !1
|
|
1327
|
+
});
|
|
1328
|
+
return E(M);
|
|
1329
|
+
}
|
|
1330
|
+
return S;
|
|
1331
|
+
}
|
|
1332
|
+
function T(I, S) {
|
|
1333
|
+
g || (C = a(C, I), y = b(C), L = S || L, _(), d = E(y), p([C, ...L.map(({
|
|
1334
|
+
options: M
|
|
1335
|
+
}) => M)]).forEach((M) => l.add(M, "change", A)), y.active && (d.translate.to(d.location.get()), d.animation.init(), d.slidesInView.init(), d.slideFocus.init(Z), d.eventHandler.init(Z), d.resizeHandler.init(Z), d.slidesHandler.init(Z), d.options.loop && d.slideLooper.loop(), H.offsetParent && v.length && d.dragHandler.init(Z), k = o.init(Z, L)));
|
|
1336
|
+
}
|
|
1337
|
+
function A(I, S) {
|
|
1338
|
+
const M = $();
|
|
1339
|
+
F(), T(a({
|
|
1340
|
+
startIndex: M
|
|
1341
|
+
}, I), S), i.emit("reInit");
|
|
1342
|
+
}
|
|
1343
|
+
function F() {
|
|
1344
|
+
d.dragHandler.destroy(), d.eventStore.clear(), d.translate.clear(), d.slideLooper.clear(), d.resizeHandler.destroy(), d.slidesHandler.destroy(), d.slidesInView.destroy(), d.animation.destroy(), o.destroy(), l.clear();
|
|
1345
|
+
}
|
|
1346
|
+
function z() {
|
|
1347
|
+
g || (g = !0, l.clear(), F(), i.emit("destroy"), i.clear());
|
|
1348
|
+
}
|
|
1349
|
+
function j(I, S, M) {
|
|
1350
|
+
!y.active || g || (d.scrollBody.useBaseFriction().useDuration(S === !0 ? 0 : y.duration), d.scrollTo.index(I, M || 0));
|
|
1351
|
+
}
|
|
1352
|
+
function U(I) {
|
|
1353
|
+
const S = d.index.add(1).get();
|
|
1354
|
+
j(S, I, -1);
|
|
1355
|
+
}
|
|
1356
|
+
function ne(I) {
|
|
1357
|
+
const S = d.index.add(-1).get();
|
|
1358
|
+
j(S, I, 1);
|
|
1359
|
+
}
|
|
1360
|
+
function ee() {
|
|
1361
|
+
return d.index.add(1).get() !== $();
|
|
1362
|
+
}
|
|
1363
|
+
function Q() {
|
|
1364
|
+
return d.index.add(-1).get() !== $();
|
|
1365
|
+
}
|
|
1366
|
+
function J() {
|
|
1367
|
+
return d.scrollSnapList;
|
|
1368
|
+
}
|
|
1369
|
+
function le() {
|
|
1370
|
+
return d.scrollProgress.get(d.offsetLocation.get());
|
|
1371
|
+
}
|
|
1372
|
+
function $() {
|
|
1373
|
+
return d.index.get();
|
|
1374
|
+
}
|
|
1375
|
+
function ce() {
|
|
1376
|
+
return d.indexPrevious.get();
|
|
1377
|
+
}
|
|
1378
|
+
function ie() {
|
|
1379
|
+
return d.slidesInView.get();
|
|
1380
|
+
}
|
|
1381
|
+
function X() {
|
|
1382
|
+
return d.slidesInView.get(!1);
|
|
1383
|
+
}
|
|
1384
|
+
function ue() {
|
|
1385
|
+
return k;
|
|
1386
|
+
}
|
|
1387
|
+
function de() {
|
|
1388
|
+
return d;
|
|
1389
|
+
}
|
|
1390
|
+
function K() {
|
|
1391
|
+
return e;
|
|
1392
|
+
}
|
|
1393
|
+
function B() {
|
|
1394
|
+
return H;
|
|
1395
|
+
}
|
|
1396
|
+
function Y() {
|
|
1397
|
+
return v;
|
|
1398
|
+
}
|
|
1399
|
+
const Z = {
|
|
1400
|
+
canScrollNext: ee,
|
|
1401
|
+
canScrollPrev: Q,
|
|
1402
|
+
containerNode: B,
|
|
1403
|
+
internalEngine: de,
|
|
1404
|
+
destroy: z,
|
|
1405
|
+
off: N,
|
|
1406
|
+
on: f,
|
|
1407
|
+
emit: m,
|
|
1408
|
+
plugins: ue,
|
|
1409
|
+
previousScrollSnap: ce,
|
|
1410
|
+
reInit: h,
|
|
1411
|
+
rootNode: K,
|
|
1412
|
+
scrollNext: U,
|
|
1413
|
+
scrollPrev: ne,
|
|
1414
|
+
scrollProgress: le,
|
|
1415
|
+
scrollSnapList: J,
|
|
1416
|
+
scrollTo: j,
|
|
1417
|
+
selectedScrollSnap: $,
|
|
1418
|
+
slideNodes: Y,
|
|
1419
|
+
slidesInView: ie,
|
|
1420
|
+
slidesNotInView: X
|
|
1421
|
+
};
|
|
1422
|
+
return T(t, n), setTimeout(() => i.emit("init"), 0), Z;
|
|
1423
|
+
}
|
|
1424
|
+
ye.globalOptions = void 0;
|
|
1425
|
+
function Ke(e = {}, t = []) {
|
|
1426
|
+
const n = We(e), r = We(t), [s, c] = et(), [o, l] = et(), i = kt(() => {
|
|
1427
|
+
s && s.reInit(n.current, r.current);
|
|
1428
|
+
}, [s]);
|
|
1429
|
+
return Ee(() => {
|
|
1430
|
+
Re(n.current, e) || (n.current = e, i());
|
|
1431
|
+
}, [e, i]), Ee(() => {
|
|
1432
|
+
Dt(r.current, t) || (r.current = t, i());
|
|
1433
|
+
}, [t, i]), Ee(() => {
|
|
1434
|
+
if (It() && o) {
|
|
1435
|
+
ye.globalOptions = Ke.globalOptions;
|
|
1436
|
+
const a = ye(o, n.current, r.current);
|
|
1437
|
+
return c(a), () => a.destroy();
|
|
1438
|
+
} else
|
|
1439
|
+
c(void 0);
|
|
1440
|
+
}, [o, c]), [l, s];
|
|
1441
|
+
}
|
|
1442
|
+
Ke.globalOptions = void 0;
|
|
1443
|
+
const lt = w.createContext(void 0);
|
|
1444
|
+
function ve() {
|
|
1445
|
+
const e = w.useContext(lt);
|
|
1446
|
+
if (!e)
|
|
1447
|
+
throw new Error(
|
|
1448
|
+
"KuatCarousel components must be used within a KuatCarousel."
|
|
1449
|
+
);
|
|
1450
|
+
return e;
|
|
1451
|
+
}
|
|
1452
|
+
const mn = w.forwardRef(
|
|
1453
|
+
({
|
|
1454
|
+
opts: e,
|
|
1455
|
+
slidesPerView: t = 1,
|
|
1456
|
+
orientation: n = "horizontal",
|
|
1457
|
+
plugins: r,
|
|
1458
|
+
className: s,
|
|
1459
|
+
children: c,
|
|
1460
|
+
...o
|
|
1461
|
+
}, l) => {
|
|
1462
|
+
const [i, a] = Ke(
|
|
1463
|
+
{
|
|
1464
|
+
...e,
|
|
1465
|
+
axis: n === "horizontal" ? "x" : "y"
|
|
1466
|
+
},
|
|
1467
|
+
r
|
|
1468
|
+
), [b, p] = w.useState(!1), [f, N] = w.useState(!1), m = w.useCallback(() => {
|
|
1469
|
+
a == null || a.scrollPrev();
|
|
1470
|
+
}, [a]), h = w.useCallback(() => {
|
|
1471
|
+
a == null || a.scrollNext();
|
|
1472
|
+
}, [a]), g = w.useCallback((k) => {
|
|
1473
|
+
k && (p(k.canScrollPrev()), N(k.canScrollNext()));
|
|
1474
|
+
}, []);
|
|
1475
|
+
w.useEffect(() => {
|
|
1476
|
+
if (a)
|
|
1477
|
+
return g(a), a.on("reInit", g).on("select", g), () => {
|
|
1478
|
+
a.off("reInit", g).off("select", g);
|
|
1479
|
+
};
|
|
1480
|
+
}, [a, g]);
|
|
1481
|
+
const d = w.useMemo(
|
|
1482
|
+
() => ({
|
|
1483
|
+
api: a,
|
|
1484
|
+
slidesPerView: t,
|
|
1485
|
+
orientation: n,
|
|
1486
|
+
scrollPrev: m,
|
|
1487
|
+
scrollNext: h,
|
|
1488
|
+
canScrollPrev: b,
|
|
1489
|
+
canScrollNext: f
|
|
1490
|
+
}),
|
|
1491
|
+
[
|
|
1492
|
+
a,
|
|
1493
|
+
t,
|
|
1494
|
+
n,
|
|
1495
|
+
m,
|
|
1496
|
+
h,
|
|
1497
|
+
b,
|
|
1498
|
+
f
|
|
1499
|
+
]
|
|
1500
|
+
), C = w.Children.toArray(c), [y, ...L] = C;
|
|
1501
|
+
return /* @__PURE__ */ u(lt.Provider, { value: d, children: /* @__PURE__ */ V(
|
|
1502
|
+
"div",
|
|
1503
|
+
{
|
|
1504
|
+
ref: l,
|
|
1505
|
+
className: x("kuat-carousel", s),
|
|
1506
|
+
...o,
|
|
1507
|
+
children: [
|
|
1508
|
+
/* @__PURE__ */ u("div", { ref: i, className: "kuat-carousel__viewport", children: y }),
|
|
1509
|
+
L
|
|
1510
|
+
]
|
|
1511
|
+
}
|
|
1512
|
+
) });
|
|
1513
|
+
}
|
|
1514
|
+
);
|
|
1515
|
+
mn.displayName = "KuatCarousel";
|
|
1516
|
+
const pn = w.forwardRef(({ className: e, ...t }, n) => {
|
|
1517
|
+
const { orientation: r } = ve();
|
|
1518
|
+
return /* @__PURE__ */ u(
|
|
1519
|
+
"div",
|
|
1520
|
+
{
|
|
1521
|
+
ref: n,
|
|
1522
|
+
className: x(
|
|
1523
|
+
"kuat-carousel__content",
|
|
1524
|
+
`kuat-carousel__content--${r}`,
|
|
1525
|
+
e
|
|
1526
|
+
),
|
|
1527
|
+
...t
|
|
1528
|
+
}
|
|
1529
|
+
);
|
|
1530
|
+
});
|
|
1531
|
+
pn.displayName = "KuatCarouselContent";
|
|
1532
|
+
const hn = w.forwardRef(({ className: e, ...t }, n) => {
|
|
1533
|
+
const { slidesPerView: r, orientation: s } = ve();
|
|
1534
|
+
return /* @__PURE__ */ u(
|
|
1535
|
+
"div",
|
|
1536
|
+
{
|
|
1537
|
+
ref: n,
|
|
1538
|
+
className: x(
|
|
1539
|
+
"kuat-carousel__item",
|
|
1540
|
+
`kuat-carousel__item--${s}`,
|
|
1541
|
+
`kuat-carousel__item--basis-${r}`,
|
|
1542
|
+
e
|
|
1543
|
+
),
|
|
1544
|
+
...t
|
|
1545
|
+
}
|
|
1546
|
+
);
|
|
1547
|
+
});
|
|
1548
|
+
hn.displayName = "KuatCarouselItem";
|
|
1549
|
+
const gn = w.forwardRef(({ className: e, ...t }, n) => {
|
|
1550
|
+
const { scrollPrev: r, canScrollPrev: s } = ve();
|
|
1551
|
+
return /* @__PURE__ */ u(
|
|
1552
|
+
"button",
|
|
1553
|
+
{
|
|
1554
|
+
ref: n,
|
|
1555
|
+
type: "button",
|
|
1556
|
+
className: x("kuat-carousel__prev", e),
|
|
1557
|
+
disabled: !s,
|
|
1558
|
+
onClick: r,
|
|
1559
|
+
"aria-label": "Previous slide",
|
|
1560
|
+
...t,
|
|
1561
|
+
children: /* @__PURE__ */ u(Ht, { className: "h-4 w-4" })
|
|
1562
|
+
}
|
|
1563
|
+
);
|
|
1564
|
+
});
|
|
1565
|
+
gn.displayName = "KuatCarouselPrevious";
|
|
1566
|
+
const bn = w.forwardRef(({ className: e, ...t }, n) => {
|
|
1567
|
+
const { scrollNext: r, canScrollNext: s } = ve();
|
|
1568
|
+
return /* @__PURE__ */ u(
|
|
1569
|
+
"button",
|
|
1570
|
+
{
|
|
1571
|
+
ref: n,
|
|
1572
|
+
type: "button",
|
|
1573
|
+
className: x("kuat-carousel__next", e),
|
|
1574
|
+
disabled: !s,
|
|
1575
|
+
onClick: r,
|
|
1576
|
+
"aria-label": "Next slide",
|
|
1577
|
+
...t,
|
|
1578
|
+
children: /* @__PURE__ */ u(Oe, { className: "h-4 w-4" })
|
|
1579
|
+
}
|
|
1580
|
+
);
|
|
1581
|
+
});
|
|
1582
|
+
bn.displayName = "KuatCarouselNext";
|
|
1583
|
+
const Bn = ["service", "demo"], Pn = ["light", "dark"], Cn = w.forwardRef(
|
|
1584
|
+
({
|
|
1585
|
+
className: e,
|
|
1586
|
+
title: t,
|
|
1587
|
+
use: n = "service",
|
|
1588
|
+
mode: r = "light",
|
|
1589
|
+
forceDark: s = !1,
|
|
1590
|
+
...c
|
|
1591
|
+
}, o) => {
|
|
1592
|
+
const l = s ? "dark" : r, i = /* @__PURE__ */ u(
|
|
1593
|
+
Ve,
|
|
1594
|
+
{
|
|
1595
|
+
className: x(
|
|
1596
|
+
"kuat-logo-lockup__logo",
|
|
1597
|
+
n === "demo" && "kuat-logo-lockup__logo--demo"
|
|
1598
|
+
),
|
|
1599
|
+
textColor: l === "dark" ? "white" : "grey"
|
|
1600
|
+
}
|
|
1601
|
+
);
|
|
1602
|
+
return /* @__PURE__ */ u(
|
|
1603
|
+
"div",
|
|
1604
|
+
{
|
|
1605
|
+
ref: o,
|
|
1606
|
+
className: x(
|
|
1607
|
+
"kuat-logo-lockup",
|
|
1608
|
+
`kuat-logo-lockup--${l}`,
|
|
1609
|
+
`kuat-logo-lockup--${n}`,
|
|
1610
|
+
e
|
|
1611
|
+
),
|
|
1612
|
+
...c,
|
|
1613
|
+
children: n === "service" ? /* @__PURE__ */ V("div", { className: "kuat-logo-lockup__service-inner", children: [
|
|
1614
|
+
/* @__PURE__ */ u("div", { className: "kuat-logo-lockup__logo-wrap", children: i }),
|
|
1615
|
+
/* @__PURE__ */ u(
|
|
1616
|
+
st,
|
|
1617
|
+
{
|
|
1618
|
+
orientation: "vertical",
|
|
1619
|
+
className: "kuat-logo-lockup__separator"
|
|
1620
|
+
}
|
|
1621
|
+
),
|
|
1622
|
+
/* @__PURE__ */ u("span", { className: "kuat-logo-lockup__service-name", children: t })
|
|
1623
|
+
] }) : /* @__PURE__ */ V(Se, { children: [
|
|
1624
|
+
/* @__PURE__ */ u("h2", { className: "kuat-logo-lockup__demo-title", children: t }),
|
|
1625
|
+
/* @__PURE__ */ V("div", { className: "kuat-logo-lockup__demo-attribution", children: [
|
|
1626
|
+
/* @__PURE__ */ u("span", { className: "kuat-logo-lockup__demo-by", children: "A demo by" }),
|
|
1627
|
+
/* @__PURE__ */ u("div", { className: "kuat-logo-lockup__demo-logo-wrap", children: i })
|
|
1628
|
+
] })
|
|
1629
|
+
] })
|
|
1630
|
+
}
|
|
1631
|
+
);
|
|
1632
|
+
}
|
|
1633
|
+
);
|
|
1634
|
+
Cn.displayName = "KuatLogoLockup";
|
|
1635
|
+
function Fn({ className: e }) {
|
|
1636
|
+
return /* @__PURE__ */ V(
|
|
1637
|
+
"svg",
|
|
1638
|
+
{
|
|
1639
|
+
className: x("ee-logo-icon", e),
|
|
1640
|
+
viewBox: "0 0 143 133",
|
|
1641
|
+
fill: "none",
|
|
1642
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1643
|
+
"aria-label": "Equal Experts",
|
|
1644
|
+
children: [
|
|
1645
|
+
/* @__PURE__ */ u(
|
|
1646
|
+
"path",
|
|
1647
|
+
{
|
|
1648
|
+
d: "M102.74 38.8927H40.5969V57.5323H102.74V38.8927Z",
|
|
1649
|
+
fill: "currentColor"
|
|
1650
|
+
}
|
|
1651
|
+
),
|
|
1652
|
+
/* @__PURE__ */ u(
|
|
1653
|
+
"path",
|
|
1654
|
+
{
|
|
1655
|
+
d: "M102.74 75.3895H40.5969V93.029H102.74V75.3895Z",
|
|
1656
|
+
fill: "currentColor"
|
|
1657
|
+
}
|
|
1658
|
+
),
|
|
1659
|
+
/* @__PURE__ */ u(
|
|
1660
|
+
"path",
|
|
1661
|
+
{
|
|
1662
|
+
d: "M0.489227 2.44485V20.7938V110.382V128.741H19.1389H56.6732V110.382H19.1389V20.7938H56.6732V2.44485H19.1389H0.489227Z",
|
|
1663
|
+
fill: "currentColor"
|
|
1664
|
+
}
|
|
1665
|
+
),
|
|
1666
|
+
/* @__PURE__ */ u(
|
|
1667
|
+
"path",
|
|
1668
|
+
{
|
|
1669
|
+
d: "M124.198 2.44485H85.6262V21.0844H124.198V112.092H85.6262V130.741H124.198H142.847V112.092V21.0844V2.44485H124.198Z",
|
|
1670
|
+
fill: "currentColor"
|
|
1671
|
+
}
|
|
1672
|
+
)
|
|
1673
|
+
]
|
|
1674
|
+
}
|
|
1675
|
+
);
|
|
1676
|
+
}
|
|
1677
|
+
const ut = w.forwardRef(({ className: e, "aria-label": t = "Breadcrumb", ...n }, r) => /* @__PURE__ */ u(
|
|
1678
|
+
"nav",
|
|
1679
|
+
{
|
|
1680
|
+
ref: r,
|
|
1681
|
+
"aria-label": t,
|
|
1682
|
+
className: x("breadcrumb", e),
|
|
1683
|
+
...n
|
|
1684
|
+
}
|
|
1685
|
+
));
|
|
1686
|
+
ut.displayName = "BreadcrumbRoot";
|
|
1687
|
+
const dt = w.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u("ol", { ref: n, className: x("breadcrumb-list", e), ...t }));
|
|
1688
|
+
dt.displayName = "BreadcrumbList";
|
|
1689
|
+
const Ie = w.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u("li", { ref: n, className: x("breadcrumb-item", e), ...t }));
|
|
1690
|
+
Ie.displayName = "BreadcrumbItem";
|
|
1691
|
+
const ft = w.forwardRef(({ className: e, render: t, asChild: n = !1, ...r }, s) => {
|
|
1692
|
+
var c;
|
|
1693
|
+
if (t) {
|
|
1694
|
+
const o = t.props;
|
|
1695
|
+
return w.cloneElement(t, {
|
|
1696
|
+
...r,
|
|
1697
|
+
ref: s,
|
|
1698
|
+
className: x("breadcrumb-link", o == null ? void 0 : o.className, e)
|
|
1699
|
+
});
|
|
1700
|
+
}
|
|
1701
|
+
if (n && w.Children.only(r.children)) {
|
|
1702
|
+
const o = w.Children.only(r.children);
|
|
1703
|
+
return w.cloneElement(o, {
|
|
1704
|
+
ref: s,
|
|
1705
|
+
className: x("breadcrumb-link", (c = o.props) == null ? void 0 : c.className, e),
|
|
1706
|
+
...r
|
|
1707
|
+
});
|
|
1708
|
+
}
|
|
1709
|
+
return /* @__PURE__ */ u(
|
|
1710
|
+
"a",
|
|
1711
|
+
{
|
|
1712
|
+
ref: s,
|
|
1713
|
+
className: x("breadcrumb-link", e),
|
|
1714
|
+
...r
|
|
1715
|
+
}
|
|
1716
|
+
);
|
|
1717
|
+
});
|
|
1718
|
+
ft.displayName = "BreadcrumbLink";
|
|
1719
|
+
const De = w.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
1720
|
+
"span",
|
|
1721
|
+
{
|
|
1722
|
+
ref: n,
|
|
1723
|
+
role: "link",
|
|
1724
|
+
"aria-disabled": "true",
|
|
1725
|
+
"aria-current": "page",
|
|
1726
|
+
className: x("breadcrumb-page", e),
|
|
1727
|
+
...t
|
|
1728
|
+
}
|
|
1729
|
+
));
|
|
1730
|
+
De.displayName = "BreadcrumbPage";
|
|
1731
|
+
const Te = w.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ u(
|
|
1732
|
+
"span",
|
|
1733
|
+
{
|
|
1734
|
+
ref: r,
|
|
1735
|
+
role: "presentation",
|
|
1736
|
+
"aria-hidden": "true",
|
|
1737
|
+
className: x("breadcrumb-separator", e),
|
|
1738
|
+
...n,
|
|
1739
|
+
children: t ?? /* @__PURE__ */ u(Oe, { className: "breadcrumb-separator__icon" })
|
|
1740
|
+
}
|
|
1741
|
+
));
|
|
1742
|
+
Te.displayName = "BreadcrumbSeparator";
|
|
1743
|
+
const mt = w.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
1744
|
+
"span",
|
|
1745
|
+
{
|
|
1746
|
+
ref: n,
|
|
1747
|
+
role: "presentation",
|
|
1748
|
+
"aria-hidden": "true",
|
|
1749
|
+
className: x("breadcrumb-ellipsis", e),
|
|
1750
|
+
...t,
|
|
1751
|
+
children: /* @__PURE__ */ u(Et, { className: "breadcrumb-ellipsis__icon" })
|
|
1752
|
+
}
|
|
1753
|
+
));
|
|
1754
|
+
mt.displayName = "BreadcrumbEllipsis";
|
|
1755
|
+
const pt = R.Root, ht = R.Trigger, gt = R.Group, Nn = w.forwardRef(({ className: e, inset: t, children: n, ...r }, s) => /* @__PURE__ */ V(
|
|
1756
|
+
R.SubTrigger,
|
|
1757
|
+
{
|
|
1758
|
+
ref: s,
|
|
1759
|
+
className: x(
|
|
1760
|
+
"dropdown-menu-sub-trigger",
|
|
1761
|
+
t && "dropdown-menu-sub-trigger--inset",
|
|
1762
|
+
e
|
|
1763
|
+
),
|
|
1764
|
+
...r,
|
|
1765
|
+
children: [
|
|
1766
|
+
n,
|
|
1767
|
+
/* @__PURE__ */ u(Oe, { className: "dropdown-menu-sub-trigger__icon" })
|
|
1768
|
+
]
|
|
1769
|
+
}
|
|
1770
|
+
));
|
|
1771
|
+
Nn.displayName = R.SubTrigger.displayName;
|
|
1772
|
+
const yn = w.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
1773
|
+
R.SubContent,
|
|
1774
|
+
{
|
|
1775
|
+
ref: n,
|
|
1776
|
+
className: x("dropdown-menu-content", "dropdown-menu-sub-content", e),
|
|
1777
|
+
...t
|
|
1778
|
+
}
|
|
1779
|
+
));
|
|
1780
|
+
yn.displayName = R.SubContent.displayName;
|
|
1781
|
+
const Ze = w.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ u(R.Portal, { children: /* @__PURE__ */ u(
|
|
1782
|
+
R.Content,
|
|
1783
|
+
{
|
|
1784
|
+
ref: r,
|
|
1785
|
+
sideOffset: t,
|
|
1786
|
+
className: x("dropdown-menu-content", e),
|
|
1787
|
+
...n
|
|
1788
|
+
}
|
|
1789
|
+
) }));
|
|
1790
|
+
Ze.displayName = R.Content.displayName;
|
|
1791
|
+
const Ge = w.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ u(
|
|
1792
|
+
R.Item,
|
|
1793
|
+
{
|
|
1794
|
+
ref: r,
|
|
1795
|
+
className: x(
|
|
1796
|
+
"dropdown-menu-item",
|
|
1797
|
+
t && "dropdown-menu-item--inset",
|
|
1798
|
+
e
|
|
1799
|
+
),
|
|
1800
|
+
...n
|
|
1801
|
+
}
|
|
1802
|
+
));
|
|
1803
|
+
Ge.displayName = R.Item.displayName;
|
|
1804
|
+
const Sn = w.forwardRef(({ className: e, children: t, checked: n, ...r }, s) => /* @__PURE__ */ u(
|
|
1805
|
+
R.CheckboxItem,
|
|
1806
|
+
{
|
|
1807
|
+
ref: s,
|
|
1808
|
+
className: x("dropdown-menu-item", "dropdown-menu-checkbox-item", e),
|
|
1809
|
+
checked: n,
|
|
1810
|
+
...r,
|
|
1811
|
+
children: t
|
|
1812
|
+
}
|
|
1813
|
+
));
|
|
1814
|
+
Sn.displayName = R.CheckboxItem.displayName;
|
|
1815
|
+
const wn = w.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ u(
|
|
1816
|
+
R.RadioItem,
|
|
1817
|
+
{
|
|
1818
|
+
ref: r,
|
|
1819
|
+
className: x("dropdown-menu-item", "dropdown-menu-radio-item", e),
|
|
1820
|
+
...n,
|
|
1821
|
+
children: t
|
|
1822
|
+
}
|
|
1823
|
+
));
|
|
1824
|
+
wn.displayName = R.RadioItem.displayName;
|
|
1825
|
+
const vn = w.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ u(
|
|
1826
|
+
R.Label,
|
|
1827
|
+
{
|
|
1828
|
+
ref: r,
|
|
1829
|
+
className: x(
|
|
1830
|
+
"dropdown-menu-label",
|
|
1831
|
+
t && "dropdown-menu-label--inset",
|
|
1832
|
+
e
|
|
1833
|
+
),
|
|
1834
|
+
...n
|
|
1835
|
+
}
|
|
1836
|
+
));
|
|
1837
|
+
vn.displayName = R.Label.displayName;
|
|
1838
|
+
const _n = w.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
1839
|
+
R.Separator,
|
|
1840
|
+
{
|
|
1841
|
+
ref: n,
|
|
1842
|
+
className: x("dropdown-menu-separator", e),
|
|
1843
|
+
...t
|
|
1844
|
+
}
|
|
1845
|
+
));
|
|
1846
|
+
_n.displayName = R.Separator.displayName;
|
|
1847
|
+
const xn = 640;
|
|
1848
|
+
function Ln(e = xn) {
|
|
1849
|
+
const [t, n] = w.useState(!1);
|
|
1850
|
+
return w.useEffect(() => {
|
|
1851
|
+
if (typeof window > "u" || typeof window.matchMedia != "function")
|
|
1852
|
+
return;
|
|
1853
|
+
const r = window.matchMedia(`(max-width: ${e}px)`), s = () => n(r.matches);
|
|
1854
|
+
return s(), r.addEventListener("change", s), () => r.removeEventListener("change", s);
|
|
1855
|
+
}, [e]), t;
|
|
1856
|
+
}
|
|
1857
|
+
const kn = ({ href: e, children: t, className: n }) => /* @__PURE__ */ u("a", { href: e, className: n, children: t });
|
|
1858
|
+
function Hn(e, t, n, r) {
|
|
1859
|
+
return e.children && e.children.length > 0 ? /* @__PURE__ */ V(pt, { children: [
|
|
1860
|
+
/* @__PURE__ */ u(ht, { asChild: !0, children: /* @__PURE__ */ V(
|
|
1861
|
+
"button",
|
|
1862
|
+
{
|
|
1863
|
+
type: "button",
|
|
1864
|
+
className: x(
|
|
1865
|
+
"breadcrumb-dropdown-trigger",
|
|
1866
|
+
"inline-flex items-center gap-1 font-medium"
|
|
1867
|
+
),
|
|
1868
|
+
"aria-haspopup": "menu",
|
|
1869
|
+
children: [
|
|
1870
|
+
e.label,
|
|
1871
|
+
/* @__PURE__ */ u(
|
|
1872
|
+
Vt,
|
|
1873
|
+
{
|
|
1874
|
+
className: "breadcrumb-dropdown-trigger__icon",
|
|
1875
|
+
"aria-hidden": !0
|
|
1876
|
+
}
|
|
1877
|
+
),
|
|
1878
|
+
/* @__PURE__ */ u("span", { className: "sr-only", children: "Toggle menu" })
|
|
1879
|
+
]
|
|
1880
|
+
}
|
|
1881
|
+
) }),
|
|
1882
|
+
/* @__PURE__ */ u(Ze, { align: "start", children: /* @__PURE__ */ u(gt, { children: e.children.map((c, o) => /* @__PURE__ */ u(Ge, { asChild: !0, children: /* @__PURE__ */ u("a", { href: c.href, children: c.label }) }, o)) }) })
|
|
1883
|
+
] }) : t ? /* @__PURE__ */ u(De, { children: e.label }) : e.href ? /* @__PURE__ */ u(
|
|
1884
|
+
ft,
|
|
1885
|
+
{
|
|
1886
|
+
render: /* @__PURE__ */ u(n, { href: e.href, children: e.label })
|
|
1887
|
+
}
|
|
1888
|
+
) : /* @__PURE__ */ u(De, { children: e.label });
|
|
1889
|
+
}
|
|
1890
|
+
function En({
|
|
1891
|
+
items: e,
|
|
1892
|
+
linkComponent: t = kn,
|
|
1893
|
+
separator: n,
|
|
1894
|
+
className: r,
|
|
1895
|
+
"aria-label": s = "Breadcrumb",
|
|
1896
|
+
...c
|
|
1897
|
+
}, o) {
|
|
1898
|
+
const l = Ln();
|
|
1899
|
+
if (!e.length) return null;
|
|
1900
|
+
const i = l && e.length > 2, a = i ? [e[0], e[e.length - 1]] : e, p = (i ? e.slice(1, -1) : []).flatMap(
|
|
1901
|
+
(f) => f.href ? [{ label: f.label, href: f.href }] : (f.children ?? []).map((N) => ({ label: N.label, href: N.href }))
|
|
1902
|
+
);
|
|
1903
|
+
return /* @__PURE__ */ u(
|
|
1904
|
+
ut,
|
|
1905
|
+
{
|
|
1906
|
+
ref: o,
|
|
1907
|
+
"aria-label": s,
|
|
1908
|
+
className: r,
|
|
1909
|
+
...c,
|
|
1910
|
+
children: /* @__PURE__ */ u(dt, { children: a.map((f, N) => {
|
|
1911
|
+
const m = i ? N === 0 ? 0 : e.length - 1 : N, g = N === a.length - 1 && !f.href && !f.children;
|
|
1912
|
+
return /* @__PURE__ */ V(w.Fragment, { children: [
|
|
1913
|
+
N > 0 && /* @__PURE__ */ u(Te, { children: n }),
|
|
1914
|
+
i && N === 1 && p.length > 0 && /* @__PURE__ */ V(Se, { children: [
|
|
1915
|
+
/* @__PURE__ */ u(Ie, { children: /* @__PURE__ */ V(pt, { children: [
|
|
1916
|
+
/* @__PURE__ */ u(ht, { asChild: !0, children: /* @__PURE__ */ V(
|
|
1917
|
+
"button",
|
|
1918
|
+
{
|
|
1919
|
+
type: "button",
|
|
1920
|
+
className: x(
|
|
1921
|
+
"breadcrumb-dropdown-trigger",
|
|
1922
|
+
"breadcrumb-ellipsis-trigger",
|
|
1923
|
+
"inline-flex items-center"
|
|
1924
|
+
),
|
|
1925
|
+
"aria-haspopup": "menu",
|
|
1926
|
+
children: [
|
|
1927
|
+
/* @__PURE__ */ u(mt, {}),
|
|
1928
|
+
/* @__PURE__ */ u("span", { className: "sr-only", children: "Show more pages" })
|
|
1929
|
+
]
|
|
1930
|
+
}
|
|
1931
|
+
) }),
|
|
1932
|
+
/* @__PURE__ */ u(Ze, { align: "start", children: /* @__PURE__ */ u(gt, { children: p.map((d, C) => /* @__PURE__ */ u(Ge, { asChild: !0, children: /* @__PURE__ */ u("a", { href: d.href, children: d.label }) }, C)) }) })
|
|
1933
|
+
] }) }),
|
|
1934
|
+
/* @__PURE__ */ u(Te, { children: n })
|
|
1935
|
+
] }),
|
|
1936
|
+
/* @__PURE__ */ u(Ie, { children: Hn(f, g, t) })
|
|
1937
|
+
] }, m);
|
|
1938
|
+
}) })
|
|
1939
|
+
}
|
|
1940
|
+
);
|
|
1941
|
+
}
|
|
1942
|
+
const Vn = w.forwardRef(
|
|
1943
|
+
En
|
|
1944
|
+
);
|
|
1945
|
+
Vn.displayName = "Breadcrumb";
|
|
7
1946
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
1947
|
+
Wn as Accordion,
|
|
1948
|
+
er as AccordionContent,
|
|
1949
|
+
tr as AccordionItem,
|
|
1950
|
+
nr as AccordionTrigger,
|
|
1951
|
+
or as AlertDialog,
|
|
1952
|
+
sr as AlertDialogAction,
|
|
1953
|
+
cr as AlertDialogCancel,
|
|
1954
|
+
ir as AlertDialogContent,
|
|
1955
|
+
ar as AlertDialogDescription,
|
|
1956
|
+
lr as AlertDialogFooter,
|
|
1957
|
+
ur as AlertDialogHeader,
|
|
1958
|
+
dr as AlertDialogOverlay,
|
|
1959
|
+
fr as AlertDialogPortal,
|
|
1960
|
+
mr as AlertDialogTitle,
|
|
1961
|
+
pr as AlertDialogTrigger,
|
|
1962
|
+
gr as BADGE_ROUNDNESS,
|
|
1963
|
+
br as BADGE_VARIANTS,
|
|
1964
|
+
Sr as BUTTON_COLORS,
|
|
1965
|
+
Gn as BUTTON_GROUP_ORIENTATIONS,
|
|
1966
|
+
wr as BUTTON_SIZES,
|
|
1967
|
+
vr as BUTTON_VARIANTS,
|
|
1968
|
+
Cr as Badge,
|
|
1969
|
+
Vn as Breadcrumb,
|
|
1970
|
+
mt as BreadcrumbEllipsis,
|
|
1971
|
+
Ie as BreadcrumbItem,
|
|
1972
|
+
ft as BreadcrumbLink,
|
|
1973
|
+
dt as BreadcrumbList,
|
|
1974
|
+
De as BreadcrumbPage,
|
|
1975
|
+
ut as BreadcrumbRoot,
|
|
1976
|
+
Te as BreadcrumbSeparator,
|
|
1977
|
+
_r as Button,
|
|
1978
|
+
zn as ButtonGroup,
|
|
1979
|
+
jn as ButtonGroupSeparator,
|
|
1980
|
+
Un as ButtonGroupText,
|
|
1981
|
+
On as ContentCard,
|
|
1982
|
+
Ve as EELogo,
|
|
1983
|
+
Fn as EELogoIcon,
|
|
1984
|
+
Pn as KUAT_LOGO_LOCKUP_MODE,
|
|
1985
|
+
Bn as KUAT_LOGO_LOCKUP_USE,
|
|
1986
|
+
Qn as KUAT_RADIAL_PROGRESS_COLORS,
|
|
1987
|
+
Jn as KUAT_RADIAL_PROGRESS_SIZES,
|
|
1988
|
+
mn as KuatCarousel,
|
|
1989
|
+
pn as KuatCarouselContent,
|
|
1990
|
+
hn as KuatCarouselItem,
|
|
1991
|
+
bn as KuatCarouselNext,
|
|
1992
|
+
gn as KuatCarouselPrevious,
|
|
1993
|
+
At as KuatHeader,
|
|
1994
|
+
Cn as KuatLogoLockup,
|
|
1995
|
+
Xn as KuatRadialProgress,
|
|
1996
|
+
Nr as badgeVariants,
|
|
1997
|
+
$n as buttonGroupVariants,
|
|
1998
|
+
xr as buttonVariants,
|
|
1999
|
+
x as cn,
|
|
2000
|
+
Rn as kuatHeaderVariants,
|
|
2001
|
+
ve as useKuatCarousel
|
|
32
2002
|
};
|