@unizap/uniui 1.0.25 → 1.0.27
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/components/Backdrop/Backdrop.d.ts +5 -0
- package/dist/components/Backdrop/Backdrop.types.d.ts +6 -0
- package/dist/components/Backdrop/index.d.ts +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/uniui.css +1 -1
- package/dist/uniui.js +744 -690
- package/dist/uniui.umd.cjs +39 -39
- package/dist/utils/ColorMap.d.ts +1 -0
- package/package.json +1 -1
package/dist/uniui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as R from "react";
|
|
2
|
-
import
|
|
2
|
+
import Ce, { useRef as se, useState as K, useEffect as ce, useMemo as Me, useReducer as Ur, useCallback as oe, forwardRef as Ye, useImperativeHandle as tr, Fragment as Yr, memo as Zr, useLayoutEffect as Kr } from "react";
|
|
3
3
|
import { createPortal as Ze } from "react-dom";
|
|
4
4
|
function nr(e) {
|
|
5
5
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -14,10 +14,10 @@ var et = { exports: {} }, He = {};
|
|
|
14
14
|
* This source code is licensed under the MIT license found in the
|
|
15
15
|
* LICENSE file in the root directory of this source tree.
|
|
16
16
|
*/
|
|
17
|
-
var
|
|
17
|
+
var xn;
|
|
18
18
|
function Xr() {
|
|
19
|
-
if (
|
|
20
|
-
|
|
19
|
+
if (xn) return He;
|
|
20
|
+
xn = 1;
|
|
21
21
|
var e = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
|
|
22
22
|
function t(r, o, a) {
|
|
23
23
|
var i = null;
|
|
@@ -46,18 +46,18 @@ var Be = {};
|
|
|
46
46
|
* This source code is licensed under the MIT license found in the
|
|
47
47
|
* LICENSE file in the root directory of this source tree.
|
|
48
48
|
*/
|
|
49
|
-
var
|
|
49
|
+
var hn;
|
|
50
50
|
function Jr() {
|
|
51
|
-
return
|
|
52
|
-
function e(
|
|
53
|
-
if (
|
|
54
|
-
if (typeof
|
|
55
|
-
return
|
|
56
|
-
if (typeof
|
|
57
|
-
switch (
|
|
51
|
+
return hn || (hn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
52
|
+
function e(x) {
|
|
53
|
+
if (x == null) return null;
|
|
54
|
+
if (typeof x == "function")
|
|
55
|
+
return x.$$typeof === Z ? null : x.displayName || x.name || null;
|
|
56
|
+
if (typeof x == "string") return x;
|
|
57
|
+
switch (x) {
|
|
58
58
|
case m:
|
|
59
59
|
return "Fragment";
|
|
60
|
-
case
|
|
60
|
+
case h:
|
|
61
61
|
return "Profiler";
|
|
62
62
|
case b:
|
|
63
63
|
return "StrictMode";
|
|
@@ -68,126 +68,126 @@ function Jr() {
|
|
|
68
68
|
case F:
|
|
69
69
|
return "Activity";
|
|
70
70
|
}
|
|
71
|
-
if (typeof
|
|
72
|
-
switch (typeof
|
|
71
|
+
if (typeof x == "object")
|
|
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
75
|
case v:
|
|
76
76
|
return "Portal";
|
|
77
77
|
case w:
|
|
78
|
-
return (
|
|
78
|
+
return (x.displayName || "Context") + ".Provider";
|
|
79
79
|
case k:
|
|
80
|
-
return (
|
|
80
|
+
return (x._context.displayName || "Context") + ".Consumer";
|
|
81
81
|
case $:
|
|
82
|
-
var C =
|
|
83
|
-
return
|
|
82
|
+
var C = x.render;
|
|
83
|
+
return x = x.displayName, x || (x = C.displayName || C.name || "", x = x !== "" ? "ForwardRef(" + x + ")" : "ForwardRef"), x;
|
|
84
84
|
case D:
|
|
85
|
-
return C =
|
|
85
|
+
return C = x.displayName || null, C !== null ? C : e(x.type) || "Memo";
|
|
86
86
|
case V:
|
|
87
|
-
C =
|
|
87
|
+
C = x._payload, x = x._init;
|
|
88
88
|
try {
|
|
89
|
-
return e(
|
|
89
|
+
return e(x(C));
|
|
90
90
|
} catch {
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
return null;
|
|
94
94
|
}
|
|
95
|
-
function n(
|
|
96
|
-
return "" +
|
|
95
|
+
function n(x) {
|
|
96
|
+
return "" + x;
|
|
97
97
|
}
|
|
98
|
-
function t(
|
|
98
|
+
function t(x) {
|
|
99
99
|
try {
|
|
100
|
-
n(
|
|
100
|
+
n(x);
|
|
101
101
|
var C = !1;
|
|
102
102
|
} catch {
|
|
103
103
|
C = !0;
|
|
104
104
|
}
|
|
105
105
|
if (C) {
|
|
106
106
|
C = console;
|
|
107
|
-
var L = C.error, M = typeof Symbol == "function" && Symbol.toStringTag &&
|
|
107
|
+
var L = C.error, M = typeof Symbol == "function" && Symbol.toStringTag && x[Symbol.toStringTag] || x.constructor.name || "Object";
|
|
108
108
|
return L.call(
|
|
109
109
|
C,
|
|
110
110
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
111
111
|
M
|
|
112
|
-
), n(
|
|
112
|
+
), n(x);
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
-
function r(
|
|
116
|
-
if (
|
|
117
|
-
if (typeof
|
|
115
|
+
function r(x) {
|
|
116
|
+
if (x === m) return "<>";
|
|
117
|
+
if (typeof x == "object" && x !== null && x.$$typeof === V)
|
|
118
118
|
return "<...>";
|
|
119
119
|
try {
|
|
120
|
-
var C = e(
|
|
120
|
+
var C = e(x);
|
|
121
121
|
return C ? "<" + C + ">" : "<...>";
|
|
122
122
|
} catch {
|
|
123
123
|
return "<...>";
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
function o() {
|
|
127
|
-
var
|
|
128
|
-
return
|
|
127
|
+
var x = ae.A;
|
|
128
|
+
return x === null ? null : x.getOwner();
|
|
129
129
|
}
|
|
130
130
|
function a() {
|
|
131
131
|
return Error("react-stack-top-frame");
|
|
132
132
|
}
|
|
133
|
-
function i(
|
|
134
|
-
if (ue.call(
|
|
135
|
-
var C = Object.getOwnPropertyDescriptor(
|
|
133
|
+
function i(x) {
|
|
134
|
+
if (ue.call(x, "key")) {
|
|
135
|
+
var C = Object.getOwnPropertyDescriptor(x, "key").get;
|
|
136
136
|
if (C && C.isReactWarning) return !1;
|
|
137
137
|
}
|
|
138
|
-
return
|
|
138
|
+
return x.key !== void 0;
|
|
139
139
|
}
|
|
140
|
-
function l(
|
|
140
|
+
function l(x, C) {
|
|
141
141
|
function L() {
|
|
142
142
|
Y || (Y = !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
|
C
|
|
145
145
|
));
|
|
146
146
|
}
|
|
147
|
-
L.isReactWarning = !0, Object.defineProperty(
|
|
147
|
+
L.isReactWarning = !0, Object.defineProperty(x, "key", {
|
|
148
148
|
get: L,
|
|
149
149
|
configurable: !0
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
152
|
function c() {
|
|
153
|
-
var
|
|
154
|
-
return T[
|
|
153
|
+
var x = e(this.type);
|
|
154
|
+
return T[x] || (T[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 u(
|
|
159
|
-
return L = I.ref,
|
|
158
|
+
function u(x, C, L, M, N, I, z, E) {
|
|
159
|
+
return L = I.ref, x = {
|
|
160
160
|
$$typeof: f,
|
|
161
|
-
type:
|
|
161
|
+
type: x,
|
|
162
162
|
key: C,
|
|
163
163
|
props: I,
|
|
164
164
|
_owner: N
|
|
165
|
-
}, (L !== void 0 ? L : null) !== null ? Object.defineProperty(
|
|
165
|
+
}, (L !== void 0 ? L : null) !== null ? Object.defineProperty(x, "ref", {
|
|
166
166
|
enumerable: !1,
|
|
167
167
|
get: c
|
|
168
|
-
}) : Object.defineProperty(
|
|
168
|
+
}) : Object.defineProperty(x, "ref", { enumerable: !1, value: null }), x._store = {}, Object.defineProperty(x._store, "validated", {
|
|
169
169
|
configurable: !1,
|
|
170
170
|
enumerable: !1,
|
|
171
171
|
writable: !0,
|
|
172
172
|
value: 0
|
|
173
|
-
}), Object.defineProperty(
|
|
173
|
+
}), Object.defineProperty(x, "_debugInfo", {
|
|
174
174
|
configurable: !1,
|
|
175
175
|
enumerable: !1,
|
|
176
176
|
writable: !0,
|
|
177
177
|
value: null
|
|
178
|
-
}), Object.defineProperty(
|
|
178
|
+
}), Object.defineProperty(x, "_debugStack", {
|
|
179
179
|
configurable: !1,
|
|
180
180
|
enumerable: !1,
|
|
181
181
|
writable: !0,
|
|
182
182
|
value: z
|
|
183
|
-
}), Object.defineProperty(
|
|
183
|
+
}), Object.defineProperty(x, "_debugTask", {
|
|
184
184
|
configurable: !1,
|
|
185
185
|
enumerable: !1,
|
|
186
186
|
writable: !0,
|
|
187
187
|
value: E
|
|
188
|
-
}), Object.freeze && (Object.freeze(
|
|
188
|
+
}), Object.freeze && (Object.freeze(x.props), Object.freeze(x)), x;
|
|
189
189
|
}
|
|
190
|
-
function d(
|
|
190
|
+
function d(x, C, L, M, N, I, z, E) {
|
|
191
191
|
var P = C.children;
|
|
192
192
|
if (P !== void 0)
|
|
193
193
|
if (M)
|
|
@@ -201,7 +201,7 @@ function Jr() {
|
|
|
201
201
|
);
|
|
202
202
|
else g(P);
|
|
203
203
|
if (ue.call(C, "key")) {
|
|
204
|
-
P = e(
|
|
204
|
+
P = e(x);
|
|
205
205
|
var B = Object.keys(C).filter(function(S) {
|
|
206
206
|
return S !== "key";
|
|
207
207
|
});
|
|
@@ -225,9 +225,9 @@ React keys must be passed directly to JSX without using spread:
|
|
|
225
225
|
} else L = C;
|
|
226
226
|
return P && l(
|
|
227
227
|
L,
|
|
228
|
-
typeof
|
|
228
|
+
typeof x == "function" ? x.displayName || x.name || "Unknown" : x
|
|
229
229
|
), u(
|
|
230
|
-
|
|
230
|
+
x,
|
|
231
231
|
P,
|
|
232
232
|
I,
|
|
233
233
|
N,
|
|
@@ -237,44 +237,44 @@ React keys must be passed directly to JSX without using spread:
|
|
|
237
237
|
E
|
|
238
238
|
);
|
|
239
239
|
}
|
|
240
|
-
function g(
|
|
241
|
-
typeof
|
|
240
|
+
function g(x) {
|
|
241
|
+
typeof x == "object" && x !== null && x.$$typeof === f && x._store && (x._store.validated = 1);
|
|
242
242
|
}
|
|
243
|
-
var p =
|
|
243
|
+
var p = Ce, f = Symbol.for("react.transitional.element"), v = Symbol.for("react.portal"), m = Symbol.for("react.fragment"), b = Symbol.for("react.strict_mode"), h = Symbol.for("react.profiler"), k = Symbol.for("react.consumer"), w = Symbol.for("react.context"), $ = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), O = Symbol.for("react.suspense_list"), D = Symbol.for("react.memo"), V = Symbol.for("react.lazy"), F = Symbol.for("react.activity"), Z = Symbol.for("react.client.reference"), ae = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ue = Object.prototype.hasOwnProperty, Q = Array.isArray, H = console.createTask ? console.createTask : function() {
|
|
244
244
|
return null;
|
|
245
245
|
};
|
|
246
246
|
p = {
|
|
247
|
-
"react-stack-bottom-frame": function(
|
|
248
|
-
return
|
|
247
|
+
"react-stack-bottom-frame": function(x) {
|
|
248
|
+
return x();
|
|
249
249
|
}
|
|
250
250
|
};
|
|
251
251
|
var Y, T = {}, te = p["react-stack-bottom-frame"].bind(
|
|
252
252
|
p,
|
|
253
253
|
a
|
|
254
254
|
)(), pe = H(r(a)), X = {};
|
|
255
|
-
Be.Fragment = m, Be.jsx = function(
|
|
255
|
+
Be.Fragment = m, Be.jsx = function(x, C, L, M, N) {
|
|
256
256
|
var I = 1e4 > ae.recentlyCreatedOwnerStacks++;
|
|
257
257
|
return d(
|
|
258
|
-
|
|
258
|
+
x,
|
|
259
259
|
C,
|
|
260
260
|
L,
|
|
261
261
|
!1,
|
|
262
262
|
M,
|
|
263
263
|
N,
|
|
264
264
|
I ? Error("react-stack-top-frame") : te,
|
|
265
|
-
I ? H(r(
|
|
265
|
+
I ? H(r(x)) : pe
|
|
266
266
|
);
|
|
267
|
-
}, Be.jsxs = function(
|
|
267
|
+
}, Be.jsxs = function(x, C, L, M, N) {
|
|
268
268
|
var I = 1e4 > ae.recentlyCreatedOwnerStacks++;
|
|
269
269
|
return d(
|
|
270
|
-
|
|
270
|
+
x,
|
|
271
271
|
C,
|
|
272
272
|
L,
|
|
273
273
|
!0,
|
|
274
274
|
M,
|
|
275
275
|
N,
|
|
276
276
|
I ? Error("react-stack-top-frame") : te,
|
|
277
|
-
I ? H(r(
|
|
277
|
+
I ? H(r(x)) : pe
|
|
278
278
|
);
|
|
279
279
|
};
|
|
280
280
|
}()), Be;
|
|
@@ -290,149 +290,170 @@ const ve = {
|
|
|
290
290
|
outline: "border-color-gray-900 text-color-gray-900 hover:bg-color-gray-50",
|
|
291
291
|
transparent: "text-color-gray-900 hover:bg-color-gray-50",
|
|
292
292
|
accent: "accent-color-gray-900",
|
|
293
|
-
peer: "peer-checked:border-color-gray-900 peer-checked:text-color-gray-900"
|
|
293
|
+
peer: "peer-checked:border-color-gray-900 peer-checked:text-color-gray-900",
|
|
294
|
+
text: "text-color-gray-900"
|
|
294
295
|
},
|
|
295
296
|
gray: {
|
|
296
297
|
filled: "bg-color-gray-500 text-color-white hover:bg-color-gray-600",
|
|
297
298
|
outline: "border-color-gray-500 text-color-gray-500 hover:bg-color-gray-50",
|
|
298
299
|
transparent: "text-color-gray-500 hover:bg-color-gray-50",
|
|
299
300
|
accent: "accent-color-gray-500",
|
|
300
|
-
peer: "peer-checked:border-color-gray-500 peer-checked:text-color-gray-500"
|
|
301
|
+
peer: "peer-checked:border-color-gray-500 peer-checked:text-color-gray-500",
|
|
302
|
+
text: "text-color-gray-500"
|
|
301
303
|
},
|
|
302
304
|
light: {
|
|
303
305
|
filled: "bg-color-white text-color-gray-700 hover:bg-color-gray-50",
|
|
304
306
|
outline: "border-color-white text-color-white hover:bg-color-gray-50",
|
|
305
307
|
transparent: "text-color-white hover:bg-color-gray-50",
|
|
306
308
|
accent: "accent-color-white",
|
|
307
|
-
peer: "peer-checked:border-color-white peer-checked:text-color-white"
|
|
309
|
+
peer: "peer-checked:border-color-white peer-checked:text-color-white",
|
|
310
|
+
text: "text-color-white"
|
|
308
311
|
},
|
|
309
312
|
pearl: {
|
|
310
313
|
filled: "bg-color-zinc-200 text-color-zinc-600 hover:bg-color-zinc-300",
|
|
311
314
|
outline: "border-color-zinc-200 text-color-zinc-900 hover:bg-color-zinc-50",
|
|
312
315
|
transparent: "text-color-zinc-600 hover:bg-color-zinc-50",
|
|
313
316
|
accent: "accent-color-zinc-200",
|
|
314
|
-
peer: "peer-checked:border-color-zinc-200 peer-checked:text-color-zinc-200"
|
|
317
|
+
peer: "peer-checked:border-color-zinc-200 peer-checked:text-color-zinc-200",
|
|
318
|
+
text: "text-color-zinc-600"
|
|
315
319
|
},
|
|
316
320
|
red: {
|
|
317
321
|
filled: "bg-color-red-500 text-color-white hover:bg-color-red-600",
|
|
318
322
|
outline: "border-color-red-500 text-color-red-500 hover:bg-color-red-50",
|
|
319
323
|
transparent: "text-color-red-500 hover:bg-color-red-50",
|
|
320
324
|
accent: "accent-color-red-500",
|
|
321
|
-
peer: "peer-checked:border-color-red-500 peer-checked:text-color-red-500"
|
|
325
|
+
peer: "peer-checked:border-color-red-500 peer-checked:text-color-red-500",
|
|
326
|
+
text: "text-color-red-500"
|
|
322
327
|
},
|
|
323
328
|
orange: {
|
|
324
329
|
filled: "bg-color-orange-500 text-color-white hover:bg-color-orange-600",
|
|
325
330
|
outline: "border-color-orange-500 text-color-orange-500 hover:bg-color-orange-50",
|
|
326
331
|
transparent: "text-color-orange-500 hover:bg-color-orange-50",
|
|
327
332
|
accent: "accent-color-orange-500",
|
|
328
|
-
peer: "peer-checked:border-color-orange-500 peer-checked:text-color-orange-500"
|
|
333
|
+
peer: "peer-checked:border-color-orange-500 peer-checked:text-color-orange-500",
|
|
334
|
+
text: "text-color-orange-500"
|
|
329
335
|
},
|
|
330
336
|
amber: {
|
|
331
337
|
filled: "bg-color-amber-500 text-color-white hover:bg-color-amber-600",
|
|
332
338
|
outline: "border-color-amber-500 text-color-amber-500 hover:bg-color-amber-50",
|
|
333
339
|
transparent: "text-color-amber-500 hover:bg-color-amber-50",
|
|
334
340
|
accent: "accent-color-amber-500",
|
|
335
|
-
peer: "peer-checked:border-color-amber-500 peer-checked:text-color-amber-500"
|
|
341
|
+
peer: "peer-checked:border-color-amber-500 peer-checked:text-color-amber-500",
|
|
342
|
+
text: "text-color-amber-500"
|
|
336
343
|
},
|
|
337
344
|
yellow: {
|
|
338
345
|
filled: "bg-color-yellow-500 text-color-white hover:bg-color-yellow-600",
|
|
339
346
|
outline: "border-color-yellow-500 text-color-yellow-500 hover:bg-color-yellow-50",
|
|
340
347
|
transparent: "text-color-yellow-500 hover:bg-color-yellow-50",
|
|
341
348
|
accent: "accent-color-yellow-500",
|
|
342
|
-
peer: "peer-checked:border-color-yellow-500 peer-checked:text-color-yellow-500"
|
|
349
|
+
peer: "peer-checked:border-color-yellow-500 peer-checked:text-color-yellow-500",
|
|
350
|
+
text: "text-color-yellow-500"
|
|
343
351
|
},
|
|
344
352
|
lime: {
|
|
345
353
|
filled: "bg-color-lime-500 text-color-white hover:bg-color-lime-600",
|
|
346
354
|
outline: "border-color-lime-500 text-color-lime-500 hover:bg-color-lime-50",
|
|
347
355
|
transparent: "text-color-lime-500 hover:bg-color-lime-50",
|
|
348
356
|
accent: "accent-color-lime-500",
|
|
349
|
-
peer: "peer-checked:border-color-lime-500 peer-checked:text-color-lime-500"
|
|
357
|
+
peer: "peer-checked:border-color-lime-500 peer-checked:text-color-lime-500",
|
|
358
|
+
text: "text-color-lime-500"
|
|
350
359
|
},
|
|
351
360
|
green: {
|
|
352
361
|
filled: "bg-color-green-500 text-color-white hover:bg-color-green-600",
|
|
353
362
|
outline: "border-color-green-500 text-color-green-500 hover:bg-color-green-50",
|
|
354
363
|
transparent: "text-color-green-500 hover:bg-color-green-50",
|
|
355
364
|
accent: "accent-color-green-500",
|
|
356
|
-
peer: "peer-checked:border-color-green-500 peer-checked:text-color-green-500"
|
|
365
|
+
peer: "peer-checked:border-color-green-500 peer-checked:text-color-green-500",
|
|
366
|
+
text: "text-color-green-500"
|
|
357
367
|
},
|
|
358
368
|
emerald: {
|
|
359
369
|
filled: "bg-color-emerald-500 text-color-white hover:bg-color-emerald-600",
|
|
360
370
|
outline: "border-color-emerald-500 text-color-emerald-500 hover:bg-color-emerald-50",
|
|
361
371
|
transparent: "text-color-emerald-500 hover:bg-color-emerald-50",
|
|
362
372
|
accent: "accent-color-emerald-500",
|
|
363
|
-
peer: "peer-checked:border-color-emerald-500 peer-checked:text-color-emerald-500"
|
|
373
|
+
peer: "peer-checked:border-color-emerald-500 peer-checked:text-color-emerald-500",
|
|
374
|
+
text: "text-color-emerald-500"
|
|
364
375
|
},
|
|
365
376
|
teal: {
|
|
366
377
|
filled: "bg-color-teal-500 text-color-white hover:bg-color-teal-600",
|
|
367
378
|
outline: "border-color-teal-500 text-color-teal-500 hover:bg-color-teal-50",
|
|
368
379
|
transparent: "text-color-teal-500 hover:bg-color-teal-50",
|
|
369
380
|
accent: "accent-color-teal-500",
|
|
370
|
-
peer: "peer-checked:border-color-teal-500 peer-checked:text-color-teal-500"
|
|
381
|
+
peer: "peer-checked:border-color-teal-500 peer-checked:text-color-teal-500",
|
|
382
|
+
text: "text-color-teal-500"
|
|
371
383
|
},
|
|
372
384
|
cyan: {
|
|
373
385
|
filled: "bg-color-cyan-500 text-color-white hover:bg-color-cyan-600",
|
|
374
386
|
outline: "border-color-cyan-500 text-color-cyan-500 hover:bg-color-cyan-50",
|
|
375
387
|
transparent: "text-color-cyan-500 hover:bg-color-cyan-50",
|
|
376
388
|
accent: "accent-color-cyan-500",
|
|
377
|
-
peer: "peer-checked:border-color-cyan-500 peer-checked:text-color-cyan-500"
|
|
389
|
+
peer: "peer-checked:border-color-cyan-500 peer-checked:text-color-cyan-500",
|
|
390
|
+
text: "text-color-cyan-500"
|
|
378
391
|
},
|
|
379
392
|
sky: {
|
|
380
393
|
filled: "bg-color-sky-500 text-color-white hover:bg-color-sky-600",
|
|
381
394
|
outline: "border-color-sky-500 text-color-sky-500 hover:bg-color-sky-50",
|
|
382
395
|
transparent: "text-color-sky-500 hover:bg-color-sky-50",
|
|
383
396
|
accent: "accent-color-sky-500",
|
|
384
|
-
peer: "peer-checked:border-color-sky-500 peer-checked:text-color-sky-500"
|
|
397
|
+
peer: "peer-checked:border-color-sky-500 peer-checked:text-color-sky-500",
|
|
398
|
+
text: "text-color-sky-500"
|
|
385
399
|
},
|
|
386
400
|
blue: {
|
|
387
401
|
filled: "bg-color-blue-500 text-color-white hover:bg-color-blue-600",
|
|
388
402
|
outline: "border-color-blue-500 text-color-blue-500 hover:bg-color-blue-50",
|
|
389
403
|
transparent: "text-color-blue-500 hover:bg-color-blue-50",
|
|
390
404
|
accent: "accent-color-blue-500",
|
|
391
|
-
peer: "peer-checked:border-color-blue-500 peer-checked:text-color-blue-500"
|
|
405
|
+
peer: "peer-checked:border-color-blue-500 peer-checked:text-color-blue-500",
|
|
406
|
+
text: "text-color-blue-500"
|
|
392
407
|
},
|
|
393
408
|
indigo: {
|
|
394
409
|
filled: "bg-color-indigo-500 text-color-white hover:bg-color-indigo-600",
|
|
395
410
|
outline: "border-color-indigo-500 text-color-indigo-500 hover:bg-color-indigo-50",
|
|
396
411
|
transparent: "text-color-indigo-500 hover:bg-color-indigo-50",
|
|
397
412
|
accent: "accent-color-indigo-500",
|
|
398
|
-
peer: "peer-checked:border-color-indigo-500 peer-checked:text-color-indigo-500"
|
|
413
|
+
peer: "peer-checked:border-color-indigo-500 peer-checked:text-color-indigo-500",
|
|
414
|
+
text: "text-color-indigo-500"
|
|
399
415
|
},
|
|
400
416
|
violet: {
|
|
401
417
|
filled: "bg-color-violet-500 text-color-white hover:bg-color-violet-600",
|
|
402
418
|
outline: "border-color-violet-500 text-color-violet-500 hover:bg-color-violet-50",
|
|
403
419
|
transparent: "text-color-violet-500 hover:bg-color-violet-50",
|
|
404
420
|
accent: "accent-color-violet-500",
|
|
405
|
-
peer: "peer-checked:border-color-violet-500 peer-checked:text-color-violet-500"
|
|
421
|
+
peer: "peer-checked:border-color-violet-500 peer-checked:text-color-violet-500",
|
|
422
|
+
text: "text-color-violet-500"
|
|
406
423
|
},
|
|
407
424
|
purple: {
|
|
408
425
|
filled: "bg-color-purple-500 text-color-white hover:bg-color-purple-600",
|
|
409
426
|
outline: "border-color-purple-500 text-color-purple-500 hover:bg-color-purple-50",
|
|
410
427
|
transparent: "text-color-purple-500 hover:bg-color-purple-50",
|
|
411
428
|
accent: "accent-color-purple-500",
|
|
412
|
-
peer: "peer-checked:border-color-purple-500 peer-checked:text-color-purple-500"
|
|
429
|
+
peer: "peer-checked:border-color-purple-500 peer-checked:text-color-purple-500",
|
|
430
|
+
text: "text-color-purple-500"
|
|
413
431
|
},
|
|
414
432
|
fuchsia: {
|
|
415
433
|
filled: "bg-color-fuchsia-500 text-color-white hover:bg-color-fuchsia-600",
|
|
416
434
|
outline: "border-color-fuchsia-500 text-color-fuchsia-500 hover:bg-color-fuchsia-50",
|
|
417
435
|
transparent: "text-color-fuchsia-500 hover:bg-color-fuchsia-50",
|
|
418
436
|
accent: "accent-color-fuchsia-500",
|
|
419
|
-
peer: "peer-checked:border-color-fuchsia-500 peer-checked:text-color-fuchsia-500"
|
|
437
|
+
peer: "peer-checked:border-color-fuchsia-500 peer-checked:text-color-fuchsia-500",
|
|
438
|
+
text: "text-color-fuchsia-500"
|
|
420
439
|
},
|
|
421
440
|
pink: {
|
|
422
441
|
filled: "bg-color-pink-500 text-color-white hover:bg-color-pink-600",
|
|
423
442
|
outline: "border-color-pink-500 text-color-pink-500 hover:bg-color-pink-50",
|
|
424
443
|
transparent: "text-color-pink-500 hover:bg-color-pink-50",
|
|
425
444
|
accent: "accent-color-pink-500",
|
|
426
|
-
peer: "peer-checked:border-color-pink-500 peer-checked:text-color-pink-500"
|
|
445
|
+
peer: "peer-checked:border-color-pink-500 peer-checked:text-color-pink-500",
|
|
446
|
+
text: "text-color-pink-500"
|
|
427
447
|
},
|
|
428
448
|
rose: {
|
|
429
449
|
filled: "bg-color-rose-500 text-color-white hover:bg-color-rose-600",
|
|
430
450
|
outline: "border-color-rose-500 text-color-rose-500 hover:bg-color-rose-50",
|
|
431
451
|
transparent: "text-color-rose-500 hover:bg-color-rose-50",
|
|
432
452
|
accent: "accent-color-rose-500",
|
|
433
|
-
peer: "peer-checked:border-color-rose-500 peer-checked:text-color-rose-500"
|
|
453
|
+
peer: "peer-checked:border-color-rose-500 peer-checked:text-color-rose-500",
|
|
454
|
+
text: "text-color-rose-500"
|
|
434
455
|
}
|
|
435
|
-
},
|
|
456
|
+
}, Fl = (e) => {
|
|
436
457
|
Object.assign(ve, e);
|
|
437
458
|
}, qt = {
|
|
438
459
|
dark: {
|
|
@@ -582,7 +603,7 @@ const ve = {
|
|
|
582
603
|
thumbHover: "hover:bg-color-rose-600",
|
|
583
604
|
thumbActive: "active:bg-color-rose-700"
|
|
584
605
|
}
|
|
585
|
-
},
|
|
606
|
+
}, Al = (e) => {
|
|
586
607
|
Object.assign(qt, e);
|
|
587
608
|
}, Gt = ({
|
|
588
609
|
title: e,
|
|
@@ -604,8 +625,8 @@ const ve = {
|
|
|
604
625
|
...b
|
|
605
626
|
}) => {
|
|
606
627
|
var y;
|
|
607
|
-
const
|
|
608
|
-
const D =
|
|
628
|
+
const h = se(null), k = se(null), w = (O) => {
|
|
629
|
+
const D = h.current;
|
|
609
630
|
if (!D) return;
|
|
610
631
|
const V = document.createElement("span"), F = D.getBoundingClientRect(), Z = Math.max(F.width, F.height);
|
|
611
632
|
V.style.width = V.style.height = `${Z}px`, V.style.left = `${O.clientX - F.left - Z / 2}px`, V.style.top = `${O.clientY - F.top - Z / 2}px`, V.className = "ripple", D.appendChild(V), setTimeout(() => V.remove(), 600), i == null || i(O);
|
|
@@ -634,7 +655,7 @@ const ve = {
|
|
|
634
655
|
) : /* @__PURE__ */ s.jsxs(
|
|
635
656
|
"button",
|
|
636
657
|
{
|
|
637
|
-
ref:
|
|
658
|
+
ref: h,
|
|
638
659
|
type: p,
|
|
639
660
|
disabled: u,
|
|
640
661
|
onClick: w,
|
|
@@ -656,7 +677,7 @@ const ve = {
|
|
|
656
677
|
]
|
|
657
678
|
}
|
|
658
679
|
) });
|
|
659
|
-
},
|
|
680
|
+
}, Nl = ({
|
|
660
681
|
children: e,
|
|
661
682
|
className: n = "",
|
|
662
683
|
border: t = !0
|
|
@@ -670,7 +691,7 @@ const ve = {
|
|
|
670
691
|
`,
|
|
671
692
|
children: e
|
|
672
693
|
}
|
|
673
|
-
),
|
|
694
|
+
), Dl = ({
|
|
674
695
|
label: e,
|
|
675
696
|
checked: n = !1,
|
|
676
697
|
disabled: t = !1,
|
|
@@ -714,7 +735,7 @@ const ve = {
|
|
|
714
735
|
e && /* @__PURE__ */ s.jsx("span", { className: `text-sm text-color-gray-700 ${a}`, children: e })
|
|
715
736
|
]
|
|
716
737
|
}
|
|
717
|
-
),
|
|
738
|
+
), zl = ({
|
|
718
739
|
selected: e,
|
|
719
740
|
items: n = [],
|
|
720
741
|
className: t = "",
|
|
@@ -780,7 +801,7 @@ var wn;
|
|
|
780
801
|
function eo() {
|
|
781
802
|
if (wn) return ne;
|
|
782
803
|
wn = 1;
|
|
783
|
-
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, a = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, f = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117,
|
|
804
|
+
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, a = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, f = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, h = e ? Symbol.for("react.responder") : 60118, k = e ? Symbol.for("react.scope") : 60119;
|
|
784
805
|
function w(y) {
|
|
785
806
|
if (typeof y == "object" && y !== null) {
|
|
786
807
|
var O = y.$$typeof;
|
|
@@ -839,7 +860,7 @@ function eo() {
|
|
|
839
860
|
}, ne.isSuspense = function(y) {
|
|
840
861
|
return w(y) === g;
|
|
841
862
|
}, ne.isValidElementType = function(y) {
|
|
842
|
-
return typeof y == "string" || typeof y == "function" || y === r || y === u || y === a || y === o || y === g || y === p || typeof y == "object" && y !== null && (y.$$typeof === v || y.$$typeof === f || y.$$typeof === i || y.$$typeof === l || y.$$typeof === d || y.$$typeof === b || y.$$typeof ===
|
|
863
|
+
return typeof y == "string" || typeof y == "function" || y === r || y === u || y === a || y === o || y === g || y === p || typeof y == "object" && y !== null && (y.$$typeof === v || y.$$typeof === f || y.$$typeof === i || y.$$typeof === l || y.$$typeof === d || y.$$typeof === b || y.$$typeof === h || y.$$typeof === k || y.$$typeof === m);
|
|
843
864
|
}, ne.typeOf = w, ne;
|
|
844
865
|
}
|
|
845
866
|
var re = {};
|
|
@@ -854,10 +875,10 @@ var re = {};
|
|
|
854
875
|
var yn;
|
|
855
876
|
function to() {
|
|
856
877
|
return yn || (yn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
857
|
-
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, a = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, f = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117,
|
|
878
|
+
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, a = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, f = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, h = e ? Symbol.for("react.responder") : 60118, k = e ? Symbol.for("react.scope") : 60119;
|
|
858
879
|
function w(j) {
|
|
859
880
|
return typeof j == "string" || typeof j == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
860
|
-
j === r || j === u || j === a || j === o || j === g || j === p || typeof j == "object" && j !== null && (j.$$typeof === v || j.$$typeof === f || j.$$typeof === i || j.$$typeof === l || j.$$typeof === d || j.$$typeof === b || j.$$typeof ===
|
|
881
|
+
j === r || j === u || j === a || j === o || j === g || j === p || typeof j == "object" && j !== null && (j.$$typeof === v || j.$$typeof === f || j.$$typeof === i || j.$$typeof === l || j.$$typeof === d || j.$$typeof === b || j.$$typeof === h || j.$$typeof === k || j.$$typeof === m);
|
|
861
882
|
}
|
|
862
883
|
function $(j) {
|
|
863
884
|
if (typeof j == "object" && j !== null) {
|
|
@@ -893,9 +914,9 @@ function to() {
|
|
|
893
914
|
}
|
|
894
915
|
var y = c, O = u, D = l, V = i, F = n, Z = d, ae = r, ue = v, Q = f, H = t, Y = a, T = o, te = g, pe = !1;
|
|
895
916
|
function X(j) {
|
|
896
|
-
return pe || (pe = !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.")),
|
|
917
|
+
return pe || (pe = !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.")), x(j) || $(j) === c;
|
|
897
918
|
}
|
|
898
|
-
function
|
|
919
|
+
function x(j) {
|
|
899
920
|
return $(j) === u;
|
|
900
921
|
}
|
|
901
922
|
function C(j) {
|
|
@@ -931,7 +952,7 @@ function to() {
|
|
|
931
952
|
function S(j) {
|
|
932
953
|
return $(j) === g;
|
|
933
954
|
}
|
|
934
|
-
re.AsyncMode = y, re.ConcurrentMode = O, re.ContextConsumer = D, re.ContextProvider = V, re.Element = F, re.ForwardRef = Z, re.Fragment = ae, re.Lazy = ue, re.Memo = Q, re.Portal = H, re.Profiler = Y, re.StrictMode = T, re.Suspense = te, re.isAsyncMode = X, re.isConcurrentMode =
|
|
955
|
+
re.AsyncMode = y, re.ConcurrentMode = O, re.ContextConsumer = D, re.ContextProvider = V, re.Element = F, re.ForwardRef = Z, re.Fragment = ae, re.Lazy = ue, re.Memo = Q, re.Portal = H, re.Profiler = Y, re.StrictMode = T, re.Suspense = te, re.isAsyncMode = X, re.isConcurrentMode = x, re.isContextConsumer = C, re.isContextProvider = L, re.isElement = M, re.isForwardRef = N, re.isFragment = I, re.isLazy = z, re.isMemo = E, re.isPortal = P, re.isProfiler = B, re.isStrictMode = q, re.isSuspense = S, re.isValidElementType = w, re.typeOf = $;
|
|
935
956
|
}()), re;
|
|
936
957
|
}
|
|
937
958
|
var Cn;
|
|
@@ -1068,20 +1089,20 @@ function oo() {
|
|
|
1068
1089
|
}
|
|
1069
1090
|
return Mt = function(l, c) {
|
|
1070
1091
|
var u = typeof Symbol == "function" && Symbol.iterator, d = "@@iterator";
|
|
1071
|
-
function g(
|
|
1072
|
-
var C =
|
|
1092
|
+
function g(x) {
|
|
1093
|
+
var C = x && (u && x[u] || x[d]);
|
|
1073
1094
|
if (typeof C == "function")
|
|
1074
1095
|
return C;
|
|
1075
1096
|
}
|
|
1076
1097
|
var p = "<<anonymous>>", f = {
|
|
1077
|
-
array:
|
|
1078
|
-
bigint:
|
|
1079
|
-
bool:
|
|
1080
|
-
func:
|
|
1081
|
-
number:
|
|
1082
|
-
object:
|
|
1083
|
-
string:
|
|
1084
|
-
symbol:
|
|
1098
|
+
array: h("array"),
|
|
1099
|
+
bigint: h("bigint"),
|
|
1100
|
+
bool: h("boolean"),
|
|
1101
|
+
func: h("function"),
|
|
1102
|
+
number: h("number"),
|
|
1103
|
+
object: h("object"),
|
|
1104
|
+
string: h("string"),
|
|
1105
|
+
symbol: h("symbol"),
|
|
1085
1106
|
any: k(),
|
|
1086
1107
|
arrayOf: w,
|
|
1087
1108
|
element: $(),
|
|
@@ -1094,14 +1115,14 @@ function oo() {
|
|
|
1094
1115
|
shape: ue,
|
|
1095
1116
|
exact: Q
|
|
1096
1117
|
};
|
|
1097
|
-
function v(
|
|
1098
|
-
return
|
|
1118
|
+
function v(x, C) {
|
|
1119
|
+
return x === C ? x !== 0 || 1 / x === 1 / C : x !== x && C !== C;
|
|
1099
1120
|
}
|
|
1100
|
-
function m(
|
|
1101
|
-
this.message =
|
|
1121
|
+
function m(x, C) {
|
|
1122
|
+
this.message = x, this.data = C && typeof C == "object" ? C : {}, this.stack = "";
|
|
1102
1123
|
}
|
|
1103
1124
|
m.prototype = Error.prototype;
|
|
1104
|
-
function b(
|
|
1125
|
+
function b(x) {
|
|
1105
1126
|
if (process.env.NODE_ENV !== "production")
|
|
1106
1127
|
var C = {}, L = 0;
|
|
1107
1128
|
function M(I, z, E, P, B, q, S) {
|
|
@@ -1119,19 +1140,19 @@ function oo() {
|
|
|
1119
1140
|
), C[_] = !0, L++);
|
|
1120
1141
|
}
|
|
1121
1142
|
}
|
|
1122
|
-
return z[E] == null ? I ? z[E] === null ? new m("The " + B + " `" + q + "` is marked as required " + ("in `" + P + "`, but its value is `null`.")) : new m("The " + B + " `" + q + "` is marked as required in " + ("`" + P + "`, but its value is `undefined`.")) : null :
|
|
1143
|
+
return z[E] == null ? I ? z[E] === null ? new m("The " + B + " `" + q + "` is marked as required " + ("in `" + P + "`, but its value is `null`.")) : new m("The " + B + " `" + q + "` is marked as required in " + ("`" + P + "`, but its value is `undefined`.")) : null : x(z, E, P, B, q);
|
|
1123
1144
|
}
|
|
1124
1145
|
var N = M.bind(null, !1);
|
|
1125
1146
|
return N.isRequired = M.bind(null, !0), N;
|
|
1126
1147
|
}
|
|
1127
|
-
function x
|
|
1148
|
+
function h(x) {
|
|
1128
1149
|
function C(L, M, N, I, z, E) {
|
|
1129
1150
|
var P = L[M], B = T(P);
|
|
1130
|
-
if (B !==
|
|
1151
|
+
if (B !== x) {
|
|
1131
1152
|
var q = te(P);
|
|
1132
1153
|
return new m(
|
|
1133
|
-
"Invalid " + I + " `" + z + "` of type " + ("`" + q + "` supplied to `" + N + "`, expected ") + ("`" +
|
|
1134
|
-
{ expectedType:
|
|
1154
|
+
"Invalid " + I + " `" + z + "` of type " + ("`" + q + "` supplied to `" + N + "`, expected ") + ("`" + x + "`."),
|
|
1155
|
+
{ expectedType: x }
|
|
1135
1156
|
);
|
|
1136
1157
|
}
|
|
1137
1158
|
return null;
|
|
@@ -1141,9 +1162,9 @@ function oo() {
|
|
|
1141
1162
|
function k() {
|
|
1142
1163
|
return b(i);
|
|
1143
1164
|
}
|
|
1144
|
-
function w(
|
|
1165
|
+
function w(x) {
|
|
1145
1166
|
function C(L, M, N, I, z) {
|
|
1146
|
-
if (typeof
|
|
1167
|
+
if (typeof x != "function")
|
|
1147
1168
|
return new m("Property `" + z + "` of component `" + N + "` has invalid PropType notation inside arrayOf.");
|
|
1148
1169
|
var E = L[M];
|
|
1149
1170
|
if (!Array.isArray(E)) {
|
|
@@ -1151,7 +1172,7 @@ function oo() {
|
|
|
1151
1172
|
return new m("Invalid " + I + " `" + z + "` of type " + ("`" + P + "` supplied to `" + N + "`, expected an array."));
|
|
1152
1173
|
}
|
|
1153
1174
|
for (var B = 0; B < E.length; B++) {
|
|
1154
|
-
var q =
|
|
1175
|
+
var q = x(E, B, N, I, z + "[" + B + "]", t);
|
|
1155
1176
|
if (q instanceof Error)
|
|
1156
1177
|
return q;
|
|
1157
1178
|
}
|
|
@@ -1160,7 +1181,7 @@ function oo() {
|
|
|
1160
1181
|
return b(C);
|
|
1161
1182
|
}
|
|
1162
1183
|
function $() {
|
|
1163
|
-
function
|
|
1184
|
+
function x(C, L, M, N, I) {
|
|
1164
1185
|
var z = C[L];
|
|
1165
1186
|
if (!l(z)) {
|
|
1166
1187
|
var E = T(z);
|
|
@@ -1168,10 +1189,10 @@ function oo() {
|
|
|
1168
1189
|
}
|
|
1169
1190
|
return null;
|
|
1170
1191
|
}
|
|
1171
|
-
return b(
|
|
1192
|
+
return b(x);
|
|
1172
1193
|
}
|
|
1173
1194
|
function y() {
|
|
1174
|
-
function
|
|
1195
|
+
function x(C, L, M, N, I) {
|
|
1175
1196
|
var z = C[L];
|
|
1176
1197
|
if (!e.isValidElementType(z)) {
|
|
1177
1198
|
var E = T(z);
|
|
@@ -1179,28 +1200,28 @@ function oo() {
|
|
|
1179
1200
|
}
|
|
1180
1201
|
return null;
|
|
1181
1202
|
}
|
|
1182
|
-
return b(
|
|
1203
|
+
return b(x);
|
|
1183
1204
|
}
|
|
1184
|
-
function O(
|
|
1205
|
+
function O(x) {
|
|
1185
1206
|
function C(L, M, N, I, z) {
|
|
1186
|
-
if (!(L[M] instanceof
|
|
1187
|
-
var E =
|
|
1207
|
+
if (!(L[M] instanceof x)) {
|
|
1208
|
+
var E = x.name || p, P = X(L[M]);
|
|
1188
1209
|
return new m("Invalid " + I + " `" + z + "` of type " + ("`" + P + "` supplied to `" + N + "`, expected ") + ("instance of `" + E + "`."));
|
|
1189
1210
|
}
|
|
1190
1211
|
return null;
|
|
1191
1212
|
}
|
|
1192
1213
|
return b(C);
|
|
1193
1214
|
}
|
|
1194
|
-
function D(
|
|
1195
|
-
if (!Array.isArray(
|
|
1215
|
+
function D(x) {
|
|
1216
|
+
if (!Array.isArray(x))
|
|
1196
1217
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
1197
1218
|
"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])."
|
|
1198
1219
|
) : a("Invalid argument supplied to oneOf, expected an array.")), i;
|
|
1199
1220
|
function C(L, M, N, I, z) {
|
|
1200
|
-
for (var E = L[M], P = 0; P <
|
|
1201
|
-
if (v(E,
|
|
1221
|
+
for (var E = L[M], P = 0; P < x.length; P++)
|
|
1222
|
+
if (v(E, x[P]))
|
|
1202
1223
|
return null;
|
|
1203
|
-
var B = JSON.stringify(
|
|
1224
|
+
var B = JSON.stringify(x, function(S, j) {
|
|
1204
1225
|
var _ = te(j);
|
|
1205
1226
|
return _ === "symbol" ? String(j) : j;
|
|
1206
1227
|
});
|
|
@@ -1208,16 +1229,16 @@ function oo() {
|
|
|
1208
1229
|
}
|
|
1209
1230
|
return b(C);
|
|
1210
1231
|
}
|
|
1211
|
-
function V(
|
|
1232
|
+
function V(x) {
|
|
1212
1233
|
function C(L, M, N, I, z) {
|
|
1213
|
-
if (typeof
|
|
1234
|
+
if (typeof x != "function")
|
|
1214
1235
|
return new m("Property `" + z + "` of component `" + N + "` has invalid PropType notation inside objectOf.");
|
|
1215
1236
|
var E = L[M], P = T(E);
|
|
1216
1237
|
if (P !== "object")
|
|
1217
1238
|
return new m("Invalid " + I + " `" + z + "` of type " + ("`" + P + "` supplied to `" + N + "`, expected an object."));
|
|
1218
1239
|
for (var B in E)
|
|
1219
1240
|
if (r(E, B)) {
|
|
1220
|
-
var q =
|
|
1241
|
+
var q = x(E, B, N, I, z + "." + B, t);
|
|
1221
1242
|
if (q instanceof Error)
|
|
1222
1243
|
return q;
|
|
1223
1244
|
}
|
|
@@ -1225,19 +1246,19 @@ function oo() {
|
|
|
1225
1246
|
}
|
|
1226
1247
|
return b(C);
|
|
1227
1248
|
}
|
|
1228
|
-
function F(
|
|
1229
|
-
if (!Array.isArray(
|
|
1249
|
+
function F(x) {
|
|
1250
|
+
if (!Array.isArray(x))
|
|
1230
1251
|
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), i;
|
|
1231
|
-
for (var C = 0; C <
|
|
1232
|
-
var L =
|
|
1252
|
+
for (var C = 0; C < x.length; C++) {
|
|
1253
|
+
var L = x[C];
|
|
1233
1254
|
if (typeof L != "function")
|
|
1234
1255
|
return a(
|
|
1235
1256
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + pe(L) + " at index " + C + "."
|
|
1236
1257
|
), i;
|
|
1237
1258
|
}
|
|
1238
1259
|
function M(N, I, z, E, P) {
|
|
1239
|
-
for (var B = [], q = 0; q <
|
|
1240
|
-
var S =
|
|
1260
|
+
for (var B = [], q = 0; q < x.length; q++) {
|
|
1261
|
+
var S = x[q], j = S(N, I, z, E, P, t);
|
|
1241
1262
|
if (j == null)
|
|
1242
1263
|
return null;
|
|
1243
1264
|
j.data && r(j.data, "expectedType") && B.push(j.data.expectedType);
|
|
@@ -1248,23 +1269,23 @@ function oo() {
|
|
|
1248
1269
|
return b(M);
|
|
1249
1270
|
}
|
|
1250
1271
|
function Z() {
|
|
1251
|
-
function
|
|
1272
|
+
function x(C, L, M, N, I) {
|
|
1252
1273
|
return H(C[L]) ? null : new m("Invalid " + N + " `" + I + "` supplied to " + ("`" + M + "`, expected a ReactNode."));
|
|
1253
1274
|
}
|
|
1254
|
-
return b(
|
|
1275
|
+
return b(x);
|
|
1255
1276
|
}
|
|
1256
|
-
function ae(
|
|
1277
|
+
function ae(x, C, L, M, N) {
|
|
1257
1278
|
return new m(
|
|
1258
|
-
(
|
|
1279
|
+
(x || "React class") + ": " + C + " type `" + L + "." + M + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + N + "`."
|
|
1259
1280
|
);
|
|
1260
1281
|
}
|
|
1261
|
-
function ue(
|
|
1282
|
+
function ue(x) {
|
|
1262
1283
|
function C(L, M, N, I, z) {
|
|
1263
1284
|
var E = L[M], P = T(E);
|
|
1264
1285
|
if (P !== "object")
|
|
1265
1286
|
return new m("Invalid " + I + " `" + z + "` of type `" + P + "` " + ("supplied to `" + N + "`, expected `object`."));
|
|
1266
|
-
for (var B in
|
|
1267
|
-
var q =
|
|
1287
|
+
for (var B in x) {
|
|
1288
|
+
var q = x[B];
|
|
1268
1289
|
if (typeof q != "function")
|
|
1269
1290
|
return ae(N, I, z, B, te(q));
|
|
1270
1291
|
var S = q(E, B, N, I, z + "." + B, t);
|
|
@@ -1275,20 +1296,20 @@ function oo() {
|
|
|
1275
1296
|
}
|
|
1276
1297
|
return b(C);
|
|
1277
1298
|
}
|
|
1278
|
-
function Q(
|
|
1299
|
+
function Q(x) {
|
|
1279
1300
|
function C(L, M, N, I, z) {
|
|
1280
1301
|
var E = L[M], P = T(E);
|
|
1281
1302
|
if (P !== "object")
|
|
1282
1303
|
return new m("Invalid " + I + " `" + z + "` of type `" + P + "` " + ("supplied to `" + N + "`, expected `object`."));
|
|
1283
|
-
var B = n({}, L[M],
|
|
1304
|
+
var B = n({}, L[M], x);
|
|
1284
1305
|
for (var q in B) {
|
|
1285
|
-
var S =
|
|
1286
|
-
if (r(
|
|
1306
|
+
var S = x[q];
|
|
1307
|
+
if (r(x, q) && typeof S != "function")
|
|
1287
1308
|
return ae(N, I, z, q, te(S));
|
|
1288
1309
|
if (!S)
|
|
1289
1310
|
return new m(
|
|
1290
1311
|
"Invalid " + I + " `" + z + "` key `" + q + "` supplied to `" + N + "`.\nBad object: " + JSON.stringify(L[M], null, " ") + `
|
|
1291
|
-
Valid keys: ` + JSON.stringify(Object.keys(
|
|
1312
|
+
Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
|
|
1292
1313
|
);
|
|
1293
1314
|
var j = S(E, q, N, I, z + "." + q, t);
|
|
1294
1315
|
if (j)
|
|
@@ -1298,23 +1319,23 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
1298
1319
|
}
|
|
1299
1320
|
return b(C);
|
|
1300
1321
|
}
|
|
1301
|
-
function H(
|
|
1302
|
-
switch (typeof
|
|
1322
|
+
function H(x) {
|
|
1323
|
+
switch (typeof x) {
|
|
1303
1324
|
case "number":
|
|
1304
1325
|
case "string":
|
|
1305
1326
|
case "undefined":
|
|
1306
1327
|
return !0;
|
|
1307
1328
|
case "boolean":
|
|
1308
|
-
return !
|
|
1329
|
+
return !x;
|
|
1309
1330
|
case "object":
|
|
1310
|
-
if (Array.isArray(
|
|
1311
|
-
return
|
|
1312
|
-
if (
|
|
1331
|
+
if (Array.isArray(x))
|
|
1332
|
+
return x.every(H);
|
|
1333
|
+
if (x === null || l(x))
|
|
1313
1334
|
return !0;
|
|
1314
|
-
var C = g(
|
|
1335
|
+
var C = g(x);
|
|
1315
1336
|
if (C) {
|
|
1316
|
-
var L = C.call(
|
|
1317
|
-
if (C !==
|
|
1337
|
+
var L = C.call(x), M;
|
|
1338
|
+
if (C !== x.entries) {
|
|
1318
1339
|
for (; !(M = L.next()).done; )
|
|
1319
1340
|
if (!H(M.value))
|
|
1320
1341
|
return !1;
|
|
@@ -1331,27 +1352,27 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
1331
1352
|
return !1;
|
|
1332
1353
|
}
|
|
1333
1354
|
}
|
|
1334
|
-
function Y(
|
|
1335
|
-
return
|
|
1355
|
+
function Y(x, C) {
|
|
1356
|
+
return x === "symbol" ? !0 : C ? C["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && C instanceof Symbol : !1;
|
|
1336
1357
|
}
|
|
1337
|
-
function T(
|
|
1338
|
-
var C = typeof
|
|
1339
|
-
return Array.isArray(
|
|
1358
|
+
function T(x) {
|
|
1359
|
+
var C = typeof x;
|
|
1360
|
+
return Array.isArray(x) ? "array" : x instanceof RegExp ? "object" : Y(C, x) ? "symbol" : C;
|
|
1340
1361
|
}
|
|
1341
|
-
function te(
|
|
1342
|
-
if (typeof
|
|
1343
|
-
return "" +
|
|
1344
|
-
var C = T(
|
|
1362
|
+
function te(x) {
|
|
1363
|
+
if (typeof x > "u" || x === null)
|
|
1364
|
+
return "" + x;
|
|
1365
|
+
var C = T(x);
|
|
1345
1366
|
if (C === "object") {
|
|
1346
|
-
if (
|
|
1367
|
+
if (x instanceof Date)
|
|
1347
1368
|
return "date";
|
|
1348
|
-
if (
|
|
1369
|
+
if (x instanceof RegExp)
|
|
1349
1370
|
return "regexp";
|
|
1350
1371
|
}
|
|
1351
1372
|
return C;
|
|
1352
1373
|
}
|
|
1353
|
-
function pe(
|
|
1354
|
-
var C = te(
|
|
1374
|
+
function pe(x) {
|
|
1375
|
+
var C = te(x);
|
|
1355
1376
|
switch (C) {
|
|
1356
1377
|
case "array":
|
|
1357
1378
|
case "object":
|
|
@@ -1364,8 +1385,8 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
1364
1385
|
return C;
|
|
1365
1386
|
}
|
|
1366
1387
|
}
|
|
1367
|
-
function X(
|
|
1368
|
-
return !
|
|
1388
|
+
function X(x) {
|
|
1389
|
+
return !x.constructor || !x.constructor.name ? p : x.constructor.name;
|
|
1369
1390
|
}
|
|
1370
1391
|
return f.checkPropTypes = o, f.resetWarningCache = o.resetWarningCache, f.PropTypes = f, f;
|
|
1371
1392
|
}, Mt;
|
|
@@ -1430,7 +1451,7 @@ function io() {
|
|
|
1430
1451
|
}
|
|
1431
1452
|
var lo = /* @__PURE__ */ io();
|
|
1432
1453
|
const ie = /* @__PURE__ */ nr(lo);
|
|
1433
|
-
function
|
|
1454
|
+
function De(e, n, t, r) {
|
|
1434
1455
|
function o(a) {
|
|
1435
1456
|
return a instanceof t ? a : new t(function(i) {
|
|
1436
1457
|
i(a);
|
|
@@ -2693,8 +2714,8 @@ const uo = [
|
|
|
2693
2714
|
// Windows
|
|
2694
2715
|
];
|
|
2695
2716
|
function po(e) {
|
|
2696
|
-
return
|
|
2697
|
-
return pt(e) && fo(e.dataTransfer) ?
|
|
2717
|
+
return De(this, void 0, void 0, function* () {
|
|
2718
|
+
return pt(e) && fo(e.dataTransfer) ? xo(e.dataTransfer, e.type) : mo(e) ? go(e) : Array.isArray(e) && e.every((n) => "getFile" in n && typeof n.getFile == "function") ? vo(e) : [];
|
|
2698
2719
|
});
|
|
2699
2720
|
}
|
|
2700
2721
|
function fo(e) {
|
|
@@ -2710,17 +2731,17 @@ function go(e) {
|
|
|
2710
2731
|
return Wt(e.target.files).map((n) => Oe(n));
|
|
2711
2732
|
}
|
|
2712
2733
|
function vo(e) {
|
|
2713
|
-
return
|
|
2734
|
+
return De(this, void 0, void 0, function* () {
|
|
2714
2735
|
return (yield Promise.all(e.map((t) => t.getFile()))).map((t) => Oe(t));
|
|
2715
2736
|
});
|
|
2716
2737
|
}
|
|
2717
|
-
function
|
|
2718
|
-
return
|
|
2738
|
+
function xo(e, n) {
|
|
2739
|
+
return De(this, void 0, void 0, function* () {
|
|
2719
2740
|
if (e.items) {
|
|
2720
2741
|
const t = Wt(e.items).filter((o) => o.kind === "file");
|
|
2721
2742
|
if (n !== "drop")
|
|
2722
2743
|
return t;
|
|
2723
|
-
const r = yield Promise.all(t.map(
|
|
2744
|
+
const r = yield Promise.all(t.map(ho));
|
|
2724
2745
|
return Mn(ar(r));
|
|
2725
2746
|
}
|
|
2726
2747
|
return Mn(Wt(e.files).map((t) => Oe(t)));
|
|
@@ -2739,7 +2760,7 @@ function Wt(e) {
|
|
|
2739
2760
|
}
|
|
2740
2761
|
return n;
|
|
2741
2762
|
}
|
|
2742
|
-
function
|
|
2763
|
+
function ho(e) {
|
|
2743
2764
|
if (typeof e.webkitGetAsEntry != "function")
|
|
2744
2765
|
return Ln(e);
|
|
2745
2766
|
const n = e.webkitGetAsEntry();
|
|
@@ -2752,7 +2773,7 @@ function ar(e) {
|
|
|
2752
2773
|
], []);
|
|
2753
2774
|
}
|
|
2754
2775
|
function Ln(e, n) {
|
|
2755
|
-
return
|
|
2776
|
+
return De(this, void 0, void 0, function* () {
|
|
2756
2777
|
var t;
|
|
2757
2778
|
if (globalThis.isSecureContext && typeof e.getAsFileSystemHandle == "function") {
|
|
2758
2779
|
const a = yield e.getAsFileSystemHandle();
|
|
@@ -2770,7 +2791,7 @@ function Ln(e, n) {
|
|
|
2770
2791
|
});
|
|
2771
2792
|
}
|
|
2772
2793
|
function bo(e) {
|
|
2773
|
-
return
|
|
2794
|
+
return De(this, void 0, void 0, function* () {
|
|
2774
2795
|
return e.isDirectory ? ir(e) : wo(e);
|
|
2775
2796
|
});
|
|
2776
2797
|
}
|
|
@@ -2779,7 +2800,7 @@ function ir(e) {
|
|
|
2779
2800
|
return new Promise((t, r) => {
|
|
2780
2801
|
const o = [];
|
|
2781
2802
|
function a() {
|
|
2782
|
-
n.readEntries((i) =>
|
|
2803
|
+
n.readEntries((i) => De(this, void 0, void 0, function* () {
|
|
2783
2804
|
if (i.length) {
|
|
2784
2805
|
const l = Promise.all(i.map(bo));
|
|
2785
2806
|
o.push(l), a();
|
|
@@ -2798,7 +2819,7 @@ function ir(e) {
|
|
|
2798
2819
|
});
|
|
2799
2820
|
}
|
|
2800
2821
|
function wo(e) {
|
|
2801
|
-
return
|
|
2822
|
+
return De(this, void 0, void 0, function* () {
|
|
2802
2823
|
return new Promise((n, t) => {
|
|
2803
2824
|
e.file((r) => {
|
|
2804
2825
|
const o = Oe(r, e.fullPath);
|
|
@@ -2932,17 +2953,17 @@ function cr(e, n) {
|
|
|
2932
2953
|
return [t, t ? null : Ao(n)];
|
|
2933
2954
|
}
|
|
2934
2955
|
function ur(e, n, t) {
|
|
2935
|
-
if (
|
|
2936
|
-
if (
|
|
2956
|
+
if (Ne(e.size))
|
|
2957
|
+
if (Ne(n) && Ne(t)) {
|
|
2937
2958
|
if (e.size > t) return [!1, zn(t)];
|
|
2938
2959
|
if (e.size < n) return [!1, Tn(n)];
|
|
2939
2960
|
} else {
|
|
2940
|
-
if (
|
|
2941
|
-
if (
|
|
2961
|
+
if (Ne(n) && e.size < n) return [!1, Tn(n)];
|
|
2962
|
+
if (Ne(t) && e.size > t) return [!1, zn(t)];
|
|
2942
2963
|
}
|
|
2943
2964
|
return [!0, null];
|
|
2944
2965
|
}
|
|
2945
|
-
function
|
|
2966
|
+
function Ne(e) {
|
|
2946
2967
|
return e != null;
|
|
2947
2968
|
}
|
|
2948
2969
|
function Do(e) {
|
|
@@ -2973,7 +2994,7 @@ function Oo() {
|
|
|
2973
2994
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
|
|
2974
2995
|
return zo(e) || To(e);
|
|
2975
2996
|
}
|
|
2976
|
-
function
|
|
2997
|
+
function je() {
|
|
2977
2998
|
for (var e = arguments.length, n = new Array(e), t = 0; t < e; t++)
|
|
2978
2999
|
n[t] = arguments[t];
|
|
2979
3000
|
return function(r) {
|
|
@@ -2988,7 +3009,7 @@ function Io() {
|
|
|
2988
3009
|
return "showOpenFilePicker" in window;
|
|
2989
3010
|
}
|
|
2990
3011
|
function Vo(e) {
|
|
2991
|
-
if (
|
|
3012
|
+
if (Ne(e)) {
|
|
2992
3013
|
var n = Object.entries(e).filter(function(t) {
|
|
2993
3014
|
var r = Ue(t, 2), o = r[0], a = r[1], i = !0;
|
|
2994
3015
|
return dr(o) || (console.warn('Skipped "'.concat(o, '" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')), i = !1), (!Array.isArray(a) || !a.every(pr)) && (console.warn('Skipped "'.concat(o, '" because an invalid file extension was provided.')), i = !1), i;
|
|
@@ -3005,7 +3026,7 @@ function Vo(e) {
|
|
|
3005
3026
|
return e;
|
|
3006
3027
|
}
|
|
3007
3028
|
function Ho(e) {
|
|
3008
|
-
if (
|
|
3029
|
+
if (Ne(e))
|
|
3009
3030
|
return Object.entries(e).reduce(function(n, t) {
|
|
3010
3031
|
var r = Ue(t, 2), o = r[0], a = r[1];
|
|
3011
3032
|
return [].concat(An(n), [o], An(a));
|
|
@@ -3129,7 +3150,7 @@ var on = /* @__PURE__ */ Ye(function(e, n) {
|
|
|
3129
3150
|
return {
|
|
3130
3151
|
open: a
|
|
3131
3152
|
};
|
|
3132
|
-
}, [a]), /* @__PURE__ */
|
|
3153
|
+
}, [a]), /* @__PURE__ */ Ce.createElement(Yr, null, t(le(le({}, i), {}, {
|
|
3133
3154
|
open: a
|
|
3134
3155
|
})));
|
|
3135
3156
|
});
|
|
@@ -3329,15 +3350,15 @@ var Kt = {
|
|
|
3329
3350
|
fileRejections: []
|
|
3330
3351
|
};
|
|
3331
3352
|
function gr() {
|
|
3332
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = le(le({}, mr), e), t = n.accept, r = n.disabled, o = n.getFilesFromEvent, a = n.maxSize, i = n.minSize, l = n.multiple, c = n.maxFiles, u = n.onDragEnter, d = n.onDragLeave, g = n.onDragOver, p = n.onDrop, f = n.onDropAccepted, v = n.onDropRejected, m = n.onFileDialogCancel, b = n.onFileDialogOpen,
|
|
3353
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = le(le({}, mr), e), t = n.accept, r = n.disabled, o = n.getFilesFromEvent, a = n.maxSize, i = n.minSize, l = n.multiple, c = n.maxFiles, u = n.onDragEnter, d = n.onDragLeave, g = n.onDragOver, p = n.onDrop, f = n.onDropAccepted, v = n.onDropRejected, m = n.onFileDialogCancel, b = n.onFileDialogOpen, h = n.useFsAccessApi, k = n.autoFocus, w = n.preventDropOnDocument, $ = n.noClick, y = n.noKeyboard, O = n.noDrag, D = n.noDragEventsBubbling, V = n.onError, F = n.validator, Z = Me(function() {
|
|
3333
3354
|
return Ho(t);
|
|
3334
|
-
}, [t]), ae =
|
|
3355
|
+
}, [t]), ae = Me(function() {
|
|
3335
3356
|
return Vo(t);
|
|
3336
|
-
}, [t]), ue =
|
|
3357
|
+
}, [t]), ue = Me(function() {
|
|
3337
3358
|
return typeof b == "function" ? b : Vn;
|
|
3338
|
-
}, [b]), Q =
|
|
3359
|
+
}, [b]), Q = Me(function() {
|
|
3339
3360
|
return typeof m == "function" ? m : Vn;
|
|
3340
|
-
}, [m]), H = se(null), Y = se(null), T = Ur(ra, Kt), te = At(T, 2), pe = te[0], X = te[1],
|
|
3361
|
+
}, [m]), H = se(null), Y = se(null), T = Ur(ra, Kt), te = At(T, 2), pe = te[0], X = te[1], x = pe.isFocused, C = pe.isFileDialogActive, L = se(typeof window < "u" && window.isSecureContext && h && Io()), M = function() {
|
|
3341
3362
|
!L.current && C && setTimeout(function() {
|
|
3342
3363
|
if (Y.current) {
|
|
3343
3364
|
var G = Y.current.files;
|
|
@@ -3410,7 +3431,7 @@ function gr() {
|
|
|
3410
3431
|
}, [H, d, D]), q = oe(function(A, G) {
|
|
3411
3432
|
var me = [], ge = [];
|
|
3412
3433
|
A.forEach(function(we) {
|
|
3413
|
-
var Ve = cr(we, Z),
|
|
3434
|
+
var Ve = cr(we, Z), Te = At(Ve, 2), wt = Te[0], yt = Te[1], Ct = ur(we, i, a), Qe = At(Ct, 2), St = Qe[0], jt = Qe[1], Rt = F ? F(we) : null;
|
|
3414
3435
|
if (wt && St && !Rt)
|
|
3415
3436
|
me.push(we);
|
|
3416
3437
|
else {
|
|
@@ -3466,7 +3487,7 @@ function gr() {
|
|
|
3466
3487
|
Y.current && (X({
|
|
3467
3488
|
type: "openDialog"
|
|
3468
3489
|
}), ue(), Y.current.value = null, Y.current.click());
|
|
3469
|
-
}, [X, ue, Q,
|
|
3490
|
+
}, [X, ue, Q, h, q, z, ae, l]), _ = oe(function(A) {
|
|
3470
3491
|
!H.current || !H.current.isEqualNode(A.target) || (A.key === " " || A.key === "Enter" || A.keyCode === 32 || A.keyCode === 13) && (A.preventDefault(), j());
|
|
3471
3492
|
}, [H, j]), J = oe(function() {
|
|
3472
3493
|
X({
|
|
@@ -3486,18 +3507,18 @@ function gr() {
|
|
|
3486
3507
|
return O ? null : fe(G);
|
|
3487
3508
|
}, Je = function(G) {
|
|
3488
3509
|
D && G.stopPropagation();
|
|
3489
|
-
}, Br =
|
|
3510
|
+
}, Br = Me(function() {
|
|
3490
3511
|
return function() {
|
|
3491
|
-
var A = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, G = A.refKey, me = G === void 0 ? "ref" : G, ge = A.role, we = A.onKeyDown, Ve = A.onFocus,
|
|
3512
|
+
var A = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, G = A.refKey, me = G === void 0 ? "ref" : G, ge = A.role, we = A.onKeyDown, Ve = A.onFocus, Te = A.onBlur, wt = A.onClick, yt = A.onDragEnter, Ct = A.onDragOver, Qe = A.onDragLeave, St = A.onDrop, jt = mt(A, Uo);
|
|
3492
3513
|
return le(le(Zt({
|
|
3493
|
-
onKeyDown: be(
|
|
3494
|
-
onFocus: be(
|
|
3495
|
-
onBlur: be(
|
|
3496
|
-
onClick: fe(
|
|
3497
|
-
onDragEnter: Xe(
|
|
3498
|
-
onDragOver: Xe(
|
|
3499
|
-
onDragLeave: Xe(
|
|
3500
|
-
onDrop: Xe(
|
|
3514
|
+
onKeyDown: be(je(we, _)),
|
|
3515
|
+
onFocus: be(je(Ve, J)),
|
|
3516
|
+
onBlur: be(je(Te, ee)),
|
|
3517
|
+
onClick: fe(je(wt, de)),
|
|
3518
|
+
onDragEnter: Xe(je(yt, E)),
|
|
3519
|
+
onDragOver: Xe(je(Ct, P)),
|
|
3520
|
+
onDragLeave: Xe(je(Qe, B)),
|
|
3521
|
+
onDrop: Xe(je(St, S)),
|
|
3501
3522
|
role: typeof ge == "string" && ge !== "" ? ge : "presentation"
|
|
3502
3523
|
}, me, H), !r && !y ? {
|
|
3503
3524
|
tabIndex: 0
|
|
@@ -3505,9 +3526,9 @@ function gr() {
|
|
|
3505
3526
|
};
|
|
3506
3527
|
}, [H, _, J, ee, de, E, P, B, S, y, O, r]), qr = oe(function(A) {
|
|
3507
3528
|
A.stopPropagation();
|
|
3508
|
-
}, []), Gr =
|
|
3529
|
+
}, []), Gr = Me(function() {
|
|
3509
3530
|
return function() {
|
|
3510
|
-
var A = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, G = A.refKey, me = G === void 0 ? "ref" : G, ge = A.onChange, we = A.onClick, Ve = mt(A, Yo),
|
|
3531
|
+
var A = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, G = A.refKey, me = G === void 0 ? "ref" : G, ge = A.onChange, we = A.onClick, Ve = mt(A, Yo), Te = Zt({
|
|
3511
3532
|
accept: Z,
|
|
3512
3533
|
multiple: l,
|
|
3513
3534
|
type: "file",
|
|
@@ -3523,15 +3544,15 @@ function gr() {
|
|
|
3523
3544
|
width: "1px",
|
|
3524
3545
|
whiteSpace: "nowrap"
|
|
3525
3546
|
},
|
|
3526
|
-
onChange: fe(
|
|
3527
|
-
onClick: fe(
|
|
3547
|
+
onChange: fe(je(ge, S)),
|
|
3548
|
+
onClick: fe(je(we, qr)),
|
|
3528
3549
|
tabIndex: -1
|
|
3529
3550
|
}, me, Y);
|
|
3530
|
-
return le(le({},
|
|
3551
|
+
return le(le({}, Te), Ve);
|
|
3531
3552
|
};
|
|
3532
3553
|
}, [Y, t, l, S, r]);
|
|
3533
3554
|
return le(le({}, pe), {}, {
|
|
3534
|
-
isFocused:
|
|
3555
|
+
isFocused: x && !r,
|
|
3535
3556
|
getRootProps: Br,
|
|
3536
3557
|
getInputProps: Gr,
|
|
3537
3558
|
rootRef: H,
|
|
@@ -3577,7 +3598,7 @@ function ra(e, n) {
|
|
|
3577
3598
|
}
|
|
3578
3599
|
function Vn() {
|
|
3579
3600
|
}
|
|
3580
|
-
const
|
|
3601
|
+
const Tl = ({
|
|
3581
3602
|
onFilesAccepted: e,
|
|
3582
3603
|
onError: n,
|
|
3583
3604
|
accept: t = {
|
|
@@ -3600,16 +3621,16 @@ const zl = ({
|
|
|
3600
3621
|
showList: v = !0,
|
|
3601
3622
|
listView: m = !0,
|
|
3602
3623
|
showListImage: b = !1,
|
|
3603
|
-
uploadedFiles:
|
|
3624
|
+
uploadedFiles: h = [],
|
|
3604
3625
|
// New prop for pre-uploaded files
|
|
3605
3626
|
onDeleteCallback: k = () => {
|
|
3606
3627
|
}
|
|
3607
3628
|
//
|
|
3608
3629
|
}) => {
|
|
3609
|
-
const [w, $] = K(
|
|
3630
|
+
const [w, $] = K(h), [y, O] = K([]);
|
|
3610
3631
|
ce(() => {
|
|
3611
|
-
$(
|
|
3612
|
-
}, [
|
|
3632
|
+
$(h);
|
|
3633
|
+
}, [h]);
|
|
3613
3634
|
const D = oe(
|
|
3614
3635
|
(Q, H) => {
|
|
3615
3636
|
const Y = [];
|
|
@@ -3796,21 +3817,21 @@ const aa = {
|
|
|
3796
3817
|
}, g) => {
|
|
3797
3818
|
const p = se([]), f = (m, b) => {
|
|
3798
3819
|
var w;
|
|
3799
|
-
const
|
|
3800
|
-
if (!
|
|
3801
|
-
const k = t.substring(0, b) +
|
|
3802
|
-
r == null || r(k),
|
|
3820
|
+
const h = m.target.value.replace(/[^0-9]/g, "").slice(0, 1);
|
|
3821
|
+
if (!h && t[b] === void 0) return;
|
|
3822
|
+
const k = t.substring(0, b) + h + t.substring(b + 1, a);
|
|
3823
|
+
r == null || r(k), h && b < a - 1 && ((w = p.current[b + 1]) == null || w.focus()), o && k.length === a && !k.split("").some(($) => !$) && o(k);
|
|
3803
3824
|
}, v = (m, b) => {
|
|
3804
|
-
var
|
|
3825
|
+
var h, k, w;
|
|
3805
3826
|
m.key === "Backspace" && !t[b] && b > 0 ? (r == null || r(
|
|
3806
3827
|
t.substring(0, b - 1) + "" + t.substring(b, a)
|
|
3807
|
-
), (
|
|
3828
|
+
), (h = p.current[b - 1]) == null || h.focus(), m.preventDefault()) : m.key === "ArrowLeft" && b > 0 ? ((k = p.current[b - 1]) == null || k.focus(), m.preventDefault()) : m.key === "ArrowRight" && b < a - 1 && ((w = p.current[b + 1]) == null || w.focus(), m.preventDefault());
|
|
3808
3829
|
};
|
|
3809
3830
|
return /* @__PURE__ */ s.jsx("div", { className: `flex justify-center gap-2 ${e}`, children: Array.from({ length: a }).map((m, b) => /* @__PURE__ */ s.jsx(
|
|
3810
3831
|
"input",
|
|
3811
3832
|
{
|
|
3812
|
-
ref: (
|
|
3813
|
-
p.current[b] =
|
|
3833
|
+
ref: (h) => {
|
|
3834
|
+
p.current[b] = h;
|
|
3814
3835
|
},
|
|
3815
3836
|
type: "text",
|
|
3816
3837
|
inputMode: "numeric",
|
|
@@ -3825,8 +3846,8 @@ const aa = {
|
|
|
3825
3846
|
${n}
|
|
3826
3847
|
`,
|
|
3827
3848
|
value: t[b] || "",
|
|
3828
|
-
onChange: (
|
|
3829
|
-
onKeyDown: (
|
|
3849
|
+
onChange: (h) => f(h, b),
|
|
3850
|
+
onKeyDown: (h) => v(h, b),
|
|
3830
3851
|
...d
|
|
3831
3852
|
},
|
|
3832
3853
|
b
|
|
@@ -3860,10 +3881,10 @@ const ca = {
|
|
|
3860
3881
|
size: v = "medium",
|
|
3861
3882
|
...m
|
|
3862
3883
|
}, b) => {
|
|
3863
|
-
const
|
|
3884
|
+
const h = u ? "border-color-red-500 focus-within:ring-color-red-500" : "border-color-gray-200", k = u ? "text-color-red-500" : i;
|
|
3864
3885
|
return /* @__PURE__ */ s.jsxs("div", { className: "w-full", children: [
|
|
3865
3886
|
g && /* @__PURE__ */ s.jsx("label", { className: `text-sm text-color-gray-500 mb-2 block ${p}`, children: g }),
|
|
3866
|
-
/* @__PURE__ */ s.jsxs("div", { className: `flex items-center w-full rounded-md border focus-within:ring-1 ${
|
|
3887
|
+
/* @__PURE__ */ s.jsxs("div", { className: `flex items-center w-full rounded-md border focus-within:ring-1 ${h} ${ua[f]} ${o}`, children: [
|
|
3867
3888
|
l && /* @__PURE__ */ s.jsx("span", { className: `pl-3 ${k}`, children: l }),
|
|
3868
3889
|
/* @__PURE__ */ s.jsx(
|
|
3869
3890
|
"input",
|
|
@@ -3907,7 +3928,7 @@ const da = Ye((e, n) => {
|
|
|
3907
3928
|
);
|
|
3908
3929
|
});
|
|
3909
3930
|
da.displayName = "PasswordInput";
|
|
3910
|
-
const
|
|
3931
|
+
const xr = ({
|
|
3911
3932
|
src: e,
|
|
3912
3933
|
alt: n,
|
|
3913
3934
|
size: t = "medium",
|
|
@@ -3941,7 +3962,7 @@ const hr = ({
|
|
|
3941
3962
|
) : r || ((u = n == null ? void 0 : n[0]) == null ? void 0 : u.toUpperCase()) || "?"
|
|
3942
3963
|
}
|
|
3943
3964
|
);
|
|
3944
|
-
},
|
|
3965
|
+
}, Re = ({
|
|
3945
3966
|
variant: e = "filled",
|
|
3946
3967
|
color: n = "blue",
|
|
3947
3968
|
icon: t,
|
|
@@ -3957,8 +3978,8 @@ const hr = ({
|
|
|
3957
3978
|
const d = se(null), g = (v) => {
|
|
3958
3979
|
const m = d.current;
|
|
3959
3980
|
if (!m) return;
|
|
3960
|
-
const b = document.createElement("span"),
|
|
3961
|
-
b.style.width = b.style.height = `${k}px`, b.style.left = `${v.clientX -
|
|
3981
|
+
const b = document.createElement("span"), h = m.getBoundingClientRect(), k = Math.max(h.width, h.height);
|
|
3982
|
+
b.style.width = b.style.height = `${k}px`, b.style.left = `${v.clientX - h.left - k / 2}px`, b.style.top = `${v.clientY - h.top - k / 2}px`, b.className = "ripple_small", m.appendChild(b), setTimeout(() => b.remove(), 600), r == null || r(v);
|
|
3962
3983
|
}, p = ((f = ve[n]) == null ? void 0 : f[e === "filled" ? "filled" : e === "outlined" ? "outline" : "transparent"]) || "";
|
|
3963
3984
|
return /* @__PURE__ */ s.jsx(
|
|
3964
3985
|
"button",
|
|
@@ -3988,7 +4009,7 @@ const hr = ({
|
|
|
3988
4009
|
small: "!w-4 !h-4 text-xs",
|
|
3989
4010
|
medium: "!w-5 !h-5 text-sm",
|
|
3990
4011
|
large: "!w-6 !h-6 text-base"
|
|
3991
|
-
},
|
|
4012
|
+
}, Ol = ({
|
|
3992
4013
|
label: e,
|
|
3993
4014
|
color: n = "blue",
|
|
3994
4015
|
variant: t = "filled",
|
|
@@ -4002,13 +4023,13 @@ const hr = ({
|
|
|
4002
4023
|
avatar: d,
|
|
4003
4024
|
icon: g
|
|
4004
4025
|
}) => {
|
|
4005
|
-
var
|
|
4006
|
-
const p = (
|
|
4007
|
-
d && /* @__PURE__ */ s.jsx(
|
|
4026
|
+
var h, k;
|
|
4027
|
+
const p = (h = ve[n]) == null ? void 0 : h.filled, f = (k = ve[n]) == null ? void 0 : k.outline, v = pa[r], m = `inline-flex items-center rounded-full font-medium leading-none ${t === "outlined" ? `border ${f}` : p} ${v} ${a ? "cursor-pointer transition hover:opacity-80" : ""}`.trim(), b = /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
4028
|
+
d && /* @__PURE__ */ s.jsx(xr, { ...typeof d == "object" ? d : {}, className: `-ml-1 mr-1 ${Hn[r]}` }),
|
|
4008
4029
|
g && /* @__PURE__ */ s.jsx("span", { className: "mr-1 -ml-1", children: g }),
|
|
4009
4030
|
/* @__PURE__ */ s.jsx("span", { children: e }),
|
|
4010
4031
|
i && /* @__PURE__ */ s.jsx(
|
|
4011
|
-
|
|
4032
|
+
Re,
|
|
4012
4033
|
{
|
|
4013
4034
|
type: "button",
|
|
4014
4035
|
className: `ml-1 -mr-1 ${Hn[r]}`,
|
|
@@ -4039,21 +4060,21 @@ const hr = ({
|
|
|
4039
4060
|
children: b
|
|
4040
4061
|
}
|
|
4041
4062
|
);
|
|
4042
|
-
},
|
|
4063
|
+
}, Il = ({
|
|
4043
4064
|
size: e,
|
|
4044
4065
|
imageUrl: n,
|
|
4045
4066
|
name: t = "User",
|
|
4046
4067
|
number: r = "1234567890",
|
|
4047
4068
|
className: o = ""
|
|
4048
4069
|
}) => /* @__PURE__ */ s.jsxs("div", { className: o || "flex items-center gap-2 w-fit bg-color-transparent rounded-md p-1", children: [
|
|
4049
|
-
/* @__PURE__ */ s.jsx(
|
|
4070
|
+
/* @__PURE__ */ s.jsx(xr, { size: e, src: n, alt: `${t}'s profile` }),
|
|
4050
4071
|
/* @__PURE__ */ s.jsxs("div", { className: "flex flex-col", children: [
|
|
4051
4072
|
/* @__PURE__ */ s.jsx("span", { className: "text-sm font-medium text-color-gray-800", children: t }),
|
|
4052
4073
|
/* @__PURE__ */ s.jsx("span", { className: "text-xs text-color-gray-600", children: r })
|
|
4053
4074
|
] })
|
|
4054
|
-
] }),
|
|
4075
|
+
] }), Vl = ({ steps: e, currentStep: n, className: t = "", onChange: r }) => /* @__PURE__ */ s.jsx("div", { className: `flex items-center ${t}`, children: e.map((o, a) => {
|
|
4055
4076
|
const i = a === n, l = a < n;
|
|
4056
|
-
return /* @__PURE__ */ s.jsxs(
|
|
4077
|
+
return /* @__PURE__ */ s.jsxs(Ce.Fragment, { children: [
|
|
4057
4078
|
/* @__PURE__ */ s.jsxs(
|
|
4058
4079
|
"div",
|
|
4059
4080
|
{
|
|
@@ -4085,14 +4106,14 @@ const hr = ({
|
|
|
4085
4106
|
*
|
|
4086
4107
|
* @license MIT
|
|
4087
4108
|
*/
|
|
4088
|
-
function
|
|
4109
|
+
function Le(e, n) {
|
|
4089
4110
|
return typeof e == "function" ? e(n) : e;
|
|
4090
4111
|
}
|
|
4091
4112
|
function ye(e, n) {
|
|
4092
4113
|
return (t) => {
|
|
4093
4114
|
n.setState((r) => ({
|
|
4094
4115
|
...r,
|
|
4095
|
-
[e]:
|
|
4116
|
+
[e]: Le(t, r[e])
|
|
4096
4117
|
}));
|
|
4097
4118
|
};
|
|
4098
4119
|
}
|
|
@@ -4209,7 +4230,7 @@ function va(e, n, t, r) {
|
|
|
4209
4230
|
p.createColumn == null || p.createColumn(g, e);
|
|
4210
4231
|
return g;
|
|
4211
4232
|
}
|
|
4212
|
-
const
|
|
4233
|
+
const he = "debugHeaders";
|
|
4213
4234
|
function Bn(e, n, t) {
|
|
4214
4235
|
var r;
|
|
4215
4236
|
let a = {
|
|
@@ -4239,33 +4260,33 @@ function Bn(e, n, t) {
|
|
|
4239
4260
|
i.createHeader == null || i.createHeader(a, e);
|
|
4240
4261
|
}), a;
|
|
4241
4262
|
}
|
|
4242
|
-
const
|
|
4263
|
+
const xa = {
|
|
4243
4264
|
createTable: (e) => {
|
|
4244
4265
|
e.getHeaderGroups = W(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, r, o) => {
|
|
4245
4266
|
var a, i;
|
|
4246
4267
|
const l = (a = r == null ? void 0 : r.map((g) => t.find((p) => p.id === g)).filter(Boolean)) != null ? a : [], c = (i = o == null ? void 0 : o.map((g) => t.find((p) => p.id === g)).filter(Boolean)) != null ? i : [], u = t.filter((g) => !(r != null && r.includes(g.id)) && !(o != null && o.includes(g.id)));
|
|
4247
4268
|
return at(n, [...l, ...u, ...c], e);
|
|
4248
|
-
}, U(e.options,
|
|
4269
|
+
}, U(e.options, he, "getHeaderGroups")), e.getCenterHeaderGroups = W(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, r, o) => (t = t.filter((a) => !(r != null && r.includes(a.id)) && !(o != null && o.includes(a.id))), at(n, t, e, "center")), U(e.options, he, "getCenterHeaderGroups")), e.getLeftHeaderGroups = W(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left], (n, t, r) => {
|
|
4249
4270
|
var o;
|
|
4250
4271
|
const a = (o = r == null ? void 0 : r.map((i) => t.find((l) => l.id === i)).filter(Boolean)) != null ? o : [];
|
|
4251
4272
|
return at(n, a, e, "left");
|
|
4252
|
-
}, U(e.options,
|
|
4273
|
+
}, U(e.options, he, "getLeftHeaderGroups")), e.getRightHeaderGroups = W(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.right], (n, t, r) => {
|
|
4253
4274
|
var o;
|
|
4254
4275
|
const a = (o = r == null ? void 0 : r.map((i) => t.find((l) => l.id === i)).filter(Boolean)) != null ? o : [];
|
|
4255
4276
|
return at(n, a, e, "right");
|
|
4256
|
-
}, U(e.options,
|
|
4277
|
+
}, U(e.options, he, "getRightHeaderGroups")), e.getFooterGroups = W(() => [e.getHeaderGroups()], (n) => [...n].reverse(), U(e.options, he, "getFooterGroups")), e.getLeftFooterGroups = W(() => [e.getLeftHeaderGroups()], (n) => [...n].reverse(), U(e.options, he, "getLeftFooterGroups")), e.getCenterFooterGroups = W(() => [e.getCenterHeaderGroups()], (n) => [...n].reverse(), U(e.options, he, "getCenterFooterGroups")), e.getRightFooterGroups = W(() => [e.getRightHeaderGroups()], (n) => [...n].reverse(), U(e.options, he, "getRightFooterGroups")), e.getFlatHeaders = W(() => [e.getHeaderGroups()], (n) => n.map((t) => t.headers).flat(), U(e.options, he, "getFlatHeaders")), e.getLeftFlatHeaders = W(() => [e.getLeftHeaderGroups()], (n) => n.map((t) => t.headers).flat(), U(e.options, he, "getLeftFlatHeaders")), e.getCenterFlatHeaders = W(() => [e.getCenterHeaderGroups()], (n) => n.map((t) => t.headers).flat(), U(e.options, he, "getCenterFlatHeaders")), e.getRightFlatHeaders = W(() => [e.getRightHeaderGroups()], (n) => n.map((t) => t.headers).flat(), U(e.options, he, "getRightFlatHeaders")), e.getCenterLeafHeaders = W(() => [e.getCenterFlatHeaders()], (n) => n.filter((t) => {
|
|
4257
4278
|
var r;
|
|
4258
4279
|
return !((r = t.subHeaders) != null && r.length);
|
|
4259
|
-
}), U(e.options,
|
|
4280
|
+
}), U(e.options, he, "getCenterLeafHeaders")), e.getLeftLeafHeaders = W(() => [e.getLeftFlatHeaders()], (n) => n.filter((t) => {
|
|
4260
4281
|
var r;
|
|
4261
4282
|
return !((r = t.subHeaders) != null && r.length);
|
|
4262
|
-
}), U(e.options,
|
|
4283
|
+
}), U(e.options, he, "getLeftLeafHeaders")), e.getRightLeafHeaders = W(() => [e.getRightFlatHeaders()], (n) => n.filter((t) => {
|
|
4263
4284
|
var r;
|
|
4264
4285
|
return !((r = t.subHeaders) != null && r.length);
|
|
4265
|
-
}), U(e.options,
|
|
4286
|
+
}), U(e.options, he, "getRightLeafHeaders")), e.getLeafHeaders = W(() => [e.getLeftHeaderGroups(), e.getCenterHeaderGroups(), e.getRightHeaderGroups()], (n, t, r) => {
|
|
4266
4287
|
var o, a, i, l, c, u;
|
|
4267
4288
|
return [...(o = (a = n[0]) == null ? void 0 : a.headers) != null ? o : [], ...(i = (l = t[0]) == null ? void 0 : l.headers) != null ? i : [], ...(c = (u = r[0]) == null ? void 0 : u.headers) != null ? c : []].map((d) => d.getLeafHeaders()).flat();
|
|
4268
|
-
}, U(e.options,
|
|
4289
|
+
}, U(e.options, he, "getLeafHeaders"));
|
|
4269
4290
|
}
|
|
4270
4291
|
};
|
|
4271
4292
|
function at(e, n, t, r) {
|
|
@@ -4286,10 +4307,10 @@ function at(e, n, t, r) {
|
|
|
4286
4307
|
headers: []
|
|
4287
4308
|
}, m = [];
|
|
4288
4309
|
p.forEach((b) => {
|
|
4289
|
-
const
|
|
4310
|
+
const h = [...m].reverse()[0], k = b.column.depth === v.depth;
|
|
4290
4311
|
let w, $ = !1;
|
|
4291
|
-
if (k && b.column.parent ? w = b.column.parent : (w = b.column, $ = !0),
|
|
4292
|
-
|
|
4312
|
+
if (k && b.column.parent ? w = b.column.parent : (w = b.column, $ = !0), h && (h == null ? void 0 : h.column) === w)
|
|
4313
|
+
h.subHeaders.push(b);
|
|
4293
4314
|
else {
|
|
4294
4315
|
const y = Bn(t, w, {
|
|
4295
4316
|
id: [r, f, w.id, b == null ? void 0 : b.id].filter(Boolean).join("_"),
|
|
@@ -4308,15 +4329,15 @@ function at(e, n, t, r) {
|
|
|
4308
4329
|
}));
|
|
4309
4330
|
u(d, i - 1), c.reverse();
|
|
4310
4331
|
const g = (p) => p.filter((v) => v.column.getIsVisible()).map((v) => {
|
|
4311
|
-
let m = 0, b = 0,
|
|
4312
|
-
v.subHeaders && v.subHeaders.length ? (
|
|
4332
|
+
let m = 0, b = 0, h = [0];
|
|
4333
|
+
v.subHeaders && v.subHeaders.length ? (h = [], g(v.subHeaders).forEach((w) => {
|
|
4313
4334
|
let {
|
|
4314
4335
|
colSpan: $,
|
|
4315
4336
|
rowSpan: y
|
|
4316
4337
|
} = w;
|
|
4317
|
-
m += $,
|
|
4338
|
+
m += $, h.push(y);
|
|
4318
4339
|
})) : m = 1;
|
|
4319
|
-
const k = Math.min(...
|
|
4340
|
+
const k = Math.min(...h);
|
|
4320
4341
|
return b = b + k, v.colSpan = m, v.rowSpan = b, {
|
|
4321
4342
|
colSpan: m,
|
|
4322
4343
|
rowSpan: b
|
|
@@ -4324,7 +4345,7 @@ function at(e, n, t, r) {
|
|
|
4324
4345
|
});
|
|
4325
4346
|
return g((o = (a = c[0]) == null ? void 0 : a.headers) != null ? o : []), c;
|
|
4326
4347
|
}
|
|
4327
|
-
const
|
|
4348
|
+
const ha = (e, n, t, r, o, a, i) => {
|
|
4328
4349
|
let l = {
|
|
4329
4350
|
id: n,
|
|
4330
4351
|
index: r,
|
|
@@ -4378,41 +4399,41 @@ const xa = (e, n, t, r, o, a, i) => {
|
|
|
4378
4399
|
return e._getFacetedMinMaxValues();
|
|
4379
4400
|
};
|
|
4380
4401
|
}
|
|
4381
|
-
},
|
|
4402
|
+
}, hr = (e, n, t) => {
|
|
4382
4403
|
var r, o;
|
|
4383
4404
|
const a = t == null || (r = t.toString()) == null ? void 0 : r.toLowerCase();
|
|
4384
4405
|
return !!(!((o = e.getValue(n)) == null || (o = o.toString()) == null || (o = o.toLowerCase()) == null) && o.includes(a));
|
|
4385
4406
|
};
|
|
4386
|
-
|
|
4407
|
+
hr.autoRemove = (e) => Se(e);
|
|
4387
4408
|
const br = (e, n, t) => {
|
|
4388
4409
|
var r;
|
|
4389
4410
|
return !!(!((r = e.getValue(n)) == null || (r = r.toString()) == null) && r.includes(t));
|
|
4390
4411
|
};
|
|
4391
|
-
br.autoRemove = (e) =>
|
|
4412
|
+
br.autoRemove = (e) => Se(e);
|
|
4392
4413
|
const wr = (e, n, t) => {
|
|
4393
4414
|
var r;
|
|
4394
4415
|
return ((r = e.getValue(n)) == null || (r = r.toString()) == null ? void 0 : r.toLowerCase()) === (t == null ? void 0 : t.toLowerCase());
|
|
4395
4416
|
};
|
|
4396
|
-
wr.autoRemove = (e) =>
|
|
4417
|
+
wr.autoRemove = (e) => Se(e);
|
|
4397
4418
|
const yr = (e, n, t) => {
|
|
4398
4419
|
var r;
|
|
4399
4420
|
return (r = e.getValue(n)) == null ? void 0 : r.includes(t);
|
|
4400
4421
|
};
|
|
4401
|
-
yr.autoRemove = (e) =>
|
|
4422
|
+
yr.autoRemove = (e) => Se(e);
|
|
4402
4423
|
const Cr = (e, n, t) => !t.some((r) => {
|
|
4403
4424
|
var o;
|
|
4404
4425
|
return !((o = e.getValue(n)) != null && o.includes(r));
|
|
4405
4426
|
});
|
|
4406
|
-
Cr.autoRemove = (e) =>
|
|
4427
|
+
Cr.autoRemove = (e) => Se(e) || !(e != null && e.length);
|
|
4407
4428
|
const Sr = (e, n, t) => t.some((r) => {
|
|
4408
4429
|
var o;
|
|
4409
4430
|
return (o = e.getValue(n)) == null ? void 0 : o.includes(r);
|
|
4410
4431
|
});
|
|
4411
|
-
Sr.autoRemove = (e) =>
|
|
4432
|
+
Sr.autoRemove = (e) => Se(e) || !(e != null && e.length);
|
|
4412
4433
|
const jr = (e, n, t) => e.getValue(n) === t;
|
|
4413
|
-
jr.autoRemove = (e) =>
|
|
4434
|
+
jr.autoRemove = (e) => Se(e);
|
|
4414
4435
|
const Rr = (e, n, t) => e.getValue(n) == t;
|
|
4415
|
-
Rr.autoRemove = (e) =>
|
|
4436
|
+
Rr.autoRemove = (e) => Se(e);
|
|
4416
4437
|
const an = (e, n, t) => {
|
|
4417
4438
|
let [r, o] = t;
|
|
4418
4439
|
const a = e.getValue(n);
|
|
@@ -4426,9 +4447,9 @@ an.resolveFilterValue = (e) => {
|
|
|
4426
4447
|
}
|
|
4427
4448
|
return [a, i];
|
|
4428
4449
|
};
|
|
4429
|
-
an.autoRemove = (e) =>
|
|
4430
|
-
const
|
|
4431
|
-
includesString:
|
|
4450
|
+
an.autoRemove = (e) => Se(e) || Se(e[0]) && Se(e[1]);
|
|
4451
|
+
const ke = {
|
|
4452
|
+
includesString: hr,
|
|
4432
4453
|
includesStringSensitive: br,
|
|
4433
4454
|
equalsString: wr,
|
|
4434
4455
|
arrIncludes: yr,
|
|
@@ -4438,7 +4459,7 @@ const Re = {
|
|
|
4438
4459
|
weakEquals: Rr,
|
|
4439
4460
|
inNumberRange: an
|
|
4440
4461
|
};
|
|
4441
|
-
function
|
|
4462
|
+
function Se(e) {
|
|
4442
4463
|
return e == null || e === "";
|
|
4443
4464
|
}
|
|
4444
4465
|
const wa = {
|
|
@@ -4457,12 +4478,12 @@ const wa = {
|
|
|
4457
4478
|
createColumn: (e, n) => {
|
|
4458
4479
|
e.getAutoFilterFn = () => {
|
|
4459
4480
|
const t = n.getCoreRowModel().flatRows[0], r = t == null ? void 0 : t.getValue(e.id);
|
|
4460
|
-
return typeof r == "string" ?
|
|
4481
|
+
return typeof r == "string" ? ke.includesString : typeof r == "number" ? ke.inNumberRange : typeof r == "boolean" || r !== null && typeof r == "object" ? ke.equals : Array.isArray(r) ? ke.arrIncludes : ke.weakEquals;
|
|
4461
4482
|
}, e.getFilterFn = () => {
|
|
4462
4483
|
var t, r;
|
|
4463
4484
|
return vt(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : (
|
|
4464
4485
|
// @ts-ignore
|
|
4465
|
-
(t = (r = n.options.filterFns) == null ? void 0 : r[e.columnDef.filterFn]) != null ? t :
|
|
4486
|
+
(t = (r = n.options.filterFns) == null ? void 0 : r[e.columnDef.filterFn]) != null ? t : ke[e.columnDef.filterFn]
|
|
4466
4487
|
);
|
|
4467
4488
|
}, e.getCanFilter = () => {
|
|
4468
4489
|
var t, r, o;
|
|
@@ -4475,7 +4496,7 @@ const wa = {
|
|
|
4475
4496
|
return (t = (r = n.getState().columnFilters) == null ? void 0 : r.findIndex((o) => o.id === e.id)) != null ? t : -1;
|
|
4476
4497
|
}, e.setFilterValue = (t) => {
|
|
4477
4498
|
n.setColumnFilters((r) => {
|
|
4478
|
-
const o = e.getFilterFn(), a = r == null ? void 0 : r.find((d) => d.id === e.id), i =
|
|
4499
|
+
const o = e.getFilterFn(), a = r == null ? void 0 : r.find((d) => d.id === e.id), i = Le(t, a ? a.value : void 0);
|
|
4479
4500
|
if (qn(o, i, e)) {
|
|
4480
4501
|
var l;
|
|
4481
4502
|
return (l = r == null ? void 0 : r.filter((d) => d.id !== e.id)) != null ? l : [];
|
|
@@ -4499,7 +4520,7 @@ const wa = {
|
|
|
4499
4520
|
e.setColumnFilters = (n) => {
|
|
4500
4521
|
const t = e.getAllLeafColumns(), r = (o) => {
|
|
4501
4522
|
var a;
|
|
4502
|
-
return (a =
|
|
4523
|
+
return (a = Le(n, o)) == null ? void 0 : a.filter((i) => {
|
|
4503
4524
|
const l = t.find((c) => c.id === i.id);
|
|
4504
4525
|
if (l) {
|
|
4505
4526
|
const c = l.getFilterFn();
|
|
@@ -4820,7 +4841,7 @@ const La = {
|
|
|
4820
4841
|
return (a) => {
|
|
4821
4842
|
if (!r || !o || (a.persist == null || a.persist(), Tt(a) && a.touches && a.touches.length > 1))
|
|
4822
4843
|
return;
|
|
4823
|
-
const i = e.getSize(), l = e ? e.getLeafHeaders().map((
|
|
4844
|
+
const i = e.getSize(), l = e ? e.getLeafHeaders().map((h) => [h.column.id, h.column.getSize()]) : [[r.id, r.getSize()]], c = Tt(a) ? Math.round(a.touches[0].clientX) : a.clientX, u = {}, d = (h, k) => {
|
|
4824
4845
|
typeof k == "number" && (n.setColumnSizingInfo((w) => {
|
|
4825
4846
|
var $, y;
|
|
4826
4847
|
const O = n.options.columnResizeDirection === "rtl" ? -1 : 1, D = (k - (($ = w == null ? void 0 : w.startOffset) != null ? $ : 0)) * O, V = Math.max(D / ((y = w == null ? void 0 : w.startSize) != null ? y : 0), -0.999999);
|
|
@@ -4832,12 +4853,12 @@ const La = {
|
|
|
4832
4853
|
deltaOffset: D,
|
|
4833
4854
|
deltaPercentage: V
|
|
4834
4855
|
};
|
|
4835
|
-
}), (n.options.columnResizeMode === "onChange" ||
|
|
4856
|
+
}), (n.options.columnResizeMode === "onChange" || h === "end") && n.setColumnSizing((w) => ({
|
|
4836
4857
|
...w,
|
|
4837
4858
|
...u
|
|
4838
4859
|
})));
|
|
4839
|
-
}, g = (
|
|
4840
|
-
d("end",
|
|
4860
|
+
}, g = (h) => d("move", h), p = (h) => {
|
|
4861
|
+
d("end", h), n.setColumnSizingInfo((k) => ({
|
|
4841
4862
|
...k,
|
|
4842
4863
|
isResizingColumn: !1,
|
|
4843
4864
|
startOffset: null,
|
|
@@ -4847,21 +4868,21 @@ const La = {
|
|
|
4847
4868
|
columnSizingStart: []
|
|
4848
4869
|
}));
|
|
4849
4870
|
}, f = t || typeof document < "u" ? document : null, v = {
|
|
4850
|
-
moveHandler: (
|
|
4851
|
-
upHandler: (
|
|
4852
|
-
f == null || f.removeEventListener("mousemove", v.moveHandler), f == null || f.removeEventListener("mouseup", v.upHandler), p(
|
|
4871
|
+
moveHandler: (h) => g(h.clientX),
|
|
4872
|
+
upHandler: (h) => {
|
|
4873
|
+
f == null || f.removeEventListener("mousemove", v.moveHandler), f == null || f.removeEventListener("mouseup", v.upHandler), p(h.clientX);
|
|
4853
4874
|
}
|
|
4854
4875
|
}, m = {
|
|
4855
|
-
moveHandler: (
|
|
4856
|
-
upHandler: (
|
|
4876
|
+
moveHandler: (h) => (h.cancelable && (h.preventDefault(), h.stopPropagation()), g(h.touches[0].clientX), !1),
|
|
4877
|
+
upHandler: (h) => {
|
|
4857
4878
|
var k;
|
|
4858
|
-
f == null || f.removeEventListener("touchmove", m.moveHandler), f == null || f.removeEventListener("touchend", m.upHandler),
|
|
4879
|
+
f == null || f.removeEventListener("touchmove", m.moveHandler), f == null || f.removeEventListener("touchend", m.upHandler), h.cancelable && (h.preventDefault(), h.stopPropagation()), p((k = h.touches[0]) == null ? void 0 : k.clientX);
|
|
4859
4880
|
}
|
|
4860
4881
|
}, b = Na() ? {
|
|
4861
4882
|
passive: !1
|
|
4862
4883
|
} : !1;
|
|
4863
|
-
Tt(a) ? (f == null || f.addEventListener("touchmove", m.moveHandler, b), f == null || f.addEventListener("touchend", m.upHandler, b)) : (f == null || f.addEventListener("mousemove", v.moveHandler, b), f == null || f.addEventListener("mouseup", v.upHandler, b)), n.setColumnSizingInfo((
|
|
4864
|
-
...
|
|
4884
|
+
Tt(a) ? (f == null || f.addEventListener("touchmove", m.moveHandler, b), f == null || f.addEventListener("touchend", m.upHandler, b)) : (f == null || f.addEventListener("mousemove", v.moveHandler, b), f == null || f.addEventListener("mouseup", v.upHandler, b)), n.setColumnSizingInfo((h) => ({
|
|
4885
|
+
...h,
|
|
4865
4886
|
startOffset: c,
|
|
4866
4887
|
startSize: i,
|
|
4867
4888
|
deltaOffset: 0,
|
|
@@ -4990,12 +5011,12 @@ const za = {
|
|
|
4990
5011
|
};
|
|
4991
5012
|
},
|
|
4992
5013
|
createTable: (e) => {
|
|
4993
|
-
e.getGlobalAutoFilterFn = () =>
|
|
5014
|
+
e.getGlobalAutoFilterFn = () => ke.includesString, e.getGlobalFilterFn = () => {
|
|
4994
5015
|
var n, t;
|
|
4995
5016
|
const {
|
|
4996
5017
|
globalFilterFn: r
|
|
4997
5018
|
} = e.options;
|
|
4998
|
-
return vt(r) ? r : r === "auto" ? e.getGlobalAutoFilterFn() : (n = (t = e.options.filterFns) == null ? void 0 : t[r]) != null ? n :
|
|
5019
|
+
return vt(r) ? r : r === "auto" ? e.getGlobalAutoFilterFn() : (n = (t = e.options.filterFns) == null ? void 0 : t[r]) != null ? n : ke[r];
|
|
4999
5020
|
}, e.setGlobalFilter = (n) => {
|
|
5000
5021
|
e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(n);
|
|
5001
5022
|
}, e.resetGlobalFilter = (n) => {
|
|
@@ -5120,14 +5141,14 @@ const za = {
|
|
|
5120
5141
|
});
|
|
5121
5142
|
}
|
|
5122
5143
|
}, e.setPagination = (r) => {
|
|
5123
|
-
const o = (a) =>
|
|
5144
|
+
const o = (a) => Le(r, a);
|
|
5124
5145
|
return e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange(o);
|
|
5125
5146
|
}, e.resetPagination = (r) => {
|
|
5126
5147
|
var o;
|
|
5127
5148
|
e.setPagination(r ? Ot() : (o = e.initialState.pagination) != null ? o : Ot());
|
|
5128
5149
|
}, e.setPageIndex = (r) => {
|
|
5129
5150
|
e.setPagination((o) => {
|
|
5130
|
-
let a =
|
|
5151
|
+
let a = Le(r, o.pageIndex);
|
|
5131
5152
|
const i = typeof e.options.pageCount > "u" || e.options.pageCount === -1 ? Number.MAX_SAFE_INTEGER : e.options.pageCount - 1;
|
|
5132
5153
|
return a = Math.max(0, Math.min(a, i)), {
|
|
5133
5154
|
...o,
|
|
@@ -5142,7 +5163,7 @@ const za = {
|
|
|
5142
5163
|
e.setPageSize(r ? Jt : (o = (a = e.initialState) == null || (a = a.pagination) == null ? void 0 : a.pageSize) != null ? o : Jt);
|
|
5143
5164
|
}, e.setPageSize = (r) => {
|
|
5144
5165
|
e.setPagination((o) => {
|
|
5145
|
-
const a = Math.max(1,
|
|
5166
|
+
const a = Math.max(1, Le(r, o.pageSize)), i = o.pageSize * o.pageIndex, l = Math.floor(i / a);
|
|
5146
5167
|
return {
|
|
5147
5168
|
...o,
|
|
5148
5169
|
pageIndex: l,
|
|
@@ -5151,7 +5172,7 @@ const za = {
|
|
|
5151
5172
|
});
|
|
5152
5173
|
}, e.setPageCount = (r) => e.setPagination((o) => {
|
|
5153
5174
|
var a;
|
|
5154
|
-
let i =
|
|
5175
|
+
let i = Le(r, (a = e.options.pageCount) != null ? a : -1);
|
|
5155
5176
|
return typeof i == "number" && (i = Math.max(-1, i)), {
|
|
5156
5177
|
...o,
|
|
5157
5178
|
pageCount: i
|
|
@@ -5432,14 +5453,14 @@ function en(e, n, t) {
|
|
|
5432
5453
|
}
|
|
5433
5454
|
}), o ? "all" : a ? "some" : !1;
|
|
5434
5455
|
}
|
|
5435
|
-
const tn = /([0-9]+)/gm, Ba = (e, n, t) => kr(
|
|
5456
|
+
const tn = /([0-9]+)/gm, Ba = (e, n, t) => kr(Fe(e.getValue(t)).toLowerCase(), Fe(n.getValue(t)).toLowerCase()), qa = (e, n, t) => kr(Fe(e.getValue(t)), Fe(n.getValue(t))), Ga = (e, n, t) => sn(Fe(e.getValue(t)).toLowerCase(), Fe(n.getValue(t)).toLowerCase()), Wa = (e, n, t) => sn(Fe(e.getValue(t)), Fe(n.getValue(t))), Ua = (e, n, t) => {
|
|
5436
5457
|
const r = e.getValue(t), o = n.getValue(t);
|
|
5437
5458
|
return r > o ? 1 : r < o ? -1 : 0;
|
|
5438
5459
|
}, Ya = (e, n, t) => sn(e.getValue(t), n.getValue(t));
|
|
5439
5460
|
function sn(e, n) {
|
|
5440
5461
|
return e === n ? 0 : e > n ? 1 : -1;
|
|
5441
5462
|
}
|
|
5442
|
-
function
|
|
5463
|
+
function Fe(e) {
|
|
5443
5464
|
return typeof e == "number" ? isNaN(e) || e === 1 / 0 || e === -1 / 0 ? "" : String(e) : typeof e == "string" ? e : "";
|
|
5444
5465
|
}
|
|
5445
5466
|
function kr(e, n) {
|
|
@@ -5559,7 +5580,7 @@ const qe = {
|
|
|
5559
5580
|
}, e.getPreSortedRowModel = () => e.getGroupedRowModel(), e.getSortedRowModel = () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel());
|
|
5560
5581
|
}
|
|
5561
5582
|
}, Ka = [
|
|
5562
|
-
|
|
5583
|
+
xa,
|
|
5563
5584
|
Da,
|
|
5564
5585
|
La,
|
|
5565
5586
|
Fa,
|
|
@@ -5619,7 +5640,7 @@ function Xa(e) {
|
|
|
5619
5640
|
o.setState(o.initialState);
|
|
5620
5641
|
},
|
|
5621
5642
|
setOptions: (p) => {
|
|
5622
|
-
const f =
|
|
5643
|
+
const f = Le(p, o.options);
|
|
5623
5644
|
o.options = i(f);
|
|
5624
5645
|
},
|
|
5625
5646
|
getState: () => o.options.state,
|
|
@@ -5660,8 +5681,8 @@ function Xa(e) {
|
|
|
5660
5681
|
_getColumnDefs: () => o.options.columns,
|
|
5661
5682
|
getAllColumns: W(() => [o._getColumnDefs()], (p) => {
|
|
5662
5683
|
const f = function(v, m, b) {
|
|
5663
|
-
return b === void 0 && (b = 0), v.map((
|
|
5664
|
-
const k = va(o,
|
|
5684
|
+
return b === void 0 && (b = 0), v.map((h) => {
|
|
5685
|
+
const k = va(o, h, b, m), w = h;
|
|
5665
5686
|
return k.columns = w.columns ? f(w.columns, k, b + 1) : [], k;
|
|
5666
5687
|
});
|
|
5667
5688
|
};
|
|
@@ -5695,7 +5716,7 @@ function Ja() {
|
|
|
5695
5716
|
a === void 0 && (a = 0);
|
|
5696
5717
|
const l = [];
|
|
5697
5718
|
for (let u = 0; u < o.length; u++) {
|
|
5698
|
-
const d =
|
|
5719
|
+
const d = ha(e, e._getRowId(o[u], u, i), o[u], u, a, void 0, i == null ? void 0 : i.id);
|
|
5699
5720
|
if (t.flatRows.push(d), t.rowsById[d.id] = d, l.push(d), e.options.getSubRows) {
|
|
5700
5721
|
var c;
|
|
5701
5722
|
d.originalSubRows = e.options.getSubRows(o[u], u), (c = d.originalSubRows) != null && c.length && (d.subRows = r(d.originalSubRows, a + 1, d));
|
|
@@ -5777,7 +5798,7 @@ const ei = {
|
|
|
5777
5798
|
caption: "span",
|
|
5778
5799
|
overline: "span"
|
|
5779
5800
|
}[e] || "p";
|
|
5780
|
-
return /* @__PURE__ */ s.jsx(i, { className: `${ei[e]} ${(l = ve[o]) == null ? void 0 : l.
|
|
5801
|
+
return /* @__PURE__ */ s.jsx(i, { className: `${ei[e]} ${(l = ve[o]) == null ? void 0 : l.text} ${t}`, children: r });
|
|
5781
5802
|
}, ni = ({
|
|
5782
5803
|
total: e,
|
|
5783
5804
|
currentPage: n,
|
|
@@ -5789,7 +5810,7 @@ const ei = {
|
|
|
5789
5810
|
const i = Math.ceil(e / t), l = n === 1, c = n === i;
|
|
5790
5811
|
return i <= 1 ? null : /* @__PURE__ */ s.jsxs("div", { className: `flex items-center space-x-1 ${a}`, children: [
|
|
5791
5812
|
!o && /* @__PURE__ */ s.jsx(
|
|
5792
|
-
|
|
5813
|
+
Re,
|
|
5793
5814
|
{
|
|
5794
5815
|
color: "dark",
|
|
5795
5816
|
icon: /* @__PURE__ */ s.jsx("svg", { className: "size-5", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ s.jsx("path", { d: "M4.83582 12L11.0429 18.2071L12.4571 16.7929L7.66424 12L12.4571 7.20712L11.0429 5.79291L4.83582 12ZM10.4857 12L16.6928 18.2071L18.107 16.7929L13.3141 12L18.107 7.20712L16.6928 5.79291L10.4857 12Z" }) }),
|
|
@@ -5801,7 +5822,7 @@ const ei = {
|
|
|
5801
5822
|
}
|
|
5802
5823
|
),
|
|
5803
5824
|
/* @__PURE__ */ s.jsx(
|
|
5804
|
-
|
|
5825
|
+
Re,
|
|
5805
5826
|
{
|
|
5806
5827
|
color: "dark",
|
|
5807
5828
|
icon: /* @__PURE__ */ s.jsx("svg", { className: "size-5", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ s.jsx("path", { d: "M10.8284 12.0007L15.7782 16.9504L14.364 18.3646L8 12.0007L14.364 5.63672L15.7782 7.05093L10.8284 12.0007Z" }) }),
|
|
@@ -5819,7 +5840,7 @@ const ei = {
|
|
|
5819
5840
|
i
|
|
5820
5841
|
] }),
|
|
5821
5842
|
/* @__PURE__ */ s.jsx(
|
|
5822
|
-
|
|
5843
|
+
Re,
|
|
5823
5844
|
{
|
|
5824
5845
|
color: "dark",
|
|
5825
5846
|
icon: /* @__PURE__ */ s.jsx("svg", { className: "size-5", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ s.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" }) }),
|
|
@@ -5831,7 +5852,7 @@ const ei = {
|
|
|
5831
5852
|
}
|
|
5832
5853
|
),
|
|
5833
5854
|
!o && /* @__PURE__ */ s.jsx(
|
|
5834
|
-
|
|
5855
|
+
Re,
|
|
5835
5856
|
{
|
|
5836
5857
|
color: "dark",
|
|
5837
5858
|
icon: /* @__PURE__ */ s.jsx("svg", { className: "size-5", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ s.jsx("path", { d: "M19.1642 12L12.9571 5.79291L11.5429 7.20712L16.3358 12L11.5429 16.7929L12.9571 18.2071L19.1642 12ZM13.5143 12L7.30722 5.79291L5.89301 7.20712L10.6859 12L5.89301 16.7929L7.30722 18.2071L13.5143 12Z" }) }),
|
|
@@ -5843,7 +5864,7 @@ const ei = {
|
|
|
5843
5864
|
}
|
|
5844
5865
|
)
|
|
5845
5866
|
] });
|
|
5846
|
-
},
|
|
5867
|
+
}, Hl = ({
|
|
5847
5868
|
data: e,
|
|
5848
5869
|
columns: n = [],
|
|
5849
5870
|
pageSize: t,
|
|
@@ -5912,10 +5933,31 @@ const ei = {
|
|
|
5912
5933
|
)
|
|
5913
5934
|
] })
|
|
5914
5935
|
] }) });
|
|
5915
|
-
},
|
|
5936
|
+
}, Bl = ({ children: e, className: n = "" }) => /* @__PURE__ */ s.jsx("ul", { className: `divide-y divide-color-gray-200 rounded-md bg-color-white shadow-sm border border-color-gray-200 ${n}`, children: e }), ql = ({ children: e, secondaryAction: n, className: t = "" }) => /* @__PURE__ */ s.jsxs("li", { className: `flex items-center justify-between overflow-hidden px-4 py-3 hover:bg-color-gray-50 transition ${t}`, children: [
|
|
5916
5937
|
/* @__PURE__ */ s.jsx("div", { className: "flex-1", children: e }),
|
|
5917
5938
|
n && /* @__PURE__ */ s.jsx("div", { className: "ml-4", children: n })
|
|
5918
|
-
] }),
|
|
5939
|
+
] }), Gl = ({
|
|
5940
|
+
open: e,
|
|
5941
|
+
onClick: n,
|
|
5942
|
+
className: t = "",
|
|
5943
|
+
children: r,
|
|
5944
|
+
...o
|
|
5945
|
+
}) => {
|
|
5946
|
+
const [a, i] = Ce.useState(!1);
|
|
5947
|
+
return Ce.useEffect(() => {
|
|
5948
|
+
let l;
|
|
5949
|
+
return e ? l = setTimeout(() => i(!0), 100) : i(!1), () => clearTimeout(l);
|
|
5950
|
+
}, [e]), !e && !a ? null : /* @__PURE__ */ s.jsx(
|
|
5951
|
+
"div",
|
|
5952
|
+
{
|
|
5953
|
+
className: `fixed inset-0 z-999 bg-color-black/50 flex items-center justify-center transition-all duration-300 ${a ? "opacity-100 pointer-events-auto" : "opacity-0 pointer-events-none"} ${t}`,
|
|
5954
|
+
onClick: n,
|
|
5955
|
+
"aria-hidden": !a,
|
|
5956
|
+
...o,
|
|
5957
|
+
children: r
|
|
5958
|
+
}
|
|
5959
|
+
);
|
|
5960
|
+
}, Wl = ({
|
|
5919
5961
|
animation: e = "pulse",
|
|
5920
5962
|
variant: n = "rectangular",
|
|
5921
5963
|
width: t,
|
|
@@ -5985,7 +6027,7 @@ const ei = {
|
|
|
5985
6027
|
}
|
|
5986
6028
|
` })
|
|
5987
6029
|
] }) });
|
|
5988
|
-
},
|
|
6030
|
+
}, Ul = ({
|
|
5989
6031
|
label: e,
|
|
5990
6032
|
error: n,
|
|
5991
6033
|
className: t = "",
|
|
@@ -6033,7 +6075,7 @@ function ri(e) {
|
|
|
6033
6075
|
}, []);
|
|
6034
6076
|
return { schedule: i, flush: a, cancel: l, last: t };
|
|
6035
6077
|
}
|
|
6036
|
-
const
|
|
6078
|
+
const Yl = Zr(function({
|
|
6037
6079
|
/** controlled */
|
|
6038
6080
|
value: n,
|
|
6039
6081
|
/** uncontrolled */
|
|
@@ -6054,14 +6096,14 @@ const Wl = Zr(function({
|
|
|
6054
6096
|
range: m = !1,
|
|
6055
6097
|
minDistance: b = 0
|
|
6056
6098
|
}) {
|
|
6057
|
-
const
|
|
6099
|
+
const h = n !== void 0, [k, w] = K(() => t !== void 0 ? t : m ? [a, i] : a), $ = h ? n : k, y = Array.isArray($) ? $[0] : $, [O, D] = Array.isArray($) ? $ : [$, $], V = qt[c] || qt.blue, F = Gn[u] ?? Gn.medium, Z = oe(
|
|
6058
6100
|
(_) => (_ - a) / (i - a) * 100,
|
|
6059
6101
|
[a, i]
|
|
6060
6102
|
), ae = Z(y), ue = Z(O), Q = Z(D), H = oe((_) => Math.max(a, Math.min(i, _)), [a, i]), Y = oe((_) => Math.round(_ / l) * l, [l]), T = ri(r), te = oe(
|
|
6061
6103
|
(_, J = !0) => {
|
|
6062
|
-
|
|
6104
|
+
h || w(_), J ? T.schedule(_) : T.flush(_);
|
|
6063
6105
|
},
|
|
6064
|
-
[
|
|
6106
|
+
[h, T]
|
|
6065
6107
|
), pe = oe(() => {
|
|
6066
6108
|
const _ = T.last.current;
|
|
6067
6109
|
_ != null && (T.flush(_), o == null || o(_));
|
|
@@ -6075,10 +6117,10 @@ const Wl = Zr(function({
|
|
|
6075
6117
|
return _;
|
|
6076
6118
|
},
|
|
6077
6119
|
[m, H, Y, b]
|
|
6078
|
-
),
|
|
6120
|
+
), x = se(null), C = oe(
|
|
6079
6121
|
(_) => {
|
|
6080
6122
|
var de;
|
|
6081
|
-
const J = (de =
|
|
6123
|
+
const J = (de = x.current) == null ? void 0 : de.getBoundingClientRect();
|
|
6082
6124
|
if (!J) return m ? a : y;
|
|
6083
6125
|
const ee = Math.max(0, Math.min(1, (_ - J.left) / J.width));
|
|
6084
6126
|
return a + ee * (i - a);
|
|
@@ -6161,7 +6203,7 @@ const Wl = Zr(function({
|
|
|
6161
6203
|
default:
|
|
6162
6204
|
return;
|
|
6163
6205
|
}
|
|
6164
|
-
_.preventDefault(), te(m ? J === "min" ? X([de, D], "min") : X([O, de], "max") : X(de, "single"), !1), o == null || o(
|
|
6206
|
+
_.preventDefault(), te(m ? J === "min" ? X([de, D], "min") : X([O, de], "max") : X(de, "single"), !1), o == null || o(h ? n : $);
|
|
6165
6207
|
},
|
|
6166
6208
|
[
|
|
6167
6209
|
d,
|
|
@@ -6175,7 +6217,7 @@ const Wl = Zr(function({
|
|
|
6175
6217
|
X,
|
|
6176
6218
|
te,
|
|
6177
6219
|
o,
|
|
6178
|
-
|
|
6220
|
+
h,
|
|
6179
6221
|
n,
|
|
6180
6222
|
$
|
|
6181
6223
|
]
|
|
@@ -6192,7 +6234,7 @@ const Wl = Zr(function({
|
|
|
6192
6234
|
/* @__PURE__ */ s.jsxs(
|
|
6193
6235
|
"div",
|
|
6194
6236
|
{
|
|
6195
|
-
ref:
|
|
6237
|
+
ref: x,
|
|
6196
6238
|
className: `
|
|
6197
6239
|
relative w-full ${F.track} ${V.track} rounded-full
|
|
6198
6240
|
${d ? "opacity-60 cursor-not-allowed" : "cursor-pointer"}
|
|
@@ -6329,7 +6371,7 @@ const Wl = Zr(function({
|
|
|
6329
6371
|
] }),
|
|
6330
6372
|
p && /* @__PURE__ */ s.jsx("div", { className: "ml-3 text-sm font-medium text-color-gray-700 dark:text-color-gray-200 min-w-[2rem] text-right", children: m ? /* @__PURE__ */ s.jsx("div", { className: "range-max", children: /* @__PURE__ */ s.jsx("div", { children: D }) }) : /* @__PURE__ */ s.jsx("span", { children: y }) })
|
|
6331
6373
|
] }) });
|
|
6332
|
-
}),
|
|
6374
|
+
}), Zl = ({
|
|
6333
6375
|
open: e = !1,
|
|
6334
6376
|
message: n,
|
|
6335
6377
|
autoHideDuration: t = 4e3,
|
|
@@ -6395,7 +6437,7 @@ const Wl = Zr(function({
|
|
|
6395
6437
|
/* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-2 flex-shrink-0", children: [
|
|
6396
6438
|
i && /* @__PURE__ */ s.jsx("div", { className: "flex items-center", children: i }),
|
|
6397
6439
|
a && /* @__PURE__ */ s.jsx(
|
|
6398
|
-
|
|
6440
|
+
Re,
|
|
6399
6441
|
{
|
|
6400
6442
|
color: "light",
|
|
6401
6443
|
size: "small",
|
|
@@ -6411,7 +6453,7 @@ const Wl = Zr(function({
|
|
|
6411
6453
|
}
|
|
6412
6454
|
)
|
|
6413
6455
|
] }) : null;
|
|
6414
|
-
},
|
|
6456
|
+
}, oi = Ce.memo(({
|
|
6415
6457
|
variant: e = "linear",
|
|
6416
6458
|
value: n = 0,
|
|
6417
6459
|
color: t = "blue",
|
|
@@ -6419,35 +6461,36 @@ const Wl = Zr(function({
|
|
|
6419
6461
|
className: o = "",
|
|
6420
6462
|
...a
|
|
6421
6463
|
}) => {
|
|
6422
|
-
var
|
|
6423
|
-
const i = "inline-block", l = (
|
|
6464
|
+
var p, f;
|
|
6465
|
+
const i = "inline-block", l = (p = ve[t]) == null ? void 0 : p.transparent, c = (f = ve[t]) == null ? void 0 : f.filled, u = Math.min(Math.max(n, 0), 100);
|
|
6424
6466
|
if (e === "circular") {
|
|
6425
|
-
const { size:
|
|
6467
|
+
const { size: v = 40, thickness: m = 3.6 } = a, b = Me(() => (v - m) / 2, [v, m]), h = Me(() => 2 * Math.PI * b, [b]), k = `${h} ${h}`, w = h - u / 100 * h;
|
|
6426
6468
|
return /* @__PURE__ */ s.jsx(
|
|
6427
6469
|
"div",
|
|
6428
6470
|
{
|
|
6429
6471
|
className: `${i} ${o}`,
|
|
6430
|
-
style: { width:
|
|
6472
|
+
style: { width: v, height: v, contain: "paint" },
|
|
6431
6473
|
role: "progressbar",
|
|
6432
6474
|
"aria-valuenow": r ? u : void 0,
|
|
6433
6475
|
"aria-valuemin": 0,
|
|
6434
6476
|
"aria-valuemax": 100,
|
|
6477
|
+
"aria-busy": !r,
|
|
6435
6478
|
children: /* @__PURE__ */ s.jsxs(
|
|
6436
6479
|
"svg",
|
|
6437
6480
|
{
|
|
6438
|
-
className: "
|
|
6439
|
-
width:
|
|
6440
|
-
height:
|
|
6441
|
-
viewBox: `0 0 ${
|
|
6481
|
+
className: r ? "" : "animate-spin-slow",
|
|
6482
|
+
width: v,
|
|
6483
|
+
height: v,
|
|
6484
|
+
viewBox: `0 0 ${v} ${v}`,
|
|
6442
6485
|
children: [
|
|
6443
6486
|
/* @__PURE__ */ s.jsx(
|
|
6444
6487
|
"circle",
|
|
6445
6488
|
{
|
|
6446
|
-
cx:
|
|
6447
|
-
cy:
|
|
6448
|
-
r:
|
|
6489
|
+
cx: v / 2,
|
|
6490
|
+
cy: v / 2,
|
|
6491
|
+
r: b,
|
|
6449
6492
|
stroke: "currentColor",
|
|
6450
|
-
strokeWidth:
|
|
6493
|
+
strokeWidth: m,
|
|
6451
6494
|
fill: "none",
|
|
6452
6495
|
className: "text-color-gray-200 dark:text-color-gray-700"
|
|
6453
6496
|
}
|
|
@@ -6455,19 +6498,15 @@ const Wl = Zr(function({
|
|
|
6455
6498
|
/* @__PURE__ */ s.jsx(
|
|
6456
6499
|
"circle",
|
|
6457
6500
|
{
|
|
6458
|
-
cx:
|
|
6459
|
-
cy:
|
|
6460
|
-
r:
|
|
6501
|
+
cx: v / 2,
|
|
6502
|
+
cy: v / 2,
|
|
6503
|
+
r: b,
|
|
6461
6504
|
stroke: "currentColor",
|
|
6462
|
-
strokeWidth:
|
|
6505
|
+
strokeWidth: m,
|
|
6463
6506
|
fill: "none",
|
|
6464
6507
|
strokeLinecap: "round",
|
|
6465
|
-
className: `${l}
|
|
6466
|
-
style: {
|
|
6467
|
-
strokeDasharray: x,
|
|
6468
|
-
strokeDashoffset: r ? k : b * 0.75,
|
|
6469
|
-
transformOrigin: "center"
|
|
6470
|
-
}
|
|
6508
|
+
className: `${l}`,
|
|
6509
|
+
style: r ? { strokeDasharray: k, strokeDashoffset: w, transformOrigin: "center" } : { strokeDasharray: `${h * 0.25} ${h}`, strokeDashoffset: 0 }
|
|
6471
6510
|
}
|
|
6472
6511
|
)
|
|
6473
6512
|
]
|
|
@@ -6476,7 +6515,7 @@ const Wl = Zr(function({
|
|
|
6476
6515
|
}
|
|
6477
6516
|
);
|
|
6478
6517
|
}
|
|
6479
|
-
const { thickness: d = 4 } = a;
|
|
6518
|
+
const { thickness: d = 4 } = a, g = r ? u / 100 : 0.4;
|
|
6480
6519
|
return /* @__PURE__ */ s.jsx(
|
|
6481
6520
|
"div",
|
|
6482
6521
|
{
|
|
@@ -6485,6 +6524,8 @@ const Wl = Zr(function({
|
|
|
6485
6524
|
"aria-valuenow": r ? u : void 0,
|
|
6486
6525
|
"aria-valuemin": 0,
|
|
6487
6526
|
"aria-valuemax": 100,
|
|
6527
|
+
"aria-busy": !r,
|
|
6528
|
+
style: { contain: "paint" },
|
|
6488
6529
|
children: /* @__PURE__ */ s.jsx(
|
|
6489
6530
|
"div",
|
|
6490
6531
|
{
|
|
@@ -6493,25 +6534,37 @@ const Wl = Zr(function({
|
|
|
6493
6534
|
children: r ? /* @__PURE__ */ s.jsx(
|
|
6494
6535
|
"div",
|
|
6495
6536
|
{
|
|
6496
|
-
className: `h-full ${c}
|
|
6497
|
-
style: {
|
|
6537
|
+
className: `h-full ${c}`,
|
|
6538
|
+
style: {
|
|
6539
|
+
width: "100%",
|
|
6540
|
+
// fixed width
|
|
6541
|
+
transform: `scaleX(${g})`,
|
|
6542
|
+
transformOrigin: "left",
|
|
6543
|
+
willChange: "transform",
|
|
6544
|
+
transition: "transform 300ms ease-out"
|
|
6545
|
+
}
|
|
6498
6546
|
}
|
|
6499
6547
|
) : /* @__PURE__ */ s.jsx(
|
|
6500
6548
|
"div",
|
|
6501
6549
|
{
|
|
6502
|
-
className: `absolute left-0 top-0 h-full ${c} animate-progress-indeterminate`,
|
|
6503
|
-
style: {
|
|
6550
|
+
className: `absolute left-0 top-0 h-full ${c} animate-progress-indeterminate-gpu`,
|
|
6551
|
+
style: {
|
|
6552
|
+
width: "40%",
|
|
6553
|
+
willChange: "transform"
|
|
6554
|
+
}
|
|
6504
6555
|
}
|
|
6505
6556
|
)
|
|
6506
6557
|
}
|
|
6507
6558
|
)
|
|
6508
6559
|
}
|
|
6509
6560
|
);
|
|
6510
|
-
}
|
|
6561
|
+
});
|
|
6562
|
+
oi.displayName = "Progress";
|
|
6563
|
+
const Wn = /* @__PURE__ */ s.jsx("svg", { className: "w-5 h-5 fill-color-yellow-500", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ s.jsx("path", { d: "M10 15l-5.878 3.09 1.122-6.545L.488 6.91l6.561-.955L10 0l2.951 5.955 6.561.955-4.756 4.635 1.122 6.545z" }) }), Un = /* @__PURE__ */ s.jsx("svg", { className: "w-5 h-5 fill-color-gray-300", fill: "none", stroke: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ s.jsx("path", { d: "M10 15l-5.878 3.09 1.122-6.545L.488 6.91l6.561-.955L10 0l2.951 5.955 6.561.955-4.756 4.635 1.122 6.545z" }) }), st = {
|
|
6511
6564
|
small: "w-4 h-4",
|
|
6512
6565
|
medium: "w-6 h-6",
|
|
6513
6566
|
large: "w-8 h-8"
|
|
6514
|
-
},
|
|
6567
|
+
}, Kl = ({
|
|
6515
6568
|
value: e,
|
|
6516
6569
|
onChange: n,
|
|
6517
6570
|
readOnly: t = !1,
|
|
@@ -6527,7 +6580,7 @@ const Wl = Zr(function({
|
|
|
6527
6580
|
labels: p = {}
|
|
6528
6581
|
// <-- Add this
|
|
6529
6582
|
}) => {
|
|
6530
|
-
const [f, v] =
|
|
6583
|
+
const [f, v] = Ce.useState(null), m = (w, $) => {
|
|
6531
6584
|
if (t || r || !n) return;
|
|
6532
6585
|
const { left: y, width: O } = w.target.getBoundingClientRect(), D = (w.clientX - y) / O;
|
|
6533
6586
|
let V = $ - 1 + Math.ceil(D / o) * o;
|
|
@@ -6537,9 +6590,9 @@ const Wl = Zr(function({
|
|
|
6537
6590
|
const { left: y, width: O } = w.target.getBoundingClientRect(), D = (w.clientX - y) / O;
|
|
6538
6591
|
let V = $ - 1 + Math.ceil(D / o) * o;
|
|
6539
6592
|
V = Math.min(a, Math.max(o, Math.round(V / o) * o)), v(V);
|
|
6540
|
-
},
|
|
6593
|
+
}, h = () => v(null), k = [];
|
|
6541
6594
|
for (let w = 1; w <= a; w++) {
|
|
6542
|
-
let $ = (f !== null ? f : e) >= w, y = !$ && (f !== null ? f : e) > w - 1, O = $ ? l ||
|
|
6595
|
+
let $ = (f !== null ? f : e) >= w, y = !$ && (f !== null ? f : e) > w - 1, O = $ ? l || Ce.cloneElement(Wn, { className: `fill-color-yellow-500 ${st[i]}` }) : c || Ce.cloneElement(Un, { className: `stroke-color-gray-300 ${st[i]}` });
|
|
6543
6596
|
if (y) {
|
|
6544
6597
|
const D = ((f !== null ? f : e) - (w - 1)) * 100;
|
|
6545
6598
|
O = /* @__PURE__ */ s.jsxs("span", { className: "relative block", children: [
|
|
@@ -6548,12 +6601,12 @@ const Wl = Zr(function({
|
|
|
6548
6601
|
{
|
|
6549
6602
|
className: "absolute top-0 left-0 overflow-hidden",
|
|
6550
6603
|
style: { width: `${D}%` },
|
|
6551
|
-
children: l ||
|
|
6604
|
+
children: l || Ce.cloneElement(Wn, {
|
|
6552
6605
|
className: `fill-color-yellow-500 ${st[i]}`
|
|
6553
6606
|
})
|
|
6554
6607
|
}
|
|
6555
6608
|
),
|
|
6556
|
-
c ||
|
|
6609
|
+
c || Ce.cloneElement(Un, {
|
|
6557
6610
|
className: `stroke-color-gray-300 ${st[i]}`
|
|
6558
6611
|
})
|
|
6559
6612
|
] });
|
|
@@ -6565,7 +6618,7 @@ const Wl = Zr(function({
|
|
|
6565
6618
|
className: `inline-block ${r ? "opacity-50 cursor-not-allowed" : "cursor-pointer"}`,
|
|
6566
6619
|
onClick: (D) => m(D, w),
|
|
6567
6620
|
onMouseMove: (D) => b(D, w),
|
|
6568
|
-
onMouseLeave:
|
|
6621
|
+
onMouseLeave: h,
|
|
6569
6622
|
tabIndex: t || r ? -1 : 0,
|
|
6570
6623
|
"aria-label": `Rate ${w}`,
|
|
6571
6624
|
role: "radio",
|
|
@@ -6580,7 +6633,7 @@ const Wl = Zr(function({
|
|
|
6580
6633
|
k,
|
|
6581
6634
|
d && f !== null ? /* @__PURE__ */ s.jsx("span", { className: "ml-2 text-xs text-gray-500", children: p[f] || f }) : g ? /* @__PURE__ */ s.jsx("span", { className: "ml-2 text-xs text-gray-500", children: p[e] || e }) : null
|
|
6582
6635
|
] });
|
|
6583
|
-
},
|
|
6636
|
+
}, Xl = ({
|
|
6584
6637
|
children: e,
|
|
6585
6638
|
width: n = "100%",
|
|
6586
6639
|
height: t = "auto",
|
|
@@ -6598,14 +6651,14 @@ const Wl = Zr(function({
|
|
|
6598
6651
|
thumbWidth: v = 60,
|
|
6599
6652
|
orientation: m = "horizontal",
|
|
6600
6653
|
nextIcon: b,
|
|
6601
|
-
prevIcon:
|
|
6654
|
+
prevIcon: h,
|
|
6602
6655
|
className: k
|
|
6603
6656
|
}) => {
|
|
6604
6657
|
const w = e.length, $ = Math.min(Math.max(c, 0.1), w), [y, O] = K(0), [D, V] = K(!1), [F, Z] = K(!1), [ae, ue] = K(0), Q = se(null), H = se(0), Y = se(0), T = $ >= w ? 0 : Math.max(0, w - $), te = (E) => Math.max(0, Math.min(E, T)), pe = (E) => O(
|
|
6605
6658
|
l && T > 0 ? (E % (T + 1) + (T + 1)) % (T + 1) : te(E)
|
|
6606
6659
|
), X = () => {
|
|
6607
6660
|
l && T > 0 ? O(y === 0 ? T : y - 1) : pe(y - 1);
|
|
6608
|
-
},
|
|
6661
|
+
}, x = () => {
|
|
6609
6662
|
l && T > 0 ? O(y >= T ? 0 : y + 1) : pe(y + 1);
|
|
6610
6663
|
};
|
|
6611
6664
|
ce(() => {
|
|
@@ -6633,7 +6686,7 @@ const Wl = Zr(function({
|
|
|
6633
6686
|
F && (Y.current = m === "horizontal" ? E : P, ue(Y.current - H.current));
|
|
6634
6687
|
}, M = () => {
|
|
6635
6688
|
if (!F) return;
|
|
6636
|
-
Math.abs(Y.current - H.current) > 50 && (Y.current < H.current ?
|
|
6689
|
+
Math.abs(Y.current - H.current) > 50 && (Y.current < H.current ? x() : X()), Z(!1), ue(0);
|
|
6637
6690
|
}, N = () => {
|
|
6638
6691
|
const E = m === "horizontal" ? "X" : "Y";
|
|
6639
6692
|
let P = 0;
|
|
@@ -6704,14 +6757,14 @@ const Wl = Zr(function({
|
|
|
6704
6757
|
onClick: X,
|
|
6705
6758
|
className: `absolute z-20 bg-color-white/80 border border-color-gray-300 rounded-full w-10 h-10 flex items-center justify-center text-lg font-bold text-color-gray-800 hover:bg-color-white transition-color cursor-pointer
|
|
6706
6759
|
${m === "horizontal" ? "left-2 top-1/2 -translate-y-1/2" : "left-1/2 top-2 -translate-x-1/2"}`,
|
|
6707
|
-
children:
|
|
6760
|
+
children: h || (m === "horizontal" ? "‹" : "↑")
|
|
6708
6761
|
}
|
|
6709
6762
|
),
|
|
6710
6763
|
/* @__PURE__ */ s.jsx(
|
|
6711
6764
|
"button",
|
|
6712
6765
|
{
|
|
6713
6766
|
"aria-label": "next",
|
|
6714
|
-
onClick:
|
|
6767
|
+
onClick: x,
|
|
6715
6768
|
className: `absolute z-20 bg-color-white/80 border border-color-gray-300 rounded-full w-10 h-10 flex items-center justify-center text-lg font-bold text-color-gray-800 hover:bg-color-white transition-colo cursor-pointer
|
|
6716
6769
|
${m === "horizontal" ? "right-2 top-1/2 -translate-y-1/2" : "left-1/2 bottom-2 -translate-x-1/2"}`,
|
|
6717
6770
|
children: b || (m === "horizontal" ? "›" : "↓")
|
|
@@ -6769,7 +6822,7 @@ const Wl = Zr(function({
|
|
|
6769
6822
|
]
|
|
6770
6823
|
}
|
|
6771
6824
|
);
|
|
6772
|
-
},
|
|
6825
|
+
}, Jl = ({
|
|
6773
6826
|
title: e,
|
|
6774
6827
|
description: n,
|
|
6775
6828
|
actionLabel: t,
|
|
@@ -6802,7 +6855,7 @@ const Wl = Zr(function({
|
|
|
6802
6855
|
i
|
|
6803
6856
|
]
|
|
6804
6857
|
}
|
|
6805
|
-
),
|
|
6858
|
+
), Ql = ({
|
|
6806
6859
|
initialState: e = !1,
|
|
6807
6860
|
onToggle: n,
|
|
6808
6861
|
disabled: t = !1,
|
|
@@ -6861,11 +6914,11 @@ const Wl = Zr(function({
|
|
|
6861
6914
|
)
|
|
6862
6915
|
}
|
|
6863
6916
|
);
|
|
6864
|
-
},
|
|
6917
|
+
}, ai = {
|
|
6865
6918
|
small: "px-2 py-1 text-sm",
|
|
6866
6919
|
medium: "px-4 py-2 text-base",
|
|
6867
6920
|
large: "px-6 py-3 text-lg"
|
|
6868
|
-
},
|
|
6921
|
+
}, es = ({
|
|
6869
6922
|
value: e,
|
|
6870
6923
|
onChange: n,
|
|
6871
6924
|
options: t,
|
|
@@ -6900,7 +6953,7 @@ const Wl = Zr(function({
|
|
|
6900
6953
|
disabled: u || p.disabled,
|
|
6901
6954
|
className: `
|
|
6902
6955
|
flex items-center justify-center gap-2 border-0 ${i === "vertical" ? "not-last:border-b-1" : "not-last:border-r-1"} border-color-gray-200
|
|
6903
|
-
${
|
|
6956
|
+
${ai[o]}
|
|
6904
6957
|
${d(p.value) ? ((v = ve[a]) == null ? void 0 : v.filled) || a : "bg-color-transparent text-color-gray-700"}
|
|
6905
6958
|
${u || p.disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer"}
|
|
6906
6959
|
${c}
|
|
@@ -6931,7 +6984,7 @@ const Wl = Zr(function({
|
|
|
6931
6984
|
small: "rounded-md",
|
|
6932
6985
|
medium: "rounded-xl",
|
|
6933
6986
|
large: "rounded-2xl"
|
|
6934
|
-
},
|
|
6987
|
+
}, ii = ({
|
|
6935
6988
|
title: e,
|
|
6936
6989
|
subtitle: n,
|
|
6937
6990
|
space: t = "medium",
|
|
@@ -6973,7 +7026,7 @@ const Wl = Zr(function({
|
|
|
6973
7026
|
/* @__PURE__ */ s.jsx("div", { children: c }),
|
|
6974
7027
|
f && /* @__PURE__ */ s.jsx("div", { className: "absolute w-full h-full top-0 left-0 flex items-center justify-center bg-color-white bg-opacity-50", children: f })
|
|
6975
7028
|
] });
|
|
6976
|
-
},
|
|
7029
|
+
}, ts = ({
|
|
6977
7030
|
orientation: e = "horizontal",
|
|
6978
7031
|
variant: n = "fullWidth",
|
|
6979
7032
|
children: t,
|
|
@@ -7010,7 +7063,7 @@ const Wl = Zr(function({
|
|
|
7010
7063
|
${n === "inset" ? o ? "pl-4" : "pt-4" : ""} ${a}`
|
|
7011
7064
|
}
|
|
7012
7065
|
);
|
|
7013
|
-
},
|
|
7066
|
+
}, ns = ({
|
|
7014
7067
|
name: e,
|
|
7015
7068
|
options: n,
|
|
7016
7069
|
selectedValue: t,
|
|
@@ -7051,7 +7104,7 @@ const Wl = Zr(function({
|
|
|
7051
7104
|
},
|
|
7052
7105
|
d
|
|
7053
7106
|
);
|
|
7054
|
-
}) }),
|
|
7107
|
+
}) }), rs = ({
|
|
7055
7108
|
label: e,
|
|
7056
7109
|
value: n,
|
|
7057
7110
|
onChange: t,
|
|
@@ -7092,7 +7145,7 @@ const Wl = Zr(function({
|
|
|
7092
7145
|
/* @__PURE__ */ s.jsx("span", { className: `absolute right-3 text-sm top-1/2 -translate-y-1/2 ${i ? "opacity-60" : ""}`, children: /* @__PURE__ */ s.jsx("svg", { className: "size-4", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ s.jsx("path", { d: "M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z" }) }) })
|
|
7093
7146
|
] })
|
|
7094
7147
|
] });
|
|
7095
|
-
},
|
|
7148
|
+
}, os = ({
|
|
7096
7149
|
content: e,
|
|
7097
7150
|
children: n,
|
|
7098
7151
|
position: t = "top"
|
|
@@ -7143,10 +7196,10 @@ const Wl = Zr(function({
|
|
|
7143
7196
|
)
|
|
7144
7197
|
] });
|
|
7145
7198
|
};
|
|
7146
|
-
function
|
|
7199
|
+
function li(...e) {
|
|
7147
7200
|
return e.filter(Boolean).join(" ");
|
|
7148
7201
|
}
|
|
7149
|
-
const
|
|
7202
|
+
const si = {
|
|
7150
7203
|
sm: "max-w-sm",
|
|
7151
7204
|
md: "max-w-md",
|
|
7152
7205
|
lg: "max-w-lg",
|
|
@@ -7154,7 +7207,7 @@ const li = {
|
|
|
7154
7207
|
"2xl": "max-w-2xl",
|
|
7155
7208
|
"4xl": "max-w-4xl",
|
|
7156
7209
|
"6xl": "max-w-6xl"
|
|
7157
|
-
},
|
|
7210
|
+
}, ci = Ye(
|
|
7158
7211
|
({
|
|
7159
7212
|
open: e,
|
|
7160
7213
|
onClose: n,
|
|
@@ -7179,7 +7232,7 @@ const li = {
|
|
|
7179
7232
|
let k;
|
|
7180
7233
|
return g ? (v(!0), k = setTimeout(() => b(!0), 10)) : b(!1), () => clearTimeout(k);
|
|
7181
7234
|
}, [g]);
|
|
7182
|
-
const
|
|
7235
|
+
const h = () => {
|
|
7183
7236
|
g || v(!1);
|
|
7184
7237
|
};
|
|
7185
7238
|
return ce(() => {
|
|
@@ -7187,13 +7240,13 @@ const li = {
|
|
|
7187
7240
|
w.key === "Escape" && (n == null || n());
|
|
7188
7241
|
};
|
|
7189
7242
|
return g && document.addEventListener("keydown", k), () => document.removeEventListener("keydown", k);
|
|
7190
|
-
}, [g, n]), ce(() => (g ?
|
|
7191
|
-
document.body.style.overflow = ""
|
|
7243
|
+
}, [g, n]), ce(() => (g ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
|
|
7244
|
+
document.body.style.overflow = "";
|
|
7192
7245
|
}), [g]), f ? Ze(
|
|
7193
7246
|
/* @__PURE__ */ s.jsxs(
|
|
7194
7247
|
"div",
|
|
7195
7248
|
{
|
|
7196
|
-
className:
|
|
7249
|
+
className: li(
|
|
7197
7250
|
"fixed inset-0 z-50 flex items-center justify-center transition-opacity duration-300",
|
|
7198
7251
|
m ? "opacity-100" : "opacity-0 pointer-events-none"
|
|
7199
7252
|
),
|
|
@@ -7210,13 +7263,13 @@ const li = {
|
|
|
7210
7263
|
/* @__PURE__ */ s.jsxs(
|
|
7211
7264
|
"div",
|
|
7212
7265
|
{
|
|
7213
|
-
className: `relative flex flex-col z-50 bg-color-white rounded-xl shadow-lg transition-all duration-300 transform p-6 ${m ? "opacity-100 scale-100" : "opacity-0 scale-95"} ${l ? "w-full h-[calc(100%_-_40px)] m-5" : `${c ? "w-full" : "w-auto"} ${u ?
|
|
7214
|
-
onTransitionEnd:
|
|
7266
|
+
className: `relative flex flex-col z-50 bg-color-white rounded-xl shadow-lg transition-all duration-300 transform p-6 ${m ? "opacity-100 scale-100" : "opacity-0 scale-95"} ${l ? "w-full h-[calc(100%_-_40px)] m-5" : `${c ? "w-full" : "w-auto"} ${u ? si[u] : ""} mx-5`} ${t}`,
|
|
7267
|
+
onTransitionEnd: h,
|
|
7215
7268
|
children: [
|
|
7216
7269
|
/* @__PURE__ */ s.jsxs("div", { className: "flex items-center justify-between mb-4", children: [
|
|
7217
7270
|
r && /* @__PURE__ */ s.jsx("h2", { className: "text-xl font-semibold", children: r }),
|
|
7218
7271
|
i && /* @__PURE__ */ s.jsx(
|
|
7219
|
-
|
|
7272
|
+
Re,
|
|
7220
7273
|
{
|
|
7221
7274
|
color: "gray",
|
|
7222
7275
|
icon: /* @__PURE__ */ s.jsx("svg", { className: "size-5", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ s.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" }) }),
|
|
@@ -7241,15 +7294,15 @@ const li = {
|
|
|
7241
7294
|
) : null;
|
|
7242
7295
|
}
|
|
7243
7296
|
);
|
|
7244
|
-
function
|
|
7297
|
+
function as({ items: e, trigger: n, className: t, dropdownItemClass: r }) {
|
|
7245
7298
|
const [o, a] = K(!1), [i, l] = K({ top: 0, left: 0 }), [c, u] = K(!1), d = se(null), g = se(null), p = (v) => {
|
|
7246
7299
|
v.stopPropagation(), a((m) => !m), u(!1);
|
|
7247
7300
|
};
|
|
7248
7301
|
Kr(() => {
|
|
7249
7302
|
if (o && d.current && g.current) {
|
|
7250
|
-
const v = d.current.getBoundingClientRect(), m = g.current.getBoundingClientRect(), b = window.innerWidth,
|
|
7303
|
+
const v = d.current.getBoundingClientRect(), m = g.current.getBoundingClientRect(), b = window.innerWidth, h = window.innerHeight;
|
|
7251
7304
|
let k = v.left + window.scrollX, w = v.bottom + window.scrollY;
|
|
7252
|
-
v.right + m.width > b && (k = v.right + window.scrollX - m.width), k + m.width > b && (k = b - m.width - 12), w + m.height >
|
|
7305
|
+
v.right + m.width > b && (k = v.right + window.scrollX - m.width), k + m.width > b && (k = b - m.width - 12), w + m.height > h && (w = v.top + window.scrollY - m.height), l({ top: w, left: k }), setTimeout(() => {
|
|
7253
7306
|
u(!0);
|
|
7254
7307
|
}, 150);
|
|
7255
7308
|
}
|
|
@@ -7294,10 +7347,10 @@ function os({ items: e, trigger: n, className: t, dropdownItemClass: r }) {
|
|
|
7294
7347
|
o && Ze(f, document.body)
|
|
7295
7348
|
] });
|
|
7296
7349
|
}
|
|
7297
|
-
function
|
|
7350
|
+
function ui(...e) {
|
|
7298
7351
|
return e.filter(Boolean).join(" ");
|
|
7299
7352
|
}
|
|
7300
|
-
const
|
|
7353
|
+
const di = ({
|
|
7301
7354
|
open: e,
|
|
7302
7355
|
onClose: n,
|
|
7303
7356
|
className: t,
|
|
@@ -7319,8 +7372,8 @@ const ui = ({
|
|
|
7319
7372
|
e || d(!1);
|
|
7320
7373
|
};
|
|
7321
7374
|
if (ce(() => {
|
|
7322
|
-
const b = (
|
|
7323
|
-
|
|
7375
|
+
const b = (h) => {
|
|
7376
|
+
h.key === "Escape" && (n == null || n());
|
|
7324
7377
|
};
|
|
7325
7378
|
return e && document.addEventListener("keydown", b), () => document.removeEventListener("keydown", b);
|
|
7326
7379
|
}, [e, n]), ce(() => (e ? (document.body.style.overflow = "hidden", document.documentElement.style.overflow = "hidden") : (document.body.style.overflow = "", document.documentElement.style.overflow = ""), () => {
|
|
@@ -7341,7 +7394,7 @@ const ui = ({
|
|
|
7341
7394
|
/* @__PURE__ */ s.jsxs(
|
|
7342
7395
|
"div",
|
|
7343
7396
|
{
|
|
7344
|
-
className:
|
|
7397
|
+
className: ui(
|
|
7345
7398
|
"fixed inset-0 z-50 transition-opacity duration-300",
|
|
7346
7399
|
g ? "opacity-100" : "opacity-0 pointer-events-none"
|
|
7347
7400
|
),
|
|
@@ -7359,7 +7412,7 @@ const ui = ({
|
|
|
7359
7412
|
onTransitionEnd: f,
|
|
7360
7413
|
children: [
|
|
7361
7414
|
l && /* @__PURE__ */ s.jsx(
|
|
7362
|
-
|
|
7415
|
+
Re,
|
|
7363
7416
|
{
|
|
7364
7417
|
color: "gray",
|
|
7365
7418
|
icon: /* @__PURE__ */ s.jsx("svg", { className: "size-5", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ s.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" }) }),
|
|
@@ -7381,7 +7434,7 @@ const ui = ({
|
|
|
7381
7434
|
),
|
|
7382
7435
|
document.body
|
|
7383
7436
|
);
|
|
7384
|
-
},
|
|
7437
|
+
}, is = ({
|
|
7385
7438
|
title: e,
|
|
7386
7439
|
content: n,
|
|
7387
7440
|
expandIcon: t,
|
|
@@ -7419,25 +7472,25 @@ const ui = ({
|
|
|
7419
7472
|
),
|
|
7420
7473
|
/* @__PURE__ */ s.jsx("div", { className: `grid overflow-hidden transition-all duration-300 ease-in-out grid-rows-[0fr] ${f ? "grid-rows-[1fr] opacity-100" : "grid-rows-[0fr] opacity-0"}`, children: /* @__PURE__ */ s.jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ s.jsx("div", { className: `p-4 text-sm text-color-gray-700 ${u}`, children: n }) }) })
|
|
7421
7474
|
] });
|
|
7422
|
-
},
|
|
7475
|
+
}, pi = {
|
|
7423
7476
|
info: "bg-color-blue-50 border-color-blue-300 text-color-blue-800",
|
|
7424
7477
|
success: "bg-color-green-50 border-color-green-300 text-color-green-800",
|
|
7425
7478
|
danger: "bg-color-red-50 border-color-red-300 text-color-red-800",
|
|
7426
7479
|
warning: "bg-color-yellow-50 border-color-yellow-300 text-color-yellow-800",
|
|
7427
7480
|
dark: "bg-color-gray-100 border-color-gray-300 text-color-gray-800"
|
|
7428
|
-
},
|
|
7481
|
+
}, fi = {
|
|
7429
7482
|
info: /* @__PURE__ */ s.jsx("svg", { className: "text-color-blue-800 shrink-0 size-7", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ s.jsx("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z" }) }),
|
|
7430
7483
|
success: /* @__PURE__ */ s.jsx("svg", { className: "text-color-green-800 shrink-0 size-7", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ s.jsx("path", { d: "M4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM17.4571 9.45711L16.0429 8.04289L11 13.0858L8.20711 10.2929L6.79289 11.7071L11 15.9142L17.4571 9.45711Z" }) }),
|
|
7431
7484
|
danger: /* @__PURE__ */ s.jsx("svg", { className: "text-color-red-800 shrink-0 size-7", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ s.jsx("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM12 10.5858L14.8284 7.75736L16.2426 9.17157L13.4142 12L16.2426 14.8284L14.8284 16.2426L12 13.4142L9.17157 16.2426L7.75736 14.8284L10.5858 12L7.75736 9.17157L9.17157 7.75736L12 10.5858Z" }) }),
|
|
7432
7485
|
warning: /* @__PURE__ */ s.jsx("svg", { className: "text-color-yellow-800 shrink-0 size-7", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ s.jsx("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z" }) }),
|
|
7433
7486
|
dark: /* @__PURE__ */ s.jsx("svg", { className: "text-color-gray-800 shrink-0 size-7", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ s.jsx("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z" }) })
|
|
7434
|
-
},
|
|
7487
|
+
}, mi = {
|
|
7435
7488
|
info: "bg-color-blue-500",
|
|
7436
7489
|
success: "bg-color-green-500",
|
|
7437
7490
|
danger: "bg-color-red-500",
|
|
7438
7491
|
warning: "bg-color-yellow-500",
|
|
7439
7492
|
dark: "bg-color-gray-700"
|
|
7440
|
-
},
|
|
7493
|
+
}, ls = ({
|
|
7441
7494
|
message: e,
|
|
7442
7495
|
variant: n = "info",
|
|
7443
7496
|
onClose: t,
|
|
@@ -7456,10 +7509,10 @@ const ui = ({
|
|
|
7456
7509
|
}, [r, a, t]), i ? /* @__PURE__ */ s.jsxs(
|
|
7457
7510
|
"div",
|
|
7458
7511
|
{
|
|
7459
|
-
className: `relative border-t-4 p-4 flex items-start justify-between ${
|
|
7512
|
+
className: `relative border-t-4 p-4 flex items-start justify-between ${pi[n]} ${o}`,
|
|
7460
7513
|
children: [
|
|
7461
7514
|
/* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
7462
|
-
|
|
7515
|
+
fi[n],
|
|
7463
7516
|
/* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: e } })
|
|
7464
7517
|
] }),
|
|
7465
7518
|
/* @__PURE__ */ s.jsx(
|
|
@@ -7477,14 +7530,14 @@ const ui = ({
|
|
|
7477
7530
|
"div",
|
|
7478
7531
|
{
|
|
7479
7532
|
ref: c,
|
|
7480
|
-
className: `${
|
|
7533
|
+
className: `${mi[n]} h-1`,
|
|
7481
7534
|
style: { width: "100%" }
|
|
7482
7535
|
}
|
|
7483
7536
|
) })
|
|
7484
7537
|
]
|
|
7485
7538
|
}
|
|
7486
7539
|
) : null;
|
|
7487
|
-
},
|
|
7540
|
+
}, ss = ({
|
|
7488
7541
|
children: e,
|
|
7489
7542
|
count: n,
|
|
7490
7543
|
showDot: t = !1,
|
|
@@ -7539,11 +7592,11 @@ const ui = ({
|
|
|
7539
7592
|
*
|
|
7540
7593
|
* @license MIT
|
|
7541
7594
|
*/
|
|
7542
|
-
function
|
|
7595
|
+
function xe(e, n) {
|
|
7543
7596
|
if (e === !1 || e === null || typeof e > "u")
|
|
7544
7597
|
throw new Error(n);
|
|
7545
7598
|
}
|
|
7546
|
-
function
|
|
7599
|
+
function _e(e, n) {
|
|
7547
7600
|
if (!e) {
|
|
7548
7601
|
typeof console < "u" && console.warn(n);
|
|
7549
7602
|
try {
|
|
@@ -7570,18 +7623,18 @@ function cn(e) {
|
|
|
7570
7623
|
return n;
|
|
7571
7624
|
}
|
|
7572
7625
|
function $r(e, n, t = "/") {
|
|
7573
|
-
return
|
|
7626
|
+
return gi(e, n, t, !1);
|
|
7574
7627
|
}
|
|
7575
|
-
function
|
|
7576
|
-
let o = typeof n == "string" ? cn(n) : n, a =
|
|
7628
|
+
function gi(e, n, t, r) {
|
|
7629
|
+
let o = typeof n == "string" ? cn(n) : n, a = Ae(o.pathname || "/", t);
|
|
7577
7630
|
if (a == null)
|
|
7578
7631
|
return null;
|
|
7579
7632
|
let i = _r(e);
|
|
7580
|
-
|
|
7633
|
+
vi(i);
|
|
7581
7634
|
let l = null;
|
|
7582
7635
|
for (let c = 0; l == null && c < i.length; ++c) {
|
|
7583
|
-
let u =
|
|
7584
|
-
l =
|
|
7636
|
+
let u = $i(a);
|
|
7637
|
+
l = Ri(
|
|
7585
7638
|
i[c],
|
|
7586
7639
|
u,
|
|
7587
7640
|
r
|
|
@@ -7597,19 +7650,19 @@ function _r(e, n = [], t = [], r = "") {
|
|
|
7597
7650
|
childrenIndex: i,
|
|
7598
7651
|
route: a
|
|
7599
7652
|
};
|
|
7600
|
-
c.relativePath.startsWith("/") && (
|
|
7653
|
+
c.relativePath.startsWith("/") && (xe(
|
|
7601
7654
|
c.relativePath.startsWith(r),
|
|
7602
7655
|
`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`
|
|
7603
7656
|
), c.relativePath = c.relativePath.slice(r.length));
|
|
7604
|
-
let u =
|
|
7605
|
-
a.children && a.children.length > 0 && (
|
|
7657
|
+
let u = $e([r, c.relativePath]), d = t.concat(c);
|
|
7658
|
+
a.children && a.children.length > 0 && (xe(
|
|
7606
7659
|
// Our types know better, but runtime JS may not!
|
|
7607
7660
|
// @ts-expect-error
|
|
7608
7661
|
a.index !== !0,
|
|
7609
7662
|
`Index routes must not have child routes. Please remove all child routes from route path "${u}".`
|
|
7610
7663
|
), _r(a.children, n, d, u)), !(a.path == null && !a.index) && n.push({
|
|
7611
7664
|
path: u,
|
|
7612
|
-
score:
|
|
7665
|
+
score: Si(u, a.index),
|
|
7613
7666
|
routesMeta: d
|
|
7614
7667
|
});
|
|
7615
7668
|
};
|
|
@@ -7637,23 +7690,23 @@ function Er(e) {
|
|
|
7637
7690
|
(c) => e.startsWith("/") && c === "" ? "/" : c
|
|
7638
7691
|
);
|
|
7639
7692
|
}
|
|
7640
|
-
function
|
|
7693
|
+
function vi(e) {
|
|
7641
7694
|
e.sort(
|
|
7642
|
-
(n, t) => n.score !== t.score ? t.score - n.score :
|
|
7695
|
+
(n, t) => n.score !== t.score ? t.score - n.score : ji(
|
|
7643
7696
|
n.routesMeta.map((r) => r.childrenIndex),
|
|
7644
7697
|
t.routesMeta.map((r) => r.childrenIndex)
|
|
7645
7698
|
)
|
|
7646
7699
|
);
|
|
7647
7700
|
}
|
|
7648
|
-
var
|
|
7649
|
-
function
|
|
7701
|
+
var xi = /^:[\w-]+$/, hi = 3, bi = 2, wi = 1, yi = 10, Ci = -2, Xn = (e) => e === "*";
|
|
7702
|
+
function Si(e, n) {
|
|
7650
7703
|
let t = e.split("/"), r = t.length;
|
|
7651
|
-
return t.some(Xn) && (r +=
|
|
7652
|
-
(o, a) => o + (
|
|
7704
|
+
return t.some(Xn) && (r += Ci), n && (r += bi), t.filter((o) => !Xn(o)).reduce(
|
|
7705
|
+
(o, a) => o + (xi.test(a) ? hi : a === "" ? wi : yi),
|
|
7653
7706
|
r
|
|
7654
7707
|
);
|
|
7655
7708
|
}
|
|
7656
|
-
function
|
|
7709
|
+
function ji(e, n) {
|
|
7657
7710
|
return e.length === n.length && e.slice(0, -1).every((r, o) => r === n[o]) ? (
|
|
7658
7711
|
// If two routes are siblings, we should try to match the earlier sibling
|
|
7659
7712
|
// first. This allows people to have fine-grained control over the matching
|
|
@@ -7666,7 +7719,7 @@ function Si(e, n) {
|
|
|
7666
7719
|
0
|
|
7667
7720
|
);
|
|
7668
7721
|
}
|
|
7669
|
-
function
|
|
7722
|
+
function Ri(e, n, t = !1) {
|
|
7670
7723
|
let { routesMeta: r } = e, o = {}, a = "/", i = [];
|
|
7671
7724
|
for (let l = 0; l < r.length; ++l) {
|
|
7672
7725
|
let c = r[l], u = l === r.length - 1, d = a === "/" ? n : n.slice(a.length) || "/", g = gt(
|
|
@@ -7685,18 +7738,18 @@ function ji(e, n, t = !1) {
|
|
|
7685
7738
|
Object.assign(o, g.params), i.push({
|
|
7686
7739
|
// TODO: Can this as be avoided?
|
|
7687
7740
|
params: o,
|
|
7688
|
-
pathname:
|
|
7689
|
-
pathnameBase:
|
|
7690
|
-
|
|
7741
|
+
pathname: $e([a, g.pathname]),
|
|
7742
|
+
pathnameBase: Mi(
|
|
7743
|
+
$e([a, g.pathnameBase])
|
|
7691
7744
|
),
|
|
7692
7745
|
route: p
|
|
7693
|
-
}), g.pathnameBase !== "/" && (a =
|
|
7746
|
+
}), g.pathnameBase !== "/" && (a = $e([a, g.pathnameBase]));
|
|
7694
7747
|
}
|
|
7695
7748
|
return i;
|
|
7696
7749
|
}
|
|
7697
7750
|
function gt(e, n) {
|
|
7698
7751
|
typeof e == "string" && (e = { path: e, caseSensitive: !1, end: !0 });
|
|
7699
|
-
let [t, r] =
|
|
7752
|
+
let [t, r] = ki(
|
|
7700
7753
|
e.path,
|
|
7701
7754
|
e.caseSensitive,
|
|
7702
7755
|
e.end
|
|
@@ -7720,8 +7773,8 @@ function gt(e, n) {
|
|
|
7720
7773
|
pattern: e
|
|
7721
7774
|
};
|
|
7722
7775
|
}
|
|
7723
|
-
function
|
|
7724
|
-
|
|
7776
|
+
function ki(e, n = !1, t = !0) {
|
|
7777
|
+
_e(
|
|
7725
7778
|
e === "*" || !e.endsWith("*") || e.endsWith("/*"),
|
|
7726
7779
|
`Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`
|
|
7727
7780
|
);
|
|
@@ -7731,36 +7784,36 @@ function Ri(e, n = !1, t = !0) {
|
|
|
7731
7784
|
);
|
|
7732
7785
|
return e.endsWith("*") ? (r.push({ paramName: "*" }), o += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : t ? o += "\\/*$" : e !== "" && e !== "/" && (o += "(?:(?=\\/|$))"), [new RegExp(o, n ? void 0 : "i"), r];
|
|
7733
7786
|
}
|
|
7734
|
-
function
|
|
7787
|
+
function $i(e) {
|
|
7735
7788
|
try {
|
|
7736
7789
|
return e.split("/").map((n) => decodeURIComponent(n).replace(/\//g, "%2F")).join("/");
|
|
7737
7790
|
} catch (n) {
|
|
7738
|
-
return
|
|
7791
|
+
return _e(
|
|
7739
7792
|
!1,
|
|
7740
7793
|
`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${n}).`
|
|
7741
7794
|
), e;
|
|
7742
7795
|
}
|
|
7743
7796
|
}
|
|
7744
|
-
function
|
|
7797
|
+
function Ae(e, n) {
|
|
7745
7798
|
if (n === "/") return e;
|
|
7746
7799
|
if (!e.toLowerCase().startsWith(n.toLowerCase()))
|
|
7747
7800
|
return null;
|
|
7748
7801
|
let t = n.endsWith("/") ? n.length - 1 : n.length, r = e.charAt(t);
|
|
7749
7802
|
return r && r !== "/" ? null : e.slice(t) || "/";
|
|
7750
7803
|
}
|
|
7751
|
-
function
|
|
7804
|
+
function _i(e, n = "/") {
|
|
7752
7805
|
let {
|
|
7753
7806
|
pathname: t,
|
|
7754
7807
|
search: r = "",
|
|
7755
7808
|
hash: o = ""
|
|
7756
7809
|
} = typeof e == "string" ? cn(e) : e;
|
|
7757
7810
|
return {
|
|
7758
|
-
pathname: t ? t.startsWith("/") ? t :
|
|
7759
|
-
search:
|
|
7760
|
-
hash:
|
|
7811
|
+
pathname: t ? t.startsWith("/") ? t : Ei(t, n) : n,
|
|
7812
|
+
search: Li(r),
|
|
7813
|
+
hash: Fi(o)
|
|
7761
7814
|
};
|
|
7762
7815
|
}
|
|
7763
|
-
function
|
|
7816
|
+
function Ei(e, n) {
|
|
7764
7817
|
let t = n.replace(/\/+$/, "").split("/");
|
|
7765
7818
|
return e.split("/").forEach((o) => {
|
|
7766
7819
|
o === ".." ? t.length > 1 && t.pop() : o !== "." && t.push(o);
|
|
@@ -7771,26 +7824,26 @@ function Ht(e, n, t, r) {
|
|
|
7771
7824
|
r
|
|
7772
7825
|
)}]. Please separate it out to the \`to.${t}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;
|
|
7773
7826
|
}
|
|
7774
|
-
function
|
|
7827
|
+
function Pi(e) {
|
|
7775
7828
|
return e.filter(
|
|
7776
7829
|
(n, t) => t === 0 || n.route.path && n.route.path.length > 0
|
|
7777
7830
|
);
|
|
7778
7831
|
}
|
|
7779
7832
|
function Pr(e) {
|
|
7780
|
-
let n =
|
|
7833
|
+
let n = Pi(e);
|
|
7781
7834
|
return n.map(
|
|
7782
7835
|
(t, r) => r === n.length - 1 ? t.pathname : t.pathnameBase
|
|
7783
7836
|
);
|
|
7784
7837
|
}
|
|
7785
7838
|
function Mr(e, n, t, r = !1) {
|
|
7786
7839
|
let o;
|
|
7787
|
-
typeof e == "string" ? o = cn(e) : (o = { ...e },
|
|
7840
|
+
typeof e == "string" ? o = cn(e) : (o = { ...e }, xe(
|
|
7788
7841
|
!o.pathname || !o.pathname.includes("?"),
|
|
7789
7842
|
Ht("?", "pathname", "search", o)
|
|
7790
|
-
),
|
|
7843
|
+
), xe(
|
|
7791
7844
|
!o.pathname || !o.pathname.includes("#"),
|
|
7792
7845
|
Ht("#", "pathname", "hash", o)
|
|
7793
|
-
),
|
|
7846
|
+
), xe(
|
|
7794
7847
|
!o.search || !o.search.includes("#"),
|
|
7795
7848
|
Ht("#", "search", "hash", o)
|
|
7796
7849
|
));
|
|
@@ -7807,11 +7860,11 @@ function Mr(e, n, t, r = !1) {
|
|
|
7807
7860
|
}
|
|
7808
7861
|
l = g >= 0 ? n[g] : "/";
|
|
7809
7862
|
}
|
|
7810
|
-
let c =
|
|
7863
|
+
let c = _i(o, l), u = i && i !== "/" && i.endsWith("/"), d = (a || i === ".") && t.endsWith("/");
|
|
7811
7864
|
return !c.pathname.endsWith("/") && (u || d) && (c.pathname += "/"), c;
|
|
7812
7865
|
}
|
|
7813
|
-
var
|
|
7814
|
-
function
|
|
7866
|
+
var $e = (e) => e.join("/").replace(/\/\/+/g, "/"), Mi = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), Li = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Fi = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e;
|
|
7867
|
+
function Ai(e) {
|
|
7815
7868
|
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
|
|
7816
7869
|
}
|
|
7817
7870
|
var Lr = [
|
|
@@ -7823,58 +7876,58 @@ var Lr = [
|
|
|
7823
7876
|
new Set(
|
|
7824
7877
|
Lr
|
|
7825
7878
|
);
|
|
7826
|
-
var
|
|
7879
|
+
var Ni = [
|
|
7827
7880
|
"GET",
|
|
7828
7881
|
...Lr
|
|
7829
7882
|
];
|
|
7830
|
-
new Set(
|
|
7883
|
+
new Set(Ni);
|
|
7831
7884
|
var Ie = R.createContext(null);
|
|
7832
7885
|
Ie.displayName = "DataRouter";
|
|
7833
|
-
var
|
|
7834
|
-
|
|
7886
|
+
var xt = R.createContext(null);
|
|
7887
|
+
xt.displayName = "DataRouterState";
|
|
7835
7888
|
R.createContext(!1);
|
|
7836
7889
|
var Fr = R.createContext({
|
|
7837
7890
|
isTransitioning: !1
|
|
7838
7891
|
});
|
|
7839
7892
|
Fr.displayName = "ViewTransition";
|
|
7840
|
-
var
|
|
7893
|
+
var Di = R.createContext(
|
|
7841
7894
|
/* @__PURE__ */ new Map()
|
|
7842
7895
|
);
|
|
7843
|
-
|
|
7844
|
-
var
|
|
7845
|
-
|
|
7846
|
-
var
|
|
7896
|
+
Di.displayName = "Fetchers";
|
|
7897
|
+
var zi = R.createContext(null);
|
|
7898
|
+
zi.displayName = "Await";
|
|
7899
|
+
var Ee = R.createContext(
|
|
7847
7900
|
null
|
|
7848
7901
|
);
|
|
7849
|
-
|
|
7902
|
+
Ee.displayName = "Navigation";
|
|
7850
7903
|
var un = R.createContext(
|
|
7851
7904
|
null
|
|
7852
7905
|
);
|
|
7853
7906
|
un.displayName = "Location";
|
|
7854
|
-
var
|
|
7907
|
+
var Pe = R.createContext({
|
|
7855
7908
|
outlet: null,
|
|
7856
7909
|
matches: [],
|
|
7857
7910
|
isDataRoute: !1
|
|
7858
7911
|
});
|
|
7859
|
-
|
|
7912
|
+
Pe.displayName = "Route";
|
|
7860
7913
|
var dn = R.createContext(null);
|
|
7861
7914
|
dn.displayName = "RouteError";
|
|
7862
|
-
function
|
|
7863
|
-
|
|
7864
|
-
|
|
7915
|
+
function Ti(e, { relative: n } = {}) {
|
|
7916
|
+
xe(
|
|
7917
|
+
ht(),
|
|
7865
7918
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
7866
7919
|
// router loaded. We can help them understand how to avoid that.
|
|
7867
7920
|
"useHref() may be used only in the context of a <Router> component."
|
|
7868
7921
|
);
|
|
7869
|
-
let { basename: t, navigator: r } = R.useContext(
|
|
7870
|
-
return t !== "/" && (l = a === "/" ? t :
|
|
7922
|
+
let { basename: t, navigator: r } = R.useContext(Ee), { hash: o, pathname: a, search: i } = Ke(e, { relative: n }), l = a;
|
|
7923
|
+
return t !== "/" && (l = a === "/" ? t : $e([t, a])), r.createHref({ pathname: l, search: i, hash: o });
|
|
7871
7924
|
}
|
|
7872
|
-
function
|
|
7925
|
+
function ht() {
|
|
7873
7926
|
return R.useContext(un) != null;
|
|
7874
7927
|
}
|
|
7875
|
-
function
|
|
7876
|
-
return
|
|
7877
|
-
|
|
7928
|
+
function ze() {
|
|
7929
|
+
return xe(
|
|
7930
|
+
ht(),
|
|
7878
7931
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
7879
7932
|
// router loaded. We can help them understand how to avoid that.
|
|
7880
7933
|
"useLocation() may be used only in the context of a <Router> component."
|
|
@@ -7882,25 +7935,25 @@ function De() {
|
|
|
7882
7935
|
}
|
|
7883
7936
|
var Ar = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
|
|
7884
7937
|
function Nr(e) {
|
|
7885
|
-
R.useContext(
|
|
7886
|
-
}
|
|
7887
|
-
function Ti() {
|
|
7888
|
-
let { isDataRoute: e } = R.useContext(Ee);
|
|
7889
|
-
return e ? Xi() : Oi();
|
|
7938
|
+
R.useContext(Ee).static || R.useLayoutEffect(e);
|
|
7890
7939
|
}
|
|
7891
7940
|
function Oi() {
|
|
7892
|
-
|
|
7893
|
-
|
|
7941
|
+
let { isDataRoute: e } = R.useContext(Pe);
|
|
7942
|
+
return e ? Ji() : Ii();
|
|
7943
|
+
}
|
|
7944
|
+
function Ii() {
|
|
7945
|
+
xe(
|
|
7946
|
+
ht(),
|
|
7894
7947
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
7895
7948
|
// router loaded. We can help them understand how to avoid that.
|
|
7896
7949
|
"useNavigate() may be used only in the context of a <Router> component."
|
|
7897
7950
|
);
|
|
7898
|
-
let e = R.useContext(Ie), { basename: n, navigator: t } = R.useContext(
|
|
7951
|
+
let e = R.useContext(Ie), { basename: n, navigator: t } = R.useContext(Ee), { matches: r } = R.useContext(Pe), { pathname: o } = ze(), a = JSON.stringify(Pr(r)), i = R.useRef(!1);
|
|
7899
7952
|
return Nr(() => {
|
|
7900
7953
|
i.current = !0;
|
|
7901
7954
|
}), R.useCallback(
|
|
7902
7955
|
(c, u = {}) => {
|
|
7903
|
-
if (
|
|
7956
|
+
if (_e(i.current, Ar), !i.current) return;
|
|
7904
7957
|
if (typeof c == "number") {
|
|
7905
7958
|
t.go(c);
|
|
7906
7959
|
return;
|
|
@@ -7911,7 +7964,7 @@ function Oi() {
|
|
|
7911
7964
|
o,
|
|
7912
7965
|
u.relative === "path"
|
|
7913
7966
|
);
|
|
7914
|
-
e == null && n !== "/" && (d.pathname = d.pathname === "/" ? n :
|
|
7967
|
+
e == null && n !== "/" && (d.pathname = d.pathname === "/" ? n : $e([n, d.pathname])), (u.replace ? t.replace : t.push)(
|
|
7915
7968
|
d,
|
|
7916
7969
|
u.state,
|
|
7917
7970
|
u
|
|
@@ -7928,7 +7981,7 @@ function Oi() {
|
|
|
7928
7981
|
}
|
|
7929
7982
|
R.createContext(null);
|
|
7930
7983
|
function Ke(e, { relative: n } = {}) {
|
|
7931
|
-
let { matches: t } = R.useContext(
|
|
7984
|
+
let { matches: t } = R.useContext(Pe), { pathname: r } = ze(), o = JSON.stringify(Pr(t));
|
|
7932
7985
|
return R.useMemo(
|
|
7933
7986
|
() => Mr(
|
|
7934
7987
|
e,
|
|
@@ -7939,51 +7992,51 @@ function Ke(e, { relative: n } = {}) {
|
|
|
7939
7992
|
[e, o, r, n]
|
|
7940
7993
|
);
|
|
7941
7994
|
}
|
|
7942
|
-
function
|
|
7943
|
-
|
|
7944
|
-
|
|
7995
|
+
function Vi(e, n, t, r) {
|
|
7996
|
+
xe(
|
|
7997
|
+
ht(),
|
|
7945
7998
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
7946
7999
|
// router loaded. We can help them understand how to avoid that.
|
|
7947
8000
|
"useRoutes() may be used only in the context of a <Router> component."
|
|
7948
8001
|
);
|
|
7949
|
-
let { navigator: o } = R.useContext(
|
|
8002
|
+
let { navigator: o } = R.useContext(Ee), { matches: a } = R.useContext(Pe), i = a[a.length - 1], l = i ? i.params : {}, c = i ? i.pathname : "/", u = i ? i.pathnameBase : "/", d = i && i.route;
|
|
7950
8003
|
{
|
|
7951
|
-
let
|
|
8004
|
+
let h = d && d.path || "";
|
|
7952
8005
|
Dr(
|
|
7953
8006
|
c,
|
|
7954
|
-
!d ||
|
|
7955
|
-
`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${
|
|
8007
|
+
!d || h.endsWith("*") || h.endsWith("*?"),
|
|
8008
|
+
`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${h}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
7956
8009
|
|
|
7957
|
-
Please change the parent <Route path="${
|
|
8010
|
+
Please change the parent <Route path="${h}"> to <Route path="${h === "/" ? "*" : `${h}/*`}">.`
|
|
7958
8011
|
);
|
|
7959
8012
|
}
|
|
7960
|
-
let g =
|
|
8013
|
+
let g = ze(), p;
|
|
7961
8014
|
p = g;
|
|
7962
8015
|
let f = p.pathname || "/", v = f;
|
|
7963
8016
|
if (u !== "/") {
|
|
7964
|
-
let
|
|
7965
|
-
v = "/" + f.replace(/^\//, "").split("/").slice(
|
|
8017
|
+
let h = u.replace(/^\//, "").split("/");
|
|
8018
|
+
v = "/" + f.replace(/^\//, "").split("/").slice(h.length).join("/");
|
|
7966
8019
|
}
|
|
7967
8020
|
let m = $r(e, { pathname: v });
|
|
7968
|
-
return
|
|
8021
|
+
return _e(
|
|
7969
8022
|
d || m != null,
|
|
7970
8023
|
`No routes matched location "${p.pathname}${p.search}${p.hash}" `
|
|
7971
|
-
),
|
|
8024
|
+
), _e(
|
|
7972
8025
|
m == null || m[m.length - 1].route.element !== void 0 || m[m.length - 1].route.Component !== void 0 || m[m.length - 1].route.lazy !== void 0,
|
|
7973
8026
|
`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`
|
|
7974
|
-
),
|
|
8027
|
+
), Wi(
|
|
7975
8028
|
m && m.map(
|
|
7976
|
-
(
|
|
7977
|
-
params: Object.assign({}, l,
|
|
7978
|
-
pathname:
|
|
8029
|
+
(h) => Object.assign({}, h, {
|
|
8030
|
+
params: Object.assign({}, l, h.params),
|
|
8031
|
+
pathname: $e([
|
|
7979
8032
|
u,
|
|
7980
8033
|
// Re-encode pathnames that were decoded inside matchRoutes
|
|
7981
|
-
o.encodeLocation ? o.encodeLocation(
|
|
8034
|
+
o.encodeLocation ? o.encodeLocation(h.pathname).pathname : h.pathname
|
|
7982
8035
|
]),
|
|
7983
|
-
pathnameBase:
|
|
8036
|
+
pathnameBase: h.pathnameBase === "/" ? u : $e([
|
|
7984
8037
|
u,
|
|
7985
8038
|
// Re-encode pathnames that were decoded inside matchRoutes
|
|
7986
|
-
o.encodeLocation ? o.encodeLocation(
|
|
8039
|
+
o.encodeLocation ? o.encodeLocation(h.pathnameBase).pathname : h.pathnameBase
|
|
7987
8040
|
])
|
|
7988
8041
|
})
|
|
7989
8042
|
),
|
|
@@ -7992,14 +8045,14 @@ Please change the parent <Route path="${x}"> to <Route path="${x === "/" ? "*" :
|
|
|
7992
8045
|
r
|
|
7993
8046
|
);
|
|
7994
8047
|
}
|
|
7995
|
-
function
|
|
7996
|
-
let e =
|
|
8048
|
+
function Hi() {
|
|
8049
|
+
let e = Xi(), n = Ai(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), t = e instanceof Error ? e.stack : null, r = "rgba(200,200,200, 0.5)", o = { padding: "0.5rem", backgroundColor: r }, a = { padding: "2px 4px", backgroundColor: r }, i = null;
|
|
7997
8050
|
return console.error(
|
|
7998
8051
|
"Error handled by React Router default ErrorBoundary:",
|
|
7999
8052
|
e
|
|
8000
8053
|
), i = /* @__PURE__ */ R.createElement(R.Fragment, null, /* @__PURE__ */ R.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ R.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ R.createElement("code", { style: a }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ R.createElement("code", { style: a }, "errorElement"), " prop on your route.")), /* @__PURE__ */ R.createElement(R.Fragment, null, /* @__PURE__ */ R.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ R.createElement("h3", { style: { fontStyle: "italic" } }, n), t ? /* @__PURE__ */ R.createElement("pre", { style: o }, t) : null, i);
|
|
8001
8054
|
}
|
|
8002
|
-
var
|
|
8055
|
+
var Bi = /* @__PURE__ */ R.createElement(Hi, null), qi = class extends R.Component {
|
|
8003
8056
|
constructor(e) {
|
|
8004
8057
|
super(e), this.state = {
|
|
8005
8058
|
location: e.location,
|
|
@@ -8029,7 +8082,7 @@ var Hi = /* @__PURE__ */ R.createElement(Vi, null), Bi = class extends R.Compone
|
|
|
8029
8082
|
);
|
|
8030
8083
|
}
|
|
8031
8084
|
render() {
|
|
8032
|
-
return this.state.error !== void 0 ? /* @__PURE__ */ R.createElement(
|
|
8085
|
+
return this.state.error !== void 0 ? /* @__PURE__ */ R.createElement(Pe.Provider, { value: this.props.routeContext }, /* @__PURE__ */ R.createElement(
|
|
8033
8086
|
dn.Provider,
|
|
8034
8087
|
{
|
|
8035
8088
|
value: this.state.error,
|
|
@@ -8038,11 +8091,11 @@ var Hi = /* @__PURE__ */ R.createElement(Vi, null), Bi = class extends R.Compone
|
|
|
8038
8091
|
)) : this.props.children;
|
|
8039
8092
|
}
|
|
8040
8093
|
};
|
|
8041
|
-
function
|
|
8094
|
+
function Gi({ routeContext: e, match: n, children: t }) {
|
|
8042
8095
|
let r = R.useContext(Ie);
|
|
8043
|
-
return r && r.static && r.staticContext && (n.route.errorElement || n.route.ErrorBoundary) && (r.staticContext._deepestRenderedBoundaryId = n.route.id), /* @__PURE__ */ R.createElement(
|
|
8096
|
+
return r && r.static && r.staticContext && (n.route.errorElement || n.route.ErrorBoundary) && (r.staticContext._deepestRenderedBoundaryId = n.route.id), /* @__PURE__ */ R.createElement(Pe.Provider, { value: e }, t);
|
|
8044
8097
|
}
|
|
8045
|
-
function
|
|
8098
|
+
function Wi(e, n = [], t = null, r = null) {
|
|
8046
8099
|
if (e == null) {
|
|
8047
8100
|
if (!t)
|
|
8048
8101
|
return null;
|
|
@@ -8058,7 +8111,7 @@ function Gi(e, n = [], t = null, r = null) {
|
|
|
8058
8111
|
let c = o.findIndex(
|
|
8059
8112
|
(u) => u.route.id && (a == null ? void 0 : a[u.route.id]) !== void 0
|
|
8060
8113
|
);
|
|
8061
|
-
|
|
8114
|
+
xe(
|
|
8062
8115
|
c >= 0,
|
|
8063
8116
|
`Could not find a matching route for errors on route IDs: ${Object.keys(
|
|
8064
8117
|
a
|
|
@@ -8083,15 +8136,15 @@ function Gi(e, n = [], t = null, r = null) {
|
|
|
8083
8136
|
return o.reduceRight(
|
|
8084
8137
|
(c, u, d) => {
|
|
8085
8138
|
let g, p = !1, f = null, v = null;
|
|
8086
|
-
t && (g = a && u.route.id ? a[u.route.id] : void 0, f = u.route.errorElement ||
|
|
8139
|
+
t && (g = a && u.route.id ? a[u.route.id] : void 0, f = u.route.errorElement || Bi, i && (l < 0 && d === 0 ? (Dr(
|
|
8087
8140
|
"route-fallback",
|
|
8088
8141
|
!1,
|
|
8089
8142
|
"No `HydrateFallback` element provided to render during initial hydration"
|
|
8090
8143
|
), p = !0, v = null) : l === d && (p = !0, v = u.route.hydrateFallbackElement || null)));
|
|
8091
8144
|
let m = n.concat(o.slice(0, d + 1)), b = () => {
|
|
8092
|
-
let
|
|
8093
|
-
return g ?
|
|
8094
|
-
|
|
8145
|
+
let h;
|
|
8146
|
+
return g ? h = f : p ? h = v : u.route.Component ? h = /* @__PURE__ */ R.createElement(u.route.Component, null) : u.route.element ? h = u.route.element : h = c, /* @__PURE__ */ R.createElement(
|
|
8147
|
+
Gi,
|
|
8095
8148
|
{
|
|
8096
8149
|
match: u,
|
|
8097
8150
|
routeContext: {
|
|
@@ -8099,12 +8152,12 @@ function Gi(e, n = [], t = null, r = null) {
|
|
|
8099
8152
|
matches: m,
|
|
8100
8153
|
isDataRoute: t != null
|
|
8101
8154
|
},
|
|
8102
|
-
children:
|
|
8155
|
+
children: h
|
|
8103
8156
|
}
|
|
8104
8157
|
);
|
|
8105
8158
|
};
|
|
8106
8159
|
return t && (u.route.ErrorBoundary || u.route.errorElement || d === 0) ? /* @__PURE__ */ R.createElement(
|
|
8107
|
-
|
|
8160
|
+
qi,
|
|
8108
8161
|
{
|
|
8109
8162
|
location: t.location,
|
|
8110
8163
|
revalidation: t.revalidation,
|
|
@@ -8121,34 +8174,34 @@ function Gi(e, n = [], t = null, r = null) {
|
|
|
8121
8174
|
function pn(e) {
|
|
8122
8175
|
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
8123
8176
|
}
|
|
8124
|
-
function Wi(e) {
|
|
8125
|
-
let n = R.useContext(Ie);
|
|
8126
|
-
return he(n, pn(e)), n;
|
|
8127
|
-
}
|
|
8128
8177
|
function Ui(e) {
|
|
8129
|
-
let n = R.useContext(
|
|
8130
|
-
return
|
|
8178
|
+
let n = R.useContext(Ie);
|
|
8179
|
+
return xe(n, pn(e)), n;
|
|
8131
8180
|
}
|
|
8132
8181
|
function Yi(e) {
|
|
8133
|
-
let n = R.useContext(
|
|
8134
|
-
return
|
|
8182
|
+
let n = R.useContext(xt);
|
|
8183
|
+
return xe(n, pn(e)), n;
|
|
8184
|
+
}
|
|
8185
|
+
function Zi(e) {
|
|
8186
|
+
let n = R.useContext(Pe);
|
|
8187
|
+
return xe(n, pn(e)), n;
|
|
8135
8188
|
}
|
|
8136
8189
|
function fn(e) {
|
|
8137
|
-
let n =
|
|
8138
|
-
return
|
|
8190
|
+
let n = Zi(e), t = n.matches[n.matches.length - 1];
|
|
8191
|
+
return xe(
|
|
8139
8192
|
t.route.id,
|
|
8140
8193
|
`${e} can only be used on routes that contain a unique "id"`
|
|
8141
8194
|
), t.route.id;
|
|
8142
8195
|
}
|
|
8143
|
-
function
|
|
8196
|
+
function Ki() {
|
|
8144
8197
|
return fn(
|
|
8145
8198
|
"useRouteId"
|
|
8146
8199
|
/* UseRouteId */
|
|
8147
8200
|
);
|
|
8148
8201
|
}
|
|
8149
|
-
function
|
|
8202
|
+
function Xi() {
|
|
8150
8203
|
var r;
|
|
8151
|
-
let e = R.useContext(dn), n =
|
|
8204
|
+
let e = R.useContext(dn), n = Yi(
|
|
8152
8205
|
"useRouteError"
|
|
8153
8206
|
/* UseRouteError */
|
|
8154
8207
|
), t = fn(
|
|
@@ -8157,8 +8210,8 @@ function Ki() {
|
|
|
8157
8210
|
);
|
|
8158
8211
|
return e !== void 0 ? e : (r = n.errors) == null ? void 0 : r[t];
|
|
8159
8212
|
}
|
|
8160
|
-
function
|
|
8161
|
-
let { router: e } =
|
|
8213
|
+
function Ji() {
|
|
8214
|
+
let { router: e } = Ui(
|
|
8162
8215
|
"useNavigate"
|
|
8163
8216
|
/* UseNavigateStable */
|
|
8164
8217
|
), n = fn(
|
|
@@ -8169,46 +8222,46 @@ function Xi() {
|
|
|
8169
8222
|
t.current = !0;
|
|
8170
8223
|
}), R.useCallback(
|
|
8171
8224
|
async (o, a = {}) => {
|
|
8172
|
-
|
|
8225
|
+
_e(t.current, Ar), t.current && (typeof o == "number" ? e.navigate(o) : await e.navigate(o, { fromRouteId: n, ...a }));
|
|
8173
8226
|
},
|
|
8174
8227
|
[e, n]
|
|
8175
8228
|
);
|
|
8176
8229
|
}
|
|
8177
8230
|
var Jn = {};
|
|
8178
8231
|
function Dr(e, n, t) {
|
|
8179
|
-
!n && !Jn[e] && (Jn[e] = !0,
|
|
8232
|
+
!n && !Jn[e] && (Jn[e] = !0, _e(!1, t));
|
|
8180
8233
|
}
|
|
8181
|
-
R.memo(
|
|
8182
|
-
function
|
|
8234
|
+
R.memo(Qi);
|
|
8235
|
+
function Qi({
|
|
8183
8236
|
routes: e,
|
|
8184
8237
|
future: n,
|
|
8185
8238
|
state: t
|
|
8186
8239
|
}) {
|
|
8187
|
-
return
|
|
8240
|
+
return Vi(e, void 0, t, n);
|
|
8188
8241
|
}
|
|
8189
8242
|
var ut = "get", dt = "application/x-www-form-urlencoded";
|
|
8190
8243
|
function bt(e) {
|
|
8191
8244
|
return e != null && typeof e.tagName == "string";
|
|
8192
8245
|
}
|
|
8193
|
-
function
|
|
8246
|
+
function el(e) {
|
|
8194
8247
|
return bt(e) && e.tagName.toLowerCase() === "button";
|
|
8195
8248
|
}
|
|
8196
|
-
function
|
|
8249
|
+
function tl(e) {
|
|
8197
8250
|
return bt(e) && e.tagName.toLowerCase() === "form";
|
|
8198
8251
|
}
|
|
8199
|
-
function
|
|
8252
|
+
function nl(e) {
|
|
8200
8253
|
return bt(e) && e.tagName.toLowerCase() === "input";
|
|
8201
8254
|
}
|
|
8202
|
-
function
|
|
8255
|
+
function rl(e) {
|
|
8203
8256
|
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
|
|
8204
8257
|
}
|
|
8205
|
-
function
|
|
8258
|
+
function ol(e, n) {
|
|
8206
8259
|
return e.button === 0 && // Ignore everything but left clicks
|
|
8207
8260
|
(!n || n === "_self") && // Let browser handle "target=_blank" etc.
|
|
8208
|
-
!
|
|
8261
|
+
!rl(e);
|
|
8209
8262
|
}
|
|
8210
8263
|
var ct = null;
|
|
8211
|
-
function
|
|
8264
|
+
function al() {
|
|
8212
8265
|
if (ct === null)
|
|
8213
8266
|
try {
|
|
8214
8267
|
new FormData(
|
|
@@ -8221,30 +8274,30 @@ function ol() {
|
|
|
8221
8274
|
}
|
|
8222
8275
|
return ct;
|
|
8223
8276
|
}
|
|
8224
|
-
var
|
|
8277
|
+
var il = /* @__PURE__ */ new Set([
|
|
8225
8278
|
"application/x-www-form-urlencoded",
|
|
8226
8279
|
"multipart/form-data",
|
|
8227
8280
|
"text/plain"
|
|
8228
8281
|
]);
|
|
8229
8282
|
function Bt(e) {
|
|
8230
|
-
return e != null && !
|
|
8283
|
+
return e != null && !il.has(e) ? (_e(
|
|
8231
8284
|
!1,
|
|
8232
8285
|
`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${dt}"`
|
|
8233
8286
|
), null) : e;
|
|
8234
8287
|
}
|
|
8235
|
-
function
|
|
8288
|
+
function ll(e, n) {
|
|
8236
8289
|
let t, r, o, a, i;
|
|
8237
|
-
if (
|
|
8290
|
+
if (tl(e)) {
|
|
8238
8291
|
let l = e.getAttribute("action");
|
|
8239
|
-
r = l ?
|
|
8240
|
-
} else if (
|
|
8292
|
+
r = l ? Ae(l, n) : null, t = e.getAttribute("method") || ut, o = Bt(e.getAttribute("enctype")) || dt, a = new FormData(e);
|
|
8293
|
+
} else if (el(e) || nl(e) && (e.type === "submit" || e.type === "image")) {
|
|
8241
8294
|
let l = e.form;
|
|
8242
8295
|
if (l == null)
|
|
8243
8296
|
throw new Error(
|
|
8244
8297
|
'Cannot submit a <button> or <input type="submit"> without a <form>'
|
|
8245
8298
|
);
|
|
8246
8299
|
let c = e.getAttribute("formaction") || l.getAttribute("action");
|
|
8247
|
-
if (r = c ?
|
|
8300
|
+
if (r = c ? Ae(c, n) : null, t = e.getAttribute("formmethod") || l.getAttribute("method") || ut, o = Bt(e.getAttribute("formenctype")) || Bt(l.getAttribute("enctype")) || dt, a = new FormData(l, e), !al()) {
|
|
8248
8301
|
let { name: u, type: d, value: g } = e;
|
|
8249
8302
|
if (d === "image") {
|
|
8250
8303
|
let p = u ? `${u}.` : "";
|
|
@@ -8265,16 +8318,16 @@ function mn(e, n) {
|
|
|
8265
8318
|
if (e === !1 || e === null || typeof e > "u")
|
|
8266
8319
|
throw new Error(n);
|
|
8267
8320
|
}
|
|
8268
|
-
function
|
|
8321
|
+
function sl(e, n, t) {
|
|
8269
8322
|
let r = typeof e == "string" ? new URL(
|
|
8270
8323
|
e,
|
|
8271
8324
|
// This can be called during the SSR flow via PrefetchPageLinksImpl so
|
|
8272
8325
|
// don't assume window is available
|
|
8273
8326
|
typeof window > "u" ? "server://singlefetch/" : window.location.origin
|
|
8274
8327
|
) : e;
|
|
8275
|
-
return r.pathname === "/" ? r.pathname = `_root.${t}` : n &&
|
|
8328
|
+
return r.pathname === "/" ? r.pathname = `_root.${t}` : n && Ae(r.pathname, n) === "/" ? r.pathname = `${n.replace(/\/$/, "")}/_root.${t}` : r.pathname = `${r.pathname.replace(/\/$/, "")}.${t}`, r;
|
|
8276
8329
|
}
|
|
8277
|
-
async function
|
|
8330
|
+
async function cl(e, n) {
|
|
8278
8331
|
if (e.id in n)
|
|
8279
8332
|
return n[e.id];
|
|
8280
8333
|
try {
|
|
@@ -8291,22 +8344,22 @@ async function sl(e, n) {
|
|
|
8291
8344
|
});
|
|
8292
8345
|
}
|
|
8293
8346
|
}
|
|
8294
|
-
function
|
|
8347
|
+
function ul(e) {
|
|
8295
8348
|
return e == null ? !1 : e.href == null ? e.rel === "preload" && typeof e.imageSrcSet == "string" && typeof e.imageSizes == "string" : typeof e.rel == "string" && typeof e.href == "string";
|
|
8296
8349
|
}
|
|
8297
|
-
async function
|
|
8350
|
+
async function dl(e, n, t) {
|
|
8298
8351
|
let r = await Promise.all(
|
|
8299
8352
|
e.map(async (o) => {
|
|
8300
8353
|
let a = n.routes[o.route.id];
|
|
8301
8354
|
if (a) {
|
|
8302
|
-
let i = await
|
|
8355
|
+
let i = await cl(a, t);
|
|
8303
8356
|
return i.links ? i.links() : [];
|
|
8304
8357
|
}
|
|
8305
8358
|
return [];
|
|
8306
8359
|
})
|
|
8307
8360
|
);
|
|
8308
|
-
return
|
|
8309
|
-
r.flat(1).filter(
|
|
8361
|
+
return gl(
|
|
8362
|
+
r.flat(1).filter(ul).filter((o) => o.rel === "stylesheet" || o.rel === "preload").map(
|
|
8310
8363
|
(o) => o.rel === "stylesheet" ? { ...o, rel: "prefetch", as: "style" } : { ...o, rel: "prefetch" }
|
|
8311
8364
|
)
|
|
8312
8365
|
);
|
|
@@ -8347,8 +8400,8 @@ function Qn(e, n, t, r, o, a) {
|
|
|
8347
8400
|
return !0;
|
|
8348
8401
|
}) : [];
|
|
8349
8402
|
}
|
|
8350
|
-
function
|
|
8351
|
-
return
|
|
8403
|
+
function pl(e, n, { includeHydrateFallback: t } = {}) {
|
|
8404
|
+
return fl(
|
|
8352
8405
|
e.map((r) => {
|
|
8353
8406
|
let o = n.routes[r.route.id];
|
|
8354
8407
|
if (!o) return [];
|
|
@@ -8357,19 +8410,19 @@ function dl(e, n, { includeHydrateFallback: t } = {}) {
|
|
|
8357
8410
|
}).flat(1)
|
|
8358
8411
|
);
|
|
8359
8412
|
}
|
|
8360
|
-
function
|
|
8413
|
+
function fl(e) {
|
|
8361
8414
|
return [...new Set(e)];
|
|
8362
8415
|
}
|
|
8363
|
-
function
|
|
8416
|
+
function ml(e) {
|
|
8364
8417
|
let n = {}, t = Object.keys(e).sort();
|
|
8365
8418
|
for (let r of t)
|
|
8366
8419
|
n[r] = e[r];
|
|
8367
8420
|
return n;
|
|
8368
8421
|
}
|
|
8369
|
-
function
|
|
8422
|
+
function gl(e, n) {
|
|
8370
8423
|
let t = /* @__PURE__ */ new Set();
|
|
8371
8424
|
return new Set(n), e.reduce((r, o) => {
|
|
8372
|
-
let a = JSON.stringify(
|
|
8425
|
+
let a = JSON.stringify(ml(o));
|
|
8373
8426
|
return t.has(a) || (t.add(a), r.push({ key: a, link: o })), r;
|
|
8374
8427
|
}, []);
|
|
8375
8428
|
}
|
|
@@ -8380,8 +8433,8 @@ function zr() {
|
|
|
8380
8433
|
"You must render this element inside a <DataRouterContext.Provider> element"
|
|
8381
8434
|
), e;
|
|
8382
8435
|
}
|
|
8383
|
-
function
|
|
8384
|
-
let e = R.useContext(
|
|
8436
|
+
function vl() {
|
|
8437
|
+
let e = R.useContext(xt);
|
|
8385
8438
|
return mn(
|
|
8386
8439
|
e,
|
|
8387
8440
|
"You must render this element inside a <DataRouterStateContext.Provider> element"
|
|
@@ -8396,12 +8449,12 @@ function Tr() {
|
|
|
8396
8449
|
"You must render this element inside a <HydratedRouter> element"
|
|
8397
8450
|
), e;
|
|
8398
8451
|
}
|
|
8399
|
-
function
|
|
8452
|
+
function xl(e, n) {
|
|
8400
8453
|
let t = R.useContext(gn), [r, o] = R.useState(!1), [a, i] = R.useState(!1), { onFocus: l, onBlur: c, onMouseEnter: u, onMouseLeave: d, onTouchStart: g } = n, p = R.useRef(null);
|
|
8401
8454
|
R.useEffect(() => {
|
|
8402
8455
|
if (e === "render" && i(!0), e === "viewport") {
|
|
8403
|
-
let m = (
|
|
8404
|
-
|
|
8456
|
+
let m = (h) => {
|
|
8457
|
+
h.forEach((k) => {
|
|
8405
8458
|
i(k.isIntersecting);
|
|
8406
8459
|
});
|
|
8407
8460
|
}, b = new IntersectionObserver(m, { threshold: 0.5 });
|
|
@@ -8446,13 +8499,13 @@ function hl({ page: e, ...n }) {
|
|
|
8446
8499
|
() => $r(t.routes, e, t.basename),
|
|
8447
8500
|
[t.routes, e, t.basename]
|
|
8448
8501
|
);
|
|
8449
|
-
return r ? /* @__PURE__ */ R.createElement(
|
|
8502
|
+
return r ? /* @__PURE__ */ R.createElement(wl, { page: e, matches: r, ...n }) : null;
|
|
8450
8503
|
}
|
|
8451
|
-
function
|
|
8504
|
+
function bl(e) {
|
|
8452
8505
|
let { manifest: n, routeModules: t } = Tr(), [r, o] = R.useState([]);
|
|
8453
8506
|
return R.useEffect(() => {
|
|
8454
8507
|
let a = !1;
|
|
8455
|
-
return
|
|
8508
|
+
return dl(e, n, t).then(
|
|
8456
8509
|
(i) => {
|
|
8457
8510
|
a || o(i);
|
|
8458
8511
|
}
|
|
@@ -8461,12 +8514,12 @@ function xl(e) {
|
|
|
8461
8514
|
};
|
|
8462
8515
|
}, [e, n, t]), r;
|
|
8463
8516
|
}
|
|
8464
|
-
function
|
|
8517
|
+
function wl({
|
|
8465
8518
|
page: e,
|
|
8466
8519
|
matches: n,
|
|
8467
8520
|
...t
|
|
8468
8521
|
}) {
|
|
8469
|
-
let r =
|
|
8522
|
+
let r = ze(), { manifest: o, routeModules: a } = Tr(), { basename: i } = zr(), { loaderData: l, matches: c } = vl(), u = R.useMemo(
|
|
8470
8523
|
() => Qn(
|
|
8471
8524
|
e,
|
|
8472
8525
|
n,
|
|
@@ -8490,16 +8543,16 @@ function bl({
|
|
|
8490
8543
|
if (e === r.pathname + r.search + r.hash)
|
|
8491
8544
|
return [];
|
|
8492
8545
|
let v = /* @__PURE__ */ new Set(), m = !1;
|
|
8493
|
-
if (n.forEach((
|
|
8546
|
+
if (n.forEach((h) => {
|
|
8494
8547
|
var w;
|
|
8495
|
-
let k = o.routes[
|
|
8496
|
-
!k || !k.hasLoader || (!u.some(($) => $.route.id ===
|
|
8548
|
+
let k = o.routes[h.route.id];
|
|
8549
|
+
!k || !k.hasLoader || (!u.some(($) => $.route.id === h.route.id) && h.route.id in l && ((w = a[h.route.id]) != null && w.shouldRevalidate) || k.hasClientLoader ? m = !0 : v.add(h.route.id));
|
|
8497
8550
|
}), v.size === 0)
|
|
8498
8551
|
return [];
|
|
8499
|
-
let b =
|
|
8552
|
+
let b = sl(e, i, "data");
|
|
8500
8553
|
return m && v.size > 0 && b.searchParams.set(
|
|
8501
8554
|
"_routes",
|
|
8502
|
-
n.filter((
|
|
8555
|
+
n.filter((h) => v.has(h.route.id)).map((h) => h.route.id).join(",")
|
|
8503
8556
|
), [b.pathname + b.search];
|
|
8504
8557
|
}, [
|
|
8505
8558
|
i,
|
|
@@ -8511,16 +8564,16 @@ function bl({
|
|
|
8511
8564
|
e,
|
|
8512
8565
|
a
|
|
8513
8566
|
]), p = R.useMemo(
|
|
8514
|
-
() =>
|
|
8567
|
+
() => pl(d, o),
|
|
8515
8568
|
[d, o]
|
|
8516
|
-
), f =
|
|
8569
|
+
), f = bl(d);
|
|
8517
8570
|
return /* @__PURE__ */ R.createElement(R.Fragment, null, g.map((v) => /* @__PURE__ */ R.createElement("link", { key: v, rel: "prefetch", as: "fetch", href: v, ...t })), p.map((v) => /* @__PURE__ */ R.createElement("link", { key: v, rel: "modulepreload", href: v, ...t })), f.map(({ key: v, link: m }) => (
|
|
8518
8571
|
// these don't spread `linkProps` because they are full link descriptors
|
|
8519
8572
|
// already with their own props
|
|
8520
8573
|
/* @__PURE__ */ R.createElement("link", { key: v, ...m })
|
|
8521
8574
|
)));
|
|
8522
8575
|
}
|
|
8523
|
-
function
|
|
8576
|
+
function yl(...e) {
|
|
8524
8577
|
return (n) => {
|
|
8525
8578
|
e.forEach((t) => {
|
|
8526
8579
|
typeof t == "function" ? t(n) : t != null && (t.current = n);
|
|
@@ -8548,21 +8601,21 @@ var Ir = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, vn = R.forwardRef(
|
|
|
8548
8601
|
viewTransition: g,
|
|
8549
8602
|
...p
|
|
8550
8603
|
}, f) {
|
|
8551
|
-
let { basename: v } = R.useContext(
|
|
8604
|
+
let { basename: v } = R.useContext(Ee), m = typeof u == "string" && Ir.test(u), b, h = !1;
|
|
8552
8605
|
if (typeof u == "string" && m && (b = u, Or))
|
|
8553
8606
|
try {
|
|
8554
|
-
let F = new URL(window.location.href), Z = u.startsWith("//") ? new URL(F.protocol + u) : new URL(u), ae =
|
|
8555
|
-
Z.origin === F.origin && ae != null ? u = ae + Z.search + Z.hash :
|
|
8607
|
+
let F = new URL(window.location.href), Z = u.startsWith("//") ? new URL(F.protocol + u) : new URL(u), ae = Ae(Z.pathname, v);
|
|
8608
|
+
Z.origin === F.origin && ae != null ? u = ae + Z.search + Z.hash : h = !0;
|
|
8556
8609
|
} catch {
|
|
8557
|
-
|
|
8610
|
+
_e(
|
|
8558
8611
|
!1,
|
|
8559
8612
|
`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
|
|
8560
8613
|
);
|
|
8561
8614
|
}
|
|
8562
|
-
let k =
|
|
8615
|
+
let k = Ti(u, { relative: o }), [w, $, y] = xl(
|
|
8563
8616
|
r,
|
|
8564
8617
|
p
|
|
8565
|
-
), O =
|
|
8618
|
+
), O = jl(u, {
|
|
8566
8619
|
replace: i,
|
|
8567
8620
|
state: l,
|
|
8568
8621
|
target: c,
|
|
@@ -8581,8 +8634,8 @@ var Ir = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, vn = R.forwardRef(
|
|
|
8581
8634
|
...p,
|
|
8582
8635
|
...y,
|
|
8583
8636
|
href: b || k,
|
|
8584
|
-
onClick:
|
|
8585
|
-
ref:
|
|
8637
|
+
onClick: h || a ? n : D,
|
|
8638
|
+
ref: yl(f, $),
|
|
8586
8639
|
target: c,
|
|
8587
8640
|
"data-discover": !m && t === "render" ? "true" : void 0
|
|
8588
8641
|
}
|
|
@@ -8604,12 +8657,12 @@ var Vr = R.forwardRef(
|
|
|
8604
8657
|
children: c,
|
|
8605
8658
|
...u
|
|
8606
8659
|
}, d) {
|
|
8607
|
-
let g = Ke(i, { relative: u.relative }), p =
|
|
8660
|
+
let g = Ke(i, { relative: u.relative }), p = ze(), f = R.useContext(xt), { navigator: v, basename: m } = R.useContext(Ee), b = f != null && // Conditional usage is OK here because the usage of a data router is static
|
|
8608
8661
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
8609
|
-
|
|
8610
|
-
t || (k = k.toLowerCase(), w = w ? w.toLowerCase() : null,
|
|
8611
|
-
const $ =
|
|
8612
|
-
let y = k ===
|
|
8662
|
+
El(g) && l === !0, h = v.encodeLocation ? v.encodeLocation(g).pathname : g.pathname, k = p.pathname, w = f && f.navigation && f.navigation.location ? f.navigation.location.pathname : null;
|
|
8663
|
+
t || (k = k.toLowerCase(), w = w ? w.toLowerCase() : null, h = h.toLowerCase()), w && m && (w = Ae(w, m) || w);
|
|
8664
|
+
const $ = h !== "/" && h.endsWith("/") ? h.length - 1 : h.length;
|
|
8665
|
+
let y = k === h || !o && k.startsWith(h) && k.charAt($) === "/", O = w != null && (w === h || !o && w.startsWith(h) && w.charAt(h.length) === "/"), D = {
|
|
8613
8666
|
isActive: y,
|
|
8614
8667
|
isPending: O,
|
|
8615
8668
|
isTransitioning: b
|
|
@@ -8637,7 +8690,7 @@ var Vr = R.forwardRef(
|
|
|
8637
8690
|
}
|
|
8638
8691
|
);
|
|
8639
8692
|
Vr.displayName = "NavLink";
|
|
8640
|
-
var
|
|
8693
|
+
var Cl = R.forwardRef(
|
|
8641
8694
|
({
|
|
8642
8695
|
discover: e = "render",
|
|
8643
8696
|
fetcherKey: n,
|
|
@@ -8653,7 +8706,7 @@ var yl = R.forwardRef(
|
|
|
8653
8706
|
viewTransition: g,
|
|
8654
8707
|
...p
|
|
8655
8708
|
}, f) => {
|
|
8656
|
-
let v =
|
|
8709
|
+
let v = $l(), m = _l(l, { relative: u }), b = i.toLowerCase() === "get" ? "get" : "post", h = typeof l == "string" && Ir.test(l), k = (w) => {
|
|
8657
8710
|
if (c && c(w), w.defaultPrevented) return;
|
|
8658
8711
|
w.preventDefault();
|
|
8659
8712
|
let $ = w.nativeEvent.submitter, y = ($ == null ? void 0 : $.getAttribute("formmethod")) || i;
|
|
@@ -8676,20 +8729,20 @@ var yl = R.forwardRef(
|
|
|
8676
8729
|
action: m,
|
|
8677
8730
|
onSubmit: r ? c : k,
|
|
8678
8731
|
...p,
|
|
8679
|
-
"data-discover": !
|
|
8732
|
+
"data-discover": !h && e === "render" ? "true" : void 0
|
|
8680
8733
|
}
|
|
8681
8734
|
);
|
|
8682
8735
|
}
|
|
8683
8736
|
);
|
|
8684
|
-
|
|
8685
|
-
function
|
|
8737
|
+
Cl.displayName = "Form";
|
|
8738
|
+
function Sl(e) {
|
|
8686
8739
|
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
8687
8740
|
}
|
|
8688
8741
|
function Hr(e) {
|
|
8689
8742
|
let n = R.useContext(Ie);
|
|
8690
|
-
return
|
|
8743
|
+
return xe(n, Sl(e)), n;
|
|
8691
8744
|
}
|
|
8692
|
-
function
|
|
8745
|
+
function jl(e, {
|
|
8693
8746
|
target: n,
|
|
8694
8747
|
replace: t,
|
|
8695
8748
|
state: r,
|
|
@@ -8697,10 +8750,10 @@ function Sl(e, {
|
|
|
8697
8750
|
relative: a,
|
|
8698
8751
|
viewTransition: i
|
|
8699
8752
|
} = {}) {
|
|
8700
|
-
let l =
|
|
8753
|
+
let l = Oi(), c = ze(), u = Ke(e, { relative: a });
|
|
8701
8754
|
return R.useCallback(
|
|
8702
8755
|
(d) => {
|
|
8703
|
-
if (
|
|
8756
|
+
if (ol(d, n)) {
|
|
8704
8757
|
d.preventDefault();
|
|
8705
8758
|
let g = t !== void 0 ? t : nn(c) === nn(u);
|
|
8706
8759
|
l(e, {
|
|
@@ -8726,20 +8779,20 @@ function Sl(e, {
|
|
|
8726
8779
|
]
|
|
8727
8780
|
);
|
|
8728
8781
|
}
|
|
8729
|
-
var
|
|
8730
|
-
function
|
|
8782
|
+
var Rl = 0, kl = () => `__${String(++Rl)}__`;
|
|
8783
|
+
function $l() {
|
|
8731
8784
|
let { router: e } = Hr(
|
|
8732
8785
|
"useSubmit"
|
|
8733
8786
|
/* UseSubmit */
|
|
8734
|
-
), { basename: n } = R.useContext(
|
|
8787
|
+
), { basename: n } = R.useContext(Ee), t = Ki();
|
|
8735
8788
|
return R.useCallback(
|
|
8736
8789
|
async (r, o = {}) => {
|
|
8737
|
-
let { action: a, method: i, encType: l, formData: c, body: u } =
|
|
8790
|
+
let { action: a, method: i, encType: l, formData: c, body: u } = ll(
|
|
8738
8791
|
r,
|
|
8739
8792
|
n
|
|
8740
8793
|
);
|
|
8741
8794
|
if (o.navigate === !1) {
|
|
8742
|
-
let d = o.fetcherKey ||
|
|
8795
|
+
let d = o.fetcherKey || kl();
|
|
8743
8796
|
await e.fetch(d, t, o.action || a, {
|
|
8744
8797
|
preventScrollReset: o.preventScrollReset,
|
|
8745
8798
|
formData: c,
|
|
@@ -8765,10 +8818,10 @@ function kl() {
|
|
|
8765
8818
|
[e, n, t]
|
|
8766
8819
|
);
|
|
8767
8820
|
}
|
|
8768
|
-
function
|
|
8769
|
-
let { basename: t } = R.useContext(
|
|
8770
|
-
|
|
8771
|
-
let [o] = r.matches.slice(-1), a = { ...Ke(e || ".", { relative: n }) }, i =
|
|
8821
|
+
function _l(e, { relative: n } = {}) {
|
|
8822
|
+
let { basename: t } = R.useContext(Ee), r = R.useContext(Pe);
|
|
8823
|
+
xe(r, "useFormAction must be used inside a RouteContext");
|
|
8824
|
+
let [o] = r.matches.slice(-1), a = { ...Ke(e || ".", { relative: n }) }, i = ze();
|
|
8772
8825
|
if (e == null) {
|
|
8773
8826
|
a.search = i.search;
|
|
8774
8827
|
let l = new URLSearchParams(a.search), c = l.getAll("index");
|
|
@@ -8778,11 +8831,11 @@ function $l(e, { relative: n } = {}) {
|
|
|
8778
8831
|
a.search = d ? `?${d}` : "";
|
|
8779
8832
|
}
|
|
8780
8833
|
}
|
|
8781
|
-
return (!e || e === ".") && o.route.index && (a.search = a.search ? a.search.replace(/^\?/, "?index&") : "?index"), t !== "/" && (a.pathname = a.pathname === "/" ? t :
|
|
8834
|
+
return (!e || e === ".") && o.route.index && (a.search = a.search ? a.search.replace(/^\?/, "?index&") : "?index"), t !== "/" && (a.pathname = a.pathname === "/" ? t : $e([t, a.pathname])), nn(a);
|
|
8782
8835
|
}
|
|
8783
|
-
function
|
|
8836
|
+
function El(e, { relative: n } = {}) {
|
|
8784
8837
|
let t = R.useContext(Fr);
|
|
8785
|
-
|
|
8838
|
+
xe(
|
|
8786
8839
|
t != null,
|
|
8787
8840
|
"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"
|
|
8788
8841
|
);
|
|
@@ -8792,10 +8845,10 @@ function _l(e, { relative: n } = {}) {
|
|
|
8792
8845
|
), o = Ke(e, { relative: n });
|
|
8793
8846
|
if (!t.isTransitioning)
|
|
8794
8847
|
return !1;
|
|
8795
|
-
let a =
|
|
8848
|
+
let a = Ae(t.currentLocation.pathname, r) || t.currentLocation.pathname, i = Ae(t.nextLocation.pathname, r) || t.nextLocation.pathname;
|
|
8796
8849
|
return gt(o.pathname, i) != null || gt(o.pathname, a) != null;
|
|
8797
8850
|
}
|
|
8798
|
-
const
|
|
8851
|
+
const cs = ({
|
|
8799
8852
|
variant: e = "fixed",
|
|
8800
8853
|
activeTab: n,
|
|
8801
8854
|
navItems: t,
|
|
@@ -8821,7 +8874,7 @@ const ss = ({
|
|
|
8821
8874
|
c.label
|
|
8822
8875
|
);
|
|
8823
8876
|
}) });
|
|
8824
|
-
},
|
|
8877
|
+
}, us = ({ items: e, separator: n = "/", className: t = "" }) => /* @__PURE__ */ s.jsx("nav", { className: `text-sm text-color-gray-600 ${t}`, "aria-label": "Breadcrumb", children: /* @__PURE__ */ s.jsx("ol", { className: "flex items-center space-x-1", children: e.map((r, o) => /* @__PURE__ */ s.jsxs("li", { className: "flex items-center", children: [
|
|
8825
8878
|
r.href ? /* @__PURE__ */ s.jsx(
|
|
8826
8879
|
"a",
|
|
8827
8880
|
{
|
|
@@ -8831,7 +8884,7 @@ const ss = ({
|
|
|
8831
8884
|
}
|
|
8832
8885
|
) : /* @__PURE__ */ s.jsx("span", { className: "text-color-gray-500 font-medium", children: r.label }),
|
|
8833
8886
|
o < e.length - 1 && /* @__PURE__ */ s.jsx("span", { className: "mx-2 text-color-gray-400", children: n })
|
|
8834
|
-
] }, o)) }) }), er = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
|
|
8887
|
+
] }, o)) }) }), er = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], Pl = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], ds = ({
|
|
8835
8888
|
mode: e = "single",
|
|
8836
8889
|
type: n = "inline",
|
|
8837
8890
|
showTime: t = !1,
|
|
@@ -8844,7 +8897,7 @@ const ss = ({
|
|
|
8844
8897
|
disableAfter: u,
|
|
8845
8898
|
selectedDate: d
|
|
8846
8899
|
}) => {
|
|
8847
|
-
const [g, p] = K(!1), [f, v] = K(null), [m, b] = K(/* @__PURE__ */ new Date()), [
|
|
8900
|
+
const [g, p] = K(!1), [f, v] = K(null), [m, b] = K(/* @__PURE__ */ new Date()), [h, k] = K(
|
|
8848
8901
|
d ? new Date(d) : null
|
|
8849
8902
|
), [w, $] = K(null), [y, O] = K(null), [D, V] = K(null), [F, Z] = K({ hour: 12, minute: 0, ampm: "AM" }), ae = se(null), [ue, Q] = K(
|
|
8850
8903
|
d ? new Date(d) : null
|
|
@@ -8856,16 +8909,16 @@ const ss = ({
|
|
|
8856
8909
|
S.stopPropagation(), v(S.currentTarget), p(!0);
|
|
8857
8910
|
}, X = () => {
|
|
8858
8911
|
p(!1);
|
|
8859
|
-
},
|
|
8860
|
-
n === "inline" && ae.current && !ae.current.contains(S.target) && (e === "single" ?
|
|
8912
|
+
}, x = (S) => !!(c && S.getTime() < c || u && S.getTime() > u), C = (S) => {
|
|
8913
|
+
n === "inline" && ae.current && !ae.current.contains(S.target) && (e === "single" ? h || k(null) : e === "range" && (!w || !y) && ($(null), O(null)), p(!1));
|
|
8861
8914
|
};
|
|
8862
8915
|
ce(() => (g ? document.addEventListener("mousedown", C) : document.removeEventListener("mousedown", C), () => {
|
|
8863
8916
|
document.removeEventListener("mousedown", C);
|
|
8864
8917
|
}), [g]);
|
|
8865
8918
|
const L = (S) => {
|
|
8866
|
-
!S ||
|
|
8919
|
+
!S || x(S) || (e === "single" ? k(S) : e === "range" && (!w || w && y ? ($(S), O(null)) : S >= w ? O(S) : $(S)));
|
|
8867
8920
|
}, M = (S) => {
|
|
8868
|
-
if (!S ||
|
|
8921
|
+
if (!S || x(S)) {
|
|
8869
8922
|
V(null);
|
|
8870
8923
|
return;
|
|
8871
8924
|
}
|
|
@@ -8874,7 +8927,7 @@ const ss = ({
|
|
|
8874
8927
|
V(null);
|
|
8875
8928
|
}, I = () => {
|
|
8876
8929
|
if (p(!1), e === "single") {
|
|
8877
|
-
const S = r ? /* @__PURE__ */ new Date() :
|
|
8930
|
+
const S = r ? /* @__PURE__ */ new Date() : h, j = S ? new Date(
|
|
8878
8931
|
S.getFullYear(),
|
|
8879
8932
|
S.getMonth(),
|
|
8880
8933
|
S.getDate(),
|
|
@@ -8896,7 +8949,7 @@ const ss = ({
|
|
|
8896
8949
|
}, E = (S) => {
|
|
8897
8950
|
if (!S) return !1;
|
|
8898
8951
|
if (e === "single")
|
|
8899
|
-
return (
|
|
8952
|
+
return (h == null ? void 0 : h.toDateString()) === S.toDateString();
|
|
8900
8953
|
if (e === "range") {
|
|
8901
8954
|
if (w && !y && D) {
|
|
8902
8955
|
const j = w < D ? w : D, _ = w < D ? D : w;
|
|
@@ -8957,7 +9010,7 @@ const ss = ({
|
|
|
8957
9010
|
!r && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
8958
9011
|
/* @__PURE__ */ s.jsxs("div", { className: "flex items-center justify-between mb-3", children: [
|
|
8959
9012
|
/* @__PURE__ */ s.jsx(
|
|
8960
|
-
|
|
9013
|
+
Re,
|
|
8961
9014
|
{
|
|
8962
9015
|
variant: "transparent",
|
|
8963
9016
|
size: "small",
|
|
@@ -8988,7 +9041,7 @@ const ss = ({
|
|
|
8988
9041
|
)
|
|
8989
9042
|
] }),
|
|
8990
9043
|
/* @__PURE__ */ s.jsx(
|
|
8991
|
-
|
|
9044
|
+
Re,
|
|
8992
9045
|
{
|
|
8993
9046
|
variant: "transparent",
|
|
8994
9047
|
size: "small",
|
|
@@ -9000,14 +9053,14 @@ const ss = ({
|
|
|
9000
9053
|
)
|
|
9001
9054
|
] }),
|
|
9002
9055
|
/* @__PURE__ */ s.jsxs("div", { className: "grid grid-columns-7 gap-1 text-center text-sm mb-2", children: [
|
|
9003
|
-
|
|
9056
|
+
Pl.map((S) => /* @__PURE__ */ s.jsx("div", { className: "font-semibold", children: S }, S)),
|
|
9004
9057
|
z().map((S, j) => /* @__PURE__ */ s.jsx(
|
|
9005
9058
|
"div",
|
|
9006
9059
|
{
|
|
9007
9060
|
className: `size-8 flex justify-center items-center text-sm rounded-full transition-all
|
|
9008
9061
|
${S ? "hover:bg-color-blue-100 cursor-pointer" : ""}
|
|
9009
9062
|
${S && E(S) ? "bg-color-blue-500 hover:bg-color-blue-500 text-color-white" : ""}
|
|
9010
|
-
${S &&
|
|
9063
|
+
${S && x(S) ? "bg-color-gray-100 text-color-gray-400 !cursor-not-allowed hover:bg-color-gray-100" : ""}`,
|
|
9011
9064
|
onClick: () => S && L(S),
|
|
9012
9065
|
onMouseEnter: () => S && M(S),
|
|
9013
9066
|
onMouseLeave: N,
|
|
@@ -9054,9 +9107,9 @@ const ss = ({
|
|
|
9054
9107
|
]
|
|
9055
9108
|
}
|
|
9056
9109
|
),
|
|
9057
|
-
n === "inline" ? /* @__PURE__ */ s.jsx(s.Fragment, { children: g && Ze(q, document.body) }) : /* @__PURE__ */ s.jsx(
|
|
9110
|
+
n === "inline" ? /* @__PURE__ */ s.jsx(s.Fragment, { children: g && Ze(q, document.body) }) : /* @__PURE__ */ s.jsx(ci, { open: g, title: r ? "Select Time" : i, onClose: X, children: /* @__PURE__ */ s.jsx("div", { className: "w-72", children: q }) })
|
|
9058
9111
|
] });
|
|
9059
|
-
},
|
|
9112
|
+
}, ps = ({
|
|
9060
9113
|
tabs: e,
|
|
9061
9114
|
activeKey: n,
|
|
9062
9115
|
onChange: t,
|
|
@@ -9103,10 +9156,10 @@ const ss = ({
|
|
|
9103
9156
|
]
|
|
9104
9157
|
}
|
|
9105
9158
|
);
|
|
9106
|
-
},
|
|
9159
|
+
}, fs = ({
|
|
9107
9160
|
stats: e = [],
|
|
9108
9161
|
className: n = ""
|
|
9109
|
-
}) => /* @__PURE__ */ s.jsx(
|
|
9162
|
+
}) => /* @__PURE__ */ s.jsx(ii, { className: `w-full ${n}`, children: /* @__PURE__ */ s.jsx("div", { className: "grid grid-columns-1 sm:grid-columns-1 md:grid-columns-2 lg:grid-columns-4 gap-4 justify-items-center", children: e.map((t, r) => /* @__PURE__ */ s.jsxs(
|
|
9110
9163
|
"div",
|
|
9111
9164
|
{
|
|
9112
9165
|
className: `flex items-center justify-center gap-4 lg:not-last:border-r md:not-last:border-r md:nth-2:border-r-0 md:not-last:border-b-0 not-last:border-b border-color-gray-200
|
|
@@ -9127,7 +9180,7 @@ const ss = ({
|
|
|
9127
9180
|
},
|
|
9128
9181
|
r
|
|
9129
9182
|
)) }) });
|
|
9130
|
-
function
|
|
9183
|
+
function ms({
|
|
9131
9184
|
items: e = [],
|
|
9132
9185
|
logoJSX: n,
|
|
9133
9186
|
position: t,
|
|
@@ -9141,7 +9194,7 @@ function fs({
|
|
|
9141
9194
|
c(d), d.onClick && d.onClick(), i && i(d);
|
|
9142
9195
|
};
|
|
9143
9196
|
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsx(
|
|
9144
|
-
|
|
9197
|
+
di,
|
|
9145
9198
|
{
|
|
9146
9199
|
open: o,
|
|
9147
9200
|
onClose: a,
|
|
@@ -9189,54 +9242,55 @@ function fs({
|
|
|
9189
9242
|
) });
|
|
9190
9243
|
}
|
|
9191
9244
|
export {
|
|
9192
|
-
|
|
9193
|
-
|
|
9194
|
-
|
|
9195
|
-
|
|
9196
|
-
|
|
9197
|
-
ss as
|
|
9198
|
-
cs as
|
|
9245
|
+
is as Accordion,
|
|
9246
|
+
as as ActionMenu,
|
|
9247
|
+
ls as Alert,
|
|
9248
|
+
xr as Avatar,
|
|
9249
|
+
Gl as Backdrop,
|
|
9250
|
+
ss as Badge,
|
|
9251
|
+
cs as BottomNavigation,
|
|
9252
|
+
us as Breadcrumbs,
|
|
9199
9253
|
Gt as Button,
|
|
9200
9254
|
ve as COLOR_MAP,
|
|
9201
|
-
|
|
9202
|
-
|
|
9203
|
-
|
|
9204
|
-
|
|
9205
|
-
|
|
9206
|
-
|
|
9207
|
-
|
|
9208
|
-
|
|
9209
|
-
|
|
9210
|
-
|
|
9211
|
-
|
|
9212
|
-
|
|
9213
|
-
|
|
9214
|
-
|
|
9215
|
-
|
|
9255
|
+
ii as Card,
|
|
9256
|
+
Nl as CardWrapper,
|
|
9257
|
+
Xl as Carousel,
|
|
9258
|
+
Dl as Checkbox,
|
|
9259
|
+
fs as DashboardStatBoxes,
|
|
9260
|
+
ds as DatePicker,
|
|
9261
|
+
ci as Dialog,
|
|
9262
|
+
ts as Divider,
|
|
9263
|
+
di as Drawer,
|
|
9264
|
+
zl as Dropdown,
|
|
9265
|
+
Tl as DropzoneUploader,
|
|
9266
|
+
Jl as EmptyState,
|
|
9267
|
+
Re as IconButton,
|
|
9268
|
+
Bl as List,
|
|
9269
|
+
ql as ListItem,
|
|
9216
9270
|
oa as Menu,
|
|
9217
9271
|
sa as OtpInput,
|
|
9218
9272
|
ni as Pagination,
|
|
9219
9273
|
da as PasswordInput,
|
|
9220
|
-
|
|
9221
|
-
|
|
9222
|
-
|
|
9274
|
+
Ol as Pill,
|
|
9275
|
+
Il as ProfileImageShowcase,
|
|
9276
|
+
oi as Progress,
|
|
9223
9277
|
qt as RANGE_COLOR_MAP,
|
|
9224
|
-
|
|
9225
|
-
|
|
9226
|
-
|
|
9227
|
-
|
|
9228
|
-
|
|
9229
|
-
|
|
9230
|
-
|
|
9231
|
-
|
|
9232
|
-
|
|
9233
|
-
|
|
9234
|
-
|
|
9278
|
+
ns as RadioGroup,
|
|
9279
|
+
Kl as Rating,
|
|
9280
|
+
rs as Select,
|
|
9281
|
+
ms as Sidebar,
|
|
9282
|
+
Wl as Skeleton,
|
|
9283
|
+
Yl as Slider,
|
|
9284
|
+
Zl as Snackbar,
|
|
9285
|
+
Vl as Stepper,
|
|
9286
|
+
Hl as Table,
|
|
9287
|
+
ps as Tabs,
|
|
9288
|
+
Ul as TextArea,
|
|
9235
9289
|
vr as TextInput,
|
|
9236
|
-
|
|
9237
|
-
|
|
9238
|
-
|
|
9290
|
+
es as ToggleButton,
|
|
9291
|
+
Ql as ToggleSwitch,
|
|
9292
|
+
os as Tooltip,
|
|
9239
9293
|
ti as Typography,
|
|
9240
|
-
|
|
9241
|
-
|
|
9294
|
+
Fl as extendColorMap,
|
|
9295
|
+
Al as extendRangeColorMap
|
|
9242
9296
|
};
|