@arkyn/components 1.3.61 → 1.3.63

Sign up to get free protection for your applications and to get access to all the features.
package/dist/bundle.js CHANGED
@@ -1,10 +1,10 @@
1
- import p, { createContext as Ie, useRef as Ne, useId as Kt, useContext as Ee, useState as le, forwardRef as Xt, useLayoutEffect as Jt, useEffect as pt } from "react";
1
+ import p, { createContext as Ie, useRef as Ce, useId as Kt, useContext as Ee, useState as ce, forwardRef as Xt, useLayoutEffect as Jt, useEffect as pt } from "react";
2
2
  import { Loader2 as Se, Check as Ct, ChevronDown as qt, ChevronRight as at, ChevronLeft as Gt, Ellipsis as gt, X as Nt, Info as vt, AlertCircle as Zt, XCircle as Qt, CheckCircle2 as en } from "lucide-react";
3
3
  import { useActionData as _t, useLocation as jt, Link as tn, useNavigate as nn } from "@remix-run/react";
4
4
  import { InputMask as rn } from "@react-input/mask";
5
5
  import { AnimatePresence as Et, motion as Ae } from "framer-motion";
6
6
  import an from "react-dom";
7
- var st = { exports: {} }, Be = {};
7
+ var st = { exports: {} }, Me = {};
8
8
  /**
9
9
  * @license React
10
10
  * react-jsx-runtime.production.min.js
@@ -16,7 +16,7 @@ var st = { exports: {} }, Be = {};
16
16
  */
17
17
  var bt;
