@unizap/uniui 1.0.57 → 1.0.58
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/uniui.js +785 -787
- package/dist/uniui.umd.cjs +42 -42
- package/package.json +91 -94
package/dist/uniui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Gt from "react";
|
|
2
|
-
import ke, { useRef as me, useState as ee, useEffect as pe, useMemo as Ae, useReducer as tr, useCallback as
|
|
2
|
+
import ke, { useRef as me, useState as ee, useEffect as pe, useMemo as Ae, useReducer as tr, useCallback as se, forwardRef as Oe, useImperativeHandle as _n, Fragment as nr, memo as rr, useLayoutEffect as or } from "react";
|
|
3
3
|
import { createPortal as Ge } from "react-dom";
|
|
4
4
|
function Mn(e) {
|
|
5
5
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -52,41 +52,41 @@ function ar() {
|
|
|
52
52
|
function e(x) {
|
|
53
53
|
if (x == null) return null;
|
|
54
54
|
if (typeof x == "function")
|
|
55
|
-
return x.$$typeof ===
|
|
55
|
+
return x.$$typeof === J ? null : x.displayName || x.name || null;
|
|
56
56
|
if (typeof x == "string") return x;
|
|
57
57
|
switch (x) {
|
|
58
|
-
case
|
|
58
|
+
case h:
|
|
59
59
|
return "Fragment";
|
|
60
|
-
case
|
|
60
|
+
case S:
|
|
61
61
|
return "Profiler";
|
|
62
|
-
case
|
|
62
|
+
case w:
|
|
63
63
|
return "StrictMode";
|
|
64
|
-
case b:
|
|
65
|
-
return "Suspense";
|
|
66
64
|
case A:
|
|
65
|
+
return "Suspense";
|
|
66
|
+
case k:
|
|
67
67
|
return "SuspenseList";
|
|
68
|
-
case
|
|
68
|
+
case Z:
|
|
69
69
|
return "Activity";
|
|
70
70
|
}
|
|
71
71
|
if (typeof x == "object")
|
|
72
72
|
switch (typeof x.tag == "number" && console.error(
|
|
73
73
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
74
74
|
), x.$$typeof) {
|
|
75
|
-
case
|
|
75
|
+
case g:
|
|
76
76
|
return "Portal";
|
|
77
|
+
case $:
|
|
78
|
+
return x.displayName || "Context";
|
|
77
79
|
case y:
|
|
78
|
-
return (x.displayName || "Context") + ".Provider";
|
|
79
|
-
case S:
|
|
80
80
|
return (x._context.displayName || "Context") + ".Consumer";
|
|
81
|
-
case
|
|
82
|
-
var
|
|
83
|
-
return x = x.displayName, x || (x =
|
|
84
|
-
case
|
|
85
|
-
return
|
|
86
|
-
case
|
|
87
|
-
|
|
81
|
+
case b:
|
|
82
|
+
var R = x.render;
|
|
83
|
+
return x = x.displayName, x || (x = R.displayName || R.name || "", x = x !== "" ? "ForwardRef(" + x + ")" : "ForwardRef"), x;
|
|
84
|
+
case T:
|
|
85
|
+
return R = x.displayName || null, R !== null ? R : e(x.type) || "Memo";
|
|
86
|
+
case K:
|
|
87
|
+
R = x._payload, x = x._init;
|
|
88
88
|
try {
|
|
89
|
-
return e(x(
|
|
89
|
+
return e(x(R));
|
|
90
90
|
} catch {
|
|
91
91
|
}
|
|
92
92
|
}
|
|
@@ -98,71 +98,72 @@ function ar() {
|
|
|
98
98
|
function t(x) {
|
|
99
99
|
try {
|
|
100
100
|
n(x);
|
|
101
|
-
var
|
|
101
|
+
var R = !1;
|
|
102
102
|
} catch {
|
|
103
|
-
|
|
103
|
+
R = !0;
|
|
104
104
|
}
|
|
105
|
-
if (
|
|
106
|
-
|
|
107
|
-
var
|
|
108
|
-
return
|
|
109
|
-
|
|
105
|
+
if (R) {
|
|
106
|
+
R = console;
|
|
107
|
+
var _ = R.error, L = typeof Symbol == "function" && Symbol.toStringTag && x[Symbol.toStringTag] || x.constructor.name || "Object";
|
|
108
|
+
return _.call(
|
|
109
|
+
R,
|
|
110
110
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
111
|
-
|
|
111
|
+
L
|
|
112
112
|
), n(x);
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
function r(x) {
|
|
116
|
-
if (x ===
|
|
117
|
-
if (typeof x == "object" && x !== null && x.$$typeof ===
|
|
116
|
+
if (x === h) return "<>";
|
|
117
|
+
if (typeof x == "object" && x !== null && x.$$typeof === K)
|
|
118
118
|
return "<...>";
|
|
119
119
|
try {
|
|
120
|
-
var
|
|
121
|
-
return
|
|
120
|
+
var R = e(x);
|
|
121
|
+
return R ? "<" + R + ">" : "<...>";
|
|
122
122
|
} catch {
|
|
123
123
|
return "<...>";
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
function o() {
|
|
127
|
-
var x =
|
|
127
|
+
var x = de.A;
|
|
128
128
|
return x === null ? null : x.getOwner();
|
|
129
129
|
}
|
|
130
130
|
function i() {
|
|
131
131
|
return Error("react-stack-top-frame");
|
|
132
132
|
}
|
|
133
133
|
function l(x) {
|
|
134
|
-
if (
|
|
135
|
-
var
|
|
136
|
-
if (
|
|
134
|
+
if (z.call(x, "key")) {
|
|
135
|
+
var R = Object.getOwnPropertyDescriptor(x, "key").get;
|
|
136
|
+
if (R && R.isReactWarning) return !1;
|
|
137
137
|
}
|
|
138
138
|
return x.key !== void 0;
|
|
139
139
|
}
|
|
140
|
-
function s(x,
|
|
141
|
-
function
|
|
142
|
-
|
|
140
|
+
function s(x, R) {
|
|
141
|
+
function _() {
|
|
142
|
+
Q || (Q = !0, console.error(
|
|
143
143
|
"%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)",
|
|
144
|
-
|
|
144
|
+
R
|
|
145
145
|
));
|
|
146
146
|
}
|
|
147
|
-
|
|
148
|
-
get:
|
|
147
|
+
_.isReactWarning = !0, Object.defineProperty(x, "key", {
|
|
148
|
+
get: _,
|
|
149
149
|
configurable: !0
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
152
|
function c() {
|
|
153
153
|
var x = e(this.type);
|
|
154
|
-
return
|
|
154
|
+
return I[x] || (I[x] = !0, console.error(
|
|
155
155
|
"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."
|
|
156
156
|
)), x = this.props.ref, x !== void 0 ? x : null;
|
|
157
157
|
}
|
|
158
|
-
function d(x,
|
|
159
|
-
|
|
160
|
-
|
|
158
|
+
function d(x, R, _, L, B, M) {
|
|
159
|
+
var N = _.ref;
|
|
160
|
+
return x = {
|
|
161
|
+
$$typeof: v,
|
|
161
162
|
type: x,
|
|
162
|
-
key:
|
|
163
|
-
props:
|
|
164
|
-
_owner:
|
|
165
|
-
}, (
|
|
163
|
+
key: R,
|
|
164
|
+
props: _,
|
|
165
|
+
_owner: L
|
|
166
|
+
}, (N !== void 0 ? N : null) !== null ? Object.defineProperty(x, "ref", {
|
|
166
167
|
enumerable: !1,
|
|
167
168
|
get: c
|
|
168
169
|
}) : Object.defineProperty(x, "ref", { enumerable: !1, value: null }), x._store = {}, Object.defineProperty(x._store, "validated", {
|
|
@@ -179,102 +180,99 @@ function ar() {
|
|
|
179
180
|
configurable: !1,
|
|
180
181
|
enumerable: !1,
|
|
181
182
|
writable: !0,
|
|
182
|
-
value:
|
|
183
|
+
value: B
|
|
183
184
|
}), Object.defineProperty(x, "_debugTask", {
|
|
184
185
|
configurable: !1,
|
|
185
186
|
enumerable: !1,
|
|
186
187
|
writable: !0,
|
|
187
|
-
value:
|
|
188
|
+
value: M
|
|
188
189
|
}), Object.freeze && (Object.freeze(x.props), Object.freeze(x)), x;
|
|
189
190
|
}
|
|
190
|
-
function p(x,
|
|
191
|
-
var N =
|
|
191
|
+
function p(x, R, _, L, B, M) {
|
|
192
|
+
var N = R.children;
|
|
192
193
|
if (N !== void 0)
|
|
193
|
-
if (
|
|
194
|
-
if (
|
|
195
|
-
for (
|
|
196
|
-
m(N[
|
|
194
|
+
if (L)
|
|
195
|
+
if (O(N)) {
|
|
196
|
+
for (L = 0; L < N.length; L++)
|
|
197
|
+
m(N[L]);
|
|
197
198
|
Object.freeze && Object.freeze(N);
|
|
198
199
|
} else
|
|
199
200
|
console.error(
|
|
200
201
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
201
202
|
);
|
|
202
203
|
else m(N);
|
|
203
|
-
if (
|
|
204
|
+
if (z.call(R, "key")) {
|
|
204
205
|
N = e(x);
|
|
205
|
-
var
|
|
206
|
-
return
|
|
206
|
+
var H = Object.keys(R).filter(function(X) {
|
|
207
|
+
return X !== "key";
|
|
207
208
|
});
|
|
208
|
-
|
|
209
|
+
L = 0 < H.length ? "{key: someKey, " + H.join(": ..., ") + ": ...}" : "{key: someKey}", j[N + L] || (H = 0 < H.length ? "{" + H.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
209
210
|
`A props object containing a "key" prop is being spread into JSX:
|
|
210
211
|
let props = %s;
|
|
211
212
|
<%s {...props} />
|
|
212
213
|
React keys must be passed directly to JSX without using spread:
|
|
213
214
|
let props = %s;
|
|
214
215
|
<%s key={someKey} {...props} />`,
|
|
215
|
-
|
|
216
|
+
L,
|
|
216
217
|
N,
|
|
217
|
-
|
|
218
|
+
H,
|
|
218
219
|
N
|
|
219
|
-
),
|
|
220
|
+
), j[N + L] = !0);
|
|
220
221
|
}
|
|
221
|
-
if (N = null,
|
|
222
|
-
|
|
223
|
-
for (var
|
|
224
|
-
|
|
225
|
-
} else
|
|
222
|
+
if (N = null, _ !== void 0 && (t(_), N = "" + _), l(R) && (t(R.key), N = "" + R.key), "key" in R) {
|
|
223
|
+
_ = {};
|
|
224
|
+
for (var U in R)
|
|
225
|
+
U !== "key" && (_[U] = R[U]);
|
|
226
|
+
} else _ = R;
|
|
226
227
|
return N && s(
|
|
227
|
-
|
|
228
|
+
_,
|
|
228
229
|
typeof x == "function" ? x.displayName || x.name || "Unknown" : x
|
|
229
230
|
), d(
|
|
230
231
|
x,
|
|
231
232
|
N,
|
|
232
|
-
|
|
233
|
-
P,
|
|
233
|
+
_,
|
|
234
234
|
o(),
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
B
|
|
235
|
+
B,
|
|
236
|
+
M
|
|
238
237
|
);
|
|
239
238
|
}
|
|
240
239
|
function m(x) {
|
|
241
|
-
typeof x == "object" && x !== null && x.$$typeof ===
|
|
240
|
+
u(x) ? x._store && (x._store.validated = 1) : typeof x == "object" && x !== null && x.$$typeof === K && (x._payload.status === "fulfilled" ? u(x._payload.value) && x._payload.value._store && (x._payload.value._store.validated = 1) : x._store && (x._store.validated = 1));
|
|
241
|
+
}
|
|
242
|
+
function u(x) {
|
|
243
|
+
return typeof x == "object" && x !== null && x.$$typeof === v;
|
|
242
244
|
}
|
|
243
|
-
var
|
|
245
|
+
var f = ke, v = Symbol.for("react.transitional.element"), g = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), w = Symbol.for("react.strict_mode"), S = Symbol.for("react.profiler"), y = Symbol.for("react.consumer"), $ = Symbol.for("react.context"), b = Symbol.for("react.forward_ref"), A = Symbol.for("react.suspense"), k = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), K = Symbol.for("react.lazy"), Z = Symbol.for("react.activity"), J = Symbol.for("react.client.reference"), de = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, z = Object.prototype.hasOwnProperty, O = Array.isArray, V = console.createTask ? console.createTask : function() {
|
|
244
246
|
return null;
|
|
245
247
|
};
|
|
246
|
-
|
|
247
|
-
|
|
248
|
+
f = {
|
|
249
|
+
react_stack_bottom_frame: function(x) {
|
|
248
250
|
return x();
|
|
249
251
|
}
|
|
250
252
|
};
|
|
251
|
-
var
|
|
252
|
-
|
|
253
|
+
var Q, I = {}, ve = f.react_stack_bottom_frame.bind(
|
|
254
|
+
f,
|
|
253
255
|
i
|
|
254
|
-
)(),
|
|
255
|
-
Ve.Fragment =
|
|
256
|
-
var
|
|
256
|
+
)(), W = V(r(i)), j = {};
|
|
257
|
+
Ve.Fragment = h, Ve.jsx = function(x, R, _) {
|
|
258
|
+
var L = 1e4 > de.recentlyCreatedOwnerStacks++;
|
|
257
259
|
return p(
|
|
258
260
|
x,
|
|
259
|
-
|
|
260
|
-
|
|
261
|
+
R,
|
|
262
|
+
_,
|
|
261
263
|
!1,
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
T ? Error("react-stack-top-frame") : V,
|
|
265
|
-
T ? z(r(x)) : ve
|
|
264
|
+
L ? Error("react-stack-top-frame") : ve,
|
|
265
|
+
L ? V(r(x)) : W
|
|
266
266
|
);
|
|
267
|
-
}, Ve.jsxs = function(x,
|
|
268
|
-
var
|
|
267
|
+
}, Ve.jsxs = function(x, R, _) {
|
|
268
|
+
var L = 1e4 > de.recentlyCreatedOwnerStacks++;
|
|
269
269
|
return p(
|
|
270
270
|
x,
|
|
271
|
-
|
|
272
|
-
|
|
271
|
+
R,
|
|
272
|
+
_,
|
|
273
273
|
!0,
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
T ? Error("react-stack-top-frame") : V,
|
|
277
|
-
T ? z(r(x)) : ve
|
|
274
|
+
L ? Error("react-stack-top-frame") : ve,
|
|
275
|
+
L ? V(r(x)) : W
|
|
278
276
|
);
|
|
279
277
|
};
|
|
280
278
|
}()), Ve;
|
|
@@ -626,11 +624,11 @@ const we = {
|
|
|
626
624
|
...w
|
|
627
625
|
}) => {
|
|
628
626
|
var A;
|
|
629
|
-
const S = me(null), y = me(null), $ = (
|
|
630
|
-
const
|
|
631
|
-
if (!
|
|
632
|
-
const
|
|
633
|
-
|
|
627
|
+
const S = me(null), y = me(null), $ = (k) => {
|
|
628
|
+
const T = S.current;
|
|
629
|
+
if (!T) return;
|
|
630
|
+
const K = document.createElement("span"), Z = T.getBoundingClientRect(), J = Math.max(Z.width, Z.height);
|
|
631
|
+
K.style.width = K.style.height = `${J}px`, K.style.left = `${k.clientX - Z.left - J / 2}px`, K.style.top = `${k.clientY - Z.top - J / 2}px`, K.className = "ripple", T.appendChild(K), setTimeout(() => K.remove(), 600), l == null || l(k);
|
|
634
632
|
}, b = ((A = we[r]) == null ? void 0 : A[t === "filled" ? "filled" : t === "outlined" ? "outline" : "transparent"]) || "";
|
|
635
633
|
return /* @__PURE__ */ a.jsx(a.Fragment, { children: v ? /* @__PURE__ */ a.jsxs(
|
|
636
634
|
"a",
|
|
@@ -879,16 +877,16 @@ var Xt;
|
|
|
879
877
|
function cr() {
|
|
880
878
|
return Xt || (Xt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
881
879
|
var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, l = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, u = e ? Symbol.for("react.suspense_list") : 60120, f = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, g = e ? Symbol.for("react.block") : 60121, h = e ? Symbol.for("react.fundamental") : 60117, w = e ? Symbol.for("react.responder") : 60118, S = e ? Symbol.for("react.scope") : 60119;
|
|
882
|
-
function y(
|
|
883
|
-
return typeof
|
|
884
|
-
|
|
880
|
+
function y(E) {
|
|
881
|
+
return typeof E == "string" || typeof E == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
882
|
+
E === r || E === d || E === i || E === o || E === m || E === u || typeof E == "object" && E !== null && (E.$$typeof === v || E.$$typeof === f || E.$$typeof === l || E.$$typeof === s || E.$$typeof === p || E.$$typeof === h || E.$$typeof === w || E.$$typeof === S || E.$$typeof === g);
|
|
885
883
|
}
|
|
886
|
-
function $(
|
|
887
|
-
if (typeof
|
|
888
|
-
var
|
|
889
|
-
switch (
|
|
884
|
+
function $(E) {
|
|
885
|
+
if (typeof E == "object" && E !== null) {
|
|
886
|
+
var P = E.$$typeof;
|
|
887
|
+
switch (P) {
|
|
890
888
|
case n:
|
|
891
|
-
var re =
|
|
889
|
+
var re = E.type;
|
|
892
890
|
switch (re) {
|
|
893
891
|
case c:
|
|
894
892
|
case d:
|
|
@@ -907,55 +905,55 @@ function cr() {
|
|
|
907
905
|
case l:
|
|
908
906
|
return oe;
|
|
909
907
|
default:
|
|
910
|
-
return
|
|
908
|
+
return P;
|
|
911
909
|
}
|
|
912
910
|
}
|
|
913
911
|
case t:
|
|
914
|
-
return
|
|
912
|
+
return P;
|
|
915
913
|
}
|
|
916
914
|
}
|
|
917
915
|
}
|
|
918
|
-
var b = c, A = d,
|
|
919
|
-
function
|
|
920
|
-
return ve || (ve = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),
|
|
916
|
+
var b = c, A = d, k = s, T = l, K = n, Z = p, J = r, de = v, z = f, O = t, V = i, Q = o, I = m, ve = !1;
|
|
917
|
+
function W(E) {
|
|
918
|
+
return ve || (ve = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), j(E) || $(E) === c;
|
|
921
919
|
}
|
|
922
|
-
function
|
|
923
|
-
return $(
|
|
920
|
+
function j(E) {
|
|
921
|
+
return $(E) === d;
|
|
924
922
|
}
|
|
925
|
-
function
|
|
926
|
-
return $(
|
|
923
|
+
function x(E) {
|
|
924
|
+
return $(E) === s;
|
|
927
925
|
}
|
|
928
|
-
function
|
|
929
|
-
return $(
|
|
926
|
+
function R(E) {
|
|
927
|
+
return $(E) === l;
|
|
930
928
|
}
|
|
931
|
-
function E
|
|
932
|
-
return typeof
|
|
929
|
+
function _(E) {
|
|
930
|
+
return typeof E == "object" && E !== null && E.$$typeof === n;
|
|
933
931
|
}
|
|
934
|
-
function
|
|
935
|
-
return $(
|
|
932
|
+
function L(E) {
|
|
933
|
+
return $(E) === p;
|
|
936
934
|
}
|
|
937
|
-
function
|
|
938
|
-
return $(
|
|
935
|
+
function B(E) {
|
|
936
|
+
return $(E) === r;
|
|
939
937
|
}
|
|
940
|
-
function
|
|
941
|
-
return $(
|
|
938
|
+
function M(E) {
|
|
939
|
+
return $(E) === v;
|
|
942
940
|
}
|
|
943
|
-
function
|
|
944
|
-
return $(
|
|
941
|
+
function N(E) {
|
|
942
|
+
return $(E) === f;
|
|
945
943
|
}
|
|
946
|
-
function
|
|
947
|
-
return $(
|
|
944
|
+
function H(E) {
|
|
945
|
+
return $(E) === t;
|
|
948
946
|
}
|
|
949
|
-
function
|
|
950
|
-
return $(
|
|
947
|
+
function U(E) {
|
|
948
|
+
return $(E) === i;
|
|
951
949
|
}
|
|
952
|
-
function
|
|
953
|
-
return $(
|
|
950
|
+
function X(E) {
|
|
951
|
+
return $(E) === o;
|
|
954
952
|
}
|
|
955
|
-
function
|
|
956
|
-
return $(
|
|
953
|
+
function ce(E) {
|
|
954
|
+
return $(E) === m;
|
|
957
955
|
}
|
|
958
|
-
le.AsyncMode = b, le.ConcurrentMode = A, le.ContextConsumer =
|
|
956
|
+
le.AsyncMode = b, le.ConcurrentMode = A, le.ContextConsumer = k, le.ContextProvider = T, le.Element = K, le.ForwardRef = Z, le.Fragment = J, le.Lazy = de, le.Memo = z, le.Portal = O, le.Profiler = V, le.StrictMode = Q, le.Suspense = I, le.isAsyncMode = W, le.isConcurrentMode = j, le.isContextConsumer = x, le.isContextProvider = R, le.isElement = _, le.isForwardRef = L, le.isFragment = B, le.isLazy = M, le.isMemo = N, le.isPortal = H, le.isProfiler = U, le.isStrictMode = X, le.isSuspense = ce, le.isValidElementType = y, le.typeOf = $;
|
|
959
957
|
}()), le;
|
|
960
958
|
}
|
|
961
959
|
var Kt;
|
|
@@ -1092,10 +1090,10 @@ function dr() {
|
|
|
1092
1090
|
}
|
|
1093
1091
|
return vt = function(s, c) {
|
|
1094
1092
|
var d = typeof Symbol == "function" && Symbol.iterator, p = "@@iterator";
|
|
1095
|
-
function m(
|
|
1096
|
-
var
|
|
1097
|
-
if (typeof
|
|
1098
|
-
return
|
|
1093
|
+
function m(j) {
|
|
1094
|
+
var x = j && (d && j[d] || j[p]);
|
|
1095
|
+
if (typeof x == "function")
|
|
1096
|
+
return x;
|
|
1099
1097
|
}
|
|
1100
1098
|
var u = "<<anonymous>>", f = {
|
|
1101
1099
|
array: w("array"),
|
|
@@ -1111,241 +1109,241 @@ function dr() {
|
|
|
1111
1109
|
element: $(),
|
|
1112
1110
|
elementType: b(),
|
|
1113
1111
|
instanceOf: A,
|
|
1114
|
-
node:
|
|
1115
|
-
objectOf:
|
|
1116
|
-
oneOf:
|
|
1117
|
-
oneOfType:
|
|
1112
|
+
node: Z(),
|
|
1113
|
+
objectOf: T,
|
|
1114
|
+
oneOf: k,
|
|
1115
|
+
oneOfType: K,
|
|
1118
1116
|
shape: de,
|
|
1119
|
-
exact:
|
|
1117
|
+
exact: z
|
|
1120
1118
|
};
|
|
1121
|
-
function v(
|
|
1122
|
-
return
|
|
1119
|
+
function v(j, x) {
|
|
1120
|
+
return j === x ? j !== 0 || 1 / j === 1 / x : j !== j && x !== x;
|
|
1123
1121
|
}
|
|
1124
|
-
function g(
|
|
1125
|
-
this.message =
|
|
1122
|
+
function g(j, x) {
|
|
1123
|
+
this.message = j, this.data = x && typeof x == "object" ? x : {}, this.stack = "";
|
|
1126
1124
|
}
|
|
1127
1125
|
g.prototype = Error.prototype;
|
|
1128
|
-
function h(
|
|
1126
|
+
function h(j) {
|
|
1129
1127
|
if (process.env.NODE_ENV !== "production")
|
|
1130
|
-
var
|
|
1131
|
-
function
|
|
1132
|
-
if (
|
|
1128
|
+
var x = {}, R = 0;
|
|
1129
|
+
function _(B, M, N, H, U, X, ce) {
|
|
1130
|
+
if (H = H || u, X = X || N, ce !== t) {
|
|
1133
1131
|
if (c) {
|
|
1134
|
-
var
|
|
1132
|
+
var E = new Error(
|
|
1135
1133
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
1136
1134
|
);
|
|
1137
|
-
throw
|
|
1135
|
+
throw E.name = "Invariant Violation", E;
|
|
1138
1136
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
1139
|
-
var
|
|
1140
|
-
!
|
|
1141
|
-
|
|
1142
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
1143
|
-
),
|
|
1137
|
+
var P = H + ":" + N;
|
|
1138
|
+
!x[P] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
1139
|
+
R < 3 && (i(
|
|
1140
|
+
"You are manually calling a React.PropTypes validation function for the `" + X + "` prop on `" + H + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
1141
|
+
), x[P] = !0, R++);
|
|
1144
1142
|
}
|
|
1145
1143
|
}
|
|
1146
|
-
return
|
|
1144
|
+
return M[N] == null ? B ? M[N] === null ? new g("The " + U + " `" + X + "` is marked as required " + ("in `" + H + "`, but its value is `null`.")) : new g("The " + U + " `" + X + "` is marked as required in " + ("`" + H + "`, but its value is `undefined`.")) : null : j(M, N, H, U, X);
|
|
1147
1145
|
}
|
|
1148
|
-
var
|
|
1149
|
-
return
|
|
1146
|
+
var L = _.bind(null, !1);
|
|
1147
|
+
return L.isRequired = _.bind(null, !0), L;
|
|
1150
1148
|
}
|
|
1151
|
-
function w(
|
|
1152
|
-
function
|
|
1153
|
-
var
|
|
1154
|
-
if (
|
|
1155
|
-
var
|
|
1149
|
+
function w(j) {
|
|
1150
|
+
function x(R, _, L, B, M, N) {
|
|
1151
|
+
var H = R[_], U = Q(H);
|
|
1152
|
+
if (U !== j) {
|
|
1153
|
+
var X = I(H);
|
|
1156
1154
|
return new g(
|
|
1157
|
-
"Invalid " +
|
|
1158
|
-
{ expectedType:
|
|
1155
|
+
"Invalid " + B + " `" + M + "` of type " + ("`" + X + "` supplied to `" + L + "`, expected ") + ("`" + j + "`."),
|
|
1156
|
+
{ expectedType: j }
|
|
1159
1157
|
);
|
|
1160
1158
|
}
|
|
1161
1159
|
return null;
|
|
1162
1160
|
}
|
|
1163
|
-
return h(
|
|
1161
|
+
return h(x);
|
|
1164
1162
|
}
|
|
1165
1163
|
function S() {
|
|
1166
1164
|
return h(l);
|
|
1167
1165
|
}
|
|
1168
|
-
function y(
|
|
1169
|
-
function
|
|
1170
|
-
if (typeof
|
|
1171
|
-
return new g("Property `" +
|
|
1172
|
-
var
|
|
1173
|
-
if (!Array.isArray(
|
|
1174
|
-
var
|
|
1175
|
-
return new g("Invalid " +
|
|
1166
|
+
function y(j) {
|
|
1167
|
+
function x(R, _, L, B, M) {
|
|
1168
|
+
if (typeof j != "function")
|
|
1169
|
+
return new g("Property `" + M + "` of component `" + L + "` has invalid PropType notation inside arrayOf.");
|
|
1170
|
+
var N = R[_];
|
|
1171
|
+
if (!Array.isArray(N)) {
|
|
1172
|
+
var H = Q(N);
|
|
1173
|
+
return new g("Invalid " + B + " `" + M + "` of type " + ("`" + H + "` supplied to `" + L + "`, expected an array."));
|
|
1176
1174
|
}
|
|
1177
|
-
for (var
|
|
1178
|
-
var
|
|
1179
|
-
if (
|
|
1180
|
-
return
|
|
1175
|
+
for (var U = 0; U < N.length; U++) {
|
|
1176
|
+
var X = j(N, U, L, B, M + "[" + U + "]", t);
|
|
1177
|
+
if (X instanceof Error)
|
|
1178
|
+
return X;
|
|
1181
1179
|
}
|
|
1182
1180
|
return null;
|
|
1183
1181
|
}
|
|
1184
|
-
return h(
|
|
1182
|
+
return h(x);
|
|
1185
1183
|
}
|
|
1186
1184
|
function $() {
|
|
1187
|
-
function x
|
|
1188
|
-
var
|
|
1189
|
-
if (!s(
|
|
1190
|
-
var
|
|
1191
|
-
return new g("Invalid " +
|
|
1185
|
+
function j(x, R, _, L, B) {
|
|
1186
|
+
var M = x[R];
|
|
1187
|
+
if (!s(M)) {
|
|
1188
|
+
var N = Q(M);
|
|
1189
|
+
return new g("Invalid " + L + " `" + B + "` of type " + ("`" + N + "` supplied to `" + _ + "`, expected a single ReactElement."));
|
|
1192
1190
|
}
|
|
1193
1191
|
return null;
|
|
1194
1192
|
}
|
|
1195
|
-
return h(
|
|
1193
|
+
return h(j);
|
|
1196
1194
|
}
|
|
1197
1195
|
function b() {
|
|
1198
|
-
function x
|
|
1199
|
-
var
|
|
1200
|
-
if (!e.isValidElementType(
|
|
1201
|
-
var
|
|
1202
|
-
return new g("Invalid " +
|
|
1196
|
+
function j(x, R, _, L, B) {
|
|
1197
|
+
var M = x[R];
|
|
1198
|
+
if (!e.isValidElementType(M)) {
|
|
1199
|
+
var N = Q(M);
|
|
1200
|
+
return new g("Invalid " + L + " `" + B + "` of type " + ("`" + N + "` supplied to `" + _ + "`, expected a single ReactElement type."));
|
|
1203
1201
|
}
|
|
1204
1202
|
return null;
|
|
1205
1203
|
}
|
|
1206
|
-
return h(
|
|
1204
|
+
return h(j);
|
|
1207
1205
|
}
|
|
1208
|
-
function A(
|
|
1209
|
-
function
|
|
1210
|
-
if (!(
|
|
1211
|
-
var
|
|
1212
|
-
return new g("Invalid " +
|
|
1206
|
+
function A(j) {
|
|
1207
|
+
function x(R, _, L, B, M) {
|
|
1208
|
+
if (!(R[_] instanceof j)) {
|
|
1209
|
+
var N = j.name || u, H = W(R[_]);
|
|
1210
|
+
return new g("Invalid " + B + " `" + M + "` of type " + ("`" + H + "` supplied to `" + L + "`, expected ") + ("instance of `" + N + "`."));
|
|
1213
1211
|
}
|
|
1214
1212
|
return null;
|
|
1215
1213
|
}
|
|
1216
|
-
return h(
|
|
1214
|
+
return h(x);
|
|
1217
1215
|
}
|
|
1218
|
-
function
|
|
1219
|
-
if (!Array.isArray(
|
|
1216
|
+
function k(j) {
|
|
1217
|
+
if (!Array.isArray(j))
|
|
1220
1218
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
1221
1219
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
1222
1220
|
) : i("Invalid argument supplied to oneOf, expected an array.")), l;
|
|
1223
|
-
function
|
|
1224
|
-
for (var
|
|
1225
|
-
if (v(
|
|
1221
|
+
function x(R, _, L, B, M) {
|
|
1222
|
+
for (var N = R[_], H = 0; H < j.length; H++)
|
|
1223
|
+
if (v(N, j[H]))
|
|
1226
1224
|
return null;
|
|
1227
|
-
var
|
|
1228
|
-
var
|
|
1229
|
-
return
|
|
1225
|
+
var U = JSON.stringify(j, function(ce, E) {
|
|
1226
|
+
var P = I(E);
|
|
1227
|
+
return P === "symbol" ? String(E) : E;
|
|
1230
1228
|
});
|
|
1231
|
-
return new g("Invalid " +
|
|
1229
|
+
return new g("Invalid " + B + " `" + M + "` of value `" + String(N) + "` " + ("supplied to `" + L + "`, expected one of " + U + "."));
|
|
1232
1230
|
}
|
|
1233
|
-
return h(
|
|
1231
|
+
return h(x);
|
|
1234
1232
|
}
|
|
1235
|
-
function
|
|
1236
|
-
function
|
|
1237
|
-
if (typeof
|
|
1238
|
-
return new g("Property `" +
|
|
1239
|
-
var
|
|
1240
|
-
if (
|
|
1241
|
-
return new g("Invalid " +
|
|
1242
|
-
for (var
|
|
1243
|
-
if (r(
|
|
1244
|
-
var
|
|
1245
|
-
if (
|
|
1246
|
-
return
|
|
1233
|
+
function T(j) {
|
|
1234
|
+
function x(R, _, L, B, M) {
|
|
1235
|
+
if (typeof j != "function")
|
|
1236
|
+
return new g("Property `" + M + "` of component `" + L + "` has invalid PropType notation inside objectOf.");
|
|
1237
|
+
var N = R[_], H = Q(N);
|
|
1238
|
+
if (H !== "object")
|
|
1239
|
+
return new g("Invalid " + B + " `" + M + "` of type " + ("`" + H + "` supplied to `" + L + "`, expected an object."));
|
|
1240
|
+
for (var U in N)
|
|
1241
|
+
if (r(N, U)) {
|
|
1242
|
+
var X = j(N, U, L, B, M + "." + U, t);
|
|
1243
|
+
if (X instanceof Error)
|
|
1244
|
+
return X;
|
|
1247
1245
|
}
|
|
1248
1246
|
return null;
|
|
1249
1247
|
}
|
|
1250
|
-
return h(
|
|
1248
|
+
return h(x);
|
|
1251
1249
|
}
|
|
1252
|
-
function
|
|
1253
|
-
if (!Array.isArray(
|
|
1250
|
+
function K(j) {
|
|
1251
|
+
if (!Array.isArray(j))
|
|
1254
1252
|
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), l;
|
|
1255
|
-
for (var
|
|
1256
|
-
var
|
|
1257
|
-
if (typeof
|
|
1253
|
+
for (var x = 0; x < j.length; x++) {
|
|
1254
|
+
var R = j[x];
|
|
1255
|
+
if (typeof R != "function")
|
|
1258
1256
|
return i(
|
|
1259
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ve(
|
|
1257
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ve(R) + " at index " + x + "."
|
|
1260
1258
|
), l;
|
|
1261
1259
|
}
|
|
1262
|
-
function
|
|
1263
|
-
for (var
|
|
1264
|
-
var
|
|
1265
|
-
if (
|
|
1260
|
+
function _(L, B, M, N, H) {
|
|
1261
|
+
for (var U = [], X = 0; X < j.length; X++) {
|
|
1262
|
+
var ce = j[X], E = ce(L, B, M, N, H, t);
|
|
1263
|
+
if (E == null)
|
|
1266
1264
|
return null;
|
|
1267
|
-
|
|
1265
|
+
E.data && r(E.data, "expectedType") && U.push(E.data.expectedType);
|
|
1268
1266
|
}
|
|
1269
|
-
var
|
|
1270
|
-
return new g("Invalid " +
|
|
1267
|
+
var P = U.length > 0 ? ", expected one of type [" + U.join(", ") + "]" : "";
|
|
1268
|
+
return new g("Invalid " + N + " `" + H + "` supplied to " + ("`" + M + "`" + P + "."));
|
|
1271
1269
|
}
|
|
1272
|
-
return h(
|
|
1270
|
+
return h(_);
|
|
1273
1271
|
}
|
|
1274
|
-
function
|
|
1275
|
-
function x
|
|
1276
|
-
return
|
|
1272
|
+
function Z() {
|
|
1273
|
+
function j(x, R, _, L, B) {
|
|
1274
|
+
return O(x[R]) ? null : new g("Invalid " + L + " `" + B + "` supplied to " + ("`" + _ + "`, expected a ReactNode."));
|
|
1277
1275
|
}
|
|
1278
|
-
return h(
|
|
1276
|
+
return h(j);
|
|
1279
1277
|
}
|
|
1280
|
-
function
|
|
1278
|
+
function J(j, x, R, _, L) {
|
|
1281
1279
|
return new g(
|
|
1282
|
-
(
|
|
1280
|
+
(j || "React class") + ": " + x + " type `" + R + "." + _ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + L + "`."
|
|
1283
1281
|
);
|
|
1284
1282
|
}
|
|
1285
|
-
function de(
|
|
1286
|
-
function
|
|
1287
|
-
var
|
|
1288
|
-
if (
|
|
1289
|
-
return new g("Invalid " +
|
|
1290
|
-
for (var
|
|
1291
|
-
var
|
|
1292
|
-
if (typeof
|
|
1293
|
-
return
|
|
1294
|
-
var
|
|
1295
|
-
if (
|
|
1296
|
-
return
|
|
1283
|
+
function de(j) {
|
|
1284
|
+
function x(R, _, L, B, M) {
|
|
1285
|
+
var N = R[_], H = Q(N);
|
|
1286
|
+
if (H !== "object")
|
|
1287
|
+
return new g("Invalid " + B + " `" + M + "` of type `" + H + "` " + ("supplied to `" + L + "`, expected `object`."));
|
|
1288
|
+
for (var U in j) {
|
|
1289
|
+
var X = j[U];
|
|
1290
|
+
if (typeof X != "function")
|
|
1291
|
+
return J(L, B, M, U, I(X));
|
|
1292
|
+
var ce = X(N, U, L, B, M + "." + U, t);
|
|
1293
|
+
if (ce)
|
|
1294
|
+
return ce;
|
|
1297
1295
|
}
|
|
1298
1296
|
return null;
|
|
1299
1297
|
}
|
|
1300
|
-
return h(
|
|
1298
|
+
return h(x);
|
|
1301
1299
|
}
|
|
1302
|
-
function
|
|
1303
|
-
function
|
|
1304
|
-
var
|
|
1305
|
-
if (
|
|
1306
|
-
return new g("Invalid " +
|
|
1307
|
-
var
|
|
1308
|
-
for (var
|
|
1309
|
-
var
|
|
1310
|
-
if (r(
|
|
1311
|
-
return
|
|
1312
|
-
if (!
|
|
1300
|
+
function z(j) {
|
|
1301
|
+
function x(R, _, L, B, M) {
|
|
1302
|
+
var N = R[_], H = Q(N);
|
|
1303
|
+
if (H !== "object")
|
|
1304
|
+
return new g("Invalid " + B + " `" + M + "` of type `" + H + "` " + ("supplied to `" + L + "`, expected `object`."));
|
|
1305
|
+
var U = n({}, R[_], j);
|
|
1306
|
+
for (var X in U) {
|
|
1307
|
+
var ce = j[X];
|
|
1308
|
+
if (r(j, X) && typeof ce != "function")
|
|
1309
|
+
return J(L, B, M, X, I(ce));
|
|
1310
|
+
if (!ce)
|
|
1313
1311
|
return new g(
|
|
1314
|
-
"Invalid " +
|
|
1315
|
-
Valid keys: ` + JSON.stringify(Object.keys(
|
|
1312
|
+
"Invalid " + B + " `" + M + "` key `" + X + "` supplied to `" + L + "`.\nBad object: " + JSON.stringify(R[_], null, " ") + `
|
|
1313
|
+
Valid keys: ` + JSON.stringify(Object.keys(j), null, " ")
|
|
1316
1314
|
);
|
|
1317
|
-
var
|
|
1318
|
-
if (
|
|
1319
|
-
return
|
|
1315
|
+
var E = ce(N, X, L, B, M + "." + X, t);
|
|
1316
|
+
if (E)
|
|
1317
|
+
return E;
|
|
1320
1318
|
}
|
|
1321
1319
|
return null;
|
|
1322
1320
|
}
|
|
1323
|
-
return h(
|
|
1321
|
+
return h(x);
|
|
1324
1322
|
}
|
|
1325
|
-
function
|
|
1326
|
-
switch (typeof
|
|
1323
|
+
function O(j) {
|
|
1324
|
+
switch (typeof j) {
|
|
1327
1325
|
case "number":
|
|
1328
1326
|
case "string":
|
|
1329
1327
|
case "undefined":
|
|
1330
1328
|
return !0;
|
|
1331
1329
|
case "boolean":
|
|
1332
|
-
return !
|
|
1330
|
+
return !j;
|
|
1333
1331
|
case "object":
|
|
1334
|
-
if (Array.isArray(
|
|
1335
|
-
return
|
|
1336
|
-
if (
|
|
1332
|
+
if (Array.isArray(j))
|
|
1333
|
+
return j.every(O);
|
|
1334
|
+
if (j === null || s(j))
|
|
1337
1335
|
return !0;
|
|
1338
|
-
var
|
|
1339
|
-
if (
|
|
1340
|
-
var
|
|
1341
|
-
if (
|
|
1342
|
-
for (; !(
|
|
1343
|
-
if (!
|
|
1336
|
+
var x = m(j);
|
|
1337
|
+
if (x) {
|
|
1338
|
+
var R = x.call(j), _;
|
|
1339
|
+
if (x !== j.entries) {
|
|
1340
|
+
for (; !(_ = R.next()).done; )
|
|
1341
|
+
if (!O(_.value))
|
|
1344
1342
|
return !1;
|
|
1345
1343
|
} else
|
|
1346
|
-
for (; !(
|
|
1347
|
-
var
|
|
1348
|
-
if (
|
|
1344
|
+
for (; !(_ = R.next()).done; ) {
|
|
1345
|
+
var L = _.value;
|
|
1346
|
+
if (L && !O(L[1]))
|
|
1349
1347
|
return !1;
|
|
1350
1348
|
}
|
|
1351
1349
|
} else
|
|
@@ -1355,41 +1353,41 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
|
|
|
1355
1353
|
return !1;
|
|
1356
1354
|
}
|
|
1357
1355
|
}
|
|
1358
|
-
function
|
|
1359
|
-
return
|
|
1356
|
+
function V(j, x) {
|
|
1357
|
+
return j === "symbol" ? !0 : x ? x["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && x instanceof Symbol : !1;
|
|
1360
1358
|
}
|
|
1361
|
-
function Q(
|
|
1362
|
-
var
|
|
1363
|
-
return Array.isArray(
|
|
1359
|
+
function Q(j) {
|
|
1360
|
+
var x = typeof j;
|
|
1361
|
+
return Array.isArray(j) ? "array" : j instanceof RegExp ? "object" : V(x, j) ? "symbol" : x;
|
|
1364
1362
|
}
|
|
1365
|
-
function
|
|
1366
|
-
if (typeof
|
|
1367
|
-
return "" +
|
|
1368
|
-
var
|
|
1369
|
-
if (
|
|
1370
|
-
if (
|
|
1363
|
+
function I(j) {
|
|
1364
|
+
if (typeof j > "u" || j === null)
|
|
1365
|
+
return "" + j;
|
|
1366
|
+
var x = Q(j);
|
|
1367
|
+
if (x === "object") {
|
|
1368
|
+
if (j instanceof Date)
|
|
1371
1369
|
return "date";
|
|
1372
|
-
if (
|
|
1370
|
+
if (j instanceof RegExp)
|
|
1373
1371
|
return "regexp";
|
|
1374
1372
|
}
|
|
1375
|
-
return
|
|
1373
|
+
return x;
|
|
1376
1374
|
}
|
|
1377
|
-
function ve(
|
|
1378
|
-
var
|
|
1379
|
-
switch (
|
|
1375
|
+
function ve(j) {
|
|
1376
|
+
var x = I(j);
|
|
1377
|
+
switch (x) {
|
|
1380
1378
|
case "array":
|
|
1381
1379
|
case "object":
|
|
1382
|
-
return "an " +
|
|
1380
|
+
return "an " + x;
|
|
1383
1381
|
case "boolean":
|
|
1384
1382
|
case "date":
|
|
1385
1383
|
case "regexp":
|
|
1386
|
-
return "a " +
|
|
1384
|
+
return "a " + x;
|
|
1387
1385
|
default:
|
|
1388
|
-
return
|
|
1386
|
+
return x;
|
|
1389
1387
|
}
|
|
1390
1388
|
}
|
|
1391
|
-
function
|
|
1392
|
-
return !
|
|
1389
|
+
function W(j) {
|
|
1390
|
+
return !j.constructor || !j.constructor.name ? u : j.constructor.name;
|
|
1393
1391
|
}
|
|
1394
1392
|
return f.checkPropTypes = o, f.resetWarningCache = o.resetWarningCache, f.PropTypes = f, f;
|
|
1395
1393
|
}, vt;
|
|
@@ -3353,88 +3351,88 @@ var Nt = {
|
|
|
3353
3351
|
fileRejections: []
|
|
3354
3352
|
};
|
|
3355
3353
|
function Hn() {
|
|
3356
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = fe(fe({}, Vn), e), t = n.accept, r = n.disabled, o = n.getFilesFromEvent, i = n.maxSize, l = n.minSize, s = n.multiple, c = n.maxFiles, d = n.onDragEnter, p = n.onDragLeave, m = n.onDragOver, u = n.onDrop, f = n.onDropAccepted, v = n.onDropRejected, g = n.onFileDialogCancel, h = n.onFileDialogOpen, w = n.useFsAccessApi, S = n.autoFocus, y = n.preventDropOnDocument, $ = n.noClick, b = n.noKeyboard, A = n.noDrag,
|
|
3354
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = fe(fe({}, Vn), e), t = n.accept, r = n.disabled, o = n.getFilesFromEvent, i = n.maxSize, l = n.minSize, s = n.multiple, c = n.maxFiles, d = n.onDragEnter, p = n.onDragLeave, m = n.onDragOver, u = n.onDrop, f = n.onDropAccepted, v = n.onDropRejected, g = n.onFileDialogCancel, h = n.onFileDialogOpen, w = n.useFsAccessApi, S = n.autoFocus, y = n.preventDropOnDocument, $ = n.noClick, b = n.noKeyboard, A = n.noDrag, k = n.noDragEventsBubbling, T = n.onError, K = n.validator, Z = Ae(function() {
|
|
3357
3355
|
return Ur(t);
|
|
3358
|
-
}, [t]),
|
|
3356
|
+
}, [t]), J = Ae(function() {
|
|
3359
3357
|
return Wr(t);
|
|
3360
3358
|
}, [t]), de = Ae(function() {
|
|
3361
3359
|
return typeof h == "function" ? h : vn;
|
|
3362
|
-
}, [h]),
|
|
3360
|
+
}, [h]), z = Ae(function() {
|
|
3363
3361
|
return typeof g == "function" ? g : vn;
|
|
3364
|
-
}, [g]),
|
|
3365
|
-
!
|
|
3366
|
-
if (
|
|
3367
|
-
var
|
|
3368
|
-
|
|
3362
|
+
}, [g]), O = me(null), V = me(null), Q = tr(uo, Nt), I = bt(Q, 2), ve = I[0], W = I[1], j = ve.isFocused, x = ve.isFileDialogActive, R = me(typeof window < "u" && window.isSecureContext && w && Zr()), _ = function() {
|
|
3363
|
+
!R.current && x && setTimeout(function() {
|
|
3364
|
+
if (V.current) {
|
|
3365
|
+
var D = V.current.files;
|
|
3366
|
+
D.length || (W({
|
|
3369
3367
|
type: "closeDialog"
|
|
3370
|
-
}),
|
|
3368
|
+
}), z());
|
|
3371
3369
|
}
|
|
3372
3370
|
}, 300);
|
|
3373
3371
|
};
|
|
3374
3372
|
pe(function() {
|
|
3375
|
-
return window.addEventListener("focus",
|
|
3376
|
-
window.removeEventListener("focus",
|
|
3373
|
+
return window.addEventListener("focus", _, !1), function() {
|
|
3374
|
+
window.removeEventListener("focus", _, !1);
|
|
3377
3375
|
};
|
|
3378
|
-
}, [
|
|
3379
|
-
var
|
|
3380
|
-
|
|
3376
|
+
}, [V, x, z, R]);
|
|
3377
|
+
var L = me([]), B = function(D) {
|
|
3378
|
+
O.current && O.current.contains(D.target) || (D.preventDefault(), L.current = []);
|
|
3381
3379
|
};
|
|
3382
3380
|
pe(function() {
|
|
3383
|
-
return y && (document.addEventListener("dragover", mn, !1), document.addEventListener("drop",
|
|
3384
|
-
y && (document.removeEventListener("dragover", mn), document.removeEventListener("drop",
|
|
3381
|
+
return y && (document.addEventListener("dragover", mn, !1), document.addEventListener("drop", B, !1)), function() {
|
|
3382
|
+
y && (document.removeEventListener("dragover", mn), document.removeEventListener("drop", B));
|
|
3385
3383
|
};
|
|
3386
|
-
}, [
|
|
3387
|
-
return !r && S &&
|
|
3384
|
+
}, [O, y]), pe(function() {
|
|
3385
|
+
return !r && S && O.current && O.current.focus(), function() {
|
|
3388
3386
|
};
|
|
3389
|
-
}, [
|
|
3390
|
-
var
|
|
3391
|
-
|
|
3392
|
-
}, [
|
|
3393
|
-
|
|
3394
|
-
if (!(rt(
|
|
3395
|
-
var ne =
|
|
3396
|
-
files:
|
|
3397
|
-
accept:
|
|
3387
|
+
}, [O, S, r]);
|
|
3388
|
+
var M = se(function(F) {
|
|
3389
|
+
T ? T(F) : console.error(F);
|
|
3390
|
+
}, [T]), N = se(function(F) {
|
|
3391
|
+
F.preventDefault(), F.persist(), Se(F), L.current = [].concat(no(L.current), [F.target]), Ke(F) && Promise.resolve(o(F)).then(function(D) {
|
|
3392
|
+
if (!(rt(F) && !k)) {
|
|
3393
|
+
var ne = D.length, xe = ne > 0 && qr({
|
|
3394
|
+
files: D,
|
|
3395
|
+
accept: Z,
|
|
3398
3396
|
minSize: l,
|
|
3399
3397
|
maxSize: i,
|
|
3400
3398
|
multiple: s,
|
|
3401
3399
|
maxFiles: c,
|
|
3402
|
-
validator:
|
|
3400
|
+
validator: K
|
|
3403
3401
|
}), ye = ne > 0 && !xe;
|
|
3404
|
-
|
|
3402
|
+
W({
|
|
3405
3403
|
isDragAccept: xe,
|
|
3406
3404
|
isDragReject: ye,
|
|
3407
3405
|
isDragActive: !0,
|
|
3408
3406
|
type: "setDraggedFiles"
|
|
3409
|
-
}), d && d(
|
|
3407
|
+
}), d && d(F);
|
|
3410
3408
|
}
|
|
3411
|
-
}).catch(function(
|
|
3412
|
-
return
|
|
3409
|
+
}).catch(function(D) {
|
|
3410
|
+
return M(D);
|
|
3413
3411
|
});
|
|
3414
|
-
}, [o, d,
|
|
3415
|
-
|
|
3416
|
-
var
|
|
3417
|
-
if (
|
|
3412
|
+
}, [o, d, M, k, Z, l, i, s, c, K]), H = se(function(F) {
|
|
3413
|
+
F.preventDefault(), F.persist(), Se(F);
|
|
3414
|
+
var D = Ke(F);
|
|
3415
|
+
if (D && F.dataTransfer)
|
|
3418
3416
|
try {
|
|
3419
|
-
|
|
3417
|
+
F.dataTransfer.dropEffect = "copy";
|
|
3420
3418
|
} catch {
|
|
3421
3419
|
}
|
|
3422
|
-
return
|
|
3423
|
-
}, [m,
|
|
3424
|
-
|
|
3425
|
-
var
|
|
3426
|
-
return
|
|
3427
|
-
}), ne =
|
|
3428
|
-
ne !== -1 &&
|
|
3420
|
+
return D && m && m(F), !1;
|
|
3421
|
+
}, [m, k]), U = se(function(F) {
|
|
3422
|
+
F.preventDefault(), F.persist(), Se(F);
|
|
3423
|
+
var D = L.current.filter(function(xe) {
|
|
3424
|
+
return O.current && O.current.contains(xe);
|
|
3425
|
+
}), ne = D.indexOf(F.target);
|
|
3426
|
+
ne !== -1 && D.splice(ne, 1), L.current = D, !(D.length > 0) && (W({
|
|
3429
3427
|
type: "setDraggedFiles",
|
|
3430
3428
|
isDragActive: !1,
|
|
3431
3429
|
isDragAccept: !1,
|
|
3432
3430
|
isDragReject: !1
|
|
3433
|
-
}), Ke(
|
|
3434
|
-
}, [
|
|
3431
|
+
}), Ke(F) && p && p(F));
|
|
3432
|
+
}, [O, p, k]), X = se(function(F, D) {
|
|
3435
3433
|
var ne = [], xe = [];
|
|
3436
|
-
|
|
3437
|
-
var De = zn(ye,
|
|
3434
|
+
F.forEach(function(ye) {
|
|
3435
|
+
var De = zn(ye, Z), Ne = bt(De, 2), at = Ne[0], lt = Ne[1], st = Tn(ye, l, i), Ye = bt(st, 2), ct = Ye[0], ut = Ye[1], pt = K ? K(ye) : null;
|
|
3438
3436
|
if (at && ct && !pt)
|
|
3439
3437
|
ne.push(ye);
|
|
3440
3438
|
else {
|
|
@@ -3451,88 +3449,88 @@ function Hn() {
|
|
|
3451
3449
|
file: ye,
|
|
3452
3450
|
errors: [Hr]
|
|
3453
3451
|
});
|
|
3454
|
-
}), ne.splice(0)),
|
|
3452
|
+
}), ne.splice(0)), W({
|
|
3455
3453
|
acceptedFiles: ne,
|
|
3456
3454
|
fileRejections: xe,
|
|
3457
3455
|
isDragReject: xe.length > 0,
|
|
3458
3456
|
type: "setFiles"
|
|
3459
|
-
}), u && u(ne, xe,
|
|
3460
|
-
}, [
|
|
3461
|
-
|
|
3462
|
-
rt(
|
|
3463
|
-
}).catch(function(
|
|
3464
|
-
return
|
|
3465
|
-
}),
|
|
3457
|
+
}), u && u(ne, xe, D), xe.length > 0 && v && v(xe, D), ne.length > 0 && f && f(ne, D);
|
|
3458
|
+
}, [W, s, Z, l, i, c, u, f, v, K]), ce = se(function(F) {
|
|
3459
|
+
F.preventDefault(), F.persist(), Se(F), L.current = [], Ke(F) && Promise.resolve(o(F)).then(function(D) {
|
|
3460
|
+
rt(F) && !k || X(D, F);
|
|
3461
|
+
}).catch(function(D) {
|
|
3462
|
+
return M(D);
|
|
3463
|
+
}), W({
|
|
3466
3464
|
type: "reset"
|
|
3467
3465
|
});
|
|
3468
|
-
}, [o,
|
|
3469
|
-
if (
|
|
3470
|
-
|
|
3466
|
+
}, [o, X, M, k]), E = se(function() {
|
|
3467
|
+
if (R.current) {
|
|
3468
|
+
W({
|
|
3471
3469
|
type: "openDialog"
|
|
3472
3470
|
}), de();
|
|
3473
|
-
var
|
|
3471
|
+
var F = {
|
|
3474
3472
|
multiple: s,
|
|
3475
|
-
types:
|
|
3473
|
+
types: J
|
|
3476
3474
|
};
|
|
3477
|
-
window.showOpenFilePicker(
|
|
3478
|
-
return o(
|
|
3479
|
-
}).then(function(
|
|
3480
|
-
|
|
3475
|
+
window.showOpenFilePicker(F).then(function(D) {
|
|
3476
|
+
return o(D);
|
|
3477
|
+
}).then(function(D) {
|
|
3478
|
+
X(D, null), W({
|
|
3481
3479
|
type: "closeDialog"
|
|
3482
3480
|
});
|
|
3483
|
-
}).catch(function(
|
|
3484
|
-
Xr(
|
|
3481
|
+
}).catch(function(D) {
|
|
3482
|
+
Xr(D) ? (z(D), W({
|
|
3485
3483
|
type: "closeDialog"
|
|
3486
|
-
})) : Kr(
|
|
3484
|
+
})) : Kr(D) ? (R.current = !1, V.current ? (V.current.value = null, V.current.click()) : M(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : M(D);
|
|
3487
3485
|
});
|
|
3488
3486
|
return;
|
|
3489
3487
|
}
|
|
3490
|
-
|
|
3488
|
+
V.current && (W({
|
|
3491
3489
|
type: "openDialog"
|
|
3492
|
-
}), de(),
|
|
3493
|
-
}, [
|
|
3494
|
-
!
|
|
3495
|
-
}, [
|
|
3496
|
-
|
|
3490
|
+
}), de(), V.current.value = null, V.current.click());
|
|
3491
|
+
}, [W, de, z, w, X, M, J, s]), P = se(function(F) {
|
|
3492
|
+
!O.current || !O.current.isEqualNode(F.target) || (F.key === " " || F.key === "Enter" || F.keyCode === 32 || F.keyCode === 13) && (F.preventDefault(), E());
|
|
3493
|
+
}, [O, E]), re = se(function() {
|
|
3494
|
+
W({
|
|
3497
3495
|
type: "focus"
|
|
3498
3496
|
});
|
|
3499
|
-
}, []), oe =
|
|
3500
|
-
|
|
3497
|
+
}, []), oe = se(function() {
|
|
3498
|
+
W({
|
|
3501
3499
|
type: "blur"
|
|
3502
3500
|
});
|
|
3503
|
-
}, []), ge =
|
|
3504
|
-
$ || (Yr() ? setTimeout(
|
|
3505
|
-
}, [$,
|
|
3506
|
-
return r ? null :
|
|
3507
|
-
}, te = function(
|
|
3508
|
-
return b ? null :
|
|
3509
|
-
}, je = function(
|
|
3510
|
-
return A ? null :
|
|
3511
|
-
}, Se = function(
|
|
3512
|
-
|
|
3501
|
+
}, []), ge = se(function() {
|
|
3502
|
+
$ || (Yr() ? setTimeout(E, 0) : E());
|
|
3503
|
+
}, [$, E]), q = function(D) {
|
|
3504
|
+
return r ? null : D;
|
|
3505
|
+
}, te = function(D) {
|
|
3506
|
+
return b ? null : q(D);
|
|
3507
|
+
}, je = function(D) {
|
|
3508
|
+
return A ? null : q(D);
|
|
3509
|
+
}, Se = function(D) {
|
|
3510
|
+
k && D.stopPropagation();
|
|
3513
3511
|
}, C = Ae(function() {
|
|
3514
3512
|
return function() {
|
|
3515
|
-
var
|
|
3513
|
+
var F = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, D = F.refKey, ne = D === void 0 ? "ref" : D, xe = F.role, ye = F.onKeyDown, De = F.onFocus, Ne = F.onBlur, at = F.onClick, lt = F.onDragEnter, st = F.onDragOver, Ye = F.onDragLeave, ct = F.onDrop, ut = ot(F, eo);
|
|
3516
3514
|
return fe(fe(Pt({
|
|
3517
|
-
onKeyDown: te(Re(ye,
|
|
3515
|
+
onKeyDown: te(Re(ye, P)),
|
|
3518
3516
|
onFocus: te(Re(De, re)),
|
|
3519
3517
|
onBlur: te(Re(Ne, oe)),
|
|
3520
|
-
onClick:
|
|
3521
|
-
onDragEnter: je(Re(lt,
|
|
3522
|
-
onDragOver: je(Re(st,
|
|
3523
|
-
onDragLeave: je(Re(Ye,
|
|
3524
|
-
onDrop: je(Re(ct,
|
|
3518
|
+
onClick: q(Re(at, ge)),
|
|
3519
|
+
onDragEnter: je(Re(lt, N)),
|
|
3520
|
+
onDragOver: je(Re(st, H)),
|
|
3521
|
+
onDragLeave: je(Re(Ye, U)),
|
|
3522
|
+
onDrop: je(Re(ct, ce)),
|
|
3525
3523
|
role: typeof xe == "string" && xe !== "" ? xe : "presentation"
|
|
3526
|
-
}, ne,
|
|
3524
|
+
}, ne, O), !r && !b ? {
|
|
3527
3525
|
tabIndex: 0
|
|
3528
3526
|
} : {}), ut);
|
|
3529
3527
|
};
|
|
3530
|
-
}, [
|
|
3531
|
-
|
|
3528
|
+
}, [O, P, re, oe, ge, N, H, U, ce, b, A, r]), ie = se(function(F) {
|
|
3529
|
+
F.stopPropagation();
|
|
3532
3530
|
}, []), he = Ae(function() {
|
|
3533
3531
|
return function() {
|
|
3534
|
-
var
|
|
3535
|
-
accept:
|
|
3532
|
+
var F = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, D = F.refKey, ne = D === void 0 ? "ref" : D, xe = F.onChange, ye = F.onClick, De = ot(F, to), Ne = Pt({
|
|
3533
|
+
accept: Z,
|
|
3536
3534
|
multiple: s,
|
|
3537
3535
|
type: "file",
|
|
3538
3536
|
style: {
|
|
@@ -3547,20 +3545,20 @@ function Hn() {
|
|
|
3547
3545
|
width: "1px",
|
|
3548
3546
|
whiteSpace: "nowrap"
|
|
3549
3547
|
},
|
|
3550
|
-
onChange:
|
|
3551
|
-
onClick:
|
|
3548
|
+
onChange: q(Re(xe, ce)),
|
|
3549
|
+
onClick: q(Re(ye, ie)),
|
|
3552
3550
|
tabIndex: -1
|
|
3553
|
-
}, ne,
|
|
3551
|
+
}, ne, V);
|
|
3554
3552
|
return fe(fe({}, Ne), De);
|
|
3555
3553
|
};
|
|
3556
|
-
}, [
|
|
3554
|
+
}, [V, t, s, ce, r]);
|
|
3557
3555
|
return fe(fe({}, ve), {}, {
|
|
3558
|
-
isFocused:
|
|
3556
|
+
isFocused: j && !r,
|
|
3559
3557
|
getRootProps: C,
|
|
3560
3558
|
getInputProps: he,
|
|
3561
|
-
rootRef:
|
|
3562
|
-
inputRef:
|
|
3563
|
-
open:
|
|
3559
|
+
rootRef: O,
|
|
3560
|
+
inputRef: V,
|
|
3561
|
+
open: q(E)
|
|
3564
3562
|
});
|
|
3565
3563
|
}
|
|
3566
3564
|
function uo(e, n) {
|
|
@@ -3632,29 +3630,29 @@ const Ti = ({
|
|
|
3632
3630
|
}) => {
|
|
3633
3631
|
const [y, $] = ee(w), [b, A] = ee([]);
|
|
3634
3632
|
pe(() => {
|
|
3635
|
-
(w.length !== y.length || w.some((
|
|
3633
|
+
(w.length !== y.length || w.some((z, O) => z !== y[O])) && $(w);
|
|
3636
3634
|
}, [w]);
|
|
3637
|
-
const
|
|
3638
|
-
(
|
|
3639
|
-
const
|
|
3640
|
-
if (
|
|
3641
|
-
Q.errors.forEach((
|
|
3642
|
-
|
|
3635
|
+
const k = se(
|
|
3636
|
+
(z, O) => {
|
|
3637
|
+
const V = [];
|
|
3638
|
+
if (O.length > 0 && O.forEach((Q) => {
|
|
3639
|
+
Q.errors.forEach((I) => {
|
|
3640
|
+
I.code === "file-too-large" && V.push(
|
|
3643
3641
|
`${Q.file.name} is too large (max ${(o / 1024 / 1024).toFixed(2)}MB)`
|
|
3644
|
-
),
|
|
3642
|
+
), I.code === "file-invalid-type" && V.push(
|
|
3645
3643
|
`${Q.file.name} has an invalid file type`
|
|
3646
3644
|
);
|
|
3647
3645
|
});
|
|
3648
|
-
}), i !== void 0 && (r ? y.length : 0) +
|
|
3646
|
+
}), i !== void 0 && (r ? y.length : 0) + z.length > i && V.push(
|
|
3649
3647
|
`You can only upload up to ${i} file${i > 1 ? "s" : ""}.`
|
|
3650
|
-
),
|
|
3651
|
-
A(
|
|
3648
|
+
), V.length > 0) {
|
|
3649
|
+
A(V), n == null || n(V);
|
|
3652
3650
|
return;
|
|
3653
3651
|
} else
|
|
3654
3652
|
A([]);
|
|
3655
|
-
|
|
3656
|
-
(Q) => r ? [...Q, ...
|
|
3657
|
-
), e(
|
|
3653
|
+
z.length > 0 && ($(
|
|
3654
|
+
(Q) => r ? [...Q, ...z] : z
|
|
3655
|
+
), e(z));
|
|
3658
3656
|
},
|
|
3659
3657
|
[
|
|
3660
3658
|
e,
|
|
@@ -3664,10 +3662,10 @@ const Ti = ({
|
|
|
3664
3662
|
y,
|
|
3665
3663
|
r
|
|
3666
3664
|
]
|
|
3667
|
-
),
|
|
3668
|
-
$((
|
|
3669
|
-
}, { getRootProps:
|
|
3670
|
-
onDrop:
|
|
3665
|
+
), T = (z) => {
|
|
3666
|
+
$((O) => O.filter((V, Q) => Q !== z)), S(y);
|
|
3667
|
+
}, { getRootProps: K, getInputProps: Z, isDragActive: J, isDragReject: de } = Hn({
|
|
3668
|
+
onDrop: k,
|
|
3671
3669
|
accept: t,
|
|
3672
3670
|
multiple: r,
|
|
3673
3671
|
maxSize: o,
|
|
@@ -3678,7 +3676,7 @@ const Ti = ({
|
|
|
3678
3676
|
{
|
|
3679
3677
|
className: `
|
|
3680
3678
|
border border-style-dashed rounded-lg p-0 overflow-hidden transition
|
|
3681
|
-
${
|
|
3679
|
+
${J ? "border-color-blue-500 bg-color-blue-50" : "border-color-gray-200 bg-color-gray-50"}
|
|
3682
3680
|
${de ? "border-color-red-500 bg-color-red-50" : ""}
|
|
3683
3681
|
${l ? "opacity-50 cursor-not-allowed" : ""}
|
|
3684
3682
|
${p}
|
|
@@ -3687,25 +3685,25 @@ const Ti = ({
|
|
|
3687
3685
|
/* @__PURE__ */ a.jsxs(
|
|
3688
3686
|
"div",
|
|
3689
3687
|
{
|
|
3690
|
-
...
|
|
3688
|
+
...K(),
|
|
3691
3689
|
className: "flex flex-col items-center justify-center text-center px-6 pt-6 pb-4 cursor-pointer",
|
|
3692
3690
|
children: [
|
|
3693
|
-
/* @__PURE__ */ a.jsx("input", { ...
|
|
3691
|
+
/* @__PURE__ */ a.jsx("input", { ...Z() }),
|
|
3694
3692
|
/* @__PURE__ */ a.jsx("div", { className: `text-4xl mb-2 ${m}`, children: d }),
|
|
3695
3693
|
/* @__PURE__ */ a.jsx("p", { className: `text-sm font-medium ${u}`, children: s }),
|
|
3696
3694
|
c && /* @__PURE__ */ a.jsx("p", { className: `text-xs mt-1 ${f}`, children: c })
|
|
3697
3695
|
]
|
|
3698
3696
|
}
|
|
3699
3697
|
),
|
|
3700
|
-
b.length > 0 && /* @__PURE__ */ a.jsx("div", { className: "text-left text-sm text-color-red-600 px-6 pb-2 space-y-1", children: b.map((
|
|
3698
|
+
b.length > 0 && /* @__PURE__ */ a.jsx("div", { className: "text-left text-sm text-color-red-600 px-6 pb-2 space-y-1", children: b.map((z, O) => /* @__PURE__ */ a.jsxs("p", { children: [
|
|
3701
3699
|
"• ",
|
|
3702
|
-
|
|
3703
|
-
] },
|
|
3700
|
+
z
|
|
3701
|
+
] }, O)) }),
|
|
3704
3702
|
v && y.length > 0 && /* @__PURE__ */ a.jsx(
|
|
3705
3703
|
"ul",
|
|
3706
3704
|
{
|
|
3707
3705
|
className: `w-full ${g ? "space-y-2" : "grid grid-columns-2 gap-2"} px-4 pb-4`,
|
|
3708
|
-
children: y.map((
|
|
3706
|
+
children: y.map((z, O) => /* @__PURE__ */ a.jsxs(
|
|
3709
3707
|
"li",
|
|
3710
3708
|
{
|
|
3711
3709
|
className: "flex items-center justify-between bg-color-white rounded-md px-4 py-2 shadow-sm",
|
|
@@ -3714,30 +3712,30 @@ const Ti = ({
|
|
|
3714
3712
|
h && /* @__PURE__ */ a.jsx("div", { className: "w-10 h-10 rounded bg-color-gray-100 overflow-hidden shrink-0", children: /* @__PURE__ */ a.jsx(
|
|
3715
3713
|
"img",
|
|
3716
3714
|
{
|
|
3717
|
-
src:
|
|
3715
|
+
src: z.type.startsWith("image/") ? URL.createObjectURL(z) : "https://img.icons8.com/ios-filled/50/pdf-2.png",
|
|
3718
3716
|
className: "w-full h-full object-cover",
|
|
3719
3717
|
alt: "preview"
|
|
3720
3718
|
}
|
|
3721
3719
|
) }),
|
|
3722
|
-
/* @__PURE__ */ a.jsx("div", { className: "text-sm max-w-[200px]", children: /* @__PURE__ */ a.jsx("p", { className: "font-medium truncate text-xs text-color-gray-700", children:
|
|
3720
|
+
/* @__PURE__ */ a.jsx("div", { className: "text-sm max-w-[200px]", children: /* @__PURE__ */ a.jsx("p", { className: "font-medium truncate text-xs text-color-gray-700", children: z.name }) })
|
|
3723
3721
|
] }),
|
|
3724
3722
|
/* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
3725
3723
|
/* @__PURE__ */ a.jsxs("p", { className: "text-xs text-color-gray-400", children: [
|
|
3726
|
-
(
|
|
3724
|
+
(z.size / 1024).toFixed(2),
|
|
3727
3725
|
" KB"
|
|
3728
3726
|
] }),
|
|
3729
3727
|
/* @__PURE__ */ a.jsx(
|
|
3730
3728
|
"button",
|
|
3731
3729
|
{
|
|
3732
3730
|
className: "ml-2 p-1 bg-color-red-50 rounded-full text-color-red-500 hover:text-color-red-700 cursor-pointer",
|
|
3733
|
-
onClick: () => O
|
|
3731
|
+
onClick: () => T(O),
|
|
3734
3732
|
children: /* @__PURE__ */ a.jsx("svg", { className: "size-4", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ a.jsx("path", { d: "M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z" }) })
|
|
3735
3733
|
}
|
|
3736
3734
|
)
|
|
3737
3735
|
] })
|
|
3738
3736
|
]
|
|
3739
3737
|
},
|
|
3740
|
-
|
|
3738
|
+
O
|
|
3741
3739
|
))
|
|
3742
3740
|
}
|
|
3743
3741
|
)
|
|
@@ -4167,7 +4165,7 @@ function Co(e, n) {
|
|
|
4167
4165
|
};
|
|
4168
4166
|
return r(e), t;
|
|
4169
4167
|
}
|
|
4170
|
-
function
|
|
4168
|
+
function G(e, n, t) {
|
|
4171
4169
|
let r = [], o;
|
|
4172
4170
|
return (i) => {
|
|
4173
4171
|
let l;
|
|
@@ -4191,7 +4189,7 @@ function Z(e, n, t) {
|
|
|
4191
4189
|
return o;
|
|
4192
4190
|
};
|
|
4193
4191
|
}
|
|
4194
|
-
function
|
|
4192
|
+
function Y(e, n, t, r) {
|
|
4195
4193
|
return {
|
|
4196
4194
|
debug: () => {
|
|
4197
4195
|
var o;
|
|
@@ -4211,14 +4209,14 @@ function jo(e, n, t, r) {
|
|
|
4211
4209
|
column: t,
|
|
4212
4210
|
getValue: () => n.getValue(r),
|
|
4213
4211
|
renderValue: o,
|
|
4214
|
-
getContext:
|
|
4212
|
+
getContext: G(() => [e, t, n, i], (l, s, c, d) => ({
|
|
4215
4213
|
table: l,
|
|
4216
4214
|
column: s,
|
|
4217
4215
|
row: c,
|
|
4218
4216
|
cell: d,
|
|
4219
4217
|
getValue: d.getValue,
|
|
4220
4218
|
renderValue: d.renderValue
|
|
4221
|
-
}),
|
|
4219
|
+
}), Y(e.options, "debugCells", "cell.getContext"))
|
|
4222
4220
|
};
|
|
4223
4221
|
return e._features.forEach((l) => {
|
|
4224
4222
|
l.createCell == null || l.createCell(i, t, n, e);
|
|
@@ -4247,18 +4245,18 @@ function So(e, n, t, r) {
|
|
|
4247
4245
|
depth: t,
|
|
4248
4246
|
columnDef: s,
|
|
4249
4247
|
columns: [],
|
|
4250
|
-
getFlatColumns:
|
|
4248
|
+
getFlatColumns: G(() => [!0], () => {
|
|
4251
4249
|
var u;
|
|
4252
4250
|
return [m, ...(u = m.columns) == null ? void 0 : u.flatMap((f) => f.getFlatColumns())];
|
|
4253
|
-
},
|
|
4254
|
-
getLeafColumns:
|
|
4251
|
+
}, Y(e.options, "debugColumns", "column.getFlatColumns")),
|
|
4252
|
+
getLeafColumns: G(() => [e._getOrderColumnsFn()], (u) => {
|
|
4255
4253
|
var f;
|
|
4256
4254
|
if ((f = m.columns) != null && f.length) {
|
|
4257
4255
|
let v = m.columns.flatMap((g) => g.getLeafColumns());
|
|
4258
4256
|
return u(v);
|
|
4259
4257
|
}
|
|
4260
4258
|
return [m];
|
|
4261
|
-
},
|
|
4259
|
+
}, Y(e.options, "debugColumns", "column.getLeafColumns"))
|
|
4262
4260
|
};
|
|
4263
4261
|
for (const u of e._features)
|
|
4264
4262
|
u.createColumn == null || u.createColumn(m, e);
|
|
@@ -4296,31 +4294,31 @@ function wn(e, n, t) {
|
|
|
4296
4294
|
}
|
|
4297
4295
|
const $o = {
|
|
4298
4296
|
createTable: (e) => {
|
|
4299
|
-
e.getHeaderGroups =
|
|
4297
|
+
e.getHeaderGroups = G(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, r, o) => {
|
|
4300
4298
|
var i, l;
|
|
4301
4299
|
const s = (i = r == null ? void 0 : r.map((m) => t.find((u) => u.id === m)).filter(Boolean)) != null ? i : [], c = (l = o == null ? void 0 : o.map((m) => t.find((u) => u.id === m)).filter(Boolean)) != null ? l : [], d = t.filter((m) => !(r != null && r.includes(m.id)) && !(o != null && o.includes(m.id)));
|
|
4302
4300
|
return Je(n, [...s, ...d, ...c], e);
|
|
4303
|
-
},
|
|
4301
|
+
}, Y(e.options, be, "getHeaderGroups")), e.getCenterHeaderGroups = G(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, r, o) => (t = t.filter((i) => !(r != null && r.includes(i.id)) && !(o != null && o.includes(i.id))), Je(n, t, e, "center")), Y(e.options, be, "getCenterHeaderGroups")), e.getLeftHeaderGroups = G(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left], (n, t, r) => {
|
|
4304
4302
|
var o;
|
|
4305
4303
|
const i = (o = r == null ? void 0 : r.map((l) => t.find((s) => s.id === l)).filter(Boolean)) != null ? o : [];
|
|
4306
4304
|
return Je(n, i, e, "left");
|
|
4307
|
-
},
|
|
4305
|
+
}, Y(e.options, be, "getLeftHeaderGroups")), e.getRightHeaderGroups = G(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.right], (n, t, r) => {
|
|
4308
4306
|
var o;
|
|
4309
4307
|
const i = (o = r == null ? void 0 : r.map((l) => t.find((s) => s.id === l)).filter(Boolean)) != null ? o : [];
|
|
4310
4308
|
return Je(n, i, e, "right");
|
|
4311
|
-
},
|
|
4309
|
+
}, Y(e.options, be, "getRightHeaderGroups")), e.getFooterGroups = G(() => [e.getHeaderGroups()], (n) => [...n].reverse(), Y(e.options, be, "getFooterGroups")), e.getLeftFooterGroups = G(() => [e.getLeftHeaderGroups()], (n) => [...n].reverse(), Y(e.options, be, "getLeftFooterGroups")), e.getCenterFooterGroups = G(() => [e.getCenterHeaderGroups()], (n) => [...n].reverse(), Y(e.options, be, "getCenterFooterGroups")), e.getRightFooterGroups = G(() => [e.getRightHeaderGroups()], (n) => [...n].reverse(), Y(e.options, be, "getRightFooterGroups")), e.getFlatHeaders = G(() => [e.getHeaderGroups()], (n) => n.map((t) => t.headers).flat(), Y(e.options, be, "getFlatHeaders")), e.getLeftFlatHeaders = G(() => [e.getLeftHeaderGroups()], (n) => n.map((t) => t.headers).flat(), Y(e.options, be, "getLeftFlatHeaders")), e.getCenterFlatHeaders = G(() => [e.getCenterHeaderGroups()], (n) => n.map((t) => t.headers).flat(), Y(e.options, be, "getCenterFlatHeaders")), e.getRightFlatHeaders = G(() => [e.getRightHeaderGroups()], (n) => n.map((t) => t.headers).flat(), Y(e.options, be, "getRightFlatHeaders")), e.getCenterLeafHeaders = G(() => [e.getCenterFlatHeaders()], (n) => n.filter((t) => {
|
|
4312
4310
|
var r;
|
|
4313
4311
|
return !((r = t.subHeaders) != null && r.length);
|
|
4314
|
-
}),
|
|
4312
|
+
}), Y(e.options, be, "getCenterLeafHeaders")), e.getLeftLeafHeaders = G(() => [e.getLeftFlatHeaders()], (n) => n.filter((t) => {
|
|
4315
4313
|
var r;
|
|
4316
4314
|
return !((r = t.subHeaders) != null && r.length);
|
|
4317
|
-
}),
|
|
4315
|
+
}), Y(e.options, be, "getLeftLeafHeaders")), e.getRightLeafHeaders = G(() => [e.getRightFlatHeaders()], (n) => n.filter((t) => {
|
|
4318
4316
|
var r;
|
|
4319
4317
|
return !((r = t.subHeaders) != null && r.length);
|
|
4320
|
-
}),
|
|
4318
|
+
}), Y(e.options, be, "getRightLeafHeaders")), e.getLeafHeaders = G(() => [e.getLeftHeaderGroups(), e.getCenterHeaderGroups(), e.getRightHeaderGroups()], (n, t, r) => {
|
|
4321
4319
|
var o, i, l, s, c, d;
|
|
4322
4320
|
return [...(o = (i = n[0]) == null ? void 0 : i.headers) != null ? o : [], ...(l = (s = t[0]) == null ? void 0 : s.headers) != null ? l : [], ...(c = (d = r[0]) == null ? void 0 : d.headers) != null ? c : []].map((p) => p.getLeafHeaders()).flat();
|
|
4323
|
-
},
|
|
4321
|
+
}, Y(e.options, be, "getLeafHeaders"));
|
|
4324
4322
|
}
|
|
4325
4323
|
};
|
|
4326
4324
|
function Je(e, n, t, r) {
|
|
@@ -4418,8 +4416,8 @@ const Ro = (e, n, t, r, o, i, l) => {
|
|
|
4418
4416
|
}
|
|
4419
4417
|
return c.reverse();
|
|
4420
4418
|
},
|
|
4421
|
-
getAllCells:
|
|
4422
|
-
_getAllCellsByColumnId:
|
|
4419
|
+
getAllCells: G(() => [e.getAllLeafColumns()], (c) => c.map((d) => jo(e, s, d, d.id)), Y(e.options, "debugRows", "getAllCells")),
|
|
4420
|
+
_getAllCellsByColumnId: G(() => [s.getAllCells()], (c) => c.reduce((d, p) => (d[p.column.id] = p, d), {}), Y(e.options, "debugRows", "getAllCellsByColumnId"))
|
|
4423
4421
|
};
|
|
4424
4422
|
for (let c = 0; c < e._features.length; c++) {
|
|
4425
4423
|
const d = e._features[c];
|
|
@@ -4703,7 +4701,7 @@ const Io = {
|
|
|
4703
4701
|
onColumnOrderChange: Ce("columnOrder", e)
|
|
4704
4702
|
}),
|
|
4705
4703
|
createColumn: (e, n) => {
|
|
4706
|
-
e.getIndex =
|
|
4704
|
+
e.getIndex = G((t) => [qe(n, t)], (t) => t.findIndex((r) => r.id === e.id), Y(n.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (t) => {
|
|
4707
4705
|
var r;
|
|
4708
4706
|
return ((r = qe(n, t)[0]) == null ? void 0 : r.id) === e.id;
|
|
4709
4707
|
}, e.getIsLastColumn = (t) => {
|
|
@@ -4716,7 +4714,7 @@ const Io = {
|
|
|
4716
4714
|
e.setColumnOrder = (n) => e.options.onColumnOrderChange == null ? void 0 : e.options.onColumnOrderChange(n), e.resetColumnOrder = (n) => {
|
|
4717
4715
|
var t;
|
|
4718
4716
|
e.setColumnOrder(n ? [] : (t = e.initialState.columnOrder) != null ? t : []);
|
|
4719
|
-
}, e._getOrderColumnsFn =
|
|
4717
|
+
}, e._getOrderColumnsFn = G(() => [e.getState().columnOrder, e.getState().grouping, e.options.groupedColumnMode], (n, t, r) => (o) => {
|
|
4720
4718
|
let i = [];
|
|
4721
4719
|
if (!(n != null && n.length))
|
|
4722
4720
|
i = o;
|
|
@@ -4729,7 +4727,7 @@ const Io = {
|
|
|
4729
4727
|
i = [...i, ...s];
|
|
4730
4728
|
}
|
|
4731
4729
|
return Do(i, t, r);
|
|
4732
|
-
},
|
|
4730
|
+
}, Y(e.options, "debugTable", "_getOrderColumnsFn"));
|
|
4733
4731
|
}
|
|
4734
4732
|
}, Ct = () => ({
|
|
4735
4733
|
left: [],
|
|
@@ -4782,16 +4780,16 @@ const Io = {
|
|
|
4782
4780
|
};
|
|
4783
4781
|
},
|
|
4784
4782
|
createRow: (e, n) => {
|
|
4785
|
-
e.getCenterVisibleCells =
|
|
4783
|
+
e.getCenterVisibleCells = G(() => [e._getAllVisibleCells(), n.getState().columnPinning.left, n.getState().columnPinning.right], (t, r, o) => {
|
|
4786
4784
|
const i = [...r ?? [], ...o ?? []];
|
|
4787
4785
|
return t.filter((l) => !i.includes(l.column.id));
|
|
4788
|
-
},
|
|
4786
|
+
}, Y(n.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = G(() => [e._getAllVisibleCells(), n.getState().columnPinning.left], (t, r) => (r ?? []).map((i) => t.find((l) => l.column.id === i)).filter(Boolean).map((i) => ({
|
|
4789
4787
|
...i,
|
|
4790
4788
|
position: "left"
|
|
4791
|
-
})),
|
|
4789
|
+
})), Y(n.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = G(() => [e._getAllVisibleCells(), n.getState().columnPinning.right], (t, r) => (r ?? []).map((i) => t.find((l) => l.column.id === i)).filter(Boolean).map((i) => ({
|
|
4792
4790
|
...i,
|
|
4793
4791
|
position: "right"
|
|
4794
|
-
})),
|
|
4792
|
+
})), Y(n.options, "debugRows", "getRightVisibleCells"));
|
|
4795
4793
|
},
|
|
4796
4794
|
createTable: (e) => {
|
|
4797
4795
|
e.setColumnPinning = (n) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(n), e.resetColumnPinning = (n) => {
|
|
@@ -4805,10 +4803,10 @@ const Io = {
|
|
|
4805
4803
|
return !!((o = r.left) != null && o.length || (i = r.right) != null && i.length);
|
|
4806
4804
|
}
|
|
4807
4805
|
return !!((t = r[n]) != null && t.length);
|
|
4808
|
-
}, e.getLeftLeafColumns =
|
|
4806
|
+
}, e.getLeftLeafColumns = G(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (n, t) => (t ?? []).map((r) => n.find((o) => o.id === r)).filter(Boolean), Y(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = G(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (n, t) => (t ?? []).map((r) => n.find((o) => o.id === r)).filter(Boolean), Y(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = G(() => [e.getAllLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, r) => {
|
|
4809
4807
|
const o = [...t ?? [], ...r ?? []];
|
|
4810
4808
|
return n.filter((i) => !o.includes(i.id));
|
|
4811
|
-
},
|
|
4809
|
+
}, Y(e.options, "debugColumns", "getCenterLeafColumns"));
|
|
4812
4810
|
}
|
|
4813
4811
|
}, Qe = {
|
|
4814
4812
|
size: 150,
|
|
@@ -4839,7 +4837,7 @@ const Io = {
|
|
|
4839
4837
|
var t, r, o;
|
|
4840
4838
|
const i = n.getState().columnSizing[e.id];
|
|
4841
4839
|
return Math.min(Math.max((t = e.columnDef.minSize) != null ? t : Qe.minSize, (r = i ?? e.columnDef.size) != null ? r : Qe.size), (o = e.columnDef.maxSize) != null ? o : Qe.maxSize);
|
|
4842
|
-
}, e.getStart =
|
|
4840
|
+
}, e.getStart = G((t) => [t, qe(n, t), n.getState().columnSizing], (t, r) => r.slice(0, e.getIndex(t)).reduce((o, i) => o + i.getSize(), 0), Y(n.options, "debugColumns", "getStart")), e.getAfter = G((t) => [t, qe(n, t), n.getState().columnSizing], (t, r) => r.slice(e.getIndex(t) + 1).reduce((o, i) => o + i.getSize(), 0), Y(n.options, "debugColumns", "getAfter")), e.resetSize = () => {
|
|
4843
4841
|
n.setColumnSizing((t) => {
|
|
4844
4842
|
let {
|
|
4845
4843
|
[e.id]: r,
|
|
@@ -4878,14 +4876,14 @@ const Io = {
|
|
|
4878
4876
|
const l = e.getSize(), s = e ? e.getLeafHeaders().map((w) => [w.column.id, w.column.getSize()]) : [[r.id, r.getSize()]], c = St(i) ? Math.round(i.touches[0].clientX) : i.clientX, d = {}, p = (w, S) => {
|
|
4879
4877
|
typeof S == "number" && (n.setColumnSizingInfo((y) => {
|
|
4880
4878
|
var $, b;
|
|
4881
|
-
const A = n.options.columnResizeDirection === "rtl" ? -1 : 1,
|
|
4882
|
-
return y.columnSizingStart.forEach((
|
|
4883
|
-
let [
|
|
4884
|
-
d[
|
|
4879
|
+
const A = n.options.columnResizeDirection === "rtl" ? -1 : 1, k = (S - (($ = y == null ? void 0 : y.startOffset) != null ? $ : 0)) * A, T = Math.max(k / ((b = y == null ? void 0 : y.startSize) != null ? b : 0), -0.999999);
|
|
4880
|
+
return y.columnSizingStart.forEach((K) => {
|
|
4881
|
+
let [Z, J] = K;
|
|
4882
|
+
d[Z] = Math.round(Math.max(J + J * T, 0) * 100) / 100;
|
|
4885
4883
|
}), {
|
|
4886
4884
|
...y,
|
|
4887
|
-
deltaOffset:
|
|
4888
|
-
deltaPercentage:
|
|
4885
|
+
deltaOffset: k,
|
|
4886
|
+
deltaPercentage: T
|
|
4889
4887
|
};
|
|
4890
4888
|
}), (n.options.columnResizeMode === "onChange" || w === "end") && n.setColumnSizing((y) => ({
|
|
4891
4889
|
...y,
|
|
@@ -4995,10 +4993,10 @@ const Bo = {
|
|
|
4995
4993
|
};
|
|
4996
4994
|
},
|
|
4997
4995
|
createRow: (e, n) => {
|
|
4998
|
-
e._getAllVisibleCells =
|
|
4996
|
+
e._getAllVisibleCells = G(() => [e.getAllCells(), n.getState().columnVisibility], (t) => t.filter((r) => r.column.getIsVisible()), Y(n.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = G(() => [e.getLeftVisibleCells(), e.getCenterVisibleCells(), e.getRightVisibleCells()], (t, r, o) => [...t, ...r, ...o], Y(n.options, "debugRows", "getVisibleCells"));
|
|
4999
4997
|
},
|
|
5000
4998
|
createTable: (e) => {
|
|
5001
|
-
const n = (t, r) =>
|
|
4999
|
+
const n = (t, r) => G(() => [r(), r().filter((o) => o.getIsVisible()).map((o) => o.id).join("_")], (o) => o.filter((i) => i.getIsVisible == null ? void 0 : i.getIsVisible()), Y(e.options, "debugColumns", t));
|
|
5002
5000
|
e.getVisibleFlatColumns = n("getVisibleFlatColumns", () => e.getAllFlatColumns()), e.getVisibleLeafColumns = n("getVisibleLeafColumns", () => e.getAllLeafColumns()), e.getLeftVisibleLeafColumns = n("getLeftVisibleLeafColumns", () => e.getLeftLeafColumns()), e.getRightVisibleLeafColumns = n("getRightVisibleLeafColumns", () => e.getRightLeafColumns()), e.getCenterVisibleLeafColumns = n("getCenterVisibleLeafColumns", () => e.getCenterLeafColumns()), e.setColumnVisibility = (t) => e.options.onColumnVisibilityChange == null ? void 0 : e.options.onColumnVisibilityChange(t), e.resetColumnVisibility = (t) => {
|
|
5003
5001
|
var r;
|
|
5004
5002
|
e.setColumnVisibility(t ? {} : (r = e.initialState.columnVisibility) != null ? r : {});
|
|
@@ -5211,10 +5209,10 @@ const Go = {
|
|
|
5211
5209
|
...o,
|
|
5212
5210
|
pageCount: l
|
|
5213
5211
|
};
|
|
5214
|
-
}), e.getPageOptions =
|
|
5212
|
+
}), e.getPageOptions = G(() => [e.getPageCount()], (r) => {
|
|
5215
5213
|
let o = [];
|
|
5216
5214
|
return r && r > 0 && (o = [...new Array(r)].fill(null).map((i, l) => l)), o;
|
|
5217
|
-
},
|
|
5215
|
+
}, Y(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
|
|
5218
5216
|
const {
|
|
5219
5217
|
pageIndex: r
|
|
5220
5218
|
} = e.getState().pagination, o = e.getPageCount();
|
|
@@ -5326,10 +5324,10 @@ const Go = {
|
|
|
5326
5324
|
...l,
|
|
5327
5325
|
position: r
|
|
5328
5326
|
}));
|
|
5329
|
-
}, e.getTopRows =
|
|
5327
|
+
}, e.getTopRows = G(() => [e.getRowModel().rows, e.getState().rowPinning.top], (n, t) => e._getPinnedRows(n, t, "top"), Y(e.options, "debugRows", "getTopRows")), e.getBottomRows = G(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (n, t) => e._getPinnedRows(n, t, "bottom"), Y(e.options, "debugRows", "getBottomRows")), e.getCenterRows = G(() => [e.getRowModel().rows, e.getState().rowPinning.top, e.getState().rowPinning.bottom], (n, t, r) => {
|
|
5330
5328
|
const o = /* @__PURE__ */ new Set([...t ?? [], ...r ?? []]);
|
|
5331
5329
|
return n.filter((i) => !o.has(i.id));
|
|
5332
|
-
},
|
|
5330
|
+
}, Y(e.options, "debugRows", "getCenterRows"));
|
|
5333
5331
|
}
|
|
5334
5332
|
}, Xo = {
|
|
5335
5333
|
getInitialState: (e) => ({
|
|
@@ -5368,19 +5366,19 @@ const Go = {
|
|
|
5368
5366
|
return e.getRowModel().rows.forEach((i) => {
|
|
5369
5367
|
Tt(o, i.id, r, !0, e);
|
|
5370
5368
|
}), o;
|
|
5371
|
-
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel =
|
|
5369
|
+
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = G(() => [e.getState().rowSelection, e.getCoreRowModel()], (n, t) => Object.keys(n).length ? kt(e, t) : {
|
|
5372
5370
|
rows: [],
|
|
5373
5371
|
flatRows: [],
|
|
5374
5372
|
rowsById: {}
|
|
5375
|
-
},
|
|
5373
|
+
}, Y(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = G(() => [e.getState().rowSelection, e.getFilteredRowModel()], (n, t) => Object.keys(n).length ? kt(e, t) : {
|
|
5376
5374
|
rows: [],
|
|
5377
5375
|
flatRows: [],
|
|
5378
5376
|
rowsById: {}
|
|
5379
|
-
},
|
|
5377
|
+
}, Y(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = G(() => [e.getState().rowSelection, e.getSortedRowModel()], (n, t) => Object.keys(n).length ? kt(e, t) : {
|
|
5380
5378
|
rows: [],
|
|
5381
5379
|
flatRows: [],
|
|
5382
5380
|
rowsById: {}
|
|
5383
|
-
},
|
|
5381
|
+
}, Y(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {
|
|
5384
5382
|
const n = e.getFilteredRowModel().flatRows, {
|
|
5385
5383
|
rowSelection: t
|
|
5386
5384
|
} = e.getState();
|
|
@@ -5696,7 +5694,7 @@ function ii(e) {
|
|
|
5696
5694
|
throw process.env.NODE_ENV !== "production" ? new Error(`getRow could not find row with ID: ${u}`) : new Error();
|
|
5697
5695
|
return v;
|
|
5698
5696
|
},
|
|
5699
|
-
_getDefaultColumnDef:
|
|
5697
|
+
_getDefaultColumnDef: G(() => [o.options.defaultColumn], (u) => {
|
|
5700
5698
|
var f;
|
|
5701
5699
|
return u = (f = u) != null ? f : {}, {
|
|
5702
5700
|
header: (v) => {
|
|
@@ -5711,9 +5709,9 @@ function ii(e) {
|
|
|
5711
5709
|
...o._features.reduce((v, g) => Object.assign(v, g.getDefaultColumnDef == null ? void 0 : g.getDefaultColumnDef()), {}),
|
|
5712
5710
|
...u
|
|
5713
5711
|
};
|
|
5714
|
-
},
|
|
5712
|
+
}, Y(e, "debugColumns", "_getDefaultColumnDef")),
|
|
5715
5713
|
_getColumnDefs: () => o.options.columns,
|
|
5716
|
-
getAllColumns:
|
|
5714
|
+
getAllColumns: G(() => [o._getColumnDefs()], (u) => {
|
|
5717
5715
|
const f = function(v, g, h) {
|
|
5718
5716
|
return h === void 0 && (h = 0), v.map((w) => {
|
|
5719
5717
|
const S = So(o, w, h, g), y = w;
|
|
@@ -5721,13 +5719,13 @@ function ii(e) {
|
|
|
5721
5719
|
});
|
|
5722
5720
|
};
|
|
5723
5721
|
return f(u);
|
|
5724
|
-
},
|
|
5725
|
-
getAllFlatColumns:
|
|
5726
|
-
_getAllFlatColumnsById:
|
|
5727
|
-
getAllLeafColumns:
|
|
5722
|
+
}, Y(e, "debugColumns", "getAllColumns")),
|
|
5723
|
+
getAllFlatColumns: G(() => [o.getAllColumns()], (u) => u.flatMap((f) => f.getFlatColumns()), Y(e, "debugColumns", "getAllFlatColumns")),
|
|
5724
|
+
_getAllFlatColumnsById: G(() => [o.getAllFlatColumns()], (u) => u.reduce((f, v) => (f[v.id] = v, f), {}), Y(e, "debugColumns", "getAllFlatColumnsById")),
|
|
5725
|
+
getAllLeafColumns: G(() => [o.getAllColumns(), o._getOrderColumnsFn()], (u, f) => {
|
|
5728
5726
|
let v = u.flatMap((g) => g.getLeafColumns());
|
|
5729
5727
|
return f(v);
|
|
5730
|
-
},
|
|
5728
|
+
}, Y(e, "debugColumns", "getAllLeafColumns")),
|
|
5731
5729
|
getColumn: (u) => {
|
|
5732
5730
|
const f = o._getAllFlatColumnsById()[u];
|
|
5733
5731
|
return process.env.NODE_ENV !== "production" && !f && console.error(`[Table] Column with id '${u}' does not exist.`), f;
|
|
@@ -5741,7 +5739,7 @@ function ii(e) {
|
|
|
5741
5739
|
return o;
|
|
5742
5740
|
}
|
|
5743
5741
|
function ai() {
|
|
5744
|
-
return (e) =>
|
|
5742
|
+
return (e) => G(() => [e.options.data], (n) => {
|
|
5745
5743
|
const t = {
|
|
5746
5744
|
rows: [],
|
|
5747
5745
|
flatRows: [],
|
|
@@ -5759,7 +5757,7 @@ function ai() {
|
|
|
5759
5757
|
return s;
|
|
5760
5758
|
};
|
|
5761
5759
|
return t.rows = r(n), t;
|
|
5762
|
-
},
|
|
5760
|
+
}, Y(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
|
|
5763
5761
|
}
|
|
5764
5762
|
/**
|
|
5765
5763
|
* react-table
|
|
@@ -6061,17 +6059,17 @@ const si = {
|
|
|
6061
6059
|
size: g = "medium",
|
|
6062
6060
|
...h
|
|
6063
6061
|
}, w) => {
|
|
6064
|
-
const [S, y] = ee(""), $ = n !== void 0, b = $ ? n : S, A = p ? "border-color-red-500 focus-within:ring-color-red-500" : "border-color-gray-200",
|
|
6065
|
-
let
|
|
6066
|
-
|
|
6067
|
-
...
|
|
6068
|
-
target: { ...
|
|
6069
|
-
}), $ || y(
|
|
6062
|
+
const [S, y] = ee(""), $ = n !== void 0, b = $ ? n : S, A = p ? "border-color-red-500 focus-within:ring-color-red-500" : "border-color-gray-200", k = p ? "text-color-red-500" : s, T = (K) => {
|
|
6063
|
+
let Z = K.target.value.replace(/(?!^\+)[^\d]/g, "");
|
|
6064
|
+
Z.startsWith("+") && (Z = "+" + Z.slice(1).replace(/\+/g, "")), Z = Z.replace(/\s/g, ""), (!m || Z.replace(/^\+/, "").length <= m) && (t && t({
|
|
6065
|
+
...K,
|
|
6066
|
+
target: { ...K.target, value: Z }
|
|
6067
|
+
}), $ || y(Z));
|
|
6070
6068
|
};
|
|
6071
6069
|
return /* @__PURE__ */ a.jsxs("div", { className: "w-full", children: [
|
|
6072
6070
|
u && /* @__PURE__ */ a.jsx("label", { className: `text-sm font-medium text-color-gray-700 mb-1 block ${f}`, children: u }),
|
|
6073
6071
|
/* @__PURE__ */ a.jsxs("div", { className: `flex items-center w-full rounded-md border focus-within:ring-1 ${A} ${di[v]} ${i}`, children: [
|
|
6074
|
-
c && /* @__PURE__ */ a.jsx("span", { className: `pl-3 ${
|
|
6072
|
+
c && /* @__PURE__ */ a.jsx("span", { className: `pl-3 ${k}`, children: c }),
|
|
6075
6073
|
/* @__PURE__ */ a.jsx(
|
|
6076
6074
|
"input",
|
|
6077
6075
|
{
|
|
@@ -6081,11 +6079,11 @@ const si = {
|
|
|
6081
6079
|
inputMode: "numeric",
|
|
6082
6080
|
placeholder: e,
|
|
6083
6081
|
value: b,
|
|
6084
|
-
onChange:
|
|
6082
|
+
onChange: T,
|
|
6085
6083
|
className: `grow outline-0 w-full font-medium placeholder:font-normal bg-color-transparent ${pi[g]} ${l}`
|
|
6086
6084
|
}
|
|
6087
6085
|
),
|
|
6088
|
-
d && /* @__PURE__ */ a.jsx("span", { className: `pr-3 ${
|
|
6086
|
+
d && /* @__PURE__ */ a.jsx("span", { className: `pr-3 ${k}`, children: d })
|
|
6089
6087
|
] }),
|
|
6090
6088
|
p && /* @__PURE__ */ a.jsx("p", { className: "text-color-red-500 text-xs mt-1", children: p })
|
|
6091
6089
|
] });
|
|
@@ -6208,19 +6206,19 @@ function vi(e) {
|
|
|
6208
6206
|
return !0;
|
|
6209
6207
|
}
|
|
6210
6208
|
return !1;
|
|
6211
|
-
}, i =
|
|
6209
|
+
}, i = se(
|
|
6212
6210
|
(c) => {
|
|
6213
6211
|
e && (o(c, r.current) || (r.current = c, e(c)));
|
|
6214
6212
|
},
|
|
6215
6213
|
[e]
|
|
6216
|
-
), l =
|
|
6214
|
+
), l = se(
|
|
6217
6215
|
(c) => {
|
|
6218
6216
|
t.current = c, n.current == null && (n.current = requestAnimationFrame(() => {
|
|
6219
6217
|
n.current = null, t.current != null && i(t.current);
|
|
6220
6218
|
}));
|
|
6221
6219
|
},
|
|
6222
6220
|
[i]
|
|
6223
|
-
), s =
|
|
6221
|
+
), s = se(() => {
|
|
6224
6222
|
n.current != null && cancelAnimationFrame(n.current), n.current = null;
|
|
6225
6223
|
}, []);
|
|
6226
6224
|
return { schedule: l, flush: i, cancel: s, last: t };
|
|
@@ -6246,90 +6244,90 @@ const Yi = rr(function({
|
|
|
6246
6244
|
range: g = !1,
|
|
6247
6245
|
minDistance: h = 0
|
|
6248
6246
|
}) {
|
|
6249
|
-
const w = n !== void 0, [S, y] = ee(() => t !== void 0 ? t : g ? [i, l] : i), $ = w ? n : S, b = Array.isArray($) ? $[0] : $, [A,
|
|
6250
|
-
(
|
|
6247
|
+
const w = n !== void 0, [S, y] = ee(() => t !== void 0 ? t : g ? [i, l] : i), $ = w ? n : S, b = Array.isArray($) ? $[0] : $, [A, k] = Array.isArray($) ? $ : [$, $], T = _t[c] || _t.blue, K = yn[d] ?? yn.medium, Z = se(
|
|
6248
|
+
(P) => (P - i) / (l - i) * 100,
|
|
6251
6249
|
[i, l]
|
|
6252
|
-
),
|
|
6253
|
-
(
|
|
6254
|
-
w || y(
|
|
6250
|
+
), J = Z(b), de = Z(A), z = Z(k), O = se((P) => Math.max(i, Math.min(l, P)), [i, l]), V = se((P) => Math.round(P / s) * s, [s]), Q = vi(r), I = se(
|
|
6251
|
+
(P, re = !0) => {
|
|
6252
|
+
w || y(P), re ? Q.schedule(P) : Q.flush(P);
|
|
6255
6253
|
},
|
|
6256
6254
|
[w, Q]
|
|
6257
|
-
), ve =
|
|
6258
|
-
const
|
|
6259
|
-
|
|
6260
|
-
}, [Q, o]),
|
|
6261
|
-
(
|
|
6262
|
-
if (g && Array.isArray(
|
|
6263
|
-
let [oe, ge] =
|
|
6264
|
-
return te -
|
|
6265
|
-
} else if (!g && typeof
|
|
6266
|
-
return
|
|
6267
|
-
return
|
|
6255
|
+
), ve = se(() => {
|
|
6256
|
+
const P = Q.last.current;
|
|
6257
|
+
P != null && (Q.flush(P), o == null || o(P));
|
|
6258
|
+
}, [Q, o]), W = se(
|
|
6259
|
+
(P, re) => {
|
|
6260
|
+
if (g && Array.isArray(P)) {
|
|
6261
|
+
let [oe, ge] = P, q = V(O(oe)), te = V(O(ge));
|
|
6262
|
+
return te - q < h && (re === "min" ? te = O(q + h) : re === "max" && (q = O(te - h))), q > te && (re === "min" ? q = te : te = q), [q, te];
|
|
6263
|
+
} else if (!g && typeof P == "number")
|
|
6264
|
+
return V(O(P));
|
|
6265
|
+
return P;
|
|
6268
6266
|
},
|
|
6269
|
-
[g,
|
|
6270
|
-
),
|
|
6271
|
-
(
|
|
6267
|
+
[g, O, V, h]
|
|
6268
|
+
), j = me(null), x = se(
|
|
6269
|
+
(P) => {
|
|
6272
6270
|
var ge;
|
|
6273
|
-
const re = (ge =
|
|
6271
|
+
const re = (ge = j.current) == null ? void 0 : ge.getBoundingClientRect();
|
|
6274
6272
|
if (!re) return g ? i : b;
|
|
6275
|
-
const oe = Math.max(0, Math.min(1, (
|
|
6273
|
+
const oe = Math.max(0, Math.min(1, (P - re.left) / re.width));
|
|
6276
6274
|
return i + oe * (l - i);
|
|
6277
6275
|
},
|
|
6278
6276
|
[i, l, g, b]
|
|
6279
|
-
),
|
|
6280
|
-
(
|
|
6281
|
-
const re = Math.abs(
|
|
6277
|
+
), R = se(
|
|
6278
|
+
(P) => {
|
|
6279
|
+
const re = Math.abs(P - A), oe = Math.abs(P - k);
|
|
6282
6280
|
return re <= oe ? "min" : "max";
|
|
6283
6281
|
},
|
|
6284
|
-
[A,
|
|
6285
|
-
), [
|
|
6286
|
-
(
|
|
6287
|
-
var ge,
|
|
6282
|
+
[A, k]
|
|
6283
|
+
), [_, L] = ee(null), [B, M] = ee(null), [N, H] = ee(null), U = se(
|
|
6284
|
+
(P, re) => {
|
|
6285
|
+
var ge, q;
|
|
6288
6286
|
if (p) return;
|
|
6289
|
-
|
|
6290
|
-
const oe =
|
|
6287
|
+
P.preventDefault(), (q = (ge = P.currentTarget).setPointerCapture) == null || q.call(ge, P.pointerId), H(P.pointerId);
|
|
6288
|
+
const oe = x(P.clientX);
|
|
6291
6289
|
if (g) {
|
|
6292
|
-
const te = re ||
|
|
6293
|
-
|
|
6290
|
+
const te = re || R(oe);
|
|
6291
|
+
L(te), I(te === "min" ? W([oe, k], "min") : W([A, oe], "max"));
|
|
6294
6292
|
} else
|
|
6295
|
-
|
|
6293
|
+
L("single"), I(W(oe, "single"));
|
|
6296
6294
|
},
|
|
6297
6295
|
[
|
|
6298
6296
|
p,
|
|
6299
6297
|
g,
|
|
6300
|
-
|
|
6301
|
-
L,
|
|
6302
|
-
X,
|
|
6303
|
-
A,
|
|
6298
|
+
x,
|
|
6304
6299
|
R,
|
|
6305
|
-
|
|
6300
|
+
W,
|
|
6301
|
+
A,
|
|
6302
|
+
k,
|
|
6303
|
+
I
|
|
6306
6304
|
]
|
|
6307
|
-
),
|
|
6308
|
-
(
|
|
6309
|
-
if (p ||
|
|
6310
|
-
const re =
|
|
6311
|
-
g ?
|
|
6305
|
+
), X = se(
|
|
6306
|
+
(P) => {
|
|
6307
|
+
if (p || N == null || _ == null) return;
|
|
6308
|
+
const re = x(P.clientX);
|
|
6309
|
+
g ? _ === "min" ? I(W([re, k], "min")) : _ === "max" && I(W([A, re], "max")) : I(W(re, "single"));
|
|
6312
6310
|
},
|
|
6313
6311
|
[
|
|
6314
6312
|
p,
|
|
6315
|
-
|
|
6316
|
-
|
|
6313
|
+
N,
|
|
6314
|
+
_,
|
|
6317
6315
|
g,
|
|
6318
|
-
|
|
6319
|
-
|
|
6316
|
+
x,
|
|
6317
|
+
W,
|
|
6320
6318
|
A,
|
|
6321
|
-
|
|
6322
|
-
|
|
6319
|
+
k,
|
|
6320
|
+
I
|
|
6323
6321
|
]
|
|
6324
|
-
),
|
|
6325
|
-
|
|
6326
|
-
}, [
|
|
6327
|
-
(
|
|
6322
|
+
), ce = se(() => {
|
|
6323
|
+
_ != null && (L(null), H(null), ve());
|
|
6324
|
+
}, [_, ve]), E = se(
|
|
6325
|
+
(P, re) => {
|
|
6328
6326
|
if (p) return;
|
|
6329
|
-
const oe = g ? re === "min" ? A :
|
|
6327
|
+
const oe = g ? re === "min" ? A : k : b;
|
|
6330
6328
|
let ge = oe;
|
|
6331
|
-
const
|
|
6332
|
-
switch (
|
|
6329
|
+
const q = (l - i) / 10;
|
|
6330
|
+
switch (P.key) {
|
|
6333
6331
|
case "ArrowLeft":
|
|
6334
6332
|
case "ArrowDown":
|
|
6335
6333
|
ge = oe - s;
|
|
@@ -6339,10 +6337,10 @@ const Yi = rr(function({
|
|
|
6339
6337
|
ge = oe + s;
|
|
6340
6338
|
break;
|
|
6341
6339
|
case "PageDown":
|
|
6342
|
-
ge = oe -
|
|
6340
|
+
ge = oe - q;
|
|
6343
6341
|
break;
|
|
6344
6342
|
case "PageUp":
|
|
6345
|
-
ge = oe +
|
|
6343
|
+
ge = oe + q;
|
|
6346
6344
|
break;
|
|
6347
6345
|
case "Home":
|
|
6348
6346
|
ge = i;
|
|
@@ -6353,19 +6351,19 @@ const Yi = rr(function({
|
|
|
6353
6351
|
default:
|
|
6354
6352
|
return;
|
|
6355
6353
|
}
|
|
6356
|
-
|
|
6354
|
+
P.preventDefault(), I(g ? re === "min" ? W([ge, k], "min") : W([A, ge], "max") : W(ge, "single"), !1), o == null || o(w ? n : $);
|
|
6357
6355
|
},
|
|
6358
6356
|
[
|
|
6359
6357
|
p,
|
|
6360
6358
|
g,
|
|
6361
6359
|
b,
|
|
6362
6360
|
A,
|
|
6363
|
-
|
|
6361
|
+
k,
|
|
6364
6362
|
s,
|
|
6365
6363
|
i,
|
|
6366
6364
|
l,
|
|
6367
|
-
|
|
6368
|
-
|
|
6365
|
+
W,
|
|
6366
|
+
I,
|
|
6369
6367
|
o,
|
|
6370
6368
|
w,
|
|
6371
6369
|
n,
|
|
@@ -6373,42 +6371,42 @@ const Yi = rr(function({
|
|
|
6373
6371
|
]
|
|
6374
6372
|
);
|
|
6375
6373
|
return pe(() => {
|
|
6376
|
-
if (!
|
|
6377
|
-
const
|
|
6374
|
+
if (!_) return;
|
|
6375
|
+
const P = document.body.style.userSelect;
|
|
6378
6376
|
return document.body.style.userSelect = "none", () => {
|
|
6379
|
-
document.body.style.userSelect =
|
|
6377
|
+
document.body.style.userSelect = P;
|
|
6380
6378
|
};
|
|
6381
|
-
}, [
|
|
6379
|
+
}, [_]), /* @__PURE__ */ a.jsx("div", { className: `w-full ${m}`, children: /* @__PURE__ */ a.jsxs("div", { className: "relative flex items-center", children: [
|
|
6382
6380
|
g && /* @__PURE__ */ a.jsx("div", { className: "mr-3 text-sm font-medium text-color-gray-700 dark:text-color-gray-200 min-w-[2rem]", children: /* @__PURE__ */ a.jsx("div", { className: "range-min", children: /* @__PURE__ */ a.jsx("div", { children: A }) }) }),
|
|
6383
6381
|
/* @__PURE__ */ a.jsxs("div", { className: "w-full", children: [
|
|
6384
6382
|
/* @__PURE__ */ a.jsxs(
|
|
6385
6383
|
"div",
|
|
6386
6384
|
{
|
|
6387
|
-
ref:
|
|
6385
|
+
ref: j,
|
|
6388
6386
|
className: `
|
|
6389
|
-
relative w-full ${
|
|
6387
|
+
relative w-full ${K.track} ${T.track} rounded-full
|
|
6390
6388
|
${p ? "opacity-60 cursor-not-allowed" : "cursor-pointer"}
|
|
6391
6389
|
`,
|
|
6392
|
-
onPointerDown: (
|
|
6393
|
-
onPointerMove:
|
|
6394
|
-
onPointerUp:
|
|
6395
|
-
onPointerCancel:
|
|
6390
|
+
onPointerDown: (P) => U(P),
|
|
6391
|
+
onPointerMove: X,
|
|
6392
|
+
onPointerUp: ce,
|
|
6393
|
+
onPointerCancel: ce,
|
|
6396
6394
|
children: [
|
|
6397
6395
|
g ? /* @__PURE__ */ a.jsx(
|
|
6398
6396
|
"div",
|
|
6399
6397
|
{
|
|
6400
|
-
className: `absolute top-0 ${
|
|
6401
|
-
style: { left: `${de}%`, width: `${
|
|
6398
|
+
className: `absolute top-0 ${K.track} ${T.progress} rounded-full ${_ ? "" : "transition-all duration-150"}`,
|
|
6399
|
+
style: { left: `${de}%`, width: `${z - de}%` }
|
|
6402
6400
|
}
|
|
6403
6401
|
) : /* @__PURE__ */ a.jsx(
|
|
6404
6402
|
"div",
|
|
6405
6403
|
{
|
|
6406
|
-
className: `absolute top-0 left-0 ${
|
|
6407
|
-
style: { width: `${
|
|
6404
|
+
className: `absolute top-0 left-0 ${K.track} ${T.progress} rounded-full ${_ ? "" : "transition-all duration-150"}`,
|
|
6405
|
+
style: { width: `${J}%` }
|
|
6408
6406
|
}
|
|
6409
6407
|
),
|
|
6410
|
-
f && v.map((
|
|
6411
|
-
const oe =
|
|
6408
|
+
f && v.map((P, re) => {
|
|
6409
|
+
const oe = Z(P.value);
|
|
6412
6410
|
return /* @__PURE__ */ a.jsx(
|
|
6413
6411
|
"div",
|
|
6414
6412
|
{
|
|
@@ -6423,13 +6421,13 @@ const Yi = rr(function({
|
|
|
6423
6421
|
{
|
|
6424
6422
|
className: `
|
|
6425
6423
|
absolute top-1/2 transform -translate-y-1/2 -translate-x-1/2
|
|
6426
|
-
${
|
|
6424
|
+
${K.thumb} ${T.thumb} ${T.thumbHover} ${T.thumbActive}
|
|
6427
6425
|
rounded-full border-2 ${p ? "opacity-60 cursor-not-allowed" : "cursor-grab"}
|
|
6428
|
-
${
|
|
6429
|
-
${
|
|
6426
|
+
${_ === "single" ? "cursor-grabbing scale-110" : _ ? "" : "transition-all duration-150"}
|
|
6427
|
+
${B === "single" ? "ring-2 ring-offset-1 ring-blue-300" : ""}
|
|
6430
6428
|
shadow-md hover:shadow-lg focus:outline-none dark:shadow-none
|
|
6431
6429
|
`,
|
|
6432
|
-
style: { left: `${
|
|
6430
|
+
style: { left: `${J}%` },
|
|
6433
6431
|
tabIndex: p ? -1 : 0,
|
|
6434
6432
|
role: "slider",
|
|
6435
6433
|
"aria-orientation": "horizontal",
|
|
@@ -6437,10 +6435,10 @@ const Yi = rr(function({
|
|
|
6437
6435
|
"aria-valuemax": l,
|
|
6438
6436
|
"aria-valuenow": b,
|
|
6439
6437
|
"aria-disabled": p,
|
|
6440
|
-
onKeyDown: (
|
|
6441
|
-
onFocus: () =>
|
|
6442
|
-
onBlur: () =>
|
|
6443
|
-
onPointerDown: (
|
|
6438
|
+
onKeyDown: (P) => E(P, "single"),
|
|
6439
|
+
onFocus: () => M("single"),
|
|
6440
|
+
onBlur: () => M(null),
|
|
6441
|
+
onPointerDown: (P) => U(P, "single")
|
|
6444
6442
|
}
|
|
6445
6443
|
),
|
|
6446
6444
|
g && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
@@ -6449,10 +6447,10 @@ const Yi = rr(function({
|
|
|
6449
6447
|
{
|
|
6450
6448
|
className: `
|
|
6451
6449
|
absolute top-1/2 transform -translate-y-1/2 -translate-x-1/2 z-10
|
|
6452
|
-
${
|
|
6450
|
+
${K.thumb} ${T.thumb} ${T.thumbHover} ${T.thumbActive}
|
|
6453
6451
|
rounded-full border-2 ${p ? "opacity-60 cursor-not-allowed" : "cursor-grab"}
|
|
6454
|
-
${
|
|
6455
|
-
${
|
|
6452
|
+
${_ === "min" ? "cursor-grabbing scale-110 z-20" : _ ? "" : "transition-all duration-150"}
|
|
6453
|
+
${B === "min" ? "ring-2 ring-offset-1 ring-blue-300" : ""}
|
|
6456
6454
|
shadow-md hover:shadow-lg focus:outline-none dark:shadow-none
|
|
6457
6455
|
`,
|
|
6458
6456
|
style: { left: `${de}%` },
|
|
@@ -6464,10 +6462,10 @@ const Yi = rr(function({
|
|
|
6464
6462
|
"aria-valuenow": A,
|
|
6465
6463
|
"aria-disabled": p,
|
|
6466
6464
|
"aria-label": "Minimum value",
|
|
6467
|
-
onKeyDown: (
|
|
6468
|
-
onFocus: () =>
|
|
6469
|
-
onBlur: () =>
|
|
6470
|
-
onPointerDown: (
|
|
6465
|
+
onKeyDown: (P) => E(P, "min"),
|
|
6466
|
+
onFocus: () => M("min"),
|
|
6467
|
+
onBlur: () => M(null),
|
|
6468
|
+
onPointerDown: (P) => U(P, "min")
|
|
6471
6469
|
}
|
|
6472
6470
|
),
|
|
6473
6471
|
/* @__PURE__ */ a.jsx(
|
|
@@ -6475,25 +6473,25 @@ const Yi = rr(function({
|
|
|
6475
6473
|
{
|
|
6476
6474
|
className: `
|
|
6477
6475
|
absolute top-1/2 transform -translate-y-1/2 -translate-x-1/2 z-10
|
|
6478
|
-
${
|
|
6476
|
+
${K.thumb} ${T.thumb} ${T.thumbHover} ${T.thumbActive}
|
|
6479
6477
|
rounded-full border-2 ${p ? "opacity-60 cursor-not-allowed" : "cursor-grab"}
|
|
6480
|
-
${
|
|
6481
|
-
${
|
|
6478
|
+
${_ === "max" ? "cursor-grabbing scale-110 z-20" : _ ? "" : "transition-all duration-150"}
|
|
6479
|
+
${B === "max" ? "ring-2 ring-offset-1 ring-blue-300" : ""}
|
|
6482
6480
|
shadow-md hover:shadow-lg focus:outline-none dark:shadow-none
|
|
6483
6481
|
`,
|
|
6484
|
-
style: { left: `${
|
|
6482
|
+
style: { left: `${z}%` },
|
|
6485
6483
|
tabIndex: p ? -1 : 0,
|
|
6486
6484
|
role: "slider",
|
|
6487
6485
|
"aria-orientation": "horizontal",
|
|
6488
6486
|
"aria-valuemin": i,
|
|
6489
6487
|
"aria-valuemax": l,
|
|
6490
|
-
"aria-valuenow":
|
|
6488
|
+
"aria-valuenow": k,
|
|
6491
6489
|
"aria-disabled": p,
|
|
6492
6490
|
"aria-label": "Maximum value",
|
|
6493
|
-
onKeyDown: (
|
|
6494
|
-
onFocus: () =>
|
|
6495
|
-
onBlur: () =>
|
|
6496
|
-
onPointerDown: (
|
|
6491
|
+
onKeyDown: (P) => E(P, "max"),
|
|
6492
|
+
onFocus: () => M("max"),
|
|
6493
|
+
onBlur: () => M(null),
|
|
6494
|
+
onPointerDown: (P) => U(P, "max")
|
|
6497
6495
|
}
|
|
6498
6496
|
)
|
|
6499
6497
|
] })
|
|
@@ -6504,14 +6502,14 @@ const Yi = rr(function({
|
|
|
6504
6502
|
"div",
|
|
6505
6503
|
{
|
|
6506
6504
|
className: "relative mt-2 text-xs text-color-gray-500 dark:text-color-gray-200",
|
|
6507
|
-
children: v.map((
|
|
6508
|
-
const oe =
|
|
6505
|
+
children: v.map((P, re) => {
|
|
6506
|
+
const oe = Z(P.value);
|
|
6509
6507
|
return /* @__PURE__ */ a.jsx(
|
|
6510
6508
|
"div",
|
|
6511
6509
|
{
|
|
6512
6510
|
className: "absolute transform -translate-x-1/2 text-xs",
|
|
6513
6511
|
style: { left: `${oe}%` },
|
|
6514
|
-
children:
|
|
6512
|
+
children: P.label || P.value
|
|
6515
6513
|
},
|
|
6516
6514
|
re
|
|
6517
6515
|
);
|
|
@@ -6519,7 +6517,7 @@ const Yi = rr(function({
|
|
|
6519
6517
|
}
|
|
6520
6518
|
)
|
|
6521
6519
|
] }),
|
|
6522
|
-
u && /* @__PURE__ */ a.jsx("div", { className: "ml-3 text-sm font-medium text-color-gray-700 dark:text-color-gray-200 min-w-[2rem] text-right", children: g ? /* @__PURE__ */ a.jsx("div", { className: "range-max", children: /* @__PURE__ */ a.jsx("div", { children:
|
|
6520
|
+
u && /* @__PURE__ */ a.jsx("div", { className: "ml-3 text-sm font-medium text-color-gray-700 dark:text-color-gray-200 min-w-[2rem] text-right", children: g ? /* @__PURE__ */ a.jsx("div", { className: "range-max", children: /* @__PURE__ */ a.jsx("div", { children: k }) }) : /* @__PURE__ */ a.jsx("span", { children: b }) })
|
|
6523
6521
|
] }) });
|
|
6524
6522
|
}), Zi = ({
|
|
6525
6523
|
open: e = !1,
|
|
@@ -6546,7 +6544,7 @@ const Yi = rr(function({
|
|
|
6546
6544
|
if (e)
|
|
6547
6545
|
return document.addEventListener("keydown", u), () => document.removeEventListener("keydown", u);
|
|
6548
6546
|
}, [e, i]);
|
|
6549
|
-
const c =
|
|
6547
|
+
const c = se(() => {
|
|
6550
6548
|
i && i();
|
|
6551
6549
|
}, [i]), d = (u) => {
|
|
6552
6550
|
const f = "fixed z-50 transform transition-all duration-300 ease-in-out";
|
|
@@ -6713,25 +6711,25 @@ const Yi = rr(function({
|
|
|
6713
6711
|
}) => {
|
|
6714
6712
|
const [f, v] = ke.useState(null), g = (y, $) => {
|
|
6715
6713
|
if (t || r || !n) return;
|
|
6716
|
-
const { left: b, width: A } = y.target.getBoundingClientRect(),
|
|
6717
|
-
let
|
|
6718
|
-
|
|
6714
|
+
const { left: b, width: A } = y.target.getBoundingClientRect(), k = (y.clientX - b) / A;
|
|
6715
|
+
let T = $ - 1 + Math.ceil(k / o) * o;
|
|
6716
|
+
T = Math.min(i, Math.max(o, Math.round(T / o) * o)), n(T);
|
|
6719
6717
|
}, h = (y, $) => {
|
|
6720
6718
|
if (t || r) return;
|
|
6721
|
-
const { left: b, width: A } = y.target.getBoundingClientRect(),
|
|
6722
|
-
let
|
|
6723
|
-
|
|
6719
|
+
const { left: b, width: A } = y.target.getBoundingClientRect(), k = (y.clientX - b) / A;
|
|
6720
|
+
let T = $ - 1 + Math.ceil(k / o) * o;
|
|
6721
|
+
T = Math.min(i, Math.max(o, Math.round(T / o) * o)), v(T);
|
|
6724
6722
|
}, w = () => v(null), S = [];
|
|
6725
6723
|
for (let y = 1; y <= i; y++) {
|
|
6726
6724
|
let $ = (f !== null ? f : e) >= y, b = !$ && (f !== null ? f : e) > y - 1, A = $ ? s || ke.cloneElement(Cn, { className: `fill-color-yellow-500 ${tt[l]}` }) : c || ke.cloneElement(jn, { className: `stroke-color-gray-300 ${tt[l]}` });
|
|
6727
6725
|
if (b) {
|
|
6728
|
-
const
|
|
6726
|
+
const k = ((f !== null ? f : e) - (y - 1)) * 100;
|
|
6729
6727
|
A = /* @__PURE__ */ a.jsxs("span", { className: "relative block", children: [
|
|
6730
6728
|
/* @__PURE__ */ a.jsx(
|
|
6731
6729
|
"span",
|
|
6732
6730
|
{
|
|
6733
6731
|
className: "absolute top-0 left-0 overflow-hidden",
|
|
6734
|
-
style: { width: `${
|
|
6732
|
+
style: { width: `${k}%` },
|
|
6735
6733
|
children: s || ke.cloneElement(Cn, {
|
|
6736
6734
|
className: `fill-color-yellow-500 ${tt[l]}`
|
|
6737
6735
|
})
|
|
@@ -6747,8 +6745,8 @@ const Yi = rr(function({
|
|
|
6747
6745
|
"span",
|
|
6748
6746
|
{
|
|
6749
6747
|
className: `inline-block ${r ? "opacity-50 cursor-not-allowed" : "cursor-pointer"}`,
|
|
6750
|
-
onClick: (
|
|
6751
|
-
onMouseMove: (
|
|
6748
|
+
onClick: (k) => g(k, y),
|
|
6749
|
+
onMouseMove: (k) => h(k, y),
|
|
6752
6750
|
onMouseLeave: w,
|
|
6753
6751
|
tabIndex: t || r ? -1 : 0,
|
|
6754
6752
|
"aria-label": `Rate ${y}`,
|
|
@@ -6808,31 +6806,31 @@ const Yi = rr(function({
|
|
|
6808
6806
|
tablet: $,
|
|
6809
6807
|
desktop: b
|
|
6810
6808
|
}) => {
|
|
6811
|
-
const A = hi(),
|
|
6809
|
+
const A = hi(), k = ze(
|
|
6812
6810
|
y == null ? void 0 : y.perview,
|
|
6813
6811
|
$ == null ? void 0 : $.perview,
|
|
6814
6812
|
b == null ? void 0 : b.perview,
|
|
6815
6813
|
c,
|
|
6816
6814
|
A
|
|
6817
|
-
),
|
|
6815
|
+
), T = ze(
|
|
6818
6816
|
y == null ? void 0 : y.gap,
|
|
6819
6817
|
$ == null ? void 0 : $.gap,
|
|
6820
6818
|
b == null ? void 0 : b.gap,
|
|
6821
6819
|
d,
|
|
6822
6820
|
A
|
|
6823
|
-
),
|
|
6821
|
+
), K = ze(
|
|
6824
6822
|
y == null ? void 0 : y.showArrows,
|
|
6825
6823
|
$ == null ? void 0 : $.showArrows,
|
|
6826
6824
|
b == null ? void 0 : b.showArrows,
|
|
6827
6825
|
o,
|
|
6828
6826
|
A
|
|
6829
|
-
),
|
|
6827
|
+
), Z = ze(
|
|
6830
6828
|
y == null ? void 0 : y.showIndicators,
|
|
6831
6829
|
$ == null ? void 0 : $.showIndicators,
|
|
6832
6830
|
b == null ? void 0 : b.showIndicators,
|
|
6833
6831
|
r,
|
|
6834
6832
|
A
|
|
6835
|
-
),
|
|
6833
|
+
), J = ze(
|
|
6836
6834
|
y == null ? void 0 : y.showThumbs,
|
|
6837
6835
|
$ == null ? void 0 : $.showThumbs,
|
|
6838
6836
|
b == null ? void 0 : b.showThumbs,
|
|
@@ -6844,51 +6842,51 @@ const Yi = rr(function({
|
|
|
6844
6842
|
b == null ? void 0 : b.swipeable,
|
|
6845
6843
|
f,
|
|
6846
6844
|
A
|
|
6847
|
-
),
|
|
6848
|
-
s &&
|
|
6849
|
-
),
|
|
6850
|
-
s &&
|
|
6851
|
-
},
|
|
6852
|
-
s &&
|
|
6845
|
+
), z = e.length, O = Math.min(Math.max(k, 0.1), z), [V, Q] = ee(0), [I, ve] = ee(!1), [W, j] = ee(!1), [x, R] = ee(0), _ = me(null), L = me(0), B = me(0), M = O >= z ? 0 : Math.max(0, z - O), N = (q) => Math.max(0, Math.min(q, M)), H = (q) => Q(
|
|
6846
|
+
s && M > 0 ? (q % (M + 1) + (M + 1)) % (M + 1) : N(q)
|
|
6847
|
+
), U = () => {
|
|
6848
|
+
s && M > 0 ? Q(V === 0 ? M : V - 1) : H(V - 1);
|
|
6849
|
+
}, X = () => {
|
|
6850
|
+
s && M > 0 ? Q(V >= M ? 0 : V + 1) : H(V + 1);
|
|
6853
6851
|
};
|
|
6854
6852
|
pe(() => {
|
|
6855
|
-
if (!i || u &&
|
|
6853
|
+
if (!i || u && I || W || M === 0)
|
|
6856
6854
|
return;
|
|
6857
|
-
const
|
|
6855
|
+
const q = setInterval(() => {
|
|
6858
6856
|
Q((te) => {
|
|
6859
6857
|
const je = te + 1;
|
|
6860
|
-
return je >
|
|
6858
|
+
return je > M ? s ? 0 : te : je;
|
|
6861
6859
|
});
|
|
6862
6860
|
}, l);
|
|
6863
|
-
return () => clearInterval(
|
|
6861
|
+
return () => clearInterval(q);
|
|
6864
6862
|
}, [
|
|
6865
6863
|
i,
|
|
6866
6864
|
l,
|
|
6867
|
-
|
|
6865
|
+
I,
|
|
6868
6866
|
u,
|
|
6869
|
-
|
|
6870
|
-
|
|
6867
|
+
W,
|
|
6868
|
+
M,
|
|
6871
6869
|
s
|
|
6872
6870
|
]), pe(() => {
|
|
6873
|
-
|
|
6874
|
-
}, [
|
|
6875
|
-
const
|
|
6876
|
-
!de ||
|
|
6877
|
-
},
|
|
6878
|
-
|
|
6879
|
-
},
|
|
6880
|
-
if (!
|
|
6881
|
-
Math.abs(
|
|
6871
|
+
V > M && Q(Math.min(V, M));
|
|
6872
|
+
}, [M, V]);
|
|
6873
|
+
const ce = (q, te) => {
|
|
6874
|
+
!de || M === 0 || (j(!0), L.current = g === "horizontal" ? q : te, B.current = L.current);
|
|
6875
|
+
}, E = (q, te) => {
|
|
6876
|
+
W && (B.current = g === "horizontal" ? q : te, R(B.current - L.current));
|
|
6877
|
+
}, P = () => {
|
|
6878
|
+
if (!W) return;
|
|
6879
|
+
Math.abs(B.current - L.current) > 50 && (B.current < L.current ? X() : U()), j(!1), R(0);
|
|
6882
6880
|
}, re = () => {
|
|
6883
|
-
const
|
|
6881
|
+
const q = g === "horizontal" ? "X" : "Y";
|
|
6884
6882
|
let te = 0;
|
|
6885
|
-
if (
|
|
6886
|
-
const
|
|
6887
|
-
te =
|
|
6883
|
+
if (W && _.current && M > 0) {
|
|
6884
|
+
const F = g === "horizontal" ? _.current.offsetWidth : _.current.offsetHeight;
|
|
6885
|
+
te = x / F * 100 * (O / z);
|
|
6888
6886
|
}
|
|
6889
|
-
const Se = Math.min(
|
|
6890
|
-
return `translate${
|
|
6891
|
-
}, oe = () =>
|
|
6887
|
+
const Se = Math.min(V, M) * (100 / z) - te, C = V >= M, he = V <= 0 ? 0 : C ? T / (k / 2) : T / k;
|
|
6888
|
+
return `translate${q}(calc(-${Se}% - ${he}px))`;
|
|
6889
|
+
}, oe = () => O >= z ? 1 : Math.floor(M) + 1, ge = () => M === 0 ? 0 : Math.round(V / M * (oe() - 1));
|
|
6892
6890
|
return /* @__PURE__ */ a.jsxs(
|
|
6893
6891
|
"div",
|
|
6894
6892
|
{
|
|
@@ -6900,53 +6898,53 @@ const Yi = rr(function({
|
|
|
6900
6898
|
/* @__PURE__ */ a.jsxs(
|
|
6901
6899
|
"div",
|
|
6902
6900
|
{
|
|
6903
|
-
ref:
|
|
6904
|
-
className: `w-full overflow-hidden relative ${de &&
|
|
6901
|
+
ref: _,
|
|
6902
|
+
className: `w-full overflow-hidden relative ${de && M > 0 ? W ? "cursor-grabbing" : "cursor-grab" : "cursor-default"}`,
|
|
6905
6903
|
style: {
|
|
6906
|
-
height:
|
|
6904
|
+
height: J ? `calc(${t} - ${v + 20}px)` : t
|
|
6907
6905
|
},
|
|
6908
|
-
onMouseDown: (
|
|
6909
|
-
|
|
6906
|
+
onMouseDown: (q) => {
|
|
6907
|
+
q.preventDefault(), ce(q.clientX, q.clientY);
|
|
6910
6908
|
},
|
|
6911
|
-
onMouseMove: (
|
|
6912
|
-
onMouseUp:
|
|
6913
|
-
onMouseLeave:
|
|
6914
|
-
onTouchStart: (
|
|
6915
|
-
onTouchMove: (
|
|
6916
|
-
onTouchEnd:
|
|
6909
|
+
onMouseMove: (q) => E(q.clientX, q.clientY),
|
|
6910
|
+
onMouseUp: P,
|
|
6911
|
+
onMouseLeave: P,
|
|
6912
|
+
onTouchStart: (q) => ce(q.touches[0].clientX, q.touches[0].clientY),
|
|
6913
|
+
onTouchMove: (q) => E(q.touches[0].clientX, q.touches[0].clientY),
|
|
6914
|
+
onTouchEnd: P,
|
|
6917
6915
|
children: [
|
|
6918
6916
|
/* @__PURE__ */ a.jsx(
|
|
6919
6917
|
"div",
|
|
6920
6918
|
{
|
|
6921
6919
|
className: `flex ${g === "horizontal" ? "flex-row" : "flex-col"} transition-all duration-300 ease-in-out`,
|
|
6922
6920
|
style: {
|
|
6923
|
-
width: g === "vertical" ? "100%" : `calc(${
|
|
6924
|
-
height: g === "vertical" ? `${
|
|
6921
|
+
width: g === "vertical" ? "100%" : `calc(${z * 100 / O}% + ${(z - 1) * T}px)`,
|
|
6922
|
+
height: g === "vertical" ? `${z * 100 / O}%` : "100%",
|
|
6925
6923
|
transform: re(),
|
|
6926
|
-
gap: `${
|
|
6927
|
-
transitionProperty:
|
|
6924
|
+
gap: `${T}px`,
|
|
6925
|
+
transitionProperty: W ? "none" : "transform"
|
|
6928
6926
|
},
|
|
6929
|
-
children: e.map((
|
|
6927
|
+
children: e.map((q, te) => /* @__PURE__ */ a.jsx(
|
|
6930
6928
|
"div",
|
|
6931
6929
|
{
|
|
6932
6930
|
className: "shrink-0 flex items-center justify-center",
|
|
6933
6931
|
style: {
|
|
6934
|
-
width: g === "horizontal" ? `calc(${100 /
|
|
6935
|
-
height: g === "vertical" ? `calc(${100 /
|
|
6932
|
+
width: g === "horizontal" ? `calc(${100 / z}% - ${T / k}px)` : "100%",
|
|
6933
|
+
height: g === "vertical" ? `calc(${100 / z}% - ${T * (z - 1) / z}px)` : "100%"
|
|
6936
6934
|
},
|
|
6937
|
-
onClick: () => !
|
|
6938
|
-
children:
|
|
6935
|
+
onClick: () => !W && (p == null ? void 0 : p(te)),
|
|
6936
|
+
children: q
|
|
6939
6937
|
},
|
|
6940
6938
|
te
|
|
6941
6939
|
))
|
|
6942
6940
|
}
|
|
6943
6941
|
),
|
|
6944
|
-
|
|
6942
|
+
K && M > 0 && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
6945
6943
|
/* @__PURE__ */ a.jsx(
|
|
6946
6944
|
"button",
|
|
6947
6945
|
{
|
|
6948
6946
|
"aria-label": "prev",
|
|
6949
|
-
onClick:
|
|
6947
|
+
onClick: U,
|
|
6950
6948
|
className: `absolute z-20 bg-color-white/80 border border-color-gray-300 rounded-full w-8 h-8 md:w-10 md:h-10 flex items-center justify-center text-sm md:text-lg font-bold text-color-gray-800 hover:bg-color-white transition-color cursor-pointer
|
|
6951
6949
|
${g === "horizontal" ? "left-1 md:left-2 top-1/2 -translate-y-1/2" : "left-1/2 top-1 md:top-2 -translate-x-1/2"}`,
|
|
6952
6950
|
children: w || (g === "horizontal" ? "‹" : "↑")
|
|
@@ -6956,24 +6954,24 @@ const Yi = rr(function({
|
|
|
6956
6954
|
"button",
|
|
6957
6955
|
{
|
|
6958
6956
|
"aria-label": "next",
|
|
6959
|
-
onClick:
|
|
6957
|
+
onClick: X,
|
|
6960
6958
|
className: `absolute z-20 bg-color-white/80 border border-color-gray-300 rounded-full w-8 h-8 md:w-10 md:h-10 flex items-center justify-center text-sm md:text-lg font-bold text-color-gray-800 hover:bg-color-white transition-color cursor-pointer
|
|
6961
6959
|
${g === "horizontal" ? "right-1 md:right-2 top-1/2 -translate-y-1/2" : "left-1/2 bottom-1 md:bottom-2 -translate-x-1/2"}`,
|
|
6962
6960
|
children: h || (g === "horizontal" ? "›" : "↓")
|
|
6963
6961
|
}
|
|
6964
6962
|
)
|
|
6965
6963
|
] }),
|
|
6966
|
-
|
|
6964
|
+
Z && oe() > 1 && /* @__PURE__ */ a.jsx(
|
|
6967
6965
|
"div",
|
|
6968
6966
|
{
|
|
6969
6967
|
className: `uniui-indicator flex gap-1 mt-2 md:mt-3 justify-center absolute bg-color-white/90 py-1 px-[5px] rounded-full ${g === "horizontal" ? "bottom-2 md:bottom-3 left-1/2 -translate-x-1/2" : "top-1/2 right-2 md:right-3 -translate-y-1/2 rotate-90"} z-10`,
|
|
6970
6968
|
children: Array.from({ length: oe() }).map(
|
|
6971
|
-
(
|
|
6969
|
+
(q, te) => /* @__PURE__ */ a.jsx(
|
|
6972
6970
|
"button",
|
|
6973
6971
|
{
|
|
6974
|
-
onClick: () =>
|
|
6972
|
+
onClick: () => H(
|
|
6975
6973
|
Math.round(
|
|
6976
|
-
te / (oe() - 1) *
|
|
6974
|
+
te / (oe() - 1) * M
|
|
6977
6975
|
)
|
|
6978
6976
|
),
|
|
6979
6977
|
className: `w-2 h-2 md:w-[10px] md:h-[10px] rounded-full transition-color hover:bg-color-gray-600 cursor-pointer ${te === ge() ? "bg-color-gray-800" : "bg-color-gray-400"}`
|
|
@@ -6986,8 +6984,8 @@ const Yi = rr(function({
|
|
|
6986
6984
|
]
|
|
6987
6985
|
}
|
|
6988
6986
|
),
|
|
6989
|
-
|
|
6990
|
-
const je = te === Math.round(
|
|
6987
|
+
J && /* @__PURE__ */ a.jsx("div", { className: "uniui-thumb flex gap-1 md:gap-2 mt-2 md:mt-3 justify-center flex-wrap", children: e.map((q, te) => {
|
|
6988
|
+
const je = te === Math.round(V), Se = A === "mobile" ? v * 0.8 : v;
|
|
6991
6989
|
return /* @__PURE__ */ a.jsx(
|
|
6992
6990
|
"div",
|
|
6993
6991
|
{
|
|
@@ -6995,18 +6993,18 @@ const Yi = rr(function({
|
|
|
6995
6993
|
const C = Math.max(
|
|
6996
6994
|
0,
|
|
6997
6995
|
Math.min(
|
|
6998
|
-
|
|
6999
|
-
te - Math.floor(
|
|
6996
|
+
M,
|
|
6997
|
+
te - Math.floor(O / 2)
|
|
7000
6998
|
)
|
|
7001
6999
|
);
|
|
7002
|
-
|
|
7000
|
+
H(C);
|
|
7003
7001
|
},
|
|
7004
7002
|
className: `overflow-hidden rounded-md cursor-pointer transition-all hover:opacity-100 ${je ? "border-2 border-color-gray-800 opacity-100 scale-105" : "border-2 border-color-gray-300 opacity-70"}`,
|
|
7005
7003
|
style: {
|
|
7006
7004
|
width: Se,
|
|
7007
7005
|
height: Se
|
|
7008
7006
|
},
|
|
7009
|
-
children:
|
|
7007
|
+
children: q
|
|
7010
7008
|
},
|
|
7011
7009
|
te
|
|
7012
7010
|
);
|
|
@@ -7513,8 +7511,8 @@ function oa({ items: e, trigger: n, className: t, dropdownItemClass: r, position
|
|
|
7513
7511
|
if (o === "fixed")
|
|
7514
7512
|
S + g.width > h && (S = h - g.width - 12), S < 12 && (S = 12), y + g.height > w && (y = b - g.height), y < 12 && (y = 12);
|
|
7515
7513
|
else {
|
|
7516
|
-
const A = window.scrollX,
|
|
7517
|
-
S - A + g.width > h && (S = A + h - g.width - 12), S < A + 12 && (S = A + 12), y -
|
|
7514
|
+
const A = window.scrollX, k = window.scrollY;
|
|
7515
|
+
S - A + g.width > h && (S = A + h - g.width - 12), S < A + 12 && (S = A + 12), y - k + g.height > w && (y = b - g.height), y < k + 12 && (y = k + 12);
|
|
7518
7516
|
}
|
|
7519
7517
|
(S !== $ || y !== b) && c({ top: y, left: S }), setTimeout(() => {
|
|
7520
7518
|
p(!0);
|
|
@@ -7849,29 +7847,29 @@ const $i = ({
|
|
|
7849
7847
|
minimumDate: w,
|
|
7850
7848
|
maxDate: S
|
|
7851
7849
|
}) => {
|
|
7852
|
-
const [y, $] = ee(!1), [b, A] = ee(null), [
|
|
7850
|
+
const [y, $] = ee(!1), [b, A] = ee(null), [k, T] = ee(
|
|
7853
7851
|
g || h ? /* @__PURE__ */ new Date() : v ? new Date(typeof v == "string" ? parseInt(v) : v) : /* @__PURE__ */ new Date()
|
|
7854
|
-
), [
|
|
7852
|
+
), [K, Z] = ee(
|
|
7855
7853
|
u ? new Date(u) : v && !u ? new Date(typeof v == "string" ? parseInt(v) : v) : null
|
|
7856
|
-
), [
|
|
7854
|
+
), [J, de] = ee(g ? new Date(g) : null), [z, O] = ee(h ? new Date(h) : null), [V, Q] = ee(null), [I, ve] = ee({ hour: 12, minute: 0, ampm: "AM" }), W = me(null), [j, x] = ee(
|
|
7857
7855
|
u ? new Date(u) : v && !u ? new Date(typeof v == "string" ? parseInt(v) : v) : null
|
|
7858
|
-
), [
|
|
7856
|
+
), [R, _] = ee(g ? new Date(g) : null), [L, B] = ee(h ? new Date(h) : null);
|
|
7859
7857
|
pe(() => {
|
|
7860
7858
|
if (u)
|
|
7861
|
-
|
|
7859
|
+
Z(new Date(u)), x(new Date(u));
|
|
7862
7860
|
else if (!u && v) {
|
|
7863
7861
|
const C = new Date(typeof v == "string" ? parseInt(v) : v);
|
|
7864
|
-
|
|
7862
|
+
Z(C), x(C);
|
|
7865
7863
|
} else
|
|
7866
|
-
|
|
7864
|
+
Z(null), x(null);
|
|
7867
7865
|
}, [u, v]), pe(() => {
|
|
7868
|
-
g && (de(new Date(g)),
|
|
7866
|
+
g && (de(new Date(g)), _(new Date(g)), Z(new Date(g)), x(new Date(g)));
|
|
7869
7867
|
}, [g]), pe(() => {
|
|
7870
|
-
h && (
|
|
7868
|
+
h && (O(new Date(h)), B(new Date(h)), Z(new Date(h)), x(new Date(h)));
|
|
7871
7869
|
}, [h]);
|
|
7872
|
-
const
|
|
7873
|
-
C.stopPropagation(), A(C.currentTarget), $(!0),
|
|
7874
|
-
},
|
|
7870
|
+
const M = (C) => {
|
|
7871
|
+
C.stopPropagation(), A(C.currentTarget), $(!0), j ? T(new Date(j)) : v && !j && T(new Date(typeof v == "string" ? parseInt(v) : v));
|
|
7872
|
+
}, N = (C) => {
|
|
7875
7873
|
if (p && C.getTime() < p || m && C.getTime() > m || f && C.getTime() > (/* @__PURE__ */ new Date()).setHours(23, 59, 59, 999)) return !0;
|
|
7876
7874
|
if (S) {
|
|
7877
7875
|
const ie = typeof S == "string" ? new Date(S) : typeof S == "number" ? new Date(S) : S;
|
|
@@ -7882,102 +7880,102 @@ const $i = ({
|
|
|
7882
7880
|
if (C.getTime() < ie.getTime()) return !0;
|
|
7883
7881
|
}
|
|
7884
7882
|
return !1;
|
|
7885
|
-
},
|
|
7886
|
-
n === "inline" &&
|
|
7883
|
+
}, H = (C) => {
|
|
7884
|
+
n === "inline" && W.current && !W.current.contains(C.target) && (e === "single" ? K || Z(null) : e === "range" && (!J || !z) && (de(null), O(null)), $(!1));
|
|
7887
7885
|
};
|
|
7888
|
-
pe(() => (y ? document.addEventListener("mousedown",
|
|
7889
|
-
document.removeEventListener("mousedown",
|
|
7886
|
+
pe(() => (y ? document.addEventListener("mousedown", H) : document.removeEventListener("mousedown", H), () => {
|
|
7887
|
+
document.removeEventListener("mousedown", H);
|
|
7890
7888
|
}), [y]);
|
|
7891
|
-
const
|
|
7892
|
-
!C ||
|
|
7893
|
-
},
|
|
7894
|
-
if (!C ||
|
|
7889
|
+
const U = (C) => {
|
|
7890
|
+
!C || N(C) || (e === "single" ? Z(C) : e === "range" && (!J || J && z ? (de(C), O(null)) : C >= J ? O(C) : de(C)));
|
|
7891
|
+
}, X = (C) => {
|
|
7892
|
+
if (!C || N(C)) {
|
|
7895
7893
|
Q(null);
|
|
7896
7894
|
return;
|
|
7897
7895
|
}
|
|
7898
|
-
e === "range" &&
|
|
7899
|
-
},
|
|
7896
|
+
e === "range" && J && !z && Q(C);
|
|
7897
|
+
}, ce = () => {
|
|
7900
7898
|
Q(null);
|
|
7901
|
-
},
|
|
7899
|
+
}, E = () => {
|
|
7902
7900
|
if ($(!1), e === "single") {
|
|
7903
|
-
const C = r ? /* @__PURE__ */ new Date() :
|
|
7901
|
+
const C = r ? /* @__PURE__ */ new Date() : K, ie = C ? new Date(
|
|
7904
7902
|
C.getFullYear(),
|
|
7905
7903
|
C.getMonth(),
|
|
7906
7904
|
C.getDate(),
|
|
7907
|
-
|
|
7908
|
-
|
|
7905
|
+
I.ampm === "PM" && I.hour !== 12 ? I.hour + 12 : I.ampm === "AM" && I.hour === 12 ? 0 : I.hour,
|
|
7906
|
+
I.minute
|
|
7909
7907
|
) : null;
|
|
7910
|
-
|
|
7908
|
+
x(ie);
|
|
7911
7909
|
const he = ie ? ie.getTime() : null;
|
|
7912
7910
|
i == null || i(he), l == null || l(he);
|
|
7913
7911
|
} else if (e === "range") {
|
|
7914
|
-
|
|
7912
|
+
_(J), B(z);
|
|
7915
7913
|
const C = {
|
|
7916
|
-
startDate:
|
|
7917
|
-
endDate:
|
|
7914
|
+
startDate: J ? J.getTime() : null,
|
|
7915
|
+
endDate: z ? z.getTime() : null
|
|
7918
7916
|
};
|
|
7919
7917
|
i == null || i(C), l == null || l(C);
|
|
7920
7918
|
}
|
|
7921
|
-
},
|
|
7922
|
-
$(!1),
|
|
7919
|
+
}, P = () => {
|
|
7920
|
+
$(!1), Z(j), de(R), O(L), T(j ? new Date(j) : /* @__PURE__ */ new Date()), s == null || s();
|
|
7923
7921
|
}, re = () => {
|
|
7924
|
-
const C = new Date(
|
|
7925
|
-
for (let ne = 0; ne <
|
|
7926
|
-
|
|
7922
|
+
const C = new Date(k.getFullYear(), k.getMonth(), 1), ie = new Date(k.getFullYear(), k.getMonth() + 1, 0), he = (/* @__PURE__ */ new Date()).setHours(23, 59, 59, 999), F = [], D = C.getDay();
|
|
7923
|
+
for (let ne = 0; ne < D; ne++)
|
|
7924
|
+
F.push(null);
|
|
7927
7925
|
for (let ne = 1; ne <= ie.getDate(); ne++) {
|
|
7928
|
-
const xe = new Date(
|
|
7929
|
-
f && xe.getTime() > he ||
|
|
7926
|
+
const xe = new Date(k.getFullYear(), k.getMonth(), ne);
|
|
7927
|
+
f && xe.getTime() > he || F.push(xe);
|
|
7930
7928
|
}
|
|
7931
|
-
return
|
|
7929
|
+
return F;
|
|
7932
7930
|
}, oe = () => {
|
|
7933
7931
|
if (w) {
|
|
7934
7932
|
const C = typeof w == "string" ? new Date(w) : typeof w == "number" ? new Date(w) : w;
|
|
7935
|
-
if (
|
|
7933
|
+
if (k.getFullYear() < C.getFullYear() || k.getFullYear() === C.getFullYear() && k.getMonth() <= C.getMonth()) return !1;
|
|
7936
7934
|
}
|
|
7937
7935
|
if (p) {
|
|
7938
7936
|
const C = new Date(p);
|
|
7939
|
-
if (
|
|
7937
|
+
if (k.getFullYear() < C.getFullYear() || k.getFullYear() === C.getFullYear() && k.getMonth() <= C.getMonth()) return !1;
|
|
7940
7938
|
}
|
|
7941
7939
|
return !0;
|
|
7942
7940
|
}, ge = () => {
|
|
7943
7941
|
if (S) {
|
|
7944
7942
|
const C = typeof S == "string" ? new Date(S) : typeof S == "number" ? new Date(S) : S;
|
|
7945
|
-
if (
|
|
7943
|
+
if (k.getFullYear() > C.getFullYear() || k.getFullYear() === C.getFullYear() && k.getMonth() >= C.getMonth()) return !1;
|
|
7946
7944
|
}
|
|
7947
7945
|
if (m) {
|
|
7948
7946
|
const C = new Date(m);
|
|
7949
|
-
if (
|
|
7947
|
+
if (k.getFullYear() > C.getFullYear() || k.getFullYear() === C.getFullYear() && k.getMonth() >= C.getMonth()) return !1;
|
|
7950
7948
|
}
|
|
7951
7949
|
if (f) {
|
|
7952
7950
|
const C = /* @__PURE__ */ new Date();
|
|
7953
|
-
if (
|
|
7951
|
+
if (k.getFullYear() > C.getFullYear() || k.getFullYear() === C.getFullYear() && k.getMonth() >= C.getMonth()) return !1;
|
|
7954
7952
|
}
|
|
7955
7953
|
return !0;
|
|
7956
|
-
},
|
|
7954
|
+
}, q = (C) => {
|
|
7957
7955
|
if (!C) return !1;
|
|
7958
7956
|
if (e === "single")
|
|
7959
|
-
return (
|
|
7957
|
+
return (K == null ? void 0 : K.toDateString()) === C.toDateString();
|
|
7960
7958
|
if (e === "range") {
|
|
7961
|
-
if (
|
|
7962
|
-
const ie =
|
|
7959
|
+
if (J && !z && V) {
|
|
7960
|
+
const ie = J < V ? J : V, he = J < V ? V : J;
|
|
7963
7961
|
return C >= ie && C <= he;
|
|
7964
7962
|
}
|
|
7965
|
-
return
|
|
7963
|
+
return J && z && C >= J && C <= z;
|
|
7966
7964
|
}
|
|
7967
7965
|
return !1;
|
|
7968
7966
|
}, te = (C, ie) => {
|
|
7969
7967
|
if (!C)
|
|
7970
|
-
return e === "range" ? ie === "end" ? "End Date" : "Start Date" : r ? `${String(
|
|
7968
|
+
return e === "range" ? ie === "end" ? "End Date" : "Start Date" : r ? `${String(I.hour).padStart(2, "0")}:${String(I.minute).padStart(2, "0")} ${I.ampm}` : c;
|
|
7971
7969
|
if (r)
|
|
7972
|
-
return `${String(
|
|
7973
|
-
const he = C.getDate().toString().padStart(2, "0"),
|
|
7974
|
-
return `${he} ${
|
|
7970
|
+
return `${String(I.hour).padStart(2, "0")}:${String(I.minute).padStart(2, "0")} ${I.ampm}`;
|
|
7971
|
+
const he = C.getDate().toString().padStart(2, "0"), F = kn[C.getMonth()], D = C.getFullYear(), ne = t ? ` ${String(I.hour).padStart(2, "0")}:${String(I.minute).padStart(2, "0")} ${I.ampm}` : "";
|
|
7972
|
+
return `${he} ${F} ${D}${ne}`;
|
|
7975
7973
|
}, je = /* @__PURE__ */ a.jsxs("div", { className: "flex items-center justify-between w-full border border-color-gray-300 rounded-md p-2", children: [
|
|
7976
7974
|
/* @__PURE__ */ a.jsx(
|
|
7977
7975
|
"select",
|
|
7978
7976
|
{
|
|
7979
|
-
value:
|
|
7980
|
-
onChange: (C) => ve({ ...
|
|
7977
|
+
value: I.hour,
|
|
7978
|
+
onChange: (C) => ve({ ...I, hour: parseInt(C.target.value) }),
|
|
7981
7979
|
className: "w-16 border-0 text-center bg-color-transparent outline-0",
|
|
7982
7980
|
children: Array.from({ length: 12 }, (C, ie) => ie + 1).map((C) => /* @__PURE__ */ a.jsx("option", { value: C, children: C.toString().padStart(2, "0") }, C))
|
|
7983
7981
|
}
|
|
@@ -7985,8 +7983,8 @@ const $i = ({
|
|
|
7985
7983
|
/* @__PURE__ */ a.jsx(
|
|
7986
7984
|
"select",
|
|
7987
7985
|
{
|
|
7988
|
-
value:
|
|
7989
|
-
onChange: (C) => ve({ ...
|
|
7986
|
+
value: I.minute,
|
|
7987
|
+
onChange: (C) => ve({ ...I, minute: parseInt(C.target.value) }),
|
|
7990
7988
|
className: "w-16 border-0 text-center bg-color-transparent outline-0 border-l border-color-gray-300",
|
|
7991
7989
|
children: Array.from({ length: 60 }, (C, ie) => ie).map((C) => /* @__PURE__ */ a.jsx("option", { value: C, children: C.toString().padStart(2, "0") }, C))
|
|
7992
7990
|
}
|
|
@@ -7994,8 +7992,8 @@ const $i = ({
|
|
|
7994
7992
|
/* @__PURE__ */ a.jsxs(
|
|
7995
7993
|
"select",
|
|
7996
7994
|
{
|
|
7997
|
-
value:
|
|
7998
|
-
onChange: (C) => ve({ ...
|
|
7995
|
+
value: I.ampm,
|
|
7996
|
+
onChange: (C) => ve({ ...I, ampm: C.target.value }),
|
|
7999
7997
|
className: "w-16 border-0 text-center bg-color-transparent outline-0 border-l border-color-gray-300",
|
|
8000
7998
|
children: [
|
|
8001
7999
|
/* @__PURE__ */ a.jsx("option", { value: "AM", children: "AM" }),
|
|
@@ -8006,7 +8004,7 @@ const $i = ({
|
|
|
8006
8004
|
] }), Se = /* @__PURE__ */ a.jsxs(
|
|
8007
8005
|
"div",
|
|
8008
8006
|
{
|
|
8009
|
-
ref:
|
|
8007
|
+
ref: W,
|
|
8010
8008
|
className: `${n === "dialog" ? "relative w-full" : "absolute z-50 mt-2 w-72 rounded-lg border border-color-gray-200 bg-color-white shadow-xl p-4"}`,
|
|
8011
8009
|
style: n === "dialog" ? void 0 : {
|
|
8012
8010
|
position: "absolute",
|
|
@@ -8024,7 +8022,7 @@ const $i = ({
|
|
|
8024
8022
|
color: "gray",
|
|
8025
8023
|
roundedFull: !0,
|
|
8026
8024
|
disabled: !oe(),
|
|
8027
|
-
onClick: () =>
|
|
8025
|
+
onClick: () => T(new Date(k.getFullYear(), k.getMonth() - 1, 1)),
|
|
8028
8026
|
icon: /* @__PURE__ */ a.jsx("svg", { className: "size-5", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ a.jsx("path", { d: "M10.8284 12.0007L15.7782 16.9504L14.364 18.3646L8 12.0007L14.364 5.63672L15.7782 7.05093L10.8284 12.0007Z" }) })
|
|
8029
8027
|
}
|
|
8030
8028
|
),
|
|
@@ -8033,20 +8031,20 @@ const $i = ({
|
|
|
8033
8031
|
"select",
|
|
8034
8032
|
{
|
|
8035
8033
|
className: "text-sm outline-none",
|
|
8036
|
-
value:
|
|
8037
|
-
onChange: (C) =>
|
|
8034
|
+
value: k.getMonth(),
|
|
8035
|
+
onChange: (C) => T(new Date(k.getFullYear(), parseInt(C.target.value), 1)),
|
|
8038
8036
|
children: kn.map((C, ie) => {
|
|
8039
|
-
const he =
|
|
8040
|
-
if (f && he ===
|
|
8037
|
+
const he = k.getFullYear(), F = ie, D = /* @__PURE__ */ new Date();
|
|
8038
|
+
if (f && he === D.getFullYear() && F > D.getMonth())
|
|
8041
8039
|
return null;
|
|
8042
8040
|
if (w) {
|
|
8043
8041
|
const ne = typeof w == "string" ? new Date(w) : typeof w == "number" ? new Date(w) : w;
|
|
8044
|
-
if (he === ne.getFullYear() &&
|
|
8042
|
+
if (he === ne.getFullYear() && F < ne.getMonth() || he < ne.getFullYear())
|
|
8045
8043
|
return null;
|
|
8046
8044
|
}
|
|
8047
8045
|
if (S || m) {
|
|
8048
8046
|
const ne = S ? typeof S == "string" ? new Date(S) : typeof S == "number" ? new Date(S) : S : m ? new Date(m) : null;
|
|
8049
|
-
if (ne && he === ne.getFullYear() &&
|
|
8047
|
+
if (ne && he === ne.getFullYear() && F > ne.getMonth() || ne && he > ne.getFullYear())
|
|
8050
8048
|
return null;
|
|
8051
8049
|
}
|
|
8052
8050
|
return /* @__PURE__ */ a.jsx("option", { value: ie, children: C }, C);
|
|
@@ -8057,8 +8055,8 @@ const $i = ({
|
|
|
8057
8055
|
"select",
|
|
8058
8056
|
{
|
|
8059
8057
|
className: "text-sm outline-none",
|
|
8060
|
-
value:
|
|
8061
|
-
onChange: (C) =>
|
|
8058
|
+
value: k.getFullYear(),
|
|
8059
|
+
onChange: (C) => T(new Date(parseInt(C.target.value), k.getMonth(), 1)),
|
|
8062
8060
|
children: Array.from({ length: 150 }, (C, ie) => (/* @__PURE__ */ new Date()).getFullYear() - 100 + ie).filter((C) => {
|
|
8063
8061
|
if (f && C > (/* @__PURE__ */ new Date()).getFullYear()) return !1;
|
|
8064
8062
|
if (w) {
|
|
@@ -8082,7 +8080,7 @@ const $i = ({
|
|
|
8082
8080
|
color: "gray",
|
|
8083
8081
|
roundedFull: !0,
|
|
8084
8082
|
disabled: !ge(),
|
|
8085
|
-
onClick: () =>
|
|
8083
|
+
onClick: () => T(new Date(k.getFullYear(), k.getMonth() + 1, 1)),
|
|
8086
8084
|
icon: /* @__PURE__ */ a.jsx("svg", { className: "size-5", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ a.jsx("path", { d: "M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z" }) })
|
|
8087
8085
|
}
|
|
8088
8086
|
)
|
|
@@ -8094,11 +8092,11 @@ const $i = ({
|
|
|
8094
8092
|
{
|
|
8095
8093
|
className: `size-8 flex justify-center items-center text-sm rounded-full transition-all
|
|
8096
8094
|
${C ? "hover:bg-color-blue-100 cursor-pointer" : ""}
|
|
8097
|
-
${C &&
|
|
8098
|
-
${C &&
|
|
8099
|
-
onClick: () => C &&
|
|
8100
|
-
onMouseEnter: () => C &&
|
|
8101
|
-
onMouseLeave:
|
|
8095
|
+
${C && q(C) ? "bg-color-blue-500 hover:bg-color-blue-500 text-color-white" : ""}
|
|
8096
|
+
${C && N(C) ? "bg-color-gray-100 text-color-gray-400 !cursor-not-allowed hover:bg-color-gray-100" : ""}`,
|
|
8097
|
+
onClick: () => C && U(C),
|
|
8098
|
+
onMouseEnter: () => C && X(C),
|
|
8099
|
+
onMouseLeave: ce,
|
|
8102
8100
|
children: C ? C.getDate() : ""
|
|
8103
8101
|
},
|
|
8104
8102
|
ie
|
|
@@ -8110,9 +8108,9 @@ const $i = ({
|
|
|
8110
8108
|
Mt,
|
|
8111
8109
|
{
|
|
8112
8110
|
fullWidth: !0,
|
|
8113
|
-
onClick:
|
|
8114
|
-
disabled: e === "range" && !
|
|
8115
|
-
className: `${e === "range" && !
|
|
8111
|
+
onClick: E,
|
|
8112
|
+
disabled: e === "range" && !z && !r,
|
|
8113
|
+
className: `${e === "range" && !z && !r ? "bg-color-gray-400 cursor-not-allowed" : ""}`,
|
|
8116
8114
|
children: "Confirm"
|
|
8117
8115
|
}
|
|
8118
8116
|
) })
|
|
@@ -8123,26 +8121,26 @@ const $i = ({
|
|
|
8123
8121
|
/* @__PURE__ */ a.jsxs(
|
|
8124
8122
|
Mt,
|
|
8125
8123
|
{
|
|
8126
|
-
onClick:
|
|
8124
|
+
onClick: M,
|
|
8127
8125
|
fullWidth: !0,
|
|
8128
8126
|
color: "gray",
|
|
8129
8127
|
variant: "outlined",
|
|
8130
8128
|
className: `!justify-between gap-2 ${o || ""}`,
|
|
8131
8129
|
children: [
|
|
8132
|
-
e === "single" ?
|
|
8130
|
+
e === "single" ? j && u !== null ? te(j) : c : (
|
|
8133
8131
|
// Display rangeStart immediately if set, even if rangeEnd is null
|
|
8134
|
-
|
|
8135
|
-
te(
|
|
8132
|
+
J || R || L ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
8133
|
+
te(J || R, "start"),
|
|
8136
8134
|
" -",
|
|
8137
8135
|
" ",
|
|
8138
|
-
te(
|
|
8136
|
+
te(z || L, "end")
|
|
8139
8137
|
] }) : c
|
|
8140
8138
|
),
|
|
8141
8139
|
d
|
|
8142
8140
|
]
|
|
8143
8141
|
}
|
|
8144
8142
|
),
|
|
8145
|
-
n === "inline" ? /* @__PURE__ */ a.jsx(a.Fragment, { children: y && Ge(Se, document.body) }) : /* @__PURE__ */ a.jsx(ji, { open: y, title: r ? "Select Time" : c, onClose:
|
|
8143
|
+
n === "inline" ? /* @__PURE__ */ a.jsx(a.Fragment, { children: y && Ge(Se, document.body) }) : /* @__PURE__ */ a.jsx(ji, { open: y, title: r ? "Select Time" : c, onClose: P, children: /* @__PURE__ */ a.jsx("div", { className: "w-72", children: Se }) })
|
|
8146
8144
|
] });
|
|
8147
8145
|
}, pa = ({
|
|
8148
8146
|
tabs: e,
|