@cyca/react-timeline-editor 0.2.4-alpha.2 → 0.2.4-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +7 -0
- package/dist/react-timeline-editor.cjs +4 -4
- package/dist/react-timeline-editor.js +671 -655
- package/package.json +2 -2
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as b from "react";
|
|
2
|
-
import
|
|
3
|
-
import { D as En, a as Yt, b as Qn, c as Gt, d as en, M as Mr, P as hn, e as mn, f as Kt, p as
|
|
2
|
+
import nt, { useRef as ne, useEffect as st, useLayoutEffect as Qt, useImperativeHandle as Zn, useState as Mt, useMemo as Pr, useCallback as Lr, createElement as Dr, Activity as Or } from "react";
|
|
3
|
+
import { D as En, a as Yt, b as Qn, c as Gt, d as en, M as Mr, P as hn, e as mn, f as Kt, p as De, g as vn, h as Lt, i as Nr, j as Ct, k as er, l as Ir, S as yn } from "./index-Do2XgyZc.js";
|
|
4
4
|
import { flushSync as kr } from "react-dom";
|
|
5
|
-
var jt = { exports: {} },
|
|
5
|
+
var jt = { exports: {} }, Dt = {};
|
|
6
6
|
var xn;
|
|
7
7
|
function Wr() {
|
|
8
|
-
if (xn) return
|
|
8
|
+
if (xn) return Dt;
|
|
9
9
|
xn = 1;
|
|
10
10
|
var n = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
|
|
11
11
|
function t(r, s, o) {
|
|
@@ -23,7 +23,7 @@ function Wr() {
|
|
|
23
23
|
props: o
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
|
-
return
|
|
26
|
+
return Dt.Fragment = e, Dt.jsx = t, Dt.jsxs = t, Dt;
|
|
27
27
|
}
|
|
28
28
|
var Ot = {};
|
|
29
29
|
var Rn;
|
|
@@ -32,7 +32,7 @@ function zr() {
|
|
|
32
32
|
function n(d) {
|
|
33
33
|
if (d == null) return null;
|
|
34
34
|
if (typeof d == "function")
|
|
35
|
-
return d.$$typeof ===
|
|
35
|
+
return d.$$typeof === j ? null : d.displayName || d.name || null;
|
|
36
36
|
if (typeof d == "string") return d;
|
|
37
37
|
switch (d) {
|
|
38
38
|
case y:
|
|
@@ -43,9 +43,9 @@ function zr() {
|
|
|
43
43
|
return "StrictMode";
|
|
44
44
|
case E:
|
|
45
45
|
return "Suspense";
|
|
46
|
-
case
|
|
46
|
+
case A:
|
|
47
47
|
return "SuspenseList";
|
|
48
|
-
case
|
|
48
|
+
case N:
|
|
49
49
|
return "Activity";
|
|
50
50
|
}
|
|
51
51
|
if (typeof d == "object")
|
|
@@ -59,14 +59,14 @@ function zr() {
|
|
|
59
59
|
case p:
|
|
60
60
|
return (d._context.displayName || "Context") + ".Consumer";
|
|
61
61
|
case R:
|
|
62
|
-
var
|
|
63
|
-
return d = d.displayName, d || (d =
|
|
64
|
-
case
|
|
65
|
-
return
|
|
62
|
+
var T = d.render;
|
|
63
|
+
return d = d.displayName, d || (d = T.displayName || T.name || "", d = d !== "" ? "ForwardRef(" + d + ")" : "ForwardRef"), d;
|
|
64
|
+
case I:
|
|
65
|
+
return T = d.displayName || null, T !== null ? T : n(d.type) || "Memo";
|
|
66
66
|
case P:
|
|
67
|
-
|
|
67
|
+
T = d._payload, d = d._init;
|
|
68
68
|
try {
|
|
69
|
-
return n(d(
|
|
69
|
+
return n(d(T));
|
|
70
70
|
} catch {
|
|
71
71
|
}
|
|
72
72
|
}
|
|
@@ -78,17 +78,17 @@ function zr() {
|
|
|
78
78
|
function t(d) {
|
|
79
79
|
try {
|
|
80
80
|
e(d);
|
|
81
|
-
var
|
|
81
|
+
var T = !1;
|
|
82
82
|
} catch {
|
|
83
|
-
|
|
83
|
+
T = !0;
|
|
84
84
|
}
|
|
85
|
-
if (
|
|
86
|
-
|
|
87
|
-
var
|
|
88
|
-
return
|
|
89
|
-
|
|
85
|
+
if (T) {
|
|
86
|
+
T = console;
|
|
87
|
+
var D = T.error, F = typeof Symbol == "function" && Symbol.toStringTag && d[Symbol.toStringTag] || d.constructor.name || "Object";
|
|
88
|
+
return D.call(
|
|
89
|
+
T,
|
|
90
90
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
91
|
-
|
|
91
|
+
F
|
|
92
92
|
), e(d);
|
|
93
93
|
}
|
|
94
94
|
}
|
|
@@ -97,14 +97,14 @@ function zr() {
|
|
|
97
97
|
if (typeof d == "object" && d !== null && d.$$typeof === P)
|
|
98
98
|
return "<...>";
|
|
99
99
|
try {
|
|
100
|
-
var
|
|
101
|
-
return
|
|
100
|
+
var T = n(d);
|
|
101
|
+
return T ? "<" + T + ">" : "<...>";
|
|
102
102
|
} catch {
|
|
103
103
|
return "<...>";
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
function s() {
|
|
107
|
-
var d =
|
|
107
|
+
var d = q.A;
|
|
108
108
|
return d === null ? null : d.getOwner();
|
|
109
109
|
}
|
|
110
110
|
function o() {
|
|
@@ -112,20 +112,20 @@ function zr() {
|
|
|
112
112
|
}
|
|
113
113
|
function i(d) {
|
|
114
114
|
if ($.call(d, "key")) {
|
|
115
|
-
var
|
|
116
|
-
if (
|
|
115
|
+
var T = Object.getOwnPropertyDescriptor(d, "key").get;
|
|
116
|
+
if (T && T.isReactWarning) return !1;
|
|
117
117
|
}
|
|
118
118
|
return d.key !== void 0;
|
|
119
119
|
}
|
|
120
|
-
function c(d,
|
|
121
|
-
function
|
|
122
|
-
|
|
120
|
+
function c(d, T) {
|
|
121
|
+
function D() {
|
|
122
|
+
C || (C = !0, console.error(
|
|
123
123
|
"%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)",
|
|
124
|
-
|
|
124
|
+
T
|
|
125
125
|
));
|
|
126
126
|
}
|
|
127
|
-
|
|
128
|
-
get:
|
|
127
|
+
D.isReactWarning = !0, Object.defineProperty(d, "key", {
|
|
128
|
+
get: D,
|
|
129
129
|
configurable: !0
|
|
130
130
|
});
|
|
131
131
|
}
|
|
@@ -135,15 +135,15 @@ function zr() {
|
|
|
135
135
|
"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."
|
|
136
136
|
)), d = this.props.ref, d !== void 0 ? d : null;
|
|
137
137
|
}
|
|
138
|
-
function u(d,
|
|
139
|
-
var
|
|
138
|
+
function u(d, T, D, F, le, k) {
|
|
139
|
+
var z = D.ref;
|
|
140
140
|
return d = {
|
|
141
141
|
$$typeof: w,
|
|
142
142
|
type: d,
|
|
143
|
-
key:
|
|
144
|
-
props:
|
|
145
|
-
_owner:
|
|
146
|
-
}, (
|
|
143
|
+
key: T,
|
|
144
|
+
props: D,
|
|
145
|
+
_owner: F
|
|
146
|
+
}, (z !== void 0 ? z : null) !== null ? Object.defineProperty(d, "ref", {
|
|
147
147
|
enumerable: !1,
|
|
148
148
|
get: a
|
|
149
149
|
}) : Object.defineProperty(d, "ref", { enumerable: !1, value: null }), d._store = {}, Object.defineProperty(d._store, "validated", {
|
|
@@ -160,60 +160,60 @@ function zr() {
|
|
|
160
160
|
configurable: !1,
|
|
161
161
|
enumerable: !1,
|
|
162
162
|
writable: !0,
|
|
163
|
-
value:
|
|
163
|
+
value: le
|
|
164
164
|
}), Object.defineProperty(d, "_debugTask", {
|
|
165
165
|
configurable: !1,
|
|
166
166
|
enumerable: !1,
|
|
167
167
|
writable: !0,
|
|
168
|
-
value:
|
|
168
|
+
value: k
|
|
169
169
|
}), Object.freeze && (Object.freeze(d.props), Object.freeze(d)), d;
|
|
170
170
|
}
|
|
171
|
-
function l(d,
|
|
172
|
-
var
|
|
173
|
-
if (
|
|
174
|
-
if (
|
|
175
|
-
if (
|
|
176
|
-
for (
|
|
177
|
-
m(
|
|
178
|
-
Object.freeze && Object.freeze(
|
|
171
|
+
function l(d, T, D, F, le, k) {
|
|
172
|
+
var z = T.children;
|
|
173
|
+
if (z !== void 0)
|
|
174
|
+
if (F)
|
|
175
|
+
if (re(z)) {
|
|
176
|
+
for (F = 0; F < z.length; F++)
|
|
177
|
+
m(z[F]);
|
|
178
|
+
Object.freeze && Object.freeze(z);
|
|
179
179
|
} else
|
|
180
180
|
console.error(
|
|
181
181
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
182
182
|
);
|
|
183
|
-
else m(
|
|
184
|
-
if ($.call(
|
|
185
|
-
|
|
186
|
-
var O = Object.keys(
|
|
187
|
-
return
|
|
183
|
+
else m(z);
|
|
184
|
+
if ($.call(T, "key")) {
|
|
185
|
+
z = n(d);
|
|
186
|
+
var O = Object.keys(T).filter(function(L) {
|
|
187
|
+
return L !== "key";
|
|
188
188
|
});
|
|
189
|
-
|
|
189
|
+
F = 0 < O.length ? "{key: someKey, " + O.join(": ..., ") + ": ...}" : "{key: someKey}", Z[z + F] || (O = 0 < O.length ? "{" + O.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
190
190
|
`A props object containing a "key" prop is being spread into JSX:
|
|
191
191
|
let props = %s;
|
|
192
192
|
<%s {...props} />
|
|
193
193
|
React keys must be passed directly to JSX without using spread:
|
|
194
194
|
let props = %s;
|
|
195
195
|
<%s key={someKey} {...props} />`,
|
|
196
|
-
|
|
197
|
-
|
|
196
|
+
F,
|
|
197
|
+
z,
|
|
198
198
|
O,
|
|
199
|
-
|
|
200
|
-
),
|
|
199
|
+
z
|
|
200
|
+
), Z[z + F] = !0);
|
|
201
201
|
}
|
|
202
|
-
if (
|
|
203
|
-
|
|
204
|
-
for (var
|
|
205
|
-
|
|
206
|
-
} else
|
|
207
|
-
return
|
|
208
|
-
|
|
202
|
+
if (z = null, D !== void 0 && (t(D), z = "" + D), i(T) && (t(T.key), z = "" + T.key), "key" in T) {
|
|
203
|
+
D = {};
|
|
204
|
+
for (var W in T)
|
|
205
|
+
W !== "key" && (D[W] = T[W]);
|
|
206
|
+
} else D = T;
|
|
207
|
+
return z && c(
|
|
208
|
+
D,
|
|
209
209
|
typeof d == "function" ? d.displayName || d.name || "Unknown" : d
|
|
210
210
|
), u(
|
|
211
211
|
d,
|
|
212
|
-
|
|
213
|
-
|
|
212
|
+
z,
|
|
213
|
+
D,
|
|
214
214
|
s(),
|
|
215
|
-
|
|
216
|
-
|
|
215
|
+
le,
|
|
216
|
+
k
|
|
217
217
|
);
|
|
218
218
|
}
|
|
219
219
|
function m(d) {
|
|
@@ -222,7 +222,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
222
222
|
function f(d) {
|
|
223
223
|
return typeof d == "object" && d !== null && d.$$typeof === w;
|
|
224
224
|
}
|
|
225
|
-
var g =
|
|
225
|
+
var g = nt, w = Symbol.for("react.transitional.element"), S = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), _ = Symbol.for("react.strict_mode"), h = Symbol.for("react.profiler"), p = Symbol.for("react.consumer"), v = Symbol.for("react.context"), R = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), A = Symbol.for("react.suspense_list"), I = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), N = Symbol.for("react.activity"), j = Symbol.for("react.client.reference"), q = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, $ = Object.prototype.hasOwnProperty, re = Array.isArray, Y = console.createTask ? console.createTask : function() {
|
|
226
226
|
return null;
|
|
227
227
|
};
|
|
228
228
|
g = {
|
|
@@ -230,36 +230,36 @@ React keys must be passed directly to JSX without using spread:
|
|
|
230
230
|
return d();
|
|
231
231
|
}
|
|
232
232
|
};
|
|
233
|
-
var
|
|
233
|
+
var C, M = {}, K = g.react_stack_bottom_frame.bind(
|
|
234
234
|
g,
|
|
235
235
|
o
|
|
236
|
-
)(),
|
|
237
|
-
Ot.Fragment = y, Ot.jsx = function(d,
|
|
238
|
-
var
|
|
236
|
+
)(), J = Y(r(o)), Z = {};
|
|
237
|
+
Ot.Fragment = y, Ot.jsx = function(d, T, D) {
|
|
238
|
+
var F = 1e4 > q.recentlyCreatedOwnerStacks++;
|
|
239
239
|
return l(
|
|
240
240
|
d,
|
|
241
|
-
|
|
242
|
-
|
|
241
|
+
T,
|
|
242
|
+
D,
|
|
243
243
|
!1,
|
|
244
|
-
|
|
245
|
-
|
|
244
|
+
F ? Error("react-stack-top-frame") : K,
|
|
245
|
+
F ? Y(r(d)) : J
|
|
246
246
|
);
|
|
247
|
-
}, Ot.jsxs = function(d,
|
|
248
|
-
var
|
|
247
|
+
}, Ot.jsxs = function(d, T, D) {
|
|
248
|
+
var F = 1e4 > q.recentlyCreatedOwnerStacks++;
|
|
249
249
|
return l(
|
|
250
250
|
d,
|
|
251
|
-
|
|
252
|
-
|
|
251
|
+
T,
|
|
252
|
+
D,
|
|
253
253
|
!0,
|
|
254
|
-
|
|
255
|
-
|
|
254
|
+
F ? Error("react-stack-top-frame") : K,
|
|
255
|
+
F ? Y(r(d)) : J
|
|
256
256
|
);
|
|
257
257
|
};
|
|
258
258
|
})()), Ot;
|
|
259
259
|
}
|
|
260
|
-
var
|
|
260
|
+
var Tn;
|
|
261
261
|
function jr() {
|
|
262
|
-
return
|
|
262
|
+
return Tn || (Tn = 1, process.env.NODE_ENV === "production" ? jt.exports = Wr() : jt.exports = zr()), jt.exports;
|
|
263
263
|
}
|
|
264
264
|
var x = jr();
|
|
265
265
|
const on = {
|
|
@@ -363,7 +363,7 @@ const $r = {
|
|
|
363
363
|
info: "#b6bd73",
|
|
364
364
|
warn: "#88a1bb",
|
|
365
365
|
error: "#bf6c69"
|
|
366
|
-
},
|
|
366
|
+
}, Cn = {
|
|
367
367
|
info: "⚡️",
|
|
368
368
|
success: "✔",
|
|
369
369
|
warn: "▲",
|
|
@@ -372,9 +372,9 @@ const $r = {
|
|
|
372
372
|
trace: "◔",
|
|
373
373
|
debug: "◌"
|
|
374
374
|
}, Hr = { bind(n, e, t) {
|
|
375
|
-
const r = t ? `${
|
|
375
|
+
const r = t ? `${Cn[e]} ${String(t)}:` : `${Cn[e]}`;
|
|
376
376
|
return (n[e] || n.log).bind(n, `%c${r}%c`, `color: ${$r[e]}; font-weight: bold;`, "color: inherit");
|
|
377
|
-
} },
|
|
377
|
+
} }, et = nr(new Vr(new Ur(), Hr));
|
|
378
378
|
function Br(n) {
|
|
379
379
|
let {
|
|
380
380
|
editorData: e = [],
|
|
@@ -387,7 +387,7 @@ function Br(n) {
|
|
|
387
387
|
maxScaleCount: a = 1 / 0,
|
|
388
388
|
rowHeight: u = En
|
|
389
389
|
} = n;
|
|
390
|
-
r <= 0 && (
|
|
390
|
+
r <= 0 && (et.error("Error: scale must be greater than 0!"), r = Yt), s <= 0 && (et.warn("Warning: scaleSplitCount cannot be less than 1!"), s = 1), o <= 0 && (et.warn("Warning: scaleWidth must be greater than 0!"), o = Gt), i < 0 && (et.warn("Warning: startLeft cannot be less than 0!"), i = 0), c && typeof c == "number" && (c < 1 && (et.warn("Warning: minScaleCount must be greater than 1!"), c = Mr), c = parseInt(c + ""), a < c && (et.warn("Warning: maxScaleCount cannot be less than minScaleCount!"), a = c)), a = a === 1 / 0 ? 1 / 0 : parseInt(a + ""), u <= 0 && (et.warn("Warning: rowHeight must be greater than 0!"), u = En);
|
|
391
391
|
const l = {
|
|
392
392
|
...n
|
|
393
393
|
};
|
|
@@ -421,7 +421,7 @@ var An;
|
|
|
421
421
|
function Yr() {
|
|
422
422
|
if (An) return cn;
|
|
423
423
|
An = 1;
|
|
424
|
-
var n =
|
|
424
|
+
var n = nt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
425
425
|
return cn.c = function(e) {
|
|
426
426
|
return n.H.useMemoCache(e);
|
|
427
427
|
}, cn;
|
|
@@ -430,7 +430,7 @@ var an = {};
|
|
|
430
430
|
var Pn;
|
|
431
431
|
function Gr() {
|
|
432
432
|
return Pn || (Pn = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
433
|
-
var n =
|
|
433
|
+
var n = nt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
434
434
|
an.c = function(e) {
|
|
435
435
|
var t = n.H;
|
|
436
436
|
return t === null && console.error(
|
|
@@ -443,13 +443,13 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
443
443
|
};
|
|
444
444
|
})()), an;
|
|
445
445
|
}
|
|
446
|
-
var
|
|
446
|
+
var Ln;
|
|
447
447
|
function Kr() {
|
|
448
|
-
return
|
|
448
|
+
return Ln || (Ln = 1, process.env.NODE_ENV === "production" ? Ft.exports = Yr() : Ft.exports = Gr()), Ft.exports;
|
|
449
449
|
}
|
|
450
|
-
var
|
|
450
|
+
var Oe = Kr();
|
|
451
451
|
const qr = (n) => {
|
|
452
|
-
const e =
|
|
452
|
+
const e = Oe.c(11), {
|
|
453
453
|
isMoving: t,
|
|
454
454
|
movePositions: r,
|
|
455
455
|
assistPositions: s
|
|
@@ -471,9 +471,9 @@ function Jr(n, e) {
|
|
|
471
471
|
left: n
|
|
472
472
|
} }, e);
|
|
473
473
|
}
|
|
474
|
-
const Vt = 1,
|
|
474
|
+
const Vt = 1, Dn = 10, On = 10;
|
|
475
475
|
function Zr(n) {
|
|
476
|
-
const e =
|
|
476
|
+
const e = Oe.c(7), t = ne(Number.MIN_SAFE_INTEGER), r = ne(Number.MAX_SAFE_INTEGER), s = ne(Vt), o = ne(void 0);
|
|
477
477
|
let i;
|
|
478
478
|
e[0] !== n ? (i = () => {
|
|
479
479
|
if (n?.current) {
|
|
@@ -490,7 +490,7 @@ function Zr(n) {
|
|
|
490
490
|
if (S.clientX >= r.current || S.clientX <= t.current) {
|
|
491
491
|
o.current !== void 0 && cancelAnimationFrame(o.current);
|
|
492
492
|
const _ = Math.abs(S.clientX >= r.current ? S.clientX - r.current : S.clientX - t.current);
|
|
493
|
-
s.current = Math.min(Number((_ / On).toFixed(0)) * Vt,
|
|
493
|
+
s.current = Math.min(Number((_ / On).toFixed(0)) * Vt, Dn);
|
|
494
494
|
const p = (S.clientX >= r.current ? 1 : -1) * s.current, v = () => {
|
|
495
495
|
y && y(p), o.current = requestAnimationFrame(v);
|
|
496
496
|
};
|
|
@@ -505,7 +505,7 @@ function Zr(n) {
|
|
|
505
505
|
if (S.clientX >= r.current || S.clientX < t.current) {
|
|
506
506
|
o.current !== void 0 && cancelAnimationFrame(o.current);
|
|
507
507
|
const h = Math.abs(S.clientX >= r.current ? S.clientX - r.current : S.clientX - t.current);
|
|
508
|
-
s.current = Math.min(Number((h / On).toFixed(0)) * Vt,
|
|
508
|
+
s.current = Math.min(Number((h / On).toFixed(0)) * Vt, Dn);
|
|
509
509
|
const v = (S.clientX >= r.current ? 1 : -1) * s.current, R = () => {
|
|
510
510
|
_ && _(v), o.current = requestAnimationFrame(R);
|
|
511
511
|
};
|
|
@@ -590,7 +590,7 @@ function In(n, e) {
|
|
|
590
590
|
}
|
|
591
591
|
return t;
|
|
592
592
|
}
|
|
593
|
-
function
|
|
593
|
+
function Q(n) {
|
|
594
594
|
for (var e = 1; e < arguments.length; e++) {
|
|
595
595
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
596
596
|
e % 2 ? In(Object(t), !0).forEach(function(r) {
|
|
@@ -783,8 +783,8 @@ class gs {
|
|
|
783
783
|
if (r.hasCustomTransform ? (l[0] === !1 && (l[0] = Math.abs(i) >= a && m[0]), l[1] === !1 && (l[1] = Math.abs(c) >= u && m[1])) : (l[0] === !1 && (l[0] = Math.abs(i) >= a && Math.sign(i) * a), l[1] === !1 && (l[1] = Math.abs(c) >= u && Math.sign(c) * u)), t.intentional = l[0] !== !1 || l[1] !== !1, !t.intentional) return;
|
|
784
784
|
const f = [0, 0];
|
|
785
785
|
if (r.hasCustomTransform) {
|
|
786
|
-
const [E,
|
|
787
|
-
f[0] = l[0] !== !1 ? E - l[0] : 0, f[1] = l[1] !== !1 ?
|
|
786
|
+
const [E, A] = m;
|
|
787
|
+
f[0] = l[0] !== !1 ? E - l[0] : 0, f[1] = l[1] !== !1 ? A - l[1] : 0;
|
|
788
788
|
} else
|
|
789
789
|
f[0] = l[0] !== !1 ? i - l[0] : 0, f[1] = l[1] !== !1 ? c - l[1] : 0;
|
|
790
790
|
this.restrictToAxis && !t._blocked && this.restrictToAxis(f);
|
|
@@ -802,7 +802,7 @@ class gs {
|
|
|
802
802
|
emit() {
|
|
803
803
|
const e = this.state, t = this.shared, r = this.config;
|
|
804
804
|
if (e._active || this.clean(), (e._blocked || !e.intentional) && !e._force && !r.triggerAllEvents) return;
|
|
805
|
-
const s = this.handler(
|
|
805
|
+
const s = this.handler(Q(Q(Q({}, t), e), {}, {
|
|
806
806
|
[this.aliasKey]: e.values
|
|
807
807
|
}));
|
|
808
808
|
s !== void 0 && (e.memo = s);
|
|
@@ -859,7 +859,7 @@ const jn = (n) => n, Fn = 0.15, bn = {
|
|
|
859
859
|
return n;
|
|
860
860
|
},
|
|
861
861
|
eventOptions(n, e, t) {
|
|
862
|
-
return
|
|
862
|
+
return Q(Q({}, t.shared.eventOptions), n);
|
|
863
863
|
},
|
|
864
864
|
preventDefault(n = !1) {
|
|
865
865
|
return n;
|
|
@@ -913,7 +913,7 @@ process.env.NODE_ENV === "development" && Object.assign(bn, {
|
|
|
913
913
|
return NaN;
|
|
914
914
|
}
|
|
915
915
|
});
|
|
916
|
-
const Ss = 0, Nt =
|
|
916
|
+
const Ss = 0, Nt = Q(Q({}, bn), {}, {
|
|
917
917
|
axis(n, e, {
|
|
918
918
|
axis: t
|
|
919
919
|
}) {
|
|
@@ -1114,11 +1114,11 @@ const xe = {
|
|
|
1114
1114
|
touchscreen: Es(),
|
|
1115
1115
|
pointer: ys(),
|
|
1116
1116
|
pointerLock: xs()
|
|
1117
|
-
},
|
|
1117
|
+
}, Ts = 250, Cs = 180, As = 0.5, Ps = 50, Ls = 250, Ds = 10, Un = {
|
|
1118
1118
|
mouse: 0,
|
|
1119
1119
|
touch: 0,
|
|
1120
1120
|
pen: 8
|
|
1121
|
-
}, cr =
|
|
1121
|
+
}, cr = Q(Q({}, Nt), {}, {
|
|
1122
1122
|
device(n, e, {
|
|
1123
1123
|
pointer: {
|
|
1124
1124
|
touch: t = !1,
|
|
@@ -1131,7 +1131,7 @@ const xe = {
|
|
|
1131
1131
|
preventScrollAxis(n, e, {
|
|
1132
1132
|
preventScroll: t
|
|
1133
1133
|
}) {
|
|
1134
|
-
if (this.preventScrollDelay = typeof t == "number" ? t : t || t === void 0 && n ?
|
|
1134
|
+
if (this.preventScrollDelay = typeof t == "number" ? t : t || t === void 0 && n ? Ts : void 0, !(!xe.touchscreen || t === !1))
|
|
1135
1135
|
return n || (t !== void 0 ? "y" : void 0);
|
|
1136
1136
|
},
|
|
1137
1137
|
pointerCapture(n, e, {
|
|
@@ -1154,7 +1154,7 @@ const xe = {
|
|
|
1154
1154
|
swipe({
|
|
1155
1155
|
velocity: n = As,
|
|
1156
1156
|
distance: e = Ps,
|
|
1157
|
-
duration: t =
|
|
1157
|
+
duration: t = Ls
|
|
1158
1158
|
} = {}) {
|
|
1159
1159
|
return {
|
|
1160
1160
|
velocity: this.transform(ge.toVector(n)),
|
|
@@ -1165,7 +1165,7 @@ const xe = {
|
|
|
1165
1165
|
delay(n = 0) {
|
|
1166
1166
|
switch (n) {
|
|
1167
1167
|
case !0:
|
|
1168
|
-
return
|
|
1168
|
+
return Cs;
|
|
1169
1169
|
case !1:
|
|
1170
1170
|
return 0;
|
|
1171
1171
|
default:
|
|
@@ -1173,9 +1173,9 @@ const xe = {
|
|
|
1173
1173
|
}
|
|
1174
1174
|
},
|
|
1175
1175
|
axisThreshold(n) {
|
|
1176
|
-
return n ?
|
|
1176
|
+
return n ? Q(Q({}, Un), n) : Un;
|
|
1177
1177
|
},
|
|
1178
|
-
keyboardDisplacement(n =
|
|
1178
|
+
keyboardDisplacement(n = Ds) {
|
|
1179
1179
|
return n;
|
|
1180
1180
|
}
|
|
1181
1181
|
});
|
|
@@ -1206,7 +1206,7 @@ process.env.NODE_ENV === "development" && Object.assign(cr, {
|
|
|
1206
1206
|
return NaN;
|
|
1207
1207
|
}
|
|
1208
1208
|
});
|
|
1209
|
-
|
|
1209
|
+
Q(Q({}, bn), {}, {
|
|
1210
1210
|
device(n, e, {
|
|
1211
1211
|
shared: t,
|
|
1212
1212
|
pointer: {
|
|
@@ -1249,10 +1249,10 @@ Z(Z({}, bn), {}, {
|
|
|
1249
1249
|
return n;
|
|
1250
1250
|
}
|
|
1251
1251
|
});
|
|
1252
|
-
|
|
1252
|
+
Q(Q({}, Nt), {}, {
|
|
1253
1253
|
mouseOnly: (n = !0) => n
|
|
1254
1254
|
});
|
|
1255
|
-
|
|
1255
|
+
Q(Q({}, Nt), {}, {
|
|
1256
1256
|
mouseOnly: (n = !0) => n
|
|
1257
1257
|
});
|
|
1258
1258
|
const ar = /* @__PURE__ */ new Map(), pn = /* @__PURE__ */ new Map();
|
|
@@ -1341,14 +1341,14 @@ function zs(n, e, t = {}) {
|
|
|
1341
1341
|
transform: a
|
|
1342
1342
|
}, ks), e) {
|
|
1343
1343
|
const l = pn.get(e);
|
|
1344
|
-
t[e] = $t(
|
|
1344
|
+
t[e] = $t(Q({
|
|
1345
1345
|
shared: t.shared
|
|
1346
1346
|
}, u), l);
|
|
1347
1347
|
} else
|
|
1348
1348
|
for (const l in u) {
|
|
1349
1349
|
const m = pn.get(l);
|
|
1350
1350
|
if (m)
|
|
1351
|
-
t[l] = $t(
|
|
1351
|
+
t[l] = $t(Q({
|
|
1352
1352
|
shared: t.shared
|
|
1353
1353
|
}, u[l]), m);
|
|
1354
1354
|
else if (process.env.NODE_ENV === "development" && !["drag", "pinch", "scroll", "wheel", "move", "hover"].includes(l)) {
|
|
@@ -1364,7 +1364,7 @@ class lr {
|
|
|
1364
1364
|
_e(this, "_listeners", /* @__PURE__ */ new Set()), this._ctrl = e, this._gestureKey = t;
|
|
1365
1365
|
}
|
|
1366
1366
|
add(e, t, r, s, o) {
|
|
1367
|
-
const i = this._listeners, c = as(t, r), a = this._gestureKey ? this._ctrl.config[this._gestureKey].eventOptions : {}, u =
|
|
1367
|
+
const i = this._listeners, c = as(t, r), a = this._gestureKey ? this._ctrl.config[this._gestureKey].eventOptions : {}, u = Q(Q({}, a), o);
|
|
1368
1368
|
e.addEventListener(c, s, u);
|
|
1369
1369
|
const l = () => {
|
|
1370
1370
|
e.removeEventListener(c, s, u), i.delete(l);
|
|
@@ -1435,7 +1435,7 @@ class Fs {
|
|
|
1435
1435
|
}
|
|
1436
1436
|
const o = $n(r, t.eventOptions, !!s);
|
|
1437
1437
|
for (const i in this.nativeHandlers)
|
|
1438
|
-
o(i, "", (c) => this.nativeHandlers[i](
|
|
1438
|
+
o(i, "", (c) => this.nativeHandlers[i](Q(Q({}, this.state.shared), {}, {
|
|
1439
1439
|
event: c,
|
|
1440
1440
|
args: e
|
|
1441
1441
|
})), void 0, !0);
|
|
@@ -1470,8 +1470,8 @@ const $n = (n, e, t) => (r, s, o, i = {}, c = !1) => {
|
|
|
1470
1470
|
t && m && (f += "Passive"), n[f] = n[f] || [], n[f].push(o);
|
|
1471
1471
|
};
|
|
1472
1472
|
function Us(n, e = {}, t, r) {
|
|
1473
|
-
const s =
|
|
1474
|
-
if (s.applyHandlers(n, r), s.applyConfig(e, t),
|
|
1473
|
+
const s = nt.useMemo(() => new Fs(n), []);
|
|
1474
|
+
if (s.applyHandlers(n, r), s.applyConfig(e, t), nt.useEffect(s.effect.bind(s)), nt.useEffect(() => s.clean.bind(s), []), e.target === void 0)
|
|
1475
1475
|
return s.bind.bind(s);
|
|
1476
1476
|
}
|
|
1477
1477
|
function un(n, e) {
|
|
@@ -1500,7 +1500,7 @@ function ur(...n) {
|
|
|
1500
1500
|
};
|
|
1501
1501
|
};
|
|
1502
1502
|
}
|
|
1503
|
-
function
|
|
1503
|
+
function ot(...n) {
|
|
1504
1504
|
return b.useCallback(ur(...n), n);
|
|
1505
1505
|
}
|
|
1506
1506
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -1620,7 +1620,7 @@ function Js(...n) {
|
|
|
1620
1620
|
};
|
|
1621
1621
|
return t.scopeName = e.scopeName, t;
|
|
1622
1622
|
}
|
|
1623
|
-
function
|
|
1623
|
+
function rt(n, e, { checkForDefaultPrevented: t = !0 } = {}) {
|
|
1624
1624
|
return function(s) {
|
|
1625
1625
|
if (n?.(s), t === !1 || !s.defaultPrevented)
|
|
1626
1626
|
return e?.(s);
|
|
@@ -1632,7 +1632,7 @@ function Zs(n, e) {
|
|
|
1632
1632
|
return b.useReducer((t, r) => e[t][r] ?? t, n);
|
|
1633
1633
|
}
|
|
1634
1634
|
var Wt = (n) => {
|
|
1635
|
-
const { present: e, children: t } = n, r = Qs(e), s = typeof t == "function" ? t({ present: r.isPresent }) : b.Children.only(t), o =
|
|
1635
|
+
const { present: e, children: t } = n, r = Qs(e), s = typeof t == "function" ? t({ present: r.isPresent }) : b.Children.only(t), o = ot(r.ref, eo(s));
|
|
1636
1636
|
return typeof t == "function" || r.isPresent ? b.cloneElement(s, { ref: o }) : null;
|
|
1637
1637
|
};
|
|
1638
1638
|
Wt.displayName = "Presence";
|
|
@@ -1697,7 +1697,7 @@ function no(n) {
|
|
|
1697
1697
|
const e = b.useContext(to);
|
|
1698
1698
|
return n || e || "ltr";
|
|
1699
1699
|
}
|
|
1700
|
-
function
|
|
1700
|
+
function tt(n) {
|
|
1701
1701
|
const e = b.useRef(n);
|
|
1702
1702
|
return b.useEffect(() => {
|
|
1703
1703
|
e.current = n;
|
|
@@ -1717,13 +1717,13 @@ var Sn = "ScrollArea", [dr] = qs(Sn), [oo, Re] = dr(Sn), hr = b.forwardRef(
|
|
|
1717
1717
|
dir: s,
|
|
1718
1718
|
scrollHideDelay: o = 600,
|
|
1719
1719
|
...i
|
|
1720
|
-
} = n, [c, a] = b.useState(null), [u, l] = b.useState(null), [m, f] = b.useState(null), [g, w] = b.useState(null), [S, y] = b.useState(null), [_, h] = b.useState(0), [p, v] = b.useState(0), [R, E] = b.useState(!1), [
|
|
1720
|
+
} = n, [c, a] = b.useState(null), [u, l] = b.useState(null), [m, f] = b.useState(null), [g, w] = b.useState(null), [S, y] = b.useState(null), [_, h] = b.useState(0), [p, v] = b.useState(0), [R, E] = b.useState(!1), [A, I] = b.useState(!1), P = ot(e, (j) => a(j)), N = no(s);
|
|
1721
1721
|
return /* @__PURE__ */ x.jsx(
|
|
1722
1722
|
oo,
|
|
1723
1723
|
{
|
|
1724
1724
|
scope: t,
|
|
1725
1725
|
type: r,
|
|
1726
|
-
dir:
|
|
1726
|
+
dir: N,
|
|
1727
1727
|
scrollHideDelay: o,
|
|
1728
1728
|
scrollArea: c,
|
|
1729
1729
|
viewport: u,
|
|
@@ -1736,14 +1736,14 @@ var Sn = "ScrollArea", [dr] = qs(Sn), [oo, Re] = dr(Sn), hr = b.forwardRef(
|
|
|
1736
1736
|
onScrollbarXEnabledChange: E,
|
|
1737
1737
|
scrollbarY: S,
|
|
1738
1738
|
onScrollbarYChange: y,
|
|
1739
|
-
scrollbarYEnabled:
|
|
1740
|
-
onScrollbarYEnabledChange:
|
|
1739
|
+
scrollbarYEnabled: A,
|
|
1740
|
+
onScrollbarYEnabledChange: I,
|
|
1741
1741
|
onCornerWidthChange: h,
|
|
1742
1742
|
onCornerHeightChange: v,
|
|
1743
1743
|
children: /* @__PURE__ */ x.jsx(
|
|
1744
1744
|
kt.div,
|
|
1745
1745
|
{
|
|
1746
|
-
dir:
|
|
1746
|
+
dir: N,
|
|
1747
1747
|
...i,
|
|
1748
1748
|
ref: P,
|
|
1749
1749
|
style: {
|
|
@@ -1762,7 +1762,7 @@ var Sn = "ScrollArea", [dr] = qs(Sn), [oo, Re] = dr(Sn), hr = b.forwardRef(
|
|
|
1762
1762
|
hr.displayName = Sn;
|
|
1763
1763
|
var mr = "ScrollAreaViewport", pr = b.forwardRef(
|
|
1764
1764
|
(n, e) => {
|
|
1765
|
-
const { __scopeScrollArea: t, children: r, nonce: s, ...o } = n, i = Re(mr, t), c = b.useRef(null), a =
|
|
1765
|
+
const { __scopeScrollArea: t, children: r, nonce: s, ...o } = n, i = Re(mr, t), c = b.useRef(null), a = ot(e, c, i.onViewportChange);
|
|
1766
1766
|
return /* @__PURE__ */ x.jsxs(x.Fragment, { children: [
|
|
1767
1767
|
/* @__PURE__ */ x.jsx(
|
|
1768
1768
|
"style",
|
|
@@ -1802,17 +1802,17 @@ var mr = "ScrollAreaViewport", pr = b.forwardRef(
|
|
|
1802
1802
|
}
|
|
1803
1803
|
);
|
|
1804
1804
|
pr.displayName = mr;
|
|
1805
|
-
var
|
|
1805
|
+
var Me = "ScrollAreaScrollbar", gr = b.forwardRef(
|
|
1806
1806
|
(n, e) => {
|
|
1807
|
-
const { forceMount: t, ...r } = n, s = Re(
|
|
1807
|
+
const { forceMount: t, ...r } = n, s = Re(Me, n.__scopeScrollArea), { onScrollbarXEnabledChange: o, onScrollbarYEnabledChange: i } = s, c = n.orientation === "horizontal";
|
|
1808
1808
|
return b.useEffect(() => (c ? o(!0) : i(!0), () => {
|
|
1809
1809
|
c ? o(!1) : i(!1);
|
|
1810
1810
|
}), [c, o, i]), s.type === "hover" ? /* @__PURE__ */ x.jsx(io, { ...r, ref: e, forceMount: t }) : s.type === "scroll" ? /* @__PURE__ */ x.jsx(co, { ...r, ref: e, forceMount: t }) : s.type === "auto" ? /* @__PURE__ */ x.jsx(vr, { ...r, ref: e, forceMount: t }) : s.type === "always" ? /* @__PURE__ */ x.jsx(_n, { ...r, ref: e }) : null;
|
|
1811
1811
|
}
|
|
1812
1812
|
);
|
|
1813
|
-
gr.displayName =
|
|
1813
|
+
gr.displayName = Me;
|
|
1814
1814
|
var io = b.forwardRef((n, e) => {
|
|
1815
|
-
const { forceMount: t, ...r } = n, s = Re(
|
|
1815
|
+
const { forceMount: t, ...r } = n, s = Re(Me, n.__scopeScrollArea), [o, i] = b.useState(!1);
|
|
1816
1816
|
return b.useEffect(() => {
|
|
1817
1817
|
const c = s.scrollArea;
|
|
1818
1818
|
let a = 0;
|
|
@@ -1835,7 +1835,7 @@ var io = b.forwardRef((n, e) => {
|
|
|
1835
1835
|
}
|
|
1836
1836
|
) });
|
|
1837
1837
|
}), co = b.forwardRef((n, e) => {
|
|
1838
|
-
const { forceMount: t, ...r } = n, s = Re(
|
|
1838
|
+
const { forceMount: t, ...r } = n, s = Re(Me, n.__scopeScrollArea), o = n.orientation === "horizontal", i = rn(() => a("SCROLL_END"), 100), [c, a] = so("hidden", {
|
|
1839
1839
|
hidden: {
|
|
1840
1840
|
SCROLL: "scrolling"
|
|
1841
1841
|
},
|
|
@@ -1874,12 +1874,12 @@ var io = b.forwardRef((n, e) => {
|
|
|
1874
1874
|
"data-state": c === "hidden" ? "hidden" : "visible",
|
|
1875
1875
|
...r,
|
|
1876
1876
|
ref: e,
|
|
1877
|
-
onPointerEnter:
|
|
1878
|
-
onPointerLeave:
|
|
1877
|
+
onPointerEnter: rt(n.onPointerEnter, () => a("POINTER_ENTER")),
|
|
1878
|
+
onPointerLeave: rt(n.onPointerLeave, () => a("POINTER_LEAVE"))
|
|
1879
1879
|
}
|
|
1880
1880
|
) });
|
|
1881
1881
|
}), vr = b.forwardRef((n, e) => {
|
|
1882
|
-
const t = Re(
|
|
1882
|
+
const t = Re(Me, n.__scopeScrollArea), { forceMount: r, ...s } = n, [o, i] = b.useState(!1), c = n.orientation === "horizontal", a = rn(() => {
|
|
1883
1883
|
if (t.viewport) {
|
|
1884
1884
|
const u = t.viewport.offsetWidth < t.viewport.scrollWidth, l = t.viewport.offsetHeight < t.viewport.scrollHeight;
|
|
1885
1885
|
i(c ? u : l);
|
|
@@ -1894,7 +1894,7 @@ var io = b.forwardRef((n, e) => {
|
|
|
1894
1894
|
}
|
|
1895
1895
|
) });
|
|
1896
1896
|
}), _n = b.forwardRef((n, e) => {
|
|
1897
|
-
const { orientation: t = "vertical", ...r } = n, s = Re(
|
|
1897
|
+
const { orientation: t = "vertical", ...r } = n, s = Re(Me, n.__scopeScrollArea), o = b.useRef(null), i = b.useRef(0), [c, a] = b.useState({
|
|
1898
1898
|
content: 0,
|
|
1899
1899
|
viewport: 0,
|
|
1900
1900
|
scrollbar: { size: 0, paddingStart: 0, paddingEnd: 0 }
|
|
@@ -1948,7 +1948,7 @@ var io = b.forwardRef((n, e) => {
|
|
|
1948
1948
|
}
|
|
1949
1949
|
) : null;
|
|
1950
1950
|
}), ao = b.forwardRef((n, e) => {
|
|
1951
|
-
const { sizes: t, onSizesChange: r, ...s } = n, o = Re(
|
|
1951
|
+
const { sizes: t, onSizesChange: r, ...s } = n, o = Re(Me, n.__scopeScrollArea), [i, c] = b.useState(), a = b.useRef(null), u = ot(e, a, o.onScrollbarXChange);
|
|
1952
1952
|
return b.useEffect(() => {
|
|
1953
1953
|
a.current && c(getComputedStyle(a.current));
|
|
1954
1954
|
}, [a]), /* @__PURE__ */ x.jsx(
|
|
@@ -1987,7 +1987,7 @@ var io = b.forwardRef((n, e) => {
|
|
|
1987
1987
|
}
|
|
1988
1988
|
);
|
|
1989
1989
|
}), lo = b.forwardRef((n, e) => {
|
|
1990
|
-
const { sizes: t, onSizesChange: r, ...s } = n, o = Re(
|
|
1990
|
+
const { sizes: t, onSizesChange: r, ...s } = n, o = Re(Me, n.__scopeScrollArea), [i, c] = b.useState(), a = b.useRef(null), u = ot(e, a, o.onScrollbarYChange);
|
|
1991
1991
|
return b.useEffect(() => {
|
|
1992
1992
|
a.current && c(getComputedStyle(a.current));
|
|
1993
1993
|
}, [a]), /* @__PURE__ */ x.jsx(
|
|
@@ -2026,7 +2026,7 @@ var io = b.forwardRef((n, e) => {
|
|
|
2026
2026
|
}
|
|
2027
2027
|
}
|
|
2028
2028
|
);
|
|
2029
|
-
}), [uo, br] = dr(
|
|
2029
|
+
}), [uo, br] = dr(Me), Sr = b.forwardRef((n, e) => {
|
|
2030
2030
|
const {
|
|
2031
2031
|
__scopeScrollArea: t,
|
|
2032
2032
|
sizes: r,
|
|
@@ -2039,42 +2039,42 @@ var io = b.forwardRef((n, e) => {
|
|
|
2039
2039
|
onWheelScroll: l,
|
|
2040
2040
|
onResize: m,
|
|
2041
2041
|
...f
|
|
2042
|
-
} = n, g = Re(
|
|
2043
|
-
function
|
|
2042
|
+
} = n, g = Re(Me, t), [w, S] = b.useState(null), y = ot(e, (P) => S(P)), _ = b.useRef(null), h = b.useRef(""), p = g.viewport, v = r.content - r.viewport, R = tt(l), E = tt(a), A = rn(m, 10);
|
|
2043
|
+
function I(P) {
|
|
2044
2044
|
if (_.current) {
|
|
2045
|
-
const
|
|
2046
|
-
u({ x:
|
|
2045
|
+
const N = P.clientX - _.current.left, j = P.clientY - _.current.top;
|
|
2046
|
+
u({ x: N, y: j });
|
|
2047
2047
|
}
|
|
2048
2048
|
}
|
|
2049
2049
|
return b.useEffect(() => {
|
|
2050
|
-
const P = (
|
|
2051
|
-
const
|
|
2052
|
-
w?.contains(
|
|
2050
|
+
const P = (N) => {
|
|
2051
|
+
const j = N.target;
|
|
2052
|
+
w?.contains(j) && R(N, v);
|
|
2053
2053
|
};
|
|
2054
2054
|
return document.addEventListener("wheel", P, { passive: !1 }), () => document.removeEventListener("wheel", P, { passive: !1 });
|
|
2055
|
-
}, [p, w, v, R]), b.useEffect(E, [r, E]), At(w,
|
|
2055
|
+
}, [p, w, v, R]), b.useEffect(E, [r, E]), At(w, A), At(g.content, A), /* @__PURE__ */ x.jsx(
|
|
2056
2056
|
uo,
|
|
2057
2057
|
{
|
|
2058
2058
|
scope: t,
|
|
2059
2059
|
scrollbar: w,
|
|
2060
2060
|
hasThumb: s,
|
|
2061
|
-
onThumbChange:
|
|
2062
|
-
onThumbPointerUp:
|
|
2061
|
+
onThumbChange: tt(o),
|
|
2062
|
+
onThumbPointerUp: tt(i),
|
|
2063
2063
|
onThumbPositionChange: E,
|
|
2064
|
-
onThumbPointerDown:
|
|
2064
|
+
onThumbPointerDown: tt(c),
|
|
2065
2065
|
children: /* @__PURE__ */ x.jsx(
|
|
2066
2066
|
kt.div,
|
|
2067
2067
|
{
|
|
2068
2068
|
...f,
|
|
2069
2069
|
ref: y,
|
|
2070
2070
|
style: { position: "absolute", ...f.style },
|
|
2071
|
-
onPointerDown:
|
|
2072
|
-
P.button === 0 && (P.target.setPointerCapture(P.pointerId), _.current = w.getBoundingClientRect(), h.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", g.viewport && (g.viewport.style.scrollBehavior = "auto"),
|
|
2071
|
+
onPointerDown: rt(n.onPointerDown, (P) => {
|
|
2072
|
+
P.button === 0 && (P.target.setPointerCapture(P.pointerId), _.current = w.getBoundingClientRect(), h.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", g.viewport && (g.viewport.style.scrollBehavior = "auto"), I(P));
|
|
2073
2073
|
}),
|
|
2074
|
-
onPointerMove:
|
|
2075
|
-
onPointerUp:
|
|
2076
|
-
const
|
|
2077
|
-
|
|
2074
|
+
onPointerMove: rt(n.onPointerMove, I),
|
|
2075
|
+
onPointerUp: rt(n.onPointerUp, (P) => {
|
|
2076
|
+
const N = P.target;
|
|
2077
|
+
N.hasPointerCapture(P.pointerId) && N.releasePointerCapture(P.pointerId), document.body.style.webkitUserSelect = h.current, g.viewport && (g.viewport.style.scrollBehavior = ""), _.current = null;
|
|
2078
2078
|
})
|
|
2079
2079
|
}
|
|
2080
2080
|
)
|
|
@@ -2087,7 +2087,7 @@ var io = b.forwardRef((n, e) => {
|
|
|
2087
2087
|
}
|
|
2088
2088
|
), fo = b.forwardRef(
|
|
2089
2089
|
(n, e) => {
|
|
2090
|
-
const { __scopeScrollArea: t, style: r, ...s } = n, o = Re(Jt, t), i = br(Jt, t), { onThumbPositionChange: c } = i, a =
|
|
2090
|
+
const { __scopeScrollArea: t, style: r, ...s } = n, o = Re(Jt, t), i = br(Jt, t), { onThumbPositionChange: c } = i, a = ot(
|
|
2091
2091
|
e,
|
|
2092
2092
|
(m) => i.onThumbChange(m)
|
|
2093
2093
|
), u = b.useRef(void 0), l = rn(() => {
|
|
@@ -2115,11 +2115,11 @@ var io = b.forwardRef((n, e) => {
|
|
|
2115
2115
|
height: "var(--radix-scroll-area-thumb-height)",
|
|
2116
2116
|
...r
|
|
2117
2117
|
},
|
|
2118
|
-
onPointerDownCapture:
|
|
2118
|
+
onPointerDownCapture: rt(n.onPointerDownCapture, (m) => {
|
|
2119
2119
|
const g = m.target.getBoundingClientRect(), w = m.clientX - g.left, S = m.clientY - g.top;
|
|
2120
2120
|
i.onThumbPointerDown({ x: w, y: S });
|
|
2121
2121
|
}),
|
|
2122
|
-
onPointerUp:
|
|
2122
|
+
onPointerUp: rt(n.onPointerUp, i.onThumbPointerUp)
|
|
2123
2123
|
}
|
|
2124
2124
|
);
|
|
2125
2125
|
}
|
|
@@ -2195,13 +2195,13 @@ var po = (n, e = () => {
|
|
|
2195
2195
|
})(), () => window.cancelAnimationFrame(r);
|
|
2196
2196
|
};
|
|
2197
2197
|
function rn(n, e) {
|
|
2198
|
-
const t =
|
|
2198
|
+
const t = tt(n), r = b.useRef(0);
|
|
2199
2199
|
return b.useEffect(() => () => window.clearTimeout(r.current), []), b.useCallback(() => {
|
|
2200
2200
|
window.clearTimeout(r.current), r.current = window.setTimeout(t, e);
|
|
2201
2201
|
}, [t, e]);
|
|
2202
2202
|
}
|
|
2203
2203
|
function At(n, e) {
|
|
2204
|
-
const t =
|
|
2204
|
+
const t = tt(e);
|
|
2205
2205
|
gn(() => {
|
|
2206
2206
|
let r = 0;
|
|
2207
2207
|
if (n) {
|
|
@@ -2228,7 +2228,7 @@ const fn = (n, e, t, r, s) => ({
|
|
|
2228
2228
|
deltaRect: s
|
|
2229
2229
|
}
|
|
2230
2230
|
}), So = (n, e, t) => n ? n === e || n === t || (e?.contains(n) ?? !1) || (t?.contains(n) ?? !1) : !1, _o = (n) => {
|
|
2231
|
-
const e =
|
|
2231
|
+
const e = Oe.c(34), {
|
|
2232
2232
|
children: t,
|
|
2233
2233
|
style: r,
|
|
2234
2234
|
draggable: s,
|
|
@@ -2236,28 +2236,28 @@ const fn = (n, e, t, r, s) => ({
|
|
|
2236
2236
|
draggableOptions: i,
|
|
2237
2237
|
resizableOptions: c,
|
|
2238
2238
|
ref: a
|
|
2239
|
-
} = n, u =
|
|
2239
|
+
} = n, u = ne(void 0), l = ne(void 0), m = ne(null), f = ne(null), g = ne(void 0), w = ne(void 0);
|
|
2240
2240
|
let S, y;
|
|
2241
2241
|
e[0] !== i || e[1] !== a || e[2] !== c ? (S = () => {
|
|
2242
2242
|
if (u.current = i, l.current = c, !a?.current)
|
|
2243
2243
|
return;
|
|
2244
|
-
const
|
|
2245
|
-
|
|
2246
|
-
}, y = [i, a, c], e[0] = i, e[1] = a, e[2] = c, e[3] = S, e[4] = y) : (S = e[3], y = e[4]),
|
|
2244
|
+
const C = c?.edges?.left, M = c?.edges?.right;
|
|
2245
|
+
C && C !== g.current && (g.current = C, m.current = a.current.querySelector(C)), M && M !== w.current && (w.current = M, f.current = a.current.querySelector(M));
|
|
2246
|
+
}, y = [i, a, c], e[0] = i, e[1] = a, e[2] = c, e[3] = S, e[4] = y) : (S = e[3], y = e[4]), st(S, y);
|
|
2247
2247
|
let _;
|
|
2248
|
-
e[5] !== a ? (_ = (
|
|
2248
|
+
e[5] !== a ? (_ = (C) => {
|
|
2249
2249
|
const {
|
|
2250
2250
|
active: M,
|
|
2251
2251
|
delta: K,
|
|
2252
|
-
xy:
|
|
2253
|
-
event:
|
|
2252
|
+
xy: J,
|
|
2253
|
+
event: Z,
|
|
2254
2254
|
first: d,
|
|
2255
|
-
last:
|
|
2256
|
-
} =
|
|
2257
|
-
if (!
|
|
2255
|
+
last: T
|
|
2256
|
+
} = C, D = a?.current;
|
|
2257
|
+
if (!D || So(Z?.target, m.current, f.current))
|
|
2258
2258
|
return;
|
|
2259
|
-
const
|
|
2260
|
-
d ? u.current?.onstart?.(
|
|
2259
|
+
const F = fn(D, K, J);
|
|
2260
|
+
d ? u.current?.onstart?.(F) : T ? u.current?.onend?.(F) : M && u.current?.onmove?.(F);
|
|
2261
2261
|
}, e[5] = a, e[6] = _) : _ = e[6];
|
|
2262
2262
|
const h = i?.lockAxis === "x" ? "x" : void 0;
|
|
2263
2263
|
let p;
|
|
@@ -2273,82 +2273,82 @@ const fn = (n, e, t, r, s) => ({
|
|
|
2273
2273
|
threshold: 0
|
|
2274
2274
|
}, e[8] = s, e[9] = a, e[10] = h, e[11] = v) : v = e[11], un(_, v);
|
|
2275
2275
|
let R;
|
|
2276
|
-
e[12] !== a ? (R = (
|
|
2276
|
+
e[12] !== a ? (R = (C) => {
|
|
2277
2277
|
const {
|
|
2278
2278
|
active: M,
|
|
2279
2279
|
delta: K,
|
|
2280
|
-
xy:
|
|
2281
|
-
first:
|
|
2280
|
+
xy: J,
|
|
2281
|
+
first: Z,
|
|
2282
2282
|
last: d
|
|
2283
|
-
} =
|
|
2284
|
-
if (!
|
|
2283
|
+
} = C, T = a?.current;
|
|
2284
|
+
if (!T)
|
|
2285
2285
|
return;
|
|
2286
|
-
const
|
|
2286
|
+
const D = fn(T, K, J, {
|
|
2287
2287
|
left: !0
|
|
2288
2288
|
}, {
|
|
2289
2289
|
left: K[0]
|
|
2290
2290
|
});
|
|
2291
|
-
|
|
2291
|
+
Z ? l.current?.onstart?.(D) : d ? l.current?.onend?.(D) : M && l.current?.onmove?.(D);
|
|
2292
2292
|
}, e[12] = a, e[13] = R) : R = e[13];
|
|
2293
2293
|
let E;
|
|
2294
2294
|
e[14] === Symbol.for("react.memo_cache_sentinel") ? (E = {
|
|
2295
2295
|
capture: !0
|
|
2296
2296
|
}, e[14] = E) : E = e[14];
|
|
2297
|
-
let
|
|
2298
|
-
e[15] !== o ? (
|
|
2297
|
+
let A;
|
|
2298
|
+
e[15] !== o ? (A = {
|
|
2299
2299
|
enabled: o,
|
|
2300
2300
|
target: m,
|
|
2301
2301
|
pointer: E,
|
|
2302
2302
|
threshold: 0
|
|
2303
|
-
}, e[15] = o, e[16] =
|
|
2304
|
-
let
|
|
2305
|
-
e[17] !== a ? (
|
|
2303
|
+
}, e[15] = o, e[16] = A) : A = e[16], un(R, A);
|
|
2304
|
+
let I;
|
|
2305
|
+
e[17] !== a ? (I = (C) => {
|
|
2306
2306
|
const {
|
|
2307
2307
|
active: M,
|
|
2308
2308
|
delta: K,
|
|
2309
|
-
xy:
|
|
2310
|
-
first:
|
|
2309
|
+
xy: J,
|
|
2310
|
+
first: Z,
|
|
2311
2311
|
last: d
|
|
2312
|
-
} =
|
|
2313
|
-
if (!
|
|
2312
|
+
} = C, T = a?.current;
|
|
2313
|
+
if (!T)
|
|
2314
2314
|
return;
|
|
2315
|
-
const
|
|
2315
|
+
const D = fn(T, K, J, {
|
|
2316
2316
|
right: !0
|
|
2317
2317
|
}, {
|
|
2318
2318
|
right: K[0]
|
|
2319
2319
|
});
|
|
2320
|
-
|
|
2321
|
-
}, e[17] = a, e[18] =
|
|
2320
|
+
Z ? l.current?.onstart?.(D) : d ? l.current?.onend?.(D) : M && l.current?.onmove?.(D);
|
|
2321
|
+
}, e[17] = a, e[18] = I) : I = e[18];
|
|
2322
2322
|
let P;
|
|
2323
2323
|
e[19] === Symbol.for("react.memo_cache_sentinel") ? (P = {
|
|
2324
2324
|
capture: !0
|
|
2325
2325
|
}, e[19] = P) : P = e[19];
|
|
2326
|
-
let
|
|
2327
|
-
e[20] !== o ? (
|
|
2326
|
+
let N;
|
|
2327
|
+
e[20] !== o ? (N = {
|
|
2328
2328
|
enabled: o,
|
|
2329
2329
|
target: f,
|
|
2330
2330
|
pointer: P,
|
|
2331
2331
|
threshold: 0
|
|
2332
|
-
}, e[20] = o, e[21] =
|
|
2333
|
-
let
|
|
2334
|
-
e[22] !== a ? (
|
|
2335
|
-
const
|
|
2336
|
-
if (!
|
|
2332
|
+
}, e[20] = o, e[21] = N) : N = e[21], un(I, N);
|
|
2333
|
+
let j, q;
|
|
2334
|
+
e[22] !== a ? (j = () => {
|
|
2335
|
+
const C = a?.current;
|
|
2336
|
+
if (!C)
|
|
2337
2337
|
return;
|
|
2338
2338
|
const M = l.current?.edges?.left, K = l.current?.edges?.right;
|
|
2339
|
-
M && (m.current =
|
|
2340
|
-
},
|
|
2339
|
+
M && (m.current = C.querySelector(M)), K && (f.current = C.querySelector(K));
|
|
2340
|
+
}, q = [a], e[22] = a, e[23] = j, e[24] = q) : (j = e[23], q = e[24]), Qt(j, q);
|
|
2341
2341
|
let $;
|
|
2342
2342
|
e[25] !== s ? ($ = s ? {
|
|
2343
2343
|
touchAction: "none"
|
|
2344
2344
|
} : {}, e[25] = s, e[26] = $) : $ = e[26];
|
|
2345
|
-
let
|
|
2346
|
-
e[27] !== r || e[28] !== $ ? (
|
|
2345
|
+
let re;
|
|
2346
|
+
e[27] !== r || e[28] !== $ ? (re = {
|
|
2347
2347
|
...$,
|
|
2348
2348
|
...r
|
|
2349
|
-
}, e[27] = r, e[28] = $, e[29] =
|
|
2349
|
+
}, e[27] = r, e[28] = $, e[29] = re) : re = e[29];
|
|
2350
2350
|
let Y;
|
|
2351
|
-
return e[30] !== t || e[31] !== a || e[32] !==
|
|
2351
|
+
return e[30] !== t || e[31] !== a || e[32] !== re ? (Y = /* @__PURE__ */ x.jsx($s, { ref: a, style: re, draggable: !1, children: t }), e[30] = t, e[31] = a, e[32] = re, e[33] = Y) : Y = e[33], Y;
|
|
2352
2352
|
}, Se = (n, e = 0) => n ? parseFloat(n) : e, dn = (n, e, t, r = Number.MAX_SAFE_INTEGER) => {
|
|
2353
2353
|
let s = n, o = r;
|
|
2354
2354
|
for (const i of e) {
|
|
@@ -2359,8 +2359,8 @@ const fn = (n, e, t, r, s) => ({
|
|
|
2359
2359
|
snap: s,
|
|
2360
2360
|
minDis: o
|
|
2361
2361
|
};
|
|
2362
|
-
}, Rr =
|
|
2363
|
-
const t =
|
|
2362
|
+
}, Rr = nt.forwardRef((n, e) => {
|
|
2363
|
+
const t = Oe.c(69), {
|
|
2364
2364
|
children: r,
|
|
2365
2365
|
edges: s,
|
|
2366
2366
|
left: o,
|
|
@@ -2380,248 +2380,248 @@ const fn = (n, e, t, r, s) => ({
|
|
|
2380
2380
|
onDrag: p,
|
|
2381
2381
|
parentRef: v,
|
|
2382
2382
|
autoScroll: R
|
|
2383
|
-
} = n, E = c === void 0 ? en : c,
|
|
2384
|
-
let
|
|
2385
|
-
t[0] !== g ? (
|
|
2386
|
-
const $ =
|
|
2383
|
+
} = n, E = c === void 0 ? en : c, A = a === void 0 ? mn : a, I = u === void 0 ? wo : u, P = l === void 0 ? !0 : l, N = m === void 0 ? !0 : m, j = f === void 0 ? Kt : f;
|
|
2384
|
+
let q;
|
|
2385
|
+
t[0] !== g ? (q = g === void 0 ? [] : g, t[0] = g, t[1] = q) : q = t[1];
|
|
2386
|
+
const $ = q, re = R === void 0 ? !0 : R, Y = ne(null), C = ne(0), M = ne(!1), {
|
|
2387
2387
|
initAutoScroll: K,
|
|
2388
|
-
stopAutoScroll:
|
|
2389
|
-
dealDragAutoScroll:
|
|
2388
|
+
stopAutoScroll: J,
|
|
2389
|
+
dealDragAutoScroll: Z,
|
|
2390
2390
|
dealResizeAutoScroll: d
|
|
2391
2391
|
} = Zr(v);
|
|
2392
|
-
let
|
|
2393
|
-
t[2] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
2394
|
-
const
|
|
2392
|
+
let T;
|
|
2393
|
+
t[2] === Symbol.for("react.memo_cache_sentinel") ? (T = (V, B) => {
|
|
2394
|
+
const G = B === void 0 ? !0 : B;
|
|
2395
2395
|
if (!Y.current)
|
|
2396
2396
|
return;
|
|
2397
|
-
|
|
2398
|
-
const
|
|
2399
|
-
|
|
2400
|
-
}, t[2] =
|
|
2401
|
-
const
|
|
2402
|
-
let
|
|
2403
|
-
t[3] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
2404
|
-
const
|
|
2397
|
+
G && (C.current = 0);
|
|
2398
|
+
const H = Y.current;
|
|
2399
|
+
H.style.setProperty("--translate-x", `${V}px`), H.dataset.left = String(V);
|
|
2400
|
+
}, t[2] = T) : T = t[2];
|
|
2401
|
+
const D = T;
|
|
2402
|
+
let F;
|
|
2403
|
+
t[3] === Symbol.for("react.memo_cache_sentinel") ? (F = (V, B) => {
|
|
2404
|
+
const G = B === void 0 ? !0 : B;
|
|
2405
2405
|
if (!Y.current)
|
|
2406
2406
|
return;
|
|
2407
|
-
|
|
2408
|
-
const
|
|
2409
|
-
|
|
2410
|
-
}, t[3] =
|
|
2411
|
-
const
|
|
2412
|
-
let
|
|
2413
|
-
t[4] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
2414
|
-
const
|
|
2407
|
+
G && (C.current = 0);
|
|
2408
|
+
const H = Y.current;
|
|
2409
|
+
H.style.width = `${V}px`, H.dataset.width = String(V);
|
|
2410
|
+
}, t[3] = F) : F = t[3];
|
|
2411
|
+
const le = F;
|
|
2412
|
+
let k;
|
|
2413
|
+
t[4] === Symbol.for("react.memo_cache_sentinel") ? (k = () => Y.current ? Se(Y.current.dataset.left) : 0, t[4] = k) : k = t[4];
|
|
2414
|
+
const z = k;
|
|
2415
2415
|
let O;
|
|
2416
2416
|
t[5] === Symbol.for("react.memo_cache_sentinel") ? (O = () => Y.current ? Se(Y.current.dataset.width) : 0, t[5] = O) : O = t[5];
|
|
2417
|
-
const
|
|
2418
|
-
let
|
|
2419
|
-
t[6] !== i ? (
|
|
2417
|
+
const W = O;
|
|
2418
|
+
let L, Ne;
|
|
2419
|
+
t[6] !== i ? (L = () => {
|
|
2420
2420
|
if (!Y.current)
|
|
2421
2421
|
return;
|
|
2422
|
-
const
|
|
2423
|
-
|
|
2424
|
-
},
|
|
2425
|
-
let
|
|
2426
|
-
t[9] !== o ? (
|
|
2427
|
-
|
|
2428
|
-
}, ee = [o], t[9] = o, t[10] =
|
|
2429
|
-
let
|
|
2430
|
-
t[12] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
2431
|
-
updateLeft: (
|
|
2432
|
-
updateWidth: (
|
|
2433
|
-
getLeft:
|
|
2434
|
-
getWidth:
|
|
2435
|
-
}), t[12] =
|
|
2422
|
+
const V = Y.current;
|
|
2423
|
+
le(typeof i > "u" ? V.offsetWidth : i, !1);
|
|
2424
|
+
}, Ne = [i], t[6] = i, t[7] = L, t[8] = Ne) : (L = t[7], Ne = t[8]), st(L, Ne);
|
|
2425
|
+
let Te, ee;
|
|
2426
|
+
t[9] !== o ? (Te = () => {
|
|
2427
|
+
D(o || 0, !1);
|
|
2428
|
+
}, ee = [o], t[9] = o, t[10] = Te, t[11] = ee) : (Te = t[10], ee = t[11]), st(Te, ee);
|
|
2429
|
+
let se;
|
|
2430
|
+
t[12] === Symbol.for("react.memo_cache_sentinel") ? (se = () => ({
|
|
2431
|
+
updateLeft: (V) => D(V || 0, !1),
|
|
2432
|
+
updateWidth: (V) => le(V, !1),
|
|
2433
|
+
getLeft: z,
|
|
2434
|
+
getWidth: W
|
|
2435
|
+
}), t[12] = se) : se = t[12], Zn(e, se);
|
|
2436
2436
|
let we;
|
|
2437
2437
|
t[13] !== K || t[14] !== _ ? (we = () => {
|
|
2438
|
-
|
|
2438
|
+
C.current = 0, M.current = !1, K(), _?.();
|
|
2439
2439
|
}, t[13] = K, t[14] = _, t[15] = we) : we = t[15];
|
|
2440
|
-
const
|
|
2441
|
-
let
|
|
2442
|
-
t[16] !==
|
|
2440
|
+
const Ue = we;
|
|
2441
|
+
let Ie;
|
|
2442
|
+
t[16] !== I || t[17] !== A || t[18] !== p || t[19] !== j || t[20] !== $ || t[21] !== E ? (Ie = (V) => {
|
|
2443
2443
|
const {
|
|
2444
|
-
preLeft:
|
|
2445
|
-
preWidth:
|
|
2446
|
-
scrollDelta:
|
|
2447
|
-
} =
|
|
2448
|
-
|
|
2449
|
-
const
|
|
2450
|
-
if (Math.abs(
|
|
2444
|
+
preLeft: B,
|
|
2445
|
+
preWidth: G,
|
|
2446
|
+
scrollDelta: H
|
|
2447
|
+
} = V;
|
|
2448
|
+
H && (C.current = C.current + H);
|
|
2449
|
+
const ue = M.current ? j : A;
|
|
2450
|
+
if (Math.abs(C.current) < ue)
|
|
2451
2451
|
return;
|
|
2452
|
-
const ce = Math.trunc(
|
|
2453
|
-
let X =
|
|
2454
|
-
const
|
|
2455
|
-
snap:
|
|
2456
|
-
} = dn(
|
|
2457
|
-
if (
|
|
2458
|
-
M.current = !0, X =
|
|
2452
|
+
const ce = Math.trunc(C.current / ue);
|
|
2453
|
+
let X = B + ce * ue;
|
|
2454
|
+
const oe = C.current > 0, U = oe ? X + G : X, {
|
|
2455
|
+
snap: te
|
|
2456
|
+
} = dn(U, $, j);
|
|
2457
|
+
if (te !== U)
|
|
2458
|
+
M.current = !0, X = oe ? te - G : te;
|
|
2459
2459
|
else {
|
|
2460
|
-
const
|
|
2461
|
-
|
|
2460
|
+
const de = X - E;
|
|
2461
|
+
de % A !== 0 && (X = E + A * Math.round(de / A)), M.current = !1;
|
|
2462
2462
|
}
|
|
2463
|
-
|
|
2464
|
-
const
|
|
2465
|
-
X <
|
|
2466
|
-
lastLeft:
|
|
2463
|
+
C.current = C.current % ue;
|
|
2464
|
+
const fe = I();
|
|
2465
|
+
X < fe.left ? X = fe.left : X + G > fe.right && (X = fe.right - G), !(p && p({
|
|
2466
|
+
lastLeft: B,
|
|
2467
2467
|
left: X,
|
|
2468
|
-
lastWidth:
|
|
2469
|
-
width:
|
|
2470
|
-
},
|
|
2471
|
-
}, t[16] =
|
|
2472
|
-
const Ae =
|
|
2473
|
-
let
|
|
2474
|
-
t[23] !==
|
|
2475
|
-
const
|
|
2476
|
-
|
|
2468
|
+
lastWidth: G,
|
|
2469
|
+
width: G
|
|
2470
|
+
}, H) === !1) && D(X, !1);
|
|
2471
|
+
}, t[16] = I, t[17] = A, t[18] = p, t[19] = j, t[20] = $, t[21] = E, t[22] = Ie) : Ie = t[22];
|
|
2472
|
+
const Ae = Ie;
|
|
2473
|
+
let ke;
|
|
2474
|
+
t[23] !== re || t[24] !== Z || t[25] !== Ae || t[26] !== v ? (ke = (V) => {
|
|
2475
|
+
const B = V.target, G = Se(B.dataset.left), H = Se(B.dataset.width);
|
|
2476
|
+
C.current = C.current + V.dx, !(re && v?.current && !Z(V, (X) => {
|
|
2477
2477
|
if (!v?.current || !Y.current)
|
|
2478
2478
|
return;
|
|
2479
2479
|
v.current.scrollLeft = v.current.scrollLeft + X;
|
|
2480
|
-
const
|
|
2480
|
+
const oe = Y.current, U = Se(oe.dataset.left), te = Se(oe.dataset.width);
|
|
2481
2481
|
Ae({
|
|
2482
|
-
preLeft:
|
|
2483
|
-
preWidth:
|
|
2482
|
+
preLeft: U,
|
|
2483
|
+
preWidth: te,
|
|
2484
2484
|
scrollDelta: X
|
|
2485
2485
|
});
|
|
2486
2486
|
})) && Ae({
|
|
2487
|
-
preLeft:
|
|
2488
|
-
preWidth:
|
|
2487
|
+
preLeft: G,
|
|
2488
|
+
preWidth: H
|
|
2489
2489
|
});
|
|
2490
|
-
}, t[23] =
|
|
2491
|
-
const Pt =
|
|
2492
|
-
let
|
|
2493
|
-
t[28] !== h || t[29] !==
|
|
2494
|
-
|
|
2495
|
-
const
|
|
2490
|
+
}, t[23] = re, t[24] = Z, t[25] = Ae, t[26] = v, t[27] = ke) : ke = t[27];
|
|
2491
|
+
const Pt = ke;
|
|
2492
|
+
let it;
|
|
2493
|
+
t[28] !== h || t[29] !== J ? (it = (V) => {
|
|
2494
|
+
C.current = 0, M.current = !1, J();
|
|
2495
|
+
const B = V.target;
|
|
2496
2496
|
h?.({
|
|
2497
|
-
left: Se(
|
|
2498
|
-
width: Se(
|
|
2497
|
+
left: Se(B.dataset.left),
|
|
2498
|
+
width: Se(B.dataset.width)
|
|
2499
2499
|
});
|
|
2500
|
-
}, t[28] = h, t[29] =
|
|
2501
|
-
const
|
|
2500
|
+
}, t[28] = h, t[29] = J, t[30] = it) : it = t[30];
|
|
2501
|
+
const $e = it;
|
|
2502
2502
|
let Ee;
|
|
2503
|
-
t[31] !== K || t[32] !== w ? (Ee = (
|
|
2504
|
-
|
|
2505
|
-
const
|
|
2506
|
-
w?.(
|
|
2503
|
+
t[31] !== K || t[32] !== w ? (Ee = (V) => {
|
|
2504
|
+
C.current = 0, M.current = !1, K();
|
|
2505
|
+
const B = V.edges?.right ? "right" : "left";
|
|
2506
|
+
w?.(B);
|
|
2507
2507
|
}, t[31] = K, t[32] = w, t[33] = Ee) : Ee = t[33];
|
|
2508
|
-
const
|
|
2509
|
-
let
|
|
2510
|
-
t[34] !==
|
|
2508
|
+
const He = Ee;
|
|
2509
|
+
let We;
|
|
2510
|
+
t[34] !== I || t[35] !== A || t[36] !== S || t[37] !== j || t[38] !== $ || t[39] !== E ? (We = (V) => {
|
|
2511
2511
|
const {
|
|
2512
|
-
dir:
|
|
2513
|
-
preWidth:
|
|
2514
|
-
preLeft:
|
|
2515
|
-
scrollDelta:
|
|
2516
|
-
} =
|
|
2517
|
-
|
|
2518
|
-
const ce = M.current ?
|
|
2519
|
-
if (Math.abs(
|
|
2512
|
+
dir: B,
|
|
2513
|
+
preWidth: G,
|
|
2514
|
+
preLeft: H,
|
|
2515
|
+
scrollDelta: ue
|
|
2516
|
+
} = V;
|
|
2517
|
+
ue && (C.current = C.current + ue);
|
|
2518
|
+
const ce = M.current ? j : A;
|
|
2519
|
+
if (Math.abs(C.current) < ce)
|
|
2520
2520
|
return;
|
|
2521
|
-
const X =
|
|
2522
|
-
if (
|
|
2523
|
-
const
|
|
2524
|
-
let
|
|
2521
|
+
const X = I();
|
|
2522
|
+
if (B === "left") {
|
|
2523
|
+
const oe = Math.trunc(C.current / ce);
|
|
2524
|
+
let U = H + oe * ce;
|
|
2525
2525
|
const {
|
|
2526
|
-
snap:
|
|
2527
|
-
} = dn(
|
|
2528
|
-
if (
|
|
2529
|
-
M.current = !0,
|
|
2526
|
+
snap: te
|
|
2527
|
+
} = dn(U, $, j);
|
|
2528
|
+
if (te !== U)
|
|
2529
|
+
M.current = !0, U = te;
|
|
2530
2530
|
else {
|
|
2531
|
-
const ye =
|
|
2532
|
-
ye %
|
|
2531
|
+
const ye = U - E;
|
|
2532
|
+
ye % A !== 0 && (U = E + A * Math.round(ye / A)), M.current = !1;
|
|
2533
2533
|
}
|
|
2534
|
-
|
|
2535
|
-
const
|
|
2536
|
-
if (
|
|
2537
|
-
lastLeft:
|
|
2538
|
-
lastWidth:
|
|
2539
|
-
left:
|
|
2540
|
-
width:
|
|
2534
|
+
C.current = C.current % ce, U < X.left && (U = X.left);
|
|
2535
|
+
const fe = H + G, de = fe - U;
|
|
2536
|
+
if (U >= fe || S && S("left", {
|
|
2537
|
+
lastLeft: H,
|
|
2538
|
+
lastWidth: G,
|
|
2539
|
+
left: U,
|
|
2540
|
+
width: de
|
|
2541
2541
|
}) === !1)
|
|
2542
2542
|
return;
|
|
2543
|
-
|
|
2543
|
+
D(U, !1), le(de, !1);
|
|
2544
2544
|
} else {
|
|
2545
|
-
const
|
|
2546
|
-
let
|
|
2547
|
-
const
|
|
2548
|
-
snap:
|
|
2549
|
-
} = dn(
|
|
2550
|
-
if (
|
|
2551
|
-
M.current = !0,
|
|
2545
|
+
const oe = Math.trunc(C.current / ce);
|
|
2546
|
+
let U = G + oe * ce;
|
|
2547
|
+
const te = H + U, {
|
|
2548
|
+
snap: fe
|
|
2549
|
+
} = dn(te, $, j);
|
|
2550
|
+
if (fe !== te)
|
|
2551
|
+
M.current = !0, U = fe - H;
|
|
2552
2552
|
else {
|
|
2553
|
-
let
|
|
2554
|
-
const ye =
|
|
2555
|
-
ye %
|
|
2553
|
+
let de = H + U;
|
|
2554
|
+
const ye = de - E;
|
|
2555
|
+
ye % A !== 0 && (de = E + A * Math.round(ye / A), U = de - H), M.current = !1;
|
|
2556
2556
|
}
|
|
2557
|
-
if (
|
|
2558
|
-
lastLeft:
|
|
2559
|
-
lastWidth:
|
|
2560
|
-
left:
|
|
2561
|
-
width:
|
|
2557
|
+
if (C.current = C.current % ce, H + U > X.right && (U = X.right - H), U <= 0 || S && S("right", {
|
|
2558
|
+
lastLeft: H,
|
|
2559
|
+
lastWidth: G,
|
|
2560
|
+
left: H,
|
|
2561
|
+
width: U
|
|
2562
2562
|
}) === !1)
|
|
2563
2563
|
return;
|
|
2564
|
-
|
|
2564
|
+
le(U, !1);
|
|
2565
2565
|
}
|
|
2566
|
-
}, t[34] =
|
|
2567
|
-
const
|
|
2568
|
-
let
|
|
2569
|
-
t[41] !==
|
|
2570
|
-
const
|
|
2571
|
-
|
|
2566
|
+
}, t[34] = I, t[35] = A, t[36] = S, t[37] = j, t[38] = $, t[39] = E, t[40] = We) : We = t[40];
|
|
2567
|
+
const Be = We;
|
|
2568
|
+
let ze;
|
|
2569
|
+
t[41] !== re || t[42] !== d || t[43] !== v || t[44] !== Be ? (ze = (V) => {
|
|
2570
|
+
const B = V.target, G = V.edges?.left ? "left" : "right", H = Se(B.dataset.left), ue = Se(B.dataset.width);
|
|
2571
|
+
C.current = C.current + (G === "left" ? V.deltaRect?.left || 0 : V.deltaRect?.right || 0), !(re && v?.current && !d(V, G, (oe) => {
|
|
2572
2572
|
if (!v?.current || !Y.current)
|
|
2573
2573
|
return;
|
|
2574
|
-
v.current.scrollLeft = v.current.scrollLeft +
|
|
2575
|
-
const
|
|
2576
|
-
|
|
2577
|
-
preLeft:
|
|
2578
|
-
preWidth:
|
|
2579
|
-
dir:
|
|
2580
|
-
scrollDelta:
|
|
2574
|
+
v.current.scrollLeft = v.current.scrollLeft + oe;
|
|
2575
|
+
const U = Y.current, te = Se(U.dataset.left), fe = Se(U.dataset.width);
|
|
2576
|
+
Be({
|
|
2577
|
+
preLeft: te,
|
|
2578
|
+
preWidth: fe,
|
|
2579
|
+
dir: G,
|
|
2580
|
+
scrollDelta: oe
|
|
2581
2581
|
});
|
|
2582
|
-
})) &&
|
|
2583
|
-
preLeft:
|
|
2584
|
-
preWidth:
|
|
2585
|
-
dir:
|
|
2582
|
+
})) && Be({
|
|
2583
|
+
preLeft: H,
|
|
2584
|
+
preWidth: ue,
|
|
2585
|
+
dir: G
|
|
2586
2586
|
});
|
|
2587
|
-
}, t[41] =
|
|
2588
|
-
const Pe =
|
|
2589
|
-
let
|
|
2590
|
-
t[46] !== y || t[47] !==
|
|
2591
|
-
|
|
2592
|
-
const
|
|
2593
|
-
y?.(
|
|
2594
|
-
left: Se(
|
|
2595
|
-
width: Se(
|
|
2587
|
+
}, t[41] = re, t[42] = d, t[43] = v, t[44] = Be, t[45] = ze) : ze = t[45];
|
|
2588
|
+
const Pe = ze;
|
|
2589
|
+
let je;
|
|
2590
|
+
t[46] !== y || t[47] !== J ? (je = (V) => {
|
|
2591
|
+
C.current = 0, M.current = !1, J();
|
|
2592
|
+
const B = V.target, G = V.edges?.right ? "right" : "left";
|
|
2593
|
+
y?.(G, {
|
|
2594
|
+
left: Se(B.dataset.left),
|
|
2595
|
+
width: Se(B.dataset.width)
|
|
2596
2596
|
});
|
|
2597
|
-
}, t[46] = y, t[47] =
|
|
2598
|
-
const
|
|
2599
|
-
let
|
|
2600
|
-
t[49] !==
|
|
2601
|
-
"--translate-x":
|
|
2597
|
+
}, t[46] = y, t[47] = J, t[48] = je) : je = t[48];
|
|
2598
|
+
const Je = je, Xe = o || 0, Ze = `${o || 0}px`;
|
|
2599
|
+
let Fe;
|
|
2600
|
+
t[49] !== Ze || t[50] !== i ? (Fe = {
|
|
2601
|
+
"--translate-x": Ze,
|
|
2602
2602
|
transform: "translateX(var(--translate-x)) scaleX(var(--scale-x,1))",
|
|
2603
2603
|
width: i
|
|
2604
|
-
}, t[49] =
|
|
2605
|
-
const
|
|
2606
|
-
let
|
|
2607
|
-
t[52] !== Pt || t[53] !==
|
|
2604
|
+
}, t[49] = Ze, t[50] = i, t[51] = Fe) : Fe = t[51];
|
|
2605
|
+
const Qe = Fe;
|
|
2606
|
+
let Ce;
|
|
2607
|
+
t[52] !== Pt || t[53] !== Ue || t[54] !== $e ? (Ce = {
|
|
2608
2608
|
lockAxis: "x",
|
|
2609
2609
|
onmove: Pt,
|
|
2610
|
-
onstart:
|
|
2611
|
-
onend:
|
|
2610
|
+
onstart: Ue,
|
|
2611
|
+
onend: $e,
|
|
2612
2612
|
cursorChecker: Eo
|
|
2613
|
-
}, t[52] = Pt, t[53] =
|
|
2614
|
-
let
|
|
2615
|
-
t[56] !== s || t[57] !== Pe || t[58] !==
|
|
2613
|
+
}, t[52] = Pt, t[53] = Ue, t[54] = $e, t[55] = Ce) : Ce = t[55];
|
|
2614
|
+
let Le;
|
|
2615
|
+
t[56] !== s || t[57] !== Pe || t[58] !== He || t[59] !== Je ? (Le = {
|
|
2616
2616
|
axis: "x",
|
|
2617
2617
|
invert: "none",
|
|
2618
2618
|
edges: s,
|
|
2619
2619
|
onmove: Pe,
|
|
2620
|
-
onstart:
|
|
2621
|
-
onend:
|
|
2622
|
-
}, t[56] = s, t[57] = Pe, t[58] =
|
|
2623
|
-
let
|
|
2624
|
-
return t[61] !== r || t[62] !==
|
|
2620
|
+
onstart: He,
|
|
2621
|
+
onend: Je
|
|
2622
|
+
}, t[56] = s, t[57] = Pe, t[58] = He, t[59] = Je, t[60] = Le) : Le = t[60];
|
|
2623
|
+
let Ve;
|
|
2624
|
+
return t[61] !== r || t[62] !== N || t[63] !== P || t[64] !== Xe || t[65] !== Qe || t[66] !== Ce || t[67] !== Le ? (Ve = /* @__PURE__ */ x.jsx(_o, { "data-left": Xe, style: Qe, ref: Y, draggable: N, resizable: P, draggableOptions: Ce, resizableOptions: Le, children: r }), t[61] = r, t[62] = N, t[63] = P, t[64] = Xe, t[65] = Qe, t[66] = Ce, t[67] = Le, t[68] = Ve) : Ve = t[68], Ve;
|
|
2625
2625
|
});
|
|
2626
2626
|
function wo() {
|
|
2627
2627
|
return {
|
|
@@ -2639,7 +2639,7 @@ function yo() {
|
|
|
2639
2639
|
return t;
|
|
2640
2640
|
}
|
|
2641
2641
|
const xo = (n) => {
|
|
2642
|
-
const e =
|
|
2642
|
+
const e = Oe.c(191), {
|
|
2643
2643
|
editorData: t,
|
|
2644
2644
|
row: r,
|
|
2645
2645
|
action: s,
|
|
@@ -2661,277 +2661,277 @@ const xo = (n) => {
|
|
|
2661
2661
|
onActionResizeEnd: v,
|
|
2662
2662
|
onActionResizing: R,
|
|
2663
2663
|
snapData: E,
|
|
2664
|
-
setEditorData:
|
|
2665
|
-
onClickAction:
|
|
2664
|
+
setEditorData: A,
|
|
2665
|
+
onClickAction: I,
|
|
2666
2666
|
onClickActionOnly: P,
|
|
2667
|
-
onDoubleClickAction:
|
|
2668
|
-
onContextMenuAction:
|
|
2669
|
-
getActionRender:
|
|
2667
|
+
onDoubleClickAction: N,
|
|
2668
|
+
onContextMenuAction: j,
|
|
2669
|
+
getActionRender: q,
|
|
2670
2670
|
handleTime: $,
|
|
2671
|
-
scrollContainerRef:
|
|
2672
|
-
} = n, Y =
|
|
2671
|
+
scrollContainerRef: re
|
|
2672
|
+
} = n, Y = ne(null), C = ne(!1), {
|
|
2673
2673
|
id: M,
|
|
2674
2674
|
maxEnd: K,
|
|
2675
|
-
minStart:
|
|
2676
|
-
end:
|
|
2675
|
+
minStart: J,
|
|
2676
|
+
end: Z,
|
|
2677
2677
|
start: d,
|
|
2678
|
-
selected:
|
|
2679
|
-
flexible:
|
|
2680
|
-
movable:
|
|
2681
|
-
effectId:
|
|
2682
|
-
} = s,
|
|
2683
|
-
let
|
|
2684
|
-
e[0] !== O || e[1] !==
|
|
2685
|
-
startLeft:
|
|
2686
|
-
scale: O,
|
|
2687
|
-
scaleWidth: I
|
|
2688
|
-
}), e[0] = O, e[1] = I, e[2] = D, e[3] = ee, e[4] = re) : re = e[4];
|
|
2689
|
-
const we = re, Fe = K || Number.MAX_VALUE;
|
|
2690
|
-
let Ne;
|
|
2691
|
-
e[5] !== O || e[6] !== I || e[7] !== D || e[8] !== Fe ? (Ne = je(Fe, {
|
|
2692
|
-
startLeft: D,
|
|
2678
|
+
selected: T,
|
|
2679
|
+
flexible: D,
|
|
2680
|
+
movable: F,
|
|
2681
|
+
effectId: le
|
|
2682
|
+
} = s, k = D === void 0 ? !0 : D, z = F === void 0 ? !0 : F, O = c ?? Yt, W = a ?? Gt, L = l ?? en, Ne = u ?? Qn, Te = w ?? Number.MAX_SAFE_INTEGER, ee = J || 0;
|
|
2683
|
+
let se;
|
|
2684
|
+
e[0] !== O || e[1] !== W || e[2] !== L || e[3] !== ee ? (se = De(ee, {
|
|
2685
|
+
startLeft: L,
|
|
2693
2686
|
scale: O,
|
|
2694
|
-
scaleWidth:
|
|
2695
|
-
}), e[
|
|
2696
|
-
const
|
|
2687
|
+
scaleWidth: W
|
|
2688
|
+
}), e[0] = O, e[1] = W, e[2] = L, e[3] = ee, e[4] = se) : se = e[4];
|
|
2689
|
+
const we = se, Ue = K || Number.MAX_VALUE;
|
|
2697
2690
|
let Ie;
|
|
2698
|
-
e[
|
|
2691
|
+
e[5] !== O || e[6] !== W || e[7] !== L || e[8] !== Ue ? (Ie = De(Ue, {
|
|
2692
|
+
startLeft: L,
|
|
2693
|
+
scale: O,
|
|
2694
|
+
scaleWidth: W
|
|
2695
|
+
}), e[5] = O, e[6] = W, e[7] = L, e[8] = Ue, e[9] = Ie) : Ie = e[9];
|
|
2696
|
+
const Ae = Math.min(Te * W + L, Ie);
|
|
2697
|
+
let ke;
|
|
2698
|
+
e[10] !== Z || e[11] !== O || e[12] !== W || e[13] !== L || e[14] !== d ? (ke = vn({
|
|
2699
2699
|
start: d,
|
|
2700
|
-
end:
|
|
2700
|
+
end: Z
|
|
2701
2701
|
}, {
|
|
2702
|
-
startLeft:
|
|
2702
|
+
startLeft: L,
|
|
2703
2703
|
scale: O,
|
|
2704
|
-
scaleWidth:
|
|
2705
|
-
}), e[10] =
|
|
2706
|
-
const Pt =
|
|
2707
|
-
let ke;
|
|
2708
|
-
e[16] !== ue || e[17] !== o || e[18] !== N || e[19] !== j || e[20] !== C ? (ke = pe(yo("action", j && "action-movable", C && "action-selected", N && "action-flexible", o[ue] && `action-effect-${ue}`)), e[16] = ue, e[17] = o, e[18] = N, e[19] = j, e[20] = C, e[21] = ke) : ke = e[21];
|
|
2709
|
-
const $e = ke;
|
|
2704
|
+
scaleWidth: W
|
|
2705
|
+
}), e[10] = Z, e[11] = O, e[12] = W, e[13] = L, e[14] = d, e[15] = ke) : ke = e[15];
|
|
2706
|
+
const Pt = ke, [it, $e] = Mt(null), Ee = it ?? Pt, He = W / Ne;
|
|
2710
2707
|
let We;
|
|
2711
|
-
e[
|
|
2708
|
+
e[16] !== le || e[17] !== o || e[18] !== k || e[19] !== z || e[20] !== T ? (We = pe(yo("action", z && "action-movable", T && "action-selected", k && "action-flexible", o[le] && `action-effect-${le}`)), e[16] = le, e[17] = o, e[18] = k, e[19] = z, e[20] = T, e[21] = We) : We = e[21];
|
|
2709
|
+
const Be = We;
|
|
2710
|
+
let ze;
|
|
2711
|
+
e[22] !== W || e[23] !== L || e[24] !== g || e[25] !== S ? (ze = (ve, be) => {
|
|
2712
2712
|
const ie = Nr(ve + be, {
|
|
2713
|
-
startLeft:
|
|
2713
|
+
startLeft: L,
|
|
2714
2714
|
scaleCount: g,
|
|
2715
|
-
scaleWidth:
|
|
2715
|
+
scaleWidth: W
|
|
2716
2716
|
});
|
|
2717
2717
|
ie !== g && S(ie);
|
|
2718
|
-
}, e[22] =
|
|
2719
|
-
const Pe =
|
|
2720
|
-
let
|
|
2721
|
-
e[27] !== s || e[28] !== y || e[29] !== r ? (
|
|
2718
|
+
}, e[22] = W, e[23] = L, e[24] = g, e[25] = S, e[26] = ze) : ze = e[26];
|
|
2719
|
+
const Pe = ze;
|
|
2720
|
+
let je;
|
|
2721
|
+
e[27] !== s || e[28] !== y || e[29] !== r ? (je = () => {
|
|
2722
2722
|
y && y({
|
|
2723
2723
|
action: s,
|
|
2724
2724
|
row: r
|
|
2725
2725
|
});
|
|
2726
|
-
}, e[27] = s, e[28] = y, e[29] = r, e[30] =
|
|
2727
|
-
const
|
|
2728
|
-
let
|
|
2729
|
-
e[31] !== s || e[32] !== Pe || e[33] !== _ || e[34] !== r || e[35] !== O || e[36] !==
|
|
2726
|
+
}, e[27] = s, e[28] = y, e[29] = r, e[30] = je) : je = e[30];
|
|
2727
|
+
const Je = je;
|
|
2728
|
+
let Xe;
|
|
2729
|
+
e[31] !== s || e[32] !== Pe || e[33] !== _ || e[34] !== r || e[35] !== O || e[36] !== W || e[37] !== L ? (Xe = (ve) => {
|
|
2730
2730
|
const {
|
|
2731
2731
|
left: be,
|
|
2732
2732
|
width: ie
|
|
2733
2733
|
} = ve;
|
|
2734
|
-
if (
|
|
2734
|
+
if (C.current = !0, _) {
|
|
2735
2735
|
const {
|
|
2736
2736
|
start: me,
|
|
2737
|
-
end:
|
|
2738
|
-
} =
|
|
2737
|
+
end: ae
|
|
2738
|
+
} = Lt({
|
|
2739
2739
|
left: be,
|
|
2740
2740
|
width: ie
|
|
2741
2741
|
}, {
|
|
2742
|
-
scaleWidth:
|
|
2742
|
+
scaleWidth: W,
|
|
2743
2743
|
scale: O,
|
|
2744
|
-
startLeft:
|
|
2744
|
+
startLeft: L
|
|
2745
2745
|
});
|
|
2746
2746
|
if (_({
|
|
2747
2747
|
action: s,
|
|
2748
2748
|
row: r,
|
|
2749
2749
|
start: me,
|
|
2750
|
-
end:
|
|
2750
|
+
end: ae
|
|
2751
2751
|
}) === !1)
|
|
2752
2752
|
return !1;
|
|
2753
2753
|
}
|
|
2754
|
-
|
|
2754
|
+
$e({
|
|
2755
2755
|
left: be,
|
|
2756
2756
|
width: ie
|
|
2757
2757
|
}), Pe(be, ie);
|
|
2758
|
-
}, e[31] = s, e[32] = Pe, e[33] = _, e[34] = r, e[35] = O, e[36] =
|
|
2759
|
-
const
|
|
2760
|
-
let
|
|
2761
|
-
e[39] !== t || e[40] !== M || e[41] !== h || e[42] !== r || e[43] !== O || e[44] !==
|
|
2758
|
+
}, e[31] = s, e[32] = Pe, e[33] = _, e[34] = r, e[35] = O, e[36] = W, e[37] = L, e[38] = Xe) : Xe = e[38];
|
|
2759
|
+
const Ze = Xe;
|
|
2760
|
+
let Fe;
|
|
2761
|
+
e[39] !== t || e[40] !== M || e[41] !== h || e[42] !== r || e[43] !== O || e[44] !== W || e[45] !== L || e[46] !== A ? (Fe = (ve) => {
|
|
2762
2762
|
const {
|
|
2763
2763
|
left: be,
|
|
2764
2764
|
width: ie
|
|
2765
2765
|
} = ve, {
|
|
2766
2766
|
start: me,
|
|
2767
|
-
end:
|
|
2768
|
-
} =
|
|
2767
|
+
end: ae
|
|
2768
|
+
} = Lt({
|
|
2769
2769
|
left: be,
|
|
2770
2770
|
width: ie
|
|
2771
2771
|
}, {
|
|
2772
|
-
scaleWidth:
|
|
2772
|
+
scaleWidth: W,
|
|
2773
2773
|
scale: O,
|
|
2774
|
-
startLeft:
|
|
2775
|
-
}),
|
|
2776
|
-
if (!
|
|
2774
|
+
startLeft: L
|
|
2775
|
+
}), he = t.find((qe) => qe.id === r.id);
|
|
2776
|
+
if (!he)
|
|
2777
2777
|
return;
|
|
2778
|
-
const
|
|
2779
|
-
|
|
2780
|
-
action:
|
|
2778
|
+
const Ke = he.actions.find((qe) => qe.id === M);
|
|
2779
|
+
Ke && (Ke.start = me, Ke.end = ae, A(t), h && h({
|
|
2780
|
+
action: Ke,
|
|
2781
2781
|
row: r,
|
|
2782
2782
|
start: me,
|
|
2783
|
-
end:
|
|
2784
|
-
}),
|
|
2785
|
-
}, e[39] = t, e[40] = M, e[41] = h, e[42] = r, e[43] = O, e[44] =
|
|
2786
|
-
const
|
|
2787
|
-
let
|
|
2788
|
-
e[48] !== s || e[49] !== p || e[50] !== r ? (
|
|
2783
|
+
end: ae
|
|
2784
|
+
}), $e(null));
|
|
2785
|
+
}, e[39] = t, e[40] = M, e[41] = h, e[42] = r, e[43] = O, e[44] = W, e[45] = L, e[46] = A, e[47] = Fe) : Fe = e[47];
|
|
2786
|
+
const Qe = Fe;
|
|
2787
|
+
let Ce;
|
|
2788
|
+
e[48] !== s || e[49] !== p || e[50] !== r ? (Ce = (ve) => {
|
|
2789
2789
|
p && p({
|
|
2790
2790
|
action: s,
|
|
2791
2791
|
row: r,
|
|
2792
2792
|
dir: ve
|
|
2793
2793
|
});
|
|
2794
|
-
}, e[48] = s, e[49] = p, e[50] = r, e[51] =
|
|
2795
|
-
const
|
|
2796
|
-
let
|
|
2797
|
-
e[52] !== s || e[53] !== Pe || e[54] !== R || e[55] !== r || e[56] !== O || e[57] !==
|
|
2794
|
+
}, e[48] = s, e[49] = p, e[50] = r, e[51] = Ce) : Ce = e[51];
|
|
2795
|
+
const Le = Ce;
|
|
2796
|
+
let Ve;
|
|
2797
|
+
e[52] !== s || e[53] !== Pe || e[54] !== R || e[55] !== r || e[56] !== O || e[57] !== W || e[58] !== L ? (Ve = (ve, be) => {
|
|
2798
2798
|
const {
|
|
2799
2799
|
left: ie,
|
|
2800
2800
|
width: me
|
|
2801
2801
|
} = be;
|
|
2802
|
-
if (
|
|
2802
|
+
if (C.current = !0, R) {
|
|
2803
2803
|
const {
|
|
2804
|
-
start:
|
|
2805
|
-
end:
|
|
2806
|
-
} =
|
|
2804
|
+
start: ae,
|
|
2805
|
+
end: he
|
|
2806
|
+
} = Lt({
|
|
2807
2807
|
left: ie,
|
|
2808
2808
|
width: me
|
|
2809
2809
|
}, {
|
|
2810
|
-
scaleWidth:
|
|
2810
|
+
scaleWidth: W,
|
|
2811
2811
|
scale: O,
|
|
2812
|
-
startLeft:
|
|
2812
|
+
startLeft: L
|
|
2813
2813
|
});
|
|
2814
2814
|
if (R({
|
|
2815
2815
|
action: s,
|
|
2816
2816
|
row: r,
|
|
2817
|
-
start:
|
|
2818
|
-
end:
|
|
2817
|
+
start: ae,
|
|
2818
|
+
end: he,
|
|
2819
2819
|
dir: ve
|
|
2820
2820
|
}) === !1)
|
|
2821
2821
|
return !1;
|
|
2822
2822
|
}
|
|
2823
|
-
|
|
2823
|
+
$e({
|
|
2824
2824
|
left: ie,
|
|
2825
2825
|
width: me
|
|
2826
2826
|
}), Pe(ie, me);
|
|
2827
|
-
}, e[52] = s, e[53] = Pe, e[54] = R, e[55] = r, e[56] = O, e[57] =
|
|
2828
|
-
const
|
|
2829
|
-
let
|
|
2830
|
-
e[60] !== t || e[61] !== M || e[62] !== v || e[63] !== r || e[64] !== O || e[65] !==
|
|
2827
|
+
}, e[52] = s, e[53] = Pe, e[54] = R, e[55] = r, e[56] = O, e[57] = W, e[58] = L, e[59] = Ve) : Ve = e[59];
|
|
2828
|
+
const V = Ve;
|
|
2829
|
+
let B;
|
|
2830
|
+
e[60] !== t || e[61] !== M || e[62] !== v || e[63] !== r || e[64] !== O || e[65] !== W || e[66] !== L || e[67] !== A ? (B = (ve, be) => {
|
|
2831
2831
|
const {
|
|
2832
2832
|
left: ie,
|
|
2833
2833
|
width: me
|
|
2834
2834
|
} = be, {
|
|
2835
|
-
start:
|
|
2836
|
-
end:
|
|
2837
|
-
} =
|
|
2835
|
+
start: ae,
|
|
2836
|
+
end: he
|
|
2837
|
+
} = Lt({
|
|
2838
2838
|
left: ie,
|
|
2839
2839
|
width: me
|
|
2840
2840
|
}, {
|
|
2841
|
-
scaleWidth:
|
|
2841
|
+
scaleWidth: W,
|
|
2842
2842
|
scale: O,
|
|
2843
|
-
startLeft:
|
|
2844
|
-
}),
|
|
2845
|
-
if (!
|
|
2843
|
+
startLeft: L
|
|
2844
|
+
}), Ke = t.find((sn) => sn.id === r.id);
|
|
2845
|
+
if (!Ke)
|
|
2846
2846
|
return;
|
|
2847
|
-
const
|
|
2848
|
-
|
|
2849
|
-
action:
|
|
2847
|
+
const qe = Ke.actions.find((sn) => sn.id === M);
|
|
2848
|
+
qe && (qe.start = ae, qe.end = he, A(t), v && v({
|
|
2849
|
+
action: qe,
|
|
2850
2850
|
row: r,
|
|
2851
|
-
start:
|
|
2852
|
-
end:
|
|
2851
|
+
start: ae,
|
|
2852
|
+
end: he,
|
|
2853
2853
|
dir: ve
|
|
2854
|
-
}),
|
|
2855
|
-
}, e[60] = t, e[61] = M, e[62] = v, e[63] = r, e[64] = O, e[65] =
|
|
2856
|
-
const
|
|
2857
|
-
let
|
|
2858
|
-
if (e[69] !== s || e[70] !==
|
|
2854
|
+
}), $e(null));
|
|
2855
|
+
}, e[60] = t, e[61] = M, e[62] = v, e[63] = r, e[64] = O, e[65] = W, e[66] = L, e[67] = A, e[68] = B) : B = e[68];
|
|
2856
|
+
const G = B;
|
|
2857
|
+
let H, ue, ce, X, oe, U, te, fe, de, ye, ct, at, lt, ut, ft, dt, Ye, Ge, ht, mt, pt, gt, vt, bt, St, _t;
|
|
2858
|
+
if (e[69] !== s || e[70] !== Be || e[71] !== f || e[72] !== k || e[73] !== q || e[74] !== He || e[75] !== m || e[76] !== Ze || e[77] !== Qe || e[78] !== Je || e[79] !== G || e[80] !== Le || e[81] !== V || e[82] !== $ || e[83] !== we || e[84] !== z || e[85] !== I || e[86] !== P || e[87] !== j || e[88] !== N || e[89] !== Ae || e[90] !== r || e[91] !== i || e[92] !== O || e[93] !== W || e[94] !== L || e[95] !== re || e[96] !== E.assistPositions || e[97] !== Ee.left || e[98] !== Ee.width) {
|
|
2859
2859
|
const ve = {
|
|
2860
2860
|
...s,
|
|
2861
|
-
...
|
|
2861
|
+
...Lt({
|
|
2862
2862
|
left: Ee.left,
|
|
2863
2863
|
width: Ee.width
|
|
2864
2864
|
}, {
|
|
2865
|
-
startLeft:
|
|
2866
|
-
scaleWidth:
|
|
2865
|
+
startLeft: L,
|
|
2866
|
+
scaleWidth: W,
|
|
2867
2867
|
scale: O
|
|
2868
2868
|
})
|
|
2869
2869
|
}, be = {
|
|
2870
2870
|
...r,
|
|
2871
2871
|
actions: [...r.actions]
|
|
2872
2872
|
};
|
|
2873
|
-
r.actions.includes(s) && (be.actions[r.actions.indexOf(s)] = ve),
|
|
2873
|
+
r.actions.includes(s) && (be.actions[r.actions.indexOf(s)] = ve), H = Rr, de = Y, ye = re, ct = L, at = Ee.left, lt = Ee.width, ut = m && He || mn, ft = m ? Math.max((He || mn) / 2, Kt) : Kt, dt = E.assistPositions, e[125] !== we || e[126] !== Ae ? (Ye = () => ({
|
|
2874
2874
|
left: we,
|
|
2875
2875
|
right: Ae
|
|
2876
|
-
}), e[125] = we, e[126] = Ae, e[127] =
|
|
2876
|
+
}), e[125] = we, e[126] = Ae, e[127] = Ye) : Ye = e[127];
|
|
2877
2877
|
let ie;
|
|
2878
|
-
e[128] !== f || e[129] !==
|
|
2878
|
+
e[128] !== f || e[129] !== k ? (ie = !f && k && `.${pe("action-left-stretch")}`, e[128] = f, e[129] = k, e[130] = ie) : ie = e[130];
|
|
2879
2879
|
let me;
|
|
2880
|
-
e[131] !== f || e[132] !==
|
|
2880
|
+
e[131] !== f || e[132] !== k ? (me = !f && k && `.${pe("action-right-stretch")}`, e[131] = f, e[132] = k, e[133] = me) : me = e[133], e[134] !== ie || e[135] !== me ? (Ge = {
|
|
2881
2881
|
left: ie,
|
|
2882
2882
|
right: me
|
|
2883
|
-
}, e[134] = ie, e[135] = me, e[136] =
|
|
2884
|
-
|
|
2885
|
-
}, e[137] =
|
|
2886
|
-
let
|
|
2887
|
-
|
|
2883
|
+
}, e[134] = ie, e[135] = me, e[136] = Ge) : Ge = e[136], ht = !f && z, mt = !f && k, pt = Je, gt = Ze, vt = Qe, bt = Le, St = V, _t = G, e[137] === Symbol.for("react.memo_cache_sentinel") ? (ue = () => {
|
|
2884
|
+
C.current = !1;
|
|
2885
|
+
}, e[137] = ue) : ue = e[137], e[138] !== s || e[139] !== $ || e[140] !== I || e[141] !== P || e[142] !== r ? (ce = (ae) => {
|
|
2886
|
+
let he;
|
|
2887
|
+
I && (he = $(ae), I(ae, {
|
|
2888
2888
|
row: r,
|
|
2889
2889
|
action: s,
|
|
2890
|
-
time:
|
|
2891
|
-
})), !
|
|
2890
|
+
time: he
|
|
2891
|
+
})), !C.current && P && (he === void 0 && (he = $(ae)), P(ae, {
|
|
2892
2892
|
row: r,
|
|
2893
2893
|
action: s,
|
|
2894
|
-
time:
|
|
2894
|
+
time: he
|
|
2895
2895
|
}));
|
|
2896
|
-
}, e[138] = s, e[139] = $, e[140] =
|
|
2897
|
-
if (
|
|
2898
|
-
const
|
|
2899
|
-
|
|
2896
|
+
}, e[138] = s, e[139] = $, e[140] = I, e[141] = P, e[142] = r, e[143] = ce) : ce = e[143], e[144] !== s || e[145] !== $ || e[146] !== N || e[147] !== r ? (X = (ae) => {
|
|
2897
|
+
if (N) {
|
|
2898
|
+
const he = $(ae);
|
|
2899
|
+
N(ae, {
|
|
2900
2900
|
row: r,
|
|
2901
2901
|
action: s,
|
|
2902
|
-
time:
|
|
2902
|
+
time: he
|
|
2903
2903
|
});
|
|
2904
2904
|
}
|
|
2905
|
-
}, e[144] = s, e[145] = $, e[146] =
|
|
2906
|
-
if (
|
|
2907
|
-
const
|
|
2908
|
-
|
|
2905
|
+
}, e[144] = s, e[145] = $, e[146] = N, e[147] = r, e[148] = X) : X = e[148], e[149] !== s || e[150] !== $ || e[151] !== j || e[152] !== r ? (oe = (ae) => {
|
|
2906
|
+
if (j) {
|
|
2907
|
+
const he = $(ae);
|
|
2908
|
+
j(ae, {
|
|
2909
2909
|
row: r,
|
|
2910
2910
|
action: s,
|
|
2911
|
-
time:
|
|
2911
|
+
time: he
|
|
2912
2912
|
});
|
|
2913
2913
|
}
|
|
2914
|
-
}, e[149] = s, e[150] = $, e[151] =
|
|
2914
|
+
}, e[149] = s, e[150] = $, e[151] = j, e[152] = r, e[153] = oe) : oe = e[153], U = Be, e[154] !== i ? (te = {
|
|
2915
2915
|
height: i
|
|
2916
|
-
}, e[154] = i, e[155] =
|
|
2916
|
+
}, e[154] = i, e[155] = te) : te = e[155], fe = q && q(ve, be), e[69] = s, e[70] = Be, e[71] = f, e[72] = k, e[73] = q, e[74] = He, e[75] = m, e[76] = Ze, e[77] = Qe, e[78] = Je, e[79] = G, e[80] = Le, e[81] = V, e[82] = $, e[83] = we, e[84] = z, e[85] = I, e[86] = P, e[87] = j, e[88] = N, e[89] = Ae, e[90] = r, e[91] = i, e[92] = O, e[93] = W, e[94] = L, e[95] = re, e[96] = E.assistPositions, e[97] = Ee.left, e[98] = Ee.width, e[99] = H, e[100] = ue, e[101] = ce, e[102] = X, e[103] = oe, e[104] = U, e[105] = te, e[106] = fe, e[107] = de, e[108] = ye, e[109] = ct, e[110] = at, e[111] = lt, e[112] = ut, e[113] = ft, e[114] = dt, e[115] = Ye, e[116] = Ge, e[117] = ht, e[118] = mt, e[119] = pt, e[120] = gt, e[121] = vt, e[122] = bt, e[123] = St, e[124] = _t;
|
|
2917
2917
|
} else
|
|
2918
|
-
|
|
2918
|
+
H = e[99], ue = e[100], ce = e[101], X = e[102], oe = e[103], U = e[104], te = e[105], fe = e[106], de = e[107], ye = e[108], ct = e[109], at = e[110], lt = e[111], ut = e[112], ft = e[113], dt = e[114], Ye = e[115], Ge = e[116], ht = e[117], mt = e[118], pt = e[119], gt = e[120], vt = e[121], bt = e[122], St = e[123], _t = e[124];
|
|
2919
2919
|
let wt;
|
|
2920
|
-
e[156] !==
|
|
2920
|
+
e[156] !== k ? (wt = k && /* @__PURE__ */ x.jsx("div", { className: pe("action-left-stretch"), style: {
|
|
2921
2921
|
touchAction: "none"
|
|
2922
|
-
} }), e[156] =
|
|
2922
|
+
} }), e[156] = k, e[157] = wt) : wt = e[157];
|
|
2923
2923
|
let Et;
|
|
2924
|
-
e[158] !==
|
|
2924
|
+
e[158] !== k ? (Et = k && /* @__PURE__ */ x.jsx("div", { className: pe("action-right-stretch"), style: {
|
|
2925
2925
|
touchAction: "none"
|
|
2926
|
-
} }), e[158] =
|
|
2926
|
+
} }), e[158] = k, e[159] = Et) : Et = e[159];
|
|
2927
2927
|
let yt;
|
|
2928
|
-
e[160] !==
|
|
2928
|
+
e[160] !== ue || e[161] !== ce || e[162] !== X || e[163] !== oe || e[164] !== U || e[165] !== te || e[166] !== fe || e[167] !== wt || e[168] !== Et ? (yt = /* @__PURE__ */ x.jsxs("div", { onMouseDown: ue, onClick: ce, onDoubleClick: X, onContextMenu: oe, className: U, style: te, children: [
|
|
2929
2929
|
fe,
|
|
2930
2930
|
wt,
|
|
2931
2931
|
Et
|
|
2932
|
-
] }), e[160] =
|
|
2932
|
+
] }), e[160] = ue, e[161] = ce, e[162] = X, e[163] = oe, e[164] = U, e[165] = te, e[166] = fe, e[167] = wt, e[168] = Et, e[169] = yt) : yt = e[169];
|
|
2933
2933
|
let zt;
|
|
2934
|
-
return e[170] !==
|
|
2934
|
+
return e[170] !== H || e[171] !== de || e[172] !== ye || e[173] !== ct || e[174] !== at || e[175] !== lt || e[176] !== ut || e[177] !== ft || e[178] !== dt || e[179] !== Ye || e[180] !== Ge || e[181] !== ht || e[182] !== mt || e[183] !== pt || e[184] !== gt || e[185] !== vt || e[186] !== bt || e[187] !== St || e[188] !== _t || e[189] !== yt ? (zt = /* @__PURE__ */ x.jsx(H, { ref: de, parentRef: ye, start: ct, left: at, width: lt, grid: ut, snapDistance: ft, snapPositions: dt, getBounds: Ye, edges: Ge, enableDragging: ht, enableResizing: mt, onDragStart: pt, onDrag: gt, onDragEnd: vt, onResizeStart: bt, onResize: St, onResizeEnd: _t, children: yt }), e[170] = H, e[171] = de, e[172] = ye, e[173] = ct, e[174] = at, e[175] = lt, e[176] = ut, e[177] = ft, e[178] = dt, e[179] = Ye, e[180] = Ge, e[181] = ht, e[182] = mt, e[183] = pt, e[184] = gt, e[185] = vt, e[186] = bt, e[187] = St, e[188] = _t, e[189] = yt, e[190] = zt) : zt = e[190], zt;
|
|
2935
2935
|
};
|
|
2936
2936
|
function Rt(n, e, t) {
|
|
2937
2937
|
let r = t.initialDeps ?? [], s;
|
|
@@ -2973,7 +2973,7 @@ function Xn(n, e) {
|
|
|
2973
2973
|
throw new Error("Unexpected undefined");
|
|
2974
2974
|
return n;
|
|
2975
2975
|
}
|
|
2976
|
-
const Ro = (n, e) => Math.abs(n - e) < 1.01,
|
|
2976
|
+
const Ro = (n, e) => Math.abs(n - e) < 1.01, To = (n, e, t) => {
|
|
2977
2977
|
let r;
|
|
2978
2978
|
return function(...s) {
|
|
2979
2979
|
n.clearTimeout(r), r = n.setTimeout(() => e.apply(this, s), t);
|
|
@@ -2981,7 +2981,7 @@ const Ro = (n, e) => Math.abs(n - e) < 1.01, Co = (n, e, t) => {
|
|
|
2981
2981
|
}, Yn = (n) => {
|
|
2982
2982
|
const { offsetWidth: e, offsetHeight: t } = n;
|
|
2983
2983
|
return { width: e, height: t };
|
|
2984
|
-
},
|
|
2984
|
+
}, Co = (n) => n, Ao = (n) => {
|
|
2985
2985
|
const e = Math.max(n.startIndex - n.overscan, 0), t = Math.min(n.endIndex + n.overscan, n.count - 1), r = [];
|
|
2986
2986
|
for (let s = e; s <= t; s++)
|
|
2987
2987
|
r.push(s);
|
|
@@ -3019,7 +3019,7 @@ const Ro = (n, e) => Math.abs(n - e) < 1.01, Co = (n, e, t) => {
|
|
|
3019
3019
|
};
|
|
3020
3020
|
}, Gn = {
|
|
3021
3021
|
passive: !0
|
|
3022
|
-
}, Kn = typeof window > "u" ? !0 : "onscrollend" in window,
|
|
3022
|
+
}, Kn = typeof window > "u" ? !0 : "onscrollend" in window, Lo = (n, e) => {
|
|
3023
3023
|
const t = n.scrollElement;
|
|
3024
3024
|
if (!t)
|
|
3025
3025
|
return;
|
|
@@ -3028,7 +3028,7 @@ const Ro = (n, e) => Math.abs(n - e) < 1.01, Co = (n, e, t) => {
|
|
|
3028
3028
|
return;
|
|
3029
3029
|
let s = 0;
|
|
3030
3030
|
const o = n.options.useScrollendEvent && Kn ? () => {
|
|
3031
|
-
} :
|
|
3031
|
+
} : To(
|
|
3032
3032
|
r,
|
|
3033
3033
|
() => {
|
|
3034
3034
|
e(s, !1);
|
|
@@ -3043,7 +3043,7 @@ const Ro = (n, e) => Math.abs(n - e) < 1.01, Co = (n, e, t) => {
|
|
|
3043
3043
|
return u && t.addEventListener("scrollend", a, Gn), () => {
|
|
3044
3044
|
t.removeEventListener("scroll", c), u && t.removeEventListener("scrollend", a);
|
|
3045
3045
|
};
|
|
3046
|
-
},
|
|
3046
|
+
}, Do = (n, e, t) => {
|
|
3047
3047
|
if (e?.borderBoxSize) {
|
|
3048
3048
|
const r = e.borderBoxSize[0];
|
|
3049
3049
|
if (r)
|
|
@@ -3101,11 +3101,11 @@ class Mo {
|
|
|
3101
3101
|
scrollPaddingStart: 0,
|
|
3102
3102
|
scrollPaddingEnd: 0,
|
|
3103
3103
|
horizontal: !1,
|
|
3104
|
-
getItemKey:
|
|
3104
|
+
getItemKey: Co,
|
|
3105
3105
|
rangeExtractor: Ao,
|
|
3106
3106
|
onChange: () => {
|
|
3107
3107
|
},
|
|
3108
|
-
measureElement:
|
|
3108
|
+
measureElement: Do,
|
|
3109
3109
|
initialRect: { width: 0, height: 0 },
|
|
3110
3110
|
scrollMargin: 0,
|
|
3111
3111
|
gap: 0,
|
|
@@ -3311,7 +3311,7 @@ class Mo {
|
|
|
3311
3311
|
const r = this.getMeasurements();
|
|
3312
3312
|
if (r.length !== 0)
|
|
3313
3313
|
return Xn(
|
|
3314
|
-
r[
|
|
3314
|
+
r[Tr(
|
|
3315
3315
|
0,
|
|
3316
3316
|
r.length - 1,
|
|
3317
3317
|
(s) => Xn(r[s]).start,
|
|
@@ -3413,7 +3413,7 @@ class Mo {
|
|
|
3413
3413
|
}, this.setOptions(e);
|
|
3414
3414
|
}
|
|
3415
3415
|
}
|
|
3416
|
-
const
|
|
3416
|
+
const Tr = (n, e, t, r) => {
|
|
3417
3417
|
for (; n <= e; ) {
|
|
3418
3418
|
const s = (n + e) / 2 | 0, o = t(s);
|
|
3419
3419
|
if (o < r)
|
|
@@ -3437,7 +3437,7 @@ function No({
|
|
|
3437
3437
|
startIndex: 0,
|
|
3438
3438
|
endIndex: s
|
|
3439
3439
|
};
|
|
3440
|
-
let i =
|
|
3440
|
+
let i = Tr(
|
|
3441
3441
|
0,
|
|
3442
3442
|
s,
|
|
3443
3443
|
o,
|
|
@@ -3474,10 +3474,10 @@ function Io(n) {
|
|
|
3474
3474
|
);
|
|
3475
3475
|
return r.setOptions(t), qn(() => r._didMount(), []), qn(() => r._willUpdate()), r;
|
|
3476
3476
|
}
|
|
3477
|
-
function
|
|
3477
|
+
function Cr(n) {
|
|
3478
3478
|
return Io({
|
|
3479
3479
|
observeElementRect: Po,
|
|
3480
|
-
observeElementOffset:
|
|
3480
|
+
observeElementOffset: Lo,
|
|
3481
3481
|
scrollToFn: Oo,
|
|
3482
3482
|
...n
|
|
3483
3483
|
});
|
|
@@ -3498,13 +3498,13 @@ const ko = (n) => {
|
|
|
3498
3498
|
e?.selected && m.push("edit-row-selected");
|
|
3499
3499
|
const f = a ?? Yt, g = u ?? Gt, w = c ?? en, S = (p) => {
|
|
3500
3500
|
if (!i.current) return 0;
|
|
3501
|
-
const R = p.currentTarget.getBoundingClientRect(),
|
|
3502
|
-
return
|
|
3501
|
+
const R = p.currentTarget.getBoundingClientRect(), A = p.clientX - R.x;
|
|
3502
|
+
return Ct(A, {
|
|
3503
3503
|
startLeft: w,
|
|
3504
3504
|
scale: f,
|
|
3505
3505
|
scaleWidth: g
|
|
3506
3506
|
});
|
|
3507
|
-
}, y = Pr(() => (e?.actions ? [...e.actions] : []).sort((p, v) => p.start - v.start), [e]), _ =
|
|
3507
|
+
}, y = Pr(() => (e?.actions ? [...e.actions] : []).sort((p, v) => p.start - v.start), [e]), _ = Lr((p) => y[p]?.id ?? p, [y]), h = Cr({
|
|
3508
3508
|
horizontal: !0,
|
|
3509
3509
|
count: y.length,
|
|
3510
3510
|
getItemKey: _,
|
|
@@ -3527,7 +3527,7 @@ const ko = (n) => {
|
|
|
3527
3527
|
},
|
|
3528
3528
|
overscan: l ?? 5
|
|
3529
3529
|
});
|
|
3530
|
-
return
|
|
3530
|
+
return st(() => h.measure(), [f, g, w, h]), /* @__PURE__ */ x.jsx("div", { className: `${pe(...m)} ${(e?.classNames || []).join(" ")}`, style: t, onClick: (p) => {
|
|
3531
3531
|
if (e && r) {
|
|
3532
3532
|
const v = S(p);
|
|
3533
3533
|
r(p, {
|
|
@@ -3558,14 +3558,14 @@ const ko = (n) => {
|
|
|
3558
3558
|
}) });
|
|
3559
3559
|
};
|
|
3560
3560
|
function Wo() {
|
|
3561
|
-
const n =
|
|
3561
|
+
const n = Oe.c(7);
|
|
3562
3562
|
let e;
|
|
3563
3563
|
n[0] === Symbol.for("react.memo_cache_sentinel") ? (e = {
|
|
3564
3564
|
isMoving: !1,
|
|
3565
3565
|
movePositions: [],
|
|
3566
3566
|
assistPositions: []
|
|
3567
3567
|
}, n[0] = e) : e = n[0];
|
|
3568
|
-
const [t, r] = Mt(e), s =
|
|
3568
|
+
const [t, r] = Mt(e), s = ne(null), o = jo, i = zo;
|
|
3569
3569
|
let c;
|
|
3570
3570
|
n[1] === Symbol.for("react.memo_cache_sentinel") ? (c = (y) => {
|
|
3571
3571
|
const {
|
|
@@ -3684,14 +3684,14 @@ const Fo = ({
|
|
|
3684
3684
|
defaultGetAssistPosition: c,
|
|
3685
3685
|
defaultGetMovePosition: a
|
|
3686
3686
|
} = Wo();
|
|
3687
|
-
|
|
3687
|
+
st(() => {
|
|
3688
3688
|
const _ = i();
|
|
3689
3689
|
if (e.snap && _ && t.isMoving) {
|
|
3690
|
-
const h = e.scaleWidth ?? 160, p = e.scale ?? 1, v = e.startLeft ?? 20, R = e.hideCursor ?? !1, E =
|
|
3690
|
+
const h = e.scaleWidth ?? 160, p = e.scale ?? 1, v = e.startLeft ?? 20, R = e.hideCursor ?? !1, E = De(e.cursorTime, {
|
|
3691
3691
|
scaleWidth: h,
|
|
3692
3692
|
scale: p,
|
|
3693
3693
|
startLeft: v
|
|
3694
|
-
}),
|
|
3694
|
+
}), A = c({
|
|
3695
3695
|
editorData: e.editorData,
|
|
3696
3696
|
assistActionIds: _.assistActionIds,
|
|
3697
3697
|
action: _.action,
|
|
@@ -3703,7 +3703,7 @@ const Fo = ({
|
|
|
3703
3703
|
cursorLeft: E
|
|
3704
3704
|
});
|
|
3705
3705
|
s({
|
|
3706
|
-
assistPositions:
|
|
3706
|
+
assistPositions: A
|
|
3707
3707
|
});
|
|
3708
3708
|
} else !e.snap && t.isMoving && s({
|
|
3709
3709
|
assistPositions: []
|
|
@@ -3716,11 +3716,11 @@ const Fo = ({
|
|
|
3716
3716
|
editorData: e.editorData
|
|
3717
3717
|
});
|
|
3718
3718
|
if (e.snap) {
|
|
3719
|
-
const p = e.scaleWidth ?? 160, v = e.scale ?? 1, R = e.startLeft ?? 20, E = e.hideCursor ?? !1,
|
|
3719
|
+
const p = e.scaleWidth ?? 160, v = e.scale ?? 1, R = e.startLeft ?? 20, E = e.hideCursor ?? !1, A = De(e.cursorTime, {
|
|
3720
3720
|
scaleWidth: p,
|
|
3721
3721
|
scale: v,
|
|
3722
3722
|
startLeft: R
|
|
3723
|
-
}),
|
|
3723
|
+
}), I = c({
|
|
3724
3724
|
editorData: e.editorData,
|
|
3725
3725
|
assistActionIds: h,
|
|
3726
3726
|
action: _.action,
|
|
@@ -3729,10 +3729,10 @@ const Fo = ({
|
|
|
3729
3729
|
scaleWidth: p,
|
|
3730
3730
|
startLeft: R,
|
|
3731
3731
|
hideCursor: E,
|
|
3732
|
-
cursorLeft:
|
|
3732
|
+
cursorLeft: A
|
|
3733
3733
|
});
|
|
3734
3734
|
r({
|
|
3735
|
-
assistPositions:
|
|
3735
|
+
assistPositions: I,
|
|
3736
3736
|
action: _.action,
|
|
3737
3737
|
row: _.row,
|
|
3738
3738
|
assistActionIds: h
|
|
@@ -3762,7 +3762,7 @@ const Fo = ({
|
|
|
3762
3762
|
const v = e.editorData[p];
|
|
3763
3763
|
if (!v) continue;
|
|
3764
3764
|
const R = v.rowHeight || m;
|
|
3765
|
-
_.push(/* @__PURE__ */
|
|
3765
|
+
_.push(/* @__PURE__ */ Dr(ko, { ...e, key: v.id, rowData: v, snapData: t, scrollContainerRef: e.scrollElementRef, style: {
|
|
3766
3766
|
position: "absolute",
|
|
3767
3767
|
top: 0,
|
|
3768
3768
|
left: 0,
|
|
@@ -3796,7 +3796,7 @@ function Vo({
|
|
|
3796
3796
|
setCursor: a,
|
|
3797
3797
|
getScaleRender: u
|
|
3798
3798
|
}) {
|
|
3799
|
-
const l = n ?? 1, m = e ?? 160, f = t ?? 20, g = (n ?? 0) > 0, w = g ? r * (n ?? 1) + 1 : r, S = (g ? m / l : m) * (w - 1) + f, _ =
|
|
3799
|
+
const l = n ?? 1, m = e ?? 160, f = t ?? 20, g = (n ?? 0) > 0, w = g ? r * (n ?? 1) + 1 : r, S = (g ? m / l : m) * (w - 1) + f, _ = Cr({
|
|
3800
3800
|
horizontal: !0,
|
|
3801
3801
|
count: w,
|
|
3802
3802
|
getScrollElement: () => i.current,
|
|
@@ -3810,25 +3810,25 @@ function Vo({
|
|
|
3810
3810
|
},
|
|
3811
3811
|
overscan: 10
|
|
3812
3812
|
});
|
|
3813
|
-
return
|
|
3813
|
+
return st(() => _.measure(), [o, e, t, _]), /* @__PURE__ */ x.jsx("div", { style: {
|
|
3814
3814
|
width: `${S}px`
|
|
3815
3815
|
}, className: pe("time-area"), onClick: (h) => {
|
|
3816
|
-
const p = t ?? 20, v = e ?? 160, R = o ?? 1, E = s ?? 1 / 0,
|
|
3816
|
+
const p = t ?? 20, v = e ?? 160, R = o ?? 1, E = s ?? 1 / 0, A = h.currentTarget.getBoundingClientRect(), I = h.clientX - A.x, P = Math.max(I, p);
|
|
3817
3817
|
if (P > E * v + p) return;
|
|
3818
|
-
const
|
|
3818
|
+
const N = Ct(P, {
|
|
3819
3819
|
startLeft: p,
|
|
3820
3820
|
scale: R,
|
|
3821
3821
|
scaleWidth: v
|
|
3822
3822
|
});
|
|
3823
|
-
c && c(
|
|
3824
|
-
time:
|
|
3823
|
+
c && c(N, h), !h.defaultPrevented && a({
|
|
3824
|
+
time: N
|
|
3825
3825
|
});
|
|
3826
3826
|
}, children: _.getVirtualItems().map((h) => {
|
|
3827
|
-
const p = h.index, v = n ?? 1, R = o ?? 1, E = g ? p % v === 0 : !0,
|
|
3827
|
+
const p = h.index, v = n ?? 1, R = o ?? 1, E = g ? p % v === 0 : !0, A = [pe("time-unit"), pe(E ? "time-unit-big" : "time-unit-small")], I = (g ? p / v : p) * R;
|
|
3828
3828
|
return /* @__PURE__ */ x.jsx("div", { "data-index": h.index, style: {
|
|
3829
3829
|
width: `${h.size}px`,
|
|
3830
3830
|
transform: `translateX(${h.start}px)`
|
|
3831
|
-
}, className:
|
|
3831
|
+
}, className: A.join(" "), children: /* @__PURE__ */ x.jsx(Or, { mode: E ? "visible" : "hidden", children: /* @__PURE__ */ x.jsx("div", { className: pe("time-unit-scale"), children: u?.(I) ?? I }) }) }, h.key);
|
|
3832
3832
|
}) });
|
|
3833
3833
|
}
|
|
3834
3834
|
function Uo(n) {
|
|
@@ -3881,9 +3881,9 @@ function qo(n, e) {
|
|
|
3881
3881
|
};
|
|
3882
3882
|
}
|
|
3883
3883
|
const Xt = /* @__PURE__ */ new Set();
|
|
3884
|
-
let
|
|
3884
|
+
let Tt;
|
|
3885
3885
|
function Jo() {
|
|
3886
|
-
|
|
3886
|
+
Tt = () => {
|
|
3887
3887
|
const n = {
|
|
3888
3888
|
get width() {
|
|
3889
3889
|
return window.innerWidth;
|
|
@@ -3893,18 +3893,18 @@ function Jo() {
|
|
|
3893
3893
|
}
|
|
3894
3894
|
};
|
|
3895
3895
|
Xt.forEach((e) => e(n));
|
|
3896
|
-
}, window.addEventListener("resize",
|
|
3896
|
+
}, window.addEventListener("resize", Tt);
|
|
3897
3897
|
}
|
|
3898
3898
|
function Zo(n) {
|
|
3899
|
-
return Xt.add(n),
|
|
3900
|
-
Xt.delete(n), !Xt.size && typeof
|
|
3899
|
+
return Xt.add(n), Tt || Jo(), () => {
|
|
3900
|
+
Xt.delete(n), !Xt.size && typeof Tt == "function" && (window.removeEventListener("resize", Tt), Tt = void 0);
|
|
3901
3901
|
};
|
|
3902
3902
|
}
|
|
3903
3903
|
function Qo(n, e) {
|
|
3904
3904
|
return typeof n == "function" ? Zo(n) : qo(n, e);
|
|
3905
3905
|
}
|
|
3906
3906
|
function ei(n) {
|
|
3907
|
-
const e =
|
|
3907
|
+
const e = Oe.c(4), {
|
|
3908
3908
|
elementRef: t
|
|
3909
3909
|
} = n;
|
|
3910
3910
|
let r;
|
|
@@ -3924,7 +3924,7 @@ function ei(n) {
|
|
|
3924
3924
|
}, c = [t], e[1] = t, e[2] = i, e[3] = c) : (i = e[2], c = e[3]), Qt(i, c), s;
|
|
3925
3925
|
}
|
|
3926
3926
|
const ti = (n) => {
|
|
3927
|
-
const e =
|
|
3927
|
+
const e = Oe.c(47), {
|
|
3928
3928
|
disableDrag: t,
|
|
3929
3929
|
cursorTime: r,
|
|
3930
3930
|
setCursor: s,
|
|
@@ -3940,112 +3940,112 @@ const ti = (n) => {
|
|
|
3940
3940
|
onCursorDragEnd: w,
|
|
3941
3941
|
cursorSnap: S,
|
|
3942
3942
|
editorData: y
|
|
3943
|
-
} = n, _ =
|
|
3943
|
+
} = n, _ = ne(null), h = ne(void 0), p = o ?? 20, v = i ?? 160, R = c ?? 1;
|
|
3944
3944
|
let E;
|
|
3945
|
-
e[0] !== S ? (E = (
|
|
3946
|
-
if (!S || !
|
|
3945
|
+
e[0] !== S ? (E = (k, z, O, W) => {
|
|
3946
|
+
if (!S || !k)
|
|
3947
3947
|
return [];
|
|
3948
|
-
const
|
|
3949
|
-
return er(
|
|
3950
|
-
startLeft:
|
|
3951
|
-
scale:
|
|
3948
|
+
const L = k.flatMap(ni);
|
|
3949
|
+
return er(L, {
|
|
3950
|
+
startLeft: z,
|
|
3951
|
+
scale: W,
|
|
3952
3952
|
scaleWidth: O
|
|
3953
3953
|
});
|
|
3954
3954
|
}, e[0] = S, e[1] = E) : E = e[1];
|
|
3955
|
-
const
|
|
3956
|
-
let P,
|
|
3955
|
+
const A = E, I = ri;
|
|
3956
|
+
let P, N;
|
|
3957
3957
|
e[2] !== r || e[3] !== c || e[4] !== i || e[5] !== o ? (P = () => {
|
|
3958
3958
|
if (typeof h.current > "u" && _.current) {
|
|
3959
|
-
const
|
|
3960
|
-
_.current.updateLeft(
|
|
3961
|
-
startLeft:
|
|
3962
|
-
scaleWidth:
|
|
3959
|
+
const k = o ?? 20, z = i ?? 160, O = c ?? 1;
|
|
3960
|
+
_.current.updateLeft(De(r, {
|
|
3961
|
+
startLeft: k,
|
|
3962
|
+
scaleWidth: z,
|
|
3963
3963
|
scale: O
|
|
3964
3964
|
}));
|
|
3965
3965
|
}
|
|
3966
|
-
},
|
|
3967
|
-
const
|
|
3966
|
+
}, N = [r, o, i, c], e[2] = r, e[3] = c, e[4] = i, e[5] = o, e[6] = P, e[7] = N) : (P = e[6], N = e[7]), st(P, N);
|
|
3967
|
+
const j = m ?? 1 / 0, q = (u ?? 0) > 0, $ = u ?? 1, re = q ? a * (u ?? 1) + 1 : a, Y = o ?? 20, C = (q ? v / $ : v) * (re - 1) + Y;
|
|
3968
3968
|
let M;
|
|
3969
|
-
e[8] !== p || e[9] !==
|
|
3969
|
+
e[8] !== p || e[9] !== j || e[10] !== l || e[11] !== C || e[12] !== v ? (M = () => ({
|
|
3970
3970
|
left: 0,
|
|
3971
|
-
right: Math.min(
|
|
3972
|
-
}), e[8] = p, e[9] =
|
|
3971
|
+
right: Math.min(C, j * v + p - (l.current?.scrollLeft ?? 0))
|
|
3972
|
+
}), e[8] = p, e[9] = j, e[10] = l, e[11] = C, e[12] = v, e[13] = M) : M = e[13];
|
|
3973
3973
|
const K = !t;
|
|
3974
|
-
let
|
|
3975
|
-
e[14] !== r || e[15] !== p || e[16] !== f || e[17] !== R || e[18] !== v ? (
|
|
3976
|
-
const
|
|
3974
|
+
let J;
|
|
3975
|
+
e[14] !== r || e[15] !== p || e[16] !== f || e[17] !== R || e[18] !== v ? (J = () => {
|
|
3976
|
+
const k = _.current?.getLeft() ?? De(r, {
|
|
3977
3977
|
startLeft: p,
|
|
3978
3978
|
scaleWidth: v,
|
|
3979
3979
|
scale: R
|
|
3980
3980
|
});
|
|
3981
|
-
h.current =
|
|
3982
|
-
const
|
|
3981
|
+
h.current = k;
|
|
3982
|
+
const z = Ct(k, {
|
|
3983
3983
|
startLeft: p,
|
|
3984
3984
|
scale: R,
|
|
3985
3985
|
scaleWidth: v
|
|
3986
3986
|
});
|
|
3987
|
-
f && f(
|
|
3988
|
-
}, e[14] = r, e[15] = p, e[16] = f, e[17] = R, e[18] = v, e[19] =
|
|
3989
|
-
let
|
|
3990
|
-
e[20] !== p || e[21] !== w || e[22] !== R || e[23] !== s || e[24] !== v ? (
|
|
3987
|
+
f && f(z), _.current?.updateLeft(k);
|
|
3988
|
+
}, e[14] = r, e[15] = p, e[16] = f, e[17] = R, e[18] = v, e[19] = J) : J = e[19];
|
|
3989
|
+
let Z;
|
|
3990
|
+
e[20] !== p || e[21] !== w || e[22] !== R || e[23] !== s || e[24] !== v ? (Z = () => {
|
|
3991
3991
|
if (typeof h.current < "u") {
|
|
3992
|
-
const
|
|
3992
|
+
const k = Ct(h.current, {
|
|
3993
3993
|
startLeft: p,
|
|
3994
3994
|
scale: R,
|
|
3995
3995
|
scaleWidth: v
|
|
3996
3996
|
});
|
|
3997
3997
|
s({
|
|
3998
|
-
time:
|
|
3999
|
-
}), w && w(
|
|
3998
|
+
time: k
|
|
3999
|
+
}), w && w(k);
|
|
4000
4000
|
}
|
|
4001
4001
|
h.current = void 0;
|
|
4002
|
-
}, e[20] = p, e[21] = w, e[22] = R, e[23] = s, e[24] = v, e[25] =
|
|
4002
|
+
}, e[20] = p, e[21] = w, e[22] = R, e[23] = s, e[24] = v, e[25] = Z) : Z = e[25];
|
|
4003
4003
|
let d;
|
|
4004
|
-
e[26] !== S || e[27] !== y || e[28] !==
|
|
4004
|
+
e[26] !== S || e[27] !== y || e[28] !== A || e[29] !== p || e[30] !== g || e[31] !== R || e[32] !== l || e[33] !== s || e[34] !== v ? (d = (k, z) => {
|
|
4005
4005
|
const {
|
|
4006
4006
|
left: O
|
|
4007
|
-
} =
|
|
4008
|
-
if (
|
|
4007
|
+
} = k, W = z === void 0 ? 0 : z, L = l.current?.scrollLeft ?? 0, Ne = l.current, Te = Ne?.clientWidth ?? 0;
|
|
4008
|
+
if (W !== 0)
|
|
4009
4009
|
if (typeof h.current < "u") {
|
|
4010
|
-
h.current = h.current +
|
|
4011
|
-
const ee =
|
|
4012
|
-
h.current < ee + 10 ? h.current = ee + 10 : h.current >
|
|
4010
|
+
h.current = h.current + W;
|
|
4011
|
+
const ee = L, se = L + Te;
|
|
4012
|
+
h.current < ee + 10 ? h.current = ee + 10 : h.current > se - 10 && (h.current = se - 10), h.current < p - L && (h.current = p - L);
|
|
4013
4013
|
} else {
|
|
4014
|
-
h.current = O +
|
|
4015
|
-
const ee =
|
|
4016
|
-
h.current < ee + 10 ? h.current = ee + 10 : h.current >
|
|
4014
|
+
h.current = O + W;
|
|
4015
|
+
const ee = L, se = L + Te;
|
|
4016
|
+
h.current < ee + 10 ? h.current = ee + 10 : h.current > se - 10 && (h.current = se - 10);
|
|
4017
4017
|
}
|
|
4018
|
-
else if (O < p -
|
|
4019
|
-
const ee =
|
|
4020
|
-
h.current < ee + 10 ? h.current = ee + 10 : h.current >
|
|
4018
|
+
else if (O < p - L ? h.current = p - L : h.current = O, Ne && Te > 0) {
|
|
4019
|
+
const ee = L, se = L + Te;
|
|
4020
|
+
h.current < ee + 10 ? h.current = ee + 10 : h.current > se - 10 && (h.current = se - 10);
|
|
4021
4021
|
}
|
|
4022
4022
|
if (typeof h.current < "u") {
|
|
4023
4023
|
let ee = h.current;
|
|
4024
4024
|
if (S) {
|
|
4025
|
-
const we =
|
|
4026
|
-
we.length > 0 && (ee =
|
|
4025
|
+
const we = A(y, p, v, R);
|
|
4026
|
+
we.length > 0 && (ee = I(h.current, we, Kt), h.current = ee);
|
|
4027
4027
|
}
|
|
4028
4028
|
_.current?.updateLeft(ee);
|
|
4029
|
-
const
|
|
4029
|
+
const se = Ct(ee, {
|
|
4030
4030
|
startLeft: p,
|
|
4031
4031
|
scale: R,
|
|
4032
4032
|
scaleWidth: v
|
|
4033
4033
|
});
|
|
4034
4034
|
s({
|
|
4035
|
-
time:
|
|
4036
|
-
}), g && g(
|
|
4035
|
+
time: se
|
|
4036
|
+
}), g && g(se);
|
|
4037
4037
|
}
|
|
4038
4038
|
return !1;
|
|
4039
|
-
}, e[26] = S, e[27] = y, e[28] =
|
|
4040
|
-
let
|
|
4041
|
-
e[36] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
4042
|
-
let
|
|
4043
|
-
e[38] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
4044
|
-
/* @__PURE__ */ x.jsx("svg", { className:
|
|
4039
|
+
}, e[26] = S, e[27] = y, e[28] = A, e[29] = p, e[30] = g, e[31] = R, e[32] = l, e[33] = s, e[34] = v, e[35] = d) : d = e[35];
|
|
4040
|
+
let T, D;
|
|
4041
|
+
e[36] === Symbol.for("react.memo_cache_sentinel") ? (D = pe("cursor"), T = pe("cursor-top"), e[36] = T, e[37] = D) : (T = e[36], D = e[37]);
|
|
4042
|
+
let F;
|
|
4043
|
+
e[38] === Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */ x.jsxs("div", { className: D, children: [
|
|
4044
|
+
/* @__PURE__ */ x.jsx("svg", { className: T, width: "8", height: "12", viewBox: "0 0 8 12", fill: "none", children: /* @__PURE__ */ x.jsx("path", { d: "M0 1C0 0.447715 0.447715 0 1 0H7C7.55228 0 8 0.447715 8 1V9.38197C8 9.76074 7.786 10.107 7.44721 10.2764L4.44721 11.7764C4.16569 11.9172 3.83431 11.9172 3.55279 11.7764L0.552786 10.2764C0.214002 10.107 0 9.76074 0 9.38197V1Z", fill: "currentColor" }) }),
|
|
4045
4045
|
/* @__PURE__ */ x.jsx("div", { className: pe("cursor-area") })
|
|
4046
|
-
] }), e[38] =
|
|
4047
|
-
let
|
|
4048
|
-
return e[39] !== p || e[40] !== l || e[41] !== M || e[42] !== K || e[43] !==
|
|
4046
|
+
] }), e[38] = F) : F = e[38];
|
|
4047
|
+
let le;
|
|
4048
|
+
return e[39] !== p || e[40] !== l || e[41] !== M || e[42] !== K || e[43] !== J || e[44] !== Z || e[45] !== d ? (le = /* @__PURE__ */ x.jsx(Rr, { start: p, ref: _, parentRef: l, getBounds: M, autoScroll: !0, enableDragging: K, enableResizing: !1, onDragStart: J, onDragEnd: Z, onDrag: d, children: F }), e[39] = p, e[40] = l, e[41] = M, e[42] = K, e[43] = J, e[44] = Z, e[45] = d, e[46] = le) : le = e[46], le;
|
|
4049
4049
|
};
|
|
4050
4050
|
function ni(n) {
|
|
4051
4051
|
return n.actions;
|
|
@@ -4059,7 +4059,7 @@ function ri(n, e, t) {
|
|
|
4059
4059
|
return r;
|
|
4060
4060
|
}
|
|
4061
4061
|
function Jn(n) {
|
|
4062
|
-
const e =
|
|
4062
|
+
const e = Oe.c(9);
|
|
4063
4063
|
let t, r, s;
|
|
4064
4064
|
e[0] !== n ? ({
|
|
4065
4065
|
className: t,
|
|
@@ -4073,22 +4073,22 @@ function Jn(n) {
|
|
|
4073
4073
|
return e[5] !== t || e[6] !== o || e[7] !== r ? (c = /* @__PURE__ */ x.jsx(gr, { "data-slot": "scroll-area-scrollbar", orientation: o, className: t, ...r, children: i }), e[5] = t, e[6] = o, e[7] = r, e[8] = c) : c = e[8], c;
|
|
4074
4074
|
}
|
|
4075
4075
|
function si(n) {
|
|
4076
|
-
const e =
|
|
4076
|
+
const e = Oe.c(7), {
|
|
4077
4077
|
scrollElementRef: t,
|
|
4078
4078
|
scale: r,
|
|
4079
4079
|
scaleWidth: s,
|
|
4080
4080
|
startLeft: o,
|
|
4081
4081
|
cursorTimeRef: i
|
|
4082
|
-
} = n, c =
|
|
4082
|
+
} = n, c = ne(null), a = ne(null);
|
|
4083
4083
|
let u, l;
|
|
4084
4084
|
e[0] !== i || e[1] !== r || e[2] !== s || e[3] !== t || e[4] !== o ? (u = () => {
|
|
4085
4085
|
const m = t.current;
|
|
4086
4086
|
if (c.current !== null && a.current !== null && m && (c.current !== r || a.current !== s)) {
|
|
4087
|
-
const f = m.scrollLeft, g = i.current, w =
|
|
4087
|
+
const f = m.scrollLeft, g = i.current, w = De(g, {
|
|
4088
4088
|
startLeft: o,
|
|
4089
4089
|
scale: c.current,
|
|
4090
4090
|
scaleWidth: a.current
|
|
4091
|
-
}), S =
|
|
4091
|
+
}), S = De(g, {
|
|
4092
4092
|
startLeft: o,
|
|
4093
4093
|
scale: r,
|
|
4094
4094
|
scaleWidth: s
|
|
@@ -4102,7 +4102,7 @@ function ai({
|
|
|
4102
4102
|
ref: n,
|
|
4103
4103
|
...e
|
|
4104
4104
|
}) {
|
|
4105
|
-
const t = Br(e), r =
|
|
4105
|
+
const t = Br(e), r = ne(null), {
|
|
4106
4106
|
width: s,
|
|
4107
4107
|
height: o
|
|
4108
4108
|
} = ei({
|
|
@@ -4117,7 +4117,7 @@ function ai({
|
|
|
4117
4117
|
const l = a ?? c, m = (h) => {
|
|
4118
4118
|
const p = Math.min(t.maxScaleCount, h);
|
|
4119
4119
|
u(p);
|
|
4120
|
-
}, [f, g] = Mt(yn), w =
|
|
4120
|
+
}, [f, g] = Mt(yn), w = ne(yn);
|
|
4121
4121
|
si({
|
|
4122
4122
|
scrollElementRef: r,
|
|
4123
4123
|
scale: t.scale,
|
|
@@ -4132,7 +4132,7 @@ function ai({
|
|
|
4132
4132
|
left: p,
|
|
4133
4133
|
time: v
|
|
4134
4134
|
} = h;
|
|
4135
|
-
return typeof v < "u" ? (g(v), w.current = v, !0) : typeof p < "u" ? (g(w.current =
|
|
4135
|
+
return typeof v < "u" ? (g(v), w.current = v, !0) : typeof p < "u" ? (g(w.current = Ct(p, {
|
|
4136
4136
|
startLeft: t.startLeft,
|
|
4137
4137
|
scale: t.scale,
|
|
4138
4138
|
scaleWidth: t.scaleWidth
|
|
@@ -4142,16 +4142,25 @@ function ai({
|
|
|
4142
4142
|
if (!v) return;
|
|
4143
4143
|
const {
|
|
4144
4144
|
block: R = "start",
|
|
4145
|
-
offset: E = 0
|
|
4146
|
-
|
|
4145
|
+
offset: E = 0,
|
|
4146
|
+
onlyIfNotVisible: A = !1
|
|
4147
|
+
} = p, I = De(h, {
|
|
4147
4148
|
startLeft: t.startLeft,
|
|
4148
4149
|
scale: t.scale,
|
|
4149
4150
|
scaleWidth: t.scaleWidth
|
|
4150
|
-
}),
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4151
|
+
}), P = v.clientWidth;
|
|
4152
|
+
if (A) {
|
|
4153
|
+
const q = v.scrollLeft;
|
|
4154
|
+
if (I >= q && I <= q + P)
|
|
4155
|
+
return;
|
|
4156
|
+
}
|
|
4157
|
+
let N;
|
|
4158
|
+
R === "end" ? N = I - P + E : R === "center" ? N = I - P / 2 : N = I - E;
|
|
4159
|
+
const j = Math.max(0, v.scrollWidth - P);
|
|
4160
|
+
v.scrollTo({
|
|
4161
|
+
left: Math.min(Math.max(N, 0), j),
|
|
4162
|
+
behavior: p.behavior ?? "instant"
|
|
4163
|
+
});
|
|
4155
4164
|
};
|
|
4156
4165
|
return Zn(n, () => ({
|
|
4157
4166
|
get target() {
|
|
@@ -4173,6 +4182,13 @@ function ai({
|
|
|
4173
4182
|
time: h
|
|
4174
4183
|
});
|
|
4175
4184
|
},
|
|
4185
|
+
getTimePixelPosition(h) {
|
|
4186
|
+
return De(h ?? w.current, {
|
|
4187
|
+
startLeft: t.startLeft,
|
|
4188
|
+
scale: t.scale,
|
|
4189
|
+
scaleWidth: t.scaleWidth
|
|
4190
|
+
});
|
|
4191
|
+
},
|
|
4176
4192
|
setScrollLeft: (h) => {
|
|
4177
4193
|
r.current && (r.current.scrollLeft = h);
|
|
4178
4194
|
},
|