@processhub-lib/react 1.0.0
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/README.md +6 -0
- package/dist/context/ThemeContext.d.ts +22 -0
- package/dist/index-B6iFW4Kz.js +1171 -0
- package/dist/index-fvSAulfO.cjs +30 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.es.js +10 -0
- package/dist/style.css +1 -0
- package/dist/ui/Button/colors.d.ts +162 -0
- package/dist/ui/Button/index.d.ts +3 -0
- package/dist/ui/Button/types/button.d.ts +16 -0
- package/dist/ui/Input/index.d.ts +3 -0
- package/dist/ui/Input/types/input.d.ts +10 -0
- package/dist/ui/Select/index.d.ts +3 -0
- package/dist/ui/Select/types/select.d.ts +16 -0
- package/dist/ui/index.d.ts +3 -0
- package/dist/ui.cjs.js +1 -0
- package/dist/ui.d.ts +1 -0
- package/dist/ui.es.js +6 -0
- package/dist/utils/classnames.d.ts +16 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils.cjs.js +1 -0
- package/dist/utils.d.ts +1 -0
- package/dist/utils.es.js +29 -0
- package/package.json +56 -0
- package/postcss.config.js +5 -0
- package/src/context/ThemeContext.tsx +45 -0
- package/src/index.ts +4 -0
- package/src/style.css +1 -0
- package/src/ui/Button/colors.tsx +163 -0
- package/src/ui/Button/index.tsx +46 -0
- package/src/ui/Button/types/button.ts +17 -0
- package/src/ui/Input/index.tsx +74 -0
- package/src/ui/Input/types/input.ts +11 -0
- package/src/ui/Select/index.tsx +149 -0
- package/src/ui/Select/types/select.ts +16 -0
- package/src/ui/index.ts +3 -0
- package/src/utils/classnames.tsx +89 -0
- package/src/utils/index.ts +1 -0
- package/tailwind.config.js +13 -0
- package/tsconfig.json +26 -0
- package/tsconfig.node.json +10 -0
- package/vite.config.ts +31 -0
|
@@ -0,0 +1,1171 @@
|
|
|
1
|
+
import * as o from "react";
|
|
2
|
+
import We, { createContext as Ye, useContext as jr, useState as se, useRef as Cr, useEffect as Ie } from "react";
|
|
3
|
+
import { classnames as N } from "./utils.es.js";
|
|
4
|
+
var de = { exports: {} }, Y = {};
|
|
5
|
+
/**
|
|
6
|
+
* @license React
|
|
7
|
+
* react-jsx-runtime.production.min.js
|
|
8
|
+
*
|
|
9
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
10
|
+
*
|
|
11
|
+
* This source code is licensed under the MIT license found in the
|
|
12
|
+
* LICENSE file in the root directory of this source tree.
|
|
13
|
+
*/
|
|
14
|
+
var Ve;
|
|
15
|
+
function Ar() {
|
|
16
|
+
if (Ve) return Y;
|
|
17
|
+
Ve = 1;
|
|
18
|
+
var n = We, l = Symbol.for("react.element"), b = Symbol.for("react.fragment"), v = Object.prototype.hasOwnProperty, p = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, _ = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
19
|
+
function A(x, c, E) {
|
|
20
|
+
var u, w = {}, T = null, P = null;
|
|
21
|
+
E !== void 0 && (T = "" + E), c.key !== void 0 && (T = "" + c.key), c.ref !== void 0 && (P = c.ref);
|
|
22
|
+
for (u in c) v.call(c, u) && !_.hasOwnProperty(u) && (w[u] = c[u]);
|
|
23
|
+
if (x && x.defaultProps) for (u in c = x.defaultProps, c) w[u] === void 0 && (w[u] = c[u]);
|
|
24
|
+
return { $$typeof: l, type: x, key: T, ref: P, props: w, _owner: p.current };
|
|
25
|
+
}
|
|
26
|
+
return Y.Fragment = b, Y.jsx = A, Y.jsxs = A, Y;
|
|
27
|
+
}
|
|
28
|
+
var H = {};
|
|
29
|
+
/**
|
|
30
|
+
* @license React
|
|
31
|
+
* react-jsx-runtime.development.js
|
|
32
|
+
*
|
|
33
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
34
|
+
*
|
|
35
|
+
* This source code is licensed under the MIT license found in the
|
|
36
|
+
* LICENSE file in the root directory of this source tree.
|
|
37
|
+
*/
|
|
38
|
+
var Ze;
|
|
39
|
+
function Tr() {
|
|
40
|
+
return Ze || (Ze = 1, process.env.NODE_ENV !== "production" && function() {
|
|
41
|
+
var n = We, l = Symbol.for("react.element"), b = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), _ = Symbol.for("react.profiler"), A = Symbol.for("react.provider"), x = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), P = Symbol.for("react.offscreen"), F = Symbol.iterator, B = "@@iterator";
|
|
42
|
+
function z(e) {
|
|
43
|
+
if (e === null || typeof e != "object")
|
|
44
|
+
return null;
|
|
45
|
+
var r = F && e[F] || e[B];
|
|
46
|
+
return typeof r == "function" ? r : null;
|
|
47
|
+
}
|
|
48
|
+
var k = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
49
|
+
function y(e) {
|
|
50
|
+
{
|
|
51
|
+
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++)
|
|
52
|
+
t[a - 1] = arguments[a];
|
|
53
|
+
J("error", e, t);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
function J(e, r, t) {
|
|
57
|
+
{
|
|
58
|
+
var a = k.ReactDebugCurrentFrame, d = a.getStackAddendum();
|
|
59
|
+
d !== "" && (r += "%s", t = t.concat([d]));
|
|
60
|
+
var f = t.map(function(s) {
|
|
61
|
+
return String(s);
|
|
62
|
+
});
|
|
63
|
+
f.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, f);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
var Q = !1, Z = !1, j = !1, U = !1, qe = !1, ve;
|
|
67
|
+
ve = Symbol.for("react.module.reference");
|
|
68
|
+
function Ke(e) {
|
|
69
|
+
return !!(typeof e == "string" || typeof e == "function" || e === v || e === _ || qe || e === p || e === E || e === u || U || e === P || Q || Z || j || typeof e == "object" && e !== null && (e.$$typeof === T || e.$$typeof === w || e.$$typeof === A || e.$$typeof === x || e.$$typeof === c || // This needs to include all possible module reference object
|
|
70
|
+
// types supported by any Flight configuration anywhere since
|
|
71
|
+
// we don't know which Flight build this will end up being used
|
|
72
|
+
// with.
|
|
73
|
+
e.$$typeof === ve || e.getModuleId !== void 0));
|
|
74
|
+
}
|
|
75
|
+
function Ge(e, r, t) {
|
|
76
|
+
var a = e.displayName;
|
|
77
|
+
if (a)
|
|
78
|
+
return a;
|
|
79
|
+
var d = r.displayName || r.name || "";
|
|
80
|
+
return d !== "" ? t + "(" + d + ")" : t;
|
|
81
|
+
}
|
|
82
|
+
function ge(e) {
|
|
83
|
+
return e.displayName || "Context";
|
|
84
|
+
}
|
|
85
|
+
function L(e) {
|
|
86
|
+
if (e == null)
|
|
87
|
+
return null;
|
|
88
|
+
if (typeof e.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
89
|
+
return e.displayName || e.name || null;
|
|
90
|
+
if (typeof e == "string")
|
|
91
|
+
return e;
|
|
92
|
+
switch (e) {
|
|
93
|
+
case v:
|
|
94
|
+
return "Fragment";
|
|
95
|
+
case b:
|
|
96
|
+
return "Portal";
|
|
97
|
+
case _:
|
|
98
|
+
return "Profiler";
|
|
99
|
+
case p:
|
|
100
|
+
return "StrictMode";
|
|
101
|
+
case E:
|
|
102
|
+
return "Suspense";
|
|
103
|
+
case u:
|
|
104
|
+
return "SuspenseList";
|
|
105
|
+
}
|
|
106
|
+
if (typeof e == "object")
|
|
107
|
+
switch (e.$$typeof) {
|
|
108
|
+
case x:
|
|
109
|
+
var r = e;
|
|
110
|
+
return ge(r) + ".Consumer";
|
|
111
|
+
case A:
|
|
112
|
+
var t = e;
|
|
113
|
+
return ge(t._context) + ".Provider";
|
|
114
|
+
case c:
|
|
115
|
+
return Ge(e, e.render, "ForwardRef");
|
|
116
|
+
case w:
|
|
117
|
+
var a = e.displayName || null;
|
|
118
|
+
return a !== null ? a : L(e.type) || "Memo";
|
|
119
|
+
case T: {
|
|
120
|
+
var d = e, f = d._payload, s = d._init;
|
|
121
|
+
try {
|
|
122
|
+
return L(s(f));
|
|
123
|
+
} catch {
|
|
124
|
+
return null;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
return null;
|
|
129
|
+
}
|
|
130
|
+
var M = Object.assign, $ = 0, be, he, pe, me, xe, ye, Ee;
|
|
131
|
+
function we() {
|
|
132
|
+
}
|
|
133
|
+
we.__reactDisabledLog = !0;
|
|
134
|
+
function Xe() {
|
|
135
|
+
{
|
|
136
|
+
if ($ === 0) {
|
|
137
|
+
be = console.log, he = console.info, pe = console.warn, me = console.error, xe = console.group, ye = console.groupCollapsed, Ee = console.groupEnd;
|
|
138
|
+
var e = {
|
|
139
|
+
configurable: !0,
|
|
140
|
+
enumerable: !0,
|
|
141
|
+
value: we,
|
|
142
|
+
writable: !0
|
|
143
|
+
};
|
|
144
|
+
Object.defineProperties(console, {
|
|
145
|
+
info: e,
|
|
146
|
+
log: e,
|
|
147
|
+
warn: e,
|
|
148
|
+
error: e,
|
|
149
|
+
group: e,
|
|
150
|
+
groupCollapsed: e,
|
|
151
|
+
groupEnd: e
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
$++;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
function Qe() {
|
|
158
|
+
{
|
|
159
|
+
if ($--, $ === 0) {
|
|
160
|
+
var e = {
|
|
161
|
+
configurable: !0,
|
|
162
|
+
enumerable: !0,
|
|
163
|
+
writable: !0
|
|
164
|
+
};
|
|
165
|
+
Object.defineProperties(console, {
|
|
166
|
+
log: M({}, e, {
|
|
167
|
+
value: be
|
|
168
|
+
}),
|
|
169
|
+
info: M({}, e, {
|
|
170
|
+
value: he
|
|
171
|
+
}),
|
|
172
|
+
warn: M({}, e, {
|
|
173
|
+
value: pe
|
|
174
|
+
}),
|
|
175
|
+
error: M({}, e, {
|
|
176
|
+
value: me
|
|
177
|
+
}),
|
|
178
|
+
group: M({}, e, {
|
|
179
|
+
value: xe
|
|
180
|
+
}),
|
|
181
|
+
groupCollapsed: M({}, e, {
|
|
182
|
+
value: ye
|
|
183
|
+
}),
|
|
184
|
+
groupEnd: M({}, e, {
|
|
185
|
+
value: Ee
|
|
186
|
+
})
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
$ < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
var ee = k.ReactCurrentDispatcher, re;
|
|
193
|
+
function q(e, r, t) {
|
|
194
|
+
{
|
|
195
|
+
if (re === void 0)
|
|
196
|
+
try {
|
|
197
|
+
throw Error();
|
|
198
|
+
} catch (d) {
|
|
199
|
+
var a = d.stack.trim().match(/\n( *(at )?)/);
|
|
200
|
+
re = a && a[1] || "";
|
|
201
|
+
}
|
|
202
|
+
return `
|
|
203
|
+
` + re + e;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
var te = !1, K;
|
|
207
|
+
{
|
|
208
|
+
var er = typeof WeakMap == "function" ? WeakMap : Map;
|
|
209
|
+
K = new er();
|
|
210
|
+
}
|
|
211
|
+
function Re(e, r) {
|
|
212
|
+
if (!e || te)
|
|
213
|
+
return "";
|
|
214
|
+
{
|
|
215
|
+
var t = K.get(e);
|
|
216
|
+
if (t !== void 0)
|
|
217
|
+
return t;
|
|
218
|
+
}
|
|
219
|
+
var a;
|
|
220
|
+
te = !0;
|
|
221
|
+
var d = Error.prepareStackTrace;
|
|
222
|
+
Error.prepareStackTrace = void 0;
|
|
223
|
+
var f;
|
|
224
|
+
f = ee.current, ee.current = null, Xe();
|
|
225
|
+
try {
|
|
226
|
+
if (r) {
|
|
227
|
+
var s = function() {
|
|
228
|
+
throw Error();
|
|
229
|
+
};
|
|
230
|
+
if (Object.defineProperty(s.prototype, "props", {
|
|
231
|
+
set: function() {
|
|
232
|
+
throw Error();
|
|
233
|
+
}
|
|
234
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
235
|
+
try {
|
|
236
|
+
Reflect.construct(s, []);
|
|
237
|
+
} catch (S) {
|
|
238
|
+
a = S;
|
|
239
|
+
}
|
|
240
|
+
Reflect.construct(e, [], s);
|
|
241
|
+
} else {
|
|
242
|
+
try {
|
|
243
|
+
s.call();
|
|
244
|
+
} catch (S) {
|
|
245
|
+
a = S;
|
|
246
|
+
}
|
|
247
|
+
e.call(s.prototype);
|
|
248
|
+
}
|
|
249
|
+
} else {
|
|
250
|
+
try {
|
|
251
|
+
throw Error();
|
|
252
|
+
} catch (S) {
|
|
253
|
+
a = S;
|
|
254
|
+
}
|
|
255
|
+
e();
|
|
256
|
+
}
|
|
257
|
+
} catch (S) {
|
|
258
|
+
if (S && a && typeof S.stack == "string") {
|
|
259
|
+
for (var i = S.stack.split(`
|
|
260
|
+
`), C = a.stack.split(`
|
|
261
|
+
`), h = i.length - 1, m = C.length - 1; h >= 1 && m >= 0 && i[h] !== C[m]; )
|
|
262
|
+
m--;
|
|
263
|
+
for (; h >= 1 && m >= 0; h--, m--)
|
|
264
|
+
if (i[h] !== C[m]) {
|
|
265
|
+
if (h !== 1 || m !== 1)
|
|
266
|
+
do
|
|
267
|
+
if (h--, m--, m < 0 || i[h] !== C[m]) {
|
|
268
|
+
var O = `
|
|
269
|
+
` + i[h].replace(" at new ", " at ");
|
|
270
|
+
return e.displayName && O.includes("<anonymous>") && (O = O.replace("<anonymous>", e.displayName)), typeof e == "function" && K.set(e, O), O;
|
|
271
|
+
}
|
|
272
|
+
while (h >= 1 && m >= 0);
|
|
273
|
+
break;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
} finally {
|
|
277
|
+
te = !1, ee.current = f, Qe(), Error.prepareStackTrace = d;
|
|
278
|
+
}
|
|
279
|
+
var V = e ? e.displayName || e.name : "", D = V ? q(V) : "";
|
|
280
|
+
return typeof e == "function" && K.set(e, D), D;
|
|
281
|
+
}
|
|
282
|
+
function rr(e, r, t) {
|
|
283
|
+
return Re(e, !1);
|
|
284
|
+
}
|
|
285
|
+
function tr(e) {
|
|
286
|
+
var r = e.prototype;
|
|
287
|
+
return !!(r && r.isReactComponent);
|
|
288
|
+
}
|
|
289
|
+
function G(e, r, t) {
|
|
290
|
+
if (e == null)
|
|
291
|
+
return "";
|
|
292
|
+
if (typeof e == "function")
|
|
293
|
+
return Re(e, tr(e));
|
|
294
|
+
if (typeof e == "string")
|
|
295
|
+
return q(e);
|
|
296
|
+
switch (e) {
|
|
297
|
+
case E:
|
|
298
|
+
return q("Suspense");
|
|
299
|
+
case u:
|
|
300
|
+
return q("SuspenseList");
|
|
301
|
+
}
|
|
302
|
+
if (typeof e == "object")
|
|
303
|
+
switch (e.$$typeof) {
|
|
304
|
+
case c:
|
|
305
|
+
return rr(e.render);
|
|
306
|
+
case w:
|
|
307
|
+
return G(e.type, r, t);
|
|
308
|
+
case T: {
|
|
309
|
+
var a = e, d = a._payload, f = a._init;
|
|
310
|
+
try {
|
|
311
|
+
return G(f(d), r, t);
|
|
312
|
+
} catch {
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
return "";
|
|
317
|
+
}
|
|
318
|
+
var W = Object.prototype.hasOwnProperty, _e = {}, je = k.ReactDebugCurrentFrame;
|
|
319
|
+
function X(e) {
|
|
320
|
+
if (e) {
|
|
321
|
+
var r = e._owner, t = G(e.type, e._source, r ? r.type : null);
|
|
322
|
+
je.setExtraStackFrame(t);
|
|
323
|
+
} else
|
|
324
|
+
je.setExtraStackFrame(null);
|
|
325
|
+
}
|
|
326
|
+
function nr(e, r, t, a, d) {
|
|
327
|
+
{
|
|
328
|
+
var f = Function.call.bind(W);
|
|
329
|
+
for (var s in e)
|
|
330
|
+
if (f(e, s)) {
|
|
331
|
+
var i = void 0;
|
|
332
|
+
try {
|
|
333
|
+
if (typeof e[s] != "function") {
|
|
334
|
+
var C = Error((a || "React class") + ": " + t + " type `" + s + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[s] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
335
|
+
throw C.name = "Invariant Violation", C;
|
|
336
|
+
}
|
|
337
|
+
i = e[s](r, s, a, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
338
|
+
} catch (h) {
|
|
339
|
+
i = h;
|
|
340
|
+
}
|
|
341
|
+
i && !(i instanceof Error) && (X(d), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", a || "React class", t, s, typeof i), X(null)), i instanceof Error && !(i.message in _e) && (_e[i.message] = !0, X(d), y("Failed %s type: %s", t, i.message), X(null));
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
var ar = Array.isArray;
|
|
346
|
+
function ne(e) {
|
|
347
|
+
return ar(e);
|
|
348
|
+
}
|
|
349
|
+
function or(e) {
|
|
350
|
+
{
|
|
351
|
+
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
352
|
+
return t;
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
function lr(e) {
|
|
356
|
+
try {
|
|
357
|
+
return Ce(e), !1;
|
|
358
|
+
} catch {
|
|
359
|
+
return !0;
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
function Ce(e) {
|
|
363
|
+
return "" + e;
|
|
364
|
+
}
|
|
365
|
+
function Ae(e) {
|
|
366
|
+
if (lr(e))
|
|
367
|
+
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", or(e)), Ce(e);
|
|
368
|
+
}
|
|
369
|
+
var Te = k.ReactCurrentOwner, ir = {
|
|
370
|
+
key: !0,
|
|
371
|
+
ref: !0,
|
|
372
|
+
__self: !0,
|
|
373
|
+
__source: !0
|
|
374
|
+
}, Se, Oe;
|
|
375
|
+
function sr(e) {
|
|
376
|
+
if (W.call(e, "ref")) {
|
|
377
|
+
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
378
|
+
if (r && r.isReactWarning)
|
|
379
|
+
return !1;
|
|
380
|
+
}
|
|
381
|
+
return e.ref !== void 0;
|
|
382
|
+
}
|
|
383
|
+
function ur(e) {
|
|
384
|
+
if (W.call(e, "key")) {
|
|
385
|
+
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
386
|
+
if (r && r.isReactWarning)
|
|
387
|
+
return !1;
|
|
388
|
+
}
|
|
389
|
+
return e.key !== void 0;
|
|
390
|
+
}
|
|
391
|
+
function cr(e, r) {
|
|
392
|
+
typeof e.ref == "string" && Te.current;
|
|
393
|
+
}
|
|
394
|
+
function dr(e, r) {
|
|
395
|
+
{
|
|
396
|
+
var t = function() {
|
|
397
|
+
Se || (Se = !0, y("%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://reactjs.org/link/special-props)", r));
|
|
398
|
+
};
|
|
399
|
+
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
400
|
+
get: t,
|
|
401
|
+
configurable: !0
|
|
402
|
+
});
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
function fr(e, r) {
|
|
406
|
+
{
|
|
407
|
+
var t = function() {
|
|
408
|
+
Oe || (Oe = !0, y("%s: `ref` 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://reactjs.org/link/special-props)", r));
|
|
409
|
+
};
|
|
410
|
+
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
411
|
+
get: t,
|
|
412
|
+
configurable: !0
|
|
413
|
+
});
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
var vr = function(e, r, t, a, d, f, s) {
|
|
417
|
+
var i = {
|
|
418
|
+
// This tag allows us to uniquely identify this as a React Element
|
|
419
|
+
$$typeof: l,
|
|
420
|
+
// Built-in properties that belong on the element
|
|
421
|
+
type: e,
|
|
422
|
+
key: r,
|
|
423
|
+
ref: t,
|
|
424
|
+
props: s,
|
|
425
|
+
// Record the component responsible for creating this element.
|
|
426
|
+
_owner: f
|
|
427
|
+
};
|
|
428
|
+
return i._store = {}, Object.defineProperty(i._store, "validated", {
|
|
429
|
+
configurable: !1,
|
|
430
|
+
enumerable: !1,
|
|
431
|
+
writable: !0,
|
|
432
|
+
value: !1
|
|
433
|
+
}), Object.defineProperty(i, "_self", {
|
|
434
|
+
configurable: !1,
|
|
435
|
+
enumerable: !1,
|
|
436
|
+
writable: !1,
|
|
437
|
+
value: a
|
|
438
|
+
}), Object.defineProperty(i, "_source", {
|
|
439
|
+
configurable: !1,
|
|
440
|
+
enumerable: !1,
|
|
441
|
+
writable: !1,
|
|
442
|
+
value: d
|
|
443
|
+
}), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
|
|
444
|
+
};
|
|
445
|
+
function gr(e, r, t, a, d) {
|
|
446
|
+
{
|
|
447
|
+
var f, s = {}, i = null, C = null;
|
|
448
|
+
t !== void 0 && (Ae(t), i = "" + t), ur(r) && (Ae(r.key), i = "" + r.key), sr(r) && (C = r.ref, cr(r, d));
|
|
449
|
+
for (f in r)
|
|
450
|
+
W.call(r, f) && !ir.hasOwnProperty(f) && (s[f] = r[f]);
|
|
451
|
+
if (e && e.defaultProps) {
|
|
452
|
+
var h = e.defaultProps;
|
|
453
|
+
for (f in h)
|
|
454
|
+
s[f] === void 0 && (s[f] = h[f]);
|
|
455
|
+
}
|
|
456
|
+
if (i || C) {
|
|
457
|
+
var m = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
458
|
+
i && dr(s, m), C && fr(s, m);
|
|
459
|
+
}
|
|
460
|
+
return vr(e, i, C, d, a, Te.current, s);
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
var ae = k.ReactCurrentOwner, Pe = k.ReactDebugCurrentFrame;
|
|
464
|
+
function I(e) {
|
|
465
|
+
if (e) {
|
|
466
|
+
var r = e._owner, t = G(e.type, e._source, r ? r.type : null);
|
|
467
|
+
Pe.setExtraStackFrame(t);
|
|
468
|
+
} else
|
|
469
|
+
Pe.setExtraStackFrame(null);
|
|
470
|
+
}
|
|
471
|
+
var oe;
|
|
472
|
+
oe = !1;
|
|
473
|
+
function le(e) {
|
|
474
|
+
return typeof e == "object" && e !== null && e.$$typeof === l;
|
|
475
|
+
}
|
|
476
|
+
function ke() {
|
|
477
|
+
{
|
|
478
|
+
if (ae.current) {
|
|
479
|
+
var e = L(ae.current.type);
|
|
480
|
+
if (e)
|
|
481
|
+
return `
|
|
482
|
+
|
|
483
|
+
Check the render method of \`` + e + "`.";
|
|
484
|
+
}
|
|
485
|
+
return "";
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
function br(e) {
|
|
489
|
+
return "";
|
|
490
|
+
}
|
|
491
|
+
var Le = {};
|
|
492
|
+
function hr(e) {
|
|
493
|
+
{
|
|
494
|
+
var r = ke();
|
|
495
|
+
if (!r) {
|
|
496
|
+
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
497
|
+
t && (r = `
|
|
498
|
+
|
|
499
|
+
Check the top-level render call using <` + t + ">.");
|
|
500
|
+
}
|
|
501
|
+
return r;
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
function Fe(e, r) {
|
|
505
|
+
{
|
|
506
|
+
if (!e._store || e._store.validated || e.key != null)
|
|
507
|
+
return;
|
|
508
|
+
e._store.validated = !0;
|
|
509
|
+
var t = hr(r);
|
|
510
|
+
if (Le[t])
|
|
511
|
+
return;
|
|
512
|
+
Le[t] = !0;
|
|
513
|
+
var a = "";
|
|
514
|
+
e && e._owner && e._owner !== ae.current && (a = " It was passed a child from " + L(e._owner.type) + "."), I(e), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, a), I(null);
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
function Me(e, r) {
|
|
518
|
+
{
|
|
519
|
+
if (typeof e != "object")
|
|
520
|
+
return;
|
|
521
|
+
if (ne(e))
|
|
522
|
+
for (var t = 0; t < e.length; t++) {
|
|
523
|
+
var a = e[t];
|
|
524
|
+
le(a) && Fe(a, r);
|
|
525
|
+
}
|
|
526
|
+
else if (le(e))
|
|
527
|
+
e._store && (e._store.validated = !0);
|
|
528
|
+
else if (e) {
|
|
529
|
+
var d = z(e);
|
|
530
|
+
if (typeof d == "function" && d !== e.entries)
|
|
531
|
+
for (var f = d.call(e), s; !(s = f.next()).done; )
|
|
532
|
+
le(s.value) && Fe(s.value, r);
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
function pr(e) {
|
|
537
|
+
{
|
|
538
|
+
var r = e.type;
|
|
539
|
+
if (r == null || typeof r == "string")
|
|
540
|
+
return;
|
|
541
|
+
var t;
|
|
542
|
+
if (typeof r == "function")
|
|
543
|
+
t = r.propTypes;
|
|
544
|
+
else if (typeof r == "object" && (r.$$typeof === c || // Note: Memo only checks outer props here.
|
|
545
|
+
// Inner props are checked in the reconciler.
|
|
546
|
+
r.$$typeof === w))
|
|
547
|
+
t = r.propTypes;
|
|
548
|
+
else
|
|
549
|
+
return;
|
|
550
|
+
if (t) {
|
|
551
|
+
var a = L(r);
|
|
552
|
+
nr(t, e.props, "prop", a, e);
|
|
553
|
+
} else if (r.PropTypes !== void 0 && !oe) {
|
|
554
|
+
oe = !0;
|
|
555
|
+
var d = L(r);
|
|
556
|
+
y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", d || "Unknown");
|
|
557
|
+
}
|
|
558
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
function mr(e) {
|
|
562
|
+
{
|
|
563
|
+
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
564
|
+
var a = r[t];
|
|
565
|
+
if (a !== "children" && a !== "key") {
|
|
566
|
+
I(e), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), I(null);
|
|
567
|
+
break;
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
e.ref !== null && (I(e), y("Invalid attribute `ref` supplied to `React.Fragment`."), I(null));
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
var De = {};
|
|
574
|
+
function Ne(e, r, t, a, d, f) {
|
|
575
|
+
{
|
|
576
|
+
var s = Ke(e);
|
|
577
|
+
if (!s) {
|
|
578
|
+
var i = "";
|
|
579
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (i += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
580
|
+
var C = br();
|
|
581
|
+
C ? i += C : i += ke();
|
|
582
|
+
var h;
|
|
583
|
+
e === null ? h = "null" : ne(e) ? h = "array" : e !== void 0 && e.$$typeof === l ? (h = "<" + (L(e.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : h = typeof e, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", h, i);
|
|
584
|
+
}
|
|
585
|
+
var m = gr(e, r, t, d, f);
|
|
586
|
+
if (m == null)
|
|
587
|
+
return m;
|
|
588
|
+
if (s) {
|
|
589
|
+
var O = r.children;
|
|
590
|
+
if (O !== void 0)
|
|
591
|
+
if (a)
|
|
592
|
+
if (ne(O)) {
|
|
593
|
+
for (var V = 0; V < O.length; V++)
|
|
594
|
+
Me(O[V], e);
|
|
595
|
+
Object.freeze && Object.freeze(O);
|
|
596
|
+
} else
|
|
597
|
+
y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
598
|
+
else
|
|
599
|
+
Me(O, e);
|
|
600
|
+
}
|
|
601
|
+
if (W.call(r, "key")) {
|
|
602
|
+
var D = L(e), S = Object.keys(r).filter(function(_r) {
|
|
603
|
+
return _r !== "key";
|
|
604
|
+
}), ie = S.length > 0 ? "{key: someKey, " + S.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
605
|
+
if (!De[D + ie]) {
|
|
606
|
+
var Rr = S.length > 0 ? "{" + S.join(": ..., ") + ": ...}" : "{}";
|
|
607
|
+
y(`A props object containing a "key" prop is being spread into JSX:
|
|
608
|
+
let props = %s;
|
|
609
|
+
<%s {...props} />
|
|
610
|
+
React keys must be passed directly to JSX without using spread:
|
|
611
|
+
let props = %s;
|
|
612
|
+
<%s key={someKey} {...props} />`, ie, D, Rr, D), De[D + ie] = !0;
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
return e === v ? mr(m) : pr(m), m;
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
function xr(e, r, t) {
|
|
619
|
+
return Ne(e, r, t, !0);
|
|
620
|
+
}
|
|
621
|
+
function yr(e, r, t) {
|
|
622
|
+
return Ne(e, r, t, !1);
|
|
623
|
+
}
|
|
624
|
+
var Er = yr, wr = xr;
|
|
625
|
+
H.Fragment = v, H.jsx = Er, H.jsxs = wr;
|
|
626
|
+
}()), H;
|
|
627
|
+
}
|
|
628
|
+
process.env.NODE_ENV === "production" ? de.exports = Ar() : de.exports = Tr();
|
|
629
|
+
var g = de.exports;
|
|
630
|
+
const He = {
|
|
631
|
+
green: {
|
|
632
|
+
solid: {
|
|
633
|
+
bg: "bg-green-500",
|
|
634
|
+
hover: "hover:bg-green-600 hover:text-white",
|
|
635
|
+
text: "text-white",
|
|
636
|
+
border: "border-green-500"
|
|
637
|
+
},
|
|
638
|
+
outline: {
|
|
639
|
+
bg: "bg-transparent",
|
|
640
|
+
hover: "hover:bg-green-600 hover:text-white",
|
|
641
|
+
text: "text-green-600",
|
|
642
|
+
border: "border-green-500"
|
|
643
|
+
},
|
|
644
|
+
ghost: {
|
|
645
|
+
bg: "bg-transparent",
|
|
646
|
+
hover: "hover:bg-green-600 hover:text-white",
|
|
647
|
+
text: "text-green-600",
|
|
648
|
+
border: "border-transparent"
|
|
649
|
+
}
|
|
650
|
+
},
|
|
651
|
+
blue: {
|
|
652
|
+
solid: {
|
|
653
|
+
bg: "bg-blue-500",
|
|
654
|
+
hover: "hover:bg-blue-600 hover:text-white",
|
|
655
|
+
text: "text-white",
|
|
656
|
+
border: "border-blue-500"
|
|
657
|
+
},
|
|
658
|
+
outline: {
|
|
659
|
+
bg: "bg-transparent",
|
|
660
|
+
hover: "hover:bg-blue-500 hover:text-white",
|
|
661
|
+
text: "text-blue-600",
|
|
662
|
+
border: "border-blue-500"
|
|
663
|
+
},
|
|
664
|
+
ghost: {
|
|
665
|
+
bg: "bg-transparent",
|
|
666
|
+
hover: "hover:bg-blue-500 hover:text-white",
|
|
667
|
+
text: "text-blue-600",
|
|
668
|
+
border: "border-transparent"
|
|
669
|
+
}
|
|
670
|
+
},
|
|
671
|
+
red: {
|
|
672
|
+
solid: {
|
|
673
|
+
bg: "bg-red-500",
|
|
674
|
+
hover: "hover:bg-red-600 hover:text-white",
|
|
675
|
+
text: "text-white",
|
|
676
|
+
border: "border-red-500"
|
|
677
|
+
},
|
|
678
|
+
outline: {
|
|
679
|
+
bg: "bg-transparent",
|
|
680
|
+
hover: "hover:bg-red-500 hover:text-white",
|
|
681
|
+
text: "text-red-600",
|
|
682
|
+
border: "border-red-500"
|
|
683
|
+
},
|
|
684
|
+
ghost: {
|
|
685
|
+
bg: "bg-transparent",
|
|
686
|
+
hover: "hover:bg-red-500 hover:text-white",
|
|
687
|
+
text: "text-red-600",
|
|
688
|
+
border: "border-transparent"
|
|
689
|
+
}
|
|
690
|
+
},
|
|
691
|
+
yellow: {
|
|
692
|
+
solid: {
|
|
693
|
+
bg: "bg-yellow-500",
|
|
694
|
+
hover: "hover:bg-yellow-600 hover:text-black",
|
|
695
|
+
text: "text-black",
|
|
696
|
+
border: "border-yellow-500"
|
|
697
|
+
},
|
|
698
|
+
outline: {
|
|
699
|
+
bg: "bg-transparent",
|
|
700
|
+
hover: "hover:bg-yellow-500 hover:text-white",
|
|
701
|
+
text: "text-yellow-600",
|
|
702
|
+
border: "border-yellow-500"
|
|
703
|
+
},
|
|
704
|
+
ghost: {
|
|
705
|
+
bg: "bg-transparent",
|
|
706
|
+
hover: "hover:bg-yellow-500 hover:text-white",
|
|
707
|
+
text: "text-yellow-600",
|
|
708
|
+
border: "border-transparent"
|
|
709
|
+
}
|
|
710
|
+
},
|
|
711
|
+
primary: {
|
|
712
|
+
solid: {
|
|
713
|
+
bg: "bg-primary",
|
|
714
|
+
hover: "hover:bg-primary-hover hover:text-foreground",
|
|
715
|
+
text: "text-foreground",
|
|
716
|
+
border: "border-primary"
|
|
717
|
+
},
|
|
718
|
+
outline: {
|
|
719
|
+
bg: "bg-transparent",
|
|
720
|
+
hover: "hover:bg-primary hover:text-foreground",
|
|
721
|
+
text: "text-primary",
|
|
722
|
+
border: "border-primary"
|
|
723
|
+
},
|
|
724
|
+
ghost: {
|
|
725
|
+
bg: "bg-transparent",
|
|
726
|
+
hover: "hover:bg-primary hover:text-foreground",
|
|
727
|
+
text: "text-primary",
|
|
728
|
+
border: "border-transparent"
|
|
729
|
+
}
|
|
730
|
+
},
|
|
731
|
+
secondary: {
|
|
732
|
+
solid: {
|
|
733
|
+
bg: "bg-secondary",
|
|
734
|
+
hover: "hover:bg-secondary/80 hover:text-secondary-foreground",
|
|
735
|
+
text: "text-secondary-foreground",
|
|
736
|
+
border: "border-secondary"
|
|
737
|
+
},
|
|
738
|
+
outline: {
|
|
739
|
+
bg: "bg-transparent",
|
|
740
|
+
hover: "hover:bg-secondary hover:text-secondary-foreground",
|
|
741
|
+
text: "text-secondary",
|
|
742
|
+
border: "border-secondary"
|
|
743
|
+
},
|
|
744
|
+
ghost: {
|
|
745
|
+
bg: "bg-transparent",
|
|
746
|
+
hover: "hover:bg-secondary hover:text-secondary-foreground",
|
|
747
|
+
text: "text-secondary",
|
|
748
|
+
border: "border-transparent"
|
|
749
|
+
}
|
|
750
|
+
},
|
|
751
|
+
destructive: {
|
|
752
|
+
solid: {
|
|
753
|
+
bg: "bg-destructive",
|
|
754
|
+
hover: "hover:bg-destructive/90 hover:text-destructive-foreground",
|
|
755
|
+
text: "text-destructive-foreground",
|
|
756
|
+
border: "border-destructive"
|
|
757
|
+
},
|
|
758
|
+
outline: {
|
|
759
|
+
bg: "bg-transparent",
|
|
760
|
+
hover: "hover:bg-destructive hover:text-destructive-foreground",
|
|
761
|
+
text: "text-destructive",
|
|
762
|
+
border: "border-destructive"
|
|
763
|
+
},
|
|
764
|
+
ghost: {
|
|
765
|
+
bg: "bg-transparent",
|
|
766
|
+
hover: "hover:bg-destructive hover:text-destructive-foreground",
|
|
767
|
+
text: "text-destructive",
|
|
768
|
+
border: "border-transparent"
|
|
769
|
+
}
|
|
770
|
+
},
|
|
771
|
+
card: {
|
|
772
|
+
solid: {
|
|
773
|
+
bg: "bg-card",
|
|
774
|
+
hover: "hover:bg-accent hover:text-card-foreground",
|
|
775
|
+
text: "text-card-foreground",
|
|
776
|
+
border: "border-border"
|
|
777
|
+
},
|
|
778
|
+
outline: {
|
|
779
|
+
bg: "bg-transparent",
|
|
780
|
+
hover: "hover:bg-accent hover:text-card-foreground",
|
|
781
|
+
text: "text-card-foreground",
|
|
782
|
+
border: "border-border"
|
|
783
|
+
},
|
|
784
|
+
ghost: {
|
|
785
|
+
bg: "bg-transparent",
|
|
786
|
+
hover: "hover:bg-accent hover:text-card-foreground",
|
|
787
|
+
text: "text-card-foreground",
|
|
788
|
+
border: "border-transparent"
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
}, Be = Ye(He), Sr = () => {
|
|
792
|
+
const n = jr(Be);
|
|
793
|
+
if (!n)
|
|
794
|
+
throw new Error("useTheme must be used within a ProcessHubProvider");
|
|
795
|
+
return n;
|
|
796
|
+
}, $r = ({
|
|
797
|
+
children: n,
|
|
798
|
+
theme: l = {}
|
|
799
|
+
}) => {
|
|
800
|
+
const b = { ...He, ...l };
|
|
801
|
+
return /* @__PURE__ */ g.jsx(Be.Provider, { value: b, children: n });
|
|
802
|
+
};
|
|
803
|
+
function Or({
|
|
804
|
+
title: n,
|
|
805
|
+
icon: l,
|
|
806
|
+
positionIcon: b,
|
|
807
|
+
color: v = "green",
|
|
808
|
+
variant: p = "solid",
|
|
809
|
+
disable: _ = !1,
|
|
810
|
+
className: A,
|
|
811
|
+
type: x = "button",
|
|
812
|
+
onClick: c = () => {
|
|
813
|
+
}
|
|
814
|
+
}) {
|
|
815
|
+
var T;
|
|
816
|
+
const E = Sr(), u = ((T = E[v]) == null ? void 0 : T[p]) || E.green.solid, w = N(
|
|
817
|
+
// "cursor-pointer flex items-center justify-center gap-2 text-md font-bold rounded-lg p-2.5 w-auto border transition-colors duration-150",
|
|
818
|
+
"cursor-pointer flex items-center justify-center gap-2 px-4 py-2 rounded-lg transition-colors shadow-sm font-medium text-sm border",
|
|
819
|
+
u.bg,
|
|
820
|
+
u.hover,
|
|
821
|
+
u.text,
|
|
822
|
+
u.border,
|
|
823
|
+
{
|
|
824
|
+
"opacity-50 cursor-not-allowed": _
|
|
825
|
+
},
|
|
826
|
+
A
|
|
827
|
+
);
|
|
828
|
+
return /* @__PURE__ */ g.jsxs(
|
|
829
|
+
"button",
|
|
830
|
+
{
|
|
831
|
+
type: x,
|
|
832
|
+
onClick: (P) => !_ && (c == null ? void 0 : c(P)),
|
|
833
|
+
disabled: _,
|
|
834
|
+
className: w,
|
|
835
|
+
children: [
|
|
836
|
+
b === "left" && l,
|
|
837
|
+
"testedsad",
|
|
838
|
+
n && /* @__PURE__ */ g.jsx("span", { className: "first-letter:uppercase", children: n }),
|
|
839
|
+
b === "right" && l
|
|
840
|
+
]
|
|
841
|
+
}
|
|
842
|
+
);
|
|
843
|
+
}
|
|
844
|
+
function Pr({
|
|
845
|
+
field: n,
|
|
846
|
+
title: l,
|
|
847
|
+
id: b,
|
|
848
|
+
type: v,
|
|
849
|
+
placeholder: p,
|
|
850
|
+
className: _,
|
|
851
|
+
value: A,
|
|
852
|
+
iconPosition: x,
|
|
853
|
+
icon: c,
|
|
854
|
+
error: E,
|
|
855
|
+
...u
|
|
856
|
+
}) {
|
|
857
|
+
return /* @__PURE__ */ g.jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
858
|
+
l && /* @__PURE__ */ g.jsxs(
|
|
859
|
+
"label",
|
|
860
|
+
{
|
|
861
|
+
htmlFor: b,
|
|
862
|
+
className: N("block text-md font-medium text-foreground", {
|
|
863
|
+
"text-red-700": E
|
|
864
|
+
}),
|
|
865
|
+
children: [
|
|
866
|
+
u.required && /* @__PURE__ */ g.jsx("span", { className: "text-red-500", children: "* " }),
|
|
867
|
+
l,
|
|
868
|
+
":"
|
|
869
|
+
]
|
|
870
|
+
}
|
|
871
|
+
),
|
|
872
|
+
/* @__PURE__ */ g.jsxs(
|
|
873
|
+
"div",
|
|
874
|
+
{
|
|
875
|
+
className: N(
|
|
876
|
+
"flex items-center justify-between border border-border text-foreground text-sm rounded-lg w-full",
|
|
877
|
+
{
|
|
878
|
+
"text-red-500 placeholder-red-500 border-red-500 focus:ring-red-500 focus:border-red-500": E,
|
|
879
|
+
"p-2.5": c,
|
|
880
|
+
"bg-input cursor-pointer": !u.disabled,
|
|
881
|
+
"bg-gray-400/40 cursor-not-allowed": u.disabled
|
|
882
|
+
}
|
|
883
|
+
),
|
|
884
|
+
children: [
|
|
885
|
+
x === "left" && c,
|
|
886
|
+
/* @__PURE__ */ g.jsx(
|
|
887
|
+
"input",
|
|
888
|
+
{
|
|
889
|
+
type: v,
|
|
890
|
+
id: b,
|
|
891
|
+
name: String(n),
|
|
892
|
+
value: A,
|
|
893
|
+
placeholder: p,
|
|
894
|
+
className: N(
|
|
895
|
+
"bg-transparent border-none text-foreground text-sm focus:outline-none w-full",
|
|
896
|
+
{
|
|
897
|
+
"ml-3": x === "left",
|
|
898
|
+
"p-2.5": !c,
|
|
899
|
+
"cursor-pointer": !u.disabled,
|
|
900
|
+
"cursor-not-allowed": u.disabled,
|
|
901
|
+
className: _
|
|
902
|
+
}
|
|
903
|
+
),
|
|
904
|
+
onChange: u.onChange,
|
|
905
|
+
...u
|
|
906
|
+
}
|
|
907
|
+
),
|
|
908
|
+
x === "right" && c
|
|
909
|
+
]
|
|
910
|
+
}
|
|
911
|
+
),
|
|
912
|
+
E && /* @__PURE__ */ g.jsx("div", { className: "mt-2", children: /* @__PURE__ */ g.jsx("p", { className: "text-sm text-red-600 dark:text-red-500", children: E }) })
|
|
913
|
+
] });
|
|
914
|
+
}
|
|
915
|
+
const R = [];
|
|
916
|
+
for (let n = 0; n < 256; ++n)
|
|
917
|
+
R.push((n + 256).toString(16).slice(1));
|
|
918
|
+
function kr(n, l = 0) {
|
|
919
|
+
return (R[n[l + 0]] + R[n[l + 1]] + R[n[l + 2]] + R[n[l + 3]] + "-" + R[n[l + 4]] + R[n[l + 5]] + "-" + R[n[l + 6]] + R[n[l + 7]] + "-" + R[n[l + 8]] + R[n[l + 9]] + "-" + R[n[l + 10]] + R[n[l + 11]] + R[n[l + 12]] + R[n[l + 13]] + R[n[l + 14]] + R[n[l + 15]]).toLowerCase();
|
|
920
|
+
}
|
|
921
|
+
let ue;
|
|
922
|
+
const Lr = new Uint8Array(16);
|
|
923
|
+
function Fr() {
|
|
924
|
+
if (!ue) {
|
|
925
|
+
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
926
|
+
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
927
|
+
ue = crypto.getRandomValues.bind(crypto);
|
|
928
|
+
}
|
|
929
|
+
return ue(Lr);
|
|
930
|
+
}
|
|
931
|
+
const Mr = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Ue = { randomUUID: Mr };
|
|
932
|
+
function Dr(n, l, b) {
|
|
933
|
+
var p;
|
|
934
|
+
n = n || {};
|
|
935
|
+
const v = n.random ?? ((p = n.rng) == null ? void 0 : p.call(n)) ?? Fr();
|
|
936
|
+
if (v.length < 16)
|
|
937
|
+
throw new Error("Random bytes length must be >= 16");
|
|
938
|
+
return v[6] = v[6] & 15 | 64, v[8] = v[8] & 63 | 128, kr(v);
|
|
939
|
+
}
|
|
940
|
+
function $e(n, l, b) {
|
|
941
|
+
return Ue.randomUUID && !n ? Ue.randomUUID() : Dr(n);
|
|
942
|
+
}
|
|
943
|
+
const Nr = /* @__PURE__ */ new Map([
|
|
944
|
+
[
|
|
945
|
+
"bold",
|
|
946
|
+
/* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("path", { d: "M237.24,213.21C216.12,203,204,180.64,204,152V134.73a19.94,19.94,0,0,0-12.62-18.59l-24.86-9.81a4,4,0,0,1-2.26-5.14l21.33-53A32,32,0,0,0,167.17,6,32.13,32.13,0,0,0,126.25,24.2l-.07.18-21,53.09a3.94,3.94,0,0,1-2.14,2.2,3.89,3.89,0,0,1-3,.06L74.6,69.43A19.89,19.89,0,0,0,52.87,74C31.06,96.43,20,122.68,20,152a115.46,115.46,0,0,0,32.29,80.3A12,12,0,0,0,61,236H232a12,12,0,0,0,5.24-22.79ZM68.19,92.73,91.06,102A28,28,0,0,0,127.5,86.31l20.95-53a8.32,8.32,0,0,1,10.33-4.81,8,8,0,0,1,4.61,10.57,1.17,1.17,0,0,0,0,.11L142,92.29a28.05,28.05,0,0,0,15.68,36.33L180,137.45V152c0,1,0,2.07.05,3.1l-122.44-49A101.91,101.91,0,0,1,68.19,92.73ZM116.74,212a83.73,83.73,0,0,1-22.09-39,12,12,0,0,0-23.25,6,110.27,110.27,0,0,0,14.49,33H66.25A91.53,91.53,0,0,1,44,152a84,84,0,0,1,3.41-24.11l136.67,54.66A86.58,86.58,0,0,0,198.66,212Z" }))
|
|
947
|
+
],
|
|
948
|
+
[
|
|
949
|
+
"duotone",
|
|
950
|
+
/* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(
|
|
951
|
+
"path",
|
|
952
|
+
{
|
|
953
|
+
d: "M192.8,165.12,43.93,105.57A110.88,110.88,0,0,1,61.47,82.38a8,8,0,0,1,8.67-1.81L95.52,90.85a16,16,0,0,0,20.82-9l21-53.1c4.15-10,15.47-15.33,25.63-11.53a20,20,0,0,1,11.51,26.39L153.13,96.71a16,16,0,0,0,8.93,20.75L187,127.3a8,8,0,0,1,5,7.43V152A104.58,104.58,0,0,0,192.8,165.12Z",
|
|
954
|
+
opacity: "0.2"
|
|
955
|
+
}
|
|
956
|
+
), /* @__PURE__ */ o.createElement("path", { d: "M235.5,216.81c-22.56-11-35.5-34.58-35.5-64.8V134.73a15.94,15.94,0,0,0-10.09-14.87L165,110a8,8,0,0,1-4.48-10.34l21.32-53a28,28,0,0,0-16.1-37,28.14,28.14,0,0,0-35.82,16,.61.61,0,0,0,0,.12L108.9,79a8,8,0,0,1-10.37,4.49L73.11,73.14A15.89,15.89,0,0,0,55.74,76.8C34.68,98.45,24,123.75,24,152a111.45,111.45,0,0,0,31.18,77.53A8,8,0,0,0,61,232H232a8,8,0,0,0,3.5-15.19ZM67.14,88l25.41,10.3a24,24,0,0,0,31.23-13.45l21-53c2.56-6.11,9.47-9.27,15.43-7a12,12,0,0,1,6.88,15.92L145.69,93.76a24,24,0,0,0,13.43,31.14L184,134.73V152c0,.33,0,.66,0,1L55.77,101.71A108.84,108.84,0,0,1,67.14,88Zm48,128a87.53,87.53,0,0,1-24.34-42,8,8,0,0,0-15.49,4,105.16,105.16,0,0,0,18.36,38H64.44A95.54,95.54,0,0,1,40,152a85.9,85.9,0,0,1,7.73-36.29l137.8,55.12c3,18,10.56,33.48,21.89,45.16Z" }))
|
|
957
|
+
],
|
|
958
|
+
[
|
|
959
|
+
"fill",
|
|
960
|
+
/* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("path", { d: "M235.29,216.7C212.86,205.69,200,182.12,200,152V134.69a15.94,15.94,0,0,0-10.09-14.87l-28.65-11.46A8,8,0,0,1,156.79,98l22.32-56.67C184,28.79,178,14.21,165.34,9.51a24,24,0,0,0-30.7,13.71L112.25,80.08a8,8,0,0,1-10.41,4.5L73.11,73.08a15.91,15.91,0,0,0-17.38,3.66C34.68,98.4,24,123.71,24,152a111.53,111.53,0,0,0,31.15,77.53A8.06,8.06,0,0,0,61,232H232a8,8,0,0,0,8-7.51A8.21,8.21,0,0,0,235.29,216.7ZM115.11,216a87.52,87.52,0,0,1-24.26-41.71,8.21,8.21,0,0,0-9.25-6.18A8,8,0,0,0,75.28,178a105.33,105.33,0,0,0,18.36,38H64.44A95.62,95.62,0,0,1,40,152a85.92,85.92,0,0,1,7.73-36.3l137.8,55.13c3,18.06,10.55,33.5,21.89,45.19Z" }))
|
|
961
|
+
],
|
|
962
|
+
[
|
|
963
|
+
"light",
|
|
964
|
+
/* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("path", { d: "M234.62,218.6C211.35,207.29,198,183,198,152V134.7a14,14,0,0,0-8.82-13l-24.89-9.83a10,10,0,0,1-5.59-13L180,45.9a26,26,0,0,0-15-34.33c-12.95-4.83-27.88,1.84-33.31,15l-21,53.11a10,10,0,0,1-13,5.61L72.37,75a13.9,13.9,0,0,0-15.2,3.19C36.49,99.42,26,124.26,26,152a109.53,109.53,0,0,0,30.62,76.16A6,6,0,0,0,61,230H232a6,6,0,0,0,2.62-11.4ZM65.77,86.52a2,2,0,0,1,2.12-.43l25.4,10.29a22,22,0,0,0,28.63-12.32l21-53c3-7.13,11-10.81,18-8.21a14,14,0,0,1,8,18.54l-21.36,53.1A22.05,22.05,0,0,0,159.86,123l24.88,9.83A2,2,0,0,1,186,134.7V152c0,1.34,0,2.65.08,4L52.74,102.61A110.07,110.07,0,0,1,65.77,86.52ZM114.33,218a89.6,89.6,0,0,1-25.5-43.5,6,6,0,1,0-11.62,3A102.87,102.87,0,0,0,97.81,218H63.56A97.56,97.56,0,0,1,38,152a87.42,87.42,0,0,1,8.71-38.86L187.35,169.4c3.15,19.92,11.77,36.66,25,48.6Z" }))
|
|
965
|
+
],
|
|
966
|
+
[
|
|
967
|
+
"regular",
|
|
968
|
+
/* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("path", { d: "M235.5,216.81c-22.56-11-35.5-34.58-35.5-64.8V134.73a15.94,15.94,0,0,0-10.09-14.87L165,110a8,8,0,0,1-4.48-10.34l21.32-53a28,28,0,0,0-16.1-37,28.14,28.14,0,0,0-35.82,16,.61.61,0,0,0,0,.12L108.9,79a8,8,0,0,1-10.37,4.49L73.11,73.14A15.89,15.89,0,0,0,55.74,76.8C34.68,98.45,24,123.75,24,152a111.45,111.45,0,0,0,31.18,77.53A8,8,0,0,0,61,232H232a8,8,0,0,0,3.5-15.19ZM67.14,88l25.41,10.3a24,24,0,0,0,31.23-13.45l21-53c2.56-6.11,9.47-9.27,15.43-7a12,12,0,0,1,6.88,15.92L145.69,93.76a24,24,0,0,0,13.43,31.14L184,134.73V152c0,.33,0,.66,0,1L55.77,101.71A108.84,108.84,0,0,1,67.14,88Zm48,128a87.53,87.53,0,0,1-24.34-42,8,8,0,0,0-15.49,4,105.16,105.16,0,0,0,18.36,38H64.44A95.54,95.54,0,0,1,40,152a85.9,85.9,0,0,1,7.73-36.29l137.8,55.12c3,18,10.56,33.48,21.89,45.16Z" }))
|
|
969
|
+
],
|
|
970
|
+
[
|
|
971
|
+
"thin",
|
|
972
|
+
/* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("path", { d: "M233.75,220.4C209.76,208.75,196,183.82,196,152V134.72a12,12,0,0,0-7.56-11.15l-24.89-9.83a12,12,0,0,1-6.71-15.55l21.33-53a23.88,23.88,0,0,0-31.93-31A24.72,24.72,0,0,0,133.62,27.3l-21,53.1A12,12,0,0,1,97,87.13L71.63,76.84a12,12,0,0,0-13,2.73C38.3,100.45,28,124.82,28,152a107.5,107.5,0,0,0,30.07,74.77A4,4,0,0,0,61,228H232a4,4,0,0,0,1.75-7.6ZM64.34,85.15a3.94,3.94,0,0,1,4.3-.89L94,94.55a20,20,0,0,0,26-11.2l21-53C144.39,22.19,153.61,18,161.58,21a16,16,0,0,1,9.19,21.16L149.41,95.22a20,20,0,0,0,11.18,26l24.9,9.83a4,4,0,0,1,2.51,3.72V152c0,2.36.08,4.69.22,7l-138.5-55.4A110.84,110.84,0,0,1,64.34,85.15ZM113.56,220A91.35,91.35,0,0,1,86.9,175a4,4,0,0,0-7.75,2,100.21,100.21,0,0,0,23.09,43H62.68A99.5,99.5,0,0,1,36,152a89.37,89.37,0,0,1,9.73-41.4L189.13,168c3.22,22,13.23,40.09,28.8,52Z" }))
|
|
973
|
+
]
|
|
974
|
+
]), Ir = /* @__PURE__ */ new Map([
|
|
975
|
+
[
|
|
976
|
+
"bold",
|
|
977
|
+
/* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("path", { d: "M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z" }))
|
|
978
|
+
],
|
|
979
|
+
[
|
|
980
|
+
"duotone",
|
|
981
|
+
/* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("path", { d: "M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z", opacity: "0.2" }), /* @__PURE__ */ o.createElement("path", { d: "M229.66,218.34,179.6,168.28a88.21,88.21,0,1,0-11.32,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z" }))
|
|
982
|
+
],
|
|
983
|
+
[
|
|
984
|
+
"fill",
|
|
985
|
+
/* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("path", { d: "M168,112a56,56,0,1,1-56-56A56,56,0,0,1,168,112Zm61.66,117.66a8,8,0,0,1-11.32,0l-50.06-50.07a88,88,0,1,1,11.32-11.31l50.06,50.06A8,8,0,0,1,229.66,229.66ZM112,184a72,72,0,1,0-72-72A72.08,72.08,0,0,0,112,184Z" }))
|
|
986
|
+
],
|
|
987
|
+
[
|
|
988
|
+
"light",
|
|
989
|
+
/* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("path", { d: "M228.24,219.76l-51.38-51.38a86.15,86.15,0,1,0-8.48,8.48l51.38,51.38a6,6,0,0,0,8.48-8.48ZM38,112a74,74,0,1,1,74,74A74.09,74.09,0,0,1,38,112Z" }))
|
|
990
|
+
],
|
|
991
|
+
[
|
|
992
|
+
"regular",
|
|
993
|
+
/* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("path", { d: "M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z" }))
|
|
994
|
+
],
|
|
995
|
+
[
|
|
996
|
+
"thin",
|
|
997
|
+
/* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("path", { d: "M226.83,221.17l-52.7-52.7a84.1,84.1,0,1,0-5.66,5.66l52.7,52.7a4,4,0,0,0,5.66-5.66ZM36,112a76,76,0,1,1,76,76A76.08,76.08,0,0,1,36,112Z" }))
|
|
998
|
+
]
|
|
999
|
+
]), Vr = Ye({
|
|
1000
|
+
color: "currentColor",
|
|
1001
|
+
size: "1em",
|
|
1002
|
+
weight: "regular",
|
|
1003
|
+
mirrored: !1
|
|
1004
|
+
}), fe = o.forwardRef(
|
|
1005
|
+
(n, l) => {
|
|
1006
|
+
const {
|
|
1007
|
+
alt: b,
|
|
1008
|
+
color: v,
|
|
1009
|
+
size: p,
|
|
1010
|
+
weight: _,
|
|
1011
|
+
mirrored: A,
|
|
1012
|
+
children: x,
|
|
1013
|
+
weights: c,
|
|
1014
|
+
...E
|
|
1015
|
+
} = n, {
|
|
1016
|
+
color: u = "currentColor",
|
|
1017
|
+
size: w,
|
|
1018
|
+
weight: T = "regular",
|
|
1019
|
+
mirrored: P = !1,
|
|
1020
|
+
...F
|
|
1021
|
+
} = o.useContext(Vr);
|
|
1022
|
+
return /* @__PURE__ */ o.createElement(
|
|
1023
|
+
"svg",
|
|
1024
|
+
{
|
|
1025
|
+
ref: l,
|
|
1026
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1027
|
+
width: p ?? w,
|
|
1028
|
+
height: p ?? w,
|
|
1029
|
+
fill: v ?? u,
|
|
1030
|
+
viewBox: "0 0 256 256",
|
|
1031
|
+
transform: A || P ? "scale(-1, 1)" : void 0,
|
|
1032
|
+
...F,
|
|
1033
|
+
...E
|
|
1034
|
+
},
|
|
1035
|
+
!!b && /* @__PURE__ */ o.createElement("title", null, b),
|
|
1036
|
+
x,
|
|
1037
|
+
c.get(_ ?? T)
|
|
1038
|
+
);
|
|
1039
|
+
}
|
|
1040
|
+
);
|
|
1041
|
+
fe.displayName = "IconBase";
|
|
1042
|
+
const ze = o.forwardRef((n, l) => /* @__PURE__ */ o.createElement(fe, { ref: l, ...n, weights: Nr }));
|
|
1043
|
+
ze.displayName = "BroomIcon";
|
|
1044
|
+
const Je = o.forwardRef((n, l) => /* @__PURE__ */ o.createElement(fe, { ref: l, ...n, weights: Ir }));
|
|
1045
|
+
Je.displayName = "MagnifyingGlassIcon";
|
|
1046
|
+
function ce(n, l) {
|
|
1047
|
+
return l.split(".").reduce((b, v) => b ? b[v] : void 0, n);
|
|
1048
|
+
}
|
|
1049
|
+
function Wr({
|
|
1050
|
+
field: n,
|
|
1051
|
+
title: l,
|
|
1052
|
+
id: b,
|
|
1053
|
+
placeholder: v,
|
|
1054
|
+
value: p,
|
|
1055
|
+
options: _,
|
|
1056
|
+
icon: A,
|
|
1057
|
+
iconPosition: x = "right",
|
|
1058
|
+
error: c,
|
|
1059
|
+
required: E,
|
|
1060
|
+
onChange: u,
|
|
1061
|
+
selected: w,
|
|
1062
|
+
isClearable: T,
|
|
1063
|
+
searchable: P = !1
|
|
1064
|
+
}) {
|
|
1065
|
+
const [F, B] = se(""), [z, k] = se(!1), y = Cr(null), [J, Q] = se("");
|
|
1066
|
+
Ie(() => {
|
|
1067
|
+
function j(U) {
|
|
1068
|
+
y.current && !y.current.contains(U.target) && k(!1);
|
|
1069
|
+
}
|
|
1070
|
+
return document.addEventListener("mousedown", j), () => document.removeEventListener("mousedown", j);
|
|
1071
|
+
}, []);
|
|
1072
|
+
const Z = (j) => {
|
|
1073
|
+
u == null || u(j), k(!1);
|
|
1074
|
+
};
|
|
1075
|
+
return Ie(() => {
|
|
1076
|
+
Q(p);
|
|
1077
|
+
}, [p]), /* @__PURE__ */ g.jsxs("div", { className: "flex flex-col gap-2 w-full relative", ref: y, children: [
|
|
1078
|
+
l && /* @__PURE__ */ g.jsxs(
|
|
1079
|
+
"label",
|
|
1080
|
+
{
|
|
1081
|
+
htmlFor: b,
|
|
1082
|
+
className: N("block text-md font-medium text-foreground", {
|
|
1083
|
+
"text-red-700": c
|
|
1084
|
+
}),
|
|
1085
|
+
children: [
|
|
1086
|
+
E && /* @__PURE__ */ g.jsx("span", { className: "text-red-500", children: "*" }),
|
|
1087
|
+
" ",
|
|
1088
|
+
l ? `${l}:` : ""
|
|
1089
|
+
]
|
|
1090
|
+
}
|
|
1091
|
+
),
|
|
1092
|
+
/* @__PURE__ */ g.jsxs(
|
|
1093
|
+
"div",
|
|
1094
|
+
{
|
|
1095
|
+
className: N(
|
|
1096
|
+
"cursor-pointer flex items-center justify-between bg-input border border-border text-foreground text-sm rounded-lg w-full p-2.5 pr-8",
|
|
1097
|
+
{ "border-red-500": c }
|
|
1098
|
+
),
|
|
1099
|
+
onClick: () => k(!z),
|
|
1100
|
+
children: [
|
|
1101
|
+
x === "left" && A,
|
|
1102
|
+
/* @__PURE__ */ g.jsx("span", { className: `flex-1 ${x === "left" && "ml-3"}`, children: J || v || "Selecione..." }),
|
|
1103
|
+
x === "right" && A
|
|
1104
|
+
]
|
|
1105
|
+
}
|
|
1106
|
+
),
|
|
1107
|
+
z && /* @__PURE__ */ g.jsxs("ul", { className: "absolute top-full left-0 w-[600px] max-h-72 overflow-y-auto border border-border rounded-lg bg-card z-10 shadow-lg mt-1", children: [
|
|
1108
|
+
/* @__PURE__ */ g.jsx(
|
|
1109
|
+
"li",
|
|
1110
|
+
{
|
|
1111
|
+
className: "p-3 cursor-pointer text-foreground",
|
|
1112
|
+
onClick: () => T && Z({}),
|
|
1113
|
+
children: v || "Selecione..."
|
|
1114
|
+
},
|
|
1115
|
+
$e()
|
|
1116
|
+
),
|
|
1117
|
+
P && /* @__PURE__ */ g.jsxs("li", { className: "px-2 cursor-pointer text-foreground flex gap-2 items-center justify-start", children: [
|
|
1118
|
+
/* @__PURE__ */ g.jsx("div", { className: "flex-1", children: /* @__PURE__ */ g.jsx(
|
|
1119
|
+
Pr,
|
|
1120
|
+
{
|
|
1121
|
+
field: "",
|
|
1122
|
+
title: "",
|
|
1123
|
+
placeholder: "Buscar",
|
|
1124
|
+
icon: /* @__PURE__ */ g.jsx(Je, {}),
|
|
1125
|
+
iconPosition: "left",
|
|
1126
|
+
onChange: (j) => B(j.target.value),
|
|
1127
|
+
value: F
|
|
1128
|
+
}
|
|
1129
|
+
) }),
|
|
1130
|
+
/* @__PURE__ */ g.jsx(
|
|
1131
|
+
Or,
|
|
1132
|
+
{
|
|
1133
|
+
color: "blue",
|
|
1134
|
+
title: "",
|
|
1135
|
+
icon: /* @__PURE__ */ g.jsx(ze, {}),
|
|
1136
|
+
positionIcon: "left",
|
|
1137
|
+
onClick: () => {
|
|
1138
|
+
Z({}), B("");
|
|
1139
|
+
},
|
|
1140
|
+
className: "m-0"
|
|
1141
|
+
}
|
|
1142
|
+
)
|
|
1143
|
+
] }),
|
|
1144
|
+
_.filter((j) => {
|
|
1145
|
+
const U = ce(j, n);
|
|
1146
|
+
return String(U).toLowerCase().includes(F.toLowerCase());
|
|
1147
|
+
}).map((j) => /* @__PURE__ */ g.jsx(
|
|
1148
|
+
"li",
|
|
1149
|
+
{
|
|
1150
|
+
className: N(
|
|
1151
|
+
"p-2 hover:bg-primary cursor-pointer text-foreground",
|
|
1152
|
+
{
|
|
1153
|
+
"bg-primary": ce(j, n) === p || (w == null ? void 0 : w[n]) === j[n]
|
|
1154
|
+
}
|
|
1155
|
+
),
|
|
1156
|
+
onClick: () => Z(j),
|
|
1157
|
+
children: ce(j, n)
|
|
1158
|
+
},
|
|
1159
|
+
$e()
|
|
1160
|
+
))
|
|
1161
|
+
] }),
|
|
1162
|
+
c && /* @__PURE__ */ g.jsx("p", { className: "text-sm text-red-600 mt-1", children: c })
|
|
1163
|
+
] });
|
|
1164
|
+
}
|
|
1165
|
+
export {
|
|
1166
|
+
Or as B,
|
|
1167
|
+
Pr as I,
|
|
1168
|
+
$r as P,
|
|
1169
|
+
Wr as S,
|
|
1170
|
+
Sr as u
|
|
1171
|
+
};
|