18
18
  function sn() {
19
- if (bt) return Be;
19
+ if (bt) return Me;
20
20
  bt = 1;
21
21
  var e = p, n = Symbol.for("react.element"), r = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
22
22
  function f(c, u, m) {
@@ -26,9 +26,9 @@ function sn() {
26
26
  if (c && c.defaultProps) for (h in u = c.defaultProps, u) b[h] === void 0 && (b[h] = u[h]);
27
27
  return { $$typeof: n, type: c, key: a, ref: v, props: b, _owner: i.current };
28
28
  }
29
- return Be.Fragment = r, Be.jsx = f, Be.jsxs = f, Be;
29
+ return Me.Fragment = r, Me.jsx = f, Me.jsxs = f, Me;
30
30
  }
31
- var Me = {};
31
+ var Be = {};
32
32
  /**
33
33
  * @license React
34
34
  * react-jsx-runtime.development.js
@@ -41,11 +41,11 @@ var Me = {};
41
41
  var yt;
42
42
  function on() {
43
43
  return yt || (yt = 1, process.env.NODE_ENV !== "production" && function() {
44
- var e = p, n = Symbol.for("react.element"), r = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), c = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), a = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), j = Symbol.iterator, x = "@@iterator";
44
+ var e = p, n = Symbol.for("react.element"), r = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), c = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), a = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), _ = Symbol.iterator, x = "@@iterator";
45
45
  function C(t) {
46
46
  if (t === null || typeof t != "object")
47
47
  return null;
48
- var d = j && t[j] || t[x];
48
+ var d = _ && t[_] || t[x];
49
49
  return typeof d == "function" ? d : null;
50
50
  }
51
51
  var y = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
@@ -53,27 +53,27 @@ function on() {
53
53
  {
54
54
  for (var d = arguments.length, g = new Array(d > 1 ? d - 1 : 0), k = 1; k < d; k++)
55
55
  g[k - 1] = arguments[k];
56
- V("error", t, g);
56
+ Y("error", t, g);
57
57
  }
58
58
  }
59
- function V(t, d, g) {
59
+ function Y(t, d, g) {
60
60
  {
61
61
  var k = y.ReactDebugCurrentFrame, D = k.getStackAddendum();
62
62
  D !== "" && (d += "%s", g = g.concat([D]));
63
- var W = g.map(function(I) {
63
+ var V = g.map(function(I) {
64
64
  return String(I);
65
65
  });
66
- W.unshift("Warning: " + d), Function.prototype.apply.call(console[t], console, W);
66
+ V.unshift("Warning: " + d), Function.prototype.apply.call(console[t], console, V);
67
67
  }
68
68
  }
69
- var z = !1, R = !1, A = !1, L = !1, X = !1, U;
70
- U = Symbol.for("react.module.reference");
71
- function K(t) {
72
- return !!(typeof t == "string" || typeof t == "function" || t === o || t === l || X || t === i || t === m || t === h || L || t === v || z || R || A || typeof t == "object" && t !== null && (t.$$typeof === a || t.$$typeof === b || t.$$typeof === f || t.$$typeof === c || t.$$typeof === u || // This needs to include all possible module reference object
69
+ var z = !1, R = !1, A = !1, L = !1, J = !1, K;
70
+ K = Symbol.for("react.module.reference");
71
+ function H(t) {
72
+ return !!(typeof t == "string" || typeof t == "function" || t === o || t === l || J || t === i || t === m || t === h || L || t === v || z || R || A || typeof t == "object" && t !== null && (t.$$typeof === a || t.$$typeof === b || t.$$typeof === f || t.$$typeof === c || t.$$typeof === u || // This needs to include all possible module reference object
73
73
  // types supported by any Flight configuration anywhere since
74
74
  // we don't know which Flight build this will end up being used
75
75
  // with.
76
- t.$$typeof === U || t.getModuleId !== void 0));
76
+ t.$$typeof === K || t.getModuleId !== void 0));
77
77
  }
78
78
  function O(t, d, g) {
79
79
  var k = t.displayName;
@@ -82,10 +82,10 @@ function on() {
82
82
  var D = d.displayName || d.name || "";
83
83
  return D !== "" ? g + "(" + D + ")" : g;
84
84
  }
85
- function G(t) {
85
+ function Q(t) {
86
86
  return t.displayName || "Context";
87
87
  }
88
- function E(t) {
88
+ function j(t) {
89
89
  if (t == null)
90
90
  return null;
91
91
  if (typeof t.tag == "number" && w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
@@ -110,19 +110,19 @@ function on() {
110
110
  switch (t.$$typeof) {
111
111
  case c:
112
112
  var d = t;
113
- return G(d) + ".Consumer";
113
+ return Q(d) + ".Consumer";
114
114
  case f:
115
115
  var g = t;
116
- return G(g._context) + ".Provider";
116
+ return Q(g._context) + ".Provider";
117
117
  case u:
118
118
  return O(t, t.render, "ForwardRef");
119
119
  case b:
120
120
  var k = t.displayName || null;
121
- return k !== null ? k : E(t.type) || "Memo";
121
+ return k !== null ? k : j(t.type) || "Memo";
122
122
  case a: {
123
- var D = t, W = D._payload, I = D._init;
123
+ var D = t, V = D._payload, I = D._init;
124
124
  try {
125
- return E(I(W));
125
+ return j(I(V));
126
126
  } catch {
127
127
  return null;
128
128
  }
@@ -130,18 +130,18 @@ function on() {
130
130
  }
131
131
  return null;
132
132
  }
133
- var J = Object.assign, F = 0, Y, te, $, Z, he, T, _;
134
- function S() {
133
+ var q = Object.assign, F = 0, U, ne, $, ee, oe, S, E;
134
+ function P() {
135
135
  }
136
- S.__reactDisabledLog = !0;
137
- function ne() {
136
+ P.__reactDisabledLog = !0;
137
+ function X() {
138
138
  {
139
139
  if (F === 0) {
140
- Y = console.log, te = console.info, $ = console.warn, Z = console.error, he = console.group, T = console.groupCollapsed, _ = console.groupEnd;
140
+ U = console.log, ne = console.info, $ = console.warn, ee = console.error, oe = console.group, S = console.groupCollapsed, E = console.groupEnd;
141
141
  var t = {
142
142
  configurable: !0,
143
143
  enumerable: !0,
144
- value: S,
144
+ value: P,
145
145
  writable: !0
146
146
  };
147
147
  Object.defineProperties(console, {
@@ -157,7 +157,7 @@ function on() {
157
157
  F++;
158
158
  }
159
159
  }
160
- function Q() {
160
+ function G() {
161
161
  {
162
162
  if (F--, F === 0) {
163
163
  var t = {
@@ -166,65 +166,65 @@ function on() {
166
166
  writable: !0
167
167
  };
168
168
  Object.defineProperties(console, {
169
- log: J({}, t, {
170
- value: Y
169
+ log: q({}, t, {
170
+ value: U
171
171
  }),
172
- info: J({}, t, {
173
- value: te
172
+ info: q({}, t, {
173
+ value: ne
174
174
  }),
175
- warn: J({}, t, {
175
+ warn: q({}, t, {
176
176
  value: $
177
177
  }),
178
- error: J({}, t, {
179
- value: Z
178
+ error: q({}, t, {
179
+ value: ee
180
180
  }),
181
- group: J({}, t, {
182
- value: he
181
+ group: q({}, t, {
182
+ value: oe
183
183
  }),
184
- groupCollapsed: J({}, t, {
185
- value: T
184
+ groupCollapsed: q({}, t, {
185
+ value: S
186
186
  }),
187
- groupEnd: J({}, t, {
188
- value: _
187
+ groupEnd: q({}, t, {
188
+ value: E
189
189
  })
190
190
  });
191
191
  }
192
192
  F < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
193
193
  }
194
194
  }
195
- var H = y.ReactCurrentDispatcher, re;
196
- function oe(t, d, g) {
195
+ var W = y.ReactCurrentDispatcher, Ne;
196
+ function me(t, d, g) {
197
197
  {
198
- if (re === void 0)
198
+ if (Ne === void 0)
199
199
  try {
200
200
  throw Error();
201
201
  } catch (D) {
202
202
  var k = D.stack.trim().match(/\n( *(at )?)/);
203
- re = k && k[1] || "";
203
+ Ne = k && k[1] || "";
204
204
  }
205
205
  return `
206
- ` + re + t;
206
+ ` + Ne + t;
207
207
  }
208
208
  }
209
- var de = !1, ve;
209
+ var ve = !1, pe;
210
210
  {
211
211
  var Ge = typeof WeakMap == "function" ? WeakMap : Map;
212
- ve = new Ge();
212
+ pe = new Ge();
213
213
  }
214
214
  function Re(t, d) {
215
- if (!t || de)
215
+ if (!t || ve)
216
216
  return "";
217
217
  {
218
- var g = ve.get(t);
218
+ var g = pe.get(t);
219
219
  if (g !== void 0)
220
220
  return g;
221
221
  }
222
222
  var k;
223
- de = !0;
223
+ ve = !0;
224
224
  var D = Error.prepareStackTrace;
225
225
  Error.prepareStackTrace = void 0;
226
- var W;
227
- W = H.current, H.current = null, ne();
226
+ var V;
227
+ V = W.current, W.current = null, X();
228
228
  try {
229
229
  if (d) {
230
230
  var I = function() {
@@ -237,50 +237,50 @@ function on() {
237
237
  }), typeof Reflect == "object" && Reflect.construct) {
238
238
  try {
239
239
  Reflect.construct(I, []);
240
- } catch (ue) {
241
- k = ue;
240
+ } catch (le) {
241
+ k = le;
242
242
  }
243
243
  Reflect.construct(t, [], I);
244
244
  } else {
245
245
  try {
246
246
  I.call();
247
- } catch (ue) {
248
- k = ue;
247
+ } catch (le) {
248
+ k = le;
249
249
  }
250
250
  t.call(I.prototype);
251
251
  }
252
252
  } else {
253
253
  try {
254
254
  throw Error();
255
- } catch (ue) {
256
- k = ue;
255
+ } catch (le) {
256
+ k = le;
257
257
  }
258
258
  t();
259
259
  }
260
- } catch (ue) {
261
- if (ue && k && typeof ue.stack == "string") {
262
- for (var P = ue.stack.split(`
263
- `), ie = k.stack.split(`
264
- `), q = P.length - 1, ee = ie.length - 1; q >= 1 && ee >= 0 && P[q] !== ie[ee]; )
265
- ee--;
266
- for (; q >= 1 && ee >= 0; q--, ee--)
267
- if (P[q] !== ie[ee]) {
268
- if (q !== 1 || ee !== 1)
260
+ } catch (le) {
261
+ if (le && k && typeof le.stack == "string") {
262
+ for (var T = le.stack.split(`
263
+ `), se = k.stack.split(`
264
+ `), Z = T.length - 1, te = se.length - 1; Z >= 1 && te >= 0 && T[Z] !== se[te]; )
265
+ te--;
266
+ for (; Z >= 1 && te >= 0; Z--, te--)
267
+ if (T[Z] !== se[te]) {
268
+ if (Z !== 1 || te !== 1)
269
269
  do
270
- if (q--, ee--, ee < 0 || P[q] !== ie[ee]) {
271
- var ge = `
272
- ` + P[q].replace(" at new ", " at ");
273
- return t.displayName && ge.includes("<anonymous>") && (ge = ge.replace("<anonymous>", t.displayName)), typeof t == "function" && ve.set(t, ge), ge;
270
+ if (Z--, te--, te < 0 || T[Z] !== se[te]) {
271
+ var he = `
272
+ ` + T[Z].replace(" at new ", " at ");
273
+ return t.displayName && he.includes("<anonymous>") && (he = he.replace("<anonymous>", t.displayName)), typeof t == "function" && pe.set(t, he), he;
274
274
  }
275
- while (q >= 1 && ee >= 0);
275
+ while (Z >= 1 && te >= 0);
276
276
  break;
277
277
  }
278
278
  }
279
279
  } finally {
280
- de = !1, H.current = W, Q(), Error.prepareStackTrace = D;
280
+ ve = !1, W.current = V, G(), Error.prepareStackTrace = D;
281
281
  }
282
- var Te = t ? t.displayName || t.name : "", je = Te ? oe(Te) : "";
283
- return typeof t == "function" && ve.set(t, je), je;
282
+ var Te = t ? t.displayName || t.name : "", je = Te ? me(Te) : "";
283
+ return typeof t == "function" && pe.set(t, je), je;
284
284
  }
285
285
  function Ze(t, d, g) {
286
286
  return Re(t, !1);
@@ -295,12 +295,12 @@ function on() {
295
295
  if (typeof t == "function")
296
296
  return Re(t, We(t));
297
297
  if (typeof t == "string")
298
- return oe(t);
298
+ return me(t);
299
299
  switch (t) {
300
300
  case m:
301
- return oe("Suspense");
301
+ return me("Suspense");
302
302
  case h:
303
- return oe("SuspenseList");
303
+ return me("SuspenseList");
304
304
  }
305
305
  if (typeof t == "object")
306
306
  switch (t.$$typeof) {
@@ -309,39 +309,39 @@ function on() {
309
309
  case b:
310
310
  return _e(t.type, d, g);
311
311
  case a: {
312
- var k = t, D = k._payload, W = k._init;
312
+ var k = t, D = k._payload, V = k._init;
313
313
  try {
314
- return _e(W(D), d, g);
314
+ return _e(V(D), d, g);
315
315
  } catch {
316
316
  }
317
317
  }
318
318
  }
319
319
  return "";
320
320
  }
321
- var me = Object.prototype.hasOwnProperty, Ve = {}, Ye = y.ReactDebugCurrentFrame;
322
- function ae(t) {
321
+ var de = Object.prototype.hasOwnProperty, Ve = {}, Ye = y.ReactDebugCurrentFrame;
322
+ function re(t) {
323
323
  if (t) {
324
324
  var d = t._owner, g = _e(t.type, t._source, d ? d.type : null);
325
325
  Ye.setExtraStackFrame(g);
326
326
  } else
327
327
  Ye.setExtraStackFrame(null);
328
328
  }
329
- function we(t, d, g, k, D) {
329
+ function xe(t, d, g, k, D) {
330
330
  {
331
- var W = Function.call.bind(me);
331
+ var V = Function.call.bind(de);
332
332
  for (var I in t)
333
- if (W(t, I)) {
334
- var P = void 0;
333
+ if (V(t, I)) {
334
+ var T = void 0;
335
335
  try {
336
336
  if (typeof t[I] != "function") {
337
- var ie = Error((k || "React class") + ": " + g + " type `" + I + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[I] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
338
- throw ie.name = "Invariant Violation", ie;
337
+ var se = Error((k || "React class") + ": " + g + " type `" + I + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[I] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
338
+ throw se.name = "Invariant Violation", se;
339
339
  }
340
- P = t[I](d, I, k, g, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
341
- } catch (q) {
342
- P = q;
340
+ T = t[I](d, I, k, g, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
341
+ } catch (Z) {
342
+ T = Z;
343
343
  }
344
- P && !(P instanceof Error) && (ae(D), w("%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).", k || "React class", g, I, typeof P), ae(null)), P instanceof Error && !(P.message in Ve) && (Ve[P.message] = !0, ae(D), w("Failed %s type: %s", g, P.message), ae(null));
344
+ T && !(T instanceof Error) && (re(D), w("%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).", k || "React class", g, I, typeof T), re(null)), T instanceof Error && !(T.message in Ve) && (Ve[T.message] = !0, re(D), w("Failed %s type: %s", g, T.message), re(null));
345
345
  }
346
346
  }
347
347
  }
@@ -369,15 +369,15 @@ function on() {
369
369
  if (et(t))
370
370
  return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", $e(t)), ze(t);
371
371
  }
372
- var pe = y.ReactCurrentOwner, He = {
372
+ var fe = y.ReactCurrentOwner, He = {
373
373
  key: !0,
374
374
  ref: !0,
375
375
  __self: !0,
376
376
  __source: !0
377
- }, ye, Fe, De;
377
+ }, be, Fe, De;
378
378
  De = {};
379
379
  function Ue(t) {
380
- if (me.call(t, "ref")) {
380
+ if (de.call(t, "ref")) {
381
381
  var d = Object.getOwnPropertyDescriptor(t, "ref").get;
382
382
  if (d && d.isReactWarning)
383
383
  return !1;
@@ -385,7 +385,7 @@ function on() {
385
385
  return t.ref !== void 0;
386
386
  }
387
387
  function Ke(t) {
388
- if (me.call(t, "key")) {
388
+ if (de.call(t, "key")) {
389
389
  var d = Object.getOwnPropertyDescriptor(t, "key").get;
390
390
  if (d && d.isReactWarning)
391
391
  return !1;
@@ -393,15 +393,15 @@ function on() {
393
393
  return t.key !== void 0;
394
394
  }
395
395
  function tt(t, d) {
396
- if (typeof t.ref == "string" && pe.current && d && pe.current.stateNode !== d) {
397
- var g = E(pe.current.type);
398
- De[g] || (w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', E(pe.current.type), t.ref), De[g] = !0);
396
+ if (typeof t.ref == "string" && fe.current && d && fe.current.stateNode !== d) {
397
+ var g = j(fe.current.type);
398
+ De[g] || (w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', j(fe.current.type), t.ref), De[g] = !0);
399
399
  }
400
400
  }
401
401
  function Le(t, d) {
402
402
  {
403
403
  var g = function() {
404
- ye || (ye = !0, w("%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)", d));
404
+ be || (be = !0, w("%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)", d));
405
405
  };
406
406
  g.isReactWarning = !0, Object.defineProperty(t, "key", {
407
407
  get: g,
@@ -409,7 +409,7 @@ function on() {
409
409
  });
410
410
  }
411
411
  }
412
- function be(t, d) {
412
+ function ge(t, d) {
413
413
  {
414
414
  var g = function() {
415
415
  Fe || (Fe = !0, w("%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)", d));
@@ -420,8 +420,8 @@ function on() {
420
420
  });
421
421
  }
422
422
  }
423
- var nt = function(t, d, g, k, D, W, I) {
424
- var P = {
423
+ var nt = function(t, d, g, k, D, V, I) {
424
+ var T = {
425
425
  // This tag allows us to uniquely identify this as a React Element
426
426
  $$typeof: n,
427
427
  // Built-in properties that belong on the element
@@ -430,60 +430,60 @@ function on() {
430
430
  ref: g,
431
431
  props: I,
432
432
  // Record the component responsible for creating this element.
433
- _owner: W
433
+ _owner: V
434
434
  };
435
- return P._store = {}, Object.defineProperty(P._store, "validated", {
435
+ return T._store = {}, Object.defineProperty(T._store, "validated", {
436
436
  configurable: !1,
437
437
  enumerable: !1,
438
438
  writable: !0,
439
439
  value: !1
440
- }), Object.defineProperty(P, "_self", {
440
+ }), Object.defineProperty(T, "_self", {
441
441
  configurable: !1,
442
442
  enumerable: !1,
443
443
  writable: !1,
444
444
  value: k
445
- }), Object.defineProperty(P, "_source", {
445
+ }), Object.defineProperty(T, "_source", {
446
446
  configurable: !1,
447
447
  enumerable: !1,
448
448
  writable: !1,
449
449
  value: D
450
- }), Object.freeze && (Object.freeze(P.props), Object.freeze(P)), P;
450
+ }), Object.freeze && (Object.freeze(T.props), Object.freeze(T)), T;
451
451
  };
452
452
  function N(t, d, g, k, D) {
453
453
  {
454
- var W, I = {}, P = null, ie = null;
455
- g !== void 0 && (Pe(g), P = "" + g), Ke(d) && (Pe(d.key), P = "" + d.key), Ue(d) && (ie = d.ref, tt(d, D));
456
- for (W in d)
457
- me.call(d, W) && !He.hasOwnProperty(W) && (I[W] = d[W]);
454
+ var V, I = {}, T = null, se = null;
455
+ g !== void 0 && (Pe(g), T = "" + g), Ke(d) && (Pe(d.key), T = "" + d.key), Ue(d) && (se = d.ref, tt(d, D));
456
+ for (V in d)
457
+ de.call(d, V) && !He.hasOwnProperty(V) && (I[V] = d[V]);
458
458
  if (t && t.defaultProps) {
459
- var q = t.defaultProps;
460
- for (W in q)
461
- I[W] === void 0 && (I[W] = q[W]);
459
+ var Z = t.defaultProps;
460
+ for (V in Z)
461
+ I[V] === void 0 && (I[V] = Z[V]);
462
462
  }
463
- if (P || ie) {
464
- var ee = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
465
- P && Le(I, ee), ie && be(I, ee);
463
+ if (T || se) {
464
+ var te = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
465
+ T && Le(I, te), se && ge(I, te);
466
466
  }
467
- return nt(t, P, ie, D, k, pe.current, I);
467
+ return nt(t, T, se, D, k, fe.current, I);
468
468
  }
469
469
  }
470
- var B = y.ReactCurrentOwner, M = y.ReactDebugCurrentFrame;
471
- function se(t) {
470
+ var M = y.ReactCurrentOwner, B = y.ReactDebugCurrentFrame;
471
+ function ae(t) {
472
472
  if (t) {
473
473
  var d = t._owner, g = _e(t.type, t._source, d ? d.type : null);
474
- M.setExtraStackFrame(g);
474
+ B.setExtraStackFrame(g);
475
475
  } else
476
- M.setExtraStackFrame(null);
476
+ B.setExtraStackFrame(null);
477
477
  }
478
- var ce;
479
- ce = !1;
480
- function ke(t) {
478
+ var ie;
479
+ ie = !1;
480
+ function we(t) {
481
481
  return typeof t == "object" && t !== null && t.$$typeof === n;
482
482
  }
483
483
  function Xe() {
484
484
  {
485
- if (B.current) {
486
- var t = E(B.current.type);
485
+ if (M.current) {
486
+ var t = j(M.current.type);
487
487
  if (t)
488
488
  return `
489
489
 
@@ -526,7 +526,7 @@ Check the top-level render call using <` + g + ">.");
526
526
  return;
527
527
  ut[g] = !0;
528
528
  var k = "";
529
- t && t._owner && t._owner !== B.current && (k = " It was passed a child from " + E(t._owner.type) + "."), se(t), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', g, k), se(null);
529
+ t && t._owner && t._owner !== M.current && (k = " It was passed a child from " + j(t._owner.type) + "."), ae(t), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', g, k), ae(null);
530
530
  }
531
531
  }
532
532
  function ft(t, d) {
@@ -536,19 +536,19 @@ Check the top-level render call using <` + g + ">.");
536
536
  if (Oe(t))
537
537
  for (var g = 0; g < t.length; g++) {
538
538
  var k = t[g];
539
- ke(k) && dt(k, d);
539
+ we(k) && dt(k, d);
540
540
  }
541
- else if (ke(t))
541
+ else if (we(t))
542
542
  t._store && (t._store.validated = !0);
543
543
  else if (t) {
544
544
  var D = C(t);
545
545
  if (typeof D == "function" && D !== t.entries)
546
- for (var W = D.call(t), I; !(I = W.next()).done; )
547
- ke(I.value) && dt(I.value, d);
546
+ for (var V = D.call(t), I; !(I = V.next()).done; )
547
+ we(I.value) && dt(I.value, d);
548
548
  }
549
549
  }
550
550
  }
551
- function Bt(t) {
551
+ function Mt(t) {
552
552
  {
553
553
  var d = t.type;
554
554
  if (d == null || typeof d == "string")
@@ -563,62 +563,62 @@ Check the top-level render call using <` + g + ">.");
563
563
  else
564
564
  return;
565
565
  if (g) {
566
- var k = E(d);
567
- we(g, t.props, "prop", k, t);
568
- } else if (d.PropTypes !== void 0 && !ce) {
569
- ce = !0;
570
- var D = E(d);
566
+ var k = j(d);
567
+ xe(g, t.props, "prop", k, t);
568
+ } else if (d.PropTypes !== void 0 && !ie) {
569
+ ie = !0;
570
+ var D = j(d);
571
571
  w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", D || "Unknown");
572
572
  }
573
573
  typeof d.getDefaultProps == "function" && !d.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
574
574
  }
575
575
  }
576
- function Mt(t) {
576
+ function Bt(t) {
577
577
  {
578
578
  for (var d = Object.keys(t.props), g = 0; g < d.length; g++) {
579
579
  var k = d[g];
580
580
  if (k !== "children" && k !== "key") {
581
- se(t), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", k), se(null);
581
+ ae(t), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", k), ae(null);
582
582
  break;
583
583
  }
584
584
  }
585
- t.ref !== null && (se(t), w("Invalid attribute `ref` supplied to `React.Fragment`."), se(null));
585
+ t.ref !== null && (ae(t), w("Invalid attribute `ref` supplied to `React.Fragment`."), ae(null));
586
586
  }
587
587
  }
588
588
  var ht = {};
589
- function mt(t, d, g, k, D, W) {
589
+ function mt(t, d, g, k, D, V) {
590
590
  {
591
- var I = K(t);
591
+ var I = H(t);
592
592
  if (!I) {
593
- var P = "";
594
- (t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (P += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
595
- var ie = Dt(D);
596
- ie ? P += ie : P += Xe();
597
- var q;
598
- t === null ? q = "null" : Oe(t) ? q = "array" : t !== void 0 && t.$$typeof === n ? (q = "<" + (E(t.type) || "Unknown") + " />", P = " Did you accidentally export a JSX literal instead of a component?") : q = typeof t, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", q, P);
593
+ var T = "";
594
+ (t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (T += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
595
+ var se = Dt(D);
596
+ se ? T += se : T += Xe();
597
+ var Z;
598
+ t === null ? Z = "null" : Oe(t) ? Z = "array" : t !== void 0 && t.$$typeof === n ? (Z = "<" + (j(t.type) || "Unknown") + " />", T = " Did you accidentally export a JSX literal instead of a component?") : Z = typeof t, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Z, T);
599
599
  }
600
- var ee = N(t, d, g, D, W);
601
- if (ee == null)
602
- return ee;
600
+ var te = N(t, d, g, D, V);
601
+ if (te == null)
602
+ return te;
603
603
  if (I) {
604
- var ge = d.children;
605
- if (ge !== void 0)
604
+ var he = d.children;
605
+ if (he !== void 0)
606
606
  if (k)
607
- if (Oe(ge)) {
608
- for (var Te = 0; Te < ge.length; Te++)
609
- ft(ge[Te], t);
610
- Object.freeze && Object.freeze(ge);
607
+ if (Oe(he)) {
608
+ for (var Te = 0; Te < he.length; Te++)
609
+ ft(he[Te], t);
610
+ Object.freeze && Object.freeze(he);
611
611
  } else
612
612
  w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
613
613
  else
614
- ft(ge, t);
614
+ ft(he, t);
615
615
  }
616
- if (me.call(d, "key")) {
617
- var je = E(t), ue = Object.keys(d).filter(function(Ut) {
616
+ if (de.call(d, "key")) {
617
+ var je = j(t), le = Object.keys(d).filter(function(Ut) {
618
618
  return Ut !== "key";
619
- }), rt = ue.length > 0 ? "{key: someKey, " + ue.join(": ..., ") + ": ...}" : "{key: someKey}";
619
+ }), rt = le.length > 0 ? "{key: someKey, " + le.join(": ..., ") + ": ...}" : "{key: someKey}";
620
620
  if (!ht[je + rt]) {
621
- var Ht = ue.length > 0 ? "{" + ue.join(": ..., ") + ": ...}" : "{}";
621
+ var Ht = le.length > 0 ? "{" + le.join(": ..., ") + ": ...}" : "{}";
622
622
  w(`A props object containing a "key" prop is being spread into JSX:
623
623
  let props = %s;
624
624
  <%s {...props} />
@@ -627,7 +627,7 @@ React keys must be passed directly to JSX without using spread:
627
627
  <%s key={someKey} {...props} />`, rt, je, Ht, je), ht[je + rt] = !0;
628
628
  }
629
629
  }
630
- return t === o ? Mt(ee) : Bt(ee), ee;
630
+ return t === o ? Bt(te) : Mt(te), te;
631
631
  }
632
632
  }
633
633
  function At(t, d, g) {
@@ -637,8 +637,8 @@ React keys must be passed directly to JSX without using spread:
637
637
  return mt(t, d, g, !1);
638
638
  }
639
639
  var Vt = Wt, Yt = At;
640
- Me.Fragment = o, Me.jsx = Vt, Me.jsxs = Yt;
641
- }()), Me;
640
+ Be.Fragment = o, Be.jsx = Vt, Be.jsxs = Yt;
641
+ }()), Be;
642
642
  }
643
643
  process.env.NODE_ENV === "production" ? st.exports = sn() : st.exports = on();
644
644
  var s = st.exports;
@@ -728,8 +728,8 @@ function hr(e) {
728
728
  className: m = "",
729
729
  children: h,
730
730
  ...b
731
- } = e, v = { xs: 12, sm: 16, md: 20, lg: 24 }[l], j = `arkyn_button loading_text_${!!i} ${o} ${r} ${l} loading_${n} ${m}`;
732
- return /* @__PURE__ */ s.jsxs("button", { className: j, disabled: u || n, ...b, children: [
731
+ } = e, v = { xs: 12, sm: 16, md: 20, lg: 24 }[l], _ = `arkyn_button loading_text_${!!i} ${o} ${r} ${l} loading_${n} ${m}`;
732
+ return /* @__PURE__ */ s.jsxs("button", { className: _, disabled: u || n, ...b, children: [
733
733
  /* @__PURE__ */ s.jsxs("div", { className: "arkyn_button-spinner", children: [
734
734
  /* @__PURE__ */ s.jsx(Se, { size: v, strokeWidth: 2.5 }),
735
735
  i && i
@@ -744,10 +744,10 @@ function hr(e) {
744
744
  const Rt = Ie({});
745
745
  function mr(e) {
746
746
  var h, b;
747
- const n = _t(), { children: r, className: o, ...i } = e, l = Ne(null), f = ((h = l.current) == null ? void 0 : h.name) || "", c = ((b = n == null ? void 0 : n.fieldErrors) == null ? void 0 : b[f]) || null, u = Kt(), m = `arkyn_form_controller ${o}`;
747
+ const n = _t(), { children: r, className: o, ...i } = e, l = Ce(null), f = ((h = l.current) == null ? void 0 : h.name) || "", c = ((b = n == null ? void 0 : n.fieldErrors) == null ? void 0 : b[f]) || null, u = Kt(), m = `arkyn_form_controller ${o}`;
748
748
  return /* @__PURE__ */ s.jsx(Rt.Provider, { value: { error: c, id: u, inputRef: l }, children: /* @__PURE__ */ s.jsx("section", { className: m.trim(), ...i, children: r }) });
749
749
  }
750
- function xe() {
750
+ function ye() {
751
751
  return Ee(Rt);
752
752
  }
753
753
  function pr(e) {
@@ -761,10 +761,10 @@ function pr(e) {
761
761
  onCheck: c,
762
762
  value: u,
763
763
  ...m
764
- } = e, { id: h, inputRef: b, error: a } = xe(), v = i || !!a, [j, x] = le(l || !1), C = typeof f == "boolean" ? f : j, y = `arkyn_checkbox ${o} ${v ? "error" : ""} ${C ? "checked" : ""} ${r}`;
764
+ } = e, { id: h, inputRef: b, error: a } = ye(), v = i || !!a, [_, x] = ce(l || !1), C = typeof f == "boolean" ? f : _, y = `arkyn_checkbox ${o} ${v ? "error" : ""} ${C ? "checked" : ""} ${r}`;
765
765
  function w() {
766
- const V = j;
767
- x(!V), c && c(V ? "" : u || "checked");
766
+ const Y = _;
767
+ x(!Y), c && c(Y ? "" : u || "checked");
768
768
  }
769
769
  return /* @__PURE__ */ s.jsxs(
770
770
  "button",
@@ -790,7 +790,7 @@ function pr(e) {
790
790
  );
791
791
  }
792
792
  function gr(e) {
793
- const { children: n, className: r, ...o } = e, i = `arkyn_form_error ${r}`, { error: l } = xe();
793
+ const { children: n, className: r, ...o } = e, i = `arkyn_form_error ${r}`, { error: l } = ye();
794
794
  return n ? /* @__PURE__ */ s.jsx("strong", { className: i.trim(), ...o, children: n }) : l ? /* @__PURE__ */ s.jsx("strong", { className: i.trim(), ...o, children: l }) : /* @__PURE__ */ s.jsx(s.Fragment, {});
795
795
  }
796
796
  function vr(e) {
@@ -798,7 +798,7 @@ function vr(e) {
798
798
  showAsterisk: n = !1,
799
799
  className: r = "",
800
800
  ...o
801
- } = e, { id: i } = xe(), f = `arkyn_form_label ${n ? "show-asterisk" : ""} ${r}`;
801
+ } = e, { id: i } = ye(), f = `arkyn_form_label ${n ? "show-asterisk" : ""} ${r}`;
802
802
  return /* @__PURE__ */ s.jsx("label", { ...o, className: f.trim(), htmlFor: i });
803
803
  }
804
804
  function br(e) {
@@ -825,7 +825,7 @@ function br(e) {
825
825
  }
826
826
  );
827
827
  }
828
- function Ce(e, n, r) {
828
+ function ke(e, n, r) {
829
829
  if (!e) return /* @__PURE__ */ s.jsx(s.Fragment, {});
830
830
  if (typeof e == "string") return /* @__PURE__ */ s.jsx("p", { className: r, children: e });
831
831
  const o = e;
@@ -861,76 +861,76 @@ function dn(e, n) {
861
861
  disabled: b,
862
862
  defaultValue: a,
863
863
  readOnly: v,
864
- onFocus: j,
864
+ onFocus: _,
865
865
  onBlur: x,
866
866
  title: C,
867
867
  style: y,
868
868
  onChange: w,
869
- ...V
869
+ ...Y
870
870
  } = e;
871
- function z(J) {
872
- let F = it(J);
873
- const Y = Pt(F);
871
+ function z(q) {
872
+ let F = it(q);
873
+ const U = Pt(F);
874
874
  if (!(F.length > Tt))
875
- return F = $t(F, lt[Y]), F;
875
+ return F = $t(F, lt[U]), F;
876
876
  }
877
- const R = h ? "right" : "left", O = `arkyn_input ${c ? "hasPrefix" : ""} ${u ? "hasSufix" : ""} ${f} ${i} ${b || v || r ? "opacity" : ""} ${o ? "errored" : ""} ${n ? "focused" : ""} ${l}`, E = { md: 20, lg: 20 }[i];
877
+ const R = h ? "right" : "left", O = `arkyn_input ${c ? "hasPrefix" : ""} ${u ? "hasSufix" : ""} ${f} ${i} ${b || v || r ? "opacity" : ""} ${o ? "errored" : ""} ${n ? "focused" : ""} ${l}`, j = { md: 20, lg: 20 }[i];
878
878
  return {
879
879
  isLoading: r,
880
880
  className: O,
881
- prefix: Ce(c, E, "prefix"),
882
- sufix: Ce(u, E, "sufix"),
881
+ prefix: ke(c, j, "prefix"),
882
+ sufix: ke(u, j, "sufix"),
883
883
  LeftIcon: m,
884
884
  RightIcon: h,
885
885
  defaultValue: z(a || ""),
886
886
  disabled: b,
887
887
  readOnly: v,
888
- onFocus: j,
888
+ onFocus: _,
889
889
  onBlur: x,
890
890
  title: C,
891
891
  style: y,
892
892
  onChange: w,
893
893
  loadingPosition: R,
894
- iconSize: E,
895
- Spinner: /* @__PURE__ */ s.jsx(Se, { className: "spinner", size: E, strokeWidth: 2.5 }),
896
- ...V
894
+ iconSize: j,
895
+ Spinner: /* @__PURE__ */ s.jsx(Se, { className: "spinner", size: j, strokeWidth: 2.5 }),
896
+ ...Y
897
897
  };
898
898
  }
899
899
  function fn(e) {
900
- const [n, r] = le(!1), o = Ne(null), { inputRef: i, id: l, error: f } = xe(), c = i || o, u = e.isError || !!f, {
900
+ const [n, r] = ce(!1), o = Ce(null), { inputRef: i, id: l, error: f } = ye(), c = i || o, u = e.isError || !!f, {
901
901
  disabled: m,
902
902
  title: h,
903
903
  style: b,
904
904
  className: a,
905
905
  prefix: v,
906
- sufix: j,
906
+ sufix: _,
907
907
  iconSize: x,
908
908
  loadingPosition: C,
909
909
  isLoading: y,
910
910
  LeftIcon: w,
911
- readOnly: V,
911
+ readOnly: Y,
912
912
  onFocus: z,
913
913
  onBlur: R,
914
914
  RightIcon: A,
915
915
  Spinner: L,
916
- onChange: X,
917
- value: U,
918
- defaultValue: K,
916
+ onChange: J,
917
+ value: K,
918
+ defaultValue: H,
919
919
  ...O
920
- } = dn({ ...e, id: l, isError: u }, n), [G, E] = le(K), J = w && !y, F = A && !y, Y = C === "left" && y, te = C === "right" && y;
920
+ } = dn({ ...e, id: l, isError: u }, n), [Q, j] = ce(H), q = w && !y, F = A && !y, U = C === "left" && y, ne = C === "right" && y;
921
921
  function $() {
922
922
  m || !(c != null && c.current) || (r(!0), c.current.focus());
923
923
  }
924
- function Z(_) {
925
- let S = it(_.target.value);
926
- const ne = Pt(S);
927
- S.length > Tt || (S = $t(S, lt[ne]), _.target.value = S, E(S), X && X(_));
924
+ function ee(E) {
925
+ let P = it(E.target.value);
926
+ const X = Pt(P);
927
+ P.length > Tt || (P = $t(P, lt[X]), E.target.value = P, j(P), J && J(E));
928
928
  }
929
- function he(_) {
930
- r(!0), z && z(_);
929
+ function oe(E) {
930
+ r(!0), z && z(E);
931
931
  }
932
- function T(_) {
933
- r(!1), R && R(_);
932
+ function S(E) {
933
+ r(!1), R && R(E);
934
934
  }
935
935
  return /* @__PURE__ */ s.jsxs(
936
936
  "section",
@@ -941,24 +941,24 @@ function fn(e) {
941
941
  className: a,
942
942
  children: [
943
943
  v,
944
- Y && L,
945
- J && /* @__PURE__ */ s.jsx(w, { size: x, strokeWidth: 2.5 }),
944
+ U && L,
945
+ q && /* @__PURE__ */ s.jsx(w, { size: x, strokeWidth: 2.5 }),
946
946
  /* @__PURE__ */ s.jsx(
947
947
  "input",
948
948
  {
949
949
  disabled: m || y,
950
- readOnly: V,
950
+ readOnly: Y,
951
951
  ref: c,
952
- value: U || G,
953
- onFocus: he,
954
- onChange: Z,
955
- onBlur: T,
952
+ value: K || Q,
953
+ onFocus: oe,
954
+ onChange: ee,
955
+ onBlur: S,
956
956
  ...O
957
957
  }
958
958
  ),
959
959
  F && /* @__PURE__ */ s.jsx(A, { size: x, strokeWidth: 2.5 }),
960
- te && L,
961
- j
960
+ ne && L,
961
+ _
962
962
  ]
963
963
  }
964
964
  );
@@ -977,33 +977,33 @@ function hn(e, n) {
977
977
  disabled: b,
978
978
  readOnly: a,
979
979
  onFocus: v,
980
- onBlur: j,
980
+ onBlur: _,
981
981
  title: x,
982
982
  style: C,
983
983
  showCents: y = !1,
984
984
  max: w = 1e9,
985
- onChange: V,
985
+ onChange: Y,
986
986
  ...z
987
- } = e, R = h ? "right" : "left", O = `arkyn_input ${c ? "hasPrefix" : ""} ${u ? "hasSufix" : ""} ${f} ${i} ${b || a || r ? "opacity" : ""} ${o ? "errored" : ""} ${n ? "focused" : ""} ${l}`, E = { md: 20, lg: 20 }[i];
987
+ } = e, R = h ? "right" : "left", O = `arkyn_input ${c ? "hasPrefix" : ""} ${u ? "hasSufix" : ""} ${f} ${i} ${b || a || r ? "opacity" : ""} ${o ? "errored" : ""} ${n ? "focused" : ""} ${l}`, j = { md: 20, lg: 20 }[i];
988
988
  return {
989
989
  isLoading: r,
990
990
  className: O,
991
- prefix: Ce(c, E, "prefix"),
992
- sufix: Ce(u, E, "sufix"),
991
+ prefix: ke(c, j, "prefix"),
992
+ sufix: ke(u, j, "sufix"),
993
993
  LeftIcon: m,
994
994
  RightIcon: h,
995
995
  disabled: b,
996
996
  readOnly: a,
997
997
  onFocus: v,
998
- onBlur: j,
998
+ onBlur: _,
999
999
  title: x,
1000
1000
  style: C,
1001
1001
  max: w,
1002
- onChange: V,
1002
+ onChange: Y,
1003
1003
  showCents: y,
1004
1004
  loadingPosition: R,
1005
- iconSize: E,
1006
- Spinner: /* @__PURE__ */ s.jsx(Se, { className: "spinner", size: E, strokeWidth: 2.5 }),
1005
+ iconSize: j,
1006
+ Spinner: /* @__PURE__ */ s.jsx(Se, { className: "spinner", size: j, strokeWidth: 2.5 }),
1007
1007
  ...z
1008
1008
  };
1009
1009
  }
@@ -1032,71 +1032,71 @@ function vn(e) {
1032
1032
  u > Number(o) || i(u);
1033
1033
  }
1034
1034
  function bn(e) {
1035
- const [n, r] = le(!1), o = Ne(null), { inputRef: i, id: l, error: f } = xe(), c = i || o, u = e.isError || !!f, {
1035
+ const [n, r] = ce(!1), o = Ce(null), { inputRef: i, id: l, error: f } = ye(), c = i || o, u = e.isError || !!f, {
1036
1036
  disabled: m,
1037
1037
  title: h,
1038
1038
  style: b,
1039
1039
  className: a,
1040
1040
  prefix: v,
1041
- sufix: j,
1041
+ sufix: _,
1042
1042
  iconSize: x,
1043
1043
  loadingPosition: C,
1044
1044
  isLoading: y,
1045
1045
  LeftIcon: w,
1046
- readOnly: V,
1046
+ readOnly: Y,
1047
1047
  onFocus: z,
1048
1048
  onBlur: R,
1049
1049
  RightIcon: A,
1050
1050
  Spinner: L,
1051
- value: X,
1052
- max: U,
1053
- onKeyDown: K,
1051
+ value: J,
1052
+ max: K,
1053
+ onKeyDown: H,
1054
1054
  onChange: O,
1055
- showCents: G,
1056
- defaultValue: E,
1057
- ...J
1058
- } = hn({ ...e, id: l, isError: u }, n), [F, Y] = le(E * 100 || 0), te = w && !y, $ = A && !y, Z = C === "left" && y, he = C === "right" && y;
1059
- function T() {
1055
+ showCents: Q,
1056
+ defaultValue: j,
1057
+ ...q
1058
+ } = hn({ ...e, id: l, isError: u }, n), [F, U] = ce(j * 100 || 0), ne = w && !y, $ = A && !y, ee = C === "left" && y, oe = C === "right" && y;
1059
+ function S() {
1060
1060
  m || !(c != null && c.current) || (r(!0), c.current.focus());
1061
1061
  }
1062
- function _(Q) {
1063
- vn({ currencyValue: F, event: Q, max: U, setCurrencyValue: Y }), O && O(F / 100), K && K(Q);
1062
+ function E(G) {
1063
+ vn({ currencyValue: F, event: G, max: K, setCurrencyValue: U }), O && O(F / 100), H && H(G);
1064
1064
  }
1065
- function S(Q) {
1066
- r(!0), z && z(Q);
1065
+ function P(G) {
1066
+ r(!0), z && z(G);
1067
1067
  }
1068
- function ne(Q) {
1069
- r(!1), R && R(Q);
1068
+ function X(G) {
1069
+ r(!1), R && R(G);
1070
1070
  }
1071
1071
  return /* @__PURE__ */ s.jsxs(
1072
1072
  "section",
1073
1073
  {
1074
1074
  title: h,
1075
1075
  style: b,
1076
- onClick: T,
1076
+ onClick: S,
1077
1077
  className: a,
1078
1078
  children: [
1079
1079
  v,
1080
- Z && L,
1081
- te && /* @__PURE__ */ s.jsx(w, { size: x, strokeWidth: 2.5 }),
1080
+ ee && L,
1081
+ ne && /* @__PURE__ */ s.jsx(w, { size: x, strokeWidth: 2.5 }),
1082
1082
  /* @__PURE__ */ s.jsx(
1083
1083
  "input",
1084
1084
  {
1085
- value: gn(X || F, G),
1086
- onKeyDown: _,
1085
+ value: gn(J || F, Q),
1086
+ onKeyDown: E,
1087
1087
  disabled: m || y,
1088
- readOnly: V,
1088
+ readOnly: Y,
1089
1089
  ref: c,
1090
- onFocus: S,
1091
- onBlur: ne,
1090
+ onFocus: P,
1091
+ onBlur: X,
1092
1092
  onChange: () => {
1093
1093
  },
1094
- ...J
1094
+ ...q
1095
1095
  }
1096
1096
  ),
1097
- he && L,
1097
+ oe && L,
1098
1098
  $ && /* @__PURE__ */ s.jsx(A, { size: x, strokeWidth: 2.5 }),
1099
- j
1099
+ _
1100
1100
  ]
1101
1101
  }
1102
1102
  );
@@ -1115,88 +1115,88 @@ function yn(e, n) {
1115
1115
  disabled: b,
1116
1116
  readOnly: a,
1117
1117
  onFocus: v,
1118
- onBlur: j,
1118
+ onBlur: _,
1119
1119
  title: x,
1120
1120
  style: C,
1121
1121
  onChange: y,
1122
1122
  showMask: w = !1,
1123
- type: V,
1123
+ type: Y,
1124
1124
  ...z
1125
- } = e, R = h ? "right" : "left", O = `arkyn_input ${c ? "hasPrefix" : ""} ${u ? "hasSufix" : ""} ${f} ${i} ${b || a || r ? "opacity" : ""} ${o ? "errored" : ""} ${n ? "focused" : ""} ${l}`, E = { md: 20, lg: 20 }[i];
1125
+ } = e, R = h ? "right" : "left", O = `arkyn_input ${c ? "hasPrefix" : ""} ${u ? "hasSufix" : ""} ${f} ${i} ${b || a || r ? "opacity" : ""} ${o ? "errored" : ""} ${n ? "focused" : ""} ${l}`, j = { md: 20, lg: 20 }[i];
1126
1126
  return {
1127
1127
  isLoading: r,
1128
1128
  className: O,
1129
- prefix: Ce(c, E, "prefix"),
1130
- sufix: Ce(u, E, "sufix"),
1129
+ prefix: ke(c, j, "prefix"),
1130
+ sufix: ke(u, j, "sufix"),
1131
1131
  LeftIcon: m,
1132
1132
  RightIcon: h,
1133
1133
  disabled: b,
1134
1134
  readOnly: a,
1135
1135
  onFocus: v,
1136
- onBlur: j,
1136
+ onBlur: _,
1137
1137
  title: x,
1138
1138
  style: C,
1139
1139
  onChange: y,
1140
1140
  loadingPosition: R,
1141
- iconSize: E,
1141
+ iconSize: j,
1142
1142
  showMask: w,
1143
- Spinner: /* @__PURE__ */ s.jsx(Se, { className: "spinner", size: E, strokeWidth: 2.5 }),
1143
+ Spinner: /* @__PURE__ */ s.jsx(Se, { className: "spinner", size: j, strokeWidth: 2.5 }),
1144
1144
  ...z
1145
1145
  };
1146
1146
  }
1147
1147
  const xn = Xt((e, n) => /* @__PURE__ */ s.jsx("input", { ref: n, ...e }));
1148
1148
  function wn(e) {
1149
- const [n, r] = le(!1), o = Ne(null), { inputRef: i, id: l, error: f } = xe(), c = i || o, u = e.isError || !!f, {
1149
+ const [n, r] = ce(!1), o = Ce(null), { inputRef: i, id: l, error: f } = ye(), c = i || o, u = e.isError || !!f, {
1150
1150
  disabled: m,
1151
1151
  title: h,
1152
1152
  style: b,
1153
1153
  className: a,
1154
1154
  prefix: v,
1155
- sufix: j,
1155
+ sufix: _,
1156
1156
  iconSize: x,
1157
1157
  loadingPosition: C,
1158
1158
  isLoading: y,
1159
1159
  LeftIcon: w,
1160
- readOnly: V,
1160
+ readOnly: Y,
1161
1161
  onFocus: z,
1162
1162
  onBlur: R,
1163
1163
  RightIcon: A,
1164
1164
  Spinner: L,
1165
- ...X
1166
- } = yn({ ...e, id: l, isError: u }, n), U = w && !y, K = A && !y, O = C === "left" && y, G = C === "right" && y;
1167
- function E() {
1165
+ ...J
1166
+ } = yn({ ...e, id: l, isError: u }, n), K = w && !y, H = A && !y, O = C === "left" && y, Q = C === "right" && y;
1167
+ function j() {
1168
1168
  m || !(c != null && c.current) || (r(!0), c.current.focus());
1169
1169
  }
1170
- function J(Y) {
1171
- r(!0), z && z(Y);
1170
+ function q(U) {
1171
+ r(!0), z && z(U);
1172
1172
  }
1173
- function F(Y) {
1174
- r(!1), R && R(Y);
1173
+ function F(U) {
1174
+ r(!1), R && R(U);
1175
1175
  }
1176
1176
  return /* @__PURE__ */ s.jsxs(
1177
1177
  "section",
1178
1178
  {
1179
1179
  title: h,
1180
1180
  style: b,
1181
- onClick: E,
1181
+ onClick: j,
1182
1182
  className: a,
1183
1183
  children: [
1184
1184
  v,
1185
1185
  O && L,
1186
- U && /* @__PURE__ */ s.jsx(w, { size: x, strokeWidth: 2.5 }),
1186
+ K && /* @__PURE__ */ s.jsx(w, { size: x, strokeWidth: 2.5 }),
1187
1187
  /* @__PURE__ */ s.jsx(
1188
1188
  rn,
1189
1189
  {
1190
1190
  component: xn,
1191
1191
  ref: c,
1192
- onFocus: J,
1192
+ onFocus: q,
1193
1193
  onBlur: F,
1194
- ...X
1194
+ ...J
1195
1195
  }
1196
1196
  ),
1197
- K && /* @__PURE__ */ s.jsx(A, { size: x, strokeWidth: 2.5 }),
1198
- G && L,
1199
- j
1197
+ H && /* @__PURE__ */ s.jsx(A, { size: x, strokeWidth: 2.5 }),
1198
+ Q && L,
1199
+ _
1200
1200
  ]
1201
1201
  }
1202
1202
  );
@@ -1215,87 +1215,96 @@ function kn(e, n) {
1215
1215
  disabled: b,
1216
1216
  readOnly: a,
1217
1217
  onFocus: v,
1218
- onBlur: j,
1218
+ onBlur: _,
1219
1219
  title: x,
1220
1220
  style: C,
1221
1221
  onChange: y,
1222
1222
  ...w
1223
- } = e, V = h ? "right" : "left", U = `arkyn_input ${c ? "hasPrefix" : ""} ${u ? "hasSufix" : ""} ${f} ${i} ${b || a || r ? "opacity" : ""} ${o ? "errored" : ""} ${n ? "focused" : ""} ${l}`, O = { md: 20, lg: 20 }[i];
1223
+ } = e, Y = h ? "right" : "left", K = `arkyn_input ${c ? "hasPrefix" : ""} ${u ? "hasSufix" : ""} ${f} ${i} ${b || a || r ? "opacity" : ""} ${o ? "errored" : ""} ${n ? "focused" : ""} ${l}`, O = { md: 20, lg: 20 }[i];
1224
1224
  return {
1225
1225
  isLoading: r,
1226
- className: U,
1227
- prefix: Ce(c, O, "prefix"),
1228
- sufix: Ce(u, O, "sufix"),
1226
+ className: K,
1227
+ prefix: ke(c, O, "prefix"),
1228
+ sufix: ke(u, O, "sufix"),
1229
1229
  LeftIcon: m,
1230
1230
  RightIcon: h,
1231
1231
  disabled: b,
1232
1232
  readOnly: a,
1233
1233
  onFocus: v,
1234
- onBlur: j,
1234
+ onBlur: _,
1235
1235
  title: x,
1236
1236
  style: C,
1237
1237
  onChange: y,
1238
- loadingPosition: V,
1238
+ loadingPosition: Y,
1239
1239
  iconSize: O,
1240
1240
  Spinner: /* @__PURE__ */ s.jsx(Se, { className: "spinner", size: O, strokeWidth: 2.5 }),
1241
1241
  ...w
1242
1242
  };
1243
1243
  }
1244
1244
  function Cn(e) {
1245
- const [n, r] = le(!1), o = Ne(null), { inputRef: i, id: l, error: f } = xe(), c = i || o, u = e.isError || !!f, {
1245
+ const [n, r] = ce(!1), o = Ce(null), { inputRef: i, id: l, error: f } = ye(), c = i || o, u = e.isError || !!f, {
1246
1246
  disabled: m,
1247
1247
  title: h,
1248
1248
  style: b,
1249
1249
  className: a,
1250
1250
  prefix: v,
1251
- sufix: j,
1251
+ sufix: _,
1252
1252
  iconSize: x,
1253
1253
  loadingPosition: C,
1254
1254
  isLoading: y,
1255
1255
  LeftIcon: w,
1256
- readOnly: V,
1256
+ readOnly: Y,
1257
1257
  onFocus: z,
1258
1258
  onBlur: R,
1259
1259
  RightIcon: A,
1260
1260
  type: L,
1261
- Spinner: X,
1262
- ...U
1263
- } = kn({ ...e, id: l, isError: u }, n), K = w && !y, O = A && !y, G = C === "left" && y, E = C === "right" && y;
1264
- function J() {
1261
+ Spinner: J,
1262
+ ...K
1263
+ } = kn({ ...e, id: l, isError: u }, n), H = w && !y, O = A && !y, Q = C === "left" && y, j = C === "right" && y;
1264
+ function q() {
1265
1265
  m || !(c != null && c.current) || (r(!0), c.current.focus());
1266
1266
  }
1267
- function F(te) {
1268
- r(!0), z && z(te);
1267
+ function F(ne) {
1268
+ r(!0), z && z(ne);
1269
1269
  }
1270
- function Y(te) {
1271
- r(!1), R && R(te);
1270
+ function U(ne) {
1271
+ r(!1), R && R(ne);
1272
1272
  }
1273
- return L === "hidden" ? /* @__PURE__ */ s.jsx("input", { type: "hidden", ref: c, ...U }) : /* @__PURE__ */ s.jsxs(
1273
+ return L === "hidden" ? /* @__PURE__ */ s.jsx(
1274
+ "input",
1275
+ {
1276
+ style: { display: "none" },
1277
+ readOnly: !0,
1278
+ type: "text",
1279
+ ref: c,
1280
+ ...K
1281
+ }
1282
+ ) : /* @__PURE__ */ s.jsxs(
1274
1283
  "section",
1275
1284
  {
1276
1285
  title: h,
1277
1286
  style: b,
1278
- onClick: J,
1287
+ onClick: q,
1279
1288
  className: a,
1280
1289
  children: [
1281
1290
  v,
1282
- G && X,
1283
- K && /* @__PURE__ */ s.jsx(w, { size: x, strokeWidth: 2.5 }),
1291
+ Q && J,
1292
+ H && /* @__PURE__ */ s.jsx(w, { size: x, strokeWidth: 2.5 }),
1284
1293
  /* @__PURE__ */ s.jsx(
1285
1294
  "input",
1286
1295
  {
1287
1296
  disabled: m || y,
1288
- readOnly: V,
1297
+ readOnly: Y,
1289
1298
  ref: c,
1290
1299
  onFocus: F,
1291
- onBlur: Y,
1300
+ onBlur: U,
1292
1301
  type: L,
1293
- ...U
1302
+ ...K
1294
1303
  }
1295
1304
  ),
1296
1305
  O && /* @__PURE__ */ s.jsx(A, { size: x, strokeWidth: 2.5 }),
1297
- E && X,
1298
- j
1306
+ j && J,
1307
+ _
1299
1308
  ]
1300
1309
  }
1301
1310
  );
@@ -1317,8 +1326,7 @@ function Nn(e, n) {
1317
1326
  onFocus: b,
1318
1327
  onBlur: a,
1319
1328
  title: v,
1320
- style: j,
1321
- // isSearchable = false,
1329
+ style: _,
1322
1330
  closeOnSelect: x = !0,
1323
1331
  ...C
1324
1332
  } = e, R = `arkyn_select ${c ? "hasPrefix" : ""} ${f} ${i} ${m || h || r ? "opacity" : ""} ${o ? "errored" : ""} ${n ? "focused" : ""} ${l}`, L = { md: 20, lg: 20 }[i];
@@ -1333,79 +1341,75 @@ function Nn(e, n) {
1333
1341
  onBlur: a,
1334
1342
  title: v,
1335
1343
  closeOnSelect: x,
1336
- style: j,
1337
- // isSearchable,
1344
+ style: _,
1338
1345
  iconSize: L,
1339
1346
  Spinner: /* @__PURE__ */ s.jsx(Se, { className: "spinner", size: L, strokeWidth: 2.5 }),
1340
1347
  ...C
1341
1348
  };
1342
1349
  }
1343
1350
  function xr(e) {
1344
- var H;
1345
- const [n, r] = le(!1), { inputRef: o, id: i, error: l } = xe(), f = Ne(null), c = o || f, u = e.isError || !!l, {
1351
+ var P;
1352
+ const [n, r] = ce(!1), { inputRef: o, id: i, error: l } = ye(), f = Ce(null), c = o || f, u = e.isError || !!l, {
1346
1353
  disabled: m,
1347
1354
  title: h,
1348
1355
  style: b,
1349
1356
  className: a,
1350
1357
  prefix: v,
1351
- iconSize: j,
1358
+ iconSize: _,
1352
1359
  isLoading: x,
1353
1360
  LeftIcon: C,
1354
1361
  value: y = null,
1355
1362
  defaultValue: w = "",
1356
- readOnly: V,
1363
+ readOnly: Y,
1357
1364
  onFocus: z,
1358
1365
  onBlur: R,
1359
1366
  Spinner: A,
1360
1367
  name: L,
1361
- // isSearchable,
1362
- placeholder: X,
1363
- onSelect: U,
1364
- options: K,
1368
+ placeholder: J,
1369
+ onSelect: K,
1370
+ options: H,
1365
1371
  optionMaxHeight: O,
1366
- closeOnSelect: G,
1367
- ...E
1368
- } = Nn({ ...e, id: i, isError: u }, n), [J, F] = le(w), [Y, te] = le("");
1369
- function $() {
1372
+ closeOnSelect: Q,
1373
+ ...j
1374
+ } = Nn({ ...e, id: i, isError: u }, n), [q, F] = ce(w);
1375
+ function U() {
1370
1376
  m || !(c != null && c.current) || (r(!0), c.current.focus());
1371
1377
  }
1372
- function Z(re) {
1373
- r(!0), z && z(re);
1378
+ function ne(X) {
1379
+ n || (r(!0), z && z(X));
1374
1380
  }
1375
- function he() {
1381
+ function $() {
1376
1382
  r(!1), R && c.current && c.current.blur();
1377
1383
  }
1378
- function T(re) {
1379
- const { label: oe, value: de } = re;
1380
- F(J !== de ? de : ""), U && U({ label: oe, value: de }), G && (c.current.blur(), r(!1), console.log("fecha"));
1384
+ function ee(X) {
1385
+ const { label: G, value: W } = X;
1386
+ F(q !== W ? W : ""), K && K({ label: G, value: W }), Q && $();
1381
1387
  }
1382
- const _ = typeof y == "string" ? y : J, S = ((H = K.find((re) => re.value === _)) == null ? void 0 : H.label) || "", ne = () => {
1388
+ const oe = typeof y == "string" ? y : q, S = ((P = H.find((X) => X.value === oe)) == null ? void 0 : P.label) || "", E = () => {
1383
1389
  if (!n && S) return !0;
1384
1390
  if (!n && !S) return !1;
1385
1391
  if (n && S) return !0;
1386
1392
  if (n && !S) return !1;
1387
- }, Q = K.filter((re) => !0);
1393
+ };
1388
1394
  return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
1389
1395
  /* @__PURE__ */ s.jsxs(
1390
1396
  "section",
1391
1397
  {
1392
1398
  title: h,
1393
1399
  style: b,
1394
- onClick: $,
1395
- className: `${a} placeholder_dark_${ne()}`,
1400
+ onClick: U,
1401
+ className: `${a} placeholder_dark_${E()}`,
1396
1402
  children: [
1397
1403
  v,
1398
- C && /* @__PURE__ */ s.jsx(C, { size: j, strokeWidth: 2.5 }),
1404
+ C && /* @__PURE__ */ s.jsx(C, { size: _, strokeWidth: 2.5 }),
1399
1405
  /* @__PURE__ */ s.jsx(
1400
1406
  "input",
1401
1407
  {
1402
1408
  disabled: m || x,
1403
1409
  readOnly: !0,
1404
- value: Y || "",
1405
- placeholder: S || X,
1406
- onFocus: Z,
1407
- onBlur: () => te(""),
1408
- ...E
1410
+ placeholder: S || J,
1411
+ onFocus: ne,
1412
+ ...j
1409
1413
  }
1410
1414
  ),
1411
1415
  /* @__PURE__ */ s.jsx(
@@ -1414,7 +1418,7 @@ function xr(e) {
1414
1418
  type: "hidden",
1415
1419
  ref: c,
1416
1420
  name: L,
1417
- value: _ || "",
1421
+ value: oe || "",
1418
1422
  readOnly: !0
1419
1423
  }
1420
1424
  ),
@@ -1424,20 +1428,20 @@ function xr(e) {
1424
1428
  className: "arkyn_select_content",
1425
1429
  style: { overflow: "auto", maxHeight: O },
1426
1430
  children: [
1427
- Q.map(({ label: re, value: oe }) => /* @__PURE__ */ s.jsxs(
1431
+ H.map(({ label: X, value: G }) => /* @__PURE__ */ s.jsxs(
1428
1432
  "div",
1429
1433
  {
1430
- onClick: () => T({ label: re, value: oe }),
1431
- className: _ === oe ? "arkyn_select_option active" : "arkyn_select_option",
1434
+ onClick: () => ee({ label: X, value: G }),
1435
+ className: oe === G ? "arkyn_select_option active" : "arkyn_select_option",
1432
1436
  children: [
1433
- re,
1437
+ X,
1434
1438
  " ",
1435
1439
  /* @__PURE__ */ s.jsx(Ct, {})
1436
1440
  ]
1437
1441
  },
1438
- oe
1442
+ G
1439
1443
  )),
1440
- Q.length <= 0 && /* @__PURE__ */ s.jsx("p", { children: "Sem opções disponíveis" })
1444
+ H.length <= 0 && /* @__PURE__ */ s.jsx("p", { children: "Sem opções disponíveis" })
1441
1445
  ]
1442
1446
  }
1443
1447
  ),
@@ -1445,7 +1449,7 @@ function xr(e) {
1445
1449
  qt,
1446
1450
  {
1447
1451
  className: "arkyn_select_arrow",
1448
- size: j,
1452
+ size: _,
1449
1453
  strokeWidth: 2.5
1450
1454
  }
1451
1455
  ),
@@ -1453,7 +1457,7 @@ function xr(e) {
1453
1457
  ]
1454
1458
  }
1455
1459
  ),
1456
- n && /* @__PURE__ */ s.jsx("aside", { className: "arkyn_select_overlay", onClick: he })
1460
+ n && /* @__PURE__ */ s.jsx("aside", { className: "arkyn_select_overlay", onClick: $ })
1457
1461
  ] });
1458
1462
  }
1459
1463
  function wr(e) {
@@ -1468,15 +1472,15 @@ function wr(e) {
1468
1472
  title: u,
1469
1473
  style: m,
1470
1474
  ...h
1471
- } = e, [b, a] = le(!1), { inputRef: v, id: j, error: x } = xe(), C = Ne(null), y = v || C, V = e.isError || !!x ? "errored" : "", A = `arkyn_textarea ${n} ${r} ${i || l ? "opacity" : ""} ${V} ${b ? "focused" : ""} ${o}`;
1475
+ } = e, [b, a] = ce(!1), { inputRef: v, id: _, error: x } = ye(), C = Ce(null), y = v || C, Y = e.isError || !!x ? "errored" : "", A = `arkyn_textarea ${n} ${r} ${i || l ? "opacity" : ""} ${Y} ${b ? "focused" : ""} ${o}`;
1472
1476
  function L() {
1473
1477
  i || !(y != null && y.current) || (a(!0), y.current.focus());
1474
1478
  }
1475
- function X(K) {
1476
- a(!0), f && f(K);
1479
+ function J(H) {
1480
+ a(!0), f && f(H);
1477
1481
  }
1478
- function U(K) {
1479
- a(!1), c && c(K);
1482
+ function K(H) {
1483
+ a(!1), c && c(H);
1480
1484
  }
1481
1485
  return /* @__PURE__ */ s.jsx(
1482
1486
  "section",
@@ -1488,12 +1492,12 @@ function wr(e) {
1488
1492
  children: /* @__PURE__ */ s.jsx(
1489
1493
  "textarea",
1490
1494
  {
1491
- id: j,
1495
+ id: _,
1492
1496
  disabled: i,
1493
1497
  readOnly: l,
1494
1498
  ref: y,
1495
- onFocus: X,
1496
- onBlur: U,
1499
+ onFocus: J,
1500
+ onBlur: K,
1497
1501
  ...h
1498
1502
  }
1499
1503
  )
@@ -1543,7 +1547,7 @@ function Nr(e) {
1543
1547
  pageKey: i = "page",
1544
1548
  siblingsCount: l = 2,
1545
1549
  ...f
1546
- } = e, c = nn(), { getParam: u, getScopedSearch: m } = _n(n), h = Number(u(i)) || 1, b = Number(u(o)) || 20, a = Math.ceil(r / b), v = cn(h, l), j = ln(h, l, a);
1550
+ } = e, c = nn(), { getParam: u, getScopedSearch: m } = _n(n), h = Number(u(i)) || 1, b = Number(u(o)) || 20, a = Math.ceil(r / b), v = cn(h, l), _ = ln(h, l, a);
1547
1551
  function x(C) {
1548
1552
  c(m({ page: C }));
1549
1553
  }
@@ -1578,7 +1582,7 @@ function Nr(e) {
1578
1582
  y
1579
1583
  )),
1580
1584
  /* @__PURE__ */ s.jsx("button", { className: "arkyn_pagination-current", disabled: !0, children: h }),
1581
- j.map((C, y) => /* @__PURE__ */ s.jsx(
1585
+ _.map((C, y) => /* @__PURE__ */ s.jsx(
1582
1586
  "button",
1583
1587
  {
1584
1588
  onClick: () => x(C),
@@ -1620,16 +1624,16 @@ function _r(e) {
1620
1624
  return /* @__PURE__ */ s.jsx("button", { className: f.trim(), ...l, children: n });
1621
1625
  }
1622
1626
  function jr(e) {
1623
- const { children: n, onClick: r, className: o, ...i } = e, l = Ne(null), f = `arkyn_tab_container ${o || ""}`, [c, u] = le({
1627
+ const { children: n, onClick: r, className: o, ...i } = e, l = Ce(null), f = `arkyn_tab_container ${o || ""}`, [c, u] = ce({
1624
1628
  width: "0px",
1625
1629
  left: "0px",
1626
1630
  transition: "none"
1627
1631
  }), m = (b, a) => {
1628
- const v = b.getBoundingClientRect(), j = l.current.getBoundingClientRect();
1632
+ const v = b.getBoundingClientRect(), _ = l.current.getBoundingClientRect();
1629
1633
  u({
1630
1634
  transition: a ? void 0 : "none",
1631
1635
  width: `${v.width}px`,
1632
- left: `${v.left - j.left}px`
1636
+ left: `${v.left - _.left}px`
1633
1637
  });
1634
1638
  };
1635
1639
  Jt(() => {
@@ -1772,7 +1776,7 @@ function Pr(e) {
1772
1776
  ] });
1773
1777
  }
1774
1778
  function Tr(e) {
1775
- const { children: n, button: r, closeOnClick: o, orientation: i = "bottom-left" } = e, [l, f] = le(!1), c = `arkyn_popover ${i} ${l ? "show" : ""}`;
1779
+ const { children: n, button: r, closeOnClick: o, orientation: i = "bottom-left" } = e, [l, f] = ce(!1), c = `arkyn_popover ${i} ${l ? "show" : ""}`;
1776
1780
  function u() {
1777
1781
  l || f(!0);
1778
1782
  }
@@ -1897,7 +1901,7 @@ function Fr(e) {
1897
1901
  return n;
1898
1902
  }
1899
1903
  function Dr(e) {
1900
- const { children: n = !1 } = e, [r, o] = le([]);
1904
+ const { children: n = !1 } = e, [r, o] = ce([]);
1901
1905
  function i(u) {
1902
1906
  return !!r.some((m) => m.key === u);
1903
1907
  }
@@ -1921,7 +1925,7 @@ function Dr(e) {
1921
1925
  );
1922
1926
  }
1923
1927
  function Lr(e) {
1924
- const { children: n = !1 } = e, [r, o] = le([]);
1928
+ const { children: n = !1 } = e, [r, o] = ce([]);
1925
1929
  function i(u) {
1926
1930
  return !!r.some((m) => m.key === u);
1927
1931
  }
@@ -2010,10 +2014,10 @@ var Sn = (e) => {
2010
2014
  return this.create({ jsx: e(r), id: r, ...n }), r;
2011
2015
  }, this.subscribers = [], this.toasts = [];
2012
2016
  }
2013
- }, fe = new Fn(), Dn = (e, n) => {
2017
+ }, ue = new Fn(), Dn = (e, n) => {
2014
2018
  let r = (n == null ? void 0 : n.id) || ot++;
2015
- return fe.addToast({ title: e, ...n, id: r }), r;
2016
- }, Ln = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", Bn = Dn, Mn = () => fe.toasts, An = Object.assign(Bn, { success: fe.success, info: fe.info, warning: fe.warning, error: fe.error, custom: fe.custom, message: fe.message, promise: fe.promise, dismiss: fe.dismiss, loading: fe.loading }, { getHistory: Mn });
2019
+ return ue.addToast({ title: e, ...n, id: r }), r;
2020
+ }, Ln = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", Mn = Dn, Bn = () => ue.toasts, An = Object.assign(Mn, { success: ue.success, info: ue.info, warning: ue.warning, error: ue.error, custom: ue.custom, message: ue.message, promise: ue.promise, dismiss: ue.dismiss, loading: ue.loading }, { getHistory: Bn });
2017
2021
  function Wn(e, { insertAt: n } = {}) {
2018
2022
  if (!e || typeof document > "u") return;
2019
2023
  let r = document.head || document.getElementsByTagName("head")[0], o = document.createElement("style");
@@ -2030,77 +2034,77 @@ function qn(...e) {
2030
2034
  }
2031
2035
  var Gn = (e) => {
2032
2036
  var n, r, o, i, l, f, c, u, m, h;
2033
- let { invert: b, toast: a, unstyled: v, interacting: j, setHeights: x, visibleToasts: C, heights: y, index: w, toasts: V, expanded: z, removeToast: R, defaultRichColors: A, closeButton: L, style: X, cancelButtonStyle: U, actionButtonStyle: K, className: O = "", descriptionClassName: G = "", duration: E, position: J, gap: F, loadingIcon: Y, expandByDefault: te, classNames: $, icons: Z, closeButtonAriaLabel: he = "Close toast", pauseWhenPageIsHidden: T, cn: _ } = e, [S, ne] = p.useState(!1), [Q, H] = p.useState(!1), [re, oe] = p.useState(!1), [de, ve] = p.useState(!1), [Ge, Re] = p.useState(0), [Ze, We] = p.useState(0), _e = p.useRef(null), me = p.useRef(null), Ve = w === 0, Ye = w + 1 <= C, ae = a.type, we = a.dismissible !== !1, Qe = a.className || "", Oe = a.descriptionClassName || "", $e = p.useMemo(() => y.findIndex((N) => N.toastId === a.id) || 0, [y, a.id]), et = p.useMemo(() => {
2037
+ let { invert: b, toast: a, unstyled: v, interacting: _, setHeights: x, visibleToasts: C, heights: y, index: w, toasts: Y, expanded: z, removeToast: R, defaultRichColors: A, closeButton: L, style: J, cancelButtonStyle: K, actionButtonStyle: H, className: O = "", descriptionClassName: Q = "", duration: j, position: q, gap: F, loadingIcon: U, expandByDefault: ne, classNames: $, icons: ee, closeButtonAriaLabel: oe = "Close toast", pauseWhenPageIsHidden: S, cn: E } = e, [P, X] = p.useState(!1), [G, W] = p.useState(!1), [Ne, me] = p.useState(!1), [ve, pe] = p.useState(!1), [Ge, Re] = p.useState(0), [Ze, We] = p.useState(0), _e = p.useRef(null), de = p.useRef(null), Ve = w === 0, Ye = w + 1 <= C, re = a.type, xe = a.dismissible !== !1, Qe = a.className || "", Oe = a.descriptionClassName || "", $e = p.useMemo(() => y.findIndex((N) => N.toastId === a.id) || 0, [y, a.id]), et = p.useMemo(() => {
2034
2038
  var N;
2035
2039
  return (N = a.closeButton) != null ? N : L;
2036
- }, [a.closeButton, L]), ze = p.useMemo(() => a.duration || E || Hn, [a.duration, E]), Pe = p.useRef(0), pe = p.useRef(0), He = p.useRef(0), ye = p.useRef(null), [Fe, De] = J.split("-"), Ue = p.useMemo(() => y.reduce((N, B, M) => M >= $e ? N : N + B.height, 0), [y, $e]), Ke = zn(), tt = a.invert || b, Le = ae === "loading";
2037
- pe.current = p.useMemo(() => $e * F + Ue, [$e, Ue]), p.useEffect(() => {
2038
- ne(!0);
2040
+ }, [a.closeButton, L]), ze = p.useMemo(() => a.duration || j || Hn, [a.duration, j]), Pe = p.useRef(0), fe = p.useRef(0), He = p.useRef(0), be = p.useRef(null), [Fe, De] = q.split("-"), Ue = p.useMemo(() => y.reduce((N, M, B) => B >= $e ? N : N + M.height, 0), [y, $e]), Ke = zn(), tt = a.invert || b, Le = re === "loading";
2041
+ fe.current = p.useMemo(() => $e * F + Ue, [$e, Ue]), p.useEffect(() => {
2042
+ X(!0);
2039
2043
  }, []), p.useLayoutEffect(() => {
2040
- if (!S) return;
2041
- let N = me.current, B = N.style.height;
2044
+ if (!P) return;
2045
+ let N = de.current, M = N.style.height;
2042
2046
  N.style.height = "auto";
2043
- let M = N.getBoundingClientRect().height;
2044
- N.style.height = B, We(M), x((se) => se.find((ce) => ce.toastId === a.id) ? se.map((ce) => ce.toastId === a.id ? { ...ce, height: M } : ce) : [{ toastId: a.id, height: M, position: a.position }, ...se]);
2045
- }, [S, a.title, a.description, x, a.id]);
2046
- let be = p.useCallback(() => {
2047
- H(!0), Re(pe.current), x((N) => N.filter((B) => B.toastId !== a.id)), setTimeout(() => {
2047
+ let B = N.getBoundingClientRect().height;
2048
+ N.style.height = M, We(B), x((ae) => ae.find((ie) => ie.toastId === a.id) ? ae.map((ie) => ie.toastId === a.id ? { ...ie, height: B } : ie) : [{ toastId: a.id, height: B, position: a.position }, ...ae]);
2049
+ }, [P, a.title, a.description, x, a.id]);
2050
+ let ge = p.useCallback(() => {
2051
+ W(!0), Re(fe.current), x((N) => N.filter((M) => M.toastId !== a.id)), setTimeout(() => {
2048
2052
  R(a);
2049
2053
  }, Jn);
2050
- }, [a, R, x, pe]);
2054
+ }, [a, R, x, fe]);
2051
2055
  p.useEffect(() => {
2052
- if (a.promise && ae === "loading" || a.duration === 1 / 0 || a.type === "loading") return;
2053
- let N, B = ze;
2054
- return z || j || T && Ke ? (() => {
2056
+ if (a.promise && re === "loading" || a.duration === 1 / 0 || a.type === "loading") return;
2057
+ let N, M = ze;
2058
+ return z || _ || S && Ke ? (() => {
2055
2059
  if (He.current < Pe.current) {
2056
- let M = (/* @__PURE__ */ new Date()).getTime() - Pe.current;
2057
- B = B - M;
2060
+ let B = (/* @__PURE__ */ new Date()).getTime() - Pe.current;
2061
+ M = M - B;
2058
2062
  }
2059
2063
  He.current = (/* @__PURE__ */ new Date()).getTime();
2060
- })() : B !== 1 / 0 && (Pe.current = (/* @__PURE__ */ new Date()).getTime(), N = setTimeout(() => {
2061
- var M;
2062
- (M = a.onAutoClose) == null || M.call(a, a), be();
2063
- }, B)), () => clearTimeout(N);
2064
- }, [z, j, te, a, ze, be, a.promise, ae, T, Ke]), p.useEffect(() => {
2065
- let N = me.current;
2064
+ })() : M !== 1 / 0 && (Pe.current = (/* @__PURE__ */ new Date()).getTime(), N = setTimeout(() => {
2065
+ var B;
2066
+ (B = a.onAutoClose) == null || B.call(a, a), ge();
2067
+ }, M)), () => clearTimeout(N);
2068
+ }, [z, _, ne, a, ze, ge, a.promise, re, S, Ke]), p.useEffect(() => {
2069
+ let N = de.current;
2066
2070
  if (N) {
2067
- let B = N.getBoundingClientRect().height;
2068
- return We(B), x((M) => [{ toastId: a.id, height: B, position: a.position }, ...M]), () => x((M) => M.filter((se) => se.toastId !== a.id));
2071
+ let M = N.getBoundingClientRect().height;
2072
+ return We(M), x((B) => [{ toastId: a.id, height: M, position: a.position }, ...B]), () => x((B) => B.filter((ae) => ae.toastId !== a.id));
2069
2073
  }
2070
2074
  }, [x, a.id]), p.useEffect(() => {
2071
- a.delete && be();
2072
- }, [be, a.delete]);
2075
+ a.delete && ge();
2076
+ }, [ge, a.delete]);
2073
2077
  function nt() {
2074
- return Z != null && Z.loading ? p.createElement("div", { className: "sonner-loader", "data-visible": ae === "loading" }, Z.loading) : Y ? p.createElement("div", { className: "sonner-loader", "data-visible": ae === "loading" }, Y) : p.createElement($n, { visible: ae === "loading" });
2078
+ return ee != null && ee.loading ? p.createElement("div", { className: "sonner-loader", "data-visible": re === "loading" }, ee.loading) : U ? p.createElement("div", { className: "sonner-loader", "data-visible": re === "loading" }, U) : p.createElement($n, { visible: re === "loading" });
2075
2079
  }
2076
- return p.createElement("li", { "aria-live": a.important ? "assertive" : "polite", "aria-atomic": "true", role: "status", tabIndex: 0, ref: me, className: _(O, Qe, $ == null ? void 0 : $.toast, (n = a == null ? void 0 : a.classNames) == null ? void 0 : n.toast, $ == null ? void 0 : $.default, $ == null ? void 0 : $[ae], (r = a == null ? void 0 : a.classNames) == null ? void 0 : r[ae]), "data-sonner-toast": "", "data-rich-colors": (o = a.richColors) != null ? o : A, "data-styled": !(a.jsx || a.unstyled || v), "data-mounted": S, "data-promise": !!a.promise, "data-removed": Q, "data-visible": Ye, "data-y-position": Fe, "data-x-position": De, "data-index": w, "data-front": Ve, "data-swiping": re, "data-dismissible": we, "data-type": ae, "data-invert": tt, "data-swipe-out": de, "data-expanded": !!(z || te && S), style: { "--index": w, "--toasts-before": w, "--z-index": V.length - w, "--offset": `${Q ? Ge : pe.current}px`, "--initial-height": te ? "auto" : `${Ze}px`, ...X, ...a.style }, onPointerDown: (N) => {
2077
- Le || !we || (_e.current = /* @__PURE__ */ new Date(), Re(pe.current), N.target.setPointerCapture(N.pointerId), N.target.tagName !== "BUTTON" && (oe(!0), ye.current = { x: N.clientX, y: N.clientY }));
2080
+ return p.createElement("li", { "aria-live": a.important ? "assertive" : "polite", "aria-atomic": "true", role: "status", tabIndex: 0, ref: de, className: E(O, Qe, $ == null ? void 0 : $.toast, (n = a == null ? void 0 : a.classNames) == null ? void 0 : n.toast, $ == null ? void 0 : $.default, $ == null ? void 0 : $[re], (r = a == null ? void 0 : a.classNames) == null ? void 0 : r[re]), "data-sonner-toast": "", "data-rich-colors": (o = a.richColors) != null ? o : A, "data-styled": !(a.jsx || a.unstyled || v), "data-mounted": P, "data-promise": !!a.promise, "data-removed": G, "data-visible": Ye, "data-y-position": Fe, "data-x-position": De, "data-index": w, "data-front": Ve, "data-swiping": Ne, "data-dismissible": xe, "data-type": re, "data-invert": tt, "data-swipe-out": ve, "data-expanded": !!(z || ne && P), style: { "--index": w, "--toasts-before": w, "--z-index": Y.length - w, "--offset": `${G ? Ge : fe.current}px`, "--initial-height": ne ? "auto" : `${Ze}px`, ...J, ...a.style }, onPointerDown: (N) => {
2081
+ Le || !xe || (_e.current = /* @__PURE__ */ new Date(), Re(fe.current), N.target.setPointerCapture(N.pointerId), N.target.tagName !== "BUTTON" && (me(!0), be.current = { x: N.clientX, y: N.clientY }));
2078
2082
  }, onPointerUp: () => {
2079
- var N, B, M, se;
2080
- if (de || !we) return;
2081
- ye.current = null;
2082
- let ce = Number(((N = me.current) == null ? void 0 : N.style.getPropertyValue("--swipe-amount").replace("px", "")) || 0), ke = (/* @__PURE__ */ new Date()).getTime() - ((B = _e.current) == null ? void 0 : B.getTime()), Xe = Math.abs(ce) / ke;
2083
- if (Math.abs(ce) >= Xn || Xe > 0.11) {
2084
- Re(pe.current), (M = a.onDismiss) == null || M.call(a, a), be(), ve(!0);
2083
+ var N, M, B, ae;
2084
+ if (ve || !xe) return;
2085
+ be.current = null;
2086
+ let ie = Number(((N = de.current) == null ? void 0 : N.style.getPropertyValue("--swipe-amount").replace("px", "")) || 0), we = (/* @__PURE__ */ new Date()).getTime() - ((M = _e.current) == null ? void 0 : M.getTime()), Xe = Math.abs(ie) / we;
2087
+ if (Math.abs(ie) >= Xn || Xe > 0.11) {
2088
+ Re(fe.current), (B = a.onDismiss) == null || B.call(a, a), ge(), pe(!0);
2085
2089
  return;
2086
2090
  }
2087
- (se = me.current) == null || se.style.setProperty("--swipe-amount", "0px"), oe(!1);
2091
+ (ae = de.current) == null || ae.style.setProperty("--swipe-amount", "0px"), me(!1);
2088
2092
  }, onPointerMove: (N) => {
2089
- var B;
2090
- if (!ye.current || !we) return;
2091
- let M = N.clientY - ye.current.y, se = N.clientX - ye.current.x, ce = (Fe === "top" ? Math.min : Math.max)(0, M), ke = N.pointerType === "touch" ? 10 : 2;
2092
- Math.abs(ce) > ke ? (B = me.current) == null || B.style.setProperty("--swipe-amount", `${M}px`) : Math.abs(se) > ke && (ye.current = null);
2093
- } }, et && !a.jsx ? p.createElement("button", { "aria-label": he, "data-disabled": Le, "data-close-button": !0, onClick: Le || !we ? () => {
2093
+ var M;
2094
+ if (!be.current || !xe) return;
2095
+ let B = N.clientY - be.current.y, ae = N.clientX - be.current.x, ie = (Fe === "top" ? Math.min : Math.max)(0, B), we = N.pointerType === "touch" ? 10 : 2;
2096
+ Math.abs(ie) > we ? (M = de.current) == null || M.style.setProperty("--swipe-amount", `${B}px`) : Math.abs(ae) > we && (be.current = null);
2097
+ } }, et && !a.jsx ? p.createElement("button", { "aria-label": oe, "data-disabled": Le, "data-close-button": !0, onClick: Le || !xe ? () => {
2094
2098
  } : () => {
2095
2099
  var N;
2096
- be(), (N = a.onDismiss) == null || N.call(a, a);
2097
- }, className: _($ == null ? void 0 : $.closeButton, (i = a == null ? void 0 : a.classNames) == null ? void 0 : i.closeButton) }, p.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }, p.createElement("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), p.createElement("line", { x1: "6", y1: "6", x2: "18", y2: "18" }))) : null, a.jsx || p.isValidElement(a.title) ? a.jsx || a.title : p.createElement(p.Fragment, null, ae || a.icon || a.promise ? p.createElement("div", { "data-icon": "", className: _($ == null ? void 0 : $.icon, (l = a == null ? void 0 : a.classNames) == null ? void 0 : l.icon) }, a.promise || a.type === "loading" && !a.icon ? a.icon || nt() : null, a.type !== "loading" ? a.icon || (Z == null ? void 0 : Z[ae]) || Sn(ae) : null) : null, p.createElement("div", { "data-content": "", className: _($ == null ? void 0 : $.content, (f = a == null ? void 0 : a.classNames) == null ? void 0 : f.content) }, p.createElement("div", { "data-title": "", className: _($ == null ? void 0 : $.title, (c = a == null ? void 0 : a.classNames) == null ? void 0 : c.title) }, a.title), a.description ? p.createElement("div", { "data-description": "", className: _(G, Oe, $ == null ? void 0 : $.description, (u = a == null ? void 0 : a.classNames) == null ? void 0 : u.description) }, a.description) : null), p.isValidElement(a.cancel) ? a.cancel : a.cancel && Je(a.cancel) ? p.createElement("button", { "data-button": !0, "data-cancel": !0, style: a.cancelButtonStyle || U, onClick: (N) => {
2098
- var B, M;
2099
- Je(a.cancel) && we && ((M = (B = a.cancel).onClick) == null || M.call(B, N), be());
2100
- }, className: _($ == null ? void 0 : $.cancelButton, (m = a == null ? void 0 : a.classNames) == null ? void 0 : m.cancelButton) }, a.cancel.label) : null, p.isValidElement(a.action) ? a.action : a.action && Je(a.action) ? p.createElement("button", { "data-button": !0, "data-action": !0, style: a.actionButtonStyle || K, onClick: (N) => {
2101
- var B, M;
2102
- Je(a.action) && (N.defaultPrevented || ((M = (B = a.action).onClick) == null || M.call(B, N), be()));
2103
- }, className: _($ == null ? void 0 : $.actionButton, (h = a == null ? void 0 : a.classNames) == null ? void 0 : h.actionButton) }, a.action.label) : null));
2100
+ ge(), (N = a.onDismiss) == null || N.call(a, a);
2101
+ }, className: E($ == null ? void 0 : $.closeButton, (i = a == null ? void 0 : a.classNames) == null ? void 0 : i.closeButton) }, p.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }, p.createElement("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), p.createElement("line", { x1: "6", y1: "6", x2: "18", y2: "18" }))) : null, a.jsx || p.isValidElement(a.title) ? a.jsx || a.title : p.createElement(p.Fragment, null, re || a.icon || a.promise ? p.createElement("div", { "data-icon": "", className: E($ == null ? void 0 : $.icon, (l = a == null ? void 0 : a.classNames) == null ? void 0 : l.icon) }, a.promise || a.type === "loading" && !a.icon ? a.icon || nt() : null, a.type !== "loading" ? a.icon || (ee == null ? void 0 : ee[re]) || Sn(re) : null) : null, p.createElement("div", { "data-content": "", className: E($ == null ? void 0 : $.content, (f = a == null ? void 0 : a.classNames) == null ? void 0 : f.content) }, p.createElement("div", { "data-title": "", className: E($ == null ? void 0 : $.title, (c = a == null ? void 0 : a.classNames) == null ? void 0 : c.title) }, a.title), a.description ? p.createElement("div", { "data-description": "", className: E(Q, Oe, $ == null ? void 0 : $.description, (u = a == null ? void 0 : a.classNames) == null ? void 0 : u.description) }, a.description) : null), p.isValidElement(a.cancel) ? a.cancel : a.cancel && Je(a.cancel) ? p.createElement("button", { "data-button": !0, "data-cancel": !0, style: a.cancelButtonStyle || K, onClick: (N) => {
2102
+ var M, B;
2103
+ Je(a.cancel) && xe && ((B = (M = a.cancel).onClick) == null || B.call(M, N), ge());
2104
+ }, className: E($ == null ? void 0 : $.cancelButton, (m = a == null ? void 0 : a.classNames) == null ? void 0 : m.cancelButton) }, a.cancel.label) : null, p.isValidElement(a.action) ? a.action : a.action && Je(a.action) ? p.createElement("button", { "data-button": !0, "data-action": !0, style: a.actionButtonStyle || H, onClick: (N) => {
2105
+ var M, B;
2106
+ Je(a.action) && (N.defaultPrevented || ((B = (M = a.action).onClick) == null || B.call(M, N), ge()));
2107
+ }, className: E($ == null ? void 0 : $.actionButton, (h = a == null ? void 0 : a.classNames) == null ? void 0 : h.actionButton) }, a.action.label) : null));
2104
2108
  };
2105
2109
  function kt() {
2106
2110
  if (typeof window > "u" || typeof document > "u") return "ltr";
@@ -2108,20 +2112,20 @@ function kt() {
2108
2112
  return e === "auto" || !e ? window.getComputedStyle(document.documentElement).direction : e;
2109
2113
  }
2110
2114
  var Zn = (e) => {
2111
- let { invert: n, position: r = "bottom-right", hotkey: o = ["altKey", "KeyT"], expand: i, closeButton: l, className: f, offset: c, theme: u = "light", richColors: m, duration: h, style: b, visibleToasts: a = Vn, toastOptions: v, dir: j = kt(), gap: x = Kn, loadingIcon: C, icons: y, containerAriaLabel: w = "Notifications", pauseWhenPageIsHidden: V, cn: z = qn } = e, [R, A] = p.useState([]), L = p.useMemo(() => Array.from(new Set([r].concat(R.filter((T) => T.position).map((T) => T.position)))), [R, r]), [X, U] = p.useState([]), [K, O] = p.useState(!1), [G, E] = p.useState(!1), [J, F] = p.useState(u !== "system" ? u : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), Y = p.useRef(null), te = o.join("+").replace(/Key/g, "").replace(/Digit/g, ""), $ = p.useRef(null), Z = p.useRef(!1), he = p.useCallback((T) => {
2112
- var _;
2113
- (_ = R.find((S) => S.id === T.id)) != null && _.delete || fe.dismiss(T.id), A((S) => S.filter(({ id: ne }) => ne !== T.id));
2115
+ let { invert: n, position: r = "bottom-right", hotkey: o = ["altKey", "KeyT"], expand: i, closeButton: l, className: f, offset: c, theme: u = "light", richColors: m, duration: h, style: b, visibleToasts: a = Vn, toastOptions: v, dir: _ = kt(), gap: x = Kn, loadingIcon: C, icons: y, containerAriaLabel: w = "Notifications", pauseWhenPageIsHidden: Y, cn: z = qn } = e, [R, A] = p.useState([]), L = p.useMemo(() => Array.from(new Set([r].concat(R.filter((S) => S.position).map((S) => S.position)))), [R, r]), [J, K] = p.useState([]), [H, O] = p.useState(!1), [Q, j] = p.useState(!1), [q, F] = p.useState(u !== "system" ? u : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), U = p.useRef(null), ne = o.join("+").replace(/Key/g, "").replace(/Digit/g, ""), $ = p.useRef(null), ee = p.useRef(!1), oe = p.useCallback((S) => {
2116
+ var E;
2117
+ (E = R.find((P) => P.id === S.id)) != null && E.delete || ue.dismiss(S.id), A((P) => P.filter(({ id: X }) => X !== S.id));
2114
2118
  }, [R]);
2115
- return p.useEffect(() => fe.subscribe((T) => {
2116
- if (T.dismiss) {
2117
- A((_) => _.map((S) => S.id === T.id ? { ...S, delete: !0 } : S));
2119
+ return p.useEffect(() => ue.subscribe((S) => {
2120
+ if (S.dismiss) {
2121
+ A((E) => E.map((P) => P.id === S.id ? { ...P, delete: !0 } : P));
2118
2122
  return;
2119
2123
  }
2120
2124
  setTimeout(() => {
2121
2125
  an.flushSync(() => {
2122
- A((_) => {
2123
- let S = _.findIndex((ne) => ne.id === T.id);
2124
- return S !== -1 ? [..._.slice(0, S), { ..._[S], ...T }, ..._.slice(S + 1)] : [T, ..._];
2126
+ A((E) => {
2127
+ let P = E.findIndex((X) => X.id === S.id);
2128
+ return P !== -1 ? [...E.slice(0, P), { ...E[P], ...S }, ...E.slice(P + 1)] : [S, ...E];
2125
2129
  });
2126
2130
  });
2127
2131
  });
@@ -2130,39 +2134,39 @@ var Zn = (e) => {
2130
2134
  F(u);
2131
2135
  return;
2132
2136
  }
2133
- u === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? F("dark") : F("light")), typeof window < "u" && window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", ({ matches: T }) => {
2134
- F(T ? "dark" : "light");
2137
+ u === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? F("dark") : F("light")), typeof window < "u" && window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", ({ matches: S }) => {
2138
+ F(S ? "dark" : "light");
2135
2139
  });
2136
2140
  }, [u]), p.useEffect(() => {
2137
2141
  R.length <= 1 && O(!1);
2138
2142
  }, [R]), p.useEffect(() => {
2139
- let T = (_) => {
2140
- var S, ne;
2141
- o.every((Q) => _[Q] || _.code === Q) && (O(!0), (S = Y.current) == null || S.focus()), _.code === "Escape" && (document.activeElement === Y.current || (ne = Y.current) != null && ne.contains(document.activeElement)) && O(!1);
2143
+ let S = (E) => {
2144
+ var P, X;
2145
+ o.every((G) => E[G] || E.code === G) && (O(!0), (P = U.current) == null || P.focus()), E.code === "Escape" && (document.activeElement === U.current || (X = U.current) != null && X.contains(document.activeElement)) && O(!1);
2142
2146
  };
2143
- return document.addEventListener("keydown", T), () => document.removeEventListener("keydown", T);
2147
+ return document.addEventListener("keydown", S), () => document.removeEventListener("keydown", S);
2144
2148
  }, [o]), p.useEffect(() => {
2145
- if (Y.current) return () => {
2146
- $.current && ($.current.focus({ preventScroll: !0 }), $.current = null, Z.current = !1);
2149
+ if (U.current) return () => {
2150
+ $.current && ($.current.focus({ preventScroll: !0 }), $.current = null, ee.current = !1);
2147
2151
  };
2148
- }, [Y.current]), R.length ? p.createElement("section", { "aria-label": `${w} ${te}`, tabIndex: -1 }, L.map((T, _) => {
2149
- var S;
2150
- let [ne, Q] = T.split("-");
2151
- return p.createElement("ol", { key: T, dir: j === "auto" ? kt() : j, tabIndex: -1, ref: Y, className: f, "data-sonner-toaster": !0, "data-theme": J, "data-y-position": ne, "data-x-position": Q, style: { "--front-toast-height": `${((S = X[0]) == null ? void 0 : S.height) || 0}px`, "--offset": typeof c == "number" ? `${c}px` : c || Yn, "--width": `${Un}px`, "--gap": `${x}px`, ...b }, onBlur: (H) => {
2152
- Z.current && !H.currentTarget.contains(H.relatedTarget) && (Z.current = !1, $.current && ($.current.focus({ preventScroll: !0 }), $.current = null));
2153
- }, onFocus: (H) => {
2154
- H.target instanceof HTMLElement && H.target.dataset.dismissible === "false" || Z.current || (Z.current = !0, $.current = H.relatedTarget);
2152
+ }, [U.current]), R.length ? p.createElement("section", { "aria-label": `${w} ${ne}`, tabIndex: -1 }, L.map((S, E) => {
2153
+ var P;
2154
+ let [X, G] = S.split("-");
2155
+ return p.createElement("ol", { key: S, dir: _ === "auto" ? kt() : _, tabIndex: -1, ref: U, className: f, "data-sonner-toaster": !0, "data-theme": q, "data-y-position": X, "data-x-position": G, style: { "--front-toast-height": `${((P = J[0]) == null ? void 0 : P.height) || 0}px`, "--offset": typeof c == "number" ? `${c}px` : c || Yn, "--width": `${Un}px`, "--gap": `${x}px`, ...b }, onBlur: (W) => {
2156
+ ee.current && !W.currentTarget.contains(W.relatedTarget) && (ee.current = !1, $.current && ($.current.focus({ preventScroll: !0 }), $.current = null));
2157
+ }, onFocus: (W) => {
2158
+ W.target instanceof HTMLElement && W.target.dataset.dismissible === "false" || ee.current || (ee.current = !0, $.current = W.relatedTarget);
2155
2159
  }, onMouseEnter: () => O(!0), onMouseMove: () => O(!0), onMouseLeave: () => {
2156
- G || O(!1);
2157
- }, onPointerDown: (H) => {
2158
- H.target instanceof HTMLElement && H.target.dataset.dismissible === "false" || E(!0);
2159
- }, onPointerUp: () => E(!1) }, R.filter((H) => !H.position && _ === 0 || H.position === T).map((H, re) => {
2160
- var oe, de;
2161
- return p.createElement(Gn, { key: H.id, icons: y, index: re, toast: H, defaultRichColors: m, duration: (oe = v == null ? void 0 : v.duration) != null ? oe : h, className: v == null ? void 0 : v.className, descriptionClassName: v == null ? void 0 : v.descriptionClassName, invert: n, visibleToasts: a, closeButton: (de = v == null ? void 0 : v.closeButton) != null ? de : l, interacting: G, position: T, style: v == null ? void 0 : v.style, unstyled: v == null ? void 0 : v.unstyled, classNames: v == null ? void 0 : v.classNames, cancelButtonStyle: v == null ? void 0 : v.cancelButtonStyle, actionButtonStyle: v == null ? void 0 : v.actionButtonStyle, removeToast: he, toasts: R.filter((ve) => ve.position == H.position), heights: X.filter((ve) => ve.position == H.position), setHeights: U, expandByDefault: i, gap: x, loadingIcon: C, expanded: K, pauseWhenPageIsHidden: V, cn: z });
2160
+ Q || O(!1);
2161
+ }, onPointerDown: (W) => {
2162
+ W.target instanceof HTMLElement && W.target.dataset.dismissible === "false" || j(!0);
2163
+ }, onPointerUp: () => j(!1) }, R.filter((W) => !W.position && E === 0 || W.position === S).map((W, Ne) => {
2164
+ var me, ve;
2165
+ return p.createElement(Gn, { key: W.id, icons: y, index: Ne, toast: W, defaultRichColors: m, duration: (me = v == null ? void 0 : v.duration) != null ? me : h, className: v == null ? void 0 : v.className, descriptionClassName: v == null ? void 0 : v.descriptionClassName, invert: n, visibleToasts: a, closeButton: (ve = v == null ? void 0 : v.closeButton) != null ? ve : l, interacting: Q, position: S, style: v == null ? void 0 : v.style, unstyled: v == null ? void 0 : v.unstyled, classNames: v == null ? void 0 : v.classNames, cancelButtonStyle: v == null ? void 0 : v.cancelButtonStyle, actionButtonStyle: v == null ? void 0 : v.actionButtonStyle, removeToast: oe, toasts: R.filter((pe) => pe.position == W.position), heights: J.filter((pe) => pe.position == W.position), setHeights: K, expandByDefault: i, gap: x, loadingIcon: C, expanded: H, pauseWhenPageIsHidden: Y, cn: z });
2162
2166
  }));
2163
2167
  })) : null;
2164
2168
  };
2165
- function Br({ children: e }) {
2169
+ function Mr({ children: e }) {
2166
2170
  function n(r) {
2167
2171
  An.custom((o) => /* @__PURE__ */ s.jsx(jn, { ...r }));
2168
2172
  }
@@ -2203,7 +2207,7 @@ export {
2203
2207
  fr as TableHeader,
2204
2208
  wr as Textarea,
2205
2209
  jn as Toast,
2206
- Br as ToastProvider,
2210
+ Mr as ToastProvider,
2207
2211
  Ir as Tooltip,
2208
2212
  Or as useAutomation,
2209
2213
  zr as useDrawer,