@processhub-lib/react 1.0.6 → 1.0.7

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.
@@ -1,3097 +0,0 @@
1
- import { c as br } from "./classnames-2Mts7qXW.js";
2
- import * as a from "react";
3
- import Me, { createContext as vr, useState as yr, useRef as $r, useEffect as kr } from "react";
4
- var Er = { exports: {} }, cr = {};
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 Or;
15
- function Ir() {
16
- if (Or) return cr;
17
- Or = 1;
18
- var l = Me, c = Symbol.for("react.element"), h = Symbol.for("react.fragment"), b = Object.prototype.hasOwnProperty, _ = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, S = { key: !0, ref: !0, __self: !0, __source: !0 };
19
- function k(w, d, m) {
20
- var f, y = {}, j = null, P = null;
21
- m !== void 0 && (j = "" + m), d.key !== void 0 && (j = "" + d.key), d.ref !== void 0 && (P = d.ref);
22
- for (f in d) b.call(d, f) && !S.hasOwnProperty(f) && (y[f] = d[f]);
23
- if (w && w.defaultProps) for (f in d = w.defaultProps, d) y[f] === void 0 && (y[f] = d[f]);
24
- return { $$typeof: c, type: w, key: j, ref: P, props: y, _owner: _.current };
25
- }
26
- return cr.Fragment = h, cr.jsx = k, cr.jsxs = k, cr;
27
- }
28
- var ur = {};
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 Ar;
39
- function Vr() {
40
- return Ar || (Ar = 1, process.env.NODE_ENV !== "production" && function() {
41
- var l = Me, c = Symbol.for("react.element"), h = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), _ = Symbol.for("react.strict_mode"), S = Symbol.for("react.profiler"), k = Symbol.for("react.provider"), w = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), P = Symbol.for("react.offscreen"), I = Symbol.iterator, ne = "@@iterator";
42
- function ae(e) {
43
- if (e === null || typeof e != "object")
44
- return null;
45
- var r = I && e[I] || e[ne];
46
- return typeof r == "function" ? r : null;
47
- }
48
- var C = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
49
- function v(e) {
50
- {
51
- for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
52
- t[n - 1] = arguments[n];
53
- Q("error", e, t);
54
- }
55
- }
56
- function Q(e, r, t) {
57
- {
58
- var n = C.ReactDebugCurrentFrame, s = n.getStackAddendum();
59
- s !== "" && (r += "%s", t = t.concat([s]));
60
- var u = t.map(function(i) {
61
- return String(i);
62
- });
63
- u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
64
- }
65
- }
66
- var oe = !1, Le = !1, le = !1, T = !1, ee = !1, ie;
67
- ie = Symbol.for("react.module.reference");
68
- function Pe(e) {
69
- return !!(typeof e == "string" || typeof e == "function" || e === b || e === S || ee || e === _ || e === m || e === f || T || e === P || oe || Le || le || typeof e == "object" && e !== null && (e.$$typeof === j || e.$$typeof === y || e.$$typeof === k || e.$$typeof === w || e.$$typeof === d || // 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 === ie || e.getModuleId !== void 0));
74
- }
75
- function Fe(e, r, t) {
76
- var n = e.displayName;
77
- if (n)
78
- return n;
79
- var s = r.displayName || r.name || "";
80
- return s !== "" ? t + "(" + s + ")" : t;
81
- }
82
- function se(e) {
83
- return e.displayName || "Context";
84
- }
85
- function O(e) {
86
- if (e == null)
87
- return null;
88
- if (typeof e.tag == "number" && v("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 b:
94
- return "Fragment";
95
- case h:
96
- return "Portal";
97
- case S:
98
- return "Profiler";
99
- case _:
100
- return "StrictMode";
101
- case m:
102
- return "Suspense";
103
- case f:
104
- return "SuspenseList";
105
- }
106
- if (typeof e == "object")
107
- switch (e.$$typeof) {
108
- case w:
109
- var r = e;
110
- return se(r) + ".Consumer";
111
- case k:
112
- var t = e;
113
- return se(t._context) + ".Provider";
114
- case d:
115
- return Fe(e, e.render, "ForwardRef");
116
- case y:
117
- var n = e.displayName || null;
118
- return n !== null ? n : O(e.type) || "Memo";
119
- case j: {
120
- var s = e, u = s._payload, i = s._init;
121
- try {
122
- return O(i(u));
123
- } catch {
124
- return null;
125
- }
126
- }
127
- }
128
- return null;
129
- }
130
- var L = Object.assign, Z = 0, ce, ue, fe, de, pe, ge, be;
131
- function ve() {
132
- }
133
- ve.__reactDisabledLog = !0;
134
- function Ne() {
135
- {
136
- if (Z === 0) {
137
- ce = console.log, ue = console.info, fe = console.warn, de = console.error, pe = console.group, ge = console.groupCollapsed, be = console.groupEnd;
138
- var e = {
139
- configurable: !0,
140
- enumerable: !0,
141
- value: ve,
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
- Z++;
155
- }
156
- }
157
- function Ze() {
158
- {
159
- if (Z--, Z === 0) {
160
- var e = {
161
- configurable: !0,
162
- enumerable: !0,
163
- writable: !0
164
- };
165
- Object.defineProperties(console, {
166
- log: L({}, e, {
167
- value: ce
168
- }),
169
- info: L({}, e, {
170
- value: ue
171
- }),
172
- warn: L({}, e, {
173
- value: fe
174
- }),
175
- error: L({}, e, {
176
- value: de
177
- }),
178
- group: L({}, e, {
179
- value: pe
180
- }),
181
- groupCollapsed: L({}, e, {
182
- value: ge
183
- }),
184
- groupEnd: L({}, e, {
185
- value: be
186
- })
187
- });
188
- }
189
- Z < 0 && v("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
190
- }
191
- }
192
- var Y = C.ReactCurrentDispatcher, z;
193
- function V(e, r, t) {
194
- {
195
- if (z === void 0)
196
- try {
197
- throw Error();
198
- } catch (s) {
199
- var n = s.stack.trim().match(/\n( *(at )?)/);
200
- z = n && n[1] || "";
201
- }
202
- return `
203
- ` + z + e;
204
- }
205
- }
206
- var B = !1, U;
207
- {
208
- var De = typeof WeakMap == "function" ? WeakMap : Map;
209
- U = new De();
210
- }
211
- function ye(e, r) {
212
- if (!e || B)
213
- return "";
214
- {
215
- var t = U.get(e);
216
- if (t !== void 0)
217
- return t;
218
- }
219
- var n;
220
- B = !0;
221
- var s = Error.prepareStackTrace;
222
- Error.prepareStackTrace = void 0;
223
- var u;
224
- u = Y.current, Y.current = null, Ne();
225
- try {
226
- if (r) {
227
- var i = function() {
228
- throw Error();
229
- };
230
- if (Object.defineProperty(i.prototype, "props", {
231
- set: function() {
232
- throw Error();
233
- }
234
- }), typeof Reflect == "object" && Reflect.construct) {
235
- try {
236
- Reflect.construct(i, []);
237
- } catch (E) {
238
- n = E;
239
- }
240
- Reflect.construct(e, [], i);
241
- } else {
242
- try {
243
- i.call();
244
- } catch (E) {
245
- n = E;
246
- }
247
- e.call(i.prototype);
248
- }
249
- } else {
250
- try {
251
- throw Error();
252
- } catch (E) {
253
- n = E;
254
- }
255
- e();
256
- }
257
- } catch (E) {
258
- if (E && n && typeof E.stack == "string") {
259
- for (var o = E.stack.split(`
260
- `), x = n.stack.split(`
261
- `), p = o.length - 1, g = x.length - 1; p >= 1 && g >= 0 && o[p] !== x[g]; )
262
- g--;
263
- for (; p >= 1 && g >= 0; p--, g--)
264
- if (o[p] !== x[g]) {
265
- if (p !== 1 || g !== 1)
266
- do
267
- if (p--, g--, g < 0 || o[p] !== x[g]) {
268
- var R = `
269
- ` + o[p].replace(" at new ", " at ");
270
- return e.displayName && R.includes("<anonymous>") && (R = R.replace("<anonymous>", e.displayName)), typeof e == "function" && U.set(e, R), R;
271
- }
272
- while (p >= 1 && g >= 0);
273
- break;
274
- }
275
- }
276
- } finally {
277
- B = !1, Y.current = u, Ze(), Error.prepareStackTrace = s;
278
- }
279
- var N = e ? e.displayName || e.name : "", M = N ? V(N) : "";
280
- return typeof e == "function" && U.set(e, M), M;
281
- }
282
- function $e(e, r, t) {
283
- return ye(e, !1);
284
- }
285
- function Ie(e) {
286
- var r = e.prototype;
287
- return !!(r && r.isReactComponent);
288
- }
289
- function H(e, r, t) {
290
- if (e == null)
291
- return "";
292
- if (typeof e == "function")
293
- return ye(e, Ie(e));
294
- if (typeof e == "string")
295
- return V(e);
296
- switch (e) {
297
- case m:
298
- return V("Suspense");
299
- case f:
300
- return V("SuspenseList");
301
- }
302
- if (typeof e == "object")
303
- switch (e.$$typeof) {
304
- case d:
305
- return $e(e.render);
306
- case y:
307
- return H(e.type, r, t);
308
- case j: {
309
- var n = e, s = n._payload, u = n._init;
310
- try {
311
- return H(u(s), r, t);
312
- } catch {
313
- }
314
- }
315
- }
316
- return "";
317
- }
318
- var D = Object.prototype.hasOwnProperty, he = {}, me = C.ReactDebugCurrentFrame;
319
- function W(e) {
320
- if (e) {
321
- var r = e._owner, t = H(e.type, e._source, r ? r.type : null);
322
- me.setExtraStackFrame(t);
323
- } else
324
- me.setExtraStackFrame(null);
325
- }
326
- function Ve(e, r, t, n, s) {
327
- {
328
- var u = Function.call.bind(D);
329
- for (var i in e)
330
- if (u(e, i)) {
331
- var o = void 0;
332
- try {
333
- if (typeof e[i] != "function") {
334
- var x = Error((n || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
335
- throw x.name = "Invariant Violation", x;
336
- }
337
- o = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
338
- } catch (p) {
339
- o = p;
340
- }
341
- o && !(o instanceof Error) && (W(s), v("%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).", n || "React class", t, i, typeof o), W(null)), o instanceof Error && !(o.message in he) && (he[o.message] = !0, W(s), v("Failed %s type: %s", t, o.message), W(null));
342
- }
343
- }
344
- }
345
- var Ue = Array.isArray;
346
- function J(e) {
347
- return Ue(e);
348
- }
349
- function He(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 We(e) {
356
- try {
357
- return xe(e), !1;
358
- } catch {
359
- return !0;
360
- }
361
- }
362
- function xe(e) {
363
- return "" + e;
364
- }
365
- function we(e) {
366
- if (We(e))
367
- return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", He(e)), xe(e);
368
- }
369
- var Ee = C.ReactCurrentOwner, Ye = {
370
- key: !0,
371
- ref: !0,
372
- __self: !0,
373
- __source: !0
374
- }, _e, Re;
375
- function ze(e) {
376
- if (D.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 Be(e) {
384
- if (D.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 Je(e, r) {
392
- typeof e.ref == "string" && Ee.current;
393
- }
394
- function qe(e, r) {
395
- {
396
- var t = function() {
397
- _e || (_e = !0, v("%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 Ke(e, r) {
406
- {
407
- var t = function() {
408
- Re || (Re = !0, v("%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 Xe = function(e, r, t, n, s, u, i) {
417
- var o = {
418
- // This tag allows us to uniquely identify this as a React Element
419
- $$typeof: c,
420
- // Built-in properties that belong on the element
421
- type: e,
422
- key: r,
423
- ref: t,
424
- props: i,
425
- // Record the component responsible for creating this element.
426
- _owner: u
427
- };
428
- return o._store = {}, Object.defineProperty(o._store, "validated", {
429
- configurable: !1,
430
- enumerable: !1,
431
- writable: !0,
432
- value: !1
433
- }), Object.defineProperty(o, "_self", {
434
- configurable: !1,
435
- enumerable: !1,
436
- writable: !1,
437
- value: n
438
- }), Object.defineProperty(o, "_source", {
439
- configurable: !1,
440
- enumerable: !1,
441
- writable: !1,
442
- value: s
443
- }), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
444
- };
445
- function Ge(e, r, t, n, s) {
446
- {
447
- var u, i = {}, o = null, x = null;
448
- t !== void 0 && (we(t), o = "" + t), Be(r) && (we(r.key), o = "" + r.key), ze(r) && (x = r.ref, Je(r, s));
449
- for (u in r)
450
- D.call(r, u) && !Ye.hasOwnProperty(u) && (i[u] = r[u]);
451
- if (e && e.defaultProps) {
452
- var p = e.defaultProps;
453
- for (u in p)
454
- i[u] === void 0 && (i[u] = p[u]);
455
- }
456
- if (o || x) {
457
- var g = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
458
- o && qe(i, g), x && Ke(i, g);
459
- }
460
- return Xe(e, o, x, s, n, Ee.current, i);
461
- }
462
- }
463
- var q = C.ReactCurrentOwner, je = C.ReactDebugCurrentFrame;
464
- function F(e) {
465
- if (e) {
466
- var r = e._owner, t = H(e.type, e._source, r ? r.type : null);
467
- je.setExtraStackFrame(t);
468
- } else
469
- je.setExtraStackFrame(null);
470
- }
471
- var K;
472
- K = !1;
473
- function X(e) {
474
- return typeof e == "object" && e !== null && e.$$typeof === c;
475
- }
476
- function Se() {
477
- {
478
- if (q.current) {
479
- var e = O(q.current.type);
480
- if (e)
481
- return `
482
-
483
- Check the render method of \`` + e + "`.";
484
- }
485
- return "";
486
- }
487
- }
488
- function Qe(e) {
489
- return "";
490
- }
491
- var ke = {};
492
- function er(e) {
493
- {
494
- var r = Se();
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 Oe(e, r) {
505
- {
506
- if (!e._store || e._store.validated || e.key != null)
507
- return;
508
- e._store.validated = !0;
509
- var t = er(r);
510
- if (ke[t])
511
- return;
512
- ke[t] = !0;
513
- var n = "";
514
- e && e._owner && e._owner !== q.current && (n = " It was passed a child from " + O(e._owner.type) + "."), F(e), v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), F(null);
515
- }
516
- }
517
- function Ae(e, r) {
518
- {
519
- if (typeof e != "object")
520
- return;
521
- if (J(e))
522
- for (var t = 0; t < e.length; t++) {
523
- var n = e[t];
524
- X(n) && Oe(n, r);
525
- }
526
- else if (X(e))
527
- e._store && (e._store.validated = !0);
528
- else if (e) {
529
- var s = ae(e);
530
- if (typeof s == "function" && s !== e.entries)
531
- for (var u = s.call(e), i; !(i = u.next()).done; )
532
- X(i.value) && Oe(i.value, r);
533
- }
534
- }
535
- }
536
- function rr(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 === d || // Note: Memo only checks outer props here.
545
- // Inner props are checked in the reconciler.
546
- r.$$typeof === y))
547
- t = r.propTypes;
548
- else
549
- return;
550
- if (t) {
551
- var n = O(r);
552
- Ve(t, e.props, "prop", n, e);
553
- } else if (r.PropTypes !== void 0 && !K) {
554
- K = !0;
555
- var s = O(r);
556
- v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", s || "Unknown");
557
- }
558
- typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
559
- }
560
- }
561
- function tr(e) {
562
- {
563
- for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
564
- var n = r[t];
565
- if (n !== "children" && n !== "key") {
566
- F(e), v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), F(null);
567
- break;
568
- }
569
- }
570
- e.ref !== null && (F(e), v("Invalid attribute `ref` supplied to `React.Fragment`."), F(null));
571
- }
572
- }
573
- var Ce = {};
574
- function Te(e, r, t, n, s, u) {
575
- {
576
- var i = Pe(e);
577
- if (!i) {
578
- var o = "";
579
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (o += " 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 x = Qe();
581
- x ? o += x : o += Se();
582
- var p;
583
- e === null ? p = "null" : J(e) ? p = "array" : e !== void 0 && e.$$typeof === c ? (p = "<" + (O(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : p = typeof e, v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", p, o);
584
- }
585
- var g = Ge(e, r, t, s, u);
586
- if (g == null)
587
- return g;
588
- if (i) {
589
- var R = r.children;
590
- if (R !== void 0)
591
- if (n)
592
- if (J(R)) {
593
- for (var N = 0; N < R.length; N++)
594
- Ae(R[N], e);
595
- Object.freeze && Object.freeze(R);
596
- } else
597
- v("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
- Ae(R, e);
600
- }
601
- if (D.call(r, "key")) {
602
- var M = O(e), E = Object.keys(r).filter(function(sr) {
603
- return sr !== "key";
604
- }), G = E.length > 0 ? "{key: someKey, " + E.join(": ..., ") + ": ...}" : "{key: someKey}";
605
- if (!Ce[M + G]) {
606
- var ir = E.length > 0 ? "{" + E.join(": ..., ") + ": ...}" : "{}";
607
- v(`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} />`, G, M, ir, M), Ce[M + G] = !0;
613
- }
614
- }
615
- return e === b ? tr(g) : rr(g), g;
616
- }
617
- }
618
- function nr(e, r, t) {
619
- return Te(e, r, t, !0);
620
- }
621
- function ar(e, r, t) {
622
- return Te(e, r, t, !1);
623
- }
624
- var or = ar, lr = nr;
625
- ur.Fragment = b, ur.jsx = or, ur.jsxs = lr;
626
- }()), ur;
627
- }
628
- process.env.NODE_ENV === "production" ? Er.exports = Ir() : Er.exports = Vr();
629
- var A = Er.exports;
630
- const hr = {
631
- green: {
632
- solid: {
633
- bg: "bg-green-500",
634
- hover: "hover:bg-green-600",
635
- text: "text-white",
636
- border: "border-green-500"
637
- },
638
- outline: {
639
- bg: "bg-transparent",
640
- hover: "hover:bg-green-500 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-100",
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",
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-100",
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",
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-100",
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",
695
- text: "text-black",
696
- border: "border-yellow-500"
697
- },
698
- outline: {
699
- bg: "bg-transparent",
700
- hover: "hover:bg-yellow-500 hover:text-black",
701
- text: "text-yellow-600",
702
- border: "border-yellow-500"
703
- },
704
- ghost: {
705
- bg: "bg-transparent",
706
- hover: "hover:bg-yellow-100",
707
- text: "text-yellow-600",
708
- border: "border-transparent"
709
- }
710
- },
711
- primary: {
712
- solid: {
713
- bg: "bg-primary",
714
- hover: "hover:bg-primary/90",
715
- text: "text-primary-foreground",
716
- border: "border-primary"
717
- },
718
- outline: {
719
- bg: "bg-transparent",
720
- hover: "hover:bg-primary hover:text-primary-foreground",
721
- text: "text-primary",
722
- border: "border-primary"
723
- },
724
- ghost: {
725
- bg: "bg-transparent",
726
- hover: "hover:bg-primary/10",
727
- text: "text-primary",
728
- border: "border-transparent"
729
- }
730
- },
731
- secondary: {
732
- solid: {
733
- bg: "bg-secondary",
734
- hover: "hover:bg-secondary/80",
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/10",
747
- text: "text-secondary",
748
- border: "border-transparent"
749
- }
750
- },
751
- destructive: {
752
- solid: {
753
- bg: "bg-destructive",
754
- hover: "hover:bg-destructive/90",
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/10",
767
- text: "text-destructive",
768
- border: "border-transparent"
769
- }
770
- },
771
- card: {
772
- solid: {
773
- bg: "bg-card",
774
- hover: "hover:bg-accent",
775
- text: "text-card-foreground",
776
- border: "border-border"
777
- },
778
- outline: {
779
- bg: "bg-transparent",
780
- hover: "hover:bg-accent",
781
- text: "text-card-foreground",
782
- border: "border-border"
783
- },
784
- ghost: {
785
- bg: "bg-transparent",
786
- hover: "hover:bg-accent/50",
787
- text: "text-card-foreground",
788
- border: "border-transparent"
789
- }
790
- }
791
- };
792
- function mt({
793
- title: l,
794
- icon: c,
795
- positionIcon: h,
796
- color: b = "green",
797
- variant: _ = "solid",
798
- disable: S = !1,
799
- className: k,
800
- type: w = "button",
801
- onClick: d = () => {
802
- }
803
- }) {
804
- const m = b in hr ? hr[b] : hr.green, f = m[_] || m.solid, y = br(
805
- // "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",
806
- "cursor-pointer flex items-center justify-center gap-2 px-4 py-2 rounded-lg transition-colors shadow-sm font-medium text-sm border",
807
- f.bg,
808
- f.hover,
809
- f.text,
810
- f.border,
811
- {
812
- "opacity-50 cursor-not-allowed": S
813
- },
814
- k
815
- );
816
- return /* @__PURE__ */ A.jsxs(
817
- "button",
818
- {
819
- type: w,
820
- onClick: (j) => !S && (d == null ? void 0 : d(j)),
821
- disabled: S,
822
- className: y,
823
- children: [
824
- h === "left" && c,
825
- l && /* @__PURE__ */ A.jsx("span", { className: "first-letter:uppercase", children: l }),
826
- h === "right" && c
827
- ]
828
- }
829
- );
830
- }
831
- function xt({
832
- field: l,
833
- title: c,
834
- id: h,
835
- type: b,
836
- placeholder: _,
837
- className: S,
838
- value: k,
839
- iconPosition: w,
840
- icon: d,
841
- error: m,
842
- ...f
843
- }) {
844
- return /* @__PURE__ */ A.jsxs("div", { className: "flex flex-col gap-2", children: [
845
- c && /* @__PURE__ */ A.jsxs(
846
- "label",
847
- {
848
- htmlFor: h,
849
- className: br("block text-md font-medium text-foreground", {
850
- "text-red-700": m
851
- }),
852
- children: [
853
- f.required && /* @__PURE__ */ A.jsx("span", { className: "text-red-500", children: "* " }),
854
- c,
855
- ":"
856
- ]
857
- }
858
- ),
859
- /* @__PURE__ */ A.jsxs(
860
- "div",
861
- {
862
- className: br(
863
- "flex items-center justify-between border border-border text-foreground text-sm rounded-lg w-full",
864
- {
865
- "text-red-500 placeholder-red-500 border-red-500 focus:ring-red-500 focus:border-red-500": m,
866
- "p-2.5": d,
867
- "bg-input cursor-pointer": !f.disabled,
868
- "bg-gray-400/40 cursor-not-allowed": f.disabled
869
- }
870
- ),
871
- children: [
872
- w === "left" && d,
873
- /* @__PURE__ */ A.jsx(
874
- "input",
875
- {
876
- type: b,
877
- id: h,
878
- name: String(l),
879
- value: k,
880
- placeholder: _,
881
- className: br(
882
- "bg-transparent border-none text-foreground text-sm focus:outline-none w-full",
883
- {
884
- "ml-3": w === "left",
885
- "p-2.5": !d,
886
- "cursor-pointer": !f.disabled,
887
- "cursor-not-allowed": f.disabled,
888
- className: S
889
- }
890
- ),
891
- onChange: f.onChange,
892
- ...f
893
- }
894
- ),
895
- w === "right" && d
896
- ]
897
- }
898
- ),
899
- m && /* @__PURE__ */ A.jsx("div", { className: "mt-2", children: /* @__PURE__ */ A.jsx("p", { className: "text-sm text-red-600 dark:text-red-500", children: m }) })
900
- ] });
901
- }
902
- const $ = [];
903
- for (let l = 0; l < 256; ++l)
904
- $.push((l + 256).toString(16).slice(1));
905
- function Ur(l, c = 0) {
906
- return ($[l[c + 0]] + $[l[c + 1]] + $[l[c + 2]] + $[l[c + 3]] + "-" + $[l[c + 4]] + $[l[c + 5]] + "-" + $[l[c + 6]] + $[l[c + 7]] + "-" + $[l[c + 8]] + $[l[c + 9]] + "-" + $[l[c + 10]] + $[l[c + 11]] + $[l[c + 12]] + $[l[c + 13]] + $[l[c + 14]] + $[l[c + 15]]).toLowerCase();
907
- }
908
- let mr;
909
- const Hr = new Uint8Array(16);
910
- function Wr() {
911
- if (!mr) {
912
- if (typeof crypto > "u" || !crypto.getRandomValues)
913
- throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
914
- mr = crypto.getRandomValues.bind(crypto);
915
- }
916
- return mr(Hr);
917
- }
918
- const Yr = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Cr = { randomUUID: Yr };
919
- function zr(l, c, h) {
920
- var _;
921
- l = l || {};
922
- const b = l.random ?? ((_ = l.rng) == null ? void 0 : _.call(l)) ?? Wr();
923
- if (b.length < 16)
924
- throw new Error("Random bytes length must be >= 16");
925
- return b[6] = b[6] & 15 | 64, b[8] = b[8] & 63 | 128, Ur(b);
926
- }
927
- function Tr(l, c, h) {
928
- return Cr.randomUUID && !l ? Cr.randomUUID() : zr(l);
929
- }
930
- const Br = /* @__PURE__ */ new Map([
931
- [
932
- "bold",
933
- /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.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" }))
934
- ],
935
- [
936
- "duotone",
937
- /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement(
938
- "path",
939
- {
940
- 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",
941
- opacity: "0.2"
942
- }
943
- ), /* @__PURE__ */ a.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" }))
944
- ],
945
- [
946
- "fill",
947
- /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.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" }))
948
- ],
949
- [
950
- "light",
951
- /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.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" }))
952
- ],
953
- [
954
- "regular",
955
- /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.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" }))
956
- ],
957
- [
958
- "thin",
959
- /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.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" }))
960
- ]
961
- ]), Jr = /* @__PURE__ */ new Map([
962
- [
963
- "bold",
964
- /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.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" }))
965
- ],
966
- [
967
- "duotone",
968
- /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z", opacity: "0.2" }), /* @__PURE__ */ a.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" }))
969
- ],
970
- [
971
- "fill",
972
- /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.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" }))
973
- ],
974
- [
975
- "light",
976
- /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.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" }))
977
- ],
978
- [
979
- "regular",
980
- /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.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" }))
981
- ],
982
- [
983
- "thin",
984
- /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.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" }))
985
- ]
986
- ]), qr = vr({
987
- color: "currentColor",
988
- size: "1em",
989
- weight: "regular",
990
- mirrored: !1
991
- }), Rr = a.forwardRef(
992
- (l, c) => {
993
- const {
994
- alt: h,
995
- color: b,
996
- size: _,
997
- weight: S,
998
- mirrored: k,
999
- children: w,
1000
- weights: d,
1001
- ...m
1002
- } = l, {
1003
- color: f = "currentColor",
1004
- size: y,
1005
- weight: j = "regular",
1006
- mirrored: P = !1,
1007
- ...I
1008
- } = a.useContext(qr);
1009
- return /* @__PURE__ */ a.createElement(
1010
- "svg",
1011
- {
1012
- ref: c,
1013
- xmlns: "http://www.w3.org/2000/svg",
1014
- width: _ ?? y,
1015
- height: _ ?? y,
1016
- fill: b ?? f,
1017
- viewBox: "0 0 256 256",
1018
- transform: k || P ? "scale(-1, 1)" : void 0,
1019
- ...I,
1020
- ...m
1021
- },
1022
- !!h && /* @__PURE__ */ a.createElement("title", null, h),
1023
- w,
1024
- d.get(S ?? j)
1025
- );
1026
- }
1027
- );
1028
- Rr.displayName = "IconBase";
1029
- const Nr = a.forwardRef((l, c) => /* @__PURE__ */ a.createElement(Rr, { ref: c, ...l, weights: Br }));
1030
- Nr.displayName = "BroomIcon";
1031
- const Zr = a.forwardRef((l, c) => /* @__PURE__ */ a.createElement(Rr, { ref: c, ...l, weights: Jr }));
1032
- Zr.displayName = "MagnifyingGlassIcon";
1033
- const Kr = {}.hasOwnProperty;
1034
- function te(...l) {
1035
- let c = "";
1036
- for (let h = 0; h < l.length; h++) {
1037
- const b = l[h];
1038
- b && (c = Dr(c, Xr(b)));
1039
- }
1040
- return c;
1041
- }
1042
- function Xr(l) {
1043
- if (typeof l == "string")
1044
- return l;
1045
- if (typeof l != "object" || l === null)
1046
- return "";
1047
- if (Array.isArray(l))
1048
- return te(...l);
1049
- if (l.toString !== Object.prototype.toString && !l.toString.toString().includes("[native code]"))
1050
- return l.toString();
1051
- let c = "";
1052
- for (const h in l)
1053
- Kr.call(l, h) && l[h] && (c = Dr(c, h));
1054
- return c;
1055
- }
1056
- function Dr(l, c) {
1057
- return c ? l ? `${l} ${c}` : c : l;
1058
- }
1059
- var _r = { exports: {} }, fr = {};
1060
- /**
1061
- * @license React
1062
- * react-jsx-runtime.production.min.js
1063
- *
1064
- * Copyright (c) Facebook, Inc. and its affiliates.
1065
- *
1066
- * This source code is licensed under the MIT license found in the
1067
- * LICENSE file in the root directory of this source tree.
1068
- */
1069
- var Lr;
1070
- function Gr() {
1071
- if (Lr) return fr;
1072
- Lr = 1;
1073
- var l = Me, c = Symbol.for("react.element"), h = Symbol.for("react.fragment"), b = Object.prototype.hasOwnProperty, _ = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, S = { key: !0, ref: !0, __self: !0, __source: !0 };
1074
- function k(w, d, m) {
1075
- var f, y = {}, j = null, P = null;
1076
- m !== void 0 && (j = "" + m), d.key !== void 0 && (j = "" + d.key), d.ref !== void 0 && (P = d.ref);
1077
- for (f in d) b.call(d, f) && !S.hasOwnProperty(f) && (y[f] = d[f]);
1078
- if (w && w.defaultProps) for (f in d = w.defaultProps, d) y[f] === void 0 && (y[f] = d[f]);
1079
- return { $$typeof: c, type: w, key: j, ref: P, props: y, _owner: _.current };
1080
- }
1081
- return fr.Fragment = h, fr.jsx = k, fr.jsxs = k, fr;
1082
- }
1083
- var pr = {};
1084
- /**
1085
- * @license React
1086
- * react-jsx-runtime.development.js
1087
- *
1088
- * Copyright (c) Facebook, Inc. and its affiliates.
1089
- *
1090
- * This source code is licensed under the MIT license found in the
1091
- * LICENSE file in the root directory of this source tree.
1092
- */
1093
- var Mr;
1094
- function Qr() {
1095
- return Mr || (Mr = 1, process.env.NODE_ENV !== "production" && function() {
1096
- var l = Me, c = Symbol.for("react.element"), h = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), _ = Symbol.for("react.strict_mode"), S = Symbol.for("react.profiler"), k = Symbol.for("react.provider"), w = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), P = Symbol.for("react.offscreen"), I = Symbol.iterator, ne = "@@iterator";
1097
- function ae(e) {
1098
- if (e === null || typeof e != "object")
1099
- return null;
1100
- var r = I && e[I] || e[ne];
1101
- return typeof r == "function" ? r : null;
1102
- }
1103
- var C = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
1104
- function v(e) {
1105
- {
1106
- for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
1107
- t[n - 1] = arguments[n];
1108
- Q("error", e, t);
1109
- }
1110
- }
1111
- function Q(e, r, t) {
1112
- {
1113
- var n = C.ReactDebugCurrentFrame, s = n.getStackAddendum();
1114
- s !== "" && (r += "%s", t = t.concat([s]));
1115
- var u = t.map(function(i) {
1116
- return String(i);
1117
- });
1118
- u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
1119
- }
1120
- }
1121
- var oe = !1, Le = !1, le = !1, T = !1, ee = !1, ie;
1122
- ie = Symbol.for("react.module.reference");
1123
- function Pe(e) {
1124
- return !!(typeof e == "string" || typeof e == "function" || e === b || e === S || ee || e === _ || e === m || e === f || T || e === P || oe || Le || le || typeof e == "object" && e !== null && (e.$$typeof === j || e.$$typeof === y || e.$$typeof === k || e.$$typeof === w || e.$$typeof === d || // This needs to include all possible module reference object
1125
- // types supported by any Flight configuration anywhere since
1126
- // we don't know which Flight build this will end up being used
1127
- // with.
1128
- e.$$typeof === ie || e.getModuleId !== void 0));
1129
- }
1130
- function Fe(e, r, t) {
1131
- var n = e.displayName;
1132
- if (n)
1133
- return n;
1134
- var s = r.displayName || r.name || "";
1135
- return s !== "" ? t + "(" + s + ")" : t;
1136
- }
1137
- function se(e) {
1138
- return e.displayName || "Context";
1139
- }
1140
- function O(e) {
1141
- if (e == null)
1142
- return null;
1143
- if (typeof e.tag == "number" && v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
1144
- return e.displayName || e.name || null;
1145
- if (typeof e == "string")
1146
- return e;
1147
- switch (e) {
1148
- case b:
1149
- return "Fragment";
1150
- case h:
1151
- return "Portal";
1152
- case S:
1153
- return "Profiler";
1154
- case _:
1155
- return "StrictMode";
1156
- case m:
1157
- return "Suspense";
1158
- case f:
1159
- return "SuspenseList";
1160
- }
1161
- if (typeof e == "object")
1162
- switch (e.$$typeof) {
1163
- case w:
1164
- var r = e;
1165
- return se(r) + ".Consumer";
1166
- case k:
1167
- var t = e;
1168
- return se(t._context) + ".Provider";
1169
- case d:
1170
- return Fe(e, e.render, "ForwardRef");
1171
- case y:
1172
- var n = e.displayName || null;
1173
- return n !== null ? n : O(e.type) || "Memo";
1174
- case j: {
1175
- var s = e, u = s._payload, i = s._init;
1176
- try {
1177
- return O(i(u));
1178
- } catch {
1179
- return null;
1180
- }
1181
- }
1182
- }
1183
- return null;
1184
- }
1185
- var L = Object.assign, Z = 0, ce, ue, fe, de, pe, ge, be;
1186
- function ve() {
1187
- }
1188
- ve.__reactDisabledLog = !0;
1189
- function Ne() {
1190
- {
1191
- if (Z === 0) {
1192
- ce = console.log, ue = console.info, fe = console.warn, de = console.error, pe = console.group, ge = console.groupCollapsed, be = console.groupEnd;
1193
- var e = {
1194
- configurable: !0,
1195
- enumerable: !0,
1196
- value: ve,
1197
- writable: !0
1198
- };
1199
- Object.defineProperties(console, {
1200
- info: e,
1201
- log: e,
1202
- warn: e,
1203
- error: e,
1204
- group: e,
1205
- groupCollapsed: e,
1206
- groupEnd: e
1207
- });
1208
- }
1209
- Z++;
1210
- }
1211
- }
1212
- function Ze() {
1213
- {
1214
- if (Z--, Z === 0) {
1215
- var e = {
1216
- configurable: !0,
1217
- enumerable: !0,
1218
- writable: !0
1219
- };
1220
- Object.defineProperties(console, {
1221
- log: L({}, e, {
1222
- value: ce
1223
- }),
1224
- info: L({}, e, {
1225
- value: ue
1226
- }),
1227
- warn: L({}, e, {
1228
- value: fe
1229
- }),
1230
- error: L({}, e, {
1231
- value: de
1232
- }),
1233
- group: L({}, e, {
1234
- value: pe
1235
- }),
1236
- groupCollapsed: L({}, e, {
1237
- value: ge
1238
- }),
1239
- groupEnd: L({}, e, {
1240
- value: be
1241
- })
1242
- });
1243
- }
1244
- Z < 0 && v("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
1245
- }
1246
- }
1247
- var Y = C.ReactCurrentDispatcher, z;
1248
- function V(e, r, t) {
1249
- {
1250
- if (z === void 0)
1251
- try {
1252
- throw Error();
1253
- } catch (s) {
1254
- var n = s.stack.trim().match(/\n( *(at )?)/);
1255
- z = n && n[1] || "";
1256
- }
1257
- return `
1258
- ` + z + e;
1259
- }
1260
- }
1261
- var B = !1, U;
1262
- {
1263
- var De = typeof WeakMap == "function" ? WeakMap : Map;
1264
- U = new De();
1265
- }
1266
- function ye(e, r) {
1267
- if (!e || B)
1268
- return "";
1269
- {
1270
- var t = U.get(e);
1271
- if (t !== void 0)
1272
- return t;
1273
- }
1274
- var n;
1275
- B = !0;
1276
- var s = Error.prepareStackTrace;
1277
- Error.prepareStackTrace = void 0;
1278
- var u;
1279
- u = Y.current, Y.current = null, Ne();
1280
- try {
1281
- if (r) {
1282
- var i = function() {
1283
- throw Error();
1284
- };
1285
- if (Object.defineProperty(i.prototype, "props", {
1286
- set: function() {
1287
- throw Error();
1288
- }
1289
- }), typeof Reflect == "object" && Reflect.construct) {
1290
- try {
1291
- Reflect.construct(i, []);
1292
- } catch (E) {
1293
- n = E;
1294
- }
1295
- Reflect.construct(e, [], i);
1296
- } else {
1297
- try {
1298
- i.call();
1299
- } catch (E) {
1300
- n = E;
1301
- }
1302
- e.call(i.prototype);
1303
- }
1304
- } else {
1305
- try {
1306
- throw Error();
1307
- } catch (E) {
1308
- n = E;
1309
- }
1310
- e();
1311
- }
1312
- } catch (E) {
1313
- if (E && n && typeof E.stack == "string") {
1314
- for (var o = E.stack.split(`
1315
- `), x = n.stack.split(`
1316
- `), p = o.length - 1, g = x.length - 1; p >= 1 && g >= 0 && o[p] !== x[g]; )
1317
- g--;
1318
- for (; p >= 1 && g >= 0; p--, g--)
1319
- if (o[p] !== x[g]) {
1320
- if (p !== 1 || g !== 1)
1321
- do
1322
- if (p--, g--, g < 0 || o[p] !== x[g]) {
1323
- var R = `
1324
- ` + o[p].replace(" at new ", " at ");
1325
- return e.displayName && R.includes("<anonymous>") && (R = R.replace("<anonymous>", e.displayName)), typeof e == "function" && U.set(e, R), R;
1326
- }
1327
- while (p >= 1 && g >= 0);
1328
- break;
1329
- }
1330
- }
1331
- } finally {
1332
- B = !1, Y.current = u, Ze(), Error.prepareStackTrace = s;
1333
- }
1334
- var N = e ? e.displayName || e.name : "", M = N ? V(N) : "";
1335
- return typeof e == "function" && U.set(e, M), M;
1336
- }
1337
- function $e(e, r, t) {
1338
- return ye(e, !1);
1339
- }
1340
- function Ie(e) {
1341
- var r = e.prototype;
1342
- return !!(r && r.isReactComponent);
1343
- }
1344
- function H(e, r, t) {
1345
- if (e == null)
1346
- return "";
1347
- if (typeof e == "function")
1348
- return ye(e, Ie(e));
1349
- if (typeof e == "string")
1350
- return V(e);
1351
- switch (e) {
1352
- case m:
1353
- return V("Suspense");
1354
- case f:
1355
- return V("SuspenseList");
1356
- }
1357
- if (typeof e == "object")
1358
- switch (e.$$typeof) {
1359
- case d:
1360
- return $e(e.render);
1361
- case y:
1362
- return H(e.type, r, t);
1363
- case j: {
1364
- var n = e, s = n._payload, u = n._init;
1365
- try {
1366
- return H(u(s), r, t);
1367
- } catch {
1368
- }
1369
- }
1370
- }
1371
- return "";
1372
- }
1373
- var D = Object.prototype.hasOwnProperty, he = {}, me = C.ReactDebugCurrentFrame;
1374
- function W(e) {
1375
- if (e) {
1376
- var r = e._owner, t = H(e.type, e._source, r ? r.type : null);
1377
- me.setExtraStackFrame(t);
1378
- } else
1379
- me.setExtraStackFrame(null);
1380
- }
1381
- function Ve(e, r, t, n, s) {
1382
- {
1383
- var u = Function.call.bind(D);
1384
- for (var i in e)
1385
- if (u(e, i)) {
1386
- var o = void 0;
1387
- try {
1388
- if (typeof e[i] != "function") {
1389
- var x = Error((n || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
1390
- throw x.name = "Invariant Violation", x;
1391
- }
1392
- o = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1393
- } catch (p) {
1394
- o = p;
1395
- }
1396
- o && !(o instanceof Error) && (W(s), v("%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).", n || "React class", t, i, typeof o), W(null)), o instanceof Error && !(o.message in he) && (he[o.message] = !0, W(s), v("Failed %s type: %s", t, o.message), W(null));
1397
- }
1398
- }
1399
- }
1400
- var Ue = Array.isArray;
1401
- function J(e) {
1402
- return Ue(e);
1403
- }
1404
- function He(e) {
1405
- {
1406
- var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
1407
- return t;
1408
- }
1409
- }
1410
- function We(e) {
1411
- try {
1412
- return xe(e), !1;
1413
- } catch {
1414
- return !0;
1415
- }
1416
- }
1417
- function xe(e) {
1418
- return "" + e;
1419
- }
1420
- function we(e) {
1421
- if (We(e))
1422
- return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", He(e)), xe(e);
1423
- }
1424
- var Ee = C.ReactCurrentOwner, Ye = {
1425
- key: !0,
1426
- ref: !0,
1427
- __self: !0,
1428
- __source: !0
1429
- }, _e, Re;
1430
- function ze(e) {
1431
- if (D.call(e, "ref")) {
1432
- var r = Object.getOwnPropertyDescriptor(e, "ref").get;
1433
- if (r && r.isReactWarning)
1434
- return !1;
1435
- }
1436
- return e.ref !== void 0;
1437
- }
1438
- function Be(e) {
1439
- if (D.call(e, "key")) {
1440
- var r = Object.getOwnPropertyDescriptor(e, "key").get;
1441
- if (r && r.isReactWarning)
1442
- return !1;
1443
- }
1444
- return e.key !== void 0;
1445
- }
1446
- function Je(e, r) {
1447
- typeof e.ref == "string" && Ee.current;
1448
- }
1449
- function qe(e, r) {
1450
- {
1451
- var t = function() {
1452
- _e || (_e = !0, v("%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));
1453
- };
1454
- t.isReactWarning = !0, Object.defineProperty(e, "key", {
1455
- get: t,
1456
- configurable: !0
1457
- });
1458
- }
1459
- }
1460
- function Ke(e, r) {
1461
- {
1462
- var t = function() {
1463
- Re || (Re = !0, v("%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));
1464
- };
1465
- t.isReactWarning = !0, Object.defineProperty(e, "ref", {
1466
- get: t,
1467
- configurable: !0
1468
- });
1469
- }
1470
- }
1471
- var Xe = function(e, r, t, n, s, u, i) {
1472
- var o = {
1473
- // This tag allows us to uniquely identify this as a React Element
1474
- $$typeof: c,
1475
- // Built-in properties that belong on the element
1476
- type: e,
1477
- key: r,
1478
- ref: t,
1479
- props: i,
1480
- // Record the component responsible for creating this element.
1481
- _owner: u
1482
- };
1483
- return o._store = {}, Object.defineProperty(o._store, "validated", {
1484
- configurable: !1,
1485
- enumerable: !1,
1486
- writable: !0,
1487
- value: !1
1488
- }), Object.defineProperty(o, "_self", {
1489
- configurable: !1,
1490
- enumerable: !1,
1491
- writable: !1,
1492
- value: n
1493
- }), Object.defineProperty(o, "_source", {
1494
- configurable: !1,
1495
- enumerable: !1,
1496
- writable: !1,
1497
- value: s
1498
- }), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
1499
- };
1500
- function Ge(e, r, t, n, s) {
1501
- {
1502
- var u, i = {}, o = null, x = null;
1503
- t !== void 0 && (we(t), o = "" + t), Be(r) && (we(r.key), o = "" + r.key), ze(r) && (x = r.ref, Je(r));
1504
- for (u in r)
1505
- D.call(r, u) && !Ye.hasOwnProperty(u) && (i[u] = r[u]);
1506
- if (e && e.defaultProps) {
1507
- var p = e.defaultProps;
1508
- for (u in p)
1509
- i[u] === void 0 && (i[u] = p[u]);
1510
- }
1511
- if (o || x) {
1512
- var g = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
1513
- o && qe(i, g), x && Ke(i, g);
1514
- }
1515
- return Xe(e, o, x, s, n, Ee.current, i);
1516
- }
1517
- }
1518
- var q = C.ReactCurrentOwner, je = C.ReactDebugCurrentFrame;
1519
- function F(e) {
1520
- if (e) {
1521
- var r = e._owner, t = H(e.type, e._source, r ? r.type : null);
1522
- je.setExtraStackFrame(t);
1523
- } else
1524
- je.setExtraStackFrame(null);
1525
- }
1526
- var K;
1527
- K = !1;
1528
- function X(e) {
1529
- return typeof e == "object" && e !== null && e.$$typeof === c;
1530
- }
1531
- function Se() {
1532
- {
1533
- if (q.current) {
1534
- var e = O(q.current.type);
1535
- if (e)
1536
- return `
1537
-
1538
- Check the render method of \`` + e + "`.";
1539
- }
1540
- return "";
1541
- }
1542
- }
1543
- function Qe(e) {
1544
- return "";
1545
- }
1546
- var ke = {};
1547
- function er(e) {
1548
- {
1549
- var r = Se();
1550
- if (!r) {
1551
- var t = typeof e == "string" ? e : e.displayName || e.name;
1552
- t && (r = `
1553
-
1554
- Check the top-level render call using <` + t + ">.");
1555
- }
1556
- return r;
1557
- }
1558
- }
1559
- function Oe(e, r) {
1560
- {
1561
- if (!e._store || e._store.validated || e.key != null)
1562
- return;
1563
- e._store.validated = !0;
1564
- var t = er(r);
1565
- if (ke[t])
1566
- return;
1567
- ke[t] = !0;
1568
- var n = "";
1569
- e && e._owner && e._owner !== q.current && (n = " It was passed a child from " + O(e._owner.type) + "."), F(e), v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), F(null);
1570
- }
1571
- }
1572
- function Ae(e, r) {
1573
- {
1574
- if (typeof e != "object")
1575
- return;
1576
- if (J(e))
1577
- for (var t = 0; t < e.length; t++) {
1578
- var n = e[t];
1579
- X(n) && Oe(n, r);
1580
- }
1581
- else if (X(e))
1582
- e._store && (e._store.validated = !0);
1583
- else if (e) {
1584
- var s = ae(e);
1585
- if (typeof s == "function" && s !== e.entries)
1586
- for (var u = s.call(e), i; !(i = u.next()).done; )
1587
- X(i.value) && Oe(i.value, r);
1588
- }
1589
- }
1590
- }
1591
- function rr(e) {
1592
- {
1593
- var r = e.type;
1594
- if (r == null || typeof r == "string")
1595
- return;
1596
- var t;
1597
- if (typeof r == "function")
1598
- t = r.propTypes;
1599
- else if (typeof r == "object" && (r.$$typeof === d || // Note: Memo only checks outer props here.
1600
- // Inner props are checked in the reconciler.
1601
- r.$$typeof === y))
1602
- t = r.propTypes;
1603
- else
1604
- return;
1605
- if (t) {
1606
- var n = O(r);
1607
- Ve(t, e.props, "prop", n, e);
1608
- } else if (r.PropTypes !== void 0 && !K) {
1609
- K = !0;
1610
- var s = O(r);
1611
- v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", s || "Unknown");
1612
- }
1613
- typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
1614
- }
1615
- }
1616
- function tr(e) {
1617
- {
1618
- for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
1619
- var n = r[t];
1620
- if (n !== "children" && n !== "key") {
1621
- F(e), v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), F(null);
1622
- break;
1623
- }
1624
- }
1625
- e.ref !== null && (F(e), v("Invalid attribute `ref` supplied to `React.Fragment`."), F(null));
1626
- }
1627
- }
1628
- var Ce = {};
1629
- function Te(e, r, t, n, s, u) {
1630
- {
1631
- var i = Pe(e);
1632
- if (!i) {
1633
- var o = "";
1634
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (o += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
1635
- var x = Qe();
1636
- x ? o += x : o += Se();
1637
- var p;
1638
- e === null ? p = "null" : J(e) ? p = "array" : e !== void 0 && e.$$typeof === c ? (p = "<" + (O(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : p = typeof e, v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", p, o);
1639
- }
1640
- var g = Ge(e, r, t, s, u);
1641
- if (g == null)
1642
- return g;
1643
- if (i) {
1644
- var R = r.children;
1645
- if (R !== void 0)
1646
- if (n)
1647
- if (J(R)) {
1648
- for (var N = 0; N < R.length; N++)
1649
- Ae(R[N], e);
1650
- Object.freeze && Object.freeze(R);
1651
- } else
1652
- v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
1653
- else
1654
- Ae(R, e);
1655
- }
1656
- if (D.call(r, "key")) {
1657
- var M = O(e), E = Object.keys(r).filter(function(sr) {
1658
- return sr !== "key";
1659
- }), G = E.length > 0 ? "{key: someKey, " + E.join(": ..., ") + ": ...}" : "{key: someKey}";
1660
- if (!Ce[M + G]) {
1661
- var ir = E.length > 0 ? "{" + E.join(": ..., ") + ": ...}" : "{}";
1662
- v(`A props object containing a "key" prop is being spread into JSX:
1663
- let props = %s;
1664
- <%s {...props} />
1665
- React keys must be passed directly to JSX without using spread:
1666
- let props = %s;
1667
- <%s key={someKey} {...props} />`, G, M, ir, M), Ce[M + G] = !0;
1668
- }
1669
- }
1670
- return e === b ? tr(g) : rr(g), g;
1671
- }
1672
- }
1673
- function nr(e, r, t) {
1674
- return Te(e, r, t, !0);
1675
- }
1676
- function ar(e, r, t) {
1677
- return Te(e, r, t, !1);
1678
- }
1679
- var or = ar, lr = nr;
1680
- pr.Fragment = b, pr.jsx = or, pr.jsxs = lr;
1681
- }()), pr;
1682
- }
1683
- process.env.NODE_ENV === "production" ? _r.exports = Gr() : _r.exports = Qr();
1684
- var re = _r.exports;
1685
- const xr = {
1686
- green: {
1687
- solid: {
1688
- bg: "bg-green-500",
1689
- hover: "hover:bg-green-600",
1690
- text: "text-white",
1691
- border: "border-green-500"
1692
- },
1693
- outline: {
1694
- bg: "bg-transparent",
1695
- hover: "hover:bg-green-500 hover:text-white",
1696
- text: "text-green-600",
1697
- border: "border-green-500"
1698
- },
1699
- ghost: {
1700
- bg: "bg-transparent",
1701
- hover: "hover:bg-green-100",
1702
- text: "text-green-600",
1703
- border: "border-transparent"
1704
- }
1705
- },
1706
- blue: {
1707
- solid: {
1708
- bg: "bg-blue-500",
1709
- hover: "hover:bg-blue-600",
1710
- text: "text-white",
1711
- border: "border-blue-500"
1712
- },
1713
- outline: {
1714
- bg: "bg-transparent",
1715
- hover: "hover:bg-blue-500 hover:text-white",
1716
- text: "text-blue-600",
1717
- border: "border-blue-500"
1718
- },
1719
- ghost: {
1720
- bg: "bg-transparent",
1721
- hover: "hover:bg-blue-100",
1722
- text: "text-blue-600",
1723
- border: "border-transparent"
1724
- }
1725
- },
1726
- red: {
1727
- solid: {
1728
- bg: "bg-red-500",
1729
- hover: "hover:bg-red-600",
1730
- text: "text-white",
1731
- border: "border-red-500"
1732
- },
1733
- outline: {
1734
- bg: "bg-transparent",
1735
- hover: "hover:bg-red-500 hover:text-white",
1736
- text: "text-red-600",
1737
- border: "border-red-500"
1738
- },
1739
- ghost: {
1740
- bg: "bg-transparent",
1741
- hover: "hover:bg-red-100",
1742
- text: "text-red-600",
1743
- border: "border-transparent"
1744
- }
1745
- },
1746
- yellow: {
1747
- solid: {
1748
- bg: "bg-yellow-500",
1749
- hover: "hover:bg-yellow-600",
1750
- text: "text-black",
1751
- border: "border-yellow-500"
1752
- },
1753
- outline: {
1754
- bg: "bg-transparent",
1755
- hover: "hover:bg-yellow-500 hover:text-black",
1756
- text: "text-yellow-600",
1757
- border: "border-yellow-500"
1758
- },
1759
- ghost: {
1760
- bg: "bg-transparent",
1761
- hover: "hover:bg-yellow-100",
1762
- text: "text-yellow-600",
1763
- border: "border-transparent"
1764
- }
1765
- },
1766
- primary: {
1767
- solid: {
1768
- bg: "bg-primary",
1769
- hover: "hover:bg-primary/90",
1770
- text: "text-primary-foreground",
1771
- border: "border-primary"
1772
- },
1773
- outline: {
1774
- bg: "bg-transparent",
1775
- hover: "hover:bg-primary hover:text-primary-foreground",
1776
- text: "text-primary",
1777
- border: "border-primary"
1778
- },
1779
- ghost: {
1780
- bg: "bg-transparent",
1781
- hover: "hover:bg-primary/10",
1782
- text: "text-primary",
1783
- border: "border-transparent"
1784
- }
1785
- },
1786
- secondary: {
1787
- solid: {
1788
- bg: "bg-secondary",
1789
- hover: "hover:bg-secondary/80",
1790
- text: "text-secondary-foreground",
1791
- border: "border-secondary"
1792
- },
1793
- outline: {
1794
- bg: "bg-transparent",
1795
- hover: "hover:bg-secondary hover:text-secondary-foreground",
1796
- text: "text-secondary",
1797
- border: "border-secondary"
1798
- },
1799
- ghost: {
1800
- bg: "bg-transparent",
1801
- hover: "hover:bg-secondary/10",
1802
- text: "text-secondary",
1803
- border: "border-transparent"
1804
- }
1805
- },
1806
- destructive: {
1807
- solid: {
1808
- bg: "bg-destructive",
1809
- hover: "hover:bg-destructive/90",
1810
- text: "text-destructive-foreground",
1811
- border: "border-destructive"
1812
- },
1813
- outline: {
1814
- bg: "bg-transparent",
1815
- hover: "hover:bg-destructive hover:text-destructive-foreground",
1816
- text: "text-destructive",
1817
- border: "border-destructive"
1818
- },
1819
- ghost: {
1820
- bg: "bg-transparent",
1821
- hover: "hover:bg-destructive/10",
1822
- text: "text-destructive",
1823
- border: "border-transparent"
1824
- }
1825
- },
1826
- card: {
1827
- solid: {
1828
- bg: "bg-card",
1829
- hover: "hover:bg-accent",
1830
- text: "text-card-foreground",
1831
- border: "border-border"
1832
- },
1833
- outline: {
1834
- bg: "bg-transparent",
1835
- hover: "hover:bg-accent",
1836
- text: "text-card-foreground",
1837
- border: "border-border"
1838
- },
1839
- ghost: {
1840
- bg: "bg-transparent",
1841
- hover: "hover:bg-accent/50",
1842
- text: "text-card-foreground",
1843
- border: "border-transparent"
1844
- }
1845
- }
1846
- };
1847
- function et({
1848
- title: l,
1849
- icon: c,
1850
- positionIcon: h,
1851
- color: b = "green",
1852
- variant: _ = "solid",
1853
- disable: S = !1,
1854
- className: k,
1855
- type: w = "button",
1856
- onClick: d = () => {
1857
- }
1858
- }) {
1859
- const m = b in xr ? xr[b] : xr.green, f = m[_] || m.solid, y = te(
1860
- // "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",
1861
- "cursor-pointer flex items-center justify-center gap-2 px-4 py-2 rounded-lg transition-colors shadow-sm font-medium text-sm border",
1862
- f.bg,
1863
- f.hover,
1864
- f.text,
1865
- f.border,
1866
- {
1867
- "opacity-50 cursor-not-allowed": S
1868
- },
1869
- k
1870
- );
1871
- return /* @__PURE__ */ re.jsxs(
1872
- "button",
1873
- {
1874
- type: w,
1875
- onClick: (j) => !S && (d == null ? void 0 : d(j)),
1876
- disabled: S,
1877
- className: y,
1878
- children: [
1879
- h === "left" && c,
1880
- l && /* @__PURE__ */ re.jsx("span", { className: "first-letter:uppercase", children: l }),
1881
- h === "right" && c
1882
- ]
1883
- }
1884
- );
1885
- }
1886
- function rt({
1887
- field: l,
1888
- title: c,
1889
- id: h,
1890
- type: b,
1891
- placeholder: _,
1892
- className: S,
1893
- value: k,
1894
- iconPosition: w,
1895
- icon: d,
1896
- error: m,
1897
- ...f
1898
- }) {
1899
- return /* @__PURE__ */ re.jsxs("div", { className: "flex flex-col gap-2", children: [
1900
- c && /* @__PURE__ */ re.jsxs(
1901
- "label",
1902
- {
1903
- htmlFor: h,
1904
- className: te("block text-md font-medium text-foreground", {
1905
- "text-red-700": m
1906
- }),
1907
- children: [
1908
- f.required && /* @__PURE__ */ re.jsx("span", { className: "text-red-500", children: "* " }),
1909
- c,
1910
- ":"
1911
- ]
1912
- }
1913
- ),
1914
- /* @__PURE__ */ re.jsxs(
1915
- "div",
1916
- {
1917
- className: te(
1918
- "flex items-center justify-between border border-border text-foreground text-sm rounded-lg w-full",
1919
- {
1920
- "text-red-500 placeholder-red-500 border-red-500 focus:ring-red-500 focus:border-red-500": m,
1921
- "p-2.5": d,
1922
- "bg-input cursor-pointer": !f.disabled,
1923
- "bg-gray-400/40 cursor-not-allowed": f.disabled
1924
- }
1925
- ),
1926
- children: [
1927
- w === "left" && d,
1928
- /* @__PURE__ */ re.jsx(
1929
- "input",
1930
- {
1931
- type: b,
1932
- id: h,
1933
- name: String(l),
1934
- value: k,
1935
- placeholder: _,
1936
- className: te(
1937
- "bg-transparent border-none text-foreground text-sm focus:outline-none w-full",
1938
- {
1939
- "ml-3": w === "left",
1940
- "p-2.5": !d,
1941
- "cursor-pointer": !f.disabled,
1942
- "cursor-not-allowed": f.disabled,
1943
- className: S
1944
- }
1945
- ),
1946
- onChange: f.onChange,
1947
- ...f
1948
- }
1949
- ),
1950
- w === "right" && d
1951
- ]
1952
- }
1953
- ),
1954
- m && /* @__PURE__ */ re.jsx("div", { className: "mt-2", children: /* @__PURE__ */ re.jsx("p", { className: "text-sm text-red-600 dark:text-red-500", children: m }) })
1955
- ] });
1956
- }
1957
- const tt = [];
1958
- for (let l = 0; l < 256; ++l)
1959
- tt.push((l + 256).toString(16).slice(1));
1960
- typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
1961
- const nt = /* @__PURE__ */ new Map([
1962
- [
1963
- "bold",
1964
- /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.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" }))
1965
- ],
1966
- [
1967
- "duotone",
1968
- /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement(
1969
- "path",
1970
- {
1971
- 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",
1972
- opacity: "0.2"
1973
- }
1974
- ), /* @__PURE__ */ a.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" }))
1975
- ],
1976
- [
1977
- "fill",
1978
- /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.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" }))
1979
- ],
1980
- [
1981
- "light",
1982
- /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.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" }))
1983
- ],
1984
- [
1985
- "regular",
1986
- /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.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" }))
1987
- ],
1988
- [
1989
- "thin",
1990
- /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.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" }))
1991
- ]
1992
- ]), at = /* @__PURE__ */ new Map([
1993
- [
1994
- "bold",
1995
- /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.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" }))
1996
- ],
1997
- [
1998
- "duotone",
1999
- /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z", opacity: "0.2" }), /* @__PURE__ */ a.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" }))
2000
- ],
2001
- [
2002
- "fill",
2003
- /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.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" }))
2004
- ],
2005
- [
2006
- "light",
2007
- /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.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" }))
2008
- ],
2009
- [
2010
- "regular",
2011
- /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.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" }))
2012
- ],
2013
- [
2014
- "thin",
2015
- /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.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" }))
2016
- ]
2017
- ]), ot = vr({
2018
- color: "currentColor",
2019
- size: "1em",
2020
- weight: "regular",
2021
- mirrored: !1
2022
- }), jr = a.forwardRef(
2023
- (l, c) => {
2024
- const {
2025
- alt: h,
2026
- color: b,
2027
- size: _,
2028
- weight: S,
2029
- mirrored: k,
2030
- children: w,
2031
- weights: d,
2032
- ...m
2033
- } = l, {
2034
- color: f = "currentColor",
2035
- size: y,
2036
- weight: j = "regular",
2037
- mirrored: P = !1,
2038
- ...I
2039
- } = a.useContext(ot);
2040
- return /* @__PURE__ */ a.createElement(
2041
- "svg",
2042
- {
2043
- ref: c,
2044
- xmlns: "http://www.w3.org/2000/svg",
2045
- width: _ ?? y,
2046
- height: _ ?? y,
2047
- fill: b ?? f,
2048
- viewBox: "0 0 256 256",
2049
- transform: k || P ? "scale(-1, 1)" : void 0,
2050
- ...I,
2051
- ...m
2052
- },
2053
- !!h && /* @__PURE__ */ a.createElement("title", null, h),
2054
- w,
2055
- d.get(S ?? j)
2056
- );
2057
- }
2058
- );
2059
- jr.displayName = "IconBase";
2060
- const lt = a.forwardRef((l, c) => /* @__PURE__ */ a.createElement(jr, { ref: c, ...l, weights: nt }));
2061
- lt.displayName = "BroomIcon";
2062
- const it = a.forwardRef((l, c) => /* @__PURE__ */ a.createElement(jr, { ref: c, ...l, weights: at }));
2063
- it.displayName = "MagnifyingGlassIcon";
2064
- var dr = {};
2065
- /**
2066
- * @license React
2067
- * react-jsx-runtime.production.min.js
2068
- *
2069
- * Copyright (c) Facebook, Inc. and its affiliates.
2070
- *
2071
- * This source code is licensed under the MIT license found in the
2072
- * LICENSE file in the root directory of this source tree.
2073
- */
2074
- var Pr;
2075
- function st() {
2076
- if (Pr) return dr;
2077
- Pr = 1;
2078
- var l = Me, c = Symbol.for("react.element"), h = Symbol.for("react.fragment"), b = Object.prototype.hasOwnProperty, _ = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, S = { key: !0, ref: !0, __self: !0, __source: !0 };
2079
- function k(w, d, m) {
2080
- var f, y = {}, j = null, P = null;
2081
- m !== void 0 && (j = "" + m), d.key !== void 0 && (j = "" + d.key), d.ref !== void 0 && (P = d.ref);
2082
- for (f in d) b.call(d, f) && !S.hasOwnProperty(f) && (y[f] = d[f]);
2083
- if (w && w.defaultProps) for (f in d = w.defaultProps, d) y[f] === void 0 && (y[f] = d[f]);
2084
- return { $$typeof: c, type: w, key: j, ref: P, props: y, _owner: _.current };
2085
- }
2086
- return dr.Fragment = h, dr.jsx = k, dr.jsxs = k, dr;
2087
- }
2088
- var gr = {};
2089
- /**
2090
- * @license React
2091
- * react-jsx-runtime.development.js
2092
- *
2093
- * Copyright (c) Facebook, Inc. and its affiliates.
2094
- *
2095
- * This source code is licensed under the MIT license found in the
2096
- * LICENSE file in the root directory of this source tree.
2097
- */
2098
- var Fr;
2099
- function ct() {
2100
- return Fr || (Fr = 1, process.env.NODE_ENV !== "production" && function() {
2101
- var l = Me, c = Symbol.for("react.element"), h = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), _ = Symbol.for("react.strict_mode"), S = Symbol.for("react.profiler"), k = Symbol.for("react.provider"), w = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), P = Symbol.for("react.offscreen"), I = Symbol.iterator, ne = "@@iterator";
2102
- function ae(e) {
2103
- if (e === null || typeof e != "object")
2104
- return null;
2105
- var r = I && e[I] || e[ne];
2106
- return typeof r == "function" ? r : null;
2107
- }
2108
- var C = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
2109
- function v(e) {
2110
- {
2111
- for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
2112
- t[n - 1] = arguments[n];
2113
- Q("error", e, t);
2114
- }
2115
- }
2116
- function Q(e, r, t) {
2117
- {
2118
- var n = C.ReactDebugCurrentFrame, s = n.getStackAddendum();
2119
- s !== "" && (r += "%s", t = t.concat([s]));
2120
- var u = t.map(function(i) {
2121
- return String(i);
2122
- });
2123
- u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
2124
- }
2125
- }
2126
- var oe = !1, Le = !1, le = !1, T = !1, ee = !1, ie;
2127
- ie = Symbol.for("react.module.reference");
2128
- function Pe(e) {
2129
- return !!(typeof e == "string" || typeof e == "function" || e === b || e === S || ee || e === _ || e === m || e === f || T || e === P || oe || Le || le || typeof e == "object" && e !== null && (e.$$typeof === j || e.$$typeof === y || e.$$typeof === k || e.$$typeof === w || e.$$typeof === d || // This needs to include all possible module reference object
2130
- // types supported by any Flight configuration anywhere since
2131
- // we don't know which Flight build this will end up being used
2132
- // with.
2133
- e.$$typeof === ie || e.getModuleId !== void 0));
2134
- }
2135
- function Fe(e, r, t) {
2136
- var n = e.displayName;
2137
- if (n)
2138
- return n;
2139
- var s = r.displayName || r.name || "";
2140
- return s !== "" ? t + "(" + s + ")" : t;
2141
- }
2142
- function se(e) {
2143
- return e.displayName || "Context";
2144
- }
2145
- function O(e) {
2146
- if (e == null)
2147
- return null;
2148
- if (typeof e.tag == "number" && v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
2149
- return e.displayName || e.name || null;
2150
- if (typeof e == "string")
2151
- return e;
2152
- switch (e) {
2153
- case b:
2154
- return "Fragment";
2155
- case h:
2156
- return "Portal";
2157
- case S:
2158
- return "Profiler";
2159
- case _:
2160
- return "StrictMode";
2161
- case m:
2162
- return "Suspense";
2163
- case f:
2164
- return "SuspenseList";
2165
- }
2166
- if (typeof e == "object")
2167
- switch (e.$$typeof) {
2168
- case w:
2169
- var r = e;
2170
- return se(r) + ".Consumer";
2171
- case k:
2172
- var t = e;
2173
- return se(t._context) + ".Provider";
2174
- case d:
2175
- return Fe(e, e.render, "ForwardRef");
2176
- case y:
2177
- var n = e.displayName || null;
2178
- return n !== null ? n : O(e.type) || "Memo";
2179
- case j: {
2180
- var s = e, u = s._payload, i = s._init;
2181
- try {
2182
- return O(i(u));
2183
- } catch {
2184
- return null;
2185
- }
2186
- }
2187
- }
2188
- return null;
2189
- }
2190
- var L = Object.assign, Z = 0, ce, ue, fe, de, pe, ge, be;
2191
- function ve() {
2192
- }
2193
- ve.__reactDisabledLog = !0;
2194
- function Ne() {
2195
- {
2196
- if (Z === 0) {
2197
- ce = console.log, ue = console.info, fe = console.warn, de = console.error, pe = console.group, ge = console.groupCollapsed, be = console.groupEnd;
2198
- var e = {
2199
- configurable: !0,
2200
- enumerable: !0,
2201
- value: ve,
2202
- writable: !0
2203
- };
2204
- Object.defineProperties(console, {
2205
- info: e,
2206
- log: e,
2207
- warn: e,
2208
- error: e,
2209
- group: e,
2210
- groupCollapsed: e,
2211
- groupEnd: e
2212
- });
2213
- }
2214
- Z++;
2215
- }
2216
- }
2217
- function Ze() {
2218
- {
2219
- if (Z--, Z === 0) {
2220
- var e = {
2221
- configurable: !0,
2222
- enumerable: !0,
2223
- writable: !0
2224
- };
2225
- Object.defineProperties(console, {
2226
- log: L({}, e, {
2227
- value: ce
2228
- }),
2229
- info: L({}, e, {
2230
- value: ue
2231
- }),
2232
- warn: L({}, e, {
2233
- value: fe
2234
- }),
2235
- error: L({}, e, {
2236
- value: de
2237
- }),
2238
- group: L({}, e, {
2239
- value: pe
2240
- }),
2241
- groupCollapsed: L({}, e, {
2242
- value: ge
2243
- }),
2244
- groupEnd: L({}, e, {
2245
- value: be
2246
- })
2247
- });
2248
- }
2249
- Z < 0 && v("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
2250
- }
2251
- }
2252
- var Y = C.ReactCurrentDispatcher, z;
2253
- function V(e, r, t) {
2254
- {
2255
- if (z === void 0)
2256
- try {
2257
- throw Error();
2258
- } catch (s) {
2259
- var n = s.stack.trim().match(/\n( *(at )?)/);
2260
- z = n && n[1] || "";
2261
- }
2262
- return `
2263
- ` + z + e;
2264
- }
2265
- }
2266
- var B = !1, U;
2267
- {
2268
- var De = typeof WeakMap == "function" ? WeakMap : Map;
2269
- U = new De();
2270
- }
2271
- function ye(e, r) {
2272
- if (!e || B)
2273
- return "";
2274
- {
2275
- var t = U.get(e);
2276
- if (t !== void 0)
2277
- return t;
2278
- }
2279
- var n;
2280
- B = !0;
2281
- var s = Error.prepareStackTrace;
2282
- Error.prepareStackTrace = void 0;
2283
- var u;
2284
- u = Y.current, Y.current = null, Ne();
2285
- try {
2286
- if (r) {
2287
- var i = function() {
2288
- throw Error();
2289
- };
2290
- if (Object.defineProperty(i.prototype, "props", {
2291
- set: function() {
2292
- throw Error();
2293
- }
2294
- }), typeof Reflect == "object" && Reflect.construct) {
2295
- try {
2296
- Reflect.construct(i, []);
2297
- } catch (E) {
2298
- n = E;
2299
- }
2300
- Reflect.construct(e, [], i);
2301
- } else {
2302
- try {
2303
- i.call();
2304
- } catch (E) {
2305
- n = E;
2306
- }
2307
- e.call(i.prototype);
2308
- }
2309
- } else {
2310
- try {
2311
- throw Error();
2312
- } catch (E) {
2313
- n = E;
2314
- }
2315
- e();
2316
- }
2317
- } catch (E) {
2318
- if (E && n && typeof E.stack == "string") {
2319
- for (var o = E.stack.split(`
2320
- `), x = n.stack.split(`
2321
- `), p = o.length - 1, g = x.length - 1; p >= 1 && g >= 0 && o[p] !== x[g]; )
2322
- g--;
2323
- for (; p >= 1 && g >= 0; p--, g--)
2324
- if (o[p] !== x[g]) {
2325
- if (p !== 1 || g !== 1)
2326
- do
2327
- if (p--, g--, g < 0 || o[p] !== x[g]) {
2328
- var R = `
2329
- ` + o[p].replace(" at new ", " at ");
2330
- return e.displayName && R.includes("<anonymous>") && (R = R.replace("<anonymous>", e.displayName)), typeof e == "function" && U.set(e, R), R;
2331
- }
2332
- while (p >= 1 && g >= 0);
2333
- break;
2334
- }
2335
- }
2336
- } finally {
2337
- B = !1, Y.current = u, Ze(), Error.prepareStackTrace = s;
2338
- }
2339
- var N = e ? e.displayName || e.name : "", M = N ? V(N) : "";
2340
- return typeof e == "function" && U.set(e, M), M;
2341
- }
2342
- function $e(e, r, t) {
2343
- return ye(e, !1);
2344
- }
2345
- function Ie(e) {
2346
- var r = e.prototype;
2347
- return !!(r && r.isReactComponent);
2348
- }
2349
- function H(e, r, t) {
2350
- if (e == null)
2351
- return "";
2352
- if (typeof e == "function")
2353
- return ye(e, Ie(e));
2354
- if (typeof e == "string")
2355
- return V(e);
2356
- switch (e) {
2357
- case m:
2358
- return V("Suspense");
2359
- case f:
2360
- return V("SuspenseList");
2361
- }
2362
- if (typeof e == "object")
2363
- switch (e.$$typeof) {
2364
- case d:
2365
- return $e(e.render);
2366
- case y:
2367
- return H(e.type, r, t);
2368
- case j: {
2369
- var n = e, s = n._payload, u = n._init;
2370
- try {
2371
- return H(u(s), r, t);
2372
- } catch {
2373
- }
2374
- }
2375
- }
2376
- return "";
2377
- }
2378
- var D = Object.prototype.hasOwnProperty, he = {}, me = C.ReactDebugCurrentFrame;
2379
- function W(e) {
2380
- if (e) {
2381
- var r = e._owner, t = H(e.type, e._source, r ? r.type : null);
2382
- me.setExtraStackFrame(t);
2383
- } else
2384
- me.setExtraStackFrame(null);
2385
- }
2386
- function Ve(e, r, t, n, s) {
2387
- {
2388
- var u = Function.call.bind(D);
2389
- for (var i in e)
2390
- if (u(e, i)) {
2391
- var o = void 0;
2392
- try {
2393
- if (typeof e[i] != "function") {
2394
- var x = Error((n || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
2395
- throw x.name = "Invariant Violation", x;
2396
- }
2397
- o = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
2398
- } catch (p) {
2399
- o = p;
2400
- }
2401
- o && !(o instanceof Error) && (W(s), v("%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).", n || "React class", t, i, typeof o), W(null)), o instanceof Error && !(o.message in he) && (he[o.message] = !0, W(s), v("Failed %s type: %s", t, o.message), W(null));
2402
- }
2403
- }
2404
- }
2405
- var Ue = Array.isArray;
2406
- function J(e) {
2407
- return Ue(e);
2408
- }
2409
- function He(e) {
2410
- {
2411
- var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
2412
- return t;
2413
- }
2414
- }
2415
- function We(e) {
2416
- try {
2417
- return xe(e), !1;
2418
- } catch {
2419
- return !0;
2420
- }
2421
- }
2422
- function xe(e) {
2423
- return "" + e;
2424
- }
2425
- function we(e) {
2426
- if (We(e))
2427
- return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", He(e)), xe(e);
2428
- }
2429
- var Ee = C.ReactCurrentOwner, Ye = {
2430
- key: !0,
2431
- ref: !0,
2432
- __self: !0,
2433
- __source: !0
2434
- }, _e, Re;
2435
- function ze(e) {
2436
- if (D.call(e, "ref")) {
2437
- var r = Object.getOwnPropertyDescriptor(e, "ref").get;
2438
- if (r && r.isReactWarning)
2439
- return !1;
2440
- }
2441
- return e.ref !== void 0;
2442
- }
2443
- function Be(e) {
2444
- if (D.call(e, "key")) {
2445
- var r = Object.getOwnPropertyDescriptor(e, "key").get;
2446
- if (r && r.isReactWarning)
2447
- return !1;
2448
- }
2449
- return e.key !== void 0;
2450
- }
2451
- function Je(e, r) {
2452
- typeof e.ref == "string" && Ee.current;
2453
- }
2454
- function qe(e, r) {
2455
- {
2456
- var t = function() {
2457
- _e || (_e = !0, v("%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));
2458
- };
2459
- t.isReactWarning = !0, Object.defineProperty(e, "key", {
2460
- get: t,
2461
- configurable: !0
2462
- });
2463
- }
2464
- }
2465
- function Ke(e, r) {
2466
- {
2467
- var t = function() {
2468
- Re || (Re = !0, v("%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));
2469
- };
2470
- t.isReactWarning = !0, Object.defineProperty(e, "ref", {
2471
- get: t,
2472
- configurable: !0
2473
- });
2474
- }
2475
- }
2476
- var Xe = function(e, r, t, n, s, u, i) {
2477
- var o = {
2478
- // This tag allows us to uniquely identify this as a React Element
2479
- $$typeof: c,
2480
- // Built-in properties that belong on the element
2481
- type: e,
2482
- key: r,
2483
- ref: t,
2484
- props: i,
2485
- // Record the component responsible for creating this element.
2486
- _owner: u
2487
- };
2488
- return o._store = {}, Object.defineProperty(o._store, "validated", {
2489
- configurable: !1,
2490
- enumerable: !1,
2491
- writable: !0,
2492
- value: !1
2493
- }), Object.defineProperty(o, "_self", {
2494
- configurable: !1,
2495
- enumerable: !1,
2496
- writable: !1,
2497
- value: n
2498
- }), Object.defineProperty(o, "_source", {
2499
- configurable: !1,
2500
- enumerable: !1,
2501
- writable: !1,
2502
- value: s
2503
- }), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
2504
- };
2505
- function Ge(e, r, t, n, s) {
2506
- {
2507
- var u, i = {}, o = null, x = null;
2508
- t !== void 0 && (we(t), o = "" + t), Be(r) && (we(r.key), o = "" + r.key), ze(r) && (x = r.ref, Je(r));
2509
- for (u in r)
2510
- D.call(r, u) && !Ye.hasOwnProperty(u) && (i[u] = r[u]);
2511
- if (e && e.defaultProps) {
2512
- var p = e.defaultProps;
2513
- for (u in p)
2514
- i[u] === void 0 && (i[u] = p[u]);
2515
- }
2516
- if (o || x) {
2517
- var g = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
2518
- o && qe(i, g), x && Ke(i, g);
2519
- }
2520
- return Xe(e, o, x, s, n, Ee.current, i);
2521
- }
2522
- }
2523
- var q = C.ReactCurrentOwner, je = C.ReactDebugCurrentFrame;
2524
- function F(e) {
2525
- if (e) {
2526
- var r = e._owner, t = H(e.type, e._source, r ? r.type : null);
2527
- je.setExtraStackFrame(t);
2528
- } else
2529
- je.setExtraStackFrame(null);
2530
- }
2531
- var K;
2532
- K = !1;
2533
- function X(e) {
2534
- return typeof e == "object" && e !== null && e.$$typeof === c;
2535
- }
2536
- function Se() {
2537
- {
2538
- if (q.current) {
2539
- var e = O(q.current.type);
2540
- if (e)
2541
- return `
2542
-
2543
- Check the render method of \`` + e + "`.";
2544
- }
2545
- return "";
2546
- }
2547
- }
2548
- function Qe(e) {
2549
- return "";
2550
- }
2551
- var ke = {};
2552
- function er(e) {
2553
- {
2554
- var r = Se();
2555
- if (!r) {
2556
- var t = typeof e == "string" ? e : e.displayName || e.name;
2557
- t && (r = `
2558
-
2559
- Check the top-level render call using <` + t + ">.");
2560
- }
2561
- return r;
2562
- }
2563
- }
2564
- function Oe(e, r) {
2565
- {
2566
- if (!e._store || e._store.validated || e.key != null)
2567
- return;
2568
- e._store.validated = !0;
2569
- var t = er(r);
2570
- if (ke[t])
2571
- return;
2572
- ke[t] = !0;
2573
- var n = "";
2574
- e && e._owner && e._owner !== q.current && (n = " It was passed a child from " + O(e._owner.type) + "."), F(e), v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), F(null);
2575
- }
2576
- }
2577
- function Ae(e, r) {
2578
- {
2579
- if (typeof e != "object")
2580
- return;
2581
- if (J(e))
2582
- for (var t = 0; t < e.length; t++) {
2583
- var n = e[t];
2584
- X(n) && Oe(n, r);
2585
- }
2586
- else if (X(e))
2587
- e._store && (e._store.validated = !0);
2588
- else if (e) {
2589
- var s = ae(e);
2590
- if (typeof s == "function" && s !== e.entries)
2591
- for (var u = s.call(e), i; !(i = u.next()).done; )
2592
- X(i.value) && Oe(i.value, r);
2593
- }
2594
- }
2595
- }
2596
- function rr(e) {
2597
- {
2598
- var r = e.type;
2599
- if (r == null || typeof r == "string")
2600
- return;
2601
- var t;
2602
- if (typeof r == "function")
2603
- t = r.propTypes;
2604
- else if (typeof r == "object" && (r.$$typeof === d || // Note: Memo only checks outer props here.
2605
- // Inner props are checked in the reconciler.
2606
- r.$$typeof === y))
2607
- t = r.propTypes;
2608
- else
2609
- return;
2610
- if (t) {
2611
- var n = O(r);
2612
- Ve(t, e.props, "prop", n, e);
2613
- } else if (r.PropTypes !== void 0 && !K) {
2614
- K = !0;
2615
- var s = O(r);
2616
- v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", s || "Unknown");
2617
- }
2618
- typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
2619
- }
2620
- }
2621
- function tr(e) {
2622
- {
2623
- for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
2624
- var n = r[t];
2625
- if (n !== "children" && n !== "key") {
2626
- F(e), v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), F(null);
2627
- break;
2628
- }
2629
- }
2630
- e.ref !== null && (F(e), v("Invalid attribute `ref` supplied to `React.Fragment`."), F(null));
2631
- }
2632
- }
2633
- var Ce = {};
2634
- function Te(e, r, t, n, s, u) {
2635
- {
2636
- var i = Pe(e);
2637
- if (!i) {
2638
- var o = "";
2639
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (o += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
2640
- var x = Qe();
2641
- x ? o += x : o += Se();
2642
- var p;
2643
- e === null ? p = "null" : J(e) ? p = "array" : e !== void 0 && e.$$typeof === c ? (p = "<" + (O(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : p = typeof e, v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", p, o);
2644
- }
2645
- var g = Ge(e, r, t, s, u);
2646
- if (g == null)
2647
- return g;
2648
- if (i) {
2649
- var R = r.children;
2650
- if (R !== void 0)
2651
- if (n)
2652
- if (J(R)) {
2653
- for (var N = 0; N < R.length; N++)
2654
- Ae(R[N], e);
2655
- Object.freeze && Object.freeze(R);
2656
- } else
2657
- v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
2658
- else
2659
- Ae(R, e);
2660
- }
2661
- if (D.call(r, "key")) {
2662
- var M = O(e), E = Object.keys(r).filter(function(sr) {
2663
- return sr !== "key";
2664
- }), G = E.length > 0 ? "{key: someKey, " + E.join(": ..., ") + ": ...}" : "{key: someKey}";
2665
- if (!Ce[M + G]) {
2666
- var ir = E.length > 0 ? "{" + E.join(": ..., ") + ": ...}" : "{}";
2667
- v(`A props object containing a "key" prop is being spread into JSX:
2668
- let props = %s;
2669
- <%s {...props} />
2670
- React keys must be passed directly to JSX without using spread:
2671
- let props = %s;
2672
- <%s key={someKey} {...props} />`, G, M, ir, M), Ce[M + G] = !0;
2673
- }
2674
- }
2675
- return e === b ? tr(g) : rr(g), g;
2676
- }
2677
- }
2678
- function nr(e, r, t) {
2679
- return Te(e, r, t, !0);
2680
- }
2681
- function ar(e, r, t) {
2682
- return Te(e, r, t, !1);
2683
- }
2684
- var or = ar, lr = nr;
2685
- gr.Fragment = b, gr.jsx = or, gr.jsxs = lr;
2686
- }()), gr;
2687
- }
2688
- process.env.NODE_ENV === "production" ? st() : ct();
2689
- const ut = {
2690
- green: {
2691
- solid: {
2692
- bg: "bg-green-500",
2693
- hover: "hover:bg-green-600 hover:text-white",
2694
- text: "text-white",
2695
- border: "border-green-500"
2696
- },
2697
- outline: {
2698
- bg: "bg-transparent",
2699
- hover: "hover:bg-green-600 hover:text-white",
2700
- text: "text-green-600",
2701
- border: "border-green-500"
2702
- },
2703
- ghost: {
2704
- bg: "bg-transparent",
2705
- hover: "hover:bg-green-600 hover:text-white",
2706
- text: "text-green-600",
2707
- border: "border-transparent"
2708
- }
2709
- },
2710
- blue: {
2711
- solid: {
2712
- bg: "bg-blue-500",
2713
- hover: "hover:bg-blue-600 hover:text-white",
2714
- text: "text-white",
2715
- border: "border-blue-500"
2716
- },
2717
- outline: {
2718
- bg: "bg-transparent",
2719
- hover: "hover:bg-blue-500 hover:text-white",
2720
- text: "text-blue-600",
2721
- border: "border-blue-500"
2722
- },
2723
- ghost: {
2724
- bg: "bg-transparent",
2725
- hover: "hover:bg-blue-500 hover:text-white",
2726
- text: "text-blue-600",
2727
- border: "border-transparent"
2728
- }
2729
- },
2730
- red: {
2731
- solid: {
2732
- bg: "bg-red-500",
2733
- hover: "hover:bg-red-600 hover:text-white",
2734
- text: "text-white",
2735
- border: "border-red-500"
2736
- },
2737
- outline: {
2738
- bg: "bg-transparent",
2739
- hover: "hover:bg-red-500 hover:text-white",
2740
- text: "text-red-600",
2741
- border: "border-red-500"
2742
- },
2743
- ghost: {
2744
- bg: "bg-transparent",
2745
- hover: "hover:bg-red-500 hover:text-white",
2746
- text: "text-red-600",
2747
- border: "border-transparent"
2748
- }
2749
- },
2750
- yellow: {
2751
- solid: {
2752
- bg: "bg-yellow-500",
2753
- hover: "hover:bg-yellow-600 hover:text-black",
2754
- text: "text-black",
2755
- border: "border-yellow-500"
2756
- },
2757
- outline: {
2758
- bg: "bg-transparent",
2759
- hover: "hover:bg-yellow-500 hover:text-white",
2760
- text: "text-yellow-600",
2761
- border: "border-yellow-500"
2762
- },
2763
- ghost: {
2764
- bg: "bg-transparent",
2765
- hover: "hover:bg-yellow-500 hover:text-white",
2766
- text: "text-yellow-600",
2767
- border: "border-transparent"
2768
- }
2769
- },
2770
- primary: {
2771
- solid: {
2772
- bg: "bg-primary",
2773
- hover: "hover:bg-primary-hover hover:text-foreground",
2774
- text: "text-foreground",
2775
- border: "border-primary"
2776
- },
2777
- outline: {
2778
- bg: "bg-transparent",
2779
- hover: "hover:bg-primary hover:text-foreground",
2780
- text: "text-primary",
2781
- border: "border-primary"
2782
- },
2783
- ghost: {
2784
- bg: "bg-transparent",
2785
- hover: "hover:bg-primary hover:text-foreground",
2786
- text: "text-primary",
2787
- border: "border-transparent"
2788
- }
2789
- },
2790
- secondary: {
2791
- solid: {
2792
- bg: "bg-secondary",
2793
- hover: "hover:bg-secondary/80 hover:text-secondary-foreground",
2794
- text: "text-secondary-foreground",
2795
- border: "border-secondary"
2796
- },
2797
- outline: {
2798
- bg: "bg-transparent",
2799
- hover: "hover:bg-secondary hover:text-secondary-foreground",
2800
- text: "text-secondary",
2801
- border: "border-secondary"
2802
- },
2803
- ghost: {
2804
- bg: "bg-transparent",
2805
- hover: "hover:bg-secondary hover:text-secondary-foreground",
2806
- text: "text-secondary",
2807
- border: "border-transparent"
2808
- }
2809
- },
2810
- destructive: {
2811
- solid: {
2812
- bg: "bg-destructive",
2813
- hover: "hover:bg-destructive/90 hover:text-destructive-foreground",
2814
- text: "text-destructive-foreground",
2815
- border: "border-destructive"
2816
- },
2817
- outline: {
2818
- bg: "bg-transparent",
2819
- hover: "hover:bg-destructive hover:text-destructive-foreground",
2820
- text: "text-destructive",
2821
- border: "border-destructive"
2822
- },
2823
- ghost: {
2824
- bg: "bg-transparent",
2825
- hover: "hover:bg-destructive hover:text-destructive-foreground",
2826
- text: "text-destructive",
2827
- border: "border-transparent"
2828
- }
2829
- },
2830
- card: {
2831
- solid: {
2832
- bg: "bg-card",
2833
- hover: "hover:bg-accent hover:text-card-foreground",
2834
- text: "text-card-foreground",
2835
- border: "border-border"
2836
- },
2837
- outline: {
2838
- bg: "bg-transparent",
2839
- hover: "hover:bg-accent hover:text-card-foreground",
2840
- text: "text-card-foreground",
2841
- border: "border-border"
2842
- },
2843
- ghost: {
2844
- bg: "bg-transparent",
2845
- hover: "hover:bg-accent hover:text-card-foreground",
2846
- text: "text-card-foreground",
2847
- border: "border-transparent"
2848
- }
2849
- }
2850
- };
2851
- vr(ut);
2852
- const ft = [];
2853
- for (let l = 0; l < 256; ++l)
2854
- ft.push((l + 256).toString(16).slice(1));
2855
- typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
2856
- const dt = /* @__PURE__ */ new Map([
2857
- [
2858
- "bold",
2859
- /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.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" }))
2860
- ],
2861
- [
2862
- "duotone",
2863
- /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement(
2864
- "path",
2865
- {
2866
- 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",
2867
- opacity: "0.2"
2868
- }
2869
- ), /* @__PURE__ */ a.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" }))
2870
- ],
2871
- [
2872
- "fill",
2873
- /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.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" }))
2874
- ],
2875
- [
2876
- "light",
2877
- /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.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" }))
2878
- ],
2879
- [
2880
- "regular",
2881
- /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.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" }))
2882
- ],
2883
- [
2884
- "thin",
2885
- /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.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" }))
2886
- ]
2887
- ]), pt = /* @__PURE__ */ new Map([
2888
- [
2889
- "bold",
2890
- /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.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" }))
2891
- ],
2892
- [
2893
- "duotone",
2894
- /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z", opacity: "0.2" }), /* @__PURE__ */ a.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" }))
2895
- ],
2896
- [
2897
- "fill",
2898
- /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.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" }))
2899
- ],
2900
- [
2901
- "light",
2902
- /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.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" }))
2903
- ],
2904
- [
2905
- "regular",
2906
- /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.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" }))
2907
- ],
2908
- [
2909
- "thin",
2910
- /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.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" }))
2911
- ]
2912
- ]), gt = vr({
2913
- color: "currentColor",
2914
- size: "1em",
2915
- weight: "regular",
2916
- mirrored: !1
2917
- }), Sr = a.forwardRef(
2918
- (l, c) => {
2919
- const {
2920
- alt: h,
2921
- color: b,
2922
- size: _,
2923
- weight: S,
2924
- mirrored: k,
2925
- children: w,
2926
- weights: d,
2927
- ...m
2928
- } = l, {
2929
- color: f = "currentColor",
2930
- size: y,
2931
- weight: j = "regular",
2932
- mirrored: P = !1,
2933
- ...I
2934
- } = a.useContext(gt);
2935
- return /* @__PURE__ */ a.createElement(
2936
- "svg",
2937
- {
2938
- ref: c,
2939
- xmlns: "http://www.w3.org/2000/svg",
2940
- width: _ ?? y,
2941
- height: _ ?? y,
2942
- fill: b ?? f,
2943
- viewBox: "0 0 256 256",
2944
- transform: k || P ? "scale(-1, 1)" : void 0,
2945
- ...I,
2946
- ...m
2947
- },
2948
- !!h && /* @__PURE__ */ a.createElement("title", null, h),
2949
- w,
2950
- d.get(S ?? j)
2951
- );
2952
- }
2953
- );
2954
- Sr.displayName = "IconBase";
2955
- const bt = a.forwardRef((l, c) => /* @__PURE__ */ a.createElement(Sr, { ref: c, ...l, weights: dt }));
2956
- bt.displayName = "BroomIcon";
2957
- const vt = a.forwardRef((l, c) => /* @__PURE__ */ a.createElement(Sr, { ref: c, ...l, weights: pt }));
2958
- vt.displayName = "MagnifyingGlassIcon";
2959
- function wr(l, c) {
2960
- return c.split(".").reduce((h, b) => h ? h[b] : void 0, l);
2961
- }
2962
- function wt({
2963
- field: l,
2964
- title: c,
2965
- id: h,
2966
- placeholder: b,
2967
- value: _,
2968
- options: S,
2969
- icon: k,
2970
- iconPosition: w = "right",
2971
- optionPosition: d = "left",
2972
- error: m,
2973
- required: f,
2974
- onChange: y,
2975
- selected: j,
2976
- isClearable: P,
2977
- searchable: I = !1
2978
- }) {
2979
- const [ne, ae] = yr(""), [C, v] = yr(!1), Q = $r(null), [oe, Le] = yr("");
2980
- kr(() => {
2981
- function T(ee) {
2982
- Q.current && !Q.current.contains(ee.target) && v(!1);
2983
- }
2984
- return document.addEventListener("mousedown", T), () => document.removeEventListener("mousedown", T);
2985
- }, []);
2986
- const le = (T) => {
2987
- y == null || y(T), v(!1);
2988
- };
2989
- return kr(() => {
2990
- Le(_);
2991
- }, [_]), /* @__PURE__ */ A.jsxs("div", { className: "flex flex-col gap-2 w-full relative", ref: Q, children: [
2992
- c && /* @__PURE__ */ A.jsxs(
2993
- "label",
2994
- {
2995
- htmlFor: h,
2996
- className: te("block text-md font-medium text-foreground", {
2997
- "text-red-700": m
2998
- }),
2999
- children: [
3000
- f && /* @__PURE__ */ A.jsx("span", { className: "text-red-500", children: "*" }),
3001
- " ",
3002
- c ? `${c}:` : ""
3003
- ]
3004
- }
3005
- ),
3006
- /* @__PURE__ */ A.jsxs(
3007
- "div",
3008
- {
3009
- className: te(
3010
- "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",
3011
- { "border-red-500": m }
3012
- ),
3013
- onClick: () => v(!C),
3014
- children: [
3015
- w === "left" && k,
3016
- /* @__PURE__ */ A.jsx("span", { className: `flex-1 ${w === "left" && "ml-3"}`, children: oe || b || "Selecione..." }),
3017
- w === "right" && k
3018
- ]
3019
- }
3020
- ),
3021
- C && /* @__PURE__ */ A.jsxs(
3022
- "ul",
3023
- {
3024
- className: te(
3025
- "absolute top-full w-auto max-h-72 overflow-y-auto border border-border rounded-lg bg-card z-50 shadow-lg mt-1",
3026
- {
3027
- "left-0": d === "left",
3028
- "right-0": d === "right"
3029
- }
3030
- ),
3031
- children: [
3032
- /* @__PURE__ */ A.jsx(
3033
- "li",
3034
- {
3035
- className: "p-3 cursor-pointer text-foreground",
3036
- onClick: () => P && le({}),
3037
- children: b || "Selecione..."
3038
- },
3039
- Tr()
3040
- ),
3041
- I && /* @__PURE__ */ A.jsxs("li", { className: "px-2 cursor-pointer text-foreground flex gap-2 items-center justify-start", children: [
3042
- /* @__PURE__ */ A.jsx("div", { className: "flex-1", children: /* @__PURE__ */ A.jsx(
3043
- rt,
3044
- {
3045
- field: "",
3046
- title: "",
3047
- id: "search-select",
3048
- name: "search-select",
3049
- placeholder: "Buscar",
3050
- icon: /* @__PURE__ */ A.jsx(Zr, {}),
3051
- iconPosition: "left",
3052
- onChange: (T) => ae(T.target.value),
3053
- value: ne
3054
- }
3055
- ) }),
3056
- /* @__PURE__ */ A.jsx(
3057
- et,
3058
- {
3059
- color: "blue",
3060
- title: "",
3061
- icon: /* @__PURE__ */ A.jsx(Nr, {}),
3062
- positionIcon: "left",
3063
- onClick: (T) => {
3064
- T == null || T.stopPropagation(), y == null || y({}), ae("");
3065
- },
3066
- className: "m-0"
3067
- }
3068
- )
3069
- ] }),
3070
- S.filter((T) => {
3071
- const ee = wr(T, l);
3072
- return String(ee).toLowerCase().includes(ne.toLowerCase());
3073
- }).map((T) => /* @__PURE__ */ A.jsx(
3074
- "li",
3075
- {
3076
- className: te(
3077
- "p-2 hover:bg-primary cursor-pointer text-foreground",
3078
- {
3079
- "bg-primary": wr(T, l) === _ || (j == null ? void 0 : j[l]) === T[l]
3080
- }
3081
- ),
3082
- onClick: () => le(T),
3083
- children: wr(T, l)
3084
- },
3085
- Tr()
3086
- ))
3087
- ]
3088
- }
3089
- ),
3090
- m && /* @__PURE__ */ A.jsx("p", { className: "text-sm text-red-600 mt-1", children: m })
3091
- ] });
3092
- }
3093
- export {
3094
- mt as B,
3095
- xt as I,
3096
- wt as S
3097
- };