@unizap/uniui 1.0.21 → 1.0.22
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/Pill/Pill.type.d.ts +11 -0
- package/dist/uniui.css +1 -1
- package/dist/uniui.js +886 -842
- package/dist/uniui.umd.cjs +52 -53
- package/package.json +1 -1
package/dist/uniui.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import Pe, { useRef as se, useState as K, useEffect as ce, useMemo as Te, useReducer as
|
|
1
|
+
import * as R from "react";
|
|
2
|
+
import Pe, { 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
|
-
function
|
|
4
|
+
function nr(e) {
|
|
5
5
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
6
6
|
}
|
|
7
7
|
var et = { exports: {} }, He = {};
|
|
@@ -15,7 +15,7 @@ var et = { exports: {} }, He = {};
|
|
|
15
15
|
* LICENSE file in the root directory of this source tree.
|
|
16
16
|
*/
|
|
17
17
|
var hn;
|
|
18
|
-
function
|
|
18
|
+
function Xr() {
|
|
19
19
|
if (hn) return He;
|
|
20
20
|
hn = 1;
|
|
21
21
|
var e = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
|
|
@@ -47,7 +47,7 @@ var Be = {};
|
|
|
47
47
|
* LICENSE file in the root directory of this source tree.
|
|
48
48
|
*/
|
|
49
49
|
var xn;
|
|
50
|
-
function
|
|
50
|
+
function Jr() {
|
|
51
51
|
return xn || (xn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
52
52
|
function e(h) {
|
|
53
53
|
if (h == null) return null;
|
|
@@ -81,7 +81,7 @@ function Kr() {
|
|
|
81
81
|
case $:
|
|
82
82
|
var C = h.render;
|
|
83
83
|
return h = h.displayName, h || (h = C.displayName || C.name || "", h = h !== "" ? "ForwardRef(" + h + ")" : "ForwardRef"), h;
|
|
84
|
-
case
|
|
84
|
+
case D:
|
|
85
85
|
return C = h.displayName || null, C !== null ? C : e(h.type) || "Memo";
|
|
86
86
|
case V:
|
|
87
87
|
C = h._payload, h = h._init;
|
|
@@ -155,13 +155,13 @@ function Kr() {
|
|
|
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
|
)), h = this.props.ref, h !== void 0 ? h : null;
|
|
157
157
|
}
|
|
158
|
-
function u(h, C, L, M,
|
|
158
|
+
function u(h, C, L, M, N, I, z, E) {
|
|
159
159
|
return L = I.ref, h = {
|
|
160
160
|
$$typeof: f,
|
|
161
161
|
type: h,
|
|
162
162
|
key: C,
|
|
163
163
|
props: I,
|
|
164
|
-
_owner:
|
|
164
|
+
_owner: N
|
|
165
165
|
}, (L !== void 0 ? L : null) !== null ? Object.defineProperty(h, "ref", {
|
|
166
166
|
enumerable: !1,
|
|
167
167
|
get: c
|
|
@@ -187,7 +187,7 @@ function Kr() {
|
|
|
187
187
|
value: E
|
|
188
188
|
}), Object.freeze && (Object.freeze(h.props), Object.freeze(h)), h;
|
|
189
189
|
}
|
|
190
|
-
function d(h, C, L, M,
|
|
190
|
+
function d(h, C, L, M, N, I, z, E) {
|
|
191
191
|
var P = C.children;
|
|
192
192
|
if (P !== void 0)
|
|
193
193
|
if (M)
|
|
@@ -230,7 +230,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
230
230
|
h,
|
|
231
231
|
P,
|
|
232
232
|
I,
|
|
233
|
-
|
|
233
|
+
N,
|
|
234
234
|
o(),
|
|
235
235
|
L,
|
|
236
236
|
z,
|
|
@@ -240,7 +240,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
240
240
|
function g(h) {
|
|
241
241
|
typeof h == "object" && h !== null && h.$$typeof === f && h._store && (h._store.validated = 1);
|
|
242
242
|
}
|
|
243
|
-
var p = Pe, f = Symbol.for("react.transitional.element"), v = Symbol.for("react.portal"), m = Symbol.for("react.fragment"), b = Symbol.for("react.strict_mode"), x = 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"),
|
|
243
|
+
var p = Pe, f = Symbol.for("react.transitional.element"), v = Symbol.for("react.portal"), m = Symbol.for("react.fragment"), b = Symbol.for("react.strict_mode"), x = 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 = {
|
|
@@ -252,7 +252,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
252
252
|
p,
|
|
253
253
|
a
|
|
254
254
|
)(), pe = H(r(a)), X = {};
|
|
255
|
-
Be.Fragment = m, Be.jsx = function(h, C, L, M,
|
|
255
|
+
Be.Fragment = m, Be.jsx = function(h, C, L, M, N) {
|
|
256
256
|
var I = 1e4 > ae.recentlyCreatedOwnerStacks++;
|
|
257
257
|
return d(
|
|
258
258
|
h,
|
|
@@ -260,11 +260,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
260
260
|
L,
|
|
261
261
|
!1,
|
|
262
262
|
M,
|
|
263
|
-
|
|
263
|
+
N,
|
|
264
264
|
I ? Error("react-stack-top-frame") : te,
|
|
265
265
|
I ? H(r(h)) : pe
|
|
266
266
|
);
|
|
267
|
-
}, Be.jsxs = function(h, C, L, M,
|
|
267
|
+
}, Be.jsxs = function(h, C, L, M, N) {
|
|
268
268
|
var I = 1e4 > ae.recentlyCreatedOwnerStacks++;
|
|
269
269
|
return d(
|
|
270
270
|
h,
|
|
@@ -272,7 +272,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
272
272
|
L,
|
|
273
273
|
!0,
|
|
274
274
|
M,
|
|
275
|
-
|
|
275
|
+
N,
|
|
276
276
|
I ? Error("react-stack-top-frame") : te,
|
|
277
277
|
I ? H(r(h)) : pe
|
|
278
278
|
);
|
|
@@ -280,10 +280,10 @@ React keys must be passed directly to JSX without using spread:
|
|
|
280
280
|
}()), Be;
|
|
281
281
|
}
|
|
282
282
|
var bn;
|
|
283
|
-
function
|
|
284
|
-
return bn || (bn = 1, process.env.NODE_ENV === "production" ? et.exports =
|
|
283
|
+
function Qr() {
|
|
284
|
+
return bn || (bn = 1, process.env.NODE_ENV === "production" ? et.exports = Xr() : et.exports = Jr()), et.exports;
|
|
285
285
|
}
|
|
286
|
-
var s =
|
|
286
|
+
var s = Qr();
|
|
287
287
|
const ve = {
|
|
288
288
|
dark: {
|
|
289
289
|
filled: "bg-color-gray-800 text-color-gray-200 hover:bg-color-gray-900",
|
|
@@ -432,7 +432,7 @@ const ve = {
|
|
|
432
432
|
accent: "accent-color-rose-500",
|
|
433
433
|
peer: "peer-checked:border-color-rose-500 peer-checked:text-color-rose-500"
|
|
434
434
|
}
|
|
435
|
-
},
|
|
435
|
+
}, Fl = (e) => {
|
|
436
436
|
Object.assign(ve, e);
|
|
437
437
|
}, qt = {
|
|
438
438
|
dark: {
|
|
@@ -582,7 +582,7 @@ const ve = {
|
|
|
582
582
|
thumbHover: "hover:bg-color-rose-600",
|
|
583
583
|
thumbActive: "active:bg-color-rose-700"
|
|
584
584
|
}
|
|
585
|
-
},
|
|
585
|
+
}, Al = (e) => {
|
|
586
586
|
Object.assign(qt, e);
|
|
587
587
|
}, Gt = ({
|
|
588
588
|
title: e,
|
|
@@ -605,10 +605,10 @@ const ve = {
|
|
|
605
605
|
}) => {
|
|
606
606
|
var y;
|
|
607
607
|
const x = se(null), k = se(null), w = (O) => {
|
|
608
|
-
const
|
|
609
|
-
if (!
|
|
610
|
-
const V = document.createElement("span"), F =
|
|
611
|
-
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",
|
|
608
|
+
const D = x.current;
|
|
609
|
+
if (!D) return;
|
|
610
|
+
const V = document.createElement("span"), F = D.getBoundingClientRect(), Z = Math.max(F.width, F.height);
|
|
611
|
+
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);
|
|
612
612
|
}, $ = ((y = ve[r]) == null ? void 0 : y[t === "filled" ? "filled" : t === "outlined" ? "outline" : "transparent"]) || "";
|
|
613
613
|
return /* @__PURE__ */ s.jsx(s.Fragment, { children: v ? /* @__PURE__ */ s.jsxs(
|
|
614
614
|
"a",
|
|
@@ -656,7 +656,7 @@ const ve = {
|
|
|
656
656
|
]
|
|
657
657
|
}
|
|
658
658
|
) });
|
|
659
|
-
},
|
|
659
|
+
}, Nl = ({
|
|
660
660
|
children: e,
|
|
661
661
|
className: n = "",
|
|
662
662
|
border: t = !0
|
|
@@ -714,7 +714,7 @@ const ve = {
|
|
|
714
714
|
e && /* @__PURE__ */ s.jsx("span", { className: `text-sm text-color-gray-700 ${a}`, children: e })
|
|
715
715
|
]
|
|
716
716
|
}
|
|
717
|
-
),
|
|
717
|
+
), zl = ({
|
|
718
718
|
selected: e,
|
|
719
719
|
items: n = [],
|
|
720
720
|
className: t = "",
|
|
@@ -777,7 +777,7 @@ var tt = { exports: {} }, nt = { exports: {} }, ne = {};
|
|
|
777
777
|
* LICENSE file in the root directory of this source tree.
|
|
778
778
|
*/
|
|
779
779
|
var wn;
|
|
780
|
-
function
|
|
780
|
+
function eo() {
|
|
781
781
|
if (wn) return ne;
|
|
782
782
|
wn = 1;
|
|
783
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, x = e ? Symbol.for("react.responder") : 60118, k = e ? Symbol.for("react.scope") : 60119;
|
|
@@ -852,19 +852,19 @@ var re = {};
|
|
|
852
852
|
* LICENSE file in the root directory of this source tree.
|
|
853
853
|
*/
|
|
854
854
|
var yn;
|
|
855
|
-
function
|
|
855
|
+
function to() {
|
|
856
856
|
return yn || (yn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
857
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, x = e ? Symbol.for("react.responder") : 60118, k = e ? Symbol.for("react.scope") : 60119;
|
|
858
|
-
function w(
|
|
859
|
-
return typeof
|
|
860
|
-
|
|
858
|
+
function w(j) {
|
|
859
|
+
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 === x || j.$$typeof === k || j.$$typeof === m);
|
|
861
861
|
}
|
|
862
|
-
function $(
|
|
863
|
-
if (typeof
|
|
864
|
-
var _ =
|
|
862
|
+
function $(j) {
|
|
863
|
+
if (typeof j == "object" && j !== null) {
|
|
864
|
+
var _ = j.$$typeof;
|
|
865
865
|
switch (_) {
|
|
866
866
|
case n:
|
|
867
|
-
var J =
|
|
867
|
+
var J = j.type;
|
|
868
868
|
switch (J) {
|
|
869
869
|
case c:
|
|
870
870
|
case u:
|
|
@@ -891,52 +891,52 @@ function Qr() {
|
|
|
891
891
|
}
|
|
892
892
|
}
|
|
893
893
|
}
|
|
894
|
-
var y = c, O = u,
|
|
895
|
-
function X(
|
|
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.")), h(
|
|
894
|
+
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
|
+
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.")), h(j) || $(j) === c;
|
|
897
897
|
}
|
|
898
|
-
function h(
|
|
899
|
-
return $(
|
|
898
|
+
function h(j) {
|
|
899
|
+
return $(j) === u;
|
|
900
900
|
}
|
|
901
|
-
function C(
|
|
902
|
-
return $(
|
|
901
|
+
function C(j) {
|
|
902
|
+
return $(j) === l;
|
|
903
903
|
}
|
|
904
|
-
function L(
|
|
905
|
-
return $(
|
|
904
|
+
function L(j) {
|
|
905
|
+
return $(j) === i;
|
|
906
906
|
}
|
|
907
|
-
function M(
|
|
908
|
-
return typeof
|
|
907
|
+
function M(j) {
|
|
908
|
+
return typeof j == "object" && j !== null && j.$$typeof === n;
|
|
909
909
|
}
|
|
910
|
-
function
|
|
911
|
-
return $(
|
|
910
|
+
function N(j) {
|
|
911
|
+
return $(j) === d;
|
|
912
912
|
}
|
|
913
|
-
function I(
|
|
914
|
-
return $(
|
|
913
|
+
function I(j) {
|
|
914
|
+
return $(j) === r;
|
|
915
915
|
}
|
|
916
|
-
function z(
|
|
917
|
-
return $(
|
|
916
|
+
function z(j) {
|
|
917
|
+
return $(j) === v;
|
|
918
918
|
}
|
|
919
|
-
function E(
|
|
920
|
-
return $(
|
|
919
|
+
function E(j) {
|
|
920
|
+
return $(j) === f;
|
|
921
921
|
}
|
|
922
|
-
function P(
|
|
923
|
-
return $(
|
|
922
|
+
function P(j) {
|
|
923
|
+
return $(j) === t;
|
|
924
924
|
}
|
|
925
|
-
function B(
|
|
926
|
-
return $(
|
|
925
|
+
function B(j) {
|
|
926
|
+
return $(j) === a;
|
|
927
927
|
}
|
|
928
|
-
function q(
|
|
929
|
-
return $(
|
|
928
|
+
function q(j) {
|
|
929
|
+
return $(j) === o;
|
|
930
930
|
}
|
|
931
|
-
function S(
|
|
932
|
-
return $(
|
|
931
|
+
function S(j) {
|
|
932
|
+
return $(j) === g;
|
|
933
933
|
}
|
|
934
|
-
re.AsyncMode = y, re.ConcurrentMode = O, re.ContextConsumer =
|
|
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 = h, 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
935
|
}()), re;
|
|
936
936
|
}
|
|
937
937
|
var Cn;
|
|
938
|
-
function
|
|
939
|
-
return Cn || (Cn = 1, process.env.NODE_ENV === "production" ? nt.exports =
|
|
938
|
+
function rr() {
|
|
939
|
+
return Cn || (Cn = 1, process.env.NODE_ENV === "production" ? nt.exports = eo() : nt.exports = to()), nt.exports;
|
|
940
940
|
}
|
|
941
941
|
/*
|
|
942
942
|
object-assign
|
|
@@ -944,7 +944,7 @@ object-assign
|
|
|
944
944
|
@license MIT
|
|
945
945
|
*/
|
|
946
946
|
var $t, Sn;
|
|
947
|
-
function
|
|
947
|
+
function no() {
|
|
948
948
|
if (Sn) return $t;
|
|
949
949
|
Sn = 1;
|
|
950
950
|
var e = Object.getOwnPropertySymbols, n = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
|
|
@@ -989,25 +989,25 @@ function eo() {
|
|
|
989
989
|
return c;
|
|
990
990
|
}, $t;
|
|
991
991
|
}
|
|
992
|
-
var _t,
|
|
992
|
+
var _t, jn;
|
|
993
993
|
function rn() {
|
|
994
|
-
if (
|
|
995
|
-
|
|
994
|
+
if (jn) return _t;
|
|
995
|
+
jn = 1;
|
|
996
996
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
997
997
|
return _t = e, _t;
|
|
998
998
|
}
|
|
999
|
-
var Et,
|
|
1000
|
-
function
|
|
1001
|
-
return
|
|
999
|
+
var Et, Rn;
|
|
1000
|
+
function or() {
|
|
1001
|
+
return Rn || (Rn = 1, Et = Function.call.bind(Object.prototype.hasOwnProperty)), Et;
|
|
1002
1002
|
}
|
|
1003
1003
|
var Pt, kn;
|
|
1004
|
-
function
|
|
1004
|
+
function ro() {
|
|
1005
1005
|
if (kn) return Pt;
|
|
1006
1006
|
kn = 1;
|
|
1007
1007
|
var e = function() {
|
|
1008
1008
|
};
|
|
1009
1009
|
if (process.env.NODE_ENV !== "production") {
|
|
1010
|
-
var n = /* @__PURE__ */ rn(), t = {}, r = /* @__PURE__ */
|
|
1010
|
+
var n = /* @__PURE__ */ rn(), t = {}, r = /* @__PURE__ */ or();
|
|
1011
1011
|
e = function(a) {
|
|
1012
1012
|
var i = "Warning: " + a;
|
|
1013
1013
|
typeof console < "u" && console.error(i);
|
|
@@ -1050,10 +1050,10 @@ function to() {
|
|
|
1050
1050
|
}, Pt = o, Pt;
|
|
1051
1051
|
}
|
|
1052
1052
|
var Mt, $n;
|
|
1053
|
-
function
|
|
1053
|
+
function oo() {
|
|
1054
1054
|
if ($n) return Mt;
|
|
1055
1055
|
$n = 1;
|
|
1056
|
-
var e =
|
|
1056
|
+
var e = rr(), n = no(), t = /* @__PURE__ */ rn(), r = /* @__PURE__ */ or(), o = /* @__PURE__ */ ro(), a = function() {
|
|
1057
1057
|
};
|
|
1058
1058
|
process.env.NODE_ENV !== "production" && (a = function(l) {
|
|
1059
1059
|
var c = "Warning: " + l;
|
|
@@ -1089,7 +1089,7 @@ function no() {
|
|
|
1089
1089
|
instanceOf: O,
|
|
1090
1090
|
node: Z(),
|
|
1091
1091
|
objectOf: V,
|
|
1092
|
-
oneOf:
|
|
1092
|
+
oneOf: D,
|
|
1093
1093
|
oneOfType: F,
|
|
1094
1094
|
shape: ue,
|
|
1095
1095
|
exact: Q
|
|
@@ -1107,10 +1107,10 @@ function no() {
|
|
|
1107
1107
|
function M(I, z, E, P, B, q, S) {
|
|
1108
1108
|
if (P = P || p, q = q || E, S !== t) {
|
|
1109
1109
|
if (c) {
|
|
1110
|
-
var
|
|
1110
|
+
var j = new Error(
|
|
1111
1111
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
1112
1112
|
);
|
|
1113
|
-
throw
|
|
1113
|
+
throw j.name = "Invariant Violation", j;
|
|
1114
1114
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
1115
1115
|
var _ = P + ":" + E;
|
|
1116
1116
|
!C[_] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
@@ -1121,16 +1121,16 @@ function no() {
|
|
|
1121
1121
|
}
|
|
1122
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 : h(z, E, P, B, q);
|
|
1123
1123
|
}
|
|
1124
|
-
var
|
|
1125
|
-
return
|
|
1124
|
+
var N = M.bind(null, !1);
|
|
1125
|
+
return N.isRequired = M.bind(null, !0), N;
|
|
1126
1126
|
}
|
|
1127
1127
|
function x(h) {
|
|
1128
|
-
function C(L, M,
|
|
1128
|
+
function C(L, M, N, I, z, E) {
|
|
1129
1129
|
var P = L[M], B = T(P);
|
|
1130
1130
|
if (B !== h) {
|
|
1131
1131
|
var q = te(P);
|
|
1132
1132
|
return new m(
|
|
1133
|
-
"Invalid " + I + " `" + z + "` of type " + ("`" + q + "` supplied to `" +
|
|
1133
|
+
"Invalid " + I + " `" + z + "` of type " + ("`" + q + "` supplied to `" + N + "`, expected ") + ("`" + h + "`."),
|
|
1134
1134
|
{ expectedType: h }
|
|
1135
1135
|
);
|
|
1136
1136
|
}
|
|
@@ -1142,16 +1142,16 @@ function no() {
|
|
|
1142
1142
|
return b(i);
|
|
1143
1143
|
}
|
|
1144
1144
|
function w(h) {
|
|
1145
|
-
function C(L, M,
|
|
1145
|
+
function C(L, M, N, I, z) {
|
|
1146
1146
|
if (typeof h != "function")
|
|
1147
|
-
return new m("Property `" + z + "` of component `" +
|
|
1147
|
+
return new m("Property `" + z + "` of component `" + N + "` has invalid PropType notation inside arrayOf.");
|
|
1148
1148
|
var E = L[M];
|
|
1149
1149
|
if (!Array.isArray(E)) {
|
|
1150
1150
|
var P = T(E);
|
|
1151
|
-
return new m("Invalid " + I + " `" + z + "` of type " + ("`" + P + "` supplied to `" +
|
|
1151
|
+
return new m("Invalid " + I + " `" + z + "` of type " + ("`" + P + "` supplied to `" + N + "`, expected an array."));
|
|
1152
1152
|
}
|
|
1153
1153
|
for (var B = 0; B < E.length; B++) {
|
|
1154
|
-
var q = h(E, B,
|
|
1154
|
+
var q = h(E, B, N, I, z + "[" + B + "]", t);
|
|
1155
1155
|
if (q instanceof Error)
|
|
1156
1156
|
return q;
|
|
1157
1157
|
}
|
|
@@ -1160,64 +1160,64 @@ function no() {
|
|
|
1160
1160
|
return b(C);
|
|
1161
1161
|
}
|
|
1162
1162
|
function $() {
|
|
1163
|
-
function h(C, L, M,
|
|
1163
|
+
function h(C, L, M, N, I) {
|
|
1164
1164
|
var z = C[L];
|
|
1165
1165
|
if (!l(z)) {
|
|
1166
1166
|
var E = T(z);
|
|
1167
|
-
return new m("Invalid " +
|
|
1167
|
+
return new m("Invalid " + N + " `" + I + "` of type " + ("`" + E + "` supplied to `" + M + "`, expected a single ReactElement."));
|
|
1168
1168
|
}
|
|
1169
1169
|
return null;
|
|
1170
1170
|
}
|
|
1171
1171
|
return b(h);
|
|
1172
1172
|
}
|
|
1173
1173
|
function y() {
|
|
1174
|
-
function h(C, L, M,
|
|
1174
|
+
function h(C, L, M, N, I) {
|
|
1175
1175
|
var z = C[L];
|
|
1176
1176
|
if (!e.isValidElementType(z)) {
|
|
1177
1177
|
var E = T(z);
|
|
1178
|
-
return new m("Invalid " +
|
|
1178
|
+
return new m("Invalid " + N + " `" + I + "` of type " + ("`" + E + "` supplied to `" + M + "`, expected a single ReactElement type."));
|
|
1179
1179
|
}
|
|
1180
1180
|
return null;
|
|
1181
1181
|
}
|
|
1182
1182
|
return b(h);
|
|
1183
1183
|
}
|
|
1184
1184
|
function O(h) {
|
|
1185
|
-
function C(L, M,
|
|
1185
|
+
function C(L, M, N, I, z) {
|
|
1186
1186
|
if (!(L[M] instanceof h)) {
|
|
1187
1187
|
var E = h.name || p, P = X(L[M]);
|
|
1188
|
-
return new m("Invalid " + I + " `" + z + "` of type " + ("`" + P + "` supplied to `" +
|
|
1188
|
+
return new m("Invalid " + I + " `" + z + "` of type " + ("`" + P + "` supplied to `" + N + "`, expected ") + ("instance of `" + E + "`."));
|
|
1189
1189
|
}
|
|
1190
1190
|
return null;
|
|
1191
1191
|
}
|
|
1192
1192
|
return b(C);
|
|
1193
1193
|
}
|
|
1194
|
-
function
|
|
1194
|
+
function D(h) {
|
|
1195
1195
|
if (!Array.isArray(h))
|
|
1196
1196
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
1197
1197
|
"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
1198
|
) : a("Invalid argument supplied to oneOf, expected an array.")), i;
|
|
1199
|
-
function C(L, M,
|
|
1199
|
+
function C(L, M, N, I, z) {
|
|
1200
1200
|
for (var E = L[M], P = 0; P < h.length; P++)
|
|
1201
1201
|
if (v(E, h[P]))
|
|
1202
1202
|
return null;
|
|
1203
|
-
var B = JSON.stringify(h, function(S,
|
|
1204
|
-
var _ = te(
|
|
1205
|
-
return _ === "symbol" ? String(
|
|
1203
|
+
var B = JSON.stringify(h, function(S, j) {
|
|
1204
|
+
var _ = te(j);
|
|
1205
|
+
return _ === "symbol" ? String(j) : j;
|
|
1206
1206
|
});
|
|
1207
|
-
return new m("Invalid " + I + " `" + z + "` of value `" + String(E) + "` " + ("supplied to `" +
|
|
1207
|
+
return new m("Invalid " + I + " `" + z + "` of value `" + String(E) + "` " + ("supplied to `" + N + "`, expected one of " + B + "."));
|
|
1208
1208
|
}
|
|
1209
1209
|
return b(C);
|
|
1210
1210
|
}
|
|
1211
1211
|
function V(h) {
|
|
1212
|
-
function C(L, M,
|
|
1212
|
+
function C(L, M, N, I, z) {
|
|
1213
1213
|
if (typeof h != "function")
|
|
1214
|
-
return new m("Property `" + z + "` of component `" +
|
|
1214
|
+
return new m("Property `" + z + "` of component `" + N + "` has invalid PropType notation inside objectOf.");
|
|
1215
1215
|
var E = L[M], P = T(E);
|
|
1216
1216
|
if (P !== "object")
|
|
1217
|
-
return new m("Invalid " + I + " `" + z + "` of type " + ("`" + P + "` supplied to `" +
|
|
1217
|
+
return new m("Invalid " + I + " `" + z + "` of type " + ("`" + P + "` supplied to `" + N + "`, expected an object."));
|
|
1218
1218
|
for (var B in E)
|
|
1219
1219
|
if (r(E, B)) {
|
|
1220
|
-
var q = h(E, B,
|
|
1220
|
+
var q = h(E, B, N, I, z + "." + B, t);
|
|
1221
1221
|
if (q instanceof Error)
|
|
1222
1222
|
return q;
|
|
1223
1223
|
}
|
|
@@ -1235,12 +1235,12 @@ function no() {
|
|
|
1235
1235
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + pe(L) + " at index " + C + "."
|
|
1236
1236
|
), i;
|
|
1237
1237
|
}
|
|
1238
|
-
function M(
|
|
1238
|
+
function M(N, I, z, E, P) {
|
|
1239
1239
|
for (var B = [], q = 0; q < h.length; q++) {
|
|
1240
|
-
var S = h[q],
|
|
1241
|
-
if (
|
|
1240
|
+
var S = h[q], j = S(N, I, z, E, P, t);
|
|
1241
|
+
if (j == null)
|
|
1242
1242
|
return null;
|
|
1243
|
-
|
|
1243
|
+
j.data && r(j.data, "expectedType") && B.push(j.data.expectedType);
|
|
1244
1244
|
}
|
|
1245
1245
|
var _ = B.length > 0 ? ", expected one of type [" + B.join(", ") + "]" : "";
|
|
1246
1246
|
return new m("Invalid " + E + " `" + P + "` supplied to " + ("`" + z + "`" + _ + "."));
|
|
@@ -1248,26 +1248,26 @@ function no() {
|
|
|
1248
1248
|
return b(M);
|
|
1249
1249
|
}
|
|
1250
1250
|
function Z() {
|
|
1251
|
-
function h(C, L, M,
|
|
1252
|
-
return H(C[L]) ? null : new m("Invalid " +
|
|
1251
|
+
function h(C, L, M, N, I) {
|
|
1252
|
+
return H(C[L]) ? null : new m("Invalid " + N + " `" + I + "` supplied to " + ("`" + M + "`, expected a ReactNode."));
|
|
1253
1253
|
}
|
|
1254
1254
|
return b(h);
|
|
1255
1255
|
}
|
|
1256
|
-
function ae(h, C, L, M,
|
|
1256
|
+
function ae(h, C, L, M, N) {
|
|
1257
1257
|
return new m(
|
|
1258
|
-
(h || "React class") + ": " + C + " type `" + L + "." + M + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" +
|
|
1258
|
+
(h || "React class") + ": " + C + " type `" + L + "." + M + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + N + "`."
|
|
1259
1259
|
);
|
|
1260
1260
|
}
|
|
1261
1261
|
function ue(h) {
|
|
1262
|
-
function C(L, M,
|
|
1262
|
+
function C(L, M, N, I, z) {
|
|
1263
1263
|
var E = L[M], P = T(E);
|
|
1264
1264
|
if (P !== "object")
|
|
1265
|
-
return new m("Invalid " + I + " `" + z + "` of type `" + P + "` " + ("supplied to `" +
|
|
1265
|
+
return new m("Invalid " + I + " `" + z + "` of type `" + P + "` " + ("supplied to `" + N + "`, expected `object`."));
|
|
1266
1266
|
for (var B in h) {
|
|
1267
1267
|
var q = h[B];
|
|
1268
1268
|
if (typeof q != "function")
|
|
1269
|
-
return ae(
|
|
1270
|
-
var S = q(E, B,
|
|
1269
|
+
return ae(N, I, z, B, te(q));
|
|
1270
|
+
var S = q(E, B, N, I, z + "." + B, t);
|
|
1271
1271
|
if (S)
|
|
1272
1272
|
return S;
|
|
1273
1273
|
}
|
|
@@ -1276,23 +1276,23 @@ function no() {
|
|
|
1276
1276
|
return b(C);
|
|
1277
1277
|
}
|
|
1278
1278
|
function Q(h) {
|
|
1279
|
-
function C(L, M,
|
|
1279
|
+
function C(L, M, N, I, z) {
|
|
1280
1280
|
var E = L[M], P = T(E);
|
|
1281
1281
|
if (P !== "object")
|
|
1282
|
-
return new m("Invalid " + I + " `" + z + "` of type `" + P + "` " + ("supplied to `" +
|
|
1282
|
+
return new m("Invalid " + I + " `" + z + "` of type `" + P + "` " + ("supplied to `" + N + "`, expected `object`."));
|
|
1283
1283
|
var B = n({}, L[M], h);
|
|
1284
1284
|
for (var q in B) {
|
|
1285
1285
|
var S = h[q];
|
|
1286
1286
|
if (r(h, q) && typeof S != "function")
|
|
1287
|
-
return ae(
|
|
1287
|
+
return ae(N, I, z, q, te(S));
|
|
1288
1288
|
if (!S)
|
|
1289
1289
|
return new m(
|
|
1290
|
-
"Invalid " + I + " `" + z + "` key `" + q + "` supplied to `" +
|
|
1290
|
+
"Invalid " + I + " `" + z + "` key `" + q + "` supplied to `" + N + "`.\nBad object: " + JSON.stringify(L[M], null, " ") + `
|
|
1291
1291
|
Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
1292
1292
|
);
|
|
1293
|
-
var
|
|
1294
|
-
if (
|
|
1295
|
-
return
|
|
1293
|
+
var j = S(E, q, N, I, z + "." + q, t);
|
|
1294
|
+
if (j)
|
|
1295
|
+
return j;
|
|
1296
1296
|
}
|
|
1297
1297
|
return null;
|
|
1298
1298
|
}
|
|
@@ -1320,8 +1320,8 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
1320
1320
|
return !1;
|
|
1321
1321
|
} else
|
|
1322
1322
|
for (; !(M = L.next()).done; ) {
|
|
1323
|
-
var
|
|
1324
|
-
if (
|
|
1323
|
+
var N = M.value;
|
|
1324
|
+
if (N && !H(N[1]))
|
|
1325
1325
|
return !1;
|
|
1326
1326
|
}
|
|
1327
1327
|
} else
|
|
@@ -1371,7 +1371,7 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
1371
1371
|
}, Mt;
|
|
1372
1372
|
}
|
|
1373
1373
|
var Lt, _n;
|
|
1374
|
-
function
|
|
1374
|
+
function ao() {
|
|
1375
1375
|
if (_n) return Lt;
|
|
1376
1376
|
_n = 1;
|
|
1377
1377
|
var e = /* @__PURE__ */ rn();
|
|
@@ -1419,18 +1419,18 @@ function ro() {
|
|
|
1419
1419
|
}, Lt;
|
|
1420
1420
|
}
|
|
1421
1421
|
var En;
|
|
1422
|
-
function
|
|
1422
|
+
function io() {
|
|
1423
1423
|
if (En) return tt.exports;
|
|
1424
1424
|
if (En = 1, process.env.NODE_ENV !== "production") {
|
|
1425
|
-
var e =
|
|
1426
|
-
tt.exports = /* @__PURE__ */
|
|
1425
|
+
var e = rr(), n = !0;
|
|
1426
|
+
tt.exports = /* @__PURE__ */ oo()(e.isElement, n);
|
|
1427
1427
|
} else
|
|
1428
|
-
tt.exports = /* @__PURE__ */
|
|
1428
|
+
tt.exports = /* @__PURE__ */ ao()();
|
|
1429
1429
|
return tt.exports;
|
|
1430
1430
|
}
|
|
1431
|
-
var
|
|
1432
|
-
const ie = /* @__PURE__ */
|
|
1433
|
-
function
|
|
1431
|
+
var lo = /* @__PURE__ */ io();
|
|
1432
|
+
const ie = /* @__PURE__ */ nr(lo);
|
|
1433
|
+
function Ne(e, n, t, r) {
|
|
1434
1434
|
function o(a) {
|
|
1435
1435
|
return a instanceof t ? a : new t(function(i) {
|
|
1436
1436
|
i(a);
|
|
@@ -1457,7 +1457,7 @@ function De(e, n, t, r) {
|
|
|
1457
1457
|
u((r = r.apply(e, n || [])).next());
|
|
1458
1458
|
});
|
|
1459
1459
|
}
|
|
1460
|
-
const
|
|
1460
|
+
const so = /* @__PURE__ */ new Map([
|
|
1461
1461
|
// https://github.com/guzzle/psr7/blob/2d9260799e713f1c475d3c5fdc3d6561ff7441b2/src/MimeType.php
|
|
1462
1462
|
["1km", "application/vnd.1000minds.decision-model+xml"],
|
|
1463
1463
|
["3dml", "text/vnd.in3d.3dml"],
|
|
@@ -2661,13 +2661,13 @@ const io = /* @__PURE__ */ new Map([
|
|
|
2661
2661
|
["zsh", "text/x-scriptzsh"]
|
|
2662
2662
|
]);
|
|
2663
2663
|
function Oe(e, n, t) {
|
|
2664
|
-
const r =
|
|
2664
|
+
const r = co(e), { webkitRelativePath: o } = e, a = typeof n == "string" ? n : typeof o == "string" && o.length > 0 ? o : `./${e.name}`;
|
|
2665
2665
|
return typeof r.path != "string" && Pn(r, "path", a), Pn(r, "relativePath", a), r;
|
|
2666
2666
|
}
|
|
2667
|
-
function
|
|
2667
|
+
function co(e) {
|
|
2668
2668
|
const { name: n } = e;
|
|
2669
2669
|
if (n && n.lastIndexOf(".") !== -1 && !e.type) {
|
|
2670
|
-
const r = n.split(".").pop().toLowerCase(), o =
|
|
2670
|
+
const r = n.split(".").pop().toLowerCase(), o = so.get(r);
|
|
2671
2671
|
o && Object.defineProperty(e, "type", {
|
|
2672
2672
|
value: o,
|
|
2673
2673
|
writable: !1,
|
|
@@ -2685,49 +2685,49 @@ function Pn(e, n, t) {
|
|
|
2685
2685
|
enumerable: !0
|
|
2686
2686
|
});
|
|
2687
2687
|
}
|
|
2688
|
-
const
|
|
2688
|
+
const uo = [
|
|
2689
2689
|
// Thumbnail cache files for macOS and Windows
|
|
2690
2690
|
".DS_Store",
|
|
2691
2691
|
// macOs
|
|
2692
2692
|
"Thumbs.db"
|
|
2693
2693
|
// Windows
|
|
2694
2694
|
];
|
|
2695
|
-
function
|
|
2696
|
-
return
|
|
2697
|
-
return pt(e) &&
|
|
2695
|
+
function po(e) {
|
|
2696
|
+
return Ne(this, void 0, void 0, function* () {
|
|
2697
|
+
return pt(e) && fo(e.dataTransfer) ? ho(e.dataTransfer, e.type) : mo(e) ? go(e) : Array.isArray(e) && e.every((n) => "getFile" in n && typeof n.getFile == "function") ? vo(e) : [];
|
|
2698
2698
|
});
|
|
2699
2699
|
}
|
|
2700
|
-
function
|
|
2700
|
+
function fo(e) {
|
|
2701
2701
|
return pt(e);
|
|
2702
2702
|
}
|
|
2703
|
-
function
|
|
2703
|
+
function mo(e) {
|
|
2704
2704
|
return pt(e) && pt(e.target);
|
|
2705
2705
|
}
|
|
2706
2706
|
function pt(e) {
|
|
2707
2707
|
return typeof e == "object" && e !== null;
|
|
2708
2708
|
}
|
|
2709
|
-
function
|
|
2709
|
+
function go(e) {
|
|
2710
2710
|
return Wt(e.target.files).map((n) => Oe(n));
|
|
2711
2711
|
}
|
|
2712
|
-
function
|
|
2713
|
-
return
|
|
2712
|
+
function vo(e) {
|
|
2713
|
+
return Ne(this, void 0, void 0, function* () {
|
|
2714
2714
|
return (yield Promise.all(e.map((t) => t.getFile()))).map((t) => Oe(t));
|
|
2715
2715
|
});
|
|
2716
2716
|
}
|
|
2717
|
-
function
|
|
2718
|
-
return
|
|
2717
|
+
function ho(e, n) {
|
|
2718
|
+
return Ne(this, void 0, void 0, function* () {
|
|
2719
2719
|
if (e.items) {
|
|
2720
2720
|
const t = Wt(e.items).filter((o) => o.kind === "file");
|
|
2721
2721
|
if (n !== "drop")
|
|
2722
2722
|
return t;
|
|
2723
|
-
const r = yield Promise.all(t.map(
|
|
2724
|
-
return Mn(
|
|
2723
|
+
const r = yield Promise.all(t.map(xo));
|
|
2724
|
+
return Mn(ar(r));
|
|
2725
2725
|
}
|
|
2726
2726
|
return Mn(Wt(e.files).map((t) => Oe(t)));
|
|
2727
2727
|
});
|
|
2728
2728
|
}
|
|
2729
2729
|
function Mn(e) {
|
|
2730
|
-
return e.filter((n) =>
|
|
2730
|
+
return e.filter((n) => uo.indexOf(n.name) === -1);
|
|
2731
2731
|
}
|
|
2732
2732
|
function Wt(e) {
|
|
2733
2733
|
if (e === null)
|
|
@@ -2739,20 +2739,20 @@ function Wt(e) {
|
|
|
2739
2739
|
}
|
|
2740
2740
|
return n;
|
|
2741
2741
|
}
|
|
2742
|
-
function
|
|
2742
|
+
function xo(e) {
|
|
2743
2743
|
if (typeof e.webkitGetAsEntry != "function")
|
|
2744
2744
|
return Ln(e);
|
|
2745
2745
|
const n = e.webkitGetAsEntry();
|
|
2746
|
-
return n && n.isDirectory ?
|
|
2746
|
+
return n && n.isDirectory ? ir(n) : Ln(e, n);
|
|
2747
2747
|
}
|
|
2748
|
-
function
|
|
2748
|
+
function ar(e) {
|
|
2749
2749
|
return e.reduce((n, t) => [
|
|
2750
2750
|
...n,
|
|
2751
|
-
...Array.isArray(t) ?
|
|
2751
|
+
...Array.isArray(t) ? ar(t) : [t]
|
|
2752
2752
|
], []);
|
|
2753
2753
|
}
|
|
2754
2754
|
function Ln(e, n) {
|
|
2755
|
-
return
|
|
2755
|
+
return Ne(this, void 0, void 0, function* () {
|
|
2756
2756
|
var t;
|
|
2757
2757
|
if (globalThis.isSecureContext && typeof e.getAsFileSystemHandle == "function") {
|
|
2758
2758
|
const a = yield e.getAsFileSystemHandle();
|
|
@@ -2769,19 +2769,19 @@ function Ln(e, n) {
|
|
|
2769
2769
|
return Oe(r, (t = n == null ? void 0 : n.fullPath) !== null && t !== void 0 ? t : void 0);
|
|
2770
2770
|
});
|
|
2771
2771
|
}
|
|
2772
|
-
function
|
|
2773
|
-
return
|
|
2774
|
-
return e.isDirectory ?
|
|
2772
|
+
function bo(e) {
|
|
2773
|
+
return Ne(this, void 0, void 0, function* () {
|
|
2774
|
+
return e.isDirectory ? ir(e) : wo(e);
|
|
2775
2775
|
});
|
|
2776
2776
|
}
|
|
2777
|
-
function
|
|
2777
|
+
function ir(e) {
|
|
2778
2778
|
const n = e.createReader();
|
|
2779
2779
|
return new Promise((t, r) => {
|
|
2780
2780
|
const o = [];
|
|
2781
2781
|
function a() {
|
|
2782
|
-
n.readEntries((i) =>
|
|
2782
|
+
n.readEntries((i) => Ne(this, void 0, void 0, function* () {
|
|
2783
2783
|
if (i.length) {
|
|
2784
|
-
const l = Promise.all(i.map(
|
|
2784
|
+
const l = Promise.all(i.map(bo));
|
|
2785
2785
|
o.push(l), a();
|
|
2786
2786
|
} else
|
|
2787
2787
|
try {
|
|
@@ -2797,8 +2797,8 @@ function ar(e) {
|
|
|
2797
2797
|
a();
|
|
2798
2798
|
});
|
|
2799
2799
|
}
|
|
2800
|
-
function
|
|
2801
|
-
return
|
|
2800
|
+
function wo(e) {
|
|
2801
|
+
return Ne(this, void 0, void 0, function* () {
|
|
2802
2802
|
return new Promise((n, t) => {
|
|
2803
2803
|
e.file((r) => {
|
|
2804
2804
|
const o = Oe(r, e.fullPath);
|
|
@@ -2810,7 +2810,7 @@ function xo(e) {
|
|
|
2810
2810
|
});
|
|
2811
2811
|
}
|
|
2812
2812
|
var rt = {}, Fn;
|
|
2813
|
-
function
|
|
2813
|
+
function yo() {
|
|
2814
2814
|
return Fn || (Fn = 1, rt.__esModule = !0, rt.default = function(e, n) {
|
|
2815
2815
|
if (e && n) {
|
|
2816
2816
|
var t = Array.isArray(n) ? n : n.split(",");
|
|
@@ -2825,22 +2825,22 @@ function bo() {
|
|
|
2825
2825
|
return !0;
|
|
2826
2826
|
}), rt;
|
|
2827
2827
|
}
|
|
2828
|
-
var
|
|
2829
|
-
const Ft = /* @__PURE__ */
|
|
2828
|
+
var Co = yo();
|
|
2829
|
+
const Ft = /* @__PURE__ */ nr(Co);
|
|
2830
2830
|
function An(e) {
|
|
2831
|
-
return
|
|
2831
|
+
return Ro(e) || jo(e) || sr(e) || So();
|
|
2832
2832
|
}
|
|
2833
|
-
function
|
|
2833
|
+
function So() {
|
|
2834
2834
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2835
2835
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2836
2836
|
}
|
|
2837
|
-
function
|
|
2837
|
+
function jo(e) {
|
|
2838
2838
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
2839
2839
|
}
|
|
2840
|
-
function
|
|
2840
|
+
function Ro(e) {
|
|
2841
2841
|
if (Array.isArray(e)) return Ut(e);
|
|
2842
2842
|
}
|
|
2843
|
-
function
|
|
2843
|
+
function Nn(e, n) {
|
|
2844
2844
|
var t = Object.keys(e);
|
|
2845
2845
|
if (Object.getOwnPropertySymbols) {
|
|
2846
2846
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -2850,28 +2850,28 @@ function Dn(e, n) {
|
|
|
2850
2850
|
}
|
|
2851
2851
|
return t;
|
|
2852
2852
|
}
|
|
2853
|
-
function
|
|
2853
|
+
function Dn(e) {
|
|
2854
2854
|
for (var n = 1; n < arguments.length; n++) {
|
|
2855
2855
|
var t = arguments[n] != null ? arguments[n] : {};
|
|
2856
|
-
n % 2 ?
|
|
2857
|
-
|
|
2858
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
2856
|
+
n % 2 ? Nn(Object(t), !0).forEach(function(r) {
|
|
2857
|
+
lr(e, r, t[r]);
|
|
2858
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Nn(Object(t)).forEach(function(r) {
|
|
2859
2859
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
2860
2860
|
});
|
|
2861
2861
|
}
|
|
2862
2862
|
return e;
|
|
2863
2863
|
}
|
|
2864
|
-
function
|
|
2864
|
+
function lr(e, n, t) {
|
|
2865
2865
|
return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
|
|
2866
2866
|
}
|
|
2867
2867
|
function Ue(e, n) {
|
|
2868
|
-
return
|
|
2868
|
+
return _o(e) || $o(e, n) || sr(e, n) || ko();
|
|
2869
2869
|
}
|
|
2870
|
-
function
|
|
2870
|
+
function ko() {
|
|
2871
2871
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2872
2872
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2873
2873
|
}
|
|
2874
|
-
function
|
|
2874
|
+
function sr(e, n) {
|
|
2875
2875
|
if (e) {
|
|
2876
2876
|
if (typeof e == "string") return Ut(e, n);
|
|
2877
2877
|
var t = Object.prototype.toString.call(e).slice(8, -1);
|
|
@@ -2885,7 +2885,7 @@ function Ut(e, n) {
|
|
|
2885
2885
|
r[t] = e[t];
|
|
2886
2886
|
return r;
|
|
2887
2887
|
}
|
|
2888
|
-
function
|
|
2888
|
+
function $o(e, n) {
|
|
2889
2889
|
var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
2890
2890
|
if (t != null) {
|
|
2891
2891
|
var r = [], o = !0, a = !1, i, l;
|
|
@@ -2904,34 +2904,34 @@ function jo(e, n) {
|
|
|
2904
2904
|
return r;
|
|
2905
2905
|
}
|
|
2906
2906
|
}
|
|
2907
|
-
function
|
|
2907
|
+
function _o(e) {
|
|
2908
2908
|
if (Array.isArray(e)) return e;
|
|
2909
2909
|
}
|
|
2910
|
-
var
|
|
2910
|
+
var Eo = typeof Ft == "function" ? Ft : Ft.default, Po = "file-invalid-type", Mo = "file-too-large", Lo = "file-too-small", Fo = "too-many-files", Ao = function() {
|
|
2911
2911
|
var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", t = n.split(","), r = t.length > 1 ? "one of ".concat(t.join(", ")) : t[0];
|
|
2912
2912
|
return {
|
|
2913
|
-
code:
|
|
2913
|
+
code: Po,
|
|
2914
2914
|
message: "File type must be ".concat(r)
|
|
2915
2915
|
};
|
|
2916
2916
|
}, zn = function(n) {
|
|
2917
2917
|
return {
|
|
2918
|
-
code:
|
|
2918
|
+
code: Mo,
|
|
2919
2919
|
message: "File is larger than ".concat(n, " ").concat(n === 1 ? "byte" : "bytes")
|
|
2920
2920
|
};
|
|
2921
2921
|
}, Tn = function(n) {
|
|
2922
2922
|
return {
|
|
2923
|
-
code:
|
|
2923
|
+
code: Lo,
|
|
2924
2924
|
message: "File is smaller than ".concat(n, " ").concat(n === 1 ? "byte" : "bytes")
|
|
2925
2925
|
};
|
|
2926
|
-
},
|
|
2927
|
-
code:
|
|
2926
|
+
}, No = {
|
|
2927
|
+
code: Fo,
|
|
2928
2928
|
message: "Too many files"
|
|
2929
2929
|
};
|
|
2930
|
-
function
|
|
2931
|
-
var t = e.type === "application/x-moz-file" ||
|
|
2932
|
-
return [t, t ? null :
|
|
2930
|
+
function cr(e, n) {
|
|
2931
|
+
var t = e.type === "application/x-moz-file" || Eo(e, n);
|
|
2932
|
+
return [t, t ? null : Ao(n)];
|
|
2933
2933
|
}
|
|
2934
|
-
function
|
|
2934
|
+
function ur(e, n, t) {
|
|
2935
2935
|
if (Ae(e.size))
|
|
2936
2936
|
if (Ae(n) && Ae(t)) {
|
|
2937
2937
|
if (e.size > t) return [!1, zn(t)];
|
|
@@ -2945,10 +2945,10 @@ function cr(e, n, t) {
|
|
|
2945
2945
|
function Ae(e) {
|
|
2946
2946
|
return e != null;
|
|
2947
2947
|
}
|
|
2948
|
-
function
|
|
2948
|
+
function Do(e) {
|
|
2949
2949
|
var n = e.files, t = e.accept, r = e.minSize, o = e.maxSize, a = e.multiple, i = e.maxFiles, l = e.validator;
|
|
2950
2950
|
return !a && n.length > 1 || a && i >= 1 && n.length > i ? !1 : n.every(function(c) {
|
|
2951
|
-
var u =
|
|
2951
|
+
var u = cr(c, t), d = Ue(u, 1), g = d[0], p = ur(c, r, o), f = Ue(p, 1), v = f[0], m = l ? l(c) : null;
|
|
2952
2952
|
return g && v && !m;
|
|
2953
2953
|
});
|
|
2954
2954
|
}
|
|
@@ -2963,15 +2963,15 @@ function ot(e) {
|
|
|
2963
2963
|
function On(e) {
|
|
2964
2964
|
e.preventDefault();
|
|
2965
2965
|
}
|
|
2966
|
-
function
|
|
2966
|
+
function zo(e) {
|
|
2967
2967
|
return e.indexOf("MSIE") !== -1 || e.indexOf("Trident/") !== -1;
|
|
2968
2968
|
}
|
|
2969
|
-
function
|
|
2969
|
+
function To(e) {
|
|
2970
2970
|
return e.indexOf("Edge/") !== -1;
|
|
2971
2971
|
}
|
|
2972
|
-
function
|
|
2972
|
+
function Oo() {
|
|
2973
2973
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
|
|
2974
|
-
return
|
|
2974
|
+
return zo(e) || To(e);
|
|
2975
2975
|
}
|
|
2976
2976
|
function Se() {
|
|
2977
2977
|
for (var e = arguments.length, n = new Array(e), t = 0; t < e; t++)
|
|
@@ -2984,17 +2984,17 @@ function Se() {
|
|
|
2984
2984
|
});
|
|
2985
2985
|
};
|
|
2986
2986
|
}
|
|
2987
|
-
function
|
|
2987
|
+
function Io() {
|
|
2988
2988
|
return "showOpenFilePicker" in window;
|
|
2989
2989
|
}
|
|
2990
|
-
function
|
|
2990
|
+
function Vo(e) {
|
|
2991
2991
|
if (Ae(e)) {
|
|
2992
2992
|
var n = Object.entries(e).filter(function(t) {
|
|
2993
2993
|
var r = Ue(t, 2), o = r[0], a = r[1], i = !0;
|
|
2994
|
-
return
|
|
2994
|
+
return dr(o) || (console.warn('Skipped "'.concat(o, '" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')), i = !1), (!Array.isArray(a) || !a.every(pr)) && (console.warn('Skipped "'.concat(o, '" because an invalid file extension was provided.')), i = !1), i;
|
|
2995
2995
|
}).reduce(function(t, r) {
|
|
2996
2996
|
var o = Ue(r, 2), a = o[0], i = o[1];
|
|
2997
|
-
return
|
|
2997
|
+
return Dn(Dn({}, t), {}, lr({}, a, i));
|
|
2998
2998
|
}, {});
|
|
2999
2999
|
return [{
|
|
3000
3000
|
// description is required due to https://crbug.com/1264708
|
|
@@ -3004,49 +3004,49 @@ function Oo(e) {
|
|
|
3004
3004
|
}
|
|
3005
3005
|
return e;
|
|
3006
3006
|
}
|
|
3007
|
-
function
|
|
3007
|
+
function Ho(e) {
|
|
3008
3008
|
if (Ae(e))
|
|
3009
3009
|
return Object.entries(e).reduce(function(n, t) {
|
|
3010
3010
|
var r = Ue(t, 2), o = r[0], a = r[1];
|
|
3011
3011
|
return [].concat(An(n), [o], An(a));
|
|
3012
3012
|
}, []).filter(function(n) {
|
|
3013
|
-
return
|
|
3013
|
+
return dr(n) || pr(n);
|
|
3014
3014
|
}).join(",");
|
|
3015
3015
|
}
|
|
3016
|
-
function
|
|
3016
|
+
function Bo(e) {
|
|
3017
3017
|
return e instanceof DOMException && (e.name === "AbortError" || e.code === e.ABORT_ERR);
|
|
3018
3018
|
}
|
|
3019
|
-
function
|
|
3019
|
+
function qo(e) {
|
|
3020
3020
|
return e instanceof DOMException && (e.name === "SecurityError" || e.code === e.SECURITY_ERR);
|
|
3021
3021
|
}
|
|
3022
|
-
function
|
|
3022
|
+
function dr(e) {
|
|
3023
3023
|
return e === "audio/*" || e === "video/*" || e === "image/*" || e === "text/*" || e === "application/*" || /\w+\/[-+.\w]+/g.test(e);
|
|
3024
3024
|
}
|
|
3025
|
-
function
|
|
3025
|
+
function pr(e) {
|
|
3026
3026
|
return /^.*\.[\w]+$/.test(e);
|
|
3027
3027
|
}
|
|
3028
|
-
var
|
|
3029
|
-
function
|
|
3030
|
-
return
|
|
3028
|
+
var Go = ["children"], Wo = ["open"], Uo = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], Yo = ["refKey", "onChange", "onClick"];
|
|
3029
|
+
function Zo(e) {
|
|
3030
|
+
return Jo(e) || Xo(e) || fr(e) || Ko();
|
|
3031
3031
|
}
|
|
3032
|
-
function
|
|
3032
|
+
function Ko() {
|
|
3033
3033
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
3034
3034
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
3035
3035
|
}
|
|
3036
|
-
function
|
|
3036
|
+
function Xo(e) {
|
|
3037
3037
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
3038
3038
|
}
|
|
3039
|
-
function
|
|
3039
|
+
function Jo(e) {
|
|
3040
3040
|
if (Array.isArray(e)) return Yt(e);
|
|
3041
3041
|
}
|
|
3042
3042
|
function At(e, n) {
|
|
3043
|
-
return
|
|
3043
|
+
return ta(e) || ea(e, n) || fr(e, n) || Qo();
|
|
3044
3044
|
}
|
|
3045
|
-
function
|
|
3045
|
+
function Qo() {
|
|
3046
3046
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3047
3047
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
3048
3048
|
}
|
|
3049
|
-
function
|
|
3049
|
+
function fr(e, n) {
|
|
3050
3050
|
if (e) {
|
|
3051
3051
|
if (typeof e == "string") return Yt(e, n);
|
|
3052
3052
|
var t = Object.prototype.toString.call(e).slice(8, -1);
|
|
@@ -3060,7 +3060,7 @@ function Yt(e, n) {
|
|
|
3060
3060
|
r[t] = e[t];
|
|
3061
3061
|
return r;
|
|
3062
3062
|
}
|
|
3063
|
-
function
|
|
3063
|
+
function ea(e, n) {
|
|
3064
3064
|
var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
3065
3065
|
if (t != null) {
|
|
3066
3066
|
var r = [], o = !0, a = !1, i, l;
|
|
@@ -3079,7 +3079,7 @@ function Jo(e, n) {
|
|
|
3079
3079
|
return r;
|
|
3080
3080
|
}
|
|
3081
3081
|
}
|
|
3082
|
-
function
|
|
3082
|
+
function ta(e) {
|
|
3083
3083
|
if (Array.isArray(e)) return e;
|
|
3084
3084
|
}
|
|
3085
3085
|
function In(e, n) {
|
|
@@ -3108,7 +3108,7 @@ function Zt(e, n, t) {
|
|
|
3108
3108
|
}
|
|
3109
3109
|
function mt(e, n) {
|
|
3110
3110
|
if (e == null) return {};
|
|
3111
|
-
var t =
|
|
3111
|
+
var t = na(e, n), r, o;
|
|
3112
3112
|
if (Object.getOwnPropertySymbols) {
|
|
3113
3113
|
var a = Object.getOwnPropertySymbols(e);
|
|
3114
3114
|
for (o = 0; o < a.length; o++)
|
|
@@ -3116,7 +3116,7 @@ function mt(e, n) {
|
|
|
3116
3116
|
}
|
|
3117
3117
|
return t;
|
|
3118
3118
|
}
|
|
3119
|
-
function
|
|
3119
|
+
function na(e, n) {
|
|
3120
3120
|
if (e == null) return {};
|
|
3121
3121
|
var t = {}, r = Object.keys(e), o, a;
|
|
3122
3122
|
for (a = 0; a < r.length; a++)
|
|
@@ -3124,19 +3124,19 @@ function ea(e, n) {
|
|
|
3124
3124
|
return t;
|
|
3125
3125
|
}
|
|
3126
3126
|
var on = /* @__PURE__ */ Ye(function(e, n) {
|
|
3127
|
-
var t = e.children, r = mt(e,
|
|
3128
|
-
return
|
|
3127
|
+
var t = e.children, r = mt(e, Go), o = gr(r), a = o.open, i = mt(o, Wo);
|
|
3128
|
+
return tr(n, function() {
|
|
3129
3129
|
return {
|
|
3130
3130
|
open: a
|
|
3131
3131
|
};
|
|
3132
|
-
}, [a]), /* @__PURE__ */ Pe.createElement(
|
|
3132
|
+
}, [a]), /* @__PURE__ */ Pe.createElement(Yr, null, t(le(le({}, i), {}, {
|
|
3133
3133
|
open: a
|
|
3134
3134
|
})));
|
|
3135
3135
|
});
|
|
3136
3136
|
on.displayName = "Dropzone";
|
|
3137
|
-
var
|
|
3137
|
+
var mr = {
|
|
3138
3138
|
disabled: !1,
|
|
3139
|
-
getFilesFromEvent:
|
|
3139
|
+
getFilesFromEvent: po,
|
|
3140
3140
|
maxSize: 1 / 0,
|
|
3141
3141
|
minSize: 0,
|
|
3142
3142
|
multiple: !0,
|
|
@@ -3150,7 +3150,7 @@ var fr = {
|
|
|
3150
3150
|
useFsAccessApi: !1,
|
|
3151
3151
|
autoFocus: !1
|
|
3152
3152
|
};
|
|
3153
|
-
on.defaultProps =
|
|
3153
|
+
on.defaultProps = mr;
|
|
3154
3154
|
on.propTypes = {
|
|
3155
3155
|
/**
|
|
3156
3156
|
* Render function that exposes the dropzone state and prop getter fns
|
|
@@ -3328,16 +3328,16 @@ var Kt = {
|
|
|
3328
3328
|
acceptedFiles: [],
|
|
3329
3329
|
fileRejections: []
|
|
3330
3330
|
};
|
|
3331
|
-
function
|
|
3332
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = le(le({},
|
|
3333
|
-
return
|
|
3331
|
+
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, x = 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
|
+
return Ho(t);
|
|
3334
3334
|
}, [t]), ae = Te(function() {
|
|
3335
|
-
return
|
|
3335
|
+
return Vo(t);
|
|
3336
3336
|
}, [t]), ue = Te(function() {
|
|
3337
3337
|
return typeof b == "function" ? b : Vn;
|
|
3338
3338
|
}, [b]), Q = Te(function() {
|
|
3339
3339
|
return typeof m == "function" ? m : Vn;
|
|
3340
|
-
}, [m]), H = se(null), Y = se(null), T =
|
|
3340
|
+
}, [m]), H = se(null), Y = se(null), T = Ur(ra, Kt), te = At(T, 2), pe = te[0], X = te[1], h = pe.isFocused, C = pe.isFileDialogActive, L = se(typeof window < "u" && window.isSecureContext && x && Io()), M = function() {
|
|
3341
3341
|
!L.current && C && setTimeout(function() {
|
|
3342
3342
|
if (Y.current) {
|
|
3343
3343
|
var G = Y.current.files;
|
|
@@ -3352,8 +3352,8 @@ function mr() {
|
|
|
3352
3352
|
window.removeEventListener("focus", M, !1);
|
|
3353
3353
|
};
|
|
3354
3354
|
}, [Y, C, Q, L]);
|
|
3355
|
-
var
|
|
3356
|
-
H.current && H.current.contains(G.target) || (G.preventDefault(),
|
|
3355
|
+
var N = se([]), I = function(G) {
|
|
3356
|
+
H.current && H.current.contains(G.target) || (G.preventDefault(), N.current = []);
|
|
3357
3357
|
};
|
|
3358
3358
|
ce(function() {
|
|
3359
3359
|
return w && (document.addEventListener("dragover", On, !1), document.addEventListener("drop", I, !1)), function() {
|
|
@@ -3366,9 +3366,9 @@ function mr() {
|
|
|
3366
3366
|
var z = oe(function(A) {
|
|
3367
3367
|
V ? V(A) : console.error(A);
|
|
3368
3368
|
}, [V]), E = oe(function(A) {
|
|
3369
|
-
A.preventDefault(), A.persist(), Je(A),
|
|
3370
|
-
if (!(ft(A) && !
|
|
3371
|
-
var me = G.length, ge = me > 0 &&
|
|
3369
|
+
A.preventDefault(), A.persist(), Je(A), N.current = [].concat(Zo(N.current), [A.target]), ot(A) && Promise.resolve(o(A)).then(function(G) {
|
|
3370
|
+
if (!(ft(A) && !D)) {
|
|
3371
|
+
var me = G.length, ge = me > 0 && Do({
|
|
3372
3372
|
files: G,
|
|
3373
3373
|
accept: Z,
|
|
3374
3374
|
minSize: i,
|
|
@@ -3387,7 +3387,7 @@ function mr() {
|
|
|
3387
3387
|
}).catch(function(G) {
|
|
3388
3388
|
return z(G);
|
|
3389
3389
|
});
|
|
3390
|
-
}, [o, u, z,
|
|
3390
|
+
}, [o, u, z, D, Z, i, a, l, c, F]), P = oe(function(A) {
|
|
3391
3391
|
A.preventDefault(), A.persist(), Je(A);
|
|
3392
3392
|
var G = ot(A);
|
|
3393
3393
|
if (G && A.dataTransfer)
|
|
@@ -3396,36 +3396,36 @@ function mr() {
|
|
|
3396
3396
|
} catch {
|
|
3397
3397
|
}
|
|
3398
3398
|
return G && g && g(A), !1;
|
|
3399
|
-
}, [g,
|
|
3399
|
+
}, [g, D]), B = oe(function(A) {
|
|
3400
3400
|
A.preventDefault(), A.persist(), Je(A);
|
|
3401
|
-
var G =
|
|
3401
|
+
var G = N.current.filter(function(ge) {
|
|
3402
3402
|
return H.current && H.current.contains(ge);
|
|
3403
3403
|
}), me = G.indexOf(A.target);
|
|
3404
|
-
me !== -1 && G.splice(me, 1),
|
|
3404
|
+
me !== -1 && G.splice(me, 1), N.current = G, !(G.length > 0) && (X({
|
|
3405
3405
|
type: "setDraggedFiles",
|
|
3406
3406
|
isDragActive: !1,
|
|
3407
3407
|
isDragAccept: !1,
|
|
3408
3408
|
isDragReject: !1
|
|
3409
3409
|
}), ot(A) && d && d(A));
|
|
3410
|
-
}, [H, d,
|
|
3410
|
+
}, [H, d, D]), q = oe(function(A, G) {
|
|
3411
3411
|
var me = [], ge = [];
|
|
3412
3412
|
A.forEach(function(we) {
|
|
3413
|
-
var Ve =
|
|
3414
|
-
if (wt && St && !
|
|
3413
|
+
var Ve = cr(we, Z), ze = At(Ve, 2), wt = ze[0], yt = ze[1], Ct = ur(we, i, a), Qe = At(Ct, 2), St = Qe[0], jt = Qe[1], Rt = F ? F(we) : null;
|
|
3414
|
+
if (wt && St && !Rt)
|
|
3415
3415
|
me.push(we);
|
|
3416
3416
|
else {
|
|
3417
|
-
var kt = [yt,
|
|
3418
|
-
|
|
3417
|
+
var kt = [yt, jt];
|
|
3418
|
+
Rt && (kt = kt.concat(Rt)), ge.push({
|
|
3419
3419
|
file: we,
|
|
3420
|
-
errors: kt.filter(function(
|
|
3421
|
-
return
|
|
3420
|
+
errors: kt.filter(function(Wr) {
|
|
3421
|
+
return Wr;
|
|
3422
3422
|
})
|
|
3423
3423
|
});
|
|
3424
3424
|
}
|
|
3425
3425
|
}), (!l && me.length > 1 || l && c >= 1 && me.length > c) && (me.forEach(function(we) {
|
|
3426
3426
|
ge.push({
|
|
3427
3427
|
file: we,
|
|
3428
|
-
errors: [
|
|
3428
|
+
errors: [No]
|
|
3429
3429
|
});
|
|
3430
3430
|
}), me.splice(0)), X({
|
|
3431
3431
|
acceptedFiles: me,
|
|
@@ -3434,14 +3434,14 @@ function mr() {
|
|
|
3434
3434
|
type: "setFiles"
|
|
3435
3435
|
}), p && p(me, ge, G), ge.length > 0 && v && v(ge, G), me.length > 0 && f && f(me, G);
|
|
3436
3436
|
}, [X, l, Z, i, a, c, p, f, v, F]), S = oe(function(A) {
|
|
3437
|
-
A.preventDefault(), A.persist(), Je(A),
|
|
3438
|
-
ft(A) && !
|
|
3437
|
+
A.preventDefault(), A.persist(), Je(A), N.current = [], ot(A) && Promise.resolve(o(A)).then(function(G) {
|
|
3438
|
+
ft(A) && !D || q(G, A);
|
|
3439
3439
|
}).catch(function(G) {
|
|
3440
3440
|
return z(G);
|
|
3441
3441
|
}), X({
|
|
3442
3442
|
type: "reset"
|
|
3443
3443
|
});
|
|
3444
|
-
}, [o, q, z,
|
|
3444
|
+
}, [o, q, z, D]), j = oe(function() {
|
|
3445
3445
|
if (L.current) {
|
|
3446
3446
|
X({
|
|
3447
3447
|
type: "openDialog"
|
|
@@ -3457,9 +3457,9 @@ function mr() {
|
|
|
3457
3457
|
type: "closeDialog"
|
|
3458
3458
|
});
|
|
3459
3459
|
}).catch(function(G) {
|
|
3460
|
-
|
|
3460
|
+
Bo(G) ? (Q(G), X({
|
|
3461
3461
|
type: "closeDialog"
|
|
3462
|
-
})) :
|
|
3462
|
+
})) : qo(G) ? (L.current = !1, Y.current ? (Y.current.value = null, Y.current.click()) : z(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : z(G);
|
|
3463
3463
|
});
|
|
3464
3464
|
return;
|
|
3465
3465
|
}
|
|
@@ -3467,8 +3467,8 @@ function mr() {
|
|
|
3467
3467
|
type: "openDialog"
|
|
3468
3468
|
}), ue(), Y.current.value = null, Y.current.click());
|
|
3469
3469
|
}, [X, ue, Q, x, q, z, ae, l]), _ = oe(function(A) {
|
|
3470
|
-
!H.current || !H.current.isEqualNode(A.target) || (A.key === " " || A.key === "Enter" || A.keyCode === 32 || A.keyCode === 13) && (A.preventDefault(),
|
|
3471
|
-
}, [H,
|
|
3470
|
+
!H.current || !H.current.isEqualNode(A.target) || (A.key === " " || A.key === "Enter" || A.keyCode === 32 || A.keyCode === 13) && (A.preventDefault(), j());
|
|
3471
|
+
}, [H, j]), J = oe(function() {
|
|
3472
3472
|
X({
|
|
3473
3473
|
type: "focus"
|
|
3474
3474
|
});
|
|
@@ -3477,18 +3477,18 @@ function mr() {
|
|
|
3477
3477
|
type: "blur"
|
|
3478
3478
|
});
|
|
3479
3479
|
}, []), de = oe(function() {
|
|
3480
|
-
$ || (
|
|
3481
|
-
}, [$,
|
|
3480
|
+
$ || (Oo() ? setTimeout(j, 0) : j());
|
|
3481
|
+
}, [$, j]), fe = function(G) {
|
|
3482
3482
|
return r ? null : G;
|
|
3483
3483
|
}, be = function(G) {
|
|
3484
3484
|
return y ? null : fe(G);
|
|
3485
3485
|
}, Xe = function(G) {
|
|
3486
3486
|
return O ? null : fe(G);
|
|
3487
3487
|
}, Je = function(G) {
|
|
3488
|
-
|
|
3489
|
-
},
|
|
3488
|
+
D && G.stopPropagation();
|
|
3489
|
+
}, Br = Te(function() {
|
|
3490
3490
|
return function() {
|
|
3491
|
-
var A = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, G = A.refKey, me = G === void 0 ? "ref" : G, ge = A.role, we = A.onKeyDown, Ve = A.onFocus, ze = A.onBlur, wt = A.onClick, yt = A.onDragEnter, Ct = A.onDragOver, Qe = A.onDragLeave, St = A.onDrop,
|
|
3491
|
+
var A = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, G = A.refKey, me = G === void 0 ? "ref" : G, ge = A.role, we = A.onKeyDown, Ve = A.onFocus, ze = A.onBlur, wt = A.onClick, yt = A.onDragEnter, Ct = A.onDragOver, Qe = A.onDragLeave, St = A.onDrop, jt = mt(A, Uo);
|
|
3492
3492
|
return le(le(Zt({
|
|
3493
3493
|
onKeyDown: be(Se(we, _)),
|
|
3494
3494
|
onFocus: be(Se(Ve, J)),
|
|
@@ -3501,13 +3501,13 @@ function mr() {
|
|
|
3501
3501
|
role: typeof ge == "string" && ge !== "" ? ge : "presentation"
|
|
3502
3502
|
}, me, H), !r && !y ? {
|
|
3503
3503
|
tabIndex: 0
|
|
3504
|
-
} : {}),
|
|
3504
|
+
} : {}), jt);
|
|
3505
3505
|
};
|
|
3506
|
-
}, [H, _, J, ee, de, E, P, B, S, y, O, r]),
|
|
3506
|
+
}, [H, _, J, ee, de, E, P, B, S, y, O, r]), qr = oe(function(A) {
|
|
3507
3507
|
A.stopPropagation();
|
|
3508
|
-
}, []),
|
|
3508
|
+
}, []), Gr = Te(function() {
|
|
3509
3509
|
return function() {
|
|
3510
|
-
var A = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, G = A.refKey, me = G === void 0 ? "ref" : G, ge = A.onChange, we = A.onClick, Ve = mt(A,
|
|
3510
|
+
var A = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, G = A.refKey, me = G === void 0 ? "ref" : G, ge = A.onChange, we = A.onClick, Ve = mt(A, Yo), ze = Zt({
|
|
3511
3511
|
accept: Z,
|
|
3512
3512
|
multiple: l,
|
|
3513
3513
|
type: "file",
|
|
@@ -3524,7 +3524,7 @@ function mr() {
|
|
|
3524
3524
|
whiteSpace: "nowrap"
|
|
3525
3525
|
},
|
|
3526
3526
|
onChange: fe(Se(ge, S)),
|
|
3527
|
-
onClick: fe(Se(we,
|
|
3527
|
+
onClick: fe(Se(we, qr)),
|
|
3528
3528
|
tabIndex: -1
|
|
3529
3529
|
}, me, Y);
|
|
3530
3530
|
return le(le({}, ze), Ve);
|
|
@@ -3532,14 +3532,14 @@ function mr() {
|
|
|
3532
3532
|
}, [Y, t, l, S, r]);
|
|
3533
3533
|
return le(le({}, pe), {}, {
|
|
3534
3534
|
isFocused: h && !r,
|
|
3535
|
-
getRootProps:
|
|
3536
|
-
getInputProps:
|
|
3535
|
+
getRootProps: Br,
|
|
3536
|
+
getInputProps: Gr,
|
|
3537
3537
|
rootRef: H,
|
|
3538
3538
|
inputRef: Y,
|
|
3539
|
-
open: fe(
|
|
3539
|
+
open: fe(j)
|
|
3540
3540
|
});
|
|
3541
3541
|
}
|
|
3542
|
-
function
|
|
3542
|
+
function ra(e, n) {
|
|
3543
3543
|
switch (n.type) {
|
|
3544
3544
|
case "focus":
|
|
3545
3545
|
return le(le({}, e), {}, {
|
|
@@ -3577,7 +3577,7 @@ function ta(e, n) {
|
|
|
3577
3577
|
}
|
|
3578
3578
|
function Vn() {
|
|
3579
3579
|
}
|
|
3580
|
-
const
|
|
3580
|
+
const Tl = ({
|
|
3581
3581
|
onFilesAccepted: e,
|
|
3582
3582
|
onError: n,
|
|
3583
3583
|
accept: t = {
|
|
@@ -3610,7 +3610,7 @@ const zl = ({
|
|
|
3610
3610
|
ce(() => {
|
|
3611
3611
|
$(x);
|
|
3612
3612
|
}, [x]);
|
|
3613
|
-
const
|
|
3613
|
+
const D = oe(
|
|
3614
3614
|
(Q, H) => {
|
|
3615
3615
|
const Y = [];
|
|
3616
3616
|
if (H.length > 0 && H.forEach((T) => {
|
|
@@ -3642,8 +3642,8 @@ const zl = ({
|
|
|
3642
3642
|
]
|
|
3643
3643
|
), V = (Q) => {
|
|
3644
3644
|
$((H) => H.filter((Y, T) => T !== Q)), k(w);
|
|
3645
|
-
}, { getRootProps: F, getInputProps: Z, isDragActive: ae, isDragReject: ue } =
|
|
3646
|
-
onDrop:
|
|
3645
|
+
}, { getRootProps: F, getInputProps: Z, isDragActive: ae, isDragReject: ue } = gr({
|
|
3646
|
+
onDrop: D,
|
|
3647
3647
|
accept: t,
|
|
3648
3648
|
multiple: r,
|
|
3649
3649
|
maxSize: o,
|
|
@@ -3721,7 +3721,7 @@ const zl = ({
|
|
|
3721
3721
|
}
|
|
3722
3722
|
);
|
|
3723
3723
|
};
|
|
3724
|
-
function
|
|
3724
|
+
function oa({
|
|
3725
3725
|
options: e = [],
|
|
3726
3726
|
selectedValue: n,
|
|
3727
3727
|
onChange: t = () => {
|
|
@@ -3767,20 +3767,20 @@ function na({
|
|
|
3767
3767
|
)
|
|
3768
3768
|
] });
|
|
3769
3769
|
}
|
|
3770
|
-
const
|
|
3770
|
+
const aa = {
|
|
3771
3771
|
small: "w-8 h-8 text-base",
|
|
3772
3772
|
medium: "w-12 h-12 text-2xl",
|
|
3773
3773
|
large: "w-16 h-16 text-3xl"
|
|
3774
|
-
},
|
|
3774
|
+
}, ia = {
|
|
3775
3775
|
none: "rounded-none",
|
|
3776
3776
|
small: "rounded-sm",
|
|
3777
3777
|
medium: "rounded-md",
|
|
3778
3778
|
large: "rounded-lg",
|
|
3779
3779
|
full: "rounded-full"
|
|
3780
|
-
},
|
|
3780
|
+
}, la = {
|
|
3781
3781
|
outlined: "border border-color-gray-300 bg-transparent",
|
|
3782
3782
|
filled: "border border-color-gray-300 bg-color-gray-50"
|
|
3783
|
-
},
|
|
3783
|
+
}, sa = Ye(
|
|
3784
3784
|
({
|
|
3785
3785
|
className: e = "",
|
|
3786
3786
|
inputClass: n = "",
|
|
@@ -3819,9 +3819,9 @@ const ra = {
|
|
|
3819
3819
|
disabled: i,
|
|
3820
3820
|
className: `
|
|
3821
3821
|
text-center font-semibold focus:ring-1 ring-color-primary outline-0 transition-all
|
|
3822
|
-
${
|
|
3823
|
-
${
|
|
3824
|
-
${
|
|
3822
|
+
${aa[l]}
|
|
3823
|
+
${la[c]}
|
|
3824
|
+
${ia[u]}
|
|
3825
3825
|
${n}
|
|
3826
3826
|
`,
|
|
3827
3827
|
value: t[b] || "",
|
|
@@ -3833,15 +3833,15 @@ const ra = {
|
|
|
3833
3833
|
)) });
|
|
3834
3834
|
}
|
|
3835
3835
|
);
|
|
3836
|
-
|
|
3837
|
-
const
|
|
3836
|
+
sa.displayName = "OtpInput";
|
|
3837
|
+
const ca = {
|
|
3838
3838
|
small: "p-2 text-sm",
|
|
3839
3839
|
medium: "p-3 text-base",
|
|
3840
3840
|
large: "p-4 text-lg"
|
|
3841
|
-
},
|
|
3841
|
+
}, ua = {
|
|
3842
3842
|
filled: "bg-color-gray-100 border-color-gray-200",
|
|
3843
3843
|
outlined: "border-color-gray-200 bg-color-transparent"
|
|
3844
|
-
},
|
|
3844
|
+
}, vr = Ye(
|
|
3845
3845
|
({
|
|
3846
3846
|
placeholder: e,
|
|
3847
3847
|
value: n,
|
|
@@ -3863,7 +3863,7 @@ const la = {
|
|
|
3863
3863
|
const x = u ? "border-color-red-500 focus-within:ring-color-red-500" : "border-color-gray-200", k = u ? "text-color-red-500" : i;
|
|
3864
3864
|
return /* @__PURE__ */ s.jsxs("div", { className: "w-full", children: [
|
|
3865
3865
|
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 ${x} ${
|
|
3866
|
+
/* @__PURE__ */ s.jsxs("div", { className: `flex items-center w-full rounded-md border focus-within:ring-1 ${x} ${ua[f]} ${o}`, children: [
|
|
3867
3867
|
l && /* @__PURE__ */ s.jsx("span", { className: `pl-3 ${k}`, children: l }),
|
|
3868
3868
|
/* @__PURE__ */ s.jsx(
|
|
3869
3869
|
"input",
|
|
@@ -3875,7 +3875,7 @@ const la = {
|
|
|
3875
3875
|
defaultValue: n,
|
|
3876
3876
|
maxLength: d,
|
|
3877
3877
|
onChange: t,
|
|
3878
|
-
className: `grow outline-0 w-full font-medium placeholder:font-normal bg-color-transparent ${
|
|
3878
|
+
className: `grow outline-0 w-full font-medium placeholder:font-normal bg-color-transparent ${ca[v]} ${a}`
|
|
3879
3879
|
}
|
|
3880
3880
|
),
|
|
3881
3881
|
c && /* @__PURE__ */ s.jsx("span", { className: `pr-3 ${k}`, children: c })
|
|
@@ -3884,11 +3884,11 @@ const la = {
|
|
|
3884
3884
|
] });
|
|
3885
3885
|
}
|
|
3886
3886
|
);
|
|
3887
|
-
|
|
3888
|
-
const
|
|
3887
|
+
vr.displayName = "TextInput";
|
|
3888
|
+
const da = Ye((e, n) => {
|
|
3889
3889
|
const [t, r] = K(!1);
|
|
3890
3890
|
return /* @__PURE__ */ s.jsx(
|
|
3891
|
-
|
|
3891
|
+
vr,
|
|
3892
3892
|
{
|
|
3893
3893
|
...e,
|
|
3894
3894
|
ref: n,
|
|
@@ -3906,22 +3906,8 @@ const ca = Ye((e, n) => {
|
|
|
3906
3906
|
}
|
|
3907
3907
|
);
|
|
3908
3908
|
});
|
|
3909
|
-
|
|
3910
|
-
const
|
|
3911
|
-
small: "text-xs px-2 py-1",
|
|
3912
|
-
medium: "text-sm px-3 py-[0.35rem]",
|
|
3913
|
-
large: "text-base px-4 py-2"
|
|
3914
|
-
}, Tl = ({
|
|
3915
|
-
label: e,
|
|
3916
|
-
color: n = "blue",
|
|
3917
|
-
variant: t = "filled",
|
|
3918
|
-
size: r = "medium",
|
|
3919
|
-
className: o = ""
|
|
3920
|
-
}) => {
|
|
3921
|
-
var u, d;
|
|
3922
|
-
const a = (u = ve[n]) == null ? void 0 : u.filled, i = (d = ve[n]) == null ? void 0 : d.outline, l = ua[r], c = `inline-flex text-nowrap items-center rounded-full font-medium leading-none ${t === "outlined" ? `border ${i}` : a} ${l}`.trim();
|
|
3923
|
-
return /* @__PURE__ */ s.jsx("span", { className: `${c} ${o}`, children: e });
|
|
3924
|
-
}, da = ({
|
|
3909
|
+
da.displayName = "PasswordInput";
|
|
3910
|
+
const hr = ({
|
|
3925
3911
|
src: e,
|
|
3926
3912
|
alt: n,
|
|
3927
3913
|
size: t = "medium",
|
|
@@ -3955,19 +3941,117 @@ const ua = {
|
|
|
3955
3941
|
) : r || ((u = n == null ? void 0 : n[0]) == null ? void 0 : u.toUpperCase()) || "?"
|
|
3956
3942
|
}
|
|
3957
3943
|
);
|
|
3944
|
+
}, je = ({
|
|
3945
|
+
variant: e = "filled",
|
|
3946
|
+
color: n = "blue",
|
|
3947
|
+
icon: t,
|
|
3948
|
+
onClick: r,
|
|
3949
|
+
className: o = "",
|
|
3950
|
+
disabled: a = !1,
|
|
3951
|
+
roundedFull: i = !1,
|
|
3952
|
+
size: l = "medium",
|
|
3953
|
+
autoFocus: c = !1,
|
|
3954
|
+
...u
|
|
3955
|
+
}) => {
|
|
3956
|
+
var f;
|
|
3957
|
+
const d = se(null), g = (v) => {
|
|
3958
|
+
const m = d.current;
|
|
3959
|
+
if (!m) return;
|
|
3960
|
+
const b = document.createElement("span"), x = m.getBoundingClientRect(), k = Math.max(x.width, x.height);
|
|
3961
|
+
b.style.width = b.style.height = `${k}px`, b.style.left = `${v.clientX - x.left - k / 2}px`, b.style.top = `${v.clientY - x.top - k / 2}px`, b.className = "ripple_small", m.appendChild(b), setTimeout(() => b.remove(), 600), r == null || r(v);
|
|
3962
|
+
}, p = ((f = ve[n]) == null ? void 0 : f[e === "filled" ? "filled" : e === "outlined" ? "outline" : "transparent"]) || "";
|
|
3963
|
+
return /* @__PURE__ */ s.jsx(
|
|
3964
|
+
"button",
|
|
3965
|
+
{
|
|
3966
|
+
ref: d,
|
|
3967
|
+
type: "button",
|
|
3968
|
+
disabled: a,
|
|
3969
|
+
onClick: g,
|
|
3970
|
+
className: `relative overflow-hidden flex items-center justify-center gap-1 transition-all focus:outline-0
|
|
3971
|
+
${p}
|
|
3972
|
+
${e === "outlined" && "border"}
|
|
3973
|
+
${o}
|
|
3974
|
+
${l === "small" ? "text-sm size-8" : l === "large" ? "text-lg size-12" : "text-base size-10"}
|
|
3975
|
+
${i ? "rounded-full" : "rounded-md"}
|
|
3976
|
+
${a ? `!text-color-gray-400 hover:bg-color-transparent ${e === "filled" && "!bg-color-gray-200"} !border-color-gray-200 cursor-not-allowed` : "cursor-pointer hover:opacity-90"}
|
|
3977
|
+
`,
|
|
3978
|
+
autoFocus: c,
|
|
3979
|
+
...u,
|
|
3980
|
+
children: t && /* @__PURE__ */ s.jsx(s.Fragment, { children: t })
|
|
3981
|
+
}
|
|
3982
|
+
);
|
|
3983
|
+
}, pa = {
|
|
3984
|
+
small: "text-xs px-2 py-1 gap-1",
|
|
3985
|
+
medium: "text-sm px-3 py-[0.35rem] gap-2",
|
|
3986
|
+
large: "text-base px-4 py-2 gap-2"
|
|
3987
|
+
}, Hn = {
|
|
3988
|
+
small: "!w-4 !h-4 text-xs",
|
|
3989
|
+
medium: "!w-5 !h-5 text-sm",
|
|
3990
|
+
large: "!w-6 !h-6 text-base"
|
|
3958
3991
|
}, Ol = ({
|
|
3992
|
+
label: e,
|
|
3993
|
+
color: n = "blue",
|
|
3994
|
+
variant: t = "filled",
|
|
3995
|
+
size: r = "medium",
|
|
3996
|
+
className: o = "",
|
|
3997
|
+
onClick: a,
|
|
3998
|
+
onDelete: i,
|
|
3999
|
+
deleteIcon: l,
|
|
4000
|
+
href: c,
|
|
4001
|
+
target: u = "_self",
|
|
4002
|
+
avatar: d,
|
|
4003
|
+
icon: g
|
|
4004
|
+
}) => {
|
|
4005
|
+
var x, k;
|
|
4006
|
+
const p = (x = ve[n]) == null ? void 0 : x.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: [
|
|
4007
|
+
d && /* @__PURE__ */ s.jsx(hr, { ...typeof d == "object" ? d : {}, className: `-ml-1 mr-1 ${Hn[r]}` }),
|
|
4008
|
+
g && /* @__PURE__ */ s.jsx("span", { className: "mr-1 -ml-1", children: g }),
|
|
4009
|
+
/* @__PURE__ */ s.jsx("span", { children: e }),
|
|
4010
|
+
i && /* @__PURE__ */ s.jsx(
|
|
4011
|
+
je,
|
|
4012
|
+
{
|
|
4013
|
+
type: "button",
|
|
4014
|
+
className: `ml-1 -mr-1 ${Hn[r]}`,
|
|
4015
|
+
tabIndex: -1,
|
|
4016
|
+
onClick: (w) => {
|
|
4017
|
+
w.stopPropagation(), i(w);
|
|
4018
|
+
},
|
|
4019
|
+
color: "pearl",
|
|
4020
|
+
roundedFull: !0,
|
|
4021
|
+
icon: l || /* @__PURE__ */ s.jsx("svg", { className: "p-1", 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" }) })
|
|
4022
|
+
}
|
|
4023
|
+
)
|
|
4024
|
+
] });
|
|
4025
|
+
return c ? /* @__PURE__ */ s.jsx(
|
|
4026
|
+
"a",
|
|
4027
|
+
{
|
|
4028
|
+
href: c,
|
|
4029
|
+
target: u,
|
|
4030
|
+
className: `no-underline ${m} ${o}`,
|
|
4031
|
+
onClick: a,
|
|
4032
|
+
children: b
|
|
4033
|
+
}
|
|
4034
|
+
) : /* @__PURE__ */ s.jsx(
|
|
4035
|
+
"span",
|
|
4036
|
+
{
|
|
4037
|
+
className: `${m} ${o}`,
|
|
4038
|
+
onClick: a,
|
|
4039
|
+
children: b
|
|
4040
|
+
}
|
|
4041
|
+
);
|
|
4042
|
+
}, Il = ({
|
|
3959
4043
|
size: e,
|
|
3960
4044
|
imageUrl: n,
|
|
3961
4045
|
name: t = "User",
|
|
3962
4046
|
number: r = "1234567890",
|
|
3963
4047
|
className: o = ""
|
|
3964
4048
|
}) => /* @__PURE__ */ s.jsxs("div", { className: o || "flex items-center gap-2 w-fit bg-color-transparent rounded-md p-1", children: [
|
|
3965
|
-
/* @__PURE__ */ s.jsx(
|
|
4049
|
+
/* @__PURE__ */ s.jsx(hr, { size: e, src: n, alt: `${t}'s profile` }),
|
|
3966
4050
|
/* @__PURE__ */ s.jsxs("div", { className: "flex flex-col", children: [
|
|
3967
4051
|
/* @__PURE__ */ s.jsx("span", { className: "text-sm font-medium text-color-gray-800", children: t }),
|
|
3968
4052
|
/* @__PURE__ */ s.jsx("span", { className: "text-xs text-color-gray-600", children: r })
|
|
3969
4053
|
] })
|
|
3970
|
-
] }),
|
|
4054
|
+
] }), Vl = ({ steps: e, currentStep: n, className: t = "", onChange: r }) => /* @__PURE__ */ s.jsx("div", { className: `flex items-center ${t}`, children: e.map((o, a) => {
|
|
3971
4055
|
const i = a === n, l = a < n;
|
|
3972
4056
|
return /* @__PURE__ */ s.jsxs(Pe.Fragment, { children: [
|
|
3973
4057
|
/* @__PURE__ */ s.jsxs(
|
|
@@ -4015,10 +4099,10 @@ function ye(e, n) {
|
|
|
4015
4099
|
function vt(e) {
|
|
4016
4100
|
return e instanceof Function;
|
|
4017
4101
|
}
|
|
4018
|
-
function
|
|
4102
|
+
function fa(e) {
|
|
4019
4103
|
return Array.isArray(e) && e.every((n) => typeof n == "number");
|
|
4020
4104
|
}
|
|
4021
|
-
function
|
|
4105
|
+
function ma(e, n) {
|
|
4022
4106
|
const t = [], r = (o) => {
|
|
4023
4107
|
o.forEach((a) => {
|
|
4024
4108
|
t.push(a);
|
|
@@ -4062,7 +4146,7 @@ function U(e, n, t, r) {
|
|
|
4062
4146
|
onChange: r
|
|
4063
4147
|
};
|
|
4064
4148
|
}
|
|
4065
|
-
function
|
|
4149
|
+
function ga(e, n, t, r) {
|
|
4066
4150
|
const o = () => {
|
|
4067
4151
|
var i;
|
|
4068
4152
|
return (i = a.getValue()) != null ? i : e.options.renderFallbackValue;
|
|
@@ -4085,7 +4169,7 @@ function ma(e, n, t, r) {
|
|
|
4085
4169
|
i.createCell == null || i.createCell(a, t, n, e);
|
|
4086
4170
|
}, {}), a;
|
|
4087
4171
|
}
|
|
4088
|
-
function
|
|
4172
|
+
function va(e, n, t, r) {
|
|
4089
4173
|
var o, a;
|
|
4090
4174
|
const l = {
|
|
4091
4175
|
...e._getDefaultColumnDef(),
|
|
@@ -4126,7 +4210,7 @@ function ga(e, n, t, r) {
|
|
|
4126
4210
|
return g;
|
|
4127
4211
|
}
|
|
4128
4212
|
const xe = "debugHeaders";
|
|
4129
|
-
function
|
|
4213
|
+
function Bn(e, n, t) {
|
|
4130
4214
|
var r;
|
|
4131
4215
|
let a = {
|
|
4132
4216
|
id: (r = t.id) != null ? r : n.id,
|
|
@@ -4155,7 +4239,7 @@ function Hn(e, n, t) {
|
|
|
4155
4239
|
i.createHeader == null || i.createHeader(a, e);
|
|
4156
4240
|
}), a;
|
|
4157
4241
|
}
|
|
4158
|
-
const
|
|
4242
|
+
const ha = {
|
|
4159
4243
|
createTable: (e) => {
|
|
4160
4244
|
e.getHeaderGroups = W(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, r, o) => {
|
|
4161
4245
|
var a, i;
|
|
@@ -4207,7 +4291,7 @@ function at(e, n, t, r) {
|
|
|
4207
4291
|
if (k && b.column.parent ? w = b.column.parent : (w = b.column, $ = !0), x && (x == null ? void 0 : x.column) === w)
|
|
4208
4292
|
x.subHeaders.push(b);
|
|
4209
4293
|
else {
|
|
4210
|
-
const y =
|
|
4294
|
+
const y = Bn(t, w, {
|
|
4211
4295
|
id: [r, f, w.id, b == null ? void 0 : b.id].filter(Boolean).join("_"),
|
|
4212
4296
|
isPlaceholder: $,
|
|
4213
4297
|
placeholderId: $ ? `${m.filter((O) => O.column === w).length}` : void 0,
|
|
@@ -4218,7 +4302,7 @@ function at(e, n, t, r) {
|
|
|
4218
4302
|
}
|
|
4219
4303
|
v.headers.push(b), b.headerGroup = v;
|
|
4220
4304
|
}), c.push(v), f > 0 && u(m, f - 1);
|
|
4221
|
-
}, d = n.map((p, f) =>
|
|
4305
|
+
}, d = n.map((p, f) => Bn(t, p, {
|
|
4222
4306
|
depth: i,
|
|
4223
4307
|
index: f
|
|
4224
4308
|
}));
|
|
@@ -4240,7 +4324,7 @@ function at(e, n, t, r) {
|
|
|
4240
4324
|
});
|
|
4241
4325
|
return g((o = (a = c[0]) == null ? void 0 : a.headers) != null ? o : []), c;
|
|
4242
4326
|
}
|
|
4243
|
-
const
|
|
4327
|
+
const xa = (e, n, t, r, o, a, i) => {
|
|
4244
4328
|
let l = {
|
|
4245
4329
|
id: n,
|
|
4246
4330
|
index: r,
|
|
@@ -4268,7 +4352,7 @@ const ha = (e, n, t, r, o, a, i) => {
|
|
|
4268
4352
|
return (u = l.getValue(c)) != null ? u : e.options.renderFallbackValue;
|
|
4269
4353
|
},
|
|
4270
4354
|
subRows: [],
|
|
4271
|
-
getLeafRows: () =>
|
|
4355
|
+
getLeafRows: () => ma(l.subRows, (c) => c.subRows),
|
|
4272
4356
|
getParentRow: () => l.parentId ? e.getRow(l.parentId, !0) : void 0,
|
|
4273
4357
|
getParentRows: () => {
|
|
4274
4358
|
let c = [], u = l;
|
|
@@ -4279,7 +4363,7 @@ const ha = (e, n, t, r, o, a, i) => {
|
|
|
4279
4363
|
}
|
|
4280
4364
|
return c.reverse();
|
|
4281
4365
|
},
|
|
4282
|
-
getAllCells: W(() => [e.getAllLeafColumns()], (c) => c.map((u) =>
|
|
4366
|
+
getAllCells: W(() => [e.getAllLeafColumns()], (c) => c.map((u) => ga(e, l, u, u.id)), U(e.options, "debugRows", "getAllCells")),
|
|
4283
4367
|
_getAllCellsByColumnId: W(() => [l.getAllCells()], (c) => c.reduce((u, d) => (u[d.column.id] = d, u), {}), U(e.options, "debugRows", "getAllCellsByColumnId"))
|
|
4284
4368
|
};
|
|
4285
4369
|
for (let c = 0; c < e._features.length; c++) {
|
|
@@ -4287,48 +4371,48 @@ const ha = (e, n, t, r, o, a, i) => {
|
|
|
4287
4371
|
u == null || u.createRow == null || u.createRow(l, e);
|
|
4288
4372
|
}
|
|
4289
4373
|
return l;
|
|
4290
|
-
},
|
|
4374
|
+
}, ba = {
|
|
4291
4375
|
createColumn: (e, n) => {
|
|
4292
4376
|
e._getFacetedRowModel = n.options.getFacetedRowModel && n.options.getFacetedRowModel(n, e.id), e.getFacetedRowModel = () => e._getFacetedRowModel ? e._getFacetedRowModel() : n.getPreFilteredRowModel(), e._getFacetedUniqueValues = n.options.getFacetedUniqueValues && n.options.getFacetedUniqueValues(n, e.id), e.getFacetedUniqueValues = () => e._getFacetedUniqueValues ? e._getFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getFacetedMinMaxValues = n.options.getFacetedMinMaxValues && n.options.getFacetedMinMaxValues(n, e.id), e.getFacetedMinMaxValues = () => {
|
|
4293
4377
|
if (e._getFacetedMinMaxValues)
|
|
4294
4378
|
return e._getFacetedMinMaxValues();
|
|
4295
4379
|
};
|
|
4296
4380
|
}
|
|
4297
|
-
},
|
|
4381
|
+
}, xr = (e, n, t) => {
|
|
4298
4382
|
var r, o;
|
|
4299
4383
|
const a = t == null || (r = t.toString()) == null ? void 0 : r.toLowerCase();
|
|
4300
4384
|
return !!(!((o = e.getValue(n)) == null || (o = o.toString()) == null || (o = o.toLowerCase()) == null) && o.includes(a));
|
|
4301
4385
|
};
|
|
4302
|
-
|
|
4303
|
-
const
|
|
4386
|
+
xr.autoRemove = (e) => Ce(e);
|
|
4387
|
+
const br = (e, n, t) => {
|
|
4304
4388
|
var r;
|
|
4305
4389
|
return !!(!((r = e.getValue(n)) == null || (r = r.toString()) == null) && r.includes(t));
|
|
4306
4390
|
};
|
|
4307
|
-
|
|
4308
|
-
const
|
|
4391
|
+
br.autoRemove = (e) => Ce(e);
|
|
4392
|
+
const wr = (e, n, t) => {
|
|
4309
4393
|
var r;
|
|
4310
4394
|
return ((r = e.getValue(n)) == null || (r = r.toString()) == null ? void 0 : r.toLowerCase()) === (t == null ? void 0 : t.toLowerCase());
|
|
4311
4395
|
};
|
|
4312
|
-
|
|
4313
|
-
const
|
|
4396
|
+
wr.autoRemove = (e) => Ce(e);
|
|
4397
|
+
const yr = (e, n, t) => {
|
|
4314
4398
|
var r;
|
|
4315
4399
|
return (r = e.getValue(n)) == null ? void 0 : r.includes(t);
|
|
4316
4400
|
};
|
|
4317
|
-
|
|
4318
|
-
const
|
|
4401
|
+
yr.autoRemove = (e) => Ce(e);
|
|
4402
|
+
const Cr = (e, n, t) => !t.some((r) => {
|
|
4319
4403
|
var o;
|
|
4320
4404
|
return !((o = e.getValue(n)) != null && o.includes(r));
|
|
4321
4405
|
});
|
|
4322
|
-
|
|
4323
|
-
const
|
|
4406
|
+
Cr.autoRemove = (e) => Ce(e) || !(e != null && e.length);
|
|
4407
|
+
const Sr = (e, n, t) => t.some((r) => {
|
|
4324
4408
|
var o;
|
|
4325
4409
|
return (o = e.getValue(n)) == null ? void 0 : o.includes(r);
|
|
4326
4410
|
});
|
|
4327
|
-
|
|
4328
|
-
const
|
|
4329
|
-
|
|
4330
|
-
const
|
|
4331
|
-
|
|
4411
|
+
Sr.autoRemove = (e) => Ce(e) || !(e != null && e.length);
|
|
4412
|
+
const jr = (e, n, t) => e.getValue(n) === t;
|
|
4413
|
+
jr.autoRemove = (e) => Ce(e);
|
|
4414
|
+
const Rr = (e, n, t) => e.getValue(n) == t;
|
|
4415
|
+
Rr.autoRemove = (e) => Ce(e);
|
|
4332
4416
|
const an = (e, n, t) => {
|
|
4333
4417
|
let [r, o] = t;
|
|
4334
4418
|
const a = e.getValue(n);
|
|
@@ -4344,20 +4428,20 @@ an.resolveFilterValue = (e) => {
|
|
|
4344
4428
|
};
|
|
4345
4429
|
an.autoRemove = (e) => Ce(e) || Ce(e[0]) && Ce(e[1]);
|
|
4346
4430
|
const Re = {
|
|
4347
|
-
includesString:
|
|
4348
|
-
includesStringSensitive:
|
|
4349
|
-
equalsString:
|
|
4350
|
-
arrIncludes:
|
|
4351
|
-
arrIncludesAll:
|
|
4352
|
-
arrIncludesSome:
|
|
4353
|
-
equals:
|
|
4354
|
-
weakEquals:
|
|
4431
|
+
includesString: xr,
|
|
4432
|
+
includesStringSensitive: br,
|
|
4433
|
+
equalsString: wr,
|
|
4434
|
+
arrIncludes: yr,
|
|
4435
|
+
arrIncludesAll: Cr,
|
|
4436
|
+
arrIncludesSome: Sr,
|
|
4437
|
+
equals: jr,
|
|
4438
|
+
weakEquals: Rr,
|
|
4355
4439
|
inNumberRange: an
|
|
4356
4440
|
};
|
|
4357
4441
|
function Ce(e) {
|
|
4358
4442
|
return e == null || e === "";
|
|
4359
4443
|
}
|
|
4360
|
-
const
|
|
4444
|
+
const wa = {
|
|
4361
4445
|
getDefaultColumnDef: () => ({
|
|
4362
4446
|
filterFn: "auto"
|
|
4363
4447
|
}),
|
|
@@ -4392,7 +4476,7 @@ const ba = {
|
|
|
4392
4476
|
}, e.setFilterValue = (t) => {
|
|
4393
4477
|
n.setColumnFilters((r) => {
|
|
4394
4478
|
const o = e.getFilterFn(), a = r == null ? void 0 : r.find((d) => d.id === e.id), i = Me(t, a ? a.value : void 0);
|
|
4395
|
-
if (
|
|
4479
|
+
if (qn(o, i, e)) {
|
|
4396
4480
|
var l;
|
|
4397
4481
|
return (l = r == null ? void 0 : r.filter((d) => d.id !== e.id)) != null ? l : [];
|
|
4398
4482
|
}
|
|
@@ -4419,7 +4503,7 @@ const ba = {
|
|
|
4419
4503
|
const l = t.find((c) => c.id === i.id);
|
|
4420
4504
|
if (l) {
|
|
4421
4505
|
const c = l.getFilterFn();
|
|
4422
|
-
if (
|
|
4506
|
+
if (qn(c, i.value, l))
|
|
4423
4507
|
return !1;
|
|
4424
4508
|
}
|
|
4425
4509
|
return !0;
|
|
@@ -4432,25 +4516,25 @@ const ba = {
|
|
|
4432
4516
|
}, e.getPreFilteredRowModel = () => e.getCoreRowModel(), e.getFilteredRowModel = () => (!e._getFilteredRowModel && e.options.getFilteredRowModel && (e._getFilteredRowModel = e.options.getFilteredRowModel(e)), e.options.manualFiltering || !e._getFilteredRowModel ? e.getPreFilteredRowModel() : e._getFilteredRowModel());
|
|
4433
4517
|
}
|
|
4434
4518
|
};
|
|
4435
|
-
function
|
|
4519
|
+
function qn(e, n, t) {
|
|
4436
4520
|
return (e && e.autoRemove ? e.autoRemove(n, t) : !1) || typeof n > "u" || typeof n == "string" && !n;
|
|
4437
4521
|
}
|
|
4438
|
-
const
|
|
4522
|
+
const ya = (e, n, t) => t.reduce((r, o) => {
|
|
4439
4523
|
const a = o.getValue(e);
|
|
4440
4524
|
return r + (typeof a == "number" ? a : 0);
|
|
4441
|
-
}, 0),
|
|
4525
|
+
}, 0), Ca = (e, n, t) => {
|
|
4442
4526
|
let r;
|
|
4443
4527
|
return t.forEach((o) => {
|
|
4444
4528
|
const a = o.getValue(e);
|
|
4445
4529
|
a != null && (r > a || r === void 0 && a >= a) && (r = a);
|
|
4446
4530
|
}), r;
|
|
4447
|
-
},
|
|
4531
|
+
}, Sa = (e, n, t) => {
|
|
4448
4532
|
let r;
|
|
4449
4533
|
return t.forEach((o) => {
|
|
4450
4534
|
const a = o.getValue(e);
|
|
4451
4535
|
a != null && (r < a || r === void 0 && a >= a) && (r = a);
|
|
4452
4536
|
}), r;
|
|
4453
|
-
},
|
|
4537
|
+
}, ja = (e, n, t) => {
|
|
4454
4538
|
let r, o;
|
|
4455
4539
|
return t.forEach((a) => {
|
|
4456
4540
|
const i = a.getValue(e);
|
|
@@ -4462,27 +4546,27 @@ const wa = (e, n, t) => t.reduce((r, o) => {
|
|
|
4462
4546
|
let a = o.getValue(e);
|
|
4463
4547
|
a != null && (a = +a) >= a && (++t, r += a);
|
|
4464
4548
|
}), t) return r / t;
|
|
4465
|
-
},
|
|
4549
|
+
}, ka = (e, n) => {
|
|
4466
4550
|
if (!n.length)
|
|
4467
4551
|
return;
|
|
4468
4552
|
const t = n.map((a) => a.getValue(e));
|
|
4469
|
-
if (!
|
|
4553
|
+
if (!fa(t))
|
|
4470
4554
|
return;
|
|
4471
4555
|
if (t.length === 1)
|
|
4472
4556
|
return t[0];
|
|
4473
4557
|
const r = Math.floor(t.length / 2), o = t.sort((a, i) => a - i);
|
|
4474
4558
|
return t.length % 2 !== 0 ? o[r] : (o[r - 1] + o[r]) / 2;
|
|
4475
|
-
},
|
|
4476
|
-
sum:
|
|
4477
|
-
min:
|
|
4478
|
-
max:
|
|
4479
|
-
extent:
|
|
4559
|
+
}, $a = (e, n) => Array.from(new Set(n.map((t) => t.getValue(e))).values()), _a = (e, n) => new Set(n.map((t) => t.getValue(e))).size, Ea = (e, n) => n.length, Nt = {
|
|
4560
|
+
sum: ya,
|
|
4561
|
+
min: Ca,
|
|
4562
|
+
max: Sa,
|
|
4563
|
+
extent: ja,
|
|
4480
4564
|
mean: Ra,
|
|
4481
|
-
median:
|
|
4482
|
-
unique:
|
|
4483
|
-
uniqueCount:
|
|
4484
|
-
count:
|
|
4485
|
-
},
|
|
4565
|
+
median: ka,
|
|
4566
|
+
unique: $a,
|
|
4567
|
+
uniqueCount: _a,
|
|
4568
|
+
count: Ea
|
|
4569
|
+
}, Pa = {
|
|
4486
4570
|
getDefaultColumnDef: () => ({
|
|
4487
4571
|
aggregatedCell: (e) => {
|
|
4488
4572
|
var n, t;
|
|
@@ -4518,14 +4602,14 @@ const wa = (e, n, t) => t.reduce((r, o) => {
|
|
|
4518
4602
|
}, e.getAutoAggregationFn = () => {
|
|
4519
4603
|
const t = n.getCoreRowModel().flatRows[0], r = t == null ? void 0 : t.getValue(e.id);
|
|
4520
4604
|
if (typeof r == "number")
|
|
4521
|
-
return
|
|
4605
|
+
return Nt.sum;
|
|
4522
4606
|
if (Object.prototype.toString.call(r) === "[object Date]")
|
|
4523
|
-
return
|
|
4607
|
+
return Nt.extent;
|
|
4524
4608
|
}, e.getAggregationFn = () => {
|
|
4525
4609
|
var t, r;
|
|
4526
4610
|
if (!e)
|
|
4527
4611
|
throw new Error();
|
|
4528
|
-
return vt(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : (t = (r = n.options.aggregationFns) == null ? void 0 : r[e.columnDef.aggregationFn]) != null ? t :
|
|
4612
|
+
return vt(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : (t = (r = n.options.aggregationFns) == null ? void 0 : r[e.columnDef.aggregationFn]) != null ? t : Nt[e.columnDef.aggregationFn];
|
|
4529
4613
|
};
|
|
4530
4614
|
},
|
|
4531
4615
|
createTable: (e) => {
|
|
@@ -4549,13 +4633,13 @@ const wa = (e, n, t) => t.reduce((r, o) => {
|
|
|
4549
4633
|
};
|
|
4550
4634
|
}
|
|
4551
4635
|
};
|
|
4552
|
-
function
|
|
4636
|
+
function Ma(e, n, t) {
|
|
4553
4637
|
if (!(n != null && n.length) || !t)
|
|
4554
4638
|
return e;
|
|
4555
4639
|
const r = e.filter((a) => !n.includes(a.id));
|
|
4556
4640
|
return t === "remove" ? r : [...n.map((a) => e.find((i) => i.id === a)).filter(Boolean), ...r];
|
|
4557
4641
|
}
|
|
4558
|
-
const
|
|
4642
|
+
const La = {
|
|
4559
4643
|
getInitialState: (e) => ({
|
|
4560
4644
|
columnOrder: [],
|
|
4561
4645
|
...e
|
|
@@ -4589,15 +4673,15 @@ const Ma = {
|
|
|
4589
4673
|
}
|
|
4590
4674
|
a = [...a, ...l];
|
|
4591
4675
|
}
|
|
4592
|
-
return
|
|
4676
|
+
return Ma(a, t, r);
|
|
4593
4677
|
}, U(e.options, "debugTable", "_getOrderColumnsFn"));
|
|
4594
4678
|
}
|
|
4595
|
-
},
|
|
4679
|
+
}, Dt = () => ({
|
|
4596
4680
|
left: [],
|
|
4597
4681
|
right: []
|
|
4598
|
-
}),
|
|
4682
|
+
}), Fa = {
|
|
4599
4683
|
getInitialState: (e) => ({
|
|
4600
|
-
columnPinning:
|
|
4684
|
+
columnPinning: Dt(),
|
|
4601
4685
|
...e
|
|
4602
4686
|
}),
|
|
4603
4687
|
getDefaultOptions: (e) => ({
|
|
@@ -4657,7 +4741,7 @@ const Ma = {
|
|
|
4657
4741
|
createTable: (e) => {
|
|
4658
4742
|
e.setColumnPinning = (n) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(n), e.resetColumnPinning = (n) => {
|
|
4659
4743
|
var t, r;
|
|
4660
|
-
return e.setColumnPinning(n ?
|
|
4744
|
+
return e.setColumnPinning(n ? Dt() : (t = (r = e.initialState) == null ? void 0 : r.columnPinning) != null ? t : Dt());
|
|
4661
4745
|
}, e.getIsSomeColumnsPinned = (n) => {
|
|
4662
4746
|
var t;
|
|
4663
4747
|
const r = e.getState().columnPinning;
|
|
@@ -4682,7 +4766,7 @@ const Ma = {
|
|
|
4682
4766
|
deltaPercentage: null,
|
|
4683
4767
|
isResizingColumn: !1,
|
|
4684
4768
|
columnSizingStart: []
|
|
4685
|
-
}),
|
|
4769
|
+
}), Aa = {
|
|
4686
4770
|
getDefaultColumnDef: () => it,
|
|
4687
4771
|
getInitialState: (e) => ({
|
|
4688
4772
|
columnSizing: {},
|
|
@@ -4739,13 +4823,13 @@ const Ma = {
|
|
|
4739
4823
|
const i = e.getSize(), l = e ? e.getLeafHeaders().map((x) => [x.column.id, x.column.getSize()]) : [[r.id, r.getSize()]], c = Tt(a) ? Math.round(a.touches[0].clientX) : a.clientX, u = {}, d = (x, k) => {
|
|
4740
4824
|
typeof k == "number" && (n.setColumnSizingInfo((w) => {
|
|
4741
4825
|
var $, y;
|
|
4742
|
-
const O = n.options.columnResizeDirection === "rtl" ? -1 : 1,
|
|
4826
|
+
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);
|
|
4743
4827
|
return w.columnSizingStart.forEach((F) => {
|
|
4744
4828
|
let [Z, ae] = F;
|
|
4745
4829
|
u[Z] = Math.round(Math.max(ae + ae * V, 0) * 100) / 100;
|
|
4746
4830
|
}), {
|
|
4747
4831
|
...w,
|
|
4748
|
-
deltaOffset:
|
|
4832
|
+
deltaOffset: D,
|
|
4749
4833
|
deltaPercentage: V
|
|
4750
4834
|
};
|
|
4751
4835
|
}), (n.options.columnResizeMode === "onChange" || x === "end") && n.setColumnSizing((w) => ({
|
|
@@ -4773,7 +4857,7 @@ const Ma = {
|
|
|
4773
4857
|
var k;
|
|
4774
4858
|
f == null || f.removeEventListener("touchmove", m.moveHandler), f == null || f.removeEventListener("touchend", m.upHandler), x.cancelable && (x.preventDefault(), x.stopPropagation()), p((k = x.touches[0]) == null ? void 0 : k.clientX);
|
|
4775
4859
|
}
|
|
4776
|
-
}, b =
|
|
4860
|
+
}, b = Na() ? {
|
|
4777
4861
|
passive: !1
|
|
4778
4862
|
} : !1;
|
|
4779
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((x) => ({
|
|
@@ -4811,7 +4895,7 @@ const Ma = {
|
|
|
4811
4895
|
}
|
|
4812
4896
|
};
|
|
4813
4897
|
let lt = null;
|
|
4814
|
-
function
|
|
4898
|
+
function Na() {
|
|
4815
4899
|
if (typeof lt == "boolean") return lt;
|
|
4816
4900
|
let e = !1;
|
|
4817
4901
|
try {
|
|
@@ -4878,14 +4962,14 @@ const Da = {
|
|
|
4878
4962
|
function We(e, n) {
|
|
4879
4963
|
return n ? n === "center" ? e.getCenterVisibleLeafColumns() : n === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
|
|
4880
4964
|
}
|
|
4881
|
-
const
|
|
4965
|
+
const za = {
|
|
4882
4966
|
createTable: (e) => {
|
|
4883
4967
|
e._getGlobalFacetedRowModel = e.options.getFacetedRowModel && e.options.getFacetedRowModel(e, "__global__"), e.getGlobalFacetedRowModel = () => e.options.manualFiltering || !e._getGlobalFacetedRowModel ? e.getPreFilteredRowModel() : e._getGlobalFacetedRowModel(), e._getGlobalFacetedUniqueValues = e.options.getFacetedUniqueValues && e.options.getFacetedUniqueValues(e, "__global__"), e.getGlobalFacetedUniqueValues = () => e._getGlobalFacetedUniqueValues ? e._getGlobalFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getGlobalFacetedMinMaxValues = e.options.getFacetedMinMaxValues && e.options.getFacetedMinMaxValues(e, "__global__"), e.getGlobalFacetedMinMaxValues = () => {
|
|
4884
4968
|
if (e._getGlobalFacetedMinMaxValues)
|
|
4885
4969
|
return e._getGlobalFacetedMinMaxValues();
|
|
4886
4970
|
};
|
|
4887
4971
|
}
|
|
4888
|
-
},
|
|
4972
|
+
}, Ta = {
|
|
4889
4973
|
getInitialState: (e) => ({
|
|
4890
4974
|
globalFilter: void 0,
|
|
4891
4975
|
...e
|
|
@@ -4918,7 +5002,7 @@ const Na = {
|
|
|
4918
5002
|
e.setGlobalFilter(n ? void 0 : e.initialState.globalFilter);
|
|
4919
5003
|
};
|
|
4920
5004
|
}
|
|
4921
|
-
},
|
|
5005
|
+
}, Oa = {
|
|
4922
5006
|
getInitialState: (e) => ({
|
|
4923
5007
|
expanded: {},
|
|
4924
5008
|
...e
|
|
@@ -5008,7 +5092,7 @@ const Na = {
|
|
|
5008
5092
|
}, Xt = 0, Jt = 10, Ot = () => ({
|
|
5009
5093
|
pageIndex: Xt,
|
|
5010
5094
|
pageSize: Jt
|
|
5011
|
-
}),
|
|
5095
|
+
}), Ia = {
|
|
5012
5096
|
getInitialState: (e) => ({
|
|
5013
5097
|
...e,
|
|
5014
5098
|
pagination: {
|
|
@@ -5091,7 +5175,7 @@ const Na = {
|
|
|
5091
5175
|
}, It = () => ({
|
|
5092
5176
|
top: [],
|
|
5093
5177
|
bottom: []
|
|
5094
|
-
}),
|
|
5178
|
+
}), Va = {
|
|
5095
5179
|
getInitialState: (e) => ({
|
|
5096
5180
|
rowPinning: It(),
|
|
5097
5181
|
...e
|
|
@@ -5192,7 +5276,7 @@ const Na = {
|
|
|
5192
5276
|
return n.filter((a) => !o.has(a.id));
|
|
5193
5277
|
}, U(e.options, "debugRows", "getCenterRows"));
|
|
5194
5278
|
}
|
|
5195
|
-
},
|
|
5279
|
+
}, Ha = {
|
|
5196
5280
|
getInitialState: (e) => ({
|
|
5197
5281
|
rowSelection: {},
|
|
5198
5282
|
...e
|
|
@@ -5348,17 +5432,17 @@ function en(e, n, t) {
|
|
|
5348
5432
|
}
|
|
5349
5433
|
}), o ? "all" : a ? "some" : !1;
|
|
5350
5434
|
}
|
|
5351
|
-
const tn = /([0-9]+)/gm,
|
|
5435
|
+
const tn = /([0-9]+)/gm, Ba = (e, n, t) => kr(Le(e.getValue(t)).toLowerCase(), Le(n.getValue(t)).toLowerCase()), qa = (e, n, t) => kr(Le(e.getValue(t)), Le(n.getValue(t))), Ga = (e, n, t) => sn(Le(e.getValue(t)).toLowerCase(), Le(n.getValue(t)).toLowerCase()), Wa = (e, n, t) => sn(Le(e.getValue(t)), Le(n.getValue(t))), Ua = (e, n, t) => {
|
|
5352
5436
|
const r = e.getValue(t), o = n.getValue(t);
|
|
5353
5437
|
return r > o ? 1 : r < o ? -1 : 0;
|
|
5354
|
-
},
|
|
5438
|
+
}, Ya = (e, n, t) => sn(e.getValue(t), n.getValue(t));
|
|
5355
5439
|
function sn(e, n) {
|
|
5356
5440
|
return e === n ? 0 : e > n ? 1 : -1;
|
|
5357
5441
|
}
|
|
5358
5442
|
function Le(e) {
|
|
5359
5443
|
return typeof e == "number" ? isNaN(e) || e === 1 / 0 || e === -1 / 0 ? "" : String(e) : typeof e == "string" ? e : "";
|
|
5360
5444
|
}
|
|
5361
|
-
function
|
|
5445
|
+
function kr(e, n) {
|
|
5362
5446
|
const t = e.split(tn).filter(Boolean), r = n.split(tn).filter(Boolean);
|
|
5363
5447
|
for (; t.length && r.length; ) {
|
|
5364
5448
|
const o = t.shift(), a = r.shift(), i = parseInt(o, 10), l = parseInt(a, 10), c = [i, l].sort();
|
|
@@ -5379,13 +5463,13 @@ function Rr(e, n) {
|
|
|
5379
5463
|
return t.length - r.length;
|
|
5380
5464
|
}
|
|
5381
5465
|
const qe = {
|
|
5382
|
-
alphanumeric:
|
|
5383
|
-
alphanumericCaseSensitive:
|
|
5384
|
-
text:
|
|
5385
|
-
textCaseSensitive:
|
|
5386
|
-
datetime:
|
|
5387
|
-
basic:
|
|
5388
|
-
},
|
|
5466
|
+
alphanumeric: Ba,
|
|
5467
|
+
alphanumericCaseSensitive: qa,
|
|
5468
|
+
text: Ga,
|
|
5469
|
+
textCaseSensitive: Wa,
|
|
5470
|
+
datetime: Ua,
|
|
5471
|
+
basic: Ya
|
|
5472
|
+
}, Za = {
|
|
5389
5473
|
getInitialState: (e) => ({
|
|
5390
5474
|
sorting: [],
|
|
5391
5475
|
...e
|
|
@@ -5474,30 +5558,30 @@ const qe = {
|
|
|
5474
5558
|
e.setSorting(n ? [] : (t = (r = e.initialState) == null ? void 0 : r.sorting) != null ? t : []);
|
|
5475
5559
|
}, 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());
|
|
5476
5560
|
}
|
|
5477
|
-
},
|
|
5478
|
-
|
|
5561
|
+
}, Ka = [
|
|
5562
|
+
ha,
|
|
5479
5563
|
Da,
|
|
5480
|
-
Ma,
|
|
5481
5564
|
La,
|
|
5482
|
-
|
|
5565
|
+
Fa,
|
|
5483
5566
|
ba,
|
|
5484
|
-
|
|
5485
|
-
//depends on ColumnFaceting
|
|
5567
|
+
wa,
|
|
5486
5568
|
za,
|
|
5569
|
+
//depends on ColumnFaceting
|
|
5570
|
+
Ta,
|
|
5487
5571
|
//depends on ColumnFiltering
|
|
5488
|
-
|
|
5489
|
-
|
|
5572
|
+
Za,
|
|
5573
|
+
Pa,
|
|
5490
5574
|
//depends on RowSorting
|
|
5491
|
-
Ta,
|
|
5492
5575
|
Oa,
|
|
5493
5576
|
Ia,
|
|
5494
5577
|
Va,
|
|
5495
|
-
|
|
5578
|
+
Ha,
|
|
5579
|
+
Aa
|
|
5496
5580
|
];
|
|
5497
|
-
function
|
|
5581
|
+
function Xa(e) {
|
|
5498
5582
|
var n, t;
|
|
5499
5583
|
process.env.NODE_ENV !== "production" && (e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
|
|
5500
|
-
const r = [...
|
|
5584
|
+
const r = [...Ka, ...(n = e._features) != null ? n : []];
|
|
5501
5585
|
let o = {
|
|
5502
5586
|
_features: r
|
|
5503
5587
|
};
|
|
@@ -5577,7 +5661,7 @@ function Ka(e) {
|
|
|
5577
5661
|
getAllColumns: W(() => [o._getColumnDefs()], (p) => {
|
|
5578
5662
|
const f = function(v, m, b) {
|
|
5579
5663
|
return b === void 0 && (b = 0), v.map((x) => {
|
|
5580
|
-
const k =
|
|
5664
|
+
const k = va(o, x, b, m), w = x;
|
|
5581
5665
|
return k.columns = w.columns ? f(w.columns, k, b + 1) : [], k;
|
|
5582
5666
|
});
|
|
5583
5667
|
};
|
|
@@ -5601,7 +5685,7 @@ function Ka(e) {
|
|
|
5601
5685
|
}
|
|
5602
5686
|
return o;
|
|
5603
5687
|
}
|
|
5604
|
-
function
|
|
5688
|
+
function Ja() {
|
|
5605
5689
|
return (e) => W(() => [e.options.data], (n) => {
|
|
5606
5690
|
const t = {
|
|
5607
5691
|
rows: [],
|
|
@@ -5611,7 +5695,7 @@ function Xa() {
|
|
|
5611
5695
|
a === void 0 && (a = 0);
|
|
5612
5696
|
const l = [];
|
|
5613
5697
|
for (let u = 0; u < o.length; u++) {
|
|
5614
|
-
const d =
|
|
5698
|
+
const d = xa(e, e._getRowId(o[u], u, i), o[u], u, a, void 0, i == null ? void 0 : i.id);
|
|
5615
5699
|
if (t.flatRows.push(d), t.rowsById[d.id] = d, l.push(d), e.options.getSubRows) {
|
|
5616
5700
|
var c;
|
|
5617
5701
|
d.originalSubRows = e.options.getSubRows(o[u], u), (c = d.originalSubRows) != null && c.length && (d.subRows = r(d.originalSubRows, a + 1, d));
|
|
@@ -5632,7 +5716,7 @@ function Xa() {
|
|
|
5632
5716
|
*
|
|
5633
5717
|
* @license MIT
|
|
5634
5718
|
*/
|
|
5635
|
-
function
|
|
5719
|
+
function Qa(e) {
|
|
5636
5720
|
const n = {
|
|
5637
5721
|
state: {},
|
|
5638
5722
|
// Dummy state
|
|
@@ -5641,9 +5725,9 @@ function Ja(e) {
|
|
|
5641
5725
|
// noop
|
|
5642
5726
|
renderFallbackValue: null,
|
|
5643
5727
|
...e
|
|
5644
|
-
}, [t] =
|
|
5645
|
-
current:
|
|
5646
|
-
})), [r, o] =
|
|
5728
|
+
}, [t] = R.useState(() => ({
|
|
5729
|
+
current: Xa(n)
|
|
5730
|
+
})), [r, o] = R.useState(() => t.current.initialState);
|
|
5647
5731
|
return t.current.setOptions((a) => ({
|
|
5648
5732
|
...a,
|
|
5649
5733
|
...e,
|
|
@@ -5658,7 +5742,7 @@ function Ja(e) {
|
|
|
5658
5742
|
}
|
|
5659
5743
|
})), t.current;
|
|
5660
5744
|
}
|
|
5661
|
-
const
|
|
5745
|
+
const ei = {
|
|
5662
5746
|
h1: "text-5xl font-bold",
|
|
5663
5747
|
h2: "text-4xl font-bold",
|
|
5664
5748
|
h3: "text-3xl font-bold",
|
|
@@ -5671,7 +5755,7 @@ const Qa = {
|
|
|
5671
5755
|
body2: "text-sm",
|
|
5672
5756
|
caption: "text-xs",
|
|
5673
5757
|
overline: "text-xs uppercase tracking-wide"
|
|
5674
|
-
},
|
|
5758
|
+
}, ti = {
|
|
5675
5759
|
default: "text-color-gray-800",
|
|
5676
5760
|
primary: "text-color-primary",
|
|
5677
5761
|
secondary: "text-color-secondary",
|
|
@@ -5679,7 +5763,7 @@ const Qa = {
|
|
|
5679
5763
|
muted: "text-color-gray-400",
|
|
5680
5764
|
error: "text-color-red-500",
|
|
5681
5765
|
success: "text-color-green-500"
|
|
5682
|
-
},
|
|
5766
|
+
}, ni = ({
|
|
5683
5767
|
variant: e = "body1",
|
|
5684
5768
|
component: n,
|
|
5685
5769
|
className: t = "",
|
|
@@ -5700,47 +5784,8 @@ const Qa = {
|
|
|
5700
5784
|
caption: "span",
|
|
5701
5785
|
overline: "span"
|
|
5702
5786
|
}[e] || "p";
|
|
5703
|
-
return /* @__PURE__ */ s.jsx(i, { className: `${
|
|
5704
|
-
},
|
|
5705
|
-
variant: e = "filled",
|
|
5706
|
-
color: n = "blue",
|
|
5707
|
-
icon: t,
|
|
5708
|
-
onClick: r,
|
|
5709
|
-
className: o = "",
|
|
5710
|
-
disabled: a = !1,
|
|
5711
|
-
roundedFull: i = !1,
|
|
5712
|
-
size: l = "medium",
|
|
5713
|
-
autoFocus: c = !1,
|
|
5714
|
-
...u
|
|
5715
|
-
}) => {
|
|
5716
|
-
var f;
|
|
5717
|
-
const d = se(null), g = (v) => {
|
|
5718
|
-
const m = d.current;
|
|
5719
|
-
if (!m) return;
|
|
5720
|
-
const b = document.createElement("span"), x = m.getBoundingClientRect(), k = Math.max(x.width, x.height);
|
|
5721
|
-
b.style.width = b.style.height = `${k}px`, b.style.left = `${v.clientX - x.left - k / 2}px`, b.style.top = `${v.clientY - x.top - k / 2}px`, b.className = "ripple_small", m.appendChild(b), setTimeout(() => b.remove(), 600), r == null || r(v);
|
|
5722
|
-
}, p = ((f = ve[n]) == null ? void 0 : f[e === "filled" ? "filled" : e === "outlined" ? "outline" : "transparent"]) || "";
|
|
5723
|
-
return /* @__PURE__ */ s.jsx(
|
|
5724
|
-
"button",
|
|
5725
|
-
{
|
|
5726
|
-
ref: d,
|
|
5727
|
-
type: "button",
|
|
5728
|
-
disabled: a,
|
|
5729
|
-
onClick: g,
|
|
5730
|
-
className: `relative overflow-hidden flex items-center justify-center gap-1 transition-all focus:outline-0
|
|
5731
|
-
${p}
|
|
5732
|
-
${e === "outlined" && "border"}
|
|
5733
|
-
${o}
|
|
5734
|
-
${l === "small" ? "text-sm size-8" : l === "large" ? "text-lg size-12" : "text-base size-10"}
|
|
5735
|
-
${i ? "rounded-full" : "rounded-md"}
|
|
5736
|
-
${a ? `!text-color-gray-400 hover:bg-color-transparent ${e === "filled" && "!bg-color-gray-200"} !border-color-gray-200 cursor-not-allowed` : "cursor-pointer hover:opacity-90"}
|
|
5737
|
-
`,
|
|
5738
|
-
autoFocus: c,
|
|
5739
|
-
...u,
|
|
5740
|
-
children: t && /* @__PURE__ */ s.jsx(s.Fragment, { children: t })
|
|
5741
|
-
}
|
|
5742
|
-
);
|
|
5743
|
-
}, ni = ({
|
|
5787
|
+
return /* @__PURE__ */ s.jsx(i, { className: `${ei[e]} ${ti[o]} ${t}`, children: r });
|
|
5788
|
+
}, ri = ({
|
|
5744
5789
|
total: e,
|
|
5745
5790
|
currentPage: n,
|
|
5746
5791
|
pageSize: t = 10,
|
|
@@ -5805,7 +5850,7 @@ const Qa = {
|
|
|
5805
5850
|
}
|
|
5806
5851
|
)
|
|
5807
5852
|
] });
|
|
5808
|
-
},
|
|
5853
|
+
}, Hl = ({
|
|
5809
5854
|
data: e,
|
|
5810
5855
|
columns: n = [],
|
|
5811
5856
|
pageSize: t,
|
|
@@ -5819,10 +5864,10 @@ const Qa = {
|
|
|
5819
5864
|
tdClassName: d = "",
|
|
5820
5865
|
thClassName: g = ""
|
|
5821
5866
|
}) => {
|
|
5822
|
-
const p =
|
|
5867
|
+
const p = Qa({
|
|
5823
5868
|
data: e,
|
|
5824
5869
|
columns: n,
|
|
5825
|
-
getCoreRowModel:
|
|
5870
|
+
getCoreRowModel: Ja(),
|
|
5826
5871
|
manualPagination: !0,
|
|
5827
5872
|
pageCount: Math.ceil(l / t),
|
|
5828
5873
|
state: {
|
|
@@ -5850,9 +5895,9 @@ const Qa = {
|
|
|
5850
5895
|
] }),
|
|
5851
5896
|
/* @__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: [
|
|
5852
5897
|
/* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
5853
|
-
/* @__PURE__ */ s.jsx(
|
|
5898
|
+
/* @__PURE__ */ s.jsx(ni, { variant: "body2", className: "hidden md:flex", children: "Rows per page" }),
|
|
5854
5899
|
/* @__PURE__ */ s.jsx(
|
|
5855
|
-
|
|
5900
|
+
oa,
|
|
5856
5901
|
{
|
|
5857
5902
|
options: i,
|
|
5858
5903
|
selectedValue: t,
|
|
@@ -5864,7 +5909,7 @@ const Qa = {
|
|
|
5864
5909
|
)
|
|
5865
5910
|
] }),
|
|
5866
5911
|
/* @__PURE__ */ s.jsx(
|
|
5867
|
-
|
|
5912
|
+
ri,
|
|
5868
5913
|
{
|
|
5869
5914
|
total: l,
|
|
5870
5915
|
pageSize: t,
|
|
@@ -5874,7 +5919,7 @@ const Qa = {
|
|
|
5874
5919
|
)
|
|
5875
5920
|
] })
|
|
5876
5921
|
] }) });
|
|
5877
|
-
},
|
|
5922
|
+
}, Bl = ({
|
|
5878
5923
|
animation: e = "pulse",
|
|
5879
5924
|
variant: n = "rectangular",
|
|
5880
5925
|
width: t,
|
|
@@ -5944,7 +5989,7 @@ const Qa = {
|
|
|
5944
5989
|
}
|
|
5945
5990
|
` })
|
|
5946
5991
|
] }) });
|
|
5947
|
-
},
|
|
5992
|
+
}, ql = ({
|
|
5948
5993
|
label: e,
|
|
5949
5994
|
error: n,
|
|
5950
5995
|
className: t = "",
|
|
@@ -5961,12 +6006,12 @@ const Qa = {
|
|
|
5961
6006
|
}
|
|
5962
6007
|
),
|
|
5963
6008
|
n && /* @__PURE__ */ s.jsx("span", { className: "text-xs text-color-red-500", children: n })
|
|
5964
|
-
] }),
|
|
6009
|
+
] }), Gn = {
|
|
5965
6010
|
small: { track: "h-1", thumb: "w-3 h-3" },
|
|
5966
6011
|
medium: { track: "h-2", thumb: "w-4 h-4" },
|
|
5967
6012
|
large: { track: "h-3", thumb: "w-5 h-5" }
|
|
5968
6013
|
};
|
|
5969
|
-
function
|
|
6014
|
+
function oi(e) {
|
|
5970
6015
|
const n = se(null), t = se(null), r = se(null), o = (c, u) => {
|
|
5971
6016
|
if (c === u) return !0;
|
|
5972
6017
|
if (Array.isArray(c) && Array.isArray(u)) {
|
|
@@ -5992,7 +6037,7 @@ function ri(e) {
|
|
|
5992
6037
|
}, []);
|
|
5993
6038
|
return { schedule: i, flush: a, cancel: l, last: t };
|
|
5994
6039
|
}
|
|
5995
|
-
const
|
|
6040
|
+
const Gl = Zr(function({
|
|
5996
6041
|
/** controlled */
|
|
5997
6042
|
value: n,
|
|
5998
6043
|
/** uncontrolled */
|
|
@@ -6013,10 +6058,10 @@ const ql = Ur(function({
|
|
|
6013
6058
|
range: m = !1,
|
|
6014
6059
|
minDistance: b = 0
|
|
6015
6060
|
}) {
|
|
6016
|
-
const x = n !== void 0, [k, w] = K(() => t !== void 0 ? t : m ? [a, i] : a), $ = x ? n : k, y = Array.isArray($) ? $[0] : $, [O,
|
|
6061
|
+
const x = n !== void 0, [k, w] = K(() => t !== void 0 ? t : m ? [a, i] : a), $ = x ? n : k, y = Array.isArray($) ? $[0] : $, [O, D] = Array.isArray($) ? $ : [$, $], V = qt[c] || qt.blue, F = Gn[u] ?? Gn.medium, Z = oe(
|
|
6017
6062
|
(_) => (_ - a) / (i - a) * 100,
|
|
6018
6063
|
[a, i]
|
|
6019
|
-
), ae = Z(y), ue = Z(O), Q = Z(
|
|
6064
|
+
), 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 = oi(r), te = oe(
|
|
6020
6065
|
(_, J = !0) => {
|
|
6021
6066
|
x || w(_), J ? T.schedule(_) : T.flush(_);
|
|
6022
6067
|
},
|
|
@@ -6045,11 +6090,11 @@ const ql = Ur(function({
|
|
|
6045
6090
|
[a, i, m, y]
|
|
6046
6091
|
), L = oe(
|
|
6047
6092
|
(_) => {
|
|
6048
|
-
const J = Math.abs(_ - O), ee = Math.abs(_ -
|
|
6093
|
+
const J = Math.abs(_ - O), ee = Math.abs(_ - D);
|
|
6049
6094
|
return J <= ee ? "min" : "max";
|
|
6050
6095
|
},
|
|
6051
|
-
[O,
|
|
6052
|
-
), [M,
|
|
6096
|
+
[O, D]
|
|
6097
|
+
), [M, N] = K(null), [I, z] = K(null), [E, P] = K(null), B = oe(
|
|
6053
6098
|
(_, J) => {
|
|
6054
6099
|
var de, fe;
|
|
6055
6100
|
if (d) return;
|
|
@@ -6057,9 +6102,9 @@ const ql = Ur(function({
|
|
|
6057
6102
|
const ee = C(_.clientX);
|
|
6058
6103
|
if (m) {
|
|
6059
6104
|
const be = J || L(ee);
|
|
6060
|
-
|
|
6105
|
+
N(be), te(be === "min" ? X([ee, D], "min") : X([O, ee], "max"));
|
|
6061
6106
|
} else
|
|
6062
|
-
|
|
6107
|
+
N("single"), te(X(ee, "single"));
|
|
6063
6108
|
},
|
|
6064
6109
|
[
|
|
6065
6110
|
d,
|
|
@@ -6068,14 +6113,14 @@ const ql = Ur(function({
|
|
|
6068
6113
|
L,
|
|
6069
6114
|
X,
|
|
6070
6115
|
O,
|
|
6071
|
-
|
|
6116
|
+
D,
|
|
6072
6117
|
te
|
|
6073
6118
|
]
|
|
6074
6119
|
), q = oe(
|
|
6075
6120
|
(_) => {
|
|
6076
6121
|
if (d || E == null || M == null) return;
|
|
6077
6122
|
const J = C(_.clientX);
|
|
6078
|
-
m ? M === "min" ? te(X([J,
|
|
6123
|
+
m ? M === "min" ? te(X([J, D], "min")) : M === "max" && te(X([O, J], "max")) : te(X(J, "single"));
|
|
6079
6124
|
},
|
|
6080
6125
|
[
|
|
6081
6126
|
d,
|
|
@@ -6085,15 +6130,15 @@ const ql = Ur(function({
|
|
|
6085
6130
|
C,
|
|
6086
6131
|
X,
|
|
6087
6132
|
O,
|
|
6088
|
-
|
|
6133
|
+
D,
|
|
6089
6134
|
te
|
|
6090
6135
|
]
|
|
6091
6136
|
), S = oe(() => {
|
|
6092
|
-
M != null && (
|
|
6093
|
-
}, [M, pe]),
|
|
6137
|
+
M != null && (N(null), P(null), pe());
|
|
6138
|
+
}, [M, pe]), j = oe(
|
|
6094
6139
|
(_, J) => {
|
|
6095
6140
|
if (d) return;
|
|
6096
|
-
const ee = m ? J === "min" ? O :
|
|
6141
|
+
const ee = m ? J === "min" ? O : D : y;
|
|
6097
6142
|
let de = ee;
|
|
6098
6143
|
const fe = (i - a) / 10;
|
|
6099
6144
|
switch (_.key) {
|
|
@@ -6120,14 +6165,14 @@ const ql = Ur(function({
|
|
|
6120
6165
|
default:
|
|
6121
6166
|
return;
|
|
6122
6167
|
}
|
|
6123
|
-
_.preventDefault(), te(m ? J === "min" ? X([de,
|
|
6168
|
+
_.preventDefault(), te(m ? J === "min" ? X([de, D], "min") : X([O, de], "max") : X(de, "single"), !1), o == null || o(x ? n : $);
|
|
6124
6169
|
},
|
|
6125
6170
|
[
|
|
6126
6171
|
d,
|
|
6127
6172
|
m,
|
|
6128
6173
|
y,
|
|
6129
6174
|
O,
|
|
6130
|
-
|
|
6175
|
+
D,
|
|
6131
6176
|
l,
|
|
6132
6177
|
a,
|
|
6133
6178
|
i,
|
|
@@ -6204,7 +6249,7 @@ const ql = Ur(function({
|
|
|
6204
6249
|
"aria-valuemax": i,
|
|
6205
6250
|
"aria-valuenow": y,
|
|
6206
6251
|
"aria-disabled": d,
|
|
6207
|
-
onKeyDown: (_) =>
|
|
6252
|
+
onKeyDown: (_) => j(_, "single"),
|
|
6208
6253
|
onFocus: () => z("single"),
|
|
6209
6254
|
onBlur: () => z(null),
|
|
6210
6255
|
onPointerDown: (_) => B(_, "single")
|
|
@@ -6231,7 +6276,7 @@ const ql = Ur(function({
|
|
|
6231
6276
|
"aria-valuenow": O,
|
|
6232
6277
|
"aria-disabled": d,
|
|
6233
6278
|
"aria-label": "Minimum value",
|
|
6234
|
-
onKeyDown: (_) =>
|
|
6279
|
+
onKeyDown: (_) => j(_, "min"),
|
|
6235
6280
|
onFocus: () => z("min"),
|
|
6236
6281
|
onBlur: () => z(null),
|
|
6237
6282
|
onPointerDown: (_) => B(_, "min")
|
|
@@ -6254,10 +6299,10 @@ const ql = Ur(function({
|
|
|
6254
6299
|
"aria-orientation": "horizontal",
|
|
6255
6300
|
"aria-valuemin": a,
|
|
6256
6301
|
"aria-valuemax": i,
|
|
6257
|
-
"aria-valuenow":
|
|
6302
|
+
"aria-valuenow": D,
|
|
6258
6303
|
"aria-disabled": d,
|
|
6259
6304
|
"aria-label": "Maximum value",
|
|
6260
|
-
onKeyDown: (_) =>
|
|
6305
|
+
onKeyDown: (_) => j(_, "max"),
|
|
6261
6306
|
onFocus: () => z("max"),
|
|
6262
6307
|
onBlur: () => z(null),
|
|
6263
6308
|
onPointerDown: (_) => B(_, "max")
|
|
@@ -6286,9 +6331,9 @@ const ql = Ur(function({
|
|
|
6286
6331
|
}
|
|
6287
6332
|
)
|
|
6288
6333
|
] }),
|
|
6289
|
-
p && /* @__PURE__ */ s.jsx("div", { className: "ml-3 text-sm font-medium text-color-gray-700 dark:text-color-gray-200 min-w-[2rem] text-right", children: m ? /* @__PURE__ */ s.jsx("div", { className: "range-max", children: /* @__PURE__ */ s.jsx("div", { children:
|
|
6334
|
+
p && /* @__PURE__ */ s.jsx("div", { className: "ml-3 text-sm font-medium text-color-gray-700 dark:text-color-gray-200 min-w-[2rem] text-right", children: m ? /* @__PURE__ */ s.jsx("div", { className: "range-max", children: /* @__PURE__ */ s.jsx("div", { children: D }) }) : /* @__PURE__ */ s.jsx("span", { children: y }) })
|
|
6290
6335
|
] }) });
|
|
6291
|
-
}),
|
|
6336
|
+
}), Wl = ({
|
|
6292
6337
|
open: e = !1,
|
|
6293
6338
|
message: n,
|
|
6294
6339
|
autoHideDuration: t = 4e3,
|
|
@@ -6370,7 +6415,7 @@ const ql = Ur(function({
|
|
|
6370
6415
|
}
|
|
6371
6416
|
)
|
|
6372
6417
|
] }) : null;
|
|
6373
|
-
},
|
|
6418
|
+
}, Ul = ({
|
|
6374
6419
|
variant: e = "linear",
|
|
6375
6420
|
value: n = 0,
|
|
6376
6421
|
color: t = "blue",
|
|
@@ -6466,11 +6511,11 @@ const ql = Ur(function({
|
|
|
6466
6511
|
)
|
|
6467
6512
|
}
|
|
6468
6513
|
);
|
|
6469
|
-
},
|
|
6514
|
+
}, Wn = /* @__PURE__ */ s.jsx("svg", { className: "w-5 h-5 fill-color-yellow-500", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ s.jsx("path", { d: "M10 15l-5.878 3.09 1.122-6.545L.488 6.91l6.561-.955L10 0l2.951 5.955 6.561.955-4.756 4.635 1.122 6.545z" }) }), Un = /* @__PURE__ */ s.jsx("svg", { className: "w-5 h-5 fill-color-gray-300", fill: "none", stroke: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ s.jsx("path", { d: "M10 15l-5.878 3.09 1.122-6.545L.488 6.91l6.561-.955L10 0l2.951 5.955 6.561.955-4.756 4.635 1.122 6.545z" }) }), st = {
|
|
6470
6515
|
small: "w-4 h-4",
|
|
6471
6516
|
medium: "w-6 h-6",
|
|
6472
6517
|
large: "w-8 h-8"
|
|
6473
|
-
},
|
|
6518
|
+
}, Yl = ({
|
|
6474
6519
|
value: e,
|
|
6475
6520
|
onChange: n,
|
|
6476
6521
|
readOnly: t = !1,
|
|
@@ -6488,31 +6533,31 @@ const ql = Ur(function({
|
|
|
6488
6533
|
}) => {
|
|
6489
6534
|
const [f, v] = Pe.useState(null), m = (w, $) => {
|
|
6490
6535
|
if (t || r || !n) return;
|
|
6491
|
-
const { left: y, width: O } = w.target.getBoundingClientRect(),
|
|
6492
|
-
let V = $ - 1 + Math.ceil(
|
|
6536
|
+
const { left: y, width: O } = w.target.getBoundingClientRect(), D = (w.clientX - y) / O;
|
|
6537
|
+
let V = $ - 1 + Math.ceil(D / o) * o;
|
|
6493
6538
|
V = Math.min(a, Math.max(o, Math.round(V / o) * o)), n(V);
|
|
6494
6539
|
}, b = (w, $) => {
|
|
6495
6540
|
if (t || r) return;
|
|
6496
|
-
const { left: y, width: O } = w.target.getBoundingClientRect(),
|
|
6497
|
-
let V = $ - 1 + Math.ceil(
|
|
6541
|
+
const { left: y, width: O } = w.target.getBoundingClientRect(), D = (w.clientX - y) / O;
|
|
6542
|
+
let V = $ - 1 + Math.ceil(D / o) * o;
|
|
6498
6543
|
V = Math.min(a, Math.max(o, Math.round(V / o) * o)), v(V);
|
|
6499
6544
|
}, x = () => v(null), k = [];
|
|
6500
6545
|
for (let w = 1; w <= a; w++) {
|
|
6501
|
-
let $ = (f !== null ? f : e) >= w, y = !$ && (f !== null ? f : e) > w - 1, O = $ ? l || Pe.cloneElement(
|
|
6546
|
+
let $ = (f !== null ? f : e) >= w, y = !$ && (f !== null ? f : e) > w - 1, O = $ ? l || Pe.cloneElement(Wn, { className: `fill-color-yellow-500 ${st[i]}` }) : c || Pe.cloneElement(Un, { className: `stroke-color-gray-300 ${st[i]}` });
|
|
6502
6547
|
if (y) {
|
|
6503
|
-
const
|
|
6548
|
+
const D = ((f !== null ? f : e) - (w - 1)) * 100;
|
|
6504
6549
|
O = /* @__PURE__ */ s.jsxs("span", { className: "relative block", children: [
|
|
6505
6550
|
/* @__PURE__ */ s.jsx(
|
|
6506
6551
|
"span",
|
|
6507
6552
|
{
|
|
6508
6553
|
className: "absolute top-0 left-0 overflow-hidden",
|
|
6509
|
-
style: { width: `${
|
|
6510
|
-
children: l || Pe.cloneElement(
|
|
6554
|
+
style: { width: `${D}%` },
|
|
6555
|
+
children: l || Pe.cloneElement(Wn, {
|
|
6511
6556
|
className: `fill-color-yellow-500 ${st[i]}`
|
|
6512
6557
|
})
|
|
6513
6558
|
}
|
|
6514
6559
|
),
|
|
6515
|
-
c || Pe.cloneElement(
|
|
6560
|
+
c || Pe.cloneElement(Un, {
|
|
6516
6561
|
className: `stroke-color-gray-300 ${st[i]}`
|
|
6517
6562
|
})
|
|
6518
6563
|
] });
|
|
@@ -6522,8 +6567,8 @@ const ql = Ur(function({
|
|
|
6522
6567
|
"span",
|
|
6523
6568
|
{
|
|
6524
6569
|
className: `inline-block ${r ? "opacity-50 cursor-not-allowed" : "cursor-pointer"}`,
|
|
6525
|
-
onClick: (
|
|
6526
|
-
onMouseMove: (
|
|
6570
|
+
onClick: (D) => m(D, w),
|
|
6571
|
+
onMouseMove: (D) => b(D, w),
|
|
6527
6572
|
onMouseLeave: x,
|
|
6528
6573
|
tabIndex: t || r ? -1 : 0,
|
|
6529
6574
|
"aria-label": `Rate ${w}`,
|
|
@@ -6539,7 +6584,7 @@ const ql = Ur(function({
|
|
|
6539
6584
|
k,
|
|
6540
6585
|
d && f !== null ? /* @__PURE__ */ s.jsx("span", { className: "ml-2 text-xs text-gray-500", children: p[f] || f }) : g ? /* @__PURE__ */ s.jsx("span", { className: "ml-2 text-xs text-gray-500", children: p[e] || e }) : null
|
|
6541
6586
|
] });
|
|
6542
|
-
},
|
|
6587
|
+
}, Zl = ({
|
|
6543
6588
|
children: e,
|
|
6544
6589
|
width: n = "100%",
|
|
6545
6590
|
height: t = "auto",
|
|
@@ -6560,7 +6605,7 @@ const ql = Ur(function({
|
|
|
6560
6605
|
prevIcon: x,
|
|
6561
6606
|
className: k
|
|
6562
6607
|
}) => {
|
|
6563
|
-
const w = e.length, $ = Math.min(Math.max(c, 0.1), w), [y, O] = K(0), [
|
|
6608
|
+
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(
|
|
6564
6609
|
l && T > 0 ? (E % (T + 1) + (T + 1)) % (T + 1) : te(E)
|
|
6565
6610
|
), X = () => {
|
|
6566
6611
|
l && T > 0 ? O(y === 0 ? T : y - 1) : pe(y - 1);
|
|
@@ -6568,7 +6613,7 @@ const ql = Ur(function({
|
|
|
6568
6613
|
l && T > 0 ? O(y >= T ? 0 : y + 1) : pe(y + 1);
|
|
6569
6614
|
};
|
|
6570
6615
|
ce(() => {
|
|
6571
|
-
if (!a || p &&
|
|
6616
|
+
if (!a || p && D || F || T === 0)
|
|
6572
6617
|
return;
|
|
6573
6618
|
const E = setInterval(() => {
|
|
6574
6619
|
O((P) => {
|
|
@@ -6580,7 +6625,7 @@ const ql = Ur(function({
|
|
|
6580
6625
|
}, [
|
|
6581
6626
|
a,
|
|
6582
6627
|
i,
|
|
6583
|
-
|
|
6628
|
+
D,
|
|
6584
6629
|
p,
|
|
6585
6630
|
F,
|
|
6586
6631
|
T,
|
|
@@ -6593,7 +6638,7 @@ const ql = Ur(function({
|
|
|
6593
6638
|
}, M = () => {
|
|
6594
6639
|
if (!F) return;
|
|
6595
6640
|
Math.abs(Y.current - H.current) > 50 && (Y.current < H.current ? h() : X()), Z(!1), ue(0);
|
|
6596
|
-
},
|
|
6641
|
+
}, N = () => {
|
|
6597
6642
|
const E = m === "horizontal" ? "X" : "Y";
|
|
6598
6643
|
let P = 0;
|
|
6599
6644
|
if (F && Q.current && T > 0) {
|
|
@@ -6636,7 +6681,7 @@ const ql = Ur(function({
|
|
|
6636
6681
|
style: {
|
|
6637
6682
|
width: m === "horizontal" ? `${w * 100 / $}%` : "100%",
|
|
6638
6683
|
height: m === "vertical" ? `${w * 100 / $}%` : "100%",
|
|
6639
|
-
transform:
|
|
6684
|
+
transform: N(),
|
|
6640
6685
|
gap: `${u}px`,
|
|
6641
6686
|
transitionProperty: F ? "none" : "transform"
|
|
6642
6687
|
},
|
|
@@ -6728,7 +6773,7 @@ const ql = Ur(function({
|
|
|
6728
6773
|
]
|
|
6729
6774
|
}
|
|
6730
6775
|
);
|
|
6731
|
-
},
|
|
6776
|
+
}, Kl = ({
|
|
6732
6777
|
title: e,
|
|
6733
6778
|
description: n,
|
|
6734
6779
|
actionLabel: t,
|
|
@@ -6761,7 +6806,7 @@ const ql = Ur(function({
|
|
|
6761
6806
|
i
|
|
6762
6807
|
]
|
|
6763
6808
|
}
|
|
6764
|
-
),
|
|
6809
|
+
), Xl = ({
|
|
6765
6810
|
initialState: e = !1,
|
|
6766
6811
|
onToggle: n,
|
|
6767
6812
|
disabled: t = !1,
|
|
@@ -6820,17 +6865,17 @@ const ql = Ur(function({
|
|
|
6820
6865
|
)
|
|
6821
6866
|
}
|
|
6822
6867
|
);
|
|
6823
|
-
},
|
|
6868
|
+
}, ai = {
|
|
6824
6869
|
small: "px-2 py-1 text-sm",
|
|
6825
6870
|
medium: "px-4 py-2 text-base",
|
|
6826
6871
|
large: "px-6 py-3 text-lg"
|
|
6827
|
-
},
|
|
6872
|
+
}, Jl = ({
|
|
6828
6873
|
value: e,
|
|
6829
6874
|
onChange: n,
|
|
6830
6875
|
options: t,
|
|
6831
6876
|
multiple: r = !1,
|
|
6832
6877
|
size: o = "medium",
|
|
6833
|
-
color: a = "
|
|
6878
|
+
color: a = "blue",
|
|
6834
6879
|
orientation: i = "horizontal",
|
|
6835
6880
|
className: l = "",
|
|
6836
6881
|
buttonClass: c = "",
|
|
@@ -6858,11 +6903,10 @@ const ql = Ur(function({
|
|
|
6858
6903
|
type: "button",
|
|
6859
6904
|
disabled: u || p.disabled,
|
|
6860
6905
|
className: `
|
|
6861
|
-
flex items-center justify-center gap-2 border-0 ${i === "vertical" ? "border-b" : "border-r"} border-color-gray-200
|
|
6862
|
-
${
|
|
6906
|
+
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
|
|
6907
|
+
${ai[o]}
|
|
6863
6908
|
${d(p.value) ? ((v = ve[a]) == null ? void 0 : v.filled) || a : "bg-color-transparent text-color-gray-700"}
|
|
6864
6909
|
${u || p.disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer"}
|
|
6865
|
-
${f === t.length - 1 ? "border-r-0" : ""}
|
|
6866
6910
|
${c}
|
|
6867
6911
|
`,
|
|
6868
6912
|
"aria-pressed": d(p.value),
|
|
@@ -6877,21 +6921,21 @@ const ql = Ur(function({
|
|
|
6877
6921
|
})
|
|
6878
6922
|
}
|
|
6879
6923
|
);
|
|
6880
|
-
},
|
|
6924
|
+
}, Yn = {
|
|
6881
6925
|
small: "p-2",
|
|
6882
6926
|
medium: "p-4",
|
|
6883
6927
|
large: "p-6",
|
|
6884
6928
|
none: "p-0"
|
|
6885
|
-
},
|
|
6929
|
+
}, Zn = {
|
|
6886
6930
|
default: "shadow-xs",
|
|
6887
6931
|
small: "shadow-sm",
|
|
6888
6932
|
medium: "shadow-md",
|
|
6889
6933
|
large: "shadow-lg"
|
|
6890
|
-
},
|
|
6934
|
+
}, Kn = {
|
|
6891
6935
|
small: "rounded-md",
|
|
6892
6936
|
medium: "rounded-xl",
|
|
6893
6937
|
large: "rounded-2xl"
|
|
6894
|
-
},
|
|
6938
|
+
}, ii = ({
|
|
6895
6939
|
title: e,
|
|
6896
6940
|
subtitle: n,
|
|
6897
6941
|
space: t = "medium",
|
|
@@ -6911,9 +6955,9 @@ const ql = Ur(function({
|
|
|
6911
6955
|
"relative",
|
|
6912
6956
|
"bg-white",
|
|
6913
6957
|
"overflow-hidden",
|
|
6914
|
-
|
|
6915
|
-
|
|
6916
|
-
|
|
6958
|
+
Yn[t] || Yn.medium,
|
|
6959
|
+
Zn[r] || Zn.small,
|
|
6960
|
+
Kn[o] || Kn.medium,
|
|
6917
6961
|
d ? "hover:shadow-xl transition-shadow duration-300 cursor-pointer" : "",
|
|
6918
6962
|
g ? "border border-color-gray-200" : "",
|
|
6919
6963
|
u
|
|
@@ -6933,7 +6977,7 @@ const ql = Ur(function({
|
|
|
6933
6977
|
/* @__PURE__ */ s.jsx("div", { children: c }),
|
|
6934
6978
|
f && /* @__PURE__ */ s.jsx("div", { className: "absolute w-full h-full top-0 left-0 flex items-center justify-center bg-color-white bg-opacity-50", children: f })
|
|
6935
6979
|
] });
|
|
6936
|
-
},
|
|
6980
|
+
}, Ql = ({
|
|
6937
6981
|
orientation: e = "horizontal",
|
|
6938
6982
|
variant: n = "fullWidth",
|
|
6939
6983
|
children: t,
|
|
@@ -6970,7 +7014,7 @@ const ql = Ur(function({
|
|
|
6970
7014
|
${n === "inset" ? o ? "pl-4" : "pt-4" : ""} ${a}`
|
|
6971
7015
|
}
|
|
6972
7016
|
);
|
|
6973
|
-
},
|
|
7017
|
+
}, es = ({
|
|
6974
7018
|
name: e,
|
|
6975
7019
|
options: n,
|
|
6976
7020
|
selectedValue: t,
|
|
@@ -7011,7 +7055,7 @@ const ql = Ur(function({
|
|
|
7011
7055
|
},
|
|
7012
7056
|
d
|
|
7013
7057
|
);
|
|
7014
|
-
}) }),
|
|
7058
|
+
}) }), ts = ({
|
|
7015
7059
|
label: e,
|
|
7016
7060
|
value: n,
|
|
7017
7061
|
onChange: t,
|
|
@@ -7052,7 +7096,7 @@ const ql = Ur(function({
|
|
|
7052
7096
|
/* @__PURE__ */ s.jsx("span", { className: `absolute right-3 text-sm top-1/2 -translate-y-1/2 ${i ? "opacity-60" : ""}`, children: /* @__PURE__ */ s.jsx("svg", { className: "size-4", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ s.jsx("path", { d: "M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z" }) }) })
|
|
7053
7097
|
] })
|
|
7054
7098
|
] });
|
|
7055
|
-
},
|
|
7099
|
+
}, ns = ({
|
|
7056
7100
|
content: e,
|
|
7057
7101
|
children: n,
|
|
7058
7102
|
position: t = "top"
|
|
@@ -7103,10 +7147,10 @@ const ql = Ur(function({
|
|
|
7103
7147
|
)
|
|
7104
7148
|
] });
|
|
7105
7149
|
};
|
|
7106
|
-
function
|
|
7150
|
+
function li(...e) {
|
|
7107
7151
|
return e.filter(Boolean).join(" ");
|
|
7108
7152
|
}
|
|
7109
|
-
const
|
|
7153
|
+
const si = {
|
|
7110
7154
|
sm: "max-w-sm",
|
|
7111
7155
|
md: "max-w-md",
|
|
7112
7156
|
lg: "max-w-lg",
|
|
@@ -7114,7 +7158,7 @@ const li = {
|
|
|
7114
7158
|
"2xl": "max-w-2xl",
|
|
7115
7159
|
"4xl": "max-w-4xl",
|
|
7116
7160
|
"6xl": "max-w-6xl"
|
|
7117
|
-
},
|
|
7161
|
+
}, ci = Ye(
|
|
7118
7162
|
({
|
|
7119
7163
|
open: e,
|
|
7120
7164
|
onClose: n,
|
|
@@ -7130,7 +7174,7 @@ const li = {
|
|
|
7130
7174
|
const [g, p] = K(e || !1), [f, v] = K(!1), [m, b] = K(!1);
|
|
7131
7175
|
ce(() => {
|
|
7132
7176
|
e !== void 0 && p(e);
|
|
7133
|
-
}, [e]),
|
|
7177
|
+
}, [e]), tr(d, () => ({
|
|
7134
7178
|
open: () => p(!0),
|
|
7135
7179
|
close: () => {
|
|
7136
7180
|
b(!1), setTimeout(() => p(!1), 300);
|
|
@@ -7153,7 +7197,7 @@ const li = {
|
|
|
7153
7197
|
/* @__PURE__ */ s.jsxs(
|
|
7154
7198
|
"div",
|
|
7155
7199
|
{
|
|
7156
|
-
className:
|
|
7200
|
+
className: li(
|
|
7157
7201
|
"fixed inset-0 z-50 flex items-center justify-center transition-opacity duration-300",
|
|
7158
7202
|
m ? "opacity-100" : "opacity-0 pointer-events-none"
|
|
7159
7203
|
),
|
|
@@ -7170,7 +7214,7 @@ const li = {
|
|
|
7170
7214
|
/* @__PURE__ */ s.jsxs(
|
|
7171
7215
|
"div",
|
|
7172
7216
|
{
|
|
7173
|
-
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 ?
|
|
7217
|
+
className: `relative flex flex-col z-50 bg-color-white rounded-xl shadow-lg transition-all duration-300 transform p-6 ${m ? "opacity-100 scale-100" : "opacity-0 scale-95"} ${l ? "w-full h-[calc(100%_-_40px)] m-5" : `${c ? "w-full" : "w-auto"} ${u ? si[u] : ""} mx-5`} ${t}`,
|
|
7174
7218
|
onTransitionEnd: x,
|
|
7175
7219
|
children: [
|
|
7176
7220
|
/* @__PURE__ */ s.jsxs("div", { className: "flex items-center justify-between mb-4", children: [
|
|
@@ -7201,11 +7245,11 @@ const li = {
|
|
|
7201
7245
|
) : null;
|
|
7202
7246
|
}
|
|
7203
7247
|
);
|
|
7204
|
-
function
|
|
7248
|
+
function rs({ items: e, trigger: n, className: t, dropdownItemClass: r }) {
|
|
7205
7249
|
const [o, a] = K(!1), [i, l] = K({ top: 0, left: 0 }), [c, u] = K(!1), d = se(null), g = se(null), p = (v) => {
|
|
7206
7250
|
v.stopPropagation(), a((m) => !m), u(!1);
|
|
7207
7251
|
};
|
|
7208
|
-
|
|
7252
|
+
Kr(() => {
|
|
7209
7253
|
if (o && d.current && g.current) {
|
|
7210
7254
|
const v = d.current.getBoundingClientRect(), m = g.current.getBoundingClientRect(), b = window.innerWidth, x = window.innerHeight;
|
|
7211
7255
|
let k = v.left + window.scrollX, w = v.bottom + window.scrollY;
|
|
@@ -7254,10 +7298,10 @@ function ns({ items: e, trigger: n, className: t, dropdownItemClass: r }) {
|
|
|
7254
7298
|
o && Ze(f, document.body)
|
|
7255
7299
|
] });
|
|
7256
7300
|
}
|
|
7257
|
-
function
|
|
7301
|
+
function ui(...e) {
|
|
7258
7302
|
return e.filter(Boolean).join(" ");
|
|
7259
7303
|
}
|
|
7260
|
-
const
|
|
7304
|
+
const di = ({
|
|
7261
7305
|
open: e,
|
|
7262
7306
|
onClose: n,
|
|
7263
7307
|
className: t,
|
|
@@ -7301,7 +7345,7 @@ const ui = ({
|
|
|
7301
7345
|
/* @__PURE__ */ s.jsxs(
|
|
7302
7346
|
"div",
|
|
7303
7347
|
{
|
|
7304
|
-
className:
|
|
7348
|
+
className: ui(
|
|
7305
7349
|
"fixed inset-0 z-50 transition-opacity duration-300",
|
|
7306
7350
|
g ? "opacity-100" : "opacity-0 pointer-events-none"
|
|
7307
7351
|
),
|
|
@@ -7341,7 +7385,7 @@ const ui = ({
|
|
|
7341
7385
|
),
|
|
7342
7386
|
document.body
|
|
7343
7387
|
);
|
|
7344
|
-
},
|
|
7388
|
+
}, os = ({
|
|
7345
7389
|
title: e,
|
|
7346
7390
|
content: n,
|
|
7347
7391
|
expandIcon: t,
|
|
@@ -7379,25 +7423,25 @@ const ui = ({
|
|
|
7379
7423
|
),
|
|
7380
7424
|
/* @__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 }) }) })
|
|
7381
7425
|
] });
|
|
7382
|
-
},
|
|
7426
|
+
}, pi = {
|
|
7383
7427
|
info: "bg-color-blue-50 border-color-blue-300 text-color-blue-800",
|
|
7384
7428
|
success: "bg-color-green-50 border-color-green-300 text-color-green-800",
|
|
7385
7429
|
danger: "bg-color-red-50 border-color-red-300 text-color-red-800",
|
|
7386
7430
|
warning: "bg-color-yellow-50 border-color-yellow-300 text-color-yellow-800",
|
|
7387
7431
|
dark: "bg-color-gray-100 border-color-gray-300 text-color-gray-800"
|
|
7388
|
-
},
|
|
7432
|
+
}, fi = {
|
|
7389
7433
|
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" }) }),
|
|
7390
7434
|
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" }) }),
|
|
7391
7435
|
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" }) }),
|
|
7392
7436
|
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" }) }),
|
|
7393
7437
|
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" }) })
|
|
7394
|
-
},
|
|
7438
|
+
}, mi = {
|
|
7395
7439
|
info: "bg-color-blue-500",
|
|
7396
7440
|
success: "bg-color-green-500",
|
|
7397
7441
|
danger: "bg-color-red-500",
|
|
7398
7442
|
warning: "bg-color-yellow-500",
|
|
7399
7443
|
dark: "bg-color-gray-700"
|
|
7400
|
-
},
|
|
7444
|
+
}, as = ({
|
|
7401
7445
|
message: e,
|
|
7402
7446
|
variant: n = "info",
|
|
7403
7447
|
onClose: t,
|
|
@@ -7416,10 +7460,10 @@ const ui = ({
|
|
|
7416
7460
|
}, [r, a, t]), i ? /* @__PURE__ */ s.jsxs(
|
|
7417
7461
|
"div",
|
|
7418
7462
|
{
|
|
7419
|
-
className: `relative border-t-4 p-4 flex items-start justify-between ${
|
|
7463
|
+
className: `relative border-t-4 p-4 flex items-start justify-between ${pi[n]} ${o}`,
|
|
7420
7464
|
children: [
|
|
7421
7465
|
/* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
7422
|
-
|
|
7466
|
+
fi[n],
|
|
7423
7467
|
/* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: e } })
|
|
7424
7468
|
] }),
|
|
7425
7469
|
/* @__PURE__ */ s.jsx(
|
|
@@ -7437,14 +7481,14 @@ const ui = ({
|
|
|
7437
7481
|
"div",
|
|
7438
7482
|
{
|
|
7439
7483
|
ref: c,
|
|
7440
|
-
className: `${
|
|
7484
|
+
className: `${mi[n]} h-1`,
|
|
7441
7485
|
style: { width: "100%" }
|
|
7442
7486
|
}
|
|
7443
7487
|
) })
|
|
7444
7488
|
]
|
|
7445
7489
|
}
|
|
7446
7490
|
) : null;
|
|
7447
|
-
},
|
|
7491
|
+
}, is = ({
|
|
7448
7492
|
children: e,
|
|
7449
7493
|
count: n,
|
|
7450
7494
|
showDot: t = !1,
|
|
@@ -7529,18 +7573,18 @@ function cn(e) {
|
|
|
7529
7573
|
}
|
|
7530
7574
|
return n;
|
|
7531
7575
|
}
|
|
7532
|
-
function
|
|
7533
|
-
return
|
|
7576
|
+
function $r(e, n, t = "/") {
|
|
7577
|
+
return gi(e, n, t, !1);
|
|
7534
7578
|
}
|
|
7535
|
-
function
|
|
7579
|
+
function gi(e, n, t, r) {
|
|
7536
7580
|
let o = typeof n == "string" ? cn(n) : n, a = Fe(o.pathname || "/", t);
|
|
7537
7581
|
if (a == null)
|
|
7538
7582
|
return null;
|
|
7539
|
-
let i =
|
|
7540
|
-
|
|
7583
|
+
let i = _r(e);
|
|
7584
|
+
vi(i);
|
|
7541
7585
|
let l = null;
|
|
7542
7586
|
for (let c = 0; l == null && c < i.length; ++c) {
|
|
7543
|
-
let u =
|
|
7587
|
+
let u = $i(a);
|
|
7544
7588
|
l = Ri(
|
|
7545
7589
|
i[c],
|
|
7546
7590
|
u,
|
|
@@ -7549,7 +7593,7 @@ function mi(e, n, t, r) {
|
|
|
7549
7593
|
}
|
|
7550
7594
|
return l;
|
|
7551
7595
|
}
|
|
7552
|
-
function
|
|
7596
|
+
function _r(e, n = [], t = [], r = "") {
|
|
7553
7597
|
let o = (a, i, l) => {
|
|
7554
7598
|
let c = {
|
|
7555
7599
|
relativePath: l === void 0 ? a.path || "" : l,
|
|
@@ -7567,9 +7611,9 @@ function kr(e, n = [], t = [], r = "") {
|
|
|
7567
7611
|
// @ts-expect-error
|
|
7568
7612
|
a.index !== !0,
|
|
7569
7613
|
`Index routes must not have child routes. Please remove all child routes from route path "${u}".`
|
|
7570
|
-
),
|
|
7614
|
+
), _r(a.children, n, d, u)), !(a.path == null && !a.index) && n.push({
|
|
7571
7615
|
path: u,
|
|
7572
|
-
score:
|
|
7616
|
+
score: Si(u, a.index),
|
|
7573
7617
|
routesMeta: d
|
|
7574
7618
|
});
|
|
7575
7619
|
};
|
|
@@ -7578,17 +7622,17 @@ function kr(e, n = [], t = [], r = "") {
|
|
|
7578
7622
|
if (a.path === "" || !((l = a.path) != null && l.includes("?")))
|
|
7579
7623
|
o(a, i);
|
|
7580
7624
|
else
|
|
7581
|
-
for (let c of
|
|
7625
|
+
for (let c of Er(a.path))
|
|
7582
7626
|
o(a, i, c);
|
|
7583
7627
|
}), n;
|
|
7584
7628
|
}
|
|
7585
|
-
function
|
|
7629
|
+
function Er(e) {
|
|
7586
7630
|
let n = e.split("/");
|
|
7587
7631
|
if (n.length === 0) return [];
|
|
7588
7632
|
let [t, ...r] = n, o = t.endsWith("?"), a = t.replace(/\?$/, "");
|
|
7589
7633
|
if (r.length === 0)
|
|
7590
7634
|
return o ? [a, ""] : [a];
|
|
7591
|
-
let i =
|
|
7635
|
+
let i = Er(r.join("/")), l = [];
|
|
7592
7636
|
return l.push(
|
|
7593
7637
|
...i.map(
|
|
7594
7638
|
(c) => c === "" ? a : [a, c].join("/")
|
|
@@ -7597,23 +7641,23 @@ function $r(e) {
|
|
|
7597
7641
|
(c) => e.startsWith("/") && c === "" ? "/" : c
|
|
7598
7642
|
);
|
|
7599
7643
|
}
|
|
7600
|
-
function
|
|
7644
|
+
function vi(e) {
|
|
7601
7645
|
e.sort(
|
|
7602
|
-
(n, t) => n.score !== t.score ? t.score - n.score :
|
|
7646
|
+
(n, t) => n.score !== t.score ? t.score - n.score : ji(
|
|
7603
7647
|
n.routesMeta.map((r) => r.childrenIndex),
|
|
7604
7648
|
t.routesMeta.map((r) => r.childrenIndex)
|
|
7605
7649
|
)
|
|
7606
7650
|
);
|
|
7607
7651
|
}
|
|
7608
|
-
var
|
|
7609
|
-
function
|
|
7652
|
+
var hi = /^:[\w-]+$/, xi = 3, bi = 2, wi = 1, yi = 10, Ci = -2, Xn = (e) => e === "*";
|
|
7653
|
+
function Si(e, n) {
|
|
7610
7654
|
let t = e.split("/"), r = t.length;
|
|
7611
|
-
return t.some(
|
|
7612
|
-
(o, a) => o + (
|
|
7655
|
+
return t.some(Xn) && (r += Ci), n && (r += bi), t.filter((o) => !Xn(o)).reduce(
|
|
7656
|
+
(o, a) => o + (hi.test(a) ? xi : a === "" ? wi : yi),
|
|
7613
7657
|
r
|
|
7614
7658
|
);
|
|
7615
7659
|
}
|
|
7616
|
-
function
|
|
7660
|
+
function ji(e, n) {
|
|
7617
7661
|
return e.length === n.length && e.slice(0, -1).every((r, o) => r === n[o]) ? (
|
|
7618
7662
|
// If two routes are siblings, we should try to match the earlier sibling
|
|
7619
7663
|
// first. This allows people to have fine-grained control over the matching
|
|
@@ -7646,7 +7690,7 @@ function Ri(e, n, t = !1) {
|
|
|
7646
7690
|
// TODO: Can this as be avoided?
|
|
7647
7691
|
params: o,
|
|
7648
7692
|
pathname: ke([a, g.pathname]),
|
|
7649
|
-
pathnameBase:
|
|
7693
|
+
pathnameBase: Mi(
|
|
7650
7694
|
ke([a, g.pathnameBase])
|
|
7651
7695
|
),
|
|
7652
7696
|
route: p
|
|
@@ -7656,7 +7700,7 @@ function Ri(e, n, t = !1) {
|
|
|
7656
7700
|
}
|
|
7657
7701
|
function gt(e, n) {
|
|
7658
7702
|
typeof e == "string" && (e = { path: e, caseSensitive: !1, end: !0 });
|
|
7659
|
-
let [t, r] =
|
|
7703
|
+
let [t, r] = ki(
|
|
7660
7704
|
e.path,
|
|
7661
7705
|
e.caseSensitive,
|
|
7662
7706
|
e.end
|
|
@@ -7680,7 +7724,7 @@ function gt(e, n) {
|
|
|
7680
7724
|
pattern: e
|
|
7681
7725
|
};
|
|
7682
7726
|
}
|
|
7683
|
-
function
|
|
7727
|
+
function ki(e, n = !1, t = !0) {
|
|
7684
7728
|
$e(
|
|
7685
7729
|
e === "*" || !e.endsWith("*") || e.endsWith("/*"),
|
|
7686
7730
|
`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(/\*$/, "/*")}".`
|
|
@@ -7691,7 +7735,7 @@ function ji(e, n = !1, t = !0) {
|
|
|
7691
7735
|
);
|
|
7692
7736
|
return e.endsWith("*") ? (r.push({ paramName: "*" }), o += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : t ? o += "\\/*$" : e !== "" && e !== "/" && (o += "(?:(?=\\/|$))"), [new RegExp(o, n ? void 0 : "i"), r];
|
|
7693
7737
|
}
|
|
7694
|
-
function
|
|
7738
|
+
function $i(e) {
|
|
7695
7739
|
try {
|
|
7696
7740
|
return e.split("/").map((n) => decodeURIComponent(n).replace(/\//g, "%2F")).join("/");
|
|
7697
7741
|
} catch (n) {
|
|
@@ -7708,19 +7752,19 @@ function Fe(e, n) {
|
|
|
7708
7752
|
let t = n.endsWith("/") ? n.length - 1 : n.length, r = e.charAt(t);
|
|
7709
7753
|
return r && r !== "/" ? null : e.slice(t) || "/";
|
|
7710
7754
|
}
|
|
7711
|
-
function
|
|
7755
|
+
function _i(e, n = "/") {
|
|
7712
7756
|
let {
|
|
7713
7757
|
pathname: t,
|
|
7714
7758
|
search: r = "",
|
|
7715
7759
|
hash: o = ""
|
|
7716
7760
|
} = typeof e == "string" ? cn(e) : e;
|
|
7717
7761
|
return {
|
|
7718
|
-
pathname: t ? t.startsWith("/") ? t :
|
|
7719
|
-
search:
|
|
7720
|
-
hash:
|
|
7762
|
+
pathname: t ? t.startsWith("/") ? t : Ei(t, n) : n,
|
|
7763
|
+
search: Li(r),
|
|
7764
|
+
hash: Fi(o)
|
|
7721
7765
|
};
|
|
7722
7766
|
}
|
|
7723
|
-
function
|
|
7767
|
+
function Ei(e, n) {
|
|
7724
7768
|
let t = n.replace(/\/+$/, "").split("/");
|
|
7725
7769
|
return e.split("/").forEach((o) => {
|
|
7726
7770
|
o === ".." ? t.length > 1 && t.pop() : o !== "." && t.push(o);
|
|
@@ -7731,18 +7775,18 @@ function Ht(e, n, t, r) {
|
|
|
7731
7775
|
r
|
|
7732
7776
|
)}]. 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.`;
|
|
7733
7777
|
}
|
|
7734
|
-
function
|
|
7778
|
+
function Pi(e) {
|
|
7735
7779
|
return e.filter(
|
|
7736
7780
|
(n, t) => t === 0 || n.route.path && n.route.path.length > 0
|
|
7737
7781
|
);
|
|
7738
7782
|
}
|
|
7739
|
-
function
|
|
7740
|
-
let n =
|
|
7783
|
+
function Pr(e) {
|
|
7784
|
+
let n = Pi(e);
|
|
7741
7785
|
return n.map(
|
|
7742
7786
|
(t, r) => r === n.length - 1 ? t.pathname : t.pathnameBase
|
|
7743
7787
|
);
|
|
7744
7788
|
}
|
|
7745
|
-
function
|
|
7789
|
+
function Mr(e, n, t, r = !1) {
|
|
7746
7790
|
let o;
|
|
7747
7791
|
typeof e == "string" ? o = cn(e) : (o = { ...e }, he(
|
|
7748
7792
|
!o.pathname || !o.pathname.includes("?"),
|
|
@@ -7767,105 +7811,105 @@ function Er(e, n, t, r = !1) {
|
|
|
7767
7811
|
}
|
|
7768
7812
|
l = g >= 0 ? n[g] : "/";
|
|
7769
7813
|
}
|
|
7770
|
-
let c =
|
|
7814
|
+
let c = _i(o, l), u = i && i !== "/" && i.endsWith("/"), d = (a || i === ".") && t.endsWith("/");
|
|
7771
7815
|
return !c.pathname.endsWith("/") && (u || d) && (c.pathname += "/"), c;
|
|
7772
7816
|
}
|
|
7773
|
-
var ke = (e) => e.join("/").replace(/\/\/+/g, "/"),
|
|
7774
|
-
function
|
|
7817
|
+
var ke = (e) => e.join("/").replace(/\/\/+/g, "/"), Mi = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), Li = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Fi = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e;
|
|
7818
|
+
function Ai(e) {
|
|
7775
7819
|
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
|
|
7776
7820
|
}
|
|
7777
|
-
var
|
|
7821
|
+
var Lr = [
|
|
7778
7822
|
"POST",
|
|
7779
7823
|
"PUT",
|
|
7780
7824
|
"PATCH",
|
|
7781
7825
|
"DELETE"
|
|
7782
7826
|
];
|
|
7783
7827
|
new Set(
|
|
7784
|
-
|
|
7828
|
+
Lr
|
|
7785
7829
|
);
|
|
7786
|
-
var
|
|
7830
|
+
var Ni = [
|
|
7787
7831
|
"GET",
|
|
7788
|
-
...
|
|
7832
|
+
...Lr
|
|
7789
7833
|
];
|
|
7790
|
-
new Set(
|
|
7791
|
-
var Ie =
|
|
7834
|
+
new Set(Ni);
|
|
7835
|
+
var Ie = R.createContext(null);
|
|
7792
7836
|
Ie.displayName = "DataRouter";
|
|
7793
|
-
var ht =
|
|
7837
|
+
var ht = R.createContext(null);
|
|
7794
7838
|
ht.displayName = "DataRouterState";
|
|
7795
|
-
|
|
7796
|
-
var
|
|
7839
|
+
R.createContext(!1);
|
|
7840
|
+
var Fr = R.createContext({
|
|
7797
7841
|
isTransitioning: !1
|
|
7798
7842
|
});
|
|
7799
|
-
|
|
7800
|
-
var Di =
|
|
7843
|
+
Fr.displayName = "ViewTransition";
|
|
7844
|
+
var Di = R.createContext(
|
|
7801
7845
|
/* @__PURE__ */ new Map()
|
|
7802
7846
|
);
|
|
7803
7847
|
Di.displayName = "Fetchers";
|
|
7804
|
-
var
|
|
7805
|
-
|
|
7806
|
-
var _e =
|
|
7848
|
+
var zi = R.createContext(null);
|
|
7849
|
+
zi.displayName = "Await";
|
|
7850
|
+
var _e = R.createContext(
|
|
7807
7851
|
null
|
|
7808
7852
|
);
|
|
7809
7853
|
_e.displayName = "Navigation";
|
|
7810
|
-
var un =
|
|
7854
|
+
var un = R.createContext(
|
|
7811
7855
|
null
|
|
7812
7856
|
);
|
|
7813
7857
|
un.displayName = "Location";
|
|
7814
|
-
var Ee =
|
|
7858
|
+
var Ee = R.createContext({
|
|
7815
7859
|
outlet: null,
|
|
7816
7860
|
matches: [],
|
|
7817
7861
|
isDataRoute: !1
|
|
7818
7862
|
});
|
|
7819
7863
|
Ee.displayName = "Route";
|
|
7820
|
-
var dn =
|
|
7864
|
+
var dn = R.createContext(null);
|
|
7821
7865
|
dn.displayName = "RouteError";
|
|
7822
|
-
function
|
|
7866
|
+
function Ti(e, { relative: n } = {}) {
|
|
7823
7867
|
he(
|
|
7824
7868
|
xt(),
|
|
7825
7869
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
7826
7870
|
// router loaded. We can help them understand how to avoid that.
|
|
7827
7871
|
"useHref() may be used only in the context of a <Router> component."
|
|
7828
7872
|
);
|
|
7829
|
-
let { basename: t, navigator: r } =
|
|
7873
|
+
let { basename: t, navigator: r } = R.useContext(_e), { hash: o, pathname: a, search: i } = Ke(e, { relative: n }), l = a;
|
|
7830
7874
|
return t !== "/" && (l = a === "/" ? t : ke([t, a])), r.createHref({ pathname: l, search: i, hash: o });
|
|
7831
7875
|
}
|
|
7832
7876
|
function xt() {
|
|
7833
|
-
return
|
|
7877
|
+
return R.useContext(un) != null;
|
|
7834
7878
|
}
|
|
7835
|
-
function
|
|
7879
|
+
function De() {
|
|
7836
7880
|
return he(
|
|
7837
7881
|
xt(),
|
|
7838
7882
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
7839
7883
|
// router loaded. We can help them understand how to avoid that.
|
|
7840
7884
|
"useLocation() may be used only in the context of a <Router> component."
|
|
7841
|
-
),
|
|
7842
|
-
}
|
|
7843
|
-
var Lr = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
|
|
7844
|
-
function Fr(e) {
|
|
7845
|
-
j.useContext(_e).static || j.useLayoutEffect(e);
|
|
7885
|
+
), R.useContext(un).location;
|
|
7846
7886
|
}
|
|
7847
|
-
|
|
7848
|
-
|
|
7849
|
-
|
|
7887
|
+
var Ar = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
|
|
7888
|
+
function Nr(e) {
|
|
7889
|
+
R.useContext(_e).static || R.useLayoutEffect(e);
|
|
7850
7890
|
}
|
|
7851
7891
|
function Oi() {
|
|
7892
|
+
let { isDataRoute: e } = R.useContext(Ee);
|
|
7893
|
+
return e ? Ji() : Ii();
|
|
7894
|
+
}
|
|
7895
|
+
function Ii() {
|
|
7852
7896
|
he(
|
|
7853
7897
|
xt(),
|
|
7854
7898
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
7855
7899
|
// router loaded. We can help them understand how to avoid that.
|
|
7856
7900
|
"useNavigate() may be used only in the context of a <Router> component."
|
|
7857
7901
|
);
|
|
7858
|
-
let e =
|
|
7859
|
-
return
|
|
7902
|
+
let e = R.useContext(Ie), { basename: n, navigator: t } = R.useContext(_e), { matches: r } = R.useContext(Ee), { pathname: o } = De(), a = JSON.stringify(Pr(r)), i = R.useRef(!1);
|
|
7903
|
+
return Nr(() => {
|
|
7860
7904
|
i.current = !0;
|
|
7861
|
-
}),
|
|
7905
|
+
}), R.useCallback(
|
|
7862
7906
|
(c, u = {}) => {
|
|
7863
|
-
if ($e(i.current,
|
|
7907
|
+
if ($e(i.current, Ar), !i.current) return;
|
|
7864
7908
|
if (typeof c == "number") {
|
|
7865
7909
|
t.go(c);
|
|
7866
7910
|
return;
|
|
7867
7911
|
}
|
|
7868
|
-
let d =
|
|
7912
|
+
let d = Mr(
|
|
7869
7913
|
c,
|
|
7870
7914
|
JSON.parse(a),
|
|
7871
7915
|
o,
|
|
@@ -7886,11 +7930,11 @@ function Oi() {
|
|
|
7886
7930
|
]
|
|
7887
7931
|
);
|
|
7888
7932
|
}
|
|
7889
|
-
|
|
7933
|
+
R.createContext(null);
|
|
7890
7934
|
function Ke(e, { relative: n } = {}) {
|
|
7891
|
-
let { matches: t } =
|
|
7892
|
-
return
|
|
7893
|
-
() =>
|
|
7935
|
+
let { matches: t } = R.useContext(Ee), { pathname: r } = De(), o = JSON.stringify(Pr(t));
|
|
7936
|
+
return R.useMemo(
|
|
7937
|
+
() => Mr(
|
|
7894
7938
|
e,
|
|
7895
7939
|
JSON.parse(o),
|
|
7896
7940
|
r,
|
|
@@ -7899,17 +7943,17 @@ function Ke(e, { relative: n } = {}) {
|
|
|
7899
7943
|
[e, o, r, n]
|
|
7900
7944
|
);
|
|
7901
7945
|
}
|
|
7902
|
-
function
|
|
7946
|
+
function Vi(e, n, t, r) {
|
|
7903
7947
|
he(
|
|
7904
7948
|
xt(),
|
|
7905
7949
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
7906
7950
|
// router loaded. We can help them understand how to avoid that.
|
|
7907
7951
|
"useRoutes() may be used only in the context of a <Router> component."
|
|
7908
7952
|
);
|
|
7909
|
-
let { navigator: o } =
|
|
7953
|
+
let { navigator: o } = R.useContext(_e), { matches: a } = R.useContext(Ee), i = a[a.length - 1], l = i ? i.params : {}, c = i ? i.pathname : "/", u = i ? i.pathnameBase : "/", d = i && i.route;
|
|
7910
7954
|
{
|
|
7911
7955
|
let x = d && d.path || "";
|
|
7912
|
-
|
|
7956
|
+
Dr(
|
|
7913
7957
|
c,
|
|
7914
7958
|
!d || x.endsWith("*") || x.endsWith("*?"),
|
|
7915
7959
|
`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${x}">) 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.
|
|
@@ -7917,21 +7961,21 @@ function Ii(e, n, t, r) {
|
|
|
7917
7961
|
Please change the parent <Route path="${x}"> to <Route path="${x === "/" ? "*" : `${x}/*`}">.`
|
|
7918
7962
|
);
|
|
7919
7963
|
}
|
|
7920
|
-
let g =
|
|
7964
|
+
let g = De(), p;
|
|
7921
7965
|
p = g;
|
|
7922
7966
|
let f = p.pathname || "/", v = f;
|
|
7923
7967
|
if (u !== "/") {
|
|
7924
7968
|
let x = u.replace(/^\//, "").split("/");
|
|
7925
7969
|
v = "/" + f.replace(/^\//, "").split("/").slice(x.length).join("/");
|
|
7926
7970
|
}
|
|
7927
|
-
let m =
|
|
7971
|
+
let m = $r(e, { pathname: v });
|
|
7928
7972
|
return $e(
|
|
7929
7973
|
d || m != null,
|
|
7930
7974
|
`No routes matched location "${p.pathname}${p.search}${p.hash}" `
|
|
7931
7975
|
), $e(
|
|
7932
7976
|
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,
|
|
7933
7977
|
`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.`
|
|
7934
|
-
),
|
|
7978
|
+
), Wi(
|
|
7935
7979
|
m && m.map(
|
|
7936
7980
|
(x) => Object.assign({}, x, {
|
|
7937
7981
|
params: Object.assign({}, l, x.params),
|
|
@@ -7952,14 +7996,14 @@ Please change the parent <Route path="${x}"> to <Route path="${x === "/" ? "*" :
|
|
|
7952
7996
|
r
|
|
7953
7997
|
);
|
|
7954
7998
|
}
|
|
7955
|
-
function
|
|
7956
|
-
let e =
|
|
7999
|
+
function Hi() {
|
|
8000
|
+
let e = Xi(), n = Ai(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), t = e instanceof Error ? e.stack : null, r = "rgba(200,200,200, 0.5)", o = { padding: "0.5rem", backgroundColor: r }, a = { padding: "2px 4px", backgroundColor: r }, i = null;
|
|
7957
8001
|
return console.error(
|
|
7958
8002
|
"Error handled by React Router default ErrorBoundary:",
|
|
7959
8003
|
e
|
|
7960
|
-
), i = /* @__PURE__ */
|
|
8004
|
+
), 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);
|
|
7961
8005
|
}
|
|
7962
|
-
var
|
|
8006
|
+
var Bi = /* @__PURE__ */ R.createElement(Hi, null), qi = class extends R.Component {
|
|
7963
8007
|
constructor(e) {
|
|
7964
8008
|
super(e), this.state = {
|
|
7965
8009
|
location: e.location,
|
|
@@ -7989,7 +8033,7 @@ var Hi = /* @__PURE__ */ j.createElement(Vi, null), Bi = class extends j.Compone
|
|
|
7989
8033
|
);
|
|
7990
8034
|
}
|
|
7991
8035
|
render() {
|
|
7992
|
-
return this.state.error !== void 0 ? /* @__PURE__ */
|
|
8036
|
+
return this.state.error !== void 0 ? /* @__PURE__ */ R.createElement(Ee.Provider, { value: this.props.routeContext }, /* @__PURE__ */ R.createElement(
|
|
7993
8037
|
dn.Provider,
|
|
7994
8038
|
{
|
|
7995
8039
|
value: this.state.error,
|
|
@@ -7998,11 +8042,11 @@ var Hi = /* @__PURE__ */ j.createElement(Vi, null), Bi = class extends j.Compone
|
|
|
7998
8042
|
)) : this.props.children;
|
|
7999
8043
|
}
|
|
8000
8044
|
};
|
|
8001
|
-
function
|
|
8002
|
-
let r =
|
|
8003
|
-
return r && r.static && r.staticContext && (n.route.errorElement || n.route.ErrorBoundary) && (r.staticContext._deepestRenderedBoundaryId = n.route.id), /* @__PURE__ */
|
|
8045
|
+
function Gi({ routeContext: e, match: n, children: t }) {
|
|
8046
|
+
let r = R.useContext(Ie);
|
|
8047
|
+
return r && r.static && r.staticContext && (n.route.errorElement || n.route.ErrorBoundary) && (r.staticContext._deepestRenderedBoundaryId = n.route.id), /* @__PURE__ */ R.createElement(Ee.Provider, { value: e }, t);
|
|
8004
8048
|
}
|
|
8005
|
-
function
|
|
8049
|
+
function Wi(e, n = [], t = null, r = null) {
|
|
8006
8050
|
if (e == null) {
|
|
8007
8051
|
if (!t)
|
|
8008
8052
|
return null;
|
|
@@ -8043,15 +8087,15 @@ function Gi(e, n = [], t = null, r = null) {
|
|
|
8043
8087
|
return o.reduceRight(
|
|
8044
8088
|
(c, u, d) => {
|
|
8045
8089
|
let g, p = !1, f = null, v = null;
|
|
8046
|
-
t && (g = a && u.route.id ? a[u.route.id] : void 0, f = u.route.errorElement ||
|
|
8090
|
+
t && (g = a && u.route.id ? a[u.route.id] : void 0, f = u.route.errorElement || Bi, i && (l < 0 && d === 0 ? (Dr(
|
|
8047
8091
|
"route-fallback",
|
|
8048
8092
|
!1,
|
|
8049
8093
|
"No `HydrateFallback` element provided to render during initial hydration"
|
|
8050
8094
|
), p = !0, v = null) : l === d && (p = !0, v = u.route.hydrateFallbackElement || null)));
|
|
8051
8095
|
let m = n.concat(o.slice(0, d + 1)), b = () => {
|
|
8052
8096
|
let x;
|
|
8053
|
-
return g ? x = f : p ? x = v : u.route.Component ? x = /* @__PURE__ */
|
|
8054
|
-
|
|
8097
|
+
return g ? x = f : p ? x = v : u.route.Component ? x = /* @__PURE__ */ R.createElement(u.route.Component, null) : u.route.element ? x = u.route.element : x = c, /* @__PURE__ */ R.createElement(
|
|
8098
|
+
Gi,
|
|
8055
8099
|
{
|
|
8056
8100
|
match: u,
|
|
8057
8101
|
routeContext: {
|
|
@@ -8063,8 +8107,8 @@ function Gi(e, n = [], t = null, r = null) {
|
|
|
8063
8107
|
}
|
|
8064
8108
|
);
|
|
8065
8109
|
};
|
|
8066
|
-
return t && (u.route.ErrorBoundary || u.route.errorElement || d === 0) ? /* @__PURE__ */
|
|
8067
|
-
|
|
8110
|
+
return t && (u.route.ErrorBoundary || u.route.errorElement || d === 0) ? /* @__PURE__ */ R.createElement(
|
|
8111
|
+
qi,
|
|
8068
8112
|
{
|
|
8069
8113
|
location: t.location,
|
|
8070
8114
|
revalidation: t.revalidation,
|
|
@@ -8081,34 +8125,34 @@ function Gi(e, n = [], t = null, r = null) {
|
|
|
8081
8125
|
function pn(e) {
|
|
8082
8126
|
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
8083
8127
|
}
|
|
8084
|
-
function Wi(e) {
|
|
8085
|
-
let n = j.useContext(Ie);
|
|
8086
|
-
return he(n, pn(e)), n;
|
|
8087
|
-
}
|
|
8088
8128
|
function Ui(e) {
|
|
8089
|
-
let n =
|
|
8129
|
+
let n = R.useContext(Ie);
|
|
8090
8130
|
return he(n, pn(e)), n;
|
|
8091
8131
|
}
|
|
8092
8132
|
function Yi(e) {
|
|
8093
|
-
let n =
|
|
8133
|
+
let n = R.useContext(ht);
|
|
8134
|
+
return he(n, pn(e)), n;
|
|
8135
|
+
}
|
|
8136
|
+
function Zi(e) {
|
|
8137
|
+
let n = R.useContext(Ee);
|
|
8094
8138
|
return he(n, pn(e)), n;
|
|
8095
8139
|
}
|
|
8096
8140
|
function fn(e) {
|
|
8097
|
-
let n =
|
|
8141
|
+
let n = Zi(e), t = n.matches[n.matches.length - 1];
|
|
8098
8142
|
return he(
|
|
8099
8143
|
t.route.id,
|
|
8100
8144
|
`${e} can only be used on routes that contain a unique "id"`
|
|
8101
8145
|
), t.route.id;
|
|
8102
8146
|
}
|
|
8103
|
-
function
|
|
8147
|
+
function Ki() {
|
|
8104
8148
|
return fn(
|
|
8105
8149
|
"useRouteId"
|
|
8106
8150
|
/* UseRouteId */
|
|
8107
8151
|
);
|
|
8108
8152
|
}
|
|
8109
|
-
function
|
|
8153
|
+
function Xi() {
|
|
8110
8154
|
var r;
|
|
8111
|
-
let e =
|
|
8155
|
+
let e = R.useContext(dn), n = Yi(
|
|
8112
8156
|
"useRouteError"
|
|
8113
8157
|
/* UseRouteError */
|
|
8114
8158
|
), t = fn(
|
|
@@ -8117,58 +8161,58 @@ function Ki() {
|
|
|
8117
8161
|
);
|
|
8118
8162
|
return e !== void 0 ? e : (r = n.errors) == null ? void 0 : r[t];
|
|
8119
8163
|
}
|
|
8120
|
-
function
|
|
8121
|
-
let { router: e } =
|
|
8164
|
+
function Ji() {
|
|
8165
|
+
let { router: e } = Ui(
|
|
8122
8166
|
"useNavigate"
|
|
8123
8167
|
/* UseNavigateStable */
|
|
8124
8168
|
), n = fn(
|
|
8125
8169
|
"useNavigate"
|
|
8126
8170
|
/* UseNavigateStable */
|
|
8127
|
-
), t =
|
|
8128
|
-
return
|
|
8171
|
+
), t = R.useRef(!1);
|
|
8172
|
+
return Nr(() => {
|
|
8129
8173
|
t.current = !0;
|
|
8130
|
-
}),
|
|
8174
|
+
}), R.useCallback(
|
|
8131
8175
|
async (o, a = {}) => {
|
|
8132
|
-
$e(t.current,
|
|
8176
|
+
$e(t.current, Ar), t.current && (typeof o == "number" ? e.navigate(o) : await e.navigate(o, { fromRouteId: n, ...a }));
|
|
8133
8177
|
},
|
|
8134
8178
|
[e, n]
|
|
8135
8179
|
);
|
|
8136
8180
|
}
|
|
8137
|
-
var
|
|
8138
|
-
function
|
|
8139
|
-
!n && !
|
|
8181
|
+
var Jn = {};
|
|
8182
|
+
function Dr(e, n, t) {
|
|
8183
|
+
!n && !Jn[e] && (Jn[e] = !0, $e(!1, t));
|
|
8140
8184
|
}
|
|
8141
|
-
|
|
8142
|
-
function
|
|
8185
|
+
R.memo(Qi);
|
|
8186
|
+
function Qi({
|
|
8143
8187
|
routes: e,
|
|
8144
8188
|
future: n,
|
|
8145
8189
|
state: t
|
|
8146
8190
|
}) {
|
|
8147
|
-
return
|
|
8191
|
+
return Vi(e, void 0, t, n);
|
|
8148
8192
|
}
|
|
8149
8193
|
var ut = "get", dt = "application/x-www-form-urlencoded";
|
|
8150
8194
|
function bt(e) {
|
|
8151
8195
|
return e != null && typeof e.tagName == "string";
|
|
8152
8196
|
}
|
|
8153
|
-
function
|
|
8197
|
+
function el(e) {
|
|
8154
8198
|
return bt(e) && e.tagName.toLowerCase() === "button";
|
|
8155
8199
|
}
|
|
8156
|
-
function
|
|
8200
|
+
function tl(e) {
|
|
8157
8201
|
return bt(e) && e.tagName.toLowerCase() === "form";
|
|
8158
8202
|
}
|
|
8159
|
-
function
|
|
8203
|
+
function nl(e) {
|
|
8160
8204
|
return bt(e) && e.tagName.toLowerCase() === "input";
|
|
8161
8205
|
}
|
|
8162
|
-
function
|
|
8206
|
+
function rl(e) {
|
|
8163
8207
|
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
|
|
8164
8208
|
}
|
|
8165
|
-
function
|
|
8209
|
+
function ol(e, n) {
|
|
8166
8210
|
return e.button === 0 && // Ignore everything but left clicks
|
|
8167
8211
|
(!n || n === "_self") && // Let browser handle "target=_blank" etc.
|
|
8168
|
-
!
|
|
8212
|
+
!rl(e);
|
|
8169
8213
|
}
|
|
8170
8214
|
var ct = null;
|
|
8171
|
-
function
|
|
8215
|
+
function al() {
|
|
8172
8216
|
if (ct === null)
|
|
8173
8217
|
try {
|
|
8174
8218
|
new FormData(
|
|
@@ -8181,30 +8225,30 @@ function ol() {
|
|
|
8181
8225
|
}
|
|
8182
8226
|
return ct;
|
|
8183
8227
|
}
|
|
8184
|
-
var
|
|
8228
|
+
var il = /* @__PURE__ */ new Set([
|
|
8185
8229
|
"application/x-www-form-urlencoded",
|
|
8186
8230
|
"multipart/form-data",
|
|
8187
8231
|
"text/plain"
|
|
8188
8232
|
]);
|
|
8189
8233
|
function Bt(e) {
|
|
8190
|
-
return e != null && !
|
|
8234
|
+
return e != null && !il.has(e) ? ($e(
|
|
8191
8235
|
!1,
|
|
8192
8236
|
`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${dt}"`
|
|
8193
8237
|
), null) : e;
|
|
8194
8238
|
}
|
|
8195
|
-
function
|
|
8239
|
+
function ll(e, n) {
|
|
8196
8240
|
let t, r, o, a, i;
|
|
8197
|
-
if (
|
|
8241
|
+
if (tl(e)) {
|
|
8198
8242
|
let l = e.getAttribute("action");
|
|
8199
8243
|
r = l ? Fe(l, n) : null, t = e.getAttribute("method") || ut, o = Bt(e.getAttribute("enctype")) || dt, a = new FormData(e);
|
|
8200
|
-
} else if (
|
|
8244
|
+
} else if (el(e) || nl(e) && (e.type === "submit" || e.type === "image")) {
|
|
8201
8245
|
let l = e.form;
|
|
8202
8246
|
if (l == null)
|
|
8203
8247
|
throw new Error(
|
|
8204
8248
|
'Cannot submit a <button> or <input type="submit"> without a <form>'
|
|
8205
8249
|
);
|
|
8206
8250
|
let c = e.getAttribute("formaction") || l.getAttribute("action");
|
|
8207
|
-
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), !
|
|
8251
|
+
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), !al()) {
|
|
8208
8252
|
let { name: u, type: d, value: g } = e;
|
|
8209
8253
|
if (d === "image") {
|
|
8210
8254
|
let p = u ? `${u}.` : "";
|
|
@@ -8225,7 +8269,7 @@ function mn(e, n) {
|
|
|
8225
8269
|
if (e === !1 || e === null || typeof e > "u")
|
|
8226
8270
|
throw new Error(n);
|
|
8227
8271
|
}
|
|
8228
|
-
function
|
|
8272
|
+
function sl(e, n, t) {
|
|
8229
8273
|
let r = typeof e == "string" ? new URL(
|
|
8230
8274
|
e,
|
|
8231
8275
|
// This can be called during the SSR flow via PrefetchPageLinksImpl so
|
|
@@ -8234,7 +8278,7 @@ function ll(e, n, t) {
|
|
|
8234
8278
|
) : e;
|
|
8235
8279
|
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;
|
|
8236
8280
|
}
|
|
8237
|
-
async function
|
|
8281
|
+
async function cl(e, n) {
|
|
8238
8282
|
if (e.id in n)
|
|
8239
8283
|
return n[e.id];
|
|
8240
8284
|
try {
|
|
@@ -8251,27 +8295,27 @@ async function sl(e, n) {
|
|
|
8251
8295
|
});
|
|
8252
8296
|
}
|
|
8253
8297
|
}
|
|
8254
|
-
function
|
|
8298
|
+
function ul(e) {
|
|
8255
8299
|
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";
|
|
8256
8300
|
}
|
|
8257
|
-
async function
|
|
8301
|
+
async function dl(e, n, t) {
|
|
8258
8302
|
let r = await Promise.all(
|
|
8259
8303
|
e.map(async (o) => {
|
|
8260
8304
|
let a = n.routes[o.route.id];
|
|
8261
8305
|
if (a) {
|
|
8262
|
-
let i = await
|
|
8306
|
+
let i = await cl(a, t);
|
|
8263
8307
|
return i.links ? i.links() : [];
|
|
8264
8308
|
}
|
|
8265
8309
|
return [];
|
|
8266
8310
|
})
|
|
8267
8311
|
);
|
|
8268
|
-
return
|
|
8269
|
-
r.flat(1).filter(
|
|
8312
|
+
return gl(
|
|
8313
|
+
r.flat(1).filter(ul).filter((o) => o.rel === "stylesheet" || o.rel === "preload").map(
|
|
8270
8314
|
(o) => o.rel === "stylesheet" ? { ...o, rel: "prefetch", as: "style" } : { ...o, rel: "prefetch" }
|
|
8271
8315
|
)
|
|
8272
8316
|
);
|
|
8273
8317
|
}
|
|
8274
|
-
function
|
|
8318
|
+
function Qn(e, n, t, r, o, a) {
|
|
8275
8319
|
let i = (c, u) => t[u] ? c.route.id !== t[u].route.id : !0, l = (c, u) => {
|
|
8276
8320
|
var d;
|
|
8277
8321
|
return (
|
|
@@ -8307,8 +8351,8 @@ function Jn(e, n, t, r, o, a) {
|
|
|
8307
8351
|
return !0;
|
|
8308
8352
|
}) : [];
|
|
8309
8353
|
}
|
|
8310
|
-
function
|
|
8311
|
-
return
|
|
8354
|
+
function pl(e, n, { includeHydrateFallback: t } = {}) {
|
|
8355
|
+
return fl(
|
|
8312
8356
|
e.map((r) => {
|
|
8313
8357
|
let o = n.routes[r.route.id];
|
|
8314
8358
|
if (!o) return [];
|
|
@@ -8317,48 +8361,48 @@ function dl(e, n, { includeHydrateFallback: t } = {}) {
|
|
|
8317
8361
|
}).flat(1)
|
|
8318
8362
|
);
|
|
8319
8363
|
}
|
|
8320
|
-
function
|
|
8364
|
+
function fl(e) {
|
|
8321
8365
|
return [...new Set(e)];
|
|
8322
8366
|
}
|
|
8323
|
-
function
|
|
8367
|
+
function ml(e) {
|
|
8324
8368
|
let n = {}, t = Object.keys(e).sort();
|
|
8325
8369
|
for (let r of t)
|
|
8326
8370
|
n[r] = e[r];
|
|
8327
8371
|
return n;
|
|
8328
8372
|
}
|
|
8329
|
-
function
|
|
8373
|
+
function gl(e, n) {
|
|
8330
8374
|
let t = /* @__PURE__ */ new Set();
|
|
8331
8375
|
return new Set(n), e.reduce((r, o) => {
|
|
8332
|
-
let a = JSON.stringify(
|
|
8376
|
+
let a = JSON.stringify(ml(o));
|
|
8333
8377
|
return t.has(a) || (t.add(a), r.push({ key: a, link: o })), r;
|
|
8334
8378
|
}, []);
|
|
8335
8379
|
}
|
|
8336
|
-
function
|
|
8337
|
-
let e =
|
|
8380
|
+
function zr() {
|
|
8381
|
+
let e = R.useContext(Ie);
|
|
8338
8382
|
return mn(
|
|
8339
8383
|
e,
|
|
8340
8384
|
"You must render this element inside a <DataRouterContext.Provider> element"
|
|
8341
8385
|
), e;
|
|
8342
8386
|
}
|
|
8343
|
-
function
|
|
8344
|
-
let e =
|
|
8387
|
+
function vl() {
|
|
8388
|
+
let e = R.useContext(ht);
|
|
8345
8389
|
return mn(
|
|
8346
8390
|
e,
|
|
8347
8391
|
"You must render this element inside a <DataRouterStateContext.Provider> element"
|
|
8348
8392
|
), e;
|
|
8349
8393
|
}
|
|
8350
|
-
var gn =
|
|
8394
|
+
var gn = R.createContext(void 0);
|
|
8351
8395
|
gn.displayName = "FrameworkContext";
|
|
8352
|
-
function
|
|
8353
|
-
let e =
|
|
8396
|
+
function Tr() {
|
|
8397
|
+
let e = R.useContext(gn);
|
|
8354
8398
|
return mn(
|
|
8355
8399
|
e,
|
|
8356
8400
|
"You must render this element inside a <HydratedRouter> element"
|
|
8357
8401
|
), e;
|
|
8358
8402
|
}
|
|
8359
|
-
function
|
|
8360
|
-
let t =
|
|
8361
|
-
|
|
8403
|
+
function hl(e, n) {
|
|
8404
|
+
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);
|
|
8405
|
+
R.useEffect(() => {
|
|
8362
8406
|
if (e === "render" && i(!0), e === "viewport") {
|
|
8363
8407
|
let m = (x) => {
|
|
8364
8408
|
x.forEach((k) => {
|
|
@@ -8369,7 +8413,7 @@ function vl(e, n) {
|
|
|
8369
8413
|
b.disconnect();
|
|
8370
8414
|
};
|
|
8371
8415
|
}
|
|
8372
|
-
}, [e]),
|
|
8416
|
+
}, [e]), R.useEffect(() => {
|
|
8373
8417
|
if (r) {
|
|
8374
8418
|
let m = setTimeout(() => {
|
|
8375
8419
|
i(!0);
|
|
@@ -8401,18 +8445,18 @@ function Ge(e, n) {
|
|
|
8401
8445
|
e && e(t), t.defaultPrevented || n(t);
|
|
8402
8446
|
};
|
|
8403
8447
|
}
|
|
8404
|
-
function
|
|
8405
|
-
let { router: t } =
|
|
8406
|
-
() =>
|
|
8448
|
+
function xl({ page: e, ...n }) {
|
|
8449
|
+
let { router: t } = zr(), r = R.useMemo(
|
|
8450
|
+
() => $r(t.routes, e, t.basename),
|
|
8407
8451
|
[t.routes, e, t.basename]
|
|
8408
8452
|
);
|
|
8409
|
-
return r ? /* @__PURE__ */
|
|
8453
|
+
return r ? /* @__PURE__ */ R.createElement(wl, { page: e, matches: r, ...n }) : null;
|
|
8410
8454
|
}
|
|
8411
|
-
function
|
|
8412
|
-
let { manifest: n, routeModules: t } =
|
|
8413
|
-
return
|
|
8455
|
+
function bl(e) {
|
|
8456
|
+
let { manifest: n, routeModules: t } = Tr(), [r, o] = R.useState([]);
|
|
8457
|
+
return R.useEffect(() => {
|
|
8414
8458
|
let a = !1;
|
|
8415
|
-
return
|
|
8459
|
+
return dl(e, n, t).then(
|
|
8416
8460
|
(i) => {
|
|
8417
8461
|
a || o(i);
|
|
8418
8462
|
}
|
|
@@ -8421,13 +8465,13 @@ function xl(e) {
|
|
|
8421
8465
|
};
|
|
8422
8466
|
}, [e, n, t]), r;
|
|
8423
8467
|
}
|
|
8424
|
-
function
|
|
8468
|
+
function wl({
|
|
8425
8469
|
page: e,
|
|
8426
8470
|
matches: n,
|
|
8427
8471
|
...t
|
|
8428
8472
|
}) {
|
|
8429
|
-
let r =
|
|
8430
|
-
() =>
|
|
8473
|
+
let r = De(), { manifest: o, routeModules: a } = Tr(), { basename: i } = zr(), { loaderData: l, matches: c } = vl(), u = R.useMemo(
|
|
8474
|
+
() => Qn(
|
|
8431
8475
|
e,
|
|
8432
8476
|
n,
|
|
8433
8477
|
c,
|
|
@@ -8436,8 +8480,8 @@ function bl({
|
|
|
8436
8480
|
"data"
|
|
8437
8481
|
),
|
|
8438
8482
|
[e, n, c, o, r]
|
|
8439
|
-
), d =
|
|
8440
|
-
() =>
|
|
8483
|
+
), d = R.useMemo(
|
|
8484
|
+
() => Qn(
|
|
8441
8485
|
e,
|
|
8442
8486
|
n,
|
|
8443
8487
|
c,
|
|
@@ -8446,7 +8490,7 @@ function bl({
|
|
|
8446
8490
|
"assets"
|
|
8447
8491
|
),
|
|
8448
8492
|
[e, n, c, o, r]
|
|
8449
|
-
), g =
|
|
8493
|
+
), g = R.useMemo(() => {
|
|
8450
8494
|
if (e === r.pathname + r.search + r.hash)
|
|
8451
8495
|
return [];
|
|
8452
8496
|
let v = /* @__PURE__ */ new Set(), m = !1;
|
|
@@ -8456,7 +8500,7 @@ function bl({
|
|
|
8456
8500
|
!k || !k.hasLoader || (!u.some(($) => $.route.id === x.route.id) && x.route.id in l && ((w = a[x.route.id]) != null && w.shouldRevalidate) || k.hasClientLoader ? m = !0 : v.add(x.route.id));
|
|
8457
8501
|
}), v.size === 0)
|
|
8458
8502
|
return [];
|
|
8459
|
-
let b =
|
|
8503
|
+
let b = sl(e, i, "data");
|
|
8460
8504
|
return m && v.size > 0 && b.searchParams.set(
|
|
8461
8505
|
"_routes",
|
|
8462
8506
|
n.filter((x) => v.has(x.route.id)).map((x) => x.route.id).join(",")
|
|
@@ -8470,30 +8514,30 @@ function bl({
|
|
|
8470
8514
|
n,
|
|
8471
8515
|
e,
|
|
8472
8516
|
a
|
|
8473
|
-
]), p =
|
|
8474
|
-
() =>
|
|
8517
|
+
]), p = R.useMemo(
|
|
8518
|
+
() => pl(d, o),
|
|
8475
8519
|
[d, o]
|
|
8476
|
-
), f =
|
|
8477
|
-
return /* @__PURE__ */
|
|
8520
|
+
), f = bl(d);
|
|
8521
|
+
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 }) => (
|
|
8478
8522
|
// these don't spread `linkProps` because they are full link descriptors
|
|
8479
8523
|
// already with their own props
|
|
8480
|
-
/* @__PURE__ */
|
|
8524
|
+
/* @__PURE__ */ R.createElement("link", { key: v, ...m })
|
|
8481
8525
|
)));
|
|
8482
8526
|
}
|
|
8483
|
-
function
|
|
8527
|
+
function yl(...e) {
|
|
8484
8528
|
return (n) => {
|
|
8485
8529
|
e.forEach((t) => {
|
|
8486
8530
|
typeof t == "function" ? t(n) : t != null && (t.current = n);
|
|
8487
8531
|
});
|
|
8488
8532
|
};
|
|
8489
8533
|
}
|
|
8490
|
-
var
|
|
8534
|
+
var Or = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
|
|
8491
8535
|
try {
|
|
8492
|
-
|
|
8536
|
+
Or && (window.__reactRouterVersion = // @ts-expect-error
|
|
8493
8537
|
"7.7.1");
|
|
8494
8538
|
} catch {
|
|
8495
8539
|
}
|
|
8496
|
-
var
|
|
8540
|
+
var Ir = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, vn = R.forwardRef(
|
|
8497
8541
|
function({
|
|
8498
8542
|
onClick: n,
|
|
8499
8543
|
discover: t = "render",
|
|
@@ -8508,8 +8552,8 @@ var Tr = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, vn = j.forwardRef(
|
|
|
8508
8552
|
viewTransition: g,
|
|
8509
8553
|
...p
|
|
8510
8554
|
}, f) {
|
|
8511
|
-
let { basename: v } =
|
|
8512
|
-
if (typeof u == "string" && m && (b = u,
|
|
8555
|
+
let { basename: v } = R.useContext(_e), m = typeof u == "string" && Ir.test(u), b, x = !1;
|
|
8556
|
+
if (typeof u == "string" && m && (b = u, Or))
|
|
8513
8557
|
try {
|
|
8514
8558
|
let F = new URL(window.location.href), Z = u.startsWith("//") ? new URL(F.protocol + u) : new URL(u), ae = Fe(Z.pathname, v);
|
|
8515
8559
|
Z.origin === F.origin && ae != null ? u = ae + Z.search + Z.hash : x = !0;
|
|
@@ -8519,10 +8563,10 @@ var Tr = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, vn = j.forwardRef(
|
|
|
8519
8563
|
`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
|
|
8520
8564
|
);
|
|
8521
8565
|
}
|
|
8522
|
-
let k =
|
|
8566
|
+
let k = Ti(u, { relative: o }), [w, $, y] = hl(
|
|
8523
8567
|
r,
|
|
8524
8568
|
p
|
|
8525
|
-
), O =
|
|
8569
|
+
), O = jl(u, {
|
|
8526
8570
|
replace: i,
|
|
8527
8571
|
state: l,
|
|
8528
8572
|
target: c,
|
|
@@ -8530,29 +8574,29 @@ var Tr = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, vn = j.forwardRef(
|
|
|
8530
8574
|
relative: o,
|
|
8531
8575
|
viewTransition: g
|
|
8532
8576
|
});
|
|
8533
|
-
function
|
|
8577
|
+
function D(F) {
|
|
8534
8578
|
n && n(F), F.defaultPrevented || O(F);
|
|
8535
8579
|
}
|
|
8536
8580
|
let V = (
|
|
8537
8581
|
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
|
8538
|
-
/* @__PURE__ */
|
|
8582
|
+
/* @__PURE__ */ R.createElement(
|
|
8539
8583
|
"a",
|
|
8540
8584
|
{
|
|
8541
8585
|
...p,
|
|
8542
8586
|
...y,
|
|
8543
8587
|
href: b || k,
|
|
8544
|
-
onClick: x || a ? n :
|
|
8545
|
-
ref:
|
|
8588
|
+
onClick: x || a ? n : D,
|
|
8589
|
+
ref: yl(f, $),
|
|
8546
8590
|
target: c,
|
|
8547
8591
|
"data-discover": !m && t === "render" ? "true" : void 0
|
|
8548
8592
|
}
|
|
8549
8593
|
)
|
|
8550
8594
|
);
|
|
8551
|
-
return w && !m ? /* @__PURE__ */
|
|
8595
|
+
return w && !m ? /* @__PURE__ */ R.createElement(R.Fragment, null, V, /* @__PURE__ */ R.createElement(xl, { page: k })) : V;
|
|
8552
8596
|
}
|
|
8553
8597
|
);
|
|
8554
8598
|
vn.displayName = "Link";
|
|
8555
|
-
var
|
|
8599
|
+
var Vr = R.forwardRef(
|
|
8556
8600
|
function({
|
|
8557
8601
|
"aria-current": n = "page",
|
|
8558
8602
|
caseSensitive: t = !1,
|
|
@@ -8564,24 +8608,24 @@ var Or = j.forwardRef(
|
|
|
8564
8608
|
children: c,
|
|
8565
8609
|
...u
|
|
8566
8610
|
}, d) {
|
|
8567
|
-
let g = Ke(i, { relative: u.relative }), p =
|
|
8611
|
+
let g = Ke(i, { relative: u.relative }), p = De(), f = R.useContext(ht), { navigator: v, basename: m } = R.useContext(_e), b = f != null && // Conditional usage is OK here because the usage of a data router is static
|
|
8568
8612
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
8569
|
-
|
|
8613
|
+
El(g) && l === !0, x = v.encodeLocation ? v.encodeLocation(g).pathname : g.pathname, k = p.pathname, w = f && f.navigation && f.navigation.location ? f.navigation.location.pathname : null;
|
|
8570
8614
|
t || (k = k.toLowerCase(), w = w ? w.toLowerCase() : null, x = x.toLowerCase()), w && m && (w = Fe(w, m) || w);
|
|
8571
8615
|
const $ = x !== "/" && x.endsWith("/") ? x.length - 1 : x.length;
|
|
8572
|
-
let y = k === x || !o && k.startsWith(x) && k.charAt($) === "/", O = w != null && (w === x || !o && w.startsWith(x) && w.charAt(x.length) === "/"),
|
|
8616
|
+
let y = k === x || !o && k.startsWith(x) && k.charAt($) === "/", O = w != null && (w === x || !o && w.startsWith(x) && w.charAt(x.length) === "/"), D = {
|
|
8573
8617
|
isActive: y,
|
|
8574
8618
|
isPending: O,
|
|
8575
8619
|
isTransitioning: b
|
|
8576
8620
|
}, V = y ? n : void 0, F;
|
|
8577
|
-
typeof r == "function" ? F = r(
|
|
8621
|
+
typeof r == "function" ? F = r(D) : F = [
|
|
8578
8622
|
r,
|
|
8579
8623
|
y ? "active" : null,
|
|
8580
8624
|
O ? "pending" : null,
|
|
8581
8625
|
b ? "transitioning" : null
|
|
8582
8626
|
].filter(Boolean).join(" ");
|
|
8583
|
-
let Z = typeof a == "function" ? a(
|
|
8584
|
-
return /* @__PURE__ */
|
|
8627
|
+
let Z = typeof a == "function" ? a(D) : a;
|
|
8628
|
+
return /* @__PURE__ */ R.createElement(
|
|
8585
8629
|
vn,
|
|
8586
8630
|
{
|
|
8587
8631
|
...u,
|
|
@@ -8592,12 +8636,12 @@ var Or = j.forwardRef(
|
|
|
8592
8636
|
to: i,
|
|
8593
8637
|
viewTransition: l
|
|
8594
8638
|
},
|
|
8595
|
-
typeof c == "function" ? c(
|
|
8639
|
+
typeof c == "function" ? c(D) : c
|
|
8596
8640
|
);
|
|
8597
8641
|
}
|
|
8598
8642
|
);
|
|
8599
|
-
|
|
8600
|
-
var
|
|
8643
|
+
Vr.displayName = "NavLink";
|
|
8644
|
+
var Cl = R.forwardRef(
|
|
8601
8645
|
({
|
|
8602
8646
|
discover: e = "render",
|
|
8603
8647
|
fetcherKey: n,
|
|
@@ -8613,7 +8657,7 @@ var yl = j.forwardRef(
|
|
|
8613
8657
|
viewTransition: g,
|
|
8614
8658
|
...p
|
|
8615
8659
|
}, f) => {
|
|
8616
|
-
let v =
|
|
8660
|
+
let v = $l(), m = _l(l, { relative: u }), b = i.toLowerCase() === "get" ? "get" : "post", x = typeof l == "string" && Ir.test(l), k = (w) => {
|
|
8617
8661
|
if (c && c(w), w.defaultPrevented) return;
|
|
8618
8662
|
w.preventDefault();
|
|
8619
8663
|
let $ = w.nativeEvent.submitter, y = ($ == null ? void 0 : $.getAttribute("formmethod")) || i;
|
|
@@ -8628,7 +8672,7 @@ var yl = j.forwardRef(
|
|
|
8628
8672
|
viewTransition: g
|
|
8629
8673
|
});
|
|
8630
8674
|
};
|
|
8631
|
-
return /* @__PURE__ */
|
|
8675
|
+
return /* @__PURE__ */ R.createElement(
|
|
8632
8676
|
"form",
|
|
8633
8677
|
{
|
|
8634
8678
|
ref: f,
|
|
@@ -8641,15 +8685,15 @@ var yl = j.forwardRef(
|
|
|
8641
8685
|
);
|
|
8642
8686
|
}
|
|
8643
8687
|
);
|
|
8644
|
-
|
|
8645
|
-
function
|
|
8688
|
+
Cl.displayName = "Form";
|
|
8689
|
+
function Sl(e) {
|
|
8646
8690
|
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
8647
8691
|
}
|
|
8648
|
-
function
|
|
8649
|
-
let n =
|
|
8650
|
-
return he(n,
|
|
8692
|
+
function Hr(e) {
|
|
8693
|
+
let n = R.useContext(Ie);
|
|
8694
|
+
return he(n, Sl(e)), n;
|
|
8651
8695
|
}
|
|
8652
|
-
function
|
|
8696
|
+
function jl(e, {
|
|
8653
8697
|
target: n,
|
|
8654
8698
|
replace: t,
|
|
8655
8699
|
state: r,
|
|
@@ -8657,10 +8701,10 @@ function Sl(e, {
|
|
|
8657
8701
|
relative: a,
|
|
8658
8702
|
viewTransition: i
|
|
8659
8703
|
} = {}) {
|
|
8660
|
-
let l =
|
|
8661
|
-
return
|
|
8704
|
+
let l = Oi(), c = De(), u = Ke(e, { relative: a });
|
|
8705
|
+
return R.useCallback(
|
|
8662
8706
|
(d) => {
|
|
8663
|
-
if (
|
|
8707
|
+
if (ol(d, n)) {
|
|
8664
8708
|
d.preventDefault();
|
|
8665
8709
|
let g = t !== void 0 ? t : nn(c) === nn(u);
|
|
8666
8710
|
l(e, {
|
|
@@ -8686,20 +8730,20 @@ function Sl(e, {
|
|
|
8686
8730
|
]
|
|
8687
8731
|
);
|
|
8688
8732
|
}
|
|
8689
|
-
var Rl = 0,
|
|
8690
|
-
function
|
|
8691
|
-
let { router: e } =
|
|
8733
|
+
var Rl = 0, kl = () => `__${String(++Rl)}__`;
|
|
8734
|
+
function $l() {
|
|
8735
|
+
let { router: e } = Hr(
|
|
8692
8736
|
"useSubmit"
|
|
8693
8737
|
/* UseSubmit */
|
|
8694
|
-
), { basename: n } =
|
|
8695
|
-
return
|
|
8738
|
+
), { basename: n } = R.useContext(_e), t = Ki();
|
|
8739
|
+
return R.useCallback(
|
|
8696
8740
|
async (r, o = {}) => {
|
|
8697
|
-
let { action: a, method: i, encType: l, formData: c, body: u } =
|
|
8741
|
+
let { action: a, method: i, encType: l, formData: c, body: u } = ll(
|
|
8698
8742
|
r,
|
|
8699
8743
|
n
|
|
8700
8744
|
);
|
|
8701
8745
|
if (o.navigate === !1) {
|
|
8702
|
-
let d = o.fetcherKey ||
|
|
8746
|
+
let d = o.fetcherKey || kl();
|
|
8703
8747
|
await e.fetch(d, t, o.action || a, {
|
|
8704
8748
|
preventScrollReset: o.preventScrollReset,
|
|
8705
8749
|
formData: c,
|
|
@@ -8725,10 +8769,10 @@ function kl() {
|
|
|
8725
8769
|
[e, n, t]
|
|
8726
8770
|
);
|
|
8727
8771
|
}
|
|
8728
|
-
function
|
|
8729
|
-
let { basename: t } =
|
|
8772
|
+
function _l(e, { relative: n } = {}) {
|
|
8773
|
+
let { basename: t } = R.useContext(_e), r = R.useContext(Ee);
|
|
8730
8774
|
he(r, "useFormAction must be used inside a RouteContext");
|
|
8731
|
-
let [o] = r.matches.slice(-1), a = { ...Ke(e || ".", { relative: n }) }, i =
|
|
8775
|
+
let [o] = r.matches.slice(-1), a = { ...Ke(e || ".", { relative: n }) }, i = De();
|
|
8732
8776
|
if (e == null) {
|
|
8733
8777
|
a.search = i.search;
|
|
8734
8778
|
let l = new URLSearchParams(a.search), c = l.getAll("index");
|
|
@@ -8740,13 +8784,13 @@ function $l(e, { relative: n } = {}) {
|
|
|
8740
8784
|
}
|
|
8741
8785
|
return (!e || e === ".") && o.route.index && (a.search = a.search ? a.search.replace(/^\?/, "?index&") : "?index"), t !== "/" && (a.pathname = a.pathname === "/" ? t : ke([t, a.pathname])), nn(a);
|
|
8742
8786
|
}
|
|
8743
|
-
function
|
|
8744
|
-
let t =
|
|
8787
|
+
function El(e, { relative: n } = {}) {
|
|
8788
|
+
let t = R.useContext(Fr);
|
|
8745
8789
|
he(
|
|
8746
8790
|
t != null,
|
|
8747
8791
|
"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"
|
|
8748
8792
|
);
|
|
8749
|
-
let { basename: r } =
|
|
8793
|
+
let { basename: r } = Hr(
|
|
8750
8794
|
"useViewTransitionState"
|
|
8751
8795
|
/* useViewTransitionState */
|
|
8752
8796
|
), o = Ke(e, { relative: n });
|
|
@@ -8755,7 +8799,7 @@ function _l(e, { relative: n } = {}) {
|
|
|
8755
8799
|
let a = Fe(t.currentLocation.pathname, r) || t.currentLocation.pathname, i = Fe(t.nextLocation.pathname, r) || t.nextLocation.pathname;
|
|
8756
8800
|
return gt(o.pathname, i) != null || gt(o.pathname, a) != null;
|
|
8757
8801
|
}
|
|
8758
|
-
const
|
|
8802
|
+
const ls = ({
|
|
8759
8803
|
variant: e = "fixed",
|
|
8760
8804
|
activeTab: n,
|
|
8761
8805
|
navItems: t,
|
|
@@ -8781,7 +8825,7 @@ const is = ({
|
|
|
8781
8825
|
c.label
|
|
8782
8826
|
);
|
|
8783
8827
|
}) });
|
|
8784
|
-
},
|
|
8828
|
+
}, ss = ({ items: e, separator: n = "/", className: t = "" }) => /* @__PURE__ */ s.jsx("nav", { className: `text-sm text-color-gray-600 ${t}`, "aria-label": "Breadcrumb", children: /* @__PURE__ */ s.jsx("ol", { className: "flex items-center space-x-1", children: e.map((r, o) => /* @__PURE__ */ s.jsxs("li", { className: "flex items-center", children: [
|
|
8785
8829
|
r.href ? /* @__PURE__ */ s.jsx(
|
|
8786
8830
|
"a",
|
|
8787
8831
|
{
|
|
@@ -8791,7 +8835,7 @@ const is = ({
|
|
|
8791
8835
|
}
|
|
8792
8836
|
) : /* @__PURE__ */ s.jsx("span", { className: "text-color-gray-500 font-medium", children: r.label }),
|
|
8793
8837
|
o < e.length - 1 && /* @__PURE__ */ s.jsx("span", { className: "mx-2 text-color-gray-400", children: n })
|
|
8794
|
-
] }, o)) }) }),
|
|
8838
|
+
] }, o)) }) }), er = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], Pl = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], cs = ({
|
|
8795
8839
|
mode: e = "single",
|
|
8796
8840
|
type: n = "inline",
|
|
8797
8841
|
showTime: t = !1,
|
|
@@ -8806,7 +8850,7 @@ const is = ({
|
|
|
8806
8850
|
}) => {
|
|
8807
8851
|
const [g, p] = K(!1), [f, v] = K(null), [m, b] = K(/* @__PURE__ */ new Date()), [x, k] = K(
|
|
8808
8852
|
d ? new Date(d) : null
|
|
8809
|
-
), [w, $] = K(null), [y, O] = K(null), [
|
|
8853
|
+
), [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(
|
|
8810
8854
|
d ? new Date(d) : null
|
|
8811
8855
|
), [H, Y] = K(null), [T, te] = K(null);
|
|
8812
8856
|
ce(() => {
|
|
@@ -8830,27 +8874,27 @@ const is = ({
|
|
|
8830
8874
|
return;
|
|
8831
8875
|
}
|
|
8832
8876
|
e === "range" && w && !y && V(S);
|
|
8833
|
-
},
|
|
8877
|
+
}, N = () => {
|
|
8834
8878
|
V(null);
|
|
8835
8879
|
}, I = () => {
|
|
8836
8880
|
if (p(!1), e === "single") {
|
|
8837
|
-
const S = r ? /* @__PURE__ */ new Date() : x,
|
|
8881
|
+
const S = r ? /* @__PURE__ */ new Date() : x, j = S ? new Date(
|
|
8838
8882
|
S.getFullYear(),
|
|
8839
8883
|
S.getMonth(),
|
|
8840
8884
|
S.getDate(),
|
|
8841
8885
|
F.ampm === "PM" && F.hour !== 12 ? F.hour + 12 : F.ampm === "AM" && F.hour === 12 ? 0 : F.hour,
|
|
8842
8886
|
F.minute
|
|
8843
8887
|
) : null;
|
|
8844
|
-
Q(
|
|
8888
|
+
Q(j), a == null || a(j ? j.getTime() : null);
|
|
8845
8889
|
} else e === "range" && (Y(w), te(y), a == null || a({
|
|
8846
8890
|
startDate: w ? w.getTime() : null,
|
|
8847
8891
|
endDate: y ? y.getTime() : null
|
|
8848
8892
|
}));
|
|
8849
8893
|
}, z = () => {
|
|
8850
|
-
const S = new Date(m.getFullYear(), m.getMonth(), 1),
|
|
8894
|
+
const S = new Date(m.getFullYear(), m.getMonth(), 1), j = new Date(m.getFullYear(), m.getMonth() + 1, 0), _ = [], J = S.getDay();
|
|
8851
8895
|
for (let ee = 0; ee < J; ee++)
|
|
8852
8896
|
_.push(null);
|
|
8853
|
-
for (let ee = 1; ee <=
|
|
8897
|
+
for (let ee = 1; ee <= j.getDate(); ee++)
|
|
8854
8898
|
_.push(new Date(m.getFullYear(), m.getMonth(), ee));
|
|
8855
8899
|
return _;
|
|
8856
8900
|
}, E = (S) => {
|
|
@@ -8858,19 +8902,19 @@ const is = ({
|
|
|
8858
8902
|
if (e === "single")
|
|
8859
8903
|
return (x == null ? void 0 : x.toDateString()) === S.toDateString();
|
|
8860
8904
|
if (e === "range") {
|
|
8861
|
-
if (w && !y &&
|
|
8862
|
-
const
|
|
8863
|
-
return S >=
|
|
8905
|
+
if (w && !y && D) {
|
|
8906
|
+
const j = w < D ? w : D, _ = w < D ? D : w;
|
|
8907
|
+
return S >= j && S <= _;
|
|
8864
8908
|
}
|
|
8865
8909
|
return w && y && S >= w && S <= y;
|
|
8866
8910
|
}
|
|
8867
8911
|
return !1;
|
|
8868
|
-
}, P = (S,
|
|
8912
|
+
}, P = (S, j) => {
|
|
8869
8913
|
if (!S)
|
|
8870
|
-
return e === "range" ?
|
|
8914
|
+
return e === "range" ? j === "end" ? "End Date" : "Start Date" : r ? `${String(F.hour).padStart(2, "0")}:${String(F.minute).padStart(2, "0")} ${F.ampm}` : i;
|
|
8871
8915
|
if (r)
|
|
8872
8916
|
return `${String(F.hour).padStart(2, "0")}:${String(F.minute).padStart(2, "0")} ${F.ampm}`;
|
|
8873
|
-
const _ = S.getDate().toString().padStart(2, "0"), J =
|
|
8917
|
+
const _ = S.getDate().toString().padStart(2, "0"), J = er[S.getMonth()], ee = S.getFullYear(), de = t ? ` ${String(F.hour).padStart(2, "0")}:${String(F.minute).padStart(2, "0")} ${F.ampm}` : "";
|
|
8874
8918
|
return `${_} ${J} ${ee}${de}`;
|
|
8875
8919
|
}, B = /* @__PURE__ */ s.jsxs("div", { className: "flex items-center justify-between w-full border border-color-gray-300 rounded-md p-2", children: [
|
|
8876
8920
|
/* @__PURE__ */ s.jsx(
|
|
@@ -8879,7 +8923,7 @@ const is = ({
|
|
|
8879
8923
|
value: F.hour,
|
|
8880
8924
|
onChange: (S) => Z({ ...F, hour: parseInt(S.target.value) }),
|
|
8881
8925
|
className: "w-16 border-0 text-center bg-color-transparent outline-0",
|
|
8882
|
-
children: Array.from({ length: 12 }, (S,
|
|
8926
|
+
children: Array.from({ length: 12 }, (S, j) => j + 1).map((S) => /* @__PURE__ */ s.jsx("option", { value: S, children: S.toString().padStart(2, "0") }, S))
|
|
8883
8927
|
}
|
|
8884
8928
|
),
|
|
8885
8929
|
/* @__PURE__ */ s.jsx(
|
|
@@ -8888,7 +8932,7 @@ const is = ({
|
|
|
8888
8932
|
value: F.minute,
|
|
8889
8933
|
onChange: (S) => Z({ ...F, minute: parseInt(S.target.value) }),
|
|
8890
8934
|
className: "w-16 border-0 text-center bg-color-transparent outline-0 border-l border-color-gray-300",
|
|
8891
|
-
children: Array.from({ length: 60 }, (S,
|
|
8935
|
+
children: Array.from({ length: 60 }, (S, j) => j).map((S) => /* @__PURE__ */ s.jsx("option", { value: S, children: S.toString().padStart(2, "0") }, S))
|
|
8892
8936
|
}
|
|
8893
8937
|
),
|
|
8894
8938
|
/* @__PURE__ */ s.jsxs(
|
|
@@ -8934,7 +8978,7 @@ const is = ({
|
|
|
8934
8978
|
className: "text-sm outline-none",
|
|
8935
8979
|
value: m.getMonth(),
|
|
8936
8980
|
onChange: (S) => b(new Date(m.getFullYear(), parseInt(S.target.value), 1)),
|
|
8937
|
-
children:
|
|
8981
|
+
children: er.map((S, j) => /* @__PURE__ */ s.jsx("option", { value: j, children: S }, S))
|
|
8938
8982
|
}
|
|
8939
8983
|
),
|
|
8940
8984
|
/* @__PURE__ */ s.jsx(
|
|
@@ -8943,7 +8987,7 @@ const is = ({
|
|
|
8943
8987
|
className: "text-sm outline-none",
|
|
8944
8988
|
value: m.getFullYear(),
|
|
8945
8989
|
onChange: (S) => b(new Date(parseInt(S.target.value), m.getMonth(), 1)),
|
|
8946
|
-
children: Array.from({ length: 150 }, (S,
|
|
8990
|
+
children: Array.from({ length: 150 }, (S, j) => (/* @__PURE__ */ new Date()).getFullYear() - 100 + j).map((S) => /* @__PURE__ */ s.jsx("option", { value: S, children: S }, S))
|
|
8947
8991
|
}
|
|
8948
8992
|
)
|
|
8949
8993
|
] }),
|
|
@@ -8960,8 +9004,8 @@ const is = ({
|
|
|
8960
9004
|
)
|
|
8961
9005
|
] }),
|
|
8962
9006
|
/* @__PURE__ */ s.jsxs("div", { className: "grid grid-columns-7 gap-1 text-center text-sm mb-2", children: [
|
|
8963
|
-
|
|
8964
|
-
z().map((S,
|
|
9007
|
+
Pl.map((S) => /* @__PURE__ */ s.jsx("div", { className: "font-semibold", children: S }, S)),
|
|
9008
|
+
z().map((S, j) => /* @__PURE__ */ s.jsx(
|
|
8965
9009
|
"div",
|
|
8966
9010
|
{
|
|
8967
9011
|
className: `size-8 flex justify-center items-center text-sm rounded-full transition-all
|
|
@@ -8970,10 +9014,10 @@ const is = ({
|
|
|
8970
9014
|
${S && h(S) ? "bg-color-gray-100 text-color-gray-400 !cursor-not-allowed hover:bg-color-gray-100" : ""}`,
|
|
8971
9015
|
onClick: () => S && L(S),
|
|
8972
9016
|
onMouseEnter: () => S && M(S),
|
|
8973
|
-
onMouseLeave:
|
|
9017
|
+
onMouseLeave: N,
|
|
8974
9018
|
children: S ? S.getDate() : ""
|
|
8975
9019
|
},
|
|
8976
|
-
|
|
9020
|
+
j
|
|
8977
9021
|
))
|
|
8978
9022
|
] })
|
|
8979
9023
|
] }),
|
|
@@ -9014,9 +9058,9 @@ const is = ({
|
|
|
9014
9058
|
]
|
|
9015
9059
|
}
|
|
9016
9060
|
),
|
|
9017
|
-
n === "inline" ? /* @__PURE__ */ s.jsx(s.Fragment, { children: g && Ze(q, document.body) }) : /* @__PURE__ */ s.jsx(
|
|
9061
|
+
n === "inline" ? /* @__PURE__ */ s.jsx(s.Fragment, { children: g && Ze(q, document.body) }) : /* @__PURE__ */ s.jsx(ci, { open: g, title: r ? "Select Time" : i, onClose: X, children: /* @__PURE__ */ s.jsx("div", { className: "w-72", children: q }) })
|
|
9018
9062
|
] });
|
|
9019
|
-
},
|
|
9063
|
+
}, us = ({
|
|
9020
9064
|
tabs: e,
|
|
9021
9065
|
activeKey: n,
|
|
9022
9066
|
onChange: t,
|
|
@@ -9063,10 +9107,10 @@ const is = ({
|
|
|
9063
9107
|
]
|
|
9064
9108
|
}
|
|
9065
9109
|
);
|
|
9066
|
-
},
|
|
9110
|
+
}, ds = ({
|
|
9067
9111
|
stats: e = [],
|
|
9068
9112
|
className: n = ""
|
|
9069
|
-
}) => /* @__PURE__ */ s.jsx(
|
|
9113
|
+
}) => /* @__PURE__ */ s.jsx(ii, { className: `w-full ${n}`, children: /* @__PURE__ */ s.jsx("div", { className: "grid grid-columns-1 sm:grid-columns-1 md:grid-columns-2 lg:grid-columns-4 gap-4 justify-items-center", children: e.map((t, r) => /* @__PURE__ */ s.jsxs(
|
|
9070
9114
|
"div",
|
|
9071
9115
|
{
|
|
9072
9116
|
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
|
|
@@ -9087,7 +9131,7 @@ const is = ({
|
|
|
9087
9131
|
},
|
|
9088
9132
|
r
|
|
9089
9133
|
)) }) });
|
|
9090
|
-
function
|
|
9134
|
+
function ps({
|
|
9091
9135
|
items: e = [],
|
|
9092
9136
|
logoJSX: n,
|
|
9093
9137
|
position: t,
|
|
@@ -9101,7 +9145,7 @@ function ds({
|
|
|
9101
9145
|
c(d), d.onClick && d.onClick(), i && i(d);
|
|
9102
9146
|
};
|
|
9103
9147
|
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsx(
|
|
9104
|
-
|
|
9148
|
+
di,
|
|
9105
9149
|
{
|
|
9106
9150
|
open: o,
|
|
9107
9151
|
onClose: a,
|
|
@@ -9115,7 +9159,7 @@ function ds({
|
|
|
9115
9159
|
n && /* @__PURE__ */ s.jsx("div", { className: "pb-6", children: n }),
|
|
9116
9160
|
/* @__PURE__ */ s.jsx("nav", { className: "space-y-2 text-sm font-medium text-color-gray-700", children: e.map(
|
|
9117
9161
|
(d) => d.href ? /* @__PURE__ */ s.jsxs(
|
|
9118
|
-
|
|
9162
|
+
Vr,
|
|
9119
9163
|
{
|
|
9120
9164
|
to: d.href,
|
|
9121
9165
|
className: `flex items-center gap-3 py-3 px-4 cursor-pointer rounded-full w-full no-underline
|
|
@@ -9149,52 +9193,52 @@ function ds({
|
|
|
9149
9193
|
) });
|
|
9150
9194
|
}
|
|
9151
9195
|
export {
|
|
9152
|
-
|
|
9153
|
-
|
|
9154
|
-
|
|
9155
|
-
|
|
9156
|
-
|
|
9157
|
-
|
|
9158
|
-
|
|
9196
|
+
os as Accordion,
|
|
9197
|
+
rs as ActionMenu,
|
|
9198
|
+
as as Alert,
|
|
9199
|
+
hr as Avatar,
|
|
9200
|
+
is as Badge,
|
|
9201
|
+
ls as BottomNavigation,
|
|
9202
|
+
ss as Breadcrumbs,
|
|
9159
9203
|
Gt as Button,
|
|
9160
9204
|
ve as COLOR_MAP,
|
|
9161
|
-
|
|
9162
|
-
|
|
9163
|
-
|
|
9205
|
+
ii as Card,
|
|
9206
|
+
Nl as CardWrapper,
|
|
9207
|
+
Zl as Carousel,
|
|
9164
9208
|
Dl as Checkbox,
|
|
9165
|
-
|
|
9166
|
-
|
|
9167
|
-
|
|
9168
|
-
|
|
9169
|
-
|
|
9170
|
-
|
|
9171
|
-
|
|
9172
|
-
|
|
9209
|
+
ds as DashboardStatBoxes,
|
|
9210
|
+
cs as DatePicker,
|
|
9211
|
+
ci as Dialog,
|
|
9212
|
+
Ql as Divider,
|
|
9213
|
+
di as Drawer,
|
|
9214
|
+
zl as Dropdown,
|
|
9215
|
+
Tl as DropzoneUploader,
|
|
9216
|
+
Kl as EmptyState,
|
|
9173
9217
|
je as IconButton,
|
|
9174
|
-
|
|
9175
|
-
|
|
9176
|
-
|
|
9177
|
-
|
|
9178
|
-
|
|
9179
|
-
|
|
9180
|
-
|
|
9218
|
+
oa as Menu,
|
|
9219
|
+
sa as OtpInput,
|
|
9220
|
+
ri as Pagination,
|
|
9221
|
+
da as PasswordInput,
|
|
9222
|
+
Ol as Pill,
|
|
9223
|
+
Il as ProfileImageShowcase,
|
|
9224
|
+
Ul as Progress,
|
|
9181
9225
|
qt as RANGE_COLOR_MAP,
|
|
9182
|
-
|
|
9183
|
-
|
|
9184
|
-
|
|
9185
|
-
|
|
9186
|
-
|
|
9187
|
-
|
|
9188
|
-
|
|
9189
|
-
|
|
9190
|
-
|
|
9191
|
-
|
|
9192
|
-
|
|
9193
|
-
|
|
9194
|
-
|
|
9195
|
-
|
|
9196
|
-
|
|
9197
|
-
|
|
9198
|
-
|
|
9199
|
-
|
|
9226
|
+
es as RadioGroup,
|
|
9227
|
+
Yl as Rating,
|
|
9228
|
+
ts as Select,
|
|
9229
|
+
ps as Sidebar,
|
|
9230
|
+
Bl as Skeleton,
|
|
9231
|
+
Gl as Slider,
|
|
9232
|
+
Wl as Snackbar,
|
|
9233
|
+
Vl as Stepper,
|
|
9234
|
+
Hl as Table,
|
|
9235
|
+
us as Tabs,
|
|
9236
|
+
ql as TextArea,
|
|
9237
|
+
vr as TextInput,
|
|
9238
|
+
Jl as ToggleButton,
|
|
9239
|
+
Xl as ToggleSwitch,
|
|
9240
|
+
ns as Tooltip,
|
|
9241
|
+
ni as Typography,
|
|
9242
|
+
Fl as extendColorMap,
|
|
9243
|
+
Al as extendRangeColorMap
|
|
9200
9244
|
};
|