etudes 16.0.0 → 16.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/etudes.js +355 -353
- package/build/etudes.umd.cjs +3 -3
- package/package.json +1 -1
package/build/etudes.js
CHANGED
|
@@ -73,19 +73,19 @@ function Ss() {
|
|
|
73
73
|
), T.$$typeof) {
|
|
74
74
|
case M:
|
|
75
75
|
return "Portal";
|
|
76
|
-
case
|
|
76
|
+
case B:
|
|
77
77
|
return (T.displayName || "Context") + ".Provider";
|
|
78
78
|
case W:
|
|
79
79
|
return (T._context.displayName || "Context") + ".Consumer";
|
|
80
80
|
case Y:
|
|
81
|
-
var
|
|
82
|
-
return T = T.displayName, T || (T =
|
|
81
|
+
var D = T.render;
|
|
82
|
+
return T = T.displayName, T || (T = D.displayName || D.name || "", T = T !== "" ? "ForwardRef(" + T + ")" : "ForwardRef"), T;
|
|
83
83
|
case E:
|
|
84
|
-
return
|
|
84
|
+
return D = T.displayName || null, D !== null ? D : e(T.type) || "Memo";
|
|
85
85
|
case R:
|
|
86
|
-
|
|
86
|
+
D = T._payload, T = T._init;
|
|
87
87
|
try {
|
|
88
|
-
return e(T(
|
|
88
|
+
return e(T(D));
|
|
89
89
|
} catch {
|
|
90
90
|
}
|
|
91
91
|
}
|
|
@@ -96,15 +96,15 @@ function Ss() {
|
|
|
96
96
|
}
|
|
97
97
|
function s(T) {
|
|
98
98
|
try {
|
|
99
|
-
var
|
|
99
|
+
var D = !1;
|
|
100
100
|
} catch {
|
|
101
|
-
|
|
101
|
+
D = !0;
|
|
102
102
|
}
|
|
103
|
-
if (
|
|
104
|
-
|
|
105
|
-
var ne =
|
|
103
|
+
if (D) {
|
|
104
|
+
D = console;
|
|
105
|
+
var ne = D.error, re = typeof Symbol == "function" && Symbol.toStringTag && T[Symbol.toStringTag] || T.constructor.name || "Object";
|
|
106
106
|
return ne.call(
|
|
107
|
-
|
|
107
|
+
D,
|
|
108
108
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
109
109
|
re
|
|
110
110
|
), r(T);
|
|
@@ -115,8 +115,8 @@ function Ss() {
|
|
|
115
115
|
if (typeof T == "object" && T !== null && T.$$typeof === R)
|
|
116
116
|
return "<...>";
|
|
117
117
|
try {
|
|
118
|
-
var
|
|
119
|
-
return
|
|
118
|
+
var D = e(T);
|
|
119
|
+
return D ? "<" + D + ">" : "<...>";
|
|
120
120
|
} catch {
|
|
121
121
|
return "<...>";
|
|
122
122
|
}
|
|
@@ -130,16 +130,16 @@ function Ss() {
|
|
|
130
130
|
}
|
|
131
131
|
function p(T) {
|
|
132
132
|
if (J.call(T, "key")) {
|
|
133
|
-
var
|
|
134
|
-
if (
|
|
133
|
+
var D = Object.getOwnPropertyDescriptor(T, "key").get;
|
|
134
|
+
if (D && D.isReactWarning) return !1;
|
|
135
135
|
}
|
|
136
136
|
return T.key !== void 0;
|
|
137
137
|
}
|
|
138
|
-
function g(T,
|
|
138
|
+
function g(T, D) {
|
|
139
139
|
function ne() {
|
|
140
140
|
A || (A = !0, console.error(
|
|
141
141
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
142
|
-
|
|
142
|
+
D
|
|
143
143
|
));
|
|
144
144
|
}
|
|
145
145
|
ne.isReactWarning = !0, Object.defineProperty(T, "key", {
|
|
@@ -153,11 +153,11 @@ function Ss() {
|
|
|
153
153
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
154
154
|
)), T = this.props.ref, T !== void 0 ? T : null;
|
|
155
155
|
}
|
|
156
|
-
function N(T,
|
|
156
|
+
function N(T, D, ne, re, le, pe, Ne, Te) {
|
|
157
157
|
return ne = pe.ref, T = {
|
|
158
158
|
$$typeof: I,
|
|
159
159
|
type: T,
|
|
160
|
-
key:
|
|
160
|
+
key: D,
|
|
161
161
|
props: pe,
|
|
162
162
|
_owner: le
|
|
163
163
|
}, (ne !== void 0 ? ne : null) !== null ? Object.defineProperty(T, "ref", {
|
|
@@ -185,8 +185,8 @@ function Ss() {
|
|
|
185
185
|
value: Te
|
|
186
186
|
}), Object.freeze && (Object.freeze(T.props), Object.freeze(T)), T;
|
|
187
187
|
}
|
|
188
|
-
function _(T,
|
|
189
|
-
var xe =
|
|
188
|
+
function _(T, D, ne, re, le, pe, Ne, Te) {
|
|
189
|
+
var xe = D.children;
|
|
190
190
|
if (xe !== void 0)
|
|
191
191
|
if (re)
|
|
192
192
|
if (H(xe)) {
|
|
@@ -198,12 +198,12 @@ function Ss() {
|
|
|
198
198
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
199
199
|
);
|
|
200
200
|
else P(xe);
|
|
201
|
-
if (J.call(
|
|
201
|
+
if (J.call(D, "key")) {
|
|
202
202
|
xe = e(T);
|
|
203
|
-
var q = Object.keys(
|
|
203
|
+
var q = Object.keys(D).filter(function(je) {
|
|
204
204
|
return je !== "key";
|
|
205
205
|
});
|
|
206
|
-
re = 0 < q.length ? "{key: someKey, " + q.join(": ..., ") + ": ...}" : "{key: someKey}",
|
|
206
|
+
re = 0 < q.length ? "{key: someKey, " + q.join(": ..., ") + ": ...}" : "{key: someKey}", F[xe + re] || (q = 0 < q.length ? "{" + q.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
207
207
|
`A props object containing a "key" prop is being spread into JSX:
|
|
208
208
|
let props = %s;
|
|
209
209
|
<%s {...props} />
|
|
@@ -214,13 +214,13 @@ React keys must be passed directly to JSX without using spread:
|
|
|
214
214
|
xe,
|
|
215
215
|
q,
|
|
216
216
|
xe
|
|
217
|
-
),
|
|
217
|
+
), F[xe + re] = !0);
|
|
218
218
|
}
|
|
219
|
-
if (xe = null, ne !== void 0 && (s(ne), xe = "" + ne), p(
|
|
219
|
+
if (xe = null, ne !== void 0 && (s(ne), xe = "" + ne), p(D) && (s(D.key), xe = "" + D.key), "key" in D) {
|
|
220
220
|
ne = {};
|
|
221
|
-
for (var Fe in
|
|
222
|
-
Fe !== "key" && (ne[Fe] =
|
|
223
|
-
} else ne =
|
|
221
|
+
for (var Fe in D)
|
|
222
|
+
Fe !== "key" && (ne[Fe] = D[Fe]);
|
|
223
|
+
} else ne = D;
|
|
224
224
|
return xe && g(
|
|
225
225
|
ne,
|
|
226
226
|
typeof T == "function" ? T.displayName || T.name || "Unknown" : T
|
|
@@ -238,7 +238,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
238
238
|
function P(T) {
|
|
239
239
|
typeof T == "object" && T !== null && T.$$typeof === I && T._store && (T._store.validated = 1);
|
|
240
240
|
}
|
|
241
|
-
var k = ys, I = Symbol.for("react.transitional.element"), M = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), j = Symbol.for("react.strict_mode"), K = Symbol.for("react.profiler"), W = Symbol.for("react.consumer"),
|
|
241
|
+
var k = ys, I = Symbol.for("react.transitional.element"), M = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), j = Symbol.for("react.strict_mode"), K = Symbol.for("react.profiler"), W = Symbol.for("react.consumer"), B = Symbol.for("react.context"), Y = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), C = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), U = Symbol.for("react.activity"), G = Symbol.for("react.client.reference"), te = k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, J = Object.prototype.hasOwnProperty, H = Array.isArray, z = console.createTask ? console.createTask : function() {
|
|
242
242
|
return null;
|
|
243
243
|
};
|
|
244
244
|
k = {
|
|
@@ -249,30 +249,30 @@ React keys must be passed directly to JSX without using spread:
|
|
|
249
249
|
var A, Q = {}, Z = k["react-stack-bottom-frame"].bind(
|
|
250
250
|
k,
|
|
251
251
|
u
|
|
252
|
-
)(),
|
|
253
|
-
St.Fragment = b, St.jsx = function(T,
|
|
252
|
+
)(), se = z(a(u)), F = {};
|
|
253
|
+
St.Fragment = b, St.jsx = function(T, D, ne, re, le) {
|
|
254
254
|
var pe = 1e4 > te.recentlyCreatedOwnerStacks++;
|
|
255
255
|
return _(
|
|
256
256
|
T,
|
|
257
|
-
|
|
257
|
+
D,
|
|
258
258
|
ne,
|
|
259
259
|
!1,
|
|
260
260
|
re,
|
|
261
261
|
le,
|
|
262
262
|
pe ? Error("react-stack-top-frame") : Z,
|
|
263
|
-
pe ? z(a(T)) :
|
|
263
|
+
pe ? z(a(T)) : se
|
|
264
264
|
);
|
|
265
|
-
}, St.jsxs = function(T,
|
|
265
|
+
}, St.jsxs = function(T, D, ne, re, le) {
|
|
266
266
|
var pe = 1e4 > te.recentlyCreatedOwnerStacks++;
|
|
267
267
|
return _(
|
|
268
268
|
T,
|
|
269
|
-
|
|
269
|
+
D,
|
|
270
270
|
ne,
|
|
271
271
|
!0,
|
|
272
272
|
re,
|
|
273
273
|
le,
|
|
274
274
|
pe ? Error("react-stack-top-frame") : Z,
|
|
275
|
-
pe ? z(a(T)) :
|
|
275
|
+
pe ? z(a(T)) : se
|
|
276
276
|
);
|
|
277
277
|
};
|
|
278
278
|
}()), St;
|
|
@@ -291,7 +291,7 @@ function Co(e) {
|
|
|
291
291
|
} else for (s in e) e[s] && (a && (a += " "), a += s);
|
|
292
292
|
return a;
|
|
293
293
|
}
|
|
294
|
-
function
|
|
294
|
+
function ie() {
|
|
295
295
|
for (var e, r, s = 0, a = "", l = arguments.length; s < l; s++) (e = arguments[s]) && (r = Co(e)) && (a && (a += " "), a += r);
|
|
296
296
|
return a;
|
|
297
297
|
}
|
|
@@ -597,7 +597,7 @@ var ge;
|
|
|
597
597
|
function l(S, C = {}) {
|
|
598
598
|
try {
|
|
599
599
|
if (S == null) return;
|
|
600
|
-
if (
|
|
600
|
+
if (B(S)) return S;
|
|
601
601
|
if (Tt(S)) return l(document.documentElement || document.body.parentNode || document.body, C);
|
|
602
602
|
const E = S instanceof Array ? S : [S], R = E.length, U = C.reference || window, G = u(), te = Tt(U) ? G : l(C.reference);
|
|
603
603
|
if (!G || !te) return;
|
|
@@ -726,10 +726,10 @@ var ge;
|
|
|
726
726
|
return !(typeof S.x != "number" || typeof S.y != "number" || typeof S.width != "number" || typeof S.height != "number");
|
|
727
727
|
}
|
|
728
728
|
e.isValidDescriptor = W;
|
|
729
|
-
function
|
|
729
|
+
function B(S) {
|
|
730
730
|
return typeof S == "object" && typeof S.top == "number" && typeof S.right == "number" && typeof S.bottom == "number" && typeof S.left == "number" && typeof S.width == "number" && typeof S.height == "number";
|
|
731
731
|
}
|
|
732
|
-
e.isRect =
|
|
732
|
+
e.isRect = B;
|
|
733
733
|
function Y(S) {
|
|
734
734
|
return S.top === 0 && S.right === 0 && S.bottom === 0 && S.left === 0 && S.width === 0 && S.height === 0;
|
|
735
735
|
}
|
|
@@ -849,7 +849,7 @@ const hr = /* @__PURE__ */ Oe(({
|
|
|
849
849
|
onSelectionChange: j,
|
|
850
850
|
ItemComponent: K,
|
|
851
851
|
...W
|
|
852
|
-
},
|
|
852
|
+
}, B) => {
|
|
853
853
|
const Y = Cs(_ ?? [], p), S = js({ itemLength: l, itemPadding: u, layout: g, numSegments: m, orientation: N }), C = (H) => Y.indexOf(H) >= 0, E = (H) => {
|
|
854
854
|
C(H) ? U(H) : R(H);
|
|
855
855
|
}, R = (H) => {
|
|
@@ -857,7 +857,7 @@ const hr = /* @__PURE__ */ Oe(({
|
|
|
857
857
|
let z;
|
|
858
858
|
switch (P) {
|
|
859
859
|
case "multiple": {
|
|
860
|
-
z = (Z) => Io([...Z.filter((
|
|
860
|
+
z = (Z) => Io([...Z.filter((se) => se !== H), H]);
|
|
861
861
|
break;
|
|
862
862
|
}
|
|
863
863
|
case "single": {
|
|
@@ -871,7 +871,7 @@ const hr = /* @__PURE__ */ Oe(({
|
|
|
871
871
|
te(A, Q);
|
|
872
872
|
}, U = (H) => {
|
|
873
873
|
if (!C(H)) return;
|
|
874
|
-
const z = (Z) => Z.filter((
|
|
874
|
+
const z = (Z) => Z.filter((se) => se !== H), A = Y, Q = z(Y);
|
|
875
875
|
te(A, Q);
|
|
876
876
|
}, G = (H) => {
|
|
877
877
|
k?.(H), P !== "none" && (a ? E(H) : R(H));
|
|
@@ -903,9 +903,9 @@ const hr = /* @__PURE__ */ Oe(({
|
|
|
903
903
|
"div",
|
|
904
904
|
{
|
|
905
905
|
...W,
|
|
906
|
-
ref:
|
|
906
|
+
ref: B,
|
|
907
907
|
"aria-multiselectable": P === "multiple",
|
|
908
|
-
className:
|
|
908
|
+
className: ie(e),
|
|
909
909
|
role: g === "grid" ? "grid" : P === "none" ? "list" : "listbox",
|
|
910
910
|
style: ce(s, S.root),
|
|
911
911
|
children: /* @__PURE__ */ x.jsx(ln, { in: p, children: (H, z) => {
|
|
@@ -925,7 +925,7 @@ const hr = /* @__PURE__ */ Oe(({
|
|
|
925
925
|
K,
|
|
926
926
|
{
|
|
927
927
|
"aria-selected": Q,
|
|
928
|
-
className:
|
|
928
|
+
className: ie({ active: Q }),
|
|
929
929
|
index: z,
|
|
930
930
|
isSelected: C(z),
|
|
931
931
|
item: H,
|
|
@@ -933,13 +933,13 @@ const hr = /* @__PURE__ */ Oe(({
|
|
|
933
933
|
role: A,
|
|
934
934
|
style: Z,
|
|
935
935
|
onClick: () => G(z),
|
|
936
|
-
onCustomEvent: (
|
|
936
|
+
onCustomEvent: (se, F) => M?.(z, se, F)
|
|
937
937
|
}
|
|
938
938
|
) : /* @__PURE__ */ x.jsx(
|
|
939
939
|
he,
|
|
940
940
|
{
|
|
941
941
|
"aria-selected": Q,
|
|
942
|
-
className:
|
|
942
|
+
className: ie({ active: Q }),
|
|
943
943
|
element: J.item ?? /* @__PURE__ */ x.jsx(kt, {}),
|
|
944
944
|
role: A,
|
|
945
945
|
selectionMode: P,
|
|
@@ -1023,76 +1023,76 @@ const Is = /* @__PURE__ */ Oe(({
|
|
|
1023
1023
|
onSelectAt: j,
|
|
1024
1024
|
onSelectionChange: K,
|
|
1025
1025
|
HeaderComponent: W,
|
|
1026
|
-
ItemComponent:
|
|
1026
|
+
ItemComponent: B,
|
|
1027
1027
|
...Y
|
|
1028
1028
|
}, S) => {
|
|
1029
|
-
const C = Ms(g ?? {}, p), E = As(a ?? [], p), R = Rs({ orientation: l }), U = p.map(() => Ee(null)), G = U.map((
|
|
1029
|
+
const C = Ms(g ?? {}, p), E = As(a ?? [], p), R = Rs({ orientation: l }), U = p.map(() => Ee(null)), G = U.map((F) => jo(F)), te = (F, T) => (C[T]?.indexOf(F) ?? -1) >= 0, J = (F) => E.indexOf(F) >= 0, H = (F) => {
|
|
1030
1030
|
let T;
|
|
1031
|
-
J(
|
|
1032
|
-
}, z = (
|
|
1033
|
-
if (te(
|
|
1034
|
-
let
|
|
1031
|
+
J(F) ? T = (D) => D.filter((ne) => ne !== F) : s ? T = (D) => [F] : T = (D) => [...D.filter((ne) => ne !== F), F], Q(E, T(E));
|
|
1032
|
+
}, z = (F, T) => {
|
|
1033
|
+
if (te(F, T)) return;
|
|
1034
|
+
let D;
|
|
1035
1035
|
switch (m) {
|
|
1036
1036
|
case "multiple":
|
|
1037
|
-
|
|
1037
|
+
D = (re) => ({
|
|
1038
1038
|
...re,
|
|
1039
|
-
[T]: nn([...(re[T] ?? []).filter((le) => le !==
|
|
1039
|
+
[T]: nn([...(re[T] ?? []).filter((le) => le !== F), F])
|
|
1040
1040
|
});
|
|
1041
1041
|
break;
|
|
1042
1042
|
case "single":
|
|
1043
|
-
|
|
1044
|
-
[T]: [
|
|
1043
|
+
D = (re) => ({
|
|
1044
|
+
[T]: [F]
|
|
1045
1045
|
});
|
|
1046
1046
|
break;
|
|
1047
1047
|
default:
|
|
1048
1048
|
return;
|
|
1049
1049
|
}
|
|
1050
|
-
const ne =
|
|
1050
|
+
const ne = D(C);
|
|
1051
1051
|
Z(C, ne);
|
|
1052
|
-
}, A = (
|
|
1053
|
-
if (!te(
|
|
1052
|
+
}, A = (F, T) => {
|
|
1053
|
+
if (!te(F, T)) return;
|
|
1054
1054
|
const ne = ((re) => ({
|
|
1055
1055
|
...re,
|
|
1056
|
-
[T]: (re[T] ?? []).filter((le) => le !==
|
|
1056
|
+
[T]: (re[T] ?? []).filter((le) => le !== F)
|
|
1057
1057
|
}))(C);
|
|
1058
1058
|
Z(C, ne);
|
|
1059
|
-
}, Q = (
|
|
1060
|
-
if (Ge(
|
|
1061
|
-
const
|
|
1062
|
-
|
|
1063
|
-
}, Z = (
|
|
1064
|
-
if (Ge(
|
|
1065
|
-
const
|
|
1059
|
+
}, Q = (F, T) => {
|
|
1060
|
+
if (Ge(F, T)) return;
|
|
1061
|
+
const D = F?.filter((re) => T.indexOf(re) === -1) ?? [], ne = T.filter((re) => F?.indexOf(re) === -1);
|
|
1062
|
+
D.forEach((re) => _?.(re)), ne.forEach((re) => I?.(re)), k?.(T);
|
|
1063
|
+
}, Z = (F, T) => {
|
|
1064
|
+
if (Ge(F, T)) return;
|
|
1065
|
+
const D = p.length;
|
|
1066
1066
|
let ne = [], re = [];
|
|
1067
|
-
for (let le = 0; le <
|
|
1068
|
-
const pe =
|
|
1067
|
+
for (let le = 0; le < D; le++) {
|
|
1068
|
+
const pe = F?.[le] ?? [], Ne = T[le] ?? [], Te = pe.filter((q) => Ne.indexOf(q) === -1), xe = Ne.filter((q) => pe?.indexOf(q) === -1);
|
|
1069
1069
|
ne = [...ne, ...Te.map((q) => [q, le])], re = [...re, ...xe.map((q) => [q, le])];
|
|
1070
1070
|
}
|
|
1071
1071
|
ne.forEach((le) => P?.(le[0], le[1])), re.forEach((le) => j?.(le[0], le[1])), K?.(T);
|
|
1072
|
-
},
|
|
1072
|
+
}, se = ze(e, {
|
|
1073
1073
|
collapseIcon: Ao,
|
|
1074
1074
|
expandIcon: $o,
|
|
1075
1075
|
header: Fn,
|
|
1076
1076
|
item: Dn,
|
|
1077
1077
|
section: fo
|
|
1078
1078
|
});
|
|
1079
|
-
return /* @__PURE__ */ x.jsx("div", { ...Y, ref: S, style: ce(r, R.root), children: /* @__PURE__ */ x.jsx(ln, { in: p, children: (
|
|
1080
|
-
const { collectionPadding:
|
|
1079
|
+
return /* @__PURE__ */ x.jsx("div", { ...Y, ref: S, style: ce(r, R.root), children: /* @__PURE__ */ x.jsx(ln, { in: p, children: (F, T) => {
|
|
1080
|
+
const { collectionPadding: D = 0, items: ne = [], itemLength: re = 50, itemPadding: le = 0, isSelectionTogglable: pe, layout: Ne = "list", maxVisible: Te = -1, numSegments: xe = 1 } = F, q = Ne === "list" ? ne.length : Math.ceil(ne.length / xe), Fe = Te < 0 ? q : Math.min(q, Te), je = re * Fe + le * (Fe - 1), ke = !J(T), Ve = G[T];
|
|
1081
1081
|
return /* @__PURE__ */ x.jsxs(
|
|
1082
1082
|
he,
|
|
1083
1083
|
{
|
|
1084
|
-
element:
|
|
1084
|
+
element: se.section ?? /* @__PURE__ */ x.jsx(fo, {}),
|
|
1085
1085
|
style: ce(R.section, l === "vertical" ? {
|
|
1086
1086
|
marginTop: T === 0 ? "0px" : `${u}px`,
|
|
1087
1087
|
...Ve.height > 0 ? {
|
|
1088
|
-
height: ke ? `${Ve.height}px` : `${je + Ve.height +
|
|
1088
|
+
height: ke ? `${Ve.height}px` : `${je + Ve.height + D}px`
|
|
1089
1089
|
} : {
|
|
1090
1090
|
visibility: "hidden"
|
|
1091
1091
|
}
|
|
1092
1092
|
} : {
|
|
1093
1093
|
marginLeft: T === 0 ? "0px" : `${u}px`,
|
|
1094
1094
|
...Ve.width > 0 ? {
|
|
1095
|
-
width: ke ? `${Ve.width}px` : `${je + Ve.width +
|
|
1095
|
+
width: ke ? `${Ve.width}px` : `${je + Ve.width + D}px`
|
|
1096
1096
|
} : {
|
|
1097
1097
|
visibility: "hidden"
|
|
1098
1098
|
}
|
|
@@ -1107,11 +1107,11 @@ const Is = /* @__PURE__ */ Oe(({
|
|
|
1107
1107
|
W,
|
|
1108
1108
|
{
|
|
1109
1109
|
"aria-expanded": !ke,
|
|
1110
|
-
className:
|
|
1110
|
+
className: ie({ collapsed: ke, expanded: !ke }),
|
|
1111
1111
|
index: T,
|
|
1112
1112
|
isCollapsed: ke,
|
|
1113
1113
|
role: "button",
|
|
1114
|
-
section:
|
|
1114
|
+
section: F,
|
|
1115
1115
|
style: ce(R.header),
|
|
1116
1116
|
onClick: () => H(T),
|
|
1117
1117
|
onCustomEvent: (Re, He) => M?.(T, Re, He)
|
|
@@ -1120,18 +1120,18 @@ const Is = /* @__PURE__ */ Oe(({
|
|
|
1120
1120
|
he,
|
|
1121
1121
|
{
|
|
1122
1122
|
"aria-expanded": !ke,
|
|
1123
|
-
className:
|
|
1124
|
-
element:
|
|
1123
|
+
className: ie({ collapsed: ke, expanded: !ke }),
|
|
1124
|
+
element: se.header ?? /* @__PURE__ */ x.jsx(Fn, {}),
|
|
1125
1125
|
role: "button",
|
|
1126
1126
|
style: ce(R.header),
|
|
1127
1127
|
onClick: () => H(T),
|
|
1128
1128
|
children: [
|
|
1129
|
-
/* @__PURE__ */ x.jsx("span", { dangerouslySetInnerHTML: { __html:
|
|
1130
|
-
|
|
1129
|
+
/* @__PURE__ */ x.jsx("span", { dangerouslySetInnerHTML: { __html: F.label } }),
|
|
1130
|
+
se.expandIcon && /* @__PURE__ */ x.jsx(
|
|
1131
1131
|
he,
|
|
1132
1132
|
{
|
|
1133
|
-
className:
|
|
1134
|
-
element: ke ?
|
|
1133
|
+
className: ie({ collapsed: ke, expanded: !ke }),
|
|
1134
|
+
element: ke ? se.collapseIcon ?? se.expandIcon : se.expandIcon,
|
|
1135
1135
|
style: ce(ke ? R.collapseIcon : R.expandIcon)
|
|
1136
1136
|
}
|
|
1137
1137
|
)
|
|
@@ -1149,10 +1149,10 @@ const Is = /* @__PURE__ */ Oe(({
|
|
|
1149
1149
|
}, l === "vertical" ? {
|
|
1150
1150
|
width: "100%",
|
|
1151
1151
|
height: `${je}px`,
|
|
1152
|
-
marginTop: `${
|
|
1152
|
+
marginTop: `${D}px`,
|
|
1153
1153
|
overflowY: Te < 0 || Te >= q ? "hidden" : "scroll"
|
|
1154
1154
|
} : {
|
|
1155
|
-
marginLeft: `${
|
|
1155
|
+
marginLeft: `${D}px`,
|
|
1156
1156
|
overflowX: Te < 0 || Te >= q ? "hidden" : "scroll",
|
|
1157
1157
|
width: `${je}px`,
|
|
1158
1158
|
height: "100%"
|
|
@@ -1160,9 +1160,9 @@ const Is = /* @__PURE__ */ Oe(({
|
|
|
1160
1160
|
children: /* @__PURE__ */ x.jsx(
|
|
1161
1161
|
hr,
|
|
1162
1162
|
{
|
|
1163
|
-
className:
|
|
1163
|
+
className: ie({ collapsed: ke, expanded: !ke }),
|
|
1164
1164
|
isSelectionTogglable: pe,
|
|
1165
|
-
ItemComponent:
|
|
1165
|
+
ItemComponent: B,
|
|
1166
1166
|
itemLength: re,
|
|
1167
1167
|
itemPadding: le,
|
|
1168
1168
|
items: ne,
|
|
@@ -1176,7 +1176,7 @@ const Is = /* @__PURE__ */ Oe(({
|
|
|
1176
1176
|
onCustomEvent: (Re, He, Ye) => b?.(Re, T, He, Ye),
|
|
1177
1177
|
onDeselectAt: (Re) => A(Re, T),
|
|
1178
1178
|
onSelectAt: (Re) => z(Re, T),
|
|
1179
|
-
children: !
|
|
1179
|
+
children: !B && (se.item ?? /* @__PURE__ */ x.jsx(Dn, {}))
|
|
1180
1180
|
}
|
|
1181
1181
|
)
|
|
1182
1182
|
}
|
|
@@ -1293,10 +1293,10 @@ const Ro = /* @__PURE__ */ Oe(({
|
|
|
1293
1293
|
const m = ze(e, {
|
|
1294
1294
|
bar: rn
|
|
1295
1295
|
}), N = {
|
|
1296
|
-
root:
|
|
1296
|
+
root: ie({
|
|
1297
1297
|
active: s
|
|
1298
1298
|
}),
|
|
1299
|
-
bar:
|
|
1299
|
+
bar: ie({
|
|
1300
1300
|
active: s
|
|
1301
1301
|
})
|
|
1302
1302
|
}, _ = zs({ isSplit: l, isActive: s, isTailHidden: a });
|
|
@@ -1305,12 +1305,12 @@ const Ro = /* @__PURE__ */ Oe(({
|
|
|
1305
1305
|
{
|
|
1306
1306
|
...p,
|
|
1307
1307
|
ref: g,
|
|
1308
|
-
className:
|
|
1308
|
+
className: ie(r, N.root),
|
|
1309
1309
|
children: /* @__PURE__ */ x.jsx(Vn, { count: l ? 2 : 1, children: (P) => /* @__PURE__ */ x.jsx("div", { "aria-hidden": !0, style: ce(_.section, _[`section${P}`]), children: /* @__PURE__ */ x.jsx(Vn, { count: u, children: (k) => /* @__PURE__ */ x.jsx(
|
|
1310
1310
|
he,
|
|
1311
1311
|
{
|
|
1312
1312
|
"aria-hidden": !0,
|
|
1313
|
-
className:
|
|
1313
|
+
className: ie(N.bar),
|
|
1314
1314
|
element: m.bar ?? /* @__PURE__ */ x.jsx(rn, {}),
|
|
1315
1315
|
style: (() => {
|
|
1316
1316
|
switch (u) {
|
|
@@ -1405,7 +1405,7 @@ const Ls = /* @__PURE__ */ Oe(({
|
|
|
1405
1405
|
const b = !a;
|
|
1406
1406
|
N?.(b), b ? g?.() : m?.();
|
|
1407
1407
|
}, I = {
|
|
1408
|
-
root:
|
|
1408
|
+
root: ie({
|
|
1409
1409
|
active: a
|
|
1410
1410
|
})
|
|
1411
1411
|
}, M = Ds();
|
|
@@ -1415,7 +1415,7 @@ const Ls = /* @__PURE__ */ Oe(({
|
|
|
1415
1415
|
..._,
|
|
1416
1416
|
ref: P,
|
|
1417
1417
|
"aria-expanded": a,
|
|
1418
|
-
className:
|
|
1418
|
+
className: ie(r, I.root),
|
|
1419
1419
|
style: ce(s, M.root),
|
|
1420
1420
|
onClick: k,
|
|
1421
1421
|
children: /* @__PURE__ */ x.jsx(
|
|
@@ -1452,7 +1452,7 @@ function Vs(e) {
|
|
|
1452
1452
|
...g,
|
|
1453
1453
|
"aria-disabled": u,
|
|
1454
1454
|
"aria-label": p,
|
|
1455
|
-
className:
|
|
1455
|
+
className: ie(l, { disabled: u }),
|
|
1456
1456
|
to: r,
|
|
1457
1457
|
children: s ?? p
|
|
1458
1458
|
}
|
|
@@ -1466,7 +1466,7 @@ function Vs(e) {
|
|
|
1466
1466
|
...p,
|
|
1467
1467
|
"aria-disabled": l,
|
|
1468
1468
|
"aria-label": u,
|
|
1469
|
-
className:
|
|
1469
|
+
className: ie(a, { disabled: l }),
|
|
1470
1470
|
to: r,
|
|
1471
1471
|
children: s ?? u
|
|
1472
1472
|
}
|
|
@@ -1480,7 +1480,7 @@ function Vs(e) {
|
|
|
1480
1480
|
...g,
|
|
1481
1481
|
"aria-disabled": l,
|
|
1482
1482
|
"aria-label": u,
|
|
1483
|
-
className:
|
|
1483
|
+
className: ie(a, { disabled: l }),
|
|
1484
1484
|
href: r,
|
|
1485
1485
|
rel: p ? "noopener,noreferrer" : void 0,
|
|
1486
1486
|
target: p ? "_blank" : void 0,
|
|
@@ -1586,15 +1586,15 @@ const Gs = /* @__PURE__ */ Oe(({
|
|
|
1586
1586
|
ItemComponent: N,
|
|
1587
1587
|
..._
|
|
1588
1588
|
}, P) => {
|
|
1589
|
-
const k = Ee(void 0), I = Ee(null), M = Ee(void 0), b = Ee(void 0), j = Ee(void 0), K = 1e3, [W,
|
|
1589
|
+
const k = Ee(void 0), I = Ee(null), M = Ee(void 0), b = Ee(void 0), j = Ee(void 0), K = 1e3, [W, B] = Se($n(I, l)), [Y, S] = Se(!1), C = Js({ scrollSnapEnabled: !Y, orientation: l }), E = e > 0, R = me((A) => {
|
|
1590
1590
|
m?.(A);
|
|
1591
1591
|
}, [m]), U = me((A) => {
|
|
1592
1592
|
M.current = de.make(A.clientX, A.clientY), S(!0);
|
|
1593
1593
|
}, []), G = me((A) => {
|
|
1594
1594
|
const Q = M.current, Z = b.current;
|
|
1595
1595
|
if (!Q || !Z) return;
|
|
1596
|
-
const
|
|
1597
|
-
(Math.abs(
|
|
1596
|
+
const se = 5, F = de.subtract(Q, Z);
|
|
1597
|
+
(Math.abs(F.x) > se || Math.abs(F.y) > se) && A.stopPropagation(), M.current = void 0, b.current = void 0;
|
|
1598
1598
|
}, []), te = me((A) => {
|
|
1599
1599
|
b.current = de.make(A.clientX, A.clientY), Y && S(!1);
|
|
1600
1600
|
}, [Y]), J = me(() => {
|
|
@@ -1624,13 +1624,13 @@ const Gs = /* @__PURE__ */ Oe(({
|
|
|
1624
1624
|
return be(() => {
|
|
1625
1625
|
const A = I.current;
|
|
1626
1626
|
if (!A) return;
|
|
1627
|
-
const Q = k.current === void 0, Z = k.current === r,
|
|
1628
|
-
if (u &&
|
|
1629
|
-
const T = Math.round(l === "horizontal" ? A.scrollLeft / A.clientWidth : A.scrollTop / A.clientHeight),
|
|
1630
|
-
|
|
1627
|
+
const Q = k.current === void 0, Z = k.current === r, se = (F) => {
|
|
1628
|
+
if (u && B($n(I, l)), j.current !== void 0) return;
|
|
1629
|
+
const T = Math.round(l === "horizontal" ? A.scrollLeft / A.clientWidth : A.scrollTop / A.clientHeight), D = Math.max(0, Math.min(a.length - 1, T));
|
|
1630
|
+
D !== r && (k.current = D, R(D));
|
|
1631
1631
|
};
|
|
1632
|
-
return A.addEventListener("scroll",
|
|
1633
|
-
A.removeEventListener("scroll",
|
|
1632
|
+
return A.addEventListener("scroll", se), u && B($n(I, l)), Z || (k.current = r, Q || (R(r), J())), () => {
|
|
1633
|
+
A.removeEventListener("scroll", se);
|
|
1634
1634
|
};
|
|
1635
1635
|
}, [r, l, u]), be(() => {
|
|
1636
1636
|
E && (Y ? p?.() : g?.());
|
|
@@ -1759,7 +1759,7 @@ const zo = /* @__PURE__ */ Oe(({
|
|
|
1759
1759
|
"aria-disabled": s,
|
|
1760
1760
|
"aria-placeholder": l,
|
|
1761
1761
|
"aria-required": a,
|
|
1762
|
-
className:
|
|
1762
|
+
className: ie(e, { disabled: s }),
|
|
1763
1763
|
disabled: s,
|
|
1764
1764
|
placeholder: l,
|
|
1765
1765
|
required: a,
|
|
@@ -1797,7 +1797,7 @@ const Qs = /* @__PURE__ */ Oe(({
|
|
|
1797
1797
|
}, b = (C) => {
|
|
1798
1798
|
let E = C;
|
|
1799
1799
|
return isNaN(l) || (E = Math.max(l, E)), isNaN(a) || (E = Math.min(a, E)), E;
|
|
1800
|
-
}, [j, K] = Se(I(u)), W = Zs(u),
|
|
1800
|
+
}, [j, K] = Se(I(u)), W = Zs(u), B = !isNaN(a) && u + 1 > a, Y = !isNaN(l) && u - 1 < l;
|
|
1801
1801
|
be(() => {
|
|
1802
1802
|
if (W === void 0 || W === u) return;
|
|
1803
1803
|
const C = b(u);
|
|
@@ -1812,7 +1812,7 @@ const Qs = /* @__PURE__ */ Oe(({
|
|
|
1812
1812
|
/* @__PURE__ */ x.jsx(
|
|
1813
1813
|
he,
|
|
1814
1814
|
{
|
|
1815
|
-
className:
|
|
1815
|
+
className: ie({ disabled: Y }),
|
|
1816
1816
|
element: S.subscribeButton ?? /* @__PURE__ */ x.jsx(Yn, {}),
|
|
1817
1817
|
style: ce(Ut.subtract),
|
|
1818
1818
|
onClick: () => N()
|
|
@@ -1832,7 +1832,7 @@ const Qs = /* @__PURE__ */ Oe(({
|
|
|
1832
1832
|
/* @__PURE__ */ x.jsx(
|
|
1833
1833
|
he,
|
|
1834
1834
|
{
|
|
1835
|
-
className:
|
|
1835
|
+
className: ie({ disabled: B }),
|
|
1836
1836
|
element: S.addButton ?? /* @__PURE__ */ x.jsx(Hn, {}),
|
|
1837
1837
|
style: ce(Ut.add),
|
|
1838
1838
|
onClick: () => _()
|
|
@@ -2017,9 +2017,9 @@ const ra = /* @__PURE__ */ Oe(({
|
|
|
2017
2017
|
}, k) => {
|
|
2018
2018
|
const I = (E) => {
|
|
2019
2019
|
K(E ? E.width / E.height : NaN);
|
|
2020
|
-
}, M = Ee(null), b = k ?? M, [j, K] = Se(NaN), W = isNaN(a) ? j : a,
|
|
2021
|
-
Y > 1 ? Math.max(
|
|
2022
|
-
Y > 1 ? Math.max(
|
|
2020
|
+
}, M = Ee(null), b = k ?? M, [j, K] = Se(NaN), W = isNaN(a) ? j : a, B = nt(b), Y = B.width / B.height, S = Me.make(
|
|
2021
|
+
Y > 1 ? Math.max(B.width, B.height * W) : Math.max(B.width, Math.max(B.height, B.width / W) * W),
|
|
2022
|
+
Y > 1 ? Math.max(B.height, Math.max(B.width, B.height * W) / W) : Math.max(B.height, B.width / W)
|
|
2023
2023
|
), C = ze(e, {
|
|
2024
2024
|
content: Do,
|
|
2025
2025
|
viewport: Vo
|
|
@@ -2134,7 +2134,7 @@ const Bo = /* @__PURE__ */ Oe(({
|
|
|
2134
2134
|
onTimeUpdate: j,
|
|
2135
2135
|
...K
|
|
2136
2136
|
}, W) => {
|
|
2137
|
-
const
|
|
2137
|
+
const B = Ee(null), Y = W ?? B, S = ia(p, {
|
|
2138
2138
|
onLoadStart: _,
|
|
2139
2139
|
onLoadComplete: P,
|
|
2140
2140
|
onLoadError: k
|
|
@@ -2216,11 +2216,11 @@ const aa = /* @__PURE__ */ Oe(({
|
|
|
2216
2216
|
onLoadMetadataError: j,
|
|
2217
2217
|
onPause: K,
|
|
2218
2218
|
onPlay: W,
|
|
2219
|
-
onSizeChange:
|
|
2219
|
+
onSizeChange: B,
|
|
2220
2220
|
...Y
|
|
2221
2221
|
}, S) => {
|
|
2222
2222
|
const C = (A) => {
|
|
2223
|
-
G(A ? A.width / A.height : NaN),
|
|
2223
|
+
G(A ? A.width / A.height : NaN), B?.(A);
|
|
2224
2224
|
}, E = S ?? Ee(null), R = nt(E), [U, G] = Se(NaN), te = isNaN(a) ? U : a, J = R.width / R.height, H = Me.make(
|
|
2225
2225
|
J > 1 ? Math.max(R.width, R.height * te) : Math.max(R.width, Math.max(R.height, R.width / te) * te),
|
|
2226
2226
|
J > 1 ? Math.max(R.height, Math.max(R.width, R.height * te) / te) : Math.max(R.height, R.width / te)
|
|
@@ -2407,7 +2407,7 @@ const fa = /* @__PURE__ */ Oe(({
|
|
|
2407
2407
|
selection: j = [],
|
|
2408
2408
|
selectionMode: K = "single",
|
|
2409
2409
|
onActivateAt: W,
|
|
2410
|
-
onCollapse:
|
|
2410
|
+
onCollapse: B,
|
|
2411
2411
|
onDeselectAt: Y,
|
|
2412
2412
|
onExpand: S,
|
|
2413
2413
|
onSelectAt: C,
|
|
@@ -2417,23 +2417,23 @@ const fa = /* @__PURE__ */ Oe(({
|
|
|
2417
2417
|
ToggleComponent: G,
|
|
2418
2418
|
...te
|
|
2419
2419
|
}, J) => {
|
|
2420
|
-
const H = Ee(null), z = nt(H), A = k.length, Q = ga(k, I, M, m), Z = _ ?? (b === "vertical" ? z.height : z.width),
|
|
2420
|
+
const H = Ee(null), z = nt(H), A = k.length, Q = ga(k, I, M, m), Z = _ ?? (b === "vertical" ? z.height : z.width), se = Z * Q + P * (Q - 1), F = pa(j, k), [T, D] = Se(u ?? !0), ne = ma({ isCollapsed: T, collectionPadding: l, isInverted: p, maxVisibleItems: I, menuLength: se, numItems: A, orientation: b }), re = ze(e, {
|
|
2421
2421
|
collapseIcon: Xo,
|
|
2422
2422
|
collection: qn,
|
|
2423
2423
|
expandIcon: Uo,
|
|
2424
2424
|
item: Gn,
|
|
2425
2425
|
toggle: Wn
|
|
2426
2426
|
}), le = () => {
|
|
2427
|
-
T && (
|
|
2427
|
+
T && (D(!1), S?.());
|
|
2428
2428
|
}, pe = () => {
|
|
2429
|
-
T || (
|
|
2429
|
+
T || (D(!0), B?.());
|
|
2430
2430
|
}, Ne = () => {
|
|
2431
2431
|
T ? le() : pe();
|
|
2432
2432
|
}, Te = (xe) => {
|
|
2433
2433
|
C?.(xe), K === "single" && a && pe();
|
|
2434
2434
|
};
|
|
2435
2435
|
return be(() => {
|
|
2436
|
-
u !== void 0 &&
|
|
2436
|
+
u !== void 0 && D(u);
|
|
2437
2437
|
}, [u]), be(() => {
|
|
2438
2438
|
const xe = (q) => {
|
|
2439
2439
|
if (T || !(q.target instanceof Node)) return;
|
|
@@ -2456,7 +2456,7 @@ const fa = /* @__PURE__ */ Oe(({
|
|
|
2456
2456
|
{
|
|
2457
2457
|
...te,
|
|
2458
2458
|
ref: J,
|
|
2459
|
-
className:
|
|
2459
|
+
className: ie(r, { collapsed: T, expanded: !T }),
|
|
2460
2460
|
style: ce(s, ne.root),
|
|
2461
2461
|
children: /* @__PURE__ */ x.jsxs("div", { ref: H, style: ce(ne.body), children: [
|
|
2462
2462
|
G ? /* @__PURE__ */ x.jsx(
|
|
@@ -2464,7 +2464,7 @@ const fa = /* @__PURE__ */ Oe(({
|
|
|
2464
2464
|
{
|
|
2465
2465
|
"aria-expanded": !T,
|
|
2466
2466
|
"aria-haspopup": "listbox",
|
|
2467
|
-
className:
|
|
2467
|
+
className: ie({ collapsed: T, expanded: !T }),
|
|
2468
2468
|
style: ce(ne.toggle),
|
|
2469
2469
|
onClick: Ne,
|
|
2470
2470
|
onCustomEvent: (xe, q) => R?.(xe, q)
|
|
@@ -2474,16 +2474,16 @@ const fa = /* @__PURE__ */ Oe(({
|
|
|
2474
2474
|
{
|
|
2475
2475
|
"aria-expanded": !T,
|
|
2476
2476
|
"aria-haspopup": "listbox",
|
|
2477
|
-
className:
|
|
2477
|
+
className: ie({ collapsed: T, expanded: !T }),
|
|
2478
2478
|
element: re.toggle ?? /* @__PURE__ */ x.jsx(Wn, {}),
|
|
2479
2479
|
style: ce(ne.toggle),
|
|
2480
2480
|
onClick: Ne,
|
|
2481
2481
|
children: [
|
|
2482
|
-
/* @__PURE__ */ x.jsx("span", { dangerouslySetInnerHTML: { __html: g?.(
|
|
2482
|
+
/* @__PURE__ */ x.jsx("span", { dangerouslySetInnerHTML: { __html: g?.(F) ?? (F.length > 0 ? F.map((xe) => k[xe]).join(", ") : "") } }),
|
|
2483
2483
|
re.expandIcon && /* @__PURE__ */ x.jsx(
|
|
2484
2484
|
he,
|
|
2485
2485
|
{
|
|
2486
|
-
className:
|
|
2486
|
+
className: ie({ collapsed: T, expanded: !T }),
|
|
2487
2487
|
element: T ? re.collapseIcon ?? re.expandIcon : re.expandIcon,
|
|
2488
2488
|
style: ce(T ? ne.collapseIcon : ne.expandIcon)
|
|
2489
2489
|
}
|
|
@@ -2503,7 +2503,7 @@ const fa = /* @__PURE__ */ Oe(({
|
|
|
2503
2503
|
layout: m,
|
|
2504
2504
|
numSegments: M,
|
|
2505
2505
|
orientation: b,
|
|
2506
|
-
selection:
|
|
2506
|
+
selection: F,
|
|
2507
2507
|
selectionMode: K,
|
|
2508
2508
|
style: ce(ne.collection),
|
|
2509
2509
|
onActivateAt: W,
|
|
@@ -3712,21 +3712,21 @@ const vc = /* @__PURE__ */ Oe(({
|
|
|
3712
3712
|
ignorePiTags: !0,
|
|
3713
3713
|
removeNSPrefix: !0,
|
|
3714
3714
|
trimValues: !0,
|
|
3715
|
-
updateTag: (K, W,
|
|
3715
|
+
updateTag: (K, W, B) => {
|
|
3716
3716
|
if (u && K.toLowerCase() === "style") return !1;
|
|
3717
|
-
const Y = Object.keys(
|
|
3717
|
+
const Y = Object.keys(B);
|
|
3718
3718
|
for (const S of Y)
|
|
3719
|
-
K.toLowerCase() === "svg" && (l && k.includes(S.toLowerCase()) && delete
|
|
3719
|
+
K.toLowerCase() === "svg" && (l && k.includes(S.toLowerCase()) && delete B[S], e !== "preserve" && (S.toLowerCase() === `${m}width` && delete B[S], S.toLowerCase() === `${m}height` && delete B[S])), a && N.includes(S.toLowerCase()) && delete B[S], s && _.includes(S.toLowerCase()) && delete B[S], u && P.includes(S.toLowerCase()) && delete B[S];
|
|
3720
3720
|
if (K.toLowerCase() === "svg")
|
|
3721
3721
|
switch (e) {
|
|
3722
3722
|
case "fill":
|
|
3723
|
-
|
|
3723
|
+
B[`${m}width`] = "100%", B[`${m}height`] = "100%";
|
|
3724
3724
|
break;
|
|
3725
3725
|
case "width":
|
|
3726
|
-
|
|
3726
|
+
B[`${m}width`] = "100%";
|
|
3727
3727
|
break;
|
|
3728
3728
|
case "height":
|
|
3729
|
-
|
|
3729
|
+
B[`${m}height`] = "100%";
|
|
3730
3730
|
break;
|
|
3731
3731
|
}
|
|
3732
3732
|
return K;
|
|
@@ -3760,7 +3760,7 @@ const xo = "base-", yc = /* @__PURE__ */ Oe(({
|
|
|
3760
3760
|
verticalSpacing: g = 0,
|
|
3761
3761
|
...m
|
|
3762
3762
|
}, N) => {
|
|
3763
|
-
const _ = Ee(null), [P, k] = Se(NaN), [I, M] = Se(NaN), [b, j] = Se(NaN), [K, W] = Se(NaN),
|
|
3763
|
+
const _ = Ee(null), [P, k] = Se(NaN), [I, M] = Se(NaN), [b, j] = Se(NaN), [K, W] = Se(NaN), B = () => ge.from(_.current)?.width ?? 0, Y = () => ge.from(_.current)?.height ?? 0, S = () => {
|
|
3764
3764
|
const U = _.current;
|
|
3765
3765
|
if (!U) return;
|
|
3766
3766
|
const G = U.children, te = p;
|
|
@@ -3772,17 +3772,17 @@ const xo = "base-", yc = /* @__PURE__ */ Oe(({
|
|
|
3772
3772
|
const J = [...new Array(te)].map(() => 0);
|
|
3773
3773
|
for (const A of Array.from(G)) {
|
|
3774
3774
|
if (!(A instanceof HTMLElement)) continue;
|
|
3775
|
-
const Q = wo(A, p), [Z,
|
|
3776
|
-
A.role = "gridcell", A.style.position = "absolute", A.style.width = `calc(${100 / te * Q}% - ${a * (te - 1) / te * Q}px + ${a * (Q - 1)}px)`, A.style.height = "", A.style.left = `calc(${100 / te * Z}% - ${a * (te - 1) / te * Z}px + ${a * Z}px)`, A.style.top = `${
|
|
3777
|
-
for (let
|
|
3778
|
-
J[Z +
|
|
3775
|
+
const Q = wo(A, p), [Z, se] = bo(J, Q);
|
|
3776
|
+
A.role = "gridcell", A.style.position = "absolute", A.style.width = `calc(${100 / te * Q}% - ${a * (te - 1) / te * Q}px + ${a * (Q - 1)}px)`, A.style.height = "", A.style.left = `calc(${100 / te * Z}% - ${a * (te - 1) / te * Z}px + ${a * Z}px)`, A.style.top = `${se + (se === 0 ? 0 : g)}px`;
|
|
3777
|
+
for (let F = 0; F < Q; F++)
|
|
3778
|
+
J[Z + F] = se + (se === 0 ? 0 : g) + (ge.from(A)?.height ?? 0);
|
|
3779
3779
|
if (e && Z + Q === te) {
|
|
3780
|
-
const
|
|
3780
|
+
const F = Pt(J);
|
|
3781
3781
|
for (let T = 0; T < te; T++)
|
|
3782
|
-
J[T] =
|
|
3782
|
+
J[T] = F;
|
|
3783
3783
|
}
|
|
3784
3784
|
}
|
|
3785
|
-
const H =
|
|
3785
|
+
const H = B(), z = Pt(J, te);
|
|
3786
3786
|
if (k(H), M(z), isNaN(z) || (U.style.height = `${z}px`), l)
|
|
3787
3787
|
for (const A of Array.from(G))
|
|
3788
3788
|
A instanceof HTMLElement && (A.style.left = `calc(${H}px - ${A.style.left} - ${A.getBoundingClientRect().width}px)`);
|
|
@@ -3790,14 +3790,14 @@ const xo = "base-", yc = /* @__PURE__ */ Oe(({
|
|
|
3790
3790
|
const J = [...new Array(te)].map(() => 0);
|
|
3791
3791
|
for (const A of Array.from(G)) {
|
|
3792
3792
|
if (!(A instanceof HTMLElement)) continue;
|
|
3793
|
-
const Q = wo(A, p), [Z,
|
|
3794
|
-
A.style.position = "absolute", A.style.width = "", A.style.height = `calc(${100 / te * Q}% - ${g * (te - 1) / te * Q}px + ${g * (Q - 1)}px)`, A.style.top = `calc(${100 / te * Z}% - ${g * (te - 1) / te * Z}px + ${g * Z}px)`, A.style.left = `${
|
|
3795
|
-
for (let
|
|
3796
|
-
J[Z +
|
|
3793
|
+
const Q = wo(A, p), [Z, se] = bo(J, Q);
|
|
3794
|
+
A.style.position = "absolute", A.style.width = "", A.style.height = `calc(${100 / te * Q}% - ${g * (te - 1) / te * Q}px + ${g * (Q - 1)}px)`, A.style.top = `calc(${100 / te * Z}% - ${g * (te - 1) / te * Z}px + ${g * Z}px)`, A.style.left = `${se + (se === 0 ? 0 : a)}px`;
|
|
3795
|
+
for (let F = 0; F < Q; F++)
|
|
3796
|
+
J[Z + F] = se + (se === 0 ? 0 : a) + (ge.from(A)?.width ?? 0);
|
|
3797
3797
|
if (e && Z + Q === te) {
|
|
3798
|
-
const
|
|
3798
|
+
const F = Pt(J);
|
|
3799
3799
|
for (let T = 0; T < te; T++)
|
|
3800
|
-
J[T] =
|
|
3800
|
+
J[T] = F;
|
|
3801
3801
|
}
|
|
3802
3802
|
}
|
|
3803
3803
|
const H = Y(), z = Pt(J, te);
|
|
@@ -3806,7 +3806,7 @@ const xo = "base-", yc = /* @__PURE__ */ Oe(({
|
|
|
3806
3806
|
A instanceof HTMLElement && (A.style.top = `calc(${H}px - ${A.style.top} - ${A.getBoundingClientRect().height}px)`);
|
|
3807
3807
|
}
|
|
3808
3808
|
}, C = me((U) => {
|
|
3809
|
-
const G = ge.size(ge.from(U) ?? ge.zero), te =
|
|
3809
|
+
const G = ge.size(ge.from(U) ?? ge.zero), te = B(), J = Y();
|
|
3810
3810
|
(P !== te || I !== J || G.width !== b || G.height !== K) && (S(), j(G.width), W(G.height));
|
|
3811
3811
|
}, [e, a, l, p, g, u]);
|
|
3812
3812
|
dr(_, {
|
|
@@ -3826,7 +3826,7 @@ const xo = "base-", yc = /* @__PURE__ */ Oe(({
|
|
|
3826
3826
|
{
|
|
3827
3827
|
...m,
|
|
3828
3828
|
ref: N,
|
|
3829
|
-
className:
|
|
3829
|
+
className: ie(s, E.root),
|
|
3830
3830
|
role: "grid",
|
|
3831
3831
|
children: /* @__PURE__ */ x.jsx("div", { ref: _, style: R.body, children: r })
|
|
3832
3832
|
}
|
|
@@ -3834,7 +3834,7 @@ const xo = "base-", yc = /* @__PURE__ */ Oe(({
|
|
|
3834
3834
|
});
|
|
3835
3835
|
function xc({ orientation: e = "horizontal" }) {
|
|
3836
3836
|
return {
|
|
3837
|
-
root:
|
|
3837
|
+
root: ie(e)
|
|
3838
3838
|
};
|
|
3839
3839
|
}
|
|
3840
3840
|
function bc({ orientation: e = "horizontal", minHeight: r = NaN, minWidth: s = NaN }) {
|
|
@@ -4028,7 +4028,7 @@ function Sc() {
|
|
|
4028
4028
|
var j = function(n) {
|
|
4029
4029
|
return !(!n || !n.Window) && n instanceof n.Window;
|
|
4030
4030
|
}, K = void 0, W = void 0;
|
|
4031
|
-
function
|
|
4031
|
+
function B(n) {
|
|
4032
4032
|
K = n;
|
|
4033
4033
|
var t = n.document.createTextNode("");
|
|
4034
4034
|
t.ownerDocument !== n.document && typeof n.wrap == "function" && n.wrap(t) === t && (n = n.wrap(n)), W = n;
|
|
@@ -4036,7 +4036,7 @@ function Sc() {
|
|
|
4036
4036
|
function Y(n) {
|
|
4037
4037
|
return j(n) ? n : (n.ownerDocument || n).defaultView || W.window;
|
|
4038
4038
|
}
|
|
4039
|
-
typeof window < "u" && window &&
|
|
4039
|
+
typeof window < "u" && window && B(window);
|
|
4040
4040
|
var S = function(n) {
|
|
4041
4041
|
return !!n && l(n) === "object";
|
|
4042
4042
|
}, C = function(n) {
|
|
@@ -4107,14 +4107,14 @@ function Sc() {
|
|
|
4107
4107
|
}
|
|
4108
4108
|
return !1;
|
|
4109
4109
|
}
|
|
4110
|
-
function
|
|
4110
|
+
function se(n, t) {
|
|
4111
4111
|
for (; E.element(n); ) {
|
|
4112
4112
|
if (T(n, t)) return n;
|
|
4113
|
-
n =
|
|
4113
|
+
n = F(n);
|
|
4114
4114
|
}
|
|
4115
4115
|
return null;
|
|
4116
4116
|
}
|
|
4117
|
-
function
|
|
4117
|
+
function F(n) {
|
|
4118
4118
|
var t = n.parentNode;
|
|
4119
4119
|
if (E.docFrag(t)) {
|
|
4120
4120
|
for (; (t = t.host) && E.docFrag(t); ) ;
|
|
@@ -4125,17 +4125,17 @@ function Sc() {
|
|
|
4125
4125
|
function T(n, t) {
|
|
4126
4126
|
return W !== K && (t = t.replace(/\/deep\//g, " ")), n[Q.prefixedMatchesSelector](t);
|
|
4127
4127
|
}
|
|
4128
|
-
var
|
|
4128
|
+
var D = function(n) {
|
|
4129
4129
|
return n.parentNode || n.host;
|
|
4130
4130
|
};
|
|
4131
4131
|
function ne(n, t) {
|
|
4132
|
-
for (var o, i = [], c = n; (o =
|
|
4132
|
+
for (var o, i = [], c = n; (o = D(c)) && c !== t && o !== c.ownerDocument; ) i.unshift(c), c = o;
|
|
4133
4133
|
return i;
|
|
4134
4134
|
}
|
|
4135
4135
|
function re(n, t, o) {
|
|
4136
4136
|
for (; E.element(n); ) {
|
|
4137
4137
|
if (T(n, t)) return !0;
|
|
4138
|
-
if ((n =
|
|
4138
|
+
if ((n = F(n)) === o) return T(n, t);
|
|
4139
4139
|
}
|
|
4140
4140
|
return !1;
|
|
4141
4141
|
}
|
|
@@ -4155,7 +4155,7 @@ function Sc() {
|
|
|
4155
4155
|
return o;
|
|
4156
4156
|
}
|
|
4157
4157
|
function Te(n) {
|
|
4158
|
-
for (var t = []; n; ) t.push(n), n =
|
|
4158
|
+
for (var t = []; n; ) t.push(n), n = F(n);
|
|
4159
4159
|
return t;
|
|
4160
4160
|
}
|
|
4161
4161
|
function xe(n) {
|
|
@@ -4166,7 +4166,7 @@ function Sc() {
|
|
|
4166
4166
|
return n;
|
|
4167
4167
|
}
|
|
4168
4168
|
function Fe(n, t, o) {
|
|
4169
|
-
return n === "parent" ?
|
|
4169
|
+
return n === "parent" ? F(o) : n === "self" ? t.getRect(o) : se(o, n);
|
|
4170
4170
|
}
|
|
4171
4171
|
function je(n, t, o, i) {
|
|
4172
4172
|
var c = n;
|
|
@@ -4347,8 +4347,8 @@ function Sc() {
|
|
|
4347
4347
|
var y = w[v];
|
|
4348
4348
|
if (y.options.drop.enabled) {
|
|
4349
4349
|
var O = y.options.drop.accept;
|
|
4350
|
-
if (!(E.element(O) && O !== d || E.string(O) && !T(d, O) || E.func(O) && !O({ dropzone: y, draggableElement: d }))) for (var $ = 0,
|
|
4351
|
-
var L =
|
|
4350
|
+
if (!(E.element(O) && O !== d || E.string(O) && !T(d, O) || E.func(O) && !O({ dropzone: y, draggableElement: d }))) for (var $ = 0, V = y.getAllElements(); $ < V.length; $++) {
|
|
4351
|
+
var L = V[$];
|
|
4352
4352
|
L !== d && h.push({ dropzone: y, element: L, rect: y.getRect(L) });
|
|
4353
4353
|
}
|
|
4354
4354
|
}
|
|
@@ -4362,14 +4362,14 @@ function Sc() {
|
|
|
4362
4362
|
}
|
|
4363
4363
|
function Or(n, t, o) {
|
|
4364
4364
|
for (var i = n.dropState, c = n.interactable, f = n.element, d = [], h = 0, v = i.activeDrops; h < v.length; h++) {
|
|
4365
|
-
var w = v[h], y = w.dropzone, O = w.element, $ = w.rect,
|
|
4366
|
-
d.push(
|
|
4365
|
+
var w = v[h], y = w.dropzone, O = w.element, $ = w.rect, V = y.dropCheck(t, o, c, f, O, $);
|
|
4366
|
+
d.push(V ? O : null);
|
|
4367
4367
|
}
|
|
4368
4368
|
var L = function(X) {
|
|
4369
4369
|
for (var oe, ee, ae, ve = [], we = 0; we < X.length; we++) {
|
|
4370
4370
|
var ue = X[we], ye = X[oe];
|
|
4371
4371
|
if (ue && we !== oe) if (ye) {
|
|
4372
|
-
var $e =
|
|
4372
|
+
var $e = D(ue), Pe = D(ye);
|
|
4373
4373
|
if ($e !== ue.ownerDocument) if (Pe !== ue.ownerDocument) if ($e !== Pe) {
|
|
4374
4374
|
ve = ve.length ? ve : ne(ye);
|
|
4375
4375
|
var Le = void 0;
|
|
@@ -4428,9 +4428,9 @@ function Sc() {
|
|
|
4428
4428
|
return E.bool(h) ? (d.options.drop.enabled = h, d) : d.options.drop;
|
|
4429
4429
|
}(this, f);
|
|
4430
4430
|
}, i.prototype.dropCheck = function(f, d, h, v, w, y) {
|
|
4431
|
-
return function(O, $,
|
|
4431
|
+
return function(O, $, V, L, X, oe, ee) {
|
|
4432
4432
|
var ae = !1;
|
|
4433
|
-
if (!(ee = ee || O.getRect(oe))) return !!O.options.drop.checker && O.options.drop.checker($,
|
|
4433
|
+
if (!(ee = ee || O.getRect(oe))) return !!O.options.drop.checker && O.options.drop.checker($, V, ae, O, oe, L, X);
|
|
4434
4434
|
var ve = O.options.drop.overlap;
|
|
4435
4435
|
if (ve === "pointer") {
|
|
4436
4436
|
var we = He(L, X, "drag"), ue = br($);
|
|
@@ -4443,7 +4443,7 @@ function Sc() {
|
|
|
4443
4443
|
var Le = Pe.left + Pe.width / 2, De = Pe.top + Pe.height / 2;
|
|
4444
4444
|
ae = Le >= ee.left && Le <= ee.right && De >= ee.top && De <= ee.bottom;
|
|
4445
4445
|
}
|
|
4446
|
-
return Pe && E.number(ve) && (ae = Math.max(0, Math.min(ee.right, Pe.right) - Math.max(ee.left, Pe.left)) * Math.max(0, Math.min(ee.bottom, Pe.bottom) - Math.max(ee.top, Pe.top)) / (Pe.width * Pe.height) >= ve), O.options.drop.checker && (ae = O.options.drop.checker($,
|
|
4446
|
+
return Pe && E.number(ve) && (ae = Math.max(0, Math.min(ee.right, Pe.right) - Math.max(ee.left, Pe.left)) * Math.max(0, Math.min(ee.bottom, Pe.bottom) - Math.max(ee.top, Pe.top)) / (Pe.width * Pe.height) >= ve), O.options.drop.checker && (ae = O.options.drop.checker($, V, ae, O, oe, L, X)), ae;
|
|
4447
4447
|
}(this, f, d, h, v, w, y);
|
|
4448
4448
|
}, o.dynamicDrop = function(f) {
|
|
4449
4449
|
return E.bool(f) ? (n.dynamicDrop = f, o) : n.dynamicDrop;
|
|
@@ -4559,8 +4559,8 @@ function Sc() {
|
|
|
4559
4559
|
if (q($, y), d) {
|
|
4560
4560
|
if (q(y, h), f === "reposition") {
|
|
4561
4561
|
if (y.top > y.bottom) {
|
|
4562
|
-
var
|
|
4563
|
-
y.top = y.bottom, y.bottom =
|
|
4562
|
+
var V = y.top;
|
|
4563
|
+
y.top = y.bottom, y.bottom = V;
|
|
4564
4564
|
}
|
|
4565
4565
|
if (y.left > y.right) {
|
|
4566
4566
|
var L = y.left;
|
|
@@ -4696,7 +4696,7 @@ function Sc() {
|
|
|
4696
4696
|
var t = n.Interactable;
|
|
4697
4697
|
t.prototype.getAction = function(o, i, c, f) {
|
|
4698
4698
|
var d = function(h, v, w, y, O) {
|
|
4699
|
-
var $ = h.getRect(y),
|
|
4699
|
+
var $ = h.getRect(y), V = v.buttons || { 0: 1, 1: 4, 3: 8, 4: 16 }[v.button], L = { action: null, interactable: h, interaction: w, element: y, rect: $, buttons: V };
|
|
4700
4700
|
return O.fire("auto-start:check", L), L.action;
|
|
4701
4701
|
}(this, i, c, f, n);
|
|
4702
4702
|
return this.options.actionChecker ? this.options.actionChecker(o, i, d, this, f, c) : d;
|
|
@@ -4728,7 +4728,7 @@ function Sc() {
|
|
|
4728
4728
|
f = [], d = [], c.interactables.forEachMatch(h, v);
|
|
4729
4729
|
var w = vi(n, t, o, f, d, i, c);
|
|
4730
4730
|
if (w.action && !w.interactable.options[w.action.name].manualStart) return w;
|
|
4731
|
-
h =
|
|
4731
|
+
h = F(h);
|
|
4732
4732
|
}
|
|
4733
4733
|
return { action: null, interactable: null, element: null };
|
|
4734
4734
|
}
|
|
@@ -4740,8 +4740,8 @@ function Sc() {
|
|
|
4740
4740
|
var c = n.options, f = c[o.name].max, d = c[o.name].maxPerElement, h = i.autoStart.maxInteractions, v = 0, w = 0, y = 0;
|
|
4741
4741
|
if (!(f && d && h)) return !1;
|
|
4742
4742
|
for (var O = 0, $ = i.interactions.list; O < $.length; O++) {
|
|
4743
|
-
var
|
|
4744
|
-
if (
|
|
4743
|
+
var V = $[O], L = V.prepared.name;
|
|
4744
|
+
if (V.interacting() && (++v >= h || V.interactable === n && ((w += L === o.name ? 1 : 0) >= f || V.element === t && (y++, L === o.name && y >= d))))
|
|
4745
4745
|
return !1;
|
|
4746
4746
|
}
|
|
4747
4747
|
return h > 0;
|
|
@@ -4806,12 +4806,12 @@ function Sc() {
|
|
|
4806
4806
|
}
|
|
4807
4807
|
}
|
|
4808
4808
|
}; E.element(O); ) {
|
|
4809
|
-
var
|
|
4810
|
-
if (
|
|
4811
|
-
o.prepared.name = "drag", o.interactable =
|
|
4809
|
+
var V = t.interactables.forEachMatch(O, $);
|
|
4810
|
+
if (V) {
|
|
4811
|
+
o.prepared.name = "drag", o.interactable = V, o.element = O;
|
|
4812
4812
|
break;
|
|
4813
4813
|
}
|
|
4814
|
-
O =
|
|
4814
|
+
O = F(O);
|
|
4815
4815
|
}
|
|
4816
4816
|
}
|
|
4817
4817
|
}
|
|
@@ -4890,8 +4890,8 @@ function Sc() {
|
|
|
4890
4890
|
var i, c, f = t.phase, d = this.interaction, h = function(w) {
|
|
4891
4891
|
var y = w.interactable.options[w.prepared.name], O = y.modifiers;
|
|
4892
4892
|
return O && O.length ? O : ["snap", "snapSize", "snapEdges", "restrict", "restrictEdges", "restrictSize"].map(function($) {
|
|
4893
|
-
var
|
|
4894
|
-
return
|
|
4893
|
+
var V = y[$];
|
|
4894
|
+
return V && V.enabled && { options: V, methods: V._methods };
|
|
4895
4895
|
}).filter(function($) {
|
|
4896
4896
|
return !!$;
|
|
4897
4897
|
});
|
|
@@ -4911,8 +4911,8 @@ function Sc() {
|
|
|
4911
4911
|
var o = t.phase, i = t.preEnd, c = t.skipModifiers, f = t.rect, d = t.edges;
|
|
4912
4912
|
t.coords = q({}, t.pageCoords), t.rect = q({}, f), t.edges = q({}, d);
|
|
4913
4913
|
for (var h = c ? this.states.slice(c) : this.states, v = Lt(t.coords, t.rect), w = 0; w < h.length; w++) {
|
|
4914
|
-
var y, O = h[w], $ = O.options,
|
|
4915
|
-
(y = O.methods) != null && y.set && this.shouldDo($, i, o) && (t.state = O, L = O.methods.set(t), Re(t.edges, t.rect, { x: t.coords.x -
|
|
4914
|
+
var y, O = h[w], $ = O.options, V = q({}, t.coords), L = null;
|
|
4915
|
+
(y = O.methods) != null && y.set && this.shouldDo($, i, o) && (t.state = O, L = O.methods.set(t), Re(t.edges, t.rect, { x: t.coords.x - V.x, y: t.coords.y - V.y })), v.eventProps.push(L);
|
|
4916
4916
|
}
|
|
4917
4917
|
q(this.edges, t.edges), v.delta.x = t.coords.x - t.pageCoords.x, v.delta.y = t.coords.y - t.pageCoords.y, v.rectDelta.left = t.rect.left - f.left, v.rectDelta.right = t.rect.right - f.right, v.rectDelta.top = t.rect.top - f.top, v.rectDelta.bottom = t.rect.bottom - f.bottom;
|
|
4918
4918
|
var X = this.result.coords, oe = this.result.rect;
|
|
@@ -4925,8 +4925,8 @@ function Sc() {
|
|
|
4925
4925
|
var o = this.interaction, i = t.phase, c = o.coords.cur, f = o.coords.start, d = this.result, h = this.startDelta, v = d.delta;
|
|
4926
4926
|
i === "start" && q(this.startDelta, d.delta);
|
|
4927
4927
|
for (var w = 0, y = [[f, h], [c, v]]; w < y.length; w++) {
|
|
4928
|
-
var O = y[w], $ = O[0],
|
|
4929
|
-
$.page.x +=
|
|
4928
|
+
var O = y[w], $ = O[0], V = O[1];
|
|
4929
|
+
$.page.x += V.x, $.page.y += V.y, $.client.x += V.x, $.client.y += V.y;
|
|
4930
4930
|
}
|
|
4931
4931
|
var L = this.result.rectDelta, X = t.rect || o.rect;
|
|
4932
4932
|
X.left += L.left, X.right += L.right, X.top += L.top, X.bottom += L.bottom, X.width = X.right - X.left, X.height = X.bottom - X.top;
|
|
@@ -4972,8 +4972,8 @@ function Sc() {
|
|
|
4972
4972
|
var o = t.interaction, i = o.coords, c = o.rect, f = o.modification;
|
|
4973
4973
|
if (f.result) {
|
|
4974
4974
|
for (var d = f.startDelta, h = f.result, v = h.delta, w = h.rectDelta, y = 0, O = [[i.start, d], [i.cur, v]]; y < O.length; y++) {
|
|
4975
|
-
var $ = O[y],
|
|
4976
|
-
|
|
4975
|
+
var $ = O[y], V = $[0], L = $[1];
|
|
4976
|
+
V.page.x -= L.x, V.page.y -= L.y, V.client.x -= L.x, V.client.y -= L.y;
|
|
4977
4977
|
}
|
|
4978
4978
|
c.left -= w.left, c.right -= w.right, c.top -= w.top, c.bottom -= w.bottom;
|
|
4979
4979
|
}
|
|
@@ -5033,8 +5033,8 @@ function Sc() {
|
|
|
5033
5033
|
function o(i, c, f, d, h, v, w) {
|
|
5034
5034
|
var y;
|
|
5035
5035
|
u(this, o), (y = t.call(this, i)).relatedTarget = null, y.screenX = void 0, y.screenY = void 0, y.button = void 0, y.buttons = void 0, y.ctrlKey = void 0, y.shiftKey = void 0, y.altKey = void 0, y.metaKey = void 0, y.page = void 0, y.client = void 0, y.delta = void 0, y.rect = void 0, y.x0 = void 0, y.y0 = void 0, y.t0 = void 0, y.dt = void 0, y.duration = void 0, y.clientX0 = void 0, y.clientY0 = void 0, y.velocity = void 0, y.speed = void 0, y.swipe = void 0, y.axes = void 0, y.preEnd = void 0, h = h || i.element;
|
|
5036
|
-
var O = i.interactable, $ = (O && O.options || Vr).deltaSource,
|
|
5037
|
-
return y.page = q({}, ee.page), y.client = q({}, ee.client), y.rect = q({}, i.rect), y.timeStamp = ee.timeStamp, X || (y.page.x -=
|
|
5036
|
+
var O = i.interactable, $ = (O && O.options || Vr).deltaSource, V = He(O, h, f), L = d === "start", X = d === "end", oe = L ? k(y) : i.prevEvent, ee = L ? i.coords.start : X ? { page: oe.page, client: oe.client, timeStamp: i.coords.cur.timeStamp } : i.coords.cur;
|
|
5037
|
+
return y.page = q({}, ee.page), y.client = q({}, ee.client), y.rect = q({}, i.rect), y.timeStamp = ee.timeStamp, X || (y.page.x -= V.x, y.page.y -= V.y, y.client.x -= V.x, y.client.y -= V.y), y.ctrlKey = c.ctrlKey, y.altKey = c.altKey, y.shiftKey = c.shiftKey, y.metaKey = c.metaKey, y.button = c.button, y.buttons = c.buttons, y.target = h, y.currentTarget = h, y.preEnd = v, y.type = w || f + (d || ""), y.interactable = O, y.t0 = L ? i.pointers[i.pointers.length - 1].downTime : oe.t0, y.x0 = i.coords.start.page.x - V.x, y.y0 = i.coords.start.page.y - V.y, y.clientX0 = i.coords.start.client.x - V.x, y.clientY0 = i.coords.start.client.y - V.y, y.delta = L || X ? { x: 0, y: 0 } : { x: y[$].x - oe[$].x, y: y[$].y - oe[$].y }, y.dt = i.coords.delta.timeStamp, y.duration = y.timeStamp - y.t0, y.velocity = q({}, i.coords.velocity[$]), y.speed = pt(y.velocity.x, y.velocity.y), y.swipe = X || d === "inertiastart" ? y.getSwipe() : null, y;
|
|
5038
5038
|
}
|
|
5039
5039
|
return g(o, [{ key: "getSwipe", value: function() {
|
|
5040
5040
|
var i = this._interaction;
|
|
@@ -5245,8 +5245,8 @@ function Sc() {
|
|
|
5245
5245
|
} }, { key: "inertiaTick", value: function() {
|
|
5246
5246
|
var t, o, i, c, f, d, h, v = this, w = this.interaction, y = Ft(w).resistance, O = (w._now() - this.t0) / 1e3;
|
|
5247
5247
|
if (O < this.te) {
|
|
5248
|
-
var $,
|
|
5249
|
-
this.isModified ? (t = 0, o = 0, i = this.targetOffset.x, c = this.targetOffset.y, f = this.modifiedOffset.x, d = this.modifiedOffset.y, $ = { x: Ur(h =
|
|
5248
|
+
var $, V = 1 - (Math.exp(-y * O) - this.lambda_v0) / this.one_ve_v0;
|
|
5249
|
+
this.isModified ? (t = 0, o = 0, i = this.targetOffset.x, c = this.targetOffset.y, f = this.modifiedOffset.x, d = this.modifiedOffset.y, $ = { x: Ur(h = V, t, i, f), y: Ur(h, o, c, d) }) : $ = { x: this.targetOffset.x * V, y: this.targetOffset.y * V };
|
|
5250
5250
|
var L = { x: $.x - this.currentOffset.x, y: $.y - this.currentOffset.y };
|
|
5251
5251
|
this.currentOffset.x += L.x, this.currentOffset.y += L.y, w.offsetBy(L), w.move(), this.onNextFrame(function() {
|
|
5252
5252
|
return v.inertiaTick();
|
|
@@ -5289,7 +5289,7 @@ function Sc() {
|
|
|
5289
5289
|
i.resume(n);
|
|
5290
5290
|
break;
|
|
5291
5291
|
}
|
|
5292
|
-
c =
|
|
5292
|
+
c = F(c);
|
|
5293
5293
|
}
|
|
5294
5294
|
}, "interactions:stop": function(n) {
|
|
5295
5295
|
var t = n.interaction.inertia;
|
|
@@ -5360,7 +5360,7 @@ function Sc() {
|
|
|
5360
5360
|
return n === t || (typeof n == "boolean" ? !!t.capture === n && !t.passive : !!n.capture == !!t.capture && !!n.passive == !!t.passive);
|
|
5361
5361
|
}
|
|
5362
5362
|
var Ri = { id: "events", install: function(n) {
|
|
5363
|
-
var t, o = [], i = {}, c = [], f = { add: d, remove: h, addDelegate: function(y, O, $,
|
|
5363
|
+
var t, o = [], i = {}, c = [], f = { add: d, remove: h, addDelegate: function(y, O, $, V, L) {
|
|
5364
5364
|
var X = xt(L);
|
|
5365
5365
|
if (!i[$]) {
|
|
5366
5366
|
i[$] = [];
|
|
@@ -5372,8 +5372,8 @@ function Sc() {
|
|
|
5372
5372
|
var ae = i[$], ve = mt(ae, function(we) {
|
|
5373
5373
|
return we.selector === y && we.context === O;
|
|
5374
5374
|
});
|
|
5375
|
-
ve || (ve = { selector: y, context: O, listeners: [] }, ae.push(ve)), ve.listeners.push({ func:
|
|
5376
|
-
}, removeDelegate: function(y, O, $,
|
|
5375
|
+
ve || (ve = { selector: y, context: O, listeners: [] }, ae.push(ve)), ve.listeners.push({ func: V, options: X });
|
|
5376
|
+
}, removeDelegate: function(y, O, $, V, L) {
|
|
5377
5377
|
var X, oe = xt(L), ee = i[$], ae = !1;
|
|
5378
5378
|
if (ee)
|
|
5379
5379
|
for (X = ee.length - 1; X >= 0; X--) {
|
|
@@ -5381,7 +5381,7 @@ function Sc() {
|
|
|
5381
5381
|
if (ve.selector === y && ve.context === O) {
|
|
5382
5382
|
for (var we = ve.listeners, ue = we.length - 1; ue >= 0; ue--) {
|
|
5383
5383
|
var ye = we[ue];
|
|
5384
|
-
if (ye.func ===
|
|
5384
|
+
if (ye.func === V && Dt(ye.options, oe)) {
|
|
5385
5385
|
we.splice(ue, 1), we.length || (ee.splice(X, 1), h(O, $, v), h(O, $, w, !0)), ae = !0;
|
|
5386
5386
|
break;
|
|
5387
5387
|
}
|
|
@@ -5390,9 +5390,9 @@ function Sc() {
|
|
|
5390
5390
|
}
|
|
5391
5391
|
}
|
|
5392
5392
|
}, delegateListener: v, delegateUseCapture: w, delegatedEvents: i, documents: c, targets: o, supportsOptions: !1, supportsPassive: !1 };
|
|
5393
|
-
function d(y, O, $,
|
|
5393
|
+
function d(y, O, $, V) {
|
|
5394
5394
|
if (y.addEventListener) {
|
|
5395
|
-
var L = xt(
|
|
5395
|
+
var L = xt(V), X = mt(o, function(oe) {
|
|
5396
5396
|
return oe.eventTarget === y;
|
|
5397
5397
|
});
|
|
5398
5398
|
X || (X = { eventTarget: y, events: {} }, o.push(X)), X.events[O] || (X.events[O] = []), mt(X.events[O], function(oe) {
|
|
@@ -5400,7 +5400,7 @@ function Sc() {
|
|
|
5400
5400
|
}) || (y.addEventListener(O, $, f.supportsOptions ? L : L.capture), X.events[O].push({ func: $, options: L }));
|
|
5401
5401
|
}
|
|
5402
5402
|
}
|
|
5403
|
-
function h(y, O, $,
|
|
5403
|
+
function h(y, O, $, V) {
|
|
5404
5404
|
if (y.addEventListener && y.removeEventListener) {
|
|
5405
5405
|
var L = gt(o, function($e) {
|
|
5406
5406
|
return $e.eventTarget === y;
|
|
@@ -5415,7 +5415,7 @@ function Sc() {
|
|
|
5415
5415
|
}
|
|
5416
5416
|
return;
|
|
5417
5417
|
}
|
|
5418
|
-
for (var we = xt(
|
|
5418
|
+
for (var we = xt(V), ue = 0; ue < ee.length; ue++) {
|
|
5419
5419
|
var ye = ee[ue];
|
|
5420
5420
|
if (ye.func === $ && Dt(ye.options, we)) {
|
|
5421
5421
|
y.removeEventListener(O, $, f.supportsOptions ? we : we.capture), ee.splice(ue, 1), ee.length === 0 && (delete X.events[O], oe = !0);
|
|
@@ -5428,19 +5428,19 @@ function Sc() {
|
|
|
5428
5428
|
}
|
|
5429
5429
|
}
|
|
5430
5430
|
function v(y, O) {
|
|
5431
|
-
for (var $ = xt(O),
|
|
5431
|
+
for (var $ = xt(O), V = new Mi(y), L = i[y.type], X = Nr(y)[0], oe = X; E.element(oe); ) {
|
|
5432
5432
|
for (var ee = 0; ee < L.length; ee++) {
|
|
5433
5433
|
var ae = L[ee], ve = ae.selector, we = ae.context;
|
|
5434
5434
|
if (T(oe, ve) && Z(we, X) && Z(we, oe)) {
|
|
5435
5435
|
var ue = ae.listeners;
|
|
5436
|
-
|
|
5436
|
+
V.currentTarget = oe;
|
|
5437
5437
|
for (var ye = 0; ye < ue.length; ye++) {
|
|
5438
5438
|
var $e = ue[ye];
|
|
5439
|
-
Dt($e.options, $) && $e.func(
|
|
5439
|
+
Dt($e.options, $) && $e.func(V);
|
|
5440
5440
|
}
|
|
5441
5441
|
}
|
|
5442
5442
|
}
|
|
5443
|
-
oe =
|
|
5443
|
+
oe = F(oe);
|
|
5444
5444
|
}
|
|
5445
5445
|
}
|
|
5446
5446
|
function w(y) {
|
|
@@ -5464,7 +5464,7 @@ function Sc() {
|
|
|
5464
5464
|
var h = d[f], v = i;
|
|
5465
5465
|
if (h.simulation && h.simulation.allowResume && h.pointerType === t) for (; v; ) {
|
|
5466
5466
|
if (v === h.element) return h;
|
|
5467
|
-
v =
|
|
5467
|
+
v = F(v);
|
|
5468
5468
|
}
|
|
5469
5469
|
}
|
|
5470
5470
|
return null;
|
|
@@ -5514,8 +5514,8 @@ function Sc() {
|
|
|
5514
5514
|
if (/^touch/.test(o.type)) {
|
|
5515
5515
|
t.prevTouchTime = t.now();
|
|
5516
5516
|
for (var w = 0, y = o.changedTouches; w < y.length; w++) {
|
|
5517
|
-
var O = y[w], $ = { pointer: O, pointerId: ht(O), pointerType: c, eventType: o.type, eventTarget: d, curEventTarget: h, scope: t },
|
|
5518
|
-
v.push([$.pointer, $.eventTarget, $.curEventTarget,
|
|
5517
|
+
var O = y[w], $ = { pointer: O, pointerId: ht(O), pointerType: c, eventType: o.type, eventTarget: d, curEventTarget: h, scope: t }, V = Zr($);
|
|
5518
|
+
v.push([$.pointer, $.eventTarget, $.curEventTarget, V]);
|
|
5519
5519
|
}
|
|
5520
5520
|
} else {
|
|
5521
5521
|
var L = !1;
|
|
@@ -5556,10 +5556,10 @@ function Sc() {
|
|
|
5556
5556
|
for (var h = 0, v = n.interactions.list; h < v.length; h++) {
|
|
5557
5557
|
var w = v[h];
|
|
5558
5558
|
if (w.pointerIsDown && w.pointerType === "touch" && !w._interacting) for (var y = function() {
|
|
5559
|
-
var
|
|
5559
|
+
var V = $[O];
|
|
5560
5560
|
n.documents.some(function(L) {
|
|
5561
|
-
return Z(L.doc,
|
|
5562
|
-
}) || w.removePointer(
|
|
5561
|
+
return Z(L.doc, V.downTarget);
|
|
5562
|
+
}) || w.removePointer(V.pointer, V.event);
|
|
5563
5563
|
}, O = 0, $ = w.pointers; O < $.length; O++) y();
|
|
5564
5564
|
}
|
|
5565
5565
|
}
|
|
@@ -5713,7 +5713,7 @@ function Sc() {
|
|
|
5713
5713
|
var v = i.interactables.getExisting(d, h);
|
|
5714
5714
|
return v || ((v = i.interactables.new(d, h)).events.global = f.globalEvents), v;
|
|
5715
5715
|
};
|
|
5716
|
-
return c.getPointerAverage = wr, c.getTouchBBox = fn, c.getTouchDistance = dn, c.getTouchAngle = pn, c.getElementRect = Ne, c.getElementClientRect = pe, c.matchesSelector = T, c.closest =
|
|
5716
|
+
return c.getPointerAverage = wr, c.getTouchBBox = fn, c.getTouchDistance = dn, c.getTouchAngle = pn, c.getElementRect = Ne, c.getElementClientRect = pe, c.matchesSelector = T, c.closest = se, c.globalEvents = {}, c.version = "1.10.27", c.scope = i, c.use = function(f, d) {
|
|
5717
5717
|
return this.scope.usePlugin(f, d), this;
|
|
5718
5718
|
}, c.isSet = function(f, d) {
|
|
5719
5719
|
return !!this.scope.interactables.get(f, d && d.context);
|
|
@@ -5790,7 +5790,7 @@ function Sc() {
|
|
|
5790
5790
|
}
|
|
5791
5791
|
} }, { key: "init", value: function(t) {
|
|
5792
5792
|
return this.isInitialized ? this : function(o, i) {
|
|
5793
|
-
return o.isInitialized = !0, E.window(i) &&
|
|
5793
|
+
return o.isInitialized = !0, E.window(i) && B(i), z.init(i), Q.init(i), Ke.init(i), o.window = i, o.document = i.document, o.usePlugin(Fi), o.usePlugin(Ri), o;
|
|
5794
5794
|
}(this, t);
|
|
5795
5795
|
} }, { key: "pluginIsInstalled", value: function(t) {
|
|
5796
5796
|
var o = t.id;
|
|
@@ -5838,8 +5838,8 @@ function Sc() {
|
|
|
5838
5838
|
return c in n || f in n;
|
|
5839
5839
|
}), o = function(i, c) {
|
|
5840
5840
|
for (var f = n.range, d = n.limits, h = d === void 0 ? { left: -1 / 0, right: 1 / 0, top: -1 / 0, bottom: 1 / 0 } : d, v = n.offset, w = v === void 0 ? { x: 0, y: 0 } : v, y = { range: f, grid: n, x: null, y: null }, O = 0; O < t.length; O++) {
|
|
5841
|
-
var $ = t[O],
|
|
5842
|
-
y[
|
|
5841
|
+
var $ = t[O], V = $[0], L = $[1], X = Math.round((i - w.x) / n[V]), oe = Math.round((c - w.y) / n[L]);
|
|
5842
|
+
y[V] = Math.max(h.left, Math.min(h.right, X * n[V] + w.x)), y[L] = Math.max(h.top, Math.min(h.bottom, oe * n[L] + w.y));
|
|
5843
5843
|
}
|
|
5844
5844
|
return y;
|
|
5845
5845
|
};
|
|
@@ -5856,8 +5856,8 @@ function Sc() {
|
|
|
5856
5856
|
t.edgeSign = { x: $, y: $ };
|
|
5857
5857
|
} else t.edgeSign = { x: O.left ? -1 : 1, y: O.top ? -1 : 1 };
|
|
5858
5858
|
if (h !== !1 && q(i, O), y != null && y.length) {
|
|
5859
|
-
var
|
|
5860
|
-
|
|
5859
|
+
var V = new Nn(n.interaction);
|
|
5860
|
+
V.copyFrom(n.interaction.modification), V.prepareStates(y), t.subModification = V, V.startAll(a({}, n));
|
|
5861
5861
|
}
|
|
5862
5862
|
}, set: function(n) {
|
|
5863
5863
|
var t = n.state, o = n.rect, i = n.coords, c = t.linkedEdges, f = q({}, i), d = t.equalDelta ? Gi : Wi;
|
|
@@ -5937,7 +5937,7 @@ function Sc() {
|
|
|
5937
5937
|
}
|
|
5938
5938
|
}, defaults: { min: null, max: null, endOnly: !1, enabled: !1 } }, "restrictSize"), kn = { start: function(n) {
|
|
5939
5939
|
var t, o = n.interaction, i = n.interactable, c = n.element, f = n.rect, d = n.state, h = n.startOffset, v = d.options, w = v.offsetWithOrigin ? function($) {
|
|
5940
|
-
var
|
|
5940
|
+
var V = $.interaction.element, L = ke(je($.state.options.origin, null, null, [V])), X = L || He($.interactable, V, $.interaction.prepared.name);
|
|
5941
5941
|
return X;
|
|
5942
5942
|
}(n) : { x: 0, y: 0 };
|
|
5943
5943
|
if (v.offset === "startCoords") t = { x: o.coords.start.page.x, y: o.coords.start.page.y };
|
|
@@ -5946,15 +5946,15 @@ function Sc() {
|
|
|
5946
5946
|
(t = ke(y) || { x: 0, y: 0 }).x += w.x, t.y += w.y;
|
|
5947
5947
|
}
|
|
5948
5948
|
var O = v.relativePoints;
|
|
5949
|
-
d.offsets = f && O && O.length ? O.map(function($,
|
|
5950
|
-
return { index:
|
|
5949
|
+
d.offsets = f && O && O.length ? O.map(function($, V) {
|
|
5950
|
+
return { index: V, relativePoint: $, x: h.left - f.width * $.x + t.x, y: h.top - f.height * $.y + t.y };
|
|
5951
5951
|
}) : [{ index: 0, relativePoint: null, x: t.x, y: t.y }];
|
|
5952
5952
|
}, set: function(n) {
|
|
5953
5953
|
var t = n.interaction, o = n.coords, i = n.state, c = i.options, f = i.offsets, d = He(t.interactable, t.element, t.prepared.name), h = q({}, o), v = [];
|
|
5954
5954
|
c.offsetWithOrigin || (h.x -= d.x, h.y -= d.y);
|
|
5955
|
-
for (var w = 0, y = f; w < y.length; w++) for (var O = y[w], $ = h.x - O.x,
|
|
5955
|
+
for (var w = 0, y = f; w < y.length; w++) for (var O = y[w], $ = h.x - O.x, V = h.y - O.y, L = 0, X = c.targets.length; L < X; L++) {
|
|
5956
5956
|
var oe = c.targets[L], ee = void 0;
|
|
5957
|
-
(ee = E.func(oe) ? oe($,
|
|
5957
|
+
(ee = E.func(oe) ? oe($, V, t._proxy, O, L) : oe) && v.push({ x: (E.number(ee.x) ? ee.x : $) + O.x, y: (E.number(ee.y) ? ee.y : V) + O.y, range: E.number(ee.range) ? ee.range : c.range, source: oe, index: L, offset: O });
|
|
5958
5958
|
}
|
|
5959
5959
|
for (var ae = { target: null, inRange: !1, distance: 0, range: 0, delta: { x: 0, y: 0 } }, ve = 0; ve < v.length; ve++) {
|
|
5960
5960
|
var we = v[ve], ue = we.range, ye = we.x - h.x, $e = we.y - h.y, Pe = pt(ye, $e), Le = Pe <= ue;
|
|
@@ -5972,7 +5972,7 @@ function Sc() {
|
|
|
5972
5972
|
var w = v[h], y = void 0;
|
|
5973
5973
|
if (y = E.func(w) ? w(d.x, d.y, t) : w) {
|
|
5974
5974
|
for (var O = 0, $ = o.targetFields; O < $.length; O++) {
|
|
5975
|
-
var
|
|
5975
|
+
var V = $[O], L = V[0], X = V[1];
|
|
5976
5976
|
if (L in y || X in y) {
|
|
5977
5977
|
y.x = y[L], y.y = y[X];
|
|
5978
5978
|
break;
|
|
@@ -6028,8 +6028,8 @@ function Sc() {
|
|
|
6028
6028
|
}, "interactions:down": function(n, t) {
|
|
6029
6029
|
(function(o, i) {
|
|
6030
6030
|
for (var c = o.interaction, f = o.pointer, d = o.event, h = o.eventTarget, v = o.pointerIndex, w = c.pointers[v].hold, y = Te(h), O = { interaction: c, pointer: f, event: d, eventTarget: h, type: "hold", targets: [], path: y, node: null }, $ = 0; $ < y.length; $++) {
|
|
6031
|
-
var
|
|
6032
|
-
O.node =
|
|
6031
|
+
var V = y[$];
|
|
6032
|
+
O.node = V, i.fire("pointerEvents:collect-targets", O);
|
|
6033
6033
|
}
|
|
6034
6034
|
if (O.targets.length) {
|
|
6035
6035
|
for (var L = 1 / 0, X = 0, oe = O.targets; X < oe.length; X++) {
|
|
@@ -6054,7 +6054,7 @@ function Sc() {
|
|
|
6054
6054
|
t.fire("pointerEvents:new", { pointerEvent: w });
|
|
6055
6055
|
for (var y = { interaction: o, pointer: i, event: c, eventTarget: f, targets: v, type: d, pointerEvent: w }, O = 0; O < v.length; O++) {
|
|
6056
6056
|
var $ = v[O];
|
|
6057
|
-
for (var
|
|
6057
|
+
for (var V in $.props || {}) w[V] = $.props[V];
|
|
6058
6058
|
var L = He($.eventable, $.node);
|
|
6059
6059
|
if (w._subtractOrigin(L), w.eventable = $.eventable, w.currentTarget = $.node, $.eventable.fire(w), w._addOrigin(L), w.immediatePropagationStopped || w.propagationStopped && O + 1 < v.length && v[O + 1].node !== w.currentTarget) break;
|
|
6060
6060
|
}
|
|
@@ -6071,9 +6071,9 @@ function Sc() {
|
|
|
6071
6071
|
var $ = w[O];
|
|
6072
6072
|
y.node = $, t.fire("pointerEvents:collect-targets", y);
|
|
6073
6073
|
}
|
|
6074
|
-
return d === "hold" && (y.targets = y.targets.filter(function(
|
|
6074
|
+
return d === "hold" && (y.targets = y.targets.filter(function(V) {
|
|
6075
6075
|
var L, X;
|
|
6076
|
-
return
|
|
6076
|
+
return V.eventable.options.holdDuration === ((L = o.pointers[h]) == null || (X = L.hold) == null ? void 0 : X.duration);
|
|
6077
6077
|
})), y.targets;
|
|
6078
6078
|
}
|
|
6079
6079
|
function jn(n) {
|
|
@@ -6135,10 +6135,10 @@ function Sc() {
|
|
|
6135
6135
|
for (var d = i.getAllElements(), h = f.window.Promise, v = h ? [] : null, w = function() {
|
|
6136
6136
|
var O = d[y], $ = i.getRect(O);
|
|
6137
6137
|
if (!$) return 1;
|
|
6138
|
-
var
|
|
6138
|
+
var V, L = mt(f.interactions.list, function(ee) {
|
|
6139
6139
|
return ee.interacting() && ee.interactable === i && ee.element === O && ee.prepared.name === c.name;
|
|
6140
6140
|
});
|
|
6141
|
-
if (L) L.move(), v && (
|
|
6141
|
+
if (L) L.move(), v && (V = L._reflowPromise || new h(function(ee) {
|
|
6142
6142
|
L._reflowResolve = ee;
|
|
6143
6143
|
}));
|
|
6144
6144
|
else {
|
|
@@ -6170,7 +6170,7 @@ function Sc() {
|
|
|
6170
6170
|
}, preventDefault: function() {
|
|
6171
6171
|
} };
|
|
6172
6172
|
}({ page: { x: X.x, y: X.y }, client: { x: X.x, y: X.y }, timeStamp: f.now() });
|
|
6173
|
-
|
|
6173
|
+
V = function(ee, ae, ve, we, ue) {
|
|
6174
6174
|
var ye = ee.interactions.new({ pointerType: "reflow" }), $e = { interaction: ye, event: ue, pointer: ue, eventTarget: ve, phase: "reflow" };
|
|
6175
6175
|
ye.interactable = ae, ye.element = ve, ye.prevEvent = ue, ye.updatePointer(ue, ue, ve, !0), yr(ye.coords.delta), xn(ye.prepared, we), ye._doPhase($e);
|
|
6176
6176
|
var Pe = ee.window, Le = Pe.Promise, De = Le ? new Le(function(qe) {
|
|
@@ -6179,7 +6179,7 @@ function Sc() {
|
|
|
6179
6179
|
return ye._reflowPromise = De, ye.start(we, ae, ve), ye._interacting ? (ye.move($e), ye.end(ue)) : (ye.stop(), ye._reflowResolve()), ye.removePointer(ue, ue), De;
|
|
6180
6180
|
}(f, i, O, c, oe);
|
|
6181
6181
|
}
|
|
6182
|
-
v && v.push(
|
|
6182
|
+
v && v.push(V);
|
|
6183
6183
|
}, y = 0; y < d.length && !w(); y++) ;
|
|
6184
6184
|
return v && h.all(v).then(function() {
|
|
6185
6185
|
return i;
|
|
@@ -6290,7 +6290,7 @@ const Qo = /* @__PURE__ */ Oe(({
|
|
|
6290
6290
|
onLoadStart: m,
|
|
6291
6291
|
onLoadComplete: N,
|
|
6292
6292
|
onLoadError: _
|
|
6293
|
-
}), [W,
|
|
6293
|
+
}), [W, B] = Se(e), { isDragging: Y, value: S, setValue: C } = Ct(b, {
|
|
6294
6294
|
initialValue: 0,
|
|
6295
6295
|
transform: M,
|
|
6296
6296
|
onDragStart: p,
|
|
@@ -6299,11 +6299,11 @@ const Qo = /* @__PURE__ */ Oe(({
|
|
|
6299
6299
|
be(() => {
|
|
6300
6300
|
if (Y || !K) return;
|
|
6301
6301
|
const R = kc(e, K, ge.size(j), a);
|
|
6302
|
-
R !== S && C(R), e !== W &&
|
|
6302
|
+
R !== S && C(R), e !== W && B(e);
|
|
6303
6303
|
}, [e, K, j.width, j.height, a]), be(() => {
|
|
6304
6304
|
if (!Y || !K) return;
|
|
6305
6305
|
const R = Cc(S, K, ge.size(j), a);
|
|
6306
|
-
W !== R &&
|
|
6306
|
+
W !== R && B(R);
|
|
6307
6307
|
}, [S, K, j.width, j.height, a]), be(() => {
|
|
6308
6308
|
l?.(W, Y), u?.(W / 360, Y);
|
|
6309
6309
|
}, [W]), be(() => {
|
|
@@ -6371,11 +6371,11 @@ const jc = /* @__PURE__ */ Oe(({
|
|
|
6371
6371
|
onImageSizeChange: j,
|
|
6372
6372
|
onPositionChange: K,
|
|
6373
6373
|
...W
|
|
6374
|
-
},
|
|
6374
|
+
}, B) => {
|
|
6375
6375
|
const Y = Ee(null), S = nt(Y), [C, E] = Se(), [R, U] = Se(!1), te = me(() => {
|
|
6376
6376
|
if (!C) return 0;
|
|
6377
|
-
const { width: T, height:
|
|
6378
|
-
return
|
|
6377
|
+
const { width: T, height: D } = C;
|
|
6378
|
+
return D === 0 ? 0 : T / D;
|
|
6379
6379
|
}, [C?.width, C?.height])(), H = me(() => {
|
|
6380
6380
|
const T = Math.min(360, Math.max(0, u ?? (m ? m.width / (m.height * te) * 360 : 0)));
|
|
6381
6381
|
return S.width * (T / 360);
|
|
@@ -6383,18 +6383,18 @@ const jc = /* @__PURE__ */ Oe(({
|
|
|
6383
6383
|
U(!0), k?.();
|
|
6384
6384
|
}, [k]), Z = me(() => {
|
|
6385
6385
|
U(!1), P?.();
|
|
6386
|
-
}, [P]),
|
|
6386
|
+
}, [P]), se = ze(l, {
|
|
6387
6387
|
track: Kt,
|
|
6388
6388
|
reticle: Qn,
|
|
6389
6389
|
indicator: Zn
|
|
6390
|
-
}),
|
|
6390
|
+
}), F = Ic({ autoDimension: a, panoramaRect: S, aspectRatio: te, reticleWidth: H });
|
|
6391
6391
|
return /* @__PURE__ */ x.jsxs(
|
|
6392
6392
|
"div",
|
|
6393
6393
|
{
|
|
6394
6394
|
...W,
|
|
6395
|
-
ref:
|
|
6396
|
-
className:
|
|
6397
|
-
style: ce(r,
|
|
6395
|
+
ref: B,
|
|
6396
|
+
className: ie(e, { dragging: R }),
|
|
6397
|
+
style: ce(r, F.root),
|
|
6398
6398
|
children: [
|
|
6399
6399
|
/* @__PURE__ */ x.jsx(
|
|
6400
6400
|
Qo,
|
|
@@ -6403,7 +6403,7 @@ const jc = /* @__PURE__ */ Oe(({
|
|
|
6403
6403
|
angle: s,
|
|
6404
6404
|
speed: p,
|
|
6405
6405
|
src: g,
|
|
6406
|
-
style:
|
|
6406
|
+
style: F.panorama,
|
|
6407
6407
|
zeroAnchor: A,
|
|
6408
6408
|
onAngleChange: _,
|
|
6409
6409
|
onDragEnd: Z,
|
|
@@ -6415,12 +6415,12 @@ const jc = /* @__PURE__ */ Oe(({
|
|
|
6415
6415
|
onPositionChange: K
|
|
6416
6416
|
}
|
|
6417
6417
|
),
|
|
6418
|
-
/* @__PURE__ */ x.jsx("div", { style:
|
|
6419
|
-
/* @__PURE__ */ x.jsx(he, { className:
|
|
6420
|
-
/* @__PURE__ */ x.jsx(he, { className:
|
|
6421
|
-
/* @__PURE__ */ x.jsx(he, { className:
|
|
6418
|
+
/* @__PURE__ */ x.jsx("div", { style: F.body, children: /* @__PURE__ */ x.jsxs("div", { style: F.controls, children: [
|
|
6419
|
+
/* @__PURE__ */ x.jsx(he, { className: ie({ dragging: R }), element: se.track ?? /* @__PURE__ */ x.jsx(Kt, {}), style: F.track }),
|
|
6420
|
+
/* @__PURE__ */ x.jsx(he, { className: ie({ dragging: R }), element: se.reticle ?? /* @__PURE__ */ x.jsx(Qn, {}), style: F.reticle }),
|
|
6421
|
+
/* @__PURE__ */ x.jsx(he, { className: ie({ dragging: R }), element: se.track ?? /* @__PURE__ */ x.jsx(Kt, {}), style: F.track })
|
|
6422
6422
|
] }) }),
|
|
6423
|
-
/* @__PURE__ */ x.jsx(he, { className:
|
|
6423
|
+
/* @__PURE__ */ x.jsx(he, { className: ie({ dragging: R }), element: se.indicator ?? /* @__PURE__ */ x.jsx(Zn, {}), style: F.indicator })
|
|
6424
6424
|
]
|
|
6425
6425
|
}
|
|
6426
6426
|
);
|
|
@@ -6486,35 +6486,35 @@ const $c = /* @__PURE__ */ Oe(({
|
|
|
6486
6486
|
onChange: k,
|
|
6487
6487
|
...I
|
|
6488
6488
|
}, M) => {
|
|
6489
|
-
const b = Ee(null), j = nt(b), K = Ee(null), W = Ee(null), [
|
|
6489
|
+
const b = Ee(null), j = nt(b), K = Ee(null), W = Ee(null), [B, Y] = Se(_ ?? [m, g]), S = Dc(m, g, P), [C, E] = B.map((ne) => st(ne, m, g, N, j, p, l, a)), R = E - C, U = ze(e, {
|
|
6490
6490
|
gutter: er,
|
|
6491
6491
|
highlight: tr,
|
|
6492
6492
|
knob: Zt,
|
|
6493
6493
|
knobContainer: zn,
|
|
6494
6494
|
label: Jt
|
|
6495
6495
|
}), G = me((ne, re, le) => {
|
|
6496
|
-
const pe = N === "horizontal" ? re : le, Ne = st(m, m, g, N, j, p, l, a), Te = st(
|
|
6496
|
+
const pe = N === "horizontal" ? re : le, Ne = st(m, m, g, N, j, p, l, a), Te = st(B[1], m, g, N, j, p, l, a), xe = st(ne, m, g, N, j, p, l, a) + pe;
|
|
6497
6497
|
return So(Math.max(Ne, Math.min(Te, xe)), m, g, N, j, p, l, a);
|
|
6498
|
-
}, [p, l, a, m, g, N,
|
|
6499
|
-
const pe = N === "horizontal" ? re : le, Ne = st(
|
|
6498
|
+
}, [p, l, a, m, g, N, B[1], ge.toString(j)]), te = me((ne, re, le) => {
|
|
6499
|
+
const pe = N === "horizontal" ? re : le, Ne = st(B[0], m, g, N, j, p, l, a), Te = st(g, m, g, N, j, p, l, a), xe = st(ne, m, g, N, j, p, l, a) + pe;
|
|
6500
6500
|
return So(Math.max(Ne, Math.min(Te, xe)), m, g, N, j, p, l, a);
|
|
6501
|
-
}, [p, l, a, m, g, N,
|
|
6501
|
+
}, [p, l, a, m, g, N, B[0], ge.toString(j)]), { isDragging: J, isReleasing: H, value: z, setValue: A } = Ct(K, {
|
|
6502
6502
|
initialValue: _?.[0] ?? m,
|
|
6503
6503
|
transform: G
|
|
6504
|
-
}), { isDragging: Q, isReleasing: Z, value:
|
|
6504
|
+
}), { isDragging: Q, isReleasing: Z, value: se, setValue: F } = Ct(W, {
|
|
6505
6505
|
initialValue: _?.[1] ?? g,
|
|
6506
6506
|
transform: te
|
|
6507
|
-
}), T = Ac({ isDraggingEndKnob: Q, isDraggingStartKnob: J, isReleasingEndKnob: Z, isReleasingStartKnob: H }),
|
|
6507
|
+
}), T = Ac({ isDraggingEndKnob: Q, isDraggingStartKnob: J, isReleasingEndKnob: Z, isReleasingStartKnob: H }), D = Mc({ orientation: N, highlightLength: R, start: C, knobPadding: u, knobWidth: p, knobHeight: l });
|
|
6508
6508
|
return be(() => {
|
|
6509
|
-
Y([z,
|
|
6510
|
-
}, [z,
|
|
6511
|
-
k?.(
|
|
6512
|
-
}, [
|
|
6513
|
-
J || Q || Z || Ge(_,
|
|
6509
|
+
Y([z, se]);
|
|
6510
|
+
}, [z, se]), be(() => {
|
|
6511
|
+
k?.(B);
|
|
6512
|
+
}, [B[0], B[1]]), be(() => {
|
|
6513
|
+
J || Q || Z || Ge(_, B) || (Y(_ ?? [m, g]), A(_?.[0] ?? m), F(_?.[1] ?? g));
|
|
6514
6514
|
}, [_?.[0], _?.[1], J, Q, Z]), be(() => {
|
|
6515
6515
|
S && A(To(z, S));
|
|
6516
6516
|
}, [H, We(S)]), be(() => {
|
|
6517
|
-
!S || !Z ||
|
|
6517
|
+
!S || !Z || F(To(se, S));
|
|
6518
6518
|
}, [Z, We(S)]), /* @__PURE__ */ x.jsx(
|
|
6519
6519
|
"div",
|
|
6520
6520
|
{
|
|
@@ -6522,20 +6522,20 @@ const $c = /* @__PURE__ */ Oe(({
|
|
|
6522
6522
|
ref: M,
|
|
6523
6523
|
"aria-valuemax": g,
|
|
6524
6524
|
"aria-valuemin": m,
|
|
6525
|
-
className:
|
|
6525
|
+
className: ie(r, N),
|
|
6526
6526
|
role: "slider",
|
|
6527
|
-
children: /* @__PURE__ */ x.jsxs("div", { ref: b, style:
|
|
6528
|
-
/* @__PURE__ */ x.jsx(he, { element: U.gutter ?? /* @__PURE__ */ x.jsx(er, {}), style: ce(
|
|
6529
|
-
/* @__PURE__ */ x.jsx(he, { element: U.highlight ?? /* @__PURE__ */ x.jsx(tr, {}), style: ce(
|
|
6527
|
+
children: /* @__PURE__ */ x.jsxs("div", { ref: b, style: D.body, children: [
|
|
6528
|
+
/* @__PURE__ */ x.jsx(he, { element: U.gutter ?? /* @__PURE__ */ x.jsx(er, {}), style: ce(D.gutter) }),
|
|
6529
|
+
/* @__PURE__ */ x.jsx(he, { element: U.highlight ?? /* @__PURE__ */ x.jsx(tr, {}), style: ce(D.highlight) }),
|
|
6530
6530
|
/* @__PURE__ */ x.jsx(
|
|
6531
6531
|
he,
|
|
6532
6532
|
{
|
|
6533
6533
|
ref: K,
|
|
6534
6534
|
className: T.startKnobContainer,
|
|
6535
|
-
disabled: Ge([z,
|
|
6535
|
+
disabled: Ge([z, se], [m, m]),
|
|
6536
6536
|
element: U.knobContainer ?? /* @__PURE__ */ x.jsx(zn, {}),
|
|
6537
|
-
style: ce(
|
|
6538
|
-
pointerEvents: Ge([z,
|
|
6537
|
+
style: ce(D.knobContainer, {
|
|
6538
|
+
pointerEvents: Ge([z, se], [m, m]) ? "none" : "auto"
|
|
6539
6539
|
}, N === "horizontal" ? {
|
|
6540
6540
|
left: `${C}px`,
|
|
6541
6541
|
top: `${j.height * 0.5}px`
|
|
@@ -6543,9 +6543,9 @@ const $c = /* @__PURE__ */ Oe(({
|
|
|
6543
6543
|
left: `${j.width * 0.5}px`,
|
|
6544
6544
|
top: `${C}px`
|
|
6545
6545
|
}),
|
|
6546
|
-
children: /* @__PURE__ */ x.jsxs(he, { className: T.startKnob, element: U.knob ?? /* @__PURE__ */ x.jsx(Zt, {}), style: ce(
|
|
6547
|
-
/* @__PURE__ */ x.jsx("div", { style:
|
|
6548
|
-
U.label && /* @__PURE__ */ x.jsx(he, { className: T.startLabel, element: U.label ?? /* @__PURE__ */ x.jsx(Jt, {}), style: ce(
|
|
6546
|
+
children: /* @__PURE__ */ x.jsxs(he, { className: T.startKnob, element: U.knob ?? /* @__PURE__ */ x.jsx(Zt, {}), style: ce(D.knob), children: [
|
|
6547
|
+
/* @__PURE__ */ x.jsx("div", { style: D.knobHitBox }),
|
|
6548
|
+
U.label && /* @__PURE__ */ x.jsx(he, { className: T.startLabel, element: U.label ?? /* @__PURE__ */ x.jsx(Jt, {}), style: ce(D.label), children: Number(z.toFixed(s)).toLocaleString() })
|
|
6549
6549
|
] })
|
|
6550
6550
|
}
|
|
6551
6551
|
),
|
|
@@ -6554,10 +6554,10 @@ const $c = /* @__PURE__ */ Oe(({
|
|
|
6554
6554
|
{
|
|
6555
6555
|
ref: W,
|
|
6556
6556
|
className: T.endKnobContainer,
|
|
6557
|
-
disabled: Ge([z,
|
|
6557
|
+
disabled: Ge([z, se], [g, g]),
|
|
6558
6558
|
element: U.knobContainer ?? /* @__PURE__ */ x.jsx(zn, {}),
|
|
6559
|
-
style: ce(
|
|
6560
|
-
pointerEvents: Ge([z,
|
|
6559
|
+
style: ce(D.knobContainer, {
|
|
6560
|
+
pointerEvents: Ge([z, se], [g, g]) ? "none" : "auto"
|
|
6561
6561
|
}, N === "horizontal" ? {
|
|
6562
6562
|
left: `${E}px`,
|
|
6563
6563
|
top: `${j.height * 0.5}px`
|
|
@@ -6565,9 +6565,9 @@ const $c = /* @__PURE__ */ Oe(({
|
|
|
6565
6565
|
left: `${j.width * 0.5}px`,
|
|
6566
6566
|
top: `${E}px`
|
|
6567
6567
|
}),
|
|
6568
|
-
children: /* @__PURE__ */ x.jsxs(he, { className: T.endKnob, element: U.knob ?? /* @__PURE__ */ x.jsx(Zt, {}), style: ce(
|
|
6569
|
-
/* @__PURE__ */ x.jsx("div", { style:
|
|
6570
|
-
U.label && /* @__PURE__ */ x.jsx(he, { className: T.endLabel, element: U.label ?? /* @__PURE__ */ x.jsx(Jt, {}), style: ce(
|
|
6568
|
+
children: /* @__PURE__ */ x.jsxs(he, { className: T.endKnob, element: U.knob ?? /* @__PURE__ */ x.jsx(Zt, {}), style: ce(D.knob), children: [
|
|
6569
|
+
/* @__PURE__ */ x.jsx("div", { style: D.knobHitBox }),
|
|
6570
|
+
U.label && /* @__PURE__ */ x.jsx(he, { className: T.endLabel, element: U.label ?? /* @__PURE__ */ x.jsx(Jt, {}), style: ce(D.label), children: Number(se.toFixed(s)).toLocaleString() })
|
|
6571
6571
|
] })
|
|
6572
6572
|
}
|
|
6573
6573
|
)
|
|
@@ -6577,27 +6577,27 @@ const $c = /* @__PURE__ */ Oe(({
|
|
|
6577
6577
|
}), er = ({ ...e }) => /* @__PURE__ */ x.jsx("div", { ...e }), Jt = ({ ...e }) => /* @__PURE__ */ x.jsx("div", { ...e }), tr = ({ ...e }) => /* @__PURE__ */ x.jsx("div", { ...e }), Zt = ({ ...e }) => /* @__PURE__ */ x.jsx("div", { ...e }), zn = ({ ...e }) => /* @__PURE__ */ x.jsx("button", { ...e });
|
|
6578
6578
|
function Ac({ isDraggingStartKnob: e = !1, isReleasingStartKnob: r = !1, isDraggingEndKnob: s = !1, isReleasingEndKnob: a = !1 }) {
|
|
6579
6579
|
return {
|
|
6580
|
-
startKnobContainer:
|
|
6580
|
+
startKnobContainer: ie({
|
|
6581
6581
|
dragging: e,
|
|
6582
6582
|
releasing: r
|
|
6583
6583
|
}),
|
|
6584
|
-
startKnob:
|
|
6584
|
+
startKnob: ie({
|
|
6585
6585
|
dragging: e,
|
|
6586
6586
|
releasing: r
|
|
6587
6587
|
}),
|
|
6588
|
-
startLabel:
|
|
6588
|
+
startLabel: ie({
|
|
6589
6589
|
dragging: e,
|
|
6590
6590
|
releasing: r
|
|
6591
6591
|
}),
|
|
6592
|
-
endKnobContainer:
|
|
6592
|
+
endKnobContainer: ie({
|
|
6593
6593
|
dragging: s,
|
|
6594
6594
|
releasing: a
|
|
6595
6595
|
}),
|
|
6596
|
-
endKnob:
|
|
6596
|
+
endKnob: ie({
|
|
6597
6597
|
dragging: s,
|
|
6598
6598
|
releasing: a
|
|
6599
6599
|
}),
|
|
6600
|
-
endLabel:
|
|
6600
|
+
endLabel: ie({
|
|
6601
6601
|
dragging: s,
|
|
6602
6602
|
releasing: a
|
|
6603
6603
|
})
|
|
@@ -6806,7 +6806,7 @@ const Bc = /* @__PURE__ */ Oe(({
|
|
|
6806
6806
|
"aria-disabled": a,
|
|
6807
6807
|
"aria-label": u,
|
|
6808
6808
|
"aria-selected": l,
|
|
6809
|
-
className:
|
|
6809
|
+
className: ie(r, { active: l, disabled: a || l && !s }),
|
|
6810
6810
|
disabled: a || l && !s,
|
|
6811
6811
|
onClick: P,
|
|
6812
6812
|
children: e ?? u
|
|
@@ -6833,15 +6833,15 @@ const Hc = /* @__PURE__ */ Oe(({
|
|
|
6833
6833
|
onChange: b,
|
|
6834
6834
|
...j
|
|
6835
6835
|
}, K) => {
|
|
6836
|
-
const W = Ee(null),
|
|
6837
|
-
const
|
|
6836
|
+
const W = Ee(null), B = Ee(null), Y = me((Q, Z, se) => {
|
|
6837
|
+
const F = ge.from(W.current) ?? ge.zero, T = a ? 1 - Q : Q;
|
|
6838
6838
|
switch (N) {
|
|
6839
6839
|
case "horizontal": {
|
|
6840
|
-
const
|
|
6840
|
+
const D = s ? F.width - g : F.width, ne = T * D + Z, re = Math.max(0, Math.min(1, ne / D));
|
|
6841
6841
|
return a ? 1 - re : re;
|
|
6842
6842
|
}
|
|
6843
6843
|
case "vertical": {
|
|
6844
|
-
const
|
|
6844
|
+
const D = s ? F.height - u : F.height, ne = T * D + se, re = Math.max(0, Math.min(1, ne / D));
|
|
6845
6845
|
return a ? 1 - re : re;
|
|
6846
6846
|
}
|
|
6847
6847
|
default:
|
|
@@ -6849,22 +6849,22 @@ const Hc = /* @__PURE__ */ Oe(({
|
|
|
6849
6849
|
}
|
|
6850
6850
|
}, [W.current, s, a, g, u, N]), S = me((Q) => {
|
|
6851
6851
|
if (!l) return;
|
|
6852
|
-
const Z = ge.from(W.current) ?? ge.zero,
|
|
6852
|
+
const Z = ge.from(W.current) ?? ge.zero, se = ge.fromViewport();
|
|
6853
6853
|
switch (N) {
|
|
6854
6854
|
case "horizontal": {
|
|
6855
|
-
const
|
|
6855
|
+
const F = (Q.clientX + se.left - Z.left) / Z.width, T = a ? 1 - F : F;
|
|
6856
6856
|
U(T);
|
|
6857
6857
|
break;
|
|
6858
6858
|
}
|
|
6859
6859
|
case "vertical": {
|
|
6860
|
-
const
|
|
6860
|
+
const F = (Q.clientY + se.top - Z.top) / Z.height, T = a ? 1 - F : F;
|
|
6861
6861
|
U(T);
|
|
6862
6862
|
break;
|
|
6863
6863
|
}
|
|
6864
6864
|
default:
|
|
6865
6865
|
console.error(`[etudes::Slider] Invalid orientation: ${N}`);
|
|
6866
6866
|
}
|
|
6867
|
-
}, [W.current, a, l, N]), { isDragging: C, isReleasing: E, value: R, setValue: U } = Ct(
|
|
6867
|
+
}, [W.current, a, l, N]), { isDragging: C, isReleasing: E, value: R, setValue: U } = Ct(B, {
|
|
6868
6868
|
initialValue: _,
|
|
6869
6869
|
transform: Y,
|
|
6870
6870
|
onDragStart: M,
|
|
@@ -6890,12 +6890,13 @@ const Hc = /* @__PURE__ */ Oe(({
|
|
|
6890
6890
|
ref: K,
|
|
6891
6891
|
"aria-orientation": N,
|
|
6892
6892
|
"aria-valuenow": R,
|
|
6893
|
-
className:
|
|
6893
|
+
className: ie(r, H.root),
|
|
6894
6894
|
role: "slider",
|
|
6895
6895
|
children: /* @__PURE__ */ x.jsxs("div", { ref: W, style: z.body, children: [
|
|
6896
6896
|
/* @__PURE__ */ x.jsx(
|
|
6897
6897
|
he,
|
|
6898
6898
|
{
|
|
6899
|
+
className: ie(a ? "end" : "start", H.track),
|
|
6899
6900
|
element: A.track ?? /* @__PURE__ */ x.jsx(en, {}),
|
|
6900
6901
|
style: ce(z.track, N === "vertical" ? {
|
|
6901
6902
|
height: `calc(${G * 100}% - ${P <= 0 ? 0 : u * 0.5}px - ${P}px)`,
|
|
@@ -6911,6 +6912,7 @@ const Hc = /* @__PURE__ */ Oe(({
|
|
|
6911
6912
|
/* @__PURE__ */ x.jsx(
|
|
6912
6913
|
he,
|
|
6913
6914
|
{
|
|
6915
|
+
className: ie(a ? "start" : "end", H.track),
|
|
6914
6916
|
element: A.track ?? /* @__PURE__ */ x.jsx(en, {}),
|
|
6915
6917
|
style: ce(z.track, N === "vertical" ? {
|
|
6916
6918
|
bottom: "0",
|
|
@@ -6926,13 +6928,13 @@ const Hc = /* @__PURE__ */ Oe(({
|
|
|
6926
6928
|
/* @__PURE__ */ x.jsx(
|
|
6927
6929
|
he,
|
|
6928
6930
|
{
|
|
6929
|
-
ref:
|
|
6930
|
-
className:
|
|
6931
|
+
ref: B,
|
|
6932
|
+
className: ie(H.knobContainer),
|
|
6931
6933
|
element: A.knobContainer ?? /* @__PURE__ */ x.jsx(or, {}),
|
|
6932
6934
|
style: z.knobContainer,
|
|
6933
|
-
children: /* @__PURE__ */ x.jsxs(he, { className:
|
|
6935
|
+
children: /* @__PURE__ */ x.jsxs(he, { className: ie(H.knob), element: A.knob ?? /* @__PURE__ */ x.jsx(rr, {}), style: ce(z.knob), children: [
|
|
6934
6936
|
/* @__PURE__ */ x.jsx("div", { style: z.knobHitBox }),
|
|
6935
|
-
k && /* @__PURE__ */ x.jsx(he, { className:
|
|
6937
|
+
k && /* @__PURE__ */ x.jsx(he, { className: ie(H.label), element: A.label ?? /* @__PURE__ */ x.jsx(ir, {}), style: ce(z.label), children: k(R) })
|
|
6936
6938
|
] })
|
|
6937
6939
|
}
|
|
6938
6940
|
)
|
|
@@ -6942,31 +6944,31 @@ const Hc = /* @__PURE__ */ Oe(({
|
|
|
6942
6944
|
}), en = ({ ...e }) => /* @__PURE__ */ x.jsx("div", { ...e }), rr = ({ ...e }) => /* @__PURE__ */ x.jsx("div", { ...e }), or = ({ ...e }) => /* @__PURE__ */ x.jsx("button", { ...e }), ir = ({ ...e }) => /* @__PURE__ */ x.jsx("div", { ...e });
|
|
6943
6945
|
function Yc({ orientation: e = "vertical", isAtEnd: r = !1, isAtStart: s = !1, isDragging: a = !1, isReleasing: l = !1 }) {
|
|
6944
6946
|
return {
|
|
6945
|
-
root:
|
|
6947
|
+
root: ie(e, {
|
|
6946
6948
|
"at-end": r,
|
|
6947
6949
|
"at-start": s,
|
|
6948
6950
|
dragging: a,
|
|
6949
6951
|
releasing: l
|
|
6950
6952
|
}),
|
|
6951
|
-
track:
|
|
6953
|
+
track: ie(e, {
|
|
6952
6954
|
"at-end": r,
|
|
6953
6955
|
"at-start": s,
|
|
6954
6956
|
dragging: a,
|
|
6955
6957
|
releasing: l
|
|
6956
6958
|
}),
|
|
6957
|
-
knob:
|
|
6959
|
+
knob: ie(e, {
|
|
6958
6960
|
"at-end": r,
|
|
6959
6961
|
"at-start": s,
|
|
6960
6962
|
dragging: a,
|
|
6961
6963
|
releasing: l
|
|
6962
6964
|
}),
|
|
6963
|
-
knobContainer:
|
|
6965
|
+
knobContainer: ie(e, {
|
|
6964
6966
|
"at-end": r,
|
|
6965
6967
|
"at-start": s,
|
|
6966
6968
|
dragging: a,
|
|
6967
6969
|
releasing: l
|
|
6968
6970
|
}),
|
|
6969
|
-
label:
|
|
6971
|
+
label: ie(e, {
|
|
6970
6972
|
"at-end": r,
|
|
6971
6973
|
"at-start": s,
|
|
6972
6974
|
dragging: a,
|
|
@@ -7060,9 +7062,9 @@ const Uc = /* @__PURE__ */ Oe(({
|
|
|
7060
7062
|
onIndexChange: j,
|
|
7061
7063
|
onPositionChange: K,
|
|
7062
7064
|
...W
|
|
7063
|
-
},
|
|
7064
|
-
const Y = Ee(null), S = Ee(null), C = nt(Y), [E, R] = Se(s), U = me((
|
|
7065
|
-
const le = l ? et(
|
|
7065
|
+
}, B) => {
|
|
7066
|
+
const Y = Ee(null), S = Ee(null), C = nt(Y), [E, R] = Se(s), U = me((D, ne, re) => {
|
|
7067
|
+
const le = l ? et(D) : D;
|
|
7066
7068
|
switch (P) {
|
|
7067
7069
|
case "horizontal": {
|
|
7068
7070
|
const pe = a ? C.width - m : C.width, Ne = le * pe + ne, Te = qt(Ne / pe);
|
|
@@ -7080,12 +7082,12 @@ const Uc = /* @__PURE__ */ Oe(({
|
|
|
7080
7082
|
transform: U,
|
|
7081
7083
|
onDragStart: b,
|
|
7082
7084
|
onDragEnd: M
|
|
7083
|
-
}), z = me((
|
|
7085
|
+
}), z = me((D) => {
|
|
7084
7086
|
if (!u) return;
|
|
7085
7087
|
const ne = ge.fromViewport();
|
|
7086
7088
|
switch (P) {
|
|
7087
7089
|
case "horizontal": {
|
|
7088
|
-
const re = (
|
|
7090
|
+
const re = (D.clientX + ne.left - C.left) / C.width, le = l ? et(re) : re, pe = Ot(le, k);
|
|
7089
7091
|
if (pe === E) {
|
|
7090
7092
|
const Ne = le > J ? pe + 1 : pe - 1;
|
|
7091
7093
|
R(qt(Ne, k.length - 1));
|
|
@@ -7094,7 +7096,7 @@ const Uc = /* @__PURE__ */ Oe(({
|
|
|
7094
7096
|
break;
|
|
7095
7097
|
}
|
|
7096
7098
|
case "vertical": {
|
|
7097
|
-
const re = (
|
|
7099
|
+
const re = (D.clientY + ne.top - C.top) / C.height, le = l ? et(re) : re, pe = Ot(le, k);
|
|
7098
7100
|
if (pe === E) {
|
|
7099
7101
|
const Ne = le > J ? pe + 1 : pe - 1, Te = dt(Ne, k);
|
|
7100
7102
|
H(Te), R(qt(Ne, k.length - 1));
|
|
@@ -7107,7 +7109,7 @@ const Uc = /* @__PURE__ */ Oe(({
|
|
|
7107
7109
|
default:
|
|
7108
7110
|
console.error(`[etudes::StepSlider] Invalid orientation: ${P}`);
|
|
7109
7111
|
}
|
|
7110
|
-
}, [C.width, C.left, C.top, C.height, E, J, l, u, P, We(k)]), A = l ? et(J) : J,
|
|
7112
|
+
}, [C.width, C.left, C.top, C.height, E, J, l, u, P, We(k)]), A = l ? et(J) : J, se = Gc({ orientation: P, isAtEnd: l ? J === 0 : J === 1, isAtStart: l ? J === 1 : J === 0, isDragging: G, isReleasing: te }), F = Wc({ orientation: P, naturalPosition: A, isClipped: a, knobPadding: g, knobHeight: p, knobWidth: m, isTrackInteractive: u }), T = ze(e, {
|
|
7111
7113
|
knob: sr,
|
|
7112
7114
|
knobContainer: ar,
|
|
7113
7115
|
label: cr,
|
|
@@ -7120,8 +7122,8 @@ const Uc = /* @__PURE__ */ Oe(({
|
|
|
7120
7122
|
if (_) return;
|
|
7121
7123
|
R(Ot(J, k));
|
|
7122
7124
|
} else {
|
|
7123
|
-
const
|
|
7124
|
-
H(ne), R(
|
|
7125
|
+
const D = Ot(J, k), ne = dt(D, k);
|
|
7126
|
+
H(ne), R(D);
|
|
7125
7127
|
}
|
|
7126
7128
|
}, [J, G, _, We(k)]), be(() => {
|
|
7127
7129
|
K?.(J, G);
|
|
@@ -7131,17 +7133,17 @@ const Uc = /* @__PURE__ */ Oe(({
|
|
|
7131
7133
|
"div",
|
|
7132
7134
|
{
|
|
7133
7135
|
...W,
|
|
7134
|
-
ref:
|
|
7136
|
+
ref: B,
|
|
7135
7137
|
"aria-valuenow": E,
|
|
7136
|
-
className:
|
|
7138
|
+
className: ie(r, se.root),
|
|
7137
7139
|
role: "slider",
|
|
7138
|
-
children: /* @__PURE__ */ x.jsxs("div", { ref: Y, style:
|
|
7140
|
+
children: /* @__PURE__ */ x.jsxs("div", { ref: Y, style: F.body, children: [
|
|
7139
7141
|
/* @__PURE__ */ x.jsx(
|
|
7140
7142
|
he,
|
|
7141
7143
|
{
|
|
7142
|
-
className:
|
|
7144
|
+
className: ie(l ? "end" : "start", se.track),
|
|
7143
7145
|
element: T.track ?? /* @__PURE__ */ x.jsx(tn, {}),
|
|
7144
|
-
style: ce(
|
|
7146
|
+
style: ce(F.track, P === "vertical" ? {
|
|
7145
7147
|
height: `calc(${A * 100}% - ${I <= 0 ? 0 : p * 0.5}px - ${I}px)`,
|
|
7146
7148
|
top: "0"
|
|
7147
7149
|
} : {
|
|
@@ -7149,15 +7151,15 @@ const Uc = /* @__PURE__ */ Oe(({
|
|
|
7149
7151
|
width: `calc(${A * 100}% - ${I <= 0 ? 0 : m * 0.5}px - ${I}px)`
|
|
7150
7152
|
}),
|
|
7151
7153
|
onClick: z,
|
|
7152
|
-
children: /* @__PURE__ */ x.jsx("div", { style:
|
|
7154
|
+
children: /* @__PURE__ */ x.jsx("div", { style: F.trackHitBox })
|
|
7153
7155
|
}
|
|
7154
7156
|
),
|
|
7155
7157
|
/* @__PURE__ */ x.jsx(
|
|
7156
7158
|
he,
|
|
7157
7159
|
{
|
|
7158
|
-
className:
|
|
7160
|
+
className: ie(l ? "start" : "end", se.track),
|
|
7159
7161
|
element: T.track ?? /* @__PURE__ */ x.jsx(tn, {}),
|
|
7160
|
-
style: ce(
|
|
7162
|
+
style: ce(F.track, P === "vertical" ? {
|
|
7161
7163
|
bottom: "0",
|
|
7162
7164
|
height: `calc(${et(A) * 100}% - ${I <= 0 ? 0 : p * 0.5}px - ${I}px)`
|
|
7163
7165
|
} : {
|
|
@@ -7165,19 +7167,19 @@ const Uc = /* @__PURE__ */ Oe(({
|
|
|
7165
7167
|
width: `calc(${et(A) * 100}% - ${I <= 0 ? 0 : m * 0.5}px - ${I}px)`
|
|
7166
7168
|
}),
|
|
7167
7169
|
onClick: z,
|
|
7168
|
-
children: /* @__PURE__ */ x.jsx("div", { style:
|
|
7170
|
+
children: /* @__PURE__ */ x.jsx("div", { style: F.trackHitBox })
|
|
7169
7171
|
}
|
|
7170
7172
|
),
|
|
7171
7173
|
/* @__PURE__ */ x.jsx(
|
|
7172
7174
|
he,
|
|
7173
7175
|
{
|
|
7174
7176
|
ref: S,
|
|
7175
|
-
className: se
|
|
7177
|
+
className: ie(se.knobContainer),
|
|
7176
7178
|
element: T.knobContainer ?? /* @__PURE__ */ x.jsx(ar, {}),
|
|
7177
|
-
style: ce(
|
|
7178
|
-
children: /* @__PURE__ */ x.jsxs(he, { className: se
|
|
7179
|
-
/* @__PURE__ */ x.jsx("div", { style:
|
|
7180
|
-
k && N && /* @__PURE__ */ x.jsx(he, { className: se
|
|
7179
|
+
style: ce(F.knobContainer),
|
|
7180
|
+
children: /* @__PURE__ */ x.jsxs(he, { className: ie(se.knob), element: T.knob ?? /* @__PURE__ */ x.jsx(sr, {}), style: ce(F.knob), children: [
|
|
7181
|
+
/* @__PURE__ */ x.jsx("div", { style: F.knobHitBox }),
|
|
7182
|
+
k && N && /* @__PURE__ */ x.jsx(he, { className: ie(se.label), element: T.label ?? /* @__PURE__ */ x.jsx(cr, {}), style: ce(F.label), children: N(J, Ot(J, k)) })
|
|
7181
7183
|
] })
|
|
7182
7184
|
}
|
|
7183
7185
|
)
|
|
@@ -7208,31 +7210,31 @@ function dt(e, r) {
|
|
|
7208
7210
|
}
|
|
7209
7211
|
function Gc({ orientation: e = "vertical", isAtEnd: r = !1, isAtStart: s = !1, isDragging: a = !1, isReleasing: l = !1 }) {
|
|
7210
7212
|
return {
|
|
7211
|
-
root:
|
|
7213
|
+
root: ie(e, {
|
|
7212
7214
|
"at-end": r,
|
|
7213
7215
|
"at-start": s,
|
|
7214
7216
|
dragging: a,
|
|
7215
7217
|
releasing: l
|
|
7216
7218
|
}),
|
|
7217
|
-
track:
|
|
7219
|
+
track: ie(e, {
|
|
7218
7220
|
"at-end": r,
|
|
7219
7221
|
"at-start": s,
|
|
7220
7222
|
dragging: a,
|
|
7221
7223
|
releasing: l
|
|
7222
7224
|
}),
|
|
7223
|
-
knob:
|
|
7225
|
+
knob: ie(e, {
|
|
7224
7226
|
"at-end": r,
|
|
7225
7227
|
"at-start": s,
|
|
7226
7228
|
dragging: a,
|
|
7227
7229
|
releasing: l
|
|
7228
7230
|
}),
|
|
7229
|
-
knobContainer:
|
|
7231
|
+
knobContainer: ie(e, {
|
|
7230
7232
|
"at-end": r,
|
|
7231
7233
|
"at-start": s,
|
|
7232
7234
|
dragging: a,
|
|
7233
7235
|
releasing: l
|
|
7234
7236
|
}),
|
|
7235
|
-
label:
|
|
7237
|
+
label: ie(e, {
|
|
7236
7238
|
"at-end": r,
|
|
7237
7239
|
"at-start": s,
|
|
7238
7240
|
dragging: a,
|
|
@@ -7322,18 +7324,18 @@ const Kc = /* @__PURE__ */ Oe(({
|
|
|
7322
7324
|
onSwipeUp: p,
|
|
7323
7325
|
...g
|
|
7324
7326
|
}, m) => {
|
|
7325
|
-
const [N, _] = Se(void 0), [P, k] = Se(void 0), [I, M] = Se(NaN), b = (
|
|
7326
|
-
if (isNaN(
|
|
7327
|
-
_(de.make(
|
|
7328
|
-
}, j = (
|
|
7327
|
+
const [N, _] = Se(void 0), [P, k] = Se(void 0), [I, M] = Se(NaN), b = (B, Y) => {
|
|
7328
|
+
if (isNaN(B) || isNaN(Y)) return W();
|
|
7329
|
+
_(de.make(B, Y));
|
|
7330
|
+
}, j = (B, Y) => {
|
|
7329
7331
|
const S = N;
|
|
7330
7332
|
if (S === void 0) return;
|
|
7331
|
-
const C = S.x !==
|
|
7332
|
-
C && (E || M(Date.now()), k(de.make(
|
|
7333
|
+
const C = S.x !== B || S.y !== Y, E = !isNaN(I);
|
|
7334
|
+
C && (E || M(Date.now()), k(de.make(B, Y)));
|
|
7333
7335
|
}, K = () => {
|
|
7334
|
-
const
|
|
7335
|
-
if (isNaN(
|
|
7336
|
-
const C = Date.now() -
|
|
7336
|
+
const B = I, Y = N, S = P;
|
|
7337
|
+
if (isNaN(B) || Y === void 0 || S === void 0) return;
|
|
7338
|
+
const C = Date.now() - B, E = S.x - Y.x, R = S.y - Y.y, U = E / C, G = R / C;
|
|
7337
7339
|
r && (Math.abs(U) >= s && Math.abs(U) > Math.abs(G) ? U > 0 ? u?.() : l?.() : Math.abs(G) >= s && Math.abs(G) > Math.abs(U) && (G > 0 ? a?.() : p?.())), W();
|
|
7338
7340
|
}, W = () => {
|
|
7339
7341
|
_(void 0), k(void 0), M(NaN);
|
|
@@ -7343,13 +7345,13 @@ const Kc = /* @__PURE__ */ Oe(({
|
|
|
7343
7345
|
{
|
|
7344
7346
|
...g,
|
|
7345
7347
|
ref: m,
|
|
7346
|
-
onMouseDown: (
|
|
7348
|
+
onMouseDown: (B) => b(B.clientX, B.clientY),
|
|
7347
7349
|
onMouseLeave: () => W(),
|
|
7348
|
-
onMouseMove: (
|
|
7350
|
+
onMouseMove: (B) => j(B.clientX, B.clientY),
|
|
7349
7351
|
onMouseUp: () => K(),
|
|
7350
7352
|
onTouchEnd: () => K(),
|
|
7351
|
-
onTouchMove: (
|
|
7352
|
-
onTouchStart: (
|
|
7353
|
+
onTouchMove: (B) => j(B.targetTouches[0].clientX, B.targetTouches[0].clientY),
|
|
7354
|
+
onTouchStart: (B) => b(B.targetTouches[0].clientX, B.targetTouches[0].clientY),
|
|
7353
7355
|
children: e
|
|
7354
7356
|
}
|
|
7355
7357
|
);
|
|
@@ -7381,16 +7383,16 @@ const Zc = Oe(({
|
|
|
7381
7383
|
knob: ur,
|
|
7382
7384
|
track: lr
|
|
7383
7385
|
}), k = Qc({ isOn: a }), I = el({ isOn: a, isInverted: s, orientation: l, knobSize: _ });
|
|
7384
|
-
return /* @__PURE__ */ x.jsxs("label", { ...g, ref: m, className:
|
|
7386
|
+
return /* @__PURE__ */ x.jsxs("label", { ...g, ref: m, className: ie(e, k.root), style: ce(u, I.root), children: [
|
|
7385
7387
|
/* @__PURE__ */ x.jsx("input", { checked: a, style: I.input, type: "checkbox", onChange: (M) => p?.(M.target.checked) }),
|
|
7386
7388
|
/* @__PURE__ */ x.jsx(he, { className: k.track, element: P.track ?? /* @__PURE__ */ x.jsx(lr, {}), style: I.track, children: /* @__PURE__ */ x.jsx("div", { style: { position: "relative", width: "100%", height: "100%" }, children: /* @__PURE__ */ x.jsx(he, { ref: N, className: k.knob, element: P.knob ?? /* @__PURE__ */ x.jsx(ur, {}), style: I.knob }) }) })
|
|
7387
7389
|
] });
|
|
7388
7390
|
}), lr = ({ children: e, ...r }) => /* @__PURE__ */ x.jsx("div", { ...r, children: e }), ur = ({ children: e, ...r }) => /* @__PURE__ */ x.jsx("div", { ...r, children: e });
|
|
7389
7391
|
function Qc({ isOn: e = !1 }) {
|
|
7390
7392
|
return {
|
|
7391
|
-
root:
|
|
7392
|
-
knob:
|
|
7393
|
-
track:
|
|
7393
|
+
root: ie({ active: e }),
|
|
7394
|
+
knob: ie({ active: e }),
|
|
7395
|
+
track: ie({ active: e })
|
|
7394
7396
|
};
|
|
7395
7397
|
}
|
|
7396
7398
|
function el({ isOn: e = !1, isInverted: r = !1, knobSize: s = Me.zero, orientation: a = "horizontal" }) {
|
|
@@ -7476,11 +7478,11 @@ function tl({
|
|
|
7476
7478
|
}) {
|
|
7477
7479
|
const _ = Ee(null), P = Ee(void 0), k = nt(_), I = me(() => {
|
|
7478
7480
|
const j = document.createElement("span");
|
|
7479
|
-
j.className =
|
|
7480
|
-
const K = a ?? (_.current ? rl(_.current, N) : "tl"), W = nl(j),
|
|
7481
|
+
j.className = ie(r), j.innerHTML = g, j.role = "tooltip";
|
|
7482
|
+
const K = a ?? (_.current ? rl(_.current, N) : "tl"), W = nl(j), B = sl({ alignment: K, arrowSize: Me.make(u, l), gap: p, maxDialogWidth: m, fullDialogWidth: W.width, targetWidth: k.width }), Y = ce(s, B.dialog);
|
|
7481
7483
|
Object.keys(Y).forEach((C) => j.style[C] = Y[C]);
|
|
7482
7484
|
const S = document.createElement("span");
|
|
7483
|
-
return Object.keys(
|
|
7485
|
+
return Object.keys(B.arrow).forEach((C) => S.style[C] = B.arrow[C]), j.appendChild(S), j;
|
|
7484
7486
|
}, [r, a, g, m, We(s), k.width, N, l, u, p]), M = me(() => {
|
|
7485
7487
|
P.current && (P.current.style.opacity = "1", P.current.ariaHidden = "false");
|
|
7486
7488
|
}, []), b = me(() => {
|