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