@unizap/uniui 1.0.24 → 1.0.26
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/Typography/Typography.types.d.ts +2 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/uniui.css +1 -1
- package/dist/uniui.js +605 -569
- package/dist/uniui.umd.cjs +51 -51
- package/dist/utils/ColorMap.d.ts +1 -0
- package/package.json +94 -94
package/dist/uniui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as R from "react";
|
|
2
|
-
import
|
|
2
|
+
import je, { useRef as se, useState as K, useEffect as ce, useMemo as Te, 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 = je, 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
|
+
}, Ll = (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
|
+
}, Fl = (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
|
+
}, Al = ({
|
|
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
|
+
), Nl = ({
|
|
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
|
+
), Dl = ({
|
|
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;
|
|
@@ -2694,7 +2715,7 @@ const uo = [
|
|
|
2694
2715
|
];
|
|
2695
2716
|
function po(e) {
|
|
2696
2717
|
return Ne(this, void 0, void 0, function* () {
|
|
2697
|
-
return pt(e) && fo(e.dataTransfer) ?
|
|
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) {
|
|
@@ -2714,13 +2735,13 @@ function vo(e) {
|
|
|
2714
2735
|
return (yield Promise.all(e.map((t) => t.getFile()))).map((t) => Oe(t));
|
|
2715
2736
|
});
|
|
2716
2737
|
}
|
|
2717
|
-
function
|
|
2738
|
+
function xo(e, n) {
|
|
2718
2739
|
return Ne(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();
|
|
@@ -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__ */ je.createElement(Yr, null, t(le(le({}, i), {}, {
|
|
3133
3154
|
open: a
|
|
3134
3155
|
})));
|
|
3135
3156
|
});
|
|
@@ -3329,7 +3350,7 @@ 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 = Te(function() {
|
|
3333
3354
|
return Ho(t);
|
|
3334
3355
|
}, [t]), ae = Te(function() {
|
|
3335
3356
|
return Vo(t);
|
|
@@ -3337,7 +3358,7 @@ function gr() {
|
|
|
3337
3358
|
return typeof b == "function" ? b : Vn;
|
|
3338
3359
|
}, [b]), Q = Te(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;
|
|
@@ -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({
|
|
@@ -3531,7 +3552,7 @@ function gr() {
|
|
|
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 zl = ({
|
|
3581
3602
|
onFilesAccepted: e,
|
|
3582
3603
|
onError: n,
|
|
3583
3604
|
accept: t = {
|
|
@@ -3600,16 +3621,16 @@ const Tl = ({
|
|
|
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
|
+
}, Tl = ({
|
|
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
|
+
}, Ol = ({
|
|
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
|
+
] }), Il = ({ 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(je.Fragment, { children: [
|
|
4057
4078
|
/* @__PURE__ */ s.jsxs(
|
|
4058
4079
|
"div",
|
|
4059
4080
|
{
|
|
@@ -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,12 +4399,12 @@ 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) => Ce(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));
|
|
@@ -4427,8 +4448,8 @@ an.resolveFilterValue = (e) => {
|
|
|
4427
4448
|
return [a, i];
|
|
4428
4449
|
};
|
|
4429
4450
|
an.autoRemove = (e) => Ce(e) || Ce(e[0]) && Ce(e[1]);
|
|
4430
|
-
const
|
|
4431
|
-
includesString:
|
|
4451
|
+
const ke = {
|
|
4452
|
+
includesString: hr,
|
|
4432
4453
|
includesStringSensitive: br,
|
|
4433
4454
|
equalsString: wr,
|
|
4434
4455
|
arrIncludes: yr,
|
|
@@ -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;
|
|
@@ -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) => {
|
|
@@ -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,
|
|
@@ -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));
|
|
@@ -5755,21 +5776,14 @@ const ei = {
|
|
|
5755
5776
|
body2: "text-sm",
|
|
5756
5777
|
caption: "text-xs",
|
|
5757
5778
|
overline: "text-xs uppercase tracking-wide"
|
|
5758
|
-
}, ti = {
|
|
5759
|
-
default: "text-color-gray-800",
|
|
5760
|
-
primary: "text-color-primary",
|
|
5761
|
-
secondary: "text-color-secondary",
|
|
5762
|
-
accent: "text-color-accent",
|
|
5763
|
-
muted: "text-color-gray-400",
|
|
5764
|
-
error: "text-color-red-500",
|
|
5765
|
-
success: "text-color-green-500"
|
|
5766
|
-
}, ni = ({
|
|
5779
|
+
}, ti = ({
|
|
5767
5780
|
variant: e = "body1",
|
|
5768
5781
|
component: n,
|
|
5769
5782
|
className: t = "",
|
|
5770
5783
|
children: r,
|
|
5771
|
-
color: o = ""
|
|
5784
|
+
color: o = "dark"
|
|
5772
5785
|
}) => {
|
|
5786
|
+
var l;
|
|
5773
5787
|
const i = n || {
|
|
5774
5788
|
h1: "h1",
|
|
5775
5789
|
h2: "h2",
|
|
@@ -5784,8 +5798,8 @@ const ei = {
|
|
|
5784
5798
|
caption: "span",
|
|
5785
5799
|
overline: "span"
|
|
5786
5800
|
}[e] || "p";
|
|
5787
|
-
return /* @__PURE__ */ s.jsx(i, { className: `${ei[e]} ${
|
|
5788
|
-
},
|
|
5801
|
+
return /* @__PURE__ */ s.jsx(i, { className: `${ei[e]} ${(l = ve[o]) == null ? void 0 : l.text} ${t}`, children: r });
|
|
5802
|
+
}, ni = ({
|
|
5789
5803
|
total: e,
|
|
5790
5804
|
currentPage: n,
|
|
5791
5805
|
pageSize: t = 10,
|
|
@@ -5796,7 +5810,7 @@ const ei = {
|
|
|
5796
5810
|
const i = Math.ceil(e / t), l = n === 1, c = n === i;
|
|
5797
5811
|
return i <= 1 ? null : /* @__PURE__ */ s.jsxs("div", { className: `flex items-center space-x-1 ${a}`, children: [
|
|
5798
5812
|
!o && /* @__PURE__ */ s.jsx(
|
|
5799
|
-
|
|
5813
|
+
Re,
|
|
5800
5814
|
{
|
|
5801
5815
|
color: "dark",
|
|
5802
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" }) }),
|
|
@@ -5808,7 +5822,7 @@ const ei = {
|
|
|
5808
5822
|
}
|
|
5809
5823
|
),
|
|
5810
5824
|
/* @__PURE__ */ s.jsx(
|
|
5811
|
-
|
|
5825
|
+
Re,
|
|
5812
5826
|
{
|
|
5813
5827
|
color: "dark",
|
|
5814
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" }) }),
|
|
@@ -5826,7 +5840,7 @@ const ei = {
|
|
|
5826
5840
|
i
|
|
5827
5841
|
] }),
|
|
5828
5842
|
/* @__PURE__ */ s.jsx(
|
|
5829
|
-
|
|
5843
|
+
Re,
|
|
5830
5844
|
{
|
|
5831
5845
|
color: "dark",
|
|
5832
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" }) }),
|
|
@@ -5838,7 +5852,7 @@ const ei = {
|
|
|
5838
5852
|
}
|
|
5839
5853
|
),
|
|
5840
5854
|
!o && /* @__PURE__ */ s.jsx(
|
|
5841
|
-
|
|
5855
|
+
Re,
|
|
5842
5856
|
{
|
|
5843
5857
|
color: "dark",
|
|
5844
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" }) }),
|
|
@@ -5850,7 +5864,7 @@ const ei = {
|
|
|
5850
5864
|
}
|
|
5851
5865
|
)
|
|
5852
5866
|
] });
|
|
5853
|
-
},
|
|
5867
|
+
}, Vl = ({
|
|
5854
5868
|
data: e,
|
|
5855
5869
|
columns: n = [],
|
|
5856
5870
|
pageSize: t,
|
|
@@ -5895,7 +5909,7 @@ const ei = {
|
|
|
5895
5909
|
] }),
|
|
5896
5910
|
/* @__PURE__ */ s.jsxs("div", { className: `w-full py-4 px-2 border-t border-color-gray-200 bg-color-[#FAFBFB] flex justify-between items-center ${u} sticky bottom-0 z-10`, children: [
|
|
5897
5911
|
/* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
5898
|
-
/* @__PURE__ */ s.jsx(
|
|
5912
|
+
/* @__PURE__ */ s.jsx(ti, { variant: "body2", className: "hidden md:!flex", children: "Rows per page" }),
|
|
5899
5913
|
/* @__PURE__ */ s.jsx(
|
|
5900
5914
|
oa,
|
|
5901
5915
|
{
|
|
@@ -5909,7 +5923,7 @@ const ei = {
|
|
|
5909
5923
|
)
|
|
5910
5924
|
] }),
|
|
5911
5925
|
/* @__PURE__ */ s.jsx(
|
|
5912
|
-
|
|
5926
|
+
ni,
|
|
5913
5927
|
{
|
|
5914
5928
|
total: l,
|
|
5915
5929
|
pageSize: t,
|
|
@@ -5919,10 +5933,31 @@ const ei = {
|
|
|
5919
5933
|
)
|
|
5920
5934
|
] })
|
|
5921
5935
|
] }) });
|
|
5922
|
-
},
|
|
5936
|
+
}, Hl = ({ 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 }), Bl = ({ 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: [
|
|
5923
5937
|
/* @__PURE__ */ s.jsx("div", { className: "flex-1", children: e }),
|
|
5924
5938
|
n && /* @__PURE__ */ s.jsx("div", { className: "ml-4", children: n })
|
|
5925
|
-
] }),
|
|
5939
|
+
] }), ql = ({
|
|
5940
|
+
open: e,
|
|
5941
|
+
onClick: n,
|
|
5942
|
+
className: t = "",
|
|
5943
|
+
children: r,
|
|
5944
|
+
...o
|
|
5945
|
+
}) => {
|
|
5946
|
+
const [a, i] = je.useState(!1);
|
|
5947
|
+
return je.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-40 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
|
+
}, Gl = ({
|
|
5926
5961
|
animation: e = "pulse",
|
|
5927
5962
|
variant: n = "rectangular",
|
|
5928
5963
|
width: t,
|
|
@@ -6014,7 +6049,7 @@ const ei = {
|
|
|
6014
6049
|
medium: { track: "h-2", thumb: "w-4 h-4" },
|
|
6015
6050
|
large: { track: "h-3", thumb: "w-5 h-5" }
|
|
6016
6051
|
};
|
|
6017
|
-
function
|
|
6052
|
+
function ri(e) {
|
|
6018
6053
|
const n = se(null), t = se(null), r = se(null), o = (c, u) => {
|
|
6019
6054
|
if (c === u) return !0;
|
|
6020
6055
|
if (Array.isArray(c) && Array.isArray(u)) {
|
|
@@ -6061,14 +6096,14 @@ const Ul = Zr(function({
|
|
|
6061
6096
|
range: m = !1,
|
|
6062
6097
|
minDistance: b = 0
|
|
6063
6098
|
}) {
|
|
6064
|
-
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(
|
|
6065
6100
|
(_) => (_ - a) / (i - a) * 100,
|
|
6066
6101
|
[a, i]
|
|
6067
|
-
), 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 =
|
|
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(
|
|
6068
6103
|
(_, J = !0) => {
|
|
6069
|
-
|
|
6104
|
+
h || w(_), J ? T.schedule(_) : T.flush(_);
|
|
6070
6105
|
},
|
|
6071
|
-
[
|
|
6106
|
+
[h, T]
|
|
6072
6107
|
), pe = oe(() => {
|
|
6073
6108
|
const _ = T.last.current;
|
|
6074
6109
|
_ != null && (T.flush(_), o == null || o(_));
|
|
@@ -6082,10 +6117,10 @@ const Ul = Zr(function({
|
|
|
6082
6117
|
return _;
|
|
6083
6118
|
},
|
|
6084
6119
|
[m, H, Y, b]
|
|
6085
|
-
),
|
|
6120
|
+
), x = se(null), C = oe(
|
|
6086
6121
|
(_) => {
|
|
6087
6122
|
var de;
|
|
6088
|
-
const J = (de =
|
|
6123
|
+
const J = (de = x.current) == null ? void 0 : de.getBoundingClientRect();
|
|
6089
6124
|
if (!J) return m ? a : y;
|
|
6090
6125
|
const ee = Math.max(0, Math.min(1, (_ - J.left) / J.width));
|
|
6091
6126
|
return a + ee * (i - a);
|
|
@@ -6168,7 +6203,7 @@ const Ul = Zr(function({
|
|
|
6168
6203
|
default:
|
|
6169
6204
|
return;
|
|
6170
6205
|
}
|
|
6171
|
-
_.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 : $);
|
|
6172
6207
|
},
|
|
6173
6208
|
[
|
|
6174
6209
|
d,
|
|
@@ -6182,7 +6217,7 @@ const Ul = Zr(function({
|
|
|
6182
6217
|
X,
|
|
6183
6218
|
te,
|
|
6184
6219
|
o,
|
|
6185
|
-
|
|
6220
|
+
h,
|
|
6186
6221
|
n,
|
|
6187
6222
|
$
|
|
6188
6223
|
]
|
|
@@ -6199,7 +6234,7 @@ const Ul = Zr(function({
|
|
|
6199
6234
|
/* @__PURE__ */ s.jsxs(
|
|
6200
6235
|
"div",
|
|
6201
6236
|
{
|
|
6202
|
-
ref:
|
|
6237
|
+
ref: x,
|
|
6203
6238
|
className: `
|
|
6204
6239
|
relative w-full ${F.track} ${V.track} rounded-full
|
|
6205
6240
|
${d ? "opacity-60 cursor-not-allowed" : "cursor-pointer"}
|
|
@@ -6402,7 +6437,7 @@ const Ul = Zr(function({
|
|
|
6402
6437
|
/* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-2 flex-shrink-0", children: [
|
|
6403
6438
|
i && /* @__PURE__ */ s.jsx("div", { className: "flex items-center", children: i }),
|
|
6404
6439
|
a && /* @__PURE__ */ s.jsx(
|
|
6405
|
-
|
|
6440
|
+
Re,
|
|
6406
6441
|
{
|
|
6407
6442
|
color: "light",
|
|
6408
6443
|
size: "small",
|
|
@@ -6429,7 +6464,7 @@ const Ul = Zr(function({
|
|
|
6429
6464
|
var g, p;
|
|
6430
6465
|
const i = "inline-block", l = (g = ve[t]) == null ? void 0 : g.transparent, c = (p = ve[t]) == null ? void 0 : p.filled, u = Math.min(Math.max(n, 0), 100);
|
|
6431
6466
|
if (e === "circular") {
|
|
6432
|
-
const { size: f = 40, thickness: v = 3.6 } = a, m = (f - v) / 2, b = 2 * Math.PI * m,
|
|
6467
|
+
const { size: f = 40, thickness: v = 3.6 } = a, m = (f - v) / 2, b = 2 * Math.PI * m, h = `${b} ${b}`, k = b - u / 100 * b;
|
|
6433
6468
|
return /* @__PURE__ */ s.jsx(
|
|
6434
6469
|
"div",
|
|
6435
6470
|
{
|
|
@@ -6471,7 +6506,7 @@ const Ul = Zr(function({
|
|
|
6471
6506
|
strokeLinecap: "round",
|
|
6472
6507
|
className: `${l} transition-all duration-300 ease-out ${r ? "" : "animate-spin"}`,
|
|
6473
6508
|
style: {
|
|
6474
|
-
strokeDasharray:
|
|
6509
|
+
strokeDasharray: h,
|
|
6475
6510
|
strokeDashoffset: r ? k : b * 0.75,
|
|
6476
6511
|
transformOrigin: "center"
|
|
6477
6512
|
}
|
|
@@ -6534,7 +6569,7 @@ const Ul = Zr(function({
|
|
|
6534
6569
|
labels: p = {}
|
|
6535
6570
|
// <-- Add this
|
|
6536
6571
|
}) => {
|
|
6537
|
-
const [f, v] =
|
|
6572
|
+
const [f, v] = je.useState(null), m = (w, $) => {
|
|
6538
6573
|
if (t || r || !n) return;
|
|
6539
6574
|
const { left: y, width: O } = w.target.getBoundingClientRect(), D = (w.clientX - y) / O;
|
|
6540
6575
|
let V = $ - 1 + Math.ceil(D / o) * o;
|
|
@@ -6544,9 +6579,9 @@ const Ul = Zr(function({
|
|
|
6544
6579
|
const { left: y, width: O } = w.target.getBoundingClientRect(), D = (w.clientX - y) / O;
|
|
6545
6580
|
let V = $ - 1 + Math.ceil(D / o) * o;
|
|
6546
6581
|
V = Math.min(a, Math.max(o, Math.round(V / o) * o)), v(V);
|
|
6547
|
-
},
|
|
6582
|
+
}, h = () => v(null), k = [];
|
|
6548
6583
|
for (let w = 1; w <= a; w++) {
|
|
6549
|
-
let $ = (f !== null ? f : e) >= w, y = !$ && (f !== null ? f : e) > w - 1, O = $ ? l ||
|
|
6584
|
+
let $ = (f !== null ? f : e) >= w, y = !$ && (f !== null ? f : e) > w - 1, O = $ ? l || je.cloneElement(Wn, { className: `fill-color-yellow-500 ${st[i]}` }) : c || je.cloneElement(Un, { className: `stroke-color-gray-300 ${st[i]}` });
|
|
6550
6585
|
if (y) {
|
|
6551
6586
|
const D = ((f !== null ? f : e) - (w - 1)) * 100;
|
|
6552
6587
|
O = /* @__PURE__ */ s.jsxs("span", { className: "relative block", children: [
|
|
@@ -6555,12 +6590,12 @@ const Ul = Zr(function({
|
|
|
6555
6590
|
{
|
|
6556
6591
|
className: "absolute top-0 left-0 overflow-hidden",
|
|
6557
6592
|
style: { width: `${D}%` },
|
|
6558
|
-
children: l ||
|
|
6593
|
+
children: l || je.cloneElement(Wn, {
|
|
6559
6594
|
className: `fill-color-yellow-500 ${st[i]}`
|
|
6560
6595
|
})
|
|
6561
6596
|
}
|
|
6562
6597
|
),
|
|
6563
|
-
c ||
|
|
6598
|
+
c || je.cloneElement(Un, {
|
|
6564
6599
|
className: `stroke-color-gray-300 ${st[i]}`
|
|
6565
6600
|
})
|
|
6566
6601
|
] });
|
|
@@ -6572,7 +6607,7 @@ const Ul = Zr(function({
|
|
|
6572
6607
|
className: `inline-block ${r ? "opacity-50 cursor-not-allowed" : "cursor-pointer"}`,
|
|
6573
6608
|
onClick: (D) => m(D, w),
|
|
6574
6609
|
onMouseMove: (D) => b(D, w),
|
|
6575
|
-
onMouseLeave:
|
|
6610
|
+
onMouseLeave: h,
|
|
6576
6611
|
tabIndex: t || r ? -1 : 0,
|
|
6577
6612
|
"aria-label": `Rate ${w}`,
|
|
6578
6613
|
role: "radio",
|
|
@@ -6605,14 +6640,14 @@ const Ul = Zr(function({
|
|
|
6605
6640
|
thumbWidth: v = 60,
|
|
6606
6641
|
orientation: m = "horizontal",
|
|
6607
6642
|
nextIcon: b,
|
|
6608
|
-
prevIcon:
|
|
6643
|
+
prevIcon: h,
|
|
6609
6644
|
className: k
|
|
6610
6645
|
}) => {
|
|
6611
6646
|
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(
|
|
6612
6647
|
l && T > 0 ? (E % (T + 1) + (T + 1)) % (T + 1) : te(E)
|
|
6613
6648
|
), X = () => {
|
|
6614
6649
|
l && T > 0 ? O(y === 0 ? T : y - 1) : pe(y - 1);
|
|
6615
|
-
},
|
|
6650
|
+
}, x = () => {
|
|
6616
6651
|
l && T > 0 ? O(y >= T ? 0 : y + 1) : pe(y + 1);
|
|
6617
6652
|
};
|
|
6618
6653
|
ce(() => {
|
|
@@ -6640,7 +6675,7 @@ const Ul = Zr(function({
|
|
|
6640
6675
|
F && (Y.current = m === "horizontal" ? E : P, ue(Y.current - H.current));
|
|
6641
6676
|
}, M = () => {
|
|
6642
6677
|
if (!F) return;
|
|
6643
|
-
Math.abs(Y.current - H.current) > 50 && (Y.current < H.current ?
|
|
6678
|
+
Math.abs(Y.current - H.current) > 50 && (Y.current < H.current ? x() : X()), Z(!1), ue(0);
|
|
6644
6679
|
}, N = () => {
|
|
6645
6680
|
const E = m === "horizontal" ? "X" : "Y";
|
|
6646
6681
|
let P = 0;
|
|
@@ -6711,14 +6746,14 @@ const Ul = Zr(function({
|
|
|
6711
6746
|
onClick: X,
|
|
6712
6747
|
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
|
|
6713
6748
|
${m === "horizontal" ? "left-2 top-1/2 -translate-y-1/2" : "left-1/2 top-2 -translate-x-1/2"}`,
|
|
6714
|
-
children:
|
|
6749
|
+
children: h || (m === "horizontal" ? "‹" : "↑")
|
|
6715
6750
|
}
|
|
6716
6751
|
),
|
|
6717
6752
|
/* @__PURE__ */ s.jsx(
|
|
6718
6753
|
"button",
|
|
6719
6754
|
{
|
|
6720
6755
|
"aria-label": "next",
|
|
6721
|
-
onClick:
|
|
6756
|
+
onClick: x,
|
|
6722
6757
|
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
|
|
6723
6758
|
${m === "horizontal" ? "right-2 top-1/2 -translate-y-1/2" : "left-1/2 bottom-2 -translate-x-1/2"}`,
|
|
6724
6759
|
children: b || (m === "horizontal" ? "›" : "↓")
|
|
@@ -6868,7 +6903,7 @@ const Ul = Zr(function({
|
|
|
6868
6903
|
)
|
|
6869
6904
|
}
|
|
6870
6905
|
);
|
|
6871
|
-
},
|
|
6906
|
+
}, oi = {
|
|
6872
6907
|
small: "px-2 py-1 text-sm",
|
|
6873
6908
|
medium: "px-4 py-2 text-base",
|
|
6874
6909
|
large: "px-6 py-3 text-lg"
|
|
@@ -6907,7 +6942,7 @@ const Ul = Zr(function({
|
|
|
6907
6942
|
disabled: u || p.disabled,
|
|
6908
6943
|
className: `
|
|
6909
6944
|
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
|
|
6910
|
-
${
|
|
6945
|
+
${oi[o]}
|
|
6911
6946
|
${d(p.value) ? ((v = ve[a]) == null ? void 0 : v.filled) || a : "bg-color-transparent text-color-gray-700"}
|
|
6912
6947
|
${u || p.disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer"}
|
|
6913
6948
|
${c}
|
|
@@ -6938,7 +6973,7 @@ const Ul = Zr(function({
|
|
|
6938
6973
|
small: "rounded-md",
|
|
6939
6974
|
medium: "rounded-xl",
|
|
6940
6975
|
large: "rounded-2xl"
|
|
6941
|
-
},
|
|
6976
|
+
}, ai = ({
|
|
6942
6977
|
title: e,
|
|
6943
6978
|
subtitle: n,
|
|
6944
6979
|
space: t = "medium",
|
|
@@ -7150,10 +7185,10 @@ const Ul = Zr(function({
|
|
|
7150
7185
|
)
|
|
7151
7186
|
] });
|
|
7152
7187
|
};
|
|
7153
|
-
function
|
|
7188
|
+
function ii(...e) {
|
|
7154
7189
|
return e.filter(Boolean).join(" ");
|
|
7155
7190
|
}
|
|
7156
|
-
const
|
|
7191
|
+
const li = {
|
|
7157
7192
|
sm: "max-w-sm",
|
|
7158
7193
|
md: "max-w-md",
|
|
7159
7194
|
lg: "max-w-lg",
|
|
@@ -7161,7 +7196,7 @@ const si = {
|
|
|
7161
7196
|
"2xl": "max-w-2xl",
|
|
7162
7197
|
"4xl": "max-w-4xl",
|
|
7163
7198
|
"6xl": "max-w-6xl"
|
|
7164
|
-
},
|
|
7199
|
+
}, si = Ye(
|
|
7165
7200
|
({
|
|
7166
7201
|
open: e,
|
|
7167
7202
|
onClose: n,
|
|
@@ -7186,7 +7221,7 @@ const si = {
|
|
|
7186
7221
|
let k;
|
|
7187
7222
|
return g ? (v(!0), k = setTimeout(() => b(!0), 10)) : b(!1), () => clearTimeout(k);
|
|
7188
7223
|
}, [g]);
|
|
7189
|
-
const
|
|
7224
|
+
const h = () => {
|
|
7190
7225
|
g || v(!1);
|
|
7191
7226
|
};
|
|
7192
7227
|
return ce(() => {
|
|
@@ -7200,7 +7235,7 @@ const si = {
|
|
|
7200
7235
|
/* @__PURE__ */ s.jsxs(
|
|
7201
7236
|
"div",
|
|
7202
7237
|
{
|
|
7203
|
-
className:
|
|
7238
|
+
className: ii(
|
|
7204
7239
|
"fixed inset-0 z-50 flex items-center justify-center transition-opacity duration-300",
|
|
7205
7240
|
m ? "opacity-100" : "opacity-0 pointer-events-none"
|
|
7206
7241
|
),
|
|
@@ -7217,13 +7252,13 @@ const si = {
|
|
|
7217
7252
|
/* @__PURE__ */ s.jsxs(
|
|
7218
7253
|
"div",
|
|
7219
7254
|
{
|
|
7220
|
-
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 ?
|
|
7221
|
-
onTransitionEnd:
|
|
7255
|
+
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 ? li[u] : ""} mx-5`} ${t}`,
|
|
7256
|
+
onTransitionEnd: h,
|
|
7222
7257
|
children: [
|
|
7223
7258
|
/* @__PURE__ */ s.jsxs("div", { className: "flex items-center justify-between mb-4", children: [
|
|
7224
7259
|
r && /* @__PURE__ */ s.jsx("h2", { className: "text-xl font-semibold", children: r }),
|
|
7225
7260
|
i && /* @__PURE__ */ s.jsx(
|
|
7226
|
-
|
|
7261
|
+
Re,
|
|
7227
7262
|
{
|
|
7228
7263
|
color: "gray",
|
|
7229
7264
|
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" }) }),
|
|
@@ -7254,9 +7289,9 @@ function as({ items: e, trigger: n, className: t, dropdownItemClass: r }) {
|
|
|
7254
7289
|
};
|
|
7255
7290
|
Kr(() => {
|
|
7256
7291
|
if (o && d.current && g.current) {
|
|
7257
|
-
const v = d.current.getBoundingClientRect(), m = g.current.getBoundingClientRect(), b = window.innerWidth,
|
|
7292
|
+
const v = d.current.getBoundingClientRect(), m = g.current.getBoundingClientRect(), b = window.innerWidth, h = window.innerHeight;
|
|
7258
7293
|
let k = v.left + window.scrollX, w = v.bottom + window.scrollY;
|
|
7259
|
-
v.right + m.width > b && (k = v.right + window.scrollX - m.width), k + m.width > b && (k = b - m.width - 12), w + m.height >
|
|
7294
|
+
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(() => {
|
|
7260
7295
|
u(!0);
|
|
7261
7296
|
}, 150);
|
|
7262
7297
|
}
|
|
@@ -7301,10 +7336,10 @@ function as({ items: e, trigger: n, className: t, dropdownItemClass: r }) {
|
|
|
7301
7336
|
o && Ze(f, document.body)
|
|
7302
7337
|
] });
|
|
7303
7338
|
}
|
|
7304
|
-
function
|
|
7339
|
+
function ci(...e) {
|
|
7305
7340
|
return e.filter(Boolean).join(" ");
|
|
7306
7341
|
}
|
|
7307
|
-
const
|
|
7342
|
+
const ui = ({
|
|
7308
7343
|
open: e,
|
|
7309
7344
|
onClose: n,
|
|
7310
7345
|
className: t,
|
|
@@ -7326,8 +7361,8 @@ const di = ({
|
|
|
7326
7361
|
e || d(!1);
|
|
7327
7362
|
};
|
|
7328
7363
|
if (ce(() => {
|
|
7329
|
-
const b = (
|
|
7330
|
-
|
|
7364
|
+
const b = (h) => {
|
|
7365
|
+
h.key === "Escape" && (n == null || n());
|
|
7331
7366
|
};
|
|
7332
7367
|
return e && document.addEventListener("keydown", b), () => document.removeEventListener("keydown", b);
|
|
7333
7368
|
}, [e, n]), ce(() => (e ? (document.body.style.overflow = "hidden", document.documentElement.style.overflow = "hidden") : (document.body.style.overflow = "", document.documentElement.style.overflow = ""), () => {
|
|
@@ -7348,7 +7383,7 @@ const di = ({
|
|
|
7348
7383
|
/* @__PURE__ */ s.jsxs(
|
|
7349
7384
|
"div",
|
|
7350
7385
|
{
|
|
7351
|
-
className:
|
|
7386
|
+
className: ci(
|
|
7352
7387
|
"fixed inset-0 z-50 transition-opacity duration-300",
|
|
7353
7388
|
g ? "opacity-100" : "opacity-0 pointer-events-none"
|
|
7354
7389
|
),
|
|
@@ -7366,7 +7401,7 @@ const di = ({
|
|
|
7366
7401
|
onTransitionEnd: f,
|
|
7367
7402
|
children: [
|
|
7368
7403
|
l && /* @__PURE__ */ s.jsx(
|
|
7369
|
-
|
|
7404
|
+
Re,
|
|
7370
7405
|
{
|
|
7371
7406
|
color: "gray",
|
|
7372
7407
|
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" }) }),
|
|
@@ -7426,19 +7461,19 @@ const di = ({
|
|
|
7426
7461
|
),
|
|
7427
7462
|
/* @__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 }) }) })
|
|
7428
7463
|
] });
|
|
7429
|
-
},
|
|
7464
|
+
}, di = {
|
|
7430
7465
|
info: "bg-color-blue-50 border-color-blue-300 text-color-blue-800",
|
|
7431
7466
|
success: "bg-color-green-50 border-color-green-300 text-color-green-800",
|
|
7432
7467
|
danger: "bg-color-red-50 border-color-red-300 text-color-red-800",
|
|
7433
7468
|
warning: "bg-color-yellow-50 border-color-yellow-300 text-color-yellow-800",
|
|
7434
7469
|
dark: "bg-color-gray-100 border-color-gray-300 text-color-gray-800"
|
|
7435
|
-
},
|
|
7470
|
+
}, pi = {
|
|
7436
7471
|
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" }) }),
|
|
7437
7472
|
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" }) }),
|
|
7438
7473
|
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" }) }),
|
|
7439
7474
|
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" }) }),
|
|
7440
7475
|
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" }) })
|
|
7441
|
-
},
|
|
7476
|
+
}, fi = {
|
|
7442
7477
|
info: "bg-color-blue-500",
|
|
7443
7478
|
success: "bg-color-green-500",
|
|
7444
7479
|
danger: "bg-color-red-500",
|
|
@@ -7463,10 +7498,10 @@ const di = ({
|
|
|
7463
7498
|
}, [r, a, t]), i ? /* @__PURE__ */ s.jsxs(
|
|
7464
7499
|
"div",
|
|
7465
7500
|
{
|
|
7466
|
-
className: `relative border-t-4 p-4 flex items-start justify-between ${
|
|
7501
|
+
className: `relative border-t-4 p-4 flex items-start justify-between ${di[n]} ${o}`,
|
|
7467
7502
|
children: [
|
|
7468
7503
|
/* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
7469
|
-
|
|
7504
|
+
pi[n],
|
|
7470
7505
|
/* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: e } })
|
|
7471
7506
|
] }),
|
|
7472
7507
|
/* @__PURE__ */ s.jsx(
|
|
@@ -7484,7 +7519,7 @@ const di = ({
|
|
|
7484
7519
|
"div",
|
|
7485
7520
|
{
|
|
7486
7521
|
ref: c,
|
|
7487
|
-
className: `${
|
|
7522
|
+
className: `${fi[n]} h-1`,
|
|
7488
7523
|
style: { width: "100%" }
|
|
7489
7524
|
}
|
|
7490
7525
|
) })
|
|
@@ -7546,11 +7581,11 @@ const di = ({
|
|
|
7546
7581
|
*
|
|
7547
7582
|
* @license MIT
|
|
7548
7583
|
*/
|
|
7549
|
-
function
|
|
7584
|
+
function xe(e, n) {
|
|
7550
7585
|
if (e === !1 || e === null || typeof e > "u")
|
|
7551
7586
|
throw new Error(n);
|
|
7552
7587
|
}
|
|
7553
|
-
function
|
|
7588
|
+
function _e(e, n) {
|
|
7554
7589
|
if (!e) {
|
|
7555
7590
|
typeof console < "u" && console.warn(n);
|
|
7556
7591
|
try {
|
|
@@ -7577,18 +7612,18 @@ function cn(e) {
|
|
|
7577
7612
|
return n;
|
|
7578
7613
|
}
|
|
7579
7614
|
function $r(e, n, t = "/") {
|
|
7580
|
-
return
|
|
7615
|
+
return mi(e, n, t, !1);
|
|
7581
7616
|
}
|
|
7582
|
-
function
|
|
7617
|
+
function mi(e, n, t, r) {
|
|
7583
7618
|
let o = typeof n == "string" ? cn(n) : n, a = Fe(o.pathname || "/", t);
|
|
7584
7619
|
if (a == null)
|
|
7585
7620
|
return null;
|
|
7586
7621
|
let i = _r(e);
|
|
7587
|
-
|
|
7622
|
+
gi(i);
|
|
7588
7623
|
let l = null;
|
|
7589
7624
|
for (let c = 0; l == null && c < i.length; ++c) {
|
|
7590
|
-
let u =
|
|
7591
|
-
l =
|
|
7625
|
+
let u = ki(a);
|
|
7626
|
+
l = ji(
|
|
7592
7627
|
i[c],
|
|
7593
7628
|
u,
|
|
7594
7629
|
r
|
|
@@ -7604,19 +7639,19 @@ function _r(e, n = [], t = [], r = "") {
|
|
|
7604
7639
|
childrenIndex: i,
|
|
7605
7640
|
route: a
|
|
7606
7641
|
};
|
|
7607
|
-
c.relativePath.startsWith("/") && (
|
|
7642
|
+
c.relativePath.startsWith("/") && (xe(
|
|
7608
7643
|
c.relativePath.startsWith(r),
|
|
7609
7644
|
`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.`
|
|
7610
7645
|
), c.relativePath = c.relativePath.slice(r.length));
|
|
7611
|
-
let u =
|
|
7612
|
-
a.children && a.children.length > 0 && (
|
|
7646
|
+
let u = $e([r, c.relativePath]), d = t.concat(c);
|
|
7647
|
+
a.children && a.children.length > 0 && (xe(
|
|
7613
7648
|
// Our types know better, but runtime JS may not!
|
|
7614
7649
|
// @ts-expect-error
|
|
7615
7650
|
a.index !== !0,
|
|
7616
7651
|
`Index routes must not have child routes. Please remove all child routes from route path "${u}".`
|
|
7617
7652
|
), _r(a.children, n, d, u)), !(a.path == null && !a.index) && n.push({
|
|
7618
7653
|
path: u,
|
|
7619
|
-
score:
|
|
7654
|
+
score: Ci(u, a.index),
|
|
7620
7655
|
routesMeta: d
|
|
7621
7656
|
});
|
|
7622
7657
|
};
|
|
@@ -7644,23 +7679,23 @@ function Er(e) {
|
|
|
7644
7679
|
(c) => e.startsWith("/") && c === "" ? "/" : c
|
|
7645
7680
|
);
|
|
7646
7681
|
}
|
|
7647
|
-
function
|
|
7682
|
+
function gi(e) {
|
|
7648
7683
|
e.sort(
|
|
7649
|
-
(n, t) => n.score !== t.score ? t.score - n.score :
|
|
7684
|
+
(n, t) => n.score !== t.score ? t.score - n.score : Si(
|
|
7650
7685
|
n.routesMeta.map((r) => r.childrenIndex),
|
|
7651
7686
|
t.routesMeta.map((r) => r.childrenIndex)
|
|
7652
7687
|
)
|
|
7653
7688
|
);
|
|
7654
7689
|
}
|
|
7655
|
-
var
|
|
7656
|
-
function
|
|
7690
|
+
var vi = /^:[\w-]+$/, xi = 3, hi = 2, bi = 1, wi = 10, yi = -2, Xn = (e) => e === "*";
|
|
7691
|
+
function Ci(e, n) {
|
|
7657
7692
|
let t = e.split("/"), r = t.length;
|
|
7658
|
-
return t.some(Xn) && (r +=
|
|
7659
|
-
(o, a) => o + (
|
|
7693
|
+
return t.some(Xn) && (r += yi), n && (r += hi), t.filter((o) => !Xn(o)).reduce(
|
|
7694
|
+
(o, a) => o + (vi.test(a) ? xi : a === "" ? bi : wi),
|
|
7660
7695
|
r
|
|
7661
7696
|
);
|
|
7662
7697
|
}
|
|
7663
|
-
function
|
|
7698
|
+
function Si(e, n) {
|
|
7664
7699
|
return e.length === n.length && e.slice(0, -1).every((r, o) => r === n[o]) ? (
|
|
7665
7700
|
// If two routes are siblings, we should try to match the earlier sibling
|
|
7666
7701
|
// first. This allows people to have fine-grained control over the matching
|
|
@@ -7673,7 +7708,7 @@ function ji(e, n) {
|
|
|
7673
7708
|
0
|
|
7674
7709
|
);
|
|
7675
7710
|
}
|
|
7676
|
-
function
|
|
7711
|
+
function ji(e, n, t = !1) {
|
|
7677
7712
|
let { routesMeta: r } = e, o = {}, a = "/", i = [];
|
|
7678
7713
|
for (let l = 0; l < r.length; ++l) {
|
|
7679
7714
|
let c = r[l], u = l === r.length - 1, d = a === "/" ? n : n.slice(a.length) || "/", g = gt(
|
|
@@ -7692,18 +7727,18 @@ function Ri(e, n, t = !1) {
|
|
|
7692
7727
|
Object.assign(o, g.params), i.push({
|
|
7693
7728
|
// TODO: Can this as be avoided?
|
|
7694
7729
|
params: o,
|
|
7695
|
-
pathname:
|
|
7696
|
-
pathnameBase:
|
|
7697
|
-
|
|
7730
|
+
pathname: $e([a, g.pathname]),
|
|
7731
|
+
pathnameBase: Pi(
|
|
7732
|
+
$e([a, g.pathnameBase])
|
|
7698
7733
|
),
|
|
7699
7734
|
route: p
|
|
7700
|
-
}), g.pathnameBase !== "/" && (a =
|
|
7735
|
+
}), g.pathnameBase !== "/" && (a = $e([a, g.pathnameBase]));
|
|
7701
7736
|
}
|
|
7702
7737
|
return i;
|
|
7703
7738
|
}
|
|
7704
7739
|
function gt(e, n) {
|
|
7705
7740
|
typeof e == "string" && (e = { path: e, caseSensitive: !1, end: !0 });
|
|
7706
|
-
let [t, r] =
|
|
7741
|
+
let [t, r] = Ri(
|
|
7707
7742
|
e.path,
|
|
7708
7743
|
e.caseSensitive,
|
|
7709
7744
|
e.end
|
|
@@ -7727,8 +7762,8 @@ function gt(e, n) {
|
|
|
7727
7762
|
pattern: e
|
|
7728
7763
|
};
|
|
7729
7764
|
}
|
|
7730
|
-
function
|
|
7731
|
-
|
|
7765
|
+
function Ri(e, n = !1, t = !0) {
|
|
7766
|
+
_e(
|
|
7732
7767
|
e === "*" || !e.endsWith("*") || e.endsWith("/*"),
|
|
7733
7768
|
`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(/\*$/, "/*")}".`
|
|
7734
7769
|
);
|
|
@@ -7738,11 +7773,11 @@ function ki(e, n = !1, t = !0) {
|
|
|
7738
7773
|
);
|
|
7739
7774
|
return e.endsWith("*") ? (r.push({ paramName: "*" }), o += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : t ? o += "\\/*$" : e !== "" && e !== "/" && (o += "(?:(?=\\/|$))"), [new RegExp(o, n ? void 0 : "i"), r];
|
|
7740
7775
|
}
|
|
7741
|
-
function
|
|
7776
|
+
function ki(e) {
|
|
7742
7777
|
try {
|
|
7743
7778
|
return e.split("/").map((n) => decodeURIComponent(n).replace(/\//g, "%2F")).join("/");
|
|
7744
7779
|
} catch (n) {
|
|
7745
|
-
return
|
|
7780
|
+
return _e(
|
|
7746
7781
|
!1,
|
|
7747
7782
|
`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}).`
|
|
7748
7783
|
), e;
|
|
@@ -7755,19 +7790,19 @@ function Fe(e, n) {
|
|
|
7755
7790
|
let t = n.endsWith("/") ? n.length - 1 : n.length, r = e.charAt(t);
|
|
7756
7791
|
return r && r !== "/" ? null : e.slice(t) || "/";
|
|
7757
7792
|
}
|
|
7758
|
-
function
|
|
7793
|
+
function $i(e, n = "/") {
|
|
7759
7794
|
let {
|
|
7760
7795
|
pathname: t,
|
|
7761
7796
|
search: r = "",
|
|
7762
7797
|
hash: o = ""
|
|
7763
7798
|
} = typeof e == "string" ? cn(e) : e;
|
|
7764
7799
|
return {
|
|
7765
|
-
pathname: t ? t.startsWith("/") ? t :
|
|
7766
|
-
search:
|
|
7767
|
-
hash:
|
|
7800
|
+
pathname: t ? t.startsWith("/") ? t : _i(t, n) : n,
|
|
7801
|
+
search: Mi(r),
|
|
7802
|
+
hash: Li(o)
|
|
7768
7803
|
};
|
|
7769
7804
|
}
|
|
7770
|
-
function
|
|
7805
|
+
function _i(e, n) {
|
|
7771
7806
|
let t = n.replace(/\/+$/, "").split("/");
|
|
7772
7807
|
return e.split("/").forEach((o) => {
|
|
7773
7808
|
o === ".." ? t.length > 1 && t.pop() : o !== "." && t.push(o);
|
|
@@ -7778,26 +7813,26 @@ function Ht(e, n, t, r) {
|
|
|
7778
7813
|
r
|
|
7779
7814
|
)}]. 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.`;
|
|
7780
7815
|
}
|
|
7781
|
-
function
|
|
7816
|
+
function Ei(e) {
|
|
7782
7817
|
return e.filter(
|
|
7783
7818
|
(n, t) => t === 0 || n.route.path && n.route.path.length > 0
|
|
7784
7819
|
);
|
|
7785
7820
|
}
|
|
7786
7821
|
function Pr(e) {
|
|
7787
|
-
let n =
|
|
7822
|
+
let n = Ei(e);
|
|
7788
7823
|
return n.map(
|
|
7789
7824
|
(t, r) => r === n.length - 1 ? t.pathname : t.pathnameBase
|
|
7790
7825
|
);
|
|
7791
7826
|
}
|
|
7792
7827
|
function Mr(e, n, t, r = !1) {
|
|
7793
7828
|
let o;
|
|
7794
|
-
typeof e == "string" ? o = cn(e) : (o = { ...e },
|
|
7829
|
+
typeof e == "string" ? o = cn(e) : (o = { ...e }, xe(
|
|
7795
7830
|
!o.pathname || !o.pathname.includes("?"),
|
|
7796
7831
|
Ht("?", "pathname", "search", o)
|
|
7797
|
-
),
|
|
7832
|
+
), xe(
|
|
7798
7833
|
!o.pathname || !o.pathname.includes("#"),
|
|
7799
7834
|
Ht("#", "pathname", "hash", o)
|
|
7800
|
-
),
|
|
7835
|
+
), xe(
|
|
7801
7836
|
!o.search || !o.search.includes("#"),
|
|
7802
7837
|
Ht("#", "search", "hash", o)
|
|
7803
7838
|
));
|
|
@@ -7814,11 +7849,11 @@ function Mr(e, n, t, r = !1) {
|
|
|
7814
7849
|
}
|
|
7815
7850
|
l = g >= 0 ? n[g] : "/";
|
|
7816
7851
|
}
|
|
7817
|
-
let c =
|
|
7852
|
+
let c = $i(o, l), u = i && i !== "/" && i.endsWith("/"), d = (a || i === ".") && t.endsWith("/");
|
|
7818
7853
|
return !c.pathname.endsWith("/") && (u || d) && (c.pathname += "/"), c;
|
|
7819
7854
|
}
|
|
7820
|
-
var
|
|
7821
|
-
function
|
|
7855
|
+
var $e = (e) => e.join("/").replace(/\/\/+/g, "/"), Pi = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), Mi = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Li = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e;
|
|
7856
|
+
function Fi(e) {
|
|
7822
7857
|
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
|
|
7823
7858
|
}
|
|
7824
7859
|
var Lr = [
|
|
@@ -7830,58 +7865,58 @@ var Lr = [
|
|
|
7830
7865
|
new Set(
|
|
7831
7866
|
Lr
|
|
7832
7867
|
);
|
|
7833
|
-
var
|
|
7868
|
+
var Ai = [
|
|
7834
7869
|
"GET",
|
|
7835
7870
|
...Lr
|
|
7836
7871
|
];
|
|
7837
|
-
new Set(
|
|
7872
|
+
new Set(Ai);
|
|
7838
7873
|
var Ie = R.createContext(null);
|
|
7839
7874
|
Ie.displayName = "DataRouter";
|
|
7840
|
-
var
|
|
7841
|
-
|
|
7875
|
+
var xt = R.createContext(null);
|
|
7876
|
+
xt.displayName = "DataRouterState";
|
|
7842
7877
|
R.createContext(!1);
|
|
7843
7878
|
var Fr = R.createContext({
|
|
7844
7879
|
isTransitioning: !1
|
|
7845
7880
|
});
|
|
7846
7881
|
Fr.displayName = "ViewTransition";
|
|
7847
|
-
var
|
|
7882
|
+
var Ni = R.createContext(
|
|
7848
7883
|
/* @__PURE__ */ new Map()
|
|
7849
7884
|
);
|
|
7850
|
-
|
|
7851
|
-
var
|
|
7852
|
-
|
|
7853
|
-
var
|
|
7885
|
+
Ni.displayName = "Fetchers";
|
|
7886
|
+
var Di = R.createContext(null);
|
|
7887
|
+
Di.displayName = "Await";
|
|
7888
|
+
var Ee = R.createContext(
|
|
7854
7889
|
null
|
|
7855
7890
|
);
|
|
7856
|
-
|
|
7891
|
+
Ee.displayName = "Navigation";
|
|
7857
7892
|
var un = R.createContext(
|
|
7858
7893
|
null
|
|
7859
7894
|
);
|
|
7860
7895
|
un.displayName = "Location";
|
|
7861
|
-
var
|
|
7896
|
+
var Pe = R.createContext({
|
|
7862
7897
|
outlet: null,
|
|
7863
7898
|
matches: [],
|
|
7864
7899
|
isDataRoute: !1
|
|
7865
7900
|
});
|
|
7866
|
-
|
|
7901
|
+
Pe.displayName = "Route";
|
|
7867
7902
|
var dn = R.createContext(null);
|
|
7868
7903
|
dn.displayName = "RouteError";
|
|
7869
|
-
function
|
|
7870
|
-
|
|
7871
|
-
|
|
7904
|
+
function zi(e, { relative: n } = {}) {
|
|
7905
|
+
xe(
|
|
7906
|
+
ht(),
|
|
7872
7907
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
7873
7908
|
// router loaded. We can help them understand how to avoid that.
|
|
7874
7909
|
"useHref() may be used only in the context of a <Router> component."
|
|
7875
7910
|
);
|
|
7876
|
-
let { basename: t, navigator: r } = R.useContext(
|
|
7877
|
-
return t !== "/" && (l = a === "/" ? t :
|
|
7911
|
+
let { basename: t, navigator: r } = R.useContext(Ee), { hash: o, pathname: a, search: i } = Ke(e, { relative: n }), l = a;
|
|
7912
|
+
return t !== "/" && (l = a === "/" ? t : $e([t, a])), r.createHref({ pathname: l, search: i, hash: o });
|
|
7878
7913
|
}
|
|
7879
|
-
function
|
|
7914
|
+
function ht() {
|
|
7880
7915
|
return R.useContext(un) != null;
|
|
7881
7916
|
}
|
|
7882
7917
|
function De() {
|
|
7883
|
-
return
|
|
7884
|
-
|
|
7918
|
+
return xe(
|
|
7919
|
+
ht(),
|
|
7885
7920
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
7886
7921
|
// router loaded. We can help them understand how to avoid that.
|
|
7887
7922
|
"useLocation() may be used only in the context of a <Router> component."
|
|
@@ -7889,25 +7924,25 @@ function De() {
|
|
|
7889
7924
|
}
|
|
7890
7925
|
var Ar = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
|
|
7891
7926
|
function Nr(e) {
|
|
7892
|
-
R.useContext(
|
|
7927
|
+
R.useContext(Ee).static || R.useLayoutEffect(e);
|
|
7893
7928
|
}
|
|
7894
|
-
function
|
|
7895
|
-
let { isDataRoute: e } = R.useContext(
|
|
7896
|
-
return e ?
|
|
7929
|
+
function Ti() {
|
|
7930
|
+
let { isDataRoute: e } = R.useContext(Pe);
|
|
7931
|
+
return e ? Xi() : Oi();
|
|
7897
7932
|
}
|
|
7898
|
-
function
|
|
7899
|
-
|
|
7900
|
-
|
|
7933
|
+
function Oi() {
|
|
7934
|
+
xe(
|
|
7935
|
+
ht(),
|
|
7901
7936
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
7902
7937
|
// router loaded. We can help them understand how to avoid that.
|
|
7903
7938
|
"useNavigate() may be used only in the context of a <Router> component."
|
|
7904
7939
|
);
|
|
7905
|
-
let e = R.useContext(Ie), { basename: n, navigator: t } = R.useContext(
|
|
7940
|
+
let e = R.useContext(Ie), { basename: n, navigator: t } = R.useContext(Ee), { matches: r } = R.useContext(Pe), { pathname: o } = De(), a = JSON.stringify(Pr(r)), i = R.useRef(!1);
|
|
7906
7941
|
return Nr(() => {
|
|
7907
7942
|
i.current = !0;
|
|
7908
7943
|
}), R.useCallback(
|
|
7909
7944
|
(c, u = {}) => {
|
|
7910
|
-
if (
|
|
7945
|
+
if (_e(i.current, Ar), !i.current) return;
|
|
7911
7946
|
if (typeof c == "number") {
|
|
7912
7947
|
t.go(c);
|
|
7913
7948
|
return;
|
|
@@ -7918,7 +7953,7 @@ function Ii() {
|
|
|
7918
7953
|
o,
|
|
7919
7954
|
u.relative === "path"
|
|
7920
7955
|
);
|
|
7921
|
-
e == null && n !== "/" && (d.pathname = d.pathname === "/" ? n :
|
|
7956
|
+
e == null && n !== "/" && (d.pathname = d.pathname === "/" ? n : $e([n, d.pathname])), (u.replace ? t.replace : t.push)(
|
|
7922
7957
|
d,
|
|
7923
7958
|
u.state,
|
|
7924
7959
|
u
|
|
@@ -7935,7 +7970,7 @@ function Ii() {
|
|
|
7935
7970
|
}
|
|
7936
7971
|
R.createContext(null);
|
|
7937
7972
|
function Ke(e, { relative: n } = {}) {
|
|
7938
|
-
let { matches: t } = R.useContext(
|
|
7973
|
+
let { matches: t } = R.useContext(Pe), { pathname: r } = De(), o = JSON.stringify(Pr(t));
|
|
7939
7974
|
return R.useMemo(
|
|
7940
7975
|
() => Mr(
|
|
7941
7976
|
e,
|
|
@@ -7946,51 +7981,51 @@ function Ke(e, { relative: n } = {}) {
|
|
|
7946
7981
|
[e, o, r, n]
|
|
7947
7982
|
);
|
|
7948
7983
|
}
|
|
7949
|
-
function
|
|
7950
|
-
|
|
7951
|
-
|
|
7984
|
+
function Ii(e, n, t, r) {
|
|
7985
|
+
xe(
|
|
7986
|
+
ht(),
|
|
7952
7987
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
7953
7988
|
// router loaded. We can help them understand how to avoid that.
|
|
7954
7989
|
"useRoutes() may be used only in the context of a <Router> component."
|
|
7955
7990
|
);
|
|
7956
|
-
let { navigator: o } = R.useContext(
|
|
7991
|
+
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;
|
|
7957
7992
|
{
|
|
7958
|
-
let
|
|
7993
|
+
let h = d && d.path || "";
|
|
7959
7994
|
Dr(
|
|
7960
7995
|
c,
|
|
7961
|
-
!d ||
|
|
7962
|
-
`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${
|
|
7996
|
+
!d || h.endsWith("*") || h.endsWith("*?"),
|
|
7997
|
+
`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.
|
|
7963
7998
|
|
|
7964
|
-
Please change the parent <Route path="${
|
|
7999
|
+
Please change the parent <Route path="${h}"> to <Route path="${h === "/" ? "*" : `${h}/*`}">.`
|
|
7965
8000
|
);
|
|
7966
8001
|
}
|
|
7967
8002
|
let g = De(), p;
|
|
7968
8003
|
p = g;
|
|
7969
8004
|
let f = p.pathname || "/", v = f;
|
|
7970
8005
|
if (u !== "/") {
|
|
7971
|
-
let
|
|
7972
|
-
v = "/" + f.replace(/^\//, "").split("/").slice(
|
|
8006
|
+
let h = u.replace(/^\//, "").split("/");
|
|
8007
|
+
v = "/" + f.replace(/^\//, "").split("/").slice(h.length).join("/");
|
|
7973
8008
|
}
|
|
7974
8009
|
let m = $r(e, { pathname: v });
|
|
7975
|
-
return
|
|
8010
|
+
return _e(
|
|
7976
8011
|
d || m != null,
|
|
7977
8012
|
`No routes matched location "${p.pathname}${p.search}${p.hash}" `
|
|
7978
|
-
),
|
|
8013
|
+
), _e(
|
|
7979
8014
|
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,
|
|
7980
8015
|
`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.`
|
|
7981
|
-
),
|
|
8016
|
+
), Gi(
|
|
7982
8017
|
m && m.map(
|
|
7983
|
-
(
|
|
7984
|
-
params: Object.assign({}, l,
|
|
7985
|
-
pathname:
|
|
8018
|
+
(h) => Object.assign({}, h, {
|
|
8019
|
+
params: Object.assign({}, l, h.params),
|
|
8020
|
+
pathname: $e([
|
|
7986
8021
|
u,
|
|
7987
8022
|
// Re-encode pathnames that were decoded inside matchRoutes
|
|
7988
|
-
o.encodeLocation ? o.encodeLocation(
|
|
8023
|
+
o.encodeLocation ? o.encodeLocation(h.pathname).pathname : h.pathname
|
|
7989
8024
|
]),
|
|
7990
|
-
pathnameBase:
|
|
8025
|
+
pathnameBase: h.pathnameBase === "/" ? u : $e([
|
|
7991
8026
|
u,
|
|
7992
8027
|
// Re-encode pathnames that were decoded inside matchRoutes
|
|
7993
|
-
o.encodeLocation ? o.encodeLocation(
|
|
8028
|
+
o.encodeLocation ? o.encodeLocation(h.pathnameBase).pathname : h.pathnameBase
|
|
7994
8029
|
])
|
|
7995
8030
|
})
|
|
7996
8031
|
),
|
|
@@ -7999,14 +8034,14 @@ Please change the parent <Route path="${x}"> to <Route path="${x === "/" ? "*" :
|
|
|
7999
8034
|
r
|
|
8000
8035
|
);
|
|
8001
8036
|
}
|
|
8002
|
-
function
|
|
8003
|
-
let e =
|
|
8037
|
+
function Vi() {
|
|
8038
|
+
let e = Ki(), n = Fi(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;
|
|
8004
8039
|
return console.error(
|
|
8005
8040
|
"Error handled by React Router default ErrorBoundary:",
|
|
8006
8041
|
e
|
|
8007
8042
|
), 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);
|
|
8008
8043
|
}
|
|
8009
|
-
var
|
|
8044
|
+
var Hi = /* @__PURE__ */ R.createElement(Vi, null), Bi = class extends R.Component {
|
|
8010
8045
|
constructor(e) {
|
|
8011
8046
|
super(e), this.state = {
|
|
8012
8047
|
location: e.location,
|
|
@@ -8036,7 +8071,7 @@ var Bi = /* @__PURE__ */ R.createElement(Hi, null), qi = class extends R.Compone
|
|
|
8036
8071
|
);
|
|
8037
8072
|
}
|
|
8038
8073
|
render() {
|
|
8039
|
-
return this.state.error !== void 0 ? /* @__PURE__ */ R.createElement(
|
|
8074
|
+
return this.state.error !== void 0 ? /* @__PURE__ */ R.createElement(Pe.Provider, { value: this.props.routeContext }, /* @__PURE__ */ R.createElement(
|
|
8040
8075
|
dn.Provider,
|
|
8041
8076
|
{
|
|
8042
8077
|
value: this.state.error,
|
|
@@ -8045,11 +8080,11 @@ var Bi = /* @__PURE__ */ R.createElement(Hi, null), qi = class extends R.Compone
|
|
|
8045
8080
|
)) : this.props.children;
|
|
8046
8081
|
}
|
|
8047
8082
|
};
|
|
8048
|
-
function
|
|
8083
|
+
function qi({ routeContext: e, match: n, children: t }) {
|
|
8049
8084
|
let r = R.useContext(Ie);
|
|
8050
|
-
return r && r.static && r.staticContext && (n.route.errorElement || n.route.ErrorBoundary) && (r.staticContext._deepestRenderedBoundaryId = n.route.id), /* @__PURE__ */ R.createElement(
|
|
8085
|
+
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);
|
|
8051
8086
|
}
|
|
8052
|
-
function
|
|
8087
|
+
function Gi(e, n = [], t = null, r = null) {
|
|
8053
8088
|
if (e == null) {
|
|
8054
8089
|
if (!t)
|
|
8055
8090
|
return null;
|
|
@@ -8065,7 +8100,7 @@ function Wi(e, n = [], t = null, r = null) {
|
|
|
8065
8100
|
let c = o.findIndex(
|
|
8066
8101
|
(u) => u.route.id && (a == null ? void 0 : a[u.route.id]) !== void 0
|
|
8067
8102
|
);
|
|
8068
|
-
|
|
8103
|
+
xe(
|
|
8069
8104
|
c >= 0,
|
|
8070
8105
|
`Could not find a matching route for errors on route IDs: ${Object.keys(
|
|
8071
8106
|
a
|
|
@@ -8090,15 +8125,15 @@ function Wi(e, n = [], t = null, r = null) {
|
|
|
8090
8125
|
return o.reduceRight(
|
|
8091
8126
|
(c, u, d) => {
|
|
8092
8127
|
let g, p = !1, f = null, v = null;
|
|
8093
|
-
t && (g = a && u.route.id ? a[u.route.id] : void 0, f = u.route.errorElement ||
|
|
8128
|
+
t && (g = a && u.route.id ? a[u.route.id] : void 0, f = u.route.errorElement || Hi, i && (l < 0 && d === 0 ? (Dr(
|
|
8094
8129
|
"route-fallback",
|
|
8095
8130
|
!1,
|
|
8096
8131
|
"No `HydrateFallback` element provided to render during initial hydration"
|
|
8097
8132
|
), p = !0, v = null) : l === d && (p = !0, v = u.route.hydrateFallbackElement || null)));
|
|
8098
8133
|
let m = n.concat(o.slice(0, d + 1)), b = () => {
|
|
8099
|
-
let
|
|
8100
|
-
return g ?
|
|
8101
|
-
|
|
8134
|
+
let h;
|
|
8135
|
+
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(
|
|
8136
|
+
qi,
|
|
8102
8137
|
{
|
|
8103
8138
|
match: u,
|
|
8104
8139
|
routeContext: {
|
|
@@ -8106,12 +8141,12 @@ function Wi(e, n = [], t = null, r = null) {
|
|
|
8106
8141
|
matches: m,
|
|
8107
8142
|
isDataRoute: t != null
|
|
8108
8143
|
},
|
|
8109
|
-
children:
|
|
8144
|
+
children: h
|
|
8110
8145
|
}
|
|
8111
8146
|
);
|
|
8112
8147
|
};
|
|
8113
8148
|
return t && (u.route.ErrorBoundary || u.route.errorElement || d === 0) ? /* @__PURE__ */ R.createElement(
|
|
8114
|
-
|
|
8149
|
+
Bi,
|
|
8115
8150
|
{
|
|
8116
8151
|
location: t.location,
|
|
8117
8152
|
revalidation: t.revalidation,
|
|
@@ -8128,34 +8163,34 @@ function Wi(e, n = [], t = null, r = null) {
|
|
|
8128
8163
|
function pn(e) {
|
|
8129
8164
|
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
8130
8165
|
}
|
|
8131
|
-
function
|
|
8166
|
+
function Wi(e) {
|
|
8132
8167
|
let n = R.useContext(Ie);
|
|
8133
|
-
return
|
|
8168
|
+
return xe(n, pn(e)), n;
|
|
8134
8169
|
}
|
|
8135
|
-
function
|
|
8136
|
-
let n = R.useContext(
|
|
8137
|
-
return
|
|
8170
|
+
function Ui(e) {
|
|
8171
|
+
let n = R.useContext(xt);
|
|
8172
|
+
return xe(n, pn(e)), n;
|
|
8138
8173
|
}
|
|
8139
|
-
function
|
|
8140
|
-
let n = R.useContext(
|
|
8141
|
-
return
|
|
8174
|
+
function Yi(e) {
|
|
8175
|
+
let n = R.useContext(Pe);
|
|
8176
|
+
return xe(n, pn(e)), n;
|
|
8142
8177
|
}
|
|
8143
8178
|
function fn(e) {
|
|
8144
|
-
let n =
|
|
8145
|
-
return
|
|
8179
|
+
let n = Yi(e), t = n.matches[n.matches.length - 1];
|
|
8180
|
+
return xe(
|
|
8146
8181
|
t.route.id,
|
|
8147
8182
|
`${e} can only be used on routes that contain a unique "id"`
|
|
8148
8183
|
), t.route.id;
|
|
8149
8184
|
}
|
|
8150
|
-
function
|
|
8185
|
+
function Zi() {
|
|
8151
8186
|
return fn(
|
|
8152
8187
|
"useRouteId"
|
|
8153
8188
|
/* UseRouteId */
|
|
8154
8189
|
);
|
|
8155
8190
|
}
|
|
8156
|
-
function
|
|
8191
|
+
function Ki() {
|
|
8157
8192
|
var r;
|
|
8158
|
-
let e = R.useContext(dn), n =
|
|
8193
|
+
let e = R.useContext(dn), n = Ui(
|
|
8159
8194
|
"useRouteError"
|
|
8160
8195
|
/* UseRouteError */
|
|
8161
8196
|
), t = fn(
|
|
@@ -8164,8 +8199,8 @@ function Xi() {
|
|
|
8164
8199
|
);
|
|
8165
8200
|
return e !== void 0 ? e : (r = n.errors) == null ? void 0 : r[t];
|
|
8166
8201
|
}
|
|
8167
|
-
function
|
|
8168
|
-
let { router: e } =
|
|
8202
|
+
function Xi() {
|
|
8203
|
+
let { router: e } = Wi(
|
|
8169
8204
|
"useNavigate"
|
|
8170
8205
|
/* UseNavigateStable */
|
|
8171
8206
|
), n = fn(
|
|
@@ -8176,46 +8211,46 @@ function Ji() {
|
|
|
8176
8211
|
t.current = !0;
|
|
8177
8212
|
}), R.useCallback(
|
|
8178
8213
|
async (o, a = {}) => {
|
|
8179
|
-
|
|
8214
|
+
_e(t.current, Ar), t.current && (typeof o == "number" ? e.navigate(o) : await e.navigate(o, { fromRouteId: n, ...a }));
|
|
8180
8215
|
},
|
|
8181
8216
|
[e, n]
|
|
8182
8217
|
);
|
|
8183
8218
|
}
|
|
8184
8219
|
var Jn = {};
|
|
8185
8220
|
function Dr(e, n, t) {
|
|
8186
|
-
!n && !Jn[e] && (Jn[e] = !0,
|
|
8221
|
+
!n && !Jn[e] && (Jn[e] = !0, _e(!1, t));
|
|
8187
8222
|
}
|
|
8188
|
-
R.memo(
|
|
8189
|
-
function
|
|
8223
|
+
R.memo(Ji);
|
|
8224
|
+
function Ji({
|
|
8190
8225
|
routes: e,
|
|
8191
8226
|
future: n,
|
|
8192
8227
|
state: t
|
|
8193
8228
|
}) {
|
|
8194
|
-
return
|
|
8229
|
+
return Ii(e, void 0, t, n);
|
|
8195
8230
|
}
|
|
8196
8231
|
var ut = "get", dt = "application/x-www-form-urlencoded";
|
|
8197
8232
|
function bt(e) {
|
|
8198
8233
|
return e != null && typeof e.tagName == "string";
|
|
8199
8234
|
}
|
|
8200
|
-
function
|
|
8235
|
+
function Qi(e) {
|
|
8201
8236
|
return bt(e) && e.tagName.toLowerCase() === "button";
|
|
8202
8237
|
}
|
|
8203
|
-
function
|
|
8238
|
+
function el(e) {
|
|
8204
8239
|
return bt(e) && e.tagName.toLowerCase() === "form";
|
|
8205
8240
|
}
|
|
8206
|
-
function
|
|
8241
|
+
function tl(e) {
|
|
8207
8242
|
return bt(e) && e.tagName.toLowerCase() === "input";
|
|
8208
8243
|
}
|
|
8209
|
-
function
|
|
8244
|
+
function nl(e) {
|
|
8210
8245
|
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
|
|
8211
8246
|
}
|
|
8212
|
-
function
|
|
8247
|
+
function rl(e, n) {
|
|
8213
8248
|
return e.button === 0 && // Ignore everything but left clicks
|
|
8214
8249
|
(!n || n === "_self") && // Let browser handle "target=_blank" etc.
|
|
8215
|
-
!
|
|
8250
|
+
!nl(e);
|
|
8216
8251
|
}
|
|
8217
8252
|
var ct = null;
|
|
8218
|
-
function
|
|
8253
|
+
function ol() {
|
|
8219
8254
|
if (ct === null)
|
|
8220
8255
|
try {
|
|
8221
8256
|
new FormData(
|
|
@@ -8228,30 +8263,30 @@ function al() {
|
|
|
8228
8263
|
}
|
|
8229
8264
|
return ct;
|
|
8230
8265
|
}
|
|
8231
|
-
var
|
|
8266
|
+
var al = /* @__PURE__ */ new Set([
|
|
8232
8267
|
"application/x-www-form-urlencoded",
|
|
8233
8268
|
"multipart/form-data",
|
|
8234
8269
|
"text/plain"
|
|
8235
8270
|
]);
|
|
8236
8271
|
function Bt(e) {
|
|
8237
|
-
return e != null && !
|
|
8272
|
+
return e != null && !al.has(e) ? (_e(
|
|
8238
8273
|
!1,
|
|
8239
8274
|
`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${dt}"`
|
|
8240
8275
|
), null) : e;
|
|
8241
8276
|
}
|
|
8242
|
-
function
|
|
8277
|
+
function il(e, n) {
|
|
8243
8278
|
let t, r, o, a, i;
|
|
8244
|
-
if (
|
|
8279
|
+
if (el(e)) {
|
|
8245
8280
|
let l = e.getAttribute("action");
|
|
8246
8281
|
r = l ? Fe(l, n) : null, t = e.getAttribute("method") || ut, o = Bt(e.getAttribute("enctype")) || dt, a = new FormData(e);
|
|
8247
|
-
} else if (
|
|
8282
|
+
} else if (Qi(e) || tl(e) && (e.type === "submit" || e.type === "image")) {
|
|
8248
8283
|
let l = e.form;
|
|
8249
8284
|
if (l == null)
|
|
8250
8285
|
throw new Error(
|
|
8251
8286
|
'Cannot submit a <button> or <input type="submit"> without a <form>'
|
|
8252
8287
|
);
|
|
8253
8288
|
let c = e.getAttribute("formaction") || l.getAttribute("action");
|
|
8254
|
-
if (r = c ? Fe(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), !
|
|
8289
|
+
if (r = c ? Fe(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), !ol()) {
|
|
8255
8290
|
let { name: u, type: d, value: g } = e;
|
|
8256
8291
|
if (d === "image") {
|
|
8257
8292
|
let p = u ? `${u}.` : "";
|
|
@@ -8272,7 +8307,7 @@ function mn(e, n) {
|
|
|
8272
8307
|
if (e === !1 || e === null || typeof e > "u")
|
|
8273
8308
|
throw new Error(n);
|
|
8274
8309
|
}
|
|
8275
|
-
function
|
|
8310
|
+
function ll(e, n, t) {
|
|
8276
8311
|
let r = typeof e == "string" ? new URL(
|
|
8277
8312
|
e,
|
|
8278
8313
|
// This can be called during the SSR flow via PrefetchPageLinksImpl so
|
|
@@ -8281,7 +8316,7 @@ function sl(e, n, t) {
|
|
|
8281
8316
|
) : e;
|
|
8282
8317
|
return r.pathname === "/" ? r.pathname = `_root.${t}` : n && Fe(r.pathname, n) === "/" ? r.pathname = `${n.replace(/\/$/, "")}/_root.${t}` : r.pathname = `${r.pathname.replace(/\/$/, "")}.${t}`, r;
|
|
8283
8318
|
}
|
|
8284
|
-
async function
|
|
8319
|
+
async function sl(e, n) {
|
|
8285
8320
|
if (e.id in n)
|
|
8286
8321
|
return n[e.id];
|
|
8287
8322
|
try {
|
|
@@ -8298,22 +8333,22 @@ async function cl(e, n) {
|
|
|
8298
8333
|
});
|
|
8299
8334
|
}
|
|
8300
8335
|
}
|
|
8301
|
-
function
|
|
8336
|
+
function cl(e) {
|
|
8302
8337
|
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";
|
|
8303
8338
|
}
|
|
8304
|
-
async function
|
|
8339
|
+
async function ul(e, n, t) {
|
|
8305
8340
|
let r = await Promise.all(
|
|
8306
8341
|
e.map(async (o) => {
|
|
8307
8342
|
let a = n.routes[o.route.id];
|
|
8308
8343
|
if (a) {
|
|
8309
|
-
let i = await
|
|
8344
|
+
let i = await sl(a, t);
|
|
8310
8345
|
return i.links ? i.links() : [];
|
|
8311
8346
|
}
|
|
8312
8347
|
return [];
|
|
8313
8348
|
})
|
|
8314
8349
|
);
|
|
8315
|
-
return
|
|
8316
|
-
r.flat(1).filter(
|
|
8350
|
+
return ml(
|
|
8351
|
+
r.flat(1).filter(cl).filter((o) => o.rel === "stylesheet" || o.rel === "preload").map(
|
|
8317
8352
|
(o) => o.rel === "stylesheet" ? { ...o, rel: "prefetch", as: "style" } : { ...o, rel: "prefetch" }
|
|
8318
8353
|
)
|
|
8319
8354
|
);
|
|
@@ -8354,8 +8389,8 @@ function Qn(e, n, t, r, o, a) {
|
|
|
8354
8389
|
return !0;
|
|
8355
8390
|
}) : [];
|
|
8356
8391
|
}
|
|
8357
|
-
function
|
|
8358
|
-
return
|
|
8392
|
+
function dl(e, n, { includeHydrateFallback: t } = {}) {
|
|
8393
|
+
return pl(
|
|
8359
8394
|
e.map((r) => {
|
|
8360
8395
|
let o = n.routes[r.route.id];
|
|
8361
8396
|
if (!o) return [];
|
|
@@ -8364,19 +8399,19 @@ function pl(e, n, { includeHydrateFallback: t } = {}) {
|
|
|
8364
8399
|
}).flat(1)
|
|
8365
8400
|
);
|
|
8366
8401
|
}
|
|
8367
|
-
function
|
|
8402
|
+
function pl(e) {
|
|
8368
8403
|
return [...new Set(e)];
|
|
8369
8404
|
}
|
|
8370
|
-
function
|
|
8405
|
+
function fl(e) {
|
|
8371
8406
|
let n = {}, t = Object.keys(e).sort();
|
|
8372
8407
|
for (let r of t)
|
|
8373
8408
|
n[r] = e[r];
|
|
8374
8409
|
return n;
|
|
8375
8410
|
}
|
|
8376
|
-
function
|
|
8411
|
+
function ml(e, n) {
|
|
8377
8412
|
let t = /* @__PURE__ */ new Set();
|
|
8378
8413
|
return new Set(n), e.reduce((r, o) => {
|
|
8379
|
-
let a = JSON.stringify(
|
|
8414
|
+
let a = JSON.stringify(fl(o));
|
|
8380
8415
|
return t.has(a) || (t.add(a), r.push({ key: a, link: o })), r;
|
|
8381
8416
|
}, []);
|
|
8382
8417
|
}
|
|
@@ -8387,8 +8422,8 @@ function zr() {
|
|
|
8387
8422
|
"You must render this element inside a <DataRouterContext.Provider> element"
|
|
8388
8423
|
), e;
|
|
8389
8424
|
}
|
|
8390
|
-
function
|
|
8391
|
-
let e = R.useContext(
|
|
8425
|
+
function gl() {
|
|
8426
|
+
let e = R.useContext(xt);
|
|
8392
8427
|
return mn(
|
|
8393
8428
|
e,
|
|
8394
8429
|
"You must render this element inside a <DataRouterStateContext.Provider> element"
|
|
@@ -8403,12 +8438,12 @@ function Tr() {
|
|
|
8403
8438
|
"You must render this element inside a <HydratedRouter> element"
|
|
8404
8439
|
), e;
|
|
8405
8440
|
}
|
|
8406
|
-
function
|
|
8441
|
+
function vl(e, n) {
|
|
8407
8442
|
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);
|
|
8408
8443
|
R.useEffect(() => {
|
|
8409
8444
|
if (e === "render" && i(!0), e === "viewport") {
|
|
8410
|
-
let m = (
|
|
8411
|
-
|
|
8445
|
+
let m = (h) => {
|
|
8446
|
+
h.forEach((k) => {
|
|
8412
8447
|
i(k.isIntersecting);
|
|
8413
8448
|
});
|
|
8414
8449
|
}, b = new IntersectionObserver(m, { threshold: 0.5 });
|
|
@@ -8453,13 +8488,13 @@ function xl({ page: e, ...n }) {
|
|
|
8453
8488
|
() => $r(t.routes, e, t.basename),
|
|
8454
8489
|
[t.routes, e, t.basename]
|
|
8455
8490
|
);
|
|
8456
|
-
return r ? /* @__PURE__ */ R.createElement(
|
|
8491
|
+
return r ? /* @__PURE__ */ R.createElement(bl, { page: e, matches: r, ...n }) : null;
|
|
8457
8492
|
}
|
|
8458
|
-
function
|
|
8493
|
+
function hl(e) {
|
|
8459
8494
|
let { manifest: n, routeModules: t } = Tr(), [r, o] = R.useState([]);
|
|
8460
8495
|
return R.useEffect(() => {
|
|
8461
8496
|
let a = !1;
|
|
8462
|
-
return
|
|
8497
|
+
return ul(e, n, t).then(
|
|
8463
8498
|
(i) => {
|
|
8464
8499
|
a || o(i);
|
|
8465
8500
|
}
|
|
@@ -8468,12 +8503,12 @@ function bl(e) {
|
|
|
8468
8503
|
};
|
|
8469
8504
|
}, [e, n, t]), r;
|
|
8470
8505
|
}
|
|
8471
|
-
function
|
|
8506
|
+
function bl({
|
|
8472
8507
|
page: e,
|
|
8473
8508
|
matches: n,
|
|
8474
8509
|
...t
|
|
8475
8510
|
}) {
|
|
8476
|
-
let r = De(), { manifest: o, routeModules: a } = Tr(), { basename: i } = zr(), { loaderData: l, matches: c } =
|
|
8511
|
+
let r = De(), { manifest: o, routeModules: a } = Tr(), { basename: i } = zr(), { loaderData: l, matches: c } = gl(), u = R.useMemo(
|
|
8477
8512
|
() => Qn(
|
|
8478
8513
|
e,
|
|
8479
8514
|
n,
|
|
@@ -8497,16 +8532,16 @@ function wl({
|
|
|
8497
8532
|
if (e === r.pathname + r.search + r.hash)
|
|
8498
8533
|
return [];
|
|
8499
8534
|
let v = /* @__PURE__ */ new Set(), m = !1;
|
|
8500
|
-
if (n.forEach((
|
|
8535
|
+
if (n.forEach((h) => {
|
|
8501
8536
|
var w;
|
|
8502
|
-
let k = o.routes[
|
|
8503
|
-
!k || !k.hasLoader || (!u.some(($) => $.route.id ===
|
|
8537
|
+
let k = o.routes[h.route.id];
|
|
8538
|
+
!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));
|
|
8504
8539
|
}), v.size === 0)
|
|
8505
8540
|
return [];
|
|
8506
|
-
let b =
|
|
8541
|
+
let b = ll(e, i, "data");
|
|
8507
8542
|
return m && v.size > 0 && b.searchParams.set(
|
|
8508
8543
|
"_routes",
|
|
8509
|
-
n.filter((
|
|
8544
|
+
n.filter((h) => v.has(h.route.id)).map((h) => h.route.id).join(",")
|
|
8510
8545
|
), [b.pathname + b.search];
|
|
8511
8546
|
}, [
|
|
8512
8547
|
i,
|
|
@@ -8518,16 +8553,16 @@ function wl({
|
|
|
8518
8553
|
e,
|
|
8519
8554
|
a
|
|
8520
8555
|
]), p = R.useMemo(
|
|
8521
|
-
() =>
|
|
8556
|
+
() => dl(d, o),
|
|
8522
8557
|
[d, o]
|
|
8523
|
-
), f =
|
|
8558
|
+
), f = hl(d);
|
|
8524
8559
|
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 }) => (
|
|
8525
8560
|
// these don't spread `linkProps` because they are full link descriptors
|
|
8526
8561
|
// already with their own props
|
|
8527
8562
|
/* @__PURE__ */ R.createElement("link", { key: v, ...m })
|
|
8528
8563
|
)));
|
|
8529
8564
|
}
|
|
8530
|
-
function
|
|
8565
|
+
function wl(...e) {
|
|
8531
8566
|
return (n) => {
|
|
8532
8567
|
e.forEach((t) => {
|
|
8533
8568
|
typeof t == "function" ? t(n) : t != null && (t.current = n);
|
|
@@ -8555,21 +8590,21 @@ var Ir = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, vn = R.forwardRef(
|
|
|
8555
8590
|
viewTransition: g,
|
|
8556
8591
|
...p
|
|
8557
8592
|
}, f) {
|
|
8558
|
-
let { basename: v } = R.useContext(
|
|
8593
|
+
let { basename: v } = R.useContext(Ee), m = typeof u == "string" && Ir.test(u), b, h = !1;
|
|
8559
8594
|
if (typeof u == "string" && m && (b = u, Or))
|
|
8560
8595
|
try {
|
|
8561
8596
|
let F = new URL(window.location.href), Z = u.startsWith("//") ? new URL(F.protocol + u) : new URL(u), ae = Fe(Z.pathname, v);
|
|
8562
|
-
Z.origin === F.origin && ae != null ? u = ae + Z.search + Z.hash :
|
|
8597
|
+
Z.origin === F.origin && ae != null ? u = ae + Z.search + Z.hash : h = !0;
|
|
8563
8598
|
} catch {
|
|
8564
|
-
|
|
8599
|
+
_e(
|
|
8565
8600
|
!1,
|
|
8566
8601
|
`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
|
|
8567
8602
|
);
|
|
8568
8603
|
}
|
|
8569
|
-
let k =
|
|
8604
|
+
let k = zi(u, { relative: o }), [w, $, y] = vl(
|
|
8570
8605
|
r,
|
|
8571
8606
|
p
|
|
8572
|
-
), O =
|
|
8607
|
+
), O = Sl(u, {
|
|
8573
8608
|
replace: i,
|
|
8574
8609
|
state: l,
|
|
8575
8610
|
target: c,
|
|
@@ -8588,8 +8623,8 @@ var Ir = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, vn = R.forwardRef(
|
|
|
8588
8623
|
...p,
|
|
8589
8624
|
...y,
|
|
8590
8625
|
href: b || k,
|
|
8591
|
-
onClick:
|
|
8592
|
-
ref:
|
|
8626
|
+
onClick: h || a ? n : D,
|
|
8627
|
+
ref: wl(f, $),
|
|
8593
8628
|
target: c,
|
|
8594
8629
|
"data-discover": !m && t === "render" ? "true" : void 0
|
|
8595
8630
|
}
|
|
@@ -8611,12 +8646,12 @@ var Vr = R.forwardRef(
|
|
|
8611
8646
|
children: c,
|
|
8612
8647
|
...u
|
|
8613
8648
|
}, d) {
|
|
8614
|
-
let g = Ke(i, { relative: u.relative }), p = De(), f = R.useContext(
|
|
8649
|
+
let g = Ke(i, { relative: u.relative }), p = De(), 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
|
|
8615
8650
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
8616
|
-
|
|
8617
|
-
t || (k = k.toLowerCase(), w = w ? w.toLowerCase() : null,
|
|
8618
|
-
const $ =
|
|
8619
|
-
let y = k ===
|
|
8651
|
+
_l(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;
|
|
8652
|
+
t || (k = k.toLowerCase(), w = w ? w.toLowerCase() : null, h = h.toLowerCase()), w && m && (w = Fe(w, m) || w);
|
|
8653
|
+
const $ = h !== "/" && h.endsWith("/") ? h.length - 1 : h.length;
|
|
8654
|
+
let y = k === h || !o && k.startsWith(h) && k.charAt($) === "/", O = w != null && (w === h || !o && w.startsWith(h) && w.charAt(h.length) === "/"), D = {
|
|
8620
8655
|
isActive: y,
|
|
8621
8656
|
isPending: O,
|
|
8622
8657
|
isTransitioning: b
|
|
@@ -8644,7 +8679,7 @@ var Vr = R.forwardRef(
|
|
|
8644
8679
|
}
|
|
8645
8680
|
);
|
|
8646
8681
|
Vr.displayName = "NavLink";
|
|
8647
|
-
var
|
|
8682
|
+
var yl = R.forwardRef(
|
|
8648
8683
|
({
|
|
8649
8684
|
discover: e = "render",
|
|
8650
8685
|
fetcherKey: n,
|
|
@@ -8660,7 +8695,7 @@ var Cl = R.forwardRef(
|
|
|
8660
8695
|
viewTransition: g,
|
|
8661
8696
|
...p
|
|
8662
8697
|
}, f) => {
|
|
8663
|
-
let v =
|
|
8698
|
+
let v = kl(), m = $l(l, { relative: u }), b = i.toLowerCase() === "get" ? "get" : "post", h = typeof l == "string" && Ir.test(l), k = (w) => {
|
|
8664
8699
|
if (c && c(w), w.defaultPrevented) return;
|
|
8665
8700
|
w.preventDefault();
|
|
8666
8701
|
let $ = w.nativeEvent.submitter, y = ($ == null ? void 0 : $.getAttribute("formmethod")) || i;
|
|
@@ -8683,20 +8718,20 @@ var Cl = R.forwardRef(
|
|
|
8683
8718
|
action: m,
|
|
8684
8719
|
onSubmit: r ? c : k,
|
|
8685
8720
|
...p,
|
|
8686
|
-
"data-discover": !
|
|
8721
|
+
"data-discover": !h && e === "render" ? "true" : void 0
|
|
8687
8722
|
}
|
|
8688
8723
|
);
|
|
8689
8724
|
}
|
|
8690
8725
|
);
|
|
8691
|
-
|
|
8692
|
-
function
|
|
8726
|
+
yl.displayName = "Form";
|
|
8727
|
+
function Cl(e) {
|
|
8693
8728
|
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
8694
8729
|
}
|
|
8695
8730
|
function Hr(e) {
|
|
8696
8731
|
let n = R.useContext(Ie);
|
|
8697
|
-
return
|
|
8732
|
+
return xe(n, Cl(e)), n;
|
|
8698
8733
|
}
|
|
8699
|
-
function
|
|
8734
|
+
function Sl(e, {
|
|
8700
8735
|
target: n,
|
|
8701
8736
|
replace: t,
|
|
8702
8737
|
state: r,
|
|
@@ -8704,10 +8739,10 @@ function jl(e, {
|
|
|
8704
8739
|
relative: a,
|
|
8705
8740
|
viewTransition: i
|
|
8706
8741
|
} = {}) {
|
|
8707
|
-
let l =
|
|
8742
|
+
let l = Ti(), c = De(), u = Ke(e, { relative: a });
|
|
8708
8743
|
return R.useCallback(
|
|
8709
8744
|
(d) => {
|
|
8710
|
-
if (
|
|
8745
|
+
if (rl(d, n)) {
|
|
8711
8746
|
d.preventDefault();
|
|
8712
8747
|
let g = t !== void 0 ? t : nn(c) === nn(u);
|
|
8713
8748
|
l(e, {
|
|
@@ -8733,20 +8768,20 @@ function jl(e, {
|
|
|
8733
8768
|
]
|
|
8734
8769
|
);
|
|
8735
8770
|
}
|
|
8736
|
-
var
|
|
8737
|
-
function
|
|
8771
|
+
var jl = 0, Rl = () => `__${String(++jl)}__`;
|
|
8772
|
+
function kl() {
|
|
8738
8773
|
let { router: e } = Hr(
|
|
8739
8774
|
"useSubmit"
|
|
8740
8775
|
/* UseSubmit */
|
|
8741
|
-
), { basename: n } = R.useContext(
|
|
8776
|
+
), { basename: n } = R.useContext(Ee), t = Zi();
|
|
8742
8777
|
return R.useCallback(
|
|
8743
8778
|
async (r, o = {}) => {
|
|
8744
|
-
let { action: a, method: i, encType: l, formData: c, body: u } =
|
|
8779
|
+
let { action: a, method: i, encType: l, formData: c, body: u } = il(
|
|
8745
8780
|
r,
|
|
8746
8781
|
n
|
|
8747
8782
|
);
|
|
8748
8783
|
if (o.navigate === !1) {
|
|
8749
|
-
let d = o.fetcherKey ||
|
|
8784
|
+
let d = o.fetcherKey || Rl();
|
|
8750
8785
|
await e.fetch(d, t, o.action || a, {
|
|
8751
8786
|
preventScrollReset: o.preventScrollReset,
|
|
8752
8787
|
formData: c,
|
|
@@ -8772,9 +8807,9 @@ function $l() {
|
|
|
8772
8807
|
[e, n, t]
|
|
8773
8808
|
);
|
|
8774
8809
|
}
|
|
8775
|
-
function
|
|
8776
|
-
let { basename: t } = R.useContext(
|
|
8777
|
-
|
|
8810
|
+
function $l(e, { relative: n } = {}) {
|
|
8811
|
+
let { basename: t } = R.useContext(Ee), r = R.useContext(Pe);
|
|
8812
|
+
xe(r, "useFormAction must be used inside a RouteContext");
|
|
8778
8813
|
let [o] = r.matches.slice(-1), a = { ...Ke(e || ".", { relative: n }) }, i = De();
|
|
8779
8814
|
if (e == null) {
|
|
8780
8815
|
a.search = i.search;
|
|
@@ -8785,11 +8820,11 @@ function _l(e, { relative: n } = {}) {
|
|
|
8785
8820
|
a.search = d ? `?${d}` : "";
|
|
8786
8821
|
}
|
|
8787
8822
|
}
|
|
8788
|
-
return (!e || e === ".") && o.route.index && (a.search = a.search ? a.search.replace(/^\?/, "?index&") : "?index"), t !== "/" && (a.pathname = a.pathname === "/" ? t :
|
|
8823
|
+
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);
|
|
8789
8824
|
}
|
|
8790
|
-
function
|
|
8825
|
+
function _l(e, { relative: n } = {}) {
|
|
8791
8826
|
let t = R.useContext(Fr);
|
|
8792
|
-
|
|
8827
|
+
xe(
|
|
8793
8828
|
t != null,
|
|
8794
8829
|
"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"
|
|
8795
8830
|
);
|
|
@@ -8838,7 +8873,7 @@ const cs = ({
|
|
|
8838
8873
|
}
|
|
8839
8874
|
) : /* @__PURE__ */ s.jsx("span", { className: "text-color-gray-500 font-medium", children: r.label }),
|
|
8840
8875
|
o < e.length - 1 && /* @__PURE__ */ s.jsx("span", { className: "mx-2 text-color-gray-400", children: n })
|
|
8841
|
-
] }, o)) }) }), er = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
|
|
8876
|
+
] }, o)) }) }), er = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], El = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], ds = ({
|
|
8842
8877
|
mode: e = "single",
|
|
8843
8878
|
type: n = "inline",
|
|
8844
8879
|
showTime: t = !1,
|
|
@@ -8851,7 +8886,7 @@ const cs = ({
|
|
|
8851
8886
|
disableAfter: u,
|
|
8852
8887
|
selectedDate: d
|
|
8853
8888
|
}) => {
|
|
8854
|
-
const [g, p] = K(!1), [f, v] = K(null), [m, b] = K(/* @__PURE__ */ new Date()), [
|
|
8889
|
+
const [g, p] = K(!1), [f, v] = K(null), [m, b] = K(/* @__PURE__ */ new Date()), [h, k] = K(
|
|
8855
8890
|
d ? new Date(d) : null
|
|
8856
8891
|
), [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(
|
|
8857
8892
|
d ? new Date(d) : null
|
|
@@ -8863,16 +8898,16 @@ const cs = ({
|
|
|
8863
8898
|
S.stopPropagation(), v(S.currentTarget), p(!0);
|
|
8864
8899
|
}, X = () => {
|
|
8865
8900
|
p(!1);
|
|
8866
|
-
},
|
|
8867
|
-
n === "inline" && ae.current && !ae.current.contains(S.target) && (e === "single" ?
|
|
8901
|
+
}, x = (S) => !!(c && S.getTime() < c || u && S.getTime() > u), C = (S) => {
|
|
8902
|
+
n === "inline" && ae.current && !ae.current.contains(S.target) && (e === "single" ? h || k(null) : e === "range" && (!w || !y) && ($(null), O(null)), p(!1));
|
|
8868
8903
|
};
|
|
8869
8904
|
ce(() => (g ? document.addEventListener("mousedown", C) : document.removeEventListener("mousedown", C), () => {
|
|
8870
8905
|
document.removeEventListener("mousedown", C);
|
|
8871
8906
|
}), [g]);
|
|
8872
8907
|
const L = (S) => {
|
|
8873
|
-
!S ||
|
|
8908
|
+
!S || x(S) || (e === "single" ? k(S) : e === "range" && (!w || w && y ? ($(S), O(null)) : S >= w ? O(S) : $(S)));
|
|
8874
8909
|
}, M = (S) => {
|
|
8875
|
-
if (!S ||
|
|
8910
|
+
if (!S || x(S)) {
|
|
8876
8911
|
V(null);
|
|
8877
8912
|
return;
|
|
8878
8913
|
}
|
|
@@ -8881,7 +8916,7 @@ const cs = ({
|
|
|
8881
8916
|
V(null);
|
|
8882
8917
|
}, I = () => {
|
|
8883
8918
|
if (p(!1), e === "single") {
|
|
8884
|
-
const S = r ? /* @__PURE__ */ new Date() :
|
|
8919
|
+
const S = r ? /* @__PURE__ */ new Date() : h, j = S ? new Date(
|
|
8885
8920
|
S.getFullYear(),
|
|
8886
8921
|
S.getMonth(),
|
|
8887
8922
|
S.getDate(),
|
|
@@ -8903,7 +8938,7 @@ const cs = ({
|
|
|
8903
8938
|
}, E = (S) => {
|
|
8904
8939
|
if (!S) return !1;
|
|
8905
8940
|
if (e === "single")
|
|
8906
|
-
return (
|
|
8941
|
+
return (h == null ? void 0 : h.toDateString()) === S.toDateString();
|
|
8907
8942
|
if (e === "range") {
|
|
8908
8943
|
if (w && !y && D) {
|
|
8909
8944
|
const j = w < D ? w : D, _ = w < D ? D : w;
|
|
@@ -8964,7 +8999,7 @@ const cs = ({
|
|
|
8964
8999
|
!r && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
8965
9000
|
/* @__PURE__ */ s.jsxs("div", { className: "flex items-center justify-between mb-3", children: [
|
|
8966
9001
|
/* @__PURE__ */ s.jsx(
|
|
8967
|
-
|
|
9002
|
+
Re,
|
|
8968
9003
|
{
|
|
8969
9004
|
variant: "transparent",
|
|
8970
9005
|
size: "small",
|
|
@@ -8995,7 +9030,7 @@ const cs = ({
|
|
|
8995
9030
|
)
|
|
8996
9031
|
] }),
|
|
8997
9032
|
/* @__PURE__ */ s.jsx(
|
|
8998
|
-
|
|
9033
|
+
Re,
|
|
8999
9034
|
{
|
|
9000
9035
|
variant: "transparent",
|
|
9001
9036
|
size: "small",
|
|
@@ -9007,14 +9042,14 @@ const cs = ({
|
|
|
9007
9042
|
)
|
|
9008
9043
|
] }),
|
|
9009
9044
|
/* @__PURE__ */ s.jsxs("div", { className: "grid grid-columns-7 gap-1 text-center text-sm mb-2", children: [
|
|
9010
|
-
|
|
9045
|
+
El.map((S) => /* @__PURE__ */ s.jsx("div", { className: "font-semibold", children: S }, S)),
|
|
9011
9046
|
z().map((S, j) => /* @__PURE__ */ s.jsx(
|
|
9012
9047
|
"div",
|
|
9013
9048
|
{
|
|
9014
9049
|
className: `size-8 flex justify-center items-center text-sm rounded-full transition-all
|
|
9015
9050
|
${S ? "hover:bg-color-blue-100 cursor-pointer" : ""}
|
|
9016
9051
|
${S && E(S) ? "bg-color-blue-500 hover:bg-color-blue-500 text-color-white" : ""}
|
|
9017
|
-
${S &&
|
|
9052
|
+
${S && x(S) ? "bg-color-gray-100 text-color-gray-400 !cursor-not-allowed hover:bg-color-gray-100" : ""}`,
|
|
9018
9053
|
onClick: () => S && L(S),
|
|
9019
9054
|
onMouseEnter: () => S && M(S),
|
|
9020
9055
|
onMouseLeave: N,
|
|
@@ -9061,7 +9096,7 @@ const cs = ({
|
|
|
9061
9096
|
]
|
|
9062
9097
|
}
|
|
9063
9098
|
),
|
|
9064
|
-
n === "inline" ? /* @__PURE__ */ s.jsx(s.Fragment, { children: g && Ze(q, document.body) }) : /* @__PURE__ */ s.jsx(
|
|
9099
|
+
n === "inline" ? /* @__PURE__ */ s.jsx(s.Fragment, { children: g && Ze(q, document.body) }) : /* @__PURE__ */ s.jsx(si, { open: g, title: r ? "Select Time" : i, onClose: X, children: /* @__PURE__ */ s.jsx("div", { className: "w-72", children: q }) })
|
|
9065
9100
|
] });
|
|
9066
9101
|
}, ps = ({
|
|
9067
9102
|
tabs: e,
|
|
@@ -9113,7 +9148,7 @@ const cs = ({
|
|
|
9113
9148
|
}, fs = ({
|
|
9114
9149
|
stats: e = [],
|
|
9115
9150
|
className: n = ""
|
|
9116
|
-
}) => /* @__PURE__ */ s.jsx(
|
|
9151
|
+
}) => /* @__PURE__ */ s.jsx(ai, { 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(
|
|
9117
9152
|
"div",
|
|
9118
9153
|
{
|
|
9119
9154
|
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
|
|
@@ -9148,7 +9183,7 @@ function ms({
|
|
|
9148
9183
|
c(d), d.onClick && d.onClick(), i && i(d);
|
|
9149
9184
|
};
|
|
9150
9185
|
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsx(
|
|
9151
|
-
|
|
9186
|
+
ui,
|
|
9152
9187
|
{
|
|
9153
9188
|
open: o,
|
|
9154
9189
|
onClose: a,
|
|
@@ -9199,33 +9234,34 @@ export {
|
|
|
9199
9234
|
is as Accordion,
|
|
9200
9235
|
as as ActionMenu,
|
|
9201
9236
|
ls as Alert,
|
|
9202
|
-
|
|
9237
|
+
xr as Avatar,
|
|
9238
|
+
ql as Backdrop,
|
|
9203
9239
|
ss as Badge,
|
|
9204
9240
|
cs as BottomNavigation,
|
|
9205
9241
|
us as Breadcrumbs,
|
|
9206
9242
|
Gt as Button,
|
|
9207
9243
|
ve as COLOR_MAP,
|
|
9208
|
-
|
|
9209
|
-
|
|
9244
|
+
ai as Card,
|
|
9245
|
+
Al as CardWrapper,
|
|
9210
9246
|
Xl as Carousel,
|
|
9211
|
-
|
|
9247
|
+
Nl as Checkbox,
|
|
9212
9248
|
fs as DashboardStatBoxes,
|
|
9213
9249
|
ds as DatePicker,
|
|
9214
|
-
|
|
9250
|
+
si as Dialog,
|
|
9215
9251
|
ts as Divider,
|
|
9216
|
-
|
|
9217
|
-
|
|
9218
|
-
|
|
9252
|
+
ui as Drawer,
|
|
9253
|
+
Dl as Dropdown,
|
|
9254
|
+
zl as DropzoneUploader,
|
|
9219
9255
|
Jl as EmptyState,
|
|
9220
|
-
|
|
9221
|
-
|
|
9222
|
-
|
|
9256
|
+
Re as IconButton,
|
|
9257
|
+
Hl as List,
|
|
9258
|
+
Bl as ListItem,
|
|
9223
9259
|
oa as Menu,
|
|
9224
9260
|
sa as OtpInput,
|
|
9225
|
-
|
|
9261
|
+
ni as Pagination,
|
|
9226
9262
|
da as PasswordInput,
|
|
9227
|
-
|
|
9228
|
-
|
|
9263
|
+
Tl as Pill,
|
|
9264
|
+
Ol as ProfileImageShowcase,
|
|
9229
9265
|
Zl as Progress,
|
|
9230
9266
|
qt as RANGE_COLOR_MAP,
|
|
9231
9267
|
ns as RadioGroup,
|
|
@@ -9235,15 +9271,15 @@ export {
|
|
|
9235
9271
|
Gl as Skeleton,
|
|
9236
9272
|
Ul as Slider,
|
|
9237
9273
|
Yl as Snackbar,
|
|
9238
|
-
|
|
9239
|
-
|
|
9274
|
+
Il as Stepper,
|
|
9275
|
+
Vl as Table,
|
|
9240
9276
|
ps as Tabs,
|
|
9241
9277
|
Wl as TextArea,
|
|
9242
9278
|
vr as TextInput,
|
|
9243
9279
|
es as ToggleButton,
|
|
9244
9280
|
Ql as ToggleSwitch,
|
|
9245
9281
|
os as Tooltip,
|
|
9246
|
-
|
|
9247
|
-
|
|
9248
|
-
|
|
9282
|
+
ti as Typography,
|
|
9283
|
+
Ll as extendColorMap,
|
|
9284
|
+
Fl as extendRangeColorMap
|
|
9249
9285
|
};
|