react-timelane 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/react-timelane.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as m, jsxs as
|
|
2
|
-
import Nt, { useRef as re, useEffect as ne, memo as Jt, useCallback as Ve, useMemo as Zt, PureComponent as er, createContext as tr, useContext as rr, useState as
|
|
1
|
+
import { jsx as m, jsxs as X, Fragment as Oe } from "react/jsx-runtime";
|
|
2
|
+
import Nt, { useRef as re, useEffect as ne, memo as Jt, useCallback as Ve, useMemo as Zt, PureComponent as er, createContext as tr, useContext as rr, useState as Q } from "react";
|
|
3
3
|
function nr(e) {
|
|
4
4
|
if (Array.isArray(e)) return e;
|
|
5
5
|
}
|
|
@@ -52,11 +52,11 @@ function _t() {
|
|
|
52
52
|
}
|
|
53
53
|
return se.bind = e, se;
|
|
54
54
|
}
|
|
55
|
-
var
|
|
55
|
+
var K = {}, Je;
|
|
56
56
|
function or() {
|
|
57
|
-
if (Je) return
|
|
57
|
+
if (Je) return K;
|
|
58
58
|
Je = 1;
|
|
59
|
-
var e =
|
|
59
|
+
var e = K && K.__assign || function() {
|
|
60
60
|
return e = Object.assign || function(a) {
|
|
61
61
|
for (var u, c = 1, s = arguments.length; c < s; c++) {
|
|
62
62
|
u = arguments[c];
|
|
@@ -65,7 +65,7 @@ function or() {
|
|
|
65
65
|
return a;
|
|
66
66
|
}, e.apply(this, arguments);
|
|
67
67
|
};
|
|
68
|
-
Object.defineProperty(
|
|
68
|
+
Object.defineProperty(K, "__esModule", { value: !0 }), K.bindAll = void 0;
|
|
69
69
|
var t = /* @__PURE__ */ _t();
|
|
70
70
|
function r(a) {
|
|
71
71
|
if (!(typeof a > "u"))
|
|
@@ -90,7 +90,7 @@ function or() {
|
|
|
90
90
|
});
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
|
-
return
|
|
93
|
+
return K.bindAll = i, K;
|
|
94
94
|
}
|
|
95
95
|
var Ze;
|
|
96
96
|
function sr() {
|
|
@@ -349,11 +349,11 @@ function yr() {
|
|
|
349
349
|
});
|
|
350
350
|
}
|
|
351
351
|
if (u === "onDrop") {
|
|
352
|
-
var f,
|
|
352
|
+
var f, d = c.location.current.input;
|
|
353
353
|
(f = n) === null || f === void 0 || f({
|
|
354
354
|
current: {
|
|
355
|
-
x:
|
|
356
|
-
y:
|
|
355
|
+
x: d.clientX,
|
|
356
|
+
y: d.clientY
|
|
357
357
|
}
|
|
358
358
|
}), n = null, e = null;
|
|
359
359
|
}
|
|
@@ -708,12 +708,12 @@ function Nr(e) {
|
|
|
708
708
|
}), c.drop({
|
|
709
709
|
current: u.current,
|
|
710
710
|
updatedSourcePayload: null
|
|
711
|
-
}),
|
|
711
|
+
}), d();
|
|
712
712
|
}
|
|
713
|
-
function
|
|
714
|
-
Ce.isActive = !1,
|
|
713
|
+
function d() {
|
|
714
|
+
Ce.isActive = !1, l();
|
|
715
715
|
}
|
|
716
|
-
var
|
|
716
|
+
var l = ie.bindAll(
|
|
717
717
|
window,
|
|
718
718
|
[{
|
|
719
719
|
// 👋 Note: we are repurposing the `dragover` event as our `drag` event
|
|
@@ -760,7 +760,7 @@ function Nr(e) {
|
|
|
760
760
|
// When dropping something native, we need to extract the latest
|
|
761
761
|
// `.items` from the "drop" event as it is now accessible
|
|
762
762
|
updatedSourcePayload: r.type === "external" ? r.getDropPayload(p) : null
|
|
763
|
-
}),
|
|
763
|
+
}), d();
|
|
764
764
|
}
|
|
765
765
|
}, {
|
|
766
766
|
// "dragend" fires when on the drag source (eg a draggable element)
|
|
@@ -860,7 +860,7 @@ function ot(e, t) {
|
|
|
860
860
|
}
|
|
861
861
|
return r;
|
|
862
862
|
}
|
|
863
|
-
function
|
|
863
|
+
function $(e) {
|
|
864
864
|
for (var t = 1; t < arguments.length; t++) {
|
|
865
865
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
866
866
|
t % 2 ? ot(Object(r), !0).forEach(function(n) {
|
|
@@ -953,28 +953,28 @@ function Cr(e) {
|
|
|
953
953
|
input: x,
|
|
954
954
|
result: O
|
|
955
955
|
}) : O;
|
|
956
|
-
var
|
|
957
|
-
if (
|
|
956
|
+
var C = S.closest(a);
|
|
957
|
+
if (C == null)
|
|
958
958
|
return O;
|
|
959
|
-
var E = n.get(
|
|
959
|
+
var E = n.get(C);
|
|
960
960
|
if (E == null)
|
|
961
961
|
return O;
|
|
962
|
-
var
|
|
962
|
+
var N = {
|
|
963
963
|
input: x,
|
|
964
964
|
source: w,
|
|
965
965
|
element: E.element
|
|
966
966
|
};
|
|
967
|
-
if (E.canDrop && !E.canDrop(
|
|
967
|
+
if (E.canDrop && !E.canDrop(N))
|
|
968
968
|
return s({
|
|
969
969
|
source: w,
|
|
970
970
|
target: E.element.parentElement,
|
|
971
971
|
input: x,
|
|
972
972
|
result: O
|
|
973
973
|
});
|
|
974
|
-
var
|
|
975
|
-
data:
|
|
974
|
+
var L = (p = (g = E.getData) === null || g === void 0 ? void 0 : g.call(E, N)) !== null && p !== void 0 ? p : {}, v = (y = (b = E.getDropEffect) === null || b === void 0 ? void 0 : b.call(E, N)) !== null && y !== void 0 ? y : r, D = {
|
|
975
|
+
data: L,
|
|
976
976
|
element: E.element,
|
|
977
|
-
dropEffect:
|
|
977
|
+
dropEffect: v,
|
|
978
978
|
// we are collecting _actual_ drop targets, so these are
|
|
979
979
|
// being applied _not_ due to stickiness
|
|
980
980
|
isActiveDueToStickiness: !1
|
|
@@ -984,14 +984,14 @@ function Cr(e) {
|
|
|
984
984
|
target: E.element.parentElement,
|
|
985
985
|
input: x,
|
|
986
986
|
// Using bubble ordering. Same ordering as `event.getPath()`
|
|
987
|
-
result: [].concat(It(O), [
|
|
987
|
+
result: [].concat(It(O), [D])
|
|
988
988
|
});
|
|
989
989
|
}
|
|
990
990
|
function o(h) {
|
|
991
991
|
var p = h.eventName, g = h.payload, y = ke(g.location.current.dropTargets), b;
|
|
992
992
|
try {
|
|
993
993
|
for (y.s(); !(b = y.n()).done; ) {
|
|
994
|
-
var w, S = b.value, x = n.get(S.element), M =
|
|
994
|
+
var w, S = b.value, x = n.get(S.element), M = $($({}, g), {}, {
|
|
995
995
|
self: S
|
|
996
996
|
});
|
|
997
997
|
x == null || (w = x[p]) === null || w === void 0 || w.call(
|
|
@@ -1014,48 +1014,48 @@ function Cr(e) {
|
|
|
1014
1014
|
onDragStart: o,
|
|
1015
1015
|
onDrop: o,
|
|
1016
1016
|
onDropTargetChange: function(p) {
|
|
1017
|
-
var g = p.payload, y = new Set(g.location.current.dropTargets.map(function(
|
|
1018
|
-
return
|
|
1017
|
+
var g = p.payload, y = new Set(g.location.current.dropTargets.map(function(G) {
|
|
1018
|
+
return G.element;
|
|
1019
1019
|
})), b = /* @__PURE__ */ new Set(), w = ke(g.location.previous.dropTargets), S;
|
|
1020
1020
|
try {
|
|
1021
1021
|
for (w.s(); !(S = w.n()).done; ) {
|
|
1022
1022
|
var x, M = S.value;
|
|
1023
1023
|
b.add(M.element);
|
|
1024
|
-
var O = n.get(M.element),
|
|
1024
|
+
var O = n.get(M.element), C = y.has(M.element), E = $($({}, g), {}, {
|
|
1025
1025
|
self: M
|
|
1026
1026
|
});
|
|
1027
|
-
if (O == null || (x = O.onDropTargetChange) === null || x === void 0 || x.call(O, E), !
|
|
1028
|
-
var
|
|
1029
|
-
O == null || (
|
|
1027
|
+
if (O == null || (x = O.onDropTargetChange) === null || x === void 0 || x.call(O, E), !C) {
|
|
1028
|
+
var N;
|
|
1029
|
+
O == null || (N = O.onDragLeave) === null || N === void 0 || N.call(O, E);
|
|
1030
1030
|
}
|
|
1031
1031
|
}
|
|
1032
|
-
} catch (
|
|
1033
|
-
w.e(
|
|
1032
|
+
} catch (G) {
|
|
1033
|
+
w.e(G);
|
|
1034
1034
|
} finally {
|
|
1035
1035
|
w.f();
|
|
1036
1036
|
}
|
|
1037
|
-
var
|
|
1037
|
+
var L = ke(g.location.current.dropTargets), v;
|
|
1038
1038
|
try {
|
|
1039
|
-
for (
|
|
1040
|
-
var
|
|
1041
|
-
if (!b.has(
|
|
1042
|
-
var
|
|
1043
|
-
self:
|
|
1044
|
-
}), A = n.get(
|
|
1045
|
-
A == null || (
|
|
1039
|
+
for (L.s(); !(v = L.n()).done; ) {
|
|
1040
|
+
var D, P, I = v.value;
|
|
1041
|
+
if (!b.has(I.element)) {
|
|
1042
|
+
var Y = $($({}, g), {}, {
|
|
1043
|
+
self: I
|
|
1044
|
+
}), A = n.get(I.element);
|
|
1045
|
+
A == null || (D = A.onDropTargetChange) === null || D === void 0 || D.call(A, Y), A == null || (P = A.onDragEnter) === null || P === void 0 || P.call(A, Y);
|
|
1046
1046
|
}
|
|
1047
1047
|
}
|
|
1048
|
-
} catch (
|
|
1049
|
-
|
|
1048
|
+
} catch (G) {
|
|
1049
|
+
L.e(G);
|
|
1050
1050
|
} finally {
|
|
1051
|
-
|
|
1051
|
+
L.f();
|
|
1052
1052
|
}
|
|
1053
1053
|
}
|
|
1054
1054
|
};
|
|
1055
|
-
function
|
|
1055
|
+
function d(h) {
|
|
1056
1056
|
f[h.eventName](h);
|
|
1057
1057
|
}
|
|
1058
|
-
function
|
|
1058
|
+
function l(h) {
|
|
1059
1059
|
var p = h.source, g = h.target, y = h.input, b = h.current, w = s({
|
|
1060
1060
|
source: p,
|
|
1061
1061
|
target: g,
|
|
@@ -1064,25 +1064,25 @@ function Cr(e) {
|
|
|
1064
1064
|
if (w.length >= b.length)
|
|
1065
1065
|
return w;
|
|
1066
1066
|
for (var S = Ne(b), x = Ne(w), M = [], O = 0; O < S.length; O++) {
|
|
1067
|
-
var
|
|
1068
|
-
if (
|
|
1069
|
-
M.push(
|
|
1067
|
+
var C, E = S[O], N = x[O];
|
|
1068
|
+
if (N != null) {
|
|
1069
|
+
M.push(N);
|
|
1070
1070
|
continue;
|
|
1071
1071
|
}
|
|
1072
|
-
var
|
|
1073
|
-
if ((
|
|
1072
|
+
var L = M[O - 1], v = S[O - 1];
|
|
1073
|
+
if ((L == null ? void 0 : L.element) !== (v == null ? void 0 : v.element))
|
|
1074
1074
|
break;
|
|
1075
|
-
var
|
|
1076
|
-
if (!
|
|
1075
|
+
var D = n.get(E.element);
|
|
1076
|
+
if (!D)
|
|
1077
1077
|
break;
|
|
1078
|
-
var
|
|
1078
|
+
var P = {
|
|
1079
1079
|
input: y,
|
|
1080
1080
|
source: p,
|
|
1081
|
-
element:
|
|
1081
|
+
element: D.element
|
|
1082
1082
|
};
|
|
1083
|
-
if (
|
|
1083
|
+
if (D.canDrop && !D.canDrop(P) || !((C = D.getIsSticky) !== null && C !== void 0 && C.call(D, P)))
|
|
1084
1084
|
break;
|
|
1085
|
-
M.push(
|
|
1085
|
+
M.push($($({}, E), {}, {
|
|
1086
1086
|
// making it clear to consumers this drop target is active due to stickiness
|
|
1087
1087
|
isActiveDueToStickiness: !0
|
|
1088
1088
|
}));
|
|
@@ -1091,8 +1091,8 @@ function Cr(e) {
|
|
|
1091
1091
|
}
|
|
1092
1092
|
return {
|
|
1093
1093
|
dropTargetForConsumers: c,
|
|
1094
|
-
getIsOver:
|
|
1095
|
-
dispatchEvent:
|
|
1094
|
+
getIsOver: l,
|
|
1095
|
+
dispatchEvent: d
|
|
1096
1096
|
};
|
|
1097
1097
|
}
|
|
1098
1098
|
function Lr(e, t) {
|
|
@@ -1196,8 +1196,8 @@ function jr() {
|
|
|
1196
1196
|
}
|
|
1197
1197
|
}
|
|
1198
1198
|
if (t) {
|
|
1199
|
-
for (var
|
|
1200
|
-
var p = h[
|
|
1199
|
+
for (var d = Array.from(t.active), l = 0, h = d; l < h.length; l++) {
|
|
1200
|
+
var p = h[l];
|
|
1201
1201
|
if (t.active.has(p)) {
|
|
1202
1202
|
var g;
|
|
1203
1203
|
(g = p[u]) === null || g === void 0 || g.call(p, c);
|
|
@@ -1216,29 +1216,29 @@ function Br(e) {
|
|
|
1216
1216
|
typeKey: t,
|
|
1217
1217
|
defaultDropEffect: a
|
|
1218
1218
|
});
|
|
1219
|
-
function s(
|
|
1220
|
-
n == null || n(
|
|
1219
|
+
function s(d) {
|
|
1220
|
+
n == null || n(d), c.dispatchEvent(d), u.dispatchEvent(d), i == null || i(d);
|
|
1221
1221
|
}
|
|
1222
|
-
function o(
|
|
1223
|
-
var
|
|
1222
|
+
function o(d) {
|
|
1223
|
+
var l = d.event, h = d.dragType;
|
|
1224
1224
|
at.start({
|
|
1225
|
-
event:
|
|
1225
|
+
event: l,
|
|
1226
1226
|
dragType: h,
|
|
1227
1227
|
getDropTargetsOver: c.getIsOver,
|
|
1228
1228
|
dispatchEvent: s
|
|
1229
1229
|
});
|
|
1230
1230
|
}
|
|
1231
1231
|
function f() {
|
|
1232
|
-
function
|
|
1233
|
-
var
|
|
1232
|
+
function d() {
|
|
1233
|
+
var l = {
|
|
1234
1234
|
canStart: at.canStart,
|
|
1235
1235
|
start: o
|
|
1236
1236
|
};
|
|
1237
|
-
return r(
|
|
1237
|
+
return r(l);
|
|
1238
1238
|
}
|
|
1239
1239
|
return _r({
|
|
1240
1240
|
typeKey: t,
|
|
1241
|
-
mount:
|
|
1241
|
+
mount: d
|
|
1242
1242
|
});
|
|
1243
1243
|
}
|
|
1244
1244
|
return {
|
|
@@ -1279,25 +1279,25 @@ var dt = yr(), Fe = Br({
|
|
|
1279
1279
|
var f = n.target;
|
|
1280
1280
|
if (!(f instanceof HTMLElement))
|
|
1281
1281
|
return null;
|
|
1282
|
-
var
|
|
1283
|
-
if (!
|
|
1282
|
+
var d = ge.get(f);
|
|
1283
|
+
if (!d)
|
|
1284
1284
|
return null;
|
|
1285
|
-
var
|
|
1286
|
-
element:
|
|
1287
|
-
dragHandle: (i =
|
|
1288
|
-
input:
|
|
1285
|
+
var l = de(n), h = {
|
|
1286
|
+
element: d.element,
|
|
1287
|
+
dragHandle: (i = d.dragHandle) !== null && i !== void 0 ? i : null,
|
|
1288
|
+
input: l
|
|
1289
1289
|
};
|
|
1290
|
-
if (
|
|
1290
|
+
if (d.canDrag && !d.canDrag(h))
|
|
1291
1291
|
return n.preventDefault(), null;
|
|
1292
|
-
if (
|
|
1292
|
+
if (d.dragHandle) {
|
|
1293
1293
|
var p = Lt({
|
|
1294
|
-
x:
|
|
1295
|
-
y:
|
|
1294
|
+
x: l.clientX,
|
|
1295
|
+
y: l.clientY
|
|
1296
1296
|
});
|
|
1297
|
-
if (!
|
|
1297
|
+
if (!d.dragHandle.contains(p))
|
|
1298
1298
|
return n.preventDefault(), null;
|
|
1299
1299
|
}
|
|
1300
|
-
var g = (a = (u =
|
|
1300
|
+
var g = (a = (u = d.getInitialDataForExternal) === null || u === void 0 ? void 0 : u.call(d, h)) !== null && a !== void 0 ? a : null;
|
|
1301
1301
|
if (g)
|
|
1302
1302
|
for (var y = 0, b = Object.entries(g); y < b.length; y++) {
|
|
1303
1303
|
var w = zt(b[y], 2), S = w[0], x = w[1];
|
|
@@ -1305,9 +1305,9 @@ var dt = yr(), Fe = Br({
|
|
|
1305
1305
|
}
|
|
1306
1306
|
Yr() && !n.dataTransfer.types.includes(lt) && !n.dataTransfer.types.includes($r) && n.dataTransfer.setData(lt, Fr), n.dataTransfer.setData(qr, "");
|
|
1307
1307
|
var M = {
|
|
1308
|
-
element:
|
|
1309
|
-
dragHandle: (c =
|
|
1310
|
-
data: (s = (o =
|
|
1308
|
+
element: d.element,
|
|
1309
|
+
dragHandle: (c = d.dragHandle) !== null && c !== void 0 ? c : null,
|
|
1310
|
+
data: (s = (o = d.getInitialData) === null || o === void 0 ? void 0 : o.call(d, h)) !== null && s !== void 0 ? s : {}
|
|
1311
1311
|
}, O = {
|
|
1312
1312
|
type: "element",
|
|
1313
1313
|
payload: M,
|
|
@@ -1368,41 +1368,41 @@ function Ie(e, t) {
|
|
|
1368
1368
|
}
|
|
1369
1369
|
}
|
|
1370
1370
|
const Bt = 6048e5, Qr = 864e5, ht = Symbol.for("constructDateFrom");
|
|
1371
|
-
function
|
|
1371
|
+
function W(e, t) {
|
|
1372
1372
|
return typeof e == "function" ? e(t) : e && typeof e == "object" && ht in e ? e[ht](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
1373
1373
|
}
|
|
1374
|
-
function
|
|
1375
|
-
return
|
|
1374
|
+
function k(e, t) {
|
|
1375
|
+
return W(t || e, e);
|
|
1376
1376
|
}
|
|
1377
1377
|
function pe(e, t, r) {
|
|
1378
|
-
const n =
|
|
1379
|
-
return isNaN(t) ?
|
|
1378
|
+
const n = k(e, r == null ? void 0 : r.in);
|
|
1379
|
+
return isNaN(t) ? W(e, NaN) : (t && n.setDate(n.getDate() + t), n);
|
|
1380
1380
|
}
|
|
1381
1381
|
function Yt(e, t) {
|
|
1382
|
-
return
|
|
1382
|
+
return k(e, t == null ? void 0 : t.in).getDay() === 0;
|
|
1383
1383
|
}
|
|
1384
1384
|
let Jr = {};
|
|
1385
1385
|
function Me() {
|
|
1386
1386
|
return Jr;
|
|
1387
1387
|
}
|
|
1388
|
-
function
|
|
1388
|
+
function F(e, t) {
|
|
1389
1389
|
var c, s, o, f;
|
|
1390
|
-
const r = Me(), n = (t == null ? void 0 : t.weekStartsOn) ?? ((s = (c = t == null ? void 0 : t.locale) == null ? void 0 : c.options) == null ? void 0 : s.weekStartsOn) ?? r.weekStartsOn ?? ((f = (o = r.locale) == null ? void 0 : o.options) == null ? void 0 : f.weekStartsOn) ?? 0, i =
|
|
1390
|
+
const r = Me(), n = (t == null ? void 0 : t.weekStartsOn) ?? ((s = (c = t == null ? void 0 : t.locale) == null ? void 0 : c.options) == null ? void 0 : s.weekStartsOn) ?? r.weekStartsOn ?? ((f = (o = r.locale) == null ? void 0 : o.options) == null ? void 0 : f.weekStartsOn) ?? 0, i = k(e, t == null ? void 0 : t.in), a = i.getDay(), u = (a < n ? 7 : 0) + a - n;
|
|
1391
1391
|
return i.setDate(i.getDate() - u), i.setHours(0, 0, 0, 0), i;
|
|
1392
1392
|
}
|
|
1393
1393
|
function De(e, t) {
|
|
1394
|
-
return
|
|
1394
|
+
return F(e, { ...t, weekStartsOn: 1 });
|
|
1395
1395
|
}
|
|
1396
1396
|
function Ft(e, t) {
|
|
1397
|
-
const r =
|
|
1397
|
+
const r = k(e, t == null ? void 0 : t.in), n = r.getFullYear(), i = W(r, 0);
|
|
1398
1398
|
i.setFullYear(n + 1, 0, 4), i.setHours(0, 0, 0, 0);
|
|
1399
|
-
const a = De(i), u =
|
|
1399
|
+
const a = De(i), u = W(r, 0);
|
|
1400
1400
|
u.setFullYear(n, 0, 4), u.setHours(0, 0, 0, 0);
|
|
1401
1401
|
const c = De(u);
|
|
1402
1402
|
return r.getTime() >= a.getTime() ? n + 1 : r.getTime() >= c.getTime() ? n : n - 1;
|
|
1403
1403
|
}
|
|
1404
1404
|
function gt(e) {
|
|
1405
|
-
const t =
|
|
1405
|
+
const t = k(e), r = new Date(
|
|
1406
1406
|
Date.UTC(
|
|
1407
1407
|
t.getFullYear(),
|
|
1408
1408
|
t.getMonth(),
|
|
@@ -1416,17 +1416,17 @@ function gt(e) {
|
|
|
1416
1416
|
return r.setUTCFullYear(t.getFullYear()), +e - +r;
|
|
1417
1417
|
}
|
|
1418
1418
|
function $e(e, ...t) {
|
|
1419
|
-
const r =
|
|
1419
|
+
const r = W.bind(
|
|
1420
1420
|
null,
|
|
1421
1421
|
e || t.find((n) => typeof n == "object")
|
|
1422
1422
|
);
|
|
1423
1423
|
return t.map(r);
|
|
1424
1424
|
}
|
|
1425
1425
|
function Te(e, t) {
|
|
1426
|
-
const r =
|
|
1426
|
+
const r = k(e, t == null ? void 0 : t.in);
|
|
1427
1427
|
return r.setHours(0, 0, 0, 0), r;
|
|
1428
1428
|
}
|
|
1429
|
-
function
|
|
1429
|
+
function U(e, t, r) {
|
|
1430
1430
|
const [n, i] = $e(
|
|
1431
1431
|
r == null ? void 0 : r.in,
|
|
1432
1432
|
e,
|
|
@@ -1435,7 +1435,7 @@ function q(e, t, r) {
|
|
|
1435
1435
|
return Math.round((c - s) / Qr);
|
|
1436
1436
|
}
|
|
1437
1437
|
function Zr(e, t) {
|
|
1438
|
-
const r = Ft(e, t), n =
|
|
1438
|
+
const r = Ft(e, t), n = W(e, 0);
|
|
1439
1439
|
return n.setFullYear(r, 0, 4), n.setHours(0, 0, 0, 0), De(n);
|
|
1440
1440
|
}
|
|
1441
1441
|
function en(e, t, r) {
|
|
@@ -1444,18 +1444,18 @@ function en(e, t, r) {
|
|
|
1444
1444
|
function tn(e, t) {
|
|
1445
1445
|
let r, n = t == null ? void 0 : t.in;
|
|
1446
1446
|
return e.forEach((i) => {
|
|
1447
|
-
!n && typeof i == "object" && (n =
|
|
1448
|
-
const a =
|
|
1447
|
+
!n && typeof i == "object" && (n = W.bind(null, i));
|
|
1448
|
+
const a = k(i, n);
|
|
1449
1449
|
(!r || r < a || isNaN(+a)) && (r = a);
|
|
1450
|
-
}),
|
|
1450
|
+
}), W(n, r || NaN);
|
|
1451
1451
|
}
|
|
1452
1452
|
function rn(e, t) {
|
|
1453
1453
|
let r, n = t == null ? void 0 : t.in;
|
|
1454
1454
|
return e.forEach((i) => {
|
|
1455
|
-
!n && typeof i == "object" && (n =
|
|
1456
|
-
const a =
|
|
1455
|
+
!n && typeof i == "object" && (n = W.bind(null, i));
|
|
1456
|
+
const a = k(i, n);
|
|
1457
1457
|
(!r || r > a || isNaN(+a)) && (r = a);
|
|
1458
|
-
}),
|
|
1458
|
+
}), W(n, r || NaN);
|
|
1459
1459
|
}
|
|
1460
1460
|
function nn(e, t, r) {
|
|
1461
1461
|
const [n, i] = $e(
|
|
@@ -1469,7 +1469,7 @@ function an(e) {
|
|
|
1469
1469
|
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
1470
1470
|
}
|
|
1471
1471
|
function on(e) {
|
|
1472
|
-
return !(!an(e) && typeof e != "number" || isNaN(+
|
|
1472
|
+
return !(!an(e) && typeof e != "number" || isNaN(+k(e)));
|
|
1473
1473
|
}
|
|
1474
1474
|
function qe(e, t) {
|
|
1475
1475
|
const [r, n] = $e(e, t.start, t.end);
|
|
@@ -1483,7 +1483,7 @@ function $t(e, t) {
|
|
|
1483
1483
|
let c = 1;
|
|
1484
1484
|
const s = [];
|
|
1485
1485
|
for (; +u <= a; )
|
|
1486
|
-
s.push(
|
|
1486
|
+
s.push(W(r, u)), u.setDate(u.getDate() + c), u.setHours(0, 0, 0, 0);
|
|
1487
1487
|
return i ? s.reverse() : s;
|
|
1488
1488
|
}
|
|
1489
1489
|
function sn(e, t) {
|
|
@@ -1494,13 +1494,13 @@ function sn(e, t) {
|
|
|
1494
1494
|
let c = 1;
|
|
1495
1495
|
const s = [];
|
|
1496
1496
|
for (; +u <= a; )
|
|
1497
|
-
s.push(
|
|
1497
|
+
s.push(W(r, u)), u.setMonth(u.getMonth() + c);
|
|
1498
1498
|
return i ? s.reverse() : s;
|
|
1499
1499
|
}
|
|
1500
1500
|
function un(e, t) {
|
|
1501
1501
|
const { start: r, end: n } = qe(t == null ? void 0 : t.in, e);
|
|
1502
1502
|
let i = +r > +n;
|
|
1503
|
-
const a =
|
|
1503
|
+
const a = F(i ? n : r, t), u = F(i ? r : n, t);
|
|
1504
1504
|
a.setHours(15), u.setHours(15);
|
|
1505
1505
|
const c = +u.getTime();
|
|
1506
1506
|
let s = a, o = (t == null ? void 0 : t.step) ?? 1;
|
|
@@ -1508,11 +1508,11 @@ function un(e, t) {
|
|
|
1508
1508
|
o < 0 && (o = -o, i = !i);
|
|
1509
1509
|
const f = [];
|
|
1510
1510
|
for (; +s <= c; )
|
|
1511
|
-
s.setHours(0), f.push(
|
|
1511
|
+
s.setHours(0), f.push(W(r, s)), s = en(s, o), s.setHours(15);
|
|
1512
1512
|
return i ? f.reverse() : f;
|
|
1513
1513
|
}
|
|
1514
1514
|
function cn(e, t) {
|
|
1515
|
-
const r =
|
|
1515
|
+
const r = k(e, t == null ? void 0 : t.in);
|
|
1516
1516
|
return r.setFullYear(r.getFullYear(), 0, 1), r.setHours(0, 0, 0, 0), r;
|
|
1517
1517
|
}
|
|
1518
1518
|
const ln = {
|
|
@@ -1795,9 +1795,9 @@ function ce(e) {
|
|
|
1795
1795
|
const n = r.width, i = n && e.matchPatterns[n] || e.matchPatterns[e.defaultMatchWidth], a = t.match(i);
|
|
1796
1796
|
if (!a)
|
|
1797
1797
|
return null;
|
|
1798
|
-
const u = a[0], c = n && e.parsePatterns[n] || e.parsePatterns[e.defaultParseWidth], s = Array.isArray(c) ? En(c, (
|
|
1798
|
+
const u = a[0], c = n && e.parsePatterns[n] || e.parsePatterns[e.defaultParseWidth], s = Array.isArray(c) ? En(c, (d) => d.test(u)) : (
|
|
1799
1799
|
// [TODO] -- I challenge you to fix the type
|
|
1800
|
-
Mn(c, (
|
|
1800
|
+
Mn(c, (d) => d.test(u))
|
|
1801
1801
|
);
|
|
1802
1802
|
let o;
|
|
1803
1803
|
o = e.valueCallback ? e.valueCallback(s) : s, o = r.valueCallback ? (
|
|
@@ -1947,36 +1947,36 @@ const Rn = /^(\d+)(th|st|nd|rd)?/i, kn = /\d+/i, Nn = {
|
|
|
1947
1947
|
}
|
|
1948
1948
|
};
|
|
1949
1949
|
function Fn(e, t) {
|
|
1950
|
-
const r =
|
|
1951
|
-
return
|
|
1950
|
+
const r = k(e, t == null ? void 0 : t.in);
|
|
1951
|
+
return U(r, cn(r)) + 1;
|
|
1952
1952
|
}
|
|
1953
1953
|
function $n(e, t) {
|
|
1954
|
-
const r =
|
|
1954
|
+
const r = k(e, t == null ? void 0 : t.in), n = +De(r) - +Zr(r);
|
|
1955
1955
|
return Math.round(n / Bt) + 1;
|
|
1956
1956
|
}
|
|
1957
1957
|
function qt(e, t) {
|
|
1958
|
-
var f,
|
|
1959
|
-
const r =
|
|
1958
|
+
var f, d, l, h;
|
|
1959
|
+
const r = k(e, t == null ? void 0 : t.in), n = r.getFullYear(), i = Me(), a = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((d = (f = t == null ? void 0 : t.locale) == null ? void 0 : f.options) == null ? void 0 : d.firstWeekContainsDate) ?? i.firstWeekContainsDate ?? ((h = (l = i.locale) == null ? void 0 : l.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, u = W((t == null ? void 0 : t.in) || e, 0);
|
|
1960
1960
|
u.setFullYear(n + 1, 0, a), u.setHours(0, 0, 0, 0);
|
|
1961
|
-
const c =
|
|
1961
|
+
const c = F(u, t), s = W((t == null ? void 0 : t.in) || e, 0);
|
|
1962
1962
|
s.setFullYear(n, 0, a), s.setHours(0, 0, 0, 0);
|
|
1963
|
-
const o =
|
|
1963
|
+
const o = F(s, t);
|
|
1964
1964
|
return +r >= +c ? n + 1 : +r >= +o ? n : n - 1;
|
|
1965
1965
|
}
|
|
1966
1966
|
function qn(e, t) {
|
|
1967
1967
|
var c, s, o, f;
|
|
1968
|
-
const r = Me(), n = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((s = (c = t == null ? void 0 : t.locale) == null ? void 0 : c.options) == null ? void 0 : s.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((f = (o = r.locale) == null ? void 0 : o.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, i = qt(e, t), a =
|
|
1969
|
-
return a.setFullYear(i, 0, n), a.setHours(0, 0, 0, 0),
|
|
1968
|
+
const r = Me(), n = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((s = (c = t == null ? void 0 : t.locale) == null ? void 0 : c.options) == null ? void 0 : s.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((f = (o = r.locale) == null ? void 0 : o.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, i = qt(e, t), a = W((t == null ? void 0 : t.in) || e, 0);
|
|
1969
|
+
return a.setFullYear(i, 0, n), a.setHours(0, 0, 0, 0), F(a, t);
|
|
1970
1970
|
}
|
|
1971
1971
|
function Xn(e, t) {
|
|
1972
|
-
const r =
|
|
1972
|
+
const r = k(e, t == null ? void 0 : t.in), n = +F(r, t) - +qn(r, t);
|
|
1973
1973
|
return Math.round(n / Bt) + 1;
|
|
1974
1974
|
}
|
|
1975
1975
|
function T(e, t) {
|
|
1976
1976
|
const r = e < 0 ? "-" : "", n = Math.abs(e).toString().padStart(t, "0");
|
|
1977
1977
|
return r + n;
|
|
1978
1978
|
}
|
|
1979
|
-
const
|
|
1979
|
+
const q = {
|
|
1980
1980
|
// Year
|
|
1981
1981
|
y(e, t) {
|
|
1982
1982
|
const r = e.getFullYear(), n = r > 0 ? r : 1 - r;
|
|
@@ -2062,7 +2062,7 @@ const F = {
|
|
|
2062
2062
|
const n = e.getFullYear(), i = n > 0 ? n : 1 - n;
|
|
2063
2063
|
return r.ordinalNumber(i, { unit: "year" });
|
|
2064
2064
|
}
|
|
2065
|
-
return
|
|
2065
|
+
return q.y(e, t);
|
|
2066
2066
|
},
|
|
2067
2067
|
// Local week-numbering year
|
|
2068
2068
|
Y: function(e, t, r, n) {
|
|
@@ -2165,7 +2165,7 @@ const F = {
|
|
|
2165
2165
|
switch (t) {
|
|
2166
2166
|
case "M":
|
|
2167
2167
|
case "MM":
|
|
2168
|
-
return
|
|
2168
|
+
return q.M(e, t);
|
|
2169
2169
|
// 1st, 2nd, ..., 12th
|
|
2170
2170
|
case "Mo":
|
|
2171
2171
|
return r.ordinalNumber(n + 1, { unit: "month" });
|
|
@@ -2230,7 +2230,7 @@ const F = {
|
|
|
2230
2230
|
},
|
|
2231
2231
|
// Day of the month
|
|
2232
2232
|
d: function(e, t, r) {
|
|
2233
|
-
return t === "do" ? r.ordinalNumber(e.getDate(), { unit: "date" }) :
|
|
2233
|
+
return t === "do" ? r.ordinalNumber(e.getDate(), { unit: "date" }) : q.d(e, t);
|
|
2234
2234
|
},
|
|
2235
2235
|
// Day of year
|
|
2236
2236
|
D: function(e, t, r) {
|
|
@@ -2476,11 +2476,11 @@ const F = {
|
|
|
2476
2476
|
let n = e.getHours() % 12;
|
|
2477
2477
|
return n === 0 && (n = 12), r.ordinalNumber(n, { unit: "hour" });
|
|
2478
2478
|
}
|
|
2479
|
-
return
|
|
2479
|
+
return q.h(e, t);
|
|
2480
2480
|
},
|
|
2481
2481
|
// Hour [0-23]
|
|
2482
2482
|
H: function(e, t, r) {
|
|
2483
|
-
return t === "Ho" ? r.ordinalNumber(e.getHours(), { unit: "hour" }) :
|
|
2483
|
+
return t === "Ho" ? r.ordinalNumber(e.getHours(), { unit: "hour" }) : q.H(e, t);
|
|
2484
2484
|
},
|
|
2485
2485
|
// Hour [0-11]
|
|
2486
2486
|
K: function(e, t, r) {
|
|
@@ -2494,15 +2494,15 @@ const F = {
|
|
|
2494
2494
|
},
|
|
2495
2495
|
// Minute
|
|
2496
2496
|
m: function(e, t, r) {
|
|
2497
|
-
return t === "mo" ? r.ordinalNumber(e.getMinutes(), { unit: "minute" }) :
|
|
2497
|
+
return t === "mo" ? r.ordinalNumber(e.getMinutes(), { unit: "minute" }) : q.m(e, t);
|
|
2498
2498
|
},
|
|
2499
2499
|
// Second
|
|
2500
2500
|
s: function(e, t, r) {
|
|
2501
|
-
return t === "so" ? r.ordinalNumber(e.getSeconds(), { unit: "second" }) :
|
|
2501
|
+
return t === "so" ? r.ordinalNumber(e.getSeconds(), { unit: "second" }) : q.s(e, t);
|
|
2502
2502
|
},
|
|
2503
2503
|
// Fraction of second
|
|
2504
2504
|
S: function(e, t) {
|
|
2505
|
-
return
|
|
2505
|
+
return q.S(e, t);
|
|
2506
2506
|
},
|
|
2507
2507
|
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
2508
2508
|
X: function(e, t, r) {
|
|
@@ -2518,7 +2518,7 @@ const F = {
|
|
|
2518
2518
|
// so this token always has the same output as `XX`
|
|
2519
2519
|
case "XXXX":
|
|
2520
2520
|
case "XX":
|
|
2521
|
-
return
|
|
2521
|
+
return V(n);
|
|
2522
2522
|
// Hours, minutes and optional seconds with `:` delimiter
|
|
2523
2523
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
2524
2524
|
// so this token always has the same output as `XXX`
|
|
@@ -2526,7 +2526,7 @@ const F = {
|
|
|
2526
2526
|
case "XXX":
|
|
2527
2527
|
// Hours and minutes with `:` delimiter
|
|
2528
2528
|
default:
|
|
2529
|
-
return
|
|
2529
|
+
return V(n, ":");
|
|
2530
2530
|
}
|
|
2531
2531
|
},
|
|
2532
2532
|
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
|
@@ -2541,7 +2541,7 @@ const F = {
|
|
|
2541
2541
|
// so this token always has the same output as `xx`
|
|
2542
2542
|
case "xxxx":
|
|
2543
2543
|
case "xx":
|
|
2544
|
-
return
|
|
2544
|
+
return V(n);
|
|
2545
2545
|
// Hours, minutes and optional seconds with `:` delimiter
|
|
2546
2546
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
2547
2547
|
// so this token always has the same output as `xxx`
|
|
@@ -2549,7 +2549,7 @@ const F = {
|
|
|
2549
2549
|
case "xxx":
|
|
2550
2550
|
// Hours and minutes with `:` delimiter
|
|
2551
2551
|
default:
|
|
2552
|
-
return
|
|
2552
|
+
return V(n, ":");
|
|
2553
2553
|
}
|
|
2554
2554
|
},
|
|
2555
2555
|
// Timezone (GMT)
|
|
@@ -2564,7 +2564,7 @@ const F = {
|
|
|
2564
2564
|
// Long
|
|
2565
2565
|
case "OOOO":
|
|
2566
2566
|
default:
|
|
2567
|
-
return "GMT" +
|
|
2567
|
+
return "GMT" + V(n, ":");
|
|
2568
2568
|
}
|
|
2569
2569
|
},
|
|
2570
2570
|
// Timezone (specific non-location)
|
|
@@ -2579,7 +2579,7 @@ const F = {
|
|
|
2579
2579
|
// Long
|
|
2580
2580
|
case "zzzz":
|
|
2581
2581
|
default:
|
|
2582
|
-
return "GMT" +
|
|
2582
|
+
return "GMT" + V(n, ":");
|
|
2583
2583
|
}
|
|
2584
2584
|
},
|
|
2585
2585
|
// Seconds timestamp
|
|
@@ -2597,9 +2597,9 @@ function mt(e, t = "") {
|
|
|
2597
2597
|
return a === 0 ? r + String(i) : r + String(i) + t + T(a, 2);
|
|
2598
2598
|
}
|
|
2599
2599
|
function yt(e, t) {
|
|
2600
|
-
return e % 60 === 0 ? (e > 0 ? "-" : "+") + T(Math.abs(e) / 60, 2) :
|
|
2600
|
+
return e % 60 === 0 ? (e > 0 ? "-" : "+") + T(Math.abs(e) / 60, 2) : V(e, t);
|
|
2601
2601
|
}
|
|
2602
|
-
function
|
|
2602
|
+
function V(e, t = "") {
|
|
2603
2603
|
const r = e > 0 ? "-" : "+", n = Math.abs(e), i = T(Math.trunc(n / 60), 2), a = T(n % 60, 2);
|
|
2604
2604
|
return r + i + t + a;
|
|
2605
2605
|
}
|
|
@@ -2667,9 +2667,9 @@ function ti(e, t, r) {
|
|
|
2667
2667
|
return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
2668
2668
|
}
|
|
2669
2669
|
const ri = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, ni = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, ii = /^'([^]*?)'?$/, ai = /''/g, oi = /[a-zA-Z]/;
|
|
2670
|
-
function
|
|
2671
|
-
var f,
|
|
2672
|
-
const n = Me(), i = n.locale ?? Yn, a = n.firstWeekContainsDate ?? ((
|
|
2670
|
+
function B(e, t, r) {
|
|
2671
|
+
var f, d, l, h;
|
|
2672
|
+
const n = Me(), i = n.locale ?? Yn, a = n.firstWeekContainsDate ?? ((d = (f = n.locale) == null ? void 0 : f.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, u = n.weekStartsOn ?? ((h = (l = n.locale) == null ? void 0 : l.options) == null ? void 0 : h.weekStartsOn) ?? 0, c = k(e, r == null ? void 0 : r.in);
|
|
2673
2673
|
if (!on(c))
|
|
2674
2674
|
throw new RangeError("Invalid time value");
|
|
2675
2675
|
let s = t.match(ni).map((p) => {
|
|
@@ -2712,11 +2712,11 @@ function si(e) {
|
|
|
2712
2712
|
return t ? t[1].replace(ai, "'") : e;
|
|
2713
2713
|
}
|
|
2714
2714
|
function ui(e, t) {
|
|
2715
|
-
return
|
|
2715
|
+
return k(e, t == null ? void 0 : t.in).getDay();
|
|
2716
2716
|
}
|
|
2717
2717
|
function ci(e, t) {
|
|
2718
|
-
const r =
|
|
2719
|
-
return r.setFullYear(r.getFullYear(), n + 1, 0), r.setHours(0, 0, 0, 0),
|
|
2718
|
+
const r = k(e, t == null ? void 0 : t.in), n = r.getMonth();
|
|
2719
|
+
return r.setFullYear(r.getFullYear(), n + 1, 0), r.setHours(0, 0, 0, 0), k(r, t == null ? void 0 : t.in);
|
|
2720
2720
|
}
|
|
2721
2721
|
function li(e, t, r) {
|
|
2722
2722
|
let n = t - ui(e, r);
|
|
@@ -2726,7 +2726,7 @@ function di(e, t) {
|
|
|
2726
2726
|
return li(e, 0, t);
|
|
2727
2727
|
}
|
|
2728
2728
|
function He(e, t, r) {
|
|
2729
|
-
const n =
|
|
2729
|
+
const n = k(e, r == null ? void 0 : r.in);
|
|
2730
2730
|
return n.setHours(t), n;
|
|
2731
2731
|
}
|
|
2732
2732
|
function Xe(e, t, r) {
|
|
@@ -2738,7 +2738,7 @@ function fi(e, t) {
|
|
|
2738
2738
|
}
|
|
2739
2739
|
function hi(e, t, r) {
|
|
2740
2740
|
return Math.abs(
|
|
2741
|
-
(
|
|
2741
|
+
(U(r.end, r.start) + 1) * t.pixelsPerDay
|
|
2742
2742
|
);
|
|
2743
2743
|
}
|
|
2744
2744
|
function Ue(e, t, r, n) {
|
|
@@ -2749,11 +2749,11 @@ function Ue(e, t, r, n) {
|
|
|
2749
2749
|
};
|
|
2750
2750
|
}
|
|
2751
2751
|
function Ut(e, t, r) {
|
|
2752
|
-
const n =
|
|
2752
|
+
const n = U(e.end, e.start) * r.pixelsPerDay, i = e.size / t.capacity * r.pixelsPerLane;
|
|
2753
2753
|
return { width: n, height: i };
|
|
2754
2754
|
}
|
|
2755
2755
|
function Ge(e, t, r) {
|
|
2756
|
-
return
|
|
2756
|
+
return U(e, t) * r.pixelsPerDay + r.pixelsPerDay / 2;
|
|
2757
2757
|
}
|
|
2758
2758
|
function gi(e, t, r) {
|
|
2759
2759
|
return e / t * r.pixelsPerLane;
|
|
@@ -2808,23 +2808,23 @@ function mi(e, t, r, n, i, a, u, c, s) {
|
|
|
2808
2808
|
e,
|
|
2809
2809
|
a,
|
|
2810
2810
|
c
|
|
2811
|
-
), f = t.filter((
|
|
2812
|
-
let
|
|
2813
|
-
return
|
|
2811
|
+
), f = t.filter((l) => l.id !== r.id).map((l) => Ue(l, e, c, a));
|
|
2812
|
+
let d = null;
|
|
2813
|
+
return d = yi(
|
|
2814
2814
|
e,
|
|
2815
2815
|
r,
|
|
2816
2816
|
i,
|
|
2817
2817
|
a,
|
|
2818
2818
|
n
|
|
2819
|
-
),
|
|
2820
|
-
|
|
2819
|
+
), d = bi(d, u), d = vi(
|
|
2820
|
+
d,
|
|
2821
2821
|
o
|
|
2822
|
-
),
|
|
2823
|
-
|
|
2822
|
+
), d = wi(
|
|
2823
|
+
d,
|
|
2824
2824
|
f,
|
|
2825
2825
|
o,
|
|
2826
2826
|
s
|
|
2827
|
-
),
|
|
2827
|
+
), d;
|
|
2828
2828
|
}
|
|
2829
2829
|
function yi(e, t, r, n, i) {
|
|
2830
2830
|
const { width: a, height: u } = Ut(t, e, n), c = i.x + a * r.relative.x, s = i.y + u * r.relative.y;
|
|
@@ -2936,14 +2936,14 @@ function Mi(e, t, r, n, i) {
|
|
|
2936
2936
|
offset: i.lower,
|
|
2937
2937
|
size: i.upper - i.lower
|
|
2938
2938
|
}, u = n.filter(
|
|
2939
|
-
(
|
|
2939
|
+
(d) => Si(d, a)
|
|
2940
2940
|
);
|
|
2941
2941
|
if (u.length === 0)
|
|
2942
2942
|
return {
|
|
2943
2943
|
lower: t,
|
|
2944
2944
|
upper: r
|
|
2945
2945
|
};
|
|
2946
|
-
const c = u.filter((
|
|
2946
|
+
const c = u.filter((d) => d.end <= e), s = u.filter((d) => d.start >= e), o = c.length > 0 ? tn(c.map((d) => d.end)) : t, f = s.length > 0 ? rn(s.map((d) => d.start)) : r;
|
|
2947
2947
|
return {
|
|
2948
2948
|
lower: o,
|
|
2949
2949
|
upper: f
|
|
@@ -2969,20 +2969,20 @@ function Ei({
|
|
|
2969
2969
|
element: c,
|
|
2970
2970
|
getData: () => ({ drop: "drop" }),
|
|
2971
2971
|
onDragStart: ({ source: s, location: o }) => {
|
|
2972
|
-
const f = ye(o),
|
|
2973
|
-
t(f,
|
|
2972
|
+
const f = ye(o), d = te(s, o);
|
|
2973
|
+
t(f, d, s.data);
|
|
2974
2974
|
},
|
|
2975
2975
|
onDragEnter: ({ source: s, location: o }) => {
|
|
2976
|
-
const f = ye(o),
|
|
2977
|
-
i(f,
|
|
2976
|
+
const f = ye(o), d = te(s, o);
|
|
2977
|
+
i(f, d, s.data);
|
|
2978
2978
|
},
|
|
2979
2979
|
onDrag: ({ source: s, location: o }) => {
|
|
2980
|
-
const f = ye(o),
|
|
2981
|
-
r(f,
|
|
2980
|
+
const f = ye(o), d = te(s, o);
|
|
2981
|
+
r(f, d, s.data);
|
|
2982
2982
|
},
|
|
2983
2983
|
onDrop: ({ source: s, location: o }) => {
|
|
2984
|
-
const f = ye(o),
|
|
2985
|
-
n(f,
|
|
2984
|
+
const f = ye(o), d = te(s, o);
|
|
2985
|
+
n(f, d, s.data);
|
|
2986
2986
|
},
|
|
2987
2987
|
onDragLeave: ({ source: s, location: o }) => {
|
|
2988
2988
|
const f = te(s, o);
|
|
@@ -3019,7 +3019,7 @@ function Pi({
|
|
|
3019
3019
|
}
|
|
3020
3020
|
);
|
|
3021
3021
|
}
|
|
3022
|
-
var ve = { exports: {} },
|
|
3022
|
+
var ve = { exports: {} }, z = {};
|
|
3023
3023
|
/**
|
|
3024
3024
|
* @license React
|
|
3025
3025
|
* react-dom.production.js
|
|
@@ -3031,7 +3031,7 @@ var ve = { exports: {} }, _ = {};
|
|
|
3031
3031
|
*/
|
|
3032
3032
|
var wt;
|
|
3033
3033
|
function Ri() {
|
|
3034
|
-
if (wt) return
|
|
3034
|
+
if (wt) return z;
|
|
3035
3035
|
wt = 1;
|
|
3036
3036
|
var e = Nt;
|
|
3037
3037
|
function t(s) {
|
|
@@ -3063,10 +3063,10 @@ function Ri() {
|
|
|
3063
3063
|
findDOMNode: null
|
|
3064
3064
|
}, i = Symbol.for("react.portal");
|
|
3065
3065
|
function a(s, o, f) {
|
|
3066
|
-
var
|
|
3066
|
+
var d = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
|
|
3067
3067
|
return {
|
|
3068
3068
|
$$typeof: i,
|
|
3069
|
-
key:
|
|
3069
|
+
key: d == null ? null : "" + d,
|
|
3070
3070
|
children: s,
|
|
3071
3071
|
containerInfo: o,
|
|
3072
3072
|
implementation: f
|
|
@@ -3078,41 +3078,41 @@ function Ri() {
|
|
|
3078
3078
|
if (typeof o == "string")
|
|
3079
3079
|
return o === "use-credentials" ? o : "";
|
|
3080
3080
|
}
|
|
3081
|
-
return
|
|
3081
|
+
return z.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = n, z.createPortal = function(s, o) {
|
|
3082
3082
|
var f = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
|
|
3083
3083
|
if (!o || o.nodeType !== 1 && o.nodeType !== 9 && o.nodeType !== 11)
|
|
3084
3084
|
throw Error(t(299));
|
|
3085
3085
|
return a(s, o, null, f);
|
|
3086
|
-
},
|
|
3086
|
+
}, z.flushSync = function(s) {
|
|
3087
3087
|
var o = u.T, f = n.p;
|
|
3088
3088
|
try {
|
|
3089
3089
|
if (u.T = null, n.p = 2, s) return s();
|
|
3090
3090
|
} finally {
|
|
3091
3091
|
u.T = o, n.p = f, n.d.f();
|
|
3092
3092
|
}
|
|
3093
|
-
},
|
|
3093
|
+
}, z.preconnect = function(s, o) {
|
|
3094
3094
|
typeof s == "string" && (o ? (o = o.crossOrigin, o = typeof o == "string" ? o === "use-credentials" ? o : "" : void 0) : o = null, n.d.C(s, o));
|
|
3095
|
-
},
|
|
3095
|
+
}, z.prefetchDNS = function(s) {
|
|
3096
3096
|
typeof s == "string" && n.d.D(s);
|
|
3097
|
-
},
|
|
3097
|
+
}, z.preinit = function(s, o) {
|
|
3098
3098
|
if (typeof s == "string" && o && typeof o.as == "string") {
|
|
3099
|
-
var f = o.as,
|
|
3099
|
+
var f = o.as, d = c(f, o.crossOrigin), l = typeof o.integrity == "string" ? o.integrity : void 0, h = typeof o.fetchPriority == "string" ? o.fetchPriority : void 0;
|
|
3100
3100
|
f === "style" ? n.d.S(
|
|
3101
3101
|
s,
|
|
3102
3102
|
typeof o.precedence == "string" ? o.precedence : void 0,
|
|
3103
3103
|
{
|
|
3104
|
-
crossOrigin:
|
|
3105
|
-
integrity:
|
|
3104
|
+
crossOrigin: d,
|
|
3105
|
+
integrity: l,
|
|
3106
3106
|
fetchPriority: h
|
|
3107
3107
|
}
|
|
3108
3108
|
) : f === "script" && n.d.X(s, {
|
|
3109
|
-
crossOrigin:
|
|
3110
|
-
integrity:
|
|
3109
|
+
crossOrigin: d,
|
|
3110
|
+
integrity: l,
|
|
3111
3111
|
fetchPriority: h,
|
|
3112
3112
|
nonce: typeof o.nonce == "string" ? o.nonce : void 0
|
|
3113
3113
|
});
|
|
3114
3114
|
}
|
|
3115
|
-
},
|
|
3115
|
+
}, z.preinitModule = function(s, o) {
|
|
3116
3116
|
if (typeof s == "string")
|
|
3117
3117
|
if (typeof o == "object" && o !== null) {
|
|
3118
3118
|
if (o.as == null || o.as === "script") {
|
|
@@ -3127,11 +3127,11 @@ function Ri() {
|
|
|
3127
3127
|
});
|
|
3128
3128
|
}
|
|
3129
3129
|
} else o == null && n.d.M(s);
|
|
3130
|
-
},
|
|
3130
|
+
}, z.preload = function(s, o) {
|
|
3131
3131
|
if (typeof s == "string" && typeof o == "object" && o !== null && typeof o.as == "string") {
|
|
3132
|
-
var f = o.as,
|
|
3132
|
+
var f = o.as, d = c(f, o.crossOrigin);
|
|
3133
3133
|
n.d.L(s, f, {
|
|
3134
|
-
crossOrigin:
|
|
3134
|
+
crossOrigin: d,
|
|
3135
3135
|
integrity: typeof o.integrity == "string" ? o.integrity : void 0,
|
|
3136
3136
|
nonce: typeof o.nonce == "string" ? o.nonce : void 0,
|
|
3137
3137
|
type: typeof o.type == "string" ? o.type : void 0,
|
|
@@ -3142,7 +3142,7 @@ function Ri() {
|
|
|
3142
3142
|
media: typeof o.media == "string" ? o.media : void 0
|
|
3143
3143
|
});
|
|
3144
3144
|
}
|
|
3145
|
-
},
|
|
3145
|
+
}, z.preloadModule = function(s, o) {
|
|
3146
3146
|
if (typeof s == "string")
|
|
3147
3147
|
if (o) {
|
|
3148
3148
|
var f = c(o.as, o.crossOrigin);
|
|
@@ -3152,17 +3152,17 @@ function Ri() {
|
|
|
3152
3152
|
integrity: typeof o.integrity == "string" ? o.integrity : void 0
|
|
3153
3153
|
});
|
|
3154
3154
|
} else n.d.m(s);
|
|
3155
|
-
},
|
|
3155
|
+
}, z.requestFormReset = function(s) {
|
|
3156
3156
|
n.d.r(s);
|
|
3157
|
-
},
|
|
3157
|
+
}, z.unstable_batchedUpdates = function(s, o) {
|
|
3158
3158
|
return s(o);
|
|
3159
|
-
},
|
|
3159
|
+
}, z.useFormState = function(s, o, f) {
|
|
3160
3160
|
return u.H.useFormState(s, o, f);
|
|
3161
|
-
},
|
|
3161
|
+
}, z.useFormStatus = function() {
|
|
3162
3162
|
return u.H.useHostTransitionStatus();
|
|
3163
|
-
},
|
|
3163
|
+
}, z.version = "19.1.0", z;
|
|
3164
3164
|
}
|
|
3165
|
-
var
|
|
3165
|
+
var _ = {};
|
|
3166
3166
|
/**
|
|
3167
3167
|
* @license React
|
|
3168
3168
|
* react-dom.development.js
|
|
@@ -3177,10 +3177,10 @@ function ki() {
|
|
|
3177
3177
|
return xt || (xt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
3178
3178
|
function e() {
|
|
3179
3179
|
}
|
|
3180
|
-
function t(
|
|
3181
|
-
return "" +
|
|
3180
|
+
function t(d) {
|
|
3181
|
+
return "" + d;
|
|
3182
3182
|
}
|
|
3183
|
-
function r(
|
|
3183
|
+
function r(d, l, h) {
|
|
3184
3184
|
var p = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
|
|
3185
3185
|
try {
|
|
3186
3186
|
t(p);
|
|
@@ -3194,31 +3194,31 @@ function ki() {
|
|
|
3194
3194
|
), t(p)), {
|
|
3195
3195
|
$$typeof: o,
|
|
3196
3196
|
key: p == null ? null : "" + p,
|
|
3197
|
-
children:
|
|
3198
|
-
containerInfo:
|
|
3197
|
+
children: d,
|
|
3198
|
+
containerInfo: l,
|
|
3199
3199
|
implementation: h
|
|
3200
3200
|
};
|
|
3201
3201
|
}
|
|
3202
|
-
function n(
|
|
3203
|
-
if (
|
|
3204
|
-
if (typeof
|
|
3205
|
-
return
|
|
3202
|
+
function n(d, l) {
|
|
3203
|
+
if (d === "font") return "";
|
|
3204
|
+
if (typeof l == "string")
|
|
3205
|
+
return l === "use-credentials" ? l : "";
|
|
3206
3206
|
}
|
|
3207
|
-
function i(
|
|
3208
|
-
return
|
|
3207
|
+
function i(d) {
|
|
3208
|
+
return d === null ? "`null`" : d === void 0 ? "`undefined`" : d === "" ? "an empty string" : 'something with type "' + typeof d + '"';
|
|
3209
3209
|
}
|
|
3210
|
-
function a(
|
|
3211
|
-
return
|
|
3210
|
+
function a(d) {
|
|
3211
|
+
return d === null ? "`null`" : d === void 0 ? "`undefined`" : d === "" ? "an empty string" : typeof d == "string" ? JSON.stringify(d) : typeof d == "number" ? "`" + d + "`" : 'something with type "' + typeof d + '"';
|
|
3212
3212
|
}
|
|
3213
3213
|
function u() {
|
|
3214
|
-
var
|
|
3215
|
-
return
|
|
3214
|
+
var d = f.H;
|
|
3215
|
+
return d === null && console.error(
|
|
3216
3216
|
`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
3217
3217
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
3218
3218
|
2. You might be breaking the Rules of Hooks
|
|
3219
3219
|
3. You might have more than one copy of React in the same app
|
|
3220
3220
|
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
|
|
3221
|
-
),
|
|
3221
|
+
), d;
|
|
3222
3222
|
}
|
|
3223
3223
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
3224
3224
|
var c = Nt, s = {
|
|
@@ -3242,148 +3242,148 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
3242
3242
|
}, o = Symbol.for("react.portal"), f = c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
3243
3243
|
typeof Map == "function" && Map.prototype != null && typeof Map.prototype.forEach == "function" && typeof Set == "function" && Set.prototype != null && typeof Set.prototype.clear == "function" && typeof Set.prototype.forEach == "function" || console.error(
|
|
3244
3244
|
"React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"
|
|
3245
|
-
),
|
|
3245
|
+
), _.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = s, _.createPortal = function(d, l) {
|
|
3246
3246
|
var h = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
|
|
3247
|
-
if (!
|
|
3247
|
+
if (!l || l.nodeType !== 1 && l.nodeType !== 9 && l.nodeType !== 11)
|
|
3248
3248
|
throw Error("Target container is not a DOM element.");
|
|
3249
|
-
return r(
|
|
3250
|
-
},
|
|
3251
|
-
var
|
|
3249
|
+
return r(d, l, null, h);
|
|
3250
|
+
}, _.flushSync = function(d) {
|
|
3251
|
+
var l = f.T, h = s.p;
|
|
3252
3252
|
try {
|
|
3253
|
-
if (f.T = null, s.p = 2,
|
|
3254
|
-
return
|
|
3253
|
+
if (f.T = null, s.p = 2, d)
|
|
3254
|
+
return d();
|
|
3255
3255
|
} finally {
|
|
3256
|
-
f.T =
|
|
3256
|
+
f.T = l, s.p = h, s.d.f() && console.error(
|
|
3257
3257
|
"flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."
|
|
3258
3258
|
);
|
|
3259
3259
|
}
|
|
3260
|
-
},
|
|
3261
|
-
typeof
|
|
3260
|
+
}, _.preconnect = function(d, l) {
|
|
3261
|
+
typeof d == "string" && d ? l != null && typeof l != "object" ? console.error(
|
|
3262
3262
|
"ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",
|
|
3263
|
-
a(
|
|
3264
|
-
) :
|
|
3263
|
+
a(l)
|
|
3264
|
+
) : l != null && typeof l.crossOrigin != "string" && console.error(
|
|
3265
3265
|
"ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",
|
|
3266
|
-
i(
|
|
3266
|
+
i(l.crossOrigin)
|
|
3267
3267
|
) : console.error(
|
|
3268
3268
|
"ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
3269
|
-
i(
|
|
3270
|
-
), typeof
|
|
3271
|
-
},
|
|
3272
|
-
if (typeof
|
|
3269
|
+
i(d)
|
|
3270
|
+
), typeof d == "string" && (l ? (l = l.crossOrigin, l = typeof l == "string" ? l === "use-credentials" ? l : "" : void 0) : l = null, s.d.C(d, l));
|
|
3271
|
+
}, _.prefetchDNS = function(d) {
|
|
3272
|
+
if (typeof d != "string" || !d)
|
|
3273
3273
|
console.error(
|
|
3274
3274
|
"ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
3275
|
-
i(
|
|
3275
|
+
i(d)
|
|
3276
3276
|
);
|
|
3277
3277
|
else if (1 < arguments.length) {
|
|
3278
|
-
var
|
|
3279
|
-
typeof
|
|
3278
|
+
var l = arguments[1];
|
|
3279
|
+
typeof l == "object" && l.hasOwnProperty("crossOrigin") ? console.error(
|
|
3280
3280
|
"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
|
|
3281
|
-
a(
|
|
3281
|
+
a(l)
|
|
3282
3282
|
) : console.error(
|
|
3283
3283
|
"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
|
|
3284
|
-
a(
|
|
3284
|
+
a(l)
|
|
3285
3285
|
);
|
|
3286
3286
|
}
|
|
3287
|
-
typeof
|
|
3288
|
-
},
|
|
3289
|
-
if (typeof
|
|
3287
|
+
typeof d == "string" && s.d.D(d);
|
|
3288
|
+
}, _.preinit = function(d, l) {
|
|
3289
|
+
if (typeof d == "string" && d ? l == null || typeof l != "object" ? console.error(
|
|
3290
3290
|
"ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",
|
|
3291
|
-
a(
|
|
3292
|
-
) :
|
|
3291
|
+
a(l)
|
|
3292
|
+
) : l.as !== "style" && l.as !== "script" && console.error(
|
|
3293
3293
|
'ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',
|
|
3294
|
-
a(
|
|
3294
|
+
a(l.as)
|
|
3295
3295
|
) : console.error(
|
|
3296
3296
|
"ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
3297
|
-
i(
|
|
3298
|
-
), typeof
|
|
3299
|
-
var h =
|
|
3297
|
+
i(d)
|
|
3298
|
+
), typeof d == "string" && l && typeof l.as == "string") {
|
|
3299
|
+
var h = l.as, p = n(h, l.crossOrigin), g = typeof l.integrity == "string" ? l.integrity : void 0, y = typeof l.fetchPriority == "string" ? l.fetchPriority : void 0;
|
|
3300
3300
|
h === "style" ? s.d.S(
|
|
3301
|
-
|
|
3302
|
-
typeof
|
|
3301
|
+
d,
|
|
3302
|
+
typeof l.precedence == "string" ? l.precedence : void 0,
|
|
3303
3303
|
{
|
|
3304
3304
|
crossOrigin: p,
|
|
3305
3305
|
integrity: g,
|
|
3306
3306
|
fetchPriority: y
|
|
3307
3307
|
}
|
|
3308
|
-
) : h === "script" && s.d.X(
|
|
3308
|
+
) : h === "script" && s.d.X(d, {
|
|
3309
3309
|
crossOrigin: p,
|
|
3310
3310
|
integrity: g,
|
|
3311
3311
|
fetchPriority: y,
|
|
3312
|
-
nonce: typeof
|
|
3312
|
+
nonce: typeof l.nonce == "string" ? l.nonce : void 0
|
|
3313
3313
|
});
|
|
3314
3314
|
}
|
|
3315
|
-
},
|
|
3315
|
+
}, _.preinitModule = function(d, l) {
|
|
3316
3316
|
var h = "";
|
|
3317
|
-
if (typeof
|
|
3317
|
+
if (typeof d == "string" && d || (h += " The `href` argument encountered was " + i(d) + "."), l !== void 0 && typeof l != "object" ? h += " The `options` argument encountered was " + i(l) + "." : l && "as" in l && l.as !== "script" && (h += " The `as` option encountered was " + a(l.as) + "."), h)
|
|
3318
3318
|
console.error(
|
|
3319
3319
|
"ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",
|
|
3320
3320
|
h
|
|
3321
3321
|
);
|
|
3322
3322
|
else
|
|
3323
|
-
switch (h =
|
|
3323
|
+
switch (h = l && typeof l.as == "string" ? l.as : "script", h) {
|
|
3324
3324
|
case "script":
|
|
3325
3325
|
break;
|
|
3326
3326
|
default:
|
|
3327
3327
|
h = a(h), console.error(
|
|
3328
3328
|
'ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',
|
|
3329
3329
|
h,
|
|
3330
|
-
|
|
3330
|
+
d
|
|
3331
3331
|
);
|
|
3332
3332
|
}
|
|
3333
|
-
typeof
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
), s.d.M(
|
|
3333
|
+
typeof d == "string" && (typeof l == "object" && l !== null ? (l.as == null || l.as === "script") && (h = n(
|
|
3334
|
+
l.as,
|
|
3335
|
+
l.crossOrigin
|
|
3336
|
+
), s.d.M(d, {
|
|
3337
3337
|
crossOrigin: h,
|
|
3338
|
-
integrity: typeof
|
|
3339
|
-
nonce: typeof
|
|
3340
|
-
})) :
|
|
3341
|
-
},
|
|
3338
|
+
integrity: typeof l.integrity == "string" ? l.integrity : void 0,
|
|
3339
|
+
nonce: typeof l.nonce == "string" ? l.nonce : void 0
|
|
3340
|
+
})) : l == null && s.d.M(d));
|
|
3341
|
+
}, _.preload = function(d, l) {
|
|
3342
3342
|
var h = "";
|
|
3343
|
-
if (typeof
|
|
3343
|
+
if (typeof d == "string" && d || (h += " The `href` argument encountered was " + i(d) + "."), l == null || typeof l != "object" ? h += " The `options` argument encountered was " + i(l) + "." : typeof l.as == "string" && l.as || (h += " The `as` option encountered was " + i(l.as) + "."), h && console.error(
|
|
3344
3344
|
'ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',
|
|
3345
3345
|
h
|
|
3346
|
-
), typeof
|
|
3347
|
-
h =
|
|
3346
|
+
), typeof d == "string" && typeof l == "object" && l !== null && typeof l.as == "string") {
|
|
3347
|
+
h = l.as;
|
|
3348
3348
|
var p = n(
|
|
3349
3349
|
h,
|
|
3350
|
-
|
|
3350
|
+
l.crossOrigin
|
|
3351
3351
|
);
|
|
3352
|
-
s.d.L(
|
|
3352
|
+
s.d.L(d, h, {
|
|
3353
3353
|
crossOrigin: p,
|
|
3354
|
-
integrity: typeof
|
|
3355
|
-
nonce: typeof
|
|
3356
|
-
type: typeof
|
|
3357
|
-
fetchPriority: typeof
|
|
3358
|
-
referrerPolicy: typeof
|
|
3359
|
-
imageSrcSet: typeof
|
|
3360
|
-
imageSizes: typeof
|
|
3361
|
-
media: typeof
|
|
3354
|
+
integrity: typeof l.integrity == "string" ? l.integrity : void 0,
|
|
3355
|
+
nonce: typeof l.nonce == "string" ? l.nonce : void 0,
|
|
3356
|
+
type: typeof l.type == "string" ? l.type : void 0,
|
|
3357
|
+
fetchPriority: typeof l.fetchPriority == "string" ? l.fetchPriority : void 0,
|
|
3358
|
+
referrerPolicy: typeof l.referrerPolicy == "string" ? l.referrerPolicy : void 0,
|
|
3359
|
+
imageSrcSet: typeof l.imageSrcSet == "string" ? l.imageSrcSet : void 0,
|
|
3360
|
+
imageSizes: typeof l.imageSizes == "string" ? l.imageSizes : void 0,
|
|
3361
|
+
media: typeof l.media == "string" ? l.media : void 0
|
|
3362
3362
|
});
|
|
3363
3363
|
}
|
|
3364
|
-
},
|
|
3364
|
+
}, _.preloadModule = function(d, l) {
|
|
3365
3365
|
var h = "";
|
|
3366
|
-
typeof
|
|
3366
|
+
typeof d == "string" && d || (h += " The `href` argument encountered was " + i(d) + "."), l !== void 0 && typeof l != "object" ? h += " The `options` argument encountered was " + i(l) + "." : l && "as" in l && typeof l.as != "string" && (h += " The `as` option encountered was " + i(l.as) + "."), h && console.error(
|
|
3367
3367
|
'ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',
|
|
3368
3368
|
h
|
|
3369
|
-
), typeof
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
), s.d.m(
|
|
3373
|
-
as: typeof
|
|
3369
|
+
), typeof d == "string" && (l ? (h = n(
|
|
3370
|
+
l.as,
|
|
3371
|
+
l.crossOrigin
|
|
3372
|
+
), s.d.m(d, {
|
|
3373
|
+
as: typeof l.as == "string" && l.as !== "script" ? l.as : void 0,
|
|
3374
3374
|
crossOrigin: h,
|
|
3375
|
-
integrity: typeof
|
|
3376
|
-
})) : s.d.m(
|
|
3377
|
-
},
|
|
3378
|
-
s.d.r(
|
|
3379
|
-
},
|
|
3380
|
-
return l
|
|
3381
|
-
},
|
|
3382
|
-
return u().useFormState(
|
|
3383
|
-
},
|
|
3375
|
+
integrity: typeof l.integrity == "string" ? l.integrity : void 0
|
|
3376
|
+
})) : s.d.m(d));
|
|
3377
|
+
}, _.requestFormReset = function(d) {
|
|
3378
|
+
s.d.r(d);
|
|
3379
|
+
}, _.unstable_batchedUpdates = function(d, l) {
|
|
3380
|
+
return d(l);
|
|
3381
|
+
}, _.useFormState = function(d, l, h) {
|
|
3382
|
+
return u().useFormState(d, l, h);
|
|
3383
|
+
}, _.useFormStatus = function() {
|
|
3384
3384
|
return u().useHostTransitionStatus();
|
|
3385
|
-
},
|
|
3386
|
-
}()),
|
|
3385
|
+
}, _.version = "19.1.0", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
3386
|
+
}()), _;
|
|
3387
3387
|
}
|
|
3388
3388
|
var St;
|
|
3389
3389
|
function Ni() {
|
|
@@ -3402,14 +3402,14 @@ function Ni() {
|
|
|
3402
3402
|
}
|
|
3403
3403
|
return process.env.NODE_ENV === "production" ? (e(), ve.exports = Ri()) : ve.exports = ki(), ve.exports;
|
|
3404
3404
|
}
|
|
3405
|
-
var Ai = Ni(),
|
|
3406
|
-
return
|
|
3405
|
+
var Ai = Ni(), R = function() {
|
|
3406
|
+
return R = Object.assign || function(e) {
|
|
3407
3407
|
for (var t, r = 1, n = arguments.length; r < n; r++) {
|
|
3408
3408
|
t = arguments[r];
|
|
3409
3409
|
for (var i in t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
3410
3410
|
}
|
|
3411
3411
|
return e;
|
|
3412
|
-
},
|
|
3412
|
+
}, R.apply(this, arguments);
|
|
3413
3413
|
}, Ot = {
|
|
3414
3414
|
width: "100%",
|
|
3415
3415
|
height: "10px",
|
|
@@ -3428,21 +3428,21 @@ var Ai = Ni(), k = function() {
|
|
|
3428
3428
|
position: "absolute",
|
|
3429
3429
|
zIndex: 1
|
|
3430
3430
|
}, zi = {
|
|
3431
|
-
top:
|
|
3432
|
-
right:
|
|
3433
|
-
bottom:
|
|
3434
|
-
left:
|
|
3435
|
-
topRight:
|
|
3436
|
-
bottomRight:
|
|
3437
|
-
bottomLeft:
|
|
3438
|
-
topLeft:
|
|
3431
|
+
top: R(R({}, Ot), { top: "-5px" }),
|
|
3432
|
+
right: R(R({}, Dt), { left: void 0, right: "-5px" }),
|
|
3433
|
+
bottom: R(R({}, Ot), { top: void 0, bottom: "-5px" }),
|
|
3434
|
+
left: R(R({}, Dt), { left: "-5px" }),
|
|
3435
|
+
topRight: R(R({}, be), { right: "-10px", top: "-10px", cursor: "ne-resize" }),
|
|
3436
|
+
bottomRight: R(R({}, be), { right: "-10px", bottom: "-10px", cursor: "se-resize" }),
|
|
3437
|
+
bottomLeft: R(R({}, be), { left: "-10px", bottom: "-10px", cursor: "sw-resize" }),
|
|
3438
|
+
topLeft: R(R({}, be), { left: "-10px", top: "-10px", cursor: "nw-resize" })
|
|
3439
3439
|
}, _i = Jt(function(e) {
|
|
3440
3440
|
var t = e.onResizeStart, r = e.direction, n = e.children, i = e.replaceStyles, a = e.className, u = Ve(function(o) {
|
|
3441
3441
|
t(o, r);
|
|
3442
3442
|
}, [t, r]), c = Ve(function(o) {
|
|
3443
3443
|
t(o, r);
|
|
3444
3444
|
}, [t, r]), s = Zt(function() {
|
|
3445
|
-
return
|
|
3445
|
+
return R(R({ position: "absolute", userSelect: "none" }, zi[r]), i ?? {});
|
|
3446
3446
|
}, [i, r]);
|
|
3447
3447
|
return m("div", { className: a || void 0, style: s, onMouseDown: u, onTouchStart: c, children: n });
|
|
3448
3448
|
}), Wi = /* @__PURE__ */ function() {
|
|
@@ -3462,14 +3462,14 @@ var Ai = Ni(), k = function() {
|
|
|
3462
3462
|
}
|
|
3463
3463
|
t.prototype = r === null ? Object.create(r) : (n.prototype = r.prototype, new n());
|
|
3464
3464
|
};
|
|
3465
|
-
}(),
|
|
3466
|
-
return
|
|
3465
|
+
}(), j = function() {
|
|
3466
|
+
return j = Object.assign || function(e) {
|
|
3467
3467
|
for (var t, r = 1, n = arguments.length; r < n; r++) {
|
|
3468
3468
|
t = arguments[r];
|
|
3469
3469
|
for (var i in t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
3470
3470
|
}
|
|
3471
3471
|
return e;
|
|
3472
|
-
},
|
|
3472
|
+
}, j.apply(this, arguments);
|
|
3473
3473
|
}, Ci = {
|
|
3474
3474
|
width: "auto",
|
|
3475
3475
|
height: "auto"
|
|
@@ -3636,8 +3636,8 @@ var Ai = Ni(), k = function() {
|
|
|
3636
3636
|
if (r.propsSize && r.propsSize[c] && (!((s = r.propsSize[c]) === null || s === void 0) && s.toString().endsWith("%"))) {
|
|
3637
3637
|
if (r.state[c].toString().endsWith("%"))
|
|
3638
3638
|
return r.state[c].toString();
|
|
3639
|
-
var o = r.getParentSize(), f = Number(r.state[c].toString().replace("px", "")),
|
|
3640
|
-
return "".concat(
|
|
3639
|
+
var o = r.getParentSize(), f = Number(r.state[c].toString().replace("px", "")), d = f / o[c] * 100;
|
|
3640
|
+
return "".concat(d, "%");
|
|
3641
3641
|
}
|
|
3642
3642
|
return ze(r.state[c]);
|
|
3643
3643
|
}, a = n && typeof n.width < "u" && !this.state.isResizing ? ze(n.width) : i("width"), u = n && typeof n.height < "u" && !this.state.isResizing ? ze(n.height) : i("height");
|
|
@@ -3687,15 +3687,15 @@ var Ai = Ni(), k = function() {
|
|
|
3687
3687
|
} else this.props.bounds === "window" ? this.window && (s = u ? this.resizableRight : this.window.innerWidth - this.resizableLeft, o = c ? this.resizableBottom : this.window.innerHeight - this.resizableTop) : this.props.bounds && (s = u ? this.resizableRight - this.targetLeft : this.props.bounds.offsetWidth + (this.targetLeft - this.resizableLeft), o = c ? this.resizableBottom - this.targetTop : this.props.bounds.offsetHeight + (this.targetTop - this.resizableTop));
|
|
3688
3688
|
return s && Number.isFinite(s) && (r = r && r < s ? r : s), o && Number.isFinite(o) && (n = n && n < o ? n : o), { maxWidth: r, maxHeight: n };
|
|
3689
3689
|
}, t.prototype.calculateNewSizeFromDirection = function(r, n) {
|
|
3690
|
-
var i = this.props.scale || 1, a = Hi(this.props.resizeRatio || 1), u = a[0], c = a[1], s = this.state, o = s.direction, f = s.original,
|
|
3691
|
-
return ee("right", o) && (g = f.width + (r - f.x) * u / i,
|
|
3690
|
+
var i = this.props.scale || 1, a = Hi(this.props.resizeRatio || 1), u = a[0], c = a[1], s = this.state, o = s.direction, f = s.original, d = this.props, l = d.lockAspectRatio, h = d.lockAspectRatioExtraHeight, p = d.lockAspectRatioExtraWidth, g = f.width, y = f.height, b = h || 0, w = p || 0;
|
|
3691
|
+
return ee("right", o) && (g = f.width + (r - f.x) * u / i, l && (y = (g - w) / this.ratio + b)), ee("left", o) && (g = f.width - (r - f.x) * u / i, l && (y = (g - w) / this.ratio + b)), ee("bottom", o) && (y = f.height + (n - f.y) * c / i, l && (g = (y - b) * this.ratio + w)), ee("top", o) && (y = f.height - (n - f.y) * c / i, l && (g = (y - b) * this.ratio + w)), { newWidth: g, newHeight: y };
|
|
3692
3692
|
}, t.prototype.calculateNewSizeFromAspectRatio = function(r, n, i, a) {
|
|
3693
|
-
var u = this.props, c = u.lockAspectRatio, s = u.lockAspectRatioExtraHeight, o = u.lockAspectRatioExtraWidth, f = typeof a.width > "u" ? 10 : a.width,
|
|
3693
|
+
var u = this.props, c = u.lockAspectRatio, s = u.lockAspectRatioExtraHeight, o = u.lockAspectRatioExtraWidth, f = typeof a.width > "u" ? 10 : a.width, d = typeof i.width > "u" || i.width < 0 ? r : i.width, l = typeof a.height > "u" ? 10 : a.height, h = typeof i.height > "u" || i.height < 0 ? n : i.height, p = s || 0, g = o || 0;
|
|
3694
3694
|
if (c) {
|
|
3695
|
-
var y = (
|
|
3696
|
-
r = we(r, x, M), n = we(n, O,
|
|
3695
|
+
var y = (l - p) * this.ratio + g, b = (h - p) * this.ratio + g, w = (f - g) / this.ratio + p, S = (d - g) / this.ratio + p, x = Math.max(f, y), M = Math.min(d, b), O = Math.max(l, w), C = Math.min(h, S);
|
|
3696
|
+
r = we(r, x, M), n = we(n, O, C);
|
|
3697
3697
|
} else
|
|
3698
|
-
r = we(r, f,
|
|
3698
|
+
r = we(r, f, d), n = we(n, l, h);
|
|
3699
3699
|
return { newWidth: r, newHeight: n };
|
|
3700
3700
|
}, t.prototype.setBoundingClientRect = function() {
|
|
3701
3701
|
var r = 1 / (this.props.scale || 1);
|
|
@@ -3732,7 +3732,7 @@ var Ai = Ni(), k = function() {
|
|
|
3732
3732
|
}
|
|
3733
3733
|
}
|
|
3734
3734
|
this.setBoundingClientRect(), this.bindEvents();
|
|
3735
|
-
var
|
|
3735
|
+
var d = {
|
|
3736
3736
|
original: {
|
|
3737
3737
|
x: i,
|
|
3738
3738
|
y: a,
|
|
@@ -3740,11 +3740,11 @@ var Ai = Ni(), k = function() {
|
|
|
3740
3740
|
height: this.size.height
|
|
3741
3741
|
},
|
|
3742
3742
|
isResizing: !0,
|
|
3743
|
-
backgroundStyle:
|
|
3743
|
+
backgroundStyle: j(j({}, this.state.backgroundStyle), { cursor: this.window.getComputedStyle(r.target).cursor || "auto" }),
|
|
3744
3744
|
direction: n,
|
|
3745
3745
|
flexBasis: c
|
|
3746
3746
|
};
|
|
3747
|
-
this.setState(
|
|
3747
|
+
this.setState(d);
|
|
3748
3748
|
}
|
|
3749
3749
|
}, t.prototype.onMouseMove = function(r) {
|
|
3750
3750
|
var n = this;
|
|
@@ -3754,41 +3754,41 @@ var Ai = Ni(), k = function() {
|
|
|
3754
3754
|
r.preventDefault(), r.stopPropagation();
|
|
3755
3755
|
} catch {
|
|
3756
3756
|
}
|
|
3757
|
-
var i = this.props, a = i.maxWidth, u = i.maxHeight, c = i.minWidth, s = i.minHeight, o = xe(r) ? r.touches[0].clientX : r.clientX, f = xe(r) ? r.touches[0].clientY : r.clientY,
|
|
3757
|
+
var i = this.props, a = i.maxWidth, u = i.maxHeight, c = i.minWidth, s = i.minHeight, o = xe(r) ? r.touches[0].clientX : r.clientX, f = xe(r) ? r.touches[0].clientY : r.clientY, d = this.state, l = d.direction, h = d.original, p = d.width, g = d.height, y = this.getParentSize(), b = Ii(y, this.window.innerWidth, this.window.innerHeight, a, u, c, s);
|
|
3758
3758
|
a = b.maxWidth, u = b.maxHeight, c = b.minWidth, s = b.minHeight;
|
|
3759
3759
|
var w = this.calculateNewSizeFromDirection(o, f), S = w.newHeight, x = w.newWidth, M = this.calculateNewMaxFromBoundary(a, u);
|
|
3760
3760
|
this.props.snap && this.props.snap.x && (x = Mt(x, this.props.snap.x, this.props.snapGap)), this.props.snap && this.props.snap.y && (S = Mt(S, this.props.snap.y, this.props.snapGap));
|
|
3761
3761
|
var O = this.calculateNewSizeFromAspectRatio(x, S, { width: M.maxWidth, height: M.maxHeight }, { width: c, height: s });
|
|
3762
3762
|
if (x = O.newWidth, S = O.newHeight, this.props.grid) {
|
|
3763
|
-
var
|
|
3764
|
-
x =
|
|
3763
|
+
var C = Tt(x, this.props.grid[0], this.props.gridGap ? this.props.gridGap[0] : 0), E = Tt(S, this.props.grid[1], this.props.gridGap ? this.props.gridGap[1] : 0), N = this.props.snapGap || 0, L = N === 0 || Math.abs(C - x) <= N ? C : x, v = N === 0 || Math.abs(E - S) <= N ? E : S;
|
|
3764
|
+
x = L, S = v;
|
|
3765
3765
|
}
|
|
3766
|
-
var
|
|
3766
|
+
var D = {
|
|
3767
3767
|
width: x - h.width,
|
|
3768
3768
|
height: S - h.height
|
|
3769
3769
|
};
|
|
3770
|
-
if (this.delta =
|
|
3770
|
+
if (this.delta = D, p && typeof p == "string") {
|
|
3771
3771
|
if (p.endsWith("%")) {
|
|
3772
|
-
var
|
|
3773
|
-
x = "".concat(
|
|
3772
|
+
var P = x / y.width * 100;
|
|
3773
|
+
x = "".concat(P, "%");
|
|
3774
3774
|
} else if (p.endsWith("vw")) {
|
|
3775
|
-
var
|
|
3776
|
-
x = "".concat(
|
|
3775
|
+
var I = x / this.window.innerWidth * 100;
|
|
3776
|
+
x = "".concat(I, "vw");
|
|
3777
3777
|
} else if (p.endsWith("vh")) {
|
|
3778
|
-
var
|
|
3779
|
-
x = "".concat(
|
|
3778
|
+
var Y = x / this.window.innerHeight * 100;
|
|
3779
|
+
x = "".concat(Y, "vh");
|
|
3780
3780
|
}
|
|
3781
3781
|
}
|
|
3782
3782
|
if (g && typeof g == "string") {
|
|
3783
3783
|
if (g.endsWith("%")) {
|
|
3784
|
-
var
|
|
3785
|
-
S = "".concat(
|
|
3784
|
+
var P = S / y.height * 100;
|
|
3785
|
+
S = "".concat(P, "%");
|
|
3786
3786
|
} else if (g.endsWith("vw")) {
|
|
3787
|
-
var
|
|
3788
|
-
S = "".concat(
|
|
3787
|
+
var I = S / this.window.innerWidth * 100;
|
|
3788
|
+
S = "".concat(I, "vw");
|
|
3789
3789
|
} else if (g.endsWith("vh")) {
|
|
3790
|
-
var
|
|
3791
|
-
S = "".concat(
|
|
3790
|
+
var Y = S / this.window.innerHeight * 100;
|
|
3791
|
+
S = "".concat(Y, "vh");
|
|
3792
3792
|
}
|
|
3793
3793
|
}
|
|
3794
3794
|
var A = {
|
|
@@ -3796,16 +3796,16 @@ var Ai = Ni(), k = function() {
|
|
|
3796
3796
|
height: this.createSizeForCssProperty(S, "height")
|
|
3797
3797
|
};
|
|
3798
3798
|
this.flexDir === "row" ? A.flexBasis = A.width : this.flexDir === "column" && (A.flexBasis = A.height);
|
|
3799
|
-
var
|
|
3799
|
+
var G = this.state.width !== A.width, Vt = this.state.height !== A.height, Qt = this.state.flexBasis !== A.flexBasis, Ke = G || Vt || Qt;
|
|
3800
3800
|
Ke && Ai.flushSync(function() {
|
|
3801
3801
|
n.setState(A);
|
|
3802
|
-
}), this.props.onResize && Ke && this.props.onResize(r,
|
|
3802
|
+
}), this.props.onResize && Ke && this.props.onResize(r, l, this.resizable, D);
|
|
3803
3803
|
}
|
|
3804
3804
|
}, t.prototype.onMouseUp = function(r) {
|
|
3805
3805
|
var n, i, a = this.state, u = a.isResizing, c = a.direction;
|
|
3806
3806
|
a.original, !(!u || !this.resizable) && (this.props.onResizeStop && this.props.onResizeStop(r, c, this.resizable, this.delta), this.props.size && this.setState({ width: (n = this.props.size.width) !== null && n !== void 0 ? n : "auto", height: (i = this.props.size.height) !== null && i !== void 0 ? i : "auto" }), this.unbindEvents(), this.setState({
|
|
3807
3807
|
isResizing: !1,
|
|
3808
|
-
backgroundStyle:
|
|
3808
|
+
backgroundStyle: j(j({}, this.state.backgroundStyle), { cursor: "auto" })
|
|
3809
3809
|
}));
|
|
3810
3810
|
}, t.prototype.updateSize = function(r) {
|
|
3811
3811
|
var n, i;
|
|
@@ -3814,17 +3814,17 @@ var Ai = Ni(), k = function() {
|
|
|
3814
3814
|
var r = this, n = this.props, i = n.enable, a = n.handleStyles, u = n.handleClasses, c = n.handleWrapperStyle, s = n.handleWrapperClass, o = n.handleComponent;
|
|
3815
3815
|
if (!i)
|
|
3816
3816
|
return null;
|
|
3817
|
-
var f = Object.keys(i).map(function(
|
|
3818
|
-
return i[
|
|
3817
|
+
var f = Object.keys(i).map(function(d) {
|
|
3818
|
+
return i[d] !== !1 ? m(_i, { direction: d, onResizeStart: r.onResizeStart, replaceStyles: a && a[d], className: u && u[d], children: o && o[d] ? o[d] : null }, d) : null;
|
|
3819
3819
|
});
|
|
3820
3820
|
return m("div", { className: s, style: c, children: f });
|
|
3821
3821
|
}, t.prototype.render = function() {
|
|
3822
3822
|
var r = this, n = Object.keys(this.props).reduce(function(u, c) {
|
|
3823
3823
|
return ji.indexOf(c) !== -1 || (u[c] = r.props[c]), u;
|
|
3824
|
-
}, {}), i =
|
|
3824
|
+
}, {}), i = j(j(j({ position: "relative", userSelect: this.state.isResizing ? "none" : "auto" }, this.props.style), this.sizeStyle), { maxWidth: this.props.maxWidth, maxHeight: this.props.maxHeight, minWidth: this.props.minWidth, minHeight: this.props.minHeight, boxSizing: "border-box", flexShrink: 0 });
|
|
3825
3825
|
this.state.flexBasis && (i.flexBasis = this.state.flexBasis);
|
|
3826
3826
|
var a = this.props.as || "div";
|
|
3827
|
-
return
|
|
3827
|
+
return X(a, j({ style: i, className: this.props.className }, n, {
|
|
3828
3828
|
// `ref` is after `extendsProps` to ensure this one wins over a version
|
|
3829
3829
|
// passed in
|
|
3830
3830
|
ref: function(u) {
|
|
@@ -3878,7 +3878,7 @@ const Yi = {
|
|
|
3878
3878
|
settings: Yi,
|
|
3879
3879
|
setSettings: () => {
|
|
3880
3880
|
}
|
|
3881
|
-
}, Kt = tr(Fi),
|
|
3881
|
+
}, Kt = tr(Fi), J = () => rr(Kt);
|
|
3882
3882
|
function $i({
|
|
3883
3883
|
item: e,
|
|
3884
3884
|
rectangle: t,
|
|
@@ -3890,12 +3890,12 @@ function $i({
|
|
|
3890
3890
|
onUpdate: c,
|
|
3891
3891
|
onResizeStart: s
|
|
3892
3892
|
}) {
|
|
3893
|
-
const { settings: o } =
|
|
3893
|
+
const { settings: o } = J(), f = re(null), d = re(null), [l, h] = Q(t);
|
|
3894
3894
|
return ne(() => {
|
|
3895
3895
|
h(t);
|
|
3896
|
-
}, [t]), ne(() => (Ie(f.current), Ie(
|
|
3896
|
+
}, [t]), ne(() => (Ie(f.current), Ie(d.current), Kr({
|
|
3897
3897
|
element: f.current,
|
|
3898
|
-
dragHandle:
|
|
3898
|
+
dragHandle: d.current,
|
|
3899
3899
|
onDragStart: ({ source: p, location: g }) => {
|
|
3900
3900
|
const y = te(p, g);
|
|
3901
3901
|
a(y.absolute, y.relative);
|
|
@@ -3916,14 +3916,14 @@ function $i({
|
|
|
3916
3916
|
"data-timelane-item-id": e.id,
|
|
3917
3917
|
ref: f,
|
|
3918
3918
|
style: {
|
|
3919
|
-
width: `${
|
|
3920
|
-
height: `${
|
|
3921
|
-
minWidth: `${
|
|
3922
|
-
minHeight: `${
|
|
3923
|
-
maxWidth: `${
|
|
3924
|
-
maxHeight: `${
|
|
3925
|
-
top: `${
|
|
3926
|
-
left: `${
|
|
3919
|
+
width: `${l.width}px`,
|
|
3920
|
+
height: `${l.height}px`,
|
|
3921
|
+
minWidth: `${l.width}px`,
|
|
3922
|
+
minHeight: `${l.height}px`,
|
|
3923
|
+
maxWidth: `${l.width}px`,
|
|
3924
|
+
maxHeight: `${l.height}px`,
|
|
3925
|
+
top: `${l.y}px`,
|
|
3926
|
+
left: `${l.x}px`
|
|
3927
3927
|
},
|
|
3928
3928
|
onMouseDown: (p) => {
|
|
3929
3929
|
p.stopPropagation();
|
|
@@ -3940,8 +3940,8 @@ function $i({
|
|
|
3940
3940
|
right: "timelane-item-resize-handle timelane-item-resize-handle-right"
|
|
3941
3941
|
},
|
|
3942
3942
|
size: {
|
|
3943
|
-
width:
|
|
3944
|
-
height:
|
|
3943
|
+
width: l.width,
|
|
3944
|
+
height: l.height
|
|
3945
3945
|
},
|
|
3946
3946
|
onResizeStart: () => {
|
|
3947
3947
|
s();
|
|
@@ -3988,7 +3988,7 @@ function $i({
|
|
|
3988
3988
|
}), c(w);
|
|
3989
3989
|
},
|
|
3990
3990
|
style: { overflow: "hidden" },
|
|
3991
|
-
children: /* @__PURE__ */ m("div", { className: "timelane-item-drag-handle", ref:
|
|
3991
|
+
children: /* @__PURE__ */ m("div", { className: "timelane-item-drag-handle", ref: d, children: n })
|
|
3992
3992
|
}
|
|
3993
3993
|
)
|
|
3994
3994
|
}
|
|
@@ -4015,15 +4015,15 @@ function qi({
|
|
|
4015
4015
|
onDrag: a,
|
|
4016
4016
|
onDragStart: i,
|
|
4017
4017
|
onDrop: u,
|
|
4018
|
-
onUpdate: (
|
|
4019
|
-
const
|
|
4018
|
+
onUpdate: (d) => {
|
|
4019
|
+
const l = Gt(
|
|
4020
4020
|
t,
|
|
4021
4021
|
e,
|
|
4022
|
-
|
|
4022
|
+
d,
|
|
4023
4023
|
r,
|
|
4024
4024
|
r
|
|
4025
4025
|
);
|
|
4026
|
-
c(
|
|
4026
|
+
c(l);
|
|
4027
4027
|
},
|
|
4028
4028
|
onResizeStart: s,
|
|
4029
4029
|
children: n
|
|
@@ -4051,135 +4051,136 @@ function Pt(e) {
|
|
|
4051
4051
|
return "id" in e && "laneId" in e && "start" in e && "end" in e && "size" in e && "offset" in e;
|
|
4052
4052
|
}
|
|
4053
4053
|
function Ui({
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4054
|
+
id: e,
|
|
4055
|
+
capacity: t = 100,
|
|
4056
|
+
items: r = [],
|
|
4057
|
+
focused: n = !1,
|
|
4058
|
+
onItemUpdate: i = () => {
|
|
4058
4059
|
},
|
|
4059
|
-
onMouseUp:
|
|
4060
|
+
onMouseUp: a = () => {
|
|
4060
4061
|
},
|
|
4061
|
-
onClick:
|
|
4062
|
+
onClick: u = () => {
|
|
4062
4063
|
},
|
|
4063
|
-
onDoubleClick:
|
|
4064
|
+
onDoubleClick: c = () => {
|
|
4064
4065
|
},
|
|
4065
|
-
onContextMenu:
|
|
4066
|
+
onContextMenu: s = () => {
|
|
4066
4067
|
},
|
|
4067
|
-
renderItem:
|
|
4068
|
-
onResizeStart:
|
|
4068
|
+
renderItem: o = Gi,
|
|
4069
|
+
onResizeStart: f = () => {
|
|
4069
4070
|
}
|
|
4070
4071
|
}) {
|
|
4071
|
-
const { settings:
|
|
4072
|
-
x:
|
|
4073
|
-
offsetX:
|
|
4074
|
-
},
|
|
4072
|
+
const d = { id: e, capacity: t }, { settings: l } = J(), h = {
|
|
4073
|
+
x: l.pixelsPerDay,
|
|
4074
|
+
offsetX: l.pixelsPerDay / 2
|
|
4075
|
+
}, p = Xe(d, l, l), [g, y] = Q(null), [b, w] = Q(
|
|
4075
4076
|
null
|
|
4076
4077
|
);
|
|
4077
|
-
function
|
|
4078
|
+
function S(v) {
|
|
4078
4079
|
const D = v.currentTarget.getBoundingClientRect();
|
|
4079
4080
|
return He(
|
|
4080
4081
|
pe(
|
|
4081
|
-
|
|
4082
|
-
(v.clientX - D.left) /
|
|
4082
|
+
l.start,
|
|
4083
|
+
(v.clientX - D.left) / l.pixelsPerDay
|
|
4083
4084
|
),
|
|
4084
4085
|
12
|
|
4085
4086
|
);
|
|
4086
4087
|
}
|
|
4087
|
-
function
|
|
4088
|
+
function x(v) {
|
|
4088
4089
|
const D = v.currentTarget.getBoundingClientRect();
|
|
4089
|
-
return (v.pageY - D.top) / D.height *
|
|
4090
|
+
return (v.pageY - D.top) / D.height * t;
|
|
4090
4091
|
}
|
|
4091
|
-
function
|
|
4092
|
+
function M(v, D, P) {
|
|
4092
4093
|
if (!Pt(P)) return;
|
|
4093
|
-
const
|
|
4094
|
-
|
|
4095
|
-
|
|
4094
|
+
const I = mi(
|
|
4095
|
+
d,
|
|
4096
|
+
r,
|
|
4096
4097
|
P,
|
|
4097
4098
|
v,
|
|
4098
4099
|
D,
|
|
4099
|
-
f,
|
|
4100
4100
|
l,
|
|
4101
|
-
|
|
4102
|
-
|
|
4101
|
+
h,
|
|
4102
|
+
l,
|
|
4103
|
+
l.allowOverlaps
|
|
4103
4104
|
);
|
|
4104
|
-
|
|
4105
|
+
w(I);
|
|
4105
4106
|
}
|
|
4106
|
-
function
|
|
4107
|
-
if (!Pt(P) ||
|
|
4108
|
-
const
|
|
4107
|
+
function O(v, D, P) {
|
|
4108
|
+
if (!Pt(P) || b === null) return;
|
|
4109
|
+
const I = Gt(
|
|
4109
4110
|
P,
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4111
|
+
d,
|
|
4112
|
+
b,
|
|
4113
|
+
l,
|
|
4114
|
+
l
|
|
4114
4115
|
);
|
|
4115
|
-
|
|
4116
|
+
i(I), w(null);
|
|
4116
4117
|
}
|
|
4117
|
-
function
|
|
4118
|
-
|
|
4118
|
+
function C() {
|
|
4119
|
+
w(null);
|
|
4119
4120
|
}
|
|
4120
|
-
function
|
|
4121
|
-
const P =
|
|
4121
|
+
function E(v, D) {
|
|
4122
|
+
const P = S(v), I = x(v), Y = Di(
|
|
4122
4123
|
P,
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4124
|
+
I,
|
|
4125
|
+
d,
|
|
4126
|
+
r,
|
|
4127
|
+
l
|
|
4127
4128
|
);
|
|
4128
|
-
D == "single" ?
|
|
4129
|
+
D == "single" ? u(P, Y, v) : c(P, Y, v);
|
|
4129
4130
|
}
|
|
4130
|
-
const
|
|
4131
|
+
const N = r.map((v) => ({
|
|
4131
4132
|
id: v.id,
|
|
4132
|
-
...Ue(v,
|
|
4133
|
-
})),
|
|
4134
|
-
(v) =>
|
|
4133
|
+
...Ue(v, d, l, l)
|
|
4134
|
+
})), L = N.flatMap(
|
|
4135
|
+
(v) => N.map((D) => v.id < D.id ? xi(v, D) : null)
|
|
4135
4136
|
).filter((v) => v !== null);
|
|
4136
4137
|
return /* @__PURE__ */ m(
|
|
4137
4138
|
"div",
|
|
4138
4139
|
{
|
|
4139
|
-
id: `timelane-lane-${e
|
|
4140
|
-
className: `timelane-lane ${
|
|
4141
|
-
"data-timelane-lane-id": e
|
|
4142
|
-
style:
|
|
4143
|
-
onMouseUp:
|
|
4144
|
-
onClick: (v) =>
|
|
4145
|
-
onDoubleClick: (v) =>
|
|
4140
|
+
id: `timelane-lane-${e}`,
|
|
4141
|
+
className: `timelane-lane ${n ? "timelane-lane-focused" : ""}`,
|
|
4142
|
+
"data-timelane-lane-id": e,
|
|
4143
|
+
style: p,
|
|
4144
|
+
onMouseUp: a,
|
|
4145
|
+
onClick: (v) => E(v, "single"),
|
|
4146
|
+
onDoubleClick: (v) => E(v, "double"),
|
|
4146
4147
|
onContextMenu: (v) => {
|
|
4147
|
-
|
|
4148
|
+
s(S(v), v);
|
|
4148
4149
|
},
|
|
4149
|
-
children: /* @__PURE__ */
|
|
4150
|
+
children: /* @__PURE__ */ X(
|
|
4150
4151
|
Ei,
|
|
4151
4152
|
{
|
|
4152
|
-
onDrag:
|
|
4153
|
-
onDragLeave:
|
|
4154
|
-
onDrop:
|
|
4153
|
+
onDrag: M,
|
|
4154
|
+
onDragLeave: C,
|
|
4155
|
+
onDrop: O,
|
|
4155
4156
|
children: [
|
|
4156
|
-
|
|
4157
|
+
r.map((v, D) => /* @__PURE__ */ m(
|
|
4157
4158
|
qi,
|
|
4158
4159
|
{
|
|
4159
4160
|
item: v,
|
|
4160
|
-
settings:
|
|
4161
|
-
lane:
|
|
4161
|
+
settings: l,
|
|
4162
|
+
lane: d,
|
|
4162
4163
|
onDragStart: () => {
|
|
4163
|
-
|
|
4164
|
+
y(v);
|
|
4164
4165
|
},
|
|
4165
4166
|
onDrag: () => {
|
|
4166
4167
|
},
|
|
4167
4168
|
onDrop: () => {
|
|
4168
|
-
|
|
4169
|
+
y(null);
|
|
4169
4170
|
},
|
|
4170
|
-
onUpdate:
|
|
4171
|
+
onUpdate: i,
|
|
4171
4172
|
onResizeStart: () => {
|
|
4172
|
-
|
|
4173
|
+
f(v.payload);
|
|
4173
4174
|
},
|
|
4174
|
-
children:
|
|
4175
|
+
children: o(
|
|
4175
4176
|
v,
|
|
4176
|
-
|
|
4177
|
+
g !== null && g.id === v.id
|
|
4177
4178
|
)
|
|
4178
4179
|
},
|
|
4179
4180
|
D
|
|
4180
4181
|
)),
|
|
4181
|
-
|
|
4182
|
-
|
|
4182
|
+
b && /* @__PURE__ */ m(Pi, { ...b }),
|
|
4183
|
+
L.map((v, D) => /* @__PURE__ */ m(Xi, { overlap: v }, D))
|
|
4183
4184
|
]
|
|
4184
4185
|
}
|
|
4185
4186
|
)
|
|
@@ -4187,18 +4188,18 @@ function Ui({
|
|
|
4187
4188
|
);
|
|
4188
4189
|
}
|
|
4189
4190
|
function Gi(e, t) {
|
|
4190
|
-
return /* @__PURE__ */
|
|
4191
|
+
return /* @__PURE__ */ X("div", { children: [
|
|
4191
4192
|
e.id,
|
|
4192
4193
|
" (",
|
|
4193
|
-
|
|
4194
|
+
B(e.start, "yyyy-mm-dd"),
|
|
4194
4195
|
" -",
|
|
4195
4196
|
" ",
|
|
4196
|
-
|
|
4197
|
+
B(e.end, "yyyy-mm-dd"),
|
|
4197
4198
|
")",
|
|
4198
4199
|
t ? "dragging" : ""
|
|
4199
4200
|
] });
|
|
4200
4201
|
}
|
|
4201
|
-
function
|
|
4202
|
+
function H({ children: e }) {
|
|
4202
4203
|
const t = re(null);
|
|
4203
4204
|
return /* @__PURE__ */ m(
|
|
4204
4205
|
"div",
|
|
@@ -4257,35 +4258,35 @@ function ea({
|
|
|
4257
4258
|
}
|
|
4258
4259
|
return /* @__PURE__ */ m("div", { className: `timelane-layout-corner ${r}`, children: t });
|
|
4259
4260
|
}
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4261
|
+
H.Header = Ki;
|
|
4262
|
+
H.Body = Qi;
|
|
4263
|
+
H.Background = Vi;
|
|
4264
|
+
H.Footer = Ji;
|
|
4265
|
+
H.Aside = Zi;
|
|
4266
|
+
H.Corner = ea;
|
|
4266
4267
|
function ta({
|
|
4267
4268
|
children: e,
|
|
4268
4269
|
onSelect: t
|
|
4269
4270
|
}) {
|
|
4270
|
-
const [r, n] =
|
|
4271
|
+
const [r, n] = Q([]), i = re(null), [a, u] = Q(null), [c, s] = Q(null);
|
|
4271
4272
|
ne(() => Gr({
|
|
4272
|
-
onDragStart: (
|
|
4273
|
-
n([
|
|
4273
|
+
onDragStart: (l) => {
|
|
4274
|
+
n([l.source.data.id]);
|
|
4274
4275
|
}
|
|
4275
4276
|
}), []), ne(() => {
|
|
4276
4277
|
t(r);
|
|
4277
4278
|
}, [t, r]);
|
|
4278
|
-
function o(
|
|
4279
|
-
!
|
|
4279
|
+
function o(l) {
|
|
4280
|
+
!l.shiftKey && !l.ctrlKey && n([]), u({ x: l.clientX, y: l.clientY });
|
|
4280
4281
|
}
|
|
4281
|
-
function f(
|
|
4282
|
+
function f(l) {
|
|
4282
4283
|
if (a) {
|
|
4283
4284
|
const h = {
|
|
4284
|
-
x: Math.min(
|
|
4285
|
-
y: Math.min(
|
|
4286
|
-
width: Math.abs(
|
|
4287
|
-
height: Math.abs(
|
|
4288
|
-
}, p =
|
|
4285
|
+
x: Math.min(l.clientX, a.x),
|
|
4286
|
+
y: Math.min(l.clientY, a.y),
|
|
4287
|
+
width: Math.abs(l.clientX - a.x),
|
|
4288
|
+
height: Math.abs(l.clientY - a.y)
|
|
4289
|
+
}, p = l.currentTarget.getBoundingClientRect();
|
|
4289
4290
|
s({
|
|
4290
4291
|
...h,
|
|
4291
4292
|
x: h.x - p.left,
|
|
@@ -4297,18 +4298,18 @@ function ta({
|
|
|
4297
4298
|
}), (h.width > 5 || h.height > 5) && !i.current && (i.current = Rt, window.addEventListener("click", Rt, !0));
|
|
4298
4299
|
}
|
|
4299
4300
|
}
|
|
4300
|
-
function l
|
|
4301
|
+
function d(l) {
|
|
4301
4302
|
if (a && c) {
|
|
4302
|
-
|
|
4303
|
+
l.stopPropagation();
|
|
4303
4304
|
const h = {
|
|
4304
|
-
x: Math.min(
|
|
4305
|
-
y: Math.min(
|
|
4306
|
-
width: Math.abs(
|
|
4307
|
-
height: Math.abs(
|
|
4305
|
+
x: Math.min(l.clientX, a.x),
|
|
4306
|
+
y: Math.min(l.clientY, a.y),
|
|
4307
|
+
width: Math.abs(l.clientX - a.x),
|
|
4308
|
+
height: Math.abs(l.clientY - a.y)
|
|
4308
4309
|
}, p = Array.from(
|
|
4309
4310
|
document.querySelectorAll(".timelane-drop-target")
|
|
4310
4311
|
).filter((g) => le(g.getBoundingClientRect(), h)).map((g) => Array.from(g.querySelectorAll(".timelane-item"))).flatMap((g) => g).filter((g) => le(g.getBoundingClientRect(), h)).map((g) => g instanceof HTMLElement ? Number.parseInt(g.dataset.timelaneItemId || "-1") : -1).filter((g) => g > 0);
|
|
4311
|
-
p.length > 0 && (
|
|
4312
|
+
p.length > 0 && (l.shiftKey || l.ctrlKey ? n((g) => Array.from(/* @__PURE__ */ new Set([...g, ...p]))) : n(p)), document.querySelectorAll(".timelane-item-marked").forEach((g) => {
|
|
4312
4313
|
g.classList.remove("timelane-item-marked");
|
|
4313
4314
|
});
|
|
4314
4315
|
}
|
|
@@ -4316,12 +4317,12 @@ function ta({
|
|
|
4316
4317
|
i.current && i.current !== null && (window.removeEventListener("click", i.current, !0), i.current = null);
|
|
4317
4318
|
});
|
|
4318
4319
|
}
|
|
4319
|
-
return /* @__PURE__ */
|
|
4320
|
+
return /* @__PURE__ */ X(
|
|
4320
4321
|
"div",
|
|
4321
4322
|
{
|
|
4322
4323
|
onMouseDown: o,
|
|
4323
4324
|
onMouseMove: f,
|
|
4324
|
-
onMouseUp:
|
|
4325
|
+
onMouseUp: d,
|
|
4325
4326
|
style: {
|
|
4326
4327
|
position: "relative"
|
|
4327
4328
|
},
|
|
@@ -4357,25 +4358,25 @@ function na({
|
|
|
4357
4358
|
},
|
|
4358
4359
|
children: t
|
|
4359
4360
|
}) {
|
|
4360
|
-
return /* @__PURE__ */ m(
|
|
4361
|
+
return /* @__PURE__ */ m(H.Body, { children: /* @__PURE__ */ m(ta, { onSelect: e, children: /* @__PURE__ */ m("div", { className: "timelane-body", children: t }) }) });
|
|
4361
4362
|
}
|
|
4362
4363
|
function ia(e, t) {
|
|
4363
|
-
const r =
|
|
4364
|
-
return /* @__PURE__ */ m(Oe, { children: r > 4 ?
|
|
4364
|
+
const r = U(t, e) + 1;
|
|
4365
|
+
return /* @__PURE__ */ m(Oe, { children: r > 4 ? B(e, "LLLL yyyy") : /* @__PURE__ */ m(Oe, {}) });
|
|
4365
4366
|
}
|
|
4366
4367
|
function aa(e, t) {
|
|
4367
|
-
const r =
|
|
4368
|
+
const r = U(t, e) + 1, n = `KW ${B(e, "w")} (${B(
|
|
4368
4369
|
e,
|
|
4369
4370
|
"MM-dd"
|
|
4370
|
-
)} - ${
|
|
4371
|
-
return /* @__PURE__ */ m("div", { title: n, children: r > 2 ? /* @__PURE__ */
|
|
4371
|
+
)} - ${B(t, "MM-dd")}`;
|
|
4372
|
+
return /* @__PURE__ */ m("div", { title: n, children: r > 2 ? /* @__PURE__ */ X(Oe, { children: [
|
|
4372
4373
|
"KW ",
|
|
4373
|
-
|
|
4374
|
+
B(e, "w")
|
|
4374
4375
|
] }) : /* @__PURE__ */ m(Oe, {}) });
|
|
4375
4376
|
}
|
|
4376
4377
|
function oa(e) {
|
|
4377
|
-
const t = `${
|
|
4378
|
-
return /* @__PURE__ */ m("div", { title: t, children:
|
|
4378
|
+
const t = `${B(e, "yyyy-MM-dd")}`;
|
|
4379
|
+
return /* @__PURE__ */ m("div", { title: t, children: B(e, "d") });
|
|
4379
4380
|
}
|
|
4380
4381
|
function sa({
|
|
4381
4382
|
range: e,
|
|
@@ -4390,7 +4391,7 @@ function sa({
|
|
|
4390
4391
|
a < e.start && (a = e.start);
|
|
4391
4392
|
let c = ci(a);
|
|
4392
4393
|
c > e.end && (c = e.end);
|
|
4393
|
-
const s =
|
|
4394
|
+
const s = U(c, a) + 1;
|
|
4394
4395
|
return /* @__PURE__ */ m(
|
|
4395
4396
|
"div",
|
|
4396
4397
|
{
|
|
@@ -4420,7 +4421,7 @@ function ua({
|
|
|
4420
4421
|
a < e.start && (a = e.start);
|
|
4421
4422
|
let c = Yt(a) ? a : di(a);
|
|
4422
4423
|
c > e.end && (c = e.end);
|
|
4423
|
-
const s =
|
|
4424
|
+
const s = U(c, a) + 1;
|
|
4424
4425
|
return /* @__PURE__ */ m(
|
|
4425
4426
|
"div",
|
|
4426
4427
|
{
|
|
@@ -4471,8 +4472,8 @@ function la({
|
|
|
4471
4472
|
onDayClick: u,
|
|
4472
4473
|
onWeekClick: c
|
|
4473
4474
|
}) {
|
|
4474
|
-
const { settings: s } =
|
|
4475
|
-
return /* @__PURE__ */ m(
|
|
4475
|
+
const { settings: s } = J();
|
|
4476
|
+
return /* @__PURE__ */ m(H.Header, { children: /* @__PURE__ */ X("div", { className: "timelane-header", children: [
|
|
4476
4477
|
s.showMonths && /* @__PURE__ */ m(
|
|
4477
4478
|
sa,
|
|
4478
4479
|
{
|
|
@@ -4507,8 +4508,8 @@ function la({
|
|
|
4507
4508
|
] }) });
|
|
4508
4509
|
}
|
|
4509
4510
|
function da({ focusedDay: e }) {
|
|
4510
|
-
const { settings: t } =
|
|
4511
|
-
return /* @__PURE__ */ m(
|
|
4511
|
+
const { settings: t } = J();
|
|
4512
|
+
return /* @__PURE__ */ m(H.Background, { children: /* @__PURE__ */ m("div", { className: "timelane-background", children: /* @__PURE__ */ X("div", { className: "timelane-background-inner", children: [
|
|
4512
4513
|
e && /* @__PURE__ */ m(
|
|
4513
4514
|
"div",
|
|
4514
4515
|
{
|
|
@@ -4536,7 +4537,7 @@ function da({ focusedDay: e }) {
|
|
|
4536
4537
|
{
|
|
4537
4538
|
className: `timelane-background-day-label ${Yt(r) ? "timelane-background-day-label-sunday" : ""} `,
|
|
4538
4539
|
style: { width: `${t.pixelsPerDay}px` },
|
|
4539
|
-
"data-day":
|
|
4540
|
+
"data-day": B(r, "yyyy-MM-dd")
|
|
4540
4541
|
},
|
|
4541
4542
|
n
|
|
4542
4543
|
))
|
|
@@ -4555,8 +4556,8 @@ function fa({
|
|
|
4555
4556
|
},
|
|
4556
4557
|
renderLaneHeader: u = ga
|
|
4557
4558
|
}) {
|
|
4558
|
-
const { settings: c } =
|
|
4559
|
-
return /* @__PURE__ */ m(
|
|
4559
|
+
const { settings: c } = J();
|
|
4560
|
+
return /* @__PURE__ */ m(H.Aside, { children: /* @__PURE__ */ m("div", { className: "timelane-aside", children: e && e.map((s) => /* @__PURE__ */ m(
|
|
4560
4561
|
ha,
|
|
4561
4562
|
{
|
|
4562
4563
|
height: c.pixelsPerLane,
|
|
@@ -4598,7 +4599,7 @@ function pa({
|
|
|
4598
4599
|
settings: e,
|
|
4599
4600
|
children: t
|
|
4600
4601
|
}) {
|
|
4601
|
-
const [r, n] =
|
|
4602
|
+
const [r, n] = Q(e);
|
|
4602
4603
|
return ne(() => {
|
|
4603
4604
|
n((i) => ({ ...i, ...e }));
|
|
4604
4605
|
}, [e]), /* @__PURE__ */ m(Kt.Provider, { value: { settings: r, setSettings: n }, children: t });
|
|
@@ -4616,24 +4617,24 @@ function oe({
|
|
|
4616
4617
|
enableItemDragging: o,
|
|
4617
4618
|
children: f
|
|
4618
4619
|
}) {
|
|
4619
|
-
const { settings:
|
|
4620
|
+
const { settings: d } = J();
|
|
4620
4621
|
return /* @__PURE__ */ m(
|
|
4621
4622
|
pa,
|
|
4622
4623
|
{
|
|
4623
4624
|
settings: {
|
|
4624
|
-
...
|
|
4625
|
-
start: e ||
|
|
4626
|
-
end: t ||
|
|
4627
|
-
pixelsPerDay: r ||
|
|
4628
|
-
pixelsPerLane: n ||
|
|
4629
|
-
showMonths: i !== void 0 ? i :
|
|
4630
|
-
showWeeks: a !== void 0 ? a :
|
|
4631
|
-
showDays: u !== void 0 ? u :
|
|
4632
|
-
allowOverlaps: c !== void 0 ? c :
|
|
4633
|
-
enableItemDragging: o !== void 0 ? o :
|
|
4634
|
-
enableItemResizing: s !== void 0 ? s :
|
|
4625
|
+
...d,
|
|
4626
|
+
start: e || d.start,
|
|
4627
|
+
end: t || d.end,
|
|
4628
|
+
pixelsPerDay: r || d.pixelsPerDay,
|
|
4629
|
+
pixelsPerLane: n || d.pixelsPerLane,
|
|
4630
|
+
showMonths: i !== void 0 ? i : d.showMonths,
|
|
4631
|
+
showWeeks: a !== void 0 ? a : d.showWeeks,
|
|
4632
|
+
showDays: u !== void 0 ? u : d.showDays,
|
|
4633
|
+
allowOverlaps: c !== void 0 ? c : d.allowOverlaps,
|
|
4634
|
+
enableItemDragging: o !== void 0 ? o : d.enableItemDragging,
|
|
4635
|
+
enableItemResizing: s !== void 0 ? s : d.enableItemResizing
|
|
4635
4636
|
},
|
|
4636
|
-
children: /* @__PURE__ */ m("div", { className: "timelane", children: /* @__PURE__ */ m(
|
|
4637
|
+
children: /* @__PURE__ */ m("div", { className: "timelane", children: /* @__PURE__ */ m(H, { children: f }) })
|
|
4637
4638
|
}
|
|
4638
4639
|
);
|
|
4639
4640
|
}
|
|
@@ -4642,11 +4643,11 @@ oe.Body = na;
|
|
|
4642
4643
|
oe.Background = da;
|
|
4643
4644
|
oe.Aside = fa;
|
|
4644
4645
|
oe.Lane = Ui;
|
|
4645
|
-
oe.Layout =
|
|
4646
|
+
oe.Layout = H;
|
|
4646
4647
|
const kt = 30;
|
|
4647
4648
|
function ba({
|
|
4648
4649
|
name: e,
|
|
4649
|
-
description: t,
|
|
4650
|
+
description: t = "",
|
|
4650
4651
|
isSelected: r = !1,
|
|
4651
4652
|
onClick: n = () => {
|
|
4652
4653
|
},
|
|
@@ -4659,7 +4660,7 @@ function ba({
|
|
|
4659
4660
|
const c = a.current.getBoundingClientRect().height;
|
|
4660
4661
|
c > 0 && c < kt && (u = c / kt);
|
|
4661
4662
|
}
|
|
4662
|
-
return /* @__PURE__ */
|
|
4663
|
+
return /* @__PURE__ */ X(
|
|
4663
4664
|
"div",
|
|
4664
4665
|
{
|
|
4665
4666
|
className: `timelane-allocation ${r ? "timelane-allocation-selected" : ""}`,
|
|
@@ -4688,7 +4689,7 @@ function ba({
|
|
|
4688
4689
|
);
|
|
4689
4690
|
}
|
|
4690
4691
|
const wa = () => {
|
|
4691
|
-
const { settings: e } =
|
|
4692
|
+
const { settings: e } = J();
|
|
4692
4693
|
function t(a) {
|
|
4693
4694
|
a instanceof Object ? (a.horz !== void 0 && r(a.horz), a.vert !== void 0 && n(a.vert)) : i(a);
|
|
4694
4695
|
}
|
|
@@ -4739,7 +4740,7 @@ export {
|
|
|
4739
4740
|
na as TimelaneBody,
|
|
4740
4741
|
la as TimelaneHeader,
|
|
4741
4742
|
Ui as TimelaneLane,
|
|
4742
|
-
|
|
4743
|
+
H as TimelaneLayout,
|
|
4743
4744
|
pa as TimelaneSettingsProvider,
|
|
4744
4745
|
ua as WeeksHeader,
|
|
4745
4746
|
Pt as isItem,
|
|
@@ -4747,5 +4748,5 @@ export {
|
|
|
4747
4748
|
ia as renderMonthHeader,
|
|
4748
4749
|
aa as renderWeekHeader,
|
|
4749
4750
|
wa as useScroll,
|
|
4750
|
-
|
|
4751
|
+
J as useTimelaneContext
|
|
4751
4752
|
};
|