@unizap/uniui 1.0.52 → 1.0.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/uniui.css +1 -1
- package/dist/uniui.js +354 -355
- package/dist/uniui.umd.cjs +34 -34
- package/package.json +96 -97
package/dist/uniui.js
CHANGED
|
@@ -49,12 +49,12 @@ var Ve = {};
|
|
|
49
49
|
var Zt;
|
|
50
50
|
function ar() {
|
|
51
51
|
return Zt || (Zt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
52
|
-
function e(
|
|
53
|
-
if (
|
|
54
|
-
if (typeof
|
|
55
|
-
return
|
|
56
|
-
if (typeof
|
|
57
|
-
switch (
|
|
52
|
+
function e(x) {
|
|
53
|
+
if (x == null) return null;
|
|
54
|
+
if (typeof x == "function")
|
|
55
|
+
return x.$$typeof === X ? null : x.displayName || x.name || null;
|
|
56
|
+
if (typeof x == "string") return x;
|
|
57
|
+
switch (x) {
|
|
58
58
|
case g:
|
|
59
59
|
return "Fragment";
|
|
60
60
|
case h:
|
|
@@ -68,140 +68,140 @@ function ar() {
|
|
|
68
68
|
case ee:
|
|
69
69
|
return "Activity";
|
|
70
70
|
}
|
|
71
|
-
if (typeof
|
|
72
|
-
switch (typeof
|
|
71
|
+
if (typeof x == "object")
|
|
72
|
+
switch (typeof x.tag == "number" && console.error(
|
|
73
73
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
74
|
-
),
|
|
74
|
+
), x.$$typeof) {
|
|
75
75
|
case v:
|
|
76
76
|
return "Portal";
|
|
77
77
|
case y:
|
|
78
|
-
return (
|
|
78
|
+
return (x.displayName || "Context") + ".Provider";
|
|
79
79
|
case S:
|
|
80
|
-
return (
|
|
80
|
+
return (x._context.displayName || "Context") + ".Consumer";
|
|
81
81
|
case $:
|
|
82
|
-
var j =
|
|
83
|
-
return
|
|
82
|
+
var j = x.render;
|
|
83
|
+
return x = x.displayName, x || (x = j.displayName || j.name || "", x = x !== "" ? "ForwardRef(" + x + ")" : "ForwardRef"), x;
|
|
84
84
|
case R:
|
|
85
|
-
return j =
|
|
85
|
+
return j = x.displayName || null, j !== null ? j : e(x.type) || "Memo";
|
|
86
86
|
case A:
|
|
87
|
-
j =
|
|
87
|
+
j = x._payload, x = x._init;
|
|
88
88
|
try {
|
|
89
|
-
return e(
|
|
89
|
+
return e(x(j));
|
|
90
90
|
} catch {
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
return null;
|
|
94
94
|
}
|
|
95
|
-
function n(
|
|
96
|
-
return "" +
|
|
95
|
+
function n(x) {
|
|
96
|
+
return "" + x;
|
|
97
97
|
}
|
|
98
|
-
function t(
|
|
98
|
+
function t(x) {
|
|
99
99
|
try {
|
|
100
|
-
n(
|
|
100
|
+
n(x);
|
|
101
101
|
var j = !1;
|
|
102
102
|
} catch {
|
|
103
103
|
j = !0;
|
|
104
104
|
}
|
|
105
105
|
if (j) {
|
|
106
106
|
j = console;
|
|
107
|
-
var L = j.error, E = typeof Symbol == "function" && Symbol.toStringTag &&
|
|
107
|
+
var L = j.error, E = typeof Symbol == "function" && Symbol.toStringTag && x[Symbol.toStringTag] || x.constructor.name || "Object";
|
|
108
108
|
return L.call(
|
|
109
109
|
j,
|
|
110
110
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
111
111
|
E
|
|
112
|
-
), n(
|
|
112
|
+
), n(x);
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
-
function r(
|
|
116
|
-
if (
|
|
117
|
-
if (typeof
|
|
115
|
+
function r(x) {
|
|
116
|
+
if (x === g) return "<>";
|
|
117
|
+
if (typeof x == "object" && x !== null && x.$$typeof === A)
|
|
118
118
|
return "<...>";
|
|
119
119
|
try {
|
|
120
|
-
var j = e(
|
|
120
|
+
var j = e(x);
|
|
121
121
|
return j ? "<" + j + ">" : "<...>";
|
|
122
122
|
} catch {
|
|
123
123
|
return "<...>";
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
function o() {
|
|
127
|
-
var
|
|
128
|
-
return
|
|
127
|
+
var x = Q.A;
|
|
128
|
+
return x === null ? null : x.getOwner();
|
|
129
129
|
}
|
|
130
130
|
function i() {
|
|
131
131
|
return Error("react-stack-top-frame");
|
|
132
132
|
}
|
|
133
|
-
function l(
|
|
134
|
-
if (de.call(
|
|
135
|
-
var j = Object.getOwnPropertyDescriptor(
|
|
133
|
+
function l(x) {
|
|
134
|
+
if (de.call(x, "key")) {
|
|
135
|
+
var j = Object.getOwnPropertyDescriptor(x, "key").get;
|
|
136
136
|
if (j && j.isReactWarning) return !1;
|
|
137
137
|
}
|
|
138
|
-
return
|
|
138
|
+
return x.key !== void 0;
|
|
139
139
|
}
|
|
140
|
-
function s(
|
|
140
|
+
function s(x, j) {
|
|
141
141
|
function L() {
|
|
142
142
|
q || (q = !0, console.error(
|
|
143
143
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
144
144
|
j
|
|
145
145
|
));
|
|
146
146
|
}
|
|
147
|
-
L.isReactWarning = !0, Object.defineProperty(
|
|
147
|
+
L.isReactWarning = !0, Object.defineProperty(x, "key", {
|
|
148
148
|
get: L,
|
|
149
149
|
configurable: !0
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
152
|
function c() {
|
|
153
|
-
var
|
|
154
|
-
return K[
|
|
153
|
+
var x = e(this.type);
|
|
154
|
+
return K[x] || (K[x] = !0, console.error(
|
|
155
155
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
156
|
-
)),
|
|
156
|
+
)), x = this.props.ref, x !== void 0 ? x : null;
|
|
157
157
|
}
|
|
158
|
-
function d(
|
|
159
|
-
return L = O.ref,
|
|
158
|
+
function d(x, j, L, E, P, O, k, B) {
|
|
159
|
+
return L = O.ref, x = {
|
|
160
160
|
$$typeof: f,
|
|
161
|
-
type:
|
|
161
|
+
type: x,
|
|
162
162
|
key: j,
|
|
163
163
|
props: O,
|
|
164
164
|
_owner: P
|
|
165
|
-
}, (L !== void 0 ? L : null) !== null ? Object.defineProperty(
|
|
165
|
+
}, (L !== void 0 ? L : null) !== null ? Object.defineProperty(x, "ref", {
|
|
166
166
|
enumerable: !1,
|
|
167
167
|
get: c
|
|
168
|
-
}) : Object.defineProperty(
|
|
168
|
+
}) : Object.defineProperty(x, "ref", { enumerable: !1, value: null }), x._store = {}, Object.defineProperty(x._store, "validated", {
|
|
169
169
|
configurable: !1,
|
|
170
170
|
enumerable: !1,
|
|
171
171
|
writable: !0,
|
|
172
172
|
value: 0
|
|
173
|
-
}), Object.defineProperty(
|
|
173
|
+
}), Object.defineProperty(x, "_debugInfo", {
|
|
174
174
|
configurable: !1,
|
|
175
175
|
enumerable: !1,
|
|
176
176
|
writable: !0,
|
|
177
177
|
value: null
|
|
178
|
-
}), Object.defineProperty(
|
|
178
|
+
}), Object.defineProperty(x, "_debugStack", {
|
|
179
179
|
configurable: !1,
|
|
180
180
|
enumerable: !1,
|
|
181
181
|
writable: !0,
|
|
182
182
|
value: k
|
|
183
|
-
}), Object.defineProperty(
|
|
183
|
+
}), Object.defineProperty(x, "_debugTask", {
|
|
184
184
|
configurable: !1,
|
|
185
185
|
enumerable: !1,
|
|
186
186
|
writable: !0,
|
|
187
187
|
value: B
|
|
188
|
-
}), Object.freeze && (Object.freeze(
|
|
188
|
+
}), Object.freeze && (Object.freeze(x.props), Object.freeze(x)), x;
|
|
189
189
|
}
|
|
190
|
-
function p(
|
|
190
|
+
function p(x, j, L, E, P, O, k, B) {
|
|
191
191
|
var N = j.children;
|
|
192
192
|
if (N !== void 0)
|
|
193
193
|
if (E)
|
|
194
194
|
if (D(N)) {
|
|
195
195
|
for (E = 0; E < N.length; E++)
|
|
196
|
-
|
|
196
|
+
m(N[E]);
|
|
197
197
|
Object.freeze && Object.freeze(N);
|
|
198
198
|
} else
|
|
199
199
|
console.error(
|
|
200
200
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
201
201
|
);
|
|
202
|
-
else
|
|
202
|
+
else m(N);
|
|
203
203
|
if (de.call(j, "key")) {
|
|
204
|
-
N = e(
|
|
204
|
+
N = e(x);
|
|
205
205
|
var G = Object.keys(j).filter(function(se) {
|
|
206
206
|
return se !== "key";
|
|
207
207
|
});
|
|
@@ -225,9 +225,9 @@ React keys must be passed directly to JSX without using spread:
|
|
|
225
225
|
} else L = j;
|
|
226
226
|
return N && s(
|
|
227
227
|
L,
|
|
228
|
-
typeof
|
|
228
|
+
typeof x == "function" ? x.displayName || x.name || "Unknown" : x
|
|
229
229
|
), d(
|
|
230
|
-
|
|
230
|
+
x,
|
|
231
231
|
N,
|
|
232
232
|
O,
|
|
233
233
|
P,
|
|
@@ -237,44 +237,44 @@ React keys must be passed directly to JSX without using spread:
|
|
|
237
237
|
B
|
|
238
238
|
);
|
|
239
239
|
}
|
|
240
|
-
function x
|
|
241
|
-
typeof
|
|
240
|
+
function m(x) {
|
|
241
|
+
typeof x == "object" && x !== null && x.$$typeof === f && x._store && (x._store.validated = 1);
|
|
242
242
|
}
|
|
243
243
|
var u = ke, f = Symbol.for("react.transitional.element"), v = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), w = Symbol.for("react.strict_mode"), h = Symbol.for("react.profiler"), S = Symbol.for("react.consumer"), y = Symbol.for("react.context"), $ = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), z = Symbol.for("react.suspense_list"), R = Symbol.for("react.memo"), A = Symbol.for("react.lazy"), ee = Symbol.for("react.activity"), X = Symbol.for("react.client.reference"), Q = u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, de = Object.prototype.hasOwnProperty, D = Array.isArray, T = console.createTask ? console.createTask : function() {
|
|
244
244
|
return null;
|
|
245
245
|
};
|
|
246
246
|
u = {
|
|
247
|
-
"react-stack-bottom-frame": function(
|
|
248
|
-
return
|
|
247
|
+
"react-stack-bottom-frame": function(x) {
|
|
248
|
+
return x();
|
|
249
249
|
}
|
|
250
250
|
};
|
|
251
251
|
var q, K = {}, V = u["react-stack-bottom-frame"].bind(
|
|
252
252
|
u,
|
|
253
253
|
i
|
|
254
254
|
)(), ve = T(r(i)), U = {};
|
|
255
|
-
Ve.Fragment = g, Ve.jsx = function(
|
|
255
|
+
Ve.Fragment = g, Ve.jsx = function(x, j, L, E, P) {
|
|
256
256
|
var O = 1e4 > Q.recentlyCreatedOwnerStacks++;
|
|
257
257
|
return p(
|
|
258
|
-
|
|
258
|
+
x,
|
|
259
259
|
j,
|
|
260
260
|
L,
|
|
261
261
|
!1,
|
|
262
262
|
E,
|
|
263
263
|
P,
|
|
264
264
|
O ? Error("react-stack-top-frame") : V,
|
|
265
|
-
O ? T(r(
|
|
265
|
+
O ? T(r(x)) : ve
|
|
266
266
|
);
|
|
267
|
-
}, Ve.jsxs = function(
|
|
267
|
+
}, Ve.jsxs = function(x, j, L, E, P) {
|
|
268
268
|
var O = 1e4 > Q.recentlyCreatedOwnerStacks++;
|
|
269
269
|
return p(
|
|
270
|
-
|
|
270
|
+
x,
|
|
271
271
|
j,
|
|
272
272
|
L,
|
|
273
273
|
!0,
|
|
274
274
|
E,
|
|
275
275
|
P,
|
|
276
276
|
O ? Error("react-stack-top-frame") : V,
|
|
277
|
-
O ? T(r(
|
|
277
|
+
O ? T(r(x)) : ve
|
|
278
278
|
);
|
|
279
279
|
};
|
|
280
280
|
}()), Ve;
|
|
@@ -617,7 +617,7 @@ const we = {
|
|
|
617
617
|
fullWidth: c = !1,
|
|
618
618
|
disabled: d = !1,
|
|
619
619
|
roundedFull: p = !1,
|
|
620
|
-
size:
|
|
620
|
+
size: m = "medium",
|
|
621
621
|
type: u = "button",
|
|
622
622
|
autoFocus: f = !1,
|
|
623
623
|
href: v,
|
|
@@ -641,7 +641,7 @@ const we = {
|
|
|
641
641
|
${t === "outlined" && "border"}
|
|
642
642
|
${$}
|
|
643
643
|
${s}
|
|
644
|
-
${
|
|
644
|
+
${m === "small" ? "text-sm h-8 px-3" : m === "large" ? "text-lg h-12 px-6" : "text-base h-10 px-5"}
|
|
645
645
|
${c ? "w-full" : ""}
|
|
646
646
|
${p ? "rounded-full" : "rounded-md"}
|
|
647
647
|
${d ? `${t === "filled" && "!bg-color-gray-300 !text-color-white"} ${t === "outlined" && "!border-color-gray-200 !text-color-gray-300"} cursor-not-allowed hover:bg-color-transparent !text-color-gray-300` : "cursor-pointer"}
|
|
@@ -663,7 +663,7 @@ const we = {
|
|
|
663
663
|
${t === "outlined" && "border"}
|
|
664
664
|
${$}
|
|
665
665
|
${s}
|
|
666
|
-
${
|
|
666
|
+
${m === "small" ? "text-sm h-8 px-3" : m === "large" ? "text-lg h-12 px-6" : "text-base h-10 px-5"}
|
|
667
667
|
${c ? "w-full" : ""}
|
|
668
668
|
${p ? "rounded-full" : "rounded-md"}
|
|
669
669
|
${d ? `${t === "filled" && "!bg-color-gray-300 !text-color-white"} ${t === "outlined" && "!border-color-gray-200 !text-color-gray-300"} cursor-not-allowed hover:bg-color-transparent !text-color-gray-300` : "cursor-pointer"}
|
|
@@ -801,7 +801,7 @@ var Ut;
|
|
|
801
801
|
function sr() {
|
|
802
802
|
if (Ut) return ae;
|
|
803
803
|
Ut = 1;
|
|
804
|
-
var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, l = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112,
|
|
804
|
+
var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, l = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, u = e ? Symbol.for("react.suspense_list") : 60120, f = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, g = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, h = e ? Symbol.for("react.responder") : 60118, S = e ? Symbol.for("react.scope") : 60119;
|
|
805
805
|
function y(b) {
|
|
806
806
|
if (typeof b == "object" && b !== null) {
|
|
807
807
|
var z = b.$$typeof;
|
|
@@ -813,7 +813,7 @@ function sr() {
|
|
|
813
813
|
case r:
|
|
814
814
|
case i:
|
|
815
815
|
case o:
|
|
816
|
-
case
|
|
816
|
+
case m:
|
|
817
817
|
return b;
|
|
818
818
|
default:
|
|
819
819
|
switch (b = b && b.$$typeof, b) {
|
|
@@ -835,7 +835,7 @@ function sr() {
|
|
|
835
835
|
function $(b) {
|
|
836
836
|
return y(b) === d;
|
|
837
837
|
}
|
|
838
|
-
return ae.AsyncMode = c, ae.ConcurrentMode = d, ae.ContextConsumer = s, ae.ContextProvider = l, ae.Element = n, ae.ForwardRef = p, ae.Fragment = r, ae.Lazy = v, ae.Memo = f, ae.Portal = t, ae.Profiler = i, ae.StrictMode = o, ae.Suspense =
|
|
838
|
+
return ae.AsyncMode = c, ae.ConcurrentMode = d, ae.ContextConsumer = s, ae.ContextProvider = l, ae.Element = n, ae.ForwardRef = p, ae.Fragment = r, ae.Lazy = v, ae.Memo = f, ae.Portal = t, ae.Profiler = i, ae.StrictMode = o, ae.Suspense = m, ae.isAsyncMode = function(b) {
|
|
839
839
|
return $(b) || y(b) === c;
|
|
840
840
|
}, ae.isConcurrentMode = $, ae.isContextConsumer = function(b) {
|
|
841
841
|
return y(b) === s;
|
|
@@ -858,9 +858,9 @@ function sr() {
|
|
|
858
858
|
}, ae.isStrictMode = function(b) {
|
|
859
859
|
return y(b) === o;
|
|
860
860
|
}, ae.isSuspense = function(b) {
|
|
861
|
-
return y(b) ===
|
|
861
|
+
return y(b) === m;
|
|
862
862
|
}, ae.isValidElementType = function(b) {
|
|
863
|
-
return typeof b == "string" || typeof b == "function" || b === r || b === d || b === i || b === o || b ===
|
|
863
|
+
return typeof b == "string" || typeof b == "function" || b === r || b === d || b === i || b === o || b === m || b === u || typeof b == "object" && b !== null && (b.$$typeof === v || b.$$typeof === f || b.$$typeof === l || b.$$typeof === s || b.$$typeof === p || b.$$typeof === w || b.$$typeof === h || b.$$typeof === S || b.$$typeof === g);
|
|
864
864
|
}, ae.typeOf = y, ae;
|
|
865
865
|
}
|
|
866
866
|
var le = {};
|
|
@@ -875,10 +875,10 @@ var le = {};
|
|
|
875
875
|
var Xt;
|
|
876
876
|
function cr() {
|
|
877
877
|
return Xt || (Xt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
878
|
-
var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, l = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112,
|
|
878
|
+
var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, l = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, u = e ? Symbol.for("react.suspense_list") : 60120, f = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, g = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, h = e ? Symbol.for("react.responder") : 60118, S = e ? Symbol.for("react.scope") : 60119;
|
|
879
879
|
function y(_) {
|
|
880
880
|
return typeof _ == "string" || typeof _ == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
881
|
-
_ === r || _ === d || _ === i || _ === o || _ ===
|
|
881
|
+
_ === r || _ === d || _ === i || _ === o || _ === m || _ === u || typeof _ == "object" && _ !== null && (_.$$typeof === v || _.$$typeof === f || _.$$typeof === l || _.$$typeof === s || _.$$typeof === p || _.$$typeof === w || _.$$typeof === h || _.$$typeof === S || _.$$typeof === g);
|
|
882
882
|
}
|
|
883
883
|
function $(_) {
|
|
884
884
|
if (typeof _ == "object" && _ !== null) {
|
|
@@ -892,7 +892,7 @@ function cr() {
|
|
|
892
892
|
case r:
|
|
893
893
|
case i:
|
|
894
894
|
case o:
|
|
895
|
-
case
|
|
895
|
+
case m:
|
|
896
896
|
return re;
|
|
897
897
|
default:
|
|
898
898
|
var oe = re && re.$$typeof;
|
|
@@ -912,11 +912,11 @@ function cr() {
|
|
|
912
912
|
}
|
|
913
913
|
}
|
|
914
914
|
}
|
|
915
|
-
var b = c, z = d, R = s, A = l, ee = n, X = p, Q = r, de = v, D = f, T = t, q = i, K = o, V =
|
|
915
|
+
var b = c, z = d, R = s, A = l, ee = n, X = p, Q = r, de = v, D = f, T = t, q = i, K = o, V = m, ve = !1;
|
|
916
916
|
function U(_) {
|
|
917
|
-
return ve || (ve = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),
|
|
917
|
+
return ve || (ve = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), x(_) || $(_) === c;
|
|
918
918
|
}
|
|
919
|
-
function
|
|
919
|
+
function x(_) {
|
|
920
920
|
return $(_) === d;
|
|
921
921
|
}
|
|
922
922
|
function j(_) {
|
|
@@ -950,9 +950,9 @@ function cr() {
|
|
|
950
950
|
return $(_) === o;
|
|
951
951
|
}
|
|
952
952
|
function se(_) {
|
|
953
|
-
return $(_) ===
|
|
953
|
+
return $(_) === m;
|
|
954
954
|
}
|
|
955
|
-
le.AsyncMode = b, le.ConcurrentMode = z, le.ContextConsumer = R, le.ContextProvider = A, le.Element = ee, le.ForwardRef = X, le.Fragment = Q, le.Lazy = de, le.Memo = D, le.Portal = T, le.Profiler = q, le.StrictMode = K, le.Suspense = V, le.isAsyncMode = U, le.isConcurrentMode =
|
|
955
|
+
le.AsyncMode = b, le.ConcurrentMode = z, le.ContextConsumer = R, le.ContextProvider = A, le.Element = ee, le.ForwardRef = X, le.Fragment = Q, le.Lazy = de, le.Memo = D, le.Portal = T, le.Profiler = q, le.StrictMode = K, le.Suspense = V, le.isAsyncMode = U, le.isConcurrentMode = x, le.isContextConsumer = j, le.isContextProvider = L, le.isElement = E, le.isForwardRef = P, le.isFragment = O, le.isLazy = k, le.isMemo = B, le.isPortal = N, le.isProfiler = G, le.isStrictMode = Y, le.isSuspense = se, le.isValidElementType = y, le.typeOf = $;
|
|
956
956
|
}()), le;
|
|
957
957
|
}
|
|
958
958
|
var Kt;
|
|
@@ -999,8 +999,8 @@ function ur() {
|
|
|
999
999
|
return gt = o() ? Object.assign : function(i, l) {
|
|
1000
1000
|
for (var s, c = r(i), d, p = 1; p < arguments.length; p++) {
|
|
1001
1001
|
s = Object(arguments[p]);
|
|
1002
|
-
for (var
|
|
1003
|
-
n.call(s,
|
|
1002
|
+
for (var m in s)
|
|
1003
|
+
n.call(s, m) && (c[m] = s[m]);
|
|
1004
1004
|
if (e) {
|
|
1005
1005
|
d = e(s);
|
|
1006
1006
|
for (var u = 0; u < d.length; u++)
|
|
@@ -1042,7 +1042,7 @@ function pr() {
|
|
|
1042
1042
|
if (process.env.NODE_ENV !== "production") {
|
|
1043
1043
|
for (var p in i)
|
|
1044
1044
|
if (r(i, p)) {
|
|
1045
|
-
var
|
|
1045
|
+
var m;
|
|
1046
1046
|
try {
|
|
1047
1047
|
if (typeof i[p] != "function") {
|
|
1048
1048
|
var u = Error(
|
|
@@ -1050,17 +1050,17 @@ function pr() {
|
|
|
1050
1050
|
);
|
|
1051
1051
|
throw u.name = "Invariant Violation", u;
|
|
1052
1052
|
}
|
|
1053
|
-
|
|
1053
|
+
m = i[p](l, p, c, s, null, n);
|
|
1054
1054
|
} catch (v) {
|
|
1055
|
-
|
|
1055
|
+
m = v;
|
|
1056
1056
|
}
|
|
1057
|
-
if (
|
|
1058
|
-
(c || "React class") + ": type specification of " + s + " `" + p + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof
|
|
1059
|
-
),
|
|
1060
|
-
t[
|
|
1057
|
+
if (m && !(m instanceof Error) && e(
|
|
1058
|
+
(c || "React class") + ": type specification of " + s + " `" + p + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof m + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
1059
|
+
), m instanceof Error && !(m.message in t)) {
|
|
1060
|
+
t[m.message] = !0;
|
|
1061
1061
|
var f = d ? d() : "";
|
|
1062
1062
|
e(
|
|
1063
|
-
"Failed " + s + " type: " +
|
|
1063
|
+
"Failed " + s + " type: " + m.message + (f ?? "")
|
|
1064
1064
|
);
|
|
1065
1065
|
}
|
|
1066
1066
|
}
|
|
@@ -1089,8 +1089,8 @@ function dr() {
|
|
|
1089
1089
|
}
|
|
1090
1090
|
return vt = function(s, c) {
|
|
1091
1091
|
var d = typeof Symbol == "function" && Symbol.iterator, p = "@@iterator";
|
|
1092
|
-
function x
|
|
1093
|
-
var j =
|
|
1092
|
+
function m(x) {
|
|
1093
|
+
var j = x && (d && x[d] || x[p]);
|
|
1094
1094
|
if (typeof j == "function")
|
|
1095
1095
|
return j;
|
|
1096
1096
|
}
|
|
@@ -1115,14 +1115,14 @@ function dr() {
|
|
|
1115
1115
|
shape: de,
|
|
1116
1116
|
exact: D
|
|
1117
1117
|
};
|
|
1118
|
-
function v(
|
|
1119
|
-
return
|
|
1118
|
+
function v(x, j) {
|
|
1119
|
+
return x === j ? x !== 0 || 1 / x === 1 / j : x !== x && j !== j;
|
|
1120
1120
|
}
|
|
1121
|
-
function g(
|
|
1122
|
-
this.message =
|
|
1121
|
+
function g(x, j) {
|
|
1122
|
+
this.message = x, this.data = j && typeof j == "object" ? j : {}, this.stack = "";
|
|
1123
1123
|
}
|
|
1124
1124
|
g.prototype = Error.prototype;
|
|
1125
|
-
function w(
|
|
1125
|
+
function w(x) {
|
|
1126
1126
|
if (process.env.NODE_ENV !== "production")
|
|
1127
1127
|
var j = {}, L = 0;
|
|
1128
1128
|
function E(O, k, B, N, G, Y, se) {
|
|
@@ -1140,19 +1140,19 @@ function dr() {
|
|
|
1140
1140
|
), j[F] = !0, L++);
|
|
1141
1141
|
}
|
|
1142
1142
|
}
|
|
1143
|
-
return k[B] == null ? O ? k[B] === null ? new g("The " + G + " `" + Y + "` is marked as required " + ("in `" + N + "`, but its value is `null`.")) : new g("The " + G + " `" + Y + "` is marked as required in " + ("`" + N + "`, but its value is `undefined`.")) : null :
|
|
1143
|
+
return k[B] == null ? O ? k[B] === null ? new g("The " + G + " `" + Y + "` is marked as required " + ("in `" + N + "`, but its value is `null`.")) : new g("The " + G + " `" + Y + "` is marked as required in " + ("`" + N + "`, but its value is `undefined`.")) : null : x(k, B, N, G, Y);
|
|
1144
1144
|
}
|
|
1145
1145
|
var P = E.bind(null, !1);
|
|
1146
1146
|
return P.isRequired = E.bind(null, !0), P;
|
|
1147
1147
|
}
|
|
1148
|
-
function h(
|
|
1148
|
+
function h(x) {
|
|
1149
1149
|
function j(L, E, P, O, k, B) {
|
|
1150
1150
|
var N = L[E], G = K(N);
|
|
1151
|
-
if (G !==
|
|
1151
|
+
if (G !== x) {
|
|
1152
1152
|
var Y = V(N);
|
|
1153
1153
|
return new g(
|
|
1154
|
-
"Invalid " + O + " `" + k + "` of type " + ("`" + Y + "` supplied to `" + P + "`, expected ") + ("`" +
|
|
1155
|
-
{ expectedType:
|
|
1154
|
+
"Invalid " + O + " `" + k + "` of type " + ("`" + Y + "` supplied to `" + P + "`, expected ") + ("`" + x + "`."),
|
|
1155
|
+
{ expectedType: x }
|
|
1156
1156
|
);
|
|
1157
1157
|
}
|
|
1158
1158
|
return null;
|
|
@@ -1162,9 +1162,9 @@ function dr() {
|
|
|
1162
1162
|
function S() {
|
|
1163
1163
|
return w(l);
|
|
1164
1164
|
}
|
|
1165
|
-
function y(
|
|
1165
|
+
function y(x) {
|
|
1166
1166
|
function j(L, E, P, O, k) {
|
|
1167
|
-
if (typeof
|
|
1167
|
+
if (typeof x != "function")
|
|
1168
1168
|
return new g("Property `" + k + "` of component `" + P + "` has invalid PropType notation inside arrayOf.");
|
|
1169
1169
|
var B = L[E];
|
|
1170
1170
|
if (!Array.isArray(B)) {
|
|
@@ -1172,7 +1172,7 @@ function dr() {
|
|
|
1172
1172
|
return new g("Invalid " + O + " `" + k + "` of type " + ("`" + N + "` supplied to `" + P + "`, expected an array."));
|
|
1173
1173
|
}
|
|
1174
1174
|
for (var G = 0; G < B.length; G++) {
|
|
1175
|
-
var Y =
|
|
1175
|
+
var Y = x(B, G, P, O, k + "[" + G + "]", t);
|
|
1176
1176
|
if (Y instanceof Error)
|
|
1177
1177
|
return Y;
|
|
1178
1178
|
}
|
|
@@ -1181,7 +1181,7 @@ function dr() {
|
|
|
1181
1181
|
return w(j);
|
|
1182
1182
|
}
|
|
1183
1183
|
function $() {
|
|
1184
|
-
function
|
|
1184
|
+
function x(j, L, E, P, O) {
|
|
1185
1185
|
var k = j[L];
|
|
1186
1186
|
if (!s(k)) {
|
|
1187
1187
|
var B = K(k);
|
|
@@ -1189,10 +1189,10 @@ function dr() {
|
|
|
1189
1189
|
}
|
|
1190
1190
|
return null;
|
|
1191
1191
|
}
|
|
1192
|
-
return w(
|
|
1192
|
+
return w(x);
|
|
1193
1193
|
}
|
|
1194
1194
|
function b() {
|
|
1195
|
-
function
|
|
1195
|
+
function x(j, L, E, P, O) {
|
|
1196
1196
|
var k = j[L];
|
|
1197
1197
|
if (!e.isValidElementType(k)) {
|
|
1198
1198
|
var B = K(k);
|
|
@@ -1200,28 +1200,28 @@ function dr() {
|
|
|
1200
1200
|
}
|
|
1201
1201
|
return null;
|
|
1202
1202
|
}
|
|
1203
|
-
return w(
|
|
1203
|
+
return w(x);
|
|
1204
1204
|
}
|
|
1205
|
-
function z(
|
|
1205
|
+
function z(x) {
|
|
1206
1206
|
function j(L, E, P, O, k) {
|
|
1207
|
-
if (!(L[E] instanceof
|
|
1208
|
-
var B =
|
|
1207
|
+
if (!(L[E] instanceof x)) {
|
|
1208
|
+
var B = x.name || u, N = U(L[E]);
|
|
1209
1209
|
return new g("Invalid " + O + " `" + k + "` of type " + ("`" + N + "` supplied to `" + P + "`, expected ") + ("instance of `" + B + "`."));
|
|
1210
1210
|
}
|
|
1211
1211
|
return null;
|
|
1212
1212
|
}
|
|
1213
1213
|
return w(j);
|
|
1214
1214
|
}
|
|
1215
|
-
function R(
|
|
1216
|
-
if (!Array.isArray(
|
|
1215
|
+
function R(x) {
|
|
1216
|
+
if (!Array.isArray(x))
|
|
1217
1217
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
1218
1218
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
1219
1219
|
) : i("Invalid argument supplied to oneOf, expected an array.")), l;
|
|
1220
1220
|
function j(L, E, P, O, k) {
|
|
1221
|
-
for (var B = L[E], N = 0; N <
|
|
1222
|
-
if (v(B,
|
|
1221
|
+
for (var B = L[E], N = 0; N < x.length; N++)
|
|
1222
|
+
if (v(B, x[N]))
|
|
1223
1223
|
return null;
|
|
1224
|
-
var G = JSON.stringify(
|
|
1224
|
+
var G = JSON.stringify(x, function(se, _) {
|
|
1225
1225
|
var F = V(_);
|
|
1226
1226
|
return F === "symbol" ? String(_) : _;
|
|
1227
1227
|
});
|
|
@@ -1229,16 +1229,16 @@ function dr() {
|
|
|
1229
1229
|
}
|
|
1230
1230
|
return w(j);
|
|
1231
1231
|
}
|
|
1232
|
-
function A(
|
|
1232
|
+
function A(x) {
|
|
1233
1233
|
function j(L, E, P, O, k) {
|
|
1234
|
-
if (typeof
|
|
1234
|
+
if (typeof x != "function")
|
|
1235
1235
|
return new g("Property `" + k + "` of component `" + P + "` has invalid PropType notation inside objectOf.");
|
|
1236
1236
|
var B = L[E], N = K(B);
|
|
1237
1237
|
if (N !== "object")
|
|
1238
1238
|
return new g("Invalid " + O + " `" + k + "` of type " + ("`" + N + "` supplied to `" + P + "`, expected an object."));
|
|
1239
1239
|
for (var G in B)
|
|
1240
1240
|
if (r(B, G)) {
|
|
1241
|
-
var Y =
|
|
1241
|
+
var Y = x(B, G, P, O, k + "." + G, t);
|
|
1242
1242
|
if (Y instanceof Error)
|
|
1243
1243
|
return Y;
|
|
1244
1244
|
}
|
|
@@ -1246,19 +1246,19 @@ function dr() {
|
|
|
1246
1246
|
}
|
|
1247
1247
|
return w(j);
|
|
1248
1248
|
}
|
|
1249
|
-
function ee(
|
|
1250
|
-
if (!Array.isArray(
|
|
1249
|
+
function ee(x) {
|
|
1250
|
+
if (!Array.isArray(x))
|
|
1251
1251
|
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), l;
|
|
1252
|
-
for (var j = 0; j <
|
|
1253
|
-
var L =
|
|
1252
|
+
for (var j = 0; j < x.length; j++) {
|
|
1253
|
+
var L = x[j];
|
|
1254
1254
|
if (typeof L != "function")
|
|
1255
1255
|
return i(
|
|
1256
1256
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ve(L) + " at index " + j + "."
|
|
1257
1257
|
), l;
|
|
1258
1258
|
}
|
|
1259
1259
|
function E(P, O, k, B, N) {
|
|
1260
|
-
for (var G = [], Y = 0; Y <
|
|
1261
|
-
var se =
|
|
1260
|
+
for (var G = [], Y = 0; Y < x.length; Y++) {
|
|
1261
|
+
var se = x[Y], _ = se(P, O, k, B, N, t);
|
|
1262
1262
|
if (_ == null)
|
|
1263
1263
|
return null;
|
|
1264
1264
|
_.data && r(_.data, "expectedType") && G.push(_.data.expectedType);
|
|
@@ -1269,23 +1269,23 @@ function dr() {
|
|
|
1269
1269
|
return w(E);
|
|
1270
1270
|
}
|
|
1271
1271
|
function X() {
|
|
1272
|
-
function
|
|
1272
|
+
function x(j, L, E, P, O) {
|
|
1273
1273
|
return T(j[L]) ? null : new g("Invalid " + P + " `" + O + "` supplied to " + ("`" + E + "`, expected a ReactNode."));
|
|
1274
1274
|
}
|
|
1275
|
-
return w(
|
|
1275
|
+
return w(x);
|
|
1276
1276
|
}
|
|
1277
|
-
function Q(
|
|
1277
|
+
function Q(x, j, L, E, P) {
|
|
1278
1278
|
return new g(
|
|
1279
|
-
(
|
|
1279
|
+
(x || "React class") + ": " + j + " type `" + L + "." + E + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + P + "`."
|
|
1280
1280
|
);
|
|
1281
1281
|
}
|
|
1282
|
-
function de(
|
|
1282
|
+
function de(x) {
|
|
1283
1283
|
function j(L, E, P, O, k) {
|
|
1284
1284
|
var B = L[E], N = K(B);
|
|
1285
1285
|
if (N !== "object")
|
|
1286
1286
|
return new g("Invalid " + O + " `" + k + "` of type `" + N + "` " + ("supplied to `" + P + "`, expected `object`."));
|
|
1287
|
-
for (var G in
|
|
1288
|
-
var Y =
|
|
1287
|
+
for (var G in x) {
|
|
1288
|
+
var Y = x[G];
|
|
1289
1289
|
if (typeof Y != "function")
|
|
1290
1290
|
return Q(P, O, k, G, V(Y));
|
|
1291
1291
|
var se = Y(B, G, P, O, k + "." + G, t);
|
|
@@ -1296,20 +1296,20 @@ function dr() {
|
|
|
1296
1296
|
}
|
|
1297
1297
|
return w(j);
|
|
1298
1298
|
}
|
|
1299
|
-
function D(
|
|
1299
|
+
function D(x) {
|
|
1300
1300
|
function j(L, E, P, O, k) {
|
|
1301
1301
|
var B = L[E], N = K(B);
|
|
1302
1302
|
if (N !== "object")
|
|
1303
1303
|
return new g("Invalid " + O + " `" + k + "` of type `" + N + "` " + ("supplied to `" + P + "`, expected `object`."));
|
|
1304
|
-
var G = n({}, L[E],
|
|
1304
|
+
var G = n({}, L[E], x);
|
|
1305
1305
|
for (var Y in G) {
|
|
1306
|
-
var se =
|
|
1307
|
-
if (r(
|
|
1306
|
+
var se = x[Y];
|
|
1307
|
+
if (r(x, Y) && typeof se != "function")
|
|
1308
1308
|
return Q(P, O, k, Y, V(se));
|
|
1309
1309
|
if (!se)
|
|
1310
1310
|
return new g(
|
|
1311
1311
|
"Invalid " + O + " `" + k + "` key `" + Y + "` supplied to `" + P + "`.\nBad object: " + JSON.stringify(L[E], null, " ") + `
|
|
1312
|
-
Valid keys: ` + JSON.stringify(Object.keys(
|
|
1312
|
+
Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
|
|
1313
1313
|
);
|
|
1314
1314
|
var _ = se(B, Y, P, O, k + "." + Y, t);
|
|
1315
1315
|
if (_)
|
|
@@ -1319,23 +1319,23 @@ Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
|
|
|
1319
1319
|
}
|
|
1320
1320
|
return w(j);
|
|
1321
1321
|
}
|
|
1322
|
-
function T(
|
|
1323
|
-
switch (typeof
|
|
1322
|
+
function T(x) {
|
|
1323
|
+
switch (typeof x) {
|
|
1324
1324
|
case "number":
|
|
1325
1325
|
case "string":
|
|
1326
1326
|
case "undefined":
|
|
1327
1327
|
return !0;
|
|
1328
1328
|
case "boolean":
|
|
1329
|
-
return !
|
|
1329
|
+
return !x;
|
|
1330
1330
|
case "object":
|
|
1331
|
-
if (Array.isArray(
|
|
1332
|
-
return
|
|
1333
|
-
if (
|
|
1331
|
+
if (Array.isArray(x))
|
|
1332
|
+
return x.every(T);
|
|
1333
|
+
if (x === null || s(x))
|
|
1334
1334
|
return !0;
|
|
1335
|
-
var j = x
|
|
1335
|
+
var j = m(x);
|
|
1336
1336
|
if (j) {
|
|
1337
|
-
var L = j.call(
|
|
1338
|
-
if (j !==
|
|
1337
|
+
var L = j.call(x), E;
|
|
1338
|
+
if (j !== x.entries) {
|
|
1339
1339
|
for (; !(E = L.next()).done; )
|
|
1340
1340
|
if (!T(E.value))
|
|
1341
1341
|
return !1;
|
|
@@ -1352,27 +1352,27 @@ Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
|
|
|
1352
1352
|
return !1;
|
|
1353
1353
|
}
|
|
1354
1354
|
}
|
|
1355
|
-
function q(
|
|
1356
|
-
return
|
|
1355
|
+
function q(x, j) {
|
|
1356
|
+
return x === "symbol" ? !0 : j ? j["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && j instanceof Symbol : !1;
|
|
1357
1357
|
}
|
|
1358
|
-
function K(
|
|
1359
|
-
var j = typeof
|
|
1360
|
-
return Array.isArray(
|
|
1358
|
+
function K(x) {
|
|
1359
|
+
var j = typeof x;
|
|
1360
|
+
return Array.isArray(x) ? "array" : x instanceof RegExp ? "object" : q(j, x) ? "symbol" : j;
|
|
1361
1361
|
}
|
|
1362
|
-
function V(
|
|
1363
|
-
if (typeof
|
|
1364
|
-
return "" +
|
|
1365
|
-
var j = K(
|
|
1362
|
+
function V(x) {
|
|
1363
|
+
if (typeof x > "u" || x === null)
|
|
1364
|
+
return "" + x;
|
|
1365
|
+
var j = K(x);
|
|
1366
1366
|
if (j === "object") {
|
|
1367
|
-
if (
|
|
1367
|
+
if (x instanceof Date)
|
|
1368
1368
|
return "date";
|
|
1369
|
-
if (
|
|
1369
|
+
if (x instanceof RegExp)
|
|
1370
1370
|
return "regexp";
|
|
1371
1371
|
}
|
|
1372
1372
|
return j;
|
|
1373
1373
|
}
|
|
1374
|
-
function ve(
|
|
1375
|
-
var j = V(
|
|
1374
|
+
function ve(x) {
|
|
1375
|
+
var j = V(x);
|
|
1376
1376
|
switch (j) {
|
|
1377
1377
|
case "array":
|
|
1378
1378
|
case "object":
|
|
@@ -1385,8 +1385,8 @@ Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
|
|
|
1385
1385
|
return j;
|
|
1386
1386
|
}
|
|
1387
1387
|
}
|
|
1388
|
-
function U(
|
|
1389
|
-
return !
|
|
1388
|
+
function U(x) {
|
|
1389
|
+
return !x.constructor || !x.constructor.name ? u : x.constructor.name;
|
|
1390
1390
|
}
|
|
1391
1391
|
return f.checkPropTypes = o, f.resetWarningCache = o.resetWarningCache, f.PropTypes = f, f;
|
|
1392
1392
|
}, vt;
|
|
@@ -1401,8 +1401,8 @@ function gr() {
|
|
|
1401
1401
|
function t() {
|
|
1402
1402
|
}
|
|
1403
1403
|
return t.resetWarningCache = n, ht = function() {
|
|
1404
|
-
function r(l, s, c, d, p,
|
|
1405
|
-
if (
|
|
1404
|
+
function r(l, s, c, d, p, m) {
|
|
1405
|
+
if (m !== e) {
|
|
1406
1406
|
var u = new Error(
|
|
1407
1407
|
"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"
|
|
1408
1408
|
);
|
|
@@ -1461,15 +1461,15 @@ function Pe(e, n, t, r) {
|
|
|
1461
1461
|
function s(p) {
|
|
1462
1462
|
try {
|
|
1463
1463
|
d(r.next(p));
|
|
1464
|
-
} catch (
|
|
1465
|
-
l(
|
|
1464
|
+
} catch (m) {
|
|
1465
|
+
l(m);
|
|
1466
1466
|
}
|
|
1467
1467
|
}
|
|
1468
1468
|
function c(p) {
|
|
1469
1469
|
try {
|
|
1470
1470
|
d(r.throw(p));
|
|
1471
|
-
} catch (
|
|
1472
|
-
l(
|
|
1471
|
+
} catch (m) {
|
|
1472
|
+
l(m);
|
|
1473
1473
|
}
|
|
1474
1474
|
}
|
|
1475
1475
|
function d(p) {
|
|
@@ -2969,8 +2969,8 @@ function Le(e) {
|
|
|
2969
2969
|
function qr(e) {
|
|
2970
2970
|
var n = e.files, t = e.accept, r = e.minSize, o = e.maxSize, i = e.multiple, l = e.maxFiles, s = e.validator;
|
|
2971
2971
|
return !i && n.length > 1 || i && l >= 1 && n.length > l ? !1 : n.every(function(c) {
|
|
2972
|
-
var d = zn(c, t), p = Be(d, 1),
|
|
2973
|
-
return
|
|
2972
|
+
var d = zn(c, t), p = Be(d, 1), m = p[0], u = Tn(c, r, o), f = Be(u, 1), v = f[0], g = s ? s(c) : null;
|
|
2973
|
+
return m && v && !g;
|
|
2974
2974
|
});
|
|
2975
2975
|
}
|
|
2976
2976
|
function rt(e) {
|
|
@@ -3350,7 +3350,7 @@ var Nt = {
|
|
|
3350
3350
|
fileRejections: []
|
|
3351
3351
|
};
|
|
3352
3352
|
function Hn() {
|
|
3353
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = fe(fe({}, Vn), e), t = n.accept, r = n.disabled, o = n.getFilesFromEvent, i = n.maxSize, l = n.minSize, s = n.multiple, c = n.maxFiles, d = n.onDragEnter, p = n.onDragLeave,
|
|
3353
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = fe(fe({}, Vn), e), t = n.accept, r = n.disabled, o = n.getFilesFromEvent, i = n.maxSize, l = n.minSize, s = n.multiple, c = n.maxFiles, d = n.onDragEnter, p = n.onDragLeave, m = n.onDragOver, u = n.onDrop, f = n.onDropAccepted, v = n.onDropRejected, g = n.onFileDialogCancel, w = n.onFileDialogOpen, h = n.useFsAccessApi, S = n.autoFocus, y = n.preventDropOnDocument, $ = n.noClick, b = n.noKeyboard, z = n.noDrag, R = n.noDragEventsBubbling, A = n.onError, ee = n.validator, X = Ae(function() {
|
|
3354
3354
|
return Ur(t);
|
|
3355
3355
|
}, [t]), Q = Ae(function() {
|
|
3356
3356
|
return Wr(t);
|
|
@@ -3358,7 +3358,7 @@ function Hn() {
|
|
|
3358
3358
|
return typeof w == "function" ? w : vn;
|
|
3359
3359
|
}, [w]), D = Ae(function() {
|
|
3360
3360
|
return typeof g == "function" ? g : vn;
|
|
3361
|
-
}, [g]), T = me(null), q = me(null), K = tr(uo, Nt), V = bt(K, 2), ve = V[0], U = V[1],
|
|
3361
|
+
}, [g]), T = me(null), q = me(null), K = tr(uo, Nt), V = bt(K, 2), ve = V[0], U = V[1], x = ve.isFocused, j = ve.isFileDialogActive, L = me(typeof window < "u" && window.isSecureContext && h && Zr()), E = function() {
|
|
3362
3362
|
!L.current && j && setTimeout(function() {
|
|
3363
3363
|
if (q.current) {
|
|
3364
3364
|
var I = q.current.files;
|
|
@@ -3416,8 +3416,8 @@ function Hn() {
|
|
|
3416
3416
|
M.dataTransfer.dropEffect = "copy";
|
|
3417
3417
|
} catch {
|
|
3418
3418
|
}
|
|
3419
|
-
return I &&
|
|
3420
|
-
}, [
|
|
3419
|
+
return I && m && m(M), !1;
|
|
3420
|
+
}, [m, R]), G = ce(function(M) {
|
|
3421
3421
|
M.preventDefault(), M.persist(), Se(M);
|
|
3422
3422
|
var I = P.current.filter(function(xe) {
|
|
3423
3423
|
return T.current && T.current.contains(xe);
|
|
@@ -3552,7 +3552,7 @@ function Hn() {
|
|
|
3552
3552
|
};
|
|
3553
3553
|
}, [q, t, s, se, r]);
|
|
3554
3554
|
return fe(fe({}, ve), {}, {
|
|
3555
|
-
isFocused:
|
|
3555
|
+
isFocused: x && !r,
|
|
3556
3556
|
getRootProps: C,
|
|
3557
3557
|
getInputProps: he,
|
|
3558
3558
|
rootRef: T,
|
|
@@ -3615,7 +3615,7 @@ const Ti = ({
|
|
|
3615
3615
|
subLabel: c = "Maximum size: 2 MB",
|
|
3616
3616
|
icon: d = /* @__PURE__ */ a.jsx("svg", { className: "size-4", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ a.jsx("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" }) }),
|
|
3617
3617
|
wrapperClass: p = "",
|
|
3618
|
-
iconClass:
|
|
3618
|
+
iconClass: m = "",
|
|
3619
3619
|
labelClass: u = "",
|
|
3620
3620
|
subLabelClass: f = "",
|
|
3621
3621
|
showList: v = !0,
|
|
@@ -3688,7 +3688,7 @@ const Ti = ({
|
|
|
3688
3688
|
className: "flex flex-col items-center justify-center text-center px-6 pt-6 pb-4 cursor-pointer",
|
|
3689
3689
|
children: [
|
|
3690
3690
|
/* @__PURE__ */ a.jsx("input", { ...X() }),
|
|
3691
|
-
/* @__PURE__ */ a.jsx("div", { className: `text-4xl mb-2 ${
|
|
3691
|
+
/* @__PURE__ */ a.jsx("div", { className: `text-4xl mb-2 ${m}`, children: d }),
|
|
3692
3692
|
/* @__PURE__ */ a.jsx("p", { className: `text-sm font-medium ${u}`, children: s }),
|
|
3693
3693
|
c && /* @__PURE__ */ a.jsx("p", { className: `text-xs mt-1 ${f}`, children: c })
|
|
3694
3694
|
]
|
|
@@ -3708,7 +3708,7 @@ const Ti = ({
|
|
|
3708
3708
|
className: "flex items-center justify-between bg-color-white rounded-md px-4 py-2 shadow-sm",
|
|
3709
3709
|
children: [
|
|
3710
3710
|
/* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
3711
|
-
w && /* @__PURE__ */ a.jsx("div", { className: "w-10 h-10 rounded bg-color-gray-100 overflow-hidden
|
|
3711
|
+
w && /* @__PURE__ */ a.jsx("div", { className: "w-10 h-10 rounded bg-color-gray-100 overflow-hidden shrink-0", children: /* @__PURE__ */ a.jsx(
|
|
3712
3712
|
"img",
|
|
3713
3713
|
{
|
|
3714
3714
|
src: D.type.startsWith("image/") ? URL.createObjectURL(D) : "https://img.icons8.com/ios-filled/50/pdf-2.png",
|
|
@@ -3814,7 +3814,7 @@ const go = {
|
|
|
3814
3814
|
variant: c = "outlined",
|
|
3815
3815
|
rounded: d = "medium",
|
|
3816
3816
|
...p
|
|
3817
|
-
},
|
|
3817
|
+
}, m) => {
|
|
3818
3818
|
const u = me([]), f = (g, w) => {
|
|
3819
3819
|
var y;
|
|
3820
3820
|
const h = g.target.value.replace(/[^0-9]/g, "").slice(0, 1);
|
|
@@ -3866,44 +3866,46 @@ const vo = {
|
|
|
3866
3866
|
({
|
|
3867
3867
|
placeholder: e,
|
|
3868
3868
|
value: n,
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3869
|
+
defaultValue: t,
|
|
3870
|
+
onChange: r,
|
|
3871
|
+
type: o = "text",
|
|
3872
|
+
inputMode: i = "text",
|
|
3873
|
+
className: l = "",
|
|
3874
|
+
inputClass: s = "",
|
|
3875
|
+
iconStyle: c = "",
|
|
3876
|
+
startIcon: d,
|
|
3877
|
+
endIcon: p,
|
|
3878
|
+
error: m,
|
|
3879
|
+
maxLength: u,
|
|
3880
|
+
label: f,
|
|
3881
|
+
labelClass: v = "",
|
|
3882
|
+
variant: g = "outlined",
|
|
3883
|
+
size: w = "medium",
|
|
3884
|
+
...h
|
|
3885
|
+
}, S) => {
|
|
3886
|
+
const y = m ? "border-color-red-500 focus-within:ring-color-red-500" : "border-color-gray-200", $ = m ? "text-color-red-500" : c;
|
|
3886
3887
|
return /* @__PURE__ */ a.jsxs("div", { className: "w-full", children: [
|
|
3887
|
-
|
|
3888
|
-
/* @__PURE__ */ a.jsxs("div", { className: `flex items-center w-full rounded-md border focus-within:ring-1 ${
|
|
3889
|
-
|
|
3888
|
+
f && /* @__PURE__ */ a.jsx("label", { className: `text-sm font-medium text-color-gray-700 mb-1 block ${v}`, children: f }),
|
|
3889
|
+
/* @__PURE__ */ a.jsxs("div", { className: `flex items-center w-full rounded-md border focus-within:ring-1 ${y} ${ho[g]} ${l}`, children: [
|
|
3890
|
+
d && /* @__PURE__ */ a.jsx("span", { className: `pl-3 ${$}`, children: d }),
|
|
3890
3891
|
/* @__PURE__ */ a.jsx(
|
|
3891
3892
|
"input",
|
|
3892
3893
|
{
|
|
3893
|
-
...
|
|
3894
|
-
ref:
|
|
3895
|
-
type:
|
|
3896
|
-
inputMode:
|
|
3894
|
+
...h,
|
|
3895
|
+
ref: S,
|
|
3896
|
+
type: o,
|
|
3897
|
+
inputMode: i,
|
|
3897
3898
|
placeholder: e,
|
|
3898
|
-
defaultValue:
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
|
|
3899
|
+
defaultValue: t,
|
|
3900
|
+
value: n,
|
|
3901
|
+
maxLength: u,
|
|
3902
|
+
onChange: r,
|
|
3903
|
+
className: `grow outline-0 w-full font-medium placeholder:font-normal bg-color-transparent ${vo[w]} ${s}`
|
|
3902
3904
|
}
|
|
3903
3905
|
),
|
|
3904
|
-
|
|
3906
|
+
p && /* @__PURE__ */ a.jsx("span", { className: `pr-3 ${$}`, children: p })
|
|
3905
3907
|
] }),
|
|
3906
|
-
|
|
3908
|
+
m && /* @__PURE__ */ a.jsx("p", { className: "text-color-red-500 text-xs mt-1", children: m })
|
|
3907
3909
|
] });
|
|
3908
3910
|
}
|
|
3909
3911
|
);
|
|
@@ -3942,10 +3944,10 @@ const Bn = ({
|
|
|
3942
3944
|
}) => {
|
|
3943
3945
|
var d;
|
|
3944
3946
|
const s = {
|
|
3945
|
-
small: "
|
|
3946
|
-
medium: "
|
|
3947
|
-
large: "
|
|
3948
|
-
"extra-large": "
|
|
3947
|
+
small: "size-8 text-sm",
|
|
3948
|
+
medium: "size-10 text-base",
|
|
3949
|
+
large: "size-14 text-lg",
|
|
3950
|
+
"extra-large": "size-20 text-xl"
|
|
3949
3951
|
}, c = {
|
|
3950
3952
|
circle: "rounded-full",
|
|
3951
3953
|
rounded: "rounded-md",
|
|
@@ -3978,7 +3980,7 @@ const Bn = ({
|
|
|
3978
3980
|
...d
|
|
3979
3981
|
}) => {
|
|
3980
3982
|
var f;
|
|
3981
|
-
const p = me(null),
|
|
3983
|
+
const p = me(null), m = (v) => {
|
|
3982
3984
|
const g = p.current;
|
|
3983
3985
|
if (!g) return;
|
|
3984
3986
|
const w = document.createElement("span"), h = g.getBoundingClientRect(), S = Math.max(h.width, h.height);
|
|
@@ -3990,7 +3992,7 @@ const Bn = ({
|
|
|
3990
3992
|
ref: p,
|
|
3991
3993
|
type: "button",
|
|
3992
3994
|
disabled: i,
|
|
3993
|
-
onClick:
|
|
3995
|
+
onClick: m,
|
|
3994
3996
|
className: `relative overflow-hidden flex items-center justify-center gap-1 transition-all focus:outline-0
|
|
3995
3997
|
${u}
|
|
3996
3998
|
${e === "outlined" && "border"}
|
|
@@ -4024,12 +4026,12 @@ const Bn = ({
|
|
|
4024
4026
|
href: c,
|
|
4025
4027
|
target: d = "_self",
|
|
4026
4028
|
avatar: p,
|
|
4027
|
-
icon:
|
|
4029
|
+
icon: m
|
|
4028
4030
|
}) => {
|
|
4029
4031
|
var h, S;
|
|
4030
4032
|
const u = (h = we[n]) == null ? void 0 : h.filled, f = (S = we[n]) == null ? void 0 : S.outline, v = bo[r], g = `inline-flex items-center rounded-full font-medium leading-none ${t === "outlined" ? `border ${f}` : u} ${v} ${i ? "cursor-pointer transition hover:opacity-80" : ""}`.trim(), w = /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
4031
4033
|
p && /* @__PURE__ */ a.jsx(Bn, { ...typeof p == "object" ? p : {}, className: `-ml-1 mr-1 ${hn[r]}` }),
|
|
4032
|
-
|
|
4034
|
+
m && /* @__PURE__ */ a.jsx("span", { className: "mr-1 -ml-1", children: m }),
|
|
4033
4035
|
/* @__PURE__ */ a.jsx("span", { children: e }),
|
|
4034
4036
|
l && /* @__PURE__ */ a.jsx(
|
|
4035
4037
|
_e,
|
|
@@ -4101,7 +4103,7 @@ const Bn = ({
|
|
|
4101
4103
|
activeLabelClass: c = "",
|
|
4102
4104
|
separatorClass: d = "",
|
|
4103
4105
|
onChange: p
|
|
4104
|
-
}) => /* @__PURE__ */ a.jsx("div", { className: `flex items-center ${t}`, children: e.map((
|
|
4106
|
+
}) => /* @__PURE__ */ a.jsx("div", { className: `flex items-center ${t}`, children: e.map((m, u) => {
|
|
4105
4107
|
const f = u === n, v = u < n;
|
|
4106
4108
|
return /* @__PURE__ */ a.jsxs(ke.Fragment, { children: [
|
|
4107
4109
|
/* @__PURE__ */ a.jsxs(
|
|
@@ -4118,7 +4120,7 @@ const Bn = ({
|
|
|
4118
4120
|
children: v ? /* @__PURE__ */ a.jsx("svg", { className: `size-5 ${o}`, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ a.jsx("path", { d: "M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z" }) }) : u + 1
|
|
4119
4121
|
}
|
|
4120
4122
|
),
|
|
4121
|
-
/* @__PURE__ */ a.jsx("span", { className: `text-sm ${f ? `text-color-blue-600 ${c}` : `text-color-gray-600 ${s}`}`, children:
|
|
4123
|
+
/* @__PURE__ */ a.jsx("span", { className: `text-sm ${f ? `text-color-blue-600 ${c}` : `text-color-gray-600 ${s}`}`, children: m.label })
|
|
4122
4124
|
]
|
|
4123
4125
|
}
|
|
4124
4126
|
),
|
|
@@ -4168,17 +4170,17 @@ function Z(e, n, t) {
|
|
|
4168
4170
|
let l;
|
|
4169
4171
|
t.key && t.debug && (l = Date.now());
|
|
4170
4172
|
const s = e(i);
|
|
4171
|
-
if (!(s.length !== r.length || s.some((p,
|
|
4173
|
+
if (!(s.length !== r.length || s.some((p, m) => r[m] !== p)))
|
|
4172
4174
|
return o;
|
|
4173
4175
|
r = s;
|
|
4174
4176
|
let d;
|
|
4175
4177
|
if (t.key && t.debug && (d = Date.now()), o = n(...s), t == null || t.onChange == null || t.onChange(o), t.key && t.debug && t != null && t.debug()) {
|
|
4176
|
-
const p = Math.round((Date.now() - l) * 100) / 100,
|
|
4178
|
+
const p = Math.round((Date.now() - l) * 100) / 100, m = Math.round((Date.now() - d) * 100) / 100, u = m / 16, f = (v, g) => {
|
|
4177
4179
|
for (v = String(v); v.length < g; )
|
|
4178
4180
|
v = " " + v;
|
|
4179
4181
|
return v;
|
|
4180
4182
|
};
|
|
4181
|
-
console.info(`%c⏱ ${f(
|
|
4183
|
+
console.info(`%c⏱ ${f(m, 5)} /${f(p, 5)} ms`, `
|
|
4182
4184
|
font-size: .6rem;
|
|
4183
4185
|
font-weight: bold;
|
|
4184
4186
|
color: hsl(${Math.max(0, Math.min(120 - 120 * u, 120))}deg 100% 31%);`, t == null ? void 0 : t.key);
|
|
@@ -4235,7 +4237,7 @@ function So(e, n, t, r) {
|
|
|
4235
4237
|
return f;
|
|
4236
4238
|
} : p = (u) => u[s.accessorKey]), !d)
|
|
4237
4239
|
throw process.env.NODE_ENV !== "production" ? new Error(s.accessorFn ? "Columns require an id when using an accessorFn" : "Columns require an id when using a non-string header") : new Error();
|
|
4238
|
-
let
|
|
4240
|
+
let m = {
|
|
4239
4241
|
id: `${String(d)}`,
|
|
4240
4242
|
accessorFn: p,
|
|
4241
4243
|
parent: r,
|
|
@@ -4244,20 +4246,20 @@ function So(e, n, t, r) {
|
|
|
4244
4246
|
columns: [],
|
|
4245
4247
|
getFlatColumns: Z(() => [!0], () => {
|
|
4246
4248
|
var u;
|
|
4247
|
-
return [
|
|
4249
|
+
return [m, ...(u = m.columns) == null ? void 0 : u.flatMap((f) => f.getFlatColumns())];
|
|
4248
4250
|
}, W(e.options, "debugColumns", "column.getFlatColumns")),
|
|
4249
4251
|
getLeafColumns: Z(() => [e._getOrderColumnsFn()], (u) => {
|
|
4250
4252
|
var f;
|
|
4251
|
-
if ((f =
|
|
4252
|
-
let v =
|
|
4253
|
+
if ((f = m.columns) != null && f.length) {
|
|
4254
|
+
let v = m.columns.flatMap((g) => g.getLeafColumns());
|
|
4253
4255
|
return u(v);
|
|
4254
4256
|
}
|
|
4255
|
-
return [
|
|
4257
|
+
return [m];
|
|
4256
4258
|
}, W(e.options, "debugColumns", "column.getLeafColumns"))
|
|
4257
4259
|
};
|
|
4258
4260
|
for (const u of e._features)
|
|
4259
|
-
u.createColumn == null || u.createColumn(
|
|
4260
|
-
return
|
|
4261
|
+
u.createColumn == null || u.createColumn(m, e);
|
|
4262
|
+
return m;
|
|
4261
4263
|
}
|
|
4262
4264
|
const be = "debugHeaders";
|
|
4263
4265
|
function wn(e, n, t) {
|
|
@@ -4293,7 +4295,7 @@ const $o = {
|
|
|
4293
4295
|
createTable: (e) => {
|
|
4294
4296
|
e.getHeaderGroups = Z(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, r, o) => {
|
|
4295
4297
|
var i, l;
|
|
4296
|
-
const s = (i = r == null ? void 0 : r.map((
|
|
4298
|
+
const s = (i = r == null ? void 0 : r.map((m) => t.find((u) => u.id === m)).filter(Boolean)) != null ? i : [], c = (l = o == null ? void 0 : o.map((m) => t.find((u) => u.id === m)).filter(Boolean)) != null ? l : [], d = t.filter((m) => !(r != null && r.includes(m.id)) && !(o != null && o.includes(m.id)));
|
|
4297
4299
|
return Je(n, [...s, ...d, ...c], e);
|
|
4298
4300
|
}, W(e.options, be, "getHeaderGroups")), e.getCenterHeaderGroups = Z(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, r, o) => (t = t.filter((i) => !(r != null && r.includes(i.id)) && !(o != null && o.includes(i.id))), Je(n, t, e, "center")), W(e.options, be, "getCenterHeaderGroups")), e.getLeftHeaderGroups = Z(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left], (n, t, r) => {
|
|
4299
4301
|
var o;
|
|
@@ -4357,9 +4359,9 @@ function Je(e, n, t, r) {
|
|
|
4357
4359
|
index: f
|
|
4358
4360
|
}));
|
|
4359
4361
|
d(p, l - 1), c.reverse();
|
|
4360
|
-
const
|
|
4362
|
+
const m = (u) => u.filter((v) => v.column.getIsVisible()).map((v) => {
|
|
4361
4363
|
let g = 0, w = 0, h = [0];
|
|
4362
|
-
v.subHeaders && v.subHeaders.length ? (h = [],
|
|
4364
|
+
v.subHeaders && v.subHeaders.length ? (h = [], m(v.subHeaders).forEach((y) => {
|
|
4363
4365
|
let {
|
|
4364
4366
|
colSpan: $,
|
|
4365
4367
|
rowSpan: b
|
|
@@ -4372,7 +4374,7 @@ function Je(e, n, t, r) {
|
|
|
4372
4374
|
rowSpan: w
|
|
4373
4375
|
};
|
|
4374
4376
|
});
|
|
4375
|
-
return
|
|
4377
|
+
return m((o = (i = c[0]) == null ? void 0 : i.headers) != null ? o : []), c;
|
|
4376
4378
|
}
|
|
4377
4379
|
const Ro = (e, n, t, r, o, i, l) => {
|
|
4378
4380
|
let s = {
|
|
@@ -4745,20 +4747,20 @@ const Io = {
|
|
|
4745
4747
|
if (t === "right") {
|
|
4746
4748
|
var s, c;
|
|
4747
4749
|
return {
|
|
4748
|
-
left: ((s = o == null ? void 0 : o.left) != null ? s : []).filter((
|
|
4749
|
-
right: [...((c = o == null ? void 0 : o.right) != null ? c : []).filter((
|
|
4750
|
+
left: ((s = o == null ? void 0 : o.left) != null ? s : []).filter((m) => !(r != null && r.includes(m))),
|
|
4751
|
+
right: [...((c = o == null ? void 0 : o.right) != null ? c : []).filter((m) => !(r != null && r.includes(m))), ...r]
|
|
4750
4752
|
};
|
|
4751
4753
|
}
|
|
4752
4754
|
if (t === "left") {
|
|
4753
4755
|
var d, p;
|
|
4754
4756
|
return {
|
|
4755
|
-
left: [...((d = o == null ? void 0 : o.left) != null ? d : []).filter((
|
|
4756
|
-
right: ((p = o == null ? void 0 : o.right) != null ? p : []).filter((
|
|
4757
|
+
left: [...((d = o == null ? void 0 : o.left) != null ? d : []).filter((m) => !(r != null && r.includes(m))), ...r],
|
|
4758
|
+
right: ((p = o == null ? void 0 : o.right) != null ? p : []).filter((m) => !(r != null && r.includes(m)))
|
|
4757
4759
|
};
|
|
4758
4760
|
}
|
|
4759
4761
|
return {
|
|
4760
|
-
left: ((i = o == null ? void 0 : o.left) != null ? i : []).filter((
|
|
4761
|
-
right: ((l = o == null ? void 0 : o.right) != null ? l : []).filter((
|
|
4762
|
+
left: ((i = o == null ? void 0 : o.left) != null ? i : []).filter((m) => !(r != null && r.includes(m))),
|
|
4763
|
+
right: ((l = o == null ? void 0 : o.right) != null ? l : []).filter((m) => !(r != null && r.includes(m)))
|
|
4762
4764
|
};
|
|
4763
4765
|
});
|
|
4764
4766
|
}, e.getCanPin = () => e.getLeafColumns().some((r) => {
|
|
@@ -4886,7 +4888,7 @@ const Io = {
|
|
|
4886
4888
|
...y,
|
|
4887
4889
|
...d
|
|
4888
4890
|
})));
|
|
4889
|
-
},
|
|
4891
|
+
}, m = (h) => p("move", h), u = (h) => {
|
|
4890
4892
|
p("end", h), n.setColumnSizingInfo((S) => ({
|
|
4891
4893
|
...S,
|
|
4892
4894
|
isResizingColumn: !1,
|
|
@@ -4897,12 +4899,12 @@ const Io = {
|
|
|
4897
4899
|
columnSizingStart: []
|
|
4898
4900
|
}));
|
|
4899
4901
|
}, f = t || typeof document < "u" ? document : null, v = {
|
|
4900
|
-
moveHandler: (h) =>
|
|
4902
|
+
moveHandler: (h) => m(h.clientX),
|
|
4901
4903
|
upHandler: (h) => {
|
|
4902
4904
|
f == null || f.removeEventListener("mousemove", v.moveHandler), f == null || f.removeEventListener("mouseup", v.upHandler), u(h.clientX);
|
|
4903
4905
|
}
|
|
4904
4906
|
}, g = {
|
|
4905
|
-
moveHandler: (h) => (h.cancelable && (h.preventDefault(), h.stopPropagation()),
|
|
4907
|
+
moveHandler: (h) => (h.cancelable && (h.preventDefault(), h.stopPropagation()), m(h.touches[0].clientX), !1),
|
|
4906
4908
|
upHandler: (h) => {
|
|
4907
4909
|
var S;
|
|
4908
4910
|
f == null || f.removeEventListener("touchmove", g.moveHandler), f == null || f.removeEventListener("touchend", g.upHandler), h.cancelable && (h.preventDefault(), h.stopPropagation()), u((S = h.touches[0]) == null ? void 0 : S.clientX);
|
|
@@ -5249,9 +5251,9 @@ const Go = {
|
|
|
5249
5251
|
n.setRowPinning((c) => {
|
|
5250
5252
|
var d, p;
|
|
5251
5253
|
if (t === "bottom") {
|
|
5252
|
-
var
|
|
5254
|
+
var m, u;
|
|
5253
5255
|
return {
|
|
5254
|
-
top: ((
|
|
5256
|
+
top: ((m = c == null ? void 0 : c.top) != null ? m : []).filter((g) => !(s != null && s.has(g))),
|
|
5255
5257
|
bottom: [...((u = c == null ? void 0 : c.bottom) != null ? u : []).filter((g) => !(s != null && s.has(g))), ...Array.from(s)]
|
|
5256
5258
|
};
|
|
5257
5259
|
}
|
|
@@ -5556,19 +5558,19 @@ const He = {
|
|
|
5556
5558
|
const o = e.getNextSortingOrder(), i = typeof t < "u" && t !== null;
|
|
5557
5559
|
n.setSorting((l) => {
|
|
5558
5560
|
const s = l == null ? void 0 : l.find((f) => f.id === e.id), c = l == null ? void 0 : l.findIndex((f) => f.id === e.id);
|
|
5559
|
-
let d = [], p,
|
|
5561
|
+
let d = [], p, m = i ? t : o === "desc";
|
|
5560
5562
|
if (l != null && l.length && e.getCanMultiSort() && r ? s ? p = "toggle" : p = "add" : l != null && l.length && c !== l.length - 1 ? p = "replace" : s ? p = "toggle" : p = "replace", p === "toggle" && (i || o || (p = "remove")), p === "add") {
|
|
5561
5563
|
var u;
|
|
5562
5564
|
d = [...l, {
|
|
5563
5565
|
id: e.id,
|
|
5564
|
-
desc:
|
|
5566
|
+
desc: m
|
|
5565
5567
|
}], d.splice(0, d.length - ((u = n.options.maxMultiSortColCount) != null ? u : Number.MAX_SAFE_INTEGER));
|
|
5566
5568
|
} else p === "toggle" ? d = l.map((f) => f.id === e.id ? {
|
|
5567
5569
|
...f,
|
|
5568
|
-
desc:
|
|
5570
|
+
desc: m
|
|
5569
5571
|
} : f) : p === "remove" ? d = l.filter((f) => f.id !== e.id) : d = [{
|
|
5570
5572
|
id: e.id,
|
|
5571
|
-
desc:
|
|
5573
|
+
desc: m
|
|
5572
5574
|
}];
|
|
5573
5575
|
return d;
|
|
5574
5576
|
});
|
|
@@ -5649,7 +5651,7 @@ function ii(e) {
|
|
|
5649
5651
|
});
|
|
5650
5652
|
const d = [];
|
|
5651
5653
|
let p = !1;
|
|
5652
|
-
const
|
|
5654
|
+
const m = {
|
|
5653
5655
|
_features: r,
|
|
5654
5656
|
options: {
|
|
5655
5657
|
...i,
|
|
@@ -5728,7 +5730,7 @@ function ii(e) {
|
|
|
5728
5730
|
return process.env.NODE_ENV !== "production" && !f && console.error(`[Table] Column with id '${u}' does not exist.`), f;
|
|
5729
5731
|
}
|
|
5730
5732
|
};
|
|
5731
|
-
Object.assign(o,
|
|
5733
|
+
Object.assign(o, m);
|
|
5732
5734
|
for (let u = 0; u < o._features.length; u++) {
|
|
5733
5735
|
const f = o._features[u];
|
|
5734
5736
|
f == null || f.createTable == null || f.createTable(o);
|
|
@@ -5911,7 +5913,7 @@ const si = {
|
|
|
5911
5913
|
className: c = "",
|
|
5912
5914
|
paginationClassName: d = "",
|
|
5913
5915
|
tdClassName: p = "",
|
|
5914
|
-
thClassName:
|
|
5916
|
+
thClassName: m = "",
|
|
5915
5917
|
responsive: u = !1
|
|
5916
5918
|
}) => {
|
|
5917
5919
|
const f = li({
|
|
@@ -5933,7 +5935,7 @@ const si = {
|
|
|
5933
5935
|
/* @__PURE__ */ a.jsx("thead", { className: "sticky top-0 left-0 rounded-xl bg-color-[#FAFBFB] z-10 h-10", children: f.getHeaderGroups().map((v) => /* @__PURE__ */ a.jsx("tr", { children: v.headers.map((g) => /* @__PURE__ */ a.jsx(
|
|
5934
5936
|
"th",
|
|
5935
5937
|
{
|
|
5936
|
-
className: `bg-color-[#FAFBFB] p-2 text-left text-xs font-semibold text-color-gray-500 border-b border-color-gray-200 ${
|
|
5938
|
+
className: `bg-color-[#FAFBFB] p-2 text-left text-xs font-semibold text-color-gray-500 border-b border-color-gray-200 ${m}`,
|
|
5937
5939
|
children: g.isPlaceholder ? null : g.column.columnDef.header instanceof Function ? g.column.columnDef.header(
|
|
5938
5940
|
g.getContext()
|
|
5939
5941
|
) : g.column.columnDef.header
|
|
@@ -6036,7 +6038,7 @@ const si = {
|
|
|
6036
6038
|
startIcon: c,
|
|
6037
6039
|
endIcon: d,
|
|
6038
6040
|
error: p,
|
|
6039
|
-
maxLength:
|
|
6041
|
+
maxLength: m,
|
|
6040
6042
|
label: u,
|
|
6041
6043
|
labelClass: f = "",
|
|
6042
6044
|
variant: v = "outlined",
|
|
@@ -6045,7 +6047,7 @@ const si = {
|
|
|
6045
6047
|
}, h) => {
|
|
6046
6048
|
const [S, y] = J(""), $ = n !== void 0, b = $ ? n : S, z = p ? "border-color-red-500 focus-within:ring-color-red-500" : "border-color-gray-200", R = p ? "text-color-red-500" : s, A = (ee) => {
|
|
6047
6049
|
let X = ee.target.value.replace(/(?!^\+)[^\d]/g, "");
|
|
6048
|
-
X.startsWith("+") && (X = "+" + X.slice(1).replace(/\+/g, "")), X = X.replace(/\s/g, ""), (!
|
|
6050
|
+
X.startsWith("+") && (X = "+" + X.slice(1).replace(/\+/g, "")), X = X.replace(/\s/g, ""), (!m || X.replace(/^\+/, "").length <= m) && (t && t({
|
|
6049
6051
|
...ee,
|
|
6050
6052
|
target: { ...ee.target, value: X }
|
|
6051
6053
|
}), $ || y(X));
|
|
@@ -6118,8 +6120,8 @@ const fi = ({
|
|
|
6118
6120
|
defaultHeight: 100
|
|
6119
6121
|
};
|
|
6120
6122
|
}
|
|
6121
|
-
}, { classes: c, defaultWidth: d, defaultHeight: p } = s(),
|
|
6122
|
-
|
|
6123
|
+
}, { classes: c, defaultWidth: d, defaultHeight: p } = s(), m = t ?? d, u = r ?? p, f = {};
|
|
6124
|
+
m !== void 0 && (f.width = `${m}px`), u !== void 0 && (f.height = `${u}px`), n === "text" && t === void 0 && (f.width = "100%");
|
|
6123
6125
|
const v = [
|
|
6124
6126
|
i,
|
|
6125
6127
|
c,
|
|
@@ -6221,7 +6223,7 @@ const Yi = rr(function({
|
|
|
6221
6223
|
color: c = "blue",
|
|
6222
6224
|
size: d = "medium",
|
|
6223
6225
|
disabled: p = !1,
|
|
6224
|
-
className:
|
|
6226
|
+
className: m = "",
|
|
6225
6227
|
showValue: u = !0,
|
|
6226
6228
|
showMarks: f = !1,
|
|
6227
6229
|
marks: v = [],
|
|
@@ -6249,10 +6251,10 @@ const Yi = rr(function({
|
|
|
6249
6251
|
return F;
|
|
6250
6252
|
},
|
|
6251
6253
|
[g, T, q, w]
|
|
6252
|
-
),
|
|
6254
|
+
), x = me(null), j = ce(
|
|
6253
6255
|
(F) => {
|
|
6254
6256
|
var ge;
|
|
6255
|
-
const re = (ge =
|
|
6257
|
+
const re = (ge = x.current) == null ? void 0 : ge.getBoundingClientRect();
|
|
6256
6258
|
if (!re) return g ? i : b;
|
|
6257
6259
|
const oe = Math.max(0, Math.min(1, (F - re.left) / re.width));
|
|
6258
6260
|
return i + oe * (l - i);
|
|
@@ -6360,13 +6362,13 @@ const Yi = rr(function({
|
|
|
6360
6362
|
return document.body.style.userSelect = "none", () => {
|
|
6361
6363
|
document.body.style.userSelect = F;
|
|
6362
6364
|
};
|
|
6363
|
-
}, [E]), /* @__PURE__ */ a.jsx("div", { className: `w-full ${
|
|
6365
|
+
}, [E]), /* @__PURE__ */ a.jsx("div", { className: `w-full ${m}`, children: /* @__PURE__ */ a.jsxs("div", { className: "relative flex items-center", children: [
|
|
6364
6366
|
g && /* @__PURE__ */ a.jsx("div", { className: "mr-3 text-sm font-medium text-color-gray-700 dark:text-color-gray-200 min-w-[2rem]", children: /* @__PURE__ */ a.jsx("div", { className: "range-min", children: /* @__PURE__ */ a.jsx("div", { children: z }) }) }),
|
|
6365
6367
|
/* @__PURE__ */ a.jsxs("div", { className: "w-full", children: [
|
|
6366
6368
|
/* @__PURE__ */ a.jsxs(
|
|
6367
6369
|
"div",
|
|
6368
6370
|
{
|
|
6369
|
-
ref:
|
|
6371
|
+
ref: x,
|
|
6370
6372
|
className: `
|
|
6371
6373
|
relative w-full ${ee.track} ${A.track} rounded-full
|
|
6372
6374
|
${p ? "opacity-60 cursor-not-allowed" : "cursor-pointer"}
|
|
@@ -6513,7 +6515,7 @@ const Yi = rr(function({
|
|
|
6513
6515
|
action: l,
|
|
6514
6516
|
className: s = ""
|
|
6515
6517
|
}) => {
|
|
6516
|
-
var
|
|
6518
|
+
var m;
|
|
6517
6519
|
pe(() => {
|
|
6518
6520
|
if (e && t > 0 && i) {
|
|
6519
6521
|
const u = setTimeout(() => {
|
|
@@ -6547,7 +6549,7 @@ const Yi = rr(function({
|
|
|
6547
6549
|
default:
|
|
6548
6550
|
return `${f} bottom-4 left-1/2 -translate-x-1/2 ${e ? "translate-y-0 opacity-100" : "translate-y-full opacity-0"}`;
|
|
6549
6551
|
}
|
|
6550
|
-
}, p = (
|
|
6552
|
+
}, p = (m = we[o]) == null ? void 0 : m.filled;
|
|
6551
6553
|
return e ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
6552
6554
|
e && /* @__PURE__ */ a.jsx(
|
|
6553
6555
|
"div",
|
|
@@ -6566,7 +6568,7 @@ const Yi = rr(function({
|
|
|
6566
6568
|
"aria-atomic": "true",
|
|
6567
6569
|
children: [
|
|
6568
6570
|
/* @__PURE__ */ a.jsx("span", { className: "flex-1 text-sm font-medium leading-relaxed", children: n }),
|
|
6569
|
-
/* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-2
|
|
6571
|
+
/* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-2 shrink-0", children: [
|
|
6570
6572
|
l && /* @__PURE__ */ a.jsx("div", { className: "flex items-center", children: l }),
|
|
6571
6573
|
i && /* @__PURE__ */ a.jsx(
|
|
6572
6574
|
_e,
|
|
@@ -6593,8 +6595,8 @@ const Yi = rr(function({
|
|
|
6593
6595
|
className: o = "",
|
|
6594
6596
|
...i
|
|
6595
6597
|
}) => {
|
|
6596
|
-
var p,
|
|
6597
|
-
const l = (p = we[t]) == null ? void 0 : p.outline, s = (
|
|
6598
|
+
var p, m;
|
|
6599
|
+
const l = (p = we[t]) == null ? void 0 : p.outline, s = (m = we[t]) == null ? void 0 : m.filled, c = Math.min(Math.max(n, 0), 100);
|
|
6598
6600
|
if (e === "circular") {
|
|
6599
6601
|
const { size: u = 40, thickness: f = 4 } = i, v = r ? c / 100 * 360 : 270;
|
|
6600
6602
|
return /* @__PURE__ */ a.jsxs(
|
|
@@ -6689,7 +6691,7 @@ const Yi = rr(function({
|
|
|
6689
6691
|
emptyIcon: c,
|
|
6690
6692
|
className: d = "",
|
|
6691
6693
|
showHoverValue: p = !1,
|
|
6692
|
-
showValue:
|
|
6694
|
+
showValue: m = !1,
|
|
6693
6695
|
labels: u = {}
|
|
6694
6696
|
// <-- Add this
|
|
6695
6697
|
}) => {
|
|
@@ -6744,7 +6746,7 @@ const Yi = rr(function({
|
|
|
6744
6746
|
}
|
|
6745
6747
|
return /* @__PURE__ */ a.jsxs("div", { className: `flex items-center gap-1 ${d}`, role: "radiogroup", "aria-disabled": r, children: [
|
|
6746
6748
|
S,
|
|
6747
|
-
p && f !== null ? /* @__PURE__ */ a.jsx("span", { className: "ml-2 text-xs", children: u[f] || f }) :
|
|
6749
|
+
p && f !== null ? /* @__PURE__ */ a.jsx("span", { className: "ml-2 text-xs", children: u[f] || f }) : m ? /* @__PURE__ */ a.jsx("span", { className: "ml-2 text-xs", children: u[e] || e }) : null
|
|
6748
6750
|
] });
|
|
6749
6751
|
}, hi = () => {
|
|
6750
6752
|
const [e, n] = J("desktop");
|
|
@@ -6778,7 +6780,7 @@ const Yi = rr(function({
|
|
|
6778
6780
|
perview: c = 1,
|
|
6779
6781
|
gap: d = 0,
|
|
6780
6782
|
onClickItem: p,
|
|
6781
|
-
showThumbs:
|
|
6783
|
+
showThumbs: m = !1,
|
|
6782
6784
|
pauseOnHover: u = !1,
|
|
6783
6785
|
swipeable: f = !0,
|
|
6784
6786
|
thumbWidth: v = 60,
|
|
@@ -6818,7 +6820,7 @@ const Yi = rr(function({
|
|
|
6818
6820
|
y == null ? void 0 : y.showThumbs,
|
|
6819
6821
|
$ == null ? void 0 : $.showThumbs,
|
|
6820
6822
|
b == null ? void 0 : b.showThumbs,
|
|
6821
|
-
|
|
6823
|
+
m,
|
|
6822
6824
|
z
|
|
6823
6825
|
), de = ze(
|
|
6824
6826
|
y == null ? void 0 : y.swipeable,
|
|
@@ -6826,7 +6828,7 @@ const Yi = rr(function({
|
|
|
6826
6828
|
b == null ? void 0 : b.swipeable,
|
|
6827
6829
|
f,
|
|
6828
6830
|
z
|
|
6829
|
-
), D = e.length, T = Math.min(Math.max(R, 0.1), D), [q, K] = J(0), [V, ve] = J(!1), [U,
|
|
6831
|
+
), D = e.length, T = Math.min(Math.max(R, 0.1), D), [q, K] = J(0), [V, ve] = J(!1), [U, x] = J(!1), [j, L] = J(0), E = me(null), P = me(0), O = me(0), k = T >= D ? 0 : Math.max(0, D - T), B = (H) => Math.max(0, Math.min(H, k)), N = (H) => K(
|
|
6830
6832
|
s && k > 0 ? (H % (k + 1) + (k + 1)) % (k + 1) : B(H)
|
|
6831
6833
|
), G = () => {
|
|
6832
6834
|
s && k > 0 ? K(q === 0 ? k : q - 1) : N(q - 1);
|
|
@@ -6855,12 +6857,12 @@ const Yi = rr(function({
|
|
|
6855
6857
|
q > k && K(Math.min(q, k));
|
|
6856
6858
|
}, [k, q]);
|
|
6857
6859
|
const se = (H, te) => {
|
|
6858
|
-
!de || k === 0 || (
|
|
6860
|
+
!de || k === 0 || (x(!0), P.current = g === "horizontal" ? H : te, O.current = P.current);
|
|
6859
6861
|
}, _ = (H, te) => {
|
|
6860
6862
|
U && (O.current = g === "horizontal" ? H : te, L(O.current - P.current));
|
|
6861
6863
|
}, F = () => {
|
|
6862
6864
|
if (!U) return;
|
|
6863
|
-
Math.abs(O.current - P.current) > 50 && (O.current < P.current ? Y() : G()),
|
|
6865
|
+
Math.abs(O.current - P.current) > 50 && (O.current < P.current ? Y() : G()), x(!1), L(0);
|
|
6864
6866
|
}, re = () => {
|
|
6865
6867
|
const H = g === "horizontal" ? "X" : "Y";
|
|
6866
6868
|
let te = 0;
|
|
@@ -6929,7 +6931,7 @@ const Yi = rr(function({
|
|
|
6929
6931
|
{
|
|
6930
6932
|
"aria-label": "prev",
|
|
6931
6933
|
onClick: G,
|
|
6932
|
-
className: `absolute z-20 bg-color-white/80 border border-color-gray-300 rounded-full w-8 h-8 md:w-10 md:h-10 flex items-center justify-center text-sm md:text-lg font-bold text-color-gray-800 hover:bg-color-white transition-
|
|
6934
|
+
className: `absolute z-20 bg-color-white/80 border border-color-gray-300 rounded-full w-8 h-8 md:w-10 md:h-10 flex items-center justify-center text-sm md:text-lg font-bold text-color-gray-800 hover:bg-color-white transition-color cursor-pointer
|
|
6933
6935
|
${g === "horizontal" ? "left-1 md:left-2 top-1/2 -translate-y-1/2" : "left-1/2 top-1 md:top-2 -translate-x-1/2"}`,
|
|
6934
6936
|
children: h || (g === "horizontal" ? "‹" : "↑")
|
|
6935
6937
|
}
|
|
@@ -6939,7 +6941,7 @@ const Yi = rr(function({
|
|
|
6939
6941
|
{
|
|
6940
6942
|
"aria-label": "next",
|
|
6941
6943
|
onClick: Y,
|
|
6942
|
-
className: `absolute z-20 bg-color-white/80 border border-color-gray-300 rounded-full w-8 h-8 md:w-10 md:h-10 flex items-center justify-center text-sm md:text-lg font-bold text-color-gray-800 hover:bg-color-white transition-
|
|
6944
|
+
className: `absolute z-20 bg-color-white/80 border border-color-gray-300 rounded-full w-8 h-8 md:w-10 md:h-10 flex items-center justify-center text-sm md:text-lg font-bold text-color-gray-800 hover:bg-color-white transition-color cursor-pointer
|
|
6943
6945
|
${g === "horizontal" ? "right-1 md:right-2 top-1/2 -translate-y-1/2" : "left-1/2 bottom-1 md:bottom-2 -translate-x-1/2"}`,
|
|
6944
6946
|
children: w || (g === "horizontal" ? "›" : "↓")
|
|
6945
6947
|
}
|
|
@@ -6958,7 +6960,7 @@ const Yi = rr(function({
|
|
|
6958
6960
|
te / (oe() - 1) * k
|
|
6959
6961
|
)
|
|
6960
6962
|
),
|
|
6961
|
-
className: `w-2 h-2 md:w-[10px] md:h-[10px] rounded-full transition-
|
|
6963
|
+
className: `w-2 h-2 md:w-[10px] md:h-[10px] rounded-full transition-color hover:bg-color-gray-600 cursor-pointer ${te === ge() ? "bg-color-gray-800" : "bg-color-gray-400"}`
|
|
6962
6964
|
},
|
|
6963
6965
|
te
|
|
6964
6966
|
)
|
|
@@ -7040,7 +7042,7 @@ const Yi = rr(function({
|
|
|
7040
7042
|
variant: i = "ios"
|
|
7041
7043
|
// <-- default to ios
|
|
7042
7044
|
}) => {
|
|
7043
|
-
var
|
|
7045
|
+
var m, u, f;
|
|
7044
7046
|
const [l, s] = J(e), [c, d] = J(!1), p = async () => {
|
|
7045
7047
|
if (!(t || c))
|
|
7046
7048
|
if (n) {
|
|
@@ -7064,7 +7066,7 @@ const Yi = rr(function({
|
|
|
7064
7066
|
className: `relative w-10 h-3 flex items-center transition-color duration-300
|
|
7065
7067
|
} ${t ? "bg-color-gray-200 opacity-50 cursor-not-allowed" : "cursor-pointer"}`,
|
|
7066
7068
|
children: [
|
|
7067
|
-
/* @__PURE__ */ a.jsx("span", { className: `absolute rounded-full inset-0 opacity-50 ${l ? `${(
|
|
7069
|
+
/* @__PURE__ */ a.jsx("span", { className: `absolute rounded-full inset-0 opacity-50 ${l ? `${(m = we[o]) == null ? void 0 : m.filled}` : "bg-color-gray-400"}` }),
|
|
7068
7070
|
/* @__PURE__ */ a.jsx(
|
|
7069
7071
|
"div",
|
|
7070
7072
|
{
|
|
@@ -7106,7 +7108,7 @@ const Yi = rr(function({
|
|
|
7106
7108
|
buttonClass: c = "",
|
|
7107
7109
|
disabled: d = !1
|
|
7108
7110
|
}) => {
|
|
7109
|
-
const p = (u) => Array.isArray(e) ? e.includes(u) : e === u,
|
|
7111
|
+
const p = (u) => Array.isArray(e) ? e.includes(u) : e === u, m = (u) => {
|
|
7110
7112
|
if (!d)
|
|
7111
7113
|
if (r) {
|
|
7112
7114
|
if (!Array.isArray(e)) return;
|
|
@@ -7135,7 +7137,7 @@ const Yi = rr(function({
|
|
|
7135
7137
|
${c}
|
|
7136
7138
|
`,
|
|
7137
7139
|
"aria-pressed": p(u.value),
|
|
7138
|
-
onClick: () => !(d || u.disabled) &&
|
|
7140
|
+
onClick: () => !(d || u.disabled) && m(u.value),
|
|
7139
7141
|
children: [
|
|
7140
7142
|
u.icon,
|
|
7141
7143
|
u.label
|
|
@@ -7172,7 +7174,7 @@ const Yi = rr(function({
|
|
|
7172
7174
|
children: c,
|
|
7173
7175
|
className: d = "",
|
|
7174
7176
|
hoverable: p = !1,
|
|
7175
|
-
bordered:
|
|
7177
|
+
bordered: m = !1,
|
|
7176
7178
|
onClick: u,
|
|
7177
7179
|
loaderJsx: f = !1
|
|
7178
7180
|
}) => {
|
|
@@ -7185,7 +7187,7 @@ const Yi = rr(function({
|
|
|
7185
7187
|
$n[r] || $n.small,
|
|
7186
7188
|
Rn[o] || Rn.medium,
|
|
7187
7189
|
p ? "hover:shadow-xl transition-shadow duration-300 cursor-pointer" : "",
|
|
7188
|
-
|
|
7190
|
+
m ? "border border-color-gray-200" : "",
|
|
7189
7191
|
d
|
|
7190
7192
|
].join(" ").trim();
|
|
7191
7193
|
return /* @__PURE__ */ a.jsxs("div", { className: v, onClick: u, children: [
|
|
@@ -7250,9 +7252,9 @@ const Yi = rr(function({
|
|
|
7250
7252
|
color: l = "blue",
|
|
7251
7253
|
className: s = "",
|
|
7252
7254
|
radioClass: c
|
|
7253
|
-
}) => /* @__PURE__ */ a.jsx("div", { className: `flex ${o === "row" ? "flex-row gap-6" : "flex-col gap-3"} ${s}`, children: n.map(({ label: d, value: p, disabled:
|
|
7255
|
+
}) => /* @__PURE__ */ a.jsx("div", { className: `flex ${o === "row" ? "flex-row gap-6" : "flex-col gap-3"} ${s}`, children: n.map(({ label: d, value: p, disabled: m }) => {
|
|
7254
7256
|
var f, v;
|
|
7255
|
-
const u = i ||
|
|
7257
|
+
const u = i || m;
|
|
7256
7258
|
return /* @__PURE__ */ a.jsxs(
|
|
7257
7259
|
"label",
|
|
7258
7260
|
{
|
|
@@ -7293,7 +7295,7 @@ const Yi = rr(function({
|
|
|
7293
7295
|
size: c = "medium",
|
|
7294
7296
|
variant: d = "outlined",
|
|
7295
7297
|
rounded: p = "medium",
|
|
7296
|
-
shadow:
|
|
7298
|
+
shadow: m = !1
|
|
7297
7299
|
}) => {
|
|
7298
7300
|
const u = {
|
|
7299
7301
|
small: "p-2",
|
|
@@ -7316,7 +7318,7 @@ const Yi = rr(function({
|
|
|
7316
7318
|
disabled: s,
|
|
7317
7319
|
value: n,
|
|
7318
7320
|
onChange: (g) => t(g.target.value),
|
|
7319
|
-
className: `appearance-none focus:ring-1 text-color-gray-800 w-full border outline-none transition-all ${f[p]} ${u[c]} ${v[d]} ${s ? "!bg-color-gray-50 opacity-60 cursor-not-allowed" : ""} ${
|
|
7321
|
+
className: `appearance-none focus:ring-1 text-color-gray-800 w-full border outline-none transition-all ${f[p]} ${u[c]} ${v[d]} ${s ? "!bg-color-gray-50 opacity-60 cursor-not-allowed" : ""} ${m ? "shadow-md shadow-color-zinc-100" : ""} ${l}`,
|
|
7320
7322
|
children: r.map((g) => /* @__PURE__ */ a.jsx("option", { value: g.value, className: "text-color-gray-900", children: g.label }, g.value))
|
|
7321
7323
|
}
|
|
7322
7324
|
),
|
|
@@ -7332,22 +7334,22 @@ const Yi = rr(function({
|
|
|
7332
7334
|
return pe(() => {
|
|
7333
7335
|
if (r && s.current && c.current) {
|
|
7334
7336
|
const d = s.current.getBoundingClientRect(), p = c.current.getBoundingClientRect();
|
|
7335
|
-
let
|
|
7337
|
+
let m = 0, u = 0;
|
|
7336
7338
|
switch (t) {
|
|
7337
7339
|
case "top":
|
|
7338
|
-
|
|
7340
|
+
m = d.top - p.height - 8, u = d.left + d.width / 2 - p.width / 2;
|
|
7339
7341
|
break;
|
|
7340
7342
|
case "bottom":
|
|
7341
|
-
|
|
7343
|
+
m = d.bottom + 8, u = d.left + d.width / 2 - p.width / 2;
|
|
7342
7344
|
break;
|
|
7343
7345
|
case "left":
|
|
7344
|
-
|
|
7346
|
+
m = d.top + d.height / 2 - p.height / 2, u = d.left - p.width - 8;
|
|
7345
7347
|
break;
|
|
7346
7348
|
case "right":
|
|
7347
|
-
|
|
7349
|
+
m = d.top + d.height / 2 - p.height / 2, u = d.right + 8;
|
|
7348
7350
|
break;
|
|
7349
7351
|
}
|
|
7350
|
-
l({ top:
|
|
7352
|
+
l({ top: m, left: u });
|
|
7351
7353
|
}
|
|
7352
7354
|
}, [r, t]), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
7353
7355
|
/* @__PURE__ */ a.jsx(
|
|
@@ -7366,7 +7368,7 @@ const Yi = rr(function({
|
|
|
7366
7368
|
{
|
|
7367
7369
|
ref: c,
|
|
7368
7370
|
style: { top: i.top, left: i.left },
|
|
7369
|
-
className: "fixed z-50 px-2 py-1 text-sm text-color-white bg-color-gray-800 rounded shadow-md
|
|
7371
|
+
className: "fixed z-50 text-center px-2 max-w-xs py-1 text-sm text-color-white bg-color-gray-800 rounded shadow-md pointer-events-none",
|
|
7370
7372
|
children: e
|
|
7371
7373
|
}
|
|
7372
7374
|
),
|
|
@@ -7398,11 +7400,11 @@ const Ci = {
|
|
|
7398
7400
|
fullscreen: c = !1,
|
|
7399
7401
|
fullWidth: d = !1,
|
|
7400
7402
|
maxWidth: p
|
|
7401
|
-
},
|
|
7403
|
+
}, m) => {
|
|
7402
7404
|
const [u, f] = J(e || !1), [v, g] = J(!1), [w, h] = J(!1);
|
|
7403
7405
|
pe(() => {
|
|
7404
7406
|
e !== void 0 && f(e);
|
|
7405
|
-
}, [e]), _n(
|
|
7407
|
+
}, [e]), _n(m, () => ({
|
|
7406
7408
|
open: () => f(!0),
|
|
7407
7409
|
close: () => {
|
|
7408
7410
|
h(!1), setTimeout(() => f(!1), 300);
|
|
@@ -7474,7 +7476,7 @@ const Ci = {
|
|
|
7474
7476
|
}
|
|
7475
7477
|
);
|
|
7476
7478
|
function oa({ items: e, trigger: n, className: t, dropdownItemClass: r, positioning: o = "fixed" }) {
|
|
7477
|
-
const [i, l] = J(!1), [s, c] = J({ top: 0, left: 0 }), [d, p] = J(!1),
|
|
7479
|
+
const [i, l] = J(!1), [s, c] = J({ top: 0, left: 0 }), [d, p] = J(!1), m = me(null), u = me(null), f = (g) => {
|
|
7478
7480
|
g.stopPropagation(), l((w) => !w), p(!1), i || c(o === "fixed" ? {
|
|
7479
7481
|
top: g.clientY,
|
|
7480
7482
|
left: g.clientX
|
|
@@ -7501,7 +7503,7 @@ function oa({ items: e, trigger: n, className: t, dropdownItemClass: r, position
|
|
|
7501
7503
|
}, [i, o]), pe(() => {
|
|
7502
7504
|
const g = (w) => {
|
|
7503
7505
|
var h;
|
|
7504
|
-
u.current && !u.current.contains(w.target) && !((h =
|
|
7506
|
+
u.current && !u.current.contains(w.target) && !((h = m.current) != null && h.contains(w.target)) && l(!1);
|
|
7505
7507
|
};
|
|
7506
7508
|
return i && document.addEventListener("mousedown", g), () => {
|
|
7507
7509
|
document.removeEventListener("mousedown", g);
|
|
@@ -7535,7 +7537,7 @@ function oa({ items: e, trigger: n, className: t, dropdownItemClass: r, position
|
|
|
7535
7537
|
}
|
|
7536
7538
|
);
|
|
7537
7539
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
7538
|
-
/* @__PURE__ */ a.jsx("div", { ref:
|
|
7540
|
+
/* @__PURE__ */ a.jsx("div", { ref: m, onClick: f, className: "cursor-pointer", children: n }),
|
|
7539
7541
|
i && Ge(v, document.body)
|
|
7540
7542
|
] });
|
|
7541
7543
|
}
|
|
@@ -7553,7 +7555,7 @@ const $i = ({
|
|
|
7553
7555
|
showCloseIcon: s = !0,
|
|
7554
7556
|
anchor: c = "left"
|
|
7555
7557
|
}) => {
|
|
7556
|
-
const [d, p] = J(!1), [
|
|
7558
|
+
const [d, p] = J(!1), [m, u] = J(!1);
|
|
7557
7559
|
pe(() => {
|
|
7558
7560
|
let w;
|
|
7559
7561
|
return e ? (p(!0), w = setTimeout(() => {
|
|
@@ -7577,10 +7579,10 @@ const $i = ({
|
|
|
7577
7579
|
top: "top-0 left-0 w-full min-h-40 transition-all duration-300",
|
|
7578
7580
|
bottom: "bottom-0 left-0 w-full min-h-40 transition-all duration-300"
|
|
7579
7581
|
}, g = {
|
|
7580
|
-
left:
|
|
7581
|
-
right:
|
|
7582
|
-
top:
|
|
7583
|
-
bottom:
|
|
7582
|
+
left: m ? "translate-x-0" : "-translate-x-full",
|
|
7583
|
+
right: m ? "translate-x-0" : "translate-x-full",
|
|
7584
|
+
top: m ? "translate-y-0" : "-translate-y-full",
|
|
7585
|
+
bottom: m ? "translate-y-0" : "translate-y-full"
|
|
7584
7586
|
};
|
|
7585
7587
|
return Ge(
|
|
7586
7588
|
/* @__PURE__ */ a.jsxs(
|
|
@@ -7588,7 +7590,7 @@ const $i = ({
|
|
|
7588
7590
|
{
|
|
7589
7591
|
className: Si(
|
|
7590
7592
|
"fixed inset-0 z-50 transition-opacity duration-300",
|
|
7591
|
-
|
|
7593
|
+
m ? "opacity-100" : "opacity-0 pointer-events-none"
|
|
7592
7594
|
),
|
|
7593
7595
|
children: [
|
|
7594
7596
|
/* @__PURE__ */ a.jsx("div", { className: "fixed inset-0 bg-color-black/50", onClick: n }),
|
|
@@ -7638,12 +7640,12 @@ const $i = ({
|
|
|
7638
7640
|
titleClass: c = "",
|
|
7639
7641
|
contentClass: d = ""
|
|
7640
7642
|
}) => {
|
|
7641
|
-
const [p,
|
|
7643
|
+
const [p, m] = J(i), u = o !== void 0, f = u ? o : p, v = () => {
|
|
7642
7644
|
const g = !f;
|
|
7643
|
-
u ||
|
|
7645
|
+
u || m(g), l == null || l(g);
|
|
7644
7646
|
};
|
|
7645
7647
|
return pe(() => {
|
|
7646
|
-
u &&
|
|
7648
|
+
u && m(o);
|
|
7647
7649
|
}, [o]), /* @__PURE__ */ a.jsxs("div", { className: `overflow-hidden w-full border border-color-gray-100 ${s}`, children: [
|
|
7648
7650
|
/* @__PURE__ */ a.jsxs(
|
|
7649
7651
|
"button",
|
|
@@ -7714,7 +7716,7 @@ const $i = ({
|
|
|
7714
7716
|
s(!1), t == null || t();
|
|
7715
7717
|
},
|
|
7716
7718
|
"aria-label": "Close alert",
|
|
7717
|
-
className: "ml-4 bg-color-transparent cursor-pointer hover:bg-color-white rounded-full p-1 transition-
|
|
7719
|
+
className: "ml-4 bg-color-transparent cursor-pointer hover:bg-color-white rounded-full p-1 transition-color",
|
|
7718
7720
|
children: /* @__PURE__ */ a.jsx("svg", { className: `size-5 ${n === "dark" ? "text-gray-700" : ""}`, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ a.jsx("path", { d: "M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z" }) })
|
|
7719
7721
|
}
|
|
7720
7722
|
),
|
|
@@ -7750,25 +7752,18 @@ const $i = ({
|
|
|
7750
7752
|
children: c
|
|
7751
7753
|
}
|
|
7752
7754
|
);
|
|
7753
|
-
}, s =
|
|
7754
|
-
|
|
7755
|
-
|
|
7756
|
-
|
|
7757
|
-
|
|
7758
|
-
return "bottom-0 right-0 translate-x-1/2 translate-y-1/2";
|
|
7759
|
-
case "bottom-left":
|
|
7760
|
-
return "bottom-0 left-0 -translate-x-1/2 translate-y-1/2";
|
|
7761
|
-
case "top-right":
|
|
7762
|
-
default:
|
|
7763
|
-
return "top-0 right-0 translate-x-1/2 -translate-y-1/2";
|
|
7764
|
-
}
|
|
7755
|
+
}, s = {
|
|
7756
|
+
"top-left": "top-0 left-0 -translate-x-1/2 -translate-y-1/2",
|
|
7757
|
+
"bottom-right": "bottom-0 right-0 translate-x-1/2 translate-y-1/2",
|
|
7758
|
+
"bottom-left": "bottom-0 left-0 -translate-x-1/2 translate-y-1/2",
|
|
7759
|
+
"top-right": "top-0 right-0 translate-x-1/2 -translate-y-1/2"
|
|
7765
7760
|
};
|
|
7766
7761
|
return /* @__PURE__ */ a.jsxs("div", { className: "relative inline-block", children: [
|
|
7767
7762
|
e,
|
|
7768
7763
|
/* @__PURE__ */ a.jsx(
|
|
7769
7764
|
"span",
|
|
7770
7765
|
{
|
|
7771
|
-
className: `absolute ${s
|
|
7766
|
+
className: `absolute ${s[i]}`,
|
|
7772
7767
|
children: l()
|
|
7773
7768
|
}
|
|
7774
7769
|
)
|
|
@@ -7782,8 +7777,12 @@ const $i = ({
|
|
|
7782
7777
|
activeClass: i = "",
|
|
7783
7778
|
buttonClass: l = ""
|
|
7784
7779
|
}) => {
|
|
7785
|
-
|
|
7786
|
-
|
|
7780
|
+
const s = {
|
|
7781
|
+
fixed: "fixed bottom-0 left-0 right-0",
|
|
7782
|
+
floating: "fixed bottom-4 left-4 right-4 rounded-full",
|
|
7783
|
+
static: "static w-full"
|
|
7784
|
+
};
|
|
7785
|
+
return /* @__PURE__ */ a.jsx("nav", { className: `flex justify-around items-center bg-color-white shadow-sm text-color-gray-600 py-2 px-4 ${s[e]} ${o}`, children: t.map((c) => {
|
|
7787
7786
|
const d = c.label === n;
|
|
7788
7787
|
return /* @__PURE__ */ a.jsxs(
|
|
7789
7788
|
"a",
|
|
@@ -7821,7 +7820,7 @@ const $i = ({
|
|
|
7821
7820
|
placeholder: c = "Select date",
|
|
7822
7821
|
icon: d = /* @__PURE__ */ a.jsx("svg", { className: "text-color-gray-500 size-5", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ a.jsx("path", { d: "M7 3V1H9V3H15V1H17V3H21C21.5523 3 22 3.44772 22 4V9H20V5H17V7H15V5H9V7H7V5H4V19H10V21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H7ZM17 12C14.7909 12 13 13.7909 13 16C13 18.2091 14.7909 20 17 20C19.2091 20 21 18.2091 21 16C21 13.7909 19.2091 12 17 12ZM11 16C11 12.6863 13.6863 10 17 10C20.3137 10 23 12.6863 23 16C23 19.3137 20.3137 22 17 22C13.6863 22 11 19.3137 11 16ZM16 13V16.4142L18.2929 18.7071L19.7071 17.2929L18 15.5858V13H16Z" }) }),
|
|
7823
7822
|
disableBefore: p,
|
|
7824
|
-
disableAfter:
|
|
7823
|
+
disableAfter: m,
|
|
7825
7824
|
selectedDate: u,
|
|
7826
7825
|
hideFutureDates: f = !1,
|
|
7827
7826
|
defaultDate: v,
|
|
@@ -7834,7 +7833,7 @@ const $i = ({
|
|
|
7834
7833
|
g || w ? /* @__PURE__ */ new Date() : v ? new Date(typeof v == "string" ? parseInt(v) : v) : /* @__PURE__ */ new Date()
|
|
7835
7834
|
), [ee, X] = J(
|
|
7836
7835
|
u ? new Date(u) : v && !u ? new Date(typeof v == "string" ? parseInt(v) : v) : null
|
|
7837
|
-
), [Q, de] = J(g ? new Date(g) : null), [D, T] = J(w ? new Date(w) : null), [q, K] = J(null), [V, ve] = J({ hour: 12, minute: 0, ampm: "AM" }), U = me(null), [
|
|
7836
|
+
), [Q, de] = J(g ? new Date(g) : null), [D, T] = J(w ? new Date(w) : null), [q, K] = J(null), [V, ve] = J({ hour: 12, minute: 0, ampm: "AM" }), U = me(null), [x, j] = J(
|
|
7838
7837
|
u ? new Date(u) : v && !u ? new Date(typeof v == "string" ? parseInt(v) : v) : null
|
|
7839
7838
|
), [L, E] = J(g ? new Date(g) : null), [P, O] = J(w ? new Date(w) : null);
|
|
7840
7839
|
pe(() => {
|
|
@@ -7851,9 +7850,9 @@ const $i = ({
|
|
|
7851
7850
|
w && (T(new Date(w)), O(new Date(w)), X(new Date(w)), j(new Date(w)));
|
|
7852
7851
|
}, [w]);
|
|
7853
7852
|
const k = (C) => {
|
|
7854
|
-
C.stopPropagation(), z(C.currentTarget), $(!0),
|
|
7853
|
+
C.stopPropagation(), z(C.currentTarget), $(!0), x ? A(new Date(x)) : v && !x && A(new Date(typeof v == "string" ? parseInt(v) : v));
|
|
7855
7854
|
}, B = (C) => {
|
|
7856
|
-
if (p && C.getTime() < p ||
|
|
7855
|
+
if (p && C.getTime() < p || m && C.getTime() > m || f && C.getTime() > (/* @__PURE__ */ new Date()).setHours(23, 59, 59, 999)) return !0;
|
|
7857
7856
|
if (S) {
|
|
7858
7857
|
const ie = typeof S == "string" ? new Date(S) : typeof S == "number" ? new Date(S) : S;
|
|
7859
7858
|
if (C.getTime() > ie.getTime()) return !0;
|
|
@@ -7900,7 +7899,7 @@ const $i = ({
|
|
|
7900
7899
|
i == null || i(C), l == null || l(C);
|
|
7901
7900
|
}
|
|
7902
7901
|
}, F = () => {
|
|
7903
|
-
$(!1), X(
|
|
7902
|
+
$(!1), X(x), de(L), T(P), A(x ? new Date(x) : /* @__PURE__ */ new Date()), s == null || s();
|
|
7904
7903
|
}, re = () => {
|
|
7905
7904
|
const C = new Date(R.getFullYear(), R.getMonth(), 1), ie = new Date(R.getFullYear(), R.getMonth() + 1, 0), he = (/* @__PURE__ */ new Date()).setHours(23, 59, 59, 999), M = [], I = C.getDay();
|
|
7906
7905
|
for (let ne = 0; ne < I; ne++)
|
|
@@ -7925,8 +7924,8 @@ const $i = ({
|
|
|
7925
7924
|
const C = typeof S == "string" ? new Date(S) : typeof S == "number" ? new Date(S) : S;
|
|
7926
7925
|
if (R.getFullYear() > C.getFullYear() || R.getFullYear() === C.getFullYear() && R.getMonth() >= C.getMonth()) return !1;
|
|
7927
7926
|
}
|
|
7928
|
-
if (
|
|
7929
|
-
const C = new Date(
|
|
7927
|
+
if (m) {
|
|
7928
|
+
const C = new Date(m);
|
|
7930
7929
|
if (R.getFullYear() > C.getFullYear() || R.getFullYear() === C.getFullYear() && R.getMonth() >= C.getMonth()) return !1;
|
|
7931
7930
|
}
|
|
7932
7931
|
if (f) {
|
|
@@ -8025,8 +8024,8 @@ const $i = ({
|
|
|
8025
8024
|
if (he === ne.getFullYear() && M < ne.getMonth() || he < ne.getFullYear())
|
|
8026
8025
|
return null;
|
|
8027
8026
|
}
|
|
8028
|
-
if (S ||
|
|
8029
|
-
const ne = S ? typeof S == "string" ? new Date(S) : typeof S == "number" ? new Date(S) : S :
|
|
8027
|
+
if (S || m) {
|
|
8028
|
+
const ne = S ? typeof S == "string" ? new Date(S) : typeof S == "number" ? new Date(S) : S : m ? new Date(m) : null;
|
|
8030
8029
|
if (ne && he === ne.getFullYear() && M > ne.getMonth() || ne && he > ne.getFullYear())
|
|
8031
8030
|
return null;
|
|
8032
8031
|
}
|
|
@@ -8046,8 +8045,8 @@ const $i = ({
|
|
|
8046
8045
|
const ie = typeof h == "string" ? new Date(h) : typeof h == "number" ? new Date(h) : h;
|
|
8047
8046
|
if (C < ie.getFullYear()) return !1;
|
|
8048
8047
|
}
|
|
8049
|
-
if (S ||
|
|
8050
|
-
const ie = S ? typeof S == "string" ? new Date(S) : typeof S == "number" ? new Date(S) : S :
|
|
8048
|
+
if (S || m) {
|
|
8049
|
+
const ie = S ? typeof S == "string" ? new Date(S) : typeof S == "number" ? new Date(S) : S : m ? new Date(m) : null;
|
|
8051
8050
|
if (ie && C > ie.getFullYear()) return !1;
|
|
8052
8051
|
}
|
|
8053
8052
|
return !0;
|
|
@@ -8110,7 +8109,7 @@ const $i = ({
|
|
|
8110
8109
|
variant: "outlined",
|
|
8111
8110
|
className: `!justify-between gap-2 ${o || ""}`,
|
|
8112
8111
|
children: [
|
|
8113
|
-
e === "single" ?
|
|
8112
|
+
e === "single" ? x && u !== null ? te(x) : c : (
|
|
8114
8113
|
// Display rangeStart immediately if set, even if rangeEnd is null
|
|
8115
8114
|
Q || L || P ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
8116
8115
|
te(Q || L, "start"),
|
|
@@ -8137,32 +8136,32 @@ const $i = ({
|
|
|
8137
8136
|
indicatorClass: c = "",
|
|
8138
8137
|
variant: d = "horizontal"
|
|
8139
8138
|
}) => {
|
|
8140
|
-
const p = e.find((u) => u.key === n),
|
|
8139
|
+
const p = e.find((u) => u.key === n), m = d === "vertical";
|
|
8141
8140
|
return /* @__PURE__ */ a.jsxs(
|
|
8142
8141
|
"div",
|
|
8143
8142
|
{
|
|
8144
|
-
className: `w-full flex ${
|
|
8143
|
+
className: `w-full flex ${m ? "flex-row" : "flex-col"} ${r}`,
|
|
8145
8144
|
children: [
|
|
8146
8145
|
/* @__PURE__ */ a.jsx(
|
|
8147
8146
|
"div",
|
|
8148
8147
|
{
|
|
8149
|
-
className: `${
|
|
8148
|
+
className: `${m ? "flex flex-col min-w-[160px] border-r border-color-gray-200" : "flex space-x-6 border-b border-color-gray-200"} ${o}`,
|
|
8150
8149
|
children: e.map((u) => {
|
|
8151
8150
|
const f = n === u.key;
|
|
8152
8151
|
return /* @__PURE__ */ a.jsxs(
|
|
8153
8152
|
"button",
|
|
8154
8153
|
{
|
|
8155
8154
|
onClick: () => t(u.key),
|
|
8156
|
-
className: `relative flex ${
|
|
8155
|
+
className: `relative flex ${m ? "flex-row items-center px-4 py-3" : "flex-col items-center py-4"}
|
|
8157
8156
|
text-sm font-medium transition-color duration-200 bg-color-transparent
|
|
8158
8157
|
${f ? `text-color-blue-500 ${l} ` : "text-color-gray-600 hover:text-color-blue-500 cursor-pointer"}
|
|
8159
8158
|
${i}`,
|
|
8160
8159
|
children: [
|
|
8161
|
-
/* @__PURE__ */ a.jsxs("div", { className: `flex items-center ${
|
|
8160
|
+
/* @__PURE__ */ a.jsxs("div", { className: `flex items-center ${m ? "space-x-3" : "space-x-2"}`, children: [
|
|
8162
8161
|
u.icon && /* @__PURE__ */ a.jsx("span", { children: u.icon }),
|
|
8163
8162
|
/* @__PURE__ */ a.jsx("span", { children: u.label })
|
|
8164
8163
|
] }),
|
|
8165
|
-
f && (
|
|
8164
|
+
f && (m ? /* @__PURE__ */ a.jsx("div", { className: `absolute right-0 top-3 bottom-3 w-1 bg-color-blue-500 rounded-full ${c}` }) : /* @__PURE__ */ a.jsx("div", { className: `absolute bottom-0 left-0 right-0 h-1 bg-color-blue-500 rounded-full ${c}` }))
|
|
8166
8165
|
]
|
|
8167
8166
|
},
|
|
8168
8167
|
u.key
|
|
@@ -8170,7 +8169,7 @@ const $i = ({
|
|
|
8170
8169
|
})
|
|
8171
8170
|
}
|
|
8172
8171
|
),
|
|
8173
|
-
/* @__PURE__ */ a.jsx("div", { className: `mt-4 ${
|
|
8172
|
+
/* @__PURE__ */ a.jsx("div", { className: `mt-4 ${m ? "ml-6 mt-0" : ""} ${s}`, children: p == null ? void 0 : p.content })
|
|
8174
8173
|
]
|
|
8175
8174
|
}
|
|
8176
8175
|
);
|
|
@@ -8183,7 +8182,7 @@ const $i = ({
|
|
|
8183
8182
|
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
|
|
8184
8183
|
md:p-2 not-last:pb-4 w-full h-full ${t.className}`,
|
|
8185
8184
|
children: [
|
|
8186
|
-
/* @__PURE__ */ a.jsx("div", { className: `p-2 ${t.accentColor} ${t.accentBackground}
|
|
8185
|
+
/* @__PURE__ */ a.jsx("div", { className: `p-2 ${t.accentColor} ${t.accentBackground} shrink-0 flex items-center justify-center p-4 text-md rounded-lg`, children: t.icon }),
|
|
8187
8186
|
/* @__PURE__ */ a.jsxs("div", { className: "flex flex-col justify-center gap-1 w-full ", children: [
|
|
8188
8187
|
/* @__PURE__ */ a.jsx(
|
|
8189
8188
|
"div",
|
|
@@ -8208,8 +8207,8 @@ function ga({
|
|
|
8208
8207
|
onItemSelect: l,
|
|
8209
8208
|
className: s = ""
|
|
8210
8209
|
}) {
|
|
8211
|
-
const [c, d] = J(r), p = (
|
|
8212
|
-
d(
|
|
8210
|
+
const [c, d] = J(r), p = (m) => {
|
|
8211
|
+
d(m), m.onClick && m.onClick(), l && l(m);
|
|
8213
8212
|
};
|
|
8214
8213
|
return /* @__PURE__ */ a.jsx(a.Fragment, { children: /* @__PURE__ */ a.jsx(
|
|
8215
8214
|
$i,
|
|
@@ -8226,33 +8225,33 @@ function ga({
|
|
|
8226
8225
|
children: [
|
|
8227
8226
|
n && /* @__PURE__ */ a.jsx("div", { className: "pb-6", children: n }),
|
|
8228
8227
|
/* @__PURE__ */ a.jsx("nav", { className: "space-y-2 text-sm font-medium text-color-gray-700", children: e.map(
|
|
8229
|
-
(
|
|
8228
|
+
(m) => m.href ? /* @__PURE__ */ a.jsxs(
|
|
8230
8229
|
"a",
|
|
8231
8230
|
{
|
|
8232
|
-
href:
|
|
8231
|
+
href: m.href,
|
|
8233
8232
|
className: `flex items-center gap-3 py-3 px-4 cursor-pointer rounded-full w-full no-underline
|
|
8234
|
-
${
|
|
8233
|
+
${m.label === (c == null ? void 0 : c.label) ? "bg-color-blue-500 text-color-white font-medium " : "hover:bg-color-gray-50 text-color-gray-600"}
|
|
8235
8234
|
`,
|
|
8236
|
-
onClick: () => p(
|
|
8235
|
+
onClick: () => p(m),
|
|
8237
8236
|
children: [
|
|
8238
|
-
/* @__PURE__ */ a.jsx("span", { className: "text-lg", children:
|
|
8239
|
-
/* @__PURE__ */ a.jsx("span", { children:
|
|
8237
|
+
/* @__PURE__ */ a.jsx("span", { className: "text-lg", children: m.icon }),
|
|
8238
|
+
/* @__PURE__ */ a.jsx("span", { children: m.label })
|
|
8240
8239
|
]
|
|
8241
8240
|
},
|
|
8242
|
-
|
|
8241
|
+
m.label
|
|
8243
8242
|
) : /* @__PURE__ */ a.jsxs(
|
|
8244
8243
|
"button",
|
|
8245
8244
|
{
|
|
8246
|
-
onClick: () => p(
|
|
8245
|
+
onClick: () => p(m),
|
|
8247
8246
|
className: `flex items-center gap-3 py-3 px-4 cursor-pointer rounded-full w-full no-underline
|
|
8248
|
-
${
|
|
8247
|
+
${m.label === (c == null ? void 0 : c.label) ? "bg-color-blue-500 text-color-white font-medium " : "hover:bg-color-gray-50 text-color-gray-600 bg-color-transparent"}
|
|
8249
8248
|
`,
|
|
8250
8249
|
children: [
|
|
8251
|
-
/* @__PURE__ */ a.jsx("span", { className: "text-lg", children:
|
|
8252
|
-
/* @__PURE__ */ a.jsx("span", { children:
|
|
8250
|
+
/* @__PURE__ */ a.jsx("span", { className: "text-lg", children: m.icon }),
|
|
8251
|
+
/* @__PURE__ */ a.jsx("span", { children: m.label })
|
|
8253
8252
|
]
|
|
8254
8253
|
},
|
|
8255
|
-
|
|
8254
|
+
m.label
|
|
8256
8255
|
)
|
|
8257
8256
|
) })
|
|
8258
8257
|
]
|