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