@mdspl/mds-shared-ui 0.4.4 → 0.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +271 -58
- package/dist/index.cjs +3 -3
- package/dist/index.js +827 -827
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Menu as Oe, Checkbox as Ce, IconButton as _e, Portal as Qe, Table as
|
|
1
|
+
import re, { useLayoutEffect as po, useEffect as H, useRef as U, useMemo as B, useCallback as ue, useState as ie, createContext as vt, memo as vo, useReducer as mo, useContext as He, forwardRef as wn, createElement as hn } from "react";
|
|
2
|
+
import { Menu as Oe, Checkbox as Ce, IconButton as _e, Portal as Qe, Table as te, HStack as he, createListCollection as Dr, Select as K, Pagination as Nt, Box as Ee, Text as q, ButtonGroup as bo, Skeleton as xo, Popover as Wt, InputGroup as Cr, InputElement as Fn, PopoverArrow as yo, VStack as Ie, Kbd as Vn, Input as Sn, Field as We, Slider as mt, Drawer as Me, Tabs as Bt, Button as Ke, CloseButton as jr, Dialog as Ae, Stack as gn } from "@chakra-ui/react";
|
|
3
3
|
import { unstable_batchedUpdates as Ct, createPortal as wo } from "react-dom";
|
|
4
4
|
function Ut(e) {
|
|
5
5
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -14,8 +14,8 @@ function So() {
|
|
|
14
14
|
var a = null;
|
|
15
15
|
if (i !== void 0 && (a = "" + i), o.key !== void 0 && (a = "" + o.key), "key" in o) {
|
|
16
16
|
i = {};
|
|
17
|
-
for (var
|
|
18
|
-
|
|
17
|
+
for (var l in o)
|
|
18
|
+
l !== "key" && (i[l] = o[l]);
|
|
19
19
|
} else i = o;
|
|
20
20
|
return o = i.ref, {
|
|
21
21
|
$$typeof: e,
|
|
@@ -27,7 +27,7 @@ function So() {
|
|
|
27
27
|
}
|
|
28
28
|
return at.Fragment = t, at.jsx = n, at.jsxs = n, at;
|
|
29
29
|
}
|
|
30
|
-
var
|
|
30
|
+
var lt = {};
|
|
31
31
|
var Wn;
|
|
32
32
|
function Do() {
|
|
33
33
|
return Wn || (Wn = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
@@ -43,7 +43,7 @@ function Do() {
|
|
|
43
43
|
return "Profiler";
|
|
44
44
|
case w:
|
|
45
45
|
return "StrictMode";
|
|
46
|
-
case
|
|
46
|
+
case E:
|
|
47
47
|
return "Suspense";
|
|
48
48
|
case M:
|
|
49
49
|
return "SuspenseList";
|
|
@@ -63,7 +63,7 @@ function Do() {
|
|
|
63
63
|
case O:
|
|
64
64
|
var S = g.render;
|
|
65
65
|
return g = g.displayName, g || (g = S.displayName || S.name || "", g = g !== "" ? "ForwardRef(" + g + ")" : "ForwardRef"), g;
|
|
66
|
-
case
|
|
66
|
+
case A:
|
|
67
67
|
return S = g.displayName || null, S !== null ? S : e(g.type) || "Memo";
|
|
68
68
|
case W:
|
|
69
69
|
S = g._payload, g = g._init;
|
|
@@ -86,8 +86,8 @@ function Do() {
|
|
|
86
86
|
}
|
|
87
87
|
if (S) {
|
|
88
88
|
S = console;
|
|
89
|
-
var
|
|
90
|
-
return
|
|
89
|
+
var L = S.error, P = typeof Symbol == "function" && Symbol.toStringTag && g[Symbol.toStringTag] || g.constructor.name || "Object";
|
|
90
|
+
return L.call(
|
|
91
91
|
S,
|
|
92
92
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
93
93
|
P
|
|
@@ -113,41 +113,41 @@ function Do() {
|
|
|
113
113
|
return Error("react-stack-top-frame");
|
|
114
114
|
}
|
|
115
115
|
function a(g) {
|
|
116
|
-
if (
|
|
116
|
+
if (se.call(g, "key")) {
|
|
117
117
|
var S = Object.getOwnPropertyDescriptor(g, "key").get;
|
|
118
118
|
if (S && S.isReactWarning) return !1;
|
|
119
119
|
}
|
|
120
120
|
return g.key !== void 0;
|
|
121
121
|
}
|
|
122
|
-
function
|
|
123
|
-
function
|
|
122
|
+
function l(g, S) {
|
|
123
|
+
function L() {
|
|
124
124
|
y || (y = !0, console.error(
|
|
125
125
|
"%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)",
|
|
126
126
|
S
|
|
127
127
|
));
|
|
128
128
|
}
|
|
129
|
-
|
|
130
|
-
get:
|
|
129
|
+
L.isReactWarning = !0, Object.defineProperty(g, "key", {
|
|
130
|
+
get: L,
|
|
131
131
|
configurable: !0
|
|
132
132
|
});
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function c() {
|
|
135
135
|
var g = e(this.type);
|
|
136
|
-
return
|
|
136
|
+
return j[g] || (j[g] = !0, console.error(
|
|
137
137
|
"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."
|
|
138
138
|
)), g = this.props.ref, g !== void 0 ? g : null;
|
|
139
139
|
}
|
|
140
|
-
function u(g, S,
|
|
141
|
-
var F =
|
|
140
|
+
function u(g, S, L, P, G, X) {
|
|
141
|
+
var F = L.ref;
|
|
142
142
|
return g = {
|
|
143
143
|
$$typeof: v,
|
|
144
144
|
type: g,
|
|
145
145
|
key: S,
|
|
146
|
-
props:
|
|
146
|
+
props: L,
|
|
147
147
|
_owner: P
|
|
148
148
|
}, (F !== void 0 ? F : null) !== null ? Object.defineProperty(g, "ref", {
|
|
149
149
|
enumerable: !1,
|
|
150
|
-
get:
|
|
150
|
+
get: c
|
|
151
151
|
}) : Object.defineProperty(g, "ref", { enumerable: !1, value: null }), g._store = {}, Object.defineProperty(g._store, "validated", {
|
|
152
152
|
configurable: !1,
|
|
153
153
|
enumerable: !1,
|
|
@@ -170,7 +170,7 @@ function Do() {
|
|
|
170
170
|
value: X
|
|
171
171
|
}), Object.freeze && (Object.freeze(g.props), Object.freeze(g)), g;
|
|
172
172
|
}
|
|
173
|
-
function d(g, S,
|
|
173
|
+
function d(g, S, L, P, G, X) {
|
|
174
174
|
var F = S.children;
|
|
175
175
|
if (F !== void 0)
|
|
176
176
|
if (P)
|
|
@@ -183,12 +183,12 @@ function Do() {
|
|
|
183
183
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
184
184
|
);
|
|
185
185
|
else f(F);
|
|
186
|
-
if (
|
|
186
|
+
if (se.call(S, "key")) {
|
|
187
187
|
F = e(g);
|
|
188
188
|
var J = Object.keys(S).filter(function(z) {
|
|
189
189
|
return z !== "key";
|
|
190
190
|
});
|
|
191
|
-
P = 0 < J.length ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}",
|
|
191
|
+
P = 0 < J.length ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}", N[F + P] || (J = 0 < J.length ? "{" + J.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
192
192
|
`A props object containing a "key" prop is being spread into JSX:
|
|
193
193
|
let props = %s;
|
|
194
194
|
<%s {...props} />
|
|
@@ -199,20 +199,20 @@ React keys must be passed directly to JSX without using spread:
|
|
|
199
199
|
F,
|
|
200
200
|
J,
|
|
201
201
|
F
|
|
202
|
-
),
|
|
202
|
+
), N[F + P] = !0);
|
|
203
203
|
}
|
|
204
|
-
if (F = null,
|
|
205
|
-
|
|
204
|
+
if (F = null, L !== void 0 && (n(L), F = "" + L), a(S) && (n(S.key), F = "" + S.key), "key" in S) {
|
|
205
|
+
L = {};
|
|
206
206
|
for (var Z in S)
|
|
207
|
-
Z !== "key" && (
|
|
208
|
-
} else
|
|
209
|
-
return F &&
|
|
210
|
-
|
|
207
|
+
Z !== "key" && (L[Z] = S[Z]);
|
|
208
|
+
} else L = S;
|
|
209
|
+
return F && l(
|
|
210
|
+
L,
|
|
211
211
|
typeof g == "function" ? g.displayName || g.name || "Unknown" : g
|
|
212
212
|
), u(
|
|
213
213
|
g,
|
|
214
214
|
F,
|
|
215
|
-
|
|
215
|
+
L,
|
|
216
216
|
o(),
|
|
217
217
|
G,
|
|
218
218
|
X
|
|
@@ -224,7 +224,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
224
224
|
function b(g) {
|
|
225
225
|
return typeof g == "object" && g !== null && g.$$typeof === v;
|
|
226
226
|
}
|
|
227
|
-
var p =
|
|
227
|
+
var p = re, v = /* @__PURE__ */ Symbol.for("react.transitional.element"), h = /* @__PURE__ */ Symbol.for("react.portal"), m = /* @__PURE__ */ Symbol.for("react.fragment"), w = /* @__PURE__ */ Symbol.for("react.strict_mode"), _ = /* @__PURE__ */ Symbol.for("react.profiler"), R = /* @__PURE__ */ Symbol.for("react.consumer"), T = /* @__PURE__ */ Symbol.for("react.context"), O = /* @__PURE__ */ Symbol.for("react.forward_ref"), E = /* @__PURE__ */ Symbol.for("react.suspense"), M = /* @__PURE__ */ Symbol.for("react.suspense_list"), A = /* @__PURE__ */ Symbol.for("react.memo"), W = /* @__PURE__ */ Symbol.for("react.lazy"), Y = /* @__PURE__ */ Symbol.for("react.activity"), k = /* @__PURE__ */ Symbol.for("react.client.reference"), Q = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, se = Object.prototype.hasOwnProperty, $ = Array.isArray, D = console.createTask ? console.createTask : function() {
|
|
228
228
|
return null;
|
|
229
229
|
};
|
|
230
230
|
p = {
|
|
@@ -232,32 +232,32 @@ React keys must be passed directly to JSX without using spread:
|
|
|
232
232
|
return g();
|
|
233
233
|
}
|
|
234
234
|
};
|
|
235
|
-
var y,
|
|
235
|
+
var y, j = {}, C = p.react_stack_bottom_frame.bind(
|
|
236
236
|
p,
|
|
237
237
|
i
|
|
238
|
-
)(), I = D(r(i)),
|
|
239
|
-
|
|
238
|
+
)(), I = D(r(i)), N = {};
|
|
239
|
+
lt.Fragment = m, lt.jsx = function(g, S, L) {
|
|
240
240
|
var P = 1e4 > Q.recentlyCreatedOwnerStacks++;
|
|
241
241
|
return d(
|
|
242
242
|
g,
|
|
243
243
|
S,
|
|
244
|
-
|
|
244
|
+
L,
|
|
245
245
|
!1,
|
|
246
246
|
P ? Error("react-stack-top-frame") : C,
|
|
247
247
|
P ? D(r(g)) : I
|
|
248
248
|
);
|
|
249
|
-
},
|
|
249
|
+
}, lt.jsxs = function(g, S, L) {
|
|
250
250
|
var P = 1e4 > Q.recentlyCreatedOwnerStacks++;
|
|
251
251
|
return d(
|
|
252
252
|
g,
|
|
253
253
|
S,
|
|
254
|
-
|
|
254
|
+
L,
|
|
255
255
|
!0,
|
|
256
256
|
P ? Error("react-stack-top-frame") : C,
|
|
257
257
|
P ? D(r(g)) : I
|
|
258
258
|
);
|
|
259
259
|
};
|
|
260
|
-
})()),
|
|
260
|
+
})()), lt;
|
|
261
261
|
}
|
|
262
262
|
var Bn;
|
|
263
263
|
function Co() {
|
|
@@ -268,28 +268,28 @@ var Un;
|
|
|
268
268
|
function jo() {
|
|
269
269
|
if (Un) return nn;
|
|
270
270
|
Un = 1;
|
|
271
|
-
var e =
|
|
271
|
+
var e = re;
|
|
272
272
|
function t(f, b) {
|
|
273
273
|
return f === b && (f !== 0 || 1 / f === 1 / b) || f !== f && b !== b;
|
|
274
274
|
}
|
|
275
275
|
var n = typeof Object.is == "function" ? Object.is : t, r = e.useState, o = e.useEffect, i = e.useLayoutEffect, a = e.useDebugValue;
|
|
276
|
-
function
|
|
276
|
+
function l(f, b) {
|
|
277
277
|
var p = b(), v = r({ inst: { value: p, getSnapshot: b } }), h = v[0].inst, m = v[1];
|
|
278
278
|
return i(
|
|
279
279
|
function() {
|
|
280
|
-
h.value = p, h.getSnapshot = b,
|
|
280
|
+
h.value = p, h.getSnapshot = b, c(h) && m({ inst: h });
|
|
281
281
|
},
|
|
282
282
|
[f, p, b]
|
|
283
283
|
), o(
|
|
284
284
|
function() {
|
|
285
|
-
return
|
|
286
|
-
|
|
285
|
+
return c(h) && m({ inst: h }), f(function() {
|
|
286
|
+
c(h) && m({ inst: h });
|
|
287
287
|
});
|
|
288
288
|
},
|
|
289
289
|
[f]
|
|
290
290
|
), a(p), p;
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function c(f) {
|
|
293
293
|
var b = f.getSnapshot;
|
|
294
294
|
f = f.value;
|
|
295
295
|
try {
|
|
@@ -302,7 +302,7 @@ function jo() {
|
|
|
302
302
|
function u(f, b) {
|
|
303
303
|
return b();
|
|
304
304
|
}
|
|
305
|
-
var d = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? u :
|
|
305
|
+
var d = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? u : l;
|
|
306
306
|
return nn.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : d, nn;
|
|
307
307
|
}
|
|
308
308
|
var rn = {};
|
|
@@ -327,12 +327,12 @@ function Ro() {
|
|
|
327
327
|
inst: { value: h, getSnapshot: v }
|
|
328
328
|
});
|
|
329
329
|
var w = m[0].inst, _ = m[1];
|
|
330
|
-
return
|
|
330
|
+
return c(
|
|
331
331
|
function() {
|
|
332
332
|
w.value = h, w.getSnapshot = v, n(w) && _({ inst: w });
|
|
333
333
|
},
|
|
334
334
|
[p, h, v]
|
|
335
|
-
),
|
|
335
|
+
), l(
|
|
336
336
|
function() {
|
|
337
337
|
return n(w) && _({ inst: w }), p(function() {
|
|
338
338
|
n(w) && _({ inst: w });
|
|
@@ -355,7 +355,7 @@ function Ro() {
|
|
|
355
355
|
return v();
|
|
356
356
|
}
|
|
357
357
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
358
|
-
var o =
|
|
358
|
+
var o = re, i = typeof Object.is == "function" ? Object.is : e, a = o.useState, l = o.useEffect, c = o.useLayoutEffect, u = o.useDebugValue, d = !1, f = !1, b = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : t;
|
|
359
359
|
rn.useSyncExternalStore = o.useSyncExternalStore !== void 0 ? o.useSyncExternalStore : b, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
360
360
|
})()), rn;
|
|
361
361
|
}
|
|
@@ -367,31 +367,31 @@ var qn;
|
|
|
367
367
|
function Eo() {
|
|
368
368
|
if (qn) return tn;
|
|
369
369
|
qn = 1;
|
|
370
|
-
var e =
|
|
370
|
+
var e = re, t = Rr();
|
|
371
371
|
function n(u, d) {
|
|
372
372
|
return u === d && (u !== 0 || 1 / u === 1 / d) || u !== u && d !== d;
|
|
373
373
|
}
|
|
374
|
-
var r = typeof Object.is == "function" ? Object.is : n, o = t.useSyncExternalStore, i = e.useRef, a = e.useEffect,
|
|
374
|
+
var r = typeof Object.is == "function" ? Object.is : n, o = t.useSyncExternalStore, i = e.useRef, a = e.useEffect, l = e.useMemo, c = e.useDebugValue;
|
|
375
375
|
return tn.useSyncExternalStoreWithSelector = function(u, d, f, b, p) {
|
|
376
376
|
var v = i(null);
|
|
377
377
|
if (v.current === null) {
|
|
378
378
|
var h = { hasValue: !1, value: null };
|
|
379
379
|
v.current = h;
|
|
380
380
|
} else h = v.current;
|
|
381
|
-
v =
|
|
381
|
+
v = l(
|
|
382
382
|
function() {
|
|
383
|
-
function w(
|
|
383
|
+
function w(E) {
|
|
384
384
|
if (!_) {
|
|
385
|
-
if (_ = !0, R =
|
|
385
|
+
if (_ = !0, R = E, E = b(E), p !== void 0 && h.hasValue) {
|
|
386
386
|
var M = h.value;
|
|
387
|
-
if (p(M,
|
|
387
|
+
if (p(M, E))
|
|
388
388
|
return T = M;
|
|
389
389
|
}
|
|
390
|
-
return T =
|
|
390
|
+
return T = E;
|
|
391
391
|
}
|
|
392
|
-
if (M = T, r(R,
|
|
393
|
-
var
|
|
394
|
-
return p !== void 0 && p(M,
|
|
392
|
+
if (M = T, r(R, E)) return M;
|
|
393
|
+
var A = b(E);
|
|
394
|
+
return p !== void 0 && p(M, A) ? (R = E, M) : (R = E, T = A);
|
|
395
395
|
}
|
|
396
396
|
var _ = !1, R, T, O = f === void 0 ? null : f;
|
|
397
397
|
return [
|
|
@@ -411,7 +411,7 @@ function Eo() {
|
|
|
411
411
|
h.hasValue = !0, h.value = m;
|
|
412
412
|
},
|
|
413
413
|
[m]
|
|
414
|
-
),
|
|
414
|
+
), c(m), m;
|
|
415
415
|
}, tn;
|
|
416
416
|
}
|
|
417
417
|
var on = {};
|
|
@@ -422,28 +422,28 @@ function _o() {
|
|
|
422
422
|
return u === d && (u !== 0 || 1 / u === 1 / d) || u !== u && d !== d;
|
|
423
423
|
}
|
|
424
424
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
425
|
-
var t =
|
|
425
|
+
var t = re, n = Rr(), r = typeof Object.is == "function" ? Object.is : e, o = n.useSyncExternalStore, i = t.useRef, a = t.useEffect, l = t.useMemo, c = t.useDebugValue;
|
|
426
426
|
on.useSyncExternalStoreWithSelector = function(u, d, f, b, p) {
|
|
427
427
|
var v = i(null);
|
|
428
428
|
if (v.current === null) {
|
|
429
429
|
var h = { hasValue: !1, value: null };
|
|
430
430
|
v.current = h;
|
|
431
431
|
} else h = v.current;
|
|
432
|
-
v =
|
|
432
|
+
v = l(
|
|
433
433
|
function() {
|
|
434
|
-
function w(
|
|
434
|
+
function w(E) {
|
|
435
435
|
if (!_) {
|
|
436
|
-
if (_ = !0, R =
|
|
436
|
+
if (_ = !0, R = E, E = b(E), p !== void 0 && h.hasValue) {
|
|
437
437
|
var M = h.value;
|
|
438
|
-
if (p(M,
|
|
438
|
+
if (p(M, E))
|
|
439
439
|
return T = M;
|
|
440
440
|
}
|
|
441
|
-
return T =
|
|
441
|
+
return T = E;
|
|
442
442
|
}
|
|
443
|
-
if (M = T, r(R,
|
|
443
|
+
if (M = T, r(R, E))
|
|
444
444
|
return M;
|
|
445
|
-
var
|
|
446
|
-
return p !== void 0 && p(M,
|
|
445
|
+
var A = b(E);
|
|
446
|
+
return p !== void 0 && p(M, A) ? (R = E, M) : (R = E, T = A);
|
|
447
447
|
}
|
|
448
448
|
var _ = !1, R, T, O = f === void 0 ? null : f;
|
|
449
449
|
return [
|
|
@@ -463,7 +463,7 @@ function _o() {
|
|
|
463
463
|
h.hasValue = !0, h.value = m;
|
|
464
464
|
},
|
|
465
465
|
[m]
|
|
466
|
-
),
|
|
466
|
+
), c(m), m;
|
|
467
467
|
}, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
468
468
|
})()), on;
|
|
469
469
|
}
|
|
@@ -592,7 +592,7 @@ function Qn(e) {
|
|
|
592
592
|
Object.getOwnPropertySymbols(e)
|
|
593
593
|
);
|
|
594
594
|
}
|
|
595
|
-
const
|
|
595
|
+
const ge = new _r({
|
|
596
596
|
tableId: "",
|
|
597
597
|
sortColumn: null,
|
|
598
598
|
sortDirection: "asc",
|
|
@@ -611,18 +611,18 @@ const he = new _r({
|
|
|
611
611
|
function No(e, t) {
|
|
612
612
|
const n = e[0] ?? {}, o = (t && t.length ? t : Object.keys(n).map((d) => ({ id: d, label: d }))).filter(
|
|
613
613
|
(d) => Object.prototype.hasOwnProperty.call(n, d.id)
|
|
614
|
-
), { tableId: i, visibility: a } =
|
|
614
|
+
), { tableId: i, visibility: a } = ge.state, l = JSON.parse(
|
|
615
615
|
localStorage.getItem(Tr(i)) || "[]"
|
|
616
|
-
),
|
|
617
|
-
...
|
|
618
|
-
...o.filter((d) => !
|
|
619
|
-
], u =
|
|
620
|
-
|
|
616
|
+
), c = [
|
|
617
|
+
...l.map((d) => o.find((f) => f.id === d)).filter(Boolean),
|
|
618
|
+
...o.filter((d) => !l.includes(d.id))
|
|
619
|
+
], u = c.reduce((d, f) => (d[f.id] = a[f.id] ?? !0, d), {});
|
|
620
|
+
ge.setState((d) => ({
|
|
621
621
|
...d,
|
|
622
622
|
data: e,
|
|
623
|
-
columnOrder:
|
|
623
|
+
columnOrder: c,
|
|
624
624
|
visibility: u,
|
|
625
|
-
sortableColumns:
|
|
625
|
+
sortableColumns: c.map((f) => ({
|
|
626
626
|
id: f.id,
|
|
627
627
|
label: f.label,
|
|
628
628
|
sortable: !0,
|
|
@@ -631,25 +631,25 @@ function No(e, t) {
|
|
|
631
631
|
}));
|
|
632
632
|
}
|
|
633
633
|
function zo(e) {
|
|
634
|
-
|
|
634
|
+
ge.setState((t) => ({
|
|
635
635
|
...t,
|
|
636
636
|
tableId: e
|
|
637
637
|
}));
|
|
638
638
|
}
|
|
639
639
|
const Po = (e) => {
|
|
640
|
-
|
|
640
|
+
ge.setState((t) => ({
|
|
641
641
|
...t,
|
|
642
642
|
actionsConfig: e
|
|
643
643
|
}));
|
|
644
644
|
}, Tr = (e) => `table_column_order_v1:${e}`, Or = (e) => `table_column_visibility_v1:${e}`, Yo = (e) => {
|
|
645
|
-
const { tableId: t } =
|
|
646
|
-
localStorage.setItem(Tr(t), JSON.stringify(e.map((n) => n.id))),
|
|
645
|
+
const { tableId: t } = ge.state;
|
|
646
|
+
localStorage.setItem(Tr(t), JSON.stringify(e.map((n) => n.id))), ge.setState((n) => ({
|
|
647
647
|
...n,
|
|
648
648
|
columnOrder: e
|
|
649
|
-
})),
|
|
649
|
+
})), ge.setState((n) => ({ ...n, columnOrder: e }));
|
|
650
650
|
};
|
|
651
651
|
function Fo(e) {
|
|
652
|
-
|
|
652
|
+
ge.setState((t) => t.sortColumn === e ? {
|
|
653
653
|
...t,
|
|
654
654
|
sortDirection: t.sortDirection === "asc" ? "desc" : "asc"
|
|
655
655
|
} : {
|
|
@@ -659,7 +659,7 @@ function Fo(e) {
|
|
|
659
659
|
});
|
|
660
660
|
}
|
|
661
661
|
const Vo = (e) => {
|
|
662
|
-
|
|
662
|
+
ge.setState((t) => {
|
|
663
663
|
const n = {
|
|
664
664
|
...t.visibility,
|
|
665
665
|
[e]: !t.visibility[e]
|
|
@@ -675,7 +675,7 @@ const Vo = (e) => {
|
|
|
675
675
|
if (t)
|
|
676
676
|
try {
|
|
677
677
|
const n = JSON.parse(t);
|
|
678
|
-
|
|
678
|
+
ge.setState((r) => ({
|
|
679
679
|
...r,
|
|
680
680
|
visibility: n
|
|
681
681
|
}));
|
|
@@ -702,21 +702,21 @@ function et(e) {
|
|
|
702
702
|
function Dn(e) {
|
|
703
703
|
return "nodeType" in e;
|
|
704
704
|
}
|
|
705
|
-
function
|
|
705
|
+
function pe(e) {
|
|
706
706
|
var t, n;
|
|
707
707
|
return e ? et(e) ? e : Dn(e) && (t = (n = e.ownerDocument) == null ? void 0 : n.defaultView) != null ? t : window : window;
|
|
708
708
|
}
|
|
709
709
|
function Cn(e) {
|
|
710
710
|
const {
|
|
711
711
|
Document: t
|
|
712
|
-
} =
|
|
712
|
+
} = pe(e);
|
|
713
713
|
return e instanceof t;
|
|
714
714
|
}
|
|
715
715
|
function xt(e) {
|
|
716
|
-
return et(e) ? !1 : e instanceof
|
|
716
|
+
return et(e) ? !1 : e instanceof pe(e).HTMLElement;
|
|
717
717
|
}
|
|
718
718
|
function Mr(e) {
|
|
719
|
-
return e instanceof
|
|
719
|
+
return e instanceof pe(e).SVGElement;
|
|
720
720
|
}
|
|
721
721
|
function tt(e) {
|
|
722
722
|
return e ? et(e) ? e.document : Dn(e) ? Cn(e) ? e : xt(e) || Mr(e) ? e.ownerDocument : document : document : document;
|
|
@@ -726,16 +726,16 @@ function jn(e) {
|
|
|
726
726
|
const t = U(e);
|
|
727
727
|
return Te(() => {
|
|
728
728
|
t.current = e;
|
|
729
|
-
}),
|
|
729
|
+
}), ue(function() {
|
|
730
730
|
for (var n = arguments.length, r = new Array(n), o = 0; o < n; o++)
|
|
731
731
|
r[o] = arguments[o];
|
|
732
732
|
return t.current == null ? void 0 : t.current(...r);
|
|
733
733
|
}, []);
|
|
734
734
|
}
|
|
735
735
|
function Bo() {
|
|
736
|
-
const e = U(null), t =
|
|
736
|
+
const e = U(null), t = ue((r, o) => {
|
|
737
737
|
e.current = setInterval(r, o);
|
|
738
|
-
}, []), n =
|
|
738
|
+
}, []), n = ue(() => {
|
|
739
739
|
e.current !== null && (clearInterval(e.current), e.current = null);
|
|
740
740
|
}, []);
|
|
741
741
|
return [t, n];
|
|
@@ -759,7 +759,7 @@ function yt(e, t) {
|
|
|
759
759
|
);
|
|
760
760
|
}
|
|
761
761
|
function Pt(e) {
|
|
762
|
-
const t = jn(e), n = U(null), r =
|
|
762
|
+
const t = jn(e), n = U(null), r = ue(
|
|
763
763
|
(o) => {
|
|
764
764
|
o !== n.current && t?.(o, n.current), n.current = o;
|
|
765
765
|
},
|
|
@@ -788,10 +788,10 @@ function $r(e) {
|
|
|
788
788
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
|
|
789
789
|
r[o - 1] = arguments[o];
|
|
790
790
|
return r.reduce((i, a) => {
|
|
791
|
-
const
|
|
792
|
-
for (const [
|
|
793
|
-
const d = i[
|
|
794
|
-
d != null && (i[
|
|
791
|
+
const l = Object.entries(a);
|
|
792
|
+
for (const [c, u] of l) {
|
|
793
|
+
const d = i[c];
|
|
794
|
+
d != null && (i[c] = d + e * u);
|
|
795
795
|
}
|
|
796
796
|
return i;
|
|
797
797
|
}, {
|
|
@@ -808,7 +808,7 @@ function Rn(e) {
|
|
|
808
808
|
return !1;
|
|
809
809
|
const {
|
|
810
810
|
KeyboardEvent: t
|
|
811
|
-
} =
|
|
811
|
+
} = pe(e.target);
|
|
812
812
|
return t && e instanceof t;
|
|
813
813
|
}
|
|
814
814
|
function Go(e) {
|
|
@@ -816,7 +816,7 @@ function Go(e) {
|
|
|
816
816
|
return !1;
|
|
817
817
|
const {
|
|
818
818
|
TouchEvent: t
|
|
819
|
-
} =
|
|
819
|
+
} = pe(e.target);
|
|
820
820
|
return t && e instanceof t;
|
|
821
821
|
}
|
|
822
822
|
function mn(e) {
|
|
@@ -897,7 +897,7 @@ function Ko(e) {
|
|
|
897
897
|
id: t,
|
|
898
898
|
value: n
|
|
899
899
|
} = e;
|
|
900
|
-
return
|
|
900
|
+
return re.createElement("div", {
|
|
901
901
|
id: t,
|
|
902
902
|
style: qo
|
|
903
903
|
}, n);
|
|
@@ -922,7 +922,7 @@ function Jo(e) {
|
|
|
922
922
|
clipPath: "inset(100%)",
|
|
923
923
|
whiteSpace: "nowrap"
|
|
924
924
|
};
|
|
925
|
-
return
|
|
925
|
+
return re.createElement("div", {
|
|
926
926
|
id: t,
|
|
927
927
|
style: o,
|
|
928
928
|
role: "status",
|
|
@@ -931,9 +931,9 @@ function Jo(e) {
|
|
|
931
931
|
}, n);
|
|
932
932
|
}
|
|
933
933
|
function Zo() {
|
|
934
|
-
const [e, t] =
|
|
934
|
+
const [e, t] = ie("");
|
|
935
935
|
return {
|
|
936
|
-
announce:
|
|
936
|
+
announce: ue((r) => {
|
|
937
937
|
r != null && t(r);
|
|
938
938
|
}, []),
|
|
939
939
|
announcement: e
|
|
@@ -949,15 +949,15 @@ function Qo(e) {
|
|
|
949
949
|
}, [e, t]);
|
|
950
950
|
}
|
|
951
951
|
function ei() {
|
|
952
|
-
const [e] =
|
|
953
|
-
return [
|
|
952
|
+
const [e] = ie(() => /* @__PURE__ */ new Set()), t = ue((r) => (e.add(r), () => e.delete(r)), [e]);
|
|
953
|
+
return [ue((r) => {
|
|
954
954
|
let {
|
|
955
955
|
type: o,
|
|
956
956
|
event: i
|
|
957
957
|
} = r;
|
|
958
958
|
e.forEach((a) => {
|
|
959
|
-
var
|
|
960
|
-
return (
|
|
959
|
+
var l;
|
|
960
|
+
return (l = a[o]) == null ? void 0 : l.call(a, i);
|
|
961
961
|
});
|
|
962
962
|
}, [e]), t];
|
|
963
963
|
}
|
|
@@ -1005,7 +1005,7 @@ function ri(e) {
|
|
|
1005
1005
|
const {
|
|
1006
1006
|
announce: i,
|
|
1007
1007
|
announcement: a
|
|
1008
|
-
} = Zo(),
|
|
1008
|
+
} = Zo(), l = wt("DndLiveRegion"), [c, u] = ie(!1);
|
|
1009
1009
|
if (H(() => {
|
|
1010
1010
|
u(!0);
|
|
1011
1011
|
}, []), Qo(B(() => ({
|
|
@@ -1057,21 +1057,21 @@ function ri(e) {
|
|
|
1057
1057
|
over: p
|
|
1058
1058
|
}));
|
|
1059
1059
|
}
|
|
1060
|
-
}), [i, t])), !
|
|
1060
|
+
}), [i, t])), !c)
|
|
1061
1061
|
return null;
|
|
1062
|
-
const d =
|
|
1062
|
+
const d = re.createElement(re.Fragment, null, re.createElement(Ko, {
|
|
1063
1063
|
id: r,
|
|
1064
1064
|
value: o.draggable
|
|
1065
|
-
}),
|
|
1066
|
-
id:
|
|
1065
|
+
}), re.createElement(Jo, {
|
|
1066
|
+
id: l,
|
|
1067
1067
|
announcement: a
|
|
1068
1068
|
}));
|
|
1069
1069
|
return n ? wo(d, n) : d;
|
|
1070
1070
|
}
|
|
1071
|
-
var
|
|
1071
|
+
var ne;
|
|
1072
1072
|
(function(e) {
|
|
1073
1073
|
e.DragStart = "dragStart", e.DragMove = "dragMove", e.DragEnd = "dragEnd", e.DragCancel = "dragCancel", e.DragOver = "dragOver", e.RegisterDroppable = "registerDroppable", e.SetDroppableDisabled = "setDroppableDisabled", e.UnregisterDroppable = "unregisterDroppable";
|
|
1074
|
-
})(
|
|
1074
|
+
})(ne || (ne = {}));
|
|
1075
1075
|
function Ft() {
|
|
1076
1076
|
}
|
|
1077
1077
|
function oi(e, t) {
|
|
@@ -1112,7 +1112,7 @@ function ai(e, t) {
|
|
|
1112
1112
|
} = t;
|
|
1113
1113
|
return n - r;
|
|
1114
1114
|
}
|
|
1115
|
-
function
|
|
1115
|
+
function li(e, t) {
|
|
1116
1116
|
let {
|
|
1117
1117
|
data: {
|
|
1118
1118
|
value: n
|
|
@@ -1124,7 +1124,7 @@ function ci(e, t) {
|
|
|
1124
1124
|
} = t;
|
|
1125
1125
|
return r - n;
|
|
1126
1126
|
}
|
|
1127
|
-
function
|
|
1127
|
+
function ci(e, t) {
|
|
1128
1128
|
if (!e || e.length === 0)
|
|
1129
1129
|
return null;
|
|
1130
1130
|
const [n] = e;
|
|
@@ -1145,12 +1145,12 @@ const Ir = (e) => {
|
|
|
1145
1145
|
const o = tr(t, t.left, t.top), i = [];
|
|
1146
1146
|
for (const a of r) {
|
|
1147
1147
|
const {
|
|
1148
|
-
id:
|
|
1149
|
-
} = a,
|
|
1150
|
-
if (
|
|
1151
|
-
const u = si(tr(
|
|
1148
|
+
id: l
|
|
1149
|
+
} = a, c = n.get(l);
|
|
1150
|
+
if (c) {
|
|
1151
|
+
const u = si(tr(c), o);
|
|
1152
1152
|
i.push({
|
|
1153
|
-
id:
|
|
1153
|
+
id: l,
|
|
1154
1154
|
data: {
|
|
1155
1155
|
droppableContainer: a,
|
|
1156
1156
|
value: u
|
|
@@ -1161,9 +1161,9 @@ const Ir = (e) => {
|
|
|
1161
1161
|
return i.sort(ai);
|
|
1162
1162
|
};
|
|
1163
1163
|
function ui(e, t) {
|
|
1164
|
-
const n = Math.max(t.top, e.top), r = Math.max(t.left, e.left), o = Math.min(t.left + t.width, e.left + e.width), i = Math.min(t.top + t.height, e.top + e.height), a = o - r,
|
|
1164
|
+
const n = Math.max(t.top, e.top), r = Math.max(t.left, e.left), o = Math.min(t.left + t.width, e.left + e.width), i = Math.min(t.top + t.height, e.top + e.height), a = o - r, l = i - n;
|
|
1165
1165
|
if (r < o && n < i) {
|
|
1166
|
-
const
|
|
1166
|
+
const c = t.width * t.height, u = e.width * e.height, d = a * l, f = d / (c + u - d);
|
|
1167
1167
|
return Number(f.toFixed(4));
|
|
1168
1168
|
}
|
|
1169
1169
|
return 0;
|
|
@@ -1178,19 +1178,19 @@ const di = (e) => {
|
|
|
1178
1178
|
for (const i of r) {
|
|
1179
1179
|
const {
|
|
1180
1180
|
id: a
|
|
1181
|
-
} = i,
|
|
1182
|
-
if (
|
|
1183
|
-
const
|
|
1184
|
-
|
|
1181
|
+
} = i, l = n.get(a);
|
|
1182
|
+
if (l) {
|
|
1183
|
+
const c = ui(l, t);
|
|
1184
|
+
c > 0 && o.push({
|
|
1185
1185
|
id: a,
|
|
1186
1186
|
data: {
|
|
1187
1187
|
droppableContainer: i,
|
|
1188
|
-
value:
|
|
1188
|
+
value: c
|
|
1189
1189
|
}
|
|
1190
1190
|
});
|
|
1191
1191
|
}
|
|
1192
1192
|
}
|
|
1193
|
-
return o.sort(
|
|
1193
|
+
return o.sort(li);
|
|
1194
1194
|
};
|
|
1195
1195
|
function fi(e, t, n) {
|
|
1196
1196
|
return {
|
|
@@ -1209,12 +1209,12 @@ function hi(e) {
|
|
|
1209
1209
|
return function(n) {
|
|
1210
1210
|
for (var r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
|
|
1211
1211
|
o[i - 1] = arguments[i];
|
|
1212
|
-
return o.reduce((a,
|
|
1212
|
+
return o.reduce((a, l) => ({
|
|
1213
1213
|
...a,
|
|
1214
|
-
top: a.top + e *
|
|
1215
|
-
bottom: a.bottom + e *
|
|
1216
|
-
left: a.left + e *
|
|
1217
|
-
right: a.right + e *
|
|
1214
|
+
top: a.top + e * l.y,
|
|
1215
|
+
bottom: a.bottom + e * l.y,
|
|
1216
|
+
left: a.left + e * l.x,
|
|
1217
|
+
right: a.right + e * l.x
|
|
1218
1218
|
}), {
|
|
1219
1219
|
...n
|
|
1220
1220
|
});
|
|
@@ -1249,15 +1249,15 @@ function vi(e, t, n) {
|
|
|
1249
1249
|
scaleX: o,
|
|
1250
1250
|
scaleY: i,
|
|
1251
1251
|
x: a,
|
|
1252
|
-
y:
|
|
1253
|
-
} = r,
|
|
1252
|
+
y: l
|
|
1253
|
+
} = r, c = e.left - a - (1 - o) * parseFloat(n), u = e.top - l - (1 - i) * parseFloat(n.slice(n.indexOf(" ") + 1)), d = o ? e.width / o : e.width, f = i ? e.height / i : e.height;
|
|
1254
1254
|
return {
|
|
1255
1255
|
width: d,
|
|
1256
1256
|
height: f,
|
|
1257
1257
|
top: u,
|
|
1258
|
-
right:
|
|
1258
|
+
right: c + d,
|
|
1259
1259
|
bottom: u + f,
|
|
1260
|
-
left:
|
|
1260
|
+
left: c
|
|
1261
1261
|
};
|
|
1262
1262
|
}
|
|
1263
1263
|
const mi = {
|
|
@@ -1270,7 +1270,7 @@ function nt(e, t) {
|
|
|
1270
1270
|
const {
|
|
1271
1271
|
transform: u,
|
|
1272
1272
|
transformOrigin: d
|
|
1273
|
-
} =
|
|
1273
|
+
} = pe(e).getComputedStyle(e);
|
|
1274
1274
|
u && (n = vi(n, u, d));
|
|
1275
1275
|
}
|
|
1276
1276
|
const {
|
|
@@ -1278,16 +1278,16 @@ function nt(e, t) {
|
|
|
1278
1278
|
left: o,
|
|
1279
1279
|
width: i,
|
|
1280
1280
|
height: a,
|
|
1281
|
-
bottom:
|
|
1282
|
-
right:
|
|
1281
|
+
bottom: l,
|
|
1282
|
+
right: c
|
|
1283
1283
|
} = n;
|
|
1284
1284
|
return {
|
|
1285
1285
|
top: r,
|
|
1286
1286
|
left: o,
|
|
1287
1287
|
width: i,
|
|
1288
1288
|
height: a,
|
|
1289
|
-
bottom:
|
|
1290
|
-
right:
|
|
1289
|
+
bottom: l,
|
|
1290
|
+
right: c
|
|
1291
1291
|
};
|
|
1292
1292
|
}
|
|
1293
1293
|
function nr(e) {
|
|
@@ -1307,10 +1307,10 @@ function bi(e) {
|
|
|
1307
1307
|
};
|
|
1308
1308
|
}
|
|
1309
1309
|
function xi(e, t) {
|
|
1310
|
-
return t === void 0 && (t =
|
|
1310
|
+
return t === void 0 && (t = pe(e).getComputedStyle(e)), t.position === "fixed";
|
|
1311
1311
|
}
|
|
1312
1312
|
function yi(e, t) {
|
|
1313
|
-
t === void 0 && (t =
|
|
1313
|
+
t === void 0 && (t = pe(e).getComputedStyle(e));
|
|
1314
1314
|
const n = /(auto|scroll|overlay)/;
|
|
1315
1315
|
return ["overflow", "overflowX", "overflowY"].some((o) => {
|
|
1316
1316
|
const i = t[o];
|
|
@@ -1326,7 +1326,7 @@ function En(e, t) {
|
|
|
1326
1326
|
return n.push(o.scrollingElement), n;
|
|
1327
1327
|
if (!xt(o) || Mr(o) || n.includes(o))
|
|
1328
1328
|
return n;
|
|
1329
|
-
const i =
|
|
1329
|
+
const i = pe(e).getComputedStyle(o);
|
|
1330
1330
|
return o !== e && yi(o, i) && n.push(o), xi(o, i) ? n : r(o.parentNode);
|
|
1331
1331
|
}
|
|
1332
1332
|
return e ? r(e) : n;
|
|
@@ -1335,7 +1335,7 @@ function Lr(e) {
|
|
|
1335
1335
|
const [t] = En(e, 1);
|
|
1336
1336
|
return t ?? null;
|
|
1337
1337
|
}
|
|
1338
|
-
function
|
|
1338
|
+
function ln(e) {
|
|
1339
1339
|
return !Gt || !e ? null : et(e) ? e : Dn(e) ? Cn(e) || e === tt(e).scrollingElement ? window : xt(e) ? e : null : null;
|
|
1340
1340
|
}
|
|
1341
1341
|
function Nr(e) {
|
|
@@ -1350,10 +1350,10 @@ function bn(e) {
|
|
|
1350
1350
|
y: zr(e)
|
|
1351
1351
|
};
|
|
1352
1352
|
}
|
|
1353
|
-
var
|
|
1353
|
+
var oe;
|
|
1354
1354
|
(function(e) {
|
|
1355
1355
|
e[e.Forward = 1] = "Forward", e[e.Backward = -1] = "Backward";
|
|
1356
|
-
})(
|
|
1356
|
+
})(oe || (oe = {}));
|
|
1357
1357
|
function Pr(e) {
|
|
1358
1358
|
return !Gt || !e ? !1 : e === document.scrollingElement;
|
|
1359
1359
|
}
|
|
@@ -1370,12 +1370,12 @@ function Yr(e) {
|
|
|
1370
1370
|
}, r = {
|
|
1371
1371
|
x: e.scrollWidth - n.width,
|
|
1372
1372
|
y: e.scrollHeight - n.height
|
|
1373
|
-
}, o = e.scrollTop <= t.y, i = e.scrollLeft <= t.x, a = e.scrollTop >= r.y,
|
|
1373
|
+
}, o = e.scrollTop <= t.y, i = e.scrollLeft <= t.x, a = e.scrollTop >= r.y, l = e.scrollLeft >= r.x;
|
|
1374
1374
|
return {
|
|
1375
1375
|
isTop: o,
|
|
1376
1376
|
isLeft: i,
|
|
1377
1377
|
isBottom: a,
|
|
1378
|
-
isRight:
|
|
1378
|
+
isRight: l,
|
|
1379
1379
|
maxScroll: r,
|
|
1380
1380
|
minScroll: t
|
|
1381
1381
|
};
|
|
@@ -1388,8 +1388,8 @@ function Si(e, t, n, r, o) {
|
|
|
1388
1388
|
let {
|
|
1389
1389
|
top: i,
|
|
1390
1390
|
left: a,
|
|
1391
|
-
right:
|
|
1392
|
-
bottom:
|
|
1391
|
+
right: l,
|
|
1392
|
+
bottom: c
|
|
1393
1393
|
} = n;
|
|
1394
1394
|
r === void 0 && (r = 10), o === void 0 && (o = wi);
|
|
1395
1395
|
const {
|
|
@@ -1407,7 +1407,7 @@ function Si(e, t, n, r, o) {
|
|
|
1407
1407
|
height: t.height * o.y,
|
|
1408
1408
|
width: t.width * o.x
|
|
1409
1409
|
};
|
|
1410
|
-
return !u && i <= t.top + h.height ? (p.y =
|
|
1410
|
+
return !u && i <= t.top + h.height ? (p.y = oe.Backward, v.y = r * Math.abs((t.top + h.height - i) / h.height)) : !d && c >= t.bottom - h.height && (p.y = oe.Forward, v.y = r * Math.abs((t.bottom - h.height - c) / h.height)), !b && l >= t.right - h.width ? (p.x = oe.Forward, v.x = r * Math.abs((t.right - h.width - l) / h.width)) : !f && a <= t.left + h.width && (p.x = oe.Backward, v.x = r * Math.abs((t.left + h.width - a) / h.width)), {
|
|
1411
1411
|
direction: p,
|
|
1412
1412
|
speed: v
|
|
1413
1413
|
};
|
|
@@ -1473,12 +1473,12 @@ class _n {
|
|
|
1473
1473
|
this.rect = {
|
|
1474
1474
|
...t
|
|
1475
1475
|
}, this.width = t.width, this.height = t.height;
|
|
1476
|
-
for (const [i, a,
|
|
1477
|
-
for (const
|
|
1478
|
-
Object.defineProperty(this,
|
|
1476
|
+
for (const [i, a, l] of Ei)
|
|
1477
|
+
for (const c of a)
|
|
1478
|
+
Object.defineProperty(this, c, {
|
|
1479
1479
|
get: () => {
|
|
1480
|
-
const u =
|
|
1481
|
-
return this.rect[
|
|
1480
|
+
const u = l(r), d = o[i] - u;
|
|
1481
|
+
return this.rect[c] + d;
|
|
1482
1482
|
},
|
|
1483
1483
|
enumerable: !0
|
|
1484
1484
|
});
|
|
@@ -1504,10 +1504,10 @@ class dt {
|
|
|
1504
1504
|
function _i(e) {
|
|
1505
1505
|
const {
|
|
1506
1506
|
EventTarget: t
|
|
1507
|
-
} =
|
|
1507
|
+
} = pe(e);
|
|
1508
1508
|
return e instanceof t ? e : tt(e);
|
|
1509
1509
|
}
|
|
1510
|
-
function
|
|
1510
|
+
function cn(e, t) {
|
|
1511
1511
|
const n = Math.abs(e.x), r = Math.abs(e.y);
|
|
1512
1512
|
return typeof t == "number" ? Math.sqrt(n ** 2 + r ** 2) > t : "x" in t && "y" in t ? n > t.x && r > t.y : "x" in t ? n > t.x : "y" in t ? r > t.y : !1;
|
|
1513
1513
|
}
|
|
@@ -1564,7 +1564,7 @@ class Hr {
|
|
|
1564
1564
|
target: n
|
|
1565
1565
|
}
|
|
1566
1566
|
} = t;
|
|
1567
|
-
this.props = t, this.listeners = new dt(tt(n)), this.windowListeners = new dt(
|
|
1567
|
+
this.props = t, this.listeners = new dt(tt(n)), this.windowListeners = new dt(pe(n)), this.handleKeyDown = this.handleKeyDown.bind(this), this.handleCancel = this.handleCancel.bind(this), this.attach();
|
|
1568
1568
|
}
|
|
1569
1569
|
attach() {
|
|
1570
1570
|
this.handleStart(), this.windowListeners.add(ye.Resize, this.handleCancel), this.windowListeners.add(ye.VisibilityChange, this.handleCancel), setTimeout(() => this.listeners.add(ye.Keydown, this.handleKeyDown));
|
|
@@ -1585,15 +1585,15 @@ class Hr {
|
|
|
1585
1585
|
} = this.props, {
|
|
1586
1586
|
keyboardCodes: i = Vr,
|
|
1587
1587
|
coordinateGetter: a = Oi,
|
|
1588
|
-
scrollBehavior:
|
|
1588
|
+
scrollBehavior: l = "smooth"
|
|
1589
1589
|
} = o, {
|
|
1590
|
-
code:
|
|
1590
|
+
code: c
|
|
1591
1591
|
} = t;
|
|
1592
|
-
if (i.end.includes(
|
|
1592
|
+
if (i.end.includes(c)) {
|
|
1593
1593
|
this.handleEnd(t);
|
|
1594
1594
|
return;
|
|
1595
1595
|
}
|
|
1596
|
-
if (i.cancel.includes(
|
|
1596
|
+
if (i.cancel.includes(c)) {
|
|
1597
1597
|
this.handleCancel(t);
|
|
1598
1598
|
return;
|
|
1599
1599
|
}
|
|
@@ -1623,37 +1623,37 @@ class Hr {
|
|
|
1623
1623
|
isLeft: R,
|
|
1624
1624
|
isBottom: T,
|
|
1625
1625
|
maxScroll: O,
|
|
1626
|
-
minScroll:
|
|
1627
|
-
} = Yr(h), M = Di(h),
|
|
1626
|
+
minScroll: E
|
|
1627
|
+
} = Yr(h), M = Di(h), A = {
|
|
1628
1628
|
x: Math.min(m === V.Right ? M.right - M.width / 2 : M.right, Math.max(m === V.Right ? M.left : M.left + M.width / 2, f.x)),
|
|
1629
1629
|
y: Math.min(m === V.Down ? M.bottom - M.height / 2 : M.bottom, Math.max(m === V.Down ? M.top : M.top + M.height / 2, f.y))
|
|
1630
1630
|
}, W = m === V.Right && !_ || m === V.Left && !R, Y = m === V.Down && !T || m === V.Up && !w;
|
|
1631
|
-
if (W &&
|
|
1632
|
-
const k = h.scrollLeft + b.x, Q = m === V.Right && k <= O.x || m === V.Left && k >=
|
|
1631
|
+
if (W && A.x !== f.x) {
|
|
1632
|
+
const k = h.scrollLeft + b.x, Q = m === V.Right && k <= O.x || m === V.Left && k >= E.x;
|
|
1633
1633
|
if (Q && !b.y) {
|
|
1634
1634
|
h.scrollTo({
|
|
1635
1635
|
left: k,
|
|
1636
|
-
behavior:
|
|
1636
|
+
behavior: l
|
|
1637
1637
|
});
|
|
1638
1638
|
return;
|
|
1639
1639
|
}
|
|
1640
|
-
Q ? p.x = h.scrollLeft - k : p.x = m === V.Right ? h.scrollLeft - O.x : h.scrollLeft -
|
|
1640
|
+
Q ? p.x = h.scrollLeft - k : p.x = m === V.Right ? h.scrollLeft - O.x : h.scrollLeft - E.x, p.x && h.scrollBy({
|
|
1641
1641
|
left: -p.x,
|
|
1642
|
-
behavior:
|
|
1642
|
+
behavior: l
|
|
1643
1643
|
});
|
|
1644
1644
|
break;
|
|
1645
|
-
} else if (Y &&
|
|
1646
|
-
const k = h.scrollTop + b.y, Q = m === V.Down && k <= O.y || m === V.Up && k >=
|
|
1645
|
+
} else if (Y && A.y !== f.y) {
|
|
1646
|
+
const k = h.scrollTop + b.y, Q = m === V.Down && k <= O.y || m === V.Up && k >= E.y;
|
|
1647
1647
|
if (Q && !b.x) {
|
|
1648
1648
|
h.scrollTo({
|
|
1649
1649
|
top: k,
|
|
1650
|
-
behavior:
|
|
1650
|
+
behavior: l
|
|
1651
1651
|
});
|
|
1652
1652
|
return;
|
|
1653
1653
|
}
|
|
1654
|
-
Q ? p.y = h.scrollTop - k : p.y = m === V.Down ? h.scrollTop - O.y : h.scrollTop -
|
|
1654
|
+
Q ? p.y = h.scrollTop - k : p.y = m === V.Down ? h.scrollTop - O.y : h.scrollTop - E.y, p.y && h.scrollBy({
|
|
1655
1655
|
top: -p.y,
|
|
1656
|
-
behavior:
|
|
1656
|
+
behavior: l
|
|
1657
1657
|
});
|
|
1658
1658
|
break;
|
|
1659
1659
|
}
|
|
@@ -1697,8 +1697,8 @@ Hr.activators = [{
|
|
|
1697
1697
|
code: a
|
|
1698
1698
|
} = e.nativeEvent;
|
|
1699
1699
|
if (r.start.includes(a)) {
|
|
1700
|
-
const
|
|
1701
|
-
return
|
|
1700
|
+
const l = i.activatorNode.current;
|
|
1701
|
+
return l && e.target !== l ? !1 : (e.preventDefault(), o?.({
|
|
1702
1702
|
event: e.nativeEvent
|
|
1703
1703
|
}), !0);
|
|
1704
1704
|
}
|
|
@@ -1720,7 +1720,7 @@ class Tn {
|
|
|
1720
1720
|
} = t, {
|
|
1721
1721
|
target: a
|
|
1722
1722
|
} = i;
|
|
1723
|
-
this.props = t, this.events = n, this.document = tt(a), this.documentListeners = new dt(this.document), this.listeners = new dt(r), this.windowListeners = new dt(
|
|
1723
|
+
this.props = t, this.events = n, this.document = tt(a), this.documentListeners = new dt(this.document), this.listeners = new dt(r), this.windowListeners = new dt(pe(a)), this.initialCoordinates = (o = mn(i)) != null ? o : De, this.handleStart = this.handleStart.bind(this), this.handleMove = this.handleMove.bind(this), this.handleEnd = this.handleEnd.bind(this), this.handleCancel = this.handleCancel.bind(this), this.handleKeydown = this.handleKeydown.bind(this), this.removeTextSelection = this.removeTextSelection.bind(this), this.attach();
|
|
1724
1724
|
}
|
|
1725
1725
|
attach() {
|
|
1726
1726
|
const {
|
|
@@ -1781,25 +1781,25 @@ class Tn {
|
|
|
1781
1781
|
} = this, {
|
|
1782
1782
|
onMove: a,
|
|
1783
1783
|
options: {
|
|
1784
|
-
activationConstraint:
|
|
1784
|
+
activationConstraint: l
|
|
1785
1785
|
}
|
|
1786
1786
|
} = i;
|
|
1787
1787
|
if (!o)
|
|
1788
1788
|
return;
|
|
1789
|
-
const
|
|
1790
|
-
if (!r &&
|
|
1791
|
-
if (or(
|
|
1792
|
-
if (
|
|
1789
|
+
const c = (n = mn(t)) != null ? n : De, u = Yt(o, c);
|
|
1790
|
+
if (!r && l) {
|
|
1791
|
+
if (or(l)) {
|
|
1792
|
+
if (l.tolerance != null && cn(u, l.tolerance))
|
|
1793
1793
|
return this.handleCancel();
|
|
1794
|
-
if (
|
|
1794
|
+
if (cn(u, l.distance))
|
|
1795
1795
|
return this.handleStart();
|
|
1796
1796
|
}
|
|
1797
|
-
if (ir(
|
|
1797
|
+
if (ir(l) && cn(u, l.tolerance))
|
|
1798
1798
|
return this.handleCancel();
|
|
1799
|
-
this.handlePending(
|
|
1799
|
+
this.handlePending(l, u);
|
|
1800
1800
|
return;
|
|
1801
1801
|
}
|
|
1802
|
-
t.cancelable && t.preventDefault(), a(
|
|
1802
|
+
t.cancelable && t.preventDefault(), a(c);
|
|
1803
1803
|
}
|
|
1804
1804
|
handleEnd() {
|
|
1805
1805
|
const {
|
|
@@ -1943,8 +1943,8 @@ function Ai(e) {
|
|
|
1943
1943
|
draggingRect: o,
|
|
1944
1944
|
enabled: i,
|
|
1945
1945
|
interval: a = 5,
|
|
1946
|
-
order:
|
|
1947
|
-
pointerCoordinates:
|
|
1946
|
+
order: l = Vt.TreeOrder,
|
|
1947
|
+
pointerCoordinates: c,
|
|
1948
1948
|
scrollableAncestors: u,
|
|
1949
1949
|
scrollableAncestorRects: d,
|
|
1950
1950
|
delta: f,
|
|
@@ -1962,42 +1962,42 @@ function Ai(e) {
|
|
|
1962
1962
|
}), _ = B(() => {
|
|
1963
1963
|
switch (n) {
|
|
1964
1964
|
case ft.Pointer:
|
|
1965
|
-
return
|
|
1966
|
-
top:
|
|
1967
|
-
bottom:
|
|
1968
|
-
left:
|
|
1969
|
-
right:
|
|
1965
|
+
return c ? {
|
|
1966
|
+
top: c.y,
|
|
1967
|
+
bottom: c.y,
|
|
1968
|
+
left: c.x,
|
|
1969
|
+
right: c.x
|
|
1970
1970
|
} : null;
|
|
1971
1971
|
case ft.DraggableRect:
|
|
1972
1972
|
return o;
|
|
1973
1973
|
}
|
|
1974
|
-
}, [n, o,
|
|
1975
|
-
const
|
|
1976
|
-
if (!
|
|
1974
|
+
}, [n, o, c]), R = U(null), T = ue(() => {
|
|
1975
|
+
const E = R.current;
|
|
1976
|
+
if (!E)
|
|
1977
1977
|
return;
|
|
1978
|
-
const M = m.current.x * w.current.x,
|
|
1979
|
-
|
|
1980
|
-
}, []), O = B(() =>
|
|
1978
|
+
const M = m.current.x * w.current.x, A = m.current.y * w.current.y;
|
|
1979
|
+
E.scrollBy(M, A);
|
|
1980
|
+
}, []), O = B(() => l === Vt.TreeOrder ? [...u].reverse() : u, [l, u]);
|
|
1981
1981
|
H(
|
|
1982
1982
|
() => {
|
|
1983
1983
|
if (!i || !u.length || !_) {
|
|
1984
1984
|
h();
|
|
1985
1985
|
return;
|
|
1986
1986
|
}
|
|
1987
|
-
for (const
|
|
1988
|
-
if (r?.(
|
|
1987
|
+
for (const E of O) {
|
|
1988
|
+
if (r?.(E) === !1)
|
|
1989
1989
|
continue;
|
|
1990
|
-
const M = u.indexOf(
|
|
1991
|
-
if (!
|
|
1990
|
+
const M = u.indexOf(E), A = d[M];
|
|
1991
|
+
if (!A)
|
|
1992
1992
|
continue;
|
|
1993
1993
|
const {
|
|
1994
1994
|
direction: W,
|
|
1995
1995
|
speed: Y
|
|
1996
|
-
} = Si(
|
|
1996
|
+
} = Si(E, A, _, t, b);
|
|
1997
1997
|
for (const k of ["x", "y"])
|
|
1998
1998
|
p[k][W[k]] || (Y[k] = 0, W[k] = 0);
|
|
1999
1999
|
if (Y.x > 0 || Y.y > 0) {
|
|
2000
|
-
h(), R.current =
|
|
2000
|
+
h(), R.current = E, v(T, a), m.current = Y, w.current = W;
|
|
2001
2001
|
return;
|
|
2002
2002
|
}
|
|
2003
2003
|
}
|
|
@@ -2032,12 +2032,12 @@ function Ai(e) {
|
|
|
2032
2032
|
}
|
|
2033
2033
|
const Li = {
|
|
2034
2034
|
x: {
|
|
2035
|
-
[
|
|
2036
|
-
[
|
|
2035
|
+
[oe.Backward]: !1,
|
|
2036
|
+
[oe.Forward]: !1
|
|
2037
2037
|
},
|
|
2038
2038
|
y: {
|
|
2039
|
-
[
|
|
2040
|
-
[
|
|
2039
|
+
[oe.Backward]: !1,
|
|
2040
|
+
[oe.Forward]: !1
|
|
2041
2041
|
}
|
|
2042
2042
|
};
|
|
2043
2043
|
function Ni(e) {
|
|
@@ -2055,12 +2055,12 @@ function Ni(e) {
|
|
|
2055
2055
|
};
|
|
2056
2056
|
return {
|
|
2057
2057
|
x: {
|
|
2058
|
-
[
|
|
2059
|
-
[
|
|
2058
|
+
[oe.Backward]: o.x[oe.Backward] || i.x === -1,
|
|
2059
|
+
[oe.Forward]: o.x[oe.Forward] || i.x === 1
|
|
2060
2060
|
},
|
|
2061
2061
|
y: {
|
|
2062
|
-
[
|
|
2063
|
-
[
|
|
2062
|
+
[oe.Backward]: o.y[oe.Backward] || i.y === -1,
|
|
2063
|
+
[oe.Forward]: o.y[oe.Forward] || i.y === 1
|
|
2064
2064
|
}
|
|
2065
2065
|
};
|
|
2066
2066
|
}, [n, t, r]);
|
|
@@ -2098,11 +2098,11 @@ function Yi(e, t) {
|
|
|
2098
2098
|
dependencies: r,
|
|
2099
2099
|
config: o
|
|
2100
2100
|
} = t;
|
|
2101
|
-
const [i, a] =
|
|
2102
|
-
frequency:
|
|
2103
|
-
measure:
|
|
2101
|
+
const [i, a] = ie(null), {
|
|
2102
|
+
frequency: l,
|
|
2103
|
+
measure: c,
|
|
2104
2104
|
strategy: u
|
|
2105
|
-
} = o, d = U(e), f = m(), b = gt(f), p =
|
|
2105
|
+
} = o, d = U(e), f = m(), b = gt(f), p = ue(function(w) {
|
|
2106
2106
|
w === void 0 && (w = []), !b.current && a((_) => _ === null ? w : _.concat(w.filter((R) => !_.includes(R))));
|
|
2107
2107
|
}, [b]), v = U(null), h = yt((w) => {
|
|
2108
2108
|
if (f && !n)
|
|
@@ -2116,13 +2116,13 @@ function Yi(e, t) {
|
|
|
2116
2116
|
_.set(R.id, R.rect.current);
|
|
2117
2117
|
continue;
|
|
2118
2118
|
}
|
|
2119
|
-
const T = R.node.current, O = T ? new _n(
|
|
2119
|
+
const T = R.node.current, O = T ? new _n(c(T), T) : null;
|
|
2120
2120
|
R.rect.current = O, O && _.set(R.id, O);
|
|
2121
2121
|
}
|
|
2122
2122
|
return _;
|
|
2123
2123
|
}
|
|
2124
2124
|
return w;
|
|
2125
|
-
}, [e, i, n, f,
|
|
2125
|
+
}, [e, i, n, f, c]);
|
|
2126
2126
|
return H(() => {
|
|
2127
2127
|
d.current = e;
|
|
2128
2128
|
}, [e]), H(
|
|
@@ -2139,12 +2139,12 @@ function Yi(e, t) {
|
|
|
2139
2139
|
[JSON.stringify(i)]
|
|
2140
2140
|
), H(
|
|
2141
2141
|
() => {
|
|
2142
|
-
f || typeof
|
|
2142
|
+
f || typeof l != "number" || v.current !== null || (v.current = setTimeout(() => {
|
|
2143
2143
|
p(), v.current = null;
|
|
2144
|
-
},
|
|
2144
|
+
}, l));
|
|
2145
2145
|
},
|
|
2146
2146
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2147
|
-
[
|
|
2147
|
+
[l, f, p, ...r]
|
|
2148
2148
|
), {
|
|
2149
2149
|
droppableRects: h,
|
|
2150
2150
|
measureDroppableContainers: p,
|
|
@@ -2206,23 +2206,23 @@ function Hi(e) {
|
|
|
2206
2206
|
}
|
|
2207
2207
|
function ar(e, t, n) {
|
|
2208
2208
|
t === void 0 && (t = Hi);
|
|
2209
|
-
const [r, o] =
|
|
2209
|
+
const [r, o] = ie(null);
|
|
2210
2210
|
function i() {
|
|
2211
|
-
o((
|
|
2211
|
+
o((c) => {
|
|
2212
2212
|
if (!e)
|
|
2213
2213
|
return null;
|
|
2214
2214
|
if (e.isConnected === !1) {
|
|
2215
2215
|
var u;
|
|
2216
|
-
return (u =
|
|
2216
|
+
return (u = c ?? n) != null ? u : null;
|
|
2217
2217
|
}
|
|
2218
2218
|
const d = t(e);
|
|
2219
|
-
return JSON.stringify(
|
|
2219
|
+
return JSON.stringify(c) === JSON.stringify(d) ? c : d;
|
|
2220
2220
|
});
|
|
2221
2221
|
}
|
|
2222
2222
|
const a = Vi({
|
|
2223
|
-
callback(
|
|
2223
|
+
callback(c) {
|
|
2224
2224
|
if (e)
|
|
2225
|
-
for (const u of
|
|
2225
|
+
for (const u of c) {
|
|
2226
2226
|
const {
|
|
2227
2227
|
type: d,
|
|
2228
2228
|
target: f
|
|
@@ -2233,56 +2233,56 @@ function ar(e, t, n) {
|
|
|
2233
2233
|
}
|
|
2234
2234
|
}
|
|
2235
2235
|
}
|
|
2236
|
-
}),
|
|
2236
|
+
}), l = Xt({
|
|
2237
2237
|
callback: i
|
|
2238
2238
|
});
|
|
2239
2239
|
return Te(() => {
|
|
2240
|
-
i(), e ? (
|
|
2240
|
+
i(), e ? (l?.observe(e), a?.observe(document.body, {
|
|
2241
2241
|
childList: !0,
|
|
2242
2242
|
subtree: !0
|
|
2243
|
-
})) : (
|
|
2243
|
+
})) : (l?.disconnect(), a?.disconnect());
|
|
2244
2244
|
}, [e]), r;
|
|
2245
2245
|
}
|
|
2246
2246
|
function Wi(e) {
|
|
2247
2247
|
const t = Wr(e);
|
|
2248
2248
|
return Ar(e, t);
|
|
2249
2249
|
}
|
|
2250
|
-
const
|
|
2250
|
+
const lr = [];
|
|
2251
2251
|
function Bi(e) {
|
|
2252
|
-
const t = U(e), n = yt((r) => e ? r && r !==
|
|
2252
|
+
const t = U(e), n = yt((r) => e ? r && r !== lr && e && t.current && e.parentNode === t.current.parentNode ? r : En(e) : lr, [e]);
|
|
2253
2253
|
return H(() => {
|
|
2254
2254
|
t.current = e;
|
|
2255
2255
|
}, [e]), n;
|
|
2256
2256
|
}
|
|
2257
2257
|
function Ui(e) {
|
|
2258
|
-
const [t, n] =
|
|
2259
|
-
const a =
|
|
2260
|
-
a && n((
|
|
2258
|
+
const [t, n] = ie(null), r = U(e), o = ue((i) => {
|
|
2259
|
+
const a = ln(i.target);
|
|
2260
|
+
a && n((l) => l ? (l.set(a, bn(a)), new Map(l)) : null);
|
|
2261
2261
|
}, []);
|
|
2262
2262
|
return H(() => {
|
|
2263
2263
|
const i = r.current;
|
|
2264
2264
|
if (e !== i) {
|
|
2265
2265
|
a(i);
|
|
2266
|
-
const
|
|
2267
|
-
const u =
|
|
2266
|
+
const l = e.map((c) => {
|
|
2267
|
+
const u = ln(c);
|
|
2268
2268
|
return u ? (u.addEventListener("scroll", o, {
|
|
2269
2269
|
passive: !0
|
|
2270
2270
|
}), [u, bn(u)]) : null;
|
|
2271
|
-
}).filter((
|
|
2272
|
-
n(
|
|
2271
|
+
}).filter((c) => c != null);
|
|
2272
|
+
n(l.length ? new Map(l) : null), r.current = e;
|
|
2273
2273
|
}
|
|
2274
2274
|
return () => {
|
|
2275
2275
|
a(e), a(i);
|
|
2276
2276
|
};
|
|
2277
|
-
function a(
|
|
2278
|
-
|
|
2279
|
-
const u =
|
|
2277
|
+
function a(l) {
|
|
2278
|
+
l.forEach((c) => {
|
|
2279
|
+
const u = ln(c);
|
|
2280
2280
|
u?.removeEventListener("scroll", o);
|
|
2281
2281
|
});
|
|
2282
2282
|
}
|
|
2283
2283
|
}, [o, e]), B(() => e.length ? t ? Array.from(t.values()).reduce((i, a) => Je(i, a), De) : Fr(e) : De, [e, t]);
|
|
2284
2284
|
}
|
|
2285
|
-
function
|
|
2285
|
+
function cr(e, t) {
|
|
2286
2286
|
t === void 0 && (t = []);
|
|
2287
2287
|
const n = U(null);
|
|
2288
2288
|
return H(
|
|
@@ -2339,15 +2339,15 @@ function Br(e) {
|
|
|
2339
2339
|
const ur = [];
|
|
2340
2340
|
function qi(e, t) {
|
|
2341
2341
|
t === void 0 && (t = nt);
|
|
2342
|
-
const [n] = e, r = Br(n ?
|
|
2342
|
+
const [n] = e, r = Br(n ? pe(n) : null), [o, i] = ie(ur);
|
|
2343
2343
|
function a() {
|
|
2344
|
-
i(() => e.length ? e.map((
|
|
2344
|
+
i(() => e.length ? e.map((c) => Pr(c) ? r : new _n(t(c), c)) : ur);
|
|
2345
2345
|
}
|
|
2346
|
-
const
|
|
2346
|
+
const l = Xt({
|
|
2347
2347
|
callback: a
|
|
2348
2348
|
});
|
|
2349
2349
|
return Te(() => {
|
|
2350
|
-
|
|
2350
|
+
l?.disconnect(), a(), e.forEach((c) => l?.observe(c));
|
|
2351
2351
|
}, [e]), o;
|
|
2352
2352
|
}
|
|
2353
2353
|
function Ki(e) {
|
|
@@ -2362,7 +2362,7 @@ function Ji(e) {
|
|
|
2362
2362
|
let {
|
|
2363
2363
|
measure: t
|
|
2364
2364
|
} = e;
|
|
2365
|
-
const [n, r] =
|
|
2365
|
+
const [n, r] = ie(null), o = ue((u) => {
|
|
2366
2366
|
for (const {
|
|
2367
2367
|
target: d
|
|
2368
2368
|
} of u)
|
|
@@ -2379,15 +2379,15 @@ function Ji(e) {
|
|
|
2379
2379
|
}
|
|
2380
2380
|
}, [t]), i = Xt({
|
|
2381
2381
|
callback: o
|
|
2382
|
-
}), a =
|
|
2382
|
+
}), a = ue((u) => {
|
|
2383
2383
|
const d = Ki(u);
|
|
2384
2384
|
i?.disconnect(), d && i?.observe(d), r(d ? t(d) : null);
|
|
2385
|
-
}, [t, i]), [
|
|
2385
|
+
}, [t, i]), [l, c] = Pt(a);
|
|
2386
2386
|
return B(() => ({
|
|
2387
|
-
nodeRef:
|
|
2387
|
+
nodeRef: l,
|
|
2388
2388
|
rect: n,
|
|
2389
|
-
setRef:
|
|
2390
|
-
}), [n,
|
|
2389
|
+
setRef: c
|
|
2390
|
+
}), [n, l, c]);
|
|
2391
2391
|
}
|
|
2392
2392
|
const Zi = [{
|
|
2393
2393
|
sensor: On,
|
|
@@ -2489,7 +2489,7 @@ function ns() {
|
|
|
2489
2489
|
}
|
|
2490
2490
|
function rs(e, t) {
|
|
2491
2491
|
switch (t.type) {
|
|
2492
|
-
case
|
|
2492
|
+
case ne.DragStart:
|
|
2493
2493
|
return {
|
|
2494
2494
|
...e,
|
|
2495
2495
|
draggable: {
|
|
@@ -2498,7 +2498,7 @@ function rs(e, t) {
|
|
|
2498
2498
|
active: t.active
|
|
2499
2499
|
}
|
|
2500
2500
|
};
|
|
2501
|
-
case
|
|
2501
|
+
case ne.DragMove:
|
|
2502
2502
|
return e.draggable.active == null ? e : {
|
|
2503
2503
|
...e,
|
|
2504
2504
|
draggable: {
|
|
@@ -2509,8 +2509,8 @@ function rs(e, t) {
|
|
|
2509
2509
|
}
|
|
2510
2510
|
}
|
|
2511
2511
|
};
|
|
2512
|
-
case
|
|
2513
|
-
case
|
|
2512
|
+
case ne.DragEnd:
|
|
2513
|
+
case ne.DragCancel:
|
|
2514
2514
|
return {
|
|
2515
2515
|
...e,
|
|
2516
2516
|
draggable: {
|
|
@@ -2526,7 +2526,7 @@ function rs(e, t) {
|
|
|
2526
2526
|
}
|
|
2527
2527
|
}
|
|
2528
2528
|
};
|
|
2529
|
-
case
|
|
2529
|
+
case ne.RegisterDroppable: {
|
|
2530
2530
|
const {
|
|
2531
2531
|
element: n
|
|
2532
2532
|
} = t, {
|
|
@@ -2540,7 +2540,7 @@ function rs(e, t) {
|
|
|
2540
2540
|
}
|
|
2541
2541
|
};
|
|
2542
2542
|
}
|
|
2543
|
-
case
|
|
2543
|
+
case ne.SetDroppableDisabled: {
|
|
2544
2544
|
const {
|
|
2545
2545
|
id: n,
|
|
2546
2546
|
key: r,
|
|
@@ -2560,7 +2560,7 @@ function rs(e, t) {
|
|
|
2560
2560
|
}
|
|
2561
2561
|
};
|
|
2562
2562
|
}
|
|
2563
|
-
case
|
|
2563
|
+
case ne.UnregisterDroppable: {
|
|
2564
2564
|
const {
|
|
2565
2565
|
id: n,
|
|
2566
2566
|
key: r
|
|
@@ -2593,17 +2593,17 @@ function os(e) {
|
|
|
2593
2593
|
if (!t && !r && i && a != null) {
|
|
2594
2594
|
if (!Rn(i) || document.activeElement === i.target)
|
|
2595
2595
|
return;
|
|
2596
|
-
const
|
|
2597
|
-
if (!
|
|
2596
|
+
const l = o.get(a);
|
|
2597
|
+
if (!l)
|
|
2598
2598
|
return;
|
|
2599
2599
|
const {
|
|
2600
|
-
activatorNode:
|
|
2600
|
+
activatorNode: c,
|
|
2601
2601
|
node: u
|
|
2602
|
-
} =
|
|
2603
|
-
if (!
|
|
2602
|
+
} = l;
|
|
2603
|
+
if (!c.current && !u.current)
|
|
2604
2604
|
return;
|
|
2605
2605
|
requestAnimationFrame(() => {
|
|
2606
|
-
for (const d of [
|
|
2606
|
+
for (const d of [c.current, u.current]) {
|
|
2607
2607
|
if (!d)
|
|
2608
2608
|
continue;
|
|
2609
2609
|
const f = Xo(d);
|
|
@@ -2655,13 +2655,13 @@ function as(e) {
|
|
|
2655
2655
|
} = e;
|
|
2656
2656
|
const i = U(!1), {
|
|
2657
2657
|
x: a,
|
|
2658
|
-
y:
|
|
2658
|
+
y: l
|
|
2659
2659
|
} = typeof o == "boolean" ? {
|
|
2660
2660
|
x: o,
|
|
2661
2661
|
y: o
|
|
2662
2662
|
} : o;
|
|
2663
2663
|
Te(() => {
|
|
2664
|
-
if (!a && !
|
|
2664
|
+
if (!a && !l || !t) {
|
|
2665
2665
|
i.current = !1;
|
|
2666
2666
|
return;
|
|
2667
2667
|
}
|
|
@@ -2671,14 +2671,14 @@ function as(e) {
|
|
|
2671
2671
|
if (!u || u.isConnected === !1)
|
|
2672
2672
|
return;
|
|
2673
2673
|
const d = n(u), f = Ar(d, r);
|
|
2674
|
-
if (a || (f.x = 0),
|
|
2674
|
+
if (a || (f.x = 0), l || (f.y = 0), i.current = !0, Math.abs(f.x) > 0 || Math.abs(f.y) > 0) {
|
|
2675
2675
|
const b = Lr(u);
|
|
2676
2676
|
b && b.scrollBy({
|
|
2677
2677
|
top: f.y,
|
|
2678
2678
|
left: f.x
|
|
2679
2679
|
});
|
|
2680
2680
|
}
|
|
2681
|
-
}, [t, a,
|
|
2681
|
+
}, [t, a, l, r, n]);
|
|
2682
2682
|
}
|
|
2683
2683
|
const Gr = /* @__PURE__ */ vt({
|
|
2684
2684
|
...De,
|
|
@@ -2693,8 +2693,8 @@ const Xr = /* @__PURE__ */ vo(function(t) {
|
|
|
2693
2693
|
var n, r, o, i;
|
|
2694
2694
|
let {
|
|
2695
2695
|
id: a,
|
|
2696
|
-
accessibility:
|
|
2697
|
-
autoScroll:
|
|
2696
|
+
accessibility: l,
|
|
2697
|
+
autoScroll: c = !0,
|
|
2698
2698
|
children: u,
|
|
2699
2699
|
sensors: d = Zi,
|
|
2700
2700
|
collisionDetection: f = di,
|
|
@@ -2702,19 +2702,19 @@ const Xr = /* @__PURE__ */ vo(function(t) {
|
|
|
2702
2702
|
modifiers: p,
|
|
2703
2703
|
...v
|
|
2704
2704
|
} = t;
|
|
2705
|
-
const h = mo(rs, void 0, ns), [m, w] = h, [_, R] = ei(), [T, O] =
|
|
2705
|
+
const h = mo(rs, void 0, ns), [m, w] = h, [_, R] = ei(), [T, O] = ie(Fe.Uninitialized), E = T === Fe.Initialized, {
|
|
2706
2706
|
draggable: {
|
|
2707
2707
|
active: M,
|
|
2708
|
-
nodes:
|
|
2708
|
+
nodes: A,
|
|
2709
2709
|
translate: W
|
|
2710
2710
|
},
|
|
2711
2711
|
droppable: {
|
|
2712
2712
|
containers: Y
|
|
2713
2713
|
}
|
|
2714
|
-
} = m, k = M != null ?
|
|
2714
|
+
} = m, k = M != null ? A.get(M) : null, Q = U({
|
|
2715
2715
|
initial: null,
|
|
2716
2716
|
translated: null
|
|
2717
|
-
}),
|
|
2717
|
+
}), se = B(() => {
|
|
2718
2718
|
var ce;
|
|
2719
2719
|
return M != null ? {
|
|
2720
2720
|
id: M,
|
|
@@ -2722,99 +2722,99 @@ const Xr = /* @__PURE__ */ vo(function(t) {
|
|
|
2722
2722
|
data: (ce = k?.data) != null ? ce : Qi,
|
|
2723
2723
|
rect: Q
|
|
2724
2724
|
} : null;
|
|
2725
|
-
}, [M, k]), $ = U(null), [D, y] =
|
|
2726
|
-
droppableRects:
|
|
2725
|
+
}, [M, k]), $ = U(null), [D, y] = ie(null), [j, C] = ie(null), I = gt(v, Object.values(v)), N = wt("DndDescribedBy", a), g = B(() => Y.getEnabled(), [Y]), S = ss(b), {
|
|
2726
|
+
droppableRects: L,
|
|
2727
2727
|
measureDroppableContainers: P,
|
|
2728
2728
|
measuringScheduled: G
|
|
2729
2729
|
} = Yi(g, {
|
|
2730
|
-
dragging:
|
|
2730
|
+
dragging: E,
|
|
2731
2731
|
dependencies: [W.x, W.y],
|
|
2732
2732
|
config: S.droppable
|
|
2733
|
-
}), X = zi(
|
|
2733
|
+
}), X = zi(A, M), F = B(() => j ? mn(j) : null, [j]), J = go(), Z = Fi(X, S.draggable.measure);
|
|
2734
2734
|
as({
|
|
2735
|
-
activeNode: M != null ?
|
|
2735
|
+
activeNode: M != null ? A.get(M) : null,
|
|
2736
2736
|
config: J.layoutShiftCompensation,
|
|
2737
2737
|
initialRect: Z,
|
|
2738
2738
|
measure: S.draggable.measure
|
|
2739
2739
|
});
|
|
2740
|
-
const z = ar(X, S.draggable.measure, Z),
|
|
2740
|
+
const z = ar(X, S.draggable.measure, Z), fe = ar(X ? X.parentElement : null), le = U({
|
|
2741
2741
|
activatorEvent: null,
|
|
2742
2742
|
active: null,
|
|
2743
2743
|
activeNode: X,
|
|
2744
2744
|
collisionRect: null,
|
|
2745
2745
|
collisions: null,
|
|
2746
|
-
droppableRects:
|
|
2747
|
-
draggableNodes:
|
|
2746
|
+
droppableRects: L,
|
|
2747
|
+
draggableNodes: A,
|
|
2748
2748
|
draggingNode: null,
|
|
2749
2749
|
draggingNodeRect: null,
|
|
2750
2750
|
droppableContainers: Y,
|
|
2751
2751
|
over: null,
|
|
2752
2752
|
scrollableAncestors: [],
|
|
2753
2753
|
scrollAdjustedTranslate: null
|
|
2754
|
-
}), we = Y.getNodeFor((n =
|
|
2754
|
+
}), we = Y.getNodeFor((n = le.current.over) == null ? void 0 : n.id), $e = Ji({
|
|
2755
2755
|
measure: S.dragOverlay.measure
|
|
2756
|
-
}), Be = (r = $e.nodeRef.current) != null ? r : X, Ue =
|
|
2756
|
+
}), Be = (r = $e.nodeRef.current) != null ? r : X, Ue = E ? (o = $e.rect) != null ? o : z : null, kn = !!($e.nodeRef.current && $e.rect), In = Wi(kn ? null : z), Zt = Br(Be ? pe(Be) : null), Le = Bi(E ? we ?? X : null), St = qi(Le), Dt = is(p, {
|
|
2757
2757
|
transform: {
|
|
2758
2758
|
x: W.x - In.x,
|
|
2759
2759
|
y: W.y - In.y,
|
|
2760
2760
|
scaleX: 1,
|
|
2761
2761
|
scaleY: 1
|
|
2762
2762
|
},
|
|
2763
|
-
activatorEvent:
|
|
2764
|
-
active:
|
|
2763
|
+
activatorEvent: j,
|
|
2764
|
+
active: se,
|
|
2765
2765
|
activeNodeRect: z,
|
|
2766
|
-
containerNodeRect:
|
|
2766
|
+
containerNodeRect: fe,
|
|
2767
2767
|
draggingNodeRect: Ue,
|
|
2768
|
-
over:
|
|
2768
|
+
over: le.current.over,
|
|
2769
2769
|
overlayNodeRect: $e.rect,
|
|
2770
2770
|
scrollableAncestors: Le,
|
|
2771
2771
|
scrollableAncestorRects: St,
|
|
2772
2772
|
windowRect: Zt
|
|
2773
|
-
}), An = F ? Je(F, W) : null, Ln = Ui(Le), so =
|
|
2774
|
-
active:
|
|
2773
|
+
}), An = F ? Je(F, W) : null, Ln = Ui(Le), so = cr(Ln), ao = cr(Ln, [z]), Ge = Je(Dt, so), Xe = Ue ? gi(Ue, Dt) : null, rt = se && Xe ? f({
|
|
2774
|
+
active: se,
|
|
2775
2775
|
collisionRect: Xe,
|
|
2776
|
-
droppableRects:
|
|
2776
|
+
droppableRects: L,
|
|
2777
2777
|
droppableContainers: g,
|
|
2778
2778
|
pointerCoordinates: An
|
|
2779
|
-
}) : null, Nn =
|
|
2780
|
-
(ce,
|
|
2779
|
+
}) : null, Nn = ci(rt, "id"), [Ne, zn] = ie(null), lo = kn ? Dt : Je(Dt, ao), co = fi(lo, (i = Ne?.rect) != null ? i : null, z), Qt = U(null), Pn = ue(
|
|
2780
|
+
(ce, ve) => {
|
|
2781
2781
|
let {
|
|
2782
|
-
sensor:
|
|
2782
|
+
sensor: me,
|
|
2783
2783
|
options: ze
|
|
2784
|
-
} =
|
|
2784
|
+
} = ve;
|
|
2785
2785
|
if ($.current == null)
|
|
2786
2786
|
return;
|
|
2787
|
-
const xe =
|
|
2787
|
+
const xe = A.get($.current);
|
|
2788
2788
|
if (!xe)
|
|
2789
2789
|
return;
|
|
2790
|
-
const
|
|
2790
|
+
const be = ce.nativeEvent, je = new me({
|
|
2791
2791
|
active: $.current,
|
|
2792
2792
|
activeNode: xe,
|
|
2793
|
-
event:
|
|
2793
|
+
event: be,
|
|
2794
2794
|
options: ze,
|
|
2795
2795
|
// Sensors need to be instantiated with refs for arguments that change over time
|
|
2796
2796
|
// otherwise they are frozen in time with the stale arguments
|
|
2797
|
-
context:
|
|
2798
|
-
onAbort(
|
|
2799
|
-
if (!
|
|
2797
|
+
context: le,
|
|
2798
|
+
onAbort(ae) {
|
|
2799
|
+
if (!A.get(ae))
|
|
2800
2800
|
return;
|
|
2801
2801
|
const {
|
|
2802
2802
|
onDragAbort: Re
|
|
2803
2803
|
} = I.current, ke = {
|
|
2804
|
-
id:
|
|
2804
|
+
id: ae
|
|
2805
2805
|
};
|
|
2806
2806
|
Re?.(ke), _({
|
|
2807
2807
|
type: "onDragAbort",
|
|
2808
2808
|
event: ke
|
|
2809
2809
|
});
|
|
2810
2810
|
},
|
|
2811
|
-
onPending(
|
|
2812
|
-
if (!
|
|
2811
|
+
onPending(ae, Pe, Re, ke) {
|
|
2812
|
+
if (!A.get(ae))
|
|
2813
2813
|
return;
|
|
2814
2814
|
const {
|
|
2815
2815
|
onDragPending: it
|
|
2816
2816
|
} = I.current, Ye = {
|
|
2817
|
-
id:
|
|
2817
|
+
id: ae,
|
|
2818
2818
|
constraint: Pe,
|
|
2819
2819
|
initialCoordinates: Re,
|
|
2820
2820
|
offset: ke
|
|
@@ -2824,17 +2824,17 @@ const Xr = /* @__PURE__ */ vo(function(t) {
|
|
|
2824
2824
|
event: Ye
|
|
2825
2825
|
});
|
|
2826
2826
|
},
|
|
2827
|
-
onStart(
|
|
2827
|
+
onStart(ae) {
|
|
2828
2828
|
const Pe = $.current;
|
|
2829
2829
|
if (Pe == null)
|
|
2830
2830
|
return;
|
|
2831
|
-
const Re =
|
|
2831
|
+
const Re = A.get(Pe);
|
|
2832
2832
|
if (!Re)
|
|
2833
2833
|
return;
|
|
2834
2834
|
const {
|
|
2835
2835
|
onDragStart: ke
|
|
2836
2836
|
} = I.current, ot = {
|
|
2837
|
-
activatorEvent:
|
|
2837
|
+
activatorEvent: be,
|
|
2838
2838
|
active: {
|
|
2839
2839
|
id: Pe,
|
|
2840
2840
|
data: Re.data,
|
|
@@ -2843,51 +2843,51 @@ const Xr = /* @__PURE__ */ vo(function(t) {
|
|
|
2843
2843
|
};
|
|
2844
2844
|
Ct(() => {
|
|
2845
2845
|
ke?.(ot), O(Fe.Initializing), w({
|
|
2846
|
-
type:
|
|
2847
|
-
initialCoordinates:
|
|
2846
|
+
type: ne.DragStart,
|
|
2847
|
+
initialCoordinates: ae,
|
|
2848
2848
|
active: Pe
|
|
2849
2849
|
}), _({
|
|
2850
2850
|
type: "onDragStart",
|
|
2851
2851
|
event: ot
|
|
2852
|
-
}), y(Qt.current), C(
|
|
2852
|
+
}), y(Qt.current), C(be);
|
|
2853
2853
|
});
|
|
2854
2854
|
},
|
|
2855
|
-
onMove(
|
|
2855
|
+
onMove(ae) {
|
|
2856
2856
|
w({
|
|
2857
|
-
type:
|
|
2858
|
-
coordinates:
|
|
2857
|
+
type: ne.DragMove,
|
|
2858
|
+
coordinates: ae
|
|
2859
2859
|
});
|
|
2860
2860
|
},
|
|
2861
|
-
onEnd: qe(
|
|
2862
|
-
onCancel: qe(
|
|
2861
|
+
onEnd: qe(ne.DragEnd),
|
|
2862
|
+
onCancel: qe(ne.DragCancel)
|
|
2863
2863
|
});
|
|
2864
2864
|
Qt.current = je;
|
|
2865
|
-
function qe(
|
|
2865
|
+
function qe(ae) {
|
|
2866
2866
|
return async function() {
|
|
2867
2867
|
const {
|
|
2868
2868
|
active: Re,
|
|
2869
2869
|
collisions: ke,
|
|
2870
2870
|
over: ot,
|
|
2871
2871
|
scrollAdjustedTranslate: it
|
|
2872
|
-
} =
|
|
2872
|
+
} = le.current;
|
|
2873
2873
|
let Ye = null;
|
|
2874
2874
|
if (Re && it) {
|
|
2875
2875
|
const {
|
|
2876
2876
|
cancelDrop: st
|
|
2877
2877
|
} = I.current;
|
|
2878
2878
|
Ye = {
|
|
2879
|
-
activatorEvent:
|
|
2879
|
+
activatorEvent: be,
|
|
2880
2880
|
active: Re,
|
|
2881
2881
|
collisions: ke,
|
|
2882
2882
|
delta: it,
|
|
2883
2883
|
over: ot
|
|
2884
|
-
},
|
|
2884
|
+
}, ae === ne.DragEnd && typeof st == "function" && await Promise.resolve(st(Ye)) && (ae = ne.DragCancel);
|
|
2885
2885
|
}
|
|
2886
2886
|
$.current = null, Ct(() => {
|
|
2887
2887
|
w({
|
|
2888
|
-
type:
|
|
2888
|
+
type: ae
|
|
2889
2889
|
}), O(Fe.Uninitialized), zn(null), y(null), C(null), Qt.current = null;
|
|
2890
|
-
const st =
|
|
2890
|
+
const st = ae === ne.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
2891
2891
|
if (Ye) {
|
|
2892
2892
|
const en = I.current[st];
|
|
2893
2893
|
en?.(Ye), _({
|
|
@@ -2900,23 +2900,23 @@ const Xr = /* @__PURE__ */ vo(function(t) {
|
|
|
2900
2900
|
}
|
|
2901
2901
|
},
|
|
2902
2902
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2903
|
-
[
|
|
2904
|
-
), uo =
|
|
2905
|
-
const xe =
|
|
2903
|
+
[A]
|
|
2904
|
+
), uo = ue((ce, ve) => (me, ze) => {
|
|
2905
|
+
const xe = me.nativeEvent, be = A.get(ze);
|
|
2906
2906
|
if (
|
|
2907
2907
|
// Another sensor is already instantiating
|
|
2908
2908
|
$.current !== null || // No active draggable
|
|
2909
|
-
!
|
|
2909
|
+
!be || // Event has already been captured
|
|
2910
2910
|
xe.dndKit || xe.defaultPrevented
|
|
2911
2911
|
)
|
|
2912
2912
|
return;
|
|
2913
2913
|
const je = {
|
|
2914
|
-
active:
|
|
2914
|
+
active: be
|
|
2915
2915
|
};
|
|
2916
|
-
ce(
|
|
2917
|
-
capturedBy:
|
|
2918
|
-
}, $.current = ze, Pn(
|
|
2919
|
-
}, [
|
|
2916
|
+
ce(me, ve.options, je) === !0 && (xe.dndKit = {
|
|
2917
|
+
capturedBy: ve.sensor
|
|
2918
|
+
}, $.current = ze, Pn(me, ve));
|
|
2919
|
+
}, [A, Pn]), Yn = Pi(d, uo);
|
|
2920
2920
|
Gi(d), Te(() => {
|
|
2921
2921
|
z && T === Fe.Initializing && O(Fe.Initialized);
|
|
2922
2922
|
}, [z, T]), H(
|
|
@@ -2924,16 +2924,16 @@ const Xr = /* @__PURE__ */ vo(function(t) {
|
|
|
2924
2924
|
const {
|
|
2925
2925
|
onDragMove: ce
|
|
2926
2926
|
} = I.current, {
|
|
2927
|
-
active:
|
|
2928
|
-
activatorEvent:
|
|
2927
|
+
active: ve,
|
|
2928
|
+
activatorEvent: me,
|
|
2929
2929
|
collisions: ze,
|
|
2930
2930
|
over: xe
|
|
2931
|
-
} =
|
|
2932
|
-
if (!
|
|
2931
|
+
} = le.current;
|
|
2932
|
+
if (!ve || !me)
|
|
2933
2933
|
return;
|
|
2934
|
-
const
|
|
2935
|
-
active:
|
|
2936
|
-
activatorEvent:
|
|
2934
|
+
const be = {
|
|
2935
|
+
active: ve,
|
|
2936
|
+
activatorEvent: me,
|
|
2937
2937
|
collisions: ze,
|
|
2938
2938
|
delta: {
|
|
2939
2939
|
x: Ge.x,
|
|
@@ -2942,9 +2942,9 @@ const Xr = /* @__PURE__ */ vo(function(t) {
|
|
|
2942
2942
|
over: xe
|
|
2943
2943
|
};
|
|
2944
2944
|
Ct(() => {
|
|
2945
|
-
ce?.(
|
|
2945
|
+
ce?.(be), _({
|
|
2946
2946
|
type: "onDragMove",
|
|
2947
|
-
event:
|
|
2947
|
+
event: be
|
|
2948
2948
|
});
|
|
2949
2949
|
});
|
|
2950
2950
|
},
|
|
@@ -2954,24 +2954,24 @@ const Xr = /* @__PURE__ */ vo(function(t) {
|
|
|
2954
2954
|
() => {
|
|
2955
2955
|
const {
|
|
2956
2956
|
active: ce,
|
|
2957
|
-
activatorEvent:
|
|
2958
|
-
collisions:
|
|
2957
|
+
activatorEvent: ve,
|
|
2958
|
+
collisions: me,
|
|
2959
2959
|
droppableContainers: ze,
|
|
2960
2960
|
scrollAdjustedTranslate: xe
|
|
2961
|
-
} =
|
|
2962
|
-
if (!ce || $.current == null || !
|
|
2961
|
+
} = le.current;
|
|
2962
|
+
if (!ce || $.current == null || !ve || !xe)
|
|
2963
2963
|
return;
|
|
2964
2964
|
const {
|
|
2965
|
-
onDragOver:
|
|
2965
|
+
onDragOver: be
|
|
2966
2966
|
} = I.current, je = ze.get(Nn), qe = je && je.rect.current ? {
|
|
2967
2967
|
id: je.id,
|
|
2968
2968
|
rect: je.rect.current,
|
|
2969
2969
|
data: je.data,
|
|
2970
2970
|
disabled: je.disabled
|
|
2971
|
-
} : null,
|
|
2971
|
+
} : null, ae = {
|
|
2972
2972
|
active: ce,
|
|
2973
|
-
activatorEvent:
|
|
2974
|
-
collisions:
|
|
2973
|
+
activatorEvent: ve,
|
|
2974
|
+
collisions: me,
|
|
2975
2975
|
delta: {
|
|
2976
2976
|
x: xe.x,
|
|
2977
2977
|
y: xe.y
|
|
@@ -2979,23 +2979,23 @@ const Xr = /* @__PURE__ */ vo(function(t) {
|
|
|
2979
2979
|
over: qe
|
|
2980
2980
|
};
|
|
2981
2981
|
Ct(() => {
|
|
2982
|
-
zn(qe),
|
|
2982
|
+
zn(qe), be?.(ae), _({
|
|
2983
2983
|
type: "onDragOver",
|
|
2984
|
-
event:
|
|
2984
|
+
event: ae
|
|
2985
2985
|
});
|
|
2986
2986
|
});
|
|
2987
2987
|
},
|
|
2988
2988
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2989
2989
|
[Nn]
|
|
2990
2990
|
), Te(() => {
|
|
2991
|
-
|
|
2992
|
-
activatorEvent:
|
|
2993
|
-
active:
|
|
2991
|
+
le.current = {
|
|
2992
|
+
activatorEvent: j,
|
|
2993
|
+
active: se,
|
|
2994
2994
|
activeNode: X,
|
|
2995
2995
|
collisionRect: Xe,
|
|
2996
2996
|
collisions: rt,
|
|
2997
|
-
droppableRects:
|
|
2998
|
-
draggableNodes:
|
|
2997
|
+
droppableRects: L,
|
|
2998
|
+
draggableNodes: A,
|
|
2999
2999
|
draggingNode: Be,
|
|
3000
3000
|
draggingNodeRect: Ue,
|
|
3001
3001
|
droppableContainers: Y,
|
|
@@ -3006,7 +3006,7 @@ const Xr = /* @__PURE__ */ vo(function(t) {
|
|
|
3006
3006
|
initial: Ue,
|
|
3007
3007
|
translated: Xe
|
|
3008
3008
|
};
|
|
3009
|
-
}, [
|
|
3009
|
+
}, [se, X, rt, Xe, A, Be, Ue, L, Y, Ne, Le, Ge]), Ai({
|
|
3010
3010
|
...J,
|
|
3011
3011
|
delta: W,
|
|
3012
3012
|
draggingRect: Xe,
|
|
@@ -3015,16 +3015,16 @@ const Xr = /* @__PURE__ */ vo(function(t) {
|
|
|
3015
3015
|
scrollableAncestorRects: St
|
|
3016
3016
|
});
|
|
3017
3017
|
const fo = B(() => ({
|
|
3018
|
-
active:
|
|
3018
|
+
active: se,
|
|
3019
3019
|
activeNode: X,
|
|
3020
3020
|
activeNodeRect: z,
|
|
3021
|
-
activatorEvent:
|
|
3021
|
+
activatorEvent: j,
|
|
3022
3022
|
collisions: rt,
|
|
3023
|
-
containerNodeRect:
|
|
3023
|
+
containerNodeRect: fe,
|
|
3024
3024
|
dragOverlay: $e,
|
|
3025
|
-
draggableNodes:
|
|
3025
|
+
draggableNodes: A,
|
|
3026
3026
|
droppableContainers: Y,
|
|
3027
|
-
droppableRects:
|
|
3027
|
+
droppableRects: L,
|
|
3028
3028
|
over: Ne,
|
|
3029
3029
|
measureDroppableContainers: P,
|
|
3030
3030
|
scrollableAncestors: Le,
|
|
@@ -3032,43 +3032,43 @@ const Xr = /* @__PURE__ */ vo(function(t) {
|
|
|
3032
3032
|
measuringConfiguration: S,
|
|
3033
3033
|
measuringScheduled: G,
|
|
3034
3034
|
windowRect: Zt
|
|
3035
|
-
}), [
|
|
3036
|
-
activatorEvent:
|
|
3035
|
+
}), [se, X, z, j, rt, fe, $e, A, Y, L, Ne, P, Le, St, S, G, Zt]), ho = B(() => ({
|
|
3036
|
+
activatorEvent: j,
|
|
3037
3037
|
activators: Yn,
|
|
3038
|
-
active:
|
|
3038
|
+
active: se,
|
|
3039
3039
|
activeNodeRect: z,
|
|
3040
3040
|
ariaDescribedById: {
|
|
3041
|
-
draggable:
|
|
3041
|
+
draggable: N
|
|
3042
3042
|
},
|
|
3043
3043
|
dispatch: w,
|
|
3044
|
-
draggableNodes:
|
|
3044
|
+
draggableNodes: A,
|
|
3045
3045
|
over: Ne,
|
|
3046
3046
|
measureDroppableContainers: P
|
|
3047
|
-
}), [
|
|
3048
|
-
return
|
|
3047
|
+
}), [j, Yn, se, z, w, N, A, Ne, P]);
|
|
3048
|
+
return re.createElement(kr.Provider, {
|
|
3049
3049
|
value: R
|
|
3050
|
-
},
|
|
3050
|
+
}, re.createElement(qt.Provider, {
|
|
3051
3051
|
value: ho
|
|
3052
|
-
},
|
|
3052
|
+
}, re.createElement(Ur.Provider, {
|
|
3053
3053
|
value: fo
|
|
3054
|
-
},
|
|
3055
|
-
value:
|
|
3056
|
-
}, u)),
|
|
3057
|
-
disabled:
|
|
3058
|
-
})),
|
|
3059
|
-
...
|
|
3060
|
-
hiddenTextDescribedById:
|
|
3054
|
+
}, re.createElement(Gr.Provider, {
|
|
3055
|
+
value: co
|
|
3056
|
+
}, u)), re.createElement(os, {
|
|
3057
|
+
disabled: l?.restoreFocus === !1
|
|
3058
|
+
})), re.createElement(ri, {
|
|
3059
|
+
...l,
|
|
3060
|
+
hiddenTextDescribedById: N
|
|
3061
3061
|
}));
|
|
3062
3062
|
function go() {
|
|
3063
|
-
const ce = D?.autoScrollEnabled === !1,
|
|
3064
|
-
return typeof
|
|
3065
|
-
...
|
|
3066
|
-
enabled:
|
|
3063
|
+
const ce = D?.autoScrollEnabled === !1, ve = typeof c == "object" ? c.enabled === !1 : c === !1, me = E && !ce && !ve;
|
|
3064
|
+
return typeof c == "object" ? {
|
|
3065
|
+
...c,
|
|
3066
|
+
enabled: me
|
|
3067
3067
|
} : {
|
|
3068
|
-
enabled:
|
|
3068
|
+
enabled: me
|
|
3069
3069
|
};
|
|
3070
3070
|
}
|
|
3071
|
-
}),
|
|
3071
|
+
}), ls = /* @__PURE__ */ vt(null), dr = "button", cs = "Draggable";
|
|
3072
3072
|
function us(e) {
|
|
3073
3073
|
let {
|
|
3074
3074
|
id: t,
|
|
@@ -3076,10 +3076,10 @@ function us(e) {
|
|
|
3076
3076
|
disabled: r = !1,
|
|
3077
3077
|
attributes: o
|
|
3078
3078
|
} = e;
|
|
3079
|
-
const i = wt(
|
|
3079
|
+
const i = wt(cs), {
|
|
3080
3080
|
activators: a,
|
|
3081
|
-
activatorEvent:
|
|
3082
|
-
active:
|
|
3081
|
+
activatorEvent: l,
|
|
3082
|
+
active: c,
|
|
3083
3083
|
activeNodeRect: u,
|
|
3084
3084
|
ariaDescribedById: d,
|
|
3085
3085
|
draggableNodes: f,
|
|
@@ -3088,7 +3088,7 @@ function us(e) {
|
|
|
3088
3088
|
role: p = dr,
|
|
3089
3089
|
roleDescription: v = "draggable",
|
|
3090
3090
|
tabIndex: h = 0
|
|
3091
|
-
} = o ?? {}, m =
|
|
3091
|
+
} = o ?? {}, m = c?.id === t, w = He(m ? Gr : ls), [_, R] = Pt(), [T, O] = Pt(), E = Xi(a, t), M = gt(n);
|
|
3092
3092
|
Te(
|
|
3093
3093
|
() => (f.set(t, {
|
|
3094
3094
|
id: t,
|
|
@@ -3103,7 +3103,7 @@ function us(e) {
|
|
|
3103
3103
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3104
3104
|
[f, t]
|
|
3105
3105
|
);
|
|
3106
|
-
const
|
|
3106
|
+
const A = B(() => ({
|
|
3107
3107
|
role: p,
|
|
3108
3108
|
tabIndex: h,
|
|
3109
3109
|
"aria-disabled": r,
|
|
@@ -3112,12 +3112,12 @@ function us(e) {
|
|
|
3112
3112
|
"aria-describedby": d.draggable
|
|
3113
3113
|
}), [r, p, h, m, v, d.draggable]);
|
|
3114
3114
|
return {
|
|
3115
|
-
active:
|
|
3116
|
-
activatorEvent:
|
|
3115
|
+
active: c,
|
|
3116
|
+
activatorEvent: l,
|
|
3117
3117
|
activeNodeRect: u,
|
|
3118
|
-
attributes:
|
|
3118
|
+
attributes: A,
|
|
3119
3119
|
isDragging: m,
|
|
3120
|
-
listeners: r ? void 0 :
|
|
3120
|
+
listeners: r ? void 0 : E,
|
|
3121
3121
|
node: _,
|
|
3122
3122
|
over: b,
|
|
3123
3123
|
setNodeRef: R,
|
|
@@ -3140,8 +3140,8 @@ function gs(e) {
|
|
|
3140
3140
|
} = e;
|
|
3141
3141
|
const i = wt(fs), {
|
|
3142
3142
|
active: a,
|
|
3143
|
-
dispatch:
|
|
3144
|
-
over:
|
|
3143
|
+
dispatch: l,
|
|
3144
|
+
over: c,
|
|
3145
3145
|
measureDroppableContainers: u
|
|
3146
3146
|
} = He(qt), d = U({
|
|
3147
3147
|
disabled: n
|
|
@@ -3152,7 +3152,7 @@ function gs(e) {
|
|
|
3152
3152
|
} = {
|
|
3153
3153
|
...hs,
|
|
3154
3154
|
...o
|
|
3155
|
-
}, w = gt(h ?? r), _ =
|
|
3155
|
+
}, w = gt(h ?? r), _ = ue(
|
|
3156
3156
|
() => {
|
|
3157
3157
|
if (!f.current) {
|
|
3158
3158
|
f.current = !0;
|
|
@@ -3167,14 +3167,14 @@ function gs(e) {
|
|
|
3167
3167
|
), R = Xt({
|
|
3168
3168
|
callback: _,
|
|
3169
3169
|
disabled: v || !a
|
|
3170
|
-
}), T =
|
|
3171
|
-
R && (W && (R.unobserve(W), f.current = !1),
|
|
3172
|
-
}, [R]), [O,
|
|
3170
|
+
}), T = ue((A, W) => {
|
|
3171
|
+
R && (W && (R.unobserve(W), f.current = !1), A && R.observe(A));
|
|
3172
|
+
}, [R]), [O, E] = Pt(T), M = gt(t);
|
|
3173
3173
|
return H(() => {
|
|
3174
3174
|
!R || !O.current || (R.disconnect(), f.current = !1, R.observe(O.current));
|
|
3175
3175
|
}, [O, R]), H(
|
|
3176
|
-
() => (
|
|
3177
|
-
type:
|
|
3176
|
+
() => (l({
|
|
3177
|
+
type: ne.RegisterDroppable,
|
|
3178
3178
|
element: {
|
|
3179
3179
|
id: r,
|
|
3180
3180
|
key: i,
|
|
@@ -3183,27 +3183,27 @@ function gs(e) {
|
|
|
3183
3183
|
rect: b,
|
|
3184
3184
|
data: M
|
|
3185
3185
|
}
|
|
3186
|
-
}), () =>
|
|
3187
|
-
type:
|
|
3186
|
+
}), () => l({
|
|
3187
|
+
type: ne.UnregisterDroppable,
|
|
3188
3188
|
key: i,
|
|
3189
3189
|
id: r
|
|
3190
3190
|
})),
|
|
3191
3191
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3192
3192
|
[r]
|
|
3193
3193
|
), H(() => {
|
|
3194
|
-
n !== d.current.disabled && (
|
|
3195
|
-
type:
|
|
3194
|
+
n !== d.current.disabled && (l({
|
|
3195
|
+
type: ne.SetDroppableDisabled,
|
|
3196
3196
|
id: r,
|
|
3197
3197
|
key: i,
|
|
3198
3198
|
disabled: n
|
|
3199
3199
|
}), d.current.disabled = n);
|
|
3200
|
-
}, [r, i, n,
|
|
3200
|
+
}, [r, i, n, l]), {
|
|
3201
3201
|
active: a,
|
|
3202
3202
|
rect: b,
|
|
3203
|
-
isOver:
|
|
3203
|
+
isOver: c?.id === r,
|
|
3204
3204
|
node: O,
|
|
3205
|
-
over:
|
|
3206
|
-
setNodeRef:
|
|
3205
|
+
over: c,
|
|
3206
|
+
setNodeRef: E
|
|
3207
3207
|
};
|
|
3208
3208
|
}
|
|
3209
3209
|
function Kt(e, t, n) {
|
|
@@ -3247,24 +3247,24 @@ const Ot = {
|
|
|
3247
3247
|
overIndex: i,
|
|
3248
3248
|
index: a
|
|
3249
3249
|
} = e;
|
|
3250
|
-
const
|
|
3251
|
-
if (!
|
|
3250
|
+
const l = (t = n[o]) != null ? t : r;
|
|
3251
|
+
if (!l)
|
|
3252
3252
|
return null;
|
|
3253
|
-
const
|
|
3253
|
+
const c = xs(n, a, o);
|
|
3254
3254
|
if (a === o) {
|
|
3255
3255
|
const u = n[i];
|
|
3256
3256
|
return u ? {
|
|
3257
|
-
x: o < i ? u.left + u.width - (
|
|
3257
|
+
x: o < i ? u.left + u.width - (l.left + l.width) : u.left - l.left,
|
|
3258
3258
|
y: 0,
|
|
3259
3259
|
...Ot
|
|
3260
3260
|
} : null;
|
|
3261
3261
|
}
|
|
3262
3262
|
return a > o && a <= i ? {
|
|
3263
|
-
x: -
|
|
3263
|
+
x: -l.width - c,
|
|
3264
3264
|
y: 0,
|
|
3265
3265
|
...Ot
|
|
3266
3266
|
} : a < o && a >= i ? {
|
|
3267
|
-
x:
|
|
3267
|
+
x: l.width + c,
|
|
3268
3268
|
y: 0,
|
|
3269
3269
|
...Ot
|
|
3270
3270
|
} : {
|
|
@@ -3284,12 +3284,12 @@ const qr = (e) => {
|
|
|
3284
3284
|
overIndex: r,
|
|
3285
3285
|
index: o
|
|
3286
3286
|
} = e;
|
|
3287
|
-
const i = Kt(t, r, n), a = t[o],
|
|
3288
|
-
return !
|
|
3289
|
-
x:
|
|
3290
|
-
y:
|
|
3291
|
-
scaleX:
|
|
3292
|
-
scaleY:
|
|
3287
|
+
const i = Kt(t, r, n), a = t[o], l = i[o];
|
|
3288
|
+
return !l || !a ? null : {
|
|
3289
|
+
x: l.left - a.left,
|
|
3290
|
+
y: l.top - a.top,
|
|
3291
|
+
scaleX: l.width / a.width,
|
|
3292
|
+
scaleY: l.height / a.height
|
|
3293
3293
|
};
|
|
3294
3294
|
}, Mt = {
|
|
3295
3295
|
scaleX: 1,
|
|
@@ -3303,25 +3303,25 @@ const qr = (e) => {
|
|
|
3303
3303
|
rects: i,
|
|
3304
3304
|
overIndex: a
|
|
3305
3305
|
} = e;
|
|
3306
|
-
const
|
|
3307
|
-
if (!
|
|
3306
|
+
const l = (t = i[n]) != null ? t : r;
|
|
3307
|
+
if (!l)
|
|
3308
3308
|
return null;
|
|
3309
3309
|
if (o === n) {
|
|
3310
3310
|
const u = i[a];
|
|
3311
3311
|
return u ? {
|
|
3312
3312
|
x: 0,
|
|
3313
|
-
y: n < a ? u.top + u.height - (
|
|
3313
|
+
y: n < a ? u.top + u.height - (l.top + l.height) : u.top - l.top,
|
|
3314
3314
|
...Mt
|
|
3315
3315
|
} : null;
|
|
3316
3316
|
}
|
|
3317
|
-
const
|
|
3317
|
+
const c = ws(i, o, n);
|
|
3318
3318
|
return o > n && o <= a ? {
|
|
3319
3319
|
x: 0,
|
|
3320
|
-
y: -
|
|
3320
|
+
y: -l.height - c,
|
|
3321
3321
|
...Mt
|
|
3322
3322
|
} : o < n && o >= a ? {
|
|
3323
3323
|
x: 0,
|
|
3324
|
-
y:
|
|
3324
|
+
y: l.height + c,
|
|
3325
3325
|
...Mt
|
|
3326
3326
|
} : {
|
|
3327
3327
|
x: 0,
|
|
@@ -3333,7 +3333,7 @@ function ws(e, t, n) {
|
|
|
3333
3333
|
const r = e[t], o = e[t - 1], i = e[t + 1];
|
|
3334
3334
|
return r ? n < t ? o ? r.top - (o.top + o.height) : i ? i.top - (r.top + r.height) : 0 : i ? i.top - (r.top + r.height) : o ? r.top - (o.top + o.height) : 0 : 0;
|
|
3335
3335
|
}
|
|
3336
|
-
const Kr = "Sortable", Jr = /* @__PURE__ */
|
|
3336
|
+
const Kr = "Sortable", Jr = /* @__PURE__ */ re.createContext({
|
|
3337
3337
|
activeIndex: -1,
|
|
3338
3338
|
containerId: Kr,
|
|
3339
3339
|
disableTransforms: !1,
|
|
@@ -3357,11 +3357,11 @@ function Zr(e) {
|
|
|
3357
3357
|
} = e;
|
|
3358
3358
|
const {
|
|
3359
3359
|
active: a,
|
|
3360
|
-
dragOverlay:
|
|
3361
|
-
droppableRects:
|
|
3360
|
+
dragOverlay: l,
|
|
3361
|
+
droppableRects: c,
|
|
3362
3362
|
over: u,
|
|
3363
3363
|
measureDroppableContainers: d
|
|
3364
|
-
} = ds(), f = wt(Kr, n), b =
|
|
3364
|
+
} = ds(), f = wt(Kr, n), b = l.rect !== null, p = B(() => r.map((E) => typeof E == "object" && "id" in E ? E.id : E), [r]), v = a != null, h = a ? p.indexOf(a.id) : -1, m = u ? p.indexOf(u.id) : -1, w = U(p), _ = !vs(p, w.current), R = m !== -1 && h === -1 || _, T = ms(i);
|
|
3365
3365
|
Te(() => {
|
|
3366
3366
|
_ && v && d(p);
|
|
3367
3367
|
}, [_, p, v, d]), H(() => {
|
|
@@ -3376,13 +3376,13 @@ function Zr(e) {
|
|
|
3376
3376
|
items: p,
|
|
3377
3377
|
overIndex: m,
|
|
3378
3378
|
useDragOverlay: b,
|
|
3379
|
-
sortedRects: ps(p,
|
|
3379
|
+
sortedRects: ps(p, c),
|
|
3380
3380
|
strategy: o
|
|
3381
3381
|
}),
|
|
3382
3382
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3383
|
-
[h, f, T.draggable, T.droppable, R, p, m,
|
|
3383
|
+
[h, f, T.draggable, T.droppable, R, p, m, c, b, o]
|
|
3384
3384
|
);
|
|
3385
|
-
return
|
|
3385
|
+
return re.createElement(Jr.Provider, {
|
|
3386
3386
|
value: O
|
|
3387
3387
|
}, t);
|
|
3388
3388
|
}
|
|
@@ -3402,11 +3402,11 @@ const Ss = (e) => {
|
|
|
3402
3402
|
index: o,
|
|
3403
3403
|
items: i,
|
|
3404
3404
|
newIndex: a,
|
|
3405
|
-
previousItems:
|
|
3406
|
-
previousContainerId:
|
|
3405
|
+
previousItems: l,
|
|
3406
|
+
previousContainerId: c,
|
|
3407
3407
|
transition: u
|
|
3408
3408
|
} = e;
|
|
3409
|
-
return !u || !r ||
|
|
3409
|
+
return !u || !r || l !== i && o === a ? !1 : n ? !0 : a !== o && t === c;
|
|
3410
3410
|
}, Cs = {
|
|
3411
3411
|
duration: 200,
|
|
3412
3412
|
easing: "ease"
|
|
@@ -3424,23 +3424,23 @@ function Es(e) {
|
|
|
3424
3424
|
node: r,
|
|
3425
3425
|
rect: o
|
|
3426
3426
|
} = e;
|
|
3427
|
-
const [i, a] =
|
|
3427
|
+
const [i, a] = ie(null), l = U(n);
|
|
3428
3428
|
return Te(() => {
|
|
3429
|
-
if (!t && n !==
|
|
3430
|
-
const
|
|
3431
|
-
if (
|
|
3429
|
+
if (!t && n !== l.current && r.current) {
|
|
3430
|
+
const c = o.current;
|
|
3431
|
+
if (c) {
|
|
3432
3432
|
const u = nt(r.current, {
|
|
3433
3433
|
ignoreTransform: !0
|
|
3434
3434
|
}), d = {
|
|
3435
|
-
x:
|
|
3436
|
-
y:
|
|
3437
|
-
scaleX:
|
|
3438
|
-
scaleY:
|
|
3435
|
+
x: c.left - u.left,
|
|
3436
|
+
y: c.top - u.top,
|
|
3437
|
+
scaleX: c.width / u.width,
|
|
3438
|
+
scaleY: c.height / u.height
|
|
3439
3439
|
};
|
|
3440
3440
|
(d.x || d.y) && a(d);
|
|
3441
3441
|
}
|
|
3442
3442
|
}
|
|
3443
|
-
n !==
|
|
3443
|
+
n !== l.current && (l.current = n);
|
|
3444
3444
|
}, [t, n, r, o]), H(() => {
|
|
3445
3445
|
i && a(null);
|
|
3446
3446
|
}, [i]), i;
|
|
@@ -3453,8 +3453,8 @@ function eo(e) {
|
|
|
3453
3453
|
data: o,
|
|
3454
3454
|
getNewIndex: i = Ss,
|
|
3455
3455
|
id: a,
|
|
3456
|
-
strategy:
|
|
3457
|
-
resizeObserverConfig:
|
|
3456
|
+
strategy: l,
|
|
3457
|
+
resizeObserverConfig: c,
|
|
3458
3458
|
transition: u = Cs
|
|
3459
3459
|
} = e;
|
|
3460
3460
|
const {
|
|
@@ -3474,9 +3474,9 @@ function eo(e) {
|
|
|
3474
3474
|
items: d
|
|
3475
3475
|
},
|
|
3476
3476
|
...o
|
|
3477
|
-
}), [f, o, T, d]),
|
|
3477
|
+
}), [f, o, T, d]), E = B(() => d.slice(d.indexOf(a)), [d, a]), {
|
|
3478
3478
|
rect: M,
|
|
3479
|
-
node:
|
|
3479
|
+
node: A,
|
|
3480
3480
|
isOver: W,
|
|
3481
3481
|
setNodeRef: Y
|
|
3482
3482
|
} = gs({
|
|
@@ -3484,20 +3484,20 @@ function eo(e) {
|
|
|
3484
3484
|
data: O,
|
|
3485
3485
|
disabled: R.droppable,
|
|
3486
3486
|
resizeObserverConfig: {
|
|
3487
|
-
updateMeasurementsFor:
|
|
3488
|
-
...
|
|
3487
|
+
updateMeasurementsFor: E,
|
|
3488
|
+
...c
|
|
3489
3489
|
}
|
|
3490
3490
|
}), {
|
|
3491
3491
|
active: k,
|
|
3492
3492
|
activatorEvent: Q,
|
|
3493
|
-
activeNodeRect:
|
|
3493
|
+
activeNodeRect: se,
|
|
3494
3494
|
attributes: $,
|
|
3495
3495
|
setNodeRef: D,
|
|
3496
3496
|
listeners: y,
|
|
3497
|
-
isDragging:
|
|
3497
|
+
isDragging: j,
|
|
3498
3498
|
over: C,
|
|
3499
3499
|
setActivatorNodeRef: I,
|
|
3500
|
-
transform:
|
|
3500
|
+
transform: N
|
|
3501
3501
|
} = us({
|
|
3502
3502
|
id: a,
|
|
3503
3503
|
data: O,
|
|
@@ -3506,9 +3506,9 @@ function eo(e) {
|
|
|
3506
3506
|
...n
|
|
3507
3507
|
},
|
|
3508
3508
|
disabled: R.draggable
|
|
3509
|
-
}), g = Wo(Y, D), S = !!k,
|
|
3509
|
+
}), g = Wo(Y, D), S = !!k, L = S && !v && Tt(b) && Tt(m), P = !w && j, G = P && L ? N : null, F = L ? G ?? (l ?? _)({
|
|
3510
3510
|
rects: h,
|
|
3511
|
-
activeNodeRect:
|
|
3511
|
+
activeNodeRect: se,
|
|
3512
3512
|
activeIndex: b,
|
|
3513
3513
|
overIndex: m,
|
|
3514
3514
|
index: T
|
|
@@ -3522,10 +3522,10 @@ function eo(e) {
|
|
|
3522
3522
|
items: d,
|
|
3523
3523
|
newIndex: J,
|
|
3524
3524
|
containerId: f
|
|
3525
|
-
}),
|
|
3525
|
+
}), fe = d !== z.current.items, le = t({
|
|
3526
3526
|
active: k,
|
|
3527
3527
|
containerId: f,
|
|
3528
|
-
isDragging:
|
|
3528
|
+
isDragging: j,
|
|
3529
3529
|
isSorting: S,
|
|
3530
3530
|
id: a,
|
|
3531
3531
|
index: T,
|
|
@@ -3536,9 +3536,9 @@ function eo(e) {
|
|
|
3536
3536
|
transition: u,
|
|
3537
3537
|
wasDragging: z.current.activeId != null
|
|
3538
3538
|
}), we = Es({
|
|
3539
|
-
disabled: !
|
|
3539
|
+
disabled: !le,
|
|
3540
3540
|
index: T,
|
|
3541
|
-
node:
|
|
3541
|
+
node: A,
|
|
3542
3542
|
rect: M
|
|
3543
3543
|
});
|
|
3544
3544
|
return H(() => {
|
|
@@ -3565,9 +3565,9 @@ function eo(e) {
|
|
|
3565
3565
|
items: d,
|
|
3566
3566
|
isOver: W,
|
|
3567
3567
|
isSorting: S,
|
|
3568
|
-
isDragging:
|
|
3568
|
+
isDragging: j,
|
|
3569
3569
|
listeners: y,
|
|
3570
|
-
node:
|
|
3570
|
+
node: A,
|
|
3571
3571
|
overIndex: m,
|
|
3572
3572
|
over: C,
|
|
3573
3573
|
setNodeRef: g,
|
|
@@ -3581,10 +3581,10 @@ function eo(e) {
|
|
|
3581
3581
|
if (
|
|
3582
3582
|
// Temporarily disable transitions for a single frame to set up derived transforms
|
|
3583
3583
|
we || // Or to prevent items jumping to back to their "new" position when items change
|
|
3584
|
-
|
|
3584
|
+
fe && z.current.newIndex === T
|
|
3585
3585
|
)
|
|
3586
3586
|
return js;
|
|
3587
|
-
if (!(P && !Rn(Q) || !u) && (S ||
|
|
3587
|
+
if (!(P && !Rn(Q) || !u) && (S || le))
|
|
3588
3588
|
return Ze.Transition.toString({
|
|
3589
3589
|
...u,
|
|
3590
3590
|
property: Qr
|
|
@@ -3634,19 +3634,19 @@ const ks = wn(
|
|
|
3634
3634
|
className: o = "",
|
|
3635
3635
|
children: i,
|
|
3636
3636
|
iconNode: a,
|
|
3637
|
-
...
|
|
3638
|
-
},
|
|
3637
|
+
...l
|
|
3638
|
+
}, c) => hn(
|
|
3639
3639
|
"svg",
|
|
3640
3640
|
{
|
|
3641
|
-
ref:
|
|
3641
|
+
ref: c,
|
|
3642
3642
|
...$s,
|
|
3643
3643
|
width: t,
|
|
3644
3644
|
height: t,
|
|
3645
3645
|
stroke: e,
|
|
3646
3646
|
strokeWidth: r ? Number(n) * 24 / Number(t) : n,
|
|
3647
3647
|
className: to("lucide", o),
|
|
3648
|
-
...!i && !Ms(
|
|
3649
|
-
...
|
|
3648
|
+
...!i && !Ms(l) && { "aria-hidden": "true" },
|
|
3649
|
+
...l
|
|
3650
3650
|
},
|
|
3651
3651
|
[
|
|
3652
3652
|
...a.map(([u, d]) => hn(u, d)),
|
|
@@ -3654,7 +3654,7 @@ const ks = wn(
|
|
|
3654
3654
|
]
|
|
3655
3655
|
)
|
|
3656
3656
|
);
|
|
3657
|
-
const
|
|
3657
|
+
const de = (e, t) => {
|
|
3658
3658
|
const n = wn(
|
|
3659
3659
|
({ className: r, ...o }, i) => hn(ks, {
|
|
3660
3660
|
ref: i,
|
|
@@ -3672,32 +3672,32 @@ const ue = (e, t) => {
|
|
|
3672
3672
|
const Is = [
|
|
3673
3673
|
["path", { d: "M12 5v14", key: "s699le" }],
|
|
3674
3674
|
["path", { d: "m19 12-7 7-7-7", key: "1idqje" }]
|
|
3675
|
-
], As =
|
|
3675
|
+
], As = de("arrow-down", Is);
|
|
3676
3676
|
const Ls = [
|
|
3677
3677
|
["path", { d: "m21 16-4 4-4-4", key: "f6ql7i" }],
|
|
3678
3678
|
["path", { d: "M17 20V4", key: "1ejh1v" }],
|
|
3679
3679
|
["path", { d: "m3 8 4-4 4 4", key: "11wl7u" }],
|
|
3680
3680
|
["path", { d: "M7 4v16", key: "1glfcx" }]
|
|
3681
|
-
], Ns =
|
|
3681
|
+
], Ns = de("arrow-up-down", Ls);
|
|
3682
3682
|
const zs = [
|
|
3683
3683
|
["path", { d: "m5 12 7-7 7 7", key: "hav0vg" }],
|
|
3684
3684
|
["path", { d: "M12 19V5", key: "x0mq9r" }]
|
|
3685
|
-
], Ps =
|
|
3685
|
+
], Ps = de("arrow-up", zs);
|
|
3686
3686
|
const Ys = [
|
|
3687
3687
|
["path", { d: "m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z", key: "1fy3hk" }]
|
|
3688
|
-
], Fs =
|
|
3688
|
+
], Fs = de("bookmark", Ys);
|
|
3689
3689
|
const Vs = [
|
|
3690
3690
|
["path", { d: "M8 2v4", key: "1cmpym" }],
|
|
3691
3691
|
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
3692
3692
|
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
|
|
3693
3693
|
["path", { d: "M3 10h18", key: "8toen8" }]
|
|
3694
|
-
], hr =
|
|
3695
|
-
const Hs = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], Ws =
|
|
3696
|
-
const Bs = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Us =
|
|
3694
|
+
], hr = de("calendar", Vs);
|
|
3695
|
+
const Hs = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], Ws = de("chevron-left", Hs);
|
|
3696
|
+
const Bs = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Us = de("chevron-right", Bs);
|
|
3697
3697
|
const Gs = [
|
|
3698
3698
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
3699
3699
|
["path", { d: "M12 3v18", key: "108xh3" }]
|
|
3700
|
-
], Xs =
|
|
3700
|
+
], Xs = de("columns-2", Gs);
|
|
3701
3701
|
const qs = [
|
|
3702
3702
|
[
|
|
3703
3703
|
"path",
|
|
@@ -3708,12 +3708,12 @@ const qs = [
|
|
|
3708
3708
|
],
|
|
3709
3709
|
["path", { d: "m12 9 6 6", key: "anjzzh" }],
|
|
3710
3710
|
["path", { d: "m18 9-6 6", key: "1fp51s" }]
|
|
3711
|
-
], Ks =
|
|
3711
|
+
], Ks = de("delete", qs);
|
|
3712
3712
|
const Js = [
|
|
3713
3713
|
["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
|
|
3714
3714
|
["circle", { cx: "19", cy: "12", r: "1", key: "1wjl8i" }],
|
|
3715
3715
|
["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }]
|
|
3716
|
-
], Zs =
|
|
3716
|
+
], Zs = de("ellipsis", Js);
|
|
3717
3717
|
const Qs = [
|
|
3718
3718
|
[
|
|
3719
3719
|
"path",
|
|
@@ -3722,7 +3722,7 @@ const Qs = [
|
|
|
3722
3722
|
key: "sc7q7i"
|
|
3723
3723
|
}
|
|
3724
3724
|
]
|
|
3725
|
-
], ea =
|
|
3725
|
+
], ea = de("funnel", Qs);
|
|
3726
3726
|
const ta = [
|
|
3727
3727
|
["circle", { cx: "9", cy: "12", r: "1", key: "1vctgf" }],
|
|
3728
3728
|
["circle", { cx: "9", cy: "5", r: "1", key: "hp0tcf" }],
|
|
@@ -3730,7 +3730,7 @@ const ta = [
|
|
|
3730
3730
|
["circle", { cx: "15", cy: "12", r: "1", key: "1tmaij" }],
|
|
3731
3731
|
["circle", { cx: "15", cy: "5", r: "1", key: "19l28e" }],
|
|
3732
3732
|
["circle", { cx: "15", cy: "19", r: "1", key: "f4zoj3" }]
|
|
3733
|
-
], no =
|
|
3733
|
+
], no = de("grip-vertical", ta);
|
|
3734
3734
|
const na = [
|
|
3735
3735
|
[
|
|
3736
3736
|
"path",
|
|
@@ -3739,13 +3739,13 @@ const na = [
|
|
|
3739
3739
|
key: "1a8usu"
|
|
3740
3740
|
}
|
|
3741
3741
|
]
|
|
3742
|
-
], ra =
|
|
3742
|
+
], ra = de("pen", na);
|
|
3743
3743
|
const oa = [
|
|
3744
3744
|
["path", { d: "M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "14sxne" }],
|
|
3745
3745
|
["path", { d: "M3 3v5h5", key: "1xhq8a" }],
|
|
3746
3746
|
["path", { d: "M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16", key: "1hlbsb" }],
|
|
3747
3747
|
["path", { d: "M16 16h5v5", key: "ccwih5" }]
|
|
3748
|
-
], ia =
|
|
3748
|
+
], ia = de("refresh-ccw", oa);
|
|
3749
3749
|
const sa = [
|
|
3750
3750
|
[
|
|
3751
3751
|
"path",
|
|
@@ -3755,8 +3755,8 @@ const sa = [
|
|
|
3755
3755
|
}
|
|
3756
3756
|
],
|
|
3757
3757
|
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
3758
|
-
], aa =
|
|
3759
|
-
const
|
|
3758
|
+
], aa = de("settings", sa);
|
|
3759
|
+
const la = [
|
|
3760
3760
|
[
|
|
3761
3761
|
"path",
|
|
3762
3762
|
{
|
|
@@ -3766,7 +3766,7 @@ const ca = [
|
|
|
3766
3766
|
],
|
|
3767
3767
|
["path", { d: "M12 9v4", key: "juzpu7" }],
|
|
3768
3768
|
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
3769
|
-
],
|
|
3769
|
+
], ca = de("triangle-alert", la);
|
|
3770
3770
|
function x(e) {
|
|
3771
3771
|
return wn((t, n) => {
|
|
3772
3772
|
const { children: r, ...o } = t;
|
|
@@ -3778,7 +3778,7 @@ function x(e) {
|
|
|
3778
3778
|
}
|
|
3779
3779
|
const ua = x(Oe.Trigger), da = x(Oe.Positioner), fa = x(Oe.Content), ha = x(Oe.Item), ga = x(Ce.Label), pa = x(Ce.HiddenInput), va = x(Ce.Control);
|
|
3780
3780
|
function ma({ visibility: e, onToggle: t }) {
|
|
3781
|
-
const { sortableColumns: n } = bt(
|
|
3781
|
+
const { sortableColumns: n } = bt(ge);
|
|
3782
3782
|
return /* @__PURE__ */ s.jsxs(Oe.Root, { closeOnSelect: !1, children: [
|
|
3783
3783
|
/* @__PURE__ */ s.jsx(ua, { asChild: !0, children: /* @__PURE__ */ s.jsx(_e, { "aria-label": "Toggle columns", variant: "ghost", ml: "1", size: "xs", children: /* @__PURE__ */ s.jsx(Xs, { size: 18 }) }) }),
|
|
3784
3784
|
/* @__PURE__ */ s.jsx(Qe, { children: /* @__PURE__ */ s.jsx(da, { children: /* @__PURE__ */ s.jsx(fa, { minW: "220px", children: n.map((r) => {
|
|
@@ -3800,11 +3800,11 @@ function ba({
|
|
|
3800
3800
|
borderRightColor: i,
|
|
3801
3801
|
backgroundColor: a
|
|
3802
3802
|
}) {
|
|
3803
|
-
const { setNodeRef:
|
|
3803
|
+
const { setNodeRef: l, attributes: c, listeners: u, transform: d, transition: f } = eo({ id: e });
|
|
3804
3804
|
return /* @__PURE__ */ s.jsx(
|
|
3805
|
-
|
|
3805
|
+
te.ColumnHeader,
|
|
3806
3806
|
{
|
|
3807
|
-
ref:
|
|
3807
|
+
ref: l,
|
|
3808
3808
|
onClick: n,
|
|
3809
3809
|
backgroundColor: a,
|
|
3810
3810
|
w: e === "id" ? "80px" : void 0,
|
|
@@ -3815,8 +3815,8 @@ function ba({
|
|
|
3815
3815
|
borderRight: o,
|
|
3816
3816
|
borderRightColor: i
|
|
3817
3817
|
},
|
|
3818
|
-
...
|
|
3819
|
-
children: /* @__PURE__ */ s.jsxs(
|
|
3818
|
+
...c,
|
|
3819
|
+
children: /* @__PURE__ */ s.jsxs(he, { justify: "space-between", children: [
|
|
3820
3820
|
t,
|
|
3821
3821
|
/* @__PURE__ */ s.jsx("span", { ...u, children: /* @__PURE__ */ s.jsx(no, { size: 12 }) })
|
|
3822
3822
|
] })
|
|
@@ -3824,28 +3824,28 @@ function ba({
|
|
|
3824
3824
|
);
|
|
3825
3825
|
}
|
|
3826
3826
|
function xa() {
|
|
3827
|
-
const { columnOrder: e, visibility: t, sortColumn: n, sortDirection: r, sortableColumns: o, actionsConfig: i } = bt(
|
|
3828
|
-
const { active: u, over: d } =
|
|
3827
|
+
const { columnOrder: e, visibility: t, sortColumn: n, sortDirection: r, sortableColumns: o, actionsConfig: i } = bt(ge), a = e.map((c) => o.find((u) => u.id === c.id)).filter((c) => c !== void 0).filter((c) => t[c.id]), l = (c) => {
|
|
3828
|
+
const { active: u, over: d } = c;
|
|
3829
3829
|
if (!d || u.id === d.id) return;
|
|
3830
3830
|
const f = e.findIndex((v) => v.id === u.id), b = e.findIndex((v) => v.id === d.id), p = Kt(e, f, b);
|
|
3831
3831
|
Yo(p);
|
|
3832
3832
|
};
|
|
3833
|
-
return /* @__PURE__ */ s.jsx(
|
|
3833
|
+
return /* @__PURE__ */ s.jsx(te.Header, { background: "blue.200", position: "sticky", top: 0, p: "0", zIndex: 1, children: /* @__PURE__ */ s.jsx(Xr, { collisionDetection: Ir, onDragEnd: l, children: /* @__PURE__ */ s.jsx(
|
|
3834
3834
|
Zr,
|
|
3835
3835
|
{
|
|
3836
|
-
items: e.map((
|
|
3836
|
+
items: e.map((c) => c.id),
|
|
3837
3837
|
strategy: bs,
|
|
3838
|
-
children: /* @__PURE__ */ s.jsxs(
|
|
3839
|
-
a.map((
|
|
3840
|
-
const u = n ===
|
|
3838
|
+
children: /* @__PURE__ */ s.jsxs(te.Row, { height: "28px", children: [
|
|
3839
|
+
a.map((c) => {
|
|
3840
|
+
const u = n === c?.id;
|
|
3841
3841
|
return /* @__PURE__ */ s.jsx(
|
|
3842
3842
|
ba,
|
|
3843
3843
|
{
|
|
3844
|
-
id:
|
|
3845
|
-
onClick: () =>
|
|
3846
|
-
cursor:
|
|
3844
|
+
id: c?.id,
|
|
3845
|
+
onClick: () => c?.sortable && Fo(c?.id),
|
|
3846
|
+
cursor: c?.sortable ? "pointer" : "default",
|
|
3847
3847
|
borderRight: "2px solid #dcdcdc",
|
|
3848
|
-
backgroundColor:
|
|
3848
|
+
backgroundColor: c?.backgroundColor,
|
|
3849
3849
|
children: /* @__PURE__ */ s.jsxs(
|
|
3850
3850
|
"span",
|
|
3851
3851
|
{
|
|
@@ -3856,17 +3856,17 @@ function xa() {
|
|
|
3856
3856
|
userSelect: "none"
|
|
3857
3857
|
},
|
|
3858
3858
|
children: [
|
|
3859
|
-
|
|
3860
|
-
|
|
3859
|
+
c?.label,
|
|
3860
|
+
c?.sortable && (u ? r === "asc" ? /* @__PURE__ */ s.jsx(Ps, { size: 14 }) : /* @__PURE__ */ s.jsx(As, { size: 14 }) : /* @__PURE__ */ s.jsx(Ns, { size: 14, opacity: 0.4 }))
|
|
3861
3861
|
]
|
|
3862
3862
|
}
|
|
3863
3863
|
)
|
|
3864
3864
|
},
|
|
3865
|
-
|
|
3865
|
+
c?.id
|
|
3866
3866
|
);
|
|
3867
3867
|
}),
|
|
3868
3868
|
i?.showActionColumn && /* @__PURE__ */ s.jsx(
|
|
3869
|
-
|
|
3869
|
+
te.ColumnHeader,
|
|
3870
3870
|
{
|
|
3871
3871
|
width: i.width,
|
|
3872
3872
|
backgroundColor: i.backgroundColor,
|
|
@@ -3875,7 +3875,7 @@ function xa() {
|
|
|
3875
3875
|
}
|
|
3876
3876
|
),
|
|
3877
3877
|
i?.showColumnVisibilityMenu && /* @__PURE__ */ s.jsx(
|
|
3878
|
-
|
|
3878
|
+
te.ColumnHeader,
|
|
3879
3879
|
{
|
|
3880
3880
|
boxSize: "0.5",
|
|
3881
3881
|
backgroundColor: i.backgroundColorColumnVisibilityMenu,
|
|
@@ -3902,8 +3902,8 @@ function Ma({
|
|
|
3902
3902
|
onPageSizeChange: o,
|
|
3903
3903
|
siblingCount: i = 2
|
|
3904
3904
|
}) {
|
|
3905
|
-
return /* @__PURE__ */ s.jsx(Ee, { width: "100%", children: /* @__PURE__ */ s.jsxs(
|
|
3906
|
-
/* @__PURE__ */ s.jsxs(
|
|
3905
|
+
return /* @__PURE__ */ s.jsx(Ee, { width: "100%", children: /* @__PURE__ */ s.jsxs(he, { justify: "space-between", mx: "auto", flexWrap: "wrap", children: [
|
|
3906
|
+
/* @__PURE__ */ s.jsxs(he, { children: [
|
|
3907
3907
|
/* @__PURE__ */ s.jsx(q, { fontSize: "sm", color: "gray.600", _dark: { color: "gray.400" }, children: "Rows per page:" }),
|
|
3908
3908
|
/* @__PURE__ */ s.jsxs(
|
|
3909
3909
|
K.Root,
|
|
@@ -3962,10 +3962,10 @@ function La({
|
|
|
3962
3962
|
data: e = [],
|
|
3963
3963
|
actions: t = []
|
|
3964
3964
|
}) {
|
|
3965
|
-
const { columnOrder: n, visibility: r } = bt(
|
|
3966
|
-
return /* @__PURE__ */ s.jsx(
|
|
3967
|
-
n.filter((i) => r[i.id]).map((i) => /* @__PURE__ */ s.jsx(
|
|
3968
|
-
/* @__PURE__ */ s.jsx(
|
|
3965
|
+
const { columnOrder: n, visibility: r } = bt(ge);
|
|
3966
|
+
return /* @__PURE__ */ s.jsx(te.Body, { children: e.map((o) => /* @__PURE__ */ s.jsxs(te.Row, { children: [
|
|
3967
|
+
n.filter((i) => r[i.id]).map((i) => /* @__PURE__ */ s.jsx(te.Cell, { children: o[i.id] }, i.id)),
|
|
3968
|
+
/* @__PURE__ */ s.jsx(te.Cell, { textAlign: "center", display: "flex", gap: 2, children: /* @__PURE__ */ s.jsxs(Oe.Root, { children: [
|
|
3969
3969
|
/* @__PURE__ */ s.jsx(Aa, { asChild: !0, children: /* @__PURE__ */ s.jsx(_e, { "aria-label": "Open", variant: "ghost", size: "sm", children: /* @__PURE__ */ s.jsx(Zs, { size: 16 }) }) }),
|
|
3970
3970
|
/* @__PURE__ */ s.jsx(Qe, { children: /* @__PURE__ */ s.jsx(Ia, { children: /* @__PURE__ */ s.jsx(ka, { children: t.map((i) => /* @__PURE__ */ s.jsxs(
|
|
3971
3971
|
$a,
|
|
@@ -3987,9 +3987,9 @@ function Na({
|
|
|
3987
3987
|
rows: e = 6,
|
|
3988
3988
|
columns: t
|
|
3989
3989
|
}) {
|
|
3990
|
-
return /* @__PURE__ */ s.jsx(
|
|
3990
|
+
return /* @__PURE__ */ s.jsx(te.Body, { children: Array.from({ length: e }).map((n, r) => /* @__PURE__ */ s.jsx(te.Row, { children: Array.from({ length: t }).map((o, i) => /* @__PURE__ */ s.jsx(te.Cell, { children: /* @__PURE__ */ s.jsx(xo, { height: "25px" }) }, i)) }, r)) });
|
|
3991
3991
|
}
|
|
3992
|
-
function
|
|
3992
|
+
function vc({
|
|
3993
3993
|
tableId: e,
|
|
3994
3994
|
data: t = [],
|
|
3995
3995
|
headers: n = [],
|
|
@@ -3997,8 +3997,8 @@ function vl({
|
|
|
3997
3997
|
loadingChildren: o,
|
|
3998
3998
|
skeletonLoading: i = !1,
|
|
3999
3999
|
emptyMessage: a = "No data",
|
|
4000
|
-
actions:
|
|
4001
|
-
page:
|
|
4000
|
+
actions: l,
|
|
4001
|
+
page: c = 1,
|
|
4002
4002
|
pageSize: u = 10,
|
|
4003
4003
|
onPageChange: d,
|
|
4004
4004
|
onPageSizeChange: f,
|
|
@@ -4014,52 +4014,52 @@ function vl({
|
|
|
4014
4014
|
}, [t, n]), H(() => {
|
|
4015
4015
|
h && Po(h);
|
|
4016
4016
|
}, [h]);
|
|
4017
|
-
const { sortColumn: m, sortDirection: w, data: _ } = bt(
|
|
4018
|
-
const
|
|
4019
|
-
if (m &&
|
|
4020
|
-
(
|
|
4017
|
+
const { sortColumn: m, sortDirection: w, data: _, columnOrder: R } = bt(ge), T = B(() => {
|
|
4018
|
+
const O = [..._], E = Math.max(1, c || 1);
|
|
4019
|
+
if (m && O.sort(
|
|
4020
|
+
(M, A) => w === "asc" ? String(M[m]).localeCompare(String(A[m])) : String(A[m]).localeCompare(String(M[m]))
|
|
4021
4021
|
), v === "client") {
|
|
4022
|
-
const
|
|
4023
|
-
return
|
|
4022
|
+
const M = (E - 1) * u;
|
|
4023
|
+
return O.slice(M, M + u);
|
|
4024
4024
|
}
|
|
4025
|
-
return
|
|
4026
|
-
}, [_, m, w,
|
|
4025
|
+
return O;
|
|
4026
|
+
}, [_, m, w, c, u, v]);
|
|
4027
4027
|
return H(() => {
|
|
4028
|
-
|
|
4029
|
-
}, [
|
|
4030
|
-
/* @__PURE__ */ s.jsx(Ee, { flex: "1", minHeight: 0, overflow: "auto", children: /* @__PURE__ */ s.jsxs(
|
|
4028
|
+
c < 1 && d && d(1);
|
|
4029
|
+
}, [c, d]), /* @__PURE__ */ s.jsxs(Ee, { h: "100%", display: "flex", flexDirection: "column", p: 2, pt: 2, minHeight: 0, children: [
|
|
4030
|
+
/* @__PURE__ */ s.jsx(Ee, { flex: "1", minHeight: 0, overflow: "auto", h: "100%", children: /* @__PURE__ */ s.jsxs(te.Root, { variant: "outline", w: "100%", size: b, h: "100%", children: [
|
|
4031
4031
|
/* @__PURE__ */ s.jsx(xa, {}),
|
|
4032
|
-
r ?
|
|
4032
|
+
r ? /* @__PURE__ */ s.jsx(te.Body, { children: /* @__PURE__ */ s.jsx(te.Row, { children: /* @__PURE__ */ s.jsx(te.Cell, { colSpan: R.length + (l ? 1 : 0), children: /* @__PURE__ */ s.jsx(
|
|
4033
4033
|
Ee,
|
|
4034
4034
|
{
|
|
4035
4035
|
display: "flex",
|
|
4036
4036
|
alignItems: "center",
|
|
4037
4037
|
justifyContent: "center",
|
|
4038
|
-
h: "
|
|
4039
|
-
|
|
4040
|
-
children: "Loading..."
|
|
4038
|
+
h: "100%",
|
|
4039
|
+
w: "100%",
|
|
4040
|
+
children: o ?? "Loading..."
|
|
4041
4041
|
}
|
|
4042
|
-
) : i ? /* @__PURE__ */ s.jsx(Na, { rows: u, columns: n.length + 2 }) :
|
|
4042
|
+
) }) }) }) : i ? /* @__PURE__ */ s.jsx(Na, { rows: u, columns: n.length + (l ? 2 : 0) }) : T.length === 0 ? /* @__PURE__ */ s.jsx(te.Body, { children: /* @__PURE__ */ s.jsx(te.Row, { children: /* @__PURE__ */ s.jsx(te.Cell, { colSpan: n.length + (l ? 1 : 0), children: /* @__PURE__ */ s.jsx(
|
|
4043
4043
|
Ee,
|
|
4044
4044
|
{
|
|
4045
4045
|
display: "flex",
|
|
4046
4046
|
alignItems: "center",
|
|
4047
4047
|
justifyContent: "center",
|
|
4048
|
-
|
|
4048
|
+
minH: "200px",
|
|
4049
4049
|
color: "gray.500",
|
|
4050
4050
|
children: a
|
|
4051
4051
|
}
|
|
4052
|
-
) : /* @__PURE__ */ s.jsx(La, { data:
|
|
4052
|
+
) }) }) }) : /* @__PURE__ */ s.jsx(La, { data: T, actions: l })
|
|
4053
4053
|
] }) }),
|
|
4054
4054
|
/* @__PURE__ */ s.jsx(Ee, { mt: 0.5, children: /* @__PURE__ */ s.jsx(
|
|
4055
4055
|
Ma,
|
|
4056
4056
|
{
|
|
4057
4057
|
totalCount: p,
|
|
4058
4058
|
pageSize: u,
|
|
4059
|
-
currentPage:
|
|
4059
|
+
currentPage: c,
|
|
4060
4060
|
onPageChange: d,
|
|
4061
|
-
onPageSizeChange: (
|
|
4062
|
-
f && f(
|
|
4061
|
+
onPageSizeChange: (O) => {
|
|
4062
|
+
f && f(O), c > 1 && d && d(1);
|
|
4063
4063
|
}
|
|
4064
4064
|
}
|
|
4065
4065
|
) })
|
|
@@ -4073,7 +4073,7 @@ const za = x(Ce.Root), Pa = x(Ce.HiddenInput), Ya = x(Ce.Control), Fa = x(Ce.Lab
|
|
|
4073
4073
|
helperText: o,
|
|
4074
4074
|
isDisabled: i,
|
|
4075
4075
|
required: a,
|
|
4076
|
-
errorText:
|
|
4076
|
+
errorText: l
|
|
4077
4077
|
}) => /* @__PURE__ */ s.jsxs(za, { value: e, onChange: t, size: n, children: [
|
|
4078
4078
|
/* @__PURE__ */ s.jsx(Pa, {}),
|
|
4079
4079
|
/* @__PURE__ */ s.jsx(
|
|
@@ -4081,7 +4081,7 @@ const za = x(Ce.Root), Pa = x(Ce.HiddenInput), Ya = x(Ce.Control), Fa = x(Ce.Lab
|
|
|
4081
4081
|
{
|
|
4082
4082
|
disabled: i,
|
|
4083
4083
|
required: a,
|
|
4084
|
-
errorText:
|
|
4084
|
+
errorText: l,
|
|
4085
4085
|
helperText: o
|
|
4086
4086
|
}
|
|
4087
4087
|
),
|
|
@@ -4114,13 +4114,13 @@ const za = x(Ce.Root), Pa = x(Ce.HiddenInput), Ya = x(Ce.Control), Fa = x(Ce.Lab
|
|
|
4114
4114
|
return parseInt(a + e);
|
|
4115
4115
|
}
|
|
4116
4116
|
return t;
|
|
4117
|
-
},
|
|
4117
|
+
}, ct = (e) => {
|
|
4118
4118
|
if (!e?.trim()) return null;
|
|
4119
4119
|
const n = e.replace(/[^\d-]/g, "").split("-").filter((u) => u !== "");
|
|
4120
4120
|
if (n.length === 0) return null;
|
|
4121
4121
|
const { year: r, month: o, day: i } = Mn();
|
|
4122
|
-
let a,
|
|
4123
|
-
return n.length === 1 ? (a = parseInt(n[0]) || i,
|
|
4122
|
+
let a, l, c;
|
|
4123
|
+
return n.length === 1 ? (a = parseInt(n[0]) || i, l = o, c = r) : n.length === 2 ? (a = parseInt(n[0]) || i, l = parseInt(n[1]) || o, c = r) : (a = parseInt(n[0]) || i, l = parseInt(n[1]) || o, c = Wa(n[2], r)), l = Math.max(1, Math.min(Ve.MONTH_MAX, l)), a = Math.max(1, Math.min(Ve.DAY_MAX, a)), `${c}-${String(l).padStart(2, "0")}-${String(a).padStart(2, "0")}`;
|
|
4124
4124
|
}, Se = (e) => {
|
|
4125
4125
|
if (!e) return "";
|
|
4126
4126
|
const [t, n, r] = e.split("-");
|
|
@@ -4156,7 +4156,7 @@ function Ka({
|
|
|
4156
4156
|
onChange: t,
|
|
4157
4157
|
disabled: n = !1
|
|
4158
4158
|
}) {
|
|
4159
|
-
const [r = "", o = ""] = e ? e.split("|") : [], [i, a] =
|
|
4159
|
+
const [r = "", o = ""] = e ? e.split("|") : [], [i, a] = ie(() => r && o ? `${Se(r)}${ee}${Se(o)}` : r ? Se(r) : ""), [l, c] = ie(!1), u = U(null);
|
|
4160
4160
|
H(() => {
|
|
4161
4161
|
const v = (h) => {
|
|
4162
4162
|
h.ctrlKey && h.key === "d" && !h.shiftKey && !h.metaKey && (h.preventDefault(), u.current?.focus());
|
|
@@ -4183,7 +4183,7 @@ function Ka({
|
|
|
4183
4183
|
return;
|
|
4184
4184
|
}
|
|
4185
4185
|
if (v.includes(ee)) {
|
|
4186
|
-
const [h, m = ""] = v.split(ee).map((R) => R.trim()), w =
|
|
4186
|
+
const [h, m = ""] = v.split(ee).map((R) => R.trim()), w = ct(h), _ = m ? ct(m) : null;
|
|
4187
4187
|
if (w && _) {
|
|
4188
4188
|
const [R, T] = _ < w ? [_, w] : [w, _], O = `${Se(R)}${ee}${Se(
|
|
4189
4189
|
T
|
|
@@ -4192,14 +4192,14 @@ function Ka({
|
|
|
4192
4192
|
} else if (w && !m)
|
|
4193
4193
|
a(`${Se(w)}${ee}`), t(void 0);
|
|
4194
4194
|
else if (w && m) {
|
|
4195
|
-
const R = Ha(), [T, O] = R < w ? [R, w] : [w, R],
|
|
4195
|
+
const R = Ha(), [T, O] = R < w ? [R, w] : [w, R], E = `${Se(T)}${ee}${Se(
|
|
4196
4196
|
O
|
|
4197
4197
|
)}`;
|
|
4198
|
-
a(
|
|
4198
|
+
a(E), t(`${T}|${O}`);
|
|
4199
4199
|
} else
|
|
4200
4200
|
a(""), t(void 0);
|
|
4201
4201
|
} else {
|
|
4202
|
-
const h =
|
|
4202
|
+
const h = ct(v);
|
|
4203
4203
|
h ? (a(`${Se(h)}${ee}`), t(void 0)) : (a(""), t(void 0));
|
|
4204
4204
|
}
|
|
4205
4205
|
}, b = (v) => {
|
|
@@ -4211,12 +4211,12 @@ function Ka({
|
|
|
4211
4211
|
return;
|
|
4212
4212
|
}
|
|
4213
4213
|
if (m === -1) {
|
|
4214
|
-
const _ =
|
|
4214
|
+
const _ = ct(i.trim());
|
|
4215
4215
|
_ && a(`${Se(_)}${ee}`);
|
|
4216
4216
|
return;
|
|
4217
4217
|
}
|
|
4218
4218
|
if (h <= m + ee.length) {
|
|
4219
|
-
const _ = i.substring(0, m).trim(), R = i.substring(m + ee.length), T =
|
|
4219
|
+
const _ = i.substring(0, m).trim(), R = i.substring(m + ee.length), T = ct(_);
|
|
4220
4220
|
T && a(`${Se(T)}${ee}${R}`);
|
|
4221
4221
|
return;
|
|
4222
4222
|
}
|
|
@@ -4235,9 +4235,9 @@ function Ka({
|
|
|
4235
4235
|
/* @__PURE__ */ s.jsxs(
|
|
4236
4236
|
Ua,
|
|
4237
4237
|
{
|
|
4238
|
-
open:
|
|
4238
|
+
open: l,
|
|
4239
4239
|
onEscapeKeyDown: () => {
|
|
4240
|
-
|
|
4240
|
+
c(!1);
|
|
4241
4241
|
},
|
|
4242
4242
|
children: [
|
|
4243
4243
|
/* @__PURE__ */ s.jsx(Ga, { asChild: !0, children: /* @__PURE__ */ s.jsx(
|
|
@@ -4246,14 +4246,14 @@ function Ka({
|
|
|
4246
4246
|
size: "sm",
|
|
4247
4247
|
variant: "ghost",
|
|
4248
4248
|
"aria-label": "Date range help",
|
|
4249
|
-
onClick: () =>
|
|
4249
|
+
onClick: () => c((v) => !v),
|
|
4250
4250
|
children: /* @__PURE__ */ s.jsx(hr, { size: 16 })
|
|
4251
4251
|
}
|
|
4252
4252
|
) }),
|
|
4253
4253
|
/* @__PURE__ */ s.jsx(Qe, { children: /* @__PURE__ */ s.jsx(qa, { children: /* @__PURE__ */ s.jsxs(Xa, { p: 4, children: [
|
|
4254
4254
|
/* @__PURE__ */ s.jsx(yo, {}),
|
|
4255
4255
|
/* @__PURE__ */ s.jsxs(Ie, { align: "start", gap: 4, children: [
|
|
4256
|
-
/* @__PURE__ */ s.jsxs(
|
|
4256
|
+
/* @__PURE__ */ s.jsxs(he, { children: [
|
|
4257
4257
|
/* @__PURE__ */ s.jsx(hr, { size: 16 }),
|
|
4258
4258
|
/* @__PURE__ */ s.jsx(q, { fontWeight: "semibold", fontSize: "sm", children: "Date Range Filter" })
|
|
4259
4259
|
] }),
|
|
@@ -4274,7 +4274,7 @@ function Ka({
|
|
|
4274
4274
|
] }),
|
|
4275
4275
|
/* @__PURE__ */ s.jsxs(Ie, { align: "start", gap: 1, children: [
|
|
4276
4276
|
/* @__PURE__ */ s.jsx(q, { fontSize: "sm", fontWeight: "medium", children: "Shortcut:" }),
|
|
4277
|
-
/* @__PURE__ */ s.jsxs(
|
|
4277
|
+
/* @__PURE__ */ s.jsxs(he, { children: [
|
|
4278
4278
|
/* @__PURE__ */ s.jsx(Vn, { children: "Ctrl" }),
|
|
4279
4279
|
/* @__PURE__ */ s.jsx(q, { children: "+" }),
|
|
4280
4280
|
/* @__PURE__ */ s.jsx(Vn, { children: "D" })
|
|
@@ -4312,7 +4312,7 @@ function Ka({
|
|
|
4312
4312
|
) })
|
|
4313
4313
|
] }) }) });
|
|
4314
4314
|
}
|
|
4315
|
-
const Ja = x(We.Root), Za = x(We.Label), Qa = x(We.HelperText),
|
|
4315
|
+
const Ja = x(We.Root), Za = x(We.Label), Qa = x(We.HelperText), el = x(We.ErrorText), mr = ({
|
|
4316
4316
|
icon: e,
|
|
4317
4317
|
value: t,
|
|
4318
4318
|
onChange: n,
|
|
@@ -4320,14 +4320,14 @@ const Ja = x(We.Root), Za = x(We.Label), Qa = x(We.HelperText), ec = x(We.ErrorT
|
|
|
4320
4320
|
size: o = "xs",
|
|
4321
4321
|
variant: i = "outline",
|
|
4322
4322
|
width: a = "100%",
|
|
4323
|
-
label:
|
|
4324
|
-
helperText:
|
|
4323
|
+
label: l,
|
|
4324
|
+
helperText: c,
|
|
4325
4325
|
isDisabled: u = !1,
|
|
4326
4326
|
required: d = !1,
|
|
4327
4327
|
errorText: f,
|
|
4328
4328
|
visible: b
|
|
4329
4329
|
}) => /* @__PURE__ */ s.jsxs(Ja, { width: a, children: [
|
|
4330
|
-
b && /* @__PURE__ */ s.jsx(Za, { children:
|
|
4330
|
+
b && /* @__PURE__ */ s.jsx(Za, { children: l }),
|
|
4331
4331
|
/* @__PURE__ */ s.jsx(Cr, { startElement: e, children: /* @__PURE__ */ s.jsx(
|
|
4332
4332
|
Sn,
|
|
4333
4333
|
{
|
|
@@ -4340,9 +4340,9 @@ const Ja = x(We.Root), Za = x(We.Label), Qa = x(We.HelperText), ec = x(We.ErrorT
|
|
|
4340
4340
|
required: d
|
|
4341
4341
|
}
|
|
4342
4342
|
) }),
|
|
4343
|
-
f && /* @__PURE__ */ s.jsx(
|
|
4344
|
-
|
|
4345
|
-
] }),
|
|
4343
|
+
f && /* @__PURE__ */ s.jsx(el, { fontSize: "xs", children: f }),
|
|
4344
|
+
c && /* @__PURE__ */ s.jsx(Qa, { fontSize: "xs", children: c })
|
|
4345
|
+
] }), tl = x(We.Root), nl = x(We.HelperText), rl = x(We.ErrorText), ol = x(K.Root), il = x(K.Label), sl = x(K.Control), al = x(K.Trigger), ll = x(K.ValueText), cl = x(K.IndicatorGroup), ul = x(K.Indicator), dl = x(K.Content), fl = x(K.Item), hl = x(K.ItemIndicator), gl = x(K.HiddenSelect), pl = x(K.Positioner), vl = ({
|
|
4346
4346
|
options: e = [],
|
|
4347
4347
|
label: t,
|
|
4348
4348
|
value: n,
|
|
@@ -4350,8 +4350,8 @@ const Ja = x(We.Root), Za = x(We.Label), Qa = x(We.HelperText), ec = x(We.ErrorT
|
|
|
4350
4350
|
placeholder: o,
|
|
4351
4351
|
size: i = "xs",
|
|
4352
4352
|
width: a = "100%",
|
|
4353
|
-
variant:
|
|
4354
|
-
helperText:
|
|
4353
|
+
variant: l = "outline",
|
|
4354
|
+
helperText: c,
|
|
4355
4355
|
isDisabled: u,
|
|
4356
4356
|
required: d,
|
|
4357
4357
|
errorText: f,
|
|
@@ -4360,35 +4360,35 @@ const Ja = x(We.Root), Za = x(We.Label), Qa = x(We.HelperText), ec = x(We.ErrorT
|
|
|
4360
4360
|
const p = Dr({
|
|
4361
4361
|
items: e
|
|
4362
4362
|
});
|
|
4363
|
-
return /* @__PURE__ */ s.jsxs(
|
|
4363
|
+
return /* @__PURE__ */ s.jsxs(tl, { disabled: u, required: d, children: [
|
|
4364
4364
|
/* @__PURE__ */ s.jsxs(
|
|
4365
|
-
|
|
4365
|
+
ol,
|
|
4366
4366
|
{
|
|
4367
4367
|
collection: p,
|
|
4368
|
-
variant:
|
|
4368
|
+
variant: l,
|
|
4369
4369
|
size: i,
|
|
4370
4370
|
width: a,
|
|
4371
4371
|
value: n ? [n] : [],
|
|
4372
4372
|
onValueChange: (v) => r?.(v.value[0]),
|
|
4373
4373
|
children: [
|
|
4374
|
-
/* @__PURE__ */ s.jsx(
|
|
4375
|
-
b && /* @__PURE__ */ s.jsx(
|
|
4376
|
-
/* @__PURE__ */ s.jsxs(
|
|
4377
|
-
/* @__PURE__ */ s.jsx(
|
|
4378
|
-
/* @__PURE__ */ s.jsx(
|
|
4374
|
+
/* @__PURE__ */ s.jsx(gl, {}),
|
|
4375
|
+
b && /* @__PURE__ */ s.jsx(il, { children: t }),
|
|
4376
|
+
/* @__PURE__ */ s.jsxs(sl, { children: [
|
|
4377
|
+
/* @__PURE__ */ s.jsx(al, { children: /* @__PURE__ */ s.jsx(ll, { placeholder: o }) }),
|
|
4378
|
+
/* @__PURE__ */ s.jsx(cl, { children: /* @__PURE__ */ s.jsx(ul, {}) })
|
|
4379
4379
|
] }),
|
|
4380
|
-
/* @__PURE__ */ s.jsx(
|
|
4380
|
+
/* @__PURE__ */ s.jsx(pl, { children: /* @__PURE__ */ s.jsx(dl, { children: p.items.map((v) => /* @__PURE__ */ s.jsxs(fl, { item: v, children: [
|
|
4381
4381
|
v.label,
|
|
4382
|
-
/* @__PURE__ */ s.jsx(
|
|
4382
|
+
/* @__PURE__ */ s.jsx(hl, {})
|
|
4383
4383
|
] }, v.value)) }) })
|
|
4384
4384
|
]
|
|
4385
4385
|
}
|
|
4386
4386
|
),
|
|
4387
|
-
|
|
4388
|
-
f && /* @__PURE__ */ s.jsx(
|
|
4387
|
+
c && /* @__PURE__ */ s.jsx(nl, { children: c }),
|
|
4388
|
+
f && /* @__PURE__ */ s.jsx(rl, { children: f })
|
|
4389
4389
|
] });
|
|
4390
4390
|
}, ro = (e) => `FILTER_PRESETS_${e ?? "default"}`;
|
|
4391
|
-
function
|
|
4391
|
+
function ml(e) {
|
|
4392
4392
|
try {
|
|
4393
4393
|
return JSON.parse(localStorage.getItem(ro(e)) || "[]");
|
|
4394
4394
|
} catch {
|
|
@@ -4398,7 +4398,7 @@ function mc(e) {
|
|
|
4398
4398
|
const Ht = new _r({}), $n = (e) => {
|
|
4399
4399
|
const t = Ht.state[e];
|
|
4400
4400
|
if (t) return t;
|
|
4401
|
-
const n =
|
|
4401
|
+
const n = ml(e);
|
|
4402
4402
|
return Ht.setState((r) => ({
|
|
4403
4403
|
...r,
|
|
4404
4404
|
[e]: n
|
|
@@ -4408,24 +4408,24 @@ const Ht = new _r({}), $n = (e) => {
|
|
|
4408
4408
|
...n,
|
|
4409
4409
|
[e]: t
|
|
4410
4410
|
})), localStorage.setItem(ro(e), JSON.stringify(t));
|
|
4411
|
-
},
|
|
4411
|
+
}, bl = (e, t) => {
|
|
4412
4412
|
const n = $n(e).filter((r) => r.id !== t);
|
|
4413
4413
|
oo(e, n);
|
|
4414
|
-
},
|
|
4414
|
+
}, xl = (e, t) => {
|
|
4415
4415
|
const n = [t, ...$n(e)];
|
|
4416
4416
|
oo(e, n);
|
|
4417
|
-
},
|
|
4418
|
-
const { attributes: r, listeners: o, setNodeRef: i, transform: a, transition:
|
|
4417
|
+
}, yl = x(Ce.Root), wl = x(Ce.HiddenInput), Sl = x(Ce.Control), Dl = x(mt.Root), Cl = x(mt.Track), jl = x(mt.Range), Rl = x(mt.Thumbs), El = x(mt.Control), _l = ({ filter: e, onVisibilityChange: t, onSizeChange: n }) => {
|
|
4418
|
+
const { attributes: r, listeners: o, setNodeRef: i, transform: a, transition: l } = eo({
|
|
4419
4419
|
id: e.id
|
|
4420
|
-
}),
|
|
4420
|
+
}), c = {
|
|
4421
4421
|
transform: Ze.Transform.toString(a),
|
|
4422
|
-
transition:
|
|
4422
|
+
transition: l
|
|
4423
4423
|
};
|
|
4424
4424
|
return /* @__PURE__ */ s.jsxs(
|
|
4425
4425
|
Ie,
|
|
4426
4426
|
{
|
|
4427
4427
|
ref: i,
|
|
4428
|
-
style:
|
|
4428
|
+
style: c,
|
|
4429
4429
|
align: "stretch",
|
|
4430
4430
|
border: "1px solid",
|
|
4431
4431
|
borderColor: "gray.200",
|
|
@@ -4434,21 +4434,21 @@ const Ht = new _r({}), $n = (e) => {
|
|
|
4434
4434
|
mb: 3,
|
|
4435
4435
|
bg: "white",
|
|
4436
4436
|
children: [
|
|
4437
|
-
/* @__PURE__ */ s.jsxs(
|
|
4437
|
+
/* @__PURE__ */ s.jsxs(he, { ...r, ...o, cursor: "grab", userSelect: "none", gap: 2, children: [
|
|
4438
4438
|
/* @__PURE__ */ s.jsx(no, { size: 16 }),
|
|
4439
4439
|
/* @__PURE__ */ s.jsx(q, { fontWeight: "bold", fontSize: "sm", children: e.label || e.id })
|
|
4440
4440
|
] }),
|
|
4441
|
-
/* @__PURE__ */ s.jsxs(
|
|
4441
|
+
/* @__PURE__ */ s.jsxs(he, { justify: "space-between", children: [
|
|
4442
4442
|
/* @__PURE__ */ s.jsx(q, { fontSize: "sm", children: "Visible" }),
|
|
4443
4443
|
/* @__PURE__ */ s.jsxs(
|
|
4444
|
-
|
|
4444
|
+
yl,
|
|
4445
4445
|
{
|
|
4446
4446
|
checked: e.visible,
|
|
4447
4447
|
size: "sm",
|
|
4448
4448
|
onCheckedChange: (u) => t?.(e.id, !!u.checked),
|
|
4449
4449
|
children: [
|
|
4450
|
-
/* @__PURE__ */ s.jsx(
|
|
4451
|
-
/* @__PURE__ */ s.jsx(
|
|
4450
|
+
/* @__PURE__ */ s.jsx(wl, {}),
|
|
4451
|
+
/* @__PURE__ */ s.jsx(Sl, {})
|
|
4452
4452
|
]
|
|
4453
4453
|
}
|
|
4454
4454
|
)
|
|
@@ -4456,16 +4456,16 @@ const Ht = new _r({}), $n = (e) => {
|
|
|
4456
4456
|
/* @__PURE__ */ s.jsxs(Ie, { align: "stretch", gap: 1, children: [
|
|
4457
4457
|
/* @__PURE__ */ s.jsx(q, { fontSize: "sm", children: "Size" }),
|
|
4458
4458
|
/* @__PURE__ */ s.jsx(
|
|
4459
|
-
|
|
4459
|
+
Dl,
|
|
4460
4460
|
{
|
|
4461
4461
|
min: 1,
|
|
4462
4462
|
max: 5,
|
|
4463
4463
|
step: 0.5,
|
|
4464
4464
|
value: [e.size ?? 1],
|
|
4465
4465
|
onValueChange: (u) => n?.(e.id, u.value[0]),
|
|
4466
|
-
children: /* @__PURE__ */ s.jsxs(
|
|
4467
|
-
/* @__PURE__ */ s.jsx(
|
|
4468
|
-
/* @__PURE__ */ s.jsx(
|
|
4466
|
+
children: /* @__PURE__ */ s.jsxs(El, { children: [
|
|
4467
|
+
/* @__PURE__ */ s.jsx(Cl, { children: /* @__PURE__ */ s.jsx(jl, {}) }),
|
|
4468
|
+
/* @__PURE__ */ s.jsx(Rl, {})
|
|
4469
4469
|
] })
|
|
4470
4470
|
}
|
|
4471
4471
|
)
|
|
@@ -4473,7 +4473,7 @@ const Ht = new _r({}), $n = (e) => {
|
|
|
4473
4473
|
]
|
|
4474
4474
|
}
|
|
4475
4475
|
);
|
|
4476
|
-
},
|
|
4476
|
+
}, Tl = x(Me.Root), Ol = x(Me.Trigger), Ml = x(Me.Backdrop), $l = x(Me.Positioner), kl = x(Me.Content), Il = x(Me.Header), Al = x(Me.Title), Ll = x(Me.Body), Nl = x(Me.Footer), zl = x(Me.CloseTrigger), Pl = x(Bt.Root), Yl = x(Bt.List), dn = x(Bt.Trigger), fn = x(Bt.Content), io = (e, t) => {
|
|
4477
4477
|
if (e.customComponent)
|
|
4478
4478
|
return e.customComponent;
|
|
4479
4479
|
switch (e.type) {
|
|
@@ -4501,7 +4501,7 @@ const Ht = new _r({}), $n = (e) => {
|
|
|
4501
4501
|
);
|
|
4502
4502
|
case "select":
|
|
4503
4503
|
return /* @__PURE__ */ s.jsx(
|
|
4504
|
-
|
|
4504
|
+
vl,
|
|
4505
4505
|
{
|
|
4506
4506
|
label: e.label,
|
|
4507
4507
|
value: e.value,
|
|
@@ -4521,7 +4521,7 @@ const Ht = new _r({}), $n = (e) => {
|
|
|
4521
4521
|
default:
|
|
4522
4522
|
return null;
|
|
4523
4523
|
}
|
|
4524
|
-
},
|
|
4524
|
+
}, Fl = ({
|
|
4525
4525
|
filterDrawerSize: e = "sm",
|
|
4526
4526
|
onVisibilityChange: t,
|
|
4527
4527
|
onSizeChange: n,
|
|
@@ -4529,32 +4529,32 @@ const Ht = new _r({}), $n = (e) => {
|
|
|
4529
4529
|
filters: o,
|
|
4530
4530
|
pageKey: i = "default",
|
|
4531
4531
|
currentFilters: a = {},
|
|
4532
|
-
onLoadPreset:
|
|
4533
|
-
activePresetName:
|
|
4532
|
+
onLoadPreset: l,
|
|
4533
|
+
activePresetName: c,
|
|
4534
4534
|
onReorder: u,
|
|
4535
4535
|
open: d,
|
|
4536
4536
|
onOpenChange: f
|
|
4537
4537
|
}) => {
|
|
4538
4538
|
const p = bt(Ht)[i] ?? $n(i), v = () => {
|
|
4539
4539
|
const h = prompt("Preset name?");
|
|
4540
|
-
h &&
|
|
4540
|
+
h && xl(i, {
|
|
4541
4541
|
id: crypto.randomUUID(),
|
|
4542
4542
|
name: h,
|
|
4543
4543
|
date: (/* @__PURE__ */ new Date()).toISOString(),
|
|
4544
4544
|
filters: a
|
|
4545
4545
|
});
|
|
4546
4546
|
};
|
|
4547
|
-
return /* @__PURE__ */ s.jsx(
|
|
4548
|
-
/* @__PURE__ */ s.jsx(
|
|
4547
|
+
return /* @__PURE__ */ s.jsx(he, { wrap: "wrap", children: /* @__PURE__ */ s.jsxs(Tl, { size: e, open: d, onOpenChange: f, children: [
|
|
4548
|
+
/* @__PURE__ */ s.jsx(Ol, { asChild: !0, children: /* @__PURE__ */ s.jsxs(_e, { "aria-label": "Open filters", variant: "outline", size: "xs", ml: 2, p: 2, children: [
|
|
4549
4549
|
/* @__PURE__ */ s.jsx(ea, { size: 16 }),
|
|
4550
4550
|
"Filters"
|
|
4551
4551
|
] }) }),
|
|
4552
4552
|
/* @__PURE__ */ s.jsxs(Qe, { children: [
|
|
4553
|
-
/* @__PURE__ */ s.jsx(
|
|
4554
|
-
/* @__PURE__ */ s.jsx($
|
|
4555
|
-
/* @__PURE__ */ s.jsx(
|
|
4556
|
-
/* @__PURE__ */ s.jsx(
|
|
4557
|
-
/* @__PURE__ */ s.jsxs(
|
|
4553
|
+
/* @__PURE__ */ s.jsx(Ml, {}),
|
|
4554
|
+
/* @__PURE__ */ s.jsx($l, { children: /* @__PURE__ */ s.jsxs(kl, { children: [
|
|
4555
|
+
/* @__PURE__ */ s.jsx(Il, { children: /* @__PURE__ */ s.jsx(Al, { children: "Filters" }) }),
|
|
4556
|
+
/* @__PURE__ */ s.jsx(Ll, { overflowY: "auto", pt: 1, children: /* @__PURE__ */ s.jsxs(Pl, { defaultValue: "view", children: [
|
|
4557
|
+
/* @__PURE__ */ s.jsxs(Yl, { mb: 4, children: [
|
|
4558
4558
|
/* @__PURE__ */ s.jsxs(dn, { value: "view", children: [
|
|
4559
4559
|
/* @__PURE__ */ s.jsx(ra, { size: 16 }),
|
|
4560
4560
|
"Edit"
|
|
@@ -4599,7 +4599,7 @@ const Ht = new _r({}), $n = (e) => {
|
|
|
4599
4599
|
items: o.map((h) => h.id),
|
|
4600
4600
|
strategy: ys,
|
|
4601
4601
|
children: o.map((h) => /* @__PURE__ */ s.jsx(
|
|
4602
|
-
|
|
4602
|
+
_l,
|
|
4603
4603
|
{
|
|
4604
4604
|
filter: h,
|
|
4605
4605
|
onVisibilityChange: t,
|
|
@@ -4615,11 +4615,11 @@ const Ht = new _r({}), $n = (e) => {
|
|
|
4615
4615
|
/* @__PURE__ */ s.jsx(Ke, { size: "sm", colorScheme: "blue", onClick: v, children: "Save Current Filters" }),
|
|
4616
4616
|
p.length === 0 && /* @__PURE__ */ s.jsx(q, { fontSize: "xs", color: "gray.500", children: "No presets saved yet." }),
|
|
4617
4617
|
p.map((h) => /* @__PURE__ */ s.jsxs(
|
|
4618
|
-
|
|
4618
|
+
he,
|
|
4619
4619
|
{
|
|
4620
4620
|
justify: "space-between",
|
|
4621
4621
|
border: "1px solid",
|
|
4622
|
-
borderColor:
|
|
4622
|
+
borderColor: c === h.name ? "blue.300" : "gray.200",
|
|
4623
4623
|
rounded: "md",
|
|
4624
4624
|
p: 2,
|
|
4625
4625
|
children: [
|
|
@@ -4627,13 +4627,13 @@ const Ht = new _r({}), $n = (e) => {
|
|
|
4627
4627
|
/* @__PURE__ */ s.jsx(q, { fontWeight: "bold", fontSize: "sm", children: h.name }),
|
|
4628
4628
|
/* @__PURE__ */ s.jsx(q, { fontSize: "xs", color: "gray.500", children: new Date(h.date).toLocaleDateString() })
|
|
4629
4629
|
] }),
|
|
4630
|
-
/* @__PURE__ */ s.jsxs(
|
|
4630
|
+
/* @__PURE__ */ s.jsxs(he, { children: [
|
|
4631
4631
|
/* @__PURE__ */ s.jsx(
|
|
4632
4632
|
Ke,
|
|
4633
4633
|
{
|
|
4634
4634
|
size: "xs",
|
|
4635
4635
|
variant: "ghost",
|
|
4636
|
-
onClick: () =>
|
|
4636
|
+
onClick: () => l?.(h.filters, h.name),
|
|
4637
4637
|
children: "Load"
|
|
4638
4638
|
}
|
|
4639
4639
|
),
|
|
@@ -4643,7 +4643,7 @@ const Ht = new _r({}), $n = (e) => {
|
|
|
4643
4643
|
size: "xs",
|
|
4644
4644
|
"aria-label": "Delete preset",
|
|
4645
4645
|
variant: "ghost",
|
|
4646
|
-
onClick: () =>
|
|
4646
|
+
onClick: () => bl(i, h.id),
|
|
4647
4647
|
children: /* @__PURE__ */ s.jsx(Ks, { size: 14 })
|
|
4648
4648
|
}
|
|
4649
4649
|
)
|
|
@@ -4654,7 +4654,7 @@ const Ht = new _r({}), $n = (e) => {
|
|
|
4654
4654
|
))
|
|
4655
4655
|
] }) })
|
|
4656
4656
|
] }) }),
|
|
4657
|
-
/* @__PURE__ */ s.jsxs(
|
|
4657
|
+
/* @__PURE__ */ s.jsxs(Nl, { justify: "space-between", children: [
|
|
4658
4658
|
/* @__PURE__ */ s.jsx(
|
|
4659
4659
|
Ke,
|
|
4660
4660
|
{
|
|
@@ -4665,12 +4665,12 @@ const Ht = new _r({}), $n = (e) => {
|
|
|
4665
4665
|
children: "Clear All"
|
|
4666
4666
|
}
|
|
4667
4667
|
),
|
|
4668
|
-
/* @__PURE__ */ s.jsx(
|
|
4668
|
+
/* @__PURE__ */ s.jsx(zl, { asChild: !0, children: /* @__PURE__ */ s.jsx(jr, {}) })
|
|
4669
4669
|
] })
|
|
4670
4670
|
] }) })
|
|
4671
4671
|
] })
|
|
4672
4672
|
] }) });
|
|
4673
|
-
},
|
|
4673
|
+
}, mc = ({
|
|
4674
4674
|
title: e,
|
|
4675
4675
|
filters: t,
|
|
4676
4676
|
onVisibilityChange: n,
|
|
@@ -4678,18 +4678,18 @@ const Ht = new _r({}), $n = (e) => {
|
|
|
4678
4678
|
onSizeChange: o,
|
|
4679
4679
|
onClear: i,
|
|
4680
4680
|
maxToolbarUnits: a,
|
|
4681
|
-
pageKey:
|
|
4682
|
-
currentFilters:
|
|
4681
|
+
pageKey: l,
|
|
4682
|
+
currentFilters: c,
|
|
4683
4683
|
onLoadPreset: u,
|
|
4684
4684
|
activePresetName: d,
|
|
4685
4685
|
filterDrawerSize: f = "sm"
|
|
4686
4686
|
}) => {
|
|
4687
|
-
const [b, p] =
|
|
4688
|
-
return /* @__PURE__ */ s.jsxs(
|
|
4687
|
+
const [b, p] = ie(!1);
|
|
4688
|
+
return /* @__PURE__ */ s.jsxs(he, { wrap: "wrap", pl: 2, pr: 2, width: "100%", justify: "space-between", children: [
|
|
4689
4689
|
e,
|
|
4690
|
-
/* @__PURE__ */ s.jsxs(
|
|
4690
|
+
/* @__PURE__ */ s.jsxs(he, { gapX: 1, children: [
|
|
4691
4691
|
t.filter((v) => v.visible !== !1).map((v) => /* @__PURE__ */ s.jsx(
|
|
4692
|
-
|
|
4692
|
+
he,
|
|
4693
4693
|
{
|
|
4694
4694
|
flex: v.size ?? 1,
|
|
4695
4695
|
minW: `${(v.size ?? 1) * 100}px`,
|
|
@@ -4699,7 +4699,7 @@ const Ht = new _r({}), $n = (e) => {
|
|
|
4699
4699
|
v.id
|
|
4700
4700
|
)),
|
|
4701
4701
|
/* @__PURE__ */ s.jsx(
|
|
4702
|
-
|
|
4702
|
+
Fl,
|
|
4703
4703
|
{
|
|
4704
4704
|
filterDrawerSize: f,
|
|
4705
4705
|
onVisibilityChange: n,
|
|
@@ -4707,9 +4707,9 @@ const Ht = new _r({}), $n = (e) => {
|
|
|
4707
4707
|
onSizeChange: o,
|
|
4708
4708
|
onClear: i,
|
|
4709
4709
|
maxToolbarUnits: a,
|
|
4710
|
-
pageKey:
|
|
4710
|
+
pageKey: l,
|
|
4711
4711
|
filters: t,
|
|
4712
|
-
currentFilters:
|
|
4712
|
+
currentFilters: c,
|
|
4713
4713
|
onLoadPreset: u,
|
|
4714
4714
|
activePresetName: d,
|
|
4715
4715
|
open: b,
|
|
@@ -4720,15 +4720,15 @@ const Ht = new _r({}), $n = (e) => {
|
|
|
4720
4720
|
)
|
|
4721
4721
|
] })
|
|
4722
4722
|
] });
|
|
4723
|
-
},
|
|
4723
|
+
}, bc = (e, t) => {
|
|
4724
4724
|
localStorage.setItem(`FILTER_ORDER_${e}`, JSON.stringify(t));
|
|
4725
|
-
},
|
|
4725
|
+
}, xc = (e) => {
|
|
4726
4726
|
try {
|
|
4727
4727
|
return JSON.parse(localStorage.getItem(`FILTER_ORDER_${e}`) || "[]");
|
|
4728
4728
|
} catch {
|
|
4729
4729
|
return [];
|
|
4730
4730
|
}
|
|
4731
|
-
},
|
|
4731
|
+
}, yc = ({
|
|
4732
4732
|
onClick: e,
|
|
4733
4733
|
size: t = "xs",
|
|
4734
4734
|
variant: n = "solid",
|
|
@@ -4736,8 +4736,8 @@ const Ht = new _r({}), $n = (e) => {
|
|
|
4736
4736
|
leftIcon: o,
|
|
4737
4737
|
rightIcon: i,
|
|
4738
4738
|
isDisabled: a,
|
|
4739
|
-
colorScheme:
|
|
4740
|
-
loading:
|
|
4739
|
+
colorScheme: l,
|
|
4740
|
+
loading: c,
|
|
4741
4741
|
loadingText: u,
|
|
4742
4742
|
rounded: d,
|
|
4743
4743
|
type: f = "button"
|
|
@@ -4748,19 +4748,19 @@ const Ht = new _r({}), $n = (e) => {
|
|
|
4748
4748
|
size: t,
|
|
4749
4749
|
variant: n,
|
|
4750
4750
|
disabled: a,
|
|
4751
|
-
colorPalette:
|
|
4752
|
-
loading:
|
|
4751
|
+
colorPalette: l,
|
|
4752
|
+
loading: c,
|
|
4753
4753
|
loadingText: u,
|
|
4754
4754
|
rounded: d,
|
|
4755
4755
|
type: f,
|
|
4756
|
-
children: /* @__PURE__ */ s.jsxs(
|
|
4756
|
+
children: /* @__PURE__ */ s.jsxs(he, { gap: 1, children: [
|
|
4757
4757
|
o,
|
|
4758
4758
|
r,
|
|
4759
4759
|
i
|
|
4760
4760
|
] })
|
|
4761
4761
|
}
|
|
4762
|
-
),
|
|
4763
|
-
function
|
|
4762
|
+
), Vl = x(Ae.Root), Hl = x(Ae.Backdrop), Wl = x(Ae.Positioner), Bl = x(Ae.Content), Ul = x(Ae.Header), Gl = x(Ae.Body), Xl = x(Ae.Footer), ql = x(Ae.Title), Kl = x(Ae.CloseTrigger);
|
|
4763
|
+
function wc({
|
|
4764
4764
|
open: e,
|
|
4765
4765
|
onClose: t,
|
|
4766
4766
|
onConfirm: n,
|
|
@@ -4768,16 +4768,16 @@ function wl({
|
|
|
4768
4768
|
entityName: o,
|
|
4769
4769
|
confirmText: i = "DELETE",
|
|
4770
4770
|
confirmLabel: a = "Delete",
|
|
4771
|
-
isLoading:
|
|
4771
|
+
isLoading: l = !1
|
|
4772
4772
|
}) {
|
|
4773
|
-
const [
|
|
4774
|
-
return /* @__PURE__ */ s.jsx(
|
|
4775
|
-
/* @__PURE__ */ s.jsx(
|
|
4776
|
-
/* @__PURE__ */ s.jsx(
|
|
4777
|
-
/* @__PURE__ */ s.jsx(
|
|
4778
|
-
/* @__PURE__ */ s.jsx(
|
|
4773
|
+
const [c, u] = ie("");
|
|
4774
|
+
return /* @__PURE__ */ s.jsx(Vl, { open: e, placement: "center", onOpenChange: (d) => !d.open && t(), children: /* @__PURE__ */ s.jsxs(Qe, { children: [
|
|
4775
|
+
/* @__PURE__ */ s.jsx(Hl, {}),
|
|
4776
|
+
/* @__PURE__ */ s.jsx(Wl, { children: /* @__PURE__ */ s.jsxs(Bl, { maxW: "520px", children: [
|
|
4777
|
+
/* @__PURE__ */ s.jsx(Ul, { borderBottom: "1px solid", borderColor: "red.200", boxShadow: "sm", children: /* @__PURE__ */ s.jsx(ql, { color: "red.600", children: r }) }),
|
|
4778
|
+
/* @__PURE__ */ s.jsx(Gl, { children: /* @__PURE__ */ s.jsxs(gn, { gap: 4, boxShadow: "lg", border: "1px solid gray.200", borderRadius: "md", p: 4, children: [
|
|
4779
4779
|
/* @__PURE__ */ s.jsx(Ee, { border: "1px solid", borderColor: "red.200", bg: "red.50", borderRadius: "md", p: 4, children: /* @__PURE__ */ s.jsxs(gn, { direction: "row", gap: 3, align: "flex-start", children: [
|
|
4780
|
-
/* @__PURE__ */ s.jsx(Ee, { color: "red.600", mt: "2px", children: /* @__PURE__ */ s.jsx(
|
|
4780
|
+
/* @__PURE__ */ s.jsx(Ee, { color: "red.600", mt: "2px", children: /* @__PURE__ */ s.jsx(ca, { size: 20 }) }),
|
|
4781
4781
|
/* @__PURE__ */ s.jsxs(Ee, { children: [
|
|
4782
4782
|
/* @__PURE__ */ s.jsx(q, { fontWeight: "semibold", color: "red.700", children: "Are you sure?" }),
|
|
4783
4783
|
/* @__PURE__ */ s.jsxs(q, { fontSize: "sm", color: "red.600", children: [
|
|
@@ -4798,7 +4798,7 @@ function wl({
|
|
|
4798
4798
|
Sn,
|
|
4799
4799
|
{
|
|
4800
4800
|
placeholder: `Type ${i} here`,
|
|
4801
|
-
value:
|
|
4801
|
+
value: c,
|
|
4802
4802
|
onChange: (d) => u(d.target.value),
|
|
4803
4803
|
size: "xs"
|
|
4804
4804
|
}
|
|
@@ -4806,7 +4806,7 @@ function wl({
|
|
|
4806
4806
|
] })
|
|
4807
4807
|
] }) }),
|
|
4808
4808
|
/* @__PURE__ */ s.jsxs(
|
|
4809
|
-
|
|
4809
|
+
Xl,
|
|
4810
4810
|
{
|
|
4811
4811
|
justifyContent: "flex-end",
|
|
4812
4812
|
gap: 3,
|
|
@@ -4822,7 +4822,7 @@ function wl({
|
|
|
4822
4822
|
style: {
|
|
4823
4823
|
backgroundColor: "#FF0000"
|
|
4824
4824
|
},
|
|
4825
|
-
loading:
|
|
4825
|
+
loading: l,
|
|
4826
4826
|
onClick: n,
|
|
4827
4827
|
children: a
|
|
4828
4828
|
}
|
|
@@ -4830,16 +4830,16 @@ function wl({
|
|
|
4830
4830
|
]
|
|
4831
4831
|
}
|
|
4832
4832
|
),
|
|
4833
|
-
/* @__PURE__ */ s.jsx(
|
|
4833
|
+
/* @__PURE__ */ s.jsx(Kl, { asChild: !0, children: /* @__PURE__ */ s.jsx(jr, { size: "sm" }) })
|
|
4834
4834
|
] }) })
|
|
4835
4835
|
] }) });
|
|
4836
4836
|
}
|
|
4837
|
-
function
|
|
4837
|
+
function Sc({
|
|
4838
4838
|
refetch: e,
|
|
4839
4839
|
isLoading: t = !1,
|
|
4840
4840
|
label: n = "Refresh"
|
|
4841
4841
|
}) {
|
|
4842
|
-
const [r, o] =
|
|
4842
|
+
const [r, o] = ie(!1), i = async () => {
|
|
4843
4843
|
o(!0);
|
|
4844
4844
|
try {
|
|
4845
4845
|
await e();
|
|
@@ -4868,54 +4868,54 @@ function Sl({
|
|
|
4868
4868
|
}
|
|
4869
4869
|
);
|
|
4870
4870
|
}
|
|
4871
|
-
var kt = { exports: {} },
|
|
4872
|
-
function
|
|
4871
|
+
var kt = { exports: {} }, Jl = kt.exports, br;
|
|
4872
|
+
function Zl() {
|
|
4873
4873
|
return br || (br = 1, (function(e, t) {
|
|
4874
4874
|
(function(n, r) {
|
|
4875
4875
|
e.exports = r();
|
|
4876
|
-
})(
|
|
4877
|
-
var n = 1e3, r = 6e4, o = 36e5, i = "millisecond", a = "second",
|
|
4876
|
+
})(Jl, (function() {
|
|
4877
|
+
var n = 1e3, r = 6e4, o = 36e5, i = "millisecond", a = "second", l = "minute", c = "hour", u = "day", d = "week", f = "month", b = "quarter", p = "year", v = "date", h = "Invalid Date", m = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, w = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, _ = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function($) {
|
|
4878
4878
|
var D = ["th", "st", "nd", "rd"], y = $ % 100;
|
|
4879
4879
|
return "[" + $ + (D[(y - 20) % 10] || D[y] || D[0]) + "]";
|
|
4880
4880
|
} }, R = function($, D, y) {
|
|
4881
|
-
var
|
|
4882
|
-
return !
|
|
4881
|
+
var j = String($);
|
|
4882
|
+
return !j || j.length >= D ? $ : "" + Array(D + 1 - j.length).join(y) + $;
|
|
4883
4883
|
}, T = { s: R, z: function($) {
|
|
4884
|
-
var D = -$.utcOffset(), y = Math.abs(D),
|
|
4885
|
-
return (D <= 0 ? "+" : "-") + R(
|
|
4884
|
+
var D = -$.utcOffset(), y = Math.abs(D), j = Math.floor(y / 60), C = y % 60;
|
|
4885
|
+
return (D <= 0 ? "+" : "-") + R(j, 2, "0") + ":" + R(C, 2, "0");
|
|
4886
4886
|
}, m: function $(D, y) {
|
|
4887
4887
|
if (D.date() < y.date()) return -$(y, D);
|
|
4888
|
-
var
|
|
4889
|
-
return +(-(
|
|
4888
|
+
var j = 12 * (y.year() - D.year()) + (y.month() - D.month()), C = D.clone().add(j, f), I = y - C < 0, N = D.clone().add(j + (I ? -1 : 1), f);
|
|
4889
|
+
return +(-(j + (y - C) / (I ? C - N : N - C)) || 0);
|
|
4890
4890
|
}, a: function($) {
|
|
4891
4891
|
return $ < 0 ? Math.ceil($) || 0 : Math.floor($);
|
|
4892
4892
|
}, p: function($) {
|
|
4893
|
-
return { M: f, y: p, w: d, d: u, D: v, h:
|
|
4893
|
+
return { M: f, y: p, w: d, d: u, D: v, h: c, m: l, s: a, ms: i, Q: b }[$] || String($ || "").toLowerCase().replace(/s$/, "");
|
|
4894
4894
|
}, u: function($) {
|
|
4895
4895
|
return $ === void 0;
|
|
4896
|
-
} }, O = "en",
|
|
4897
|
-
|
|
4898
|
-
var M = "$isDayjsObject",
|
|
4896
|
+
} }, O = "en", E = {};
|
|
4897
|
+
E[O] = _;
|
|
4898
|
+
var M = "$isDayjsObject", A = function($) {
|
|
4899
4899
|
return $ instanceof Q || !(!$ || !$[M]);
|
|
4900
|
-
}, W = function $(D, y,
|
|
4900
|
+
}, W = function $(D, y, j) {
|
|
4901
4901
|
var C;
|
|
4902
4902
|
if (!D) return O;
|
|
4903
4903
|
if (typeof D == "string") {
|
|
4904
4904
|
var I = D.toLowerCase();
|
|
4905
|
-
|
|
4906
|
-
var
|
|
4907
|
-
if (!C &&
|
|
4905
|
+
E[I] && (C = I), y && (E[I] = y, C = I);
|
|
4906
|
+
var N = D.split("-");
|
|
4907
|
+
if (!C && N.length > 1) return $(N[0]);
|
|
4908
4908
|
} else {
|
|
4909
4909
|
var g = D.name;
|
|
4910
|
-
|
|
4910
|
+
E[g] = D, C = g;
|
|
4911
4911
|
}
|
|
4912
|
-
return !
|
|
4912
|
+
return !j && C && (O = C), C || !j && O;
|
|
4913
4913
|
}, Y = function($, D) {
|
|
4914
|
-
if (
|
|
4914
|
+
if (A($)) return $.clone();
|
|
4915
4915
|
var y = typeof D == "object" ? D : {};
|
|
4916
4916
|
return y.date = $, y.args = arguments, new Q(y);
|
|
4917
4917
|
}, k = T;
|
|
4918
|
-
k.l = W, k.i =
|
|
4918
|
+
k.l = W, k.i = A, k.w = function($, D) {
|
|
4919
4919
|
return Y($, { locale: D.$L, utc: D.$u, x: D.$x, $offset: D.$offset });
|
|
4920
4920
|
};
|
|
4921
4921
|
var Q = (function() {
|
|
@@ -4924,16 +4924,16 @@ function Zc() {
|
|
|
4924
4924
|
}
|
|
4925
4925
|
var D = $.prototype;
|
|
4926
4926
|
return D.parse = function(y) {
|
|
4927
|
-
this.$d = (function(
|
|
4928
|
-
var C =
|
|
4927
|
+
this.$d = (function(j) {
|
|
4928
|
+
var C = j.date, I = j.utc;
|
|
4929
4929
|
if (C === null) return /* @__PURE__ */ new Date(NaN);
|
|
4930
4930
|
if (k.u(C)) return /* @__PURE__ */ new Date();
|
|
4931
4931
|
if (C instanceof Date) return new Date(C);
|
|
4932
4932
|
if (typeof C == "string" && !/Z$/i.test(C)) {
|
|
4933
|
-
var
|
|
4934
|
-
if (
|
|
4935
|
-
var g =
|
|
4936
|
-
return I ? new Date(Date.UTC(
|
|
4933
|
+
var N = C.match(m);
|
|
4934
|
+
if (N) {
|
|
4935
|
+
var g = N[2] - 1 || 0, S = (N[7] || "0").substring(0, 3);
|
|
4936
|
+
return I ? new Date(Date.UTC(N[1], g, N[3] || 1, N[4] || 0, N[5] || 0, N[6] || 0, S)) : new Date(N[1], g, N[3] || 1, N[4] || 0, N[5] || 0, N[6] || 0, S);
|
|
4937
4937
|
}
|
|
4938
4938
|
}
|
|
4939
4939
|
return new Date(C);
|
|
@@ -4945,40 +4945,40 @@ function Zc() {
|
|
|
4945
4945
|
return k;
|
|
4946
4946
|
}, D.isValid = function() {
|
|
4947
4947
|
return this.$d.toString() !== h;
|
|
4948
|
-
}, D.isSame = function(y,
|
|
4948
|
+
}, D.isSame = function(y, j) {
|
|
4949
4949
|
var C = Y(y);
|
|
4950
|
-
return this.startOf(
|
|
4951
|
-
}, D.isAfter = function(y,
|
|
4952
|
-
return Y(y) < this.startOf(
|
|
4953
|
-
}, D.isBefore = function(y,
|
|
4954
|
-
return this.endOf(
|
|
4955
|
-
}, D.$g = function(y,
|
|
4956
|
-
return k.u(y) ? this[
|
|
4950
|
+
return this.startOf(j) <= C && C <= this.endOf(j);
|
|
4951
|
+
}, D.isAfter = function(y, j) {
|
|
4952
|
+
return Y(y) < this.startOf(j);
|
|
4953
|
+
}, D.isBefore = function(y, j) {
|
|
4954
|
+
return this.endOf(j) < Y(y);
|
|
4955
|
+
}, D.$g = function(y, j, C) {
|
|
4956
|
+
return k.u(y) ? this[j] : this.set(C, y);
|
|
4957
4957
|
}, D.unix = function() {
|
|
4958
4958
|
return Math.floor(this.valueOf() / 1e3);
|
|
4959
4959
|
}, D.valueOf = function() {
|
|
4960
4960
|
return this.$d.getTime();
|
|
4961
|
-
}, D.startOf = function(y,
|
|
4962
|
-
var C = this, I = !!k.u(
|
|
4963
|
-
var
|
|
4964
|
-
return I ?
|
|
4961
|
+
}, D.startOf = function(y, j) {
|
|
4962
|
+
var C = this, I = !!k.u(j) || j, N = k.p(y), g = function(Z, z) {
|
|
4963
|
+
var fe = k.w(C.$u ? Date.UTC(C.$y, z, Z) : new Date(C.$y, z, Z), C);
|
|
4964
|
+
return I ? fe : fe.endOf(u);
|
|
4965
4965
|
}, S = function(Z, z) {
|
|
4966
4966
|
return k.w(C.toDate()[Z].apply(C.toDate("s"), (I ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(z)), C);
|
|
4967
|
-
},
|
|
4968
|
-
switch (
|
|
4967
|
+
}, L = this.$W, P = this.$M, G = this.$D, X = "set" + (this.$u ? "UTC" : "");
|
|
4968
|
+
switch (N) {
|
|
4969
4969
|
case p:
|
|
4970
4970
|
return I ? g(1, 0) : g(31, 11);
|
|
4971
4971
|
case f:
|
|
4972
4972
|
return I ? g(1, P) : g(0, P + 1);
|
|
4973
4973
|
case d:
|
|
4974
|
-
var F = this.$locale().weekStart || 0, J = (
|
|
4974
|
+
var F = this.$locale().weekStart || 0, J = (L < F ? L + 7 : L) - F;
|
|
4975
4975
|
return g(I ? G - J : G + (6 - J), P);
|
|
4976
4976
|
case u:
|
|
4977
4977
|
case v:
|
|
4978
4978
|
return S(X + "Hours", 0);
|
|
4979
|
-
case l:
|
|
4980
|
-
return S(X + "Minutes", 1);
|
|
4981
4979
|
case c:
|
|
4980
|
+
return S(X + "Minutes", 1);
|
|
4981
|
+
case l:
|
|
4982
4982
|
return S(X + "Seconds", 2);
|
|
4983
4983
|
case a:
|
|
4984
4984
|
return S(X + "Milliseconds", 3);
|
|
@@ -4987,70 +4987,70 @@ function Zc() {
|
|
|
4987
4987
|
}
|
|
4988
4988
|
}, D.endOf = function(y) {
|
|
4989
4989
|
return this.startOf(y, !1);
|
|
4990
|
-
}, D.$set = function(y,
|
|
4991
|
-
var C, I = k.p(y),
|
|
4990
|
+
}, D.$set = function(y, j) {
|
|
4991
|
+
var C, I = k.p(y), N = "set" + (this.$u ? "UTC" : ""), g = (C = {}, C[u] = N + "Date", C[v] = N + "Date", C[f] = N + "Month", C[p] = N + "FullYear", C[c] = N + "Hours", C[l] = N + "Minutes", C[a] = N + "Seconds", C[i] = N + "Milliseconds", C)[I], S = I === u ? this.$D + (j - this.$W) : j;
|
|
4992
4992
|
if (I === f || I === p) {
|
|
4993
|
-
var
|
|
4994
|
-
|
|
4993
|
+
var L = this.clone().set(v, 1);
|
|
4994
|
+
L.$d[g](S), L.init(), this.$d = L.set(v, Math.min(this.$D, L.daysInMonth())).$d;
|
|
4995
4995
|
} else g && this.$d[g](S);
|
|
4996
4996
|
return this.init(), this;
|
|
4997
|
-
}, D.set = function(y,
|
|
4998
|
-
return this.clone().$set(y,
|
|
4997
|
+
}, D.set = function(y, j) {
|
|
4998
|
+
return this.clone().$set(y, j);
|
|
4999
4999
|
}, D.get = function(y) {
|
|
5000
5000
|
return this[k.p(y)]();
|
|
5001
|
-
}, D.add = function(y,
|
|
5001
|
+
}, D.add = function(y, j) {
|
|
5002
5002
|
var C, I = this;
|
|
5003
5003
|
y = Number(y);
|
|
5004
|
-
var
|
|
5004
|
+
var N = k.p(j), g = function(P) {
|
|
5005
5005
|
var G = Y(I);
|
|
5006
5006
|
return k.w(G.date(G.date() + Math.round(P * y)), I);
|
|
5007
5007
|
};
|
|
5008
|
-
if (
|
|
5009
|
-
if (
|
|
5010
|
-
if (
|
|
5011
|
-
if (
|
|
5012
|
-
var S = (C = {}, C[
|
|
5013
|
-
return k.w(
|
|
5014
|
-
}, D.subtract = function(y,
|
|
5015
|
-
return this.add(-1 * y,
|
|
5008
|
+
if (N === f) return this.set(f, this.$M + y);
|
|
5009
|
+
if (N === p) return this.set(p, this.$y + y);
|
|
5010
|
+
if (N === u) return g(1);
|
|
5011
|
+
if (N === d) return g(7);
|
|
5012
|
+
var S = (C = {}, C[l] = r, C[c] = o, C[a] = n, C)[N] || 1, L = this.$d.getTime() + y * S;
|
|
5013
|
+
return k.w(L, this);
|
|
5014
|
+
}, D.subtract = function(y, j) {
|
|
5015
|
+
return this.add(-1 * y, j);
|
|
5016
5016
|
}, D.format = function(y) {
|
|
5017
|
-
var
|
|
5017
|
+
var j = this, C = this.$locale();
|
|
5018
5018
|
if (!this.isValid()) return C.invalidDate || h;
|
|
5019
|
-
var I = y || "YYYY-MM-DDTHH:mm:ssZ",
|
|
5020
|
-
return z && (z[
|
|
5019
|
+
var I = y || "YYYY-MM-DDTHH:mm:ssZ", N = k.z(this), g = this.$H, S = this.$m, L = this.$M, P = C.weekdays, G = C.months, X = C.meridiem, F = function(z, fe, le, we) {
|
|
5020
|
+
return z && (z[fe] || z(j, I)) || le[fe].slice(0, we);
|
|
5021
5021
|
}, J = function(z) {
|
|
5022
5022
|
return k.s(g % 12 || 12, z, "0");
|
|
5023
|
-
}, Z = X || function(z,
|
|
5023
|
+
}, Z = X || function(z, fe, le) {
|
|
5024
5024
|
var we = z < 12 ? "AM" : "PM";
|
|
5025
|
-
return
|
|
5025
|
+
return le ? we.toLowerCase() : we;
|
|
5026
5026
|
};
|
|
5027
|
-
return I.replace(w, (function(z,
|
|
5028
|
-
return
|
|
5029
|
-
switch (
|
|
5027
|
+
return I.replace(w, (function(z, fe) {
|
|
5028
|
+
return fe || (function(le) {
|
|
5029
|
+
switch (le) {
|
|
5030
5030
|
case "YY":
|
|
5031
|
-
return String(
|
|
5031
|
+
return String(j.$y).slice(-2);
|
|
5032
5032
|
case "YYYY":
|
|
5033
|
-
return k.s(
|
|
5033
|
+
return k.s(j.$y, 4, "0");
|
|
5034
5034
|
case "M":
|
|
5035
|
-
return
|
|
5035
|
+
return L + 1;
|
|
5036
5036
|
case "MM":
|
|
5037
|
-
return k.s(
|
|
5037
|
+
return k.s(L + 1, 2, "0");
|
|
5038
5038
|
case "MMM":
|
|
5039
|
-
return F(C.monthsShort,
|
|
5039
|
+
return F(C.monthsShort, L, G, 3);
|
|
5040
5040
|
case "MMMM":
|
|
5041
|
-
return F(G,
|
|
5041
|
+
return F(G, L);
|
|
5042
5042
|
case "D":
|
|
5043
|
-
return
|
|
5043
|
+
return j.$D;
|
|
5044
5044
|
case "DD":
|
|
5045
|
-
return k.s(
|
|
5045
|
+
return k.s(j.$D, 2, "0");
|
|
5046
5046
|
case "d":
|
|
5047
|
-
return String(
|
|
5047
|
+
return String(j.$W);
|
|
5048
5048
|
case "dd":
|
|
5049
|
-
return F(C.weekdaysMin,
|
|
5049
|
+
return F(C.weekdaysMin, j.$W, P, 2);
|
|
5050
5050
|
case "ddd":
|
|
5051
|
-
return F(C.weekdaysShort,
|
|
5051
|
+
return F(C.weekdaysShort, j.$W, P, 3);
|
|
5052
5052
|
case "dddd":
|
|
5053
|
-
return P[
|
|
5053
|
+
return P[j.$W];
|
|
5054
5054
|
case "H":
|
|
5055
5055
|
return String(g);
|
|
5056
5056
|
case "HH":
|
|
@@ -5068,22 +5068,22 @@ function Zc() {
|
|
|
5068
5068
|
case "mm":
|
|
5069
5069
|
return k.s(S, 2, "0");
|
|
5070
5070
|
case "s":
|
|
5071
|
-
return String(
|
|
5071
|
+
return String(j.$s);
|
|
5072
5072
|
case "ss":
|
|
5073
|
-
return k.s(
|
|
5073
|
+
return k.s(j.$s, 2, "0");
|
|
5074
5074
|
case "SSS":
|
|
5075
|
-
return k.s(
|
|
5075
|
+
return k.s(j.$ms, 3, "0");
|
|
5076
5076
|
case "Z":
|
|
5077
|
-
return
|
|
5077
|
+
return N;
|
|
5078
5078
|
}
|
|
5079
5079
|
return null;
|
|
5080
|
-
})(z) ||
|
|
5080
|
+
})(z) || N.replace(":", "");
|
|
5081
5081
|
}));
|
|
5082
5082
|
}, D.utcOffset = function() {
|
|
5083
5083
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
5084
|
-
}, D.diff = function(y,
|
|
5085
|
-
var I,
|
|
5086
|
-
return k.m(
|
|
5084
|
+
}, D.diff = function(y, j, C) {
|
|
5085
|
+
var I, N = this, g = k.p(j), S = Y(y), L = (S.utcOffset() - this.utcOffset()) * r, P = this - S, G = function() {
|
|
5086
|
+
return k.m(N, S);
|
|
5087
5087
|
};
|
|
5088
5088
|
switch (g) {
|
|
5089
5089
|
case p:
|
|
@@ -5096,15 +5096,15 @@ function Zc() {
|
|
|
5096
5096
|
I = G() / 3;
|
|
5097
5097
|
break;
|
|
5098
5098
|
case d:
|
|
5099
|
-
I = (P -
|
|
5099
|
+
I = (P - L) / 6048e5;
|
|
5100
5100
|
break;
|
|
5101
5101
|
case u:
|
|
5102
|
-
I = (P -
|
|
5102
|
+
I = (P - L) / 864e5;
|
|
5103
5103
|
break;
|
|
5104
|
-
case
|
|
5104
|
+
case c:
|
|
5105
5105
|
I = P / o;
|
|
5106
5106
|
break;
|
|
5107
|
-
case
|
|
5107
|
+
case l:
|
|
5108
5108
|
I = P / r;
|
|
5109
5109
|
break;
|
|
5110
5110
|
case a:
|
|
@@ -5117,10 +5117,10 @@ function Zc() {
|
|
|
5117
5117
|
}, D.daysInMonth = function() {
|
|
5118
5118
|
return this.endOf(f).$D;
|
|
5119
5119
|
}, D.$locale = function() {
|
|
5120
|
-
return
|
|
5121
|
-
}, D.locale = function(y,
|
|
5120
|
+
return E[this.$L];
|
|
5121
|
+
}, D.locale = function(y, j) {
|
|
5122
5122
|
if (!y) return this.$L;
|
|
5123
|
-
var C = this.clone(), I = W(y,
|
|
5123
|
+
var C = this.clone(), I = W(y, j, !0);
|
|
5124
5124
|
return I && (C.$L = I), C;
|
|
5125
5125
|
}, D.clone = function() {
|
|
5126
5126
|
return k.w(this.$d, this);
|
|
@@ -5133,78 +5133,78 @@ function Zc() {
|
|
|
5133
5133
|
}, D.toString = function() {
|
|
5134
5134
|
return this.$d.toUTCString();
|
|
5135
5135
|
}, $;
|
|
5136
|
-
})(),
|
|
5137
|
-
return Y.prototype =
|
|
5138
|
-
|
|
5136
|
+
})(), se = Q.prototype;
|
|
5137
|
+
return Y.prototype = se, [["$ms", i], ["$s", a], ["$m", l], ["$H", c], ["$W", u], ["$M", f], ["$y", p], ["$D", v]].forEach((function($) {
|
|
5138
|
+
se[$[1]] = function(D) {
|
|
5139
5139
|
return this.$g(D, $[0], $[1]);
|
|
5140
5140
|
};
|
|
5141
5141
|
})), Y.extend = function($, D) {
|
|
5142
5142
|
return $.$i || ($(D, Q, Y), $.$i = !0), Y;
|
|
5143
|
-
}, Y.locale = W, Y.isDayjs =
|
|
5143
|
+
}, Y.locale = W, Y.isDayjs = A, Y.unix = function($) {
|
|
5144
5144
|
return Y(1e3 * $);
|
|
5145
|
-
}, Y.en =
|
|
5145
|
+
}, Y.en = E[O], Y.Ls = E, Y.p = {}, Y;
|
|
5146
5146
|
}));
|
|
5147
5147
|
})(kt)), kt.exports;
|
|
5148
5148
|
}
|
|
5149
|
-
var
|
|
5150
|
-
const Jt = /* @__PURE__ */ Ut(
|
|
5151
|
-
var It = { exports: {} },
|
|
5152
|
-
function
|
|
5149
|
+
var Ql = Zl();
|
|
5150
|
+
const Jt = /* @__PURE__ */ Ut(Ql);
|
|
5151
|
+
var It = { exports: {} }, ec = It.exports, xr;
|
|
5152
|
+
function tc() {
|
|
5153
5153
|
return xr || (xr = 1, (function(e, t) {
|
|
5154
5154
|
(function(n, r) {
|
|
5155
5155
|
e.exports = r();
|
|
5156
|
-
})(
|
|
5156
|
+
})(ec, (function() {
|
|
5157
5157
|
return function(n, r, o) {
|
|
5158
5158
|
n = n || {};
|
|
5159
5159
|
var i = r.prototype, a = { future: "in %s", past: "%s ago", s: "a few seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", M: "a month", MM: "%d months", y: "a year", yy: "%d years" };
|
|
5160
|
-
function
|
|
5160
|
+
function l(u, d, f, b) {
|
|
5161
5161
|
return i.fromToBase(u, d, f, b);
|
|
5162
5162
|
}
|
|
5163
5163
|
o.en.relativeTime = a, i.fromToBase = function(u, d, f, b, p) {
|
|
5164
5164
|
for (var v, h, m, w = f.$locale().relativeTime || a, _ = n.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], R = _.length, T = 0; T < R; T += 1) {
|
|
5165
5165
|
var O = _[T];
|
|
5166
5166
|
O.d && (v = b ? o(u).diff(f, O.d, !0) : f.diff(u, O.d, !0));
|
|
5167
|
-
var
|
|
5168
|
-
if (m = v > 0,
|
|
5169
|
-
|
|
5167
|
+
var E = (n.rounding || Math.round)(Math.abs(v));
|
|
5168
|
+
if (m = v > 0, E <= O.r || !O.r) {
|
|
5169
|
+
E <= 1 && T > 0 && (O = _[T - 1]);
|
|
5170
5170
|
var M = w[O.l];
|
|
5171
|
-
p && (
|
|
5171
|
+
p && (E = p("" + E)), h = typeof M == "string" ? M.replace("%d", E) : M(E, d, O.l, m);
|
|
5172
5172
|
break;
|
|
5173
5173
|
}
|
|
5174
5174
|
}
|
|
5175
5175
|
if (d) return h;
|
|
5176
|
-
var
|
|
5177
|
-
return typeof
|
|
5176
|
+
var A = m ? w.future : w.past;
|
|
5177
|
+
return typeof A == "function" ? A(h) : A.replace("%s", h);
|
|
5178
5178
|
}, i.to = function(u, d) {
|
|
5179
|
-
return
|
|
5179
|
+
return l(u, d, this, !0);
|
|
5180
5180
|
}, i.from = function(u, d) {
|
|
5181
|
-
return
|
|
5181
|
+
return l(u, d, this);
|
|
5182
5182
|
};
|
|
5183
|
-
var
|
|
5183
|
+
var c = function(u) {
|
|
5184
5184
|
return u.$u ? o.utc() : o();
|
|
5185
5185
|
};
|
|
5186
5186
|
i.toNow = function(u) {
|
|
5187
|
-
return this.to(
|
|
5187
|
+
return this.to(c(this), u);
|
|
5188
5188
|
}, i.fromNow = function(u) {
|
|
5189
|
-
return this.from(
|
|
5189
|
+
return this.from(c(this), u);
|
|
5190
5190
|
};
|
|
5191
5191
|
};
|
|
5192
5192
|
}));
|
|
5193
5193
|
})(It)), It.exports;
|
|
5194
5194
|
}
|
|
5195
|
-
var
|
|
5196
|
-
const
|
|
5197
|
-
var At = { exports: {} },
|
|
5198
|
-
function
|
|
5195
|
+
var nc = tc();
|
|
5196
|
+
const rc = /* @__PURE__ */ Ut(nc);
|
|
5197
|
+
var At = { exports: {} }, oc = At.exports, yr;
|
|
5198
|
+
function ic() {
|
|
5199
5199
|
return yr || (yr = 1, (function(e, t) {
|
|
5200
5200
|
(function(n, r) {
|
|
5201
5201
|
e.exports = r();
|
|
5202
|
-
})(
|
|
5202
|
+
})(oc, (function() {
|
|
5203
5203
|
var n = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" };
|
|
5204
5204
|
return function(r, o, i) {
|
|
5205
|
-
var a = o.prototype,
|
|
5206
|
-
i.en.formats = n, a.format = function(
|
|
5207
|
-
|
|
5205
|
+
var a = o.prototype, l = a.format;
|
|
5206
|
+
i.en.formats = n, a.format = function(c) {
|
|
5207
|
+
c === void 0 && (c = "YYYY-MM-DDTHH:mm:ssZ");
|
|
5208
5208
|
var u = this.$locale().formats, d = (function(f, b) {
|
|
5209
5209
|
return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(p, v, h) {
|
|
5210
5210
|
var m = h && h.toUpperCase();
|
|
@@ -5212,55 +5212,55 @@ function il() {
|
|
|
5212
5212
|
return _ || R.slice(1);
|
|
5213
5213
|
}));
|
|
5214
5214
|
}));
|
|
5215
|
-
})(
|
|
5216
|
-
return
|
|
5215
|
+
})(c, u === void 0 ? {} : u);
|
|
5216
|
+
return l.call(this, d);
|
|
5217
5217
|
};
|
|
5218
5218
|
};
|
|
5219
5219
|
}));
|
|
5220
5220
|
})(At)), At.exports;
|
|
5221
5221
|
}
|
|
5222
|
-
var
|
|
5223
|
-
const
|
|
5224
|
-
var Lt = { exports: {} },
|
|
5225
|
-
function
|
|
5222
|
+
var sc = ic();
|
|
5223
|
+
const ac = /* @__PURE__ */ Ut(sc);
|
|
5224
|
+
var Lt = { exports: {} }, lc = Lt.exports, wr;
|
|
5225
|
+
function cc() {
|
|
5226
5226
|
return wr || (wr = 1, (function(e, t) {
|
|
5227
5227
|
(function(n, r) {
|
|
5228
5228
|
e.exports = r();
|
|
5229
|
-
})(
|
|
5229
|
+
})(lc, (function() {
|
|
5230
5230
|
return function(n, r) {
|
|
5231
5231
|
var o = r.prototype, i = o.format;
|
|
5232
5232
|
o.format = function(a) {
|
|
5233
|
-
var
|
|
5233
|
+
var l = this, c = this.$locale();
|
|
5234
5234
|
if (!this.isValid()) return i.bind(this)(a);
|
|
5235
5235
|
var u = this.$utils(), d = (a || "YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g, (function(f) {
|
|
5236
5236
|
switch (f) {
|
|
5237
5237
|
case "Q":
|
|
5238
|
-
return Math.ceil((
|
|
5238
|
+
return Math.ceil((l.$M + 1) / 3);
|
|
5239
5239
|
case "Do":
|
|
5240
|
-
return
|
|
5240
|
+
return c.ordinal(l.$D);
|
|
5241
5241
|
case "gggg":
|
|
5242
|
-
return
|
|
5242
|
+
return l.weekYear();
|
|
5243
5243
|
case "GGGG":
|
|
5244
|
-
return
|
|
5244
|
+
return l.isoWeekYear();
|
|
5245
5245
|
case "wo":
|
|
5246
|
-
return
|
|
5246
|
+
return c.ordinal(l.week(), "W");
|
|
5247
5247
|
case "w":
|
|
5248
5248
|
case "ww":
|
|
5249
|
-
return u.s(
|
|
5249
|
+
return u.s(l.week(), f === "w" ? 1 : 2, "0");
|
|
5250
5250
|
case "W":
|
|
5251
5251
|
case "WW":
|
|
5252
|
-
return u.s(
|
|
5252
|
+
return u.s(l.isoWeek(), f === "W" ? 1 : 2, "0");
|
|
5253
5253
|
case "k":
|
|
5254
5254
|
case "kk":
|
|
5255
|
-
return u.s(String(
|
|
5255
|
+
return u.s(String(l.$H === 0 ? 24 : l.$H), f === "k" ? 1 : 2, "0");
|
|
5256
5256
|
case "X":
|
|
5257
|
-
return Math.floor(
|
|
5257
|
+
return Math.floor(l.$d.getTime() / 1e3);
|
|
5258
5258
|
case "x":
|
|
5259
|
-
return
|
|
5259
|
+
return l.$d.getTime();
|
|
5260
5260
|
case "z":
|
|
5261
|
-
return "[" +
|
|
5261
|
+
return "[" + l.offsetName() + "]";
|
|
5262
5262
|
case "zzz":
|
|
5263
|
-
return "[" +
|
|
5263
|
+
return "[" + l.offsetName("long") + "]";
|
|
5264
5264
|
default:
|
|
5265
5265
|
return f;
|
|
5266
5266
|
}
|
|
@@ -5271,12 +5271,12 @@ function ll() {
|
|
|
5271
5271
|
}));
|
|
5272
5272
|
})(Lt)), Lt.exports;
|
|
5273
5273
|
}
|
|
5274
|
-
var
|
|
5275
|
-
const
|
|
5276
|
-
Jt.extend(
|
|
5277
|
-
Jt.extend(
|
|
5278
|
-
Jt.extend(
|
|
5279
|
-
const
|
|
5274
|
+
var uc = cc();
|
|
5275
|
+
const dc = /* @__PURE__ */ Ut(uc);
|
|
5276
|
+
Jt.extend(rc);
|
|
5277
|
+
Jt.extend(ac);
|
|
5278
|
+
Jt.extend(dc);
|
|
5279
|
+
const fc = {
|
|
5280
5280
|
date: "DD MMM YYYY",
|
|
5281
5281
|
time: "hh:mm A",
|
|
5282
5282
|
dateTime: "DD MMM YYYY, hh:mm A",
|
|
@@ -5292,9 +5292,9 @@ function Sr({
|
|
|
5292
5292
|
}) {
|
|
5293
5293
|
if (!e) return r;
|
|
5294
5294
|
const o = Jt(e);
|
|
5295
|
-
return o.isValid() ? t === "relative" ? o.fromNow() : o.format(n ??
|
|
5295
|
+
return o.isValid() ? t === "relative" ? o.fromNow() : o.format(n ?? fc[t]) : r;
|
|
5296
5296
|
}
|
|
5297
|
-
function
|
|
5297
|
+
function Dc({
|
|
5298
5298
|
value: e,
|
|
5299
5299
|
dateVariant: t = "date",
|
|
5300
5300
|
timeVariant: n = "time",
|
|
@@ -5316,27 +5316,27 @@ function Dl({
|
|
|
5316
5316
|
] });
|
|
5317
5317
|
}
|
|
5318
5318
|
export {
|
|
5319
|
-
|
|
5320
|
-
|
|
5321
|
-
|
|
5319
|
+
vc as DataTable,
|
|
5320
|
+
mc as Filters,
|
|
5321
|
+
yc as MDSButton,
|
|
5322
5322
|
Va as MDSCheckbox,
|
|
5323
|
-
|
|
5323
|
+
wc as MDSConfirmDeleteDialog,
|
|
5324
5324
|
mr as MDSInput,
|
|
5325
|
-
|
|
5326
|
-
|
|
5327
|
-
|
|
5328
|
-
|
|
5329
|
-
|
|
5330
|
-
|
|
5325
|
+
Sc as MDSRefreshButton,
|
|
5326
|
+
vl as MDSSelectBox,
|
|
5327
|
+
Sc as RefreshButton,
|
|
5328
|
+
Dc as StackedDateTime,
|
|
5329
|
+
xl as addPreset,
|
|
5330
|
+
bl as deletePreset,
|
|
5331
5331
|
Sr as formatDateTime,
|
|
5332
5332
|
$n as getPresets,
|
|
5333
|
-
|
|
5333
|
+
xc as loadOrder,
|
|
5334
5334
|
Ht as presetStore,
|
|
5335
|
-
|
|
5335
|
+
bc as saveOrder,
|
|
5336
5336
|
oo as savePresets,
|
|
5337
5337
|
Po as setActionsConfig,
|
|
5338
5338
|
No as setData,
|
|
5339
5339
|
zo as setTableId,
|
|
5340
|
-
|
|
5340
|
+
ge as tableStore,
|
|
5341
5341
|
x as withChildren
|
|
5342
5342
|
};
|