@mdspl/mds-shared-ui 0.3.9 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3 -3
- package/dist/index.d.ts +20 -6
- package/dist/index.js +1133 -1103
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import ne, { useLayoutEffect as go, useEffect as
|
|
2
|
-
import { Menu as Oe, Checkbox as De, IconButton as _e, Portal as Qe, Table as Ee, HStack as fe, createListCollection as Dr, Select as K, Pagination as Nt, Box as je, Text as q, ButtonGroup as mo, Popover as Wt, InputGroup as Cr, InputElement as Fn, PopoverArrow as bo, VStack as
|
|
1
|
+
import ne, { useLayoutEffect as go, useEffect as H, useRef as U, useMemo as B, useCallback as le, useState as oe, createContext as vt, memo as po, useReducer as vo, useContext as He, forwardRef as wn, createElement as hn } from "react";
|
|
2
|
+
import { Menu as Oe, Checkbox as De, IconButton as _e, Portal as Qe, Table as Ee, HStack as fe, createListCollection as Dr, Select as K, Pagination as Nt, Box as je, Text as q, ButtonGroup as mo, Popover as Wt, InputGroup as Cr, InputElement as Fn, PopoverArrow as bo, 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 Rr, Dialog as Ae, Stack as gn } from "@chakra-ui/react";
|
|
3
3
|
import { unstable_batchedUpdates as Ct, createPortal as xo } from "react-dom";
|
|
4
4
|
function Ut(e) {
|
|
5
5
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
6
6
|
}
|
|
7
7
|
var Rt = { exports: {} }, at = {};
|
|
8
|
-
var
|
|
8
|
+
var Hn;
|
|
9
9
|
function yo() {
|
|
10
|
-
if (
|
|
11
|
-
|
|
10
|
+
if (Hn) return at;
|
|
11
|
+
Hn = 1;
|
|
12
12
|
var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), t = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
13
13
|
function n(r, o, s) {
|
|
14
14
|
var a = null;
|
|
@@ -31,146 +31,146 @@ var ct = {};
|
|
|
31
31
|
var Wn;
|
|
32
32
|
function wo() {
|
|
33
33
|
return Wn || (Wn = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
34
|
-
function e(
|
|
35
|
-
if (
|
|
36
|
-
if (typeof
|
|
37
|
-
return
|
|
38
|
-
if (typeof
|
|
39
|
-
switch (
|
|
34
|
+
function e(g) {
|
|
35
|
+
if (g == null) return null;
|
|
36
|
+
if (typeof g == "function")
|
|
37
|
+
return g.$$typeof === k ? null : g.displayName || g.name || null;
|
|
38
|
+
if (typeof g == "string") return g;
|
|
39
|
+
switch (g) {
|
|
40
40
|
case b:
|
|
41
41
|
return "Fragment";
|
|
42
|
-
case
|
|
42
|
+
case R:
|
|
43
43
|
return "Profiler";
|
|
44
|
-
case
|
|
44
|
+
case w:
|
|
45
45
|
return "StrictMode";
|
|
46
|
-
case
|
|
46
|
+
case T:
|
|
47
47
|
return "Suspense";
|
|
48
48
|
case $:
|
|
49
49
|
return "SuspenseList";
|
|
50
50
|
case Y:
|
|
51
51
|
return "Activity";
|
|
52
52
|
}
|
|
53
|
-
if (typeof
|
|
54
|
-
switch (typeof
|
|
53
|
+
if (typeof g == "object")
|
|
54
|
+
switch (typeof g.tag == "number" && console.error(
|
|
55
55
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
56
|
-
),
|
|
57
|
-
case
|
|
56
|
+
), g.$$typeof) {
|
|
57
|
+
case h:
|
|
58
58
|
return "Portal";
|
|
59
|
-
case
|
|
60
|
-
return
|
|
61
|
-
case
|
|
62
|
-
return (
|
|
59
|
+
case _:
|
|
60
|
+
return g.displayName || "Context";
|
|
61
|
+
case E:
|
|
62
|
+
return (g._context.displayName || "Context") + ".Consumer";
|
|
63
63
|
case O:
|
|
64
|
-
var S =
|
|
65
|
-
return
|
|
64
|
+
var S = g.render;
|
|
65
|
+
return g = g.displayName, g || (g = S.displayName || S.name || "", g = g !== "" ? "ForwardRef(" + g + ")" : "ForwardRef"), g;
|
|
66
66
|
case N:
|
|
67
|
-
return S =
|
|
67
|
+
return S = g.displayName || null, S !== null ? S : e(g.type) || "Memo";
|
|
68
68
|
case W:
|
|
69
|
-
S =
|
|
69
|
+
S = g._payload, g = g._init;
|
|
70
70
|
try {
|
|
71
|
-
return e(
|
|
71
|
+
return e(g(S));
|
|
72
72
|
} catch {
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
return null;
|
|
76
76
|
}
|
|
77
|
-
function t(
|
|
78
|
-
return "" +
|
|
77
|
+
function t(g) {
|
|
78
|
+
return "" + g;
|
|
79
79
|
}
|
|
80
|
-
function n(
|
|
80
|
+
function n(g) {
|
|
81
81
|
try {
|
|
82
|
-
t(
|
|
82
|
+
t(g);
|
|
83
83
|
var S = !1;
|
|
84
84
|
} catch {
|
|
85
85
|
S = !0;
|
|
86
86
|
}
|
|
87
87
|
if (S) {
|
|
88
88
|
S = console;
|
|
89
|
-
var A = S.error, P = typeof Symbol == "function" && Symbol.toStringTag &&
|
|
89
|
+
var A = S.error, P = typeof Symbol == "function" && Symbol.toStringTag && g[Symbol.toStringTag] || g.constructor.name || "Object";
|
|
90
90
|
return A.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
|
|
94
|
-
), t(
|
|
94
|
+
), t(g);
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
|
-
function r(
|
|
98
|
-
if (
|
|
99
|
-
if (typeof
|
|
97
|
+
function r(g) {
|
|
98
|
+
if (g === b) return "<>";
|
|
99
|
+
if (typeof g == "object" && g !== null && g.$$typeof === W)
|
|
100
100
|
return "<...>";
|
|
101
101
|
try {
|
|
102
|
-
var S = e(
|
|
102
|
+
var S = e(g);
|
|
103
103
|
return S ? "<" + S + ">" : "<...>";
|
|
104
104
|
} catch {
|
|
105
105
|
return "<...>";
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
function o() {
|
|
109
|
-
var
|
|
110
|
-
return
|
|
109
|
+
var g = Q.A;
|
|
110
|
+
return g === null ? null : g.getOwner();
|
|
111
111
|
}
|
|
112
112
|
function s() {
|
|
113
113
|
return Error("react-stack-top-frame");
|
|
114
114
|
}
|
|
115
|
-
function a(
|
|
116
|
-
if (se.call(
|
|
117
|
-
var S = Object.getOwnPropertyDescriptor(
|
|
115
|
+
function a(g) {
|
|
116
|
+
if (se.call(g, "key")) {
|
|
117
|
+
var S = Object.getOwnPropertyDescriptor(g, "key").get;
|
|
118
118
|
if (S && S.isReactWarning) return !1;
|
|
119
119
|
}
|
|
120
|
-
return
|
|
120
|
+
return g.key !== void 0;
|
|
121
121
|
}
|
|
122
|
-
function c(
|
|
122
|
+
function c(g, S) {
|
|
123
123
|
function A() {
|
|
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
|
-
A.isReactWarning = !0, Object.defineProperty(
|
|
129
|
+
A.isReactWarning = !0, Object.defineProperty(g, "key", {
|
|
130
130
|
get: A,
|
|
131
131
|
configurable: !0
|
|
132
132
|
});
|
|
133
133
|
}
|
|
134
|
-
function
|
|
135
|
-
var
|
|
136
|
-
return j[
|
|
134
|
+
function l() {
|
|
135
|
+
var g = e(this.type);
|
|
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
|
|
140
|
+
function u(g, S, A, P, G, X) {
|
|
141
141
|
var F = A.ref;
|
|
142
|
-
return
|
|
142
|
+
return g = {
|
|
143
143
|
$$typeof: v,
|
|
144
|
-
type:
|
|
144
|
+
type: g,
|
|
145
145
|
key: S,
|
|
146
146
|
props: A,
|
|
147
147
|
_owner: P
|
|
148
|
-
}, (F !== void 0 ? F : null) !== null ? Object.defineProperty(
|
|
148
|
+
}, (F !== void 0 ? F : null) !== null ? Object.defineProperty(g, "ref", {
|
|
149
149
|
enumerable: !1,
|
|
150
|
-
get:
|
|
151
|
-
}) : Object.defineProperty(
|
|
150
|
+
get: l
|
|
151
|
+
}) : Object.defineProperty(g, "ref", { enumerable: !1, value: null }), g._store = {}, Object.defineProperty(g._store, "validated", {
|
|
152
152
|
configurable: !1,
|
|
153
153
|
enumerable: !1,
|
|
154
154
|
writable: !0,
|
|
155
155
|
value: 0
|
|
156
|
-
}), Object.defineProperty(
|
|
156
|
+
}), Object.defineProperty(g, "_debugInfo", {
|
|
157
157
|
configurable: !1,
|
|
158
158
|
enumerable: !1,
|
|
159
159
|
writable: !0,
|
|
160
160
|
value: null
|
|
161
|
-
}), Object.defineProperty(
|
|
161
|
+
}), Object.defineProperty(g, "_debugStack", {
|
|
162
162
|
configurable: !1,
|
|
163
163
|
enumerable: !1,
|
|
164
164
|
writable: !0,
|
|
165
165
|
value: G
|
|
166
|
-
}), Object.defineProperty(
|
|
166
|
+
}), Object.defineProperty(g, "_debugTask", {
|
|
167
167
|
configurable: !1,
|
|
168
168
|
enumerable: !1,
|
|
169
169
|
writable: !0,
|
|
170
170
|
value: X
|
|
171
|
-
}), Object.freeze && (Object.freeze(
|
|
171
|
+
}), Object.freeze && (Object.freeze(g.props), Object.freeze(g)), g;
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function f(g, S, A, P, G, X) {
|
|
174
174
|
var F = S.children;
|
|
175
175
|
if (F !== void 0)
|
|
176
176
|
if (P)
|
|
@@ -184,7 +184,7 @@ function wo() {
|
|
|
184
184
|
);
|
|
185
185
|
else d(F);
|
|
186
186
|
if (se.call(S, "key")) {
|
|
187
|
-
F = e(
|
|
187
|
+
F = e(g);
|
|
188
188
|
var J = Object.keys(S).filter(function(z) {
|
|
189
189
|
return z !== "key";
|
|
190
190
|
});
|
|
@@ -208,9 +208,9 @@ React keys must be passed directly to JSX without using spread:
|
|
|
208
208
|
} else A = S;
|
|
209
209
|
return F && c(
|
|
210
210
|
A,
|
|
211
|
-
typeof
|
|
212
|
-
),
|
|
213
|
-
|
|
211
|
+
typeof g == "function" ? g.displayName || g.name || "Unknown" : g
|
|
212
|
+
), u(
|
|
213
|
+
g,
|
|
214
214
|
F,
|
|
215
215
|
A,
|
|
216
216
|
o(),
|
|
@@ -218,43 +218,43 @@ React keys must be passed directly to JSX without using spread:
|
|
|
218
218
|
X
|
|
219
219
|
);
|
|
220
220
|
}
|
|
221
|
-
function d(
|
|
222
|
-
m(
|
|
221
|
+
function d(g) {
|
|
222
|
+
m(g) ? g._store && (g._store.validated = 1) : typeof g == "object" && g !== null && g.$$typeof === W && (g._payload.status === "fulfilled" ? m(g._payload.value) && g._payload.value._store && (g._payload.value._store.validated = 1) : g._store && (g._store.validated = 1));
|
|
223
223
|
}
|
|
224
|
-
function m(
|
|
225
|
-
return typeof
|
|
224
|
+
function m(g) {
|
|
225
|
+
return typeof g == "object" && g !== null && g.$$typeof === v;
|
|
226
226
|
}
|
|
227
|
-
var
|
|
227
|
+
var p = ne, v = /* @__PURE__ */ Symbol.for("react.transitional.element"), h = /* @__PURE__ */ Symbol.for("react.portal"), b = /* @__PURE__ */ Symbol.for("react.fragment"), w = /* @__PURE__ */ Symbol.for("react.strict_mode"), R = /* @__PURE__ */ Symbol.for("react.profiler"), E = /* @__PURE__ */ Symbol.for("react.consumer"), _ = /* @__PURE__ */ Symbol.for("react.context"), O = /* @__PURE__ */ Symbol.for("react.forward_ref"), T = /* @__PURE__ */ Symbol.for("react.suspense"), $ = /* @__PURE__ */ Symbol.for("react.suspense_list"), N = /* @__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, M = Array.isArray, D = console.createTask ? console.createTask : function() {
|
|
228
228
|
return null;
|
|
229
229
|
};
|
|
230
|
-
|
|
231
|
-
react_stack_bottom_frame: function(
|
|
232
|
-
return
|
|
230
|
+
p = {
|
|
231
|
+
react_stack_bottom_frame: function(g) {
|
|
232
|
+
return g();
|
|
233
233
|
}
|
|
234
234
|
};
|
|
235
|
-
var
|
|
236
|
-
|
|
235
|
+
var y, j = {}, C = p.react_stack_bottom_frame.bind(
|
|
236
|
+
p,
|
|
237
237
|
s
|
|
238
|
-
)(),
|
|
239
|
-
ct.Fragment = b, ct.jsx = function(
|
|
238
|
+
)(), I = D(r(s)), L = {};
|
|
239
|
+
ct.Fragment = b, ct.jsx = function(g, S, A) {
|
|
240
240
|
var P = 1e4 > Q.recentlyCreatedOwnerStacks++;
|
|
241
|
-
return
|
|
242
|
-
|
|
241
|
+
return f(
|
|
242
|
+
g,
|
|
243
243
|
S,
|
|
244
244
|
A,
|
|
245
245
|
!1,
|
|
246
246
|
P ? Error("react-stack-top-frame") : C,
|
|
247
|
-
P ? D(r(
|
|
247
|
+
P ? D(r(g)) : I
|
|
248
248
|
);
|
|
249
|
-
}, ct.jsxs = function(
|
|
249
|
+
}, ct.jsxs = function(g, S, A) {
|
|
250
250
|
var P = 1e4 > Q.recentlyCreatedOwnerStacks++;
|
|
251
|
-
return
|
|
252
|
-
|
|
251
|
+
return f(
|
|
252
|
+
g,
|
|
253
253
|
S,
|
|
254
254
|
A,
|
|
255
255
|
!0,
|
|
256
256
|
P ? Error("react-stack-top-frame") : C,
|
|
257
|
-
P ? D(r(
|
|
257
|
+
P ? D(r(g)) : I
|
|
258
258
|
);
|
|
259
259
|
};
|
|
260
260
|
})()), ct;
|
|
@@ -274,88 +274,88 @@ function Do() {
|
|
|
274
274
|
}
|
|
275
275
|
var n = typeof Object.is == "function" ? Object.is : t, r = e.useState, o = e.useEffect, s = e.useLayoutEffect, a = e.useDebugValue;
|
|
276
276
|
function c(d, m) {
|
|
277
|
-
var
|
|
277
|
+
var p = m(), v = r({ inst: { value: p, getSnapshot: m } }), h = v[0].inst, b = v[1];
|
|
278
278
|
return s(
|
|
279
279
|
function() {
|
|
280
|
-
|
|
280
|
+
h.value = p, h.getSnapshot = m, l(h) && b({ inst: h });
|
|
281
281
|
},
|
|
282
|
-
[d,
|
|
282
|
+
[d, p, m]
|
|
283
283
|
), o(
|
|
284
284
|
function() {
|
|
285
|
-
return
|
|
286
|
-
|
|
285
|
+
return l(h) && b({ inst: h }), d(function() {
|
|
286
|
+
l(h) && b({ inst: h });
|
|
287
287
|
});
|
|
288
288
|
},
|
|
289
289
|
[d]
|
|
290
|
-
), a(
|
|
290
|
+
), a(p), p;
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function l(d) {
|
|
293
293
|
var m = d.getSnapshot;
|
|
294
294
|
d = d.value;
|
|
295
295
|
try {
|
|
296
|
-
var
|
|
297
|
-
return !n(d,
|
|
296
|
+
var p = m();
|
|
297
|
+
return !n(d, p);
|
|
298
298
|
} catch {
|
|
299
299
|
return !0;
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
|
-
function
|
|
302
|
+
function u(d, m) {
|
|
303
303
|
return m();
|
|
304
304
|
}
|
|
305
|
-
var
|
|
306
|
-
return nn.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore :
|
|
305
|
+
var f = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? u : c;
|
|
306
|
+
return nn.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : f, nn;
|
|
307
307
|
}
|
|
308
308
|
var rn = {};
|
|
309
309
|
var Gn;
|
|
310
310
|
function Co() {
|
|
311
311
|
return Gn || (Gn = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
312
|
-
function e(
|
|
313
|
-
return
|
|
312
|
+
function e(p, v) {
|
|
313
|
+
return p === v && (p !== 0 || 1 / p === 1 / v) || p !== p && v !== v;
|
|
314
314
|
}
|
|
315
|
-
function t(
|
|
316
|
-
|
|
315
|
+
function t(p, v) {
|
|
316
|
+
f || o.startTransition === void 0 || (f = !0, console.error(
|
|
317
317
|
"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
|
|
318
318
|
));
|
|
319
|
-
var
|
|
319
|
+
var h = v();
|
|
320
320
|
if (!d) {
|
|
321
321
|
var b = v();
|
|
322
|
-
s(
|
|
322
|
+
s(h, b) || (console.error(
|
|
323
323
|
"The result of getSnapshot should be cached to avoid an infinite loop"
|
|
324
324
|
), d = !0);
|
|
325
325
|
}
|
|
326
326
|
b = a({
|
|
327
|
-
inst: { value:
|
|
327
|
+
inst: { value: h, getSnapshot: v }
|
|
328
328
|
});
|
|
329
|
-
var
|
|
330
|
-
return
|
|
329
|
+
var w = b[0].inst, R = b[1];
|
|
330
|
+
return l(
|
|
331
331
|
function() {
|
|
332
|
-
|
|
332
|
+
w.value = h, w.getSnapshot = v, n(w) && R({ inst: w });
|
|
333
333
|
},
|
|
334
|
-
[
|
|
334
|
+
[p, h, v]
|
|
335
335
|
), c(
|
|
336
336
|
function() {
|
|
337
|
-
return n(
|
|
338
|
-
n(
|
|
337
|
+
return n(w) && R({ inst: w }), p(function() {
|
|
338
|
+
n(w) && R({ inst: w });
|
|
339
339
|
});
|
|
340
340
|
},
|
|
341
|
-
[
|
|
342
|
-
),
|
|
341
|
+
[p]
|
|
342
|
+
), u(h), h;
|
|
343
343
|
}
|
|
344
|
-
function n(
|
|
345
|
-
var v =
|
|
346
|
-
|
|
344
|
+
function n(p) {
|
|
345
|
+
var v = p.getSnapshot;
|
|
346
|
+
p = p.value;
|
|
347
347
|
try {
|
|
348
|
-
var
|
|
349
|
-
return !s(
|
|
348
|
+
var h = v();
|
|
349
|
+
return !s(p, h);
|
|
350
350
|
} catch {
|
|
351
351
|
return !0;
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
|
-
function r(
|
|
354
|
+
function r(p, v) {
|
|
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 = ne, s = typeof Object.is == "function" ? Object.is : e, a = o.useState, c = o.useEffect,
|
|
358
|
+
var o = ne, s = typeof Object.is == "function" ? Object.is : e, a = o.useState, c = o.useEffect, l = o.useLayoutEffect, u = o.useDebugValue, f = !1, d = !1, m = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : t;
|
|
359
359
|
rn.useSyncExternalStore = o.useSyncExternalStore !== void 0 ? o.useSyncExternalStore : m, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
360
360
|
})()), rn;
|
|
361
361
|
}
|
|
@@ -368,102 +368,102 @@ function Ro() {
|
|
|
368
368
|
if (qn) return tn;
|
|
369
369
|
qn = 1;
|
|
370
370
|
var e = ne, t = jr();
|
|
371
|
-
function n(
|
|
372
|
-
return
|
|
371
|
+
function n(u, f) {
|
|
372
|
+
return u === f && (u !== 0 || 1 / u === 1 / f) || u !== u && f !== f;
|
|
373
373
|
}
|
|
374
|
-
var r = typeof Object.is == "function" ? Object.is : n, o = t.useSyncExternalStore, s = e.useRef, a = e.useEffect, c = e.useMemo,
|
|
375
|
-
return tn.useSyncExternalStoreWithSelector = function(
|
|
374
|
+
var r = typeof Object.is == "function" ? Object.is : n, o = t.useSyncExternalStore, s = e.useRef, a = e.useEffect, c = e.useMemo, l = e.useDebugValue;
|
|
375
|
+
return tn.useSyncExternalStoreWithSelector = function(u, f, d, m, p) {
|
|
376
376
|
var v = s(null);
|
|
377
377
|
if (v.current === null) {
|
|
378
|
-
var
|
|
379
|
-
v.current =
|
|
380
|
-
} else
|
|
378
|
+
var h = { hasValue: !1, value: null };
|
|
379
|
+
v.current = h;
|
|
380
|
+
} else h = v.current;
|
|
381
381
|
v = c(
|
|
382
382
|
function() {
|
|
383
|
-
function
|
|
384
|
-
if (!
|
|
385
|
-
if (
|
|
386
|
-
var $ =
|
|
387
|
-
if (
|
|
388
|
-
return
|
|
383
|
+
function w(T) {
|
|
384
|
+
if (!R) {
|
|
385
|
+
if (R = !0, E = T, T = m(T), p !== void 0 && h.hasValue) {
|
|
386
|
+
var $ = h.value;
|
|
387
|
+
if (p($, T))
|
|
388
|
+
return _ = $;
|
|
389
389
|
}
|
|
390
|
-
return
|
|
390
|
+
return _ = T;
|
|
391
391
|
}
|
|
392
|
-
if ($ =
|
|
393
|
-
var N = m(
|
|
394
|
-
return
|
|
392
|
+
if ($ = _, r(E, T)) return $;
|
|
393
|
+
var N = m(T);
|
|
394
|
+
return p !== void 0 && p($, N) ? (E = T, $) : (E = T, _ = N);
|
|
395
395
|
}
|
|
396
|
-
var
|
|
396
|
+
var R = !1, E, _, O = d === void 0 ? null : d;
|
|
397
397
|
return [
|
|
398
398
|
function() {
|
|
399
|
-
return
|
|
399
|
+
return w(f());
|
|
400
400
|
},
|
|
401
401
|
O === null ? void 0 : function() {
|
|
402
|
-
return
|
|
402
|
+
return w(O());
|
|
403
403
|
}
|
|
404
404
|
];
|
|
405
405
|
},
|
|
406
|
-
[
|
|
406
|
+
[f, d, m, p]
|
|
407
407
|
);
|
|
408
|
-
var b = o(
|
|
408
|
+
var b = o(u, v[0], v[1]);
|
|
409
409
|
return a(
|
|
410
410
|
function() {
|
|
411
|
-
|
|
411
|
+
h.hasValue = !0, h.value = b;
|
|
412
412
|
},
|
|
413
413
|
[b]
|
|
414
|
-
),
|
|
414
|
+
), l(b), b;
|
|
415
415
|
}, tn;
|
|
416
416
|
}
|
|
417
417
|
var on = {};
|
|
418
418
|
var Kn;
|
|
419
419
|
function jo() {
|
|
420
420
|
return Kn || (Kn = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
421
|
-
function e(
|
|
422
|
-
return
|
|
421
|
+
function e(u, f) {
|
|
422
|
+
return u === f && (u !== 0 || 1 / u === 1 / f) || u !== u && f !== f;
|
|
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 = ne, n = jr(), r = typeof Object.is == "function" ? Object.is : e, o = n.useSyncExternalStore, s = t.useRef, a = t.useEffect, c = t.useMemo,
|
|
426
|
-
on.useSyncExternalStoreWithSelector = function(
|
|
425
|
+
var t = ne, n = jr(), r = typeof Object.is == "function" ? Object.is : e, o = n.useSyncExternalStore, s = t.useRef, a = t.useEffect, c = t.useMemo, l = t.useDebugValue;
|
|
426
|
+
on.useSyncExternalStoreWithSelector = function(u, f, d, m, p) {
|
|
427
427
|
var v = s(null);
|
|
428
428
|
if (v.current === null) {
|
|
429
|
-
var
|
|
430
|
-
v.current =
|
|
431
|
-
} else
|
|
429
|
+
var h = { hasValue: !1, value: null };
|
|
430
|
+
v.current = h;
|
|
431
|
+
} else h = v.current;
|
|
432
432
|
v = c(
|
|
433
433
|
function() {
|
|
434
|
-
function
|
|
435
|
-
if (!
|
|
436
|
-
if (
|
|
437
|
-
var $ =
|
|
438
|
-
if (
|
|
439
|
-
return
|
|
434
|
+
function w(T) {
|
|
435
|
+
if (!R) {
|
|
436
|
+
if (R = !0, E = T, T = m(T), p !== void 0 && h.hasValue) {
|
|
437
|
+
var $ = h.value;
|
|
438
|
+
if (p($, T))
|
|
439
|
+
return _ = $;
|
|
440
440
|
}
|
|
441
|
-
return
|
|
441
|
+
return _ = T;
|
|
442
442
|
}
|
|
443
|
-
if ($ =
|
|
443
|
+
if ($ = _, r(E, T))
|
|
444
444
|
return $;
|
|
445
|
-
var N = m(
|
|
446
|
-
return
|
|
445
|
+
var N = m(T);
|
|
446
|
+
return p !== void 0 && p($, N) ? (E = T, $) : (E = T, _ = N);
|
|
447
447
|
}
|
|
448
|
-
var
|
|
448
|
+
var R = !1, E, _, O = d === void 0 ? null : d;
|
|
449
449
|
return [
|
|
450
450
|
function() {
|
|
451
|
-
return
|
|
451
|
+
return w(f());
|
|
452
452
|
},
|
|
453
453
|
O === null ? void 0 : function() {
|
|
454
|
-
return
|
|
454
|
+
return w(O());
|
|
455
455
|
}
|
|
456
456
|
];
|
|
457
457
|
},
|
|
458
|
-
[
|
|
458
|
+
[f, d, m, p]
|
|
459
459
|
);
|
|
460
|
-
var b = o(
|
|
460
|
+
var b = o(u, v[0], v[1]);
|
|
461
461
|
return a(
|
|
462
462
|
function() {
|
|
463
|
-
|
|
463
|
+
h.hasValue = !0, h.value = b;
|
|
464
464
|
},
|
|
465
465
|
[b]
|
|
466
|
-
),
|
|
466
|
+
), l(b), b;
|
|
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
|
}
|
|
@@ -531,7 +531,7 @@ function $o(e) {
|
|
|
531
531
|
sn = !1, zt.current = [], Zn.clear();
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function ko(e) {
|
|
535
535
|
return typeof e == "function";
|
|
536
536
|
}
|
|
537
537
|
class _r {
|
|
@@ -547,11 +547,11 @@ class _r {
|
|
|
547
547
|
}
|
|
548
548
|
setState(t) {
|
|
549
549
|
var n, r, o;
|
|
550
|
-
this.prevState = this.state, (n = this.options) != null && n.updateFn ? this.state = this.options.updateFn(this.prevState)(t) :
|
|
550
|
+
this.prevState = this.state, (n = this.options) != null && n.updateFn ? this.state = this.options.updateFn(this.prevState)(t) : ko(t) ? this.state = t(this.prevState) : this.state = t, (o = (r = this.options) == null ? void 0 : r.onUpdate) == null || o.call(r), $o(this);
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
553
|
function bt(e, t = (r) => r, n = {}) {
|
|
554
|
-
const r = n.equal ??
|
|
554
|
+
const r = n.equal ?? Io;
|
|
555
555
|
return _o.useSyncExternalStoreWithSelector(
|
|
556
556
|
e.subscribe,
|
|
557
557
|
() => e.state,
|
|
@@ -560,7 +560,7 @@ function bt(e, t = (r) => r, n = {}) {
|
|
|
560
560
|
r
|
|
561
561
|
);
|
|
562
562
|
}
|
|
563
|
-
function
|
|
563
|
+
function Io(e, t) {
|
|
564
564
|
if (Object.is(e, t))
|
|
565
565
|
return !0;
|
|
566
566
|
if (typeof e != "object" || e === null || typeof t != "object" || t === null)
|
|
@@ -631,7 +631,7 @@ function Tr(e) {
|
|
|
631
631
|
function tt(e) {
|
|
632
632
|
return e ? et(e) ? e.document : Dn(e) ? Cn(e) ? e : xt(e) || Tr(e) ? e.ownerDocument : document : document : document;
|
|
633
633
|
}
|
|
634
|
-
const Te = Gt ? go :
|
|
634
|
+
const Te = Gt ? go : H;
|
|
635
635
|
function Rn(e) {
|
|
636
636
|
const t = U(e);
|
|
637
637
|
return Te(() => {
|
|
@@ -680,7 +680,7 @@ function Pt(e) {
|
|
|
680
680
|
}
|
|
681
681
|
function vn(e) {
|
|
682
682
|
const t = U();
|
|
683
|
-
return
|
|
683
|
+
return H(() => {
|
|
684
684
|
t.current = e;
|
|
685
685
|
}, [e]), t.current;
|
|
686
686
|
}
|
|
@@ -699,9 +699,9 @@ function Or(e) {
|
|
|
699
699
|
r[o - 1] = arguments[o];
|
|
700
700
|
return r.reduce((s, a) => {
|
|
701
701
|
const c = Object.entries(a);
|
|
702
|
-
for (const [
|
|
703
|
-
const
|
|
704
|
-
|
|
702
|
+
for (const [l, u] of c) {
|
|
703
|
+
const f = s[l];
|
|
704
|
+
f != null && (s[l] = f + e * u);
|
|
705
705
|
}
|
|
706
706
|
return s;
|
|
707
707
|
}, {
|
|
@@ -812,7 +812,7 @@ function Fo(e) {
|
|
|
812
812
|
style: Yo
|
|
813
813
|
}, n);
|
|
814
814
|
}
|
|
815
|
-
function
|
|
815
|
+
function Vo(e) {
|
|
816
816
|
let {
|
|
817
817
|
id: t,
|
|
818
818
|
announcement: n,
|
|
@@ -840,7 +840,7 @@ function Ho(e) {
|
|
|
840
840
|
"aria-atomic": !0
|
|
841
841
|
}, n);
|
|
842
842
|
}
|
|
843
|
-
function
|
|
843
|
+
function Ho() {
|
|
844
844
|
const [e, t] = oe("");
|
|
845
845
|
return {
|
|
846
846
|
announce: le((r) => {
|
|
@@ -851,8 +851,8 @@ function Vo() {
|
|
|
851
851
|
}
|
|
852
852
|
const Mr = /* @__PURE__ */ vt(null);
|
|
853
853
|
function Wo(e) {
|
|
854
|
-
const t =
|
|
855
|
-
|
|
854
|
+
const t = He(Mr);
|
|
855
|
+
H(() => {
|
|
856
856
|
if (!t)
|
|
857
857
|
throw new Error("useDndMonitor must be used within a children of <DndContext>");
|
|
858
858
|
return t(e);
|
|
@@ -915,9 +915,9 @@ function Xo(e) {
|
|
|
915
915
|
const {
|
|
916
916
|
announce: s,
|
|
917
917
|
announcement: a
|
|
918
|
-
} =
|
|
919
|
-
if (
|
|
920
|
-
|
|
918
|
+
} = Ho(), c = wt("DndLiveRegion"), [l, u] = oe(!1);
|
|
919
|
+
if (H(() => {
|
|
920
|
+
u(!0);
|
|
921
921
|
}, []), Wo(B(() => ({
|
|
922
922
|
onDragStart(d) {
|
|
923
923
|
let {
|
|
@@ -930,53 +930,53 @@ function Xo(e) {
|
|
|
930
930
|
onDragMove(d) {
|
|
931
931
|
let {
|
|
932
932
|
active: m,
|
|
933
|
-
over:
|
|
933
|
+
over: p
|
|
934
934
|
} = d;
|
|
935
935
|
t.onDragMove && s(t.onDragMove({
|
|
936
936
|
active: m,
|
|
937
|
-
over:
|
|
937
|
+
over: p
|
|
938
938
|
}));
|
|
939
939
|
},
|
|
940
940
|
onDragOver(d) {
|
|
941
941
|
let {
|
|
942
942
|
active: m,
|
|
943
|
-
over:
|
|
943
|
+
over: p
|
|
944
944
|
} = d;
|
|
945
945
|
s(t.onDragOver({
|
|
946
946
|
active: m,
|
|
947
|
-
over:
|
|
947
|
+
over: p
|
|
948
948
|
}));
|
|
949
949
|
},
|
|
950
950
|
onDragEnd(d) {
|
|
951
951
|
let {
|
|
952
952
|
active: m,
|
|
953
|
-
over:
|
|
953
|
+
over: p
|
|
954
954
|
} = d;
|
|
955
955
|
s(t.onDragEnd({
|
|
956
956
|
active: m,
|
|
957
|
-
over:
|
|
957
|
+
over: p
|
|
958
958
|
}));
|
|
959
959
|
},
|
|
960
960
|
onDragCancel(d) {
|
|
961
961
|
let {
|
|
962
962
|
active: m,
|
|
963
|
-
over:
|
|
963
|
+
over: p
|
|
964
964
|
} = d;
|
|
965
965
|
s(t.onDragCancel({
|
|
966
966
|
active: m,
|
|
967
|
-
over:
|
|
967
|
+
over: p
|
|
968
968
|
}));
|
|
969
969
|
}
|
|
970
|
-
}), [s, t])), !
|
|
970
|
+
}), [s, t])), !l)
|
|
971
971
|
return null;
|
|
972
|
-
const
|
|
972
|
+
const f = ne.createElement(ne.Fragment, null, ne.createElement(Fo, {
|
|
973
973
|
id: r,
|
|
974
974
|
value: o.draggable
|
|
975
|
-
}), ne.createElement(
|
|
975
|
+
}), ne.createElement(Vo, {
|
|
976
976
|
id: c,
|
|
977
977
|
announcement: a
|
|
978
978
|
}));
|
|
979
|
-
return n ? xo(
|
|
979
|
+
return n ? xo(f, n) : f;
|
|
980
980
|
}
|
|
981
981
|
var te;
|
|
982
982
|
(function(e) {
|
|
@@ -1056,14 +1056,14 @@ const $r = (e) => {
|
|
|
1056
1056
|
for (const a of r) {
|
|
1057
1057
|
const {
|
|
1058
1058
|
id: c
|
|
1059
|
-
} = a,
|
|
1060
|
-
if (
|
|
1061
|
-
const
|
|
1059
|
+
} = a, l = n.get(c);
|
|
1060
|
+
if (l) {
|
|
1061
|
+
const u = Jo(tr(l), o);
|
|
1062
1062
|
s.push({
|
|
1063
1063
|
id: c,
|
|
1064
1064
|
data: {
|
|
1065
1065
|
droppableContainer: a,
|
|
1066
|
-
value:
|
|
1066
|
+
value: u
|
|
1067
1067
|
}
|
|
1068
1068
|
});
|
|
1069
1069
|
}
|
|
@@ -1073,7 +1073,7 @@ const $r = (e) => {
|
|
|
1073
1073
|
function ts(e, t) {
|
|
1074
1074
|
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), s = Math.min(t.top + t.height, e.top + e.height), a = o - r, c = s - n;
|
|
1075
1075
|
if (r < o && n < s) {
|
|
1076
|
-
const
|
|
1076
|
+
const l = t.width * t.height, u = e.width * e.height, f = a * c, d = f / (l + u - f);
|
|
1077
1077
|
return Number(d.toFixed(4));
|
|
1078
1078
|
}
|
|
1079
1079
|
return 0;
|
|
@@ -1090,12 +1090,12 @@ const ns = (e) => {
|
|
|
1090
1090
|
id: a
|
|
1091
1091
|
} = s, c = n.get(a);
|
|
1092
1092
|
if (c) {
|
|
1093
|
-
const
|
|
1094
|
-
|
|
1093
|
+
const l = ts(c, t);
|
|
1094
|
+
l > 0 && o.push({
|
|
1095
1095
|
id: a,
|
|
1096
1096
|
data: {
|
|
1097
1097
|
droppableContainer: s,
|
|
1098
|
-
value:
|
|
1098
|
+
value: l
|
|
1099
1099
|
}
|
|
1100
1100
|
});
|
|
1101
1101
|
}
|
|
@@ -1109,7 +1109,7 @@ function rs(e, t, n) {
|
|
|
1109
1109
|
scaleY: t && n ? t.height / n.height : 1
|
|
1110
1110
|
};
|
|
1111
1111
|
}
|
|
1112
|
-
function
|
|
1112
|
+
function kr(e, t) {
|
|
1113
1113
|
return e && t ? {
|
|
1114
1114
|
x: e.left - t.left,
|
|
1115
1115
|
y: e.top - t.top
|
|
@@ -1160,14 +1160,14 @@ function as(e, t, n) {
|
|
|
1160
1160
|
scaleY: s,
|
|
1161
1161
|
x: a,
|
|
1162
1162
|
y: c
|
|
1163
|
-
} = r,
|
|
1163
|
+
} = r, l = e.left - a - (1 - o) * parseFloat(n), u = e.top - c - (1 - s) * parseFloat(n.slice(n.indexOf(" ") + 1)), f = o ? e.width / o : e.width, d = s ? e.height / s : e.height;
|
|
1164
1164
|
return {
|
|
1165
|
-
width:
|
|
1165
|
+
width: f,
|
|
1166
1166
|
height: d,
|
|
1167
|
-
top:
|
|
1168
|
-
right:
|
|
1169
|
-
bottom:
|
|
1170
|
-
left:
|
|
1167
|
+
top: u,
|
|
1168
|
+
right: l + f,
|
|
1169
|
+
bottom: u + d,
|
|
1170
|
+
left: l
|
|
1171
1171
|
};
|
|
1172
1172
|
}
|
|
1173
1173
|
const cs = {
|
|
@@ -1178,10 +1178,10 @@ function nt(e, t) {
|
|
|
1178
1178
|
let n = e.getBoundingClientRect();
|
|
1179
1179
|
if (t.ignoreTransform) {
|
|
1180
1180
|
const {
|
|
1181
|
-
transform:
|
|
1182
|
-
transformOrigin:
|
|
1181
|
+
transform: u,
|
|
1182
|
+
transformOrigin: f
|
|
1183
1183
|
} = he(e).getComputedStyle(e);
|
|
1184
|
-
|
|
1184
|
+
u && (n = as(n, u, f));
|
|
1185
1185
|
}
|
|
1186
1186
|
const {
|
|
1187
1187
|
top: r,
|
|
@@ -1189,7 +1189,7 @@ function nt(e, t) {
|
|
|
1189
1189
|
width: s,
|
|
1190
1190
|
height: a,
|
|
1191
1191
|
bottom: c,
|
|
1192
|
-
right:
|
|
1192
|
+
right: l
|
|
1193
1193
|
} = n;
|
|
1194
1194
|
return {
|
|
1195
1195
|
top: r,
|
|
@@ -1197,7 +1197,7 @@ function nt(e, t) {
|
|
|
1197
1197
|
width: s,
|
|
1198
1198
|
height: a,
|
|
1199
1199
|
bottom: c,
|
|
1200
|
-
right:
|
|
1200
|
+
right: l
|
|
1201
1201
|
};
|
|
1202
1202
|
}
|
|
1203
1203
|
function nr(e) {
|
|
@@ -1241,7 +1241,7 @@ function En(e, t) {
|
|
|
1241
1241
|
}
|
|
1242
1242
|
return e ? r(e) : n;
|
|
1243
1243
|
}
|
|
1244
|
-
function
|
|
1244
|
+
function Ir(e) {
|
|
1245
1245
|
const [t] = En(e, 1);
|
|
1246
1246
|
return t ?? null;
|
|
1247
1247
|
}
|
|
@@ -1299,26 +1299,26 @@ function hs(e, t, n, r, o) {
|
|
|
1299
1299
|
top: s,
|
|
1300
1300
|
left: a,
|
|
1301
1301
|
right: c,
|
|
1302
|
-
bottom:
|
|
1302
|
+
bottom: l
|
|
1303
1303
|
} = n;
|
|
1304
1304
|
r === void 0 && (r = 10), o === void 0 && (o = fs);
|
|
1305
1305
|
const {
|
|
1306
|
-
isTop:
|
|
1307
|
-
isBottom:
|
|
1306
|
+
isTop: u,
|
|
1307
|
+
isBottom: f,
|
|
1308
1308
|
isLeft: d,
|
|
1309
1309
|
isRight: m
|
|
1310
|
-
} = zr(e),
|
|
1310
|
+
} = zr(e), p = {
|
|
1311
1311
|
x: 0,
|
|
1312
1312
|
y: 0
|
|
1313
1313
|
}, v = {
|
|
1314
1314
|
x: 0,
|
|
1315
1315
|
y: 0
|
|
1316
|
-
},
|
|
1316
|
+
}, h = {
|
|
1317
1317
|
height: t.height * o.y,
|
|
1318
1318
|
width: t.width * o.x
|
|
1319
1319
|
};
|
|
1320
|
-
return !
|
|
1321
|
-
direction:
|
|
1320
|
+
return !u && s <= t.top + h.height ? (p.y = re.Backward, v.y = r * Math.abs((t.top + h.height - s) / h.height)) : !f && l >= t.bottom - h.height && (p.y = re.Forward, v.y = r * Math.abs((t.bottom - h.height - l) / h.height)), !m && c >= t.right - h.width ? (p.x = re.Forward, v.x = r * Math.abs((t.right - h.width - c) / h.width)) : !d && a <= t.left + h.width && (p.x = re.Backward, v.x = r * Math.abs((t.left + h.width - a) / h.width)), {
|
|
1321
|
+
direction: p,
|
|
1322
1322
|
speed: v
|
|
1323
1323
|
};
|
|
1324
1324
|
}
|
|
@@ -1370,7 +1370,7 @@ function ms(e, t) {
|
|
|
1370
1370
|
bottom: o,
|
|
1371
1371
|
right: s
|
|
1372
1372
|
} = t(e);
|
|
1373
|
-
|
|
1373
|
+
Ir(e) && (o <= 0 || s <= 0 || n >= window.innerHeight || r >= window.innerWidth) && e.scrollIntoView({
|
|
1374
1374
|
block: "center",
|
|
1375
1375
|
inline: "center"
|
|
1376
1376
|
});
|
|
@@ -1384,11 +1384,11 @@ class _n {
|
|
|
1384
1384
|
...t
|
|
1385
1385
|
}, this.width = t.width, this.height = t.height;
|
|
1386
1386
|
for (const [s, a, c] of bs)
|
|
1387
|
-
for (const
|
|
1388
|
-
Object.defineProperty(this,
|
|
1387
|
+
for (const l of a)
|
|
1388
|
+
Object.defineProperty(this, l, {
|
|
1389
1389
|
get: () => {
|
|
1390
|
-
const
|
|
1391
|
-
return this.rect[
|
|
1390
|
+
const u = c(r), f = o[s] - u;
|
|
1391
|
+
return this.rect[l] + f;
|
|
1392
1392
|
},
|
|
1393
1393
|
enumerable: !0
|
|
1394
1394
|
});
|
|
@@ -1421,45 +1421,45 @@ function ln(e, t) {
|
|
|
1421
1421
|
const n = Math.abs(e.x), r = Math.abs(e.y);
|
|
1422
1422
|
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;
|
|
1423
1423
|
}
|
|
1424
|
-
var
|
|
1424
|
+
var xe;
|
|
1425
1425
|
(function(e) {
|
|
1426
1426
|
e.Click = "click", e.DragStart = "dragstart", e.Keydown = "keydown", e.ContextMenu = "contextmenu", e.Resize = "resize", e.SelectionChange = "selectionchange", e.VisibilityChange = "visibilitychange";
|
|
1427
|
-
})(
|
|
1427
|
+
})(xe || (xe = {}));
|
|
1428
1428
|
function rr(e) {
|
|
1429
1429
|
e.preventDefault();
|
|
1430
1430
|
}
|
|
1431
1431
|
function ys(e) {
|
|
1432
1432
|
e.stopPropagation();
|
|
1433
1433
|
}
|
|
1434
|
-
var
|
|
1434
|
+
var V;
|
|
1435
1435
|
(function(e) {
|
|
1436
1436
|
e.Space = "Space", e.Down = "ArrowDown", e.Right = "ArrowRight", e.Left = "ArrowLeft", e.Up = "ArrowUp", e.Esc = "Escape", e.Enter = "Enter", e.Tab = "Tab";
|
|
1437
|
-
})(
|
|
1437
|
+
})(V || (V = {}));
|
|
1438
1438
|
const Yr = {
|
|
1439
|
-
start: [
|
|
1440
|
-
cancel: [
|
|
1441
|
-
end: [
|
|
1439
|
+
start: [V.Space, V.Enter],
|
|
1440
|
+
cancel: [V.Esc],
|
|
1441
|
+
end: [V.Space, V.Enter, V.Tab]
|
|
1442
1442
|
}, ws = (e, t) => {
|
|
1443
1443
|
let {
|
|
1444
1444
|
currentCoordinates: n
|
|
1445
1445
|
} = t;
|
|
1446
1446
|
switch (e.code) {
|
|
1447
|
-
case
|
|
1447
|
+
case V.Right:
|
|
1448
1448
|
return {
|
|
1449
1449
|
...n,
|
|
1450
1450
|
x: n.x + 25
|
|
1451
1451
|
};
|
|
1452
|
-
case
|
|
1452
|
+
case V.Left:
|
|
1453
1453
|
return {
|
|
1454
1454
|
...n,
|
|
1455
1455
|
x: n.x - 25
|
|
1456
1456
|
};
|
|
1457
|
-
case
|
|
1457
|
+
case V.Down:
|
|
1458
1458
|
return {
|
|
1459
1459
|
...n,
|
|
1460
1460
|
y: n.y + 25
|
|
1461
1461
|
};
|
|
1462
|
-
case
|
|
1462
|
+
case V.Up:
|
|
1463
1463
|
return {
|
|
1464
1464
|
...n,
|
|
1465
1465
|
y: n.y - 25
|
|
@@ -1477,7 +1477,7 @@ class Fr {
|
|
|
1477
1477
|
this.props = t, this.listeners = new dt(tt(n)), this.windowListeners = new dt(he(n)), this.handleKeyDown = this.handleKeyDown.bind(this), this.handleCancel = this.handleCancel.bind(this), this.attach();
|
|
1478
1478
|
}
|
|
1479
1479
|
attach() {
|
|
1480
|
-
this.handleStart(), this.windowListeners.add(
|
|
1480
|
+
this.handleStart(), this.windowListeners.add(xe.Resize, this.handleCancel), this.windowListeners.add(xe.VisibilityChange, this.handleCancel), setTimeout(() => this.listeners.add(xe.Keydown, this.handleKeyDown));
|
|
1481
1481
|
}
|
|
1482
1482
|
handleStart() {
|
|
1483
1483
|
const {
|
|
@@ -1497,78 +1497,78 @@ class Fr {
|
|
|
1497
1497
|
coordinateGetter: a = ws,
|
|
1498
1498
|
scrollBehavior: c = "smooth"
|
|
1499
1499
|
} = o, {
|
|
1500
|
-
code:
|
|
1500
|
+
code: l
|
|
1501
1501
|
} = t;
|
|
1502
|
-
if (s.end.includes(
|
|
1502
|
+
if (s.end.includes(l)) {
|
|
1503
1503
|
this.handleEnd(t);
|
|
1504
1504
|
return;
|
|
1505
1505
|
}
|
|
1506
|
-
if (s.cancel.includes(
|
|
1506
|
+
if (s.cancel.includes(l)) {
|
|
1507
1507
|
this.handleCancel(t);
|
|
1508
1508
|
return;
|
|
1509
1509
|
}
|
|
1510
1510
|
const {
|
|
1511
|
-
collisionRect:
|
|
1512
|
-
} = r.current,
|
|
1513
|
-
x:
|
|
1514
|
-
y:
|
|
1511
|
+
collisionRect: u
|
|
1512
|
+
} = r.current, f = u ? {
|
|
1513
|
+
x: u.left,
|
|
1514
|
+
y: u.top
|
|
1515
1515
|
} : Se;
|
|
1516
|
-
this.referenceCoordinates || (this.referenceCoordinates =
|
|
1516
|
+
this.referenceCoordinates || (this.referenceCoordinates = f);
|
|
1517
1517
|
const d = a(t, {
|
|
1518
1518
|
active: n,
|
|
1519
1519
|
context: r.current,
|
|
1520
|
-
currentCoordinates:
|
|
1520
|
+
currentCoordinates: f
|
|
1521
1521
|
});
|
|
1522
1522
|
if (d) {
|
|
1523
|
-
const m = Yt(d,
|
|
1523
|
+
const m = Yt(d, f), p = {
|
|
1524
1524
|
x: 0,
|
|
1525
1525
|
y: 0
|
|
1526
1526
|
}, {
|
|
1527
1527
|
scrollableAncestors: v
|
|
1528
1528
|
} = r.current;
|
|
1529
|
-
for (const
|
|
1529
|
+
for (const h of v) {
|
|
1530
1530
|
const b = t.code, {
|
|
1531
|
-
isTop:
|
|
1532
|
-
isRight:
|
|
1533
|
-
isLeft:
|
|
1534
|
-
isBottom:
|
|
1531
|
+
isTop: w,
|
|
1532
|
+
isRight: R,
|
|
1533
|
+
isLeft: E,
|
|
1534
|
+
isBottom: _,
|
|
1535
1535
|
maxScroll: O,
|
|
1536
|
-
minScroll:
|
|
1537
|
-
} = zr(
|
|
1538
|
-
x: Math.min(b ===
|
|
1539
|
-
y: Math.min(b ===
|
|
1540
|
-
}, W = b ===
|
|
1536
|
+
minScroll: T
|
|
1537
|
+
} = zr(h), $ = gs(h), N = {
|
|
1538
|
+
x: Math.min(b === V.Right ? $.right - $.width / 2 : $.right, Math.max(b === V.Right ? $.left : $.left + $.width / 2, d.x)),
|
|
1539
|
+
y: Math.min(b === V.Down ? $.bottom - $.height / 2 : $.bottom, Math.max(b === V.Down ? $.top : $.top + $.height / 2, d.y))
|
|
1540
|
+
}, W = b === V.Right && !R || b === V.Left && !E, Y = b === V.Down && !_ || b === V.Up && !w;
|
|
1541
1541
|
if (W && N.x !== d.x) {
|
|
1542
|
-
const
|
|
1542
|
+
const k = h.scrollLeft + m.x, Q = b === V.Right && k <= O.x || b === V.Left && k >= T.x;
|
|
1543
1543
|
if (Q && !m.y) {
|
|
1544
|
-
|
|
1545
|
-
left:
|
|
1544
|
+
h.scrollTo({
|
|
1545
|
+
left: k,
|
|
1546
1546
|
behavior: c
|
|
1547
1547
|
});
|
|
1548
1548
|
return;
|
|
1549
1549
|
}
|
|
1550
|
-
Q ?
|
|
1551
|
-
left: -
|
|
1550
|
+
Q ? p.x = h.scrollLeft - k : p.x = b === V.Right ? h.scrollLeft - O.x : h.scrollLeft - T.x, p.x && h.scrollBy({
|
|
1551
|
+
left: -p.x,
|
|
1552
1552
|
behavior: c
|
|
1553
1553
|
});
|
|
1554
1554
|
break;
|
|
1555
1555
|
} else if (Y && N.y !== d.y) {
|
|
1556
|
-
const
|
|
1556
|
+
const k = h.scrollTop + m.y, Q = b === V.Down && k <= O.y || b === V.Up && k >= T.y;
|
|
1557
1557
|
if (Q && !m.x) {
|
|
1558
|
-
|
|
1559
|
-
top:
|
|
1558
|
+
h.scrollTo({
|
|
1559
|
+
top: k,
|
|
1560
1560
|
behavior: c
|
|
1561
1561
|
});
|
|
1562
1562
|
return;
|
|
1563
1563
|
}
|
|
1564
|
-
Q ?
|
|
1565
|
-
top: -
|
|
1564
|
+
Q ? p.y = h.scrollTop - k : p.y = b === V.Down ? h.scrollTop - O.y : h.scrollTop - T.y, p.y && h.scrollBy({
|
|
1565
|
+
top: -p.y,
|
|
1566
1566
|
behavior: c
|
|
1567
1567
|
});
|
|
1568
1568
|
break;
|
|
1569
1569
|
}
|
|
1570
1570
|
}
|
|
1571
|
-
this.handleMove(t, Je(Yt(d, this.referenceCoordinates),
|
|
1571
|
+
this.handleMove(t, Je(Yt(d, this.referenceCoordinates), p));
|
|
1572
1572
|
}
|
|
1573
1573
|
}
|
|
1574
1574
|
}
|
|
@@ -1644,7 +1644,7 @@ class Tn {
|
|
|
1644
1644
|
} = this;
|
|
1645
1645
|
if (this.listeners.add(t.move.name, this.handleMove, {
|
|
1646
1646
|
passive: !1
|
|
1647
|
-
}), this.listeners.add(t.end.name, this.handleEnd), t.cancel && this.listeners.add(t.cancel.name, this.handleCancel), this.windowListeners.add(
|
|
1647
|
+
}), this.listeners.add(t.end.name, this.handleEnd), t.cancel && this.listeners.add(t.cancel.name, this.handleCancel), this.windowListeners.add(xe.Resize, this.handleCancel), this.windowListeners.add(xe.DragStart, rr), this.windowListeners.add(xe.VisibilityChange, this.handleCancel), this.windowListeners.add(xe.ContextMenu, rr), this.documentListeners.add(xe.Keydown, this.handleKeydown), n) {
|
|
1648
1648
|
if (r != null && r({
|
|
1649
1649
|
event: this.props.event,
|
|
1650
1650
|
activeNode: this.props.activeNode,
|
|
@@ -1678,9 +1678,9 @@ class Tn {
|
|
|
1678
1678
|
} = this, {
|
|
1679
1679
|
onStart: n
|
|
1680
1680
|
} = this.props;
|
|
1681
|
-
t && (this.activated = !0, this.documentListeners.add(
|
|
1681
|
+
t && (this.activated = !0, this.documentListeners.add(xe.Click, ys, {
|
|
1682
1682
|
capture: !0
|
|
1683
|
-
}), this.removeTextSelection(), this.documentListeners.add(
|
|
1683
|
+
}), this.removeTextSelection(), this.documentListeners.add(xe.SelectionChange, this.removeTextSelection), n(t));
|
|
1684
1684
|
}
|
|
1685
1685
|
handleMove(t) {
|
|
1686
1686
|
var n;
|
|
@@ -1696,20 +1696,20 @@ class Tn {
|
|
|
1696
1696
|
} = s;
|
|
1697
1697
|
if (!o)
|
|
1698
1698
|
return;
|
|
1699
|
-
const
|
|
1699
|
+
const l = (n = mn(t)) != null ? n : Se, u = Yt(o, l);
|
|
1700
1700
|
if (!r && c) {
|
|
1701
1701
|
if (or(c)) {
|
|
1702
|
-
if (c.tolerance != null && ln(
|
|
1702
|
+
if (c.tolerance != null && ln(u, c.tolerance))
|
|
1703
1703
|
return this.handleCancel();
|
|
1704
|
-
if (ln(
|
|
1704
|
+
if (ln(u, c.distance))
|
|
1705
1705
|
return this.handleStart();
|
|
1706
1706
|
}
|
|
1707
|
-
if (sr(c) && ln(
|
|
1707
|
+
if (sr(c) && ln(u, c.tolerance))
|
|
1708
1708
|
return this.handleCancel();
|
|
1709
|
-
this.handlePending(c,
|
|
1709
|
+
this.handlePending(c, u);
|
|
1710
1710
|
return;
|
|
1711
1711
|
}
|
|
1712
|
-
t.cancelable && t.preventDefault(), a(
|
|
1712
|
+
t.cancelable && t.preventDefault(), a(l);
|
|
1713
1713
|
}
|
|
1714
1714
|
handleEnd() {
|
|
1715
1715
|
const {
|
|
@@ -1726,7 +1726,7 @@ class Tn {
|
|
|
1726
1726
|
this.detach(), this.activated || t(this.props.active), n();
|
|
1727
1727
|
}
|
|
1728
1728
|
handleKeydown(t) {
|
|
1729
|
-
t.code ===
|
|
1729
|
+
t.code === V.Esc && this.handleCancel();
|
|
1730
1730
|
}
|
|
1731
1731
|
removeTextSelection() {
|
|
1732
1732
|
var t;
|
|
@@ -1841,10 +1841,10 @@ var ft;
|
|
|
1841
1841
|
(function(e) {
|
|
1842
1842
|
e[e.Pointer = 0] = "Pointer", e[e.DraggableRect = 1] = "DraggableRect";
|
|
1843
1843
|
})(ft || (ft = {}));
|
|
1844
|
-
var
|
|
1844
|
+
var Vt;
|
|
1845
1845
|
(function(e) {
|
|
1846
1846
|
e[e.TreeOrder = 0] = "TreeOrder", e[e.ReversedTreeOrder = 1] = "ReversedTreeOrder";
|
|
1847
|
-
})(
|
|
1847
|
+
})(Vt || (Vt = {}));
|
|
1848
1848
|
function js(e) {
|
|
1849
1849
|
let {
|
|
1850
1850
|
acceleration: t,
|
|
@@ -1853,88 +1853,88 @@ function js(e) {
|
|
|
1853
1853
|
draggingRect: o,
|
|
1854
1854
|
enabled: s,
|
|
1855
1855
|
interval: a = 5,
|
|
1856
|
-
order: c =
|
|
1857
|
-
pointerCoordinates:
|
|
1858
|
-
scrollableAncestors:
|
|
1859
|
-
scrollableAncestorRects:
|
|
1856
|
+
order: c = Vt.TreeOrder,
|
|
1857
|
+
pointerCoordinates: l,
|
|
1858
|
+
scrollableAncestors: u,
|
|
1859
|
+
scrollableAncestorRects: f,
|
|
1860
1860
|
delta: d,
|
|
1861
1861
|
threshold: m
|
|
1862
1862
|
} = e;
|
|
1863
|
-
const
|
|
1863
|
+
const p = _s({
|
|
1864
1864
|
delta: d,
|
|
1865
1865
|
disabled: !s
|
|
1866
|
-
}), [v,
|
|
1866
|
+
}), [v, h] = Lo(), b = U({
|
|
1867
1867
|
x: 0,
|
|
1868
1868
|
y: 0
|
|
1869
|
-
}),
|
|
1869
|
+
}), w = U({
|
|
1870
1870
|
x: 0,
|
|
1871
1871
|
y: 0
|
|
1872
|
-
}),
|
|
1872
|
+
}), R = B(() => {
|
|
1873
1873
|
switch (n) {
|
|
1874
1874
|
case ft.Pointer:
|
|
1875
|
-
return
|
|
1876
|
-
top:
|
|
1877
|
-
bottom:
|
|
1878
|
-
left:
|
|
1879
|
-
right:
|
|
1875
|
+
return l ? {
|
|
1876
|
+
top: l.y,
|
|
1877
|
+
bottom: l.y,
|
|
1878
|
+
left: l.x,
|
|
1879
|
+
right: l.x
|
|
1880
1880
|
} : null;
|
|
1881
1881
|
case ft.DraggableRect:
|
|
1882
1882
|
return o;
|
|
1883
1883
|
}
|
|
1884
|
-
}, [n, o,
|
|
1885
|
-
const
|
|
1886
|
-
if (!
|
|
1884
|
+
}, [n, o, l]), E = U(null), _ = le(() => {
|
|
1885
|
+
const T = E.current;
|
|
1886
|
+
if (!T)
|
|
1887
1887
|
return;
|
|
1888
|
-
const $ = b.current.x *
|
|
1889
|
-
|
|
1890
|
-
}, []), O = B(() => c ===
|
|
1891
|
-
|
|
1888
|
+
const $ = b.current.x * w.current.x, N = b.current.y * w.current.y;
|
|
1889
|
+
T.scrollBy($, N);
|
|
1890
|
+
}, []), O = B(() => c === Vt.TreeOrder ? [...u].reverse() : u, [c, u]);
|
|
1891
|
+
H(
|
|
1892
1892
|
() => {
|
|
1893
|
-
if (!s || !
|
|
1894
|
-
|
|
1893
|
+
if (!s || !u.length || !R) {
|
|
1894
|
+
h();
|
|
1895
1895
|
return;
|
|
1896
1896
|
}
|
|
1897
|
-
for (const
|
|
1898
|
-
if (r?.(
|
|
1897
|
+
for (const T of O) {
|
|
1898
|
+
if (r?.(T) === !1)
|
|
1899
1899
|
continue;
|
|
1900
|
-
const $ =
|
|
1900
|
+
const $ = u.indexOf(T), N = f[$];
|
|
1901
1901
|
if (!N)
|
|
1902
1902
|
continue;
|
|
1903
1903
|
const {
|
|
1904
1904
|
direction: W,
|
|
1905
1905
|
speed: Y
|
|
1906
|
-
} = hs(
|
|
1907
|
-
for (const
|
|
1908
|
-
|
|
1906
|
+
} = hs(T, N, R, t, m);
|
|
1907
|
+
for (const k of ["x", "y"])
|
|
1908
|
+
p[k][W[k]] || (Y[k] = 0, W[k] = 0);
|
|
1909
1909
|
if (Y.x > 0 || Y.y > 0) {
|
|
1910
|
-
|
|
1910
|
+
h(), E.current = T, v(_, a), b.current = Y, w.current = W;
|
|
1911
1911
|
return;
|
|
1912
1912
|
}
|
|
1913
1913
|
}
|
|
1914
1914
|
b.current = {
|
|
1915
1915
|
x: 0,
|
|
1916
1916
|
y: 0
|
|
1917
|
-
},
|
|
1917
|
+
}, w.current = {
|
|
1918
1918
|
x: 0,
|
|
1919
1919
|
y: 0
|
|
1920
|
-
},
|
|
1920
|
+
}, h();
|
|
1921
1921
|
},
|
|
1922
1922
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1923
1923
|
[
|
|
1924
1924
|
t,
|
|
1925
|
-
|
|
1925
|
+
_,
|
|
1926
1926
|
r,
|
|
1927
|
-
|
|
1927
|
+
h,
|
|
1928
1928
|
s,
|
|
1929
1929
|
a,
|
|
1930
1930
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1931
|
-
JSON.stringify(
|
|
1931
|
+
JSON.stringify(R),
|
|
1932
1932
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1933
|
-
JSON.stringify(
|
|
1933
|
+
JSON.stringify(p),
|
|
1934
1934
|
v,
|
|
1935
|
-
|
|
1935
|
+
u,
|
|
1936
1936
|
O,
|
|
1937
|
-
|
|
1937
|
+
f,
|
|
1938
1938
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1939
1939
|
JSON.stringify(m)
|
|
1940
1940
|
]
|
|
@@ -2010,58 +2010,58 @@ function Ms(e, t) {
|
|
|
2010
2010
|
} = t;
|
|
2011
2011
|
const [s, a] = oe(null), {
|
|
2012
2012
|
frequency: c,
|
|
2013
|
-
measure:
|
|
2014
|
-
strategy:
|
|
2015
|
-
} = o,
|
|
2016
|
-
|
|
2017
|
-
}, [m]), v = U(null),
|
|
2013
|
+
measure: l,
|
|
2014
|
+
strategy: u
|
|
2015
|
+
} = o, f = U(e), d = b(), m = gt(d), p = le(function(w) {
|
|
2016
|
+
w === void 0 && (w = []), !m.current && a((R) => R === null ? w : R.concat(w.filter((E) => !R.includes(E))));
|
|
2017
|
+
}, [m]), v = U(null), h = yt((w) => {
|
|
2018
2018
|
if (d && !n)
|
|
2019
2019
|
return ir;
|
|
2020
|
-
if (!
|
|
2021
|
-
const
|
|
2022
|
-
for (let
|
|
2023
|
-
if (!
|
|
2020
|
+
if (!w || w === ir || f.current !== e || s != null) {
|
|
2021
|
+
const R = /* @__PURE__ */ new Map();
|
|
2022
|
+
for (let E of e) {
|
|
2023
|
+
if (!E)
|
|
2024
2024
|
continue;
|
|
2025
|
-
if (s && s.length > 0 && !s.includes(
|
|
2026
|
-
|
|
2025
|
+
if (s && s.length > 0 && !s.includes(E.id) && E.rect.current) {
|
|
2026
|
+
R.set(E.id, E.rect.current);
|
|
2027
2027
|
continue;
|
|
2028
2028
|
}
|
|
2029
|
-
const
|
|
2030
|
-
|
|
2029
|
+
const _ = E.node.current, O = _ ? new _n(l(_), _) : null;
|
|
2030
|
+
E.rect.current = O, O && R.set(E.id, O);
|
|
2031
2031
|
}
|
|
2032
|
-
return
|
|
2032
|
+
return R;
|
|
2033
2033
|
}
|
|
2034
|
-
return
|
|
2035
|
-
}, [e, s, n, d,
|
|
2036
|
-
return
|
|
2037
|
-
|
|
2038
|
-
}, [e]),
|
|
2034
|
+
return w;
|
|
2035
|
+
}, [e, s, n, d, l]);
|
|
2036
|
+
return H(() => {
|
|
2037
|
+
f.current = e;
|
|
2038
|
+
}, [e]), H(
|
|
2039
2039
|
() => {
|
|
2040
|
-
d ||
|
|
2040
|
+
d || p();
|
|
2041
2041
|
},
|
|
2042
2042
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2043
2043
|
[n, d]
|
|
2044
|
-
),
|
|
2044
|
+
), H(
|
|
2045
2045
|
() => {
|
|
2046
2046
|
s && s.length > 0 && a(null);
|
|
2047
2047
|
},
|
|
2048
2048
|
//eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2049
2049
|
[JSON.stringify(s)]
|
|
2050
|
-
),
|
|
2050
|
+
), H(
|
|
2051
2051
|
() => {
|
|
2052
2052
|
d || typeof c != "number" || v.current !== null || (v.current = setTimeout(() => {
|
|
2053
|
-
|
|
2053
|
+
p(), v.current = null;
|
|
2054
2054
|
}, c));
|
|
2055
2055
|
},
|
|
2056
2056
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2057
|
-
[c, d,
|
|
2057
|
+
[c, d, p, ...r]
|
|
2058
2058
|
), {
|
|
2059
|
-
droppableRects:
|
|
2060
|
-
measureDroppableContainers:
|
|
2059
|
+
droppableRects: h,
|
|
2060
|
+
measureDroppableContainers: p,
|
|
2061
2061
|
measuringScheduled: s != null
|
|
2062
2062
|
};
|
|
2063
2063
|
function b() {
|
|
2064
|
-
switch (
|
|
2064
|
+
switch (u) {
|
|
2065
2065
|
case pt.Always:
|
|
2066
2066
|
return !1;
|
|
2067
2067
|
case pt.BeforeDragging:
|
|
@@ -2071,13 +2071,13 @@ function Ms(e, t) {
|
|
|
2071
2071
|
}
|
|
2072
2072
|
}
|
|
2073
2073
|
}
|
|
2074
|
-
function
|
|
2074
|
+
function Vr(e, t) {
|
|
2075
2075
|
return yt((n) => e ? n || (typeof t == "function" ? t(e) : e) : null, [t, e]);
|
|
2076
2076
|
}
|
|
2077
2077
|
function $s(e, t) {
|
|
2078
|
-
return
|
|
2078
|
+
return Vr(e, t);
|
|
2079
2079
|
}
|
|
2080
|
-
function
|
|
2080
|
+
function ks(e) {
|
|
2081
2081
|
let {
|
|
2082
2082
|
callback: t,
|
|
2083
2083
|
disabled: n
|
|
@@ -2090,7 +2090,7 @@ function Is(e) {
|
|
|
2090
2090
|
} = window;
|
|
2091
2091
|
return new s(r);
|
|
2092
2092
|
}, [r, n]);
|
|
2093
|
-
return
|
|
2093
|
+
return H(() => () => o?.disconnect(), [o]), o;
|
|
2094
2094
|
}
|
|
2095
2095
|
function Xt(e) {
|
|
2096
2096
|
let {
|
|
@@ -2109,35 +2109,35 @@ function Xt(e) {
|
|
|
2109
2109
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2110
2110
|
[n]
|
|
2111
2111
|
);
|
|
2112
|
-
return
|
|
2112
|
+
return H(() => () => o?.disconnect(), [o]), o;
|
|
2113
2113
|
}
|
|
2114
|
-
function
|
|
2114
|
+
function Is(e) {
|
|
2115
2115
|
return new _n(nt(e), e);
|
|
2116
2116
|
}
|
|
2117
2117
|
function ar(e, t, n) {
|
|
2118
|
-
t === void 0 && (t =
|
|
2118
|
+
t === void 0 && (t = Is);
|
|
2119
2119
|
const [r, o] = oe(null);
|
|
2120
2120
|
function s() {
|
|
2121
|
-
o((
|
|
2121
|
+
o((l) => {
|
|
2122
2122
|
if (!e)
|
|
2123
2123
|
return null;
|
|
2124
2124
|
if (e.isConnected === !1) {
|
|
2125
|
-
var
|
|
2126
|
-
return (
|
|
2125
|
+
var u;
|
|
2126
|
+
return (u = l ?? n) != null ? u : null;
|
|
2127
2127
|
}
|
|
2128
|
-
const
|
|
2129
|
-
return JSON.stringify(
|
|
2128
|
+
const f = t(e);
|
|
2129
|
+
return JSON.stringify(l) === JSON.stringify(f) ? l : f;
|
|
2130
2130
|
});
|
|
2131
2131
|
}
|
|
2132
|
-
const a =
|
|
2133
|
-
callback(
|
|
2132
|
+
const a = ks({
|
|
2133
|
+
callback(l) {
|
|
2134
2134
|
if (e)
|
|
2135
|
-
for (const
|
|
2135
|
+
for (const u of l) {
|
|
2136
2136
|
const {
|
|
2137
|
-
type:
|
|
2137
|
+
type: f,
|
|
2138
2138
|
target: d
|
|
2139
|
-
} =
|
|
2140
|
-
if (
|
|
2139
|
+
} = u;
|
|
2140
|
+
if (f === "childList" && d instanceof HTMLElement && d.contains(e)) {
|
|
2141
2141
|
s();
|
|
2142
2142
|
break;
|
|
2143
2143
|
}
|
|
@@ -2154,13 +2154,13 @@ function ar(e, t, n) {
|
|
|
2154
2154
|
}, [e]), r;
|
|
2155
2155
|
}
|
|
2156
2156
|
function As(e) {
|
|
2157
|
-
const t =
|
|
2158
|
-
return
|
|
2157
|
+
const t = Vr(e);
|
|
2158
|
+
return kr(e, t);
|
|
2159
2159
|
}
|
|
2160
2160
|
const cr = [];
|
|
2161
2161
|
function Ls(e) {
|
|
2162
2162
|
const t = U(e), n = yt((r) => e ? r && r !== cr && e && t.current && e.parentNode === t.current.parentNode ? r : En(e) : cr, [e]);
|
|
2163
|
-
return
|
|
2163
|
+
return H(() => {
|
|
2164
2164
|
t.current = e;
|
|
2165
2165
|
}, [e]), n;
|
|
2166
2166
|
}
|
|
@@ -2169,25 +2169,25 @@ function Ns(e) {
|
|
|
2169
2169
|
const a = cn(s.target);
|
|
2170
2170
|
a && n((c) => c ? (c.set(a, bn(a)), new Map(c)) : null);
|
|
2171
2171
|
}, []);
|
|
2172
|
-
return
|
|
2172
|
+
return H(() => {
|
|
2173
2173
|
const s = r.current;
|
|
2174
2174
|
if (e !== s) {
|
|
2175
2175
|
a(s);
|
|
2176
|
-
const c = e.map((
|
|
2177
|
-
const
|
|
2178
|
-
return
|
|
2176
|
+
const c = e.map((l) => {
|
|
2177
|
+
const u = cn(l);
|
|
2178
|
+
return u ? (u.addEventListener("scroll", o, {
|
|
2179
2179
|
passive: !0
|
|
2180
|
-
}), [
|
|
2181
|
-
}).filter((
|
|
2180
|
+
}), [u, bn(u)]) : null;
|
|
2181
|
+
}).filter((l) => l != null);
|
|
2182
2182
|
n(c.length ? new Map(c) : null), r.current = e;
|
|
2183
2183
|
}
|
|
2184
2184
|
return () => {
|
|
2185
2185
|
a(e), a(s);
|
|
2186
2186
|
};
|
|
2187
2187
|
function a(c) {
|
|
2188
|
-
c.forEach((
|
|
2189
|
-
const
|
|
2190
|
-
|
|
2188
|
+
c.forEach((l) => {
|
|
2189
|
+
const u = cn(l);
|
|
2190
|
+
u?.removeEventListener("scroll", o);
|
|
2191
2191
|
});
|
|
2192
2192
|
}
|
|
2193
2193
|
}, [o, e]), B(() => e.length ? t ? Array.from(t.values()).reduce((s, a) => Je(s, a), Se) : Pr(e) : Se, [e, t]);
|
|
@@ -2195,19 +2195,19 @@ function Ns(e) {
|
|
|
2195
2195
|
function lr(e, t) {
|
|
2196
2196
|
t === void 0 && (t = []);
|
|
2197
2197
|
const n = U(null);
|
|
2198
|
-
return
|
|
2198
|
+
return H(
|
|
2199
2199
|
() => {
|
|
2200
2200
|
n.current = null;
|
|
2201
2201
|
},
|
|
2202
2202
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2203
2203
|
t
|
|
2204
|
-
),
|
|
2204
|
+
), H(() => {
|
|
2205
2205
|
const r = e !== Se;
|
|
2206
2206
|
r && !n.current && (n.current = e), !r && n.current && (n.current = null);
|
|
2207
2207
|
}, [e]), n.current ? Yt(e, n.current) : Se;
|
|
2208
2208
|
}
|
|
2209
2209
|
function zs(e) {
|
|
2210
|
-
|
|
2210
|
+
H(
|
|
2211
2211
|
() => {
|
|
2212
2212
|
if (!Gt)
|
|
2213
2213
|
return;
|
|
@@ -2243,21 +2243,21 @@ function Ps(e, t) {
|
|
|
2243
2243
|
}, n;
|
|
2244
2244
|
}, {}), [e, t]);
|
|
2245
2245
|
}
|
|
2246
|
-
function
|
|
2246
|
+
function Hr(e) {
|
|
2247
2247
|
return B(() => e ? ls(e) : null, [e]);
|
|
2248
2248
|
}
|
|
2249
2249
|
const ur = [];
|
|
2250
2250
|
function Ys(e, t) {
|
|
2251
2251
|
t === void 0 && (t = nt);
|
|
2252
|
-
const [n] = e, r =
|
|
2252
|
+
const [n] = e, r = Hr(n ? he(n) : null), [o, s] = oe(ur);
|
|
2253
2253
|
function a() {
|
|
2254
|
-
s(() => e.length ? e.map((
|
|
2254
|
+
s(() => e.length ? e.map((l) => Nr(l) ? r : new _n(t(l), l)) : ur);
|
|
2255
2255
|
}
|
|
2256
2256
|
const c = Xt({
|
|
2257
2257
|
callback: a
|
|
2258
2258
|
});
|
|
2259
2259
|
return Te(() => {
|
|
2260
|
-
c?.disconnect(), a(), e.forEach((
|
|
2260
|
+
c?.disconnect(), a(), e.forEach((l) => c?.observe(l));
|
|
2261
2261
|
}, [e]), o;
|
|
2262
2262
|
}
|
|
2263
2263
|
function Fs(e) {
|
|
@@ -2268,17 +2268,17 @@ function Fs(e) {
|
|
|
2268
2268
|
const t = e.children[0];
|
|
2269
2269
|
return xt(t) ? t : e;
|
|
2270
2270
|
}
|
|
2271
|
-
function
|
|
2271
|
+
function Vs(e) {
|
|
2272
2272
|
let {
|
|
2273
2273
|
measure: t
|
|
2274
2274
|
} = e;
|
|
2275
|
-
const [n, r] = oe(null), o = le((
|
|
2275
|
+
const [n, r] = oe(null), o = le((u) => {
|
|
2276
2276
|
for (const {
|
|
2277
|
-
target:
|
|
2278
|
-
} of
|
|
2279
|
-
if (xt(
|
|
2277
|
+
target: f
|
|
2278
|
+
} of u)
|
|
2279
|
+
if (xt(f)) {
|
|
2280
2280
|
r((d) => {
|
|
2281
|
-
const m = t(
|
|
2281
|
+
const m = t(f);
|
|
2282
2282
|
return d ? {
|
|
2283
2283
|
...d,
|
|
2284
2284
|
width: m.width,
|
|
@@ -2289,17 +2289,17 @@ function Hs(e) {
|
|
|
2289
2289
|
}
|
|
2290
2290
|
}, [t]), s = Xt({
|
|
2291
2291
|
callback: o
|
|
2292
|
-
}), a = le((
|
|
2293
|
-
const
|
|
2294
|
-
s?.disconnect(),
|
|
2295
|
-
}, [t, s]), [c,
|
|
2292
|
+
}), a = le((u) => {
|
|
2293
|
+
const f = Fs(u);
|
|
2294
|
+
s?.disconnect(), f && s?.observe(f), r(f ? t(f) : null);
|
|
2295
|
+
}, [t, s]), [c, l] = Pt(a);
|
|
2296
2296
|
return B(() => ({
|
|
2297
2297
|
nodeRef: c,
|
|
2298
2298
|
rect: n,
|
|
2299
|
-
setRef:
|
|
2300
|
-
}), [n, c,
|
|
2299
|
+
setRef: l
|
|
2300
|
+
}), [n, c, l]);
|
|
2301
2301
|
}
|
|
2302
|
-
const
|
|
2302
|
+
const Hs = [{
|
|
2303
2303
|
sensor: On,
|
|
2304
2304
|
options: {}
|
|
2305
2305
|
}, {
|
|
@@ -2498,8 +2498,8 @@ function qs(e) {
|
|
|
2498
2498
|
active: n,
|
|
2499
2499
|
activatorEvent: r,
|
|
2500
2500
|
draggableNodes: o
|
|
2501
|
-
} =
|
|
2502
|
-
return
|
|
2501
|
+
} = He(qt), s = vn(r), a = vn(n?.id);
|
|
2502
|
+
return H(() => {
|
|
2503
2503
|
if (!t && !r && s && a != null) {
|
|
2504
2504
|
if (!jn(s) || document.activeElement === s.target)
|
|
2505
2505
|
return;
|
|
@@ -2507,16 +2507,16 @@ function qs(e) {
|
|
|
2507
2507
|
if (!c)
|
|
2508
2508
|
return;
|
|
2509
2509
|
const {
|
|
2510
|
-
activatorNode:
|
|
2511
|
-
node:
|
|
2510
|
+
activatorNode: l,
|
|
2511
|
+
node: u
|
|
2512
2512
|
} = c;
|
|
2513
|
-
if (!
|
|
2513
|
+
if (!l.current && !u.current)
|
|
2514
2514
|
return;
|
|
2515
2515
|
requestAnimationFrame(() => {
|
|
2516
|
-
for (const
|
|
2517
|
-
if (!
|
|
2516
|
+
for (const f of [l.current, u.current]) {
|
|
2517
|
+
if (!f)
|
|
2518
2518
|
continue;
|
|
2519
|
-
const d = Po(
|
|
2519
|
+
const d = Po(f);
|
|
2520
2520
|
if (d) {
|
|
2521
2521
|
d.focus();
|
|
2522
2522
|
break;
|
|
@@ -2577,12 +2577,12 @@ function Zs(e) {
|
|
|
2577
2577
|
}
|
|
2578
2578
|
if (s.current || !r)
|
|
2579
2579
|
return;
|
|
2580
|
-
const
|
|
2581
|
-
if (!
|
|
2580
|
+
const u = t?.node.current;
|
|
2581
|
+
if (!u || u.isConnected === !1)
|
|
2582
2582
|
return;
|
|
2583
|
-
const
|
|
2583
|
+
const f = n(u), d = kr(f, r);
|
|
2584
2584
|
if (a || (d.x = 0), c || (d.y = 0), s.current = !0, Math.abs(d.x) > 0 || Math.abs(d.y) > 0) {
|
|
2585
|
-
const m =
|
|
2585
|
+
const m = Ir(u);
|
|
2586
2586
|
m && m.scrollBy({
|
|
2587
2587
|
top: d.y,
|
|
2588
2588
|
left: d.x
|
|
@@ -2604,15 +2604,15 @@ const Ur = /* @__PURE__ */ po(function(t) {
|
|
|
2604
2604
|
let {
|
|
2605
2605
|
id: a,
|
|
2606
2606
|
accessibility: c,
|
|
2607
|
-
autoScroll:
|
|
2608
|
-
children:
|
|
2609
|
-
sensors:
|
|
2607
|
+
autoScroll: l = !0,
|
|
2608
|
+
children: u,
|
|
2609
|
+
sensors: f = Hs,
|
|
2610
2610
|
collisionDetection: d = ns,
|
|
2611
2611
|
measuring: m,
|
|
2612
|
-
modifiers:
|
|
2612
|
+
modifiers: p,
|
|
2613
2613
|
...v
|
|
2614
2614
|
} = t;
|
|
2615
|
-
const
|
|
2615
|
+
const h = vo(Xs, void 0, Gs), [b, w] = h, [R, E] = Bo(), [_, O] = oe(Fe.Uninitialized), T = _ === Fe.Initialized, {
|
|
2616
2616
|
draggable: {
|
|
2617
2617
|
active: $,
|
|
2618
2618
|
nodes: N,
|
|
@@ -2621,7 +2621,7 @@ const Ur = /* @__PURE__ */ po(function(t) {
|
|
|
2621
2621
|
droppable: {
|
|
2622
2622
|
containers: Y
|
|
2623
2623
|
}
|
|
2624
|
-
} = b,
|
|
2624
|
+
} = b, k = $ != null ? N.get($) : null, Q = U({
|
|
2625
2625
|
initial: null,
|
|
2626
2626
|
translated: null
|
|
2627
2627
|
}), se = B(() => {
|
|
@@ -2629,15 +2629,15 @@ const Ur = /* @__PURE__ */ po(function(t) {
|
|
|
2629
2629
|
return $ != null ? {
|
|
2630
2630
|
id: $,
|
|
2631
2631
|
// It's possible for the active node to unmount while dragging
|
|
2632
|
-
data: (ce =
|
|
2632
|
+
data: (ce = k?.data) != null ? ce : Ws,
|
|
2633
2633
|
rect: Q
|
|
2634
2634
|
} : null;
|
|
2635
|
-
}, [$,
|
|
2635
|
+
}, [$, k]), M = U(null), [D, y] = oe(null), [j, C] = oe(null), I = gt(v, Object.values(v)), L = wt("DndDescribedBy", a), g = B(() => Y.getEnabled(), [Y]), S = Js(m), {
|
|
2636
2636
|
droppableRects: A,
|
|
2637
2637
|
measureDroppableContainers: P,
|
|
2638
2638
|
measuringScheduled: G
|
|
2639
|
-
} = Ms(
|
|
2640
|
-
dragging:
|
|
2639
|
+
} = Ms(g, {
|
|
2640
|
+
dragging: T,
|
|
2641
2641
|
dependencies: [W.x, W.y],
|
|
2642
2642
|
config: S.droppable
|
|
2643
2643
|
}), X = Ts(N, $), F = B(() => j ? mn(j) : null, [j]), J = ho(), Z = $s(X, S.draggable.measure);
|
|
@@ -2661,12 +2661,12 @@ const Ur = /* @__PURE__ */ po(function(t) {
|
|
|
2661
2661
|
over: null,
|
|
2662
2662
|
scrollableAncestors: [],
|
|
2663
2663
|
scrollAdjustedTranslate: null
|
|
2664
|
-
}), ye = Y.getNodeFor((n = ae.current.over) == null ? void 0 : n.id), $e =
|
|
2664
|
+
}), ye = Y.getNodeFor((n = ae.current.over) == null ? void 0 : n.id), $e = Vs({
|
|
2665
2665
|
measure: S.dragOverlay.measure
|
|
2666
|
-
}), Be = (r = $e.nodeRef.current) != null ? r : X, Ue =
|
|
2666
|
+
}), Be = (r = $e.nodeRef.current) != null ? r : X, Ue = T ? (o = $e.rect) != null ? o : z : null, kn = !!($e.nodeRef.current && $e.rect), In = As(kn ? null : z), Zt = Hr(Be ? he(Be) : null), Le = Ls(T ? ye ?? X : null), St = Ys(Le), Dt = Ks(p, {
|
|
2667
2667
|
transform: {
|
|
2668
|
-
x: W.x -
|
|
2669
|
-
y: W.y -
|
|
2668
|
+
x: W.x - In.x,
|
|
2669
|
+
y: W.y - In.y,
|
|
2670
2670
|
scaleX: 1,
|
|
2671
2671
|
scaleY: 1
|
|
2672
2672
|
},
|
|
@@ -2684,9 +2684,9 @@ const Ur = /* @__PURE__ */ po(function(t) {
|
|
|
2684
2684
|
active: se,
|
|
2685
2685
|
collisionRect: Xe,
|
|
2686
2686
|
droppableRects: A,
|
|
2687
|
-
droppableContainers:
|
|
2687
|
+
droppableContainers: g,
|
|
2688
2688
|
pointerCoordinates: An
|
|
2689
|
-
}) : null, Nn = es(rt, "id"), [Ne, zn] = oe(null), ao =
|
|
2689
|
+
}) : null, Nn = es(rt, "id"), [Ne, zn] = oe(null), ao = kn ? Dt : Je(Dt, io), co = rs(ao, (s = Ne?.rect) != null ? s : null, z), Qt = U(null), Pn = le(
|
|
2690
2690
|
(ce, ge) => {
|
|
2691
2691
|
let {
|
|
2692
2692
|
sensor: pe,
|
|
@@ -2694,12 +2694,12 @@ const Ur = /* @__PURE__ */ po(function(t) {
|
|
|
2694
2694
|
} = ge;
|
|
2695
2695
|
if (M.current == null)
|
|
2696
2696
|
return;
|
|
2697
|
-
const
|
|
2698
|
-
if (!
|
|
2697
|
+
const be = N.get(M.current);
|
|
2698
|
+
if (!be)
|
|
2699
2699
|
return;
|
|
2700
2700
|
const ve = ce.nativeEvent, Ce = new pe({
|
|
2701
2701
|
active: M.current,
|
|
2702
|
-
activeNode:
|
|
2702
|
+
activeNode: be,
|
|
2703
2703
|
event: ve,
|
|
2704
2704
|
options: ze,
|
|
2705
2705
|
// Sensors need to be instantiated with refs for arguments that change over time
|
|
@@ -2710,26 +2710,26 @@ const Ur = /* @__PURE__ */ po(function(t) {
|
|
|
2710
2710
|
return;
|
|
2711
2711
|
const {
|
|
2712
2712
|
onDragAbort: Re
|
|
2713
|
-
} =
|
|
2713
|
+
} = I.current, ke = {
|
|
2714
2714
|
id: ie
|
|
2715
2715
|
};
|
|
2716
|
-
Re?.(
|
|
2716
|
+
Re?.(ke), R({
|
|
2717
2717
|
type: "onDragAbort",
|
|
2718
|
-
event:
|
|
2718
|
+
event: ke
|
|
2719
2719
|
});
|
|
2720
2720
|
},
|
|
2721
|
-
onPending(ie, Pe, Re,
|
|
2721
|
+
onPending(ie, Pe, Re, ke) {
|
|
2722
2722
|
if (!N.get(ie))
|
|
2723
2723
|
return;
|
|
2724
2724
|
const {
|
|
2725
2725
|
onDragPending: st
|
|
2726
|
-
} =
|
|
2726
|
+
} = I.current, Ye = {
|
|
2727
2727
|
id: ie,
|
|
2728
2728
|
constraint: Pe,
|
|
2729
2729
|
initialCoordinates: Re,
|
|
2730
|
-
offset:
|
|
2730
|
+
offset: ke
|
|
2731
2731
|
};
|
|
2732
|
-
st?.(Ye),
|
|
2732
|
+
st?.(Ye), R({
|
|
2733
2733
|
type: "onDragPending",
|
|
2734
2734
|
event: Ye
|
|
2735
2735
|
});
|
|
@@ -2742,8 +2742,8 @@ const Ur = /* @__PURE__ */ po(function(t) {
|
|
|
2742
2742
|
if (!Re)
|
|
2743
2743
|
return;
|
|
2744
2744
|
const {
|
|
2745
|
-
onDragStart:
|
|
2746
|
-
} =
|
|
2745
|
+
onDragStart: ke
|
|
2746
|
+
} = I.current, ot = {
|
|
2747
2747
|
activatorEvent: ve,
|
|
2748
2748
|
active: {
|
|
2749
2749
|
id: Pe,
|
|
@@ -2752,18 +2752,18 @@ const Ur = /* @__PURE__ */ po(function(t) {
|
|
|
2752
2752
|
}
|
|
2753
2753
|
};
|
|
2754
2754
|
Ct(() => {
|
|
2755
|
-
|
|
2755
|
+
ke?.(ot), O(Fe.Initializing), w({
|
|
2756
2756
|
type: te.DragStart,
|
|
2757
2757
|
initialCoordinates: ie,
|
|
2758
2758
|
active: Pe
|
|
2759
|
-
}),
|
|
2759
|
+
}), R({
|
|
2760
2760
|
type: "onDragStart",
|
|
2761
2761
|
event: ot
|
|
2762
|
-
}),
|
|
2762
|
+
}), y(Qt.current), C(ve);
|
|
2763
2763
|
});
|
|
2764
2764
|
},
|
|
2765
2765
|
onMove(ie) {
|
|
2766
|
-
|
|
2766
|
+
w({
|
|
2767
2767
|
type: te.DragMove,
|
|
2768
2768
|
coordinates: ie
|
|
2769
2769
|
});
|
|
@@ -2776,7 +2776,7 @@ const Ur = /* @__PURE__ */ po(function(t) {
|
|
|
2776
2776
|
return async function() {
|
|
2777
2777
|
const {
|
|
2778
2778
|
active: Re,
|
|
2779
|
-
collisions:
|
|
2779
|
+
collisions: ke,
|
|
2780
2780
|
over: ot,
|
|
2781
2781
|
scrollAdjustedTranslate: st
|
|
2782
2782
|
} = ae.current;
|
|
@@ -2784,23 +2784,23 @@ const Ur = /* @__PURE__ */ po(function(t) {
|
|
|
2784
2784
|
if (Re && st) {
|
|
2785
2785
|
const {
|
|
2786
2786
|
cancelDrop: it
|
|
2787
|
-
} =
|
|
2787
|
+
} = I.current;
|
|
2788
2788
|
Ye = {
|
|
2789
2789
|
activatorEvent: ve,
|
|
2790
2790
|
active: Re,
|
|
2791
|
-
collisions:
|
|
2791
|
+
collisions: ke,
|
|
2792
2792
|
delta: st,
|
|
2793
2793
|
over: ot
|
|
2794
2794
|
}, ie === te.DragEnd && typeof it == "function" && await Promise.resolve(it(Ye)) && (ie = te.DragCancel);
|
|
2795
2795
|
}
|
|
2796
2796
|
M.current = null, Ct(() => {
|
|
2797
|
-
|
|
2797
|
+
w({
|
|
2798
2798
|
type: ie
|
|
2799
|
-
}), O(Fe.Uninitialized), zn(null),
|
|
2799
|
+
}), O(Fe.Uninitialized), zn(null), y(null), C(null), Qt.current = null;
|
|
2800
2800
|
const it = ie === te.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
2801
2801
|
if (Ye) {
|
|
2802
|
-
const en =
|
|
2803
|
-
en?.(Ye),
|
|
2802
|
+
const en = I.current[it];
|
|
2803
|
+
en?.(Ye), R({
|
|
2804
2804
|
type: it,
|
|
2805
2805
|
event: Ye
|
|
2806
2806
|
});
|
|
@@ -2812,32 +2812,32 @@ const Ur = /* @__PURE__ */ po(function(t) {
|
|
|
2812
2812
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2813
2813
|
[N]
|
|
2814
2814
|
), lo = le((ce, ge) => (pe, ze) => {
|
|
2815
|
-
const
|
|
2815
|
+
const be = pe.nativeEvent, ve = N.get(ze);
|
|
2816
2816
|
if (
|
|
2817
2817
|
// Another sensor is already instantiating
|
|
2818
2818
|
M.current !== null || // No active draggable
|
|
2819
2819
|
!ve || // Event has already been captured
|
|
2820
|
-
|
|
2820
|
+
be.dndKit || be.defaultPrevented
|
|
2821
2821
|
)
|
|
2822
2822
|
return;
|
|
2823
2823
|
const Ce = {
|
|
2824
2824
|
active: ve
|
|
2825
2825
|
};
|
|
2826
|
-
ce(pe, ge.options, Ce) === !0 && (
|
|
2826
|
+
ce(pe, ge.options, Ce) === !0 && (be.dndKit = {
|
|
2827
2827
|
capturedBy: ge.sensor
|
|
2828
2828
|
}, M.current = ze, Pn(pe, ge));
|
|
2829
|
-
}, [N, Pn]), Yn = Os(
|
|
2830
|
-
zs(
|
|
2831
|
-
z &&
|
|
2832
|
-
}, [z,
|
|
2829
|
+
}, [N, Pn]), Yn = Os(f, lo);
|
|
2830
|
+
zs(f), Te(() => {
|
|
2831
|
+
z && _ === Fe.Initializing && O(Fe.Initialized);
|
|
2832
|
+
}, [z, _]), H(
|
|
2833
2833
|
() => {
|
|
2834
2834
|
const {
|
|
2835
2835
|
onDragMove: ce
|
|
2836
|
-
} =
|
|
2836
|
+
} = I.current, {
|
|
2837
2837
|
active: ge,
|
|
2838
2838
|
activatorEvent: pe,
|
|
2839
2839
|
collisions: ze,
|
|
2840
|
-
over:
|
|
2840
|
+
over: be
|
|
2841
2841
|
} = ae.current;
|
|
2842
2842
|
if (!ge || !pe)
|
|
2843
2843
|
return;
|
|
@@ -2849,10 +2849,10 @@ const Ur = /* @__PURE__ */ po(function(t) {
|
|
|
2849
2849
|
x: Ge.x,
|
|
2850
2850
|
y: Ge.y
|
|
2851
2851
|
},
|
|
2852
|
-
over:
|
|
2852
|
+
over: be
|
|
2853
2853
|
};
|
|
2854
2854
|
Ct(() => {
|
|
2855
|
-
ce?.(ve),
|
|
2855
|
+
ce?.(ve), R({
|
|
2856
2856
|
type: "onDragMove",
|
|
2857
2857
|
event: ve
|
|
2858
2858
|
});
|
|
@@ -2860,20 +2860,20 @@ const Ur = /* @__PURE__ */ po(function(t) {
|
|
|
2860
2860
|
},
|
|
2861
2861
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2862
2862
|
[Ge.x, Ge.y]
|
|
2863
|
-
),
|
|
2863
|
+
), H(
|
|
2864
2864
|
() => {
|
|
2865
2865
|
const {
|
|
2866
2866
|
active: ce,
|
|
2867
2867
|
activatorEvent: ge,
|
|
2868
2868
|
collisions: pe,
|
|
2869
2869
|
droppableContainers: ze,
|
|
2870
|
-
scrollAdjustedTranslate:
|
|
2870
|
+
scrollAdjustedTranslate: be
|
|
2871
2871
|
} = ae.current;
|
|
2872
|
-
if (!ce || M.current == null || !ge || !
|
|
2872
|
+
if (!ce || M.current == null || !ge || !be)
|
|
2873
2873
|
return;
|
|
2874
2874
|
const {
|
|
2875
2875
|
onDragOver: ve
|
|
2876
|
-
} =
|
|
2876
|
+
} = I.current, Ce = ze.get(Nn), qe = Ce && Ce.rect.current ? {
|
|
2877
2877
|
id: Ce.id,
|
|
2878
2878
|
rect: Ce.rect.current,
|
|
2879
2879
|
data: Ce.data,
|
|
@@ -2883,13 +2883,13 @@ const Ur = /* @__PURE__ */ po(function(t) {
|
|
|
2883
2883
|
activatorEvent: ge,
|
|
2884
2884
|
collisions: pe,
|
|
2885
2885
|
delta: {
|
|
2886
|
-
x:
|
|
2887
|
-
y:
|
|
2886
|
+
x: be.x,
|
|
2887
|
+
y: be.y
|
|
2888
2888
|
},
|
|
2889
2889
|
over: qe
|
|
2890
2890
|
};
|
|
2891
2891
|
Ct(() => {
|
|
2892
|
-
zn(qe), ve?.(ie),
|
|
2892
|
+
zn(qe), ve?.(ie), R({
|
|
2893
2893
|
type: "onDragOver",
|
|
2894
2894
|
event: ie
|
|
2895
2895
|
});
|
|
@@ -2950,29 +2950,29 @@ const Ur = /* @__PURE__ */ po(function(t) {
|
|
|
2950
2950
|
ariaDescribedById: {
|
|
2951
2951
|
draggable: L
|
|
2952
2952
|
},
|
|
2953
|
-
dispatch:
|
|
2953
|
+
dispatch: w,
|
|
2954
2954
|
draggableNodes: N,
|
|
2955
2955
|
over: Ne,
|
|
2956
2956
|
measureDroppableContainers: P
|
|
2957
|
-
}), [j, Yn, se, z,
|
|
2957
|
+
}), [j, Yn, se, z, w, L, N, Ne, P]);
|
|
2958
2958
|
return ne.createElement(Mr.Provider, {
|
|
2959
|
-
value:
|
|
2959
|
+
value: E
|
|
2960
2960
|
}, ne.createElement(qt.Provider, {
|
|
2961
2961
|
value: fo
|
|
2962
2962
|
}, ne.createElement(Wr.Provider, {
|
|
2963
2963
|
value: uo
|
|
2964
2964
|
}, ne.createElement(Br.Provider, {
|
|
2965
2965
|
value: co
|
|
2966
|
-
},
|
|
2966
|
+
}, u)), ne.createElement(qs, {
|
|
2967
2967
|
disabled: c?.restoreFocus === !1
|
|
2968
2968
|
})), ne.createElement(Xo, {
|
|
2969
2969
|
...c,
|
|
2970
2970
|
hiddenTextDescribedById: L
|
|
2971
2971
|
}));
|
|
2972
2972
|
function ho() {
|
|
2973
|
-
const ce = D?.autoScrollEnabled === !1, ge = typeof
|
|
2974
|
-
return typeof
|
|
2975
|
-
...
|
|
2973
|
+
const ce = D?.autoScrollEnabled === !1, ge = typeof l == "object" ? l.enabled === !1 : l === !1, pe = T && !ce && !ge;
|
|
2974
|
+
return typeof l == "object" ? {
|
|
2975
|
+
...l,
|
|
2976
2976
|
enabled: pe
|
|
2977
2977
|
} : {
|
|
2978
2978
|
enabled: pe
|
|
@@ -2989,22 +2989,22 @@ function ti(e) {
|
|
|
2989
2989
|
const s = wt(ei), {
|
|
2990
2990
|
activators: a,
|
|
2991
2991
|
activatorEvent: c,
|
|
2992
|
-
active:
|
|
2993
|
-
activeNodeRect:
|
|
2994
|
-
ariaDescribedById:
|
|
2992
|
+
active: l,
|
|
2993
|
+
activeNodeRect: u,
|
|
2994
|
+
ariaDescribedById: f,
|
|
2995
2995
|
draggableNodes: d,
|
|
2996
2996
|
over: m
|
|
2997
|
-
} =
|
|
2998
|
-
role:
|
|
2997
|
+
} = He(qt), {
|
|
2998
|
+
role: p = dr,
|
|
2999
2999
|
roleDescription: v = "draggable",
|
|
3000
|
-
tabIndex:
|
|
3001
|
-
} = o ?? {}, b =
|
|
3000
|
+
tabIndex: h = 0
|
|
3001
|
+
} = o ?? {}, b = l?.id === t, w = He(b ? Br : Qs), [R, E] = Pt(), [_, O] = Pt(), T = Ps(a, t), $ = gt(n);
|
|
3002
3002
|
Te(
|
|
3003
3003
|
() => (d.set(t, {
|
|
3004
3004
|
id: t,
|
|
3005
3005
|
key: s,
|
|
3006
|
-
node:
|
|
3007
|
-
activatorNode:
|
|
3006
|
+
node: R,
|
|
3007
|
+
activatorNode: _,
|
|
3008
3008
|
data: $
|
|
3009
3009
|
}), () => {
|
|
3010
3010
|
const W = d.get(t);
|
|
@@ -3014,29 +3014,29 @@ function ti(e) {
|
|
|
3014
3014
|
[d, t]
|
|
3015
3015
|
);
|
|
3016
3016
|
const N = B(() => ({
|
|
3017
|
-
role:
|
|
3018
|
-
tabIndex:
|
|
3017
|
+
role: p,
|
|
3018
|
+
tabIndex: h,
|
|
3019
3019
|
"aria-disabled": r,
|
|
3020
|
-
"aria-pressed": b &&
|
|
3020
|
+
"aria-pressed": b && p === dr ? !0 : void 0,
|
|
3021
3021
|
"aria-roledescription": v,
|
|
3022
|
-
"aria-describedby":
|
|
3023
|
-
}), [r,
|
|
3022
|
+
"aria-describedby": f.draggable
|
|
3023
|
+
}), [r, p, h, b, v, f.draggable]);
|
|
3024
3024
|
return {
|
|
3025
|
-
active:
|
|
3025
|
+
active: l,
|
|
3026
3026
|
activatorEvent: c,
|
|
3027
|
-
activeNodeRect:
|
|
3027
|
+
activeNodeRect: u,
|
|
3028
3028
|
attributes: N,
|
|
3029
3029
|
isDragging: b,
|
|
3030
|
-
listeners: r ? void 0 :
|
|
3031
|
-
node:
|
|
3030
|
+
listeners: r ? void 0 : T,
|
|
3031
|
+
node: R,
|
|
3032
3032
|
over: m,
|
|
3033
|
-
setNodeRef:
|
|
3033
|
+
setNodeRef: E,
|
|
3034
3034
|
setActivatorNodeRef: O,
|
|
3035
|
-
transform:
|
|
3035
|
+
transform: w
|
|
3036
3036
|
};
|
|
3037
3037
|
}
|
|
3038
3038
|
function ni() {
|
|
3039
|
-
return
|
|
3039
|
+
return He(Wr);
|
|
3040
3040
|
}
|
|
3041
3041
|
const ri = "Droppable", oi = {
|
|
3042
3042
|
timeout: 25
|
|
@@ -3051,38 +3051,38 @@ function si(e) {
|
|
|
3051
3051
|
const s = wt(ri), {
|
|
3052
3052
|
active: a,
|
|
3053
3053
|
dispatch: c,
|
|
3054
|
-
over:
|
|
3055
|
-
measureDroppableContainers:
|
|
3056
|
-
} =
|
|
3054
|
+
over: l,
|
|
3055
|
+
measureDroppableContainers: u
|
|
3056
|
+
} = He(qt), f = U({
|
|
3057
3057
|
disabled: n
|
|
3058
|
-
}), d = U(!1), m = U(null),
|
|
3058
|
+
}), d = U(!1), m = U(null), p = U(null), {
|
|
3059
3059
|
disabled: v,
|
|
3060
|
-
updateMeasurementsFor:
|
|
3060
|
+
updateMeasurementsFor: h,
|
|
3061
3061
|
timeout: b
|
|
3062
3062
|
} = {
|
|
3063
3063
|
...oi,
|
|
3064
3064
|
...o
|
|
3065
|
-
},
|
|
3065
|
+
}, w = gt(h ?? r), R = le(
|
|
3066
3066
|
() => {
|
|
3067
3067
|
if (!d.current) {
|
|
3068
3068
|
d.current = !0;
|
|
3069
3069
|
return;
|
|
3070
3070
|
}
|
|
3071
|
-
|
|
3072
|
-
|
|
3071
|
+
p.current != null && clearTimeout(p.current), p.current = setTimeout(() => {
|
|
3072
|
+
u(Array.isArray(w.current) ? w.current : [w.current]), p.current = null;
|
|
3073
3073
|
}, b);
|
|
3074
3074
|
},
|
|
3075
3075
|
//eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3076
3076
|
[b]
|
|
3077
|
-
),
|
|
3078
|
-
callback:
|
|
3077
|
+
), E = Xt({
|
|
3078
|
+
callback: R,
|
|
3079
3079
|
disabled: v || !a
|
|
3080
|
-
}),
|
|
3081
|
-
|
|
3082
|
-
}, [
|
|
3083
|
-
return
|
|
3084
|
-
!
|
|
3085
|
-
}, [O,
|
|
3080
|
+
}), _ = le((N, W) => {
|
|
3081
|
+
E && (W && (E.unobserve(W), d.current = !1), N && E.observe(N));
|
|
3082
|
+
}, [E]), [O, T] = Pt(_), $ = gt(t);
|
|
3083
|
+
return H(() => {
|
|
3084
|
+
!E || !O.current || (E.disconnect(), d.current = !1, E.observe(O.current));
|
|
3085
|
+
}, [O, E]), H(
|
|
3086
3086
|
() => (c({
|
|
3087
3087
|
type: te.RegisterDroppable,
|
|
3088
3088
|
element: {
|
|
@@ -3100,20 +3100,20 @@ function si(e) {
|
|
|
3100
3100
|
})),
|
|
3101
3101
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3102
3102
|
[r]
|
|
3103
|
-
),
|
|
3104
|
-
n !==
|
|
3103
|
+
), H(() => {
|
|
3104
|
+
n !== f.current.disabled && (c({
|
|
3105
3105
|
type: te.SetDroppableDisabled,
|
|
3106
3106
|
id: r,
|
|
3107
3107
|
key: s,
|
|
3108
3108
|
disabled: n
|
|
3109
|
-
}),
|
|
3109
|
+
}), f.current.disabled = n);
|
|
3110
3110
|
}, [r, s, n, c]), {
|
|
3111
3111
|
active: a,
|
|
3112
3112
|
rect: m,
|
|
3113
|
-
isOver:
|
|
3113
|
+
isOver: l?.id === r,
|
|
3114
3114
|
node: O,
|
|
3115
|
-
over:
|
|
3116
|
-
setNodeRef:
|
|
3115
|
+
over: l,
|
|
3116
|
+
setNodeRef: T
|
|
3117
3117
|
};
|
|
3118
3118
|
}
|
|
3119
3119
|
function Kt(e, t, n) {
|
|
@@ -3160,21 +3160,21 @@ const Ot = {
|
|
|
3160
3160
|
const c = (t = n[o]) != null ? t : r;
|
|
3161
3161
|
if (!c)
|
|
3162
3162
|
return null;
|
|
3163
|
-
const
|
|
3163
|
+
const l = ui(n, a, o);
|
|
3164
3164
|
if (a === o) {
|
|
3165
|
-
const
|
|
3166
|
-
return
|
|
3167
|
-
x: o < s ?
|
|
3165
|
+
const u = n[s];
|
|
3166
|
+
return u ? {
|
|
3167
|
+
x: o < s ? u.left + u.width - (c.left + c.width) : u.left - c.left,
|
|
3168
3168
|
y: 0,
|
|
3169
3169
|
...Ot
|
|
3170
3170
|
} : null;
|
|
3171
3171
|
}
|
|
3172
3172
|
return a > o && a <= s ? {
|
|
3173
|
-
x: -c.width -
|
|
3173
|
+
x: -c.width - l,
|
|
3174
3174
|
y: 0,
|
|
3175
3175
|
...Ot
|
|
3176
3176
|
} : a < o && a >= s ? {
|
|
3177
|
-
x: c.width +
|
|
3177
|
+
x: c.width + l,
|
|
3178
3178
|
y: 0,
|
|
3179
3179
|
...Ot
|
|
3180
3180
|
} : {
|
|
@@ -3217,21 +3217,21 @@ const Gr = (e) => {
|
|
|
3217
3217
|
if (!c)
|
|
3218
3218
|
return null;
|
|
3219
3219
|
if (o === n) {
|
|
3220
|
-
const
|
|
3221
|
-
return
|
|
3220
|
+
const u = s[a];
|
|
3221
|
+
return u ? {
|
|
3222
3222
|
x: 0,
|
|
3223
|
-
y: n < a ?
|
|
3223
|
+
y: n < a ? u.top + u.height - (c.top + c.height) : u.top - c.top,
|
|
3224
3224
|
...Mt
|
|
3225
3225
|
} : null;
|
|
3226
3226
|
}
|
|
3227
|
-
const
|
|
3227
|
+
const l = fi(s, o, n);
|
|
3228
3228
|
return o > n && o <= a ? {
|
|
3229
3229
|
x: 0,
|
|
3230
|
-
y: -c.height -
|
|
3230
|
+
y: -c.height - l,
|
|
3231
3231
|
...Mt
|
|
3232
3232
|
} : o < n && o >= a ? {
|
|
3233
3233
|
x: 0,
|
|
3234
|
-
y: c.height +
|
|
3234
|
+
y: c.height + l,
|
|
3235
3235
|
...Mt
|
|
3236
3236
|
} : {
|
|
3237
3237
|
x: 0,
|
|
@@ -3268,29 +3268,29 @@ function Kr(e) {
|
|
|
3268
3268
|
const {
|
|
3269
3269
|
active: a,
|
|
3270
3270
|
dragOverlay: c,
|
|
3271
|
-
droppableRects:
|
|
3272
|
-
over:
|
|
3273
|
-
measureDroppableContainers:
|
|
3274
|
-
} = ni(), d = wt(Xr, n), m = c.rect !== null,
|
|
3271
|
+
droppableRects: l,
|
|
3272
|
+
over: u,
|
|
3273
|
+
measureDroppableContainers: f
|
|
3274
|
+
} = ni(), d = wt(Xr, n), m = c.rect !== null, p = B(() => r.map((T) => typeof T == "object" && "id" in T ? T.id : T), [r]), v = a != null, h = a ? p.indexOf(a.id) : -1, b = u ? p.indexOf(u.id) : -1, w = U(p), R = !ai(p, w.current), E = b !== -1 && h === -1 || R, _ = ci(s);
|
|
3275
3275
|
Te(() => {
|
|
3276
|
-
|
|
3277
|
-
}, [
|
|
3278
|
-
|
|
3279
|
-
}, [
|
|
3276
|
+
R && v && f(p);
|
|
3277
|
+
}, [R, p, v, f]), H(() => {
|
|
3278
|
+
w.current = p;
|
|
3279
|
+
}, [p]);
|
|
3280
3280
|
const O = B(
|
|
3281
3281
|
() => ({
|
|
3282
|
-
activeIndex:
|
|
3282
|
+
activeIndex: h,
|
|
3283
3283
|
containerId: d,
|
|
3284
|
-
disabled:
|
|
3285
|
-
disableTransforms:
|
|
3286
|
-
items:
|
|
3284
|
+
disabled: _,
|
|
3285
|
+
disableTransforms: E,
|
|
3286
|
+
items: p,
|
|
3287
3287
|
overIndex: b,
|
|
3288
3288
|
useDragOverlay: m,
|
|
3289
|
-
sortedRects: ii(
|
|
3289
|
+
sortedRects: ii(p, l),
|
|
3290
3290
|
strategy: o
|
|
3291
3291
|
}),
|
|
3292
3292
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3293
|
-
[
|
|
3293
|
+
[h, d, _.draggable, _.droppable, E, p, b, l, m, o]
|
|
3294
3294
|
);
|
|
3295
3295
|
return ne.createElement(qr.Provider, {
|
|
3296
3296
|
value: O
|
|
@@ -3313,10 +3313,10 @@ const hi = (e) => {
|
|
|
3313
3313
|
items: s,
|
|
3314
3314
|
newIndex: a,
|
|
3315
3315
|
previousItems: c,
|
|
3316
|
-
previousContainerId:
|
|
3317
|
-
transition:
|
|
3316
|
+
previousContainerId: l,
|
|
3317
|
+
transition: u
|
|
3318
3318
|
} = e;
|
|
3319
|
-
return !
|
|
3319
|
+
return !u || !r || c !== s && o === a ? !1 : n ? !0 : a !== o && t === l;
|
|
3320
3320
|
}, pi = {
|
|
3321
3321
|
duration: 200,
|
|
3322
3322
|
easing: "ease"
|
|
@@ -3337,21 +3337,21 @@ function bi(e) {
|
|
|
3337
3337
|
const [s, a] = oe(null), c = U(n);
|
|
3338
3338
|
return Te(() => {
|
|
3339
3339
|
if (!t && n !== c.current && r.current) {
|
|
3340
|
-
const
|
|
3341
|
-
if (
|
|
3342
|
-
const
|
|
3340
|
+
const l = o.current;
|
|
3341
|
+
if (l) {
|
|
3342
|
+
const u = nt(r.current, {
|
|
3343
3343
|
ignoreTransform: !0
|
|
3344
|
-
}),
|
|
3345
|
-
x:
|
|
3346
|
-
y:
|
|
3347
|
-
scaleX:
|
|
3348
|
-
scaleY:
|
|
3344
|
+
}), f = {
|
|
3345
|
+
x: l.left - u.left,
|
|
3346
|
+
y: l.top - u.top,
|
|
3347
|
+
scaleX: l.width / u.width,
|
|
3348
|
+
scaleY: l.height / u.height
|
|
3349
3349
|
};
|
|
3350
|
-
(
|
|
3350
|
+
(f.x || f.y) && a(f);
|
|
3351
3351
|
}
|
|
3352
3352
|
}
|
|
3353
3353
|
n !== c.current && (c.current = n);
|
|
3354
|
-
}, [t, n, r, o]),
|
|
3354
|
+
}, [t, n, r, o]), H(() => {
|
|
3355
3355
|
s && a(null);
|
|
3356
3356
|
}, [s]), s;
|
|
3357
3357
|
}
|
|
@@ -3364,27 +3364,27 @@ function Zr(e) {
|
|
|
3364
3364
|
getNewIndex: s = hi,
|
|
3365
3365
|
id: a,
|
|
3366
3366
|
strategy: c,
|
|
3367
|
-
resizeObserverConfig:
|
|
3368
|
-
transition:
|
|
3367
|
+
resizeObserverConfig: l,
|
|
3368
|
+
transition: u = pi
|
|
3369
3369
|
} = e;
|
|
3370
3370
|
const {
|
|
3371
|
-
items:
|
|
3371
|
+
items: f,
|
|
3372
3372
|
containerId: d,
|
|
3373
3373
|
activeIndex: m,
|
|
3374
|
-
disabled:
|
|
3374
|
+
disabled: p,
|
|
3375
3375
|
disableTransforms: v,
|
|
3376
|
-
sortedRects:
|
|
3376
|
+
sortedRects: h,
|
|
3377
3377
|
overIndex: b,
|
|
3378
|
-
useDragOverlay:
|
|
3379
|
-
strategy:
|
|
3380
|
-
} =
|
|
3378
|
+
useDragOverlay: w,
|
|
3379
|
+
strategy: R
|
|
3380
|
+
} = He(qr), E = xi(r, p), _ = f.indexOf(a), O = B(() => ({
|
|
3381
3381
|
sortable: {
|
|
3382
3382
|
containerId: d,
|
|
3383
|
-
index:
|
|
3384
|
-
items:
|
|
3383
|
+
index: _,
|
|
3384
|
+
items: f
|
|
3385
3385
|
},
|
|
3386
3386
|
...o
|
|
3387
|
-
}), [d, o,
|
|
3387
|
+
}), [d, o, _, f]), T = B(() => f.slice(f.indexOf(a)), [f, a]), {
|
|
3388
3388
|
rect: $,
|
|
3389
3389
|
node: N,
|
|
3390
3390
|
isOver: W,
|
|
@@ -3392,21 +3392,21 @@ function Zr(e) {
|
|
|
3392
3392
|
} = si({
|
|
3393
3393
|
id: a,
|
|
3394
3394
|
data: O,
|
|
3395
|
-
disabled:
|
|
3395
|
+
disabled: E.droppable,
|
|
3396
3396
|
resizeObserverConfig: {
|
|
3397
|
-
updateMeasurementsFor:
|
|
3398
|
-
...
|
|
3397
|
+
updateMeasurementsFor: T,
|
|
3398
|
+
...l
|
|
3399
3399
|
}
|
|
3400
3400
|
}), {
|
|
3401
|
-
active:
|
|
3401
|
+
active: k,
|
|
3402
3402
|
activatorEvent: Q,
|
|
3403
3403
|
activeNodeRect: se,
|
|
3404
3404
|
attributes: M,
|
|
3405
3405
|
setNodeRef: D,
|
|
3406
|
-
listeners:
|
|
3406
|
+
listeners: y,
|
|
3407
3407
|
isDragging: j,
|
|
3408
3408
|
over: C,
|
|
3409
|
-
setActivatorNodeRef:
|
|
3409
|
+
setActivatorNodeRef: I,
|
|
3410
3410
|
transform: L
|
|
3411
3411
|
} = ti({
|
|
3412
3412
|
id: a,
|
|
@@ -3415,45 +3415,45 @@ function Zr(e) {
|
|
|
3415
3415
|
...mi,
|
|
3416
3416
|
...n
|
|
3417
3417
|
},
|
|
3418
|
-
disabled:
|
|
3419
|
-
}),
|
|
3420
|
-
rects:
|
|
3418
|
+
disabled: E.draggable
|
|
3419
|
+
}), g = Ao(Y, D), S = !!k, A = S && !v && Tt(m) && Tt(b), P = !w && j, G = P && A ? L : null, F = A ? G ?? (c ?? R)({
|
|
3420
|
+
rects: h,
|
|
3421
3421
|
activeNodeRect: se,
|
|
3422
3422
|
activeIndex: m,
|
|
3423
3423
|
overIndex: b,
|
|
3424
|
-
index:
|
|
3424
|
+
index: _
|
|
3425
3425
|
}) : null, J = Tt(m) && Tt(b) ? s({
|
|
3426
3426
|
id: a,
|
|
3427
|
-
items:
|
|
3427
|
+
items: f,
|
|
3428
3428
|
activeIndex: m,
|
|
3429
3429
|
overIndex: b
|
|
3430
|
-
}) :
|
|
3430
|
+
}) : _, Z = k?.id, z = U({
|
|
3431
3431
|
activeId: Z,
|
|
3432
|
-
items:
|
|
3432
|
+
items: f,
|
|
3433
3433
|
newIndex: J,
|
|
3434
3434
|
containerId: d
|
|
3435
|
-
}), de =
|
|
3436
|
-
active:
|
|
3435
|
+
}), de = f !== z.current.items, ae = t({
|
|
3436
|
+
active: k,
|
|
3437
3437
|
containerId: d,
|
|
3438
3438
|
isDragging: j,
|
|
3439
3439
|
isSorting: S,
|
|
3440
3440
|
id: a,
|
|
3441
|
-
index:
|
|
3442
|
-
items:
|
|
3441
|
+
index: _,
|
|
3442
|
+
items: f,
|
|
3443
3443
|
newIndex: z.current.newIndex,
|
|
3444
3444
|
previousItems: z.current.items,
|
|
3445
3445
|
previousContainerId: z.current.containerId,
|
|
3446
|
-
transition:
|
|
3446
|
+
transition: u,
|
|
3447
3447
|
wasDragging: z.current.activeId != null
|
|
3448
3448
|
}), ye = bi({
|
|
3449
3449
|
disabled: !ae,
|
|
3450
|
-
index:
|
|
3450
|
+
index: _,
|
|
3451
3451
|
node: N,
|
|
3452
3452
|
rect: $
|
|
3453
3453
|
});
|
|
3454
|
-
return
|
|
3455
|
-
S && z.current.newIndex !== J && (z.current.newIndex = J), d !== z.current.containerId && (z.current.containerId = d),
|
|
3456
|
-
}, [S, J, d,
|
|
3454
|
+
return H(() => {
|
|
3455
|
+
S && z.current.newIndex !== J && (z.current.newIndex = J), d !== z.current.containerId && (z.current.containerId = d), f !== z.current.items && (z.current.items = f);
|
|
3456
|
+
}, [S, J, d, f]), H(() => {
|
|
3457
3457
|
if (Z === z.current.activeId)
|
|
3458
3458
|
return;
|
|
3459
3459
|
if (Z != null && z.current.activeId == null) {
|
|
@@ -3465,23 +3465,23 @@ function Zr(e) {
|
|
|
3465
3465
|
}, 50);
|
|
3466
3466
|
return () => clearTimeout(Be);
|
|
3467
3467
|
}, [Z]), {
|
|
3468
|
-
active:
|
|
3468
|
+
active: k,
|
|
3469
3469
|
activeIndex: m,
|
|
3470
3470
|
attributes: M,
|
|
3471
3471
|
data: O,
|
|
3472
3472
|
rect: $,
|
|
3473
|
-
index:
|
|
3473
|
+
index: _,
|
|
3474
3474
|
newIndex: J,
|
|
3475
|
-
items:
|
|
3475
|
+
items: f,
|
|
3476
3476
|
isOver: W,
|
|
3477
3477
|
isSorting: S,
|
|
3478
3478
|
isDragging: j,
|
|
3479
|
-
listeners:
|
|
3479
|
+
listeners: y,
|
|
3480
3480
|
node: N,
|
|
3481
3481
|
overIndex: b,
|
|
3482
3482
|
over: C,
|
|
3483
|
-
setNodeRef:
|
|
3484
|
-
setActivatorNodeRef:
|
|
3483
|
+
setNodeRef: g,
|
|
3484
|
+
setActivatorNodeRef: I,
|
|
3485
3485
|
setDroppableNodeRef: Y,
|
|
3486
3486
|
setDraggableNodeRef: D,
|
|
3487
3487
|
transform: ye ?? F,
|
|
@@ -3491,12 +3491,12 @@ function Zr(e) {
|
|
|
3491
3491
|
if (
|
|
3492
3492
|
// Temporarily disable transitions for a single frame to set up derived transforms
|
|
3493
3493
|
ye || // Or to prevent items jumping to back to their "new" position when items change
|
|
3494
|
-
de && z.current.newIndex ===
|
|
3494
|
+
de && z.current.newIndex === _
|
|
3495
3495
|
)
|
|
3496
3496
|
return vi;
|
|
3497
|
-
if (!(P && !jn(Q) || !
|
|
3497
|
+
if (!(P && !jn(Q) || !u) && (S || ae))
|
|
3498
3498
|
return Ze.Transition.toString({
|
|
3499
|
-
...
|
|
3499
|
+
...u,
|
|
3500
3500
|
property: Jr
|
|
3501
3501
|
});
|
|
3502
3502
|
}
|
|
@@ -3512,7 +3512,7 @@ function xi(e, t) {
|
|
|
3512
3512
|
droppable: (r = e?.droppable) != null ? r : t.droppable
|
|
3513
3513
|
};
|
|
3514
3514
|
}
|
|
3515
|
-
|
|
3515
|
+
V.Down, V.Right, V.Up, V.Left;
|
|
3516
3516
|
const yi = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), wi = (e) => e.replace(
|
|
3517
3517
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
3518
3518
|
(t, n, r) => r ? r.toUpperCase() : n.toLowerCase()
|
|
@@ -3545,10 +3545,10 @@ const Ci = wn(
|
|
|
3545
3545
|
children: s,
|
|
3546
3546
|
iconNode: a,
|
|
3547
3547
|
...c
|
|
3548
|
-
},
|
|
3548
|
+
}, l) => hn(
|
|
3549
3549
|
"svg",
|
|
3550
3550
|
{
|
|
3551
|
-
ref:
|
|
3551
|
+
ref: l,
|
|
3552
3552
|
...Di,
|
|
3553
3553
|
width: t,
|
|
3554
3554
|
height: t,
|
|
@@ -3559,7 +3559,7 @@ const Ci = wn(
|
|
|
3559
3559
|
...c
|
|
3560
3560
|
},
|
|
3561
3561
|
[
|
|
3562
|
-
...a.map(([
|
|
3562
|
+
...a.map(([u, f]) => hn(u, f)),
|
|
3563
3563
|
...Array.isArray(s) ? s : [s]
|
|
3564
3564
|
]
|
|
3565
3565
|
)
|
|
@@ -3596,13 +3596,13 @@ const Ti = [
|
|
|
3596
3596
|
const Mi = [
|
|
3597
3597
|
["path", { d: "m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z", key: "1fy3hk" }]
|
|
3598
3598
|
], $i = ue("bookmark", Mi);
|
|
3599
|
-
const
|
|
3599
|
+
const ki = [
|
|
3600
3600
|
["path", { d: "M8 2v4", key: "1cmpym" }],
|
|
3601
3601
|
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
3602
3602
|
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
|
|
3603
3603
|
["path", { d: "M3 10h18", key: "8toen8" }]
|
|
3604
|
-
], hr = ue("calendar",
|
|
3605
|
-
const
|
|
3604
|
+
], hr = ue("calendar", ki);
|
|
3605
|
+
const Ii = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], Ai = ue("chevron-left", Ii);
|
|
3606
3606
|
const Li = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Ni = ue("chevron-right", Li);
|
|
3607
3607
|
const zi = [
|
|
3608
3608
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
@@ -3619,11 +3619,11 @@ const Yi = [
|
|
|
3619
3619
|
["path", { d: "m12 9 6 6", key: "anjzzh" }],
|
|
3620
3620
|
["path", { d: "m18 9-6 6", key: "1fp51s" }]
|
|
3621
3621
|
], Fi = ue("delete", Yi);
|
|
3622
|
-
const
|
|
3622
|
+
const Vi = [
|
|
3623
3623
|
["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
|
|
3624
3624
|
["circle", { cx: "19", cy: "12", r: "1", key: "1wjl8i" }],
|
|
3625
3625
|
["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }]
|
|
3626
|
-
],
|
|
3626
|
+
], Hi = ue("ellipsis", Vi);
|
|
3627
3627
|
const Wi = [
|
|
3628
3628
|
[
|
|
3629
3629
|
"path",
|
|
@@ -3677,7 +3677,7 @@ const Qi = [
|
|
|
3677
3677
|
["path", { d: "M12 9v4", key: "juzpu7" }],
|
|
3678
3678
|
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
3679
3679
|
], ea = ue("triangle-alert", Qi);
|
|
3680
|
-
function
|
|
3680
|
+
function x(e) {
|
|
3681
3681
|
return wn((t, n) => {
|
|
3682
3682
|
const { children: r, ...o } = t;
|
|
3683
3683
|
return (
|
|
@@ -3687,19 +3687,19 @@ function y(e) {
|
|
|
3687
3687
|
});
|
|
3688
3688
|
}
|
|
3689
3689
|
const to = (e) => `table_column_order_v1:${e}`, ta = (e) => {
|
|
3690
|
-
const { tableId: t } =
|
|
3691
|
-
localStorage.setItem(to(t), JSON.stringify(e.map((n) => n.id))),
|
|
3690
|
+
const { tableId: t } = me.state;
|
|
3691
|
+
localStorage.setItem(to(t), JSON.stringify(e.map((n) => n.id))), me.setState((n) => ({
|
|
3692
3692
|
...n,
|
|
3693
3693
|
columnOrder: e
|
|
3694
|
-
})),
|
|
3694
|
+
})), me.setState((n) => ({ ...n, columnOrder: e }));
|
|
3695
3695
|
}, na = (e) => {
|
|
3696
|
-
|
|
3696
|
+
me.setState((t) => ({
|
|
3697
3697
|
...t,
|
|
3698
3698
|
visibility: { ...t.visibility, [e]: !t.visibility[e] }
|
|
3699
3699
|
}));
|
|
3700
3700
|
};
|
|
3701
3701
|
function ra(e) {
|
|
3702
|
-
|
|
3702
|
+
me.setState((t) => t.sortColumn === e ? {
|
|
3703
3703
|
...t,
|
|
3704
3704
|
sortDirection: t.sortDirection === "asc" ? "desc" : "asc"
|
|
3705
3705
|
} : {
|
|
@@ -3708,60 +3708,71 @@ function ra(e) {
|
|
|
3708
3708
|
sortDirection: "asc"
|
|
3709
3709
|
});
|
|
3710
3710
|
}
|
|
3711
|
-
const
|
|
3711
|
+
const me = new _r({
|
|
3712
3712
|
tableId: "",
|
|
3713
3713
|
sortColumn: null,
|
|
3714
3714
|
sortDirection: "asc",
|
|
3715
3715
|
visibility: {},
|
|
3716
3716
|
columnOrder: [],
|
|
3717
3717
|
data: [],
|
|
3718
|
-
sortableColumns: []
|
|
3718
|
+
sortableColumns: [],
|
|
3719
3719
|
// ← FIXED
|
|
3720
|
+
actionsConfig: {
|
|
3721
|
+
showActionColumn: !0,
|
|
3722
|
+
showColumnVisibilityMenu: !0,
|
|
3723
|
+
children: "Actions",
|
|
3724
|
+
width: "100px"
|
|
3725
|
+
}
|
|
3720
3726
|
});
|
|
3721
3727
|
function oa(e, t) {
|
|
3722
|
-
const n = e[0] ?? {}, o = (t && t.length ? t : Object.keys(n).map((
|
|
3723
|
-
(
|
|
3724
|
-
), { tableId: s } =
|
|
3728
|
+
const n = e[0] ?? {}, o = (t && t.length ? t : Object.keys(n).map((l) => ({ id: l, label: l }))).filter(
|
|
3729
|
+
(l) => Object.prototype.hasOwnProperty.call(n, l.id)
|
|
3730
|
+
), { tableId: s } = me.state, a = JSON.parse(
|
|
3725
3731
|
localStorage.getItem(to(s)) || "[]"
|
|
3726
3732
|
), c = [
|
|
3727
|
-
...a.map((
|
|
3728
|
-
...o.filter((
|
|
3733
|
+
...a.map((l) => o.find((u) => u.id === l)).filter(Boolean),
|
|
3734
|
+
...o.filter((l) => !a.includes(l.id))
|
|
3729
3735
|
];
|
|
3730
|
-
|
|
3731
|
-
...
|
|
3736
|
+
me.setState((l) => ({
|
|
3737
|
+
...l,
|
|
3732
3738
|
data: e,
|
|
3733
3739
|
columnOrder: c,
|
|
3734
|
-
visibility: c.reduce((
|
|
3735
|
-
sortableColumns: c.map((
|
|
3736
|
-
id:
|
|
3737
|
-
label:
|
|
3740
|
+
visibility: c.reduce((u, f) => (u[f.id] = !0, u), {}),
|
|
3741
|
+
sortableColumns: c.map((u) => ({
|
|
3742
|
+
id: u.id,
|
|
3743
|
+
label: u.label,
|
|
3738
3744
|
sortable: !0,
|
|
3739
|
-
backgroundColor:
|
|
3745
|
+
backgroundColor: u.backgroundColor
|
|
3740
3746
|
}))
|
|
3741
3747
|
}));
|
|
3742
3748
|
}
|
|
3743
3749
|
function sa(e) {
|
|
3744
|
-
|
|
3750
|
+
me.setState((t) => ({
|
|
3745
3751
|
...t,
|
|
3746
3752
|
tableId: e
|
|
3747
3753
|
}));
|
|
3748
3754
|
}
|
|
3749
|
-
const ia =
|
|
3750
|
-
|
|
3751
|
-
|
|
3755
|
+
const ia = (e) => {
|
|
3756
|
+
me.setState((t) => ({
|
|
3757
|
+
...t,
|
|
3758
|
+
actionsConfig: e
|
|
3759
|
+
}));
|
|
3760
|
+
}, aa = x(Oe.Trigger), ca = x(Oe.Positioner), la = x(Oe.Content), ua = x(Oe.Item), da = x(De.Label), fa = x(De.HiddenInput), ha = x(De.Control);
|
|
3761
|
+
function ga({ visibility: e, onToggle: t }) {
|
|
3762
|
+
const { sortableColumns: n } = bt(me);
|
|
3752
3763
|
return /* @__PURE__ */ i.jsxs(Oe.Root, { closeOnSelect: !1, children: [
|
|
3753
|
-
/* @__PURE__ */ i.jsx(
|
|
3754
|
-
/* @__PURE__ */ i.jsx(Qe, { children: /* @__PURE__ */ i.jsx(
|
|
3764
|
+
/* @__PURE__ */ i.jsx(aa, { asChild: !0, children: /* @__PURE__ */ i.jsx(_e, { "aria-label": "Toggle columns", variant: "outline", size: "sm", ml: "1", children: /* @__PURE__ */ i.jsx(Pi, { size: 18 }) }) }),
|
|
3765
|
+
/* @__PURE__ */ i.jsx(Qe, { children: /* @__PURE__ */ i.jsx(ca, { children: /* @__PURE__ */ i.jsx(la, { minW: "220px", children: n.map((r) => {
|
|
3755
3766
|
const o = !!e[r.id];
|
|
3756
|
-
return /* @__PURE__ */ i.jsx(
|
|
3757
|
-
/* @__PURE__ */ i.jsx(da, {}),
|
|
3767
|
+
return /* @__PURE__ */ i.jsx(ua, { value: r.id, closeOnSelect: !1, children: /* @__PURE__ */ i.jsxs(De.Root, { checked: o, onCheckedChange: () => t(r.id), children: [
|
|
3758
3768
|
/* @__PURE__ */ i.jsx(fa, {}),
|
|
3759
|
-
/* @__PURE__ */ i.jsx(
|
|
3769
|
+
/* @__PURE__ */ i.jsx(ha, {}),
|
|
3770
|
+
/* @__PURE__ */ i.jsx(da, { children: r.label })
|
|
3760
3771
|
] }) }, r.id);
|
|
3761
3772
|
}) }) }) })
|
|
3762
3773
|
] });
|
|
3763
3774
|
}
|
|
3764
|
-
function
|
|
3775
|
+
function pa({
|
|
3765
3776
|
id: e,
|
|
3766
3777
|
children: t,
|
|
3767
3778
|
onClick: n,
|
|
@@ -3770,7 +3781,7 @@ function ga({
|
|
|
3770
3781
|
borderRightColor: s,
|
|
3771
3782
|
backgroundColor: a
|
|
3772
3783
|
}) {
|
|
3773
|
-
const { setNodeRef: c, attributes:
|
|
3784
|
+
const { setNodeRef: c, attributes: l, listeners: u, transform: f, transition: d } = Zr({ id: e });
|
|
3774
3785
|
return /* @__PURE__ */ i.jsx(
|
|
3775
3786
|
Ee.ColumnHeader,
|
|
3776
3787
|
{
|
|
@@ -3779,43 +3790,43 @@ function ga({
|
|
|
3779
3790
|
backgroundColor: a,
|
|
3780
3791
|
w: e === "id" ? "80px" : void 0,
|
|
3781
3792
|
style: {
|
|
3782
|
-
transform: Ze.Transform.toString(
|
|
3793
|
+
transform: Ze.Transform.toString(f),
|
|
3783
3794
|
transition: d,
|
|
3784
3795
|
cursor: r,
|
|
3785
3796
|
borderRight: o,
|
|
3786
3797
|
borderRightColor: s
|
|
3787
3798
|
},
|
|
3788
|
-
...
|
|
3799
|
+
...l,
|
|
3789
3800
|
children: /* @__PURE__ */ i.jsxs(fe, { justify: "space-between", children: [
|
|
3790
3801
|
t,
|
|
3791
|
-
/* @__PURE__ */ i.jsx("span", { ...
|
|
3802
|
+
/* @__PURE__ */ i.jsx("span", { ...u, children: /* @__PURE__ */ i.jsx(eo, { size: 12 }) })
|
|
3792
3803
|
] })
|
|
3793
3804
|
}
|
|
3794
3805
|
);
|
|
3795
3806
|
}
|
|
3796
|
-
function
|
|
3797
|
-
const { columnOrder: e, visibility: t, sortColumn: n, sortDirection: r, sortableColumns: o } = bt(
|
|
3798
|
-
const { active: u, over:
|
|
3799
|
-
if (!
|
|
3800
|
-
const
|
|
3801
|
-
ta(
|
|
3807
|
+
function va() {
|
|
3808
|
+
const { columnOrder: e, visibility: t, sortColumn: n, sortDirection: r, sortableColumns: o, actionsConfig: s } = bt(me), a = e.map((l) => o.find((u) => u.id === l.id)).filter((l) => l !== void 0).filter((l) => t[l.id]), c = (l) => {
|
|
3809
|
+
const { active: u, over: f } = l;
|
|
3810
|
+
if (!f || u.id === f.id) return;
|
|
3811
|
+
const d = e.findIndex((v) => v.id === u.id), m = e.findIndex((v) => v.id === f.id), p = Kt(e, d, m);
|
|
3812
|
+
ta(p);
|
|
3802
3813
|
};
|
|
3803
|
-
return /* @__PURE__ */ i.jsx(Ee.Header, { background: "blue.200", position: "sticky", top: 0, p: "0", children: /* @__PURE__ */ i.jsx(Ur, { collisionDetection: $r, onDragEnd:
|
|
3814
|
+
return /* @__PURE__ */ i.jsx(Ee.Header, { background: "blue.200", position: "sticky", top: 0, p: "0", children: /* @__PURE__ */ i.jsx(Ur, { collisionDetection: $r, onDragEnd: c, children: /* @__PURE__ */ i.jsx(
|
|
3804
3815
|
Kr,
|
|
3805
3816
|
{
|
|
3806
|
-
items: e.map((
|
|
3817
|
+
items: e.map((l) => l.id),
|
|
3807
3818
|
strategy: li,
|
|
3808
3819
|
children: /* @__PURE__ */ i.jsxs(Ee.Row, { height: "28px", children: [
|
|
3809
|
-
|
|
3810
|
-
const u = n ===
|
|
3820
|
+
a.map((l) => {
|
|
3821
|
+
const u = n === l?.id;
|
|
3811
3822
|
return /* @__PURE__ */ i.jsx(
|
|
3812
|
-
|
|
3823
|
+
pa,
|
|
3813
3824
|
{
|
|
3814
|
-
id:
|
|
3815
|
-
onClick: () =>
|
|
3816
|
-
cursor:
|
|
3825
|
+
id: l?.id,
|
|
3826
|
+
onClick: () => l?.sortable && ra(l?.id),
|
|
3827
|
+
cursor: l?.sortable ? "pointer" : "default",
|
|
3817
3828
|
borderRight: "2px solid #dcdcdc",
|
|
3818
|
-
backgroundColor:
|
|
3829
|
+
backgroundColor: l?.backgroundColor,
|
|
3819
3830
|
children: /* @__PURE__ */ i.jsxs(
|
|
3820
3831
|
"span",
|
|
3821
3832
|
{
|
|
@@ -3826,17 +3837,32 @@ function pa() {
|
|
|
3826
3837
|
userSelect: "none"
|
|
3827
3838
|
},
|
|
3828
3839
|
children: [
|
|
3829
|
-
|
|
3830
|
-
|
|
3840
|
+
l?.label,
|
|
3841
|
+
l?.sortable && (u ? r === "asc" ? /* @__PURE__ */ i.jsx(Oi, { size: 14 }) : /* @__PURE__ */ i.jsx(ji, { size: 14 }) : /* @__PURE__ */ i.jsx(_i, { size: 14, opacity: 0.4 }))
|
|
3831
3842
|
]
|
|
3832
3843
|
}
|
|
3833
3844
|
)
|
|
3834
3845
|
},
|
|
3835
|
-
|
|
3846
|
+
l?.id
|
|
3836
3847
|
);
|
|
3837
3848
|
}),
|
|
3838
|
-
/* @__PURE__ */ i.jsx(
|
|
3839
|
-
|
|
3849
|
+
s?.showActionColumn && /* @__PURE__ */ i.jsx(
|
|
3850
|
+
Ee.ColumnHeader,
|
|
3851
|
+
{
|
|
3852
|
+
width: s.width,
|
|
3853
|
+
backgroundColor: s.backgroundColor,
|
|
3854
|
+
borderRight: "2px solid #dcdcdc",
|
|
3855
|
+
children: s.children
|
|
3856
|
+
}
|
|
3857
|
+
),
|
|
3858
|
+
s?.showColumnVisibilityMenu && /* @__PURE__ */ i.jsx(
|
|
3859
|
+
Ee.ColumnHeader,
|
|
3860
|
+
{
|
|
3861
|
+
boxSize: "0.5",
|
|
3862
|
+
backgroundColor: s.backgroundColorColumnVisibilityMenu,
|
|
3863
|
+
children: /* @__PURE__ */ i.jsx(ga, { visibility: t, onToggle: na })
|
|
3864
|
+
}
|
|
3865
|
+
)
|
|
3840
3866
|
] })
|
|
3841
3867
|
}
|
|
3842
3868
|
) }) });
|
|
@@ -3848,8 +3874,8 @@ const gr = Dr({
|
|
|
3848
3874
|
{ label: "50", value: "50" },
|
|
3849
3875
|
{ label: "100", value: "100" }
|
|
3850
3876
|
]
|
|
3851
|
-
}),
|
|
3852
|
-
function
|
|
3877
|
+
}), ma = x(K.Positioner), ba = x(K.Content), xa = x(K.Item), ya = x(Nt.PrevTrigger), wa = x(Nt.NextTrigger), Sa = x(K.HiddenSelect), Da = x(K.Control), Ca = x(K.Trigger), Ra = x(K.ValueText), ja = x(K.IndicatorGroup), Ea = x(K.Indicator);
|
|
3878
|
+
function _a({
|
|
3853
3879
|
totalCount: e,
|
|
3854
3880
|
pageSize: t,
|
|
3855
3881
|
currentPage: n,
|
|
@@ -3869,12 +3895,12 @@ function Ea({
|
|
|
3869
3895
|
onValueChange: (a) => o && o(Number(a.items[0].value)),
|
|
3870
3896
|
value: [String(t)],
|
|
3871
3897
|
children: [
|
|
3872
|
-
/* @__PURE__ */ i.jsx(
|
|
3873
|
-
/* @__PURE__ */ i.jsxs(
|
|
3874
|
-
/* @__PURE__ */ i.jsx(
|
|
3875
|
-
/* @__PURE__ */ i.jsx(
|
|
3898
|
+
/* @__PURE__ */ i.jsx(Sa, {}),
|
|
3899
|
+
/* @__PURE__ */ i.jsxs(Da, { children: [
|
|
3900
|
+
/* @__PURE__ */ i.jsx(Ca, { children: /* @__PURE__ */ i.jsx(Ra, { placeholder: "" }) }),
|
|
3901
|
+
/* @__PURE__ */ i.jsx(ja, { children: /* @__PURE__ */ i.jsx(Ea, {}) })
|
|
3876
3902
|
] }),
|
|
3877
|
-
/* @__PURE__ */ i.jsx(Qe, { children: /* @__PURE__ */ i.jsx(
|
|
3903
|
+
/* @__PURE__ */ i.jsx(Qe, { children: /* @__PURE__ */ i.jsx(ma, { children: /* @__PURE__ */ i.jsx(ba, { children: gr.items.map((a) => /* @__PURE__ */ i.jsxs(xa, { item: a.value, children: [
|
|
3878
3904
|
a.label,
|
|
3879
3905
|
/* @__PURE__ */ i.jsx(K.ItemIndicator, {})
|
|
3880
3906
|
] }, a.value)) }) }) })
|
|
@@ -3891,7 +3917,7 @@ function Ea({
|
|
|
3891
3917
|
siblingCount: s,
|
|
3892
3918
|
onPageChange: (a) => r && r(a.page),
|
|
3893
3919
|
children: /* @__PURE__ */ i.jsxs(mo, { size: "sm", variant: "ghost", children: [
|
|
3894
|
-
/* @__PURE__ */ i.jsx(
|
|
3920
|
+
/* @__PURE__ */ i.jsx(ya, { asChild: !0, children: /* @__PURE__ */ i.jsx(_e, { "aria-label": "Previous page", children: /* @__PURE__ */ i.jsx(Ai, { size: 18 }) }) }),
|
|
3895
3921
|
/* @__PURE__ */ i.jsx(
|
|
3896
3922
|
Nt.Items,
|
|
3897
3923
|
{
|
|
@@ -3906,24 +3932,24 @@ function Ea({
|
|
|
3906
3932
|
)
|
|
3907
3933
|
}
|
|
3908
3934
|
),
|
|
3909
|
-
/* @__PURE__ */ i.jsx(
|
|
3935
|
+
/* @__PURE__ */ i.jsx(wa, { asChild: !0, children: /* @__PURE__ */ i.jsx(_e, { "aria-label": "Next page", children: /* @__PURE__ */ i.jsx(Ni, { size: 18 }) }) })
|
|
3910
3936
|
] })
|
|
3911
3937
|
}
|
|
3912
3938
|
)
|
|
3913
3939
|
] }) });
|
|
3914
3940
|
}
|
|
3915
|
-
const
|
|
3916
|
-
function
|
|
3941
|
+
const Ta = x(Oe.Item), Oa = x(Oe.Content), Ma = x(Oe.Positioner), $a = x(Oe.Trigger);
|
|
3942
|
+
function ka({
|
|
3917
3943
|
data: e = [],
|
|
3918
3944
|
actions: t = []
|
|
3919
3945
|
}) {
|
|
3920
|
-
const { columnOrder: n, visibility: r } = bt(
|
|
3946
|
+
const { columnOrder: n, visibility: r } = bt(me);
|
|
3921
3947
|
return /* @__PURE__ */ i.jsx(Ee.Body, { children: e.map((o) => /* @__PURE__ */ i.jsxs(Ee.Row, { children: [
|
|
3922
3948
|
n.filter((s) => r[s.id]).map((s) => /* @__PURE__ */ i.jsx(Ee.Cell, { children: o[s.id] }, s.id)),
|
|
3923
3949
|
/* @__PURE__ */ i.jsx(Ee.Cell, { textAlign: "center", display: "flex", gap: 2, children: /* @__PURE__ */ i.jsxs(Oe.Root, { children: [
|
|
3924
|
-
/* @__PURE__ */ i.jsx(
|
|
3925
|
-
/* @__PURE__ */ i.jsx(Qe, { children: /* @__PURE__ */ i.jsx(
|
|
3926
|
-
|
|
3950
|
+
/* @__PURE__ */ i.jsx($a, { asChild: !0, children: /* @__PURE__ */ i.jsx(_e, { "aria-label": "Open", variant: "ghost", size: "sm", children: /* @__PURE__ */ i.jsx(Hi, { size: 16 }) }) }),
|
|
3951
|
+
/* @__PURE__ */ i.jsx(Qe, { children: /* @__PURE__ */ i.jsx(Ma, { children: /* @__PURE__ */ i.jsx(Oa, { children: t.map((s) => /* @__PURE__ */ i.jsxs(
|
|
3952
|
+
Ta,
|
|
3927
3953
|
{
|
|
3928
3954
|
onClick: () => s.onClick(o),
|
|
3929
3955
|
colorScheme: s.colorScheme,
|
|
@@ -3938,7 +3964,7 @@ function $a({
|
|
|
3938
3964
|
] }) })
|
|
3939
3965
|
] }, o.id)) });
|
|
3940
3966
|
}
|
|
3941
|
-
function
|
|
3967
|
+
function fl({
|
|
3942
3968
|
tableId: e,
|
|
3943
3969
|
data: t = [],
|
|
3944
3970
|
headers: n = [],
|
|
@@ -3947,49 +3973,52 @@ function dl({
|
|
|
3947
3973
|
actions: s,
|
|
3948
3974
|
page: a = 1,
|
|
3949
3975
|
pageSize: c = 10,
|
|
3950
|
-
onPageChange:
|
|
3951
|
-
onPageSizeChange:
|
|
3952
|
-
density:
|
|
3976
|
+
onPageChange: l,
|
|
3977
|
+
onPageSizeChange: u,
|
|
3978
|
+
density: f = "sm",
|
|
3953
3979
|
totalCount: d = 0,
|
|
3954
|
-
paginationMode: m = "client"
|
|
3980
|
+
paginationMode: m = "client",
|
|
3981
|
+
actionConfig: p
|
|
3955
3982
|
}) {
|
|
3956
|
-
|
|
3983
|
+
H(() => {
|
|
3957
3984
|
sa(e);
|
|
3958
|
-
}, [e]),
|
|
3985
|
+
}, [e]), H(() => {
|
|
3959
3986
|
oa(t, n);
|
|
3960
|
-
}, [t, n])
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3987
|
+
}, [t, n]), H(() => {
|
|
3988
|
+
p && ia(p);
|
|
3989
|
+
}, [p]);
|
|
3990
|
+
const { sortColumn: v, sortDirection: h, data: b } = bt(me), w = B(() => {
|
|
3991
|
+
const R = [...b], E = Math.max(1, a || 1);
|
|
3992
|
+
if (v && R.sort(
|
|
3993
|
+
(_, O) => h === "asc" ? String(_[v]).localeCompare(String(O[v])) : String(O[v]).localeCompare(String(_[v]))
|
|
3965
3994
|
), m === "client") {
|
|
3966
|
-
const
|
|
3967
|
-
return
|
|
3995
|
+
const _ = (E - 1) * c;
|
|
3996
|
+
return R.slice(_, _ + c);
|
|
3968
3997
|
}
|
|
3969
|
-
return
|
|
3970
|
-
}, [
|
|
3971
|
-
return
|
|
3972
|
-
a < 1 &&
|
|
3973
|
-
}, [a,
|
|
3974
|
-
/* @__PURE__ */ i.jsx(je, { flex: "1", minHeight: 0, overflow: "auto", children: r ? /* @__PURE__ */ i.jsx(je, { display: "flex", alignItems: "center", justifyContent: "center", h: "100%", color: "gray.500", children: "Loading..." }) :
|
|
3975
|
-
/* @__PURE__ */ i.jsx(
|
|
3976
|
-
/* @__PURE__ */ i.jsx(
|
|
3998
|
+
return R;
|
|
3999
|
+
}, [b, v, h, a, c, m]);
|
|
4000
|
+
return H(() => {
|
|
4001
|
+
a < 1 && l && l(1);
|
|
4002
|
+
}, [a, l]), /* @__PURE__ */ i.jsxs(je, { h: "100%", display: "flex", flexDirection: "column", p: 2, pt: 2, minHeight: 0, children: [
|
|
4003
|
+
/* @__PURE__ */ i.jsx(je, { flex: "1", minHeight: 0, overflow: "auto", children: r ? /* @__PURE__ */ i.jsx(je, { display: "flex", alignItems: "center", justifyContent: "center", h: "100%", color: "gray.500", children: "Loading..." }) : w.length === 0 ? /* @__PURE__ */ i.jsx(je, { display: "flex", alignItems: "center", justifyContent: "center", h: "100%", color: "gray.500", children: o }) : /* @__PURE__ */ i.jsxs(Ee.Root, { variant: "outline", w: "100%", size: f, children: [
|
|
4004
|
+
/* @__PURE__ */ i.jsx(va, {}),
|
|
4005
|
+
/* @__PURE__ */ i.jsx(ka, { data: w, actions: s })
|
|
3977
4006
|
] }) }),
|
|
3978
4007
|
/* @__PURE__ */ i.jsx(je, { mt: 0.5, children: /* @__PURE__ */ i.jsx(
|
|
3979
|
-
|
|
4008
|
+
_a,
|
|
3980
4009
|
{
|
|
3981
4010
|
totalCount: d,
|
|
3982
4011
|
pageSize: c,
|
|
3983
4012
|
currentPage: a,
|
|
3984
|
-
onPageChange:
|
|
3985
|
-
onPageSizeChange: (
|
|
3986
|
-
|
|
4013
|
+
onPageChange: l,
|
|
4014
|
+
onPageSizeChange: (R) => {
|
|
4015
|
+
u && u(R), a > 1 && l && l(1);
|
|
3987
4016
|
}
|
|
3988
4017
|
}
|
|
3989
4018
|
) })
|
|
3990
4019
|
] });
|
|
3991
4020
|
}
|
|
3992
|
-
const Ia =
|
|
4021
|
+
const Ia = x(De.Root), Aa = x(De.HiddenInput), La = x(De.Control), Na = x(De.Label), za = ({
|
|
3993
4022
|
value: e,
|
|
3994
4023
|
onChange: t,
|
|
3995
4024
|
size: n = "sm",
|
|
@@ -3999,9 +4028,9 @@ const Ia = y(De.Root), ka = y(De.HiddenInput), Aa = y(De.Control), La = y(De.Lab
|
|
|
3999
4028
|
required: a,
|
|
4000
4029
|
errorText: c
|
|
4001
4030
|
}) => /* @__PURE__ */ i.jsxs(Ia, { value: e, onChange: t, size: n, children: [
|
|
4002
|
-
/* @__PURE__ */ i.jsx(
|
|
4031
|
+
/* @__PURE__ */ i.jsx(Aa, {}),
|
|
4003
4032
|
/* @__PURE__ */ i.jsx(
|
|
4004
|
-
|
|
4033
|
+
La,
|
|
4005
4034
|
{
|
|
4006
4035
|
disabled: s,
|
|
4007
4036
|
required: a,
|
|
@@ -4009,8 +4038,8 @@ const Ia = y(De.Root), ka = y(De.HiddenInput), Aa = y(De.Control), La = y(De.Lab
|
|
|
4009
4038
|
helperText: o
|
|
4010
4039
|
}
|
|
4011
4040
|
),
|
|
4012
|
-
r && /* @__PURE__ */ i.jsx(
|
|
4013
|
-
] }), ee = " to ", pr = 10,
|
|
4041
|
+
r && /* @__PURE__ */ i.jsx(Na, { children: r })
|
|
4042
|
+
] }), ee = " to ", pr = 10, Ve = {
|
|
4014
4043
|
DAY_MAX: 31,
|
|
4015
4044
|
MONTH_MAX: 12,
|
|
4016
4045
|
YEAR_MIN: 1900,
|
|
@@ -4025,14 +4054,14 @@ const Ia = y(De.Root), ka = y(De.HiddenInput), Aa = y(De.Control), La = y(De.Lab
|
|
|
4025
4054
|
}, vr = () => {
|
|
4026
4055
|
const { year: e, month: t, day: n } = Mn();
|
|
4027
4056
|
return `${String(n).padStart(2, "0")}-${String(t).padStart(2, "0")}-${e}`;
|
|
4028
|
-
},
|
|
4057
|
+
}, Pa = () => {
|
|
4029
4058
|
const { year: e, month: t, day: n } = Mn();
|
|
4030
4059
|
return `${e}-${String(t).padStart(2, "0")}-${String(n).padStart(2, "0")}`;
|
|
4031
|
-
},
|
|
4060
|
+
}, Ya = (e, t) => {
|
|
4032
4061
|
const n = e.length, r = parseInt(e);
|
|
4033
4062
|
if (!e || isNaN(r)) return t;
|
|
4034
4063
|
if (n === 4)
|
|
4035
|
-
return r >=
|
|
4064
|
+
return r >= Ve.YEAR_MIN && r <= Ve.YEAR_MAX ? r : t;
|
|
4036
4065
|
if (n > 0 && n < 4) {
|
|
4037
4066
|
const o = t.toString(), s = 4 - n, a = o.substring(0, s);
|
|
4038
4067
|
return parseInt(a + e);
|
|
@@ -4040,29 +4069,29 @@ const Ia = y(De.Root), ka = y(De.HiddenInput), Aa = y(De.Control), La = y(De.Lab
|
|
|
4040
4069
|
return t;
|
|
4041
4070
|
}, lt = (e) => {
|
|
4042
4071
|
if (!e?.trim()) return null;
|
|
4043
|
-
const n = e.replace(/[^\d-]/g, "").split("-").filter((
|
|
4072
|
+
const n = e.replace(/[^\d-]/g, "").split("-").filter((u) => u !== "");
|
|
4044
4073
|
if (n.length === 0) return null;
|
|
4045
4074
|
const { year: r, month: o, day: s } = Mn();
|
|
4046
|
-
let a, c,
|
|
4047
|
-
return n.length === 1 ? (a = parseInt(n[0]) || s, c = o,
|
|
4075
|
+
let a, c, l;
|
|
4076
|
+
return n.length === 1 ? (a = parseInt(n[0]) || s, c = o, l = r) : n.length === 2 ? (a = parseInt(n[0]) || s, c = parseInt(n[1]) || o, l = r) : (a = parseInt(n[0]) || s, c = parseInt(n[1]) || o, l = Ya(n[2], r)), c = Math.max(1, Math.min(Ve.MONTH_MAX, c)), a = Math.max(1, Math.min(Ve.DAY_MAX, a)), `${l}-${String(c).padStart(2, "0")}-${String(a).padStart(2, "0")}`;
|
|
4048
4077
|
}, we = (e) => {
|
|
4049
4078
|
if (!e) return "";
|
|
4050
4079
|
const [t, n, r] = e.split("-");
|
|
4051
4080
|
return `${r}-${n}-${t}`;
|
|
4052
|
-
},
|
|
4081
|
+
}, Fa = (e, t) => {
|
|
4053
4082
|
if (e[0]?.length > 0) {
|
|
4054
4083
|
const n = parseInt(e[0]);
|
|
4055
|
-
if (isNaN(n) || n === 0 || e[0].length === 2 && n >
|
|
4084
|
+
if (isNaN(n) || n === 0 || e[0].length === 2 && n > Ve.DAY_MAX)
|
|
4056
4085
|
return t;
|
|
4057
4086
|
}
|
|
4058
4087
|
if (e[1]?.length > 0) {
|
|
4059
4088
|
const n = parseInt(e[1]);
|
|
4060
|
-
if (isNaN(n) || n === 0 || e[1].length === 2 && n >
|
|
4089
|
+
if (isNaN(n) || n === 0 || e[1].length === 2 && n > Ve.MONTH_MAX)
|
|
4061
4090
|
return t;
|
|
4062
4091
|
}
|
|
4063
4092
|
if (e[2]?.length > 0) {
|
|
4064
4093
|
const n = parseInt(e[2]), r = e[2].length === 4;
|
|
4065
|
-
if (isNaN(n) || n === 0 || r && (n <
|
|
4094
|
+
if (isNaN(n) || n === 0 || r && (n < Ve.YEAR_MIN || n > Ve.YEAR_MAX))
|
|
4066
4095
|
return t;
|
|
4067
4096
|
}
|
|
4068
4097
|
return null;
|
|
@@ -4073,33 +4102,33 @@ const Ia = y(De.Root), ka = y(De.HiddenInput), Aa = y(De.Control), La = y(De.Lab
|
|
|
4073
4102
|
o.length >= 2 && (t = `${o[0]}-${o[1].substring(0, 2)}-${o[1].substring(2)}${o[2] || ""}`);
|
|
4074
4103
|
}
|
|
4075
4104
|
const n = t.split("-");
|
|
4076
|
-
return n[0] = n[0]?.substring(0, 2) || "", n[1] = n[1]?.substring(0, 2) || "", n[2] = n[2]?.substring(0, 4) || "", t = n.filter((o) => o !== "").join("-"), t = t.substring(0, pr),
|
|
4077
|
-
},
|
|
4078
|
-
function
|
|
4105
|
+
return n[0] = n[0]?.substring(0, 2) || "", n[1] = n[1]?.substring(0, 2) || "", n[2] = n[2]?.substring(0, 4) || "", t = n.filter((o) => o !== "").join("-"), t = t.substring(0, pr), Fa(n, e) || t;
|
|
4106
|
+
}, Va = x(Wt.Root), Ha = x(Wt.Trigger), Wa = x(Wt.Content), Ba = x(Wt.Positioner);
|
|
4107
|
+
function Ua({
|
|
4079
4108
|
value: e,
|
|
4080
4109
|
onChange: t,
|
|
4081
4110
|
disabled: n = !1
|
|
4082
4111
|
}) {
|
|
4083
|
-
const [r = "", o = ""] = e ? e.split("|") : [], [s, a] = oe(() => r && o ? `${we(r)}${ee}${we(o)}` : r ? we(r) : ""), [c,
|
|
4084
|
-
|
|
4085
|
-
const v = (
|
|
4086
|
-
|
|
4112
|
+
const [r = "", o = ""] = e ? e.split("|") : [], [s, a] = oe(() => r && o ? `${we(r)}${ee}${we(o)}` : r ? we(r) : ""), [c, l] = oe(!1), u = U(null);
|
|
4113
|
+
H(() => {
|
|
4114
|
+
const v = (h) => {
|
|
4115
|
+
h.ctrlKey && h.key === "d" && !h.shiftKey && !h.metaKey && (h.preventDefault(), u.current?.focus());
|
|
4087
4116
|
};
|
|
4088
4117
|
return window.addEventListener("keydown", v), () => window.removeEventListener("keydown", v);
|
|
4089
4118
|
}, []);
|
|
4090
|
-
const
|
|
4091
|
-
let
|
|
4092
|
-
if (
|
|
4093
|
-
const [b,
|
|
4094
|
-
|
|
4095
|
-
|
|
4119
|
+
const f = (v) => {
|
|
4120
|
+
let h = v;
|
|
4121
|
+
if (h.includes(ee)) {
|
|
4122
|
+
const [b, w = ""] = h.split(ee);
|
|
4123
|
+
h = `${ut(b.trim())}${ee}${ut(
|
|
4124
|
+
w.trim()
|
|
4096
4125
|
)}`;
|
|
4097
|
-
} else if (
|
|
4098
|
-
const [b,
|
|
4099
|
-
|
|
4126
|
+
} else if (h.toLowerCase().includes(" to ")) {
|
|
4127
|
+
const [b, w = ""] = h.split(/\s+to\s+/i);
|
|
4128
|
+
h = `${ut(b.trim())} to ${ut(w.trim())}`;
|
|
4100
4129
|
} else
|
|
4101
|
-
|
|
4102
|
-
a(
|
|
4130
|
+
h = ut(h);
|
|
4131
|
+
a(h);
|
|
4103
4132
|
}, d = () => {
|
|
4104
4133
|
const v = s.trim();
|
|
4105
4134
|
if (!v) {
|
|
@@ -4107,61 +4136,61 @@ function Ba({
|
|
|
4107
4136
|
return;
|
|
4108
4137
|
}
|
|
4109
4138
|
if (v.includes(ee)) {
|
|
4110
|
-
const [
|
|
4111
|
-
if (
|
|
4112
|
-
const [
|
|
4113
|
-
|
|
4139
|
+
const [h, b = ""] = v.split(ee).map((E) => E.trim()), w = lt(h), R = b ? lt(b) : null;
|
|
4140
|
+
if (w && R) {
|
|
4141
|
+
const [E, _] = R < w ? [R, w] : [w, R], O = `${we(E)}${ee}${we(
|
|
4142
|
+
_
|
|
4114
4143
|
)}`;
|
|
4115
|
-
a(O), t(`${
|
|
4116
|
-
} else if (
|
|
4117
|
-
a(`${we(
|
|
4118
|
-
else if (
|
|
4119
|
-
const
|
|
4144
|
+
a(O), t(`${E}|${_}`);
|
|
4145
|
+
} else if (w && !b)
|
|
4146
|
+
a(`${we(w)}${ee}`), t(void 0);
|
|
4147
|
+
else if (w && b) {
|
|
4148
|
+
const E = Pa(), [_, O] = E < w ? [E, w] : [w, E], T = `${we(_)}${ee}${we(
|
|
4120
4149
|
O
|
|
4121
4150
|
)}`;
|
|
4122
|
-
a(
|
|
4151
|
+
a(T), t(`${_}|${O}`);
|
|
4123
4152
|
} else
|
|
4124
4153
|
a(""), t(void 0);
|
|
4125
4154
|
} else {
|
|
4126
|
-
const
|
|
4127
|
-
|
|
4155
|
+
const h = lt(v);
|
|
4156
|
+
h ? (a(`${we(h)}${ee}`), t(void 0)) : (a(""), t(void 0));
|
|
4128
4157
|
}
|
|
4129
4158
|
}, m = (v) => {
|
|
4130
4159
|
if (v.key !== "Enter") return;
|
|
4131
4160
|
v.preventDefault();
|
|
4132
|
-
const
|
|
4161
|
+
const h = u.current?.selectionStart || 0, b = s.indexOf(ee);
|
|
4133
4162
|
if (!s.trim()) {
|
|
4134
4163
|
a(`${vr()}${ee}`);
|
|
4135
4164
|
return;
|
|
4136
4165
|
}
|
|
4137
4166
|
if (b === -1) {
|
|
4138
|
-
const
|
|
4139
|
-
|
|
4167
|
+
const R = lt(s.trim());
|
|
4168
|
+
R && a(`${we(R)}${ee}`);
|
|
4140
4169
|
return;
|
|
4141
4170
|
}
|
|
4142
|
-
if (
|
|
4143
|
-
const
|
|
4144
|
-
|
|
4171
|
+
if (h <= b + ee.length) {
|
|
4172
|
+
const R = s.substring(0, b).trim(), E = s.substring(b + ee.length), _ = lt(R);
|
|
4173
|
+
_ && a(`${we(_)}${ee}${E}`);
|
|
4145
4174
|
return;
|
|
4146
4175
|
}
|
|
4147
4176
|
if (s.substring(b + ee.length).trim())
|
|
4148
|
-
d(),
|
|
4177
|
+
d(), u.current?.blur();
|
|
4149
4178
|
else {
|
|
4150
|
-
const
|
|
4151
|
-
a(
|
|
4152
|
-
d(),
|
|
4179
|
+
const R = s.substring(0, b + ee.length) + vr();
|
|
4180
|
+
a(R), setTimeout(() => {
|
|
4181
|
+
d(), u.current?.blur();
|
|
4153
4182
|
}, 0);
|
|
4154
4183
|
}
|
|
4155
|
-
},
|
|
4184
|
+
}, p = () => {
|
|
4156
4185
|
a(""), t(void 0);
|
|
4157
4186
|
};
|
|
4158
4187
|
return /* @__PURE__ */ i.jsx(Cr, { children: /* @__PURE__ */ i.jsx(i.Fragment, { children: /* @__PURE__ */ i.jsxs(Fn, { position: "revert", children: [
|
|
4159
4188
|
/* @__PURE__ */ i.jsxs(
|
|
4160
|
-
|
|
4189
|
+
Va,
|
|
4161
4190
|
{
|
|
4162
4191
|
open: c,
|
|
4163
4192
|
onEscapeKeyDown: () => {
|
|
4164
|
-
|
|
4193
|
+
l(!1);
|
|
4165
4194
|
},
|
|
4166
4195
|
children: [
|
|
4167
4196
|
/* @__PURE__ */ i.jsx(Ha, { asChild: !0, children: /* @__PURE__ */ i.jsx(
|
|
@@ -4170,18 +4199,18 @@ function Ba({
|
|
|
4170
4199
|
size: "sm",
|
|
4171
4200
|
variant: "ghost",
|
|
4172
4201
|
"aria-label": "Date range help",
|
|
4173
|
-
onClick: () =>
|
|
4202
|
+
onClick: () => l((v) => !v),
|
|
4174
4203
|
children: /* @__PURE__ */ i.jsx(hr, { size: 16 })
|
|
4175
4204
|
}
|
|
4176
4205
|
) }),
|
|
4177
|
-
/* @__PURE__ */ i.jsx(Qe, { children: /* @__PURE__ */ i.jsx(
|
|
4206
|
+
/* @__PURE__ */ i.jsx(Qe, { children: /* @__PURE__ */ i.jsx(Ba, { children: /* @__PURE__ */ i.jsxs(Wa, { p: 4, children: [
|
|
4178
4207
|
/* @__PURE__ */ i.jsx(bo, {}),
|
|
4179
|
-
/* @__PURE__ */ i.jsxs(
|
|
4208
|
+
/* @__PURE__ */ i.jsxs(Ie, { align: "start", gap: 4, children: [
|
|
4180
4209
|
/* @__PURE__ */ i.jsxs(fe, { children: [
|
|
4181
4210
|
/* @__PURE__ */ i.jsx(hr, { size: 16 }),
|
|
4182
4211
|
/* @__PURE__ */ i.jsx(q, { fontWeight: "semibold", fontSize: "sm", children: "Date Range Filter" })
|
|
4183
4212
|
] }),
|
|
4184
|
-
/* @__PURE__ */ i.jsxs(
|
|
4213
|
+
/* @__PURE__ */ i.jsxs(Ie, { align: "start", gap: 1, children: [
|
|
4185
4214
|
/* @__PURE__ */ i.jsx(q, { fontSize: "sm", fontWeight: "medium", children: "Format:" }),
|
|
4186
4215
|
/* @__PURE__ */ i.jsxs(q, { fontSize: "xs", color: "gray.600", children: [
|
|
4187
4216
|
"DD-MM-YYYY",
|
|
@@ -4189,19 +4218,19 @@ function Ba({
|
|
|
4189
4218
|
"DD-MM-YYYY"
|
|
4190
4219
|
] })
|
|
4191
4220
|
] }),
|
|
4192
|
-
/* @__PURE__ */ i.jsxs(
|
|
4221
|
+
/* @__PURE__ */ i.jsxs(Ie, { align: "start", gap: 1, children: [
|
|
4193
4222
|
/* @__PURE__ */ i.jsx(q, { fontSize: "sm", fontWeight: "medium", children: "Tips:" }),
|
|
4194
4223
|
/* @__PURE__ */ i.jsx(q, { fontSize: "xs", children: '• "15 to 20" → assumes current month/year' }),
|
|
4195
4224
|
/* @__PURE__ */ i.jsx(q, { fontSize: "xs", children: "• Leave end blank → up to today" }),
|
|
4196
4225
|
/* @__PURE__ */ i.jsx(q, { fontSize: "xs", children: "• Dates auto-swapped if reversed" }),
|
|
4197
4226
|
/* @__PURE__ */ i.jsx(q, { fontSize: "xs", children: "• Press Enter on empty end → fills today" })
|
|
4198
4227
|
] }),
|
|
4199
|
-
/* @__PURE__ */ i.jsxs(
|
|
4228
|
+
/* @__PURE__ */ i.jsxs(Ie, { align: "start", gap: 1, children: [
|
|
4200
4229
|
/* @__PURE__ */ i.jsx(q, { fontSize: "sm", fontWeight: "medium", children: "Shortcut:" }),
|
|
4201
4230
|
/* @__PURE__ */ i.jsxs(fe, { children: [
|
|
4202
|
-
/* @__PURE__ */ i.jsx(
|
|
4231
|
+
/* @__PURE__ */ i.jsx(Vn, { children: "Ctrl" }),
|
|
4203
4232
|
/* @__PURE__ */ i.jsx(q, { children: "+" }),
|
|
4204
|
-
/* @__PURE__ */ i.jsx(
|
|
4233
|
+
/* @__PURE__ */ i.jsx(Vn, { children: "D" })
|
|
4205
4234
|
] })
|
|
4206
4235
|
] })
|
|
4207
4236
|
] })
|
|
@@ -4212,12 +4241,12 @@ function Ba({
|
|
|
4212
4241
|
/* @__PURE__ */ i.jsx(
|
|
4213
4242
|
Sn,
|
|
4214
4243
|
{
|
|
4215
|
-
ref:
|
|
4244
|
+
ref: u,
|
|
4216
4245
|
placeholder: "15-06-2025 to 20-06-2025",
|
|
4217
4246
|
value: s,
|
|
4218
4247
|
size: "sm",
|
|
4219
4248
|
disabled: n,
|
|
4220
|
-
onChange: (v) =>
|
|
4249
|
+
onChange: (v) => f(v.target.value),
|
|
4221
4250
|
onBlur: d,
|
|
4222
4251
|
onKeyDown: m,
|
|
4223
4252
|
pr: s ? "10" : void 0,
|
|
@@ -4230,13 +4259,13 @@ function Ba({
|
|
|
4230
4259
|
size: "sm",
|
|
4231
4260
|
variant: "ghost",
|
|
4232
4261
|
"aria-label": "Clear date range",
|
|
4233
|
-
onClick:
|
|
4262
|
+
onClick: p,
|
|
4234
4263
|
w: "100%"
|
|
4235
4264
|
}
|
|
4236
4265
|
) })
|
|
4237
4266
|
] }) }) });
|
|
4238
4267
|
}
|
|
4239
|
-
const
|
|
4268
|
+
const Ga = x(We.Root), Xa = x(We.Label), qa = x(We.HelperText), Ka = x(We.ErrorText), mr = ({
|
|
4240
4269
|
icon: e,
|
|
4241
4270
|
value: t,
|
|
4242
4271
|
onChange: n,
|
|
@@ -4245,28 +4274,28 @@ const Ua = y(We.Root), Ga = y(We.Label), Xa = y(We.HelperText), qa = y(We.ErrorT
|
|
|
4245
4274
|
variant: s = "outline",
|
|
4246
4275
|
width: a = "100%",
|
|
4247
4276
|
label: c,
|
|
4248
|
-
helperText:
|
|
4249
|
-
isDisabled:
|
|
4250
|
-
required:
|
|
4277
|
+
helperText: l,
|
|
4278
|
+
isDisabled: u = !1,
|
|
4279
|
+
required: f = !1,
|
|
4251
4280
|
errorText: d,
|
|
4252
4281
|
visible: m
|
|
4253
|
-
}) => /* @__PURE__ */ i.jsxs(
|
|
4254
|
-
m && /* @__PURE__ */ i.jsx(
|
|
4282
|
+
}) => /* @__PURE__ */ i.jsxs(Ga, { width: a, children: [
|
|
4283
|
+
m && /* @__PURE__ */ i.jsx(Xa, { children: c }),
|
|
4255
4284
|
/* @__PURE__ */ i.jsx(Cr, { startElement: e, children: /* @__PURE__ */ i.jsx(
|
|
4256
4285
|
Sn,
|
|
4257
4286
|
{
|
|
4258
4287
|
value: t,
|
|
4259
|
-
onChange: (
|
|
4288
|
+
onChange: (p) => n?.(p.target.value),
|
|
4260
4289
|
placeholder: r,
|
|
4261
4290
|
size: o,
|
|
4262
4291
|
variant: s,
|
|
4263
|
-
disabled:
|
|
4264
|
-
required:
|
|
4292
|
+
disabled: u,
|
|
4293
|
+
required: f
|
|
4265
4294
|
}
|
|
4266
4295
|
) }),
|
|
4267
|
-
d && /* @__PURE__ */ i.jsx(
|
|
4268
|
-
|
|
4269
|
-
] }),
|
|
4296
|
+
d && /* @__PURE__ */ i.jsx(Ka, { fontSize: "xs", children: d }),
|
|
4297
|
+
l && /* @__PURE__ */ i.jsx(qa, { fontSize: "xs", children: l })
|
|
4298
|
+
] }), Ja = x(We.Root), Za = x(We.HelperText), Qa = x(We.ErrorText), ec = x(K.Root), tc = x(K.Label), nc = x(K.Control), rc = x(K.Trigger), oc = x(K.ValueText), sc = x(K.IndicatorGroup), ic = x(K.Indicator), ac = x(K.Content), cc = x(K.Item), lc = x(K.ItemIndicator), uc = x(K.HiddenSelect), dc = x(K.Positioner), fc = ({
|
|
4270
4299
|
options: e = [],
|
|
4271
4300
|
label: t,
|
|
4272
4301
|
value: n,
|
|
@@ -4275,81 +4304,81 @@ const Ua = y(We.Root), Ga = y(We.Label), Xa = y(We.HelperText), qa = y(We.ErrorT
|
|
|
4275
4304
|
size: s = "xs",
|
|
4276
4305
|
width: a = "100%",
|
|
4277
4306
|
variant: c = "outline",
|
|
4278
|
-
helperText:
|
|
4279
|
-
isDisabled:
|
|
4280
|
-
required:
|
|
4307
|
+
helperText: l,
|
|
4308
|
+
isDisabled: u,
|
|
4309
|
+
required: f,
|
|
4281
4310
|
errorText: d,
|
|
4282
4311
|
visible: m
|
|
4283
4312
|
}) => {
|
|
4284
|
-
const
|
|
4313
|
+
const p = Dr({
|
|
4285
4314
|
items: e
|
|
4286
4315
|
});
|
|
4287
|
-
return /* @__PURE__ */ i.jsxs(
|
|
4316
|
+
return /* @__PURE__ */ i.jsxs(Ja, { disabled: u, required: f, children: [
|
|
4288
4317
|
/* @__PURE__ */ i.jsxs(
|
|
4289
|
-
|
|
4318
|
+
ec,
|
|
4290
4319
|
{
|
|
4291
|
-
collection:
|
|
4320
|
+
collection: p,
|
|
4292
4321
|
variant: c,
|
|
4293
4322
|
size: s,
|
|
4294
4323
|
width: a,
|
|
4295
4324
|
value: n ? [n] : [],
|
|
4296
4325
|
onValueChange: (v) => r?.(v.value[0]),
|
|
4297
4326
|
children: [
|
|
4298
|
-
/* @__PURE__ */ i.jsx(
|
|
4299
|
-
m && /* @__PURE__ */ i.jsx(
|
|
4300
|
-
/* @__PURE__ */ i.jsxs(
|
|
4301
|
-
/* @__PURE__ */ i.jsx(
|
|
4302
|
-
/* @__PURE__ */ i.jsx(
|
|
4327
|
+
/* @__PURE__ */ i.jsx(uc, {}),
|
|
4328
|
+
m && /* @__PURE__ */ i.jsx(tc, { children: t }),
|
|
4329
|
+
/* @__PURE__ */ i.jsxs(nc, { children: [
|
|
4330
|
+
/* @__PURE__ */ i.jsx(rc, { children: /* @__PURE__ */ i.jsx(oc, { placeholder: o }) }),
|
|
4331
|
+
/* @__PURE__ */ i.jsx(sc, { children: /* @__PURE__ */ i.jsx(ic, {}) })
|
|
4303
4332
|
] }),
|
|
4304
|
-
/* @__PURE__ */ i.jsx(
|
|
4333
|
+
/* @__PURE__ */ i.jsx(dc, { children: /* @__PURE__ */ i.jsx(ac, { children: p.items.map((v) => /* @__PURE__ */ i.jsxs(cc, { item: v, children: [
|
|
4305
4334
|
v.label,
|
|
4306
|
-
/* @__PURE__ */ i.jsx(
|
|
4335
|
+
/* @__PURE__ */ i.jsx(lc, {})
|
|
4307
4336
|
] }, v.value)) }) })
|
|
4308
4337
|
]
|
|
4309
4338
|
}
|
|
4310
4339
|
),
|
|
4311
|
-
|
|
4312
|
-
d && /* @__PURE__ */ i.jsx(
|
|
4340
|
+
l && /* @__PURE__ */ i.jsx(Za, { children: l }),
|
|
4341
|
+
d && /* @__PURE__ */ i.jsx(Qa, { children: d })
|
|
4313
4342
|
] });
|
|
4314
4343
|
}, no = (e) => `FILTER_PRESETS_${e ?? "default"}`;
|
|
4315
|
-
function
|
|
4344
|
+
function hc(e) {
|
|
4316
4345
|
try {
|
|
4317
4346
|
return JSON.parse(localStorage.getItem(no(e)) || "[]");
|
|
4318
4347
|
} catch {
|
|
4319
4348
|
return [];
|
|
4320
4349
|
}
|
|
4321
4350
|
}
|
|
4322
|
-
const
|
|
4323
|
-
const t =
|
|
4351
|
+
const Ht = new _r({}), $n = (e) => {
|
|
4352
|
+
const t = Ht.state[e];
|
|
4324
4353
|
if (t) return t;
|
|
4325
|
-
const n =
|
|
4326
|
-
return
|
|
4354
|
+
const n = hc(e);
|
|
4355
|
+
return Ht.setState((r) => ({
|
|
4327
4356
|
...r,
|
|
4328
4357
|
[e]: n
|
|
4329
4358
|
})), n;
|
|
4330
4359
|
}, ro = (e, t) => {
|
|
4331
|
-
|
|
4360
|
+
Ht.setState((n) => ({
|
|
4332
4361
|
...n,
|
|
4333
4362
|
[e]: t
|
|
4334
4363
|
})), localStorage.setItem(no(e), JSON.stringify(t));
|
|
4335
|
-
},
|
|
4364
|
+
}, gc = (e, t) => {
|
|
4336
4365
|
const n = $n(e).filter((r) => r.id !== t);
|
|
4337
4366
|
ro(e, n);
|
|
4338
|
-
},
|
|
4367
|
+
}, pc = (e, t) => {
|
|
4339
4368
|
const n = [t, ...$n(e)];
|
|
4340
4369
|
ro(e, n);
|
|
4341
|
-
},
|
|
4370
|
+
}, vc = x(De.Root), mc = x(De.HiddenInput), bc = x(De.Control), xc = x(mt.Root), yc = x(mt.Track), wc = x(mt.Range), Sc = x(mt.Thumbs), Dc = x(mt.Control), Cc = ({ filter: e, onVisibilityChange: t, onSizeChange: n }) => {
|
|
4342
4371
|
const { attributes: r, listeners: o, setNodeRef: s, transform: a, transition: c } = Zr({
|
|
4343
4372
|
id: e.id
|
|
4344
|
-
}),
|
|
4373
|
+
}), l = {
|
|
4345
4374
|
transform: Ze.Transform.toString(a),
|
|
4346
4375
|
transition: c
|
|
4347
4376
|
};
|
|
4348
4377
|
return /* @__PURE__ */ i.jsxs(
|
|
4349
|
-
|
|
4378
|
+
Ie,
|
|
4350
4379
|
{
|
|
4351
4380
|
ref: s,
|
|
4352
|
-
style:
|
|
4381
|
+
style: l,
|
|
4353
4382
|
align: "stretch",
|
|
4354
4383
|
border: "1px solid",
|
|
4355
4384
|
borderColor: "gray.200",
|
|
@@ -4365,31 +4394,31 @@ const Vt = new _r({}), $n = (e) => {
|
|
|
4365
4394
|
/* @__PURE__ */ i.jsxs(fe, { justify: "space-between", children: [
|
|
4366
4395
|
/* @__PURE__ */ i.jsx(q, { fontSize: "sm", children: "Visible" }),
|
|
4367
4396
|
/* @__PURE__ */ i.jsxs(
|
|
4368
|
-
|
|
4397
|
+
vc,
|
|
4369
4398
|
{
|
|
4370
4399
|
checked: e.visible,
|
|
4371
4400
|
size: "sm",
|
|
4372
|
-
onCheckedChange: (
|
|
4401
|
+
onCheckedChange: (u) => t?.(e.id, !!u.checked),
|
|
4373
4402
|
children: [
|
|
4374
|
-
/* @__PURE__ */ i.jsx(
|
|
4375
|
-
/* @__PURE__ */ i.jsx(
|
|
4403
|
+
/* @__PURE__ */ i.jsx(mc, {}),
|
|
4404
|
+
/* @__PURE__ */ i.jsx(bc, {})
|
|
4376
4405
|
]
|
|
4377
4406
|
}
|
|
4378
4407
|
)
|
|
4379
4408
|
] }),
|
|
4380
|
-
/* @__PURE__ */ i.jsxs(
|
|
4409
|
+
/* @__PURE__ */ i.jsxs(Ie, { align: "stretch", gap: 1, children: [
|
|
4381
4410
|
/* @__PURE__ */ i.jsx(q, { fontSize: "sm", children: "Size" }),
|
|
4382
4411
|
/* @__PURE__ */ i.jsx(
|
|
4383
|
-
|
|
4412
|
+
xc,
|
|
4384
4413
|
{
|
|
4385
4414
|
min: 1,
|
|
4386
4415
|
max: 5,
|
|
4387
4416
|
step: 0.5,
|
|
4388
4417
|
value: [e.size ?? 1],
|
|
4389
|
-
onValueChange: (
|
|
4390
|
-
children: /* @__PURE__ */ i.jsxs(
|
|
4391
|
-
/* @__PURE__ */ i.jsx(
|
|
4392
|
-
/* @__PURE__ */ i.jsx(
|
|
4418
|
+
onValueChange: (u) => n?.(e.id, u.value[0]),
|
|
4419
|
+
children: /* @__PURE__ */ i.jsxs(Dc, { children: [
|
|
4420
|
+
/* @__PURE__ */ i.jsx(yc, { children: /* @__PURE__ */ i.jsx(wc, {}) }),
|
|
4421
|
+
/* @__PURE__ */ i.jsx(Sc, {})
|
|
4393
4422
|
] })
|
|
4394
4423
|
}
|
|
4395
4424
|
)
|
|
@@ -4397,7 +4426,7 @@ const Vt = new _r({}), $n = (e) => {
|
|
|
4397
4426
|
]
|
|
4398
4427
|
}
|
|
4399
4428
|
);
|
|
4400
|
-
},
|
|
4429
|
+
}, Rc = x(Me.Root), jc = x(Me.Trigger), Ec = x(Me.Backdrop), _c = x(Me.Positioner), Tc = x(Me.Content), Oc = x(Me.Header), Mc = x(Me.Title), $c = x(Me.Body), kc = x(Me.Footer), Ic = x(Me.CloseTrigger), Ac = x(Bt.Root), Lc = x(Bt.List), dn = x(Bt.Trigger), fn = x(Bt.Content), oo = (e, t) => {
|
|
4401
4430
|
if (e.customComponent)
|
|
4402
4431
|
return e.customComponent;
|
|
4403
4432
|
switch (e.type) {
|
|
@@ -4416,7 +4445,7 @@ const Vt = new _r({}), $n = (e) => {
|
|
|
4416
4445
|
return /* @__PURE__ */ i.jsx(mr, { label: e.label, value: e.value, onChange: e.onChange });
|
|
4417
4446
|
case "checkbox":
|
|
4418
4447
|
return /* @__PURE__ */ i.jsx(
|
|
4419
|
-
|
|
4448
|
+
za,
|
|
4420
4449
|
{
|
|
4421
4450
|
label: e.label,
|
|
4422
4451
|
value: e.value,
|
|
@@ -4425,7 +4454,7 @@ const Vt = new _r({}), $n = (e) => {
|
|
|
4425
4454
|
);
|
|
4426
4455
|
case "select":
|
|
4427
4456
|
return /* @__PURE__ */ i.jsx(
|
|
4428
|
-
|
|
4457
|
+
fc,
|
|
4429
4458
|
{
|
|
4430
4459
|
label: e.label,
|
|
4431
4460
|
value: e.value,
|
|
@@ -4436,7 +4465,7 @@ const Vt = new _r({}), $n = (e) => {
|
|
|
4436
4465
|
);
|
|
4437
4466
|
case "date":
|
|
4438
4467
|
return /* @__PURE__ */ i.jsx(
|
|
4439
|
-
|
|
4468
|
+
Ua,
|
|
4440
4469
|
{
|
|
4441
4470
|
value: e.value,
|
|
4442
4471
|
onChange: e.onChange
|
|
@@ -4445,7 +4474,7 @@ const Vt = new _r({}), $n = (e) => {
|
|
|
4445
4474
|
default:
|
|
4446
4475
|
return null;
|
|
4447
4476
|
}
|
|
4448
|
-
},
|
|
4477
|
+
}, Nc = ({
|
|
4449
4478
|
filterDrawerSize: e = "sm",
|
|
4450
4479
|
onVisibilityChange: t,
|
|
4451
4480
|
onSizeChange: n,
|
|
@@ -4454,31 +4483,31 @@ const Vt = new _r({}), $n = (e) => {
|
|
|
4454
4483
|
pageKey: s = "default",
|
|
4455
4484
|
currentFilters: a = {},
|
|
4456
4485
|
onLoadPreset: c,
|
|
4457
|
-
activePresetName:
|
|
4458
|
-
onReorder:
|
|
4459
|
-
open:
|
|
4486
|
+
activePresetName: l,
|
|
4487
|
+
onReorder: u,
|
|
4488
|
+
open: f,
|
|
4460
4489
|
onOpenChange: d
|
|
4461
4490
|
}) => {
|
|
4462
|
-
const
|
|
4463
|
-
const
|
|
4464
|
-
|
|
4491
|
+
const p = bt(Ht)[s] ?? $n(s), v = () => {
|
|
4492
|
+
const h = prompt("Preset name?");
|
|
4493
|
+
h && pc(s, {
|
|
4465
4494
|
id: crypto.randomUUID(),
|
|
4466
|
-
name:
|
|
4495
|
+
name: h,
|
|
4467
4496
|
date: (/* @__PURE__ */ new Date()).toISOString(),
|
|
4468
4497
|
filters: a
|
|
4469
4498
|
});
|
|
4470
4499
|
};
|
|
4471
|
-
return /* @__PURE__ */ i.jsx(fe, { wrap: "wrap", children: /* @__PURE__ */ i.jsxs(
|
|
4472
|
-
/* @__PURE__ */ i.jsx(
|
|
4500
|
+
return /* @__PURE__ */ i.jsx(fe, { wrap: "wrap", children: /* @__PURE__ */ i.jsxs(Rc, { size: e, open: f, onOpenChange: d, children: [
|
|
4501
|
+
/* @__PURE__ */ i.jsx(jc, { asChild: !0, children: /* @__PURE__ */ i.jsxs(_e, { "aria-label": "Open filters", variant: "outline", size: "xs", ml: 2, p: 2, children: [
|
|
4473
4502
|
/* @__PURE__ */ i.jsx(Bi, { size: 16 }),
|
|
4474
4503
|
"Filters"
|
|
4475
4504
|
] }) }),
|
|
4476
4505
|
/* @__PURE__ */ i.jsxs(Qe, { children: [
|
|
4477
|
-
/* @__PURE__ */ i.jsx(
|
|
4478
|
-
/* @__PURE__ */ i.jsx(
|
|
4479
|
-
/* @__PURE__ */ i.jsx(
|
|
4480
|
-
/* @__PURE__ */ i.jsx(
|
|
4481
|
-
/* @__PURE__ */ i.jsxs(
|
|
4506
|
+
/* @__PURE__ */ i.jsx(Ec, {}),
|
|
4507
|
+
/* @__PURE__ */ i.jsx(_c, { children: /* @__PURE__ */ i.jsxs(Tc, { children: [
|
|
4508
|
+
/* @__PURE__ */ i.jsx(Oc, { children: /* @__PURE__ */ i.jsx(Mc, { children: "Filters" }) }),
|
|
4509
|
+
/* @__PURE__ */ i.jsx($c, { overflowY: "auto", pt: 1, children: /* @__PURE__ */ i.jsxs(Ac, { defaultValue: "view", children: [
|
|
4510
|
+
/* @__PURE__ */ i.jsxs(Lc, { mb: 4, children: [
|
|
4482
4511
|
/* @__PURE__ */ i.jsxs(dn, { value: "view", children: [
|
|
4483
4512
|
/* @__PURE__ */ i.jsx(Xi, { size: 16 }),
|
|
4484
4513
|
"Edit"
|
|
@@ -4492,64 +4521,64 @@ const Vt = new _r({}), $n = (e) => {
|
|
|
4492
4521
|
"Presets"
|
|
4493
4522
|
] })
|
|
4494
4523
|
] }),
|
|
4495
|
-
/* @__PURE__ */ i.jsx(fn, { value: "view", children: o.filter((
|
|
4496
|
-
|
|
4524
|
+
/* @__PURE__ */ i.jsx(fn, { value: "view", children: o.filter((h) => h.visible).map((h) => /* @__PURE__ */ i.jsx(
|
|
4525
|
+
Ie,
|
|
4497
4526
|
{
|
|
4498
4527
|
align: "stretch",
|
|
4499
4528
|
border: "1px solid",
|
|
4500
4529
|
borderColor: "gray.200",
|
|
4501
|
-
flex:
|
|
4502
|
-
minW: `${(
|
|
4530
|
+
flex: h.size ?? 1,
|
|
4531
|
+
minW: `${(h.size ?? 1) * 100}px`,
|
|
4503
4532
|
rounded: "md",
|
|
4504
4533
|
p: 3,
|
|
4505
4534
|
mb: 3,
|
|
4506
|
-
children: oo(
|
|
4535
|
+
children: oo(h, f)
|
|
4507
4536
|
},
|
|
4508
|
-
|
|
4537
|
+
h.id
|
|
4509
4538
|
)) }),
|
|
4510
4539
|
/* @__PURE__ */ i.jsx(fn, { value: "settings", children: /* @__PURE__ */ i.jsx(
|
|
4511
4540
|
Ur,
|
|
4512
4541
|
{
|
|
4513
4542
|
sensors: Ko(qo(On)),
|
|
4514
4543
|
collisionDetection: $r,
|
|
4515
|
-
onDragEnd: ({ active:
|
|
4516
|
-
if (!b ||
|
|
4517
|
-
const
|
|
4518
|
-
|
|
4544
|
+
onDragEnd: ({ active: h, over: b }) => {
|
|
4545
|
+
if (!b || h.id === b.id) return;
|
|
4546
|
+
const w = o.findIndex((_) => _.id === h.id), R = o.findIndex((_) => _.id === b.id), E = Kt(o, w, R);
|
|
4547
|
+
u?.(E);
|
|
4519
4548
|
},
|
|
4520
4549
|
children: /* @__PURE__ */ i.jsx(
|
|
4521
4550
|
Kr,
|
|
4522
4551
|
{
|
|
4523
|
-
items: o.map((
|
|
4552
|
+
items: o.map((h) => h.id),
|
|
4524
4553
|
strategy: di,
|
|
4525
|
-
children: o.map((
|
|
4526
|
-
|
|
4554
|
+
children: o.map((h) => /* @__PURE__ */ i.jsx(
|
|
4555
|
+
Cc,
|
|
4527
4556
|
{
|
|
4528
|
-
filter:
|
|
4557
|
+
filter: h,
|
|
4529
4558
|
onVisibilityChange: t,
|
|
4530
4559
|
onSizeChange: n
|
|
4531
4560
|
},
|
|
4532
|
-
|
|
4561
|
+
h.id
|
|
4533
4562
|
))
|
|
4534
4563
|
}
|
|
4535
4564
|
)
|
|
4536
4565
|
}
|
|
4537
4566
|
) }),
|
|
4538
|
-
/* @__PURE__ */ i.jsx(fn, { value: "presets", children: /* @__PURE__ */ i.jsxs(
|
|
4567
|
+
/* @__PURE__ */ i.jsx(fn, { value: "presets", children: /* @__PURE__ */ i.jsxs(Ie, { align: "stretch", mb: 3, children: [
|
|
4539
4568
|
/* @__PURE__ */ i.jsx(Ke, { size: "sm", colorScheme: "blue", onClick: v, children: "Save Current Filters" }),
|
|
4540
|
-
|
|
4541
|
-
|
|
4569
|
+
p.length === 0 && /* @__PURE__ */ i.jsx(q, { fontSize: "xs", color: "gray.500", children: "No presets saved yet." }),
|
|
4570
|
+
p.map((h) => /* @__PURE__ */ i.jsxs(
|
|
4542
4571
|
fe,
|
|
4543
4572
|
{
|
|
4544
4573
|
justify: "space-between",
|
|
4545
4574
|
border: "1px solid",
|
|
4546
|
-
borderColor:
|
|
4575
|
+
borderColor: l === h.name ? "blue.300" : "gray.200",
|
|
4547
4576
|
rounded: "md",
|
|
4548
4577
|
p: 2,
|
|
4549
4578
|
children: [
|
|
4550
|
-
/* @__PURE__ */ i.jsxs(
|
|
4551
|
-
/* @__PURE__ */ i.jsx(q, { fontWeight: "bold", fontSize: "sm", children:
|
|
4552
|
-
/* @__PURE__ */ i.jsx(q, { fontSize: "xs", color: "gray.500", children: new Date(
|
|
4579
|
+
/* @__PURE__ */ i.jsxs(Ie, { align: "start", gap: 0, children: [
|
|
4580
|
+
/* @__PURE__ */ i.jsx(q, { fontWeight: "bold", fontSize: "sm", children: h.name }),
|
|
4581
|
+
/* @__PURE__ */ i.jsx(q, { fontSize: "xs", color: "gray.500", children: new Date(h.date).toLocaleDateString() })
|
|
4553
4582
|
] }),
|
|
4554
4583
|
/* @__PURE__ */ i.jsxs(fe, { children: [
|
|
4555
4584
|
/* @__PURE__ */ i.jsx(
|
|
@@ -4557,7 +4586,7 @@ const Vt = new _r({}), $n = (e) => {
|
|
|
4557
4586
|
{
|
|
4558
4587
|
size: "xs",
|
|
4559
4588
|
variant: "ghost",
|
|
4560
|
-
onClick: () => c?.(
|
|
4589
|
+
onClick: () => c?.(h.filters, h.name),
|
|
4561
4590
|
children: "Load"
|
|
4562
4591
|
}
|
|
4563
4592
|
),
|
|
@@ -4567,18 +4596,18 @@ const Vt = new _r({}), $n = (e) => {
|
|
|
4567
4596
|
size: "xs",
|
|
4568
4597
|
"aria-label": "Delete preset",
|
|
4569
4598
|
variant: "ghost",
|
|
4570
|
-
onClick: () =>
|
|
4599
|
+
onClick: () => gc(s, h.id),
|
|
4571
4600
|
children: /* @__PURE__ */ i.jsx(Fi, { size: 14 })
|
|
4572
4601
|
}
|
|
4573
4602
|
)
|
|
4574
4603
|
] })
|
|
4575
4604
|
]
|
|
4576
4605
|
},
|
|
4577
|
-
|
|
4606
|
+
h.id
|
|
4578
4607
|
))
|
|
4579
4608
|
] }) })
|
|
4580
4609
|
] }) }),
|
|
4581
|
-
/* @__PURE__ */ i.jsxs(
|
|
4610
|
+
/* @__PURE__ */ i.jsxs(kc, { justify: "space-between", children: [
|
|
4582
4611
|
/* @__PURE__ */ i.jsx(
|
|
4583
4612
|
Ke,
|
|
4584
4613
|
{
|
|
@@ -4594,7 +4623,7 @@ const Vt = new _r({}), $n = (e) => {
|
|
|
4594
4623
|
] }) })
|
|
4595
4624
|
] })
|
|
4596
4625
|
] }) });
|
|
4597
|
-
},
|
|
4626
|
+
}, hl = ({
|
|
4598
4627
|
title: e,
|
|
4599
4628
|
filters: t,
|
|
4600
4629
|
onVisibilityChange: n,
|
|
@@ -4603,12 +4632,12 @@ const Vt = new _r({}), $n = (e) => {
|
|
|
4603
4632
|
onClear: s,
|
|
4604
4633
|
maxToolbarUnits: a,
|
|
4605
4634
|
pageKey: c,
|
|
4606
|
-
currentFilters:
|
|
4607
|
-
onLoadPreset:
|
|
4608
|
-
activePresetName:
|
|
4635
|
+
currentFilters: l,
|
|
4636
|
+
onLoadPreset: u,
|
|
4637
|
+
activePresetName: f,
|
|
4609
4638
|
filterDrawerSize: d = "sm"
|
|
4610
4639
|
}) => {
|
|
4611
|
-
const [m,
|
|
4640
|
+
const [m, p] = oe(!1);
|
|
4612
4641
|
return /* @__PURE__ */ i.jsxs(fe, { wrap: "wrap", pl: 2, pr: 2, width: "100%", justify: "space-between", children: [
|
|
4613
4642
|
e,
|
|
4614
4643
|
/* @__PURE__ */ i.jsxs(fe, { gapX: 1, children: [
|
|
@@ -4623,7 +4652,7 @@ const Vt = new _r({}), $n = (e) => {
|
|
|
4623
4652
|
v.id
|
|
4624
4653
|
)),
|
|
4625
4654
|
/* @__PURE__ */ i.jsx(
|
|
4626
|
-
|
|
4655
|
+
Nc,
|
|
4627
4656
|
{
|
|
4628
4657
|
filterDrawerSize: d,
|
|
4629
4658
|
onVisibilityChange: n,
|
|
@@ -4633,26 +4662,26 @@ const Vt = new _r({}), $n = (e) => {
|
|
|
4633
4662
|
maxToolbarUnits: a,
|
|
4634
4663
|
pageKey: c,
|
|
4635
4664
|
filters: t,
|
|
4636
|
-
currentFilters:
|
|
4637
|
-
onLoadPreset:
|
|
4638
|
-
activePresetName:
|
|
4665
|
+
currentFilters: l,
|
|
4666
|
+
onLoadPreset: u,
|
|
4667
|
+
activePresetName: f,
|
|
4639
4668
|
open: m,
|
|
4640
4669
|
onOpenChange: (v) => {
|
|
4641
|
-
|
|
4670
|
+
p(v.open);
|
|
4642
4671
|
}
|
|
4643
4672
|
}
|
|
4644
4673
|
)
|
|
4645
4674
|
] })
|
|
4646
4675
|
] });
|
|
4647
|
-
},
|
|
4676
|
+
}, gl = (e, t) => {
|
|
4648
4677
|
localStorage.setItem(`FILTER_ORDER_${e}`, JSON.stringify(t));
|
|
4649
|
-
},
|
|
4678
|
+
}, pl = (e) => {
|
|
4650
4679
|
try {
|
|
4651
4680
|
return JSON.parse(localStorage.getItem(`FILTER_ORDER_${e}`) || "[]");
|
|
4652
4681
|
} catch {
|
|
4653
4682
|
return [];
|
|
4654
4683
|
}
|
|
4655
|
-
},
|
|
4684
|
+
}, vl = ({
|
|
4656
4685
|
onClick: e,
|
|
4657
4686
|
size: t = "xs",
|
|
4658
4687
|
variant: n = "solid",
|
|
@@ -4661,9 +4690,9 @@ const Vt = new _r({}), $n = (e) => {
|
|
|
4661
4690
|
rightIcon: s,
|
|
4662
4691
|
isDisabled: a,
|
|
4663
4692
|
colorScheme: c,
|
|
4664
|
-
loading:
|
|
4665
|
-
loadingText:
|
|
4666
|
-
rounded:
|
|
4693
|
+
loading: l,
|
|
4694
|
+
loadingText: u,
|
|
4695
|
+
rounded: f,
|
|
4667
4696
|
type: d = "button"
|
|
4668
4697
|
}) => /* @__PURE__ */ i.jsx(
|
|
4669
4698
|
Ke,
|
|
@@ -4673,9 +4702,9 @@ const Vt = new _r({}), $n = (e) => {
|
|
|
4673
4702
|
variant: n,
|
|
4674
4703
|
disabled: a,
|
|
4675
4704
|
colorPalette: c,
|
|
4676
|
-
loading:
|
|
4677
|
-
loadingText:
|
|
4678
|
-
rounded:
|
|
4705
|
+
loading: l,
|
|
4706
|
+
loadingText: u,
|
|
4707
|
+
rounded: f,
|
|
4679
4708
|
type: d,
|
|
4680
4709
|
children: /* @__PURE__ */ i.jsxs(fe, { gap: 1, children: [
|
|
4681
4710
|
o,
|
|
@@ -4683,8 +4712,8 @@ const Vt = new _r({}), $n = (e) => {
|
|
|
4683
4712
|
s
|
|
4684
4713
|
] })
|
|
4685
4714
|
}
|
|
4686
|
-
),
|
|
4687
|
-
function
|
|
4715
|
+
), zc = x(Ae.Root), Pc = x(Ae.Backdrop), Yc = x(Ae.Positioner), Fc = x(Ae.Content), Vc = x(Ae.Header), Hc = x(Ae.Body), Wc = x(Ae.Footer), Bc = x(Ae.Title), Uc = x(Ae.CloseTrigger);
|
|
4716
|
+
function ml({
|
|
4688
4717
|
open: e,
|
|
4689
4718
|
onClose: t,
|
|
4690
4719
|
onConfirm: n,
|
|
@@ -4694,11 +4723,11 @@ function vl({
|
|
|
4694
4723
|
confirmLabel: a = "Delete",
|
|
4695
4724
|
isLoading: c = !1
|
|
4696
4725
|
}) {
|
|
4697
|
-
const [
|
|
4698
|
-
return /* @__PURE__ */ i.jsx(
|
|
4699
|
-
/* @__PURE__ */ i.jsx(
|
|
4700
|
-
/* @__PURE__ */ i.jsx(
|
|
4701
|
-
/* @__PURE__ */ i.jsx(
|
|
4726
|
+
const [l, u] = oe("");
|
|
4727
|
+
return /* @__PURE__ */ i.jsx(zc, { open: e, placement: "center", onOpenChange: (f) => !f.open && t(), children: /* @__PURE__ */ i.jsxs(Qe, { children: [
|
|
4728
|
+
/* @__PURE__ */ i.jsx(Pc, {}),
|
|
4729
|
+
/* @__PURE__ */ i.jsx(Yc, { children: /* @__PURE__ */ i.jsxs(Fc, { maxW: "520px", children: [
|
|
4730
|
+
/* @__PURE__ */ i.jsx(Vc, { borderBottom: "1px solid", borderColor: "red.200", boxShadow: "sm", children: /* @__PURE__ */ i.jsx(Bc, { color: "red.600", children: r }) }),
|
|
4702
4731
|
/* @__PURE__ */ i.jsx(Hc, { children: /* @__PURE__ */ i.jsxs(gn, { gap: 4, boxShadow: "lg", border: "1px solid gray.200", borderRadius: "md", p: 4, children: [
|
|
4703
4732
|
/* @__PURE__ */ i.jsx(je, { border: "1px solid", borderColor: "red.200", bg: "red.50", borderRadius: "md", p: 4, children: /* @__PURE__ */ i.jsxs(gn, { direction: "row", gap: 3, align: "flex-start", children: [
|
|
4704
4733
|
/* @__PURE__ */ i.jsx(je, { color: "red.600", mt: "2px", children: /* @__PURE__ */ i.jsx(ea, { size: 20 }) }),
|
|
@@ -4722,15 +4751,15 @@ function vl({
|
|
|
4722
4751
|
Sn,
|
|
4723
4752
|
{
|
|
4724
4753
|
placeholder: `Type ${s} here`,
|
|
4725
|
-
value:
|
|
4726
|
-
onChange: (
|
|
4754
|
+
value: l,
|
|
4755
|
+
onChange: (f) => u(f.target.value),
|
|
4727
4756
|
size: "xs"
|
|
4728
4757
|
}
|
|
4729
4758
|
)
|
|
4730
4759
|
] })
|
|
4731
4760
|
] }) }),
|
|
4732
4761
|
/* @__PURE__ */ i.jsxs(
|
|
4733
|
-
|
|
4762
|
+
Wc,
|
|
4734
4763
|
{
|
|
4735
4764
|
justifyContent: "flex-end",
|
|
4736
4765
|
gap: 3,
|
|
@@ -4754,11 +4783,11 @@ function vl({
|
|
|
4754
4783
|
]
|
|
4755
4784
|
}
|
|
4756
4785
|
),
|
|
4757
|
-
/* @__PURE__ */ i.jsx(
|
|
4786
|
+
/* @__PURE__ */ i.jsx(Uc, { asChild: !0, children: /* @__PURE__ */ i.jsx(Rr, { size: "sm" }) })
|
|
4758
4787
|
] }) })
|
|
4759
4788
|
] }) });
|
|
4760
4789
|
}
|
|
4761
|
-
function
|
|
4790
|
+
function bl({
|
|
4762
4791
|
refetch: e,
|
|
4763
4792
|
isLoading: t = !1,
|
|
4764
4793
|
label: n = "Refresh"
|
|
@@ -4792,115 +4821,115 @@ function ml({
|
|
|
4792
4821
|
}
|
|
4793
4822
|
);
|
|
4794
4823
|
}
|
|
4795
|
-
var
|
|
4796
|
-
function
|
|
4824
|
+
var kt = { exports: {} }, Gc = kt.exports, br;
|
|
4825
|
+
function Xc() {
|
|
4797
4826
|
return br || (br = 1, (function(e, t) {
|
|
4798
4827
|
(function(n, r) {
|
|
4799
4828
|
e.exports = r();
|
|
4800
|
-
})(
|
|
4801
|
-
var n = 1e3, r = 6e4, o = 36e5, s = "millisecond", a = "second", c = "minute",
|
|
4802
|
-
var D = ["th", "st", "nd", "rd"],
|
|
4803
|
-
return "[" + M + (D[(
|
|
4804
|
-
} },
|
|
4829
|
+
})(Gc, (function() {
|
|
4830
|
+
var n = 1e3, r = 6e4, o = 36e5, s = "millisecond", a = "second", c = "minute", l = "hour", u = "day", f = "week", d = "month", m = "quarter", p = "year", v = "date", h = "Invalid Date", b = /^(\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, R = { 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(M) {
|
|
4831
|
+
var D = ["th", "st", "nd", "rd"], y = M % 100;
|
|
4832
|
+
return "[" + M + (D[(y - 20) % 10] || D[y] || D[0]) + "]";
|
|
4833
|
+
} }, E = function(M, D, y) {
|
|
4805
4834
|
var j = String(M);
|
|
4806
|
-
return !j || j.length >= D ? M : "" + Array(D + 1 - j.length).join(
|
|
4807
|
-
},
|
|
4808
|
-
var D = -M.utcOffset(),
|
|
4809
|
-
return (D <= 0 ? "+" : "-") +
|
|
4810
|
-
}, m: function M(D,
|
|
4811
|
-
if (D.date() <
|
|
4812
|
-
var j = 12 * (
|
|
4813
|
-
return +(-(j + (
|
|
4835
|
+
return !j || j.length >= D ? M : "" + Array(D + 1 - j.length).join(y) + M;
|
|
4836
|
+
}, _ = { s: E, z: function(M) {
|
|
4837
|
+
var D = -M.utcOffset(), y = Math.abs(D), j = Math.floor(y / 60), C = y % 60;
|
|
4838
|
+
return (D <= 0 ? "+" : "-") + E(j, 2, "0") + ":" + E(C, 2, "0");
|
|
4839
|
+
}, m: function M(D, y) {
|
|
4840
|
+
if (D.date() < y.date()) return -M(y, D);
|
|
4841
|
+
var j = 12 * (y.year() - D.year()) + (y.month() - D.month()), C = D.clone().add(j, d), I = y - C < 0, L = D.clone().add(j + (I ? -1 : 1), d);
|
|
4842
|
+
return +(-(j + (y - C) / (I ? C - L : L - C)) || 0);
|
|
4814
4843
|
}, a: function(M) {
|
|
4815
4844
|
return M < 0 ? Math.ceil(M) || 0 : Math.floor(M);
|
|
4816
4845
|
}, p: function(M) {
|
|
4817
|
-
return { M: d, y:
|
|
4846
|
+
return { M: d, y: p, w: f, d: u, D: v, h: l, m: c, s: a, ms: s, Q: m }[M] || String(M || "").toLowerCase().replace(/s$/, "");
|
|
4818
4847
|
}, u: function(M) {
|
|
4819
4848
|
return M === void 0;
|
|
4820
|
-
} }, O = "en",
|
|
4821
|
-
|
|
4849
|
+
} }, O = "en", T = {};
|
|
4850
|
+
T[O] = R;
|
|
4822
4851
|
var $ = "$isDayjsObject", N = function(M) {
|
|
4823
4852
|
return M instanceof Q || !(!M || !M[$]);
|
|
4824
|
-
}, W = function M(D,
|
|
4853
|
+
}, W = function M(D, y, j) {
|
|
4825
4854
|
var C;
|
|
4826
4855
|
if (!D) return O;
|
|
4827
4856
|
if (typeof D == "string") {
|
|
4828
|
-
var
|
|
4829
|
-
|
|
4857
|
+
var I = D.toLowerCase();
|
|
4858
|
+
T[I] && (C = I), y && (T[I] = y, C = I);
|
|
4830
4859
|
var L = D.split("-");
|
|
4831
4860
|
if (!C && L.length > 1) return M(L[0]);
|
|
4832
4861
|
} else {
|
|
4833
|
-
var
|
|
4834
|
-
|
|
4862
|
+
var g = D.name;
|
|
4863
|
+
T[g] = D, C = g;
|
|
4835
4864
|
}
|
|
4836
4865
|
return !j && C && (O = C), C || !j && O;
|
|
4837
4866
|
}, Y = function(M, D) {
|
|
4838
4867
|
if (N(M)) return M.clone();
|
|
4839
|
-
var
|
|
4840
|
-
return
|
|
4841
|
-
},
|
|
4842
|
-
|
|
4868
|
+
var y = typeof D == "object" ? D : {};
|
|
4869
|
+
return y.date = M, y.args = arguments, new Q(y);
|
|
4870
|
+
}, k = _;
|
|
4871
|
+
k.l = W, k.i = N, k.w = function(M, D) {
|
|
4843
4872
|
return Y(M, { locale: D.$L, utc: D.$u, x: D.$x, $offset: D.$offset });
|
|
4844
4873
|
};
|
|
4845
4874
|
var Q = (function() {
|
|
4846
|
-
function M(
|
|
4847
|
-
this.$L = W(
|
|
4875
|
+
function M(y) {
|
|
4876
|
+
this.$L = W(y.locale, null, !0), this.parse(y), this.$x = this.$x || y.x || {}, this[$] = !0;
|
|
4848
4877
|
}
|
|
4849
4878
|
var D = M.prototype;
|
|
4850
|
-
return D.parse = function(
|
|
4879
|
+
return D.parse = function(y) {
|
|
4851
4880
|
this.$d = (function(j) {
|
|
4852
|
-
var C = j.date,
|
|
4881
|
+
var C = j.date, I = j.utc;
|
|
4853
4882
|
if (C === null) return /* @__PURE__ */ new Date(NaN);
|
|
4854
|
-
if (
|
|
4883
|
+
if (k.u(C)) return /* @__PURE__ */ new Date();
|
|
4855
4884
|
if (C instanceof Date) return new Date(C);
|
|
4856
4885
|
if (typeof C == "string" && !/Z$/i.test(C)) {
|
|
4857
4886
|
var L = C.match(b);
|
|
4858
4887
|
if (L) {
|
|
4859
|
-
var
|
|
4860
|
-
return
|
|
4888
|
+
var g = L[2] - 1 || 0, S = (L[7] || "0").substring(0, 3);
|
|
4889
|
+
return I ? new Date(Date.UTC(L[1], g, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0, S)) : new Date(L[1], g, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0, S);
|
|
4861
4890
|
}
|
|
4862
4891
|
}
|
|
4863
4892
|
return new Date(C);
|
|
4864
|
-
})(
|
|
4893
|
+
})(y), this.init();
|
|
4865
4894
|
}, D.init = function() {
|
|
4866
|
-
var
|
|
4867
|
-
this.$y =
|
|
4895
|
+
var y = this.$d;
|
|
4896
|
+
this.$y = y.getFullYear(), this.$M = y.getMonth(), this.$D = y.getDate(), this.$W = y.getDay(), this.$H = y.getHours(), this.$m = y.getMinutes(), this.$s = y.getSeconds(), this.$ms = y.getMilliseconds();
|
|
4868
4897
|
}, D.$utils = function() {
|
|
4869
|
-
return
|
|
4898
|
+
return k;
|
|
4870
4899
|
}, D.isValid = function() {
|
|
4871
|
-
return this.$d.toString() !==
|
|
4872
|
-
}, D.isSame = function(
|
|
4873
|
-
var C = Y(
|
|
4900
|
+
return this.$d.toString() !== h;
|
|
4901
|
+
}, D.isSame = function(y, j) {
|
|
4902
|
+
var C = Y(y);
|
|
4874
4903
|
return this.startOf(j) <= C && C <= this.endOf(j);
|
|
4875
|
-
}, D.isAfter = function(
|
|
4876
|
-
return Y(
|
|
4877
|
-
}, D.isBefore = function(
|
|
4878
|
-
return this.endOf(j) < Y(
|
|
4879
|
-
}, D.$g = function(
|
|
4880
|
-
return
|
|
4904
|
+
}, D.isAfter = function(y, j) {
|
|
4905
|
+
return Y(y) < this.startOf(j);
|
|
4906
|
+
}, D.isBefore = function(y, j) {
|
|
4907
|
+
return this.endOf(j) < Y(y);
|
|
4908
|
+
}, D.$g = function(y, j, C) {
|
|
4909
|
+
return k.u(y) ? this[j] : this.set(C, y);
|
|
4881
4910
|
}, D.unix = function() {
|
|
4882
4911
|
return Math.floor(this.valueOf() / 1e3);
|
|
4883
4912
|
}, D.valueOf = function() {
|
|
4884
4913
|
return this.$d.getTime();
|
|
4885
|
-
}, D.startOf = function(
|
|
4886
|
-
var C = this,
|
|
4887
|
-
var de =
|
|
4888
|
-
return
|
|
4914
|
+
}, D.startOf = function(y, j) {
|
|
4915
|
+
var C = this, I = !!k.u(j) || j, L = k.p(y), g = function(Z, z) {
|
|
4916
|
+
var de = k.w(C.$u ? Date.UTC(C.$y, z, Z) : new Date(C.$y, z, Z), C);
|
|
4917
|
+
return I ? de : de.endOf(u);
|
|
4889
4918
|
}, S = function(Z, z) {
|
|
4890
|
-
return
|
|
4919
|
+
return k.w(C.toDate()[Z].apply(C.toDate("s"), (I ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(z)), C);
|
|
4891
4920
|
}, A = this.$W, P = this.$M, G = this.$D, X = "set" + (this.$u ? "UTC" : "");
|
|
4892
4921
|
switch (L) {
|
|
4893
|
-
case
|
|
4894
|
-
return
|
|
4922
|
+
case p:
|
|
4923
|
+
return I ? g(1, 0) : g(31, 11);
|
|
4895
4924
|
case d:
|
|
4896
|
-
return
|
|
4897
|
-
case
|
|
4925
|
+
return I ? g(1, P) : g(0, P + 1);
|
|
4926
|
+
case f:
|
|
4898
4927
|
var F = this.$locale().weekStart || 0, J = (A < F ? A + 7 : A) - F;
|
|
4899
|
-
return
|
|
4900
|
-
case
|
|
4928
|
+
return g(I ? G - J : G + (6 - J), P);
|
|
4929
|
+
case u:
|
|
4901
4930
|
case v:
|
|
4902
4931
|
return S(X + "Hours", 0);
|
|
4903
|
-
case
|
|
4932
|
+
case l:
|
|
4904
4933
|
return S(X + "Minutes", 1);
|
|
4905
4934
|
case c:
|
|
4906
4935
|
return S(X + "Seconds", 2);
|
|
@@ -4909,56 +4938,56 @@ function Gc() {
|
|
|
4909
4938
|
default:
|
|
4910
4939
|
return this.clone();
|
|
4911
4940
|
}
|
|
4912
|
-
}, D.endOf = function(
|
|
4913
|
-
return this.startOf(
|
|
4914
|
-
}, D.$set = function(
|
|
4915
|
-
var C,
|
|
4916
|
-
if (
|
|
4941
|
+
}, D.endOf = function(y) {
|
|
4942
|
+
return this.startOf(y, !1);
|
|
4943
|
+
}, D.$set = function(y, j) {
|
|
4944
|
+
var C, I = k.p(y), L = "set" + (this.$u ? "UTC" : ""), g = (C = {}, C[u] = L + "Date", C[v] = L + "Date", C[d] = L + "Month", C[p] = L + "FullYear", C[l] = L + "Hours", C[c] = L + "Minutes", C[a] = L + "Seconds", C[s] = L + "Milliseconds", C)[I], S = I === u ? this.$D + (j - this.$W) : j;
|
|
4945
|
+
if (I === d || I === p) {
|
|
4917
4946
|
var A = this.clone().set(v, 1);
|
|
4918
|
-
A.$d[
|
|
4919
|
-
} else
|
|
4947
|
+
A.$d[g](S), A.init(), this.$d = A.set(v, Math.min(this.$D, A.daysInMonth())).$d;
|
|
4948
|
+
} else g && this.$d[g](S);
|
|
4920
4949
|
return this.init(), this;
|
|
4921
|
-
}, D.set = function(
|
|
4922
|
-
return this.clone().$set(
|
|
4923
|
-
}, D.get = function(
|
|
4924
|
-
return this[
|
|
4925
|
-
}, D.add = function(
|
|
4926
|
-
var C,
|
|
4927
|
-
|
|
4928
|
-
var L =
|
|
4929
|
-
var G = Y(
|
|
4930
|
-
return
|
|
4950
|
+
}, D.set = function(y, j) {
|
|
4951
|
+
return this.clone().$set(y, j);
|
|
4952
|
+
}, D.get = function(y) {
|
|
4953
|
+
return this[k.p(y)]();
|
|
4954
|
+
}, D.add = function(y, j) {
|
|
4955
|
+
var C, I = this;
|
|
4956
|
+
y = Number(y);
|
|
4957
|
+
var L = k.p(j), g = function(P) {
|
|
4958
|
+
var G = Y(I);
|
|
4959
|
+
return k.w(G.date(G.date() + Math.round(P * y)), I);
|
|
4931
4960
|
};
|
|
4932
|
-
if (L === d) return this.set(d, this.$M +
|
|
4933
|
-
if (L ===
|
|
4934
|
-
if (L ===
|
|
4935
|
-
if (L ===
|
|
4936
|
-
var S = (C = {}, C[c] = r, C[
|
|
4937
|
-
return
|
|
4938
|
-
}, D.subtract = function(
|
|
4939
|
-
return this.add(-1 *
|
|
4940
|
-
}, D.format = function(
|
|
4961
|
+
if (L === d) return this.set(d, this.$M + y);
|
|
4962
|
+
if (L === p) return this.set(p, this.$y + y);
|
|
4963
|
+
if (L === u) return g(1);
|
|
4964
|
+
if (L === f) return g(7);
|
|
4965
|
+
var S = (C = {}, C[c] = r, C[l] = o, C[a] = n, C)[L] || 1, A = this.$d.getTime() + y * S;
|
|
4966
|
+
return k.w(A, this);
|
|
4967
|
+
}, D.subtract = function(y, j) {
|
|
4968
|
+
return this.add(-1 * y, j);
|
|
4969
|
+
}, D.format = function(y) {
|
|
4941
4970
|
var j = this, C = this.$locale();
|
|
4942
|
-
if (!this.isValid()) return C.invalidDate ||
|
|
4943
|
-
var
|
|
4944
|
-
return z && (z[de] || z(j,
|
|
4971
|
+
if (!this.isValid()) return C.invalidDate || h;
|
|
4972
|
+
var I = y || "YYYY-MM-DDTHH:mm:ssZ", L = k.z(this), g = this.$H, S = this.$m, A = this.$M, P = C.weekdays, G = C.months, X = C.meridiem, F = function(z, de, ae, ye) {
|
|
4973
|
+
return z && (z[de] || z(j, I)) || ae[de].slice(0, ye);
|
|
4945
4974
|
}, J = function(z) {
|
|
4946
|
-
return
|
|
4975
|
+
return k.s(g % 12 || 12, z, "0");
|
|
4947
4976
|
}, Z = X || function(z, de, ae) {
|
|
4948
4977
|
var ye = z < 12 ? "AM" : "PM";
|
|
4949
4978
|
return ae ? ye.toLowerCase() : ye;
|
|
4950
4979
|
};
|
|
4951
|
-
return
|
|
4980
|
+
return I.replace(w, (function(z, de) {
|
|
4952
4981
|
return de || (function(ae) {
|
|
4953
4982
|
switch (ae) {
|
|
4954
4983
|
case "YY":
|
|
4955
4984
|
return String(j.$y).slice(-2);
|
|
4956
4985
|
case "YYYY":
|
|
4957
|
-
return
|
|
4986
|
+
return k.s(j.$y, 4, "0");
|
|
4958
4987
|
case "M":
|
|
4959
4988
|
return A + 1;
|
|
4960
4989
|
case "MM":
|
|
4961
|
-
return
|
|
4990
|
+
return k.s(A + 1, 2, "0");
|
|
4962
4991
|
case "MMM":
|
|
4963
4992
|
return F(C.monthsShort, A, G, 3);
|
|
4964
4993
|
case "MMMM":
|
|
@@ -4966,7 +4995,7 @@ function Gc() {
|
|
|
4966
4995
|
case "D":
|
|
4967
4996
|
return j.$D;
|
|
4968
4997
|
case "DD":
|
|
4969
|
-
return
|
|
4998
|
+
return k.s(j.$D, 2, "0");
|
|
4970
4999
|
case "d":
|
|
4971
5000
|
return String(j.$W);
|
|
4972
5001
|
case "dd":
|
|
@@ -4976,27 +5005,27 @@ function Gc() {
|
|
|
4976
5005
|
case "dddd":
|
|
4977
5006
|
return P[j.$W];
|
|
4978
5007
|
case "H":
|
|
4979
|
-
return String(
|
|
5008
|
+
return String(g);
|
|
4980
5009
|
case "HH":
|
|
4981
|
-
return
|
|
5010
|
+
return k.s(g, 2, "0");
|
|
4982
5011
|
case "h":
|
|
4983
5012
|
return J(1);
|
|
4984
5013
|
case "hh":
|
|
4985
5014
|
return J(2);
|
|
4986
5015
|
case "a":
|
|
4987
|
-
return Z(
|
|
5016
|
+
return Z(g, S, !0);
|
|
4988
5017
|
case "A":
|
|
4989
|
-
return Z(
|
|
5018
|
+
return Z(g, S, !1);
|
|
4990
5019
|
case "m":
|
|
4991
5020
|
return String(S);
|
|
4992
5021
|
case "mm":
|
|
4993
|
-
return
|
|
5022
|
+
return k.s(S, 2, "0");
|
|
4994
5023
|
case "s":
|
|
4995
5024
|
return String(j.$s);
|
|
4996
5025
|
case "ss":
|
|
4997
|
-
return
|
|
5026
|
+
return k.s(j.$s, 2, "0");
|
|
4998
5027
|
case "SSS":
|
|
4999
|
-
return
|
|
5028
|
+
return k.s(j.$ms, 3, "0");
|
|
5000
5029
|
case "Z":
|
|
5001
5030
|
return L;
|
|
5002
5031
|
}
|
|
@@ -5005,49 +5034,49 @@ function Gc() {
|
|
|
5005
5034
|
}));
|
|
5006
5035
|
}, D.utcOffset = function() {
|
|
5007
5036
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
5008
|
-
}, D.diff = function(
|
|
5009
|
-
var
|
|
5010
|
-
return
|
|
5037
|
+
}, D.diff = function(y, j, C) {
|
|
5038
|
+
var I, L = this, g = k.p(j), S = Y(y), A = (S.utcOffset() - this.utcOffset()) * r, P = this - S, G = function() {
|
|
5039
|
+
return k.m(L, S);
|
|
5011
5040
|
};
|
|
5012
|
-
switch (
|
|
5013
|
-
case
|
|
5014
|
-
|
|
5041
|
+
switch (g) {
|
|
5042
|
+
case p:
|
|
5043
|
+
I = G() / 12;
|
|
5015
5044
|
break;
|
|
5016
5045
|
case d:
|
|
5017
|
-
|
|
5046
|
+
I = G();
|
|
5018
5047
|
break;
|
|
5019
5048
|
case m:
|
|
5020
|
-
|
|
5021
|
-
break;
|
|
5022
|
-
case h:
|
|
5023
|
-
k = (P - A) / 6048e5;
|
|
5049
|
+
I = G() / 3;
|
|
5024
5050
|
break;
|
|
5025
|
-
case
|
|
5026
|
-
|
|
5051
|
+
case f:
|
|
5052
|
+
I = (P - A) / 6048e5;
|
|
5027
5053
|
break;
|
|
5028
5054
|
case u:
|
|
5029
|
-
|
|
5055
|
+
I = (P - A) / 864e5;
|
|
5056
|
+
break;
|
|
5057
|
+
case l:
|
|
5058
|
+
I = P / o;
|
|
5030
5059
|
break;
|
|
5031
5060
|
case c:
|
|
5032
|
-
|
|
5061
|
+
I = P / r;
|
|
5033
5062
|
break;
|
|
5034
5063
|
case a:
|
|
5035
|
-
|
|
5064
|
+
I = P / n;
|
|
5036
5065
|
break;
|
|
5037
5066
|
default:
|
|
5038
|
-
|
|
5067
|
+
I = P;
|
|
5039
5068
|
}
|
|
5040
|
-
return C ?
|
|
5069
|
+
return C ? I : k.a(I);
|
|
5041
5070
|
}, D.daysInMonth = function() {
|
|
5042
5071
|
return this.endOf(d).$D;
|
|
5043
5072
|
}, D.$locale = function() {
|
|
5044
|
-
return
|
|
5045
|
-
}, D.locale = function(
|
|
5046
|
-
if (!
|
|
5047
|
-
var C = this.clone(),
|
|
5048
|
-
return
|
|
5073
|
+
return T[this.$L];
|
|
5074
|
+
}, D.locale = function(y, j) {
|
|
5075
|
+
if (!y) return this.$L;
|
|
5076
|
+
var C = this.clone(), I = W(y, j, !0);
|
|
5077
|
+
return I && (C.$L = I), C;
|
|
5049
5078
|
}, D.clone = function() {
|
|
5050
|
-
return
|
|
5079
|
+
return k.w(this.$d, this);
|
|
5051
5080
|
}, D.toDate = function() {
|
|
5052
5081
|
return new Date(this.valueOf());
|
|
5053
5082
|
}, D.toJSON = function() {
|
|
@@ -5058,7 +5087,7 @@ function Gc() {
|
|
|
5058
5087
|
return this.$d.toUTCString();
|
|
5059
5088
|
}, M;
|
|
5060
5089
|
})(), se = Q.prototype;
|
|
5061
|
-
return Y.prototype = se, [["$ms", s], ["$s", a], ["$m", c], ["$H",
|
|
5090
|
+
return Y.prototype = se, [["$ms", s], ["$s", a], ["$m", c], ["$H", l], ["$W", u], ["$M", d], ["$y", p], ["$D", v]].forEach((function(M) {
|
|
5062
5091
|
se[M[1]] = function(D) {
|
|
5063
5092
|
return this.$g(D, M[0], M[1]);
|
|
5064
5093
|
};
|
|
@@ -5066,117 +5095,117 @@ function Gc() {
|
|
|
5066
5095
|
return M.$i || (M(D, Q, Y), M.$i = !0), Y;
|
|
5067
5096
|
}, Y.locale = W, Y.isDayjs = N, Y.unix = function(M) {
|
|
5068
5097
|
return Y(1e3 * M);
|
|
5069
|
-
}, Y.en =
|
|
5098
|
+
}, Y.en = T[O], Y.Ls = T, Y.p = {}, Y;
|
|
5070
5099
|
}));
|
|
5071
|
-
})(
|
|
5100
|
+
})(kt)), kt.exports;
|
|
5072
5101
|
}
|
|
5073
|
-
var
|
|
5074
|
-
const Jt = /* @__PURE__ */ Ut(
|
|
5075
|
-
var
|
|
5076
|
-
function
|
|
5102
|
+
var qc = Xc();
|
|
5103
|
+
const Jt = /* @__PURE__ */ Ut(qc);
|
|
5104
|
+
var It = { exports: {} }, Kc = It.exports, xr;
|
|
5105
|
+
function Jc() {
|
|
5077
5106
|
return xr || (xr = 1, (function(e, t) {
|
|
5078
5107
|
(function(n, r) {
|
|
5079
5108
|
e.exports = r();
|
|
5080
|
-
})(
|
|
5109
|
+
})(Kc, (function() {
|
|
5081
5110
|
return function(n, r, o) {
|
|
5082
5111
|
n = n || {};
|
|
5083
5112
|
var s = 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" };
|
|
5084
|
-
function c(
|
|
5085
|
-
return s.fromToBase(
|
|
5113
|
+
function c(u, f, d, m) {
|
|
5114
|
+
return s.fromToBase(u, f, d, m);
|
|
5086
5115
|
}
|
|
5087
|
-
o.en.relativeTime = a, s.fromToBase = function(
|
|
5088
|
-
for (var v,
|
|
5089
|
-
var O =
|
|
5090
|
-
O.d && (v = m ? o(
|
|
5091
|
-
var
|
|
5092
|
-
if (b = v > 0,
|
|
5093
|
-
|
|
5094
|
-
var $ =
|
|
5095
|
-
|
|
5116
|
+
o.en.relativeTime = a, s.fromToBase = function(u, f, d, m, p) {
|
|
5117
|
+
for (var v, h, b, w = d.$locale().relativeTime || a, R = 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" }], E = R.length, _ = 0; _ < E; _ += 1) {
|
|
5118
|
+
var O = R[_];
|
|
5119
|
+
O.d && (v = m ? o(u).diff(d, O.d, !0) : d.diff(u, O.d, !0));
|
|
5120
|
+
var T = (n.rounding || Math.round)(Math.abs(v));
|
|
5121
|
+
if (b = v > 0, T <= O.r || !O.r) {
|
|
5122
|
+
T <= 1 && _ > 0 && (O = R[_ - 1]);
|
|
5123
|
+
var $ = w[O.l];
|
|
5124
|
+
p && (T = p("" + T)), h = typeof $ == "string" ? $.replace("%d", T) : $(T, f, O.l, b);
|
|
5096
5125
|
break;
|
|
5097
5126
|
}
|
|
5098
5127
|
}
|
|
5099
|
-
if (
|
|
5100
|
-
var N = b ?
|
|
5101
|
-
return typeof N == "function" ? N(
|
|
5102
|
-
}, s.to = function(
|
|
5103
|
-
return c(
|
|
5104
|
-
}, s.from = function(
|
|
5105
|
-
return c(
|
|
5128
|
+
if (f) return h;
|
|
5129
|
+
var N = b ? w.future : w.past;
|
|
5130
|
+
return typeof N == "function" ? N(h) : N.replace("%s", h);
|
|
5131
|
+
}, s.to = function(u, f) {
|
|
5132
|
+
return c(u, f, this, !0);
|
|
5133
|
+
}, s.from = function(u, f) {
|
|
5134
|
+
return c(u, f, this);
|
|
5106
5135
|
};
|
|
5107
|
-
var
|
|
5108
|
-
return
|
|
5136
|
+
var l = function(u) {
|
|
5137
|
+
return u.$u ? o.utc() : o();
|
|
5109
5138
|
};
|
|
5110
|
-
s.toNow = function(
|
|
5111
|
-
return this.to(
|
|
5112
|
-
}, s.fromNow = function(
|
|
5113
|
-
return this.from(
|
|
5139
|
+
s.toNow = function(u) {
|
|
5140
|
+
return this.to(l(this), u);
|
|
5141
|
+
}, s.fromNow = function(u) {
|
|
5142
|
+
return this.from(l(this), u);
|
|
5114
5143
|
};
|
|
5115
5144
|
};
|
|
5116
5145
|
}));
|
|
5117
|
-
})(
|
|
5146
|
+
})(It)), It.exports;
|
|
5118
5147
|
}
|
|
5119
|
-
var
|
|
5120
|
-
const
|
|
5121
|
-
var At = { exports: {} },
|
|
5122
|
-
function
|
|
5148
|
+
var Zc = Jc();
|
|
5149
|
+
const Qc = /* @__PURE__ */ Ut(Zc);
|
|
5150
|
+
var At = { exports: {} }, el = At.exports, yr;
|
|
5151
|
+
function tl() {
|
|
5123
5152
|
return yr || (yr = 1, (function(e, t) {
|
|
5124
5153
|
(function(n, r) {
|
|
5125
5154
|
e.exports = r();
|
|
5126
|
-
})(
|
|
5155
|
+
})(el, (function() {
|
|
5127
5156
|
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" };
|
|
5128
5157
|
return function(r, o, s) {
|
|
5129
5158
|
var a = o.prototype, c = a.format;
|
|
5130
|
-
s.en.formats = n, a.format = function(
|
|
5131
|
-
|
|
5132
|
-
var
|
|
5133
|
-
return d.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(
|
|
5134
|
-
var b =
|
|
5135
|
-
return v || m[
|
|
5136
|
-
return
|
|
5159
|
+
s.en.formats = n, a.format = function(l) {
|
|
5160
|
+
l === void 0 && (l = "YYYY-MM-DDTHH:mm:ssZ");
|
|
5161
|
+
var u = this.$locale().formats, f = (function(d, m) {
|
|
5162
|
+
return d.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(p, v, h) {
|
|
5163
|
+
var b = h && h.toUpperCase();
|
|
5164
|
+
return v || m[h] || n[h] || m[b].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(w, R, E) {
|
|
5165
|
+
return R || E.slice(1);
|
|
5137
5166
|
}));
|
|
5138
5167
|
}));
|
|
5139
|
-
})(
|
|
5140
|
-
return c.call(this,
|
|
5168
|
+
})(l, u === void 0 ? {} : u);
|
|
5169
|
+
return c.call(this, f);
|
|
5141
5170
|
};
|
|
5142
5171
|
};
|
|
5143
5172
|
}));
|
|
5144
5173
|
})(At)), At.exports;
|
|
5145
5174
|
}
|
|
5146
|
-
var
|
|
5147
|
-
const
|
|
5148
|
-
var Lt = { exports: {} },
|
|
5149
|
-
function
|
|
5175
|
+
var nl = tl();
|
|
5176
|
+
const rl = /* @__PURE__ */ Ut(nl);
|
|
5177
|
+
var Lt = { exports: {} }, ol = Lt.exports, wr;
|
|
5178
|
+
function sl() {
|
|
5150
5179
|
return wr || (wr = 1, (function(e, t) {
|
|
5151
5180
|
(function(n, r) {
|
|
5152
5181
|
e.exports = r();
|
|
5153
|
-
})(
|
|
5182
|
+
})(ol, (function() {
|
|
5154
5183
|
return function(n, r) {
|
|
5155
5184
|
var o = r.prototype, s = o.format;
|
|
5156
5185
|
o.format = function(a) {
|
|
5157
|
-
var c = this,
|
|
5186
|
+
var c = this, l = this.$locale();
|
|
5158
5187
|
if (!this.isValid()) return s.bind(this)(a);
|
|
5159
|
-
var
|
|
5188
|
+
var u = this.$utils(), f = (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(d) {
|
|
5160
5189
|
switch (d) {
|
|
5161
5190
|
case "Q":
|
|
5162
5191
|
return Math.ceil((c.$M + 1) / 3);
|
|
5163
5192
|
case "Do":
|
|
5164
|
-
return
|
|
5193
|
+
return l.ordinal(c.$D);
|
|
5165
5194
|
case "gggg":
|
|
5166
5195
|
return c.weekYear();
|
|
5167
5196
|
case "GGGG":
|
|
5168
5197
|
return c.isoWeekYear();
|
|
5169
5198
|
case "wo":
|
|
5170
|
-
return
|
|
5199
|
+
return l.ordinal(c.week(), "W");
|
|
5171
5200
|
case "w":
|
|
5172
5201
|
case "ww":
|
|
5173
|
-
return
|
|
5202
|
+
return u.s(c.week(), d === "w" ? 1 : 2, "0");
|
|
5174
5203
|
case "W":
|
|
5175
5204
|
case "WW":
|
|
5176
|
-
return
|
|
5205
|
+
return u.s(c.isoWeek(), d === "W" ? 1 : 2, "0");
|
|
5177
5206
|
case "k":
|
|
5178
5207
|
case "kk":
|
|
5179
|
-
return
|
|
5208
|
+
return u.s(String(c.$H === 0 ? 24 : c.$H), d === "k" ? 1 : 2, "0");
|
|
5180
5209
|
case "X":
|
|
5181
5210
|
return Math.floor(c.$d.getTime() / 1e3);
|
|
5182
5211
|
case "x":
|
|
@@ -5189,18 +5218,18 @@ function ol() {
|
|
|
5189
5218
|
return d;
|
|
5190
5219
|
}
|
|
5191
5220
|
}));
|
|
5192
|
-
return s.bind(this)(
|
|
5221
|
+
return s.bind(this)(f);
|
|
5193
5222
|
};
|
|
5194
5223
|
};
|
|
5195
5224
|
}));
|
|
5196
5225
|
})(Lt)), Lt.exports;
|
|
5197
5226
|
}
|
|
5198
|
-
var
|
|
5199
|
-
const
|
|
5200
|
-
Jt.extend(
|
|
5201
|
-
Jt.extend(
|
|
5202
|
-
Jt.extend(
|
|
5203
|
-
const
|
|
5227
|
+
var il = sl();
|
|
5228
|
+
const al = /* @__PURE__ */ Ut(il);
|
|
5229
|
+
Jt.extend(Qc);
|
|
5230
|
+
Jt.extend(rl);
|
|
5231
|
+
Jt.extend(al);
|
|
5232
|
+
const cl = {
|
|
5204
5233
|
date: "DD MMM YYYY",
|
|
5205
5234
|
time: "hh:mm A",
|
|
5206
5235
|
dateTime: "DD MMM YYYY, hh:mm A",
|
|
@@ -5216,9 +5245,9 @@ function Sr({
|
|
|
5216
5245
|
}) {
|
|
5217
5246
|
if (!e) return r;
|
|
5218
5247
|
const o = Jt(e);
|
|
5219
|
-
return o.isValid() ? t === "relative" ? o.fromNow() : o.format(n ??
|
|
5248
|
+
return o.isValid() ? t === "relative" ? o.fromNow() : o.format(n ?? cl[t]) : r;
|
|
5220
5249
|
}
|
|
5221
|
-
function
|
|
5250
|
+
function xl({
|
|
5222
5251
|
value: e,
|
|
5223
5252
|
dateVariant: t = "date",
|
|
5224
5253
|
timeVariant: n = "time",
|
|
@@ -5240,26 +5269,27 @@ function bl({
|
|
|
5240
5269
|
] });
|
|
5241
5270
|
}
|
|
5242
5271
|
export {
|
|
5243
|
-
|
|
5244
|
-
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
|
|
5272
|
+
fl as DataTable,
|
|
5273
|
+
hl as Filters,
|
|
5274
|
+
vl as MDSButton,
|
|
5275
|
+
za as MDSCheckbox,
|
|
5276
|
+
ml as MDSConfirmDeleteDialog,
|
|
5248
5277
|
mr as MDSInput,
|
|
5249
|
-
|
|
5250
|
-
|
|
5251
|
-
|
|
5252
|
-
|
|
5253
|
-
|
|
5254
|
-
|
|
5278
|
+
bl as MDSRefreshButton,
|
|
5279
|
+
fc as MDSSelectBox,
|
|
5280
|
+
bl as RefreshButton,
|
|
5281
|
+
xl as StackedDateTime,
|
|
5282
|
+
pc as addPreset,
|
|
5283
|
+
gc as deletePreset,
|
|
5255
5284
|
Sr as formatDateTime,
|
|
5256
5285
|
$n as getPresets,
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5286
|
+
pl as loadOrder,
|
|
5287
|
+
Ht as presetStore,
|
|
5288
|
+
gl as saveOrder,
|
|
5260
5289
|
ro as savePresets,
|
|
5290
|
+
ia as setActionsConfig,
|
|
5261
5291
|
oa as setData,
|
|
5262
5292
|
sa as setTableId,
|
|
5263
|
-
|
|
5264
|
-
|
|
5293
|
+
me as tableStore,
|
|
5294
|
+
x as withChildren
|
|
5265
5295
|
};
|